@acedatacloud/nexior 3.277.9 → 3.278.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (260) hide show
  1. package/dist/assets/ApiCodeButton-CXoLQXC2.js +1 -0
  2. package/dist/assets/{AskUserQuestionCard-BO__kKe-.js → AskUserQuestionCard-CJ6FK-eQ.js} +2 -2
  3. package/dist/assets/Auth-oy_cDrjB.js +1 -0
  4. package/dist/assets/Bare-BjzQECGk.js +1 -0
  5. package/dist/assets/BotPlaceholder-BpLIwwxA.js +1 -0
  6. package/dist/assets/BottomFooter-CPL1TUJk.js +1 -0
  7. package/dist/assets/{Callback-Ds0Qhhfa.js → Callback-DZA2XoEn.js} +1 -1
  8. package/dist/assets/{Console-BvjrA-Id.js → Console-lGda8cJF.js} +1 -1
  9. package/dist/assets/Consumption-D_CAQaSB.js +1 -0
  10. package/dist/assets/Conversation-BBLuEQqB.js +3 -0
  11. package/dist/assets/CopyToClipboard-DG5cx0Ex.js +1 -0
  12. package/dist/assets/{Detail-Cl54B-QS.js → Detail-LUdxtiDf.js} +2 -2
  13. package/dist/assets/Extra-C51gCPia.js +1 -0
  14. package/dist/assets/{FilePreview-CEk-YWC4.js → FilePreview-BFkQVXth.js} +1 -1
  15. package/dist/assets/Hailuo-DIHiST1a.js +1 -0
  16. package/dist/assets/History-BGPVkHOY.js +1 -0
  17. package/dist/assets/ImagePreview-CeyNx3jd.js +1 -0
  18. package/dist/assets/ImageWrapper-C6BTBymE.js +1 -0
  19. package/dist/assets/Index-B4luoYiJ.js +1 -0
  20. package/dist/assets/Index-BFpKx82w.js +1 -0
  21. package/dist/assets/Index-BIi8lQVb.js +1 -0
  22. package/dist/assets/{Index-BsuuQ9Qp.js → Index-BJ7bU2Ap.js} +1 -1
  23. package/dist/assets/Index-BUutMSDI.js +1 -0
  24. package/dist/assets/Index-Bk_tFQBc.js +2 -0
  25. package/dist/assets/Index-BpIXOTSD.js +1 -0
  26. package/dist/assets/Index-BwIw__H4.js +1 -0
  27. package/dist/assets/Index-C4hy7nVp.js +1 -0
  28. package/dist/assets/Index-C8N6BHY-.js +1 -0
  29. package/dist/assets/Index-CPJu847J.js +1 -0
  30. package/dist/assets/Index-Cc-RhfD0.js +1 -0
  31. package/dist/assets/Index-CxLS2qO0.js +1 -0
  32. package/dist/assets/Index-Cz1SEEJn.js +1 -0
  33. package/dist/assets/Index-D4VgA6LH.js +1 -0
  34. package/dist/assets/Index-D6ein8tv.js +1 -0
  35. package/dist/assets/Index-DVoOVUco.js +1 -0
  36. package/dist/assets/Index-DWMFhERT.js +1 -0
  37. package/dist/assets/Index-DZZdzKP6.js +1 -0
  38. package/dist/assets/Index-DaSVJxjM.js +1 -0
  39. package/dist/assets/Index-DcccGmiE.js +1 -0
  40. package/dist/assets/Index-DiBqXC2W.js +1 -0
  41. package/dist/assets/Index-HS9ewrHk.js +1 -0
  42. package/dist/assets/Index-KKuLrOV7.js +1 -0
  43. package/dist/assets/{Index-V_h8KuLe.js → Index-aNTiBE8l.js} +1 -1
  44. package/dist/assets/Index-zXeYOts6.js +1 -0
  45. package/dist/assets/Invitees-CDdin_zl.js +1 -0
  46. package/dist/assets/List-C358Vzd4.js +1 -0
  47. package/dist/assets/{List-BCTIkbqi.js → List-CMovwYjB.js} +1 -1
  48. package/dist/assets/List-aru9FNfS.js +1 -0
  49. package/dist/assets/{Login-D8lHpp8_.js → Login-ZkRB_fWm.js} +1 -1
  50. package/dist/assets/Main-B5RiswqX.js +1 -0
  51. package/dist/assets/Main-DC6pe9Hl.css +1 -0
  52. package/dist/assets/Model-CtN4cAoL.js +1 -0
  53. package/dist/assets/Navigator-DjUbPnUI.js +4 -0
  54. package/dist/assets/NoTasks-BOopjPtL.js +1 -0
  55. package/dist/assets/NotFound-m-5oeC2J.js +1 -0
  56. package/dist/assets/Pagination-CbbWdJIl.js +1 -0
  57. package/dist/assets/Pay-CgS135WT.js +1 -0
  58. package/dist/assets/{Player-C-7R8A5A.js → Player-DvgjC7c5.js} +1 -1
  59. package/dist/assets/Seedance-cdIlG9x0.js +1 -0
  60. package/dist/assets/Status-CeZgC2Ye.js +1 -0
  61. package/dist/assets/{Subscribe-Cxb0qpvf.js → Subscribe-Ci-2Fv2D.js} +1 -1
  62. package/dist/assets/TabSwitcher-be-vKwWY.js +1 -0
  63. package/dist/assets/{Tts-C-6DTKCA.js → Tts-D28gFP1B.js} +1 -1
  64. package/dist/assets/VideoPlayer-CD9PlOS8.js +1 -0
  65. package/dist/assets/{_Uint8Array-0UxlbjS_.js → _Uint8Array-3-KsyGhc.js} +1 -1
  66. package/dist/assets/{_baseClone-7uTPqT6Z.js → _baseClone-BG8qyJTx.js} +1 -1
  67. package/dist/assets/{_baseIteratee-Bt4PVrpe.js → _baseIteratee-jiBmvyYc.js} +1 -1
  68. package/dist/assets/{_initCloneObject-BJVAPsyT.js → _initCloneObject-ClDbGB1c.js} +1 -1
  69. package/dist/assets/alert-OvnfgMB-.js +1 -0
  70. package/dist/assets/avatar-BK3H5LlO.js +1 -0
  71. package/dist/assets/avatar-CTHa5OEM.js +1 -0
  72. package/dist/assets/{basic-qB2zBf_T.js → basic-D2PYpKX5.js} +1 -1
  73. package/dist/assets/button-DfsQodL-.js +1 -0
  74. package/dist/assets/card-DjyfNde2.js +1 -0
  75. package/dist/assets/castArray-BbtsObcD.js +1 -0
  76. package/dist/assets/{chat-DnQdfCwY.js → chat-C1EUkJXK.js} +1 -1
  77. package/dist/assets/checkbox-BAeQdLeW.js +1 -0
  78. package/dist/assets/{click-outside-DSZqOY28.js → click-outside-Bc_xOTXp.js} +1 -1
  79. package/dist/assets/{codingBridge-N0BY_pbA.js → codingBridge-DEvwc0PR.js} +1 -1
  80. package/dist/assets/{codingBridgeNotify-jR2fwnrs.js → codingBridgeNotify-DKoA2JP9.js} +2 -2
  81. package/dist/assets/collapse-BxNTm00O.js +1 -0
  82. package/dist/assets/collapse-transition-C9jp2nDh.js +1 -0
  83. package/dist/assets/{constants-BvG5EAGh.js → constants-DwFseFmM.js} +2 -2
  84. package/dist/assets/container-BgEH5azS.js +1 -0
  85. package/dist/assets/{createTaskActions-H9Ak_ksZ.js → createTaskActions-CvBFHmmD.js} +1 -1
  86. package/dist/assets/date-picker-CiLjAJPo.js +1 -0
  87. package/dist/assets/{debounce-BY7z7rFy.js → debounce-DDZaE3JE.js} +1 -1
  88. package/dist/assets/divider-LA__Fty9.js +1 -0
  89. package/dist/assets/drawer-Dpuj2uIl.js +1 -0
  90. package/dist/assets/dropdown-CG4l8dKx.js +1 -0
  91. package/dist/assets/empty-DA4nlQUv.js +1 -0
  92. package/dist/assets/{esm-BWKCQlE-.js → esm-BqiBebi7.js} +1 -1
  93. package/dist/assets/esm-CDp0Qf7i.js +1 -0
  94. package/dist/assets/{esm-C3UFPwEA.js → esm-CWP9r0G2.js} +1 -1
  95. package/dist/assets/{esm-YSQHICP5.js → esm-CWSmgMpA.js} +3 -3
  96. package/dist/assets/{esm-DrjL-zKA.js → esm-Cj99PCoU.js} +1 -1
  97. package/dist/assets/esm-D2sFB5nS.js +2 -0
  98. package/dist/assets/{esm-DtiDy7oQ.js → esm-DRxku3NW.js} +2 -2
  99. package/dist/assets/{fish-Dtp6I8Fd.js → fish-BP62Jr0O.js} +1 -1
  100. package/dist/assets/{flux-Dg2kTyMv.js → flux-CDZygm05.js} +1 -1
  101. package/dist/assets/{form-D0aSFxDK.js → form-DnBQT-zH.js} +2 -2
  102. package/dist/assets/{grokvideo-C6jRvGkV.js → grokvideo-C53uzPoZ.js} +1 -1
  103. package/dist/assets/{hailuo-BBLTKTAc.js → hailuo-CWOkLsy0.js} +1 -1
  104. package/dist/assets/{headshots-Clf9mqgV.js → headshots-C7l2OtHq.js} +1 -1
  105. package/dist/assets/image-r_Sil4Yc.js +1 -0
  106. package/dist/assets/index-1hhw9POE.js +570 -0
  107. package/dist/assets/{index.browser.esm-D2oXUHNB.js → index.browser.esm-BXdtHnHu.js} +1 -1
  108. package/dist/assets/{index.es-DInZDd-8.js → index.es-Ds6M0PuH.js} +2 -2
  109. package/dist/assets/input-number-Bg1zmr12.js +1 -0
  110. package/dist/assets/{install-ClulZuUd.js → install-CmiepWqE.js} +1 -1
  111. package/dist/assets/{isEqual-XQKSKR3y.js → isEqual-CE_hv887.js} +1 -1
  112. package/dist/assets/isPlainObject-Bo35bFi4.js +1 -0
  113. package/dist/assets/{kling-CIq0k3a9.js → kling-DvkijwuP.js} +1 -1
  114. package/dist/assets/{luma-BTc_oEx8.js → luma-DC40B8tL.js} +1 -1
  115. package/dist/assets/{midjourney-CGSfGnTI.js → midjourney-XBP74pFR.js} +1 -1
  116. package/dist/assets/{nanobanana-Co7IvZDU.js → nanobanana-DHolv0td.js} +1 -1
  117. package/dist/assets/{openaiimage-CiYgF1oS.js → openaiimage-COmDdgg9.js} +1 -1
  118. package/dist/assets/{pagination-sho_4mvI.js → pagination-DH5leY8A.js} +3 -3
  119. package/dist/assets/{pika-DFeGWhry.js → pika--x6r8JlL.js} +1 -1
  120. package/dist/assets/{pixverse-DPpyC5XF.js → pixverse-B5tqJ_b9.js} +1 -1
  121. package/dist/assets/popover-Cpr0N2Z1.js +1 -0
  122. package/dist/assets/{producer-joKKn6M4.js → producer-CrblN48L.js} +1 -1
  123. package/dist/assets/progress-C3UHYIHi.js +6 -0
  124. package/dist/assets/{qrart-DmLZ7wWd.js → qrart-Dfku4NkR.js} +1 -1
  125. package/dist/assets/radio-BmBXySlN.js +1 -0
  126. package/dist/assets/raf-NSjkkBtT.js +1 -0
  127. package/dist/assets/{repeat-click-bdfKzhUt.js → repeat-click-DbK3DhkT.js} +1 -1
  128. package/dist/assets/row-bfsY0Sup.js +1 -0
  129. package/dist/assets/{runtime-Cvku-lF9.js → runtime-B1Eal4u3.js} +1 -1
  130. package/dist/assets/{scroll-Dk1pKbmY.js → scroll-ChHyik37.js} +1 -1
  131. package/dist/assets/scrollbar-DcyQ_b2c.js +1 -0
  132. package/dist/assets/{seedance-BPVDnit8.js → seedance-BvTouhw7.js} +1 -1
  133. package/dist/assets/{seedream-1PZNci1g.js → seedream-C0OkbFis.js} +1 -1
  134. package/dist/assets/select-CxvkoR_I.js +1 -0
  135. package/dist/assets/{serp-u19n44y7.js → serp-DKGjlmaC.js} +1 -1
  136. package/dist/assets/skeleton-C4sltx62.js +1 -0
  137. package/dist/assets/slider-CfcYZR4R.js +1 -0
  138. package/dist/assets/solana-wallets-CrItVnUL.js +2 -0
  139. package/dist/assets/solana-wallets-vue-Cfl3r9NB.js +16 -0
  140. package/dist/assets/{sora-DL1Eu3V_.js → sora-Bk3RvCXZ.js} +1 -1
  141. package/dist/assets/strings-CaTtp-gD.js +1 -0
  142. package/dist/assets/{suno-D0R4gb6S.js → suno-Bbnp6P4i.js} +1 -1
  143. package/dist/assets/switch-BUEiwneZ.js +1 -0
  144. package/dist/assets/table-lRQt4LGt.js +1 -0
  145. package/dist/assets/tabs-dRngkdRx.js +1 -0
  146. package/dist/assets/{taskDrawerMixin-Cr17Yxqk.js → taskDrawerMixin-DEgO_R5H.js} +1 -1
  147. package/dist/assets/teleport-CVHCI9MK.js +1 -0
  148. package/dist/assets/{tooltip-C3PYfh8V.js → tooltip-BLwTovWL.js} +1 -1
  149. package/dist/assets/upload-cn_TUU3N.js +1 -0
  150. package/dist/assets/{use-aria-B1wQLdcx.js → use-aria-ldhUoRRB.js} +1 -1
  151. package/dist/assets/use-deprecated-BzKQGDXN.js +1 -0
  152. package/dist/assets/use-dialog-CLGp3CMB.js +1 -0
  153. package/dist/assets/{vendor-chart-mdwpew_o.js → vendor-chart-BJCvKk8-.js} +1 -1
  154. package/dist/assets/{vendor-vue-router-ChMPprnO.js → vendor-vue-router-WDnlh53U.js} +1 -1
  155. package/dist/assets/{veo-CYfZPVE4.js → veo-Cunbs9e5.js} +1 -1
  156. package/dist/assets/vnode-BC_9e2sB.js +1 -0
  157. package/dist/assets/{wan-dwlkdz78.js → wan-GH45xAZP.js} +1 -1
  158. package/dist/assets/{web-CiJfTemP.js → web-C9aK-R5v.js} +1 -1
  159. package/dist/assets/{web-_Pa-5yYB.js → web-CG6DXPr0.js} +1 -1
  160. package/dist/assets/{web-CqJ0KFOe.js → web-CXzkL4Px.js} +1 -1
  161. package/dist/assets/{web-BNYAxux2.js → web-C_klyBjH.js} +1 -1
  162. package/dist/assets/{web-BCYCv9_i.js → web-Cx3VD86e.js} +1 -1
  163. package/dist/assets/{webextrator-CxXqfJm3.js → webextrator-CI0OahQs.js} +1 -1
  164. package/dist/assets/wechat-CBB0_nqe.js +1 -0
  165. package/dist/index.html +13 -13
  166. package/package.json +5 -2
  167. package/dist/assets/ApiCodeButton-C6gLCf-Z.js +0 -1
  168. package/dist/assets/Auth-rjG5v1Zu.js +0 -1
  169. package/dist/assets/Bare-Bv4yJF2-.js +0 -1
  170. package/dist/assets/BotPlaceholder-C_RrL6-x.js +0 -1
  171. package/dist/assets/BottomFooter-DYHEXkR8.js +0 -1
  172. package/dist/assets/Consumption-sxyES3IM.js +0 -1
  173. package/dist/assets/Conversation-B1LkXj8C.js +0 -3
  174. package/dist/assets/CopyToClipboard-D8uYio89.js +0 -1
  175. package/dist/assets/Extra-Bph1prs-.js +0 -1
  176. package/dist/assets/Hailuo-Du-s8XoS.js +0 -1
  177. package/dist/assets/History-CehzioRT.js +0 -1
  178. package/dist/assets/ImagePreview-A5Uxs7St.js +0 -1
  179. package/dist/assets/ImageWrapper-q6dGYlku.js +0 -1
  180. package/dist/assets/Index--SVe2gf_.js +0 -1
  181. package/dist/assets/Index-B7ye1jps.js +0 -1
  182. package/dist/assets/Index-BFRB5Ecn.js +0 -1
  183. package/dist/assets/Index-BMZ7QDn4.js +0 -1
  184. package/dist/assets/Index-BVgjeXqY.js +0 -1
  185. package/dist/assets/Index-BWmJj-Ec.js +0 -1
  186. package/dist/assets/Index-BoY2-aI0.js +0 -1
  187. package/dist/assets/Index-C3FIbYj_.js +0 -1
  188. package/dist/assets/Index-CMp0mfWb.js +0 -1
  189. package/dist/assets/Index-CSvFys2c.js +0 -1
  190. package/dist/assets/Index-CmmpTMc1.js +0 -1
  191. package/dist/assets/Index-CuP83G9I.js +0 -1
  192. package/dist/assets/Index-CwCpcpVC.js +0 -1
  193. package/dist/assets/Index-DAwffrvQ.js +0 -1
  194. package/dist/assets/Index-DHWhU527.js +0 -1
  195. package/dist/assets/Index-DY12tQiR.js +0 -1
  196. package/dist/assets/Index-DlHycozQ.js +0 -1
  197. package/dist/assets/Index-DpOrn0vY.js +0 -1
  198. package/dist/assets/Index-DqOVMWDG.js +0 -1
  199. package/dist/assets/Index-Dqq9aZ6K.js +0 -2
  200. package/dist/assets/Index-Tsvr1KQ_.js +0 -1
  201. package/dist/assets/Index-cvsVkl66.js +0 -1
  202. package/dist/assets/Index-ocSH7ZvZ.js +0 -1
  203. package/dist/assets/Index-t0Cs_RZ8.js +0 -1
  204. package/dist/assets/Invitees-RCGTpw5d.js +0 -1
  205. package/dist/assets/List-BzAI-ui9.js +0 -1
  206. package/dist/assets/List-Cr7s548x.js +0 -1
  207. package/dist/assets/Main-BqfD4til.js +0 -1
  208. package/dist/assets/Main-y41dJXZG.css +0 -1
  209. package/dist/assets/Model-Bekj6zqJ.js +0 -1
  210. package/dist/assets/Navigator-dkWMjJ7c.js +0 -4
  211. package/dist/assets/NoTasks-Ze_beGGE.js +0 -1
  212. package/dist/assets/NotFound-DdFf8s7r.js +0 -1
  213. package/dist/assets/Pagination-uSqRcf5u.js +0 -1
  214. package/dist/assets/Pay-CJG9KOs8.js +0 -1
  215. package/dist/assets/Seedance-BThH9nJK.js +0 -1
  216. package/dist/assets/Status-BEBUGjir.js +0 -1
  217. package/dist/assets/TabSwitcher-fa4ctxOn.js +0 -1
  218. package/dist/assets/VideoPlayer-DDKrB3TS.js +0 -1
  219. package/dist/assets/alert-BJj7gY4q.js +0 -1
  220. package/dist/assets/avatar-B-r-EyXw.js +0 -1
  221. package/dist/assets/avatar-DJGt2zYX.js +0 -1
  222. package/dist/assets/button-DWzbdjZV.js +0 -1
  223. package/dist/assets/card-B1OoUKT4.js +0 -1
  224. package/dist/assets/castArray-BFcmUPBb.js +0 -1
  225. package/dist/assets/checkbox-hfJFSY6z.js +0 -1
  226. package/dist/assets/collapse-ldIH3UFR.js +0 -1
  227. package/dist/assets/collapse-transition-C7m30vMg.js +0 -1
  228. package/dist/assets/container-DUnSq7iO.js +0 -1
  229. package/dist/assets/date-picker-DU59CcgU.js +0 -1
  230. package/dist/assets/divider-Ba_Z3oBh.js +0 -1
  231. package/dist/assets/drawer-BvYPSxXh.js +0 -1
  232. package/dist/assets/dropdown-Dbdq5MEd.js +0 -1
  233. package/dist/assets/empty-D5eN5M0S.js +0 -1
  234. package/dist/assets/esm-BNNSASAI.js +0 -2
  235. package/dist/assets/esm-BWW4nO7I.js +0 -1
  236. package/dist/assets/image-BIhkq-3S.js +0 -1
  237. package/dist/assets/index-BbCaZ5EZ.js +0 -570
  238. package/dist/assets/input-number-B63gxX1G.js +0 -1
  239. package/dist/assets/isPlainObject-2p88HvQz.js +0 -1
  240. package/dist/assets/popover-CUhgirVQ.js +0 -1
  241. package/dist/assets/progress-Djs_fbqu.js +0 -6
  242. package/dist/assets/radio-IJQsW93X.js +0 -1
  243. package/dist/assets/raf-Bo8-dFzL.js +0 -1
  244. package/dist/assets/row-CaRpmAhk.js +0 -1
  245. package/dist/assets/scrollbar-BkgtdYMt.js +0 -1
  246. package/dist/assets/select-BxVmNFP6.js +0 -1
  247. package/dist/assets/skeleton-Cn4UY-T8.js +0 -1
  248. package/dist/assets/slider-CZsrZNiU.js +0 -1
  249. package/dist/assets/solana-wallets-Dvz6LEc2.js +0 -2
  250. package/dist/assets/solana-wallets-vue-nV27NBhX.js +0 -16
  251. package/dist/assets/strings-DaYxHDzK.js +0 -1
  252. package/dist/assets/switch-qy9A_eGr.js +0 -1
  253. package/dist/assets/table-fY8LUehs.js +0 -1
  254. package/dist/assets/tabs-DwY1eAPe.js +0 -1
  255. package/dist/assets/teleport-B3tPbGeJ.js +0 -1
  256. package/dist/assets/upload-B6XSKv2u.js +0 -1
  257. package/dist/assets/use-deprecated-CPfQu7wa.js +0 -1
  258. package/dist/assets/use-dialog-Daprv7SC.js +0 -1
  259. package/dist/assets/vnode-BMVwTmkF.js +0 -1
  260. package/dist/assets/wechat-iv-pzVEX.js +0 -1
@@ -2,4 +2,4 @@ import{r as e}from"./rolldown-runtime--c01j_DQ.js";function t(e){let t=Object.cr
2
2
  `&&(e.tagName===`PRE`||e.tagName===`TEXTAREA`)&&(n=n.slice(1));let{textContent:r}=e;r!==n&&r!==n.replace(/\r\n|\r/g,`
3
3
  `)&&(yi(e,0)||di(),e.textContent=t.children)}if(u){if(g||!s||d&48){let t=e.tagName.includes(`-`);for(let i in u)(g&&(i.endsWith(`value`)||i===`indeterminate`)||o(i)&&!D(i)||i[0]===`.`||t&&!D(i))&&r(e,i,null,u[i],void 0,n)}else if(u.onClick)r(e,`onClick`,null,u.onClick,void 0,n);else if(d&4&&Zt(u.style))for(let e in u.style)u.style[e]}let _;(_=u&&u.onVnodeBeforeMount)&&Ts(_,n,t),p&&mr(t,null,n,`beforeMount`),((_=u&&u.onVnodeMounted)||p||l)&&Xo(()=>{_&&Ts(_,n,t),l&&h.enter(e),p&&mr(t,null,n,`mounted`)},i)}return e.nextSibling},m=(e,t,r,o,s,c,u)=>{u||=!!t.dynamicChildren;let d=t.children,p=d.length,m=!1;for(let t=0;t<p;t++){let h=u?d[t]:d[t]=xs(d[t]),g=h.type===$o;e?(g&&!u&&t+1<p&&xs(d[t+1]).type===$o&&(l(i(e.data.slice(h.children.length)),r,a(e)),e.data=h.children),e=f(e,h,o,s,c,u)):g&&!h.children?l(h.el=i(``),r):(m||(m=!0,yi(r,1)||di()),n(null,h,r,null,o,s,mi(r),c))}return e},h=(e,t,n,r,i,o)=>{let{slotScopeIds:c}=t;c&&(i=i?i.concat(c):c);let d=s(e),f=m(a(e),t,d,n,r,i,o);return f&&hi(f)&&f.data===`]`?a(t.anchor=f):(di(),l(t.anchor=u(`]`),d,f),f)},g=(e,t,r,i,o,l)=>{if(yi(e.parentElement,1)||di(),t.el=null,l){let t=_(e);for(;;){let n=a(e);if(n&&n!==t)c(n);else break}}let u=a(e),d=s(e);return c(e),n(null,t,d,u,r,i,mi(d),o),r&&(r.vnode.el=t.el,lo(r,t.el)),u},_=(e,t=`[`,n=`]`)=>{let r=0;for(;e;)if(e=a(e),e&&hi(e)&&(e.data===t&&r++,e.data===n)){if(r===0)return a(e);r--}return e},v=(e,t,n)=>{let r=t.parentNode;r&&r.replaceChild(e,t);let i=n;for(;i;)i.vnode.el===t&&(i.vnode.el=i.subTree.el=e),i=i.parent},y=e=>e.nodeType===1&&e.tagName===`TEMPLATE`;return[d,f]}var _i=`data-allow-mismatch`,vi={0:`text`,1:`children`,2:`class`,3:`style`,4:`attribute`};function yi(e,t){if(t===0||t===1)for(;e&&!e.hasAttribute(_i);)e=e.parentElement;let n=e&&e.getAttribute(_i);if(n==null)return!1;if(n===``)return!0;{let e=n.split(`,`);return t===0&&e.includes(`children`)?!0:e.includes(vi[t])}}var bi=le().requestIdleCallback||(e=>setTimeout(e,1)),xi=le().cancelIdleCallback||(e=>clearTimeout(e)),Si=(e=1e4)=>t=>{let n=bi(t,{timeout:e});return()=>xi(n)};function Ci(e){let{top:t,left:n,bottom:r,right:i}=e.getBoundingClientRect(),{innerHeight:a,innerWidth:o}=window;return(t>0&&t<a||r>0&&r<a)&&(n>0&&n<o||i>0&&i<o)}var wi=e=>(t,n)=>{let r=new IntersectionObserver(e=>{for(let n of e)if(n.isIntersecting){r.disconnect(),t();break}},e);return n(e=>{if(e instanceof Element){if(Ci(e))return t(),r.disconnect(),!1;r.observe(e)}}),()=>r.disconnect()},Ti=e=>t=>{if(e){let n=matchMedia(e);if(n.matches)t();else return n.addEventListener(`change`,t,{once:!0}),()=>n.removeEventListener(`change`,t)}},Ei=(e=[])=>(t,n)=>{v(e)&&(e=[e]);let r=!1,i=e=>{r||(r=!0,a(),t(),e.target.dispatchEvent(new e.constructor(e.type,e)))},a=()=>{n(t=>{for(let n of e)t.removeEventListener(n,i)})};return n(t=>{for(let n of e)t.addEventListener(n,i,{once:!0})}),a};function Di(e,t){if(hi(e)&&e.data===`[`){let n=1,r=e.nextSibling;for(;r;){if(r.nodeType===1){if(t(r)===!1)break}else if(hi(r))if(r.data===`]`){if(--n===0)break}else r.data===`[`&&n++;r=r.nextSibling}}else t(e)}var Oi=e=>!!e.type.__asyncLoader;function ki(e){_(e)&&(e={loader:e});let{loader:t,loadingComponent:n,errorComponent:r,delay:i=200,hydrate:a,timeout:o,suspensible:s=!0,onError:c}=e,l=null,u,d=0,f=()=>(d++,l=null,p()),p=()=>{let e;return l||(e=l=t().catch(e=>{if(e=e instanceof Error?e:Error(String(e)),c)return new Promise((t,n)=>{c(e,()=>t(f()),()=>n(e),d+1)});throw e}).then(t=>e!==l&&l?l:(t&&(t.__esModule||t[Symbol.toStringTag]===`Module`)&&(t=t.default),u=t,t)))};return ni({name:`AsyncComponentWrapper`,__asyncLoader:p,__asyncHydrate(e,t,n){let r=!1;(t.bu||=[]).push(()=>r=!0);let i=()=>{r||n()},o=a?()=>{let n=a(i,t=>Di(e,t));n&&(t.bum||=[]).push(n)}:i;u?o():p().then(()=>!t.isUnmounted&&o())},get __asyncResolved(){return u},setup(){let e=H;if(ii(e),u)return()=>Ai(u,e);let t=t=>{l=null,Bn(t,e,13,!r)};if(s&&e.suspense||Ps)return p().then(t=>()=>Ai(t,e)).catch(e=>(t(e),()=>r?V(r,{error:e}):null));let a=an(!1),c=an(),d=an(!!i);return i&&setTimeout(()=>{d.value=!1},i),o!=null&&setTimeout(()=>{if(!a.value&&!c.value){let e=Error(`Async component timed out after ${o}ms.`);t(e),c.value=e}},o),p().then(()=>{a.value=!0,e.parent&&ji(e.parent.vnode)&&e.parent.update()}).catch(e=>{t(e),c.value=e}),()=>{if(a.value&&u)return Ai(u,e);if(c.value&&r)return V(r,{error:c.value});if(n&&!d.value)return Ai(n,e)}}})}function Ai(e,t){let{ref:n,props:r,children:i,ce:a}=t.vnode,o=V(e,r,i);return o.ref=n,o.ce=a,delete t.vnode.ce,o}var ji=e=>e.type.__isKeepAlive,Mi={name:`KeepAlive`,__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){let n=U(),r=n.ctx;if(!r.renderer)return()=>{let e=t.default&&t.default();return e&&e.length===1?e[0]:e};let i=new Map,a=new Set,o=null,s=n.suspense,{renderer:{p:c,m:l,um:u,o:{createElement:d}}}=r,f=d(`div`);r.activate=(e,t,n,r,i)=>{let a=e.component;l(e,t,n,0,s),c(a.vnode,e,t,n,a,s,r,e.slotScopeIds,i),L(()=>{a.isDeactivated=!1,a.a&&ie(a.a);let t=e.props&&e.props.onVnodeMounted;t&&Ts(t,a.parent,e)},s)},r.deactivate=e=>{let t=e.component;Ro(t.m),Ro(t.a),l(e,f,null,1,s),L(()=>{t.da&&ie(t.da);let n=e.props&&e.props.onVnodeUnmounted;n&&Ts(n,t.parent,e),t.isDeactivated=!0},s)};function p(e){Ri(e),u(e,n,s,!0)}function m(e){i.forEach((t,n)=>{let r=Ks(Oi(t)?t.type.__asyncResolved||{}:t.type);r&&!e(r)&&h(n)})}function h(e){let t=i.get(e);t&&(!o||!us(t,o))?p(t):o&&Ri(o),i.delete(e),a.delete(e)}Cr(()=>[e.include,e.exclude],([e,t])=>{e&&m(t=>Ni(e,t)),t&&m(e=>!Ni(t,e))},{flush:`post`,deep:!0});let g=null,_=()=>{g!=null&&(Bo(n.subTree.type)?L(()=>{i.set(g,zi(n.subTree))},n.subTree.suspense):i.set(g,zi(n.subTree)))};return Ui(_),Gi(_),Ki(()=>{i.forEach(e=>{let{subTree:t,suspense:r}=n,i=zi(t);if(e.type===i.type&&e.key===i.key){Ri(i);let e=i.component.da;e&&L(e,r);return}p(e)})}),()=>{if(g=null,!t.default)return o=null;let n=t.default(),r=n[0];if(n.length>1)return o=null,n;if(!ls(r)||!(r.shapeFlag&4)&&!(r.shapeFlag&128))return o=null,r;let s=zi(r);if(s.type===z)return o=null,s;let c=s.type,l=Ks(Oi(s)?s.type.__asyncResolved||{}:c),{include:u,exclude:d,max:f}=e;if(u&&(!l||!Ni(u,l))||d&&l&&Ni(d,l))return s.shapeFlag&=-257,o=s,r;let p=s.key==null?c:s.key,m=i.get(p);return s.el&&(s=_s(s),r.shapeFlag&128&&(r.ssContent=s)),g=p,m?(s.el=m.el,s.component=m.component,s.transition&&ei(s,s.transition),s.shapeFlag|=512,a.delete(p),a.add(p)):(a.add(p),f&&a.size>parseInt(f,10)&&h(a.values().next().value)),s.shapeFlag|=256,o=s,Bo(r.type)?r:s}}};function Ni(e,t){return f(e)?e.some(e=>Ni(e,t)):v(e)?e.split(`,`).includes(t):g(e)?(e.lastIndex=0,e.test(t)):!1}function Pi(e,t){Ii(e,`a`,t)}function Fi(e,t){Ii(e,`da`,t)}function Ii(e,t,n=H){let r=e.__wdc||=()=>{let t=n;for(;t;){if(t.isDeactivated)return;t=t.parent}return e()};if(Bi(t,r,n),n){let e=n.parent;for(;e&&e.parent;)ji(e.parent.vnode)&&Li(r,t,n,e),e=e.parent}}function Li(e,t,n,r){let i=Bi(t,e,r,!0);qi(()=>{l(r[t],i)},n)}function Ri(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function zi(e){return e.shapeFlag&128?e.ssContent:e}function Bi(e,t,n=H,r=!1){if(n){let i=n[e]||(n[e]=[]),a=t.__weh||=(...r)=>{Ze();let i=js(n),a=zn(t,n,e,r);return i(),Qe(),a};return r?i.unshift(a):i.push(a),a}}var Vi=e=>(t,n=H)=>{(!Ps||e===`sp`)&&Bi(e,(...e)=>t(...e),n)},Hi=Vi(`bm`),Ui=Vi(`m`),Wi=Vi(`bu`),Gi=Vi(`u`),Ki=Vi(`bum`),qi=Vi(`um`),Ji=Vi(`sp`),Yi=Vi(`rtg`),Xi=Vi(`rtc`);function Zi(e,t=H){Bi(`ec`,e,t)}var Qi=`components`,$i=`directives`;function ea(e,t){return ia(Qi,e,!0,t)||e}var ta=Symbol.for(`v-ndc`);function na(e){return v(e)?ia(Qi,e,!1)||e:e||ta}function ra(e){return ia($i,e)}function ia(e,t,n=!0,r=!1){let i=I||H;if(i){let n=i.type;if(e===Qi){let e=Ks(n,!1);if(e&&(e===t||e===k(t)||e===ne(k(t))))return n}let a=aa(i[e]||n[e],t)||aa(i.appContext[e],t);return!a&&r?n:a}}function aa(e,t){return e&&(e[t]||e[k(t)]||e[ne(k(t))])}function oa(e,t,n,r){let i,a=n&&n[r],o=f(e);if(o||v(e)){let n=o&&Zt(e),r=!1,s=!1;n&&(r=!$t(e),s=Qt(e),e=ft(e)),i=Array(e.length);for(let n=0,o=e.length;n<o;n++)i[n]=t(r?s?rn(nn(e[n])):nn(e[n]):e[n],n,void 0,a&&a[n])}else if(typeof e==`number`){i=Array(e);for(let n=0;n<e;n++)i[n]=t(n+1,n,void 0,a&&a[n])}else if(b(e))if(e[Symbol.iterator])i=Array.from(e,(e,n)=>t(e,n,void 0,a&&a[n]));else{let n=Object.keys(e);i=Array(n.length);for(let r=0,o=n.length;r<o;r++){let o=n[r];i[r]=t(e[o],o,r,a&&a[r])}}else i=[];return n&&(n[r]=i),i}function sa(e,t){for(let n=0;n<t.length;n++){let r=t[n];if(f(r))for(let t=0;t<r.length;t++)e[r[t].name]=r[t].fn;else r&&(e[r.name]=r.key?(...e)=>{let t=r.fn(...e);return t&&(t.key=r.key),t}:r.fn)}return e}function ca(e,t,n={},r,i){if(I.ce||I.parent&&Oi(I.parent)&&I.parent.ce){let e=Object.keys(n).length>0;return t!==`default`&&(n.name=t),ns(),cs(R,null,[V(`slot`,n,r&&r())],e?-2:64)}let a=e[t];a&&a._c&&(a._d=!1),ns();let o=a&&la(a(n)),s=n.key||o&&o.key,c=cs(R,{key:(s&&!y(s)?s:`_${t}`)+(!o&&r?`_fb`:``)},o||(r?r():[]),o&&e._===1?64:-2);return!i&&c.scopeId&&(c.slotScopeIds=[c.scopeId+`-s`]),a&&a._c&&(a._d=!0),c}function la(e){return e.some(e=>ls(e)?!(e.type===z||e.type===R&&!la(e.children)):!0)?e:null}function ua(e,t){let n={};for(let r in e)n[t&&/[A-Z]/.test(r)?`on:${r}`:re(r)]=e[r];return n}var da=e=>e?Ns(e)?Gs(e):da(e.parent):null,fa=c(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>da(e.parent),$root:e=>da(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Ia(e),$forceUpdate:e=>e.f||=()=>{Zn(e.update)},$nextTick:e=>e.n||=Yn.bind(e.proxy),$watch:e=>Tr.bind(e)}),pa=(e,t)=>e!==n&&!e.__isScriptSetup&&d(e,t),ma={get({_:e},t){if(t===`__v_skip`)return!0;let{ctx:r,setupState:i,data:a,props:o,accessCache:s,type:c,appContext:l}=e;if(t[0]!==`$`){let e=s[t];if(e!==void 0)switch(e){case 1:return i[t];case 2:return a[t];case 4:return r[t];case 3:return o[t]}else if(pa(i,t))return s[t]=1,i[t];else if(a!==n&&d(a,t))return s[t]=2,a[t];else if(d(o,t))return s[t]=3,o[t];else if(r!==n&&d(r,t))return s[t]=4,r[t];else ja&&(s[t]=0)}let u=fa[t],f,p;if(u)return t===`$attrs`&&ct(e.attrs,`get`,``),u(e);if((f=c.__cssModules)&&(f=f[t]))return f;if(r!==n&&d(r,t))return s[t]=4,r[t];if(p=l.config.globalProperties,d(p,t))return p[t]},set({_:e},t,r){let{data:i,setupState:a,ctx:o}=e;return pa(a,t)?(a[t]=r,!0):i!==n&&d(i,t)?(i[t]=r,!0):d(e.props,t)||t[0]===`$`&&t.slice(1)in e?!1:(o[t]=r,!0)},has({_:{data:e,setupState:t,accessCache:r,ctx:i,appContext:a,props:o,type:s}},c){let l;return!!(r[c]||e!==n&&c[0]!==`$`&&d(e,c)||pa(t,c)||d(o,c)||d(i,c)||d(fa,c)||d(a.config.globalProperties,c)||(l=s.__cssModules)&&l[c])},defineProperty(e,t,n){return n.get==null?d(n,`value`)&&this.set(e,t,n.value,null):e._.accessCache[t]=0,Reflect.defineProperty(e,t,n)}},ha=c({},ma,{get(e,t){if(t!==Symbol.unscopables)return ma.get(e,t,e)},has(e,t){return t[0]!==`_`&&!ue(t)}});function ga(){return null}function _a(){return null}function va(e){}function ya(e){}function ba(){return null}function xa(){}function Sa(e,t){return null}function Ca(){return Ta(`useSlots`).slots}function wa(){return Ta(`useAttrs`).attrs}function Ta(e){let t=U();return t.setupContext||=Ws(t)}function Ea(e){return f(e)?e.reduce((e,t)=>(e[t]=null,e),{}):e}function Da(e,t){let n=Ea(e);for(let e in t){if(e.startsWith(`__skip`))continue;let r=n[e];r?f(r)||_(r)?r=n[e]={type:r,default:t[e]}:r.default=t[e]:r===null&&(r=n[e]={default:t[e]}),r&&t[`__skip_${e}`]&&(r.skipFactory=!0)}return n}function Oa(e,t){return!e||!t?e||t:f(e)&&f(t)?e.concat(t):c({},Ea(e),Ea(t))}function ka(e,t){let n={};for(let r in e)t.includes(r)||Object.defineProperty(n,r,{enumerable:!0,get:()=>e[r]});return n}function Aa(e){let t=U(),n=Ps,r=e();Ms(),n&&As(!1);let i=()=>{js(t),n&&As(!0)},a=()=>{U()!==t&&t.scope.off(),Ms(),n&&As(!1)};return x(r)&&(r=r.catch(e=>{throw i(),Promise.resolve().then(()=>Promise.resolve().then(a)),e})),[r,()=>{i(),Promise.resolve().then(a)}]}var ja=!0;function Ma(e){let t=Ia(e),n=e.proxy,r=e.ctx;ja=!1,t.beforeCreate&&Pa(t.beforeCreate,e,`bc`);let{data:a,computed:o,methods:s,watch:c,provide:l,inject:u,created:d,beforeMount:p,mounted:m,beforeUpdate:h,updated:g,activated:v,deactivated:y,beforeDestroy:x,beforeUnmount:S,destroyed:C,unmounted:w,render:T,renderTracked:E,renderTriggered:D,errorCaptured:O,serverPrefetch:ee,expose:k,inheritAttrs:te,components:A,directives:ne,filters:re}=t;if(u&&Na(u,r,null),s)for(let e in s){let t=s[e];_(t)&&(r[e]=t.bind(n))}if(a){let t=a.call(n,n);b(t)&&(e.data=Kt(t))}if(ja=!0,o)for(let e in o){let t=o[e],a=Js({get:_(t)?t.bind(n,n):_(t.get)?t.get.bind(n,n):i,set:!_(t)&&_(t.set)?t.set.bind(n):i});Object.defineProperty(r,e,{enumerable:!0,configurable:!0,get:()=>a.value,set:e=>a.value=e})}if(c)for(let e in c)Fa(c[e],r,n,e);if(l){let e=_(l)?l.call(n):l;Reflect.ownKeys(e).forEach(t=>{hr(t,e[t])})}d&&Pa(d,e,`c`);function j(e,t){f(t)?t.forEach(t=>e(t.bind(n))):t&&e(t.bind(n))}if(j(Hi,p),j(Ui,m),j(Wi,h),j(Gi,g),j(Pi,v),j(Fi,y),j(Zi,O),j(Xi,E),j(Yi,D),j(Ki,S),j(qi,w),j(Ji,ee),f(k))if(k.length){let t=e.exposed||={};k.forEach(e=>{Object.defineProperty(t,e,{get:()=>n[e],set:t=>n[e]=t,enumerable:!0})})}else e.exposed||={};T&&e.render===i&&(e.render=T),te!=null&&(e.inheritAttrs=te),A&&(e.components=A),ne&&(e.directives=ne),ee&&ii(e)}function Na(e,t,n=i){f(e)&&(e=Va(e));for(let n in e){let r=e[n],i;i=b(r)?`default`in r?gr(r.from||n,r.default,!0):gr(r.from||n):gr(r),F(i)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>i.value,set:e=>i.value=e}):t[n]=i}}function Pa(e,t,n){zn(f(e)?e.map(e=>e.bind(t.proxy)):e.bind(t.proxy),t,n)}function Fa(e,t,n,r){let i=r.includes(`.`)?Er(n,r):()=>n[r];if(v(e)){let n=t[e];_(n)&&Cr(i,n)}else if(_(e))Cr(i,e.bind(n));else if(b(e))if(f(e))e.forEach(e=>Fa(e,t,n,r));else{let r=_(e.handler)?e.handler.bind(n):t[e.handler];_(r)&&Cr(i,r,e)}}function Ia(e){let t=e.type,{mixins:n,extends:r}=t,{mixins:i,optionsCache:a,config:{optionMergeStrategies:o}}=e.appContext,s=a.get(t),c;return s?c=s:!i.length&&!n&&!r?c=t:(c={},i.length&&i.forEach(e=>La(c,e,o,!0)),La(c,t,o)),b(t)&&a.set(t,c),c}function La(e,t,n,r=!1){let{mixins:i,extends:a}=t;a&&La(e,a,n,!0),i&&i.forEach(t=>La(e,t,n,!0));for(let i in t)if(!(r&&i===`expose`)){let r=Ra[i]||n&&n[i];e[i]=r?r(e[i],t[i]):t[i]}return e}var Ra={data:za,props:Wa,emits:Wa,methods:Ua,computed:Ua,beforeCreate:Ha,created:Ha,beforeMount:Ha,mounted:Ha,beforeUpdate:Ha,updated:Ha,beforeDestroy:Ha,beforeUnmount:Ha,destroyed:Ha,unmounted:Ha,activated:Ha,deactivated:Ha,errorCaptured:Ha,serverPrefetch:Ha,components:Ua,directives:Ua,watch:Ga,provide:za,inject:Ba};function za(e,t){return t?e?function(){return c(_(e)?e.call(this,this):e,_(t)?t.call(this,this):t)}:t:e}function Ba(e,t){return Ua(Va(e),Va(t))}function Va(e){if(f(e)){let t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function Ha(e,t){return e?[...new Set([].concat(e,t))]:t}function Ua(e,t){return e?c(Object.create(null),e,t):t}function Wa(e,t){return e?f(e)&&f(t)?[...new Set([...e,...t])]:c(Object.create(null),Ea(e),Ea(t??{})):t}function Ga(e,t){if(!e)return t;if(!t)return e;let n=c(Object.create(null),e);for(let r in t)n[r]=Ha(e[r],t[r]);return n}function Ka(){return{app:null,config:{isNativeTag:a,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}var qa=0;function Ja(e,t){return function(n,r=null){_(n)||(n=c({},n)),r!=null&&!b(r)&&(r=null);let i=Ka(),a=new WeakSet,o=[],s=!1,l=i.app={_uid:qa++,_component:n,_props:r,_container:null,_context:i,_instance:null,version:$s,get config(){return i.config},set config(e){},use(e,...t){return a.has(e)||(e&&_(e.install)?(a.add(e),e.install(l,...t)):_(e)&&(a.add(e),e(l,...t))),l},mixin(e){return i.mixins.includes(e)||i.mixins.push(e),l},component(e,t){return t?(i.components[e]=t,l):i.components[e]},directive(e,t){return t?(i.directives[e]=t,l):i.directives[e]},mount(a,o,c){if(!s){let u=l._ceVNode||V(n,r);return u.appContext=i,c===!0?c=`svg`:c===!1&&(c=void 0),o&&t?t(u,a):e(u,a,c),s=!0,l._container=a,a.__vue_app__=l,Gs(u.component)}},onUnmount(e){o.push(e)},unmount(){s&&(zn(o,l._instance,16),e(null,l._container),delete l._container.__vue_app__)},provide(e,t){return i.provides[e]=t,l},runWithContext(e){let t=Ya;Ya=l;try{return e()}finally{Ya=t}}};return l}}var Ya=null;function Xa(e,t,r=n){let i=U(),a=k(t),o=A(t),s=Za(e,a),c=hn((s,c)=>{let l,u=n,d;return Sr(()=>{let t=e[a];j(l,t)&&(l=t,c())}),{get(){return s(),r.get?r.get(l):l},set(e){let s=r.set?r.set(e):e;if(!j(s,l)&&!(u!==n&&j(e,u)))return;let f=i.vnode.props;f&&(t in f||a in f||o in f)&&(`onUpdate:${t}`in f||`onUpdate:${a}`in f||`onUpdate:${o}`in f)||(l=e,c()),i.emit(`update:${t}`,s),j(e,s)&&j(e,u)&&!j(s,d)&&c(),u=e,d=s}}});return c[Symbol.iterator]=()=>{let e=0;return{next(){return e<2?{value:e++?s||n:c,done:!1}:{done:!0}}}},c}var Za=(e,t)=>t===`modelValue`||t===`model-value`?e.modelModifiers:e[`${t}Modifiers`]||e[`${k(t)}Modifiers`]||e[`${A(t)}Modifiers`];function Qa(e,t,...r){if(e.isUnmounted)return;let i=e.vnode.props||n,a=r,o=t.startsWith(`update:`),s=o&&Za(i,t.slice(7));s&&(s.trim&&(a=r.map(e=>v(e)?e.trim():e)),s.number&&(a=r.map(oe)));let c,l=i[c=re(t)]||i[c=re(k(t))];!l&&o&&(l=i[c=re(A(t))]),l&&zn(l,e,6,a);let u=i[c+`Once`];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[c])return;e.emitted[c]=!0,zn(u,e,6,a)}}var $a=new WeakMap;function eo(e,t,n=!1){let r=n?$a:t.emitsCache,i=r.get(e);if(i!==void 0)return i;let a=e.emits,o={},s=!1;if(!_(e)){let r=e=>{let n=eo(e,t,!0);n&&(s=!0,c(o,n))};!n&&t.mixins.length&&t.mixins.forEach(r),e.extends&&r(e.extends),e.mixins&&e.mixins.forEach(r)}return!a&&!s?(b(e)&&r.set(e,null),null):(f(a)?a.forEach(e=>o[e]=null):c(o,a),b(e)&&r.set(e,o),o)}function to(e,t){return!e||!o(t)?!1:(t=t.slice(2).replace(/Once$/,``),d(e,t[0].toLowerCase()+t.slice(1))||d(e,A(t))||d(e,t))}function no(e){let{type:t,vnode:n,proxy:r,withProxy:i,propsOptions:[a],slots:o,attrs:c,emit:l,render:u,renderCache:d,props:f,data:p,setupState:m,ctx:h,inheritAttrs:g}=e,_=cr(e),v,y;try{if(n.shapeFlag&4){let e=i||r,t=e;v=xs(u.call(t,e,d,f,m,p,h)),y=c}else{let e=t;v=xs(e.length>1?e(f,{attrs:c,slots:o,emit:l}):e(f,null)),y=t.props?c:io(c)}}catch(t){ts.length=0,Bn(t,e,1),v=V(z)}let b=v;if(y&&g!==!1){let e=Object.keys(y),{shapeFlag:t}=b;e.length&&t&7&&(a&&e.some(s)&&(y=ao(y,a)),b=_s(b,y,!1,!0))}return n.dirs&&(b=_s(b,null,!1,!0),b.dirs=b.dirs?b.dirs.concat(n.dirs):n.dirs),n.transition&&ei(b,n.transition),v=b,cr(_),v}function ro(e,t=!0){let n;for(let t=0;t<e.length;t++){let r=e[t];if(ls(r)){if(r.type!==z||r.children===`v-if`){if(n)return;n=r}}else return}return n}var io=e=>{let t;for(let n in e)(n===`class`||n===`style`||o(n))&&((t||={})[n]=e[n]);return t},ao=(e,t)=>{let n={};for(let r in e)(!s(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function oo(e,t,n){let{props:r,children:i,component:a}=e,{props:o,children:s,patchFlag:c}=t,l=a.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&c>=0){if(c&1024)return!0;if(c&16)return r?so(r,o,l):!!o;if(c&8){let e=t.dynamicProps;for(let t=0;t<e.length;t++){let n=e[t];if(co(o,r,n)&&!to(l,n))return!0}}}else return(i||s)&&(!s||!s.$stable)?!0:r===o?!1:r?o?so(r,o,l):!0:!!o;return!1}function so(e,t,n){let r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let i=0;i<r.length;i++){let a=r[i];if(co(t,e,a)&&!to(n,a))return!0}return!1}function co(e,t,n){let r=e[n],i=t[n];return n===`style`&&b(r)&&b(i)?!Se(r,i):r!==i}function lo({vnode:e,parent:t,suspense:n},r){for(;t;){let n=t.subTree;if(n.suspense&&n.suspense.activeBranch===e&&(n.suspense.vnode.el=n.el=r,e=n),n===e)(e=t.vnode).el=r,t=t.parent;else break}n&&n.activeBranch===e&&(n.vnode.el=r)}var uo={},fo=()=>Object.create(uo),po=e=>Object.getPrototypeOf(e)===uo;function mo(e,t,n,r=!1){let i={},a=fo();e.propsDefaults=Object.create(null),go(e,t,i,a);for(let t in e.propsOptions[0])t in i||(i[t]=void 0);n?e.props=r?i:qt(i):e.type.props?e.props=i:e.props=a,e.attrs=a}function ho(e,t,n,r){let{props:i,attrs:a,vnode:{patchFlag:o}}=e,s=P(i),[c]=e.propsOptions,l=!1;if((r||o>0)&&!(o&16)){if(o&8){let n=e.vnode.dynamicProps;for(let r=0;r<n.length;r++){let o=n[r];if(to(e.emitsOptions,o))continue;let u=t[o];if(c)if(d(a,o))u!==a[o]&&(a[o]=u,l=!0);else{let t=k(o);i[t]=_o(c,s,t,u,e,!1)}else u!==a[o]&&(a[o]=u,l=!0)}}}else{go(e,t,i,a)&&(l=!0);let r;for(let a in s)(!t||!d(t,a)&&((r=A(a))===a||!d(t,r)))&&(c?n&&(n[a]!==void 0||n[r]!==void 0)&&(i[a]=_o(c,s,a,void 0,e,!0)):delete i[a]);if(a!==s)for(let e in a)(!t||!d(t,e))&&(delete a[e],l=!0)}l&&lt(e.attrs,`set`,``)}function go(e,t,r,i){let[a,o]=e.propsOptions,s=!1,c;if(t)for(let n in t){if(D(n))continue;let l=t[n],u;a&&d(a,u=k(n))?!o||!o.includes(u)?r[u]=l:(c||={})[u]=l:to(e.emitsOptions,n)||(!(n in i)||l!==i[n])&&(i[n]=l,s=!0)}if(o){let t=P(r),i=c||n;for(let n=0;n<o.length;n++){let s=o[n];r[s]=_o(a,t,s,i[s],e,!d(i,s))}}return s}function _o(e,t,n,r,i,a){let o=e[n];if(o!=null){let e=d(o,`default`);if(e&&r===void 0){let e=o.default;if(o.type!==Function&&!o.skipFactory&&_(e)){let{propsDefaults:a}=i;if(n in a)r=a[n];else{let o=js(i);r=a[n]=e.call(null,t),o()}}else r=e;i.ce&&i.ce._setProp(n,r)}o[0]&&(a&&!e?r=!1:o[1]&&(r===``||r===A(n))&&(r=!0))}return r}var vo=new WeakMap;function yo(e,t,i=!1){let a=i?vo:t.propsCache,o=a.get(e);if(o)return o;let s=e.props,l={},u=[],p=!1;if(!_(e)){let n=e=>{p=!0;let[n,r]=yo(e,t,!0);c(l,n),r&&u.push(...r)};!i&&t.mixins.length&&t.mixins.forEach(n),e.extends&&n(e.extends),e.mixins&&e.mixins.forEach(n)}if(!s&&!p)return b(e)&&a.set(e,r),r;if(f(s))for(let e=0;e<s.length;e++){let t=k(s[e]);bo(t)&&(l[t]=n)}else if(s)for(let e in s){let t=k(e);if(bo(t)){let n=s[e],r=l[t]=f(n)||_(n)?{type:n}:c({},n),i=r.type,a=!1,o=!0;if(f(i))for(let e=0;e<i.length;++e){let t=i[e],n=_(t)&&t.name;if(n===`Boolean`){a=!0;break}else n===`String`&&(o=!1)}else a=_(i)&&i.name===`Boolean`;r[0]=a,r[1]=o,(a||d(r,`default`))&&u.push(t)}}let m=[l,u];return b(e)&&a.set(e,m),m}function bo(e){return e[0]!==`$`&&!D(e)}var xo=e=>e===`_`||e===`_ctx`||e===`$stable`,So=e=>f(e)?e.map(xs):[xs(e)],Co=(e,t,n)=>{if(t._n)return t;let r=fr((...e)=>So(t(...e)),n);return r._c=!1,r},wo=(e,t,n)=>{let r=e._ctx;for(let n in e){if(xo(n))continue;let i=e[n];if(_(i))t[n]=Co(n,i,r);else if(i!=null){let e=So(i);t[n]=()=>e}}},To=(e,t)=>{let n=So(t);e.slots.default=()=>n},Eo=(e,t,n)=>{for(let r in t)(n||!xo(r))&&(e[r]=t[r])},Do=(e,t,n)=>{let r=e.slots=fo();if(e.vnode.shapeFlag&32){let e=t._;e?(Eo(r,t,n),n&&ae(r,`_`,e,!0)):wo(t,r)}else t&&To(e,t)},Oo=(e,t,r)=>{let{vnode:i,slots:a}=e,o=!0,s=n;if(i.shapeFlag&32){let e=t._;e?r&&e===1?o=!1:Eo(a,t,r):(o=!t.$stable,wo(t,a)),s=t}else t&&(To(e,t),s={default:1});if(o)for(let e in a)!xo(e)&&s[e]==null&&delete a[e]},L=Xo;function ko(e){return jo(e)}function Ao(e){return jo(e,gi)}function jo(e,t){let a=le();a.__VUE__=!0;let{insert:o,remove:s,patchProp:c,createElement:l,createText:u,createComment:d,setText:f,setElementText:p,parentNode:m,nextSibling:h,setScopeId:g=i,insertStaticContent:_}=e,v=(e,t,n,r=null,i=null,a=null,o=void 0,s=null,c=!!t.dynamicChildren)=>{if(e===t)return;e&&!us(e,t)&&(r=_e(e),fe(e,i,a,!0),e=null),t.patchFlag===-2&&(c=!1,t.dynamicChildren=null);let{type:l,ref:u,shapeFlag:d}=t;switch(l){case $o:y(e,t,n,r);break;case z:b(e,t,n,r);break;case es:e??x(t,n,r,o);break;case R:A(e,t,n,r,i,a,o,s,c);break;default:d&1?w(e,t,n,r,i,a,o,s,c):d&6?ne(e,t,n,r,i,a,o,s,c):(d&64||d&128)&&l.process(e,t,n,r,i,a,o,s,c,be)}u!=null&&i?ci(u,e&&e.ref,a,t||e,!t):u==null&&e&&e.ref!=null&&ci(e.ref,null,a,e,!0)},y=(e,t,n,r)=>{if(e==null)o(t.el=u(t.children),n,r);else{let n=t.el=e.el;t.children!==e.children&&f(n,t.children)}},b=(e,t,n,r)=>{e==null?o(t.el=d(t.children||``),n,r):t.el=e.el},x=(e,t,n,r)=>{[e.el,e.anchor]=_(e.children,t,n,r,e.el,e.anchor)},S=({el:e,anchor:t},n,r)=>{let i;for(;e&&e!==t;)i=h(e),o(e,n,r),e=i;o(t,n,r)},C=({el:e,anchor:t})=>{let n;for(;e&&e!==t;)n=h(e),s(e),e=n;s(t)},w=(e,t,n,r,i,a,o,s,c)=>{if(t.type===`svg`?o=`svg`:t.type===`math`&&(o=`mathml`),e==null)T(t,n,r,i,a,o,s,c);else{let n=e.el&&e.el._isVueCE?e.el:null;try{n&&n._beginPatch(),ee(e,t,i,a,o,s,c)}finally{n&&n._endPatch()}}},T=(e,t,n,r,i,a,s,u)=>{let d,f,{props:m,shapeFlag:h,transition:g,dirs:_}=e;if(d=e.el=l(e.type,a,m&&m.is,m),h&8?p(d,e.children):h&16&&O(e.children,d,null,r,i,Mo(e,a),s,u),_&&mr(e,null,r,`created`),E(d,e,e.scopeId,s,r),m){for(let e in m)e!==`value`&&!D(e)&&c(d,e,null,m[e],a,r);`value`in m&&c(d,`value`,null,m.value,a),(f=m.onVnodeBeforeMount)&&Ts(f,r,e)}_&&mr(e,null,r,`beforeMount`);let v=Po(i,g);v&&g.beforeEnter(d),o(d,t,n),((f=m&&m.onVnodeMounted)||v||_)&&L(()=>{try{f&&Ts(f,r,e),v&&g.enter(d),_&&mr(e,null,r,`mounted`)}finally{}},i)},E=(e,t,n,r,i)=>{if(n&&g(e,n),r)for(let t=0;t<r.length;t++)g(e,r[t]);if(i){let n=i.subTree;if(t===n||Bo(n.type)&&(n.ssContent===t||n.ssFallback===t)){let t=i.vnode;E(e,t,t.scopeId,t.slotScopeIds,i.parent)}}},O=(e,t,n,r,i,a,o,s,c=0)=>{for(let l=c;l<e.length;l++)v(null,e[l]=s?Ss(e[l]):xs(e[l]),t,n,r,i,a,o,s)},ee=(e,t,r,i,a,o,s)=>{let l=t.el=e.el,{patchFlag:u,dynamicChildren:d,dirs:f}=t;u|=e.patchFlag&16;let m=e.props||n,h=t.props||n,g;if(r&&No(r,!1),(g=h.onVnodeBeforeUpdate)&&Ts(g,r,t,e),f&&mr(t,e,r,`beforeUpdate`),r&&No(r,!0),(m.innerHTML&&h.innerHTML==null||m.textContent&&h.textContent==null)&&p(l,``),d?k(e.dynamicChildren,d,l,r,i,Mo(t,a),o):s||se(e,t,l,null,r,i,Mo(t,a),o,!1),u>0){if(u&16)te(l,m,h,r,a);else if(u&2&&m.class!==h.class&&c(l,`class`,null,h.class,a),u&4&&c(l,`style`,m.style,h.style,a),u&8){let e=t.dynamicProps;for(let t=0;t<e.length;t++){let n=e[t],i=m[n],o=h[n];(o!==i||n===`value`)&&c(l,n,i,o,a,r)}}u&1&&e.children!==t.children&&p(l,t.children)}else !s&&d==null&&te(l,m,h,r,a);((g=h.onVnodeUpdated)||f)&&L(()=>{g&&Ts(g,r,t,e),f&&mr(t,e,r,`updated`)},i)},k=(e,t,n,r,i,a,o)=>{for(let s=0;s<t.length;s++){let c=e[s],l=t[s];v(c,l,c.el&&(c.type===R||!us(c,l)||c.shapeFlag&198)?m(c.el):n,null,r,i,a,o,!0)}},te=(e,t,r,i,a)=>{if(t!==r){if(t!==n)for(let n in t)!D(n)&&!(n in r)&&c(e,n,t[n],null,a,i);for(let n in r){if(D(n))continue;let o=r[n],s=t[n];o!==s&&n!==`value`&&c(e,n,s,o,a,i)}`value`in r&&c(e,`value`,t.value,r.value,a)}},A=(e,t,n,r,i,a,s,c,l)=>{let d=t.el=e?e.el:u(``),f=t.anchor=e?e.anchor:u(``),{patchFlag:p,dynamicChildren:m,slotScopeIds:h}=t;h&&(c=c?c.concat(h):h),e==null?(o(d,n,r),o(f,n,r),O(t.children||[],n,f,i,a,s,c,l)):p>0&&p&64&&m&&e.dynamicChildren&&e.dynamicChildren.length===m.length?(k(e.dynamicChildren,m,n,i,a,s,c),(t.key!=null||i&&t===i.subTree)&&Fo(e,t,!0)):se(e,t,n,f,i,a,s,c,l)},ne=(e,t,n,r,i,a,o,s,c)=>{t.slotScopeIds=s,e==null?t.shapeFlag&512?i.ctx.activate(t,n,r,o,c):re(t,n,r,i,a,o,c):j(e,t,c)},re=(e,t,n,r,i,a,o)=>{let s=e.component=Os(e,r,i);if(ji(e)&&(s.ctx.renderer=be),Fs(s,!1,o),s.asyncDep){if(i&&i.registerDep(s,ae,o),!e.el){let r=s.subTree=V(z);b(null,r,t,n),e.placeholder=r.el}}else ae(s,e,t,n,i,a,o)},j=(e,t,n)=>{let r=t.component=e.component;if(oo(e,t,n))if(r.asyncDep&&!r.asyncResolved){oe(r,t,n);return}else r.next=t,r.update();else t.el=e.el,r.vnode=t},ae=(e,t,n,r,i,a,o)=>{let s=()=>{if(e.isMounted){let{next:t,bu:n,u:r,parent:s,vnode:c}=e;{let n=Lo(e);if(n){t&&(t.el=c.el,oe(e,t,o)),n.asyncDep.then(()=>{L(()=>{e.isUnmounted||l()},i)});return}}let u=t,d;No(e,!1),t?(t.el=c.el,oe(e,t,o)):t=c,n&&ie(n),(d=t.props&&t.props.onVnodeBeforeUpdate)&&Ts(d,s,t,c),No(e,!0);let f=no(e),p=e.subTree;e.subTree=f,v(p,f,m(p.el),_e(p),e,i,a),t.el=f.el,u===null&&lo(e,f.el),r&&L(r,i),(d=t.props&&t.props.onVnodeUpdated)&&L(()=>Ts(d,s,t,c),i)}else{let o,{el:s,props:c}=t,{bm:l,m:u,parent:d,root:f,type:p}=e,m=Oi(t);if(No(e,!1),l&&ie(l),!m&&(o=c&&c.onVnodeBeforeMount)&&Ts(o,d,t),No(e,!0),s&&Se){let t=()=>{e.subTree=no(e),Se(s,e.subTree,e,i,null)};m&&p.__asyncHydrate?p.__asyncHydrate(s,e,t):t()}else{f.ce&&f.ce._hasShadowRoot()&&f.ce._injectChildStyle(p,e.parent?e.parent.type:void 0);let o=e.subTree=no(e);v(null,o,n,r,e,i,a),t.el=o.el}if(u&&L(u,i),!m&&(o=c&&c.onVnodeMounted)){let e=t;L(()=>Ts(o,d,e),i)}(t.shapeFlag&256||d&&Oi(d.vnode)&&d.vnode.shapeFlag&256)&&e.a&&L(e.a,i),e.isMounted=!0,t=n=r=null}};e.scope.on();let c=e.effect=new Pe(s);e.scope.off();let l=e.update=c.run.bind(c),u=e.job=c.runIfDirty.bind(c);u.i=e,u.id=e.uid,c.scheduler=()=>Zn(u),No(e,!0),l()},oe=(e,t,n)=>{t.component=e;let r=e.vnode.props;e.vnode=t,e.next=null,ho(e,t.props,r,n),Oo(e,t.children,n),Ze(),er(e),Qe()},se=(e,t,n,r,i,a,o,s,c=!1)=>{let l=e&&e.children,u=e?e.shapeFlag:0,d=t.children,{patchFlag:f,shapeFlag:m}=t;if(f>0){if(f&128){ue(l,d,n,r,i,a,o,s,c);return}else if(f&256){ce(l,d,n,r,i,a,o,s,c);return}}m&8?(u&16&&ge(l,i,a),d!==l&&p(n,d)):u&16?m&16?ue(l,d,n,r,i,a,o,s,c):ge(l,i,a,!0):(u&8&&p(n,``),m&16&&O(d,n,r,i,a,o,s,c))},ce=(e,t,n,i,a,o,s,c,l)=>{e||=r,t||=r;let u=e.length,d=t.length,f=Math.min(u,d),p;for(p=0;p<f;p++){let r=t[p]=l?Ss(t[p]):xs(t[p]);v(e[p],r,n,null,a,o,s,c,l)}u>d?ge(e,a,o,!0,!1,f):O(t,n,i,a,o,s,c,l,f)},ue=(e,t,n,i,a,o,s,c,l)=>{let u=0,d=t.length,f=e.length-1,p=d-1;for(;u<=f&&u<=p;){let r=e[u],i=t[u]=l?Ss(t[u]):xs(t[u]);if(us(r,i))v(r,i,n,null,a,o,s,c,l);else break;u++}for(;u<=f&&u<=p;){let r=e[f],i=t[p]=l?Ss(t[p]):xs(t[p]);if(us(r,i))v(r,i,n,null,a,o,s,c,l);else break;f--,p--}if(u>f){if(u<=p){let e=p+1,r=e<d?t[e].el:i;for(;u<=p;)v(null,t[u]=l?Ss(t[u]):xs(t[u]),n,r,a,o,s,c,l),u++}}else if(u>p)for(;u<=f;)fe(e[u],a,o,!0),u++;else{let m=u,h=u,g=new Map;for(u=h;u<=p;u++){let e=t[u]=l?Ss(t[u]):xs(t[u]);e.key!=null&&g.set(e.key,u)}let _,y=0,b=p-h+1,x=!1,S=0,C=Array(b);for(u=0;u<b;u++)C[u]=0;for(u=m;u<=f;u++){let r=e[u];if(y>=b){fe(r,a,o,!0);continue}let i;if(r.key!=null)i=g.get(r.key);else for(_=h;_<=p;_++)if(C[_-h]===0&&us(r,t[_])){i=_;break}i===void 0?fe(r,a,o,!0):(C[i-h]=u+1,i>=S?S=i:x=!0,v(r,t[i],n,null,a,o,s,c,l),y++)}let w=x?Io(C):r;for(_=w.length-1,u=b-1;u>=0;u--){let e=h+u,r=t[e],f=t[e+1],p=e+1<d?f.el||zo(f):i;C[u]===0?v(null,r,n,p,a,o,s,c,l):x&&(_<0||u!==w[_]?de(r,n,p,2):_--)}}},de=(e,t,n,r,i=null)=>{let{el:a,type:c,transition:l,children:u,shapeFlag:d}=e;if(d&6){de(e.component.subTree,t,n,r);return}if(d&128){e.suspense.move(t,n,r);return}if(d&64){c.move(e,t,n,be);return}if(c===R){o(a,t,n);for(let e=0;e<u.length;e++)de(u[e],t,n,r);o(e.anchor,t,n);return}if(c===es){S(e,t,n);return}if(r!==2&&d&1&&l)if(r===0)l.persisted&&!a[Vr]?o(a,t,n):(l.beforeEnter(a),o(a,t,n),L(()=>l.enter(a),i));else{let{leave:r,delayLeave:i,afterLeave:c}=l,u=()=>{e.ctx.isUnmounted?s(a):o(a,t,n)},d=()=>{let e=a._isLeaving||!!a[Vr];a._isLeaving&&a[Vr](!0),l.persisted&&!e?u():r(a,()=>{u(),c&&c()})};i?i(a,u,d):d()}else o(a,t,n)},fe=(e,t,n,r=!1,i=!1)=>{let{type:a,props:o,ref:s,children:c,dynamicChildren:l,shapeFlag:u,patchFlag:d,dirs:f,cacheIndex:p,memo:m}=e;if(d===-2&&(i=!1),s!=null&&(Ze(),ci(s,null,n,e,!0),Qe()),p!=null&&(t.renderCache[p]=void 0),u&256){t.ctx.deactivate(e);return}let h=u&1&&f,g=!Oi(e),_;if(g&&(_=o&&o.onVnodeBeforeUnmount)&&Ts(_,t,e),u&6)he(e.component,n,r);else{if(u&128){e.suspense.unmount(n,r);return}h&&mr(e,null,t,`beforeUnmount`),u&64?e.type.remove(e,t,n,be,r):l&&!l.hasOnce&&(a!==R||d>0&&d&64)?ge(l,t,n,!1,!0):(a===R&&d&384||!i&&u&16)&&ge(c,t,n),r&&pe(e)}let v=m!=null&&p==null;(g&&(_=o&&o.onVnodeUnmounted)||h||v)&&L(()=>{_&&Ts(_,t,e),h&&mr(e,null,t,`unmounted`),v&&(e.el=null)},n)},pe=e=>{let{type:t,el:n,anchor:r,transition:i}=e;if(t===R){me(n,r);return}if(t===es){C(e);return}let a=()=>{s(n),i&&!i.persisted&&i.afterLeave&&i.afterLeave()};if(e.shapeFlag&1&&i&&!i.persisted){let{leave:t,delayLeave:r}=i,o=()=>t(n,a);r?r(e.el,a,o):o()}else a()},me=(e,t)=>{let n;for(;e!==t;)n=h(e),s(e),e=n;s(t)},he=(e,t,n)=>{let{bum:r,scope:i,job:a,subTree:o,um:s,m:c,a:l}=e;Ro(c),Ro(l),r&&ie(r),i.stop(),a&&(a.flags|=8,fe(o,e,t,n)),s&&L(s,t),L(()=>{e.isUnmounted=!0},t)},ge=(e,t,n,r=!1,i=!1,a=0)=>{for(let o=a;o<e.length;o++)fe(e[o],t,n,r,i)},_e=e=>{if(e.shapeFlag&6)return _e(e.component.subTree);if(e.shapeFlag&128)return e.suspense.next();let t=h(e.anchor||e.el),n=t&&t[Or];return n?h(n):t},ve=!1,ye=(e,t,n)=>{let r;e==null?t._vnode&&(fe(t._vnode,null,null,!0),r=t._vnode.component):v(t._vnode||null,e,t,null,null,null,n),t._vnode=e,ve||=(ve=!0,er(r),tr(),!1)},be={p:v,um:fe,m:de,r:pe,mt:re,mc:O,pc:se,pbc:k,n:_e,o:e},xe,Se;return t&&([xe,Se]=t(be)),{render:ye,hydrate:xe,createApp:Ja(ye,xe)}}function Mo({type:e,props:t},n){return n===`svg`&&e===`foreignObject`||n===`mathml`&&e===`annotation-xml`&&t&&t.encoding&&t.encoding.includes(`html`)?void 0:n}function No({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Po(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Fo(e,t,n=!1){let r=e.children,i=t.children;if(f(r)&&f(i))for(let e=0;e<r.length;e++){let t=r[e],a=i[e];a.shapeFlag&1&&!a.dynamicChildren&&((a.patchFlag<=0||a.patchFlag===32)&&(a=i[e]=Ss(i[e]),a.el=t.el),!n&&a.patchFlag!==-2&&Fo(t,a)),a.type===$o&&(a.patchFlag===-1&&(a=i[e]=Ss(a)),a.el=t.el),a.type===z&&!a.el&&(a.el=t.el)}}function Io(e){let t=e.slice(),n=[0],r,i,a,o,s,c=e.length;for(r=0;r<c;r++){let c=e[r];if(c!==0){if(i=n[n.length-1],e[i]<c){t[r]=i,n.push(r);continue}for(a=0,o=n.length-1;a<o;)s=a+o>>1,e[n[s]]<c?a=s+1:o=s;c<e[n[a]]&&(a>0&&(t[r]=n[a-1]),n[a]=r)}}for(a=n.length,o=n[a-1];a-- >0;)n[a]=o,o=t[o];return n}function Lo(e){let t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Lo(t)}function Ro(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function zo(e){if(e.placeholder)return e.placeholder;let t=e.component;return t?zo(t.subTree):null}var Bo=e=>e.__isSuspense,Vo=0,Ho={name:`Suspense`,__isSuspense:!0,process(e,t,n,r,i,a,o,s,c,l){if(e==null)Wo(t,n,r,i,a,o,s,c,l);else{if(a&&a.deps>0&&!e.suspense.isInFallback){t.suspense=e.suspense,t.suspense.vnode=t,t.el=e.el;return}Go(e,t,n,r,i,o,s,c,l)}},hydrate:qo,normalize:Jo};function Uo(e,t){let n=e.props&&e.props[t];_(n)&&n()}function Wo(e,t,n,r,i,a,o,s,c){let{p:l,o:{createElement:u}}=c,d=u(`div`),f=e.suspense=Ko(e,i,r,t,d,n,a,o,s,c);l(null,f.pendingBranch=e.ssContent,d,null,r,f,a,o),f.deps>0?(Uo(e,`onPending`),Uo(e,`onFallback`),l(null,e.ssFallback,t,n,r,null,a,o),Zo(f,e.ssFallback)):f.resolve(!1,!0)}function Go(e,t,n,r,i,a,o,s,{p:c,um:l,o:{createElement:u}}){let d=t.suspense=e.suspense;d.vnode=t,t.el=e.el;let f=t.ssContent,p=t.ssFallback,{activeBranch:m,pendingBranch:h,isInFallback:g,isHydrating:_}=d;if(h)d.pendingBranch=f,us(h,f)?(c(h,f,d.hiddenContainer,null,i,d,a,o,s),d.deps<=0?d.resolve():g&&(_||(c(m,p,n,r,i,null,a,o,s),Zo(d,p)))):(d.pendingId=Vo++,_?(d.isHydrating=!1,d.activeBranch=h):l(h,i,d),d.deps=0,d.effects.length=0,d.hiddenContainer=u(`div`),g?(c(null,f,d.hiddenContainer,null,i,d,a,o,s),d.deps<=0?d.resolve():(c(m,p,n,r,i,null,a,o,s),Zo(d,p))):m&&us(m,f)?(c(m,f,n,r,i,d,a,o,s),d.resolve(!0)):(c(null,f,d.hiddenContainer,null,i,d,a,o,s),d.deps<=0&&d.resolve()));else if(m&&us(m,f))c(m,f,n,r,i,d,a,o,s),Zo(d,f);else if(Uo(t,`onPending`),d.pendingBranch=f,f.shapeFlag&512?d.pendingId=f.component.suspenseId:d.pendingId=Vo++,c(null,f,d.hiddenContainer,null,i,d,a,o,s),d.deps<=0)d.resolve();else{let{timeout:e,pendingId:t}=d;e>0?setTimeout(()=>{d.pendingId===t&&d.fallback(p)},e):e===0&&d.fallback(p)}}function Ko(e,t,n,r,i,a,o,s,c,l,u=!1){let{p:d,m:f,um:p,n:m,o:{parentNode:h,remove:g}}=l,_,v=Qo(e);v&&t&&t.pendingBranch&&(_=t.pendingId,t.deps++);let y=e.props?se(e.props.timeout):void 0,b=a,x={vnode:e,parent:t,parentComponent:n,namespace:o,container:r,hiddenContainer:i,deps:0,pendingId:Vo++,timeout:typeof y==`number`?y:-1,activeBranch:null,isFallbackMountPending:!1,pendingBranch:null,isInFallback:!u,isHydrating:u,isUnmounted:!1,effects:[],resolve(e=!1,n=!1){let{vnode:r,activeBranch:i,pendingBranch:o,pendingId:s,effects:c,parentComponent:l,container:u,isInFallback:d}=x,g=!1;if(x.isHydrating)x.isHydrating=!1;else if(!e){g=i&&o.transition&&o.transition.mode===`out-in`;let e=!1;g&&(i.transition.afterLeave=()=>{s===x.pendingId&&(f(o,u,a===b&&!e?m(i):a,0),$n(c),d&&r.ssFallback&&(r.ssFallback.el=null))}),i&&!x.isFallbackMountPending&&(h(i.el)===u&&(a=m(i),e=!0),p(i,l,x,!0),!g&&d&&r.ssFallback&&L(()=>r.ssFallback.el=null,x)),g||f(o,u,a,0)}x.isFallbackMountPending=!1,Zo(x,o),x.pendingBranch=null,x.isInFallback=!1;let y=x.parent,S=!1;for(;y;){if(y.pendingBranch){y.effects.push(...c),S=!0;break}y=y.parent}!S&&!g&&$n(c),x.effects=[],v&&t&&t.pendingBranch&&_===t.pendingId&&(t.deps--,t.deps===0&&!n&&t.resolve()),Uo(r,`onResolve`)},fallback(e){if(!x.pendingBranch)return;let{vnode:t,activeBranch:n,parentComponent:r,container:i,namespace:a}=x;Uo(t,`onFallback`);let o=m(n),l=()=>{x.isFallbackMountPending=!1,x.isInFallback&&(d(null,e,i,o,r,null,a,s,c),Zo(x,e))},u=e.transition&&e.transition.mode===`out-in`;u&&(x.isFallbackMountPending=!0,n.transition.afterLeave=l),x.isInFallback=!0,p(n,r,null,!0),u||l()},move(e,t,n){x.activeBranch&&f(x.activeBranch,e,t,n),x.container=e},next(){return x.activeBranch&&m(x.activeBranch)},registerDep(e,t,n){let r=!!x.pendingBranch;r&&x.deps++;let i=e.vnode.el;e.asyncDep.catch(t=>{Bn(t,e,0)}).then(a=>{if(e.isUnmounted||x.isUnmounted||x.pendingId!==e.suspenseId)return;Ms(),e.asyncResolved=!0;let{vnode:s}=e;Ls(e,a,!1),i&&(s.el=i);let c=!i&&e.subTree.el;t(e,s,h(i||e.subTree.el),i?null:m(e.subTree),x,o,n),c&&(s.placeholder=null,g(c)),lo(e,s.el),r&&--x.deps===0&&x.resolve()})},unmount(e,t){x.isUnmounted=!0,x.activeBranch&&p(x.activeBranch,n,e,t),x.pendingBranch&&p(x.pendingBranch,n,e,t)}};return x}function qo(e,t,n,r,i,a,o,s,c){let l=t.suspense=Ko(t,r,n,e.parentNode,document.createElement(`div`),null,i,a,o,s,!0),u=c(e,l.pendingBranch=t.ssContent,n,l,a,o);return l.deps===0&&l.resolve(!1,!0),u}function Jo(e){let{shapeFlag:t,children:n}=e,r=t&32;e.ssContent=Yo(r?n.default:n),e.ssFallback=r?Yo(n.fallback):V(z)}function Yo(e){let t;if(_(e)){let n=is&&e._c;n&&(e._d=!1,ns()),e=e(),n&&(e._d=!0,t=B,rs())}return f(e)&&(e=ro(e)),e=xs(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(t=>t!==e)),e}function Xo(e,t){t&&t.pendingBranch?f(e)?t.effects.push(...e):t.effects.push(e):$n(e)}function Zo(e,t){e.activeBranch=t;let{vnode:n,parentComponent:r}=e,i=t.el;for(;!i&&t.component;)t=t.component.subTree,i=t.el;n.el=i,r&&r.subTree===n&&(r.vnode.el=i,lo(r,i))}function Qo(e){let t=e.props&&e.props.suspensible;return t!=null&&t!==!1}var R=Symbol.for(`v-fgt`),$o=Symbol.for(`v-txt`),z=Symbol.for(`v-cmt`),es=Symbol.for(`v-stc`),ts=[],B=null;function ns(e=!1){ts.push(B=e?null:[])}function rs(){ts.pop(),B=ts[ts.length-1]||null}var is=1;function as(e,t=!1){is+=e,e<0&&B&&t&&(B.hasOnce=!0)}function os(e){return e.dynamicChildren=is>0?B||r:null,rs(),is>0&&B&&B.push(e),e}function ss(e,t,n,r,i,a){return os(ms(e,t,n,r,i,a,!0))}function cs(e,t,n,r,i){return os(V(e,t,n,r,i,!0))}function ls(e){return e?e.__v_isVNode===!0:!1}function us(e,t){return e.type===t.type&&e.key===t.key}function ds(e){}var fs=({key:e})=>e??null,ps=({ref:e,ref_key:t,ref_for:n})=>(typeof e==`number`&&(e=``+e),e==null?null:v(e)||F(e)||_(e)?{i:I,r:e,k:t,f:!!n}:e);function ms(e,t=null,n=null,r=0,i=null,a=e===R?0:1,o=!1,s=!1){let c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&fs(t),ref:t&&ps(t),scopeId:sr,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:a,patchFlag:r,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:I};return s?(Cs(c,n),a&128&&e.normalize(c)):n&&(c.shapeFlag|=v(n)?8:16),is>0&&!o&&B&&(c.patchFlag>0||a&6)&&c.patchFlag!==32&&B.push(c),c}var V=hs;function hs(e,t=null,n=null,r=0,i=null,a=!1){if((!e||e===ta)&&(e=z),ls(e)){let r=_s(e,t,!0);return n&&Cs(r,n),is>0&&!a&&B&&(r.shapeFlag&6?B[B.indexOf(e)]=r:B.push(r)),r.patchFlag=-2,r}if(qs(e)&&(e=e.__vccOpts),t){t=gs(t);let{class:e,style:n}=t;e&&!v(e)&&(t.class=ge(e)),b(n)&&(en(n)&&!f(n)&&(n=c({},n)),t.style=de(n))}let o=v(e)?1:Bo(e)?128:kr(e)?64:b(e)?4:_(e)?2:0;return ms(e,t,n,r,i,o,a,!0)}function gs(e){return e?en(e)||po(e)?c({},e):e:null}function _s(e,t,n=!1,r=!1){let{props:i,ref:a,patchFlag:o,children:s,transition:c}=e,l=t?ws(i||{},t):i,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:l,key:l&&fs(l),ref:t&&t.ref?n&&a?f(a)?a.concat(ps(t)):[a,ps(t)]:ps(t):a,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:s,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==R?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:c,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&_s(e.ssContent),ssFallback:e.ssFallback&&_s(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return c&&r&&ei(u,c.clone(u)),u}function vs(e=` `,t=0){return V($o,null,e,t)}function ys(e,t){let n=V(es,null,e);return n.staticCount=t,n}function bs(e=``,t=!1){return t?(ns(),cs(z,null,e)):V(z,null,e)}function xs(e){return e==null||typeof e==`boolean`?V(z):f(e)?V(R,null,e.slice()):ls(e)?Ss(e):V($o,null,String(e))}function Ss(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:_s(e)}function Cs(e,t){let n=0,{shapeFlag:r}=e;if(t==null)t=null;else if(f(t))n=16;else if(typeof t==`object`)if(r&65){let n=t.default;n&&(n._c&&(n._d=!1),Cs(e,n()),n._c&&(n._d=!0));return}else{n=32;let r=t._;!r&&!po(t)?t._ctx=I:r===3&&I&&(I.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else _(t)?(t={default:t,_ctx:I},n=32):(t=String(t),r&64?(n=16,t=[vs(t)]):n=8);e.children=t,e.shapeFlag|=n}function ws(...e){let t={};for(let n=0;n<e.length;n++){let r=e[n];for(let e in r)if(e===`class`)t.class!==r.class&&(t.class=ge([t.class,r.class]));else if(e===`style`)t.style=de([t.style,r.style]);else if(o(e)){let n=t[e],i=r[e];i&&n!==i&&!(f(n)&&n.includes(i))?t[e]=n?[].concat(n,i):i:i==null&&n==null&&!s(e)&&(t[e]=i)}else e!==``&&(t[e]=r[e])}return t}function Ts(e,t,n,r=null){zn(e,t,7,[n,r])}var Es=Ka(),Ds=0;function Os(e,t,r){let i=e.type,a=(t?t.appContext:e.appContext)||Es,o={uid:Ds++,vnode:e,type:i,parent:t,appContext:a,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new ke(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(a.provides),ids:t?t.ids:[``,0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:yo(i,a),emitsOptions:eo(i,a),emit:null,emitted:null,propsDefaults:n,inheritAttrs:i.inheritAttrs,ctx:n,data:n,props:n,attrs:n,slots:n,refs:n,setupState:n,setupContext:null,suspense:r,suspenseId:r?r.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return o.ctx={_:o},o.root=t?t.root:o,o.emit=Qa.bind(null,o),e.ce&&e.ce(o),o}var H=null,U=()=>H||I,ks,As;{let e=le(),t=(t,n)=>{let r;return(r=e[t])||(r=e[t]=[]),r.push(n),e=>{r.length>1?r.forEach(t=>t(e)):r[0](e)}};ks=t(`__VUE_INSTANCE_SETTERS__`,e=>H=e),As=t(`__VUE_SSR_SETTERS__`,e=>Ps=e)}var js=e=>{let t=H;return ks(e),e.scope.on(),()=>{e.scope.off(),ks(t)}},Ms=()=>{H&&H.scope.off(),ks(null)};function Ns(e){return e.vnode.shapeFlag&4}var Ps=!1;function Fs(e,t=!1,n=!1){t&&As(t);let{props:r,children:i}=e.vnode,a=Ns(e);mo(e,r,a,t),Do(e,i,n||t);let o=a?Is(e,t):void 0;return t&&As(!1),o}function Is(e,t){let n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,ma);let{setup:r}=n;if(r){Ze();let n=e.setupContext=r.length>1?Ws(e):null,i=js(e),a=Rn(r,e,0,[e.props,n]),o=x(a);if(Qe(),i(),(o||e.sp)&&!Oi(e)&&ii(e),o){if(a.then(Ms,Ms),t)return a.then(n=>{Ls(e,n,t)}).catch(t=>{Bn(t,e,0)});e.asyncDep=a}else Ls(e,a,t)}else Hs(e,t)}function Ls(e,t,n){_(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:b(t)&&(e.setupState=pn(t)),Hs(e,n)}var Rs,zs;function Bs(e){Rs=e,zs=e=>{e.render._rc&&(e.withProxy=new Proxy(e.ctx,ha))}}var Vs=()=>!Rs;function Hs(e,t,n){let r=e.type;if(!e.render){if(!t&&Rs&&!r.render){let t=r.template||Ia(e).template;if(t){let{isCustomElement:n,compilerOptions:i}=e.appContext.config,{delimiters:a,compilerOptions:o}=r,s=c(c({isCustomElement:n,delimiters:a},i),o);r.render=Rs(t,s)}}e.render=r.render||i,zs&&zs(e)}{let t=js(e);Ze();try{Ma(e)}finally{Qe(),t()}}}var Us={get(e,t){return ct(e,`get`,``),e[t]}};function Ws(e){return{attrs:new Proxy(e.attrs,Us),slots:e.slots,emit:e.emit,expose:t=>{e.exposed=t||{}}}}function Gs(e){return e.exposed?e.exposeProxy||=new Proxy(pn(tn(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in fa)return fa[n](e)},has(e,t){return t in e||t in fa}}):e.proxy}function Ks(e,t=!0){return _(e)?e.displayName||e.name:e.name||t&&e.__name}function qs(e){return _(e)&&`__vccOpts`in e}var Js=(e,t)=>Sn(e,t,Ps);function Ys(e,t,n){try{as(-1);let r=arguments.length;return r===2?b(t)&&!f(t)?ls(t)?V(e,null,[t]):V(e,t):V(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&ls(n)&&(n=[n]),V(e,t,n))}finally{as(1)}}function Xs(){return;function e(t,n,r){let i=t[r];if(f(i)&&i.includes(n)||b(i)&&n in i||t.extends&&e(t.extends,n,r)||t.mixins&&t.mixins.some(t=>e(t,n,r)))return!0}}function Zs(e,t,n,r){let i=n[r];if(i&&Qs(i,e))return i;let a=t();return a.memo=e.slice(),a.cacheIndex=r,n[r]=a}function Qs(e,t){let n=e.memo;if(n.length!=t.length)return!1;for(let e=0;e<n.length;e++)if(j(n[e],t[e]))return!1;return is>0&&B&&B.push(e),!0}var $s=`3.5.35`,ec=i,tc=Ln,nc=ir,rc=or,ic={createComponentInstance:Os,setupComponent:Fs,renderComponentRoot:no,setCurrentRenderingInstance:cr,isVNode:ls,normalizeVNode:xs,getComponentPublicInstance:Gs,ensureValidVNode:la,pushWarningContext:Nn,popWarningContext:Pn},ac=void 0,oc=typeof window<`u`&&window.trustedTypes;if(oc)try{ac=oc.createPolicy(`vue`,{createHTML:e=>e})}catch{}var sc=ac?e=>ac.createHTML(e):e=>e,cc=`http://www.w3.org/2000/svg`,lc=`http://www.w3.org/1998/Math/MathML`,uc=typeof document<`u`?document:null,dc=uc&&uc.createElement(`template`),fc={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{let t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{let i=t===`svg`?uc.createElementNS(cc,e):t===`mathml`?uc.createElementNS(lc,e):n?uc.createElement(e,{is:n}):uc.createElement(e);return e===`select`&&r&&r.multiple!=null&&i.setAttribute(`multiple`,r.multiple),i},createText:e=>uc.createTextNode(e),createComment:e=>uc.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>uc.querySelector(e),setScopeId(e,t){e.setAttribute(t,``)},insertStaticContent(e,t,n,r,i,a){let o=n?n.previousSibling:t.lastChild;if(i&&(i===a||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),n),!(i===a||!(i=i.nextSibling)););else{dc.innerHTML=sc(r===`svg`?`<svg>${e}</svg>`:r===`mathml`?`<math>${e}</math>`:e);let i=dc.content;if(r===`svg`||r===`mathml`){let e=i.firstChild;for(;e.firstChild;)i.appendChild(e.firstChild);i.removeChild(e)}t.insertBefore(i,n)}return[o?o.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},pc=`transition`,mc=`animation`,hc=Symbol(`_vtc`),gc={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},_c=c({},Gr,gc),vc=(e=>(e.displayName=`Transition`,e.props=_c,e))((e,{slots:t})=>Ys(Yr,xc(e),t)),yc=(e,t=[])=>{f(e)?e.forEach(e=>e(...t)):e&&e(...t)},bc=e=>e?f(e)?e.some(e=>e.length>1):e.length>1:!1;function xc(e){let t={};for(let n in e)n in gc||(t[n]=e[n]);if(e.css===!1)return t;let{name:n=`v`,type:r,duration:i,enterFromClass:a=`${n}-enter-from`,enterActiveClass:o=`${n}-enter-active`,enterToClass:s=`${n}-enter-to`,appearFromClass:l=a,appearActiveClass:u=o,appearToClass:d=s,leaveFromClass:f=`${n}-leave-from`,leaveActiveClass:p=`${n}-leave-active`,leaveToClass:m=`${n}-leave-to`}=e,h=Sc(i),g=h&&h[0],_=h&&h[1],{onBeforeEnter:v,onEnter:y,onEnterCancelled:b,onLeave:x,onLeaveCancelled:S,onBeforeAppear:C=v,onAppear:w=y,onAppearCancelled:T=b}=t,E=(e,t,n,r)=>{e._enterCancelled=r,Tc(e,t?d:s),Tc(e,t?u:o),n&&n()},D=(e,t)=>{e._isLeaving=!1,Tc(e,f),Tc(e,m),Tc(e,p),t&&t()},O=e=>(t,n)=>{let i=e?w:y,o=()=>E(t,e,n);yc(i,[t,o]),Ec(()=>{Tc(t,e?l:a),wc(t,e?d:s),bc(i)||Oc(t,r,g,o)})};return c(t,{onBeforeEnter(e){yc(v,[e]),wc(e,a),wc(e,o)},onBeforeAppear(e){yc(C,[e]),wc(e,l),wc(e,u)},onEnter:O(!1),onAppear:O(!0),onLeave(e,t){e._isLeaving=!0;let n=()=>D(e,t);wc(e,f),e._enterCancelled?(wc(e,p),Mc(e)):(Mc(e),wc(e,p)),Ec(()=>{e._isLeaving&&(Tc(e,f),wc(e,m),bc(x)||Oc(e,r,_,n))}),yc(x,[e,n])},onEnterCancelled(e){E(e,!1,void 0,!0),yc(b,[e])},onAppearCancelled(e){E(e,!0,void 0,!0),yc(T,[e])},onLeaveCancelled(e){D(e),yc(S,[e])}})}function Sc(e){if(e==null)return null;if(b(e))return[Cc(e.enter),Cc(e.leave)];{let t=Cc(e);return[t,t]}}function Cc(e){return se(e)}function wc(e,t){t.split(/\s+/).forEach(t=>t&&e.classList.add(t)),(e[hc]||(e[hc]=new Set)).add(t)}function Tc(e,t){t.split(/\s+/).forEach(t=>t&&e.classList.remove(t));let n=e[hc];n&&(n.delete(t),n.size||(e[hc]=void 0))}function Ec(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}var Dc=0;function Oc(e,t,n,r){let i=e._endId=++Dc,a=()=>{i===e._endId&&r()};if(n!=null)return setTimeout(a,n);let{type:o,timeout:s,propCount:c}=kc(e,t);if(!o)return r();let l=o+`end`,u=0,d=()=>{e.removeEventListener(l,f),a()},f=t=>{t.target===e&&++u>=c&&d()};setTimeout(()=>{u<c&&d()},s+1),e.addEventListener(l,f)}function kc(e,t){let n=window.getComputedStyle(e),r=e=>(n[e]||``).split(`, `),i=r(`${pc}Delay`),a=r(`${pc}Duration`),o=Ac(i,a),s=r(`${mc}Delay`),c=r(`${mc}Duration`),l=Ac(s,c),u=null,d=0,f=0;t===pc?o>0&&(u=pc,d=o,f=a.length):t===mc?l>0&&(u=mc,d=l,f=c.length):(d=Math.max(o,l),u=d>0?o>l?pc:mc:null,f=u?u===pc?a.length:c.length:0);let p=u===pc&&/\b(?:transform|all)(?:,|$)/.test(r(`${pc}Property`).toString());return{type:u,timeout:d,propCount:f,hasTransform:p}}function Ac(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((t,n)=>jc(t)+jc(e[n])))}function jc(e){return e===`auto`?0:Number(e.slice(0,-1).replace(`,`,`.`))*1e3}function Mc(e){return(e?e.ownerDocument:document).body.offsetHeight}function Nc(e,t,n){let r=e[hc];r&&(t=(t?[t,...r]:[...r]).join(` `)),t==null?e.removeAttribute(`class`):n?e.setAttribute(`class`,t):e.className=t}var Pc=Symbol(`_vod`),Fc=Symbol(`_vsh`),Ic={name:`show`,beforeMount(e,{value:t},{transition:n}){e[Pc]=e.style.display===`none`?``:e.style.display,n&&t?n.beforeEnter(e):Lc(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:r}){!t!=!n&&(r?t?(r.beforeEnter(e),Lc(e,!0),r.enter(e)):r.leave(e,()=>{Lc(e,!1)}):Lc(e,t))},beforeUnmount(e,{value:t}){Lc(e,t)}};function Lc(e,t){e.style.display=t?e[Pc]:`none`,e[Fc]=!t}function Rc(){Ic.getSSRProps=({value:e})=>{if(!e)return{style:{display:`none`}}}}var zc=Symbol(``);function Bc(e){let t=U();if(!t)return;let n=t.ut=(n=e(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach(e=>Hc(e,n))},r=()=>{let r=e(t.proxy);t.ce?Hc(t.ce,r):Vc(t.subTree,r),n(r)};Wi(()=>{$n(r)}),Ui(()=>{Cr(r,i,{flush:`post`});let e=new MutationObserver(r);e.observe(t.subTree.el.parentNode,{childList:!0}),qi(()=>e.disconnect())})}function Vc(e,t){if(e.shapeFlag&128){let n=e.suspense;e=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push(()=>{Vc(n.activeBranch,t)})}for(;e.component;)e=e.component.subTree;if(e.shapeFlag&1&&e.el)Hc(e.el,t);else if(e.type===R)e.children.forEach(e=>Vc(e,t));else if(e.type===es){let{el:n,anchor:r}=e;for(;n&&(Hc(n,t),n!==r);)n=n.nextSibling}}function Hc(e,t){if(e.nodeType===1){let n=e.style,r=``;for(let e in t){let i=Oe(t[e]);n.setProperty(`--${e}`,i),r+=`--${e}: ${i};`}n[zc]=r}}var Uc=/(?:^|;)\s*display\s*:/;function Wc(e,t,n){let r=e.style,i=v(n),a=!1;if(n&&!i){if(t)if(v(t))for(let e of t.split(`;`)){let t=e.slice(0,e.indexOf(`:`)).trim();n[t]??Kc(r,t,``)}else for(let e in t)n[e]??Kc(r,e,``);for(let i in n){i===`display`&&(a=!0);let o=n[i];o==null?Kc(r,i,``):Xc(e,i,!v(t)&&t?t[i]:void 0,o)||Kc(r,i,o)}}else if(i){if(t!==n){let e=r[zc];e&&(n+=`;`+e),r.cssText=n,a=Uc.test(n)}}else t&&e.removeAttribute(`style`);Pc in e&&(e[Pc]=a?r.display:``,e[Fc]&&(r.display=`none`))}var Gc=/\s*!important$/;function Kc(e,t,n){if(f(n))n.forEach(n=>Kc(e,t,n));else if(n??=``,t.startsWith(`--`))e.setProperty(t,n);else{let r=Yc(e,t);Gc.test(n)?e.setProperty(A(r),n.replace(Gc,``),`important`):e[r]=n}}var qc=[`Webkit`,`Moz`,`ms`],Jc={};function Yc(e,t){let n=Jc[t];if(n)return n;let r=k(t);if(r!==`filter`&&r in e)return Jc[t]=r;r=ne(r);for(let n=0;n<qc.length;n++){let i=qc[n]+r;if(i in e)return Jc[t]=i}return t}function Xc(e,t,n,r){return e.tagName===`TEXTAREA`&&(t===`width`||t===`height`)&&v(r)&&n===r}var Zc=`http://www.w3.org/1999/xlink`;function Qc(e,t,n,r,i,a=ye(t)){r&&t.startsWith(`xlink:`)?n==null?e.removeAttributeNS(Zc,t.slice(6,t.length)):e.setAttributeNS(Zc,t,n):n==null||a&&!be(n)?e.removeAttribute(t):e.setAttribute(t,a?``:y(n)?String(n):n)}function $c(e,t,n,r,i){if(t===`innerHTML`||t===`textContent`){n!=null&&(e[t]=t===`innerHTML`?sc(n):n);return}let a=e.tagName;if(t===`value`&&a!==`PROGRESS`&&!a.includes(`-`)){let r=a===`OPTION`?e.getAttribute(`value`)||``:e.value,i=n==null?e.type===`checkbox`?`on`:``:String(n);(r!==i||!(`_value`in e))&&(e.value=i),n??e.removeAttribute(t),e._value=n;return}let o=!1;if(n===``||n==null){let r=typeof e[t];r===`boolean`?n=be(n):n==null&&r===`string`?(n=``,o=!0):r===`number`&&(n=0,o=!0)}try{e[t]=n}catch{}o&&e.removeAttribute(i||t)}function el(e,t,n,r){e.addEventListener(t,n,r)}function tl(e,t,n,r){e.removeEventListener(t,n,r)}var nl=Symbol(`_vei`);function rl(e,t,n,r,i=null){let a=e[nl]||(e[nl]={}),o=a[t];if(r&&o)o.value=r;else{let[n,s]=al(t);r?el(e,n,a[t]=ll(r,i),s):o&&(tl(e,n,o,s),a[t]=void 0)}}var il=/(?:Once|Passive|Capture)$/;function al(e){let t;if(il.test(e)){t={};let n;for(;n=e.match(il);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}return[e[2]===`:`?e.slice(3):A(e.slice(2)),t]}var ol=0,sl=Promise.resolve(),cl=()=>ol||=(sl.then(()=>ol=0),Date.now());function ll(e,t){let n=e=>{if(!e._vts)e._vts=Date.now();else if(e._vts<=n.attached)return;let r=n.value;if(f(r)){let n=e.stopImmediatePropagation;e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0};let i=r.slice(),a=[e];for(let n=0;n<i.length&&!e._stopped;n++){let e=i[n];e&&zn(e,t,5,a)}}else zn(r,t,5,[e])};return n.value=e,n.attached=cl(),n}var ul=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,dl=(e,t,n,r,i,a)=>{let c=i===`svg`;t===`class`?Nc(e,r,c):t===`style`?Wc(e,n,r):o(t)?s(t)||rl(e,t,n,r,a):(t[0]===`.`?(t=t.slice(1),!0):t[0]===`^`?(t=t.slice(1),!1):fl(e,t,r,c))?($c(e,t,r),!e.tagName.includes(`-`)&&(t===`value`||t===`checked`||t===`selected`)&&Qc(e,t,r,c,a,t!==`value`)):e._isVueCE&&(pl(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!v(r)))?$c(e,k(t),r,a,t):(t===`true-value`?e._trueValue=r:t===`false-value`&&(e._falseValue=r),Qc(e,t,r,c))};function fl(e,t,n,r){if(r)return!!(t===`innerHTML`||t===`textContent`||t in e&&ul(t)&&_(n));if(t===`spellcheck`||t===`draggable`||t===`translate`||t===`autocorrect`||t===`sandbox`&&e.tagName===`IFRAME`||t===`form`||t===`list`&&e.tagName===`INPUT`||t===`type`&&e.tagName===`TEXTAREA`)return!1;if(t===`width`||t===`height`){let t=e.tagName;if(t===`IMG`||t===`VIDEO`||t===`CANVAS`||t===`SOURCE`)return!1}return ul(t)&&v(n)?!1:t in e}function pl(e,t){let n=e._def.props;if(!n)return!1;let r=k(t);return Array.isArray(n)?n.some(e=>k(e)===r):Object.keys(n).some(e=>k(e)===r)}var ml={};function hl(e,t,n){let r=ni(e,t);T(r)&&(r=c({},r,t));class i extends vl{constructor(e){super(r,e,n)}}return i.def=r,i}var gl=((e,t)=>hl(e,t,cu)),_l=typeof HTMLElement<`u`?HTMLElement:class{},vl=class e extends _l{constructor(e,t={},n=su){super(),this._def=e,this._props=t,this._createApp=n,this._isVueCE=!0,this._instance=null,this._app=null,this._nonce=this._def.nonce,this._connected=!1,this._resolved=!1,this._patching=!1,this._dirty=!1,this._numberProps=null,this._styleChildren=new WeakSet,this._styleAnchors=new WeakMap,this._ob=null,this.shadowRoot&&n!==su?this._root=this.shadowRoot:e.shadowRoot===!1?this._root=this:(this.attachShadow(c({},e.shadowRootOptions,{mode:`open`})),this._root=this.shadowRoot)}connectedCallback(){if(!this.isConnected)return;!this.shadowRoot&&!this._resolved&&this._parseSlots(),this._connected=!0;let t=this;for(;t&&=t.assignedSlot||t.parentNode||t.host;)if(t instanceof e){this._parent=t;break}this._instance||(this._resolved?this._mount(this._def):t&&t._pendingResolve?this._pendingResolve=t._pendingResolve.then(()=>{this._pendingResolve=void 0,this._resolveDef()}):this._resolveDef())}_setParent(e=this._parent){e&&(this._instance.parent=e._instance,this._inheritParentContext(e))}_inheritParentContext(e=this._parent){e&&this._app&&Object.setPrototypeOf(this._app._context.provides,e._instance.provides)}disconnectedCallback(){this._connected=!1,Yn(()=>{this._connected||(this._ob&&=(this._ob.disconnect(),null),this._app&&this._app.unmount(),this._instance&&(this._instance.ce=void 0),this._app=this._instance=null,this._teleportTargets&&=(this._teleportTargets.clear(),void 0))})}_processMutations(e){for(let t of e)this._setAttr(t.attributeName)}_resolveDef(){if(this._pendingResolve)return;for(let e=0;e<this.attributes.length;e++)this._setAttr(this.attributes[e].name);this._ob=new MutationObserver(this._processMutations.bind(this)),this._ob.observe(this,{attributes:!0});let e=(e,t=!1)=>{this._resolved=!0,this._pendingResolve=void 0;let{props:n,styles:r}=e,i;if(n&&!f(n))for(let e in n){let t=n[e];(t===Number||t&&t.type===Number)&&(e in this._props&&(this._props[e]=se(this._props[e])),(i||=Object.create(null))[k(e)]=!0)}this._numberProps=i,this._resolveProps(e),this.shadowRoot&&this._applyStyles(r),this._mount(e)},t=this._def.__asyncLoader;t?this._pendingResolve=t().then(t=>{t.configureApp=this._def.configureApp,e(this._def=t,!0)}):e(this._def)}_mount(e){this._app=this._createApp(e),this._inheritParentContext(),e.configureApp&&e.configureApp(this._app),this._app._ceVNode=this._createVNode(),this._app.mount(this._root);let t=this._instance&&this._instance.exposed;if(t)for(let e in t)d(this,e)||Object.defineProperty(this,e,{get:()=>un(t[e])})}_resolveProps(e){let{props:t}=e,n=f(t)?t:Object.keys(t||{});for(let e of Object.keys(this))e[0]!==`_`&&n.includes(e)&&this._setProp(e,this[e]);for(let e of n.map(k))Object.defineProperty(this,e,{get(){return this._getProp(e)},set(t){this._setProp(e,t,!0,!this._patching)}})}_setAttr(e){if(e.startsWith(`data-v-`))return;let t=this.hasAttribute(e),n=t?this.getAttribute(e):ml,r=k(e);t&&this._numberProps&&this._numberProps[r]&&(n=se(n)),this._setProp(r,n,!1,!0)}_getProp(e){return this._props[e]}_setProp(e,t,n=!0,r=!1){if(t!==this._props[e]&&(this._dirty=!0,t===ml?delete this._props[e]:(this._props[e]=t,e===`key`&&this._app&&(this._app._ceVNode.key=t)),r&&this._instance&&this._update(),n)){let n=this._ob;n&&(this._processMutations(n.takeRecords()),n.disconnect()),t===!0?this.setAttribute(A(e),``):typeof t==`string`||typeof t==`number`?this.setAttribute(A(e),t+``):t||this.removeAttribute(A(e)),n&&n.observe(this,{attributes:!0})}}_update(){let e=this._createVNode();this._app&&(e.appContext=this._app._context),au(e,this._root)}_createVNode(){let e={};this.shadowRoot||(e.onVnodeMounted=e.onVnodeUpdated=this._renderSlots.bind(this));let t=V(this._def,c(e,this._props));return this._instance||(t.ce=e=>{this._instance=e,e.ce=this,e.isCE=!0;let t=(e,t)=>{this.dispatchEvent(new CustomEvent(e,T(t[0])?c({detail:t},t[0]):{detail:t}))};e.emit=(e,...n)=>{t(e,n),A(e)!==e&&t(A(e),n)},this._setParent()}),t}_applyStyles(e,t,n){if(!e)return;if(t){if(t===this._def||this._styleChildren.has(t))return;this._styleChildren.add(t)}let r=this._nonce,i=this.shadowRoot,a=n?this._getStyleAnchor(n)||this._getStyleAnchor(this._def):this._getRootStyleInsertionAnchor(i),o=null;for(let s=e.length-1;s>=0;s--){let c=document.createElement(`style`);r&&c.setAttribute(`nonce`,r),c.textContent=e[s],i.insertBefore(c,o||a),o=c,s===0&&(n||this._styleAnchors.set(this._def,c),t&&this._styleAnchors.set(t,c))}}_getStyleAnchor(e){if(!e)return null;let t=this._styleAnchors.get(e);return t&&t.parentNode===this.shadowRoot?t:(t&&this._styleAnchors.delete(e),null)}_getRootStyleInsertionAnchor(e){for(let t=0;t<e.childNodes.length;t++){let n=e.childNodes[t];if(!(n instanceof HTMLStyleElement))return n}return null}_parseSlots(){let e=this._slots={},t;for(;t=this.firstChild;){let n=t.nodeType===1&&t.getAttribute(`slot`)||`default`;(e[n]||(e[n]=[])).push(t),this.removeChild(t)}}_renderSlots(){let e=this._getSlots(),t=this._instance.type.__scopeId;for(let n=0;n<e.length;n++){let r=e[n],i=r.getAttribute(`name`)||`default`,a=this._slots[i],o=r.parentNode;if(a)for(let e of a){if(t&&e.nodeType===1){let n=t+`-s`,r=document.createTreeWalker(e,1);e.setAttribute(n,``);let i;for(;i=r.nextNode();)i.setAttribute(n,``)}o.insertBefore(e,r)}else for(;r.firstChild;)o.insertBefore(r.firstChild,r);o.removeChild(r)}}_getSlots(){let e=[this];this._teleportTargets&&e.push(...this._teleportTargets);let t=new Set;for(let n of e){let e=n.querySelectorAll(`slot`);for(let n=0;n<e.length;n++)t.add(e[n])}return Array.from(t)}_injectChildStyle(e,t){this._applyStyles(e.styles,e,t)}_beginPatch(){this._patching=!0,this._dirty=!1}_endPatch(){this._patching=!1,this._dirty&&this._instance&&this._update()}_hasShadowRoot(){return this._def.shadowRoot!==!1}_removeChildStyle(e){}};function yl(e){let t=U();return t&&t.ce||null}function bl(){let e=yl();return e&&e.shadowRoot}function xl(e=`$style`){{let t=U();if(!t)return n;let r=t.type.__cssModules;return r&&r[e]||n}}var Sl=new WeakMap,Cl=new WeakMap,wl=Symbol(`_moveCb`),Tl=Symbol(`_enterCb`),El=(e=>(delete e.props.mode,e))({name:`TransitionGroup`,props:c({},_c,{tag:String,moveClass:String}),setup(e,{slots:t}){let n=U(),r=Ur(),i,a;return Gi(()=>{if(!i.length)return;let t=e.moveClass||`${e.name||`v`}-move`;if(!jl(i[0].el,n.vnode.el,t)){i=[];return}i.forEach(Dl),i.forEach(Ol);let r=i.filter(kl);Mc(n.vnode.el),r.forEach(e=>{let n=e.el,r=n.style;wc(n,t),r.transform=r.webkitTransform=r.transitionDuration=``;let i=n[wl]=e=>{e&&e.target!==n||(!e||e.propertyName.endsWith(`transform`))&&(n.removeEventListener(`transitionend`,i),n[wl]=null,Tc(n,t))};n.addEventListener(`transitionend`,i)}),i=[]}),()=>{let o=P(e),s=xc(o),c=o.tag||R;if(i=[],a)for(let e=0;e<a.length;e++){let t=a[e];t.el&&t.el instanceof Element&&(i.push(t),ei(t,Zr(t,s,r,n)),Sl.set(t,Al(t.el)))}a=t.default?ti(t.default()):[];for(let e=0;e<a.length;e++){let t=a[e];t.key!=null&&ei(t,Zr(t,s,r,n))}return V(c,null,a)}}});function Dl(e){let t=e.el;t[wl]&&t[wl](),t[Tl]&&t[Tl]()}function Ol(e){Cl.set(e,Al(e.el))}function kl(e){let t=Sl.get(e),n=Cl.get(e),r=t.left-n.left,i=t.top-n.top;if(r||i){let t=e.el,n=t.style,a=t.getBoundingClientRect(),o=1,s=1;return t.offsetWidth&&(o=a.width/t.offsetWidth),t.offsetHeight&&(s=a.height/t.offsetHeight),(!Number.isFinite(o)||o===0)&&(o=1),(!Number.isFinite(s)||s===0)&&(s=1),Math.abs(o-1)<.01&&(o=1),Math.abs(s-1)<.01&&(s=1),n.transform=n.webkitTransform=`translate(${r/o}px,${i/s}px)`,n.transitionDuration=`0s`,e}}function Al(e){let t=e.getBoundingClientRect();return{left:t.left,top:t.top}}function jl(e,t,n){let r=e.cloneNode(),i=e[hc];i&&i.forEach(e=>{e.split(/\s+/).forEach(e=>e&&r.classList.remove(e))}),n.split(/\s+/).forEach(e=>e&&r.classList.add(e)),r.style.display=`none`;let a=t.nodeType===1?t:t.parentNode;a.appendChild(r);let{hasTransform:o}=kc(r);return a.removeChild(r),o}var Ml=e=>{let t=e.props[`onUpdate:modelValue`]||!1;return f(t)?e=>ie(t,e):t};function Nl(e){e.target.composing=!0}function Pl(e){let t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event(`input`)))}var Fl=Symbol(`_assign`);function Il(e,t,n){return t&&(e=e.trim()),n&&(e=oe(e)),e}var Ll={created(e,{modifiers:{lazy:t,trim:n,number:r}},i){e[Fl]=Ml(i);let a=r||i.props&&i.props.type===`number`;el(e,t?`change`:`input`,t=>{t.target.composing||e[Fl](Il(e.value,n,a))}),(n||a)&&el(e,`change`,()=>{e.value=Il(e.value,n,a)}),t||(el(e,`compositionstart`,Nl),el(e,`compositionend`,Pl),el(e,`change`,Pl))},mounted(e,{value:t}){e.value=t??``},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:r,trim:i,number:a}},o){if(e[Fl]=Ml(o),e.composing)return;let s=(a||e.type===`number`)&&!/^0\d/.test(e.value)?oe(e.value):e.value,c=t??``;if(s===c)return;let l=e.getRootNode();(l instanceof Document||l instanceof ShadowRoot)&&l.activeElement===e&&e.type!==`range`&&(r&&t===n||i&&e.value.trim()===c)||(e.value=c)}},Rl={deep:!0,created(e,t,n){e[Fl]=Ml(n),el(e,`change`,()=>{let t=e._modelValue,n=Ul(e),r=e.checked,i=e[Fl];if(f(t)){let e=Ce(t,n),a=e!==-1;if(r&&!a)i(t.concat(n));else if(!r&&a){let n=[...t];n.splice(e,1),i(n)}}else if(m(t)){let e=new Set(t);r?e.add(n):e.delete(n),i(e)}else i(Wl(e,r))})},mounted:zl,beforeUpdate(e,t,n){e[Fl]=Ml(n),zl(e,t,n)}};function zl(e,{value:t,oldValue:n},r){e._modelValue=t;let i;if(f(t))i=Ce(t,r.props.value)>-1;else if(m(t))i=t.has(r.props.value);else{if(t===n)return;i=Se(t,Wl(e,!0))}e.checked!==i&&(e.checked=i)}var Bl={created(e,{value:t},n){e.checked=Se(t,n.props.value),e[Fl]=Ml(n),el(e,`change`,()=>{e[Fl](Ul(e))})},beforeUpdate(e,{value:t,oldValue:n},r){e[Fl]=Ml(r),t!==n&&(e.checked=Se(t,r.props.value))}},Vl={deep:!0,created(e,{value:t,modifiers:{number:n}},r){let i=m(t);el(e,`change`,()=>{let t=Array.prototype.filter.call(e.options,e=>e.selected).map(e=>n?oe(Ul(e)):Ul(e));e[Fl](e.multiple?i?new Set(t):t:t[0]),e._assigning=!0,Yn(()=>{e._assigning=!1})}),e[Fl]=Ml(r)},mounted(e,{value:t}){Hl(e,t)},beforeUpdate(e,t,n){e[Fl]=Ml(n)},updated(e,{value:t}){e._assigning||Hl(e,t)}};function Hl(e,t){let n=e.multiple,r=f(t);if(!(n&&!r&&!m(t))){for(let i=0,a=e.options.length;i<a;i++){let a=e.options[i],o=Ul(a);if(n)if(r){let e=typeof o;e===`string`||e===`number`?a.selected=t.some(e=>String(e)===String(o)):a.selected=Ce(t,o)>-1}else a.selected=t.has(o);else if(Se(Ul(a),t)){e.selectedIndex!==i&&(e.selectedIndex=i);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function Ul(e){return`_value`in e?e._value:e.value}function Wl(e,t){let n=t?`_trueValue`:`_falseValue`;return n in e?e[n]:t}var Gl={created(e,t,n){ql(e,t,n,null,`created`)},mounted(e,t,n){ql(e,t,n,null,`mounted`)},beforeUpdate(e,t,n,r){ql(e,t,n,r,`beforeUpdate`)},updated(e,t,n,r){ql(e,t,n,r,`updated`)}};function Kl(e,t){switch(e){case`SELECT`:return Vl;case`TEXTAREA`:return Ll;default:switch(t){case`checkbox`:return Rl;case`radio`:return Bl;default:return Ll}}}function ql(e,t,n,r,i){let a=Kl(e.tagName,n.props&&n.props.type)[i];a&&a(e,t,n,r)}function Jl(){Ll.getSSRProps=({value:e})=>({value:e}),Bl.getSSRProps=({value:e},t)=>{if(t.props&&Se(t.props.value,e))return{checked:!0}},Rl.getSSRProps=({value:e},t)=>{if(f(e)){if(t.props&&Ce(e,t.props.value)>-1)return{checked:!0}}else if(m(e)){if(t.props&&e.has(t.props.value))return{checked:!0}}else if(e)return{checked:!0}},Gl.getSSRProps=(e,t)=>{if(typeof t.type!=`string`)return;let n=Kl(t.type.toUpperCase(),t.props&&t.props.type);if(n.getSSRProps)return n.getSSRProps(e,t)}}var Yl=[`ctrl`,`shift`,`alt`,`meta`],Xl={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>`button`in e&&e.button!==0,middle:e=>`button`in e&&e.button!==1,right:e=>`button`in e&&e.button!==2,exact:(e,t)=>Yl.some(n=>e[`${n}Key`]&&!t.includes(n))},Zl=(e,t)=>{if(!e)return e;let n=e._withMods||={},r=t.join(`.`);return n[r]||(n[r]=((n,...r)=>{for(let e=0;e<t.length;e++){let r=Xl[t[e]];if(r&&r(n,t))return}return e(n,...r)}))},Ql={esc:`escape`,space:` `,up:`arrow-up`,left:`arrow-left`,right:`arrow-right`,down:`arrow-down`,delete:`backspace`},$l=(e,t)=>{let n=e._withKeys||={},r=t.join(`.`);return n[r]||(n[r]=(n=>{if(!(`key`in n))return;let r=A(n.key);if(t.some(e=>e===r||Ql[e]===r))return e(n)}))},eu=c({patchProp:dl},fc),tu,nu=!1;function ru(){return tu||=ko(eu)}function iu(){return tu=nu?tu:Ao(eu),nu=!0,tu}var au=((...e)=>{ru().render(...e)}),ou=((...e)=>{iu().hydrate(...e)}),su=((...e)=>{let t=ru().createApp(...e),{mount:n}=t;return t.mount=e=>{let r=uu(e);if(!r)return;let i=t._component;!_(i)&&!i.render&&!i.template&&(i.template=r.innerHTML),r.nodeType===1&&(r.textContent=``);let a=n(r,!1,lu(r));return r instanceof Element&&(r.removeAttribute(`v-cloak`),r.setAttribute(`data-v-app`,``)),a},t}),cu=((...e)=>{let t=iu().createApp(...e),{mount:n}=t;return t.mount=e=>{let t=uu(e);if(t)return n(t,!0,lu(t))},t});function lu(e){if(e instanceof SVGElement)return`svg`;if(typeof MathMLElement==`function`&&e instanceof MathMLElement)return`mathml`}function uu(e){return v(e)?document.querySelector(e):e}var du=!1,fu=()=>{du||(du=!0,Jl(),Rc())},pu=e({BaseTransition:()=>Yr,BaseTransitionPropsValidators:()=>Gr,Comment:()=>z,DeprecationTypes:()=>null,EffectScope:()=>ke,ErrorCodes:()=>In,ErrorTypeStrings:()=>tc,Fragment:()=>R,KeepAlive:()=>Mi,ReactiveEffect:()=>Pe,Static:()=>es,Suspense:()=>Ho,Teleport:()=>Rr,Text:()=>$o,TrackOpTypes:()=>Cn,Transition:()=>vc,TransitionGroup:()=>El,TriggerOpTypes:()=>wn,VueElement:()=>vl,assertNumber:()=>Fn,callWithAsyncErrorHandling:()=>zn,callWithErrorHandling:()=>Rn,camelize:()=>k,capitalize:()=>ne,cloneVNode:()=>_s,compatUtils:()=>null,compile:()=>mu,computed:()=>Js,createApp:()=>su,createBlock:()=>cs,createCommentVNode:()=>bs,createElementBlock:()=>ss,createElementVNode:()=>ms,createHydrationRenderer:()=>Ao,createPropsRestProxy:()=>ka,createRenderer:()=>ko,createSSRApp:()=>cu,createSlots:()=>sa,createStaticVNode:()=>ys,createTextVNode:()=>vs,createVNode:()=>V,customRef:()=>hn,defineAsyncComponent:()=>ki,defineComponent:()=>ni,defineCustomElement:()=>hl,defineEmits:()=>_a,defineExpose:()=>va,defineModel:()=>xa,defineOptions:()=>ya,defineProps:()=>ga,defineSSRCustomElement:()=>gl,defineSlots:()=>ba,devtools:()=>nc,effect:()=>qe,effectScope:()=>Ae,getCurrentInstance:()=>U,getCurrentScope:()=>je,getCurrentWatcher:()=>On,getTransitionRawChildren:()=>ti,guardReactiveProps:()=>gs,h:()=>Ys,handleError:()=>Bn,hasInjectionContext:()=>_r,hydrate:()=>ou,hydrateOnIdle:()=>Si,hydrateOnInteraction:()=>Ei,hydrateOnMediaQuery:()=>Ti,hydrateOnVisible:()=>wi,initCustomFormatter:()=>Xs,initDirectivesForSSR:()=>fu,inject:()=>gr,isMemoSame:()=>Qs,isProxy:()=>en,isReactive:()=>Zt,isReadonly:()=>Qt,isRef:()=>F,isRuntimeOnly:()=>Vs,isShallow:()=>$t,isVNode:()=>ls,markRaw:()=>tn,mergeDefaults:()=>Da,mergeModels:()=>Oa,mergeProps:()=>ws,nextTick:()=>Yn,nodeOps:()=>fc,normalizeClass:()=>ge,normalizeProps:()=>_e,normalizeStyle:()=>de,onActivated:()=>Pi,onBeforeMount:()=>Hi,onBeforeUnmount:()=>Ki,onBeforeUpdate:()=>Wi,onDeactivated:()=>Fi,onErrorCaptured:()=>Zi,onMounted:()=>Ui,onRenderTracked:()=>Xi,onRenderTriggered:()=>Yi,onScopeDispose:()=>Me,onServerPrefetch:()=>Ji,onUnmounted:()=>qi,onUpdated:()=>Gi,onWatcherCleanup:()=>kn,openBlock:()=>ns,patchProp:()=>dl,popScopeId:()=>ur,provide:()=>hr,proxyRefs:()=>pn,pushScopeId:()=>lr,queuePostFlushCb:()=>$n,reactive:()=>Kt,readonly:()=>Jt,ref:()=>an,registerRuntimeCompiler:()=>Bs,render:()=>au,renderList:()=>oa,renderSlot:()=>ca,resolveComponent:()=>ea,resolveDirective:()=>ra,resolveDynamicComponent:()=>na,resolveFilter:()=>null,resolveTransitionHooks:()=>Zr,setBlockTracking:()=>as,setDevtoolsHook:()=>rc,setTransitionHooks:()=>ei,shallowReactive:()=>qt,shallowReadonly:()=>Yt,shallowRef:()=>on,ssrContextKey:()=>vr,ssrUtils:()=>ic,stop:()=>Je,toDisplayString:()=>Te,toHandlerKey:()=>re,toHandlers:()=>ua,toRaw:()=>P,toRef:()=>yn,toRefs:()=>gn,toValue:()=>dn,transformVNodeArgs:()=>ds,triggerRef:()=>ln,unref:()=>un,useAttrs:()=>wa,useCssModule:()=>xl,useCssVars:()=>Bc,useHost:()=>yl,useId:()=>ri,useModel:()=>Xa,useSSRContext:()=>yr,useShadowRoot:()=>bl,useSlots:()=>Ca,useTemplateRef:()=>ai,useTransitionState:()=>Ur,vModelCheckbox:()=>Rl,vModelDynamic:()=>Gl,vModelRadio:()=>Bl,vModelSelect:()=>Vl,vModelText:()=>Ll,vShow:()=>Ic,version:()=>$s,warn:()=>ec,watch:()=>Cr,watchEffect:()=>br,watchPostEffect:()=>xr,watchSyncEffect:()=>Sr,withAsyncContext:()=>Aa,withCtx:()=>fr,withDefaults:()=>Sa,withDirectives:()=>pr,withKeys:()=>$l,withMemo:()=>Zs,withModifiers:()=>Zl,withScopeId:()=>dr}),mu=()=>{};function hu(e){return e+.5|0}var gu=(e,t,n)=>Math.max(Math.min(e,n),t);function _u(e){return gu(hu(e*2.55),0,255)}function vu(e){return gu(hu(e*255),0,255)}function yu(e){return gu(hu(e/2.55)/100,0,1)}function bu(e){return gu(hu(e*100),0,100)}var xu={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},Su=[...`0123456789ABCDEF`],Cu=e=>Su[e&15],wu=e=>Su[(e&240)>>4]+Su[e&15],Tu=e=>(e&240)>>4==(e&15),Eu=e=>Tu(e.r)&&Tu(e.g)&&Tu(e.b)&&Tu(e.a);function Du(e){var t=e.length,n;return e[0]===`#`&&(t===4||t===5?n={r:255&xu[e[1]]*17,g:255&xu[e[2]]*17,b:255&xu[e[3]]*17,a:t===5?xu[e[4]]*17:255}:(t===7||t===9)&&(n={r:xu[e[1]]<<4|xu[e[2]],g:xu[e[3]]<<4|xu[e[4]],b:xu[e[5]]<<4|xu[e[6]],a:t===9?xu[e[7]]<<4|xu[e[8]]:255})),n}var Ou=(e,t)=>e<255?t(e):``;function ku(e){var t=Eu(e)?Cu:wu;return e?`#`+t(e.r)+t(e.g)+t(e.b)+Ou(e.a,t):void 0}var Au=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function ju(e,t,n){let r=t*Math.min(n,1-n),i=(t,i=(t+e/30)%12)=>n-r*Math.max(Math.min(i-3,9-i,1),-1);return[i(0),i(8),i(4)]}function Mu(e,t,n){let r=(r,i=(r+e/60)%6)=>n-n*t*Math.max(Math.min(i,4-i,1),0);return[r(5),r(3),r(1)]}function Nu(e,t,n){let r=ju(e,1,.5),i;for(t+n>1&&(i=1/(t+n),t*=i,n*=i),i=0;i<3;i++)r[i]*=1-t-n,r[i]+=t;return r}function Pu(e,t,n,r,i){return e===i?(t-n)/r+(t<n?6:0):t===i?(n-e)/r+2:(e-t)/r+4}function Fu(e){let t=e.r/255,n=e.g/255,r=e.b/255,i=Math.max(t,n,r),a=Math.min(t,n,r),o=(i+a)/2,s,c,l;return i!==a&&(l=i-a,c=o>.5?l/(2-i-a):l/(i+a),s=Pu(t,n,r,l,i),s=s*60+.5),[s|0,c||0,o]}function Iu(e,t,n,r){return(Array.isArray(t)?e(t[0],t[1],t[2]):e(t,n,r)).map(vu)}function Lu(e,t,n){return Iu(ju,e,t,n)}function Ru(e,t,n){return Iu(Nu,e,t,n)}function zu(e,t,n){return Iu(Mu,e,t,n)}function Bu(e){return(e%360+360)%360}function Vu(e){let t=Au.exec(e),n=255,r;if(!t)return;t[5]!==r&&(n=t[6]?_u(+t[5]):vu(+t[5]));let i=Bu(+t[2]),a=t[3]/100,o=t[4]/100;return r=t[1]===`hwb`?Ru(i,a,o):t[1]===`hsv`?zu(i,a,o):Lu(i,a,o),{r:r[0],g:r[1],b:r[2],a:n}}function Hu(e,t){var n=Fu(e);n[0]=Bu(n[0]+t),n=Lu(n),e.r=n[0],e.g=n[1],e.b=n[2]}function Uu(e){if(!e)return;let t=Fu(e),n=t[0],r=bu(t[1]),i=bu(t[2]);return e.a<255?`hsla(${n}, ${r}%, ${i}%, ${yu(e.a)})`:`hsl(${n}, ${r}%, ${i}%)`}var Wu={x:`dark`,Z:`light`,Y:`re`,X:`blu`,W:`gr`,V:`medium`,U:`slate`,A:`ee`,T:`ol`,S:`or`,B:`ra`,C:`lateg`,D:`ights`,R:`in`,Q:`turquois`,E:`hi`,P:`ro`,O:`al`,N:`le`,M:`de`,L:`yello`,F:`en`,K:`ch`,G:`arks`,H:`ea`,I:`ightg`,J:`wh`},Gu={OiceXe:`f0f8ff`,antiquewEte:`faebd7`,aqua:`ffff`,aquamarRe:`7fffd4`,azuY:`f0ffff`,beige:`f5f5dc`,bisque:`ffe4c4`,black:`0`,blanKedOmond:`ffebcd`,Xe:`ff`,XeviTet:`8a2be2`,bPwn:`a52a2a`,burlywood:`deb887`,caMtXe:`5f9ea0`,KartYuse:`7fff00`,KocTate:`d2691e`,cSO:`ff7f50`,cSnflowerXe:`6495ed`,cSnsilk:`fff8dc`,crimson:`dc143c`,cyan:`ffff`,xXe:`8b`,xcyan:`8b8b`,xgTMnPd:`b8860b`,xWay:`a9a9a9`,xgYF:`6400`,xgYy:`a9a9a9`,xkhaki:`bdb76b`,xmagFta:`8b008b`,xTivegYF:`556b2f`,xSange:`ff8c00`,xScEd:`9932cc`,xYd:`8b0000`,xsOmon:`e9967a`,xsHgYF:`8fbc8f`,xUXe:`483d8b`,xUWay:`2f4f4f`,xUgYy:`2f4f4f`,xQe:`ced1`,xviTet:`9400d3`,dAppRk:`ff1493`,dApskyXe:`bfff`,dimWay:`696969`,dimgYy:`696969`,dodgerXe:`1e90ff`,fiYbrick:`b22222`,flSOwEte:`fffaf0`,foYstWAn:`228b22`,fuKsia:`ff00ff`,gaRsbSo:`dcdcdc`,ghostwEte:`f8f8ff`,gTd:`ffd700`,gTMnPd:`daa520`,Way:`808080`,gYF:`8000`,gYFLw:`adff2f`,gYy:`808080`,honeyMw:`f0fff0`,hotpRk:`ff69b4`,RdianYd:`cd5c5c`,Rdigo:`4b0082`,ivSy:`fffff0`,khaki:`f0e68c`,lavFMr:`e6e6fa`,lavFMrXsh:`fff0f5`,lawngYF:`7cfc00`,NmoncEffon:`fffacd`,ZXe:`add8e6`,ZcSO:`f08080`,Zcyan:`e0ffff`,ZgTMnPdLw:`fafad2`,ZWay:`d3d3d3`,ZgYF:`90ee90`,ZgYy:`d3d3d3`,ZpRk:`ffb6c1`,ZsOmon:`ffa07a`,ZsHgYF:`20b2aa`,ZskyXe:`87cefa`,ZUWay:`778899`,ZUgYy:`778899`,ZstAlXe:`b0c4de`,ZLw:`ffffe0`,lime:`ff00`,limegYF:`32cd32`,lRF:`faf0e6`,magFta:`ff00ff`,maPon:`800000`,VaquamarRe:`66cdaa`,VXe:`cd`,VScEd:`ba55d3`,VpurpN:`9370db`,VsHgYF:`3cb371`,VUXe:`7b68ee`,VsprRggYF:`fa9a`,VQe:`48d1cc`,VviTetYd:`c71585`,midnightXe:`191970`,mRtcYam:`f5fffa`,mistyPse:`ffe4e1`,moccasR:`ffe4b5`,navajowEte:`ffdead`,navy:`80`,Tdlace:`fdf5e6`,Tive:`808000`,TivedBb:`6b8e23`,Sange:`ffa500`,SangeYd:`ff4500`,ScEd:`da70d6`,pOegTMnPd:`eee8aa`,pOegYF:`98fb98`,pOeQe:`afeeee`,pOeviTetYd:`db7093`,papayawEp:`ffefd5`,pHKpuff:`ffdab9`,peru:`cd853f`,pRk:`ffc0cb`,plum:`dda0dd`,powMrXe:`b0e0e6`,purpN:`800080`,YbeccapurpN:`663399`,Yd:`ff0000`,Psybrown:`bc8f8f`,PyOXe:`4169e1`,saddNbPwn:`8b4513`,sOmon:`fa8072`,sandybPwn:`f4a460`,sHgYF:`2e8b57`,sHshell:`fff5ee`,siFna:`a0522d`,silver:`c0c0c0`,skyXe:`87ceeb`,UXe:`6a5acd`,UWay:`708090`,UgYy:`708090`,snow:`fffafa`,sprRggYF:`ff7f`,stAlXe:`4682b4`,tan:`d2b48c`,teO:`8080`,tEstN:`d8bfd8`,tomato:`ff6347`,Qe:`40e0d0`,viTet:`ee82ee`,JHt:`f5deb3`,wEte:`ffffff`,wEtesmoke:`f5f5f5`,Lw:`ffff00`,LwgYF:`9acd32`};function Ku(){let e={},t=Object.keys(Gu),n=Object.keys(Wu),r,i,a,o,s;for(r=0;r<t.length;r++){for(o=s=t[r],i=0;i<n.length;i++)a=n[i],s=s.replace(a,Wu[a]);a=parseInt(Gu[o],16),e[s]=[a>>16&255,a>>8&255,a&255]}return e}var qu;function Ju(e){qu||(qu=Ku(),qu.transparent=[0,0,0,0]);let t=qu[e.toLowerCase()];return t&&{r:t[0],g:t[1],b:t[2],a:t.length===4?t[3]:255}}var Yu=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;function Xu(e){let t=Yu.exec(e),n=255,r,i,a;if(t){if(t[7]!==r){let e=+t[7];n=t[8]?_u(e):gu(e*255,0,255)}return r=+t[1],i=+t[3],a=+t[5],r=255&(t[2]?_u(r):gu(r,0,255)),i=255&(t[4]?_u(i):gu(i,0,255)),a=255&(t[6]?_u(a):gu(a,0,255)),{r,g:i,b:a,a:n}}}function Zu(e){return e&&(e.a<255?`rgba(${e.r}, ${e.g}, ${e.b}, ${yu(e.a)})`:`rgb(${e.r}, ${e.g}, ${e.b})`)}var Qu=e=>e<=.0031308?e*12.92:e**(1/2.4)*1.055-.055,$u=e=>e<=.04045?e/12.92:((e+.055)/1.055)**2.4;function ed(e,t,n){let r=$u(yu(e.r)),i=$u(yu(e.g)),a=$u(yu(e.b));return{r:vu(Qu(r+n*($u(yu(t.r))-r))),g:vu(Qu(i+n*($u(yu(t.g))-i))),b:vu(Qu(a+n*($u(yu(t.b))-a))),a:e.a+n*(t.a-e.a)}}function td(e,t,n){if(e){let r=Fu(e);r[t]=Math.max(0,Math.min(r[t]+r[t]*n,t===0?360:1)),r=Lu(r),e.r=r[0],e.g=r[1],e.b=r[2]}}function nd(e,t){return e&&Object.assign(t||{},e)}function rd(e){var t={r:0,g:0,b:0,a:255};return Array.isArray(e)?e.length>=3&&(t={r:e[0],g:e[1],b:e[2],a:255},e.length>3&&(t.a=vu(e[3]))):(t=nd(e,{r:0,g:0,b:0,a:1}),t.a=vu(t.a)),t}function id(e){return e.charAt(0)===`r`?Xu(e):Vu(e)}var ad=class e{constructor(t){if(t instanceof e)return t;let n=typeof t,r;n===`object`?r=rd(t):n===`string`&&(r=Du(t)||Ju(t)||id(t)),this._rgb=r,this._valid=!!r}get valid(){return this._valid}get rgb(){var e=nd(this._rgb);return e&&(e.a=yu(e.a)),e}set rgb(e){this._rgb=rd(e)}rgbString(){return this._valid?Zu(this._rgb):void 0}hexString(){return this._valid?ku(this._rgb):void 0}hslString(){return this._valid?Uu(this._rgb):void 0}mix(e,t){if(e){let n=this.rgb,r=e.rgb,i,a=t===i?.5:t,o=2*a-1,s=n.a-r.a,c=((o*s===-1?o:(o+s)/(1+o*s))+1)/2;i=1-c,n.r=255&c*n.r+i*r.r+.5,n.g=255&c*n.g+i*r.g+.5,n.b=255&c*n.b+i*r.b+.5,n.a=a*n.a+(1-a)*r.a,this.rgb=n}return this}interpolate(e,t){return e&&(this._rgb=ed(this._rgb,e._rgb,t)),this}clone(){return new e(this.rgb)}alpha(e){return this._rgb.a=vu(e),this}clearer(e){let t=this._rgb;return t.a*=1-e,this}greyscale(){let e=this._rgb;return e.r=e.g=e.b=hu(e.r*.3+e.g*.59+e.b*.11),this}opaquer(e){let t=this._rgb;return t.a*=1+e,this}negate(){let e=this._rgb;return e.r=255-e.r,e.g=255-e.g,e.b=255-e.b,this}lighten(e){return td(this._rgb,2,e),this}darken(e){return td(this._rgb,2,-e),this}saturate(e){return td(this._rgb,1,e),this}desaturate(e){return td(this._rgb,1,-e),this}rotate(e){return Hu(this._rgb,e),this}};function od(){}var sd=(()=>{let e=0;return()=>e++})();function W(e){return e==null}function G(e){if(Array.isArray&&Array.isArray(e))return!0;let t=Object.prototype.toString.call(e);return t.slice(0,7)===`[object`&&t.slice(-6)===`Array]`}function K(e){return e!==null&&Object.prototype.toString.call(e)===`[object Object]`}function q(e){return(typeof e==`number`||e instanceof Number)&&isFinite(+e)}function cd(e,t){return q(e)?e:t}function J(e,t){return e===void 0?t:e}var ld=(e,t)=>typeof e==`string`&&e.endsWith(`%`)?parseFloat(e)/100*t:+e;function Y(e,t,n){if(e&&typeof e.call==`function`)return e.apply(n,t)}function X(e,t,n,r){let i,a,o;if(G(e))if(a=e.length,r)for(i=a-1;i>=0;i--)t.call(n,e[i],i);else for(i=0;i<a;i++)t.call(n,e[i],i);else if(K(e))for(o=Object.keys(e),a=o.length,i=0;i<a;i++)t.call(n,e[o[i]],o[i])}function ud(e,t){let n,r,i,a;if(!e||!t||e.length!==t.length)return!1;for(n=0,r=e.length;n<r;++n)if(i=e[n],a=t[n],i.datasetIndex!==a.datasetIndex||i.index!==a.index)return!1;return!0}function dd(e){if(G(e))return e.map(dd);if(K(e)){let t=Object.create(null),n=Object.keys(e),r=n.length,i=0;for(;i<r;++i)t[n[i]]=dd(e[n[i]]);return t}return e}function fd(e){return[`__proto__`,`prototype`,`constructor`].indexOf(e)===-1}function pd(e,t,n,r){if(!fd(e))return;let i=t[e],a=n[e];K(i)&&K(a)?md(i,a,r):t[e]=dd(a)}function md(e,t,n){let r=G(t)?t:[t],i=r.length;if(!K(e))return e;n||={};let a=n.merger||pd,o;for(let t=0;t<i;++t){if(o=r[t],!K(o))continue;let i=Object.keys(o);for(let t=0,r=i.length;t<r;++t)a(i[t],e,o,n)}return e}function hd(e,t){return md(e,t,{merger:gd})}function gd(e,t,n){if(!fd(e))return;let r=t[e],i=n[e];K(r)&&K(i)?hd(r,i):Object.prototype.hasOwnProperty.call(t,e)||(t[e]=dd(i))}var _d={"":e=>e,x:e=>e.x,y:e=>e.y};function vd(e){let t=e.split(`.`),n=[],r=``;for(let e of t)r+=e,r.endsWith(`\\`)?r=r.slice(0,-1)+`.`:(n.push(r),r=``);return n}function yd(e){let t=vd(e);return e=>{for(let n of t){if(n===``)break;e&&=e[n]}return e}}function bd(e,t){return(_d[t]||(_d[t]=yd(t)))(e)}function xd(e){return e.charAt(0).toUpperCase()+e.slice(1)}var Sd=e=>e!==void 0,Cd=e=>typeof e==`function`,wd=(e,t)=>{if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0};function Td(e){return e.type===`mouseup`||e.type===`click`||e.type===`contextmenu`}var Z=Math.PI,Ed=2*Z;Ed+Z;var Dd=1/0,Od=Z/180,kd=Z/2,Ad=Z/4,jd=Z*2/3,Md=Math.log10,Nd=Math.sign;function Pd(e,t,n){return Math.abs(e-t)<n}function Fd(e){let t=Math.round(e);e=Pd(e,t,e/1e3)?t:e;let n=10**Math.floor(Md(e)),r=e/n;return(r<=1?1:r<=2?2:r<=5?5:10)*n}function Id(e){let t=[],n=Math.sqrt(e),r;for(r=1;r<n;r++)e%r===0&&(t.push(r),t.push(e/r));return n===(n|0)&&t.push(n),t.sort((e,t)=>e-t).pop(),t}function Ld(e){return typeof e==`symbol`||typeof e==`object`&&!!e&&!(Symbol.toPrimitive in e||`toString`in e||`valueOf`in e)}function Rd(e){return!Ld(e)&&!isNaN(parseFloat(e))&&isFinite(e)}function zd(e,t){let n=Math.round(e);return n-t<=e&&n+t>=e}function Bd(e,t,n){let r,i,a;for(r=0,i=e.length;r<i;r++)a=e[r][n],isNaN(a)||(t.min=Math.min(t.min,a),t.max=Math.max(t.max,a))}function Vd(e){return Z/180*e}function Hd(e){return 180/Z*e}function Ud(e){if(!q(e))return;let t=1,n=0;for(;Math.round(e*t)/t!==e;)t*=10,n++;return n}function Wd(e,t){let n=t.x-e.x,r=t.y-e.y,i=Math.sqrt(n*n+r*r),a=Math.atan2(r,n);return a<-.5*Z&&(a+=Ed),{angle:a,distance:i}}function Gd(e,t){return Math.sqrt((t.x-e.x)**2+(t.y-e.y)**2)}function Kd(e){return(e%Ed+Ed)%Ed}function qd(e,t,n,r){let i=Kd(e),a=Kd(t),o=Kd(n),s=Kd(a-i),c=Kd(o-i),l=Kd(i-a),u=Kd(i-o);return i===a||i===o||r&&a===o||s>c&&l<u}function Jd(e,t,n){return Math.max(t,Math.min(n,e))}function Yd(e){return Jd(e,-32768,32767)}function Xd(e,t,n,r=1e-6){return e>=Math.min(t,n)-r&&e<=Math.max(t,n)+r}function Zd(e,t,n){n||=(n=>e[n]<t);let r=e.length-1,i=0,a;for(;r-i>1;)a=i+r>>1,n(a)?i=a:r=a;return{lo:i,hi:r}}var Qd=(e,t,n,r)=>Zd(e,n,r?r=>{let i=e[r][t];return i<n||i===n&&e[r+1][t]===n}:r=>e[r][t]<n),$d=(e,t,n)=>Zd(e,n,r=>e[r][t]>=n);function ef(e,t,n){let r=0,i=e.length;for(;r<i&&e[r]<t;)r++;for(;i>r&&e[i-1]>n;)i--;return r>0||i<e.length?e.slice(r,i):e}var tf=[`push`,`pop`,`shift`,`splice`,`unshift`];function nf(e,t){if(e._chartjs){e._chartjs.listeners.push(t);return}Object.defineProperty(e,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[t]}}),tf.forEach(t=>{let n=`_onData`+xd(t),r=e[t];Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value(...t){let i=r.apply(this,t);return e._chartjs.listeners.forEach(e=>{typeof e[n]==`function`&&e[n](...t)}),i}})})}function rf(e,t){let n=e._chartjs;if(!n)return;let r=n.listeners,i=r.indexOf(t);i!==-1&&r.splice(i,1),!(r.length>0)&&(tf.forEach(t=>{delete e[t]}),delete e._chartjs)}function af(e){let t=new Set(e);return t.size===e.length?e:Array.from(t)}var of=function(){return typeof window>`u`?function(e){return e()}:window.requestAnimationFrame}();function sf(e,t){let n=[],r=!1;return function(...i){n=i,r||(r=!0,of.call(window,()=>{r=!1,e.apply(t,n)}))}}function cf(e,t){let n;return function(...r){return t?(clearTimeout(n),n=setTimeout(e,t,r)):e.apply(this,r),t}}var lf=e=>e===`start`?`left`:e===`end`?`right`:`center`,uf=(e,t,n)=>e===`start`?t:e===`end`?n:(t+n)/2,df=(e,t,n,r)=>e===(r?`left`:`right`)?n:e===`center`?(t+n)/2:t,ff=e=>e===0||e===1,pf=(e,t,n)=>-(2**(10*--e)*Math.sin((e-t)*Ed/n)),mf=(e,t,n)=>2**(-10*e)*Math.sin((e-t)*Ed/n)+1,hf={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>-e*(e-2),easeInOutQuad:e=>(e/=.5)<1?.5*e*e:-.5*(--e*(e-2)-1),easeInCubic:e=>e*e*e,easeOutCubic:e=>--e*e*e+1,easeInOutCubic:e=>(e/=.5)<1?.5*e*e*e:.5*((e-=2)*e*e+2),easeInQuart:e=>e*e*e*e,easeOutQuart:e=>-(--e*e*e*e-1),easeInOutQuart:e=>(e/=.5)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2),easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>--e*e*e*e*e+1,easeInOutQuint:e=>(e/=.5)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2),easeInSine:e=>-Math.cos(e*kd)+1,easeOutSine:e=>Math.sin(e*kd),easeInOutSine:e=>-.5*(Math.cos(Z*e)-1),easeInExpo:e=>e===0?0:2**(10*(e-1)),easeOutExpo:e=>e===1?1:-(2**(-10*e))+1,easeInOutExpo:e=>ff(e)?e:e<.5?.5*2**(10*(e*2-1)):.5*(-(2**(-10*(e*2-1)))+2),easeInCirc:e=>e>=1?e:-(Math.sqrt(1-e*e)-1),easeOutCirc:e=>Math.sqrt(1- --e*e),easeInOutCirc:e=>(e/=.5)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1),easeInElastic:e=>ff(e)?e:pf(e,.075,.3),easeOutElastic:e=>ff(e)?e:mf(e,.075,.3),easeInOutElastic(e){let t=.1125,n=.45;return ff(e)?e:e<.5?.5*pf(e*2,t,n):.5+.5*mf(e*2-1,t,n)},easeInBack(e){return e*e*(2.70158*e-1.70158)},easeOutBack(e){return--e*e*(2.70158*e+1.70158)+1},easeInOutBack(e){let t=1.70158;return(e/=.5)<1?.5*(e*e*(((t*=1.525)+1)*e-t)):.5*((e-=2)*e*(((t*=1.525)+1)*e+t)+2)},easeInBounce:e=>1-hf.easeOutBounce(1-e),easeOutBounce(e){let t=7.5625,n=2.75;return e<1/n?t*e*e:e<2/n?t*(e-=1.5/n)*e+.75:e<2.5/n?t*(e-=2.25/n)*e+.9375:t*(e-=2.625/n)*e+.984375},easeInOutBounce:e=>e<.5?hf.easeInBounce(e*2)*.5:hf.easeOutBounce(e*2-1)*.5+.5};function gf(e){if(e&&typeof e==`object`){let t=e.toString();return t===`[object CanvasPattern]`||t===`[object CanvasGradient]`}return!1}function _f(e){return gf(e)?e:new ad(e)}function vf(e){return gf(e)?e:new ad(e).saturate(.5).darken(.1).hexString()}var yf=[`x`,`y`,`borderWidth`,`radius`,`tension`],bf=[`color`,`borderColor`,`backgroundColor`];function xf(e){e.set(`animation`,{delay:void 0,duration:1e3,easing:`easeOutQuart`,fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),e.describe(`animation`,{_fallback:!1,_indexable:!1,_scriptable:e=>e!==`onProgress`&&e!==`onComplete`&&e!==`fn`}),e.set(`animations`,{colors:{type:`color`,properties:bf},numbers:{type:`number`,properties:yf}}),e.describe(`animations`,{_fallback:`animation`}),e.set(`transitions`,{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:`transparent`},visible:{type:`boolean`,duration:0}}},hide:{animations:{colors:{to:`transparent`},visible:{type:`boolean`,easing:`linear`,fn:e=>e|0}}}})}function Sf(e){e.set(`layout`,{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})}var Cf=new Map;function wf(e,t){t||={};let n=e+JSON.stringify(t),r=Cf.get(n);return r||(r=new Intl.NumberFormat(e,t),Cf.set(n,r)),r}function Tf(e,t,n){return wf(t,n).format(e)}var Ef={values(e){return G(e)?e:``+e},numeric(e,t,n){if(e===0)return`0`;let r=this.chart.options.locale,i,a=e;if(n.length>1){let t=Math.max(Math.abs(n[0].value),Math.abs(n[n.length-1].value));(t<1e-4||t>0x38d7ea4c68000)&&(i=`scientific`),a=Df(e,n)}let o=Md(Math.abs(a)),s=isNaN(o)?1:Math.max(Math.min(-1*Math.floor(o),20),0),c={notation:i,minimumFractionDigits:s,maximumFractionDigits:s};return Object.assign(c,this.options.ticks.format),Tf(e,r,c)},logarithmic(e,t,n){if(e===0)return`0`;let r=n[t].significand||e/10**Math.floor(Md(e));return[1,2,3,5,10,15].includes(r)||t>.8*n.length?Ef.numeric.call(this,e,t,n):``}};function Df(e,t){let n=t.length>3?t[2].value-t[1].value:t[1].value-t[0].value;return Math.abs(n)>=1&&e!==Math.floor(e)&&(n=e-Math.floor(e)),n}var Of={formatters:Ef};function kf(e){e.set(`scale`,{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:`ticks`,clip:!0,grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(e,t)=>t.lineWidth,tickColor:(e,t)=>t.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width:1},title:{display:!1,text:``,padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:``,padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:Of.formatters.values,minor:{},major:{},align:`center`,crossAlign:`near`,showLabelBackdrop:!1,backdropColor:`rgba(255, 255, 255, 0.75)`,backdropPadding:2}}),e.route(`scale.ticks`,`color`,``,`color`),e.route(`scale.grid`,`color`,``,`borderColor`),e.route(`scale.border`,`color`,``,`borderColor`),e.route(`scale.title`,`color`,``,`color`),e.describe(`scale`,{_fallback:!1,_scriptable:e=>!e.startsWith(`before`)&&!e.startsWith(`after`)&&e!==`callback`&&e!==`parser`,_indexable:e=>e!==`borderDash`&&e!==`tickBorderDash`&&e!==`dash`}),e.describe(`scales`,{_fallback:`scale`}),e.describe(`scale.ticks`,{_scriptable:e=>e!==`backdropPadding`&&e!==`callback`,_indexable:e=>e!==`backdropPadding`})}var Af=Object.create(null),jf=Object.create(null);function Mf(e,t){if(!t)return e;let n=t.split(`.`);for(let t=0,r=n.length;t<r;++t){let r=n[t];e=e[r]||(e[r]=Object.create(null))}return e}function Nf(e,t,n){return typeof t==`string`?md(Mf(e,t),n):md(Mf(e,``),t)}var Q=new class{constructor(e,t){this.animation=void 0,this.backgroundColor=`rgba(0,0,0,0.1)`,this.borderColor=`rgba(0,0,0,0.1)`,this.color=`#666`,this.datasets={},this.devicePixelRatio=e=>e.chart.platform.getDevicePixelRatio(),this.elements={},this.events=[`mousemove`,`mouseout`,`click`,`touchstart`,`touchmove`],this.font={family:`'Helvetica Neue', 'Helvetica', 'Arial', sans-serif`,size:12,style:`normal`,lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(e,t)=>vf(t.backgroundColor),this.hoverBorderColor=(e,t)=>vf(t.borderColor),this.hoverColor=(e,t)=>vf(t.color),this.indexAxis=`x`,this.interaction={mode:`nearest`,intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(e),this.apply(t)}set(e,t){return Nf(this,e,t)}get(e){return Mf(this,e)}describe(e,t){return Nf(jf,e,t)}override(e,t){return Nf(Af,e,t)}route(e,t,n,r){let i=Mf(this,e),a=Mf(this,n),o=`_`+t;Object.defineProperties(i,{[o]:{value:i[t],writable:!0},[t]:{enumerable:!0,get(){let e=this[o],t=a[r];return K(e)?Object.assign({},t,e):J(e,t)},set(e){this[o]=e}}})}apply(e){e.forEach(e=>e(this))}}({_scriptable:e=>!e.startsWith(`on`),_indexable:e=>e!==`events`,hover:{_fallback:`interaction`},interaction:{_scriptable:!1,_indexable:!1}},[xf,Sf,kf]);function Pf(e){return!e||W(e.size)||W(e.family)?null:(e.style?e.style+` `:``)+(e.weight?e.weight+` `:``)+e.size+`px `+e.family}function Ff(e,t,n,r,i){let a=t[i];return a||(a=t[i]=e.measureText(i).width,n.push(i)),a>r&&(r=a),r}function If(e,t,n,r){r||={};let i=r.data=r.data||{},a=r.garbageCollect=r.garbageCollect||[];r.font!==t&&(i=r.data={},a=r.garbageCollect=[],r.font=t),e.save(),e.font=t;let o=0,s=n.length,c,l,u,d,f;for(c=0;c<s;c++)if(d=n[c],d!=null&&!G(d))o=Ff(e,i,a,o,d);else if(G(d))for(l=0,u=d.length;l<u;l++)f=d[l],f!=null&&!G(f)&&(o=Ff(e,i,a,o,f));e.restore();let p=a.length/2;if(p>n.length){for(c=0;c<p;c++)delete i[a[c]];a.splice(0,p)}return o}function Lf(e,t,n){let r=e.currentDevicePixelRatio,i=n===0?0:Math.max(n/2,.5);return Math.round((t-i)*r)/r+i}function Rf(e,t){!t&&!e||(t||=e.getContext(`2d`),t.save(),t.resetTransform(),t.clearRect(0,0,e.width,e.height),t.restore())}function zf(e,t,n,r){Bf(e,t,n,r,null)}function Bf(e,t,n,r,i){let a,o,s,c,l,u,d,f,p=t.pointStyle,m=t.rotation,h=t.radius,g=(m||0)*Od;if(p&&typeof p==`object`&&(a=p.toString(),a===`[object HTMLImageElement]`||a===`[object HTMLCanvasElement]`)){e.save(),e.translate(n,r),e.rotate(g),e.drawImage(p,-p.width/2,-p.height/2,p.width,p.height),e.restore();return}if(!(isNaN(h)||h<=0)){switch(e.beginPath(),p){default:i?e.ellipse(n,r,i/2,h,0,0,Ed):e.arc(n,r,h,0,Ed),e.closePath();break;case`triangle`:u=i?i/2:h,e.moveTo(n+Math.sin(g)*u,r-Math.cos(g)*h),g+=jd,e.lineTo(n+Math.sin(g)*u,r-Math.cos(g)*h),g+=jd,e.lineTo(n+Math.sin(g)*u,r-Math.cos(g)*h),e.closePath();break;case`rectRounded`:l=h*.516,c=h-l,o=Math.cos(g+Ad)*c,d=Math.cos(g+Ad)*(i?i/2-l:c),s=Math.sin(g+Ad)*c,f=Math.sin(g+Ad)*(i?i/2-l:c),e.arc(n-d,r-s,l,g-Z,g-kd),e.arc(n+f,r-o,l,g-kd,g),e.arc(n+d,r+s,l,g,g+kd),e.arc(n-f,r+o,l,g+kd,g+Z),e.closePath();break;case`rect`:if(!m){c=Math.SQRT1_2*h,u=i?i/2:c,e.rect(n-u,r-c,2*u,2*c);break}g+=Ad;case`rectRot`:d=Math.cos(g)*(i?i/2:h),o=Math.cos(g)*h,s=Math.sin(g)*h,f=Math.sin(g)*(i?i/2:h),e.moveTo(n-d,r-s),e.lineTo(n+f,r-o),e.lineTo(n+d,r+s),e.lineTo(n-f,r+o),e.closePath();break;case`crossRot`:g+=Ad;case`cross`:d=Math.cos(g)*(i?i/2:h),o=Math.cos(g)*h,s=Math.sin(g)*h,f=Math.sin(g)*(i?i/2:h),e.moveTo(n-d,r-s),e.lineTo(n+d,r+s),e.moveTo(n+f,r-o),e.lineTo(n-f,r+o);break;case`star`:d=Math.cos(g)*(i?i/2:h),o=Math.cos(g)*h,s=Math.sin(g)*h,f=Math.sin(g)*(i?i/2:h),e.moveTo(n-d,r-s),e.lineTo(n+d,r+s),e.moveTo(n+f,r-o),e.lineTo(n-f,r+o),g+=Ad,d=Math.cos(g)*(i?i/2:h),o=Math.cos(g)*h,s=Math.sin(g)*h,f=Math.sin(g)*(i?i/2:h),e.moveTo(n-d,r-s),e.lineTo(n+d,r+s),e.moveTo(n+f,r-o),e.lineTo(n-f,r+o);break;case`line`:o=i?i/2:Math.cos(g)*h,s=Math.sin(g)*h,e.moveTo(n-o,r-s),e.lineTo(n+o,r+s);break;case`dash`:e.moveTo(n,r),e.lineTo(n+Math.cos(g)*(i?i/2:h),r+Math.sin(g)*h);break;case!1:e.closePath();break}e.fill(),t.borderWidth>0&&e.stroke()}}function Vf(e,t,n){return n||=.5,!t||e&&e.x>t.left-n&&e.x<t.right+n&&e.y>t.top-n&&e.y<t.bottom+n}function Hf(e,t){e.save(),e.beginPath(),e.rect(t.left,t.top,t.right-t.left,t.bottom-t.top),e.clip()}function Uf(e){e.restore()}function Wf(e,t){t.translation&&e.translate(t.translation[0],t.translation[1]),W(t.rotation)||e.rotate(t.rotation),t.color&&(e.fillStyle=t.color),t.textAlign&&(e.textAlign=t.textAlign),t.textBaseline&&(e.textBaseline=t.textBaseline)}function Gf(e,t,n,r,i){if(i.strikethrough||i.underline){let a=e.measureText(r),o=t-a.actualBoundingBoxLeft,s=t+a.actualBoundingBoxRight,c=n-a.actualBoundingBoxAscent,l=n+a.actualBoundingBoxDescent,u=i.strikethrough?(c+l)/2:l;e.strokeStyle=e.fillStyle,e.beginPath(),e.lineWidth=i.decorationWidth||2,e.moveTo(o,u),e.lineTo(s,u),e.stroke()}}function Kf(e,t){let n=e.fillStyle;e.fillStyle=t.color,e.fillRect(t.left,t.top,t.width,t.height),e.fillStyle=n}function qf(e,t,n,r,i,a={}){let o=G(t)?t:[t],s=a.strokeWidth>0&&a.strokeColor!==``,c,l;for(e.save(),e.font=i.string,Wf(e,a),c=0;c<o.length;++c)l=o[c],a.backdrop&&Kf(e,a.backdrop),s&&(a.strokeColor&&(e.strokeStyle=a.strokeColor),W(a.strokeWidth)||(e.lineWidth=a.strokeWidth),e.strokeText(l,n,r,a.maxWidth)),e.fillText(l,n,r,a.maxWidth),Gf(e,n,r,l,a),r+=Number(i.lineHeight);e.restore()}function Jf(e,t){let{x:n,y:r,w:i,h:a,radius:o}=t;e.arc(n+o.topLeft,r+o.topLeft,o.topLeft,1.5*Z,Z,!0),e.lineTo(n,r+a-o.bottomLeft),e.arc(n+o.bottomLeft,r+a-o.bottomLeft,o.bottomLeft,Z,kd,!0),e.lineTo(n+i-o.bottomRight,r+a),e.arc(n+i-o.bottomRight,r+a-o.bottomRight,o.bottomRight,kd,0,!0),e.lineTo(n+i,r+o.topRight),e.arc(n+i-o.topRight,r+o.topRight,o.topRight,0,-kd,!0),e.lineTo(n+o.topLeft,r)}var Yf=/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/,Xf=/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;function Zf(e,t){let n=(``+e).match(Yf);if(!n||n[1]===`normal`)return t*1.2;switch(e=+n[2],n[3]){case`px`:return e;case`%`:e/=100;break}return t*e}var Qf=e=>+e||0;function $f(e,t){let n={},r=K(t),i=r?Object.keys(t):t,a=K(e)?r?n=>J(e[n],e[t[n]]):t=>e[t]:()=>e;for(let e of i)n[e]=Qf(a(e));return n}function ep(e){return $f(e,{top:`y`,right:`x`,bottom:`y`,left:`x`})}function tp(e){return $f(e,[`topLeft`,`topRight`,`bottomLeft`,`bottomRight`])}function np(e){let t=ep(e);return t.width=t.left+t.right,t.height=t.top+t.bottom,t}function $(e,t){e||={},t||=Q.font;let n=J(e.size,t.size);typeof n==`string`&&(n=parseInt(n,10));let r=J(e.style,t.style);r&&!(``+r).match(Xf)&&(console.warn(`Invalid font style specified: "`+r+`"`),r=void 0);let i={family:J(e.family,t.family),lineHeight:Zf(J(e.lineHeight,t.lineHeight),n),size:n,style:r,weight:J(e.weight,t.weight),string:``};return i.string=Pf(i),i}function rp(e,t,n,r){let i=!0,a,o,s;for(a=0,o=e.length;a<o;++a)if(s=e[a],s!==void 0&&(t!==void 0&&typeof s==`function`&&(s=s(t),i=!1),n!==void 0&&G(s)&&(s=s[n%s.length],i=!1),s!==void 0))return r&&!i&&(r.cacheable=!1),s}function ip(e,t,n){let{min:r,max:i}=e,a=ld(t,(i-r)/2),o=(e,t)=>n&&e===0?0:e+t;return{min:o(r,-Math.abs(a)),max:o(i,a)}}function ap(e,t){return Object.assign(Object.create(e),t)}function op(e,t=[``],n,r,i=()=>e[0]){let a=n||e;return r===void 0&&(r=Sp(`_fallback`,e)),new Proxy({[Symbol.toStringTag]:`Object`,_cacheable:!0,_scopes:e,_rootScopes:a,_fallback:r,_getTarget:i,override:n=>op([n,...e],t,a,r)},{deleteProperty(t,n){return delete t[n],delete t._keys,delete e[0][n],!0},get(n,r){return dp(n,r,()=>xp(r,t,e,n))},getOwnPropertyDescriptor(e,t){return Reflect.getOwnPropertyDescriptor(e._scopes[0],t)},getPrototypeOf(){return Reflect.getPrototypeOf(e[0])},has(e,t){return Cp(e).includes(t)},ownKeys(e){return Cp(e)},set(e,t,n){let r=e._storage||=i();return e[t]=r[t]=n,delete e._keys,!0}})}function sp(e,t,n,r){let i={_cacheable:!1,_proxy:e,_context:t,_subProxy:n,_stack:new Set,_descriptors:cp(e,r),setContext:t=>sp(e,t,n,r),override:i=>sp(e.override(i),t,n,r)};return new Proxy(i,{deleteProperty(t,n){return delete t[n],delete e[n],!0},get(e,t,n){return dp(e,t,()=>fp(e,t,n))},getOwnPropertyDescriptor(t,n){return t._descriptors.allKeys?Reflect.has(e,n)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(e,n)},getPrototypeOf(){return Reflect.getPrototypeOf(e)},has(t,n){return Reflect.has(e,n)},ownKeys(){return Reflect.ownKeys(e)},set(t,n,r){return e[n]=r,delete t[n],!0}})}function cp(e,t={scriptable:!0,indexable:!0}){let{_scriptable:n=t.scriptable,_indexable:r=t.indexable,_allKeys:i=t.allKeys}=e;return{allKeys:i,scriptable:n,indexable:r,isScriptable:Cd(n)?n:()=>n,isIndexable:Cd(r)?r:()=>r}}var lp=(e,t)=>e?e+xd(t):t,up=(e,t)=>K(t)&&e!==`adapters`&&(Object.getPrototypeOf(t)===null||t.constructor===Object);function dp(e,t,n){if(Object.prototype.hasOwnProperty.call(e,t)||t===`constructor`)return e[t];let r=n();return e[t]=r,r}function fp(e,t,n){let{_proxy:r,_context:i,_subProxy:a,_descriptors:o}=e,s=r[t];return Cd(s)&&o.isScriptable(t)&&(s=pp(t,s,e,n)),G(s)&&s.length&&(s=mp(t,s,e,o.isIndexable)),up(t,s)&&(s=sp(s,i,a&&a[t],o)),s}function pp(e,t,n,r){let{_proxy:i,_context:a,_subProxy:o,_stack:s}=n;if(s.has(e))throw Error(`Recursion detected: `+Array.from(s).join(`->`)+`->`+e);s.add(e);let c=t(a,o||r);return s.delete(e),up(e,c)&&(c=vp(i._scopes,i,e,c)),c}function mp(e,t,n,r){let{_proxy:i,_context:a,_subProxy:o,_descriptors:s}=n;if(a.index!==void 0&&r(e))return t[a.index%t.length];if(K(t[0])){let n=t,r=i._scopes.filter(e=>e!==n);t=[];for(let c of n){let n=vp(r,i,e,c);t.push(sp(n,a,o&&o[e],s))}}return t}function hp(e,t,n){return Cd(e)?e(t,n):e}var gp=(e,t)=>e===!0?t:typeof e==`string`?bd(t,e):void 0;function _p(e,t,n,r,i){for(let a of t){let t=gp(n,a);if(t){e.add(t);let a=hp(t._fallback,n,i);if(a!==void 0&&a!==n&&a!==r)return a}else if(t===!1&&r!==void 0&&n!==r)return null}return!1}function vp(e,t,n,r){let i=t._rootScopes,a=hp(t._fallback,n,r),o=[...e,...i],s=new Set;s.add(r);let c=yp(s,o,n,a||n,r);return c===null||a!==void 0&&a!==n&&(c=yp(s,o,a,c,r),c===null)?!1:op(Array.from(s),[``],i,a,()=>bp(t,n,r))}function yp(e,t,n,r,i){for(;n;)n=_p(e,t,n,r,i);return n}function bp(e,t,n){let r=e._getTarget();t in r||(r[t]={});let i=r[t];return G(i)&&K(n)?n:i||{}}function xp(e,t,n,r){let i;for(let a of t)if(i=Sp(lp(a,e),n),i!==void 0)return up(e,i)?vp(n,r,e,i):i}function Sp(e,t){for(let n of t){if(!n)continue;let t=n[e];if(t!==void 0)return t}}function Cp(e){let t=e._keys;return t||=e._keys=wp(e._scopes),t}function wp(e){let t=new Set;for(let n of e)for(let e of Object.keys(n).filter(e=>!e.startsWith(`_`)))t.add(e);return Array.from(t)}function Tp(){return typeof window<`u`&&typeof document<`u`}function Ep(e){let t=e.parentNode;return t&&t.toString()===`[object ShadowRoot]`&&(t=t.host),t}function Dp(e,t,n){let r;return typeof e==`string`?(r=parseInt(e,10),e.indexOf(`%`)!==-1&&(r=r/100*t.parentNode[n])):r=e,r}var Op=e=>e.ownerDocument.defaultView.getComputedStyle(e,null);function kp(e,t){return Op(e).getPropertyValue(t)}var Ap=[`top`,`right`,`bottom`,`left`];function jp(e,t,n){let r={};n=n?`-`+n:``;for(let i=0;i<4;i++){let a=Ap[i];r[a]=parseFloat(e[t+`-`+a+n])||0}return r.width=r.left+r.right,r.height=r.top+r.bottom,r}var Mp=(e,t,n)=>(e>0||t>0)&&(!n||!n.shadowRoot);function Np(e,t){let n=e.touches,r=n&&n.length?n[0]:e,{offsetX:i,offsetY:a}=r,o=!1,s,c;if(Mp(i,a,e.target))s=i,c=a;else{let e=t.getBoundingClientRect();s=r.clientX-e.left,c=r.clientY-e.top,o=!0}return{x:s,y:c,box:o}}function Pp(e,t){if(`native`in e)return e;let{canvas:n,currentDevicePixelRatio:r}=t,i=Op(n),a=i.boxSizing===`border-box`,o=jp(i,`padding`),s=jp(i,`border`,`width`),{x:c,y:l,box:u}=Np(e,n),d=o.left+(u&&s.left),f=o.top+(u&&s.top),{width:p,height:m}=t;return a&&(p-=o.width+s.width,m-=o.height+s.height),{x:Math.round((c-d)/p*n.width/r),y:Math.round((l-f)/m*n.height/r)}}function Fp(e,t,n){let r,i;if(t===void 0||n===void 0){let a=e&&Ep(e);if(!a)t=e.clientWidth,n=e.clientHeight;else{let e=a.getBoundingClientRect(),o=Op(a),s=jp(o,`border`,`width`),c=jp(o,`padding`);t=e.width-c.width-s.width,n=e.height-c.height-s.height,r=Dp(o.maxWidth,a,`clientWidth`),i=Dp(o.maxHeight,a,`clientHeight`)}}return{width:t,height:n,maxWidth:r||Dd,maxHeight:i||Dd}}var Ip=e=>Math.round(e*10)/10;function Lp(e,t,n,r){let i=Op(e),a=jp(i,`margin`),o=Dp(i.maxWidth,e,`clientWidth`)||Dd,s=Dp(i.maxHeight,e,`clientHeight`)||Dd,c=Fp(e,t,n),{width:l,height:u}=c;if(i.boxSizing===`content-box`){let e=jp(i,`border`,`width`),t=jp(i,`padding`);l-=t.width+e.width,u-=t.height+e.height}return l=Math.max(0,l-a.width),u=Math.max(0,r?l/r:u-a.height),l=Ip(Math.min(l,o,c.maxWidth)),u=Ip(Math.min(u,s,c.maxHeight)),l&&!u&&(u=Ip(l/2)),(t!==void 0||n!==void 0)&&r&&c.height&&u>c.height&&(u=c.height,l=Ip(Math.floor(u*r))),{width:l,height:u}}function Rp(e,t,n){let r=t||1,i=Ip(e.height*r),a=Ip(e.width*r);e.height=Ip(e.height),e.width=Ip(e.width);let o=e.canvas;return o.style&&(n||!o.style.height&&!o.style.width)&&(o.style.height=`${e.height}px`,o.style.width=`${e.width}px`),e.currentDevicePixelRatio!==r||o.height!==i||o.width!==a?(e.currentDevicePixelRatio=r,o.height=i,o.width=a,e.ctx.setTransform(r,0,0,r,0,0),!0):!1}var zp=function(){let e=!1;try{let t={get passive(){return e=!0,!1}};Tp()&&(window.addEventListener(`test`,null,t),window.removeEventListener(`test`,null,t))}catch{}return e}();function Bp(e,t){let n=kp(e,t),r=n&&n.match(/^(\d+)(\.\d+)?px$/);return r?+r[1]:void 0}var Vp=function(e,t){return{x(n){return e+e+t-n},setWidth(e){t=e},textAlign(e){return e===`center`?e:e===`right`?`left`:`right`},xPlus(e,t){return e-t},leftForLtr(e,t){return e-t}}},Hp=function(){return{x(e){return e},setWidth(e){},textAlign(e){return e},xPlus(e,t){return e+t},leftForLtr(e,t){return e}}};function Up(e,t,n){return e?Vp(t,n):Hp()}function Wp(e,t){let n,r;(t===`ltr`||t===`rtl`)&&(n=e.canvas.style,r=[n.getPropertyValue(`direction`),n.getPropertyPriority(`direction`)],n.setProperty(`direction`,t,`important`),e.prevTextDirection=r)}function Gp(e,t){t!==void 0&&(delete e.prevTextDirection,e.canvas.style.setProperty(`direction`,t[0],t[1]))}function Kp(e,t,n){return e.options.clip?e[n]:t[n]}function qp(e,t){let{xScale:n,yScale:r}=e;return n&&r?{left:Kp(n,t,`left`),right:Kp(n,t,`right`),top:Kp(r,t,`top`),bottom:Kp(r,t,`bottom`)}:t}function Jp(e,t){let n=t._clip;if(n.disabled)return!1;let r=qp(t,e.chartArea);return{left:n.left===!1?0:r.left-(n.left===!0?0:n.left),right:n.right===!1?e.width:r.right+(n.right===!0?0:n.right),top:n.top===!1?0:r.top-(n.top===!0?0:n.top),bottom:n.bottom===!1?e.height:r.bottom+(n.bottom===!0?0:n.bottom)}}var Yp=new class{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(e,t,n,r){let i=t.listeners[r],a=t.duration;i.forEach(r=>r({chart:e,initial:t.initial,numSteps:a,currentStep:Math.min(n-t.start,a)}))}_refresh(){this._request||=(this._running=!0,of.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(e=Date.now()){let t=0;this._charts.forEach((n,r)=>{if(!n.running||!n.items.length)return;let i=n.items,a=i.length-1,o=!1,s;for(;a>=0;--a)s=i[a],s._active?(s._total>n.duration&&(n.duration=s._total),s.tick(e),o=!0):(i[a]=i[i.length-1],i.pop());o&&(r.draw(),this._notify(r,n,e,`progress`)),i.length||(n.running=!1,this._notify(r,n,e,`complete`),n.initial=!1),t+=i.length}),this._lastDate=e,t===0&&(this._running=!1)}_getAnims(e){let t=this._charts,n=t.get(e);return n||(n={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},t.set(e,n)),n}listen(e,t,n){this._getAnims(e).listeners[t].push(n)}add(e,t){!t||!t.length||this._getAnims(e).items.push(...t)}has(e){return this._getAnims(e).items.length>0}start(e){let t=this._charts.get(e);t&&(t.running=!0,t.start=Date.now(),t.duration=t.items.reduce((e,t)=>Math.max(e,t._duration),0),this._refresh())}running(e){if(!this._running)return!1;let t=this._charts.get(e);return!(!t||!t.running||!t.items.length)}stop(e){let t=this._charts.get(e);if(!t||!t.items.length)return;let n=t.items,r=n.length-1;for(;r>=0;--r)n[r].cancel();t.items=[],this._notify(e,t,Date.now(),`complete`)}remove(e){return this._charts.delete(e)}},Xp=`transparent`,Zp={boolean(e,t,n){return n>.5?t:e},color(e,t,n){let r=_f(e||Xp),i=r.valid&&_f(t||Xp);return i&&i.valid?i.mix(r,n).hexString():t},number(e,t,n){return e+(t-e)*n}},Qp=class{constructor(e,t,n,r){let i=t[n];r=rp([e.to,r,i,e.from]);let a=rp([e.from,i,r]);this._active=!0,this._fn=e.fn||Zp[e.type||typeof a],this._easing=hf[e.easing]||hf.linear,this._start=Math.floor(Date.now()+(e.delay||0)),this._duration=this._total=Math.floor(e.duration),this._loop=!!e.loop,this._target=t,this._prop=n,this._from=a,this._to=r,this._promises=void 0}active(){return this._active}update(e,t,n){if(this._active){this._notify(!1);let r=this._target[this._prop],i=n-this._start,a=this._duration-i;this._start=n,this._duration=Math.floor(Math.max(a,e.duration)),this._total+=i,this._loop=!!e.loop,this._to=rp([e.to,t,r,e.from]),this._from=rp([e.from,r,t])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(e){let t=e-this._start,n=this._duration,r=this._prop,i=this._from,a=this._loop,o=this._to,s;if(this._active=i!==o&&(a||t<n),!this._active){this._target[r]=o,this._notify(!0);return}if(t<0){this._target[r]=i;return}s=t/n%2,s=a&&s>1?2-s:s,s=this._easing(Math.min(1,Math.max(0,s))),this._target[r]=this._fn(i,o,s)}wait(){let e=this._promises||=[];return new Promise((t,n)=>{e.push({res:t,rej:n})})}_notify(e){let t=e?`res`:`rej`,n=this._promises||[];for(let e=0;e<n.length;e++)n[e][t]()}},$p=class{constructor(e,t){this._chart=e,this._properties=new Map,this.configure(t)}configure(e){if(!K(e))return;let t=Object.keys(Q.animation),n=this._properties;Object.getOwnPropertyNames(e).forEach(r=>{let i=e[r];if(!K(i))return;let a={};for(let e of t)a[e]=i[e];(G(i.properties)&&i.properties||[r]).forEach(e=>{(e===r||!n.has(e))&&n.set(e,a)})})}_animateOptions(e,t){let n=t.options,r=tm(e,n);if(!r)return[];let i=this._createAnimations(r,n);return n.$shared&&em(e.options.$animations,n).then(()=>{e.options=n},()=>{}),i}_createAnimations(e,t){let n=this._properties,r=[],i=e.$animations||={},a=Object.keys(t),o=Date.now(),s;for(s=a.length-1;s>=0;--s){let c=a[s];if(c.charAt(0)===`$`)continue;if(c===`options`){r.push(...this._animateOptions(e,t));continue}let l=t[c],u=i[c],d=n.get(c);if(u)if(d&&u.active()){u.update(d,l,o);continue}else u.cancel();if(!d||!d.duration){e[c]=l;continue}i[c]=u=new Qp(d,e,c,l),r.push(u)}return r}update(e,t){if(this._properties.size===0){Object.assign(e,t);return}let n=this._createAnimations(e,t);if(n.length)return Yp.add(this._chart,n),!0}};function em(e,t){let n=[],r=Object.keys(t);for(let t=0;t<r.length;t++){let i=e[r[t]];i&&i.active()&&n.push(i.wait())}return Promise.all(n)}function tm(e,t){if(!t)return;let n=e.options;if(!n){e.options=t;return}return n.$shared&&(e.options=n=Object.assign({},n,{$shared:!1,$animations:{}})),n}function nm(e,t){let n=e&&e.options||{},r=n.reverse,i=n.min===void 0?t:0,a=n.max===void 0?t:0;return{start:r?a:i,end:r?i:a}}function rm(e,t,n){if(n===!1)return!1;let r=nm(e,n),i=nm(t,n);return{top:i.end,right:r.end,bottom:i.start,left:r.start}}function im(e){let t,n,r,i;return K(e)?(t=e.top,n=e.right,r=e.bottom,i=e.left):t=n=r=i=e,{top:t,right:n,bottom:r,left:i,disabled:e===!1}}function am(e,t){let n=[],r=e._getSortedDatasetMetas(t),i,a;for(i=0,a=r.length;i<a;++i)n.push(r[i].index);return n}function om(e,t,n,r={}){let i=e.keys,a=r.mode===`single`,o,s,c,l;if(t===null)return;let u=!1;for(o=0,s=i.length;o<s;++o){if(c=+i[o],c===n){if(u=!0,r.all)continue;break}l=e.values[c],q(l)&&(a||t===0||Nd(t)===Nd(l))&&(t+=l)}return!u&&!r.all?0:t}function sm(e,t){let{iScale:n,vScale:r}=t,i=n.axis===`x`?`x`:`y`,a=r.axis===`x`?`x`:`y`,o=Object.keys(e),s=Array(o.length),c,l,u;for(c=0,l=o.length;c<l;++c)u=o[c],s[c]={[i]:u,[a]:e[u]};return s}function cm(e,t){let n=e&&e.options.stacked;return n||n===void 0&&t.stack!==void 0}function lm(e,t,n){return`${e.id}.${t.id}.${n.stack||n.type}`}function um(e){let{min:t,max:n,minDefined:r,maxDefined:i}=e.getUserBounds();return{min:r?t:-1/0,max:i?n:1/0}}function dm(e,t,n){let r=e[t]||(e[t]={});return r[n]||(r[n]={})}function fm(e,t,n,r){for(let i of t.getMatchingVisibleMetas(r).reverse()){let t=e[i.index];if(n&&t>0||!n&&t<0)return i.index}return null}function pm(e,t){let{chart:n,_cachedMeta:r}=e,i=n._stacks||={},{iScale:a,vScale:o,index:s}=r,c=a.axis,l=o.axis,u=lm(a,o,r),d=t.length,f;for(let e=0;e<d;++e){let n=t[e],{[c]:a,[l]:d}=n,p=n._stacks||={};f=p[l]=dm(i,u,a),f[s]=d,f._top=fm(f,o,!0,r.type),f._bottom=fm(f,o,!1,r.type);let m=f._visualValues||={};m[s]=d}}function mm(e,t){let n=e.scales;return Object.keys(n).filter(e=>n[e].axis===t).shift()}function hm(e,t){return ap(e,{active:!1,dataset:void 0,datasetIndex:t,index:t,mode:`default`,type:`dataset`})}function gm(e,t,n){return ap(e,{active:!1,dataIndex:t,parsed:void 0,raw:void 0,element:n,index:t,mode:`default`,type:`data`})}function _m(e,t){let n=e.controller.index,r=e.vScale&&e.vScale.axis;if(r){t||=e._parsed;for(let e of t){let t=e._stacks;if(!t||t[r]===void 0||t[r][n]===void 0)return;delete t[r][n],t[r]._visualValues!==void 0&&t[r]._visualValues[n]!==void 0&&delete t[r]._visualValues[n]}}}var vm=e=>e===`reset`||e===`none`,ym=(e,t)=>t?e:Object.assign({},e),bm=(e,t,n)=>e&&!t.hidden&&t._stacked&&{keys:am(n,!0),values:null},xm=class{static defaults={};static datasetElementType=null;static dataElementType=null;constructor(e,t){this.chart=e,this._ctx=e.ctx,this.index=t,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){let e=this._cachedMeta;this.configure(),this.linkScales(),e._stacked=cm(e.vScale,e),this.addElements(),this.options.fill&&!this.chart.isPluginEnabled(`filler`)&&console.warn(`Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options`)}updateIndex(e){this.index!==e&&_m(this._cachedMeta),this.index=e}linkScales(){let e=this.chart,t=this._cachedMeta,n=this.getDataset(),r=(e,t,n,r)=>e===`x`?t:e===`r`?r:n,i=t.xAxisID=J(n.xAxisID,mm(e,`x`)),a=t.yAxisID=J(n.yAxisID,mm(e,`y`)),o=t.rAxisID=J(n.rAxisID,mm(e,`r`)),s=t.indexAxis,c=t.iAxisID=r(s,i,a,o),l=t.vAxisID=r(s,a,i,o);t.xScale=this.getScaleForId(i),t.yScale=this.getScaleForId(a),t.rScale=this.getScaleForId(o),t.iScale=this.getScaleForId(c),t.vScale=this.getScaleForId(l)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(e){return this.chart.scales[e]}_getOtherScale(e){let t=this._cachedMeta;return e===t.iScale?t.vScale:t.iScale}reset(){this._update(`reset`)}_destroy(){let e=this._cachedMeta;this._data&&rf(this._data,this),e._stacked&&_m(e)}_dataCheck(){let e=this.getDataset(),t=e.data||=[],n=this._data;if(K(t)){let e=this._cachedMeta;this._data=sm(t,e)}else if(n!==t){if(n){rf(n,this);let e=this._cachedMeta;_m(e),e._parsed=[]}t&&Object.isExtensible(t)&&nf(t,this),this._syncList=[],this._data=t}}addElements(){let e=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(e.dataset=new this.datasetElementType)}buildOrUpdateElements(e){let t=this._cachedMeta,n=this.getDataset(),r=!1;this._dataCheck();let i=t._stacked;t._stacked=cm(t.vScale,t),t.stack!==n.stack&&(r=!0,_m(t),t.stack=n.stack),this._resyncElements(e),(r||i!==t._stacked)&&(pm(this,t._parsed),t._stacked=cm(t.vScale,t))}configure(){let e=this.chart.config,t=e.datasetScopeKeys(this._type),n=e.getOptionScopes(this.getDataset(),t,!0);this.options=e.createResolver(n,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(e,t){let{_cachedMeta:n,_data:r}=this,{iScale:i,_stacked:a}=n,o=i.axis,s=e===0&&t===r.length?!0:n._sorted,c=e>0&&n._parsed[e-1],l,u,d;if(this._parsing===!1)n._parsed=r,n._sorted=!0,d=r;else{d=G(r[e])?this.parseArrayData(n,r,e,t):K(r[e])?this.parseObjectData(n,r,e,t):this.parsePrimitiveData(n,r,e,t);let i=()=>u[o]===null||c&&u[o]<c[o];for(l=0;l<t;++l)n._parsed[l+e]=u=d[l],s&&(i()&&(s=!1),c=u);n._sorted=s}a&&pm(this,d)}parsePrimitiveData(e,t,n,r){let{iScale:i,vScale:a}=e,o=i.axis,s=a.axis,c=i.getLabels(),l=i===a,u=Array(r),d,f,p;for(d=0,f=r;d<f;++d)p=d+n,u[d]={[o]:l||i.parse(c[p],p),[s]:a.parse(t[p],p)};return u}parseArrayData(e,t,n,r){let{xScale:i,yScale:a}=e,o=Array(r),s,c,l,u;for(s=0,c=r;s<c;++s)l=s+n,u=t[l],o[s]={x:i.parse(u[0],l),y:a.parse(u[1],l)};return o}parseObjectData(e,t,n,r){let{xScale:i,yScale:a}=e,{xAxisKey:o=`x`,yAxisKey:s=`y`}=this._parsing,c=Array(r),l,u,d,f;for(l=0,u=r;l<u;++l)d=l+n,f=t[d],c[l]={x:i.parse(bd(f,o),d),y:a.parse(bd(f,s),d)};return c}getParsed(e){return this._cachedMeta._parsed[e]}getDataElement(e){return this._cachedMeta.data[e]}applyStack(e,t,n){let r=this.chart,i=this._cachedMeta,a=t[e.axis];return om({keys:am(r,!0),values:t._stacks[e.axis]._visualValues},a,i.index,{mode:n})}updateRangeFromParsed(e,t,n,r){let i=n[t.axis],a=i===null?NaN:i,o=r&&n._stacks[t.axis];r&&o&&(r.values=o,a=om(r,i,this._cachedMeta.index)),e.min=Math.min(e.min,a),e.max=Math.max(e.max,a)}getMinMax(e,t){let n=this._cachedMeta,r=n._parsed,i=n._sorted&&e===n.iScale,a=r.length,o=this._getOtherScale(e),s=bm(t,n,this.chart),c={min:1/0,max:-1/0},{min:l,max:u}=um(o),d,f;function p(){f=r[d];let t=f[o.axis];return!q(f[e.axis])||l>t||u<t}for(d=0;d<a&&!(!p()&&(this.updateRangeFromParsed(c,e,f,s),i));++d);if(i){for(d=a-1;d>=0;--d)if(!p()){this.updateRangeFromParsed(c,e,f,s);break}}return c}getAllParsedValues(e){let t=this._cachedMeta._parsed,n=[],r,i,a;for(r=0,i=t.length;r<i;++r)a=t[r][e.axis],q(a)&&n.push(a);return n}getMaxOverflow(){return!1}getLabelAndValue(e){let t=this._cachedMeta,n=t.iScale,r=t.vScale,i=this.getParsed(e);return{label:n?``+n.getLabelForValue(i[n.axis]):``,value:r?``+r.getLabelForValue(i[r.axis]):``}}_update(e){let t=this._cachedMeta;this.update(e||`default`),t._clip=im(J(this.options.clip,rm(t.xScale,t.yScale,this.getMaxOverflow())))}update(e){}draw(){let e=this._ctx,t=this.chart,n=this._cachedMeta,r=n.data||[],i=t.chartArea,a=[],o=this._drawStart||0,s=this._drawCount||r.length-o,c=this.options.drawActiveElementsOnTop,l;for(n.dataset&&n.dataset.draw(e,i,o,s),l=o;l<o+s;++l){let t=r[l];t.hidden||(t.active&&c?a.push(t):t.draw(e,i))}for(l=0;l<a.length;++l)a[l].draw(e,i)}getStyle(e,t){let n=t?`active`:`default`;return e===void 0&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(n):this.resolveDataElementOptions(e||0,n)}getContext(e,t,n){let r=this.getDataset(),i;if(e>=0&&e<this._cachedMeta.data.length){let t=this._cachedMeta.data[e];i=t.$context||=gm(this.getContext(),e,t),i.parsed=this.getParsed(e),i.raw=r.data[e],i.index=i.dataIndex=e}else i=this.$context||=hm(this.chart.getContext(),this.index),i.dataset=r,i.index=i.datasetIndex=this.index;return i.active=!!t,i.mode=n,i}resolveDatasetElementOptions(e){return this._resolveElementOptions(this.datasetElementType.id,e)}resolveDataElementOptions(e,t){return this._resolveElementOptions(this.dataElementType.id,t,e)}_resolveElementOptions(e,t=`default`,n){let r=t===`active`,i=this._cachedDataOpts,a=e+`-`+t,o=i[a],s=this.enableOptionSharing&&Sd(n);if(o)return ym(o,s);let c=this.chart.config,l=c.datasetElementScopeKeys(this._type,e),u=r?[`${e}Hover`,`hover`,e,``]:[e,``],d=c.getOptionScopes(this.getDataset(),l),f=Object.keys(Q.elements[e]),p=c.resolveNamedOptions(d,f,()=>this.getContext(n,r,t),u);return p.$shared&&(p.$shared=s,i[a]=Object.freeze(ym(p,s))),p}_resolveAnimations(e,t,n){let r=this.chart,i=this._cachedDataOpts,a=`animation-${t}`,o=i[a];if(o)return o;let s;if(r.options.animation!==!1){let r=this.chart.config,i=r.datasetAnimationScopeKeys(this._type,t),a=r.getOptionScopes(this.getDataset(),i);s=r.createResolver(a,this.getContext(e,n,t))}let c=new $p(r,s&&s.animations);return s&&s._cacheable&&(i[a]=Object.freeze(c)),c}getSharedOptions(e){if(e.$shared)return this._sharedOptions||=Object.assign({},e)}includeOptions(e,t){return!t||vm(e)||this.chart._animationsDisabled}_getSharedOptions(e,t){let n=this.resolveDataElementOptions(e,t),r=this._sharedOptions,i=this.getSharedOptions(n),a=this.includeOptions(t,i)||i!==r;return this.updateSharedOptions(i,t,n),{sharedOptions:i,includeOptions:a}}updateElement(e,t,n,r){vm(r)?Object.assign(e,n):this._resolveAnimations(t,r).update(e,n)}updateSharedOptions(e,t,n){e&&!vm(t)&&this._resolveAnimations(void 0,t).update(e,n)}_setStyle(e,t,n,r){e.active=r;let i=this.getStyle(t,r);this._resolveAnimations(t,n,r).update(e,{options:!r&&this.getSharedOptions(i)||i})}removeHoverStyle(e,t,n){this._setStyle(e,n,`active`,!1)}setHoverStyle(e,t,n){this._setStyle(e,n,`active`,!0)}_removeDatasetHoverStyle(){let e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,`active`,!1)}_setDatasetHoverStyle(){let e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,`active`,!0)}_resyncElements(e){let t=this._data,n=this._cachedMeta.data;for(let[e,t,n]of this._syncList)this[e](t,n);this._syncList=[];let r=n.length,i=t.length,a=Math.min(i,r);a&&this.parse(0,a),i>r?this._insertElements(r,i-r,e):i<r&&this._removeElements(i,r-i)}_insertElements(e,t,n=!0){let r=this._cachedMeta,i=r.data,a=e+t,o,s=e=>{for(e.length+=t,o=e.length-1;o>=a;o--)e[o]=e[o-t]};for(s(i),o=e;o<a;++o)i[o]=new this.dataElementType;this._parsing&&s(r._parsed),this.parse(e,t),n&&this.updateElements(i,e,t,`reset`)}updateElements(e,t,n,r){}_removeElements(e,t){let n=this._cachedMeta;if(this._parsing){let r=n._parsed.splice(e,t);n._stacked&&_m(n,r)}n.data.splice(e,t)}_sync(e){if(this._parsing)this._syncList.push(e);else{let[t,n,r]=e;this[t](n,r)}this.chart._dataChanges.push([this.index,...e])}_onDataPush(){let e=arguments.length;this._sync([`_insertElements`,this.getDataset().data.length-e,e])}_onDataPop(){this._sync([`_removeElements`,this._cachedMeta.data.length-1,1])}_onDataShift(){this._sync([`_removeElements`,0,1])}_onDataSplice(e,t){t&&this._sync([`_removeElements`,e,t]);let n=arguments.length-2;n&&this._sync([`_insertElements`,e,n])}_onDataUnshift(){this._sync([`_insertElements`,0,arguments.length])}};function Sm(e,t){if(!e._cache.$bar){let n=e.getMatchingVisibleMetas(t),r=[];for(let t=0,i=n.length;t<i;t++)r=r.concat(n[t].controller.getAllParsedValues(e));e._cache.$bar=af(r.sort((e,t)=>e-t))}return e._cache.$bar}function Cm(e){let t=e.iScale,n=Sm(t,e.type),r=t._length,i,a,o,s,c=()=>{o===32767||o===-32768||(Sd(s)&&(r=Math.min(r,Math.abs(o-s)||r)),s=o)};for(i=0,a=n.length;i<a;++i)o=t.getPixelForValue(n[i]),c();for(s=void 0,i=0,a=t.ticks.length;i<a;++i)o=t.getPixelForTick(i),c();return r}function wm(e,t,n,r){let i=n.barThickness,a,o;return W(i)?(a=t.min*n.categoryPercentage,o=n.barPercentage):(a=i*r,o=1),{chunk:a/r,ratio:o,start:t.pixels[e]-a/2}}function Tm(e,t,n,r){let i=t.pixels,a=i[e],o=e>0?i[e-1]:null,s=e<i.length-1?i[e+1]:null,c=n.categoryPercentage;o===null&&(o=a-(s===null?t.end-t.start:s-a)),s===null&&(s=a+a-o);let l=a-(a-Math.min(o,s))/2*c;return{chunk:Math.abs(s-o)/2*c/r,ratio:n.barPercentage,start:l}}function Em(e,t,n,r){let i=n.parse(e[0],r),a=n.parse(e[1],r),o=Math.min(i,a),s=Math.max(i,a),c=o,l=s;Math.abs(o)>Math.abs(s)&&(c=s,l=o),t[n.axis]=l,t._custom={barStart:c,barEnd:l,start:i,end:a,min:o,max:s}}function Dm(e,t,n,r){return G(e)?Em(e,t,n,r):t[n.axis]=n.parse(e,r),t}function Om(e,t,n,r){let i=e.iScale,a=e.vScale,o=i.getLabels(),s=i===a,c=[],l,u,d,f;for(l=n,u=n+r;l<u;++l)f=t[l],d={},d[i.axis]=s||i.parse(o[l],l),c.push(Dm(f,d,a,l));return c}function km(e){return e&&e.barStart!==void 0&&e.barEnd!==void 0}function Am(e,t,n){return e===0?(t.isHorizontal()?1:-1)*(t.min>=n?1:-1):Nd(e)}function jm(e){let t,n,r,i,a;return e.horizontal?(t=e.base>e.x,n=`left`,r=`right`):(t=e.base<e.y,n=`bottom`,r=`top`),t?(i=`end`,a=`start`):(i=`start`,a=`end`),{start:n,end:r,reverse:t,top:i,bottom:a}}function Mm(e,t,n,r){let i=t.borderSkipped,a={};if(!i){e.borderSkipped=a;return}if(i===!0){e.borderSkipped={top:!0,right:!0,bottom:!0,left:!0};return}let{start:o,end:s,reverse:c,top:l,bottom:u}=jm(e);i===`middle`&&n&&(e.enableBorderRadius=!0,(n._top||0)===r?i=l:(n._bottom||0)===r?i=u:(a[Nm(u,o,s,c)]=!0,i=l)),a[Nm(i,o,s,c)]=!0,e.borderSkipped=a}function Nm(e,t,n,r){return r?(e=Pm(e,t,n),e=Fm(e,n,t)):e=Fm(e,t,n),e}function Pm(e,t,n){return e===t?n:e===n?t:e}function Fm(e,t,n){return e===`start`?t:e===`end`?n:e}function Im(e,{inflateAmount:t},n){e.inflateAmount=t===`auto`?n===1?.33:0:t}var Lm=class extends xm{static id=`bar`;static defaults={datasetElementType:!1,dataElementType:`bar`,categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:`number`,properties:[`x`,`y`,`base`,`width`,`height`]}}};static overrides={scales:{_index_:{type:`category`,offset:!0,grid:{offset:!0}},_value_:{type:`linear`,beginAtZero:!0}}};parsePrimitiveData(e,t,n,r){return Om(e,t,n,r)}parseArrayData(e,t,n,r){return Om(e,t,n,r)}parseObjectData(e,t,n,r){let{iScale:i,vScale:a}=e,{xAxisKey:o=`x`,yAxisKey:s=`y`}=this._parsing,c=i.axis===`x`?o:s,l=a.axis===`x`?o:s,u=[],d,f,p,m;for(d=n,f=n+r;d<f;++d)m=t[d],p={},p[i.axis]=i.parse(bd(m,c),d),u.push(Dm(bd(m,l),p,a,d));return u}updateRangeFromParsed(e,t,n,r){super.updateRangeFromParsed(e,t,n,r);let i=n._custom;i&&t===this._cachedMeta.vScale&&(e.min=Math.min(e.min,i.min),e.max=Math.max(e.max,i.max))}getMaxOverflow(){return 0}getLabelAndValue(e){let{iScale:t,vScale:n}=this._cachedMeta,r=this.getParsed(e),i=r._custom,a=km(i)?`[`+i.start+`, `+i.end+`]`:``+n.getLabelForValue(r[n.axis]);return{label:``+t.getLabelForValue(r[t.axis]),value:a}}initialize(){this.enableOptionSharing=!0,super.initialize();let e=this._cachedMeta;e.stack=this.getDataset().stack}update(e){let t=this._cachedMeta;this.updateElements(t.data,0,t.data.length,e)}updateElements(e,t,n,r){let i=r===`reset`,{index:a,_cachedMeta:{vScale:o}}=this,s=o.getBasePixel(),c=o.isHorizontal(),l=this._getRuler(),{sharedOptions:u,includeOptions:d}=this._getSharedOptions(t,r);for(let f=t;f<t+n;f++){let t=this.getParsed(f),n=i||W(t[o.axis])?{base:s,head:s}:this._calculateBarValuePixels(f),p=this._calculateBarIndexPixels(f,l),m=(t._stacks||{})[o.axis],h={horizontal:c,base:n.base,enableBorderRadius:!m||km(t._custom)||a===m._top||a===m._bottom,x:c?n.head:p.center,y:c?p.center:n.head,height:c?p.size:Math.abs(n.size),width:c?Math.abs(n.size):p.size};d&&(h.options=u||this.resolveDataElementOptions(f,e[f].active?`active`:r));let g=h.options||e[f].options;Mm(h,g,m,a),Im(h,g,l.ratio),this.updateElement(e[f],f,h,r)}}_getStacks(e,t){let{iScale:n}=this._cachedMeta,r=n.getMatchingVisibleMetas(this._type).filter(e=>e.controller.options.grouped),i=n.options.stacked,a=[],o=this._cachedMeta.controller.getParsed(t),s=o&&o[n.axis],c=e=>{let t=e._parsed.find(e=>e[n.axis]===s),r=t&&t[e.vScale.axis];if(W(r)||isNaN(r))return!0};for(let n of r)if(!(t!==void 0&&c(n))&&((i===!1||a.indexOf(n.stack)===-1||i===void 0&&n.stack===void 0)&&a.push(n.stack),n.index===e))break;return a.length||a.push(void 0),a}_getStackCount(e){return this._getStacks(void 0,e).length}_getAxisCount(){return this._getAxis().length}getFirstScaleIdForIndexAxis(){let e=this.chart.scales,t=this.chart.options.indexAxis;return Object.keys(e).filter(n=>e[n].axis===t).shift()}_getAxis(){let e={},t=this.getFirstScaleIdForIndexAxis();for(let n of this.chart.data.datasets)e[J(this.chart.options.indexAxis===`x`?n.xAxisID:n.yAxisID,t)]=!0;return Object.keys(e)}_getStackIndex(e,t,n){let r=this._getStacks(e,n),i=t===void 0?-1:r.indexOf(t);return i===-1?r.length-1:i}_getRuler(){let e=this.options,t=this._cachedMeta,n=t.iScale,r=[],i,a;for(i=0,a=t.data.length;i<a;++i)r.push(n.getPixelForValue(this.getParsed(i)[n.axis],i));let o=e.barThickness;return{min:o||Cm(t),pixels:r,start:n._startPixel,end:n._endPixel,stackCount:this._getStackCount(),scale:n,grouped:e.grouped,ratio:o?1:e.categoryPercentage*e.barPercentage}}_calculateBarValuePixels(e){let{_cachedMeta:{vScale:t,_stacked:n,index:r},options:{base:i,minBarLength:a}}=this,o=i||0,s=this.getParsed(e),c=s._custom,l=km(c),u=s[t.axis],d=0,f=n?this.applyStack(t,s,n):u,p,m;f!==u&&(d=f-u,f=u),l&&(u=c.barStart,f=c.barEnd-c.barStart,u!==0&&Nd(u)!==Nd(c.barEnd)&&(d=0),d+=u);let h=!W(i)&&!l?i:d,g=t.getPixelForValue(h);if(p=this.chart.getDataVisibility(e)?t.getPixelForValue(d+f):g,m=p-g,Math.abs(m)<a){m=Am(m,t,o)*a,u===o&&(g-=m/2);let e=t.getPixelForDecimal(0),i=t.getPixelForDecimal(1);g=Math.max(Math.min(g,Math.max(e,i)),Math.min(e,i)),p=g+m,n&&!l&&(s._stacks[t.axis]._visualValues[r]=t.getValueForPixel(p)-t.getValueForPixel(g))}if(g===t.getPixelForValue(o)){let e=Nd(m)*t.getLineWidthForValue(o)/2;g+=e,m-=e}return{size:m,base:g,head:p,center:p+m/2}}_calculateBarIndexPixels(e,t){let n=t.scale,r=this.options,i=r.skipNull,a=J(r.maxBarThickness,1/0),o,s,c=this._getAxisCount();if(t.grouped){let n=i?this._getStackCount(e):t.stackCount,l=r.barThickness===`flex`?Tm(e,t,r,n*c):wm(e,t,r,n*c),u=this.chart.options.indexAxis===`x`?this.getDataset().xAxisID:this.getDataset().yAxisID,d=this._getAxis().indexOf(J(u,this.getFirstScaleIdForIndexAxis())),f=this._getStackIndex(this.index,this._cachedMeta.stack,i?e:void 0)+d;o=l.start+l.chunk*f+l.chunk/2,s=Math.min(a,l.chunk*l.ratio)}else o=n.getPixelForValue(this.getParsed(e)[n.axis],e),s=Math.min(a,t.min*t.ratio);return{base:o-s/2,head:o+s/2,center:o,size:s}}draw(){let e=this._cachedMeta,t=e.vScale,n=e.data,r=n.length,i=0;for(;i<r;++i)this.getParsed(i)[t.axis]!==null&&!n[i].hidden&&n[i].draw(this._ctx)}};function Rm(){throw Error(`This method is not implemented: Check that a complete date adapter is provided.`)}var zm={_date:class e{static override(t){Object.assign(e.prototype,t)}options;constructor(e){this.options=e||{}}init(){}formats(){return Rm()}parse(){return Rm()}format(){return Rm()}add(){return Rm()}diff(){return Rm()}startOf(){return Rm()}endOf(){return Rm()}}};function Bm(e,t,n,r){let{controller:i,data:a,_sorted:o}=e,s=i._cachedMeta.iScale,c=e.dataset&&e.dataset.options?e.dataset.options.spanGaps:null;if(s&&t===s.axis&&t!==`r`&&o&&a.length){let o=s._reversePixels?$d:Qd;if(!r){let r=o(a,t,n);if(c){let{vScale:t}=i._cachedMeta,{_parsed:n}=e,a=n.slice(0,r.lo+1).reverse().findIndex(e=>!W(e[t.axis]));r.lo-=Math.max(0,a);let o=n.slice(r.hi).findIndex(e=>!W(e[t.axis]));r.hi+=Math.max(0,o)}return r}else if(i._sharedOptions){let e=a[0],r=typeof e.getRange==`function`&&e.getRange(t);if(r){let e=o(a,t,n-r),i=o(a,t,n+r);return{lo:e.lo,hi:i.hi}}}}return{lo:0,hi:a.length-1}}function Vm(e,t,n,r,i){let a=e.getSortedVisibleDatasetMetas(),o=n[t];for(let e=0,n=a.length;e<n;++e){let{index:n,data:s}=a[e],{lo:c,hi:l}=Bm(a[e],t,o,i);for(let e=c;e<=l;++e){let t=s[e];t.skip||r(t,n,e)}}}function Hm(e){let t=e.indexOf(`x`)!==-1,n=e.indexOf(`y`)!==-1;return function(e,r){let i=t?Math.abs(e.x-r.x):0,a=n?Math.abs(e.y-r.y):0;return Math.sqrt(i**2+a**2)}}function Um(e,t,n,r,i){let a=[];return!i&&!e.isPointInArea(t)||Vm(e,n,t,function(n,o,s){!i&&!Vf(n,e.chartArea,0)||n.inRange(t.x,t.y,r)&&a.push({element:n,datasetIndex:o,index:s})},!0),a}function Wm(e,t,n,r){let i=[];function a(e,n,a){let{startAngle:o,endAngle:s}=e.getProps([`startAngle`,`endAngle`],r),{angle:c}=Wd(e,{x:t.x,y:t.y});qd(c,o,s)&&i.push({element:e,datasetIndex:n,index:a})}return Vm(e,n,t,a),i}function Gm(e,t,n,r,i,a){let o=[],s=Hm(n),c=1/0;function l(n,l,u){let d=n.inRange(t.x,t.y,i);if(r&&!d)return;let f=n.getCenterPoint(i);if(!(a||e.isPointInArea(f))&&!d)return;let p=s(t,f);p<c?(o=[{element:n,datasetIndex:l,index:u}],c=p):p===c&&o.push({element:n,datasetIndex:l,index:u})}return Vm(e,n,t,l),o}function Km(e,t,n,r,i,a){return!a&&!e.isPointInArea(t)?[]:n===`r`&&!r?Wm(e,t,n,i):Gm(e,t,n,r,i,a)}function qm(e,t,n,r,i){let a=[],o=n===`x`?`inXRange`:`inYRange`,s=!1;return Vm(e,n,t,(e,r,c)=>{e[o]&&e[o](t[n],i)&&(a.push({element:e,datasetIndex:r,index:c}),s||=e.inRange(t.x,t.y,i))}),r&&!s?[]:a}var Jm={evaluateInteractionItems:Vm,modes:{index(e,t,n,r){let i=Pp(t,e),a=n.axis||`x`,o=n.includeInvisible||!1,s=n.intersect?Um(e,i,a,r,o):Km(e,i,a,!1,r,o),c=[];return s.length?(e.getSortedVisibleDatasetMetas().forEach(e=>{let t=s[0].index,n=e.data[t];n&&!n.skip&&c.push({element:n,datasetIndex:e.index,index:t})}),c):[]},dataset(e,t,n,r){let i=Pp(t,e),a=n.axis||`xy`,o=n.includeInvisible||!1,s=n.intersect?Um(e,i,a,r,o):Km(e,i,a,!1,r,o);if(s.length>0){let t=s[0].datasetIndex,n=e.getDatasetMeta(t).data;s=[];for(let e=0;e<n.length;++e)s.push({element:n[e],datasetIndex:t,index:e})}return s},point(e,t,n,r){return Um(e,Pp(t,e),n.axis||`xy`,r,n.includeInvisible||!1)},nearest(e,t,n,r){let i=Pp(t,e),a=n.axis||`xy`,o=n.includeInvisible||!1;return Km(e,i,a,n.intersect,r,o)},x(e,t,n,r){return qm(e,Pp(t,e),`x`,n.intersect,r)},y(e,t,n,r){return qm(e,Pp(t,e),`y`,n.intersect,r)}}},Ym=[`left`,`top`,`right`,`bottom`];function Xm(e,t){return e.filter(e=>e.pos===t)}function Zm(e,t){return e.filter(e=>Ym.indexOf(e.pos)===-1&&e.box.axis===t)}function Qm(e,t){return e.sort((e,n)=>{let r=t?n:e,i=t?e:n;return r.weight===i.weight?r.index-i.index:r.weight-i.weight})}function $m(e){let t=[],n,r,i,a,o,s;for(n=0,r=(e||[]).length;n<r;++n)i=e[n],{position:a,options:{stack:o,stackWeight:s=1}}=i,t.push({index:n,box:i,pos:a,horizontal:i.isHorizontal(),weight:i.weight,stack:o&&a+o,stackWeight:s});return t}function eh(e){let t={};for(let n of e){let{stack:e,pos:r,stackWeight:i}=n;if(!e||!Ym.includes(r))continue;let a=t[e]||(t[e]={count:0,placed:0,weight:0,size:0});a.count++,a.weight+=i}return t}function th(e,t){let n=eh(e),{vBoxMaxWidth:r,hBoxMaxHeight:i}=t,a,o,s;for(a=0,o=e.length;a<o;++a){s=e[a];let{fullSize:o}=s.box,c=n[s.stack],l=c&&s.stackWeight/c.weight;s.horizontal?(s.width=l?l*r:o&&t.availableWidth,s.height=i):(s.width=r,s.height=l?l*i:o&&t.availableHeight)}return n}function nh(e){let t=$m(e),n=Qm(t.filter(e=>e.box.fullSize),!0),r=Qm(Xm(t,`left`),!0),i=Qm(Xm(t,`right`)),a=Qm(Xm(t,`top`),!0),o=Qm(Xm(t,`bottom`)),s=Zm(t,`x`),c=Zm(t,`y`);return{fullSize:n,leftAndTop:r.concat(a),rightAndBottom:i.concat(c).concat(o).concat(s),chartArea:Xm(t,`chartArea`),vertical:r.concat(i).concat(c),horizontal:a.concat(o).concat(s)}}function rh(e,t,n,r){return Math.max(e[n],t[n])+Math.max(e[r],t[r])}function ih(e,t){e.top=Math.max(e.top,t.top),e.left=Math.max(e.left,t.left),e.bottom=Math.max(e.bottom,t.bottom),e.right=Math.max(e.right,t.right)}function ah(e,t,n,r){let{pos:i,box:a}=n,o=e.maxPadding;if(!K(i)){n.size&&(e[i]-=n.size);let t=r[n.stack]||{size:0,count:1};t.size=Math.max(t.size,n.horizontal?a.height:a.width),n.size=t.size/t.count,e[i]+=n.size}a.getPadding&&ih(o,a.getPadding());let s=Math.max(0,t.outerWidth-rh(o,e,`left`,`right`)),c=Math.max(0,t.outerHeight-rh(o,e,`top`,`bottom`)),l=s!==e.w,u=c!==e.h;return e.w=s,e.h=c,n.horizontal?{same:l,other:u}:{same:u,other:l}}function oh(e){let t=e.maxPadding;function n(n){let r=Math.max(t[n]-e[n],0);return e[n]+=r,r}e.y+=n(`top`),e.x+=n(`left`),n(`right`),n(`bottom`)}function sh(e,t){let n=t.maxPadding;function r(e){let r={left:0,top:0,right:0,bottom:0};return e.forEach(e=>{r[e]=Math.max(t[e],n[e])}),r}return r(e?[`left`,`right`]:[`top`,`bottom`])}function ch(e,t,n,r){let i=[],a,o,s,c,l,u;for(a=0,o=e.length,l=0;a<o;++a){s=e[a],c=s.box,c.update(s.width||t.w,s.height||t.h,sh(s.horizontal,t));let{same:o,other:d}=ah(t,n,s,r);l|=o&&i.length,u||=d,c.fullSize||i.push(s)}return l&&ch(i,t,n,r)||u}function lh(e,t,n,r,i){e.top=n,e.left=t,e.right=t+r,e.bottom=n+i,e.width=r,e.height=i}function uh(e,t,n,r){let i=n.padding,{x:a,y:o}=t;for(let s of e){let e=s.box,c=r[s.stack]||{count:1,placed:0,weight:1},l=s.stackWeight/c.weight||1;if(s.horizontal){let r=t.w*l,a=c.size||e.height;Sd(c.start)&&(o=c.start),e.fullSize?lh(e,i.left,o,n.outerWidth-i.right-i.left,a):lh(e,t.left+c.placed,o,r,a),c.start=o,c.placed+=r,o=e.bottom}else{let r=t.h*l,o=c.size||e.width;Sd(c.start)&&(a=c.start),e.fullSize?lh(e,a,i.top,o,n.outerHeight-i.bottom-i.top):lh(e,a,t.top+c.placed,o,r),c.start=a,c.placed+=r,a=e.right}}t.x=a,t.y=o}var dh={addBox(e,t){e.boxes||=[],t.fullSize=t.fullSize||!1,t.position=t.position||`top`,t.weight=t.weight||0,t._layers=t._layers||function(){return[{z:0,draw(e){t.draw(e)}}]},e.boxes.push(t)},removeBox(e,t){let n=e.boxes?e.boxes.indexOf(t):-1;n!==-1&&e.boxes.splice(n,1)},configure(e,t,n){t.fullSize=n.fullSize,t.position=n.position,t.weight=n.weight},update(e,t,n,r){if(!e)return;let i=np(e.options.layout.padding),a=Math.max(t-i.width,0),o=Math.max(n-i.height,0),s=nh(e.boxes),c=s.vertical,l=s.horizontal;X(e.boxes,e=>{typeof e.beforeLayout==`function`&&e.beforeLayout()});let u=c.reduce((e,t)=>t.box.options&&t.box.options.display===!1?e:e+1,0)||1,d=Object.freeze({outerWidth:t,outerHeight:n,padding:i,availableWidth:a,availableHeight:o,vBoxMaxWidth:a/2/u,hBoxMaxHeight:o/2}),f=Object.assign({},i);ih(f,np(r));let p=Object.assign({maxPadding:f,w:a,h:o,x:i.left,y:i.top},i),m=th(c.concat(l),d);ch(s.fullSize,p,d,m),ch(c,p,d,m),ch(l,p,d,m)&&ch(c,p,d,m),oh(p),uh(s.leftAndTop,p,d,m),p.x+=p.w,p.y+=p.h,uh(s.rightAndBottom,p,d,m),e.chartArea={left:p.left,top:p.top,right:p.left+p.w,bottom:p.top+p.h,height:p.h,width:p.w},X(s.chartArea,t=>{let n=t.box;Object.assign(n,e.chartArea),n.update(p.w,p.h,{left:0,top:0,right:0,bottom:0})})}},fh=class{acquireContext(e,t){}releaseContext(e){return!1}addEventListener(e,t,n){}removeEventListener(e,t,n){}getDevicePixelRatio(){return 1}getMaximumSize(e,t,n,r){return t=Math.max(0,t||e.width),n||=e.height,{width:t,height:Math.max(0,r?Math.floor(t/r):n)}}isAttached(e){return!0}updateConfig(e){}},ph=class extends fh{acquireContext(e){return e&&e.getContext&&e.getContext(`2d`)||null}updateConfig(e){e.options.animation=!1}},mh=`$chartjs`,hh={touchstart:`mousedown`,touchmove:`mousemove`,touchend:`mouseup`,pointerenter:`mouseenter`,pointerdown:`mousedown`,pointermove:`mousemove`,pointerup:`mouseup`,pointerleave:`mouseout`,pointerout:`mouseout`},gh=e=>e===null||e===``;function _h(e,t){let n=e.style,r=e.getAttribute(`height`),i=e.getAttribute(`width`);if(e[mh]={initial:{height:r,width:i,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||`block`,n.boxSizing=n.boxSizing||`border-box`,gh(i)){let t=Bp(e,`width`);t!==void 0&&(e.width=t)}if(gh(r))if(e.style.height===``)e.height=e.width/(t||2);else{let t=Bp(e,`height`);t!==void 0&&(e.height=t)}return e}var vh=zp?{passive:!0}:!1;function yh(e,t,n){e&&e.addEventListener(t,n,vh)}function bh(e,t,n){e&&e.canvas&&e.canvas.removeEventListener(t,n,vh)}function xh(e,t){let n=hh[e.type]||e.type,{x:r,y:i}=Pp(e,t);return{type:n,chart:t,native:e,x:r===void 0?null:r,y:i===void 0?null:i}}function Sh(e,t){for(let n of e)if(n===t||n.contains(t))return!0}function Ch(e,t,n){let r=e.canvas,i=new MutationObserver(e=>{let t=!1;for(let n of e)t||=Sh(n.addedNodes,r),t&&=!Sh(n.removedNodes,r);t&&n()});return i.observe(document,{childList:!0,subtree:!0}),i}function wh(e,t,n){let r=e.canvas,i=new MutationObserver(e=>{let t=!1;for(let n of e)t||=Sh(n.removedNodes,r),t&&=!Sh(n.addedNodes,r);t&&n()});return i.observe(document,{childList:!0,subtree:!0}),i}var Th=new Map,Eh=0;function Dh(){let e=window.devicePixelRatio;e!==Eh&&(Eh=e,Th.forEach((t,n)=>{n.currentDevicePixelRatio!==e&&t()}))}function Oh(e,t){Th.size||window.addEventListener(`resize`,Dh),Th.set(e,t)}function kh(e){Th.delete(e),Th.size||window.removeEventListener(`resize`,Dh)}function Ah(e,t,n){let r=e.canvas,i=r&&Ep(r);if(!i)return;let a=sf((e,t)=>{let r=i.clientWidth;n(e,t),r<i.clientWidth&&n()},window),o=new ResizeObserver(e=>{let t=e[0],n=t.contentRect.width,r=t.contentRect.height;n===0&&r===0||a(n,r)});return o.observe(i),Oh(e,a),o}function jh(e,t,n){n&&n.disconnect(),t===`resize`&&kh(e)}function Mh(e,t,n){let r=e.canvas,i=sf(t=>{e.ctx!==null&&n(xh(t,e))},e);return yh(r,t,i),i}var Nh=class extends fh{acquireContext(e,t){let n=e&&e.getContext&&e.getContext(`2d`);return n&&n.canvas===e?(_h(e,t),n):null}releaseContext(e){let t=e.canvas;if(!t[mh])return!1;let n=t[mh].initial;[`height`,`width`].forEach(e=>{let r=n[e];W(r)?t.removeAttribute(e):t.setAttribute(e,r)});let r=n.style||{};return Object.keys(r).forEach(e=>{t.style[e]=r[e]}),t.width=t.width,delete t[mh],!0}addEventListener(e,t,n){this.removeEventListener(e,t);let r=e.$proxies||={};r[t]=({attach:Ch,detach:wh,resize:Ah}[t]||Mh)(e,t,n)}removeEventListener(e,t){let n=e.$proxies||={},r=n[t];r&&(({attach:jh,detach:jh,resize:jh}[t]||bh)(e,t,r),n[t]=void 0)}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(e,t,n,r){return Lp(e,t,n,r)}isAttached(e){let t=e&&Ep(e);return!!(t&&t.isConnected)}};function Ph(e){return!Tp()||typeof OffscreenCanvas<`u`&&e instanceof OffscreenCanvas?ph:Nh}var Fh=class{static defaults={};static defaultRoutes=void 0;x;y;active=!1;options;$animations;tooltipPosition(e){let{x:t,y:n}=this.getProps([`x`,`y`],e);return{x:t,y:n}}hasValue(){return Rd(this.x)&&Rd(this.y)}getProps(e,t){let n=this.$animations;if(!t||!n)return this;let r={};return e.forEach(e=>{r[e]=n[e]&&n[e].active()?n[e]._to:this[e]}),r}};function Ih(e,t){let n=e.options.ticks,r=Lh(e),i=Math.min(n.maxTicksLimit||r,r),a=n.major.enabled?zh(t):[],o=a.length,s=a[0],c=a[o-1],l=[];if(o>i)return Bh(t,l,a,o/i),l;let u=Rh(a,t,i);if(o>0){let e,n,r=o>1?Math.round((c-s)/(o-1)):null;for(Vh(t,l,u,W(r)?0:s-r,s),e=0,n=o-1;e<n;e++)Vh(t,l,u,a[e],a[e+1]);return Vh(t,l,u,c,W(r)?t.length:c+r),l}return Vh(t,l,u),l}function Lh(e){let t=e.options.offset,n=e._tickSize(),r=e._length/n+ +!t,i=e._maxLength/n;return Math.floor(Math.min(r,i))}function Rh(e,t,n){let r=Hh(e),i=t.length/n;if(!r)return Math.max(i,1);let a=Id(r);for(let e=0,t=a.length-1;e<t;e++){let t=a[e];if(t>i)return t}return Math.max(i,1)}function zh(e){let t=[],n,r;for(n=0,r=e.length;n<r;n++)e[n].major&&t.push(n);return t}function Bh(e,t,n,r){let i=0,a=n[0],o;for(r=Math.ceil(r),o=0;o<e.length;o++)o===a&&(t.push(e[o]),i++,a=n[i*r])}function Vh(e,t,n,r,i){let a=J(r,0),o=Math.min(J(i,e.length),e.length),s=0,c,l,u;for(n=Math.ceil(n),i&&(c=i-r,n=c/Math.floor(c/n)),u=a;u<0;)s++,u=Math.round(a+s*n);for(l=Math.max(a,0);l<o;l++)l===u&&(t.push(e[l]),s++,u=Math.round(a+s*n))}function Hh(e){let t=e.length,n,r;if(t<2)return!1;for(r=e[0],n=1;n<t;++n)if(e[n]-e[n-1]!==r)return!1;return r}var Uh=e=>e===`left`?`right`:e===`right`?`left`:e,Wh=(e,t,n)=>t===`top`||t===`left`?e[t]+n:e[t]-n,Gh=(e,t)=>Math.min(t||e,e);function Kh(e,t){let n=[],r=e.length/t,i=e.length,a=0;for(;a<i;a+=r)n.push(e[Math.floor(a)]);return n}function qh(e,t,n){let r=e.ticks.length,i=Math.min(t,r-1),a=e._startPixel,o=e._endPixel,s=1e-6,c=e.getPixelForTick(i),l;if(!(n&&(l=r===1?Math.max(c-a,o-c):t===0?(e.getPixelForTick(1)-c)/2:(c-e.getPixelForTick(i-1))/2,c+=i<t?l:-l,c<a-s||c>o+s)))return c}function Jh(e,t){X(e,e=>{let n=e.gc,r=n.length/2,i;if(r>t){for(i=0;i<r;++i)delete e.data[n[i]];n.splice(0,r)}})}function Yh(e){return e.drawTicks?e.tickLength:0}function Xh(e,t){if(!e.display)return 0;let n=$(e.font,t),r=np(e.padding);return(G(e.text)?e.text.length:1)*n.lineHeight+r.height}function Zh(e,t){return ap(e,{scale:t,type:`scale`})}function Qh(e,t,n){return ap(e,{tick:n,index:t,type:`tick`})}function $h(e,t,n){let r=lf(e);return(n&&t!==`right`||!n&&t===`right`)&&(r=Uh(r)),r}function eg(e,t,n,r){let{top:i,left:a,bottom:o,right:s,chart:c}=e,{chartArea:l,scales:u}=c,d=0,f,p,m,h=o-i,g=s-a;if(e.isHorizontal()){if(p=uf(r,a,s),K(n)){let e=Object.keys(n)[0],r=n[e];m=u[e].getPixelForValue(r)+h-t}else m=n===`center`?(l.bottom+l.top)/2+h-t:Wh(e,n,t);f=s-a}else{if(K(n)){let e=Object.keys(n)[0],r=n[e];p=u[e].getPixelForValue(r)-g+t}else p=n===`center`?(l.left+l.right)/2-g+t:Wh(e,n,t);m=uf(r,o,i),d=n===`left`?-kd:kd}return{titleX:p,titleY:m,maxWidth:f,rotation:d}}var tg=class e extends Fh{constructor(e){super(),this.id=e.id,this.type=e.type,this.options=void 0,this.ctx=e.ctx,this.chart=e.chart,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this._margins={left:0,right:0,top:0,bottom:0},this.maxWidth=void 0,this.maxHeight=void 0,this.paddingTop=void 0,this.paddingBottom=void 0,this.paddingLeft=void 0,this.paddingRight=void 0,this.axis=void 0,this.labelRotation=void 0,this.min=void 0,this.max=void 0,this._range=void 0,this.ticks=[],this._gridLineItems=null,this._labelItems=null,this._labelSizes=null,this._length=0,this._maxLength=0,this._longestTextCache={},this._startPixel=void 0,this._endPixel=void 0,this._reversePixels=!1,this._userMax=void 0,this._userMin=void 0,this._suggestedMax=void 0,this._suggestedMin=void 0,this._ticksLength=0,this._borderValue=0,this._cache={},this._dataLimitsCached=!1,this.$context=void 0}init(e){this.options=e.setContext(this.getContext()),this.axis=e.axis,this._userMin=this.parse(e.min),this._userMax=this.parse(e.max),this._suggestedMin=this.parse(e.suggestedMin),this._suggestedMax=this.parse(e.suggestedMax)}parse(e,t){return e}getUserBounds(){let{_userMin:e,_userMax:t,_suggestedMin:n,_suggestedMax:r}=this;return e=cd(e,1/0),t=cd(t,-1/0),n=cd(n,1/0),r=cd(r,-1/0),{min:cd(e,n),max:cd(t,r),minDefined:q(e),maxDefined:q(t)}}getMinMax(e){let{min:t,max:n,minDefined:r,maxDefined:i}=this.getUserBounds(),a;if(r&&i)return{min:t,max:n};let o=this.getMatchingVisibleMetas();for(let s=0,c=o.length;s<c;++s)a=o[s].controller.getMinMax(this,e),r||(t=Math.min(t,a.min)),i||(n=Math.max(n,a.max));return t=i&&t>n?n:t,n=r&&t>n?t:n,{min:cd(t,cd(n,t)),max:cd(n,cd(t,n))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){let e=this.chart.data;return this.options.labels||(this.isHorizontal()?e.xLabels:e.yLabels)||e.labels||[]}getLabelItems(e=this.chart.chartArea){return this._labelItems||=this._computeLabelItems(e)}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){Y(this.options.beforeUpdate,[this])}update(e,t,n){let{beginAtZero:r,grace:i,ticks:a}=this.options,o=a.sampleSize;this.beforeUpdate(),this.maxWidth=e,this.maxHeight=t,this._margins=n=Object.assign({left:0,right:0,top:0,bottom:0},n),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+n.left+n.right:this.height+n.top+n.bottom,this._dataLimitsCached||=(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=ip(this,i,r),!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();let s=o<this.ticks.length;this._convertTicksToLabels(s?Kh(this.ticks,o):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),a.display&&(a.autoSkip||a.source===`auto`)&&(this.ticks=Ih(this,this.ticks),this._labelSizes=null,this.afterAutoSkip()),s&&this._convertTicksToLabels(this.ticks),this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let e=this.options.reverse,t,n;this.isHorizontal()?(t=this.left,n=this.right):(t=this.top,n=this.bottom,e=!e),this._startPixel=t,this._endPixel=n,this._reversePixels=e,this._length=n-t,this._alignToPixels=this.options.alignToPixels}afterUpdate(){Y(this.options.afterUpdate,[this])}beforeSetDimensions(){Y(this.options.beforeSetDimensions,[this])}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=0,this.right=this.width):(this.height=this.maxHeight,this.top=0,this.bottom=this.height),this.paddingLeft=0,this.paddingTop=0,this.paddingRight=0,this.paddingBottom=0}afterSetDimensions(){Y(this.options.afterSetDimensions,[this])}_callHooks(e){this.chart.notifyPlugins(e,this.getContext()),Y(this.options[e],[this])}beforeDataLimits(){this._callHooks(`beforeDataLimits`)}determineDataLimits(){}afterDataLimits(){this._callHooks(`afterDataLimits`)}beforeBuildTicks(){this._callHooks(`beforeBuildTicks`)}buildTicks(){return[]}afterBuildTicks(){this._callHooks(`afterBuildTicks`)}beforeTickToLabelConversion(){Y(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(e){let t=this.options.ticks,n,r,i;for(n=0,r=e.length;n<r;n++)i=e[n],i.label=Y(t.callback,[i.value,n,e],this)}afterTickToLabelConversion(){Y(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){Y(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){let e=this.options,t=e.ticks,n=Gh(this.ticks.length,e.ticks.maxTicksLimit),r=t.minRotation||0,i=t.maxRotation,a=r,o,s,c;if(!this._isVisible()||!t.display||r>=i||n<=1||!this.isHorizontal()){this.labelRotation=r;return}let l=this._getLabelSizes(),u=l.widest.width,d=l.highest.height,f=Jd(this.chart.width-u,0,this.maxWidth);o=e.offset?this.maxWidth/n:f/(n-1),u+6>o&&(o=f/(n-(e.offset?.5:1)),s=this.maxHeight-Yh(e.grid)-t.padding-Xh(e.title,this.chart.options.font),c=Math.sqrt(u*u+d*d),a=Hd(Math.min(Math.asin(Jd((l.highest.height+6)/o,-1,1)),Math.asin(Jd(s/c,-1,1))-Math.asin(Jd(d/c,-1,1)))),a=Math.max(r,Math.min(i,a))),this.labelRotation=a}afterCalculateLabelRotation(){Y(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){Y(this.options.beforeFit,[this])}fit(){let e={width:0,height:0},{chart:t,options:{ticks:n,title:r,grid:i}}=this,a=this._isVisible(),o=this.isHorizontal();if(a){let a=Xh(r,t.options.font);if(o?(e.width=this.maxWidth,e.height=Yh(i)+a):(e.height=this.maxHeight,e.width=Yh(i)+a),n.display&&this.ticks.length){let{first:t,last:r,widest:i,highest:a}=this._getLabelSizes(),s=n.padding*2,c=Vd(this.labelRotation),l=Math.cos(c),u=Math.sin(c);if(o){let t=n.mirror?0:u*i.width+l*a.height;e.height=Math.min(this.maxHeight,e.height+t+s)}else{let t=n.mirror?0:l*i.width+u*a.height;e.width=Math.min(this.maxWidth,e.width+t+s)}this._calculatePadding(t,r,u,l)}}this._handleMargins(),o?(this.width=this._length=t.width-this._margins.left-this._margins.right,this.height=e.height):(this.width=e.width,this.height=this._length=t.height-this._margins.top-this._margins.bottom)}_calculatePadding(e,t,n,r){let{ticks:{align:i,padding:a},position:o}=this.options,s=this.labelRotation!==0,c=o!==`top`&&this.axis===`x`;if(this.isHorizontal()){let o=this.getPixelForTick(0)-this.left,l=this.right-this.getPixelForTick(this.ticks.length-1),u=0,d=0;s?c?(u=r*e.width,d=n*t.height):(u=n*e.height,d=r*t.width):i===`start`?d=t.width:i===`end`?u=e.width:i!==`inner`&&(u=e.width/2,d=t.width/2),this.paddingLeft=Math.max((u-o+a)*this.width/(this.width-o),0),this.paddingRight=Math.max((d-l+a)*this.width/(this.width-l),0)}else{let n=t.height/2,r=e.height/2;i===`start`?(n=0,r=e.height):i===`end`&&(n=t.height,r=0),this.paddingTop=n+a,this.paddingBottom=r+a}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){Y(this.options.afterFit,[this])}isHorizontal(){let{axis:e,position:t}=this.options;return t===`top`||t===`bottom`||e===`x`}isFullSize(){return this.options.fullSize}_convertTicksToLabels(e){this.beforeTickToLabelConversion(),this.generateTickLabels(e);let t,n;for(t=0,n=e.length;t<n;t++)W(e[t].label)&&(e.splice(t,1),n--,t--);this.afterTickToLabelConversion()}_getLabelSizes(){let e=this._labelSizes;if(!e){let t=this.options.ticks.sampleSize,n=this.ticks;t<n.length&&(n=Kh(n,t)),this._labelSizes=e=this._computeLabelSizes(n,n.length,this.options.ticks.maxTicksLimit)}return e}_computeLabelSizes(e,t,n){let{ctx:r,_longestTextCache:i}=this,a=[],o=[],s=Math.floor(t/Gh(t,n)),c=0,l=0,u,d,f,p,m,h,g,_,v,y,b;for(u=0;u<t;u+=s){if(p=e[u].label,m=this._resolveTickFontOptions(u),r.font=h=m.string,g=i[h]=i[h]||{data:{},gc:[]},_=m.lineHeight,v=y=0,!W(p)&&!G(p))v=Ff(r,g.data,g.gc,v,p),y=_;else if(G(p))for(d=0,f=p.length;d<f;++d)b=p[d],!W(b)&&!G(b)&&(v=Ff(r,g.data,g.gc,v,b),y+=_);a.push(v),o.push(y),c=Math.max(v,c),l=Math.max(y,l)}Jh(i,t);let x=a.indexOf(c),S=o.indexOf(l),C=e=>({width:a[e]||0,height:o[e]||0});return{first:C(0),last:C(t-1),widest:C(x),highest:C(S),widths:a,heights:o}}getLabelForValue(e){return e}getPixelForValue(e,t){return NaN}getValueForPixel(e){}getPixelForTick(e){let t=this.ticks;return e<0||e>t.length-1?null:this.getPixelForValue(t[e].value)}getPixelForDecimal(e){this._reversePixels&&(e=1-e);let t=this._startPixel+e*this._length;return Yd(this._alignToPixels?Lf(this.chart,t,0):t)}getDecimalForPixel(e){let t=(e-this._startPixel)/this._length;return this._reversePixels?1-t:t}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){let{min:e,max:t}=this;return e<0&&t<0?t:e>0&&t>0?e:0}getContext(e){let t=this.ticks||[];if(e>=0&&e<t.length){let n=t[e];return n.$context||=Qh(this.getContext(),e,n)}return this.$context||=Zh(this.chart.getContext(),this)}_tickSize(){let e=this.options.ticks,t=Vd(this.labelRotation),n=Math.abs(Math.cos(t)),r=Math.abs(Math.sin(t)),i=this._getLabelSizes(),a=e.autoSkipPadding||0,o=i?i.widest.width+a:0,s=i?i.highest.height+a:0;return this.isHorizontal()?s*n>o*r?o/n:s/r:s*r<o*n?s/n:o/r}_isVisible(){let e=this.options.display;return e===`auto`?this.getMatchingVisibleMetas().length>0:!!e}_computeGridLineItems(e){let t=this.axis,n=this.chart,r=this.options,{grid:i,position:a,border:o}=r,s=i.offset,c=this.isHorizontal(),l=this.ticks.length+ +!!s,u=Yh(i),d=[],f=o.setContext(this.getContext()),p=f.display?f.width:0,m=p/2,h=function(e){return Lf(n,e,p)},g,_,v,y,b,x,S,C,w,T,E,D;if(a===`top`)g=h(this.bottom),x=this.bottom-u,C=g-m,T=h(e.top)+m,D=e.bottom;else if(a===`bottom`)g=h(this.top),T=e.top,D=h(e.bottom)-m,x=g+m,C=this.top+u;else if(a===`left`)g=h(this.right),b=this.right-u,S=g-m,w=h(e.left)+m,E=e.right;else if(a===`right`)g=h(this.left),w=e.left,E=h(e.right)-m,b=g+m,S=this.left+u;else if(t===`x`){if(a===`center`)g=h((e.top+e.bottom)/2+.5);else if(K(a)){let e=Object.keys(a)[0],t=a[e];g=h(this.chart.scales[e].getPixelForValue(t))}T=e.top,D=e.bottom,x=g+m,C=x+u}else if(t===`y`){if(a===`center`)g=h((e.left+e.right)/2);else if(K(a)){let e=Object.keys(a)[0],t=a[e];g=h(this.chart.scales[e].getPixelForValue(t))}b=g-m,S=b-u,w=e.left,E=e.right}let O=J(r.ticks.maxTicksLimit,l),ee=Math.max(1,Math.ceil(l/O));for(_=0;_<l;_+=ee){let e=this.getContext(_),t=i.setContext(e),r=o.setContext(e),a=t.lineWidth,l=t.color,u=r.dash||[],f=r.dashOffset,p=t.tickWidth,m=t.tickColor,h=t.tickBorderDash||[],g=t.tickBorderDashOffset;v=qh(this,_,s),v!==void 0&&(y=Lf(n,v,a),c?b=S=w=E=y:x=C=T=D=y,d.push({tx1:b,ty1:x,tx2:S,ty2:C,x1:w,y1:T,x2:E,y2:D,width:a,color:l,borderDash:u,borderDashOffset:f,tickWidth:p,tickColor:m,tickBorderDash:h,tickBorderDashOffset:g}))}return this._ticksLength=l,this._borderValue=g,d}_computeLabelItems(e){let t=this.axis,n=this.options,{position:r,ticks:i}=n,a=this.isHorizontal(),o=this.ticks,{align:s,crossAlign:c,padding:l,mirror:u}=i,d=Yh(n.grid),f=d+l,p=u?-l:f,m=-Vd(this.labelRotation),h=[],g,_,v,y,b,x,S,C,w,T,E,D,O=`middle`;if(r===`top`)x=this.bottom-p,S=this._getXAxisLabelAlignment();else if(r===`bottom`)x=this.top+p,S=this._getXAxisLabelAlignment();else if(r===`left`){let e=this._getYAxisLabelAlignment(d);S=e.textAlign,b=e.x}else if(r===`right`){let e=this._getYAxisLabelAlignment(d);S=e.textAlign,b=e.x}else if(t===`x`){if(r===`center`)x=(e.top+e.bottom)/2+f;else if(K(r)){let e=Object.keys(r)[0],t=r[e];x=this.chart.scales[e].getPixelForValue(t)+f}S=this._getXAxisLabelAlignment()}else if(t===`y`){if(r===`center`)b=(e.left+e.right)/2-f;else if(K(r)){let e=Object.keys(r)[0],t=r[e];b=this.chart.scales[e].getPixelForValue(t)}S=this._getYAxisLabelAlignment(d).textAlign}t===`y`&&(s===`start`?O=`top`:s===`end`&&(O=`bottom`));let ee=this._getLabelSizes();for(g=0,_=o.length;g<_;++g){v=o[g],y=v.label;let e=i.setContext(this.getContext(g));C=this.getPixelForTick(g)+i.labelOffset,w=this._resolveTickFontOptions(g),T=w.lineHeight,E=G(y)?y.length:1;let t=E/2,n=e.color,s=e.textStrokeColor,l=e.textStrokeWidth,d=S;a?(b=C,S===`inner`&&(d=g===_-1?this.options.reverse?`left`:`right`:g===0?this.options.reverse?`right`:`left`:`center`),D=r===`top`?c===`near`||m!==0?-E*T+T/2:c===`center`?-ee.highest.height/2-t*T+T:-ee.highest.height+T/2:c===`near`||m!==0?T/2:c===`center`?ee.highest.height/2-t*T:ee.highest.height-E*T,u&&(D*=-1),m!==0&&!e.showLabelBackdrop&&(b+=T/2*Math.sin(m))):(x=C,D=(1-E)*T/2);let f;if(e.showLabelBackdrop){let t=np(e.backdropPadding),n=ee.heights[g],r=ee.widths[g],i=D-t.top,a=0-t.left;switch(O){case`middle`:i-=n/2;break;case`bottom`:i-=n;break}switch(S){case`center`:a-=r/2;break;case`right`:a-=r;break;case`inner`:g===_-1?a-=r:g>0&&(a-=r/2);break}f={left:a,top:i,width:r+t.width,height:n+t.height,color:e.backdropColor}}h.push({label:y,font:w,textOffset:D,options:{rotation:m,color:n,strokeColor:s,strokeWidth:l,textAlign:d,textBaseline:O,translation:[b,x],backdrop:f}})}return h}_getXAxisLabelAlignment(){let{position:e,ticks:t}=this.options;if(-Vd(this.labelRotation))return e===`top`?`left`:`right`;let n=`center`;return t.align===`start`?n=`left`:t.align===`end`?n=`right`:t.align===`inner`&&(n=`inner`),n}_getYAxisLabelAlignment(e){let{position:t,ticks:{crossAlign:n,mirror:r,padding:i}}=this.options,a=this._getLabelSizes(),o=e+i,s=a.widest.width,c,l;return t===`left`?r?(l=this.right+i,n===`near`?c=`left`:n===`center`?(c=`center`,l+=s/2):(c=`right`,l+=s)):(l=this.right-o,n===`near`?c=`right`:n===`center`?(c=`center`,l-=s/2):(c=`left`,l=this.left)):t===`right`?r?(l=this.left+i,n===`near`?c=`right`:n===`center`?(c=`center`,l-=s/2):(c=`left`,l-=s)):(l=this.left+o,n===`near`?c=`left`:n===`center`?(c=`center`,l+=s/2):(c=`right`,l=this.right)):c=`right`,{textAlign:c,x:l}}_computeLabelArea(){if(this.options.ticks.mirror)return;let e=this.chart,t=this.options.position;if(t===`left`||t===`right`)return{top:0,left:this.left,bottom:e.height,right:this.right};if(t===`top`||t===`bottom`)return{top:this.top,left:0,bottom:this.bottom,right:e.width}}drawBackground(){let{ctx:e,options:{backgroundColor:t},left:n,top:r,width:i,height:a}=this;t&&(e.save(),e.fillStyle=t,e.fillRect(n,r,i,a),e.restore())}getLineWidthForValue(e){let t=this.options.grid;if(!this._isVisible()||!t.display)return 0;let n=this.ticks.findIndex(t=>t.value===e);return n>=0?t.setContext(this.getContext(n)).lineWidth:0}drawGrid(e){let t=this.options.grid,n=this.ctx,r=this._gridLineItems||=this._computeGridLineItems(e),i,a,o=(e,t,r)=>{!r.width||!r.color||(n.save(),n.lineWidth=r.width,n.strokeStyle=r.color,n.setLineDash(r.borderDash||[]),n.lineDashOffset=r.borderDashOffset,n.beginPath(),n.moveTo(e.x,e.y),n.lineTo(t.x,t.y),n.stroke(),n.restore())};if(t.display)for(i=0,a=r.length;i<a;++i){let e=r[i];t.drawOnChartArea&&o({x:e.x1,y:e.y1},{x:e.x2,y:e.y2},e),t.drawTicks&&o({x:e.tx1,y:e.ty1},{x:e.tx2,y:e.ty2},{color:e.tickColor,width:e.tickWidth,borderDash:e.tickBorderDash,borderDashOffset:e.tickBorderDashOffset})}}drawBorder(){let{chart:e,ctx:t,options:{border:n,grid:r}}=this,i=n.setContext(this.getContext()),a=n.display?i.width:0;if(!a)return;let o=r.setContext(this.getContext(0)).lineWidth,s=this._borderValue,c,l,u,d;this.isHorizontal()?(c=Lf(e,this.left,a)-a/2,l=Lf(e,this.right,o)+o/2,u=d=s):(u=Lf(e,this.top,a)-a/2,d=Lf(e,this.bottom,o)+o/2,c=l=s),t.save(),t.lineWidth=i.width,t.strokeStyle=i.color,t.beginPath(),t.moveTo(c,u),t.lineTo(l,d),t.stroke(),t.restore()}drawLabels(e){if(!this.options.ticks.display)return;let t=this.ctx,n=this._computeLabelArea();n&&Hf(t,n);let r=this.getLabelItems(e);for(let e of r){let n=e.options,r=e.font,i=e.label,a=e.textOffset;qf(t,i,0,a,r,n)}n&&Uf(t)}drawTitle(){let{ctx:e,options:{position:t,title:n,reverse:r}}=this;if(!n.display)return;let i=$(n.font),a=np(n.padding),o=n.align,s=i.lineHeight/2;t===`bottom`||t===`center`||K(t)?(s+=a.bottom,G(n.text)&&(s+=i.lineHeight*(n.text.length-1))):s+=a.top;let{titleX:c,titleY:l,maxWidth:u,rotation:d}=eg(this,s,t,o);qf(e,n.text,0,0,i,{color:n.color,maxWidth:u,rotation:d,textAlign:$h(o,t,r),textBaseline:`middle`,translation:[c,l]})}draw(e){this._isVisible()&&(this.drawBackground(),this.drawGrid(e),this.drawBorder(),this.drawTitle(),this.drawLabels(e))}_layers(){let t=this.options,n=t.ticks&&t.ticks.z||0,r=J(t.grid&&t.grid.z,-1),i=J(t.border&&t.border.z,0);return!this._isVisible()||this.draw!==e.prototype.draw?[{z:n,draw:e=>{this.draw(e)}}]:[{z:r,draw:e=>{this.drawBackground(),this.drawGrid(e),this.drawTitle()}},{z:i,draw:()=>{this.drawBorder()}},{z:n,draw:e=>{this.drawLabels(e)}}]}getMatchingVisibleMetas(e){let t=this.chart.getSortedVisibleDatasetMetas(),n=this.axis+`AxisID`,r=[],i,a;for(i=0,a=t.length;i<a;++i){let a=t[i];a[n]===this.id&&(!e||a.type===e)&&r.push(a)}return r}_resolveTickFontOptions(e){return $(this.options.ticks.setContext(this.getContext(e)).font)}_maxDigits(){let e=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/e}},ng=class{constructor(e,t,n){this.type=e,this.scope=t,this.override=n,this.items=Object.create(null)}isForType(e){return Object.prototype.isPrototypeOf.call(this.type.prototype,e.prototype)}register(e){let t=Object.getPrototypeOf(e),n;ag(t)&&(n=this.register(t));let r=this.items,i=e.id,a=this.scope+`.`+i;if(!i)throw Error(`class does not have id: `+e);return i in r?a:(r[i]=e,rg(e,a,n),this.override&&Q.override(e.id,e.overrides),a)}get(e){return this.items[e]}unregister(e){let t=this.items,n=e.id,r=this.scope;n in t&&delete t[n],r&&n in Q[r]&&(delete Q[r][n],this.override&&delete Af[n])}};function rg(e,t,n){let r=md(Object.create(null),[n?Q.get(n):{},Q.get(t),e.defaults]);Q.set(t,r),e.defaultRoutes&&ig(t,e.defaultRoutes),e.descriptors&&Q.describe(t,e.descriptors)}function ig(e,t){Object.keys(t).forEach(n=>{let r=n.split(`.`),i=r.pop(),a=[e].concat(r).join(`.`),o=t[n].split(`.`),s=o.pop(),c=o.join(`.`);Q.route(a,i,c,s)})}function ag(e){return`id`in e&&`defaults`in e}var og=new class{constructor(){this.controllers=new ng(xm,`datasets`,!0),this.elements=new ng(Fh,`elements`),this.plugins=new ng(Object,`plugins`),this.scales=new ng(tg,`scales`),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...e){this._each(`register`,e)}remove(...e){this._each(`unregister`,e)}addControllers(...e){this._each(`register`,e,this.controllers)}addElements(...e){this._each(`register`,e,this.elements)}addPlugins(...e){this._each(`register`,e,this.plugins)}addScales(...e){this._each(`register`,e,this.scales)}getController(e){return this._get(e,this.controllers,`controller`)}getElement(e){return this._get(e,this.elements,`element`)}getPlugin(e){return this._get(e,this.plugins,`plugin`)}getScale(e){return this._get(e,this.scales,`scale`)}removeControllers(...e){this._each(`unregister`,e,this.controllers)}removeElements(...e){this._each(`unregister`,e,this.elements)}removePlugins(...e){this._each(`unregister`,e,this.plugins)}removeScales(...e){this._each(`unregister`,e,this.scales)}_each(e,t,n){[...t].forEach(t=>{let r=n||this._getRegistryForType(t);n||r.isForType(t)||r===this.plugins&&t.id?this._exec(e,r,t):X(t,t=>{let r=n||this._getRegistryForType(t);this._exec(e,r,t)})})}_exec(e,t,n){let r=xd(e);Y(n[`before`+r],[],n),t[e](n),Y(n[`after`+r],[],n)}_getRegistryForType(e){for(let t=0;t<this._typedRegistries.length;t++){let n=this._typedRegistries[t];if(n.isForType(e))return n}return this.plugins}_get(e,t,n){let r=t.get(e);if(r===void 0)throw Error(`"`+e+`" is not a registered `+n+`.`);return r}},sg=class{constructor(){this._init=void 0}notify(e,t,n,r){if(t===`beforeInit`&&(this._init=this._createDescriptors(e,!0),this._notify(this._init,e,`install`)),this._init===void 0)return;let i=r?this._descriptors(e).filter(r):this._descriptors(e),a=this._notify(i,e,t,n);return t===`afterDestroy`&&(this._notify(i,e,`stop`),this._notify(this._init,e,`uninstall`),this._init=void 0),a}_notify(e,t,n,r){r||={};for(let i of e){let e=i.plugin,a=e[n];if(Y(a,[t,r,i.options],e)===!1&&r.cancelable)return!1}return!0}invalidate(){W(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}_descriptors(e){if(this._cache)return this._cache;let t=this._cache=this._createDescriptors(e);return this._notifyStateChanges(e),t}_createDescriptors(e,t){let n=e&&e.config,r=J(n.options&&n.options.plugins,{}),i=cg(n);return r===!1&&!t?[]:ug(e,i,r,t)}_notifyStateChanges(e){let t=this._oldCache||[],n=this._cache,r=(e,t)=>e.filter(e=>!t.some(t=>e.plugin.id===t.plugin.id));this._notify(r(t,n),e,`stop`),this._notify(r(n,t),e,`start`)}};function cg(e){let t={},n=[],r=Object.keys(og.plugins.items);for(let e=0;e<r.length;e++)n.push(og.getPlugin(r[e]));let i=e.plugins||[];for(let e=0;e<i.length;e++){let r=i[e];n.indexOf(r)===-1&&(n.push(r),t[r.id]=!0)}return{plugins:n,localIds:t}}function lg(e,t){return!t&&e===!1?null:e===!0?{}:e}function ug(e,{plugins:t,localIds:n},r,i){let a=[],o=e.getContext();for(let s of t){let t=s.id,c=lg(r[t],i);c!==null&&a.push({plugin:s,options:dg(e.config,{plugin:s,local:n[t]},c,o)})}return a}function dg(e,{plugin:t,local:n},r,i){let a=e.pluginScopeKeys(t),o=e.getOptionScopes(r,a);return n&&t.defaults&&o.push(t.defaults),e.createResolver(o,i,[``],{scriptable:!1,indexable:!1,allKeys:!0})}function fg(e,t){let n=Q.datasets[e]||{};return((t.datasets||{})[e]||{}).indexAxis||t.indexAxis||n.indexAxis||`x`}function pg(e,t){let n=e;return e===`_index_`?n=t:e===`_value_`&&(n=t===`x`?`y`:`x`),n}function mg(e,t){return e===t?`_index_`:`_value_`}function hg(e){if(e===`x`||e===`y`||e===`r`)return e}function gg(e){if(e===`top`||e===`bottom`)return`x`;if(e===`left`||e===`right`)return`y`}function _g(e,...t){if(hg(e))return e;for(let n of t){let t=n.axis||gg(n.position)||e.length>1&&hg(e[0].toLowerCase());if(t)return t}throw Error(`Cannot determine type of '${e}' axis. Please provide 'axis' or 'position' option.`)}function vg(e,t,n){if(n[t+`AxisID`]===e)return{axis:t}}function yg(e,t){if(t.data&&t.data.datasets){let n=t.data.datasets.filter(t=>t.xAxisID===e||t.yAxisID===e);if(n.length)return vg(e,`x`,n[0])||vg(e,`y`,n[0])}return{}}function bg(e,t){let n=Af[e.type]||{scales:{}},r=t.scales||{},i=fg(e.type,t),a=Object.create(null);return Object.keys(r).forEach(t=>{let o=r[t];if(!K(o))return console.error(`Invalid scale configuration for scale: ${t}`);if(o._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${t}`);let s=_g(t,o,yg(t,e),Q.scales[o.type]),c=mg(s,i),l=n.scales||{};a[t]=hd(Object.create(null),[{axis:s},o,l[s],l[c]])}),e.data.datasets.forEach(n=>{let i=n.type||e.type,o=n.indexAxis||fg(i,t),s=(Af[i]||{}).scales||{};Object.keys(s).forEach(e=>{let t=pg(e,o),i=n[t+`AxisID`]||t;a[i]=a[i]||Object.create(null),hd(a[i],[{axis:t},r[i],s[e]])})}),Object.keys(a).forEach(e=>{let t=a[e];hd(t,[Q.scales[t.type],Q.scale])}),a}function xg(e){let t=e.options||={};t.plugins=J(t.plugins,{}),t.scales=bg(e,t)}function Sg(e){return e||={},e.datasets=e.datasets||[],e.labels=e.labels||[],e}function Cg(e){return e||={},e.data=Sg(e.data),xg(e),e}var wg=new Map,Tg=new Set;function Eg(e,t){let n=wg.get(e);return n||(n=t(),wg.set(e,n),Tg.add(n)),n}var Dg=(e,t,n)=>{let r=bd(t,n);r!==void 0&&e.add(r)},Og=class{constructor(e){this._config=Cg(e),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(e){this._config.type=e}get data(){return this._config.data}set data(e){this._config.data=Sg(e)}get options(){return this._config.options}set options(e){this._config.options=e}get plugins(){return this._config.plugins}update(){let e=this._config;this.clearCache(),xg(e)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(e){return Eg(e,()=>[[`datasets.${e}`,``]])}datasetAnimationScopeKeys(e,t){return Eg(`${e}.transition.${t}`,()=>[[`datasets.${e}.transitions.${t}`,`transitions.${t}`],[`datasets.${e}`,``]])}datasetElementScopeKeys(e,t){return Eg(`${e}-${t}`,()=>[[`datasets.${e}.elements.${t}`,`datasets.${e}`,`elements.${t}`,``]])}pluginScopeKeys(e){let t=e.id,n=this.type;return Eg(`${n}-plugin-${t}`,()=>[[`plugins.${t}`,...e.additionalOptionScopes||[]]])}_cachedScopes(e,t){let n=this._scopeCache,r=n.get(e);return(!r||t)&&(r=new Map,n.set(e,r)),r}getOptionScopes(e,t,n){let{options:r,type:i}=this,a=this._cachedScopes(e,n),o=a.get(t);if(o)return o;let s=new Set;t.forEach(t=>{e&&(s.add(e),t.forEach(t=>Dg(s,e,t))),t.forEach(e=>Dg(s,r,e)),t.forEach(e=>Dg(s,Af[i]||{},e)),t.forEach(e=>Dg(s,Q,e)),t.forEach(e=>Dg(s,jf,e))});let c=Array.from(s);return c.length===0&&c.push(Object.create(null)),Tg.has(t)&&a.set(t,c),c}chartOptionScopes(){let{options:e,type:t}=this;return[e,Af[t]||{},Q.datasets[t]||{},{type:t},Q,jf]}resolveNamedOptions(e,t,n,r=[``]){let i={$shared:!0},{resolver:a,subPrefixes:o}=kg(this._resolverCache,e,r),s=a;if(jg(a,t)){i.$shared=!1,n=Cd(n)?n():n;let t=this.createResolver(e,n,o);s=sp(a,n,t)}for(let e of t)i[e]=s[e];return i}createResolver(e,t,n=[``],r){let{resolver:i}=kg(this._resolverCache,e,n);return K(t)?sp(i,t,void 0,r):i}};function kg(e,t,n){let r=e.get(t);r||(r=new Map,e.set(t,r));let i=n.join(),a=r.get(i);return a||(a={resolver:op(t,n),subPrefixes:n.filter(e=>!e.toLowerCase().includes(`hover`))},r.set(i,a)),a}var Ag=e=>K(e)&&Object.getOwnPropertyNames(e).some(t=>Cd(e[t]));function jg(e,t){let{isScriptable:n,isIndexable:r}=cp(e);for(let i of t){let t=n(i),a=r(i),o=(a||t)&&e[i];if(t&&(Cd(o)||Ag(o))||a&&G(o))return!0}return!1}var Mg=`4.5.1`,Ng=[`top`,`bottom`,`left`,`right`,`chartArea`];function Pg(e,t){return e===`top`||e===`bottom`||Ng.indexOf(e)===-1&&t===`x`}function Fg(e,t){return function(n,r){return n[e]===r[e]?n[t]-r[t]:n[e]-r[e]}}function Ig(e){let t=e.chart,n=t.options.animation;t.notifyPlugins(`afterRender`),Y(n&&n.onComplete,[e],t)}function Lg(e){let t=e.chart,n=t.options.animation;Y(n&&n.onProgress,[e],t)}function Rg(e){return Tp()&&typeof e==`string`?e=document.getElementById(e):e&&e.length&&(e=e[0]),e&&e.canvas&&(e=e.canvas),e}var zg={},Bg=e=>{let t=Rg(e);return Object.values(zg).filter(e=>e.canvas===t).pop()};function Vg(e,t,n){let r=Object.keys(e);for(let i of r){let r=+i;if(r>=t){let a=e[i];delete e[i],(n>0||r>t)&&(e[r+n]=a)}}}function Hg(e,t,n,r){return!n||e.type===`mouseout`?null:r?t:e}var Ug=class{static defaults=Q;static instances=zg;static overrides=Af;static registry=og;static version=Mg;static getChart=Bg;static register(...e){og.add(...e),Wg()}static unregister(...e){og.remove(...e),Wg()}constructor(e,t){let n=this.config=new Og(t),r=Rg(e),i=Bg(r);if(i)throw Error(`Canvas is already in use. Chart with ID '`+i.id+`' must be destroyed before the canvas with ID '`+i.canvas.id+`' can be reused.`);let a=n.createResolver(n.chartOptionScopes(),this.getContext());this.platform=new(n.platform||(Ph(r))),this.platform.updateConfig(n);let o=this.platform.acquireContext(r,a.aspectRatio),s=o&&o.canvas,c=s&&s.height,l=s&&s.width;if(this.id=sd(),this.ctx=o,this.canvas=s,this.width=l,this.height=c,this._options=a,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new sg,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=cf(e=>this.update(e),a.resizeDelay||0),this._dataChanges=[],zg[this.id]=this,!o||!s){console.error(`Failed to create chart: can't acquire context from the given item`);return}Yp.listen(this,`complete`,Ig),Yp.listen(this,`progress`,Lg),this._initialize(),this.attached&&this.update()}get aspectRatio(){let{options:{aspectRatio:e,maintainAspectRatio:t},width:n,height:r,_aspectRatio:i}=this;return W(e)?t&&i?i:r?n/r:null:e}get data(){return this.config.data}set data(e){this.config.data=e}get options(){return this._options}set options(e){this.config.options=e}get registry(){return og}_initialize(){return this.notifyPlugins(`beforeInit`),this.options.responsive?this.resize():Rp(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins(`afterInit`),this}clear(){return Rf(this.canvas,this.ctx),this}stop(){return Yp.stop(this),this}resize(e,t){Yp.running(this)?this._resizeBeforeDraw={width:e,height:t}:this._resize(e,t)}_resize(e,t){let n=this.options,r=this.canvas,i=n.maintainAspectRatio&&this.aspectRatio,a=this.platform.getMaximumSize(r,e,t,i),o=n.devicePixelRatio||this.platform.getDevicePixelRatio(),s=this.width?`resize`:`attach`;this.width=a.width,this.height=a.height,this._aspectRatio=this.aspectRatio,Rp(this,o,!0)&&(this.notifyPlugins(`resize`,{size:a}),Y(n.onResize,[this,a],this),this.attached&&this._doResize(s)&&this.render())}ensureScalesHaveIDs(){X(this.options.scales||{},(e,t)=>{e.id=t})}buildOrUpdateScales(){let e=this.options,t=e.scales,n=this.scales,r=Object.keys(n).reduce((e,t)=>(e[t]=!1,e),{}),i=[];t&&(i=i.concat(Object.keys(t).map(e=>{let n=t[e],r=_g(e,n),i=r===`r`,a=r===`x`;return{options:n,dposition:i?`chartArea`:a?`bottom`:`left`,dtype:i?`radialLinear`:a?`category`:`linear`}}))),X(i,t=>{let i=t.options,a=i.id,o=_g(a,i),s=J(i.type,t.dtype);(i.position===void 0||Pg(i.position,o)!==Pg(t.dposition))&&(i.position=t.dposition),r[a]=!0;let c=null;a in n&&n[a].type===s?c=n[a]:(c=new(og.getScale(s))({id:a,type:s,ctx:this.ctx,chart:this}),n[c.id]=c),c.init(i,e)}),X(r,(e,t)=>{e||delete n[t]}),X(n,e=>{dh.configure(this,e,e.options),dh.addBox(this,e)})}_updateMetasets(){let e=this._metasets,t=this.data.datasets.length,n=e.length;if(e.sort((e,t)=>e.index-t.index),n>t){for(let e=t;e<n;++e)this._destroyDatasetMeta(e);e.splice(t,n-t)}this._sortedMetasets=e.slice(0).sort(Fg(`order`,`index`))}_removeUnreferencedMetasets(){let{_metasets:e,data:{datasets:t}}=this;e.length>t.length&&delete this._stacks,e.forEach((e,n)=>{t.filter(t=>t===e._dataset).length===0&&this._destroyDatasetMeta(n)})}buildOrUpdateControllers(){let e=[],t=this.data.datasets,n,r;for(this._removeUnreferencedMetasets(),n=0,r=t.length;n<r;n++){let r=t[n],i=this.getDatasetMeta(n),a=r.type||this.config.type;if(i.type&&i.type!==a&&(this._destroyDatasetMeta(n),i=this.getDatasetMeta(n)),i.type=a,i.indexAxis=r.indexAxis||fg(a,this.options),i.order=r.order||0,i.index=n,i.label=``+r.label,i.visible=this.isDatasetVisible(n),i.controller)i.controller.updateIndex(n),i.controller.linkScales();else{let t=og.getController(a),{datasetElementType:r,dataElementType:o}=Q.datasets[a];Object.assign(t,{dataElementType:og.getElement(o),datasetElementType:r&&og.getElement(r)}),i.controller=new t(this,n),e.push(i.controller)}}return this._updateMetasets(),e}_resetElements(){X(this.data.datasets,(e,t)=>{this.getDatasetMeta(t).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins(`reset`)}update(e){let t=this.config;t.update();let n=this._options=t.createResolver(t.chartOptionScopes(),this.getContext()),r=this._animationsDisabled=!n.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),this.notifyPlugins(`beforeUpdate`,{mode:e,cancelable:!0})===!1)return;let i=this.buildOrUpdateControllers();this.notifyPlugins(`beforeElementsUpdate`);let a=0;for(let e=0,t=this.data.datasets.length;e<t;e++){let{controller:t}=this.getDatasetMeta(e),n=!r&&i.indexOf(t)===-1;t.buildOrUpdateElements(n),a=Math.max(+t.getMaxOverflow(),a)}a=this._minPadding=n.layout.autoPadding?a:0,this._updateLayout(a),r||X(i,e=>{e.reset()}),this._updateDatasets(e),this.notifyPlugins(`afterUpdate`,{mode:e}),this._layers.sort(Fg(`z`,`_idx`));let{_active:o,_lastEvent:s}=this;s?this._eventHandler(s,!0):o.length&&this._updateHoverStyles(o,o,!0),this.render()}_updateScales(){X(this.scales,e=>{dh.removeBox(this,e)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){let e=this.options;(!wd(new Set(Object.keys(this._listeners)),new Set(e.events))||!!this._responsiveListeners!==e.responsive)&&(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){let{_hiddenIndices:e}=this,t=this._getUniformDataChanges()||[];for(let{method:n,start:r,count:i}of t)Vg(e,r,n===`_removeElements`?-i:i)}_getUniformDataChanges(){let e=this._dataChanges;if(!e||!e.length)return;this._dataChanges=[];let t=this.data.datasets.length,n=t=>new Set(e.filter(e=>e[0]===t).map((e,t)=>t+`,`+e.splice(1).join(`,`))),r=n(0);for(let e=1;e<t;e++)if(!wd(r,n(e)))return;return Array.from(r).map(e=>e.split(`,`)).map(e=>({method:e[1],start:+e[2],count:+e[3]}))}_updateLayout(e){if(this.notifyPlugins(`beforeLayout`,{cancelable:!0})===!1)return;dh.update(this,this.width,this.height,e);let t=this.chartArea,n=t.width<=0||t.height<=0;this._layers=[],X(this.boxes,e=>{n&&e.position===`chartArea`||(e.configure&&e.configure(),this._layers.push(...e._layers()))},this),this._layers.forEach((e,t)=>{e._idx=t}),this.notifyPlugins(`afterLayout`)}_updateDatasets(e){if(this.notifyPlugins(`beforeDatasetsUpdate`,{mode:e,cancelable:!0})!==!1){for(let e=0,t=this.data.datasets.length;e<t;++e)this.getDatasetMeta(e).controller.configure();for(let t=0,n=this.data.datasets.length;t<n;++t)this._updateDataset(t,Cd(e)?e({datasetIndex:t}):e);this.notifyPlugins(`afterDatasetsUpdate`,{mode:e})}}_updateDataset(e,t){let n=this.getDatasetMeta(e),r={meta:n,index:e,mode:t,cancelable:!0};this.notifyPlugins(`beforeDatasetUpdate`,r)!==!1&&(n.controller._update(t),r.cancelable=!1,this.notifyPlugins(`afterDatasetUpdate`,r))}render(){this.notifyPlugins(`beforeRender`,{cancelable:!0})!==!1&&(Yp.has(this)?this.attached&&!Yp.running(this)&&Yp.start(this):(this.draw(),Ig({chart:this})))}draw(){let e;if(this._resizeBeforeDraw){let{width:e,height:t}=this._resizeBeforeDraw;this._resizeBeforeDraw=null,this._resize(e,t)}if(this.clear(),this.width<=0||this.height<=0||this.notifyPlugins(`beforeDraw`,{cancelable:!0})===!1)return;let t=this._layers;for(e=0;e<t.length&&t[e].z<=0;++e)t[e].draw(this.chartArea);for(this._drawDatasets();e<t.length;++e)t[e].draw(this.chartArea);this.notifyPlugins(`afterDraw`)}_getSortedDatasetMetas(e){let t=this._sortedMetasets,n=[],r,i;for(r=0,i=t.length;r<i;++r){let i=t[r];(!e||i.visible)&&n.push(i)}return n}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){if(this.notifyPlugins(`beforeDatasetsDraw`,{cancelable:!0})===!1)return;let e=this.getSortedVisibleDatasetMetas();for(let t=e.length-1;t>=0;--t)this._drawDataset(e[t]);this.notifyPlugins(`afterDatasetsDraw`)}_drawDataset(e){let t=this.ctx,n={meta:e,index:e.index,cancelable:!0},r=Jp(this,e);this.notifyPlugins(`beforeDatasetDraw`,n)!==!1&&(r&&Hf(t,r),e.controller.draw(),r&&Uf(t),n.cancelable=!1,this.notifyPlugins(`afterDatasetDraw`,n))}isPointInArea(e){return Vf(e,this.chartArea,this._minPadding)}getElementsAtEventForMode(e,t,n,r){let i=Jm.modes[t];return typeof i==`function`?i(this,e,n,r):[]}getDatasetMeta(e){let t=this.data.datasets[e],n=this._metasets,r=n.filter(e=>e&&e._dataset===t).pop();return r||(r={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:t&&t.order||0,index:e,_dataset:t,_parsed:[],_sorted:!1},n.push(r)),r}getContext(){return this.$context||=ap(null,{chart:this,type:`chart`})}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(e){let t=this.data.datasets[e];if(!t)return!1;let n=this.getDatasetMeta(e);return typeof n.hidden==`boolean`?!n.hidden:!t.hidden}setDatasetVisibility(e,t){let n=this.getDatasetMeta(e);n.hidden=!t}toggleDataVisibility(e){this._hiddenIndices[e]=!this._hiddenIndices[e]}getDataVisibility(e){return!this._hiddenIndices[e]}_updateVisibility(e,t,n){let r=n?`show`:`hide`,i=this.getDatasetMeta(e),a=i.controller._resolveAnimations(void 0,r);Sd(t)?(i.data[t].hidden=!n,this.update()):(this.setDatasetVisibility(e,n),a.update(i,{visible:n}),this.update(t=>t.datasetIndex===e?r:void 0))}hide(e,t){this._updateVisibility(e,t,!1)}show(e,t){this._updateVisibility(e,t,!0)}_destroyDatasetMeta(e){let t=this._metasets[e];t&&t.controller&&t.controller._destroy(),delete this._metasets[e]}_stop(){let e,t;for(this.stop(),Yp.remove(this),e=0,t=this.data.datasets.length;e<t;++e)this._destroyDatasetMeta(e)}destroy(){this.notifyPlugins(`beforeDestroy`);let{canvas:e,ctx:t}=this;this._stop(),this.config.clearCache(),e&&(this.unbindEvents(),Rf(e,t),this.platform.releaseContext(t),this.canvas=null,this.ctx=null),delete zg[this.id],this.notifyPlugins(`afterDestroy`)}toBase64Image(...e){return this.canvas.toDataURL(...e)}bindEvents(){this.bindUserEvents(),this.options.responsive?this.bindResponsiveEvents():this.attached=!0}bindUserEvents(){let e=this._listeners,t=this.platform,n=(n,r)=>{t.addEventListener(this,n,r),e[n]=r},r=(e,t,n)=>{e.offsetX=t,e.offsetY=n,this._eventHandler(e)};X(this.options.events,e=>n(e,r))}bindResponsiveEvents(){this._responsiveListeners||={};let e=this._responsiveListeners,t=this.platform,n=(n,r)=>{t.addEventListener(this,n,r),e[n]=r},r=(n,r)=>{e[n]&&(t.removeEventListener(this,n,r),delete e[n])},i=(e,t)=>{this.canvas&&this.resize(e,t)},a,o=()=>{r(`attach`,o),this.attached=!0,this.resize(),n(`resize`,i),n(`detach`,a)};a=()=>{this.attached=!1,r(`resize`,i),this._stop(),this._resize(0,0),n(`attach`,o)},t.isAttached(this.canvas)?o():a()}unbindEvents(){X(this._listeners,(e,t)=>{this.platform.removeEventListener(this,t,e)}),this._listeners={},X(this._responsiveListeners,(e,t)=>{this.platform.removeEventListener(this,t,e)}),this._responsiveListeners=void 0}updateHoverStyle(e,t,n){let r=n?`set`:`remove`,i,a,o,s;for(t===`dataset`&&(i=this.getDatasetMeta(e[0].datasetIndex),i.controller[`_`+r+`DatasetHoverStyle`]()),o=0,s=e.length;o<s;++o){a=e[o];let t=a&&this.getDatasetMeta(a.datasetIndex).controller;t&&t[r+`HoverStyle`](a.element,a.datasetIndex,a.index)}}getActiveElements(){return this._active||[]}setActiveElements(e){let t=this._active||[],n=e.map(({datasetIndex:e,index:t})=>{let n=this.getDatasetMeta(e);if(!n)throw Error(`No dataset found at index `+e);return{datasetIndex:e,element:n.data[t],index:t}});ud(n,t)||(this._active=n,this._lastEvent=null,this._updateHoverStyles(n,t))}notifyPlugins(e,t,n){return this._plugins.notify(this,e,t,n)}isPluginEnabled(e){return this._plugins._cache.filter(t=>t.plugin.id===e).length===1}_updateHoverStyles(e,t,n){let r=this.options.hover,i=(e,t)=>e.filter(e=>!t.some(t=>e.datasetIndex===t.datasetIndex&&e.index===t.index)),a=i(t,e),o=n?e:i(e,t);a.length&&this.updateHoverStyle(a,r.mode,!1),o.length&&r.mode&&this.updateHoverStyle(o,r.mode,!0)}_eventHandler(e,t){let n={event:e,replay:t,cancelable:!0,inChartArea:this.isPointInArea(e)},r=t=>(t.options.events||this.options.events).includes(e.native.type);if(this.notifyPlugins(`beforeEvent`,n,r)===!1)return;let i=this._handleEvent(e,t,n.inChartArea);return n.cancelable=!1,this.notifyPlugins(`afterEvent`,n,r),(i||n.changed)&&this.render(),this}_handleEvent(e,t,n){let{_active:r=[],options:i}=this,a=t,o=this._getActiveElements(e,r,n,a),s=Td(e),c=Hg(e,this._lastEvent,n,s);n&&(this._lastEvent=null,Y(i.onHover,[e,o,this],this),s&&Y(i.onClick,[e,o,this],this));let l=!ud(o,r);return(l||t)&&(this._active=o,this._updateHoverStyles(o,r,t)),this._lastEvent=c,l}_getActiveElements(e,t,n,r){if(e.type===`mouseout`)return[];if(!n)return t;let i=this.options.hover;return this.getElementsAtEventForMode(e,i.mode,i,r)}};function Wg(){return X(Ug.instances,e=>e._plugins.invalidate())}function Gg(e,t){let{x:n,y:r,base:i,width:a,height:o}=e.getProps([`x`,`y`,`base`,`width`,`height`],t),s,c,l,u,d;return e.horizontal?(d=o/2,s=Math.min(n,i),c=Math.max(n,i),l=r-d,u=r+d):(d=a/2,s=n-d,c=n+d,l=Math.min(r,i),u=Math.max(r,i)),{left:s,top:l,right:c,bottom:u}}function Kg(e,t,n,r){return e?0:Jd(t,n,r)}function qg(e,t,n){let r=e.options.borderWidth,i=e.borderSkipped,a=ep(r);return{t:Kg(i.top,a.top,0,n),r:Kg(i.right,a.right,0,t),b:Kg(i.bottom,a.bottom,0,n),l:Kg(i.left,a.left,0,t)}}function Jg(e,t,n){let{enableBorderRadius:r}=e.getProps([`enableBorderRadius`]),i=e.options.borderRadius,a=tp(i),o=Math.min(t,n),s=e.borderSkipped,c=r||K(i);return{topLeft:Kg(!c||s.top||s.left,a.topLeft,0,o),topRight:Kg(!c||s.top||s.right,a.topRight,0,o),bottomLeft:Kg(!c||s.bottom||s.left,a.bottomLeft,0,o),bottomRight:Kg(!c||s.bottom||s.right,a.bottomRight,0,o)}}function Yg(e){let t=Gg(e),n=t.right-t.left,r=t.bottom-t.top,i=qg(e,n/2,r/2),a=Jg(e,n/2,r/2);return{outer:{x:t.left,y:t.top,w:n,h:r,radius:a},inner:{x:t.left+i.l,y:t.top+i.t,w:n-i.l-i.r,h:r-i.t-i.b,radius:{topLeft:Math.max(0,a.topLeft-Math.max(i.t,i.l)),topRight:Math.max(0,a.topRight-Math.max(i.t,i.r)),bottomLeft:Math.max(0,a.bottomLeft-Math.max(i.b,i.l)),bottomRight:Math.max(0,a.bottomRight-Math.max(i.b,i.r))}}}}function Xg(e,t,n,r){let i=t===null,a=n===null,o=e&&!(i&&a)&&Gg(e,r);return o&&(i||Xd(t,o.left,o.right))&&(a||Xd(n,o.top,o.bottom))}function Zg(e){return e.topLeft||e.topRight||e.bottomLeft||e.bottomRight}function Qg(e,t){e.rect(t.x,t.y,t.w,t.h)}function $g(e,t,n={}){let r=e.x===n.x?0:-t,i=e.y===n.y?0:-t,a=(e.x+e.w===n.x+n.w?0:t)-r,o=(e.y+e.h===n.y+n.h?0:t)-i;return{x:e.x+r,y:e.y+i,w:e.w+a,h:e.h+o,radius:e.radius}}var e_=class extends Fh{static id=`bar`;static defaults={borderSkipped:`start`,borderWidth:0,borderRadius:0,inflateAmount:`auto`,pointStyle:void 0};static defaultRoutes={backgroundColor:`backgroundColor`,borderColor:`borderColor`};constructor(e){super(),this.options=void 0,this.horizontal=void 0,this.base=void 0,this.width=void 0,this.height=void 0,this.inflateAmount=void 0,e&&Object.assign(this,e)}draw(e){let{inflateAmount:t,options:{borderColor:n,backgroundColor:r}}=this,{inner:i,outer:a}=Yg(this),o=Zg(a.radius)?Jf:Qg;e.save(),(a.w!==i.w||a.h!==i.h)&&(e.beginPath(),o(e,$g(a,t,i)),e.clip(),o(e,$g(i,-t,a)),e.fillStyle=n,e.fill(`evenodd`)),e.beginPath(),o(e,$g(i,t)),e.fillStyle=r,e.fill(),e.restore()}inRange(e,t,n){return Xg(this,e,t,n)}inXRange(e,t){return Xg(this,e,null,t)}inYRange(e,t){return Xg(this,null,e,t)}getCenterPoint(e){let{x:t,y:n,base:r,horizontal:i}=this.getProps([`x`,`y`,`base`,`horizontal`],e);return{x:i?(t+r)/2:t,y:i?n:(n+r)/2}}getRange(e){return e===`x`?this.width/2:this.height/2}},t_=(e,t)=>{let{boxHeight:n=t,boxWidth:r=t}=e;return e.usePointStyle&&(n=Math.min(n,t),r=e.pointStyleWidth||Math.min(r,t)),{boxWidth:r,boxHeight:n,itemHeight:Math.max(t,n)}},n_=(e,t)=>e!==null&&t!==null&&e.datasetIndex===t.datasetIndex&&e.index===t.index,r_=class extends Fh{constructor(e){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=e.chart,this.options=e.options,this.ctx=e.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(e,t,n){this.maxWidth=e,this.maxHeight=t,this._margins=n,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){let e=this.options.labels||{},t=Y(e.generateLabels,[this.chart],this)||[];e.filter&&(t=t.filter(t=>e.filter(t,this.chart.data))),e.sort&&(t=t.sort((t,n)=>e.sort(t,n,this.chart.data))),this.options.reverse&&t.reverse(),this.legendItems=t}fit(){let{options:e,ctx:t}=this;if(!e.display){this.width=this.height=0;return}let n=e.labels,r=$(n.font),i=r.size,a=this._computeTitleHeight(),{boxWidth:o,itemHeight:s}=t_(n,i),c,l;t.font=r.string,this.isHorizontal()?(c=this.maxWidth,l=this._fitRows(a,i,o,s)+10):(l=this.maxHeight,c=this._fitCols(a,r,o,s)+10),this.width=Math.min(c,e.maxWidth||this.maxWidth),this.height=Math.min(l,e.maxHeight||this.maxHeight)}_fitRows(e,t,n,r){let{ctx:i,maxWidth:a,options:{labels:{padding:o}}}=this,s=this.legendHitBoxes=[],c=this.lineWidths=[0],l=r+o,u=e;i.textAlign=`left`,i.textBaseline=`middle`;let d=-1,f=-l;return this.legendItems.forEach((e,p)=>{let m=n+t/2+i.measureText(e.text).width;(p===0||c[c.length-1]+m+2*o>a)&&(u+=l,c[c.length-(p>0?0:1)]=0,f+=l,d++),s[p]={left:0,top:f,row:d,width:m,height:r},c[c.length-1]+=m+o}),u}_fitCols(e,t,n,r){let{ctx:i,maxHeight:a,options:{labels:{padding:o}}}=this,s=this.legendHitBoxes=[],c=this.columnSizes=[],l=a-e,u=o,d=0,f=0,p=0,m=0;return this.legendItems.forEach((e,a)=>{let{itemWidth:h,itemHeight:g}=i_(n,t,i,e,r);a>0&&f+g+2*o>l&&(u+=d+o,c.push({width:d,height:f}),p+=d+o,m++,d=f=0),s[a]={left:p,top:f,col:m,width:h,height:g},d=Math.max(d,h),f+=g+o}),u+=d,c.push({width:d,height:f}),u}adjustHitBoxes(){if(!this.options.display)return;let e=this._computeTitleHeight(),{legendHitBoxes:t,options:{align:n,labels:{padding:r},rtl:i}}=this,a=Up(i,this.left,this.width);if(this.isHorizontal()){let i=0,o=uf(n,this.left+r,this.right-this.lineWidths[i]);for(let s of t)i!==s.row&&(i=s.row,o=uf(n,this.left+r,this.right-this.lineWidths[i])),s.top+=this.top+e+r,s.left=a.leftForLtr(a.x(o),s.width),o+=s.width+r}else{let i=0,o=uf(n,this.top+e+r,this.bottom-this.columnSizes[i].height);for(let s of t)s.col!==i&&(i=s.col,o=uf(n,this.top+e+r,this.bottom-this.columnSizes[i].height)),s.top=o,s.left+=this.left+r,s.left=a.leftForLtr(a.x(s.left),s.width),o+=s.height+r}}isHorizontal(){return this.options.position===`top`||this.options.position===`bottom`}draw(){if(this.options.display){let e=this.ctx;Hf(e,this),this._draw(),Uf(e)}}_draw(){let{options:e,columnSizes:t,lineWidths:n,ctx:r}=this,{align:i,labels:a}=e,o=Q.color,s=Up(e.rtl,this.left,this.width),c=$(a.font),{padding:l}=a,u=c.size,d=u/2,f;this.drawTitle(),r.textAlign=s.textAlign(`left`),r.textBaseline=`middle`,r.lineWidth=.5,r.font=c.string;let{boxWidth:p,boxHeight:m,itemHeight:h}=t_(a,u),g=function(e,t,n){if(isNaN(p)||p<=0||isNaN(m)||m<0)return;r.save();let i=J(n.lineWidth,1);if(r.fillStyle=J(n.fillStyle,o),r.lineCap=J(n.lineCap,`butt`),r.lineDashOffset=J(n.lineDashOffset,0),r.lineJoin=J(n.lineJoin,`miter`),r.lineWidth=i,r.strokeStyle=J(n.strokeStyle,o),r.setLineDash(J(n.lineDash,[])),a.usePointStyle)Bf(r,{radius:m*Math.SQRT2/2,pointStyle:n.pointStyle,rotation:n.rotation,borderWidth:i},s.xPlus(e,p/2),t+d,a.pointStyleWidth&&p);else{let a=t+Math.max((u-m)/2,0),o=s.leftForLtr(e,p),c=tp(n.borderRadius);r.beginPath(),Object.values(c).some(e=>e!==0)?Jf(r,{x:o,y:a,w:p,h:m,radius:c}):r.rect(o,a,p,m),r.fill(),i!==0&&r.stroke()}r.restore()},_=function(e,t,n){qf(r,n.text,e,t+h/2,c,{strikethrough:n.hidden,textAlign:s.textAlign(n.textAlign)})},v=this.isHorizontal(),y=this._computeTitleHeight();f=v?{x:uf(i,this.left+l,this.right-n[0]),y:this.top+l+y,line:0}:{x:this.left+l,y:uf(i,this.top+y+l,this.bottom-t[0].height),line:0},Wp(this.ctx,e.textDirection);let b=h+l;this.legendItems.forEach((o,u)=>{r.strokeStyle=o.fontColor,r.fillStyle=o.fontColor;let m=r.measureText(o.text).width,h=s.textAlign(o.textAlign||=a.textAlign),x=p+d+m,S=f.x,C=f.y;if(s.setWidth(this.width),v?u>0&&S+x+l>this.right&&(C=f.y+=b,f.line++,S=f.x=uf(i,this.left+l,this.right-n[f.line])):u>0&&C+b>this.bottom&&(S=f.x=S+t[f.line].width+l,f.line++,C=f.y=uf(i,this.top+y+l,this.bottom-t[f.line].height)),g(s.x(S),C,o),S=df(h,S+p+d,v?S+x:this.right,e.rtl),_(s.x(S),C,o),v)f.x+=x+l;else if(typeof o.text!=`string`){let e=c.lineHeight;f.y+=s_(o,e)+l}else f.y+=b}),Gp(this.ctx,e.textDirection)}drawTitle(){let e=this.options,t=e.title,n=$(t.font),r=np(t.padding);if(!t.display)return;let i=Up(e.rtl,this.left,this.width),a=this.ctx,o=t.position,s=n.size/2,c=r.top+s,l,u=this.left,d=this.width;if(this.isHorizontal())d=Math.max(...this.lineWidths),l=this.top+c,u=uf(e.align,u,this.right-d);else{let t=this.columnSizes.reduce((e,t)=>Math.max(e,t.height),0);l=c+uf(e.align,this.top,this.bottom-t-e.labels.padding-this._computeTitleHeight())}let f=uf(o,u,u+d);a.textAlign=i.textAlign(lf(o)),a.textBaseline=`middle`,a.strokeStyle=t.color,a.fillStyle=t.color,a.font=n.string,qf(a,t.text,f,l,n)}_computeTitleHeight(){let e=this.options.title,t=$(e.font),n=np(e.padding);return e.display?t.lineHeight+n.height:0}_getLegendItemAt(e,t){let n,r,i;if(Xd(e,this.left,this.right)&&Xd(t,this.top,this.bottom)){for(i=this.legendHitBoxes,n=0;n<i.length;++n)if(r=i[n],Xd(e,r.left,r.left+r.width)&&Xd(t,r.top,r.top+r.height))return this.legendItems[n]}return null}handleEvent(e){let t=this.options;if(!c_(e.type,t))return;let n=this._getLegendItemAt(e.x,e.y);if(e.type===`mousemove`||e.type===`mouseout`){let r=this._hoveredItem,i=n_(r,n);r&&!i&&Y(t.onLeave,[e,r,this],this),this._hoveredItem=n,n&&!i&&Y(t.onHover,[e,n,this],this)}else n&&Y(t.onClick,[e,n,this],this)}};function i_(e,t,n,r,i){return{itemWidth:a_(r,e,t,n),itemHeight:o_(i,r,t.lineHeight)}}function a_(e,t,n,r){let i=e.text;return i&&typeof i!=`string`&&(i=i.reduce((e,t)=>e.length>t.length?e:t)),t+n.size/2+r.measureText(i).width}function o_(e,t,n){let r=e;return typeof t.text!=`string`&&(r=s_(t,n)),r}function s_(e,t){return t*(e.text?e.text.length:0)}function c_(e,t){return!!((e===`mousemove`||e===`mouseout`)&&(t.onHover||t.onLeave)||t.onClick&&(e===`click`||e===`mouseup`))}var l_={id:`legend`,_element:r_,start(e,t,n){let r=e.legend=new r_({ctx:e.ctx,options:n,chart:e});dh.configure(e,r,n),dh.addBox(e,r)},stop(e){dh.removeBox(e,e.legend),delete e.legend},beforeUpdate(e,t,n){let r=e.legend;dh.configure(e,r,n),r.options=n},afterUpdate(e){let t=e.legend;t.buildLabels(),t.adjustHitBoxes()},afterEvent(e,t){t.replay||e.legend.handleEvent(t.event)},defaults:{display:!0,position:`top`,align:`center`,fullSize:!0,reverse:!1,weight:1e3,onClick(e,t,n){let r=t.datasetIndex,i=n.chart;i.isDatasetVisible(r)?(i.hide(r),t.hidden=!0):(i.show(r),t.hidden=!1)},onHover:null,onLeave:null,labels:{color:e=>e.chart.options.color,boxWidth:40,padding:10,generateLabels(e){let t=e.data.datasets,{labels:{usePointStyle:n,pointStyle:r,textAlign:i,color:a,useBorderRadius:o,borderRadius:s}}=e.legend.options;return e._getSortedDatasetMetas().map(e=>{let c=e.controller.getStyle(n?0:void 0),l=np(c.borderWidth);return{text:t[e.index].label,fillStyle:c.backgroundColor,fontColor:a,hidden:!e.visible,lineCap:c.borderCapStyle,lineDash:c.borderDash,lineDashOffset:c.borderDashOffset,lineJoin:c.borderJoinStyle,lineWidth:(l.width+l.height)/4,strokeStyle:c.borderColor,pointStyle:r||c.pointStyle,rotation:c.rotation,textAlign:i||c.textAlign,borderRadius:o&&(s||c.borderRadius),datasetIndex:e.index}},this)}},title:{color:e=>e.chart.options.color,display:!1,position:`center`,text:``}},descriptors:{_scriptable:e=>!e.startsWith(`on`),labels:{_scriptable:e=>![`generateLabels`,`filter`,`sort`].includes(e)}}},u_=class extends Fh{constructor(e){super(),this.chart=e.chart,this.options=e.options,this.ctx=e.ctx,this._padding=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(e,t){let n=this.options;if(this.left=0,this.top=0,!n.display){this.width=this.height=this.right=this.bottom=0;return}this.width=this.right=e,this.height=this.bottom=t;let r=G(n.text)?n.text.length:1;this._padding=np(n.padding);let i=r*$(n.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=i:this.width=i}isHorizontal(){let e=this.options.position;return e===`top`||e===`bottom`}_drawArgs(e){let{top:t,left:n,bottom:r,right:i,options:a}=this,o=a.align,s=0,c,l,u;return this.isHorizontal()?(l=uf(o,n,i),u=t+e,c=i-n):(a.position===`left`?(l=n+e,u=uf(o,r,t),s=Z*-.5):(l=i-e,u=uf(o,t,r),s=Z*.5),c=r-t),{titleX:l,titleY:u,maxWidth:c,rotation:s}}draw(){let e=this.ctx,t=this.options;if(!t.display)return;let n=$(t.font),r=n.lineHeight/2+this._padding.top,{titleX:i,titleY:a,maxWidth:o,rotation:s}=this._drawArgs(r);qf(e,t.text,0,0,n,{color:t.color,maxWidth:o,rotation:s,textAlign:lf(t.align),textBaseline:`middle`,translation:[i,a]})}};function d_(e,t){let n=new u_({ctx:e.ctx,options:t,chart:e});dh.configure(e,n,t),dh.addBox(e,n),e.titleBlock=n}var f_={id:`title`,_element:u_,start(e,t,n){d_(e,n)},stop(e){let t=e.titleBlock;dh.removeBox(e,t),delete e.titleBlock},beforeUpdate(e,t,n){let r=e.titleBlock;dh.configure(e,r,n),r.options=n},defaults:{align:`center`,display:!1,font:{weight:`bold`},fullSize:!0,padding:10,position:`top`,text:``,weight:2e3},defaultRoutes:{color:`color`},descriptors:{_scriptable:!0,_indexable:!1}},p_={average(e){if(!e.length)return!1;let t,n,r=new Set,i=0,a=0;for(t=0,n=e.length;t<n;++t){let n=e[t].element;if(n&&n.hasValue()){let e=n.tooltipPosition();r.add(e.x),i+=e.y,++a}}return a===0||r.size===0?!1:{x:[...r].reduce((e,t)=>e+t)/r.size,y:i/a}},nearest(e,t){if(!e.length)return!1;let n=t.x,r=t.y,i=1/0,a,o,s;for(a=0,o=e.length;a<o;++a){let n=e[a].element;if(n&&n.hasValue()){let e=Gd(t,n.getCenterPoint());e<i&&(i=e,s=n)}}if(s){let e=s.tooltipPosition();n=e.x,r=e.y}return{x:n,y:r}}};function m_(e,t){return t&&(G(t)?Array.prototype.push.apply(e,t):e.push(t)),e}function h_(e){return(typeof e==`string`||e instanceof String)&&e.indexOf(`
4
4
  `)>-1?e.split(`
5
- `):e}function g_(e,t){let{element:n,datasetIndex:r,index:i}=t,a=e.getDatasetMeta(r).controller,{label:o,value:s}=a.getLabelAndValue(i);return{chart:e,label:o,parsed:a.getParsed(i),raw:e.data.datasets[r].data[i],formattedValue:s,dataset:a.getDataset(),dataIndex:i,datasetIndex:r,element:n}}function __(e,t){let n=e.chart.ctx,{body:r,footer:i,title:a}=e,{boxWidth:o,boxHeight:s}=t,c=$(t.bodyFont),l=$(t.titleFont),u=$(t.footerFont),d=a.length,f=i.length,p=r.length,m=np(t.padding),h=m.height,g=0,_=r.reduce((e,t)=>e+t.before.length+t.lines.length+t.after.length,0);if(_+=e.beforeBody.length+e.afterBody.length,d&&(h+=d*l.lineHeight+(d-1)*t.titleSpacing+t.titleMarginBottom),_){let e=t.displayColors?Math.max(s,c.lineHeight):c.lineHeight;h+=p*e+(_-p)*c.lineHeight+(_-1)*t.bodySpacing}f&&(h+=t.footerMarginTop+f*u.lineHeight+(f-1)*t.footerSpacing);let v=0,y=function(e){g=Math.max(g,n.measureText(e).width+v)};return n.save(),n.font=l.string,X(e.title,y),n.font=c.string,X(e.beforeBody.concat(e.afterBody),y),v=t.displayColors?o+2+t.boxPadding:0,X(r,e=>{X(e.before,y),X(e.lines,y),X(e.after,y)}),v=0,n.font=u.string,X(e.footer,y),n.restore(),g+=m.width,{width:g,height:h}}function v_(e,t){let{y:n,height:r}=t;return n<r/2?`top`:n>e.height-r/2?`bottom`:`center`}function y_(e,t,n,r){let{x:i,width:a}=r,o=n.caretSize+n.caretPadding;if(e===`left`&&i+a+o>t.width||e===`right`&&i-a-o<0)return!0}function b_(e,t,n,r){let{x:i,width:a}=n,{width:o,chartArea:{left:s,right:c}}=e,l=`center`;return r===`center`?l=i<=(s+c)/2?`left`:`right`:i<=a/2?l=`left`:i>=o-a/2&&(l=`right`),y_(l,e,t,n)&&(l=`center`),l}function x_(e,t,n){let r=n.yAlign||t.yAlign||v_(e,n);return{xAlign:n.xAlign||t.xAlign||b_(e,t,n,r),yAlign:r}}function S_(e,t){let{x:n,width:r}=e;return t===`right`?n-=r:t===`center`&&(n-=r/2),n}function C_(e,t,n){let{y:r,height:i}=e;return t===`top`?r+=n:t===`bottom`?r-=i+n:r-=i/2,r}function w_(e,t,n,r){let{caretSize:i,caretPadding:a,cornerRadius:o}=e,{xAlign:s,yAlign:c}=n,l=i+a,{topLeft:u,topRight:d,bottomLeft:f,bottomRight:p}=tp(o),m=S_(t,s),h=C_(t,c,l);return c===`center`?s===`left`?m+=l:s===`right`&&(m-=l):s===`left`?m-=Math.max(u,f)+i:s===`right`&&(m+=Math.max(d,p)+i),{x:Jd(m,0,r.width-t.width),y:Jd(h,0,r.height-t.height)}}function T_(e,t,n){let r=np(n.padding);return t===`center`?e.x+e.width/2:t===`right`?e.x+e.width-r.right:e.x+r.left}function E_(e){return m_([],h_(e))}function D_(e,t,n){return ap(e,{tooltip:t,tooltipItems:n,type:`tooltip`})}function O_(e,t){let n=t&&t.dataset&&t.dataset.tooltip&&t.dataset.tooltip.callbacks;return n?e.override(n):e}var k_={beforeTitle:od,title(e){if(e.length>0){let t=e[0],n=t.chart.data.labels,r=n?n.length:0;if(this&&this.options&&this.options.mode===`dataset`)return t.dataset.label||``;if(t.label)return t.label;if(r>0&&t.dataIndex<r)return n[t.dataIndex]}return``},afterTitle:od,beforeBody:od,beforeLabel:od,label(e){if(this&&this.options&&this.options.mode===`dataset`)return e.label+`: `+e.formattedValue||e.formattedValue;let t=e.dataset.label||``;t&&(t+=`: `);let n=e.formattedValue;return W(n)||(t+=n),t},labelColor(e){let t=e.chart.getDatasetMeta(e.datasetIndex).controller.getStyle(e.dataIndex);return{borderColor:t.borderColor,backgroundColor:t.backgroundColor,borderWidth:t.borderWidth,borderDash:t.borderDash,borderDashOffset:t.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(e){let t=e.chart.getDatasetMeta(e.datasetIndex).controller.getStyle(e.dataIndex);return{pointStyle:t.pointStyle,rotation:t.rotation}},afterLabel:od,afterBody:od,beforeFooter:od,footer:od,afterFooter:od};function A_(e,t,n,r){let i=e[t].call(n,r);return i===void 0?k_[t].call(n,r):i}var j_=class extends Fh{static positioners=p_;constructor(e){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=e.chart,this.options=e.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(e){this.options=e,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){let e=this._cachedAnimations;if(e)return e;let t=this.chart,n=this.options.setContext(this.getContext()),r=n.enabled&&t.options.animation&&n.animations,i=new $p(this.chart,r);return r._cacheable&&(this._cachedAnimations=Object.freeze(i)),i}getContext(){return this.$context||=D_(this.chart.getContext(),this,this._tooltipItems)}getTitle(e,t){let{callbacks:n}=t,r=A_(n,`beforeTitle`,this,e),i=A_(n,`title`,this,e),a=A_(n,`afterTitle`,this,e),o=[];return o=m_(o,h_(r)),o=m_(o,h_(i)),o=m_(o,h_(a)),o}getBeforeBody(e,t){return E_(A_(t.callbacks,`beforeBody`,this,e))}getBody(e,t){let{callbacks:n}=t,r=[];return X(e,e=>{let t={before:[],lines:[],after:[]},i=O_(n,e);m_(t.before,h_(A_(i,`beforeLabel`,this,e))),m_(t.lines,A_(i,`label`,this,e)),m_(t.after,h_(A_(i,`afterLabel`,this,e))),r.push(t)}),r}getAfterBody(e,t){return E_(A_(t.callbacks,`afterBody`,this,e))}getFooter(e,t){let{callbacks:n}=t,r=A_(n,`beforeFooter`,this,e),i=A_(n,`footer`,this,e),a=A_(n,`afterFooter`,this,e),o=[];return o=m_(o,h_(r)),o=m_(o,h_(i)),o=m_(o,h_(a)),o}_createItems(e){let t=this._active,n=this.chart.data,r=[],i=[],a=[],o=[],s,c;for(s=0,c=t.length;s<c;++s)o.push(g_(this.chart,t[s]));return e.filter&&(o=o.filter((t,r,i)=>e.filter(t,r,i,n))),e.itemSort&&(o=o.sort((t,r)=>e.itemSort(t,r,n))),X(o,t=>{let n=O_(e.callbacks,t);r.push(A_(n,`labelColor`,this,t)),i.push(A_(n,`labelPointStyle`,this,t)),a.push(A_(n,`labelTextColor`,this,t))}),this.labelColors=r,this.labelPointStyles=i,this.labelTextColors=a,this.dataPoints=o,o}update(e,t){let n=this.options.setContext(this.getContext()),r=this._active,i,a=[];if(!r.length)this.opacity!==0&&(i={opacity:0});else{let e=p_[n.position].call(this,r,this._eventPosition);a=this._createItems(n),this.title=this.getTitle(a,n),this.beforeBody=this.getBeforeBody(a,n),this.body=this.getBody(a,n),this.afterBody=this.getAfterBody(a,n),this.footer=this.getFooter(a,n);let t=this._size=__(this,n),o=Object.assign({},e,t),s=x_(this.chart,n,o),c=w_(n,o,s,this.chart);this.xAlign=s.xAlign,this.yAlign=s.yAlign,i={opacity:1,x:c.x,y:c.y,width:t.width,height:t.height,caretX:e.x,caretY:e.y}}this._tooltipItems=a,this.$context=void 0,i&&this._resolveAnimations().update(this,i),e&&n.external&&n.external.call(this,{chart:this.chart,tooltip:this,replay:t})}drawCaret(e,t,n,r){let i=this.getCaretPosition(e,n,r);t.lineTo(i.x1,i.y1),t.lineTo(i.x2,i.y2),t.lineTo(i.x3,i.y3)}getCaretPosition(e,t,n){let{xAlign:r,yAlign:i}=this,{caretSize:a,cornerRadius:o}=n,{topLeft:s,topRight:c,bottomLeft:l,bottomRight:u}=tp(o),{x:d,y:f}=e,{width:p,height:m}=t,h,g,_,v,y,b;return i===`center`?(y=f+m/2,r===`left`?(h=d,g=h-a,v=y+a,b=y-a):(h=d+p,g=h+a,v=y-a,b=y+a),_=h):(g=r===`left`?d+Math.max(s,l)+a:r===`right`?d+p-Math.max(c,u)-a:this.caretX,i===`top`?(v=f,y=v-a,h=g-a,_=g+a):(v=f+m,y=v+a,h=g+a,_=g-a),b=v),{x1:h,x2:g,x3:_,y1:v,y2:y,y3:b}}drawTitle(e,t,n){let r=this.title,i=r.length,a,o,s;if(i){let c=Up(n.rtl,this.x,this.width);for(e.x=T_(this,n.titleAlign,n),t.textAlign=c.textAlign(n.titleAlign),t.textBaseline=`middle`,a=$(n.titleFont),o=n.titleSpacing,t.fillStyle=n.titleColor,t.font=a.string,s=0;s<i;++s)t.fillText(r[s],c.x(e.x),e.y+a.lineHeight/2),e.y+=a.lineHeight+o,s+1===i&&(e.y+=n.titleMarginBottom-o)}}_drawColorBox(e,t,n,r,i){let a=this.labelColors[n],o=this.labelPointStyles[n],{boxHeight:s,boxWidth:c}=i,l=$(i.bodyFont),u=T_(this,`left`,i),d=r.x(u),f=s<l.lineHeight?(l.lineHeight-s)/2:0,p=t.y+f;if(i.usePointStyle){let t={radius:Math.min(c,s)/2,pointStyle:o.pointStyle,rotation:o.rotation,borderWidth:1},n=r.leftForLtr(d,c)+c/2,l=p+s/2;e.strokeStyle=i.multiKeyBackground,e.fillStyle=i.multiKeyBackground,zf(e,t,n,l),e.strokeStyle=a.borderColor,e.fillStyle=a.backgroundColor,zf(e,t,n,l)}else{e.lineWidth=K(a.borderWidth)?Math.max(...Object.values(a.borderWidth)):a.borderWidth||1,e.strokeStyle=a.borderColor,e.setLineDash(a.borderDash||[]),e.lineDashOffset=a.borderDashOffset||0;let t=r.leftForLtr(d,c),n=r.leftForLtr(r.xPlus(d,1),c-2),o=tp(a.borderRadius);Object.values(o).some(e=>e!==0)?(e.beginPath(),e.fillStyle=i.multiKeyBackground,Jf(e,{x:t,y:p,w:c,h:s,radius:o}),e.fill(),e.stroke(),e.fillStyle=a.backgroundColor,e.beginPath(),Jf(e,{x:n,y:p+1,w:c-2,h:s-2,radius:o}),e.fill()):(e.fillStyle=i.multiKeyBackground,e.fillRect(t,p,c,s),e.strokeRect(t,p,c,s),e.fillStyle=a.backgroundColor,e.fillRect(n,p+1,c-2,s-2))}e.fillStyle=this.labelTextColors[n]}drawBody(e,t,n){let{body:r}=this,{bodySpacing:i,bodyAlign:a,displayColors:o,boxHeight:s,boxWidth:c,boxPadding:l}=n,u=$(n.bodyFont),d=u.lineHeight,f=0,p=Up(n.rtl,this.x,this.width),m=function(n){t.fillText(n,p.x(e.x+f),e.y+d/2),e.y+=d+i},h=p.textAlign(a),g,_,v,y,b,x,S;for(t.textAlign=a,t.textBaseline=`middle`,t.font=u.string,e.x=T_(this,h,n),t.fillStyle=n.bodyColor,X(this.beforeBody,m),f=o&&h!==`right`?a===`center`?c/2+l:c+2+l:0,y=0,x=r.length;y<x;++y){for(g=r[y],_=this.labelTextColors[y],t.fillStyle=_,X(g.before,m),v=g.lines,o&&v.length&&(this._drawColorBox(t,e,y,p,n),d=Math.max(u.lineHeight,s)),b=0,S=v.length;b<S;++b)m(v[b]),d=u.lineHeight;X(g.after,m)}f=0,d=u.lineHeight,X(this.afterBody,m),e.y-=i}drawFooter(e,t,n){let r=this.footer,i=r.length,a,o;if(i){let s=Up(n.rtl,this.x,this.width);for(e.x=T_(this,n.footerAlign,n),e.y+=n.footerMarginTop,t.textAlign=s.textAlign(n.footerAlign),t.textBaseline=`middle`,a=$(n.footerFont),t.fillStyle=n.footerColor,t.font=a.string,o=0;o<i;++o)t.fillText(r[o],s.x(e.x),e.y+a.lineHeight/2),e.y+=a.lineHeight+n.footerSpacing}}drawBackground(e,t,n,r){let{xAlign:i,yAlign:a}=this,{x:o,y:s}=e,{width:c,height:l}=n,{topLeft:u,topRight:d,bottomLeft:f,bottomRight:p}=tp(r.cornerRadius);t.fillStyle=r.backgroundColor,t.strokeStyle=r.borderColor,t.lineWidth=r.borderWidth,t.beginPath(),t.moveTo(o+u,s),a===`top`&&this.drawCaret(e,t,n,r),t.lineTo(o+c-d,s),t.quadraticCurveTo(o+c,s,o+c,s+d),a===`center`&&i===`right`&&this.drawCaret(e,t,n,r),t.lineTo(o+c,s+l-p),t.quadraticCurveTo(o+c,s+l,o+c-p,s+l),a===`bottom`&&this.drawCaret(e,t,n,r),t.lineTo(o+f,s+l),t.quadraticCurveTo(o,s+l,o,s+l-f),a===`center`&&i===`left`&&this.drawCaret(e,t,n,r),t.lineTo(o,s+u),t.quadraticCurveTo(o,s,o+u,s),t.closePath(),t.fill(),r.borderWidth>0&&t.stroke()}_updateAnimationTarget(e){let t=this.chart,n=this.$animations,r=n&&n.x,i=n&&n.y;if(r||i){let n=p_[e.position].call(this,this._active,this._eventPosition);if(!n)return;let a=this._size=__(this,e),o=Object.assign({},n,this._size),s=x_(t,e,o),c=w_(e,o,s,t);(r._to!==c.x||i._to!==c.y)&&(this.xAlign=s.xAlign,this.yAlign=s.yAlign,this.width=a.width,this.height=a.height,this.caretX=n.x,this.caretY=n.y,this._resolveAnimations().update(this,c))}}_willRender(){return!!this.opacity}draw(e){let t=this.options.setContext(this.getContext()),n=this.opacity;if(!n)return;this._updateAnimationTarget(t);let r={width:this.width,height:this.height},i={x:this.x,y:this.y};n=Math.abs(n)<.001?0:n;let a=np(t.padding),o=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;t.enabled&&o&&(e.save(),e.globalAlpha=n,this.drawBackground(i,e,r,t),Wp(e,t.textDirection),i.y+=a.top,this.drawTitle(i,e,t),this.drawBody(i,e,t),this.drawFooter(i,e,t),Gp(e,t.textDirection),e.restore())}getActiveElements(){return this._active||[]}setActiveElements(e,t){let n=this._active,r=e.map(({datasetIndex:e,index:t})=>{let n=this.chart.getDatasetMeta(e);if(!n)throw Error(`Cannot find a dataset at index `+e);return{datasetIndex:e,element:n.data[t],index:t}}),i=!ud(n,r),a=this._positionChanged(r,t);(i||a)&&(this._active=r,this._eventPosition=t,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(e,t,n=!0){if(t&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;let r=this.options,i=this._active||[],a=this._getActiveElements(e,i,t,n),o=this._positionChanged(a,e),s=t||!ud(a,i)||o;return s&&(this._active=a,(r.enabled||r.external)&&(this._eventPosition={x:e.x,y:e.y},this.update(!0,t))),s}_getActiveElements(e,t,n,r){let i=this.options;if(e.type===`mouseout`)return[];if(!r)return t.filter(e=>this.chart.data.datasets[e.datasetIndex]&&this.chart.getDatasetMeta(e.datasetIndex).controller.getParsed(e.index)!==void 0);let a=this.chart.getElementsAtEventForMode(e,i.mode,i,n);return i.reverse&&a.reverse(),a}_positionChanged(e,t){let{caretX:n,caretY:r,options:i}=this,a=p_[i.position].call(this,e,t);return a!==!1&&(n!==a.x||r!==a.y)}},M_={id:`tooltip`,_element:j_,positioners:p_,afterInit(e,t,n){n&&(e.tooltip=new j_({chart:e,options:n}))},beforeUpdate(e,t,n){e.tooltip&&e.tooltip.initialize(n)},reset(e,t,n){e.tooltip&&e.tooltip.initialize(n)},afterDraw(e){let t=e.tooltip;if(t&&t._willRender()){let n={tooltip:t};if(e.notifyPlugins(`beforeTooltipDraw`,{...n,cancelable:!0})===!1)return;t.draw(e.ctx),e.notifyPlugins(`afterTooltipDraw`,n)}},afterEvent(e,t){if(e.tooltip){let n=t.replay;e.tooltip.handleEvent(t.event,n,t.inChartArea)&&(t.changed=!0)}},defaults:{enabled:!0,external:null,position:`average`,backgroundColor:`rgba(0,0,0,0.8)`,titleColor:`#fff`,titleFont:{weight:`bold`},titleSpacing:2,titleMarginBottom:6,titleAlign:`left`,bodyColor:`#fff`,bodySpacing:2,bodyFont:{},bodyAlign:`left`,footerColor:`#fff`,footerSpacing:2,footerMarginTop:6,footerFont:{weight:`bold`},footerAlign:`left`,padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(e,t)=>t.bodyFont.size,boxWidth:(e,t)=>t.bodyFont.size,multiKeyBackground:`#fff`,displayColors:!0,boxPadding:0,borderColor:`rgba(0,0,0,0)`,borderWidth:0,animation:{duration:400,easing:`easeOutQuart`},animations:{numbers:{type:`number`,properties:[`x`,`y`,`width`,`height`,`caretX`,`caretY`]},opacity:{easing:`linear`,duration:200}},callbacks:k_},defaultRoutes:{bodyFont:`font`,footerFont:`font`,titleFont:`font`},descriptors:{_scriptable:e=>e!==`filter`&&e!==`itemSort`&&e!==`external`,_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:`animation`}},additionalOptionScopes:[`interaction`]},N_=(e,t,n,r)=>(typeof t==`string`?(n=e.push(t)-1,r.unshift({index:n,label:t})):isNaN(t)&&(n=null),n);function P_(e,t,n,r){let i=e.indexOf(t);return i===-1?N_(e,t,n,r):i===e.lastIndexOf(t)?i:n}var F_=(e,t)=>e===null?null:Jd(Math.round(e),0,t);function I_(e){let t=this.getLabels();return e>=0&&e<t.length?t[e]:e}var L_=class extends tg{static id=`category`;static defaults={ticks:{callback:I_}};constructor(e){super(e),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(e){let t=this._addedLabels;if(t.length){let e=this.getLabels();for(let{index:n,label:r}of t)e[n]===r&&e.splice(n,1);this._addedLabels=[]}super.init(e)}parse(e,t){if(W(e))return null;let n=this.getLabels();return t=isFinite(t)&&n[t]===e?t:P_(n,e,J(t,e),this._addedLabels),F_(t,n.length-1)}determineDataLimits(){let{minDefined:e,maxDefined:t}=this.getUserBounds(),{min:n,max:r}=this.getMinMax(!0);this.options.bounds===`ticks`&&(e||(n=0),t||(r=this.getLabels().length-1)),this.min=n,this.max=r}buildTicks(){let e=this.min,t=this.max,n=this.options.offset,r=[],i=this.getLabels();i=e===0&&t===i.length-1?i:i.slice(e,t+1),this._valueRange=Math.max(i.length-+!n,1),this._startValue=this.min-(n?.5:0);for(let n=e;n<=t;n++)r.push({value:n});return r}getLabelForValue(e){return I_.call(this,e)}configure(){super.configure(),this.isHorizontal()||(this._reversePixels=!this._reversePixels)}getPixelForValue(e){return typeof e!=`number`&&(e=this.parse(e)),e===null?NaN:this.getPixelForDecimal((e-this._startValue)/this._valueRange)}getPixelForTick(e){let t=this.ticks;return e<0||e>t.length-1?null:this.getPixelForValue(t[e].value)}getValueForPixel(e){return Math.round(this._startValue+this.getDecimalForPixel(e)*this._valueRange)}getBasePixel(){return this.bottom}};function R_(e,t){let n=[],{bounds:r,step:i,min:a,max:o,precision:s,count:c,maxTicks:l,maxDigits:u,includeBounds:d}=e,f=i||1,p=l-1,{min:m,max:h}=t,g=!W(a),_=!W(o),v=!W(c),y=(h-m)/(u+1),b=Fd((h-m)/p/f)*f,x,S,C,w;if(b<1e-14&&!g&&!_)return[{value:m},{value:h}];w=Math.ceil(h/b)-Math.floor(m/b),w>p&&(b=Fd(w*b/p/f)*f),W(s)||(x=10**s,b=Math.ceil(b*x)/x),r===`ticks`?(S=Math.floor(m/b)*b,C=Math.ceil(h/b)*b):(S=m,C=h),g&&_&&i&&zd((o-a)/i,b/1e3)?(w=Math.round(Math.min((o-a)/b,l)),b=(o-a)/w,S=a,C=o):v?(S=g?a:S,C=_?o:C,w=c-1,b=(C-S)/w):(w=(C-S)/b,w=Pd(w,Math.round(w),b/1e3)?Math.round(w):Math.ceil(w));let T=Math.max(Ud(b),Ud(S));x=10**(W(s)?T:s),S=Math.round(S*x)/x,C=Math.round(C*x)/x;let E=0;for(g&&(d&&S!==a?(n.push({value:a}),S<a&&E++,Pd(Math.round((S+E*b)*x)/x,a,z_(a,y,e))&&E++):S<a&&E++);E<w;++E){let e=Math.round((S+E*b)*x)/x;if(_&&e>o)break;n.push({value:e})}return _&&d&&C!==o?n.length&&Pd(n[n.length-1].value,o,z_(o,y,e))?n[n.length-1].value=o:n.push({value:o}):(!_||C===o)&&n.push({value:C}),n}function z_(e,t,{horizontal:n,minRotation:r}){let i=Vd(r),a=(n?Math.sin(i):Math.cos(i))||.001,o=.75*t*(``+e).length;return Math.min(t/a,o)}var B_=class extends tg{constructor(e){super(e),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(e,t){return W(e)||(typeof e==`number`||e instanceof Number)&&!isFinite(+e)?null:+e}handleTickRangeOptions(){let{beginAtZero:e}=this.options,{minDefined:t,maxDefined:n}=this.getUserBounds(),{min:r,max:i}=this,a=e=>r=t?r:e,o=e=>i=n?i:e;if(e){let e=Nd(r),t=Nd(i);e<0&&t<0?o(0):e>0&&t>0&&a(0)}if(r===i){let t=i===0?1:Math.abs(i*.05);o(i+t),e||a(r-t)}this.min=r,this.max=i}getTickLimit(){let{maxTicksLimit:e,stepSize:t}=this.options.ticks,n;return t?(n=Math.ceil(this.max/t)-Math.floor(this.min/t)+1,n>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${t} would result generating up to ${n} ticks. Limiting to 1000.`),n=1e3)):(n=this.computeTickLimit(),e||=11),e&&(n=Math.min(e,n)),n}computeTickLimit(){return 1/0}buildTicks(){let e=this.options,t=e.ticks,n=this.getTickLimit();n=Math.max(2,n);let r=R_({maxTicks:n,bounds:e.bounds,min:e.min,max:e.max,precision:t.precision,step:t.stepSize,count:t.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:t.minRotation||0,includeBounds:t.includeBounds!==!1},this._range||this);return e.bounds===`ticks`&&Bd(r,this,`value`),e.reverse?(r.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),r}configure(){let e=this.ticks,t=this.min,n=this.max;if(super.configure(),this.options.offset&&e.length){let r=(n-t)/Math.max(e.length-1,1)/2;t-=r,n+=r}this._startValue=t,this._endValue=n,this._valueRange=n-t}getLabelForValue(e){return Tf(e,this.chart.options.locale,this.options.ticks.format)}},V_=class extends B_{static id=`linear`;static defaults={ticks:{callback:Of.formatters.numeric}};determineDataLimits(){let{min:e,max:t}=this.getMinMax(!0);this.min=q(e)?e:0,this.max=q(t)?t:1,this.handleTickRangeOptions()}computeTickLimit(){let e=this.isHorizontal(),t=e?this.width:this.height,n=Vd(this.options.ticks.minRotation),r=(e?Math.sin(n):Math.cos(n))||.001,i=this._resolveTickFontOptions(0);return Math.ceil(t/Math.min(40,i.lineHeight/r))}getPixelForValue(e){return e===null?NaN:this.getPixelForDecimal((e-this._startValue)/this._valueRange)}getValueForPixel(e){return this._startValue+this.getDecimalForPixel(e)*this._valueRange}},H_=e=>Math.floor(Md(e)),U_=(e,t)=>10**(H_(e)+t);function W_(e){return e/10**H_(e)==1}function G_(e,t,n){let r=10**n,i=Math.floor(e/r);return Math.ceil(t/r)-i}function K_(e,t){let n=H_(t-e);for(;G_(e,t,n)>10;)n++;for(;G_(e,t,n)<10;)n--;return Math.min(n,H_(e))}function q_(e,{min:t,max:n}){t=cd(e.min,t);let r=[],i=H_(t),a=K_(t,n),o=a<0?10**Math.abs(a):1,s=10**a,c=i>a?10**i:0,l=Math.round((t-c)*o)/o,u=Math.floor((t-c)/s/10)*s*10,d=Math.floor((l-u)/10**a),f=cd(e.min,Math.round((c+u+d*10**a)*o)/o);for(;f<n;)r.push({value:f,major:W_(f),significand:d}),d>=10?d=d<15?15:20:d++,d>=20&&(a++,d=2,o=a>=0?1:o),f=Math.round((c+u+d*10**a)*o)/o;let p=cd(e.max,f);return r.push({value:p,major:W_(p),significand:d}),r}(class extends tg{static id=`logarithmic`;static defaults={ticks:{callback:Of.formatters.logarithmic,major:{enabled:!0}}};constructor(e){super(e),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(e,t){let n=B_.prototype.parse.apply(this,[e,t]);if(n===0){this._zero=!0;return}return q(n)&&n>0?n:null}determineDataLimits(){let{min:e,max:t}=this.getMinMax(!0);this.min=q(e)?Math.max(0,e):null,this.max=q(t)?Math.max(0,t):null,this.options.beginAtZero&&(this._zero=!0),this._zero&&this.min!==this._suggestedMin&&!q(this._userMin)&&(this.min=e===U_(this.min,0)?U_(this.min,-1):U_(this.min,0)),this.handleTickRangeOptions()}handleTickRangeOptions(){let{minDefined:e,maxDefined:t}=this.getUserBounds(),n=this.min,r=this.max,i=t=>n=e?n:t,a=e=>r=t?r:e;n===r&&(n<=0?(i(1),a(10)):(i(U_(n,-1)),a(U_(r,1)))),n<=0&&i(U_(r,-1)),r<=0&&a(U_(n,1)),this.min=n,this.max=r}buildTicks(){let e=this.options,t=q_({min:this._userMin,max:this._userMax},this);return e.bounds===`ticks`&&Bd(t,this,`value`),e.reverse?(t.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),t}getLabelForValue(e){return e===void 0?`0`:Tf(e,this.chart.options.locale,this.options.ticks.format)}configure(){let e=this.min;super.configure(),this._startValue=Md(e),this._valueRange=Md(this.max)-Md(e)}getPixelForValue(e){return(e===void 0||e===0)&&(e=this.min),e===null||isNaN(e)?NaN:this.getPixelForDecimal(e===this.min?0:(Md(e)-this._startValue)/this._valueRange)}getValueForPixel(e){let t=this.getDecimalForPixel(e);return 10**(this._startValue+t*this._valueRange)}});function J_(e){let t=e.ticks;if(t.display&&e.display){let e=np(t.backdropPadding);return J(t.font&&t.font.size,Q.font.size)+e.height}return 0}function Y_(e,t,n){return n=G(n)?n:[n],{w:If(e,t.string,n),h:n.length*t.lineHeight}}function X_(e,t,n,r,i){return e===r||e===i?{start:t-n/2,end:t+n/2}:e<r||e>i?{start:t-n,end:t}:{start:t,end:t+n}}function Z_(e){let t={l:e.left+e._padding.left,r:e.right-e._padding.right,t:e.top+e._padding.top,b:e.bottom-e._padding.bottom},n=Object.assign({},t),r=[],i=[],a=e._pointLabels.length,o=e.options.pointLabels,s=o.centerPointLabels?Z/a:0;for(let c=0;c<a;c++){let a=o.setContext(e.getPointLabelContext(c));i[c]=a.padding;let l=e.getPointPosition(c,e.drawingArea+i[c],s),u=$(a.font),d=Y_(e.ctx,u,e._pointLabels[c]);r[c]=d;let f=Kd(e.getIndexAngle(c)+s),p=Math.round(Hd(f));Q_(n,t,f,X_(p,l.x,d.w,0,180),X_(p,l.y,d.h,90,270))}e.setCenterPoint(t.l-n.l,n.r-t.r,t.t-n.t,n.b-t.b),e._pointLabelItems=tv(e,r,i)}function Q_(e,t,n,r,i){let a=Math.abs(Math.sin(n)),o=Math.abs(Math.cos(n)),s=0,c=0;r.start<t.l?(s=(t.l-r.start)/a,e.l=Math.min(e.l,t.l-s)):r.end>t.r&&(s=(r.end-t.r)/a,e.r=Math.max(e.r,t.r+s)),i.start<t.t?(c=(t.t-i.start)/o,e.t=Math.min(e.t,t.t-c)):i.end>t.b&&(c=(i.end-t.b)/o,e.b=Math.max(e.b,t.b+c))}function $_(e,t,n){let r=e.drawingArea,{extra:i,additionalAngle:a,padding:o,size:s}=n,c=e.getPointPosition(t,r+i+o,a),l=Math.round(Hd(Kd(c.angle+kd))),u=iv(c.y,s.h,l),d=nv(l),f=rv(c.x,s.w,d);return{visible:!0,x:c.x,y:u,textAlign:d,left:f,top:u,right:f+s.w,bottom:u+s.h}}function ev(e,t){if(!t)return!0;let{left:n,top:r,right:i,bottom:a}=e;return!(Vf({x:n,y:r},t)||Vf({x:n,y:a},t)||Vf({x:i,y:r},t)||Vf({x:i,y:a},t))}function tv(e,t,n){let r=[],i=e._pointLabels.length,a=e.options,{centerPointLabels:o,display:s}=a.pointLabels,c={extra:J_(a)/2,additionalAngle:o?Z/i:0},l;for(let a=0;a<i;a++){c.padding=n[a],c.size=t[a];let i=$_(e,a,c);r.push(i),s===`auto`&&(i.visible=ev(i,l),i.visible&&(l=i))}return r}function nv(e){return e===0||e===180?`center`:e<180?`left`:`right`}function rv(e,t,n){return n===`right`?e-=t:n===`center`&&(e-=t/2),e}function iv(e,t,n){return n===90||n===270?e-=t/2:(n>270||n<90)&&(e-=t),e}function av(e,t,n){let{left:r,top:i,right:a,bottom:o}=n,{backdropColor:s}=t;if(!W(s)){let n=tp(t.borderRadius),c=np(t.backdropPadding);e.fillStyle=s;let l=r-c.left,u=i-c.top,d=a-r+c.width,f=o-i+c.height;Object.values(n).some(e=>e!==0)?(e.beginPath(),Jf(e,{x:l,y:u,w:d,h:f,radius:n}),e.fill()):e.fillRect(l,u,d,f)}}function ov(e,t){let{ctx:n,options:{pointLabels:r}}=e;for(let i=t-1;i>=0;i--){let t=e._pointLabelItems[i];if(!t.visible)continue;let a=r.setContext(e.getPointLabelContext(i));av(n,a,t);let o=$(a.font),{x:s,y:c,textAlign:l}=t;qf(n,e._pointLabels[i],s,c+o.lineHeight/2,o,{color:a.color,textAlign:l,textBaseline:`middle`})}}function sv(e,t,n,r){let{ctx:i}=e;if(n)i.arc(e.xCenter,e.yCenter,t,0,Ed);else{let n=e.getPointPosition(0,t);i.moveTo(n.x,n.y);for(let a=1;a<r;a++)n=e.getPointPosition(a,t),i.lineTo(n.x,n.y)}}function cv(e,t,n,r,i){let a=e.ctx,o=t.circular,{color:s,lineWidth:c}=t;!o&&!r||!s||!c||n<0||(a.save(),a.strokeStyle=s,a.lineWidth=c,a.setLineDash(i.dash||[]),a.lineDashOffset=i.dashOffset,a.beginPath(),sv(e,n,o,r),a.closePath(),a.stroke(),a.restore())}function lv(e,t,n){return ap(e,{label:n,index:t,type:`pointLabel`})}(class extends B_{static id=`radialLinear`;static defaults={display:!0,animate:!0,position:`chartArea`,angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:Of.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback(e){return e},padding:5,centerPointLabels:!1}};static defaultRoutes={"angleLines.color":`borderColor`,"pointLabels.color":`color`,"ticks.color":`color`};static descriptors={angleLines:{_fallback:`grid`}};constructor(e){super(e),this.xCenter=void 0,this.yCenter=void 0,this.drawingArea=void 0,this._pointLabels=[],this._pointLabelItems=[]}setDimensions(){let e=this._padding=np(J_(this.options)/2),t=this.width=this.maxWidth-e.width,n=this.height=this.maxHeight-e.height;this.xCenter=Math.floor(this.left+t/2+e.left),this.yCenter=Math.floor(this.top+n/2+e.top),this.drawingArea=Math.floor(Math.min(t,n)/2)}determineDataLimits(){let{min:e,max:t}=this.getMinMax(!1);this.min=q(e)&&!isNaN(e)?e:0,this.max=q(t)&&!isNaN(t)?t:0,this.handleTickRangeOptions()}computeTickLimit(){return Math.ceil(this.drawingArea/J_(this.options))}generateTickLabels(e){B_.prototype.generateTickLabels.call(this,e),this._pointLabels=this.getLabels().map((e,t)=>{let n=Y(this.options.pointLabels.callback,[e,t],this);return n||n===0?n:``}).filter((e,t)=>this.chart.getDataVisibility(t))}fit(){let e=this.options;e.display&&e.pointLabels.display?Z_(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(e,t,n,r){this.xCenter+=Math.floor((e-t)/2),this.yCenter+=Math.floor((n-r)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(e,t,n,r))}getIndexAngle(e){let t=Ed/(this._pointLabels.length||1),n=this.options.startAngle||0;return Kd(e*t+Vd(n))}getDistanceFromCenterForValue(e){if(W(e))return NaN;let t=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-e)*t:(e-this.min)*t}getValueForDistanceFromCenter(e){if(W(e))return NaN;let t=e/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-t:this.min+t}getPointLabelContext(e){let t=this._pointLabels||[];if(e>=0&&e<t.length){let n=t[e];return lv(this.getContext(),e,n)}}getPointPosition(e,t,n=0){let r=this.getIndexAngle(e)-kd+n;return{x:Math.cos(r)*t+this.xCenter,y:Math.sin(r)*t+this.yCenter,angle:r}}getPointPositionForValue(e,t){return this.getPointPosition(e,this.getDistanceFromCenterForValue(t))}getBasePosition(e){return this.getPointPositionForValue(e||0,this.getBaseValue())}getPointLabelPosition(e){let{left:t,top:n,right:r,bottom:i}=this._pointLabelItems[e];return{left:t,top:n,right:r,bottom:i}}drawBackground(){let{backgroundColor:e,grid:{circular:t}}=this.options;if(e){let n=this.ctx;n.save(),n.beginPath(),sv(this,this.getDistanceFromCenterForValue(this._endValue),t,this._pointLabels.length),n.closePath(),n.fillStyle=e,n.fill(),n.restore()}}drawGrid(){let e=this.ctx,t=this.options,{angleLines:n,grid:r,border:i}=t,a=this._pointLabels.length,o,s,c;if(t.pointLabels.display&&ov(this,a),r.display&&this.ticks.forEach((e,t)=>{if(t!==0||t===0&&this.min<0){s=this.getDistanceFromCenterForValue(e.value);let n=this.getContext(t),o=r.setContext(n),c=i.setContext(n);cv(this,o,s,a,c)}}),n.display){for(e.save(),o=a-1;o>=0;o--){let r=n.setContext(this.getPointLabelContext(o)),{color:i,lineWidth:a}=r;!a||!i||(e.lineWidth=a,e.strokeStyle=i,e.setLineDash(r.borderDash),e.lineDashOffset=r.borderDashOffset,s=this.getDistanceFromCenterForValue(t.reverse?this.min:this.max),c=this.getPointPosition(o,s),e.beginPath(),e.moveTo(this.xCenter,this.yCenter),e.lineTo(c.x,c.y),e.stroke())}e.restore()}}drawBorder(){}drawLabels(){let e=this.ctx,t=this.options,n=t.ticks;if(!n.display)return;let r=this.getIndexAngle(0),i,a;e.save(),e.translate(this.xCenter,this.yCenter),e.rotate(r),e.textAlign=`center`,e.textBaseline=`middle`,this.ticks.forEach((r,o)=>{if(o===0&&this.min>=0&&!t.reverse)return;let s=n.setContext(this.getContext(o)),c=$(s.font);if(i=this.getDistanceFromCenterForValue(this.ticks[o].value),s.showLabelBackdrop){e.font=c.string,a=e.measureText(r.label).width,e.fillStyle=s.backdropColor;let t=np(s.backdropPadding);e.fillRect(-a/2-t.left,-i-c.size/2-t.top,a+t.width,c.size+t.height)}qf(e,r.label,0,-i,c,{color:s.color,strokeColor:s.textStrokeColor,strokeWidth:s.textStrokeWidth})}),e.restore()}drawTitle(){}});var uv={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},dv=Object.keys(uv);function fv(e,t){return e-t}function pv(e,t){if(W(t))return null;let n=e._adapter,{parser:r,round:i,isoWeekday:a}=e._parseOpts,o=t;return typeof r==`function`&&(o=r(o)),q(o)||(o=typeof r==`string`?n.parse(o,r):n.parse(o)),o===null?null:(i&&(o=i===`week`&&(Rd(a)||a===!0)?n.startOf(o,`isoWeek`,a):n.startOf(o,i)),+o)}function mv(e,t,n,r){let i=dv.length;for(let a=dv.indexOf(e);a<i-1;++a){let e=uv[dv[a]],i=e.steps?e.steps:2**53-1;if(e.common&&Math.ceil((n-t)/(i*e.size))<=r)return dv[a]}return dv[i-1]}function hv(e,t,n,r,i){for(let a=dv.length-1;a>=dv.indexOf(n);a--){let n=dv[a];if(uv[n].common&&e._adapter.diff(i,r,n)>=t-1)return n}return dv[n?dv.indexOf(n):0]}function gv(e){for(let t=dv.indexOf(e)+1,n=dv.length;t<n;++t)if(uv[dv[t]].common)return dv[t]}function _v(e,t,n){if(!n)e[t]=!0;else if(n.length){let{lo:r,hi:i}=Zd(n,t),a=n[r]>=t?n[r]:n[i];e[a]=!0}}function vv(e,t,n,r){let i=e._adapter,a=+i.startOf(t[0].value,r),o=t[t.length-1].value,s,c;for(s=a;s<=o;s=+i.add(s,1,r))c=n[s],c>=0&&(t[c].major=!0);return t}function yv(e,t,n){let r=[],i={},a=t.length,o,s;for(o=0;o<a;++o)s=t[o],i[s]=o,r.push({value:s,major:!1});return a===0||!n?r:vv(e,r,i,n)}var bv=class extends tg{static id=`time`;static defaults={bounds:`data`,adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:`millisecond`,displayFormats:{}},ticks:{source:`auto`,callback:!1,major:{enabled:!1}}};constructor(e){super(e),this._cache={data:[],labels:[],all:[]},this._unit=`day`,this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(e,t={}){let n=e.time||={},r=this._adapter=new zm._date(e.adapters.date);r.init(t),hd(n.displayFormats,r.formats()),this._parseOpts={parser:n.parser,round:n.round,isoWeekday:n.isoWeekday},super.init(e),this._normalized=t.normalized}parse(e,t){return e===void 0?null:pv(this,e)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){let e=this.options,t=this._adapter,n=e.time.unit||`day`,{min:r,max:i,minDefined:a,maxDefined:o}=this.getUserBounds();function s(e){!a&&!isNaN(e.min)&&(r=Math.min(r,e.min)),!o&&!isNaN(e.max)&&(i=Math.max(i,e.max))}(!a||!o)&&(s(this._getLabelBounds()),(e.bounds!==`ticks`||e.ticks.source!==`labels`)&&s(this.getMinMax(!1))),r=q(r)&&!isNaN(r)?r:+t.startOf(Date.now(),n),i=q(i)&&!isNaN(i)?i:+t.endOf(Date.now(),n)+1,this.min=Math.min(r,i-1),this.max=Math.max(r+1,i)}_getLabelBounds(){let e=this.getLabelTimestamps(),t=1/0,n=-1/0;return e.length&&(t=e[0],n=e[e.length-1]),{min:t,max:n}}buildTicks(){let e=this.options,t=e.time,n=e.ticks,r=n.source===`labels`?this.getLabelTimestamps():this._generate();e.bounds===`ticks`&&r.length&&(this.min=this._userMin||r[0],this.max=this._userMax||r[r.length-1]);let i=this.min,a=this.max,o=ef(r,i,a);return this._unit=t.unit||(n.autoSkip?mv(t.minUnit,this.min,this.max,this._getLabelCapacity(i)):hv(this,o.length,t.minUnit,this.min,this.max)),this._majorUnit=!n.major.enabled||this._unit===`year`?void 0:gv(this._unit),this.initOffsets(r),e.reverse&&o.reverse(),yv(this,o,this._majorUnit)}afterAutoSkip(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map(e=>+e.value))}initOffsets(e=[]){let t=0,n=0,r,i;this.options.offset&&e.length&&(r=this.getDecimalForValue(e[0]),t=e.length===1?1-r:(this.getDecimalForValue(e[1])-r)/2,i=this.getDecimalForValue(e[e.length-1]),n=e.length===1?i:(i-this.getDecimalForValue(e[e.length-2]))/2);let a=e.length<3?.5:.25;t=Jd(t,0,a),n=Jd(n,0,a),this._offsets={start:t,end:n,factor:1/(t+1+n)}}_generate(){let e=this._adapter,t=this.min,n=this.max,r=this.options,i=r.time,a=i.unit||mv(i.minUnit,t,n,this._getLabelCapacity(t)),o=J(r.ticks.stepSize,1),s=a===`week`?i.isoWeekday:!1,c=Rd(s)||s===!0,l={},u=t,d,f;if(c&&(u=+e.startOf(u,`isoWeek`,s)),u=+e.startOf(u,c?`day`:a),e.diff(n,t,a)>1e5*o)throw Error(t+` and `+n+` are too far apart with stepSize of `+o+` `+a);let p=r.ticks.source===`data`&&this.getDataTimestamps();for(d=u,f=0;d<n;d=+e.add(d,o,a),f++)_v(l,d,p);return(d===n||r.bounds===`ticks`||f===1)&&_v(l,d,p),Object.keys(l).sort(fv).map(e=>+e)}getLabelForValue(e){let t=this._adapter,n=this.options.time;return n.tooltipFormat?t.format(e,n.tooltipFormat):t.format(e,n.displayFormats.datetime)}format(e,t){let n=this.options.time.displayFormats,r=this._unit,i=t||n[r];return this._adapter.format(e,i)}_tickFormatFunction(e,t,n,r){let i=this.options,a=i.ticks.callback;if(a)return Y(a,[e,t,n],this);let o=i.time.displayFormats,s=this._unit,c=this._majorUnit,l=s&&o[s],u=c&&o[c],d=n[t],f=c&&u&&d&&d.major;return this._adapter.format(e,r||(f?u:l))}generateTickLabels(e){let t,n,r;for(t=0,n=e.length;t<n;++t)r=e[t],r.label=this._tickFormatFunction(r.value,t,e)}getDecimalForValue(e){return e===null?NaN:(e-this.min)/(this.max-this.min)}getPixelForValue(e){let t=this._offsets,n=this.getDecimalForValue(e);return this.getPixelForDecimal((t.start+n)*t.factor)}getValueForPixel(e){let t=this._offsets,n=this.getDecimalForPixel(e)/t.factor-t.end;return this.min+n*(this.max-this.min)}_getLabelSize(e){let t=this.options.ticks,n=this.ctx.measureText(e).width,r=Vd(this.isHorizontal()?t.maxRotation:t.minRotation),i=Math.cos(r),a=Math.sin(r),o=this._resolveTickFontOptions(0).size;return{w:n*i+o*a,h:n*a+o*i}}_getLabelCapacity(e){let t=this.options.time,n=t.displayFormats,r=n[t.unit]||n.millisecond,i=this._tickFormatFunction(e,0,yv(this,[e],this._majorUnit),r),a=this._getLabelSize(i),o=Math.floor(this.isHorizontal()?this.width/a.w:this.height/a.h)-1;return o>0?o:1}getDataTimestamps(){let e=this._cache.data||[],t,n;if(e.length)return e;let r=this.getMatchingVisibleMetas();if(this._normalized&&r.length)return this._cache.data=r[0].controller.getAllParsedValues(this);for(t=0,n=r.length;t<n;++t)e=e.concat(r[t].controller.getAllParsedValues(this));return this._cache.data=this.normalize(e)}getLabelTimestamps(){let e=this._cache.labels||[],t,n;if(e.length)return e;let r=this.getLabels();for(t=0,n=r.length;t<n;++t)e.push(pv(this,r[t]));return this._cache.labels=this._normalized?e:this.normalize(e)}normalize(e){return af(e.sort(fv))}};function xv(e,t,n){let r=0,i=e.length-1,a,o,s,c;n?(t>=e[r].pos&&t<=e[i].pos&&({lo:r,hi:i}=Qd(e,`pos`,t)),{pos:a,time:s}=e[r],{pos:o,time:c}=e[i]):(t>=e[r].time&&t<=e[i].time&&({lo:r,hi:i}=Qd(e,`time`,t)),{time:a,pos:s}=e[r],{time:o,pos:c}=e[i]);let l=o-a;return l?s+(c-s)*(t-a)/l:s}(class extends bv{static id=`timeseries`;static defaults=bv.defaults;constructor(e){super(e),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){let e=this._getTimestampsForTable(),t=this._table=this.buildLookupTable(e);this._minPos=xv(t,this.min),this._tableRange=xv(t,this.max)-this._minPos,super.initOffsets(e)}buildLookupTable(e){let{min:t,max:n}=this,r=[],i=[],a,o,s,c,l;for(a=0,o=e.length;a<o;++a)c=e[a],c>=t&&c<=n&&r.push(c);if(r.length<2)return[{time:t,pos:0},{time:n,pos:1}];for(a=0,o=r.length;a<o;++a)l=r[a+1],s=r[a-1],c=r[a],Math.round((l+s)/2)!==c&&i.push({time:c,pos:a/(o-1)});return i}_generate(){let e=this.min,t=this.max,n=super.getDataTimestamps();return(!n.includes(e)||!n.length)&&n.splice(0,0,e),(!n.includes(t)||n.length===1)&&n.push(t),n.sort((e,t)=>e-t)}_getTimestampsForTable(){let e=this._cache.all||[];if(e.length)return e;let t=this.getDataTimestamps(),n=this.getLabelTimestamps();return e=t.length&&n.length?this.normalize(t.concat(n)):t.length?t:n,e=this._cache.all=e,e}getDecimalForValue(e){return(xv(this._table,e)-this._minPos)/this._tableRange}getValueForPixel(e){let t=this._offsets,n=this.getDecimalForPixel(e)/t.factor-t.end;return xv(this._table,n*this._tableRange+this._minPos,!0)}});var Sv={data:{type:Object,required:!0},options:{type:Object,default:()=>({})},plugins:{type:Array,default:()=>[]},datasetIdKey:{type:String,default:`label`},updateMode:{type:String,default:void 0}},Cv={ariaLabel:{type:String},ariaDescribedby:{type:String}},wv={type:{type:String,required:!0},destroyDelay:{type:Number,default:0},...Sv,...Cv},Tv=(e,t)=>Object.assign(e,t);function Ev(e){return en(e)?P(e):e}function Dv(e){return en(arguments.length>1&&arguments[1]!==void 0?arguments[1]:e)?new Proxy(e,{}):e}function Ov(e,t){let n=e.options;n&&t&&Object.assign(n,t)}function kv(e,t){e.labels=t}function Av(e,t,n){let r=[];e.datasets=t.map(t=>{let i=e.datasets.find(e=>e[n]===t[n]);return!i||!t.data||r.includes(i)?{...t}:(r.push(i),Object.assign(i,t),i)})}function jv(e,t){let n={labels:[],datasets:[]};return kv(n,e.labels),Av(n,e.datasets,t),n}var Mv=ni({props:wv,setup(e,t){let{expose:n,slots:r}=t,i=an(null),a=on(null);n({chart:a});let o=()=>{if(!i.value)return;let{type:t,data:n,options:r,plugins:o,datasetIdKey:s}=e,c=Dv(jv(n,s),n);a.value=new Ug(i.value,{type:t,data:c,options:{...r},plugins:o})},s=()=>{let t=P(a.value);t&&(e.destroyDelay>0?setTimeout(()=>{t.destroy(),a.value=null},e.destroyDelay):(t.destroy(),a.value=null))},c=t=>{t.update(e.updateMode)};return Ui(o),qi(s),Cr([()=>e.options,()=>e.data],(t,n)=>{let[r,i]=t,[o,s]=n,l=P(a.value);if(!l)return;let u=!1;if(r){let e=Ev(r),t=Ev(o);e&&e!==t&&(Ov(l,e),u=!0)}if(i){let t=Ev(i.labels),n=Ev(s.labels),r=Ev(i.datasets),a=Ev(s.datasets);t!==n&&(kv(l.config.data,t),u=!0),r&&r!==a&&(Av(l.config.data,r,e.datasetIdKey),u=!0)}u&&Yn(()=>{c(l)})},{deep:!0}),()=>Ys(`canvas`,{role:`img`,"aria-label":e.ariaLabel,"aria-describedby":e.ariaDescribedby,ref:i},[Ys(`p`,{},[r.default?r.default():``])])}});function Nv(e,t){return Ug.register(t),ni({props:Sv,setup(t,n){let{expose:r}=n,i=on(null),a=e=>{i.value=e?.chart};return r({chart:i}),()=>Ys(Mv,Tv({ref:a},{type:e,...t}))}})}var Pv=Nv(`bar`,Lm);export{ca as $,sa as A,ne as At,ws as B,ge as Bt,$o as C,yn as Ct,cs as D,un as Dt,ms as E,ln as Et,U as F,_ as Ft,Wi as G,Pi as H,de as Ht,gs as I,b as It,qi as J,Fi as K,Ys as L,T as Lt,vs as M,A as Mt,V as N,f as Nt,bs as O,i as Ot,ni as P,h as Pt,oa as Q,gr as R,x as Rt,Rr as S,P as St,Js as T,dn as Tt,Hi as U,Te as Ut,Yn as V,_e as Vt,Ki as W,re as Wt,ns as X,Gi as Y,hr as Z,Ic as _,Kt as _t,V_ as a,Ca as at,z as b,qt as bt,M_ as c,br as ct,El as d,hn as dt,ea as et,su as f,Ae as ft,Ll as g,Me as gt,Bl as h,tn as ht,Ug as i,wa as it,ys as j,d as jt,ss as k,k as kt,pu as l,fr as lt,Rl as m,F as mt,e_ as n,na as nt,l_ as o,ec as ot,au as p,je as pt,Ui as q,L_ as r,ua as rt,f_ as s,Cr as st,Pv as t,ra as tt,vc as u,pr as ut,$l as v,Jt as vt,_s as w,gn as wt,R as x,on as xt,Zl as y,an as yt,ls as z,v as zt};
5
+ `):e}function g_(e,t){let{element:n,datasetIndex:r,index:i}=t,a=e.getDatasetMeta(r).controller,{label:o,value:s}=a.getLabelAndValue(i);return{chart:e,label:o,parsed:a.getParsed(i),raw:e.data.datasets[r].data[i],formattedValue:s,dataset:a.getDataset(),dataIndex:i,datasetIndex:r,element:n}}function __(e,t){let n=e.chart.ctx,{body:r,footer:i,title:a}=e,{boxWidth:o,boxHeight:s}=t,c=$(t.bodyFont),l=$(t.titleFont),u=$(t.footerFont),d=a.length,f=i.length,p=r.length,m=np(t.padding),h=m.height,g=0,_=r.reduce((e,t)=>e+t.before.length+t.lines.length+t.after.length,0);if(_+=e.beforeBody.length+e.afterBody.length,d&&(h+=d*l.lineHeight+(d-1)*t.titleSpacing+t.titleMarginBottom),_){let e=t.displayColors?Math.max(s,c.lineHeight):c.lineHeight;h+=p*e+(_-p)*c.lineHeight+(_-1)*t.bodySpacing}f&&(h+=t.footerMarginTop+f*u.lineHeight+(f-1)*t.footerSpacing);let v=0,y=function(e){g=Math.max(g,n.measureText(e).width+v)};return n.save(),n.font=l.string,X(e.title,y),n.font=c.string,X(e.beforeBody.concat(e.afterBody),y),v=t.displayColors?o+2+t.boxPadding:0,X(r,e=>{X(e.before,y),X(e.lines,y),X(e.after,y)}),v=0,n.font=u.string,X(e.footer,y),n.restore(),g+=m.width,{width:g,height:h}}function v_(e,t){let{y:n,height:r}=t;return n<r/2?`top`:n>e.height-r/2?`bottom`:`center`}function y_(e,t,n,r){let{x:i,width:a}=r,o=n.caretSize+n.caretPadding;if(e===`left`&&i+a+o>t.width||e===`right`&&i-a-o<0)return!0}function b_(e,t,n,r){let{x:i,width:a}=n,{width:o,chartArea:{left:s,right:c}}=e,l=`center`;return r===`center`?l=i<=(s+c)/2?`left`:`right`:i<=a/2?l=`left`:i>=o-a/2&&(l=`right`),y_(l,e,t,n)&&(l=`center`),l}function x_(e,t,n){let r=n.yAlign||t.yAlign||v_(e,n);return{xAlign:n.xAlign||t.xAlign||b_(e,t,n,r),yAlign:r}}function S_(e,t){let{x:n,width:r}=e;return t===`right`?n-=r:t===`center`&&(n-=r/2),n}function C_(e,t,n){let{y:r,height:i}=e;return t===`top`?r+=n:t===`bottom`?r-=i+n:r-=i/2,r}function w_(e,t,n,r){let{caretSize:i,caretPadding:a,cornerRadius:o}=e,{xAlign:s,yAlign:c}=n,l=i+a,{topLeft:u,topRight:d,bottomLeft:f,bottomRight:p}=tp(o),m=S_(t,s),h=C_(t,c,l);return c===`center`?s===`left`?m+=l:s===`right`&&(m-=l):s===`left`?m-=Math.max(u,f)+i:s===`right`&&(m+=Math.max(d,p)+i),{x:Jd(m,0,r.width-t.width),y:Jd(h,0,r.height-t.height)}}function T_(e,t,n){let r=np(n.padding);return t===`center`?e.x+e.width/2:t===`right`?e.x+e.width-r.right:e.x+r.left}function E_(e){return m_([],h_(e))}function D_(e,t,n){return ap(e,{tooltip:t,tooltipItems:n,type:`tooltip`})}function O_(e,t){let n=t&&t.dataset&&t.dataset.tooltip&&t.dataset.tooltip.callbacks;return n?e.override(n):e}var k_={beforeTitle:od,title(e){if(e.length>0){let t=e[0],n=t.chart.data.labels,r=n?n.length:0;if(this&&this.options&&this.options.mode===`dataset`)return t.dataset.label||``;if(t.label)return t.label;if(r>0&&t.dataIndex<r)return n[t.dataIndex]}return``},afterTitle:od,beforeBody:od,beforeLabel:od,label(e){if(this&&this.options&&this.options.mode===`dataset`)return e.label+`: `+e.formattedValue||e.formattedValue;let t=e.dataset.label||``;t&&(t+=`: `);let n=e.formattedValue;return W(n)||(t+=n),t},labelColor(e){let t=e.chart.getDatasetMeta(e.datasetIndex).controller.getStyle(e.dataIndex);return{borderColor:t.borderColor,backgroundColor:t.backgroundColor,borderWidth:t.borderWidth,borderDash:t.borderDash,borderDashOffset:t.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(e){let t=e.chart.getDatasetMeta(e.datasetIndex).controller.getStyle(e.dataIndex);return{pointStyle:t.pointStyle,rotation:t.rotation}},afterLabel:od,afterBody:od,beforeFooter:od,footer:od,afterFooter:od};function A_(e,t,n,r){let i=e[t].call(n,r);return i===void 0?k_[t].call(n,r):i}var j_=class extends Fh{static positioners=p_;constructor(e){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=e.chart,this.options=e.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(e){this.options=e,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){let e=this._cachedAnimations;if(e)return e;let t=this.chart,n=this.options.setContext(this.getContext()),r=n.enabled&&t.options.animation&&n.animations,i=new $p(this.chart,r);return r._cacheable&&(this._cachedAnimations=Object.freeze(i)),i}getContext(){return this.$context||=D_(this.chart.getContext(),this,this._tooltipItems)}getTitle(e,t){let{callbacks:n}=t,r=A_(n,`beforeTitle`,this,e),i=A_(n,`title`,this,e),a=A_(n,`afterTitle`,this,e),o=[];return o=m_(o,h_(r)),o=m_(o,h_(i)),o=m_(o,h_(a)),o}getBeforeBody(e,t){return E_(A_(t.callbacks,`beforeBody`,this,e))}getBody(e,t){let{callbacks:n}=t,r=[];return X(e,e=>{let t={before:[],lines:[],after:[]},i=O_(n,e);m_(t.before,h_(A_(i,`beforeLabel`,this,e))),m_(t.lines,A_(i,`label`,this,e)),m_(t.after,h_(A_(i,`afterLabel`,this,e))),r.push(t)}),r}getAfterBody(e,t){return E_(A_(t.callbacks,`afterBody`,this,e))}getFooter(e,t){let{callbacks:n}=t,r=A_(n,`beforeFooter`,this,e),i=A_(n,`footer`,this,e),a=A_(n,`afterFooter`,this,e),o=[];return o=m_(o,h_(r)),o=m_(o,h_(i)),o=m_(o,h_(a)),o}_createItems(e){let t=this._active,n=this.chart.data,r=[],i=[],a=[],o=[],s,c;for(s=0,c=t.length;s<c;++s)o.push(g_(this.chart,t[s]));return e.filter&&(o=o.filter((t,r,i)=>e.filter(t,r,i,n))),e.itemSort&&(o=o.sort((t,r)=>e.itemSort(t,r,n))),X(o,t=>{let n=O_(e.callbacks,t);r.push(A_(n,`labelColor`,this,t)),i.push(A_(n,`labelPointStyle`,this,t)),a.push(A_(n,`labelTextColor`,this,t))}),this.labelColors=r,this.labelPointStyles=i,this.labelTextColors=a,this.dataPoints=o,o}update(e,t){let n=this.options.setContext(this.getContext()),r=this._active,i,a=[];if(!r.length)this.opacity!==0&&(i={opacity:0});else{let e=p_[n.position].call(this,r,this._eventPosition);a=this._createItems(n),this.title=this.getTitle(a,n),this.beforeBody=this.getBeforeBody(a,n),this.body=this.getBody(a,n),this.afterBody=this.getAfterBody(a,n),this.footer=this.getFooter(a,n);let t=this._size=__(this,n),o=Object.assign({},e,t),s=x_(this.chart,n,o),c=w_(n,o,s,this.chart);this.xAlign=s.xAlign,this.yAlign=s.yAlign,i={opacity:1,x:c.x,y:c.y,width:t.width,height:t.height,caretX:e.x,caretY:e.y}}this._tooltipItems=a,this.$context=void 0,i&&this._resolveAnimations().update(this,i),e&&n.external&&n.external.call(this,{chart:this.chart,tooltip:this,replay:t})}drawCaret(e,t,n,r){let i=this.getCaretPosition(e,n,r);t.lineTo(i.x1,i.y1),t.lineTo(i.x2,i.y2),t.lineTo(i.x3,i.y3)}getCaretPosition(e,t,n){let{xAlign:r,yAlign:i}=this,{caretSize:a,cornerRadius:o}=n,{topLeft:s,topRight:c,bottomLeft:l,bottomRight:u}=tp(o),{x:d,y:f}=e,{width:p,height:m}=t,h,g,_,v,y,b;return i===`center`?(y=f+m/2,r===`left`?(h=d,g=h-a,v=y+a,b=y-a):(h=d+p,g=h+a,v=y-a,b=y+a),_=h):(g=r===`left`?d+Math.max(s,l)+a:r===`right`?d+p-Math.max(c,u)-a:this.caretX,i===`top`?(v=f,y=v-a,h=g-a,_=g+a):(v=f+m,y=v+a,h=g+a,_=g-a),b=v),{x1:h,x2:g,x3:_,y1:v,y2:y,y3:b}}drawTitle(e,t,n){let r=this.title,i=r.length,a,o,s;if(i){let c=Up(n.rtl,this.x,this.width);for(e.x=T_(this,n.titleAlign,n),t.textAlign=c.textAlign(n.titleAlign),t.textBaseline=`middle`,a=$(n.titleFont),o=n.titleSpacing,t.fillStyle=n.titleColor,t.font=a.string,s=0;s<i;++s)t.fillText(r[s],c.x(e.x),e.y+a.lineHeight/2),e.y+=a.lineHeight+o,s+1===i&&(e.y+=n.titleMarginBottom-o)}}_drawColorBox(e,t,n,r,i){let a=this.labelColors[n],o=this.labelPointStyles[n],{boxHeight:s,boxWidth:c}=i,l=$(i.bodyFont),u=T_(this,`left`,i),d=r.x(u),f=s<l.lineHeight?(l.lineHeight-s)/2:0,p=t.y+f;if(i.usePointStyle){let t={radius:Math.min(c,s)/2,pointStyle:o.pointStyle,rotation:o.rotation,borderWidth:1},n=r.leftForLtr(d,c)+c/2,l=p+s/2;e.strokeStyle=i.multiKeyBackground,e.fillStyle=i.multiKeyBackground,zf(e,t,n,l),e.strokeStyle=a.borderColor,e.fillStyle=a.backgroundColor,zf(e,t,n,l)}else{e.lineWidth=K(a.borderWidth)?Math.max(...Object.values(a.borderWidth)):a.borderWidth||1,e.strokeStyle=a.borderColor,e.setLineDash(a.borderDash||[]),e.lineDashOffset=a.borderDashOffset||0;let t=r.leftForLtr(d,c),n=r.leftForLtr(r.xPlus(d,1),c-2),o=tp(a.borderRadius);Object.values(o).some(e=>e!==0)?(e.beginPath(),e.fillStyle=i.multiKeyBackground,Jf(e,{x:t,y:p,w:c,h:s,radius:o}),e.fill(),e.stroke(),e.fillStyle=a.backgroundColor,e.beginPath(),Jf(e,{x:n,y:p+1,w:c-2,h:s-2,radius:o}),e.fill()):(e.fillStyle=i.multiKeyBackground,e.fillRect(t,p,c,s),e.strokeRect(t,p,c,s),e.fillStyle=a.backgroundColor,e.fillRect(n,p+1,c-2,s-2))}e.fillStyle=this.labelTextColors[n]}drawBody(e,t,n){let{body:r}=this,{bodySpacing:i,bodyAlign:a,displayColors:o,boxHeight:s,boxWidth:c,boxPadding:l}=n,u=$(n.bodyFont),d=u.lineHeight,f=0,p=Up(n.rtl,this.x,this.width),m=function(n){t.fillText(n,p.x(e.x+f),e.y+d/2),e.y+=d+i},h=p.textAlign(a),g,_,v,y,b,x,S;for(t.textAlign=a,t.textBaseline=`middle`,t.font=u.string,e.x=T_(this,h,n),t.fillStyle=n.bodyColor,X(this.beforeBody,m),f=o&&h!==`right`?a===`center`?c/2+l:c+2+l:0,y=0,x=r.length;y<x;++y){for(g=r[y],_=this.labelTextColors[y],t.fillStyle=_,X(g.before,m),v=g.lines,o&&v.length&&(this._drawColorBox(t,e,y,p,n),d=Math.max(u.lineHeight,s)),b=0,S=v.length;b<S;++b)m(v[b]),d=u.lineHeight;X(g.after,m)}f=0,d=u.lineHeight,X(this.afterBody,m),e.y-=i}drawFooter(e,t,n){let r=this.footer,i=r.length,a,o;if(i){let s=Up(n.rtl,this.x,this.width);for(e.x=T_(this,n.footerAlign,n),e.y+=n.footerMarginTop,t.textAlign=s.textAlign(n.footerAlign),t.textBaseline=`middle`,a=$(n.footerFont),t.fillStyle=n.footerColor,t.font=a.string,o=0;o<i;++o)t.fillText(r[o],s.x(e.x),e.y+a.lineHeight/2),e.y+=a.lineHeight+n.footerSpacing}}drawBackground(e,t,n,r){let{xAlign:i,yAlign:a}=this,{x:o,y:s}=e,{width:c,height:l}=n,{topLeft:u,topRight:d,bottomLeft:f,bottomRight:p}=tp(r.cornerRadius);t.fillStyle=r.backgroundColor,t.strokeStyle=r.borderColor,t.lineWidth=r.borderWidth,t.beginPath(),t.moveTo(o+u,s),a===`top`&&this.drawCaret(e,t,n,r),t.lineTo(o+c-d,s),t.quadraticCurveTo(o+c,s,o+c,s+d),a===`center`&&i===`right`&&this.drawCaret(e,t,n,r),t.lineTo(o+c,s+l-p),t.quadraticCurveTo(o+c,s+l,o+c-p,s+l),a===`bottom`&&this.drawCaret(e,t,n,r),t.lineTo(o+f,s+l),t.quadraticCurveTo(o,s+l,o,s+l-f),a===`center`&&i===`left`&&this.drawCaret(e,t,n,r),t.lineTo(o,s+u),t.quadraticCurveTo(o,s,o+u,s),t.closePath(),t.fill(),r.borderWidth>0&&t.stroke()}_updateAnimationTarget(e){let t=this.chart,n=this.$animations,r=n&&n.x,i=n&&n.y;if(r||i){let n=p_[e.position].call(this,this._active,this._eventPosition);if(!n)return;let a=this._size=__(this,e),o=Object.assign({},n,this._size),s=x_(t,e,o),c=w_(e,o,s,t);(r._to!==c.x||i._to!==c.y)&&(this.xAlign=s.xAlign,this.yAlign=s.yAlign,this.width=a.width,this.height=a.height,this.caretX=n.x,this.caretY=n.y,this._resolveAnimations().update(this,c))}}_willRender(){return!!this.opacity}draw(e){let t=this.options.setContext(this.getContext()),n=this.opacity;if(!n)return;this._updateAnimationTarget(t);let r={width:this.width,height:this.height},i={x:this.x,y:this.y};n=Math.abs(n)<.001?0:n;let a=np(t.padding),o=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;t.enabled&&o&&(e.save(),e.globalAlpha=n,this.drawBackground(i,e,r,t),Wp(e,t.textDirection),i.y+=a.top,this.drawTitle(i,e,t),this.drawBody(i,e,t),this.drawFooter(i,e,t),Gp(e,t.textDirection),e.restore())}getActiveElements(){return this._active||[]}setActiveElements(e,t){let n=this._active,r=e.map(({datasetIndex:e,index:t})=>{let n=this.chart.getDatasetMeta(e);if(!n)throw Error(`Cannot find a dataset at index `+e);return{datasetIndex:e,element:n.data[t],index:t}}),i=!ud(n,r),a=this._positionChanged(r,t);(i||a)&&(this._active=r,this._eventPosition=t,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(e,t,n=!0){if(t&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;let r=this.options,i=this._active||[],a=this._getActiveElements(e,i,t,n),o=this._positionChanged(a,e),s=t||!ud(a,i)||o;return s&&(this._active=a,(r.enabled||r.external)&&(this._eventPosition={x:e.x,y:e.y},this.update(!0,t))),s}_getActiveElements(e,t,n,r){let i=this.options;if(e.type===`mouseout`)return[];if(!r)return t.filter(e=>this.chart.data.datasets[e.datasetIndex]&&this.chart.getDatasetMeta(e.datasetIndex).controller.getParsed(e.index)!==void 0);let a=this.chart.getElementsAtEventForMode(e,i.mode,i,n);return i.reverse&&a.reverse(),a}_positionChanged(e,t){let{caretX:n,caretY:r,options:i}=this,a=p_[i.position].call(this,e,t);return a!==!1&&(n!==a.x||r!==a.y)}},M_={id:`tooltip`,_element:j_,positioners:p_,afterInit(e,t,n){n&&(e.tooltip=new j_({chart:e,options:n}))},beforeUpdate(e,t,n){e.tooltip&&e.tooltip.initialize(n)},reset(e,t,n){e.tooltip&&e.tooltip.initialize(n)},afterDraw(e){let t=e.tooltip;if(t&&t._willRender()){let n={tooltip:t};if(e.notifyPlugins(`beforeTooltipDraw`,{...n,cancelable:!0})===!1)return;t.draw(e.ctx),e.notifyPlugins(`afterTooltipDraw`,n)}},afterEvent(e,t){if(e.tooltip){let n=t.replay;e.tooltip.handleEvent(t.event,n,t.inChartArea)&&(t.changed=!0)}},defaults:{enabled:!0,external:null,position:`average`,backgroundColor:`rgba(0,0,0,0.8)`,titleColor:`#fff`,titleFont:{weight:`bold`},titleSpacing:2,titleMarginBottom:6,titleAlign:`left`,bodyColor:`#fff`,bodySpacing:2,bodyFont:{},bodyAlign:`left`,footerColor:`#fff`,footerSpacing:2,footerMarginTop:6,footerFont:{weight:`bold`},footerAlign:`left`,padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(e,t)=>t.bodyFont.size,boxWidth:(e,t)=>t.bodyFont.size,multiKeyBackground:`#fff`,displayColors:!0,boxPadding:0,borderColor:`rgba(0,0,0,0)`,borderWidth:0,animation:{duration:400,easing:`easeOutQuart`},animations:{numbers:{type:`number`,properties:[`x`,`y`,`width`,`height`,`caretX`,`caretY`]},opacity:{easing:`linear`,duration:200}},callbacks:k_},defaultRoutes:{bodyFont:`font`,footerFont:`font`,titleFont:`font`},descriptors:{_scriptable:e=>e!==`filter`&&e!==`itemSort`&&e!==`external`,_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:`animation`}},additionalOptionScopes:[`interaction`]},N_=(e,t,n,r)=>(typeof t==`string`?(n=e.push(t)-1,r.unshift({index:n,label:t})):isNaN(t)&&(n=null),n);function P_(e,t,n,r){let i=e.indexOf(t);return i===-1?N_(e,t,n,r):i===e.lastIndexOf(t)?i:n}var F_=(e,t)=>e===null?null:Jd(Math.round(e),0,t);function I_(e){let t=this.getLabels();return e>=0&&e<t.length?t[e]:e}var L_=class extends tg{static id=`category`;static defaults={ticks:{callback:I_}};constructor(e){super(e),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(e){let t=this._addedLabels;if(t.length){let e=this.getLabels();for(let{index:n,label:r}of t)e[n]===r&&e.splice(n,1);this._addedLabels=[]}super.init(e)}parse(e,t){if(W(e))return null;let n=this.getLabels();return t=isFinite(t)&&n[t]===e?t:P_(n,e,J(t,e),this._addedLabels),F_(t,n.length-1)}determineDataLimits(){let{minDefined:e,maxDefined:t}=this.getUserBounds(),{min:n,max:r}=this.getMinMax(!0);this.options.bounds===`ticks`&&(e||(n=0),t||(r=this.getLabels().length-1)),this.min=n,this.max=r}buildTicks(){let e=this.min,t=this.max,n=this.options.offset,r=[],i=this.getLabels();i=e===0&&t===i.length-1?i:i.slice(e,t+1),this._valueRange=Math.max(i.length-+!n,1),this._startValue=this.min-(n?.5:0);for(let n=e;n<=t;n++)r.push({value:n});return r}getLabelForValue(e){return I_.call(this,e)}configure(){super.configure(),this.isHorizontal()||(this._reversePixels=!this._reversePixels)}getPixelForValue(e){return typeof e!=`number`&&(e=this.parse(e)),e===null?NaN:this.getPixelForDecimal((e-this._startValue)/this._valueRange)}getPixelForTick(e){let t=this.ticks;return e<0||e>t.length-1?null:this.getPixelForValue(t[e].value)}getValueForPixel(e){return Math.round(this._startValue+this.getDecimalForPixel(e)*this._valueRange)}getBasePixel(){return this.bottom}};function R_(e,t){let n=[],{bounds:r,step:i,min:a,max:o,precision:s,count:c,maxTicks:l,maxDigits:u,includeBounds:d}=e,f=i||1,p=l-1,{min:m,max:h}=t,g=!W(a),_=!W(o),v=!W(c),y=(h-m)/(u+1),b=Fd((h-m)/p/f)*f,x,S,C,w;if(b<1e-14&&!g&&!_)return[{value:m},{value:h}];w=Math.ceil(h/b)-Math.floor(m/b),w>p&&(b=Fd(w*b/p/f)*f),W(s)||(x=10**s,b=Math.ceil(b*x)/x),r===`ticks`?(S=Math.floor(m/b)*b,C=Math.ceil(h/b)*b):(S=m,C=h),g&&_&&i&&zd((o-a)/i,b/1e3)?(w=Math.round(Math.min((o-a)/b,l)),b=(o-a)/w,S=a,C=o):v?(S=g?a:S,C=_?o:C,w=c-1,b=(C-S)/w):(w=(C-S)/b,w=Pd(w,Math.round(w),b/1e3)?Math.round(w):Math.ceil(w));let T=Math.max(Ud(b),Ud(S));x=10**(W(s)?T:s),S=Math.round(S*x)/x,C=Math.round(C*x)/x;let E=0;for(g&&(d&&S!==a?(n.push({value:a}),S<a&&E++,Pd(Math.round((S+E*b)*x)/x,a,z_(a,y,e))&&E++):S<a&&E++);E<w;++E){let e=Math.round((S+E*b)*x)/x;if(_&&e>o)break;n.push({value:e})}return _&&d&&C!==o?n.length&&Pd(n[n.length-1].value,o,z_(o,y,e))?n[n.length-1].value=o:n.push({value:o}):(!_||C===o)&&n.push({value:C}),n}function z_(e,t,{horizontal:n,minRotation:r}){let i=Vd(r),a=(n?Math.sin(i):Math.cos(i))||.001,o=.75*t*(``+e).length;return Math.min(t/a,o)}var B_=class extends tg{constructor(e){super(e),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(e,t){return W(e)||(typeof e==`number`||e instanceof Number)&&!isFinite(+e)?null:+e}handleTickRangeOptions(){let{beginAtZero:e}=this.options,{minDefined:t,maxDefined:n}=this.getUserBounds(),{min:r,max:i}=this,a=e=>r=t?r:e,o=e=>i=n?i:e;if(e){let e=Nd(r),t=Nd(i);e<0&&t<0?o(0):e>0&&t>0&&a(0)}if(r===i){let t=i===0?1:Math.abs(i*.05);o(i+t),e||a(r-t)}this.min=r,this.max=i}getTickLimit(){let{maxTicksLimit:e,stepSize:t}=this.options.ticks,n;return t?(n=Math.ceil(this.max/t)-Math.floor(this.min/t)+1,n>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${t} would result generating up to ${n} ticks. Limiting to 1000.`),n=1e3)):(n=this.computeTickLimit(),e||=11),e&&(n=Math.min(e,n)),n}computeTickLimit(){return 1/0}buildTicks(){let e=this.options,t=e.ticks,n=this.getTickLimit();n=Math.max(2,n);let r=R_({maxTicks:n,bounds:e.bounds,min:e.min,max:e.max,precision:t.precision,step:t.stepSize,count:t.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:t.minRotation||0,includeBounds:t.includeBounds!==!1},this._range||this);return e.bounds===`ticks`&&Bd(r,this,`value`),e.reverse?(r.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),r}configure(){let e=this.ticks,t=this.min,n=this.max;if(super.configure(),this.options.offset&&e.length){let r=(n-t)/Math.max(e.length-1,1)/2;t-=r,n+=r}this._startValue=t,this._endValue=n,this._valueRange=n-t}getLabelForValue(e){return Tf(e,this.chart.options.locale,this.options.ticks.format)}},V_=class extends B_{static id=`linear`;static defaults={ticks:{callback:Of.formatters.numeric}};determineDataLimits(){let{min:e,max:t}=this.getMinMax(!0);this.min=q(e)?e:0,this.max=q(t)?t:1,this.handleTickRangeOptions()}computeTickLimit(){let e=this.isHorizontal(),t=e?this.width:this.height,n=Vd(this.options.ticks.minRotation),r=(e?Math.sin(n):Math.cos(n))||.001,i=this._resolveTickFontOptions(0);return Math.ceil(t/Math.min(40,i.lineHeight/r))}getPixelForValue(e){return e===null?NaN:this.getPixelForDecimal((e-this._startValue)/this._valueRange)}getValueForPixel(e){return this._startValue+this.getDecimalForPixel(e)*this._valueRange}},H_=e=>Math.floor(Md(e)),U_=(e,t)=>10**(H_(e)+t);function W_(e){return e/10**H_(e)==1}function G_(e,t,n){let r=10**n,i=Math.floor(e/r);return Math.ceil(t/r)-i}function K_(e,t){let n=H_(t-e);for(;G_(e,t,n)>10;)n++;for(;G_(e,t,n)<10;)n--;return Math.min(n,H_(e))}function q_(e,{min:t,max:n}){t=cd(e.min,t);let r=[],i=H_(t),a=K_(t,n),o=a<0?10**Math.abs(a):1,s=10**a,c=i>a?10**i:0,l=Math.round((t-c)*o)/o,u=Math.floor((t-c)/s/10)*s*10,d=Math.floor((l-u)/10**a),f=cd(e.min,Math.round((c+u+d*10**a)*o)/o);for(;f<n;)r.push({value:f,major:W_(f),significand:d}),d>=10?d=d<15?15:20:d++,d>=20&&(a++,d=2,o=a>=0?1:o),f=Math.round((c+u+d*10**a)*o)/o;let p=cd(e.max,f);return r.push({value:p,major:W_(p),significand:d}),r}(class extends tg{static id=`logarithmic`;static defaults={ticks:{callback:Of.formatters.logarithmic,major:{enabled:!0}}};constructor(e){super(e),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(e,t){let n=B_.prototype.parse.apply(this,[e,t]);if(n===0){this._zero=!0;return}return q(n)&&n>0?n:null}determineDataLimits(){let{min:e,max:t}=this.getMinMax(!0);this.min=q(e)?Math.max(0,e):null,this.max=q(t)?Math.max(0,t):null,this.options.beginAtZero&&(this._zero=!0),this._zero&&this.min!==this._suggestedMin&&!q(this._userMin)&&(this.min=e===U_(this.min,0)?U_(this.min,-1):U_(this.min,0)),this.handleTickRangeOptions()}handleTickRangeOptions(){let{minDefined:e,maxDefined:t}=this.getUserBounds(),n=this.min,r=this.max,i=t=>n=e?n:t,a=e=>r=t?r:e;n===r&&(n<=0?(i(1),a(10)):(i(U_(n,-1)),a(U_(r,1)))),n<=0&&i(U_(r,-1)),r<=0&&a(U_(n,1)),this.min=n,this.max=r}buildTicks(){let e=this.options,t=q_({min:this._userMin,max:this._userMax},this);return e.bounds===`ticks`&&Bd(t,this,`value`),e.reverse?(t.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),t}getLabelForValue(e){return e===void 0?`0`:Tf(e,this.chart.options.locale,this.options.ticks.format)}configure(){let e=this.min;super.configure(),this._startValue=Md(e),this._valueRange=Md(this.max)-Md(e)}getPixelForValue(e){return(e===void 0||e===0)&&(e=this.min),e===null||isNaN(e)?NaN:this.getPixelForDecimal(e===this.min?0:(Md(e)-this._startValue)/this._valueRange)}getValueForPixel(e){let t=this.getDecimalForPixel(e);return 10**(this._startValue+t*this._valueRange)}});function J_(e){let t=e.ticks;if(t.display&&e.display){let e=np(t.backdropPadding);return J(t.font&&t.font.size,Q.font.size)+e.height}return 0}function Y_(e,t,n){return n=G(n)?n:[n],{w:If(e,t.string,n),h:n.length*t.lineHeight}}function X_(e,t,n,r,i){return e===r||e===i?{start:t-n/2,end:t+n/2}:e<r||e>i?{start:t-n,end:t}:{start:t,end:t+n}}function Z_(e){let t={l:e.left+e._padding.left,r:e.right-e._padding.right,t:e.top+e._padding.top,b:e.bottom-e._padding.bottom},n=Object.assign({},t),r=[],i=[],a=e._pointLabels.length,o=e.options.pointLabels,s=o.centerPointLabels?Z/a:0;for(let c=0;c<a;c++){let a=o.setContext(e.getPointLabelContext(c));i[c]=a.padding;let l=e.getPointPosition(c,e.drawingArea+i[c],s),u=$(a.font),d=Y_(e.ctx,u,e._pointLabels[c]);r[c]=d;let f=Kd(e.getIndexAngle(c)+s),p=Math.round(Hd(f));Q_(n,t,f,X_(p,l.x,d.w,0,180),X_(p,l.y,d.h,90,270))}e.setCenterPoint(t.l-n.l,n.r-t.r,t.t-n.t,n.b-t.b),e._pointLabelItems=tv(e,r,i)}function Q_(e,t,n,r,i){let a=Math.abs(Math.sin(n)),o=Math.abs(Math.cos(n)),s=0,c=0;r.start<t.l?(s=(t.l-r.start)/a,e.l=Math.min(e.l,t.l-s)):r.end>t.r&&(s=(r.end-t.r)/a,e.r=Math.max(e.r,t.r+s)),i.start<t.t?(c=(t.t-i.start)/o,e.t=Math.min(e.t,t.t-c)):i.end>t.b&&(c=(i.end-t.b)/o,e.b=Math.max(e.b,t.b+c))}function $_(e,t,n){let r=e.drawingArea,{extra:i,additionalAngle:a,padding:o,size:s}=n,c=e.getPointPosition(t,r+i+o,a),l=Math.round(Hd(Kd(c.angle+kd))),u=iv(c.y,s.h,l),d=nv(l),f=rv(c.x,s.w,d);return{visible:!0,x:c.x,y:u,textAlign:d,left:f,top:u,right:f+s.w,bottom:u+s.h}}function ev(e,t){if(!t)return!0;let{left:n,top:r,right:i,bottom:a}=e;return!(Vf({x:n,y:r},t)||Vf({x:n,y:a},t)||Vf({x:i,y:r},t)||Vf({x:i,y:a},t))}function tv(e,t,n){let r=[],i=e._pointLabels.length,a=e.options,{centerPointLabels:o,display:s}=a.pointLabels,c={extra:J_(a)/2,additionalAngle:o?Z/i:0},l;for(let a=0;a<i;a++){c.padding=n[a],c.size=t[a];let i=$_(e,a,c);r.push(i),s===`auto`&&(i.visible=ev(i,l),i.visible&&(l=i))}return r}function nv(e){return e===0||e===180?`center`:e<180?`left`:`right`}function rv(e,t,n){return n===`right`?e-=t:n===`center`&&(e-=t/2),e}function iv(e,t,n){return n===90||n===270?e-=t/2:(n>270||n<90)&&(e-=t),e}function av(e,t,n){let{left:r,top:i,right:a,bottom:o}=n,{backdropColor:s}=t;if(!W(s)){let n=tp(t.borderRadius),c=np(t.backdropPadding);e.fillStyle=s;let l=r-c.left,u=i-c.top,d=a-r+c.width,f=o-i+c.height;Object.values(n).some(e=>e!==0)?(e.beginPath(),Jf(e,{x:l,y:u,w:d,h:f,radius:n}),e.fill()):e.fillRect(l,u,d,f)}}function ov(e,t){let{ctx:n,options:{pointLabels:r}}=e;for(let i=t-1;i>=0;i--){let t=e._pointLabelItems[i];if(!t.visible)continue;let a=r.setContext(e.getPointLabelContext(i));av(n,a,t);let o=$(a.font),{x:s,y:c,textAlign:l}=t;qf(n,e._pointLabels[i],s,c+o.lineHeight/2,o,{color:a.color,textAlign:l,textBaseline:`middle`})}}function sv(e,t,n,r){let{ctx:i}=e;if(n)i.arc(e.xCenter,e.yCenter,t,0,Ed);else{let n=e.getPointPosition(0,t);i.moveTo(n.x,n.y);for(let a=1;a<r;a++)n=e.getPointPosition(a,t),i.lineTo(n.x,n.y)}}function cv(e,t,n,r,i){let a=e.ctx,o=t.circular,{color:s,lineWidth:c}=t;!o&&!r||!s||!c||n<0||(a.save(),a.strokeStyle=s,a.lineWidth=c,a.setLineDash(i.dash||[]),a.lineDashOffset=i.dashOffset,a.beginPath(),sv(e,n,o,r),a.closePath(),a.stroke(),a.restore())}function lv(e,t,n){return ap(e,{label:n,index:t,type:`pointLabel`})}(class extends B_{static id=`radialLinear`;static defaults={display:!0,animate:!0,position:`chartArea`,angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:Of.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback(e){return e},padding:5,centerPointLabels:!1}};static defaultRoutes={"angleLines.color":`borderColor`,"pointLabels.color":`color`,"ticks.color":`color`};static descriptors={angleLines:{_fallback:`grid`}};constructor(e){super(e),this.xCenter=void 0,this.yCenter=void 0,this.drawingArea=void 0,this._pointLabels=[],this._pointLabelItems=[]}setDimensions(){let e=this._padding=np(J_(this.options)/2),t=this.width=this.maxWidth-e.width,n=this.height=this.maxHeight-e.height;this.xCenter=Math.floor(this.left+t/2+e.left),this.yCenter=Math.floor(this.top+n/2+e.top),this.drawingArea=Math.floor(Math.min(t,n)/2)}determineDataLimits(){let{min:e,max:t}=this.getMinMax(!1);this.min=q(e)&&!isNaN(e)?e:0,this.max=q(t)&&!isNaN(t)?t:0,this.handleTickRangeOptions()}computeTickLimit(){return Math.ceil(this.drawingArea/J_(this.options))}generateTickLabels(e){B_.prototype.generateTickLabels.call(this,e),this._pointLabels=this.getLabels().map((e,t)=>{let n=Y(this.options.pointLabels.callback,[e,t],this);return n||n===0?n:``}).filter((e,t)=>this.chart.getDataVisibility(t))}fit(){let e=this.options;e.display&&e.pointLabels.display?Z_(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(e,t,n,r){this.xCenter+=Math.floor((e-t)/2),this.yCenter+=Math.floor((n-r)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(e,t,n,r))}getIndexAngle(e){let t=Ed/(this._pointLabels.length||1),n=this.options.startAngle||0;return Kd(e*t+Vd(n))}getDistanceFromCenterForValue(e){if(W(e))return NaN;let t=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-e)*t:(e-this.min)*t}getValueForDistanceFromCenter(e){if(W(e))return NaN;let t=e/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-t:this.min+t}getPointLabelContext(e){let t=this._pointLabels||[];if(e>=0&&e<t.length){let n=t[e];return lv(this.getContext(),e,n)}}getPointPosition(e,t,n=0){let r=this.getIndexAngle(e)-kd+n;return{x:Math.cos(r)*t+this.xCenter,y:Math.sin(r)*t+this.yCenter,angle:r}}getPointPositionForValue(e,t){return this.getPointPosition(e,this.getDistanceFromCenterForValue(t))}getBasePosition(e){return this.getPointPositionForValue(e||0,this.getBaseValue())}getPointLabelPosition(e){let{left:t,top:n,right:r,bottom:i}=this._pointLabelItems[e];return{left:t,top:n,right:r,bottom:i}}drawBackground(){let{backgroundColor:e,grid:{circular:t}}=this.options;if(e){let n=this.ctx;n.save(),n.beginPath(),sv(this,this.getDistanceFromCenterForValue(this._endValue),t,this._pointLabels.length),n.closePath(),n.fillStyle=e,n.fill(),n.restore()}}drawGrid(){let e=this.ctx,t=this.options,{angleLines:n,grid:r,border:i}=t,a=this._pointLabels.length,o,s,c;if(t.pointLabels.display&&ov(this,a),r.display&&this.ticks.forEach((e,t)=>{if(t!==0||t===0&&this.min<0){s=this.getDistanceFromCenterForValue(e.value);let n=this.getContext(t),o=r.setContext(n),c=i.setContext(n);cv(this,o,s,a,c)}}),n.display){for(e.save(),o=a-1;o>=0;o--){let r=n.setContext(this.getPointLabelContext(o)),{color:i,lineWidth:a}=r;!a||!i||(e.lineWidth=a,e.strokeStyle=i,e.setLineDash(r.borderDash),e.lineDashOffset=r.borderDashOffset,s=this.getDistanceFromCenterForValue(t.reverse?this.min:this.max),c=this.getPointPosition(o,s),e.beginPath(),e.moveTo(this.xCenter,this.yCenter),e.lineTo(c.x,c.y),e.stroke())}e.restore()}}drawBorder(){}drawLabels(){let e=this.ctx,t=this.options,n=t.ticks;if(!n.display)return;let r=this.getIndexAngle(0),i,a;e.save(),e.translate(this.xCenter,this.yCenter),e.rotate(r),e.textAlign=`center`,e.textBaseline=`middle`,this.ticks.forEach((r,o)=>{if(o===0&&this.min>=0&&!t.reverse)return;let s=n.setContext(this.getContext(o)),c=$(s.font);if(i=this.getDistanceFromCenterForValue(this.ticks[o].value),s.showLabelBackdrop){e.font=c.string,a=e.measureText(r.label).width,e.fillStyle=s.backdropColor;let t=np(s.backdropPadding);e.fillRect(-a/2-t.left,-i-c.size/2-t.top,a+t.width,c.size+t.height)}qf(e,r.label,0,-i,c,{color:s.color,strokeColor:s.textStrokeColor,strokeWidth:s.textStrokeWidth})}),e.restore()}drawTitle(){}});var uv={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},dv=Object.keys(uv);function fv(e,t){return e-t}function pv(e,t){if(W(t))return null;let n=e._adapter,{parser:r,round:i,isoWeekday:a}=e._parseOpts,o=t;return typeof r==`function`&&(o=r(o)),q(o)||(o=typeof r==`string`?n.parse(o,r):n.parse(o)),o===null?null:(i&&(o=i===`week`&&(Rd(a)||a===!0)?n.startOf(o,`isoWeek`,a):n.startOf(o,i)),+o)}function mv(e,t,n,r){let i=dv.length;for(let a=dv.indexOf(e);a<i-1;++a){let e=uv[dv[a]],i=e.steps?e.steps:2**53-1;if(e.common&&Math.ceil((n-t)/(i*e.size))<=r)return dv[a]}return dv[i-1]}function hv(e,t,n,r,i){for(let a=dv.length-1;a>=dv.indexOf(n);a--){let n=dv[a];if(uv[n].common&&e._adapter.diff(i,r,n)>=t-1)return n}return dv[n?dv.indexOf(n):0]}function gv(e){for(let t=dv.indexOf(e)+1,n=dv.length;t<n;++t)if(uv[dv[t]].common)return dv[t]}function _v(e,t,n){if(!n)e[t]=!0;else if(n.length){let{lo:r,hi:i}=Zd(n,t),a=n[r]>=t?n[r]:n[i];e[a]=!0}}function vv(e,t,n,r){let i=e._adapter,a=+i.startOf(t[0].value,r),o=t[t.length-1].value,s,c;for(s=a;s<=o;s=+i.add(s,1,r))c=n[s],c>=0&&(t[c].major=!0);return t}function yv(e,t,n){let r=[],i={},a=t.length,o,s;for(o=0;o<a;++o)s=t[o],i[s]=o,r.push({value:s,major:!1});return a===0||!n?r:vv(e,r,i,n)}var bv=class extends tg{static id=`time`;static defaults={bounds:`data`,adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:`millisecond`,displayFormats:{}},ticks:{source:`auto`,callback:!1,major:{enabled:!1}}};constructor(e){super(e),this._cache={data:[],labels:[],all:[]},this._unit=`day`,this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(e,t={}){let n=e.time||={},r=this._adapter=new zm._date(e.adapters.date);r.init(t),hd(n.displayFormats,r.formats()),this._parseOpts={parser:n.parser,round:n.round,isoWeekday:n.isoWeekday},super.init(e),this._normalized=t.normalized}parse(e,t){return e===void 0?null:pv(this,e)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){let e=this.options,t=this._adapter,n=e.time.unit||`day`,{min:r,max:i,minDefined:a,maxDefined:o}=this.getUserBounds();function s(e){!a&&!isNaN(e.min)&&(r=Math.min(r,e.min)),!o&&!isNaN(e.max)&&(i=Math.max(i,e.max))}(!a||!o)&&(s(this._getLabelBounds()),(e.bounds!==`ticks`||e.ticks.source!==`labels`)&&s(this.getMinMax(!1))),r=q(r)&&!isNaN(r)?r:+t.startOf(Date.now(),n),i=q(i)&&!isNaN(i)?i:+t.endOf(Date.now(),n)+1,this.min=Math.min(r,i-1),this.max=Math.max(r+1,i)}_getLabelBounds(){let e=this.getLabelTimestamps(),t=1/0,n=-1/0;return e.length&&(t=e[0],n=e[e.length-1]),{min:t,max:n}}buildTicks(){let e=this.options,t=e.time,n=e.ticks,r=n.source===`labels`?this.getLabelTimestamps():this._generate();e.bounds===`ticks`&&r.length&&(this.min=this._userMin||r[0],this.max=this._userMax||r[r.length-1]);let i=this.min,a=this.max,o=ef(r,i,a);return this._unit=t.unit||(n.autoSkip?mv(t.minUnit,this.min,this.max,this._getLabelCapacity(i)):hv(this,o.length,t.minUnit,this.min,this.max)),this._majorUnit=!n.major.enabled||this._unit===`year`?void 0:gv(this._unit),this.initOffsets(r),e.reverse&&o.reverse(),yv(this,o,this._majorUnit)}afterAutoSkip(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map(e=>+e.value))}initOffsets(e=[]){let t=0,n=0,r,i;this.options.offset&&e.length&&(r=this.getDecimalForValue(e[0]),t=e.length===1?1-r:(this.getDecimalForValue(e[1])-r)/2,i=this.getDecimalForValue(e[e.length-1]),n=e.length===1?i:(i-this.getDecimalForValue(e[e.length-2]))/2);let a=e.length<3?.5:.25;t=Jd(t,0,a),n=Jd(n,0,a),this._offsets={start:t,end:n,factor:1/(t+1+n)}}_generate(){let e=this._adapter,t=this.min,n=this.max,r=this.options,i=r.time,a=i.unit||mv(i.minUnit,t,n,this._getLabelCapacity(t)),o=J(r.ticks.stepSize,1),s=a===`week`?i.isoWeekday:!1,c=Rd(s)||s===!0,l={},u=t,d,f;if(c&&(u=+e.startOf(u,`isoWeek`,s)),u=+e.startOf(u,c?`day`:a),e.diff(n,t,a)>1e5*o)throw Error(t+` and `+n+` are too far apart with stepSize of `+o+` `+a);let p=r.ticks.source===`data`&&this.getDataTimestamps();for(d=u,f=0;d<n;d=+e.add(d,o,a),f++)_v(l,d,p);return(d===n||r.bounds===`ticks`||f===1)&&_v(l,d,p),Object.keys(l).sort(fv).map(e=>+e)}getLabelForValue(e){let t=this._adapter,n=this.options.time;return n.tooltipFormat?t.format(e,n.tooltipFormat):t.format(e,n.displayFormats.datetime)}format(e,t){let n=this.options.time.displayFormats,r=this._unit,i=t||n[r];return this._adapter.format(e,i)}_tickFormatFunction(e,t,n,r){let i=this.options,a=i.ticks.callback;if(a)return Y(a,[e,t,n],this);let o=i.time.displayFormats,s=this._unit,c=this._majorUnit,l=s&&o[s],u=c&&o[c],d=n[t],f=c&&u&&d&&d.major;return this._adapter.format(e,r||(f?u:l))}generateTickLabels(e){let t,n,r;for(t=0,n=e.length;t<n;++t)r=e[t],r.label=this._tickFormatFunction(r.value,t,e)}getDecimalForValue(e){return e===null?NaN:(e-this.min)/(this.max-this.min)}getPixelForValue(e){let t=this._offsets,n=this.getDecimalForValue(e);return this.getPixelForDecimal((t.start+n)*t.factor)}getValueForPixel(e){let t=this._offsets,n=this.getDecimalForPixel(e)/t.factor-t.end;return this.min+n*(this.max-this.min)}_getLabelSize(e){let t=this.options.ticks,n=this.ctx.measureText(e).width,r=Vd(this.isHorizontal()?t.maxRotation:t.minRotation),i=Math.cos(r),a=Math.sin(r),o=this._resolveTickFontOptions(0).size;return{w:n*i+o*a,h:n*a+o*i}}_getLabelCapacity(e){let t=this.options.time,n=t.displayFormats,r=n[t.unit]||n.millisecond,i=this._tickFormatFunction(e,0,yv(this,[e],this._majorUnit),r),a=this._getLabelSize(i),o=Math.floor(this.isHorizontal()?this.width/a.w:this.height/a.h)-1;return o>0?o:1}getDataTimestamps(){let e=this._cache.data||[],t,n;if(e.length)return e;let r=this.getMatchingVisibleMetas();if(this._normalized&&r.length)return this._cache.data=r[0].controller.getAllParsedValues(this);for(t=0,n=r.length;t<n;++t)e=e.concat(r[t].controller.getAllParsedValues(this));return this._cache.data=this.normalize(e)}getLabelTimestamps(){let e=this._cache.labels||[],t,n;if(e.length)return e;let r=this.getLabels();for(t=0,n=r.length;t<n;++t)e.push(pv(this,r[t]));return this._cache.labels=this._normalized?e:this.normalize(e)}normalize(e){return af(e.sort(fv))}};function xv(e,t,n){let r=0,i=e.length-1,a,o,s,c;n?(t>=e[r].pos&&t<=e[i].pos&&({lo:r,hi:i}=Qd(e,`pos`,t)),{pos:a,time:s}=e[r],{pos:o,time:c}=e[i]):(t>=e[r].time&&t<=e[i].time&&({lo:r,hi:i}=Qd(e,`time`,t)),{time:a,pos:s}=e[r],{time:o,pos:c}=e[i]);let l=o-a;return l?s+(c-s)*(t-a)/l:s}(class extends bv{static id=`timeseries`;static defaults=bv.defaults;constructor(e){super(e),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){let e=this._getTimestampsForTable(),t=this._table=this.buildLookupTable(e);this._minPos=xv(t,this.min),this._tableRange=xv(t,this.max)-this._minPos,super.initOffsets(e)}buildLookupTable(e){let{min:t,max:n}=this,r=[],i=[],a,o,s,c,l;for(a=0,o=e.length;a<o;++a)c=e[a],c>=t&&c<=n&&r.push(c);if(r.length<2)return[{time:t,pos:0},{time:n,pos:1}];for(a=0,o=r.length;a<o;++a)l=r[a+1],s=r[a-1],c=r[a],Math.round((l+s)/2)!==c&&i.push({time:c,pos:a/(o-1)});return i}_generate(){let e=this.min,t=this.max,n=super.getDataTimestamps();return(!n.includes(e)||!n.length)&&n.splice(0,0,e),(!n.includes(t)||n.length===1)&&n.push(t),n.sort((e,t)=>e-t)}_getTimestampsForTable(){let e=this._cache.all||[];if(e.length)return e;let t=this.getDataTimestamps(),n=this.getLabelTimestamps();return e=t.length&&n.length?this.normalize(t.concat(n)):t.length?t:n,e=this._cache.all=e,e}getDecimalForValue(e){return(xv(this._table,e)-this._minPos)/this._tableRange}getValueForPixel(e){let t=this._offsets,n=this.getDecimalForPixel(e)/t.factor-t.end;return xv(this._table,n*this._tableRange+this._minPos,!0)}});var Sv={data:{type:Object,required:!0},options:{type:Object,default:()=>({})},plugins:{type:Array,default:()=>[]},datasetIdKey:{type:String,default:`label`},updateMode:{type:String,default:void 0}},Cv={ariaLabel:{type:String},ariaDescribedby:{type:String}},wv={type:{type:String,required:!0},destroyDelay:{type:Number,default:0},...Sv,...Cv},Tv=(e,t)=>Object.assign(e,t);function Ev(e){return en(e)?P(e):e}function Dv(e){return en(arguments.length>1&&arguments[1]!==void 0?arguments[1]:e)?new Proxy(e,{}):e}function Ov(e,t){let n=e.options;n&&t&&Object.assign(n,t)}function kv(e,t){e.labels=t}function Av(e,t,n){let r=[];e.datasets=t.map(t=>{let i=e.datasets.find(e=>e[n]===t[n]);return!i||!t.data||r.includes(i)?{...t}:(r.push(i),Object.assign(i,t),i)})}function jv(e,t){let n={labels:[],datasets:[]};return kv(n,e.labels),Av(n,e.datasets,t),n}var Mv=ni({props:wv,setup(e,t){let{expose:n,slots:r}=t,i=an(null),a=on(null);n({chart:a});let o=()=>{if(!i.value)return;let{type:t,data:n,options:r,plugins:o,datasetIdKey:s}=e,c=Dv(jv(n,s),n);a.value=new Ug(i.value,{type:t,data:c,options:{...r},plugins:o})},s=()=>{let t=P(a.value);t&&(e.destroyDelay>0?setTimeout(()=>{t.destroy(),a.value=null},e.destroyDelay):(t.destroy(),a.value=null))},c=t=>{t.update(e.updateMode)};return Ui(o),qi(s),Cr([()=>e.options,()=>e.data],(t,n)=>{let[r,i]=t,[o,s]=n,l=P(a.value);if(!l)return;let u=!1;if(r){let e=Ev(r),t=Ev(o);e&&e!==t&&(Ov(l,e),u=!0)}if(i){let t=Ev(i.labels),n=Ev(s.labels),r=Ev(i.datasets),a=Ev(s.datasets);t!==n&&(kv(l.config.data,t),u=!0),r&&r!==a&&(Av(l.config.data,r,e.datasetIdKey),u=!0)}u&&Yn(()=>{c(l)})},{deep:!0}),()=>Ys(`canvas`,{role:`img`,"aria-label":e.ariaLabel,"aria-describedby":e.ariaDescribedby,ref:i},[Ys(`p`,{},[r.default?r.default():``])])}});function Nv(e,t){return Ug.register(t),ni({props:Sv,setup(t,n){let{expose:r}=n,i=on(null),a=e=>{i.value=e?.chart};return r({chart:i}),()=>Ys(Mv,Tv({ref:a},{type:e,...t}))}})}var Pv=Nv(`bar`,Lm);export{oa as $,ss as A,k as At,ls as B,v as Bt,Rr as C,P as Ct,ms as D,ln as Dt,Js as E,dn as Et,ni as F,h as Ft,Ki as G,re as Gt,Yn as H,_e as Ht,U as I,_ as It,Ui as J,Wi as K,gs as L,b as Lt,ys as M,d as Mt,vs as N,A as Nt,cs as O,un as Ot,V as P,f as Pt,hr as Q,Ys as R,T as Rt,R as S,on as St,_s as T,gn as Tt,Pi as U,de as Ut,ws as V,ge as Vt,Hi as W,Te as Wt,Gi as X,qi as Y,ns as Z,Ll as _,Me as _t,V_ as a,wa as at,Zl as b,an as bt,M_ as c,Cr as ct,El as d,pr as dt,ca as et,su as f,hn as ft,Bl as g,tn as gt,Rl as h,F as ht,Ug as i,ua as it,sa as j,ne as jt,bs as k,i as kt,pu as l,br as lt,au as m,je as mt,e_ as n,ra as nt,l_ as o,Ca as ot,cu as p,Ae as pt,Fi as q,L_ as r,na as rt,f_ as s,ec as st,Pv as t,ea as tt,vc as u,fr as ut,Ic as v,Kt as vt,$o as w,yn as wt,z as x,qt as xt,$l as y,Jt as yt,gr as z,x as zt};