@xframework-ca-test/cli 1.0.31 → 1.0.32

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 (306) hide show
  1. package/dist/customer-portal/android-chrome-192x192.png +0 -0
  2. package/dist/customer-portal/android-chrome-512x512.png +0 -0
  3. package/dist/customer-portal/apple-touch-icon.png +0 -0
  4. package/dist/customer-portal/assets/ActionLink-feb719a3.js +1 -0
  5. package/dist/customer-portal/assets/AdaptableCard-5bdf55ff.js +1 -0
  6. package/dist/customer-portal/assets/Alert-e6518529.js +1 -0
  7. package/dist/customer-portal/assets/Auth0Callback-a32aa0ee.js +1 -0
  8. package/dist/customer-portal/assets/BlankLayout-7d425a4f.js +1 -0
  9. package/dist/customer-portal/assets/Button-312a6bfe.js +1 -0
  10. package/dist/customer-portal/assets/Card-8badb238.js +1 -0
  11. package/dist/customer-portal/assets/Checkout-735fa664.js +1 -0
  12. package/dist/customer-portal/assets/ClassicLayout-43547087.js +1 -0
  13. package/dist/customer-portal/assets/Container-0271dbaa.js +1 -0
  14. package/dist/customer-portal/assets/CourseDetails-aa3fc18f.js +1 -0
  15. package/dist/customer-portal/assets/CourseService-150b9c3b.js +1 -0
  16. package/dist/customer-portal/assets/DeckedLayout-50b0b841.js +1 -0
  17. package/dist/customer-portal/assets/DocumentList-f286e322.js +367 -0
  18. package/dist/customer-portal/assets/FaqItems-f0ea3578.js +1 -0
  19. package/dist/customer-portal/assets/FormContainer-e0ad1074.js +1 -0
  20. package/dist/customer-portal/assets/HorizontalMenuContent-c2ce9ba4.js +1 -0
  21. package/dist/customer-portal/assets/Input-f9dc9df7.js +1 -0
  22. package/dist/customer-portal/assets/LogInAsUser-5301a711.js +1 -0
  23. package/dist/customer-portal/assets/LogInAsUserSuccess-c53d408d.js +1 -0
  24. package/dist/customer-portal/assets/Logo-aa883174.js +1 -0
  25. package/dist/customer-portal/assets/ModernLayout-fd6ab4e1.js +1 -0
  26. package/dist/customer-portal/assets/Password-6017abd1.js +1 -0
  27. package/dist/customer-portal/assets/PasswordInput-f6e74528.js +1 -0
  28. package/dist/customer-portal/assets/Preview-bcdcb9ef.js +1 -0
  29. package/dist/customer-portal/assets/Product-ed043f08.js +1 -0
  30. package/dist/customer-portal/assets/ProductsLayout-c61b7a8e.js +1 -0
  31. package/dist/customer-portal/assets/Profile-d747fa18.js +1 -0
  32. package/dist/customer-portal/assets/Roboto-300-18827349.woff +0 -0
  33. package/dist/customer-portal/assets/Roboto-300-1d8f5280.woff2 +0 -0
  34. package/dist/customer-portal/assets/Roboto-300-a6d343d4.ttf +0 -0
  35. package/dist/customer-portal/assets/Roboto-400-47107401.woff2 +0 -0
  36. package/dist/customer-portal/assets/Roboto-400-79e85140.ttf +0 -0
  37. package/dist/customer-portal/assets/Roboto-400-9ae9d654.woff +0 -0
  38. package/dist/customer-portal/assets/Roboto-500-4112fbc9.woff +0 -0
  39. package/dist/customer-portal/assets/Roboto-500-96025fe9.woff2 +0 -0
  40. package/dist/customer-portal/assets/Roboto-500-f205cc51.ttf +0 -0
  41. package/dist/customer-portal/assets/Roboto-700-7d0b991e.ttf +0 -0
  42. package/dist/customer-portal/assets/Roboto-700-8e44376b.woff2 +0 -0
  43. package/dist/customer-portal/assets/Roboto-700-b1767a0c.woff +0 -0
  44. package/dist/customer-portal/assets/SegmentItemOption-1228dbe0.js +1 -0
  45. package/dist/customer-portal/assets/Select-19bd23ac.js +27 -0
  46. package/dist/customer-portal/assets/SidePanelContent-0d8d0ddd.js +1 -0
  47. package/dist/customer-portal/assets/SimpleLayout-a34ce3d6.js +2 -0
  48. package/dist/customer-portal/assets/StackedSideLayout-d20fda92.js +1 -0
  49. package/dist/customer-portal/assets/SubscriptionService-ff0a4fe5.js +1 -0
  50. package/dist/customer-portal/assets/SvgIcon-8e59e50e.css +6 -0
  51. package/dist/customer-portal/assets/SvgIcon-e50d8824.js +1008 -0
  52. package/dist/customer-portal/assets/Switcher-4b56d286.js +1 -0
  53. package/dist/customer-portal/assets/Tag-0a3ddbe2.js +1 -0
  54. package/dist/customer-portal/assets/TicketService-0b9fd2cc.js +1 -0
  55. package/dist/customer-portal/assets/Upload-f16cbbc9.js +127 -0
  56. package/dist/customer-portal/assets/UserService-379fdae4.js +1 -0
  57. package/dist/customer-portal/assets/Views-7025458f.js +1 -0
  58. package/dist/customer-portal/assets/ar-bb9d99db.js +1 -0
  59. package/dist/customer-portal/assets/cloneDeep-958c9090.js +1 -0
  60. package/dist/customer-portal/assets/dash.all.min-5cea336e.js +21 -0
  61. package/dist/customer-portal/assets/dxicons-695e35c5.woff +0 -0
  62. package/dist/customer-portal/assets/dxicons-a7f2b877.woff2 +0 -0
  63. package/dist/customer-portal/assets/dxicons-ce18ad67.ttf +0 -0
  64. package/dist/customer-portal/assets/dxiconsmaterial-042942d9.woff2 +0 -0
  65. package/dist/customer-portal/assets/dxiconsmaterial-2ca243c8.woff +0 -0
  66. package/dist/customer-portal/assets/dxiconsmaterial-d53bccef.ttf +0 -0
  67. package/dist/customer-portal/assets/en-e8193568.js +1 -0
  68. package/dist/customer-portal/assets/es-74fe811a.js +1 -0
  69. package/dist/customer-portal/assets/get-e6d75ebc.js +1 -0
  70. package/dist/customer-portal/assets/hls-78bd63bc.js +40 -0
  71. package/dist/customer-portal/assets/index-108e74a4.js +1 -0
  72. package/dist/customer-portal/assets/index-21f8ea30.js +3146 -0
  73. package/dist/customer-portal/assets/index-39f1f77e.js +1 -0
  74. package/dist/customer-portal/assets/index-50d9ba0e.js +1 -0
  75. package/dist/customer-portal/assets/index-51020fda.js +1 -0
  76. package/dist/customer-portal/assets/index-59b78927.js +1 -0
  77. package/dist/customer-portal/assets/index-5ee26094.js +1 -0
  78. package/dist/customer-portal/assets/index-6300b1cb.js +1 -0
  79. package/dist/customer-portal/assets/index-64f43f5c.js +1 -0
  80. package/dist/customer-portal/assets/index-737fd7d3.js +173 -0
  81. package/dist/customer-portal/assets/index-7b067308.js +1 -0
  82. package/dist/customer-portal/assets/index-7fb11654.css +1 -0
  83. package/dist/customer-portal/assets/index-8017aaa8.js +1 -0
  84. package/dist/customer-portal/assets/index-91a81028.js +1 -0
  85. package/dist/customer-portal/assets/index-99f3e22d.js +1 -0
  86. package/dist/customer-portal/assets/index-a05b664a.js +9 -0
  87. package/dist/customer-portal/assets/index-b2e5d3b2.js +1 -0
  88. package/dist/customer-portal/assets/index-bba6cb11.js +1 -0
  89. package/dist/customer-portal/assets/index-cdf4c2fe.js +1 -0
  90. package/dist/customer-portal/assets/index-ce7c8371.js +9 -0
  91. package/dist/customer-portal/assets/index-d7b1d047.js +1 -0
  92. package/dist/customer-portal/assets/index-f3b18a56.js +1 -0
  93. package/dist/customer-portal/assets/index.esm-2becf208.js +4 -0
  94. package/dist/customer-portal/assets/index.esm-7fca4988.js +1 -0
  95. package/dist/customer-portal/assets/index.esm-d90c2f28.js +1 -0
  96. package/dist/customer-portal/assets/isEmpty-d6a6848e.js +1 -0
  97. package/dist/customer-portal/assets/mixin-cf90cd8a.js +43 -0
  98. package/dist/customer-portal/assets/moment-a9aaa855.js +10 -0
  99. package/dist/customer-portal/assets/myCourse-1e27ebf2.js +1 -0
  100. package/dist/customer-portal/assets/react-22b3ad73.js +32 -0
  101. package/dist/customer-portal/assets/react-27635538.js +27 -0
  102. package/dist/customer-portal/assets/react-35db633d.js +31 -0
  103. package/dist/customer-portal/assets/react-55737d69.js +44 -0
  104. package/dist/customer-portal/assets/react-5e997bd3.js +37 -0
  105. package/dist/customer-portal/assets/react-72b07884.js +16 -0
  106. package/dist/customer-portal/assets/react-a5b37028.js +29 -0
  107. package/dist/customer-portal/assets/react-cbdc2827.js +11 -0
  108. package/dist/customer-portal/assets/strongPassword-dc805a65.js +1 -0
  109. package/dist/customer-portal/assets/supportTicketLists-64ba33fc.js +1 -0
  110. package/dist/customer-portal/assets/ticketDetails-25fa14db.js +1 -0
  111. package/dist/customer-portal/assets/useControllableState-ed446800.js +1 -0
  112. package/dist/customer-portal/assets/useThemeClass-61b1bbbf.js +1 -0
  113. package/dist/customer-portal/assets/useTimeOutMessage-04464c25.js +1 -0
  114. package/dist/customer-portal/assets/warning-eb037686.js +1 -0
  115. package/dist/customer-portal/assets/zh-cn-9d3866aa.js +1 -0
  116. package/dist/customer-portal/browserconfig.xml +9 -0
  117. package/dist/customer-portal/config.js +12 -0
  118. package/dist/customer-portal/data/features.json +11423 -0
  119. package/dist/customer-portal/data/order-list.csv +15 -0
  120. package/dist/customer-portal/data/product-list.csv +13 -0
  121. package/dist/customer-portal/data/unemployment-by-county-2017.csv +3220 -0
  122. package/dist/customer-portal/favicon-16x16.png +0 -0
  123. package/dist/customer-portal/favicon-32x32.png +0 -0
  124. package/dist/customer-portal/favicon.ico +0 -0
  125. package/dist/customer-portal/img/avatars/thumb-1.jpg +0 -0
  126. package/dist/customer-portal/img/avatars/thumb-10.jpg +0 -0
  127. package/dist/customer-portal/img/avatars/thumb-11.jpg +0 -0
  128. package/dist/customer-portal/img/avatars/thumb-12.jpg +0 -0
  129. package/dist/customer-portal/img/avatars/thumb-13.jpg +0 -0
  130. package/dist/customer-portal/img/avatars/thumb-14.jpg +0 -0
  131. package/dist/customer-portal/img/avatars/thumb-15.jpg +0 -0
  132. package/dist/customer-portal/img/avatars/thumb-16.jpg +0 -0
  133. package/dist/customer-portal/img/avatars/thumb-2.jpg +0 -0
  134. package/dist/customer-portal/img/avatars/thumb-3.jpg +0 -0
  135. package/dist/customer-portal/img/avatars/thumb-4.jpg +0 -0
  136. package/dist/customer-portal/img/avatars/thumb-5.jpg +0 -0
  137. package/dist/customer-portal/img/avatars/thumb-6.jpg +0 -0
  138. package/dist/customer-portal/img/avatars/thumb-7.jpg +0 -0
  139. package/dist/customer-portal/img/avatars/thumb-8.jpg +0 -0
  140. package/dist/customer-portal/img/avatars/thumb-9.jpg +0 -0
  141. package/dist/customer-portal/img/countries/ar.png +0 -0
  142. package/dist/customer-portal/img/countries/cn.png +0 -0
  143. package/dist/customer-portal/img/countries/fr.png +0 -0
  144. package/dist/customer-portal/img/countries/jp.png +0 -0
  145. package/dist/customer-portal/img/countries/sp.png +0 -0
  146. package/dist/customer-portal/img/countries/us.png +0 -0
  147. package/dist/customer-portal/img/email/email-logo.png +0 -0
  148. package/dist/customer-portal/img/icons/caCharts.svg +5396 -0
  149. package/dist/customer-portal/img/icons/caCounts.svg +10950 -0
  150. package/dist/customer-portal/img/icons/caGrids.svg +11059 -0
  151. package/dist/customer-portal/img/icons/caMaps.svg +10944 -0
  152. package/dist/customer-portal/img/icons/caPipelines.svg +11008 -0
  153. package/dist/customer-portal/img/icons/caStatus.svg +16718 -0
  154. package/dist/customer-portal/img/icons/caTargets.svg +10977 -0
  155. package/dist/customer-portal/img/icons/caTasks.svg +10995 -0
  156. package/dist/customer-portal/img/logo/Group.png +0 -0
  157. package/dist/customer-portal/img/logo/aica.svg +16 -0
  158. package/dist/customer-portal/img/logo/logo-dark-full.png +0 -0
  159. package/dist/customer-portal/img/logo/logo-dark-streamline.png +0 -0
  160. package/dist/customer-portal/img/logo/logo-grey.png +0 -0
  161. package/dist/customer-portal/img/logo/logo-light-full.png +0 -0
  162. package/dist/customer-portal/img/logo/logo-light-streamline.png +0 -0
  163. package/dist/customer-portal/img/logo/logo.svg +1 -0
  164. package/dist/customer-portal/img/map/pin-dark.png +0 -0
  165. package/dist/customer-portal/img/map/pin-orange.png +0 -0
  166. package/dist/customer-portal/img/map/pin-red.png +0 -0
  167. package/dist/customer-portal/img/others/auth-cover-bg.jpg +0 -0
  168. package/dist/customer-portal/img/others/auth-side-bg.jpg +0 -0
  169. package/dist/customer-portal/img/others/docs/blank-dark.jpg +0 -0
  170. package/dist/customer-portal/img/others/docs/blank.jpg +0 -0
  171. package/dist/customer-portal/img/others/docs/classic-dark.jpg +0 -0
  172. package/dist/customer-portal/img/others/docs/classic.jpg +0 -0
  173. package/dist/customer-portal/img/others/docs/decked-dark.jpg +0 -0
  174. package/dist/customer-portal/img/others/docs/decked.jpg +0 -0
  175. package/dist/customer-portal/img/others/docs/modern-dark.jpg +0 -0
  176. package/dist/customer-portal/img/others/docs/modern.jpg +0 -0
  177. package/dist/customer-portal/img/others/docs/simple-dark.jpg +0 -0
  178. package/dist/customer-portal/img/others/docs/simple.jpg +0 -0
  179. package/dist/customer-portal/img/others/docs/stackedSide-dark.jpg +0 -0
  180. package/dist/customer-portal/img/others/docs/stackedSide.jpg +0 -0
  181. package/dist/customer-portal/img/others/img-1.jpg +0 -0
  182. package/dist/customer-portal/img/others/img-10.png +0 -0
  183. package/dist/customer-portal/img/others/img-11.jpg +0 -0
  184. package/dist/customer-portal/img/others/img-13.jpg +0 -0
  185. package/dist/customer-portal/img/others/img-14.jpg +0 -0
  186. package/dist/customer-portal/img/others/img-15.jpg +0 -0
  187. package/dist/customer-portal/img/others/img-16.jpg +0 -0
  188. package/dist/customer-portal/img/others/img-17.png +0 -0
  189. package/dist/customer-portal/img/others/img-2-dark.png +0 -0
  190. package/dist/customer-portal/img/others/img-2.png +0 -0
  191. package/dist/customer-portal/img/others/img-8.png +0 -0
  192. package/dist/customer-portal/img/others/img-9.png +0 -0
  193. package/dist/customer-portal/img/others/no-mail-selected-dark.png +0 -0
  194. package/dist/customer-portal/img/others/no-mail-selected.png +0 -0
  195. package/dist/customer-portal/img/others/no-notification.png +0 -0
  196. package/dist/customer-portal/img/others/pending-approval-dark.png +0 -0
  197. package/dist/customer-portal/img/others/pending-approval.png +0 -0
  198. package/dist/customer-portal/img/others/upload-dark.png +0 -0
  199. package/dist/customer-portal/img/others/upload.png +0 -0
  200. package/dist/customer-portal/img/others/welcome-dark.png +0 -0
  201. package/dist/customer-portal/img/others/welcome.png +0 -0
  202. package/dist/customer-portal/img/products/product-1-2.jpg +0 -0
  203. package/dist/customer-portal/img/products/product-1-3.jpg +0 -0
  204. package/dist/customer-portal/img/products/product-1-4.jpg +0 -0
  205. package/dist/customer-portal/img/products/product-1.jpg +0 -0
  206. package/dist/customer-portal/img/products/product-10.jpg +0 -0
  207. package/dist/customer-portal/img/products/product-11.jpg +0 -0
  208. package/dist/customer-portal/img/products/product-12.jpg +0 -0
  209. package/dist/customer-portal/img/products/product-2-2.jpg +0 -0
  210. package/dist/customer-portal/img/products/product-2.jpg +0 -0
  211. package/dist/customer-portal/img/products/product-3.jpg +0 -0
  212. package/dist/customer-portal/img/products/product-4.jpg +0 -0
  213. package/dist/customer-portal/img/products/product-5.jpg +0 -0
  214. package/dist/customer-portal/img/products/product-6.jpg +0 -0
  215. package/dist/customer-portal/img/products/product-7.jpg +0 -0
  216. package/dist/customer-portal/img/products/product-8.jpg +0 -0
  217. package/dist/customer-portal/img/products/product-9.jpg +0 -0
  218. package/dist/customer-portal/img/theme/bg_center_image.jpg +0 -0
  219. package/dist/customer-portal/img/theme/login_center.jpg +0 -0
  220. package/dist/customer-portal/img/theme/login_side.jpg +0 -0
  221. package/dist/customer-portal/img/theme/login_side_wide.jpg +0 -0
  222. package/dist/customer-portal/img/thumbs/adobe-xd.png +0 -0
  223. package/dist/customer-portal/img/thumbs/avalanche.png +0 -0
  224. package/dist/customer-portal/img/thumbs/bitcoin-cash.png +0 -0
  225. package/dist/customer-portal/img/thumbs/bitcoin-sv.png +0 -0
  226. package/dist/customer-portal/img/thumbs/bitcoin.png +0 -0
  227. package/dist/customer-portal/img/thumbs/cardano.png +0 -0
  228. package/dist/customer-portal/img/thumbs/chainlink.png +0 -0
  229. package/dist/customer-portal/img/thumbs/doge.png +0 -0
  230. package/dist/customer-portal/img/thumbs/drivers-license-back-dark.png +0 -0
  231. package/dist/customer-portal/img/thumbs/drivers-license-back.png +0 -0
  232. package/dist/customer-portal/img/thumbs/drivers-license-front-dark.png +0 -0
  233. package/dist/customer-portal/img/thumbs/drivers-license-front.png +0 -0
  234. package/dist/customer-portal/img/thumbs/dropbox.png +0 -0
  235. package/dist/customer-portal/img/thumbs/eos.png +0 -0
  236. package/dist/customer-portal/img/thumbs/ethereum.png +0 -0
  237. package/dist/customer-portal/img/thumbs/figma.png +0 -0
  238. package/dist/customer-portal/img/thumbs/github.png +0 -0
  239. package/dist/customer-portal/img/thumbs/gitlab.png +0 -0
  240. package/dist/customer-portal/img/thumbs/google-drive.png +0 -0
  241. package/dist/customer-portal/img/thumbs/help-center-category-0-dark.png +0 -0
  242. package/dist/customer-portal/img/thumbs/help-center-category-0.png +0 -0
  243. package/dist/customer-portal/img/thumbs/help-center-category-1-dark.png +0 -0
  244. package/dist/customer-portal/img/thumbs/help-center-category-1.png +0 -0
  245. package/dist/customer-portal/img/thumbs/help-center-category-2-dark.png +0 -0
  246. package/dist/customer-portal/img/thumbs/help-center-category-2.png +0 -0
  247. package/dist/customer-portal/img/thumbs/help-center-category-3-dark.png +0 -0
  248. package/dist/customer-portal/img/thumbs/help-center-category-3.png +0 -0
  249. package/dist/customer-portal/img/thumbs/help-center-category-4-dark.png +0 -0
  250. package/dist/customer-portal/img/thumbs/help-center-category-4.png +0 -0
  251. package/dist/customer-portal/img/thumbs/help-center-category-5-dark.png +0 -0
  252. package/dist/customer-portal/img/thumbs/help-center-category-5.png +0 -0
  253. package/dist/customer-portal/img/thumbs/help-center-category-6-dark.png +0 -0
  254. package/dist/customer-portal/img/thumbs/help-center-category-6.png +0 -0
  255. package/dist/customer-portal/img/thumbs/help-center-category-7-dark.png +0 -0
  256. package/dist/customer-portal/img/thumbs/help-center-category-7.png +0 -0
  257. package/dist/customer-portal/img/thumbs/hubspot.png +0 -0
  258. package/dist/customer-portal/img/thumbs/id-card-back-dark.png +0 -0
  259. package/dist/customer-portal/img/thumbs/id-card-back.png +0 -0
  260. package/dist/customer-portal/img/thumbs/id-card-front-dark.png +0 -0
  261. package/dist/customer-portal/img/thumbs/id-card-front.png +0 -0
  262. package/dist/customer-portal/img/thumbs/jira.png +0 -0
  263. package/dist/customer-portal/img/thumbs/layouts/blank-dark.jpg +0 -0
  264. package/dist/customer-portal/img/thumbs/layouts/blank.jpg +0 -0
  265. package/dist/customer-portal/img/thumbs/layouts/classic-dark.jpg +0 -0
  266. package/dist/customer-portal/img/thumbs/layouts/classic.jpg +0 -0
  267. package/dist/customer-portal/img/thumbs/layouts/decked-dark.jpg +0 -0
  268. package/dist/customer-portal/img/thumbs/layouts/decked.jpg +0 -0
  269. package/dist/customer-portal/img/thumbs/layouts/modern-dark.jpg +0 -0
  270. package/dist/customer-portal/img/thumbs/layouts/modern.jpg +0 -0
  271. package/dist/customer-portal/img/thumbs/layouts/simple-dark.jpg +0 -0
  272. package/dist/customer-portal/img/thumbs/layouts/simple.jpg +0 -0
  273. package/dist/customer-portal/img/thumbs/layouts/stackedSide-dark.jpg +0 -0
  274. package/dist/customer-portal/img/thumbs/layouts/stackedSide.jpg +0 -0
  275. package/dist/customer-portal/img/thumbs/litecoin.png +0 -0
  276. package/dist/customer-portal/img/thumbs/miota.png +0 -0
  277. package/dist/customer-portal/img/thumbs/monero.png +0 -0
  278. package/dist/customer-portal/img/thumbs/notion.png +0 -0
  279. package/dist/customer-portal/img/thumbs/passport-dark.png +0 -0
  280. package/dist/customer-portal/img/thumbs/passport-data-dark.png +0 -0
  281. package/dist/customer-portal/img/thumbs/passport-data.png +0 -0
  282. package/dist/customer-portal/img/thumbs/passport.png +0 -0
  283. package/dist/customer-portal/img/thumbs/polkadot.png +0 -0
  284. package/dist/customer-portal/img/thumbs/polygon.png +0 -0
  285. package/dist/customer-portal/img/thumbs/ripple.png +0 -0
  286. package/dist/customer-portal/img/thumbs/saleforce-crm.png +0 -0
  287. package/dist/customer-portal/img/thumbs/shiba-inu.png +0 -0
  288. package/dist/customer-portal/img/thumbs/sketch.png +0 -0
  289. package/dist/customer-portal/img/thumbs/slack.png +0 -0
  290. package/dist/customer-portal/img/thumbs/solana.png +0 -0
  291. package/dist/customer-portal/img/thumbs/stellar-lumens.png +0 -0
  292. package/dist/customer-portal/img/thumbs/tether-us.png +0 -0
  293. package/dist/customer-portal/img/thumbs/tron.png +0 -0
  294. package/dist/customer-portal/img/thumbs/zapier.png +0 -0
  295. package/dist/customer-portal/img/thumbs/zendesk.png +0 -0
  296. package/dist/customer-portal/img/video/bg-login.mp4 +0 -0
  297. package/dist/customer-portal/index.html +31 -0
  298. package/dist/customer-portal/logo192.png +0 -0
  299. package/dist/customer-portal/logo512.png +0 -0
  300. package/dist/customer-portal/manifest.json +20 -0
  301. package/dist/customer-portal/mstile-150x150.png +0 -0
  302. package/dist/customer-portal/robots.txt +3 -0
  303. package/dist/customer-portal/safari-pinned-tab.svg +70 -0
  304. package/dist/customer-portal/web.config +27 -0
  305. package/index.bundle.js +71 -37
  306. package/package.json +1 -1
@@ -0,0 +1,1008 @@
1
+ import{bb as $f,r as K,j as Le,am as Uf,c as gi,cf as Zf,cg as Kf,R as qe,ap as mn,b9 as Qf,g as Jf}from"./index-737fd7d3.js";import{p as ed,P as re}from"./warning-eb037686.js";import{S as Nl,T as Fs,P as td,a as nd}from"./Tag-0a3ddbe2.js";import{S as id,b as rd,d as ad,e as Fl,o as od,f as sd,s as ld}from"./Select-19bd23ac.js";import{C as ud,_ as cd}from"./index-cdf4c2fe.js";var hd={};/*!
2
+ * ApexCharts v4.7.0
3
+ * (c) 2018-2025 ApexCharts
4
+ * Released under the MIT License.
5
+ */function Lo(i,e){(e==null||e>i.length)&&(e=i.length);for(var t=0,n=Array(e);t<e;t++)n[t]=i[t];return n}function wc(i){if(i===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return i}function ae(i,e){if(!(i instanceof e))throw new TypeError("Cannot call a class as a function")}function zl(i,e){for(var t=0;t<e.length;t++){var n=e[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(i,Ac(n.key),n)}}function oe(i,e,t){return e&&zl(i.prototype,e),t&&zl(i,t),Object.defineProperty(i,"prototype",{writable:!1}),i}function Bi(i,e){var t=typeof Symbol<"u"&&i[Symbol.iterator]||i["@@iterator"];if(!t){if(Array.isArray(i)||(t=zs(i))||e&&i&&typeof i.length=="number"){t&&(i=t);var n=0,r=function(){};return{s:r,n:function(){return n>=i.length?{done:!0}:{done:!1,value:i[n++]}},e:function(l){throw l},f:r}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
6
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a,o=!0,s=!1;return{s:function(){t=t.call(i)},n:function(){var l=t.next();return o=l.done,l},e:function(l){s=!0,a=l},f:function(){try{o||t.return==null||t.return()}finally{if(s)throw a}}}}function mr(i){var e=Sc();return function(){var t,n=aa(i);if(e){var r=aa(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return function(a,o){if(o&&(typeof o=="object"||typeof o=="function"))return o;if(o!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return wc(a)}(this,t)}}function ra(i,e,t){return(e=Ac(e))in i?Object.defineProperty(i,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):i[e]=t,i}function aa(i){return aa=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},aa(i)}function yr(i,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");i.prototype=Object.create(e&&e.prototype,{constructor:{value:i,writable:!0,configurable:!0}}),Object.defineProperty(i,"prototype",{writable:!1}),e&&To(i,e)}function Sc(){try{var i=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Sc=function(){return!!i})()}function Dl(i,e){var t=Object.keys(i);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(i);e&&(n=n.filter(function(r){return Object.getOwnPropertyDescriptor(i,r).enumerable})),t.push.apply(t,n)}return t}function ne(i){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?Dl(Object(t),!0).forEach(function(n){ra(i,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(t)):Dl(Object(t)).forEach(function(n){Object.defineProperty(i,n,Object.getOwnPropertyDescriptor(t,n))})}return i}function To(i,e){return To=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,n){return t.__proto__=n,t},To(i,e)}function kc(i,e){return function(t){if(Array.isArray(t))return t}(i)||function(t,n){var r=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(r!=null){var a,o,s,l,h=[],u=!0,c=!1;try{if(s=(r=r.call(t)).next,n===0){if(Object(r)!==r)return;u=!1}else for(;!(u=(a=s.call(r)).done)&&(h.push(a.value),h.length!==n);u=!0);}catch(f){c=!0,o=f}finally{try{if(!u&&r.return!=null&&(l=r.return(),Object(l)!==l))return}finally{if(c)throw o}}return h}}(i,e)||zs(i,e)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
7
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function nt(i){return function(e){if(Array.isArray(e))return Lo(e)}(i)||function(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}(i)||zs(i)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
8
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function Ac(i){var e=function(t,n){if(typeof t!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var a=r.call(t,n||"default");if(typeof a!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(t)}(i,"string");return typeof e=="symbol"?e:e+""}function pi(i){return pi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},pi(i)}function zs(i,e){if(i){if(typeof i=="string")return Lo(i,e);var t={}.toString.call(i).slice(8,-1);return t==="Object"&&i.constructor&&(t=i.constructor.name),t==="Map"||t==="Set"?Array.from(i):t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?Lo(i,e):void 0}}var q=function(){function i(){ae(this,i)}return oe(i,[{key:"shadeRGBColor",value:function(e,t){var n=t.split(","),r=e<0?0:255,a=e<0?-1*e:e,o=parseInt(n[0].slice(4),10),s=parseInt(n[1],10),l=parseInt(n[2],10);return"rgb("+(Math.round((r-o)*a)+o)+","+(Math.round((r-s)*a)+s)+","+(Math.round((r-l)*a)+l)+")"}},{key:"shadeHexColor",value:function(e,t){var n=parseInt(t.slice(1),16),r=e<0?0:255,a=e<0?-1*e:e,o=n>>16,s=n>>8&255,l=255&n;return"#"+(16777216+65536*(Math.round((r-o)*a)+o)+256*(Math.round((r-s)*a)+s)+(Math.round((r-l)*a)+l)).toString(16).slice(1)}},{key:"shadeColor",value:function(e,t){return i.isColorHex(t)?this.shadeHexColor(e,t):this.shadeRGBColor(e,t)}}],[{key:"bind",value:function(e,t){return function(){return e.apply(t,arguments)}}},{key:"isObject",value:function(e){return e&&pi(e)==="object"&&!Array.isArray(e)&&e!=null}},{key:"is",value:function(e,t){return Object.prototype.toString.call(t)==="[object "+e+"]"}},{key:"isSafari",value:function(){return/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}},{key:"listToArray",value:function(e){var t,n=[];for(t=0;t<e.length;t++)n[t]=e[t];return n}},{key:"extend",value:function(e,t){var n=this;typeof Object.assign!="function"&&(Object.assign=function(a){if(a==null)throw new TypeError("Cannot convert undefined or null to object");for(var o=Object(a),s=1;s<arguments.length;s++){var l=arguments[s];if(l!=null)for(var h in l)l.hasOwnProperty(h)&&(o[h]=l[h])}return o});var r=Object.assign({},e);return this.isObject(e)&&this.isObject(t)&&Object.keys(t).forEach(function(a){n.isObject(t[a])&&a in e?r[a]=n.extend(e[a],t[a]):Object.assign(r,ra({},a,t[a]))}),r}},{key:"extendArray",value:function(e,t){var n=[];return e.map(function(r){n.push(i.extend(t,r))}),e=n}},{key:"monthMod",value:function(e){return e%12}},{key:"clone",value:function(e){var t,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:new WeakMap;if(e===null||pi(e)!=="object")return e;if(n.has(e))return n.get(e);if(Array.isArray(e)){t=[],n.set(e,t);for(var r=0;r<e.length;r++)t[r]=this.clone(e[r],n)}else if(e instanceof Date)t=new Date(e.getTime());else for(var a in t={},n.set(e,t),e)e.hasOwnProperty(a)&&(t[a]=this.clone(e[a],n));return t}},{key:"log10",value:function(e){return Math.log(e)/Math.LN10}},{key:"roundToBase10",value:function(e){return Math.pow(10,Math.floor(Math.log10(e)))}},{key:"roundToBase",value:function(e,t){return Math.pow(t,Math.floor(Math.log(e)/Math.log(t)))}},{key:"parseNumber",value:function(e){return e===null?e:parseFloat(e)}},{key:"stripNumber",value:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;return Number.isInteger(e)?e:parseFloat(e.toPrecision(t))}},{key:"randomId",value:function(){return(Math.random()+1).toString(36).substring(4)}},{key:"noExponents",value:function(e){return e.toString().includes("e")?Math.round(e):e}},{key:"elementExists",value:function(e){return!(!e||!e.isConnected)}},{key:"getDimensions",value:function(e){var t=getComputedStyle(e,null),n=e.clientHeight,r=e.clientWidth;return n-=parseFloat(t.paddingTop)+parseFloat(t.paddingBottom),[r-=parseFloat(t.paddingLeft)+parseFloat(t.paddingRight),n]}},{key:"getBoundingClientRect",value:function(e){var t=e.getBoundingClientRect();return{top:t.top,right:t.right,bottom:t.bottom,left:t.left,width:e.clientWidth,height:e.clientHeight,x:t.left,y:t.top}}},{key:"getLargestStringFromArr",value:function(e){return e.reduce(function(t,n){return Array.isArray(n)&&(n=n.reduce(function(r,a){return r.length>a.length?r:a})),t.length>n.length?t:n},0)}},{key:"hexToRgba",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"#999999",t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:.6;e.substring(0,1)!=="#"&&(e="#999999");var n=e.replace("#","");n=n.match(new RegExp("(.{"+n.length/3+"})","g"));for(var r=0;r<n.length;r++)n[r]=parseInt(n[r].length===1?n[r]+n[r]:n[r],16);return t!==void 0&&n.push(t),"rgba("+n.join(",")+")"}},{key:"getOpacityFromRGBA",value:function(e){return parseFloat(e.replace(/^.*,(.+)\)/,"$1"))}},{key:"rgb2hex",value:function(e){return(e=e.match(/^rgba?[\s+]?\([\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?/i))&&e.length===4?"#"+("0"+parseInt(e[1],10).toString(16)).slice(-2)+("0"+parseInt(e[2],10).toString(16)).slice(-2)+("0"+parseInt(e[3],10).toString(16)).slice(-2):""}},{key:"isColorHex",value:function(e){return/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)|(^#[0-9A-F]{8}$)/i.test(e)}},{key:"getPolygonPos",value:function(e,t){for(var n=[],r=2*Math.PI/t,a=0;a<t;a++){var o={};o.x=e*Math.sin(a*r),o.y=-e*Math.cos(a*r),n.push(o)}return n}},{key:"polarToCartesian",value:function(e,t,n,r){var a=(r-90)*Math.PI/180;return{x:e+n*Math.cos(a),y:t+n*Math.sin(a)}}},{key:"escapeString",value:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"x",n=e.toString().slice();return n=n.replace(/[` ~!@#$%^&*()|+\=?;:'",.<>{}[\]\\/]/gi,t)}},{key:"negToZero",value:function(e){return e<0?0:e}},{key:"moveIndexInArray",value:function(e,t,n){if(n>=e.length)for(var r=n-e.length+1;r--;)e.push(void 0);return e.splice(n,0,e.splice(t,1)[0]),e}},{key:"extractNumber",value:function(e){return parseFloat(e.replace(/[^\d.]*/g,""))}},{key:"findAncestor",value:function(e,t){for(;(e=e.parentElement)&&!e.classList.contains(t););return e}},{key:"setELstyles",value:function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e.style.key=t[n])}},{key:"preciseAddition",value:function(e,t){var n=(String(e).split(".")[1]||"").length,r=(String(t).split(".")[1]||"").length,a=Math.pow(10,Math.max(n,r));return(Math.round(e*a)+Math.round(t*a))/a}},{key:"isNumber",value:function(e){return!isNaN(e)&&parseFloat(Number(e))===e&&!isNaN(parseInt(e,10))}},{key:"isFloat",value:function(e){return Number(e)===e&&e%1!=0}},{key:"isMsEdge",value:function(){var e=window.navigator.userAgent,t=e.indexOf("Edge/");return t>0&&parseInt(e.substring(t+5,e.indexOf(".",t)),10)}},{key:"getGCD",value:function(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:7,r=Math.pow(10,n-Math.floor(Math.log10(Math.max(e,t))));for(e=Math.round(Math.abs(e)*r),t=Math.round(Math.abs(t)*r);t;){var a=t;t=e%t,e=a}return e/r}},{key:"getPrimeFactors",value:function(e){for(var t=[],n=2;e>=2;)e%n==0?(t.push(n),e/=n):n++;return t}},{key:"mod",value:function(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:7,r=Math.pow(10,n-Math.floor(Math.log10(Math.max(e,t))));return(e=Math.round(Math.abs(e)*r))%(t=Math.round(Math.abs(t)*r))/r}}]),i}(),ki=function(){function i(e){ae(this,i),this.ctx=e,this.w=e.w}return oe(i,[{key:"animateLine",value:function(e,t,n,r){e.attr(t).animate(r).attr(n)}},{key:"animateMarker",value:function(e,t,n,r){e.attr({opacity:0}).animate(t).attr({opacity:1}).after(function(){r()})}},{key:"animateRect",value:function(e,t,n,r,a){e.attr(t).animate(r).attr(n).after(function(){return a()})}},{key:"animatePathsGradually",value:function(e){var t=e.el,n=e.realIndex,r=e.j,a=e.fill,o=e.pathFrom,s=e.pathTo,l=e.speed,h=e.delay,u=this.w,c=0;u.config.chart.animations.animateGradually.enabled&&(c=u.config.chart.animations.animateGradually.delay),u.config.chart.animations.dynamicAnimation.enabled&&u.globals.dataChanged&&u.config.chart.type!=="bar"&&(c=0),this.morphSVG(t,n,r,u.config.chart.type!=="line"||u.globals.comboCharts?a:"stroke",o,s,l,h*c)}},{key:"showDelayedElements",value:function(){this.w.globals.delayedElements.forEach(function(e){var t=e.el;t.classList.remove("apexcharts-element-hidden"),t.classList.add("apexcharts-hidden-element-shown")})}},{key:"animationCompleted",value:function(e){var t=this.w;t.globals.animationEnded||(t.globals.animationEnded=!0,this.showDelayedElements(),typeof t.config.chart.events.animationEnd=="function"&&t.config.chart.events.animationEnd(this.ctx,{el:e,w:t}))}},{key:"morphSVG",value:function(e,t,n,r,a,o,s,l){var h=this,u=this.w;a||(a=e.attr("pathFrom")),o||(o=e.attr("pathTo"));var c=function(f){return u.config.chart.type==="radar"&&(s=1),"M 0 ".concat(u.globals.gridHeight)};(!a||a.indexOf("undefined")>-1||a.indexOf("NaN")>-1)&&(a=c()),(!o.trim()||o.indexOf("undefined")>-1||o.indexOf("NaN")>-1)&&(o=c()),u.globals.shouldAnimate||(s=1),e.plot(a).animate(1,l).plot(a).animate(s,l).plot(o).after(function(){q.isNumber(n)?n===u.globals.series[u.globals.maxValsInArrayIndex].length-2&&u.globals.shouldAnimate&&h.animationCompleted(e):r!=="none"&&u.globals.shouldAnimate&&(!u.globals.comboCharts&&t===u.globals.series.length-1||u.globals.comboCharts)&&h.animationCompleted(e),h.showDelayedElements()})}}]),i}();const Io={},Cc=[];function _e(i,e){if(Array.isArray(i))for(const t of i)_e(t,e);else if(typeof i!="object")_c(Object.getOwnPropertyNames(e)),Io[i]=Object.assign(Io[i]||{},e);else for(const t in i)_e(t,i[t])}function _t(i){return Io[i]||{}}function _c(i){Cc.push(...i)}function Ds(i,e){let t;const n=i.length,r=[];for(t=0;t<n;t++)r.push(e(i[t]));return r}function Ka(i){return i%360*Math.PI/180}function Ai(i){return i.charAt(0).toUpperCase()+i.slice(1)}function Ci(i,e,t,n){return e!=null&&t!=null||(n=n||i.bbox(),e==null?e=n.width/n.height*t:t==null&&(t=n.height/n.width*e)),{width:e,height:t}}function No(i,e){const t=i.origin;let n=i.ox!=null?i.ox:i.originX!=null?i.originX:"center",r=i.oy!=null?i.oy:i.originY!=null?i.originY:"center";t!=null&&([n,r]=Array.isArray(t)?t:typeof t=="object"?[t.x,t.y]:[t,t]);const a=typeof n=="string",o=typeof r=="string";if(a||o){const{height:s,width:l,x:h,y:u}=e.bbox();a&&(n=n.includes("left")?h:n.includes("right")?h+l:h+l/2),o&&(r=r.includes("top")?u:r.includes("bottom")?u+s:u+s/2)}return[n,r]}const fd=new Set(["desc","metadata","title"]),Fo=i=>fd.has(i.nodeName),Ec=(i,e,t={})=>{const n={...e};for(const r in n)n[r].valueOf()===t[r]&&delete n[r];Object.keys(n).length?i.node.setAttribute("data-svgjs",JSON.stringify(n)):(i.node.removeAttribute("data-svgjs"),i.node.removeAttribute("svgjs:data"))},Hs="http://www.w3.org/2000/svg",Qa="http://www.w3.org/2000/xmlns/",_i="http://www.w3.org/1999/xlink",Te={window:typeof window>"u"?null:window,document:typeof document>"u"?null:document};function xr(){return Te.window}let Bs=class{};const Wn={},Xs="___SYMBOL___ROOT___";function ir(i,e=Hs){return Te.document.createElementNS(e,i)}function bt(i,e=!1){if(i instanceof Bs)return i;if(typeof i=="object")return Ja(i);if(i==null)return new Wn[Xs];if(typeof i=="string"&&i.charAt(0)!=="<")return Ja(Te.document.querySelector(i));const t=e?Te.document.createElement("div"):ir("svg");return t.innerHTML=i,i=Ja(t.firstChild),t.removeChild(t.firstChild),i}function je(i,e){return e&&(e instanceof Te.window.Node||e.ownerDocument&&e instanceof e.ownerDocument.defaultView.Node)?e:ir(i)}function Bt(i){if(!i)return null;if(i.instance instanceof Bs)return i.instance;if(i.nodeName==="#document-fragment")return new Wn.Fragment(i);let e=Ai(i.nodeName||"Dom");return e==="LinearGradient"||e==="RadialGradient"?e="Gradient":Wn[e]||(e="Dom"),new Wn[e](i)}let Ja=Bt;function Ie(i,e=i.name,t=!1){return Wn[e]=i,t&&(Wn[Xs]=i),_c(Object.getOwnPropertyNames(i.prototype)),i}let dd=1e3;function Oc(i){return"Svgjs"+Ai(i)+dd++}function Mc(i){for(let e=i.children.length-1;e>=0;e--)Mc(i.children[e]);return i.id&&(i.id=Oc(i.nodeName)),i}function ye(i,e){let t,n;for(n=(i=Array.isArray(i)?i:[i]).length-1;n>=0;n--)for(t in e)i[n].prototype[t]=e[t]}function Ye(i){return function(...e){const t=e[e.length-1];return!t||t.constructor!==Object||t instanceof Array?i.apply(this,e):i.apply(this,e.slice(0,-1)).attr(t)}}_e("Dom",{siblings:function(){return this.parent().children()},position:function(){return this.parent().index(this)},next:function(){return this.siblings()[this.position()+1]},prev:function(){return this.siblings()[this.position()-1]},forward:function(){const i=this.position();return this.parent().add(this.remove(),i+1),this},backward:function(){const i=this.position();return this.parent().add(this.remove(),i?i-1:0),this},front:function(){return this.parent().add(this.remove()),this},back:function(){return this.parent().add(this.remove(),0),this},before:function(i){(i=bt(i)).remove();const e=this.position();return this.parent().add(i,e),this},after:function(i){(i=bt(i)).remove();const e=this.position();return this.parent().add(i,e+1),this},insertBefore:function(i){return(i=bt(i)).before(this),this},insertAfter:function(i){return(i=bt(i)).after(this),this}});const Pc=/^([+-]?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?)([a-z%]*)$/i,gd=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i,pd=/rgb\((\d+),(\d+),(\d+)\)/,vd=/(#[a-z_][a-z0-9\-_]*)/i,md=/\)\s*,?\s*/,yd=/\s/g,Hl=/^#[a-f0-9]{3}$|^#[a-f0-9]{6}$/i,Bl=/^rgb\(/,Xl=/^(\s+)?$/,Yl=/^[+-]?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,xd=/\.(jpg|jpeg|png|gif|svg)(\?[^=]+.*)?/i,bn=/[\s,]+/,Ys=/[MLHVCSQTAZ]/i;function bd(i){const e=Math.round(i),t=Math.max(0,Math.min(255,e)).toString(16);return t.length===1?"0"+t:t}function ii(i,e){for(let t=e.length;t--;)if(i[e[t]]==null)return!1;return!0}function eo(i,e,t){return t<0&&(t+=1),t>1&&(t-=1),t<1/6?i+6*(e-i)*t:t<.5?e:t<2/3?i+(e-i)*(2/3-t)*6:i}_e("Dom",{classes:function(){const i=this.attr("class");return i==null?[]:i.trim().split(bn)},hasClass:function(i){return this.classes().indexOf(i)!==-1},addClass:function(i){if(!this.hasClass(i)){const e=this.classes();e.push(i),this.attr("class",e.join(" "))}return this},removeClass:function(i){return this.hasClass(i)&&this.attr("class",this.classes().filter(function(e){return e!==i}).join(" ")),this},toggleClass:function(i){return this.hasClass(i)?this.removeClass(i):this.addClass(i)}}),_e("Dom",{css:function(i,e){const t={};if(arguments.length===0)return this.node.style.cssText.split(/\s*;\s*/).filter(function(n){return!!n.length}).forEach(function(n){const r=n.split(/\s*:\s*/);t[r[0]]=r[1]}),t;if(arguments.length<2){if(Array.isArray(i)){for(const n of i){const r=n;t[n]=this.node.style.getPropertyValue(r)}return t}if(typeof i=="string")return this.node.style.getPropertyValue(i);if(typeof i=="object")for(const n in i)this.node.style.setProperty(n,i[n]==null||Xl.test(i[n])?"":i[n])}return arguments.length===2&&this.node.style.setProperty(i,e==null||Xl.test(e)?"":e),this},show:function(){return this.css("display","")},hide:function(){return this.css("display","none")},visible:function(){return this.css("display")!=="none"}}),_e("Dom",{data:function(i,e,t){if(i==null)return this.data(Ds(function(n,r){let a;const o=n.length,s=[];for(a=0;a<o;a++)r(n[a])&&s.push(n[a]);return s}(this.node.attributes,n=>n.nodeName.indexOf("data-")===0),n=>n.nodeName.slice(5)));if(i instanceof Array){const n={};for(const r of i)n[r]=this.data(r);return n}if(typeof i=="object")for(e in i)this.data(e,i[e]);else if(arguments.length<2)try{return JSON.parse(this.attr("data-"+i))}catch{return this.attr("data-"+i)}else this.attr("data-"+i,e===null?null:t===!0||typeof e=="string"||typeof e=="number"?e:JSON.stringify(e));return this}}),_e("Dom",{remember:function(i,e){if(typeof arguments[0]=="object")for(const t in i)this.remember(t,i[t]);else{if(arguments.length===1)return this.memory()[i];this.memory()[i]=e}return this},forget:function(){if(arguments.length===0)this._memory={};else for(let i=arguments.length-1;i>=0;i--)delete this.memory()[arguments[i]];return this},memory:function(){return this._memory=this._memory||{}}});class He{constructor(...e){this.init(...e)}static isColor(e){return e&&(e instanceof He||this.isRgb(e)||this.test(e))}static isRgb(e){return e&&typeof e.r=="number"&&typeof e.g=="number"&&typeof e.b=="number"}static random(e="vibrant",t){const{random:n,round:r,sin:a,PI:o}=Math;if(e==="vibrant"){const s=24*n()+57,l=38*n()+45,h=360*n();return new He(s,l,h,"lch")}if(e==="sine"){const s=r(80*a(2*o*(t=t??n())/.5+.01)+150),l=r(50*a(2*o*t/.5+4.6)+200),h=r(100*a(2*o*t/.5+2.3)+150);return new He(s,l,h)}if(e==="pastel"){const s=8*n()+86,l=17*n()+9,h=360*n();return new He(s,l,h,"lch")}if(e==="dark"){const s=10+10*n(),l=50*n()+86,h=360*n();return new He(s,l,h,"lch")}if(e==="rgb"){const s=255*n(),l=255*n(),h=255*n();return new He(s,l,h)}if(e==="lab"){const s=100*n(),l=256*n()-128,h=256*n()-128;return new He(s,l,h,"lab")}if(e==="grey"){const s=255*n();return new He(s,s,s)}throw new Error("Unsupported random color mode")}static test(e){return typeof e=="string"&&(Hl.test(e)||Bl.test(e))}cmyk(){const{_a:e,_b:t,_c:n}=this.rgb(),[r,a,o]=[e,t,n].map(l=>l/255),s=Math.min(1-r,1-a,1-o);return s===1?new He(0,0,0,1,"cmyk"):new He((1-r-s)/(1-s),(1-a-s)/(1-s),(1-o-s)/(1-s),s,"cmyk")}hsl(){const{_a:e,_b:t,_c:n}=this.rgb(),[r,a,o]=[e,t,n].map(f=>f/255),s=Math.max(r,a,o),l=Math.min(r,a,o),h=(s+l)/2,u=s===l,c=s-l;return new He(360*(u?0:s===r?((a-o)/c+(a<o?6:0))/6:s===a?((o-r)/c+2)/6:s===o?((r-a)/c+4)/6:0),100*(u?0:h>.5?c/(2-s-l):c/(s+l)),100*h,"hsl")}init(e=0,t=0,n=0,r=0,a="rgb"){if(e=e||0,this.space)for(const c in this.space)delete this[this.space[c]];if(typeof e=="number")a=typeof r=="string"?r:a,r=typeof r=="string"?0:r,Object.assign(this,{_a:e,_b:t,_c:n,_d:r,space:a});else if(e instanceof Array)this.space=t||(typeof e[3]=="string"?e[3]:e[4])||"rgb",Object.assign(this,{_a:e[0],_b:e[1],_c:e[2],_d:e[3]||0});else if(e instanceof Object){const c=function(f,d){const p=ii(f,"rgb")?{_a:f.r,_b:f.g,_c:f.b,_d:0,space:"rgb"}:ii(f,"xyz")?{_a:f.x,_b:f.y,_c:f.z,_d:0,space:"xyz"}:ii(f,"hsl")?{_a:f.h,_b:f.s,_c:f.l,_d:0,space:"hsl"}:ii(f,"lab")?{_a:f.l,_b:f.a,_c:f.b,_d:0,space:"lab"}:ii(f,"lch")?{_a:f.l,_b:f.c,_c:f.h,_d:0,space:"lch"}:ii(f,"cmyk")?{_a:f.c,_b:f.m,_c:f.y,_d:f.k,space:"cmyk"}:{_a:0,_b:0,_c:0,space:"rgb"};return p.space=d||p.space,p}(e,t);Object.assign(this,c)}else if(typeof e=="string")if(Bl.test(e)){const c=e.replace(yd,""),[f,d,p]=pd.exec(c).slice(1,4).map(g=>parseInt(g));Object.assign(this,{_a:f,_b:d,_c:p,_d:0,space:"rgb"})}else{if(!Hl.test(e))throw Error("Unsupported string format, can't construct Color");{const c=g=>parseInt(g,16),[,f,d,p]=gd.exec(function(g){return g.length===4?["#",g.substring(1,2),g.substring(1,2),g.substring(2,3),g.substring(2,3),g.substring(3,4),g.substring(3,4)].join(""):g}(e)).map(c);Object.assign(this,{_a:f,_b:d,_c:p,_d:0,space:"rgb"})}}const{_a:o,_b:s,_c:l,_d:h}=this,u=this.space==="rgb"?{r:o,g:s,b:l}:this.space==="xyz"?{x:o,y:s,z:l}:this.space==="hsl"?{h:o,s,l}:this.space==="lab"?{l:o,a:s,b:l}:this.space==="lch"?{l:o,c:s,h:l}:this.space==="cmyk"?{c:o,m:s,y:l,k:h}:{};Object.assign(this,u)}lab(){const{x:e,y:t,z:n}=this.xyz();return new He(116*t-16,500*(e-t),200*(t-n),"lab")}lch(){const{l:e,a:t,b:n}=this.lab(),r=Math.sqrt(t**2+n**2);let a=180*Math.atan2(n,t)/Math.PI;return a<0&&(a*=-1,a=360-a),new He(e,r,a,"lch")}rgb(){if(this.space==="rgb")return this;if((e=this.space)==="lab"||e==="xyz"||e==="lch"){let{x:t,y:n,z:r}=this;if(this.space==="lab"||this.space==="lch"){let{l:d,a:p,b:g}=this;if(this.space==="lch"){const{c:k,h:S}=this,A=Math.PI/180;p=k*Math.cos(A*S),g=k*Math.sin(A*S)}const m=(d+16)/116,v=p/500+m,y=m-g/200,b=16/116,x=.008856,w=7.787;t=.95047*(v**3>x?v**3:(v-b)/w),n=1*(m**3>x?m**3:(m-b)/w),r=1.08883*(y**3>x?y**3:(y-b)/w)}const a=3.2406*t+-1.5372*n+-.4986*r,o=-.9689*t+1.8758*n+.0415*r,s=.0557*t+-.204*n+1.057*r,l=Math.pow,h=.0031308,u=a>h?1.055*l(a,1/2.4)-.055:12.92*a,c=o>h?1.055*l(o,1/2.4)-.055:12.92*o,f=s>h?1.055*l(s,1/2.4)-.055:12.92*s;return new He(255*u,255*c,255*f)}if(this.space==="hsl"){let{h:t,s:n,l:r}=this;if(t/=360,n/=100,r/=100,n===0)return r*=255,new He(r,r,r);const a=r<.5?r*(1+n):r+n-r*n,o=2*r-a,s=255*eo(o,a,t+1/3),l=255*eo(o,a,t),h=255*eo(o,a,t-1/3);return new He(s,l,h)}if(this.space==="cmyk"){const{c:t,m:n,y:r,k:a}=this,o=255*(1-Math.min(1,t*(1-a)+a)),s=255*(1-Math.min(1,n*(1-a)+a)),l=255*(1-Math.min(1,r*(1-a)+a));return new He(o,s,l)}return this;var e}toArray(){const{_a:e,_b:t,_c:n,_d:r,space:a}=this;return[e,t,n,r,a]}toHex(){const[e,t,n]=this._clamped().map(bd);return`#${e}${t}${n}`}toRgb(){const[e,t,n]=this._clamped();return`rgb(${e},${t},${n})`}toString(){return this.toHex()}xyz(){const{_a:e,_b:t,_c:n}=this.rgb(),[r,a,o]=[e,t,n].map(m=>m/255),s=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92,l=a>.04045?Math.pow((a+.055)/1.055,2.4):a/12.92,h=o>.04045?Math.pow((o+.055)/1.055,2.4):o/12.92,u=(.4124*s+.3576*l+.1805*h)/.95047,c=(.2126*s+.7152*l+.0722*h)/1,f=(.0193*s+.1192*l+.9505*h)/1.08883,d=u>.008856?Math.pow(u,1/3):7.787*u+16/116,p=c>.008856?Math.pow(c,1/3):7.787*c+16/116,g=f>.008856?Math.pow(f,1/3):7.787*f+16/116;return new He(d,p,g,"xyz")}_clamped(){const{_a:e,_b:t,_c:n}=this.rgb(),{max:r,min:a,round:o}=Math;return[e,t,n].map(s=>r(0,a(o(s),255)))}}class Fe{constructor(...e){this.init(...e)}clone(){return new Fe(this)}init(e,t){const a=Array.isArray(e)?{x:e[0],y:e[1]}:typeof e=="object"?{x:e.x,y:e.y}:{x:e,y:t};return this.x=a.x==null?0:a.x,this.y=a.y==null?0:a.y,this}toArray(){return[this.x,this.y]}transform(e){return this.clone().transformO(e)}transformO(e){fe.isMatrixLike(e)||(e=new fe(e));const{x:t,y:n}=this;return this.x=e.a*t+e.c*n+e.e,this.y=e.b*t+e.d*n+e.f,this}}function ri(i,e,t){return Math.abs(e-i)<(t||1e-6)}class fe{constructor(...e){this.init(...e)}static formatTransforms(e){const t=e.flip==="both"||e.flip===!0,n=e.flip&&(t||e.flip==="x")?-1:1,r=e.flip&&(t||e.flip==="y")?-1:1,a=e.skew&&e.skew.length?e.skew[0]:isFinite(e.skew)?e.skew:isFinite(e.skewX)?e.skewX:0,o=e.skew&&e.skew.length?e.skew[1]:isFinite(e.skew)?e.skew:isFinite(e.skewY)?e.skewY:0,s=e.scale&&e.scale.length?e.scale[0]*n:isFinite(e.scale)?e.scale*n:isFinite(e.scaleX)?e.scaleX*n:n,l=e.scale&&e.scale.length?e.scale[1]*r:isFinite(e.scale)?e.scale*r:isFinite(e.scaleY)?e.scaleY*r:r,h=e.shear||0,u=e.rotate||e.theta||0,c=new Fe(e.origin||e.around||e.ox||e.originX,e.oy||e.originY),f=c.x,d=c.y,p=new Fe(e.position||e.px||e.positionX||NaN,e.py||e.positionY||NaN),g=p.x,m=p.y,v=new Fe(e.translate||e.tx||e.translateX,e.ty||e.translateY),y=v.x,b=v.y,x=new Fe(e.relative||e.rx||e.relativeX,e.ry||e.relativeY);return{scaleX:s,scaleY:l,skewX:a,skewY:o,shear:h,theta:u,rx:x.x,ry:x.y,tx:y,ty:b,ox:f,oy:d,px:g,py:m}}static fromArray(e){return{a:e[0],b:e[1],c:e[2],d:e[3],e:e[4],f:e[5]}}static isMatrixLike(e){return e.a!=null||e.b!=null||e.c!=null||e.d!=null||e.e!=null||e.f!=null}static matrixMultiply(e,t,n){const r=e.a*t.a+e.c*t.b,a=e.b*t.a+e.d*t.b,o=e.a*t.c+e.c*t.d,s=e.b*t.c+e.d*t.d,l=e.e+e.a*t.e+e.c*t.f,h=e.f+e.b*t.e+e.d*t.f;return n.a=r,n.b=a,n.c=o,n.d=s,n.e=l,n.f=h,n}around(e,t,n){return this.clone().aroundO(e,t,n)}aroundO(e,t,n){const r=e||0,a=t||0;return this.translateO(-r,-a).lmultiplyO(n).translateO(r,a)}clone(){return new fe(this)}decompose(e=0,t=0){const n=this.a,r=this.b,a=this.c,o=this.d,s=this.e,l=this.f,h=n*o-r*a,u=h>0?1:-1,c=u*Math.sqrt(n*n+r*r),f=Math.atan2(u*r,u*n),d=180/Math.PI*f,p=Math.cos(f),g=Math.sin(f),m=(n*a+r*o)/h,v=a*c/(m*n-r)||o*c/(m*r+n);return{scaleX:c,scaleY:v,shear:m,rotate:d,translateX:s-e+e*p*c+t*(m*p*c-g*v),translateY:l-t+e*g*c+t*(m*g*c+p*v),originX:e,originY:t,a:this.a,b:this.b,c:this.c,d:this.d,e:this.e,f:this.f}}equals(e){if(e===this)return!0;const t=new fe(e);return ri(this.a,t.a)&&ri(this.b,t.b)&&ri(this.c,t.c)&&ri(this.d,t.d)&&ri(this.e,t.e)&&ri(this.f,t.f)}flip(e,t){return this.clone().flipO(e,t)}flipO(e,t){return e==="x"?this.scaleO(-1,1,t,0):e==="y"?this.scaleO(1,-1,0,t):this.scaleO(-1,-1,e,t||e)}init(e){const t=fe.fromArray([1,0,0,1,0,0]);return e=e instanceof ct?e.matrixify():typeof e=="string"?fe.fromArray(e.split(bn).map(parseFloat)):Array.isArray(e)?fe.fromArray(e):typeof e=="object"&&fe.isMatrixLike(e)?e:typeof e=="object"?new fe().transform(e):arguments.length===6?fe.fromArray([].slice.call(arguments)):t,this.a=e.a!=null?e.a:t.a,this.b=e.b!=null?e.b:t.b,this.c=e.c!=null?e.c:t.c,this.d=e.d!=null?e.d:t.d,this.e=e.e!=null?e.e:t.e,this.f=e.f!=null?e.f:t.f,this}inverse(){return this.clone().inverseO()}inverseO(){const e=this.a,t=this.b,n=this.c,r=this.d,a=this.e,o=this.f,s=e*r-t*n;if(!s)throw new Error("Cannot invert "+this);const l=r/s,h=-t/s,u=-n/s,c=e/s,f=-(l*a+u*o),d=-(h*a+c*o);return this.a=l,this.b=h,this.c=u,this.d=c,this.e=f,this.f=d,this}lmultiply(e){return this.clone().lmultiplyO(e)}lmultiplyO(e){const t=e instanceof fe?e:new fe(e);return fe.matrixMultiply(t,this,this)}multiply(e){return this.clone().multiplyO(e)}multiplyO(e){const t=e instanceof fe?e:new fe(e);return fe.matrixMultiply(this,t,this)}rotate(e,t,n){return this.clone().rotateO(e,t,n)}rotateO(e,t=0,n=0){e=Ka(e);const r=Math.cos(e),a=Math.sin(e),{a:o,b:s,c:l,d:h,e:u,f:c}=this;return this.a=o*r-s*a,this.b=s*r+o*a,this.c=l*r-h*a,this.d=h*r+l*a,this.e=u*r-c*a+n*a-t*r+t,this.f=c*r+u*a-t*a-n*r+n,this}scale(){return this.clone().scaleO(...arguments)}scaleO(e,t=e,n=0,r=0){arguments.length===3&&(r=n,n=t,t=e);const{a,b:o,c:s,d:l,e:h,f:u}=this;return this.a=a*e,this.b=o*t,this.c=s*e,this.d=l*t,this.e=h*e-n*e+n,this.f=u*t-r*t+r,this}shear(e,t,n){return this.clone().shearO(e,t,n)}shearO(e,t=0,n=0){const{a:r,b:a,c:o,d:s,e:l,f:h}=this;return this.a=r+a*e,this.c=o+s*e,this.e=l+h*e-n*e,this}skew(){return this.clone().skewO(...arguments)}skewO(e,t=e,n=0,r=0){arguments.length===3&&(r=n,n=t,t=e),e=Ka(e),t=Ka(t);const a=Math.tan(e),o=Math.tan(t),{a:s,b:l,c:h,d:u,e:c,f}=this;return this.a=s+l*a,this.b=l+s*o,this.c=h+u*a,this.d=u+h*o,this.e=c+f*a-r*a,this.f=f+c*o-n*o,this}skewX(e,t,n){return this.skew(e,0,t,n)}skewY(e,t,n){return this.skew(0,e,t,n)}toArray(){return[this.a,this.b,this.c,this.d,this.e,this.f]}toString(){return"matrix("+this.a+","+this.b+","+this.c+","+this.d+","+this.e+","+this.f+")"}transform(e){if(fe.isMatrixLike(e))return new fe(e).multiplyO(this);const t=fe.formatTransforms(e),{x:n,y:r}=new Fe(t.ox,t.oy).transform(this),a=new fe().translateO(t.rx,t.ry).lmultiplyO(this).translateO(-n,-r).scaleO(t.scaleX,t.scaleY).skewO(t.skewX,t.skewY).shearO(t.shear).rotateO(t.theta).translateO(n,r);if(isFinite(t.px)||isFinite(t.py)){const o=new Fe(n,r).transform(a),s=isFinite(t.px)?t.px-o.x:0,l=isFinite(t.py)?t.py-o.y:0;a.translateO(s,l)}return a.translateO(t.tx,t.ty),a}translate(e,t){return this.clone().translateO(e,t)}translateO(e,t){return this.e+=e||0,this.f+=t||0,this}valueOf(){return{a:this.a,b:this.b,c:this.c,d:this.d,e:this.e,f:this.f}}}function kn(){if(!kn.nodes){const i=bt().size(2,0);i.node.style.cssText=["opacity: 0","position: absolute","left: -100%","top: -100%","overflow: hidden"].join(";"),i.attr("focusable","false"),i.attr("aria-hidden","true");const e=i.path().node;kn.nodes={svg:i,path:e}}if(!kn.nodes.svg.node.parentNode){const i=Te.document.body||Te.document.documentElement;kn.nodes.svg.addTo(i)}return kn.nodes}function Rc(i){return!(i.width||i.height||i.x||i.y)}Ie(fe,"Matrix");class Qe{constructor(...e){this.init(...e)}addOffset(){return this.x+=Te.window.pageXOffset,this.y+=Te.window.pageYOffset,new Qe(this)}init(e){return e=typeof e=="string"?e.split(bn).map(parseFloat):Array.isArray(e)?e:typeof e=="object"?[e.left!=null?e.left:e.x,e.top!=null?e.top:e.y,e.width,e.height]:arguments.length===4?[].slice.call(arguments):[0,0,0,0],this.x=e[0]||0,this.y=e[1]||0,this.width=this.w=e[2]||0,this.height=this.h=e[3]||0,this.x2=this.x+this.w,this.y2=this.y+this.h,this.cx=this.x+this.w/2,this.cy=this.y+this.h/2,this}isNulled(){return Rc(this)}merge(e){const t=Math.min(this.x,e.x),n=Math.min(this.y,e.y),r=Math.max(this.x+this.width,e.x+e.width)-t,a=Math.max(this.y+this.height,e.y+e.height)-n;return new Qe(t,n,r,a)}toArray(){return[this.x,this.y,this.width,this.height]}toString(){return this.x+" "+this.y+" "+this.width+" "+this.height}transform(e){e instanceof fe||(e=new fe(e));let t=1/0,n=-1/0,r=1/0,a=-1/0;return[new Fe(this.x,this.y),new Fe(this.x2,this.y),new Fe(this.x,this.y2),new Fe(this.x2,this.y2)].forEach(function(o){o=o.transform(e),t=Math.min(t,o.x),n=Math.max(n,o.x),r=Math.min(r,o.y),a=Math.max(a,o.y)}),new Qe(t,r,n-t,a-r)}}function jl(i,e,t){let n;try{if(n=e(i.node),Rc(n)&&(r=i.node)!==Te.document&&!(Te.document.documentElement.contains||function(a){for(;a.parentNode;)a=a.parentNode;return a===Te.document}).call(Te.document.documentElement,r))throw new Error("Element not in the dom")}catch{n=t(i)}var r;return n}_e({viewbox:{viewbox(i,e,t,n){return i==null?new Qe(this.attr("viewBox")):this.attr("viewBox",new Qe(i,e,t,n))},zoom(i,e){let{width:t,height:n}=this.attr(["width","height"]);if((t||n)&&typeof t!="string"&&typeof n!="string"||(t=this.node.clientWidth,n=this.node.clientHeight),!t||!n)throw new Error("Impossible to get absolute width and height. Please provide an absolute width and height attribute on the zooming element");const r=this.viewbox(),a=t/r.width,o=n/r.height,s=Math.min(a,o);if(i==null)return s;let l=s/i;l===1/0&&(l=Number.MAX_SAFE_INTEGER/100),e=e||new Fe(t/2/a+r.x,n/2/o+r.y);const h=new Qe(r).transform(new fe({scale:l,origin:e}));return this.viewbox(h)}}}),Ie(Qe,"Box");class Vn extends Array{constructor(e=[],...t){if(super(e,...t),typeof e=="number")return this;this.length=0,this.push(...e)}}ye([Vn],{each(i,...e){return typeof i=="function"?this.map((t,n,r)=>i.call(t,t,n,r)):this.map(t=>t[i](...e))},toArray(){return Array.prototype.concat.apply([],this)}});const wd=["toArray","constructor","each"];function Kn(i,e){return new Vn(Ds((e||Te.document).querySelectorAll(i),function(t){return Bt(t)}))}Vn.extend=function(i){i=i.reduce((e,t)=>(wd.includes(t)||t[0]==="_"||(t in Array.prototype&&(e["$"+t]=Array.prototype[t]),e[t]=function(...n){return this.each(t,...n)}),e),{}),ye([Vn],i)};let Sd=0;const Lc={};function Tc(i){let e=i.getEventHolder();return e===Te.window&&(e=Lc),e.events||(e.events={}),e.events}function js(i){return i.getEventTarget()}function pn(i,e,t,n,r){const a=t.bind(n||i),o=bt(i),s=Tc(o),l=js(o);e=Array.isArray(e)?e:e.split(bn),t._svgjsListenerId||(t._svgjsListenerId=++Sd),e.forEach(function(h){const u=h.split(".")[0],c=h.split(".")[1]||"*";s[u]=s[u]||{},s[u][c]=s[u][c]||{},s[u][c][t._svgjsListenerId]=a,l.addEventListener(u,a,r||!1)})}function Xt(i,e,t,n){const r=bt(i),a=Tc(r),o=js(r);(typeof t!="function"||(t=t._svgjsListenerId))&&(e=Array.isArray(e)?e:(e||"").split(bn)).forEach(function(s){const l=s&&s.split(".")[0],h=s&&s.split(".")[1];let u,c;if(t)a[l]&&a[l][h||"*"]&&(o.removeEventListener(l,a[l][h||"*"][t],n||!1),delete a[l][h||"*"][t]);else if(l&&h){if(a[l]&&a[l][h]){for(c in a[l][h])Xt(o,[l,h].join("."),c);delete a[l][h]}}else if(h)for(s in a)for(u in a[s])h===u&&Xt(o,[s,h].join("."));else if(l){if(a[l]){for(u in a[l])Xt(o,[l,u].join("."));delete a[l]}}else{for(s in a)Xt(o,s);(function(f){let d=f.getEventHolder();d===Te.window&&(d=Lc),d.events&&(d.events={})})(r)}})}class br extends Bs{addEventListener(){}dispatch(e,t,n){return function(r,a,o,s){const l=js(r);return a instanceof Te.window.Event||(a=new Te.window.CustomEvent(a,{detail:o,cancelable:!0,...s})),l.dispatchEvent(a),a}(this,e,t,n)}dispatchEvent(e){const t=this.getEventHolder().events;if(!t)return!0;const n=t[e.type];for(const r in n)for(const a in n[r])n[r][a](e);return!e.defaultPrevented}fire(e,t,n){return this.dispatch(e,t,n),this}getEventHolder(){return this}getEventTarget(){return this}off(e,t,n){return Xt(this,e,t,n),this}on(e,t,n,r){return pn(this,e,t,n,r),this}removeEventListener(){}}function Wl(){}Ie(br,"EventTarget");const to=400,kd=">",Ad=0,Cd={"fill-opacity":1,"stroke-opacity":1,"stroke-width":0,"stroke-linejoin":"miter","stroke-linecap":"butt",fill:"#000000",stroke:"#000000",opacity:1,x:0,y:0,cx:0,cy:0,width:0,height:0,r:0,rx:0,ry:0,offset:0,"stop-opacity":1,"stop-color":"#000000","text-anchor":"start"};class Gn extends Array{constructor(...e){super(...e),this.init(...e)}clone(){return new this.constructor(this)}init(e){return typeof e=="number"||(this.length=0,this.push(...this.parse(e))),this}parse(e=[]){return e instanceof Array?e:e.trim().split(bn).map(parseFloat)}toArray(){return Array.prototype.concat.apply([],this)}toSet(){return new Set(this)}toString(){return this.join(" ")}valueOf(){const e=[];return e.push(...this),e}}class ke{constructor(...e){this.init(...e)}convert(e){return new ke(this.value,e)}divide(e){return e=new ke(e),new ke(this/e,this.unit||e.unit)}init(e,t){return t=Array.isArray(e)?e[1]:t,e=Array.isArray(e)?e[0]:e,this.value=0,this.unit=t||"",typeof e=="number"?this.value=isNaN(e)?0:isFinite(e)?e:e<0?-34e37:34e37:typeof e=="string"?(t=e.match(Pc))&&(this.value=parseFloat(t[1]),t[5]==="%"?this.value/=100:t[5]==="s"&&(this.value*=1e3),this.unit=t[5]):e instanceof ke&&(this.value=e.valueOf(),this.unit=e.unit),this}minus(e){return e=new ke(e),new ke(this-e,this.unit||e.unit)}plus(e){return e=new ke(e),new ke(this+e,this.unit||e.unit)}times(e){return e=new ke(e),new ke(this*e,this.unit||e.unit)}toArray(){return[this.value,this.unit]}toJSON(){return this.toString()}toString(){return(this.unit==="%"?~~(1e8*this.value)/1e6:this.unit==="s"?this.value/1e3:this.value)+this.unit}valueOf(){return this.value}}const _d=new Set(["fill","stroke","color","bgcolor","stop-color","flood-color","lighting-color"]),Ic=[];class En extends br{constructor(e,t){super(),this.node=e,this.type=e.nodeName,t&&e!==t&&this.attr(t)}add(e,t){return(e=bt(e)).removeNamespace&&this.node instanceof Te.window.SVGElement&&e.removeNamespace(),t==null?this.node.appendChild(e.node):e.node!==this.node.childNodes[t]&&this.node.insertBefore(e.node,this.node.childNodes[t]),this}addTo(e,t){return bt(e).put(this,t)}children(){return new Vn(Ds(this.node.children,function(e){return Bt(e)}))}clear(){for(;this.node.hasChildNodes();)this.node.removeChild(this.node.lastChild);return this}clone(e=!0,t=!0){this.writeDataToDom();let n=this.node.cloneNode(e);return t&&(n=Mc(n)),new this.constructor(n)}each(e,t){const n=this.children();let r,a;for(r=0,a=n.length;r<a;r++)e.apply(n[r],[r,n]),t&&n[r].each(e,t);return this}element(e,t){return this.put(new En(ir(e),t))}first(){return Bt(this.node.firstChild)}get(e){return Bt(this.node.childNodes[e])}getEventHolder(){return this.node}getEventTarget(){return this.node}has(e){return this.index(e)>=0}html(e,t){return this.xml(e,t,"http://www.w3.org/1999/xhtml")}id(e){return e!==void 0||this.node.id||(this.node.id=Oc(this.type)),this.attr("id",e)}index(e){return[].slice.call(this.node.childNodes).indexOf(e.node)}last(){return Bt(this.node.lastChild)}matches(e){const t=this.node,n=t.matches||t.matchesSelector||t.msMatchesSelector||t.mozMatchesSelector||t.webkitMatchesSelector||t.oMatchesSelector||null;return n&&n.call(t,e)}parent(e){let t=this;if(!t.node.parentNode)return null;if(t=Bt(t.node.parentNode),!e)return t;do if(typeof e=="string"?t.matches(e):t instanceof e)return t;while(t=Bt(t.node.parentNode));return t}put(e,t){return e=bt(e),this.add(e,t),e}putIn(e,t){return bt(e).add(this,t)}remove(){return this.parent()&&this.parent().removeElement(this),this}removeElement(e){return this.node.removeChild(e.node),this}replace(e){return e=bt(e),this.node.parentNode&&this.node.parentNode.replaceChild(e.node,this.node),e}round(e=2,t=null){const n=10**e,r=this.attr(t);for(const a in r)typeof r[a]=="number"&&(r[a]=Math.round(r[a]*n)/n);return this.attr(r),this}svg(e,t){return this.xml(e,t,Hs)}toString(){return this.id()}words(e){return this.node.textContent=e,this}wrap(e){const t=this.parent();if(!t)return this.addTo(e);const n=t.index(this);return t.put(e,n).put(this)}writeDataToDom(){return this.each(function(){this.writeDataToDom()}),this}xml(e,t,n){if(typeof e=="boolean"&&(n=t,t=e,e=null),e==null||typeof e=="function"){t=t==null||t,this.writeDataToDom();let s=this;if(e!=null){if(s=Bt(s.node.cloneNode(!0)),t){const l=e(s);if(s=l||s,l===!1)return""}s.each(function(){const l=e(this),h=l||this;l===!1?this.remove():l&&this!==h&&this.replace(h)},!0)}return t?s.node.outerHTML:s.node.innerHTML}t=t!=null&&t;const r=ir("wrapper",n),a=Te.document.createDocumentFragment();r.innerHTML=e;for(let s=r.children.length;s--;)a.appendChild(r.firstElementChild);const o=this.parent();return t?this.replace(a)&&o:this.add(a)}}ye(En,{attr:function(i,e,t){if(i==null){i={},e=this.node.attributes;for(const n of e)i[n.nodeName]=Yl.test(n.nodeValue)?parseFloat(n.nodeValue):n.nodeValue;return i}if(i instanceof Array)return i.reduce((n,r)=>(n[r]=this.attr(r),n),{});if(typeof i=="object"&&i.constructor===Object)for(e in i)this.attr(e,i[e]);else if(e===null)this.node.removeAttribute(i);else{if(e==null)return(e=this.node.getAttribute(i))==null?Cd[i]:Yl.test(e)?parseFloat(e):e;typeof(e=Ic.reduce((n,r)=>r(i,n,this),e))=="number"?e=new ke(e):_d.has(i)&&He.isColor(e)?e=new He(e):e.constructor===Array&&(e=new Gn(e)),i==="leading"?this.leading&&this.leading(e):typeof t=="string"?this.node.setAttributeNS(t,i,e.toString()):this.node.setAttribute(i,e.toString()),!this.rebuild||i!=="font-size"&&i!=="x"||this.rebuild()}return this},find:function(i){return Kn(i,this.node)},findOne:function(i){return Bt(this.node.querySelector(i))}}),Ie(En,"Dom");let ct=class extends En{constructor(i,e){super(i,e),this.dom={},this.node.instance=this,(i.hasAttribute("data-svgjs")||i.hasAttribute("svgjs:data"))&&this.setData(JSON.parse(i.getAttribute("data-svgjs"))??JSON.parse(i.getAttribute("svgjs:data"))??{})}center(i,e){return this.cx(i).cy(e)}cx(i){return i==null?this.x()+this.width()/2:this.x(i-this.width()/2)}cy(i){return i==null?this.y()+this.height()/2:this.y(i-this.height()/2)}defs(){const i=this.root();return i&&i.defs()}dmove(i,e){return this.dx(i).dy(e)}dx(i=0){return this.x(new ke(i).plus(this.x()))}dy(i=0){return this.y(new ke(i).plus(this.y()))}getEventHolder(){return this}height(i){return this.attr("height",i)}move(i,e){return this.x(i).y(e)}parents(i=this.root()){const e=typeof i=="string";e||(i=bt(i));const t=new Vn;let n=this;for(;(n=n.parent())&&n.node!==Te.document&&n.nodeName!=="#document-fragment"&&(t.push(n),e||n.node!==i.node)&&(!e||!n.matches(i));)if(n.node===this.root().node)return null;return t}reference(i){if(!(i=this.attr(i)))return null;const e=(i+"").match(vd);return e?bt(e[1]):null}root(){const i=this.parent(function(e){return Wn[e]}(Xs));return i&&i.root()}setData(i){return this.dom=i,this}size(i,e){const t=Ci(this,i,e);return this.width(new ke(t.width)).height(new ke(t.height))}width(i){return this.attr("width",i)}writeDataToDom(){return Ec(this,this.dom),super.writeDataToDom()}x(i){return this.attr("x",i)}y(i){return this.attr("y",i)}};ye(ct,{bbox:function(){const i=jl(this,e=>e.getBBox(),e=>{try{const t=e.clone().addTo(kn().svg).show(),n=t.node.getBBox();return t.remove(),n}catch(t){throw new Error(`Getting bbox of element "${e.node.nodeName}" is not possible: ${t.toString()}`)}});return new Qe(i)},rbox:function(i){const e=jl(this,n=>n.getBoundingClientRect(),n=>{throw new Error(`Getting rbox of element "${n.node.nodeName}" is not possible`)}),t=new Qe(e);return i?t.transform(i.screenCTM().inverseO()):t.addOffset()},inside:function(i,e){const t=this.bbox();return i>t.x&&e>t.y&&i<t.x+t.width&&e<t.y+t.height},point:function(i,e){return new Fe(i,e).transformO(this.screenCTM().inverseO())},ctm:function(){return new fe(this.node.getCTM())},screenCTM:function(){try{if(typeof this.isRoot=="function"&&!this.isRoot()){const i=this.rect(1,1),e=i.node.getScreenCTM();return i.remove(),new fe(e)}return new fe(this.node.getScreenCTM())}catch{return console.warn(`Cannot get CTM from SVG node ${this.node.nodeName}. Is the element rendered?`),new fe}}}),Ie(ct,"Element");const Ni={stroke:["color","width","opacity","linecap","linejoin","miterlimit","dasharray","dashoffset"],fill:["color","opacity","rule"],prefix:function(i,e){return e==="color"?i:i+"-"+e}};["fill","stroke"].forEach(function(i){const e={};let t;e[i]=function(n){if(n===void 0)return this.attr(i);if(typeof n=="string"||n instanceof He||He.isRgb(n)||n instanceof ct)this.attr(i,n);else for(t=Ni[i].length-1;t>=0;t--)n[Ni[i][t]]!=null&&this.attr(Ni.prefix(i,Ni[i][t]),n[Ni[i][t]]);return this},_e(["Element","Runner"],e)}),_e(["Element","Runner"],{matrix:function(i,e,t,n,r,a){return i==null?new fe(this):this.attr("transform",new fe(i,e,t,n,r,a))},rotate:function(i,e,t){return this.transform({rotate:i,ox:e,oy:t},!0)},skew:function(i,e,t,n){return arguments.length===1||arguments.length===3?this.transform({skew:i,ox:e,oy:t},!0):this.transform({skew:[i,e],ox:t,oy:n},!0)},shear:function(i,e,t){return this.transform({shear:i,ox:e,oy:t},!0)},scale:function(i,e,t,n){return arguments.length===1||arguments.length===3?this.transform({scale:i,ox:e,oy:t},!0):this.transform({scale:[i,e],ox:t,oy:n},!0)},translate:function(i,e){return this.transform({translate:[i,e]},!0)},relative:function(i,e){return this.transform({relative:[i,e]},!0)},flip:function(i="both",e="center"){return"xybothtrue".indexOf(i)===-1&&(e=i,i="both"),this.transform({flip:i,origin:e},!0)},opacity:function(i){return this.attr("opacity",i)}}),_e("radius",{radius:function(i,e=i){return(this._element||this).type==="radialGradient"?this.attr("r",new ke(i)):this.rx(i).ry(e)}}),_e("Path",{length:function(){return this.node.getTotalLength()},pointAt:function(i){return new Fe(this.node.getPointAtLength(i))}}),_e(["Element","Runner"],{font:function(i,e){if(typeof i=="object"){for(e in i)this.font(e,i[e]);return this}return i==="leading"?this.leading(e):i==="anchor"?this.attr("text-anchor",e):i==="size"||i==="family"||i==="weight"||i==="stretch"||i==="variant"||i==="style"?this.attr("font-"+i,e):this.attr(i,e)}});_e("Element",["click","dblclick","mousedown","mouseup","mouseover","mouseout","mousemove","mouseenter","mouseleave","touchstart","touchmove","touchleave","touchend","touchcancel","contextmenu","wheel","pointerdown","pointermove","pointerup","pointerleave","pointercancel"].reduce(function(i,e){return i[e]=function(t){return t===null?this.off(e):this.on(e,t),this},i},{})),_e("Element",{untransform:function(){return this.attr("transform",null)},matrixify:function(){return(this.attr("transform")||"").split(md).slice(0,-1).map(function(e){const t=e.trim().split("(");return[t[0],t[1].split(bn).map(function(n){return parseFloat(n)})]}).reverse().reduce(function(e,t){return t[0]==="matrix"?e.lmultiply(fe.fromArray(t[1])):e[t[0]].apply(e,t[1])},new fe)},toParent:function(i,e){if(this===i)return this;if(Fo(this.node))return this.addTo(i,e);const t=this.screenCTM(),n=i.screenCTM().inverse();return this.addTo(i,e).untransform().transform(n.multiply(t)),this},toRoot:function(i){return this.toParent(this.root(),i)},transform:function(i,e){if(i==null||typeof i=="string"){const n=new fe(this).decompose();return i==null?n:n[i]}fe.isMatrixLike(i)||(i={...i,origin:No(i,this)});const t=new fe(e===!0?this:e||!1).transform(i);return this.attr("transform",t)}});class At extends ct{flatten(){return this.each(function(){if(this instanceof At)return this.flatten().ungroup()}),this}ungroup(e=this.parent(),t=e.index(this)){return t=t===-1?e.children().length:t,this.each(function(n,r){return r[r.length-n-1].toParent(e,t)}),this.remove()}}Ie(At,"Container");class Ba extends At{constructor(e,t=e){super(je("defs",e),t)}flatten(){return this}ungroup(){return this}}Ie(Ba,"Defs");class Ft extends ct{}function Ws(i){return this.attr("rx",i)}function qs(i){return this.attr("ry",i)}function Nc(i){return i==null?this.cx()-this.rx():this.cx(i+this.rx())}function Fc(i){return i==null?this.cy()-this.ry():this.cy(i+this.ry())}function zc(i){return this.attr("cx",i)}function Dc(i){return this.attr("cy",i)}function Hc(i){return i==null?2*this.rx():this.rx(new ke(i).divide(2))}function Bc(i){return i==null?2*this.ry():this.ry(new ke(i).divide(2))}Ie(Ft,"Shape");var Ed=Object.freeze({__proto__:null,cx:zc,cy:Dc,height:Bc,rx:Ws,ry:qs,width:Hc,x:Nc,y:Fc});class Vr extends Ft{constructor(e,t=e){super(je("ellipse",e),t)}size(e,t){const n=Ci(this,e,t);return this.rx(new ke(n.width).divide(2)).ry(new ke(n.height).divide(2))}}ye(Vr,Ed),_e("Container",{ellipse:Ye(function(i=0,e=i){return this.put(new Vr).size(i,e).move(0,0)})}),Ie(Vr,"Ellipse");class Xc extends En{constructor(e=Te.document.createDocumentFragment()){super(e)}xml(e,t,n){if(typeof e=="boolean"&&(n=t,t=e,e=null),e==null||typeof e=="function"){const r=new En(ir("wrapper",n));return r.add(this.node.cloneNode(!0)),r.xml(!1,n)}return super.xml(e,!1,n)}}function Yc(i,e){return(this._element||this).type==="radialGradient"?this.attr({fx:new ke(i),fy:new ke(e)}):this.attr({x1:new ke(i),y1:new ke(e)})}function jc(i,e){return(this._element||this).type==="radialGradient"?this.attr({cx:new ke(i),cy:new ke(e)}):this.attr({x2:new ke(i),y2:new ke(e)})}Ie(Xc,"Fragment");var Od=Object.freeze({__proto__:null,from:Yc,to:jc});class Ui extends At{constructor(e,t){super(je(e+"Gradient",typeof e=="string"?null:e),t)}attr(e,t,n){return e==="transform"&&(e="gradientTransform"),super.attr(e,t,n)}bbox(){return new Qe}targets(){return Kn("svg [fill*="+this.id()+"]")}toString(){return this.url()}update(e){return this.clear(),typeof e=="function"&&e.call(this,this),this}url(){return"url(#"+this.id()+")"}}ye(Ui,Od),_e({Container:{gradient(...i){return this.defs().gradient(...i)}},Defs:{gradient:Ye(function(i,e){return this.put(new Ui(i)).update(e)})}}),Ie(Ui,"Gradient");class rr extends At{constructor(e,t=e){super(je("pattern",e),t)}attr(e,t,n){return e==="transform"&&(e="patternTransform"),super.attr(e,t,n)}bbox(){return new Qe}targets(){return Kn("svg [fill*="+this.id()+"]")}toString(){return this.url()}update(e){return this.clear(),typeof e=="function"&&e.call(this,this),this}url(){return"url(#"+this.id()+")"}}_e({Container:{pattern(...i){return this.defs().pattern(...i)}},Defs:{pattern:Ye(function(i,e,t){return this.put(new rr).update(t).attr({x:0,y:0,width:i,height:e,patternUnits:"userSpaceOnUse"})})}}),Ie(rr,"Pattern");let Gr=class extends Ft{constructor(i,e=i){super(je("image",i),e)}load(i,e){if(!i)return this;const t=new Te.window.Image;return pn(t,"load",function(n){const r=this.parent(rr);this.width()===0&&this.height()===0&&this.size(t.width,t.height),r instanceof rr&&r.width()===0&&r.height()===0&&r.size(this.width(),this.height()),typeof e=="function"&&e.call(this,n)},this),pn(t,"load error",function(){Xt(t)}),this.attr("href",t.src=i,_i)}};var ql;ql=function(i,e,t){return i!=="fill"&&i!=="stroke"||xd.test(e)&&(e=t.root().defs().image(e)),e instanceof Gr&&(e=t.root().defs().pattern(0,0,n=>{n.add(e)})),e},Ic.push(ql),_e({Container:{image:Ye(function(i,e){return this.put(new Gr).size(0,0).load(i,e)})}}),Ie(Gr,"Image");class On extends Gn{bbox(){let e=-1/0,t=-1/0,n=1/0,r=1/0;return this.forEach(function(a){e=Math.max(a[0],e),t=Math.max(a[1],t),n=Math.min(a[0],n),r=Math.min(a[1],r)}),new Qe(n,r,e-n,t-r)}move(e,t){const n=this.bbox();if(e-=n.x,t-=n.y,!isNaN(e)&&!isNaN(t))for(let r=this.length-1;r>=0;r--)this[r]=[this[r][0]+e,this[r][1]+t];return this}parse(e=[0,0]){const t=[];(e=e instanceof Array?Array.prototype.concat.apply([],e):e.trim().split(bn).map(parseFloat)).length%2!=0&&e.pop();for(let n=0,r=e.length;n<r;n+=2)t.push([e[n],e[n+1]]);return t}size(e,t){let n;const r=this.bbox();for(n=this.length-1;n>=0;n--)r.width&&(this[n][0]=(this[n][0]-r.x)*e/r.width+r.x),r.height&&(this[n][1]=(this[n][1]-r.y)*t/r.height+r.y);return this}toLine(){return{x1:this[0][0],y1:this[0][1],x2:this[1][0],y2:this[1][1]}}toString(){const e=[];for(let t=0,n=this.length;t<n;t++)e.push(this[t].join(","));return e.join(" ")}transform(e){return this.clone().transformO(e)}transformO(e){fe.isMatrixLike(e)||(e=new fe(e));for(let t=this.length;t--;){const[n,r]=this[t];this[t][0]=e.a*n+e.c*r+e.e,this[t][1]=e.b*n+e.d*r+e.f}return this}}const Md=On;var Vs=Object.freeze({__proto__:null,MorphArray:Md,height:function(i){const e=this.bbox();return i==null?e.height:this.size(e.width,i)},width:function(i){const e=this.bbox();return i==null?e.width:this.size(i,e.height)},x:function(i){return i==null?this.bbox().x:this.move(i,this.bbox().y)},y:function(i){return i==null?this.bbox().y:this.move(this.bbox().x,i)}});let Bn=class extends Ft{constructor(i,e=i){super(je("line",i),e)}array(){return new On([[this.attr("x1"),this.attr("y1")],[this.attr("x2"),this.attr("y2")]])}move(i,e){return this.attr(this.array().move(i,e).toLine())}plot(i,e,t,n){return i==null?this.array():(i=e!==void 0?{x1:i,y1:e,x2:t,y2:n}:new On(i).toLine(),this.attr(i))}size(i,e){const t=Ci(this,i,e);return this.attr(this.array().size(t.width,t.height).toLine())}};ye(Bn,Vs),_e({Container:{line:Ye(function(...i){return Bn.prototype.plot.apply(this.put(new Bn),i[0]!=null?i:[0,0,0,0])})}}),Ie(Bn,"Line");let $r=class extends At{constructor(i,e=i){super(je("marker",i),e)}height(i){return this.attr("markerHeight",i)}orient(i){return this.attr("orient",i)}ref(i,e){return this.attr("refX",i).attr("refY",e)}toString(){return"url(#"+this.id()+")"}update(i){return this.clear(),typeof i=="function"&&i.call(this,this),this}width(i){return this.attr("markerWidth",i)}};function si(i,e){return function(t){return t==null?this[i]:(this[i]=t,e&&e.call(this),this)}}_e({Container:{marker(...i){return this.defs().marker(...i)}},Defs:{marker:Ye(function(i,e,t){return this.put(new $r).size(i,e).ref(i/2,e/2).viewbox(0,0,i,e).attr("orient","auto").update(t)})},marker:{marker(i,e,t,n){let r=["marker"];return i!=="all"&&r.push(i),r=r.join("-"),i=arguments[1]instanceof $r?arguments[1]:this.defs().marker(e,t,n),this.attr(r,i)}}}),Ie($r,"Marker");const Pd={"-":function(i){return i},"<>":function(i){return-Math.cos(i*Math.PI)/2+.5},">":function(i){return Math.sin(i*Math.PI/2)},"<":function(i){return 1-Math.cos(i*Math.PI/2)},bezier:function(i,e,t,n){return function(r){return r<0?i>0?e/i*r:t>0?n/t*r:0:r>1?t<1?(1-n)/(1-t)*r+(n-t)/(1-t):i<1?(1-e)/(1-i)*r+(e-i)/(1-i):1:3*r*(1-r)**2*e+3*r**2*(1-r)*n+r**3}},steps:function(i,e="end"){e=e.split("-").reverse()[0];let t=i;return e==="none"?--t:e==="both"&&++t,(n,r=!1)=>{let a=Math.floor(n*i);const o=n*a%1==0;return e!=="start"&&e!=="both"||++a,r&&o&&--a,n>=0&&a<0&&(a=0),n<=1&&a>t&&(a=t),a/t}}};class Gs{done(){return!1}}class zo extends Gs{constructor(e=kd){super(),this.ease=Pd[e]||e}step(e,t,n){return typeof e!="number"?n<1?e:t:e+(t-e)*this.ease(n)}}class oa extends Gs{constructor(e){super(),this.stepper=e}done(e){return e.done}step(e,t,n,r){return this.stepper(e,t,n,r)}}function Vl(){const i=(this._duration||500)/1e3,e=this._overshoot||0,t=Math.PI,n=Math.log(e/100+1e-10),r=-n/Math.sqrt(t*t+n*n),a=3.9/(r*i);this.d=2*r*a,this.k=a*a}ye(class extends oa{constructor(i=500,e=0){super(),this.duration(i).overshoot(e)}step(i,e,t,n){if(typeof i=="string")return i;if(n.done=t===1/0,t===1/0)return e;if(t===0)return i;t>100&&(t=16),t/=1e3;const r=n.velocity||0,a=-this.d*r-this.k*(i-e),o=i+r*t+a*t*t/2;return n.velocity=r+a*t,n.done=Math.abs(e-o)+Math.abs(r)<.002,n.done?e:o}},{duration:si("_duration",Vl),overshoot:si("_overshoot",Vl)});ye(class extends oa{constructor(i=.1,e=.01,t=0,n=1e3){super(),this.p(i).i(e).d(t).windup(n)}step(i,e,t,n){if(typeof i=="string")return i;if(n.done=t===1/0,t===1/0)return e;if(t===0)return i;const r=e-i;let a=(n.integral||0)+r*t;const o=(r-(n.error||0))/t,s=this._windup;return s!==!1&&(a=Math.max(-s,Math.min(a,s))),n.error=r,n.integral=a,n.done=Math.abs(r)<.001,n.done?e:i+(this.P*r+this.I*a+this.D*o)}},{windup:si("_windup"),p:si("P"),i:si("I"),d:si("D")});const Rd={M:2,L:2,H:1,V:1,C:6,S:4,Q:4,T:2,A:7,Z:0},Do={M:function(i,e,t){return e.x=t.x=i[0],e.y=t.y=i[1],["M",e.x,e.y]},L:function(i,e){return e.x=i[0],e.y=i[1],["L",i[0],i[1]]},H:function(i,e){return e.x=i[0],["H",i[0]]},V:function(i,e){return e.y=i[0],["V",i[0]]},C:function(i,e){return e.x=i[4],e.y=i[5],["C",i[0],i[1],i[2],i[3],i[4],i[5]]},S:function(i,e){return e.x=i[2],e.y=i[3],["S",i[0],i[1],i[2],i[3]]},Q:function(i,e){return e.x=i[2],e.y=i[3],["Q",i[0],i[1],i[2],i[3]]},T:function(i,e){return e.x=i[0],e.y=i[1],["T",i[0],i[1]]},Z:function(i,e,t){return e.x=t.x,e.y=t.y,["Z"]},A:function(i,e){return e.x=i[5],e.y=i[6],["A",i[0],i[1],i[2],i[3],i[4],i[5],i[6]]}},no="mlhvqtcsaz".split("");for(let i=0,e=no.length;i<e;++i)Do[no[i]]=function(t){return function(n,r,a){if(t==="H")n[0]=n[0]+r.x;else if(t==="V")n[0]=n[0]+r.y;else if(t==="A")n[5]=n[5]+r.x,n[6]=n[6]+r.y;else for(let o=0,s=n.length;o<s;++o)n[o]=n[o]+(o%2?r.y:r.x);return Do[t](n,r,a)}}(no[i].toUpperCase());function Ho(i){return i.segment.length&&i.segment.length-1===Rd[i.segment[0].toUpperCase()]}function Ld(i,e){i.inNumber&&Fn(i,!1);const t=Ys.test(e);if(t)i.segment=[e];else{const n=i.lastCommand,r=n.toLowerCase(),a=n===r;i.segment=[r==="m"?a?"l":"L":n]}return i.inSegment=!0,i.lastCommand=i.segment[0],t}function Fn(i,e){if(!i.inNumber)throw new Error("Parser Error");i.number&&i.segment.push(parseFloat(i.number)),i.inNumber=e,i.number="",i.pointSeen=!1,i.hasExponent=!1,Ho(i)&&Bo(i)}function Bo(i){i.inSegment=!1,i.absolute&&(i.segment=function(e){const t=e.segment[0];return Do[t](e.segment.slice(1),e.p,e.p0)}(i)),i.segments.push(i.segment)}function Td(i){if(!i.segment.length)return!1;const e=i.segment[0].toUpperCase()==="A",t=i.segment.length;return e&&(t===4||t===5)}function Id(i){return i.lastToken.toUpperCase()==="E"}const Nd=new Set([" ",","," ",`
9
+ `,"\r","\f"]);class $t extends Gn{bbox(){return kn().path.setAttribute("d",this.toString()),new Qe(kn.nodes.path.getBBox())}move(e,t){const n=this.bbox();if(e-=n.x,t-=n.y,!isNaN(e)&&!isNaN(t))for(let r,a=this.length-1;a>=0;a--)r=this[a][0],r==="M"||r==="L"||r==="T"?(this[a][1]+=e,this[a][2]+=t):r==="H"?this[a][1]+=e:r==="V"?this[a][1]+=t:r==="C"||r==="S"||r==="Q"?(this[a][1]+=e,this[a][2]+=t,this[a][3]+=e,this[a][4]+=t,r==="C"&&(this[a][5]+=e,this[a][6]+=t)):r==="A"&&(this[a][6]+=e,this[a][7]+=t);return this}parse(e="M0 0"){return Array.isArray(e)&&(e=Array.prototype.concat.apply([],e).toString()),function(t,n=!0){let r=0,a="";const o={segment:[],inNumber:!1,number:"",lastToken:"",inSegment:!1,segments:[],pointSeen:!1,hasExponent:!1,absolute:n,p0:new Fe,p:new Fe};for(;o.lastToken=a,a=t.charAt(r++);)if(o.inSegment||!Ld(o,a))if(a!==".")if(isNaN(parseInt(a)))if(Nd.has(a))o.inNumber&&Fn(o,!1);else if(a!=="-"&&a!=="+")if(a.toUpperCase()!=="E"){if(Ys.test(a)){if(o.inNumber)Fn(o,!1);else{if(!Ho(o))throw new Error("parser Error");Bo(o)}--r}}else o.number+=a,o.hasExponent=!0;else{if(o.inNumber&&!Id(o)){Fn(o,!1),--r;continue}o.number+=a,o.inNumber=!0}else{if(o.number==="0"||Td(o)){o.inNumber=!0,o.number=a,Fn(o,!0);continue}o.inNumber=!0,o.number+=a}else{if(o.pointSeen||o.hasExponent){Fn(o,!1),--r;continue}o.inNumber=!0,o.pointSeen=!0,o.number+=a}return o.inNumber&&Fn(o,!1),o.inSegment&&Ho(o)&&Bo(o),o.segments}(e)}size(e,t){const n=this.bbox();let r,a;for(n.width=n.width===0?1:n.width,n.height=n.height===0?1:n.height,r=this.length-1;r>=0;r--)a=this[r][0],a==="M"||a==="L"||a==="T"?(this[r][1]=(this[r][1]-n.x)*e/n.width+n.x,this[r][2]=(this[r][2]-n.y)*t/n.height+n.y):a==="H"?this[r][1]=(this[r][1]-n.x)*e/n.width+n.x:a==="V"?this[r][1]=(this[r][1]-n.y)*t/n.height+n.y:a==="C"||a==="S"||a==="Q"?(this[r][1]=(this[r][1]-n.x)*e/n.width+n.x,this[r][2]=(this[r][2]-n.y)*t/n.height+n.y,this[r][3]=(this[r][3]-n.x)*e/n.width+n.x,this[r][4]=(this[r][4]-n.y)*t/n.height+n.y,a==="C"&&(this[r][5]=(this[r][5]-n.x)*e/n.width+n.x,this[r][6]=(this[r][6]-n.y)*t/n.height+n.y)):a==="A"&&(this[r][1]=this[r][1]*e/n.width,this[r][2]=this[r][2]*t/n.height,this[r][6]=(this[r][6]-n.x)*e/n.width+n.x,this[r][7]=(this[r][7]-n.y)*t/n.height+n.y);return this}toString(){return function(e){let t="";for(let n=0,r=e.length;n<r;n++)t+=e[n][0],e[n][1]!=null&&(t+=e[n][1],e[n][2]!=null&&(t+=" ",t+=e[n][2],e[n][3]!=null&&(t+=" ",t+=e[n][3],t+=" ",t+=e[n][4],e[n][5]!=null&&(t+=" ",t+=e[n][5],t+=" ",t+=e[n][6],e[n][7]!=null&&(t+=" ",t+=e[n][7])))));return t+" "}(this)}}const Wc=i=>{const e=typeof i;return e==="number"?ke:e==="string"?He.isColor(i)?He:bn.test(i)?Ys.test(i)?$t:Gn:Pc.test(i)?ke:Xo:Yo.indexOf(i.constructor)>-1?i.constructor:Array.isArray(i)?Gn:e==="object"?ar:Xo};class zn{constructor(e){this._stepper=e||new zo("-"),this._from=null,this._to=null,this._type=null,this._context=null,this._morphObj=null}at(e){return this._morphObj.morph(this._from,this._to,e,this._stepper,this._context)}done(){return this._context.map(this._stepper.done).reduce(function(e,t){return e&&t},!0)}from(e){return e==null?this._from:(this._from=this._set(e),this)}stepper(e){return e==null?this._stepper:(this._stepper=e,this)}to(e){return e==null?this._to:(this._to=this._set(e),this)}type(e){return e==null?this._type:(this._type=e,this)}_set(e){this._type||this.type(Wc(e));let t=new this._type(e);return this._type===He&&(t=this._to?t[this._to[4]]():this._from?t[this._from[4]]():t),this._type===ar&&(t=this._to?t.align(this._to):this._from?t.align(this._from):t),t=t.toConsumable(),this._morphObj=this._morphObj||new this._type,this._context=this._context||Array.apply(null,Array(t.length)).map(Object).map(function(n){return n.done=!0,n}),t}}class Xo{constructor(...e){this.init(...e)}init(e){return e=Array.isArray(e)?e[0]:e,this.value=e,this}toArray(){return[this.value]}valueOf(){return this.value}}class wr{constructor(...e){this.init(...e)}init(e){return Array.isArray(e)&&(e={scaleX:e[0],scaleY:e[1],shear:e[2],rotate:e[3],translateX:e[4],translateY:e[5],originX:e[6],originY:e[7]}),Object.assign(this,wr.defaults,e),this}toArray(){const e=this;return[e.scaleX,e.scaleY,e.shear,e.rotate,e.translateX,e.translateY,e.originX,e.originY]}}wr.defaults={scaleX:1,scaleY:1,shear:0,rotate:0,translateX:0,translateY:0,originX:0,originY:0};const Fd=(i,e)=>i[0]<e[0]?-1:i[0]>e[0]?1:0;class ar{constructor(...e){this.init(...e)}align(e){const t=this.values;for(let n=0,r=t.length;n<r;++n){if(t[n+1]===e[n+1]){if(t[n+1]===He&&e[n+7]!==t[n+7]){const s=e[n+7],l=new He(this.values.splice(n+3,5))[s]().toArray();this.values.splice(n+3,0,...l)}n+=t[n+2]+2;continue}if(!e[n+1])return this;const a=new e[n+1]().toArray(),o=t[n+2]+3;t.splice(n,o,e[n],e[n+1],e[n+2],...a),n+=t[n+2]+2}return this}init(e){if(this.values=[],Array.isArray(e))return void(this.values=e.slice());e=e||{};const t=[];for(const n in e){const r=Wc(e[n]),a=new r(e[n]).toArray();t.push([n,r,a.length,...a])}return t.sort(Fd),this.values=t.reduce((n,r)=>n.concat(r),[]),this}toArray(){return this.values}valueOf(){const e={},t=this.values;for(;t.length;){const n=t.shift(),r=t.shift(),a=t.shift(),o=t.splice(0,a);e[n]=new r(o)}return e}}const Yo=[Xo,wr,ar];class hi extends Ft{constructor(e,t=e){super(je("path",e),t)}array(){return this._array||(this._array=new $t(this.attr("d")))}clear(){return delete this._array,this}height(e){return e==null?this.bbox().height:this.size(this.bbox().width,e)}move(e,t){return this.attr("d",this.array().move(e,t))}plot(e){return e==null?this.array():this.clear().attr("d",typeof e=="string"?e:this._array=new $t(e))}size(e,t){const n=Ci(this,e,t);return this.attr("d",this.array().size(n.width,n.height))}width(e){return e==null?this.bbox().width:this.size(e,this.bbox().height)}x(e){return e==null?this.bbox().x:this.move(e,this.bbox().y)}y(e){return e==null?this.bbox().y:this.move(this.bbox().x,e)}}hi.prototype.MorphArray=$t,_e({Container:{path:Ye(function(i){return this.put(new hi).plot(i||new $t)})}}),Ie(hi,"Path");var qc=Object.freeze({__proto__:null,array:function(){return this._array||(this._array=new On(this.attr("points")))},clear:function(){return delete this._array,this},move:function(i,e){return this.attr("points",this.array().move(i,e))},plot:function(i){return i==null?this.array():this.clear().attr("points",typeof i=="string"?i:this._array=new On(i))},size:function(i,e){const t=Ci(this,i,e);return this.attr("points",this.array().size(t.width,t.height))}});class Xn extends Ft{constructor(e,t=e){super(je("polygon",e),t)}}_e({Container:{polygon:Ye(function(i){return this.put(new Xn).plot(i||new On)})}}),ye(Xn,Vs),ye(Xn,qc),Ie(Xn,"Polygon");class Yn extends Ft{constructor(e,t=e){super(je("polyline",e),t)}}_e({Container:{polyline:Ye(function(i){return this.put(new Yn).plot(i||new On)})}}),ye(Yn,Vs),ye(Yn,qc),Ie(Yn,"Polyline");class Ur extends Ft{constructor(e,t=e){super(je("rect",e),t)}}ye(Ur,{rx:Ws,ry:qs}),_e({Container:{rect:Ye(function(i,e){return this.put(new Ur).size(i,e)})}}),Ie(Ur,"Rect");class io{constructor(){this._first=null,this._last=null}first(){return this._first&&this._first.value}last(){return this._last&&this._last.value}push(e){const t=e.next!==void 0?e:{value:e,next:null,prev:null};return this._last?(t.prev=this._last,this._last.next=t,this._last=t):(this._last=t,this._first=t),t}remove(e){e.prev&&(e.prev.next=e.next),e.next&&(e.next.prev=e.prev),e===this._last&&(this._last=e.prev),e===this._first&&(this._first=e.next),e.prev=null,e.next=null}shift(){const e=this._first;return e?(this._first=e.next,this._first&&(this._first.prev=null),this._last=this._first?this._last:null,e.value):null}}const ze={nextDraw:null,frames:new io,timeouts:new io,immediates:new io,timer:()=>Te.window.performance||Te.window.Date,transforms:[],frame(i){const e=ze.frames.push({run:i});return ze.nextDraw===null&&(ze.nextDraw=Te.window.requestAnimationFrame(ze._draw)),e},timeout(i,e){e=e||0;const t=ze.timer().now()+e,n=ze.timeouts.push({run:i,time:t});return ze.nextDraw===null&&(ze.nextDraw=Te.window.requestAnimationFrame(ze._draw)),n},immediate(i){const e=ze.immediates.push(i);return ze.nextDraw===null&&(ze.nextDraw=Te.window.requestAnimationFrame(ze._draw)),e},cancelFrame(i){i!=null&&ze.frames.remove(i)},clearTimeout(i){i!=null&&ze.timeouts.remove(i)},cancelImmediate(i){i!=null&&ze.immediates.remove(i)},_draw(i){let e=null;const t=ze.timeouts.last();for(;(e=ze.timeouts.shift())&&(i>=e.time?e.run():ze.timeouts.push(e),e!==t););let n=null;const r=ze.frames.last();for(;n!==r&&(n=ze.frames.shift());)n.run(i);let a=null;for(;a=ze.immediates.shift();)a();ze.nextDraw=ze.timeouts.first()||ze.frames.first()?Te.window.requestAnimationFrame(ze._draw):null}},zd=function(i){const e=i.start,t=i.runner.duration();return{start:e,duration:t,end:e+t,runner:i.runner}},Dd=function(){const i=Te.window;return(i.performance||i.Date).now()};class Vc extends br{constructor(e=Dd){super(),this._timeSource=e,this.terminate()}active(){return!!this._nextFrame}finish(){return this.time(this.getEndTimeOfTimeline()+1),this.pause()}getEndTime(){const e=this.getLastRunnerInfo(),t=e?e.runner.duration():0;return(e?e.start:this._time)+t}getEndTimeOfTimeline(){const e=this._runners.map(t=>t.start+t.runner.duration());return Math.max(0,...e)}getLastRunnerInfo(){return this.getRunnerInfoById(this._lastRunnerId)}getRunnerInfoById(e){return this._runners[this._runnerIds.indexOf(e)]||null}pause(){return this._paused=!0,this._continue()}persist(e){return e==null?this._persist:(this._persist=e,this)}play(){return this._paused=!1,this.updateTime()._continue()}reverse(e){const t=this.speed();if(e==null)return this.speed(-t);const n=Math.abs(t);return this.speed(e?-n:n)}schedule(e,t,n){if(e==null)return this._runners.map(zd);let r=0;const a=this.getEndTime();if(t=t||0,n==null||n==="last"||n==="after")r=a;else if(n==="absolute"||n==="start")r=t,t=0;else if(n==="now")r=this._time;else if(n==="relative"){const l=this.getRunnerInfoById(e.id);l&&(r=l.start+t,t=0)}else{if(n!=="with-last")throw new Error('Invalid value for the "when" parameter');{const l=this.getLastRunnerInfo();r=l?l.start:this._time}}e.unschedule(),e.timeline(this);const o=e.persist(),s={persist:o===null?this._persist:o,start:r+t,runner:e};return this._lastRunnerId=e.id,this._runners.push(s),this._runners.sort((l,h)=>l.start-h.start),this._runnerIds=this._runners.map(l=>l.runner.id),this.updateTime()._continue(),this}seek(e){return this.time(this._time+e)}source(e){return e==null?this._timeSource:(this._timeSource=e,this)}speed(e){return e==null?this._speed:(this._speed=e,this)}stop(){return this.time(0),this.pause()}time(e){return e==null?this._time:(this._time=e,this._continue(!0))}unschedule(e){const t=this._runnerIds.indexOf(e.id);return t<0||(this._runners.splice(t,1),this._runnerIds.splice(t,1),e.timeline(null)),this}updateTime(){return this.active()||(this._lastSourceTime=this._timeSource()),this}_continue(e=!1){return ze.cancelFrame(this._nextFrame),this._nextFrame=null,e?this._stepImmediate():(this._paused||(this._nextFrame=ze.frame(this._step)),this)}_stepFn(e=!1){const t=this._timeSource();let n=t-this._lastSourceTime;e&&(n=0);const r=this._speed*n+(this._time-this._lastStepTime);this._lastSourceTime=t,e||(this._time+=r,this._time=this._time<0?0:this._time),this._lastStepTime=this._time,this.fire("time",this._time);for(let o=this._runners.length;o--;){const s=this._runners[o],l=s.runner;this._time-s.start<=0&&l.reset()}let a=!1;for(let o=0,s=this._runners.length;o<s;o++){const l=this._runners[o],h=l.runner;let u=r;const c=this._time-l.start;if(c<=0){a=!0;continue}c<u&&(u=c),h.active()&&(h.step(u).done?l.persist!==!0&&h.duration()-h.time()+this._time+l.persist<this._time&&(h.unschedule(),--o,--s):a=!0)}return a&&!(this._speed<0&&this._time===0)||this._runnerIds.length&&this._speed<0&&this._time>0?this._continue():(this.pause(),this.fire("finished")),this}terminate(){this._startTime=0,this._speed=1,this._persist=0,this._nextFrame=null,this._paused=!0,this._runners=[],this._runnerIds=[],this._lastRunnerId=-1,this._time=0,this._lastSourceTime=0,this._lastStepTime=0,this._step=this._stepFn.bind(this,!1),this._stepImmediate=this._stepFn.bind(this,!0)}}_e({Element:{timeline:function(i){return i==null?(this._timeline=this._timeline||new Vc,this._timeline):(this._timeline=i,this)}}});class It extends br{constructor(e){super(),this.id=It.id++,e=typeof(e=e??to)=="function"?new oa(e):e,this._element=null,this._timeline=null,this.done=!1,this._queue=[],this._duration=typeof e=="number"&&e,this._isDeclarative=e instanceof oa,this._stepper=this._isDeclarative?e:new zo,this._history={},this.enabled=!0,this._time=0,this._lastTime=0,this._reseted=!0,this.transforms=new fe,this.transformId=1,this._haveReversed=!1,this._reverse=!1,this._loopsDone=0,this._swing=!1,this._wait=0,this._times=1,this._frameId=null,this._persist=!!this._isDeclarative||null}static sanitise(e,t,n){let r=1,a=!1,o=0;return t=t??Ad,n=n||"last",typeof(e=e??to)!="object"||e instanceof Gs||(t=e.delay??t,n=e.when??n,a=e.swing||a,r=e.times??r,o=e.wait??o,e=e.duration??to),{duration:e,delay:t,swing:a,times:r,wait:o,when:n}}active(e){return e==null?this.enabled:(this.enabled=e,this)}addTransform(e){return this.transforms.lmultiplyO(e),this}after(e){return this.on("finished",e)}animate(e,t,n){const r=It.sanitise(e,t,n),a=new It(r.duration);return this._timeline&&a.timeline(this._timeline),this._element&&a.element(this._element),a.loop(r).schedule(r.delay,r.when)}clearTransform(){return this.transforms=new fe,this}clearTransformsFromQueue(){this.done&&this._timeline&&this._timeline._runnerIds.includes(this.id)||(this._queue=this._queue.filter(e=>!e.isTransform))}delay(e){return this.animate(0,e)}duration(){return this._times*(this._wait+this._duration)-this._wait}during(e){return this.queue(null,e)}ease(e){return this._stepper=new zo(e),this}element(e){return e==null?this._element:(this._element=e,e._prepareRunner(),this)}finish(){return this.step(1/0)}loop(e,t,n){return typeof e=="object"&&(t=e.swing,n=e.wait,e=e.times),this._times=e||1/0,this._swing=t||!1,this._wait=n||0,this._times===!0&&(this._times=1/0),this}loops(e){const t=this._duration+this._wait;if(e==null){const a=Math.floor(this._time/t),o=(this._time-a*t)/this._duration;return Math.min(a+o,this._times)}const n=e%1,r=t*Math.floor(e)+this._duration*n;return this.time(r)}persist(e){return e==null?this._persist:(this._persist=e,this)}position(e){const t=this._time,n=this._duration,r=this._wait,a=this._times,o=this._swing,s=this._reverse;let l;if(e==null){const c=function(d){const p=o*Math.floor(d%(2*(r+n))/(r+n)),g=p&&!s||!p&&s,m=Math.pow(-1,g)*(d%(r+n))/n+g;return Math.max(Math.min(m,1),0)},f=a*(r+n)-r;return l=t<=0?Math.round(c(1e-5)):t<f?c(t):Math.round(c(f-1e-5)),l}const h=Math.floor(this.loops()),u=o&&h%2==0;return l=h+(u&&!s||s&&u?e:1-e),this.loops(l)}progress(e){return e==null?Math.min(1,this._time/this.duration()):this.time(e*this.duration())}queue(e,t,n,r){return this._queue.push({initialiser:e||Wl,runner:t||Wl,retarget:n,isTransform:r,initialised:!1,finished:!1}),this.timeline()&&this.timeline()._continue(),this}reset(){return this._reseted||(this.time(0),this._reseted=!0),this}reverse(e){return this._reverse=e??!this._reverse,this}schedule(e,t,n){if(e instanceof Vc||(n=t,t=e,e=this.timeline()),!e)throw Error("Runner cannot be scheduled without timeline");return e.schedule(this,t,n),this}step(e){if(!this.enabled)return this;e=e??16,this._time+=e;const t=this.position(),n=this._lastPosition!==t&&this._time>=0;this._lastPosition=t;const r=this.duration(),a=this._lastTime<=0&&this._time>0,o=this._lastTime<r&&this._time>=r;this._lastTime=this._time,a&&this.fire("start",this);const s=this._isDeclarative;this.done=!s&&!o&&this._time>=r,this._reseted=!1;let l=!1;return(n||s)&&(this._initialise(n),this.transforms=new fe,l=this._run(s?e:t),this.fire("step",this)),this.done=this.done||l&&s,o&&this.fire("finished",this),this}time(e){if(e==null)return this._time;const t=e-this._time;return this.step(t),this}timeline(e){return e===void 0?this._timeline:(this._timeline=e,this)}unschedule(){const e=this.timeline();return e&&e.unschedule(this),this}_initialise(e){if(e||this._isDeclarative)for(let t=0,n=this._queue.length;t<n;++t){const r=this._queue[t],a=this._isDeclarative||!r.initialised&&e;e=!r.finished,a&&e&&(r.initialiser.call(this),r.initialised=!0)}}_rememberMorpher(e,t){if(this._history[e]={morpher:t,caller:this._queue[this._queue.length-1]},this._isDeclarative){const n=this.timeline();n&&n.play()}}_run(e){let t=!0;for(let n=0,r=this._queue.length;n<r;++n){const a=this._queue[n],o=a.runner.call(this,e);a.finished=a.finished||o===!0,t=t&&a.finished}return t}_tryRetarget(e,t,n){if(this._history[e]){if(!this._history[e].caller.initialised){const a=this._queue.indexOf(this._history[e].caller);return this._queue.splice(a,1),!1}this._history[e].caller.retarget?this._history[e].caller.retarget.call(this,t,n):this._history[e].morpher.to(t),this._history[e].caller.finished=!1;const r=this.timeline();return r&&r.play(),!0}return!1}}It.id=0;class sa{constructor(e=new fe,t=-1,n=!0){this.transforms=e,this.id=t,this.done=n}clearTransformsFromQueue(){}}ye([It,sa],{mergeWith(i){return new sa(i.transforms.lmultiply(this.transforms),i.id)}});const Gc=(i,e)=>i.lmultiplyO(e),$c=i=>i.transforms;function Hd(){const i=this._transformationRunners.runners.map($c).reduce(Gc,new fe);this.transform(i),this._transformationRunners.merge(),this._transformationRunners.length()===1&&(this._frameId=null)}class Bd{constructor(){this.runners=[],this.ids=[]}add(e){if(this.runners.includes(e))return;const t=e.id+1;return this.runners.push(e),this.ids.push(t),this}clearBefore(e){const t=this.ids.indexOf(e+1)||1;return this.ids.splice(0,t,0),this.runners.splice(0,t,new sa).forEach(n=>n.clearTransformsFromQueue()),this}edit(e,t){const n=this.ids.indexOf(e+1);return this.ids.splice(n,1,e+1),this.runners.splice(n,1,t),this}getByID(e){return this.runners[this.ids.indexOf(e+1)]}length(){return this.ids.length}merge(){let e=null;for(let t=0;t<this.runners.length;++t){const n=this.runners[t];if(e&&n.done&&e.done&&(!n._timeline||!n._timeline._runnerIds.includes(n.id))&&(!e._timeline||!e._timeline._runnerIds.includes(e.id))){this.remove(n.id);const r=n.mergeWith(e);this.edit(e.id,r),e=r,--t}else e=n}return this}remove(e){const t=this.ids.indexOf(e+1);return this.ids.splice(t,1),this.runners.splice(t,1),this}}_e({Element:{animate(i,e,t){const n=It.sanitise(i,e,t),r=this.timeline();return new It(n.duration).loop(n).element(this).timeline(r.play()).schedule(n.delay,n.when)},delay(i,e){return this.animate(0,i,e)},_clearTransformRunnersBefore(i){this._transformationRunners.clearBefore(i.id)},_currentTransform(i){return this._transformationRunners.runners.filter(e=>e.id<=i.id).map($c).reduce(Gc,new fe)},_addRunner(i){this._transformationRunners.add(i),ze.cancelImmediate(this._frameId),this._frameId=ze.immediate(Hd.bind(this))},_prepareRunner(){this._frameId==null&&(this._transformationRunners=new Bd().add(new sa(new fe(this))))}}});ye(It,{attr(i,e){return this.styleAttr("attr",i,e)},css(i,e){return this.styleAttr("css",i,e)},styleAttr(i,e,t){if(typeof e=="string")return this.styleAttr(i,{[e]:t});let n=e;if(this._tryRetarget(i,n))return this;let r=new zn(this._stepper).to(n),a=Object.keys(n);return this.queue(function(){r=r.from(this.element()[i](a))},function(o){return this.element()[i](r.at(o).valueOf()),r.done()},function(o){const s=Object.keys(o),l=(h=a,s.filter(c=>!h.includes(c)));var h;if(l.length){const c=this.element()[i](l),f=new ar(r.from()).valueOf();Object.assign(f,c),r.from(f)}const u=new ar(r.to()).valueOf();Object.assign(u,o),r.to(u),a=s,n=o}),this._rememberMorpher(i,r),this},zoom(i,e){if(this._tryRetarget("zoom",i,e))return this;let t=new zn(this._stepper).to(new ke(i));return this.queue(function(){t=t.from(this.element().zoom())},function(n){return this.element().zoom(t.at(n),e),t.done()},function(n,r){e=r,t.to(n)}),this._rememberMorpher("zoom",t),this},transform(i,e,t){if(e=i.relative||e,this._isDeclarative&&!e&&this._tryRetarget("transform",i))return this;const n=fe.isMatrixLike(i);t=i.affine!=null?i.affine:t??!n;const r=new zn(this._stepper).type(t?wr:fe);let a,o,s,l,h;return this.queue(function(){o=o||this.element(),a=a||No(i,o),h=new fe(e?void 0:o),o._addRunner(this),e||o._clearTransformRunnersBefore(this)},function(u){e||this.clearTransform();const{x:c,y:f}=new Fe(a).transform(o._currentTransform(this));let d=new fe({...i,origin:[c,f]}),p=this._isDeclarative&&s?s:h;if(t){d=d.decompose(c,f),p=p.decompose(c,f);const m=d.rotate,v=p.rotate,y=[m-360,m,m+360],b=y.map(k=>Math.abs(k-v)),x=Math.min(...b),w=b.indexOf(x);d.rotate=y[w]}e&&(n||(d.rotate=i.rotate||0),this._isDeclarative&&l&&(p.rotate=l)),r.from(p),r.to(d);const g=r.at(u);return l=g.rotate,s=new fe(g),this.addTransform(s),o._addRunner(this),r.done()},function(u){(u.origin||"center").toString()!==(i.origin||"center").toString()&&(a=No(u,o)),i={...u,origin:a}},!0),this._isDeclarative&&this._rememberMorpher("transform",r),this},x(i){return this._queueNumber("x",i)},y(i){return this._queueNumber("y",i)},ax(i){return this._queueNumber("ax",i)},ay(i){return this._queueNumber("ay",i)},dx(i=0){return this._queueNumberDelta("x",i)},dy(i=0){return this._queueNumberDelta("y",i)},dmove(i,e){return this.dx(i).dy(e)},_queueNumberDelta(i,e){if(e=new ke(e),this._tryRetarget(i,e))return this;const t=new zn(this._stepper).to(e);let n=null;return this.queue(function(){n=this.element()[i](),t.from(n),t.to(n+e)},function(r){return this.element()[i](t.at(r)),t.done()},function(r){t.to(n+new ke(r))}),this._rememberMorpher(i,t),this},_queueObject(i,e){if(this._tryRetarget(i,e))return this;const t=new zn(this._stepper).to(e);return this.queue(function(){t.from(this.element()[i]())},function(n){return this.element()[i](t.at(n)),t.done()}),this._rememberMorpher(i,t),this},_queueNumber(i,e){return this._queueObject(i,new ke(e))},cx(i){return this._queueNumber("cx",i)},cy(i){return this._queueNumber("cy",i)},move(i,e){return this.x(i).y(e)},amove(i,e){return this.ax(i).ay(e)},center(i,e){return this.cx(i).cy(e)},size(i,e){let t;return i&&e||(t=this._element.bbox()),i||(i=t.width/t.height*e),e||(e=t.height/t.width*i),this.width(i).height(e)},width(i){return this._queueNumber("width",i)},height(i){return this._queueNumber("height",i)},plot(i,e,t,n){if(arguments.length===4)return this.plot([i,e,t,n]);if(this._tryRetarget("plot",i))return this;const r=new zn(this._stepper).type(this._element.MorphArray).to(i);return this.queue(function(){r.from(this._element.array())},function(a){return this._element.plot(r.at(a)),r.done()}),this._rememberMorpher("plot",r),this},leading(i){return this._queueNumber("leading",i)},viewbox(i,e,t,n){return this._queueObject("viewbox",new Qe(i,e,t,n))},update(i){return typeof i!="object"?this.update({offset:arguments[0],color:arguments[1],opacity:arguments[2]}):(i.opacity!=null&&this.attr("stop-opacity",i.opacity),i.color!=null&&this.attr("stop-color",i.color),i.offset!=null&&this.attr("offset",i.offset),this)}}),ye(It,{rx:Ws,ry:qs,from:Yc,to:jc}),Ie(It,"Runner");class jo extends At{constructor(e,t=e){super(je("svg",e),t),this.namespace()}defs(){return this.isRoot()?Bt(this.node.querySelector("defs"))||this.put(new Ba):this.root().defs()}isRoot(){return!this.node.parentNode||!(this.node.parentNode instanceof Te.window.SVGElement)&&this.node.parentNode.nodeName!=="#document-fragment"}namespace(){return this.isRoot()?this.attr({xmlns:Hs,version:"1.1"}).attr("xmlns:xlink",_i,Qa):this.root().namespace()}removeNamespace(){return this.attr({xmlns:null,version:null}).attr("xmlns:xlink",null,Qa).attr("xmlns:svgjs",null,Qa)}root(){return this.isRoot()?this:super.root()}}_e({Container:{nested:Ye(function(){return this.put(new jo)})}}),Ie(jo,"Svg",!0);let Wo=class extends At{constructor(i,e=i){super(je("symbol",i),e)}};_e({Container:{symbol:Ye(function(){return this.put(new Wo)})}}),Ie(Wo,"Symbol");var Uc=Object.freeze({__proto__:null,amove:function(i,e){return this.ax(i).ay(e)},ax:function(i){return this.attr("x",i)},ay:function(i){return this.attr("y",i)},build:function(i){return this._build=!!i,this},center:function(i,e,t=this.bbox()){return this.cx(i,t).cy(e,t)},cx:function(i,e=this.bbox()){return i==null?e.cx:this.attr("x",this.attr("x")+i-e.cx)},cy:function(i,e=this.bbox()){return i==null?e.cy:this.attr("y",this.attr("y")+i-e.cy)},length:function(){return this.node.getComputedTextLength()},move:function(i,e,t=this.bbox()){return this.x(i,t).y(e,t)},plain:function(i){return this._build===!1&&this.clear(),this.node.appendChild(Te.document.createTextNode(i)),this},x:function(i,e=this.bbox()){return i==null?e.x:this.attr("x",this.attr("x")+i-e.x)},y:function(i,e=this.bbox()){return i==null?e.y:this.attr("y",this.attr("y")+i-e.y)}});class Ut extends Ft{constructor(e,t=e){super(je("text",e),t),this.dom.leading=this.dom.leading??new ke(1.3),this._rebuild=!0,this._build=!1}leading(e){return e==null?this.dom.leading:(this.dom.leading=new ke(e),this.rebuild())}rebuild(e){if(typeof e=="boolean"&&(this._rebuild=e),this._rebuild){const t=this;let n=0;const r=this.dom.leading;this.each(function(a){if(Fo(this.node))return;const o=Te.window.getComputedStyle(this.node).getPropertyValue("font-size"),s=r*new ke(o);this.dom.newLined&&(this.attr("x",t.attr("x")),this.text()===`
10
+ `?n+=s:(this.attr("dy",a?s+n:0),n=0))}),this.fire("rebuild")}return this}setData(e){return this.dom=e,this.dom.leading=new ke(e.leading||1.3),this}writeDataToDom(){return Ec(this,this.dom,{leading:1.3}),this}text(e){if(e===void 0){const t=this.node.childNodes;let n=0;e="";for(let r=0,a=t.length;r<a;++r)t[r].nodeName==="textPath"||Fo(t[r])?r===0&&(n=r+1):(r!==n&&t[r].nodeType!==3&&Bt(t[r]).dom.newLined===!0&&(e+=`
11
+ `),e+=t[r].textContent);return e}if(this.clear().build(!0),typeof e=="function")e.call(this,this);else for(let t=0,n=(e=(e+"").split(`
12
+ `)).length;t<n;t++)this.newLine(e[t]);return this.build(!1).rebuild()}}ye(Ut,Uc),_e({Container:{text:Ye(function(i=""){return this.put(new Ut).text(i)}),plain:Ye(function(i=""){return this.put(new Ut).plain(i)})}}),Ie(Ut,"Text");class Zr extends Ft{constructor(e,t=e){super(je("tspan",e),t),this._build=!1}dx(e){return this.attr("dx",e)}dy(e){return this.attr("dy",e)}newLine(){this.dom.newLined=!0;const e=this.parent();if(!(e instanceof Ut))return this;const t=e.index(this),n=Te.window.getComputedStyle(this.node).getPropertyValue("font-size"),r=e.dom.leading*new ke(n);return this.dy(t?r:0).attr("x",e.x())}text(e){return e==null?this.node.textContent+(this.dom.newLined?`
13
+ `:""):(typeof e=="function"?(this.clear().build(!0),e.call(this,this),this.build(!1)):this.plain(e),this)}}ye(Zr,Uc),_e({Tspan:{tspan:Ye(function(i=""){const e=new Zr;return this._build||this.clear(),this.put(e).text(i)})},Text:{newLine:function(i=""){return this.tspan(i).newLine()}}}),Ie(Zr,"Tspan");class ro extends Ft{constructor(e,t=e){super(je("circle",e),t)}radius(e){return this.attr("r",e)}rx(e){return this.attr("r",e)}ry(e){return this.rx(e)}size(e){return this.radius(new ke(e).divide(2))}}ye(ro,{x:Nc,y:Fc,cx:zc,cy:Dc,width:Hc,height:Bc}),_e({Container:{circle:Ye(function(i=0){return this.put(new ro).size(i).move(0,0)})}}),Ie(ro,"Circle");class ao extends At{constructor(e,t=e){super(je("clipPath",e),t)}remove(){return this.targets().forEach(function(e){e.unclip()}),super.remove()}targets(){return Kn("svg [clip-path*="+this.id()+"]")}}_e({Container:{clip:Ye(function(){return this.defs().put(new ao)})},Element:{clipper(){return this.reference("clip-path")},clipWith(i){const e=i instanceof ao?i:this.parent().clip().add(i);return this.attr("clip-path","url(#"+e.id()+")")},unclip(){return this.attr("clip-path",null)}}}),Ie(ao,"ClipPath");class Gl extends ct{constructor(e,t=e){super(je("foreignObject",e),t)}}_e({Container:{foreignObject:Ye(function(i,e){return this.put(new Gl).size(i,e)})}}),Ie(Gl,"ForeignObject");var Zc=Object.freeze({__proto__:null,dmove:function(i,e){return this.children().forEach(t=>{let n;try{n=t.node instanceof xr().SVGSVGElement?new Qe(t.attr(["x","y","width","height"])):t.bbox()}catch{return}const r=new fe(t),a=r.translate(i,e).transform(r.inverse()),o=new Fe(n.x,n.y).transform(a);t.move(o.x,o.y)}),this},dx:function(i){return this.dmove(i,0)},dy:function(i){return this.dmove(0,i)},height:function(i,e=this.bbox()){return i==null?e.height:this.size(e.width,i,e)},move:function(i=0,e=0,t=this.bbox()){const n=i-t.x,r=e-t.y;return this.dmove(n,r)},size:function(i,e,t=this.bbox()){const n=Ci(this,i,e,t),r=n.width/t.width,a=n.height/t.height;return this.children().forEach(o=>{const s=new Fe(t).transform(new fe(o).inverse());o.scale(r,a,s.x,s.y)}),this},width:function(i,e=this.bbox()){return i==null?e.width:this.size(i,e.height,e)},x:function(i,e=this.bbox()){return i==null?e.x:this.move(i,e.y,e)},y:function(i,e=this.bbox()){return i==null?e.y:this.move(e.x,i,e)}});class _n extends At{constructor(e,t=e){super(je("g",e),t)}}ye(_n,Zc),_e({Container:{group:Ye(function(){return this.put(new _n)})}}),Ie(_n,"G");let Rr=class extends At{constructor(e,t=e){super(je("a",e),t)}target(e){return this.attr("target",e)}to(e){return this.attr("href",e,_i)}};ye(Rr,Zc),_e({Container:{link:Ye(function(i){return this.put(new Rr).to(i)})},Element:{unlink(){const i=this.linker();if(!i)return this;const e=i.parent();if(!e)return this.remove();const t=e.index(i);return e.add(this,t),i.remove(),this},linkTo(i){let e=this.linker();return e||(e=new Rr,this.wrap(e)),typeof i=="function"?i.call(e,e):e.to(i),this},linker(){const i=this.parent();return i&&i.node.nodeName.toLowerCase()==="a"?i:null}}}),Ie(Rr,"A");class oo extends At{constructor(e,t=e){super(je("mask",e),t)}remove(){return this.targets().forEach(function(e){e.unmask()}),super.remove()}targets(){return Kn("svg [mask*="+this.id()+"]")}}_e({Container:{mask:Ye(function(){return this.defs().put(new oo)})},Element:{masker(){return this.reference("mask")},maskWith(i){const e=i instanceof oo?i:this.parent().mask().add(i);return this.attr("mask","url(#"+e.id()+")")},unmask(){return this.attr("mask",null)}}}),Ie(oo,"Mask");class $l extends ct{constructor(e,t=e){super(je("stop",e),t)}update(e){return(typeof e=="number"||e instanceof ke)&&(e={offset:arguments[0],color:arguments[1],opacity:arguments[2]}),e.opacity!=null&&this.attr("stop-opacity",e.opacity),e.color!=null&&this.attr("stop-color",e.color),e.offset!=null&&this.attr("offset",new ke(e.offset)),this}}_e({Gradient:{stop:function(i,e,t){return this.put(new $l).update(i,e,t)}}}),Ie($l,"Stop");class so extends ct{constructor(e,t=e){super(je("style",e),t)}addText(e=""){return this.node.textContent+=e,this}font(e,t,n={}){return this.rule("@font-face",{fontFamily:e,src:t,...n})}rule(e,t){return this.addText(function(n,r){if(!n)return"";if(!r)return n;let a=n+"{";for(const o in r)a+=o.replace(/([A-Z])/g,function(s,l){return"-"+l.toLowerCase()})+":"+r[o]+";";return a+="}",a}(e,t))}}_e("Dom",{style(i,e){return this.put(new so).rule(i,e)},fontface(i,e,t){return this.put(new so).font(i,e,t)}}),Ie(so,"Style");class lo extends Ut{constructor(e,t=e){super(je("textPath",e),t)}array(){const e=this.track();return e?e.array():null}plot(e){const t=this.track();let n=null;return t&&(n=t.plot(e)),e==null?n:this}track(){return this.reference("href")}}_e({Container:{textPath:Ye(function(i,e){return i instanceof Ut||(i=this.text(i)),i.path(e)})},Text:{path:Ye(function(i,e=!0){const t=new lo;let n;if(i instanceof hi||(i=this.defs().path(i)),t.attr("href","#"+i,_i),e)for(;n=this.node.firstChild;)t.node.appendChild(n);return this.put(t)}),textPath(){return this.findOne("textPath")}},Path:{text:Ye(function(i){return i instanceof Ut||(i=new Ut().addTo(this.parent()).text(i)),i.path(this)}),targets(){return Kn("svg textPath").filter(i=>(i.attr("href")||"").includes(this.id()))}}}),lo.prototype.MorphArray=$t,Ie(lo,"TextPath");class Ul extends Ft{constructor(e,t=e){super(je("use",e),t)}use(e,t){return this.attr("href",(t||"")+"#"+e,_i)}}_e({Container:{use:Ye(function(i,e){return this.put(new Ul).use(i,e)})}}),Ie(Ul,"Use");const Xd=bt;ye([jo,Wo,Gr,rr,$r],_t("viewbox")),ye([Bn,Yn,Xn,hi],_t("marker")),ye(Ut,_t("Text")),ye(hi,_t("Path")),ye(Ba,_t("Defs")),ye([Ut,Zr],_t("Tspan")),ye([Ur,Vr,Ui,It],_t("radius")),ye(br,_t("EventTarget")),ye(En,_t("Dom")),ye(ct,_t("Element")),ye(Ft,_t("Shape")),ye([At,Xc],_t("Container")),ye(Ui,_t("Gradient")),ye(It,_t("Runner")),Vn.extend([...new Set(Cc)]),function(i=[]){Yo.push(...[].concat(i))}([ke,He,Qe,fe,Gn,On,$t,Fe]),ye(Yo,{to(i){return new zn().type(this.constructor).from(this.toArray()).to(i)},fromArray(i){return this.init(i),this},toConsumable(){return this.toArray()},morph(i,e,t,n,r){return this.fromArray(i.map(function(a,o){return n.step(a,e[o],t,r[o],r)}))}});class Ve extends ct{constructor(e){super(je("filter",e),e),this.$source="SourceGraphic",this.$sourceAlpha="SourceAlpha",this.$background="BackgroundImage",this.$backgroundAlpha="BackgroundAlpha",this.$fill="FillPaint",this.$stroke="StrokePaint",this.$autoSetIn=!0}put(e,t){return!(e=super.put(e,t)).attr("in")&&this.$autoSetIn&&e.attr("in",this.$source),e.attr("result")||e.attr("result",e.id()),e}remove(){return this.targets().each("unfilter"),super.remove()}targets(){return Kn('svg [filter*="'+this.id()+'"]')}toString(){return"url(#"+this.id()+")"}}class $s extends ct{constructor(e,t){super(e,t),this.result(this.id())}in(e){if(e==null){const t=this.attr("in");return this.parent()&&this.parent().find(`[result="${t}"]`)[0]||t}return this.attr("in",e)}result(e){return this.attr("result",e)}toString(){return this.result()}}const Dt=i=>function(...e){for(let t=i.length;t--;)e[t]!=null&&this.attr(i[t],e[t])},Yd={blend:Dt(["in","in2","mode"]),colorMatrix:Dt(["type","values"]),composite:Dt(["in","in2","operator"]),convolveMatrix:function(i){i=new Gn(i).toString(),this.attr({order:Math.sqrt(i.split(" ").length),kernelMatrix:i})},diffuseLighting:Dt(["surfaceScale","lightingColor","diffuseConstant","kernelUnitLength"]),displacementMap:Dt(["in","in2","scale","xChannelSelector","yChannelSelector"]),dropShadow:Dt(["in","dx","dy","stdDeviation"]),flood:Dt(["flood-color","flood-opacity"]),gaussianBlur:function(i=0,e=i){this.attr("stdDeviation",i+" "+e)},image:function(i){this.attr("href",i,_i)},morphology:Dt(["operator","radius"]),offset:Dt(["dx","dy"]),specularLighting:Dt(["surfaceScale","lightingColor","diffuseConstant","specularExponent","kernelUnitLength"]),tile:Dt([]),turbulence:Dt(["baseFrequency","numOctaves","seed","stitchTiles","type"])};["blend","colorMatrix","componentTransfer","composite","convolveMatrix","diffuseLighting","displacementMap","dropShadow","flood","gaussianBlur","image","merge","morphology","offset","specularLighting","tile","turbulence"].forEach(i=>{const e=Ai(i),t=Yd[i];Ve[e+"Effect"]=class extends $s{constructor(n){super(je("fe"+e,n),n)}update(n){return t.apply(this,n),this}},Ve.prototype[i]=Ye(function(n,...r){const a=new Ve[e+"Effect"];return n==null?this.put(a):(typeof n=="function"?n.call(a,a):r.unshift(n),this.put(a).update(r))})}),ye(Ve,{merge(i){const e=this.put(new Ve.MergeEffect);return typeof i=="function"?(i.call(e,e),e):((i instanceof Array?i:[...arguments]).forEach(t=>{t instanceof Ve.MergeNode?e.put(t):e.mergeNode(t)}),e)},componentTransfer(i={}){const e=this.put(new Ve.ComponentTransferEffect);if(typeof i=="function")return i.call(e,e),e;i.r||i.g||i.b||i.a||(i={r:i,g:i,b:i,a:i});for(const t in i)e.add(new Ve["Func"+t.toUpperCase()](i[t]));return e}});["distantLight","pointLight","spotLight","mergeNode","FuncR","FuncG","FuncB","FuncA"].forEach(i=>{const e=Ai(i);Ve[e]=class extends $s{constructor(t){super(je("fe"+e,t),t)}}});["funcR","funcG","funcB","funcA"].forEach(function(i){const e=Ve[Ai(i)],t=Ye(function(){return this.put(new e)});Ve.ComponentTransferEffect.prototype[i]=t});["distantLight","pointLight","spotLight"].forEach(i=>{const e=Ve[Ai(i)],t=Ye(function(){return this.put(new e)});Ve.DiffuseLightingEffect.prototype[i]=t,Ve.SpecularLightingEffect.prototype[i]=t}),ye(Ve.MergeEffect,{mergeNode(i){return this.put(new Ve.MergeNode).attr("in",i)}}),ye(Ba,{filter:function(i){const e=this.put(new Ve);return typeof i=="function"&&i.call(e,e),e}}),ye(At,{filter:function(i){return this.defs().filter(i)}}),ye(ct,{filterWith:function(i){const e=i instanceof Ve?i:this.defs().filter(i);return this.attr("filter",e)},unfilter:function(i){return this.attr("filter",null)},filterer(){return this.reference("filter")}});const jd={blend:function(i,e){return this.parent()&&this.parent().blend(this,i,e)},colorMatrix:function(i,e){return this.parent()&&this.parent().colorMatrix(i,e).in(this)},componentTransfer:function(i){return this.parent()&&this.parent().componentTransfer(i).in(this)},composite:function(i,e){return this.parent()&&this.parent().composite(this,i,e)},convolveMatrix:function(i){return this.parent()&&this.parent().convolveMatrix(i).in(this)},diffuseLighting:function(i,e,t,n){return this.parent()&&this.parent().diffuseLighting(i,t,n).in(this)},displacementMap:function(i,e,t,n){return this.parent()&&this.parent().displacementMap(this,i,e,t,n)},dropShadow:function(i,e,t){return this.parent()&&this.parent().dropShadow(this,i,e,t).in(this)},flood:function(i,e){return this.parent()&&this.parent().flood(i,e)},gaussianBlur:function(i,e){return this.parent()&&this.parent().gaussianBlur(i,e).in(this)},image:function(i){return this.parent()&&this.parent().image(i)},merge:function(i){return i=i instanceof Array?i:[...i],this.parent()&&this.parent().merge(this,...i)},morphology:function(i,e){return this.parent()&&this.parent().morphology(i,e).in(this)},offset:function(i,e){return this.parent()&&this.parent().offset(i,e).in(this)},specularLighting:function(i,e,t,n,r){return this.parent()&&this.parent().specularLighting(i,t,n,r).in(this)},tile:function(){return this.parent()&&this.parent().tile().in(this)},turbulence:function(i,e,t,n,r){return this.parent()&&this.parent().turbulence(i,e,t,n,r).in(this)}};ye($s,jd),ye(Ve.MergeEffect,{in:function(i){return i instanceof Ve.MergeNode?this.add(i,0):this.add(new Ve.MergeNode().in(i),0),this}}),ye([Ve.CompositeEffect,Ve.BlendEffect,Ve.DisplacementMapEffect],{in2:function(i){if(i==null){const e=this.attr("in2");return this.parent()&&this.parent().find(`[result="${e}"]`)[0]||e}return this.attr("in2",i)}}),Ve.filter={sepiatone:[.343,.669,.119,0,0,.249,.626,.13,0,0,.172,.334,.111,0,0,0,0,0,1,0]};var ut=function(){function i(e){ae(this,i),this.ctx=e,this.w=e.w}return oe(i,[{key:"getDefaultFilter",value:function(e,t){var n=this.w;e.unfilter(!0),new Ve().size("120%","180%","-5%","-40%"),n.config.chart.dropShadow.enabled&&this.dropShadow(e,n.config.chart.dropShadow,t)}},{key:"applyFilter",value:function(e,t,n){var r,a=this,o=this.w;if(e.unfilter(!0),n!=="none"){var s,l,h=o.config.chart.dropShadow,u=n==="lighten"?2:.3;e.filterWith(function(c){c.colorMatrix({type:"matrix",values:`
14
+ `.concat(u,` 0 0 0 0
15
+ 0 `).concat(u,` 0 0 0
16
+ 0 0 `).concat(u,` 0 0
17
+ 0 0 0 1 0
18
+ `),in:"SourceGraphic",result:"brightness"}),h.enabled&&a.addShadow(c,t,h,"brightness")}),!h.noUserSpaceOnUse&&((s=e.filterer())===null||s===void 0||(l=s.node)===null||l===void 0||l.setAttribute("filterUnits","userSpaceOnUse")),this._scaleFilterSize((r=e.filterer())===null||r===void 0?void 0:r.node)}else this.getDefaultFilter(e,t)}},{key:"addShadow",value:function(e,t,n,r){var a,o=this.w,s=n.blur,l=n.top,h=n.left,u=n.color,c=n.opacity;if(u=Array.isArray(u)?u[t]:u,((a=o.config.chart.dropShadow.enabledOnSeries)===null||a===void 0?void 0:a.length)>0&&o.config.chart.dropShadow.enabledOnSeries.indexOf(t)===-1)return e;e.offset({in:r,dx:h,dy:l,result:"offset"}),e.gaussianBlur({in:"offset",stdDeviation:s,result:"blur"}),e.flood({"flood-color":u,"flood-opacity":c,result:"flood"}),e.composite({in:"flood",in2:"blur",operator:"in",result:"shadow"}),e.merge(["shadow",r])}},{key:"dropShadow",value:function(e,t){var n,r,a,o,s,l=this,h=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,u=this.w;return e.unfilter(!0),q.isMsEdge()&&u.config.chart.type==="radialBar"||((n=u.config.chart.dropShadow.enabledOnSeries)===null||n===void 0?void 0:n.length)>0&&((a=u.config.chart.dropShadow.enabledOnSeries)===null||a===void 0?void 0:a.indexOf(h))===-1?e:(e.filterWith(function(c){l.addShadow(c,h,t,"SourceGraphic")}),t.noUserSpaceOnUse||(o=e.filterer())===null||o===void 0||(s=o.node)===null||s===void 0||s.setAttribute("filterUnits","userSpaceOnUse"),this._scaleFilterSize((r=e.filterer())===null||r===void 0?void 0:r.node),e)}},{key:"setSelectionFilter",value:function(e,t,n){var r=this.w;if(r.globals.selectedDataPoints[t]!==void 0&&r.globals.selectedDataPoints[t].indexOf(n)>-1){e.node.setAttribute("selected",!0);var a=r.config.states.active.filter;a!=="none"&&this.applyFilter(e,t,a.type)}}},{key:"_scaleFilterSize",value:function(e){e&&function(t){for(var n in t)t.hasOwnProperty(n)&&e.setAttribute(n,t[n])}({width:"200%",height:"200%",x:"-50%",y:"-50%"})}}]),i}(),Q=function(){function i(e){ae(this,i),this.ctx=e,this.w=e.w}return oe(i,[{key:"roundPathCorners",value:function(e,t){function n(A,O,_){var C=O.x-A.x,M=O.y-A.y,P=Math.sqrt(C*C+M*M);return r(A,O,Math.min(1,_/P))}function r(A,O,_){return{x:A.x+(O.x-A.x)*_,y:A.y+(O.y-A.y)*_}}function a(A,O){A.length>2&&(A[A.length-2]=O.x,A[A.length-1]=O.y)}function o(A){return{x:parseFloat(A[A.length-2]),y:parseFloat(A[A.length-1])}}e.indexOf("NaN")>-1&&(e="");var s=e.split(/[,\s]/).reduce(function(A,O){var _=O.match(/^([a-zA-Z])(.+)/);return _?(A.push(_[1]),A.push(_[2])):A.push(O),A},[]).reduce(function(A,O){return parseFloat(O)==O&&A.length?A[A.length-1].push(O):A.push([O]),A},[]),l=[];if(s.length>1){var h=o(s[0]),u=null;s[s.length-1][0]=="Z"&&s[0].length>2&&(u=["L",h.x,h.y],s[s.length-1]=u),l.push(s[0]);for(var c=1;c<s.length;c++){var f=l[l.length-1],d=s[c],p=d==u?s[1]:s[c+1];if(p&&f&&f.length>2&&d[0]=="L"&&p.length>2&&p[0]=="L"){var g,m,v=o(f),y=o(d),b=o(p);g=n(y,v,t),m=n(y,b,t),a(d,g),d.origPoint=y,l.push(d);var x=r(g,y,.5),w=r(y,m,.5),k=["C",x.x,x.y,w.x,w.y,m.x,m.y];k.origPoint=y,l.push(k)}else l.push(d)}if(u){var S=o(l[l.length-1]);l.push(["Z"]),a(l[0],S)}}else l=s;return l.reduce(function(A,O){return A+O.join(" ")+" "},"")}},{key:"drawLine",value:function(e,t,n,r){var a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:"#a8a8a8",o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:0,s=arguments.length>6&&arguments[6]!==void 0?arguments[6]:null,l=arguments.length>7&&arguments[7]!==void 0?arguments[7]:"butt";return this.w.globals.dom.Paper.line().attr({x1:e,y1:t,x2:n,y2:r,stroke:a,"stroke-dasharray":o,"stroke-width":s,"stroke-linecap":l})}},{key:"drawRect",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0,o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:"#fefefe",s=arguments.length>6&&arguments[6]!==void 0?arguments[6]:1,l=arguments.length>7&&arguments[7]!==void 0?arguments[7]:null,h=arguments.length>8&&arguments[8]!==void 0?arguments[8]:null,u=arguments.length>9&&arguments[9]!==void 0?arguments[9]:0,c=this.w.globals.dom.Paper.rect();return c.attr({x:e,y:t,width:n>0?n:0,height:r>0?r:0,rx:a,ry:a,opacity:s,"stroke-width":l!==null?l:0,stroke:h!==null?h:"none","stroke-dasharray":u}),c.node.setAttribute("fill",o),c}},{key:"drawPolygon",value:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"#e1e1e1",n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"none";return this.w.globals.dom.Paper.polygon(e).attr({fill:r,stroke:t,"stroke-width":n})}},{key:"drawCircle",value:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;e<0&&(e=0);var n=this.w.globals.dom.Paper.circle(2*e);return t!==null&&n.attr(t),n}},{key:"drawPath",value:function(e){var t=e.d,n=t===void 0?"":t,r=e.stroke,a=r===void 0?"#a8a8a8":r,o=e.strokeWidth,s=o===void 0?1:o,l=e.fill,h=e.fillOpacity,u=h===void 0?1:h,c=e.strokeOpacity,f=c===void 0?1:c,d=e.classes,p=e.strokeLinecap,g=p===void 0?null:p,m=e.strokeDashArray,v=m===void 0?0:m,y=this.w;return g===null&&(g=y.config.stroke.lineCap),(n.indexOf("undefined")>-1||n.indexOf("NaN")>-1)&&(n="M 0 ".concat(y.globals.gridHeight)),y.globals.dom.Paper.path(n).attr({fill:l,"fill-opacity":u,stroke:a,"stroke-opacity":f,"stroke-linecap":g,"stroke-width":s,"stroke-dasharray":v,class:d})}},{key:"group",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,t=this.w.globals.dom.Paper.group();return e!==null&&t.attr(e),t}},{key:"move",value:function(e,t){var n=["M",e,t].join(" ");return n}},{key:"line",value:function(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,r=null;return n===null?r=[" L",e,t].join(" "):n==="H"?r=[" H",e].join(" "):n==="V"&&(r=[" V",t].join(" ")),r}},{key:"curve",value:function(e,t,n,r,a,o){var s=["C",e,t,n,r,a,o].join(" ");return s}},{key:"quadraticCurve",value:function(e,t,n,r){return["Q",e,t,n,r].join(" ")}},{key:"arc",value:function(e,t,n,r,a,o,s){var l="A";arguments.length>7&&arguments[7]!==void 0&&arguments[7]&&(l="a");var h=[l,e,t,n,r,a,o,s].join(" ");return h}},{key:"renderPaths",value:function(e){var t,n=e.j,r=e.realIndex,a=e.pathFrom,o=e.pathTo,s=e.stroke,l=e.strokeWidth,h=e.strokeLinecap,u=e.fill,c=e.animationDelay,f=e.initialSpeed,d=e.dataChangeSpeed,p=e.className,g=e.chartType,m=e.shouldClipToGrid,v=m===void 0||m,y=e.bindEventsOnPaths,b=y===void 0||y,x=e.drawShadow,w=x===void 0||x,k=this.w,S=new ut(this.ctx),A=new ki(this.ctx),O=this.w.config.chart.animations.enabled,_=O&&this.w.config.chart.animations.dynamicAnimation.enabled;if(a&&a.startsWith("M 0 0")&&o){var C=o.match(/^M\s+[\d.-]+\s+[\d.-]+/);C&&(a=a.replace(/^M\s+0\s+0/,C[0]))}var M=!!(O&&!k.globals.resized||_&&k.globals.dataChanged&&k.globals.shouldAnimate);M?t=a:(t=o,k.globals.animationEnded=!0);var P=k.config.stroke.dashArray,E=0;E=Array.isArray(P)?P[r]:k.config.stroke.dashArray;var R=this.drawPath({d:t,stroke:s,strokeWidth:l,fill:u,fillOpacity:1,classes:p,strokeLinecap:h,strokeDashArray:E});R.attr("index",r),v&&(g==="bar"&&!k.globals.isHorizontal||k.globals.comboCharts?R.attr({"clip-path":"url(#gridRectBarMask".concat(k.globals.cuid,")")}):R.attr({"clip-path":"url(#gridRectMask".concat(k.globals.cuid,")")})),k.config.chart.dropShadow.enabled&&w&&S.dropShadow(R,k.config.chart.dropShadow,r),b&&(R.node.addEventListener("mouseenter",this.pathMouseEnter.bind(this,R)),R.node.addEventListener("mouseleave",this.pathMouseLeave.bind(this,R)),R.node.addEventListener("mousedown",this.pathMouseDown.bind(this,R))),R.attr({pathTo:o,pathFrom:a});var T={el:R,j:n,realIndex:r,pathFrom:a,pathTo:o,fill:u,strokeWidth:l,delay:c};return!O||k.globals.resized||k.globals.dataChanged?!k.globals.resized&&k.globals.dataChanged||A.showDelayedElements():A.animatePathsGradually(ne(ne({},T),{},{speed:f})),k.globals.dataChanged&&_&&M&&A.animatePathsGradually(ne(ne({},T),{},{speed:d})),R}},{key:"drawPattern",value:function(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"#a8a8a8",a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;return this.w.globals.dom.Paper.pattern(t,n,function(o){e==="horizontalLines"?o.line(0,0,n,0).stroke({color:r,width:a+1}):e==="verticalLines"?o.line(0,0,0,t).stroke({color:r,width:a+1}):e==="slantedLines"?o.line(0,0,t,n).stroke({color:r,width:a}):e==="squares"?o.rect(t,n).fill("none").stroke({color:r,width:a}):e==="circles"&&o.circle(t).fill("none").stroke({color:r,width:a})})}},{key:"drawGradient",value:function(e,t,n,r,a){var o,s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:null,l=arguments.length>6&&arguments[6]!==void 0?arguments[6]:null,h=arguments.length>7&&arguments[7]!==void 0?arguments[7]:[],u=arguments.length>8&&arguments[8]!==void 0?arguments[8]:0,c=this.w;t.length<9&&t.indexOf("#")===0&&(t=q.hexToRgba(t,r)),n.length<9&&n.indexOf("#")===0&&(n=q.hexToRgba(n,a));var f=0,d=1,p=1,g=null;l!==null&&(f=l[0]!==void 0?l[0]/100:0,d=l[1]!==void 0?l[1]/100:1,p=l[2]!==void 0?l[2]/100:1,g=l[3]!==void 0?l[3]/100:null);var m=!(c.config.chart.type!=="donut"&&c.config.chart.type!=="pie"&&c.config.chart.type!=="polarArea"&&c.config.chart.type!=="bubble");if(o=h&&h.length!==0?c.globals.dom.Paper.gradient(m?"radial":"linear",function(b){(Array.isArray(h[u])?h[u]:h).forEach(function(x){b.stop(x.offset/100,x.color,x.opacity)})}):c.globals.dom.Paper.gradient(m?"radial":"linear",function(b){b.stop(f,t,r),b.stop(d,n,a),b.stop(p,n,a),g!==null&&b.stop(g,t,r)}),m){var v=c.globals.gridWidth/2,y=c.globals.gridHeight/2;c.config.chart.type!=="bubble"?o.attr({gradientUnits:"userSpaceOnUse",cx:v,cy:y,r:s}):o.attr({cx:.5,cy:.5,r:.8,fx:.2,fy:.2})}else e==="vertical"?o.from(0,0).to(0,1):e==="diagonal"?o.from(0,0).to(1,1):e==="horizontal"?o.from(0,1).to(1,1):e==="diagonal2"&&o.from(1,0).to(0,1);return o}},{key:"getTextBasedOnMaxWidth",value:function(e){var t=e.text,n=e.maxWidth,r=e.fontSize,a=e.fontFamily,o=this.getTextRects(t,r,a),s=o.width/t.length,l=Math.floor(n/s);return n<o.width?t.slice(0,l-3)+"...":t}},{key:"drawText",value:function(e){var t=this,n=e.x,r=e.y,a=e.text,o=e.textAnchor,s=e.fontSize,l=e.fontFamily,h=e.fontWeight,u=e.foreColor,c=e.opacity,f=e.maxWidth,d=e.cssClass,p=d===void 0?"":d,g=e.isPlainText,m=g===void 0||g,v=e.dominantBaseline,y=v===void 0?"auto":v,b=this.w;a===void 0&&(a="");var x=a;o||(o="start"),u&&u.length||(u=b.config.chart.foreColor),l=l||b.config.chart.fontFamily,h=h||"regular";var w,k={maxWidth:f,fontSize:s=s||"11px",fontFamily:l};return Array.isArray(a)?w=b.globals.dom.Paper.text(function(S){for(var A=0;A<a.length;A++)x=a[A],f&&(x=t.getTextBasedOnMaxWidth(ne({text:a[A]},k))),A===0?S.tspan(x):S.tspan(x).newLine()}):(f&&(x=this.getTextBasedOnMaxWidth(ne({text:a},k))),w=m?b.globals.dom.Paper.plain(a):b.globals.dom.Paper.text(function(S){return S.tspan(x)})),w.attr({x:n,y:r,"text-anchor":o,"dominant-baseline":y,"font-size":s,"font-family":l,"font-weight":h,fill:u,class:"apexcharts-text "+p}),w.node.style.fontFamily=l,w.node.style.opacity=c,w}},{key:"getMarkerPath",value:function(e,t,n,r){var a="";switch(n){case"cross":a="M ".concat(e-(r/=1.4)," ").concat(t-r," L ").concat(e+r," ").concat(t+r," M ").concat(e-r," ").concat(t+r," L ").concat(e+r," ").concat(t-r);break;case"plus":a="M ".concat(e-(r/=1.12)," ").concat(t," L ").concat(e+r," ").concat(t," M ").concat(e," ").concat(t-r," L ").concat(e," ").concat(t+r);break;case"star":case"sparkle":var o=5;r*=1.15,n==="sparkle"&&(r/=1.1,o=4);for(var s=Math.PI/o,l=0;l<=2*o;l++){var h=l*s,u=l%2==0?r:r/2;a+=(l===0?"M":"L")+(e+u*Math.sin(h))+","+(t-u*Math.cos(h))}a+="Z";break;case"triangle":a="M ".concat(e," ").concat(t-r,`
19
+ L `).concat(e+r," ").concat(t+r,`
20
+ L `).concat(e-r," ").concat(t+r,`
21
+ Z`);break;case"square":case"rect":a="M ".concat(e-(r/=1.125)," ").concat(t-r,`
22
+ L `).concat(e+r," ").concat(t-r,`
23
+ L `).concat(e+r," ").concat(t+r,`
24
+ L `).concat(e-r," ").concat(t+r,`
25
+ Z`);break;case"diamond":r*=1.05,a="M ".concat(e," ").concat(t-r,`
26
+ L `).concat(e+r," ").concat(t,`
27
+ L `).concat(e," ").concat(t+r,`
28
+ L `).concat(e-r," ").concat(t,`
29
+ Z`);break;case"line":a="M ".concat(e-(r/=1.1)," ").concat(t,`
30
+ L `).concat(e+r," ").concat(t);break;default:r*=2,a="M ".concat(e,", ").concat(t,`
31
+ m -`).concat(r/2,`, 0
32
+ a `).concat(r/2,",").concat(r/2," 0 1,0 ").concat(r,`,0
33
+ a `).concat(r/2,",").concat(r/2," 0 1,0 -").concat(r,",0")}return a}},{key:"drawMarkerShape",value:function(e,t,n,r,a){var o=this.drawPath({d:this.getMarkerPath(e,t,n,r,a),stroke:a.pointStrokeColor,strokeDashArray:a.pointStrokeDashArray,strokeWidth:a.pointStrokeWidth,fill:a.pointFillColor,fillOpacity:a.pointFillOpacity,strokeOpacity:a.pointStrokeOpacity});return o.attr({cx:e,cy:t,shape:a.shape,class:a.class?a.class:""}),o}},{key:"drawMarker",value:function(e,t,n){e=e||0;var r=n.pSize||0;return q.isNumber(t)||(r=0,t=0),this.drawMarkerShape(e,t,n==null?void 0:n.shape,r,ne(ne({},n),n.shape==="line"||n.shape==="plus"||n.shape==="cross"?{pointStrokeColor:n.pointFillColor,pointStrokeOpacity:n.pointFillOpacity}:{}))}},{key:"pathMouseEnter",value:function(e,t){var n=this.w,r=new ut(this.ctx),a=parseInt(e.node.getAttribute("index"),10),o=parseInt(e.node.getAttribute("j"),10);if(typeof n.config.chart.events.dataPointMouseEnter=="function"&&n.config.chart.events.dataPointMouseEnter(t,this.ctx,{seriesIndex:a,dataPointIndex:o,w:n}),this.ctx.events.fireEvent("dataPointMouseEnter",[t,this.ctx,{seriesIndex:a,dataPointIndex:o,w:n}]),(n.config.states.active.filter.type==="none"||e.node.getAttribute("selected")!=="true")&&n.config.states.hover.filter.type!=="none"&&!n.globals.isTouchDevice){var s=n.config.states.hover.filter;r.applyFilter(e,a,s.type)}}},{key:"pathMouseLeave",value:function(e,t){var n=this.w,r=new ut(this.ctx),a=parseInt(e.node.getAttribute("index"),10),o=parseInt(e.node.getAttribute("j"),10);typeof n.config.chart.events.dataPointMouseLeave=="function"&&n.config.chart.events.dataPointMouseLeave(t,this.ctx,{seriesIndex:a,dataPointIndex:o,w:n}),this.ctx.events.fireEvent("dataPointMouseLeave",[t,this.ctx,{seriesIndex:a,dataPointIndex:o,w:n}]),n.config.states.active.filter.type!=="none"&&e.node.getAttribute("selected")==="true"||n.config.states.hover.filter.type!=="none"&&r.getDefaultFilter(e,a)}},{key:"pathMouseDown",value:function(e,t){var n=this.w,r=new ut(this.ctx),a=parseInt(e.node.getAttribute("index"),10),o=parseInt(e.node.getAttribute("j"),10),s="false";if(e.node.getAttribute("selected")==="true"){if(e.node.setAttribute("selected","false"),n.globals.selectedDataPoints[a].indexOf(o)>-1){var l=n.globals.selectedDataPoints[a].indexOf(o);n.globals.selectedDataPoints[a].splice(l,1)}}else{if(!n.config.states.active.allowMultipleDataPointsSelection&&n.globals.selectedDataPoints.length>0){n.globals.selectedDataPoints=[];var h=n.globals.dom.Paper.find(".apexcharts-series path:not(.apexcharts-decoration-element)"),u=n.globals.dom.Paper.find(".apexcharts-series circle:not(.apexcharts-decoration-element), .apexcharts-series rect:not(.apexcharts-decoration-element)"),c=function(p){Array.prototype.forEach.call(p,function(g){g.node.setAttribute("selected","false"),r.getDefaultFilter(g,a)})};c(h),c(u)}e.node.setAttribute("selected","true"),s="true",n.globals.selectedDataPoints[a]===void 0&&(n.globals.selectedDataPoints[a]=[]),n.globals.selectedDataPoints[a].push(o)}if(s==="true"){var f=n.config.states.active.filter;if(f!=="none")r.applyFilter(e,a,f.type);else if(n.config.states.hover.filter!=="none"&&!n.globals.isTouchDevice){var d=n.config.states.hover.filter;r.applyFilter(e,a,d.type)}}else n.config.states.active.filter.type!=="none"&&(n.config.states.hover.filter.type==="none"||n.globals.isTouchDevice?r.getDefaultFilter(e,a):(d=n.config.states.hover.filter,r.applyFilter(e,a,d.type)));typeof n.config.chart.events.dataPointSelection=="function"&&n.config.chart.events.dataPointSelection(t,this.ctx,{selectedDataPoints:n.globals.selectedDataPoints,seriesIndex:a,dataPointIndex:o,w:n}),t&&this.ctx.events.fireEvent("dataPointSelection",[t,this.ctx,{selectedDataPoints:n.globals.selectedDataPoints,seriesIndex:a,dataPointIndex:o,w:n}])}},{key:"rotateAroundCenter",value:function(e){var t={};return e&&typeof e.getBBox=="function"&&(t=e.getBBox()),{x:t.x+t.width/2,y:t.y+t.height/2}}},{key:"getTextRects",value:function(e,t,n,r){var a=!(arguments.length>4&&arguments[4]!==void 0)||arguments[4],o=this.w,s=this.drawText({x:-200,y:-200,text:e,textAnchor:"start",fontSize:t,fontFamily:n,foreColor:"#fff",opacity:0});r&&s.attr("transform",r),o.globals.dom.Paper.add(s);var l=s.bbox();return a||(l=s.node.getBoundingClientRect()),s.remove(),{width:l.width,height:l.height}}},{key:"placeTextWithEllipsis",value:function(e,t,n){if(typeof e.getComputedTextLength=="function"&&(e.textContent=t,t.length>0&&e.getComputedTextLength()>=n/1.1)){for(var r=t.length-3;r>0;r-=3)if(e.getSubStringLength(0,r)<=n/1.1)return void(e.textContent=t.substring(0,r)+"...");e.textContent="."}}}],[{key:"setAttrs",value:function(e,t){for(var n in t)t.hasOwnProperty(n)&&e.setAttribute(n,t[n])}}]),i}(),Je=function(){function i(e){ae(this,i),this.ctx=e,this.w=e.w}return oe(i,[{key:"getStackedSeriesTotals",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=this.w,n=[];if(t.globals.series.length===0)return n;for(var r=0;r<t.globals.series[t.globals.maxValsInArrayIndex].length;r++){for(var a=0,o=0;o<t.globals.series.length;o++)t.globals.series[o][r]!==void 0&&e.indexOf(o)===-1&&(a+=t.globals.series[o][r]);n.push(a)}return n}},{key:"getSeriesTotalByIndex",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null;return e===null?this.w.config.series.reduce(function(t,n){return t+n},0):this.w.globals.series[e].reduce(function(t,n){return t+n},0)}},{key:"getStackedSeriesTotalsByGroups",value:function(){var e=this,t=this.w,n=[];return t.globals.seriesGroups.forEach(function(r){var a=[];t.config.series.forEach(function(s,l){r.indexOf(t.globals.seriesNames[l])>-1&&a.push(l)});var o=t.globals.series.map(function(s,l){return a.indexOf(l)===-1?l:-1}).filter(function(s){return s!==-1});n.push(e.getStackedSeriesTotals(o))}),n}},{key:"setSeriesYAxisMappings",value:function(){var e=this.w.globals,t=this.w.config,n=[],r=[],a=[],o=e.series.length>t.yaxis.length||t.yaxis.some(function(c){return Array.isArray(c.seriesName)});t.series.forEach(function(c,f){a.push(f),r.push(null)}),t.yaxis.forEach(function(c,f){n[f]=[]});var s=[];t.yaxis.forEach(function(c,f){var d=!1;if(c.seriesName){var p=[];Array.isArray(c.seriesName)?p=c.seriesName:p.push(c.seriesName),p.forEach(function(g){t.series.forEach(function(m,v){if(m.name===g){var y=v;f===v||o?!o||a.indexOf(v)>-1?n[f].push([f,v]):console.warn("Series '"+m.name+"' referenced more than once in what looks like the new style. That is, when using either seriesName: [], or when there are more series than yaxes."):(n[v].push([v,f]),y=f),d=!0,(y=a.indexOf(y))!==-1&&a.splice(y,1)}})})}d||s.push(f)}),n=n.map(function(c,f){var d=[];return c.forEach(function(p){r[p[1]]=p[0],d.push(p[1])}),d});for(var l=t.yaxis.length-1,h=0;h<s.length&&(l=s[h],n[l]=[],a);h++){var u=a[0];a.shift(),n[l].push(u),r[u]=l}a.forEach(function(c){n[l].push(c),r[c]=l}),e.seriesYAxisMap=n.map(function(c){return c}),e.seriesYAxisReverseMap=r.map(function(c){return c}),e.seriesYAxisMap.forEach(function(c,f){c.forEach(function(d){t.series[d]&&t.series[d].group===void 0&&(t.series[d].group="apexcharts-axis-".concat(f.toString()))})})}},{key:"isSeriesNull",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null;return(e===null?this.w.config.series.filter(function(t){return t!==null}):this.w.config.series[e].data.filter(function(t){return t!==null})).length===0}},{key:"seriesHaveSameValues",value:function(e){return this.w.globals.series[e].every(function(t,n,r){return t===r[0]})}},{key:"getCategoryLabels",value:function(e){var t=this.w,n=e.slice();return t.config.xaxis.convertedCatToNumeric&&(n=e.map(function(r,a){return t.config.xaxis.labels.formatter(r-t.globals.minX+1)})),n}},{key:"getLargestSeries",value:function(){var e=this.w;e.globals.maxValsInArrayIndex=e.globals.series.map(function(t){return t.length}).indexOf(Math.max.apply(Math,e.globals.series.map(function(t){return t.length})))}},{key:"getLargestMarkerSize",value:function(){var e=this.w,t=0;return e.globals.markers.size.forEach(function(n){t=Math.max(t,n)}),e.config.markers.discrete&&e.config.markers.discrete.length&&e.config.markers.discrete.forEach(function(n){t=Math.max(t,n.size)}),t>0&&(e.config.markers.hover.size>0?t=e.config.markers.hover.size:t+=e.config.markers.hover.sizeOffset),e.globals.markers.largestSize=t,t}},{key:"getSeriesTotals",value:function(){var e=this.w;e.globals.seriesTotals=e.globals.series.map(function(t,n){var r=0;if(Array.isArray(t))for(var a=0;a<t.length;a++)r+=t[a];else r+=t;return r})}},{key:"getSeriesTotalsXRange",value:function(e,t){var n=this.w;return n.globals.series.map(function(r,a){for(var o=0,s=0;s<r.length;s++)n.globals.seriesX[a][s]>e&&n.globals.seriesX[a][s]<t&&(o+=r[s]);return o})}},{key:"getPercentSeries",value:function(){var e=this.w;e.globals.seriesPercent=e.globals.series.map(function(t,n){var r=[];if(Array.isArray(t))for(var a=0;a<t.length;a++){var o=e.globals.stackedSeriesTotals[a],s=0;o&&(s=100*t[a]/o),r.push(s)}else{var l=100*t/e.globals.seriesTotals.reduce(function(h,u){return h+u},0);r.push(l)}return r})}},{key:"getCalculatedRatios",value:function(){var e,t,n,r=this,a=this.w,o=a.globals,s=[],l=0,h=[],u=.1,c=0;if(o.yRange=[],o.isMultipleYAxis)for(var f=0;f<o.minYArr.length;f++)o.yRange.push(Math.abs(o.minYArr[f]-o.maxYArr[f])),h.push(0);else o.yRange.push(Math.abs(o.minY-o.maxY));o.xRange=Math.abs(o.maxX-o.minX),o.zRange=Math.abs(o.maxZ-o.minZ);for(var d=0;d<o.yRange.length;d++)s.push(o.yRange[d]/o.gridHeight);if(t=o.xRange/o.gridWidth,e=o.yRange/o.gridWidth,n=o.xRange/o.gridHeight,(l=o.zRange/o.gridHeight*16)||(l=1),o.minY!==Number.MIN_VALUE&&Math.abs(o.minY)!==0&&(o.hasNegs=!0),a.globals.seriesYAxisReverseMap.length>0){var p=function(m,v){var y=a.config.yaxis[a.globals.seriesYAxisReverseMap[v]],b=m<0?-1:1;return m=Math.abs(m),y.logarithmic&&(m=r.getBaseLog(y.logBase,m)),-b*m/s[v]};if(o.isMultipleYAxis){h=[];for(var g=0;g<s.length;g++)h.push(p(o.minYArr[g],g))}else(h=[]).push(p(o.minY,0)),o.minY!==Number.MIN_VALUE&&Math.abs(o.minY)!==0&&(u=-o.minY/e,c=o.minX/t)}else(h=[]).push(0),u=0,c=0;return{yRatio:s,invertedYRatio:e,zRatio:l,xRatio:t,invertedXRatio:n,baseLineInvertedY:u,baseLineY:h,baseLineX:c}}},{key:"getLogSeries",value:function(e){var t=this,n=this.w;return n.globals.seriesLog=e.map(function(r,a){var o=n.globals.seriesYAxisReverseMap[a];return n.config.yaxis[o]&&n.config.yaxis[o].logarithmic?r.map(function(s){return s===null?null:t.getLogVal(n.config.yaxis[o].logBase,s,a)}):r}),n.globals.invalidLogScale?e:n.globals.seriesLog}},{key:"getLogValAtSeriesIndex",value:function(e,t){if(e===null)return null;var n=this.w,r=n.globals.seriesYAxisReverseMap[t];return n.config.yaxis[r]&&n.config.yaxis[r].logarithmic?this.getLogVal(n.config.yaxis[r].logBase,e,t):e}},{key:"getBaseLog",value:function(e,t){return Math.log(t)/Math.log(e)}},{key:"getLogVal",value:function(e,t,n){if(t<=0)return 0;var r=this.w,a=r.globals.minYArr[n]===0?-1:this.getBaseLog(e,r.globals.minYArr[n]),o=(r.globals.maxYArr[n]===0?0:this.getBaseLog(e,r.globals.maxYArr[n]))-a;return t<1?t/o:(this.getBaseLog(e,t)-a)/o}},{key:"getLogYRatios",value:function(e){var t=this,n=this.w,r=this.w.globals;return r.yLogRatio=e.slice(),r.logYRange=r.yRange.map(function(a,o){var s=n.globals.seriesYAxisReverseMap[o];if(n.config.yaxis[s]&&t.w.config.yaxis[s].logarithmic){var l,h=-Number.MAX_VALUE,u=Number.MIN_VALUE;return r.seriesLog.forEach(function(c,f){c.forEach(function(d){n.config.yaxis[f]&&n.config.yaxis[f].logarithmic&&(h=Math.max(d,h),u=Math.min(d,u))})}),l=Math.pow(r.yRange[o],Math.abs(u-h)/r.yRange[o]),r.yLogRatio[o]=l/r.gridHeight,l}}),r.invalidLogScale?e.slice():r.yLogRatio}},{key:"drawSeriesByGroup",value:function(e,t,n,r){var a=this.w,o=[];return e.series.length>0&&t.forEach(function(s){var l=[],h=[];e.i.forEach(function(u,c){a.config.series[u].group===s&&(l.push(e.series[c]),h.push(u))}),l.length>0&&o.push(r.draw(l,n,h))}),o}}],[{key:"checkComboSeries",value:function(e,t){var n=!1,r=0,a=0;return t===void 0&&(t="line"),e.length&&e[0].type!==void 0&&e.forEach(function(o){o.type!=="bar"&&o.type!=="column"&&o.type!=="candlestick"&&o.type!=="boxPlot"||r++,o.type!==void 0&&o.type!==t&&a++}),a>0&&(n=!0),{comboBarCount:r,comboCharts:n}}},{key:"extendArrayProps",value:function(e,t,n){var r,a,o,s,l,h;return(r=t)!==null&&r!==void 0&&r.yaxis&&(t=e.extendYAxis(t,n)),(a=t)!==null&&a!==void 0&&a.annotations&&(t.annotations.yaxis&&(t=e.extendYAxisAnnotations(t)),(o=t)!==null&&o!==void 0&&(s=o.annotations)!==null&&s!==void 0&&s.xaxis&&(t=e.extendXAxisAnnotations(t)),(l=t)!==null&&l!==void 0&&(h=l.annotations)!==null&&h!==void 0&&h.points&&(t=e.extendPointAnnotations(t))),t}}]),i}(),Xa=function(){function i(e){ae(this,i),this.w=e.w,this.annoCtx=e}return oe(i,[{key:"setOrientations",value:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,n=this.w;if(e.label.orientation==="vertical"){var r=t!==null?t:0,a=n.globals.dom.baseEl.querySelector(".apexcharts-xaxis-annotations .apexcharts-xaxis-annotation-label[rel='".concat(r,"']"));if(a!==null){var o=a.getBoundingClientRect();a.setAttribute("x",parseFloat(a.getAttribute("x"))-o.height+4);var s=e.label.position==="top"?o.width:-o.width;a.setAttribute("y",parseFloat(a.getAttribute("y"))+s);var l=this.annoCtx.graphics.rotateAroundCenter(a),h=l.x,u=l.y;a.setAttribute("transform","rotate(-90 ".concat(h," ").concat(u,")"))}}}},{key:"addBackgroundToAnno",value:function(e,t){var n=this.w;if(!e||!t.label.text||!String(t.label.text).trim())return null;var r=n.globals.dom.baseEl.querySelector(".apexcharts-grid").getBoundingClientRect(),a=e.getBoundingClientRect(),o=t.label.style.padding,s=o.left,l=o.right,h=o.top,u=o.bottom;if(t.label.orientation==="vertical"){var c=[s,l,h,u];h=c[0],u=c[1],s=c[2],l=c[3]}var f=a.left-r.left-s,d=a.top-r.top-h,p=this.annoCtx.graphics.drawRect(f-n.globals.barPadForNumericAxis,d,a.width+s+l,a.height+h+u,t.label.borderRadius,t.label.style.background,1,t.label.borderWidth,t.label.borderColor,0);return t.id&&p.node.classList.add(t.id),p}},{key:"annotationsBackground",value:function(){var e=this,t=this.w,n=function(r,a,o){var s=t.globals.dom.baseEl.querySelector(".apexcharts-".concat(o,"-annotations .apexcharts-").concat(o,"-annotation-label[rel='").concat(a,"']"));if(s){var l=s.parentNode,h=e.addBackgroundToAnno(s,r);h&&(l.insertBefore(h.node,s),r.label.mouseEnter&&h.node.addEventListener("mouseenter",r.label.mouseEnter.bind(e,r)),r.label.mouseLeave&&h.node.addEventListener("mouseleave",r.label.mouseLeave.bind(e,r)),r.label.click&&h.node.addEventListener("click",r.label.click.bind(e,r)))}};t.config.annotations.xaxis.forEach(function(r,a){return n(r,a,"xaxis")}),t.config.annotations.yaxis.forEach(function(r,a){return n(r,a,"yaxis")}),t.config.annotations.points.forEach(function(r,a){return n(r,a,"point")})}},{key:"getY1Y2",value:function(e,t){var n,r=this.w,a=e==="y1"?t.y:t.y2,o=!1;if(this.annoCtx.invertAxis){var s=r.config.xaxis.convertedCatToNumeric?r.globals.categoryLabels:r.globals.labels,l=s.indexOf(a),h=r.globals.dom.baseEl.querySelector(".apexcharts-yaxis-texts-g text:nth-child(".concat(l+1,")"));n=h?parseFloat(h.getAttribute("y")):(r.globals.gridHeight/s.length-1)*(l+1)-r.globals.barHeight,t.seriesIndex!==void 0&&r.globals.barHeight&&(n-=r.globals.barHeight/2*(r.globals.series.length-1)-r.globals.barHeight*t.seriesIndex)}else{var u,c=r.globals.seriesYAxisMap[t.yAxisIndex][0],f=r.config.yaxis[t.yAxisIndex].logarithmic?new Je(this.annoCtx.ctx).getLogVal(r.config.yaxis[t.yAxisIndex].logBase,a,c)/r.globals.yLogRatio[c]:(a-r.globals.minYArr[c])/(r.globals.yRange[c]/r.globals.gridHeight);n=r.globals.gridHeight-Math.min(Math.max(f,0),r.globals.gridHeight),o=f>r.globals.gridHeight||f<0,!t.marker||t.y!==void 0&&t.y!==null||(n=0),(u=r.config.yaxis[t.yAxisIndex])!==null&&u!==void 0&&u.reversed&&(n=f)}return typeof a=="string"&&a.includes("px")&&(n=parseFloat(a)),{yP:n,clipped:o}}},{key:"getX1X2",value:function(e,t){var n=this.w,r=e==="x1"?t.x:t.x2,a=this.annoCtx.invertAxis?n.globals.minY:n.globals.minX,o=this.annoCtx.invertAxis?n.globals.maxY:n.globals.maxX,s=this.annoCtx.invertAxis?n.globals.yRange[0]:n.globals.xRange,l=!1,h=this.annoCtx.inversedReversedAxis?(o-r)/(s/n.globals.gridWidth):(r-a)/(s/n.globals.gridWidth);return n.config.xaxis.type!=="category"&&!n.config.xaxis.convertedCatToNumeric||this.annoCtx.invertAxis||n.globals.dataFormatXNumeric||n.config.chart.sparkline.enabled||(h=this.getStringX(r)),typeof r=="string"&&r.includes("px")&&(h=parseFloat(r)),r==null&&t.marker&&(h=n.globals.gridWidth),t.seriesIndex!==void 0&&n.globals.barWidth&&!this.annoCtx.invertAxis&&(h-=n.globals.barWidth/2*(n.globals.series.length-1)-n.globals.barWidth*t.seriesIndex),typeof h!="number"&&(h=0,l=!0),parseFloat(h.toFixed(10))>parseFloat(n.globals.gridWidth.toFixed(10))?(h=n.globals.gridWidth,l=!0):h<0&&(h=0,l=!0),{x:h,clipped:l}}},{key:"getStringX",value:function(e){var t=this.w,n=e;t.config.xaxis.convertedCatToNumeric&&t.globals.categoryLabels.length&&(e=t.globals.categoryLabels.indexOf(e)+1);var r=t.globals.labels.map(function(o){return Array.isArray(o)?o.join(" "):o}).indexOf(e),a=t.globals.dom.baseEl.querySelector(".apexcharts-xaxis-texts-g text:nth-child(".concat(r+1,")"));return a&&(n=parseFloat(a.getAttribute("x"))),n}}]),i}(),Wd=function(){function i(e){ae(this,i),this.w=e.w,this.annoCtx=e,this.invertAxis=this.annoCtx.invertAxis,this.helpers=new Xa(this.annoCtx)}return oe(i,[{key:"addXaxisAnnotation",value:function(e,t,n){var r,a=this.w,o=this.helpers.getX1X2("x1",e),s=o.x,l=o.clipped,h=!0,u=e.label.text,c=e.strokeDashArray;if(q.isNumber(s)){if(e.x2===null||e.x2===void 0){if(!l){var f=this.annoCtx.graphics.drawLine(s+e.offsetX,0+e.offsetY,s+e.offsetX,a.globals.gridHeight+e.offsetY,e.borderColor,c,e.borderWidth);t.appendChild(f.node),e.id&&f.node.classList.add(e.id)}}else{var d=this.helpers.getX1X2("x2",e);if(r=d.x,h=d.clipped,r<s){var p=s;s=r,r=p}var g=this.annoCtx.graphics.drawRect(s+e.offsetX,0+e.offsetY,r-s,a.globals.gridHeight+e.offsetY,0,e.fillColor,e.opacity,1,e.borderColor,c);g.node.classList.add("apexcharts-annotation-rect"),g.attr("clip-path","url(#gridRectMask".concat(a.globals.cuid,")")),t.appendChild(g.node),e.id&&g.node.classList.add(e.id)}if(!l||!h){var m=this.annoCtx.graphics.getTextRects(u,parseFloat(e.label.style.fontSize)),v=e.label.position==="top"?4:e.label.position==="center"?a.globals.gridHeight/2+(e.label.orientation==="vertical"?m.width/2:0):a.globals.gridHeight,y=this.annoCtx.graphics.drawText({x:s+e.label.offsetX,y:v+e.label.offsetY-(e.label.orientation==="vertical"?e.label.position==="top"?m.width/2-12:-m.width/2:0),text:u,textAnchor:e.label.textAnchor,fontSize:e.label.style.fontSize,fontFamily:e.label.style.fontFamily,fontWeight:e.label.style.fontWeight,foreColor:e.label.style.color,cssClass:"apexcharts-xaxis-annotation-label ".concat(e.label.style.cssClass," ").concat(e.id?e.id:"")});y.attr({rel:n}),t.appendChild(y.node),this.annoCtx.helpers.setOrientations(e,n)}}}},{key:"drawXAxisAnnotations",value:function(){var e=this,t=this.w,n=this.annoCtx.graphics.group({class:"apexcharts-xaxis-annotations"});return t.config.annotations.xaxis.map(function(r,a){e.addXaxisAnnotation(r,n.node,a)}),n}}]),i}(),lt=function(){function i(e){ae(this,i),this.ctx=e,this.w=e.w,this.months31=[1,3,5,7,8,10,12],this.months30=[2,4,6,9,11],this.daysCntOfYear=[0,31,59,90,120,151,181,212,243,273,304,334]}return oe(i,[{key:"isValidDate",value:function(e){return typeof e!="number"&&!isNaN(this.parseDate(e))}},{key:"getTimeStamp",value:function(e){return Date.parse(e)?this.w.config.xaxis.labels.datetimeUTC?new Date(new Date(e).toISOString().substr(0,25)).getTime():new Date(e).getTime():e}},{key:"getDate",value:function(e){return this.w.config.xaxis.labels.datetimeUTC?new Date(new Date(e).toUTCString()):new Date(e)}},{key:"parseDate",value:function(e){var t=Date.parse(e);if(!isNaN(t))return this.getTimeStamp(e);var n=Date.parse(e.replace(/-/g,"/").replace(/[a-z]+/gi," "));return n=this.getTimeStamp(n)}},{key:"parseDateWithTimezone",value:function(e){return Date.parse(e.replace(/-/g,"/").replace(/[a-z]+/gi," "))}},{key:"formatDate",value:function(e,t){var n=this.w.globals.locale,r=this.w.config.xaxis.labels.datetimeUTC,a=["\0"].concat(nt(n.months)),o=[""].concat(nt(n.shortMonths)),s=[""].concat(nt(n.days)),l=[""].concat(nt(n.shortDays));function h(A,O){var _=A+"";for(O=O||2;_.length<O;)_="0"+_;return _}var u=r?e.getUTCFullYear():e.getFullYear();t=(t=(t=t.replace(/(^|[^\\])yyyy+/g,"$1"+u)).replace(/(^|[^\\])yy/g,"$1"+u.toString().substr(2,2))).replace(/(^|[^\\])y/g,"$1"+u);var c=(r?e.getUTCMonth():e.getMonth())+1;t=(t=(t=(t=t.replace(/(^|[^\\])MMMM+/g,"$1"+a[0])).replace(/(^|[^\\])MMM/g,"$1"+o[0])).replace(/(^|[^\\])MM/g,"$1"+h(c))).replace(/(^|[^\\])M/g,"$1"+c);var f=r?e.getUTCDate():e.getDate();t=(t=(t=(t=t.replace(/(^|[^\\])dddd+/g,"$1"+s[0])).replace(/(^|[^\\])ddd/g,"$1"+l[0])).replace(/(^|[^\\])dd/g,"$1"+h(f))).replace(/(^|[^\\])d/g,"$1"+f);var d=r?e.getUTCHours():e.getHours(),p=d>12?d-12:d===0?12:d;t=(t=(t=(t=t.replace(/(^|[^\\])HH+/g,"$1"+h(d))).replace(/(^|[^\\])H/g,"$1"+d)).replace(/(^|[^\\])hh+/g,"$1"+h(p))).replace(/(^|[^\\])h/g,"$1"+p);var g=r?e.getUTCMinutes():e.getMinutes();t=(t=t.replace(/(^|[^\\])mm+/g,"$1"+h(g))).replace(/(^|[^\\])m/g,"$1"+g);var m=r?e.getUTCSeconds():e.getSeconds();t=(t=t.replace(/(^|[^\\])ss+/g,"$1"+h(m))).replace(/(^|[^\\])s/g,"$1"+m);var v=r?e.getUTCMilliseconds():e.getMilliseconds();t=t.replace(/(^|[^\\])fff+/g,"$1"+h(v,3)),v=Math.round(v/10),t=t.replace(/(^|[^\\])ff/g,"$1"+h(v)),v=Math.round(v/10);var y=d<12?"AM":"PM";t=(t=(t=t.replace(/(^|[^\\])f/g,"$1"+v)).replace(/(^|[^\\])TT+/g,"$1"+y)).replace(/(^|[^\\])T/g,"$1"+y.charAt(0));var b=y.toLowerCase();t=(t=t.replace(/(^|[^\\])tt+/g,"$1"+b)).replace(/(^|[^\\])t/g,"$1"+b.charAt(0));var x=-e.getTimezoneOffset(),w=r||!x?"Z":x>0?"+":"-";if(!r){var k=(x=Math.abs(x))%60;w+=h(Math.floor(x/60))+":"+h(k)}t=t.replace(/(^|[^\\])K/g,"$1"+w);var S=(r?e.getUTCDay():e.getDay())+1;return t=(t=(t=(t=(t=t.replace(new RegExp(s[0],"g"),s[S])).replace(new RegExp(l[0],"g"),l[S])).replace(new RegExp(a[0],"g"),a[c])).replace(new RegExp(o[0],"g"),o[c])).replace(/\\(.)/g,"$1")}},{key:"getTimeUnitsfromTimestamp",value:function(e,t,n){var r=this.w;r.config.xaxis.min!==void 0&&(e=r.config.xaxis.min),r.config.xaxis.max!==void 0&&(t=r.config.xaxis.max);var a=this.getDate(e),o=this.getDate(t),s=this.formatDate(a,"yyyy MM dd HH mm ss fff").split(" "),l=this.formatDate(o,"yyyy MM dd HH mm ss fff").split(" ");return{minMillisecond:parseInt(s[6],10),maxMillisecond:parseInt(l[6],10),minSecond:parseInt(s[5],10),maxSecond:parseInt(l[5],10),minMinute:parseInt(s[4],10),maxMinute:parseInt(l[4],10),minHour:parseInt(s[3],10),maxHour:parseInt(l[3],10),minDate:parseInt(s[2],10),maxDate:parseInt(l[2],10),minMonth:parseInt(s[1],10)-1,maxMonth:parseInt(l[1],10)-1,minYear:parseInt(s[0],10),maxYear:parseInt(l[0],10)}}},{key:"isLeapYear",value:function(e){return e%4==0&&e%100!=0||e%400==0}},{key:"calculcateLastDaysOfMonth",value:function(e,t,n){return this.determineDaysOfMonths(e,t)-n}},{key:"determineDaysOfYear",value:function(e){var t=365;return this.isLeapYear(e)&&(t=366),t}},{key:"determineRemainingDaysOfYear",value:function(e,t,n){var r=this.daysCntOfYear[t]+n;return t>1&&this.isLeapYear()&&r++,r}},{key:"determineDaysOfMonths",value:function(e,t){var n=30;switch(e=q.monthMod(e),!0){case this.months30.indexOf(e)>-1:e===2&&(n=this.isLeapYear(t)?29:28);break;case this.months31.indexOf(e)>-1:default:n=31}return n}}]),i}(),Sr=function(){function i(e){ae(this,i),this.ctx=e,this.w=e.w,this.tooltipKeyFormat="dd MMM"}return oe(i,[{key:"xLabelFormat",value:function(e,t,n,r){var a=this.w;if(a.config.xaxis.type==="datetime"&&a.config.xaxis.labels.formatter===void 0&&a.config.tooltip.x.formatter===void 0){var o=new lt(this.ctx);return o.formatDate(o.getDate(t),a.config.tooltip.x.format)}return e(t,n,r)}},{key:"defaultGeneralFormatter",value:function(e){return Array.isArray(e)?e.map(function(t){return t}):e}},{key:"defaultYFormatter",value:function(e,t,n){var r=this.w;if(q.isNumber(e))if(r.globals.yValueDecimal!==0)e=e.toFixed(t.decimalsInFloat!==void 0?t.decimalsInFloat:r.globals.yValueDecimal);else{var a=e.toFixed(0);e=e==a?a:e.toFixed(1)}return e}},{key:"setLabelFormatters",value:function(){var e=this,t=this.w;return t.globals.xaxisTooltipFormatter=function(n){return e.defaultGeneralFormatter(n)},t.globals.ttKeyFormatter=function(n){return e.defaultGeneralFormatter(n)},t.globals.ttZFormatter=function(n){return n},t.globals.legendFormatter=function(n){return e.defaultGeneralFormatter(n)},t.config.xaxis.labels.formatter!==void 0?t.globals.xLabelFormatter=t.config.xaxis.labels.formatter:t.globals.xLabelFormatter=function(n){if(q.isNumber(n)){if(!t.config.xaxis.convertedCatToNumeric&&t.config.xaxis.type==="numeric"){if(q.isNumber(t.config.xaxis.decimalsInFloat))return n.toFixed(t.config.xaxis.decimalsInFloat);var r=t.globals.maxX-t.globals.minX;return r>0&&r<100?n.toFixed(1):n.toFixed(0)}return t.globals.isBarHorizontal&&t.globals.maxY-t.globals.minYArr<4?n.toFixed(1):n.toFixed(0)}return n},typeof t.config.tooltip.x.formatter=="function"?t.globals.ttKeyFormatter=t.config.tooltip.x.formatter:t.globals.ttKeyFormatter=t.globals.xLabelFormatter,typeof t.config.xaxis.tooltip.formatter=="function"&&(t.globals.xaxisTooltipFormatter=t.config.xaxis.tooltip.formatter),(Array.isArray(t.config.tooltip.y)||t.config.tooltip.y.formatter!==void 0)&&(t.globals.ttVal=t.config.tooltip.y),t.config.tooltip.z.formatter!==void 0&&(t.globals.ttZFormatter=t.config.tooltip.z.formatter),t.config.legend.formatter!==void 0&&(t.globals.legendFormatter=t.config.legend.formatter),t.config.yaxis.forEach(function(n,r){n.labels.formatter!==void 0?t.globals.yLabelFormatters[r]=n.labels.formatter:t.globals.yLabelFormatters[r]=function(a){return t.globals.xyCharts?Array.isArray(a)?a.map(function(o){return e.defaultYFormatter(o,n,r)}):e.defaultYFormatter(a,n,r):a}}),t.globals}},{key:"heatmapLabelFormatters",value:function(){var e=this.w;if(e.config.chart.type==="heatmap"){e.globals.yAxisScale[0].result=e.globals.seriesNames.slice();var t=e.globals.seriesNames.reduce(function(n,r){return n.length>r.length?n:r},0);e.globals.yAxisScale[0].niceMax=t,e.globals.yAxisScale[0].niceMin=t}}}]),i}(),Mn=function(){function i(e){ae(this,i),this.ctx=e,this.w=e.w}return oe(i,[{key:"getLabel",value:function(e,t,n,r){var a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:[],o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:"12px",s=!(arguments.length>6&&arguments[6]!==void 0)||arguments[6],l=this.w,h=e[r]===void 0?"":e[r],u=h,c=l.globals.xLabelFormatter,f=l.config.xaxis.labels.formatter,d=!1,p=new Sr(this.ctx),g=h;s&&(u=p.xLabelFormat(c,h,g,{i:r,dateFormatter:new lt(this.ctx).formatDate,w:l}),f!==void 0&&(u=f(h,e[r],{i:r,dateFormatter:new lt(this.ctx).formatDate,w:l})));var m,v;t.length>0?(m=t[r].unit,v=null,t.forEach(function(w){w.unit==="month"?v="year":w.unit==="day"?v="month":w.unit==="hour"?v="day":w.unit==="minute"&&(v="hour")}),d=v===m,n=t[r].position,u=t[r].value):l.config.xaxis.type==="datetime"&&f===void 0&&(u=""),u===void 0&&(u=""),u=Array.isArray(u)?u:u.toString();var y=new Q(this.ctx),b={};b=l.globals.rotateXLabels&&s?y.getTextRects(u,parseInt(o,10),null,"rotate(".concat(l.config.xaxis.labels.rotate," 0 0)"),!1):y.getTextRects(u,parseInt(o,10));var x=!l.config.xaxis.labels.showDuplicates&&this.ctx.timeScale;return!Array.isArray(u)&&(String(u)==="NaN"||a.indexOf(u)>=0&&x)&&(u=""),{x:n,text:u,textRect:b,isBold:d}}},{key:"checkLabelBasedOnTickamount",value:function(e,t,n){var r=this.w,a=r.config.xaxis.tickAmount;return a==="dataPoints"&&(a=Math.round(r.globals.gridWidth/120)),a>n||e%Math.round(n/(a+1))==0||(t.text=""),t}},{key:"checkForOverflowingLabels",value:function(e,t,n,r,a){var o=this.w;if(e===0&&o.globals.skipFirstTimelinelabel&&(t.text=""),e===n-1&&o.globals.skipLastTimelinelabel&&(t.text=""),o.config.xaxis.labels.hideOverlappingLabels&&r.length>0){var s=a[a.length-1];t.x<s.textRect.width/(o.globals.rotateXLabels?Math.abs(o.config.xaxis.labels.rotate)/12:1.01)+s.x&&(t.text="")}return t}},{key:"checkForReversedLabels",value:function(e,t){var n=this.w;return n.config.yaxis[e]&&n.config.yaxis[e].reversed&&t.reverse(),t}},{key:"yAxisAllSeriesCollapsed",value:function(e){var t=this.w.globals;return!t.seriesYAxisMap[e].some(function(n){return t.collapsedSeriesIndices.indexOf(n)===-1})}},{key:"translateYAxisIndex",value:function(e){var t=this.w,n=t.globals,r=t.config.yaxis;return n.series.length>r.length||r.some(function(a){return Array.isArray(a.seriesName)})?e:n.seriesYAxisReverseMap[e]}},{key:"isYAxisHidden",value:function(e){var t=this.w,n=t.config.yaxis[e];if(!n.show||this.yAxisAllSeriesCollapsed(e))return!0;if(!n.showForNullSeries){var r=t.globals.seriesYAxisMap[e],a=new Je(this.ctx);return r.every(function(o){return a.isSeriesNull(o)})}return!1}},{key:"getYAxisForeColor",value:function(e,t){var n=this.w;return Array.isArray(e)&&n.globals.yAxisScale[t]&&this.ctx.theme.pushExtraColors(e,n.globals.yAxisScale[t].result.length,!1),e}},{key:"drawYAxisTicks",value:function(e,t,n,r,a,o,s){var l=this.w,h=new Q(this.ctx),u=l.globals.translateY+l.config.yaxis[a].labels.offsetY;if(l.globals.isBarHorizontal?u=0:l.config.chart.type==="heatmap"&&(u+=o/2),r.show&&t>0){l.config.yaxis[a].opposite===!0&&(e+=r.width);for(var c=t;c>=0;c--){var f=h.drawLine(e+n.offsetX-r.width+r.offsetX,u+r.offsetY,e+n.offsetX+r.offsetX,u+r.offsetY,r.color);s.add(f),u+=o}}}}]),i}(),qd=function(){function i(e){ae(this,i),this.w=e.w,this.annoCtx=e,this.helpers=new Xa(this.annoCtx),this.axesUtils=new Mn(this.annoCtx)}return oe(i,[{key:"addYaxisAnnotation",value:function(e,t,n){var r,a=this.w,o=e.strokeDashArray,s=this.helpers.getY1Y2("y1",e),l=s.yP,h=s.clipped,u=!0,c=!1,f=e.label.text;if(e.y2===null||e.y2===void 0){if(!h){c=!0;var d=this.annoCtx.graphics.drawLine(0+e.offsetX,l+e.offsetY,this._getYAxisAnnotationWidth(e),l+e.offsetY,e.borderColor,o,e.borderWidth);t.appendChild(d.node),e.id&&d.node.classList.add(e.id)}}else{if(r=(s=this.helpers.getY1Y2("y2",e)).yP,u=s.clipped,r>l){var p=l;l=r,r=p}if(!h||!u){c=!0;var g=this.annoCtx.graphics.drawRect(0+e.offsetX,r+e.offsetY,this._getYAxisAnnotationWidth(e),l-r,0,e.fillColor,e.opacity,1,e.borderColor,o);g.node.classList.add("apexcharts-annotation-rect"),g.attr("clip-path","url(#gridRectMask".concat(a.globals.cuid,")")),t.appendChild(g.node),e.id&&g.node.classList.add(e.id)}}if(c){var m=e.label.position==="right"?a.globals.gridWidth:e.label.position==="center"?a.globals.gridWidth/2:0,v=this.annoCtx.graphics.drawText({x:m+e.label.offsetX,y:(r??l)+e.label.offsetY-3,text:f,textAnchor:e.label.textAnchor,fontSize:e.label.style.fontSize,fontFamily:e.label.style.fontFamily,fontWeight:e.label.style.fontWeight,foreColor:e.label.style.color,cssClass:"apexcharts-yaxis-annotation-label ".concat(e.label.style.cssClass," ").concat(e.id?e.id:"")});v.attr({rel:n}),t.appendChild(v.node)}}},{key:"_getYAxisAnnotationWidth",value:function(e){var t=this.w;return t.globals.gridWidth,(e.width.indexOf("%")>-1?t.globals.gridWidth*parseInt(e.width,10)/100:parseInt(e.width,10))+e.offsetX}},{key:"drawYAxisAnnotations",value:function(){var e=this,t=this.w,n=this.annoCtx.graphics.group({class:"apexcharts-yaxis-annotations"});return t.config.annotations.yaxis.forEach(function(r,a){r.yAxisIndex=e.axesUtils.translateYAxisIndex(r.yAxisIndex),e.axesUtils.isYAxisHidden(r.yAxisIndex)&&e.axesUtils.yAxisAllSeriesCollapsed(r.yAxisIndex)||e.addYaxisAnnotation(r,n.node,a)}),n}}]),i}(),Vd=function(){function i(e){ae(this,i),this.w=e.w,this.annoCtx=e,this.helpers=new Xa(this.annoCtx)}return oe(i,[{key:"addPointAnnotation",value:function(e,t,n){if(!(this.w.globals.collapsedSeriesIndices.indexOf(e.seriesIndex)>-1)){var r=this.helpers.getX1X2("x1",e),a=r.x,o=r.clipped,s=(r=this.helpers.getY1Y2("y1",e)).yP,l=r.clipped;if(q.isNumber(a)&&!l&&!o){var h={pSize:e.marker.size,pointStrokeWidth:e.marker.strokeWidth,pointFillColor:e.marker.fillColor,pointStrokeColor:e.marker.strokeColor,shape:e.marker.shape,pRadius:e.marker.radius,class:"apexcharts-point-annotation-marker ".concat(e.marker.cssClass," ").concat(e.id?e.id:"")},u=this.annoCtx.graphics.drawMarker(a+e.marker.offsetX,s+e.marker.offsetY,h);t.appendChild(u.node);var c=e.label.text?e.label.text:"",f=this.annoCtx.graphics.drawText({x:a+e.label.offsetX,y:s+e.label.offsetY-e.marker.size-parseFloat(e.label.style.fontSize)/1.6,text:c,textAnchor:e.label.textAnchor,fontSize:e.label.style.fontSize,fontFamily:e.label.style.fontFamily,fontWeight:e.label.style.fontWeight,foreColor:e.label.style.color,cssClass:"apexcharts-point-annotation-label ".concat(e.label.style.cssClass," ").concat(e.id?e.id:"")});if(f.attr({rel:n}),t.appendChild(f.node),e.customSVG.SVG){var d=this.annoCtx.graphics.group({class:"apexcharts-point-annotations-custom-svg "+e.customSVG.cssClass});d.attr({transform:"translate(".concat(a+e.customSVG.offsetX,", ").concat(s+e.customSVG.offsetY,")")}),d.node.innerHTML=e.customSVG.SVG,t.appendChild(d.node)}if(e.image.path){var p=e.image.width?e.image.width:20,g=e.image.height?e.image.height:20;u=this.annoCtx.addImage({x:a+e.image.offsetX-p/2,y:s+e.image.offsetY-g/2,width:p,height:g,path:e.image.path,appendTo:".apexcharts-point-annotations"})}e.mouseEnter&&u.node.addEventListener("mouseenter",e.mouseEnter.bind(this,e)),e.mouseLeave&&u.node.addEventListener("mouseleave",e.mouseLeave.bind(this,e)),e.click&&u.node.addEventListener("click",e.click.bind(this,e))}}}},{key:"drawPointAnnotations",value:function(){var e=this,t=this.w,n=this.annoCtx.graphics.group({class:"apexcharts-point-annotations"});return t.config.annotations.points.map(function(r,a){e.addPointAnnotation(r,n.node,a)}),n}}]),i}(),Kc={name:"en",options:{months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],toolbar:{exportToSVG:"Download SVG",exportToPNG:"Download PNG",exportToCSV:"Download CSV",menu:"Menu",selection:"Selection",selectionZoom:"Selection Zoom",zoomIn:"Zoom In",zoomOut:"Zoom Out",pan:"Panning",reset:"Reset Zoom"}}},Hn=function(){function i(){ae(this,i),this.yAxis={show:!0,showAlways:!1,showForNullSeries:!0,seriesName:void 0,opposite:!1,reversed:!1,logarithmic:!1,logBase:10,tickAmount:void 0,stepSize:void 0,forceNiceScale:!1,max:void 0,min:void 0,floating:!1,decimalsInFloat:void 0,labels:{show:!0,showDuplicates:!1,minWidth:0,maxWidth:160,offsetX:0,offsetY:0,align:void 0,rotate:0,padding:20,style:{colors:[],fontSize:"11px",fontWeight:400,fontFamily:void 0,cssClass:""},formatter:void 0},axisBorder:{show:!1,color:"#e0e0e0",width:1,offsetX:0,offsetY:0},axisTicks:{show:!1,color:"#e0e0e0",width:6,offsetX:0,offsetY:0},title:{text:void 0,rotate:-90,offsetY:0,offsetX:0,style:{color:void 0,fontSize:"11px",fontWeight:900,fontFamily:void 0,cssClass:""}},tooltip:{enabled:!1,offsetX:0},crosshairs:{show:!0,position:"front",stroke:{color:"#b6b6b6",width:1,dashArray:0}}},this.pointAnnotation={id:void 0,x:0,y:null,yAxisIndex:0,seriesIndex:void 0,mouseEnter:void 0,mouseLeave:void 0,click:void 0,marker:{size:4,fillColor:"#fff",strokeWidth:2,strokeColor:"#333",shape:"circle",offsetX:0,offsetY:0,cssClass:""},label:{borderColor:"#c2c2c2",borderWidth:1,borderRadius:2,text:void 0,textAnchor:"middle",offsetX:0,offsetY:0,mouseEnter:void 0,mouseLeave:void 0,click:void 0,style:{background:"#fff",color:void 0,fontSize:"11px",fontFamily:void 0,fontWeight:400,cssClass:"",padding:{left:5,right:5,top:2,bottom:2}}},customSVG:{SVG:void 0,cssClass:void 0,offsetX:0,offsetY:0},image:{path:void 0,width:20,height:20,offsetX:0,offsetY:0}},this.yAxisAnnotation={id:void 0,y:0,y2:null,strokeDashArray:1,fillColor:"#c2c2c2",borderColor:"#c2c2c2",borderWidth:1,opacity:.3,offsetX:0,offsetY:0,width:"100%",yAxisIndex:0,label:{borderColor:"#c2c2c2",borderWidth:1,borderRadius:2,text:void 0,textAnchor:"end",position:"right",offsetX:0,offsetY:-3,mouseEnter:void 0,mouseLeave:void 0,click:void 0,style:{background:"#fff",color:void 0,fontSize:"11px",fontFamily:void 0,fontWeight:400,cssClass:"",padding:{left:5,right:5,top:2,bottom:2}}}},this.xAxisAnnotation={id:void 0,x:0,x2:null,strokeDashArray:1,fillColor:"#c2c2c2",borderColor:"#c2c2c2",borderWidth:1,opacity:.3,offsetX:0,offsetY:0,label:{borderColor:"#c2c2c2",borderWidth:1,borderRadius:2,text:void 0,textAnchor:"middle",orientation:"vertical",position:"top",offsetX:0,offsetY:0,mouseEnter:void 0,mouseLeave:void 0,click:void 0,style:{background:"#fff",color:void 0,fontSize:"11px",fontFamily:void 0,fontWeight:400,cssClass:"",padding:{left:5,right:5,top:2,bottom:2}}}},this.text={x:0,y:0,text:"",textAnchor:"start",foreColor:void 0,fontSize:"13px",fontFamily:void 0,fontWeight:400,appendTo:".apexcharts-annotations",backgroundColor:"transparent",borderColor:"#c2c2c2",borderRadius:0,borderWidth:0,paddingLeft:4,paddingRight:4,paddingTop:2,paddingBottom:2}}return oe(i,[{key:"init",value:function(){return{annotations:{yaxis:[this.yAxisAnnotation],xaxis:[this.xAxisAnnotation],points:[this.pointAnnotation],texts:[],images:[],shapes:[]},chart:{animations:{enabled:!0,speed:800,animateGradually:{delay:150,enabled:!0},dynamicAnimation:{enabled:!0,speed:350}},background:"",locales:[Kc],defaultLocale:"en",dropShadow:{enabled:!1,enabledOnSeries:void 0,top:2,left:2,blur:4,color:"#000",opacity:.7},events:{animationEnd:void 0,beforeMount:void 0,mounted:void 0,updated:void 0,click:void 0,mouseMove:void 0,mouseLeave:void 0,xAxisLabelClick:void 0,legendClick:void 0,markerClick:void 0,selection:void 0,dataPointSelection:void 0,dataPointMouseEnter:void 0,dataPointMouseLeave:void 0,beforeZoom:void 0,beforeResetZoom:void 0,zoomed:void 0,scrolled:void 0,brushScrolled:void 0},foreColor:"#373d3f",fontFamily:"Helvetica, Arial, sans-serif",height:"auto",parentHeightOffset:15,redrawOnParentResize:!0,redrawOnWindowResize:!0,id:void 0,group:void 0,nonce:void 0,offsetX:0,offsetY:0,selection:{enabled:!1,type:"x",fill:{color:"#24292e",opacity:.1},stroke:{width:1,color:"#24292e",opacity:.4,dashArray:3},xaxis:{min:void 0,max:void 0},yaxis:{min:void 0,max:void 0}},sparkline:{enabled:!1},brush:{enabled:!1,autoScaleYaxis:!0,target:void 0,targets:void 0},stacked:!1,stackOnlyBar:!0,stackType:"normal",toolbar:{show:!0,offsetX:0,offsetY:0,tools:{download:!0,selection:!0,zoom:!0,zoomin:!0,zoomout:!0,pan:!0,reset:!0,customIcons:[]},export:{csv:{filename:void 0,columnDelimiter:",",headerCategory:"category",headerValue:"value",categoryFormatter:void 0,valueFormatter:void 0},png:{filename:void 0},svg:{filename:void 0},scale:void 0,width:void 0},autoSelected:"zoom"},type:"line",width:"100%",zoom:{enabled:!0,type:"x",autoScaleYaxis:!1,allowMouseWheelZoom:!0,zoomedArea:{fill:{color:"#90CAF9",opacity:.4},stroke:{color:"#0D47A1",opacity:.4,width:1}}}},plotOptions:{line:{isSlopeChart:!1,colors:{threshold:0,colorAboveThreshold:void 0,colorBelowThreshold:void 0}},area:{fillTo:"origin"},bar:{horizontal:!1,columnWidth:"70%",barHeight:"70%",distributed:!1,borderRadius:0,borderRadiusApplication:"around",borderRadiusWhenStacked:"last",rangeBarOverlap:!0,rangeBarGroupRows:!1,hideZeroBarsWhenGrouped:!1,isDumbbell:!1,dumbbellColors:void 0,isFunnel:!1,isFunnel3d:!0,colors:{ranges:[],backgroundBarColors:[],backgroundBarOpacity:1,backgroundBarRadius:0},dataLabels:{position:"top",maxItems:100,hideOverflowingLabels:!0,orientation:"horizontal",total:{enabled:!1,formatter:void 0,offsetX:0,offsetY:0,style:{color:"#373d3f",fontSize:"12px",fontFamily:void 0,fontWeight:600}}}},bubble:{zScaling:!0,minBubbleRadius:void 0,maxBubbleRadius:void 0},candlestick:{colors:{upward:"#00B746",downward:"#EF403C"},wick:{useFillColor:!0}},boxPlot:{colors:{upper:"#00E396",lower:"#008FFB"}},heatmap:{radius:2,enableShades:!0,shadeIntensity:.5,reverseNegativeShade:!1,distributed:!1,useFillColorAsStroke:!1,colorScale:{inverse:!1,ranges:[],min:void 0,max:void 0}},treemap:{enableShades:!0,shadeIntensity:.5,distributed:!1,reverseNegativeShade:!1,useFillColorAsStroke:!1,borderRadius:4,dataLabels:{format:"scale"},colorScale:{inverse:!1,ranges:[],min:void 0,max:void 0},seriesTitle:{show:!0,offsetY:1,offsetX:1,borderColor:"#000",borderWidth:1,borderRadius:2,style:{background:"rgba(0, 0, 0, 0.6)",color:"#fff",fontSize:"12px",fontFamily:void 0,fontWeight:400,cssClass:"",padding:{left:6,right:6,top:2,bottom:2}}}},radialBar:{inverseOrder:!1,startAngle:0,endAngle:360,offsetX:0,offsetY:0,hollow:{margin:5,size:"50%",background:"transparent",image:void 0,imageWidth:150,imageHeight:150,imageOffsetX:0,imageOffsetY:0,imageClipped:!0,position:"front",dropShadow:{enabled:!1,top:0,left:0,blur:3,color:"#000",opacity:.5}},track:{show:!0,startAngle:void 0,endAngle:void 0,background:"#f2f2f2",strokeWidth:"97%",opacity:1,margin:5,dropShadow:{enabled:!1,top:0,left:0,blur:3,color:"#000",opacity:.5}},dataLabels:{show:!0,name:{show:!0,fontSize:"16px",fontFamily:void 0,fontWeight:600,color:void 0,offsetY:0,formatter:function(e){return e}},value:{show:!0,fontSize:"14px",fontFamily:void 0,fontWeight:400,color:void 0,offsetY:16,formatter:function(e){return e+"%"}},total:{show:!1,label:"Total",fontSize:"16px",fontWeight:600,fontFamily:void 0,color:void 0,formatter:function(e){return e.globals.seriesTotals.reduce(function(t,n){return t+n},0)/e.globals.series.length+"%"}}},barLabels:{enabled:!1,offsetX:0,offsetY:0,useSeriesColors:!0,fontFamily:void 0,fontWeight:600,fontSize:"16px",formatter:function(e){return e},onClick:void 0}},pie:{customScale:1,offsetX:0,offsetY:0,startAngle:0,endAngle:360,expandOnClick:!0,dataLabels:{offset:0,minAngleToShowLabel:10},donut:{size:"65%",background:"transparent",labels:{show:!1,name:{show:!0,fontSize:"16px",fontFamily:void 0,fontWeight:600,color:void 0,offsetY:-10,formatter:function(e){return e}},value:{show:!0,fontSize:"20px",fontFamily:void 0,fontWeight:400,color:void 0,offsetY:10,formatter:function(e){return e}},total:{show:!1,showAlways:!1,label:"Total",fontSize:"16px",fontWeight:400,fontFamily:void 0,color:void 0,formatter:function(e){return e.globals.seriesTotals.reduce(function(t,n){return t+n},0)}}}}},polarArea:{rings:{strokeWidth:1,strokeColor:"#e8e8e8"},spokes:{strokeWidth:1,connectorColors:"#e8e8e8"}},radar:{size:void 0,offsetX:0,offsetY:0,polygons:{strokeWidth:1,strokeColors:"#e8e8e8",connectorColors:"#e8e8e8",fill:{colors:void 0}}}},colors:void 0,dataLabels:{enabled:!0,enabledOnSeries:void 0,formatter:function(e){return e!==null?e:""},textAnchor:"middle",distributed:!1,offsetX:0,offsetY:0,style:{fontSize:"12px",fontFamily:void 0,fontWeight:600,colors:void 0},background:{enabled:!0,foreColor:"#fff",backgroundColor:void 0,borderRadius:2,padding:4,opacity:.9,borderWidth:1,borderColor:"#fff",dropShadow:{enabled:!1,top:1,left:1,blur:1,color:"#000",opacity:.8}},dropShadow:{enabled:!1,top:1,left:1,blur:1,color:"#000",opacity:.8}},fill:{type:"solid",colors:void 0,opacity:.85,gradient:{shade:"dark",type:"horizontal",shadeIntensity:.5,gradientToColors:void 0,inverseColors:!0,opacityFrom:1,opacityTo:1,stops:[0,50,100],colorStops:[]},image:{src:[],width:void 0,height:void 0},pattern:{style:"squares",width:6,height:6,strokeWidth:2}},forecastDataPoints:{count:0,fillOpacity:.5,strokeWidth:void 0,dashArray:4},grid:{show:!0,borderColor:"#e0e0e0",strokeDashArray:0,position:"back",xaxis:{lines:{show:!1}},yaxis:{lines:{show:!0}},row:{colors:void 0,opacity:.5},column:{colors:void 0,opacity:.5},padding:{top:0,right:10,bottom:0,left:12}},labels:[],legend:{show:!0,showForSingleSeries:!1,showForNullSeries:!0,showForZeroSeries:!0,floating:!1,position:"bottom",horizontalAlign:"center",inverseOrder:!1,fontSize:"12px",fontFamily:void 0,fontWeight:400,width:void 0,height:void 0,formatter:void 0,tooltipHoverFormatter:void 0,offsetX:-20,offsetY:4,customLegendItems:[],clusterGroupedSeries:!0,clusterGroupedSeriesOrientation:"vertical",labels:{colors:void 0,useSeriesColors:!1},markers:{size:7,fillColors:void 0,strokeWidth:1,shape:void 0,offsetX:0,offsetY:0,customHTML:void 0,onClick:void 0},itemMargin:{horizontal:5,vertical:4},onItemClick:{toggleDataSeries:!0},onItemHover:{highlightDataSeries:!0}},markers:{discrete:[],size:0,colors:void 0,strokeColors:"#fff",strokeWidth:2,strokeOpacity:.9,strokeDashArray:0,fillOpacity:1,shape:"circle",offsetX:0,offsetY:0,showNullDataPoints:!0,onClick:void 0,onDblClick:void 0,hover:{size:void 0,sizeOffset:3}},noData:{text:void 0,align:"center",verticalAlign:"middle",offsetX:0,offsetY:0,style:{color:void 0,fontSize:"14px",fontFamily:void 0}},responsive:[],series:void 0,states:{hover:{filter:{type:"lighten"}},active:{allowMultipleDataPointsSelection:!1,filter:{type:"darken"}}},title:{text:void 0,align:"left",margin:5,offsetX:0,offsetY:0,floating:!1,style:{fontSize:"14px",fontWeight:900,fontFamily:void 0,color:void 0}},subtitle:{text:void 0,align:"left",margin:5,offsetX:0,offsetY:30,floating:!1,style:{fontSize:"12px",fontWeight:400,fontFamily:void 0,color:void 0}},stroke:{show:!0,curve:"smooth",lineCap:"butt",width:2,colors:void 0,dashArray:0,fill:{type:"solid",colors:void 0,opacity:.85,gradient:{shade:"dark",type:"horizontal",shadeIntensity:.5,gradientToColors:void 0,inverseColors:!0,opacityFrom:1,opacityTo:1,stops:[0,50,100],colorStops:[]}}},tooltip:{enabled:!0,enabledOnSeries:void 0,shared:!0,hideEmptySeries:!1,followCursor:!1,intersect:!1,inverseOrder:!1,custom:void 0,fillSeriesColor:!1,theme:"light",cssClass:"",style:{fontSize:"12px",fontFamily:void 0},onDatasetHover:{highlightDataSeries:!1},x:{show:!0,format:"dd MMM",formatter:void 0},y:{formatter:void 0,title:{formatter:function(e){return e?e+": ":""}}},z:{formatter:void 0,title:"Size: "},marker:{show:!0,fillColors:void 0},items:{display:"flex"},fixed:{enabled:!1,position:"topRight",offsetX:0,offsetY:0}},xaxis:{type:"category",categories:[],convertedCatToNumeric:!1,offsetX:0,offsetY:0,overwriteCategories:void 0,labels:{show:!0,rotate:-45,rotateAlways:!1,hideOverlappingLabels:!0,trim:!1,minHeight:void 0,maxHeight:120,showDuplicates:!0,style:{colors:[],fontSize:"12px",fontWeight:400,fontFamily:void 0,cssClass:""},offsetX:0,offsetY:0,format:void 0,formatter:void 0,datetimeUTC:!0,datetimeFormatter:{year:"yyyy",month:"MMM 'yy",day:"dd MMM",hour:"HH:mm",minute:"HH:mm:ss",second:"HH:mm:ss"}},group:{groups:[],style:{colors:[],fontSize:"12px",fontWeight:400,fontFamily:void 0,cssClass:""}},axisBorder:{show:!0,color:"#e0e0e0",width:"100%",height:1,offsetX:0,offsetY:0},axisTicks:{show:!0,color:"#e0e0e0",height:6,offsetX:0,offsetY:0},stepSize:void 0,tickAmount:void 0,tickPlacement:"on",min:void 0,max:void 0,range:void 0,floating:!1,decimalsInFloat:void 0,position:"bottom",title:{text:void 0,offsetX:0,offsetY:0,style:{color:void 0,fontSize:"12px",fontWeight:900,fontFamily:void 0,cssClass:""}},crosshairs:{show:!0,width:1,position:"back",opacity:.9,stroke:{color:"#b6b6b6",width:1,dashArray:3},fill:{type:"solid",color:"#B1B9C4",gradient:{colorFrom:"#D8E3F0",colorTo:"#BED1E6",stops:[0,100],opacityFrom:.4,opacityTo:.5}},dropShadow:{enabled:!1,left:0,top:0,blur:1,opacity:.8}},tooltip:{enabled:!0,offsetY:0,formatter:void 0,style:{fontSize:"12px",fontFamily:void 0}}},yaxis:this.yAxis,theme:{mode:"",palette:"palette1",monochrome:{enabled:!1,color:"#008FFB",shadeTo:"light",shadeIntensity:.65}}}}}]),i}(),Gd=function(){function i(e){ae(this,i),this.ctx=e,this.w=e.w,this.graphics=new Q(this.ctx),this.w.globals.isBarHorizontal&&(this.invertAxis=!0),this.helpers=new Xa(this),this.xAxisAnnotations=new Wd(this),this.yAxisAnnotations=new qd(this),this.pointsAnnotations=new Vd(this),this.w.globals.isBarHorizontal&&this.w.config.yaxis[0].reversed&&(this.inversedReversedAxis=!0),this.xDivision=this.w.globals.gridWidth/this.w.globals.dataPoints}return oe(i,[{key:"drawAxesAnnotations",value:function(){var e=this.w;if(e.globals.axisCharts&&e.globals.dataPoints){for(var t=this.yAxisAnnotations.drawYAxisAnnotations(),n=this.xAxisAnnotations.drawXAxisAnnotations(),r=this.pointsAnnotations.drawPointAnnotations(),a=e.config.chart.animations.enabled,o=[t,n,r],s=[n.node,t.node,r.node],l=0;l<3;l++)e.globals.dom.elGraphical.add(o[l]),!a||e.globals.resized||e.globals.dataChanged||e.config.chart.type!=="scatter"&&e.config.chart.type!=="bubble"&&e.globals.dataPoints>1&&s[l].classList.add("apexcharts-element-hidden"),e.globals.delayedElements.push({el:s[l],index:0});this.helpers.annotationsBackground()}}},{key:"drawImageAnnos",value:function(){var e=this;this.w.config.annotations.images.map(function(t,n){e.addImage(t,n)})}},{key:"drawTextAnnos",value:function(){var e=this;this.w.config.annotations.texts.map(function(t,n){e.addText(t,n)})}},{key:"addXaxisAnnotation",value:function(e,t,n){this.xAxisAnnotations.addXaxisAnnotation(e,t,n)}},{key:"addYaxisAnnotation",value:function(e,t,n){this.yAxisAnnotations.addYaxisAnnotation(e,t,n)}},{key:"addPointAnnotation",value:function(e,t,n){this.pointsAnnotations.addPointAnnotation(e,t,n)}},{key:"addText",value:function(e,t){var n=e.x,r=e.y,a=e.text,o=e.textAnchor,s=e.foreColor,l=e.fontSize,h=e.fontFamily,u=e.fontWeight,c=e.cssClass,f=e.backgroundColor,d=e.borderWidth,p=e.strokeDashArray,g=e.borderRadius,m=e.borderColor,v=e.appendTo,y=v===void 0?".apexcharts-svg":v,b=e.paddingLeft,x=b===void 0?4:b,w=e.paddingRight,k=w===void 0?4:w,S=e.paddingBottom,A=S===void 0?2:S,O=e.paddingTop,_=O===void 0?2:O,C=this.w,M=this.graphics.drawText({x:n,y:r,text:a,textAnchor:o||"start",fontSize:l||"12px",fontWeight:u||"regular",fontFamily:h||C.config.chart.fontFamily,foreColor:s||C.config.chart.foreColor,cssClass:c}),P=C.globals.dom.baseEl.querySelector(y);P&&P.appendChild(M.node);var E=M.bbox();if(a){var R=this.graphics.drawRect(E.x-x,E.y-_,E.width+x+k,E.height+A+_,g,f||"transparent",1,d,m,p);P.insertBefore(R.node,M.node)}}},{key:"addImage",value:function(e,t){var n=this.w,r=e.path,a=e.x,o=a===void 0?0:a,s=e.y,l=s===void 0?0:s,h=e.width,u=h===void 0?20:h,c=e.height,f=c===void 0?20:c,d=e.appendTo,p=d===void 0?".apexcharts-svg":d,g=n.globals.dom.Paper.image(r);g.size(u,f).move(o,l);var m=n.globals.dom.baseEl.querySelector(p);return m&&m.appendChild(g.node),g}},{key:"addXaxisAnnotationExternal",value:function(e,t,n){return this.addAnnotationExternal({params:e,pushToMemory:t,context:n,type:"xaxis",contextMethod:n.addXaxisAnnotation}),n}},{key:"addYaxisAnnotationExternal",value:function(e,t,n){return this.addAnnotationExternal({params:e,pushToMemory:t,context:n,type:"yaxis",contextMethod:n.addYaxisAnnotation}),n}},{key:"addPointAnnotationExternal",value:function(e,t,n){return this.invertAxis===void 0&&(this.invertAxis=n.w.globals.isBarHorizontal),this.addAnnotationExternal({params:e,pushToMemory:t,context:n,type:"point",contextMethod:n.addPointAnnotation}),n}},{key:"addAnnotationExternal",value:function(e){var t=e.params,n=e.pushToMemory,r=e.context,a=e.type,o=e.contextMethod,s=r,l=s.w,h=l.globals.dom.baseEl.querySelector(".apexcharts-".concat(a,"-annotations")),u=h.childNodes.length+1,c=new Hn,f=Object.assign({},a==="xaxis"?c.xAxisAnnotation:a==="yaxis"?c.yAxisAnnotation:c.pointAnnotation),d=q.extend(f,t);switch(a){case"xaxis":this.addXaxisAnnotation(d,h,u);break;case"yaxis":this.addYaxisAnnotation(d,h,u);break;case"point":this.addPointAnnotation(d,h,u)}var p=l.globals.dom.baseEl.querySelector(".apexcharts-".concat(a,"-annotations .apexcharts-").concat(a,"-annotation-label[rel='").concat(u,"']")),g=this.helpers.addBackgroundToAnno(p,d);return g&&h.insertBefore(g.node,p),n&&l.globals.memory.methodsToExec.push({context:s,id:d.id?d.id:q.randomId(),method:o,label:"addAnnotation",params:t}),r}},{key:"clearAnnotations",value:function(e){for(var t=e.w,n=t.globals.dom.baseEl.querySelectorAll(".apexcharts-yaxis-annotations, .apexcharts-xaxis-annotations, .apexcharts-point-annotations"),r=t.globals.memory.methodsToExec.length-1;r>=0;r--)t.globals.memory.methodsToExec[r].label!=="addText"&&t.globals.memory.methodsToExec[r].label!=="addAnnotation"||t.globals.memory.methodsToExec.splice(r,1);n=q.listToArray(n),Array.prototype.forEach.call(n,function(a){for(;a.firstChild;)a.removeChild(a.firstChild)})}},{key:"removeAnnotation",value:function(e,t){var n=e.w,r=n.globals.dom.baseEl.querySelectorAll(".".concat(t));r&&(n.globals.memory.methodsToExec.map(function(a,o){a.id===t&&n.globals.memory.methodsToExec.splice(o,1)}),Object.keys(n.config.annotations).forEach(function(a){var o=n.config.annotations[a];Array.isArray(o)&&(n.config.annotations[a]=o.filter(function(s){return s.id!==t}))}),Array.prototype.forEach.call(r,function(a){a.parentElement.removeChild(a)}))}}]),i}(),uo=function(i){var e,t=i.isTimeline,n=i.ctx,r=i.seriesIndex,a=i.dataPointIndex,o=i.y1,s=i.y2,l=i.w,h=l.globals.seriesRangeStart[r][a],u=l.globals.seriesRangeEnd[r][a],c=l.globals.labels[a],f=l.config.series[r].name?l.config.series[r].name:"",d=l.globals.ttKeyFormatter,p=l.config.tooltip.y.title.formatter,g={w:l,seriesIndex:r,dataPointIndex:a,start:h,end:u};typeof p=="function"&&(f=p(f,g)),(e=l.config.series[r].data[a])!==null&&e!==void 0&&e.x&&(c=l.config.series[r].data[a].x),t||l.config.xaxis.type==="datetime"&&(c=new Sr(n).xLabelFormat(l.globals.ttKeyFormatter,c,c,{i:void 0,dateFormatter:new lt(n).formatDate,w:l})),typeof d=="function"&&(c=d(c,g)),Number.isFinite(o)&&Number.isFinite(s)&&(h=o,u=s);var m="",v="",y=l.globals.colors[r];if(l.config.tooltip.x.formatter===void 0)if(l.config.xaxis.type==="datetime"){var b=new lt(n);m=b.formatDate(b.getDate(h),l.config.tooltip.x.format),v=b.formatDate(b.getDate(u),l.config.tooltip.x.format)}else m=h,v=u;else m=l.config.tooltip.x.formatter(h),v=l.config.tooltip.x.formatter(u);return{start:h,end:u,startVal:m,endVal:v,ylabel:c,color:y,seriesName:f}},co=function(i){var e=i.color,t=i.seriesName,n=i.ylabel,r=i.start,a=i.end,o=i.seriesIndex,s=i.dataPointIndex,l=i.ctx.tooltip.tooltipLabels.getFormatters(o);r=l.yLbFormatter(r),a=l.yLbFormatter(a);var h=l.yLbFormatter(i.w.globals.series[o][s]),u=`<span class="value start-value">
34
+ `.concat(r,`
35
+ </span> <span class="separator">-</span> <span class="value end-value">
36
+ `).concat(a,`
37
+ </span>`);return'<div class="apexcharts-tooltip-rangebar"><div> <span class="series-name" style="color: '+e+'">'+(t||"")+'</span></div><div> <span class="category">'+n+": </span> "+(i.w.globals.comboCharts?i.w.config.series[o].type==="rangeArea"||i.w.config.series[o].type==="rangeBar"?u:"<span>".concat(h,"</span>"):u)+" </div></div>"},or=function(){function i(e){ae(this,i),this.opts=e}return oe(i,[{key:"hideYAxis",value:function(){this.opts.yaxis[0].show=!1,this.opts.yaxis[0].title.text="",this.opts.yaxis[0].axisBorder.show=!1,this.opts.yaxis[0].axisTicks.show=!1,this.opts.yaxis[0].floating=!0}},{key:"line",value:function(){return{dataLabels:{enabled:!1},stroke:{width:5,curve:"straight"},markers:{size:0,hover:{sizeOffset:6}},xaxis:{crosshairs:{width:1}}}}},{key:"sparkline",value:function(e){return this.hideYAxis(),q.extend(e,{grid:{show:!1,padding:{left:0,right:0,top:0,bottom:0}},legend:{show:!1},xaxis:{labels:{show:!1},tooltip:{enabled:!1},axisBorder:{show:!1},axisTicks:{show:!1}},chart:{toolbar:{show:!1},zoom:{enabled:!1}},dataLabels:{enabled:!1}})}},{key:"slope",value:function(){return this.hideYAxis(),{chart:{toolbar:{show:!1},zoom:{enabled:!1}},dataLabels:{enabled:!0,formatter:function(e,t){var n=t.w.config.series[t.seriesIndex].name;return e!==null?n+": "+e:""},background:{enabled:!1},offsetX:-5},grid:{xaxis:{lines:{show:!0}},yaxis:{lines:{show:!1}}},xaxis:{position:"top",labels:{style:{fontSize:14,fontWeight:900}},tooltip:{enabled:!1},crosshairs:{show:!1}},markers:{size:8,hover:{sizeOffset:1}},legend:{show:!1},tooltip:{shared:!1,intersect:!0,followCursor:!0},stroke:{width:5,curve:"straight"}}}},{key:"bar",value:function(){return{chart:{stacked:!1},plotOptions:{bar:{dataLabels:{position:"center"}}},dataLabels:{style:{colors:["#fff"]},background:{enabled:!1}},stroke:{width:0,lineCap:"square"},fill:{opacity:.85},legend:{markers:{shape:"square"}},tooltip:{shared:!1,intersect:!0},xaxis:{tooltip:{enabled:!1},tickPlacement:"between",crosshairs:{width:"barWidth",position:"back",fill:{type:"gradient"},dropShadow:{enabled:!1},stroke:{width:0}}}}}},{key:"funnel",value:function(){return this.hideYAxis(),ne(ne({},this.bar()),{},{chart:{animations:{speed:800,animateGradually:{enabled:!1}}},plotOptions:{bar:{horizontal:!0,borderRadiusApplication:"around",borderRadius:0,dataLabels:{position:"center"}}},grid:{show:!1,padding:{left:0,right:0}},xaxis:{labels:{show:!1},tooltip:{enabled:!1},axisBorder:{show:!1},axisTicks:{show:!1}}})}},{key:"candlestick",value:function(){var e=this;return{stroke:{width:1},fill:{opacity:1},dataLabels:{enabled:!1},tooltip:{shared:!0,custom:function(t){var n=t.seriesIndex,r=t.dataPointIndex,a=t.w;return e._getBoxTooltip(a,n,r,["Open","High","","Low","Close"],"candlestick")}},states:{active:{filter:{type:"none"}}},xaxis:{crosshairs:{width:1}}}}},{key:"boxPlot",value:function(){var e=this;return{chart:{animations:{dynamicAnimation:{enabled:!1}}},stroke:{width:1,colors:["#24292e"]},dataLabels:{enabled:!1},tooltip:{shared:!0,custom:function(t){var n=t.seriesIndex,r=t.dataPointIndex,a=t.w;return e._getBoxTooltip(a,n,r,["Minimum","Q1","Median","Q3","Maximum"],"boxPlot")}},markers:{size:7,strokeWidth:1,strokeColors:"#111"},xaxis:{crosshairs:{width:1}}}}},{key:"rangeBar",value:function(){return{chart:{animations:{animateGradually:!1}},stroke:{width:0,lineCap:"square"},plotOptions:{bar:{borderRadius:0,dataLabels:{position:"center"}}},dataLabels:{enabled:!1,formatter:function(e,t){t.ctx;var n=t.seriesIndex,r=t.dataPointIndex,a=t.w,o=function(){var s=a.globals.seriesRangeStart[n][r];return a.globals.seriesRangeEnd[n][r]-s};return a.globals.comboCharts?a.config.series[n].type==="rangeBar"||a.config.series[n].type==="rangeArea"?o():e:o()},background:{enabled:!1},style:{colors:["#fff"]}},markers:{size:10},tooltip:{shared:!1,followCursor:!0,custom:function(e){return e.w.config.plotOptions&&e.w.config.plotOptions.bar&&e.w.config.plotOptions.bar.horizontal?function(t){var n=uo(ne(ne({},t),{},{isTimeline:!0})),r=n.color,a=n.seriesName,o=n.ylabel,s=n.startVal,l=n.endVal;return co(ne(ne({},t),{},{color:r,seriesName:a,ylabel:o,start:s,end:l}))}(e):function(t){var n=uo(t),r=n.color,a=n.seriesName,o=n.ylabel,s=n.start,l=n.end;return co(ne(ne({},t),{},{color:r,seriesName:a,ylabel:o,start:s,end:l}))}(e)}},xaxis:{tickPlacement:"between",tooltip:{enabled:!1},crosshairs:{stroke:{width:0}}}}}},{key:"dumbbell",value:function(e){var t,n;return(t=e.plotOptions.bar)!==null&&t!==void 0&&t.barHeight||(e.plotOptions.bar.barHeight=2),(n=e.plotOptions.bar)!==null&&n!==void 0&&n.columnWidth||(e.plotOptions.bar.columnWidth=2),e}},{key:"area",value:function(){return{stroke:{width:4,fill:{type:"solid",gradient:{inverseColors:!1,shade:"light",type:"vertical",opacityFrom:.65,opacityTo:.5,stops:[0,100,100]}}},fill:{type:"gradient",gradient:{inverseColors:!1,shade:"light",type:"vertical",opacityFrom:.65,opacityTo:.5,stops:[0,100,100]}},markers:{size:0,hover:{sizeOffset:6}},tooltip:{followCursor:!1}}}},{key:"rangeArea",value:function(){return{stroke:{curve:"straight",width:0},fill:{type:"solid",opacity:.6},markers:{size:0},states:{hover:{filter:{type:"none"}},active:{filter:{type:"none"}}},tooltip:{intersect:!1,shared:!0,followCursor:!0,custom:function(e){return function(t){var n=uo(t),r=n.color,a=n.seriesName,o=n.ylabel,s=n.start,l=n.end;return co(ne(ne({},t),{},{color:r,seriesName:a,ylabel:o,start:s,end:l}))}(e)}}}}},{key:"brush",value:function(e){return q.extend(e,{chart:{toolbar:{autoSelected:"selection",show:!1},zoom:{enabled:!1}},dataLabels:{enabled:!1},stroke:{width:1},tooltip:{enabled:!1},xaxis:{tooltip:{enabled:!1}}})}},{key:"stacked100",value:function(e){e.dataLabels=e.dataLabels||{},e.dataLabels.formatter=e.dataLabels.formatter||void 0;var t=e.dataLabels.formatter;return e.yaxis.forEach(function(n,r){e.yaxis[r].min=0,e.yaxis[r].max=100}),e.chart.type==="bar"&&(e.dataLabels.formatter=t||function(n){return typeof n=="number"&&n?n.toFixed(0)+"%":n}),e}},{key:"stackedBars",value:function(){var e=this.bar();return ne(ne({},e),{},{plotOptions:ne(ne({},e.plotOptions),{},{bar:ne(ne({},e.plotOptions.bar),{},{borderRadiusApplication:"end",borderRadiusWhenStacked:"last"})})})}},{key:"convertCatToNumeric",value:function(e){return e.xaxis.convertedCatToNumeric=!0,e}},{key:"convertCatToNumericXaxis",value:function(e,t,n){e.xaxis.type="numeric",e.xaxis.labels=e.xaxis.labels||{},e.xaxis.labels.formatter=e.xaxis.labels.formatter||function(o){return q.isNumber(o)?Math.floor(o):o};var r=e.xaxis.labels.formatter,a=e.xaxis.categories&&e.xaxis.categories.length?e.xaxis.categories:e.labels;return n&&n.length&&(a=n.map(function(o){return Array.isArray(o)?o:String(o)})),a&&a.length&&(e.xaxis.labels.formatter=function(o){return q.isNumber(o)?r(a[Math.floor(o)-1]):r(o)}),e.xaxis.categories=[],e.labels=[],e.xaxis.tickAmount=e.xaxis.tickAmount||"dataPoints",e}},{key:"bubble",value:function(){return{dataLabels:{style:{colors:["#fff"]}},tooltip:{shared:!1,intersect:!0},xaxis:{crosshairs:{width:0}},fill:{type:"solid",gradient:{shade:"light",inverse:!0,shadeIntensity:.55,opacityFrom:.4,opacityTo:.8}}}}},{key:"scatter",value:function(){return{dataLabels:{enabled:!1},tooltip:{shared:!1,intersect:!0},markers:{size:6,strokeWidth:1,hover:{sizeOffset:2}}}}},{key:"heatmap",value:function(){return{chart:{stacked:!1},fill:{opacity:1},dataLabels:{style:{colors:["#fff"]}},stroke:{colors:["#fff"]},tooltip:{followCursor:!0,marker:{show:!1},x:{show:!1}},legend:{position:"top",markers:{shape:"square"}},grid:{padding:{right:20}}}}},{key:"treemap",value:function(){return{chart:{zoom:{enabled:!1}},dataLabels:{style:{fontSize:14,fontWeight:600,colors:["#fff"]}},stroke:{show:!0,width:2,colors:["#fff"]},legend:{show:!1},fill:{opacity:1,gradient:{stops:[0,100]}},tooltip:{followCursor:!0,x:{show:!1}},grid:{padding:{left:0,right:0}},xaxis:{crosshairs:{show:!1},tooltip:{enabled:!1}}}}},{key:"pie",value:function(){return{chart:{toolbar:{show:!1}},plotOptions:{pie:{donut:{labels:{show:!1}}}},dataLabels:{formatter:function(e){return e.toFixed(1)+"%"},style:{colors:["#fff"]},background:{enabled:!1},dropShadow:{enabled:!0}},stroke:{colors:["#fff"]},fill:{opacity:1,gradient:{shade:"light",stops:[0,100]}},tooltip:{theme:"dark",fillSeriesColor:!0},legend:{position:"right"},grid:{padding:{left:0,right:0,top:0,bottom:0}}}}},{key:"donut",value:function(){return{chart:{toolbar:{show:!1}},dataLabels:{formatter:function(e){return e.toFixed(1)+"%"},style:{colors:["#fff"]},background:{enabled:!1},dropShadow:{enabled:!0}},stroke:{colors:["#fff"]},fill:{opacity:1,gradient:{shade:"light",shadeIntensity:.35,stops:[80,100],opacityFrom:1,opacityTo:1}},tooltip:{theme:"dark",fillSeriesColor:!0},legend:{position:"right"},grid:{padding:{left:0,right:0,top:0,bottom:0}}}}},{key:"polarArea",value:function(){return{chart:{toolbar:{show:!1}},dataLabels:{formatter:function(e){return e.toFixed(1)+"%"},enabled:!1},stroke:{show:!0,width:2},fill:{opacity:.7},tooltip:{theme:"dark",fillSeriesColor:!0},legend:{position:"right"},grid:{padding:{left:0,right:0,top:0,bottom:0}}}}},{key:"radar",value:function(){return this.opts.yaxis[0].labels.offsetY=this.opts.yaxis[0].labels.offsetY?this.opts.yaxis[0].labels.offsetY:6,{dataLabels:{enabled:!1,style:{fontSize:"11px"}},stroke:{width:2},markers:{size:5,strokeWidth:1,strokeOpacity:1},fill:{opacity:.2},tooltip:{shared:!1,intersect:!0,followCursor:!0},grid:{show:!1,padding:{left:0,right:0,top:0,bottom:0}},xaxis:{labels:{formatter:function(e){return e},style:{colors:["#a8a8a8"],fontSize:"11px"}},tooltip:{enabled:!1},crosshairs:{show:!1}}}}},{key:"radialBar",value:function(){return{chart:{animations:{dynamicAnimation:{enabled:!0,speed:800}},toolbar:{show:!1}},fill:{gradient:{shade:"dark",shadeIntensity:.4,inverseColors:!1,type:"diagonal2",opacityFrom:1,opacityTo:1,stops:[70,98,100]}},legend:{show:!1,position:"right"},tooltip:{enabled:!1,fillSeriesColor:!0},grid:{padding:{left:0,right:0,top:0,bottom:0}}}}},{key:"_getBoxTooltip",value:function(e,t,n,r,a){var o=e.globals.seriesCandleO[t][n],s=e.globals.seriesCandleH[t][n],l=e.globals.seriesCandleM[t][n],h=e.globals.seriesCandleL[t][n],u=e.globals.seriesCandleC[t][n];return e.config.series[t].type&&e.config.series[t].type!==a?`<div class="apexcharts-custom-tooltip">
38
+ `.concat(e.config.series[t].name?e.config.series[t].name:"series-"+(t+1),": <strong>").concat(e.globals.series[t][n],`</strong>
39
+ </div>`):'<div class="apexcharts-tooltip-box apexcharts-tooltip-'.concat(e.config.chart.type,'">')+"<div>".concat(r[0],': <span class="value">')+o+"</span></div>"+"<div>".concat(r[1],': <span class="value">')+s+"</span></div>"+(l?"<div>".concat(r[2],': <span class="value">')+l+"</span></div>":"")+"<div>".concat(r[3],': <span class="value">')+h+"</span></div>"+"<div>".concat(r[4],': <span class="value">')+u+"</span></div></div>"}}]),i}(),sr=function(){function i(e){ae(this,i),this.opts=e}return oe(i,[{key:"init",value:function(e){var t=e.responsiveOverride,n=this.opts,r=new Hn,a=new or(n);this.chartType=n.chart.type,n=this.extendYAxis(n),n=this.extendAnnotations(n);var o=r.init(),s={};if(n&&pi(n)==="object"){var l,h,u,c,f,d,p,g,m,v,y={};y=["line","area","bar","candlestick","boxPlot","rangeBar","rangeArea","bubble","scatter","heatmap","treemap","pie","polarArea","donut","radar","radialBar"].indexOf(n.chart.type)!==-1?a[n.chart.type]():a.line(),(l=n.plotOptions)!==null&&l!==void 0&&(h=l.bar)!==null&&h!==void 0&&h.isFunnel&&(y=a.funnel()),n.chart.stacked&&n.chart.type==="bar"&&(y=a.stackedBars()),(u=n.chart.brush)!==null&&u!==void 0&&u.enabled&&(y=a.brush(y)),(c=n.plotOptions)!==null&&c!==void 0&&(f=c.line)!==null&&f!==void 0&&f.isSlopeChart&&(y=a.slope()),n.chart.stacked&&n.chart.stackType==="100%"&&(n=a.stacked100(n)),(d=n.plotOptions)!==null&&d!==void 0&&(p=d.bar)!==null&&p!==void 0&&p.isDumbbell&&(n=a.dumbbell(n)),this.checkForDarkTheme(window.Apex),this.checkForDarkTheme(n),n.xaxis=n.xaxis||window.Apex.xaxis||{},t||(n.xaxis.convertedCatToNumeric=!1),((g=(n=this.checkForCatToNumericXAxis(this.chartType,y,n)).chart.sparkline)!==null&&g!==void 0&&g.enabled||(m=window.Apex.chart)!==null&&m!==void 0&&(v=m.sparkline)!==null&&v!==void 0&&v.enabled)&&(y=a.sparkline(y)),s=q.extend(o,y)}var b=q.extend(s,window.Apex);return o=q.extend(b,n),o=this.handleUserInputErrors(o)}},{key:"checkForCatToNumericXAxis",value:function(e,t,n){var r,a,o=new or(n),s=(e==="bar"||e==="boxPlot")&&((r=n.plotOptions)===null||r===void 0||(a=r.bar)===null||a===void 0?void 0:a.horizontal),l=e==="pie"||e==="polarArea"||e==="donut"||e==="radar"||e==="radialBar"||e==="heatmap",h=n.xaxis.type!=="datetime"&&n.xaxis.type!=="numeric",u=n.xaxis.tickPlacement?n.xaxis.tickPlacement:t.xaxis&&t.xaxis.tickPlacement;return s||l||!h||u==="between"||(n=o.convertCatToNumeric(n)),n}},{key:"extendYAxis",value:function(e,t){var n=new Hn;(e.yaxis===void 0||!e.yaxis||Array.isArray(e.yaxis)&&e.yaxis.length===0)&&(e.yaxis={}),e.yaxis.constructor!==Array&&window.Apex.yaxis&&window.Apex.yaxis.constructor!==Array&&(e.yaxis=q.extend(e.yaxis,window.Apex.yaxis)),e.yaxis.constructor!==Array?e.yaxis=[q.extend(n.yAxis,e.yaxis)]:e.yaxis=q.extendArray(e.yaxis,n.yAxis);var r=!1;e.yaxis.forEach(function(o){o.logarithmic&&(r=!0)});var a=e.series;return t&&!a&&(a=t.config.series),r&&a.length!==e.yaxis.length&&a.length&&(e.yaxis=a.map(function(o,s){if(o.name||(a[s].name="series-".concat(s+1)),e.yaxis[s])return e.yaxis[s].seriesName=a[s].name,e.yaxis[s];var l=q.extend(n.yAxis,e.yaxis[0]);return l.show=!1,l})),r&&a.length>1&&a.length!==e.yaxis.length&&console.warn("A multi-series logarithmic chart should have equal number of series and y-axes"),e}},{key:"extendAnnotations",value:function(e){return e.annotations===void 0&&(e.annotations={},e.annotations.yaxis=[],e.annotations.xaxis=[],e.annotations.points=[]),e=this.extendYAxisAnnotations(e),e=this.extendXAxisAnnotations(e),e=this.extendPointAnnotations(e)}},{key:"extendYAxisAnnotations",value:function(e){var t=new Hn;return e.annotations.yaxis=q.extendArray(e.annotations.yaxis!==void 0?e.annotations.yaxis:[],t.yAxisAnnotation),e}},{key:"extendXAxisAnnotations",value:function(e){var t=new Hn;return e.annotations.xaxis=q.extendArray(e.annotations.xaxis!==void 0?e.annotations.xaxis:[],t.xAxisAnnotation),e}},{key:"extendPointAnnotations",value:function(e){var t=new Hn;return e.annotations.points=q.extendArray(e.annotations.points!==void 0?e.annotations.points:[],t.pointAnnotation),e}},{key:"checkForDarkTheme",value:function(e){e.theme&&e.theme.mode==="dark"&&(e.tooltip||(e.tooltip={}),e.tooltip.theme!=="light"&&(e.tooltip.theme="dark"),e.chart.foreColor||(e.chart.foreColor="#f6f7f8"),e.theme.palette||(e.theme.palette="palette4"))}},{key:"handleUserInputErrors",value:function(e){var t=e;if(t.tooltip.shared&&t.tooltip.intersect)throw new Error("tooltip.shared cannot be enabled when tooltip.intersect is true. Turn off any other option by setting it to false.");if(t.chart.type==="bar"&&t.plotOptions.bar.horizontal){if(t.yaxis.length>1)throw new Error("Multiple Y Axis for bars are not supported. Switch to column chart by setting plotOptions.bar.horizontal=false");t.yaxis[0].reversed&&(t.yaxis[0].opposite=!0),t.xaxis.tooltip.enabled=!1,t.yaxis[0].tooltip.enabled=!1,t.chart.zoom.enabled=!1}return t.chart.type!=="bar"&&t.chart.type!=="rangeBar"||t.tooltip.shared&&t.xaxis.crosshairs.width==="barWidth"&&t.series.length>1&&(t.xaxis.crosshairs.width="tickWidth"),t.chart.type!=="candlestick"&&t.chart.type!=="boxPlot"||t.yaxis[0].reversed&&(console.warn("Reversed y-axis in ".concat(t.chart.type," chart is not supported.")),t.yaxis[0].reversed=!1),t}}]),i}(),Qc=function(){function i(){ae(this,i)}return oe(i,[{key:"initGlobalVars",value:function(e){e.series=[],e.seriesCandleO=[],e.seriesCandleH=[],e.seriesCandleM=[],e.seriesCandleL=[],e.seriesCandleC=[],e.seriesRangeStart=[],e.seriesRangeEnd=[],e.seriesRange=[],e.seriesPercent=[],e.seriesGoals=[],e.seriesX=[],e.seriesZ=[],e.seriesNames=[],e.seriesTotals=[],e.seriesLog=[],e.seriesColors=[],e.stackedSeriesTotals=[],e.seriesXvalues=[],e.seriesYvalues=[],e.labels=[],e.hasXaxisGroups=!1,e.groups=[],e.barGroups=[],e.lineGroups=[],e.areaGroups=[],e.hasSeriesGroups=!1,e.seriesGroups=[],e.categoryLabels=[],e.timescaleLabels=[],e.noLabelsProvided=!1,e.resizeTimer=null,e.selectionResizeTimer=null,e.lastWheelExecution=0,e.delayedElements=[],e.pointsArray=[],e.dataLabelsRects=[],e.isXNumeric=!1,e.skipLastTimelinelabel=!1,e.skipFirstTimelinelabel=!1,e.isDataXYZ=!1,e.isMultiLineX=!1,e.isMultipleYAxis=!1,e.maxY=-Number.MAX_VALUE,e.minY=Number.MIN_VALUE,e.minYArr=[],e.maxYArr=[],e.maxX=-Number.MAX_VALUE,e.minX=Number.MAX_VALUE,e.initialMaxX=-Number.MAX_VALUE,e.initialMinX=Number.MAX_VALUE,e.maxDate=0,e.minDate=Number.MAX_VALUE,e.minZ=Number.MAX_VALUE,e.maxZ=-Number.MAX_VALUE,e.minXDiff=Number.MAX_VALUE,e.yAxisScale=[],e.xAxisScale=null,e.xAxisTicksPositions=[],e.yLabelsCoords=[],e.yTitleCoords=[],e.barPadForNumericAxis=0,e.padHorizontal=0,e.xRange=0,e.yRange=[],e.zRange=0,e.dataPoints=0,e.xTickAmount=0,e.multiAxisTickAmount=0}},{key:"globalVars",value:function(e){return{chartID:null,cuid:null,events:{beforeMount:[],mounted:[],updated:[],clicked:[],selection:[],dataPointSelection:[],zoomed:[],scrolled:[]},colors:[],clientX:null,clientY:null,fill:{colors:[]},stroke:{colors:[]},dataLabels:{style:{colors:[]}},radarPolygons:{fill:{colors:[]}},markers:{colors:[],size:e.markers.size,largestSize:0},animationEnded:!1,isTouchDevice:"ontouchstart"in window||navigator.msMaxTouchPoints,isDirty:!1,isExecCalled:!1,initialConfig:null,initialSeries:[],lastXAxis:[],lastYAxis:[],columnSeries:null,labels:[],timescaleLabels:[],noLabelsProvided:!1,allSeriesCollapsed:!1,collapsedSeries:[],collapsedSeriesIndices:[],ancillaryCollapsedSeries:[],ancillaryCollapsedSeriesIndices:[],risingSeries:[],dataFormatXNumeric:!1,capturedSeriesIndex:-1,capturedDataPointIndex:-1,selectedDataPoints:[],invalidLogScale:!1,ignoreYAxisIndexes:[],maxValsInArrayIndex:0,radialSize:0,selection:void 0,zoomEnabled:e.chart.toolbar.autoSelected==="zoom"&&e.chart.toolbar.tools.zoom&&e.chart.zoom.enabled,panEnabled:e.chart.toolbar.autoSelected==="pan"&&e.chart.toolbar.tools.pan,selectionEnabled:e.chart.toolbar.autoSelected==="selection"&&e.chart.toolbar.tools.selection,yaxis:null,mousedown:!1,lastClientPosition:{},visibleXRange:void 0,yValueDecimal:0,total:0,SVGNS:"http://www.w3.org/2000/svg",svgWidth:0,svgHeight:0,noData:!1,locale:{},dom:{},memory:{methodsToExec:[]},shouldAnimate:!0,skipLastTimelinelabel:!1,skipFirstTimelinelabel:!1,delayedElements:[],axisCharts:!0,isDataXYZ:!1,isSlopeChart:e.plotOptions.line.isSlopeChart,resized:!1,resizeTimer:null,comboCharts:!1,dataChanged:!1,previousPaths:[],allSeriesHasEqualX:!0,pointsArray:[],dataLabelsRects:[],lastDrawnDataLabelsIndexes:[],hasNullValues:!1,zoomed:!1,gridWidth:0,gridHeight:0,rotateXLabels:!1,defaultLabels:!1,xLabelFormatter:void 0,yLabelFormatters:[],xaxisTooltipFormatter:void 0,ttKeyFormatter:void 0,ttVal:void 0,ttZFormatter:void 0,LINE_HEIGHT_RATIO:1.618,xAxisLabelsHeight:0,xAxisGroupLabelsHeight:0,xAxisLabelsWidth:0,yAxisLabelsWidth:0,scaleX:1,scaleY:1,translateX:0,translateY:0,translateYAxisX:[],yAxisWidths:[],translateXAxisY:0,translateXAxisX:0,tooltip:null,niceScaleAllowedMagMsd:[[1,1,2,5,5,5,10,10,10,10,10],[1,1,2,5,5,5,10,10,10,10,10]],niceScaleDefaultTicks:[1,2,4,4,6,6,6,6,6,6,6,6,6,6,6,6,6,6,12,12,12,12,12,12,12,12,12,24],seriesYAxisMap:[],seriesYAxisReverseMap:[]}}},{key:"init",value:function(e){var t=this.globalVars(e);return this.initGlobalVars(t),t.initialConfig=q.extend({},e),t.initialSeries=q.clone(e.series),t.lastXAxis=q.clone(t.initialConfig.xaxis),t.lastYAxis=q.clone(t.initialConfig.yaxis),t}}]),i}(),$d=function(){function i(e){ae(this,i),this.opts=e}return oe(i,[{key:"init",value:function(){var e=new sr(this.opts).init({responsiveOverride:!1});return{config:e,globals:new Qc().init(e)}}}]),i}(),Kt=function(){function i(e){ae(this,i),this.ctx=e,this.w=e.w,this.opts=null,this.seriesIndex=0,this.patternIDs=[]}return oe(i,[{key:"clippedImgArea",value:function(e){var t=this.w,n=t.config,r=parseInt(t.globals.gridWidth,10),a=parseInt(t.globals.gridHeight,10),o=r>a?r:a,s=e.image,l=0,h=0;e.width===void 0&&e.height===void 0?n.fill.image.width!==void 0&&n.fill.image.height!==void 0?(l=n.fill.image.width+1,h=n.fill.image.height):(l=o+1,h=o):(l=e.width,h=e.height);var u=document.createElementNS(t.globals.SVGNS,"pattern");Q.setAttrs(u,{id:e.patternID,patternUnits:e.patternUnits?e.patternUnits:"userSpaceOnUse",width:l+"px",height:h+"px"});var c=document.createElementNS(t.globals.SVGNS,"image");u.appendChild(c),c.setAttributeNS(window.SVG.xlink,"href",s),Q.setAttrs(c,{x:0,y:0,preserveAspectRatio:"none",width:l+"px",height:h+"px"}),c.style.opacity=e.opacity,t.globals.dom.elDefs.node.appendChild(u)}},{key:"getSeriesIndex",value:function(e){var t=this.w,n=t.config.chart.type;return(n==="bar"||n==="rangeBar")&&t.config.plotOptions.bar.distributed||n==="heatmap"||n==="treemap"?this.seriesIndex=e.seriesNumber:this.seriesIndex=e.seriesNumber%t.globals.series.length,this.seriesIndex}},{key:"computeColorStops",value:function(e,t){var n,r=this.w,a=null,o=null,s=Bi(e);try{for(s.s();!(n=s.n()).done;){var l=n.value;l>=t.threshold?(a===null||l>a)&&(a=l):(o===null||l<o)&&(o=l)}}catch(c){s.e(c)}finally{s.f()}a===null&&(a=t.threshold),o===null&&(o=t.threshold);var h=a-t.threshold+(t.threshold-o);h===0&&(h=1);var u=100-(t.threshold-o)/h*100;return[{offset:u=Math.max(0,Math.min(u,100)),color:t.colorAboveThreshold,opacity:r.config.fill.opacity},{offset:0,color:t.colorBelowThreshold,opacity:r.config.fill.opacity}]}},{key:"fillPath",value:function(e){var t,n,r,a=this.w;this.opts=e;var o,s,l,h=this.w.config;this.seriesIndex=this.getSeriesIndex(e);var u=h.plotOptions.line.colors.colorAboveThreshold&&h.plotOptions.line.colors.colorBelowThreshold,c=this.getFillColors()[this.seriesIndex];a.globals.seriesColors[this.seriesIndex]!==void 0&&(c=a.globals.seriesColors[this.seriesIndex]),typeof c=="function"&&(c=c({seriesIndex:this.seriesIndex,dataPointIndex:e.dataPointIndex,value:e.value,w:a}));var f,d,p,g=e.fillType?e.fillType:this.getFillType(this.seriesIndex),m=Array.isArray(h.fill.opacity)?h.fill.opacity[this.seriesIndex]:h.fill.opacity,v=g==="gradient"||u;e.color&&(c=e.color),(t=a.config.series[this.seriesIndex])!==null&&t!==void 0&&(n=t.data)!==null&&n!==void 0&&(r=n[e.dataPointIndex])!==null&&r!==void 0&&r.fillColor&&(c=(f=a.config.series[this.seriesIndex])===null||f===void 0||(d=f.data)===null||d===void 0||(p=d[e.dataPointIndex])===null||p===void 0?void 0:p.fillColor),c||(c="#fff",console.warn("undefined color - ApexCharts"));var y=c;if(c.indexOf("rgb")===-1?c.indexOf("#")===-1?y=c:c.length<9&&(y=q.hexToRgba(c,m)):c.indexOf("rgba")>-1?m=q.getOpacityFromRGBA(c):y=q.hexToRgba(q.rgb2hex(c),m),e.opacity&&(m=e.opacity),g==="pattern"&&(s=this.handlePatternFill({fillConfig:e.fillConfig,patternFill:s,fillColor:c,fillOpacity:m,defaultColor:y})),v){var b=nt(h.fill.gradient.colorStops)||[],x=h.fill.gradient.type;u&&(b[this.seriesIndex]=this.computeColorStops(a.globals.series[this.seriesIndex],h.plotOptions.line.colors),x="vertical"),l=this.handleGradientFill({type:x,fillConfig:e.fillConfig,fillColor:c,fillOpacity:m,colorStops:b,i:this.seriesIndex})}if(g==="image"){var w=h.fill.image.src,k=e.patternID?e.patternID:"",S="pattern".concat(a.globals.cuid).concat(e.seriesNumber+1).concat(k);this.patternIDs.indexOf(S)===-1&&(this.clippedImgArea({opacity:m,image:Array.isArray(w)?e.seriesNumber<w.length?w[e.seriesNumber]:w[0]:w,width:e.width?e.width:void 0,height:e.height?e.height:void 0,patternUnits:e.patternUnits,patternID:S}),this.patternIDs.push(S)),o="url(#".concat(S,")")}else o=v?l:g==="pattern"?s:y;return e.solid&&(o=y),o}},{key:"getFillType",value:function(e){var t=this.w;return Array.isArray(t.config.fill.type)?t.config.fill.type[e]:t.config.fill.type}},{key:"getFillColors",value:function(){var e=this.w,t=e.config,n=this.opts,r=[];return e.globals.comboCharts?e.config.series[this.seriesIndex].type==="line"?Array.isArray(e.globals.stroke.colors)?r=e.globals.stroke.colors:r.push(e.globals.stroke.colors):Array.isArray(e.globals.fill.colors)?r=e.globals.fill.colors:r.push(e.globals.fill.colors):t.chart.type==="line"?Array.isArray(e.globals.stroke.colors)?r=e.globals.stroke.colors:r.push(e.globals.stroke.colors):Array.isArray(e.globals.fill.colors)?r=e.globals.fill.colors:r.push(e.globals.fill.colors),n.fillColors!==void 0&&(r=[],Array.isArray(n.fillColors)?r=n.fillColors.slice():r.push(n.fillColors)),r}},{key:"handlePatternFill",value:function(e){var t=e.fillConfig,n=e.patternFill,r=e.fillColor,a=e.fillOpacity,o=e.defaultColor,s=this.w.config.fill;t&&(s=t);var l=this.opts,h=new Q(this.ctx),u=Array.isArray(s.pattern.strokeWidth)?s.pattern.strokeWidth[this.seriesIndex]:s.pattern.strokeWidth,c=r;return Array.isArray(s.pattern.style)?n=s.pattern.style[l.seriesNumber]!==void 0?h.drawPattern(s.pattern.style[l.seriesNumber],s.pattern.width,s.pattern.height,c,u,a):o:n=h.drawPattern(s.pattern.style,s.pattern.width,s.pattern.height,c,u,a),n}},{key:"handleGradientFill",value:function(e){var t=e.type,n=e.fillColor,r=e.fillOpacity,a=e.fillConfig,o=e.colorStops,s=e.i,l=this.w.config.fill;a&&(l=ne(ne({},l),a));var h=this.opts,u=new Q(this.ctx),c=new q;t=t||l.gradient.type;var f,d=n,p=l.gradient.opacityFrom===void 0?r:Array.isArray(l.gradient.opacityFrom)?l.gradient.opacityFrom[s]:l.gradient.opacityFrom;d.indexOf("rgba")>-1&&(p=q.getOpacityFromRGBA(d));var g=l.gradient.opacityTo===void 0?r:Array.isArray(l.gradient.opacityTo)?l.gradient.opacityTo[s]:l.gradient.opacityTo;if(l.gradient.gradientToColors===void 0||l.gradient.gradientToColors.length===0)f=l.gradient.shade==="dark"?c.shadeColor(-1*parseFloat(l.gradient.shadeIntensity),n.indexOf("rgb")>-1?q.rgb2hex(n):n):c.shadeColor(parseFloat(l.gradient.shadeIntensity),n.indexOf("rgb")>-1?q.rgb2hex(n):n);else if(l.gradient.gradientToColors[h.seriesNumber]){var m=l.gradient.gradientToColors[h.seriesNumber];f=m,m.indexOf("rgba")>-1&&(g=q.getOpacityFromRGBA(m))}else f=n;if(l.gradient.gradientFrom&&(d=l.gradient.gradientFrom),l.gradient.gradientTo&&(f=l.gradient.gradientTo),l.gradient.inverseColors){var v=d;d=f,f=v}return d.indexOf("rgb")>-1&&(d=q.rgb2hex(d)),f.indexOf("rgb")>-1&&(f=q.rgb2hex(f)),u.drawGradient(t,d,f,p,g,h.size,l.gradient.stops,o,s)}}]),i}(),Ei=function(){function i(e,t){ae(this,i),this.ctx=e,this.w=e.w}return oe(i,[{key:"setGlobalMarkerSize",value:function(){var e=this.w;if(e.globals.markers.size=Array.isArray(e.config.markers.size)?e.config.markers.size:[e.config.markers.size],e.globals.markers.size.length>0){if(e.globals.markers.size.length<e.globals.series.length+1)for(var t=0;t<=e.globals.series.length;t++)e.globals.markers.size[t]===void 0&&e.globals.markers.size.push(e.globals.markers.size[0])}else e.globals.markers.size=e.config.series.map(function(n){return e.config.markers.size})}},{key:"plotChartMarkers",value:function(e){var t=e.pointsPos,n=e.seriesIndex,r=e.j,a=e.pSize,o=e.alwaysDrawMarker,s=o!==void 0&&o,l=e.isVirtualPoint,h=l!==void 0&&l,u=this.w,c=n,f=t,d=null,p=new Q(this.ctx),g=u.config.markers.discrete&&u.config.markers.discrete.length;if(Array.isArray(f.x))for(var m=0;m<f.x.length;m++){var v=void 0,y=r,b=!q.isNumber(f.y[m]);u.globals.markers.largestSize===0&&u.globals.hasNullValues&&u.globals.series[c][r+1]!==null&&!h&&(b=!0),r===1&&m===0&&(y=0),r===1&&m===1&&(y=1);var x="apexcharts-marker";if(u.config.chart.type!=="line"&&u.config.chart.type!=="area"||u.globals.comboCharts||u.config.tooltip.intersect||(x+=" no-pointer-events"),(Array.isArray(u.config.markers.size)?u.globals.markers.size[n]>0:u.config.markers.size>0)||s||g){b||(x+=" w".concat(q.randomId()));var w=this.getMarkerConfig({cssClass:x,seriesIndex:n,dataPointIndex:y});u.config.series[c].data[y]&&(u.config.series[c].data[y].fillColor&&(w.pointFillColor=u.config.series[c].data[y].fillColor),u.config.series[c].data[y].strokeColor&&(w.pointStrokeColor=u.config.series[c].data[y].strokeColor)),a!==void 0&&(w.pSize=a),(f.x[m]<-u.globals.markers.largestSize||f.x[m]>u.globals.gridWidth+u.globals.markers.largestSize||f.y[m]<-u.globals.markers.largestSize||f.y[m]>u.globals.gridHeight+u.globals.markers.largestSize)&&(w.pSize=0),!b&&((u.globals.markers.size[n]>0||s||g)&&!d&&(d=p.group({class:s||g?"":"apexcharts-series-markers"})).attr("clip-path","url(#gridRectMarkerMask".concat(u.globals.cuid,")")),(v=p.drawMarker(f.x[m],f.y[m],w)).attr("rel",y),v.attr("j",y),v.attr("index",n),v.node.setAttribute("default-marker-size",w.pSize),new ut(this.ctx).setSelectionFilter(v,n,y),this.addEvents(v),d&&d.add(v))}else u.globals.pointsArray[n]===void 0&&(u.globals.pointsArray[n]=[]),u.globals.pointsArray[n].push([f.x[m],f.y[m]])}return d}},{key:"getMarkerConfig",value:function(e){var t=e.cssClass,n=e.seriesIndex,r=e.dataPointIndex,a=r===void 0?null:r,o=e.radius,s=o===void 0?null:o,l=e.size,h=l===void 0?null:l,u=e.strokeWidth,c=u===void 0?null:u,f=this.w,d=this.getMarkerStyle(n),p=h===null?f.globals.markers.size[n]:h,g=f.config.markers;return a!==null&&g.discrete.length&&g.discrete.map(function(m){m.seriesIndex===n&&m.dataPointIndex===a&&(d.pointStrokeColor=m.strokeColor,d.pointFillColor=m.fillColor,p=m.size,d.pointShape=m.shape)}),{pSize:s===null?p:s,pRadius:s!==null?s:g.radius,pointStrokeWidth:c!==null?c:Array.isArray(g.strokeWidth)?g.strokeWidth[n]:g.strokeWidth,pointStrokeColor:d.pointStrokeColor,pointFillColor:d.pointFillColor,shape:d.pointShape||(Array.isArray(g.shape)?g.shape[n]:g.shape),class:t,pointStrokeOpacity:Array.isArray(g.strokeOpacity)?g.strokeOpacity[n]:g.strokeOpacity,pointStrokeDashArray:Array.isArray(g.strokeDashArray)?g.strokeDashArray[n]:g.strokeDashArray,pointFillOpacity:Array.isArray(g.fillOpacity)?g.fillOpacity[n]:g.fillOpacity,seriesIndex:n}}},{key:"addEvents",value:function(e){var t=this.w,n=new Q(this.ctx);e.node.addEventListener("mouseenter",n.pathMouseEnter.bind(this.ctx,e)),e.node.addEventListener("mouseleave",n.pathMouseLeave.bind(this.ctx,e)),e.node.addEventListener("mousedown",n.pathMouseDown.bind(this.ctx,e)),e.node.addEventListener("click",t.config.markers.onClick),e.node.addEventListener("dblclick",t.config.markers.onDblClick),e.node.addEventListener("touchstart",n.pathMouseDown.bind(this.ctx,e),{passive:!0})}},{key:"getMarkerStyle",value:function(e){var t=this.w,n=t.globals.markers.colors,r=t.config.markers.strokeColor||t.config.markers.strokeColors;return{pointStrokeColor:Array.isArray(r)?r[e]:r,pointFillColor:Array.isArray(n)?n[e]:n}}}]),i}(),Jc=function(){function i(e){ae(this,i),this.ctx=e,this.w=e.w,this.initialAnim=this.w.config.chart.animations.enabled}return oe(i,[{key:"draw",value:function(e,t,n){var r=this.w,a=new Q(this.ctx),o=n.realIndex,s=n.pointsPos,l=n.zRatio,h=n.elParent,u=a.group({class:"apexcharts-series-markers apexcharts-series-".concat(r.config.chart.type)});if(u.attr("clip-path","url(#gridRectMarkerMask".concat(r.globals.cuid,")")),Array.isArray(s.x))for(var c=0;c<s.x.length;c++){var f=t+1,d=!0;t===0&&c===0&&(f=0),t===0&&c===1&&(f=1);var p=r.globals.markers.size[o];if(l!==1/0){var g=r.config.plotOptions.bubble;p=r.globals.seriesZ[o][f],g.zScaling&&(p/=l),g.minBubbleRadius&&p<g.minBubbleRadius&&(p=g.minBubbleRadius),g.maxBubbleRadius&&p>g.maxBubbleRadius&&(p=g.maxBubbleRadius)}var m=s.x[c],v=s.y[c];if(p=p||0,v!==null&&r.globals.series[o][f]!==void 0||(d=!1),d){var y=this.drawPoint(m,v,p,o,f,t);u.add(y)}h.add(u)}}},{key:"drawPoint",value:function(e,t,n,r,a,o){var s=this.w,l=r,h=new ki(this.ctx),u=new ut(this.ctx),c=new Kt(this.ctx),f=new Ei(this.ctx),d=new Q(this.ctx),p=f.getMarkerConfig({cssClass:"apexcharts-marker",seriesIndex:l,dataPointIndex:a,radius:s.config.chart.type==="bubble"||s.globals.comboCharts&&s.config.series[r]&&s.config.series[r].type==="bubble"?n:null}),g=c.fillPath({seriesNumber:r,dataPointIndex:a,color:p.pointFillColor,patternUnits:"objectBoundingBox",value:s.globals.series[r][o]}),m=d.drawMarker(e,t,p);if(s.config.series[l].data[a]&&s.config.series[l].data[a].fillColor&&(g=s.config.series[l].data[a].fillColor),m.attr({fill:g}),s.config.chart.dropShadow.enabled){var v=s.config.chart.dropShadow;u.dropShadow(m,v,r)}if(!this.initialAnim||s.globals.dataChanged||s.globals.resized)s.globals.animationEnded=!0;else{var y=s.config.chart.animations.speed;h.animateMarker(m,y,s.globals.easing,function(){window.setTimeout(function(){h.animationCompleted(m)},100)})}return m.attr({rel:a,j:a,index:r,"default-marker-size":p.pSize}),u.setSelectionFilter(m,r,a),f.addEvents(m),m.node.classList.add("apexcharts-marker"),m}},{key:"centerTextInBubble",value:function(e){var t=this.w;return{y:e+=parseInt(t.config.dataLabels.style.fontSize,10)/4}}}]),i}(),vi=function(){function i(e){ae(this,i),this.ctx=e,this.w=e.w}return oe(i,[{key:"dataLabelsCorrection",value:function(e,t,n,r,a,o,s){var l=this.w,h=!1,u=new Q(this.ctx).getTextRects(n,s),c=u.width,f=u.height;t<0&&(t=0),t>l.globals.gridHeight+f&&(t=l.globals.gridHeight+f/2),l.globals.dataLabelsRects[r]===void 0&&(l.globals.dataLabelsRects[r]=[]),l.globals.dataLabelsRects[r].push({x:e,y:t,width:c,height:f});var d=l.globals.dataLabelsRects[r].length-2,p=l.globals.lastDrawnDataLabelsIndexes[r]!==void 0?l.globals.lastDrawnDataLabelsIndexes[r][l.globals.lastDrawnDataLabelsIndexes[r].length-1]:0;if(l.globals.dataLabelsRects[r][d]!==void 0){var g=l.globals.dataLabelsRects[r][p];(e>g.x+g.width||t>g.y+g.height||t+f<g.y||e+c<g.x)&&(h=!0)}return(a===0||o)&&(h=!0),{x:e,y:t,textRects:u,drawnextLabel:h}}},{key:"drawDataLabel",value:function(e){var t=this,n=e.type,r=e.pos,a=e.i,o=e.j,s=e.isRangeStart,l=e.strokeWidth,h=l===void 0?2:l,u=this.w,c=new Q(this.ctx),f=u.config.dataLabels,d=0,p=0,g=o,m=null;if(u.globals.collapsedSeriesIndices.indexOf(a)!==-1||!f.enabled||!Array.isArray(r.x))return m;m=c.group({class:"apexcharts-data-labels"});for(var v=0;v<r.x.length;v++)if(d=r.x[v]+f.offsetX,p=r.y[v]+f.offsetY+h,!isNaN(d)){o===1&&v===0&&(g=0),o===1&&v===1&&(g=1);var y=u.globals.series[a][g];n==="rangeArea"&&(y=s?u.globals.seriesRangeStart[a][g]:u.globals.seriesRangeEnd[a][g]);var b="",x=function(k){return u.config.dataLabels.formatter(k,{ctx:t.ctx,seriesIndex:a,dataPointIndex:g,w:u})};u.config.chart.type==="bubble"?(b=x(y=u.globals.seriesZ[a][g]),p=r.y[v],p=new Jc(this.ctx).centerTextInBubble(p,a,g).y):y!==void 0&&(b=x(y));var w=u.config.dataLabels.textAnchor;u.globals.isSlopeChart&&(w=g===0?"end":g===u.config.series[a].data.length-1?"start":"middle"),this.plotDataLabelsText({x:d,y:p,text:b,i:a,j:g,parent:m,offsetCorrection:!0,dataLabelsConfig:u.config.dataLabels,textAnchor:w})}return m}},{key:"plotDataLabelsText",value:function(e){var t=this.w,n=new Q(this.ctx),r=e.x,a=e.y,o=e.i,s=e.j,l=e.text,h=e.textAnchor,u=e.fontSize,c=e.parent,f=e.dataLabelsConfig,d=e.color,p=e.alwaysDrawDataLabel,g=e.offsetCorrection,m=e.className,v=null;if(Array.isArray(t.config.dataLabels.enabledOnSeries)&&t.config.dataLabels.enabledOnSeries.indexOf(o)<0)return v;var y={x:r,y:a,drawnextLabel:!0,textRects:null};g&&(y=this.dataLabelsCorrection(r,a,l,o,s,p,parseInt(f.style.fontSize,10))),t.globals.zoomed||(r=y.x,a=y.y),y.textRects&&(r<-20-y.textRects.width||r>t.globals.gridWidth+y.textRects.width+30)&&(l="");var b=t.globals.dataLabels.style.colors[o];((t.config.chart.type==="bar"||t.config.chart.type==="rangeBar")&&t.config.plotOptions.bar.distributed||t.config.dataLabels.distributed)&&(b=t.globals.dataLabels.style.colors[s]),typeof b=="function"&&(b=b({series:t.globals.series,seriesIndex:o,dataPointIndex:s,w:t})),d&&(b=d);var x=f.offsetX,w=f.offsetY;if(t.config.chart.type!=="bar"&&t.config.chart.type!=="rangeBar"||(x=0,w=0),t.globals.isSlopeChart&&(s!==0&&(x=-2*f.offsetX+5),s!==0&&s!==t.config.series[o].data.length-1&&(x=0)),y.drawnextLabel){if((v=n.drawText({width:100,height:parseInt(f.style.fontSize,10),x:r+x,y:a+w,foreColor:b,textAnchor:h||f.textAnchor,text:l,fontSize:u||f.style.fontSize,fontFamily:f.style.fontFamily,fontWeight:f.style.fontWeight||"normal"})).attr({class:m||"apexcharts-datalabel",cx:r,cy:a}),f.dropShadow.enabled){var k=f.dropShadow;new ut(this.ctx).dropShadow(v,k)}c.add(v),t.globals.lastDrawnDataLabelsIndexes[o]===void 0&&(t.globals.lastDrawnDataLabelsIndexes[o]=[]),t.globals.lastDrawnDataLabelsIndexes[o].push(s)}return v}},{key:"addBackgroundToDataLabel",value:function(e,t){var n=this.w,r=n.config.dataLabels.background,a=r.padding,o=r.padding/2,s=t.width,l=t.height,h=new Q(this.ctx).drawRect(t.x-a,t.y-o/2,s+2*a,l+o,r.borderRadius,n.config.chart.background!=="transparent"&&n.config.chart.background?n.config.chart.background:"#fff",r.opacity,r.borderWidth,r.borderColor);return r.dropShadow.enabled&&new ut(this.ctx).dropShadow(h,r.dropShadow),h}},{key:"dataLabelsBackground",value:function(){var e=this.w;if(e.config.chart.type!=="bubble")for(var t=e.globals.dom.baseEl.querySelectorAll(".apexcharts-datalabels text"),n=0;n<t.length;n++){var r=t[n],a=r.getBBox(),o=null;if(a.width&&a.height&&(o=this.addBackgroundToDataLabel(r,a)),o){r.parentNode.insertBefore(o.node,r);var s=e.config.dataLabels.background.backgroundColor||r.getAttribute("fill");e.config.chart.animations.enabled&&!e.globals.resized&&!e.globals.dataChanged?o.animate().attr({fill:s}):o.attr({fill:s}),r.setAttribute("fill",e.config.dataLabels.background.foreColor)}}}},{key:"bringForward",value:function(){for(var e=this.w,t=e.globals.dom.baseEl.querySelectorAll(".apexcharts-datalabels"),n=e.globals.dom.baseEl.querySelector(".apexcharts-plot-series:last-child"),r=0;r<t.length;r++)n&&n.insertBefore(t[r],n.nextSibling)}}]),i}(),jt=function(){function i(e){ae(this,i),this.ctx=e,this.w=e.w,this.legendInactiveClass="legend-mouseover-inactive"}return oe(i,[{key:"getAllSeriesEls",value:function(){return this.w.globals.dom.baseEl.getElementsByClassName("apexcharts-series")}},{key:"getSeriesByName",value:function(e){return this.w.globals.dom.baseEl.querySelector(".apexcharts-inner .apexcharts-series[seriesName='".concat(q.escapeString(e),"']"))}},{key:"isSeriesHidden",value:function(e){var t=this.getSeriesByName(e),n=parseInt(t.getAttribute("data:realIndex"),10);return{isHidden:t.classList.contains("apexcharts-series-collapsed"),realIndex:n}}},{key:"addCollapsedClassToSeries",value:function(e,t){var n=this.w;function r(a){for(var o=0;o<a.length;o++)a[o].index===t&&e.node.classList.add("apexcharts-series-collapsed")}r(n.globals.collapsedSeries),r(n.globals.ancillaryCollapsedSeries)}},{key:"toggleSeries",value:function(e){var t=this.isSeriesHidden(e);return this.ctx.legend.legendHelpers.toggleDataSeries(t.realIndex,t.isHidden),t.isHidden}},{key:"showSeries",value:function(e){var t=this.isSeriesHidden(e);t.isHidden&&this.ctx.legend.legendHelpers.toggleDataSeries(t.realIndex,!0)}},{key:"hideSeries",value:function(e){var t=this.isSeriesHidden(e);t.isHidden||this.ctx.legend.legendHelpers.toggleDataSeries(t.realIndex,!1)}},{key:"resetSeries",value:function(){var e=!(arguments.length>0&&arguments[0]!==void 0)||arguments[0],t=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1],n=!(arguments.length>2&&arguments[2]!==void 0)||arguments[2],r=this.w,a=q.clone(r.globals.initialSeries);r.globals.previousPaths=[],n?(r.globals.collapsedSeries=[],r.globals.ancillaryCollapsedSeries=[],r.globals.collapsedSeriesIndices=[],r.globals.ancillaryCollapsedSeriesIndices=[]):a=this.emptyCollapsedSeries(a),r.config.series=a,e&&(t&&(r.globals.zoomed=!1,this.ctx.updateHelpers.revertDefaultAxisMinMax()),this.ctx.updateHelpers._updateSeries(a,r.config.chart.animations.dynamicAnimation.enabled))}},{key:"emptyCollapsedSeries",value:function(e){for(var t=this.w,n=0;n<e.length;n++)t.globals.collapsedSeriesIndices.indexOf(n)>-1&&(e[n].data=[]);return e}},{key:"highlightSeries",value:function(e){var t=this.w,n=this.getSeriesByName(e),r=parseInt(n==null?void 0:n.getAttribute("data:realIndex"),10),a=t.globals.dom.baseEl.querySelectorAll(".apexcharts-series, .apexcharts-datalabels, .apexcharts-yaxis"),o=null,s=null,l=null;if(t.globals.axisCharts||t.config.chart.type==="radialBar")if(t.globals.axisCharts){o=t.globals.dom.baseEl.querySelector(".apexcharts-series[data\\:realIndex='".concat(r,"']")),s=t.globals.dom.baseEl.querySelector(".apexcharts-datalabels[data\\:realIndex='".concat(r,"']"));var h=t.globals.seriesYAxisReverseMap[r];l=t.globals.dom.baseEl.querySelector(".apexcharts-yaxis[rel='".concat(h,"']"))}else o=t.globals.dom.baseEl.querySelector(".apexcharts-series[rel='".concat(r+1,"']"));else o=t.globals.dom.baseEl.querySelector(".apexcharts-series[rel='".concat(r+1,"'] path"));for(var u=0;u<a.length;u++)a[u].classList.add(this.legendInactiveClass);if(o)t.globals.axisCharts||o.parentNode.classList.remove(this.legendInactiveClass),o.classList.remove(this.legendInactiveClass),s!==null&&s.classList.remove(this.legendInactiveClass),l!==null&&l.classList.remove(this.legendInactiveClass);else for(var c=0;c<a.length;c++)a[c].classList.remove(this.legendInactiveClass)}},{key:"toggleSeriesOnHover",value:function(e,t){var n=this.w;t||(t=e.target);var r=n.globals.dom.baseEl.querySelectorAll(".apexcharts-series, .apexcharts-datalabels, .apexcharts-yaxis");if(e.type==="mousemove"){var a=parseInt(t.getAttribute("rel"),10)-1;this.highlightSeries(n.globals.seriesNames[a])}else if(e.type==="mouseout")for(var o=0;o<r.length;o++)r[o].classList.remove(this.legendInactiveClass)}},{key:"highlightRangeInSeries",value:function(e,t){var n=this,r=this.w,a=r.globals.dom.baseEl.getElementsByClassName("apexcharts-heatmap-rect"),o=function(h){for(var u=0;u<a.length;u++)a[u].classList[h](n.legendInactiveClass)};if(e.type==="mousemove"){var s=parseInt(t.getAttribute("rel"),10)-1;o("add");var l=r.config.plotOptions.heatmap.colorScale.ranges;(function(h,u){for(var c=0;c<a.length;c++){var f=Number(a[c].getAttribute("val"));f>=h.from&&(f<h.to||h.to===u&&f===u)&&a[c].classList.remove(n.legendInactiveClass)}})(l[s],l.reduce(function(h,u){return Math.max(h,u.to)},0))}else e.type==="mouseout"&&o("remove")}},{key:"getActiveConfigSeriesIndex",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"asc",t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=this.w,r=0;if(n.config.series.length>1){for(var a=n.config.series.map(function(s,l){return s.data&&s.data.length>0&&n.globals.collapsedSeriesIndices.indexOf(l)===-1&&(!n.globals.comboCharts||t.length===0||t.length&&t.indexOf(n.config.series[l].type)>-1)?l:-1}),o=e==="asc"?0:a.length-1;e==="asc"?o<a.length:o>=0;e==="asc"?o++:o--)if(a[o]!==-1){r=a[o];break}}return r}},{key:"getBarSeriesIndices",value:function(){return this.w.globals.comboCharts?this.w.config.series.map(function(e,t){return e.type==="bar"||e.type==="column"?t:-1}).filter(function(e){return e!==-1}):this.w.config.series.map(function(e,t){return t})}},{key:"getPreviousPaths",value:function(){var e=this.w;function t(o,s,l){for(var h=o[s].childNodes,u={type:l,paths:[],realIndex:o[s].getAttribute("data:realIndex")},c=0;c<h.length;c++)if(h[c].hasAttribute("pathTo")){var f=h[c].getAttribute("pathTo");u.paths.push({d:f})}e.globals.previousPaths.push(u)}e.globals.previousPaths=[],["line","area","bar","rangebar","rangeArea","candlestick","radar"].forEach(function(o){for(var s,l=(s=o,e.globals.dom.baseEl.querySelectorAll(".apexcharts-".concat(s,"-series .apexcharts-series"))),h=0;h<l.length;h++)t(l,h,o)});var n=e.globals.dom.baseEl.querySelectorAll(".apexcharts-".concat(e.config.chart.type," .apexcharts-series"));if(n.length>0)for(var r=function(o){for(var s=e.globals.dom.baseEl.querySelectorAll(".apexcharts-".concat(e.config.chart.type," .apexcharts-series[data\\:realIndex='").concat(o,"'] rect")),l=[],h=function(c){var f=function(p){return s[c].getAttribute(p)},d={x:parseFloat(f("x")),y:parseFloat(f("y")),width:parseFloat(f("width")),height:parseFloat(f("height"))};l.push({rect:d,color:s[c].getAttribute("color")})},u=0;u<s.length;u++)h(u);e.globals.previousPaths.push(l)},a=0;a<n.length;a++)r(a);e.globals.axisCharts||(e.globals.previousPaths=e.globals.series)}},{key:"clearPreviousPaths",value:function(){var e=this.w;e.globals.previousPaths=[],e.globals.allSeriesCollapsed=!1}},{key:"handleNoData",value:function(){var e=this.w,t=e.config.noData,n=new Q(this.ctx),r=e.globals.svgWidth/2,a=e.globals.svgHeight/2,o="middle";if(e.globals.noData=!0,e.globals.animationEnded=!0,t.align==="left"?(r=10,o="start"):t.align==="right"&&(r=e.globals.svgWidth-10,o="end"),t.verticalAlign==="top"?a=50:t.verticalAlign==="bottom"&&(a=e.globals.svgHeight-50),r+=t.offsetX,a=a+parseInt(t.style.fontSize,10)+2+t.offsetY,t.text!==void 0&&t.text!==""){var s=n.drawText({x:r,y:a,text:t.text,textAnchor:o,fontSize:t.style.fontSize,fontFamily:t.style.fontFamily,foreColor:t.style.color,opacity:1,class:"apexcharts-text-nodata"});e.globals.dom.Paper.add(s)}}},{key:"setNullSeriesToZeroValues",value:function(e){for(var t=this.w,n=0;n<e.length;n++)if(e[n].length===0)for(var r=0;r<e[t.globals.maxValsInArrayIndex].length;r++)e[n].push(0);return e}},{key:"hasAllSeriesEqualX",value:function(){for(var e=!0,t=this.w,n=this.filteredSeriesX(),r=0;r<n.length-1;r++)if(n[r][0]!==n[r+1][0]){e=!1;break}return t.globals.allSeriesHasEqualX=e,e}},{key:"filteredSeriesX",value:function(){var e=this.w.globals.seriesX.map(function(t){return t.length>0?t:[]});return e}}]),i}(),Us=function(){function i(e){ae(this,i),this.ctx=e,this.w=e.w,this.twoDSeries=[],this.threeDSeries=[],this.twoDSeriesX=[],this.seriesGoals=[],this.coreUtils=new Je(this.ctx)}return oe(i,[{key:"isMultiFormat",value:function(){return this.isFormatXY()||this.isFormat2DArray()}},{key:"isFormatXY",value:function(){var e=this.w.config.series.slice(),t=new jt(this.ctx);if(this.activeSeriesIndex=t.getActiveConfigSeriesIndex(),e[this.activeSeriesIndex].data!==void 0&&e[this.activeSeriesIndex].data.length>0&&e[this.activeSeriesIndex].data[0]!==null&&e[this.activeSeriesIndex].data[0].x!==void 0&&e[this.activeSeriesIndex].data[0]!==null)return!0}},{key:"isFormat2DArray",value:function(){var e=this.w.config.series.slice(),t=new jt(this.ctx);if(this.activeSeriesIndex=t.getActiveConfigSeriesIndex(),e[this.activeSeriesIndex].data!==void 0&&e[this.activeSeriesIndex].data.length>0&&e[this.activeSeriesIndex].data[0]!==void 0&&e[this.activeSeriesIndex].data[0]!==null&&e[this.activeSeriesIndex].data[0].constructor===Array)return!0}},{key:"handleFormat2DArray",value:function(e,t){for(var n=this.w.config,r=this.w.globals,a=n.chart.type==="boxPlot"||n.series[t].type==="boxPlot",o=0;o<e[t].data.length;o++)if(e[t].data[o][1]!==void 0&&(Array.isArray(e[t].data[o][1])&&e[t].data[o][1].length===4&&!a?this.twoDSeries.push(q.parseNumber(e[t].data[o][1][3])):e[t].data[o].length>=5?this.twoDSeries.push(q.parseNumber(e[t].data[o][4])):this.twoDSeries.push(q.parseNumber(e[t].data[o][1])),r.dataFormatXNumeric=!0),n.xaxis.type==="datetime"){var s=new Date(e[t].data[o][0]);s=new Date(s).getTime(),this.twoDSeriesX.push(s)}else this.twoDSeriesX.push(e[t].data[o][0]);for(var l=0;l<e[t].data.length;l++)e[t].data[l][2]!==void 0&&(this.threeDSeries.push(e[t].data[l][2]),r.isDataXYZ=!0)}},{key:"handleFormatXY",value:function(e,t){var n=this.w.config,r=this.w.globals,a=new lt(this.ctx),o=t;r.collapsedSeriesIndices.indexOf(t)>-1&&(o=this.activeSeriesIndex);for(var s=0;s<e[t].data.length;s++)e[t].data[s].y!==void 0&&(Array.isArray(e[t].data[s].y)?this.twoDSeries.push(q.parseNumber(e[t].data[s].y[e[t].data[s].y.length-1])):this.twoDSeries.push(q.parseNumber(e[t].data[s].y))),e[t].data[s].goals!==void 0&&Array.isArray(e[t].data[s].goals)?(this.seriesGoals[t]===void 0&&(this.seriesGoals[t]=[]),this.seriesGoals[t].push(e[t].data[s].goals)):(this.seriesGoals[t]===void 0&&(this.seriesGoals[t]=[]),this.seriesGoals[t].push(null));for(var l=0;l<e[o].data.length;l++){var h=typeof e[o].data[l].x=="string",u=Array.isArray(e[o].data[l].x),c=!u&&!!a.isValidDate(e[o].data[l].x);if(h||c)if(h||n.xaxis.convertedCatToNumeric){var f=r.isBarHorizontal&&r.isRangeData;n.xaxis.type!=="datetime"||f?(this.fallbackToCategory=!0,this.twoDSeriesX.push(e[o].data[l].x),isNaN(e[o].data[l].x)||this.w.config.xaxis.type==="category"||typeof e[o].data[l].x=="string"||(r.isXNumeric=!0)):this.twoDSeriesX.push(a.parseDate(e[o].data[l].x))}else n.xaxis.type==="datetime"?this.twoDSeriesX.push(a.parseDate(e[o].data[l].x.toString())):(r.dataFormatXNumeric=!0,r.isXNumeric=!0,this.twoDSeriesX.push(parseFloat(e[o].data[l].x)));else u?(this.fallbackToCategory=!0,this.twoDSeriesX.push(e[o].data[l].x)):(r.isXNumeric=!0,r.dataFormatXNumeric=!0,this.twoDSeriesX.push(e[o].data[l].x))}if(e[t].data[0]&&e[t].data[0].z!==void 0){for(var d=0;d<e[t].data.length;d++)this.threeDSeries.push(e[t].data[d].z);r.isDataXYZ=!0}}},{key:"handleRangeData",value:function(e,t){var n=this.w.globals,r={};return this.isFormat2DArray()?r=this.handleRangeDataFormat("array",e,t):this.isFormatXY()&&(r=this.handleRangeDataFormat("xy",e,t)),n.seriesRangeStart[t]=r.start===void 0?[]:r.start,n.seriesRangeEnd[t]=r.end===void 0?[]:r.end,n.seriesRange[t]=r.rangeUniques,n.seriesRange.forEach(function(a,o){a&&a.forEach(function(s,l){s.y.forEach(function(h,u){for(var c=0;c<s.y.length;c++)if(u!==c){var f=h.y1,d=h.y2,p=s.y[c].y1;f<=s.y[c].y2&&p<=d&&(s.overlaps.indexOf(h.rangeName)<0&&s.overlaps.push(h.rangeName),s.overlaps.indexOf(s.y[c].rangeName)<0&&s.overlaps.push(s.y[c].rangeName))}})})}),r}},{key:"handleCandleStickBoxData",value:function(e,t){var n=this.w.globals,r={};return this.isFormat2DArray()?r=this.handleCandleStickBoxDataFormat("array",e,t):this.isFormatXY()&&(r=this.handleCandleStickBoxDataFormat("xy",e,t)),n.seriesCandleO[t]=r.o,n.seriesCandleH[t]=r.h,n.seriesCandleM[t]=r.m,n.seriesCandleL[t]=r.l,n.seriesCandleC[t]=r.c,r}},{key:"handleRangeDataFormat",value:function(e,t,n){var r=[],a=[],o=t[n].data.filter(function(u,c,f){return c===f.findIndex(function(d){return d.x===u.x})}).map(function(u,c){return{x:u.x,overlaps:[],y:[]}});if(e==="array")for(var s=0;s<t[n].data.length;s++)Array.isArray(t[n].data[s])?(r.push(t[n].data[s][1][0]),a.push(t[n].data[s][1][1])):(r.push(t[n].data[s]),a.push(t[n].data[s]));else if(e==="xy")for(var l=function(u){var c=Array.isArray(t[n].data[u].y),f=q.randomId(),d=t[n].data[u].x,p={y1:c?t[n].data[u].y[0]:t[n].data[u].y,y2:c?t[n].data[u].y[1]:t[n].data[u].y,rangeName:f};t[n].data[u].rangeName=f;var g=o.findIndex(function(m){return m.x===d});o[g].y.push(p),r.push(p.y1),a.push(p.y2)},h=0;h<t[n].data.length;h++)l(h);return{start:r,end:a,rangeUniques:o}}},{key:"handleCandleStickBoxDataFormat",value:function(e,t,n){var r=this.w,a=r.config.chart.type==="boxPlot"||r.config.series[n].type==="boxPlot",o=[],s=[],l=[],h=[],u=[];if(e==="array")if(a&&t[n].data[0].length===6||!a&&t[n].data[0].length===5)for(var c=0;c<t[n].data.length;c++)o.push(t[n].data[c][1]),s.push(t[n].data[c][2]),a?(l.push(t[n].data[c][3]),h.push(t[n].data[c][4]),u.push(t[n].data[c][5])):(h.push(t[n].data[c][3]),u.push(t[n].data[c][4]));else for(var f=0;f<t[n].data.length;f++)Array.isArray(t[n].data[f][1])&&(o.push(t[n].data[f][1][0]),s.push(t[n].data[f][1][1]),a?(l.push(t[n].data[f][1][2]),h.push(t[n].data[f][1][3]),u.push(t[n].data[f][1][4])):(h.push(t[n].data[f][1][2]),u.push(t[n].data[f][1][3])));else if(e==="xy")for(var d=0;d<t[n].data.length;d++)Array.isArray(t[n].data[d].y)&&(o.push(t[n].data[d].y[0]),s.push(t[n].data[d].y[1]),a?(l.push(t[n].data[d].y[2]),h.push(t[n].data[d].y[3]),u.push(t[n].data[d].y[4])):(h.push(t[n].data[d].y[2]),u.push(t[n].data[d].y[3])));return{o,h:s,m:l,l:h,c:u}}},{key:"parseDataAxisCharts",value:function(e){var t=this,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.ctx,r=this.w.config,a=this.w.globals,o=new lt(n),s=r.labels.length>0?r.labels.slice():r.xaxis.categories.slice();a.isRangeBar=r.chart.type==="rangeBar"&&a.isBarHorizontal,a.hasXaxisGroups=r.xaxis.type==="category"&&r.xaxis.group.groups.length>0,a.hasXaxisGroups&&(a.groups=r.xaxis.group.groups),e.forEach(function(d,p){d.name!==void 0?a.seriesNames.push(d.name):a.seriesNames.push("series-"+parseInt(p+1,10))}),this.coreUtils.setSeriesYAxisMappings();var l=[],h=nt(new Set(r.series.map(function(d){return d.group})));r.series.forEach(function(d,p){var g=h.indexOf(d.group);l[g]||(l[g]=[]),l[g].push(a.seriesNames[p])}),a.seriesGroups=l;for(var u=function(){for(var d=0;d<s.length;d++)if(typeof s[d]=="string"){if(!o.isValidDate(s[d]))throw new Error("You have provided invalid Date format. Please provide a valid JavaScript Date");t.twoDSeriesX.push(o.parseDate(s[d]))}else t.twoDSeriesX.push(s[d])},c=0;c<e.length;c++){if(this.twoDSeries=[],this.twoDSeriesX=[],this.threeDSeries=[],e[c].data===void 0)return void console.error("It is a possibility that you may have not included 'data' property in series.");if(r.chart.type!=="rangeBar"&&r.chart.type!=="rangeArea"&&e[c].type!=="rangeBar"&&e[c].type!=="rangeArea"||(a.isRangeData=!0,this.handleRangeData(e,c)),this.isMultiFormat())this.isFormat2DArray()?this.handleFormat2DArray(e,c):this.isFormatXY()&&this.handleFormatXY(e,c),r.chart.type!=="candlestick"&&e[c].type!=="candlestick"&&r.chart.type!=="boxPlot"&&e[c].type!=="boxPlot"||this.handleCandleStickBoxData(e,c),a.series.push(this.twoDSeries),a.labels.push(this.twoDSeriesX),a.seriesX.push(this.twoDSeriesX),a.seriesGoals=this.seriesGoals,c!==this.activeSeriesIndex||this.fallbackToCategory||(a.isXNumeric=!0);else{r.xaxis.type==="datetime"?(a.isXNumeric=!0,u(),a.seriesX.push(this.twoDSeriesX)):r.xaxis.type==="numeric"&&(a.isXNumeric=!0,s.length>0&&(this.twoDSeriesX=s,a.seriesX.push(this.twoDSeriesX))),a.labels.push(this.twoDSeriesX);var f=e[c].data.map(function(d){return q.parseNumber(d)});a.series.push(f)}a.seriesZ.push(this.threeDSeries),e[c].color!==void 0?a.seriesColors.push(e[c].color):a.seriesColors.push(void 0)}return this.w}},{key:"parseDataNonAxisCharts",value:function(e){var t=this.w.globals,n=this.w.config;t.series=e.slice(),t.seriesNames=n.labels.slice();for(var r=0;r<t.series.length;r++)t.seriesNames[r]===void 0&&t.seriesNames.push("series-"+(r+1));return this.w}},{key:"handleExternalLabelsData",value:function(e){var t=this.w.config,n=this.w.globals;t.xaxis.categories.length>0?n.labels=t.xaxis.categories:t.labels.length>0?n.labels=t.labels.slice():this.fallbackToCategory?(n.labels=n.labels[0],n.seriesRange.length&&(n.seriesRange.map(function(r){r.forEach(function(a){n.labels.indexOf(a.x)<0&&a.x&&n.labels.push(a.x)})}),n.labels=Array.from(new Set(n.labels.map(JSON.stringify)),JSON.parse)),t.xaxis.convertedCatToNumeric&&(new or(t).convertCatToNumericXaxis(t,this.ctx,n.seriesX[0]),this._generateExternalLabels(e))):this._generateExternalLabels(e)}},{key:"_generateExternalLabels",value:function(e){var t=this.w.globals,n=this.w.config,r=[];if(t.axisCharts){if(t.series.length>0)if(this.isFormatXY())for(var a=n.series.map(function(c,f){return c.data.filter(function(d,p,g){return g.findIndex(function(m){return m.x===d.x})===p})}),o=a.reduce(function(c,f,d,p){return p[c].length>f.length?c:d},0),s=0;s<a[o].length;s++)r.push(s+1);else for(var l=0;l<t.series[t.maxValsInArrayIndex].length;l++)r.push(l+1);t.seriesX=[];for(var h=0;h<e.length;h++)t.seriesX.push(r);this.w.globals.isBarHorizontal||(t.isXNumeric=!0)}if(r.length===0){r=t.axisCharts?[]:t.series.map(function(c,f){return f+1});for(var u=0;u<e.length;u++)t.seriesX.push(r)}t.labels=r,n.xaxis.convertedCatToNumeric&&(t.categoryLabels=r.map(function(c){return n.xaxis.labels.formatter(c)})),t.noLabelsProvided=!0}},{key:"parseData",value:function(e){var t=this.w,n=t.config,r=t.globals;if(this.excludeCollapsedSeriesInYAxis(),this.fallbackToCategory=!1,this.ctx.core.resetGlobals(),this.ctx.core.isMultipleY(),r.axisCharts?(this.parseDataAxisCharts(e),this.coreUtils.getLargestSeries()):this.parseDataNonAxisCharts(e),n.chart.stacked){var a=new jt(this.ctx);r.series=a.setNullSeriesToZeroValues(r.series)}this.coreUtils.getSeriesTotals(),r.axisCharts&&(r.stackedSeriesTotals=this.coreUtils.getStackedSeriesTotals(),r.stackedSeriesTotalsByGroups=this.coreUtils.getStackedSeriesTotalsByGroups()),this.coreUtils.getPercentSeries(),r.dataFormatXNumeric||r.isXNumeric&&(n.xaxis.type!=="numeric"||n.labels.length!==0||n.xaxis.categories.length!==0)||this.handleExternalLabelsData(e);for(var o=this.coreUtils.getCategoryLabels(r.labels),s=0;s<o.length;s++)if(Array.isArray(o[s])){r.isMultiLineX=!0;break}}},{key:"excludeCollapsedSeriesInYAxis",value:function(){var e=this.w,t=[];e.globals.seriesYAxisMap.forEach(function(n,r){var a=0;n.forEach(function(o){e.globals.collapsedSeriesIndices.indexOf(o)!==-1&&a++}),a>0&&a==n.length&&t.push(r)}),e.globals.ignoreYAxisIndexes=t.map(function(n){return n})}}]),i}(),Zi=function(){function i(e){ae(this,i),this.ctx=e,this.w=e.w}return oe(i,[{key:"svgStringToNode",value:function(e){return new DOMParser().parseFromString(e,"image/svg+xml").documentElement}},{key:"scaleSvgNode",value:function(e,t){var n=parseFloat(e.getAttributeNS(null,"width")),r=parseFloat(e.getAttributeNS(null,"height"));e.setAttributeNS(null,"width",n*t),e.setAttributeNS(null,"height",r*t),e.setAttributeNS(null,"viewBox","0 0 "+n+" "+r)}},{key:"getSvgString",value:function(e){var t=this;return new Promise(function(n){var r=t.w,a=e||r.config.chart.toolbar.export.scale||r.config.chart.toolbar.export.width/r.globals.svgWidth;a||(a=1);var o=r.globals.svgWidth*a,s=r.globals.svgHeight*a,l=r.globals.dom.elWrap.cloneNode(!0);l.style.width=o+"px",l.style.height=s+"px";var h=new XMLSerializer().serializeToString(l),u=`
40
+ <svg xmlns="http://www.w3.org/2000/svg"
41
+ version="1.1"
42
+ xmlns:xlink="http://www.w3.org/1999/xlink"
43
+ class="apexcharts-svg"
44
+ xmlns:data="ApexChartsNS"
45
+ transform="translate(0, 0)"
46
+ width="`.concat(r.globals.svgWidth,'px" height="').concat(r.globals.svgHeight,`px">
47
+ <foreignObject width="100%" height="100%">
48
+ <div xmlns="http://www.w3.org/1999/xhtml" style="width:`).concat(o,"px; height:").concat(s,`px;">
49
+ <style type="text/css">
50
+ .apexcharts-tooltip, .apexcharts-toolbar, .apexcharts-xaxistooltip, .apexcharts-yaxistooltip, .apexcharts-xcrosshairs, .apexcharts-ycrosshairs, .apexcharts-zoom-rect, .apexcharts-selection-rect {
51
+ display: none;
52
+ }
53
+ </style>
54
+ `).concat(h,`
55
+ </div>
56
+ </foreignObject>
57
+ </svg>
58
+ `),c=t.svgStringToNode(u);a!==1&&t.scaleSvgNode(c,a),t.convertImagesToBase64(c).then(function(){u=new XMLSerializer().serializeToString(c),n(u.replace(/&nbsp;/g,"&#160;"))})})}},{key:"convertImagesToBase64",value:function(e){var t=this,n=e.getElementsByTagName("image"),r=Array.from(n).map(function(a){var o=a.getAttributeNS("http://www.w3.org/1999/xlink","href");return o&&!o.startsWith("data:")?t.getBase64FromUrl(o).then(function(s){a.setAttributeNS("http://www.w3.org/1999/xlink","href",s)}).catch(function(s){console.error("Error converting image to base64:",s)}):Promise.resolve()});return Promise.all(r)}},{key:"getBase64FromUrl",value:function(e){return new Promise(function(t,n){var r=new Image;r.crossOrigin="Anonymous",r.onload=function(){var a=document.createElement("canvas");a.width=r.width,a.height=r.height,a.getContext("2d").drawImage(r,0,0),t(a.toDataURL())},r.onerror=n,r.src=e})}},{key:"svgUrl",value:function(){var e=this;return new Promise(function(t){e.getSvgString().then(function(n){var r=new Blob([n],{type:"image/svg+xml;charset=utf-8"});t(URL.createObjectURL(r))})})}},{key:"dataURI",value:function(e){var t=this;return new Promise(function(n){var r=t.w,a=e?e.scale||e.width/r.globals.svgWidth:1,o=document.createElement("canvas");o.width=r.globals.svgWidth*a,o.height=parseInt(r.globals.dom.elWrap.style.height,10)*a;var s=r.config.chart.background!=="transparent"&&r.config.chart.background?r.config.chart.background:"#fff",l=o.getContext("2d");l.fillStyle=s,l.fillRect(0,0,o.width*a,o.height*a),t.getSvgString(a).then(function(h){var u="data:image/svg+xml,"+encodeURIComponent(h),c=new Image;c.crossOrigin="anonymous",c.onload=function(){if(l.drawImage(c,0,0),o.msToBlob){var f=o.msToBlob();n({blob:f})}else{var d=o.toDataURL("image/png");n({imgURI:d})}},c.src=u})})}},{key:"exportToSVG",value:function(){var e=this;this.svgUrl().then(function(t){e.triggerDownload(t,e.w.config.chart.toolbar.export.svg.filename,".svg")})}},{key:"exportToPng",value:function(){var e=this,t=this.w.config.chart.toolbar.export.scale,n=this.w.config.chart.toolbar.export.width,r=t?{scale:t}:n?{width:n}:void 0;this.dataURI(r).then(function(a){var o=a.imgURI,s=a.blob;s?navigator.msSaveOrOpenBlob(s,e.w.globals.chartID+".png"):e.triggerDownload(o,e.w.config.chart.toolbar.export.png.filename,".png")})}},{key:"exportToCSV",value:function(e){var t=this,n=e.series,r=e.fileName,a=e.columnDelimiter,o=a===void 0?",":a,s=e.lineDelimiter,l=s===void 0?`
59
+ `:s,h=this.w;n||(n=h.config.series);var u=[],c=[],f="",d=h.globals.series.map(function(w,k){return h.globals.collapsedSeriesIndices.indexOf(k)===-1?w:[]}),p=function(w){return typeof h.config.chart.toolbar.export.csv.categoryFormatter=="function"?h.config.chart.toolbar.export.csv.categoryFormatter(w):h.config.xaxis.type==="datetime"&&String(w).length>=10?new Date(w).toDateString():q.isNumber(w)?w:w.split(o).join("")},g=function(w){return typeof h.config.chart.toolbar.export.csv.valueFormatter=="function"?h.config.chart.toolbar.export.csv.valueFormatter(w):w},m=Math.max.apply(Math,nt(n.map(function(w){return w.data?w.data.length:0}))),v=new Us(this.ctx),y=new Mn(this.ctx),b=function(w){var k="";if(h.globals.axisCharts){if(h.config.xaxis.type==="category"||h.config.xaxis.convertedCatToNumeric)if(h.globals.isBarHorizontal){var S=h.globals.yLabelFormatters[0],A=new jt(t.ctx).getActiveConfigSeriesIndex();k=S(h.globals.labels[w],{seriesIndex:A,dataPointIndex:w,w:h})}else k=y.getLabel(h.globals.labels,h.globals.timescaleLabels,0,w).text;h.config.xaxis.type==="datetime"&&(h.config.xaxis.categories.length?k=h.config.xaxis.categories[w]:h.config.labels.length&&(k=h.config.labels[w]))}else k=h.config.labels[w];return k===null?"nullvalue":(Array.isArray(k)&&(k=k.join(" ")),q.isNumber(k)?k:k.split(o).join(""))},x=function(w,k){if(u.length&&k===0&&c.push(u.join(o)),w.data){w.data=w.data.length&&w.data||nt(Array(m)).map(function(){return""});for(var S=0;S<w.data.length;S++){u=[];var A=b(S);if(A!=="nullvalue"){if(A||(v.isFormatXY()?A=n[k].data[S].x:v.isFormat2DArray()&&(A=n[k].data[S]?n[k].data[S][0]:"")),k===0){u.push(p(A));for(var O=0;O<h.globals.series.length;O++){var _,C=v.isFormatXY()?(_=n[O].data[S])===null||_===void 0?void 0:_.y:d[O][S];u.push(g(C))}}(h.config.chart.type==="candlestick"||w.type&&w.type==="candlestick")&&(u.pop(),u.push(h.globals.seriesCandleO[k][S]),u.push(h.globals.seriesCandleH[k][S]),u.push(h.globals.seriesCandleL[k][S]),u.push(h.globals.seriesCandleC[k][S])),(h.config.chart.type==="boxPlot"||w.type&&w.type==="boxPlot")&&(u.pop(),u.push(h.globals.seriesCandleO[k][S]),u.push(h.globals.seriesCandleH[k][S]),u.push(h.globals.seriesCandleM[k][S]),u.push(h.globals.seriesCandleL[k][S]),u.push(h.globals.seriesCandleC[k][S])),h.config.chart.type==="rangeBar"&&(u.pop(),u.push(h.globals.seriesRangeStart[k][S]),u.push(h.globals.seriesRangeEnd[k][S])),u.length&&c.push(u.join(o))}}}};u.push(h.config.chart.toolbar.export.csv.headerCategory),h.config.chart.type==="boxPlot"?(u.push("minimum"),u.push("q1"),u.push("median"),u.push("q3"),u.push("maximum")):h.config.chart.type==="candlestick"?(u.push("open"),u.push("high"),u.push("low"),u.push("close")):h.config.chart.type==="rangeBar"?(u.push("minimum"),u.push("maximum")):n.map(function(w,k){var S=(w.name?w.name:"series-".concat(k))+"";h.globals.axisCharts&&u.push(S.split(o).join("")?S.split(o).join(""):"series-".concat(k))}),h.globals.axisCharts||(u.push(h.config.chart.toolbar.export.csv.headerValue),c.push(u.join(o))),h.globals.allSeriesHasEqualX||!h.globals.axisCharts||h.config.xaxis.categories.length||h.config.labels.length?n.map(function(w,k){h.globals.axisCharts?x(w,k):((u=[]).push(p(h.globals.labels[k])),u.push(g(d[k])),c.push(u.join(o)))}):function(){var w=new Set,k={};n.forEach(function(S,A){S==null||S.data.forEach(function(O){var _,C;if(v.isFormatXY())_=O.x,C=O.y;else{if(!v.isFormat2DArray())return;_=O[0],C=O[1]}k[_]||(k[_]=Array(n.length).fill("")),k[_][A]=g(C),w.add(_)})}),u.length&&c.push(u.join(o)),Array.from(w).sort().forEach(function(S){c.push([p(S),k[S].join(o)])})}(),f+=c.join(l),this.triggerDownload("data:text/csv; charset=utf-8,"+encodeURIComponent("\uFEFF"+f),r||h.config.chart.toolbar.export.csv.filename,".csv")}},{key:"triggerDownload",value:function(e,t,n){var r=document.createElement("a");r.href=e,r.download=(t||this.w.globals.chartID)+n,document.body.appendChild(r),r.click(),document.body.removeChild(r)}}]),i}(),lr=function(){function i(e,t){ae(this,i),this.ctx=e,this.elgrid=t,this.w=e.w;var n=this.w;this.axesUtils=new Mn(e),this.xaxisLabels=n.globals.labels.slice(),n.globals.timescaleLabels.length>0&&!n.globals.isBarHorizontal&&(this.xaxisLabels=n.globals.timescaleLabels.slice()),n.config.xaxis.overwriteCategories&&(this.xaxisLabels=n.config.xaxis.overwriteCategories),this.drawnLabels=[],this.drawnLabelsRects=[],n.config.xaxis.position==="top"?this.offY=0:this.offY=n.globals.gridHeight,this.offY=this.offY+n.config.xaxis.axisBorder.offsetY,this.isCategoryBarHorizontal=n.config.chart.type==="bar"&&n.config.plotOptions.bar.horizontal,this.xaxisFontSize=n.config.xaxis.labels.style.fontSize,this.xaxisFontFamily=n.config.xaxis.labels.style.fontFamily,this.xaxisForeColors=n.config.xaxis.labels.style.colors,this.xaxisBorderWidth=n.config.xaxis.axisBorder.width,this.isCategoryBarHorizontal&&(this.xaxisBorderWidth=n.config.yaxis[0].axisBorder.width.toString()),this.xaxisBorderWidth.indexOf("%")>-1?this.xaxisBorderWidth=n.globals.gridWidth*parseInt(this.xaxisBorderWidth,10)/100:this.xaxisBorderWidth=parseInt(this.xaxisBorderWidth,10),this.xaxisBorderHeight=n.config.xaxis.axisBorder.height,this.yaxis=n.config.yaxis[0]}return oe(i,[{key:"drawXaxis",value:function(){var e=this.w,t=new Q(this.ctx),n=t.group({class:"apexcharts-xaxis",transform:"translate(".concat(e.config.xaxis.offsetX,", ").concat(e.config.xaxis.offsetY,")")}),r=t.group({class:"apexcharts-xaxis-texts-g",transform:"translate(".concat(e.globals.translateXAxisX,", ").concat(e.globals.translateXAxisY,")")});n.add(r);for(var a=[],o=0;o<this.xaxisLabels.length;o++)a.push(this.xaxisLabels[o]);if(this.drawXAxisLabelAndGroup(!0,t,r,a,e.globals.isXNumeric,function(p,g){return g}),e.globals.hasXaxisGroups){var s=e.globals.groups;a=[];for(var l=0;l<s.length;l++)a.push(s[l].title);var h={};e.config.xaxis.group.style&&(h.xaxisFontSize=e.config.xaxis.group.style.fontSize,h.xaxisFontFamily=e.config.xaxis.group.style.fontFamily,h.xaxisForeColors=e.config.xaxis.group.style.colors,h.fontWeight=e.config.xaxis.group.style.fontWeight,h.cssClass=e.config.xaxis.group.style.cssClass),this.drawXAxisLabelAndGroup(!1,t,r,a,!1,function(p,g){return s[p].cols*g},h)}if(e.config.xaxis.title.text!==void 0){var u=t.group({class:"apexcharts-xaxis-title"}),c=t.drawText({x:e.globals.gridWidth/2+e.config.xaxis.title.offsetX,y:this.offY+parseFloat(this.xaxisFontSize)+(e.config.xaxis.position==="bottom"?e.globals.xAxisLabelsHeight:-e.globals.xAxisLabelsHeight-10)+e.config.xaxis.title.offsetY,text:e.config.xaxis.title.text,textAnchor:"middle",fontSize:e.config.xaxis.title.style.fontSize,fontFamily:e.config.xaxis.title.style.fontFamily,fontWeight:e.config.xaxis.title.style.fontWeight,foreColor:e.config.xaxis.title.style.color,cssClass:"apexcharts-xaxis-title-text "+e.config.xaxis.title.style.cssClass});u.add(c),n.add(u)}if(e.config.xaxis.axisBorder.show){var f=e.globals.barPadForNumericAxis,d=t.drawLine(e.globals.padHorizontal+e.config.xaxis.axisBorder.offsetX-f,this.offY,this.xaxisBorderWidth+f,this.offY,e.config.xaxis.axisBorder.color,0,this.xaxisBorderHeight);this.elgrid&&this.elgrid.elGridBorders&&e.config.grid.show?this.elgrid.elGridBorders.add(d):n.add(d)}return n}},{key:"drawXAxisLabelAndGroup",value:function(e,t,n,r,a,o){var s,l=this,h=arguments.length>6&&arguments[6]!==void 0?arguments[6]:{},u=[],c=[],f=this.w,d=h.xaxisFontSize||this.xaxisFontSize,p=h.xaxisFontFamily||this.xaxisFontFamily,g=h.xaxisForeColors||this.xaxisForeColors,m=h.fontWeight||f.config.xaxis.labels.style.fontWeight,v=h.cssClass||f.config.xaxis.labels.style.cssClass,y=f.globals.padHorizontal,b=r.length,x=f.config.xaxis.type==="category"?f.globals.dataPoints:b;if(x===0&&b>x&&(x=b),a){var w=Math.max(Number(f.config.xaxis.tickAmount)||1,x>1?x-1:x);s=f.globals.gridWidth/Math.min(w,b-1),y=y+o(0,s)/2+f.config.xaxis.labels.offsetX}else s=f.globals.gridWidth/x,y=y+o(0,s)+f.config.xaxis.labels.offsetX;for(var k=function(A){var O=y-o(A,s)/2+f.config.xaxis.labels.offsetX;A===0&&b===1&&s/2===y&&x===1&&(O=f.globals.gridWidth/2);var _=l.axesUtils.getLabel(r,f.globals.timescaleLabels,O,A,u,d,e),C=28;if(f.globals.rotateXLabels&&e&&(C=22),f.config.xaxis.title.text&&f.config.xaxis.position==="top"&&(C+=parseFloat(f.config.xaxis.title.style.fontSize)+2),e||(C=C+parseFloat(d)+(f.globals.xAxisLabelsHeight-f.globals.xAxisGroupLabelsHeight)+(f.globals.rotateXLabels?10:0)),_=f.config.xaxis.tickAmount!==void 0&&f.config.xaxis.tickAmount!=="dataPoints"&&f.config.xaxis.type!=="datetime"?l.axesUtils.checkLabelBasedOnTickamount(A,_,b):l.axesUtils.checkForOverflowingLabels(A,_,b,u,c),f.config.xaxis.labels.show){var M=t.drawText({x:_.x,y:l.offY+f.config.xaxis.labels.offsetY+C-(f.config.xaxis.position==="top"?f.globals.xAxisHeight+f.config.xaxis.axisTicks.height-2:0),text:_.text,textAnchor:"middle",fontWeight:_.isBold?600:m,fontSize:d,fontFamily:p,foreColor:Array.isArray(g)?e&&f.config.xaxis.convertedCatToNumeric?g[f.globals.minX+A-1]:g[A]:g,isPlainText:!1,cssClass:(e?"apexcharts-xaxis-label ":"apexcharts-xaxis-group-label ")+v});if(n.add(M),M.on("click",function(E){if(typeof f.config.chart.events.xAxisLabelClick=="function"){var R=Object.assign({},f,{labelIndex:A});f.config.chart.events.xAxisLabelClick(E,l.ctx,R)}}),e){var P=document.createElementNS(f.globals.SVGNS,"title");P.textContent=Array.isArray(_.text)?_.text.join(" "):_.text,M.node.appendChild(P),_.text!==""&&(u.push(_.text),c.push(_))}}A<b-1&&(y+=o(A+1,s))},S=0;S<=b-1;S++)k(S)}},{key:"drawXaxisInversed",value:function(e){var t,n,r=this,a=this.w,o=new Q(this.ctx),s=a.config.yaxis[0].opposite?a.globals.translateYAxisX[e]:0,l=o.group({class:"apexcharts-yaxis apexcharts-xaxis-inversed",rel:e}),h=o.group({class:"apexcharts-yaxis-texts-g apexcharts-xaxis-inversed-texts-g",transform:"translate("+s+", 0)"});l.add(h);var u=[];if(a.config.yaxis[e].show)for(var c=0;c<this.xaxisLabels.length;c++)u.push(this.xaxisLabels[c]);t=a.globals.gridHeight/u.length,n=-t/2.2;var f=a.globals.yLabelFormatters[0],d=a.config.yaxis[0].labels;if(d.show)for(var p=function(w){var k=u[w]===void 0?"":u[w];k=f(k,{seriesIndex:e,dataPointIndex:w,w:a});var S=r.axesUtils.getYAxisForeColor(d.style.colors,e),A=0;Array.isArray(k)&&(A=k.length/2*parseInt(d.style.fontSize,10));var O=d.offsetX-15,_="end";r.yaxis.opposite&&(_="start"),a.config.yaxis[0].labels.align==="left"?(O=d.offsetX,_="start"):a.config.yaxis[0].labels.align==="center"?(O=d.offsetX,_="middle"):a.config.yaxis[0].labels.align==="right"&&(_="end");var C=o.drawText({x:O,y:n+t+d.offsetY-A,text:k,textAnchor:_,foreColor:Array.isArray(S)?S[w]:S,fontSize:d.style.fontSize,fontFamily:d.style.fontFamily,fontWeight:d.style.fontWeight,isPlainText:!1,cssClass:"apexcharts-yaxis-label "+d.style.cssClass,maxWidth:d.maxWidth});h.add(C),C.on("click",function(E){if(typeof a.config.chart.events.xAxisLabelClick=="function"){var R=Object.assign({},a,{labelIndex:w});a.config.chart.events.xAxisLabelClick(E,r.ctx,R)}});var M=document.createElementNS(a.globals.SVGNS,"title");if(M.textContent=Array.isArray(k)?k.join(" "):k,C.node.appendChild(M),a.config.yaxis[e].labels.rotate!==0){var P=o.rotateAroundCenter(C.node);C.node.setAttribute("transform","rotate(".concat(a.config.yaxis[e].labels.rotate," 0 ").concat(P.y,")"))}n+=t},g=0;g<=u.length-1;g++)p(g);if(a.config.yaxis[0].title.text!==void 0){var m=o.group({class:"apexcharts-yaxis-title apexcharts-xaxis-title-inversed",transform:"translate("+s+", 0)"}),v=o.drawText({x:a.config.yaxis[0].title.offsetX,y:a.globals.gridHeight/2+a.config.yaxis[0].title.offsetY,text:a.config.yaxis[0].title.text,textAnchor:"middle",foreColor:a.config.yaxis[0].title.style.color,fontSize:a.config.yaxis[0].title.style.fontSize,fontWeight:a.config.yaxis[0].title.style.fontWeight,fontFamily:a.config.yaxis[0].title.style.fontFamily,cssClass:"apexcharts-yaxis-title-text "+a.config.yaxis[0].title.style.cssClass});m.add(v),l.add(m)}var y=0;this.isCategoryBarHorizontal&&a.config.yaxis[0].opposite&&(y=a.globals.gridWidth);var b=a.config.xaxis.axisBorder;if(b.show){var x=o.drawLine(a.globals.padHorizontal+b.offsetX+y,1+b.offsetY,a.globals.padHorizontal+b.offsetX+y,a.globals.gridHeight+b.offsetY,b.color,0);this.elgrid&&this.elgrid.elGridBorders&&a.config.grid.show?this.elgrid.elGridBorders.add(x):l.add(x)}return a.config.yaxis[0].axisTicks.show&&this.axesUtils.drawYAxisTicks(y,u.length,a.config.yaxis[0].axisBorder,a.config.yaxis[0].axisTicks,0,t,l),l}},{key:"drawXaxisTicks",value:function(e,t,n){var r=this.w,a=e;if(!(e<0||e-2>r.globals.gridWidth)){var o=this.offY+r.config.xaxis.axisTicks.offsetY;if(t=t+o+r.config.xaxis.axisTicks.height,r.config.xaxis.position==="top"&&(t=o-r.config.xaxis.axisTicks.height),r.config.xaxis.axisTicks.show){var s=new Q(this.ctx).drawLine(e+r.config.xaxis.axisTicks.offsetX,o+r.config.xaxis.offsetY,a+r.config.xaxis.axisTicks.offsetX,t+r.config.xaxis.offsetY,r.config.xaxis.axisTicks.color);n.add(s),s.node.classList.add("apexcharts-xaxis-tick")}}}},{key:"getXAxisTicksPositions",value:function(){var e=this.w,t=[],n=this.xaxisLabels.length,r=e.globals.padHorizontal;if(e.globals.timescaleLabels.length>0)for(var a=0;a<n;a++)r=this.xaxisLabels[a].position,t.push(r);else for(var o=n,s=0;s<o;s++){var l=o;e.globals.isXNumeric&&e.config.chart.type!=="bar"&&(l-=1),r+=e.globals.gridWidth/l,t.push(r)}return t}},{key:"xAxisLabelCorrections",value:function(){var e=this.w,t=new Q(this.ctx),n=e.globals.dom.baseEl.querySelector(".apexcharts-xaxis-texts-g"),r=e.globals.dom.baseEl.querySelectorAll(".apexcharts-xaxis-texts-g text:not(.apexcharts-xaxis-group-label)"),a=e.globals.dom.baseEl.querySelectorAll(".apexcharts-yaxis-inversed text"),o=e.globals.dom.baseEl.querySelectorAll(".apexcharts-xaxis-inversed-texts-g text tspan");if(e.globals.rotateXLabels||e.config.xaxis.labels.rotateAlways)for(var s=0;s<r.length;s++){var l=t.rotateAroundCenter(r[s]);l.y=l.y-1,l.x=l.x+1,r[s].setAttribute("transform","rotate(".concat(e.config.xaxis.labels.rotate," ").concat(l.x," ").concat(l.y,")")),r[s].setAttribute("text-anchor","end"),n.setAttribute("transform","translate(0, ".concat(-10,")"));var h=r[s].childNodes;e.config.xaxis.labels.trim&&Array.prototype.forEach.call(h,function(d){t.placeTextWithEllipsis(d,d.textContent,e.globals.xAxisLabelsHeight-(e.config.legend.position==="bottom"?20:10))})}else(function(){for(var d=e.globals.gridWidth/(e.globals.labels.length+1),p=0;p<r.length;p++){var g=r[p].childNodes;e.config.xaxis.labels.trim&&e.config.xaxis.type!=="datetime"&&Array.prototype.forEach.call(g,function(m){t.placeTextWithEllipsis(m,m.textContent,d)})}})();if(a.length>0){var u=a[a.length-1].getBBox(),c=a[0].getBBox();u.x<-20&&a[a.length-1].parentNode.removeChild(a[a.length-1]),c.x+c.width>e.globals.gridWidth&&!e.globals.isBarHorizontal&&a[0].parentNode.removeChild(a[0]);for(var f=0;f<o.length;f++)t.placeTextWithEllipsis(o[f],o[f].textContent,e.config.yaxis[0].labels.maxWidth-(e.config.yaxis[0].title.text?2*parseFloat(e.config.yaxis[0].title.style.fontSize):0)-15)}}}]),i}(),eh=function(){function i(e){ae(this,i),this.ctx=e,this.w=e.w;var t=this.w;this.xaxisLabels=t.globals.labels.slice(),this.axesUtils=new Mn(e),this.isRangeBar=t.globals.seriesRange.length&&t.globals.isBarHorizontal,t.globals.timescaleLabels.length>0&&(this.xaxisLabels=t.globals.timescaleLabels.slice())}return oe(i,[{key:"drawGridArea",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,t=this.w,n=new Q(this.ctx);e||(e=n.group({class:"apexcharts-grid"}));var r=n.drawLine(t.globals.padHorizontal,1,t.globals.padHorizontal,t.globals.gridHeight,"transparent"),a=n.drawLine(t.globals.padHorizontal,t.globals.gridHeight,t.globals.gridWidth,t.globals.gridHeight,"transparent");return e.add(a),e.add(r),e}},{key:"drawGrid",value:function(){if(this.w.globals.axisCharts){var e=this.renderGrid();return this.drawGridArea(e.el),e}return null}},{key:"createGridMask",value:function(){var e=this.w,t=e.globals,n=new Q(this.ctx),r=Array.isArray(e.config.stroke.width)?Math.max.apply(Math,nt(e.config.stroke.width)):e.config.stroke.width,a=function(u){var c=document.createElementNS(t.SVGNS,"clipPath");return c.setAttribute("id",u),c};t.dom.elGridRectMask=a("gridRectMask".concat(t.cuid)),t.dom.elGridRectBarMask=a("gridRectBarMask".concat(t.cuid)),t.dom.elGridRectMarkerMask=a("gridRectMarkerMask".concat(t.cuid)),t.dom.elForecastMask=a("forecastMask".concat(t.cuid)),t.dom.elNonForecastMask=a("nonForecastMask".concat(t.cuid));var o=0,s=0;(["bar","rangeBar","candlestick","boxPlot"].includes(e.config.chart.type)||e.globals.comboBarCount>0)&&e.globals.isXNumeric&&!e.globals.isBarHorizontal&&(o=Math.max(e.config.grid.padding.left,t.barPadForNumericAxis),s=Math.max(e.config.grid.padding.right,t.barPadForNumericAxis)),t.dom.elGridRect=n.drawRect(-r/2-2,-r/2-2,t.gridWidth+r+4,t.gridHeight+r+4,0,"#fff"),t.dom.elGridRectBar=n.drawRect(-r/2-o-2,-r/2-2,t.gridWidth+r+s+o+4,t.gridHeight+r+4,0,"#fff");var l=e.globals.markers.largestSize;t.dom.elGridRectMarker=n.drawRect(-l,-l,t.gridWidth+2*l,t.gridHeight+2*l,0,"#fff"),t.dom.elGridRectMask.appendChild(t.dom.elGridRect.node),t.dom.elGridRectBarMask.appendChild(t.dom.elGridRectBar.node),t.dom.elGridRectMarkerMask.appendChild(t.dom.elGridRectMarker.node);var h=t.dom.baseEl.querySelector("defs");h.appendChild(t.dom.elGridRectMask),h.appendChild(t.dom.elGridRectBarMask),h.appendChild(t.dom.elGridRectMarkerMask),h.appendChild(t.dom.elForecastMask),h.appendChild(t.dom.elNonForecastMask)}},{key:"_drawGridLines",value:function(e){var t=e.i,n=e.x1,r=e.y1,a=e.x2,o=e.y2,s=e.xCount,l=e.parent,h=this.w;if(!(t===0&&h.globals.skipFirstTimelinelabel||t===s-1&&h.globals.skipLastTimelinelabel&&!h.config.xaxis.labels.formatter||h.config.chart.type==="radar")){h.config.grid.xaxis.lines.show&&this._drawGridLine({i:t,x1:n,y1:r,x2:a,y2:o,xCount:s,parent:l});var u=0;if(h.globals.hasXaxisGroups&&h.config.xaxis.tickPlacement==="between"){var c=h.globals.groups;if(c){for(var f=0,d=0;f<t&&d<c.length;d++)f+=c[d].cols;f===t&&(u=.6*h.globals.xAxisLabelsHeight)}}new lr(this.ctx).drawXaxisTicks(n,u,h.globals.dom.elGraphical)}}},{key:"_drawGridLine",value:function(e){var t=e.i,n=e.x1,r=e.y1,a=e.x2,o=e.y2,s=e.xCount,l=e.parent,h=this.w,u=l.node.classList.contains("apexcharts-gridlines-horizontal"),c=h.globals.barPadForNumericAxis,f=r===0&&o===0||n===0&&a===0||r===h.globals.gridHeight&&o===h.globals.gridHeight||h.globals.isBarHorizontal&&(t===0||t===s-1),d=new Q(this).drawLine(n-(u?c:0),r,a+(u?c:0),o,h.config.grid.borderColor,h.config.grid.strokeDashArray);d.node.classList.add("apexcharts-gridline"),f&&h.config.grid.show?this.elGridBorders.add(d):l.add(d)}},{key:"_drawGridBandRect",value:function(e){var t=e.c,n=e.x1,r=e.y1,a=e.x2,o=e.y2,s=e.type,l=this.w,h=new Q(this.ctx),u=l.globals.barPadForNumericAxis,c=l.config.grid[s].colors[t],f=h.drawRect(n-(s==="row"?u:0),r,a+(s==="row"?2*u:0),o,0,c,l.config.grid[s].opacity);this.elg.add(f),f.attr("clip-path","url(#gridRectMask".concat(l.globals.cuid,")")),f.node.classList.add("apexcharts-grid-".concat(s))}},{key:"_drawXYLines",value:function(e){var t=this,n=e.xCount,r=e.tickAmount,a=this.w;if(a.config.grid.xaxis.lines.show||a.config.xaxis.axisTicks.show){var o,s=a.globals.padHorizontal,l=a.globals.gridHeight;a.globals.timescaleLabels.length?function(p){for(var g=p.xC,m=p.x1,v=p.y1,y=p.x2,b=p.y2,x=0;x<g;x++)m=t.xaxisLabels[x].position,y=t.xaxisLabels[x].position,t._drawGridLines({i:x,x1:m,y1:v,x2:y,y2:b,xCount:n,parent:t.elgridLinesV})}({xC:n,x1:s,y1:0,x2:o,y2:l}):(a.globals.isXNumeric&&(n=a.globals.xAxisScale.result.length),function(p){for(var g=p.xC,m=p.x1,v=p.y1,y=p.x2,b=p.y2,x=0;x<g+(a.globals.isXNumeric?0:1);x++)x===0&&g===1&&a.globals.dataPoints===1&&(y=m=a.globals.gridWidth/2),t._drawGridLines({i:x,x1:m,y1:v,x2:y,y2:b,xCount:n,parent:t.elgridLinesV}),y=m+=a.globals.gridWidth/(a.globals.isXNumeric?g-1:g)}({xC:n,x1:s,y1:0,x2:o,y2:l}))}if(a.config.grid.yaxis.lines.show){var h=0,u=0,c=a.globals.gridWidth,f=r+1;this.isRangeBar&&(f=a.globals.labels.length);for(var d=0;d<f+(this.isRangeBar?1:0);d++)this._drawGridLine({i:d,xCount:f+(this.isRangeBar?1:0),x1:0,y1:h,x2:c,y2:u,parent:this.elgridLinesH}),u=h+=a.globals.gridHeight/(this.isRangeBar?f:r)}}},{key:"_drawInvertedXYLines",value:function(e){var t=e.xCount,n=this.w;if(n.config.grid.xaxis.lines.show||n.config.xaxis.axisTicks.show)for(var r,a=n.globals.padHorizontal,o=n.globals.gridHeight,s=0;s<t+1;s++)n.config.grid.xaxis.lines.show&&this._drawGridLine({i:s,xCount:t+1,x1:a,y1:0,x2:r,y2:o,parent:this.elgridLinesV}),new lr(this.ctx).drawXaxisTicks(a,0,n.globals.dom.elGraphical),r=a+=n.globals.gridWidth/t;if(n.config.grid.yaxis.lines.show)for(var l=0,h=0,u=n.globals.gridWidth,c=0;c<n.globals.dataPoints+1;c++)this._drawGridLine({i:c,xCount:n.globals.dataPoints+1,x1:0,y1:l,x2:u,y2:h,parent:this.elgridLinesH}),h=l+=n.globals.gridHeight/n.globals.dataPoints}},{key:"renderGrid",value:function(){var e=this.w,t=e.globals,n=new Q(this.ctx);this.elg=n.group({class:"apexcharts-grid"}),this.elgridLinesH=n.group({class:"apexcharts-gridlines-horizontal"}),this.elgridLinesV=n.group({class:"apexcharts-gridlines-vertical"}),this.elGridBorders=n.group({class:"apexcharts-grid-borders"}),this.elg.add(this.elgridLinesH),this.elg.add(this.elgridLinesV),e.config.grid.show||(this.elgridLinesV.hide(),this.elgridLinesH.hide(),this.elGridBorders.hide());for(var r=0;r<t.seriesYAxisMap.length&&t.ignoreYAxisIndexes.includes(r);)r++;r===t.seriesYAxisMap.length&&(r=0);var a,o=t.yAxisScale[r].result.length-1;if(!t.isBarHorizontal||this.isRangeBar){var s,l,h;a=this.xaxisLabels.length,this.isRangeBar&&(o=t.labels.length,e.config.xaxis.tickAmount&&e.config.xaxis.labels.formatter&&(a=e.config.xaxis.tickAmount),((s=t.yAxisScale)===null||s===void 0||(l=s[r])===null||l===void 0||(h=l.result)===null||h===void 0?void 0:h.length)>0&&e.config.xaxis.type!=="datetime"&&(a=t.yAxisScale[r].result.length-1)),this._drawXYLines({xCount:a,tickAmount:o})}else a=o,o=t.xTickAmount,this._drawInvertedXYLines({xCount:a,tickAmount:o});return this.drawGridBands(a,o),{el:this.elg,elGridBorders:this.elGridBorders,xAxisTickWidth:t.gridWidth/a}}},{key:"drawGridBands",value:function(e,t){var n,r,a=this,o=this.w;if(((n=o.config.grid.row.colors)===null||n===void 0?void 0:n.length)>0&&function(p,g,m,v,y,b){for(var x=0,w=0;x<g;x++,w++)w>=o.config.grid[p].colors.length&&(w=0),a._drawGridBandRect({c:w,x1:m,y1:v,x2:y,y2:b,type:p}),v+=o.globals.gridHeight/t}("row",t,0,0,o.globals.gridWidth,o.globals.gridHeight/t),((r=o.config.grid.column.colors)===null||r===void 0?void 0:r.length)>0){var s=o.globals.isBarHorizontal||o.config.xaxis.tickPlacement!=="on"||o.config.xaxis.type!=="category"&&!o.config.xaxis.convertedCatToNumeric?e:e-1;o.globals.isXNumeric&&(s=o.globals.xAxisScale.result.length-1);for(var l=o.globals.padHorizontal,h=o.globals.padHorizontal+o.globals.gridWidth/s,u=o.globals.gridHeight,c=0,f=0;c<e;c++,f++){var d;f>=o.config.grid.column.colors.length&&(f=0),o.config.xaxis.type==="datetime"&&(l=this.xaxisLabels[c].position,h=(((d=this.xaxisLabels[c+1])===null||d===void 0?void 0:d.position)||o.globals.gridWidth)-this.xaxisLabels[c].position),this._drawGridBandRect({c:f,x1:l,y1:0,x2:h,y2:u,type:"column"}),l+=o.globals.gridWidth/s}}}}]),i}(),th=function(){function i(e){ae(this,i),this.ctx=e,this.w=e.w,this.coreUtils=new Je(this.ctx)}return oe(i,[{key:"niceScale",value:function(e,t){var n,r,a,o,s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,l=1e-11,h=this.w,u=h.globals;u.isBarHorizontal?(n=h.config.xaxis,r=Math.max((u.svgWidth-100)/25,2)):(n=h.config.yaxis[s],r=Math.max((u.svgHeight-100)/15,2)),q.isNumber(r)||(r=10),a=n.min!==void 0&&n.min!==null,o=n.max!==void 0&&n.min!==null;var c=n.stepSize!==void 0&&n.stepSize!==null,f=n.tickAmount!==void 0&&n.tickAmount!==null,d=f?n.tickAmount:u.niceScaleDefaultTicks[Math.min(Math.round(r/2),u.niceScaleDefaultTicks.length-1)];if(u.isMultipleYAxis&&!f&&u.multiAxisTickAmount>0&&(d=u.multiAxisTickAmount,f=!0),d=d==="dataPoints"?u.dataPoints-1:Math.abs(Math.round(d)),(e===Number.MIN_VALUE&&t===0||!q.isNumber(e)&&!q.isNumber(t)||e===Number.MIN_VALUE&&t===-Number.MAX_VALUE)&&(e=q.isNumber(n.min)?n.min:0,t=q.isNumber(n.max)?n.max:e+d,u.allSeriesCollapsed=!1),e>t){console.warn("axis.min cannot be greater than axis.max: swapping min and max");var p=t;t=e,e=p}else e===t&&(e=e===0?0:e-1,t=t===0?2:t+1);var g=[];d<1&&(d=1);var m=d,v=Math.abs(t-e);!a&&e>0&&e/v<.15&&(e=0,a=!0),!o&&t<0&&-t/v<.15&&(t=0,o=!0);var y=(v=Math.abs(t-e))/m,b=y,x=Math.floor(Math.log10(b)),w=Math.pow(10,x),k=Math.ceil(b/w);if(y=b=(k=u.niceScaleAllowedMagMsd[u.yValueDecimal===0?0:1][k])*w,u.isBarHorizontal&&n.stepSize&&n.type!=="datetime"?(y=n.stepSize,c=!0):c&&(y=n.stepSize),c&&n.forceNiceScale){var S=Math.floor(Math.log10(y));y*=Math.pow(10,x-S)}if(a&&o){var A=v/m;if(f)if(c)if(q.mod(v,y)!=0){var O=q.getGCD(y,A);y=A/O<10?O:A}else q.mod(y,A)==0?y=A:(A=y,f=!1);else y=A;else if(c)q.mod(v,y)==0?A=y:y=A;else if(q.mod(v,y)==0)A=y;else{A=v/(m=Math.ceil(v/y));var _=q.getGCD(v,y);v/_<r&&(A=_),y=A}m=Math.round(v/y)}else{if(a||o){if(o)if(f)e=t-y*m;else{var C=e;e=y*Math.floor(e/y),Math.abs(t-e)/q.getGCD(v,y)>r&&(e=t-y*d,e+=y*Math.floor((C-e)/y))}else if(a)if(f)t=e+y*m;else{var M=t;t=y*Math.ceil(t/y),Math.abs(t-e)/q.getGCD(v,y)>r&&(t=e+y*d,t+=y*Math.ceil((M-t)/y))}}else if(u.isMultipleYAxis&&f){var P=y*Math.floor(e/y),E=P+y*m;E<t&&(y*=2),E=t,t=(e=P)+y*m,v=Math.abs(t-e),e>0&&e<Math.abs(E-t)&&(e=0,t=y*m),t<0&&-t<Math.abs(P-e)&&(t=0,e=-y*m)}else e=y*Math.floor(e/y),t=y*Math.ceil(t/y);v=Math.abs(t-e),y=q.getGCD(v,y),m=Math.round(v/y)}if(f||a||o||(m=Math.ceil((v-l)/(y+l)))>16&&q.getPrimeFactors(m).length<2&&m++,!f&&n.forceNiceScale&&u.yValueDecimal===0&&m>v&&(m=v,y=Math.round(v/m)),m>r&&(!f&&!c||n.forceNiceScale)){var R=q.getPrimeFactors(m),T=R.length-1,F=m;e:for(var B=0;B<T;B++)for(var D=0;D<=T-B;D++){for(var N=Math.min(D+B,T),L=F,I=1,H=D;H<=N;H++)I*=R[H];if((L/=I)<r){F=L;break e}}y=F===m?v:v/F,m=Math.round(v/y)}u.isMultipleYAxis&&u.multiAxisTickAmount==0&&u.ignoreYAxisIndexes.indexOf(s)<0&&(u.multiAxisTickAmount=m);var Y=e-y,W=y*l;do Y+=y,g.push(q.stripNumber(Y,7));while(t-Y>W);return{result:g,niceMin:g[0],niceMax:g[g.length-1]}}},{key:"linearScale",value:function(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:10,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:void 0,o=Math.abs(t-e),s=[];if(e===t)return{result:s=[e],niceMin:s[0],niceMax:s[s.length-1]};(n=this._adjustTicksForSmallRange(n,r,o))==="dataPoints"&&(n=this.w.globals.dataPoints-1),a||(a=o/n),a=Math.round(100*(a+Number.EPSILON))/100,n===Number.MAX_VALUE&&(n=5,a=1);for(var l=e;n>=0;)s.push(l),l=q.preciseAddition(l,a),n-=1;return{result:s,niceMin:s[0],niceMax:s[s.length-1]}}},{key:"logarithmicScaleNice",value:function(e,t,n){t<=0&&(t=Math.max(e,n)),e<=0&&(e=Math.min(t,n));for(var r=[],a=Math.ceil(Math.log(t)/Math.log(n)+1),o=Math.floor(Math.log(e)/Math.log(n));o<a;o++)r.push(Math.pow(n,o));return{result:r,niceMin:r[0],niceMax:r[r.length-1]}}},{key:"logarithmicScale",value:function(e,t,n){t<=0&&(t=Math.max(e,n)),e<=0&&(e=Math.min(t,n));for(var r=[],a=Math.log(t)/Math.log(n),o=Math.log(e)/Math.log(n),s=a-o,l=Math.round(s),h=s/l,u=0,c=o;u<l;u++,c+=h)r.push(Math.pow(n,c));return r.push(Math.pow(n,a)),{result:r,niceMin:e,niceMax:t}}},{key:"_adjustTicksForSmallRange",value:function(e,t,n){var r=e;if(t!==void 0&&this.w.config.yaxis[t].labels.formatter&&this.w.config.yaxis[t].tickAmount===void 0){var a=Number(this.w.config.yaxis[t].labels.formatter(1));q.isNumber(a)&&this.w.globals.yValueDecimal===0&&(r=Math.ceil(n))}return r<e?r:e}},{key:"setYScaleForIndex",value:function(e,t,n){var r=this.w.globals,a=this.w.config,o=r.isBarHorizontal?a.xaxis:a.yaxis[e];r.yAxisScale[e]===void 0&&(r.yAxisScale[e]=[]);var s=Math.abs(n-t);o.logarithmic&&s<=5&&(r.invalidLogScale=!0),o.logarithmic&&s>5?(r.allSeriesCollapsed=!1,r.yAxisScale[e]=o.forceNiceScale?this.logarithmicScaleNice(t,n,o.logBase):this.logarithmicScale(t,n,o.logBase)):n!==-Number.MAX_VALUE&&q.isNumber(n)&&t!==Number.MAX_VALUE&&q.isNumber(t)?(r.allSeriesCollapsed=!1,r.yAxisScale[e]=this.niceScale(t,n,e)):r.yAxisScale[e]=this.niceScale(Number.MIN_VALUE,0,e)}},{key:"setXScale",value:function(e,t){var n=this.w,r=n.globals;if(t!==-Number.MAX_VALUE&&q.isNumber(t)){var a=r.xTickAmount;r.xAxisScale=this.linearScale(e,t,a,0,n.config.xaxis.stepSize)}else r.xAxisScale=this.linearScale(0,10,10);return r.xAxisScale}},{key:"scaleMultipleYAxes",value:function(){var e=this,t=this.w.config,n=this.w.globals;this.coreUtils.setSeriesYAxisMappings();var r=n.seriesYAxisMap,a=n.minYArr,o=n.maxYArr;n.allSeriesCollapsed=!0,n.barGroups=[],r.forEach(function(s,l){var h=[];s.forEach(function(u){var c,f=(c=t.series[u])===null||c===void 0?void 0:c.group;h.indexOf(f)<0&&h.push(f)}),s.length>0?function(){var u,c,f=Number.MAX_VALUE,d=-Number.MAX_VALUE,p=f,g=d;if(t.chart.stacked)(function(){var y=new Array(n.dataPoints).fill(0),b=[],x=[],w=[];h.forEach(function(){b.push(y.map(function(){return Number.MIN_VALUE})),x.push(y.map(function(){return Number.MIN_VALUE})),w.push(y.map(function(){return Number.MIN_VALUE}))});for(var k=function(A){!u&&t.series[s[A]].type&&(u=t.series[s[A]].type);var O=s[A];c=t.series[O].group?t.series[O].group:"axis-".concat(l),!(n.collapsedSeriesIndices.indexOf(O)<0&&n.ancillaryCollapsedSeriesIndices.indexOf(O)<0)||(n.allSeriesCollapsed=!1,h.forEach(function(_,C){if(t.series[O].group===_)for(var M=0;M<n.series[O].length;M++){var P=n.series[O][M];P>=0?x[C][M]+=P:w[C][M]+=P,b[C][M]+=P,p=Math.min(p,P),g=Math.max(g,P)}})),u!=="bar"&&u!=="column"||n.barGroups.push(c)},S=0;S<s.length;S++)k(S);u||(u=t.chart.type),u==="bar"||u==="column"?h.forEach(function(A,O){f=Math.min(f,Math.min.apply(null,w[O])),d=Math.max(d,Math.max.apply(null,x[O]))}):(h.forEach(function(A,O){p=Math.min(p,Math.min.apply(null,b[O])),g=Math.max(g,Math.max.apply(null,b[O]))}),f=p,d=g),f===Number.MIN_VALUE&&d===Number.MIN_VALUE&&(d=-Number.MAX_VALUE)})();else for(var m=0;m<s.length;m++){var v=s[m];f=Math.min(f,a[v]),d=Math.max(d,o[v]),!(n.collapsedSeriesIndices.indexOf(v)<0&&n.ancillaryCollapsedSeriesIndices.indexOf(v)<0)||(n.allSeriesCollapsed=!1)}t.yaxis[l].min!==void 0&&(f=typeof t.yaxis[l].min=="function"?t.yaxis[l].min(f):t.yaxis[l].min),t.yaxis[l].max!==void 0&&(d=typeof t.yaxis[l].max=="function"?t.yaxis[l].max(d):t.yaxis[l].max),n.barGroups=n.barGroups.filter(function(y,b,x){return x.indexOf(y)===b}),e.setYScaleForIndex(l,f,d),s.forEach(function(y){a[y]=n.yAxisScale[l].niceMin,o[y]=n.yAxisScale[l].niceMax})}():e.setYScaleForIndex(l,0,-Number.MAX_VALUE)})}}]),i}(),qo=function(){function i(e){ae(this,i),this.ctx=e,this.w=e.w,this.scales=new th(e)}return oe(i,[{key:"init",value:function(){this.setYRange(),this.setXRange(),this.setZRange()}},{key:"getMinYMaxY",value:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.MAX_VALUE,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:-Number.MAX_VALUE,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null,a=this.w.config,o=this.w.globals,s=-Number.MAX_VALUE,l=Number.MIN_VALUE;r===null&&(r=e+1);var h=o.series,u=h,c=h;a.chart.type==="candlestick"?(u=o.seriesCandleL,c=o.seriesCandleH):a.chart.type==="boxPlot"?(u=o.seriesCandleO,c=o.seriesCandleC):o.isRangeData&&(u=o.seriesRangeStart,c=o.seriesRangeEnd);var f=!1;if(o.seriesX.length>=r){var d,p=(d=o.brushSource)===null||d===void 0?void 0:d.w.config.chart.brush;(a.chart.zoom.enabled&&a.chart.zoom.autoScaleYaxis||p!=null&&p.enabled&&p!=null&&p.autoScaleYaxis)&&(f=!0)}for(var g=e;g<r;g++){o.dataPoints=Math.max(o.dataPoints,h[g].length);var m=a.series[g].type;o.categoryLabels.length&&(o.dataPoints=o.categoryLabels.filter(function(O){return O!==void 0}).length),o.labels.length&&a.xaxis.type!=="datetime"&&o.series.reduce(function(O,_){return O+_.length},0)!==0&&(o.dataPoints=Math.max(o.dataPoints,o.labels.length));var v=0,y=h[g].length-1;if(f){if(a.xaxis.min)for(;v<y&&o.seriesX[g][v]<a.xaxis.min;v++);if(a.xaxis.max)for(;y>v&&o.seriesX[g][y]>a.xaxis.max;y--);}for(var b=v;b<=y&&b<o.series[g].length;b++){var x=h[g][b];if(x!==null&&q.isNumber(x)){var w,k,S,A;switch(((w=c[g])===null||w===void 0?void 0:w[b])!==void 0&&(s=Math.max(s,c[g][b]),t=Math.min(t,c[g][b])),((k=u[g])===null||k===void 0?void 0:k[b])!==void 0&&(t=Math.min(t,u[g][b]),n=Math.max(n,u[g][b])),m){case"candlestick":o.seriesCandleC[g][b]!==void 0&&(s=Math.max(s,o.seriesCandleH[g][b]),t=Math.min(t,o.seriesCandleL[g][b]));break;case"boxPlot":o.seriesCandleC[g][b]!==void 0&&(s=Math.max(s,o.seriesCandleC[g][b]),t=Math.min(t,o.seriesCandleO[g][b]))}m&&m!=="candlestick"&&m!=="boxPlot"&&m!=="rangeArea"&&m!=="rangeBar"&&(s=Math.max(s,o.series[g][b]),t=Math.min(t,o.series[g][b])),o.seriesGoals[g]&&o.seriesGoals[g][b]&&Array.isArray(o.seriesGoals[g][b])&&o.seriesGoals[g][b].forEach(function(O){s=Math.max(s,O.value),t=Math.min(t,O.value)}),n=s,x=q.noExponents(x),q.isFloat(x)&&(o.yValueDecimal=Math.max(o.yValueDecimal,x.toString().split(".")[1].length)),l>((S=u[g])===null||S===void 0?void 0:S[b])&&((A=u[g])===null||A===void 0?void 0:A[b])<0&&(l=u[g][b])}else o.hasNullValues=!0}m!=="bar"&&m!=="column"||(l<0&&s<0&&(s=0,n=Math.max(n,0)),l===Number.MIN_VALUE&&(l=0,t=Math.min(t,0)))}return a.chart.type==="rangeBar"&&o.seriesRangeStart.length&&o.isBarHorizontal&&(l=t),a.chart.type==="bar"&&(l<0&&s<0&&(s=0),l===Number.MIN_VALUE&&(l=0)),{minY:l,maxY:s,lowestY:t,highestY:n}}},{key:"setYRange",value:function(){var e=this.w.globals,t=this.w.config;e.maxY=-Number.MAX_VALUE,e.minY=Number.MIN_VALUE;var n,r=Number.MAX_VALUE;if(e.isMultipleYAxis){r=Number.MAX_VALUE;for(var a=0;a<e.series.length;a++)n=this.getMinYMaxY(a),e.minYArr[a]=n.lowestY,e.maxYArr[a]=n.highestY,r=Math.min(r,n.lowestY)}return n=this.getMinYMaxY(0,r,null,e.series.length),t.chart.type==="bar"?(e.minY=n.minY,e.maxY=n.maxY):(e.minY=n.lowestY,e.maxY=n.highestY),r=n.lowestY,t.chart.stacked&&this._setStackedMinMax(),t.chart.type==="line"||t.chart.type==="area"||t.chart.type==="scatter"||t.chart.type==="candlestick"||t.chart.type==="boxPlot"||t.chart.type==="rangeBar"&&!e.isBarHorizontal?e.minY===Number.MIN_VALUE&&r!==-Number.MAX_VALUE&&r!==e.maxY&&(e.minY=r):e.minY=e.minY!==Number.MIN_VALUE?Math.min(n.minY,e.minY):n.minY,t.yaxis.forEach(function(o,s){o.max!==void 0&&(typeof o.max=="number"?e.maxYArr[s]=o.max:typeof o.max=="function"&&(e.maxYArr[s]=o.max(e.isMultipleYAxis?e.maxYArr[s]:e.maxY)),e.maxY=e.maxYArr[s]),o.min!==void 0&&(typeof o.min=="number"?e.minYArr[s]=o.min:typeof o.min=="function"&&(e.minYArr[s]=o.min(e.isMultipleYAxis?e.minYArr[s]===Number.MIN_VALUE?0:e.minYArr[s]:e.minY)),e.minY=e.minYArr[s])}),e.isBarHorizontal&&["min","max"].forEach(function(o){t.xaxis[o]!==void 0&&typeof t.xaxis[o]=="number"&&(o==="min"?e.minY=t.xaxis[o]:e.maxY=t.xaxis[o])}),e.isMultipleYAxis?(this.scales.scaleMultipleYAxes(),e.minY=r):(this.scales.setYScaleForIndex(0,e.minY,e.maxY),e.minY=e.yAxisScale[0].niceMin,e.maxY=e.yAxisScale[0].niceMax,e.minYArr[0]=e.minY,e.maxYArr[0]=e.maxY),e.barGroups=[],e.lineGroups=[],e.areaGroups=[],t.series.forEach(function(o){switch(o.type||t.chart.type){case"bar":case"column":e.barGroups.push(o.group);break;case"line":e.lineGroups.push(o.group);break;case"area":e.areaGroups.push(o.group)}}),e.barGroups=e.barGroups.filter(function(o,s,l){return l.indexOf(o)===s}),e.lineGroups=e.lineGroups.filter(function(o,s,l){return l.indexOf(o)===s}),e.areaGroups=e.areaGroups.filter(function(o,s,l){return l.indexOf(o)===s}),{minY:e.minY,maxY:e.maxY,minYArr:e.minYArr,maxYArr:e.maxYArr,yAxisScale:e.yAxisScale}}},{key:"setXRange",value:function(){var e=this.w.globals,t=this.w.config,n=t.xaxis.type==="numeric"||t.xaxis.type==="datetime"||t.xaxis.type==="category"&&!e.noLabelsProvided||e.noLabelsProvided||e.isXNumeric;if(e.isXNumeric&&function(){for(var l=0;l<e.series.length;l++)if(e.labels[l])for(var h=0;h<e.labels[l].length;h++)e.labels[l][h]!==null&&q.isNumber(e.labels[l][h])&&(e.maxX=Math.max(e.maxX,e.labels[l][h]),e.initialMaxX=Math.max(e.maxX,e.labels[l][h]),e.minX=Math.min(e.minX,e.labels[l][h]),e.initialMinX=Math.min(e.minX,e.labels[l][h]))}(),e.noLabelsProvided&&t.xaxis.categories.length===0&&(e.maxX=e.labels[e.labels.length-1],e.initialMaxX=e.labels[e.labels.length-1],e.minX=1,e.initialMinX=1),e.isXNumeric||e.noLabelsProvided||e.dataFormatXNumeric){var r=10;if(t.xaxis.tickAmount===void 0)r=Math.round(e.svgWidth/150),t.xaxis.type==="numeric"&&e.dataPoints<30&&(r=e.dataPoints-1),r>e.dataPoints&&e.dataPoints!==0&&(r=e.dataPoints-1);else if(t.xaxis.tickAmount==="dataPoints"){if(e.series.length>1&&(r=e.series[e.maxValsInArrayIndex].length-1),e.isXNumeric){var a=Math.round(e.maxX-e.minX);a<30&&(r=a-1)}}else r=t.xaxis.tickAmount;if(e.xTickAmount=r,t.xaxis.max!==void 0&&typeof t.xaxis.max=="number"&&(e.maxX=t.xaxis.max),t.xaxis.min!==void 0&&typeof t.xaxis.min=="number"&&(e.minX=t.xaxis.min),t.xaxis.range!==void 0&&(e.minX=e.maxX-t.xaxis.range),e.minX!==Number.MAX_VALUE&&e.maxX!==-Number.MAX_VALUE)if(t.xaxis.convertedCatToNumeric&&!e.dataFormatXNumeric){for(var o=[],s=e.minX-1;s<e.maxX;s++)o.push(s+1);e.xAxisScale={result:o,niceMin:o[0],niceMax:o[o.length-1]}}else e.xAxisScale=this.scales.setXScale(e.minX,e.maxX);else e.xAxisScale=this.scales.linearScale(0,r,r,0,t.xaxis.stepSize),e.noLabelsProvided&&e.labels.length>0&&(e.xAxisScale=this.scales.linearScale(1,e.labels.length,r-1,0,t.xaxis.stepSize),e.seriesX=e.labels.slice());n&&(e.labels=e.xAxisScale.result.slice())}return e.isBarHorizontal&&e.labels.length&&(e.xTickAmount=e.labels.length),this._handleSingleDataPoint(),this._getMinXDiff(),{minX:e.minX,maxX:e.maxX}}},{key:"setZRange",value:function(){var e=this.w.globals;if(e.isDataXYZ){for(var t=0;t<e.series.length;t++)if(e.seriesZ[t]!==void 0)for(var n=0;n<e.seriesZ[t].length;n++)e.seriesZ[t][n]!==null&&q.isNumber(e.seriesZ[t][n])&&(e.maxZ=Math.max(e.maxZ,e.seriesZ[t][n]),e.minZ=Math.min(e.minZ,e.seriesZ[t][n]))}}},{key:"_handleSingleDataPoint",value:function(){var e=this.w.globals,t=this.w.config;if(e.minX===e.maxX){var n=new lt(this.ctx);if(t.xaxis.type==="datetime"){var r=n.getDate(e.minX);t.xaxis.labels.datetimeUTC?r.setUTCDate(r.getUTCDate()-2):r.setDate(r.getDate()-2),e.minX=new Date(r).getTime();var a=n.getDate(e.maxX);t.xaxis.labels.datetimeUTC?a.setUTCDate(a.getUTCDate()+2):a.setDate(a.getDate()+2),e.maxX=new Date(a).getTime()}else(t.xaxis.type==="numeric"||t.xaxis.type==="category"&&!e.noLabelsProvided)&&(e.minX=e.minX-2,e.initialMinX=e.minX,e.maxX=e.maxX+2,e.initialMaxX=e.maxX)}}},{key:"_getMinXDiff",value:function(){var e=this.w.globals;e.isXNumeric&&e.seriesX.forEach(function(t,n){if(t.length){t.length===1&&t.push(e.seriesX[e.maxValsInArrayIndex][e.seriesX[e.maxValsInArrayIndex].length-1]);var r=t.slice();r.sort(function(a,o){return a-o}),r.forEach(function(a,o){if(o>0){var s=a-r[o-1];s>0&&(e.minXDiff=Math.min(s,e.minXDiff))}}),e.dataPoints!==1&&e.minXDiff!==Number.MAX_VALUE||(e.minXDiff=.5)}})}},{key:"_setStackedMinMax",value:function(){var e=this,t=this.w.globals;if(t.series.length){var n=t.seriesGroups;n.length||(n=[this.w.globals.seriesNames.map(function(o){return o})]);var r={},a={};n.forEach(function(o){r[o]=[],a[o]=[],e.w.config.series.map(function(s,l){return o.indexOf(t.seriesNames[l])>-1?l:null}).filter(function(s){return s!==null}).forEach(function(s){for(var l=0;l<t.series[t.maxValsInArrayIndex].length;l++){var h,u,c,f;r[o][l]===void 0&&(r[o][l]=0,a[o][l]=0),(e.w.config.chart.stacked&&!t.comboCharts||e.w.config.chart.stacked&&t.comboCharts&&(!e.w.config.chart.stackOnlyBar||((h=e.w.config.series)===null||h===void 0||(u=h[s])===null||u===void 0?void 0:u.type)==="bar"||((c=e.w.config.series)===null||c===void 0||(f=c[s])===null||f===void 0?void 0:f.type)==="column"))&&t.series[s][l]!==null&&q.isNumber(t.series[s][l])&&(t.series[s][l]>0?r[o][l]+=parseFloat(t.series[s][l])+1e-4:a[o][l]+=parseFloat(t.series[s][l]))}})}),Object.entries(r).forEach(function(o){var s=kc(o,1)[0];r[s].forEach(function(l,h){t.maxY=Math.max(t.maxY,r[s][h]),t.minY=Math.min(t.minY,a[s][h])})})}}}]),i}(),Zs=function(){function i(e,t){ae(this,i),this.ctx=e,this.elgrid=t,this.w=e.w;var n=this.w;this.xaxisFontSize=n.config.xaxis.labels.style.fontSize,this.axisFontFamily=n.config.xaxis.labels.style.fontFamily,this.xaxisForeColors=n.config.xaxis.labels.style.colors,this.isCategoryBarHorizontal=n.config.chart.type==="bar"&&n.config.plotOptions.bar.horizontal,this.xAxisoffX=n.config.xaxis.position==="bottom"?n.globals.gridHeight:0,this.drawnLabels=[],this.axesUtils=new Mn(e)}return oe(i,[{key:"drawYaxis",value:function(e){var t=this.w,n=new Q(this.ctx),r=t.config.yaxis[e].labels.style,a=r.fontSize,o=r.fontFamily,s=r.fontWeight,l=n.group({class:"apexcharts-yaxis",rel:e,transform:"translate(".concat(t.globals.translateYAxisX[e],", 0)")});if(this.axesUtils.isYAxisHidden(e))return l;var h=n.group({class:"apexcharts-yaxis-texts-g"});l.add(h);var u=t.globals.yAxisScale[e].result.length-1,c=t.globals.gridHeight/u,f=t.globals.yLabelFormatters[e],d=this.axesUtils.checkForReversedLabels(e,t.globals.yAxisScale[e].result.slice());if(t.config.yaxis[e].labels.show){var p=t.globals.translateY+t.config.yaxis[e].labels.offsetY;t.globals.isBarHorizontal?p=0:t.config.chart.type==="heatmap"&&(p-=c/2),p+=parseInt(a,10)/3;for(var g=u;g>=0;g--){var m=f(d[g],g,t),v=t.config.yaxis[e].labels.padding;t.config.yaxis[e].opposite&&t.config.yaxis.length!==0&&(v*=-1);var y=this.getTextAnchor(t.config.yaxis[e].labels.align,t.config.yaxis[e].opposite),b=this.axesUtils.getYAxisForeColor(r.colors,e),x=Array.isArray(b)?b[g]:b,w=q.listToArray(t.globals.dom.baseEl.querySelectorAll(".apexcharts-yaxis[rel='".concat(e,"'] .apexcharts-yaxis-label tspan"))).map(function(S){return S.textContent}),k=n.drawText({x:v,y:p,text:w.includes(m)&&!t.config.yaxis[e].labels.showDuplicates?"":m,textAnchor:y,fontSize:a,fontFamily:o,fontWeight:s,maxWidth:t.config.yaxis[e].labels.maxWidth,foreColor:x,isPlainText:!1,cssClass:"apexcharts-yaxis-label ".concat(r.cssClass)});h.add(k),this.addTooltip(k,m),t.config.yaxis[e].labels.rotate!==0&&this.rotateLabel(n,k,firstLabel,t.config.yaxis[e].labels.rotate),p+=c}}return this.addYAxisTitle(n,l,e),this.addAxisBorder(n,l,e,u,c),l}},{key:"getTextAnchor",value:function(e,t){return e==="left"?"start":e==="center"?"middle":e==="right"?"end":t?"start":"end"}},{key:"addTooltip",value:function(e,t){var n=document.createElementNS(this.w.globals.SVGNS,"title");n.textContent=Array.isArray(t)?t.join(" "):t,e.node.appendChild(n)}},{key:"rotateLabel",value:function(e,t,n,r){var a=e.rotateAroundCenter(n.node),o=e.rotateAroundCenter(t.node);t.node.setAttribute("transform","rotate(".concat(r," ").concat(a.x," ").concat(o.y,")"))}},{key:"addYAxisTitle",value:function(e,t,n){var r=this.w;if(r.config.yaxis[n].title.text!==void 0){var a=e.group({class:"apexcharts-yaxis-title"}),o=r.config.yaxis[n].opposite?r.globals.translateYAxisX[n]:0,s=e.drawText({x:o,y:r.globals.gridHeight/2+r.globals.translateY+r.config.yaxis[n].title.offsetY,text:r.config.yaxis[n].title.text,textAnchor:"end",foreColor:r.config.yaxis[n].title.style.color,fontSize:r.config.yaxis[n].title.style.fontSize,fontWeight:r.config.yaxis[n].title.style.fontWeight,fontFamily:r.config.yaxis[n].title.style.fontFamily,cssClass:"apexcharts-yaxis-title-text ".concat(r.config.yaxis[n].title.style.cssClass)});a.add(s),t.add(a)}}},{key:"addAxisBorder",value:function(e,t,n,r,a){var o=this.w,s=o.config.yaxis[n].axisBorder,l=31+s.offsetX;if(o.config.yaxis[n].opposite&&(l=-31-s.offsetX),s.show){var h=e.drawLine(l,o.globals.translateY+s.offsetY-2,l,o.globals.gridHeight+o.globals.translateY+s.offsetY+2,s.color,0,s.width);t.add(h)}o.config.yaxis[n].axisTicks.show&&this.axesUtils.drawYAxisTicks(l,r,s,o.config.yaxis[n].axisTicks,n,a,t)}},{key:"drawYaxisInversed",value:function(e){var t=this.w,n=new Q(this.ctx),r=n.group({class:"apexcharts-xaxis apexcharts-yaxis-inversed"}),a=n.group({class:"apexcharts-xaxis-texts-g",transform:"translate(".concat(t.globals.translateXAxisX,", ").concat(t.globals.translateXAxisY,")")});r.add(a);var o=t.globals.yAxisScale[e].result.length-1,s=t.globals.gridWidth/o+.1,l=s+t.config.xaxis.labels.offsetX,h=t.globals.xLabelFormatter,u=this.axesUtils.checkForReversedLabels(e,t.globals.yAxisScale[e].result.slice()),c=t.globals.timescaleLabels;if(c.length>0&&(this.xaxisLabels=c.slice(),o=(u=c.slice()).length),t.config.xaxis.labels.show)for(var f=c.length?0:o;c.length?f<c.length:f>=0;c.length?f++:f--){var d=h(u[f],f,t),p=t.globals.gridWidth+t.globals.padHorizontal-(l-s+t.config.xaxis.labels.offsetX);if(c.length){var g=this.axesUtils.getLabel(u,c,p,f,this.drawnLabels,this.xaxisFontSize);p=g.x,d=g.text,this.drawnLabels.push(g.text),f===0&&t.globals.skipFirstTimelinelabel&&(d=""),f===u.length-1&&t.globals.skipLastTimelinelabel&&(d="")}var m=n.drawText({x:p,y:this.xAxisoffX+t.config.xaxis.labels.offsetY+30-(t.config.xaxis.position==="top"?t.globals.xAxisHeight+t.config.xaxis.axisTicks.height-2:0),text:d,textAnchor:"middle",foreColor:Array.isArray(this.xaxisForeColors)?this.xaxisForeColors[e]:this.xaxisForeColors,fontSize:this.xaxisFontSize,fontFamily:this.xaxisFontFamily,fontWeight:t.config.xaxis.labels.style.fontWeight,isPlainText:!1,cssClass:"apexcharts-xaxis-label ".concat(t.config.xaxis.labels.style.cssClass)});a.add(m),m.tspan(d),this.addTooltip(m,d),l+=s}return this.inversedYAxisTitleText(r),this.inversedYAxisBorder(r),r}},{key:"inversedYAxisBorder",value:function(e){var t=this.w,n=new Q(this.ctx),r=t.config.xaxis.axisBorder;if(r.show){var a=0;t.config.chart.type==="bar"&&t.globals.isXNumeric&&(a-=15);var o=n.drawLine(t.globals.padHorizontal+a+r.offsetX,this.xAxisoffX,t.globals.gridWidth,this.xAxisoffX,r.color,0,r.height);this.elgrid&&this.elgrid.elGridBorders&&t.config.grid.show?this.elgrid.elGridBorders.add(o):e.add(o)}}},{key:"inversedYAxisTitleText",value:function(e){var t=this.w,n=new Q(this.ctx);if(t.config.xaxis.title.text!==void 0){var r=n.group({class:"apexcharts-xaxis-title apexcharts-yaxis-title-inversed"}),a=n.drawText({x:t.globals.gridWidth/2+t.config.xaxis.title.offsetX,y:this.xAxisoffX+parseFloat(this.xaxisFontSize)+parseFloat(t.config.xaxis.title.style.fontSize)+t.config.xaxis.title.offsetY+20,text:t.config.xaxis.title.text,textAnchor:"middle",fontSize:t.config.xaxis.title.style.fontSize,fontFamily:t.config.xaxis.title.style.fontFamily,fontWeight:t.config.xaxis.title.style.fontWeight,foreColor:t.config.xaxis.title.style.color,cssClass:"apexcharts-xaxis-title-text ".concat(t.config.xaxis.title.style.cssClass)});r.add(a),e.add(r)}}},{key:"yAxisTitleRotate",value:function(e,t){var n=this.w,r=new Q(this.ctx),a=n.globals.dom.baseEl.querySelector(".apexcharts-yaxis[rel='".concat(e,"'] .apexcharts-yaxis-texts-g")),o=a?a.getBoundingClientRect():{width:0,height:0},s=n.globals.dom.baseEl.querySelector(".apexcharts-yaxis[rel='".concat(e,"'] .apexcharts-yaxis-title text")),l=s?s.getBoundingClientRect():{width:0,height:0};if(s){var h=this.xPaddingForYAxisTitle(e,o,l,t);s.setAttribute("x",h.xPos-(t?10:0));var u=r.rotateAroundCenter(s);s.setAttribute("transform","rotate(".concat(t?-1*n.config.yaxis[e].title.rotate:n.config.yaxis[e].title.rotate," ").concat(u.x," ").concat(u.y,")"))}}},{key:"xPaddingForYAxisTitle",value:function(e,t,n,r){var a=this.w,o=0,s=10;return a.config.yaxis[e].title.text===void 0||e<0?{xPos:o,padd:0}:(r?o=t.width+a.config.yaxis[e].title.offsetX+n.width/2+s/2:(o=-1*t.width+a.config.yaxis[e].title.offsetX+s/2+n.width/2,a.globals.isBarHorizontal&&(s=25,o=-1*t.width-a.config.yaxis[e].title.offsetX-s)),{xPos:o,padd:s})}},{key:"setYAxisXPosition",value:function(e,t){var n=this.w,r=0,a=0,o=18,s=1;n.config.yaxis.length>1&&(this.multipleYs=!0),n.config.yaxis.forEach(function(l,h){var u=n.globals.ignoreYAxisIndexes.includes(h)||!l.show||l.floating||e[h].width===0,c=e[h].width+t[h].width;l.opposite?n.globals.isBarHorizontal?(a=n.globals.gridWidth+n.globals.translateX-1,n.globals.translateYAxisX[h]=a-l.labels.offsetX):(a=n.globals.gridWidth+n.globals.translateX+s,u||(s+=c+20),n.globals.translateYAxisX[h]=a-l.labels.offsetX+20):(r=n.globals.translateX-o,u||(o+=c+20),n.globals.translateYAxisX[h]=r+l.labels.offsetX)})}},{key:"setYAxisTextAlignments",value:function(){var e=this.w;q.listToArray(e.globals.dom.baseEl.getElementsByClassName("apexcharts-yaxis")).forEach(function(t,n){var r=e.config.yaxis[n];if(r&&!r.floating&&r.labels.align!==void 0){var a=e.globals.dom.baseEl.querySelector(".apexcharts-yaxis[rel='".concat(n,"'] .apexcharts-yaxis-texts-g")),o=q.listToArray(e.globals.dom.baseEl.querySelectorAll(".apexcharts-yaxis[rel='".concat(n,"'] .apexcharts-yaxis-label"))),s=a.getBoundingClientRect();o.forEach(function(l){l.setAttribute("text-anchor",r.labels.align)}),r.labels.align!=="left"||r.opposite?r.labels.align==="center"?a.setAttribute("transform","translate(".concat(s.width/2*(r.opposite?1:-1),", 0)")):r.labels.align==="right"&&r.opposite&&a.setAttribute("transform","translate(".concat(s.width,", 0)")):a.setAttribute("transform","translate(-".concat(s.width,", 0)"))}})}}]),i}(),Ud=function(){function i(e){ae(this,i),this.ctx=e,this.w=e.w,this.documentEvent=q.bind(this.documentEvent,this)}return oe(i,[{key:"addEventListener",value:function(e,t){var n=this.w;n.globals.events.hasOwnProperty(e)?n.globals.events[e].push(t):n.globals.events[e]=[t]}},{key:"removeEventListener",value:function(e,t){var n=this.w;if(n.globals.events.hasOwnProperty(e)){var r=n.globals.events[e].indexOf(t);r!==-1&&n.globals.events[e].splice(r,1)}}},{key:"fireEvent",value:function(e,t){var n=this.w;if(n.globals.events.hasOwnProperty(e)){t&&t.length||(t=[]);for(var r=n.globals.events[e],a=r.length,o=0;o<a;o++)r[o].apply(null,t)}}},{key:"setupEventHandlers",value:function(){var e=this,t=this.w,n=this.ctx,r=t.globals.dom.baseEl.querySelector(t.globals.chartClass);this.ctx.eventList.forEach(function(a){r.addEventListener(a,function(o){var s=o.target.getAttribute("i")===null&&t.globals.capturedSeriesIndex!==-1?t.globals.capturedSeriesIndex:o.target.getAttribute("i"),l=o.target.getAttribute("j")===null&&t.globals.capturedDataPointIndex!==-1?t.globals.capturedDataPointIndex:o.target.getAttribute("j"),h=Object.assign({},t,{seriesIndex:t.globals.axisCharts?s:0,dataPointIndex:l});o.type==="mousemove"||o.type==="touchmove"?typeof t.config.chart.events.mouseMove=="function"&&t.config.chart.events.mouseMove(o,n,h):o.type==="mouseleave"||o.type==="touchleave"?typeof t.config.chart.events.mouseLeave=="function"&&t.config.chart.events.mouseLeave(o,n,h):(o.type==="mouseup"&&o.which===1||o.type==="touchend")&&(typeof t.config.chart.events.click=="function"&&t.config.chart.events.click(o,n,h),n.ctx.events.fireEvent("click",[o,n,h]))},{capture:!1,passive:!0})}),this.ctx.eventList.forEach(function(a){t.globals.dom.baseEl.addEventListener(a,e.documentEvent,{passive:!0})}),this.ctx.core.setupBrushHandler()}},{key:"documentEvent",value:function(e){var t=this.w,n=e.target.className;if(e.type==="click"){var r=t.globals.dom.baseEl.querySelector(".apexcharts-menu");r&&r.classList.contains("apexcharts-menu-open")&&n!=="apexcharts-menu-icon"&&r.classList.remove("apexcharts-menu-open")}t.globals.clientX=e.type==="touchmove"?e.touches[0].clientX:e.clientX,t.globals.clientY=e.type==="touchmove"?e.touches[0].clientY:e.clientY}}]),i}(),Zd=function(){function i(e){ae(this,i),this.ctx=e,this.w=e.w}return oe(i,[{key:"setCurrentLocaleValues",value:function(e){var t=this.w.config.chart.locales;window.Apex.chart&&window.Apex.chart.locales&&window.Apex.chart.locales.length>0&&(t=this.w.config.chart.locales.concat(window.Apex.chart.locales));var n=t.filter(function(a){return a.name===e})[0];if(!n)throw new Error("Wrong locale name provided. Please make sure you set the correct locale name in options");var r=q.extend(Kc,n);this.w.globals.locale=r.options}}]),i}(),Kd=function(){function i(e){ae(this,i),this.ctx=e,this.w=e.w}return oe(i,[{key:"drawAxis",value:function(e,t){var n,r,a=this,o=this.w.globals,s=this.w.config,l=new lr(this.ctx,t),h=new Zs(this.ctx,t);o.axisCharts&&e!=="radar"&&(o.isBarHorizontal?(r=h.drawYaxisInversed(0),n=l.drawXaxisInversed(0),o.dom.elGraphical.add(n),o.dom.elGraphical.add(r)):(n=l.drawXaxis(),o.dom.elGraphical.add(n),s.yaxis.map(function(u,c){if(o.ignoreYAxisIndexes.indexOf(c)===-1&&(r=h.drawYaxis(c),o.dom.Paper.add(r),a.w.config.grid.position==="back")){var f=o.dom.Paper.children()[1];f.remove(),o.dom.Paper.add(f)}})))}}]),i}(),Vo=function(){function i(e){ae(this,i),this.ctx=e,this.w=e.w}return oe(i,[{key:"drawXCrosshairs",value:function(){var e=this.w,t=new Q(this.ctx),n=new ut(this.ctx),r=e.config.xaxis.crosshairs.fill.gradient,a=e.config.xaxis.crosshairs.dropShadow,o=e.config.xaxis.crosshairs.fill.type,s=r.colorFrom,l=r.colorTo,h=r.opacityFrom,u=r.opacityTo,c=r.stops,f=a.enabled,d=a.left,p=a.top,g=a.blur,m=a.color,v=a.opacity,y=e.config.xaxis.crosshairs.fill.color;if(e.config.xaxis.crosshairs.show){o==="gradient"&&(y=t.drawGradient("vertical",s,l,h,u,null,c,null));var b=t.drawRect();e.config.xaxis.crosshairs.width===1&&(b=t.drawLine());var x=e.globals.gridHeight;(!q.isNumber(x)||x<0)&&(x=0);var w=e.config.xaxis.crosshairs.width;(!q.isNumber(w)||w<0)&&(w=0),b.attr({class:"apexcharts-xcrosshairs",x:0,y:0,y2:x,width:w,height:x,fill:y,filter:"none","fill-opacity":e.config.xaxis.crosshairs.opacity,stroke:e.config.xaxis.crosshairs.stroke.color,"stroke-width":e.config.xaxis.crosshairs.stroke.width,"stroke-dasharray":e.config.xaxis.crosshairs.stroke.dashArray}),f&&(b=n.dropShadow(b,{left:d,top:p,blur:g,color:m,opacity:v})),e.globals.dom.elGraphical.add(b)}}},{key:"drawYCrosshairs",value:function(){var e=this.w,t=new Q(this.ctx),n=e.config.yaxis[0].crosshairs,r=e.globals.barPadForNumericAxis;if(e.config.yaxis[0].crosshairs.show){var a=t.drawLine(-r,0,e.globals.gridWidth+r,0,n.stroke.color,n.stroke.dashArray,n.stroke.width);a.attr({class:"apexcharts-ycrosshairs"}),e.globals.dom.elGraphical.add(a)}var o=t.drawLine(-r,0,e.globals.gridWidth+r,0,n.stroke.color,0,0);o.attr({class:"apexcharts-ycrosshairs-hidden"}),e.globals.dom.elGraphical.add(o)}}]),i}(),Qd=function(){function i(e){ae(this,i),this.ctx=e,this.w=e.w}return oe(i,[{key:"checkResponsiveConfig",value:function(e){var t=this,n=this.w,r=n.config;if(r.responsive.length!==0){var a=r.responsive.slice();a.sort(function(h,u){return h.breakpoint>u.breakpoint?1:u.breakpoint>h.breakpoint?-1:0}).reverse();var o=new sr({}),s=function(){var h=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},u=a[0].breakpoint,c=window.innerWidth>0?window.innerWidth:screen.width;if(c>u){var f=q.clone(n.globals.initialConfig);f.series=q.clone(n.config.series);var d=Je.extendArrayProps(o,f,n);h=q.extend(d,h),h=q.extend(n.config,h),t.overrideResponsiveOptions(h)}else for(var p=0;p<a.length;p++)c<a[p].breakpoint&&(h=Je.extendArrayProps(o,a[p].options,n),h=q.extend(n.config,h),t.overrideResponsiveOptions(h))};if(e){var l=Je.extendArrayProps(o,e,n);l=q.extend(n.config,l),s(l=q.extend(l,e))}else s({})}}},{key:"overrideResponsiveOptions",value:function(e){var t=new sr(e).init({responsiveOverride:!0});this.w.config=t}}]),i}(),Jd=function(){function i(e){ae(this,i),this.ctx=e,this.w=e.w,this.colors=[],this.isColorFn=!1,this.isHeatmapDistributed=this.checkHeatmapDistributed(),this.isBarDistributed=this.checkBarDistributed()}return oe(i,[{key:"checkHeatmapDistributed",value:function(){var e=this.w.config,t=e.chart,n=e.plotOptions;return t.type==="treemap"&&n.treemap&&n.treemap.distributed||t.type==="heatmap"&&n.heatmap&&n.heatmap.distributed}},{key:"checkBarDistributed",value:function(){var e=this.w.config,t=e.chart,n=e.plotOptions;return n.bar&&n.bar.distributed&&(t.type==="bar"||t.type==="rangeBar")}},{key:"init",value:function(){this.setDefaultColors()}},{key:"setDefaultColors",value:function(){var e=this.w,t=new q;e.globals.dom.elWrap.classList.add("apexcharts-theme-".concat(e.config.theme.mode||"light"));var n=nt(e.config.colors||e.config.fill.colors||[]);e.globals.colors=this.getColors(n),this.applySeriesColors(e.globals.seriesColors,e.globals.colors),e.config.theme.monochrome.enabled&&(e.globals.colors=this.getMonochromeColors(e.config.theme.monochrome,e.globals.series,t));var r=e.globals.colors.slice();this.pushExtraColors(e.globals.colors),this.applyColorTypes(["fill","stroke"],r),this.applyDataLabelsColors(r),this.applyRadarPolygonsColors(),this.applyMarkersColors(r)}},{key:"getColors",value:function(e){var t=this,n=this.w;return e&&e.length!==0?Array.isArray(e)&&e.length>0&&typeof e[0]=="function"?(this.isColorFn=!0,n.config.series.map(function(r,a){var o=e[a]||e[0];return typeof o=="function"?o({value:n.globals.axisCharts?n.globals.series[a][0]||0:n.globals.series[a],seriesIndex:a,dataPointIndex:a,w:t.w}):o})):e:this.predefined()}},{key:"applySeriesColors",value:function(e,t){e.forEach(function(n,r){n&&(t[r]=n)})}},{key:"getMonochromeColors",value:function(e,t,n){var r=e.color,a=e.shadeIntensity,o=e.shadeTo,s=this.isBarDistributed||this.isHeatmapDistributed?t[0].length*t.length:t.length,l=1/(s/a),h=0;return Array.from({length:s},function(){var u=o==="dark"?n.shadeColor(-1*h,r):n.shadeColor(h,r);return h+=l,u})}},{key:"applyColorTypes",value:function(e,t){var n=this,r=this.w;e.forEach(function(a){r.globals[a].colors=r.config[a].colors===void 0?n.isColorFn?r.config.colors:t:r.config[a].colors.slice(),n.pushExtraColors(r.globals[a].colors)})}},{key:"applyDataLabelsColors",value:function(e){var t=this.w;t.globals.dataLabels.style.colors=t.config.dataLabels.style.colors===void 0?e:t.config.dataLabels.style.colors.slice(),this.pushExtraColors(t.globals.dataLabels.style.colors,50)}},{key:"applyRadarPolygonsColors",value:function(){var e=this.w;e.globals.radarPolygons.fill.colors=e.config.plotOptions.radar.polygons.fill.colors===void 0?[e.config.theme.mode==="dark"?"#343A3F":"none"]:e.config.plotOptions.radar.polygons.fill.colors.slice(),this.pushExtraColors(e.globals.radarPolygons.fill.colors,20)}},{key:"applyMarkersColors",value:function(e){var t=this.w;t.globals.markers.colors=t.config.markers.colors===void 0?e:t.config.markers.colors.slice(),this.pushExtraColors(t.globals.markers.colors)}},{key:"pushExtraColors",value:function(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,r=this.w,a=t||r.globals.series.length;if(n===null&&(n=this.isBarDistributed||this.isHeatmapDistributed||r.config.chart.type==="heatmap"&&r.config.plotOptions.heatmap&&r.config.plotOptions.heatmap.colorScale.inverse),n&&r.globals.series.length&&(a=r.globals.series[r.globals.maxValsInArrayIndex].length*r.globals.series.length),e.length<a)for(var o=a-e.length,s=0;s<o;s++)e.push(e[s])}},{key:"updateThemeOptions",value:function(e){e.chart=e.chart||{},e.tooltip=e.tooltip||{};var t=e.theme.mode,n=t==="dark"?"palette4":t==="light"?"palette1":e.theme.palette||"palette1",r=t==="dark"?"#f6f7f8":t==="light"?"#373d3f":e.chart.foreColor||"#373d3f";return e.tooltip.theme=t||"light",e.chart.foreColor=r,e.theme.palette=n,e}},{key:"predefined",value:function(){var e={palette1:["#008FFB","#00E396","#FEB019","#FF4560","#775DD0"],palette2:["#3f51b5","#03a9f4","#4caf50","#f9ce1d","#FF9800"],palette3:["#33b2df","#546E7A","#d4526e","#13d8aa","#A5978B"],palette4:["#4ecdc4","#c7f464","#81D4FA","#fd6a6a","#546E7A"],palette5:["#2b908f","#f9a3a4","#90ee7e","#fa4443","#69d2e7"],palette6:["#449DD1","#F86624","#EA3546","#662E9B","#C5D86D"],palette7:["#D7263D","#1B998B","#2E294E","#F46036","#E2C044"],palette8:["#662E9B","#F86624","#F9C80E","#EA3546","#43BCCD"],palette9:["#5C4742","#A5978B","#8D5B4C","#5A2A27","#C4BBAF"],palette10:["#A300D6","#7D02EB","#5653FE","#2983FF","#00B1F2"],default:["#008FFB","#00E396","#FEB019","#FF4560","#775DD0"]};return e[this.w.config.theme.palette]||e.default}}]),i}(),eg=function(){function i(e){ae(this,i),this.ctx=e,this.w=e.w}return oe(i,[{key:"draw",value:function(){this.drawTitleSubtitle("title"),this.drawTitleSubtitle("subtitle")}},{key:"drawTitleSubtitle",value:function(e){var t=this.w,n=e==="title"?t.config.title:t.config.subtitle,r=t.globals.svgWidth/2,a=n.offsetY,o="middle";if(n.align==="left"?(r=10,o="start"):n.align==="right"&&(r=t.globals.svgWidth-10,o="end"),r+=n.offsetX,a=a+parseInt(n.style.fontSize,10)+n.margin/2,n.text!==void 0){var s=new Q(this.ctx).drawText({x:r,y:a,text:n.text,textAnchor:o,fontSize:n.style.fontSize,fontFamily:n.style.fontFamily,fontWeight:n.style.fontWeight,foreColor:n.style.color,opacity:1});s.node.setAttribute("class","apexcharts-".concat(e,"-text")),t.globals.dom.Paper.add(s)}}}]),i}(),tg=function(){function i(e){ae(this,i),this.w=e.w,this.dCtx=e}return oe(i,[{key:"getTitleSubtitleCoords",value:function(e){var t=this.w,n=0,r=0,a=e==="title"?t.config.title.floating:t.config.subtitle.floating,o=t.globals.dom.baseEl.querySelector(".apexcharts-".concat(e,"-text"));if(o!==null&&!a){var s=o.getBoundingClientRect();n=s.width,r=t.globals.axisCharts?s.height+5:s.height}return{width:n,height:r}}},{key:"getLegendsRect",value:function(){var e=this.w,t=e.globals.dom.elLegendWrap;e.config.legend.height||e.config.legend.position!=="top"&&e.config.legend.position!=="bottom"||(t.style.maxHeight=e.globals.svgHeight/2+"px");var n=Object.assign({},q.getBoundingClientRect(t));return t!==null&&!e.config.legend.floating&&e.config.legend.show?this.dCtx.lgRect={x:n.x,y:n.y,height:n.height,width:n.height===0?0:n.width}:this.dCtx.lgRect={x:0,y:0,height:0,width:0},e.config.legend.position!=="left"&&e.config.legend.position!=="right"||1.5*this.dCtx.lgRect.width>e.globals.svgWidth&&(this.dCtx.lgRect.width=e.globals.svgWidth/1.5),this.dCtx.lgRect}},{key:"getDatalabelsRect",value:function(){var e=this,t=this.w,n=[];t.config.series.forEach(function(l,h){l.data.forEach(function(u,c){var f;f=t.globals.series[h][c],r=t.config.dataLabels.formatter(f,{ctx:e.dCtx.ctx,seriesIndex:h,dataPointIndex:c,w:t}),n.push(r)})});var r=q.getLargestStringFromArr(n),a=new Q(this.dCtx.ctx),o=t.config.dataLabels.style,s=a.getTextRects(r,parseInt(o.fontSize),o.fontFamily);return{width:1.05*s.width,height:s.height}}},{key:"getLargestStringFromMultiArr",value:function(e,t){var n=e;if(this.w.globals.isMultiLineX){var r=t.map(function(o,s){return Array.isArray(o)?o.length:1}),a=Math.max.apply(Math,nt(r));n=t[r.indexOf(a)]}return n}}]),i}(),ng=function(){function i(e){ae(this,i),this.w=e.w,this.dCtx=e}return oe(i,[{key:"getxAxisLabelsCoords",value:function(){var e,t=this.w,n=t.globals.labels.slice();if(t.config.xaxis.convertedCatToNumeric&&n.length===0&&(n=t.globals.categoryLabels),t.globals.timescaleLabels.length>0){var r=this.getxAxisTimeScaleLabelsCoords();e={width:r.width,height:r.height},t.globals.rotateXLabels=!1}else{this.dCtx.lgWidthForSideLegends=t.config.legend.position!=="left"&&t.config.legend.position!=="right"||t.config.legend.floating?0:this.dCtx.lgRect.width;var a=t.globals.xLabelFormatter,o=q.getLargestStringFromArr(n),s=this.dCtx.dimHelpers.getLargestStringFromMultiArr(o,n);t.globals.isBarHorizontal&&(s=o=t.globals.yAxisScale[0].result.reduce(function(p,g){return p.length>g.length?p:g},0));var l=new Sr(this.dCtx.ctx),h=o;o=l.xLabelFormat(a,o,h,{i:void 0,dateFormatter:new lt(this.dCtx.ctx).formatDate,w:t}),s=l.xLabelFormat(a,s,h,{i:void 0,dateFormatter:new lt(this.dCtx.ctx).formatDate,w:t}),(t.config.xaxis.convertedCatToNumeric&&o===void 0||String(o).trim()==="")&&(s=o="1");var u=new Q(this.dCtx.ctx),c=u.getTextRects(o,t.config.xaxis.labels.style.fontSize),f=c;if(o!==s&&(f=u.getTextRects(s,t.config.xaxis.labels.style.fontSize)),(e={width:c.width>=f.width?c.width:f.width,height:c.height>=f.height?c.height:f.height}).width*n.length>t.globals.svgWidth-this.dCtx.lgWidthForSideLegends-this.dCtx.yAxisWidth-this.dCtx.gridPad.left-this.dCtx.gridPad.right&&t.config.xaxis.labels.rotate!==0||t.config.xaxis.labels.rotateAlways){if(!t.globals.isBarHorizontal){t.globals.rotateXLabels=!0;var d=function(p){return u.getTextRects(p,t.config.xaxis.labels.style.fontSize,t.config.xaxis.labels.style.fontFamily,"rotate(".concat(t.config.xaxis.labels.rotate," 0 0)"),!1)};c=d(o),o!==s&&(f=d(s)),e.height=(c.height>f.height?c.height:f.height)/1.5,e.width=c.width>f.width?c.width:f.width}}else t.globals.rotateXLabels=!1}return t.config.xaxis.labels.show||(e={width:0,height:0}),{width:e.width,height:e.height}}},{key:"getxAxisGroupLabelsCoords",value:function(){var e,t=this.w;if(!t.globals.hasXaxisGroups)return{width:0,height:0};var n,r=((e=t.config.xaxis.group.style)===null||e===void 0?void 0:e.fontSize)||t.config.xaxis.labels.style.fontSize,a=t.globals.groups.map(function(c){return c.title}),o=q.getLargestStringFromArr(a),s=this.dCtx.dimHelpers.getLargestStringFromMultiArr(o,a),l=new Q(this.dCtx.ctx),h=l.getTextRects(o,r),u=h;return o!==s&&(u=l.getTextRects(s,r)),n={width:h.width>=u.width?h.width:u.width,height:h.height>=u.height?h.height:u.height},t.config.xaxis.labels.show||(n={width:0,height:0}),{width:n.width,height:n.height}}},{key:"getxAxisTitleCoords",value:function(){var e=this.w,t=0,n=0;if(e.config.xaxis.title.text!==void 0){var r=new Q(this.dCtx.ctx).getTextRects(e.config.xaxis.title.text,e.config.xaxis.title.style.fontSize);t=r.width,n=r.height}return{width:t,height:n}}},{key:"getxAxisTimeScaleLabelsCoords",value:function(){var e,t=this.w;this.dCtx.timescaleLabels=t.globals.timescaleLabels.slice();var n=this.dCtx.timescaleLabels.map(function(a){return a.value}),r=n.reduce(function(a,o){return a===void 0?(console.error("You have possibly supplied invalid Date format. Please supply a valid JavaScript Date"),0):a.length>o.length?a:o},0);return 1.05*(e=new Q(this.dCtx.ctx).getTextRects(r,t.config.xaxis.labels.style.fontSize)).width*n.length>t.globals.gridWidth&&t.config.xaxis.labels.rotate!==0&&(t.globals.overlappingXLabels=!0),e}},{key:"additionalPaddingXLabels",value:function(e){var t=this,n=this.w,r=n.globals,a=n.config,o=a.xaxis.type,s=e.width;r.skipLastTimelinelabel=!1,r.skipFirstTimelinelabel=!1;var l=n.config.yaxis[0].opposite&&n.globals.isBarHorizontal,h=function(u,c){a.yaxis.length>1&&function(f){return r.collapsedSeriesIndices.indexOf(f)!==-1}(c)||function(f){if(t.dCtx.timescaleLabels&&t.dCtx.timescaleLabels.length){var d=t.dCtx.timescaleLabels[0],p=t.dCtx.timescaleLabels[t.dCtx.timescaleLabels.length-1].position+s/1.75-t.dCtx.yAxisWidthRight,g=d.position-s/1.75+t.dCtx.yAxisWidthLeft,m=n.config.legend.position==="right"&&t.dCtx.lgRect.width>0?t.dCtx.lgRect.width:0;p>r.svgWidth-r.translateX-m&&(r.skipLastTimelinelabel=!0),g<-(f.show&&!f.floating||a.chart.type!=="bar"&&a.chart.type!=="candlestick"&&a.chart.type!=="rangeBar"&&a.chart.type!=="boxPlot"?10:s/1.75)&&(r.skipFirstTimelinelabel=!0)}else o==="datetime"?t.dCtx.gridPad.right<s&&!r.rotateXLabels&&(r.skipLastTimelinelabel=!0):o!=="datetime"&&t.dCtx.gridPad.right<s/2-t.dCtx.yAxisWidthRight&&!r.rotateXLabels&&!n.config.xaxis.labels.trim&&(t.dCtx.xPadRight=s/2+1)}(u)};a.yaxis.forEach(function(u,c){l?(t.dCtx.gridPad.left<s&&(t.dCtx.xPadLeft=s/2+1),t.dCtx.xPadRight=s/2+1):h(u,c)})}}]),i}(),ig=function(){function i(e){ae(this,i),this.w=e.w,this.dCtx=e}return oe(i,[{key:"getyAxisLabelsCoords",value:function(){var e=this,t=this.w,n=[],r=10,a=new Mn(this.dCtx.ctx);return t.config.yaxis.map(function(o,s){var l={seriesIndex:s,dataPointIndex:-1,w:t},h=t.globals.yAxisScale[s],u=0;if(!a.isYAxisHidden(s)&&o.labels.show&&o.labels.minWidth!==void 0&&(u=o.labels.minWidth),!a.isYAxisHidden(s)&&o.labels.show&&h.result.length){var c=t.globals.yLabelFormatters[s],f=h.niceMin===Number.MIN_VALUE?0:h.niceMin,d=h.result.reduce(function(x,w){var k,S;return((k=String(c(x,l)))===null||k===void 0?void 0:k.length)>((S=String(c(w,l)))===null||S===void 0?void 0:S.length)?x:w},f),p=d=c(d,l);if(d!==void 0&&d.length!==0||(d=h.niceMax),t.globals.isBarHorizontal){r=0;var g=t.globals.labels.slice();d=q.getLargestStringFromArr(g),d=c(d,{seriesIndex:s,dataPointIndex:-1,w:t}),p=e.dCtx.dimHelpers.getLargestStringFromMultiArr(d,g)}var m=new Q(e.dCtx.ctx),v="rotate(".concat(o.labels.rotate," 0 0)"),y=m.getTextRects(d,o.labels.style.fontSize,o.labels.style.fontFamily,v,!1),b=y;d!==p&&(b=m.getTextRects(p,o.labels.style.fontSize,o.labels.style.fontFamily,v,!1)),n.push({width:(u>b.width||u>y.width?u:b.width>y.width?b.width:y.width)+r,height:b.height>y.height?b.height:y.height})}else n.push({width:0,height:0})}),n}},{key:"getyAxisTitleCoords",value:function(){var e=this,t=this.w,n=[];return t.config.yaxis.map(function(r,a){if(r.show&&r.title.text!==void 0){var o=new Q(e.dCtx.ctx),s="rotate(".concat(r.title.rotate," 0 0)"),l=o.getTextRects(r.title.text,r.title.style.fontSize,r.title.style.fontFamily,s,!1);n.push({width:l.width,height:l.height})}else n.push({width:0,height:0})}),n}},{key:"getTotalYAxisWidth",value:function(){var e=this.w,t=0,n=0,r=0,a=e.globals.yAxisScale.length>1?10:0,o=new Mn(this.dCtx.ctx),s=function(l,h){var u=e.config.yaxis[h].floating,c=0;l.width>0&&!u?(c=l.width+a,function(f){return e.globals.ignoreYAxisIndexes.indexOf(f)>-1}(h)&&(c=c-l.width-a)):c=u||o.isYAxisHidden(h)?0:5,e.config.yaxis[h].opposite?r+=c:n+=c,t+=c};return e.globals.yLabelsCoords.map(function(l,h){s(l,h)}),e.globals.yTitleCoords.map(function(l,h){s(l,h)}),e.globals.isBarHorizontal&&!e.config.yaxis[0].floating&&(t=e.globals.yLabelsCoords[0].width+e.globals.yTitleCoords[0].width+15),this.dCtx.yAxisWidthLeft=n,this.dCtx.yAxisWidthRight=r,t}}]),i}(),rg=function(){function i(e){ae(this,i),this.w=e.w,this.dCtx=e}return oe(i,[{key:"gridPadForColumnsInNumericAxis",value:function(e){var t=this.w,n=t.config,r=t.globals;if(r.noData||r.collapsedSeries.length+r.ancillaryCollapsedSeries.length===n.series.length)return 0;var a=function(d){return["bar","rangeBar","candlestick","boxPlot"].includes(d)},o=n.chart.type,s=0,l=a(o)?n.series.length:1;r.comboBarCount>0&&(l=r.comboBarCount),r.collapsedSeries.forEach(function(d){a(d.type)&&(l-=1)}),n.chart.stacked&&(l=1);var h=a(o)||r.comboBarCount>0,u=Math.abs(r.initialMaxX-r.initialMinX);if(h&&r.isXNumeric&&!r.isBarHorizontal&&l>0&&u!==0){u<=3&&(u=r.dataPoints);var c=u/e,f=r.minXDiff&&r.minXDiff/c>0?r.minXDiff/c:0;f>e/2&&(f/=2),(s=f*parseInt(n.plotOptions.bar.columnWidth,10)/100)<1&&(s=1),r.barPadForNumericAxis=s}return s}},{key:"gridPadFortitleSubtitle",value:function(){var e=this,t=this.w,n=t.globals,r=this.dCtx.isSparkline||!n.axisCharts?0:10;["title","subtitle"].forEach(function(s){t.config[s].text!==void 0?r+=t.config[s].margin:r+=e.dCtx.isSparkline||!n.axisCharts?0:5}),!t.config.legend.show||t.config.legend.position!=="bottom"||t.config.legend.floating||n.axisCharts||(r+=10);var a=this.dCtx.dimHelpers.getTitleSubtitleCoords("title"),o=this.dCtx.dimHelpers.getTitleSubtitleCoords("subtitle");n.gridHeight-=a.height+o.height+r,n.translateY+=a.height+o.height+r}},{key:"setGridXPosForDualYAxis",value:function(e,t){var n=this.w,r=new Mn(this.dCtx.ctx);n.config.yaxis.forEach(function(a,o){n.globals.ignoreYAxisIndexes.indexOf(o)!==-1||a.floating||r.isYAxisHidden(o)||(a.opposite&&(n.globals.translateX-=t[o].width+e[o].width+parseInt(a.labels.style.fontSize,10)/1.2+12),n.globals.translateX<2&&(n.globals.translateX=2))})}}]),i}(),la=function(){function i(e){ae(this,i),this.ctx=e,this.w=e.w,this.lgRect={},this.yAxisWidth=0,this.yAxisWidthLeft=0,this.yAxisWidthRight=0,this.xAxisHeight=0,this.isSparkline=this.w.config.chart.sparkline.enabled,this.dimHelpers=new tg(this),this.dimYAxis=new ig(this),this.dimXAxis=new ng(this),this.dimGrid=new rg(this),this.lgWidthForSideLegends=0,this.gridPad=this.w.config.grid.padding,this.xPadRight=0,this.xPadLeft=0}return oe(i,[{key:"plotCoords",value:function(){var e=this,t=this.w,n=t.globals;this.lgRect=this.dimHelpers.getLegendsRect(),this.datalabelsCoords={width:0,height:0};var r=Array.isArray(t.config.stroke.width)?Math.max.apply(Math,nt(t.config.stroke.width)):t.config.stroke.width;this.isSparkline&&((t.config.markers.discrete.length>0||t.config.markers.size>0)&&Object.entries(this.gridPad).forEach(function(o){var s=kc(o,2),l=s[0],h=s[1];e.gridPad[l]=Math.max(h,e.w.globals.markers.largestSize/1.5)}),this.gridPad.top=Math.max(r/2,this.gridPad.top),this.gridPad.bottom=Math.max(r/2,this.gridPad.bottom)),n.axisCharts?this.setDimensionsForAxisCharts():this.setDimensionsForNonAxisCharts(),this.dimGrid.gridPadFortitleSubtitle(),n.gridHeight=n.gridHeight-this.gridPad.top-this.gridPad.bottom,n.gridWidth=n.gridWidth-this.gridPad.left-this.gridPad.right-this.xPadRight-this.xPadLeft;var a=this.dimGrid.gridPadForColumnsInNumericAxis(n.gridWidth);n.gridWidth=n.gridWidth-2*a,n.translateX=n.translateX+this.gridPad.left+this.xPadLeft+(a>0?a:0),n.translateY=n.translateY+this.gridPad.top}},{key:"setDimensionsForAxisCharts",value:function(){var e=this,t=this.w,n=t.globals,r=this.dimYAxis.getyAxisLabelsCoords(),a=this.dimYAxis.getyAxisTitleCoords();n.isSlopeChart&&(this.datalabelsCoords=this.dimHelpers.getDatalabelsRect()),t.globals.yLabelsCoords=[],t.globals.yTitleCoords=[],t.config.yaxis.map(function(d,p){t.globals.yLabelsCoords.push({width:r[p].width,index:p}),t.globals.yTitleCoords.push({width:a[p].width,index:p})}),this.yAxisWidth=this.dimYAxis.getTotalYAxisWidth();var o=this.dimXAxis.getxAxisLabelsCoords(),s=this.dimXAxis.getxAxisGroupLabelsCoords(),l=this.dimXAxis.getxAxisTitleCoords();this.conditionalChecksForAxisCoords(o,l,s),n.translateXAxisY=t.globals.rotateXLabels?this.xAxisHeight/8:-4,n.translateXAxisX=t.globals.rotateXLabels&&t.globals.isXNumeric&&t.config.xaxis.labels.rotate<=-45?-this.xAxisWidth/4:0,t.globals.isBarHorizontal&&(n.rotateXLabels=!1,n.translateXAxisY=parseInt(t.config.xaxis.labels.style.fontSize,10)/1.5*-1),n.translateXAxisY=n.translateXAxisY+t.config.xaxis.labels.offsetY,n.translateXAxisX=n.translateXAxisX+t.config.xaxis.labels.offsetX;var h=this.yAxisWidth,u=this.xAxisHeight;n.xAxisLabelsHeight=this.xAxisHeight-l.height,n.xAxisGroupLabelsHeight=n.xAxisLabelsHeight-o.height,n.xAxisLabelsWidth=this.xAxisWidth,n.xAxisHeight=this.xAxisHeight;var c=10;(t.config.chart.type==="radar"||this.isSparkline)&&(h=0,u=0),this.isSparkline&&(this.lgRect={height:0,width:0}),(this.isSparkline||t.config.chart.type==="treemap")&&(h=0,u=0,c=0),this.isSparkline||t.config.chart.type==="treemap"||this.dimXAxis.additionalPaddingXLabels(o);var f=function(){n.translateX=h+e.datalabelsCoords.width,n.gridHeight=n.svgHeight-e.lgRect.height-u-(e.isSparkline||t.config.chart.type==="treemap"?0:t.globals.rotateXLabels?10:15),n.gridWidth=n.svgWidth-h-2*e.datalabelsCoords.width};switch(t.config.xaxis.position==="top"&&(c=n.xAxisHeight-t.config.xaxis.axisTicks.height-5),t.config.legend.position){case"bottom":n.translateY=c,f();break;case"top":n.translateY=this.lgRect.height+c,f();break;case"left":n.translateY=c,n.translateX=this.lgRect.width+h+this.datalabelsCoords.width,n.gridHeight=n.svgHeight-u-12,n.gridWidth=n.svgWidth-this.lgRect.width-h-2*this.datalabelsCoords.width;break;case"right":n.translateY=c,n.translateX=h+this.datalabelsCoords.width,n.gridHeight=n.svgHeight-u-12,n.gridWidth=n.svgWidth-this.lgRect.width-h-2*this.datalabelsCoords.width-5;break;default:throw new Error("Legend position not supported")}this.dimGrid.setGridXPosForDualYAxis(a,r),new Zs(this.ctx).setYAxisXPosition(r,a)}},{key:"setDimensionsForNonAxisCharts",value:function(){var e=this.w,t=e.globals,n=e.config,r=0;e.config.legend.show&&!e.config.legend.floating&&(r=20);var a=n.chart.type==="pie"||n.chart.type==="polarArea"||n.chart.type==="donut"?"pie":"radialBar",o=n.plotOptions[a].offsetY,s=n.plotOptions[a].offsetX;if(!n.legend.show||n.legend.floating){t.gridHeight=t.svgHeight;var l=t.dom.elWrap.getBoundingClientRect().width;return t.gridWidth=Math.min(l,t.gridHeight),t.translateY=o,void(t.translateX=s+(t.svgWidth-t.gridWidth)/2)}switch(n.legend.position){case"bottom":t.gridHeight=t.svgHeight-this.lgRect.height,t.gridWidth=t.svgWidth,t.translateY=o-10,t.translateX=s+(t.svgWidth-t.gridWidth)/2;break;case"top":t.gridHeight=t.svgHeight-this.lgRect.height,t.gridWidth=t.svgWidth,t.translateY=this.lgRect.height+o+10,t.translateX=s+(t.svgWidth-t.gridWidth)/2;break;case"left":t.gridWidth=t.svgWidth-this.lgRect.width-r,t.gridHeight=n.chart.height!=="auto"?t.svgHeight:t.gridWidth,t.translateY=o,t.translateX=s+this.lgRect.width+r;break;case"right":t.gridWidth=t.svgWidth-this.lgRect.width-r-5,t.gridHeight=n.chart.height!=="auto"?t.svgHeight:t.gridWidth,t.translateY=o,t.translateX=s+10;break;default:throw new Error("Legend position not supported")}}},{key:"conditionalChecksForAxisCoords",value:function(e,t,n){var r=this.w,a=r.globals.hasXaxisGroups?2:1,o=n.height+e.height+t.height,s=r.globals.isMultiLineX?1.2:r.globals.LINE_HEIGHT_RATIO,l=r.globals.rotateXLabels?22:10,h=r.globals.rotateXLabels&&r.config.legend.position==="bottom"?10:0;this.xAxisHeight=o*s+a*l+h,this.xAxisWidth=e.width,this.xAxisHeight-t.height>r.config.xaxis.labels.maxHeight&&(this.xAxisHeight=r.config.xaxis.labels.maxHeight),r.config.xaxis.labels.minHeight&&this.xAxisHeight<r.config.xaxis.labels.minHeight&&(this.xAxisHeight=r.config.xaxis.labels.minHeight),r.config.xaxis.floating&&(this.xAxisHeight=0);var u=0,c=0;r.config.yaxis.forEach(function(f){u+=f.labels.minWidth,c+=f.labels.maxWidth}),this.yAxisWidth<u&&(this.yAxisWidth=u),this.yAxisWidth>c&&(this.yAxisWidth=c)}}]),i}(),ag=function(){function i(e){ae(this,i),this.w=e.w,this.lgCtx=e}return oe(i,[{key:"getLegendStyles",value:function(){var e,t,n,r=document.createElement("style");r.setAttribute("type","text/css");var a=((e=this.lgCtx.ctx)===null||e===void 0||(t=e.opts)===null||t===void 0||(n=t.chart)===null||n===void 0?void 0:n.nonce)||this.w.config.chart.nonce;a&&r.setAttribute("nonce",a);var o=document.createTextNode(`
60
+ .apexcharts-flip-y {
61
+ transform: scaleY(-1) translateY(-100%);
62
+ transform-origin: top;
63
+ transform-box: fill-box;
64
+ }
65
+ .apexcharts-flip-x {
66
+ transform: scaleX(-1);
67
+ transform-origin: center;
68
+ transform-box: fill-box;
69
+ }
70
+ .apexcharts-legend {
71
+ display: flex;
72
+ overflow: auto;
73
+ padding: 0 10px;
74
+ }
75
+ .apexcharts-legend.apexcharts-legend-group-horizontal {
76
+ flex-direction: column;
77
+ }
78
+ .apexcharts-legend-group {
79
+ display: flex;
80
+ }
81
+ .apexcharts-legend-group-vertical {
82
+ flex-direction: column-reverse;
83
+ }
84
+ .apexcharts-legend.apx-legend-position-bottom, .apexcharts-legend.apx-legend-position-top {
85
+ flex-wrap: wrap
86
+ }
87
+ .apexcharts-legend.apx-legend-position-right, .apexcharts-legend.apx-legend-position-left {
88
+ flex-direction: column;
89
+ bottom: 0;
90
+ }
91
+ .apexcharts-legend.apx-legend-position-bottom.apexcharts-align-left, .apexcharts-legend.apx-legend-position-top.apexcharts-align-left, .apexcharts-legend.apx-legend-position-right, .apexcharts-legend.apx-legend-position-left {
92
+ justify-content: flex-start;
93
+ align-items: flex-start;
94
+ }
95
+ .apexcharts-legend.apx-legend-position-bottom.apexcharts-align-center, .apexcharts-legend.apx-legend-position-top.apexcharts-align-center {
96
+ justify-content: center;
97
+ align-items: center;
98
+ }
99
+ .apexcharts-legend.apx-legend-position-bottom.apexcharts-align-right, .apexcharts-legend.apx-legend-position-top.apexcharts-align-right {
100
+ justify-content: flex-end;
101
+ align-items: flex-end;
102
+ }
103
+ .apexcharts-legend-series {
104
+ cursor: pointer;
105
+ line-height: normal;
106
+ display: flex;
107
+ align-items: center;
108
+ }
109
+ .apexcharts-legend-text {
110
+ position: relative;
111
+ font-size: 14px;
112
+ }
113
+ .apexcharts-legend-text *, .apexcharts-legend-marker * {
114
+ pointer-events: none;
115
+ }
116
+ .apexcharts-legend-marker {
117
+ position: relative;
118
+ display: flex;
119
+ align-items: center;
120
+ justify-content: center;
121
+ cursor: pointer;
122
+ margin-right: 1px;
123
+ }
124
+
125
+ .apexcharts-legend-series.apexcharts-no-click {
126
+ cursor: auto;
127
+ }
128
+ .apexcharts-legend .apexcharts-hidden-zero-series, .apexcharts-legend .apexcharts-hidden-null-series {
129
+ display: none !important;
130
+ }
131
+ .apexcharts-inactive-legend {
132
+ opacity: 0.45;
133
+ }
134
+
135
+ `);return r.appendChild(o),r}},{key:"getLegendDimensions",value:function(){var e=this.w.globals.dom.baseEl.querySelector(".apexcharts-legend").getBoundingClientRect(),t=e.width;return{clwh:e.height,clww:t}}},{key:"appendToForeignObject",value:function(){this.w.globals.dom.elLegendForeign.appendChild(this.getLegendStyles())}},{key:"toggleDataSeries",value:function(e,t){var n=this,r=this.w;if(r.globals.axisCharts||r.config.chart.type==="radialBar"){r.globals.resized=!0;var a=null,o=null;r.globals.risingSeries=[],r.globals.axisCharts?(a=r.globals.dom.baseEl.querySelector(".apexcharts-series[data\\:realIndex='".concat(e,"']")),o=parseInt(a.getAttribute("data:realIndex"),10)):(a=r.globals.dom.baseEl.querySelector(".apexcharts-series[rel='".concat(e+1,"']")),o=parseInt(a.getAttribute("rel"),10)-1),t?[{cs:r.globals.collapsedSeries,csi:r.globals.collapsedSeriesIndices},{cs:r.globals.ancillaryCollapsedSeries,csi:r.globals.ancillaryCollapsedSeriesIndices}].forEach(function(u){n.riseCollapsedSeries(u.cs,u.csi,o)}):this.hideSeries({seriesEl:a,realIndex:o})}else{var s=r.globals.dom.Paper.findOne(" .apexcharts-series[rel='".concat(e+1,"'] path")),l=r.config.chart.type;if(l==="pie"||l==="polarArea"||l==="donut"){var h=r.config.plotOptions.pie.donut.labels;new Q(this.lgCtx.ctx).pathMouseDown(s,null),this.lgCtx.ctx.pie.printDataLabelsInner(s.node,h)}s.fire("click")}}},{key:"getSeriesAfterCollapsing",value:function(e){var t=e.realIndex,n=this.w,r=n.globals,a=q.clone(n.config.series);if(r.axisCharts){var o=n.config.yaxis[r.seriesYAxisReverseMap[t]],s={index:t,data:a[t].data.slice(),type:a[t].type||n.config.chart.type};if(o&&o.show&&o.showAlways)r.ancillaryCollapsedSeriesIndices.indexOf(t)<0&&(r.ancillaryCollapsedSeries.push(s),r.ancillaryCollapsedSeriesIndices.push(t));else if(r.collapsedSeriesIndices.indexOf(t)<0){r.collapsedSeries.push(s),r.collapsedSeriesIndices.push(t);var l=r.risingSeries.indexOf(t);r.risingSeries.splice(l,1)}}else r.collapsedSeries.push({index:t,data:a[t]}),r.collapsedSeriesIndices.push(t);return r.allSeriesCollapsed=r.collapsedSeries.length+r.ancillaryCollapsedSeries.length===n.config.series.length,this._getSeriesBasedOnCollapsedState(a)}},{key:"hideSeries",value:function(e){for(var t=e.seriesEl,n=e.realIndex,r=this.w,a=this.getSeriesAfterCollapsing({realIndex:n}),o=t.childNodes,s=0;s<o.length;s++)o[s].classList.contains("apexcharts-series-markers-wrap")&&(o[s].classList.contains("apexcharts-hide")?o[s].classList.remove("apexcharts-hide"):o[s].classList.add("apexcharts-hide"));this.lgCtx.ctx.updateHelpers._updateSeries(a,r.config.chart.animations.dynamicAnimation.enabled)}},{key:"riseCollapsedSeries",value:function(e,t,n){var r=this.w,a=q.clone(r.config.series);if(e.length>0){for(var o=0;o<e.length;o++)e[o].index===n&&(r.globals.axisCharts?a[n].data=e[o].data.slice():a[n]=e[o].data,typeof a[n]!="number"&&(a[n].hidden=!1),e.splice(o,1),t.splice(o,1),r.globals.risingSeries.push(n));a=this._getSeriesBasedOnCollapsedState(a),this.lgCtx.ctx.updateHelpers._updateSeries(a,r.config.chart.animations.dynamicAnimation.enabled)}}},{key:"_getSeriesBasedOnCollapsedState",value:function(e){var t=this.w,n=0;return t.globals.axisCharts?e.forEach(function(r,a){t.globals.collapsedSeriesIndices.indexOf(a)<0&&t.globals.ancillaryCollapsedSeriesIndices.indexOf(a)<0||(e[a].data=[],n++)}):e.forEach(function(r,a){!t.globals.collapsedSeriesIndices.indexOf(a)<0&&(e[a]=0,n++)}),t.globals.allSeriesCollapsed=n===e.length,e}}]),i}(),nh=function(){function i(e){ae(this,i),this.ctx=e,this.w=e.w,this.onLegendClick=this.onLegendClick.bind(this),this.onLegendHovered=this.onLegendHovered.bind(this),this.isBarsDistributed=this.w.config.chart.type==="bar"&&this.w.config.plotOptions.bar.distributed&&this.w.config.series.length===1,this.legendHelpers=new ag(this)}return oe(i,[{key:"init",value:function(){var e=this.w,t=e.globals,n=e.config,r=n.legend.showForSingleSeries&&t.series.length===1||this.isBarsDistributed||t.series.length>1;if(this.legendHelpers.appendToForeignObject(),(r||!t.axisCharts)&&n.legend.show){for(;t.dom.elLegendWrap.firstChild;)t.dom.elLegendWrap.removeChild(t.dom.elLegendWrap.firstChild);this.drawLegends(),n.legend.position==="bottom"||n.legend.position==="top"?this.legendAlignHorizontal():n.legend.position!=="right"&&n.legend.position!=="left"||this.legendAlignVertical()}}},{key:"createLegendMarker",value:function(e){var t=e.i,n=e.fillcolor,r=this.w,a=document.createElement("span");a.classList.add("apexcharts-legend-marker");var o=r.config.legend.markers.shape||r.config.markers.shape,s=o;Array.isArray(o)&&(s=o[t]);var l=Array.isArray(r.config.legend.markers.size)?parseFloat(r.config.legend.markers.size[t]):parseFloat(r.config.legend.markers.size),h=Array.isArray(r.config.legend.markers.offsetX)?parseFloat(r.config.legend.markers.offsetX[t]):parseFloat(r.config.legend.markers.offsetX),u=Array.isArray(r.config.legend.markers.offsetY)?parseFloat(r.config.legend.markers.offsetY[t]):parseFloat(r.config.legend.markers.offsetY),c=Array.isArray(r.config.legend.markers.strokeWidth)?parseFloat(r.config.legend.markers.strokeWidth[t]):parseFloat(r.config.legend.markers.strokeWidth),f=a.style;if(f.height=2*(l+c)+"px",f.width=2*(l+c)+"px",f.left=h+"px",f.top=u+"px",r.config.legend.markers.customHTML)f.background="transparent",f.color=n[t],Array.isArray(r.config.legend.markers.customHTML)?r.config.legend.markers.customHTML[t]&&(a.innerHTML=r.config.legend.markers.customHTML[t]()):a.innerHTML=r.config.legend.markers.customHTML();else{var d=new Ei(this.ctx).getMarkerConfig({cssClass:"apexcharts-legend-marker apexcharts-marker apexcharts-marker-".concat(s),seriesIndex:t,strokeWidth:c,size:l}),p=window.SVG().addTo(a).size("100%","100%"),g=new Q(this.ctx).drawMarker(0,0,ne(ne({},d),{},{pointFillColor:Array.isArray(n)?n[t]:d.pointFillColor,shape:s}));r.globals.dom.Paper.find(".apexcharts-legend-marker.apexcharts-marker").forEach(function(m){m.node.classList.contains("apexcharts-marker-triangle")?m.node.style.transform="translate(50%, 45%)":m.node.style.transform="translate(50%, 50%)"}),p.add(g)}return a}},{key:"drawLegends",value:function(){var e=this,t=this,n=this.w,r=n.config.legend.fontFamily,a=n.globals.seriesNames,o=n.config.legend.markers.fillColors?n.config.legend.markers.fillColors.slice():n.globals.colors.slice();if(n.config.chart.type==="heatmap"){var s=n.config.plotOptions.heatmap.colorScale.ranges;a=s.map(function(d){return d.name?d.name:d.from+" - "+d.to}),o=s.map(function(d){return d.color})}else this.isBarsDistributed&&(a=n.globals.labels.slice());n.config.legend.customLegendItems.length&&(a=n.config.legend.customLegendItems);var l=n.globals.legendFormatter,h=n.config.legend.inverseOrder,u=[];n.globals.seriesGroups.length>1&&n.config.legend.clusterGroupedSeries&&n.globals.seriesGroups.forEach(function(d,p){u[p]=document.createElement("div"),u[p].classList.add("apexcharts-legend-group","apexcharts-legend-group-".concat(p)),n.config.legend.clusterGroupedSeriesOrientation==="horizontal"?n.globals.dom.elLegendWrap.classList.add("apexcharts-legend-group-horizontal"):u[p].classList.add("apexcharts-legend-group-vertical")});for(var c=function(d){var p,g=l(a[d],{seriesIndex:d,w:n}),m=!1,v=!1;if(n.globals.collapsedSeries.length>0)for(var y=0;y<n.globals.collapsedSeries.length;y++)n.globals.collapsedSeries[y].index===d&&(m=!0);if(n.globals.ancillaryCollapsedSeriesIndices.length>0)for(var b=0;b<n.globals.ancillaryCollapsedSeriesIndices.length;b++)n.globals.ancillaryCollapsedSeriesIndices[b]===d&&(v=!0);var x=e.createLegendMarker({i:d,fillcolor:o});Q.setAttrs(x,{rel:d+1,"data:collapsed":m||v}),(m||v)&&x.classList.add("apexcharts-inactive-legend");var w=document.createElement("div"),k=document.createElement("span");k.classList.add("apexcharts-legend-text"),k.innerHTML=Array.isArray(g)?g.join(" "):g;var S=n.config.legend.labels.useSeriesColors?n.globals.colors[d]:Array.isArray(n.config.legend.labels.colors)?(p=n.config.legend.labels.colors)===null||p===void 0?void 0:p[d]:n.config.legend.labels.colors;S||(S=n.config.chart.foreColor),k.style.color=S,k.style.fontSize=parseFloat(n.config.legend.fontSize)+"px",k.style.fontWeight=n.config.legend.fontWeight,k.style.fontFamily=r||n.config.chart.fontFamily,Q.setAttrs(k,{rel:d+1,i:d,"data:default-text":encodeURIComponent(g),"data:collapsed":m||v}),w.appendChild(x),w.appendChild(k);var A=new Je(e.ctx);n.config.legend.showForZeroSeries||A.getSeriesTotalByIndex(d)===0&&A.seriesHaveSameValues(d)&&!A.isSeriesNull(d)&&n.globals.collapsedSeriesIndices.indexOf(d)===-1&&n.globals.ancillaryCollapsedSeriesIndices.indexOf(d)===-1&&w.classList.add("apexcharts-hidden-zero-series"),n.config.legend.showForNullSeries||A.isSeriesNull(d)&&n.globals.collapsedSeriesIndices.indexOf(d)===-1&&n.globals.ancillaryCollapsedSeriesIndices.indexOf(d)===-1&&w.classList.add("apexcharts-hidden-null-series"),u.length?n.globals.seriesGroups.forEach(function(O,_){var C;O.includes((C=n.config.series[d])===null||C===void 0?void 0:C.name)&&(n.globals.dom.elLegendWrap.appendChild(u[_]),u[_].appendChild(w))}):n.globals.dom.elLegendWrap.appendChild(w),n.globals.dom.elLegendWrap.classList.add("apexcharts-align-".concat(n.config.legend.horizontalAlign)),n.globals.dom.elLegendWrap.classList.add("apx-legend-position-"+n.config.legend.position),w.classList.add("apexcharts-legend-series"),w.style.margin="".concat(n.config.legend.itemMargin.vertical,"px ").concat(n.config.legend.itemMargin.horizontal,"px"),n.globals.dom.elLegendWrap.style.width=n.config.legend.width?n.config.legend.width+"px":"",n.globals.dom.elLegendWrap.style.height=n.config.legend.height?n.config.legend.height+"px":"",Q.setAttrs(w,{rel:d+1,seriesName:q.escapeString(a[d]),"data:collapsed":m||v}),(m||v)&&w.classList.add("apexcharts-inactive-legend"),n.config.legend.onItemClick.toggleDataSeries||w.classList.add("apexcharts-no-click")},f=h?a.length-1:0;h?f>=0:f<=a.length-1;h?f--:f++)c(f);n.globals.dom.elWrap.addEventListener("click",t.onLegendClick,!0),n.config.legend.onItemHover.highlightDataSeries&&n.config.legend.customLegendItems.length===0&&(n.globals.dom.elWrap.addEventListener("mousemove",t.onLegendHovered,!0),n.globals.dom.elWrap.addEventListener("mouseout",t.onLegendHovered,!0))}},{key:"setLegendWrapXY",value:function(e,t){var n=this.w,r=n.globals.dom.elLegendWrap,a=r.clientHeight,o=0,s=0;if(n.config.legend.position==="bottom")s=n.globals.svgHeight-Math.min(a,n.globals.svgHeight/2)-5;else if(n.config.legend.position==="top"){var l=new la(this.ctx),h=l.dimHelpers.getTitleSubtitleCoords("title").height,u=l.dimHelpers.getTitleSubtitleCoords("subtitle").height;s=(h>0?h-10:0)+(u>0?u-10:0)}r.style.position="absolute",o=o+e+n.config.legend.offsetX,s=s+t+n.config.legend.offsetY,r.style.left=o+"px",r.style.top=s+"px",n.config.legend.position==="right"&&(r.style.left="auto",r.style.right=25+n.config.legend.offsetX+"px"),["width","height"].forEach(function(c){r.style[c]&&(r.style[c]=parseInt(n.config.legend[c],10)+"px")})}},{key:"legendAlignHorizontal",value:function(){var e=this.w;e.globals.dom.elLegendWrap.style.right=0;var t=new la(this.ctx),n=t.dimHelpers.getTitleSubtitleCoords("title"),r=t.dimHelpers.getTitleSubtitleCoords("subtitle"),a=0;e.config.legend.position==="top"&&(a=n.height+r.height+e.config.title.margin+e.config.subtitle.margin-10),this.setLegendWrapXY(20,a)}},{key:"legendAlignVertical",value:function(){var e=this.w,t=this.legendHelpers.getLegendDimensions(),n=0;e.config.legend.position==="left"&&(n=20),e.config.legend.position==="right"&&(n=e.globals.svgWidth-t.clww-10),this.setLegendWrapXY(n,20)}},{key:"onLegendHovered",value:function(e){var t=this.w,n=e.target.classList.contains("apexcharts-legend-series")||e.target.classList.contains("apexcharts-legend-text")||e.target.classList.contains("apexcharts-legend-marker");if(t.config.chart.type==="heatmap"||this.isBarsDistributed){if(n){var r=parseInt(e.target.getAttribute("rel"),10)-1;this.ctx.events.fireEvent("legendHover",[this.ctx,r,this.w]),new jt(this.ctx).highlightRangeInSeries(e,e.target)}}else!e.target.classList.contains("apexcharts-inactive-legend")&&n&&new jt(this.ctx).toggleSeriesOnHover(e,e.target)}},{key:"onLegendClick",value:function(e){var t=this.w;if(!t.config.legend.customLegendItems.length&&(e.target.classList.contains("apexcharts-legend-series")||e.target.classList.contains("apexcharts-legend-text")||e.target.classList.contains("apexcharts-legend-marker"))){var n=parseInt(e.target.getAttribute("rel"),10)-1,r=e.target.getAttribute("data:collapsed")==="true",a=this.w.config.chart.events.legendClick;typeof a=="function"&&a(this.ctx,n,this.w),this.ctx.events.fireEvent("legendClick",[this.ctx,n,this.w]);var o=this.w.config.legend.markers.onClick;typeof o=="function"&&e.target.classList.contains("apexcharts-legend-marker")&&(o(this.ctx,n,this.w),this.ctx.events.fireEvent("legendMarkerClick",[this.ctx,n,this.w])),t.config.chart.type!=="treemap"&&t.config.chart.type!=="heatmap"&&!this.isBarsDistributed&&t.config.legend.onItemClick.toggleDataSeries&&this.legendHelpers.toggleDataSeries(n,r)}}}]),i}(),ih=function(){function i(e){ae(this,i),this.ctx=e,this.w=e.w;var t=this.w;this.ev=this.w.config.chart.events,this.selectedClass="apexcharts-selected",this.localeValues=this.w.globals.locale.toolbar,this.minX=t.globals.minX,this.maxX=t.globals.maxX}return oe(i,[{key:"createToolbar",value:function(){var e=this,t=this.w,n=function(){return document.createElement("div")},r=n();if(r.setAttribute("class","apexcharts-toolbar"),r.style.top=t.config.chart.toolbar.offsetY+"px",r.style.right=3-t.config.chart.toolbar.offsetX+"px",t.globals.dom.elWrap.appendChild(r),this.elZoom=n(),this.elZoomIn=n(),this.elZoomOut=n(),this.elPan=n(),this.elSelection=n(),this.elZoomReset=n(),this.elMenuIcon=n(),this.elMenu=n(),this.elCustomIcons=[],this.t=t.config.chart.toolbar.tools,Array.isArray(this.t.customIcons))for(var a=0;a<this.t.customIcons.length;a++)this.elCustomIcons.push(n());var o=[],s=function(c,f,d){var p=c.toLowerCase();e.t[p]&&t.config.chart.zoom.enabled&&o.push({el:f,icon:typeof e.t[p]=="string"?e.t[p]:d,title:e.localeValues[c],class:"apexcharts-".concat(p,"-icon")})};s("zoomIn",this.elZoomIn,`<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">
136
+ <path d="M0 0h24v24H0z" fill="none"/>
137
+ <path d="M13 7h-2v4H7v2h4v4h2v-4h4v-2h-4V7zm-1-5C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"/>
138
+ </svg>
139
+ `),s("zoomOut",this.elZoomOut,`<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">
140
+ <path d="M0 0h24v24H0z" fill="none"/>
141
+ <path d="M7 11v2h10v-2H7zm5-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"/>
142
+ </svg>
143
+ `);var l=function(c){e.t[c]&&t.config.chart[c].enabled&&o.push({el:c==="zoom"?e.elZoom:e.elSelection,icon:typeof e.t[c]=="string"?e.t[c]:c==="zoom"?`<svg xmlns="http://www.w3.org/2000/svg" fill="#000000" height="24" viewBox="0 0 24 24" width="24">
144
+ <path d="M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"/>
145
+ <path d="M0 0h24v24H0V0z" fill="none"/>
146
+ <path d="M12 10h-2v2H9v-2H7V9h2V7h1v2h2v1z"/>
147
+ </svg>`:`<svg fill="#6E8192" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg">
148
+ <path d="M0 0h24v24H0z" fill="none"/>
149
+ <path d="M3 5h2V3c-1.1 0-2 .9-2 2zm0 8h2v-2H3v2zm4 8h2v-2H7v2zM3 9h2V7H3v2zm10-6h-2v2h2V3zm6 0v2h2c0-1.1-.9-2-2-2zM5 21v-2H3c0 1.1.9 2 2 2zm-2-4h2v-2H3v2zM9 3H7v2h2V3zm2 18h2v-2h-2v2zm8-8h2v-2h-2v2zm0 8c1.1 0 2-.9 2-2h-2v2zm0-12h2V7h-2v2zm0 8h2v-2h-2v2zm-4 4h2v-2h-2v2zm0-16h2V3h-2v2z"/>
150
+ </svg>`,title:e.localeValues[c==="zoom"?"selectionZoom":"selection"],class:t.globals.isTouchDevice?"apexcharts-element-hidden":"apexcharts-".concat(c,"-icon")})};l("zoom"),l("selection"),this.t.pan&&t.config.chart.zoom.enabled&&o.push({el:this.elPan,icon:typeof this.t.pan=="string"?this.t.pan:`<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" fill="#000000" height="24" viewBox="0 0 24 24" width="24">
151
+ <defs>
152
+ <path d="M0 0h24v24H0z" id="a"/>
153
+ </defs>
154
+ <clipPath id="b">
155
+ <use overflow="visible" xlink:href="#a"/>
156
+ </clipPath>
157
+ <path clip-path="url(#b)" d="M23 5.5V20c0 2.2-1.8 4-4 4h-7.3c-1.08 0-2.1-.43-2.85-1.19L1 14.83s1.26-1.23 1.3-1.25c.22-.19.49-.29.79-.29.22 0 .42.06.6.16.04.01 4.31 2.46 4.31 2.46V4c0-.83.67-1.5 1.5-1.5S11 3.17 11 4v7h1V1.5c0-.83.67-1.5 1.5-1.5S15 .67 15 1.5V11h1V2.5c0-.83.67-1.5 1.5-1.5s1.5.67 1.5 1.5V11h1V5.5c0-.83.67-1.5 1.5-1.5s1.5.67 1.5 1.5z"/>
158
+ </svg>`,title:this.localeValues.pan,class:t.globals.isTouchDevice?"apexcharts-element-hidden":"apexcharts-pan-icon"}),s("reset",this.elZoomReset,`<svg fill="#000000" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg">
159
+ <path d="M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z"/>
160
+ <path d="M0 0h24v24H0z" fill="none"/>
161
+ </svg>`),this.t.download&&o.push({el:this.elMenuIcon,icon:typeof this.t.download=="string"?this.t.download:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"/></svg>',title:this.localeValues.menu,class:"apexcharts-menu-icon"});for(var h=0;h<this.elCustomIcons.length;h++)o.push({el:this.elCustomIcons[h],icon:this.t.customIcons[h].icon,title:this.t.customIcons[h].title,index:this.t.customIcons[h].index,class:"apexcharts-toolbar-custom-icon "+this.t.customIcons[h].class});o.forEach(function(c,f){c.index&&q.moveIndexInArray(o,f,c.index)});for(var u=0;u<o.length;u++)Q.setAttrs(o[u].el,{class:o[u].class,title:o[u].title}),o[u].el.innerHTML=o[u].icon,r.appendChild(o[u].el);this._createHamburgerMenu(r),t.globals.zoomEnabled?this.elZoom.classList.add(this.selectedClass):t.globals.panEnabled?this.elPan.classList.add(this.selectedClass):t.globals.selectionEnabled&&this.elSelection.classList.add(this.selectedClass),this.addToolbarEventListeners()}},{key:"_createHamburgerMenu",value:function(e){this.elMenuItems=[],e.appendChild(this.elMenu),Q.setAttrs(this.elMenu,{class:"apexcharts-menu"});for(var t=[{name:"exportSVG",title:this.localeValues.exportToSVG},{name:"exportPNG",title:this.localeValues.exportToPNG},{name:"exportCSV",title:this.localeValues.exportToCSV}],n=0;n<t.length;n++)this.elMenuItems.push(document.createElement("div")),this.elMenuItems[n].innerHTML=t[n].title,Q.setAttrs(this.elMenuItems[n],{class:"apexcharts-menu-item ".concat(t[n].name),title:t[n].title}),this.elMenu.appendChild(this.elMenuItems[n])}},{key:"addToolbarEventListeners",value:function(){var e=this;this.elZoomReset.addEventListener("click",this.handleZoomReset.bind(this)),this.elSelection.addEventListener("click",this.toggleZoomSelection.bind(this,"selection")),this.elZoom.addEventListener("click",this.toggleZoomSelection.bind(this,"zoom")),this.elZoomIn.addEventListener("click",this.handleZoomIn.bind(this)),this.elZoomOut.addEventListener("click",this.handleZoomOut.bind(this)),this.elPan.addEventListener("click",this.togglePanning.bind(this)),this.elMenuIcon.addEventListener("click",this.toggleMenu.bind(this)),this.elMenuItems.forEach(function(n){n.classList.contains("exportSVG")?n.addEventListener("click",e.handleDownload.bind(e,"svg")):n.classList.contains("exportPNG")?n.addEventListener("click",e.handleDownload.bind(e,"png")):n.classList.contains("exportCSV")&&n.addEventListener("click",e.handleDownload.bind(e,"csv"))});for(var t=0;t<this.t.customIcons.length;t++)this.elCustomIcons[t].addEventListener("click",this.t.customIcons[t].click.bind(this,this.ctx,this.ctx.w))}},{key:"toggleZoomSelection",value:function(e){this.ctx.getSyncedCharts().forEach(function(t){t.ctx.toolbar.toggleOtherControls();var n=e==="selection"?t.ctx.toolbar.elSelection:t.ctx.toolbar.elZoom,r=e==="selection"?"selectionEnabled":"zoomEnabled";t.w.globals[r]=!t.w.globals[r],n.classList.contains(t.ctx.toolbar.selectedClass)?n.classList.remove(t.ctx.toolbar.selectedClass):n.classList.add(t.ctx.toolbar.selectedClass)})}},{key:"getToolbarIconsReference",value:function(){var e=this.w;this.elZoom||(this.elZoom=e.globals.dom.baseEl.querySelector(".apexcharts-zoom-icon")),this.elPan||(this.elPan=e.globals.dom.baseEl.querySelector(".apexcharts-pan-icon")),this.elSelection||(this.elSelection=e.globals.dom.baseEl.querySelector(".apexcharts-selection-icon"))}},{key:"enableZoomPanFromToolbar",value:function(e){this.toggleOtherControls(),e==="pan"?this.w.globals.panEnabled=!0:this.w.globals.zoomEnabled=!0;var t=e==="pan"?this.elPan:this.elZoom,n=e==="pan"?this.elZoom:this.elPan;t&&t.classList.add(this.selectedClass),n&&n.classList.remove(this.selectedClass)}},{key:"togglePanning",value:function(){this.ctx.getSyncedCharts().forEach(function(e){e.ctx.toolbar.toggleOtherControls(),e.w.globals.panEnabled=!e.w.globals.panEnabled,e.ctx.toolbar.elPan.classList.contains(e.ctx.toolbar.selectedClass)?e.ctx.toolbar.elPan.classList.remove(e.ctx.toolbar.selectedClass):e.ctx.toolbar.elPan.classList.add(e.ctx.toolbar.selectedClass)})}},{key:"toggleOtherControls",value:function(){var e=this,t=this.w;t.globals.panEnabled=!1,t.globals.zoomEnabled=!1,t.globals.selectionEnabled=!1,this.getToolbarIconsReference(),[this.elPan,this.elSelection,this.elZoom].forEach(function(n){n&&n.classList.remove(e.selectedClass)})}},{key:"handleZoomIn",value:function(){var e=this.w;e.globals.isRangeBar&&(this.minX=e.globals.minY,this.maxX=e.globals.maxY);var t=(this.minX+this.maxX)/2,n=(this.minX+t)/2,r=(this.maxX+t)/2,a=this._getNewMinXMaxX(n,r);e.globals.disableZoomIn||this.zoomUpdateOptions(a.minX,a.maxX)}},{key:"handleZoomOut",value:function(){var e=this.w;if(e.globals.isRangeBar&&(this.minX=e.globals.minY,this.maxX=e.globals.maxY),!(e.config.xaxis.type==="datetime"&&new Date(this.minX).getUTCFullYear()<1e3)){var t=(this.minX+this.maxX)/2,n=this.minX-(t-this.minX),r=this.maxX-(t-this.maxX),a=this._getNewMinXMaxX(n,r);e.globals.disableZoomOut||this.zoomUpdateOptions(a.minX,a.maxX)}}},{key:"_getNewMinXMaxX",value:function(e,t){var n=this.w.config.xaxis.convertedCatToNumeric;return{minX:n?Math.floor(e):e,maxX:n?Math.floor(t):t}}},{key:"zoomUpdateOptions",value:function(e,t){var n=this.w;if(e!==void 0||t!==void 0){if(!(n.config.xaxis.convertedCatToNumeric&&(e<1&&(e=1,t=n.globals.dataPoints),t-e<2))){var r={min:e,max:t},a=this.getBeforeZoomRange(r);a&&(r=a.xaxis);var o={xaxis:r},s=q.clone(n.globals.initialConfig.yaxis);n.config.chart.group||(o.yaxis=s),this.w.globals.zoomed=!0,this.ctx.updateHelpers._updateOptions(o,!1,this.w.config.chart.animations.dynamicAnimation.enabled),this.zoomCallback(r,s)}}else this.handleZoomReset()}},{key:"zoomCallback",value:function(e,t){typeof this.ev.zoomed=="function"&&(this.ev.zoomed(this.ctx,{xaxis:e,yaxis:t}),this.ctx.events.fireEvent("zoomed",{xaxis:e,yaxis:t}))}},{key:"getBeforeZoomRange",value:function(e,t){var n=null;return typeof this.ev.beforeZoom=="function"&&(n=this.ev.beforeZoom(this,{xaxis:e,yaxis:t})),n}},{key:"toggleMenu",value:function(){var e=this;window.setTimeout(function(){e.elMenu.classList.contains("apexcharts-menu-open")?e.elMenu.classList.remove("apexcharts-menu-open"):e.elMenu.classList.add("apexcharts-menu-open")},0)}},{key:"handleDownload",value:function(e){var t=this.w,n=new Zi(this.ctx);switch(e){case"svg":n.exportToSVG(this.ctx);break;case"png":n.exportToPng(this.ctx);break;case"csv":n.exportToCSV({series:t.config.series,columnDelimiter:t.config.chart.toolbar.export.csv.columnDelimiter})}}},{key:"handleZoomReset",value:function(e){this.ctx.getSyncedCharts().forEach(function(t){var n=t.w;if(n.globals.lastXAxis.min=n.globals.initialConfig.xaxis.min,n.globals.lastXAxis.max=n.globals.initialConfig.xaxis.max,t.updateHelpers.revertDefaultAxisMinMax(),typeof n.config.chart.events.beforeResetZoom=="function"){var r=n.config.chart.events.beforeResetZoom(t,n);r&&t.updateHelpers.revertDefaultAxisMinMax(r)}typeof n.config.chart.events.zoomed=="function"&&t.ctx.toolbar.zoomCallback({min:n.config.xaxis.min,max:n.config.xaxis.max}),n.globals.zoomed=!1;var a=t.ctx.series.emptyCollapsedSeries(q.clone(n.globals.initialSeries));t.updateHelpers._updateSeries(a,n.config.chart.animations.dynamicAnimation.enabled)})}},{key:"destroy",value:function(){this.elZoom=null,this.elZoomIn=null,this.elZoomOut=null,this.elPan=null,this.elSelection=null,this.elZoomReset=null,this.elMenuIcon=null}}]),i}(),og=function(i){yr(t,ih);var e=mr(t);function t(n){var r;return ae(this,t),(r=e.call(this,n)).ctx=n,r.w=n.w,r.dragged=!1,r.graphics=new Q(r.ctx),r.eventList=["mousedown","mouseleave","mousemove","touchstart","touchmove","mouseup","touchend","wheel"],r.clientX=0,r.clientY=0,r.startX=0,r.endX=0,r.dragX=0,r.startY=0,r.endY=0,r.dragY=0,r.moveDirection="none",r.debounceTimer=null,r.debounceDelay=100,r.wheelDelay=400,r}return oe(t,[{key:"init",value:function(n){var r=this,a=n.xyRatios,o=this.w,s=this;this.xyRatios=a,this.zoomRect=this.graphics.drawRect(0,0,0,0),this.selectionRect=this.graphics.drawRect(0,0,0,0),this.gridRect=o.globals.dom.baseEl.querySelector(".apexcharts-grid"),this.constraints=new Qe(0,0,o.globals.gridWidth,o.globals.gridHeight),this.zoomRect.node.classList.add("apexcharts-zoom-rect"),this.selectionRect.node.classList.add("apexcharts-selection-rect"),o.globals.dom.Paper.add(this.zoomRect),o.globals.dom.Paper.add(this.selectionRect),o.config.chart.selection.type==="x"?this.slDraggableRect=this.selectionRect.draggable({minX:0,minY:0,maxX:o.globals.gridWidth,maxY:o.globals.gridHeight}).on("dragmove.namespace",this.selectionDragging.bind(this,"dragging")):o.config.chart.selection.type==="y"?this.slDraggableRect=this.selectionRect.draggable({minX:0,maxX:o.globals.gridWidth}).on("dragmove.namespace",this.selectionDragging.bind(this,"dragging")):this.slDraggableRect=this.selectionRect.draggable().on("dragmove.namespace",this.selectionDragging.bind(this,"dragging")),this.preselectedSelection(),this.hoverArea=o.globals.dom.baseEl.querySelector("".concat(o.globals.chartClass," .apexcharts-svg")),this.hoverArea.classList.add("apexcharts-zoomable"),this.eventList.forEach(function(l){r.hoverArea.addEventListener(l,s.svgMouseEvents.bind(s,a),{capture:!1,passive:!0})}),o.config.chart.zoom.enabled&&o.config.chart.zoom.allowMouseWheelZoom&&this.hoverArea.addEventListener("wheel",s.mouseWheelEvent.bind(s),{capture:!1,passive:!1})}},{key:"destroy",value:function(){this.slDraggableRect&&(this.slDraggableRect.draggable(!1),this.slDraggableRect.off(),this.selectionRect.off()),this.selectionRect=null,this.zoomRect=null,this.gridRect=null}},{key:"svgMouseEvents",value:function(n,r){var a=this.w,o=this.ctx.toolbar,s=a.globals.zoomEnabled?a.config.chart.zoom.type:a.config.chart.selection.type,l=a.config.chart.toolbar.autoSelected;if(r.shiftKey?(this.shiftWasPressed=!0,o.enableZoomPanFromToolbar(l==="pan"?"zoom":"pan")):this.shiftWasPressed&&(o.enableZoomPanFromToolbar(l),this.shiftWasPressed=!1),r.target){var h,u=r.target.classList;if(r.target.parentNode&&r.target.parentNode!==null&&(h=r.target.parentNode.classList),!(u.contains("apexcharts-legend-marker")||u.contains("apexcharts-legend-text")||h&&h.contains("apexcharts-toolbar"))){if(this.clientX=r.type==="touchmove"||r.type==="touchstart"?r.touches[0].clientX:r.type==="touchend"?r.changedTouches[0].clientX:r.clientX,this.clientY=r.type==="touchmove"||r.type==="touchstart"?r.touches[0].clientY:r.type==="touchend"?r.changedTouches[0].clientY:r.clientY,r.type==="mousedown"&&r.which===1||r.type==="touchstart"){var c=this.gridRect.getBoundingClientRect();this.startX=this.clientX-c.left-a.globals.barPadForNumericAxis,this.startY=this.clientY-c.top,this.dragged=!1,this.w.globals.mousedown=!0}(r.type==="mousemove"&&r.which===1||r.type==="touchmove")&&(this.dragged=!0,a.globals.panEnabled?(a.globals.selection=null,this.w.globals.mousedown&&this.panDragging({context:this,zoomtype:s,xyRatios:n})):(this.w.globals.mousedown&&a.globals.zoomEnabled||this.w.globals.mousedown&&a.globals.selectionEnabled)&&(this.selection=this.selectionDrawing({context:this,zoomtype:s}))),r.type!=="mouseup"&&r.type!=="touchend"&&r.type!=="mouseleave"||this.handleMouseUp({zoomtype:s}),this.makeSelectionRectDraggable()}}}},{key:"handleMouseUp",value:function(n){var r,a=n.zoomtype,o=n.isResized,s=this.w,l=(r=this.gridRect)===null||r===void 0?void 0:r.getBoundingClientRect();l&&(this.w.globals.mousedown||o)&&(this.endX=this.clientX-l.left-s.globals.barPadForNumericAxis,this.endY=this.clientY-l.top,this.dragX=Math.abs(this.endX-this.startX),this.dragY=Math.abs(this.endY-this.startY),(s.globals.zoomEnabled||s.globals.selectionEnabled)&&this.selectionDrawn({context:this,zoomtype:a})),s.globals.zoomEnabled&&this.hideSelectionRect(this.selectionRect),this.dragged=!1,this.w.globals.mousedown=!1}},{key:"mouseWheelEvent",value:function(n){var r=this,a=this.w;n.preventDefault();var o=Date.now();o-a.globals.lastWheelExecution>this.wheelDelay&&(this.executeMouseWheelZoom(n),a.globals.lastWheelExecution=o),this.debounceTimer&&clearTimeout(this.debounceTimer),this.debounceTimer=setTimeout(function(){o-a.globals.lastWheelExecution>r.wheelDelay&&(r.executeMouseWheelZoom(n),a.globals.lastWheelExecution=o)},this.debounceDelay)}},{key:"executeMouseWheelZoom",value:function(n){var r,a=this.w;this.minX=a.globals.isRangeBar?a.globals.minY:a.globals.minX,this.maxX=a.globals.isRangeBar?a.globals.maxY:a.globals.maxX;var o=(r=this.gridRect)===null||r===void 0?void 0:r.getBoundingClientRect();if(o){var s,l,h,u=(n.clientX-o.left)/o.width,c=this.minX,f=this.maxX,d=f-c;if(n.deltaY<0){var p=c+u*d;l=p-(s=.5*d)/2,h=p+s/2}else l=c-(s=1.5*d)/2,h=f+s/2;if(!a.globals.isRangeBar){l=Math.max(l,a.globals.initialMinX),h=Math.min(h,a.globals.initialMaxX);var g=.01*(a.globals.initialMaxX-a.globals.initialMinX);if(h-l<g){var m=(l+h)/2;l=m-g/2,h=m+g/2}}var v=this._getNewMinXMaxX(l,h);isNaN(v.minX)||isNaN(v.maxX)||this.zoomUpdateOptions(v.minX,v.maxX)}}},{key:"makeSelectionRectDraggable",value:function(){var n=this,r=this.w;if(this.selectionRect){var a=this.selectionRect.node.getBoundingClientRect();a.width>0&&a.height>0&&(this.selectionRect.select(!1).resize(!1),this.selectionRect.select({createRot:function(){},updateRot:function(){},createHandle:function(o,s,l,h,u){return u==="l"||u==="r"?o.circle(8).css({"stroke-width":1,stroke:"#333",fill:"#fff"}):o.circle(0)},updateHandle:function(o,s){return o.center(s[0],s[1])}}).resize().on("resize",function(){var o=r.globals.zoomEnabled?r.config.chart.zoom.type:r.config.chart.selection.type;n.handleMouseUp({zoomtype:o,isResized:!0})}))}}},{key:"preselectedSelection",value:function(){var n=this.w,r=this.xyRatios;if(!n.globals.zoomEnabled){if(n.globals.selection!==void 0&&n.globals.selection!==null)this.drawSelectionRect(ne(ne({},n.globals.selection),{},{translateX:n.globals.translateX,translateY:n.globals.translateY}));else if(n.config.chart.selection.xaxis.min!==void 0&&n.config.chart.selection.xaxis.max!==void 0){var a=(n.config.chart.selection.xaxis.min-n.globals.minX)/r.xRatio,o=n.globals.gridWidth-(n.globals.maxX-n.config.chart.selection.xaxis.max)/r.xRatio-a;n.globals.isRangeBar&&(a=(n.config.chart.selection.xaxis.min-n.globals.yAxisScale[0].niceMin)/r.invertedYRatio,o=(n.config.chart.selection.xaxis.max-n.config.chart.selection.xaxis.min)/r.invertedYRatio);var s={x:a,y:0,width:o,height:n.globals.gridHeight,translateX:n.globals.translateX,translateY:n.globals.translateY,selectionEnabled:!0};this.drawSelectionRect(s),this.makeSelectionRectDraggable(),typeof n.config.chart.events.selection=="function"&&n.config.chart.events.selection(this.ctx,{xaxis:{min:n.config.chart.selection.xaxis.min,max:n.config.chart.selection.xaxis.max},yaxis:{}})}}}},{key:"drawSelectionRect",value:function(n){var r=n.x,a=n.y,o=n.width,s=n.height,l=n.translateX,h=l===void 0?0:l,u=n.translateY,c=u===void 0?0:u,f=this.w,d=this.zoomRect,p=this.selectionRect;if(this.dragged||f.globals.selection!==null){var g={transform:"translate("+h+", "+c+")"};f.globals.zoomEnabled&&this.dragged&&(o<0&&(o=1),d.attr({x:r,y:a,width:o,height:s,fill:f.config.chart.zoom.zoomedArea.fill.color,"fill-opacity":f.config.chart.zoom.zoomedArea.fill.opacity,stroke:f.config.chart.zoom.zoomedArea.stroke.color,"stroke-width":f.config.chart.zoom.zoomedArea.stroke.width,"stroke-opacity":f.config.chart.zoom.zoomedArea.stroke.opacity}),Q.setAttrs(d.node,g)),f.globals.selectionEnabled&&(p.attr({x:r,y:a,width:o>0?o:0,height:s>0?s:0,fill:f.config.chart.selection.fill.color,"fill-opacity":f.config.chart.selection.fill.opacity,stroke:f.config.chart.selection.stroke.color,"stroke-width":f.config.chart.selection.stroke.width,"stroke-dasharray":f.config.chart.selection.stroke.dashArray,"stroke-opacity":f.config.chart.selection.stroke.opacity}),Q.setAttrs(p.node,g))}}},{key:"hideSelectionRect",value:function(n){n&&n.attr({x:0,y:0,width:0,height:0})}},{key:"selectionDrawing",value:function(n){var r=n.context,a=n.zoomtype,o=this.w,s=r,l=this.gridRect.getBoundingClientRect(),h=s.startX-1,u=s.startY,c=!1,f=!1,d=s.clientX-l.left-o.globals.barPadForNumericAxis,p=s.clientY-l.top,g=d-h,m=p-u,v={translateX:o.globals.translateX,translateY:o.globals.translateY};return Math.abs(g+h)>o.globals.gridWidth?g=o.globals.gridWidth-h:d<0&&(g=h),h>d&&(c=!0,g=Math.abs(g)),u>p&&(f=!0,m=Math.abs(m)),v=ne(ne({},v=a==="x"?{x:c?h-g:h,y:0,width:g,height:o.globals.gridHeight}:a==="y"?{x:0,y:f?u-m:u,width:o.globals.gridWidth,height:m}:{x:c?h-g:h,y:f?u-m:u,width:g,height:m}),{},{translateX:o.globals.translateX,translateY:o.globals.translateY}),s.drawSelectionRect(v),s.selectionDragging("resizing"),v}},{key:"selectionDragging",value:function(n,r){var a=this,o=this.w;if(r){r.preventDefault();var s=r.detail,l=s.handler,h=s.box,u=h.x,c=h.y;u<this.constraints.x&&(u=this.constraints.x),c<this.constraints.y&&(c=this.constraints.y),h.x2>this.constraints.x2&&(u=this.constraints.x2-h.w),h.y2>this.constraints.y2&&(c=this.constraints.y2-h.h),l.move(u,c);var f=this.xyRatios,d=this.selectionRect,p=0;n==="resizing"&&(p=30);var g=function(v){return parseFloat(d.node.getAttribute(v))},m={x:g("x"),y:g("y"),width:g("width"),height:g("height")};o.globals.selection=m,typeof o.config.chart.events.selection=="function"&&o.globals.selectionEnabled&&(clearTimeout(this.w.globals.selectionResizeTimer),this.w.globals.selectionResizeTimer=window.setTimeout(function(){var v,y,b,x,w=a.gridRect.getBoundingClientRect(),k=d.node.getBoundingClientRect();o.globals.isRangeBar?(v=o.globals.yAxisScale[0].niceMin+(k.left-w.left)*f.invertedYRatio,y=o.globals.yAxisScale[0].niceMin+(k.right-w.left)*f.invertedYRatio,b=0,x=1):(v=o.globals.xAxisScale.niceMin+(k.left-w.left)*f.xRatio,y=o.globals.xAxisScale.niceMin+(k.right-w.left)*f.xRatio,b=o.globals.yAxisScale[0].niceMin+(w.bottom-k.bottom)*f.yRatio[0],x=o.globals.yAxisScale[0].niceMax-(k.top-w.top)*f.yRatio[0]);var S={xaxis:{min:v,max:y},yaxis:{min:b,max:x}};o.config.chart.events.selection(a.ctx,S),o.config.chart.brush.enabled&&o.config.chart.events.brushScrolled!==void 0&&o.config.chart.events.brushScrolled(a.ctx,S)},p))}}},{key:"selectionDrawn",value:function(n){var r,a,o=n.context,s=n.zoomtype,l=this.w,h=o,u=this.xyRatios,c=this.ctx.toolbar,f=l.globals.zoomEnabled?h.zoomRect.node.getBoundingClientRect():h.selectionRect.node.getBoundingClientRect(),d=h.gridRect.getBoundingClientRect(),p=f.left-d.left-l.globals.barPadForNumericAxis,g=f.right-d.left-l.globals.barPadForNumericAxis,m=f.top-d.top,v=f.bottom-d.top;l.globals.isRangeBar?(r=l.globals.yAxisScale[0].niceMin+p*u.invertedYRatio,a=l.globals.yAxisScale[0].niceMin+g*u.invertedYRatio):(r=l.globals.xAxisScale.niceMin+p*u.xRatio,a=l.globals.xAxisScale.niceMin+g*u.xRatio);var y=[],b=[];if(l.config.yaxis.forEach(function(_,C){var M=l.globals.seriesYAxisMap[C][0],P=l.globals.yAxisScale[C].niceMax-u.yRatio[M]*m,E=l.globals.yAxisScale[C].niceMax-u.yRatio[M]*v;y.push(P),b.push(E)}),h.dragged&&(h.dragX>10||h.dragY>10)&&r!==a){if(l.globals.zoomEnabled){var x=q.clone(l.globals.initialConfig.yaxis),w=q.clone(l.globals.initialConfig.xaxis);if(l.globals.zoomed=!0,l.config.xaxis.convertedCatToNumeric&&(r=Math.floor(r),a=Math.floor(a),r<1&&(r=1,a=l.globals.dataPoints),a-r<2&&(a=r+1)),s!=="xy"&&s!=="x"||(w={min:r,max:a}),s!=="xy"&&s!=="y"||x.forEach(function(_,C){x[C].min=b[C],x[C].max=y[C]}),c){var k=c.getBeforeZoomRange(w,x);k&&(w=k.xaxis?k.xaxis:w,x=k.yaxis?k.yaxis:x)}var S={xaxis:w};l.config.chart.group||(S.yaxis=x),h.ctx.updateHelpers._updateOptions(S,!1,h.w.config.chart.animations.dynamicAnimation.enabled),typeof l.config.chart.events.zoomed=="function"&&c.zoomCallback(w,x)}else if(l.globals.selectionEnabled){var A,O=null;A={min:r,max:a},s!=="xy"&&s!=="y"||(O=q.clone(l.config.yaxis)).forEach(function(_,C){O[C].min=b[C],O[C].max=y[C]}),l.globals.selection=h.selection,typeof l.config.chart.events.selection=="function"&&l.config.chart.events.selection(h.ctx,{xaxis:A,yaxis:O})}}}},{key:"panDragging",value:function(n){var r=n.context,a=this.w,o=r;if(a.globals.lastClientPosition.x!==void 0){var s=a.globals.lastClientPosition.x-o.clientX,l=a.globals.lastClientPosition.y-o.clientY;Math.abs(s)>Math.abs(l)&&s>0?this.moveDirection="left":Math.abs(s)>Math.abs(l)&&s<0?this.moveDirection="right":Math.abs(l)>Math.abs(s)&&l>0?this.moveDirection="up":Math.abs(l)>Math.abs(s)&&l<0&&(this.moveDirection="down")}a.globals.lastClientPosition={x:o.clientX,y:o.clientY};var h=a.globals.isRangeBar?a.globals.minY:a.globals.minX,u=a.globals.isRangeBar?a.globals.maxY:a.globals.maxX;o.panScrolled(h,u)}},{key:"panScrolled",value:function(n,r){var a=this.w,o=this.xyRatios,s=q.clone(a.globals.initialConfig.yaxis),l=o.xRatio,h=a.globals.minX,u=a.globals.maxX;a.globals.isRangeBar&&(l=o.invertedYRatio,h=a.globals.minY,u=a.globals.maxY),this.moveDirection==="left"?(n=h+a.globals.gridWidth/15*l,r=u+a.globals.gridWidth/15*l):this.moveDirection==="right"&&(n=h-a.globals.gridWidth/15*l,r=u-a.globals.gridWidth/15*l),a.globals.isRangeBar||(n<a.globals.initialMinX||r>a.globals.initialMaxX)&&(n=h,r=u);var c={xaxis:{min:n,max:r}};a.config.chart.group||(c.yaxis=s),this.updateScrolledChart(c,n,r)}},{key:"updateScrolledChart",value:function(n,r,a){var o=this.w;if(this.ctx.updateHelpers._updateOptions(n,!1,!1),typeof o.config.chart.events.scrolled=="function"){var s={xaxis:{min:r,max:a}};o.config.chart.events.scrolled(this.ctx,s),this.ctx.events.fireEvent("scrolled",s)}}}]),t}(),rh=function(){function i(e){ae(this,i),this.w=e.w,this.ttCtx=e,this.ctx=e.ctx}return oe(i,[{key:"getNearestValues",value:function(e){var t=e.hoverArea,n=e.elGrid,r=e.clientX,a=e.clientY,o=this.w,s=n.getBoundingClientRect(),l=s.width,h=s.height,u=l/(o.globals.dataPoints-1),c=h/o.globals.dataPoints,f=this.hasBars();!o.globals.comboCharts&&!f||o.config.xaxis.convertedCatToNumeric||(u=l/o.globals.dataPoints);var d=r-s.left-o.globals.barPadForNumericAxis,p=a-s.top;d<0||p<0||d>l||p>h?(t.classList.remove("hovering-zoom"),t.classList.remove("hovering-pan")):o.globals.zoomEnabled?(t.classList.remove("hovering-pan"),t.classList.add("hovering-zoom")):o.globals.panEnabled&&(t.classList.remove("hovering-zoom"),t.classList.add("hovering-pan"));var g=Math.round(d/u),m=Math.floor(p/c);f&&!o.config.xaxis.convertedCatToNumeric&&(g=Math.ceil(d/u),g-=1);var v=null,y=null,b=o.globals.seriesXvalues.map(function(A){return A.filter(function(O){return q.isNumber(O)})}),x=o.globals.seriesYvalues.map(function(A){return A.filter(function(O){return q.isNumber(O)})});if(o.globals.isXNumeric){var w=this.ttCtx.getElGrid().getBoundingClientRect(),k=d*(w.width/l),S=p*(w.height/h);v=(y=this.closestInMultiArray(k,S,b,x)).index,g=y.j,v!==null&&o.globals.hasNullValues&&(b=o.globals.seriesXvalues[v],g=(y=this.closestInArray(k,b)).j)}return o.globals.capturedSeriesIndex=v===null?-1:v,(!g||g<1)&&(g=0),o.globals.isBarHorizontal?o.globals.capturedDataPointIndex=m:o.globals.capturedDataPointIndex=g,{capturedSeries:v,j:o.globals.isBarHorizontal?m:g,hoverX:d,hoverY:p}}},{key:"getFirstActiveXArray",value:function(e){for(var t=this.w,n=0,r=e.map(function(o,s){return o.length>0?s:-1}),a=0;a<r.length;a++)if(r[a]!==-1&&t.globals.collapsedSeriesIndices.indexOf(a)===-1&&t.globals.ancillaryCollapsedSeriesIndices.indexOf(a)===-1){n=r[a];break}return n}},{key:"closestInMultiArray",value:function(e,t,n,r){for(var a,o=this.w,s=1/0,l=null,h=null,u=0;u<n.length;u++)if(a=u,o.globals.collapsedSeriesIndices.indexOf(a)===-1&&o.globals.ancillaryCollapsedSeriesIndices.indexOf(a)===-1)for(var c=n[u],f=r[u],d=Math.min(c.length,f.length),p=0;p<d;p++){var g=e-c[p],m=Math.sqrt(g*g);if(!o.globals.allSeriesHasEqualX){var v=t-f[p];m=Math.sqrt(g*g+v*v)}m<s&&(s=m,l=u,h=p)}return{index:l,j:h}}},{key:"closestInArray",value:function(e,t){for(var n=t[0],r=null,a=Math.abs(e-n),o=0;o<t.length;o++){var s=Math.abs(e-t[o]);s<a&&(a=s,r=o)}return{j:r}}},{key:"isXoverlap",value:function(e){var t=[],n=this.w.globals.seriesX.filter(function(a){return a[0]!==void 0});if(n.length>0)for(var r=0;r<n.length-1;r++)n[r][e]!==void 0&&n[r+1][e]!==void 0&&n[r][e]!==n[r+1][e]&&t.push("unEqual");return t.length===0}},{key:"isInitialSeriesSameLen",value:function(){for(var e=!0,t=this.w.globals.initialSeries,n=0;n<t.length-1;n++)if(t[n].data.length!==t[n+1].data.length){e=!1;break}return e}},{key:"getBarsHeight",value:function(e){return nt(e).reduce(function(t,n){return t+n.getBBox().height},0)}},{key:"getElMarkers",value:function(e){return typeof e=="number"?this.w.globals.dom.baseEl.querySelectorAll(".apexcharts-series[data\\:realIndex='".concat(e,"'] .apexcharts-series-markers-wrap > *")):this.w.globals.dom.baseEl.querySelectorAll(".apexcharts-series-markers-wrap > *")}},{key:"getAllMarkers",value:function(){var e=this,t=arguments.length>0&&arguments[0]!==void 0&&arguments[0],n=this.w.globals.dom.baseEl.querySelectorAll(".apexcharts-series-markers-wrap");n=nt(n),t&&(n=n.filter(function(a){var o=Number(a.getAttribute("data:realIndex"));return e.w.globals.collapsedSeriesIndices.indexOf(o)===-1})),n.sort(function(a,o){var s=Number(a.getAttribute("data:realIndex")),l=Number(o.getAttribute("data:realIndex"));return l<s?1:l>s?-1:0});var r=[];return n.forEach(function(a){r.push(a.querySelector(".apexcharts-marker"))}),r}},{key:"hasMarkers",value:function(e){return this.getElMarkers(e).length>0}},{key:"getPathFromPoint",value:function(e,t){var n=Number(e.getAttribute("cx")),r=Number(e.getAttribute("cy")),a=e.getAttribute("shape");return new Q(this.ctx).getMarkerPath(n,r,a,t)}},{key:"getElBars",value:function(){return this.w.globals.dom.baseEl.querySelectorAll(".apexcharts-bar-series, .apexcharts-candlestick-series, .apexcharts-boxPlot-series, .apexcharts-rangebar-series")}},{key:"hasBars",value:function(){return this.getElBars().length>0}},{key:"getHoverMarkerSize",value:function(e){var t=this.w,n=t.config.markers.hover.size;return n===void 0&&(n=t.globals.markers.size[e]+t.config.markers.hover.sizeOffset),n}},{key:"toggleAllTooltipSeriesGroups",value:function(e){var t=this.w,n=this.ttCtx;n.allTooltipSeriesGroups.length===0&&(n.allTooltipSeriesGroups=t.globals.dom.baseEl.querySelectorAll(".apexcharts-tooltip-series-group"));for(var r=n.allTooltipSeriesGroups,a=0;a<r.length;a++)e==="enable"?(r[a].classList.add("apexcharts-active"),r[a].style.display=t.config.tooltip.items.display):(r[a].classList.remove("apexcharts-active"),r[a].style.display="none")}}]),i}(),sg=function(){function i(e){ae(this,i),this.w=e.w,this.ctx=e.ctx,this.ttCtx=e,this.tooltipUtil=new rh(e)}return oe(i,[{key:"drawSeriesTexts",value:function(e){var t=e.shared,n=t===void 0||t,r=e.ttItems,a=e.i,o=a===void 0?0:a,s=e.j,l=s===void 0?null:s,h=e.y1,u=e.y2,c=e.e,f=this.w;f.config.tooltip.custom!==void 0?this.handleCustomTooltip({i:o,j:l,y1:h,y2:u,w:f}):this.toggleActiveInactiveSeries(n,o);var d=this.getValuesToPrint({i:o,j:l});this.printLabels({i:o,j:l,values:d,ttItems:r,shared:n,e:c});var p=this.ttCtx.getElTooltip();this.ttCtx.tooltipRect.ttWidth=p.getBoundingClientRect().width,this.ttCtx.tooltipRect.ttHeight=p.getBoundingClientRect().height}},{key:"printLabels",value:function(e){var t,n=this,r=e.i,a=e.j,o=e.values,s=e.ttItems,l=e.shared,h=e.e,u=this.w,c=[],f=function(w){return u.globals.seriesGoals[w]&&u.globals.seriesGoals[w][a]&&Array.isArray(u.globals.seriesGoals[w][a])},d=o.xVal,p=o.zVal,g=o.xAxisTTVal,m="",v=u.globals.colors[r];a!==null&&u.config.plotOptions.bar.distributed&&(v=u.globals.colors[a]);for(var y=function(w,k){var S=n.getFormatters(r);m=n.getSeriesName({fn:S.yLbTitleFormatter,index:r,seriesIndex:r,j:a}),u.config.chart.type==="treemap"&&(m=S.yLbTitleFormatter(String(u.config.series[r].data[a].x),{series:u.globals.series,seriesIndex:r,dataPointIndex:a,w:u}));var A=u.config.tooltip.inverseOrder?k:w;if(u.globals.axisCharts){var O=function(M){var P,E,R,T;return u.globals.isRangeData?S.yLbFormatter((P=u.globals.seriesRangeStart)===null||P===void 0||(E=P[M])===null||E===void 0?void 0:E[a],{series:u.globals.seriesRangeStart,seriesIndex:M,dataPointIndex:a,w:u})+" - "+S.yLbFormatter((R=u.globals.seriesRangeEnd)===null||R===void 0||(T=R[M])===null||T===void 0?void 0:T[a],{series:u.globals.seriesRangeEnd,seriesIndex:M,dataPointIndex:a,w:u}):S.yLbFormatter(u.globals.series[M][a],{series:u.globals.series,seriesIndex:M,dataPointIndex:a,w:u})};if(l)S=n.getFormatters(A),m=n.getSeriesName({fn:S.yLbTitleFormatter,index:A,seriesIndex:r,j:a}),v=u.globals.colors[A],t=O(A),f(A)&&(c=u.globals.seriesGoals[A][a].map(function(M){return{attrs:M,val:S.yLbFormatter(M.value,{seriesIndex:A,dataPointIndex:a,w:u})}}));else{var _,C=h==null||(_=h.target)===null||_===void 0?void 0:_.getAttribute("fill");C&&(C.indexOf("url")!==-1?C.indexOf("Pattern")!==-1&&(v=u.globals.dom.baseEl.querySelector(C.substr(4).slice(0,-1)).childNodes[0].getAttribute("stroke")):v=C),t=O(r),f(r)&&Array.isArray(u.globals.seriesGoals[r][a])&&(c=u.globals.seriesGoals[r][a].map(function(M){return{attrs:M,val:S.yLbFormatter(M.value,{seriesIndex:r,dataPointIndex:a,w:u})}}))}}a===null&&(t=S.yLbFormatter(u.globals.series[r],ne(ne({},u),{},{seriesIndex:r,dataPointIndex:r}))),n.DOMHandling({i:r,t:A,j:a,ttItems:s,values:{val:t,goalVals:c,xVal:d,xAxisTTVal:g,zVal:p},seriesName:m,shared:l,pColor:v})},b=0,x=u.globals.series.length-1;b<u.globals.series.length;b++,x--)y(b,x)}},{key:"getFormatters",value:function(e){var t,n=this.w,r=n.globals.yLabelFormatters[e];return n.globals.ttVal!==void 0?Array.isArray(n.globals.ttVal)?(r=n.globals.ttVal[e]&&n.globals.ttVal[e].formatter,t=n.globals.ttVal[e]&&n.globals.ttVal[e].title&&n.globals.ttVal[e].title.formatter):(r=n.globals.ttVal.formatter,typeof n.globals.ttVal.title.formatter=="function"&&(t=n.globals.ttVal.title.formatter)):t=n.config.tooltip.y.title.formatter,typeof r!="function"&&(r=n.globals.yLabelFormatters[0]?n.globals.yLabelFormatters[0]:function(a){return a}),typeof t!="function"&&(t=function(a){return a?a+": ":""}),{yLbFormatter:r,yLbTitleFormatter:t}}},{key:"getSeriesName",value:function(e){var t=e.fn,n=e.index,r=e.seriesIndex,a=e.j,o=this.w;return t(String(o.globals.seriesNames[n]),{series:o.globals.series,seriesIndex:r,dataPointIndex:a,w:o})}},{key:"DOMHandling",value:function(e){e.i;var t=e.t,n=e.j,r=e.ttItems,a=e.values,o=e.seriesName,s=e.shared,l=e.pColor,h=this.w,u=this.ttCtx,c=a.val,f=a.goalVals,d=a.xVal,p=a.xAxisTTVal,g=a.zVal,m=null;m=r[t].children,h.config.tooltip.fillSeriesColor&&(r[t].style.backgroundColor=l,m[0].style.display="none"),u.showTooltipTitle&&(u.tooltipTitle===null&&(u.tooltipTitle=h.globals.dom.baseEl.querySelector(".apexcharts-tooltip-title")),u.tooltipTitle.innerHTML=d),u.isXAxisTooltipEnabled&&(u.xaxisTooltipText.innerHTML=p!==""?p:d);var v=r[t].querySelector(".apexcharts-tooltip-text-y-label");v&&(v.innerHTML=o||"");var y=r[t].querySelector(".apexcharts-tooltip-text-y-value");y&&(y.innerHTML=c!==void 0?c:""),m[0]&&m[0].classList.contains("apexcharts-tooltip-marker")&&(h.config.tooltip.marker.fillColors&&Array.isArray(h.config.tooltip.marker.fillColors)&&(l=h.config.tooltip.marker.fillColors[t]),h.config.tooltip.fillSeriesColor?m[0].style.backgroundColor=l:m[0].style.color=l),h.config.tooltip.marker.show||(m[0].style.display="none");var b=r[t].querySelector(".apexcharts-tooltip-text-goals-label"),x=r[t].querySelector(".apexcharts-tooltip-text-goals-value");if(f.length&&h.globals.seriesGoals[t]){var w=function(){var A="<div>",O="<div>";f.forEach(function(_,C){A+=' <div style="display: flex"><span class="apexcharts-tooltip-marker" style="background-color: '.concat(_.attrs.strokeColor,'; height: 3px; border-radius: 0; top: 5px;"></span> ').concat(_.attrs.name,"</div>"),O+="<div>".concat(_.val,"</div>")}),b.innerHTML=A+"</div>",x.innerHTML=O+"</div>"};s?h.globals.seriesGoals[t][n]&&Array.isArray(h.globals.seriesGoals[t][n])?w():(b.innerHTML="",x.innerHTML=""):w()}else b.innerHTML="",x.innerHTML="";if(g!==null&&(r[t].querySelector(".apexcharts-tooltip-text-z-label").innerHTML=h.config.tooltip.z.title,r[t].querySelector(".apexcharts-tooltip-text-z-value").innerHTML=g!==void 0?g:""),s&&m[0]){if(h.config.tooltip.hideEmptySeries){var k=r[t].querySelector(".apexcharts-tooltip-marker"),S=r[t].querySelector(".apexcharts-tooltip-text");parseFloat(c)==0?(k.style.display="none",S.style.display="none"):(k.style.display="block",S.style.display="block")}c==null||h.globals.ancillaryCollapsedSeriesIndices.indexOf(t)>-1||h.globals.collapsedSeriesIndices.indexOf(t)>-1||Array.isArray(u.tConfig.enabledOnSeries)&&u.tConfig.enabledOnSeries.indexOf(t)===-1?m[0].parentNode.style.display="none":m[0].parentNode.style.display=h.config.tooltip.items.display}else Array.isArray(u.tConfig.enabledOnSeries)&&u.tConfig.enabledOnSeries.indexOf(t)===-1&&(m[0].parentNode.style.display="none")}},{key:"toggleActiveInactiveSeries",value:function(e,t){var n=this.w;if(e)this.tooltipUtil.toggleAllTooltipSeriesGroups("enable");else{this.tooltipUtil.toggleAllTooltipSeriesGroups("disable");var r=n.globals.dom.baseEl.querySelector(".apexcharts-tooltip-series-group-".concat(t));r&&(r.classList.add("apexcharts-active"),r.style.display=n.config.tooltip.items.display)}}},{key:"getValuesToPrint",value:function(e){var t=e.i,n=e.j,r=this.w,a=this.ctx.series.filteredSeriesX(),o="",s="",l=null,h=null,u={series:r.globals.series,seriesIndex:t,dataPointIndex:n,w:r},c=r.globals.ttZFormatter;n===null?h=r.globals.series[t]:r.globals.isXNumeric&&r.config.chart.type!=="treemap"?(o=a[t][n],a[t].length===0&&(o=a[this.tooltipUtil.getFirstActiveXArray(a)][n])):o=new Us(this.ctx).isFormatXY()?r.config.series[t].data[n]!==void 0?r.config.series[t].data[n].x:"":r.globals.labels[n]!==void 0?r.globals.labels[n]:"";var f=o;return r.globals.isXNumeric&&r.config.xaxis.type==="datetime"?o=new Sr(this.ctx).xLabelFormat(r.globals.ttKeyFormatter,f,f,{i:void 0,dateFormatter:new lt(this.ctx).formatDate,w:this.w}):o=r.globals.isBarHorizontal?r.globals.yLabelFormatters[0](f,u):r.globals.xLabelFormatter(f,u),r.config.tooltip.x.formatter!==void 0&&(o=r.globals.ttKeyFormatter(f,u)),r.globals.seriesZ.length>0&&r.globals.seriesZ[t].length>0&&(l=c(r.globals.seriesZ[t][n],r)),s=typeof r.config.xaxis.tooltip.formatter=="function"?r.globals.xaxisTooltipFormatter(f,u):o,{val:Array.isArray(h)?h.join(" "):h,xVal:Array.isArray(o)?o.join(" "):o,xAxisTTVal:Array.isArray(s)?s.join(" "):s,zVal:l}}},{key:"handleCustomTooltip",value:function(e){var t=e.i,n=e.j,r=e.y1,a=e.y2,o=e.w,s=this.ttCtx.getElTooltip(),l=o.config.tooltip.custom;Array.isArray(l)&&l[t]&&(l=l[t]);var h=l({ctx:this.ctx,series:o.globals.series,seriesIndex:t,dataPointIndex:n,y1:r,y2:a,w:o});typeof h=="string"||typeof h=="number"?s.innerHTML=h:(h instanceof Element||typeof h.nodeName=="string")&&(s.innerHTML="",s.appendChild(h.cloneNode(!0)))}}]),i}(),ah=function(){function i(e){ae(this,i),this.ttCtx=e,this.ctx=e.ctx,this.w=e.w}return oe(i,[{key:"moveXCrosshairs",value:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,n=this.ttCtx,r=this.w,a=n.getElXCrosshairs(),o=e-n.xcrosshairsWidth/2,s=r.globals.labels.slice().length;if(t!==null&&(o=r.globals.gridWidth/s*t),a===null||r.globals.isBarHorizontal||(a.setAttribute("x",o),a.setAttribute("x1",o),a.setAttribute("x2",o),a.setAttribute("y2",r.globals.gridHeight),a.classList.add("apexcharts-active")),o<0&&(o=0),o>r.globals.gridWidth&&(o=r.globals.gridWidth),n.isXAxisTooltipEnabled){var l=o;r.config.xaxis.crosshairs.width!=="tickWidth"&&r.config.xaxis.crosshairs.width!=="barWidth"||(l=o+n.xcrosshairsWidth/2),this.moveXAxisTooltip(l)}}},{key:"moveYCrosshairs",value:function(e){var t=this.ttCtx;t.ycrosshairs!==null&&Q.setAttrs(t.ycrosshairs,{y1:e,y2:e}),t.ycrosshairsHidden!==null&&Q.setAttrs(t.ycrosshairsHidden,{y1:e,y2:e})}},{key:"moveXAxisTooltip",value:function(e){var t=this.w,n=this.ttCtx;if(n.xaxisTooltip!==null&&n.xcrosshairsWidth!==0){n.xaxisTooltip.classList.add("apexcharts-active");var r=n.xaxisOffY+t.config.xaxis.tooltip.offsetY+t.globals.translateY+1+t.config.xaxis.offsetY;if(e-=n.xaxisTooltip.getBoundingClientRect().width/2,!isNaN(e)){e+=t.globals.translateX;var a;a=new Q(this.ctx).getTextRects(n.xaxisTooltipText.innerHTML),n.xaxisTooltipText.style.minWidth=a.width+"px",n.xaxisTooltip.style.left=e+"px",n.xaxisTooltip.style.top=r+"px"}}}},{key:"moveYAxisTooltip",value:function(e){var t=this.w,n=this.ttCtx;n.yaxisTTEls===null&&(n.yaxisTTEls=t.globals.dom.baseEl.querySelectorAll(".apexcharts-yaxistooltip"));var r=parseInt(n.ycrosshairsHidden.getAttribute("y1"),10),a=t.globals.translateY+r,o=n.yaxisTTEls[e].getBoundingClientRect(),s=o.height,l=t.globals.translateYAxisX[e]-2;t.config.yaxis[e].opposite&&(l-=o.width),a-=s/2,t.globals.ignoreYAxisIndexes.indexOf(e)===-1&&a>0&&a<t.globals.gridHeight?(n.yaxisTTEls[e].classList.add("apexcharts-active"),n.yaxisTTEls[e].style.top=a+"px",n.yaxisTTEls[e].style.left=l+t.config.yaxis[e].tooltip.offsetX+"px"):n.yaxisTTEls[e].classList.remove("apexcharts-active")}},{key:"moveTooltip",value:function(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,r=this.w,a=this.ttCtx,o=a.getElTooltip(),s=a.tooltipRect,l=n!==null?parseFloat(n):1,h=parseFloat(e)+l+5,u=parseFloat(t)+l/2;if(h>r.globals.gridWidth/2&&(h=h-s.ttWidth-l-10),h>r.globals.gridWidth-s.ttWidth-10&&(h=r.globals.gridWidth-s.ttWidth),h<-20&&(h=-20),r.config.tooltip.followCursor){var c=a.getElGrid().getBoundingClientRect();(h=a.e.clientX-c.left)>r.globals.gridWidth/2&&(h-=a.tooltipRect.ttWidth),(u=a.e.clientY+r.globals.translateY-c.top)>r.globals.gridHeight/2&&(u-=a.tooltipRect.ttHeight)}else r.globals.isBarHorizontal||s.ttHeight/2+u>r.globals.gridHeight&&(u=r.globals.gridHeight-s.ttHeight+r.globals.translateY);isNaN(h)||(h+=r.globals.translateX,o.style.left=h+"px",o.style.top=u+"px")}},{key:"moveMarkers",value:function(e,t){var n=this.w,r=this.ttCtx;if(n.globals.markers.size[e]>0)for(var a=n.globals.dom.baseEl.querySelectorAll(" .apexcharts-series[data\\:realIndex='".concat(e,"'] .apexcharts-marker")),o=0;o<a.length;o++)parseInt(a[o].getAttribute("rel"),10)===t&&(r.marker.resetPointsSize(),r.marker.enlargeCurrentPoint(t,a[o]));else r.marker.resetPointsSize(),this.moveDynamicPointOnHover(t,e)}},{key:"moveDynamicPointOnHover",value:function(e,t){var n,r,a,o,s=this.w,l=this.ttCtx,h=new Q(this.ctx),u=s.globals.pointsArray,c=l.tooltipUtil.getHoverMarkerSize(t),f=s.config.series[t].type;if(!f||f!=="column"&&f!=="candlestick"&&f!=="boxPlot"){a=(n=u[t][e])===null||n===void 0?void 0:n[0],o=((r=u[t][e])===null||r===void 0?void 0:r[1])||0;var d=s.globals.dom.baseEl.querySelector(".apexcharts-series[data\\:realIndex='".concat(t,"'] .apexcharts-series-markers path"));if(d&&o<s.globals.gridHeight&&o>0){var p=d.getAttribute("shape"),g=h.getMarkerPath(a,o,p,1.5*c);d.setAttribute("d",g)}this.moveXCrosshairs(a),l.fixedTooltip||this.moveTooltip(a,o,c)}}},{key:"moveDynamicPointsOnHover",value:function(e){var t,n=this.ttCtx,r=n.w,a=0,o=0,s=r.globals.pointsArray,l=new jt(this.ctx),h=new Q(this.ctx);t=l.getActiveConfigSeriesIndex("asc",["line","area","scatter","bubble"]);var u=n.tooltipUtil.getHoverMarkerSize(t);if(s[t]&&(a=s[t][e][0],o=s[t][e][1]),!isNaN(a)){var c=n.tooltipUtil.getAllMarkers();if(c.length)for(var f=0;f<r.globals.series.length;f++){var d=s[f];if(r.globals.comboCharts&&d===void 0&&c.splice(f,0,null),d&&d.length){var p=s[f][e][1],g=void 0;c[f].setAttribute("cx",a);var m=c[f].getAttribute("shape");if(r.config.chart.type==="rangeArea"&&!r.globals.comboCharts){var v=e+r.globals.series[f].length;g=s[f][v][1],p-=Math.abs(p-g)/2}if(p!==null&&!isNaN(p)&&p<r.globals.gridHeight+u&&p+u>0){var y=h.getMarkerPath(a,p,m,u);c[f].setAttribute("d",y)}else c[f].setAttribute("d","")}}this.moveXCrosshairs(a),n.fixedTooltip||this.moveTooltip(a,o||r.globals.gridHeight,u)}}},{key:"moveStickyTooltipOverBars",value:function(e,t){var n=this.w,r=this.ttCtx,a=n.globals.columnSeries?n.globals.columnSeries.length:n.globals.series.length;n.config.chart.stacked&&(a=n.globals.barGroups.length);var o=a>=2&&a%2==0?Math.floor(a/2):Math.floor(a/2)+1;n.globals.isBarHorizontal&&(o=new jt(this.ctx).getActiveConfigSeriesIndex("desc")+1);var s=n.globals.dom.baseEl.querySelector(".apexcharts-bar-series .apexcharts-series[rel='".concat(o,"'] path[j='").concat(e,"'], .apexcharts-candlestick-series .apexcharts-series[rel='").concat(o,"'] path[j='").concat(e,"'], .apexcharts-boxPlot-series .apexcharts-series[rel='").concat(o,"'] path[j='").concat(e,"'], .apexcharts-rangebar-series .apexcharts-series[rel='").concat(o,"'] path[j='").concat(e,"']"));s||typeof t!="number"||(s=n.globals.dom.baseEl.querySelector(".apexcharts-bar-series .apexcharts-series[data\\:realIndex='".concat(t,"'] path[j='").concat(e,`'],
162
+ .apexcharts-candlestick-series .apexcharts-series[data\\:realIndex='`).concat(t,"'] path[j='").concat(e,`'],
163
+ .apexcharts-boxPlot-series .apexcharts-series[data\\:realIndex='`).concat(t,"'] path[j='").concat(e,`'],
164
+ .apexcharts-rangebar-series .apexcharts-series[data\\:realIndex='`).concat(t,"'] path[j='").concat(e,"']")));var l=s?parseFloat(s.getAttribute("cx")):0,h=s?parseFloat(s.getAttribute("cy")):0,u=s?parseFloat(s.getAttribute("barWidth")):0,c=r.getElGrid().getBoundingClientRect(),f=s&&(s.classList.contains("apexcharts-candlestick-area")||s.classList.contains("apexcharts-boxPlot-area"));n.globals.isXNumeric?(s&&!f&&(l-=a%2!=0?u/2:0),s&&f&&(l-=u/2)):n.globals.isBarHorizontal||(l=r.xAxisTicksPositions[e-1]+r.dataPointsDividedWidth/2,isNaN(l)&&(l=r.xAxisTicksPositions[e]-r.dataPointsDividedWidth/2)),n.globals.isBarHorizontal?h-=r.tooltipRect.ttHeight:n.config.tooltip.followCursor?h=r.e.clientY-c.top-r.tooltipRect.ttHeight/2:h+r.tooltipRect.ttHeight+15>n.globals.gridHeight&&(h=n.globals.gridHeight),n.globals.isBarHorizontal||this.moveXCrosshairs(l),r.fixedTooltip||this.moveTooltip(l,h||n.globals.gridHeight)}}]),i}(),lg=function(){function i(e){ae(this,i),this.w=e.w,this.ttCtx=e,this.ctx=e.ctx,this.tooltipPosition=new ah(e)}return oe(i,[{key:"drawDynamicPoints",value:function(){var e=this.w,t=new Q(this.ctx),n=new Ei(this.ctx),r=e.globals.dom.baseEl.querySelectorAll(".apexcharts-series");r=nt(r),e.config.chart.stacked&&r.sort(function(c,f){return parseFloat(c.getAttribute("data:realIndex"))-parseFloat(f.getAttribute("data:realIndex"))});for(var a=0;a<r.length;a++){var o=r[a].querySelector(".apexcharts-series-markers-wrap");if(o!==null){var s=void 0,l="apexcharts-marker w".concat((Math.random()+1).toString(36).substring(4));e.config.chart.type!=="line"&&e.config.chart.type!=="area"||e.globals.comboCharts||e.config.tooltip.intersect||(l+=" no-pointer-events");var h=n.getMarkerConfig({cssClass:l,seriesIndex:Number(o.getAttribute("data:realIndex"))});(s=t.drawMarker(0,0,h)).node.setAttribute("default-marker-size",0);var u=document.createElementNS(e.globals.SVGNS,"g");u.classList.add("apexcharts-series-markers"),u.appendChild(s.node),o.appendChild(u)}}}},{key:"enlargeCurrentPoint",value:function(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null,a=this.w;a.config.chart.type!=="bubble"&&this.newPointSize(e,t);var o=t.getAttribute("cx"),s=t.getAttribute("cy");if(n!==null&&r!==null&&(o=n,s=r),this.tooltipPosition.moveXCrosshairs(o),!this.fixedTooltip){if(a.config.chart.type==="radar"){var l=this.ttCtx.getElGrid().getBoundingClientRect();o=this.ttCtx.e.clientX-l.left}this.tooltipPosition.moveTooltip(o,s,a.config.markers.hover.size)}}},{key:"enlargePoints",value:function(e){for(var t=this.w,n=this,r=this.ttCtx,a=e,o=t.globals.dom.baseEl.querySelectorAll(".apexcharts-series:not(.apexcharts-series-collapsed) .apexcharts-marker"),s=t.config.markers.hover.size,l=0;l<o.length;l++){var h=o[l].getAttribute("rel"),u=o[l].getAttribute("index");if(s===void 0&&(s=t.globals.markers.size[u]+t.config.markers.hover.sizeOffset),a===parseInt(h,10)){n.newPointSize(a,o[l]);var c=o[l].getAttribute("cx"),f=o[l].getAttribute("cy");n.tooltipPosition.moveXCrosshairs(c),r.fixedTooltip||n.tooltipPosition.moveTooltip(c,f,s)}else n.oldPointSize(o[l])}}},{key:"newPointSize",value:function(e,t){var n=this.w,r=n.config.markers.hover.size,a=e===0?t.parentNode.firstChild:t.parentNode.lastChild;if(a.getAttribute("default-marker-size")!=="0"){var o=parseInt(a.getAttribute("index"),10);r===void 0&&(r=n.globals.markers.size[o]+n.config.markers.hover.sizeOffset),r<0&&(r=0);var s=this.ttCtx.tooltipUtil.getPathFromPoint(t,r);t.setAttribute("d",s)}}},{key:"oldPointSize",value:function(e){var t=parseFloat(e.getAttribute("default-marker-size")),n=this.ttCtx.tooltipUtil.getPathFromPoint(e,t);e.setAttribute("d",n)}},{key:"resetPointsSize",value:function(){for(var e=this.w.globals.dom.baseEl.querySelectorAll(".apexcharts-series:not(.apexcharts-series-collapsed) .apexcharts-marker"),t=0;t<e.length;t++){var n=parseFloat(e[t].getAttribute("default-marker-size"));if(q.isNumber(n)&&n>0){var r=this.ttCtx.tooltipUtil.getPathFromPoint(e[t],n);e[t].setAttribute("d",r)}else e[t].setAttribute("d","M0,0")}}}]),i}(),ug=function(){function i(e){ae(this,i),this.w=e.w;var t=this.w;this.ttCtx=e,this.isVerticalGroupedRangeBar=!t.globals.isBarHorizontal&&t.config.chart.type==="rangeBar"&&t.config.plotOptions.bar.rangeBarGroupRows}return oe(i,[{key:"getAttr",value:function(e,t){return parseFloat(e.target.getAttribute(t))}},{key:"handleHeatTreeTooltip",value:function(e){var t=e.e,n=e.opt,r=e.x,a=e.y,o=e.type,s=this.ttCtx,l=this.w;if(t.target.classList.contains("apexcharts-".concat(o,"-rect"))){var h=this.getAttr(t,"i"),u=this.getAttr(t,"j"),c=this.getAttr(t,"cx"),f=this.getAttr(t,"cy"),d=this.getAttr(t,"width"),p=this.getAttr(t,"height");if(s.tooltipLabels.drawSeriesTexts({ttItems:n.ttItems,i:h,j:u,shared:!1,e:t}),l.globals.capturedSeriesIndex=h,l.globals.capturedDataPointIndex=u,r=c+s.tooltipRect.ttWidth/2+d,a=f+s.tooltipRect.ttHeight/2-p/2,s.tooltipPosition.moveXCrosshairs(c+d/2),r>l.globals.gridWidth/2&&(r=c-s.tooltipRect.ttWidth/2+d),s.w.config.tooltip.followCursor){var g=l.globals.dom.elWrap.getBoundingClientRect();r=l.globals.clientX-g.left-(r>l.globals.gridWidth/2?s.tooltipRect.ttWidth:0),a=l.globals.clientY-g.top-(a>l.globals.gridHeight/2?s.tooltipRect.ttHeight:0)}}return{x:r,y:a}}},{key:"handleMarkerTooltip",value:function(e){var t,n,r=e.e,a=e.opt,o=e.x,s=e.y,l=this.w,h=this.ttCtx;if(r.target.classList.contains("apexcharts-marker")){var u=parseInt(a.paths.getAttribute("cx"),10),c=parseInt(a.paths.getAttribute("cy"),10),f=parseFloat(a.paths.getAttribute("val"));if(n=parseInt(a.paths.getAttribute("rel"),10),t=parseInt(a.paths.parentNode.parentNode.parentNode.getAttribute("rel"),10)-1,h.intersect){var d=q.findAncestor(a.paths,"apexcharts-series");d&&(t=parseInt(d.getAttribute("data:realIndex"),10))}if(h.tooltipLabels.drawSeriesTexts({ttItems:a.ttItems,i:t,j:n,shared:!h.showOnIntersect&&l.config.tooltip.shared,e:r}),r.type==="mouseup"&&h.markerClick(r,t,n),l.globals.capturedSeriesIndex=t,l.globals.capturedDataPointIndex=n,o=u,s=c+l.globals.translateY-1.4*h.tooltipRect.ttHeight,h.w.config.tooltip.followCursor){var p=h.getElGrid().getBoundingClientRect();s=h.e.clientY+l.globals.translateY-p.top}f<0&&(s=c),h.marker.enlargeCurrentPoint(n,a.paths,o,s)}return{x:o,y:s}}},{key:"handleBarTooltip",value:function(e){var t,n,r=e.e,a=e.opt,o=this.w,s=this.ttCtx,l=s.getElTooltip(),h=0,u=0,c=0,f=this.getBarTooltipXY({e:r,opt:a});if(f.j!==null||f.barHeight!==0||f.barWidth!==0){t=f.i;var d=f.j;if(o.globals.capturedSeriesIndex=t,o.globals.capturedDataPointIndex=d,o.globals.isBarHorizontal&&s.tooltipUtil.hasBars()||!o.config.tooltip.shared?(u=f.x,c=f.y,n=Array.isArray(o.config.stroke.width)?o.config.stroke.width[t]:o.config.stroke.width,h=u):o.globals.comboCharts||o.config.tooltip.shared||(h/=2),isNaN(c)&&(c=o.globals.svgHeight-s.tooltipRect.ttHeight),parseInt(a.paths.parentNode.getAttribute("data:realIndex"),10),u+s.tooltipRect.ttWidth>o.globals.gridWidth?u-=s.tooltipRect.ttWidth:u<0&&(u=0),s.w.config.tooltip.followCursor){var p=s.getElGrid().getBoundingClientRect();c=s.e.clientY-p.top}s.tooltip===null&&(s.tooltip=o.globals.dom.baseEl.querySelector(".apexcharts-tooltip")),o.config.tooltip.shared||(o.globals.comboBarCount>0?s.tooltipPosition.moveXCrosshairs(h+n/2):s.tooltipPosition.moveXCrosshairs(h)),!s.fixedTooltip&&(!o.config.tooltip.shared||o.globals.isBarHorizontal&&s.tooltipUtil.hasBars())&&(c=c+o.globals.translateY-s.tooltipRect.ttHeight/2,l.style.left=u+o.globals.translateX+"px",l.style.top=c+"px")}}},{key:"getBarTooltipXY",value:function(e){var t=this,n=e.e,r=e.opt,a=this.w,o=null,s=this.ttCtx,l=0,h=0,u=0,c=0,f=0,d=n.target.classList;if(d.contains("apexcharts-bar-area")||d.contains("apexcharts-candlestick-area")||d.contains("apexcharts-boxPlot-area")||d.contains("apexcharts-rangebar-area")){var p=n.target,g=p.getBoundingClientRect(),m=r.elGrid.getBoundingClientRect(),v=g.height;f=g.height;var y=g.width,b=parseInt(p.getAttribute("cx"),10),x=parseInt(p.getAttribute("cy"),10);c=parseFloat(p.getAttribute("barWidth"));var w=n.type==="touchmove"?n.touches[0].clientX:n.clientX;o=parseInt(p.getAttribute("j"),10),l=parseInt(p.parentNode.getAttribute("rel"),10)-1;var k=p.getAttribute("data-range-y1"),S=p.getAttribute("data-range-y2");a.globals.comboCharts&&(l=parseInt(p.parentNode.getAttribute("data:realIndex"),10));var A=function(_){return a.globals.isXNumeric?b-y/2:t.isVerticalGroupedRangeBar?b+y/2:b-s.dataPointsDividedWidth+y/2},O=function(){return x-s.dataPointsDividedHeight+v/2-s.tooltipRect.ttHeight/2};s.tooltipLabels.drawSeriesTexts({ttItems:r.ttItems,i:l,j:o,y1:k?parseInt(k,10):null,y2:S?parseInt(S,10):null,shared:!s.showOnIntersect&&a.config.tooltip.shared,e:n}),a.config.tooltip.followCursor?a.globals.isBarHorizontal?(h=w-m.left+15,u=O()):(h=A(),u=n.clientY-m.top-s.tooltipRect.ttHeight/2-15):a.globals.isBarHorizontal?((h=b)<s.xyRatios.baseLineInvertedY&&(h=b-s.tooltipRect.ttWidth),u=O()):(h=A(),u=x)}return{x:h,y:u,barHeight:f,barWidth:c,i:l,j:o}}}]),i}(),cg=function(){function i(e){ae(this,i),this.w=e.w,this.ttCtx=e}return oe(i,[{key:"drawXaxisTooltip",value:function(){var e=this.w,t=this.ttCtx,n=e.config.xaxis.position==="bottom";t.xaxisOffY=n?e.globals.gridHeight+1:-e.globals.xAxisHeight-e.config.xaxis.axisTicks.height+3;var r=n?"apexcharts-xaxistooltip apexcharts-xaxistooltip-bottom":"apexcharts-xaxistooltip apexcharts-xaxistooltip-top",a=e.globals.dom.elWrap;t.isXAxisTooltipEnabled&&e.globals.dom.baseEl.querySelector(".apexcharts-xaxistooltip")===null&&(t.xaxisTooltip=document.createElement("div"),t.xaxisTooltip.setAttribute("class",r+" apexcharts-theme-"+e.config.tooltip.theme),a.appendChild(t.xaxisTooltip),t.xaxisTooltipText=document.createElement("div"),t.xaxisTooltipText.classList.add("apexcharts-xaxistooltip-text"),t.xaxisTooltipText.style.fontFamily=e.config.xaxis.tooltip.style.fontFamily||e.config.chart.fontFamily,t.xaxisTooltipText.style.fontSize=e.config.xaxis.tooltip.style.fontSize,t.xaxisTooltip.appendChild(t.xaxisTooltipText))}},{key:"drawYaxisTooltip",value:function(){for(var e=this.w,t=this.ttCtx,n=0;n<e.config.yaxis.length;n++){var r=e.config.yaxis[n].opposite||e.config.yaxis[n].crosshairs.opposite;t.yaxisOffX=r?e.globals.gridWidth+1:1;var a="apexcharts-yaxistooltip apexcharts-yaxistooltip-".concat(n,r?" apexcharts-yaxistooltip-right":" apexcharts-yaxistooltip-left"),o=e.globals.dom.elWrap;e.globals.dom.baseEl.querySelector(".apexcharts-yaxistooltip apexcharts-yaxistooltip-".concat(n))===null&&(t.yaxisTooltip=document.createElement("div"),t.yaxisTooltip.setAttribute("class",a+" apexcharts-theme-"+e.config.tooltip.theme),o.appendChild(t.yaxisTooltip),n===0&&(t.yaxisTooltipText=[]),t.yaxisTooltipText[n]=document.createElement("div"),t.yaxisTooltipText[n].classList.add("apexcharts-yaxistooltip-text"),t.yaxisTooltip.appendChild(t.yaxisTooltipText[n]))}}},{key:"setXCrosshairWidth",value:function(){var e=this.w,t=this.ttCtx,n=t.getElXCrosshairs();if(t.xcrosshairsWidth=parseInt(e.config.xaxis.crosshairs.width,10),e.globals.comboCharts){var r=e.globals.dom.baseEl.querySelector(".apexcharts-bar-area");if(r!==null&&e.config.xaxis.crosshairs.width==="barWidth"){var a=parseFloat(r.getAttribute("barWidth"));t.xcrosshairsWidth=a}else if(e.config.xaxis.crosshairs.width==="tickWidth"){var o=e.globals.labels.length;t.xcrosshairsWidth=e.globals.gridWidth/o}}else if(e.config.xaxis.crosshairs.width==="tickWidth"){var s=e.globals.labels.length;t.xcrosshairsWidth=e.globals.gridWidth/s}else if(e.config.xaxis.crosshairs.width==="barWidth"){var l=e.globals.dom.baseEl.querySelector(".apexcharts-bar-area");if(l!==null){var h=parseFloat(l.getAttribute("barWidth"));t.xcrosshairsWidth=h}else t.xcrosshairsWidth=1}e.globals.isBarHorizontal&&(t.xcrosshairsWidth=0),n!==null&&t.xcrosshairsWidth>0&&n.setAttribute("width",t.xcrosshairsWidth)}},{key:"handleYCrosshair",value:function(){var e=this.w,t=this.ttCtx;t.ycrosshairs=e.globals.dom.baseEl.querySelector(".apexcharts-ycrosshairs"),t.ycrosshairsHidden=e.globals.dom.baseEl.querySelector(".apexcharts-ycrosshairs-hidden")}},{key:"drawYaxisTooltipText",value:function(e,t,n){var r=this.ttCtx,a=this.w,o=a.globals,s=o.seriesYAxisMap[e];if(r.yaxisTooltips[e]&&s.length>0){var l=o.yLabelFormatters[e],h=r.getElGrid().getBoundingClientRect(),u=s[0],c=0;n.yRatio.length>1&&(c=u);var f=(t-h.top)*n.yRatio[c],d=o.maxYArr[u]-o.minYArr[u],p=o.minYArr[u]+(d-f);a.config.yaxis[e].reversed&&(p=o.maxYArr[u]-(d-f)),r.tooltipPosition.moveYCrosshairs(t-h.top),r.yaxisTooltipText[e].innerHTML=l(p),r.tooltipPosition.moveYAxisTooltip(e)}}}]),i}(),Zl=function(){function i(e){ae(this,i),this.ctx=e,this.w=e.w;var t=this.w;this.tConfig=t.config.tooltip,this.tooltipUtil=new rh(this),this.tooltipLabels=new sg(this),this.tooltipPosition=new ah(this),this.marker=new lg(this),this.intersect=new ug(this),this.axesTooltip=new cg(this),this.showOnIntersect=this.tConfig.intersect,this.showTooltipTitle=this.tConfig.x.show,this.fixedTooltip=this.tConfig.fixed.enabled,this.xaxisTooltip=null,this.yaxisTTEls=null,this.isBarShared=!t.globals.isBarHorizontal&&this.tConfig.shared,this.lastHoverTime=Date.now()}return oe(i,[{key:"getElTooltip",value:function(e){return e||(e=this),e.w.globals.dom.baseEl?e.w.globals.dom.baseEl.querySelector(".apexcharts-tooltip"):null}},{key:"getElXCrosshairs",value:function(){return this.w.globals.dom.baseEl.querySelector(".apexcharts-xcrosshairs")}},{key:"getElGrid",value:function(){return this.w.globals.dom.baseEl.querySelector(".apexcharts-grid")}},{key:"drawTooltip",value:function(e){var t=this.w;this.xyRatios=e,this.isXAxisTooltipEnabled=t.config.xaxis.tooltip.enabled&&t.globals.axisCharts,this.yaxisTooltips=t.config.yaxis.map(function(o,s){return!!(o.show&&o.tooltip.enabled&&t.globals.axisCharts)}),this.allTooltipSeriesGroups=[],t.globals.axisCharts||(this.showTooltipTitle=!1);var n=document.createElement("div");if(n.classList.add("apexcharts-tooltip"),t.config.tooltip.cssClass&&n.classList.add(t.config.tooltip.cssClass),n.classList.add("apexcharts-theme-".concat(this.tConfig.theme||"light")),t.globals.dom.elWrap.appendChild(n),t.globals.axisCharts){this.axesTooltip.drawXaxisTooltip(),this.axesTooltip.drawYaxisTooltip(),this.axesTooltip.setXCrosshairWidth(),this.axesTooltip.handleYCrosshair();var r=new lr(this.ctx);this.xAxisTicksPositions=r.getXAxisTicksPositions()}if(!t.globals.comboCharts&&!this.tConfig.intersect&&t.config.chart.type!=="rangeBar"||this.tConfig.shared||(this.showOnIntersect=!0),t.config.markers.size!==0&&t.globals.markers.largestSize!==0||this.marker.drawDynamicPoints(this),t.globals.collapsedSeries.length!==t.globals.series.length){this.dataPointsDividedHeight=t.globals.gridHeight/t.globals.dataPoints,this.dataPointsDividedWidth=t.globals.gridWidth/t.globals.dataPoints,this.showTooltipTitle&&(this.tooltipTitle=document.createElement("div"),this.tooltipTitle.classList.add("apexcharts-tooltip-title"),this.tooltipTitle.style.fontFamily=this.tConfig.style.fontFamily||t.config.chart.fontFamily,this.tooltipTitle.style.fontSize=this.tConfig.style.fontSize,n.appendChild(this.tooltipTitle));var a=t.globals.series.length;(t.globals.xyCharts||t.globals.comboCharts)&&this.tConfig.shared&&(a=this.showOnIntersect?1:t.globals.series.length),this.legendLabels=t.globals.dom.baseEl.querySelectorAll(".apexcharts-legend-text"),this.ttItems=this.createTTElements(a),this.addSVGEvents()}}},{key:"createTTElements",value:function(e){for(var t=this,n=this.w,r=[],a=this.getElTooltip(),o=function(l){var h=document.createElement("div");h.classList.add("apexcharts-tooltip-series-group","apexcharts-tooltip-series-group-".concat(l)),h.style.order=n.config.tooltip.inverseOrder?e-l:l+1;var u=document.createElement("span");u.classList.add("apexcharts-tooltip-marker"),n.config.tooltip.fillSeriesColor?u.style.backgroundColor=n.globals.colors[l]:u.style.color=n.globals.colors[l];var c=n.config.markers.shape,f=c;Array.isArray(c)&&(f=c[l]),u.setAttribute("shape",f),h.appendChild(u);var d=document.createElement("div");d.classList.add("apexcharts-tooltip-text"),d.style.fontFamily=t.tConfig.style.fontFamily||n.config.chart.fontFamily,d.style.fontSize=t.tConfig.style.fontSize,["y","goals","z"].forEach(function(p){var g=document.createElement("div");g.classList.add("apexcharts-tooltip-".concat(p,"-group"));var m=document.createElement("span");m.classList.add("apexcharts-tooltip-text-".concat(p,"-label")),g.appendChild(m);var v=document.createElement("span");v.classList.add("apexcharts-tooltip-text-".concat(p,"-value")),g.appendChild(v),d.appendChild(g)}),h.appendChild(d),a.appendChild(h),r.push(h)},s=0;s<e;s++)o(s);return r}},{key:"addSVGEvents",value:function(){var e=this.w,t=e.config.chart.type,n=this.getElTooltip(),r=!(t!=="bar"&&t!=="candlestick"&&t!=="boxPlot"&&t!=="rangeBar"),a=t==="area"||t==="line"||t==="scatter"||t==="bubble"||t==="radar",o=e.globals.dom.Paper.node,s=this.getElGrid();s&&(this.seriesBound=s.getBoundingClientRect());var l,h=[],u=[],c={hoverArea:o,elGrid:s,tooltipEl:n,tooltipY:h,tooltipX:u,ttItems:this.ttItems};if(e.globals.axisCharts&&(a?l=e.globals.dom.baseEl.querySelectorAll(".apexcharts-series[data\\:longestSeries='true'] .apexcharts-marker"):r?l=e.globals.dom.baseEl.querySelectorAll(".apexcharts-series .apexcharts-bar-area, .apexcharts-series .apexcharts-candlestick-area, .apexcharts-series .apexcharts-boxPlot-area, .apexcharts-series .apexcharts-rangebar-area"):t!=="heatmap"&&t!=="treemap"||(l=e.globals.dom.baseEl.querySelectorAll(".apexcharts-series .apexcharts-heatmap, .apexcharts-series .apexcharts-treemap")),l&&l.length))for(var f=0;f<l.length;f++)h.push(l[f].getAttribute("cy")),u.push(l[f].getAttribute("cx"));if(e.globals.xyCharts&&!this.showOnIntersect||e.globals.comboCharts&&!this.showOnIntersect||r&&this.tooltipUtil.hasBars()&&this.tConfig.shared)this.addPathsEventListeners([o],c);else if(r&&!e.globals.comboCharts||a&&this.showOnIntersect)this.addDatapointEventsListeners(c);else if(!e.globals.axisCharts||t==="heatmap"||t==="treemap"){var d=e.globals.dom.baseEl.querySelectorAll(".apexcharts-series");this.addPathsEventListeners(d,c)}if(this.showOnIntersect){var p=e.globals.dom.baseEl.querySelectorAll(".apexcharts-line-series .apexcharts-marker, .apexcharts-area-series .apexcharts-marker");p.length>0&&this.addPathsEventListeners(p,c),this.tooltipUtil.hasBars()&&!this.tConfig.shared&&this.addDatapointEventsListeners(c)}}},{key:"drawFixedTooltipRect",value:function(){var e=this.w,t=this.getElTooltip(),n=t.getBoundingClientRect(),r=n.width+10,a=n.height+10,o=this.tConfig.fixed.offsetX,s=this.tConfig.fixed.offsetY,l=this.tConfig.fixed.position.toLowerCase();return l.indexOf("right")>-1&&(o=o+e.globals.svgWidth-r+10),l.indexOf("bottom")>-1&&(s=s+e.globals.svgHeight-a-10),t.style.left=o+"px",t.style.top=s+"px",{x:o,y:s,ttWidth:r,ttHeight:a}}},{key:"addDatapointEventsListeners",value:function(e){var t=this.w.globals.dom.baseEl.querySelectorAll(".apexcharts-series-markers .apexcharts-marker, .apexcharts-bar-area, .apexcharts-candlestick-area, .apexcharts-boxPlot-area, .apexcharts-rangebar-area");this.addPathsEventListeners(t,e)}},{key:"addPathsEventListeners",value:function(e,t){for(var n=this,r=function(o){var s={paths:e[o],tooltipEl:t.tooltipEl,tooltipY:t.tooltipY,tooltipX:t.tooltipX,elGrid:t.elGrid,hoverArea:t.hoverArea,ttItems:t.ttItems};["mousemove","mouseup","touchmove","mouseout","touchend"].map(function(l){return e[o].addEventListener(l,n.onSeriesHover.bind(n,s),{capture:!1,passive:!0})})},a=0;a<e.length;a++)r(a)}},{key:"onSeriesHover",value:function(e,t){var n=this,r=Date.now()-this.lastHoverTime;r>=20?this.seriesHover(e,t):(clearTimeout(this.seriesHoverTimeout),this.seriesHoverTimeout=setTimeout(function(){n.seriesHover(e,t)},20-r))}},{key:"seriesHover",value:function(e,t){var n=this;this.lastHoverTime=Date.now();var r=[],a=this.w;a.config.chart.group&&(r=this.ctx.getGroupedCharts()),a.globals.axisCharts&&(a.globals.minX===-1/0&&a.globals.maxX===1/0||a.globals.dataPoints===0)||(r.length?r.forEach(function(o){var s=n.getElTooltip(o),l={paths:e.paths,tooltipEl:s,tooltipY:e.tooltipY,tooltipX:e.tooltipX,elGrid:e.elGrid,hoverArea:e.hoverArea,ttItems:o.w.globals.tooltip.ttItems};o.w.globals.minX===n.w.globals.minX&&o.w.globals.maxX===n.w.globals.maxX&&o.w.globals.tooltip.seriesHoverByContext({chartCtx:o,ttCtx:o.w.globals.tooltip,opt:l,e:t})}):this.seriesHoverByContext({chartCtx:this.ctx,ttCtx:this.w.globals.tooltip,opt:e,e:t}))}},{key:"seriesHoverByContext",value:function(e){var t=e.chartCtx,n=e.ttCtx,r=e.opt,a=e.e,o=t.w,s=this.getElTooltip(t);s&&(n.tooltipRect={x:0,y:0,ttWidth:s.getBoundingClientRect().width,ttHeight:s.getBoundingClientRect().height},n.e=a,n.tooltipUtil.hasBars()&&!o.globals.comboCharts&&!n.isBarShared&&this.tConfig.onDatasetHover.highlightDataSeries&&new jt(t).toggleSeriesOnHover(a,a.target.parentNode),o.globals.axisCharts?n.axisChartsTooltips({e:a,opt:r,tooltipRect:n.tooltipRect}):n.nonAxisChartsTooltips({e:a,opt:r,tooltipRect:n.tooltipRect}),n.fixedTooltip&&n.drawFixedTooltipRect())}},{key:"axisChartsTooltips",value:function(e){var t,n,r=e.e,a=e.opt,o=this.w,s=a.elGrid.getBoundingClientRect(),l=r.type==="touchmove"?r.touches[0].clientX:r.clientX,h=r.type==="touchmove"?r.touches[0].clientY:r.clientY;if(this.clientY=h,this.clientX=l,o.globals.capturedSeriesIndex=-1,o.globals.capturedDataPointIndex=-1,h<s.top||h>s.top+s.height)this.handleMouseOut(a);else{if(Array.isArray(this.tConfig.enabledOnSeries)&&!o.config.tooltip.shared){var u=parseInt(a.paths.getAttribute("index"),10);if(this.tConfig.enabledOnSeries.indexOf(u)<0)return void this.handleMouseOut(a)}var c=this.getElTooltip(),f=this.getElXCrosshairs(),d=[];o.config.chart.group&&(d=this.ctx.getSyncedCharts());var p=o.globals.xyCharts||o.config.chart.type==="bar"&&!o.globals.isBarHorizontal&&this.tooltipUtil.hasBars()&&this.tConfig.shared||o.globals.comboCharts&&this.tooltipUtil.hasBars();if(r.type==="mousemove"||r.type==="touchmove"||r.type==="mouseup"){if(o.globals.collapsedSeries.length+o.globals.ancillaryCollapsedSeries.length===o.globals.series.length)return;f!==null&&f.classList.add("apexcharts-active");var g=this.yaxisTooltips.filter(function(y){return y===!0});if(this.ycrosshairs!==null&&g.length&&this.ycrosshairs.classList.add("apexcharts-active"),p&&!this.showOnIntersect||d.length>1)this.handleStickyTooltip(r,l,h,a);else if(o.config.chart.type==="heatmap"||o.config.chart.type==="treemap"){var m=this.intersect.handleHeatTreeTooltip({e:r,opt:a,x:t,y:n,type:o.config.chart.type});t=m.x,n=m.y,c.style.left=t+"px",c.style.top=n+"px"}else this.tooltipUtil.hasBars()&&this.intersect.handleBarTooltip({e:r,opt:a}),this.tooltipUtil.hasMarkers()&&this.intersect.handleMarkerTooltip({e:r,opt:a,x:t,y:n});if(this.yaxisTooltips.length)for(var v=0;v<o.config.yaxis.length;v++)this.axesTooltip.drawYaxisTooltipText(v,h,this.xyRatios);o.globals.dom.baseEl.classList.add("apexcharts-tooltip-active"),a.tooltipEl.classList.add("apexcharts-active")}else r.type!=="mouseout"&&r.type!=="touchend"||this.handleMouseOut(a)}}},{key:"nonAxisChartsTooltips",value:function(e){var t=e.e,n=e.opt,r=e.tooltipRect,a=this.w,o=n.paths.getAttribute("rel"),s=this.getElTooltip(),l=a.globals.dom.elWrap.getBoundingClientRect();if(t.type==="mousemove"||t.type==="touchmove"){a.globals.dom.baseEl.classList.add("apexcharts-tooltip-active"),s.classList.add("apexcharts-active"),this.tooltipLabels.drawSeriesTexts({ttItems:n.ttItems,i:parseInt(o,10)-1,shared:!1});var h=a.globals.clientX-l.left-r.ttWidth/2,u=a.globals.clientY-l.top-r.ttHeight-10;if(s.style.left=h+"px",s.style.top=u+"px",a.config.legend.tooltipHoverFormatter){var c=o-1,f=(0,a.config.legend.tooltipHoverFormatter)(this.legendLabels[c].getAttribute("data:default-text"),{seriesIndex:c,dataPointIndex:c,w:a});this.legendLabels[c].innerHTML=f}}else t.type!=="mouseout"&&t.type!=="touchend"||(s.classList.remove("apexcharts-active"),a.globals.dom.baseEl.classList.remove("apexcharts-tooltip-active"),a.config.legend.tooltipHoverFormatter&&this.legendLabels.forEach(function(d){var p=d.getAttribute("data:default-text");d.innerHTML=decodeURIComponent(p)}))}},{key:"handleStickyTooltip",value:function(e,t,n,r){var a=this.w,o=this.tooltipUtil.getNearestValues({context:this,hoverArea:r.hoverArea,elGrid:r.elGrid,clientX:t,clientY:n}),s=o.j,l=o.capturedSeries;a.globals.collapsedSeriesIndices.includes(l)&&(l=null);var h=r.elGrid.getBoundingClientRect();if(o.hoverX<0||o.hoverX>h.width)this.handleMouseOut(r);else if(l!==null)this.handleStickyCapturedSeries(e,l,r,s);else if(this.tooltipUtil.isXoverlap(s)||a.globals.isBarHorizontal){var u=a.globals.series.findIndex(function(c,f){return!a.globals.collapsedSeriesIndices.includes(f)});this.create(e,this,u,s,r.ttItems)}}},{key:"handleStickyCapturedSeries",value:function(e,t,n,r){var a=this.w;if(!this.tConfig.shared&&a.globals.series[t][r]===null)return void this.handleMouseOut(n);if(a.globals.series[t][r]!==void 0)this.tConfig.shared&&this.tooltipUtil.isXoverlap(r)&&this.tooltipUtil.isInitialSeriesSameLen()?this.create(e,this,t,r,n.ttItems):this.create(e,this,t,r,n.ttItems,!1);else if(this.tooltipUtil.isXoverlap(r)){var o=a.globals.series.findIndex(function(s,l){return!a.globals.collapsedSeriesIndices.includes(l)});this.create(e,this,o,r,n.ttItems)}}},{key:"deactivateHoverFilter",value:function(){for(var e=this.w,t=new Q(this.ctx),n=e.globals.dom.Paper.find(".apexcharts-bar-area"),r=0;r<n.length;r++)t.pathMouseLeave(n[r])}},{key:"handleMouseOut",value:function(e){var t=this.w,n=this.getElXCrosshairs();if(t.globals.dom.baseEl.classList.remove("apexcharts-tooltip-active"),e.tooltipEl.classList.remove("apexcharts-active"),this.deactivateHoverFilter(),t.config.chart.type!=="bubble"&&this.marker.resetPointsSize(),n!==null&&n.classList.remove("apexcharts-active"),this.ycrosshairs!==null&&this.ycrosshairs.classList.remove("apexcharts-active"),this.isXAxisTooltipEnabled&&this.xaxisTooltip.classList.remove("apexcharts-active"),this.yaxisTooltips.length){this.yaxisTTEls===null&&(this.yaxisTTEls=t.globals.dom.baseEl.querySelectorAll(".apexcharts-yaxistooltip"));for(var r=0;r<this.yaxisTTEls.length;r++)this.yaxisTTEls[r].classList.remove("apexcharts-active")}t.config.legend.tooltipHoverFormatter&&this.legendLabels.forEach(function(a){var o=a.getAttribute("data:default-text");a.innerHTML=decodeURIComponent(o)})}},{key:"markerClick",value:function(e,t,n){var r=this.w;typeof r.config.chart.events.markerClick=="function"&&r.config.chart.events.markerClick(e,this.ctx,{seriesIndex:t,dataPointIndex:n,w:r}),this.ctx.events.fireEvent("markerClick",[e,this.ctx,{seriesIndex:t,dataPointIndex:n,w:r}])}},{key:"create",value:function(e,t,n,r,a){var o,s,l,h,u,c,f,d,p,g,m,v,y,b,x,w,k=arguments.length>5&&arguments[5]!==void 0?arguments[5]:null,S=this.w,A=t;e.type==="mouseup"&&this.markerClick(e,n,r),k===null&&(k=this.tConfig.shared);var O=this.tooltipUtil.hasMarkers(n),_=this.tooltipUtil.getElBars(),C=function(){S.globals.markers.largestSize>0?A.marker.enlargePoints(r):A.tooltipPosition.moveDynamicPointsOnHover(r)};if(S.config.legend.tooltipHoverFormatter){var M=S.config.legend.tooltipHoverFormatter,P=Array.from(this.legendLabels);P.forEach(function(H){var Y=H.getAttribute("data:default-text");H.innerHTML=decodeURIComponent(Y)});for(var E=0;E<P.length;E++){var R=P[E],T=parseInt(R.getAttribute("i"),10),F=decodeURIComponent(R.getAttribute("data:default-text")),B=M(F,{seriesIndex:k?T:n,dataPointIndex:r,w:S});if(k)R.innerHTML=S.globals.collapsedSeriesIndices.indexOf(T)<0?B:F;else if(R.innerHTML=T===n?B:F,n===T)break}}var D=ne(ne({ttItems:a,i:n,j:r},((o=S.globals.seriesRange)===null||o===void 0||(s=o[n])===null||s===void 0||(l=s[r])===null||l===void 0||(h=l.y[0])===null||h===void 0?void 0:h.y1)!==void 0&&{y1:(u=S.globals.seriesRange)===null||u===void 0||(c=u[n])===null||c===void 0||(f=c[r])===null||f===void 0||(d=f.y[0])===null||d===void 0?void 0:d.y1}),((p=S.globals.seriesRange)===null||p===void 0||(g=p[n])===null||g===void 0||(m=g[r])===null||m===void 0||(v=m.y[0])===null||v===void 0?void 0:v.y2)!==void 0&&{y2:(y=S.globals.seriesRange)===null||y===void 0||(b=y[n])===null||b===void 0||(x=b[r])===null||x===void 0||(w=x.y[0])===null||w===void 0?void 0:w.y2});if(k){if(A.tooltipLabels.drawSeriesTexts(ne(ne({},D),{},{shared:!this.showOnIntersect&&this.tConfig.shared})),O)C();else if(this.tooltipUtil.hasBars()&&(this.barSeriesHeight=this.tooltipUtil.getBarsHeight(_),this.barSeriesHeight>0)){var N=new Q(this.ctx),L=S.globals.dom.Paper.find(".apexcharts-bar-area[j='".concat(r,"']"));this.deactivateHoverFilter(),A.tooltipUtil.getAllMarkers(!0).length&&!this.barSeriesHeight&&C(),A.tooltipPosition.moveStickyTooltipOverBars(r,n);for(var I=0;I<L.length;I++)N.pathMouseEnter(L[I])}}else A.tooltipLabels.drawSeriesTexts(ne({shared:!1},D)),this.tooltipUtil.hasBars()&&A.tooltipPosition.moveStickyTooltipOverBars(r,n),O&&A.tooltipPosition.moveMarkers(n,r)}}]),i}(),hg=function(){function i(e){ae(this,i),this.w=e.w,this.barCtx=e,this.totalFormatter=this.w.config.plotOptions.bar.dataLabels.total.formatter,this.totalFormatter||(this.totalFormatter=this.w.config.dataLabels.formatter)}return oe(i,[{key:"handleBarDataLabels",value:function(e){var t,n,r=e.x,a=e.y,o=e.y1,s=e.y2,l=e.i,h=e.j,u=e.realIndex,c=e.columnGroupIndex,f=e.series,d=e.barHeight,p=e.barWidth,g=e.barXPosition,m=e.barYPosition,v=e.visibleSeries,y=this.w,b=new Q(this.barCtx.ctx),x=Array.isArray(this.barCtx.strokeWidth)?this.barCtx.strokeWidth[u]:this.barCtx.strokeWidth;y.globals.isXNumeric&&!y.globals.isBarHorizontal?(t=r+parseFloat(p*(v+1)),n=a+parseFloat(d*(v+1))-x):(t=r+parseFloat(p*v),n=a+parseFloat(d*v));var w,k=null,S=r,A=a,O={},_=y.config.dataLabels,C=this.barCtx.barOptions.dataLabels,M=this.barCtx.barOptions.dataLabels.total;m!==void 0&&this.barCtx.isRangeBar&&(n=m,A=m),g!==void 0&&this.barCtx.isVerticalGroupedRangeBar&&(t=g,S=g);var P=_.offsetX,E=_.offsetY,R={width:0,height:0};if(y.config.dataLabels.enabled){var T=y.globals.series[l][h];R=b.getTextRects(y.config.dataLabels.formatter?y.config.dataLabels.formatter(T,ne(ne({},y),{},{seriesIndex:l,dataPointIndex:h,w:y})):y.globals.yLabelFormatters[0](T),parseFloat(_.style.fontSize))}var F={x:r,y:a,i:l,j:h,realIndex:u,columnGroupIndex:c,bcx:t,bcy:n,barHeight:d,barWidth:p,textRects:R,strokeWidth:x,dataLabelsX:S,dataLabelsY:A,dataLabelsConfig:_,barDataLabelsConfig:C,barTotalDataLabelsConfig:M,offX:P,offY:E};return O=this.barCtx.isHorizontal?this.calculateBarsDataLabelsPosition(F):this.calculateColumnsDataLabelsPosition(F),w=this.drawCalculatedDataLabels({x:O.dataLabelsX,y:O.dataLabelsY,val:this.barCtx.isRangeBar?[o,s]:y.config.chart.stackType==="100%"?f[u][h]:y.globals.series[u][h],i:u,j:h,barWidth:p,barHeight:d,textRects:R,dataLabelsConfig:_}),y.config.chart.stacked&&M.enabled&&(k=this.drawTotalDataLabels({x:O.totalDataLabelsX,y:O.totalDataLabelsY,barWidth:p,barHeight:d,realIndex:u,textAnchor:O.totalDataLabelsAnchor,val:this.getStackedTotalDataLabel({realIndex:u,j:h}),dataLabelsConfig:_,barTotalDataLabelsConfig:M})),{dataLabelsPos:O,dataLabels:w,totalDataLabels:k}}},{key:"getStackedTotalDataLabel",value:function(e){var t=e.realIndex,n=e.j,r=this.w,a=this.barCtx.stackedSeriesTotals[n];return this.totalFormatter&&(a=this.totalFormatter(a,ne(ne({},r),{},{seriesIndex:t,dataPointIndex:n,w:r}))),a}},{key:"calculateColumnsDataLabelsPosition",value:function(e){var t=this,n=this.w,r=e.i,a=e.j,o=e.realIndex;e.columnGroupIndex;var s,l,h=e.y,u=e.bcx,c=e.barWidth,f=e.barHeight,d=e.textRects,p=e.dataLabelsX,g=e.dataLabelsY,m=e.dataLabelsConfig,v=e.barDataLabelsConfig,y=e.barTotalDataLabelsConfig,b=e.strokeWidth,x=e.offX,w=e.offY,k=u;f=Math.abs(f);var S=n.config.plotOptions.bar.dataLabels.orientation==="vertical",A=this.barCtx.barHelpers.getZeroValueEncounters({i:r,j:a}).zeroEncounters;u-=b/2;var O=n.globals.gridWidth/n.globals.dataPoints;this.barCtx.isVerticalGroupedRangeBar?p+=c/2:(p=n.globals.isXNumeric?u-c/2+x:u-O+c/2+x,!n.config.chart.stacked&&A>0&&n.config.plotOptions.bar.hideZeroBarsWhenGrouped&&(p-=c*A)),S&&(p=p+d.height/2-b/2-2);var _=n.globals.series[r][a]<0,C=h;switch(this.barCtx.isReversed&&(C=h+(_?f:-f)),v.position){case"center":g=S?_?C-f/2+w:C+f/2-w:_?C-f/2+d.height/2+w:C+f/2+d.height/2-w;break;case"bottom":g=S?_?C-f+w:C+f-w:_?C-f+d.height+b+w:C+f-d.height/2+b-w;break;case"top":g=S?_?C+w:C-w:_?C-d.height/2-w:C+d.height+w}var M=C;if(n.globals.seriesGroups.forEach(function(R){var T;(T=t.barCtx[R.join(",")])===null||T===void 0||T.prevY.forEach(function(F){M=_?Math.max(F[a],M):Math.min(F[a],M)})}),this.barCtx.lastActiveBarSerieIndex===o&&y.enabled){var P=new Q(this.barCtx.ctx).getTextRects(this.getStackedTotalDataLabel({realIndex:o,j:a}),m.fontSize);s=_?M-P.height/2-w-y.offsetY+18:M+P.height+w+y.offsetY-18;var E=O;l=k+(n.globals.isXNumeric?-c*n.globals.barGroups.length/2:n.globals.barGroups.length*c/2-(n.globals.barGroups.length-1)*c-E)+y.offsetX}return n.config.chart.stacked||(g<0?g=0+b:g+d.height/3>n.globals.gridHeight&&(g=n.globals.gridHeight-b)),{bcx:u,bcy:h,dataLabelsX:p,dataLabelsY:g,totalDataLabelsX:l,totalDataLabelsY:s,totalDataLabelsAnchor:"middle"}}},{key:"calculateBarsDataLabelsPosition",value:function(e){var t=this,n=this.w,r=e.x,a=e.i,o=e.j,s=e.realIndex,l=e.bcy,h=e.barHeight,u=e.barWidth,c=e.textRects,f=e.dataLabelsX,d=e.strokeWidth,p=e.dataLabelsConfig,g=e.barDataLabelsConfig,m=e.barTotalDataLabelsConfig,v=e.offX,y=e.offY,b=n.globals.gridHeight/n.globals.dataPoints,x=this.barCtx.barHelpers.getZeroValueEncounters({i:a,j:o}).zeroEncounters;u=Math.abs(u);var w,k,S=l-(this.barCtx.isRangeBar?0:b)+h/2+c.height/2+y-3;!n.config.chart.stacked&&x>0&&n.config.plotOptions.bar.hideZeroBarsWhenGrouped&&(S-=h*x);var A="start",O=n.globals.series[a][o]<0,_=r;switch(this.barCtx.isReversed&&(_=r+(O?-u:u),A=O?"start":"end"),g.position){case"center":f=O?_+u/2-v:Math.max(c.width/2,_-u/2)+v;break;case"bottom":f=O?_+u-d-v:_-u+d+v;break;case"top":f=O?_-d-v:_-d+v}var C=_;if(n.globals.seriesGroups.forEach(function(P){var E;(E=t.barCtx[P.join(",")])===null||E===void 0||E.prevX.forEach(function(R){C=O?Math.min(R[o],C):Math.max(R[o],C)})}),this.barCtx.lastActiveBarSerieIndex===s&&m.enabled){var M=new Q(this.barCtx.ctx).getTextRects(this.getStackedTotalDataLabel({realIndex:s,j:o}),p.fontSize);O?(w=C-d-v-m.offsetX,A="end"):w=C+v+m.offsetX+(this.barCtx.isReversed?-(u+d):d),k=S-c.height/2+M.height/2+m.offsetY+d,n.globals.barGroups.length>1&&(k-=n.globals.barGroups.length/2*(h/2))}return n.config.chart.stacked||(p.textAnchor==="start"?f-c.width<0?f=O?c.width+d:d:f+c.width>n.globals.gridWidth&&(f=O?n.globals.gridWidth-d:n.globals.gridWidth-c.width-d):p.textAnchor==="middle"?f-c.width/2<0?f=c.width/2+d:f+c.width/2>n.globals.gridWidth&&(f=n.globals.gridWidth-c.width/2-d):p.textAnchor==="end"&&(f<1?f=c.width+d:f+1>n.globals.gridWidth&&(f=n.globals.gridWidth-c.width-d))),{bcx:r,bcy:l,dataLabelsX:f,dataLabelsY:S,totalDataLabelsX:w,totalDataLabelsY:k,totalDataLabelsAnchor:A}}},{key:"drawCalculatedDataLabels",value:function(e){var t=e.x,n=e.y,r=e.val,a=e.i,o=e.j,s=e.textRects,l=e.barHeight,h=e.barWidth,u=e.dataLabelsConfig,c=this.w,f="rotate(0)";c.config.plotOptions.bar.dataLabels.orientation==="vertical"&&(f="rotate(-90, ".concat(t,", ").concat(n,")"));var d=new vi(this.barCtx.ctx),p=new Q(this.barCtx.ctx),g=u.formatter,m=null,v=c.globals.collapsedSeriesIndices.indexOf(a)>-1;if(u.enabled&&!v){m=p.group({class:"apexcharts-data-labels",transform:f});var y="";r!==void 0&&(y=g(r,ne(ne({},c),{},{seriesIndex:a,dataPointIndex:o,w:c}))),!r&&c.config.plotOptions.bar.hideZeroBarsWhenGrouped&&(y="");var b=c.globals.series[a][o]<0,x=c.config.plotOptions.bar.dataLabels.position;c.config.plotOptions.bar.dataLabels.orientation==="vertical"&&(x==="top"&&(u.textAnchor=b?"end":"start"),x==="center"&&(u.textAnchor="middle"),x==="bottom"&&(u.textAnchor=b?"end":"start")),this.barCtx.isRangeBar&&this.barCtx.barOptions.dataLabels.hideOverflowingLabels&&h<p.getTextRects(y,parseFloat(u.style.fontSize)).width&&(y=""),c.config.chart.stacked&&this.barCtx.barOptions.dataLabels.hideOverflowingLabels&&(this.barCtx.isHorizontal?s.width/1.6>Math.abs(h)&&(y=""):s.height/1.6>Math.abs(l)&&(y=""));var w=ne({},u);this.barCtx.isHorizontal&&r<0&&(u.textAnchor==="start"?w.textAnchor="end":u.textAnchor==="end"&&(w.textAnchor="start")),d.plotDataLabelsText({x:t,y:n,text:y,i:a,j:o,parent:m,dataLabelsConfig:w,alwaysDrawDataLabel:!0,offsetCorrection:!0})}return m}},{key:"drawTotalDataLabels",value:function(e){var t=e.x,n=e.y,r=e.val,a=e.realIndex,o=e.textAnchor,s=e.barTotalDataLabelsConfig;this.w;var l,h=new Q(this.barCtx.ctx);return s.enabled&&t!==void 0&&n!==void 0&&this.barCtx.lastActiveBarSerieIndex===a&&(l=h.drawText({x:t,y:n,foreColor:s.style.color,text:r,textAnchor:o,fontFamily:s.style.fontFamily,fontSize:s.style.fontSize,fontWeight:s.style.fontWeight})),l}}]),i}(),fg=function(){function i(e){ae(this,i),this.w=e.w,this.barCtx=e}return oe(i,[{key:"initVariables",value:function(e){var t=this.w;this.barCtx.series=e,this.barCtx.totalItems=0,this.barCtx.seriesLen=0,this.barCtx.visibleI=-1,this.barCtx.visibleItems=1;for(var n=0;n<e.length;n++)if(e[n].length>0&&(this.barCtx.seriesLen=this.barCtx.seriesLen+1,this.barCtx.totalItems+=e[n].length),t.globals.isXNumeric)for(var r=0;r<e[n].length;r++)t.globals.seriesX[n][r]>t.globals.minX&&t.globals.seriesX[n][r]<t.globals.maxX&&this.barCtx.visibleItems++;else this.barCtx.visibleItems=t.globals.dataPoints;this.arrBorderRadius=this.createBorderRadiusArr(t.globals.series),q.isSafari()&&(this.arrBorderRadius=this.arrBorderRadius.map(function(a){return a.map(function(o){return"none"})})),this.barCtx.seriesLen===0&&(this.barCtx.seriesLen=1),this.barCtx.zeroSerieses=[],t.globals.comboCharts||this.checkZeroSeries({series:e})}},{key:"initialPositions",value:function(e){var t,n,r,a,o,s,l,h,u=this.w,c=u.globals.dataPoints;this.barCtx.isRangeBar&&(c=u.globals.labels.length);var f=this.barCtx.seriesLen;if(u.config.plotOptions.bar.rangeBarGroupRows&&(f=1),this.barCtx.isHorizontal)o=(r=u.globals.gridHeight/c)/f,u.globals.isXNumeric&&(o=(r=u.globals.gridHeight/this.barCtx.totalItems)/this.barCtx.seriesLen),o=o*parseInt(this.barCtx.barOptions.barHeight,10)/100,String(this.barCtx.barOptions.barHeight).indexOf("%")===-1&&(o=parseInt(this.barCtx.barOptions.barHeight,10)),h=this.barCtx.baseLineInvertedY+u.globals.padHorizontal+(this.barCtx.isReversed?u.globals.gridWidth:0)-(this.barCtx.isReversed?2*this.barCtx.baseLineInvertedY:0),this.barCtx.isFunnel&&(h=u.globals.gridWidth/2),n=(r-o*this.barCtx.seriesLen)/2;else{if(a=u.globals.gridWidth/this.barCtx.visibleItems,u.config.xaxis.convertedCatToNumeric&&(a=u.globals.gridWidth/u.globals.dataPoints),s=a/f*parseInt(this.barCtx.barOptions.columnWidth,10)/100,u.globals.isXNumeric){var d=this.barCtx.xRatio;u.globals.minXDiff&&u.globals.minXDiff!==.5&&u.globals.minXDiff/d>0&&(a=u.globals.minXDiff/d),(s=a/f*parseInt(this.barCtx.barOptions.columnWidth,10)/100)<1&&(s=1)}String(this.barCtx.barOptions.columnWidth).indexOf("%")===-1&&(s=parseInt(this.barCtx.barOptions.columnWidth,10)),l=u.globals.gridHeight-this.barCtx.baseLineY[this.barCtx.translationsIndex]-(this.barCtx.isReversed?u.globals.gridHeight:0)+(this.barCtx.isReversed?2*this.barCtx.baseLineY[this.barCtx.translationsIndex]:0),u.globals.isXNumeric?t=this.barCtx.getBarXForNumericXAxis({x:t,j:0,realIndex:e,barWidth:s}).x:t=u.globals.padHorizontal+q.noExponents(a-s*this.barCtx.seriesLen)/2}return u.globals.barHeight=o,u.globals.barWidth=s,{x:t,y:n,yDivision:r,xDivision:a,barHeight:o,barWidth:s,zeroH:l,zeroW:h}}},{key:"initializeStackedPrevVars",value:function(e){e.w.globals.seriesGroups.forEach(function(t){e[t]||(e[t]={}),e[t].prevY=[],e[t].prevX=[],e[t].prevYF=[],e[t].prevXF=[],e[t].prevYVal=[],e[t].prevXVal=[]})}},{key:"initializeStackedXYVars",value:function(e){e.w.globals.seriesGroups.forEach(function(t){e[t]||(e[t]={}),e[t].xArrj=[],e[t].xArrjF=[],e[t].xArrjVal=[],e[t].yArrj=[],e[t].yArrjF=[],e[t].yArrjVal=[]})}},{key:"getPathFillColor",value:function(e,t,n,r){var a,o,s,l,h=this.w,u=this.barCtx.ctx.fill,c=null,f=this.barCtx.barOptions.distributed?n:t,d=!1;return this.barCtx.barOptions.colors.ranges.length>0&&this.barCtx.barOptions.colors.ranges.map(function(p){e[t][n]>=p.from&&e[t][n]<=p.to&&(c=p.color,d=!0)}),{color:u.fillPath({seriesNumber:this.barCtx.barOptions.distributed?f:r,dataPointIndex:n,color:c,value:e[t][n],fillConfig:(a=h.config.series[t].data[n])===null||a===void 0?void 0:a.fill,fillType:(o=h.config.series[t].data[n])!==null&&o!==void 0&&(s=o.fill)!==null&&s!==void 0&&s.type?(l=h.config.series[t].data[n])===null||l===void 0?void 0:l.fill.type:Array.isArray(h.config.fill.type)?h.config.fill.type[r]:h.config.fill.type}),useRangeColor:d}}},{key:"getStrokeWidth",value:function(e,t,n){var r=0,a=this.w;return this.barCtx.series[e][t]===void 0||this.barCtx.series[e][t]===null?this.barCtx.isNullValue=!0:this.barCtx.isNullValue=!1,a.config.stroke.show&&(this.barCtx.isNullValue||(r=Array.isArray(this.barCtx.strokeWidth)?this.barCtx.strokeWidth[n]:this.barCtx.strokeWidth)),r}},{key:"createBorderRadiusArr",value:function(e){var t,n=this.w,r=!this.w.config.chart.stacked||n.config.plotOptions.bar.borderRadius<=0,a=e.length,o=0|((t=e[0])===null||t===void 0?void 0:t.length),s=Array.from({length:a},function(){return Array(o).fill(r?"top":"none")});if(r)return s;for(var l=0;l<o;l++){for(var h=[],u=[],c=0,f=0;f<a;f++){var d=e[f][l];d>0?(h.push(f),c++):d<0&&(u.push(f),c++)}if(h.length>0&&u.length===0)if(h.length===1)s[h[0]][l]="both";else{var p,g=h[0],m=h[h.length-1],v=Bi(h);try{for(v.s();!(p=v.n()).done;){var y=p.value;s[y][l]=y===g?"bottom":y===m?"top":"none"}}catch(T){v.e(T)}finally{v.f()}}else if(u.length>0&&h.length===0)if(u.length===1)s[u[0]][l]="both";else{var b,x=Math.max.apply(Math,u),w=Math.min.apply(Math,u),k=Bi(u);try{for(k.s();!(b=k.n()).done;){var S=b.value;s[S][l]=S===x?"bottom":S===w?"top":"none"}}catch(T){k.e(T)}finally{k.f()}}else if(h.length>0&&u.length>0){var A,O=h[h.length-1],_=Bi(h);try{for(_.s();!(A=_.n()).done;){var C=A.value;s[C][l]=C===O?"top":"none"}}catch(T){_.e(T)}finally{_.f()}var M,P=Math.max.apply(Math,u),E=Bi(u);try{for(E.s();!(M=E.n()).done;){var R=M.value;s[R][l]=R===P?"bottom":"none"}}catch(T){E.e(T)}finally{E.f()}}else c===1&&(s[h[0]||u[0]][l]="both")}return s}},{key:"barBackground",value:function(e){var t=e.j,n=e.i,r=e.x1,a=e.x2,o=e.y1,s=e.y2,l=e.elSeries,h=this.w,u=new Q(this.barCtx.ctx),c=new jt(this.barCtx.ctx).getActiveConfigSeriesIndex();if(this.barCtx.barOptions.colors.backgroundBarColors.length>0&&c===n){t>=this.barCtx.barOptions.colors.backgroundBarColors.length&&(t%=this.barCtx.barOptions.colors.backgroundBarColors.length);var f=this.barCtx.barOptions.colors.backgroundBarColors[t],d=u.drawRect(r!==void 0?r:0,o!==void 0?o:0,a!==void 0?a:h.globals.gridWidth,s!==void 0?s:h.globals.gridHeight,this.barCtx.barOptions.colors.backgroundBarRadius,f,this.barCtx.barOptions.colors.backgroundBarOpacity);l.add(d),d.node.classList.add("apexcharts-backgroundBar")}}},{key:"getColumnPaths",value:function(e){var t,n=e.barWidth,r=e.barXPosition,a=e.y1,o=e.y2,s=e.strokeWidth,l=e.isReversed,h=e.series,u=e.seriesGroup,c=e.realIndex,f=e.i,d=e.j,p=e.w,g=new Q(this.barCtx.ctx);(s=Array.isArray(s)?s[c]:s)||(s=0);var m=n,v=r;(t=p.config.series[c].data[d])!==null&&t!==void 0&&t.columnWidthOffset&&(v=r-p.config.series[c].data[d].columnWidthOffset/2,m=n+p.config.series[c].data[d].columnWidthOffset);var y=s/2,b=v+y,x=v+m-y,w=(h[f][d]>=0?1:-1)*(l?-1:1);a+=.001-y*w,o+=.001+y*w;var k=g.move(b,a),S=g.move(b,a),A=g.line(x,a);if(p.globals.previousPaths.length>0&&(S=this.barCtx.getPreviousPath(c,d,!1)),k=k+g.line(b,o)+g.line(x,o)+A+(p.config.plotOptions.bar.borderRadiusApplication==="around"||this.arrBorderRadius[c][d]==="both"?" Z":" z"),S=S+g.line(b,a)+A+A+A+A+A+g.line(b,a)+(p.config.plotOptions.bar.borderRadiusApplication==="around"||this.arrBorderRadius[c][d]==="both"?" Z":" z"),this.arrBorderRadius[c][d]!=="none"&&(k=g.roundPathCorners(k,p.config.plotOptions.bar.borderRadius)),p.config.chart.stacked){var O=this.barCtx;(O=this.barCtx[u]).yArrj.push(o-y*w),O.yArrjF.push(Math.abs(a-o+s*w)),O.yArrjVal.push(this.barCtx.series[f][d])}return{pathTo:k,pathFrom:S}}},{key:"getBarpaths",value:function(e){var t,n=e.barYPosition,r=e.barHeight,a=e.x1,o=e.x2,s=e.strokeWidth,l=e.isReversed,h=e.series,u=e.seriesGroup,c=e.realIndex,f=e.i,d=e.j,p=e.w,g=new Q(this.barCtx.ctx);(s=Array.isArray(s)?s[c]:s)||(s=0);var m=n,v=r;(t=p.config.series[c].data[d])!==null&&t!==void 0&&t.barHeightOffset&&(m=n-p.config.series[c].data[d].barHeightOffset/2,v=r+p.config.series[c].data[d].barHeightOffset);var y=s/2,b=m+y,x=m+v-y,w=(h[f][d]>=0?1:-1)*(l?-1:1);a+=.001+y*w,o+=.001-y*w;var k=g.move(a,b),S=g.move(a,b);p.globals.previousPaths.length>0&&(S=this.barCtx.getPreviousPath(c,d,!1));var A=g.line(a,x);if(k=k+g.line(o,b)+g.line(o,x)+A+(p.config.plotOptions.bar.borderRadiusApplication==="around"||this.arrBorderRadius[c][d]==="both"?" Z":" z"),S=S+g.line(a,b)+A+A+A+A+A+g.line(a,b)+(p.config.plotOptions.bar.borderRadiusApplication==="around"||this.arrBorderRadius[c][d]==="both"?" Z":" z"),this.arrBorderRadius[c][d]!=="none"&&(k=g.roundPathCorners(k,p.config.plotOptions.bar.borderRadius)),p.config.chart.stacked){var O=this.barCtx;(O=this.barCtx[u]).xArrj.push(o+y*w),O.xArrjF.push(Math.abs(a-o-s*w)),O.xArrjVal.push(this.barCtx.series[f][d])}return{pathTo:k,pathFrom:S}}},{key:"checkZeroSeries",value:function(e){for(var t=e.series,n=this.w,r=0;r<t.length;r++){for(var a=0,o=0;o<t[n.globals.maxValsInArrayIndex].length;o++)a+=t[r][o];a===0&&this.barCtx.zeroSerieses.push(r)}}},{key:"getXForValue",value:function(e,t){var n=!(arguments.length>2&&arguments[2]!==void 0)||arguments[2]?t:null;return e!=null&&(n=t+e/this.barCtx.invertedYRatio-2*(this.barCtx.isReversed?e/this.barCtx.invertedYRatio:0)),n}},{key:"getYForValue",value:function(e,t,n){var r=!(arguments.length>3&&arguments[3]!==void 0)||arguments[3]?t:null;return e!=null&&(r=t-e/this.barCtx.yRatio[n]+2*(this.barCtx.isReversed?e/this.barCtx.yRatio[n]:0)),r}},{key:"getGoalValues",value:function(e,t,n,r,a,o){var s=this,l=this.w,h=[],u=function(d,p){var g;h.push((ra(g={},e,e==="x"?s.getXForValue(d,t,!1):s.getYForValue(d,n,o,!1)),ra(g,"attrs",p),g))};if(l.globals.seriesGoals[r]&&l.globals.seriesGoals[r][a]&&Array.isArray(l.globals.seriesGoals[r][a])&&l.globals.seriesGoals[r][a].forEach(function(d){u(d.value,d)}),this.barCtx.barOptions.isDumbbell&&l.globals.seriesRange.length){var c=this.barCtx.barOptions.dumbbellColors?this.barCtx.barOptions.dumbbellColors:l.globals.colors,f={strokeHeight:e==="x"?0:l.globals.markers.size[r],strokeWidth:e==="x"?l.globals.markers.size[r]:0,strokeDashArray:0,strokeLineCap:"round",strokeColor:Array.isArray(c[r])?c[r][0]:c[r]};u(l.globals.seriesRangeStart[r][a],f),u(l.globals.seriesRangeEnd[r][a],ne(ne({},f),{},{strokeColor:Array.isArray(c[r])?c[r][1]:c[r]}))}return h}},{key:"drawGoalLine",value:function(e){var t=e.barXPosition,n=e.barYPosition,r=e.goalX,a=e.goalY,o=e.barWidth,s=e.barHeight,l=new Q(this.barCtx.ctx),h=l.group({className:"apexcharts-bar-goals-groups"});h.node.classList.add("apexcharts-element-hidden"),this.barCtx.w.globals.delayedElements.push({el:h.node}),h.attr("clip-path","url(#gridRectMarkerMask".concat(this.barCtx.w.globals.cuid,")"));var u=null;return this.barCtx.isHorizontal?Array.isArray(r)&&r.forEach(function(c){if(c.x>=-1&&c.x<=l.w.globals.gridWidth+1){var f=c.attrs.strokeHeight!==void 0?c.attrs.strokeHeight:s/2,d=n+f+s/2;u=l.drawLine(c.x,d-2*f,c.x,d,c.attrs.strokeColor?c.attrs.strokeColor:void 0,c.attrs.strokeDashArray,c.attrs.strokeWidth?c.attrs.strokeWidth:2,c.attrs.strokeLineCap),h.add(u)}}):Array.isArray(a)&&a.forEach(function(c){if(c.y>=-1&&c.y<=l.w.globals.gridHeight+1){var f=c.attrs.strokeWidth!==void 0?c.attrs.strokeWidth:o/2,d=t+f+o/2;u=l.drawLine(d-2*f,c.y,d,c.y,c.attrs.strokeColor?c.attrs.strokeColor:void 0,c.attrs.strokeDashArray,c.attrs.strokeHeight?c.attrs.strokeHeight:2,c.attrs.strokeLineCap),h.add(u)}}),h}},{key:"drawBarShadow",value:function(e){var t=e.prevPaths,n=e.currPaths,r=e.color,a=this.w,o=t.x,s=t.x1,l=t.barYPosition,h=n.x,u=n.x1,c=n.barYPosition,f=l+n.barHeight,d=new Q(this.barCtx.ctx),p=new q,g=d.move(s,f)+d.line(o,f)+d.line(h,c)+d.line(u,c)+d.line(s,f)+(a.config.plotOptions.bar.borderRadiusApplication==="around"||this.arrBorderRadius[realIndex][j]==="both"?" Z":" z");return d.drawPath({d:g,fill:p.shadeColor(.5,q.rgb2hex(r)),stroke:"none",strokeWidth:0,fillOpacity:1,classes:"apexcharts-bar-shadow apexcharts-decoration-element"})}},{key:"getZeroValueEncounters",value:function(e){var t,n=e.i,r=e.j,a=this.w,o=0,s=0;return(a.config.plotOptions.bar.horizontal?a.globals.series.map(function(l,h){return h}):((t=a.globals.columnSeries)===null||t===void 0?void 0:t.i.map(function(l){return l}))||[]).forEach(function(l){var h=a.globals.seriesPercent[l][r];h&&o++,l<n&&h===0&&s++}),{nonZeroColumns:o,zeroEncounters:s}}},{key:"getGroupIndex",value:function(e){var t=this.w,n=t.globals.seriesGroups.findIndex(function(o){return o.indexOf(t.globals.seriesNames[e])>-1}),r=this.barCtx.columnGroupIndices,a=r.indexOf(n);return a<0&&(r.push(n),a=r.length-1),{groupIndex:n,columnGroupIndex:a}}}]),i}(),mi=function(){function i(e,t){ae(this,i),this.ctx=e,this.w=e.w;var n=this.w;this.barOptions=n.config.plotOptions.bar,this.isHorizontal=this.barOptions.horizontal,this.strokeWidth=n.config.stroke.width,this.isNullValue=!1,this.isRangeBar=n.globals.seriesRange.length&&this.isHorizontal,this.isVerticalGroupedRangeBar=!n.globals.isBarHorizontal&&n.globals.seriesRange.length&&n.config.plotOptions.bar.rangeBarGroupRows,this.isFunnel=this.barOptions.isFunnel,this.xyRatios=t,this.xyRatios!==null&&(this.xRatio=t.xRatio,this.yRatio=t.yRatio,this.invertedXRatio=t.invertedXRatio,this.invertedYRatio=t.invertedYRatio,this.baseLineY=t.baseLineY,this.baseLineInvertedY=t.baseLineInvertedY),this.yaxisIndex=0,this.translationsIndex=0,this.seriesLen=0,this.pathArr=[];var r=new jt(this.ctx);this.lastActiveBarSerieIndex=r.getActiveConfigSeriesIndex("desc",["bar","column"]),this.columnGroupIndices=[];var a=r.getBarSeriesIndices(),o=new Je(this.ctx);this.stackedSeriesTotals=o.getStackedSeriesTotals(this.w.config.series.map(function(s,l){return a.indexOf(l)===-1?l:-1}).filter(function(s){return s!==-1})),this.barHelpers=new fg(this)}return oe(i,[{key:"draw",value:function(e,t){var n=this.w,r=new Q(this.ctx),a=new Je(this.ctx,n);e=a.getLogSeries(e),this.series=e,this.yRatio=a.getLogYRatios(this.yRatio),this.barHelpers.initVariables(e);var o=r.group({class:"apexcharts-bar-series apexcharts-plot-series"});n.config.dataLabels.enabled&&this.totalItems>this.barOptions.dataLabels.maxItems&&console.warn("WARNING: DataLabels are enabled but there are too many to display. This may cause performance issue when rendering - ApexCharts");for(var s=0,l=0;s<e.length;s++,l++){var h,u,c,f,d=void 0,p=void 0,g=[],m=[],v=n.globals.comboCharts?t[s]:s,y=this.barHelpers.getGroupIndex(v).columnGroupIndex,b=r.group({class:"apexcharts-series",rel:s+1,seriesName:q.escapeString(n.globals.seriesNames[v]),"data:realIndex":v});this.ctx.series.addCollapsedClassToSeries(b,v),e[s].length>0&&(this.visibleI=this.visibleI+1);var x=0,w=0;this.yRatio.length>1&&(this.yaxisIndex=n.globals.seriesYAxisReverseMap[v],this.translationsIndex=v);var k=this.translationsIndex;this.isReversed=n.config.yaxis[this.yaxisIndex]&&n.config.yaxis[this.yaxisIndex].reversed;var S=this.barHelpers.initialPositions(v);p=S.y,x=S.barHeight,u=S.yDivision,f=S.zeroW,d=S.x,w=S.barWidth,h=S.xDivision,c=S.zeroH,this.isHorizontal||m.push(d+w/2);var A=r.group({class:"apexcharts-datalabels","data:realIndex":v});n.globals.delayedElements.push({el:A.node}),A.node.classList.add("apexcharts-element-hidden");var O=r.group({class:"apexcharts-bar-goals-markers"}),_=r.group({class:"apexcharts-bar-shadows"});n.globals.delayedElements.push({el:_.node}),_.node.classList.add("apexcharts-element-hidden");for(var C=0;C<e[s].length;C++){var M=this.barHelpers.getStrokeWidth(s,C,v),P=null,E={indexes:{i:s,j:C,realIndex:v,translationsIndex:k,bc:l},x:d,y:p,strokeWidth:M,elSeries:b};this.isHorizontal?(P=this.drawBarPaths(ne(ne({},E),{},{barHeight:x,zeroW:f,yDivision:u})),w=this.series[s][C]/this.invertedYRatio):(P=this.drawColumnPaths(ne(ne({},E),{},{xDivision:h,barWidth:w,zeroH:c})),x=this.series[s][C]/this.yRatio[k]);var R=this.barHelpers.getPathFillColor(e,s,C,v);if(this.isFunnel&&this.barOptions.isFunnel3d&&this.pathArr.length&&C>0){var T,F=this.barHelpers.drawBarShadow({color:typeof R.color=="string"&&((T=R.color)===null||T===void 0?void 0:T.indexOf("url"))===-1?R.color:q.hexToRgba(n.globals.colors[s]),prevPaths:this.pathArr[this.pathArr.length-1],currPaths:P});_.add(F),n.config.chart.dropShadow.enabled&&new ut(this.ctx).dropShadow(F,n.config.chart.dropShadow,v)}this.pathArr.push(P);var B=this.barHelpers.drawGoalLine({barXPosition:P.barXPosition,barYPosition:P.barYPosition,goalX:P.goalX,goalY:P.goalY,barHeight:x,barWidth:w});B&&O.add(B),p=P.y,d=P.x,C>0&&m.push(d+w/2),g.push(p),this.renderSeries(ne(ne({realIndex:v,pathFill:R.color},R.useRangeColor?{lineFill:R.color}:{}),{},{j:C,i:s,columnGroupIndex:y,pathFrom:P.pathFrom,pathTo:P.pathTo,strokeWidth:M,elSeries:b,x:d,y:p,series:e,barHeight:Math.abs(P.barHeight?P.barHeight:x),barWidth:Math.abs(P.barWidth?P.barWidth:w),elDataLabelsWrap:A,elGoalsMarkers:O,elBarShadows:_,visibleSeries:this.visibleI,type:"bar"}))}n.globals.seriesXvalues[v]=m,n.globals.seriesYvalues[v]=g,o.add(b)}return o}},{key:"renderSeries",value:function(e){var t=e.realIndex,n=e.pathFill,r=e.lineFill,a=e.j,o=e.i,s=e.columnGroupIndex,l=e.pathFrom,h=e.pathTo,u=e.strokeWidth,c=e.elSeries,f=e.x,d=e.y,p=e.y1,g=e.y2,m=e.series,v=e.barHeight,y=e.barWidth,b=e.barXPosition,x=e.barYPosition,w=e.elDataLabelsWrap,k=e.elGoalsMarkers,S=e.elBarShadows,A=e.visibleSeries,O=e.type,_=e.classes,C=this.w,M=new Q(this.ctx),P=!1;if(!r){var E=typeof C.globals.stroke.colors[t]=="function"?function(D){var N,L=C.config.stroke.colors;return Array.isArray(L)&&L.length>0&&((N=L[D])||(N=""),typeof N=="function")?N({value:C.globals.series[D][a],dataPointIndex:a,w:C}):N}(t):C.globals.stroke.colors[t];r=this.barOptions.distributed?C.globals.stroke.colors[a]:E}var R=new hg(this).handleBarDataLabels({x:f,y:d,y1:p,y2:g,i:o,j:a,series:m,realIndex:t,columnGroupIndex:s,barHeight:v,barWidth:y,barXPosition:b,barYPosition:x,visibleSeries:A});C.globals.isBarHorizontal||(R.dataLabelsPos.dataLabelsX+y<0||R.dataLabelsPos.dataLabelsX-y>C.globals.gridWidth)&&(P=!0),C.config.series[o].data[a]&&C.config.series[o].data[a].strokeColor&&(r=C.config.series[o].data[a].strokeColor),this.isNullValue&&(n="none");var T=a/C.config.chart.animations.animateGradually.delay*(C.config.chart.animations.speed/C.globals.dataPoints)/2.4;if(!P){var F=M.renderPaths({i:o,j:a,realIndex:t,pathFrom:l,pathTo:h,stroke:r,strokeWidth:u,strokeLineCap:C.config.stroke.lineCap,fill:n,animationDelay:T,initialSpeed:C.config.chart.animations.speed,dataChangeSpeed:C.config.chart.animations.dynamicAnimation.speed,className:"apexcharts-".concat(O,"-area ").concat(_),chartType:O});F.attr("clip-path","url(#gridRectBarMask".concat(C.globals.cuid,")"));var B=C.config.forecastDataPoints;B.count>0&&a>=C.globals.dataPoints-B.count&&(F.node.setAttribute("stroke-dasharray",B.dashArray),F.node.setAttribute("stroke-width",B.strokeWidth),F.node.setAttribute("fill-opacity",B.fillOpacity)),p!==void 0&&g!==void 0&&(F.attr("data-range-y1",p),F.attr("data-range-y2",g)),new ut(this.ctx).setSelectionFilter(F,t,a),c.add(F),F.attr({cy:R.dataLabelsPos.bcy,cx:R.dataLabelsPos.bcx,j:a,val:C.globals.series[o][a],barHeight:v,barWidth:y}),R.dataLabels!==null&&w.add(R.dataLabels),R.totalDataLabels&&w.add(R.totalDataLabels),c.add(w),k&&c.add(k),S&&c.add(S)}return c}},{key:"drawBarPaths",value:function(e){var t,n=e.indexes,r=e.barHeight,a=e.strokeWidth,o=e.zeroW,s=e.x,l=e.y,h=e.yDivision,u=e.elSeries,c=this.w,f=n.i,d=n.j;if(c.globals.isXNumeric)t=(l=(c.globals.seriesX[f][d]-c.globals.minX)/this.invertedXRatio-r)+r*this.visibleI;else if(c.config.plotOptions.bar.hideZeroBarsWhenGrouped){var p=this.barHelpers.getZeroValueEncounters({i:f,j:d}),g=p.nonZeroColumns,m=p.zeroEncounters;g>0&&(r=this.seriesLen*r/g),t=l+r*this.visibleI,t-=r*m}else t=l+r*this.visibleI;this.isFunnel&&(o-=(this.barHelpers.getXForValue(this.series[f][d],o)-o)/2),s=this.barHelpers.getXForValue(this.series[f][d],o);var v=this.barHelpers.getBarpaths({barYPosition:t,barHeight:r,x1:o,x2:s,strokeWidth:a,isReversed:this.isReversed,series:this.series,realIndex:n.realIndex,i:f,j:d,w:c});return c.globals.isXNumeric||(l+=h),this.barHelpers.barBackground({j:d,i:f,y1:t-r*this.visibleI,y2:r*this.seriesLen,elSeries:u}),{pathTo:v.pathTo,pathFrom:v.pathFrom,x1:o,x:s,y:l,goalX:this.barHelpers.getGoalValues("x",o,null,f,d),barYPosition:t,barHeight:r}}},{key:"drawColumnPaths",value:function(e){var t,n=e.indexes,r=e.x,a=e.y,o=e.xDivision,s=e.barWidth,l=e.zeroH,h=e.strokeWidth,u=e.elSeries,c=this.w,f=n.realIndex,d=n.translationsIndex,p=n.i,g=n.j,m=n.bc;if(c.globals.isXNumeric){var v=this.getBarXForNumericXAxis({x:r,j:g,realIndex:f,barWidth:s});r=v.x,t=v.barXPosition}else if(c.config.plotOptions.bar.hideZeroBarsWhenGrouped){var y=this.barHelpers.getZeroValueEncounters({i:p,j:g}),b=y.nonZeroColumns,x=y.zeroEncounters;b>0&&(s=this.seriesLen*s/b),t=r+s*this.visibleI,t-=s*x}else t=r+s*this.visibleI;a=this.barHelpers.getYForValue(this.series[p][g],l,d);var w=this.barHelpers.getColumnPaths({barXPosition:t,barWidth:s,y1:l,y2:a,strokeWidth:h,isReversed:this.isReversed,series:this.series,realIndex:f,i:p,j:g,w:c});return c.globals.isXNumeric||(r+=o),this.barHelpers.barBackground({bc:m,j:g,i:p,x1:t-h/2-s*this.visibleI,x2:s*this.seriesLen+h/2,elSeries:u}),{pathTo:w.pathTo,pathFrom:w.pathFrom,x:r,y:a,goalY:this.barHelpers.getGoalValues("y",null,l,p,g,d),barXPosition:t,barWidth:s}}},{key:"getBarXForNumericXAxis",value:function(e){var t=e.x,n=e.barWidth,r=e.realIndex,a=e.j,o=this.w,s=r;return o.globals.seriesX[r].length||(s=o.globals.maxValsInArrayIndex),q.isNumber(o.globals.seriesX[s][a])&&(t=(o.globals.seriesX[s][a]-o.globals.minX)/this.xRatio-n*this.seriesLen/2),{barXPosition:t+n*this.visibleI,x:t}}},{key:"getPreviousPath",value:function(e,t){for(var n=this.w,r="M 0 0",a=0;a<n.globals.previousPaths.length;a++){var o=n.globals.previousPaths[a];o.paths&&o.paths.length>0&&parseInt(o.realIndex,10)===parseInt(e,10)&&n.globals.previousPaths[a].paths[t]!==void 0&&(r=n.globals.previousPaths[a].paths[t].d)}return r}}]),i}(),Kl=function(i){yr(t,mi);var e=mr(t);function t(){return ae(this,t),e.apply(this,arguments)}return oe(t,[{key:"draw",value:function(n,r){var a=this,o=this.w;this.graphics=new Q(this.ctx),this.bar=new mi(this.ctx,this.xyRatios);var s=new Je(this.ctx,o);n=s.getLogSeries(n),this.yRatio=s.getLogYRatios(this.yRatio),this.barHelpers.initVariables(n),o.config.chart.stackType==="100%"&&(n=o.globals.comboCharts?r.map(function(p){return o.globals.seriesPercent[p]}):o.globals.seriesPercent.slice()),this.series=n,this.barHelpers.initializeStackedPrevVars(this);for(var l=this.graphics.group({class:"apexcharts-bar-series apexcharts-plot-series"}),h=0,u=0,c=function(p,g){var m=void 0,v=void 0,y=void 0,b=void 0,x=o.globals.comboCharts?r[p]:p,w=a.barHelpers.getGroupIndex(x),k=w.groupIndex,S=w.columnGroupIndex;a.groupCtx=a[o.globals.seriesGroups[k]];var A=[],O=[],_=0;a.yRatio.length>1&&(a.yaxisIndex=o.globals.seriesYAxisReverseMap[x][0],_=x),a.isReversed=o.config.yaxis[a.yaxisIndex]&&o.config.yaxis[a.yaxisIndex].reversed;var C=a.graphics.group({class:"apexcharts-series",seriesName:q.escapeString(o.globals.seriesNames[x]),rel:p+1,"data:realIndex":x});a.ctx.series.addCollapsedClassToSeries(C,x);var M=a.graphics.group({class:"apexcharts-datalabels","data:realIndex":x}),P=a.graphics.group({class:"apexcharts-bar-goals-markers"}),E=0,R=0,T=a.initialPositions(h,u,m,v,y,b,_);u=T.y,E=T.barHeight,v=T.yDivision,b=T.zeroW,h=T.x,R=T.barWidth,m=T.xDivision,y=T.zeroH,o.globals.barHeight=E,o.globals.barWidth=R,a.barHelpers.initializeStackedXYVars(a),a.groupCtx.prevY.length===1&&a.groupCtx.prevY[0].every(function(W){return isNaN(W)})&&(a.groupCtx.prevY[0]=a.groupCtx.prevY[0].map(function(){return y}),a.groupCtx.prevYF[0]=a.groupCtx.prevYF[0].map(function(){return 0}));for(var F=0;F<o.globals.dataPoints;F++){var B=a.barHelpers.getStrokeWidth(p,F,x),D={indexes:{i:p,j:F,realIndex:x,translationsIndex:_,bc:g},strokeWidth:B,x:h,y:u,elSeries:C,columnGroupIndex:S,seriesGroup:o.globals.seriesGroups[k]},N=null;a.isHorizontal?(N=a.drawStackedBarPaths(ne(ne({},D),{},{zeroW:b,barHeight:E,yDivision:v})),R=a.series[p][F]/a.invertedYRatio):(N=a.drawStackedColumnPaths(ne(ne({},D),{},{xDivision:m,barWidth:R,zeroH:y})),E=a.series[p][F]/a.yRatio[_]);var L=a.barHelpers.drawGoalLine({barXPosition:N.barXPosition,barYPosition:N.barYPosition,goalX:N.goalX,goalY:N.goalY,barHeight:E,barWidth:R});L&&P.add(L),u=N.y,h=N.x,A.push(h),O.push(u);var I=a.barHelpers.getPathFillColor(n,p,F,x),H="",Y=o.globals.isBarHorizontal?"apexcharts-flip-x":"apexcharts-flip-y";(a.barHelpers.arrBorderRadius[x][F]==="bottom"&&o.globals.series[x][F]>0||a.barHelpers.arrBorderRadius[x][F]==="top"&&o.globals.series[x][F]<0)&&(H=Y),C=a.renderSeries(ne(ne({realIndex:x,pathFill:I.color},I.useRangeColor?{lineFill:I.color}:{}),{},{j:F,i:p,columnGroupIndex:S,pathFrom:N.pathFrom,pathTo:N.pathTo,strokeWidth:B,elSeries:C,x:h,y:u,series:n,barHeight:E,barWidth:R,elDataLabelsWrap:M,elGoalsMarkers:P,type:"bar",visibleSeries:S,classes:H}))}o.globals.seriesXvalues[x]=A,o.globals.seriesYvalues[x]=O,a.groupCtx.prevY.push(a.groupCtx.yArrj),a.groupCtx.prevYF.push(a.groupCtx.yArrjF),a.groupCtx.prevYVal.push(a.groupCtx.yArrjVal),a.groupCtx.prevX.push(a.groupCtx.xArrj),a.groupCtx.prevXF.push(a.groupCtx.xArrjF),a.groupCtx.prevXVal.push(a.groupCtx.xArrjVal),l.add(C)},f=0,d=0;f<n.length;f++,d++)c(f,d);return l}},{key:"initialPositions",value:function(n,r,a,o,s,l,h){var u,c,f=this.w;if(this.isHorizontal){o=f.globals.gridHeight/f.globals.dataPoints;var d=f.config.plotOptions.bar.barHeight;u=String(d).indexOf("%")===-1?parseInt(d,10):o*parseInt(d,10)/100,l=f.globals.padHorizontal+(this.isReversed?f.globals.gridWidth-this.baseLineInvertedY:this.baseLineInvertedY),r=(o-u)/2}else{c=a=f.globals.gridWidth/f.globals.dataPoints;var p=f.config.plotOptions.bar.columnWidth;f.globals.isXNumeric&&f.globals.dataPoints>1?c=(a=f.globals.minXDiff/this.xRatio)*parseInt(this.barOptions.columnWidth,10)/100:String(p).indexOf("%")===-1?c=parseInt(p,10):c*=parseInt(p,10)/100,s=this.isReversed?this.baseLineY[h]:f.globals.gridHeight-this.baseLineY[h],n=f.globals.padHorizontal+(a-c)/2}var g=f.globals.barGroups.length||1;return{x:n,y:r,yDivision:o,xDivision:a,barHeight:u/g,barWidth:c/g,zeroH:s,zeroW:l}}},{key:"drawStackedBarPaths",value:function(n){for(var r,a=n.indexes,o=n.barHeight,s=n.strokeWidth,l=n.zeroW,h=n.x,u=n.y,c=n.columnGroupIndex,f=n.seriesGroup,d=n.yDivision,p=n.elSeries,g=this.w,m=u+c*o,v=a.i,y=a.j,b=a.realIndex,x=a.translationsIndex,w=0,k=0;k<this.groupCtx.prevXF.length;k++)w+=this.groupCtx.prevXF[k][y];var S=v;if(g.config.series[b].name&&(S=f.indexOf(g.config.series[b].name)),S>0){var A=l;this.groupCtx.prevXVal[S-1][y]<0?A=this.series[v][y]>=0?this.groupCtx.prevX[S-1][y]+w-2*(this.isReversed?w:0):this.groupCtx.prevX[S-1][y]:this.groupCtx.prevXVal[S-1][y]>=0&&(A=this.series[v][y]>=0?this.groupCtx.prevX[S-1][y]:this.groupCtx.prevX[S-1][y]-w+2*(this.isReversed?w:0)),r=A}else r=l;h=this.series[v][y]===null?r:r+this.series[v][y]/this.invertedYRatio-2*(this.isReversed?this.series[v][y]/this.invertedYRatio:0);var O=this.barHelpers.getBarpaths({barYPosition:m,barHeight:o,x1:r,x2:h,strokeWidth:s,isReversed:this.isReversed,series:this.series,realIndex:a.realIndex,seriesGroup:f,i:v,j:y,w:g});return this.barHelpers.barBackground({j:y,i:v,y1:m,y2:o,elSeries:p}),u+=d,{pathTo:O.pathTo,pathFrom:O.pathFrom,goalX:this.barHelpers.getGoalValues("x",l,null,v,y,x),barXPosition:r,barYPosition:m,x:h,y:u}}},{key:"drawStackedColumnPaths",value:function(n){var r=n.indexes,a=n.x,o=n.y,s=n.xDivision,l=n.barWidth,h=n.zeroH,u=n.columnGroupIndex,c=n.seriesGroup,f=n.elSeries,d=this.w,p=r.i,g=r.j,m=r.bc,v=r.realIndex,y=r.translationsIndex;if(d.globals.isXNumeric){var b=d.globals.seriesX[v][g];b||(b=0),a=(b-d.globals.minX)/this.xRatio-l/2*d.globals.barGroups.length}for(var x,w=a+u*l,k=0,S=0;S<this.groupCtx.prevYF.length;S++)k+=isNaN(this.groupCtx.prevYF[S][g])?0:this.groupCtx.prevYF[S][g];var A=p;if(c&&(A=c.indexOf(d.globals.seriesNames[v])),A>0&&!d.globals.isXNumeric||A>0&&d.globals.isXNumeric&&d.globals.seriesX[v-1][g]===d.globals.seriesX[v][g]){var O,_,C,M=Math.min(this.yRatio.length+1,v+1);if(this.groupCtx.prevY[A-1]!==void 0&&this.groupCtx.prevY[A-1].length)for(var P=1;P<M;P++){var E;if(!isNaN((E=this.groupCtx.prevY[A-P])===null||E===void 0?void 0:E[g])){C=this.groupCtx.prevY[A-P][g];break}}for(var R=1;R<M;R++){var T,F;if(((T=this.groupCtx.prevYVal[A-R])===null||T===void 0?void 0:T[g])<0){_=this.series[p][g]>=0?C-k+2*(this.isReversed?k:0):C;break}if(((F=this.groupCtx.prevYVal[A-R])===null||F===void 0?void 0:F[g])>=0){_=this.series[p][g]>=0?C:C+k-2*(this.isReversed?k:0);break}}_===void 0&&(_=d.globals.gridHeight),x=(O=this.groupCtx.prevYF[0])!==null&&O!==void 0&&O.every(function(D){return D===0})&&this.groupCtx.prevYF.slice(1,A).every(function(D){return D.every(function(N){return isNaN(N)})})?h:_}else x=h;o=this.series[p][g]?x-this.series[p][g]/this.yRatio[y]+2*(this.isReversed?this.series[p][g]/this.yRatio[y]:0):x;var B=this.barHelpers.getColumnPaths({barXPosition:w,barWidth:l,y1:x,y2:o,yRatio:this.yRatio[y],strokeWidth:this.strokeWidth,isReversed:this.isReversed,series:this.series,seriesGroup:c,realIndex:r.realIndex,i:p,j:g,w:d});return this.barHelpers.barBackground({bc:m,j:g,i:p,x1:w,x2:l,elSeries:f}),{pathTo:B.pathTo,pathFrom:B.pathFrom,goalY:this.barHelpers.getGoalValues("y",null,h,p,g),barXPosition:w,x:d.globals.isXNumeric?a:a+s,y:o}}}]),t}(),ho=function(i){yr(t,mi);var e=mr(t);function t(){return ae(this,t),e.apply(this,arguments)}return oe(t,[{key:"draw",value:function(n,r,a){var o=this,s=this.w,l=new Q(this.ctx),h=s.globals.comboCharts?r:s.config.chart.type,u=new Kt(this.ctx);this.candlestickOptions=this.w.config.plotOptions.candlestick,this.boxOptions=this.w.config.plotOptions.boxPlot,this.isHorizontal=s.config.plotOptions.bar.horizontal,this.isOHLC=this.candlestickOptions&&this.candlestickOptions.type==="ohlc";var c=new Je(this.ctx,s);n=c.getLogSeries(n),this.series=n,this.yRatio=c.getLogYRatios(this.yRatio),this.barHelpers.initVariables(n);for(var f=l.group({class:"apexcharts-".concat(h,"-series apexcharts-plot-series")}),d=function(g){o.isBoxPlot=s.config.chart.type==="boxPlot"||s.config.series[g].type==="boxPlot";var m,v,y,b,x=void 0,w=void 0,k=[],S=[],A=s.globals.comboCharts?a[g]:g,O=o.barHelpers.getGroupIndex(A).columnGroupIndex,_=l.group({class:"apexcharts-series",seriesName:q.escapeString(s.globals.seriesNames[A]),rel:g+1,"data:realIndex":A});o.ctx.series.addCollapsedClassToSeries(_,A),n[g].length>0&&(o.visibleI=o.visibleI+1);var C,M,P=0;o.yRatio.length>1&&(o.yaxisIndex=s.globals.seriesYAxisReverseMap[A][0],P=A);var E=o.barHelpers.initialPositions(A);w=E.y,C=E.barHeight,v=E.yDivision,b=E.zeroW,x=E.x,M=E.barWidth,m=E.xDivision,y=E.zeroH,S.push(x+M/2);for(var R=l.group({class:"apexcharts-datalabels","data:realIndex":A}),T=l.group({class:"apexcharts-bar-goals-markers"}),F=function(D){var N=o.barHelpers.getStrokeWidth(g,D,A),L=null,I={indexes:{i:g,j:D,realIndex:A,translationsIndex:P},x,y:w,strokeWidth:N,elSeries:_};L=o.isHorizontal?o.drawHorizontalBoxPaths(ne(ne({},I),{},{yDivision:v,barHeight:C,zeroW:b})):o.drawVerticalBoxPaths(ne(ne({},I),{},{xDivision:m,barWidth:M,zeroH:y})),w=L.y,x=L.x;var H=o.barHelpers.drawGoalLine({barXPosition:L.barXPosition,barYPosition:L.barYPosition,goalX:L.goalX,goalY:L.goalY,barHeight:C,barWidth:M});H&&T.add(H),D>0&&S.push(x+M/2),k.push(w),L.pathTo.forEach(function(Y,W){var z=!o.isBoxPlot&&o.candlestickOptions.wick.useFillColor?L.color[W]:s.globals.stroke.colors[g],X=u.fillPath({seriesNumber:A,dataPointIndex:D,color:L.color[W],value:n[g][D]});o.renderSeries({realIndex:A,pathFill:X,lineFill:z,j:D,i:g,pathFrom:L.pathFrom,pathTo:Y,strokeWidth:N,elSeries:_,x,y:w,series:n,columnGroupIndex:O,barHeight:C,barWidth:M,elDataLabelsWrap:R,elGoalsMarkers:T,visibleSeries:o.visibleI,type:s.config.chart.type})})},B=0;B<s.globals.dataPoints;B++)F(B);s.globals.seriesXvalues[A]=S,s.globals.seriesYvalues[A]=k,f.add(_)},p=0;p<n.length;p++)d(p);return f}},{key:"drawVerticalBoxPaths",value:function(n){var r=n.indexes,a=n.x;n.y;var o=n.xDivision,s=n.barWidth,l=n.zeroH,h=n.strokeWidth,u=this.w,c=new Q(this.ctx),f=r.i,d=r.j,p=u.config.plotOptions.candlestick.colors,g=this.boxOptions.colors,m=r.realIndex,v=function(B){return Array.isArray(B)?B[m]:B},y=v(p.upward),b=v(p.downward),x=this.yRatio[r.translationsIndex],w=this.getOHLCValue(m,d),k=l,S=l,A=w.o<w.c?[y]:[b];this.isBoxPlot&&(A=[v(g.lower),v(g.upper)]);var O=Math.min(w.o,w.c),_=Math.max(w.o,w.c),C=w.m;u.globals.isXNumeric&&(a=(u.globals.seriesX[m][d]-u.globals.minX)/this.xRatio-s/2);var M=a+s*this.visibleI;this.series[f][d]===void 0||this.series[f][d]===null?(O=l,_=l):(O=l-O/x,_=l-_/x,k=l-w.h/x,S=l-w.l/x,C=l-w.m/x);var P=c.move(M,l),E=c.move(M+s/2,O);if(u.globals.previousPaths.length>0&&(E=this.getPreviousPath(m,d,!0)),this.isOHLC){var R=M+s/2,T=l-w.o/x,F=l-w.c/x;P=[c.move(R,k)+c.line(R,S)+c.move(R,T)+c.line(M,T)+c.move(R,F)+c.line(M+s,F)]}else P=this.isBoxPlot?[c.move(M,O)+c.line(M+s/2,O)+c.line(M+s/2,k)+c.line(M+s/4,k)+c.line(M+s-s/4,k)+c.line(M+s/2,k)+c.line(M+s/2,O)+c.line(M+s,O)+c.line(M+s,C)+c.line(M,C)+c.line(M,O+h/2),c.move(M,C)+c.line(M+s,C)+c.line(M+s,_)+c.line(M+s/2,_)+c.line(M+s/2,S)+c.line(M+s-s/4,S)+c.line(M+s/4,S)+c.line(M+s/2,S)+c.line(M+s/2,_)+c.line(M,_)+c.line(M,C)+"z"]:[c.move(M,_)+c.line(M+s/2,_)+c.line(M+s/2,k)+c.line(M+s/2,_)+c.line(M+s,_)+c.line(M+s,O)+c.line(M+s/2,O)+c.line(M+s/2,S)+c.line(M+s/2,O)+c.line(M,O)+c.line(M,_-h/2)];return E+=c.move(M,O),u.globals.isXNumeric||(a+=o),{pathTo:P,pathFrom:E,x:a,y:_,goalY:this.barHelpers.getGoalValues("y",null,l,f,d,r.translationsIndex),barXPosition:M,color:A}}},{key:"drawHorizontalBoxPaths",value:function(n){var r=n.indexes;n.x;var a=n.y,o=n.yDivision,s=n.barHeight,l=n.zeroW,h=n.strokeWidth,u=this.w,c=new Q(this.ctx),f=r.i,d=r.j,p=this.boxOptions.colors.lower;this.isBoxPlot&&(p=[this.boxOptions.colors.lower,this.boxOptions.colors.upper]);var g=this.invertedYRatio,m=r.realIndex,v=this.getOHLCValue(m,d),y=l,b=l,x=Math.min(v.o,v.c),w=Math.max(v.o,v.c),k=v.m;u.globals.isXNumeric&&(a=(u.globals.seriesX[m][d]-u.globals.minX)/this.invertedXRatio-s/2);var S=a+s*this.visibleI;this.series[f][d]===void 0||this.series[f][d]===null?(x=l,w=l):(x=l+x/g,w=l+w/g,y=l+v.h/g,b=l+v.l/g,k=l+v.m/g);var A=c.move(l,S),O=c.move(x,S+s/2);return u.globals.previousPaths.length>0&&(O=this.getPreviousPath(m,d,!0)),A=[c.move(x,S)+c.line(x,S+s/2)+c.line(y,S+s/2)+c.line(y,S+s/2-s/4)+c.line(y,S+s/2+s/4)+c.line(y,S+s/2)+c.line(x,S+s/2)+c.line(x,S+s)+c.line(k,S+s)+c.line(k,S)+c.line(x+h/2,S),c.move(k,S)+c.line(k,S+s)+c.line(w,S+s)+c.line(w,S+s/2)+c.line(b,S+s/2)+c.line(b,S+s-s/4)+c.line(b,S+s/4)+c.line(b,S+s/2)+c.line(w,S+s/2)+c.line(w,S)+c.line(k,S)+"z"],O+=c.move(x,S),u.globals.isXNumeric||(a+=o),{pathTo:A,pathFrom:O,x:w,y:a,goalX:this.barHelpers.getGoalValues("x",l,null,f,d),barYPosition:S,color:p}}},{key:"getOHLCValue",value:function(n,r){var a=this.w,o=new Je(this.ctx,a),s=o.getLogValAtSeriesIndex(a.globals.seriesCandleH[n][r],n),l=o.getLogValAtSeriesIndex(a.globals.seriesCandleO[n][r],n),h=o.getLogValAtSeriesIndex(a.globals.seriesCandleM[n][r],n),u=o.getLogValAtSeriesIndex(a.globals.seriesCandleC[n][r],n),c=o.getLogValAtSeriesIndex(a.globals.seriesCandleL[n][r],n);return{o:this.isBoxPlot?s:l,h:this.isBoxPlot?l:s,m:h,l:this.isBoxPlot?u:c,c:this.isBoxPlot?c:u}}}]),t}(),oh=function(){function i(e){ae(this,i),this.ctx=e,this.w=e.w}return oe(i,[{key:"checkColorRange",value:function(){var e=this.w,t=!1,n=e.config.plotOptions[e.config.chart.type];return n.colorScale.ranges.length>0&&n.colorScale.ranges.map(function(r,a){r.from<=0&&(t=!0)}),t}},{key:"getShadeColor",value:function(e,t,n,r){var a=this.w,o=1,s=a.config.plotOptions[e].shadeIntensity,l=this.determineColor(e,t,n);a.globals.hasNegs||r?o=a.config.plotOptions[e].reverseNegativeShade?l.percent<0?l.percent/100*(1.25*s):(1-l.percent/100)*(1.25*s):l.percent<=0?1-(1+l.percent/100)*s:(1-l.percent/100)*s:(o=1-l.percent/100,e==="treemap"&&(o=(1-l.percent/100)*(1.25*s)));var h=l.color,u=new q;if(a.config.plotOptions[e].enableShades)if(this.w.config.theme.mode==="dark"){var c=u.shadeColor(-1*o,l.color);h=q.hexToRgba(q.isColorHex(c)?c:q.rgb2hex(c),a.config.fill.opacity)}else{var f=u.shadeColor(o,l.color);h=q.hexToRgba(q.isColorHex(f)?f:q.rgb2hex(f),a.config.fill.opacity)}return{color:h,colorProps:l}}},{key:"determineColor",value:function(e,t,n){var r=this.w,a=r.globals.series[t][n],o=r.config.plotOptions[e],s=o.colorScale.inverse?n:t;o.distributed&&r.config.chart.type==="treemap"&&(s=n);var l=r.globals.colors[s],h=null,u=Math.min.apply(Math,nt(r.globals.series[t])),c=Math.max.apply(Math,nt(r.globals.series[t]));o.distributed||e!=="heatmap"||(u=r.globals.minY,c=r.globals.maxY),o.colorScale.min!==void 0&&(u=o.colorScale.min<r.globals.minY?o.colorScale.min:r.globals.minY,c=o.colorScale.max>r.globals.maxY?o.colorScale.max:r.globals.maxY);var f=Math.abs(c)+Math.abs(u),d=100*a/(f===0?f-1e-6:f);return o.colorScale.ranges.length>0&&o.colorScale.ranges.map(function(p,g){if(a>=p.from&&a<=p.to){l=p.color,h=p.foreColor?p.foreColor:null,u=p.from,c=p.to;var m=Math.abs(c)+Math.abs(u);d=100*a/(m===0?m-1e-6:m)}}),{color:l,foreColor:h,percent:d}}},{key:"calculateDataLabels",value:function(e){var t=e.text,n=e.x,r=e.y,a=e.i,o=e.j,s=e.colorProps,l=e.fontSize,h=this.w.config.dataLabels,u=new Q(this.ctx),c=new vi(this.ctx),f=null;if(h.enabled){f=u.group({class:"apexcharts-data-labels"});var d=h.offsetX,p=h.offsetY,g=n+d,m=r+parseFloat(h.style.fontSize)/3+p;c.plotDataLabelsText({x:g,y:m,text:t,i:a,j:o,color:s.foreColor,parent:f,fontSize:l,dataLabelsConfig:h})}return f}},{key:"addListeners",value:function(e){var t=new Q(this.ctx);e.node.addEventListener("mouseenter",t.pathMouseEnter.bind(this,e)),e.node.addEventListener("mouseleave",t.pathMouseLeave.bind(this,e)),e.node.addEventListener("mousedown",t.pathMouseDown.bind(this,e))}}]),i}(),dg=function(){function i(e,t){ae(this,i),this.ctx=e,this.w=e.w,this.xRatio=t.xRatio,this.yRatio=t.yRatio,this.dynamicAnim=this.w.config.chart.animations.dynamicAnimation,this.helpers=new oh(e),this.rectRadius=this.w.config.plotOptions.heatmap.radius,this.strokeWidth=this.w.config.stroke.show?this.w.config.stroke.width:0}return oe(i,[{key:"draw",value:function(e){var t=this.w,n=new Q(this.ctx),r=n.group({class:"apexcharts-heatmap"});r.attr("clip-path","url(#gridRectMask".concat(t.globals.cuid,")"));var a=t.globals.gridWidth/t.globals.dataPoints,o=t.globals.gridHeight/t.globals.series.length,s=0,l=!1;this.negRange=this.helpers.checkColorRange();var h=e.slice();t.config.yaxis[0].reversed&&(l=!0,h.reverse());for(var u=l?0:h.length-1;l?u<h.length:u>=0;l?u++:u--){var c=n.group({class:"apexcharts-series apexcharts-heatmap-series",seriesName:q.escapeString(t.globals.seriesNames[u]),rel:u+1,"data:realIndex":u});if(this.ctx.series.addCollapsedClassToSeries(c,u),t.config.chart.dropShadow.enabled){var f=t.config.chart.dropShadow;new ut(this.ctx).dropShadow(c,f,u)}for(var d=0,p=t.config.plotOptions.heatmap.shadeIntensity,g=0,m=0;m<t.globals.dataPoints;m++)if(t.globals.seriesX.length&&!t.globals.allSeriesHasEqualX&&t.globals.minX+t.globals.minXDiff*m<t.globals.seriesX[u][g])d+=a;else{if(g>=h[u].length)break;var v=this.helpers.getShadeColor(t.config.chart.type,u,g,this.negRange),y=v.color,b=v.colorProps;t.config.fill.type==="image"&&(y=new Kt(this.ctx).fillPath({seriesNumber:u,dataPointIndex:g,opacity:t.globals.hasNegs?b.percent<0?1-(1+b.percent/100):p+b.percent/100:b.percent/100,patternID:q.randomId(),width:t.config.fill.image.width?t.config.fill.image.width:a,height:t.config.fill.image.height?t.config.fill.image.height:o}));var x=this.rectRadius,w=n.drawRect(d,s,a,o,x);if(w.attr({cx:d,cy:s}),w.node.classList.add("apexcharts-heatmap-rect"),c.add(w),w.attr({fill:y,i:u,index:u,j:g,val:e[u][g],"stroke-width":this.strokeWidth,stroke:t.config.plotOptions.heatmap.useFillColorAsStroke?y:t.globals.stroke.colors[0],color:y}),this.helpers.addListeners(w),t.config.chart.animations.enabled&&!t.globals.dataChanged){var k=1;t.globals.resized||(k=t.config.chart.animations.speed),this.animateHeatMap(w,d,s,a,o,k)}if(t.globals.dataChanged){var S=1;if(this.dynamicAnim.enabled&&t.globals.shouldAnimate){S=this.dynamicAnim.speed;var A=t.globals.previousPaths[u]&&t.globals.previousPaths[u][g]&&t.globals.previousPaths[u][g].color;A||(A="rgba(255, 255, 255, 0)"),this.animateHeatColor(w,q.isColorHex(A)?A:q.rgb2hex(A),q.isColorHex(y)?y:q.rgb2hex(y),S)}}var O=(0,t.config.dataLabels.formatter)(t.globals.series[u][g],{value:t.globals.series[u][g],seriesIndex:u,dataPointIndex:g,w:t}),_=this.helpers.calculateDataLabels({text:O,x:d+a/2,y:s+o/2,i:u,j:g,colorProps:b,series:h});_!==null&&c.add(_),d+=a,g++}s+=o,r.add(c)}var C=t.globals.yAxisScale[0].result.slice();return t.config.yaxis[0].reversed?C.unshift(""):C.push(""),t.globals.yAxisScale[0].result=C,r}},{key:"animateHeatMap",value:function(e,t,n,r,a,o){var s=new ki(this.ctx);s.animateRect(e,{x:t+r/2,y:n+a/2,width:0,height:0},{x:t,y:n,width:r,height:a},o,function(){s.animationCompleted(e)})}},{key:"animateHeatColor",value:function(e,t,n,r){e.attr({fill:t}).animate(r).attr({fill:n})}}]),i}(),sh=function(){function i(e){ae(this,i),this.ctx=e,this.w=e.w}return oe(i,[{key:"drawYAxisTexts",value:function(e,t,n,r){var a=this.w,o=a.config.yaxis[0],s=a.globals.yLabelFormatters[0];return new Q(this.ctx).drawText({x:e+o.labels.offsetX,y:t+o.labels.offsetY,text:s(r,n),textAnchor:"middle",fontSize:o.labels.style.fontSize,fontFamily:o.labels.style.fontFamily,foreColor:Array.isArray(o.labels.style.colors)?o.labels.style.colors[n]:o.labels.style.colors})}}]),i}(),lh=function(){function i(e){ae(this,i),this.ctx=e,this.w=e.w;var t=this.w;this.chartType=this.w.config.chart.type,this.initialAnim=this.w.config.chart.animations.enabled,this.dynamicAnim=this.initialAnim&&this.w.config.chart.animations.dynamicAnimation.enabled,this.animBeginArr=[0],this.animDur=0,this.donutDataLabels=this.w.config.plotOptions.pie.donut.labels,this.lineColorArr=t.globals.stroke.colors!==void 0?t.globals.stroke.colors:t.globals.colors,this.defaultSize=Math.min(t.globals.gridWidth,t.globals.gridHeight),this.centerY=this.defaultSize/2,this.centerX=t.globals.gridWidth/2,t.config.chart.type==="radialBar"?this.fullAngle=360:this.fullAngle=Math.abs(t.config.plotOptions.pie.endAngle-t.config.plotOptions.pie.startAngle),this.initialAngle=t.config.plotOptions.pie.startAngle%this.fullAngle,t.globals.radialSize=this.defaultSize/2.05-t.config.stroke.width-(t.config.chart.sparkline.enabled?0:t.config.chart.dropShadow.blur),this.donutSize=t.globals.radialSize*parseInt(t.config.plotOptions.pie.donut.size,10)/100;var n=t.config.plotOptions.pie.customScale,r=t.globals.gridWidth/2,a=t.globals.gridHeight/2;this.translateX=r-r*n,this.translateY=a-a*n,this.dataLabelsGroup=new Q(this.ctx).group({class:"apexcharts-datalabels-group",transform:"translate(".concat(this.translateX,", ").concat(this.translateY,") scale(").concat(n,")")}),this.maxY=0,this.sliceLabels=[],this.sliceSizes=[],this.prevSectorAngleArr=[]}return oe(i,[{key:"draw",value:function(e){var t=this,n=this.w,r=new Q(this.ctx),a=r.group({class:"apexcharts-pie"});if(n.globals.noData)return a;for(var o=0,s=0;s<e.length;s++)o+=q.negToZero(e[s]);var l=[],h=r.group();o===0&&(o=1e-5),e.forEach(function(b){t.maxY=Math.max(t.maxY,b)}),n.config.yaxis[0].max&&(this.maxY=n.config.yaxis[0].max),n.config.grid.position==="back"&&this.chartType==="polarArea"&&this.drawPolarElements(a);for(var u=0;u<e.length;u++){var c=this.fullAngle*q.negToZero(e[u])/o;l.push(c),this.chartType==="polarArea"?(l[u]=this.fullAngle/e.length,this.sliceSizes.push(n.globals.radialSize*e[u]/this.maxY)):this.sliceSizes.push(n.globals.radialSize)}if(n.globals.dataChanged){for(var f,d=0,p=0;p<n.globals.previousPaths.length;p++)d+=q.negToZero(n.globals.previousPaths[p]);for(var g=0;g<n.globals.previousPaths.length;g++)f=this.fullAngle*q.negToZero(n.globals.previousPaths[g])/d,this.prevSectorAngleArr.push(f)}if(this.donutSize<0&&(this.donutSize=0),this.chartType==="donut"){var m=r.drawCircle(this.donutSize);m.attr({cx:this.centerX,cy:this.centerY,fill:n.config.plotOptions.pie.donut.background?n.config.plotOptions.pie.donut.background:"transparent"}),h.add(m)}var v=this.drawArcs(l,e);if(this.sliceLabels.forEach(function(b){v.add(b)}),h.attr({transform:"translate(".concat(this.translateX,", ").concat(this.translateY,") scale(").concat(n.config.plotOptions.pie.customScale,")")}),h.add(v),a.add(h),this.donutDataLabels.show){var y=this.renderInnerDataLabels(this.dataLabelsGroup,this.donutDataLabels,{hollowSize:this.donutSize,centerX:this.centerX,centerY:this.centerY,opacity:this.donutDataLabels.show});a.add(y)}return n.config.grid.position==="front"&&this.chartType==="polarArea"&&this.drawPolarElements(a),a}},{key:"drawArcs",value:function(e,t){var n=this.w,r=new ut(this.ctx),a=new Q(this.ctx),o=new Kt(this.ctx),s=a.group({class:"apexcharts-slices"}),l=this.initialAngle,h=this.initialAngle,u=this.initialAngle,c=this.initialAngle;this.strokeWidth=n.config.stroke.show?n.config.stroke.width:0;for(var f=0;f<e.length;f++){var d=a.group({class:"apexcharts-series apexcharts-pie-series",seriesName:q.escapeString(n.globals.seriesNames[f]),rel:f+1,"data:realIndex":f});s.add(d),h=c,u=(l=u)+e[f],c=h+this.prevSectorAngleArr[f];var p=u<l?this.fullAngle+u-l:u-l,g=o.fillPath({seriesNumber:f,size:this.sliceSizes[f],value:t[f]}),m=this.getChangedPath(h,c),v=a.drawPath({d:m,stroke:Array.isArray(this.lineColorArr)?this.lineColorArr[f]:this.lineColorArr,strokeWidth:0,fill:g,fillOpacity:n.config.fill.opacity,classes:"apexcharts-pie-area apexcharts-".concat(this.chartType.toLowerCase(),"-slice-").concat(f)});if(v.attr({index:0,j:f}),r.setSelectionFilter(v,0,f),n.config.chart.dropShadow.enabled){var y=n.config.chart.dropShadow;r.dropShadow(v,y,f)}this.addListeners(v,this.donutDataLabels),Q.setAttrs(v.node,{"data:angle":p,"data:startAngle":l,"data:strokeWidth":this.strokeWidth,"data:value":t[f]});var b={x:0,y:0};this.chartType==="pie"||this.chartType==="polarArea"?b=q.polarToCartesian(this.centerX,this.centerY,n.globals.radialSize/1.25+n.config.plotOptions.pie.dataLabels.offset,(l+p/2)%this.fullAngle):this.chartType==="donut"&&(b=q.polarToCartesian(this.centerX,this.centerY,(n.globals.radialSize+this.donutSize)/2+n.config.plotOptions.pie.dataLabels.offset,(l+p/2)%this.fullAngle)),d.add(v);var x=0;if(!this.initialAnim||n.globals.resized||n.globals.dataChanged?this.animBeginArr.push(0):((x=p/this.fullAngle*n.config.chart.animations.speed)===0&&(x=1),this.animDur=x+this.animDur,this.animBeginArr.push(this.animDur)),this.dynamicAnim&&n.globals.dataChanged?this.animatePaths(v,{size:this.sliceSizes[f],endAngle:u,startAngle:l,prevStartAngle:h,prevEndAngle:c,animateStartingPos:!0,i:f,animBeginArr:this.animBeginArr,shouldSetPrevPaths:!0,dur:n.config.chart.animations.dynamicAnimation.speed}):this.animatePaths(v,{size:this.sliceSizes[f],endAngle:u,startAngle:l,i:f,totalItems:e.length-1,animBeginArr:this.animBeginArr,dur:x}),n.config.plotOptions.pie.expandOnClick&&this.chartType!=="polarArea"&&v.node.addEventListener("mouseup",this.pieClicked.bind(this,f)),n.globals.selectedDataPoints[0]!==void 0&&n.globals.selectedDataPoints[0].indexOf(f)>-1&&this.pieClicked(f),n.config.dataLabels.enabled){var w=b.x,k=b.y,S=100*p/this.fullAngle+"%";if(p!==0&&n.config.plotOptions.pie.dataLabels.minAngleToShowLabel<e[f]){var A=n.config.dataLabels.formatter;A!==void 0&&(S=A(n.globals.seriesPercent[f][0],{seriesIndex:f,w:n}));var O=n.globals.dataLabels.style.colors[f],_=a.group({class:"apexcharts-datalabels"}),C=a.drawText({x:w,y:k,text:S,textAnchor:"middle",fontSize:n.config.dataLabels.style.fontSize,fontFamily:n.config.dataLabels.style.fontFamily,fontWeight:n.config.dataLabels.style.fontWeight,foreColor:O});if(_.add(C),n.config.dataLabels.dropShadow.enabled){var M=n.config.dataLabels.dropShadow;r.dropShadow(C,M)}C.node.classList.add("apexcharts-pie-label"),n.config.chart.animations.animate&&n.globals.resized===!1&&(C.node.classList.add("apexcharts-pie-label-delay"),C.node.style.animationDelay=n.config.chart.animations.speed/940+"s"),this.sliceLabels.push(_)}}}return s}},{key:"addListeners",value:function(e,t){var n=new Q(this.ctx);e.node.addEventListener("mouseenter",n.pathMouseEnter.bind(this,e)),e.node.addEventListener("mouseleave",n.pathMouseLeave.bind(this,e)),e.node.addEventListener("mouseleave",this.revertDataLabelsInner.bind(this,e.node,t)),e.node.addEventListener("mousedown",n.pathMouseDown.bind(this,e)),this.donutDataLabels.total.showAlways||(e.node.addEventListener("mouseenter",this.printDataLabelsInner.bind(this,e.node,t)),e.node.addEventListener("mousedown",this.printDataLabelsInner.bind(this,e.node,t)))}},{key:"animatePaths",value:function(e,t){var n=this.w,r=t.endAngle<t.startAngle?this.fullAngle+t.endAngle-t.startAngle:t.endAngle-t.startAngle,a=r,o=t.startAngle,s=t.startAngle;t.prevStartAngle!==void 0&&t.prevEndAngle!==void 0&&(o=t.prevEndAngle,a=t.prevEndAngle<t.prevStartAngle?this.fullAngle+t.prevEndAngle-t.prevStartAngle:t.prevEndAngle-t.prevStartAngle),t.i===n.config.series.length-1&&(r+s>this.fullAngle?t.endAngle=t.endAngle-(r+s):r+s<this.fullAngle&&(t.endAngle=t.endAngle+(this.fullAngle-(r+s)))),r===this.fullAngle&&(r=this.fullAngle-.01),this.animateArc(e,o,s,r,a,t)}},{key:"animateArc",value:function(e,t,n,r,a,o){var s,l=this,h=this.w,u=new ki(this.ctx),c=o.size;(isNaN(t)||isNaN(a))&&(t=n,a=r,o.dur=0);var f=r,d=n,p=t<n?this.fullAngle+t-n:t-n;h.globals.dataChanged&&o.shouldSetPrevPaths&&o.prevEndAngle&&(s=l.getPiePath({me:l,startAngle:o.prevStartAngle,angle:o.prevEndAngle<o.prevStartAngle?this.fullAngle+o.prevEndAngle-o.prevStartAngle:o.prevEndAngle-o.prevStartAngle,size:c}),e.attr({d:s})),o.dur!==0?e.animate(o.dur,o.animBeginArr[o.i]).after(function(){l.chartType!=="pie"&&l.chartType!=="donut"&&l.chartType!=="polarArea"||this.animate(h.config.chart.animations.dynamicAnimation.speed).attr({"stroke-width":l.strokeWidth}),o.i===h.config.series.length-1&&u.animationCompleted(e)}).during(function(g){f=p+(r-p)*g,o.animateStartingPos&&(f=a+(r-a)*g,d=t-a+(n-(t-a))*g),s=l.getPiePath({me:l,startAngle:d,angle:f,size:c}),e.node.setAttribute("data:pathOrig",s),e.attr({d:s})}):(s=l.getPiePath({me:l,startAngle:d,angle:r,size:c}),o.isTrack||(h.globals.animationEnded=!0),e.node.setAttribute("data:pathOrig",s),e.attr({d:s,"stroke-width":l.strokeWidth}))}},{key:"pieClicked",value:function(e){var t,n=this.w,r=this,a=r.sliceSizes[e]+(n.config.plotOptions.pie.expandOnClick?4:0),o=n.globals.dom.Paper.findOne(".apexcharts-".concat(r.chartType.toLowerCase(),"-slice-").concat(e));if(o.attr("data:pieClicked")!=="true"){var s=n.globals.dom.baseEl.getElementsByClassName("apexcharts-pie-area");Array.prototype.forEach.call(s,function(c){c.setAttribute("data:pieClicked","false");var f=c.getAttribute("data:pathOrig");f&&c.setAttribute("d",f)}),n.globals.capturedDataPointIndex=e,o.attr("data:pieClicked","true");var l=parseInt(o.attr("data:startAngle"),10),h=parseInt(o.attr("data:angle"),10);t=r.getPiePath({me:r,startAngle:l,angle:h,size:a}),h!==360&&o.plot(t)}else{o.attr({"data:pieClicked":"false"}),this.revertDataLabelsInner(o.node,this.donutDataLabels);var u=o.attr("data:pathOrig");o.attr({d:u})}}},{key:"getChangedPath",value:function(e,t){var n="";return this.dynamicAnim&&this.w.globals.dataChanged&&(n=this.getPiePath({me:this,startAngle:e,angle:t-e,size:this.size})),n}},{key:"getPiePath",value:function(e){var t,n=e.me,r=e.startAngle,a=e.angle,o=e.size,s=new Q(this.ctx),l=r,h=Math.PI*(l-90)/180,u=a+r;Math.ceil(u)>=this.fullAngle+this.w.config.plotOptions.pie.startAngle%this.fullAngle&&(u=this.fullAngle+this.w.config.plotOptions.pie.startAngle%this.fullAngle-.01),Math.ceil(u)>this.fullAngle&&(u-=this.fullAngle);var c=Math.PI*(u-90)/180,f=n.centerX+o*Math.cos(h),d=n.centerY+o*Math.sin(h),p=n.centerX+o*Math.cos(c),g=n.centerY+o*Math.sin(c),m=q.polarToCartesian(n.centerX,n.centerY,n.donutSize,u),v=q.polarToCartesian(n.centerX,n.centerY,n.donutSize,l),y=a>180?1:0,b=["M",f,d,"A",o,o,0,y,1,p,g];return t=n.chartType==="donut"?[].concat(b,["L",m.x,m.y,"A",n.donutSize,n.donutSize,0,y,0,v.x,v.y,"L",f,d,"z"]).join(" "):n.chartType==="pie"||n.chartType==="polarArea"?[].concat(b,["L",n.centerX,n.centerY,"L",f,d]).join(" "):[].concat(b).join(" "),s.roundPathCorners(t,2*this.strokeWidth)}},{key:"drawPolarElements",value:function(e){var t=this.w,n=new th(this.ctx),r=new Q(this.ctx),a=new sh(this.ctx),o=r.group(),s=r.group(),l=n.niceScale(0,Math.ceil(this.maxY),0),h=l.result.reverse(),u=l.result.length;this.maxY=l.niceMax;for(var c=t.globals.radialSize,f=c/(u-1),d=0;d<u-1;d++){var p=r.drawCircle(c);if(p.attr({cx:this.centerX,cy:this.centerY,fill:"none","stroke-width":t.config.plotOptions.polarArea.rings.strokeWidth,stroke:t.config.plotOptions.polarArea.rings.strokeColor}),t.config.yaxis[0].show){var g=a.drawYAxisTexts(this.centerX,this.centerY-c+parseInt(t.config.yaxis[0].labels.style.fontSize,10)/2,d,h[d]);s.add(g)}o.add(p),c-=f}this.drawSpokes(e),e.add(o),e.add(s)}},{key:"renderInnerDataLabels",value:function(e,t,n){var r=this.w,a=new Q(this.ctx),o=t.total.show;e.node.innerHTML="",e.node.style.opacity=n.opacity;var s,l,h=n.centerX,u=this.donutDataLabels.total.label?n.centerY:n.centerY-n.centerY/6;s=t.name.color===void 0?r.globals.colors[0]:t.name.color;var c=t.name.fontSize,f=t.name.fontFamily,d=t.name.fontWeight;l=t.value.color===void 0?r.config.chart.foreColor:t.value.color;var p=t.value.formatter,g="",m="";if(o?(s=t.total.color,c=t.total.fontSize,f=t.total.fontFamily,d=t.total.fontWeight,m=this.donutDataLabels.total.label?t.total.label:"",g=t.total.formatter(r)):r.globals.series.length===1&&(g=p(r.globals.series[0],r),m=r.globals.seriesNames[0]),m&&(m=t.name.formatter(m,t.total.show,r)),t.name.show){var v=a.drawText({x:h,y:u+parseFloat(t.name.offsetY),text:m,textAnchor:"middle",foreColor:s,fontSize:c,fontWeight:d,fontFamily:f});v.node.classList.add("apexcharts-datalabel-label"),e.add(v)}if(t.value.show){var y=t.name.show?parseFloat(t.value.offsetY)+16:t.value.offsetY,b=a.drawText({x:h,y:u+y,text:g,textAnchor:"middle",foreColor:l,fontWeight:t.value.fontWeight,fontSize:t.value.fontSize,fontFamily:t.value.fontFamily});b.node.classList.add("apexcharts-datalabel-value"),e.add(b)}return e}},{key:"printInnerLabels",value:function(e,t,n,r){var a,o=this.w;r?a=e.name.color===void 0?o.globals.colors[parseInt(r.parentNode.getAttribute("rel"),10)-1]:e.name.color:o.globals.series.length>1&&e.total.show&&(a=e.total.color);var s=o.globals.dom.baseEl.querySelector(".apexcharts-datalabel-label"),l=o.globals.dom.baseEl.querySelector(".apexcharts-datalabel-value");n=(0,e.value.formatter)(n,o),r||typeof e.total.formatter!="function"||(n=e.total.formatter(o));var h=t===e.total.label;t=this.donutDataLabels.total.label?e.name.formatter(t,h,o):"",s!==null&&(s.textContent=t),l!==null&&(l.textContent=n),s!==null&&(s.style.fill=a)}},{key:"printDataLabelsInner",value:function(e,t){var n=this.w,r=e.getAttribute("data:value"),a=n.globals.seriesNames[parseInt(e.parentNode.getAttribute("rel"),10)-1];n.globals.series.length>1&&this.printInnerLabels(t,a,r,e);var o=n.globals.dom.baseEl.querySelector(".apexcharts-datalabels-group");o!==null&&(o.style.opacity=1)}},{key:"drawSpokes",value:function(e){var t=this,n=this.w,r=new Q(this.ctx),a=n.config.plotOptions.polarArea.spokes;if(a.strokeWidth!==0){for(var o=[],s=360/n.globals.series.length,l=0;l<n.globals.series.length;l++)o.push(q.polarToCartesian(this.centerX,this.centerY,n.globals.radialSize,n.config.plotOptions.pie.startAngle+s*l));o.forEach(function(h,u){var c=r.drawLine(h.x,h.y,t.centerX,t.centerY,Array.isArray(a.connectorColors)?a.connectorColors[u]:a.connectorColors);e.add(c)})}}},{key:"revertDataLabelsInner",value:function(){var e=this.w;if(this.donutDataLabels.show){var t=e.globals.dom.Paper.findOne(".apexcharts-datalabels-group"),n=this.renderInnerDataLabels(t,this.donutDataLabels,{hollowSize:this.donutSize,centerX:this.centerX,centerY:this.centerY,opacity:this.donutDataLabels.show});e.globals.dom.Paper.findOne(".apexcharts-radialbar, .apexcharts-pie").add(n)}}}]),i}(),gg=function(){function i(e){ae(this,i),this.ctx=e,this.w=e.w,this.chartType=this.w.config.chart.type,this.initialAnim=this.w.config.chart.animations.enabled,this.dynamicAnim=this.initialAnim&&this.w.config.chart.animations.dynamicAnimation.enabled,this.animDur=0;var t=this.w;this.graphics=new Q(this.ctx),this.lineColorArr=t.globals.stroke.colors!==void 0?t.globals.stroke.colors:t.globals.colors,this.defaultSize=t.globals.svgHeight<t.globals.svgWidth?t.globals.gridHeight:t.globals.gridWidth,this.isLog=t.config.yaxis[0].logarithmic,this.logBase=t.config.yaxis[0].logBase,this.coreUtils=new Je(this.ctx),this.maxValue=this.isLog?this.coreUtils.getLogVal(this.logBase,t.globals.maxY,0):t.globals.maxY,this.minValue=this.isLog?this.coreUtils.getLogVal(this.logBase,this.w.globals.minY,0):t.globals.minY,this.polygons=t.config.plotOptions.radar.polygons,this.strokeWidth=t.config.stroke.show?t.config.stroke.width:0,this.size=this.defaultSize/2.1-this.strokeWidth-t.config.chart.dropShadow.blur,t.config.xaxis.labels.show&&(this.size=this.size-t.globals.xAxisLabelsWidth/1.75),t.config.plotOptions.radar.size!==void 0&&(this.size=t.config.plotOptions.radar.size),this.dataRadiusOfPercent=[],this.dataRadius=[],this.angleArr=[],this.yaxisLabelsTextsPos=[]}return oe(i,[{key:"draw",value:function(e){var t=this,n=this.w,r=new Kt(this.ctx),a=[],o=new vi(this.ctx);e.length&&(this.dataPointsLen=e[n.globals.maxValsInArrayIndex].length),this.disAngle=2*Math.PI/this.dataPointsLen;var s=n.globals.gridWidth/2,l=n.globals.gridHeight/2,h=s+n.config.plotOptions.radar.offsetX,u=l+n.config.plotOptions.radar.offsetY,c=this.graphics.group({class:"apexcharts-radar-series apexcharts-plot-series",transform:"translate(".concat(h||0,", ").concat(u||0,")")}),f=[],d=null,p=null;if(this.yaxisLabels=this.graphics.group({class:"apexcharts-yaxis"}),e.forEach(function(m,v){var y=m.length===n.globals.dataPoints,b=t.graphics.group().attr({class:"apexcharts-series","data:longestSeries":y,seriesName:q.escapeString(n.globals.seriesNames[v]),rel:v+1,"data:realIndex":v});t.dataRadiusOfPercent[v]=[],t.dataRadius[v]=[],t.angleArr[v]=[],m.forEach(function(P,E){var R=Math.abs(t.maxValue-t.minValue);P-=t.minValue,t.isLog&&(P=t.coreUtils.getLogVal(t.logBase,P,0)),t.dataRadiusOfPercent[v][E]=P/R,t.dataRadius[v][E]=t.dataRadiusOfPercent[v][E]*t.size,t.angleArr[v][E]=E*t.disAngle}),f=t.getDataPointsPos(t.dataRadius[v],t.angleArr[v]);var x=t.createPaths(f,{x:0,y:0});d=t.graphics.group({class:"apexcharts-series-markers-wrap apexcharts-element-hidden"}),p=t.graphics.group({class:"apexcharts-datalabels","data:realIndex":v}),n.globals.delayedElements.push({el:d.node,index:v});var w={i:v,realIndex:v,animationDelay:v,initialSpeed:n.config.chart.animations.speed,dataChangeSpeed:n.config.chart.animations.dynamicAnimation.speed,className:"apexcharts-radar",shouldClipToGrid:!1,bindEventsOnPaths:!1,stroke:n.globals.stroke.colors[v],strokeLineCap:n.config.stroke.lineCap},k=null;n.globals.previousPaths.length>0&&(k=t.getPreviousPath(v));for(var S=0;S<x.linePathsTo.length;S++){var A=t.graphics.renderPaths(ne(ne({},w),{},{pathFrom:k===null?x.linePathsFrom[S]:k,pathTo:x.linePathsTo[S],strokeWidth:Array.isArray(t.strokeWidth)?t.strokeWidth[v]:t.strokeWidth,fill:"none",drawShadow:!1}));b.add(A);var O=r.fillPath({seriesNumber:v}),_=t.graphics.renderPaths(ne(ne({},w),{},{pathFrom:k===null?x.areaPathsFrom[S]:k,pathTo:x.areaPathsTo[S],strokeWidth:0,fill:O,drawShadow:!1}));if(n.config.chart.dropShadow.enabled){var C=new ut(t.ctx),M=n.config.chart.dropShadow;C.dropShadow(_,Object.assign({},M,{noUserSpaceOnUse:!0}),v)}b.add(_)}m.forEach(function(P,E){var R=new Ei(t.ctx).getMarkerConfig({cssClass:"apexcharts-marker",seriesIndex:v,dataPointIndex:E}),T=t.graphics.drawMarker(f[E].x,f[E].y,R);T.attr("rel",E),T.attr("j",E),T.attr("index",v),T.node.setAttribute("default-marker-size",R.pSize);var F=t.graphics.group({class:"apexcharts-series-markers"});F&&F.add(T),d.add(F),b.add(d);var B=n.config.dataLabels;if(B.enabled){var D=B.formatter(n.globals.series[v][E],{seriesIndex:v,dataPointIndex:E,w:n});o.plotDataLabelsText({x:f[E].x,y:f[E].y,text:D,textAnchor:"middle",i:v,j:v,parent:p,offsetCorrection:!1,dataLabelsConfig:ne({},B)})}b.add(p)}),a.push(b)}),this.drawPolygons({parent:c}),n.config.xaxis.labels.show){var g=this.drawXAxisTexts();c.add(g)}return a.forEach(function(m){c.add(m)}),c.add(this.yaxisLabels),c}},{key:"drawPolygons",value:function(e){for(var t=this,n=this.w,r=e.parent,a=new sh(this.ctx),o=n.globals.yAxisScale[0].result.reverse(),s=o.length,l=[],h=this.size/(s-1),u=0;u<s;u++)l[u]=h*u;l.reverse();var c=[],f=[];l.forEach(function(d,p){var g=q.getPolygonPos(d,t.dataPointsLen),m="";g.forEach(function(v,y){if(p===0){var b=t.graphics.drawLine(v.x,v.y,0,0,Array.isArray(t.polygons.connectorColors)?t.polygons.connectorColors[y]:t.polygons.connectorColors);f.push(b)}y===0&&t.yaxisLabelsTextsPos.push({x:v.x,y:v.y}),m+=v.x+","+v.y+" "}),c.push(m)}),c.forEach(function(d,p){var g=t.polygons.strokeColors,m=t.polygons.strokeWidth,v=t.graphics.drawPolygon(d,Array.isArray(g)?g[p]:g,Array.isArray(m)?m[p]:m,n.globals.radarPolygons.fill.colors[p]);r.add(v)}),f.forEach(function(d){r.add(d)}),n.config.yaxis[0].show&&this.yaxisLabelsTextsPos.forEach(function(d,p){var g=a.drawYAxisTexts(d.x,d.y,p,o[p]);t.yaxisLabels.add(g)})}},{key:"drawXAxisTexts",value:function(){var e=this,t=this.w,n=t.config.xaxis.labels,r=this.graphics.group({class:"apexcharts-xaxis"}),a=q.getPolygonPos(this.size,this.dataPointsLen);return t.globals.labels.forEach(function(o,s){var l=t.config.xaxis.labels.formatter,h=new vi(e.ctx);if(a[s]){var u=e.getTextPos(a[s],e.size),c=l(o,{seriesIndex:-1,dataPointIndex:s,w:t});h.plotDataLabelsText({x:u.newX,y:u.newY,text:c,textAnchor:u.textAnchor,i:s,j:s,parent:r,className:"apexcharts-xaxis-label",color:Array.isArray(n.style.colors)&&n.style.colors[s]?n.style.colors[s]:"#a8a8a8",dataLabelsConfig:ne({textAnchor:u.textAnchor,dropShadow:{enabled:!1}},n),offsetCorrection:!1}).on("click",function(f){if(typeof t.config.chart.events.xAxisLabelClick=="function"){var d=Object.assign({},t,{labelIndex:s});t.config.chart.events.xAxisLabelClick(f,e.ctx,d)}})}}),r}},{key:"createPaths",value:function(e,t){var n=this,r=[],a=[],o=[],s=[];if(e.length){a=[this.graphics.move(t.x,t.y)],s=[this.graphics.move(t.x,t.y)];var l=this.graphics.move(e[0].x,e[0].y),h=this.graphics.move(e[0].x,e[0].y);e.forEach(function(u,c){l+=n.graphics.line(u.x,u.y),h+=n.graphics.line(u.x,u.y),c===e.length-1&&(l+="Z",h+="Z")}),r.push(l),o.push(h)}return{linePathsFrom:a,linePathsTo:r,areaPathsFrom:s,areaPathsTo:o}}},{key:"getTextPos",value:function(e,t){var n="middle",r=e.x,a=e.y;return Math.abs(e.x)>=10?e.x>0?(n="start",r+=10):e.x<0&&(n="end",r-=10):n="middle",Math.abs(e.y)>=t-10&&(e.y<0?a-=10:e.y>0&&(a+=10)),{textAnchor:n,newX:r,newY:a}}},{key:"getPreviousPath",value:function(e){for(var t=this.w,n=null,r=0;r<t.globals.previousPaths.length;r++){var a=t.globals.previousPaths[r];a.paths.length>0&&parseInt(a.realIndex,10)===parseInt(e,10)&&t.globals.previousPaths[r].paths[0]!==void 0&&(n=t.globals.previousPaths[r].paths[0].d)}return n}},{key:"getDataPointsPos",value:function(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.dataPointsLen;e=e||[],t=t||[];for(var r=[],a=0;a<n;a++){var o={};o.x=e[a]*Math.sin(t[a]),o.y=-e[a]*Math.cos(t[a]),r.push(o)}return r}}]),i}(),pg=function(i){yr(t,lh);var e=mr(t);function t(n){var r;ae(this,t),(r=e.call(this,n)).ctx=n,r.w=n.w,r.animBeginArr=[0],r.animDur=0;var a=r.w;return r.startAngle=a.config.plotOptions.radialBar.startAngle,r.endAngle=a.config.plotOptions.radialBar.endAngle,r.totalAngle=Math.abs(a.config.plotOptions.radialBar.endAngle-a.config.plotOptions.radialBar.startAngle),r.trackStartAngle=a.config.plotOptions.radialBar.track.startAngle,r.trackEndAngle=a.config.plotOptions.radialBar.track.endAngle,r.barLabels=r.w.config.plotOptions.radialBar.barLabels,r.donutDataLabels=r.w.config.plotOptions.radialBar.dataLabels,r.radialDataLabels=r.donutDataLabels,r.trackStartAngle||(r.trackStartAngle=r.startAngle),r.trackEndAngle||(r.trackEndAngle=r.endAngle),r.endAngle===360&&(r.endAngle=359.99),r.margin=parseInt(a.config.plotOptions.radialBar.track.margin,10),r.onBarLabelClick=r.onBarLabelClick.bind(wc(r)),r}return oe(t,[{key:"draw",value:function(n){var r=this.w,a=new Q(this.ctx),o=a.group({class:"apexcharts-radialbar"});if(r.globals.noData)return o;var s=a.group(),l=this.defaultSize/2,h=r.globals.gridWidth/2,u=this.defaultSize/2.05;r.config.chart.sparkline.enabled||(u=u-r.config.stroke.width-r.config.chart.dropShadow.blur);var c=r.globals.fill.colors;if(r.config.plotOptions.radialBar.track.show){var f=this.drawTracks({size:u,centerX:h,centerY:l,colorArr:c,series:n});s.add(f)}var d=this.drawArcs({size:u,centerX:h,centerY:l,colorArr:c,series:n}),p=360;r.config.plotOptions.radialBar.startAngle<0&&(p=this.totalAngle);var g=(360-p)/360;if(r.globals.radialSize=u-u*g,this.radialDataLabels.value.show){var m=Math.max(this.radialDataLabels.value.offsetY,this.radialDataLabels.name.offsetY);r.globals.radialSize+=m*g}return s.add(d.g),r.config.plotOptions.radialBar.hollow.position==="front"&&(d.g.add(d.elHollow),d.dataLabels&&d.g.add(d.dataLabels)),o.add(s),o}},{key:"drawTracks",value:function(n){var r=this.w,a=new Q(this.ctx),o=a.group({class:"apexcharts-tracks"}),s=new ut(this.ctx),l=new Kt(this.ctx),h=this.getStrokeWidth(n);n.size=n.size-h/2;for(var u=0;u<n.series.length;u++){var c=a.group({class:"apexcharts-radialbar-track apexcharts-track"});o.add(c),c.attr({rel:u+1}),n.size=n.size-h-this.margin;var f=r.config.plotOptions.radialBar.track,d=l.fillPath({seriesNumber:0,size:n.size,fillColors:Array.isArray(f.background)?f.background[u]:f.background,solid:!0}),p=this.trackStartAngle,g=this.trackEndAngle;Math.abs(g)+Math.abs(p)>=360&&(g=360-Math.abs(this.startAngle)-.1);var m=a.drawPath({d:"",stroke:d,strokeWidth:h*parseInt(f.strokeWidth,10)/100,fill:"none",strokeOpacity:f.opacity,classes:"apexcharts-radialbar-area"});if(f.dropShadow.enabled){var v=f.dropShadow;s.dropShadow(m,v)}c.add(m),m.attr("id","apexcharts-radialbarTrack-"+u),this.animatePaths(m,{centerX:n.centerX,centerY:n.centerY,endAngle:g,startAngle:p,size:n.size,i:u,totalItems:2,animBeginArr:0,dur:0,isTrack:!0})}return o}},{key:"drawArcs",value:function(n){var r=this.w,a=new Q(this.ctx),o=new Kt(this.ctx),s=new ut(this.ctx),l=a.group(),h=this.getStrokeWidth(n);n.size=n.size-h/2;var u=r.config.plotOptions.radialBar.hollow.background,c=n.size-h*n.series.length-this.margin*n.series.length-h*parseInt(r.config.plotOptions.radialBar.track.strokeWidth,10)/100/2,f=c-r.config.plotOptions.radialBar.hollow.margin;r.config.plotOptions.radialBar.hollow.image!==void 0&&(u=this.drawHollowImage(n,l,c,u));var d=this.drawHollow({size:f,centerX:n.centerX,centerY:n.centerY,fill:u||"transparent"});if(r.config.plotOptions.radialBar.hollow.dropShadow.enabled){var p=r.config.plotOptions.radialBar.hollow.dropShadow;s.dropShadow(d,p)}var g=1;!this.radialDataLabels.total.show&&r.globals.series.length>1&&(g=0);var m=null;if(this.radialDataLabels.show){var v=r.globals.dom.Paper.findOne(".apexcharts-datalabels-group");m=this.renderInnerDataLabels(v,this.radialDataLabels,{hollowSize:c,centerX:n.centerX,centerY:n.centerY,opacity:g})}r.config.plotOptions.radialBar.hollow.position==="back"&&(l.add(d),m&&l.add(m));var y=!1;r.config.plotOptions.radialBar.inverseOrder&&(y=!0);for(var b=y?n.series.length-1:0;y?b>=0:b<n.series.length;y?b--:b++){var x=a.group({class:"apexcharts-series apexcharts-radial-series",seriesName:q.escapeString(r.globals.seriesNames[b])});l.add(x),x.attr({rel:b+1,"data:realIndex":b}),this.ctx.series.addCollapsedClassToSeries(x,b),n.size=n.size-h-this.margin;var w=o.fillPath({seriesNumber:b,size:n.size,value:n.series[b]}),k=this.startAngle,S=void 0,A=q.negToZero(n.series[b]>100?100:n.series[b])/100,O=Math.round(this.totalAngle*A)+this.startAngle,_=void 0;r.globals.dataChanged&&(S=this.startAngle,_=Math.round(this.totalAngle*q.negToZero(r.globals.previousPaths[b])/100)+S),Math.abs(O)+Math.abs(k)>360&&(O-=.01),Math.abs(_)+Math.abs(S)>360&&(_-=.01);var C=O-k,M=Array.isArray(r.config.stroke.dashArray)?r.config.stroke.dashArray[b]:r.config.stroke.dashArray,P=a.drawPath({d:"",stroke:w,strokeWidth:h,fill:"none",fillOpacity:r.config.fill.opacity,classes:"apexcharts-radialbar-area apexcharts-radialbar-slice-"+b,strokeDashArray:M});if(Q.setAttrs(P.node,{"data:angle":C,"data:value":n.series[b]}),r.config.chart.dropShadow.enabled){var E=r.config.chart.dropShadow;s.dropShadow(P,E,b)}if(s.setSelectionFilter(P,0,b),this.addListeners(P,this.radialDataLabels),x.add(P),P.attr({index:0,j:b}),this.barLabels.enabled){var R=q.polarToCartesian(n.centerX,n.centerY,n.size,k),T=this.barLabels.formatter(r.globals.seriesNames[b],{seriesIndex:b,w:r}),F=["apexcharts-radialbar-label"];this.barLabels.onClick||F.push("apexcharts-no-click");var B=this.barLabels.useSeriesColors?r.globals.colors[b]:r.config.chart.foreColor;B||(B=r.config.chart.foreColor);var D=R.x+this.barLabels.offsetX,N=R.y+this.barLabels.offsetY,L=a.drawText({x:D,y:N,text:T,textAnchor:"end",dominantBaseline:"middle",fontFamily:this.barLabels.fontFamily,fontWeight:this.barLabels.fontWeight,fontSize:this.barLabels.fontSize,foreColor:B,cssClass:F.join(" ")});L.on("click",this.onBarLabelClick),L.attr({rel:b+1}),k!==0&&L.attr({"transform-origin":"".concat(D," ").concat(N),transform:"rotate(".concat(k," 0 0)")}),x.add(L)}var I=0;!this.initialAnim||r.globals.resized||r.globals.dataChanged||(I=r.config.chart.animations.speed),r.globals.dataChanged&&(I=r.config.chart.animations.dynamicAnimation.speed),this.animDur=I/(1.2*n.series.length)+this.animDur,this.animBeginArr.push(this.animDur),this.animatePaths(P,{centerX:n.centerX,centerY:n.centerY,endAngle:O,startAngle:k,prevEndAngle:_,prevStartAngle:S,size:n.size,i:b,totalItems:2,animBeginArr:this.animBeginArr,dur:I,shouldSetPrevPaths:!0})}return{g:l,elHollow:d,dataLabels:m}}},{key:"drawHollow",value:function(n){var r=new Q(this.ctx).drawCircle(2*n.size);return r.attr({class:"apexcharts-radialbar-hollow",cx:n.centerX,cy:n.centerY,r:n.size,fill:n.fill}),r}},{key:"drawHollowImage",value:function(n,r,a,o){var s=this.w,l=new Kt(this.ctx),h=q.randomId(),u=s.config.plotOptions.radialBar.hollow.image;if(s.config.plotOptions.radialBar.hollow.imageClipped)l.clippedImgArea({width:a,height:a,image:u,patternID:"pattern".concat(s.globals.cuid).concat(h)}),o="url(#pattern".concat(s.globals.cuid).concat(h,")");else{var c=s.config.plotOptions.radialBar.hollow.imageWidth,f=s.config.plotOptions.radialBar.hollow.imageHeight;if(c===void 0&&f===void 0){var d=s.globals.dom.Paper.image(u,function(g){this.move(n.centerX-g.width/2+s.config.plotOptions.radialBar.hollow.imageOffsetX,n.centerY-g.height/2+s.config.plotOptions.radialBar.hollow.imageOffsetY)});r.add(d)}else{var p=s.globals.dom.Paper.image(u,function(g){this.move(n.centerX-c/2+s.config.plotOptions.radialBar.hollow.imageOffsetX,n.centerY-f/2+s.config.plotOptions.radialBar.hollow.imageOffsetY),this.size(c,f)});r.add(p)}}return o}},{key:"getStrokeWidth",value:function(n){var r=this.w;return n.size*(100-parseInt(r.config.plotOptions.radialBar.hollow.size,10))/100/(n.series.length+1)-this.margin}},{key:"onBarLabelClick",value:function(n){var r=parseInt(n.target.getAttribute("rel"),10)-1,a=this.barLabels.onClick,o=this.w;a&&a(o.globals.seriesNames[r],{w:o,seriesIndex:r})}}]),t}(),vg=function(i){yr(t,mi);var e=mr(t);function t(){return ae(this,t),e.apply(this,arguments)}return oe(t,[{key:"draw",value:function(n,r){var a=this.w,o=new Q(this.ctx);this.rangeBarOptions=this.w.config.plotOptions.rangeBar,this.series=n,this.seriesRangeStart=a.globals.seriesRangeStart,this.seriesRangeEnd=a.globals.seriesRangeEnd,this.barHelpers.initVariables(n);for(var s=o.group({class:"apexcharts-rangebar-series apexcharts-plot-series"}),l=0;l<n.length;l++){var h,u,c,f,d=void 0,p=void 0,g=a.globals.comboCharts?r[l]:l,m=this.barHelpers.getGroupIndex(g).columnGroupIndex,v=o.group({class:"apexcharts-series",seriesName:q.escapeString(a.globals.seriesNames[g]),rel:l+1,"data:realIndex":g});this.ctx.series.addCollapsedClassToSeries(v,g),n[l].length>0&&(this.visibleI=this.visibleI+1);var y=0,b=0,x=0;this.yRatio.length>1&&(this.yaxisIndex=a.globals.seriesYAxisReverseMap[g][0],x=g);var w=this.barHelpers.initialPositions(g);p=w.y,f=w.zeroW,d=w.x,b=w.barWidth,y=w.barHeight,h=w.xDivision,u=w.yDivision,c=w.zeroH;for(var k=o.group({class:"apexcharts-datalabels","data:realIndex":g}),S=o.group({class:"apexcharts-rangebar-goals-markers"}),A=0;A<a.globals.dataPoints;A++){var O=this.barHelpers.getStrokeWidth(l,A,g),_=this.seriesRangeStart[l][A],C=this.seriesRangeEnd[l][A],M=null,P=null,E=null,R={x:d,y:p,strokeWidth:O,elSeries:v},T=this.seriesLen;if(a.config.plotOptions.bar.rangeBarGroupRows&&(T=1),a.config.series[l].data[A]===void 0)break;if(this.isHorizontal){E=p+y*this.visibleI;var F=(u-y*T)/2;if(a.config.series[l].data[A].x){var B=this.detectOverlappingBars({i:l,j:A,barYPosition:E,srty:F,barHeight:y,yDivision:u,initPositions:w});y=B.barHeight,E=B.barYPosition}b=(M=this.drawRangeBarPaths(ne({indexes:{i:l,j:A,realIndex:g},barHeight:y,barYPosition:E,zeroW:f,yDivision:u,y1:_,y2:C},R))).barWidth}else{a.globals.isXNumeric&&(d=(a.globals.seriesX[l][A]-a.globals.minX)/this.xRatio-b/2),P=d+b*this.visibleI;var D=(h-b*T)/2;if(a.config.series[l].data[A].x){var N=this.detectOverlappingBars({i:l,j:A,barXPosition:P,srtx:D,barWidth:b,xDivision:h,initPositions:w});b=N.barWidth,P=N.barXPosition}y=(M=this.drawRangeColumnPaths(ne({indexes:{i:l,j:A,realIndex:g,translationsIndex:x},barWidth:b,barXPosition:P,zeroH:c,xDivision:h},R))).barHeight}var L=this.barHelpers.drawGoalLine({barXPosition:M.barXPosition,barYPosition:E,goalX:M.goalX,goalY:M.goalY,barHeight:y,barWidth:b});L&&S.add(L),p=M.y,d=M.x;var I=this.barHelpers.getPathFillColor(n,l,A,g);this.renderSeries({realIndex:g,pathFill:I.color,lineFill:I.useRangeColor?I.color:a.globals.stroke.colors[g],j:A,i:l,x:d,y:p,y1:_,y2:C,pathFrom:M.pathFrom,pathTo:M.pathTo,strokeWidth:O,elSeries:v,series:n,barHeight:y,barWidth:b,barXPosition:P,barYPosition:E,columnGroupIndex:m,elDataLabelsWrap:k,elGoalsMarkers:S,visibleSeries:this.visibleI,type:"rangebar"})}s.add(v)}return s}},{key:"detectOverlappingBars",value:function(n){var r=n.i,a=n.j,o=n.barYPosition,s=n.barXPosition,l=n.srty,h=n.srtx,u=n.barHeight,c=n.barWidth,f=n.yDivision,d=n.xDivision,p=n.initPositions,g=this.w,m=[],v=g.config.series[r].data[a].rangeName,y=g.config.series[r].data[a].x,b=Array.isArray(y)?y.join(" "):y,x=g.globals.labels.map(function(k){return Array.isArray(k)?k.join(" "):k}).indexOf(b),w=g.globals.seriesRange[r].findIndex(function(k){return k.x===b&&k.overlaps.length>0});return this.isHorizontal?(o=g.config.plotOptions.bar.rangeBarGroupRows?l+f*x:l+u*this.visibleI+f*x,w>-1&&!g.config.plotOptions.bar.rangeBarOverlap&&(m=g.globals.seriesRange[r][w].overlaps).indexOf(v)>-1&&(o=(u=p.barHeight/m.length)*this.visibleI+f*(100-parseInt(this.barOptions.barHeight,10))/100/2+u*(this.visibleI+m.indexOf(v))+f*x)):(x>-1&&!g.globals.timescaleLabels.length&&(s=g.config.plotOptions.bar.rangeBarGroupRows?h+d*x:h+c*this.visibleI+d*x),w>-1&&!g.config.plotOptions.bar.rangeBarOverlap&&(m=g.globals.seriesRange[r][w].overlaps).indexOf(v)>-1&&(s=(c=p.barWidth/m.length)*this.visibleI+d*(100-parseInt(this.barOptions.barWidth,10))/100/2+c*(this.visibleI+m.indexOf(v))+d*x)),{barYPosition:o,barXPosition:s,barHeight:u,barWidth:c}}},{key:"drawRangeColumnPaths",value:function(n){var r=n.indexes,a=n.x,o=n.xDivision,s=n.barWidth,l=n.barXPosition,h=n.zeroH,u=this.w,c=r.i,f=r.j,d=r.realIndex,p=r.translationsIndex,g=this.yRatio[p],m=this.getRangeValue(d,f),v=Math.min(m.start,m.end),y=Math.max(m.start,m.end);this.series[c][f]===void 0||this.series[c][f]===null?v=h:(v=h-v/g,y=h-y/g);var b=Math.abs(y-v),x=this.barHelpers.getColumnPaths({barXPosition:l,barWidth:s,y1:v,y2:y,strokeWidth:this.strokeWidth,series:this.seriesRangeEnd,realIndex:d,i:d,j:f,w:u});if(u.globals.isXNumeric){var w=this.getBarXForNumericXAxis({x:a,j:f,realIndex:d,barWidth:s});a=w.x,l=w.barXPosition}else a+=o;return{pathTo:x.pathTo,pathFrom:x.pathFrom,barHeight:b,x:a,y:m.start<0&&m.end<0?v:y,goalY:this.barHelpers.getGoalValues("y",null,h,c,f,p),barXPosition:l}}},{key:"preventBarOverflow",value:function(n){var r=this.w;return n<0&&(n=0),n>r.globals.gridWidth&&(n=r.globals.gridWidth),n}},{key:"drawRangeBarPaths",value:function(n){var r=n.indexes,a=n.y,o=n.y1,s=n.y2,l=n.yDivision,h=n.barHeight,u=n.barYPosition,c=n.zeroW,f=this.w,d=r.realIndex,p=r.j,g=this.preventBarOverflow(c+o/this.invertedYRatio),m=this.preventBarOverflow(c+s/this.invertedYRatio),v=this.getRangeValue(d,p),y=Math.abs(m-g),b=this.barHelpers.getBarpaths({barYPosition:u,barHeight:h,x1:g,x2:m,strokeWidth:this.strokeWidth,series:this.seriesRangeEnd,i:d,realIndex:d,j:p,w:f});return f.globals.isXNumeric||(a+=l),{pathTo:b.pathTo,pathFrom:b.pathFrom,barWidth:y,x:v.start<0&&v.end<0?g:m,goalX:this.barHelpers.getGoalValues("x",c,null,d,p),y:a}}},{key:"getRangeValue",value:function(n,r){var a=this.w;return{start:a.globals.seriesRangeStart[n][r],end:a.globals.seriesRangeEnd[n][r]}}}]),t}(),mg=function(){function i(e){ae(this,i),this.w=e.w,this.lineCtx=e}return oe(i,[{key:"sameValueSeriesFix",value:function(e,t){var n=this.w;if((n.config.fill.type==="gradient"||n.config.fill.type[e]==="gradient")&&new Je(this.lineCtx.ctx,n).seriesHaveSameValues(e)){var r=t[e].slice();r[r.length-1]=r[r.length-1]+1e-6,t[e]=r}return t}},{key:"calculatePoints",value:function(e){var t=e.series,n=e.realIndex,r=e.x,a=e.y,o=e.i,s=e.j,l=e.prevY,h=this.w,u=[],c=[],f=this.lineCtx.categoryAxisCorrection+h.config.markers.offsetX;return h.globals.isXNumeric&&(f=(h.globals.seriesX[n][0]-h.globals.minX)/this.lineCtx.xRatio+h.config.markers.offsetX),s===0&&(u.push(f),c.push(q.isNumber(t[o][0])?l+h.config.markers.offsetY:null)),u.push(r+h.config.markers.offsetX),c.push(q.isNumber(t[o][s+1])?a+h.config.markers.offsetY:null),{x:u,y:c}}},{key:"checkPreviousPaths",value:function(e){for(var t=e.pathFromLine,n=e.pathFromArea,r=e.realIndex,a=this.w,o=0;o<a.globals.previousPaths.length;o++){var s=a.globals.previousPaths[o];(s.type==="line"||s.type==="area")&&s.paths.length>0&&parseInt(s.realIndex,10)===parseInt(r,10)&&(s.type==="line"?(this.lineCtx.appendPathFrom=!1,t=a.globals.previousPaths[o].paths[0].d):s.type==="area"&&(this.lineCtx.appendPathFrom=!1,n=a.globals.previousPaths[o].paths[0].d,a.config.stroke.show&&a.globals.previousPaths[o].paths[1]&&(t=a.globals.previousPaths[o].paths[1].d)))}return{pathFromLine:t,pathFromArea:n}}},{key:"determineFirstPrevY",value:function(e){var t,n,r,a=e.i,o=e.realIndex,s=e.series,l=e.prevY,h=e.lineYPosition,u=e.translationsIndex,c=this.w,f=c.config.chart.stacked&&!c.globals.comboCharts||c.config.chart.stacked&&c.globals.comboCharts&&(!this.w.config.chart.stackOnlyBar||((t=this.w.config.series[o])===null||t===void 0?void 0:t.type)==="bar"||((n=this.w.config.series[o])===null||n===void 0?void 0:n.type)==="column");if(((r=s[a])===null||r===void 0?void 0:r[0])!==void 0)l=(h=f&&a>0?this.lineCtx.prevSeriesY[a-1][0]:this.lineCtx.zeroY)-s[a][0]/this.lineCtx.yRatio[u]+2*(this.lineCtx.isReversed?s[a][0]/this.lineCtx.yRatio[u]:0);else if(f&&a>0&&s[a][0]===void 0){for(var d=a-1;d>=0;d--)if(s[d][0]!==null&&s[d][0]!==void 0){l=h=this.lineCtx.prevSeriesY[d][0];break}}return{prevY:l,lineYPosition:h}}}]),i}(),yg=function(i){for(var e,t,n,r,a=function(u){for(var c=[],f=u[0],d=u[1],p=c[0]=fo(f,d),g=1,m=u.length-1;g<m;g++)f=d,d=u[g+1],c[g]=.5*(p+(p=fo(f,d)));return c[g]=p,c}(i),o=i.length-1,s=[],l=0;l<o;l++)n=fo(i[l],i[l+1]),Math.abs(n)<1e-6?a[l]=a[l+1]=0:(r=(e=a[l]/n)*e+(t=a[l+1]/n)*t)>9&&(r=3*n/Math.sqrt(r),a[l]=r*e,a[l+1]=r*t);for(var h=0;h<=o;h++)r=(i[Math.min(o,h+1)][0]-i[Math.max(0,h-1)][0])/(6*(1+a[h]*a[h])),s.push([r||0,a[h]*r||0]);return s},xg=function(i){var e=yg(i),t=i[1],n=i[0],r=[],a=e[1],o=e[0];r.push(n,[n[0]+o[0],n[1]+o[1],t[0]-a[0],t[1]-a[1],t[0],t[1]]);for(var s=2,l=e.length;s<l;s++){var h=i[s],u=e[s];r.push([h[0]-u[0],h[1]-u[1],h[0],h[1]])}return r},bg=function(i,e,t){var n=i.slice(e,t);if(e){if(t-e>1&&n[1].length<6){var r=n[0].length;n[1]=[2*n[0][r-2]-n[0][r-4],2*n[0][r-1]-n[0][r-3]].concat(n[1])}n[0]=n[0].slice(-2)}return n};function fo(i,e){return(e[1]-i[1])/(e[0]-i[0])}var go=function(){function i(e,t,n){ae(this,i),this.ctx=e,this.w=e.w,this.xyRatios=t,this.pointsChart=!(this.w.config.chart.type!=="bubble"&&this.w.config.chart.type!=="scatter")||n,this.scatter=new Jc(this.ctx),this.noNegatives=this.w.globals.minX===Number.MAX_VALUE,this.lineHelpers=new mg(this),this.markers=new Ei(this.ctx),this.prevSeriesY=[],this.categoryAxisCorrection=0,this.yaxisIndex=0}return oe(i,[{key:"draw",value:function(e,t,n,r){var a,o=this.w,s=new Q(this.ctx),l=o.globals.comboCharts?t:o.config.chart.type,h=s.group({class:"apexcharts-".concat(l,"-series apexcharts-plot-series")}),u=new Je(this.ctx,o);this.yRatio=this.xyRatios.yRatio,this.zRatio=this.xyRatios.zRatio,this.xRatio=this.xyRatios.xRatio,this.baseLineY=this.xyRatios.baseLineY,e=u.getLogSeries(e),this.yRatio=u.getLogYRatios(this.yRatio),this.prevSeriesY=[];for(var c=[],f=0;f<e.length;f++){e=this.lineHelpers.sameValueSeriesFix(f,e);var d=o.globals.comboCharts?n[f]:f,p=this.yRatio.length>1?d:0;this._initSerieVariables(e,f,d);var g=[],m=[],v=[],y=o.globals.padHorizontal+this.categoryAxisCorrection;this.ctx.series.addCollapsedClassToSeries(this.elSeries,d),o.globals.isXNumeric&&o.globals.seriesX.length>0&&(y=(o.globals.seriesX[d][0]-o.globals.minX)/this.xRatio),v.push(y);var b,x=y,w=void 0,k=x,S=this.zeroY,A=this.zeroY;S=this.lineHelpers.determineFirstPrevY({i:f,realIndex:d,series:e,prevY:S,lineYPosition:0,translationsIndex:p}).prevY,o.config.stroke.curve==="monotoneCubic"&&e[f][0]===null?g.push(null):g.push(S),b=S,l==="rangeArea"&&(w=A=this.lineHelpers.determineFirstPrevY({i:f,realIndex:d,series:r,prevY:A,lineYPosition:0,translationsIndex:p}).prevY,m.push(g[0]!==null?A:null));var O=this._calculatePathsFrom({type:l,series:e,i:f,realIndex:d,translationsIndex:p,prevX:k,prevY:S,prevY2:A}),_=[g[0]],C=[m[0]],M={type:l,series:e,realIndex:d,translationsIndex:p,i:f,x:y,y:1,pX:x,pY:b,pathsFrom:O,linePaths:[],areaPaths:[],seriesIndex:n,lineYPosition:0,xArrj:v,yArrj:g,y2Arrj:m,seriesRangeEnd:r},P=this._iterateOverDataPoints(ne(ne({},M),{},{iterations:l==="rangeArea"?e[f].length-1:void 0,isRangeStart:!0}));if(l==="rangeArea"){for(var E=this._calculatePathsFrom({series:r,i:f,realIndex:d,prevX:k,prevY:A}),R=this._iterateOverDataPoints(ne(ne({},M),{},{series:r,xArrj:[y],yArrj:_,y2Arrj:C,pY:w,areaPaths:P.areaPaths,pathsFrom:E,iterations:r[f].length-1,isRangeStart:!1})),T=P.linePaths.length/2,F=0;F<T;F++)P.linePaths[F]=R.linePaths[F+T]+P.linePaths[F];P.linePaths.splice(T),P.pathFromLine=R.pathFromLine+P.pathFromLine}else P.pathFromArea+="z";this._handlePaths({type:l,realIndex:d,i:f,paths:P}),this.elSeries.add(this.elPointsMain),this.elSeries.add(this.elDataLabelsWrap),c.push(this.elSeries)}if(((a=o.config.series[0])===null||a===void 0?void 0:a.zIndex)!==void 0&&c.sort(function(N,L){return Number(N.node.getAttribute("zIndex"))-Number(L.node.getAttribute("zIndex"))}),o.config.chart.stacked)for(var B=c.length-1;B>=0;B--)h.add(c[B]);else for(var D=0;D<c.length;D++)h.add(c[D]);return h}},{key:"_initSerieVariables",value:function(e,t,n){var r=this.w,a=new Q(this.ctx);this.xDivision=r.globals.gridWidth/(r.globals.dataPoints-(r.config.xaxis.tickPlacement==="on"?1:0)),this.strokeWidth=Array.isArray(r.config.stroke.width)?r.config.stroke.width[n]:r.config.stroke.width;var o=0;if(this.yRatio.length>1&&(this.yaxisIndex=r.globals.seriesYAxisReverseMap[n],o=n),this.isReversed=r.config.yaxis[this.yaxisIndex]&&r.config.yaxis[this.yaxisIndex].reversed,this.zeroY=r.globals.gridHeight-this.baseLineY[o]-(this.isReversed?r.globals.gridHeight:0)+(this.isReversed?2*this.baseLineY[o]:0),this.areaBottomY=this.zeroY,(this.zeroY>r.globals.gridHeight||r.config.plotOptions.area.fillTo==="end")&&(this.areaBottomY=r.globals.gridHeight),this.categoryAxisCorrection=this.xDivision/2,this.elSeries=a.group({class:"apexcharts-series",zIndex:r.config.series[n].zIndex!==void 0?r.config.series[n].zIndex:n,seriesName:q.escapeString(r.globals.seriesNames[n])}),this.elPointsMain=a.group({class:"apexcharts-series-markers-wrap","data:realIndex":n}),r.globals.hasNullValues){var s=this.markers.plotChartMarkers({pointsPos:{x:[0],y:[r.globals.gridHeight+r.globals.markers.largestSize]},seriesIndex:t,j:0,pSize:.1,alwaysDrawMarker:!0,isVirtualPoint:!0});s!==null&&this.elPointsMain.add(s)}this.elDataLabelsWrap=a.group({class:"apexcharts-datalabels","data:realIndex":n});var l=e[t].length===r.globals.dataPoints;this.elSeries.attr({"data:longestSeries":l,rel:t+1,"data:realIndex":n}),this.appendPathFrom=!0}},{key:"_calculatePathsFrom",value:function(e){var t,n,r,a,o=e.type,s=e.series,l=e.i,h=e.realIndex,u=e.translationsIndex,c=e.prevX,f=e.prevY,d=e.prevY2,p=this.w,g=new Q(this.ctx);if(s[l][0]===null){for(var m=0;m<s[l].length;m++)if(s[l][m]!==null){c=this.xDivision*m,f=this.zeroY-s[l][m]/this.yRatio[u],t=g.move(c,f),n=g.move(c,this.areaBottomY);break}}else t=g.move(c,f),o==="rangeArea"&&(t=g.move(c,d)+g.line(c,f)),n=g.move(c,this.areaBottomY)+g.line(c,f);if(r=g.move(0,this.areaBottomY)+g.line(0,this.areaBottomY),a=g.move(0,this.areaBottomY)+g.line(0,this.areaBottomY),p.globals.previousPaths.length>0){var v=this.lineHelpers.checkPreviousPaths({pathFromLine:r,pathFromArea:a,realIndex:h});r=v.pathFromLine,a=v.pathFromArea}return{prevX:c,prevY:f,linePath:t,areaPath:n,pathFromLine:r,pathFromArea:a}}},{key:"_handlePaths",value:function(e){var t=e.type,n=e.realIndex,r=e.i,a=e.paths,o=this.w,s=new Q(this.ctx),l=new Kt(this.ctx);this.prevSeriesY.push(a.yArrj),o.globals.seriesXvalues[n]=a.xArrj,o.globals.seriesYvalues[n]=a.yArrj;var h=o.config.forecastDataPoints;if(h.count>0&&t!=="rangeArea"){var u=o.globals.seriesXvalues[n][o.globals.seriesXvalues[n].length-h.count-1],c=s.drawRect(u,0,o.globals.gridWidth,o.globals.gridHeight,0);o.globals.dom.elForecastMask.appendChild(c.node);var f=s.drawRect(0,0,u,o.globals.gridHeight,0);o.globals.dom.elNonForecastMask.appendChild(f.node)}this.pointsChart||o.globals.delayedElements.push({el:this.elPointsMain.node,index:n});var d={i:r,realIndex:n,animationDelay:r,initialSpeed:o.config.chart.animations.speed,dataChangeSpeed:o.config.chart.animations.dynamicAnimation.speed,className:"apexcharts-".concat(t)};if(t==="area")for(var p=l.fillPath({seriesNumber:n}),g=0;g<a.areaPaths.length;g++){var m=s.renderPaths(ne(ne({},d),{},{pathFrom:a.pathFromArea,pathTo:a.areaPaths[g],stroke:"none",strokeWidth:0,strokeLineCap:null,fill:p}));this.elSeries.add(m)}if(o.config.stroke.show&&!this.pointsChart){var v=null;if(t==="line")v=l.fillPath({seriesNumber:n,i:r});else if(o.config.stroke.fill.type==="solid")v=o.globals.stroke.colors[n];else{var y=o.config.fill;o.config.fill=o.config.stroke.fill,v=l.fillPath({seriesNumber:n,i:r}),o.config.fill=y}for(var b=0;b<a.linePaths.length;b++){var x=v;t==="rangeArea"&&(x=l.fillPath({seriesNumber:n}));var w=ne(ne({},d),{},{pathFrom:a.pathFromLine,pathTo:a.linePaths[b],stroke:v,strokeWidth:this.strokeWidth,strokeLineCap:o.config.stroke.lineCap,fill:t==="rangeArea"?x:"none"}),k=s.renderPaths(w);if(this.elSeries.add(k),k.attr("fill-rule","evenodd"),h.count>0&&t!=="rangeArea"){var S=s.renderPaths(w);S.node.setAttribute("stroke-dasharray",h.dashArray),h.strokeWidth&&S.node.setAttribute("stroke-width",h.strokeWidth),this.elSeries.add(S),S.attr("clip-path","url(#forecastMask".concat(o.globals.cuid,")")),k.attr("clip-path","url(#nonForecastMask".concat(o.globals.cuid,")"))}}}}},{key:"_iterateOverDataPoints",value:function(e){var t,n,r=this,a=e.type,o=e.series,s=e.iterations,l=e.realIndex,h=e.translationsIndex,u=e.i,c=e.x,f=e.y,d=e.pX,p=e.pY,g=e.pathsFrom,m=e.linePaths,v=e.areaPaths,y=e.seriesIndex,b=e.lineYPosition,x=e.xArrj,w=e.yArrj,k=e.y2Arrj,S=e.isRangeStart,A=e.seriesRangeEnd,O=this.w,_=new Q(this.ctx),C=this.yRatio,M=g.prevY,P=g.linePath,E=g.areaPath,R=g.pathFromLine,T=g.pathFromArea,F=q.isNumber(O.globals.minYArr[l])?O.globals.minYArr[l]:O.globals.minY;s||(s=O.globals.dataPoints>1?O.globals.dataPoints-1:O.globals.dataPoints);var B=function(V,$){return $-V/C[h]+2*(r.isReversed?V/C[h]:0)},D=f,N=O.config.chart.stacked&&!O.globals.comboCharts||O.config.chart.stacked&&O.globals.comboCharts&&(!this.w.config.chart.stackOnlyBar||((t=this.w.config.series[l])===null||t===void 0?void 0:t.type)==="bar"||((n=this.w.config.series[l])===null||n===void 0?void 0:n.type)==="column"),L=O.config.stroke.curve;Array.isArray(L)&&(L=Array.isArray(y)?L[y[u]]:L[u]);for(var I,H=0,Y=0;Y<s&&o[u].length!==0;Y++){var W=o[u][Y+1]===void 0||o[u][Y+1]===null;if(O.globals.isXNumeric){var z=O.globals.seriesX[l][Y+1];O.globals.seriesX[l][Y+1]===void 0&&(z=O.globals.seriesX[l][s-1]),c=(z-O.globals.minX)/this.xRatio}else c+=this.xDivision;N?u>0&&O.globals.collapsedSeries.length<O.config.series.length-1?b=this.prevSeriesY[function(V){for(var $=V;$>0;$--){if(!(O.globals.collapsedSeriesIndices.indexOf((y==null?void 0:y[$])||$)>-1))return $;$--}return 0}(u-1)][Y+1]:b=this.zeroY:b=this.zeroY,W?f=B(F,b):(f=B(o[u][Y+1],b),a==="rangeArea"&&(D=B(A[u][Y+1],b))),x.push(o[u][Y+1]===null?null:c),!W||O.config.stroke.curve!=="smooth"&&O.config.stroke.curve!=="monotoneCubic"?(w.push(f),k.push(D)):(w.push(null),k.push(null));var X=this.lineHelpers.calculatePoints({series:o,x:c,y:f,realIndex:l,i:u,j:Y,prevY:M}),G=this._createPaths({type:a,series:o,i:u,realIndex:l,j:Y,x:c,y:f,y2:D,xArrj:x,yArrj:w,y2Arrj:k,pX:d,pY:p,pathState:H,segmentStartX:I,linePath:P,areaPath:E,linePaths:m,areaPaths:v,curve:L,isRangeStart:S});v=G.areaPaths,m=G.linePaths,d=G.pX,p=G.pY,H=G.pathState,I=G.segmentStartX,E=G.areaPath,P=G.linePath,!this.appendPathFrom||O.globals.hasNullValues||L==="monotoneCubic"&&a==="rangeArea"||(R+=_.line(c,this.areaBottomY),T+=_.line(c,this.areaBottomY)),this.handleNullDataPoints(o,X,u,Y,l),this._handleMarkersAndLabels({type:a,pointsPos:X,i:u,j:Y,realIndex:l,isRangeStart:S})}return{yArrj:w,xArrj:x,pathFromArea:T,areaPaths:v,pathFromLine:R,linePaths:m,linePath:P,areaPath:E}}},{key:"_handleMarkersAndLabels",value:function(e){var t=e.type,n=e.pointsPos,r=e.isRangeStart,a=e.i,o=e.j,s=e.realIndex,l=this.w,h=new vi(this.ctx);if(this.pointsChart)this.scatter.draw(this.elSeries,o,{realIndex:s,pointsPos:n,zRatio:this.zRatio,elParent:this.elPointsMain});else{l.globals.series[a].length>1&&this.elPointsMain.node.classList.add("apexcharts-element-hidden");var u=this.markers.plotChartMarkers({pointsPos:n,seriesIndex:s,j:o+1});u!==null&&this.elPointsMain.add(u)}var c=h.drawDataLabel({type:t,isRangeStart:r,pos:n,i:s,j:o+1});c!==null&&this.elDataLabelsWrap.add(c)}},{key:"_createPaths",value:function(e){var t=e.type,n=e.series,r=e.i;e.realIndex;var a,o=e.j,s=e.x,l=e.y,h=e.xArrj,u=e.yArrj,c=e.y2,f=e.y2Arrj,d=e.pX,p=e.pY,g=e.pathState,m=e.segmentStartX,v=e.linePath,y=e.areaPath,b=e.linePaths,x=e.areaPaths,w=e.curve,k=e.isRangeStart,S=new Q(this.ctx),A=this.areaBottomY,O=t==="rangeArea",_=t==="rangeArea"&&k;switch(w){case"monotoneCubic":var C=k?u:f;switch(g){case 0:if(C[o+1]===null)break;g=1;case 1:if(!(O?h.length===n[r].length:o===n[r].length-2))break;case 2:var M=k?h:h.slice().reverse(),P=k?C:C.slice().reverse(),E=(a=P,M.map(function(z,X){return[z,a[X]]}).filter(function(z){return z[1]!==null})),R=E.length>1?xg(E):E,T=[];O&&(_?x=E:T=x.reverse());var F=0,B=0;if(function(z,X){for(var G=function(ce){var le=[],ve=0;return ce.forEach(function(Ee){Ee!==null?ve++:ve>0&&(le.push(ve),ve=0)}),ve>0&&le.push(ve),le}(z),V=[],$=0,ee=0;$<G.length;ee+=G[$++])V[$]=bg(X,ee,ee+G[$]);return V}(P,R).forEach(function(z){F++;var X=function($){for(var ee="",ce=0;ce<$.length;ce++){var le=$[ce],ve=le.length;ve>4?(ee+="C".concat(le[0],", ").concat(le[1]),ee+=", ".concat(le[2],", ").concat(le[3]),ee+=", ".concat(le[4],", ").concat(le[5])):ve>2&&(ee+="S".concat(le[0],", ").concat(le[1]),ee+=", ".concat(le[2],", ").concat(le[3]))}return ee}(z),G=B,V=(B+=z.length)-1;_?v=S.move(E[G][0],E[G][1])+X:O?v=S.move(T[G][0],T[G][1])+S.line(E[G][0],E[G][1])+X+S.line(T[V][0],T[V][1]):(v=S.move(E[G][0],E[G][1])+X,y=v+S.line(E[V][0],A)+S.line(E[G][0],A)+"z",x.push(y)),b.push(v)}),O&&F>1&&!_){var D=b.slice(F).reverse();b.splice(F),D.forEach(function(z){return b.push(z)})}g=0}break;case"smooth":var N=.35*(s-d);if(n[r][o]===null)g=0;else switch(g){case 0:if(m=d,v=_?S.move(d,f[o])+S.line(d,p):S.move(d,p),y=S.move(d,p),n[r][o+1]===null||n[r][o+1]===void 0){b.push(v),x.push(y);break}if(g=1,o<n[r].length-2){var L=S.curve(d+N,p,s-N,l,s,l);v+=L,y+=L;break}case 1:if(n[r][o+1]===null)v+=_?S.line(d,c):S.move(d,p),y+=S.line(d,A)+S.line(m,A)+"z",b.push(v),x.push(y),g=-1;else{var I=S.curve(d+N,p,s-N,l,s,l);v+=I,y+=I,o>=n[r].length-2&&(_&&(v+=S.curve(s,l,s,l,s,c)+S.move(s,c)),y+=S.curve(s,l,s,l,s,A)+S.line(m,A)+"z",b.push(v),x.push(y),g=-1)}}d=s,p=l;break;default:var H=function(z,X,G){var V=[];switch(z){case"stepline":V=S.line(X,null,"H")+S.line(null,G,"V");break;case"linestep":V=S.line(null,G,"V")+S.line(X,null,"H");break;case"straight":V=S.line(X,G)}return V};if(n[r][o]===null)g=0;else switch(g){case 0:if(m=d,v=_?S.move(d,f[o])+S.line(d,p):S.move(d,p),y=S.move(d,p),n[r][o+1]===null||n[r][o+1]===void 0){b.push(v),x.push(y);break}if(g=1,o<n[r].length-2){var Y=H(w,s,l);v+=Y,y+=Y;break}case 1:if(n[r][o+1]===null)v+=_?S.line(d,c):S.move(d,p),y+=S.line(d,A)+S.line(m,A)+"z",b.push(v),x.push(y),g=-1;else{var W=H(w,s,l);v+=W,y+=W,o>=n[r].length-2&&(_&&(v+=S.line(s,c)),y+=S.line(s,A)+S.line(m,A)+"z",b.push(v),x.push(y),g=-1)}}d=s,p=l}return{linePaths:b,areaPaths:x,pX:d,pY:p,pathState:g,segmentStartX:m,linePath:v,areaPath:y}}},{key:"handleNullDataPoints",value:function(e,t,n,r,a){var o=this.w;if(e[n][r]===null&&o.config.markers.showNullDataPoints||e[n].length===1){var s=this.strokeWidth-o.config.markers.strokeWidth/2;s>0||(s=0);var l=this.markers.plotChartMarkers({pointsPos:t,seriesIndex:a,j:r+1,pSize:s,alwaysDrawMarker:!0});l!==null&&this.elPointsMain.add(l)}}}]),i}();window.TreemapSquared={},window.TreemapSquared.generate=function(){function i(s,l,h,u){this.xoffset=s,this.yoffset=l,this.height=u,this.width=h,this.shortestEdge=function(){return Math.min(this.height,this.width)},this.getCoordinates=function(c){var f,d=[],p=this.xoffset,g=this.yoffset,m=a(c)/this.height,v=a(c)/this.width;if(this.width>=this.height)for(f=0;f<c.length;f++)d.push([p,g,p+m,g+c[f]/m]),g+=c[f]/m;else for(f=0;f<c.length;f++)d.push([p,g,p+c[f]/v,g+v]),p+=c[f]/v;return d},this.cutArea=function(c){var f;if(this.width>=this.height){var d=c/this.height,p=this.width-d;f=new i(this.xoffset+d,this.yoffset,p,this.height)}else{var g=c/this.width,m=this.height-g;f=new i(this.xoffset,this.yoffset+g,this.width,m)}return f}}function e(s,l,h,u,c){u=u===void 0?0:u,c=c===void 0?0:c;var f=t(function(d,p){var g,m=[],v=p/a(d);for(g=0;g<d.length;g++)m[g]=d[g]*v;return m}(s,l*h),[],new i(u,c,l,h),[]);return function(d){var p,g,m=[];for(p=0;p<d.length;p++)for(g=0;g<d[p].length;g++)m.push(d[p][g]);return m}(f)}function t(s,l,h,u){var c,f,d;if(s.length!==0)return c=h.shortestEdge(),function(p,g,m){var v;if(p.length===0)return!0;(v=p.slice()).push(g);var y=n(p,m),b=n(v,m);return y>=b}(l,f=s[0],c)?(l.push(f),t(s.slice(1),l,h,u)):(d=h.cutArea(a(l),u),u.push(h.getCoordinates(l)),t(s,[],d,u)),u;u.push(h.getCoordinates(l))}function n(s,l){var h=Math.min.apply(Math,s),u=Math.max.apply(Math,s),c=a(s);return Math.max(Math.pow(l,2)*u/Math.pow(c,2),Math.pow(c,2)/(Math.pow(l,2)*h))}function r(s){return s&&s.constructor===Array}function a(s){var l,h=0;for(l=0;l<s.length;l++)h+=s[l];return h}function o(s){var l,h=0;if(r(s[0]))for(l=0;l<s.length;l++)h+=o(s[l]);else h=a(s);return h}return function s(l,h,u,c,f){c=c===void 0?0:c,f=f===void 0?0:f;var d,p,g=[],m=[];if(r(l[0])){for(p=0;p<l.length;p++)g[p]=o(l[p]);for(d=e(g,h,u,c,f),p=0;p<l.length;p++)m.push(s(l[p],d[p][2]-d[p][0],d[p][3]-d[p][1],d[p][0],d[p][1]))}else m=e(l,h,u,c,f);return m}}();var wg=function(){function i(e,t){ae(this,i),this.ctx=e,this.w=e.w,this.strokeWidth=this.w.config.stroke.width,this.helpers=new oh(e),this.dynamicAnim=this.w.config.chart.animations.dynamicAnimation,this.labels=[]}return oe(i,[{key:"draw",value:function(e){var t=this,n=this.w,r=new Q(this.ctx),a=new Kt(this.ctx),o=r.group({class:"apexcharts-treemap"});if(n.globals.noData)return o;var s=[];return e.forEach(function(l){var h=l.map(function(u){return Math.abs(u)});s.push(h)}),this.negRange=this.helpers.checkColorRange(),n.config.series.forEach(function(l,h){l.data.forEach(function(u){Array.isArray(t.labels[h])||(t.labels[h]=[]),t.labels[h].push(u.x)})}),window.TreemapSquared.generate(s,n.globals.gridWidth,n.globals.gridHeight).forEach(function(l,h){var u=r.group({class:"apexcharts-series apexcharts-treemap-series",seriesName:q.escapeString(n.globals.seriesNames[h]),rel:h+1,"data:realIndex":h});if(n.config.chart.dropShadow.enabled){var c=n.config.chart.dropShadow;new ut(t.ctx).dropShadow(o,c,h)}var f=r.group({class:"apexcharts-data-labels"}),d={xMin:1/0,yMin:1/0,xMax:-1/0,yMax:-1/0};l.forEach(function(R,T){var F=R[0],B=R[1],D=R[2],N=R[3];d.xMin=Math.min(d.xMin,F),d.yMin=Math.min(d.yMin,B),d.xMax=Math.max(d.xMax,D),d.yMax=Math.max(d.yMax,N);var L=t.helpers.getShadeColor(n.config.chart.type,h,T,t.negRange),I=L.color,H=a.fillPath({color:I,seriesNumber:h,dataPointIndex:T}),Y=r.drawRect(F,B,D-F,N-B,n.config.plotOptions.treemap.borderRadius,"#fff",1,t.strokeWidth,n.config.plotOptions.treemap.useFillColorAsStroke?I:n.globals.stroke.colors[h]);Y.attr({cx:F,cy:B,index:h,i:h,j:T,width:D-F,height:N-B,fill:H}),Y.node.classList.add("apexcharts-treemap-rect"),t.helpers.addListeners(Y);var W={x:F+(D-F)/2,y:B+(N-B)/2,width:0,height:0},z={x:F,y:B,width:D-F,height:N-B};if(n.config.chart.animations.enabled&&!n.globals.dataChanged){var X=1;n.globals.resized||(X=n.config.chart.animations.speed),t.animateTreemap(Y,W,z,X)}if(n.globals.dataChanged){var G=1;t.dynamicAnim.enabled&&n.globals.shouldAnimate&&(G=t.dynamicAnim.speed,n.globals.previousPaths[h]&&n.globals.previousPaths[h][T]&&n.globals.previousPaths[h][T].rect&&(W=n.globals.previousPaths[h][T].rect),t.animateTreemap(Y,W,z,G))}var V=t.getFontSize(R),$=n.config.dataLabels.formatter(t.labels[h][T],{value:n.globals.series[h][T],seriesIndex:h,dataPointIndex:T,w:n});n.config.plotOptions.treemap.dataLabels.format==="truncate"&&(V=parseInt(n.config.dataLabels.style.fontSize,10),$=t.truncateLabels($,V,F,B,D,N));var ee=null;n.globals.series[h][T]&&(ee=t.helpers.calculateDataLabels({text:$,x:(F+D)/2,y:(B+N)/2+t.strokeWidth/2+V/3,i:h,j:T,colorProps:L,fontSize:V,series:e})),n.config.dataLabels.enabled&&ee&&t.rotateToFitLabel(ee,V,$,F,B,D,N),u.add(Y),ee!==null&&u.add(ee)});var p=n.config.plotOptions.treemap.seriesTitle;if(n.config.series.length>1&&p&&p.show){var g=n.config.series[h].name||"";if(g&&d.xMin<1/0&&d.yMin<1/0){var m=p.offsetX,v=p.offsetY,y=p.borderColor,b=p.borderWidth,x=p.borderRadius,w=p.style,k=w.color||n.config.chart.foreColor,S={left:w.padding.left,right:w.padding.right,top:w.padding.top,bottom:w.padding.bottom},A=r.getTextRects(g,w.fontSize,w.fontFamily),O=A.width+S.left+S.right,_=A.height+S.top+S.bottom,C=d.xMin+(m||0),M=d.yMin+(v||0),P=r.drawRect(C,M,O,_,x,w.background,1,b,y),E=r.drawText({x:C+S.left,y:M+S.top+.75*A.height,text:g,fontSize:w.fontSize,fontFamily:w.fontFamily,fontWeight:w.fontWeight,foreColor:k,cssClass:w.cssClass||""});u.add(P),u.add(E)}}u.add(f),o.add(u)}),o}},{key:"getFontSize",value:function(e){var t=this.w,n=function r(a){var o,s=0;if(Array.isArray(a[0]))for(o=0;o<a.length;o++)s+=r(a[o]);else for(o=0;o<a.length;o++)s+=a[o].length;return s}(this.labels)/function r(a){var o,s=0;if(Array.isArray(a[0]))for(o=0;o<a.length;o++)s+=r(a[o]);else for(o=0;o<a.length;o++)s+=1;return s}(this.labels);return function(r,a){var o=r*a,s=Math.pow(o,.5);return Math.min(s/n,parseInt(t.config.dataLabels.style.fontSize,10))}(e[2]-e[0],e[3]-e[1])}},{key:"rotateToFitLabel",value:function(e,t,n,r,a,o,s){var l=new Q(this.ctx),h=l.getTextRects(n,t);if(h.width+this.w.config.stroke.width+5>o-r&&h.width<=s-a){var u=l.rotateAroundCenter(e.node);e.node.setAttribute("transform","rotate(-90 ".concat(u.x," ").concat(u.y,") translate(").concat(h.height/3,")"))}}},{key:"truncateLabels",value:function(e,t,n,r,a,o){var s=new Q(this.ctx),l=s.getTextRects(e,t).width+this.w.config.stroke.width+5>a-n&&o-r>a-n?o-r:a-n,h=s.getTextBasedOnMaxWidth({text:e,maxWidth:l,fontSize:t});return e.length!==h.length&&l/t<5?"":h}},{key:"animateTreemap",value:function(e,t,n,r){var a=new ki(this.ctx);a.animateRect(e,t,n,r,function(){a.animationCompleted(e)})}}]),i}(),uh=86400,Sg=10/uh,kg=function(){function i(e){ae(this,i),this.ctx=e,this.w=e.w,this.timeScaleArray=[],this.utc=this.w.config.xaxis.labels.datetimeUTC}return oe(i,[{key:"calculateTimeScaleTicks",value:function(e,t){var n=this,r=this.w;if(r.globals.allSeriesCollapsed)return r.globals.labels=[],r.globals.timescaleLabels=[],[];var a=new lt(this.ctx),o=(t-e)/864e5;this.determineInterval(o),r.globals.disableZoomIn=!1,r.globals.disableZoomOut=!1,o<Sg?r.globals.disableZoomIn=!0:o>5e4&&(r.globals.disableZoomOut=!0);var s=a.getTimeUnitsfromTimestamp(e,t,this.utc),l=r.globals.gridWidth/o,h=l/24,u=h/60,c=u/60,f=Math.floor(24*o),d=Math.floor(1440*o),p=Math.floor(o*uh),g=Math.floor(o),m=Math.floor(o/30),v=Math.floor(o/365),y={minMillisecond:s.minMillisecond,minSecond:s.minSecond,minMinute:s.minMinute,minHour:s.minHour,minDate:s.minDate,minMonth:s.minMonth,minYear:s.minYear},b={firstVal:y,currentMillisecond:y.minMillisecond,currentSecond:y.minSecond,currentMinute:y.minMinute,currentHour:y.minHour,currentMonthDate:y.minDate,currentDate:y.minDate,currentMonth:y.minMonth,currentYear:y.minYear,daysWidthOnXAxis:l,hoursWidthOnXAxis:h,minutesWidthOnXAxis:u,secondsWidthOnXAxis:c,numberOfSeconds:p,numberOfMinutes:d,numberOfHours:f,numberOfDays:g,numberOfMonths:m,numberOfYears:v};switch(this.tickInterval){case"years":this.generateYearScale(b);break;case"months":case"half_year":this.generateMonthScale(b);break;case"months_days":case"months_fortnight":case"days":case"week_days":this.generateDayScale(b);break;case"hours":this.generateHourScale(b);break;case"minutes_fives":case"minutes":this.generateMinuteScale(b);break;case"seconds_tens":case"seconds_fives":case"seconds":this.generateSecondScale(b)}var x=this.timeScaleArray.map(function(w){var k={position:w.position,unit:w.unit,year:w.year,day:w.day?w.day:1,hour:w.hour?w.hour:0,month:w.month+1};return w.unit==="month"?ne(ne({},k),{},{day:1,value:w.value+1}):w.unit==="day"||w.unit==="hour"?ne(ne({},k),{},{value:w.value}):w.unit==="minute"?ne(ne({},k),{},{value:w.value,minute:w.value}):w.unit==="second"?ne(ne({},k),{},{value:w.value,minute:w.minute,second:w.second}):w});return x.filter(function(w){var k=1,S=Math.ceil(r.globals.gridWidth/120),A=w.value;r.config.xaxis.tickAmount!==void 0&&(S=r.config.xaxis.tickAmount),x.length>S&&(k=Math.floor(x.length/S));var O=!1,_=!1;switch(n.tickInterval){case"years":w.unit==="year"&&(O=!0);break;case"half_year":k=7,w.unit==="year"&&(O=!0);break;case"months":k=1,w.unit==="year"&&(O=!0);break;case"months_fortnight":k=15,w.unit!=="year"&&w.unit!=="month"||(O=!0),A===30&&(_=!0);break;case"months_days":k=10,w.unit==="month"&&(O=!0),A===30&&(_=!0);break;case"week_days":k=8,w.unit==="month"&&(O=!0);break;case"days":k=1,w.unit==="month"&&(O=!0);break;case"hours":w.unit==="day"&&(O=!0);break;case"minutes_fives":case"seconds_fives":A%5!=0&&(_=!0);break;case"seconds_tens":A%10!=0&&(_=!0)}if(n.tickInterval==="hours"||n.tickInterval==="minutes_fives"||n.tickInterval==="seconds_tens"||n.tickInterval==="seconds_fives"){if(!_)return!0}else if((A%k==0||O)&&!_)return!0})}},{key:"recalcDimensionsBasedOnFormat",value:function(e,t){var n=this.w,r=this.formatDates(e),a=this.removeOverlappingTS(r);n.globals.timescaleLabels=a.slice(),new la(this.ctx).plotCoords()}},{key:"determineInterval",value:function(e){var t=24*e,n=60*t;switch(!0){case e/365>5:this.tickInterval="years";break;case e>800:this.tickInterval="half_year";break;case e>180:this.tickInterval="months";break;case e>90:this.tickInterval="months_fortnight";break;case e>60:this.tickInterval="months_days";break;case e>30:this.tickInterval="week_days";break;case e>2:this.tickInterval="days";break;case t>2.4:this.tickInterval="hours";break;case n>15:this.tickInterval="minutes_fives";break;case n>5:this.tickInterval="minutes";break;case n>1:this.tickInterval="seconds_tens";break;case 60*n>20:this.tickInterval="seconds_fives";break;default:this.tickInterval="seconds"}}},{key:"generateYearScale",value:function(e){var t=e.firstVal,n=e.currentMonth,r=e.currentYear,a=e.daysWidthOnXAxis,o=e.numberOfYears,s=t.minYear,l=0,h=new lt(this.ctx),u="year";if(t.minDate>1||t.minMonth>0){var c=h.determineRemainingDaysOfYear(t.minYear,t.minMonth,t.minDate);l=(h.determineDaysOfYear(t.minYear)-c+1)*a,s=t.minYear+1,this.timeScaleArray.push({position:l,value:s,unit:u,year:s,month:q.monthMod(n+1)})}else t.minDate===1&&t.minMonth===0&&this.timeScaleArray.push({position:l,value:s,unit:u,year:r,month:q.monthMod(n+1)});for(var f=s,d=l,p=0;p<o;p++)f++,d=h.determineDaysOfYear(f-1)*a+d,this.timeScaleArray.push({position:d,value:f,unit:u,year:f,month:1})}},{key:"generateMonthScale",value:function(e){var t=e.firstVal,n=e.currentMonthDate,r=e.currentMonth,a=e.currentYear,o=e.daysWidthOnXAxis,s=e.numberOfMonths,l=r,h=0,u=new lt(this.ctx),c="month",f=0;if(t.minDate>1){h=(u.determineDaysOfMonths(r+1,t.minYear)-n+1)*o,l=q.monthMod(r+1);var d=a+f,p=q.monthMod(l),g=l;l===0&&(c="year",g=d,p=1,d+=f+=1),this.timeScaleArray.push({position:h,value:g,unit:c,year:d,month:p})}else this.timeScaleArray.push({position:h,value:l,unit:c,year:a,month:q.monthMod(r)});for(var m=l+1,v=h,y=0,b=1;y<s;y++,b++){(m=q.monthMod(m))===0?(c="year",f+=1):c="month";var x=this._getYear(a,m,f);v=u.determineDaysOfMonths(m,x)*o+v;var w=m===0?x:m;this.timeScaleArray.push({position:v,value:w,unit:c,year:x,month:m===0?1:m}),m++}}},{key:"generateDayScale",value:function(e){var t=e.firstVal,n=e.currentMonth,r=e.currentYear,a=e.hoursWidthOnXAxis,o=e.numberOfDays,s=new lt(this.ctx),l="day",h=t.minDate+1,u=h,c=function(b,x,w){return b>s.determineDaysOfMonths(x+1,w)&&(u=1,l="month",d=x+=1),x},f=(24-t.minHour)*a,d=h,p=c(u,n,r);t.minHour===0&&t.minDate===1?(f=0,d=q.monthMod(t.minMonth),l="month",u=t.minDate):t.minDate!==1&&t.minHour===0&&t.minMinute===0&&(f=0,h=t.minDate,d=h,p=c(u=h,n,r),d!==1&&(l="day")),this.timeScaleArray.push({position:f,value:d,unit:l,year:this._getYear(r,p,0),month:q.monthMod(p),day:u});for(var g=f,m=0;m<o;m++){l="day",p=c(u+=1,p,this._getYear(r,p,0));var v=this._getYear(r,p,0);g=24*a+g;var y=u===1?q.monthMod(p):u;this.timeScaleArray.push({position:g,value:y,unit:l,year:v,month:q.monthMod(p),day:y})}}},{key:"generateHourScale",value:function(e){var t=e.firstVal,n=e.currentDate,r=e.currentMonth,a=e.currentYear,o=e.minutesWidthOnXAxis,s=e.numberOfHours,l=new lt(this.ctx),h="hour",u=function(k,S){return k>l.determineDaysOfMonths(S+1,a)&&(m=1,S+=1),{month:S,date:m}},c=function(k,S){return k>l.determineDaysOfMonths(S+1,a)?S+=1:S},f=60-(t.minMinute+t.minSecond/60),d=f*o,p=t.minHour+1,g=p;f===60&&(d=0,g=p=t.minHour);var m=n;g>=24&&(g=0,h="day",p=m+=1);var v=u(m,r).month;v=c(m,v),p>31&&(p=m=1),this.timeScaleArray.push({position:d,value:p,unit:h,day:m,hour:g,year:a,month:q.monthMod(v)}),g++;for(var y=d,b=0;b<s;b++){h="hour",g>=24&&(g=0,h="day",v=u(m+=1,v).month,v=c(m,v));var x=this._getYear(a,v,0);y=60*o+y;var w=g===0?m:g;this.timeScaleArray.push({position:y,value:w,unit:h,hour:g,day:m,year:x,month:q.monthMod(v)}),g++}}},{key:"generateMinuteScale",value:function(e){for(var t=e.currentMillisecond,n=e.currentSecond,r=e.currentMinute,a=e.currentHour,o=e.currentDate,s=e.currentMonth,l=e.currentYear,h=e.minutesWidthOnXAxis,u=e.secondsWidthOnXAxis,c=e.numberOfMinutes,f=r+1,d=o,p=s,g=l,m=a,v=(60-n-t/1e3)*u,y=0;y<c;y++)f>=60&&(f=0,(m+=1)===24&&(m=0)),this.timeScaleArray.push({position:v,value:f,unit:"minute",hour:m,minute:f,day:d,year:this._getYear(g,p,0),month:q.monthMod(p)}),v+=h,f++}},{key:"generateSecondScale",value:function(e){for(var t=e.currentMillisecond,n=e.currentSecond,r=e.currentMinute,a=e.currentHour,o=e.currentDate,s=e.currentMonth,l=e.currentYear,h=e.secondsWidthOnXAxis,u=e.numberOfSeconds,c=n+1,f=r,d=o,p=s,g=l,m=a,v=(1e3-t)/1e3*h,y=0;y<u;y++)c>=60&&(c=0,++f>=60&&(f=0,++m===24&&(m=0))),this.timeScaleArray.push({position:v,value:c,unit:"second",hour:m,minute:f,second:c,day:d,year:this._getYear(g,p,0),month:q.monthMod(p)}),v+=h,c++}},{key:"createRawDateString",value:function(e,t){var n=e.year;return e.month===0&&(e.month=1),n+="-"+("0"+e.month.toString()).slice(-2),e.unit==="day"?n+=e.unit==="day"?"-"+("0"+t).slice(-2):"-01":n+="-"+("0"+(e.day?e.day:"1")).slice(-2),e.unit==="hour"?n+=e.unit==="hour"?"T"+("0"+t).slice(-2):"T00":n+="T"+("0"+(e.hour?e.hour:"0")).slice(-2),e.unit==="minute"?n+=":"+("0"+t).slice(-2):n+=":"+(e.minute?("0"+e.minute).slice(-2):"00"),e.unit==="second"?n+=":"+("0"+t).slice(-2):n+=":00",this.utc&&(n+=".000Z"),n}},{key:"formatDates",value:function(e){var t=this,n=this.w;return e.map(function(r){var a=r.value.toString(),o=new lt(t.ctx),s=t.createRawDateString(r,a),l=o.getDate(o.parseDate(s));if(t.utc||(l=o.getDate(o.parseDateWithTimezone(s))),n.config.xaxis.labels.format===void 0){var h="dd MMM",u=n.config.xaxis.labels.datetimeFormatter;r.unit==="year"&&(h=u.year),r.unit==="month"&&(h=u.month),r.unit==="day"&&(h=u.day),r.unit==="hour"&&(h=u.hour),r.unit==="minute"&&(h=u.minute),r.unit==="second"&&(h=u.second),a=o.formatDate(l,h)}else a=o.formatDate(l,n.config.xaxis.labels.format);return{dateString:s,position:r.position,value:a,unit:r.unit,year:r.year,month:r.month}})}},{key:"removeOverlappingTS",value:function(e){var t,n=this,r=new Q(this.ctx),a=!1;e.length>0&&e[0].value&&e.every(function(l){return l.value.length===e[0].value.length})&&(a=!0,t=r.getTextRects(e[0].value).width);var o=0,s=e.map(function(l,h){if(h>0&&n.w.config.xaxis.labels.hideOverlappingLabels){var u=a?t:r.getTextRects(e[o].value).width,c=e[o].position;return l.position>c+u+10?(o=h,l):null}return l});return s=s.filter(function(l){return l!==null})}},{key:"_getYear",value:function(e,t,n){return e+Math.floor(t/12)+n}}]),i}(),Ag=function(){function i(e,t){ae(this,i),this.ctx=t,this.w=t.w,this.el=e}return oe(i,[{key:"setupElements",value:function(){var e=this.w,t=e.globals,n=e.config,r=n.chart.type;t.axisCharts=["line","area","bar","rangeBar","rangeArea","candlestick","boxPlot","scatter","bubble","radar","heatmap","treemap"].includes(r),t.xyCharts=["line","area","bar","rangeBar","rangeArea","candlestick","boxPlot","scatter","bubble"].includes(r),t.isBarHorizontal=["bar","rangeBar","boxPlot"].includes(r)&&n.plotOptions.bar.horizontal,t.chartClass=".apexcharts".concat(t.chartID),t.dom.baseEl=this.el,t.dom.elWrap=document.createElement("div"),Q.setAttrs(t.dom.elWrap,{id:t.chartClass.substring(1),class:"apexcharts-canvas ".concat(t.chartClass.substring(1))}),this.el.appendChild(t.dom.elWrap),t.dom.Paper=window.SVG().addTo(t.dom.elWrap),t.dom.Paper.attr({class:"apexcharts-svg","xmlns:data":"ApexChartsNS",transform:"translate(".concat(n.chart.offsetX,", ").concat(n.chart.offsetY,")")}),t.dom.Paper.node.style.background=n.theme.mode!=="dark"||n.chart.background?n.theme.mode!=="light"||n.chart.background?n.chart.background:"#fff":"#343A3F",this.setSVGDimensions(),t.dom.elLegendForeign=document.createElementNS(t.SVGNS,"foreignObject"),Q.setAttrs(t.dom.elLegendForeign,{x:0,y:0,width:t.svgWidth,height:t.svgHeight}),t.dom.elLegendWrap=document.createElement("div"),t.dom.elLegendWrap.classList.add("apexcharts-legend"),t.dom.elWrap.appendChild(t.dom.elLegendWrap),t.dom.Paper.node.appendChild(t.dom.elLegendForeign),t.dom.elGraphical=t.dom.Paper.group().attr({class:"apexcharts-inner apexcharts-graphical"}),t.dom.elDefs=t.dom.Paper.defs(),t.dom.Paper.add(t.dom.elGraphical),t.dom.elGraphical.add(t.dom.elDefs)}},{key:"plotChartType",value:function(e,t){var n=this.w,r=this.ctx,a=n.config,o=n.globals,s={line:{series:[],i:[]},area:{series:[],i:[]},scatter:{series:[],i:[]},bubble:{series:[],i:[]},bar:{series:[],i:[]},candlestick:{series:[],i:[]},boxPlot:{series:[],i:[]},rangeBar:{series:[],i:[]},rangeArea:{series:[],seriesRangeEnd:[],i:[]}},l=a.chart.type||"line",h=null,u=0;o.series.forEach(function(k,S){var A=e[S].type==="column"?"bar":e[S].type||(l==="column"?"bar":l);s[A]?(A==="rangeArea"?(s[A].series.push(o.seriesRangeStart[S]),s[A].seriesRangeEnd.push(o.seriesRangeEnd[S])):s[A].series.push(k),s[A].i.push(S),A==="bar"&&(n.globals.columnSeries=s.bar)):["heatmap","treemap","pie","donut","polarArea","radialBar","radar"].includes(A)?h=A:console.warn("You have specified an unrecognized series type (".concat(A,").")),l!==A&&A!=="scatter"&&u++}),u>0&&(h&&console.warn("Chart or series type ".concat(h," cannot appear with other chart or series types.")),s.bar.series.length>0&&a.plotOptions.bar.horizontal&&(u-=s.bar.series.length,s.bar={series:[],i:[]},n.globals.columnSeries={series:[],i:[]},console.warn("Horizontal bars are not supported in a mixed/combo chart. Please turn off `plotOptions.bar.horizontal`"))),o.comboCharts||(o.comboCharts=u>0);var c=new go(r,t),f=new ho(r,t);r.pie=new lh(r);var d=new pg(r);r.rangeBar=new vg(r,t);var p=new gg(r),g=[];if(o.comboCharts){var m,v,y=new Je(r);if(s.area.series.length>0&&(m=g).push.apply(m,nt(y.drawSeriesByGroup(s.area,o.areaGroups,"area",c))),s.bar.series.length>0)if(a.chart.stacked){var b=new Kl(r,t);g.push(b.draw(s.bar.series,s.bar.i))}else r.bar=new mi(r,t),g.push(r.bar.draw(s.bar.series,s.bar.i));if(s.rangeArea.series.length>0&&g.push(c.draw(s.rangeArea.series,"rangeArea",s.rangeArea.i,s.rangeArea.seriesRangeEnd)),s.line.series.length>0&&(v=g).push.apply(v,nt(y.drawSeriesByGroup(s.line,o.lineGroups,"line",c))),s.candlestick.series.length>0&&g.push(f.draw(s.candlestick.series,"candlestick",s.candlestick.i)),s.boxPlot.series.length>0&&g.push(f.draw(s.boxPlot.series,"boxPlot",s.boxPlot.i)),s.rangeBar.series.length>0&&g.push(r.rangeBar.draw(s.rangeBar.series,s.rangeBar.i)),s.scatter.series.length>0){var x=new go(r,t,!0);g.push(x.draw(s.scatter.series,"scatter",s.scatter.i))}if(s.bubble.series.length>0){var w=new go(r,t,!0);g.push(w.draw(s.bubble.series,"bubble",s.bubble.i))}}else switch(a.chart.type){case"line":g=c.draw(o.series,"line");break;case"area":g=c.draw(o.series,"area");break;case"bar":a.chart.stacked?g=new Kl(r,t).draw(o.series):(r.bar=new mi(r,t),g=r.bar.draw(o.series));break;case"candlestick":g=new ho(r,t).draw(o.series,"candlestick");break;case"boxPlot":g=new ho(r,t).draw(o.series,a.chart.type);break;case"rangeBar":g=r.rangeBar.draw(o.series);break;case"rangeArea":g=c.draw(o.seriesRangeStart,"rangeArea",void 0,o.seriesRangeEnd);break;case"heatmap":g=new dg(r,t).draw(o.series);break;case"treemap":g=new wg(r,t).draw(o.series);break;case"pie":case"donut":case"polarArea":g=r.pie.draw(o.series);break;case"radialBar":g=d.draw(o.series);break;case"radar":g=p.draw(o.series);break;default:g=c.draw(o.series)}return g}},{key:"setSVGDimensions",value:function(){var e=this.w,t=e.globals,n=e.config;n.chart.width=n.chart.width||"100%",n.chart.height=n.chart.height||"auto",t.svgWidth=n.chart.width,t.svgHeight=n.chart.height;var r=q.getDimensions(this.el),a=n.chart.width.toString().split(/[0-9]+/g).pop();a==="%"?q.isNumber(r[0])&&(r[0].width===0&&(r=q.getDimensions(this.el.parentNode)),t.svgWidth=r[0]*parseInt(n.chart.width,10)/100):a!=="px"&&a!==""||(t.svgWidth=parseInt(n.chart.width,10));var o=String(n.chart.height).toString().split(/[0-9]+/g).pop();if(t.svgHeight!=="auto"&&t.svgHeight!=="")if(o==="%"){var s=q.getDimensions(this.el.parentNode);t.svgHeight=s[1]*parseInt(n.chart.height,10)/100}else t.svgHeight=parseInt(n.chart.height,10);else t.svgHeight=t.axisCharts?t.svgWidth/1.61:t.svgWidth/1.2;if(t.svgWidth=Math.max(t.svgWidth,0),t.svgHeight=Math.max(t.svgHeight,0),Q.setAttrs(t.dom.Paper.node,{width:t.svgWidth,height:t.svgHeight}),o!=="%"){var l=n.chart.sparkline.enabled?0:t.axisCharts?n.chart.parentHeightOffset:0;t.dom.Paper.node.parentNode.parentNode.style.minHeight="".concat(t.svgHeight+l,"px")}t.dom.elWrap.style.width="".concat(t.svgWidth,"px"),t.dom.elWrap.style.height="".concat(t.svgHeight,"px")}},{key:"shiftGraphPosition",value:function(){var e=this.w.globals,t=e.translateY,n=e.translateX;Q.setAttrs(e.dom.elGraphical.node,{transform:"translate(".concat(n,", ").concat(t,")")})}},{key:"resizeNonAxisCharts",value:function(){var e=this.w,t=e.globals,n=0,r=e.config.chart.sparkline.enabled?1:15;r+=e.config.grid.padding.bottom,["top","bottom"].includes(e.config.legend.position)&&e.config.legend.show&&!e.config.legend.floating&&(n=new nh(this.ctx).legendHelpers.getLegendDimensions().clwh+7);var a=e.globals.dom.baseEl.querySelector(".apexcharts-radialbar, .apexcharts-pie"),o=2.05*e.globals.radialSize;if(a&&!e.config.chart.sparkline.enabled&&e.config.plotOptions.radialBar.startAngle!==0){var s=q.getBoundingClientRect(a);o=s.bottom;var l=s.bottom-s.top;o=Math.max(2.05*e.globals.radialSize,l)}var h=Math.ceil(o+t.translateY+n+r);t.dom.elLegendForeign&&t.dom.elLegendForeign.setAttribute("height",h),e.config.chart.height&&String(e.config.chart.height).includes("%")||(t.dom.elWrap.style.height="".concat(h,"px"),Q.setAttrs(t.dom.Paper.node,{height:h}),t.dom.Paper.node.parentNode.parentNode.style.minHeight="".concat(h,"px"))}},{key:"coreCalculations",value:function(){new qo(this.ctx).init()}},{key:"resetGlobals",value:function(){var e=this,t=function(){return e.w.config.series.map(function(){return[]})},n=new Qc,r=this.w.globals;n.initGlobalVars(r),r.seriesXvalues=t(),r.seriesYvalues=t()}},{key:"isMultipleY",value:function(){return!!(Array.isArray(this.w.config.yaxis)&&this.w.config.yaxis.length>1)&&(this.w.globals.isMultipleYAxis=!0,!0)}},{key:"xySettings",value:function(){var e=this.w,t=null;if(e.globals.axisCharts){if(e.config.xaxis.crosshairs.position==="back"&&new Vo(this.ctx).drawXCrosshairs(),e.config.yaxis[0].crosshairs.position==="back"&&new Vo(this.ctx).drawYCrosshairs(),e.config.xaxis.type==="datetime"&&e.config.xaxis.labels.formatter===void 0){this.ctx.timeScale=new kg(this.ctx);var n=[];isFinite(e.globals.minX)&&isFinite(e.globals.maxX)&&!e.globals.isBarHorizontal?n=this.ctx.timeScale.calculateTimeScaleTicks(e.globals.minX,e.globals.maxX):e.globals.isBarHorizontal&&(n=this.ctx.timeScale.calculateTimeScaleTicks(e.globals.minY,e.globals.maxY)),this.ctx.timeScale.recalcDimensionsBasedOnFormat(n)}t=new Je(this.ctx).getCalculatedRatios()}return t}},{key:"updateSourceChart",value:function(e){this.ctx.w.globals.selection=void 0,this.ctx.updateHelpers._updateOptions({chart:{selection:{xaxis:{min:e.w.globals.minX,max:e.w.globals.maxX}}}},!1,!1)}},{key:"setupBrushHandler",value:function(){var e=this,t=this.ctx,n=this.w;if(n.config.chart.brush.enabled&&typeof n.config.chart.events.selection!="function"){var r=Array.isArray(n.config.chart.brush.targets)?n.config.chart.brush.targets:[n.config.chart.brush.target];r.forEach(function(a){var o=t.constructor.getChartByID(a);o.w.globals.brushSource=e.ctx,typeof o.w.config.chart.events.zoomed!="function"&&(o.w.config.chart.events.zoomed=function(){return e.updateSourceChart(o)}),typeof o.w.config.chart.events.scrolled!="function"&&(o.w.config.chart.events.scrolled=function(){return e.updateSourceChart(o)})}),n.config.chart.events.selection=function(a,o){r.forEach(function(s){t.constructor.getChartByID(s).ctx.updateHelpers._updateOptions({xaxis:{min:o.xaxis.min,max:o.xaxis.max}},!1,!1,!1,!1)})}}}}]),i}(),Cg=function(){function i(e){ae(this,i),this.ctx=e,this.w=e.w}return oe(i,[{key:"_updateOptions",value:function(e){var t=this,n=arguments.length>1&&arguments[1]!==void 0&&arguments[1],r=!(arguments.length>2&&arguments[2]!==void 0)||arguments[2],a=!(arguments.length>3&&arguments[3]!==void 0)||arguments[3],o=arguments.length>4&&arguments[4]!==void 0&&arguments[4];return new Promise(function(s){var l=[t.ctx];a&&(l=t.ctx.getSyncedCharts()),t.ctx.w.globals.isExecCalled&&(l=[t.ctx],t.ctx.w.globals.isExecCalled=!1),l.forEach(function(h,u){var c=h.w;if(c.globals.shouldAnimate=r,n||(c.globals.resized=!0,c.globals.dataChanged=!0,r&&h.series.getPreviousPaths()),e&&pi(e)==="object"&&(h.config=new sr(e),e=Je.extendArrayProps(h.config,e,c),h.w.globals.chartID!==t.ctx.w.globals.chartID&&delete e.series,c.config=q.extend(c.config,e),o&&(c.globals.lastXAxis=e.xaxis?q.clone(e.xaxis):[],c.globals.lastYAxis=e.yaxis?q.clone(e.yaxis):[],c.globals.initialConfig=q.extend({},c.config),c.globals.initialSeries=q.clone(c.config.series),e.series))){for(var f=0;f<c.globals.collapsedSeriesIndices.length;f++){var d=c.config.series[c.globals.collapsedSeriesIndices[f]];c.globals.collapsedSeries[f].data=c.globals.axisCharts?d.data.slice():d}for(var p=0;p<c.globals.ancillaryCollapsedSeriesIndices.length;p++){var g=c.config.series[c.globals.ancillaryCollapsedSeriesIndices[p]];c.globals.ancillaryCollapsedSeries[p].data=c.globals.axisCharts?g.data.slice():g}h.series.emptyCollapsedSeries(c.config.series)}return h.update(e).then(function(){u===l.length-1&&s(h)})})})}},{key:"_updateSeries",value:function(e,t){var n=this,r=arguments.length>2&&arguments[2]!==void 0&&arguments[2];return new Promise(function(a){var o,s=n.w;return s.globals.shouldAnimate=t,s.globals.dataChanged=!0,t&&n.ctx.series.getPreviousPaths(),s.globals.axisCharts?((o=e.map(function(l,h){return n._extendSeries(l,h)})).length===0&&(o=[{data:[]}]),s.config.series=o):s.config.series=e.slice(),r&&(s.globals.initialConfig.series=q.clone(s.config.series),s.globals.initialSeries=q.clone(s.config.series)),n.ctx.update().then(function(){a(n.ctx)})})}},{key:"_extendSeries",value:function(e,t){var n=this.w,r=n.config.series[t];return ne(ne({},n.config.series[t]),{},{name:e.name?e.name:r==null?void 0:r.name,color:e.color?e.color:r==null?void 0:r.color,type:e.type?e.type:r==null?void 0:r.type,group:e.group?e.group:r==null?void 0:r.group,hidden:e.hidden!==void 0?e.hidden:r==null?void 0:r.hidden,data:e.data?e.data:r==null?void 0:r.data,zIndex:e.zIndex!==void 0?e.zIndex:t})}},{key:"toggleDataPointSelection",value:function(e,t){var n=this.w,r=null,a=".apexcharts-series[data\\:realIndex='".concat(e,"']");return n.globals.axisCharts?r=n.globals.dom.Paper.findOne("".concat(a," path[j='").concat(t,"'], ").concat(a," circle[j='").concat(t,"'], ").concat(a," rect[j='").concat(t,"']")):t===void 0&&(r=n.globals.dom.Paper.findOne("".concat(a," path[j='").concat(e,"']")),n.config.chart.type!=="pie"&&n.config.chart.type!=="polarArea"&&n.config.chart.type!=="donut"||this.ctx.pie.pieClicked(e)),r?(new Q(this.ctx).pathMouseDown(r,null),r.node?r.node:null):(console.warn("toggleDataPointSelection: Element not found"),null)}},{key:"forceXAxisUpdate",value:function(e){var t=this.w;if(["min","max"].forEach(function(r){e.xaxis[r]!==void 0&&(t.config.xaxis[r]=e.xaxis[r],t.globals.lastXAxis[r]=e.xaxis[r])}),e.xaxis.categories&&e.xaxis.categories.length&&(t.config.xaxis.categories=e.xaxis.categories),t.config.xaxis.convertedCatToNumeric){var n=new or(e);e=n.convertCatToNumericXaxis(e,this.ctx)}return e}},{key:"forceYAxisUpdate",value:function(e){return e.chart&&e.chart.stacked&&e.chart.stackType==="100%"&&(Array.isArray(e.yaxis)?e.yaxis.forEach(function(t,n){e.yaxis[n].min=0,e.yaxis[n].max=100}):(e.yaxis.min=0,e.yaxis.max=100)),e}},{key:"revertDefaultAxisMinMax",value:function(e){var t=this,n=this.w,r=n.globals.lastXAxis,a=n.globals.lastYAxis;e&&e.xaxis&&(r=e.xaxis),e&&e.yaxis&&(a=e.yaxis),n.config.xaxis.min=r.min,n.config.xaxis.max=r.max;var o=function(s){a[s]!==void 0&&(n.config.yaxis[s].min=a[s].min,n.config.yaxis[s].max=a[s].max)};n.config.yaxis.map(function(s,l){n.globals.zoomed||a[l]!==void 0?o(l):t.ctx.opts.yaxis[l]!==void 0&&(s.min=t.ctx.opts.yaxis[l].min,s.max=t.ctx.opts.yaxis[l].max)})}}]),i}();(function(){function i(){for(var a=arguments.length>0&&arguments[0]!==c?arguments[0]:[],o=arguments.length>1?arguments[1]:c,s=arguments.length>2?arguments[2]:c,l=arguments.length>3?arguments[3]:c,h=arguments.length>4?arguments[4]:c,u=arguments.length>5?arguments[5]:c,c=arguments.length>6?arguments[6]:c,f=a.slice(o,s||c),d=l.slice(h,u||c),p=0,g={pos:[0,0],start:[0,0]},m={pos:[0,0],start:[0,0]};f[p]=e.call(g,f[p]),d[p]=e.call(m,d[p]),f[p][0]!=d[p][0]||f[p][0]=="M"||f[p][0]=="A"&&(f[p][4]!=d[p][4]||f[p][5]!=d[p][5])?(Array.prototype.splice.apply(f,[p,1].concat(n.call(g,f[p]))),Array.prototype.splice.apply(d,[p,1].concat(n.call(m,d[p])))):(f[p]=t.call(g,f[p]),d[p]=t.call(m,d[p])),!(++p==f.length&&p==d.length);)p==f.length&&f.push(["C",g.pos[0],g.pos[1],g.pos[0],g.pos[1],g.pos[0],g.pos[1]]),p==d.length&&d.push(["C",m.pos[0],m.pos[1],m.pos[0],m.pos[1],m.pos[0],m.pos[1]]);return{start:f,dest:d}}function e(a){switch(a[0]){case"z":case"Z":a[0]="L",a[1]=this.start[0],a[2]=this.start[1];break;case"H":a[0]="L",a[2]=this.pos[1];break;case"V":a[0]="L",a[2]=a[1],a[1]=this.pos[0];break;case"T":a[0]="Q",a[3]=a[1],a[4]=a[2],a[1]=this.reflection[1],a[2]=this.reflection[0];break;case"S":a[0]="C",a[6]=a[4],a[5]=a[3],a[4]=a[2],a[3]=a[1],a[2]=this.reflection[1],a[1]=this.reflection[0]}return a}function t(a){var o=a.length;return this.pos=[a[o-2],a[o-1]],"SCQT".indexOf(a[0])!=-1&&(this.reflection=[2*this.pos[0]-a[o-4],2*this.pos[1]-a[o-3]]),a}function n(a){var o=[a];switch(a[0]){case"M":return this.pos=this.start=[a[1],a[2]],o;case"L":a[5]=a[3]=a[1],a[6]=a[4]=a[2],a[1]=this.pos[0],a[2]=this.pos[1];break;case"Q":a[6]=a[4],a[5]=a[3],a[4]=1*a[4]/3+2*a[2]/3,a[3]=1*a[3]/3+2*a[1]/3,a[2]=1*this.pos[1]/3+2*a[2]/3,a[1]=1*this.pos[0]/3+2*a[1]/3;break;case"A":o=function(s,l){var h,u,c,f,d,p,g,m,v,y,b,x,w,k,S,A,O,_,C,M,P,E,R,T,F,B,D=Math.abs(l[1]),N=Math.abs(l[2]),L=l[3]%360,I=l[4],H=l[5],Y=l[6],W=l[7],z=new Fe(s),X=new Fe(Y,W),G=[];if(D===0||N===0||z.x===X.x&&z.y===X.y)return[["C",z.x,z.y,X.x,X.y,X.x,X.y]];for(h=new Fe((z.x-X.x)/2,(z.y-X.y)/2).transform(new fe().rotate(L)),u=h.x*h.x/(D*D)+h.y*h.y/(N*N),u>1&&(D*=u=Math.sqrt(u),N*=u),c=new fe().rotate(L).scale(1/D,1/N).rotate(-L),z=z.transform(c),X=X.transform(c),f=[X.x-z.x,X.y-z.y],p=f[0]*f[0]+f[1]*f[1],d=Math.sqrt(p),f[0]/=d,f[1]/=d,g=p<4?Math.sqrt(1-p/4):0,I===H&&(g*=-1),m=new Fe((X.x+z.x)/2+g*-f[1],(X.y+z.y)/2+g*f[0]),v=new Fe(z.x-m.x,z.y-m.y),y=new Fe(X.x-m.x,X.y-m.y),b=Math.acos(v.x/Math.sqrt(v.x*v.x+v.y*v.y)),v.y<0&&(b*=-1),x=Math.acos(y.x/Math.sqrt(y.x*y.x+y.y*y.y)),y.y<0&&(x*=-1),H&&b>x&&(x+=2*Math.PI),!H&&b<x&&(x-=2*Math.PI),k=Math.ceil(2*Math.abs(b-x)/Math.PI),A=[],O=b,w=(x-b)/k,S=4*Math.tan(w/4)/3,P=0;P<=k;P++)C=Math.cos(O),_=Math.sin(O),M=new Fe(m.x+C,m.y+_),A[P]=[new Fe(M.x+S*_,M.y-S*C),M,new Fe(M.x-S*_,M.y+S*C)],O+=w;for(A[0][0]=A[0][1].clone(),A[A.length-1][2]=A[A.length-1][1].clone(),c=new fe().rotate(L).scale(D,N).rotate(-L),P=0,E=A.length;P<E;P++)A[P][0]=A[P][0].transform(c),A[P][1]=A[P][1].transform(c),A[P][2]=A[P][2].transform(c);for(P=1,E=A.length;P<E;P++)R=(M=A[P-1][2]).x,T=M.y,F=(M=A[P][0]).x,B=M.y,Y=(M=A[P][1]).x,W=M.y,G.push(["C",R,T,F,B,Y,W]);return G}(this.pos,a),a=o[0]}return a[0]="C",this.pos=[a[5],a[6]],this.reflection=[2*a[5]-a[3],2*a[6]-a[4]],o}function r(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],o=arguments.length>1?arguments[1]:void 0;if(o===!1)return!1;for(var s=o,l=a.length;s<l;++s)if(a[s][0]=="M")return s;return!1}ye($t,{morph:function(a,o,s,l,h){for(var u=this.parse(a),c=this.parse(o),f=0,d=0,p=!1,g=!1;f!==!1||d!==!1;){var m;p=r(u,f!==!1&&f+1),g=r(c,d!==!1&&d+1),f===!1&&(f=(m=new $t(v.start).bbox()).height==0||m.width==0?u.push(u[0])-1:u.push(["M",m.x+m.width/2,m.y+m.height/2])-1),d===!1&&(d=(m=new $t(v.dest).bbox()).height==0||m.width==0?c.push(c[0])-1:c.push(["M",m.x+m.width/2,m.y+m.height/2])-1);var v=i(u,f,p,c,d,g);u=u.slice(0,f).concat(v.start,p===!1?[]:u.slice(p)),c=c.slice(0,d).concat(v.dest,g===!1?[]:c.slice(g)),f=p!==!1&&f+v.start.length,d=g!==!1&&d+v.dest.length}this._array=u,this.destination=new $t,this.destination._array=c;var y=this.fromArray(u.map(function(b,x){var w=c[x].map(function(k,S){return S===0?k:l.step(b[S],c[x][S],s,h[x],h)});return w}));return y}})})();const Ql=i=>(i.changedTouches&&(i=i.changedTouches[0]),{x:i.clientX,y:i.clientY});class _g{constructor(e){e.remember("_draggable",this),this.el=e,this.drag=this.drag.bind(this),this.startDrag=this.startDrag.bind(this),this.endDrag=this.endDrag.bind(this)}init(e){e?(this.el.on("mousedown.drag",this.startDrag),this.el.on("touchstart.drag",this.startDrag,{passive:!1})):(this.el.off("mousedown.drag"),this.el.off("touchstart.drag"))}startDrag(e){const t=!e.type.indexOf("mouse");if(t&&e.which!==1&&e.buttons!==0||this.el.dispatch("beforedrag",{event:e,handler:this}).defaultPrevented)return;e.preventDefault(),e.stopPropagation(),this.init(!1),this.box=this.el.bbox(),this.lastClick=this.el.point(Ql(e));const n=(t?"mouseup":"touchend")+".drag";pn(window,(t?"mousemove":"touchmove")+".drag",this.drag,this,{passive:!1}),pn(window,n,this.endDrag,this,{passive:!1}),this.el.fire("dragstart",{event:e,handler:this,box:this.box})}drag(e){const{box:t,lastClick:n}=this,r=this.el.point(Ql(e)),a=r.x-n.x,o=r.y-n.y;if(!a&&!o)return t;const s=t.x+a,l=t.y+o;this.box=new Qe(s,l,t.w,t.h),this.lastClick=r,this.el.dispatch("dragmove",{event:e,handler:this,box:this.box}).defaultPrevented||this.move(s,l)}move(e,t){this.el.type==="svg"?_n.prototype.move.call(this.el,e,t):this.el.move(e,t)}endDrag(e){this.drag(e),this.el.fire("dragend",{event:e,handler:this,box:this.box}),Xt(window,"mousemove.drag"),Xt(window,"touchmove.drag"),Xt(window,"mouseup.drag"),Xt(window,"touchend.drag"),this.init(!0)}}/*!
165
+ * @svgdotjs/svg.select.js - An extension of svg.js which allows to select elements with mouse
166
+ * @version 4.0.1
167
+ * https://github.com/svgdotjs/svg.select.js
168
+ *
169
+ * @copyright Ulrich-Matthias Schäfer
170
+ * @license MIT
171
+ *
172
+ * BUILT: Mon Jul 01 2024 15:04:42 GMT+0200 (Central European Summer Time)
173
+ */function Go(i,e,t,n=null){return function(r){r.preventDefault(),r.stopPropagation();var a=r.pageX||r.touches[0].pageX,o=r.pageY||r.touches[0].pageY;e.fire(i,{x:a,y:o,event:r,index:n,points:t})}}function $o([i,e],{a:t,b:n,c:r,d:a,e:o,f:s}){return[i*t+e*r+o,i*n+e*a+s]}ye(ct,{draggable(i=!0){return(this.remember("_draggable")||new _g(this)).init(i),this}});let ch=class{constructor(i){this.el=i,i.remember("_selectHandler",this),this.selection=new _n,this.order=["lt","t","rt","r","rb","b","lb","l","rot"],this.mutationHandler=this.mutationHandler.bind(this);const e=xr();this.observer=new e.MutationObserver(this.mutationHandler)}init(i){this.createHandle=i.createHandle||this.createHandleFn,this.createRot=i.createRot||this.createRotFn,this.updateHandle=i.updateHandle||this.updateHandleFn,this.updateRot=i.updateRot||this.updateRotFn,this.el.root().put(this.selection),this.updatePoints(),this.createSelection(),this.createResizeHandles(),this.updateResizeHandles(),this.createRotationHandle(),this.updateRotationHandle(),this.observer.observe(this.el.node,{attributes:!0})}active(i,e){if(!i)return this.selection.clear().remove(),void this.observer.disconnect();this.init(e)}createSelection(){this.selection.polygon(this.handlePoints).addClass("svg_select_shape")}updateSelection(){this.selection.get(0).plot(this.handlePoints)}createResizeHandles(){this.handlePoints.forEach((i,e,t)=>{const n=this.order[e];this.createHandle.call(this,this.selection,i,e,t,n),this.selection.get(e+1).addClass("svg_select_handle svg_select_handle_"+n).on("mousedown.selection touchstart.selection",Go(n,this.el,this.handlePoints,e))})}createHandleFn(i){i.polyline()}updateHandleFn(i,e,t,n){const r=n.at(t-1),a=n[(t+1)%n.length],o=e,s=[o[0]-r[0],o[1]-r[1]],l=[o[0]-a[0],o[1]-a[1]],h=Math.sqrt(s[0]*s[0]+s[1]*s[1]),u=Math.sqrt(l[0]*l[0]+l[1]*l[1]),c=[s[0]/h,s[1]/h],f=[l[0]/u,l[1]/u],d=[o[0]-10*c[0],o[1]-10*c[1]],p=[o[0]-10*f[0],o[1]-10*f[1]];i.plot([d,o,p])}updateResizeHandles(){this.handlePoints.forEach((i,e,t)=>{const n=this.order[e];this.updateHandle.call(this,this.selection.get(e+1),i,e,t,n)})}createRotFn(i){i.line(),i.circle(5)}getPoint(i){return this.handlePoints[this.order.indexOf(i)]}getPointHandle(i){return this.selection.get(this.order.indexOf(i)+1)}updateRotFn(i,e){const t=this.getPoint("t");i.get(0).plot(t[0],t[1],e[0],e[1]),i.get(1).center(e[0],e[1])}createRotationHandle(){const i=this.selection.group().addClass("svg_select_handle_rot").on("mousedown.selection touchstart.selection",Go("rot",this.el,this.handlePoints));this.createRot.call(this,i)}updateRotationHandle(){const i=this.selection.findOne("g.svg_select_handle_rot");this.updateRot(i,this.rotationPoint,this.handlePoints)}updatePoints(){const i=this.el.bbox(),e=this.el.parent().screenCTM().inverseO().multiplyO(this.el.screenCTM());this.handlePoints=this.getHandlePoints(i).map(t=>$o(t,e)),this.rotationPoint=$o(this.getRotationPoint(i),e)}getHandlePoints({x:i,x2:e,y:t,y2:n,cx:r,cy:a}=this.el.bbox()){return[[i,t],[r,t],[e,t],[e,a],[e,n],[r,n],[i,n],[i,a]]}getRotationPoint({y:i,cx:e}=this.el.bbox()){return[e,i-20]}mutationHandler(){this.updatePoints(),this.updateSelection(),this.updateResizeHandles(),this.updateRotationHandle()}};const Jl=i=>function(e=!0,t={}){typeof e=="object"&&(t=e,e=!0);let n=this.remember("_"+i.name);return n||(e.prototype instanceof ch?(n=new e(this),e=!0):n=new i(this),this.remember("_"+i.name,n)),n.active(e,t),this};/*!
174
+ * @svgdotjs/svg.resize.js - An extension for svg.js which allows to resize elements which are selected
175
+ * @version 2.0.4
176
+ * https://github.com/svgdotjs/svg.resize.js
177
+ *
178
+ * @copyright [object Object]
179
+ * @license MIT
180
+ *
181
+ * BUILT: Fri Sep 13 2024 12:43:14 GMT+0200 (Central European Summer Time)
182
+ *//*!
183
+ * @svgdotjs/svg.select.js - An extension of svg.js which allows to select elements with mouse
184
+ * @version 4.0.1
185
+ * https://github.com/svgdotjs/svg.select.js
186
+ *
187
+ * @copyright Ulrich-Matthias Schäfer
188
+ * @license MIT
189
+ *
190
+ * BUILT: Mon Jul 01 2024 15:04:42 GMT+0200 (Central European Summer Time)
191
+ */function Uo(i,e,t,n=null){return function(r){r.preventDefault(),r.stopPropagation();var a=r.pageX||r.touches[0].pageX,o=r.pageY||r.touches[0].pageY;e.fire(i,{x:a,y:o,event:r,index:n,points:t})}}function Zo([i,e],{a:t,b:n,c:r,d:a,e:o,f:s}){return[i*t+e*r+o,i*n+e*a+s]}ye(ct,{select:Jl(ch)}),ye([Xn,Yn,Bn],{pointSelect:Jl(class{constructor(i){this.el=i,i.remember("_pointSelectHandler",this),this.selection=new _n,this.order=["lt","t","rt","r","rb","b","lb","l","rot"],this.mutationHandler=this.mutationHandler.bind(this);const e=xr();this.observer=new e.MutationObserver(this.mutationHandler)}init(i){this.createHandle=i.createHandle||this.createHandleFn,this.updateHandle=i.updateHandle||this.updateHandleFn,this.el.root().put(this.selection),this.updatePoints(),this.createSelection(),this.createPointHandles(),this.updatePointHandles(),this.observer.observe(this.el.node,{attributes:!0})}active(i,e){if(!i)return this.selection.clear().remove(),void this.observer.disconnect();this.init(e)}createSelection(){this.selection.polygon(this.points).addClass("svg_select_shape_pointSelect")}updateSelection(){this.selection.get(0).plot(this.points)}createPointHandles(){this.points.forEach((i,e,t)=>{this.createHandle.call(this,this.selection,i,e,t),this.selection.get(e+1).addClass("svg_select_handle_point").on("mousedown.selection touchstart.selection",Go("point",this.el,this.points,e))})}createHandleFn(i){i.circle(5)}updateHandleFn(i,e){i.center(e[0],e[1])}updatePointHandles(){this.points.forEach((i,e,t)=>{this.updateHandle.call(this,this.selection.get(e+1),i,e,t)})}updatePoints(){const i=this.el.parent().screenCTM().inverseO().multiplyO(this.el.screenCTM());this.points=this.el.array().map(e=>$o(e,i))}mutationHandler(){this.updatePoints(),this.updateSelection(),this.updatePointHandles()}})});class hh{constructor(e){this.el=e,e.remember("_selectHandler",this),this.selection=new _n,this.order=["lt","t","rt","r","rb","b","lb","l","rot"],this.mutationHandler=this.mutationHandler.bind(this);const t=xr();this.observer=new t.MutationObserver(this.mutationHandler)}init(e){this.createHandle=e.createHandle||this.createHandleFn,this.createRot=e.createRot||this.createRotFn,this.updateHandle=e.updateHandle||this.updateHandleFn,this.updateRot=e.updateRot||this.updateRotFn,this.el.root().put(this.selection),this.updatePoints(),this.createSelection(),this.createResizeHandles(),this.updateResizeHandles(),this.createRotationHandle(),this.updateRotationHandle(),this.observer.observe(this.el.node,{attributes:!0})}active(e,t){if(!e)return this.selection.clear().remove(),void this.observer.disconnect();this.init(t)}createSelection(){this.selection.polygon(this.handlePoints).addClass("svg_select_shape")}updateSelection(){this.selection.get(0).plot(this.handlePoints)}createResizeHandles(){this.handlePoints.forEach((e,t,n)=>{const r=this.order[t];this.createHandle.call(this,this.selection,e,t,n,r),this.selection.get(t+1).addClass("svg_select_handle svg_select_handle_"+r).on("mousedown.selection touchstart.selection",Uo(r,this.el,this.handlePoints,t))})}createHandleFn(e){e.polyline()}updateHandleFn(e,t,n,r){const a=r.at(n-1),o=r[(n+1)%r.length],s=t,l=[s[0]-a[0],s[1]-a[1]],h=[s[0]-o[0],s[1]-o[1]],u=Math.sqrt(l[0]*l[0]+l[1]*l[1]),c=Math.sqrt(h[0]*h[0]+h[1]*h[1]),f=[l[0]/u,l[1]/u],d=[h[0]/c,h[1]/c],p=[s[0]-10*f[0],s[1]-10*f[1]],g=[s[0]-10*d[0],s[1]-10*d[1]];e.plot([p,s,g])}updateResizeHandles(){this.handlePoints.forEach((e,t,n)=>{const r=this.order[t];this.updateHandle.call(this,this.selection.get(t+1),e,t,n,r)})}createRotFn(e){e.line(),e.circle(5)}getPoint(e){return this.handlePoints[this.order.indexOf(e)]}getPointHandle(e){return this.selection.get(this.order.indexOf(e)+1)}updateRotFn(e,t){const n=this.getPoint("t");e.get(0).plot(n[0],n[1],t[0],t[1]),e.get(1).center(t[0],t[1])}createRotationHandle(){const e=this.selection.group().addClass("svg_select_handle_rot").on("mousedown.selection touchstart.selection",Uo("rot",this.el,this.handlePoints));this.createRot.call(this,e)}updateRotationHandle(){const e=this.selection.findOne("g.svg_select_handle_rot");this.updateRot(e,this.rotationPoint,this.handlePoints)}updatePoints(){const e=this.el.bbox(),t=this.el.parent().screenCTM().inverseO().multiplyO(this.el.screenCTM());this.handlePoints=this.getHandlePoints(e).map(n=>Zo(n,t)),this.rotationPoint=Zo(this.getRotationPoint(e),t)}getHandlePoints({x:e,x2:t,y:n,y2:r,cx:a,cy:o}=this.el.bbox()){return[[e,n],[a,n],[t,n],[t,o],[t,r],[a,r],[e,r],[e,o]]}getRotationPoint({y:e,cx:t}=this.el.bbox()){return[t,e-20]}mutationHandler(){this.updatePoints(),this.updateSelection(),this.updateResizeHandles(),this.updateRotationHandle()}}const eu=i=>function(e=!0,t={}){typeof e=="object"&&(t=e,e=!0);let n=this.remember("_"+i.name);return n||(e.prototype instanceof hh?(n=new e(this),e=!0):n=new i(this),this.remember("_"+i.name,n)),n.active(e,t),this};ye(ct,{select:eu(hh)}),ye([Xn,Yn,Bn],{pointSelect:eu(class{constructor(i){this.el=i,i.remember("_pointSelectHandler",this),this.selection=new _n,this.order=["lt","t","rt","r","rb","b","lb","l","rot"],this.mutationHandler=this.mutationHandler.bind(this);const e=xr();this.observer=new e.MutationObserver(this.mutationHandler)}init(i){this.createHandle=i.createHandle||this.createHandleFn,this.updateHandle=i.updateHandle||this.updateHandleFn,this.el.root().put(this.selection),this.updatePoints(),this.createSelection(),this.createPointHandles(),this.updatePointHandles(),this.observer.observe(this.el.node,{attributes:!0})}active(i,e){if(!i)return this.selection.clear().remove(),void this.observer.disconnect();this.init(e)}createSelection(){this.selection.polygon(this.points).addClass("svg_select_shape_pointSelect")}updateSelection(){this.selection.get(0).plot(this.points)}createPointHandles(){this.points.forEach((i,e,t)=>{this.createHandle.call(this,this.selection,i,e,t),this.selection.get(e+1).addClass("svg_select_handle_point").on("mousedown.selection touchstart.selection",Uo("point",this.el,this.points,e))})}createHandleFn(i){i.circle(5)}updateHandleFn(i,e){i.center(e[0],e[1])}updatePointHandles(){this.points.forEach((i,e,t)=>{this.updateHandle.call(this,this.selection.get(e+1),i,e,t)})}updatePoints(){const i=this.el.parent().screenCTM().inverseO().multiplyO(this.el.screenCTM());this.points=this.el.array().map(e=>Zo(e,i))}mutationHandler(){this.updatePoints(),this.updateSelection(),this.updatePointHandles()}})});const Lr=i=>(i.changedTouches&&(i=i.changedTouches[0]),{x:i.clientX,y:i.clientY}),tu=i=>{let e=1/0,t=1/0,n=-1/0,r=-1/0;for(let a=0;a<i.length;a++){const o=i[a];e=Math.min(e,o[0]),t=Math.min(t,o[1]),n=Math.max(n,o[0]),r=Math.max(r,o[1])}return new Qe(e,t,n-e,r-t)};class nu{constructor(e){this.el=e,e.remember("_ResizeHandler",this),this.lastCoordinates=null,this.eventType="",this.lastEvent=null,this.handleResize=this.handleResize.bind(this),this.resize=this.resize.bind(this),this.endResize=this.endResize.bind(this),this.rotate=this.rotate.bind(this),this.movePoint=this.movePoint.bind(this)}active(e,t){this.preserveAspectRatio=t.preserveAspectRatio??!1,this.aroundCenter=t.aroundCenter??!1,this.grid=t.grid??0,this.degree=t.degree??0,this.el.off(".resize"),e&&(this.el.on(["lt.resize","rt.resize","rb.resize","lb.resize","t.resize","r.resize","b.resize","l.resize","rot.resize","point.resize"],this.handleResize),this.lastEvent&&(this.eventType==="rot"?this.rotate(this.lastEvent):this.eventType==="point"?this.movePoint(this.lastEvent):this.resize(this.lastEvent)))}handleResize(e){this.eventType=e.type;const{event:t,index:n,points:r}=e.detail,a=!t.type.indexOf("mouse");if(a&&(t.which||t.buttons)!==1||this.el.dispatch("beforeresize",{event:e,handler:this}).defaultPrevented)return;this.box=this.el.bbox(),this.startPoint=this.el.point(Lr(t)),this.index=n,this.points=r.slice();const o=(a?"mousemove":"touchmove")+".resize",s=(a?"mouseup":"touchcancel.resize touchend")+".resize";e.type==="point"?pn(window,o,this.movePoint):e.type==="rot"?pn(window,o,this.rotate):pn(window,o,this.resize),pn(window,s,this.endResize)}resize(e){this.lastEvent=e;const t=this.snapToGrid(this.el.point(Lr(e)));let n=t.x-this.startPoint.x,r=t.y-this.startPoint.y;this.preserveAspectRatio&&this.aroundCenter&&(n*=2,r*=2);const a=this.box.x+n,o=this.box.y+r,s=this.box.x2+n,l=this.box.y2+r;let h=new Qe(this.box);if(this.eventType.includes("l")&&(h.x=Math.min(a,this.box.x2),h.x2=Math.max(a,this.box.x2)),this.eventType.includes("r")&&(h.x=Math.min(s,this.box.x),h.x2=Math.max(s,this.box.x)),this.eventType.includes("t")&&(h.y=Math.min(o,this.box.y2),h.y2=Math.max(o,this.box.y2)),this.eventType.includes("b")&&(h.y=Math.min(l,this.box.y),h.y2=Math.max(l,this.box.y)),h.width=h.x2-h.x,h.height=h.y2-h.y,this.preserveAspectRatio){const u=h.width/this.box.width,c=h.height/this.box.height,f=["lt","t","rt","r","rb","b","lb","l"],d=(f.indexOf(this.eventType)+4)%f.length,p=this.aroundCenter?[this.box.cx,this.box.cy]:this.points[d];let g=this.eventType.includes("t")||this.eventType.includes("b")?c:u;g=this.eventType.length===2?Math.max(u,c):g,h=function(m,v,y){const b=[[m.x,m.y],[m.x+m.width,m.y],[m.x+m.width,m.y+m.height],[m.x,m.y+m.height]].map(([x,w])=>{const k=x-v[0],S=(w-v[1])*y;return[k*y+v[0],S+v[1]]});return tu(b)}(this.box,p,g)}this.el.dispatch("resize",{box:new Qe(h),angle:0,eventType:this.eventType,event:e,handler:this}).defaultPrevented||this.el.size(h.width,h.height).move(h.x,h.y)}movePoint(e){this.lastEvent=e;const{x:t,y:n}=this.snapToGrid(this.el.point(Lr(e))),r=this.el.array().slice();r[this.index]=[t,n],this.el.dispatch("resize",{box:tu(r),angle:0,eventType:this.eventType,event:e,handler:this}).defaultPrevented||this.el.plot(r)}rotate(e){this.lastEvent=e;const t=this.startPoint,n=this.el.point(Lr(e)),{cx:r,cy:a}=this.box,o=t.x-r,s=t.y-a,l=n.x-r,h=n.y-a,u=Math.sqrt(o*o+s*s)*Math.sqrt(l*l+h*h);if(u===0)return;let c=Math.acos((o*l+s*h)/u)/Math.PI*180;if(!c)return;n.x<t.x&&(c=-c);const f=new fe(this.el),{x:d,y:p}=new Fe(r,a).transformO(f),{rotate:g}=f.decompose(),m=this.snapToAngle(g+c)-g;this.el.dispatch("resize",{box:this.box,angle:m,eventType:this.eventType,event:e,handler:this}).defaultPrevented||this.el.transform(f.rotateO(m,d,p))}endResize(e){this.eventType!=="rot"&&this.eventType!=="point"&&this.resize(e),this.lastEvent=null,this.eventType="",Xt(window,"mousemove.resize touchmove.resize"),Xt(window,"mouseup.resize touchend.resize")}snapToGrid(e){return this.grid&&(e.x=Math.round(e.x/this.grid)*this.grid,e.y=Math.round(e.y/this.grid)*this.grid),e}snapToAngle(e){return this.degree&&(e=Math.round(e/this.degree)*this.degree),e}}ye(ct,{resize:function(i=!0,e={}){typeof i=="object"&&(e=i,i=!0);let t=this.remember("_ResizeHandler");return t||(i.prototype instanceof nu?(t=new i(this),i=!0):t=new nu(this),this.remember("_resizeHandler",t)),t.active(i,e),this}}),window.SVG===void 0&&(window.SVG=Xd),window.Apex===void 0&&(window.Apex={});var iu=function(){function i(e){ae(this,i),this.ctx=e,this.w=e.w}return oe(i,[{key:"initModules",value:function(){this.ctx.publicMethods=["updateOptions","updateSeries","appendData","appendSeries","isSeriesHidden","highlightSeries","toggleSeries","showSeries","hideSeries","setLocale","resetSeries","zoomX","toggleDataPointSelection","dataURI","exportToCSV","addXaxisAnnotation","addYaxisAnnotation","addPointAnnotation","clearAnnotations","removeAnnotation","paper","destroy"],this.ctx.eventList=["click","mousedown","mousemove","mouseleave","touchstart","touchmove","touchleave","mouseup","touchend"],this.ctx.animations=new ki(this.ctx),this.ctx.axes=new Kd(this.ctx),this.ctx.core=new Ag(this.ctx.el,this.ctx),this.ctx.config=new sr({}),this.ctx.data=new Us(this.ctx),this.ctx.grid=new eh(this.ctx),this.ctx.graphics=new Q(this.ctx),this.ctx.coreUtils=new Je(this.ctx),this.ctx.crosshairs=new Vo(this.ctx),this.ctx.events=new Ud(this.ctx),this.ctx.exports=new Zi(this.ctx),this.ctx.fill=new Kt(this.ctx),this.ctx.localization=new Zd(this.ctx),this.ctx.options=new Hn,this.ctx.responsive=new Qd(this.ctx),this.ctx.series=new jt(this.ctx),this.ctx.theme=new Jd(this.ctx),this.ctx.formatters=new Sr(this.ctx),this.ctx.titleSubtitle=new eg(this.ctx),this.ctx.legend=new nh(this.ctx),this.ctx.toolbar=new ih(this.ctx),this.ctx.tooltip=new Zl(this.ctx),this.ctx.dimensions=new la(this.ctx),this.ctx.updateHelpers=new Cg(this.ctx),this.ctx.zoomPanSelection=new og(this.ctx),this.ctx.w.globals.tooltip=new Zl(this.ctx)}}]),i}(),ru=function(){function i(e){ae(this,i),this.ctx=e,this.w=e.w}return oe(i,[{key:"clear",value:function(e){var t=e.isUpdating;this.ctx.zoomPanSelection&&this.ctx.zoomPanSelection.destroy(),this.ctx.toolbar&&this.ctx.toolbar.destroy(),this.ctx.animations=null,this.ctx.axes=null,this.ctx.annotations=null,this.ctx.core=null,this.ctx.data=null,this.ctx.grid=null,this.ctx.series=null,this.ctx.responsive=null,this.ctx.theme=null,this.ctx.formatters=null,this.ctx.titleSubtitle=null,this.ctx.legend=null,this.ctx.dimensions=null,this.ctx.options=null,this.ctx.crosshairs=null,this.ctx.zoomPanSelection=null,this.ctx.updateHelpers=null,this.ctx.toolbar=null,this.ctx.localization=null,this.ctx.w.globals.tooltip=null,this.clearDomElements({isUpdating:t})}},{key:"killSVG",value:function(e){e.each(function(){this.removeClass("*"),this.off()},!0),e.clear()}},{key:"clearDomElements",value:function(e){var t=this,n=e.isUpdating,r=this.w.globals.dom.Paper.node;r.parentNode&&r.parentNode.parentNode&&!n&&(r.parentNode.parentNode.style.minHeight="unset");var a=this.w.globals.dom.baseEl;a&&this.ctx.eventList.forEach(function(s){a.removeEventListener(s,t.ctx.events.documentEvent)});var o=this.w.globals.dom;if(this.ctx.el!==null)for(;this.ctx.el.firstChild;)this.ctx.el.removeChild(this.ctx.el.firstChild);this.killSVG(o.Paper),o.Paper.remove(),o.elWrap=null,o.elGraphical=null,o.elLegendWrap=null,o.elLegendForeign=null,o.baseEl=null,o.elGridRect=null,o.elGridRectMask=null,o.elGridRectBarMask=null,o.elGridRectMarkerMask=null,o.elForecastMask=null,o.elNonForecastMask=null,o.elDefs=null}}]),i}(),po=new WeakMap,Eg=function(){function i(e,t){ae(this,i),this.opts=t,this.ctx=this,this.w=new $d(t).init(),this.el=e,this.w.globals.cuid=q.randomId(),this.w.globals.chartID=this.w.config.chart.id?q.escapeString(this.w.config.chart.id):this.w.globals.cuid,new iu(this).initModules(),this.lastUpdateOptions=null,this.create=q.bind(this.create,this),this.windowResizeHandler=this._windowResizeHandler.bind(this),this.parentResizeHandler=this._parentResizeCallback.bind(this)}return oe(i,[{key:"render",value:function(){var e=this;return new Promise(function(t,n){if(q.elementExists(e.el)){Apex._chartInstances===void 0&&(Apex._chartInstances=[]),e.w.config.chart.id&&Apex._chartInstances.push({id:e.w.globals.chartID,group:e.w.config.chart.group,chart:e}),e.setLocale(e.w.config.chart.defaultLocale);var r=e.w.config.chart.events.beforeMount;typeof r=="function"&&r(e,e.w),e.events.fireEvent("beforeMount",[e,e.w]),window.addEventListener("resize",e.windowResizeHandler),function(f,d){var p=!1;if(f.nodeType!==Node.DOCUMENT_FRAGMENT_NODE){var g=f.getBoundingClientRect();f.style.display!=="none"&&g.width!==0||(p=!0)}var m=new ResizeObserver(function(v){p&&d.call(f,v),p=!0});f.nodeType===Node.DOCUMENT_FRAGMENT_NODE?Array.from(f.children).forEach(function(v){return m.observe(v)}):m.observe(f),po.set(d,m)}(e.el.parentNode,e.parentResizeHandler);var a=e.el.getRootNode&&e.el.getRootNode(),o=q.is("ShadowRoot",a),s=e.el.ownerDocument,l=o?a.getElementById("apexcharts-css"):s.getElementById("apexcharts-css");if(!l){var h;(l=document.createElement("style")).id="apexcharts-css",l.textContent=`@keyframes opaque {
192
+ 0% {
193
+ opacity: 0
194
+ }
195
+
196
+ to {
197
+ opacity: 1
198
+ }
199
+ }
200
+
201
+ @keyframes resizeanim {
202
+
203
+ 0%,
204
+ to {
205
+ opacity: 0
206
+ }
207
+ }
208
+
209
+ .apexcharts-canvas {
210
+ position: relative;
211
+ direction: ltr !important;
212
+ user-select: none
213
+ }
214
+
215
+ .apexcharts-canvas ::-webkit-scrollbar {
216
+ -webkit-appearance: none;
217
+ width: 6px
218
+ }
219
+
220
+ .apexcharts-canvas ::-webkit-scrollbar-thumb {
221
+ border-radius: 4px;
222
+ background-color: rgba(0, 0, 0, .5);
223
+ box-shadow: 0 0 1px rgba(255, 255, 255, .5);
224
+ -webkit-box-shadow: 0 0 1px rgba(255, 255, 255, .5)
225
+ }
226
+
227
+ .apexcharts-inner {
228
+ position: relative
229
+ }
230
+
231
+ .apexcharts-text tspan {
232
+ font-family: inherit
233
+ }
234
+
235
+ rect.legend-mouseover-inactive,
236
+ .legend-mouseover-inactive rect,
237
+ .legend-mouseover-inactive path,
238
+ .legend-mouseover-inactive circle,
239
+ .legend-mouseover-inactive line,
240
+ .legend-mouseover-inactive text.apexcharts-yaxis-title-text,
241
+ .legend-mouseover-inactive text.apexcharts-yaxis-label {
242
+ transition: .15s ease all;
243
+ opacity: .2
244
+ }
245
+
246
+ .apexcharts-legend-text {
247
+ padding-left: 15px;
248
+ margin-left: -15px;
249
+ }
250
+
251
+ .apexcharts-series-collapsed {
252
+ opacity: 0
253
+ }
254
+
255
+ .apexcharts-tooltip {
256
+ border-radius: 5px;
257
+ box-shadow: 2px 2px 6px -4px #999;
258
+ cursor: default;
259
+ font-size: 14px;
260
+ left: 62px;
261
+ opacity: 0;
262
+ pointer-events: none;
263
+ position: absolute;
264
+ top: 20px;
265
+ display: flex;
266
+ flex-direction: column;
267
+ overflow: hidden;
268
+ white-space: nowrap;
269
+ z-index: 12;
270
+ transition: .15s ease all
271
+ }
272
+
273
+ .apexcharts-tooltip.apexcharts-active {
274
+ opacity: 1;
275
+ transition: .15s ease all
276
+ }
277
+
278
+ .apexcharts-tooltip.apexcharts-theme-light {
279
+ border: 1px solid #e3e3e3;
280
+ background: rgba(255, 255, 255, .96)
281
+ }
282
+
283
+ .apexcharts-tooltip.apexcharts-theme-dark {
284
+ color: #fff;
285
+ background: rgba(30, 30, 30, .8)
286
+ }
287
+
288
+ .apexcharts-tooltip * {
289
+ font-family: inherit
290
+ }
291
+
292
+ .apexcharts-tooltip-title {
293
+ padding: 6px;
294
+ font-size: 15px;
295
+ margin-bottom: 4px
296
+ }
297
+
298
+ .apexcharts-tooltip.apexcharts-theme-light .apexcharts-tooltip-title {
299
+ background: #eceff1;
300
+ border-bottom: 1px solid #ddd
301
+ }
302
+
303
+ .apexcharts-tooltip.apexcharts-theme-dark .apexcharts-tooltip-title {
304
+ background: rgba(0, 0, 0, .7);
305
+ border-bottom: 1px solid #333
306
+ }
307
+
308
+ .apexcharts-tooltip-text-goals-value,
309
+ .apexcharts-tooltip-text-y-value,
310
+ .apexcharts-tooltip-text-z-value {
311
+ display: inline-block;
312
+ margin-left: 5px;
313
+ font-weight: 600
314
+ }
315
+
316
+ .apexcharts-tooltip-text-goals-label:empty,
317
+ .apexcharts-tooltip-text-goals-value:empty,
318
+ .apexcharts-tooltip-text-y-label:empty,
319
+ .apexcharts-tooltip-text-y-value:empty,
320
+ .apexcharts-tooltip-text-z-value:empty,
321
+ .apexcharts-tooltip-title:empty {
322
+ display: none
323
+ }
324
+
325
+ .apexcharts-tooltip-text-goals-label,
326
+ .apexcharts-tooltip-text-goals-value {
327
+ padding: 6px 0 5px
328
+ }
329
+
330
+ .apexcharts-tooltip-goals-group,
331
+ .apexcharts-tooltip-text-goals-label,
332
+ .apexcharts-tooltip-text-goals-value {
333
+ display: flex
334
+ }
335
+
336
+ .apexcharts-tooltip-text-goals-label:not(:empty),
337
+ .apexcharts-tooltip-text-goals-value:not(:empty) {
338
+ margin-top: -6px
339
+ }
340
+
341
+ .apexcharts-tooltip-marker {
342
+ display: inline-block;
343
+ position: relative;
344
+ width: 16px;
345
+ height: 16px;
346
+ font-size: 16px;
347
+ line-height: 16px;
348
+ margin-right: 4px;
349
+ text-align: center;
350
+ vertical-align: middle;
351
+ color: inherit;
352
+ }
353
+
354
+ .apexcharts-tooltip-marker::before {
355
+ content: "";
356
+ display: inline-block;
357
+ width: 100%;
358
+ text-align: center;
359
+ color: currentcolor;
360
+ text-rendering: optimizeLegibility;
361
+ -webkit-font-smoothing: antialiased;
362
+ font-size: 26px;
363
+ font-family: Arial, Helvetica, sans-serif;
364
+ line-height: 14px;
365
+ font-weight: 900;
366
+ }
367
+
368
+ .apexcharts-tooltip-marker[shape="circle"]::before {
369
+ content: "\\25CF";
370
+ }
371
+
372
+ .apexcharts-tooltip-marker[shape="square"]::before,
373
+ .apexcharts-tooltip-marker[shape="rect"]::before {
374
+ content: "\\25A0";
375
+ transform: translate(-1px, -2px);
376
+ }
377
+
378
+ .apexcharts-tooltip-marker[shape="line"]::before {
379
+ content: "\\2500";
380
+ }
381
+
382
+ .apexcharts-tooltip-marker[shape="diamond"]::before {
383
+ content: "\\25C6";
384
+ font-size: 28px;
385
+ }
386
+
387
+ .apexcharts-tooltip-marker[shape="triangle"]::before {
388
+ content: "\\25B2";
389
+ font-size: 22px;
390
+ }
391
+
392
+ .apexcharts-tooltip-marker[shape="cross"]::before {
393
+ content: "\\2715";
394
+ font-size: 18px;
395
+ }
396
+
397
+ .apexcharts-tooltip-marker[shape="plus"]::before {
398
+ content: "\\2715";
399
+ transform: rotate(45deg) translate(-1px, -1px);
400
+ font-size: 18px;
401
+ }
402
+
403
+ .apexcharts-tooltip-marker[shape="star"]::before {
404
+ content: "\\2605";
405
+ font-size: 18px;
406
+ }
407
+
408
+ .apexcharts-tooltip-marker[shape="sparkle"]::before {
409
+ content: "\\2726";
410
+ font-size: 20px;
411
+ }
412
+
413
+ .apexcharts-tooltip-series-group {
414
+ padding: 0 10px;
415
+ display: none;
416
+ text-align: left;
417
+ justify-content: left;
418
+ align-items: center
419
+ }
420
+
421
+ .apexcharts-tooltip-series-group.apexcharts-active .apexcharts-tooltip-marker {
422
+ opacity: 1
423
+ }
424
+
425
+ .apexcharts-tooltip-series-group.apexcharts-active,
426
+ .apexcharts-tooltip-series-group:last-child {
427
+ padding-bottom: 4px
428
+ }
429
+
430
+ .apexcharts-tooltip-y-group {
431
+ padding: 6px 0 5px
432
+ }
433
+
434
+ .apexcharts-custom-tooltip,
435
+ .apexcharts-tooltip-box {
436
+ padding: 4px 8px
437
+ }
438
+
439
+ .apexcharts-tooltip-boxPlot {
440
+ display: flex;
441
+ flex-direction: column-reverse
442
+ }
443
+
444
+ .apexcharts-tooltip-box>div {
445
+ margin: 4px 0
446
+ }
447
+
448
+ .apexcharts-tooltip-box span.value {
449
+ font-weight: 700
450
+ }
451
+
452
+ .apexcharts-tooltip-rangebar {
453
+ padding: 5px 8px
454
+ }
455
+
456
+ .apexcharts-tooltip-rangebar .category {
457
+ font-weight: 600;
458
+ color: #777
459
+ }
460
+
461
+ .apexcharts-tooltip-rangebar .series-name {
462
+ font-weight: 700;
463
+ display: block;
464
+ margin-bottom: 5px
465
+ }
466
+
467
+ .apexcharts-xaxistooltip,
468
+ .apexcharts-yaxistooltip {
469
+ opacity: 0;
470
+ pointer-events: none;
471
+ color: #373d3f;
472
+ font-size: 13px;
473
+ text-align: center;
474
+ border-radius: 2px;
475
+ position: absolute;
476
+ z-index: 10;
477
+ background: #eceff1;
478
+ border: 1px solid #90a4ae
479
+ }
480
+
481
+ .apexcharts-xaxistooltip {
482
+ padding: 9px 10px;
483
+ transition: .15s ease all
484
+ }
485
+
486
+ .apexcharts-xaxistooltip.apexcharts-theme-dark {
487
+ background: rgba(0, 0, 0, .7);
488
+ border: 1px solid rgba(0, 0, 0, .5);
489
+ color: #fff
490
+ }
491
+
492
+ .apexcharts-xaxistooltip:after,
493
+ .apexcharts-xaxistooltip:before {
494
+ left: 50%;
495
+ border: solid transparent;
496
+ content: " ";
497
+ height: 0;
498
+ width: 0;
499
+ position: absolute;
500
+ pointer-events: none
501
+ }
502
+
503
+ .apexcharts-xaxistooltip:after {
504
+ border-color: transparent;
505
+ border-width: 6px;
506
+ margin-left: -6px
507
+ }
508
+
509
+ .apexcharts-xaxistooltip:before {
510
+ border-color: transparent;
511
+ border-width: 7px;
512
+ margin-left: -7px
513
+ }
514
+
515
+ .apexcharts-xaxistooltip-bottom:after,
516
+ .apexcharts-xaxistooltip-bottom:before {
517
+ bottom: 100%
518
+ }
519
+
520
+ .apexcharts-xaxistooltip-top:after,
521
+ .apexcharts-xaxistooltip-top:before {
522
+ top: 100%
523
+ }
524
+
525
+ .apexcharts-xaxistooltip-bottom:after {
526
+ border-bottom-color: #eceff1
527
+ }
528
+
529
+ .apexcharts-xaxistooltip-bottom:before {
530
+ border-bottom-color: #90a4ae
531
+ }
532
+
533
+ .apexcharts-xaxistooltip-bottom.apexcharts-theme-dark:after,
534
+ .apexcharts-xaxistooltip-bottom.apexcharts-theme-dark:before {
535
+ border-bottom-color: rgba(0, 0, 0, .5)
536
+ }
537
+
538
+ .apexcharts-xaxistooltip-top:after {
539
+ border-top-color: #eceff1
540
+ }
541
+
542
+ .apexcharts-xaxistooltip-top:before {
543
+ border-top-color: #90a4ae
544
+ }
545
+
546
+ .apexcharts-xaxistooltip-top.apexcharts-theme-dark:after,
547
+ .apexcharts-xaxistooltip-top.apexcharts-theme-dark:before {
548
+ border-top-color: rgba(0, 0, 0, .5)
549
+ }
550
+
551
+ .apexcharts-xaxistooltip.apexcharts-active {
552
+ opacity: 1;
553
+ transition: .15s ease all
554
+ }
555
+
556
+ .apexcharts-yaxistooltip {
557
+ padding: 4px 10px
558
+ }
559
+
560
+ .apexcharts-yaxistooltip.apexcharts-theme-dark {
561
+ background: rgba(0, 0, 0, .7);
562
+ border: 1px solid rgba(0, 0, 0, .5);
563
+ color: #fff
564
+ }
565
+
566
+ .apexcharts-yaxistooltip:after,
567
+ .apexcharts-yaxistooltip:before {
568
+ top: 50%;
569
+ border: solid transparent;
570
+ content: " ";
571
+ height: 0;
572
+ width: 0;
573
+ position: absolute;
574
+ pointer-events: none
575
+ }
576
+
577
+ .apexcharts-yaxistooltip:after {
578
+ border-color: transparent;
579
+ border-width: 6px;
580
+ margin-top: -6px
581
+ }
582
+
583
+ .apexcharts-yaxistooltip:before {
584
+ border-color: transparent;
585
+ border-width: 7px;
586
+ margin-top: -7px
587
+ }
588
+
589
+ .apexcharts-yaxistooltip-left:after,
590
+ .apexcharts-yaxistooltip-left:before {
591
+ left: 100%
592
+ }
593
+
594
+ .apexcharts-yaxistooltip-right:after,
595
+ .apexcharts-yaxistooltip-right:before {
596
+ right: 100%
597
+ }
598
+
599
+ .apexcharts-yaxistooltip-left:after {
600
+ border-left-color: #eceff1
601
+ }
602
+
603
+ .apexcharts-yaxistooltip-left:before {
604
+ border-left-color: #90a4ae
605
+ }
606
+
607
+ .apexcharts-yaxistooltip-left.apexcharts-theme-dark:after,
608
+ .apexcharts-yaxistooltip-left.apexcharts-theme-dark:before {
609
+ border-left-color: rgba(0, 0, 0, .5)
610
+ }
611
+
612
+ .apexcharts-yaxistooltip-right:after {
613
+ border-right-color: #eceff1
614
+ }
615
+
616
+ .apexcharts-yaxistooltip-right:before {
617
+ border-right-color: #90a4ae
618
+ }
619
+
620
+ .apexcharts-yaxistooltip-right.apexcharts-theme-dark:after,
621
+ .apexcharts-yaxistooltip-right.apexcharts-theme-dark:before {
622
+ border-right-color: rgba(0, 0, 0, .5)
623
+ }
624
+
625
+ .apexcharts-yaxistooltip.apexcharts-active {
626
+ opacity: 1
627
+ }
628
+
629
+ .apexcharts-yaxistooltip-hidden {
630
+ display: none
631
+ }
632
+
633
+ .apexcharts-xcrosshairs,
634
+ .apexcharts-ycrosshairs {
635
+ pointer-events: none;
636
+ opacity: 0;
637
+ transition: .15s ease all
638
+ }
639
+
640
+ .apexcharts-xcrosshairs.apexcharts-active,
641
+ .apexcharts-ycrosshairs.apexcharts-active {
642
+ opacity: 1;
643
+ transition: .15s ease all
644
+ }
645
+
646
+ .apexcharts-ycrosshairs-hidden {
647
+ opacity: 0
648
+ }
649
+
650
+ .apexcharts-selection-rect {
651
+ cursor: move
652
+ }
653
+
654
+ .svg_select_shape {
655
+ stroke-width: 1;
656
+ stroke-dasharray: 10 10;
657
+ stroke: black;
658
+ stroke-opacity: 0.1;
659
+ pointer-events: none;
660
+ fill: none;
661
+ }
662
+
663
+ .svg_select_handle {
664
+ stroke-width: 3;
665
+ stroke: black;
666
+ fill: none;
667
+ }
668
+
669
+ .svg_select_handle_r {
670
+ cursor: e-resize;
671
+ }
672
+
673
+ .svg_select_handle_l {
674
+ cursor: w-resize;
675
+ }
676
+
677
+ .apexcharts-svg.apexcharts-zoomable.hovering-zoom {
678
+ cursor: crosshair
679
+ }
680
+
681
+ .apexcharts-svg.apexcharts-zoomable.hovering-pan {
682
+ cursor: move
683
+ }
684
+
685
+ .apexcharts-menu-icon,
686
+ .apexcharts-pan-icon,
687
+ .apexcharts-reset-icon,
688
+ .apexcharts-selection-icon,
689
+ .apexcharts-toolbar-custom-icon,
690
+ .apexcharts-zoom-icon,
691
+ .apexcharts-zoomin-icon,
692
+ .apexcharts-zoomout-icon {
693
+ cursor: pointer;
694
+ width: 20px;
695
+ height: 20px;
696
+ line-height: 24px;
697
+ color: #6e8192;
698
+ text-align: center
699
+ }
700
+
701
+ .apexcharts-menu-icon svg,
702
+ .apexcharts-reset-icon svg,
703
+ .apexcharts-zoom-icon svg,
704
+ .apexcharts-zoomin-icon svg,
705
+ .apexcharts-zoomout-icon svg {
706
+ fill: #6e8192
707
+ }
708
+
709
+ .apexcharts-selection-icon svg {
710
+ fill: #444;
711
+ transform: scale(.76)
712
+ }
713
+
714
+ .apexcharts-theme-dark .apexcharts-menu-icon svg,
715
+ .apexcharts-theme-dark .apexcharts-pan-icon svg,
716
+ .apexcharts-theme-dark .apexcharts-reset-icon svg,
717
+ .apexcharts-theme-dark .apexcharts-selection-icon svg,
718
+ .apexcharts-theme-dark .apexcharts-toolbar-custom-icon svg,
719
+ .apexcharts-theme-dark .apexcharts-zoom-icon svg,
720
+ .apexcharts-theme-dark .apexcharts-zoomin-icon svg,
721
+ .apexcharts-theme-dark .apexcharts-zoomout-icon svg {
722
+ fill: #f3f4f5
723
+ }
724
+
725
+ .apexcharts-canvas .apexcharts-reset-zoom-icon.apexcharts-selected svg,
726
+ .apexcharts-canvas .apexcharts-selection-icon.apexcharts-selected svg,
727
+ .apexcharts-canvas .apexcharts-zoom-icon.apexcharts-selected svg {
728
+ fill: #008ffb
729
+ }
730
+
731
+ .apexcharts-theme-light .apexcharts-menu-icon:hover svg,
732
+ .apexcharts-theme-light .apexcharts-reset-icon:hover svg,
733
+ .apexcharts-theme-light .apexcharts-selection-icon:not(.apexcharts-selected):hover svg,
734
+ .apexcharts-theme-light .apexcharts-zoom-icon:not(.apexcharts-selected):hover svg,
735
+ .apexcharts-theme-light .apexcharts-zoomin-icon:hover svg,
736
+ .apexcharts-theme-light .apexcharts-zoomout-icon:hover svg {
737
+ fill: #333
738
+ }
739
+
740
+ .apexcharts-menu-icon,
741
+ .apexcharts-selection-icon {
742
+ position: relative
743
+ }
744
+
745
+ .apexcharts-reset-icon {
746
+ margin-left: 5px
747
+ }
748
+
749
+ .apexcharts-menu-icon,
750
+ .apexcharts-reset-icon,
751
+ .apexcharts-zoom-icon {
752
+ transform: scale(.85)
753
+ }
754
+
755
+ .apexcharts-zoomin-icon,
756
+ .apexcharts-zoomout-icon {
757
+ transform: scale(.7)
758
+ }
759
+
760
+ .apexcharts-zoomout-icon {
761
+ margin-right: 3px
762
+ }
763
+
764
+ .apexcharts-pan-icon {
765
+ transform: scale(.62);
766
+ position: relative;
767
+ left: 1px;
768
+ top: 0
769
+ }
770
+
771
+ .apexcharts-pan-icon svg {
772
+ fill: #fff;
773
+ stroke: #6e8192;
774
+ stroke-width: 2
775
+ }
776
+
777
+ .apexcharts-pan-icon.apexcharts-selected svg {
778
+ stroke: #008ffb
779
+ }
780
+
781
+ .apexcharts-pan-icon:not(.apexcharts-selected):hover svg {
782
+ stroke: #333
783
+ }
784
+
785
+ .apexcharts-toolbar {
786
+ position: absolute;
787
+ z-index: 11;
788
+ max-width: 176px;
789
+ text-align: right;
790
+ border-radius: 3px;
791
+ padding: 0 6px 2px;
792
+ display: flex;
793
+ justify-content: space-between;
794
+ align-items: center
795
+ }
796
+
797
+ .apexcharts-menu {
798
+ background: #fff;
799
+ position: absolute;
800
+ top: 100%;
801
+ border: 1px solid #ddd;
802
+ border-radius: 3px;
803
+ padding: 3px;
804
+ right: 10px;
805
+ opacity: 0;
806
+ min-width: 110px;
807
+ transition: .15s ease all;
808
+ pointer-events: none
809
+ }
810
+
811
+ .apexcharts-menu.apexcharts-menu-open {
812
+ opacity: 1;
813
+ pointer-events: all;
814
+ transition: .15s ease all
815
+ }
816
+
817
+ .apexcharts-menu-item {
818
+ padding: 6px 7px;
819
+ font-size: 12px;
820
+ cursor: pointer
821
+ }
822
+
823
+ .apexcharts-theme-light .apexcharts-menu-item:hover {
824
+ background: #eee
825
+ }
826
+
827
+ .apexcharts-theme-dark .apexcharts-menu {
828
+ background: rgba(0, 0, 0, .7);
829
+ color: #fff
830
+ }
831
+
832
+ @media screen and (min-width:768px) {
833
+ .apexcharts-canvas:hover .apexcharts-toolbar {
834
+ opacity: 1
835
+ }
836
+ }
837
+
838
+ .apexcharts-canvas .apexcharts-element-hidden,
839
+ .apexcharts-datalabel.apexcharts-element-hidden,
840
+ .apexcharts-hide .apexcharts-series-points {
841
+ opacity: 0;
842
+ }
843
+
844
+ .apexcharts-hidden-element-shown {
845
+ opacity: 1;
846
+ transition: 0.25s ease all;
847
+ }
848
+
849
+ .apexcharts-datalabel,
850
+ .apexcharts-datalabel-label,
851
+ .apexcharts-datalabel-value,
852
+ .apexcharts-datalabels,
853
+ .apexcharts-pie-label {
854
+ cursor: default;
855
+ pointer-events: none
856
+ }
857
+
858
+ .apexcharts-pie-label-delay {
859
+ opacity: 0;
860
+ animation-name: opaque;
861
+ animation-duration: .3s;
862
+ animation-fill-mode: forwards;
863
+ animation-timing-function: ease
864
+ }
865
+
866
+ .apexcharts-radialbar-label {
867
+ cursor: pointer;
868
+ }
869
+
870
+ .apexcharts-annotation-rect,
871
+ .apexcharts-area-series .apexcharts-area,
872
+ .apexcharts-gridline,
873
+ .apexcharts-line,
874
+ .apexcharts-point-annotation-label,
875
+ .apexcharts-radar-series path:not(.apexcharts-marker),
876
+ .apexcharts-radar-series polygon,
877
+ .apexcharts-toolbar svg,
878
+ .apexcharts-tooltip .apexcharts-marker,
879
+ .apexcharts-xaxis-annotation-label,
880
+ .apexcharts-yaxis-annotation-label,
881
+ .apexcharts-zoom-rect,
882
+ .no-pointer-events {
883
+ pointer-events: none
884
+ }
885
+
886
+ .apexcharts-tooltip-active .apexcharts-marker {
887
+ transition: .15s ease all
888
+ }
889
+
890
+ .apexcharts-radar-series .apexcharts-yaxis {
891
+ pointer-events: none;
892
+ }
893
+
894
+ .resize-triggers {
895
+ animation: 1ms resizeanim;
896
+ visibility: hidden;
897
+ opacity: 0;
898
+ height: 100%;
899
+ width: 100%;
900
+ overflow: hidden
901
+ }
902
+
903
+ .contract-trigger:before,
904
+ .resize-triggers,
905
+ .resize-triggers>div {
906
+ content: " ";
907
+ display: block;
908
+ position: absolute;
909
+ top: 0;
910
+ left: 0
911
+ }
912
+
913
+ .resize-triggers>div {
914
+ height: 100%;
915
+ width: 100%;
916
+ background: #eee;
917
+ overflow: auto
918
+ }
919
+
920
+ .contract-trigger:before {
921
+ overflow: hidden;
922
+ width: 200%;
923
+ height: 200%
924
+ }
925
+
926
+ .apexcharts-bar-goals-markers {
927
+ pointer-events: none
928
+ }
929
+
930
+ .apexcharts-bar-shadows {
931
+ pointer-events: none
932
+ }
933
+
934
+ .apexcharts-rangebar-goals-markers {
935
+ pointer-events: none
936
+ }
937
+
938
+ .apexcharts-disable-transitions * {
939
+ transition: none !important;
940
+ }`;var u=((h=e.opts.chart)===null||h===void 0?void 0:h.nonce)||e.w.config.chart.nonce;u&&l.setAttribute("nonce",u),o?a.prepend(l):s.head.appendChild(l)}var c=e.create(e.w.config.series,{});if(!c)return t(e);e.mount(c).then(function(){typeof e.w.config.chart.events.mounted=="function"&&e.w.config.chart.events.mounted(e,e.w),e.events.fireEvent("mounted",[e,e.w]),t(c)}).catch(function(f){n(f)})}else n(new Error("Element not found"))})}},{key:"create",value:function(e,t){var n=this,r=this.w;new iu(this).initModules();var a=this.w.globals;if(a.noData=!1,a.animationEnded=!1,!q.elementExists(this.el)||(this.responsive.checkResponsiveConfig(t),r.config.xaxis.convertedCatToNumeric&&new or(r.config).convertCatToNumericXaxis(r.config,this.ctx),this.core.setupElements(),r.config.chart.type==="treemap"&&(r.config.grid.show=!1,r.config.yaxis[0].show=!1),a.svgWidth===0))return a.animationEnded=!0,null;var o=e;e.forEach(function(f,d){f.hidden&&(o=n.legend.legendHelpers.getSeriesAfterCollapsing({realIndex:d}))});var s=Je.checkComboSeries(o,r.config.chart.type);a.comboCharts=s.comboCharts,a.comboBarCount=s.comboBarCount;var l=o.every(function(f){return f.data&&f.data.length===0});(o.length===0||l&&a.collapsedSeries.length<1)&&this.series.handleNoData(),this.events.setupEventHandlers(),this.data.parseData(o),this.theme.init(),new Ei(this).setGlobalMarkerSize(),this.formatters.setLabelFormatters(),this.titleSubtitle.draw(),a.noData&&a.collapsedSeries.length!==a.series.length&&!r.config.legend.showForSingleSeries||this.legend.init(),this.series.hasAllSeriesEqualX(),a.axisCharts&&(this.core.coreCalculations(),r.config.xaxis.type!=="category"&&this.formatters.setLabelFormatters(),this.ctx.toolbar.minX=r.globals.minX,this.ctx.toolbar.maxX=r.globals.maxX),this.formatters.heatmapLabelFormatters(),new Je(this).getLargestMarkerSize(),this.dimensions.plotCoords();var h=this.core.xySettings();this.grid.createGridMask();var u=this.core.plotChartType(o,h),c=new vi(this);return c.bringForward(),r.config.dataLabels.background.enabled&&c.dataLabelsBackground(),this.core.shiftGraphPosition(),r.globals.dataPoints>50&&r.globals.dom.elWrap.classList.add("apexcharts-disable-transitions"),{elGraph:u,xyRatios:h,dimensions:{plot:{left:r.globals.translateX,top:r.globals.translateY,width:r.globals.gridWidth,height:r.globals.gridHeight}}}}},{key:"mount",value:function(){var e=this,t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,n=this,r=n.w;return new Promise(function(a,o){if(n.el===null)return o(new Error("Not enough data to display or target element not found"));(t===null||r.globals.allSeriesCollapsed)&&n.series.handleNoData(),n.grid=new eh(n);var s,l,h=n.grid.drawGrid();if(n.annotations=new Gd(n),n.annotations.drawImageAnnos(),n.annotations.drawTextAnnos(),r.config.grid.position==="back"&&(h&&r.globals.dom.elGraphical.add(h.el),h!=null&&(s=h.elGridBorders)!==null&&s!==void 0&&s.node&&r.globals.dom.elGraphical.add(h.elGridBorders)),Array.isArray(t.elGraph))for(var u=0;u<t.elGraph.length;u++)r.globals.dom.elGraphical.add(t.elGraph[u]);else r.globals.dom.elGraphical.add(t.elGraph);r.config.grid.position==="front"&&(h&&r.globals.dom.elGraphical.add(h.el),h!=null&&(l=h.elGridBorders)!==null&&l!==void 0&&l.node&&r.globals.dom.elGraphical.add(h.elGridBorders)),r.config.xaxis.crosshairs.position==="front"&&n.crosshairs.drawXCrosshairs(),r.config.yaxis[0].crosshairs.position==="front"&&n.crosshairs.drawYCrosshairs(),r.config.chart.type!=="treemap"&&n.axes.drawAxis(r.config.chart.type,h);var c=new lr(e.ctx,h),f=new Zs(e.ctx,h);if(h!==null&&(c.xAxisLabelCorrections(h.xAxisTickWidth),f.setYAxisTextAlignments(),r.config.yaxis.map(function(p,g){r.globals.ignoreYAxisIndexes.indexOf(g)===-1&&f.yAxisTitleRotate(g,p.opposite)})),n.annotations.drawAxesAnnotations(),!r.globals.noData){if(r.config.tooltip.enabled&&!r.globals.noData&&n.w.globals.tooltip.drawTooltip(t.xyRatios),r.globals.axisCharts&&(r.globals.isXNumeric||r.config.xaxis.convertedCatToNumeric||r.globals.isRangeBar))(r.config.chart.zoom.enabled||r.config.chart.selection&&r.config.chart.selection.enabled||r.config.chart.pan&&r.config.chart.pan.enabled)&&n.zoomPanSelection.init({xyRatios:t.xyRatios});else{var d=r.config.chart.toolbar.tools;["zoom","zoomin","zoomout","selection","pan","reset"].forEach(function(p){d[p]=!1})}r.config.chart.toolbar.show&&!r.globals.allSeriesCollapsed&&n.toolbar.createToolbar()}r.globals.memory.methodsToExec.length>0&&r.globals.memory.methodsToExec.forEach(function(p){p.method(p.params,!1,p.context)}),r.globals.axisCharts||r.globals.noData||n.core.resizeNonAxisCharts(),a(n)})}},{key:"destroy",value:function(){window.removeEventListener("resize",this.windowResizeHandler),function(t,n){var r=po.get(n);r&&(r.disconnect(),po.delete(n))}(this.el.parentNode,this.parentResizeHandler);var e=this.w.config.chart.id;e&&Apex._chartInstances.forEach(function(t,n){t.id===q.escapeString(e)&&Apex._chartInstances.splice(n,1)}),new ru(this.ctx).clear({isUpdating:!1})}},{key:"updateOptions",value:function(e){var t=this,n=arguments.length>1&&arguments[1]!==void 0&&arguments[1],r=!(arguments.length>2&&arguments[2]!==void 0)||arguments[2],a=!(arguments.length>3&&arguments[3]!==void 0)||arguments[3],o=!(arguments.length>4&&arguments[4]!==void 0)||arguments[4],s=this.w;return s.globals.selection=void 0,this.lastUpdateOptions&&JSON.stringify(this.lastUpdateOptions)===JSON.stringify(e)?this:(this.lastUpdateOptions=q.clone(e),e.series&&(this.series.resetSeries(!1,!0,!1),e.series.length&&e.series[0].data&&(e.series=e.series.map(function(l,h){return t.updateHelpers._extendSeries(l,h)})),this.updateHelpers.revertDefaultAxisMinMax()),e.xaxis&&(e=this.updateHelpers.forceXAxisUpdate(e)),e.yaxis&&(e=this.updateHelpers.forceYAxisUpdate(e)),s.globals.collapsedSeriesIndices.length>0&&this.series.clearPreviousPaths(),e.theme&&(e=this.theme.updateThemeOptions(e)),this.updateHelpers._updateOptions(e,n,r,a,o))}},{key:"updateSeries",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1],n=!(arguments.length>2&&arguments[2]!==void 0)||arguments[2];return this.series.resetSeries(!1),this.updateHelpers.revertDefaultAxisMinMax(),this.updateHelpers._updateSeries(e,t,n)}},{key:"appendSeries",value:function(e){var t=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1],n=!(arguments.length>2&&arguments[2]!==void 0)||arguments[2],r=this.w.config.series.slice();return r.push(e),this.series.resetSeries(!1),this.updateHelpers.revertDefaultAxisMinMax(),this.updateHelpers._updateSeries(r,t,n)}},{key:"appendData",value:function(e){var t=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1],n=this;n.w.globals.dataChanged=!0,n.series.getPreviousPaths();for(var r=n.w.config.series.slice(),a=0;a<r.length;a++)if(e[a]!==null&&e[a]!==void 0)for(var o=0;o<e[a].data.length;o++)r[a].data.push(e[a].data[o]);return n.w.config.series=r,t&&(n.w.globals.initialSeries=q.clone(n.w.config.series)),this.update()}},{key:"update",value:function(e){var t=this;return new Promise(function(n,r){if(t.lastUpdateOptions&&JSON.stringify(t.lastUpdateOptions)===JSON.stringify(e))return n(t);t.lastUpdateOptions=q.clone(e),new ru(t.ctx).clear({isUpdating:!0});var a=t.create(t.w.config.series,e);if(!a)return n(t);t.mount(a).then(function(){typeof t.w.config.chart.events.updated=="function"&&t.w.config.chart.events.updated(t,t.w),t.events.fireEvent("updated",[t,t.w]),t.w.globals.isDirty=!0,n(t)}).catch(function(o){r(o)})})}},{key:"getSyncedCharts",value:function(){var e=this.getGroupedCharts(),t=[this];return e.length&&(t=[],e.forEach(function(n){t.push(n)})),t}},{key:"getGroupedCharts",value:function(){var e=this;return Apex._chartInstances.filter(function(t){if(t.group)return!0}).map(function(t){return e.w.config.chart.group===t.group?t.chart:e})}},{key:"toggleSeries",value:function(e){return this.series.toggleSeries(e)}},{key:"highlightSeriesOnLegendHover",value:function(e,t){return this.series.toggleSeriesOnHover(e,t)}},{key:"showSeries",value:function(e){this.series.showSeries(e)}},{key:"hideSeries",value:function(e){this.series.hideSeries(e)}},{key:"highlightSeries",value:function(e){this.series.highlightSeries(e)}},{key:"isSeriesHidden",value:function(e){this.series.isSeriesHidden(e)}},{key:"resetSeries",value:function(){var e=!(arguments.length>0&&arguments[0]!==void 0)||arguments[0],t=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1];this.series.resetSeries(e,t)}},{key:"addEventListener",value:function(e,t){this.events.addEventListener(e,t)}},{key:"removeEventListener",value:function(e,t){this.events.removeEventListener(e,t)}},{key:"addXaxisAnnotation",value:function(e){var t=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1],n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0,r=this;n&&(r=n),r.annotations.addXaxisAnnotationExternal(e,t,r)}},{key:"addYaxisAnnotation",value:function(e){var t=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1],n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0,r=this;n&&(r=n),r.annotations.addYaxisAnnotationExternal(e,t,r)}},{key:"addPointAnnotation",value:function(e){var t=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1],n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0,r=this;n&&(r=n),r.annotations.addPointAnnotationExternal(e,t,r)}},{key:"clearAnnotations",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:void 0,t=this;e&&(t=e),t.annotations.clearAnnotations(t)}},{key:"removeAnnotation",value:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:void 0,n=this;t&&(n=t),n.annotations.removeAnnotation(n,e)}},{key:"getChartArea",value:function(){return this.w.globals.dom.baseEl.querySelector(".apexcharts-inner")}},{key:"getSeriesTotalXRange",value:function(e,t){return this.coreUtils.getSeriesTotalsXRange(e,t)}},{key:"getHighestValueInSeries",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;return new qo(this.ctx).getMinYMaxY(e).highestY}},{key:"getLowestValueInSeries",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;return new qo(this.ctx).getMinYMaxY(e).lowestY}},{key:"getSeriesTotal",value:function(){return this.w.globals.seriesTotals}},{key:"toggleDataPointSelection",value:function(e,t){return this.updateHelpers.toggleDataPointSelection(e,t)}},{key:"zoomX",value:function(e,t){this.ctx.toolbar.zoomUpdateOptions(e,t)}},{key:"setLocale",value:function(e){this.localization.setCurrentLocaleValues(e)}},{key:"dataURI",value:function(e){return new Zi(this.ctx).dataURI(e)}},{key:"getSvgString",value:function(e){return new Zi(this.ctx).getSvgString(e)}},{key:"exportToCSV",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return new Zi(this.ctx).exportToCSV(e)}},{key:"paper",value:function(){return this.w.globals.dom.Paper}},{key:"_parentResizeCallback",value:function(){this.w.globals.animationEnded&&this.w.config.chart.redrawOnParentResize&&this._windowResize()}},{key:"_windowResize",value:function(){var e=this;clearTimeout(this.w.globals.resizeTimer),this.w.globals.resizeTimer=window.setTimeout(function(){e.w.globals.resized=!0,e.w.globals.dataChanged=!1,e.ctx.update()},150)}},{key:"_windowResizeHandler",value:function(){var e=this.w.config.chart.redrawOnWindowResize;typeof e=="function"&&(e=e()),e&&this._windowResize()}}],[{key:"getChartByID",value:function(e){var t=q.escapeString(e);if(Apex._chartInstances){var n=Apex._chartInstances.filter(function(r){return r.id===t})[0];return n&&n.chart}}},{key:"initOnLoad",value:function(){for(var e=document.querySelectorAll("[data-apexcharts]"),t=0;t<e.length;t++)new i(e[t],JSON.parse(e[t].getAttribute("data-options"))).render()}},{key:"exec",value:function(e,t){var n=this.getChartByID(e);if(n){n.w.globals.isExecCalled=!0;var r=null;if(n.publicMethods.indexOf(t)!==-1){for(var a=arguments.length,o=new Array(a>2?a-2:0),s=2;s<a;s++)o[s-2]=arguments[s];r=n[t].apply(n,o)}return r}}},{key:"merge",value:function(e,t){return q.extend(e,t)}}]),i}();const Og=Object.freeze(Object.defineProperty({__proto__:null,default:Eg},Symbol.toStringTag,{value:"Module"})),Mg=$f(Og);(function(i){Object.defineProperty(i,"__esModule",{value:!0}),i.default=b;var e=s(K),t=a(Mg),n=a(ed),r=["type","width","height","series","options"];function a(x){return x&&x.__esModule?x:{default:x}}function o(x){var w,k;return typeof WeakMap!="function"?null:(w=new WeakMap,k=new WeakMap,(o=function(S){return S?k:w})(x))}function s(x,w){if(!w&&x&&x.__esModule)return x;if(x===null||c(x)!="object"&&typeof x!="function")return{default:x};if(w=o(w),w&&w.has(x))return w.get(x);var k,S,A={__proto__:null},O=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(k in x)k!=="default"&&{}.hasOwnProperty.call(x,k)&&((S=O?Object.getOwnPropertyDescriptor(x,k):null)&&(S.get||S.set)?Object.defineProperty(A,k,S):A[k]=x[k]);return A.default=x,w&&w.set(x,A),A}function l(){return(l=Object.assign?Object.assign.bind():function(x){for(var w=1;w<arguments.length;w++){var k,S=arguments[w];for(k in S)!{}.hasOwnProperty.call(S,k)||(x[k]=S[k])}return x}).apply(null,arguments)}function h(x,w){if(x==null)return{};var k,S=u(x,w);if(Object.getOwnPropertySymbols)for(var A=Object.getOwnPropertySymbols(x),O=0;O<A.length;O++)k=A[O],w.includes(k)||{}.propertyIsEnumerable.call(x,k)&&(S[k]=x[k]);return S}function u(x,w){if(x==null)return{};var k,S={};for(k in x)if({}.hasOwnProperty.call(x,k)){if(w.includes(k))continue;S[k]=x[k]}return S}function c(x){return(c=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(w){return typeof w}:function(w){return w&&typeof Symbol=="function"&&w.constructor===Symbol&&w!==Symbol.prototype?"symbol":typeof w})(x)}function f(x,w){var k,S=Object.keys(x);return Object.getOwnPropertySymbols&&(k=Object.getOwnPropertySymbols(x),w&&(k=k.filter(function(A){return Object.getOwnPropertyDescriptor(x,A).enumerable})),S.push.apply(S,k)),S}function d(x){for(var w=1;w<arguments.length;w++){var k=arguments[w]!=null?arguments[w]:{};w%2?f(Object(k),!0).forEach(function(S){p(x,S,k[S])}):Object.getOwnPropertyDescriptors?Object.defineProperties(x,Object.getOwnPropertyDescriptors(k)):f(Object(k)).forEach(function(S){Object.defineProperty(x,S,Object.getOwnPropertyDescriptor(k,S))})}return x}function p(x,w,k){return(w=g(w))in x?Object.defineProperty(x,w,{value:k,enumerable:!0,configurable:!0,writable:!0}):x[w]=k,x}function g(x){return x=m(x,"string"),c(x)=="symbol"?x:x+""}function m(x,w){if(c(x)!="object"||!x)return x;var k=x[Symbol.toPrimitive];if(k===void 0)return(w==="string"?String:Number)(x);if(k=k.call(x,w||"default"),c(k)!="object")return k;throw new TypeError("@@toPrimitive must return a primitive value.")}function v(x,w){var k=d({},x);return w.forEach(function(S){delete k[S]}),k}function y(x,w){var k=2<arguments.length&&arguments[2]!==void 0?arguments[2]:new WeakSet;if(x!==w){if(c(x)!=="object"||x===null||c(w)!=="object"||w===null)return!1;if(!k.has(x)&&!k.has(w)){k.add(x),k.add(w);var S=Object.keys(x),A=Object.keys(w);if(S.length!==A.length)return!1;for(var O=0,_=S;O<_.length;O++){var C=_[O];if(!A.includes(C)||!y(x[C],w[C],k))return!1}}}return!0}function b(F){function w(B){return B&&c(B)==="object"&&!Array.isArray(B)}var C=F.type,k=C===void 0?"line":C,C=F.width,S=C===void 0?"100%":C,C=F.height,A=C===void 0?"auto":C,O=F.series,_=F.options,C=h(F,r),M=(0,e.useRef)(null),P=(0,e.useRef)(null),E=(0,e.useRef)(),R=((0,e.useEffect)(function(){E.current=_;var B=M.current;return P.current=new t.default(B,R()),P.current.render(),function(){P.current&&typeof P.current.destroy=="function"&&P.current.destroy()}},[]),(0,e.useEffect)(function(){var B=!y(P.current.w.config.series,O),D=!y(E.current,_)||A!==P.current.opts.chart.height||S!==P.current.opts.chart.width;(B||D)&&(!B||D?P.current.updateOptions(R()):P.current.updateSeries(O)),E.current=_},[_,O,A,S]),function(){return T(_,{chart:{type:k,height:A,width:S},series:O})}),T=function(B,D){var N=d({},B);return w(B)&&w(D)&&Object.keys(D).forEach(function(L){w(D[L])&&L in B?N[L]=T(B[L],D[L]):Object.assign(N,p({},L,D[L]))}),N},F=v(C,Object.keys(b.propTypes));return e.default.createElement("div",l({ref:M},F))}b.propTypes={type:n.default.string.isRequired,series:n.default.array.isRequired,options:n.default.object.isRequired,width:n.default.oneOfType([n.default.string,n.default.number]),height:n.default.oneOfType([n.default.string,n.default.number])}})(hd);const{Tr:Pg,Td:Rg,TBody:Lg}=Fs,Tg=i=>{const{columns:e=1,rows:t=10,avatarInColumns:n=[],avatarProps:r}=i;return Le.jsx(Lg,{children:Array.from(new Array(t),(a,o)=>o+0).map(a=>Le.jsx(Pg,{children:Array.from(new Array(e),(o,s)=>s+0).map(o=>Le.jsx(Rg,{children:Le.jsxs("div",{className:"flex flex-auto items-center gap-2",children:[n.includes(o)&&Le.jsx("div",{children:Le.jsx(Nl,{variant:"circle",...r})}),Le.jsx(Nl,{})]})},`col-${o}`))},`row-${a}`))})};/**
941
+ * table-core
942
+ *
943
+ * Copyright (c) TanStack
944
+ *
945
+ * This source code is licensed under the MIT license found in the
946
+ * LICENSE.md file in the root directory of this source tree.
947
+ *
948
+ * @license MIT
949
+ */function Cn(i,e){return typeof i=="function"?i(e):i}function Nt(i,e){return t=>{e.setState(n=>({...n,[i]:Cn(t,n[i])}))}}function Ya(i){return i instanceof Function}function Ig(i){return Array.isArray(i)&&i.every(e=>typeof e=="number")}function Ng(i,e){const t=[],n=r=>{r.forEach(a=>{t.push(a);const o=e(a);o!=null&&o.length&&n(o)})};return n(i),t}function xe(i,e,t){let n=[],r;return a=>{let o;t.key&&t.debug&&(o=Date.now());const s=i(a);if(!(s.length!==n.length||s.some((u,c)=>n[c]!==u)))return r;n=s;let h;if(t.key&&t.debug&&(h=Date.now()),r=e(...s),t==null||t.onChange==null||t.onChange(r),t.key&&t.debug&&t!=null&&t.debug()){const u=Math.round((Date.now()-o)*100)/100,c=Math.round((Date.now()-h)*100)/100,f=c/16,d=(p,g)=>{for(p=String(p);p.length<g;)p=" "+p;return p};console.info(`%c⏱ ${d(c,5)} /${d(u,5)} ms`,`
950
+ font-size: .6rem;
951
+ font-weight: bold;
952
+ color: hsl(${Math.max(0,Math.min(120-120*f,120))}deg 100% 31%);`,t==null?void 0:t.key)}return r}}function be(i,e,t,n){return{debug:()=>{var r;return(r=i==null?void 0:i.debugAll)!=null?r:i[e]},key:!1,onChange:n}}function Fg(i,e,t,n){const r=()=>{var o;return(o=a.getValue())!=null?o:i.options.renderFallbackValue},a={id:`${e.id}_${t.id}`,row:e,column:t,getValue:()=>e.getValue(n),renderValue:r,getContext:xe(()=>[i,t,e,a],(o,s,l,h)=>({table:o,column:s,row:l,cell:h,getValue:h.getValue,renderValue:h.renderValue}),be(i.options,"debugCells"))};return i._features.forEach(o=>{o.createCell==null||o.createCell(a,t,e,i)},{}),a}function zg(i,e,t,n){var r,a;const s={...i._getDefaultColumnDef(),...e},l=s.accessorKey;let h=(r=(a=s.id)!=null?a:l?typeof String.prototype.replaceAll=="function"?l.replaceAll(".","_"):l.replace(/\./g,"_"):void 0)!=null?r:typeof s.header=="string"?s.header:void 0,u;if(s.accessorFn?u=s.accessorFn:l&&(l.includes(".")?u=f=>{let d=f;for(const g of l.split(".")){var p;d=(p=d)==null?void 0:p[g]}return d}:u=f=>f[s.accessorKey]),!h)throw new Error;let c={id:`${String(h)}`,accessorFn:u,parent:n,depth:t,columnDef:s,columns:[],getFlatColumns:xe(()=>[!0],()=>{var f;return[c,...(f=c.columns)==null?void 0:f.flatMap(d=>d.getFlatColumns())]},be(i.options,"debugColumns")),getLeafColumns:xe(()=>[i._getOrderColumnsFn()],f=>{var d;if((d=c.columns)!=null&&d.length){let p=c.columns.flatMap(g=>g.getLeafColumns());return f(p)}return[c]},be(i.options,"debugColumns"))};for(const f of i._features)f.createColumn==null||f.createColumn(c,i);return c}const ht="debugHeaders";function au(i,e,t){var n;let a={id:(n=t.id)!=null?n:e.id,column:e,index:t.index,isPlaceholder:!!t.isPlaceholder,placeholderId:t.placeholderId,depth:t.depth,subHeaders:[],colSpan:0,rowSpan:0,headerGroup:null,getLeafHeaders:()=>{const o=[],s=l=>{l.subHeaders&&l.subHeaders.length&&l.subHeaders.map(s),o.push(l)};return s(a),o},getContext:()=>({table:i,header:a,column:e})};return i._features.forEach(o=>{o.createHeader==null||o.createHeader(a,i)}),a}const Dg={createTable:i=>{i.getHeaderGroups=xe(()=>[i.getAllColumns(),i.getVisibleLeafColumns(),i.getState().columnPinning.left,i.getState().columnPinning.right],(e,t,n,r)=>{var a,o;const s=(a=n==null?void 0:n.map(c=>t.find(f=>f.id===c)).filter(Boolean))!=null?a:[],l=(o=r==null?void 0:r.map(c=>t.find(f=>f.id===c)).filter(Boolean))!=null?o:[],h=t.filter(c=>!(n!=null&&n.includes(c.id))&&!(r!=null&&r.includes(c.id)));return Tr(e,[...s,...h,...l],i)},be(i.options,ht)),i.getCenterHeaderGroups=xe(()=>[i.getAllColumns(),i.getVisibleLeafColumns(),i.getState().columnPinning.left,i.getState().columnPinning.right],(e,t,n,r)=>(t=t.filter(a=>!(n!=null&&n.includes(a.id))&&!(r!=null&&r.includes(a.id))),Tr(e,t,i,"center")),be(i.options,ht)),i.getLeftHeaderGroups=xe(()=>[i.getAllColumns(),i.getVisibleLeafColumns(),i.getState().columnPinning.left],(e,t,n)=>{var r;const a=(r=n==null?void 0:n.map(o=>t.find(s=>s.id===o)).filter(Boolean))!=null?r:[];return Tr(e,a,i,"left")},be(i.options,ht)),i.getRightHeaderGroups=xe(()=>[i.getAllColumns(),i.getVisibleLeafColumns(),i.getState().columnPinning.right],(e,t,n)=>{var r;const a=(r=n==null?void 0:n.map(o=>t.find(s=>s.id===o)).filter(Boolean))!=null?r:[];return Tr(e,a,i,"right")},be(i.options,ht)),i.getFooterGroups=xe(()=>[i.getHeaderGroups()],e=>[...e].reverse(),be(i.options,ht)),i.getLeftFooterGroups=xe(()=>[i.getLeftHeaderGroups()],e=>[...e].reverse(),be(i.options,ht)),i.getCenterFooterGroups=xe(()=>[i.getCenterHeaderGroups()],e=>[...e].reverse(),be(i.options,ht)),i.getRightFooterGroups=xe(()=>[i.getRightHeaderGroups()],e=>[...e].reverse(),be(i.options,ht)),i.getFlatHeaders=xe(()=>[i.getHeaderGroups()],e=>e.map(t=>t.headers).flat(),be(i.options,ht)),i.getLeftFlatHeaders=xe(()=>[i.getLeftHeaderGroups()],e=>e.map(t=>t.headers).flat(),be(i.options,ht)),i.getCenterFlatHeaders=xe(()=>[i.getCenterHeaderGroups()],e=>e.map(t=>t.headers).flat(),be(i.options,ht)),i.getRightFlatHeaders=xe(()=>[i.getRightHeaderGroups()],e=>e.map(t=>t.headers).flat(),be(i.options,ht)),i.getCenterLeafHeaders=xe(()=>[i.getCenterFlatHeaders()],e=>e.filter(t=>{var n;return!((n=t.subHeaders)!=null&&n.length)}),be(i.options,ht)),i.getLeftLeafHeaders=xe(()=>[i.getLeftFlatHeaders()],e=>e.filter(t=>{var n;return!((n=t.subHeaders)!=null&&n.length)}),be(i.options,ht)),i.getRightLeafHeaders=xe(()=>[i.getRightFlatHeaders()],e=>e.filter(t=>{var n;return!((n=t.subHeaders)!=null&&n.length)}),be(i.options,ht)),i.getLeafHeaders=xe(()=>[i.getLeftHeaderGroups(),i.getCenterHeaderGroups(),i.getRightHeaderGroups()],(e,t,n)=>{var r,a,o,s,l,h;return[...(r=(a=e[0])==null?void 0:a.headers)!=null?r:[],...(o=(s=t[0])==null?void 0:s.headers)!=null?o:[],...(l=(h=n[0])==null?void 0:h.headers)!=null?l:[]].map(u=>u.getLeafHeaders()).flat()},be(i.options,ht))}};function Tr(i,e,t,n){var r,a;let o=0;const s=function(f,d){d===void 0&&(d=1),o=Math.max(o,d),f.filter(p=>p.getIsVisible()).forEach(p=>{var g;(g=p.columns)!=null&&g.length&&s(p.columns,d+1)},0)};s(i);let l=[];const h=(f,d)=>{const p={depth:d,id:[n,`${d}`].filter(Boolean).join("_"),headers:[]},g=[];f.forEach(m=>{const v=[...g].reverse()[0],y=m.column.depth===p.depth;let b,x=!1;if(y&&m.column.parent?b=m.column.parent:(b=m.column,x=!0),v&&(v==null?void 0:v.column)===b)v.subHeaders.push(m);else{const w=au(t,b,{id:[n,d,b.id,m==null?void 0:m.id].filter(Boolean).join("_"),isPlaceholder:x,placeholderId:x?`${g.filter(k=>k.column===b).length}`:void 0,depth:d,index:g.length});w.subHeaders.push(m),g.push(w)}p.headers.push(m),m.headerGroup=p}),l.push(p),d>0&&h(g,d-1)},u=e.map((f,d)=>au(t,f,{depth:o,index:d}));h(u,o-1),l.reverse();const c=f=>f.filter(p=>p.column.getIsVisible()).map(p=>{let g=0,m=0,v=[0];p.subHeaders&&p.subHeaders.length?(v=[],c(p.subHeaders).forEach(b=>{let{colSpan:x,rowSpan:w}=b;g+=x,v.push(w)})):g=1;const y=Math.min(...v);return m=m+y,p.colSpan=g,p.rowSpan=m,{colSpan:g,rowSpan:m}});return c((r=(a=l[0])==null?void 0:a.headers)!=null?r:[]),l}const Ks=(i,e,t,n,r,a,o)=>{let s={id:e,index:n,original:t,depth:r,parentId:o,_valuesCache:{},_uniqueValuesCache:{},getValue:l=>{if(s._valuesCache.hasOwnProperty(l))return s._valuesCache[l];const h=i.getColumn(l);if(h!=null&&h.accessorFn)return s._valuesCache[l]=h.accessorFn(s.original,n),s._valuesCache[l]},getUniqueValues:l=>{if(s._uniqueValuesCache.hasOwnProperty(l))return s._uniqueValuesCache[l];const h=i.getColumn(l);if(h!=null&&h.accessorFn)return h.columnDef.getUniqueValues?(s._uniqueValuesCache[l]=h.columnDef.getUniqueValues(s.original,n),s._uniqueValuesCache[l]):(s._uniqueValuesCache[l]=[s.getValue(l)],s._uniqueValuesCache[l])},renderValue:l=>{var h;return(h=s.getValue(l))!=null?h:i.options.renderFallbackValue},subRows:a??[],getLeafRows:()=>Ng(s.subRows,l=>l.subRows),getParentRow:()=>s.parentId?i.getRow(s.parentId,!0):void 0,getParentRows:()=>{let l=[],h=s;for(;;){const u=h.getParentRow();if(!u)break;l.push(u),h=u}return l.reverse()},getAllCells:xe(()=>[i.getAllLeafColumns()],l=>l.map(h=>Fg(i,s,h,h.id)),be(i.options,"debugRows")),_getAllCellsByColumnId:xe(()=>[s.getAllCells()],l=>l.reduce((h,u)=>(h[u.column.id]=u,h),{}),be(i.options,"debugRows"))};for(let l=0;l<i._features.length;l++){const h=i._features[l];h==null||h.createRow==null||h.createRow(s,i)}return s},Hg={createColumn:(i,e)=>{i._getFacetedRowModel=e.options.getFacetedRowModel&&e.options.getFacetedRowModel(e,i.id),i.getFacetedRowModel=()=>i._getFacetedRowModel?i._getFacetedRowModel():e.getPreFilteredRowModel(),i._getFacetedUniqueValues=e.options.getFacetedUniqueValues&&e.options.getFacetedUniqueValues(e,i.id),i.getFacetedUniqueValues=()=>i._getFacetedUniqueValues?i._getFacetedUniqueValues():new Map,i._getFacetedMinMaxValues=e.options.getFacetedMinMaxValues&&e.options.getFacetedMinMaxValues(e,i.id),i.getFacetedMinMaxValues=()=>{if(i._getFacetedMinMaxValues)return i._getFacetedMinMaxValues()}}},fh=(i,e,t)=>{var n,r;const a=t==null||(n=t.toString())==null?void 0:n.toLowerCase();return!!(!((r=i.getValue(e))==null||(r=r.toString())==null||(r=r.toLowerCase())==null)&&r.includes(a))};fh.autoRemove=i=>Qt(i);const dh=(i,e,t)=>{var n;return!!(!((n=i.getValue(e))==null||(n=n.toString())==null)&&n.includes(t))};dh.autoRemove=i=>Qt(i);const gh=(i,e,t)=>{var n;return((n=i.getValue(e))==null||(n=n.toString())==null?void 0:n.toLowerCase())===(t==null?void 0:t.toLowerCase())};gh.autoRemove=i=>Qt(i);const ph=(i,e,t)=>{var n;return(n=i.getValue(e))==null?void 0:n.includes(t)};ph.autoRemove=i=>Qt(i);const vh=(i,e,t)=>!t.some(n=>{var r;return!((r=i.getValue(e))!=null&&r.includes(n))});vh.autoRemove=i=>Qt(i)||!(i!=null&&i.length);const mh=(i,e,t)=>t.some(n=>{var r;return(r=i.getValue(e))==null?void 0:r.includes(n)});mh.autoRemove=i=>Qt(i)||!(i!=null&&i.length);const yh=(i,e,t)=>i.getValue(e)===t;yh.autoRemove=i=>Qt(i);const xh=(i,e,t)=>i.getValue(e)==t;xh.autoRemove=i=>Qt(i);const Qs=(i,e,t)=>{let[n,r]=t;const a=i.getValue(e);return a>=n&&a<=r};Qs.resolveFilterValue=i=>{let[e,t]=i,n=typeof e!="number"?parseFloat(e):e,r=typeof t!="number"?parseFloat(t):t,a=e===null||Number.isNaN(n)?-1/0:n,o=t===null||Number.isNaN(r)?1/0:r;if(a>o){const s=a;a=o,o=s}return[a,o]};Qs.autoRemove=i=>Qt(i)||Qt(i[0])&&Qt(i[1]);const fn={includesString:fh,includesStringSensitive:dh,equalsString:gh,arrIncludes:ph,arrIncludesAll:vh,arrIncludesSome:mh,equals:yh,weakEquals:xh,inNumberRange:Qs};function Qt(i){return i==null||i===""}const Bg={getDefaultColumnDef:()=>({filterFn:"auto"}),getInitialState:i=>({columnFilters:[],...i}),getDefaultOptions:i=>({onColumnFiltersChange:Nt("columnFilters",i),filterFromLeafRows:!1,maxLeafRowFilterDepth:100}),createColumn:(i,e)=>{i.getAutoFilterFn=()=>{const t=e.getCoreRowModel().flatRows[0],n=t==null?void 0:t.getValue(i.id);return typeof n=="string"?fn.includesString:typeof n=="number"?fn.inNumberRange:typeof n=="boolean"||n!==null&&typeof n=="object"?fn.equals:Array.isArray(n)?fn.arrIncludes:fn.weakEquals},i.getFilterFn=()=>{var t,n;return Ya(i.columnDef.filterFn)?i.columnDef.filterFn:i.columnDef.filterFn==="auto"?i.getAutoFilterFn():(t=(n=e.options.filterFns)==null?void 0:n[i.columnDef.filterFn])!=null?t:fn[i.columnDef.filterFn]},i.getCanFilter=()=>{var t,n,r;return((t=i.columnDef.enableColumnFilter)!=null?t:!0)&&((n=e.options.enableColumnFilters)!=null?n:!0)&&((r=e.options.enableFilters)!=null?r:!0)&&!!i.accessorFn},i.getIsFiltered=()=>i.getFilterIndex()>-1,i.getFilterValue=()=>{var t;return(t=e.getState().columnFilters)==null||(t=t.find(n=>n.id===i.id))==null?void 0:t.value},i.getFilterIndex=()=>{var t,n;return(t=(n=e.getState().columnFilters)==null?void 0:n.findIndex(r=>r.id===i.id))!=null?t:-1},i.setFilterValue=t=>{e.setColumnFilters(n=>{const r=i.getFilterFn(),a=n==null?void 0:n.find(u=>u.id===i.id),o=Cn(t,a?a.value:void 0);if(ou(r,o,i)){var s;return(s=n==null?void 0:n.filter(u=>u.id!==i.id))!=null?s:[]}const l={id:i.id,value:o};if(a){var h;return(h=n==null?void 0:n.map(u=>u.id===i.id?l:u))!=null?h:[]}return n!=null&&n.length?[...n,l]:[l]})}},createRow:(i,e)=>{i.columnFilters={},i.columnFiltersMeta={}},createTable:i=>{i.setColumnFilters=e=>{const t=i.getAllLeafColumns(),n=r=>{var a;return(a=Cn(e,r))==null?void 0:a.filter(o=>{const s=t.find(l=>l.id===o.id);if(s){const l=s.getFilterFn();if(ou(l,o.value,s))return!1}return!0})};i.options.onColumnFiltersChange==null||i.options.onColumnFiltersChange(n)},i.resetColumnFilters=e=>{var t,n;i.setColumnFilters(e?[]:(t=(n=i.initialState)==null?void 0:n.columnFilters)!=null?t:[])},i.getPreFilteredRowModel=()=>i.getCoreRowModel(),i.getFilteredRowModel=()=>(!i._getFilteredRowModel&&i.options.getFilteredRowModel&&(i._getFilteredRowModel=i.options.getFilteredRowModel(i)),i.options.manualFiltering||!i._getFilteredRowModel?i.getPreFilteredRowModel():i._getFilteredRowModel())}};function ou(i,e,t){return(i&&i.autoRemove?i.autoRemove(e,t):!1)||typeof e>"u"||typeof e=="string"&&!e}const Xg=(i,e,t)=>t.reduce((n,r)=>{const a=r.getValue(i);return n+(typeof a=="number"?a:0)},0),Yg=(i,e,t)=>{let n;return t.forEach(r=>{const a=r.getValue(i);a!=null&&(n>a||n===void 0&&a>=a)&&(n=a)}),n},jg=(i,e,t)=>{let n;return t.forEach(r=>{const a=r.getValue(i);a!=null&&(n<a||n===void 0&&a>=a)&&(n=a)}),n},Wg=(i,e,t)=>{let n,r;return t.forEach(a=>{const o=a.getValue(i);o!=null&&(n===void 0?o>=o&&(n=r=o):(n>o&&(n=o),r<o&&(r=o)))}),[n,r]},qg=(i,e)=>{let t=0,n=0;if(e.forEach(r=>{let a=r.getValue(i);a!=null&&(a=+a)>=a&&(++t,n+=a)}),t)return n/t},Vg=(i,e)=>{if(!e.length)return;const t=e.map(a=>a.getValue(i));if(!Ig(t))return;if(t.length===1)return t[0];const n=Math.floor(t.length/2),r=t.sort((a,o)=>a-o);return t.length%2!==0?r[n]:(r[n-1]+r[n])/2},Gg=(i,e)=>Array.from(new Set(e.map(t=>t.getValue(i))).values()),$g=(i,e)=>new Set(e.map(t=>t.getValue(i))).size,Ug=(i,e)=>e.length,vo={sum:Xg,min:Yg,max:jg,extent:Wg,mean:qg,median:Vg,unique:Gg,uniqueCount:$g,count:Ug},Zg={getDefaultColumnDef:()=>({aggregatedCell:i=>{var e,t;return(e=(t=i.getValue())==null||t.toString==null?void 0:t.toString())!=null?e:null},aggregationFn:"auto"}),getInitialState:i=>({grouping:[],...i}),getDefaultOptions:i=>({onGroupingChange:Nt("grouping",i),groupedColumnMode:"reorder"}),createColumn:(i,e)=>{i.toggleGrouping=()=>{e.setGrouping(t=>t!=null&&t.includes(i.id)?t.filter(n=>n!==i.id):[...t??[],i.id])},i.getCanGroup=()=>{var t,n;return((t=i.columnDef.enableGrouping)!=null?t:!0)&&((n=e.options.enableGrouping)!=null?n:!0)&&(!!i.accessorFn||!!i.columnDef.getGroupingValue)},i.getIsGrouped=()=>{var t;return(t=e.getState().grouping)==null?void 0:t.includes(i.id)},i.getGroupedIndex=()=>{var t;return(t=e.getState().grouping)==null?void 0:t.indexOf(i.id)},i.getToggleGroupingHandler=()=>{const t=i.getCanGroup();return()=>{t&&i.toggleGrouping()}},i.getAutoAggregationFn=()=>{const t=e.getCoreRowModel().flatRows[0],n=t==null?void 0:t.getValue(i.id);if(typeof n=="number")return vo.sum;if(Object.prototype.toString.call(n)==="[object Date]")return vo.extent},i.getAggregationFn=()=>{var t,n;if(!i)throw new Error;return Ya(i.columnDef.aggregationFn)?i.columnDef.aggregationFn:i.columnDef.aggregationFn==="auto"?i.getAutoAggregationFn():(t=(n=e.options.aggregationFns)==null?void 0:n[i.columnDef.aggregationFn])!=null?t:vo[i.columnDef.aggregationFn]}},createTable:i=>{i.setGrouping=e=>i.options.onGroupingChange==null?void 0:i.options.onGroupingChange(e),i.resetGrouping=e=>{var t,n;i.setGrouping(e?[]:(t=(n=i.initialState)==null?void 0:n.grouping)!=null?t:[])},i.getPreGroupedRowModel=()=>i.getFilteredRowModel(),i.getGroupedRowModel=()=>(!i._getGroupedRowModel&&i.options.getGroupedRowModel&&(i._getGroupedRowModel=i.options.getGroupedRowModel(i)),i.options.manualGrouping||!i._getGroupedRowModel?i.getPreGroupedRowModel():i._getGroupedRowModel())},createRow:(i,e)=>{i.getIsGrouped=()=>!!i.groupingColumnId,i.getGroupingValue=t=>{if(i._groupingValuesCache.hasOwnProperty(t))return i._groupingValuesCache[t];const n=e.getColumn(t);return n!=null&&n.columnDef.getGroupingValue?(i._groupingValuesCache[t]=n.columnDef.getGroupingValue(i.original),i._groupingValuesCache[t]):i.getValue(t)},i._groupingValuesCache={}},createCell:(i,e,t,n)=>{i.getIsGrouped=()=>e.getIsGrouped()&&e.id===t.groupingColumnId,i.getIsPlaceholder=()=>!i.getIsGrouped()&&e.getIsGrouped(),i.getIsAggregated=()=>{var r;return!i.getIsGrouped()&&!i.getIsPlaceholder()&&!!((r=t.subRows)!=null&&r.length)}}};function Kg(i,e,t){if(!(e!=null&&e.length)||!t)return i;const n=i.filter(a=>!e.includes(a.id));return t==="remove"?n:[...e.map(a=>i.find(o=>o.id===a)).filter(Boolean),...n]}const Qg={getInitialState:i=>({columnOrder:[],...i}),getDefaultOptions:i=>({onColumnOrderChange:Nt("columnOrder",i)}),createColumn:(i,e)=>{i.getIndex=xe(t=>[Ki(e,t)],t=>t.findIndex(n=>n.id===i.id),be(e.options,"debugColumns")),i.getIsFirstColumn=t=>{var n;return((n=Ki(e,t)[0])==null?void 0:n.id)===i.id},i.getIsLastColumn=t=>{var n;const r=Ki(e,t);return((n=r[r.length-1])==null?void 0:n.id)===i.id}},createTable:i=>{i.setColumnOrder=e=>i.options.onColumnOrderChange==null?void 0:i.options.onColumnOrderChange(e),i.resetColumnOrder=e=>{var t;i.setColumnOrder(e?[]:(t=i.initialState.columnOrder)!=null?t:[])},i._getOrderColumnsFn=xe(()=>[i.getState().columnOrder,i.getState().grouping,i.options.groupedColumnMode],(e,t,n)=>r=>{let a=[];if(!(e!=null&&e.length))a=r;else{const o=[...e],s=[...r];for(;s.length&&o.length;){const l=o.shift(),h=s.findIndex(u=>u.id===l);h>-1&&a.push(s.splice(h,1)[0])}a=[...a,...s]}return Kg(a,t,n)},be(i.options,"debugTable"))}},mo=()=>({left:[],right:[]}),Jg={getInitialState:i=>({columnPinning:mo(),...i}),getDefaultOptions:i=>({onColumnPinningChange:Nt("columnPinning",i)}),createColumn:(i,e)=>{i.pin=t=>{const n=i.getLeafColumns().map(r=>r.id).filter(Boolean);e.setColumnPinning(r=>{var a,o;if(t==="right"){var s,l;return{left:((s=r==null?void 0:r.left)!=null?s:[]).filter(c=>!(n!=null&&n.includes(c))),right:[...((l=r==null?void 0:r.right)!=null?l:[]).filter(c=>!(n!=null&&n.includes(c))),...n]}}if(t==="left"){var h,u;return{left:[...((h=r==null?void 0:r.left)!=null?h:[]).filter(c=>!(n!=null&&n.includes(c))),...n],right:((u=r==null?void 0:r.right)!=null?u:[]).filter(c=>!(n!=null&&n.includes(c)))}}return{left:((a=r==null?void 0:r.left)!=null?a:[]).filter(c=>!(n!=null&&n.includes(c))),right:((o=r==null?void 0:r.right)!=null?o:[]).filter(c=>!(n!=null&&n.includes(c)))}})},i.getCanPin=()=>i.getLeafColumns().some(n=>{var r,a,o;return((r=n.columnDef.enablePinning)!=null?r:!0)&&((a=(o=e.options.enableColumnPinning)!=null?o:e.options.enablePinning)!=null?a:!0)}),i.getIsPinned=()=>{const t=i.getLeafColumns().map(s=>s.id),{left:n,right:r}=e.getState().columnPinning,a=t.some(s=>n==null?void 0:n.includes(s)),o=t.some(s=>r==null?void 0:r.includes(s));return a?"left":o?"right":!1},i.getPinnedIndex=()=>{var t,n;const r=i.getIsPinned();return r?(t=(n=e.getState().columnPinning)==null||(n=n[r])==null?void 0:n.indexOf(i.id))!=null?t:-1:0}},createRow:(i,e)=>{i.getCenterVisibleCells=xe(()=>[i._getAllVisibleCells(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,r)=>{const a=[...n??[],...r??[]];return t.filter(o=>!a.includes(o.column.id))},be(e.options,"debugRows")),i.getLeftVisibleCells=xe(()=>[i._getAllVisibleCells(),e.getState().columnPinning.left],(t,n)=>(n??[]).map(a=>t.find(o=>o.column.id===a)).filter(Boolean).map(a=>({...a,position:"left"})),be(e.options,"debugRows")),i.getRightVisibleCells=xe(()=>[i._getAllVisibleCells(),e.getState().columnPinning.right],(t,n)=>(n??[]).map(a=>t.find(o=>o.column.id===a)).filter(Boolean).map(a=>({...a,position:"right"})),be(e.options,"debugRows"))},createTable:i=>{i.setColumnPinning=e=>i.options.onColumnPinningChange==null?void 0:i.options.onColumnPinningChange(e),i.resetColumnPinning=e=>{var t,n;return i.setColumnPinning(e?mo():(t=(n=i.initialState)==null?void 0:n.columnPinning)!=null?t:mo())},i.getIsSomeColumnsPinned=e=>{var t;const n=i.getState().columnPinning;if(!e){var r,a;return!!((r=n.left)!=null&&r.length||(a=n.right)!=null&&a.length)}return!!((t=n[e])!=null&&t.length)},i.getLeftLeafColumns=xe(()=>[i.getAllLeafColumns(),i.getState().columnPinning.left],(e,t)=>(t??[]).map(n=>e.find(r=>r.id===n)).filter(Boolean),be(i.options,"debugColumns")),i.getRightLeafColumns=xe(()=>[i.getAllLeafColumns(),i.getState().columnPinning.right],(e,t)=>(t??[]).map(n=>e.find(r=>r.id===n)).filter(Boolean),be(i.options,"debugColumns")),i.getCenterLeafColumns=xe(()=>[i.getAllLeafColumns(),i.getState().columnPinning.left,i.getState().columnPinning.right],(e,t,n)=>{const r=[...t??[],...n??[]];return e.filter(a=>!r.includes(a.id))},be(i.options,"debugColumns"))}};function ep(i){return i||(typeof document<"u"?document:null)}const Ir={size:150,minSize:20,maxSize:Number.MAX_SAFE_INTEGER},yo=()=>({startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]}),tp={getDefaultColumnDef:()=>Ir,getInitialState:i=>({columnSizing:{},columnSizingInfo:yo(),...i}),getDefaultOptions:i=>({columnResizeMode:"onEnd",columnResizeDirection:"ltr",onColumnSizingChange:Nt("columnSizing",i),onColumnSizingInfoChange:Nt("columnSizingInfo",i)}),createColumn:(i,e)=>{i.getSize=()=>{var t,n,r;const a=e.getState().columnSizing[i.id];return Math.min(Math.max((t=i.columnDef.minSize)!=null?t:Ir.minSize,(n=a??i.columnDef.size)!=null?n:Ir.size),(r=i.columnDef.maxSize)!=null?r:Ir.maxSize)},i.getStart=xe(t=>[t,Ki(e,t),e.getState().columnSizing],(t,n)=>n.slice(0,i.getIndex(t)).reduce((r,a)=>r+a.getSize(),0),be(e.options,"debugColumns")),i.getAfter=xe(t=>[t,Ki(e,t),e.getState().columnSizing],(t,n)=>n.slice(i.getIndex(t)+1).reduce((r,a)=>r+a.getSize(),0),be(e.options,"debugColumns")),i.resetSize=()=>{e.setColumnSizing(t=>{let{[i.id]:n,...r}=t;return r})},i.getCanResize=()=>{var t,n;return((t=i.columnDef.enableResizing)!=null?t:!0)&&((n=e.options.enableColumnResizing)!=null?n:!0)},i.getIsResizing=()=>e.getState().columnSizingInfo.isResizingColumn===i.id},createHeader:(i,e)=>{i.getSize=()=>{let t=0;const n=r=>{if(r.subHeaders.length)r.subHeaders.forEach(n);else{var a;t+=(a=r.column.getSize())!=null?a:0}};return n(i),t},i.getStart=()=>{if(i.index>0){const t=i.headerGroup.headers[i.index-1];return t.getStart()+t.getSize()}return 0},i.getResizeHandler=t=>{const n=e.getColumn(i.column.id),r=n==null?void 0:n.getCanResize();return a=>{if(!n||!r||(a.persist==null||a.persist(),xo(a)&&a.touches&&a.touches.length>1))return;const o=i.getSize(),s=i?i.getLeafHeaders().map(v=>[v.column.id,v.column.getSize()]):[[n.id,n.getSize()]],l=xo(a)?Math.round(a.touches[0].clientX):a.clientX,h={},u=(v,y)=>{typeof y=="number"&&(e.setColumnSizingInfo(b=>{var x,w;const k=e.options.columnResizeDirection==="rtl"?-1:1,S=(y-((x=b==null?void 0:b.startOffset)!=null?x:0))*k,A=Math.max(S/((w=b==null?void 0:b.startSize)!=null?w:0),-.999999);return b.columnSizingStart.forEach(O=>{let[_,C]=O;h[_]=Math.round(Math.max(C+C*A,0)*100)/100}),{...b,deltaOffset:S,deltaPercentage:A}}),(e.options.columnResizeMode==="onChange"||v==="end")&&e.setColumnSizing(b=>({...b,...h})))},c=v=>u("move",v),f=v=>{u("end",v),e.setColumnSizingInfo(y=>({...y,isResizingColumn:!1,startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,columnSizingStart:[]}))},d=ep(t),p={moveHandler:v=>c(v.clientX),upHandler:v=>{d==null||d.removeEventListener("mousemove",p.moveHandler),d==null||d.removeEventListener("mouseup",p.upHandler),f(v.clientX)}},g={moveHandler:v=>(v.cancelable&&(v.preventDefault(),v.stopPropagation()),c(v.touches[0].clientX),!1),upHandler:v=>{var y;d==null||d.removeEventListener("touchmove",g.moveHandler),d==null||d.removeEventListener("touchend",g.upHandler),v.cancelable&&(v.preventDefault(),v.stopPropagation()),f((y=v.touches[0])==null?void 0:y.clientX)}},m=np()?{passive:!1}:!1;xo(a)?(d==null||d.addEventListener("touchmove",g.moveHandler,m),d==null||d.addEventListener("touchend",g.upHandler,m)):(d==null||d.addEventListener("mousemove",p.moveHandler,m),d==null||d.addEventListener("mouseup",p.upHandler,m)),e.setColumnSizingInfo(v=>({...v,startOffset:l,startSize:o,deltaOffset:0,deltaPercentage:0,columnSizingStart:s,isResizingColumn:n.id}))}}},createTable:i=>{i.setColumnSizing=e=>i.options.onColumnSizingChange==null?void 0:i.options.onColumnSizingChange(e),i.setColumnSizingInfo=e=>i.options.onColumnSizingInfoChange==null?void 0:i.options.onColumnSizingInfoChange(e),i.resetColumnSizing=e=>{var t;i.setColumnSizing(e?{}:(t=i.initialState.columnSizing)!=null?t:{})},i.resetHeaderSizeInfo=e=>{var t;i.setColumnSizingInfo(e?yo():(t=i.initialState.columnSizingInfo)!=null?t:yo())},i.getTotalSize=()=>{var e,t;return(e=(t=i.getHeaderGroups()[0])==null?void 0:t.headers.reduce((n,r)=>n+r.getSize(),0))!=null?e:0},i.getLeftTotalSize=()=>{var e,t;return(e=(t=i.getLeftHeaderGroups()[0])==null?void 0:t.headers.reduce((n,r)=>n+r.getSize(),0))!=null?e:0},i.getCenterTotalSize=()=>{var e,t;return(e=(t=i.getCenterHeaderGroups()[0])==null?void 0:t.headers.reduce((n,r)=>n+r.getSize(),0))!=null?e:0},i.getRightTotalSize=()=>{var e,t;return(e=(t=i.getRightHeaderGroups()[0])==null?void 0:t.headers.reduce((n,r)=>n+r.getSize(),0))!=null?e:0}}};let Nr=null;function np(){if(typeof Nr=="boolean")return Nr;let i=!1;try{const e={get passive(){return i=!0,!1}},t=()=>{};window.addEventListener("test",t,e),window.removeEventListener("test",t)}catch{i=!1}return Nr=i,Nr}function xo(i){return i.type==="touchstart"}const ip={getInitialState:i=>({columnVisibility:{},...i}),getDefaultOptions:i=>({onColumnVisibilityChange:Nt("columnVisibility",i)}),createColumn:(i,e)=>{i.toggleVisibility=t=>{i.getCanHide()&&e.setColumnVisibility(n=>({...n,[i.id]:t??!i.getIsVisible()}))},i.getIsVisible=()=>{var t,n;const r=i.columns;return(t=r.length?r.some(a=>a.getIsVisible()):(n=e.getState().columnVisibility)==null?void 0:n[i.id])!=null?t:!0},i.getCanHide=()=>{var t,n;return((t=i.columnDef.enableHiding)!=null?t:!0)&&((n=e.options.enableHiding)!=null?n:!0)},i.getToggleVisibilityHandler=()=>t=>{i.toggleVisibility==null||i.toggleVisibility(t.target.checked)}},createRow:(i,e)=>{i._getAllVisibleCells=xe(()=>[i.getAllCells(),e.getState().columnVisibility],t=>t.filter(n=>n.column.getIsVisible()),be(e.options,"debugRows")),i.getVisibleCells=xe(()=>[i.getLeftVisibleCells(),i.getCenterVisibleCells(),i.getRightVisibleCells()],(t,n,r)=>[...t,...n,...r],be(e.options,"debugRows"))},createTable:i=>{const e=(t,n)=>xe(()=>[n(),n().filter(r=>r.getIsVisible()).map(r=>r.id).join("_")],r=>r.filter(a=>a.getIsVisible==null?void 0:a.getIsVisible()),be(i.options,"debugColumns"));i.getVisibleFlatColumns=e("getVisibleFlatColumns",()=>i.getAllFlatColumns()),i.getVisibleLeafColumns=e("getVisibleLeafColumns",()=>i.getAllLeafColumns()),i.getLeftVisibleLeafColumns=e("getLeftVisibleLeafColumns",()=>i.getLeftLeafColumns()),i.getRightVisibleLeafColumns=e("getRightVisibleLeafColumns",()=>i.getRightLeafColumns()),i.getCenterVisibleLeafColumns=e("getCenterVisibleLeafColumns",()=>i.getCenterLeafColumns()),i.setColumnVisibility=t=>i.options.onColumnVisibilityChange==null?void 0:i.options.onColumnVisibilityChange(t),i.resetColumnVisibility=t=>{var n;i.setColumnVisibility(t?{}:(n=i.initialState.columnVisibility)!=null?n:{})},i.toggleAllColumnsVisible=t=>{var n;t=(n=t)!=null?n:!i.getIsAllColumnsVisible(),i.setColumnVisibility(i.getAllLeafColumns().reduce((r,a)=>({...r,[a.id]:t||!(a.getCanHide!=null&&a.getCanHide())}),{}))},i.getIsAllColumnsVisible=()=>!i.getAllLeafColumns().some(t=>!(t.getIsVisible!=null&&t.getIsVisible())),i.getIsSomeColumnsVisible=()=>i.getAllLeafColumns().some(t=>t.getIsVisible==null?void 0:t.getIsVisible()),i.getToggleAllColumnsVisibilityHandler=()=>t=>{var n;i.toggleAllColumnsVisible((n=t.target)==null?void 0:n.checked)}}};function Ki(i,e){return e?e==="center"?i.getCenterVisibleLeafColumns():e==="left"?i.getLeftVisibleLeafColumns():i.getRightVisibleLeafColumns():i.getVisibleLeafColumns()}const rp={createTable:i=>{i._getGlobalFacetedRowModel=i.options.getFacetedRowModel&&i.options.getFacetedRowModel(i,"__global__"),i.getGlobalFacetedRowModel=()=>i.options.manualFiltering||!i._getGlobalFacetedRowModel?i.getPreFilteredRowModel():i._getGlobalFacetedRowModel(),i._getGlobalFacetedUniqueValues=i.options.getFacetedUniqueValues&&i.options.getFacetedUniqueValues(i,"__global__"),i.getGlobalFacetedUniqueValues=()=>i._getGlobalFacetedUniqueValues?i._getGlobalFacetedUniqueValues():new Map,i._getGlobalFacetedMinMaxValues=i.options.getFacetedMinMaxValues&&i.options.getFacetedMinMaxValues(i,"__global__"),i.getGlobalFacetedMinMaxValues=()=>{if(i._getGlobalFacetedMinMaxValues)return i._getGlobalFacetedMinMaxValues()}}},ap={getInitialState:i=>({globalFilter:void 0,...i}),getDefaultOptions:i=>({onGlobalFilterChange:Nt("globalFilter",i),globalFilterFn:"auto",getColumnCanGlobalFilter:e=>{var t;const n=(t=i.getCoreRowModel().flatRows[0])==null||(t=t._getAllCellsByColumnId()[e.id])==null?void 0:t.getValue();return typeof n=="string"||typeof n=="number"}}),createColumn:(i,e)=>{i.getCanGlobalFilter=()=>{var t,n,r,a;return((t=i.columnDef.enableGlobalFilter)!=null?t:!0)&&((n=e.options.enableGlobalFilter)!=null?n:!0)&&((r=e.options.enableFilters)!=null?r:!0)&&((a=e.options.getColumnCanGlobalFilter==null?void 0:e.options.getColumnCanGlobalFilter(i))!=null?a:!0)&&!!i.accessorFn}},createTable:i=>{i.getGlobalAutoFilterFn=()=>fn.includesString,i.getGlobalFilterFn=()=>{var e,t;const{globalFilterFn:n}=i.options;return Ya(n)?n:n==="auto"?i.getGlobalAutoFilterFn():(e=(t=i.options.filterFns)==null?void 0:t[n])!=null?e:fn[n]},i.setGlobalFilter=e=>{i.options.onGlobalFilterChange==null||i.options.onGlobalFilterChange(e)},i.resetGlobalFilter=e=>{i.setGlobalFilter(e?void 0:i.initialState.globalFilter)}}},op={getInitialState:i=>({expanded:{},...i}),getDefaultOptions:i=>({onExpandedChange:Nt("expanded",i),paginateExpandedRows:!0}),createTable:i=>{let e=!1,t=!1;i._autoResetExpanded=()=>{var n,r;if(!e){i._queue(()=>{e=!0});return}if((n=(r=i.options.autoResetAll)!=null?r:i.options.autoResetExpanded)!=null?n:!i.options.manualExpanding){if(t)return;t=!0,i._queue(()=>{i.resetExpanded(),t=!1})}},i.setExpanded=n=>i.options.onExpandedChange==null?void 0:i.options.onExpandedChange(n),i.toggleAllRowsExpanded=n=>{n??!i.getIsAllRowsExpanded()?i.setExpanded(!0):i.setExpanded({})},i.resetExpanded=n=>{var r,a;i.setExpanded(n?{}:(r=(a=i.initialState)==null?void 0:a.expanded)!=null?r:{})},i.getCanSomeRowsExpand=()=>i.getPrePaginationRowModel().flatRows.some(n=>n.getCanExpand()),i.getToggleAllRowsExpandedHandler=()=>n=>{n.persist==null||n.persist(),i.toggleAllRowsExpanded()},i.getIsSomeRowsExpanded=()=>{const n=i.getState().expanded;return n===!0||Object.values(n).some(Boolean)},i.getIsAllRowsExpanded=()=>{const n=i.getState().expanded;return typeof n=="boolean"?n===!0:!(!Object.keys(n).length||i.getRowModel().flatRows.some(r=>!r.getIsExpanded()))},i.getExpandedDepth=()=>{let n=0;return(i.getState().expanded===!0?Object.keys(i.getRowModel().rowsById):Object.keys(i.getState().expanded)).forEach(a=>{const o=a.split(".");n=Math.max(n,o.length)}),n},i.getPreExpandedRowModel=()=>i.getSortedRowModel(),i.getExpandedRowModel=()=>(!i._getExpandedRowModel&&i.options.getExpandedRowModel&&(i._getExpandedRowModel=i.options.getExpandedRowModel(i)),i.options.manualExpanding||!i._getExpandedRowModel?i.getPreExpandedRowModel():i._getExpandedRowModel())},createRow:(i,e)=>{i.toggleExpanded=t=>{e.setExpanded(n=>{var r;const a=n===!0?!0:!!(n!=null&&n[i.id]);let o={};if(n===!0?Object.keys(e.getRowModel().rowsById).forEach(s=>{o[s]=!0}):o=n,t=(r=t)!=null?r:!a,!a&&t)return{...o,[i.id]:!0};if(a&&!t){const{[i.id]:s,...l}=o;return l}return n})},i.getIsExpanded=()=>{var t;const n=e.getState().expanded;return!!((t=e.options.getIsRowExpanded==null?void 0:e.options.getIsRowExpanded(i))!=null?t:n===!0||n!=null&&n[i.id])},i.getCanExpand=()=>{var t,n,r;return(t=e.options.getRowCanExpand==null?void 0:e.options.getRowCanExpand(i))!=null?t:((n=e.options.enableExpanding)!=null?n:!0)&&!!((r=i.subRows)!=null&&r.length)},i.getIsAllParentsExpanded=()=>{let t=!0,n=i;for(;t&&n.parentId;)n=e.getRow(n.parentId,!0),t=n.getIsExpanded();return t},i.getToggleExpandedHandler=()=>{const t=i.getCanExpand();return()=>{t&&i.toggleExpanded()}}}},Ko=0,Qo=10,bo=()=>({pageIndex:Ko,pageSize:Qo}),sp={getInitialState:i=>({...i,pagination:{...bo(),...i==null?void 0:i.pagination}}),getDefaultOptions:i=>({onPaginationChange:Nt("pagination",i)}),createTable:i=>{let e=!1,t=!1;i._autoResetPageIndex=()=>{var n,r;if(!e){i._queue(()=>{e=!0});return}if((n=(r=i.options.autoResetAll)!=null?r:i.options.autoResetPageIndex)!=null?n:!i.options.manualPagination){if(t)return;t=!0,i._queue(()=>{i.resetPageIndex(),t=!1})}},i.setPagination=n=>{const r=a=>Cn(n,a);return i.options.onPaginationChange==null?void 0:i.options.onPaginationChange(r)},i.resetPagination=n=>{var r;i.setPagination(n?bo():(r=i.initialState.pagination)!=null?r:bo())},i.setPageIndex=n=>{i.setPagination(r=>{let a=Cn(n,r.pageIndex);const o=typeof i.options.pageCount>"u"||i.options.pageCount===-1?Number.MAX_SAFE_INTEGER:i.options.pageCount-1;return a=Math.max(0,Math.min(a,o)),{...r,pageIndex:a}})},i.resetPageIndex=n=>{var r,a;i.setPageIndex(n?Ko:(r=(a=i.initialState)==null||(a=a.pagination)==null?void 0:a.pageIndex)!=null?r:Ko)},i.resetPageSize=n=>{var r,a;i.setPageSize(n?Qo:(r=(a=i.initialState)==null||(a=a.pagination)==null?void 0:a.pageSize)!=null?r:Qo)},i.setPageSize=n=>{i.setPagination(r=>{const a=Math.max(1,Cn(n,r.pageSize)),o=r.pageSize*r.pageIndex,s=Math.floor(o/a);return{...r,pageIndex:s,pageSize:a}})},i.setPageCount=n=>i.setPagination(r=>{var a;let o=Cn(n,(a=i.options.pageCount)!=null?a:-1);return typeof o=="number"&&(o=Math.max(-1,o)),{...r,pageCount:o}}),i.getPageOptions=xe(()=>[i.getPageCount()],n=>{let r=[];return n&&n>0&&(r=[...new Array(n)].fill(null).map((a,o)=>o)),r},be(i.options,"debugTable")),i.getCanPreviousPage=()=>i.getState().pagination.pageIndex>0,i.getCanNextPage=()=>{const{pageIndex:n}=i.getState().pagination,r=i.getPageCount();return r===-1?!0:r===0?!1:n<r-1},i.previousPage=()=>i.setPageIndex(n=>n-1),i.nextPage=()=>i.setPageIndex(n=>n+1),i.firstPage=()=>i.setPageIndex(0),i.lastPage=()=>i.setPageIndex(i.getPageCount()-1),i.getPrePaginationRowModel=()=>i.getExpandedRowModel(),i.getPaginationRowModel=()=>(!i._getPaginationRowModel&&i.options.getPaginationRowModel&&(i._getPaginationRowModel=i.options.getPaginationRowModel(i)),i.options.manualPagination||!i._getPaginationRowModel?i.getPrePaginationRowModel():i._getPaginationRowModel()),i.getPageCount=()=>{var n;return(n=i.options.pageCount)!=null?n:Math.ceil(i.getRowCount()/i.getState().pagination.pageSize)},i.getRowCount=()=>{var n;return(n=i.options.rowCount)!=null?n:i.getPrePaginationRowModel().rows.length}}},wo=()=>({top:[],bottom:[]}),lp={getInitialState:i=>({rowPinning:wo(),...i}),getDefaultOptions:i=>({onRowPinningChange:Nt("rowPinning",i)}),createRow:(i,e)=>{i.pin=(t,n,r)=>{const a=n?i.getLeafRows().map(l=>{let{id:h}=l;return h}):[],o=r?i.getParentRows().map(l=>{let{id:h}=l;return h}):[],s=new Set([...o,i.id,...a]);e.setRowPinning(l=>{var h,u;if(t==="bottom"){var c,f;return{top:((c=l==null?void 0:l.top)!=null?c:[]).filter(g=>!(s!=null&&s.has(g))),bottom:[...((f=l==null?void 0:l.bottom)!=null?f:[]).filter(g=>!(s!=null&&s.has(g))),...Array.from(s)]}}if(t==="top"){var d,p;return{top:[...((d=l==null?void 0:l.top)!=null?d:[]).filter(g=>!(s!=null&&s.has(g))),...Array.from(s)],bottom:((p=l==null?void 0:l.bottom)!=null?p:[]).filter(g=>!(s!=null&&s.has(g)))}}return{top:((h=l==null?void 0:l.top)!=null?h:[]).filter(g=>!(s!=null&&s.has(g))),bottom:((u=l==null?void 0:l.bottom)!=null?u:[]).filter(g=>!(s!=null&&s.has(g)))}})},i.getCanPin=()=>{var t;const{enableRowPinning:n,enablePinning:r}=e.options;return typeof n=="function"?n(i):(t=n??r)!=null?t:!0},i.getIsPinned=()=>{const t=[i.id],{top:n,bottom:r}=e.getState().rowPinning,a=t.some(s=>n==null?void 0:n.includes(s)),o=t.some(s=>r==null?void 0:r.includes(s));return a?"top":o?"bottom":!1},i.getPinnedIndex=()=>{var t,n;const r=i.getIsPinned();if(!r)return-1;const a=(t=r==="top"?e.getTopRows():e.getBottomRows())==null?void 0:t.map(o=>{let{id:s}=o;return s});return(n=a==null?void 0:a.indexOf(i.id))!=null?n:-1}},createTable:i=>{i.setRowPinning=e=>i.options.onRowPinningChange==null?void 0:i.options.onRowPinningChange(e),i.resetRowPinning=e=>{var t,n;return i.setRowPinning(e?wo():(t=(n=i.initialState)==null?void 0:n.rowPinning)!=null?t:wo())},i.getIsSomeRowsPinned=e=>{var t;const n=i.getState().rowPinning;if(!e){var r,a;return!!((r=n.top)!=null&&r.length||(a=n.bottom)!=null&&a.length)}return!!((t=n[e])!=null&&t.length)},i._getPinnedRows=(e,t,n)=>{var r;return((r=i.options.keepPinnedRows)==null||r?(t??[]).map(o=>{const s=i.getRow(o,!0);return s.getIsAllParentsExpanded()?s:null}):(t??[]).map(o=>e.find(s=>s.id===o))).filter(Boolean).map(o=>({...o,position:n}))},i.getTopRows=xe(()=>[i.getRowModel().rows,i.getState().rowPinning.top],(e,t)=>i._getPinnedRows(e,t,"top"),be(i.options,"debugRows")),i.getBottomRows=xe(()=>[i.getRowModel().rows,i.getState().rowPinning.bottom],(e,t)=>i._getPinnedRows(e,t,"bottom"),be(i.options,"debugRows")),i.getCenterRows=xe(()=>[i.getRowModel().rows,i.getState().rowPinning.top,i.getState().rowPinning.bottom],(e,t,n)=>{const r=new Set([...t??[],...n??[]]);return e.filter(a=>!r.has(a.id))},be(i.options,"debugRows"))}},up={getInitialState:i=>({rowSelection:{},...i}),getDefaultOptions:i=>({onRowSelectionChange:Nt("rowSelection",i),enableRowSelection:!0,enableMultiRowSelection:!0,enableSubRowSelection:!0}),createTable:i=>{i.setRowSelection=e=>i.options.onRowSelectionChange==null?void 0:i.options.onRowSelectionChange(e),i.resetRowSelection=e=>{var t;return i.setRowSelection(e?{}:(t=i.initialState.rowSelection)!=null?t:{})},i.toggleAllRowsSelected=e=>{i.setRowSelection(t=>{e=typeof e<"u"?e:!i.getIsAllRowsSelected();const n={...t},r=i.getPreGroupedRowModel().flatRows;return e?r.forEach(a=>{a.getCanSelect()&&(n[a.id]=!0)}):r.forEach(a=>{delete n[a.id]}),n})},i.toggleAllPageRowsSelected=e=>i.setRowSelection(t=>{const n=typeof e<"u"?e:!i.getIsAllPageRowsSelected(),r={...t};return i.getRowModel().rows.forEach(a=>{Jo(r,a.id,n,!0,i)}),r}),i.getPreSelectedRowModel=()=>i.getCoreRowModel(),i.getSelectedRowModel=xe(()=>[i.getState().rowSelection,i.getCoreRowModel()],(e,t)=>Object.keys(e).length?So(i,t):{rows:[],flatRows:[],rowsById:{}},be(i.options,"debugTable")),i.getFilteredSelectedRowModel=xe(()=>[i.getState().rowSelection,i.getFilteredRowModel()],(e,t)=>Object.keys(e).length?So(i,t):{rows:[],flatRows:[],rowsById:{}},be(i.options,"debugTable")),i.getGroupedSelectedRowModel=xe(()=>[i.getState().rowSelection,i.getSortedRowModel()],(e,t)=>Object.keys(e).length?So(i,t):{rows:[],flatRows:[],rowsById:{}},be(i.options,"debugTable")),i.getIsAllRowsSelected=()=>{const e=i.getFilteredRowModel().flatRows,{rowSelection:t}=i.getState();let n=!!(e.length&&Object.keys(t).length);return n&&e.some(r=>r.getCanSelect()&&!t[r.id])&&(n=!1),n},i.getIsAllPageRowsSelected=()=>{const e=i.getPaginationRowModel().flatRows.filter(r=>r.getCanSelect()),{rowSelection:t}=i.getState();let n=!!e.length;return n&&e.some(r=>!t[r.id])&&(n=!1),n},i.getIsSomeRowsSelected=()=>{var e;const t=Object.keys((e=i.getState().rowSelection)!=null?e:{}).length;return t>0&&t<i.getFilteredRowModel().flatRows.length},i.getIsSomePageRowsSelected=()=>{const e=i.getPaginationRowModel().flatRows;return i.getIsAllPageRowsSelected()?!1:e.filter(t=>t.getCanSelect()).some(t=>t.getIsSelected()||t.getIsSomeSelected())},i.getToggleAllRowsSelectedHandler=()=>e=>{i.toggleAllRowsSelected(e.target.checked)},i.getToggleAllPageRowsSelectedHandler=()=>e=>{i.toggleAllPageRowsSelected(e.target.checked)}},createRow:(i,e)=>{i.toggleSelected=(t,n)=>{const r=i.getIsSelected();e.setRowSelection(a=>{var o;if(t=typeof t<"u"?t:!r,i.getCanSelect()&&r===t)return a;const s={...a};return Jo(s,i.id,t,(o=n==null?void 0:n.selectChildren)!=null?o:!0,e),s})},i.getIsSelected=()=>{const{rowSelection:t}=e.getState();return Js(i,t)},i.getIsSomeSelected=()=>{const{rowSelection:t}=e.getState();return es(i,t)==="some"},i.getIsAllSubRowsSelected=()=>{const{rowSelection:t}=e.getState();return es(i,t)==="all"},i.getCanSelect=()=>{var t;return typeof e.options.enableRowSelection=="function"?e.options.enableRowSelection(i):(t=e.options.enableRowSelection)!=null?t:!0},i.getCanSelectSubRows=()=>{var t;return typeof e.options.enableSubRowSelection=="function"?e.options.enableSubRowSelection(i):(t=e.options.enableSubRowSelection)!=null?t:!0},i.getCanMultiSelect=()=>{var t;return typeof e.options.enableMultiRowSelection=="function"?e.options.enableMultiRowSelection(i):(t=e.options.enableMultiRowSelection)!=null?t:!0},i.getToggleSelectedHandler=()=>{const t=i.getCanSelect();return n=>{var r;t&&i.toggleSelected((r=n.target)==null?void 0:r.checked)}}}},Jo=(i,e,t,n,r)=>{var a;const o=r.getRow(e,!0);t?(o.getCanMultiSelect()||Object.keys(i).forEach(s=>delete i[s]),o.getCanSelect()&&(i[e]=!0)):delete i[e],n&&(a=o.subRows)!=null&&a.length&&o.getCanSelectSubRows()&&o.subRows.forEach(s=>Jo(i,s.id,t,n,r))};function So(i,e){const t=i.getState().rowSelection,n=[],r={},a=function(o,s){return o.map(l=>{var h;const u=Js(l,t);if(u&&(n.push(l),r[l.id]=l),(h=l.subRows)!=null&&h.length&&(l={...l,subRows:a(l.subRows)}),u)return l}).filter(Boolean)};return{rows:a(e.rows),flatRows:n,rowsById:r}}function Js(i,e){var t;return(t=e[i.id])!=null?t:!1}function es(i,e,t){var n;if(!((n=i.subRows)!=null&&n.length))return!1;let r=!0,a=!1;return i.subRows.forEach(o=>{if(!(a&&!r)&&(o.getCanSelect()&&(Js(o,e)?a=!0:r=!1),o.subRows&&o.subRows.length)){const s=es(o,e);s==="all"?a=!0:(s==="some"&&(a=!0),r=!1)}}),r?"all":a?"some":!1}const ts=/([0-9]+)/gm,cp=(i,e,t)=>bh(Pn(i.getValue(t)).toLowerCase(),Pn(e.getValue(t)).toLowerCase()),hp=(i,e,t)=>bh(Pn(i.getValue(t)),Pn(e.getValue(t))),fp=(i,e,t)=>el(Pn(i.getValue(t)).toLowerCase(),Pn(e.getValue(t)).toLowerCase()),dp=(i,e,t)=>el(Pn(i.getValue(t)),Pn(e.getValue(t))),gp=(i,e,t)=>{const n=i.getValue(t),r=e.getValue(t);return n>r?1:n<r?-1:0},pp=(i,e,t)=>el(i.getValue(t),e.getValue(t));function el(i,e){return i===e?0:i>e?1:-1}function Pn(i){return typeof i=="number"?isNaN(i)||i===1/0||i===-1/0?"":String(i):typeof i=="string"?i:""}function bh(i,e){const t=i.split(ts).filter(Boolean),n=e.split(ts).filter(Boolean);for(;t.length&&n.length;){const r=t.shift(),a=n.shift(),o=parseInt(r,10),s=parseInt(a,10),l=[o,s].sort();if(isNaN(l[0])){if(r>a)return 1;if(a>r)return-1;continue}if(isNaN(l[1]))return isNaN(o)?-1:1;if(o>s)return 1;if(s>o)return-1}return t.length-n.length}const Fi={alphanumeric:cp,alphanumericCaseSensitive:hp,text:fp,textCaseSensitive:dp,datetime:gp,basic:pp},vp={getInitialState:i=>({sorting:[],...i}),getDefaultColumnDef:()=>({sortingFn:"auto",sortUndefined:1}),getDefaultOptions:i=>({onSortingChange:Nt("sorting",i),isMultiSortEvent:e=>e.shiftKey}),createColumn:(i,e)=>{i.getAutoSortingFn=()=>{const t=e.getFilteredRowModel().flatRows.slice(10);let n=!1;for(const r of t){const a=r==null?void 0:r.getValue(i.id);if(Object.prototype.toString.call(a)==="[object Date]")return Fi.datetime;if(typeof a=="string"&&(n=!0,a.split(ts).length>1))return Fi.alphanumeric}return n?Fi.text:Fi.basic},i.getAutoSortDir=()=>{const t=e.getFilteredRowModel().flatRows[0];return typeof(t==null?void 0:t.getValue(i.id))=="string"?"asc":"desc"},i.getSortingFn=()=>{var t,n;if(!i)throw new Error;return Ya(i.columnDef.sortingFn)?i.columnDef.sortingFn:i.columnDef.sortingFn==="auto"?i.getAutoSortingFn():(t=(n=e.options.sortingFns)==null?void 0:n[i.columnDef.sortingFn])!=null?t:Fi[i.columnDef.sortingFn]},i.toggleSorting=(t,n)=>{const r=i.getNextSortingOrder(),a=typeof t<"u"&&t!==null;e.setSorting(o=>{const s=o==null?void 0:o.find(d=>d.id===i.id),l=o==null?void 0:o.findIndex(d=>d.id===i.id);let h=[],u,c=a?t:r==="desc";if(o!=null&&o.length&&i.getCanMultiSort()&&n?s?u="toggle":u="add":o!=null&&o.length&&l!==o.length-1?u="replace":s?u="toggle":u="replace",u==="toggle"&&(a||r||(u="remove")),u==="add"){var f;h=[...o,{id:i.id,desc:c}],h.splice(0,h.length-((f=e.options.maxMultiSortColCount)!=null?f:Number.MAX_SAFE_INTEGER))}else u==="toggle"?h=o.map(d=>d.id===i.id?{...d,desc:c}:d):u==="remove"?h=o.filter(d=>d.id!==i.id):h=[{id:i.id,desc:c}];return h})},i.getFirstSortDir=()=>{var t,n;return((t=(n=i.columnDef.sortDescFirst)!=null?n:e.options.sortDescFirst)!=null?t:i.getAutoSortDir()==="desc")?"desc":"asc"},i.getNextSortingOrder=t=>{var n,r;const a=i.getFirstSortDir(),o=i.getIsSorted();return o?o!==a&&((n=e.options.enableSortingRemoval)==null||n)&&(!(t&&(r=e.options.enableMultiRemove)!=null)||r)?!1:o==="desc"?"asc":"desc":a},i.getCanSort=()=>{var t,n;return((t=i.columnDef.enableSorting)!=null?t:!0)&&((n=e.options.enableSorting)!=null?n:!0)&&!!i.accessorFn},i.getCanMultiSort=()=>{var t,n;return(t=(n=i.columnDef.enableMultiSort)!=null?n:e.options.enableMultiSort)!=null?t:!!i.accessorFn},i.getIsSorted=()=>{var t;const n=(t=e.getState().sorting)==null?void 0:t.find(r=>r.id===i.id);return n?n.desc?"desc":"asc":!1},i.getSortIndex=()=>{var t,n;return(t=(n=e.getState().sorting)==null?void 0:n.findIndex(r=>r.id===i.id))!=null?t:-1},i.clearSorting=()=>{e.setSorting(t=>t!=null&&t.length?t.filter(n=>n.id!==i.id):[])},i.getToggleSortingHandler=()=>{const t=i.getCanSort();return n=>{t&&(n.persist==null||n.persist(),i.toggleSorting==null||i.toggleSorting(void 0,i.getCanMultiSort()?e.options.isMultiSortEvent==null?void 0:e.options.isMultiSortEvent(n):!1))}}},createTable:i=>{i.setSorting=e=>i.options.onSortingChange==null?void 0:i.options.onSortingChange(e),i.resetSorting=e=>{var t,n;i.setSorting(e?[]:(t=(n=i.initialState)==null?void 0:n.sorting)!=null?t:[])},i.getPreSortedRowModel=()=>i.getGroupedRowModel(),i.getSortedRowModel=()=>(!i._getSortedRowModel&&i.options.getSortedRowModel&&(i._getSortedRowModel=i.options.getSortedRowModel(i)),i.options.manualSorting||!i._getSortedRowModel?i.getPreSortedRowModel():i._getSortedRowModel())}},mp=[Dg,ip,Qg,Jg,Hg,Bg,rp,ap,vp,Zg,op,sp,lp,up,tp];function yp(i){var e,t;const n=[...mp,...(e=i._features)!=null?e:[]];let r={_features:n};const a=r._features.reduce((f,d)=>Object.assign(f,d.getDefaultOptions==null?void 0:d.getDefaultOptions(r)),{}),o=f=>r.options.mergeOptions?r.options.mergeOptions(a,f):{...a,...f};let l={...{},...(t=i.initialState)!=null?t:{}};r._features.forEach(f=>{var d;l=(d=f.getInitialState==null?void 0:f.getInitialState(l))!=null?d:l});const h=[];let u=!1;const c={_features:n,options:{...a,...i},initialState:l,_queue:f=>{h.push(f),u||(u=!0,Promise.resolve().then(()=>{for(;h.length;)h.shift()();u=!1}).catch(d=>setTimeout(()=>{throw d})))},reset:()=>{r.setState(r.initialState)},setOptions:f=>{const d=Cn(f,r.options);r.options=o(d)},getState:()=>r.options.state,setState:f=>{r.options.onStateChange==null||r.options.onStateChange(f)},_getRowId:(f,d,p)=>{var g;return(g=r.options.getRowId==null?void 0:r.options.getRowId(f,d,p))!=null?g:`${p?[p.id,d].join("."):d}`},getCoreRowModel:()=>(r._getCoreRowModel||(r._getCoreRowModel=r.options.getCoreRowModel(r)),r._getCoreRowModel()),getRowModel:()=>r.getPaginationRowModel(),getRow:(f,d)=>{let p=(d?r.getPrePaginationRowModel():r.getRowModel()).rowsById[f];if(!p&&(p=r.getCoreRowModel().rowsById[f],!p))throw new Error;return p},_getDefaultColumnDef:xe(()=>[r.options.defaultColumn],f=>{var d;return f=(d=f)!=null?d:{},{header:p=>{const g=p.header.column.columnDef;return g.accessorKey?g.accessorKey:g.accessorFn?g.id:null},cell:p=>{var g,m;return(g=(m=p.renderValue())==null||m.toString==null?void 0:m.toString())!=null?g:null},...r._features.reduce((p,g)=>Object.assign(p,g.getDefaultColumnDef==null?void 0:g.getDefaultColumnDef()),{}),...f}},be(i,"debugColumns")),_getColumnDefs:()=>r.options.columns,getAllColumns:xe(()=>[r._getColumnDefs()],f=>{const d=function(p,g,m){return m===void 0&&(m=0),p.map(v=>{const y=zg(r,v,m,g),b=v;return y.columns=b.columns?d(b.columns,y,m+1):[],y})};return d(f)},be(i,"debugColumns")),getAllFlatColumns:xe(()=>[r.getAllColumns()],f=>f.flatMap(d=>d.getFlatColumns()),be(i,"debugColumns")),_getAllFlatColumnsById:xe(()=>[r.getAllFlatColumns()],f=>f.reduce((d,p)=>(d[p.id]=p,d),{}),be(i,"debugColumns")),getAllLeafColumns:xe(()=>[r.getAllColumns(),r._getOrderColumnsFn()],(f,d)=>{let p=f.flatMap(g=>g.getLeafColumns());return d(p)},be(i,"debugColumns")),getColumn:f=>r._getAllFlatColumnsById()[f]};Object.assign(r,c);for(let f=0;f<r._features.length;f++){const d=r._features[f];d==null||d.createTable==null||d.createTable(r)}return r}function xp(){return i=>xe(()=>[i.options.data],e=>{const t={rows:[],flatRows:[],rowsById:{}},n=function(r,a,o){a===void 0&&(a=0);const s=[];for(let h=0;h<r.length;h++){const u=Ks(i,i._getRowId(r[h],h,o),r[h],h,a,void 0,o==null?void 0:o.id);if(t.flatRows.push(u),t.rowsById[u.id]=u,s.push(u),i.options.getSubRows){var l;u.originalSubRows=i.options.getSubRows(r[h],h),(l=u.originalSubRows)!=null&&l.length&&(u.subRows=n(u.originalSubRows,a+1,u))}}return s};return t.rows=n(e),t},be(i.options,"debugTable","getRowModel",()=>i._autoResetPageIndex()))}function bp(i){const e=[],t=n=>{var r;e.push(n),(r=n.subRows)!=null&&r.length&&n.getIsExpanded()&&n.subRows.forEach(t)};return i.rows.forEach(t),{rows:e,flatRows:i.flatRows,rowsById:i.rowsById}}function wp(i,e,t){return t.options.filterFromLeafRows?Sp(i,e,t):kp(i,e,t)}function Sp(i,e,t){var n;const r=[],a={},o=(n=t.options.maxLeafRowFilterDepth)!=null?n:100,s=function(l,h){h===void 0&&(h=0);const u=[];for(let f=0;f<l.length;f++){var c;let d=l[f];const p=Ks(t,d.id,d.original,d.index,d.depth,void 0,d.parentId);if(p.columnFilters=d.columnFilters,(c=d.subRows)!=null&&c.length&&h<o){if(p.subRows=s(d.subRows,h+1),d=p,e(d)&&!p.subRows.length){u.push(d),a[d.id]=d,r.push(d);continue}if(e(d)||p.subRows.length){u.push(d),a[d.id]=d,r.push(d);continue}}else d=p,e(d)&&(u.push(d),a[d.id]=d,r.push(d))}return u};return{rows:s(i),flatRows:r,rowsById:a}}function kp(i,e,t){var n;const r=[],a={},o=(n=t.options.maxLeafRowFilterDepth)!=null?n:100,s=function(l,h){h===void 0&&(h=0);const u=[];for(let f=0;f<l.length;f++){let d=l[f];if(e(d)){var c;if((c=d.subRows)!=null&&c.length&&h<o){const g=Ks(t,d.id,d.original,d.index,d.depth,void 0,d.parentId);g.subRows=s(d.subRows,h+1),d=g}u.push(d),r.push(d),a[d.id]=d}}return u};return{rows:s(i),flatRows:r,rowsById:a}}function Ap(){return i=>xe(()=>[i.getPreFilteredRowModel(),i.getState().columnFilters,i.getState().globalFilter],(e,t,n)=>{if(!e.rows.length||!(t!=null&&t.length)&&!n){for(let f=0;f<e.flatRows.length;f++)e.flatRows[f].columnFilters={},e.flatRows[f].columnFiltersMeta={};return e}const r=[],a=[];(t??[]).forEach(f=>{var d;const p=i.getColumn(f.id);if(!p)return;const g=p.getFilterFn();g&&r.push({id:f.id,filterFn:g,resolvedValue:(d=g.resolveFilterValue==null?void 0:g.resolveFilterValue(f.value))!=null?d:f.value})});const o=(t??[]).map(f=>f.id),s=i.getGlobalFilterFn(),l=i.getAllLeafColumns().filter(f=>f.getCanGlobalFilter());n&&s&&l.length&&(o.push("__global__"),l.forEach(f=>{var d;a.push({id:f.id,filterFn:s,resolvedValue:(d=s.resolveFilterValue==null?void 0:s.resolveFilterValue(n))!=null?d:n})}));let h,u;for(let f=0;f<e.flatRows.length;f++){const d=e.flatRows[f];if(d.columnFilters={},r.length)for(let p=0;p<r.length;p++){h=r[p];const g=h.id;d.columnFilters[g]=h.filterFn(d,g,h.resolvedValue,m=>{d.columnFiltersMeta[g]=m})}if(a.length){for(let p=0;p<a.length;p++){u=a[p];const g=u.id;if(u.filterFn(d,g,u.resolvedValue,m=>{d.columnFiltersMeta[g]=m})){d.columnFilters.__global__=!0;break}}d.columnFilters.__global__!==!0&&(d.columnFilters.__global__=!1)}}const c=f=>{for(let d=0;d<o.length;d++)if(f.columnFilters[o[d]]===!1)return!1;return!0};return wp(e.rows,c,i)},be(i.options,"debugTable","getFilteredRowModel",()=>i._autoResetPageIndex()))}function Cp(i){return e=>xe(()=>[e.getState().pagination,e.getPrePaginationRowModel(),e.options.paginateExpandedRows?void 0:e.getState().expanded],(t,n)=>{if(!n.rows.length)return n;const{pageSize:r,pageIndex:a}=t;let{rows:o,flatRows:s,rowsById:l}=n;const h=r*a,u=h+r;o=o.slice(h,u);let c;e.options.paginateExpandedRows?c={rows:o,flatRows:s,rowsById:l}:c=bp({rows:o,flatRows:s,rowsById:l}),c.flatRows=[];const f=d=>{c.flatRows.push(d),d.subRows.length&&d.subRows.forEach(f)};return c.rows.forEach(f),c},be(e.options,"debugTable"))}function _p(){return i=>xe(()=>[i.getState().sorting,i.getPreSortedRowModel()],(e,t)=>{if(!t.rows.length||!(e!=null&&e.length))return t;const n=i.getState().sorting,r=[],a=n.filter(l=>{var h;return(h=i.getColumn(l.id))==null?void 0:h.getCanSort()}),o={};a.forEach(l=>{const h=i.getColumn(l.id);h&&(o[l.id]={sortUndefined:h.columnDef.sortUndefined,invertSorting:h.columnDef.invertSorting,sortingFn:h.getSortingFn()})});const s=l=>{const h=l.map(u=>({...u}));return h.sort((u,c)=>{for(let d=0;d<a.length;d+=1){var f;const p=a[d],g=o[p.id],m=g.sortUndefined,v=(f=p==null?void 0:p.desc)!=null?f:!1;let y=0;if(m){const b=u.getValue(p.id),x=c.getValue(p.id),w=b===void 0,k=x===void 0;if(w||k){if(m==="first")return w?-1:1;if(m==="last")return w?1:-1;y=w&&k?0:w?m:-m}}if(y===0&&(y=g.sortingFn(u,c,p.id)),y!==0)return v&&(y*=-1),g.invertSorting&&(y*=-1),y}return u.index-c.index}),h.forEach(u=>{var c;r.push(u),(c=u.subRows)!=null&&c.length&&(u.subRows=s(u.subRows))}),h};return{rows:s(t.rows),flatRows:r,rowsById:t.rowsById}},be(i.options,"debugTable","getSortedRowModel",()=>i._autoResetPageIndex()))}/**
953
+ * react-table
954
+ *
955
+ * Copyright (c) TanStack
956
+ *
957
+ * This source code is licensed under the MIT license found in the
958
+ * LICENSE.md file in the root directory of this source tree.
959
+ *
960
+ * @license MIT
961
+ */function su(i,e){return i?Ep(i)?K.createElement(i,e):i:null}function Ep(i){return Op(i)||typeof i=="function"||Mp(i)}function Op(i){return typeof i=="function"&&(()=>{const e=Object.getPrototypeOf(i);return e.prototype&&e.prototype.isReactComponent})()}function Mp(i){return typeof i=="object"&&typeof i.$$typeof=="symbol"&&["react.memo","react.forward_ref"].includes(i.$$typeof.description)}function Pp(i){const e={state:{},onStateChange:()=>{},renderFallbackValue:null,...i},[t]=K.useState(()=>({current:yp(e)})),[n,r]=K.useState(()=>t.current.initialState);return t.current.setOptions(a=>({...a,...i,state:{...n,...i.state},onStateChange:o=>{r(o),i.onStateChange==null||i.onStateChange(o)}})),t.current}const{Tr:lu,Th:Rp,Td:Lp,THead:Tp,TBody:Ip,Sorter:Np}=Fs,uu=i=>{const{indeterminate:e,onChange:t,onCheckBoxChange:n,onIndeterminateCheckBoxChange:r,...a}=i,o=K.useRef(null);K.useEffect(()=>{typeof e=="boolean"&&o.current&&(o.current.indeterminate=!a.checked&&e)},[o,e]);const s=l=>{t(l),n==null||n(l),r==null||r(l)};return Le.jsx(ud,{ref:o,className:"mb-0",onChange:(l,h)=>s(h),...a})};function Fp(i,e){const{skeletonAvatarColumns:t,columns:n=[],data:r=[],loading:a=!1,onCheckBoxChange:o,onIndeterminateCheckBoxChange:s,onPaginationChange:l,onSelectChange:h,onSort:u,pageSizes:c=[10,25,50,100],selectable:f=!1,skeletonAvatarProps:d,pagingData:p={total:0,pageIndex:1,pageSize:10}}=i,{pageSize:g,pageIndex:m,total:v}=p,[y,b]=K.useState(null),x=K.useMemo(()=>c.map(P=>({value:P,label:`${P} / page`})),[c]),w=(P,E)=>{a||o==null||o(P,E)},k=(P,E)=>{a||s==null||s(P,E)},S=P=>{a||l==null||l(P)},A=P=>{a||h==null||h(Number(P))};K.useEffect(()=>{if(Array.isArray(y)){const P=y.length>0?y[0].desc?"desc":"asc":"",E=y.length>0?y[0].id:"";u==null||u({order:P,key:E})}},[y]);const O=K.useMemo(()=>{const P=n;return f?[{id:"select",header:({table:E})=>Le.jsx(uu,{checked:E.getIsAllRowsSelected(),indeterminate:E.getIsSomeRowsSelected(),onChange:E.getToggleAllRowsSelectedHandler(),onIndeterminateCheckBoxChange:R=>{k(R.target.checked,E.getRowModel().rows)}}),cell:({row:E})=>Le.jsx(uu,{checked:E.getIsSelected(),disabled:!E.getCanSelect(),indeterminate:E.getIsSomeSelected(),onChange:E.getToggleSelectedHandler(),onCheckBoxChange:R=>w(R.target.checked,E.original)})},...P]:P},[n,f]),_=Pp({data:r,columns:O,getCoreRowModel:xp(),getFilteredRowModel:Ap(),getPaginationRowModel:Cp(),getSortedRowModel:_p(),manualPagination:!0,manualSorting:!0,onSortingChange:P=>{b(P)},state:{sorting:y}}),C=()=>{_.resetSorting()},M=()=>{_.toggleAllRowsSelected(!1)};return K.useImperativeHandle(e,()=>({resetSorting:C,resetSelected:M})),Le.jsxs(Uf,{loading:a&&r.length!==0,type:"cover",children:[Le.jsxs(Fs,{children:[Le.jsx(Tp,{children:_.getHeaderGroups().map(P=>Le.jsx(lu,{children:P.headers.map(E=>Le.jsx(Rp,{colSpan:E.colSpan,children:E.isPlaceholder?null:Le.jsxs("div",{className:gi(E.column.getCanSort()&&"cursor-pointer select-none point",a&&"pointer-events-none"),onClick:E.column.getToggleSortingHandler(),children:[su(E.column.columnDef.header,E.getContext()),E.column.getCanSort()&&Le.jsx(Np,{sort:E.column.getIsSorted()})]})},E.id))},P.id))}),a&&r.length===0?Le.jsx(Tg,{columns:O.length,rows:p.pageSize,avatarInColumns:t,avatarProps:d}):Le.jsx(Ip,{children:_.getRowModel().rows.slice(0,g).map(P=>Le.jsx(lu,{children:P.getVisibleCells().map(E=>Le.jsx(Lp,{children:su(E.column.columnDef.cell,E.getContext())},E.id))},P.id))})]}),Le.jsxs("div",{className:"flex items-center justify-between mt-4",children:[Le.jsx(td,{pageSize:g,currentPage:m,total:v,onChange:S}),Le.jsx("div",{style:{minWidth:130},children:Le.jsx(id,{size:"sm",menuPlacement:"top",isSearchable:!1,value:x.filter(P=>P.value===g),options:x,onChange:P=>A(P==null?void 0:P.value)})})]})]})}K.forwardRef(Fp);function cu(i,e){return i>0?e==="bg"?"bg-emerald-100 dark:bg-emerald-500/20 dark:text-emerald-100":"text-emerald-600 dark:text-emerald-400":i<0?e==="bg"?"bg-red-100 dark:bg-red-500/20 dark:text-red-100":"text-red-600 dark:text-red-500":""}const zp=K.forwardRef((i,e)=>{const{value:t=0,className:n,prefix:r,suffix:a,showIcon:o=!0}=i;return Le.jsxs(nd,{ref:e,className:gi("font-bold border-0",cu(t,"text"),cu(t,"bg"),n),children:[t!==0&&Le.jsx("span",{children:o&&(t==="0.00"||t==="0"?"":t>0?Le.jsx(Zf,{}):Le.jsx(Kf,{}))}),Le.jsxs("span",{children:[r,Le.jsx("span",{className:"px-1",children:t}),a]})]})});zp.displayName="GrowShrinkTag";class ft{constructor(){this._partials=new Float64Array(32),this._n=0}add(e){const t=this._partials;let n=0;for(let r=0;r<this._n&&r<32;r++){const a=t[r],o=e+a,s=Math.abs(e)<Math.abs(a)?e-(o-a):a-(o-e);s&&(t[n++]=s),e=o}return t[n]=e,this._n=n+1,this}valueOf(){const e=this._partials;let t=this._n,n,r,a,o=0;if(t>0){for(o=e[--t];t>0&&(n=o,r=e[--t],o=n+r,a=r-(o-n),!a););t>0&&(a<0&&e[t-1]<0||a>0&&e[t-1]>0)&&(r=a*2,n=o+r,r==n-o&&(o=n))}return o}}function*Dp(i){for(const e of i)yield*e}function wh(i){return Array.from(Dp(i))}function li(i,e,t){i=+i,e=+e,t=(r=arguments.length)<2?(e=i,i=0,1):r<3?1:+t;for(var n=-1,r=Math.max(0,Math.ceil((e-i)/t))|0,a=new Array(r);++n<r;)a[n]=i+n*t;return a}var ge=1e-6,ur=1e-12,Oe=Math.PI,Ke=Oe/2,ua=Oe/4,wt=Oe*2,We=180/Oe,pe=Oe/180,Me=Math.abs,Oi=Math.atan,St=Math.atan2,he=Math.cos,Fr=Math.ceil,Sh=Math.exp,ns=Math.hypot,ca=Math.log,ko=Math.pow,ue=Math.sin,Yt=Math.sign||function(i){return i>0?1:i<0?-1:0},at=Math.sqrt,tl=Math.tan;function kh(i){return i>1?0:i<-1?Oe:Math.acos(i)}function kt(i){return i>1?Ke:i<-1?-Ke:Math.asin(i)}function hu(i){return(i=ue(i/2))*i}function Ue(){}function ha(i,e){i&&du.hasOwnProperty(i.type)&&du[i.type](i,e)}var fu={Feature:function(i,e){ha(i.geometry,e)},FeatureCollection:function(i,e){for(var t=i.features,n=-1,r=t.length;++n<r;)ha(t[n].geometry,e)}},du={Sphere:function(i,e){e.sphere()},Point:function(i,e){i=i.coordinates,e.point(i[0],i[1],i[2])},MultiPoint:function(i,e){for(var t=i.coordinates,n=-1,r=t.length;++n<r;)i=t[n],e.point(i[0],i[1],i[2])},LineString:function(i,e){is(i.coordinates,e,0)},MultiLineString:function(i,e){for(var t=i.coordinates,n=-1,r=t.length;++n<r;)is(t[n],e,0)},Polygon:function(i,e){gu(i.coordinates,e)},MultiPolygon:function(i,e){for(var t=i.coordinates,n=-1,r=t.length;++n<r;)gu(t[n],e)},GeometryCollection:function(i,e){for(var t=i.geometries,n=-1,r=t.length;++n<r;)ha(t[n],e)}};function is(i,e,t){var n=-1,r=i.length-t,a;for(e.lineStart();++n<r;)a=i[n],e.point(a[0],a[1],a[2]);e.lineEnd()}function gu(i,e){var t=-1,n=i.length;for(e.polygonStart();++t<n;)is(i[t],e,1);e.polygonEnd()}function qt(i,e){i&&fu.hasOwnProperty(i.type)?fu[i.type](i,e):ha(i,e)}var fa=new ft,da=new ft,Ah,Ch,rs,as,os,sn={point:Ue,lineStart:Ue,lineEnd:Ue,polygonStart:function(){fa=new ft,sn.lineStart=Hp,sn.lineEnd=Bp},polygonEnd:function(){var i=+fa;da.add(i<0?wt+i:i),this.lineStart=this.lineEnd=this.point=Ue},sphere:function(){da.add(wt)}};function Hp(){sn.point=Xp}function Bp(){_h(Ah,Ch)}function Xp(i,e){sn.point=_h,Ah=i,Ch=e,i*=pe,e*=pe,rs=i,as=he(e=e/2+ua),os=ue(e)}function _h(i,e){i*=pe,e*=pe,e=e/2+ua;var t=i-rs,n=t>=0?1:-1,r=n*t,a=he(e),o=ue(e),s=os*o,l=as*a+s*he(r),h=s*n*ue(r);fa.add(St(h,l)),rs=i,as=a,os=o}function Yp(i){return da=new ft,qt(i,sn),da*2}function ga(i){return[St(i[1],i[0]),kt(i[2])]}function $n(i){var e=i[0],t=i[1],n=he(t);return[n*he(e),n*ue(e),ue(t)]}function zr(i,e){return i[0]*e[0]+i[1]*e[1]+i[2]*e[2]}function yi(i,e){return[i[1]*e[2]-i[2]*e[1],i[2]*e[0]-i[0]*e[2],i[0]*e[1]-i[1]*e[0]]}function Ao(i,e){i[0]+=e[0],i[1]+=e[1],i[2]+=e[2]}function Dr(i,e){return[i[0]*e,i[1]*e,i[2]*e]}function pa(i){var e=at(i[0]*i[0]+i[1]*i[1]+i[2]*i[2]);i[0]/=e,i[1]/=e,i[2]/=e}var $e,Et,Ze,Tt,Dn,Eh,Oh,fi,Qi,wn,yn,dn={point:ss,lineStart:pu,lineEnd:vu,polygonStart:function(){dn.point=Ph,dn.lineStart=jp,dn.lineEnd=Wp,Qi=new ft,sn.polygonStart()},polygonEnd:function(){sn.polygonEnd(),dn.point=ss,dn.lineStart=pu,dn.lineEnd=vu,fa<0?($e=-(Ze=180),Et=-(Tt=90)):Qi>ge?Tt=90:Qi<-ge&&(Et=-90),yn[0]=$e,yn[1]=Ze},sphere:function(){$e=-(Ze=180),Et=-(Tt=90)}};function ss(i,e){wn.push(yn=[$e=i,Ze=i]),e<Et&&(Et=e),e>Tt&&(Tt=e)}function Mh(i,e){var t=$n([i*pe,e*pe]);if(fi){var n=yi(fi,t),r=[n[1],-n[0],0],a=yi(r,n);pa(a),a=ga(a);var o=i-Dn,s=o>0?1:-1,l=a[0]*We*s,h,u=Me(o)>180;u^(s*Dn<l&&l<s*i)?(h=a[1]*We,h>Tt&&(Tt=h)):(l=(l+360)%360-180,u^(s*Dn<l&&l<s*i)?(h=-a[1]*We,h<Et&&(Et=h)):(e<Et&&(Et=e),e>Tt&&(Tt=e))),u?i<Dn?Lt($e,i)>Lt($e,Ze)&&(Ze=i):Lt(i,Ze)>Lt($e,Ze)&&($e=i):Ze>=$e?(i<$e&&($e=i),i>Ze&&(Ze=i)):i>Dn?Lt($e,i)>Lt($e,Ze)&&(Ze=i):Lt(i,Ze)>Lt($e,Ze)&&($e=i)}else wn.push(yn=[$e=i,Ze=i]);e<Et&&(Et=e),e>Tt&&(Tt=e),fi=t,Dn=i}function pu(){dn.point=Mh}function vu(){yn[0]=$e,yn[1]=Ze,dn.point=ss,fi=null}function Ph(i,e){if(fi){var t=i-Dn;Qi.add(Me(t)>180?t+(t>0?360:-360):t)}else Eh=i,Oh=e;sn.point(i,e),Mh(i,e)}function jp(){sn.lineStart()}function Wp(){Ph(Eh,Oh),sn.lineEnd(),Me(Qi)>ge&&($e=-(Ze=180)),yn[0]=$e,yn[1]=Ze,fi=null}function Lt(i,e){return(e-=i)<0?e+360:e}function qp(i,e){return i[0]-e[0]}function mu(i,e){return i[0]<=i[1]?i[0]<=e&&e<=i[1]:e<i[0]||i[1]<e}function Vp(i){var e,t,n,r,a,o,s;if(Tt=Ze=-($e=Et=1/0),wn=[],qt(i,dn),t=wn.length){for(wn.sort(qp),e=1,n=wn[0],a=[n];e<t;++e)r=wn[e],mu(n,r[0])||mu(n,r[1])?(Lt(n[0],r[1])>Lt(n[0],n[1])&&(n[1]=r[1]),Lt(r[0],n[1])>Lt(n[0],n[1])&&(n[0]=r[0])):a.push(n=r);for(o=-1/0,t=a.length-1,e=0,n=a[t];e<=t;n=r,++e)r=a[e],(s=Lt(n[1],r[0]))>o&&(o=s,$e=r[0],Ze=n[1])}return wn=yn=null,$e===1/0||Et===1/0?[[NaN,NaN],[NaN,NaN]]:[[$e,Et],[Ze,Tt]]}var Xi,va,ma,ya,xa,ba,wa,Sa,ls,us,cs,Rh,Lh,mt,yt,xt,Zt={sphere:Ue,point:nl,lineStart:yu,lineEnd:xu,polygonStart:function(){Zt.lineStart=Up,Zt.lineEnd=Zp},polygonEnd:function(){Zt.lineStart=yu,Zt.lineEnd=xu}};function nl(i,e){i*=pe,e*=pe;var t=he(e);kr(t*he(i),t*ue(i),ue(e))}function kr(i,e,t){++Xi,ma+=(i-ma)/Xi,ya+=(e-ya)/Xi,xa+=(t-xa)/Xi}function yu(){Zt.point=Gp}function Gp(i,e){i*=pe,e*=pe;var t=he(e);mt=t*he(i),yt=t*ue(i),xt=ue(e),Zt.point=$p,kr(mt,yt,xt)}function $p(i,e){i*=pe,e*=pe;var t=he(e),n=t*he(i),r=t*ue(i),a=ue(e),o=St(at((o=yt*a-xt*r)*o+(o=xt*n-mt*a)*o+(o=mt*r-yt*n)*o),mt*n+yt*r+xt*a);va+=o,ba+=o*(mt+(mt=n)),wa+=o*(yt+(yt=r)),Sa+=o*(xt+(xt=a)),kr(mt,yt,xt)}function xu(){Zt.point=nl}function Up(){Zt.point=Kp}function Zp(){Th(Rh,Lh),Zt.point=nl}function Kp(i,e){Rh=i,Lh=e,i*=pe,e*=pe,Zt.point=Th;var t=he(e);mt=t*he(i),yt=t*ue(i),xt=ue(e),kr(mt,yt,xt)}function Th(i,e){i*=pe,e*=pe;var t=he(e),n=t*he(i),r=t*ue(i),a=ue(e),o=yt*a-xt*r,s=xt*n-mt*a,l=mt*r-yt*n,h=ns(o,s,l),u=kt(h),c=h&&-u/h;ls.add(c*o),us.add(c*s),cs.add(c*l),va+=u,ba+=u*(mt+(mt=n)),wa+=u*(yt+(yt=r)),Sa+=u*(xt+(xt=a)),kr(mt,yt,xt)}function Qp(i){Xi=va=ma=ya=xa=ba=wa=Sa=0,ls=new ft,us=new ft,cs=new ft,qt(i,Zt);var e=+ls,t=+us,n=+cs,r=ns(e,t,n);return r<ur&&(e=ba,t=wa,n=Sa,va<ge&&(e=ma,t=ya,n=xa),r=ns(e,t,n),r<ur)?[NaN,NaN]:[St(t,e)*We,kt(n/r)*We]}function ai(i){return function(){return i}}function hs(i,e){function t(n,r){return n=i(n,r),e(n[0],n[1])}return i.invert&&e.invert&&(t.invert=function(n,r){return n=e.invert(n,r),n&&i.invert(n[0],n[1])}),t}function fs(i,e){return[Me(i)>Oe?i+Math.round(-i/wt)*wt:i,e]}fs.invert=fs;function il(i,e,t){return(i%=wt)?e||t?hs(wu(i),Su(e,t)):wu(i):e||t?Su(e,t):fs}function bu(i){return function(e,t){return e+=i,[e>Oe?e-wt:e<-Oe?e+wt:e,t]}}function wu(i){var e=bu(i);return e.invert=bu(-i),e}function Su(i,e){var t=he(i),n=ue(i),r=he(e),a=ue(e);function o(s,l){var h=he(l),u=he(s)*h,c=ue(s)*h,f=ue(l),d=f*t+u*n;return[St(c*r-d*a,u*t-f*n),kt(d*r+c*a)]}return o.invert=function(s,l){var h=he(l),u=he(s)*h,c=ue(s)*h,f=ue(l),d=f*r-c*a;return[St(c*r+f*a,u*t+d*n),kt(d*t-u*n)]},o}function Ih(i){i=il(i[0]*pe,i[1]*pe,i.length>2?i[2]*pe:0);function e(t){return t=i(t[0]*pe,t[1]*pe),t[0]*=We,t[1]*=We,t}return e.invert=function(t){return t=i.invert(t[0]*pe,t[1]*pe),t[0]*=We,t[1]*=We,t},e}function Nh(i,e,t,n,r,a){if(t){var o=he(e),s=ue(e),l=n*t;r==null?(r=e+n*wt,a=e-l/2):(r=ku(o,r),a=ku(o,a),(n>0?r<a:r>a)&&(r+=n*wt));for(var h,u=r;n>0?u>a:u<a;u-=l)h=ga([o,-s*he(u),-s*ue(u)]),i.point(h[0],h[1])}}function ku(i,e){e=$n(e),e[0]-=i,pa(e);var t=kh(-e[1]);return((-e[2]<0?-t:t)+wt-ge)%wt}function Jp(){var i=ai([0,0]),e=ai(90),t=ai(6),n,r,a={point:o};function o(l,h){n.push(l=r(l,h)),l[0]*=We,l[1]*=We}function s(){var l=i.apply(this,arguments),h=e.apply(this,arguments)*pe,u=t.apply(this,arguments)*pe;return n=[],r=il(-l[0]*pe,-l[1]*pe,0).invert,Nh(a,h,u,1),l={type:"Polygon",coordinates:[n]},n=r=null,l}return s.center=function(l){return arguments.length?(i=typeof l=="function"?l:ai([+l[0],+l[1]]),s):i},s.radius=function(l){return arguments.length?(e=typeof l=="function"?l:ai(+l),s):e},s.precision=function(l){return arguments.length?(t=typeof l=="function"?l:ai(+l),s):t},s}function Fh(){var i=[],e;return{point:function(t,n,r){e.push([t,n,r])},lineStart:function(){i.push(e=[])},lineEnd:Ue,rejoin:function(){i.length>1&&i.push(i.pop().concat(i.shift()))},result:function(){var t=i;return i=[],e=null,t}}}function Kr(i,e){return Me(i[0]-e[0])<ge&&Me(i[1]-e[1])<ge}function Hr(i,e,t,n){this.x=i,this.z=e,this.o=t,this.e=n,this.v=!1,this.n=this.p=null}function zh(i,e,t,n,r){var a=[],o=[],s,l;if(i.forEach(function(p){if(!((g=p.length-1)<=0)){var g,m=p[0],v=p[g],y;if(Kr(m,v)){if(!m[2]&&!v[2]){for(r.lineStart(),s=0;s<g;++s)r.point((m=p[s])[0],m[1]);r.lineEnd();return}v[0]+=2*ge}a.push(y=new Hr(m,p,null,!0)),o.push(y.o=new Hr(m,null,y,!1)),a.push(y=new Hr(v,p,null,!1)),o.push(y.o=new Hr(v,null,y,!0))}}),!!a.length){for(o.sort(e),Au(a),Au(o),s=0,l=o.length;s<l;++s)o[s].e=t=!t;for(var h=a[0],u,c;;){for(var f=h,d=!0;f.v;)if((f=f.n)===h)return;u=f.z,r.lineStart();do{if(f.v=f.o.v=!0,f.e){if(d)for(s=0,l=u.length;s<l;++s)r.point((c=u[s])[0],c[1]);else n(f.x,f.n.x,1,r);f=f.n}else{if(d)for(u=f.p.z,s=u.length-1;s>=0;--s)r.point((c=u[s])[0],c[1]);else n(f.x,f.p.x,-1,r);f=f.p}f=f.o,u=f.z,d=!d}while(!f.v);r.lineEnd()}}}function Au(i){if(e=i.length){for(var e,t=0,n=i[0],r;++t<e;)n.n=r=i[t],r.p=n,n=r;n.n=r=i[0],r.p=n}}function Co(i){return Me(i[0])<=Oe?i[0]:Yt(i[0])*((Me(i[0])+Oe)%wt-Oe)}function Dh(i,e){var t=Co(e),n=e[1],r=ue(n),a=[ue(t),-he(t),0],o=0,s=0,l=new ft;r===1?n=Ke+ge:r===-1&&(n=-Ke-ge);for(var h=0,u=i.length;h<u;++h)if(f=(c=i[h]).length)for(var c,f,d=c[f-1],p=Co(d),g=d[1]/2+ua,m=ue(g),v=he(g),y=0;y<f;++y,p=x,m=k,v=S,d=b){var b=c[y],x=Co(b),w=b[1]/2+ua,k=ue(w),S=he(w),A=x-p,O=A>=0?1:-1,_=O*A,C=_>Oe,M=m*k;if(l.add(St(M*O*ue(_),v*S+M*he(_))),o+=C?A+O*wt:A,C^p>=t^x>=t){var P=yi($n(d),$n(b));pa(P);var E=yi(a,P);pa(E);var R=(C^A>=0?-1:1)*kt(E[2]);(n>R||n===R&&(P[0]||P[1]))&&(s+=C^A>=0?1:-1)}}return(o<-ge||o<ge&&l<-ur)^s&1}function Hh(i,e,t,n){return function(r){var a=e(r),o=Fh(),s=e(o),l=!1,h,u,c,f={point:d,lineStart:g,lineEnd:m,polygonStart:function(){f.point=v,f.lineStart=y,f.lineEnd=b,u=[],h=[]},polygonEnd:function(){f.point=d,f.lineStart=g,f.lineEnd=m,u=wh(u);var x=Dh(h,n);u.length?(l||(r.polygonStart(),l=!0),zh(u,tv,x,t,r)):x&&(l||(r.polygonStart(),l=!0),r.lineStart(),t(null,null,1,r),r.lineEnd()),l&&(r.polygonEnd(),l=!1),u=h=null},sphere:function(){r.polygonStart(),r.lineStart(),t(null,null,1,r),r.lineEnd(),r.polygonEnd()}};function d(x,w){i(x,w)&&r.point(x,w)}function p(x,w){a.point(x,w)}function g(){f.point=p,a.lineStart()}function m(){f.point=d,a.lineEnd()}function v(x,w){c.push([x,w]),s.point(x,w)}function y(){s.lineStart(),c=[]}function b(){v(c[0][0],c[0][1]),s.lineEnd();var x=s.clean(),w=o.result(),k,S=w.length,A,O,_;if(c.pop(),h.push(c),c=null,!!S){if(x&1){if(O=w[0],(A=O.length-1)>0){for(l||(r.polygonStart(),l=!0),r.lineStart(),k=0;k<A;++k)r.point((_=O[k])[0],_[1]);r.lineEnd()}return}S>1&&x&2&&w.push(w.pop().concat(w.shift())),u.push(w.filter(ev))}}return f}}function ev(i){return i.length>1}function tv(i,e){return((i=i.x)[0]<0?i[1]-Ke-ge:Ke-i[1])-((e=e.x)[0]<0?e[1]-Ke-ge:Ke-e[1])}const ds=Hh(function(){return!0},nv,rv,[-Oe,-Ke]);function nv(i){var e=NaN,t=NaN,n=NaN,r;return{lineStart:function(){i.lineStart(),r=1},point:function(a,o){var s=a>0?Oe:-Oe,l=Me(a-e);Me(l-Oe)<ge?(i.point(e,t=(t+o)/2>0?Ke:-Ke),i.point(n,t),i.lineEnd(),i.lineStart(),i.point(s,t),i.point(a,t),r=0):n!==s&&l>=Oe&&(Me(e-n)<ge&&(e-=n*ge),Me(a-s)<ge&&(a-=s*ge),t=iv(e,t,a,o),i.point(n,t),i.lineEnd(),i.lineStart(),i.point(s,t),r=0),i.point(e=a,t=o),n=s},lineEnd:function(){i.lineEnd(),e=t=NaN},clean:function(){return 2-r}}}function iv(i,e,t,n){var r,a,o=ue(i-t);return Me(o)>ge?Oi((ue(e)*(a=he(n))*ue(t)-ue(n)*(r=he(e))*ue(i))/(r*a*o)):(e+n)/2}function rv(i,e,t,n){var r;if(i==null)r=t*Ke,n.point(-Oe,r),n.point(0,r),n.point(Oe,r),n.point(Oe,0),n.point(Oe,-r),n.point(0,-r),n.point(-Oe,-r),n.point(-Oe,0),n.point(-Oe,r);else if(Me(i[0]-e[0])>ge){var a=i[0]<e[0]?Oe:-Oe;r=t*a/2,n.point(-a,r),n.point(0,r),n.point(a,r)}else n.point(e[0],e[1])}function Bh(i){var e=he(i),t=6*pe,n=e>0,r=Me(e)>ge;function a(u,c,f,d){Nh(d,i,t,f,u,c)}function o(u,c){return he(u)*he(c)>e}function s(u){var c,f,d,p,g;return{lineStart:function(){p=d=!1,g=1},point:function(m,v){var y=[m,v],b,x=o(m,v),w=n?x?0:h(m,v):x?h(m+(m<0?Oe:-Oe),v):0;if(!c&&(p=d=x)&&u.lineStart(),x!==d&&(b=l(c,y),(!b||Kr(c,b)||Kr(y,b))&&(y[2]=1)),x!==d)g=0,x?(u.lineStart(),b=l(y,c),u.point(b[0],b[1])):(b=l(c,y),u.point(b[0],b[1],2),u.lineEnd()),c=b;else if(r&&c&&n^x){var k;!(w&f)&&(k=l(y,c,!0))&&(g=0,n?(u.lineStart(),u.point(k[0][0],k[0][1]),u.point(k[1][0],k[1][1]),u.lineEnd()):(u.point(k[1][0],k[1][1]),u.lineEnd(),u.lineStart(),u.point(k[0][0],k[0][1],3)))}x&&(!c||!Kr(c,y))&&u.point(y[0],y[1]),c=y,d=x,f=w},lineEnd:function(){d&&u.lineEnd(),c=null},clean:function(){return g|(p&&d)<<1}}}function l(u,c,f){var d=$n(u),p=$n(c),g=[1,0,0],m=yi(d,p),v=zr(m,m),y=m[0],b=v-y*y;if(!b)return!f&&u;var x=e*v/b,w=-e*y/b,k=yi(g,m),S=Dr(g,x),A=Dr(m,w);Ao(S,A);var O=k,_=zr(S,O),C=zr(O,O),M=_*_-C*(zr(S,S)-1);if(!(M<0)){var P=at(M),E=Dr(O,(-_-P)/C);if(Ao(E,S),E=ga(E),!f)return E;var R=u[0],T=c[0],F=u[1],B=c[1],D;T<R&&(D=R,R=T,T=D);var N=T-R,L=Me(N-Oe)<ge,I=L||N<ge;if(!L&&B<F&&(D=F,F=B,B=D),I?L?F+B>0^E[1]<(Me(E[0]-R)<ge?F:B):F<=E[1]&&E[1]<=B:N>Oe^(R<=E[0]&&E[0]<=T)){var H=Dr(O,(-_+P)/C);return Ao(H,S),[E,ga(H)]}}}function h(u,c){var f=n?i:Oe-i,d=0;return u<-f?d|=1:u>f&&(d|=2),c<-f?d|=4:c>f&&(d|=8),d}return Hh(o,s,a,n?[0,-i]:[-Oe,i-Oe])}function av(i,e,t,n,r,a){var o=i[0],s=i[1],l=e[0],h=e[1],u=0,c=1,f=l-o,d=h-s,p;if(p=t-o,!(!f&&p>0)){if(p/=f,f<0){if(p<u)return;p<c&&(c=p)}else if(f>0){if(p>c)return;p>u&&(u=p)}if(p=r-o,!(!f&&p<0)){if(p/=f,f<0){if(p>c)return;p>u&&(u=p)}else if(f>0){if(p<u)return;p<c&&(c=p)}if(p=n-s,!(!d&&p>0)){if(p/=d,d<0){if(p<u)return;p<c&&(c=p)}else if(d>0){if(p>c)return;p>u&&(u=p)}if(p=a-s,!(!d&&p<0)){if(p/=d,d<0){if(p>c)return;p>u&&(u=p)}else if(d>0){if(p<u)return;p<c&&(c=p)}return u>0&&(i[0]=o+u*f,i[1]=s+u*d),c<1&&(e[0]=o+c*f,e[1]=s+c*d),!0}}}}}var Yi=1e9,Br=-Yi;function ja(i,e,t,n){function r(h,u){return i<=h&&h<=t&&e<=u&&u<=n}function a(h,u,c,f){var d=0,p=0;if(h==null||(d=o(h,c))!==(p=o(u,c))||l(h,u)<0^c>0)do f.point(d===0||d===3?i:t,d>1?n:e);while((d=(d+c+4)%4)!==p);else f.point(u[0],u[1])}function o(h,u){return Me(h[0]-i)<ge?u>0?0:3:Me(h[0]-t)<ge?u>0?2:1:Me(h[1]-e)<ge?u>0?1:0:u>0?3:2}function s(h,u){return l(h.x,u.x)}function l(h,u){var c=o(h,1),f=o(u,1);return c!==f?c-f:c===0?u[1]-h[1]:c===1?h[0]-u[0]:c===2?h[1]-u[1]:u[0]-h[0]}return function(h){var u=h,c=Fh(),f,d,p,g,m,v,y,b,x,w,k,S={point:A,lineStart:M,lineEnd:P,polygonStart:_,polygonEnd:C};function A(R,T){r(R,T)&&u.point(R,T)}function O(){for(var R=0,T=0,F=d.length;T<F;++T)for(var B=d[T],D=1,N=B.length,L=B[0],I,H,Y=L[0],W=L[1];D<N;++D)I=Y,H=W,L=B[D],Y=L[0],W=L[1],H<=n?W>n&&(Y-I)*(n-H)>(W-H)*(i-I)&&++R:W<=n&&(Y-I)*(n-H)<(W-H)*(i-I)&&--R;return R}function _(){u=c,f=[],d=[],k=!0}function C(){var R=O(),T=k&&R,F=(f=wh(f)).length;(T||F)&&(h.polygonStart(),T&&(h.lineStart(),a(null,null,1,h),h.lineEnd()),F&&zh(f,s,R,a,h),h.polygonEnd()),u=h,f=d=p=null}function M(){S.point=E,d&&d.push(p=[]),w=!0,x=!1,y=b=NaN}function P(){f&&(E(g,m),v&&x&&c.rejoin(),f.push(c.result())),S.point=A,x&&u.lineEnd()}function E(R,T){var F=r(R,T);if(d&&p.push([R,T]),w)g=R,m=T,v=F,w=!1,F&&(u.lineStart(),u.point(R,T));else if(F&&x)u.point(R,T);else{var B=[y=Math.max(Br,Math.min(Yi,y)),b=Math.max(Br,Math.min(Yi,b))],D=[R=Math.max(Br,Math.min(Yi,R)),T=Math.max(Br,Math.min(Yi,T))];av(B,D,i,e,t,n)?(x||(u.lineStart(),u.point(B[0],B[1])),u.point(D[0],D[1]),F||u.lineEnd(),k=!1):F&&(u.lineStart(),u.point(R,T),k=!1)}y=R,b=T,x=F}return S}}function ov(){var i=0,e=0,t=960,n=500,r,a,o;return o={stream:function(s){return r&&a===s?r:r=ja(i,e,t,n)(a=s)},extent:function(s){return arguments.length?(i=+s[0][0],e=+s[0][1],t=+s[1][0],n=+s[1][1],r=a=null,o):[[i,e],[t,n]]}}}var gs,ps,Qr,Jr,xi={sphere:Ue,point:Ue,lineStart:sv,lineEnd:Ue,polygonStart:Ue,polygonEnd:Ue};function sv(){xi.point=uv,xi.lineEnd=lv}function lv(){xi.point=xi.lineEnd=Ue}function uv(i,e){i*=pe,e*=pe,ps=i,Qr=ue(e),Jr=he(e),xi.point=cv}function cv(i,e){i*=pe,e*=pe;var t=ue(e),n=he(e),r=Me(i-ps),a=he(r),o=ue(r),s=n*o,l=Jr*t-Qr*n*a,h=Qr*t+Jr*n*a;gs.add(St(at(s*s+l*l),h)),ps=i,Qr=t,Jr=n}function Xh(i){return gs=new ft,qt(i,xi),+gs}var vs=[null,null],hv={type:"LineString",coordinates:vs};function ka(i,e){return vs[0]=i,vs[1]=e,Xh(hv)}var Cu={Feature:function(i,e){return Aa(i.geometry,e)},FeatureCollection:function(i,e){for(var t=i.features,n=-1,r=t.length;++n<r;)if(Aa(t[n].geometry,e))return!0;return!1}},_u={Sphere:function(){return!0},Point:function(i,e){return Eu(i.coordinates,e)},MultiPoint:function(i,e){for(var t=i.coordinates,n=-1,r=t.length;++n<r;)if(Eu(t[n],e))return!0;return!1},LineString:function(i,e){return Ou(i.coordinates,e)},MultiLineString:function(i,e){for(var t=i.coordinates,n=-1,r=t.length;++n<r;)if(Ou(t[n],e))return!0;return!1},Polygon:function(i,e){return Mu(i.coordinates,e)},MultiPolygon:function(i,e){for(var t=i.coordinates,n=-1,r=t.length;++n<r;)if(Mu(t[n],e))return!0;return!1},GeometryCollection:function(i,e){for(var t=i.geometries,n=-1,r=t.length;++n<r;)if(Aa(t[n],e))return!0;return!1}};function Aa(i,e){return i&&_u.hasOwnProperty(i.type)?_u[i.type](i,e):!1}function Eu(i,e){return ka(i,e)===0}function Ou(i,e){for(var t,n,r,a=0,o=i.length;a<o;a++){if(n=ka(i[a],e),n===0||a>0&&(r=ka(i[a],i[a-1]),r>0&&t<=r&&n<=r&&(t+n-r)*(1-Math.pow((t-n)/r,2))<ur*r))return!0;t=n}return!1}function Mu(i,e){return!!Dh(i.map(fv),Yh(e))}function fv(i){return i=i.map(Yh),i.pop(),i}function Yh(i){return[i[0]*pe,i[1]*pe]}function dv(i,e){return(i&&Cu.hasOwnProperty(i.type)?Cu[i.type]:Aa)(i,e)}function Pu(i,e,t){var n=li(i,e-ge,t).concat(e);return function(r){return n.map(function(a){return[r,a]})}}function Ru(i,e,t){var n=li(i,e-ge,t).concat(e);return function(r){return n.map(function(a){return[a,r]})}}function rl(){var i,e,t,n,r,a,o,s,l=10,h=l,u=90,c=360,f,d,p,g,m=2.5;function v(){return{type:"MultiLineString",coordinates:y()}}function y(){return li(Fr(n/u)*u,t,u).map(p).concat(li(Fr(s/c)*c,o,c).map(g)).concat(li(Fr(e/l)*l,i,l).filter(function(b){return Me(b%u)>ge}).map(f)).concat(li(Fr(a/h)*h,r,h).filter(function(b){return Me(b%c)>ge}).map(d))}return v.lines=function(){return y().map(function(b){return{type:"LineString",coordinates:b}})},v.outline=function(){return{type:"Polygon",coordinates:[p(n).concat(g(o).slice(1),p(t).reverse().slice(1),g(s).reverse().slice(1))]}},v.extent=function(b){return arguments.length?v.extentMajor(b).extentMinor(b):v.extentMinor()},v.extentMajor=function(b){return arguments.length?(n=+b[0][0],t=+b[1][0],s=+b[0][1],o=+b[1][1],n>t&&(b=n,n=t,t=b),s>o&&(b=s,s=o,o=b),v.precision(m)):[[n,s],[t,o]]},v.extentMinor=function(b){return arguments.length?(e=+b[0][0],i=+b[1][0],a=+b[0][1],r=+b[1][1],e>i&&(b=e,e=i,i=b),a>r&&(b=a,a=r,r=b),v.precision(m)):[[e,a],[i,r]]},v.step=function(b){return arguments.length?v.stepMajor(b).stepMinor(b):v.stepMinor()},v.stepMajor=function(b){return arguments.length?(u=+b[0],c=+b[1],v):[u,c]},v.stepMinor=function(b){return arguments.length?(l=+b[0],h=+b[1],v):[l,h]},v.precision=function(b){return arguments.length?(m=+b,f=Pu(a,r,90),d=Ru(e,i,m),p=Pu(s,o,90),g=Ru(n,t,m),v):m},v.extentMajor([[-180,-90+ge],[180,90-ge]]).extentMinor([[-180,-80-ge],[180,80+ge]])}function gv(){return rl()()}function pv(i,e){var t=i[0]*pe,n=i[1]*pe,r=e[0]*pe,a=e[1]*pe,o=he(n),s=ue(n),l=he(a),h=ue(a),u=o*he(t),c=o*ue(t),f=l*he(r),d=l*ue(r),p=2*kt(at(hu(a-n)+o*l*hu(r-t))),g=ue(p),m=p?function(v){var y=ue(v*=p)/g,b=ue(p-v)/g,x=b*u+y*f,w=b*c+y*d,k=b*s+y*h;return[St(w,x)*We,St(k,at(x*x+w*w))*We]}:function(){return[t*We,n*We]};return m.distance=p,m}const cr=i=>i;var _o=new ft,ms=new ft,jh,Wh,ys,xs,An={point:Ue,lineStart:Ue,lineEnd:Ue,polygonStart:function(){An.lineStart=vv,An.lineEnd=yv},polygonEnd:function(){An.lineStart=An.lineEnd=An.point=Ue,_o.add(Me(ms)),ms=new ft},result:function(){var i=_o/2;return _o=new ft,i}};function vv(){An.point=mv}function mv(i,e){An.point=qh,jh=ys=i,Wh=xs=e}function qh(i,e){ms.add(xs*i-ys*e),ys=i,xs=e}function yv(){qh(jh,Wh)}const Lu=An;var bi=1/0,Ca=bi,hr=-bi,_a=hr,xv={point:bv,lineStart:Ue,lineEnd:Ue,polygonStart:Ue,polygonEnd:Ue,result:function(){var i=[[bi,Ca],[hr,_a]];return hr=_a=-(Ca=bi=1/0),i}};function bv(i,e){i<bi&&(bi=i),i>hr&&(hr=i),e<Ca&&(Ca=e),e>_a&&(_a=e)}const Ea=xv;var bs=0,ws=0,ji=0,Oa=0,Ma=0,ui=0,Ss=0,ks=0,Wi=0,Vh,Gh,rn,an,Vt={point:Un,lineStart:Tu,lineEnd:Iu,polygonStart:function(){Vt.lineStart=kv,Vt.lineEnd=Av},polygonEnd:function(){Vt.point=Un,Vt.lineStart=Tu,Vt.lineEnd=Iu},result:function(){var i=Wi?[Ss/Wi,ks/Wi]:ui?[Oa/ui,Ma/ui]:ji?[bs/ji,ws/ji]:[NaN,NaN];return bs=ws=ji=Oa=Ma=ui=Ss=ks=Wi=0,i}};function Un(i,e){bs+=i,ws+=e,++ji}function Tu(){Vt.point=wv}function wv(i,e){Vt.point=Sv,Un(rn=i,an=e)}function Sv(i,e){var t=i-rn,n=e-an,r=at(t*t+n*n);Oa+=r*(rn+i)/2,Ma+=r*(an+e)/2,ui+=r,Un(rn=i,an=e)}function Iu(){Vt.point=Un}function kv(){Vt.point=Cv}function Av(){$h(Vh,Gh)}function Cv(i,e){Vt.point=$h,Un(Vh=rn=i,Gh=an=e)}function $h(i,e){var t=i-rn,n=e-an,r=at(t*t+n*n);Oa+=r*(rn+i)/2,Ma+=r*(an+e)/2,ui+=r,r=an*i-rn*e,Ss+=r*(rn+i),ks+=r*(an+e),Wi+=r*3,Un(rn=i,an=e)}const Nu=Vt;function Uh(i){this._context=i}Uh.prototype={_radius:4.5,pointRadius:function(i){return this._radius=i,this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){this._line===0&&this._context.closePath(),this._point=NaN},point:function(i,e){switch(this._point){case 0:{this._context.moveTo(i,e),this._point=1;break}case 1:{this._context.lineTo(i,e);break}default:{this._context.moveTo(i+this._radius,e),this._context.arc(i,e,this._radius,0,wt);break}}},result:Ue};var As=new ft,Eo,Zh,Kh,qi,Vi,Pa={point:Ue,lineStart:function(){Pa.point=_v},lineEnd:function(){Eo&&Qh(Zh,Kh),Pa.point=Ue},polygonStart:function(){Eo=!0},polygonEnd:function(){Eo=null},result:function(){var i=+As;return As=new ft,i}};function _v(i,e){Pa.point=Qh,Zh=qi=i,Kh=Vi=e}function Qh(i,e){qi-=i,Vi-=e,As.add(at(qi*qi+Vi*Vi)),qi=i,Vi=e}const Fu=Pa;function Jh(){this._string=[]}Jh.prototype={_radius:4.5,_circle:zu(4.5),pointRadius:function(i){return(i=+i)!==this._radius&&(this._radius=i,this._circle=null),this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){this._line===0&&this._string.push("Z"),this._point=NaN},point:function(i,e){switch(this._point){case 0:{this._string.push("M",i,",",e),this._point=1;break}case 1:{this._string.push("L",i,",",e);break}default:{this._circle==null&&(this._circle=zu(this._radius)),this._string.push("M",i,",",e,this._circle);break}}},result:function(){if(this._string.length){var i=this._string.join("");return this._string=[],i}else return null}};function zu(i){return"m0,"+i+"a"+i+","+i+" 0 1,1 0,"+-2*i+"a"+i+","+i+" 0 1,1 0,"+2*i+"z"}function ef(i,e){var t=4.5,n,r;function a(o){return o&&(typeof t=="function"&&r.pointRadius(+t.apply(this,arguments)),qt(o,n(r))),r.result()}return a.area=function(o){return qt(o,n(Lu)),Lu.result()},a.measure=function(o){return qt(o,n(Fu)),Fu.result()},a.bounds=function(o){return qt(o,n(Ea)),Ea.result()},a.centroid=function(o){return qt(o,n(Nu)),Nu.result()},a.projection=function(o){return arguments.length?(n=o==null?(i=null,cr):(i=o).stream,a):i},a.context=function(o){return arguments.length?(r=o==null?(e=null,new Jh):new Uh(e=o),typeof t!="function"&&r.pointRadius(t),a):e},a.pointRadius=function(o){return arguments.length?(t=typeof o=="function"?o:(r.pointRadius(+o),+o),a):t},a.projection(i).context(e)}function Ev(i){return{stream:Ar(i)}}function Ar(i){return function(e){var t=new Cs;for(var n in i)t[n]=i[n];return t.stream=e,t}}function Cs(){}Cs.prototype={constructor:Cs,point:function(i,e){this.stream.point(i,e)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}};function al(i,e,t){var n=i.clipExtent&&i.clipExtent();return i.scale(150).translate([0,0]),n!=null&&i.clipExtent(null),qt(t,i.stream(Ea)),e(Ea.result()),n!=null&&i.clipExtent(n),i}function Wa(i,e,t){return al(i,function(n){var r=e[1][0]-e[0][0],a=e[1][1]-e[0][1],o=Math.min(r/(n[1][0]-n[0][0]),a/(n[1][1]-n[0][1])),s=+e[0][0]+(r-o*(n[1][0]+n[0][0]))/2,l=+e[0][1]+(a-o*(n[1][1]+n[0][1]))/2;i.scale(150*o).translate([s,l])},t)}function ol(i,e,t){return Wa(i,[[0,0],e],t)}function sl(i,e,t){return al(i,function(n){var r=+e,a=r/(n[1][0]-n[0][0]),o=(r-a*(n[1][0]+n[0][0]))/2,s=-a*n[0][1];i.scale(150*a).translate([o,s])},t)}function ll(i,e,t){return al(i,function(n){var r=+e,a=r/(n[1][1]-n[0][1]),o=-a*n[0][0],s=(r-a*(n[1][1]+n[0][1]))/2;i.scale(150*a).translate([o,s])},t)}var Du=16,Ov=he(30*pe);function Hu(i,e){return+e?Pv(i,e):Mv(i)}function Mv(i){return Ar({point:function(e,t){e=i(e,t),this.stream.point(e[0],e[1])}})}function Pv(i,e){function t(n,r,a,o,s,l,h,u,c,f,d,p,g,m){var v=h-n,y=u-r,b=v*v+y*y;if(b>4*e&&g--){var x=o+f,w=s+d,k=l+p,S=at(x*x+w*w+k*k),A=kt(k/=S),O=Me(Me(k)-1)<ge||Me(a-c)<ge?(a+c)/2:St(w,x),_=i(O,A),C=_[0],M=_[1],P=C-n,E=M-r,R=y*P-v*E;(R*R/b>e||Me((v*P+y*E)/b-.5)>.3||o*f+s*d+l*p<Ov)&&(t(n,r,a,o,s,l,C,M,O,x/=S,w/=S,k,g,m),m.point(C,M),t(C,M,O,x,w,k,h,u,c,f,d,p,g,m))}}return function(n){var r,a,o,s,l,h,u,c,f,d,p,g,m={point:v,lineStart:y,lineEnd:x,polygonStart:function(){n.polygonStart(),m.lineStart=w},polygonEnd:function(){n.polygonEnd(),m.lineStart=y}};function v(A,O){A=i(A,O),n.point(A[0],A[1])}function y(){c=NaN,m.point=b,n.lineStart()}function b(A,O){var _=$n([A,O]),C=i(A,O);t(c,f,u,d,p,g,c=C[0],f=C[1],u=A,d=_[0],p=_[1],g=_[2],Du,n),n.point(c,f)}function x(){m.point=v,n.lineEnd()}function w(){y(),m.point=k,m.lineEnd=S}function k(A,O){b(r=A,O),a=c,o=f,s=d,l=p,h=g,m.point=b}function S(){t(c,f,u,d,p,g,a,o,r,s,l,h,Du,n),m.lineEnd=x,x()}return m}}var Rv=Ar({point:function(i,e){this.stream.point(i*pe,e*pe)}});function Lv(i){return Ar({point:function(e,t){var n=i(e,t);return this.stream.point(n[0],n[1])}})}function Tv(i,e,t,n,r){function a(o,s){return o*=n,s*=r,[e+i*o,t-i*s]}return a.invert=function(o,s){return[(o-e)/i*n,(t-s)/i*r]},a}function Bu(i,e,t,n,r,a){if(!a)return Tv(i,e,t,n,r);var o=he(a),s=ue(a),l=o*i,h=s*i,u=o/i,c=s/i,f=(s*t-o*e)/i,d=(s*e+o*t)/i;function p(g,m){return g*=n,m*=r,[l*g-h*m+e,t-h*g-l*m]}return p.invert=function(g,m){return[n*(u*g-c*m+f),r*(d-c*g-u*m)]},p}function ln(i){return ul(function(){return i})()}function ul(i){var e,t=150,n=480,r=250,a=0,o=0,s=0,l=0,h=0,u,c=0,f=1,d=1,p=null,g=ds,m=null,v,y,b,x=cr,w=.5,k,S,A,O,_;function C(R){return A(R[0]*pe,R[1]*pe)}function M(R){return R=A.invert(R[0],R[1]),R&&[R[0]*We,R[1]*We]}C.stream=function(R){return O&&_===R?O:O=Rv(Lv(u)(g(k(x(_=R)))))},C.preclip=function(R){return arguments.length?(g=R,p=void 0,E()):g},C.postclip=function(R){return arguments.length?(x=R,m=v=y=b=null,E()):x},C.clipAngle=function(R){return arguments.length?(g=+R?Bh(p=R*pe):(p=null,ds),E()):p*We},C.clipExtent=function(R){return arguments.length?(x=R==null?(m=v=y=b=null,cr):ja(m=+R[0][0],v=+R[0][1],y=+R[1][0],b=+R[1][1]),E()):m==null?null:[[m,v],[y,b]]},C.scale=function(R){return arguments.length?(t=+R,P()):t},C.translate=function(R){return arguments.length?(n=+R[0],r=+R[1],P()):[n,r]},C.center=function(R){return arguments.length?(a=R[0]%360*pe,o=R[1]%360*pe,P()):[a*We,o*We]},C.rotate=function(R){return arguments.length?(s=R[0]%360*pe,l=R[1]%360*pe,h=R.length>2?R[2]%360*pe:0,P()):[s*We,l*We,h*We]},C.angle=function(R){return arguments.length?(c=R%360*pe,P()):c*We},C.reflectX=function(R){return arguments.length?(f=R?-1:1,P()):f<0},C.reflectY=function(R){return arguments.length?(d=R?-1:1,P()):d<0},C.precision=function(R){return arguments.length?(k=Hu(S,w=R*R),E()):at(w)},C.fitExtent=function(R,T){return Wa(C,R,T)},C.fitSize=function(R,T){return ol(C,R,T)},C.fitWidth=function(R,T){return sl(C,R,T)},C.fitHeight=function(R,T){return ll(C,R,T)};function P(){var R=Bu(t,0,0,f,d,c).apply(null,e(a,o)),T=Bu(t,n-R[0],r-R[1],f,d,c);return u=il(s,l,h),S=hs(e,T),A=hs(u,S),k=Hu(S,w),E()}function E(){return O=_=null,C}return function(){return e=i.apply(this,arguments),C.invert=e.invert&&M,P()}}function cl(i){var e=0,t=Oe/3,n=ul(i),r=n(e,t);return r.parallels=function(a){return arguments.length?n(e=a[0]*pe,t=a[1]*pe):[e*We,t*We]},r}function Iv(i){var e=he(i);function t(n,r){return[n*e,ue(r)/e]}return t.invert=function(n,r){return[n/e,kt(r*e)]},t}function tf(i,e){var t=ue(i),n=(t+ue(e))/2;if(Me(n)<ge)return Iv(i);var r=1+t*(2*n-t),a=at(r)/n;function o(s,l){var h=at(r-2*n*ue(l))/n;return[h*ue(s*=n),a-h*he(s)]}return o.invert=function(s,l){var h=a-l,u=St(s,Me(h))*Yt(h);return h*n<0&&(u-=Oe*Yt(s)*Yt(h)),[u/n,kt((r-(s*s+h*h)*n*n)/(2*n))]},o}function Ra(){return cl(tf).scale(155.424).center([0,33.6442])}function nf(){return Ra().parallels([29.5,45.5]).scale(1070).translate([480,250]).rotate([96,0]).center([-.6,38.7])}function Nv(i){var e=i.length;return{point:function(t,n){for(var r=-1;++r<e;)i[r].point(t,n)},sphere:function(){for(var t=-1;++t<e;)i[t].sphere()},lineStart:function(){for(var t=-1;++t<e;)i[t].lineStart()},lineEnd:function(){for(var t=-1;++t<e;)i[t].lineEnd()},polygonStart:function(){for(var t=-1;++t<e;)i[t].polygonStart()},polygonEnd:function(){for(var t=-1;++t<e;)i[t].polygonEnd()}}}function Fv(){var i,e,t=nf(),n,r=Ra().rotate([154,0]).center([-2,58.5]).parallels([55,65]),a,o=Ra().rotate([157,0]).center([-3,19.9]).parallels([8,18]),s,l,h={point:function(f,d){l=[f,d]}};function u(f){var d=f[0],p=f[1];return l=null,n.point(d,p),l||(a.point(d,p),l)||(s.point(d,p),l)}u.invert=function(f){var d=t.scale(),p=t.translate(),g=(f[0]-p[0])/d,m=(f[1]-p[1])/d;return(m>=.12&&m<.234&&g>=-.425&&g<-.214?r:m>=.166&&m<.234&&g>=-.214&&g<-.115?o:t).invert(f)},u.stream=function(f){return i&&e===f?i:i=Nv([t.stream(e=f),r.stream(f),o.stream(f)])},u.precision=function(f){return arguments.length?(t.precision(f),r.precision(f),o.precision(f),c()):t.precision()},u.scale=function(f){return arguments.length?(t.scale(f),r.scale(f*.35),o.scale(f),u.translate(t.translate())):t.scale()},u.translate=function(f){if(!arguments.length)return t.translate();var d=t.scale(),p=+f[0],g=+f[1];return n=t.translate(f).clipExtent([[p-.455*d,g-.238*d],[p+.455*d,g+.238*d]]).stream(h),a=r.translate([p-.307*d,g+.201*d]).clipExtent([[p-.425*d+ge,g+.12*d+ge],[p-.214*d-ge,g+.234*d-ge]]).stream(h),s=o.translate([p-.205*d,g+.212*d]).clipExtent([[p-.214*d+ge,g+.166*d+ge],[p-.115*d-ge,g+.234*d-ge]]).stream(h),c()},u.fitExtent=function(f,d){return Wa(u,f,d)},u.fitSize=function(f,d){return ol(u,f,d)},u.fitWidth=function(f,d){return sl(u,f,d)},u.fitHeight=function(f,d){return ll(u,f,d)};function c(){return i=e=null,u}return u.scale(1070)}function rf(i){return function(e,t){var n=he(e),r=he(t),a=i(n*r);return a===1/0?[2,0]:[a*r*ue(e),a*ue(t)]}}function Cr(i){return function(e,t){var n=at(e*e+t*t),r=i(n),a=ue(r),o=he(r);return[St(e*a,n*o),kt(n&&t*a/n)]}}var hl=rf(function(i){return at(2/(1+i))});hl.invert=Cr(function(i){return 2*kt(i/2)});function zv(){return ln(hl).scale(124.75).clipAngle(180-.001)}var fl=rf(function(i){return(i=kh(i))&&i/ue(i)});fl.invert=Cr(function(i){return i});function Dv(){return ln(fl).scale(79.4188).clipAngle(180-.001)}function _r(i,e){return[i,ca(tl((Ke+e)/2))]}_r.invert=function(i,e){return[i,2*Oi(Sh(e))-Ke]};function Hv(){return af(_r).scale(961/wt)}function af(i){var e=ln(i),t=e.center,n=e.scale,r=e.translate,a=e.clipExtent,o=null,s,l,h;e.scale=function(c){return arguments.length?(n(c),u()):n()},e.translate=function(c){return arguments.length?(r(c),u()):r()},e.center=function(c){return arguments.length?(t(c),u()):t()},e.clipExtent=function(c){return arguments.length?(c==null?o=s=l=h=null:(o=+c[0][0],s=+c[0][1],l=+c[1][0],h=+c[1][1]),u()):o==null?null:[[o,s],[l,h]]};function u(){var c=Oe*n(),f=e(Ih(e.rotate()).invert([0,0]));return a(o==null?[[f[0]-c,f[1]-c],[f[0]+c,f[1]+c]]:i===_r?[[Math.max(f[0]-c,o),s],[Math.min(f[0]+c,l),h]]:[[o,Math.max(f[1]-c,s)],[l,Math.min(f[1]+c,h)]])}return u()}function Xr(i){return tl((Ke+i)/2)}function of(i,e){var t=he(i),n=i===e?ue(i):ca(t/he(e))/ca(Xr(e)/Xr(i)),r=t*ko(Xr(i),n)/n;if(!n)return _r;function a(o,s){r>0?s<-Ke+ge&&(s=-Ke+ge):s>Ke-ge&&(s=Ke-ge);var l=r/ko(Xr(s),n);return[l*ue(n*o),r-l*he(n*o)]}return a.invert=function(o,s){var l=r-s,h=Yt(n)*at(o*o+l*l),u=St(o,Me(l))*Yt(l);return l*n<0&&(u-=Oe*Yt(o)*Yt(l)),[u/n,2*Oi(ko(r/h,1/n))-Ke]},a}function Bv(){return cl(of).scale(109.5).parallels([30,30])}function fr(i,e){return[i,e]}fr.invert=fr;function Xv(){return ln(fr).scale(152.63)}function sf(i,e){var t=he(i),n=i===e?ue(i):(t-he(e))/(e-i),r=t/n+i;if(Me(n)<ge)return fr;function a(o,s){var l=r-s,h=n*o;return[l*ue(h),r-l*he(h)]}return a.invert=function(o,s){var l=r-s,h=St(o,Me(l))*Yt(l);return l*n<0&&(h-=Oe*Yt(o)*Yt(l)),[h/n,r-Yt(n)*at(o*o+l*l)]},a}function Yv(){return cl(sf).scale(131.154).center([0,13.9389])}var Ji=1.340264,er=-.081106,tr=893e-6,nr=.003796,La=at(3)/2,jv=12;function dl(i,e){var t=kt(La*ue(e)),n=t*t,r=n*n*n;return[i*he(t)/(La*(Ji+3*er*n+r*(7*tr+9*nr*n))),t*(Ji+er*n+r*(tr+nr*n))]}dl.invert=function(i,e){for(var t=e,n=t*t,r=n*n*n,a=0,o,s,l;a<jv&&(s=t*(Ji+er*n+r*(tr+nr*n))-e,l=Ji+3*er*n+r*(7*tr+9*nr*n),t-=o=s/l,n=t*t,r=n*n*n,!(Me(o)<ur));++a);return[La*i*(Ji+3*er*n+r*(7*tr+9*nr*n))/he(t),kt(ue(t)/La)]};function Wv(){return ln(dl).scale(177.158)}function gl(i,e){var t=he(e),n=he(i)*t;return[t*ue(i)/n,ue(e)/n]}gl.invert=Cr(Oi);function qv(){return ln(gl).scale(144.049).clipAngle(60)}function Vv(){var i=1,e=0,t=0,n=1,r=1,a=0,o,s,l=null,h,u,c,f=1,d=1,p=Ar({point:function(x,w){var k=b([x,w]);this.stream.point(k[0],k[1])}}),g=cr,m,v;function y(){return f=i*n,d=i*r,m=v=null,b}function b(x){var w=x[0]*f,k=x[1]*d;if(a){var S=k*o-w*s;w=w*o+k*s,k=S}return[w+e,k+t]}return b.invert=function(x){var w=x[0]-e,k=x[1]-t;if(a){var S=k*o+w*s;w=w*o-k*s,k=S}return[w/f,k/d]},b.stream=function(x){return m&&v===x?m:m=p(g(v=x))},b.postclip=function(x){return arguments.length?(g=x,l=h=u=c=null,y()):g},b.clipExtent=function(x){return arguments.length?(g=x==null?(l=h=u=c=null,cr):ja(l=+x[0][0],h=+x[0][1],u=+x[1][0],c=+x[1][1]),y()):l==null?null:[[l,h],[u,c]]},b.scale=function(x){return arguments.length?(i=+x,y()):i},b.translate=function(x){return arguments.length?(e=+x[0],t=+x[1],y()):[e,t]},b.angle=function(x){return arguments.length?(a=x%360*pe,s=ue(a),o=he(a),y()):a*We},b.reflectX=function(x){return arguments.length?(n=x?-1:1,y()):n<0},b.reflectY=function(x){return arguments.length?(r=x?-1:1,y()):r<0},b.fitExtent=function(x,w){return Wa(b,x,w)},b.fitSize=function(x,w){return ol(b,x,w)},b.fitWidth=function(x,w){return sl(b,x,w)},b.fitHeight=function(x,w){return ll(b,x,w)},b}function pl(i,e){var t=e*e,n=t*t;return[i*(.8707-.131979*t+n*(-.013791+n*(.003971*t-.001529*n))),e*(1.007226+t*(.015085+n*(-.044475+.028874*t-.005916*n)))]}pl.invert=function(i,e){var t=e,n=25,r;do{var a=t*t,o=a*a;t-=r=(t*(1.007226+a*(.015085+o*(-.044475+.028874*a-.005916*o)))-e)/(1.007226+a*(.015085*3+o*(-.044475*7+.028874*9*a-.005916*11*o)))}while(Me(r)>ge&&--n>0);return[i/(.8707+(a=t*t)*(-.131979+a*(-.013791+a*a*a*(.003971-.001529*a)))),t]};function Gv(){return ln(pl).scale(175.295)}function vl(i,e){return[he(e)*ue(i),ue(e)]}vl.invert=Cr(kt);function $v(){return ln(vl).scale(249.5).clipAngle(90+ge)}function ml(i,e){var t=he(e),n=1+he(i)*t;return[t*ue(i)/n,ue(e)/n]}ml.invert=Cr(function(i){return 2*Oi(i)});function Uv(){return ln(ml).scale(250).clipAngle(142)}function yl(i,e){return[ca(tl((Ke+e)/2)),-i]}yl.invert=function(i,e){return[-e,2*Oi(Sh(i))-Ke]};function Zv(){var i=af(yl),e=i.center,t=i.rotate;return i.center=function(n){return arguments.length?e([-n[1],n[0]]):(n=e(),[n[1],-n[0]])},i.rotate=function(n){return arguments.length?t([n[0],n[1],n.length>2?n[2]+90:90]):(n=t(),[n[0],n[1],n[2]-90])},t([0,0,90]).scale(159.155)}const Kv=Object.freeze(Object.defineProperty({__proto__:null,geoAlbers:nf,geoAlbersUsa:Fv,geoArea:Yp,geoAzimuthalEqualArea:zv,geoAzimuthalEqualAreaRaw:hl,geoAzimuthalEquidistant:Dv,geoAzimuthalEquidistantRaw:fl,geoBounds:Vp,geoCentroid:Qp,geoCircle:Jp,geoClipAntimeridian:ds,geoClipCircle:Bh,geoClipExtent:ov,geoClipRectangle:ja,geoConicConformal:Bv,geoConicConformalRaw:of,geoConicEqualArea:Ra,geoConicEqualAreaRaw:tf,geoConicEquidistant:Yv,geoConicEquidistantRaw:sf,geoContains:dv,geoDistance:ka,geoEqualEarth:Wv,geoEqualEarthRaw:dl,geoEquirectangular:Xv,geoEquirectangularRaw:fr,geoGnomonic:qv,geoGnomonicRaw:gl,geoGraticule:rl,geoGraticule10:gv,geoIdentity:Vv,geoInterpolate:pv,geoLength:Xh,geoMercator:Hv,geoMercatorRaw:_r,geoNaturalEarth1:Gv,geoNaturalEarth1Raw:pl,geoOrthographic:$v,geoOrthographicRaw:vl,geoPath:ef,geoProjection:ln,geoProjectionMutator:ul,geoRotation:Ih,geoStereographic:Uv,geoStereographicRaw:ml,geoStream:qt,geoTransform:Ev,geoTransverseMercator:Zv,geoTransverseMercatorRaw:yl},Symbol.toStringTag,{value:"Module"}));function Qv(i){return i}function Jv(i){if(i==null)return Qv;var e,t,n=i.scale[0],r=i.scale[1],a=i.translate[0],o=i.translate[1];return function(s,l){l||(e=t=0);var h=2,u=s.length,c=new Array(u);for(c[0]=(e+=s[0])*n+a,c[1]=(t+=s[1])*r+o;h<u;)c[h]=s[h],++h;return c}}function em(i,e){for(var t,n=i.length,r=n-e;r<--n;)t=i[r],i[r++]=i[n],i[n]=t}function tm(i,e){return typeof e=="string"&&(e=i.objects[e]),e.type==="GeometryCollection"?{type:"FeatureCollection",features:e.geometries.map(function(t){return Xu(i,t)})}:Xu(i,e)}function Xu(i,e){var t=e.id,n=e.bbox,r=e.properties==null?{}:e.properties,a=lf(i,e);return t==null&&n==null?{type:"Feature",properties:r,geometry:a}:n==null?{type:"Feature",id:t,properties:r,geometry:a}:{type:"Feature",id:t,bbox:n,properties:r,geometry:a}}function lf(i,e){var t=Jv(i.transform),n=i.arcs;function r(u,c){c.length&&c.pop();for(var f=n[u<0?~u:u],d=0,p=f.length;d<p;++d)c.push(t(f[d],d));u<0&&em(c,p)}function a(u){return t(u)}function o(u){for(var c=[],f=0,d=u.length;f<d;++f)r(u[f],c);return c.length<2&&c.push(c[0]),c}function s(u){for(var c=o(u);c.length<4;)c.push(c[0]);return c}function l(u){return u.map(s)}function h(u){var c=u.type,f;switch(c){case"GeometryCollection":return{type:c,geometries:u.geometries.map(h)};case"Point":f=a(u.coordinates);break;case"MultiPoint":f=u.coordinates.map(a);break;case"LineString":f=o(u.arcs);break;case"MultiLineString":f=u.arcs.map(o);break;case"Polygon":f=l(u.arcs);break;case"MultiPolygon":f=u.arcs.map(l);break;default:return null}return{type:c,coordinates:f}}return h(e)}function nm(i,e){var t={},n={},r={},a=[],o=-1;e.forEach(function(h,u){var c=i.arcs[h<0?~h:h],f;c.length<3&&!c[1][0]&&!c[1][1]&&(f=e[++o],e[o]=h,e[u]=f)}),e.forEach(function(h){var u=s(h),c=u[0],f=u[1],d,p;if(d=r[c])if(delete r[d.end],d.push(h),d.end=f,p=n[f]){delete n[p.start];var g=p===d?d:d.concat(p);n[g.start=d.start]=r[g.end=p.end]=g}else n[d.start]=r[d.end]=d;else if(d=n[f])if(delete n[d.start],d.unshift(h),d.start=c,p=r[c]){delete r[p.end];var m=p===d?d:p.concat(d);n[m.start=p.start]=r[m.end=d.end]=m}else n[d.start]=r[d.end]=d;else d=[h],n[d.start=c]=r[d.end=f]=d});function s(h){var u=i.arcs[h<0?~h:h],c=u[0],f;return i.transform?(f=[0,0],u.forEach(function(d){f[0]+=d[0],f[1]+=d[1]})):f=u[u.length-1],h<0?[f,c]:[c,f]}function l(h,u){for(var c in h){var f=h[c];delete u[f.start],delete f.start,delete f.end,f.forEach(function(d){t[d<0?~d:d]=1}),a.push(f)}}return l(r,n),l(n,r),e.forEach(function(h){t[h<0?~h:h]||a.push([h])}),a}function Yu(i){return lf(i,im.apply(this,arguments))}function im(i,e,t){var n,r,a;if(arguments.length>1)n=rm(i,e,t);else for(r=0,n=new Array(a=i.arcs.length);r<a;++r)n[r]=r;return{type:"MultiLineString",arcs:nm(i,n)}}function rm(i,e,t){var n=[],r=[],a;function o(c){var f=c<0?~c:c;(r[f]||(r[f]=[])).push({i:c,g:a})}function s(c){c.forEach(o)}function l(c){c.forEach(s)}function h(c){c.forEach(l)}function u(c){switch(a=c,c.type){case"GeometryCollection":c.geometries.forEach(u);break;case"LineString":s(c.arcs);break;case"MultiLineString":case"Polygon":l(c.arcs);break;case"MultiPolygon":h(c.arcs);break}}return u(e),r.forEach(t==null?function(c){n.push(c[0].i)}:function(c){t(c[0].g,c[c.length-1].g)&&n.push(c[0].i)}),n}var am={value:()=>{}};function xl(){for(var i=0,e=arguments.length,t={},n;i<e;++i){if(!(n=arguments[i]+"")||n in t||/[\s.]/.test(n))throw new Error("illegal type: "+n);t[n]=[]}return new ea(t)}function ea(i){this._=i}function om(i,e){return i.trim().split(/^|\s+/).map(function(t){var n="",r=t.indexOf(".");if(r>=0&&(n=t.slice(r+1),t=t.slice(0,r)),t&&!e.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:n}})}ea.prototype=xl.prototype={constructor:ea,on:function(i,e){var t=this._,n=om(i+"",t),r,a=-1,o=n.length;if(arguments.length<2){for(;++a<o;)if((r=(i=n[a]).type)&&(r=sm(t[r],i.name)))return r;return}if(e!=null&&typeof e!="function")throw new Error("invalid callback: "+e);for(;++a<o;)if(r=(i=n[a]).type)t[r]=ju(t[r],i.name,e);else if(e==null)for(r in t)t[r]=ju(t[r],i.name,null);return this},copy:function(){var i={},e=this._;for(var t in e)i[t]=e[t].slice();return new ea(i)},call:function(i,e){if((r=arguments.length-2)>0)for(var t=new Array(r),n=0,r,a;n<r;++n)t[n]=arguments[n+2];if(!this._.hasOwnProperty(i))throw new Error("unknown type: "+i);for(a=this._[i],n=0,r=a.length;n<r;++n)a[n].value.apply(e,t)},apply:function(i,e,t){if(!this._.hasOwnProperty(i))throw new Error("unknown type: "+i);for(var n=this._[i],r=0,a=n.length;r<a;++r)n[r].value.apply(e,t)}};function sm(i,e){for(var t=0,n=i.length,r;t<n;++t)if((r=i[t]).name===e)return r.value}function ju(i,e,t){for(var n=0,r=i.length;n<r;++n)if(i[n].name===e){i[n]=am,i=i.slice(0,n).concat(i.slice(n+1));break}return t!=null&&i.push({name:e,value:t}),i}var _s="http://www.w3.org/1999/xhtml";const Wu={svg:"http://www.w3.org/2000/svg",xhtml:_s,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function qa(i){var e=i+="",t=e.indexOf(":");return t>=0&&(e=i.slice(0,t))!=="xmlns"&&(i=i.slice(t+1)),Wu.hasOwnProperty(e)?{space:Wu[e],local:i}:i}function lm(i){return function(){var e=this.ownerDocument,t=this.namespaceURI;return t===_s&&e.documentElement.namespaceURI===_s?e.createElement(i):e.createElementNS(t,i)}}function um(i){return function(){return this.ownerDocument.createElementNS(i.space,i.local)}}function uf(i){var e=qa(i);return(e.local?um:lm)(e)}function cm(){}function bl(i){return i==null?cm:function(){return this.querySelector(i)}}function hm(i){typeof i!="function"&&(i=bl(i));for(var e=this._groups,t=e.length,n=new Array(t),r=0;r<t;++r)for(var a=e[r],o=a.length,s=n[r]=new Array(o),l,h,u=0;u<o;++u)(l=a[u])&&(h=i.call(l,l.__data__,u,a))&&("__data__"in l&&(h.__data__=l.__data__),s[u]=h);return new Mt(n,this._parents)}function cf(i){return typeof i=="object"&&"length"in i?i:Array.from(i)}function fm(){return[]}function hf(i){return i==null?fm:function(){return this.querySelectorAll(i)}}function dm(i){return function(){var e=i.apply(this,arguments);return e==null?[]:cf(e)}}function gm(i){typeof i=="function"?i=dm(i):i=hf(i);for(var e=this._groups,t=e.length,n=[],r=[],a=0;a<t;++a)for(var o=e[a],s=o.length,l,h=0;h<s;++h)(l=o[h])&&(n.push(i.call(l,l.__data__,h,o)),r.push(l));return new Mt(n,r)}function ff(i){return function(){return this.matches(i)}}function df(i){return function(e){return e.matches(i)}}var pm=Array.prototype.find;function vm(i){return function(){return pm.call(this.children,i)}}function mm(){return this.firstElementChild}function ym(i){return this.select(i==null?mm:vm(typeof i=="function"?i:df(i)))}var xm=Array.prototype.filter;function bm(){return this.children}function wm(i){return function(){return xm.call(this.children,i)}}function Sm(i){return this.selectAll(i==null?bm:wm(typeof i=="function"?i:df(i)))}function km(i){typeof i!="function"&&(i=ff(i));for(var e=this._groups,t=e.length,n=new Array(t),r=0;r<t;++r)for(var a=e[r],o=a.length,s=n[r]=[],l,h=0;h<o;++h)(l=a[h])&&i.call(l,l.__data__,h,a)&&s.push(l);return new Mt(n,this._parents)}function gf(i){return new Array(i.length)}function Am(){return new Mt(this._enter||this._groups.map(gf),this._parents)}function Ta(i,e){this.ownerDocument=i.ownerDocument,this.namespaceURI=i.namespaceURI,this._next=null,this._parent=i,this.__data__=e}Ta.prototype={constructor:Ta,appendChild:function(i){return this._parent.insertBefore(i,this._next)},insertBefore:function(i,e){return this._parent.insertBefore(i,e)},querySelector:function(i){return this._parent.querySelector(i)},querySelectorAll:function(i){return this._parent.querySelectorAll(i)}};function Cm(i){return function(){return i}}function _m(i,e,t,n,r,a){for(var o=0,s,l=e.length,h=a.length;o<h;++o)(s=e[o])?(s.__data__=a[o],n[o]=s):t[o]=new Ta(i,a[o]);for(;o<l;++o)(s=e[o])&&(r[o]=s)}function Em(i,e,t,n,r,a,o){var s,l,h=new Map,u=e.length,c=a.length,f=new Array(u),d;for(s=0;s<u;++s)(l=e[s])&&(f[s]=d=o.call(l,l.__data__,s,e)+"",h.has(d)?r[s]=l:h.set(d,l));for(s=0;s<c;++s)d=o.call(i,a[s],s,a)+"",(l=h.get(d))?(n[s]=l,l.__data__=a[s],h.delete(d)):t[s]=new Ta(i,a[s]);for(s=0;s<u;++s)(l=e[s])&&h.get(f[s])===l&&(r[s]=l)}function Om(i){return i.__data__}function Mm(i,e){if(!arguments.length)return Array.from(this,Om);var t=e?Em:_m,n=this._parents,r=this._groups;typeof i!="function"&&(i=Cm(i));for(var a=r.length,o=new Array(a),s=new Array(a),l=new Array(a),h=0;h<a;++h){var u=n[h],c=r[h],f=c.length,d=cf(i.call(u,u&&u.__data__,h,n)),p=d.length,g=s[h]=new Array(p),m=o[h]=new Array(p),v=l[h]=new Array(f);t(u,c,g,m,v,d,e);for(var y=0,b=0,x,w;y<p;++y)if(x=g[y]){for(y>=b&&(b=y+1);!(w=m[b])&&++b<p;);x._next=w||null}}return o=new Mt(o,n),o._enter=s,o._exit=l,o}function Pm(){return new Mt(this._exit||this._groups.map(gf),this._parents)}function Rm(i,e,t){var n=this.enter(),r=this,a=this.exit();return n=typeof i=="function"?i(n):n.append(i+""),e!=null&&(r=e(r)),t==null?a.remove():t(a),n&&r?n.merge(r).order():r}function Lm(i){if(!(i instanceof Mt))throw new Error("invalid merge");for(var e=this._groups,t=i._groups,n=e.length,r=t.length,a=Math.min(n,r),o=new Array(n),s=0;s<a;++s)for(var l=e[s],h=t[s],u=l.length,c=o[s]=new Array(u),f,d=0;d<u;++d)(f=l[d]||h[d])&&(c[d]=f);for(;s<n;++s)o[s]=e[s];return new Mt(o,this._parents)}function Tm(){for(var i=this._groups,e=-1,t=i.length;++e<t;)for(var n=i[e],r=n.length-1,a=n[r],o;--r>=0;)(o=n[r])&&(a&&o.compareDocumentPosition(a)^4&&a.parentNode.insertBefore(o,a),a=o);return this}function Im(i){i||(i=Nm);function e(c,f){return c&&f?i(c.__data__,f.__data__):!c-!f}for(var t=this._groups,n=t.length,r=new Array(n),a=0;a<n;++a){for(var o=t[a],s=o.length,l=r[a]=new Array(s),h,u=0;u<s;++u)(h=o[u])&&(l[u]=h);l.sort(e)}return new Mt(r,this._parents).order()}function Nm(i,e){return i<e?-1:i>e?1:i>=e?0:NaN}function Fm(){var i=arguments[0];return arguments[0]=this,i.apply(null,arguments),this}function zm(){return Array.from(this)}function Dm(){for(var i=this._groups,e=0,t=i.length;e<t;++e)for(var n=i[e],r=0,a=n.length;r<a;++r){var o=n[r];if(o)return o}return null}function Hm(){let i=0;for(const e of this)++i;return i}function Bm(){return!this.node()}function Xm(i){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],a=0,o=r.length,s;a<o;++a)(s=r[a])&&i.call(s,s.__data__,a,r);return this}function Ym(i){return function(){this.removeAttribute(i)}}function jm(i){return function(){this.removeAttributeNS(i.space,i.local)}}function Wm(i,e){return function(){this.setAttribute(i,e)}}function qm(i,e){return function(){this.setAttributeNS(i.space,i.local,e)}}function Vm(i,e){return function(){var t=e.apply(this,arguments);t==null?this.removeAttribute(i):this.setAttribute(i,t)}}function Gm(i,e){return function(){var t=e.apply(this,arguments);t==null?this.removeAttributeNS(i.space,i.local):this.setAttributeNS(i.space,i.local,t)}}function $m(i,e){var t=qa(i);if(arguments.length<2){var n=this.node();return t.local?n.getAttributeNS(t.space,t.local):n.getAttribute(t)}return this.each((e==null?t.local?jm:Ym:typeof e=="function"?t.local?Gm:Vm:t.local?qm:Wm)(t,e))}function pf(i){return i.ownerDocument&&i.ownerDocument.defaultView||i.document&&i||i.defaultView}function Um(i){return function(){this.style.removeProperty(i)}}function Zm(i,e,t){return function(){this.style.setProperty(i,e,t)}}function Km(i,e,t){return function(){var n=e.apply(this,arguments);n==null?this.style.removeProperty(i):this.style.setProperty(i,n,t)}}function Qm(i,e,t){return arguments.length>1?this.each((e==null?Um:typeof e=="function"?Km:Zm)(i,e,t??"")):wi(this.node(),i)}function wi(i,e){return i.style.getPropertyValue(e)||pf(i).getComputedStyle(i,null).getPropertyValue(e)}function Jm(i){return function(){delete this[i]}}function ey(i,e){return function(){this[i]=e}}function ty(i,e){return function(){var t=e.apply(this,arguments);t==null?delete this[i]:this[i]=t}}function ny(i,e){return arguments.length>1?this.each((e==null?Jm:typeof e=="function"?ty:ey)(i,e)):this.node()[i]}function vf(i){return i.trim().split(/^|\s+/)}function wl(i){return i.classList||new mf(i)}function mf(i){this._node=i,this._names=vf(i.getAttribute("class")||"")}mf.prototype={add:function(i){var e=this._names.indexOf(i);e<0&&(this._names.push(i),this._node.setAttribute("class",this._names.join(" ")))},remove:function(i){var e=this._names.indexOf(i);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(i){return this._names.indexOf(i)>=0}};function yf(i,e){for(var t=wl(i),n=-1,r=e.length;++n<r;)t.add(e[n])}function xf(i,e){for(var t=wl(i),n=-1,r=e.length;++n<r;)t.remove(e[n])}function iy(i){return function(){yf(this,i)}}function ry(i){return function(){xf(this,i)}}function ay(i,e){return function(){(e.apply(this,arguments)?yf:xf)(this,i)}}function oy(i,e){var t=vf(i+"");if(arguments.length<2){for(var n=wl(this.node()),r=-1,a=t.length;++r<a;)if(!n.contains(t[r]))return!1;return!0}return this.each((typeof e=="function"?ay:e?iy:ry)(t,e))}function sy(){this.textContent=""}function ly(i){return function(){this.textContent=i}}function uy(i){return function(){var e=i.apply(this,arguments);this.textContent=e??""}}function cy(i){return arguments.length?this.each(i==null?sy:(typeof i=="function"?uy:ly)(i)):this.node().textContent}function hy(){this.innerHTML=""}function fy(i){return function(){this.innerHTML=i}}function dy(i){return function(){var e=i.apply(this,arguments);this.innerHTML=e??""}}function gy(i){return arguments.length?this.each(i==null?hy:(typeof i=="function"?dy:fy)(i)):this.node().innerHTML}function py(){this.nextSibling&&this.parentNode.appendChild(this)}function vy(){return this.each(py)}function my(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function yy(){return this.each(my)}function xy(i){var e=typeof i=="function"?i:uf(i);return this.select(function(){return this.appendChild(e.apply(this,arguments))})}function by(){return null}function wy(i,e){var t=typeof i=="function"?i:uf(i),n=e==null?by:typeof e=="function"?e:bl(e);return this.select(function(){return this.insertBefore(t.apply(this,arguments),n.apply(this,arguments)||null)})}function Sy(){var i=this.parentNode;i&&i.removeChild(this)}function ky(){return this.each(Sy)}function Ay(){var i=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(i,this.nextSibling):i}function Cy(){var i=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(i,this.nextSibling):i}function _y(i){return this.select(i?Cy:Ay)}function Ey(i){return arguments.length?this.property("__data__",i):this.node().__data__}function Oy(i){return function(e){i.call(this,e,this.__data__)}}function My(i){return i.trim().split(/^|\s+/).map(function(e){var t="",n=e.indexOf(".");return n>=0&&(t=e.slice(n+1),e=e.slice(0,n)),{type:e,name:t}})}function Py(i){return function(){var e=this.__on;if(e){for(var t=0,n=-1,r=e.length,a;t<r;++t)a=e[t],(!i.type||a.type===i.type)&&a.name===i.name?this.removeEventListener(a.type,a.listener,a.options):e[++n]=a;++n?e.length=n:delete this.__on}}}function Ry(i,e,t){return function(){var n=this.__on,r,a=Oy(e);if(n){for(var o=0,s=n.length;o<s;++o)if((r=n[o]).type===i.type&&r.name===i.name){this.removeEventListener(r.type,r.listener,r.options),this.addEventListener(r.type,r.listener=a,r.options=t),r.value=e;return}}this.addEventListener(i.type,a,t),r={type:i.type,name:i.name,value:e,listener:a,options:t},n?n.push(r):this.__on=[r]}}function Ly(i,e,t){var n=My(i+""),r,a=n.length,o;if(arguments.length<2){var s=this.node().__on;if(s){for(var l=0,h=s.length,u;l<h;++l)for(r=0,u=s[l];r<a;++r)if((o=n[r]).type===u.type&&o.name===u.name)return u.value}return}for(s=e?Ry:Py,r=0;r<a;++r)this.each(s(n[r],e,t));return this}function bf(i,e,t){var n=pf(i),r=n.CustomEvent;typeof r=="function"?r=new r(e,t):(r=n.document.createEvent("Event"),t?(r.initEvent(e,t.bubbles,t.cancelable),r.detail=t.detail):r.initEvent(e,!1,!1)),i.dispatchEvent(r)}function Ty(i,e){return function(){return bf(this,i,e)}}function Iy(i,e){return function(){return bf(this,i,e.apply(this,arguments))}}function Ny(i,e){return this.each((typeof e=="function"?Iy:Ty)(i,e))}function*Fy(){for(var i=this._groups,e=0,t=i.length;e<t;++e)for(var n=i[e],r=0,a=n.length,o;r<a;++r)(o=n[r])&&(yield o)}var wf=[null];function Mt(i,e){this._groups=i,this._parents=e}function Er(){return new Mt([[document.documentElement]],wf)}function zy(){return this}Mt.prototype=Er.prototype={constructor:Mt,select:hm,selectAll:gm,selectChild:ym,selectChildren:Sm,filter:km,data:Mm,enter:Am,exit:Pm,join:Rm,merge:Lm,selection:zy,order:Tm,sort:Im,call:Fm,nodes:zm,node:Dm,size:Hm,empty:Bm,each:Xm,attr:$m,style:Qm,property:ny,classed:oy,text:cy,html:gy,raise:vy,lower:yy,append:xy,insert:wy,remove:ky,clone:_y,datum:Ey,on:Ly,dispatch:Ny,[Symbol.iterator]:Fy};function gn(i){return typeof i=="string"?new Mt([[document.querySelector(i)]],[document.documentElement]):new Mt([[i]],wf)}function Dy(i){let e;for(;e=i.sourceEvent;)i=e;return i}function In(i,e){if(i=Dy(i),e===void 0&&(e=i.currentTarget),e){var t=e.ownerSVGElement||e;if(t.createSVGPoint){var n=t.createSVGPoint();return n.x=i.clientX,n.y=i.clientY,n=n.matrixTransform(e.getScreenCTM().inverse()),[n.x,n.y]}if(e.getBoundingClientRect){var r=e.getBoundingClientRect();return[i.clientX-r.left-e.clientLeft,i.clientY-r.top-e.clientTop]}}return[i.pageX,i.pageY]}function Es(i){i.preventDefault(),i.stopImmediatePropagation()}function Hy(i){var e=i.document.documentElement,t=gn(i).on("dragstart.drag",Es,!0);"onselectstart"in e?t.on("selectstart.drag",Es,!0):(e.__noselect=e.style.MozUserSelect,e.style.MozUserSelect="none")}function By(i,e){var t=i.document.documentElement,n=gn(i).on("dragstart.drag",null);e&&(n.on("click.drag",Es,!0),setTimeout(function(){n.on("click.drag",null)},0)),"onselectstart"in t?n.on("selectstart.drag",null):(t.style.MozUserSelect=t.__noselect,delete t.__noselect)}function Sl(i,e,t){i.prototype=e.prototype=t,t.constructor=i}function Sf(i,e){var t=Object.create(i.prototype);for(var n in e)t[n]=e[n];return t}function Or(){}var dr=.7,Ia=1/dr,di="\\s*([+-]?\\d+)\\s*",gr="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",on="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Xy=/^#([0-9a-f]{3,8})$/,Yy=new RegExp(`^rgb\\(${di},${di},${di}\\)$`),jy=new RegExp(`^rgb\\(${on},${on},${on}\\)$`),Wy=new RegExp(`^rgba\\(${di},${di},${di},${gr}\\)$`),qy=new RegExp(`^rgba\\(${on},${on},${on},${gr}\\)$`),Vy=new RegExp(`^hsl\\(${gr},${on},${on}\\)$`),Gy=new RegExp(`^hsla\\(${gr},${on},${on},${gr}\\)$`),qu={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};Sl(Or,pr,{copy(i){return Object.assign(new this.constructor,this,i)},displayable(){return this.rgb().displayable()},hex:Vu,formatHex:Vu,formatHex8:$y,formatHsl:Uy,formatRgb:Gu,toString:Gu});function Vu(){return this.rgb().formatHex()}function $y(){return this.rgb().formatHex8()}function Uy(){return kf(this).formatHsl()}function Gu(){return this.rgb().formatRgb()}function pr(i){var e,t;return i=(i+"").trim().toLowerCase(),(e=Xy.exec(i))?(t=e[1].length,e=parseInt(e[1],16),t===6?$u(e):t===3?new Ot(e>>8&15|e>>4&240,e>>4&15|e&240,(e&15)<<4|e&15,1):t===8?Yr(e>>24&255,e>>16&255,e>>8&255,(e&255)/255):t===4?Yr(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|e&240,((e&15)<<4|e&15)/255):null):(e=Yy.exec(i))?new Ot(e[1],e[2],e[3],1):(e=jy.exec(i))?new Ot(e[1]*255/100,e[2]*255/100,e[3]*255/100,1):(e=Wy.exec(i))?Yr(e[1],e[2],e[3],e[4]):(e=qy.exec(i))?Yr(e[1]*255/100,e[2]*255/100,e[3]*255/100,e[4]):(e=Vy.exec(i))?Ku(e[1],e[2]/100,e[3]/100,1):(e=Gy.exec(i))?Ku(e[1],e[2]/100,e[3]/100,e[4]):qu.hasOwnProperty(i)?$u(qu[i]):i==="transparent"?new Ot(NaN,NaN,NaN,0):null}function $u(i){return new Ot(i>>16&255,i>>8&255,i&255,1)}function Yr(i,e,t,n){return n<=0&&(i=e=t=NaN),new Ot(i,e,t,n)}function Zy(i){return i instanceof Or||(i=pr(i)),i?(i=i.rgb(),new Ot(i.r,i.g,i.b,i.opacity)):new Ot}function Os(i,e,t,n){return arguments.length===1?Zy(i):new Ot(i,e,t,n??1)}function Ot(i,e,t,n){this.r=+i,this.g=+e,this.b=+t,this.opacity=+n}Sl(Ot,Os,Sf(Or,{brighter(i){return i=i==null?Ia:Math.pow(Ia,i),new Ot(this.r*i,this.g*i,this.b*i,this.opacity)},darker(i){return i=i==null?dr:Math.pow(dr,i),new Ot(this.r*i,this.g*i,this.b*i,this.opacity)},rgb(){return this},clamp(){return new Ot(qn(this.r),qn(this.g),qn(this.b),Na(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Uu,formatHex:Uu,formatHex8:Ky,formatRgb:Zu,toString:Zu}));function Uu(){return`#${jn(this.r)}${jn(this.g)}${jn(this.b)}`}function Ky(){return`#${jn(this.r)}${jn(this.g)}${jn(this.b)}${jn((isNaN(this.opacity)?1:this.opacity)*255)}`}function Zu(){const i=Na(this.opacity);return`${i===1?"rgb(":"rgba("}${qn(this.r)}, ${qn(this.g)}, ${qn(this.b)}${i===1?")":`, ${i})`}`}function Na(i){return isNaN(i)?1:Math.max(0,Math.min(1,i))}function qn(i){return Math.max(0,Math.min(255,Math.round(i)||0))}function jn(i){return i=qn(i),(i<16?"0":"")+i.toString(16)}function Ku(i,e,t,n){return n<=0?i=e=t=NaN:t<=0||t>=1?i=e=NaN:e<=0&&(i=NaN),new Gt(i,e,t,n)}function kf(i){if(i instanceof Gt)return new Gt(i.h,i.s,i.l,i.opacity);if(i instanceof Or||(i=pr(i)),!i)return new Gt;if(i instanceof Gt)return i;i=i.rgb();var e=i.r/255,t=i.g/255,n=i.b/255,r=Math.min(e,t,n),a=Math.max(e,t,n),o=NaN,s=a-r,l=(a+r)/2;return s?(e===a?o=(t-n)/s+(t<n)*6:t===a?o=(n-e)/s+2:o=(e-t)/s+4,s/=l<.5?a+r:2-a-r,o*=60):s=l>0&&l<1?0:o,new Gt(o,s,l,i.opacity)}function Qy(i,e,t,n){return arguments.length===1?kf(i):new Gt(i,e,t,n??1)}function Gt(i,e,t,n){this.h=+i,this.s=+e,this.l=+t,this.opacity=+n}Sl(Gt,Qy,Sf(Or,{brighter(i){return i=i==null?Ia:Math.pow(Ia,i),new Gt(this.h,this.s,this.l*i,this.opacity)},darker(i){return i=i==null?dr:Math.pow(dr,i),new Gt(this.h,this.s,this.l*i,this.opacity)},rgb(){var i=this.h%360+(this.h<0)*360,e=isNaN(i)||isNaN(this.s)?0:this.s,t=this.l,n=t+(t<.5?t:1-t)*e,r=2*t-n;return new Ot(Oo(i>=240?i-240:i+120,r,n),Oo(i,r,n),Oo(i<120?i+240:i-120,r,n),this.opacity)},clamp(){return new Gt(Qu(this.h),jr(this.s),jr(this.l),Na(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const i=Na(this.opacity);return`${i===1?"hsl(":"hsla("}${Qu(this.h)}, ${jr(this.s)*100}%, ${jr(this.l)*100}%${i===1?")":`, ${i})`}`}}));function Qu(i){return i=(i||0)%360,i<0?i+360:i}function jr(i){return Math.max(0,Math.min(1,i||0))}function Oo(i,e,t){return(i<60?e+(t-e)*i/60:i<180?t:i<240?e+(t-e)*(240-i)/60:e)*255}var Jy=1e-12;function Ju(i){return((i=Math.exp(i))+1/i)/2}function ex(i){return((i=Math.exp(i))-1/i)/2}function tx(i){return((i=Math.exp(2*i))-1)/(i+1)}const nx=function i(e,t,n){function r(a,o){var s=a[0],l=a[1],h=a[2],u=o[0],c=o[1],f=o[2],d=u-s,p=c-l,g=d*d+p*p,m,v;if(g<Jy)v=Math.log(f/h)/e,m=function(S){return[s+S*d,l+S*p,h*Math.exp(e*S*v)]};else{var y=Math.sqrt(g),b=(f*f-h*h+n*g)/(2*h*t*y),x=(f*f-h*h-n*g)/(2*f*t*y),w=Math.log(Math.sqrt(b*b+1)-b),k=Math.log(Math.sqrt(x*x+1)-x);v=(k-w)/e,m=function(S){var A=S*v,O=Ju(w),_=h/(t*y)*(O*tx(e*A+w)-ex(w));return[s+_*d,l+_*p,h*O/Ju(e*A+w)]}}return m.duration=v*1e3*e/Math.SQRT2,m}return r.rho=function(a){var o=Math.max(.001,+a),s=o*o,l=s*s;return i(o,s,l)},r}(Math.SQRT2,2,4);var Si=0,Gi=0,zi=0,Af=1e3,Fa,$i,za=0,Zn=0,Va=0,vr=typeof performance=="object"&&performance.now?performance:Date,Cf=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(i){setTimeout(i,17)};function kl(){return Zn||(Cf(ix),Zn=vr.now()+Va)}function ix(){Zn=0}function Da(){this._call=this._time=this._next=null}Da.prototype=_f.prototype={constructor:Da,restart:function(i,e,t){if(typeof i!="function")throw new TypeError("callback is not a function");t=(t==null?kl():+t)+(e==null?0:+e),!this._next&&$i!==this&&($i?$i._next=this:Fa=this,$i=this),this._call=i,this._time=t,Ms()},stop:function(){this._call&&(this._call=null,this._time=1/0,Ms())}};function _f(i,e,t){var n=new Da;return n.restart(i,e,t),n}function rx(){kl(),++Si;for(var i=Fa,e;i;)(e=Zn-i._time)>=0&&i._call.call(null,e),i=i._next;--Si}function ec(){Zn=(za=vr.now())+Va,Si=Gi=0;try{rx()}finally{Si=0,ox(),Zn=0}}function ax(){var i=vr.now(),e=i-za;e>Af&&(Va-=e,za=i)}function ox(){for(var i,e=Fa,t,n=1/0;e;)e._call?(n>e._time&&(n=e._time),i=e,e=e._next):(t=e._next,e._next=null,e=i?i._next=t:Fa=t);$i=i,Ms(n)}function Ms(i){if(!Si){Gi&&(Gi=clearTimeout(Gi));var e=i-Zn;e>24?(i<1/0&&(Gi=setTimeout(ec,i-vr.now()-Va)),zi&&(zi=clearInterval(zi))):(zi||(za=vr.now(),zi=setInterval(ax,Af)),Si=1,Cf(ec))}}function tc(i,e,t){var n=new Da;return e=e==null?0:+e,n.restart(r=>{n.stop(),i(r+e)},e,t),n}var sx=xl("start","end","cancel","interrupt"),lx=[],Ef=0,nc=1,Ps=2,ta=3,ic=4,Rs=5,na=6;function Ga(i,e,t,n,r,a){var o=i.__transition;if(!o)i.__transition={};else if(t in o)return;ux(i,t,{name:e,index:n,group:r,on:sx,tween:lx,time:a.time,delay:a.delay,duration:a.duration,ease:a.ease,timer:null,state:Ef})}function Al(i,e){var t=Jt(i,e);if(t.state>Ef)throw new Error("too late; already scheduled");return t}function un(i,e){var t=Jt(i,e);if(t.state>ta)throw new Error("too late; already running");return t}function Jt(i,e){var t=i.__transition;if(!t||!(t=t[e]))throw new Error("transition not found");return t}function ux(i,e,t){var n=i.__transition,r;n[e]=t,t.timer=_f(a,0,t.time);function a(h){t.state=nc,t.timer.restart(o,t.delay,t.time),t.delay<=h&&o(h-t.delay)}function o(h){var u,c,f,d;if(t.state!==nc)return l();for(u in n)if(d=n[u],d.name===t.name){if(d.state===ta)return tc(o);d.state===ic?(d.state=na,d.timer.stop(),d.on.call("interrupt",i,i.__data__,d.index,d.group),delete n[u]):+u<e&&(d.state=na,d.timer.stop(),d.on.call("cancel",i,i.__data__,d.index,d.group),delete n[u])}if(tc(function(){t.state===ta&&(t.state=ic,t.timer.restart(s,t.delay,t.time),s(h))}),t.state=Ps,t.on.call("start",i,i.__data__,t.index,t.group),t.state===Ps){for(t.state=ta,r=new Array(f=t.tween.length),u=0,c=-1;u<f;++u)(d=t.tween[u].value.call(i,i.__data__,t.index,t.group))&&(r[++c]=d);r.length=c+1}}function s(h){for(var u=h<t.duration?t.ease.call(null,h/t.duration):(t.timer.restart(l),t.state=Rs,1),c=-1,f=r.length;++c<f;)r[c].call(i,u);t.state===Rs&&(t.on.call("end",i,i.__data__,t.index,t.group),l())}function l(){t.state=na,t.timer.stop(),delete n[e];for(var h in n)return;delete i.__transition}}function ia(i,e){var t=i.__transition,n,r,a=!0,o;if(t){e=e==null?null:e+"";for(o in t){if((n=t[o]).name!==e){a=!1;continue}r=n.state>Ps&&n.state<Rs,n.state=na,n.timer.stop(),n.on.call(r?"interrupt":"cancel",i,i.__data__,n.index,n.group),delete t[o]}a&&delete i.__transition}}function cx(i){return this.each(function(){ia(this,i)})}const Of=i=>()=>i;function hx(i,e){return function(t){return i+t*e}}function fx(i,e,t){return i=Math.pow(i,t),e=Math.pow(e,t)-i,t=1/t,function(n){return Math.pow(i+n*e,t)}}function dx(i){return(i=+i)==1?Mf:function(e,t){return t-e?fx(e,t,i):Of(isNaN(e)?t:e)}}function Mf(i,e){var t=e-i;return t?hx(i,t):Of(isNaN(i)?e:i)}const rc=function i(e){var t=dx(e);function n(r,a){var o=t((r=Os(r)).r,(a=Os(a)).r),s=t(r.g,a.g),l=t(r.b,a.b),h=Mf(r.opacity,a.opacity);return function(u){return r.r=o(u),r.g=s(u),r.b=l(u),r.opacity=h(u),r+""}}return n.gamma=i,n}(1);function Sn(i,e){return i=+i,e=+e,function(t){return i*(1-t)+e*t}}var Ls=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Mo=new RegExp(Ls.source,"g");function gx(i){return function(){return i}}function px(i){return function(e){return i(e)+""}}function vx(i,e){var t=Ls.lastIndex=Mo.lastIndex=0,n,r,a,o=-1,s=[],l=[];for(i=i+"",e=e+"";(n=Ls.exec(i))&&(r=Mo.exec(e));)(a=r.index)>t&&(a=e.slice(t,a),s[o]?s[o]+=a:s[++o]=a),(n=n[0])===(r=r[0])?s[o]?s[o]+=r:s[++o]=r:(s[++o]=null,l.push({i:o,x:Sn(n,r)})),t=Mo.lastIndex;return t<e.length&&(a=e.slice(t),s[o]?s[o]+=a:s[++o]=a),s.length<2?l[0]?px(l[0].x):gx(e):(e=l.length,function(h){for(var u=0,c;u<e;++u)s[(c=l[u]).i]=c.x(h);return s.join("")})}var ac=180/Math.PI,Ts={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function Pf(i,e,t,n,r,a){var o,s,l;return(o=Math.sqrt(i*i+e*e))&&(i/=o,e/=o),(l=i*t+e*n)&&(t-=i*l,n-=e*l),(s=Math.sqrt(t*t+n*n))&&(t/=s,n/=s,l/=s),i*n<e*t&&(i=-i,e=-e,l=-l,o=-o),{translateX:r,translateY:a,rotate:Math.atan2(e,i)*ac,skewX:Math.atan(l)*ac,scaleX:o,scaleY:s}}var Wr;function mx(i){const e=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(i+"");return e.isIdentity?Ts:Pf(e.a,e.b,e.c,e.d,e.e,e.f)}function yx(i){return i==null||(Wr||(Wr=document.createElementNS("http://www.w3.org/2000/svg","g")),Wr.setAttribute("transform",i),!(i=Wr.transform.baseVal.consolidate()))?Ts:(i=i.matrix,Pf(i.a,i.b,i.c,i.d,i.e,i.f))}function Rf(i,e,t,n){function r(h){return h.length?h.pop()+" ":""}function a(h,u,c,f,d,p){if(h!==c||u!==f){var g=d.push("translate(",null,e,null,t);p.push({i:g-4,x:Sn(h,c)},{i:g-2,x:Sn(u,f)})}else(c||f)&&d.push("translate("+c+e+f+t)}function o(h,u,c,f){h!==u?(h-u>180?u+=360:u-h>180&&(h+=360),f.push({i:c.push(r(c)+"rotate(",null,n)-2,x:Sn(h,u)})):u&&c.push(r(c)+"rotate("+u+n)}function s(h,u,c,f){h!==u?f.push({i:c.push(r(c)+"skewX(",null,n)-2,x:Sn(h,u)}):u&&c.push(r(c)+"skewX("+u+n)}function l(h,u,c,f,d,p){if(h!==c||u!==f){var g=d.push(r(d)+"scale(",null,",",null,")");p.push({i:g-4,x:Sn(h,c)},{i:g-2,x:Sn(u,f)})}else(c!==1||f!==1)&&d.push(r(d)+"scale("+c+","+f+")")}return function(h,u){var c=[],f=[];return h=i(h),u=i(u),a(h.translateX,h.translateY,u.translateX,u.translateY,c,f),o(h.rotate,u.rotate,c,f),s(h.skewX,u.skewX,c,f),l(h.scaleX,h.scaleY,u.scaleX,u.scaleY,c,f),h=u=null,function(d){for(var p=-1,g=f.length,m;++p<g;)c[(m=f[p]).i]=m.x(d);return c.join("")}}}var xx=Rf(mx,"px, ","px)","deg)"),bx=Rf(yx,", ",")",")");function wx(i,e){var t,n;return function(){var r=un(this,i),a=r.tween;if(a!==t){n=t=a;for(var o=0,s=n.length;o<s;++o)if(n[o].name===e){n=n.slice(),n.splice(o,1);break}}r.tween=n}}function Sx(i,e,t){var n,r;if(typeof t!="function")throw new Error;return function(){var a=un(this,i),o=a.tween;if(o!==n){r=(n=o).slice();for(var s={name:e,value:t},l=0,h=r.length;l<h;++l)if(r[l].name===e){r[l]=s;break}l===h&&r.push(s)}a.tween=r}}function kx(i,e){var t=this._id;if(i+="",arguments.length<2){for(var n=Jt(this.node(),t).tween,r=0,a=n.length,o;r<a;++r)if((o=n[r]).name===i)return o.value;return null}return this.each((e==null?wx:Sx)(t,i,e))}function Cl(i,e,t){var n=i._id;return i.each(function(){var r=un(this,n);(r.value||(r.value={}))[e]=t.apply(this,arguments)}),function(r){return Jt(r,n).value[e]}}function Lf(i,e){var t;return(typeof e=="number"?Sn:e instanceof pr?rc:(t=pr(e))?(e=t,rc):vx)(i,e)}function Ax(i){return function(){this.removeAttribute(i)}}function Cx(i){return function(){this.removeAttributeNS(i.space,i.local)}}function _x(i,e,t){var n,r=t+"",a;return function(){var o=this.getAttribute(i);return o===r?null:o===n?a:a=e(n=o,t)}}function Ex(i,e,t){var n,r=t+"",a;return function(){var o=this.getAttributeNS(i.space,i.local);return o===r?null:o===n?a:a=e(n=o,t)}}function Ox(i,e,t){var n,r,a;return function(){var o,s=t(this),l;return s==null?void this.removeAttribute(i):(o=this.getAttribute(i),l=s+"",o===l?null:o===n&&l===r?a:(r=l,a=e(n=o,s)))}}function Mx(i,e,t){var n,r,a;return function(){var o,s=t(this),l;return s==null?void this.removeAttributeNS(i.space,i.local):(o=this.getAttributeNS(i.space,i.local),l=s+"",o===l?null:o===n&&l===r?a:(r=l,a=e(n=o,s)))}}function Px(i,e){var t=qa(i),n=t==="transform"?bx:Lf;return this.attrTween(i,typeof e=="function"?(t.local?Mx:Ox)(t,n,Cl(this,"attr."+i,e)):e==null?(t.local?Cx:Ax)(t):(t.local?Ex:_x)(t,n,e))}function Rx(i,e){return function(t){this.setAttribute(i,e.call(this,t))}}function Lx(i,e){return function(t){this.setAttributeNS(i.space,i.local,e.call(this,t))}}function Tx(i,e){var t,n;function r(){var a=e.apply(this,arguments);return a!==n&&(t=(n=a)&&Lx(i,a)),t}return r._value=e,r}function Ix(i,e){var t,n;function r(){var a=e.apply(this,arguments);return a!==n&&(t=(n=a)&&Rx(i,a)),t}return r._value=e,r}function Nx(i,e){var t="attr."+i;if(arguments.length<2)return(t=this.tween(t))&&t._value;if(e==null)return this.tween(t,null);if(typeof e!="function")throw new Error;var n=qa(i);return this.tween(t,(n.local?Tx:Ix)(n,e))}function Fx(i,e){return function(){Al(this,i).delay=+e.apply(this,arguments)}}function zx(i,e){return e=+e,function(){Al(this,i).delay=e}}function Dx(i){var e=this._id;return arguments.length?this.each((typeof i=="function"?Fx:zx)(e,i)):Jt(this.node(),e).delay}function Hx(i,e){return function(){un(this,i).duration=+e.apply(this,arguments)}}function Bx(i,e){return e=+e,function(){un(this,i).duration=e}}function Xx(i){var e=this._id;return arguments.length?this.each((typeof i=="function"?Hx:Bx)(e,i)):Jt(this.node(),e).duration}function Yx(i,e){if(typeof e!="function")throw new Error;return function(){un(this,i).ease=e}}function jx(i){var e=this._id;return arguments.length?this.each(Yx(e,i)):Jt(this.node(),e).ease}function Wx(i,e){return function(){var t=e.apply(this,arguments);if(typeof t!="function")throw new Error;un(this,i).ease=t}}function qx(i){if(typeof i!="function")throw new Error;return this.each(Wx(this._id,i))}function Vx(i){typeof i!="function"&&(i=ff(i));for(var e=this._groups,t=e.length,n=new Array(t),r=0;r<t;++r)for(var a=e[r],o=a.length,s=n[r]=[],l,h=0;h<o;++h)(l=a[h])&&i.call(l,l.__data__,h,a)&&s.push(l);return new xn(n,this._parents,this._name,this._id)}function Gx(i){if(i._id!==this._id)throw new Error;for(var e=this._groups,t=i._groups,n=e.length,r=t.length,a=Math.min(n,r),o=new Array(n),s=0;s<a;++s)for(var l=e[s],h=t[s],u=l.length,c=o[s]=new Array(u),f,d=0;d<u;++d)(f=l[d]||h[d])&&(c[d]=f);for(;s<n;++s)o[s]=e[s];return new xn(o,this._parents,this._name,this._id)}function $x(i){return(i+"").trim().split(/^|\s+/).every(function(e){var t=e.indexOf(".");return t>=0&&(e=e.slice(0,t)),!e||e==="start"})}function Ux(i,e,t){var n,r,a=$x(e)?Al:un;return function(){var o=a(this,i),s=o.on;s!==n&&(r=(n=s).copy()).on(e,t),o.on=r}}function Zx(i,e){var t=this._id;return arguments.length<2?Jt(this.node(),t).on.on(i):this.each(Ux(t,i,e))}function Kx(i){return function(){var e=this.parentNode;for(var t in this.__transition)if(+t!==i)return;e&&e.removeChild(this)}}function Qx(){return this.on("end.remove",Kx(this._id))}function Jx(i){var e=this._name,t=this._id;typeof i!="function"&&(i=bl(i));for(var n=this._groups,r=n.length,a=new Array(r),o=0;o<r;++o)for(var s=n[o],l=s.length,h=a[o]=new Array(l),u,c,f=0;f<l;++f)(u=s[f])&&(c=i.call(u,u.__data__,f,s))&&("__data__"in u&&(c.__data__=u.__data__),h[f]=c,Ga(h[f],e,t,f,h,Jt(u,t)));return new xn(a,this._parents,e,t)}function e0(i){var e=this._name,t=this._id;typeof i!="function"&&(i=hf(i));for(var n=this._groups,r=n.length,a=[],o=[],s=0;s<r;++s)for(var l=n[s],h=l.length,u,c=0;c<h;++c)if(u=l[c]){for(var f=i.call(u,u.__data__,c,l),d,p=Jt(u,t),g=0,m=f.length;g<m;++g)(d=f[g])&&Ga(d,e,t,g,f,p);a.push(f),o.push(u)}return new xn(a,o,e,t)}var t0=Er.prototype.constructor;function n0(){return new t0(this._groups,this._parents)}function i0(i,e){var t,n,r;return function(){var a=wi(this,i),o=(this.style.removeProperty(i),wi(this,i));return a===o?null:a===t&&o===n?r:r=e(t=a,n=o)}}function Tf(i){return function(){this.style.removeProperty(i)}}function r0(i,e,t){var n,r=t+"",a;return function(){var o=wi(this,i);return o===r?null:o===n?a:a=e(n=o,t)}}function a0(i,e,t){var n,r,a;return function(){var o=wi(this,i),s=t(this),l=s+"";return s==null&&(l=s=(this.style.removeProperty(i),wi(this,i))),o===l?null:o===n&&l===r?a:(r=l,a=e(n=o,s))}}function o0(i,e){var t,n,r,a="style."+e,o="end."+a,s;return function(){var l=un(this,i),h=l.on,u=l.value[a]==null?s||(s=Tf(e)):void 0;(h!==t||r!==u)&&(n=(t=h).copy()).on(o,r=u),l.on=n}}function s0(i,e,t){var n=(i+="")=="transform"?xx:Lf;return e==null?this.styleTween(i,i0(i,n)).on("end.style."+i,Tf(i)):typeof e=="function"?this.styleTween(i,a0(i,n,Cl(this,"style."+i,e))).each(o0(this._id,i)):this.styleTween(i,r0(i,n,e),t).on("end.style."+i,null)}function l0(i,e,t){return function(n){this.style.setProperty(i,e.call(this,n),t)}}function u0(i,e,t){var n,r;function a(){var o=e.apply(this,arguments);return o!==r&&(n=(r=o)&&l0(i,o,t)),n}return a._value=e,a}function c0(i,e,t){var n="style."+(i+="");if(arguments.length<2)return(n=this.tween(n))&&n._value;if(e==null)return this.tween(n,null);if(typeof e!="function")throw new Error;return this.tween(n,u0(i,e,t??""))}function h0(i){return function(){this.textContent=i}}function f0(i){return function(){var e=i(this);this.textContent=e??""}}function d0(i){return this.tween("text",typeof i=="function"?f0(Cl(this,"text",i)):h0(i==null?"":i+""))}function g0(i){return function(e){this.textContent=i.call(this,e)}}function p0(i){var e,t;function n(){var r=i.apply(this,arguments);return r!==t&&(e=(t=r)&&g0(r)),e}return n._value=i,n}function v0(i){var e="text";if(arguments.length<1)return(e=this.tween(e))&&e._value;if(i==null)return this.tween(e,null);if(typeof i!="function")throw new Error;return this.tween(e,p0(i))}function m0(){for(var i=this._name,e=this._id,t=If(),n=this._groups,r=n.length,a=0;a<r;++a)for(var o=n[a],s=o.length,l,h=0;h<s;++h)if(l=o[h]){var u=Jt(l,e);Ga(l,i,t,h,o,{time:u.time+u.delay+u.duration,delay:0,duration:u.duration,ease:u.ease})}return new xn(n,this._parents,i,t)}function y0(){var i,e,t=this,n=t._id,r=t.size();return new Promise(function(a,o){var s={value:o},l={value:function(){--r===0&&a()}};t.each(function(){var h=un(this,n),u=h.on;u!==i&&(e=(i=u).copy(),e._.cancel.push(s),e._.interrupt.push(s),e._.end.push(l)),h.on=e}),r===0&&a()})}var x0=0;function xn(i,e,t,n){this._groups=i,this._parents=e,this._name=t,this._id=n}function If(){return++x0}var Nn=Er.prototype;xn.prototype={constructor:xn,select:Jx,selectAll:e0,filter:Vx,merge:Gx,selection:n0,transition:m0,call:Nn.call,nodes:Nn.nodes,node:Nn.node,size:Nn.size,empty:Nn.empty,each:Nn.each,on:Zx,attr:Px,attrTween:Nx,style:s0,styleTween:c0,text:d0,textTween:v0,remove:Qx,tween:kx,delay:Dx,duration:Xx,ease:jx,easeVarying:qx,end:y0,[Symbol.iterator]:Nn[Symbol.iterator]};function b0(i){return((i*=2)<=1?i*i*i:(i-=2)*i*i+2)/2}var w0={time:null,delay:0,duration:250,ease:b0};function S0(i,e){for(var t;!(t=i.__transition)||!(t=t[e]);)if(!(i=i.parentNode))throw new Error(`transition ${e} not found`);return t}function k0(i){var e,t;i instanceof xn?(e=i._id,i=i._name):(e=If(),(t=w0).time=kl(),i=i==null?null:i+"");for(var n=this._groups,r=n.length,a=0;a<r;++a)for(var o=n[a],s=o.length,l,h=0;h<s;++h)(l=o[h])&&Ga(l,i,e,h,o,t||S0(l,e));return new xn(n,this._parents,i,e)}Er.prototype.interrupt=cx;Er.prototype.transition=k0;const qr=i=>()=>i;function A0(i,{sourceEvent:e,target:t,transform:n,dispatch:r}){Object.defineProperties(this,{type:{value:i,enumerable:!0,configurable:!0},sourceEvent:{value:e,enumerable:!0,configurable:!0},target:{value:t,enumerable:!0,configurable:!0},transform:{value:n,enumerable:!0,configurable:!0},_:{value:r}})}function vn(i,e,t){this.k=i,this.x=e,this.y=t}vn.prototype={constructor:vn,scale:function(i){return i===1?this:new vn(this.k*i,this.x,this.y)},translate:function(i,e){return i===0&e===0?this:new vn(this.k,this.x+this.k*i,this.y+this.k*e)},apply:function(i){return[i[0]*this.k+this.x,i[1]*this.k+this.y]},applyX:function(i){return i*this.k+this.x},applyY:function(i){return i*this.k+this.y},invert:function(i){return[(i[0]-this.x)/this.k,(i[1]-this.y)/this.k]},invertX:function(i){return(i-this.x)/this.k},invertY:function(i){return(i-this.y)/this.k},rescaleX:function(i){return i.copy().domain(i.range().map(this.invertX,this).map(i.invert,i))},rescaleY:function(i){return i.copy().domain(i.range().map(this.invertY,this).map(i.invert,i))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var _l=new vn(1,0,0);vn.prototype;function Po(i){i.stopImmediatePropagation()}function Di(i){i.preventDefault(),i.stopImmediatePropagation()}function C0(i){return(!i.ctrlKey||i.type==="wheel")&&!i.button}function _0(){var i=this;return i instanceof SVGElement?(i=i.ownerSVGElement||i,i.hasAttribute("viewBox")?(i=i.viewBox.baseVal,[[i.x,i.y],[i.x+i.width,i.y+i.height]]):[[0,0],[i.width.baseVal.value,i.height.baseVal.value]]):[[0,0],[i.clientWidth,i.clientHeight]]}function oc(){return this.__zoom||_l}function E0(i){return-i.deltaY*(i.deltaMode===1?.05:i.deltaMode?1:.002)*(i.ctrlKey?10:1)}function O0(){return navigator.maxTouchPoints||"ontouchstart"in this}function M0(i,e,t){var n=i.invertX(e[0][0])-t[0][0],r=i.invertX(e[1][0])-t[1][0],a=i.invertY(e[0][1])-t[0][1],o=i.invertY(e[1][1])-t[1][1];return i.translate(r>n?(n+r)/2:Math.min(0,n)||Math.max(0,r),o>a?(a+o)/2:Math.min(0,a)||Math.max(0,o))}function P0(){var i=C0,e=_0,t=M0,n=E0,r=O0,a=[0,1/0],o=[[-1/0,-1/0],[1/0,1/0]],s=250,l=nx,h=xl("start","zoom","end"),u,c,f,d=500,p=150,g=0,m=10;function v(E){E.property("__zoom",oc).on("wheel.zoom",A).on("mousedown.zoom",O).on("dblclick.zoom",_).filter(r).on("touchstart.zoom",C).on("touchmove.zoom",M).on("touchend.zoom touchcancel.zoom",P).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}v.transform=function(E,R,T,F){var B=E.selection?E.selection():E;B.property("__zoom",oc),E!==B?w(E,R,T,F):B.interrupt().each(function(){k(this,arguments).event(F).start().zoom(null,typeof R=="function"?R.apply(this,arguments):R).end()})},v.scaleBy=function(E,R,T,F){v.scaleTo(E,function(){var B=this.__zoom.k,D=typeof R=="function"?R.apply(this,arguments):R;return B*D},T,F)},v.scaleTo=function(E,R,T,F){v.transform(E,function(){var B=e.apply(this,arguments),D=this.__zoom,N=T==null?x(B):typeof T=="function"?T.apply(this,arguments):T,L=D.invert(N),I=typeof R=="function"?R.apply(this,arguments):R;return t(b(y(D,I),N,L),B,o)},T,F)},v.translateBy=function(E,R,T,F){v.transform(E,function(){return t(this.__zoom.translate(typeof R=="function"?R.apply(this,arguments):R,typeof T=="function"?T.apply(this,arguments):T),e.apply(this,arguments),o)},null,F)},v.translateTo=function(E,R,T,F,B){v.transform(E,function(){var D=e.apply(this,arguments),N=this.__zoom,L=F==null?x(D):typeof F=="function"?F.apply(this,arguments):F;return t(_l.translate(L[0],L[1]).scale(N.k).translate(typeof R=="function"?-R.apply(this,arguments):-R,typeof T=="function"?-T.apply(this,arguments):-T),D,o)},F,B)};function y(E,R){return R=Math.max(a[0],Math.min(a[1],R)),R===E.k?E:new vn(R,E.x,E.y)}function b(E,R,T){var F=R[0]-T[0]*E.k,B=R[1]-T[1]*E.k;return F===E.x&&B===E.y?E:new vn(E.k,F,B)}function x(E){return[(+E[0][0]+ +E[1][0])/2,(+E[0][1]+ +E[1][1])/2]}function w(E,R,T,F){E.on("start.zoom",function(){k(this,arguments).event(F).start()}).on("interrupt.zoom end.zoom",function(){k(this,arguments).event(F).end()}).tween("zoom",function(){var B=this,D=arguments,N=k(B,D).event(F),L=e.apply(B,D),I=T==null?x(L):typeof T=="function"?T.apply(B,D):T,H=Math.max(L[1][0]-L[0][0],L[1][1]-L[0][1]),Y=B.__zoom,W=typeof R=="function"?R.apply(B,D):R,z=l(Y.invert(I).concat(H/Y.k),W.invert(I).concat(H/W.k));return function(X){if(X===1)X=W;else{var G=z(X),V=H/G[2];X=new vn(V,I[0]-G[0]*V,I[1]-G[1]*V)}N.zoom(null,X)}})}function k(E,R,T){return!T&&E.__zooming||new S(E,R)}function S(E,R){this.that=E,this.args=R,this.active=0,this.sourceEvent=null,this.extent=e.apply(E,R),this.taps=0}S.prototype={event:function(E){return E&&(this.sourceEvent=E),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(E,R){return this.mouse&&E!=="mouse"&&(this.mouse[1]=R.invert(this.mouse[0])),this.touch0&&E!=="touch"&&(this.touch0[1]=R.invert(this.touch0[0])),this.touch1&&E!=="touch"&&(this.touch1[1]=R.invert(this.touch1[0])),this.that.__zoom=R,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(E){var R=gn(this.that).datum();h.call(E,this.that,new A0(E,{sourceEvent:this.sourceEvent,target:v,type:E,transform:this.that.__zoom,dispatch:h}),R)}};function A(E,...R){if(!i.apply(this,arguments))return;var T=k(this,R).event(E),F=this.__zoom,B=Math.max(a[0],Math.min(a[1],F.k*Math.pow(2,n.apply(this,arguments)))),D=In(E);if(T.wheel)(T.mouse[0][0]!==D[0]||T.mouse[0][1]!==D[1])&&(T.mouse[1]=F.invert(T.mouse[0]=D)),clearTimeout(T.wheel);else{if(F.k===B)return;T.mouse=[D,F.invert(D)],ia(this),T.start()}Di(E),T.wheel=setTimeout(N,p),T.zoom("mouse",t(b(y(F,B),T.mouse[0],T.mouse[1]),T.extent,o));function N(){T.wheel=null,T.end()}}function O(E,...R){if(f||!i.apply(this,arguments))return;var T=k(this,R,!0).event(E),F=gn(E.view).on("mousemove.zoom",I,!0).on("mouseup.zoom",H,!0),B=In(E,D),D=E.currentTarget,N=E.clientX,L=E.clientY;Hy(E.view),Po(E),T.mouse=[B,this.__zoom.invert(B)],ia(this),T.start();function I(Y){if(Di(Y),!T.moved){var W=Y.clientX-N,z=Y.clientY-L;T.moved=W*W+z*z>g}T.event(Y).zoom("mouse",t(b(T.that.__zoom,T.mouse[0]=In(Y,D),T.mouse[1]),T.extent,o))}function H(Y){F.on("mousemove.zoom mouseup.zoom",null),By(Y.view,T.moved),Di(Y),T.event(Y).end()}}function _(E,...R){if(i.apply(this,arguments)){var T=this.__zoom,F=In(E.changedTouches?E.changedTouches[0]:E,this),B=T.invert(F),D=T.k*(E.shiftKey?.5:2),N=t(b(y(T,D),F,B),e.apply(this,R),o);Di(E),s>0?gn(this).transition().duration(s).call(w,N,F,E):gn(this).call(v.transform,N,F,E)}}function C(E,...R){if(i.apply(this,arguments)){var T=E.touches,F=T.length,B=k(this,R,E.changedTouches.length===F).event(E),D,N,L,I;for(Po(E),N=0;N<F;++N)L=T[N],I=In(L,this),I=[I,this.__zoom.invert(I),L.identifier],B.touch0?!B.touch1&&B.touch0[2]!==I[2]&&(B.touch1=I,B.taps=0):(B.touch0=I,D=!0,B.taps=1+!!u);u&&(u=clearTimeout(u)),D&&(B.taps<2&&(c=I[0],u=setTimeout(function(){u=null},d)),ia(this),B.start())}}function M(E,...R){if(this.__zooming){var T=k(this,R).event(E),F=E.changedTouches,B=F.length,D,N,L,I;for(Di(E),D=0;D<B;++D)N=F[D],L=In(N,this),T.touch0&&T.touch0[2]===N.identifier?T.touch0[0]=L:T.touch1&&T.touch1[2]===N.identifier&&(T.touch1[0]=L);if(N=T.that.__zoom,T.touch1){var H=T.touch0[0],Y=T.touch0[1],W=T.touch1[0],z=T.touch1[1],X=(X=W[0]-H[0])*X+(X=W[1]-H[1])*X,G=(G=z[0]-Y[0])*G+(G=z[1]-Y[1])*G;N=y(N,Math.sqrt(X/G)),L=[(H[0]+W[0])/2,(H[1]+W[1])/2],I=[(Y[0]+z[0])/2,(Y[1]+z[1])/2]}else if(T.touch0)L=T.touch0[0],I=T.touch0[1];else return;T.zoom("touch",t(b(N,L,I),T.extent,o))}}function P(E,...R){if(this.__zooming){var T=k(this,R).event(E),F=E.changedTouches,B=F.length,D,N;for(Po(E),f&&clearTimeout(f),f=setTimeout(function(){f=null},d),D=0;D<B;++D)N=F[D],T.touch0&&T.touch0[2]===N.identifier?delete T.touch0:T.touch1&&T.touch1[2]===N.identifier&&delete T.touch1;if(T.touch1&&!T.touch0&&(T.touch0=T.touch1,delete T.touch1),T.touch0)T.touch0[1]=this.__zoom.invert(T.touch0[0]);else if(T.end(),T.taps===2&&(N=In(N,this),Math.hypot(c[0]-N[0],c[1]-N[1])<m)){var L=gn(this).on("dblclick.zoom");L&&L.apply(this,arguments)}}}return v.wheelDelta=function(E){return arguments.length?(n=typeof E=="function"?E:qr(+E),v):n},v.filter=function(E){return arguments.length?(i=typeof E=="function"?E:qr(!!E),v):i},v.touchable=function(E){return arguments.length?(r=typeof E=="function"?E:qr(!!E),v):r},v.extent=function(E){return arguments.length?(e=typeof E=="function"?E:qr([[+E[0][0],+E[0][1]],[+E[1][0],+E[1][1]]]),v):e},v.scaleExtent=function(E){return arguments.length?(a[0]=+E[0],a[1]=+E[1],v):[a[0],a[1]]},v.translateExtent=function(E){return arguments.length?(o[0][0]=+E[0][0],o[1][0]=+E[1][0],o[0][1]=+E[0][1],o[1][1]=+E[1][1],v):[[o[0][0],o[0][1]],[o[1][0],o[1][1]]]},v.constrain=function(E){return arguments.length?(t=E,v):t},v.duration=function(E){return arguments.length?(s=+E,v):s},v.interpolate=function(E){return arguments.length?(l=E,v):l},v.on=function(){var E=h.on.apply(h,arguments);return E===h?v:E},v.clickDistance=function(E){return arguments.length?(g=(E=+E)*E,v):Math.sqrt(g)},v.tapDistance=function(E){return arguments.length?(m=+E,v):m},v}function sc(i,e){var t=Object.keys(i);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(i);e&&(n=n.filter(function(r){return Object.getOwnPropertyDescriptor(i,r).enumerable})),t.push.apply(t,n)}return t}function ci(i){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?sc(Object(t),!0).forEach(function(n){R0(i,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(t)):sc(Object(t)).forEach(function(n){Object.defineProperty(i,n,Object.getOwnPropertyDescriptor(t,n))})}return i}function Is(i){"@babel/helpers - typeof";return Is=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Is(i)}function R0(i,e,t){return e in i?Object.defineProperty(i,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):i[e]=t,i}function Pt(){return Pt=Object.assign?Object.assign.bind():function(i){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(i[n]=t[n])}return i},Pt.apply(this,arguments)}function L0(i,e){if(i==null)return{};var t={},n=Object.keys(i),r,a;for(a=0;a<n.length;a++)r=n[a],!(e.indexOf(r)>=0)&&(t[r]=i[r]);return t}function Wt(i,e){if(i==null)return{};var t=L0(i,e),n,r;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(i);for(r=0;r<a.length;r++)n=a[r],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(i,n)&&(t[n]=i[n])}return t}function st(i,e){return T0(i)||I0(i,e)||N0(i,e)||F0()}function T0(i){if(Array.isArray(i))return i}function I0(i,e){var t=i==null?null:typeof Symbol<"u"&&i[Symbol.iterator]||i["@@iterator"];if(t!=null){var n=[],r=!0,a=!1,o,s;try{for(t=t.call(i);!(r=(o=t.next()).done)&&(n.push(o.value),!(e&&n.length===e));r=!0);}catch(l){a=!0,s=l}finally{try{!r&&t.return!=null&&t.return()}finally{if(a)throw s}}return n}}function N0(i,e){if(i){if(typeof i=="string")return lc(i,e);var t=Object.prototype.toString.call(i).slice(8,-1);if(t==="Object"&&i.constructor&&(t=i.constructor.name),t==="Map"||t==="Set")return Array.from(i);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return lc(i,e)}}function lc(i,e){(e==null||e>i.length)&&(e=i.length);for(var t=0,n=new Array(e);t<e;t++)n[t]=i[t];return n}function F0(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
962
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var z0=["width","height","projection","projectionConfig"],D0=ef,H0=Wt(Kv,["geoPath"]),cn=K.createContext(),B0=function(e){var t=e.projectionConfig,n=t===void 0?{}:t,r=e.projection,a=r===void 0?"geoEqualEarth":r,o=e.width,s=o===void 0?800:o,l=e.height,h=l===void 0?600:l,u=typeof a=="function";if(u)return a;var c=H0[a]().translate([s/2,h/2]),f=[c.center?"center":null,c.rotate?"rotate":null,c.scale?"scale":null,c.parallels?"parallels":null];return f.forEach(function(d){d&&(c=c[d](n[d]||c[d]()))}),c},Nf=function(e){var t=e.width,n=e.height,r=e.projection,a=e.projectionConfig,o=Wt(e,z0),s=a.center||[],l=st(s,2),h=l[0],u=l[1],c=a.rotate||[],f=st(c,3),d=f[0],p=f[1],g=f[2],m=a.parallels||[],v=st(m,2),y=v[0],b=v[1],x=a.scale||null,w=K.useMemo(function(){return B0({projectionConfig:{center:h||h===0||u||u===0?[h,u]:null,rotate:d||d===0||p||p===0?[d,p,g]:null,parallels:y||y===0||b||b===0?[y,b]:null,scale:x},projection:r,width:t,height:n})},[t,n,r,h,u,d,p,g,y,b,x]),k=K.useCallback(w,[w]),S=K.useMemo(function(){return{width:t,height:n,projection:k,path:D0().projection(k)}},[t,n,k]);return qe.createElement(cn.Provider,Pt({value:S},o))};Nf.propTypes={width:re.number,height:re.number,projection:re.oneOfType([re.string,re.func]),projectionConfig:re.object};var X0=["width","height","projection","projectionConfig","className"],Ff=K.forwardRef(function(i,e){var t=i.width,n=t===void 0?800:t,r=i.height,a=r===void 0?600:r,o=i.projection,s=o===void 0?"geoEqualEarth":o,l=i.projectionConfig,h=l===void 0?{}:l,u=i.className,c=u===void 0?"":u,f=Wt(i,X0);return qe.createElement(Nf,{width:n,height:a,projection:s,projectionConfig:h},qe.createElement("svg",Pt({ref:e,viewBox:"0 0 ".concat(n," ").concat(a),className:"rsm-svg ".concat(c)},f)))});Ff.displayName="ComposableMap";Ff.propTypes={width:re.number,height:re.number,projection:re.oneOfType([re.string,re.func]),projectionConfig:re.object,className:re.string};function uc(i,e,t){var n=(i*t.k-i)/2,r=(e*t.k-e)/2;return[i/2-(n+t.x)/t.k,e/2-(r+t.y)/t.k]}function Y0(i){return fetch(i).then(function(e){if(!e.ok)throw Error(e.statusText);return e.json()}).catch(function(e){console.log("There was a problem when fetching the data: ",e)})}function cc(i,e){var t=i.type==="Topology";if(!t)return e?e(i.features||i):i.features||i;var n=tm(i,i.objects[Object.keys(i.objects)[0]]).features;return e?e(n):n}function hc(i){var e=i.type==="Topology";if(!e)return null;var t=Yu(i,i.objects[Object.keys(i.objects)[0]],function(r,a){return r===a}),n=Yu(i,i.objects[Object.keys(i.objects)[0]],function(r,a){return r!==a});return{outline:t,borders:n}}function j0(i,e,t){return i&&e?{outline:ci(ci({},i),{},{rsmKey:"outline",svgPath:t(i)}),borders:ci(ci({},e),{},{rsmKey:"borders",svgPath:t(e)})}:{}}function W0(i,e){return i?i.map(function(t,n){return ci(ci({},t),{},{rsmKey:"geo-".concat(n),svgPath:e(t)})}):[]}function q0(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:30,e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:30,t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:.5,n=Array.isArray(t)?t:[t,t],r=i/2*n[0],a=e/2*n[1];return"M".concat(0,",",0," Q",-i/2-r,",").concat(-e/2+a," ").concat(-i,",").concat(-e)}function V0(i){return typeof i=="string"}function G0(i){var e=i.geography,t=i.parseGeographies,n=K.useContext(cn),r=n.path,a=K.useState({}),o=st(a,2),s=o[0],l=o[1];K.useEffect(function(){(typeof window>"u"?"undefined":Is(window))!=="undefined"&&e&&(V0(e)?Y0(e).then(function(d){d&&l({geographies:cc(d,t),mesh:hc(d)})}):l({geographies:cc(e,t),mesh:hc(e)}))},[e,t]);var h=K.useMemo(function(){var d=s.mesh||{},p=j0(d.outline,d.borders,r);return{geographies:W0(s.geographies,r),outline:p.outline,borders:p.borders}},[s,r]),u=h.geographies,c=h.outline,f=h.borders;return{geographies:u,outline:c,borders:f}}var $0=["geography","children","parseGeographies","className"],zf=K.forwardRef(function(i,e){var t=i.geography,n=i.children,r=i.parseGeographies,a=i.className,o=a===void 0?"":a,s=Wt(i,$0),l=K.useContext(cn),h=l.path,u=l.projection,c=G0({geography:t,parseGeographies:r}),f=c.geographies,d=c.outline,p=c.borders;return qe.createElement("g",Pt({ref:e,className:"rsm-geographies ".concat(o)},s),f&&f.length>0&&n({geographies:f,outline:d,borders:p,path:h,projection:u}))});zf.displayName="Geographies";zf.propTypes={geography:re.oneOfType([re.string,re.object,re.array]),children:re.func,parseGeographies:re.func,className:re.string};var U0=["geography","onMouseEnter","onMouseLeave","onMouseDown","onMouseUp","onFocus","onBlur","style","className"],El=K.forwardRef(function(i,e){var t=i.geography,n=i.onMouseEnter,r=i.onMouseLeave,a=i.onMouseDown,o=i.onMouseUp,s=i.onFocus,l=i.onBlur,h=i.style,u=h===void 0?{}:h,c=i.className,f=c===void 0?"":c,d=Wt(i,U0),p=K.useState(!1),g=st(p,2),m=g[0],v=g[1],y=K.useState(!1),b=st(y,2),x=b[0],w=b[1];function k(M){w(!0),n&&n(M)}function S(M){w(!1),m&&v(!1),r&&r(M)}function A(M){w(!0),s&&s(M)}function O(M){w(!1),m&&v(!1),l&&l(M)}function _(M){v(!0),a&&a(M)}function C(M){v(!1),o&&o(M)}return qe.createElement("path",Pt({ref:e,tabIndex:"0",className:"rsm-geography ".concat(f),d:t.svgPath,onMouseEnter:k,onMouseLeave:S,onFocus:A,onBlur:O,onMouseDown:_,onMouseUp:C,style:u[m||x?m?"pressed":"hover":"default"]},d))});El.displayName="Geography";El.propTypes={geography:re.object,onMouseEnter:re.func,onMouseLeave:re.func,onMouseDown:re.func,onMouseUp:re.func,onFocus:re.func,onBlur:re.func,style:re.object,className:re.string};K.memo(El);var Z0=["fill","stroke","step","className"],Ol=K.forwardRef(function(i,e){var t=i.fill,n=t===void 0?"transparent":t,r=i.stroke,a=r===void 0?"currentcolor":r,o=i.step,s=o===void 0?[10,10]:o,l=i.className,h=l===void 0?"":l,u=Wt(i,Z0),c=K.useContext(cn),f=c.path;return qe.createElement("path",Pt({ref:e,d:f(rl().step(s)()),fill:n,stroke:a,className:"rsm-graticule ".concat(h)},u))});Ol.displayName="Graticule";Ol.propTypes={fill:re.string,stroke:re.string,step:re.array,className:re.string};K.memo(Ol);var K0=["value"],Q0=K.createContext(),J0={x:0,y:0,k:1,transformString:"translate(0 0) scale(1)"},Df=function(e){var t=e.value,n=t===void 0?J0:t,r=Wt(e,K0);return qe.createElement(Q0.Provider,Pt({value:n},r))};Df.propTypes={x:re.number,y:re.number,k:re.number,transformString:re.string};function eb(i){var e=i.center,t=i.filterZoomEvent,n=i.onMoveStart,r=i.onMoveEnd,a=i.onMove,o=i.translateExtent,s=o===void 0?[[-1/0,-1/0],[1/0,1/0]]:o,l=i.scaleExtent,h=l===void 0?[1,8]:l,u=i.zoom,c=u===void 0?1:u,f=K.useContext(cn),d=f.width,p=f.height,g=f.projection,m=st(e,2),v=m[0],y=m[1],b=K.useState({x:0,y:0,k:1}),x=st(b,2),w=x[0],k=x[1],S=K.useRef({x:0,y:0,k:1}),A=K.useRef(),O=K.useRef(),_=K.useRef(!1),C=st(s,2),M=C[0],P=C[1],E=st(M,2),R=E[0],T=E[1],F=st(P,2),B=F[0],D=F[1],N=st(h,2),L=N[0],I=N[1];return K.useEffect(function(){var H=gn(A.current);function Y(V){!n||_.current||n({coordinates:g.invert(uc(d,p,V.transform)),zoom:V.transform.k},V)}function W(V){if(!_.current){var $=V.transform,ee=V.sourceEvent;k({x:$.x,y:$.y,k:$.k,dragging:ee}),a&&a({x:$.x,y:$.y,zoom:$.k,dragging:ee},V)}}function z(V){if(_.current){_.current=!1;return}var $=g.invert(uc(d,p,V.transform)),ee=st($,2),ce=ee[0],le=ee[1];S.current={x:ce,y:le,k:V.transform.k},r&&r({coordinates:[ce,le],zoom:V.transform.k},V)}function X(V){return t?t(V):V?!V.ctrlKey&&!V.button:!1}var G=P0().filter(X).scaleExtent([L,I]).translateExtent([[R,T],[B,D]]).on("start",Y).on("zoom",W).on("end",z);O.current=G,H.call(G)},[d,p,R,T,B,D,L,I,g,n,a,r,t]),K.useEffect(function(){if(!(v===S.current.x&&y===S.current.y&&c===S.current.k)){var H=g([v,y]),Y=H[0]*c,W=H[1]*c,z=gn(A.current);_.current=!0,z.call(O.current.transform,_l.translate(d/2-Y,p/2-W).scale(c)),k({x:d/2-Y,y:p/2-W,k:c}),S.current={x:v,y,k:c}}},[v,y,c,d,p,g]),{mapRef:A,position:w,transformString:"translate(".concat(w.x," ").concat(w.y,") scale(").concat(w.k,")")}}var tb=["center","zoom","minZoom","maxZoom","translateExtent","filterZoomEvent","onMoveStart","onMove","onMoveEnd","className"],Hf=K.forwardRef(function(i,e){var t=i.center,n=t===void 0?[0,0]:t,r=i.zoom,a=r===void 0?1:r,o=i.minZoom,s=o===void 0?1:o,l=i.maxZoom,h=l===void 0?8:l,u=i.translateExtent,c=i.filterZoomEvent,f=i.onMoveStart,d=i.onMove,p=i.onMoveEnd,g=i.className,m=Wt(i,tb),v=K.useContext(cn),y=v.width,b=v.height,x=eb({center:n,filterZoomEvent:c,onMoveStart:f,onMove:d,onMoveEnd:p,scaleExtent:[s,h],translateExtent:u,zoom:a}),w=x.mapRef,k=x.transformString,S=x.position;return qe.createElement(Df,{value:{x:S.x,y:S.y,k:S.k,transformString:k}},qe.createElement("g",{ref:w},qe.createElement("rect",{width:y,height:b,fill:"transparent"}),qe.createElement("g",Pt({ref:e,transform:k,className:"rsm-zoomable-group ".concat(g)},m))))});Hf.displayName="ZoomableGroup";Hf.propTypes={center:re.array,zoom:re.number,minZoom:re.number,maxZoom:re.number,translateExtent:re.arrayOf(re.array),onMoveStart:re.func,onMove:re.func,onMoveEnd:re.func,className:re.string};var nb=["id","fill","stroke","strokeWidth","className"],Ml=K.forwardRef(function(i,e){var t=i.id,n=t===void 0?"rsm-sphere":t,r=i.fill,a=r===void 0?"transparent":r,o=i.stroke,s=o===void 0?"currentcolor":o,l=i.strokeWidth,h=l===void 0?.5:l,u=i.className,c=u===void 0?"":u,f=Wt(i,nb),d=K.useContext(cn),p=d.path,g=K.useMemo(function(){return p({type:"Sphere"})},[p]);return qe.createElement(K.Fragment,null,qe.createElement("defs",null,qe.createElement("clipPath",{id:n},qe.createElement("path",{d:g}))),qe.createElement("path",Pt({ref:e,d:g,fill:a,stroke:s,strokeWidth:h,style:{pointerEvents:"none"},className:"rsm-sphere ".concat(c)},f)))});Ml.displayName="Sphere";Ml.propTypes={id:re.string,fill:re.string,stroke:re.string,strokeWidth:re.number,className:re.string};K.memo(Ml);var ib=["coordinates","children","onMouseEnter","onMouseLeave","onMouseDown","onMouseUp","onFocus","onBlur","style","className"],Bf=K.forwardRef(function(i,e){var t=i.coordinates,n=i.children,r=i.onMouseEnter,a=i.onMouseLeave,o=i.onMouseDown,s=i.onMouseUp,l=i.onFocus,h=i.onBlur,u=i.style,c=u===void 0?{}:u,f=i.className,d=f===void 0?"":f,p=Wt(i,ib),g=K.useContext(cn),m=g.projection,v=K.useState(!1),y=st(v,2),b=y[0],x=y[1],w=K.useState(!1),k=st(w,2),S=k[0],A=k[1],O=m(t),_=st(O,2),C=_[0],M=_[1];function P(D){A(!0),r&&r(D)}function E(D){A(!1),b&&x(!1),a&&a(D)}function R(D){A(!0),l&&l(D)}function T(D){A(!1),b&&x(!1),h&&h(D)}function F(D){x(!0),o&&o(D)}function B(D){x(!1),s&&s(D)}return qe.createElement("g",Pt({ref:e,transform:"translate(".concat(C,", ").concat(M,")"),className:"rsm-marker ".concat(d),onMouseEnter:P,onMouseLeave:E,onFocus:R,onBlur:T,onMouseDown:F,onMouseUp:B,style:c[b||S?b?"pressed":"hover":"default"]},p),n)});Bf.displayName="Marker";Bf.propTypes={coordinates:re.array,children:re.oneOfType([re.node,re.arrayOf(re.node)]),onMouseEnter:re.func,onMouseLeave:re.func,onMouseDown:re.func,onMouseUp:re.func,onFocus:re.func,onBlur:re.func,style:re.object,className:re.string};var rb=["from","to","coordinates","stroke","strokeWidth","fill","className"],Xf=K.forwardRef(function(i,e){var t=i.from,n=t===void 0?[0,0]:t,r=i.to,a=r===void 0?[0,0]:r,o=i.coordinates,s=i.stroke,l=s===void 0?"currentcolor":s,h=i.strokeWidth,u=h===void 0?3:h,c=i.fill,f=c===void 0?"transparent":c,d=i.className,p=d===void 0?"":d,g=Wt(i,rb),m=K.useContext(cn),v=m.path,y={type:"LineString",coordinates:o||[n,a]};return qe.createElement("path",Pt({ref:e,d:v(y),className:"rsm-line ".concat(p),stroke:l,strokeWidth:u,fill:f},g))});Xf.displayName="Line";Xf.propTypes={from:re.array,to:re.array,coordinates:re.array,stroke:re.string,strokeWidth:re.number,fill:re.string,className:re.string};var ab=["subject","children","connectorProps","dx","dy","curve","className"],Yf=K.forwardRef(function(i,e){var t=i.subject,n=i.children,r=i.connectorProps,a=i.dx,o=a===void 0?30:a,s=i.dy,l=s===void 0?30:s,h=i.curve,u=h===void 0?0:h,c=i.className,f=c===void 0?"":c,d=Wt(i,ab),p=K.useContext(cn),g=p.projection,m=g(t),v=st(m,2),y=v[0],b=v[1],x=q0(o,l,u);return qe.createElement("g",Pt({ref:e,transform:"translate(".concat(y+o,", ").concat(b+l,")"),className:"rsm-annotation ".concat(f)},d),qe.createElement("path",Pt({d:x,fill:"transparent",stroke:"#000"},r)),n)});Yf.displayName="Annotation";Yf.propTypes={subject:re.array,children:re.oneOfType([re.node,re.arrayOf(re.node)]),dx:re.number,dy:re.number,curve:re.number,connectorProps:re.object,className:re.string};/*
963
+ * React Tooltip
964
+ * {@link https://github.com/ReactTooltip/react-tooltip}
965
+ * @copyright ReactTooltip Team
966
+ * @license MIT
967
+ */const ob="react-tooltip-core-styles",sb="react-tooltip-base-styles",fc={core:!1,base:!1};function dc({css:i,id:e=sb,type:t="base",ref:n}){var r,a;if(!i||typeof document>"u"||fc[t]||t==="core"&&typeof process<"u"&&(!((r=process==null?void 0:process.env)===null||r===void 0)&&r.REACT_TOOLTIP_DISABLE_CORE_STYLES)||t!=="base"&&typeof process<"u"&&(!((a=process==null?void 0:process.env)===null||a===void 0)&&a.REACT_TOOLTIP_DISABLE_BASE_STYLES))return;t==="core"&&(e=ob),n||(n={});const{insertAt:o}=n;if(document.getElementById(e))return;const s=document.head||document.getElementsByTagName("head")[0],l=document.createElement("style");l.id=e,l.type="text/css",o==="top"&&s.firstChild?s.insertBefore(l,s.firstChild):s.appendChild(l),l.styleSheet?l.styleSheet.cssText=i:l.appendChild(document.createTextNode(i)),fc[t]=!0}const gc=async({elementReference:i=null,tooltipReference:e=null,tooltipArrowReference:t=null,place:n="top",offset:r=10,strategy:a="absolute",middlewares:o=[od(Number(r)),sd({fallbackAxisSideDirection:"start"}),ld({padding:5})],border:s,arrowSize:l=8})=>{if(!i)return{tooltipStyles:{},tooltipArrowStyles:{},place:n};if(e===null)return{tooltipStyles:{},tooltipArrowStyles:{},place:n};const h=o;return t?(h.push(ad({element:t,padding:5})),Fl(i,e,{placement:n,strategy:a,middleware:h}).then(({x:u,y:c,placement:f,middlewareData:d})=>{var p,g;const m={left:`${u}px`,top:`${c}px`,border:s},{x:v,y}=(p=d.arrow)!==null&&p!==void 0?p:{x:0,y:0},b=(g={top:"bottom",right:"left",bottom:"top",left:"right"}[f.split("-")[0]])!==null&&g!==void 0?g:"bottom",x=s&&{borderBottom:s,borderRight:s};let w=0;if(s){const k=`${s}`.match(/(\d+)px/);w=k!=null&&k[1]?Number(k[1]):1}return{tooltipStyles:m,tooltipArrowStyles:{left:v!=null?`${v}px`:"",top:y!=null?`${y}px`:"",right:"",bottom:"",...x,[b]:`-${l/2+w}px`},place:f}})):Fl(i,e,{placement:"bottom",strategy:a,middleware:h}).then(({x:u,y:c,placement:f})=>({tooltipStyles:{left:`${u}px`,top:`${c}px`},tooltipArrowStyles:{},place:f}))},pc=(i,e)=>!("CSS"in window&&"supports"in window.CSS)||window.CSS.supports(i,e),vc=(i,e,t)=>{let n=null;const r=function(...a){const o=()=>{n=null,t||i.apply(this,a)};t&&!n&&(i.apply(this,a),n=setTimeout(o,e)),t||(n&&clearTimeout(n),n=setTimeout(o,e))};return r.cancel=()=>{n&&(clearTimeout(n),n=null)},r},mc=i=>i!==null&&!Array.isArray(i)&&typeof i=="object",Ns=(i,e)=>{if(i===e)return!0;if(Array.isArray(i)&&Array.isArray(e))return i.length===e.length&&i.every((r,a)=>Ns(r,e[a]));if(Array.isArray(i)!==Array.isArray(e))return!1;if(!mc(i)||!mc(e))return i===e;const t=Object.keys(i),n=Object.keys(e);return t.length===n.length&&t.every(r=>Ns(i[r],e[r]))},lb=i=>{if(!(i instanceof HTMLElement||i instanceof SVGElement))return!1;const e=getComputedStyle(i);return["overflow","overflow-x","overflow-y"].some(t=>{const n=e.getPropertyValue(t);return n==="auto"||n==="scroll"})},yc=i=>{if(!i)return null;let e=i.parentElement;for(;e;){if(lb(e))return e;e=e.parentElement}return document.scrollingElement||document.documentElement},ub=typeof window<"u"?K.useLayoutEffect:K.useEffect,Ht=i=>{i.current&&(clearTimeout(i.current),i.current=null)},cb="DEFAULT_TOOLTIP_ID",hb={anchorRefs:new Set,activeAnchor:{current:null},attach:()=>{},detach:()=>{},setActiveAnchor:()=>{}},fb=K.createContext({getTooltipData:()=>hb});function jf(i=cb){return K.useContext(fb).getTooltipData(i)}var oi={tooltip:"core-styles-module_tooltip__3vRRp",fixed:"core-styles-module_fixed__pcSol",arrow:"core-styles-module_arrow__cvMwQ",noArrow:"core-styles-module_noArrow__xock6",clickable:"core-styles-module_clickable__ZuTTB",show:"core-styles-module_show__Nt9eE",closing:"core-styles-module_closing__sGnxF"},Ro={tooltip:"styles-module_tooltip__mnnfp",arrow:"styles-module_arrow__K0L3T",dark:"styles-module_dark__xNqje",light:"styles-module_light__Z6W-X",success:"styles-module_success__A2AKt",warning:"styles-module_warning__SCK0X",error:"styles-module_error__JvumD",info:"styles-module_info__BWdHW"};const db=({forwardRef:i,id:e,className:t,classNameArrow:n,variant:r="dark",anchorId:a,anchorSelect:o,place:s="top",offset:l=10,events:h=["hover"],openOnClick:u=!1,positionStrategy:c="absolute",middlewares:f,wrapper:d,delayShow:p=0,delayHide:g=0,float:m=!1,hidden:v=!1,noArrow:y=!1,clickable:b=!1,closeOnEsc:x=!1,closeOnScroll:w=!1,closeOnResize:k=!1,openEvents:S,closeEvents:A,globalCloseEvents:O,imperativeModeOnly:_,style:C,position:M,afterShow:P,afterHide:E,disableTooltip:R,content:T,contentWrapperRef:F,isOpen:B,defaultIsOpen:D=!1,setIsOpen:N,previousActiveAnchor:L,activeAnchor:I,setActiveAnchor:H,border:Y,opacity:W,arrowColor:z,arrowSize:X=8,role:G="tooltip"})=>{var V;const $=K.useRef(null),ee=K.useRef(null),ce=K.useRef(null),le=K.useRef(null),ve=K.useRef(null),[Ee,tt]=K.useState({tooltipStyles:{},tooltipArrowStyles:{},place:s}),[Pe,U]=K.useState(!1),[Z,ie]=K.useState(!1),[te,J]=K.useState(null),Ae=K.useRef(!1),Se=K.useRef(null),{anchorRefs:Ce,setActiveAnchor:it}=jf(e),dt=K.useRef(!1),[Ne,Rn]=K.useState([]),Be=K.useRef(!1),gt=u||h.includes("click"),Mr=gt||(S==null?void 0:S.click)||(S==null?void 0:S.dblclick)||(S==null?void 0:S.mousedown),Mi=S?{...S}:{mouseover:!0,focus:!0,mouseenter:!1,click:!1,dblclick:!1,mousedown:!1};!S&&gt&&Object.assign(Mi,{mouseenter:!1,focus:!1,mouseover:!1,click:!0});const Ln=A?{...A}:{mouseout:!0,blur:!0,mouseleave:!1,click:!1,dblclick:!1,mouseup:!1};!A&&gt&&Object.assign(Ln,{mouseleave:!1,blur:!1,mouseout:!1});const ot=O?{...O}:{escape:x||!1,scroll:w||!1,resize:k||!1,clickOutsideAnchor:Mr||!1};_&&(Object.assign(Mi,{mouseover:!1,focus:!1,mouseenter:!1,click:!1,dblclick:!1,mousedown:!1}),Object.assign(Ln,{mouseout:!1,blur:!1,mouseleave:!1,click:!1,dblclick:!1,mouseup:!1}),Object.assign(ot,{escape:!1,scroll:!1,resize:!1,clickOutsideAnchor:!1})),ub(()=>(Be.current=!0,()=>{Be.current=!1}),[]);const Ct=se=>{Be.current&&(se&&ie(!0),setTimeout(()=>{Be.current&&(N==null||N(se),B===void 0&&U(se))},10))};K.useEffect(()=>{if(e){if(Pe){me(L);const de=se(I),Xe=[...new Set([...de,e])].filter(Boolean).join(" ");I==null||I.setAttribute("aria-describedby",Xe)}else me(I);return()=>{me(I),me(L)}}function se(de){var Xe;return((Xe=de==null?void 0:de.getAttribute("aria-describedby"))===null||Xe===void 0?void 0:Xe.split(" "))||[]}function me(de){const Xe=se(de).filter(rt=>rt!==e);Xe.length?de==null||de.setAttribute("aria-describedby",Xe.join(" ")):de==null||de.removeAttribute("aria-describedby")}},[I,Pe,e,L]),K.useEffect(()=>{if(B===void 0)return()=>null;B&&ie(!0);const se=setTimeout(()=>{U(B)},10);return()=>{clearTimeout(se)}},[B]),K.useEffect(()=>{if(Pe!==Ae.current)if(Ht(ve),Ae.current=Pe,Pe)P==null||P();else{const se=(me=>{const de=me.match(/^([\d.]+)(ms|s)$/);if(!de)return 0;const[,Xe,rt]=de;return Number(Xe)*(rt==="ms"?1:1e3)})(getComputedStyle(document.body).getPropertyValue("--rt-transition-show-delay"));ve.current=setTimeout(()=>{ie(!1),J(null),E==null||E()},se+25)}},[Pe]);const Pi=se=>{tt(me=>Ns(me,se)?me:se)},Ri=(se=p)=>{Ht(ce),Z?Ct(!0):ce.current=setTimeout(()=>{Ct(!0)},se)},Qn=(se=g)=>{Ht(le),le.current=setTimeout(()=>{dt.current||Ct(!1)},se)},Li=se=>{var me;if(!se)return;const de=(me=se.currentTarget)!==null&&me!==void 0?me:se.target;if(!(de!=null&&de.isConnected))return H(null),void it({current:null});p?Ri():Ct(!0),H(de),it({current:de}),Ht(le)},Jn=()=>{b?Qn(g||100):g?Qn():Ct(!1),Ht(ce)},ei=({x:se,y:me})=>{var de;const Xe={getBoundingClientRect:()=>({x:se,y:me,width:0,height:0,top:me,left:se,right:se,bottom:me})};gc({place:(de=te==null?void 0:te.place)!==null&&de!==void 0?de:s,offset:l,elementReference:Xe,tooltipReference:$.current,tooltipArrowReference:ee.current,strategy:c,middlewares:f,border:Y,arrowSize:X}).then(rt=>{Pi(rt)})},ti=se=>{if(!se)return;const me=se,de={x:me.clientX,y:me.clientY};ei(de),Se.current=de},Ti=se=>{var me;if(!Pe)return;const de=se.target;de.isConnected&&(!((me=$.current)===null||me===void 0)&&me.contains(de)||[document.querySelector(`[id='${a}']`),...Ne].some(Xe=>Xe==null?void 0:Xe.contains(de))||(Ct(!1),Ht(ce)))},Pr=vc(Li,50,!0),et=vc(Jn,50,!0),pt=se=>{et.cancel(),Pr(se)},we=()=>{Pr.cancel(),et()},Re=K.useCallback(()=>{var se,me;const de=(se=te==null?void 0:te.position)!==null&&se!==void 0?se:M;de?ei(de):m?Se.current&&ei(Se.current):I!=null&&I.isConnected&&gc({place:(me=te==null?void 0:te.place)!==null&&me!==void 0?me:s,offset:l,elementReference:I,tooltipReference:$.current,tooltipArrowReference:ee.current,strategy:c,middlewares:f,border:Y,arrowSize:X}).then(Xe=>{Be.current&&Pi(Xe)})},[Pe,I,T,C,s,te==null?void 0:te.place,l,c,M,te==null?void 0:te.position,m,X]);K.useEffect(()=>{var se,me;const de=new Set(Ce);Ne.forEach(De=>{R!=null&&R(De)||de.add({current:De})});const Xe=document.querySelector(`[id='${a}']`);Xe&&!(R!=null&&R(Xe))&&de.add({current:Xe});const rt=()=>{Ct(!1)},en=yc(I),tn=yc($.current);ot.scroll&&(window.addEventListener("scroll",rt),en==null||en.addEventListener("scroll",rt),tn==null||tn.addEventListener("scroll",rt));let vt=null;ot.resize?window.addEventListener("resize",rt):I&&$.current&&(vt=rd(I,$.current,Re,{ancestorResize:!0,elementResize:!0,layoutShift:!0}));const zt=De=>{De.key==="Escape"&&Ct(!1)};ot.escape&&window.addEventListener("keydown",zt),ot.clickOutsideAnchor&&window.addEventListener("click",Ti);const Ge=[],ni=De=>!!(De!=null&&De.target&&(I!=null&&I.contains(De.target))),qf=De=>{Pe&&ni(De)||Li(De)},Vf=De=>{Pe&&ni(De)&&Jn()},Pl=["mouseover","mouseout","mouseenter","mouseleave","focus","blur"],Rl=["click","dblclick","mousedown","mouseup"];Object.entries(Mi).forEach(([De,hn])=>{hn&&(Pl.includes(De)?Ge.push({event:De,listener:pt}):Rl.includes(De)&&Ge.push({event:De,listener:qf}))}),Object.entries(Ln).forEach(([De,hn])=>{hn&&(Pl.includes(De)?Ge.push({event:De,listener:we}):Rl.includes(De)&&Ge.push({event:De,listener:Vf}))}),m&&Ge.push({event:"pointermove",listener:ti});const Ll=()=>{dt.current=!0},Tl=()=>{dt.current=!1,Jn()},Il=b&&(Ln.mouseout||Ln.mouseleave);return Il&&((se=$.current)===null||se===void 0||se.addEventListener("mouseover",Ll),(me=$.current)===null||me===void 0||me.addEventListener("mouseout",Tl)),Ge.forEach(({event:De,listener:hn})=>{de.forEach(Ua=>{var Ii;(Ii=Ua.current)===null||Ii===void 0||Ii.addEventListener(De,hn)})}),()=>{var De,hn;ot.scroll&&(window.removeEventListener("scroll",rt),en==null||en.removeEventListener("scroll",rt),tn==null||tn.removeEventListener("scroll",rt)),ot.resize?window.removeEventListener("resize",rt):vt==null||vt(),ot.clickOutsideAnchor&&window.removeEventListener("click",Ti),ot.escape&&window.removeEventListener("keydown",zt),Il&&((De=$.current)===null||De===void 0||De.removeEventListener("mouseover",Ll),(hn=$.current)===null||hn===void 0||hn.removeEventListener("mouseout",Tl)),Ge.forEach(({event:Ua,listener:Ii})=>{de.forEach(Gf=>{var Za;(Za=Gf.current)===null||Za===void 0||Za.removeEventListener(Ua,Ii)})})}},[I,Re,Z,Ce,Ne,S,A,O,gt,p,g]),K.useEffect(()=>{var se,me;let de=(me=(se=te==null?void 0:te.anchorSelect)!==null&&se!==void 0?se:o)!==null&&me!==void 0?me:"";!de&&e&&(de=`[data-tooltip-id='${e.replace(/'/g,"\\'")}']`);const Xe=new MutationObserver(rt=>{const en=[],tn=[];rt.forEach(vt=>{if(vt.type==="attributes"&&vt.attributeName==="data-tooltip-id"&&(vt.target.getAttribute("data-tooltip-id")===e?en.push(vt.target):vt.oldValue===e&&tn.push(vt.target)),vt.type==="childList"){if(I){const zt=[...vt.removedNodes].filter(Ge=>Ge.nodeType===1);if(de)try{tn.push(...zt.filter(Ge=>Ge.matches(de))),tn.push(...zt.flatMap(Ge=>[...Ge.querySelectorAll(de)]))}catch{}zt.some(Ge=>{var ni;return!!(!((ni=Ge==null?void 0:Ge.contains)===null||ni===void 0)&&ni.call(Ge,I))&&(ie(!1),Ct(!1),H(null),Ht(ce),Ht(le),!0)})}if(de)try{const zt=[...vt.addedNodes].filter(Ge=>Ge.nodeType===1);en.push(...zt.filter(Ge=>Ge.matches(de))),en.push(...zt.flatMap(Ge=>[...Ge.querySelectorAll(de)]))}catch{}}}),(en.length||tn.length)&&Rn(vt=>[...vt.filter(zt=>!tn.includes(zt)),...en])});return Xe.observe(document.body,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["data-tooltip-id"],attributeOldValue:!0}),()=>{Xe.disconnect()}},[e,o,te==null?void 0:te.anchorSelect,I]),K.useEffect(()=>{Re()},[Re]),K.useEffect(()=>{if(!(F!=null&&F.current))return()=>null;const se=new ResizeObserver(()=>{setTimeout(()=>Re())});return se.observe(F.current),()=>{se.disconnect()}},[T,F==null?void 0:F.current]),K.useEffect(()=>{var se;const me=document.querySelector(`[id='${a}']`),de=[...Ne,me];I&&de.includes(I)||H((se=Ne[0])!==null&&se!==void 0?se:me)},[a,Ne,I]),K.useEffect(()=>(D&&Ct(!0),()=>{Ht(ce),Ht(le)}),[]),K.useEffect(()=>{var se;let me=(se=te==null?void 0:te.anchorSelect)!==null&&se!==void 0?se:o;if(!me&&e&&(me=`[data-tooltip-id='${e.replace(/'/g,"\\'")}']`),me)try{const de=Array.from(document.querySelectorAll(me));Rn(de)}catch{Rn([])}},[e,o,te==null?void 0:te.anchorSelect]),K.useEffect(()=>{ce.current&&(Ht(ce),Ri(p))},[p]);const Rt=(V=te==null?void 0:te.content)!==null&&V!==void 0?V:T,Tn=Pe&&Object.keys(Ee.tooltipStyles).length>0;return K.useImperativeHandle(i,()=>({open:se=>{if(se!=null&&se.anchorSelect)try{document.querySelector(se.anchorSelect)}catch{return void console.warn(`[react-tooltip] "${se.anchorSelect}" is not a valid CSS selector`)}J(se??null),se!=null&&se.delay?Ri(se.delay):Ct(!0)},close:se=>{se!=null&&se.delay?Qn(se.delay):Ct(!1)},activeAnchor:I,place:Ee.place,isOpen:!!(Z&&!v&&Rt&&Tn)})),Z&&!v&&Rt?qe.createElement(d,{id:e,role:G,className:gi("react-tooltip",oi.tooltip,Ro.tooltip,Ro[r],t,`react-tooltip__place-${Ee.place}`,oi[Tn?"show":"closing"],Tn?"react-tooltip__show":"react-tooltip__closing",c==="fixed"&&oi.fixed,b&&oi.clickable),onTransitionEnd:se=>{Ht(ve),Pe||se.propertyName!=="opacity"||(ie(!1),J(null),E==null||E())},style:{...C,...Ee.tooltipStyles,opacity:W!==void 0&&Tn?W:void 0},ref:$},Rt,qe.createElement(d,{className:gi("react-tooltip-arrow",oi.arrow,Ro.arrow,n,y&&oi.noArrow),style:{...Ee.tooltipArrowStyles,background:z?`linear-gradient(to right bottom, transparent 50%, ${z} 50%)`:void 0,"--rt-arrow-size":`${X}px`},ref:ee})):null},gb=({content:i})=>qe.createElement("span",{dangerouslySetInnerHTML:{__html:i}});qe.forwardRef(({id:i,anchorId:e,anchorSelect:t,content:n,html:r,render:a,className:o,classNameArrow:s,variant:l="dark",place:h="top",offset:u=10,wrapper:c="div",children:f=null,events:d=["hover"],openOnClick:p=!1,positionStrategy:g="absolute",middlewares:m,delayShow:v=0,delayHide:y=0,float:b=!1,hidden:x=!1,noArrow:w=!1,clickable:k=!1,closeOnEsc:S=!1,closeOnScroll:A=!1,closeOnResize:O=!1,openEvents:_,closeEvents:C,globalCloseEvents:M,imperativeModeOnly:P=!1,style:E,position:R,isOpen:T,defaultIsOpen:F=!1,disableStyleInjection:B=!1,border:D,opacity:N,arrowColor:L,arrowSize:I,setIsOpen:H,afterShow:Y,afterHide:W,disableTooltip:z,role:X="tooltip"},G)=>{const[V,$]=K.useState(n),[ee,ce]=K.useState(r),[le,ve]=K.useState(h),[Ee,tt]=K.useState(l),[Pe,U]=K.useState(u),[Z,ie]=K.useState(v),[te,J]=K.useState(y),[Ae,Se]=K.useState(b),[Ce,it]=K.useState(x),[dt,Ne]=K.useState(c),[Rn,Be]=K.useState(d),[gt,Mr]=K.useState(g),[Mi,Ln]=K.useState(null),[ot,Ct]=K.useState(null),Pi=K.useRef(null),Ri=K.useRef(B),{anchorRefs:Qn,activeAnchor:Li}=jf(i),Jn=et=>et==null?void 0:et.getAttributeNames().reduce((pt,we)=>{var Re;return we.startsWith("data-tooltip-")&&(pt[we.replace(/^data-tooltip-/,"")]=(Re=et==null?void 0:et.getAttribute(we))!==null&&Re!==void 0?Re:null),pt},{}),ei=et=>{const pt={place:we=>{var Re;ve((Re=we)!==null&&Re!==void 0?Re:h)},content:we=>{$(we??n)},html:we=>{ce(we??r)},variant:we=>{var Re;tt((Re=we)!==null&&Re!==void 0?Re:l)},offset:we=>{U(we===null?u:Number(we))},wrapper:we=>{var Re;Ne((Re=we)!==null&&Re!==void 0?Re:c)},events:we=>{const Re=we==null?void 0:we.split(" ");Be(Re??d)},"position-strategy":we=>{var Re;Mr((Re=we)!==null&&Re!==void 0?Re:g)},"delay-show":we=>{ie(we===null?v:Number(we))},"delay-hide":we=>{J(we===null?y:Number(we))},float:we=>{Se(we===null?b:we==="true")},hidden:we=>{it(we===null?x:we==="true")},"class-name":we=>{Ln(we)}};Object.values(pt).forEach(we=>we(null)),Object.entries(et).forEach(([we,Re])=>{var Rt;(Rt=pt[we])===null||Rt===void 0||Rt.call(pt,Re)})};K.useEffect(()=>{$(n)},[n]),K.useEffect(()=>{ce(r)},[r]),K.useEffect(()=>{ve(h)},[h]),K.useEffect(()=>{tt(l)},[l]),K.useEffect(()=>{U(u)},[u]),K.useEffect(()=>{ie(v)},[v]),K.useEffect(()=>{J(y)},[y]),K.useEffect(()=>{Se(b)},[b]),K.useEffect(()=>{it(x)},[x]),K.useEffect(()=>{Mr(g)},[g]),K.useEffect(()=>{Ri.current!==B&&console.warn("[react-tooltip] Do not change `disableStyleInjection` dynamically.")},[B]),K.useEffect(()=>{typeof window<"u"&&window.dispatchEvent(new CustomEvent("react-tooltip-inject-styles",{detail:{disableCore:B==="core",disableBase:B}}))},[]),K.useEffect(()=>{var et;const pt=new Set(Qn);let we=t;if(!we&&i&&(we=`[data-tooltip-id='${i.replace(/'/g,"\\'")}']`),we)try{document.querySelectorAll(we).forEach(me=>{pt.add({current:me})})}catch{console.warn(`[react-tooltip] "${we}" is not a valid CSS selector`)}const Re=document.querySelector(`[id='${e}']`);if(Re&&pt.add({current:Re}),!pt.size)return()=>null;const Rt=(et=ot??Re)!==null&&et!==void 0?et:Li.current,Tn=new MutationObserver(me=>{me.forEach(de=>{var Xe;if(!Rt||de.type!=="attributes"||!(!((Xe=de.attributeName)===null||Xe===void 0)&&Xe.startsWith("data-tooltip-")))return;const rt=Jn(Rt);ei(rt)})}),se={attributes:!0,childList:!1,subtree:!1};if(Rt){const me=Jn(Rt);ei(me),Tn.observe(Rt,se)}return()=>{Tn.disconnect()}},[Qn,Li,ot,e,t]),K.useEffect(()=>{E!=null&&E.border&&console.warn("[react-tooltip] Do not set `style.border`. Use `border` prop instead."),D&&!pc("border",`${D}`)&&console.warn(`[react-tooltip] "${D}" is not a valid \`border\`.`),E!=null&&E.opacity&&console.warn("[react-tooltip] Do not set `style.opacity`. Use `opacity` prop instead."),N&&!pc("opacity",`${N}`)&&console.warn(`[react-tooltip] "${N}" is not a valid \`opacity\`.`)},[]);let ti=f;const Ti=K.useRef(null);if(a){const et=a({content:(ot==null?void 0:ot.getAttribute("data-tooltip-content"))||V||null,activeAnchor:ot});ti=et?qe.createElement("div",{ref:Ti,className:"react-tooltip-content-wrapper"},et):null}else V&&(ti=V);ee&&(ti=qe.createElement(gb,{content:ee}));const Pr={forwardRef:G,id:i,anchorId:e,anchorSelect:t,className:gi(o,Mi),classNameArrow:s,content:ti,contentWrapperRef:Ti,place:le,variant:Ee,offset:Pe,wrapper:dt,events:Rn,openOnClick:p,positionStrategy:gt,middlewares:m,delayShow:Z,delayHide:te,float:Ae,hidden:Ce,noArrow:w,clickable:k,closeOnEsc:S,closeOnScroll:A,closeOnResize:O,openEvents:_,closeEvents:C,globalCloseEvents:M,imperativeModeOnly:P,style:E,position:R,isOpen:T,defaultIsOpen:F,border:D,opacity:N,arrowColor:L,arrowSize:I,setIsOpen:H,afterShow:Y,afterHide:W,disableTooltip:z,activeAnchor:ot,previousActiveAnchor:Pi.current,setActiveAnchor:et=>{Ct(pt=>(et!=null&&et.isSameNode(pt)||(Pi.current=pt),et))},role:X};return qe.createElement(db,{...Pr})});typeof window<"u"&&window.addEventListener("react-tooltip-inject-styles",i=>{i.detail.disableCore||dc({css:":root{--rt-color-white:#fff;--rt-color-dark:#222;--rt-color-success:#8dc572;--rt-color-error:#be6464;--rt-color-warning:#f0ad4e;--rt-color-info:#337ab7;--rt-opacity:0.9;--rt-transition-show-delay:0.15s;--rt-transition-closing-delay:0.15s;--rt-arrow-size:8px}.core-styles-module_tooltip__3vRRp{position:absolute;top:0;left:0;pointer-events:none;opacity:0;will-change:opacity}.core-styles-module_fixed__pcSol{position:fixed}.core-styles-module_arrow__cvMwQ{position:absolute;background:inherit;z-index:-1}.core-styles-module_noArrow__xock6{display:none}.core-styles-module_clickable__ZuTTB{pointer-events:auto}.core-styles-module_show__Nt9eE{opacity:var(--rt-opacity);transition:opacity var(--rt-transition-show-delay)ease-out}.core-styles-module_closing__sGnxF{opacity:0;transition:opacity var(--rt-transition-closing-delay)ease-in}",type:"core"}),i.detail.disableBase||dc({css:`
968
+ .styles-module_tooltip__mnnfp{padding:8px 16px;border-radius:3px;font-size:90%;width:max-content}.styles-module_arrow__K0L3T{width:var(--rt-arrow-size);height:var(--rt-arrow-size)}[class*='react-tooltip__place-top']>.styles-module_arrow__K0L3T{transform:rotate(45deg)}[class*='react-tooltip__place-right']>.styles-module_arrow__K0L3T{transform:rotate(135deg)}[class*='react-tooltip__place-bottom']>.styles-module_arrow__K0L3T{transform:rotate(225deg)}[class*='react-tooltip__place-left']>.styles-module_arrow__K0L3T{transform:rotate(315deg)}.styles-module_dark__xNqje{background:var(--rt-color-dark);color:var(--rt-color-white)}.styles-module_light__Z6W-X{background-color:var(--rt-color-white);color:var(--rt-color-dark)}.styles-module_success__A2AKt{background-color:var(--rt-color-success);color:var(--rt-color-white)}.styles-module_warning__SCK0X{background-color:var(--rt-color-warning);color:var(--rt-color-white)}.styles-module_error__JvumD{background-color:var(--rt-color-error);color:var(--rt-color-white)}.styles-module_info__BWdHW{background-color:var(--rt-color-info);color:var(--rt-color-white)}`,type:"base"})});var pb=cd;function vb(i,e){return pb(i,e)}var mb=vb,Wf={exports:{}};/*!
969
+ * Quill Editor v1.3.7
970
+ * https://quilljs.com/
971
+ * Copyright (c) 2014, Jason Chen
972
+ * Copyright (c) 2013, salesforce.com
973
+ */(function(i,e){(function(n,r){i.exports=r()})(typeof self<"u"?self:mn,function(){return function(t){var n={};function r(a){if(n[a])return n[a].exports;var o=n[a]={i:a,l:!1,exports:{}};return t[a].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=t,r.c=n,r.d=function(a,o,s){r.o(a,o)||Object.defineProperty(a,o,{configurable:!1,enumerable:!0,get:s})},r.n=function(a){var o=a&&a.__esModule?function(){return a.default}:function(){return a};return r.d(o,"a",o),o},r.o=function(a,o){return Object.prototype.hasOwnProperty.call(a,o)},r.p="",r(r.s=109)}([function(t,n,r){Object.defineProperty(n,"__esModule",{value:!0});var a=r(17),o=r(18),s=r(19),l=r(45),h=r(46),u=r(47),c=r(48),f=r(49),d=r(12),p=r(32),g=r(33),m=r(31),v=r(1),y={Scope:v.Scope,create:v.create,find:v.find,query:v.query,register:v.register,Container:a.default,Format:o.default,Leaf:s.default,Embed:c.default,Scroll:l.default,Block:u.default,Inline:h.default,Text:f.default,Attributor:{Attribute:d.default,Class:p.default,Style:g.default,Store:m.default}};n.default=y},function(t,n,r){var a=this&&this.__extends||function(){var m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(v,y){v.__proto__=y}||function(v,y){for(var b in y)y.hasOwnProperty(b)&&(v[b]=y[b])};return function(v,y){m(v,y);function b(){this.constructor=v}v.prototype=y===null?Object.create(y):(b.prototype=y.prototype,new b)}}();Object.defineProperty(n,"__esModule",{value:!0});var o=function(m){a(v,m);function v(y){var b=this;return y="[Parchment] "+y,b=m.call(this,y)||this,b.message=y,b.name=b.constructor.name,b}return v}(Error);n.ParchmentError=o;var s={},l={},h={},u={};n.DATA_KEY="__blot";var c;(function(m){m[m.TYPE=3]="TYPE",m[m.LEVEL=12]="LEVEL",m[m.ATTRIBUTE=13]="ATTRIBUTE",m[m.BLOT=14]="BLOT",m[m.INLINE=7]="INLINE",m[m.BLOCK=11]="BLOCK",m[m.BLOCK_BLOT=10]="BLOCK_BLOT",m[m.INLINE_BLOT=6]="INLINE_BLOT",m[m.BLOCK_ATTRIBUTE=9]="BLOCK_ATTRIBUTE",m[m.INLINE_ATTRIBUTE=5]="INLINE_ATTRIBUTE",m[m.ANY=15]="ANY"})(c=n.Scope||(n.Scope={}));function f(m,v){var y=p(m);if(y==null)throw new o("Unable to create "+m+" blot");var b=y,x=m instanceof Node||m.nodeType===Node.TEXT_NODE?m:b.create(v);return new b(x,v)}n.create=f;function d(m,v){return v===void 0&&(v=!1),m==null?null:m[n.DATA_KEY]!=null?m[n.DATA_KEY].blot:v?d(m.parentNode,v):null}n.find=d;function p(m,v){v===void 0&&(v=c.ANY);var y;if(typeof m=="string")y=u[m]||s[m];else if(m instanceof Text||m.nodeType===Node.TEXT_NODE)y=u.text;else if(typeof m=="number")m&c.LEVEL&c.BLOCK?y=u.block:m&c.LEVEL&c.INLINE&&(y=u.inline);else if(m instanceof HTMLElement){var b=(m.getAttribute("class")||"").split(/\s+/);for(var x in b)if(y=l[b[x]],y)break;y=y||h[m.tagName]}return y==null?null:v&c.LEVEL&y.scope&&v&c.TYPE&y.scope?y:null}n.query=p;function g(){for(var m=[],v=0;v<arguments.length;v++)m[v]=arguments[v];if(m.length>1)return m.map(function(x){return g(x)});var y=m[0];if(typeof y.blotName!="string"&&typeof y.attrName!="string")throw new o("Invalid definition");if(y.blotName==="abstract")throw new o("Cannot register abstract class");if(u[y.blotName||y.attrName]=y,typeof y.keyName=="string")s[y.keyName]=y;else if(y.className!=null&&(l[y.className]=y),y.tagName!=null){Array.isArray(y.tagName)?y.tagName=y.tagName.map(function(x){return x.toUpperCase()}):y.tagName=y.tagName.toUpperCase();var b=Array.isArray(y.tagName)?y.tagName:[y.tagName];b.forEach(function(x){(h[x]==null||y.className==null)&&(h[x]=y)})}return y}n.register=g},function(t,n,r){var a=r(51),o=r(11),s=r(3),l=r(20),h=String.fromCharCode(0),u=function(c){Array.isArray(c)?this.ops=c:c!=null&&Array.isArray(c.ops)?this.ops=c.ops:this.ops=[]};u.prototype.insert=function(c,f){var d={};return c.length===0?this:(d.insert=c,f!=null&&typeof f=="object"&&Object.keys(f).length>0&&(d.attributes=f),this.push(d))},u.prototype.delete=function(c){return c<=0?this:this.push({delete:c})},u.prototype.retain=function(c,f){if(c<=0)return this;var d={retain:c};return f!=null&&typeof f=="object"&&Object.keys(f).length>0&&(d.attributes=f),this.push(d)},u.prototype.push=function(c){var f=this.ops.length,d=this.ops[f-1];if(c=s(!0,{},c),typeof d=="object"){if(typeof c.delete=="number"&&typeof d.delete=="number")return this.ops[f-1]={delete:d.delete+c.delete},this;if(typeof d.delete=="number"&&c.insert!=null&&(f-=1,d=this.ops[f-1],typeof d!="object"))return this.ops.unshift(c),this;if(o(c.attributes,d.attributes)){if(typeof c.insert=="string"&&typeof d.insert=="string")return this.ops[f-1]={insert:d.insert+c.insert},typeof c.attributes=="object"&&(this.ops[f-1].attributes=c.attributes),this;if(typeof c.retain=="number"&&typeof d.retain=="number")return this.ops[f-1]={retain:d.retain+c.retain},typeof c.attributes=="object"&&(this.ops[f-1].attributes=c.attributes),this}}return f===this.ops.length?this.ops.push(c):this.ops.splice(f,0,c),this},u.prototype.chop=function(){var c=this.ops[this.ops.length-1];return c&&c.retain&&!c.attributes&&this.ops.pop(),this},u.prototype.filter=function(c){return this.ops.filter(c)},u.prototype.forEach=function(c){this.ops.forEach(c)},u.prototype.map=function(c){return this.ops.map(c)},u.prototype.partition=function(c){var f=[],d=[];return this.forEach(function(p){var g=c(p)?f:d;g.push(p)}),[f,d]},u.prototype.reduce=function(c,f){return this.ops.reduce(c,f)},u.prototype.changeLength=function(){return this.reduce(function(c,f){return f.insert?c+l.length(f):f.delete?c-f.delete:c},0)},u.prototype.length=function(){return this.reduce(function(c,f){return c+l.length(f)},0)},u.prototype.slice=function(c,f){c=c||0,typeof f!="number"&&(f=1/0);for(var d=[],p=l.iterator(this.ops),g=0;g<f&&p.hasNext();){var m;g<c?m=p.next(c-g):(m=p.next(f-g),d.push(m)),g+=l.length(m)}return new u(d)},u.prototype.compose=function(c){var f=l.iterator(this.ops),d=l.iterator(c.ops),p=[],g=d.peek();if(g!=null&&typeof g.retain=="number"&&g.attributes==null){for(var m=g.retain;f.peekType()==="insert"&&f.peekLength()<=m;)m-=f.peekLength(),p.push(f.next());g.retain-m>0&&d.next(g.retain-m)}for(var v=new u(p);f.hasNext()||d.hasNext();)if(d.peekType()==="insert")v.push(d.next());else if(f.peekType()==="delete")v.push(f.next());else{var y=Math.min(f.peekLength(),d.peekLength()),b=f.next(y),x=d.next(y);if(typeof x.retain=="number"){var w={};typeof b.retain=="number"?w.retain=y:w.insert=b.insert;var k=l.attributes.compose(b.attributes,x.attributes,typeof b.retain=="number");if(k&&(w.attributes=k),v.push(w),!d.hasNext()&&o(v.ops[v.ops.length-1],w)){var S=new u(f.rest());return v.concat(S).chop()}}else typeof x.delete=="number"&&typeof b.retain=="number"&&v.push(x)}return v.chop()},u.prototype.concat=function(c){var f=new u(this.ops.slice());return c.ops.length>0&&(f.push(c.ops[0]),f.ops=f.ops.concat(c.ops.slice(1))),f},u.prototype.diff=function(c,f){if(this.ops===c.ops)return new u;var d=[this,c].map(function(y){return y.map(function(b){if(b.insert!=null)return typeof b.insert=="string"?b.insert:h;var x=y===c?"on":"with";throw new Error("diff() called "+x+" non-document")}).join("")}),p=new u,g=a(d[0],d[1],f),m=l.iterator(this.ops),v=l.iterator(c.ops);return g.forEach(function(y){for(var b=y[1].length;b>0;){var x=0;switch(y[0]){case a.INSERT:x=Math.min(v.peekLength(),b),p.push(v.next(x));break;case a.DELETE:x=Math.min(b,m.peekLength()),m.next(x),p.delete(x);break;case a.EQUAL:x=Math.min(m.peekLength(),v.peekLength(),b);var w=m.next(x),k=v.next(x);o(w.insert,k.insert)?p.retain(x,l.attributes.diff(w.attributes,k.attributes)):p.push(k).delete(x);break}b-=x}}),p.chop()},u.prototype.eachLine=function(c,f){f=f||`
974
+ `;for(var d=l.iterator(this.ops),p=new u,g=0;d.hasNext();){if(d.peekType()!=="insert")return;var m=d.peek(),v=l.length(m)-d.peekLength(),y=typeof m.insert=="string"?m.insert.indexOf(f,v)-v:-1;if(y<0)p.push(d.next());else if(y>0)p.push(d.next(y));else{if(c(p,d.next(1).attributes||{},g)===!1)return;g+=1,p=new u}}p.length()>0&&c(p,{},g)},u.prototype.transform=function(c,f){if(f=!!f,typeof c=="number")return this.transformPosition(c,f);for(var d=l.iterator(this.ops),p=l.iterator(c.ops),g=new u;d.hasNext()||p.hasNext();)if(d.peekType()==="insert"&&(f||p.peekType()!=="insert"))g.retain(l.length(d.next()));else if(p.peekType()==="insert")g.push(p.next());else{var m=Math.min(d.peekLength(),p.peekLength()),v=d.next(m),y=p.next(m);if(v.delete)continue;y.delete?g.push(y):g.retain(m,l.attributes.transform(v.attributes,y.attributes,f))}return g.chop()},u.prototype.transformPosition=function(c,f){f=!!f;for(var d=l.iterator(this.ops),p=0;d.hasNext()&&p<=c;){var g=d.peekLength(),m=d.peekType();if(d.next(),m==="delete"){c-=Math.min(g,c-p);continue}else m==="insert"&&(p<c||!f)&&(c+=g);p+=g}return c},t.exports=u},function(t,n){var r=Object.prototype.hasOwnProperty,a=Object.prototype.toString,o=Object.defineProperty,s=Object.getOwnPropertyDescriptor,l=function(d){return typeof Array.isArray=="function"?Array.isArray(d):a.call(d)==="[object Array]"},h=function(d){if(!d||a.call(d)!=="[object Object]")return!1;var p=r.call(d,"constructor"),g=d.constructor&&d.constructor.prototype&&r.call(d.constructor.prototype,"isPrototypeOf");if(d.constructor&&!p&&!g)return!1;var m;for(m in d);return typeof m>"u"||r.call(d,m)},u=function(d,p){o&&p.name==="__proto__"?o(d,p.name,{enumerable:!0,configurable:!0,value:p.newValue,writable:!0}):d[p.name]=p.newValue},c=function(d,p){if(p==="__proto__")if(r.call(d,p)){if(s)return s(d,p).value}else return;return d[p]};t.exports=function f(){var d,p,g,m,v,y,b=arguments[0],x=1,w=arguments.length,k=!1;for(typeof b=="boolean"&&(k=b,b=arguments[1]||{},x=2),(b==null||typeof b!="object"&&typeof b!="function")&&(b={});x<w;++x)if(d=arguments[x],d!=null)for(p in d)g=c(b,p),m=c(d,p),b!==m&&(k&&m&&(h(m)||(v=l(m)))?(v?(v=!1,y=g&&l(g)?g:[]):y=g&&h(g)?g:{},u(b,{name:p,newValue:f(k,y,m)})):typeof m<"u"&&u(b,{name:p,newValue:m}));return b}},function(t,n,r){Object.defineProperty(n,"__esModule",{value:!0}),n.default=n.BlockEmbed=n.bubbleFormats=void 0;var a=function(){function C(M,P){for(var E=0;E<P.length;E++){var R=P[E];R.enumerable=R.enumerable||!1,R.configurable=!0,"value"in R&&(R.writable=!0),Object.defineProperty(M,R.key,R)}}return function(M,P,E){return P&&C(M.prototype,P),E&&C(M,E),M}}(),o=function C(M,P,E){M===null&&(M=Function.prototype);var R=Object.getOwnPropertyDescriptor(M,P);if(R===void 0){var T=Object.getPrototypeOf(M);return T===null?void 0:C(T,P,E)}else{if("value"in R)return R.value;var F=R.get;return F===void 0?void 0:F.call(E)}},s=r(3),l=b(s),h=r(2),u=b(h),c=r(0),f=b(c),d=r(16),p=b(d),g=r(6),m=b(g),v=r(7),y=b(v);function b(C){return C&&C.__esModule?C:{default:C}}function x(C,M){if(!(C instanceof M))throw new TypeError("Cannot call a class as a function")}function w(C,M){if(!C)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return M&&(typeof M=="object"||typeof M=="function")?M:C}function k(C,M){if(typeof M!="function"&&M!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof M);C.prototype=Object.create(M&&M.prototype,{constructor:{value:C,enumerable:!1,writable:!0,configurable:!0}}),M&&(Object.setPrototypeOf?Object.setPrototypeOf(C,M):C.__proto__=M)}var S=1,A=function(C){k(M,C);function M(){return x(this,M),w(this,(M.__proto__||Object.getPrototypeOf(M)).apply(this,arguments))}return a(M,[{key:"attach",value:function(){o(M.prototype.__proto__||Object.getPrototypeOf(M.prototype),"attach",this).call(this),this.attributes=new f.default.Attributor.Store(this.domNode)}},{key:"delta",value:function(){return new u.default().insert(this.value(),(0,l.default)(this.formats(),this.attributes.values()))}},{key:"format",value:function(E,R){var T=f.default.query(E,f.default.Scope.BLOCK_ATTRIBUTE);T!=null&&this.attributes.attribute(T,R)}},{key:"formatAt",value:function(E,R,T,F){this.format(T,F)}},{key:"insertAt",value:function(E,R,T){if(typeof R=="string"&&R.endsWith(`
975
+ `)){var F=f.default.create(O.blotName);this.parent.insertBefore(F,E===0?this:this.next),F.insertAt(0,R.slice(0,-1))}else o(M.prototype.__proto__||Object.getPrototypeOf(M.prototype),"insertAt",this).call(this,E,R,T)}}]),M}(f.default.Embed);A.scope=f.default.Scope.BLOCK_BLOT;var O=function(C){k(M,C);function M(P){x(this,M);var E=w(this,(M.__proto__||Object.getPrototypeOf(M)).call(this,P));return E.cache={},E}return a(M,[{key:"delta",value:function(){return this.cache.delta==null&&(this.cache.delta=this.descendants(f.default.Leaf).reduce(function(E,R){return R.length()===0?E:E.insert(R.value(),_(R))},new u.default).insert(`
976
+ `,_(this))),this.cache.delta}},{key:"deleteAt",value:function(E,R){o(M.prototype.__proto__||Object.getPrototypeOf(M.prototype),"deleteAt",this).call(this,E,R),this.cache={}}},{key:"formatAt",value:function(E,R,T,F){R<=0||(f.default.query(T,f.default.Scope.BLOCK)?E+R===this.length()&&this.format(T,F):o(M.prototype.__proto__||Object.getPrototypeOf(M.prototype),"formatAt",this).call(this,E,Math.min(R,this.length()-E-1),T,F),this.cache={})}},{key:"insertAt",value:function(E,R,T){if(T!=null)return o(M.prototype.__proto__||Object.getPrototypeOf(M.prototype),"insertAt",this).call(this,E,R,T);if(R.length!==0){var F=R.split(`
977
+ `),B=F.shift();B.length>0&&(E<this.length()-1||this.children.tail==null?o(M.prototype.__proto__||Object.getPrototypeOf(M.prototype),"insertAt",this).call(this,Math.min(E,this.length()-1),B):this.children.tail.insertAt(this.children.tail.length(),B),this.cache={});var D=this;F.reduce(function(N,L){return D=D.split(N,!0),D.insertAt(0,L),L.length},E+B.length)}}},{key:"insertBefore",value:function(E,R){var T=this.children.head;o(M.prototype.__proto__||Object.getPrototypeOf(M.prototype),"insertBefore",this).call(this,E,R),T instanceof p.default&&T.remove(),this.cache={}}},{key:"length",value:function(){return this.cache.length==null&&(this.cache.length=o(M.prototype.__proto__||Object.getPrototypeOf(M.prototype),"length",this).call(this)+S),this.cache.length}},{key:"moveChildren",value:function(E,R){o(M.prototype.__proto__||Object.getPrototypeOf(M.prototype),"moveChildren",this).call(this,E,R),this.cache={}}},{key:"optimize",value:function(E){o(M.prototype.__proto__||Object.getPrototypeOf(M.prototype),"optimize",this).call(this,E),this.cache={}}},{key:"path",value:function(E){return o(M.prototype.__proto__||Object.getPrototypeOf(M.prototype),"path",this).call(this,E,!0)}},{key:"removeChild",value:function(E){o(M.prototype.__proto__||Object.getPrototypeOf(M.prototype),"removeChild",this).call(this,E),this.cache={}}},{key:"split",value:function(E){var R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(R&&(E===0||E>=this.length()-S)){var T=this.clone();return E===0?(this.parent.insertBefore(T,this),this):(this.parent.insertBefore(T,this.next),T)}else{var F=o(M.prototype.__proto__||Object.getPrototypeOf(M.prototype),"split",this).call(this,E,R);return this.cache={},F}}}]),M}(f.default.Block);O.blotName="block",O.tagName="P",O.defaultChild="break",O.allowedChildren=[m.default,f.default.Embed,y.default];function _(C){var M=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return C==null||(typeof C.formats=="function"&&(M=(0,l.default)(M,C.formats())),C.parent==null||C.parent.blotName=="scroll"||C.parent.statics.scope!==C.statics.scope)?M:_(C.parent,M)}n.bubbleFormats=_,n.BlockEmbed=A,n.default=O},function(t,n,r){Object.defineProperty(n,"__esModule",{value:!0}),n.default=n.overload=n.expandConfig=void 0;var a=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(D){return typeof D}:function(D){return D&&typeof Symbol=="function"&&D.constructor===Symbol&&D!==Symbol.prototype?"symbol":typeof D},o=function(){function D(N,L){var I=[],H=!0,Y=!1,W=void 0;try{for(var z=N[Symbol.iterator](),X;!(H=(X=z.next()).done)&&(I.push(X.value),!(L&&I.length===L));H=!0);}catch(G){Y=!0,W=G}finally{try{!H&&z.return&&z.return()}finally{if(Y)throw W}}return I}return function(N,L){if(Array.isArray(N))return N;if(Symbol.iterator in Object(N))return D(N,L);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),s=function(){function D(N,L){for(var I=0;I<L.length;I++){var H=L[I];H.enumerable=H.enumerable||!1,H.configurable=!0,"value"in H&&(H.writable=!0),Object.defineProperty(N,H.key,H)}}return function(N,L,I){return L&&D(N.prototype,L),I&&D(N,I),N}}();r(50);var l=r(2),h=_(l),u=r(14),c=_(u),f=r(8),d=_(f),p=r(9),g=_(p),m=r(0),v=_(m),y=r(15),b=_(y),x=r(3),w=_(x),k=r(10),S=_(k),A=r(34),O=_(A);function _(D){return D&&D.__esModule?D:{default:D}}function C(D,N,L){return N in D?Object.defineProperty(D,N,{value:L,enumerable:!0,configurable:!0,writable:!0}):D[N]=L,D}function M(D,N){if(!(D instanceof N))throw new TypeError("Cannot call a class as a function")}var P=(0,S.default)("quill"),E=function(){s(D,null,[{key:"debug",value:function(L){L===!0&&(L="log"),S.default.level(L)}},{key:"find",value:function(L){return L.__quill||v.default.find(L)}},{key:"import",value:function(L){return this.imports[L]==null&&P.error("Cannot import "+L+". Are you sure it was registered?"),this.imports[L]}},{key:"register",value:function(L,I){var H=this,Y=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;if(typeof L!="string"){var W=L.attrName||L.blotName;typeof W=="string"?this.register("formats/"+W,L,I):Object.keys(L).forEach(function(z){H.register(z,L[z],I)})}else this.imports[L]!=null&&!Y&&P.warn("Overwriting "+L+" with",I),this.imports[L]=I,(L.startsWith("blots/")||L.startsWith("formats/"))&&I.blotName!=="abstract"?v.default.register(I):L.startsWith("modules")&&typeof I.register=="function"&&I.register()}}]);function D(N){var L=this,I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(M(this,D),this.options=R(N,I),this.container=this.options.container,this.container==null)return P.error("Invalid Quill container",N);this.options.debug&&D.debug(this.options.debug);var H=this.container.innerHTML.trim();this.container.classList.add("ql-container"),this.container.innerHTML="",this.container.__quill=this,this.root=this.addContainer("ql-editor"),this.root.classList.add("ql-blank"),this.root.setAttribute("data-gramm",!1),this.scrollingContainer=this.options.scrollingContainer||this.root,this.emitter=new d.default,this.scroll=v.default.create(this.root,{emitter:this.emitter,whitelist:this.options.formats}),this.editor=new c.default(this.scroll),this.selection=new b.default(this.scroll,this.emitter),this.theme=new this.options.theme(this,this.options),this.keyboard=this.theme.addModule("keyboard"),this.clipboard=this.theme.addModule("clipboard"),this.history=this.theme.addModule("history"),this.theme.init(),this.emitter.on(d.default.events.EDITOR_CHANGE,function(W){W===d.default.events.TEXT_CHANGE&&L.root.classList.toggle("ql-blank",L.editor.isBlank())}),this.emitter.on(d.default.events.SCROLL_UPDATE,function(W,z){var X=L.selection.lastRange,G=X&&X.length===0?X.index:void 0;T.call(L,function(){return L.editor.update(null,z,G)},W)});var Y=this.clipboard.convert(`<div class='ql-editor' style="white-space: normal;">`+H+"<p><br></p></div>");this.setContents(Y),this.history.clear(),this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder),this.options.readOnly&&this.disable()}return s(D,[{key:"addContainer",value:function(L){var I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(typeof L=="string"){var H=L;L=document.createElement("div"),L.classList.add(H)}return this.container.insertBefore(L,I),L}},{key:"blur",value:function(){this.selection.setRange(null)}},{key:"deleteText",value:function(L,I,H){var Y=this,W=F(L,I,H),z=o(W,4);return L=z[0],I=z[1],H=z[3],T.call(this,function(){return Y.editor.deleteText(L,I)},H,L,-1*I)}},{key:"disable",value:function(){this.enable(!1)}},{key:"enable",value:function(){var L=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.scroll.enable(L),this.container.classList.toggle("ql-disabled",!L)}},{key:"focus",value:function(){var L=this.scrollingContainer.scrollTop;this.selection.focus(),this.scrollingContainer.scrollTop=L,this.scrollIntoView()}},{key:"format",value:function(L,I){var H=this,Y=arguments.length>2&&arguments[2]!==void 0?arguments[2]:d.default.sources.API;return T.call(this,function(){var W=H.getSelection(!0),z=new h.default;if(W==null)return z;if(v.default.query(L,v.default.Scope.BLOCK))z=H.editor.formatLine(W.index,W.length,C({},L,I));else{if(W.length===0)return H.selection.format(L,I),z;z=H.editor.formatText(W.index,W.length,C({},L,I))}return H.setSelection(W,d.default.sources.SILENT),z},Y)}},{key:"formatLine",value:function(L,I,H,Y,W){var z=this,X=void 0,G=F(L,I,H,Y,W),V=o(G,4);return L=V[0],I=V[1],X=V[2],W=V[3],T.call(this,function(){return z.editor.formatLine(L,I,X)},W,L,0)}},{key:"formatText",value:function(L,I,H,Y,W){var z=this,X=void 0,G=F(L,I,H,Y,W),V=o(G,4);return L=V[0],I=V[1],X=V[2],W=V[3],T.call(this,function(){return z.editor.formatText(L,I,X)},W,L,0)}},{key:"getBounds",value:function(L){var I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,H=void 0;typeof L=="number"?H=this.selection.getBounds(L,I):H=this.selection.getBounds(L.index,L.length);var Y=this.container.getBoundingClientRect();return{bottom:H.bottom-Y.top,height:H.height,left:H.left-Y.left,right:H.right-Y.left,top:H.top-Y.top,width:H.width}}},{key:"getContents",value:function(){var L=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.getLength()-L,H=F(L,I),Y=o(H,2);return L=Y[0],I=Y[1],this.editor.getContents(L,I)}},{key:"getFormat",value:function(){var L=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.getSelection(!0),I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return typeof L=="number"?this.editor.getFormat(L,I):this.editor.getFormat(L.index,L.length)}},{key:"getIndex",value:function(L){return L.offset(this.scroll)}},{key:"getLength",value:function(){return this.scroll.length()}},{key:"getLeaf",value:function(L){return this.scroll.leaf(L)}},{key:"getLine",value:function(L){return this.scroll.line(L)}},{key:"getLines",value:function(){var L=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.MAX_VALUE;return typeof L!="number"?this.scroll.lines(L.index,L.length):this.scroll.lines(L,I)}},{key:"getModule",value:function(L){return this.theme.modules[L]}},{key:"getSelection",value:function(){var L=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return L&&this.focus(),this.update(),this.selection.getRange()[0]}},{key:"getText",value:function(){var L=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.getLength()-L,H=F(L,I),Y=o(H,2);return L=Y[0],I=Y[1],this.editor.getText(L,I)}},{key:"hasFocus",value:function(){return this.selection.hasFocus()}},{key:"insertEmbed",value:function(L,I,H){var Y=this,W=arguments.length>3&&arguments[3]!==void 0?arguments[3]:D.sources.API;return T.call(this,function(){return Y.editor.insertEmbed(L,I,H)},W,L)}},{key:"insertText",value:function(L,I,H,Y,W){var z=this,X=void 0,G=F(L,0,H,Y,W),V=o(G,4);return L=V[0],X=V[2],W=V[3],T.call(this,function(){return z.editor.insertText(L,I,X)},W,L,I.length)}},{key:"isEnabled",value:function(){return!this.container.classList.contains("ql-disabled")}},{key:"off",value:function(){return this.emitter.off.apply(this.emitter,arguments)}},{key:"on",value:function(){return this.emitter.on.apply(this.emitter,arguments)}},{key:"once",value:function(){return this.emitter.once.apply(this.emitter,arguments)}},{key:"pasteHTML",value:function(L,I,H){this.clipboard.dangerouslyPasteHTML(L,I,H)}},{key:"removeFormat",value:function(L,I,H){var Y=this,W=F(L,I,H),z=o(W,4);return L=z[0],I=z[1],H=z[3],T.call(this,function(){return Y.editor.removeFormat(L,I)},H,L)}},{key:"scrollIntoView",value:function(){this.selection.scrollIntoView(this.scrollingContainer)}},{key:"setContents",value:function(L){var I=this,H=arguments.length>1&&arguments[1]!==void 0?arguments[1]:d.default.sources.API;return T.call(this,function(){L=new h.default(L);var Y=I.getLength(),W=I.editor.deleteText(0,Y),z=I.editor.applyDelta(L),X=z.ops[z.ops.length-1];X!=null&&typeof X.insert=="string"&&X.insert[X.insert.length-1]===`
978
+ `&&(I.editor.deleteText(I.getLength()-1,1),z.delete(1));var G=W.compose(z);return G},H)}},{key:"setSelection",value:function(L,I,H){if(L==null)this.selection.setRange(null,I||D.sources.API);else{var Y=F(L,I,H),W=o(Y,4);L=W[0],I=W[1],H=W[3],this.selection.setRange(new y.Range(L,I),H),H!==d.default.sources.SILENT&&this.selection.scrollIntoView(this.scrollingContainer)}}},{key:"setText",value:function(L){var I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:d.default.sources.API,H=new h.default().insert(L);return this.setContents(H,I)}},{key:"update",value:function(){var L=arguments.length>0&&arguments[0]!==void 0?arguments[0]:d.default.sources.USER,I=this.scroll.update(L);return this.selection.update(L),I}},{key:"updateContents",value:function(L){var I=this,H=arguments.length>1&&arguments[1]!==void 0?arguments[1]:d.default.sources.API;return T.call(this,function(){return L=new h.default(L),I.editor.applyDelta(L,H)},H,!0)}}]),D}();E.DEFAULTS={bounds:null,formats:null,modules:{},placeholder:"",readOnly:!1,scrollingContainer:null,strict:!0,theme:"default"},E.events=d.default.events,E.sources=d.default.sources,E.version="1.3.7",E.imports={delta:h.default,parchment:v.default,"core/module":g.default,"core/theme":O.default};function R(D,N){if(N=(0,w.default)(!0,{container:D,modules:{clipboard:!0,keyboard:!0,history:!0}},N),!N.theme||N.theme===E.DEFAULTS.theme)N.theme=O.default;else if(N.theme=E.import("themes/"+N.theme),N.theme==null)throw new Error("Invalid theme "+N.theme+". Did you register it?");var L=(0,w.default)(!0,{},N.theme.DEFAULTS);[L,N].forEach(function(Y){Y.modules=Y.modules||{},Object.keys(Y.modules).forEach(function(W){Y.modules[W]===!0&&(Y.modules[W]={})})});var I=Object.keys(L.modules).concat(Object.keys(N.modules)),H=I.reduce(function(Y,W){var z=E.import("modules/"+W);return z==null?P.error("Cannot load "+W+" module. Are you sure you registered it?"):Y[W]=z.DEFAULTS||{},Y},{});return N.modules!=null&&N.modules.toolbar&&N.modules.toolbar.constructor!==Object&&(N.modules.toolbar={container:N.modules.toolbar}),N=(0,w.default)(!0,{},E.DEFAULTS,{modules:H},L,N),["bounds","container","scrollingContainer"].forEach(function(Y){typeof N[Y]=="string"&&(N[Y]=document.querySelector(N[Y]))}),N.modules=Object.keys(N.modules).reduce(function(Y,W){return N.modules[W]&&(Y[W]=N.modules[W]),Y},{}),N}function T(D,N,L,I){if(this.options.strict&&!this.isEnabled()&&N===d.default.sources.USER)return new h.default;var H=L==null?null:this.getSelection(),Y=this.editor.delta,W=D();if(H!=null&&(L===!0&&(L=H.index),I==null?H=B(H,W,N):I!==0&&(H=B(H,L,I,N)),this.setSelection(H,d.default.sources.SILENT)),W.length()>0){var z,X=[d.default.events.TEXT_CHANGE,W,Y,N];if((z=this.emitter).emit.apply(z,[d.default.events.EDITOR_CHANGE].concat(X)),N!==d.default.sources.SILENT){var G;(G=this.emitter).emit.apply(G,X)}}return W}function F(D,N,L,I,H){var Y={};return typeof D.index=="number"&&typeof D.length=="number"?typeof N!="number"?(H=I,I=L,L=N,N=D.length,D=D.index):(N=D.length,D=D.index):typeof N!="number"&&(H=I,I=L,L=N,N=0),(typeof L>"u"?"undefined":a(L))==="object"?(Y=L,H=I):typeof L=="string"&&(I!=null?Y[L]=I:H=L),H=H||d.default.sources.API,[D,N,Y,H]}function B(D,N,L,I){if(D==null)return null;var H=void 0,Y=void 0;if(N instanceof h.default){var W=[D.index,D.index+D.length].map(function(V){return N.transformPosition(V,I!==d.default.sources.USER)}),z=o(W,2);H=z[0],Y=z[1]}else{var X=[D.index,D.index+D.length].map(function(V){return V<N||V===N&&I===d.default.sources.USER?V:L>=0?V+L:Math.max(N,V+L)}),G=o(X,2);H=G[0],Y=G[1]}return new y.Range(H,Y-H)}n.expandConfig=R,n.overload=F,n.default=E},function(t,n,r){Object.defineProperty(n,"__esModule",{value:!0});var a=function(){function m(v,y){for(var b=0;b<y.length;b++){var x=y[b];x.enumerable=x.enumerable||!1,x.configurable=!0,"value"in x&&(x.writable=!0),Object.defineProperty(v,x.key,x)}}return function(v,y,b){return y&&m(v.prototype,y),b&&m(v,b),v}}(),o=function m(v,y,b){v===null&&(v=Function.prototype);var x=Object.getOwnPropertyDescriptor(v,y);if(x===void 0){var w=Object.getPrototypeOf(v);return w===null?void 0:m(w,y,b)}else{if("value"in x)return x.value;var k=x.get;return k===void 0?void 0:k.call(b)}},s=r(7),l=c(s),h=r(0),u=c(h);function c(m){return m&&m.__esModule?m:{default:m}}function f(m,v){if(!(m instanceof v))throw new TypeError("Cannot call a class as a function")}function d(m,v){if(!m)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return v&&(typeof v=="object"||typeof v=="function")?v:m}function p(m,v){if(typeof v!="function"&&v!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof v);m.prototype=Object.create(v&&v.prototype,{constructor:{value:m,enumerable:!1,writable:!0,configurable:!0}}),v&&(Object.setPrototypeOf?Object.setPrototypeOf(m,v):m.__proto__=v)}var g=function(m){p(v,m);function v(){return f(this,v),d(this,(v.__proto__||Object.getPrototypeOf(v)).apply(this,arguments))}return a(v,[{key:"formatAt",value:function(b,x,w,k){if(v.compare(this.statics.blotName,w)<0&&u.default.query(w,u.default.Scope.BLOT)){var S=this.isolate(b,x);k&&S.wrap(w,k)}else o(v.prototype.__proto__||Object.getPrototypeOf(v.prototype),"formatAt",this).call(this,b,x,w,k)}},{key:"optimize",value:function(b){if(o(v.prototype.__proto__||Object.getPrototypeOf(v.prototype),"optimize",this).call(this,b),this.parent instanceof v&&v.compare(this.statics.blotName,this.parent.statics.blotName)>0){var x=this.parent.isolate(this.offset(),this.length());this.moveChildren(x),x.wrap(this)}}}],[{key:"compare",value:function(b,x){var w=v.order.indexOf(b),k=v.order.indexOf(x);return w>=0||k>=0?w-k:b===x?0:b<x?-1:1}}]),v}(u.default.Inline);g.allowedChildren=[g,u.default.Embed,l.default],g.order=["cursor","inline","underline","strike","italic","bold","script","link","code"],n.default=g},function(t,n,r){Object.defineProperty(n,"__esModule",{value:!0});var a=r(0),o=s(a);function s(f){return f&&f.__esModule?f:{default:f}}function l(f,d){if(!(f instanceof d))throw new TypeError("Cannot call a class as a function")}function h(f,d){if(!f)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return d&&(typeof d=="object"||typeof d=="function")?d:f}function u(f,d){if(typeof d!="function"&&d!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof d);f.prototype=Object.create(d&&d.prototype,{constructor:{value:f,enumerable:!1,writable:!0,configurable:!0}}),d&&(Object.setPrototypeOf?Object.setPrototypeOf(f,d):f.__proto__=d)}var c=function(f){u(d,f);function d(){return l(this,d),h(this,(d.__proto__||Object.getPrototypeOf(d)).apply(this,arguments))}return d}(o.default.Text);n.default=c},function(t,n,r){Object.defineProperty(n,"__esModule",{value:!0});var a=function(){function y(b,x){for(var w=0;w<x.length;w++){var k=x[w];k.enumerable=k.enumerable||!1,k.configurable=!0,"value"in k&&(k.writable=!0),Object.defineProperty(b,k.key,k)}}return function(b,x,w){return x&&y(b.prototype,x),w&&y(b,w),b}}(),o=function y(b,x,w){b===null&&(b=Function.prototype);var k=Object.getOwnPropertyDescriptor(b,x);if(k===void 0){var S=Object.getPrototypeOf(b);return S===null?void 0:y(S,x,w)}else{if("value"in k)return k.value;var A=k.get;return A===void 0?void 0:A.call(w)}},s=r(54),l=c(s),h=r(10),u=c(h);function c(y){return y&&y.__esModule?y:{default:y}}function f(y,b){if(!(y instanceof b))throw new TypeError("Cannot call a class as a function")}function d(y,b){if(!y)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return b&&(typeof b=="object"||typeof b=="function")?b:y}function p(y,b){if(typeof b!="function"&&b!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof b);y.prototype=Object.create(b&&b.prototype,{constructor:{value:y,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(y,b):y.__proto__=b)}var g=(0,u.default)("quill:events"),m=["selectionchange","mousedown","mouseup","click"];m.forEach(function(y){document.addEventListener(y,function(){for(var b=arguments.length,x=Array(b),w=0;w<b;w++)x[w]=arguments[w];[].slice.call(document.querySelectorAll(".ql-container")).forEach(function(k){if(k.__quill&&k.__quill.emitter){var S;(S=k.__quill.emitter).handleDOM.apply(S,x)}})})});var v=function(y){p(b,y);function b(){f(this,b);var x=d(this,(b.__proto__||Object.getPrototypeOf(b)).call(this));return x.listeners={},x.on("error",g.error),x}return a(b,[{key:"emit",value:function(){g.log.apply(g,arguments),o(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"emit",this).apply(this,arguments)}},{key:"handleDOM",value:function(w){for(var k=arguments.length,S=Array(k>1?k-1:0),A=1;A<k;A++)S[A-1]=arguments[A];(this.listeners[w.type]||[]).forEach(function(O){var _=O.node,C=O.handler;(w.target===_||_.contains(w.target))&&C.apply(void 0,[w].concat(S))})}},{key:"listenDOM",value:function(w,k,S){this.listeners[w]||(this.listeners[w]=[]),this.listeners[w].push({node:k,handler:S})}}]),b}(l.default);v.events={EDITOR_CHANGE:"editor-change",SCROLL_BEFORE_UPDATE:"scroll-before-update",SCROLL_OPTIMIZE:"scroll-optimize",SCROLL_UPDATE:"scroll-update",SELECTION_CHANGE:"selection-change",TEXT_CHANGE:"text-change"},v.sources={API:"api",SILENT:"silent",USER:"user"},n.default=v},function(t,n,r){Object.defineProperty(n,"__esModule",{value:!0});function a(s,l){if(!(s instanceof l))throw new TypeError("Cannot call a class as a function")}var o=function s(l){var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};a(this,s),this.quill=l,this.options=h};o.DEFAULTS={},n.default=o},function(t,n,r){Object.defineProperty(n,"__esModule",{value:!0});var a=["error","warn","log","info"],o="warn";function s(h){if(a.indexOf(h)<=a.indexOf(o)){for(var u,c=arguments.length,f=Array(c>1?c-1:0),d=1;d<c;d++)f[d-1]=arguments[d];(u=console)[h].apply(u,f)}}function l(h){return a.reduce(function(u,c){return u[c]=s.bind(console,c,h),u},{})}s.level=l.level=function(h){o=h},n.default=l},function(t,n,r){var a=Array.prototype.slice,o=r(52),s=r(53),l=t.exports=function(f,d,p){return p||(p={}),f===d?!0:f instanceof Date&&d instanceof Date?f.getTime()===d.getTime():!f||!d||typeof f!="object"&&typeof d!="object"?p.strict?f===d:f==d:c(f,d,p)};function h(f){return f==null}function u(f){return!(!f||typeof f!="object"||typeof f.length!="number"||typeof f.copy!="function"||typeof f.slice!="function"||f.length>0&&typeof f[0]!="number")}function c(f,d,p){var g,m;if(h(f)||h(d)||f.prototype!==d.prototype)return!1;if(s(f))return s(d)?(f=a.call(f),d=a.call(d),l(f,d,p)):!1;if(u(f)){if(!u(d)||f.length!==d.length)return!1;for(g=0;g<f.length;g++)if(f[g]!==d[g])return!1;return!0}try{var v=o(f),y=o(d)}catch{return!1}if(v.length!=y.length)return!1;for(v.sort(),y.sort(),g=v.length-1;g>=0;g--)if(v[g]!=y[g])return!1;for(g=v.length-1;g>=0;g--)if(m=v[g],!l(f[m],d[m],p))return!1;return typeof f==typeof d}},function(t,n,r){Object.defineProperty(n,"__esModule",{value:!0});var a=r(1),o=function(){function s(l,h,u){u===void 0&&(u={}),this.attrName=l,this.keyName=h;var c=a.Scope.TYPE&a.Scope.ATTRIBUTE;u.scope!=null?this.scope=u.scope&a.Scope.LEVEL|c:this.scope=a.Scope.ATTRIBUTE,u.whitelist!=null&&(this.whitelist=u.whitelist)}return s.keys=function(l){return[].map.call(l.attributes,function(h){return h.name})},s.prototype.add=function(l,h){return this.canAdd(l,h)?(l.setAttribute(this.keyName,h),!0):!1},s.prototype.canAdd=function(l,h){var u=a.query(l,a.Scope.BLOT&(this.scope|a.Scope.TYPE));return u==null?!1:this.whitelist==null?!0:typeof h=="string"?this.whitelist.indexOf(h.replace(/["']/g,""))>-1:this.whitelist.indexOf(h)>-1},s.prototype.remove=function(l){l.removeAttribute(this.keyName)},s.prototype.value=function(l){var h=l.getAttribute(this.keyName);return this.canAdd(l,h)&&h?h:""},s}();n.default=o},function(t,n,r){Object.defineProperty(n,"__esModule",{value:!0}),n.default=n.Code=void 0;var a=function(){function A(O,_){var C=[],M=!0,P=!1,E=void 0;try{for(var R=O[Symbol.iterator](),T;!(M=(T=R.next()).done)&&(C.push(T.value),!(_&&C.length===_));M=!0);}catch(F){P=!0,E=F}finally{try{!M&&R.return&&R.return()}finally{if(P)throw E}}return C}return function(O,_){if(Array.isArray(O))return O;if(Symbol.iterator in Object(O))return A(O,_);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),o=function(){function A(O,_){for(var C=0;C<_.length;C++){var M=_[C];M.enumerable=M.enumerable||!1,M.configurable=!0,"value"in M&&(M.writable=!0),Object.defineProperty(O,M.key,M)}}return function(O,_,C){return _&&A(O.prototype,_),C&&A(O,C),O}}(),s=function A(O,_,C){O===null&&(O=Function.prototype);var M=Object.getOwnPropertyDescriptor(O,_);if(M===void 0){var P=Object.getPrototypeOf(O);return P===null?void 0:A(P,_,C)}else{if("value"in M)return M.value;var E=M.get;return E===void 0?void 0:E.call(C)}},l=r(2),h=y(l),u=r(0),c=y(u),f=r(4),d=y(f),p=r(6),g=y(p),m=r(7),v=y(m);function y(A){return A&&A.__esModule?A:{default:A}}function b(A,O){if(!(A instanceof O))throw new TypeError("Cannot call a class as a function")}function x(A,O){if(!A)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return O&&(typeof O=="object"||typeof O=="function")?O:A}function w(A,O){if(typeof O!="function"&&O!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof O);A.prototype=Object.create(O&&O.prototype,{constructor:{value:A,enumerable:!1,writable:!0,configurable:!0}}),O&&(Object.setPrototypeOf?Object.setPrototypeOf(A,O):A.__proto__=O)}var k=function(A){w(O,A);function O(){return b(this,O),x(this,(O.__proto__||Object.getPrototypeOf(O)).apply(this,arguments))}return O}(g.default);k.blotName="code",k.tagName="CODE";var S=function(A){w(O,A);function O(){return b(this,O),x(this,(O.__proto__||Object.getPrototypeOf(O)).apply(this,arguments))}return o(O,[{key:"delta",value:function(){var C=this,M=this.domNode.textContent;return M.endsWith(`
979
+ `)&&(M=M.slice(0,-1)),M.split(`
980
+ `).reduce(function(P,E){return P.insert(E).insert(`
981
+ `,C.formats())},new h.default)}},{key:"format",value:function(C,M){if(!(C===this.statics.blotName&&M)){var P=this.descendant(v.default,this.length()-1),E=a(P,1),R=E[0];R!=null&&R.deleteAt(R.length()-1,1),s(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"format",this).call(this,C,M)}}},{key:"formatAt",value:function(C,M,P,E){if(M!==0&&!(c.default.query(P,c.default.Scope.BLOCK)==null||P===this.statics.blotName&&E===this.statics.formats(this.domNode))){var R=this.newlineIndex(C);if(!(R<0||R>=C+M)){var T=this.newlineIndex(C,!0)+1,F=R-T+1,B=this.isolate(T,F),D=B.next;B.format(P,E),D instanceof O&&D.formatAt(0,C-T+M-F,P,E)}}}},{key:"insertAt",value:function(C,M,P){if(P==null){var E=this.descendant(v.default,C),R=a(E,2),T=R[0],F=R[1];T.insertAt(F,M)}}},{key:"length",value:function(){var C=this.domNode.textContent.length;return this.domNode.textContent.endsWith(`
982
+ `)?C:C+1}},{key:"newlineIndex",value:function(C){var M=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(M)return this.domNode.textContent.slice(0,C).lastIndexOf(`
983
+ `);var P=this.domNode.textContent.slice(C).indexOf(`
984
+ `);return P>-1?C+P:-1}},{key:"optimize",value:function(C){this.domNode.textContent.endsWith(`
985
+ `)||this.appendChild(c.default.create("text",`
986
+ `)),s(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"optimize",this).call(this,C);var M=this.next;M!=null&&M.prev===this&&M.statics.blotName===this.statics.blotName&&this.statics.formats(this.domNode)===M.statics.formats(M.domNode)&&(M.optimize(C),M.moveChildren(this),M.remove())}},{key:"replace",value:function(C){s(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"replace",this).call(this,C),[].slice.call(this.domNode.querySelectorAll("*")).forEach(function(M){var P=c.default.find(M);P==null?M.parentNode.removeChild(M):P instanceof c.default.Embed?P.remove():P.unwrap()})}}],[{key:"create",value:function(C){var M=s(O.__proto__||Object.getPrototypeOf(O),"create",this).call(this,C);return M.setAttribute("spellcheck",!1),M}},{key:"formats",value:function(){return!0}}]),O}(d.default);S.blotName="code-block",S.tagName="PRE",S.TAB=" ",n.Code=k,n.default=S},function(t,n,r){Object.defineProperty(n,"__esModule",{value:!0});var a=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(D){return typeof D}:function(D){return D&&typeof Symbol=="function"&&D.constructor===Symbol&&D!==Symbol.prototype?"symbol":typeof D},o=function(){function D(N,L){var I=[],H=!0,Y=!1,W=void 0;try{for(var z=N[Symbol.iterator](),X;!(H=(X=z.next()).done)&&(I.push(X.value),!(L&&I.length===L));H=!0);}catch(G){Y=!0,W=G}finally{try{!H&&z.return&&z.return()}finally{if(Y)throw W}}return I}return function(N,L){if(Array.isArray(N))return N;if(Symbol.iterator in Object(N))return D(N,L);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),s=function(){function D(N,L){for(var I=0;I<L.length;I++){var H=L[I];H.enumerable=H.enumerable||!1,H.configurable=!0,"value"in H&&(H.writable=!0),Object.defineProperty(N,H.key,H)}}return function(N,L,I){return L&&D(N.prototype,L),I&&D(N,I),N}}(),l=r(2),h=M(l),u=r(20),c=M(u),f=r(0),d=M(f),p=r(13),g=M(p),m=r(24),v=M(m),y=r(4),b=M(y),x=r(16),w=M(x),k=r(21),S=M(k),A=r(11),O=M(A),_=r(3),C=M(_);function M(D){return D&&D.__esModule?D:{default:D}}function P(D,N,L){return N in D?Object.defineProperty(D,N,{value:L,enumerable:!0,configurable:!0,writable:!0}):D[N]=L,D}function E(D,N){if(!(D instanceof N))throw new TypeError("Cannot call a class as a function")}var R=/^[ -~]*$/,T=function(){function D(N){E(this,D),this.scroll=N,this.delta=this.getDelta()}return s(D,[{key:"applyDelta",value:function(L){var I=this,H=!1;this.scroll.update();var Y=this.scroll.length();return this.scroll.batchStart(),L=B(L),L.reduce(function(W,z){var X=z.retain||z.delete||z.insert.length||1,G=z.attributes||{};if(z.insert!=null){if(typeof z.insert=="string"){var V=z.insert;V.endsWith(`
987
+ `)&&H&&(H=!1,V=V.slice(0,-1)),W>=Y&&!V.endsWith(`
988
+ `)&&(H=!0),I.scroll.insertAt(W,V);var $=I.scroll.line(W),ee=o($,2),ce=ee[0],le=ee[1],ve=(0,C.default)({},(0,y.bubbleFormats)(ce));if(ce instanceof b.default){var Ee=ce.descendant(d.default.Leaf,le),tt=o(Ee,1),Pe=tt[0];ve=(0,C.default)(ve,(0,y.bubbleFormats)(Pe))}G=c.default.attributes.diff(ve,G)||{}}else if(a(z.insert)==="object"){var U=Object.keys(z.insert)[0];if(U==null)return W;I.scroll.insertAt(W,U,z.insert[U])}Y+=X}return Object.keys(G).forEach(function(Z){I.scroll.formatAt(W,X,Z,G[Z])}),W+X},0),L.reduce(function(W,z){return typeof z.delete=="number"?(I.scroll.deleteAt(W,z.delete),W):W+(z.retain||z.insert.length||1)},0),this.scroll.batchEnd(),this.update(L)}},{key:"deleteText",value:function(L,I){return this.scroll.deleteAt(L,I),this.update(new h.default().retain(L).delete(I))}},{key:"formatLine",value:function(L,I){var H=this,Y=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.scroll.update(),Object.keys(Y).forEach(function(W){if(!(H.scroll.whitelist!=null&&!H.scroll.whitelist[W])){var z=H.scroll.lines(L,Math.max(I,1)),X=I;z.forEach(function(G){var V=G.length();if(!(G instanceof g.default))G.format(W,Y[W]);else{var $=L-G.offset(H.scroll),ee=G.newlineIndex($+X)-$+1;G.formatAt($,ee,W,Y[W])}X-=V})}}),this.scroll.optimize(),this.update(new h.default().retain(L).retain(I,(0,S.default)(Y)))}},{key:"formatText",value:function(L,I){var H=this,Y=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return Object.keys(Y).forEach(function(W){H.scroll.formatAt(L,I,W,Y[W])}),this.update(new h.default().retain(L).retain(I,(0,S.default)(Y)))}},{key:"getContents",value:function(L,I){return this.delta.slice(L,L+I)}},{key:"getDelta",value:function(){return this.scroll.lines().reduce(function(L,I){return L.concat(I.delta())},new h.default)}},{key:"getFormat",value:function(L){var I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,H=[],Y=[];I===0?this.scroll.path(L).forEach(function(z){var X=o(z,1),G=X[0];G instanceof b.default?H.push(G):G instanceof d.default.Leaf&&Y.push(G)}):(H=this.scroll.lines(L,I),Y=this.scroll.descendants(d.default.Leaf,L,I));var W=[H,Y].map(function(z){if(z.length===0)return{};for(var X=(0,y.bubbleFormats)(z.shift());Object.keys(X).length>0;){var G=z.shift();if(G==null)return X;X=F((0,y.bubbleFormats)(G),X)}return X});return C.default.apply(C.default,W)}},{key:"getText",value:function(L,I){return this.getContents(L,I).filter(function(H){return typeof H.insert=="string"}).map(function(H){return H.insert}).join("")}},{key:"insertEmbed",value:function(L,I,H){return this.scroll.insertAt(L,I,H),this.update(new h.default().retain(L).insert(P({},I,H)))}},{key:"insertText",value:function(L,I){var H=this,Y=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return I=I.replace(/\r\n/g,`
989
+ `).replace(/\r/g,`
990
+ `),this.scroll.insertAt(L,I),Object.keys(Y).forEach(function(W){H.scroll.formatAt(L,I.length,W,Y[W])}),this.update(new h.default().retain(L).insert(I,(0,S.default)(Y)))}},{key:"isBlank",value:function(){if(this.scroll.children.length==0)return!0;if(this.scroll.children.length>1)return!1;var L=this.scroll.children.head;return L.statics.blotName!==b.default.blotName||L.children.length>1?!1:L.children.head instanceof w.default}},{key:"removeFormat",value:function(L,I){var H=this.getText(L,I),Y=this.scroll.line(L+I),W=o(Y,2),z=W[0],X=W[1],G=0,V=new h.default;z!=null&&(z instanceof g.default?G=z.newlineIndex(X)-X+1:G=z.length()-X,V=z.delta().slice(X,X+G-1).insert(`
991
+ `));var $=this.getContents(L,I+G),ee=$.diff(new h.default().insert(H).concat(V)),ce=new h.default().retain(L).concat(ee);return this.applyDelta(ce)}},{key:"update",value:function(L){var I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],H=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0,Y=this.delta;if(I.length===1&&I[0].type==="characterData"&&I[0].target.data.match(R)&&d.default.find(I[0].target)){var W=d.default.find(I[0].target),z=(0,y.bubbleFormats)(W),X=W.offset(this.scroll),G=I[0].oldValue.replace(v.default.CONTENTS,""),V=new h.default().insert(G),$=new h.default().insert(W.value()),ee=new h.default().retain(X).concat(V.diff($,H));L=ee.reduce(function(ce,le){return le.insert?ce.insert(le.insert,z):ce.push(le)},new h.default),this.delta=Y.compose(L)}else this.delta=this.getDelta(),(!L||!(0,O.default)(Y.compose(L),this.delta))&&(L=Y.diff(this.delta,H));return L}}]),D}();function F(D,N){return Object.keys(N).reduce(function(L,I){return D[I]==null||(N[I]===D[I]?L[I]=N[I]:Array.isArray(N[I])?N[I].indexOf(D[I])<0&&(L[I]=N[I].concat([D[I]])):L[I]=[N[I],D[I]]),L},{})}function B(D){return D.reduce(function(N,L){if(L.insert===1){var I=(0,S.default)(L.attributes);return delete I.image,N.insert({image:L.attributes.image},I)}if(L.attributes!=null&&(L.attributes.list===!0||L.attributes.bullet===!0)&&(L=(0,S.default)(L),L.attributes.list?L.attributes.list="ordered":(L.attributes.list="bullet",delete L.attributes.bullet)),typeof L.insert=="string"){var H=L.insert.replace(/\r\n/g,`
992
+ `).replace(/\r/g,`
993
+ `);return N.insert(H,L.attributes)}return N.push(L)},new h.default)}n.default=T},function(t,n,r){Object.defineProperty(n,"__esModule",{value:!0}),n.default=n.Range=void 0;var a=function(){function A(O,_){var C=[],M=!0,P=!1,E=void 0;try{for(var R=O[Symbol.iterator](),T;!(M=(T=R.next()).done)&&(C.push(T.value),!(_&&C.length===_));M=!0);}catch(F){P=!0,E=F}finally{try{!M&&R.return&&R.return()}finally{if(P)throw E}}return C}return function(O,_){if(Array.isArray(O))return O;if(Symbol.iterator in Object(O))return A(O,_);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),o=function(){function A(O,_){for(var C=0;C<_.length;C++){var M=_[C];M.enumerable=M.enumerable||!1,M.configurable=!0,"value"in M&&(M.writable=!0),Object.defineProperty(O,M.key,M)}}return function(O,_,C){return _&&A(O.prototype,_),C&&A(O,C),O}}(),s=r(0),l=v(s),h=r(21),u=v(h),c=r(11),f=v(c),d=r(8),p=v(d),g=r(10),m=v(g);function v(A){return A&&A.__esModule?A:{default:A}}function y(A){if(Array.isArray(A)){for(var O=0,_=Array(A.length);O<A.length;O++)_[O]=A[O];return _}else return Array.from(A)}function b(A,O){if(!(A instanceof O))throw new TypeError("Cannot call a class as a function")}var x=(0,m.default)("quill:selection"),w=function A(O){var _=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;b(this,A),this.index=O,this.length=_},k=function(){function A(O,_){var C=this;b(this,A),this.emitter=_,this.scroll=O,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=l.default.create("cursor",this),this.lastRange=this.savedRange=new w(0,0),this.handleComposition(),this.handleDragging(),this.emitter.listenDOM("selectionchange",document,function(){C.mouseDown||setTimeout(C.update.bind(C,p.default.sources.USER),1)}),this.emitter.on(p.default.events.EDITOR_CHANGE,function(M,P){M===p.default.events.TEXT_CHANGE&&P.length()>0&&C.update(p.default.sources.SILENT)}),this.emitter.on(p.default.events.SCROLL_BEFORE_UPDATE,function(){if(C.hasFocus()){var M=C.getNativeRange();M!=null&&M.start.node!==C.cursor.textNode&&C.emitter.once(p.default.events.SCROLL_UPDATE,function(){try{C.setNativeRange(M.start.node,M.start.offset,M.end.node,M.end.offset)}catch{}})}}),this.emitter.on(p.default.events.SCROLL_OPTIMIZE,function(M,P){if(P.range){var E=P.range,R=E.startNode,T=E.startOffset,F=E.endNode,B=E.endOffset;C.setNativeRange(R,T,F,B)}}),this.update(p.default.sources.SILENT)}return o(A,[{key:"handleComposition",value:function(){var _=this;this.root.addEventListener("compositionstart",function(){_.composing=!0}),this.root.addEventListener("compositionend",function(){if(_.composing=!1,_.cursor.parent){var C=_.cursor.restore();if(!C)return;setTimeout(function(){_.setNativeRange(C.startNode,C.startOffset,C.endNode,C.endOffset)},1)}})}},{key:"handleDragging",value:function(){var _=this;this.emitter.listenDOM("mousedown",document.body,function(){_.mouseDown=!0}),this.emitter.listenDOM("mouseup",document.body,function(){_.mouseDown=!1,_.update(p.default.sources.USER)})}},{key:"focus",value:function(){this.hasFocus()||(this.root.focus(),this.setRange(this.savedRange))}},{key:"format",value:function(_,C){if(!(this.scroll.whitelist!=null&&!this.scroll.whitelist[_])){this.scroll.update();var M=this.getNativeRange();if(!(M==null||!M.native.collapsed||l.default.query(_,l.default.Scope.BLOCK))){if(M.start.node!==this.cursor.textNode){var P=l.default.find(M.start.node,!1);if(P==null)return;if(P instanceof l.default.Leaf){var E=P.split(M.start.offset);P.parent.insertBefore(this.cursor,E)}else P.insertBefore(this.cursor,M.start.node);this.cursor.attach()}this.cursor.format(_,C),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}}},{key:"getBounds",value:function(_){var C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,M=this.scroll.length();_=Math.min(_,M-1),C=Math.min(_+C,M-1)-_;var P=void 0,E=this.scroll.leaf(_),R=a(E,2),T=R[0],F=R[1];if(T==null)return null;var B=T.position(F,!0),D=a(B,2);P=D[0],F=D[1];var N=document.createRange();if(C>0){N.setStart(P,F);var L=this.scroll.leaf(_+C),I=a(L,2);if(T=I[0],F=I[1],T==null)return null;var H=T.position(F,!0),Y=a(H,2);return P=Y[0],F=Y[1],N.setEnd(P,F),N.getBoundingClientRect()}else{var W="left",z=void 0;return P instanceof Text?(F<P.data.length?(N.setStart(P,F),N.setEnd(P,F+1)):(N.setStart(P,F-1),N.setEnd(P,F),W="right"),z=N.getBoundingClientRect()):(z=T.domNode.getBoundingClientRect(),F>0&&(W="right")),{bottom:z.top+z.height,height:z.height,left:z[W],right:z[W],top:z.top,width:0}}}},{key:"getNativeRange",value:function(){var _=document.getSelection();if(_==null||_.rangeCount<=0)return null;var C=_.getRangeAt(0);if(C==null)return null;var M=this.normalizeNative(C);return x.info("getNativeRange",M),M}},{key:"getRange",value:function(){var _=this.getNativeRange();if(_==null)return[null,null];var C=this.normalizedToRange(_);return[C,_]}},{key:"hasFocus",value:function(){return document.activeElement===this.root}},{key:"normalizedToRange",value:function(_){var C=this,M=[[_.start.node,_.start.offset]];_.native.collapsed||M.push([_.end.node,_.end.offset]);var P=M.map(function(T){var F=a(T,2),B=F[0],D=F[1],N=l.default.find(B,!0),L=N.offset(C.scroll);return D===0?L:N instanceof l.default.Container?L+N.length():L+N.index(B,D)}),E=Math.min(Math.max.apply(Math,y(P)),this.scroll.length()-1),R=Math.min.apply(Math,[E].concat(y(P)));return new w(R,E-R)}},{key:"normalizeNative",value:function(_){if(!S(this.root,_.startContainer)||!_.collapsed&&!S(this.root,_.endContainer))return null;var C={start:{node:_.startContainer,offset:_.startOffset},end:{node:_.endContainer,offset:_.endOffset},native:_};return[C.start,C.end].forEach(function(M){for(var P=M.node,E=M.offset;!(P instanceof Text)&&P.childNodes.length>0;)if(P.childNodes.length>E)P=P.childNodes[E],E=0;else if(P.childNodes.length===E)P=P.lastChild,E=P instanceof Text?P.data.length:P.childNodes.length+1;else break;M.node=P,M.offset=E}),C}},{key:"rangeToNative",value:function(_){var C=this,M=_.collapsed?[_.index]:[_.index,_.index+_.length],P=[],E=this.scroll.length();return M.forEach(function(R,T){R=Math.min(E-1,R);var F=void 0,B=C.scroll.leaf(R),D=a(B,2),N=D[0],L=D[1],I=N.position(L,T!==0),H=a(I,2);F=H[0],L=H[1],P.push(F,L)}),P.length<2&&(P=P.concat(P)),P}},{key:"scrollIntoView",value:function(_){var C=this.lastRange;if(C!=null){var M=this.getBounds(C.index,C.length);if(M!=null){var P=this.scroll.length()-1,E=this.scroll.line(Math.min(C.index,P)),R=a(E,1),T=R[0],F=T;if(C.length>0){var B=this.scroll.line(Math.min(C.index+C.length,P)),D=a(B,1);F=D[0]}if(!(T==null||F==null)){var N=_.getBoundingClientRect();M.top<N.top?_.scrollTop-=N.top-M.top:M.bottom>N.bottom&&(_.scrollTop+=M.bottom-N.bottom)}}}}},{key:"setNativeRange",value:function(_,C){var M=arguments.length>2&&arguments[2]!==void 0?arguments[2]:_,P=arguments.length>3&&arguments[3]!==void 0?arguments[3]:C,E=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(x.info("setNativeRange",_,C,M,P),!(_!=null&&(this.root.parentNode==null||_.parentNode==null||M.parentNode==null))){var R=document.getSelection();if(R!=null)if(_!=null){this.hasFocus()||this.root.focus();var T=(this.getNativeRange()||{}).native;if(T==null||E||_!==T.startContainer||C!==T.startOffset||M!==T.endContainer||P!==T.endOffset){_.tagName=="BR"&&(C=[].indexOf.call(_.parentNode.childNodes,_),_=_.parentNode),M.tagName=="BR"&&(P=[].indexOf.call(M.parentNode.childNodes,M),M=M.parentNode);var F=document.createRange();F.setStart(_,C),F.setEnd(M,P),R.removeAllRanges(),R.addRange(F)}}else R.removeAllRanges(),this.root.blur(),document.body.focus()}}},{key:"setRange",value:function(_){var C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,M=arguments.length>2&&arguments[2]!==void 0?arguments[2]:p.default.sources.API;if(typeof C=="string"&&(M=C,C=!1),x.info("setRange",_),_!=null){var P=this.rangeToNative(_);this.setNativeRange.apply(this,y(P).concat([C]))}else this.setNativeRange(null);this.update(M)}},{key:"update",value:function(){var _=arguments.length>0&&arguments[0]!==void 0?arguments[0]:p.default.sources.USER,C=this.lastRange,M=this.getRange(),P=a(M,2),E=P[0],R=P[1];if(this.lastRange=E,this.lastRange!=null&&(this.savedRange=this.lastRange),!(0,f.default)(C,this.lastRange)){var T;!this.composing&&R!=null&&R.native.collapsed&&R.start.node!==this.cursor.textNode&&this.cursor.restore();var F=[p.default.events.SELECTION_CHANGE,(0,u.default)(this.lastRange),(0,u.default)(C),_];if((T=this.emitter).emit.apply(T,[p.default.events.EDITOR_CHANGE].concat(F)),_!==p.default.sources.SILENT){var B;(B=this.emitter).emit.apply(B,F)}}}}]),A}();function S(A,O){try{O.parentNode}catch{return!1}return O instanceof Text&&(O=O.parentNode),A.contains(O)}n.Range=w,n.default=k},function(t,n,r){Object.defineProperty(n,"__esModule",{value:!0});var a=function(){function p(g,m){for(var v=0;v<m.length;v++){var y=m[v];y.enumerable=y.enumerable||!1,y.configurable=!0,"value"in y&&(y.writable=!0),Object.defineProperty(g,y.key,y)}}return function(g,m,v){return m&&p(g.prototype,m),v&&p(g,v),g}}(),o=function p(g,m,v){g===null&&(g=Function.prototype);var y=Object.getOwnPropertyDescriptor(g,m);if(y===void 0){var b=Object.getPrototypeOf(g);return b===null?void 0:p(b,m,v)}else{if("value"in y)return y.value;var x=y.get;return x===void 0?void 0:x.call(v)}},s=r(0),l=h(s);function h(p){return p&&p.__esModule?p:{default:p}}function u(p,g){if(!(p instanceof g))throw new TypeError("Cannot call a class as a function")}function c(p,g){if(!p)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g&&(typeof g=="object"||typeof g=="function")?g:p}function f(p,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof g);p.prototype=Object.create(g&&g.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}}),g&&(Object.setPrototypeOf?Object.setPrototypeOf(p,g):p.__proto__=g)}var d=function(p){f(g,p);function g(){return u(this,g),c(this,(g.__proto__||Object.getPrototypeOf(g)).apply(this,arguments))}return a(g,[{key:"insertInto",value:function(v,y){v.children.length===0?o(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"insertInto",this).call(this,v,y):this.remove()}},{key:"length",value:function(){return 0}},{key:"value",value:function(){return""}}],[{key:"value",value:function(){}}]),g}(l.default.Embed);d.blotName="break",d.tagName="BR",n.default=d},function(t,n,r){var a=this&&this.__extends||function(){var c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,d){f.__proto__=d}||function(f,d){for(var p in d)d.hasOwnProperty(p)&&(f[p]=d[p])};return function(f,d){c(f,d);function p(){this.constructor=f}f.prototype=d===null?Object.create(d):(p.prototype=d.prototype,new p)}}();Object.defineProperty(n,"__esModule",{value:!0});var o=r(44),s=r(30),l=r(1),h=function(c){a(f,c);function f(d){var p=c.call(this,d)||this;return p.build(),p}return f.prototype.appendChild=function(d){this.insertBefore(d)},f.prototype.attach=function(){c.prototype.attach.call(this),this.children.forEach(function(d){d.attach()})},f.prototype.build=function(){var d=this;this.children=new o.default,[].slice.call(this.domNode.childNodes).reverse().forEach(function(p){try{var g=u(p);d.insertBefore(g,d.children.head||void 0)}catch(m){if(m instanceof l.ParchmentError)return;throw m}})},f.prototype.deleteAt=function(d,p){if(d===0&&p===this.length())return this.remove();this.children.forEachAt(d,p,function(g,m,v){g.deleteAt(m,v)})},f.prototype.descendant=function(d,p){var g=this.children.find(p),m=g[0],v=g[1];return d.blotName==null&&d(m)||d.blotName!=null&&m instanceof d?[m,v]:m instanceof f?m.descendant(d,v):[null,-1]},f.prototype.descendants=function(d,p,g){p===void 0&&(p=0),g===void 0&&(g=Number.MAX_VALUE);var m=[],v=g;return this.children.forEachAt(p,g,function(y,b,x){(d.blotName==null&&d(y)||d.blotName!=null&&y instanceof d)&&m.push(y),y instanceof f&&(m=m.concat(y.descendants(d,b,v))),v-=x}),m},f.prototype.detach=function(){this.children.forEach(function(d){d.detach()}),c.prototype.detach.call(this)},f.prototype.formatAt=function(d,p,g,m){this.children.forEachAt(d,p,function(v,y,b){v.formatAt(y,b,g,m)})},f.prototype.insertAt=function(d,p,g){var m=this.children.find(d),v=m[0],y=m[1];if(v)v.insertAt(y,p,g);else{var b=g==null?l.create("text",p):l.create(p,g);this.appendChild(b)}},f.prototype.insertBefore=function(d,p){if(this.statics.allowedChildren!=null&&!this.statics.allowedChildren.some(function(g){return d instanceof g}))throw new l.ParchmentError("Cannot insert "+d.statics.blotName+" into "+this.statics.blotName);d.insertInto(this,p)},f.prototype.length=function(){return this.children.reduce(function(d,p){return d+p.length()},0)},f.prototype.moveChildren=function(d,p){this.children.forEach(function(g){d.insertBefore(g,p)})},f.prototype.optimize=function(d){if(c.prototype.optimize.call(this,d),this.children.length===0)if(this.statics.defaultChild!=null){var p=l.create(this.statics.defaultChild);this.appendChild(p),p.optimize(d)}else this.remove()},f.prototype.path=function(d,p){p===void 0&&(p=!1);var g=this.children.find(d,p),m=g[0],v=g[1],y=[[this,d]];return m instanceof f?y.concat(m.path(v,p)):(m!=null&&y.push([m,v]),y)},f.prototype.removeChild=function(d){this.children.remove(d)},f.prototype.replace=function(d){d instanceof f&&d.moveChildren(this),c.prototype.replace.call(this,d)},f.prototype.split=function(d,p){if(p===void 0&&(p=!1),!p){if(d===0)return this;if(d===this.length())return this.next}var g=this.clone();return this.parent.insertBefore(g,this.next),this.children.forEachAt(d,this.length(),function(m,v,y){m=m.split(v,p),g.appendChild(m)}),g},f.prototype.unwrap=function(){this.moveChildren(this.parent,this.next),this.remove()},f.prototype.update=function(d,p){var g=this,m=[],v=[];d.forEach(function(y){y.target===g.domNode&&y.type==="childList"&&(m.push.apply(m,y.addedNodes),v.push.apply(v,y.removedNodes))}),v.forEach(function(y){if(!(y.parentNode!=null&&y.tagName!=="IFRAME"&&document.body.compareDocumentPosition(y)&Node.DOCUMENT_POSITION_CONTAINED_BY)){var b=l.find(y);b!=null&&(b.domNode.parentNode==null||b.domNode.parentNode===g.domNode)&&b.detach()}}),m.filter(function(y){return y.parentNode==g.domNode}).sort(function(y,b){return y===b?0:y.compareDocumentPosition(b)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1}).forEach(function(y){var b=null;y.nextSibling!=null&&(b=l.find(y.nextSibling));var x=u(y);(x.next!=b||x.next==null)&&(x.parent!=null&&x.parent.removeChild(g),g.insertBefore(x,b||void 0))})},f}(s.default);function u(c){var f=l.find(c);if(f==null)try{f=l.create(c)}catch{f=l.create(l.Scope.INLINE),[].slice.call(c.childNodes).forEach(function(p){f.domNode.appendChild(p)}),c.parentNode&&c.parentNode.replaceChild(f.domNode,c),f.attach()}return f}n.default=h},function(t,n,r){var a=this&&this.__extends||function(){var c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,d){f.__proto__=d}||function(f,d){for(var p in d)d.hasOwnProperty(p)&&(f[p]=d[p])};return function(f,d){c(f,d);function p(){this.constructor=f}f.prototype=d===null?Object.create(d):(p.prototype=d.prototype,new p)}}();Object.defineProperty(n,"__esModule",{value:!0});var o=r(12),s=r(31),l=r(17),h=r(1),u=function(c){a(f,c);function f(d){var p=c.call(this,d)||this;return p.attributes=new s.default(p.domNode),p}return f.formats=function(d){if(typeof this.tagName=="string")return!0;if(Array.isArray(this.tagName))return d.tagName.toLowerCase()},f.prototype.format=function(d,p){var g=h.query(d);g instanceof o.default?this.attributes.attribute(g,p):p&&g!=null&&(d!==this.statics.blotName||this.formats()[d]!==p)&&this.replaceWith(d,p)},f.prototype.formats=function(){var d=this.attributes.values(),p=this.statics.formats(this.domNode);return p!=null&&(d[this.statics.blotName]=p),d},f.prototype.replaceWith=function(d,p){var g=c.prototype.replaceWith.call(this,d,p);return this.attributes.copy(g),g},f.prototype.update=function(d,p){var g=this;c.prototype.update.call(this,d,p),d.some(function(m){return m.target===g.domNode&&m.type==="attributes"})&&this.attributes.build()},f.prototype.wrap=function(d,p){var g=c.prototype.wrap.call(this,d,p);return g instanceof f&&g.statics.scope===this.statics.scope&&this.attributes.move(g),g},f}(l.default);n.default=u},function(t,n,r){var a=this&&this.__extends||function(){var h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,c){u.__proto__=c}||function(u,c){for(var f in c)c.hasOwnProperty(f)&&(u[f]=c[f])};return function(u,c){h(u,c);function f(){this.constructor=u}u.prototype=c===null?Object.create(c):(f.prototype=c.prototype,new f)}}();Object.defineProperty(n,"__esModule",{value:!0});var o=r(30),s=r(1),l=function(h){a(u,h);function u(){return h!==null&&h.apply(this,arguments)||this}return u.value=function(c){return!0},u.prototype.index=function(c,f){return this.domNode===c||this.domNode.compareDocumentPosition(c)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(f,1):-1},u.prototype.position=function(c,f){var d=[].indexOf.call(this.parent.domNode.childNodes,this.domNode);return c>0&&(d+=1),[this.parent.domNode,d]},u.prototype.value=function(){var c;return c={},c[this.statics.blotName]=this.statics.value(this.domNode)||!0,c},u.scope=s.Scope.INLINE_BLOT,u}(o.default);n.default=l},function(t,n,r){var a=r(11),o=r(3),s={attributes:{compose:function(h,u,c){typeof h!="object"&&(h={}),typeof u!="object"&&(u={});var f=o(!0,{},u);c||(f=Object.keys(f).reduce(function(p,g){return f[g]!=null&&(p[g]=f[g]),p},{}));for(var d in h)h[d]!==void 0&&u[d]===void 0&&(f[d]=h[d]);return Object.keys(f).length>0?f:void 0},diff:function(h,u){typeof h!="object"&&(h={}),typeof u!="object"&&(u={});var c=Object.keys(h).concat(Object.keys(u)).reduce(function(f,d){return a(h[d],u[d])||(f[d]=u[d]===void 0?null:u[d]),f},{});return Object.keys(c).length>0?c:void 0},transform:function(h,u,c){if(typeof h!="object")return u;if(typeof u=="object"){if(!c)return u;var f=Object.keys(u).reduce(function(d,p){return h[p]===void 0&&(d[p]=u[p]),d},{});return Object.keys(f).length>0?f:void 0}}},iterator:function(h){return new l(h)},length:function(h){return typeof h.delete=="number"?h.delete:typeof h.retain=="number"?h.retain:typeof h.insert=="string"?h.insert.length:1}};function l(h){this.ops=h,this.index=0,this.offset=0}l.prototype.hasNext=function(){return this.peekLength()<1/0},l.prototype.next=function(h){h||(h=1/0);var u=this.ops[this.index];if(u){var c=this.offset,f=s.length(u);if(h>=f-c?(h=f-c,this.index+=1,this.offset=0):this.offset+=h,typeof u.delete=="number")return{delete:h};var d={};return u.attributes&&(d.attributes=u.attributes),typeof u.retain=="number"?d.retain=h:typeof u.insert=="string"?d.insert=u.insert.substr(c,h):d.insert=u.insert,d}else return{retain:1/0}},l.prototype.peek=function(){return this.ops[this.index]},l.prototype.peekLength=function(){return this.ops[this.index]?s.length(this.ops[this.index])-this.offset:1/0},l.prototype.peekType=function(){return this.ops[this.index]?typeof this.ops[this.index].delete=="number"?"delete":typeof this.ops[this.index].retain=="number"?"retain":"insert":"retain"},l.prototype.rest=function(){if(this.hasNext()){if(this.offset===0)return this.ops.slice(this.index);var h=this.offset,u=this.index,c=this.next(),f=this.ops.slice(this.index);return this.offset=h,this.index=u,[c].concat(f)}else return[]},t.exports=s},function(t,n){var r=function(){function a(g,m){return m!=null&&g instanceof m}var o;try{o=Map}catch{o=function(){}}var s;try{s=Set}catch{s=function(){}}var l;try{l=Promise}catch{l=function(){}}function h(g,m,v,y,b){typeof m=="object"&&(v=m.depth,y=m.prototype,b=m.includeNonEnumerable,m=m.circular);var x=[],w=[],k=typeof Buffer<"u";typeof m>"u"&&(m=!0),typeof v>"u"&&(v=1/0);function S(A,O){if(A===null)return null;if(O===0)return A;var _,C;if(typeof A!="object")return A;if(a(A,o))_=new o;else if(a(A,s))_=new s;else if(a(A,l))_=new l(function(N,L){A.then(function(I){N(S(I,O-1))},function(I){L(S(I,O-1))})});else if(h.__isArray(A))_=[];else if(h.__isRegExp(A))_=new RegExp(A.source,p(A)),A.lastIndex&&(_.lastIndex=A.lastIndex);else if(h.__isDate(A))_=new Date(A.getTime());else{if(k&&Buffer.isBuffer(A))return Buffer.allocUnsafe?_=Buffer.allocUnsafe(A.length):_=new Buffer(A.length),A.copy(_),_;a(A,Error)?_=Object.create(A):typeof y>"u"?(C=Object.getPrototypeOf(A),_=Object.create(C)):(_=Object.create(y),C=y)}if(m){var M=x.indexOf(A);if(M!=-1)return w[M];x.push(A),w.push(_)}a(A,o)&&A.forEach(function(N,L){var I=S(L,O-1),H=S(N,O-1);_.set(I,H)}),a(A,s)&&A.forEach(function(N){var L=S(N,O-1);_.add(L)});for(var P in A){var E;C&&(E=Object.getOwnPropertyDescriptor(C,P)),!(E&&E.set==null)&&(_[P]=S(A[P],O-1))}if(Object.getOwnPropertySymbols)for(var R=Object.getOwnPropertySymbols(A),P=0;P<R.length;P++){var T=R[P],F=Object.getOwnPropertyDescriptor(A,T);F&&!F.enumerable&&!b||(_[T]=S(A[T],O-1),F.enumerable||Object.defineProperty(_,T,{enumerable:!1}))}if(b)for(var B=Object.getOwnPropertyNames(A),P=0;P<B.length;P++){var D=B[P],F=Object.getOwnPropertyDescriptor(A,D);F&&F.enumerable||(_[D]=S(A[D],O-1),Object.defineProperty(_,D,{enumerable:!1}))}return _}return S(g,v)}h.clonePrototype=function(m){if(m===null)return null;var v=function(){};return v.prototype=m,new v};function u(g){return Object.prototype.toString.call(g)}h.__objToStr=u;function c(g){return typeof g=="object"&&u(g)==="[object Date]"}h.__isDate=c;function f(g){return typeof g=="object"&&u(g)==="[object Array]"}h.__isArray=f;function d(g){return typeof g=="object"&&u(g)==="[object RegExp]"}h.__isRegExp=d;function p(g){var m="";return g.global&&(m+="g"),g.ignoreCase&&(m+="i"),g.multiline&&(m+="m"),m}return h.__getRegExpFlags=p,h}();typeof t=="object"&&t.exports&&(t.exports=r)},function(t,n,r){Object.defineProperty(n,"__esModule",{value:!0});var a=function(){function _(C,M){var P=[],E=!0,R=!1,T=void 0;try{for(var F=C[Symbol.iterator](),B;!(E=(B=F.next()).done)&&(P.push(B.value),!(M&&P.length===M));E=!0);}catch(D){R=!0,T=D}finally{try{!E&&F.return&&F.return()}finally{if(R)throw T}}return P}return function(C,M){if(Array.isArray(C))return C;if(Symbol.iterator in Object(C))return _(C,M);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),o=function(){function _(C,M){for(var P=0;P<M.length;P++){var E=M[P];E.enumerable=E.enumerable||!1,E.configurable=!0,"value"in E&&(E.writable=!0),Object.defineProperty(C,E.key,E)}}return function(C,M,P){return M&&_(C.prototype,M),P&&_(C,P),C}}(),s=function _(C,M,P){C===null&&(C=Function.prototype);var E=Object.getOwnPropertyDescriptor(C,M);if(E===void 0){var R=Object.getPrototypeOf(C);return R===null?void 0:_(R,M,P)}else{if("value"in E)return E.value;var T=E.get;return T===void 0?void 0:T.call(P)}},l=r(0),h=x(l),u=r(8),c=x(u),f=r(4),d=x(f),p=r(16),g=x(p),m=r(13),v=x(m),y=r(25),b=x(y);function x(_){return _&&_.__esModule?_:{default:_}}function w(_,C){if(!(_ instanceof C))throw new TypeError("Cannot call a class as a function")}function k(_,C){if(!_)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return C&&(typeof C=="object"||typeof C=="function")?C:_}function S(_,C){if(typeof C!="function"&&C!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof C);_.prototype=Object.create(C&&C.prototype,{constructor:{value:_,enumerable:!1,writable:!0,configurable:!0}}),C&&(Object.setPrototypeOf?Object.setPrototypeOf(_,C):_.__proto__=C)}function A(_){return _ instanceof d.default||_ instanceof f.BlockEmbed}var O=function(_){S(C,_);function C(M,P){w(this,C);var E=k(this,(C.__proto__||Object.getPrototypeOf(C)).call(this,M));return E.emitter=P.emitter,Array.isArray(P.whitelist)&&(E.whitelist=P.whitelist.reduce(function(R,T){return R[T]=!0,R},{})),E.domNode.addEventListener("DOMNodeInserted",function(){}),E.optimize(),E.enable(),E}return o(C,[{key:"batchStart",value:function(){this.batch=!0}},{key:"batchEnd",value:function(){this.batch=!1,this.optimize()}},{key:"deleteAt",value:function(P,E){var R=this.line(P),T=a(R,2),F=T[0],B=T[1],D=this.line(P+E),N=a(D,1),L=N[0];if(s(C.prototype.__proto__||Object.getPrototypeOf(C.prototype),"deleteAt",this).call(this,P,E),L!=null&&F!==L&&B>0){if(F instanceof f.BlockEmbed||L instanceof f.BlockEmbed){this.optimize();return}if(F instanceof v.default){var I=F.newlineIndex(F.length(),!0);if(I>-1&&(F=F.split(I+1),F===L)){this.optimize();return}}else if(L instanceof v.default){var H=L.newlineIndex(0);H>-1&&L.split(H+1)}var Y=L.children.head instanceof g.default?null:L.children.head;F.moveChildren(L,Y),F.remove()}this.optimize()}},{key:"enable",value:function(){var P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.domNode.setAttribute("contenteditable",P)}},{key:"formatAt",value:function(P,E,R,T){this.whitelist!=null&&!this.whitelist[R]||(s(C.prototype.__proto__||Object.getPrototypeOf(C.prototype),"formatAt",this).call(this,P,E,R,T),this.optimize())}},{key:"insertAt",value:function(P,E,R){if(!(R!=null&&this.whitelist!=null&&!this.whitelist[E])){if(P>=this.length())if(R==null||h.default.query(E,h.default.Scope.BLOCK)==null){var T=h.default.create(this.statics.defaultChild);this.appendChild(T),R==null&&E.endsWith(`
994
+ `)&&(E=E.slice(0,-1)),T.insertAt(0,E,R)}else{var F=h.default.create(E,R);this.appendChild(F)}else s(C.prototype.__proto__||Object.getPrototypeOf(C.prototype),"insertAt",this).call(this,P,E,R);this.optimize()}}},{key:"insertBefore",value:function(P,E){if(P.statics.scope===h.default.Scope.INLINE_BLOT){var R=h.default.create(this.statics.defaultChild);R.appendChild(P),P=R}s(C.prototype.__proto__||Object.getPrototypeOf(C.prototype),"insertBefore",this).call(this,P,E)}},{key:"leaf",value:function(P){return this.path(P).pop()||[null,-1]}},{key:"line",value:function(P){return P===this.length()?this.line(P-1):this.descendant(A,P)}},{key:"lines",value:function(){var P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.MAX_VALUE,R=function T(F,B,D){var N=[],L=D;return F.children.forEachAt(B,D,function(I,H,Y){A(I)?N.push(I):I instanceof h.default.Container&&(N=N.concat(T(I,H,L))),L-=Y}),N};return R(this,P,E)}},{key:"optimize",value:function(){var P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.batch!==!0&&(s(C.prototype.__proto__||Object.getPrototypeOf(C.prototype),"optimize",this).call(this,P,E),P.length>0&&this.emitter.emit(c.default.events.SCROLL_OPTIMIZE,P,E))}},{key:"path",value:function(P){return s(C.prototype.__proto__||Object.getPrototypeOf(C.prototype),"path",this).call(this,P).slice(1)}},{key:"update",value:function(P){if(this.batch!==!0){var E=c.default.sources.USER;typeof P=="string"&&(E=P),Array.isArray(P)||(P=this.observer.takeRecords()),P.length>0&&this.emitter.emit(c.default.events.SCROLL_BEFORE_UPDATE,E,P),s(C.prototype.__proto__||Object.getPrototypeOf(C.prototype),"update",this).call(this,P.concat([])),P.length>0&&this.emitter.emit(c.default.events.SCROLL_UPDATE,E,P)}}}]),C}(h.default.Scroll);O.blotName="scroll",O.className="ql-editor",O.tagName="DIV",O.defaultChild="block",O.allowedChildren=[d.default,f.BlockEmbed,b.default],n.default=O},function(t,n,r){Object.defineProperty(n,"__esModule",{value:!0}),n.SHORTKEY=n.default=void 0;var a=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(z){return typeof z}:function(z){return z&&typeof Symbol=="function"&&z.constructor===Symbol&&z!==Symbol.prototype?"symbol":typeof z},o=function(){function z(X,G){var V=[],$=!0,ee=!1,ce=void 0;try{for(var le=X[Symbol.iterator](),ve;!($=(ve=le.next()).done)&&(V.push(ve.value),!(G&&V.length===G));$=!0);}catch(Ee){ee=!0,ce=Ee}finally{try{!$&&le.return&&le.return()}finally{if(ee)throw ce}}return V}return function(X,G){if(Array.isArray(X))return X;if(Symbol.iterator in Object(X))return z(X,G);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),s=function(){function z(X,G){for(var V=0;V<G.length;V++){var $=G[V];$.enumerable=$.enumerable||!1,$.configurable=!0,"value"in $&&($.writable=!0),Object.defineProperty(X,$.key,$)}}return function(X,G,V){return G&&z(X.prototype,G),V&&z(X,V),X}}(),l=r(21),h=_(l),u=r(11),c=_(u),f=r(3),d=_(f),p=r(2),g=_(p),m=r(20),v=_(m),y=r(0),b=_(y),x=r(5),w=_(x),k=r(10),S=_(k),A=r(9),O=_(A);function _(z){return z&&z.__esModule?z:{default:z}}function C(z,X,G){return X in z?Object.defineProperty(z,X,{value:G,enumerable:!0,configurable:!0,writable:!0}):z[X]=G,z}function M(z,X){if(!(z instanceof X))throw new TypeError("Cannot call a class as a function")}function P(z,X){if(!z)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return X&&(typeof X=="object"||typeof X=="function")?X:z}function E(z,X){if(typeof X!="function"&&X!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof X);z.prototype=Object.create(X&&X.prototype,{constructor:{value:z,enumerable:!1,writable:!0,configurable:!0}}),X&&(Object.setPrototypeOf?Object.setPrototypeOf(z,X):z.__proto__=X)}var R=(0,S.default)("quill:keyboard"),T=/Mac/i.test(navigator.platform)?"metaKey":"ctrlKey",F=function(z){E(X,z),s(X,null,[{key:"match",value:function(V,$){return $=W($),["altKey","ctrlKey","metaKey","shiftKey"].some(function(ee){return!!$[ee]!==V[ee]&&$[ee]!==null})?!1:$.key===(V.which||V.keyCode)}}]);function X(G,V){M(this,X);var $=P(this,(X.__proto__||Object.getPrototypeOf(X)).call(this,G,V));return $.bindings={},Object.keys($.options.bindings).forEach(function(ee){ee==="list autofill"&&G.scroll.whitelist!=null&&!G.scroll.whitelist.list||$.options.bindings[ee]&&$.addBinding($.options.bindings[ee])}),$.addBinding({key:X.keys.ENTER,shiftKey:null},I),$.addBinding({key:X.keys.ENTER,metaKey:null,ctrlKey:null,altKey:null},function(){}),/Firefox/i.test(navigator.userAgent)?($.addBinding({key:X.keys.BACKSPACE},{collapsed:!0},D),$.addBinding({key:X.keys.DELETE},{collapsed:!0},N)):($.addBinding({key:X.keys.BACKSPACE},{collapsed:!0,prefix:/^.?$/},D),$.addBinding({key:X.keys.DELETE},{collapsed:!0,suffix:/^.?$/},N)),$.addBinding({key:X.keys.BACKSPACE},{collapsed:!1},L),$.addBinding({key:X.keys.DELETE},{collapsed:!1},L),$.addBinding({key:X.keys.BACKSPACE,altKey:null,ctrlKey:null,metaKey:null,shiftKey:null},{collapsed:!0,offset:0},D),$.listen(),$}return s(X,[{key:"addBinding",value:function(V){var $=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ee=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},ce=W(V);if(ce==null||ce.key==null)return R.warn("Attempted to add invalid keyboard binding",ce);typeof $=="function"&&($={handler:$}),typeof ee=="function"&&(ee={handler:ee}),ce=(0,d.default)(ce,$,ee),this.bindings[ce.key]=this.bindings[ce.key]||[],this.bindings[ce.key].push(ce)}},{key:"listen",value:function(){var V=this;this.quill.root.addEventListener("keydown",function($){if(!$.defaultPrevented){var ee=$.which||$.keyCode,ce=(V.bindings[ee]||[]).filter(function(Be){return X.match($,Be)});if(ce.length!==0){var le=V.quill.getSelection();if(!(le==null||!V.quill.hasFocus())){var ve=V.quill.getLine(le.index),Ee=o(ve,2),tt=Ee[0],Pe=Ee[1],U=V.quill.getLeaf(le.index),Z=o(U,2),ie=Z[0],te=Z[1],J=le.length===0?[ie,te]:V.quill.getLeaf(le.index+le.length),Ae=o(J,2),Se=Ae[0],Ce=Ae[1],it=ie instanceof b.default.Text?ie.value().slice(0,te):"",dt=Se instanceof b.default.Text?Se.value().slice(Ce):"",Ne={collapsed:le.length===0,empty:le.length===0&&tt.length()<=1,format:V.quill.getFormat(le),offset:Pe,prefix:it,suffix:dt},Rn=ce.some(function(Be){if(Be.collapsed!=null&&Be.collapsed!==Ne.collapsed||Be.empty!=null&&Be.empty!==Ne.empty||Be.offset!=null&&Be.offset!==Ne.offset)return!1;if(Array.isArray(Be.format)){if(Be.format.every(function(gt){return Ne.format[gt]==null}))return!1}else if(a(Be.format)==="object"&&!Object.keys(Be.format).every(function(gt){return Be.format[gt]===!0?Ne.format[gt]!=null:Be.format[gt]===!1?Ne.format[gt]==null:(0,c.default)(Be.format[gt],Ne.format[gt])}))return!1;return Be.prefix!=null&&!Be.prefix.test(Ne.prefix)||Be.suffix!=null&&!Be.suffix.test(Ne.suffix)?!1:Be.handler.call(V,le,Ne)!==!0});Rn&&$.preventDefault()}}}})}}]),X}(O.default);F.keys={BACKSPACE:8,TAB:9,ENTER:13,ESCAPE:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46},F.DEFAULTS={bindings:{bold:Y("bold"),italic:Y("italic"),underline:Y("underline"),indent:{key:F.keys.TAB,format:["blockquote","indent","list"],handler:function(X,G){if(G.collapsed&&G.offset!==0)return!0;this.quill.format("indent","+1",w.default.sources.USER)}},outdent:{key:F.keys.TAB,shiftKey:!0,format:["blockquote","indent","list"],handler:function(X,G){if(G.collapsed&&G.offset!==0)return!0;this.quill.format("indent","-1",w.default.sources.USER)}},"outdent backspace":{key:F.keys.BACKSPACE,collapsed:!0,shiftKey:null,metaKey:null,ctrlKey:null,altKey:null,format:["indent","list"],offset:0,handler:function(X,G){G.format.indent!=null?this.quill.format("indent","-1",w.default.sources.USER):G.format.list!=null&&this.quill.format("list",!1,w.default.sources.USER)}},"indent code-block":H(!0),"outdent code-block":H(!1),"remove tab":{key:F.keys.TAB,shiftKey:!0,collapsed:!0,prefix:/\t$/,handler:function(X){this.quill.deleteText(X.index-1,1,w.default.sources.USER)}},tab:{key:F.keys.TAB,handler:function(X){this.quill.history.cutoff();var G=new g.default().retain(X.index).delete(X.length).insert(" ");this.quill.updateContents(G,w.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(X.index+1,w.default.sources.SILENT)}},"list empty enter":{key:F.keys.ENTER,collapsed:!0,format:["list"],empty:!0,handler:function(X,G){this.quill.format("list",!1,w.default.sources.USER),G.format.indent&&this.quill.format("indent",!1,w.default.sources.USER)}},"checklist enter":{key:F.keys.ENTER,collapsed:!0,format:{list:"checked"},handler:function(X){var G=this.quill.getLine(X.index),V=o(G,2),$=V[0],ee=V[1],ce=(0,d.default)({},$.formats(),{list:"checked"}),le=new g.default().retain(X.index).insert(`
995
+ `,ce).retain($.length()-ee-1).retain(1,{list:"unchecked"});this.quill.updateContents(le,w.default.sources.USER),this.quill.setSelection(X.index+1,w.default.sources.SILENT),this.quill.scrollIntoView()}},"header enter":{key:F.keys.ENTER,collapsed:!0,format:["header"],suffix:/^$/,handler:function(X,G){var V=this.quill.getLine(X.index),$=o(V,2),ee=$[0],ce=$[1],le=new g.default().retain(X.index).insert(`
996
+ `,G.format).retain(ee.length()-ce-1).retain(1,{header:null});this.quill.updateContents(le,w.default.sources.USER),this.quill.setSelection(X.index+1,w.default.sources.SILENT),this.quill.scrollIntoView()}},"list autofill":{key:" ",collapsed:!0,format:{list:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler:function(X,G){var V=G.prefix.length,$=this.quill.getLine(X.index),ee=o($,2),ce=ee[0],le=ee[1];if(le>V)return!0;var ve=void 0;switch(G.prefix.trim()){case"[]":case"[ ]":ve="unchecked";break;case"[x]":ve="checked";break;case"-":case"*":ve="bullet";break;default:ve="ordered"}this.quill.insertText(X.index," ",w.default.sources.USER),this.quill.history.cutoff();var Ee=new g.default().retain(X.index-le).delete(V+1).retain(ce.length()-2-le).retain(1,{list:ve});this.quill.updateContents(Ee,w.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(X.index-V,w.default.sources.SILENT)}},"code exit":{key:F.keys.ENTER,collapsed:!0,format:["code-block"],prefix:/\n\n$/,suffix:/^\s+$/,handler:function(X){var G=this.quill.getLine(X.index),V=o(G,2),$=V[0],ee=V[1],ce=new g.default().retain(X.index+$.length()-ee-2).retain(1,{"code-block":null}).delete(1);this.quill.updateContents(ce,w.default.sources.USER)}},"embed left":B(F.keys.LEFT,!1),"embed left shift":B(F.keys.LEFT,!0),"embed right":B(F.keys.RIGHT,!1),"embed right shift":B(F.keys.RIGHT,!0)}};function B(z,X){var G,V=z===F.keys.LEFT?"prefix":"suffix";return G={key:z,shiftKey:X,altKey:null},C(G,V,/^$/),C(G,"handler",function(ee){var ce=ee.index;z===F.keys.RIGHT&&(ce+=ee.length+1);var le=this.quill.getLeaf(ce),ve=o(le,1),Ee=ve[0];return Ee instanceof b.default.Embed?(z===F.keys.LEFT?X?this.quill.setSelection(ee.index-1,ee.length+1,w.default.sources.USER):this.quill.setSelection(ee.index-1,w.default.sources.USER):X?this.quill.setSelection(ee.index,ee.length+1,w.default.sources.USER):this.quill.setSelection(ee.index+ee.length+1,w.default.sources.USER),!1):!0}),G}function D(z,X){if(!(z.index===0||this.quill.getLength()<=1)){var G=this.quill.getLine(z.index),V=o(G,1),$=V[0],ee={};if(X.offset===0){var ce=this.quill.getLine(z.index-1),le=o(ce,1),ve=le[0];if(ve!=null&&ve.length()>1){var Ee=$.formats(),tt=this.quill.getFormat(z.index-1,1);ee=v.default.attributes.diff(Ee,tt)||{}}}var Pe=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(X.prefix)?2:1;this.quill.deleteText(z.index-Pe,Pe,w.default.sources.USER),Object.keys(ee).length>0&&this.quill.formatLine(z.index-Pe,Pe,ee,w.default.sources.USER),this.quill.focus()}}function N(z,X){var G=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(X.suffix)?2:1;if(!(z.index>=this.quill.getLength()-G)){var V={},$=0,ee=this.quill.getLine(z.index),ce=o(ee,1),le=ce[0];if(X.offset>=le.length()-1){var ve=this.quill.getLine(z.index+1),Ee=o(ve,1),tt=Ee[0];if(tt){var Pe=le.formats(),U=this.quill.getFormat(z.index,1);V=v.default.attributes.diff(Pe,U)||{},$=tt.length()}}this.quill.deleteText(z.index,G,w.default.sources.USER),Object.keys(V).length>0&&this.quill.formatLine(z.index+$-1,G,V,w.default.sources.USER)}}function L(z){var X=this.quill.getLines(z),G={};if(X.length>1){var V=X[0].formats(),$=X[X.length-1].formats();G=v.default.attributes.diff($,V)||{}}this.quill.deleteText(z,w.default.sources.USER),Object.keys(G).length>0&&this.quill.formatLine(z.index,1,G,w.default.sources.USER),this.quill.setSelection(z.index,w.default.sources.SILENT),this.quill.focus()}function I(z,X){var G=this;z.length>0&&this.quill.scroll.deleteAt(z.index,z.length);var V=Object.keys(X.format).reduce(function($,ee){return b.default.query(ee,b.default.Scope.BLOCK)&&!Array.isArray(X.format[ee])&&($[ee]=X.format[ee]),$},{});this.quill.insertText(z.index,`
997
+ `,V,w.default.sources.USER),this.quill.setSelection(z.index+1,w.default.sources.SILENT),this.quill.focus(),Object.keys(X.format).forEach(function($){V[$]==null&&(Array.isArray(X.format[$])||$!=="link"&&G.quill.format($,X.format[$],w.default.sources.USER))})}function H(z){return{key:F.keys.TAB,shiftKey:!z,format:{"code-block":!0},handler:function(G){var V=b.default.query("code-block"),$=G.index,ee=G.length,ce=this.quill.scroll.descendant(V,$),le=o(ce,2),ve=le[0],Ee=le[1];if(ve!=null){var tt=this.quill.getIndex(ve),Pe=ve.newlineIndex(Ee,!0)+1,U=ve.newlineIndex(tt+Ee+ee),Z=ve.domNode.textContent.slice(Pe,U).split(`
998
+ `);Ee=0,Z.forEach(function(ie,te){z?(ve.insertAt(Pe+Ee,V.TAB),Ee+=V.TAB.length,te===0?$+=V.TAB.length:ee+=V.TAB.length):ie.startsWith(V.TAB)&&(ve.deleteAt(Pe+Ee,V.TAB.length),Ee-=V.TAB.length,te===0?$-=V.TAB.length:ee-=V.TAB.length),Ee+=ie.length+1}),this.quill.update(w.default.sources.USER),this.quill.setSelection($,ee,w.default.sources.SILENT)}}}}function Y(z){return{key:z[0].toUpperCase(),shortKey:!0,handler:function(G,V){this.quill.format(z,!V.format[z],w.default.sources.USER)}}}function W(z){if(typeof z=="string"||typeof z=="number")return W({key:z});if((typeof z>"u"?"undefined":a(z))==="object"&&(z=(0,h.default)(z,!1)),typeof z.key=="string")if(F.keys[z.key.toUpperCase()]!=null)z.key=F.keys[z.key.toUpperCase()];else if(z.key.length===1)z.key=z.key.toUpperCase().charCodeAt(0);else return null;return z.shortKey&&(z[T]=z.shortKey,delete z.shortKey),z}n.default=F,n.SHORTKEY=T},function(t,n,r){Object.defineProperty(n,"__esModule",{value:!0});var a=function(){function v(y,b){var x=[],w=!0,k=!1,S=void 0;try{for(var A=y[Symbol.iterator](),O;!(w=(O=A.next()).done)&&(x.push(O.value),!(b&&x.length===b));w=!0);}catch(_){k=!0,S=_}finally{try{!w&&A.return&&A.return()}finally{if(k)throw S}}return x}return function(y,b){if(Array.isArray(y))return y;if(Symbol.iterator in Object(y))return v(y,b);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),o=function v(y,b,x){y===null&&(y=Function.prototype);var w=Object.getOwnPropertyDescriptor(y,b);if(w===void 0){var k=Object.getPrototypeOf(y);return k===null?void 0:v(k,b,x)}else{if("value"in w)return w.value;var S=w.get;return S===void 0?void 0:S.call(x)}},s=function(){function v(y,b){for(var x=0;x<b.length;x++){var w=b[x];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(y,w.key,w)}}return function(y,b,x){return b&&v(y.prototype,b),x&&v(y,x),y}}(),l=r(0),h=f(l),u=r(7),c=f(u);function f(v){return v&&v.__esModule?v:{default:v}}function d(v,y){if(!(v instanceof y))throw new TypeError("Cannot call a class as a function")}function p(v,y){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return y&&(typeof y=="object"||typeof y=="function")?y:v}function g(v,y){if(typeof y!="function"&&y!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof y);v.prototype=Object.create(y&&y.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),y&&(Object.setPrototypeOf?Object.setPrototypeOf(v,y):v.__proto__=y)}var m=function(v){g(y,v),s(y,null,[{key:"value",value:function(){}}]);function y(b,x){d(this,y);var w=p(this,(y.__proto__||Object.getPrototypeOf(y)).call(this,b));return w.selection=x,w.textNode=document.createTextNode(y.CONTENTS),w.domNode.appendChild(w.textNode),w._length=0,w}return s(y,[{key:"detach",value:function(){this.parent!=null&&this.parent.removeChild(this)}},{key:"format",value:function(x,w){if(this._length!==0)return o(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"format",this).call(this,x,w);for(var k=this,S=0;k!=null&&k.statics.scope!==h.default.Scope.BLOCK_BLOT;)S+=k.offset(k.parent),k=k.parent;k!=null&&(this._length=y.CONTENTS.length,k.optimize(),k.formatAt(S,y.CONTENTS.length,x,w),this._length=0)}},{key:"index",value:function(x,w){return x===this.textNode?0:o(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"index",this).call(this,x,w)}},{key:"length",value:function(){return this._length}},{key:"position",value:function(){return[this.textNode,this.textNode.data.length]}},{key:"remove",value:function(){o(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"remove",this).call(this),this.parent=null}},{key:"restore",value:function(){if(!(this.selection.composing||this.parent==null)){var x=this.textNode,w=this.selection.getNativeRange(),k=void 0,S=void 0,A=void 0;if(w!=null&&w.start.node===x&&w.end.node===x){var O=[x,w.start.offset,w.end.offset];k=O[0],S=O[1],A=O[2]}for(;this.domNode.lastChild!=null&&this.domNode.lastChild!==this.textNode;)this.domNode.parentNode.insertBefore(this.domNode.lastChild,this.domNode);if(this.textNode.data!==y.CONTENTS){var _=this.textNode.data.split(y.CONTENTS).join("");this.next instanceof c.default?(k=this.next.domNode,this.next.insertAt(0,_),this.textNode.data=y.CONTENTS):(this.textNode.data=_,this.parent.insertBefore(h.default.create(this.textNode),this),this.textNode=document.createTextNode(y.CONTENTS),this.domNode.appendChild(this.textNode))}if(this.remove(),S!=null){var C=[S,A].map(function(P){return Math.max(0,Math.min(k.data.length,P-1))}),M=a(C,2);return S=M[0],A=M[1],{startNode:k,startOffset:S,endNode:k,endOffset:A}}}}},{key:"update",value:function(x,w){var k=this;if(x.some(function(A){return A.type==="characterData"&&A.target===k.textNode})){var S=this.restore();S&&(w.range=S)}}},{key:"value",value:function(){return""}}]),y}(h.default.Embed);m.blotName="cursor",m.className="ql-cursor",m.tagName="span",m.CONTENTS="\uFEFF",n.default=m},function(t,n,r){Object.defineProperty(n,"__esModule",{value:!0});var a=r(0),o=h(a),s=r(4),l=h(s);function h(p){return p&&p.__esModule?p:{default:p}}function u(p,g){if(!(p instanceof g))throw new TypeError("Cannot call a class as a function")}function c(p,g){if(!p)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g&&(typeof g=="object"||typeof g=="function")?g:p}function f(p,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof g);p.prototype=Object.create(g&&g.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}}),g&&(Object.setPrototypeOf?Object.setPrototypeOf(p,g):p.__proto__=g)}var d=function(p){f(g,p);function g(){return u(this,g),c(this,(g.__proto__||Object.getPrototypeOf(g)).apply(this,arguments))}return g}(o.default.Container);d.allowedChildren=[l.default,s.BlockEmbed,d],n.default=d},function(t,n,r){Object.defineProperty(n,"__esModule",{value:!0}),n.ColorStyle=n.ColorClass=n.ColorAttributor=void 0;var a=function(){function m(v,y){for(var b=0;b<y.length;b++){var x=y[b];x.enumerable=x.enumerable||!1,x.configurable=!0,"value"in x&&(x.writable=!0),Object.defineProperty(v,x.key,x)}}return function(v,y,b){return y&&m(v.prototype,y),b&&m(v,b),v}}(),o=function m(v,y,b){v===null&&(v=Function.prototype);var x=Object.getOwnPropertyDescriptor(v,y);if(x===void 0){var w=Object.getPrototypeOf(v);return w===null?void 0:m(w,y,b)}else{if("value"in x)return x.value;var k=x.get;return k===void 0?void 0:k.call(b)}},s=r(0),l=h(s);function h(m){return m&&m.__esModule?m:{default:m}}function u(m,v){if(!(m instanceof v))throw new TypeError("Cannot call a class as a function")}function c(m,v){if(!m)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return v&&(typeof v=="object"||typeof v=="function")?v:m}function f(m,v){if(typeof v!="function"&&v!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof v);m.prototype=Object.create(v&&v.prototype,{constructor:{value:m,enumerable:!1,writable:!0,configurable:!0}}),v&&(Object.setPrototypeOf?Object.setPrototypeOf(m,v):m.__proto__=v)}var d=function(m){f(v,m);function v(){return u(this,v),c(this,(v.__proto__||Object.getPrototypeOf(v)).apply(this,arguments))}return a(v,[{key:"value",value:function(b){var x=o(v.prototype.__proto__||Object.getPrototypeOf(v.prototype),"value",this).call(this,b);return x.startsWith("rgb(")?(x=x.replace(/^[^\d]+/,"").replace(/[^\d]+$/,""),"#"+x.split(",").map(function(w){return("00"+parseInt(w).toString(16)).slice(-2)}).join("")):x}}]),v}(l.default.Attributor.Style),p=new l.default.Attributor.Class("color","ql-color",{scope:l.default.Scope.INLINE}),g=new d("color","color",{scope:l.default.Scope.INLINE});n.ColorAttributor=d,n.ColorClass=p,n.ColorStyle=g},function(t,n,r){Object.defineProperty(n,"__esModule",{value:!0}),n.sanitize=n.default=void 0;var a=function(){function g(m,v){for(var y=0;y<v.length;y++){var b=v[y];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(m,b.key,b)}}return function(m,v,y){return v&&g(m.prototype,v),y&&g(m,y),m}}(),o=function g(m,v,y){m===null&&(m=Function.prototype);var b=Object.getOwnPropertyDescriptor(m,v);if(b===void 0){var x=Object.getPrototypeOf(m);return x===null?void 0:g(x,v,y)}else{if("value"in b)return b.value;var w=b.get;return w===void 0?void 0:w.call(y)}},s=r(6),l=h(s);function h(g){return g&&g.__esModule?g:{default:g}}function u(g,m){if(!(g instanceof m))throw new TypeError("Cannot call a class as a function")}function c(g,m){if(!g)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m&&(typeof m=="object"||typeof m=="function")?m:g}function f(g,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof m);g.prototype=Object.create(m&&m.prototype,{constructor:{value:g,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(g,m):g.__proto__=m)}var d=function(g){f(m,g);function m(){return u(this,m),c(this,(m.__proto__||Object.getPrototypeOf(m)).apply(this,arguments))}return a(m,[{key:"format",value:function(y,b){if(y!==this.statics.blotName||!b)return o(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"format",this).call(this,y,b);b=this.constructor.sanitize(b),this.domNode.setAttribute("href",b)}}],[{key:"create",value:function(y){var b=o(m.__proto__||Object.getPrototypeOf(m),"create",this).call(this,y);return y=this.sanitize(y),b.setAttribute("href",y),b.setAttribute("rel","noopener noreferrer"),b.setAttribute("target","_blank"),b}},{key:"formats",value:function(y){return y.getAttribute("href")}},{key:"sanitize",value:function(y){return p(y,this.PROTOCOL_WHITELIST)?y:this.SANITIZED_URL}}]),m}(l.default);d.blotName="link",d.tagName="A",d.SANITIZED_URL="about:blank",d.PROTOCOL_WHITELIST=["http","https","mailto","tel"];function p(g,m){var v=document.createElement("a");v.href=g;var y=v.href.slice(0,v.href.indexOf(":"));return m.indexOf(y)>-1}n.default=d,n.sanitize=p},function(t,n,r){Object.defineProperty(n,"__esModule",{value:!0});var a=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(m){return typeof m}:function(m){return m&&typeof Symbol=="function"&&m.constructor===Symbol&&m!==Symbol.prototype?"symbol":typeof m},o=function(){function m(v,y){for(var b=0;b<y.length;b++){var x=y[b];x.enumerable=x.enumerable||!1,x.configurable=!0,"value"in x&&(x.writable=!0),Object.defineProperty(v,x.key,x)}}return function(v,y,b){return y&&m(v.prototype,y),b&&m(v,b),v}}(),s=r(23),l=c(s),h=r(107),u=c(h);function c(m){return m&&m.__esModule?m:{default:m}}function f(m,v){if(!(m instanceof v))throw new TypeError("Cannot call a class as a function")}var d=0;function p(m,v){m.setAttribute(v,m.getAttribute(v)!=="true")}var g=function(){function m(v){var y=this;f(this,m),this.select=v,this.container=document.createElement("span"),this.buildPicker(),this.select.style.display="none",this.select.parentNode.insertBefore(this.container,this.select),this.label.addEventListener("mousedown",function(){y.togglePicker()}),this.label.addEventListener("keydown",function(b){switch(b.keyCode){case l.default.keys.ENTER:y.togglePicker();break;case l.default.keys.ESCAPE:y.escape(),b.preventDefault();break}}),this.select.addEventListener("change",this.update.bind(this))}return o(m,[{key:"togglePicker",value:function(){this.container.classList.toggle("ql-expanded"),p(this.label,"aria-expanded"),p(this.options,"aria-hidden")}},{key:"buildItem",value:function(y){var b=this,x=document.createElement("span");return x.tabIndex="0",x.setAttribute("role","button"),x.classList.add("ql-picker-item"),y.hasAttribute("value")&&x.setAttribute("data-value",y.getAttribute("value")),y.textContent&&x.setAttribute("data-label",y.textContent),x.addEventListener("click",function(){b.selectItem(x,!0)}),x.addEventListener("keydown",function(w){switch(w.keyCode){case l.default.keys.ENTER:b.selectItem(x,!0),w.preventDefault();break;case l.default.keys.ESCAPE:b.escape(),w.preventDefault();break}}),x}},{key:"buildLabel",value:function(){var y=document.createElement("span");return y.classList.add("ql-picker-label"),y.innerHTML=u.default,y.tabIndex="0",y.setAttribute("role","button"),y.setAttribute("aria-expanded","false"),this.container.appendChild(y),y}},{key:"buildOptions",value:function(){var y=this,b=document.createElement("span");b.classList.add("ql-picker-options"),b.setAttribute("aria-hidden","true"),b.tabIndex="-1",b.id="ql-picker-options-"+d,d+=1,this.label.setAttribute("aria-controls",b.id),this.options=b,[].slice.call(this.select.options).forEach(function(x){var w=y.buildItem(x);b.appendChild(w),x.selected===!0&&y.selectItem(w)}),this.container.appendChild(b)}},{key:"buildPicker",value:function(){var y=this;[].slice.call(this.select.attributes).forEach(function(b){y.container.setAttribute(b.name,b.value)}),this.container.classList.add("ql-picker"),this.label=this.buildLabel(),this.buildOptions()}},{key:"escape",value:function(){var y=this;this.close(),setTimeout(function(){return y.label.focus()},1)}},{key:"close",value:function(){this.container.classList.remove("ql-expanded"),this.label.setAttribute("aria-expanded","false"),this.options.setAttribute("aria-hidden","true")}},{key:"selectItem",value:function(y){var b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,x=this.container.querySelector(".ql-selected");if(y!==x&&(x!=null&&x.classList.remove("ql-selected"),y!=null&&(y.classList.add("ql-selected"),this.select.selectedIndex=[].indexOf.call(y.parentNode.children,y),y.hasAttribute("data-value")?this.label.setAttribute("data-value",y.getAttribute("data-value")):this.label.removeAttribute("data-value"),y.hasAttribute("data-label")?this.label.setAttribute("data-label",y.getAttribute("data-label")):this.label.removeAttribute("data-label"),b))){if(typeof Event=="function")this.select.dispatchEvent(new Event("change"));else if((typeof Event>"u"?"undefined":a(Event))==="object"){var w=document.createEvent("Event");w.initEvent("change",!0,!0),this.select.dispatchEvent(w)}this.close()}}},{key:"update",value:function(){var y=void 0;if(this.select.selectedIndex>-1){var b=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];y=this.select.options[this.select.selectedIndex],this.selectItem(b)}else this.selectItem(null);var x=y!=null&&y!==this.select.querySelector("option[selected]");this.label.classList.toggle("ql-active",x)}}]),m}();n.default=g},function(t,n,r){Object.defineProperty(n,"__esModule",{value:!0});var a=r(0),o=R(a),s=r(5),l=R(s),h=r(4),u=R(h),c=r(16),f=R(c),d=r(25),p=R(d),g=r(24),m=R(g),v=r(35),y=R(v),b=r(6),x=R(b),w=r(22),k=R(w),S=r(7),A=R(S),O=r(55),_=R(O),C=r(42),M=R(C),P=r(23),E=R(P);function R(T){return T&&T.__esModule?T:{default:T}}l.default.register({"blots/block":u.default,"blots/block/embed":h.BlockEmbed,"blots/break":f.default,"blots/container":p.default,"blots/cursor":m.default,"blots/embed":y.default,"blots/inline":x.default,"blots/scroll":k.default,"blots/text":A.default,"modules/clipboard":_.default,"modules/history":M.default,"modules/keyboard":E.default}),o.default.register(u.default,f.default,m.default,x.default,k.default,A.default),n.default=l.default},function(t,n,r){Object.defineProperty(n,"__esModule",{value:!0});var a=r(1),o=function(){function s(l){this.domNode=l,this.domNode[a.DATA_KEY]={blot:this}}return Object.defineProperty(s.prototype,"statics",{get:function(){return this.constructor},enumerable:!0,configurable:!0}),s.create=function(l){if(this.tagName==null)throw new a.ParchmentError("Blot definition missing tagName");var h;return Array.isArray(this.tagName)?(typeof l=="string"&&(l=l.toUpperCase(),parseInt(l).toString()===l&&(l=parseInt(l))),typeof l=="number"?h=document.createElement(this.tagName[l-1]):this.tagName.indexOf(l)>-1?h=document.createElement(l):h=document.createElement(this.tagName[0])):h=document.createElement(this.tagName),this.className&&h.classList.add(this.className),h},s.prototype.attach=function(){this.parent!=null&&(this.scroll=this.parent.scroll)},s.prototype.clone=function(){var l=this.domNode.cloneNode(!1);return a.create(l)},s.prototype.detach=function(){this.parent!=null&&this.parent.removeChild(this),delete this.domNode[a.DATA_KEY]},s.prototype.deleteAt=function(l,h){var u=this.isolate(l,h);u.remove()},s.prototype.formatAt=function(l,h,u,c){var f=this.isolate(l,h);if(a.query(u,a.Scope.BLOT)!=null&&c)f.wrap(u,c);else if(a.query(u,a.Scope.ATTRIBUTE)!=null){var d=a.create(this.statics.scope);f.wrap(d),d.format(u,c)}},s.prototype.insertAt=function(l,h,u){var c=u==null?a.create("text",h):a.create(h,u),f=this.split(l);this.parent.insertBefore(c,f)},s.prototype.insertInto=function(l,h){h===void 0&&(h=null),this.parent!=null&&this.parent.children.remove(this);var u=null;l.children.insertBefore(this,h),h!=null&&(u=h.domNode),(this.domNode.parentNode!=l.domNode||this.domNode.nextSibling!=u)&&l.domNode.insertBefore(this.domNode,u),this.parent=l,this.attach()},s.prototype.isolate=function(l,h){var u=this.split(l);return u.split(h),u},s.prototype.length=function(){return 1},s.prototype.offset=function(l){return l===void 0&&(l=this.parent),this.parent==null||this==l?0:this.parent.children.offset(this)+this.parent.offset(l)},s.prototype.optimize=function(l){this.domNode[a.DATA_KEY]!=null&&delete this.domNode[a.DATA_KEY].mutations},s.prototype.remove=function(){this.domNode.parentNode!=null&&this.domNode.parentNode.removeChild(this.domNode),this.detach()},s.prototype.replace=function(l){l.parent!=null&&(l.parent.insertBefore(this,l.next),l.remove())},s.prototype.replaceWith=function(l,h){var u=typeof l=="string"?a.create(l,h):l;return u.replace(this),u},s.prototype.split=function(l,h){return l===0?this:this.next},s.prototype.update=function(l,h){},s.prototype.wrap=function(l,h){var u=typeof l=="string"?a.create(l,h):l;return this.parent!=null&&this.parent.insertBefore(u,this.next),u.appendChild(this),u},s.blotName="abstract",s}();n.default=o},function(t,n,r){Object.defineProperty(n,"__esModule",{value:!0});var a=r(12),o=r(32),s=r(33),l=r(1),h=function(){function u(c){this.attributes={},this.domNode=c,this.build()}return u.prototype.attribute=function(c,f){f?c.add(this.domNode,f)&&(c.value(this.domNode)!=null?this.attributes[c.attrName]=c:delete this.attributes[c.attrName]):(c.remove(this.domNode),delete this.attributes[c.attrName])},u.prototype.build=function(){var c=this;this.attributes={};var f=a.default.keys(this.domNode),d=o.default.keys(this.domNode),p=s.default.keys(this.domNode);f.concat(d).concat(p).forEach(function(g){var m=l.query(g,l.Scope.ATTRIBUTE);m instanceof a.default&&(c.attributes[m.attrName]=m)})},u.prototype.copy=function(c){var f=this;Object.keys(this.attributes).forEach(function(d){var p=f.attributes[d].value(f.domNode);c.format(d,p)})},u.prototype.move=function(c){var f=this;this.copy(c),Object.keys(this.attributes).forEach(function(d){f.attributes[d].remove(f.domNode)}),this.attributes={}},u.prototype.values=function(){var c=this;return Object.keys(this.attributes).reduce(function(f,d){return f[d]=c.attributes[d].value(c.domNode),f},{})},u}();n.default=h},function(t,n,r){var a=this&&this.__extends||function(){var h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,c){u.__proto__=c}||function(u,c){for(var f in c)c.hasOwnProperty(f)&&(u[f]=c[f])};return function(u,c){h(u,c);function f(){this.constructor=u}u.prototype=c===null?Object.create(c):(f.prototype=c.prototype,new f)}}();Object.defineProperty(n,"__esModule",{value:!0});var o=r(12);function s(h,u){var c=h.getAttribute("class")||"";return c.split(/\s+/).filter(function(f){return f.indexOf(u+"-")===0})}var l=function(h){a(u,h);function u(){return h!==null&&h.apply(this,arguments)||this}return u.keys=function(c){return(c.getAttribute("class")||"").split(/\s+/).map(function(f){return f.split("-").slice(0,-1).join("-")})},u.prototype.add=function(c,f){return this.canAdd(c,f)?(this.remove(c),c.classList.add(this.keyName+"-"+f),!0):!1},u.prototype.remove=function(c){var f=s(c,this.keyName);f.forEach(function(d){c.classList.remove(d)}),c.classList.length===0&&c.removeAttribute("class")},u.prototype.value=function(c){var f=s(c,this.keyName)[0]||"",d=f.slice(this.keyName.length+1);return this.canAdd(c,d)?d:""},u}(o.default);n.default=l},function(t,n,r){var a=this&&this.__extends||function(){var h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,c){u.__proto__=c}||function(u,c){for(var f in c)c.hasOwnProperty(f)&&(u[f]=c[f])};return function(u,c){h(u,c);function f(){this.constructor=u}u.prototype=c===null?Object.create(c):(f.prototype=c.prototype,new f)}}();Object.defineProperty(n,"__esModule",{value:!0});var o=r(12);function s(h){var u=h.split("-"),c=u.slice(1).map(function(f){return f[0].toUpperCase()+f.slice(1)}).join("");return u[0]+c}var l=function(h){a(u,h);function u(){return h!==null&&h.apply(this,arguments)||this}return u.keys=function(c){return(c.getAttribute("style")||"").split(";").map(function(f){var d=f.split(":");return d[0].trim()})},u.prototype.add=function(c,f){return this.canAdd(c,f)?(c.style[s(this.keyName)]=f,!0):!1},u.prototype.remove=function(c){c.style[s(this.keyName)]="",c.getAttribute("style")||c.removeAttribute("style")},u.prototype.value=function(c){var f=c.style[s(this.keyName)];return this.canAdd(c,f)?f:""},u}(o.default);n.default=l},function(t,n,r){Object.defineProperty(n,"__esModule",{value:!0});var a=function(){function l(h,u){for(var c=0;c<u.length;c++){var f=u[c];f.enumerable=f.enumerable||!1,f.configurable=!0,"value"in f&&(f.writable=!0),Object.defineProperty(h,f.key,f)}}return function(h,u,c){return u&&l(h.prototype,u),c&&l(h,c),h}}();function o(l,h){if(!(l instanceof h))throw new TypeError("Cannot call a class as a function")}var s=function(){function l(h,u){o(this,l),this.quill=h,this.options=u,this.modules={}}return a(l,[{key:"init",value:function(){var u=this;Object.keys(this.options.modules).forEach(function(c){u.modules[c]==null&&u.addModule(c)})}},{key:"addModule",value:function(u){var c=this.quill.constructor.import("modules/"+u);return this.modules[u]=new c(this.quill,this.options.modules[u]||{}),this.modules[u]}}]),l}();s.DEFAULTS={modules:{}},s.themes={default:s},n.default=s},function(t,n,r){Object.defineProperty(n,"__esModule",{value:!0});var a=function(){function v(y,b){for(var x=0;x<b.length;x++){var w=b[x];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(y,w.key,w)}}return function(y,b,x){return b&&v(y.prototype,b),x&&v(y,x),y}}(),o=function v(y,b,x){y===null&&(y=Function.prototype);var w=Object.getOwnPropertyDescriptor(y,b);if(w===void 0){var k=Object.getPrototypeOf(y);return k===null?void 0:v(k,b,x)}else{if("value"in w)return w.value;var S=w.get;return S===void 0?void 0:S.call(x)}},s=r(0),l=c(s),h=r(7),u=c(h);function c(v){return v&&v.__esModule?v:{default:v}}function f(v,y){if(!(v instanceof y))throw new TypeError("Cannot call a class as a function")}function d(v,y){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return y&&(typeof y=="object"||typeof y=="function")?y:v}function p(v,y){if(typeof y!="function"&&y!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof y);v.prototype=Object.create(y&&y.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),y&&(Object.setPrototypeOf?Object.setPrototypeOf(v,y):v.__proto__=y)}var g="\uFEFF",m=function(v){p(y,v);function y(b){f(this,y);var x=d(this,(y.__proto__||Object.getPrototypeOf(y)).call(this,b));return x.contentNode=document.createElement("span"),x.contentNode.setAttribute("contenteditable",!1),[].slice.call(x.domNode.childNodes).forEach(function(w){x.contentNode.appendChild(w)}),x.leftGuard=document.createTextNode(g),x.rightGuard=document.createTextNode(g),x.domNode.appendChild(x.leftGuard),x.domNode.appendChild(x.contentNode),x.domNode.appendChild(x.rightGuard),x}return a(y,[{key:"index",value:function(x,w){return x===this.leftGuard?0:x===this.rightGuard?1:o(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"index",this).call(this,x,w)}},{key:"restore",value:function(x){var w=void 0,k=void 0,S=x.data.split(g).join("");if(x===this.leftGuard)if(this.prev instanceof u.default){var A=this.prev.length();this.prev.insertAt(A,S),w={startNode:this.prev.domNode,startOffset:A+S.length}}else k=document.createTextNode(S),this.parent.insertBefore(l.default.create(k),this),w={startNode:k,startOffset:S.length};else x===this.rightGuard&&(this.next instanceof u.default?(this.next.insertAt(0,S),w={startNode:this.next.domNode,startOffset:S.length}):(k=document.createTextNode(S),this.parent.insertBefore(l.default.create(k),this.next),w={startNode:k,startOffset:S.length}));return x.data=g,w}},{key:"update",value:function(x,w){var k=this;x.forEach(function(S){if(S.type==="characterData"&&(S.target===k.leftGuard||S.target===k.rightGuard)){var A=k.restore(S.target);A&&(w.range=A)}})}}]),y}(l.default.Embed);n.default=m},function(t,n,r){Object.defineProperty(n,"__esModule",{value:!0}),n.AlignStyle=n.AlignClass=n.AlignAttribute=void 0;var a=r(0),o=s(a);function s(f){return f&&f.__esModule?f:{default:f}}var l={scope:o.default.Scope.BLOCK,whitelist:["right","center","justify"]},h=new o.default.Attributor.Attribute("align","align",l),u=new o.default.Attributor.Class("align","ql-align",l),c=new o.default.Attributor.Style("align","text-align",l);n.AlignAttribute=h,n.AlignClass=u,n.AlignStyle=c},function(t,n,r){Object.defineProperty(n,"__esModule",{value:!0}),n.BackgroundStyle=n.BackgroundClass=void 0;var a=r(0),o=l(a),s=r(26);function l(c){return c&&c.__esModule?c:{default:c}}var h=new o.default.Attributor.Class("background","ql-bg",{scope:o.default.Scope.INLINE}),u=new s.ColorAttributor("background","background-color",{scope:o.default.Scope.INLINE});n.BackgroundClass=h,n.BackgroundStyle=u},function(t,n,r){Object.defineProperty(n,"__esModule",{value:!0}),n.DirectionStyle=n.DirectionClass=n.DirectionAttribute=void 0;var a=r(0),o=s(a);function s(f){return f&&f.__esModule?f:{default:f}}var l={scope:o.default.Scope.BLOCK,whitelist:["rtl"]},h=new o.default.Attributor.Attribute("direction","dir",l),u=new o.default.Attributor.Class("direction","ql-direction",l),c=new o.default.Attributor.Style("direction","direction",l);n.DirectionAttribute=h,n.DirectionClass=u,n.DirectionStyle=c},function(t,n,r){Object.defineProperty(n,"__esModule",{value:!0}),n.FontClass=n.FontStyle=void 0;var a=function(){function v(y,b){for(var x=0;x<b.length;x++){var w=b[x];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(y,w.key,w)}}return function(y,b,x){return b&&v(y.prototype,b),x&&v(y,x),y}}(),o=function v(y,b,x){y===null&&(y=Function.prototype);var w=Object.getOwnPropertyDescriptor(y,b);if(w===void 0){var k=Object.getPrototypeOf(y);return k===null?void 0:v(k,b,x)}else{if("value"in w)return w.value;var S=w.get;return S===void 0?void 0:S.call(x)}},s=r(0),l=h(s);function h(v){return v&&v.__esModule?v:{default:v}}function u(v,y){if(!(v instanceof y))throw new TypeError("Cannot call a class as a function")}function c(v,y){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return y&&(typeof y=="object"||typeof y=="function")?y:v}function f(v,y){if(typeof y!="function"&&y!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof y);v.prototype=Object.create(y&&y.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),y&&(Object.setPrototypeOf?Object.setPrototypeOf(v,y):v.__proto__=y)}var d={scope:l.default.Scope.INLINE,whitelist:["serif","monospace"]},p=new l.default.Attributor.Class("font","ql-font",d),g=function(v){f(y,v);function y(){return u(this,y),c(this,(y.__proto__||Object.getPrototypeOf(y)).apply(this,arguments))}return a(y,[{key:"value",value:function(x){return o(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"value",this).call(this,x).replace(/["']/g,"")}}]),y}(l.default.Attributor.Style),m=new g("font","font-family",d);n.FontStyle=m,n.FontClass=p},function(t,n,r){Object.defineProperty(n,"__esModule",{value:!0}),n.SizeStyle=n.SizeClass=void 0;var a=r(0),o=s(a);function s(u){return u&&u.__esModule?u:{default:u}}var l=new o.default.Attributor.Class("size","ql-size",{scope:o.default.Scope.INLINE,whitelist:["small","large","huge"]}),h=new o.default.Attributor.Style("size","font-size",{scope:o.default.Scope.INLINE,whitelist:["10px","18px","32px"]});n.SizeClass=l,n.SizeStyle=h},function(t,n,r){t.exports={align:{"":r(76),center:r(77),right:r(78),justify:r(79)},background:r(80),blockquote:r(81),bold:r(82),clean:r(83),code:r(58),"code-block":r(58),color:r(84),direction:{"":r(85),rtl:r(86)},float:{center:r(87),full:r(88),left:r(89),right:r(90)},formula:r(91),header:{1:r(92),2:r(93)},italic:r(94),image:r(95),indent:{"+1":r(96),"-1":r(97)},link:r(98),list:{ordered:r(99),bullet:r(100),check:r(101)},script:{sub:r(102),super:r(103)},strike:r(104),underline:r(105),video:r(106)}},function(t,n,r){Object.defineProperty(n,"__esModule",{value:!0}),n.getLastChangeIndex=n.default=void 0;var a=function(){function b(x,w){for(var k=0;k<w.length;k++){var S=w[k];S.enumerable=S.enumerable||!1,S.configurable=!0,"value"in S&&(S.writable=!0),Object.defineProperty(x,S.key,S)}}return function(x,w,k){return w&&b(x.prototype,w),k&&b(x,k),x}}(),o=r(0),s=f(o),l=r(5),h=f(l),u=r(9),c=f(u);function f(b){return b&&b.__esModule?b:{default:b}}function d(b,x){if(!(b instanceof x))throw new TypeError("Cannot call a class as a function")}function p(b,x){if(!b)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return x&&(typeof x=="object"||typeof x=="function")?x:b}function g(b,x){if(typeof x!="function"&&x!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof x);b.prototype=Object.create(x&&x.prototype,{constructor:{value:b,enumerable:!1,writable:!0,configurable:!0}}),x&&(Object.setPrototypeOf?Object.setPrototypeOf(b,x):b.__proto__=x)}var m=function(b){g(x,b);function x(w,k){d(this,x);var S=p(this,(x.__proto__||Object.getPrototypeOf(x)).call(this,w,k));return S.lastRecorded=0,S.ignoreChange=!1,S.clear(),S.quill.on(h.default.events.EDITOR_CHANGE,function(A,O,_,C){A!==h.default.events.TEXT_CHANGE||S.ignoreChange||(!S.options.userOnly||C===h.default.sources.USER?S.record(O,_):S.transform(O))}),S.quill.keyboard.addBinding({key:"Z",shortKey:!0},S.undo.bind(S)),S.quill.keyboard.addBinding({key:"Z",shortKey:!0,shiftKey:!0},S.redo.bind(S)),/Win/i.test(navigator.platform)&&S.quill.keyboard.addBinding({key:"Y",shortKey:!0},S.redo.bind(S)),S}return a(x,[{key:"change",value:function(k,S){if(this.stack[k].length!==0){var A=this.stack[k].pop();this.stack[S].push(A),this.lastRecorded=0,this.ignoreChange=!0,this.quill.updateContents(A[k],h.default.sources.USER),this.ignoreChange=!1;var O=y(A[k]);this.quill.setSelection(O)}}},{key:"clear",value:function(){this.stack={undo:[],redo:[]}}},{key:"cutoff",value:function(){this.lastRecorded=0}},{key:"record",value:function(k,S){if(k.ops.length!==0){this.stack.redo=[];var A=this.quill.getContents().diff(S),O=Date.now();if(this.lastRecorded+this.options.delay>O&&this.stack.undo.length>0){var _=this.stack.undo.pop();A=A.compose(_.undo),k=_.redo.compose(k)}else this.lastRecorded=O;this.stack.undo.push({redo:k,undo:A}),this.stack.undo.length>this.options.maxStack&&this.stack.undo.shift()}}},{key:"redo",value:function(){this.change("redo","undo")}},{key:"transform",value:function(k){this.stack.undo.forEach(function(S){S.undo=k.transform(S.undo,!0),S.redo=k.transform(S.redo,!0)}),this.stack.redo.forEach(function(S){S.undo=k.transform(S.undo,!0),S.redo=k.transform(S.redo,!0)})}},{key:"undo",value:function(){this.change("undo","redo")}}]),x}(c.default);m.DEFAULTS={delay:1e3,maxStack:100,userOnly:!1};function v(b){var x=b.ops[b.ops.length-1];return x==null?!1:x.insert!=null?typeof x.insert=="string"&&x.insert.endsWith(`
999
+ `):x.attributes!=null?Object.keys(x.attributes).some(function(w){return s.default.query(w,s.default.Scope.BLOCK)!=null}):!1}function y(b){var x=b.reduce(function(k,S){return k+=S.delete||0,k},0),w=b.length()-x;return v(b)&&(w-=1),w}n.default=m,n.getLastChangeIndex=y},function(t,n,r){Object.defineProperty(n,"__esModule",{value:!0}),n.default=n.BaseTooltip=void 0;var a=function(){function I(H,Y){for(var W=0;W<Y.length;W++){var z=Y[W];z.enumerable=z.enumerable||!1,z.configurable=!0,"value"in z&&(z.writable=!0),Object.defineProperty(H,z.key,z)}}return function(H,Y,W){return Y&&I(H.prototype,Y),W&&I(H,W),H}}(),o=function I(H,Y,W){H===null&&(H=Function.prototype);var z=Object.getOwnPropertyDescriptor(H,Y);if(z===void 0){var X=Object.getPrototypeOf(H);return X===null?void 0:I(X,Y,W)}else{if("value"in z)return z.value;var G=z.get;return G===void 0?void 0:G.call(W)}},s=r(3),l=O(s),h=r(2),u=O(h),c=r(8),f=O(c),d=r(23),p=O(d),g=r(34),m=O(g),v=r(59),y=O(v),b=r(60),x=O(b),w=r(28),k=O(w),S=r(61),A=O(S);function O(I){return I&&I.__esModule?I:{default:I}}function _(I,H){if(!(I instanceof H))throw new TypeError("Cannot call a class as a function")}function C(I,H){if(!I)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return H&&(typeof H=="object"||typeof H=="function")?H:I}function M(I,H){if(typeof H!="function"&&H!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof H);I.prototype=Object.create(H&&H.prototype,{constructor:{value:I,enumerable:!1,writable:!0,configurable:!0}}),H&&(Object.setPrototypeOf?Object.setPrototypeOf(I,H):I.__proto__=H)}var P=[!1,"center","right","justify"],E=["#000000","#e60000","#ff9900","#ffff00","#008a00","#0066cc","#9933ff","#ffffff","#facccc","#ffebcc","#ffffcc","#cce8cc","#cce0f5","#ebd6ff","#bbbbbb","#f06666","#ffc266","#ffff66","#66b966","#66a3e0","#c285ff","#888888","#a10000","#b26b00","#b2b200","#006100","#0047b2","#6b24b2","#444444","#5c0000","#663d00","#666600","#003700","#002966","#3d1466"],R=[!1,"serif","monospace"],T=["1","2","3",!1],F=["small",!1,"large","huge"],B=function(I){M(H,I);function H(Y,W){_(this,H);var z=C(this,(H.__proto__||Object.getPrototypeOf(H)).call(this,Y,W)),X=function G(V){if(!document.body.contains(Y.root))return document.body.removeEventListener("click",G);z.tooltip!=null&&!z.tooltip.root.contains(V.target)&&document.activeElement!==z.tooltip.textbox&&!z.quill.hasFocus()&&z.tooltip.hide(),z.pickers!=null&&z.pickers.forEach(function($){$.container.contains(V.target)||$.close()})};return Y.emitter.listenDOM("click",document.body,X),z}return a(H,[{key:"addModule",value:function(W){var z=o(H.prototype.__proto__||Object.getPrototypeOf(H.prototype),"addModule",this).call(this,W);return W==="toolbar"&&this.extendToolbar(z),z}},{key:"buildButtons",value:function(W,z){W.forEach(function(X){var G=X.getAttribute("class")||"";G.split(/\s+/).forEach(function(V){if(V.startsWith("ql-")&&(V=V.slice(3),z[V]!=null))if(V==="direction")X.innerHTML=z[V][""]+z[V].rtl;else if(typeof z[V]=="string")X.innerHTML=z[V];else{var $=X.value||"";$!=null&&z[V][$]&&(X.innerHTML=z[V][$])}})})}},{key:"buildPickers",value:function(W,z){var X=this;this.pickers=W.map(function(V){if(V.classList.contains("ql-align"))return V.querySelector("option")==null&&L(V,P),new x.default(V,z.align);if(V.classList.contains("ql-background")||V.classList.contains("ql-color")){var $=V.classList.contains("ql-background")?"background":"color";return V.querySelector("option")==null&&L(V,E,$==="background"?"#ffffff":"#000000"),new y.default(V,z[$])}else return V.querySelector("option")==null&&(V.classList.contains("ql-font")?L(V,R):V.classList.contains("ql-header")?L(V,T):V.classList.contains("ql-size")&&L(V,F)),new k.default(V)});var G=function(){X.pickers.forEach(function($){$.update()})};this.quill.on(f.default.events.EDITOR_CHANGE,G)}}]),H}(m.default);B.DEFAULTS=(0,l.default)(!0,{},m.default.DEFAULTS,{modules:{toolbar:{handlers:{formula:function(){this.quill.theme.tooltip.edit("formula")},image:function(){var H=this,Y=this.container.querySelector("input.ql-image[type=file]");Y==null&&(Y=document.createElement("input"),Y.setAttribute("type","file"),Y.setAttribute("accept","image/png, image/gif, image/jpeg, image/bmp, image/x-icon"),Y.classList.add("ql-image"),Y.addEventListener("change",function(){if(Y.files!=null&&Y.files[0]!=null){var W=new FileReader;W.onload=function(z){var X=H.quill.getSelection(!0);H.quill.updateContents(new u.default().retain(X.index).delete(X.length).insert({image:z.target.result}),f.default.sources.USER),H.quill.setSelection(X.index+1,f.default.sources.SILENT),Y.value=""},W.readAsDataURL(Y.files[0])}}),this.container.appendChild(Y)),Y.click()},video:function(){this.quill.theme.tooltip.edit("video")}}}}});var D=function(I){M(H,I);function H(Y,W){_(this,H);var z=C(this,(H.__proto__||Object.getPrototypeOf(H)).call(this,Y,W));return z.textbox=z.root.querySelector('input[type="text"]'),z.listen(),z}return a(H,[{key:"listen",value:function(){var W=this;this.textbox.addEventListener("keydown",function(z){p.default.match(z,"enter")?(W.save(),z.preventDefault()):p.default.match(z,"escape")&&(W.cancel(),z.preventDefault())})}},{key:"cancel",value:function(){this.hide()}},{key:"edit",value:function(){var W=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"link",z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;this.root.classList.remove("ql-hidden"),this.root.classList.add("ql-editing"),z!=null?this.textbox.value=z:W!==this.root.getAttribute("data-mode")&&(this.textbox.value=""),this.position(this.quill.getBounds(this.quill.selection.savedRange)),this.textbox.select(),this.textbox.setAttribute("placeholder",this.textbox.getAttribute("data-"+W)||""),this.root.setAttribute("data-mode",W)}},{key:"restoreFocus",value:function(){var W=this.quill.scrollingContainer.scrollTop;this.quill.focus(),this.quill.scrollingContainer.scrollTop=W}},{key:"save",value:function(){var W=this.textbox.value;switch(this.root.getAttribute("data-mode")){case"link":{var z=this.quill.root.scrollTop;this.linkRange?(this.quill.formatText(this.linkRange,"link",W,f.default.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",W,f.default.sources.USER)),this.quill.root.scrollTop=z;break}case"video":W=N(W);case"formula":{if(!W)break;var X=this.quill.getSelection(!0);if(X!=null){var G=X.index+X.length;this.quill.insertEmbed(G,this.root.getAttribute("data-mode"),W,f.default.sources.USER),this.root.getAttribute("data-mode")==="formula"&&this.quill.insertText(G+1," ",f.default.sources.USER),this.quill.setSelection(G+2,f.default.sources.USER)}break}}this.textbox.value="",this.hide()}}]),H}(A.default);function N(I){var H=I.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||I.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);return H?(H[1]||"https")+"://www.youtube.com/embed/"+H[2]+"?showinfo=0":(H=I.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))?(H[1]||"https")+"://player.vimeo.com/video/"+H[2]+"/":I}function L(I,H){var Y=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;H.forEach(function(W){var z=document.createElement("option");W===Y?z.setAttribute("selected","selected"):z.setAttribute("value",W),I.appendChild(z)})}n.BaseTooltip=D,n.default=B},function(t,n,r){Object.defineProperty(n,"__esModule",{value:!0});var a=function(){function o(){this.head=this.tail=null,this.length=0}return o.prototype.append=function(){for(var s=[],l=0;l<arguments.length;l++)s[l]=arguments[l];this.insertBefore(s[0],null),s.length>1&&this.append.apply(this,s.slice(1))},o.prototype.contains=function(s){for(var l,h=this.iterator();l=h();)if(l===s)return!0;return!1},o.prototype.insertBefore=function(s,l){s&&(s.next=l,l!=null?(s.prev=l.prev,l.prev!=null&&(l.prev.next=s),l.prev=s,l===this.head&&(this.head=s)):this.tail!=null?(this.tail.next=s,s.prev=this.tail,this.tail=s):(s.prev=null,this.head=this.tail=s),this.length+=1)},o.prototype.offset=function(s){for(var l=0,h=this.head;h!=null;){if(h===s)return l;l+=h.length(),h=h.next}return-1},o.prototype.remove=function(s){this.contains(s)&&(s.prev!=null&&(s.prev.next=s.next),s.next!=null&&(s.next.prev=s.prev),s===this.head&&(this.head=s.next),s===this.tail&&(this.tail=s.prev),this.length-=1)},o.prototype.iterator=function(s){return s===void 0&&(s=this.head),function(){var l=s;return s!=null&&(s=s.next),l}},o.prototype.find=function(s,l){l===void 0&&(l=!1);for(var h,u=this.iterator();h=u();){var c=h.length();if(s<c||l&&s===c&&(h.next==null||h.next.length()!==0))return[h,s];s-=c}return[null,0]},o.prototype.forEach=function(s){for(var l,h=this.iterator();l=h();)s(l)},o.prototype.forEachAt=function(s,l,h){if(!(l<=0))for(var u=this.find(s),c=u[0],f=u[1],d,p=s-f,g=this.iterator(c);(d=g())&&p<s+l;){var m=d.length();s>p?h(d,s-p,Math.min(l,p+m-s)):h(d,0,Math.min(m,s+l-p)),p+=m}},o.prototype.map=function(s){return this.reduce(function(l,h){return l.push(s(h)),l},[])},o.prototype.reduce=function(s,l){for(var h,u=this.iterator();h=u();)l=s(l,h);return l},o}();n.default=a},function(t,n,r){var a=this&&this.__extends||function(){var c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,d){f.__proto__=d}||function(f,d){for(var p in d)d.hasOwnProperty(p)&&(f[p]=d[p])};return function(f,d){c(f,d);function p(){this.constructor=f}f.prototype=d===null?Object.create(d):(p.prototype=d.prototype,new p)}}();Object.defineProperty(n,"__esModule",{value:!0});var o=r(17),s=r(1),l={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},h=100,u=function(c){a(f,c);function f(d){var p=c.call(this,d)||this;return p.scroll=p,p.observer=new MutationObserver(function(g){p.update(g)}),p.observer.observe(p.domNode,l),p.attach(),p}return f.prototype.detach=function(){c.prototype.detach.call(this),this.observer.disconnect()},f.prototype.deleteAt=function(d,p){this.update(),d===0&&p===this.length()?this.children.forEach(function(g){g.remove()}):c.prototype.deleteAt.call(this,d,p)},f.prototype.formatAt=function(d,p,g,m){this.update(),c.prototype.formatAt.call(this,d,p,g,m)},f.prototype.insertAt=function(d,p,g){this.update(),c.prototype.insertAt.call(this,d,p,g)},f.prototype.optimize=function(d,p){var g=this;d===void 0&&(d=[]),p===void 0&&(p={}),c.prototype.optimize.call(this,p);for(var m=[].slice.call(this.observer.takeRecords());m.length>0;)d.push(m.pop());for(var v=function(w,k){k===void 0&&(k=!0),!(w==null||w===g)&&w.domNode.parentNode!=null&&(w.domNode[s.DATA_KEY].mutations==null&&(w.domNode[s.DATA_KEY].mutations=[]),k&&v(w.parent))},y=function(w){w.domNode[s.DATA_KEY]==null||w.domNode[s.DATA_KEY].mutations==null||(w instanceof o.default&&w.children.forEach(y),w.optimize(p))},b=d,x=0;b.length>0;x+=1){if(x>=h)throw new Error("[Parchment] Maximum optimize iterations reached");for(b.forEach(function(w){var k=s.find(w.target,!0);k!=null&&(k.domNode===w.target&&(w.type==="childList"?(v(s.find(w.previousSibling,!1)),[].forEach.call(w.addedNodes,function(S){var A=s.find(S,!1);v(A,!1),A instanceof o.default&&A.children.forEach(function(O){v(O,!1)})})):w.type==="attributes"&&v(k.prev)),v(k))}),this.children.forEach(y),b=[].slice.call(this.observer.takeRecords()),m=b.slice();m.length>0;)d.push(m.pop())}},f.prototype.update=function(d,p){var g=this;p===void 0&&(p={}),d=d||this.observer.takeRecords(),d.map(function(m){var v=s.find(m.target,!0);return v==null?null:v.domNode[s.DATA_KEY].mutations==null?(v.domNode[s.DATA_KEY].mutations=[m],v):(v.domNode[s.DATA_KEY].mutations.push(m),null)}).forEach(function(m){m==null||m===g||m.domNode[s.DATA_KEY]==null||m.update(m.domNode[s.DATA_KEY].mutations||[],p)}),this.domNode[s.DATA_KEY].mutations!=null&&c.prototype.update.call(this,this.domNode[s.DATA_KEY].mutations,p),this.optimize(d,p)},f.blotName="scroll",f.defaultChild="block",f.scope=s.Scope.BLOCK_BLOT,f.tagName="DIV",f}(o.default);n.default=u},function(t,n,r){var a=this&&this.__extends||function(){var u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,f){c.__proto__=f}||function(c,f){for(var d in f)f.hasOwnProperty(d)&&(c[d]=f[d])};return function(c,f){u(c,f);function d(){this.constructor=c}c.prototype=f===null?Object.create(f):(d.prototype=f.prototype,new d)}}();Object.defineProperty(n,"__esModule",{value:!0});var o=r(18),s=r(1);function l(u,c){if(Object.keys(u).length!==Object.keys(c).length)return!1;for(var f in u)if(u[f]!==c[f])return!1;return!0}var h=function(u){a(c,u);function c(){return u!==null&&u.apply(this,arguments)||this}return c.formats=function(f){if(f.tagName!==c.tagName)return u.formats.call(this,f)},c.prototype.format=function(f,d){var p=this;f===this.statics.blotName&&!d?(this.children.forEach(function(g){g instanceof o.default||(g=g.wrap(c.blotName,!0)),p.attributes.copy(g)}),this.unwrap()):u.prototype.format.call(this,f,d)},c.prototype.formatAt=function(f,d,p,g){if(this.formats()[p]!=null||s.query(p,s.Scope.ATTRIBUTE)){var m=this.isolate(f,d);m.format(p,g)}else u.prototype.formatAt.call(this,f,d,p,g)},c.prototype.optimize=function(f){u.prototype.optimize.call(this,f);var d=this.formats();if(Object.keys(d).length===0)return this.unwrap();var p=this.next;p instanceof c&&p.prev===this&&l(d,p.formats())&&(p.moveChildren(this),p.remove())},c.blotName="inline",c.scope=s.Scope.INLINE_BLOT,c.tagName="SPAN",c}(o.default);n.default=h},function(t,n,r){var a=this&&this.__extends||function(){var h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,c){u.__proto__=c}||function(u,c){for(var f in c)c.hasOwnProperty(f)&&(u[f]=c[f])};return function(u,c){h(u,c);function f(){this.constructor=u}u.prototype=c===null?Object.create(c):(f.prototype=c.prototype,new f)}}();Object.defineProperty(n,"__esModule",{value:!0});var o=r(18),s=r(1),l=function(h){a(u,h);function u(){return h!==null&&h.apply(this,arguments)||this}return u.formats=function(c){var f=s.query(u.blotName).tagName;if(c.tagName!==f)return h.formats.call(this,c)},u.prototype.format=function(c,f){s.query(c,s.Scope.BLOCK)!=null&&(c===this.statics.blotName&&!f?this.replaceWith(u.blotName):h.prototype.format.call(this,c,f))},u.prototype.formatAt=function(c,f,d,p){s.query(d,s.Scope.BLOCK)!=null?this.format(d,p):h.prototype.formatAt.call(this,c,f,d,p)},u.prototype.insertAt=function(c,f,d){if(d==null||s.query(f,s.Scope.INLINE)!=null)h.prototype.insertAt.call(this,c,f,d);else{var p=this.split(c),g=s.create(f,d);p.parent.insertBefore(g,p)}},u.prototype.update=function(c,f){navigator.userAgent.match(/Trident/)?this.build():h.prototype.update.call(this,c,f)},u.blotName="block",u.scope=s.Scope.BLOCK_BLOT,u.tagName="P",u}(o.default);n.default=l},function(t,n,r){var a=this&&this.__extends||function(){var l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,u){h.__proto__=u}||function(h,u){for(var c in u)u.hasOwnProperty(c)&&(h[c]=u[c])};return function(h,u){l(h,u);function c(){this.constructor=h}h.prototype=u===null?Object.create(u):(c.prototype=u.prototype,new c)}}();Object.defineProperty(n,"__esModule",{value:!0});var o=r(19),s=function(l){a(h,l);function h(){return l!==null&&l.apply(this,arguments)||this}return h.formats=function(u){},h.prototype.format=function(u,c){l.prototype.formatAt.call(this,0,this.length(),u,c)},h.prototype.formatAt=function(u,c,f,d){u===0&&c===this.length()?this.format(f,d):l.prototype.formatAt.call(this,u,c,f,d)},h.prototype.formats=function(){return this.statics.formats(this.domNode)},h}(o.default);n.default=s},function(t,n,r){var a=this&&this.__extends||function(){var h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,c){u.__proto__=c}||function(u,c){for(var f in c)c.hasOwnProperty(f)&&(u[f]=c[f])};return function(u,c){h(u,c);function f(){this.constructor=u}u.prototype=c===null?Object.create(c):(f.prototype=c.prototype,new f)}}();Object.defineProperty(n,"__esModule",{value:!0});var o=r(19),s=r(1),l=function(h){a(u,h);function u(c){var f=h.call(this,c)||this;return f.text=f.statics.value(f.domNode),f}return u.create=function(c){return document.createTextNode(c)},u.value=function(c){var f=c.data;return f.normalize&&(f=f.normalize()),f},u.prototype.deleteAt=function(c,f){this.domNode.data=this.text=this.text.slice(0,c)+this.text.slice(c+f)},u.prototype.index=function(c,f){return this.domNode===c?f:-1},u.prototype.insertAt=function(c,f,d){d==null?(this.text=this.text.slice(0,c)+f+this.text.slice(c),this.domNode.data=this.text):h.prototype.insertAt.call(this,c,f,d)},u.prototype.length=function(){return this.text.length},u.prototype.optimize=function(c){h.prototype.optimize.call(this,c),this.text=this.statics.value(this.domNode),this.text.length===0?this.remove():this.next instanceof u&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())},u.prototype.position=function(c,f){return[this.domNode,c]},u.prototype.split=function(c,f){if(f===void 0&&(f=!1),!f){if(c===0)return this;if(c===this.length())return this.next}var d=s.create(this.domNode.splitText(c));return this.parent.insertBefore(d,this.next),this.text=this.statics.value(this.domNode),d},u.prototype.update=function(c,f){var d=this;c.some(function(p){return p.type==="characterData"&&p.target===d.domNode})&&(this.text=this.statics.value(this.domNode))},u.prototype.value=function(){return this.text},u.blotName="text",u.scope=s.Scope.INLINE_BLOT,u}(o.default);n.default=l},function(t,n,r){var a=document.createElement("div");if(a.classList.toggle("test-class",!1),a.classList.contains("test-class")){var o=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(s,l){return arguments.length>1&&!this.contains(s)==!l?l:o.call(this,s)}}String.prototype.startsWith||(String.prototype.startsWith=function(s,l){return l=l||0,this.substr(l,s.length)===s}),String.prototype.endsWith||(String.prototype.endsWith=function(s,l){var h=this.toString();(typeof l!="number"||!isFinite(l)||Math.floor(l)!==l||l>h.length)&&(l=h.length),l-=s.length;var u=h.indexOf(s,l);return u!==-1&&u===l}),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(l){if(this===null)throw new TypeError("Array.prototype.find called on null or undefined");if(typeof l!="function")throw new TypeError("predicate must be a function");for(var h=Object(this),u=h.length>>>0,c=arguments[1],f,d=0;d<u;d++)if(f=h[d],l.call(c,f,d,h))return f}}),document.addEventListener("DOMContentLoaded",function(){document.execCommand("enableObjectResizing",!1,!1),document.execCommand("autoUrlDetect",!1,!1)})},function(t,n){var r=-1,a=1,o=0;function s(x,w,k){if(x==w)return x?[[o,x]]:[];(k<0||x.length<k)&&(k=null);var S=c(x,w),A=x.substring(0,S);x=x.substring(S),w=w.substring(S),S=f(x,w);var O=x.substring(x.length-S);x=x.substring(0,x.length-S),w=w.substring(0,w.length-S);var _=l(x,w);return A&&_.unshift([o,A]),O&&_.push([o,O]),p(_),k!=null&&(_=v(_,k)),_=y(_),_}function l(x,w){var k;if(!x)return[[a,w]];if(!w)return[[r,x]];var S=x.length>w.length?x:w,A=x.length>w.length?w:x,O=S.indexOf(A);if(O!=-1)return k=[[a,S.substring(0,O)],[o,A],[a,S.substring(O+A.length)]],x.length>w.length&&(k[0][0]=k[2][0]=r),k;if(A.length==1)return[[r,x],[a,w]];var _=d(x,w);if(_){var C=_[0],M=_[1],P=_[2],E=_[3],R=_[4],T=s(C,P),F=s(M,E);return T.concat([[o,R]],F)}return h(x,w)}function h(x,w){for(var k=x.length,S=w.length,A=Math.ceil((k+S)/2),O=A,_=2*A,C=new Array(_),M=new Array(_),P=0;P<_;P++)C[P]=-1,M[P]=-1;C[O+1]=0,M[O+1]=0;for(var E=k-S,R=E%2!=0,T=0,F=0,B=0,D=0,N=0;N<A;N++){for(var L=-N+T;L<=N-F;L+=2){var I=O+L,H;L==-N||L!=N&&C[I-1]<C[I+1]?H=C[I+1]:H=C[I-1]+1;for(var Y=H-L;H<k&&Y<S&&x.charAt(H)==w.charAt(Y);)H++,Y++;if(C[I]=H,H>k)F+=2;else if(Y>S)T+=2;else if(R){var W=O+E-L;if(W>=0&&W<_&&M[W]!=-1){var z=k-M[W];if(H>=z)return u(x,w,H,Y)}}}for(var X=-N+B;X<=N-D;X+=2){var W=O+X,z;X==-N||X!=N&&M[W-1]<M[W+1]?z=M[W+1]:z=M[W-1]+1;for(var G=z-X;z<k&&G<S&&x.charAt(k-z-1)==w.charAt(S-G-1);)z++,G++;if(M[W]=z,z>k)D+=2;else if(G>S)B+=2;else if(!R){var I=O+E-X;if(I>=0&&I<_&&C[I]!=-1){var H=C[I],Y=O+H-I;if(z=k-z,H>=z)return u(x,w,H,Y)}}}}return[[r,x],[a,w]]}function u(x,w,k,S){var A=x.substring(0,k),O=w.substring(0,S),_=x.substring(k),C=w.substring(S),M=s(A,O),P=s(_,C);return M.concat(P)}function c(x,w){if(!x||!w||x.charAt(0)!=w.charAt(0))return 0;for(var k=0,S=Math.min(x.length,w.length),A=S,O=0;k<A;)x.substring(O,A)==w.substring(O,A)?(k=A,O=k):S=A,A=Math.floor((S-k)/2+k);return A}function f(x,w){if(!x||!w||x.charAt(x.length-1)!=w.charAt(w.length-1))return 0;for(var k=0,S=Math.min(x.length,w.length),A=S,O=0;k<A;)x.substring(x.length-A,x.length-O)==w.substring(w.length-A,w.length-O)?(k=A,O=k):S=A,A=Math.floor((S-k)/2+k);return A}function d(x,w){var k=x.length>w.length?x:w,S=x.length>w.length?w:x;if(k.length<4||S.length*2<k.length)return null;function A(F,B,D){for(var N=F.substring(D,D+Math.floor(F.length/4)),L=-1,I="",H,Y,W,z;(L=B.indexOf(N,L+1))!=-1;){var X=c(F.substring(D),B.substring(L)),G=f(F.substring(0,D),B.substring(0,L));I.length<G+X&&(I=B.substring(L-G,L)+B.substring(L,L+X),H=F.substring(0,D-G),Y=F.substring(D+X),W=B.substring(0,L-G),z=B.substring(L+X))}return I.length*2>=F.length?[H,Y,W,z,I]:null}var O=A(k,S,Math.ceil(k.length/4)),_=A(k,S,Math.ceil(k.length/2)),C;if(!O&&!_)return null;_?O?C=O[4].length>_[4].length?O:_:C=_:C=O;var M,P,E,R;x.length>w.length?(M=C[0],P=C[1],E=C[2],R=C[3]):(E=C[0],R=C[1],M=C[2],P=C[3]);var T=C[4];return[M,P,E,R,T]}function p(x){x.push([o,""]);for(var w=0,k=0,S=0,A="",O="",_;w<x.length;)switch(x[w][0]){case a:S++,O+=x[w][1],w++;break;case r:k++,A+=x[w][1],w++;break;case o:k+S>1?(k!==0&&S!==0&&(_=c(O,A),_!==0&&(w-k-S>0&&x[w-k-S-1][0]==o?x[w-k-S-1][1]+=O.substring(0,_):(x.splice(0,0,[o,O.substring(0,_)]),w++),O=O.substring(_),A=A.substring(_)),_=f(O,A),_!==0&&(x[w][1]=O.substring(O.length-_)+x[w][1],O=O.substring(0,O.length-_),A=A.substring(0,A.length-_))),k===0?x.splice(w-S,k+S,[a,O]):S===0?x.splice(w-k,k+S,[r,A]):x.splice(w-k-S,k+S,[r,A],[a,O]),w=w-k-S+(k?1:0)+(S?1:0)+1):w!==0&&x[w-1][0]==o?(x[w-1][1]+=x[w][1],x.splice(w,1)):w++,S=0,k=0,A="",O="";break}x[x.length-1][1]===""&&x.pop();var C=!1;for(w=1;w<x.length-1;)x[w-1][0]==o&&x[w+1][0]==o&&(x[w][1].substring(x[w][1].length-x[w-1][1].length)==x[w-1][1]?(x[w][1]=x[w-1][1]+x[w][1].substring(0,x[w][1].length-x[w-1][1].length),x[w+1][1]=x[w-1][1]+x[w+1][1],x.splice(w-1,1),C=!0):x[w][1].substring(0,x[w+1][1].length)==x[w+1][1]&&(x[w-1][1]+=x[w+1][1],x[w][1]=x[w][1].substring(x[w+1][1].length)+x[w+1][1],x.splice(w+1,1),C=!0)),w++;C&&p(x)}var g=s;g.INSERT=a,g.DELETE=r,g.EQUAL=o,t.exports=g;function m(x,w){if(w===0)return[o,x];for(var k=0,S=0;S<x.length;S++){var A=x[S];if(A[0]===r||A[0]===o){var O=k+A[1].length;if(w===O)return[S+1,x];if(w<O){x=x.slice();var _=w-k,C=[A[0],A[1].slice(0,_)],M=[A[0],A[1].slice(_)];return x.splice(S,1,C,M),[S+1,x]}else k=O}}throw new Error("cursor_pos is out of bounds!")}function v(x,w){var k=m(x,w),S=k[1],A=k[0],O=S[A],_=S[A+1];if(O==null)return x;if(O[0]!==o)return x;if(_!=null&&O[1]+_[1]===_[1]+O[1])return S.splice(A,2,_,O),b(S,A,2);if(_!=null&&_[1].indexOf(O[1])===0){S.splice(A,2,[_[0],O[1]],[0,O[1]]);var C=_[1].slice(O[1].length);return C.length>0&&S.splice(A+2,0,[_[0],C]),b(S,A,3)}else return x}function y(x){for(var w=!1,k=function(_){return _.charCodeAt(0)>=56320&&_.charCodeAt(0)<=57343},S=function(_){return _.charCodeAt(_.length-1)>=55296&&_.charCodeAt(_.length-1)<=56319},A=2;A<x.length;A+=1)x[A-2][0]===o&&S(x[A-2][1])&&x[A-1][0]===r&&k(x[A-1][1])&&x[A][0]===a&&k(x[A][1])&&(w=!0,x[A-1][1]=x[A-2][1].slice(-1)+x[A-1][1],x[A][1]=x[A-2][1].slice(-1)+x[A][1],x[A-2][1]=x[A-2][1].slice(0,-1));if(!w)return x;for(var O=[],A=0;A<x.length;A+=1)x[A][1].length>0&&O.push(x[A]);return O}function b(x,w,k){for(var S=w+k-1;S>=0&&S>=w-1;S--)if(S+1<x.length){var A=x[S],O=x[S+1];A[0]===O[1]&&x.splice(S,2,[A[0],A[1]+O[1]])}return x}},function(t,n){n=t.exports=typeof Object.keys=="function"?Object.keys:r,n.shim=r;function r(a){var o=[];for(var s in a)o.push(s);return o}},function(t,n){var r=function(){return Object.prototype.toString.call(arguments)}()=="[object Arguments]";n=t.exports=r?a:o,n.supported=a;function a(s){return Object.prototype.toString.call(s)=="[object Arguments]"}n.unsupported=o;function o(s){return s&&typeof s=="object"&&typeof s.length=="number"&&Object.prototype.hasOwnProperty.call(s,"callee")&&!Object.prototype.propertyIsEnumerable.call(s,"callee")||!1}},function(t,n){var r=Object.prototype.hasOwnProperty,a="~";function o(){}Object.create&&(o.prototype=Object.create(null),new o().__proto__||(a=!1));function s(h,u,c){this.fn=h,this.context=u,this.once=c||!1}function l(){this._events=new o,this._eventsCount=0}l.prototype.eventNames=function(){var u=[],c,f;if(this._eventsCount===0)return u;for(f in c=this._events)r.call(c,f)&&u.push(a?f.slice(1):f);return Object.getOwnPropertySymbols?u.concat(Object.getOwnPropertySymbols(c)):u},l.prototype.listeners=function(u,c){var f=a?a+u:u,d=this._events[f];if(c)return!!d;if(!d)return[];if(d.fn)return[d.fn];for(var p=0,g=d.length,m=new Array(g);p<g;p++)m[p]=d[p].fn;return m},l.prototype.emit=function(u,c,f,d,p,g){var m=a?a+u:u;if(!this._events[m])return!1;var v=this._events[m],y=arguments.length,b,x;if(v.fn){switch(v.once&&this.removeListener(u,v.fn,void 0,!0),y){case 1:return v.fn.call(v.context),!0;case 2:return v.fn.call(v.context,c),!0;case 3:return v.fn.call(v.context,c,f),!0;case 4:return v.fn.call(v.context,c,f,d),!0;case 5:return v.fn.call(v.context,c,f,d,p),!0;case 6:return v.fn.call(v.context,c,f,d,p,g),!0}for(x=1,b=new Array(y-1);x<y;x++)b[x-1]=arguments[x];v.fn.apply(v.context,b)}else{var w=v.length,k;for(x=0;x<w;x++)switch(v[x].once&&this.removeListener(u,v[x].fn,void 0,!0),y){case 1:v[x].fn.call(v[x].context);break;case 2:v[x].fn.call(v[x].context,c);break;case 3:v[x].fn.call(v[x].context,c,f);break;case 4:v[x].fn.call(v[x].context,c,f,d);break;default:if(!b)for(k=1,b=new Array(y-1);k<y;k++)b[k-1]=arguments[k];v[x].fn.apply(v[x].context,b)}}return!0},l.prototype.on=function(u,c,f){var d=new s(c,f||this),p=a?a+u:u;return this._events[p]?this._events[p].fn?this._events[p]=[this._events[p],d]:this._events[p].push(d):(this._events[p]=d,this._eventsCount++),this},l.prototype.once=function(u,c,f){var d=new s(c,f||this,!0),p=a?a+u:u;return this._events[p]?this._events[p].fn?this._events[p]=[this._events[p],d]:this._events[p].push(d):(this._events[p]=d,this._eventsCount++),this},l.prototype.removeListener=function(u,c,f,d){var p=a?a+u:u;if(!this._events[p])return this;if(!c)return--this._eventsCount===0?this._events=new o:delete this._events[p],this;var g=this._events[p];if(g.fn)g.fn===c&&(!d||g.once)&&(!f||g.context===f)&&(--this._eventsCount===0?this._events=new o:delete this._events[p]);else{for(var m=0,v=[],y=g.length;m<y;m++)(g[m].fn!==c||d&&!g[m].once||f&&g[m].context!==f)&&v.push(g[m]);v.length?this._events[p]=v.length===1?v[0]:v:--this._eventsCount===0?this._events=new o:delete this._events[p]}return this},l.prototype.removeAllListeners=function(u){var c;return u?(c=a?a+u:u,this._events[c]&&(--this._eventsCount===0?this._events=new o:delete this._events[c])):(this._events=new o,this._eventsCount=0),this},l.prototype.off=l.prototype.removeListener,l.prototype.addListener=l.prototype.on,l.prototype.setMaxListeners=function(){return this},l.prefixed=a,l.EventEmitter=l,typeof t<"u"&&(t.exports=l)},function(t,n,r){Object.defineProperty(n,"__esModule",{value:!0}),n.matchText=n.matchSpacing=n.matchNewline=n.matchBlot=n.matchAttributor=n.default=void 0;var a=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(U){return typeof U}:function(U){return U&&typeof Symbol=="function"&&U.constructor===Symbol&&U!==Symbol.prototype?"symbol":typeof U},o=function(){function U(Z,ie){var te=[],J=!0,Ae=!1,Se=void 0;try{for(var Ce=Z[Symbol.iterator](),it;!(J=(it=Ce.next()).done)&&(te.push(it.value),!(ie&&te.length===ie));J=!0);}catch(dt){Ae=!0,Se=dt}finally{try{!J&&Ce.return&&Ce.return()}finally{if(Ae)throw Se}}return te}return function(Z,ie){if(Array.isArray(Z))return Z;if(Symbol.iterator in Object(Z))return U(Z,ie);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),s=function(){function U(Z,ie){for(var te=0;te<ie.length;te++){var J=ie[te];J.enumerable=J.enumerable||!1,J.configurable=!0,"value"in J&&(J.writable=!0),Object.defineProperty(Z,J.key,J)}}return function(Z,ie,te){return ie&&U(Z.prototype,ie),te&&U(Z,te),Z}}(),l=r(3),h=M(l),u=r(2),c=M(u),f=r(0),d=M(f),p=r(5),g=M(p),m=r(10),v=M(m),y=r(9),b=M(y),x=r(36),w=r(37),k=r(13),S=M(k),A=r(26),O=r(38),_=r(39),C=r(40);function M(U){return U&&U.__esModule?U:{default:U}}function P(U,Z,ie){return Z in U?Object.defineProperty(U,Z,{value:ie,enumerable:!0,configurable:!0,writable:!0}):U[Z]=ie,U}function E(U,Z){if(!(U instanceof Z))throw new TypeError("Cannot call a class as a function")}function R(U,Z){if(!U)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Z&&(typeof Z=="object"||typeof Z=="function")?Z:U}function T(U,Z){if(typeof Z!="function"&&Z!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof Z);U.prototype=Object.create(Z&&Z.prototype,{constructor:{value:U,enumerable:!1,writable:!0,configurable:!0}}),Z&&(Object.setPrototypeOf?Object.setPrototypeOf(U,Z):U.__proto__=Z)}var F=(0,v.default)("quill:clipboard"),B="__ql-matcher",D=[[Node.TEXT_NODE,Pe],[Node.TEXT_NODE,ve],["br",ee],[Node.ELEMENT_NODE,ve],[Node.ELEMENT_NODE,$],[Node.ELEMENT_NODE,Ee],[Node.ELEMENT_NODE,V],[Node.ELEMENT_NODE,tt],["li",le],["b",G.bind(G,"bold")],["i",G.bind(G,"italic")],["style",ce]],N=[x.AlignAttribute,O.DirectionAttribute].reduce(function(U,Z){return U[Z.keyName]=Z,U},{}),L=[x.AlignStyle,w.BackgroundStyle,A.ColorStyle,O.DirectionStyle,_.FontStyle,C.SizeStyle].reduce(function(U,Z){return U[Z.keyName]=Z,U},{}),I=function(U){T(Z,U);function Z(ie,te){E(this,Z);var J=R(this,(Z.__proto__||Object.getPrototypeOf(Z)).call(this,ie,te));return J.quill.root.addEventListener("paste",J.onPaste.bind(J)),J.container=J.quill.addContainer("ql-clipboard"),J.container.setAttribute("contenteditable",!0),J.container.setAttribute("tabindex",-1),J.matchers=[],D.concat(J.options.matchers).forEach(function(Ae){var Se=o(Ae,2),Ce=Se[0],it=Se[1];!te.matchVisual&&it===Ee||J.addMatcher(Ce,it)}),J}return s(Z,[{key:"addMatcher",value:function(te,J){this.matchers.push([te,J])}},{key:"convert",value:function(te){if(typeof te=="string")return this.container.innerHTML=te.replace(/\>\r?\n +\</g,"><"),this.convert();var J=this.quill.getFormat(this.quill.selection.savedRange.index);if(J[S.default.blotName]){var Ae=this.container.innerText;return this.container.innerHTML="",new c.default().insert(Ae,P({},S.default.blotName,J[S.default.blotName]))}var Se=this.prepareMatching(),Ce=o(Se,2),it=Ce[0],dt=Ce[1],Ne=X(this.container,it,dt);return W(Ne,`
1000
+ `)&&Ne.ops[Ne.ops.length-1].attributes==null&&(Ne=Ne.compose(new c.default().retain(Ne.length()-1).delete(1))),F.log("convert",this.container.innerHTML,Ne),this.container.innerHTML="",Ne}},{key:"dangerouslyPasteHTML",value:function(te,J){var Ae=arguments.length>2&&arguments[2]!==void 0?arguments[2]:g.default.sources.API;if(typeof te=="string")this.quill.setContents(this.convert(te),J),this.quill.setSelection(0,g.default.sources.SILENT);else{var Se=this.convert(J);this.quill.updateContents(new c.default().retain(te).concat(Se),Ae),this.quill.setSelection(te+Se.length(),g.default.sources.SILENT)}}},{key:"onPaste",value:function(te){var J=this;if(!(te.defaultPrevented||!this.quill.isEnabled())){var Ae=this.quill.getSelection(),Se=new c.default().retain(Ae.index),Ce=this.quill.scrollingContainer.scrollTop;this.container.focus(),this.quill.selection.update(g.default.sources.SILENT),setTimeout(function(){Se=Se.concat(J.convert()).delete(Ae.length),J.quill.updateContents(Se,g.default.sources.USER),J.quill.setSelection(Se.length()-Ae.length,g.default.sources.SILENT),J.quill.scrollingContainer.scrollTop=Ce,J.quill.focus()},1)}}},{key:"prepareMatching",value:function(){var te=this,J=[],Ae=[];return this.matchers.forEach(function(Se){var Ce=o(Se,2),it=Ce[0],dt=Ce[1];switch(it){case Node.TEXT_NODE:Ae.push(dt);break;case Node.ELEMENT_NODE:J.push(dt);break;default:[].forEach.call(te.container.querySelectorAll(it),function(Ne){Ne[B]=Ne[B]||[],Ne[B].push(dt)});break}}),[J,Ae]}}]),Z}(b.default);I.DEFAULTS={matchers:[],matchVisual:!0};function H(U,Z,ie){return(typeof Z>"u"?"undefined":a(Z))==="object"?Object.keys(Z).reduce(function(te,J){return H(te,J,Z[J])},U):U.reduce(function(te,J){return J.attributes&&J.attributes[Z]?te.push(J):te.insert(J.insert,(0,h.default)({},P({},Z,ie),J.attributes))},new c.default)}function Y(U){if(U.nodeType!==Node.ELEMENT_NODE)return{};var Z="__ql-computed-style";return U[Z]||(U[Z]=window.getComputedStyle(U))}function W(U,Z){for(var ie="",te=U.ops.length-1;te>=0&&ie.length<Z.length;--te){var J=U.ops[te];if(typeof J.insert!="string")break;ie=J.insert+ie}return ie.slice(-1*Z.length)===Z}function z(U){if(U.childNodes.length===0)return!1;var Z=Y(U);return["block","list-item"].indexOf(Z.display)>-1}function X(U,Z,ie){return U.nodeType===U.TEXT_NODE?ie.reduce(function(te,J){return J(U,te)},new c.default):U.nodeType===U.ELEMENT_NODE?[].reduce.call(U.childNodes||[],function(te,J){var Ae=X(J,Z,ie);return J.nodeType===U.ELEMENT_NODE&&(Ae=Z.reduce(function(Se,Ce){return Ce(J,Se)},Ae),Ae=(J[B]||[]).reduce(function(Se,Ce){return Ce(J,Se)},Ae)),te.concat(Ae)},new c.default):new c.default}function G(U,Z,ie){return H(ie,U,!0)}function V(U,Z){var ie=d.default.Attributor.Attribute.keys(U),te=d.default.Attributor.Class.keys(U),J=d.default.Attributor.Style.keys(U),Ae={};return ie.concat(te).concat(J).forEach(function(Se){var Ce=d.default.query(Se,d.default.Scope.ATTRIBUTE);Ce!=null&&(Ae[Ce.attrName]=Ce.value(U),Ae[Ce.attrName])||(Ce=N[Se],Ce!=null&&(Ce.attrName===Se||Ce.keyName===Se)&&(Ae[Ce.attrName]=Ce.value(U)||void 0),Ce=L[Se],Ce!=null&&(Ce.attrName===Se||Ce.keyName===Se)&&(Ce=L[Se],Ae[Ce.attrName]=Ce.value(U)||void 0))}),Object.keys(Ae).length>0&&(Z=H(Z,Ae)),Z}function $(U,Z){var ie=d.default.query(U);if(ie==null)return Z;if(ie.prototype instanceof d.default.Embed){var te={},J=ie.value(U);J!=null&&(te[ie.blotName]=J,Z=new c.default().insert(te,ie.formats(U)))}else typeof ie.formats=="function"&&(Z=H(Z,ie.blotName,ie.formats(U)));return Z}function ee(U,Z){return W(Z,`
1001
+ `)||Z.insert(`
1002
+ `),Z}function ce(){return new c.default}function le(U,Z){var ie=d.default.query(U);if(ie==null||ie.blotName!=="list-item"||!W(Z,`
1003
+ `))return Z;for(var te=-1,J=U.parentNode;!J.classList.contains("ql-clipboard");)(d.default.query(J)||{}).blotName==="list"&&(te+=1),J=J.parentNode;return te<=0?Z:Z.compose(new c.default().retain(Z.length()-1).retain(1,{indent:te}))}function ve(U,Z){return W(Z,`
1004
+ `)||(z(U)||Z.length()>0&&U.nextSibling&&z(U.nextSibling))&&Z.insert(`
1005
+ `),Z}function Ee(U,Z){if(z(U)&&U.nextElementSibling!=null&&!W(Z,`
1006
+
1007
+ `)){var ie=U.offsetHeight+parseFloat(Y(U).marginTop)+parseFloat(Y(U).marginBottom);U.nextElementSibling.offsetTop>U.offsetTop+ie*1.5&&Z.insert(`
1008
+ `)}return Z}function tt(U,Z){var ie={},te=U.style||{};return te.fontStyle&&Y(U).fontStyle==="italic"&&(ie.italic=!0),te.fontWeight&&(Y(U).fontWeight.startsWith("bold")||parseInt(Y(U).fontWeight)>=700)&&(ie.bold=!0),Object.keys(ie).length>0&&(Z=H(Z,ie)),parseFloat(te.textIndent||0)>0&&(Z=new c.default().insert(" ").concat(Z)),Z}function Pe(U,Z){var ie=U.data;if(U.parentNode.tagName==="O:P")return Z.insert(ie.trim());if(ie.trim().length===0&&U.parentNode.classList.contains("ql-clipboard"))return Z;if(!Y(U.parentNode).whiteSpace.startsWith("pre")){var te=function(Ae,Se){return Se=Se.replace(/[^\u00a0]/g,""),Se.length<1&&Ae?" ":Se};ie=ie.replace(/\r\n/g," ").replace(/\n/g," "),ie=ie.replace(/\s\s+/g,te.bind(te,!0)),(U.previousSibling==null&&z(U.parentNode)||U.previousSibling!=null&&z(U.previousSibling))&&(ie=ie.replace(/^\s+/,te.bind(te,!1))),(U.nextSibling==null&&z(U.parentNode)||U.nextSibling!=null&&z(U.nextSibling))&&(ie=ie.replace(/\s+$/,te.bind(te,!1)))}return Z.insert(ie)}n.default=I,n.matchAttributor=V,n.matchBlot=$,n.matchNewline=ve,n.matchSpacing=Ee,n.matchText=Pe},function(t,n,r){Object.defineProperty(n,"__esModule",{value:!0});var a=function(){function p(g,m){for(var v=0;v<m.length;v++){var y=m[v];y.enumerable=y.enumerable||!1,y.configurable=!0,"value"in y&&(y.writable=!0),Object.defineProperty(g,y.key,y)}}return function(g,m,v){return m&&p(g.prototype,m),v&&p(g,v),g}}(),o=function p(g,m,v){g===null&&(g=Function.prototype);var y=Object.getOwnPropertyDescriptor(g,m);if(y===void 0){var b=Object.getPrototypeOf(g);return b===null?void 0:p(b,m,v)}else{if("value"in y)return y.value;var x=y.get;return x===void 0?void 0:x.call(v)}},s=r(6),l=h(s);function h(p){return p&&p.__esModule?p:{default:p}}function u(p,g){if(!(p instanceof g))throw new TypeError("Cannot call a class as a function")}function c(p,g){if(!p)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g&&(typeof g=="object"||typeof g=="function")?g:p}function f(p,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof g);p.prototype=Object.create(g&&g.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}}),g&&(Object.setPrototypeOf?Object.setPrototypeOf(p,g):p.__proto__=g)}var d=function(p){f(g,p);function g(){return u(this,g),c(this,(g.__proto__||Object.getPrototypeOf(g)).apply(this,arguments))}return a(g,[{key:"optimize",value:function(v){o(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"optimize",this).call(this,v),this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}],[{key:"create",value:function(){return o(g.__proto__||Object.getPrototypeOf(g),"create",this).call(this)}},{key:"formats",value:function(){return!0}}]),g}(l.default);d.blotName="bold",d.tagName=["STRONG","B"],n.default=d},function(t,n,r){Object.defineProperty(n,"__esModule",{value:!0}),n.addControls=n.default=void 0;var a=function(){function C(M,P){var E=[],R=!0,T=!1,F=void 0;try{for(var B=M[Symbol.iterator](),D;!(R=(D=B.next()).done)&&(E.push(D.value),!(P&&E.length===P));R=!0);}catch(N){T=!0,F=N}finally{try{!R&&B.return&&B.return()}finally{if(T)throw F}}return E}return function(M,P){if(Array.isArray(M))return M;if(Symbol.iterator in Object(M))return C(M,P);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),o=function(){function C(M,P){for(var E=0;E<P.length;E++){var R=P[E];R.enumerable=R.enumerable||!1,R.configurable=!0,"value"in R&&(R.writable=!0),Object.defineProperty(M,R.key,R)}}return function(M,P,E){return P&&C(M.prototype,P),E&&C(M,E),M}}(),s=r(2),l=v(s),h=r(0),u=v(h),c=r(5),f=v(c),d=r(10),p=v(d),g=r(9),m=v(g);function v(C){return C&&C.__esModule?C:{default:C}}function y(C,M,P){return M in C?Object.defineProperty(C,M,{value:P,enumerable:!0,configurable:!0,writable:!0}):C[M]=P,C}function b(C,M){if(!(C instanceof M))throw new TypeError("Cannot call a class as a function")}function x(C,M){if(!C)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return M&&(typeof M=="object"||typeof M=="function")?M:C}function w(C,M){if(typeof M!="function"&&M!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof M);C.prototype=Object.create(M&&M.prototype,{constructor:{value:C,enumerable:!1,writable:!0,configurable:!0}}),M&&(Object.setPrototypeOf?Object.setPrototypeOf(C,M):C.__proto__=M)}var k=(0,p.default)("quill:toolbar"),S=function(C){w(M,C);function M(P,E){b(this,M);var R=x(this,(M.__proto__||Object.getPrototypeOf(M)).call(this,P,E));if(Array.isArray(R.options.container)){var T=document.createElement("div");O(T,R.options.container),P.container.parentNode.insertBefore(T,P.container),R.container=T}else typeof R.options.container=="string"?R.container=document.querySelector(R.options.container):R.container=R.options.container;if(!(R.container instanceof HTMLElement)){var F;return F=k.error("Container required for toolbar",R.options),x(R,F)}return R.container.classList.add("ql-toolbar"),R.controls=[],R.handlers={},Object.keys(R.options.handlers).forEach(function(B){R.addHandler(B,R.options.handlers[B])}),[].forEach.call(R.container.querySelectorAll("button, select"),function(B){R.attach(B)}),R.quill.on(f.default.events.EDITOR_CHANGE,function(B,D){B===f.default.events.SELECTION_CHANGE&&R.update(D)}),R.quill.on(f.default.events.SCROLL_OPTIMIZE,function(){var B=R.quill.selection.getRange(),D=a(B,1),N=D[0];R.update(N)}),R}return o(M,[{key:"addHandler",value:function(E,R){this.handlers[E]=R}},{key:"attach",value:function(E){var R=this,T=[].find.call(E.classList,function(B){return B.indexOf("ql-")===0});if(T){if(T=T.slice(3),E.tagName==="BUTTON"&&E.setAttribute("type","button"),this.handlers[T]==null){if(this.quill.scroll.whitelist!=null&&this.quill.scroll.whitelist[T]==null){k.warn("ignoring attaching to disabled format",T,E);return}if(u.default.query(T)==null){k.warn("ignoring attaching to nonexistent format",T,E);return}}var F=E.tagName==="SELECT"?"change":"click";E.addEventListener(F,function(B){var D=void 0;if(E.tagName==="SELECT"){if(E.selectedIndex<0)return;var N=E.options[E.selectedIndex];N.hasAttribute("selected")?D=!1:D=N.value||!1}else E.classList.contains("ql-active")?D=!1:D=E.value||!E.hasAttribute("value"),B.preventDefault();R.quill.focus();var L=R.quill.selection.getRange(),I=a(L,1),H=I[0];if(R.handlers[T]!=null)R.handlers[T].call(R,D);else if(u.default.query(T).prototype instanceof u.default.Embed){if(D=prompt("Enter "+T),!D)return;R.quill.updateContents(new l.default().retain(H.index).delete(H.length).insert(y({},T,D)),f.default.sources.USER)}else R.quill.format(T,D,f.default.sources.USER);R.update(H)}),this.controls.push([T,E])}}},{key:"update",value:function(E){var R=E==null?{}:this.quill.getFormat(E);this.controls.forEach(function(T){var F=a(T,2),B=F[0],D=F[1];if(D.tagName==="SELECT"){var N=void 0;if(E==null)N=null;else if(R[B]==null)N=D.querySelector("option[selected]");else if(!Array.isArray(R[B])){var L=R[B];typeof L=="string"&&(L=L.replace(/\"/g,'\\"')),N=D.querySelector('option[value="'+L+'"]')}N==null?(D.value="",D.selectedIndex=-1):N.selected=!0}else if(E==null)D.classList.remove("ql-active");else if(D.hasAttribute("value")){var I=R[B]===D.getAttribute("value")||R[B]!=null&&R[B].toString()===D.getAttribute("value")||R[B]==null&&!D.getAttribute("value");D.classList.toggle("ql-active",I)}else D.classList.toggle("ql-active",R[B]!=null)})}}]),M}(m.default);S.DEFAULTS={};function A(C,M,P){var E=document.createElement("button");E.setAttribute("type","button"),E.classList.add("ql-"+M),P!=null&&(E.value=P),C.appendChild(E)}function O(C,M){Array.isArray(M[0])||(M=[M]),M.forEach(function(P){var E=document.createElement("span");E.classList.add("ql-formats"),P.forEach(function(R){if(typeof R=="string")A(E,R);else{var T=Object.keys(R)[0],F=R[T];Array.isArray(F)?_(E,T,F):A(E,T,F)}}),C.appendChild(E)})}function _(C,M,P){var E=document.createElement("select");E.classList.add("ql-"+M),P.forEach(function(R){var T=document.createElement("option");R!==!1?T.setAttribute("value",R):T.setAttribute("selected","selected"),E.appendChild(T)}),C.appendChild(E)}S.DEFAULTS={container:null,handlers:{clean:function(){var M=this,P=this.quill.getSelection();if(P!=null)if(P.length==0){var E=this.quill.getFormat();Object.keys(E).forEach(function(R){u.default.query(R,u.default.Scope.INLINE)!=null&&M.quill.format(R,!1)})}else this.quill.removeFormat(P,f.default.sources.USER)},direction:function(M){var P=this.quill.getFormat().align;M==="rtl"&&P==null?this.quill.format("align","right",f.default.sources.USER):!M&&P==="right"&&this.quill.format("align",!1,f.default.sources.USER),this.quill.format("direction",M,f.default.sources.USER)},indent:function(M){var P=this.quill.getSelection(),E=this.quill.getFormat(P),R=parseInt(E.indent||0);if(M==="+1"||M==="-1"){var T=M==="+1"?1:-1;E.direction==="rtl"&&(T*=-1),this.quill.format("indent",R+T,f.default.sources.USER)}},link:function(M){M===!0&&(M=prompt("Enter link URL:")),this.quill.format("link",M,f.default.sources.USER)},list:function(M){var P=this.quill.getSelection(),E=this.quill.getFormat(P);M==="check"?E.list==="checked"||E.list==="unchecked"?this.quill.format("list",!1,f.default.sources.USER):this.quill.format("list","unchecked",f.default.sources.USER):this.quill.format("list",M,f.default.sources.USER)}}},n.default=S,n.addControls=O},function(t,n){t.exports='<svg viewbox="0 0 18 18"> <polyline class="ql-even ql-stroke" points="5 7 3 9 5 11"></polyline> <polyline class="ql-even ql-stroke" points="13 7 15 9 13 11"></polyline> <line class=ql-stroke x1=10 x2=8 y1=5 y2=13></line> </svg>'},function(t,n,r){Object.defineProperty(n,"__esModule",{value:!0});var a=function(){function p(g,m){for(var v=0;v<m.length;v++){var y=m[v];y.enumerable=y.enumerable||!1,y.configurable=!0,"value"in y&&(y.writable=!0),Object.defineProperty(g,y.key,y)}}return function(g,m,v){return m&&p(g.prototype,m),v&&p(g,v),g}}(),o=function p(g,m,v){g===null&&(g=Function.prototype);var y=Object.getOwnPropertyDescriptor(g,m);if(y===void 0){var b=Object.getPrototypeOf(g);return b===null?void 0:p(b,m,v)}else{if("value"in y)return y.value;var x=y.get;return x===void 0?void 0:x.call(v)}},s=r(28),l=h(s);function h(p){return p&&p.__esModule?p:{default:p}}function u(p,g){if(!(p instanceof g))throw new TypeError("Cannot call a class as a function")}function c(p,g){if(!p)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g&&(typeof g=="object"||typeof g=="function")?g:p}function f(p,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof g);p.prototype=Object.create(g&&g.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}}),g&&(Object.setPrototypeOf?Object.setPrototypeOf(p,g):p.__proto__=g)}var d=function(p){f(g,p);function g(m,v){u(this,g);var y=c(this,(g.__proto__||Object.getPrototypeOf(g)).call(this,m));return y.label.innerHTML=v,y.container.classList.add("ql-color-picker"),[].slice.call(y.container.querySelectorAll(".ql-picker-item"),0,7).forEach(function(b){b.classList.add("ql-primary")}),y}return a(g,[{key:"buildItem",value:function(v){var y=o(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"buildItem",this).call(this,v);return y.style.backgroundColor=v.getAttribute("value")||"",y}},{key:"selectItem",value:function(v,y){o(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"selectItem",this).call(this,v,y);var b=this.label.querySelector(".ql-color-label"),x=v&&v.getAttribute("data-value")||"";b&&(b.tagName==="line"?b.style.stroke=x:b.style.fill=x)}}]),g}(l.default);n.default=d},function(t,n,r){Object.defineProperty(n,"__esModule",{value:!0});var a=function(){function p(g,m){for(var v=0;v<m.length;v++){var y=m[v];y.enumerable=y.enumerable||!1,y.configurable=!0,"value"in y&&(y.writable=!0),Object.defineProperty(g,y.key,y)}}return function(g,m,v){return m&&p(g.prototype,m),v&&p(g,v),g}}(),o=function p(g,m,v){g===null&&(g=Function.prototype);var y=Object.getOwnPropertyDescriptor(g,m);if(y===void 0){var b=Object.getPrototypeOf(g);return b===null?void 0:p(b,m,v)}else{if("value"in y)return y.value;var x=y.get;return x===void 0?void 0:x.call(v)}},s=r(28),l=h(s);function h(p){return p&&p.__esModule?p:{default:p}}function u(p,g){if(!(p instanceof g))throw new TypeError("Cannot call a class as a function")}function c(p,g){if(!p)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g&&(typeof g=="object"||typeof g=="function")?g:p}function f(p,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof g);p.prototype=Object.create(g&&g.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}}),g&&(Object.setPrototypeOf?Object.setPrototypeOf(p,g):p.__proto__=g)}var d=function(p){f(g,p);function g(m,v){u(this,g);var y=c(this,(g.__proto__||Object.getPrototypeOf(g)).call(this,m));return y.container.classList.add("ql-icon-picker"),[].forEach.call(y.container.querySelectorAll(".ql-picker-item"),function(b){b.innerHTML=v[b.getAttribute("data-value")||""]}),y.defaultItem=y.container.querySelector(".ql-selected"),y.selectItem(y.defaultItem),y}return a(g,[{key:"selectItem",value:function(v,y){o(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"selectItem",this).call(this,v,y),v=v||this.defaultItem,this.label.innerHTML=v.innerHTML}}]),g}(l.default);n.default=d},function(t,n,r){Object.defineProperty(n,"__esModule",{value:!0});var a=function(){function l(h,u){for(var c=0;c<u.length;c++){var f=u[c];f.enumerable=f.enumerable||!1,f.configurable=!0,"value"in f&&(f.writable=!0),Object.defineProperty(h,f.key,f)}}return function(h,u,c){return u&&l(h.prototype,u),c&&l(h,c),h}}();function o(l,h){if(!(l instanceof h))throw new TypeError("Cannot call a class as a function")}var s=function(){function l(h,u){var c=this;o(this,l),this.quill=h,this.boundsContainer=u||document.body,this.root=h.addContainer("ql-tooltip"),this.root.innerHTML=this.constructor.TEMPLATE,this.quill.root===this.quill.scrollingContainer&&this.quill.root.addEventListener("scroll",function(){c.root.style.marginTop=-1*c.quill.root.scrollTop+"px"}),this.hide()}return a(l,[{key:"hide",value:function(){this.root.classList.add("ql-hidden")}},{key:"position",value:function(u){var c=u.left+u.width/2-this.root.offsetWidth/2,f=u.bottom+this.quill.root.scrollTop;this.root.style.left=c+"px",this.root.style.top=f+"px",this.root.classList.remove("ql-flip");var d=this.boundsContainer.getBoundingClientRect(),p=this.root.getBoundingClientRect(),g=0;if(p.right>d.right&&(g=d.right-p.right,this.root.style.left=c+g+"px"),p.left<d.left&&(g=d.left-p.left,this.root.style.left=c+g+"px"),p.bottom>d.bottom){var m=p.bottom-p.top,v=u.bottom-u.top+m;this.root.style.top=f-v+"px",this.root.classList.add("ql-flip")}return g}},{key:"show",value:function(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}]),l}();n.default=s},function(t,n,r){Object.defineProperty(n,"__esModule",{value:!0});var a=function(){function _(C,M){var P=[],E=!0,R=!1,T=void 0;try{for(var F=C[Symbol.iterator](),B;!(E=(B=F.next()).done)&&(P.push(B.value),!(M&&P.length===M));E=!0);}catch(D){R=!0,T=D}finally{try{!E&&F.return&&F.return()}finally{if(R)throw T}}return P}return function(C,M){if(Array.isArray(C))return C;if(Symbol.iterator in Object(C))return _(C,M);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),o=function _(C,M,P){C===null&&(C=Function.prototype);var E=Object.getOwnPropertyDescriptor(C,M);if(E===void 0){var R=Object.getPrototypeOf(C);return R===null?void 0:_(R,M,P)}else{if("value"in E)return E.value;var T=E.get;return T===void 0?void 0:T.call(P)}},s=function(){function _(C,M){for(var P=0;P<M.length;P++){var E=M[P];E.enumerable=E.enumerable||!1,E.configurable=!0,"value"in E&&(E.writable=!0),Object.defineProperty(C,E.key,E)}}return function(C,M,P){return M&&_(C.prototype,M),P&&_(C,P),C}}(),l=r(3),h=b(l),u=r(8),c=b(u),f=r(43),d=b(f),p=r(27),g=b(p),m=r(15),v=r(41),y=b(v);function b(_){return _&&_.__esModule?_:{default:_}}function x(_,C){if(!(_ instanceof C))throw new TypeError("Cannot call a class as a function")}function w(_,C){if(!_)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return C&&(typeof C=="object"||typeof C=="function")?C:_}function k(_,C){if(typeof C!="function"&&C!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof C);_.prototype=Object.create(C&&C.prototype,{constructor:{value:_,enumerable:!1,writable:!0,configurable:!0}}),C&&(Object.setPrototypeOf?Object.setPrototypeOf(_,C):_.__proto__=C)}var S=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]],A=function(_){k(C,_);function C(M,P){x(this,C),P.modules.toolbar!=null&&P.modules.toolbar.container==null&&(P.modules.toolbar.container=S);var E=w(this,(C.__proto__||Object.getPrototypeOf(C)).call(this,M,P));return E.quill.container.classList.add("ql-snow"),E}return s(C,[{key:"extendToolbar",value:function(P){P.container.classList.add("ql-snow"),this.buildButtons([].slice.call(P.container.querySelectorAll("button")),y.default),this.buildPickers([].slice.call(P.container.querySelectorAll("select")),y.default),this.tooltip=new O(this.quill,this.options.bounds),P.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"K",shortKey:!0},function(E,R){P.handlers.link.call(P,!R.format.link)})}}]),C}(d.default);A.DEFAULTS=(0,h.default)(!0,{},d.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(C){if(C){var M=this.quill.getSelection();if(M==null||M.length==0)return;var P=this.quill.getText(M);/^\S+@\S+\.\S+$/.test(P)&&P.indexOf("mailto:")!==0&&(P="mailto:"+P);var E=this.quill.theme.tooltip;E.edit("link",P)}else this.quill.format("link",!1)}}}}});var O=function(_){k(C,_);function C(M,P){x(this,C);var E=w(this,(C.__proto__||Object.getPrototypeOf(C)).call(this,M,P));return E.preview=E.root.querySelector("a.ql-preview"),E}return s(C,[{key:"listen",value:function(){var P=this;o(C.prototype.__proto__||Object.getPrototypeOf(C.prototype),"listen",this).call(this),this.root.querySelector("a.ql-action").addEventListener("click",function(E){P.root.classList.contains("ql-editing")?P.save():P.edit("link",P.preview.textContent),E.preventDefault()}),this.root.querySelector("a.ql-remove").addEventListener("click",function(E){if(P.linkRange!=null){var R=P.linkRange;P.restoreFocus(),P.quill.formatText(R,"link",!1,c.default.sources.USER),delete P.linkRange}E.preventDefault(),P.hide()}),this.quill.on(c.default.events.SELECTION_CHANGE,function(E,R,T){if(E!=null){if(E.length===0&&T===c.default.sources.USER){var F=P.quill.scroll.descendant(g.default,E.index),B=a(F,2),D=B[0],N=B[1];if(D!=null){P.linkRange=new m.Range(E.index-N,D.length());var L=g.default.formats(D.domNode);P.preview.textContent=L,P.preview.setAttribute("href",L),P.show(),P.position(P.quill.getBounds(P.linkRange));return}}else delete P.linkRange;P.hide()}})}},{key:"show",value:function(){o(C.prototype.__proto__||Object.getPrototypeOf(C.prototype),"show",this).call(this),this.root.removeAttribute("data-mode")}}]),C}(f.BaseTooltip);O.TEMPLATE=['<a class="ql-preview" rel="noopener noreferrer" target="_blank" href="about:blank"></a>','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-action"></a>','<a class="ql-remove"></a>'].join(""),n.default=A},function(t,n,r){Object.defineProperty(n,"__esModule",{value:!0});var a=r(29),o=J(a),s=r(36),l=r(38),h=r(64),u=r(65),c=J(u),f=r(66),d=J(f),p=r(67),g=J(p),m=r(37),v=r(26),y=r(39),b=r(40),x=r(56),w=J(x),k=r(68),S=J(k),A=r(27),O=J(A),_=r(69),C=J(_),M=r(70),P=J(M),E=r(71),R=J(E),T=r(72),F=J(T),B=r(73),D=J(B),N=r(13),L=J(N),I=r(74),H=J(I),Y=r(75),W=J(Y),z=r(57),X=J(z),G=r(41),V=J(G),$=r(28),ee=J($),ce=r(59),le=J(ce),ve=r(60),Ee=J(ve),tt=r(61),Pe=J(tt),U=r(108),Z=J(U),ie=r(62),te=J(ie);function J(Ae){return Ae&&Ae.__esModule?Ae:{default:Ae}}o.default.register({"attributors/attribute/direction":l.DirectionAttribute,"attributors/class/align":s.AlignClass,"attributors/class/background":m.BackgroundClass,"attributors/class/color":v.ColorClass,"attributors/class/direction":l.DirectionClass,"attributors/class/font":y.FontClass,"attributors/class/size":b.SizeClass,"attributors/style/align":s.AlignStyle,"attributors/style/background":m.BackgroundStyle,"attributors/style/color":v.ColorStyle,"attributors/style/direction":l.DirectionStyle,"attributors/style/font":y.FontStyle,"attributors/style/size":b.SizeStyle},!0),o.default.register({"formats/align":s.AlignClass,"formats/direction":l.DirectionClass,"formats/indent":h.IndentClass,"formats/background":m.BackgroundStyle,"formats/color":v.ColorStyle,"formats/font":y.FontClass,"formats/size":b.SizeClass,"formats/blockquote":c.default,"formats/code-block":L.default,"formats/header":d.default,"formats/list":g.default,"formats/bold":w.default,"formats/code":N.Code,"formats/italic":S.default,"formats/link":O.default,"formats/script":C.default,"formats/strike":P.default,"formats/underline":R.default,"formats/image":F.default,"formats/video":D.default,"formats/list/item":p.ListItem,"modules/formula":H.default,"modules/syntax":W.default,"modules/toolbar":X.default,"themes/bubble":Z.default,"themes/snow":te.default,"ui/icons":V.default,"ui/picker":ee.default,"ui/icon-picker":Ee.default,"ui/color-picker":le.default,"ui/tooltip":Pe.default},!0),n.default=o.default},function(t,n,r){Object.defineProperty(n,"__esModule",{value:!0}),n.IndentClass=void 0;var a=function(){function g(m,v){for(var y=0;y<v.length;y++){var b=v[y];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(m,b.key,b)}}return function(m,v,y){return v&&g(m.prototype,v),y&&g(m,y),m}}(),o=function g(m,v,y){m===null&&(m=Function.prototype);var b=Object.getOwnPropertyDescriptor(m,v);if(b===void 0){var x=Object.getPrototypeOf(m);return x===null?void 0:g(x,v,y)}else{if("value"in b)return b.value;var w=b.get;return w===void 0?void 0:w.call(y)}},s=r(0),l=h(s);function h(g){return g&&g.__esModule?g:{default:g}}function u(g,m){if(!(g instanceof m))throw new TypeError("Cannot call a class as a function")}function c(g,m){if(!g)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m&&(typeof m=="object"||typeof m=="function")?m:g}function f(g,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof m);g.prototype=Object.create(m&&m.prototype,{constructor:{value:g,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(g,m):g.__proto__=m)}var d=function(g){f(m,g);function m(){return u(this,m),c(this,(m.__proto__||Object.getPrototypeOf(m)).apply(this,arguments))}return a(m,[{key:"add",value:function(y,b){if(b==="+1"||b==="-1"){var x=this.value(y)||0;b=b==="+1"?x+1:x-1}return b===0?(this.remove(y),!0):o(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"add",this).call(this,y,b)}},{key:"canAdd",value:function(y,b){return o(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"canAdd",this).call(this,y,b)||o(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"canAdd",this).call(this,y,parseInt(b))}},{key:"value",value:function(y){return parseInt(o(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"value",this).call(this,y))||void 0}}]),m}(l.default.Attributor.Class),p=new d("indent","ql-indent",{scope:l.default.Scope.BLOCK,whitelist:[1,2,3,4,5,6,7,8]});n.IndentClass=p},function(t,n,r){Object.defineProperty(n,"__esModule",{value:!0});var a=r(4),o=s(a);function s(f){return f&&f.__esModule?f:{default:f}}function l(f,d){if(!(f instanceof d))throw new TypeError("Cannot call a class as a function")}function h(f,d){if(!f)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return d&&(typeof d=="object"||typeof d=="function")?d:f}function u(f,d){if(typeof d!="function"&&d!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof d);f.prototype=Object.create(d&&d.prototype,{constructor:{value:f,enumerable:!1,writable:!0,configurable:!0}}),d&&(Object.setPrototypeOf?Object.setPrototypeOf(f,d):f.__proto__=d)}var c=function(f){u(d,f);function d(){return l(this,d),h(this,(d.__proto__||Object.getPrototypeOf(d)).apply(this,arguments))}return d}(o.default);c.blotName="blockquote",c.tagName="blockquote",n.default=c},function(t,n,r){Object.defineProperty(n,"__esModule",{value:!0});var a=function(){function d(p,g){for(var m=0;m<g.length;m++){var v=g[m];v.enumerable=v.enumerable||!1,v.configurable=!0,"value"in v&&(v.writable=!0),Object.defineProperty(p,v.key,v)}}return function(p,g,m){return g&&d(p.prototype,g),m&&d(p,m),p}}(),o=r(4),s=l(o);function l(d){return d&&d.__esModule?d:{default:d}}function h(d,p){if(!(d instanceof p))throw new TypeError("Cannot call a class as a function")}function u(d,p){if(!d)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return p&&(typeof p=="object"||typeof p=="function")?p:d}function c(d,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof p);d.prototype=Object.create(p&&p.prototype,{constructor:{value:d,enumerable:!1,writable:!0,configurable:!0}}),p&&(Object.setPrototypeOf?Object.setPrototypeOf(d,p):d.__proto__=p)}var f=function(d){c(p,d);function p(){return h(this,p),u(this,(p.__proto__||Object.getPrototypeOf(p)).apply(this,arguments))}return a(p,null,[{key:"formats",value:function(m){return this.tagName.indexOf(m.tagName)+1}}]),p}(s.default);f.blotName="header",f.tagName=["H1","H2","H3","H4","H5","H6"],n.default=f},function(t,n,r){Object.defineProperty(n,"__esModule",{value:!0}),n.default=n.ListItem=void 0;var a=function(){function x(w,k){for(var S=0;S<k.length;S++){var A=k[S];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(w,A.key,A)}}return function(w,k,S){return k&&x(w.prototype,k),S&&x(w,S),w}}(),o=function x(w,k,S){w===null&&(w=Function.prototype);var A=Object.getOwnPropertyDescriptor(w,k);if(A===void 0){var O=Object.getPrototypeOf(w);return O===null?void 0:x(O,k,S)}else{if("value"in A)return A.value;var _=A.get;return _===void 0?void 0:_.call(S)}},s=r(0),l=d(s),h=r(4),u=d(h),c=r(25),f=d(c);function d(x){return x&&x.__esModule?x:{default:x}}function p(x,w,k){return w in x?Object.defineProperty(x,w,{value:k,enumerable:!0,configurable:!0,writable:!0}):x[w]=k,x}function g(x,w){if(!(x instanceof w))throw new TypeError("Cannot call a class as a function")}function m(x,w){if(!x)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return w&&(typeof w=="object"||typeof w=="function")?w:x}function v(x,w){if(typeof w!="function"&&w!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof w);x.prototype=Object.create(w&&w.prototype,{constructor:{value:x,enumerable:!1,writable:!0,configurable:!0}}),w&&(Object.setPrototypeOf?Object.setPrototypeOf(x,w):x.__proto__=w)}var y=function(x){v(w,x);function w(){return g(this,w),m(this,(w.__proto__||Object.getPrototypeOf(w)).apply(this,arguments))}return a(w,[{key:"format",value:function(S,A){S===b.blotName&&!A?this.replaceWith(l.default.create(this.statics.scope)):o(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"format",this).call(this,S,A)}},{key:"remove",value:function(){this.prev==null&&this.next==null?this.parent.remove():o(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"remove",this).call(this)}},{key:"replaceWith",value:function(S,A){return this.parent.isolate(this.offset(this.parent),this.length()),S===this.parent.statics.blotName?(this.parent.replaceWith(S,A),this):(this.parent.unwrap(),o(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"replaceWith",this).call(this,S,A))}}],[{key:"formats",value:function(S){return S.tagName===this.tagName?void 0:o(w.__proto__||Object.getPrototypeOf(w),"formats",this).call(this,S)}}]),w}(u.default);y.blotName="list-item",y.tagName="LI";var b=function(x){v(w,x),a(w,null,[{key:"create",value:function(S){var A=S==="ordered"?"OL":"UL",O=o(w.__proto__||Object.getPrototypeOf(w),"create",this).call(this,A);return(S==="checked"||S==="unchecked")&&O.setAttribute("data-checked",S==="checked"),O}},{key:"formats",value:function(S){if(S.tagName==="OL")return"ordered";if(S.tagName==="UL")return S.hasAttribute("data-checked")?S.getAttribute("data-checked")==="true"?"checked":"unchecked":"bullet"}}]);function w(k){g(this,w);var S=m(this,(w.__proto__||Object.getPrototypeOf(w)).call(this,k)),A=function(_){if(_.target.parentNode===k){var C=S.statics.formats(k),M=l.default.find(_.target);C==="checked"?M.format("list","unchecked"):C==="unchecked"&&M.format("list","checked")}};return k.addEventListener("touchstart",A),k.addEventListener("mousedown",A),S}return a(w,[{key:"format",value:function(S,A){this.children.length>0&&this.children.tail.format(S,A)}},{key:"formats",value:function(){return p({},this.statics.blotName,this.statics.formats(this.domNode))}},{key:"insertBefore",value:function(S,A){if(S instanceof y)o(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"insertBefore",this).call(this,S,A);else{var O=A==null?this.length():A.offset(this),_=this.split(O);_.parent.insertBefore(S,_)}}},{key:"optimize",value:function(S){o(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"optimize",this).call(this,S);var A=this.next;A!=null&&A.prev===this&&A.statics.blotName===this.statics.blotName&&A.domNode.tagName===this.domNode.tagName&&A.domNode.getAttribute("data-checked")===this.domNode.getAttribute("data-checked")&&(A.moveChildren(this),A.remove())}},{key:"replace",value:function(S){if(S.statics.blotName!==this.statics.blotName){var A=l.default.create(this.statics.defaultChild);S.moveChildren(A),this.appendChild(A)}o(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"replace",this).call(this,S)}}]),w}(f.default);b.blotName="list",b.scope=l.default.Scope.BLOCK_BLOT,b.tagName=["OL","UL"],b.defaultChild="list-item",b.allowedChildren=[y],n.ListItem=y,n.default=b},function(t,n,r){Object.defineProperty(n,"__esModule",{value:!0});var a=r(56),o=s(a);function s(f){return f&&f.__esModule?f:{default:f}}function l(f,d){if(!(f instanceof d))throw new TypeError("Cannot call a class as a function")}function h(f,d){if(!f)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return d&&(typeof d=="object"||typeof d=="function")?d:f}function u(f,d){if(typeof d!="function"&&d!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof d);f.prototype=Object.create(d&&d.prototype,{constructor:{value:f,enumerable:!1,writable:!0,configurable:!0}}),d&&(Object.setPrototypeOf?Object.setPrototypeOf(f,d):f.__proto__=d)}var c=function(f){u(d,f);function d(){return l(this,d),h(this,(d.__proto__||Object.getPrototypeOf(d)).apply(this,arguments))}return d}(o.default);c.blotName="italic",c.tagName=["EM","I"],n.default=c},function(t,n,r){Object.defineProperty(n,"__esModule",{value:!0});var a=function(){function p(g,m){for(var v=0;v<m.length;v++){var y=m[v];y.enumerable=y.enumerable||!1,y.configurable=!0,"value"in y&&(y.writable=!0),Object.defineProperty(g,y.key,y)}}return function(g,m,v){return m&&p(g.prototype,m),v&&p(g,v),g}}(),o=function p(g,m,v){g===null&&(g=Function.prototype);var y=Object.getOwnPropertyDescriptor(g,m);if(y===void 0){var b=Object.getPrototypeOf(g);return b===null?void 0:p(b,m,v)}else{if("value"in y)return y.value;var x=y.get;return x===void 0?void 0:x.call(v)}},s=r(6),l=h(s);function h(p){return p&&p.__esModule?p:{default:p}}function u(p,g){if(!(p instanceof g))throw new TypeError("Cannot call a class as a function")}function c(p,g){if(!p)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g&&(typeof g=="object"||typeof g=="function")?g:p}function f(p,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof g);p.prototype=Object.create(g&&g.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}}),g&&(Object.setPrototypeOf?Object.setPrototypeOf(p,g):p.__proto__=g)}var d=function(p){f(g,p);function g(){return u(this,g),c(this,(g.__proto__||Object.getPrototypeOf(g)).apply(this,arguments))}return a(g,null,[{key:"create",value:function(v){return v==="super"?document.createElement("sup"):v==="sub"?document.createElement("sub"):o(g.__proto__||Object.getPrototypeOf(g),"create",this).call(this,v)}},{key:"formats",value:function(v){if(v.tagName==="SUB")return"sub";if(v.tagName==="SUP")return"super"}}]),g}(l.default);d.blotName="script",d.tagName=["SUB","SUP"],n.default=d},function(t,n,r){Object.defineProperty(n,"__esModule",{value:!0});var a=r(6),o=s(a);function s(f){return f&&f.__esModule?f:{default:f}}function l(f,d){if(!(f instanceof d))throw new TypeError("Cannot call a class as a function")}function h(f,d){if(!f)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return d&&(typeof d=="object"||typeof d=="function")?d:f}function u(f,d){if(typeof d!="function"&&d!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof d);f.prototype=Object.create(d&&d.prototype,{constructor:{value:f,enumerable:!1,writable:!0,configurable:!0}}),d&&(Object.setPrototypeOf?Object.setPrototypeOf(f,d):f.__proto__=d)}var c=function(f){u(d,f);function d(){return l(this,d),h(this,(d.__proto__||Object.getPrototypeOf(d)).apply(this,arguments))}return d}(o.default);c.blotName="strike",c.tagName="S",n.default=c},function(t,n,r){Object.defineProperty(n,"__esModule",{value:!0});var a=r(6),o=s(a);function s(f){return f&&f.__esModule?f:{default:f}}function l(f,d){if(!(f instanceof d))throw new TypeError("Cannot call a class as a function")}function h(f,d){if(!f)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return d&&(typeof d=="object"||typeof d=="function")?d:f}function u(f,d){if(typeof d!="function"&&d!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof d);f.prototype=Object.create(d&&d.prototype,{constructor:{value:f,enumerable:!1,writable:!0,configurable:!0}}),d&&(Object.setPrototypeOf?Object.setPrototypeOf(f,d):f.__proto__=d)}var c=function(f){u(d,f);function d(){return l(this,d),h(this,(d.__proto__||Object.getPrototypeOf(d)).apply(this,arguments))}return d}(o.default);c.blotName="underline",c.tagName="U",n.default=c},function(t,n,r){Object.defineProperty(n,"__esModule",{value:!0});var a=function(){function m(v,y){for(var b=0;b<y.length;b++){var x=y[b];x.enumerable=x.enumerable||!1,x.configurable=!0,"value"in x&&(x.writable=!0),Object.defineProperty(v,x.key,x)}}return function(v,y,b){return y&&m(v.prototype,y),b&&m(v,b),v}}(),o=function m(v,y,b){v===null&&(v=Function.prototype);var x=Object.getOwnPropertyDescriptor(v,y);if(x===void 0){var w=Object.getPrototypeOf(v);return w===null?void 0:m(w,y,b)}else{if("value"in x)return x.value;var k=x.get;return k===void 0?void 0:k.call(b)}},s=r(0),l=u(s),h=r(27);function u(m){return m&&m.__esModule?m:{default:m}}function c(m,v){if(!(m instanceof v))throw new TypeError("Cannot call a class as a function")}function f(m,v){if(!m)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return v&&(typeof v=="object"||typeof v=="function")?v:m}function d(m,v){if(typeof v!="function"&&v!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof v);m.prototype=Object.create(v&&v.prototype,{constructor:{value:m,enumerable:!1,writable:!0,configurable:!0}}),v&&(Object.setPrototypeOf?Object.setPrototypeOf(m,v):m.__proto__=v)}var p=["alt","height","width"],g=function(m){d(v,m);function v(){return c(this,v),f(this,(v.__proto__||Object.getPrototypeOf(v)).apply(this,arguments))}return a(v,[{key:"format",value:function(b,x){p.indexOf(b)>-1?x?this.domNode.setAttribute(b,x):this.domNode.removeAttribute(b):o(v.prototype.__proto__||Object.getPrototypeOf(v.prototype),"format",this).call(this,b,x)}}],[{key:"create",value:function(b){var x=o(v.__proto__||Object.getPrototypeOf(v),"create",this).call(this,b);return typeof b=="string"&&x.setAttribute("src",this.sanitize(b)),x}},{key:"formats",value:function(b){return p.reduce(function(x,w){return b.hasAttribute(w)&&(x[w]=b.getAttribute(w)),x},{})}},{key:"match",value:function(b){return/\.(jpe?g|gif|png)$/.test(b)||/^data:image\/.+;base64/.test(b)}},{key:"sanitize",value:function(b){return(0,h.sanitize)(b,["http","https","data"])?b:"//:0"}},{key:"value",value:function(b){return b.getAttribute("src")}}]),v}(l.default.Embed);g.blotName="image",g.tagName="IMG",n.default=g},function(t,n,r){Object.defineProperty(n,"__esModule",{value:!0});var a=function(){function m(v,y){for(var b=0;b<y.length;b++){var x=y[b];x.enumerable=x.enumerable||!1,x.configurable=!0,"value"in x&&(x.writable=!0),Object.defineProperty(v,x.key,x)}}return function(v,y,b){return y&&m(v.prototype,y),b&&m(v,b),v}}(),o=function m(v,y,b){v===null&&(v=Function.prototype);var x=Object.getOwnPropertyDescriptor(v,y);if(x===void 0){var w=Object.getPrototypeOf(v);return w===null?void 0:m(w,y,b)}else{if("value"in x)return x.value;var k=x.get;return k===void 0?void 0:k.call(b)}},s=r(4),l=r(27),h=u(l);function u(m){return m&&m.__esModule?m:{default:m}}function c(m,v){if(!(m instanceof v))throw new TypeError("Cannot call a class as a function")}function f(m,v){if(!m)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return v&&(typeof v=="object"||typeof v=="function")?v:m}function d(m,v){if(typeof v!="function"&&v!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof v);m.prototype=Object.create(v&&v.prototype,{constructor:{value:m,enumerable:!1,writable:!0,configurable:!0}}),v&&(Object.setPrototypeOf?Object.setPrototypeOf(m,v):m.__proto__=v)}var p=["height","width"],g=function(m){d(v,m);function v(){return c(this,v),f(this,(v.__proto__||Object.getPrototypeOf(v)).apply(this,arguments))}return a(v,[{key:"format",value:function(b,x){p.indexOf(b)>-1?x?this.domNode.setAttribute(b,x):this.domNode.removeAttribute(b):o(v.prototype.__proto__||Object.getPrototypeOf(v.prototype),"format",this).call(this,b,x)}}],[{key:"create",value:function(b){var x=o(v.__proto__||Object.getPrototypeOf(v),"create",this).call(this,b);return x.setAttribute("frameborder","0"),x.setAttribute("allowfullscreen",!0),x.setAttribute("src",this.sanitize(b)),x}},{key:"formats",value:function(b){return p.reduce(function(x,w){return b.hasAttribute(w)&&(x[w]=b.getAttribute(w)),x},{})}},{key:"sanitize",value:function(b){return h.default.sanitize(b)}},{key:"value",value:function(b){return b.getAttribute("src")}}]),v}(s.BlockEmbed);g.blotName="video",g.className="ql-video",g.tagName="IFRAME",n.default=g},function(t,n,r){Object.defineProperty(n,"__esModule",{value:!0}),n.default=n.FormulaBlot=void 0;var a=function(){function b(x,w){for(var k=0;k<w.length;k++){var S=w[k];S.enumerable=S.enumerable||!1,S.configurable=!0,"value"in S&&(S.writable=!0),Object.defineProperty(x,S.key,S)}}return function(x,w,k){return w&&b(x.prototype,w),k&&b(x,k),x}}(),o=function b(x,w,k){x===null&&(x=Function.prototype);var S=Object.getOwnPropertyDescriptor(x,w);if(S===void 0){var A=Object.getPrototypeOf(x);return A===null?void 0:b(A,w,k)}else{if("value"in S)return S.value;var O=S.get;return O===void 0?void 0:O.call(k)}},s=r(35),l=d(s),h=r(5),u=d(h),c=r(9),f=d(c);function d(b){return b&&b.__esModule?b:{default:b}}function p(b,x){if(!(b instanceof x))throw new TypeError("Cannot call a class as a function")}function g(b,x){if(!b)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return x&&(typeof x=="object"||typeof x=="function")?x:b}function m(b,x){if(typeof x!="function"&&x!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof x);b.prototype=Object.create(x&&x.prototype,{constructor:{value:b,enumerable:!1,writable:!0,configurable:!0}}),x&&(Object.setPrototypeOf?Object.setPrototypeOf(b,x):b.__proto__=x)}var v=function(b){m(x,b);function x(){return p(this,x),g(this,(x.__proto__||Object.getPrototypeOf(x)).apply(this,arguments))}return a(x,null,[{key:"create",value:function(k){var S=o(x.__proto__||Object.getPrototypeOf(x),"create",this).call(this,k);return typeof k=="string"&&(window.katex.render(k,S,{throwOnError:!1,errorColor:"#f00"}),S.setAttribute("data-value",k)),S}},{key:"value",value:function(k){return k.getAttribute("data-value")}}]),x}(l.default);v.blotName="formula",v.className="ql-formula",v.tagName="SPAN";var y=function(b){m(x,b),a(x,null,[{key:"register",value:function(){u.default.register(v,!0)}}]);function x(){p(this,x);var w=g(this,(x.__proto__||Object.getPrototypeOf(x)).call(this));if(window.katex==null)throw new Error("Formula module requires KaTeX.");return w}return x}(f.default);n.FormulaBlot=v,n.default=y},function(t,n,r){Object.defineProperty(n,"__esModule",{value:!0}),n.default=n.CodeToken=n.CodeBlock=void 0;var a=function(){function k(S,A){for(var O=0;O<A.length;O++){var _=A[O];_.enumerable=_.enumerable||!1,_.configurable=!0,"value"in _&&(_.writable=!0),Object.defineProperty(S,_.key,_)}}return function(S,A,O){return A&&k(S.prototype,A),O&&k(S,O),S}}(),o=function k(S,A,O){S===null&&(S=Function.prototype);var _=Object.getOwnPropertyDescriptor(S,A);if(_===void 0){var C=Object.getPrototypeOf(S);return C===null?void 0:k(C,A,O)}else{if("value"in _)return _.value;var M=_.get;return M===void 0?void 0:M.call(O)}},s=r(0),l=g(s),h=r(5),u=g(h),c=r(9),f=g(c),d=r(13),p=g(d);function g(k){return k&&k.__esModule?k:{default:k}}function m(k,S){if(!(k instanceof S))throw new TypeError("Cannot call a class as a function")}function v(k,S){if(!k)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return S&&(typeof S=="object"||typeof S=="function")?S:k}function y(k,S){if(typeof S!="function"&&S!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof S);k.prototype=Object.create(S&&S.prototype,{constructor:{value:k,enumerable:!1,writable:!0,configurable:!0}}),S&&(Object.setPrototypeOf?Object.setPrototypeOf(k,S):k.__proto__=S)}var b=function(k){y(S,k);function S(){return m(this,S),v(this,(S.__proto__||Object.getPrototypeOf(S)).apply(this,arguments))}return a(S,[{key:"replaceWith",value:function(O){this.domNode.textContent=this.domNode.textContent,this.attach(),o(S.prototype.__proto__||Object.getPrototypeOf(S.prototype),"replaceWith",this).call(this,O)}},{key:"highlight",value:function(O){var _=this.domNode.textContent;this.cachedText!==_&&((_.trim().length>0||this.cachedText==null)&&(this.domNode.innerHTML=O(_),this.domNode.normalize(),this.attach()),this.cachedText=_)}}]),S}(p.default);b.className="ql-syntax";var x=new l.default.Attributor.Class("token","hljs",{scope:l.default.Scope.INLINE}),w=function(k){y(S,k),a(S,null,[{key:"register",value:function(){u.default.register(x,!0),u.default.register(b,!0)}}]);function S(A,O){m(this,S);var _=v(this,(S.__proto__||Object.getPrototypeOf(S)).call(this,A,O));if(typeof _.options.highlight!="function")throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");var C=null;return _.quill.on(u.default.events.SCROLL_OPTIMIZE,function(){clearTimeout(C),C=setTimeout(function(){_.highlight(),C=null},_.options.interval)}),_.highlight(),_}return a(S,[{key:"highlight",value:function(){var O=this;if(!this.quill.selection.composing){this.quill.update(u.default.sources.USER);var _=this.quill.getSelection();this.quill.scroll.descendants(b).forEach(function(C){C.highlight(O.options.highlight)}),this.quill.update(u.default.sources.SILENT),_!=null&&this.quill.setSelection(_,u.default.sources.SILENT)}}}]),S}(f.default);w.DEFAULTS={highlight:function(){return window.hljs==null?null:function(k){var S=window.hljs.highlightAuto(k);return S.value}}(),interval:1e3},n.CodeBlock=b,n.CodeToken=x,n.default=w},function(t,n){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=13 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=9 y1=4 y2=4></line> </svg>'},function(t,n){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=14 x2=4 y1=14 y2=14></line> <line class=ql-stroke x1=12 x2=6 y1=4 y2=4></line> </svg>'},function(t,n){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=5 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=9 y1=4 y2=4></line> </svg>'},function(t,n){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=3 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=3 y1=4 y2=4></line> </svg>'},function(t,n){t.exports='<svg viewbox="0 0 18 18"> <g class="ql-fill ql-color-label"> <polygon points="6 6.868 6 6 5 6 5 7 5.942 7 6 6.868"></polygon> <rect height=1 width=1 x=4 y=4></rect> <polygon points="6.817 5 6 5 6 6 6.38 6 6.817 5"></polygon> <rect height=1 width=1 x=2 y=6></rect> <rect height=1 width=1 x=3 y=5></rect> <rect height=1 width=1 x=4 y=7></rect> <polygon points="4 11.439 4 11 3 11 3 12 3.755 12 4 11.439"></polygon> <rect height=1 width=1 x=2 y=12></rect> <rect height=1 width=1 x=2 y=9></rect> <rect height=1 width=1 x=2 y=15></rect> <polygon points="4.63 10 4 10 4 11 4.192 11 4.63 10"></polygon> <rect height=1 width=1 x=3 y=8></rect> <path d=M10.832,4.2L11,4.582V4H10.708A1.948,1.948,0,0,1,10.832,4.2Z></path> <path d=M7,4.582L7.168,4.2A1.929,1.929,0,0,1,7.292,4H7V4.582Z></path> <path d=M8,13H7.683l-0.351.8a1.933,1.933,0,0,1-.124.2H8V13Z></path> <rect height=1 width=1 x=12 y=2></rect> <rect height=1 width=1 x=11 y=3></rect> <path d=M9,3H8V3.282A1.985,1.985,0,0,1,9,3Z></path> <rect height=1 width=1 x=2 y=3></rect> <rect height=1 width=1 x=6 y=2></rect> <rect height=1 width=1 x=3 y=2></rect> <rect height=1 width=1 x=5 y=3></rect> <rect height=1 width=1 x=9 y=2></rect> <rect height=1 width=1 x=15 y=14></rect> <polygon points="13.447 10.174 13.469 10.225 13.472 10.232 13.808 11 14 11 14 10 13.37 10 13.447 10.174"></polygon> <rect height=1 width=1 x=13 y=7></rect> <rect height=1 width=1 x=15 y=5></rect> <rect height=1 width=1 x=14 y=6></rect> <rect height=1 width=1 x=15 y=8></rect> <rect height=1 width=1 x=14 y=9></rect> <path d=M3.775,14H3v1H4V14.314A1.97,1.97,0,0,1,3.775,14Z></path> <rect height=1 width=1 x=14 y=3></rect> <polygon points="12 6.868 12 6 11.62 6 12 6.868"></polygon> <rect height=1 width=1 x=15 y=2></rect> <rect height=1 width=1 x=12 y=5></rect> <rect height=1 width=1 x=13 y=4></rect> <polygon points="12.933 9 13 9 13 8 12.495 8 12.933 9"></polygon> <rect height=1 width=1 x=9 y=14></rect> <rect height=1 width=1 x=8 y=15></rect> <path d=M6,14.926V15H7V14.316A1.993,1.993,0,0,1,6,14.926Z></path> <rect height=1 width=1 x=5 y=15></rect> <path d=M10.668,13.8L10.317,13H10v1h0.792A1.947,1.947,0,0,1,10.668,13.8Z></path> <rect height=1 width=1 x=11 y=15></rect> <path d=M14.332,12.2a1.99,1.99,0,0,1,.166.8H15V12H14.245Z></path> <rect height=1 width=1 x=14 y=15></rect> <rect height=1 width=1 x=15 y=11></rect> </g> <polyline class=ql-stroke points="5.5 13 9 5 12.5 13"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=11 y2=11></line> </svg>'},function(t,n){t.exports='<svg viewbox="0 0 18 18"> <rect class="ql-fill ql-stroke" height=3 width=3 x=4 y=5></rect> <rect class="ql-fill ql-stroke" height=3 width=3 x=11 y=5></rect> <path class="ql-even ql-fill ql-stroke" d=M7,8c0,4.031-3,5-3,5></path> <path class="ql-even ql-fill ql-stroke" d=M14,8c0,4.031-3,5-3,5></path> </svg>'},function(t,n){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,4H9.5A2.5,2.5,0,0,1,12,6.5v0A2.5,2.5,0,0,1,9.5,9H5A0,0,0,0,1,5,9V4A0,0,0,0,1,5,4Z></path> <path class=ql-stroke d=M5,9h5.5A2.5,2.5,0,0,1,13,11.5v0A2.5,2.5,0,0,1,10.5,14H5a0,0,0,0,1,0,0V9A0,0,0,0,1,5,9Z></path> </svg>'},function(t,n){t.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=5 x2=13 y1=3 y2=3></line> <line class=ql-stroke x1=6 x2=9.35 y1=12 y2=3></line> <line class=ql-stroke x1=11 x2=15 y1=11 y2=15></line> <line class=ql-stroke x1=15 x2=11 y1=11 y2=15></line> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=7 x=2 y=14></rect> </svg>'},function(t,n){t.exports='<svg viewbox="0 0 18 18"> <line class="ql-color-label ql-stroke ql-transparent" x1=3 x2=15 y1=15 y2=15></line> <polyline class=ql-stroke points="5.5 11 9 3 12.5 11"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=9 y2=9></line> </svg>'},function(t,n){t.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="3 11 5 9 3 7 3 11"></polygon> <line class="ql-stroke ql-fill" x1=15 x2=11 y1=4 y2=4></line> <path class=ql-fill d=M11,3a3,3,0,0,0,0,6h1V3H11Z></path> <rect class=ql-fill height=11 width=1 x=11 y=4></rect> <rect class=ql-fill height=11 width=1 x=13 y=4></rect> </svg>'},function(t,n){t.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="15 12 13 10 15 8 15 12"></polygon> <line class="ql-stroke ql-fill" x1=9 x2=5 y1=4 y2=4></line> <path class=ql-fill d=M5,3A3,3,0,0,0,5,9H6V3H5Z></path> <rect class=ql-fill height=11 width=1 x=5 y=4></rect> <rect class=ql-fill height=11 width=1 x=7 y=4></rect> </svg>'},function(t,n){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M14,16H4a1,1,0,0,1,0-2H14A1,1,0,0,1,14,16Z /> <path class=ql-fill d=M14,4H4A1,1,0,0,1,4,2H14A1,1,0,0,1,14,4Z /> <rect class=ql-fill x=3 y=6 width=12 height=6 rx=1 ry=1 /> </svg>'},function(t,n){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M13,16H5a1,1,0,0,1,0-2h8A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H5A1,1,0,0,1,5,2h8A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=2 y=6 width=14 height=6 rx=1 ry=1 /> </svg>'},function(t,n){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15,8H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,8Z /> <path class=ql-fill d=M15,12H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,12Z /> <path class=ql-fill d=M15,16H5a1,1,0,0,1,0-2H15A1,1,0,0,1,15,16Z /> <path class=ql-fill d=M15,4H5A1,1,0,0,1,5,2H15A1,1,0,0,1,15,4Z /> <rect class=ql-fill x=2 y=6 width=8 height=6 rx=1 ry=1 /> </svg>'},function(t,n){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M5,8H3A1,1,0,0,1,3,6H5A1,1,0,0,1,5,8Z /> <path class=ql-fill d=M5,12H3a1,1,0,0,1,0-2H5A1,1,0,0,1,5,12Z /> <path class=ql-fill d=M13,16H3a1,1,0,0,1,0-2H13A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H3A1,1,0,0,1,3,2H13A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=8 y=6 width=8 height=6 rx=1 ry=1 transform="translate(24 18) rotate(-180)"/> </svg>'},function(t,n){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M11.759,2.482a2.561,2.561,0,0,0-3.53.607A7.656,7.656,0,0,0,6.8,6.2C6.109,9.188,5.275,14.677,4.15,14.927a1.545,1.545,0,0,0-1.3-.933A0.922,0.922,0,0,0,2,15.036S1.954,16,4.119,16s3.091-2.691,3.7-5.553c0.177-.826.36-1.726,0.554-2.6L8.775,6.2c0.381-1.421.807-2.521,1.306-2.676a1.014,1.014,0,0,0,1.02.56A0.966,0.966,0,0,0,11.759,2.482Z></path> <rect class=ql-fill height=1.6 rx=0.8 ry=0.8 width=5 x=5.15 y=6.2></rect> <path class=ql-fill d=M13.663,12.027a1.662,1.662,0,0,1,.266-0.276q0.193,0.069.456,0.138a2.1,2.1,0,0,0,.535.069,1.075,1.075,0,0,0,.767-0.3,1.044,1.044,0,0,0,.314-0.8,0.84,0.84,0,0,0-.238-0.619,0.8,0.8,0,0,0-.594-0.239,1.154,1.154,0,0,0-.781.3,4.607,4.607,0,0,0-.781,1q-0.091.15-.218,0.346l-0.246.38c-0.068-.288-0.137-0.582-0.212-0.885-0.459-1.847-2.494-.984-2.941-0.8-0.482.2-.353,0.647-0.094,0.529a0.869,0.869,0,0,1,1.281.585c0.217,0.751.377,1.436,0.527,2.038a5.688,5.688,0,0,1-.362.467,2.69,2.69,0,0,1-.264.271q-0.221-.08-0.471-0.147a2.029,2.029,0,0,0-.522-0.066,1.079,1.079,0,0,0-.768.3A1.058,1.058,0,0,0,9,15.131a0.82,0.82,0,0,0,.832.852,1.134,1.134,0,0,0,.787-0.3,5.11,5.11,0,0,0,.776-0.993q0.141-.219.215-0.34c0.046-.076.122-0.194,0.223-0.346a2.786,2.786,0,0,0,.918,1.726,2.582,2.582,0,0,0,2.376-.185c0.317-.181.212-0.565,0-0.494A0.807,0.807,0,0,1,14.176,15a5.159,5.159,0,0,1-.913-2.446l0,0Q13.487,12.24,13.663,12.027Z></path> </svg>'},function(t,n){t.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm6.06787,9.209H14.98975V7.59863a.54085.54085,0,0,0-.605-.60547h-.62744a1.01119,1.01119,0,0,0-.748.29688L11.645,8.56641a.5435.5435,0,0,0-.022.8584l.28613.30762a.53861.53861,0,0,0,.84717.0332l.09912-.08789a1.2137,1.2137,0,0,0,.2417-.35254h.02246s-.01123.30859-.01123.60547V13.209H12.041a.54085.54085,0,0,0-.605.60547v.43945a.54085.54085,0,0,0,.605.60547h4.02686a.54085.54085,0,0,0,.605-.60547v-.43945A.54085.54085,0,0,0,16.06787,13.209Z /> </svg>'},function(t,n){t.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M16.73975,13.81445v.43945a.54085.54085,0,0,1-.605.60547H11.855a.58392.58392,0,0,1-.64893-.60547V14.0127c0-2.90527,3.39941-3.42187,3.39941-4.55469a.77675.77675,0,0,0-.84717-.78125,1.17684,1.17684,0,0,0-.83594.38477c-.2749.26367-.561.374-.85791.13184l-.4292-.34082c-.30811-.24219-.38525-.51758-.1543-.81445a2.97155,2.97155,0,0,1,2.45361-1.17676,2.45393,2.45393,0,0,1,2.68408,2.40918c0,2.45312-3.1792,2.92676-3.27832,3.93848h2.79443A.54085.54085,0,0,1,16.73975,13.81445ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z /> </svg>'},function(t,n){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=13 y1=4 y2=4></line> <line class=ql-stroke x1=5 x2=11 y1=14 y2=14></line> <line class=ql-stroke x1=8 x2=10 y1=14 y2=4></line> </svg>'},function(t,n){t.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=10 width=12 x=3 y=4></rect> <circle class=ql-fill cx=6 cy=7 r=1></circle> <polyline class="ql-even ql-fill" points="5 12 5 11 7 9 8 10 11 7 13 9 13 12 5 12"></polyline> </svg>'},function(t,n){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class="ql-fill ql-stroke" points="3 7 3 11 5 9 3 7"></polyline> </svg>'},function(t,n){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="5 7 5 11 3 9 5 7"></polyline> </svg>'},function(t,n){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=11 y1=7 y2=11></line> <path class="ql-even ql-stroke" d=M8.9,4.577a3.476,3.476,0,0,1,.36,4.679A3.476,3.476,0,0,1,4.577,8.9C3.185,7.5,2.035,6.4,4.217,4.217S7.5,3.185,8.9,4.577Z></path> <path class="ql-even ql-stroke" d=M13.423,9.1a3.476,3.476,0,0,0-4.679-.36,3.476,3.476,0,0,0,.36,4.679c1.392,1.392,2.5,2.542,4.679.36S14.815,10.5,13.423,9.1Z></path> </svg>'},function(t,n){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=7 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=7 x2=15 y1=14 y2=14></line> <line class="ql-stroke ql-thin" x1=2.5 x2=4.5 y1=5.5 y2=5.5></line> <path class=ql-fill d=M3.5,6A0.5,0.5,0,0,1,3,5.5V3.085l-0.276.138A0.5,0.5,0,0,1,2.053,3c-0.124-.247-0.023-0.324.224-0.447l1-.5A0.5,0.5,0,0,1,4,2.5v3A0.5,0.5,0,0,1,3.5,6Z></path> <path class="ql-stroke ql-thin" d=M4.5,10.5h-2c0-.234,1.85-1.076,1.85-2.234A0.959,0.959,0,0,0,2.5,8.156></path> <path class="ql-stroke ql-thin" d=M2.5,14.846a0.959,0.959,0,0,0,1.85-.109A0.7,0.7,0,0,0,3.75,14a0.688,0.688,0,0,0,.6-0.736,0.959,0.959,0,0,0-1.85-.109></path> </svg>'},function(t,n){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=6 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=6 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=6 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=3 y1=4 y2=4></line> <line class=ql-stroke x1=3 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=3 y1=14 y2=14></line> </svg>'},function(t,n){t.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=9 x2=15 y1=4 y2=4></line> <polyline class=ql-stroke points="3 4 4 5 6 3"></polyline> <line class=ql-stroke x1=9 x2=15 y1=14 y2=14></line> <polyline class=ql-stroke points="3 14 4 15 6 13"></polyline> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="3 9 4 10 6 8"></polyline> </svg>'},function(t,n){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,15H13.861a3.858,3.858,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.921,1.921,0,0,0,12.021,11.7a0.50013,0.50013,0,1,0,.957.291h0a0.914,0.914,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.076-1.16971,1.86982-1.93971,2.43082A1.45639,1.45639,0,0,0,12,15.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,15Z /> <path class=ql-fill d=M9.65,5.241a1,1,0,0,0-1.409.108L6,7.964,3.759,5.349A1,1,0,0,0,2.192,6.59178Q2.21541,6.6213,2.241,6.649L4.684,9.5,2.241,12.35A1,1,0,0,0,3.71,13.70722q0.02557-.02768.049-0.05722L6,11.036,8.241,13.65a1,1,0,1,0,1.567-1.24277Q9.78459,12.3777,9.759,12.35L7.316,9.5,9.759,6.651A1,1,0,0,0,9.65,5.241Z /> </svg>'},function(t,n){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,7H13.861a4.015,4.015,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.922,1.922,0,0,0,12.021,3.7a0.5,0.5,0,1,0,.957.291,0.917,0.917,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.077-1.164,1.925-1.934,2.486A1.423,1.423,0,0,0,12,7.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,7Z /> <path class=ql-fill d=M9.651,5.241a1,1,0,0,0-1.41.108L6,7.964,3.759,5.349a1,1,0,1,0-1.519,1.3L4.683,9.5,2.241,12.35a1,1,0,1,0,1.519,1.3L6,11.036,8.241,13.65a1,1,0,0,0,1.519-1.3L7.317,9.5,9.759,6.651A1,1,0,0,0,9.651,5.241Z /> </svg>'},function(t,n){t.exports='<svg viewbox="0 0 18 18"> <line class="ql-stroke ql-thin" x1=15.5 x2=2.5 y1=8.5 y2=9.5></line> <path class=ql-fill d=M9.007,8C6.542,7.791,6,7.519,6,6.5,6,5.792,7.283,5,9,5c1.571,0,2.765.679,2.969,1.309a1,1,0,0,0,1.9-.617C13.356,4.106,11.354,3,9,3,6.2,3,4,4.538,4,6.5a3.2,3.2,0,0,0,.5,1.843Z></path> <path class=ql-fill d=M8.984,10C11.457,10.208,12,10.479,12,11.5c0,0.708-1.283,1.5-3,1.5-1.571,0-2.765-.679-2.969-1.309a1,1,0,1,0-1.9.617C4.644,13.894,6.646,15,9,15c2.8,0,5-1.538,5-3.5a3.2,3.2,0,0,0-.5-1.843Z></path> </svg>'},function(t,n){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,3V9a4.012,4.012,0,0,0,4,4H9a4.012,4.012,0,0,0,4-4V3></path> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=12 x=3 y=15></rect> </svg>'},function(t,n){t.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=12 width=12 x=3 y=3></rect> <rect class=ql-fill height=12 width=1 x=5 y=3></rect> <rect class=ql-fill height=12 width=1 x=12 y=3></rect> <rect class=ql-fill height=2 width=8 x=5 y=8></rect> <rect class=ql-fill height=1 width=3 x=3 y=5></rect> <rect class=ql-fill height=1 width=3 x=3 y=7></rect> <rect class=ql-fill height=1 width=3 x=3 y=10></rect> <rect class=ql-fill height=1 width=3 x=3 y=12></rect> <rect class=ql-fill height=1 width=3 x=12 y=5></rect> <rect class=ql-fill height=1 width=3 x=12 y=7></rect> <rect class=ql-fill height=1 width=3 x=12 y=10></rect> <rect class=ql-fill height=1 width=3 x=12 y=12></rect> </svg>'},function(t,n){t.exports='<svg viewbox="0 0 18 18"> <polygon class=ql-stroke points="7 11 9 13 11 11 7 11"></polygon> <polygon class=ql-stroke points="7 7 9 5 11 7 7 7"></polygon> </svg>'},function(t,n,r){Object.defineProperty(n,"__esModule",{value:!0}),n.default=n.BubbleTooltip=void 0;var a=function S(A,O,_){A===null&&(A=Function.prototype);var C=Object.getOwnPropertyDescriptor(A,O);if(C===void 0){var M=Object.getPrototypeOf(A);return M===null?void 0:S(M,O,_)}else{if("value"in C)return C.value;var P=C.get;return P===void 0?void 0:P.call(_)}},o=function(){function S(A,O){for(var _=0;_<O.length;_++){var C=O[_];C.enumerable=C.enumerable||!1,C.configurable=!0,"value"in C&&(C.writable=!0),Object.defineProperty(A,C.key,C)}}return function(A,O,_){return O&&S(A.prototype,O),_&&S(A,_),A}}(),s=r(3),l=m(s),h=r(8),u=m(h),c=r(43),f=m(c),d=r(15),p=r(41),g=m(p);function m(S){return S&&S.__esModule?S:{default:S}}function v(S,A){if(!(S instanceof A))throw new TypeError("Cannot call a class as a function")}function y(S,A){if(!S)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return A&&(typeof A=="object"||typeof A=="function")?A:S}function b(S,A){if(typeof A!="function"&&A!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof A);S.prototype=Object.create(A&&A.prototype,{constructor:{value:S,enumerable:!1,writable:!0,configurable:!0}}),A&&(Object.setPrototypeOf?Object.setPrototypeOf(S,A):S.__proto__=A)}var x=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]],w=function(S){b(A,S);function A(O,_){v(this,A),_.modules.toolbar!=null&&_.modules.toolbar.container==null&&(_.modules.toolbar.container=x);var C=y(this,(A.__proto__||Object.getPrototypeOf(A)).call(this,O,_));return C.quill.container.classList.add("ql-bubble"),C}return o(A,[{key:"extendToolbar",value:function(_){this.tooltip=new k(this.quill,this.options.bounds),this.tooltip.root.appendChild(_.container),this.buildButtons([].slice.call(_.container.querySelectorAll("button")),g.default),this.buildPickers([].slice.call(_.container.querySelectorAll("select")),g.default)}}]),A}(f.default);w.DEFAULTS=(0,l.default)(!0,{},f.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(A){A?this.quill.theme.tooltip.edit():this.quill.format("link",!1)}}}}});var k=function(S){b(A,S);function A(O,_){v(this,A);var C=y(this,(A.__proto__||Object.getPrototypeOf(A)).call(this,O,_));return C.quill.on(u.default.events.EDITOR_CHANGE,function(M,P,E,R){if(M===u.default.events.SELECTION_CHANGE)if(P!=null&&P.length>0&&R===u.default.sources.USER){C.show(),C.root.style.left="0px",C.root.style.width="",C.root.style.width=C.root.offsetWidth+"px";var T=C.quill.getLines(P.index,P.length);if(T.length===1)C.position(C.quill.getBounds(P));else{var F=T[T.length-1],B=C.quill.getIndex(F),D=Math.min(F.length()-1,P.index+P.length-B),N=C.quill.getBounds(new d.Range(B,D));C.position(N)}}else document.activeElement!==C.textbox&&C.quill.hasFocus()&&C.hide()}),C}return o(A,[{key:"listen",value:function(){var _=this;a(A.prototype.__proto__||Object.getPrototypeOf(A.prototype),"listen",this).call(this),this.root.querySelector(".ql-close").addEventListener("click",function(){_.root.classList.remove("ql-editing")}),this.quill.on(u.default.events.SCROLL_OPTIMIZE,function(){setTimeout(function(){if(!_.root.classList.contains("ql-hidden")){var C=_.quill.getSelection();C!=null&&_.position(_.quill.getBounds(C))}},1)})}},{key:"cancel",value:function(){this.show()}},{key:"position",value:function(_){var C=a(A.prototype.__proto__||Object.getPrototypeOf(A.prototype),"position",this).call(this,_),M=this.root.querySelector(".ql-tooltip-arrow");if(M.style.marginLeft="",C===0)return C;M.style.marginLeft=-1*C-M.offsetWidth/2+"px"}}]),A}(c.BaseTooltip);k.TEMPLATE=['<span class="ql-tooltip-arrow"></span>','<div class="ql-tooltip-editor">','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-close"></a>',"</div>"].join(""),n.BubbleTooltip=k,n.default=w},function(t,n,r){t.exports=r(63)}]).default})})(Wf);var yb=Wf.exports,xb=mn&&mn.__extends||function(){var i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var a in r)r.hasOwnProperty(a)&&(n[a]=r[a])},i(e,t)};return function(e,t){i(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),Ha=mn&&mn.__assign||function(){return Ha=Object.assign||function(i){for(var e,t=1,n=arguments.length;t<n;t++){e=arguments[t];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(i[r]=e[r])}return i},Ha.apply(this,arguments)},bb=mn&&mn.__spreadArrays||function(){for(var i=0,e=0,t=arguments.length;e<t;e++)i+=arguments[e].length;for(var n=Array(i),r=0,e=0;e<t;e++)for(var a=arguments[e],o=0,s=a.length;o<s;o++,r++)n[r]=a[o];return n},$a=mn&&mn.__importDefault||function(i){return i&&i.__esModule?i:{default:i}},nn=$a(K),wb=$a(Qf),Hi=$a(mb),xc=$a(yb),Sb=function(i){xb(e,i);function e(t){var n=i.call(this,t)||this;n.dirtyProps=["modules","formats","bounds","theme","children"],n.cleanProps=["id","className","style","placeholder","tabIndex","onChange","onChangeSelection","onFocus","onBlur","onKeyPress","onKeyDown","onKeyUp"],n.state={generation:0},n.selection=null,n.onEditorChange=function(a,o,s,l){var h,u,c,f;a==="text-change"?(u=(h=n).onEditorChangeText)===null||u===void 0||u.call(h,n.editor.root.innerHTML,o,l,n.unprivilegedEditor):a==="selection-change"&&((f=(c=n).onEditorChangeSelection)===null||f===void 0||f.call(c,o,l,n.unprivilegedEditor))};var r=n.isControlled()?t.value:t.defaultValue;return n.value=r??"",n}return e.prototype.validateProps=function(t){var n;if(nn.default.Children.count(t.children)>1)throw new Error("The Quill editing area can only be composed of a single React element.");if(nn.default.Children.count(t.children)){var r=nn.default.Children.only(t.children);if(((n=r)===null||n===void 0?void 0:n.type)==="textarea")throw new Error("Quill does not support editing on a <textarea>. Use a <div> instead.")}if(this.lastDeltaChangeSet&&t.value===this.lastDeltaChangeSet)throw new Error("You are passing the `delta` object from the `onChange` event back as `value`. You most probably want `editor.getContents()` instead. See: https://github.com/zenoamaro/react-quill#using-deltas")},e.prototype.shouldComponentUpdate=function(t,n){var r=this,a;if(this.validateProps(t),!this.editor||this.state.generation!==n.generation)return!0;if("value"in t){var o=this.getEditorContents(),s=(a=t.value,a??"");this.isEqualValue(s,o)||this.setEditorContents(this.editor,s)}return t.readOnly!==this.props.readOnly&&this.setEditorReadOnly(this.editor,t.readOnly),bb(this.cleanProps,this.dirtyProps).some(function(l){return!Hi.default(t[l],r.props[l])})},e.prototype.shouldComponentRegenerate=function(t){var n=this;return this.dirtyProps.some(function(r){return!Hi.default(t[r],n.props[r])})},e.prototype.componentDidMount=function(){this.instantiateEditor(),this.setEditorContents(this.editor,this.getEditorContents())},e.prototype.componentWillUnmount=function(){this.destroyEditor()},e.prototype.componentDidUpdate=function(t,n){var r=this;if(this.editor&&this.shouldComponentRegenerate(t)){var a=this.editor.getContents(),o=this.editor.getSelection();this.regenerationSnapshot={delta:a,selection:o},this.setState({generation:this.state.generation+1}),this.destroyEditor()}if(this.state.generation!==n.generation){var s=this.regenerationSnapshot,a=s.delta,l=s.selection;delete this.regenerationSnapshot,this.instantiateEditor();var h=this.editor;h.setContents(a),bc(function(){return r.setEditorSelection(h,l)})}},e.prototype.instantiateEditor=function(){this.editor?this.hookEditor(this.editor):this.editor=this.createEditor(this.getEditingArea(),this.getEditorConfig())},e.prototype.destroyEditor=function(){this.editor&&this.unhookEditor(this.editor)},e.prototype.isControlled=function(){return"value"in this.props},e.prototype.getEditorConfig=function(){return{bounds:this.props.bounds,formats:this.props.formats,modules:this.props.modules,placeholder:this.props.placeholder,readOnly:this.props.readOnly,scrollingContainer:this.props.scrollingContainer,tabIndex:this.props.tabIndex,theme:this.props.theme}},e.prototype.getEditor=function(){if(!this.editor)throw new Error("Accessing non-instantiated editor");return this.editor},e.prototype.createEditor=function(t,n){var r=new xc.default(t,n);return n.tabIndex!=null&&this.setEditorTabIndex(r,n.tabIndex),this.hookEditor(r),r},e.prototype.hookEditor=function(t){this.unprivilegedEditor=this.makeUnprivilegedEditor(t),t.on("editor-change",this.onEditorChange)},e.prototype.unhookEditor=function(t){t.off("editor-change",this.onEditorChange)},e.prototype.getEditorContents=function(){return this.value},e.prototype.getEditorSelection=function(){return this.selection},e.prototype.isDelta=function(t){return t&&t.ops},e.prototype.isEqualValue=function(t,n){return this.isDelta(t)&&this.isDelta(n)?Hi.default(t.ops,n.ops):Hi.default(t,n)},e.prototype.setEditorContents=function(t,n){var r=this;this.value=n;var a=this.getEditorSelection();typeof n=="string"?t.setContents(t.clipboard.convert(n)):t.setContents(n),bc(function(){return r.setEditorSelection(t,a)})},e.prototype.setEditorSelection=function(t,n){if(this.selection=n,n){var r=t.getLength();n.index=Math.max(0,Math.min(n.index,r-1)),n.length=Math.max(0,Math.min(n.length,r-1-n.index)),t.setSelection(n)}},e.prototype.setEditorTabIndex=function(t,n){var r,a;!((a=(r=t)===null||r===void 0?void 0:r.scroll)===null||a===void 0)&&a.domNode&&(t.scroll.domNode.tabIndex=n)},e.prototype.setEditorReadOnly=function(t,n){n?t.disable():t.enable()},e.prototype.makeUnprivilegedEditor=function(t){var n=t;return{getHTML:function(){return n.root.innerHTML},getLength:n.getLength.bind(n),getText:n.getText.bind(n),getContents:n.getContents.bind(n),getSelection:n.getSelection.bind(n),getBounds:n.getBounds.bind(n)}},e.prototype.getEditingArea=function(){if(!this.editingArea)throw new Error("Instantiating on missing editing area");var t=wb.default.findDOMNode(this.editingArea);if(!t)throw new Error("Cannot find element for editing area");if(t.nodeType===3)throw new Error("Editing area cannot be a text node");return t},e.prototype.renderEditingArea=function(){var t=this,n=this.props,r=n.children,a=n.preserveWhitespace,o=this.state.generation,s={key:o,ref:function(l){t.editingArea=l}};return nn.default.Children.count(r)?nn.default.cloneElement(nn.default.Children.only(r),s):a?nn.default.createElement("pre",Ha({},s)):nn.default.createElement("div",Ha({},s))},e.prototype.render=function(){var t;return nn.default.createElement("div",{id:this.props.id,style:this.props.style,key:this.state.generation,className:"quill "+(t=this.props.className,t??""),onKeyPress:this.props.onKeyPress,onKeyDown:this.props.onKeyDown,onKeyUp:this.props.onKeyUp},this.renderEditingArea())},e.prototype.onEditorChangeText=function(t,n,r,a){var o,s;if(this.editor){var l=this.isDelta(this.value)?a.getContents():a.getHTML();l!==this.getEditorContents()&&(this.lastDeltaChangeSet=n,this.value=l,(s=(o=this.props).onChange)===null||s===void 0||s.call(o,t,n,r,a))}},e.prototype.onEditorChangeSelection=function(t,n,r){var a,o,s,l,h,u;if(this.editor){var c=this.getEditorSelection(),f=!c&&t,d=c&&!t;Hi.default(t,c)||(this.selection=t,(o=(a=this.props).onChangeSelection)===null||o===void 0||o.call(a,t,n,r),f?(l=(s=this.props).onFocus)===null||l===void 0||l.call(s,t,n,r):d&&((u=(h=this.props).onBlur)===null||u===void 0||u.call(h,c,n,r)))}},e.prototype.focus=function(){this.editor&&this.editor.focus()},e.prototype.blur=function(){this.editor&&(this.selection=null,this.editor.blur())},e.displayName="React Quill",e.Quill=xc.default,e.defaultProps={theme:"snow",modules:{},readOnly:!1},e}(nn.default.Component);function bc(i){Promise.resolve().then(i)}var kb=Sb;const Ab=Jf(kb);const Cb=K.forwardRef((i,e)=>Le.jsx("div",{className:"rich-text-editor",children:Le.jsx(Ab,{ref:e,...i})}));Cb.displayName="RichTextEditor";const _b=K.forwardRef((i,e)=>{const{children:t,className:n,...r}=i;return Le.jsx("span",{ref:e,className:gi("inline-flex",n),...r,children:t})});_b.displayName="SvgIcon";