@bino-bi/bn-template-engine 1.0.0-alpha.16 → 1.0.0-alpha.18

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 (326) hide show
  1. package/dist/bn-template-engine/bn-template-engine.esm.js +1 -1
  2. package/dist/bn-template-engine/p-0107f0cc.entry.js +1 -0
  3. package/dist/bn-template-engine/p-209351c9.entry.js +1 -0
  4. package/dist/bn-template-engine/p-22d0fb7a.entry.js +1 -0
  5. package/dist/bn-template-engine/p-2e6dc267.entry.js +1 -0
  6. package/dist/bn-template-engine/p-485d23d7.entry.js +1 -0
  7. package/dist/bn-template-engine/p-5651417d.entry.js +1 -0
  8. package/dist/bn-template-engine/p-5bfdc1e5.entry.js +1 -0
  9. package/dist/bn-template-engine/p-6b75762d.entry.js +1 -0
  10. package/dist/bn-template-engine/{p-ff659485.entry.js → p-7bdc0e28.entry.js} +1 -1
  11. package/dist/bn-template-engine/p-9879c9b2.entry.js +1 -0
  12. package/dist/bn-template-engine/p-BA48JiHe.js +1 -0
  13. package/dist/bn-template-engine/p-BWKdb9ym.js +1 -0
  14. package/dist/bn-template-engine/p-BZV1b5VH.js +1 -0
  15. package/dist/bn-template-engine/p-Bdfxd_Ke.js +1 -0
  16. package/dist/bn-template-engine/p-BqhIhYr1.js +1 -0
  17. package/dist/bn-template-engine/p-C0Pwqx-O.js +1 -0
  18. package/dist/bn-template-engine/p-CBqUr7I8.js +1 -0
  19. package/dist/bn-template-engine/{p-BPDZcex5.js → p-CPzF3Q2m.js} +1 -1
  20. package/dist/bn-template-engine/p-CiudZRQr.js +1 -0
  21. package/dist/bn-template-engine/p-Dg9OcXAO.js +1 -0
  22. package/dist/bn-template-engine/p-DsTzlzxQ.js +1 -0
  23. package/dist/bn-template-engine/p-X6CxL6W-.js +1 -0
  24. package/dist/bn-template-engine/p-a130cb43.entry.js +1 -0
  25. package/dist/bn-template-engine/p-aakBGfzL.js +1 -0
  26. package/dist/bn-template-engine/p-dc745c32.entry.js +1 -0
  27. package/dist/bn-template-engine/p-e96da91f.entry.js +1 -0
  28. package/dist/bn-template-engine/p-f3d1fa06.entry.js +1 -0
  29. package/dist/bn-template-engine/p-fcb43f2c.entry.js +1 -0
  30. package/dist/bn-template-engine/p-rdqTC0_5.js +1 -0
  31. package/dist/cjs/AxisConfig-VnVelfSV.js +233 -0
  32. package/dist/cjs/LabelCollisionManager-nfD5P__k.js +412 -0
  33. package/dist/cjs/NumericScale-BAyYXpKL.js +107 -0
  34. package/dist/cjs/Order-DobBozQC.js +87 -0
  35. package/dist/cjs/SVGStyle-BQOmGWLX.js +8209 -0
  36. package/dist/cjs/SVGVariancesStyleGroup-DCGfHrqh.js +50 -0
  37. package/dist/cjs/VarianceMeasure-NY9yhiNV.js +372 -0
  38. package/dist/cjs/XYChartDataRow-B7OKrAcC.js +829 -0
  39. package/dist/cjs/bn-asset_21.cjs.entry.js +1614 -9670
  40. package/dist/cjs/bn-chart-bubble.cjs.entry.js +762 -0
  41. package/dist/cjs/bn-chart-bullet.cjs.entry.js +785 -0
  42. package/dist/cjs/bn-chart-scatter.cjs.entry.js +658 -0
  43. package/dist/cjs/bn-grid.cjs.entry.js +5 -3
  44. package/dist/cjs/bn-image.cjs.entry.js +5 -3
  45. package/dist/cjs/bn-internationalization.cjs.entry.js +2 -2
  46. package/dist/cjs/bn-ruleset.cjs.entry.js +41 -0
  47. package/dist/cjs/bn-template-engine.cjs.js +1 -1
  48. package/dist/cjs/bn-template.cjs.entry.js +1 -1
  49. package/dist/cjs/bn-text.cjs.entry.js +8 -79
  50. package/dist/cjs/bn-tree.cjs.entry.js +4 -2
  51. package/dist/cjs/{context-protocol-Cn5PL928.js → context-protocol-BDrMkhc4.js} +272 -1
  52. package/dist/cjs/editor-companion.cjs.entry.js +2 -2
  53. package/dist/cjs/ibcs-chart-bubble.cjs.entry.js +624 -0
  54. package/dist/cjs/ibcs-chart-bullet.cjs.entry.js +673 -0
  55. package/dist/cjs/ibcs-chart-scatter.cjs.entry.js +667 -0
  56. package/dist/cjs/layoutObserver-p0wXIWFg.js +350 -0
  57. package/dist/cjs/loader.cjs.js +1 -1
  58. package/dist/cjs/sanitizeHtml-LuZr1IMd.js +85 -0
  59. package/dist/cjs/{scaling-DM2UILdF.js → scaling-BmqxcNOf.js} +1 -1
  60. package/dist/cjs/withScalingGroup-BmcRlWBs.js +73 -0
  61. package/dist/cjs/{withStyled-Dx3uRw9g.js → withStyled-CRiC9fzc.js} +44 -383
  62. package/dist/collection/collection-manifest.json +7 -0
  63. package/dist/collection/components/bn-chart-bubble/bn-chart-bubble.css +10 -0
  64. package/dist/collection/components/bn-chart-bubble/bn-chart-bubble.js +1110 -0
  65. package/dist/collection/components/bn-chart-bubble/ibcs-chart-bubble.css +9 -0
  66. package/dist/collection/components/bn-chart-bubble/ibcs-chart-bubble.js +653 -0
  67. package/dist/collection/components/bn-chart-bubble/utils/BubbleChart.js +472 -0
  68. package/dist/collection/components/bn-chart-bullet/bn-chart-bullet.css +10 -0
  69. package/dist/collection/components/bn-chart-bullet/bn-chart-bullet.js +1014 -0
  70. package/dist/collection/components/bn-chart-bullet/ibcs-chart-bullet.css +9 -0
  71. package/dist/collection/components/bn-chart-bullet/ibcs-chart-bullet.js +538 -0
  72. package/dist/collection/components/bn-chart-bullet/utils/BulletChart.js +440 -0
  73. package/dist/collection/components/bn-chart-bullet/utils/model/BulletChartStyle.js +132 -0
  74. package/dist/collection/components/bn-chart-bullet/utils/model/BulletConfig.js +89 -0
  75. package/dist/collection/components/bn-chart-bullet/utils/model/index.js +2 -0
  76. package/dist/collection/components/bn-chart-scatter/bn-chart-scatter.css +10 -0
  77. package/dist/collection/components/bn-chart-scatter/bn-chart-scatter.js +965 -0
  78. package/dist/collection/components/bn-chart-scatter/ibcs-chart-scatter.css +9 -0
  79. package/dist/collection/components/bn-chart-scatter/ibcs-chart-scatter.js +580 -0
  80. package/dist/collection/components/bn-chart-scatter/utils/ScatterChart.js +409 -0
  81. package/dist/collection/components/bn-chart-structure/bn-chart-structure.js +23 -2
  82. package/dist/collection/components/bn-chart-structure/ibcs-chart-structure.js +29 -4
  83. package/dist/collection/components/bn-chart-structure/utils/StructureChart.js +3 -0
  84. package/dist/collection/components/bn-chart-time/bn-chart-time.js +27 -4
  85. package/dist/collection/components/bn-chart-time/ibcs-chart-time.js +29 -4
  86. package/dist/collection/components/bn-chart-time/utils/TimeChart.js +16 -4
  87. package/dist/collection/components/bn-chart-time/utils/elements/StackedColumn.js +3 -3
  88. package/dist/collection/components/bn-component-style/bn-component-style.js +1 -1
  89. package/dist/collection/components/bn-context/bn-context.js +1 -1
  90. package/dist/collection/components/bn-dataset/bn-dataset.js +1 -1
  91. package/dist/collection/components/bn-datasource/bn-datasource.js +1 -1
  92. package/dist/collection/components/bn-footer/bn-footer.js +1 -1
  93. package/dist/collection/components/bn-grid/bn-grid.js +1 -1
  94. package/dist/collection/components/bn-image/bn-image.js +1 -1
  95. package/dist/collection/components/bn-internationalization/bn-internationalization.js +1 -1
  96. package/dist/collection/components/bn-layout-card/bn-layout-card.js +26 -3
  97. package/dist/collection/components/bn-layout-page/bn-layout-page.js +33 -4
  98. package/dist/collection/components/bn-message/bn-message.css +6 -2
  99. package/dist/collection/components/bn-message/bn-message.js +3 -2
  100. package/dist/collection/components/bn-page/bn-page.js +1 -1
  101. package/dist/collection/components/bn-ruleset/bn-ruleset.css +3 -0
  102. package/dist/collection/components/bn-ruleset/bn-ruleset.js +68 -0
  103. package/dist/collection/components/bn-scaling-group/bn-scaling-group.js +1 -1
  104. package/dist/collection/components/bn-table/bn-table.js +146 -14
  105. package/dist/collection/components/bn-table/ibcs-table.css +8 -0
  106. package/dist/collection/components/bn-table/ibcs-table.js +64 -8
  107. package/dist/collection/components/bn-table/utils/Table.js +43 -5
  108. package/dist/collection/components/bn-table/utils/elements/CellBarChart.js +13 -8
  109. package/dist/collection/components/bn-table/utils/elements/TableRow.js +3 -2
  110. package/dist/collection/components/bn-table/utils/elements/WaterfallBar.js +47 -0
  111. package/dist/collection/components/bn-table/utils/elements/index.js +1 -0
  112. package/dist/collection/components/bn-table/utils/factories/tableDataSetFactory.js +87 -15
  113. package/dist/collection/components/bn-table/utils/helper/DataQuery.js +284 -3
  114. package/dist/collection/components/bn-table/utils/helper/IntervalColumns.js +140 -0
  115. package/dist/collection/components/bn-table/utils/helper/WaterfallCalculator.js +166 -0
  116. package/dist/collection/components/bn-table/utils/helper/index.js +2 -0
  117. package/dist/collection/components/bn-table/utils/model/TableComponentConfig.js +10 -0
  118. package/dist/collection/components/bn-template/bn-template.js +1 -1
  119. package/dist/collection/components/bn-text/bn-text.js +2 -75
  120. package/dist/collection/components/bn-title/bn-title.js +27 -3
  121. package/dist/collection/components/bn-title/ibcs-title/ibcs-title.css +4 -0
  122. package/dist/collection/components/bn-title/ibcs-title/ibcs-title.js +29 -3
  123. package/dist/collection/components/bn-title/ibcs-title/utils/Title.js +3 -0
  124. package/dist/collection/components/editor-companion/editor-companion.js +1 -1
  125. package/dist/collection/stores/componentStyles.js +67 -0
  126. package/dist/collection/stores/createScopedStores.js +6 -1
  127. package/dist/collection/stores/internationalization.js +68 -0
  128. package/dist/collection/stores/ruleSets.js +46 -0
  129. package/dist/collection/utils/constants.js +5 -0
  130. package/dist/collection/utils/ibcsRuleSet.js +14 -26
  131. package/dist/collection/utils/sanitizeHtml.js +81 -0
  132. package/dist/collection/utils/validate.js +24 -0
  133. package/dist/collection/utils/withComponentStyle.js +3 -5
  134. package/dist/collection/utils/withInheritedProps.js +1 -1
  135. package/dist/collection/utils/withRuleSet.js +105 -0
  136. package/dist/collection/utils/withScalingGroup.js +3 -0
  137. package/dist/collection/utils/xy/FacetGrid.js +36 -0
  138. package/dist/collection/utils/xy/IsoCurves.js +156 -0
  139. package/dist/collection/utils/xy/NumericScale.js +103 -0
  140. package/dist/collection/utils/xy/PointLabeler.js +96 -0
  141. package/dist/collection/utils/xy/RadiusScale.js +42 -0
  142. package/dist/collection/utils/xy/SeriesPalette.js +80 -0
  143. package/dist/collection/utils/xy/VarianceMeasure.js +76 -0
  144. package/dist/collection/utils/xy/XYFrame.js +120 -0
  145. package/dist/collection/utils/xy/XYLegend.js +107 -0
  146. package/dist/collection/utils/xy/model/AxisConfig.js +221 -0
  147. package/dist/collection/utils/xy/model/ScaleFactorsXYChart.js +69 -0
  148. package/dist/collection/utils/xy/model/XYChartDataRow.js +0 -0
  149. package/dist/collection/utils/xy/model/XYChartStyle.js +52 -0
  150. package/dist/components/AxisConfig.js +1 -0
  151. package/dist/components/CompareUtil.js +1 -0
  152. package/dist/components/DataFormatDigits.js +1 -1
  153. package/dist/components/LabelCollisionManager.js +1 -0
  154. package/dist/components/NumericScale.js +1 -0
  155. package/dist/components/Order.js +1 -1
  156. package/dist/components/SVGVariancesStyleGroup.js +1 -1
  157. package/dist/components/SiPrefix.js +1 -0
  158. package/dist/components/StringAdapter.js +1 -0
  159. package/dist/components/VarianceMeasure.js +1 -0
  160. package/dist/components/XYChartDataRow.js +1 -0
  161. package/dist/components/bn-chart-bubble.d.ts +11 -0
  162. package/dist/components/bn-chart-bubble.js +1 -0
  163. package/dist/components/bn-chart-bullet.d.ts +11 -0
  164. package/dist/components/bn-chart-bullet.js +1 -0
  165. package/dist/components/bn-chart-scatter.d.ts +11 -0
  166. package/dist/components/bn-chart-scatter.js +1 -0
  167. package/dist/components/bn-chart-structure.js +1 -1
  168. package/dist/components/bn-chart-time.js +1 -1
  169. package/dist/components/bn-component-style.js +1 -1
  170. package/dist/components/bn-context.js +1 -1
  171. package/dist/components/bn-dataset.js +1 -1
  172. package/dist/components/bn-datasource.js +1 -1
  173. package/dist/components/bn-footer2.js +1 -1
  174. package/dist/components/bn-grid.js +1 -1
  175. package/dist/components/bn-image.js +1 -1
  176. package/dist/components/bn-internationalization.js +1 -1
  177. package/dist/components/bn-layout-card.js +1 -1
  178. package/dist/components/bn-layout-page.js +1 -1
  179. package/dist/components/bn-message2.js +1 -1
  180. package/dist/components/bn-page2.js +1 -1
  181. package/dist/components/bn-ruleset.d.ts +11 -0
  182. package/dist/components/bn-ruleset.js +1 -0
  183. package/dist/components/bn-scaling-group.js +1 -1
  184. package/dist/components/bn-table.js +1 -1
  185. package/dist/components/bn-template.js +1 -1
  186. package/dist/components/bn-text.js +1 -1
  187. package/dist/components/bn-title2.js +1 -1
  188. package/dist/components/bn-tree.js +1 -1
  189. package/dist/components/context-protocol.js +1 -1
  190. package/dist/components/editor-companion.js +1 -1
  191. package/dist/components/formatter.js +1 -0
  192. package/dist/components/ibcs-chart-bubble.d.ts +11 -0
  193. package/dist/components/ibcs-chart-bubble.js +1 -0
  194. package/dist/components/ibcs-chart-bubble2.js +1 -0
  195. package/dist/components/ibcs-chart-bullet.d.ts +11 -0
  196. package/dist/components/ibcs-chart-bullet.js +1 -0
  197. package/dist/components/ibcs-chart-bullet2.js +1 -0
  198. package/dist/components/ibcs-chart-scatter.d.ts +11 -0
  199. package/dist/components/ibcs-chart-scatter.js +1 -0
  200. package/dist/components/ibcs-chart-scatter2.js +1 -0
  201. package/dist/components/ibcs-chart-structure2.js +1 -1
  202. package/dist/components/ibcs-chart-time2.js +1 -1
  203. package/dist/components/ibcs-table2.js +1 -1
  204. package/dist/components/ibcs-title2.js +1 -1
  205. package/dist/components/layoutObserver.js +1 -1
  206. package/dist/components/luxon.js +1 -1
  207. package/dist/components/main.js +1 -0
  208. package/dist/components/merge.js +1 -0
  209. package/dist/components/sanitizeHtml.js +1 -0
  210. package/dist/components/stackColors.js +1 -0
  211. package/dist/components/validate.js +1 -1
  212. package/dist/components/withComponentStyle.js +1 -1
  213. package/dist/components/withDataset.js +1 -0
  214. package/dist/components/withRuleSet.js +1 -0
  215. package/dist/components/withScalingGroup.js +1 -0
  216. package/dist/components/withStyled.js +1 -1
  217. package/dist/esm/AxisConfig-C_zWCKlL.js +224 -0
  218. package/dist/esm/LabelCollisionManager-8swVQHKA.js +404 -0
  219. package/dist/esm/NumericScale-DsTzlzxQ.js +105 -0
  220. package/dist/esm/Order-BPeWfygb.js +83 -0
  221. package/dist/esm/SVGStyle-BxEDw9zh.js +8199 -0
  222. package/dist/esm/SVGVariancesStyleGroup-DRQYvSDD.js +48 -0
  223. package/dist/esm/VarianceMeasure-DnwNKspZ.js +364 -0
  224. package/dist/esm/XYChartDataRow-DeV4r-Wm.js +820 -0
  225. package/dist/esm/bn-asset_21.entry.js +1127 -9183
  226. package/dist/esm/bn-chart-bubble.entry.js +760 -0
  227. package/dist/esm/bn-chart-bullet.entry.js +783 -0
  228. package/dist/esm/bn-chart-scatter.entry.js +656 -0
  229. package/dist/esm/bn-grid.entry.js +5 -3
  230. package/dist/esm/bn-image.entry.js +5 -3
  231. package/dist/esm/bn-internationalization.entry.js +2 -2
  232. package/dist/esm/bn-ruleset.entry.js +39 -0
  233. package/dist/esm/bn-template-engine.js +1 -1
  234. package/dist/esm/bn-template.entry.js +1 -1
  235. package/dist/esm/bn-text.entry.js +7 -78
  236. package/dist/esm/bn-tree.entry.js +4 -2
  237. package/dist/esm/{context-protocol-BB-4Onmw.js → context-protocol-1Yj1uKvh.js} +268 -2
  238. package/dist/esm/editor-companion.entry.js +2 -2
  239. package/dist/esm/ibcs-chart-bubble.entry.js +622 -0
  240. package/dist/esm/ibcs-chart-bullet.entry.js +671 -0
  241. package/dist/esm/ibcs-chart-scatter.entry.js +665 -0
  242. package/dist/esm/layoutObserver-DCbmpGrz.js +345 -0
  243. package/dist/esm/loader.js +1 -1
  244. package/dist/esm/sanitizeHtml-BA48JiHe.js +83 -0
  245. package/dist/esm/{scaling-h4KcBet3.js → scaling-B_k50v9z.js} +2 -2
  246. package/dist/esm/withScalingGroup-Br70pAv9.js +71 -0
  247. package/dist/esm/{withStyled-BBvU2f-A.js → withStyled-Br2DGTPs.js} +30 -367
  248. package/dist/types/components/bn-chart-bubble/bn-chart-bubble.d.ts +193 -0
  249. package/dist/types/components/bn-chart-bubble/ibcs-chart-bubble.d.ts +58 -0
  250. package/dist/types/components/bn-chart-bubble/utils/BubbleChart.d.ts +91 -0
  251. package/dist/types/components/bn-chart-bullet/bn-chart-bullet.d.ts +172 -0
  252. package/dist/types/components/bn-chart-bullet/ibcs-chart-bullet.d.ts +52 -0
  253. package/dist/types/components/bn-chart-bullet/utils/BulletChart.d.ts +91 -0
  254. package/dist/types/components/bn-chart-bullet/utils/model/BulletChartStyle.d.ts +70 -0
  255. package/dist/types/components/bn-chart-bullet/utils/model/BulletConfig.d.ts +43 -0
  256. package/dist/types/components/bn-chart-bullet/utils/model/index.d.ts +2 -0
  257. package/dist/types/components/bn-chart-scatter/bn-chart-scatter.d.ts +172 -0
  258. package/dist/types/components/bn-chart-scatter/ibcs-chart-scatter.d.ts +53 -0
  259. package/dist/types/components/bn-chart-scatter/utils/ScatterChart.d.ts +66 -0
  260. package/dist/types/components/bn-chart-structure/bn-chart-structure.d.ts +7 -0
  261. package/dist/types/components/bn-chart-structure/ibcs-chart-structure.d.ts +2 -0
  262. package/dist/types/components/bn-chart-structure/utils/StructureChart.d.ts +1 -0
  263. package/dist/types/components/bn-chart-time/bn-chart-time.d.ts +10 -1
  264. package/dist/types/components/bn-chart-time/ibcs-chart-time.d.ts +2 -0
  265. package/dist/types/components/bn-chart-time/utils/TimeChart.d.ts +1 -0
  266. package/dist/types/components/bn-layout-card/bn-layout-card.d.ts +10 -0
  267. package/dist/types/components/bn-layout-page/bn-layout-page.d.ts +14 -0
  268. package/dist/types/components/bn-message/bn-message.d.ts +5 -2
  269. package/dist/types/components/bn-ruleset/bn-ruleset.d.ts +8 -0
  270. package/dist/types/components/bn-table/bn-table.d.ts +38 -5
  271. package/dist/types/components/bn-table/ibcs-table.d.ts +8 -1
  272. package/dist/types/components/bn-table/utils/Table.d.ts +8 -0
  273. package/dist/types/components/bn-table/utils/elements/Cell.d.ts +2 -0
  274. package/dist/types/components/bn-table/utils/elements/CellBarChart.d.ts +33 -0
  275. package/dist/types/components/bn-table/utils/elements/TableRow.d.ts +2 -1
  276. package/dist/types/components/bn-table/utils/elements/WaterfallBar.d.ts +21 -0
  277. package/dist/types/components/bn-table/utils/elements/index.d.ts +1 -0
  278. package/dist/types/components/bn-table/utils/factories/tableDataSetFactory.d.ts +13 -7
  279. package/dist/types/components/bn-table/utils/helper/DataQuery.d.ts +17 -0
  280. package/dist/types/components/bn-table/utils/helper/IntervalColumns.d.ts +37 -0
  281. package/dist/types/components/bn-table/utils/helper/WaterfallCalculator.d.ts +55 -0
  282. package/dist/types/components/bn-table/utils/helper/index.d.ts +2 -0
  283. package/dist/types/components/bn-table/utils/model/TableComponentConfig.d.ts +4 -0
  284. package/dist/types/components/bn-table/utils/model/index.d.ts +21 -0
  285. package/dist/types/components/bn-title/bn-title.d.ts +11 -1
  286. package/dist/types/components/bn-title/ibcs-title/ibcs-title.d.ts +2 -0
  287. package/dist/types/components/bn-title/ibcs-title/utils/Title.d.ts +1 -0
  288. package/dist/types/components.d.ts +1383 -82
  289. package/dist/types/context/context-protocol.d.ts +2 -0
  290. package/dist/types/stores/componentStyles.d.ts +41 -0
  291. package/dist/types/stores/createScopedStores.d.ts +2 -0
  292. package/dist/types/stores/ruleSets.d.ts +40 -0
  293. package/dist/types/utils/constants.d.ts +5 -0
  294. package/dist/types/utils/ibcsRuleSet.d.ts +6 -1
  295. package/dist/types/utils/model/ChartStyles.d.ts +2 -1
  296. package/dist/types/utils/sanitizeHtml.d.ts +6 -0
  297. package/dist/types/utils/validate.d.ts +12 -0
  298. package/dist/types/utils/withInheritedProps.d.ts +11 -0
  299. package/dist/types/utils/withRuleSet.d.ts +24 -0
  300. package/dist/types/utils/xy/FacetGrid.d.ts +27 -0
  301. package/dist/types/utils/xy/IsoCurves.d.ts +46 -0
  302. package/dist/types/utils/xy/NumericScale.d.ts +41 -0
  303. package/dist/types/utils/xy/PointLabeler.d.ts +58 -0
  304. package/dist/types/utils/xy/RadiusScale.d.ts +26 -0
  305. package/dist/types/utils/xy/SeriesPalette.d.ts +59 -0
  306. package/dist/types/utils/xy/VarianceMeasure.d.ts +37 -0
  307. package/dist/types/utils/xy/XYFrame.d.ts +44 -0
  308. package/dist/types/utils/xy/XYLegend.d.ts +43 -0
  309. package/dist/types/utils/xy/model/AxisConfig.d.ts +96 -0
  310. package/dist/types/utils/xy/model/ScaleFactorsXYChart.d.ts +36 -0
  311. package/dist/types/utils/xy/model/XYChartDataRow.d.ts +157 -0
  312. package/dist/types/utils/xy/model/XYChartStyle.d.ts +31 -0
  313. package/package.json +1 -1
  314. package/readme.md +7 -3
  315. package/dist/bn-template-engine/p-19f49fbc.entry.js +0 -1
  316. package/dist/bn-template-engine/p-3465fcdc.entry.js +0 -1
  317. package/dist/bn-template-engine/p-67746414.entry.js +0 -1
  318. package/dist/bn-template-engine/p-6b469808.entry.js +0 -1
  319. package/dist/bn-template-engine/p-86ca2d5e.entry.js +0 -1
  320. package/dist/bn-template-engine/p-Tx6omDWp.js +0 -1
  321. package/dist/bn-template-engine/p-d724ab88.entry.js +0 -1
  322. package/dist/bn-template-engine/p-efd3b67a.entry.js +0 -1
  323. package/dist/bn-template-engine/p-z9bPNFYF.js +0 -1
  324. package/dist/components/ibcsRuleSet.js +0 -1
  325. package/dist/components/scaling.js +0 -1
  326. package/dist/components/withInheritedProps.js +0 -1
@@ -1 +1 @@
1
- var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function e(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}class n extends Error{}class r extends n{constructor(t){super(`Invalid DateTime: ${t.toMessage()}`)}}class s extends n{constructor(t){super(`Invalid Interval: ${t.toMessage()}`)}}class i extends n{constructor(t){super(`Invalid Duration: ${t.toMessage()}`)}}class u extends n{}class o extends n{constructor(t){super(`Invalid unit ${t}`)}}class a extends n{}class c extends n{constructor(){super("Zone is an abstract class")}}const h="numeric",l="short",d="long",m={year:h,month:h,day:h},f={year:h,month:l,day:h},y={year:h,month:l,day:h,weekday:l},g={year:h,month:d,day:h},w={year:h,month:d,day:h,weekday:d},p={hour:h,minute:h},M={hour:h,minute:h,second:h},k={hour:h,minute:h,second:h,timeZoneName:l},S={hour:h,minute:h,second:h,timeZoneName:d},T={hour:h,minute:h,hourCycle:"h23"},N={hour:h,minute:h,second:h,hourCycle:"h23"},b={hour:h,minute:h,second:h,hourCycle:"h23",timeZoneName:l},v={hour:h,minute:h,second:h,hourCycle:"h23",timeZoneName:d},E={year:h,month:h,day:h,hour:h,minute:h},O={year:h,month:h,day:h,hour:h,minute:h,second:h},D={year:h,month:l,day:h,hour:h,minute:h},$={year:h,month:l,day:h,hour:h,minute:h,second:h},I={year:h,month:l,day:h,weekday:l,hour:h,minute:h},x={year:h,month:d,day:h,hour:h,minute:h,timeZoneName:l},F={year:h,month:d,day:h,hour:h,minute:h,second:h,timeZoneName:l},Z={year:h,month:d,day:h,weekday:d,hour:h,minute:h,timeZoneName:d},L={year:h,month:d,day:h,weekday:d,hour:h,minute:h,second:h,timeZoneName:d};class W{get type(){throw new c}get name(){throw new c}get ianaName(){return this.name}get isUniversal(){throw new c}offsetName(t,e){throw new c}formatOffset(t,e){throw new c}offset(t){throw new c}equals(t){throw new c}get isValid(){throw new c}}let A=null;class C extends W{static get instance(){return null===A&&(A=new C),A}get type(){return"system"}get name(){return(new Intl.DateTimeFormat).resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(t,{format:e,locale:n}){return re(t,e,n)}formatOffset(t,e){return oe(this.offset(t),e)}offset(t){return-new Date(t).getTimezoneOffset()}equals(t){return"system"===t.type}get isValid(){return!0}}const _=new Map,j={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6},q=new Map;class H extends W{static create(t){let e=q.get(t);return void 0===e&&q.set(t,e=new H(t)),e}static resetCache(){q.clear(),_.clear()}static isValidSpecifier(t){return this.isValidZone(t)}static isValidZone(t){if(!t)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:t}).format(),!0}catch(t){return!1}}constructor(t){super(),this.zoneName=t,this.valid=H.isValidZone(t)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(t,{format:e,locale:n}){return re(t,e,n,this.name)}formatOffset(t,e){return oe(this.offset(t),e)}offset(t){if(!this.valid)return NaN;const e=new Date(t);if(isNaN(e))return NaN;const n=function(t){let e=_.get(t);return void 0===e&&(e=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:t,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"}),_.set(t,e)),e}(this.name);let[r,s,i,u,o,a,c]=n.formatToParts?function(t,e){const n=t.formatToParts(e),r=[];for(let t=0;t<n.length;t++){const{type:e,value:s}=n[t],i=j[e];"era"===e?r[i]=s:At(i)||(r[i]=parseInt(s,10))}return r}(n,e):function(t,e){const n=t.format(e).replace(/\u200E/g,""),r=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(n),[,s,i,u,o,a,c,h]=r;return[u,s,i,o,a,c,h]}(n,e);"BC"===u&&(r=1-Math.abs(r));let h=+e;const l=h%1e3;return h-=l>=0?l:1e3+l,(Xt({year:r,month:s,day:i,hour:24===o?0:o,minute:a,second:c,millisecond:0})-h)/6e4}equals(t){return"iana"===t.type&&t.name===this.name}get isValid(){return this.valid}}let z={};const R=new Map;function U(t,e={}){const n=JSON.stringify([t,e]);let r=R.get(n);return void 0===r&&(r=new Intl.DateTimeFormat(t,e),R.set(n,r)),r}const J=new Map,G=new Map;let P=null;const Y=new Map;function V(t){let e=Y.get(t);return void 0===e&&(e=new Intl.DateTimeFormat(t).resolvedOptions(),Y.set(t,e)),e}const B=new Map;function Q(t,e,n,r){const s=t.listingMode();return"error"===s?null:"en"===s?n(e):r(e)}class K{constructor(t,e,n){this.padTo=n.padTo||0,this.floor=n.floor||!1;const{padTo:r,floor:s,...i}=n;if(!e||Object.keys(i).length>0){const e={useGrouping:!1,...n};n.padTo>0&&(e.minimumIntegerDigits=n.padTo),this.inf=function(t,e={}){const n=JSON.stringify([t,e]);let r=J.get(n);return void 0===r&&(r=new Intl.NumberFormat(t,e),J.set(n,r)),r}(t,e)}}format(t){if(this.inf){const e=this.floor?Math.floor(t):t;return this.inf.format(e)}return Jt(this.floor?Math.floor(t):Vt(t,3),this.padTo)}}class X{constructor(t,e,n){let r;if(this.opts=n,this.originalZone=void 0,this.opts.timeZone)this.dt=t;else if("fixed"===t.zone.type){const e=t.offset/60*-1,n=e>=0?`Etc/GMT+${e}`:`Etc/GMT${e}`;0!==t.offset&&H.create(n).valid?(r=n,this.dt=t):(r="UTC",this.dt=0===t.offset?t:t.setZone("UTC").plus({minutes:t.offset}),this.originalZone=t.zone)}else"system"===t.zone.type?this.dt=t:"iana"===t.zone.type?(this.dt=t,r=t.zone.name):(r="UTC",this.dt=t.setZone("UTC").plus({minutes:t.offset}),this.originalZone=t.zone);const s={...this.opts};s.timeZone=s.timeZone||r,this.dtf=U(e,s)}format(){return this.originalZone?this.formatToParts().map((({value:t})=>t)).join(""):this.dtf.format(this.dt.toJSDate())}formatToParts(){const t=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?t.map((t=>{if("timeZoneName"===t.type){const e=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...t,value:e}}return t})):t}resolvedOptions(){return this.dtf.resolvedOptions()}}class tt{constructor(t,e,n){this.opts={style:"long",...n},!e&&jt()&&(this.rtf=function(t,e={}){const{base:n,...r}=e,s=JSON.stringify([t,r]);let i=G.get(s);return void 0===i&&(i=new Intl.RelativeTimeFormat(t,e),G.set(s,i)),i}(t,n))}format(t,e){return this.rtf?this.rtf.format(t,e):function(t,e,n="always",r=!1){const s={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},i=-1===["hours","minutes","seconds"].indexOf(t);if("auto"===n&&i){const n="days"===t;switch(e){case 1:return n?"tomorrow":`next ${s[t][0]}`;case-1:return n?"yesterday":`last ${s[t][0]}`;case 0:return n?"today":`this ${s[t][0]}`}}const u=Object.is(e,-0)||e<0,o=Math.abs(e),a=1===o,c=s[t],h=r?a?c[1]:c[2]||c[1]:a?s[t][0]:t;return u?`${o} ${h} ago`:`in ${o} ${h}`}(e,t,this.opts.numeric,"long"!==this.opts.style)}formatToParts(t,e){return this.rtf?this.rtf.formatToParts(t,e):[]}}const et={firstDay:1,minimalDays:4,weekend:[6,7]};class nt{static fromOpts(t){return nt.create(t.locale,t.numberingSystem,t.outputCalendar,t.weekSettings,t.defaultToEN)}static create(t,e,n,r,s=!1){const i=t||kt.defaultLocale,u=i||(s?"en-US":P||(P=(new Intl.DateTimeFormat).resolvedOptions().locale,P)),o=e||kt.defaultNumberingSystem,a=n||kt.defaultOutputCalendar,c=Rt(r)||kt.defaultWeekSettings;return new nt(u,o,a,c,i)}static resetCache(){P=null,R.clear(),J.clear(),G.clear(),Y.clear(),B.clear()}static fromObject({locale:t,numberingSystem:e,outputCalendar:n,weekSettings:r}={}){return nt.create(t,e,n,r)}constructor(t,e,n,r,s){const[i,u,o]=function(t){const e=t.indexOf("-x-");-1!==e&&(t=t.substring(0,e));const n=t.indexOf("-u-");if(-1===n)return[t];{let e,r;try{e=U(t).resolvedOptions(),r=t}catch(s){const i=t.substring(0,n);e=U(i).resolvedOptions(),r=i}const{numberingSystem:s,calendar:i}=e;return[r,s,i]}}(t);this.locale=i,this.numberingSystem=e||u||null,this.outputCalendar=n||o||null,this.weekSettings=r,this.intl=function(t,e,n){return n||e?(t.includes("-u-")||(t+="-u"),n&&(t+=`-ca-${n}`),e&&(t+=`-nu-${e}`),t):t}(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=s,this.fastNumbersCached=null}get fastNumbers(){var t;return null==this.fastNumbersCached&&(this.fastNumbersCached=(!(t=this).numberingSystem||"latn"===t.numberingSystem)&&("latn"===t.numberingSystem||!t.locale||t.locale.startsWith("en")||"latn"===V(t.locale).numberingSystem)),this.fastNumbersCached}listingMode(){return this.isEnglish()&&!(null!==this.numberingSystem&&"latn"!==this.numberingSystem||null!==this.outputCalendar&&"gregory"!==this.outputCalendar)?"en":"intl"}clone(t){return t&&0!==Object.getOwnPropertyNames(t).length?nt.create(t.locale||this.specifiedLocale,t.numberingSystem||this.numberingSystem,t.outputCalendar||this.outputCalendar,Rt(t.weekSettings)||this.weekSettings,t.defaultToEN||!1):this}redefaultToEN(t={}){return this.clone({...t,defaultToEN:!0})}redefaultToSystem(t={}){return this.clone({...t,defaultToEN:!1})}months(t,e=!1){return Q(this,t,de,(()=>{const n="ja"===this.intl||this.intl.startsWith("ja-"),r=(e&=!n)?{month:t,day:"numeric"}:{month:t},s=e?"format":"standalone";return this.monthsCache[s][t]||(this.monthsCache[s][t]=function(t){const e=[];for(let n=1;n<=12;n++){const r=yr.utc(2009,n,1);e.push(t(r))}return e}(n?t=>this.dtFormatter(t,r).format():t=>this.extract(t,r,"month"))),this.monthsCache[s][t]}))}weekdays(t,e=!1){return Q(this,t,ge,(()=>{const n=e?{weekday:t,year:"numeric",month:"long",day:"numeric"}:{weekday:t},r=e?"format":"standalone";return this.weekdaysCache[r][t]||(this.weekdaysCache[r][t]=function(t){const e=[];for(let n=1;n<=7;n++){const r=yr.utc(2016,11,13+n);e.push(t(r))}return e}((t=>this.extract(t,n,"weekday")))),this.weekdaysCache[r][t]}))}meridiems(){return Q(this,void 0,(()=>we),(()=>{if(!this.meridiemCache){const t={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[yr.utc(2016,11,13,9),yr.utc(2016,11,13,19)].map((e=>this.extract(e,t,"dayperiod")))}return this.meridiemCache}))}eras(t){return Q(this,t,Se,(()=>{const e={era:t};return this.eraCache[t]||(this.eraCache[t]=[yr.utc(-40,1,1),yr.utc(2017,1,1)].map((t=>this.extract(t,e,"era")))),this.eraCache[t]}))}extract(t,e,n){const r=this.dtFormatter(t,e).formatToParts().find((t=>t.type.toLowerCase()===n));return r?r.value:null}numberFormatter(t={}){return new K(this.intl,t.forceSimple||this.fastNumbers,t)}dtFormatter(t,e={}){return new X(t,this.intl,e)}relFormatter(t={}){return new tt(this.intl,this.isEnglish(),t)}listFormatter(t={}){return function(t,e={}){const n=JSON.stringify([t,e]);let r=z[n];return r||(r=new Intl.ListFormat(t,e),z[n]=r),r}(this.intl,t)}isEnglish(){return"en"===this.locale||"en-us"===this.locale.toLowerCase()||V(this.intl).locale.startsWith("en-us")}getWeekSettings(){return this.weekSettings?this.weekSettings:qt()?function(t){let e=B.get(t);if(!e){const n=new Intl.Locale(t);e="getWeekInfo"in n?n.getWeekInfo():n.weekInfo,"minimalDays"in e||(e={...et,...e}),B.set(t,e)}return e}(this.locale):et}getStartOfWeek(){return this.getWeekSettings().firstDay}getMinDaysInFirstWeek(){return this.getWeekSettings().minimalDays}getWeekendDays(){return this.getWeekSettings().weekend}equals(t){return this.locale===t.locale&&this.numberingSystem===t.numberingSystem&&this.outputCalendar===t.outputCalendar}toString(){return`Locale(${this.locale}, ${this.numberingSystem}, ${this.outputCalendar})`}}let rt=null;class st extends W{static get utcInstance(){return null===rt&&(rt=new st(0)),rt}static instance(t){return 0===t?st.utcInstance:new st(t)}static parseSpecifier(t){if(t){const e=t.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(e)return new st(se(e[1],e[2]))}return null}constructor(t){super(),this.fixed=t}get type(){return"fixed"}get name(){return 0===this.fixed?"UTC":`UTC${oe(this.fixed,"narrow")}`}get ianaName(){return 0===this.fixed?"Etc/UTC":`Etc/GMT${oe(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(t,e){return oe(this.fixed,e)}get isUniversal(){return!0}offset(){return this.fixed}equals(t){return"fixed"===t.type&&t.fixed===this.fixed}get isValid(){return!0}}class it extends W{constructor(t){super(),this.zoneName=t}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return!1}get isValid(){return!1}}function ut(t,e){if(At(t)||null===t)return e;if(t instanceof W)return t;if("string"==typeof t){const n=t.toLowerCase();return"default"===n?e:"local"===n||"system"===n?C.instance:"utc"===n||"gmt"===n?st.utcInstance:st.parseSpecifier(n)||H.create(t)}return Ct(t)?st.instance(t):"object"==typeof t&&"offset"in t&&"function"==typeof t.offset?t:new it(t)}const ot={arab:"[٠-٩]",arabext:"[۰-۹]",bali:"[᭐-᭙]",beng:"[০-৯]",deva:"[०-९]",fullwide:"[0-9]",gujr:"[૦-૯]",hanidec:"[〇|一|二|三|四|五|六|七|八|九]",khmr:"[០-៩]",knda:"[೦-೯]",laoo:"[໐-໙]",limb:"[᥆-᥏]",mlym:"[൦-൯]",mong:"[᠐-᠙]",mymr:"[၀-၉]",orya:"[୦-୯]",tamldec:"[௦-௯]",telu:"[౦-౯]",thai:"[๐-๙]",tibt:"[༠-༩]",latn:"\\d"},at={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},ct=ot.hanidec.replace(/[\[|\]]/g,"").split(""),ht=new Map;function lt({numberingSystem:t},e=""){const n=t||"latn";let r=ht.get(n);void 0===r&&(r=new Map,ht.set(n,r));let s=r.get(e);return void 0===s&&(s=new RegExp(`${ot[n]}${e}`),r.set(e,s)),s}let dt,mt=()=>Date.now(),ft="system",yt=null,gt=null,wt=null,pt=60,Mt=null;class kt{static get now(){return mt}static set now(t){mt=t}static set defaultZone(t){ft=t}static get defaultZone(){return ut(ft,C.instance)}static get defaultLocale(){return yt}static set defaultLocale(t){yt=t}static get defaultNumberingSystem(){return gt}static set defaultNumberingSystem(t){gt=t}static get defaultOutputCalendar(){return wt}static set defaultOutputCalendar(t){wt=t}static get defaultWeekSettings(){return Mt}static set defaultWeekSettings(t){Mt=Rt(t)}static get twoDigitCutoffYear(){return pt}static set twoDigitCutoffYear(t){pt=t%100}static get throwOnInvalid(){return dt}static set throwOnInvalid(t){dt=t}static resetCaches(){nt.resetCache(),H.resetCache(),yr.resetCache(),ht.clear()}}class St{constructor(t,e){this.reason=t,this.explanation=e}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}const Tt=[0,31,59,90,120,151,181,212,243,273,304,334],Nt=[0,31,60,91,121,152,182,213,244,274,305,335];function bt(t,e){return new St("unit out of range",`you specified ${e} (of type ${typeof e}) as a ${t}, which is invalid`)}function vt(t,e,n){const r=new Date(Date.UTC(t,e-1,n));t<100&&t>=0&&r.setUTCFullYear(r.getUTCFullYear()-1900);const s=r.getUTCDay();return 0===s?7:s}function Et(t,e,n){return n+(Bt(t)?Nt:Tt)[e-1]}function Ot(t,e){const n=Bt(t)?Nt:Tt,r=n.findIndex((t=>t<e));return{month:r+1,day:e-n[r]}}function Dt(t,e){return(t-e+7)%7+1}function $t(t,e=4,n=1){const{year:r,month:s,day:i}=t,u=Et(r,s,i),o=Dt(vt(r,s,i),n);let a,c=Math.floor((u-o+14-e)/7);return c<1?(a=r-1,c=ee(a,e,n)):c>ee(r,e,n)?(a=r+1,c=1):a=r,{weekYear:a,weekNumber:c,weekday:o,...ae(t)}}function It(t,e=4,n=1){const{weekYear:r,weekNumber:s,weekday:i}=t,u=Dt(vt(r,1,e),n),o=Qt(r);let a,c=7*s+i-u-7+e;c<1?(a=r-1,c+=Qt(a)):c>o?(a=r+1,c-=Qt(r)):a=r;const{month:h,day:l}=Ot(a,c);return{year:a,month:h,day:l,...ae(t)}}function xt(t){const{year:e,month:n,day:r}=t;return{year:e,ordinal:Et(e,n,r),...ae(t)}}function Ft(t){const{year:e,ordinal:n}=t,{month:r,day:s}=Ot(e,n);return{year:e,month:r,day:s,...ae(t)}}function Zt(t,e){if(!At(t.localWeekday)||!At(t.localWeekNumber)||!At(t.localWeekYear)){if(!At(t.weekday)||!At(t.weekNumber)||!At(t.weekYear))throw new u("Cannot mix locale-based week fields with ISO-based week fields");return At(t.localWeekday)||(t.weekday=t.localWeekday),At(t.localWeekNumber)||(t.weekNumber=t.localWeekNumber),At(t.localWeekYear)||(t.weekYear=t.localWeekYear),delete t.localWeekday,delete t.localWeekNumber,delete t.localWeekYear,{minDaysInFirstWeek:e.getMinDaysInFirstWeek(),startOfWeek:e.getStartOfWeek()}}return{minDaysInFirstWeek:4,startOfWeek:1}}function Lt(t){const e=_t(t.year),n=Ut(t.month,1,12),r=Ut(t.day,1,Kt(t.year,t.month));return e?n?!r&&bt("day",t.day):bt("month",t.month):bt("year",t.year)}function Wt(t){const{hour:e,minute:n,second:r,millisecond:s}=t,i=Ut(e,0,23)||24===e&&0===n&&0===r&&0===s,u=Ut(n,0,59),o=Ut(r,0,59),a=Ut(s,0,999);return i?u?o?!a&&bt("millisecond",s):bt("second",r):bt("minute",n):bt("hour",e)}function At(t){return void 0===t}function Ct(t){return"number"==typeof t}function _t(t){return"number"==typeof t&&t%1==0}function jt(){try{return"undefined"!=typeof Intl&&!!Intl.RelativeTimeFormat}catch(t){return!1}}function qt(){try{return"undefined"!=typeof Intl&&!!Intl.Locale&&("weekInfo"in Intl.Locale.prototype||"getWeekInfo"in Intl.Locale.prototype)}catch(t){return!1}}function Ht(t,e,n){if(0!==t.length)return t.reduce(((t,r)=>{const s=[e(r),r];return t&&n(t[0],s[0])===t[0]?t:s}),null)[1]}function zt(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function Rt(t){if(null==t)return null;if("object"!=typeof t)throw new a("Week settings must be an object");if(!Ut(t.firstDay,1,7)||!Ut(t.minimalDays,1,7)||!Array.isArray(t.weekend)||t.weekend.some((t=>!Ut(t,1,7))))throw new a("Invalid week settings");return{firstDay:t.firstDay,minimalDays:t.minimalDays,weekend:Array.from(t.weekend)}}function Ut(t,e,n){return _t(t)&&t>=e&&t<=n}function Jt(t,e=2){let n;return n=t<0?"-"+(""+-t).padStart(e,"0"):(""+t).padStart(e,"0"),n}function Gt(t){return At(t)||null===t||""===t?void 0:parseInt(t,10)}function Pt(t){return At(t)||null===t||""===t?void 0:parseFloat(t)}function Yt(t){if(!At(t)&&null!==t&&""!==t){const e=1e3*parseFloat("0."+t);return Math.floor(e)}}function Vt(t,e,n="round"){const r=10**e;switch(n){case"expand":return t>0?Math.ceil(t*r)/r:Math.floor(t*r)/r;case"trunc":return Math.trunc(t*r)/r;case"round":return Math.round(t*r)/r;case"floor":return Math.floor(t*r)/r;case"ceil":return Math.ceil(t*r)/r;default:throw new RangeError(`Value rounding ${n} is out of range`)}}function Bt(t){return t%4==0&&(t%100!=0||t%400==0)}function Qt(t){return Bt(t)?366:365}function Kt(t,e){const n=(r=e-1)-12*Math.floor(r/12)+1;var r;return 2===n?Bt(t+(e-n)/12)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][n-1]}function Xt(t){let e=Date.UTC(t.year,t.month-1,t.day,t.hour,t.minute,t.second,t.millisecond);return t.year<100&&t.year>=0&&(e=new Date(e),e.setUTCFullYear(t.year,t.month-1,t.day)),+e}function te(t,e,n){return-Dt(vt(t,1,e),n)+e-1}function ee(t,e=4,n=1){const r=te(t,e,n),s=te(t+1,e,n);return(Qt(t)-r+s)/7}function ne(t){return t>99?t:t>kt.twoDigitCutoffYear?1900+t:2e3+t}function re(t,e,n,r=null){const s=new Date(t),i={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};r&&(i.timeZone=r);const u={timeZoneName:e,...i},o=new Intl.DateTimeFormat(n,u).formatToParts(s).find((t=>"timezonename"===t.type.toLowerCase()));return o?o.value:null}function se(t,e){let n=parseInt(t,10);Number.isNaN(n)&&(n=0);const r=parseInt(e,10)||0;return 60*n+(n<0||Object.is(n,-0)?-r:r)}function ie(t){const e=Number(t);if("boolean"==typeof t||""===t||!Number.isFinite(e))throw new a(`Invalid unit value ${t}`);return e}function ue(t,e){const n={};for(const r in t)if(zt(t,r)){const s=t[r];if(null==s)continue;n[e(r)]=ie(s)}return n}function oe(t,e){const n=Math.trunc(Math.abs(t/60)),r=Math.trunc(Math.abs(t%60)),s=t>=0?"+":"-";switch(e){case"short":return`${s}${Jt(n,2)}:${Jt(r,2)}`;case"narrow":return`${s}${n}${r>0?`:${r}`:""}`;case"techie":return`${s}${Jt(n,2)}${Jt(r,2)}`;default:throw new RangeError(`Value format ${e} is out of range for property format`)}}function ae(t){return function(t){return["hour","minute","second","millisecond"].reduce(((e,n)=>(e[n]=t[n],e)),{})}(t)}const ce=["January","February","March","April","May","June","July","August","September","October","November","December"],he=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],le=["J","F","M","A","M","J","J","A","S","O","N","D"];function de(t){switch(t){case"narrow":return[...le];case"short":return[...he];case"long":return[...ce];case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}const me=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],fe=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],ye=["M","T","W","T","F","S","S"];function ge(t){switch(t){case"narrow":return[...ye];case"short":return[...fe];case"long":return[...me];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const we=["AM","PM"],pe=["Before Christ","Anno Domini"],Me=["BC","AD"],ke=["B","A"];function Se(t){switch(t){case"narrow":return[...ke];case"short":return[...Me];case"long":return[...pe];default:return null}}function Te(t,e){let n="";for(const r of t)n+=r.literal?r.val:e(r.val);return n}const Ne={D:m,DD:f,DDD:g,DDDD:w,t:p,tt:M,ttt:k,tttt:S,T,TT:N,TTT:b,TTTT:v,f:E,ff:D,fff:x,ffff:Z,F:O,FF:$,FFF:F,FFFF:L};class be{static create(t,e={}){return new be(t,e)}static parseFormat(t){let e=null,n="",r=!1;const s=[];for(let i=0;i<t.length;i++){const u=t.charAt(i);"'"===u?((n.length>0||r)&&s.push({literal:r||/^\s+$/.test(n),val:""===n?"'":n}),e=null,n="",r=!r):r||u===e?n+=u:(n.length>0&&s.push({literal:/^\s+$/.test(n),val:n}),n=u,e=u)}return n.length>0&&s.push({literal:r||/^\s+$/.test(n),val:n}),s}static macroTokenToFormatOpts(t){return Ne[t]}constructor(t,e){this.opts=e,this.loc=t,this.systemLoc=null}formatWithSystemDefault(t,e){return null===this.systemLoc&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(t,{...this.opts,...e}).format()}dtFormatter(t,e={}){return this.loc.dtFormatter(t,{...this.opts,...e})}formatDateTime(t,e){return this.dtFormatter(t,e).format()}formatDateTimeParts(t,e){return this.dtFormatter(t,e).formatToParts()}formatInterval(t,e){return this.dtFormatter(t.start,e).dtf.formatRange(t.start.toJSDate(),t.end.toJSDate())}resolvedOptions(t,e){return this.dtFormatter(t,e).resolvedOptions()}num(t,e=0,n){if(this.opts.forceSimple)return Jt(t,e);const r={...this.opts};return e>0&&(r.padTo=e),n&&(r.signDisplay=n),this.loc.numberFormatter(r).format(t)}formatDateTimeFromString(t,e){const n="en"===this.loc.listingMode(),r=this.loc.outputCalendar&&"gregory"!==this.loc.outputCalendar,s=(e,n)=>this.loc.extract(t,e,n),i=e=>t.isOffsetFixed&&0===t.offset&&e.allowZ?"Z":t.isValid?t.zone.formatOffset(t.ts,e.format):"",u=(e,r)=>n?function(t,e){return de(e)[t.month-1]}(t,e):s(r?{month:e}:{month:e,day:"numeric"},"month"),o=(e,r)=>n?function(t,e){return ge(e)[t.weekday-1]}(t,e):s(r?{weekday:e}:{weekday:e,month:"long",day:"numeric"},"weekday"),a=e=>{const n=be.macroTokenToFormatOpts(e);return n?this.formatWithSystemDefault(t,n):e},c=e=>n?function(t,e){return Se(e)[t.year<0?0:1]}(t,e):s({era:e},"era");return Te(be.parseFormat(e),(e=>{switch(e){case"S":return this.num(t.millisecond);case"u":case"SSS":return this.num(t.millisecond,3);case"s":return this.num(t.second);case"ss":return this.num(t.second,2);case"uu":return this.num(Math.floor(t.millisecond/10),2);case"uuu":return this.num(Math.floor(t.millisecond/100));case"m":return this.num(t.minute);case"mm":return this.num(t.minute,2);case"h":return this.num(t.hour%12==0?12:t.hour%12);case"hh":return this.num(t.hour%12==0?12:t.hour%12,2);case"H":return this.num(t.hour);case"HH":return this.num(t.hour,2);case"Z":return i({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return i({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return i({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return t.zone.offsetName(t.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return t.zone.offsetName(t.ts,{format:"long",locale:this.loc.locale});case"z":return t.zoneName;case"a":return n?function(t){return we[t.hour<12?0:1]}(t):s({hour:"numeric",hourCycle:"h12"},"dayperiod");case"d":return r?s({day:"numeric"},"day"):this.num(t.day);case"dd":return r?s({day:"2-digit"},"day"):this.num(t.day,2);case"c":case"E":return this.num(t.weekday);case"ccc":return o("short",!0);case"cccc":return o("long",!0);case"ccccc":return o("narrow",!0);case"EEE":return o("short",!1);case"EEEE":return o("long",!1);case"EEEEE":return o("narrow",!1);case"L":return r?s({month:"numeric",day:"numeric"},"month"):this.num(t.month);case"LL":return r?s({month:"2-digit",day:"numeric"},"month"):this.num(t.month,2);case"LLL":return u("short",!0);case"LLLL":return u("long",!0);case"LLLLL":return u("narrow",!0);case"M":return r?s({month:"numeric"},"month"):this.num(t.month);case"MM":return r?s({month:"2-digit"},"month"):this.num(t.month,2);case"MMM":return u("short",!1);case"MMMM":return u("long",!1);case"MMMMM":return u("narrow",!1);case"y":return r?s({year:"numeric"},"year"):this.num(t.year);case"yy":return r?s({year:"2-digit"},"year"):this.num(t.year.toString().slice(-2),2);case"yyyy":return r?s({year:"numeric"},"year"):this.num(t.year,4);case"yyyyyy":return r?s({year:"numeric"},"year"):this.num(t.year,6);case"G":return c("short");case"GG":return c("long");case"GGGGG":return c("narrow");case"kk":return this.num(t.weekYear.toString().slice(-2),2);case"kkkk":return this.num(t.weekYear,4);case"W":return this.num(t.weekNumber);case"WW":return this.num(t.weekNumber,2);case"n":return this.num(t.localWeekNumber);case"nn":return this.num(t.localWeekNumber,2);case"ii":return this.num(t.localWeekYear.toString().slice(-2),2);case"iiii":return this.num(t.localWeekYear,4);case"o":return this.num(t.ordinal);case"ooo":return this.num(t.ordinal,3);case"q":return this.num(t.quarter);case"qq":return this.num(t.quarter,2);case"X":return this.num(Math.floor(t.ts/1e3));case"x":return this.num(t.ts);default:return a(e)}}))}formatDurationFromString(t,e){const n="negativeLargestOnly"===this.opts.signMode?-1:1,r=t=>{switch(t[0]){case"S":return"milliseconds";case"s":return"seconds";case"m":return"minutes";case"h":return"hours";case"d":return"days";case"w":return"weeks";case"M":return"months";case"y":return"years";default:return null}},s=be.parseFormat(e),i=s.reduce(((t,{literal:e,val:n})=>e?t:t.concat(n)),[]),u=t.shiftTo(...i.map(r).filter((t=>t)));return Te(s,((t,e)=>s=>{const i=r(s);if(i){const r=e.isNegativeDuration&&i!==e.largestUnit?n:1;let u;return u="negativeLargestOnly"===this.opts.signMode&&i!==e.largestUnit?"never":"all"===this.opts.signMode?"always":"auto",this.num(t.get(i)*r,s.length,u)}return s})(u,{isNegativeDuration:u<0,largestUnit:Object.keys(u.values)[0]}))}}const ve=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function Ee(...t){const e=t.reduce(((t,e)=>t+e.source),"");return RegExp(`^${e}$`)}function Oe(...t){return e=>t.reduce((([t,n,r],s)=>{const[i,u,o]=s(e,r);return[{...t,...i},u||n,o]}),[{},null,1]).slice(0,2)}function De(t,...e){if(null==t)return[null,null];for(const[n,r]of e){const e=n.exec(t);if(e)return r(e)}return[null,null]}function $e(...t){return(e,n)=>{const r={};let s;for(s=0;s<t.length;s++)r[t[s]]=Gt(e[n+s]);return[r,null,n+s]}}const Ie=/(?:([Zz])|([+-]\d\d)(?::?(\d\d))?)/,xe=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,Fe=RegExp(`${xe.source}(?:${Ie.source}?(?:\\[(${ve.source})\\])?)?`),Ze=RegExp(`(?:[Tt]${Fe.source})?`),Le=$e("weekYear","weekNumber","weekDay"),We=$e("year","ordinal"),Ae=RegExp(`${xe.source} ?(?:${Ie.source}|(${ve.source}))?`),Ce=RegExp(`(?: ${Ae.source})?`);function _e(t,e,n){const r=t[e];return At(r)?n:Gt(r)}function je(t,e){return[{hours:_e(t,e,0),minutes:_e(t,e+1,0),seconds:_e(t,e+2,0),milliseconds:Yt(t[e+3])},null,e+4]}function qe(t,e){const n=!t[e]&&!t[e+1],r=se(t[e+1],t[e+2]);return[{},n?null:st.instance(r),e+3]}function He(t,e){return[{},t[e]?H.create(t[e]):null,e+1]}const ze=RegExp(`^T?${xe.source}$`),Re=/^-?P(?:(?:(-?\d{1,20}(?:\.\d{1,20})?)Y)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20}(?:\.\d{1,20})?)W)?(?:(-?\d{1,20}(?:\.\d{1,20})?)D)?(?:T(?:(-?\d{1,20}(?:\.\d{1,20})?)H)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,20}))?S)?)?)$/;function Ue(t){const[e,n,r,s,i,u,o,a,c]=t,h="-"===e[0],l=a&&"-"===a[0],d=(t,e=!1)=>void 0!==t&&(e||t&&h)?-t:t;return[{years:d(Pt(n)),months:d(Pt(r)),weeks:d(Pt(s)),days:d(Pt(i)),hours:d(Pt(u)),minutes:d(Pt(o)),seconds:d(Pt(a),"-0"===a),milliseconds:d(Yt(c),l)}]}const Je={GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Ge(t,e,n,r,s,i,u){const o={year:2===e.length?ne(Gt(e)):Gt(e),month:he.indexOf(n)+1,day:Gt(r),hour:Gt(s),minute:Gt(i)};return u&&(o.second=Gt(u)),t&&(o.weekday=t.length>3?me.indexOf(t)+1:fe.indexOf(t)+1),o}const Pe=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function Ye(t){const[,e,n,r,s,i,u,o,a,c,h,l]=t,d=Ge(e,s,r,n,i,u,o);let m;return m=a?Je[a]:c?0:se(h,l),[d,new st(m)]}const Ve=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,Be=/^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,Qe=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function Ke(t){const[,e,n,r,s,i,u,o]=t;return[Ge(e,s,r,n,i,u,o),st.utcInstance]}function Xe(t){const[,e,n,r,s,i,u,o]=t;return[Ge(e,o,n,r,s,i,u),st.utcInstance]}const tn=Ee(/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,Ze),en=Ee(/(\d{4})-?W(\d\d)(?:-?(\d))?/,Ze),nn=Ee(/(\d{4})-?(\d{3})/,Ze),rn=Ee(Fe),sn=Oe((function(t,e){return[{year:_e(t,e),month:_e(t,e+1,1),day:_e(t,e+2,1)},null,e+3]}),je,qe,He),un=Oe(Le,je,qe,He),on=Oe(We,je,qe,He),an=Oe(je,qe,He),cn=Oe(je),hn=Ee(/(\d{4})-(\d\d)-(\d\d)/,Ce),ln=Ee(Ae),dn=Oe(je,qe,He),mn="Invalid Duration",fn={weeks:{days:7,hours:168,minutes:10080,seconds:604800,milliseconds:6048e5},days:{hours:24,minutes:1440,seconds:86400,milliseconds:864e5},hours:{minutes:60,seconds:3600,milliseconds:36e5},minutes:{seconds:60,milliseconds:6e4},seconds:{milliseconds:1e3}},yn={years:{quarters:4,months:12,weeks:52,days:365,hours:8760,minutes:525600,seconds:31536e3,milliseconds:31536e6},quarters:{months:3,weeks:13,days:91,hours:2184,minutes:131040,seconds:7862400,milliseconds:78624e5},months:{weeks:4,days:30,hours:720,minutes:43200,seconds:2592e3,milliseconds:2592e6},...fn},gn={years:{quarters:4,months:12,weeks:52.1775,days:365.2425,hours:8765.82,minutes:525949.2,seconds:525949.2*60,milliseconds:525949.2*60*1e3},quarters:{months:3,weeks:13.044375,days:91.310625,hours:2191.455,minutes:131487.3,seconds:525949.2*60/4,milliseconds:7889237999.999999},months:{weeks:4.3481250000000005,days:30.436875,hours:730.485,minutes:43829.1,seconds:2629746,milliseconds:2629746e3},...fn},wn=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],pn=wn.slice(0).reverse();function Mn(t,e,n=!1){const r={values:n?e.values:{...t.values,...e.values||{}},loc:t.loc.clone(e.loc),conversionAccuracy:e.conversionAccuracy||t.conversionAccuracy,matrix:e.matrix||t.matrix};return new Nn(r)}function kn(t,e){let n=e.milliseconds??0;for(const r of pn.slice(1))e[r]&&(n+=e[r]*t[r].milliseconds);return n}function Sn(t,e){const n=kn(t,e)<0?-1:1;wn.reduceRight(((r,s)=>{if(At(e[s]))return r;if(r){const i=t[s][r],u=Math.floor(e[r]*n/i);e[s]+=u*n,e[r]-=u*i*n}return s}),null),wn.reduce(((n,r)=>{if(At(e[r]))return n;if(n){const s=e[n]%1;e[n]-=s,e[r]+=s*t[n][r]}return r}),null)}function Tn(t){const e={};for(const[n,r]of Object.entries(t))0!==r&&(e[n]=r);return e}class Nn{constructor(t){const e="longterm"===t.conversionAccuracy||!1;let n=e?gn:yn;t.matrix&&(n=t.matrix),this.values=t.values,this.loc=t.loc||nt.create(),this.conversionAccuracy=e?"longterm":"casual",this.invalid=t.invalid||null,this.matrix=n,this.isLuxonDuration=!0}static fromMillis(t,e){return Nn.fromObject({milliseconds:t},e)}static fromObject(t,e={}){if(null==t||"object"!=typeof t)throw new a("Duration.fromObject: argument expected to be an object, got "+(null===t?"null":typeof t));return new Nn({values:ue(t,Nn.normalizeUnit),loc:nt.fromObject(e),conversionAccuracy:e.conversionAccuracy,matrix:e.matrix})}static fromDurationLike(t){if(Ct(t))return Nn.fromMillis(t);if(Nn.isDuration(t))return t;if("object"==typeof t)return Nn.fromObject(t);throw new a(`Unknown duration argument ${t} of type ${typeof t}`)}static fromISO(t,e){const[n]=function(t){return De(t,[Re,Ue])}(t);return n?Nn.fromObject(n,e):Nn.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static fromISOTime(t,e){const[n]=function(t){return De(t,[ze,cn])}(t);return n?Nn.fromObject(n,e):Nn.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static invalid(t,e=null){if(!t)throw new a("need to specify a reason the Duration is invalid");const n=t instanceof St?t:new St(t,e);if(kt.throwOnInvalid)throw new i(n);return new Nn({invalid:n})}static normalizeUnit(t){const e={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[t?t.toLowerCase():t];if(!e)throw new o(t);return e}static isDuration(t){return t&&t.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(t,e={}){const n={...e,floor:!1!==e.round&&!1!==e.floor};return this.isValid?be.create(this.loc,n).formatDurationFromString(this,t):mn}toHuman(t={}){if(!this.isValid)return mn;const e=!1!==t.showZeros,n=wn.map((n=>{const r=this.values[n];return At(r)||0===r&&!e?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...t,unit:n.slice(0,-1)}).format(r)})).filter((t=>t));return this.loc.listFormatter({type:"conjunction",style:t.listStyle||"narrow",...t}).format(n)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let t="P";return 0!==this.years&&(t+=this.years+"Y"),0===this.months&&0===this.quarters||(t+=this.months+3*this.quarters+"M"),0!==this.weeks&&(t+=this.weeks+"W"),0!==this.days&&(t+=this.days+"D"),0===this.hours&&0===this.minutes&&0===this.seconds&&0===this.milliseconds||(t+="T"),0!==this.hours&&(t+=this.hours+"H"),0!==this.minutes&&(t+=this.minutes+"M"),0===this.seconds&&0===this.milliseconds||(t+=Vt(this.seconds+this.milliseconds/1e3,3)+"S"),"P"===t&&(t+="T0S"),t}toISOTime(t={}){if(!this.isValid)return null;const e=this.toMillis();return e<0||e>=864e5?null:(t={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...t,includeOffset:!1},yr.fromMillis(e,{zone:"UTC"}).toISOTime(t))}toJSON(){return this.toISO()}toString(){return this.toISO()}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Duration { values: ${JSON.stringify(this.values)} }`:`Duration { Invalid, reason: ${this.invalidReason} }`}toMillis(){return this.isValid?kn(this.matrix,this.values):NaN}valueOf(){return this.toMillis()}plus(t){if(!this.isValid)return this;const e=Nn.fromDurationLike(t),n={};for(const t of wn)(zt(e.values,t)||zt(this.values,t))&&(n[t]=e.get(t)+this.get(t));return Mn(this,{values:n},!0)}minus(t){if(!this.isValid)return this;const e=Nn.fromDurationLike(t);return this.plus(e.negate())}mapUnits(t){if(!this.isValid)return this;const e={};for(const n of Object.keys(this.values))e[n]=ie(t(this.values[n],n));return Mn(this,{values:e},!0)}get(t){return this[Nn.normalizeUnit(t)]}set(t){return this.isValid?Mn(this,{values:{...this.values,...ue(t,Nn.normalizeUnit)}}):this}reconfigure({locale:t,numberingSystem:e,conversionAccuracy:n,matrix:r}={}){return Mn(this,{loc:this.loc.clone({locale:t,numberingSystem:e}),matrix:r,conversionAccuracy:n})}as(t){return this.isValid?this.shiftTo(t).get(t):NaN}normalize(){if(!this.isValid)return this;const t=this.toObject();return Sn(this.matrix,t),Mn(this,{values:t},!0)}rescale(){return this.isValid?Mn(this,{values:Tn(this.normalize().shiftToAll().toObject())},!0):this}shiftTo(...t){if(!this.isValid)return this;if(0===t.length)return this;t=t.map((t=>Nn.normalizeUnit(t)));const e={},n={},r=this.toObject();let s;for(const i of wn)if(t.indexOf(i)>=0){s=i;let t=0;for(const e in n)t+=this.matrix[e][i]*n[e],n[e]=0;Ct(r[i])&&(t+=r[i]);const u=Math.trunc(t);e[i]=u,n[i]=(1e3*t-1e3*u)/1e3}else Ct(r[i])&&(n[i]=r[i]);for(const t in n)0!==n[t]&&(e[s]+=t===s?n[t]:n[t]/this.matrix[s][t]);return Sn(this.matrix,e),Mn(this,{values:e},!0)}shiftToAll(){return this.isValid?this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"):this}negate(){if(!this.isValid)return this;const t={};for(const e of Object.keys(this.values))t[e]=0===this.values[e]?0:-this.values[e];return Mn(this,{values:t},!0)}removeZeros(){return this.isValid?Mn(this,{values:Tn(this.values)},!0):this}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return null===this.invalid}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(t){if(!this.isValid||!t.isValid)return!1;if(!this.loc.equals(t.loc))return!1;for(const r of wn)if(n=t.values[r],!(void 0===(e=this.values[r])||0===e?void 0===n||0===n:e===n))return!1;var e,n;return!0}}const bn="Invalid Interval";class vn{constructor(t){this.s=t.start,this.e=t.end,this.invalid=t.invalid||null,this.isLuxonInterval=!0}static invalid(t,e=null){if(!t)throw new a("need to specify a reason the Interval is invalid");const n=t instanceof St?t:new St(t,e);if(kt.throwOnInvalid)throw new s(n);return new vn({invalid:n})}static fromDateTimes(t,e){const n=gr(t),r=gr(e),s=function(t,e){return t&&t.isValid?e&&e.isValid?e<t?vn.invalid("end before start",`The end of an interval must be after its start, but you had start=${t.toISO()} and end=${e.toISO()}`):null:vn.invalid("missing or invalid end"):vn.invalid("missing or invalid start")}(n,r);return null==s?new vn({start:n,end:r}):s}static after(t,e){const n=Nn.fromDurationLike(e),r=gr(t);return vn.fromDateTimes(r,r.plus(n))}static before(t,e){const n=Nn.fromDurationLike(e),r=gr(t);return vn.fromDateTimes(r.minus(n),r)}static fromISO(t,e){const[n,r]=(t||"").split("/",2);if(n&&r){let t,s,i,u;try{t=yr.fromISO(n,e),s=t.isValid}catch(r){s=!1}try{i=yr.fromISO(r,e),u=i.isValid}catch(r){u=!1}if(s&&u)return vn.fromDateTimes(t,i);if(s){const n=Nn.fromISO(r,e);if(n.isValid)return vn.after(t,n)}else if(u){const t=Nn.fromISO(n,e);if(t.isValid)return vn.before(i,t)}}return vn.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static isInterval(t){return t&&t.isLuxonInterval||!1}get start(){return this.isValid?this.s:null}get end(){return this.isValid?this.e:null}get lastDateTime(){return this.isValid&&this.e?this.e.minus(1):null}get isValid(){return null===this.invalidReason}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}length(t="milliseconds"){return this.isValid?this.toDuration(t).get(t):NaN}count(t="milliseconds",e){if(!this.isValid)return NaN;const n=this.start.startOf(t,e);let r;return r=e?.useLocaleWeeks?this.end.reconfigure({locale:n.locale}):this.end,r=r.startOf(t,e),Math.floor(r.diff(n,t).get(t))+(r.valueOf()!==this.end.valueOf())}hasSame(t){return!!this.isValid&&(this.isEmpty()||this.e.minus(1).hasSame(this.s,t))}isEmpty(){return this.s.valueOf()===this.e.valueOf()}isAfter(t){return!!this.isValid&&this.s>t}isBefore(t){return!!this.isValid&&this.e<=t}contains(t){return!!this.isValid&&this.s<=t&&this.e>t}set({start:t,end:e}={}){return this.isValid?vn.fromDateTimes(t||this.s,e||this.e):this}splitAt(...t){if(!this.isValid)return[];const e=t.map(gr).filter((t=>this.contains(t))).sort(((t,e)=>t.toMillis()-e.toMillis())),n=[];let{s:r}=this,s=0;for(;r<this.e;){const t=e[s]||this.e,i=+t>+this.e?this.e:t;n.push(vn.fromDateTimes(r,i)),r=i,s+=1}return n}splitBy(t){const e=Nn.fromDurationLike(t);if(!this.isValid||!e.isValid||0===e.as("milliseconds"))return[];let n,{s:r}=this,s=1;const i=[];for(;r<this.e;){const t=this.start.plus(e.mapUnits((t=>t*s)));n=+t>+this.e?this.e:t,i.push(vn.fromDateTimes(r,n)),r=n,s+=1}return i}divideEqually(t){return this.isValid?this.splitBy(this.length()/t).slice(0,t):[]}overlaps(t){return this.e>t.s&&this.s<t.e}abutsStart(t){return!!this.isValid&&+this.e==+t.s}abutsEnd(t){return!!this.isValid&&+t.e==+this.s}engulfs(t){return!!this.isValid&&this.s<=t.s&&this.e>=t.e}equals(t){return!(!this.isValid||!t.isValid)&&this.s.equals(t.s)&&this.e.equals(t.e)}intersection(t){if(!this.isValid)return this;const e=this.s>t.s?this.s:t.s,n=this.e<t.e?this.e:t.e;return e>=n?null:vn.fromDateTimes(e,n)}union(t){return this.isValid?vn.fromDateTimes(this.s<t.s?this.s:t.s,this.e>t.e?this.e:t.e):this}static merge(t){const[e,n]=t.sort(((t,e)=>t.s-e.s)).reduce((([t,e],n)=>e?e.overlaps(n)||e.abutsStart(n)?[t,e.union(n)]:[t.concat([e]),n]:[t,n]),[[],null]);return n&&e.push(n),e}static xor(t){let e=null,n=0;const r=[],s=t.map((t=>[{time:t.s,type:"s"},{time:t.e,type:"e"}])),i=Array.prototype.concat(...s).sort(((t,e)=>t.time-e.time));for(const t of i)n+="s"===t.type?1:-1,1===n?e=t.time:(e&&+e!=+t.time&&r.push(vn.fromDateTimes(e,t.time)),e=null);return vn.merge(r)}difference(...t){return vn.xor([this].concat(t)).map((t=>this.intersection(t))).filter((t=>t&&!t.isEmpty()))}toString(){return this.isValid?`[${this.s.toISO()} – ${this.e.toISO()})`:bn}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Interval { start: ${this.s.toISO()}, end: ${this.e.toISO()} }`:`Interval { Invalid, reason: ${this.invalidReason} }`}toLocaleString(t=m,e={}){return this.isValid?be.create(this.s.loc.clone(e),t).formatInterval(this):bn}toISO(t){return this.isValid?`${this.s.toISO(t)}/${this.e.toISO(t)}`:bn}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:bn}toISOTime(t){return this.isValid?`${this.s.toISOTime(t)}/${this.e.toISOTime(t)}`:bn}toFormat(t,{separator:e=" – "}={}){return this.isValid?`${this.s.toFormat(t)}${e}${this.e.toFormat(t)}`:bn}toDuration(t,e){return this.isValid?this.e.diff(this.s,t,e):Nn.invalid(this.invalidReason)}mapEndpoints(t){return vn.fromDateTimes(t(this.s),t(this.e))}}class En{static hasDST(t=kt.defaultZone){const e=yr.now().setZone(t).set({month:12});return!t.isUniversal&&e.offset!==e.set({month:6}).offset}static isValidIANAZone(t){return H.isValidZone(t)}static normalizeZone(t){return ut(t,kt.defaultZone)}static getStartOfWeek({locale:t=null,locObj:e=null}={}){return(e||nt.create(t)).getStartOfWeek()}static getMinimumDaysInFirstWeek({locale:t=null,locObj:e=null}={}){return(e||nt.create(t)).getMinDaysInFirstWeek()}static getWeekendWeekdays({locale:t=null,locObj:e=null}={}){return(e||nt.create(t)).getWeekendDays().slice()}static months(t="long",{locale:e=null,numberingSystem:n=null,locObj:r=null,outputCalendar:s="gregory"}={}){return(r||nt.create(e,n,s)).months(t)}static monthsFormat(t="long",{locale:e=null,numberingSystem:n=null,locObj:r=null,outputCalendar:s="gregory"}={}){return(r||nt.create(e,n,s)).months(t,!0)}static weekdays(t="long",{locale:e=null,numberingSystem:n=null,locObj:r=null}={}){return(r||nt.create(e,n,null)).weekdays(t)}static weekdaysFormat(t="long",{locale:e=null,numberingSystem:n=null,locObj:r=null}={}){return(r||nt.create(e,n,null)).weekdays(t,!0)}static meridiems({locale:t=null}={}){return nt.create(t).meridiems()}static eras(t="short",{locale:e=null}={}){return nt.create(e,null,"gregory").eras(t)}static features(){return{relative:jt(),localeWeek:qt()}}}function On(t,e){const n=t=>t.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),r=n(e)-n(t);return Math.floor(Nn.fromMillis(r).as("days"))}function Dn(t,e=t=>t){return{regex:t,deser:([t])=>e(function(t){let e=parseInt(t,10);if(isNaN(e)){e="";for(let n=0;n<t.length;n++){const r=t.charCodeAt(n);if(-1!==t[n].search(ot.hanidec))e+=ct.indexOf(t[n]);else for(const t in at){const[n,s]=at[t];r>=n&&r<=s&&(e+=r-n)}}return parseInt(e,10)}return e}(t))}}const $n=`[ ${String.fromCharCode(160)}]`,In=new RegExp($n,"g");function xn(t){return t.replace(/\./g,"\\.?").replace(In,$n)}function Fn(t){return t.replace(/\./g,"").replace(In," ").toLowerCase()}function Zn(t,e){return null===t?null:{regex:RegExp(t.map(xn).join("|")),deser:([n])=>t.findIndex((t=>Fn(n)===Fn(t)))+e}}function Ln(t,e){return{regex:t,deser:([,t,e])=>se(t,e),groups:e}}function Wn(t){return{regex:t,deser:([t])=>t}}const An={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour12:{numeric:"h","2-digit":"hh"},hour24:{numeric:"H","2-digit":"HH"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"},timeZoneName:{long:"ZZZZZ",short:"ZZZ"}};let Cn=null;function _n(t,e){return Array.prototype.concat(...t.map((t=>function(t,e){if(t.literal)return t;const n=Hn(be.macroTokenToFormatOpts(t.val),e);return null==n||n.includes(void 0)?t:n}(t,e))))}class jn{constructor(t,e){if(this.locale=t,this.format=e,this.tokens=_n(be.parseFormat(e),t),this.units=this.tokens.map((e=>function(t,e){const n=lt(e),r=lt(e,"{2}"),s=lt(e,"{3}"),i=lt(e,"{4}"),u=lt(e,"{6}"),o=lt(e,"{1,2}"),a=lt(e,"{1,3}"),c=lt(e,"{1,6}"),h=lt(e,"{1,9}"),l=lt(e,"{2,4}"),d=lt(e,"{4,6}"),m=t=>{return{regex:RegExp((e=t.val,e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&"))),deser:([t])=>t,literal:!0};var e},f=(f=>{if(t.literal)return m(f);switch(f.val){case"G":return Zn(e.eras("short"),0);case"GG":return Zn(e.eras("long"),0);case"y":return Dn(c);case"yy":case"kk":return Dn(l,ne);case"yyyy":case"kkkk":return Dn(i);case"yyyyy":return Dn(d);case"yyyyyy":return Dn(u);case"M":case"L":case"d":case"H":case"h":case"m":case"q":case"s":case"W":return Dn(o);case"MM":case"LL":case"dd":case"HH":case"hh":case"mm":case"qq":case"ss":case"WW":return Dn(r);case"MMM":return Zn(e.months("short",!0),1);case"MMMM":return Zn(e.months("long",!0),1);case"LLL":return Zn(e.months("short",!1),1);case"LLLL":return Zn(e.months("long",!1),1);case"o":case"S":return Dn(a);case"ooo":case"SSS":return Dn(s);case"u":return Wn(h);case"uu":return Wn(o);case"uuu":case"E":case"c":return Dn(n);case"a":return Zn(e.meridiems(),0);case"EEE":return Zn(e.weekdays("short",!1),1);case"EEEE":return Zn(e.weekdays("long",!1),1);case"ccc":return Zn(e.weekdays("short",!0),1);case"cccc":return Zn(e.weekdays("long",!0),1);case"Z":case"ZZ":return Ln(new RegExp(`([+-]${o.source})(?::(${r.source}))?`),2);case"ZZZ":return Ln(new RegExp(`([+-]${o.source})(${r.source})?`),2);case"z":return Wn(/[a-z_+-/]{1,256}?/i);case" ":return Wn(/[^\S\n\r]/);default:return m(f)}})(t)||{invalidReason:"missing Intl.DateTimeFormat.formatToParts support"};return f.token=t,f}(e,t))),this.disqualifyingUnit=this.units.find((t=>t.invalidReason)),!this.disqualifyingUnit){const[t,e]=[`^${(n=this.units).map((t=>t.regex)).reduce(((t,e)=>`${t}(${e.source})`),"")}$`,n];this.regex=RegExp(t,"i"),this.handlers=e}var n}explainFromTokens(t){if(this.isValid){const[e,n]=function(t,e,n){const r=t.match(e);if(r){const t={};let e=1;for(const s in n)if(zt(n,s)){const i=n[s],u=i.groups?i.groups+1:1;!i.literal&&i.token&&(t[i.token.val[0]]=i.deser(r.slice(e,e+u))),e+=u}return[r,t]}return[r,{}]}(t,this.regex,this.handlers),[r,s,i]=n?function(t){let e,n=null;return At(t.z)||(n=H.create(t.z)),At(t.Z)||(n||(n=new st(t.Z)),e=t.Z),At(t.q)||(t.M=3*(t.q-1)+1),At(t.h)||(t.h<12&&1===t.a?t.h+=12:12===t.h&&0===t.a&&(t.h=0)),0===t.G&&t.y&&(t.y=-t.y),At(t.u)||(t.S=Yt(t.u)),[Object.keys(t).reduce(((e,n)=>{const r=(t=>{switch(t){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}})(n);return r&&(e[r]=t[n]),e}),{}),n,e]}(n):[null,null,void 0];if(zt(n,"a")&&zt(n,"H"))throw new u("Can't include meridiem when specifying 24-hour format");return{input:t,tokens:this.tokens,regex:this.regex,rawMatches:e,matches:n,result:r,zone:s,specificOffset:i}}return{input:t,tokens:this.tokens,invalidReason:this.invalidReason}}get isValid(){return!this.disqualifyingUnit}get invalidReason(){return this.disqualifyingUnit?this.disqualifyingUnit.invalidReason:null}}function qn(t,e,n){return new jn(t,n).explainFromTokens(e)}function Hn(t,e){if(!t)return null;const n=be.create(e,t).dtFormatter((Cn||(Cn=yr.fromMillis(1555555555555)),Cn)),r=n.formatToParts(),s=n.resolvedOptions();return r.map((e=>function(t,e,n){const{type:r,value:s}=t;if("literal"===r){const t=/^\s+$/.test(s);return{literal:!t,val:t?" ":s}}let i=r;"hour"===r&&(i=null!=e.hour12?e.hour12?"hour12":"hour24":null!=e.hourCycle?"h11"===e.hourCycle||"h12"===e.hourCycle?"hour12":"hour24":n.hour12?"hour12":"hour24");let u=An[i];if("object"==typeof u&&(u=u[e[r]]),u)return{literal:!1,val:u}}(e,t,s)))}const zn="Invalid DateTime",Rn=864e13;function Un(t){return new St("unsupported zone",`the zone "${t.name}" is not supported`)}function Jn(t){return null===t.weekData&&(t.weekData=$t(t.c)),t.weekData}function Gn(t){return null===t.localWeekData&&(t.localWeekData=$t(t.c,t.loc.getMinDaysInFirstWeek(),t.loc.getStartOfWeek())),t.localWeekData}function Pn(t,e){const n={ts:t.ts,zone:t.zone,c:t.c,o:t.o,loc:t.loc,invalid:t.invalid};return new yr({...n,...e,old:n})}function Yn(t,e,n){let r=t-60*e*1e3;const s=n.offset(r);if(e===s)return[r,e];r-=60*(s-e)*1e3;const i=n.offset(r);return s===i?[r,s]:[t-60*Math.min(s,i)*1e3,Math.max(s,i)]}function Vn(t,e){const n=new Date(t+=60*e*1e3);return{year:n.getUTCFullYear(),month:n.getUTCMonth()+1,day:n.getUTCDate(),hour:n.getUTCHours(),minute:n.getUTCMinutes(),second:n.getUTCSeconds(),millisecond:n.getUTCMilliseconds()}}function Bn(t,e,n){return Yn(Xt(t),e,n)}function Qn(t,e){const n=t.o,r=t.c.year+Math.trunc(e.years),s=t.c.month+Math.trunc(e.months)+3*Math.trunc(e.quarters),i={...t.c,year:r,month:s,day:Math.min(t.c.day,Kt(r,s))+Math.trunc(e.days)+7*Math.trunc(e.weeks)},u=Nn.fromObject({years:e.years-Math.trunc(e.years),quarters:e.quarters-Math.trunc(e.quarters),months:e.months-Math.trunc(e.months),weeks:e.weeks-Math.trunc(e.weeks),days:e.days-Math.trunc(e.days),hours:e.hours,minutes:e.minutes,seconds:e.seconds,milliseconds:e.milliseconds}).as("milliseconds"),o=Xt(i);let[a,c]=Yn(o,n,t.zone);return 0!==u&&(a+=u,c=t.zone.offset(a)),{ts:a,o:c}}function Kn(t,e,n,r,s,i){const{setZone:u,zone:o}=n;if(t&&0!==Object.keys(t).length||e){const r=e||o,s=yr.fromObject(t,{...n,zone:r,specificOffset:i});return u?s:s.setZone(o)}return yr.invalid(new St("unparsable",`the input "${s}" can't be parsed as ${r}`))}function Xn(t,e,n=!0){return t.isValid?be.create(nt.create("en-US"),{allowZ:n,forceSimple:!0}).formatDateTimeFromString(t,e):null}function tr(t,e,n){const r=t.c.year>9999||t.c.year<0;let s="";if(r&&t.c.year>=0&&(s+="+"),s+=Jt(t.c.year,r?6:4),"year"===n)return s;if(e){if(s+="-",s+=Jt(t.c.month),"month"===n)return s;s+="-"}else if(s+=Jt(t.c.month),"month"===n)return s;return s+=Jt(t.c.day),s}function er(t,e,n,r,s,i,u){let o=!n||0!==t.c.millisecond||0!==t.c.second,a="";switch(u){case"day":case"month":case"year":break;default:if(a+=Jt(t.c.hour),"hour"===u)break;if(e){if(a+=":",a+=Jt(t.c.minute),"minute"===u)break;o&&(a+=":",a+=Jt(t.c.second))}else{if(a+=Jt(t.c.minute),"minute"===u)break;o&&(a+=Jt(t.c.second))}if("second"===u)break;!o||r&&0===t.c.millisecond||(a+=".",a+=Jt(t.c.millisecond,3))}return s&&(t.isOffsetFixed&&0===t.offset&&!i?a+="Z":t.o<0?(a+="-",a+=Jt(Math.trunc(-t.o/60)),a+=":",a+=Jt(Math.trunc(-t.o%60))):(a+="+",a+=Jt(Math.trunc(t.o/60)),a+=":",a+=Jt(Math.trunc(t.o%60)))),i&&(a+="["+t.zone.ianaName+"]"),a}const nr={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},rr={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},sr={ordinal:1,hour:0,minute:0,second:0,millisecond:0},ir=["year","month","day","hour","minute","second","millisecond"],ur=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],or=["year","ordinal","hour","minute","second","millisecond"];function ar(t){const e={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[t.toLowerCase()];if(!e)throw new o(t);return e}function cr(t){switch(t.toLowerCase()){case"localweekday":case"localweekdays":return"localWeekday";case"localweeknumber":case"localweeknumbers":return"localWeekNumber";case"localweekyear":case"localweekyears":return"localWeekYear";default:return ar(t)}}function hr(t,e){const n=ut(e.zone,kt.defaultZone);if(!n.isValid)return yr.invalid(Un(n));const r=nt.fromObject(e);let s,i;if(At(t.year))s=kt.now();else{for(const e of ir)At(t[e])&&(t[e]=nr[e]);const e=Lt(t)||Wt(t);if(e)return yr.invalid(e);const r=function(t){if(void 0===mr&&(mr=kt.now()),"iana"!==t.type)return t.offset(mr);const e=t.name;let n=fr.get(e);return void 0===n&&(n=t.offset(mr),fr.set(e,n)),n}(n);[s,i]=Bn(t,r,n)}return new yr({ts:s,zone:n,loc:r,o:i})}function lr(t,e,n){const r=!!At(n.round)||n.round,s=At(n.rounding)?"trunc":n.rounding,i=(t,i)=>(t=Vt(t,r||n.calendary?0:2,n.calendary?"round":s),e.loc.clone(n).relFormatter(n).format(t,i)),u=r=>n.calendary?e.hasSame(t,r)?0:e.startOf(r).diff(t.startOf(r),r).get(r):e.diff(t,r).get(r);if(n.unit)return i(u(n.unit),n.unit);for(const t of n.units){const e=u(t);if(Math.abs(e)>=1)return i(e,t)}return i(t>e?-0:0,n.units[n.units.length-1])}function dr(t){let e,n={};return t.length>0&&"object"==typeof t[t.length-1]?(n=t[t.length-1],e=Array.from(t).slice(0,t.length-1)):e=Array.from(t),[n,e]}let mr;const fr=new Map;class yr{constructor(t){const e=t.zone||kt.defaultZone;let n=t.invalid||(Number.isNaN(t.ts)?new St("invalid input"):null)||(e.isValid?null:Un(e));this.ts=At(t.ts)?kt.now():t.ts;let r=null,s=null;if(!n)if(t.old&&t.old.ts===this.ts&&t.old.zone.equals(e))[r,s]=[t.old.c,t.old.o];else{const i=Ct(t.o)&&!t.old?t.o:e.offset(this.ts);r=Vn(this.ts,i),n=Number.isNaN(r.year)?new St("invalid input"):null,r=n?null:r,s=n?null:i}this._zone=e,this.loc=t.loc||nt.create(),this.invalid=n,this.weekData=null,this.localWeekData=null,this.c=r,this.o=s,this.isLuxonDateTime=!0}static now(){return new yr({})}static local(){const[t,e]=dr(arguments),[n,r,s,i,u,o,a]=e;return hr({year:n,month:r,day:s,hour:i,minute:u,second:o,millisecond:a},t)}static utc(){const[t,e]=dr(arguments),[n,r,s,i,u,o,a]=e;return t.zone=st.utcInstance,hr({year:n,month:r,day:s,hour:i,minute:u,second:o,millisecond:a},t)}static fromJSDate(t,e={}){const n="[object Date]"===Object.prototype.toString.call(t)?t.valueOf():NaN;if(Number.isNaN(n))return yr.invalid("invalid input");const r=ut(e.zone,kt.defaultZone);return r.isValid?new yr({ts:n,zone:r,loc:nt.fromObject(e)}):yr.invalid(Un(r))}static fromMillis(t,e={}){if(Ct(t))return t<-Rn||t>Rn?yr.invalid("Timestamp out of range"):new yr({ts:t,zone:ut(e.zone,kt.defaultZone),loc:nt.fromObject(e)});throw new a(`fromMillis requires a numerical input, but received a ${typeof t} with value ${t}`)}static fromSeconds(t,e={}){if(Ct(t))return new yr({ts:1e3*t,zone:ut(e.zone,kt.defaultZone),loc:nt.fromObject(e)});throw new a("fromSeconds requires a numerical input")}static fromObject(t,e={}){t=t||{};const n=ut(e.zone,kt.defaultZone);if(!n.isValid)return yr.invalid(Un(n));const r=nt.fromObject(e),s=ue(t,cr),{minDaysInFirstWeek:i,startOfWeek:o}=Zt(s,r),a=kt.now(),c=At(e.specificOffset)?n.offset(a):e.specificOffset,h=!At(s.ordinal),l=!At(s.year),d=!At(s.month)||!At(s.day),m=l||d,f=s.weekYear||s.weekNumber;if((m||h)&&f)throw new u("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(d&&h)throw new u("Can't mix ordinal dates with month/day");const y=f||s.weekday&&!m;let g,w,p=Vn(a,c);y?(g=ur,w=rr,p=$t(p,i,o)):h?(g=or,w=sr,p=xt(p)):(g=ir,w=nr);let M=!1;for(const t of g)At(s[t])?s[t]=M?w[t]:p[t]:M=!0;const k=y?function(t,e=4,n=1){const r=_t(t.weekYear),s=Ut(t.weekNumber,1,ee(t.weekYear,e,n)),i=Ut(t.weekday,1,7);return r?s?!i&&bt("weekday",t.weekday):bt("week",t.weekNumber):bt("weekYear",t.weekYear)}(s,i,o):h?function(t){const e=_t(t.year),n=Ut(t.ordinal,1,Qt(t.year));return e?!n&&bt("ordinal",t.ordinal):bt("year",t.year)}(s):Lt(s),S=k||Wt(s);if(S)return yr.invalid(S);const T=y?It(s,i,o):h?Ft(s):s,[N,b]=Bn(T,c,n),v=new yr({ts:N,zone:n,o:b,loc:r});return s.weekday&&m&&t.weekday!==v.weekday?yr.invalid("mismatched weekday",`you can't specify both a weekday of ${s.weekday} and a date of ${v.toISO()}`):v.isValid?v:yr.invalid(v.invalid)}static fromISO(t,e={}){const[n,r]=function(t){return De(t,[tn,sn],[en,un],[nn,on],[rn,an])}(t);return Kn(n,r,e,"ISO 8601",t)}static fromRFC2822(t,e={}){const[n,r]=function(t){return De(function(t){return t.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}(t),[Pe,Ye])}(t);return Kn(n,r,e,"RFC 2822",t)}static fromHTTP(t,e={}){const[n,r]=function(t){return De(t,[Ve,Ke],[Be,Ke],[Qe,Xe])}(t);return Kn(n,r,e,"HTTP",e)}static fromFormat(t,e,n={}){if(At(t)||At(e))throw new a("fromFormat requires an input string and a format");const{locale:r=null,numberingSystem:s=null}=n,i=nt.fromOpts({locale:r,numberingSystem:s,defaultToEN:!0}),[u,o,c,h]=function(t,e,n){const{result:r,zone:s,specificOffset:i,invalidReason:u}=qn(t,e,n);return[r,s,i,u]}(i,t,e);return h?yr.invalid(h):Kn(u,o,n,`format ${e}`,t,c)}static fromString(t,e,n={}){return yr.fromFormat(t,e,n)}static fromSQL(t,e={}){const[n,r]=function(t){return De(t,[hn,sn],[ln,dn])}(t);return Kn(n,r,e,"SQL",t)}static invalid(t,e=null){if(!t)throw new a("need to specify a reason the DateTime is invalid");const n=t instanceof St?t:new St(t,e);if(kt.throwOnInvalid)throw new r(n);return new yr({invalid:n})}static isDateTime(t){return t&&t.isLuxonDateTime||!1}static parseFormatForOpts(t,e={}){const n=Hn(t,nt.fromObject(e));return n?n.map((t=>t?t.val:null)).join(""):null}static expandFormat(t,e={}){return _n(be.parseFormat(t),nt.fromObject(e)).map((t=>t.val)).join("")}static resetCache(){mr=void 0,fr.clear()}get(t){return this[t]}get isValid(){return null===this.invalid}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?Jn(this).weekYear:NaN}get weekNumber(){return this.isValid?Jn(this).weekNumber:NaN}get weekday(){return this.isValid?Jn(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?Gn(this).weekday:NaN}get localWeekNumber(){return this.isValid?Gn(this).weekNumber:NaN}get localWeekYear(){return this.isValid?Gn(this).weekYear:NaN}get ordinal(){return this.isValid?xt(this.c).ordinal:NaN}get monthShort(){return this.isValid?En.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?En.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?En.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?En.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){return!this.isOffsetFixed&&(this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset)}getPossibleOffsets(){if(!this.isValid||this.isOffsetFixed)return[this];const t=864e5,e=6e4,n=Xt(this.c),r=this.zone.offset(n-t),s=this.zone.offset(n+t),i=this.zone.offset(n-r*e),u=this.zone.offset(n-s*e);if(i===u)return[this];const o=n-i*e,a=n-u*e,c=Vn(o,i),h=Vn(a,u);return c.hour===h.hour&&c.minute===h.minute&&c.second===h.second&&c.millisecond===h.millisecond?[Pn(this,{ts:o}),Pn(this,{ts:a})]:[this]}get isInLeapYear(){return Bt(this.year)}get daysInMonth(){return Kt(this.year,this.month)}get daysInYear(){return this.isValid?Qt(this.year):NaN}get weeksInWeekYear(){return this.isValid?ee(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?ee(this.localWeekYear,this.loc.getMinDaysInFirstWeek(),this.loc.getStartOfWeek()):NaN}resolvedLocaleOptions(t={}){const{locale:e,numberingSystem:n,calendar:r}=be.create(this.loc.clone(t),t).resolvedOptions(this);return{locale:e,numberingSystem:n,outputCalendar:r}}toUTC(t=0,e={}){return this.setZone(st.instance(t),e)}toLocal(){return this.setZone(kt.defaultZone)}setZone(t,{keepLocalTime:e=!1,keepCalendarTime:n=!1}={}){if((t=ut(t,kt.defaultZone)).equals(this.zone))return this;if(t.isValid){let r=this.ts;if(e||n){const e=t.offset(this.ts),n=this.toObject();[r]=Bn(n,e,t)}return Pn(this,{ts:r,zone:t})}return yr.invalid(Un(t))}reconfigure({locale:t,numberingSystem:e,outputCalendar:n}={}){return Pn(this,{loc:this.loc.clone({locale:t,numberingSystem:e,outputCalendar:n})})}setLocale(t){return this.reconfigure({locale:t})}set(t){if(!this.isValid)return this;const e=ue(t,cr),{minDaysInFirstWeek:n,startOfWeek:r}=Zt(e,this.loc),s=!At(e.weekYear)||!At(e.weekNumber)||!At(e.weekday),i=!At(e.ordinal),o=!At(e.year),a=!At(e.month)||!At(e.day);if((o||a||i)&&(e.weekYear||e.weekNumber))throw new u("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(a&&i)throw new u("Can't mix ordinal dates with month/day");let c;s?c=It({...$t(this.c,n,r),...e},n,r):At(e.ordinal)?(c={...this.toObject(),...e},At(e.day)&&(c.day=Math.min(Kt(c.year,c.month),c.day))):c=Ft({...xt(this.c),...e});const[h,l]=Bn(c,this.o,this.zone);return Pn(this,{ts:h,o:l})}plus(t){return this.isValid?Pn(this,Qn(this,Nn.fromDurationLike(t))):this}minus(t){return this.isValid?Pn(this,Qn(this,Nn.fromDurationLike(t).negate())):this}startOf(t,{useLocaleWeeks:e=!1}={}){if(!this.isValid)return this;const n={},r=Nn.normalizeUnit(t);switch(r){case"years":n.month=1;case"quarters":case"months":n.day=1;case"weeks":case"days":n.hour=0;case"hours":n.minute=0;case"minutes":n.second=0;case"seconds":n.millisecond=0}if("weeks"===r)if(e){const t=this.loc.getStartOfWeek(),{weekday:e}=this;e<t&&(n.weekNumber=this.weekNumber-1),n.weekday=t}else n.weekday=1;if("quarters"===r){const t=Math.ceil(this.month/3);n.month=3*(t-1)+1}return this.set(n)}endOf(t,e){return this.isValid?this.plus({[t]:1}).startOf(t,e).minus(1):this}toFormat(t,e={}){return this.isValid?be.create(this.loc.redefaultToEN(e)).formatDateTimeFromString(this,t):zn}toLocaleString(t=m,e={}){return this.isValid?be.create(this.loc.clone(e),t).formatDateTime(this):zn}toLocaleParts(t={}){return this.isValid?be.create(this.loc.clone(t),t).formatDateTimeParts(this):[]}toISO({format:t="extended",suppressSeconds:e=!1,suppressMilliseconds:n=!1,includeOffset:r=!0,extendedZone:s=!1,precision:i="milliseconds"}={}){if(!this.isValid)return null;const u="extended"===t;let o=tr(this,u,i=ar(i));return ir.indexOf(i)>=3&&(o+="T"),o+=er(this,u,e,n,r,s,i),o}toISODate({format:t="extended",precision:e="day"}={}){return this.isValid?tr(this,"extended"===t,ar(e)):null}toISOWeekDate(){return Xn(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:t=!1,suppressSeconds:e=!1,includeOffset:n=!0,includePrefix:r=!1,extendedZone:s=!1,format:i="extended",precision:u="milliseconds"}={}){return this.isValid?(u=ar(u),(r&&ir.indexOf(u)>=3?"T":"")+er(this,"extended"===i,e,t,n,s,u)):null}toRFC2822(){return Xn(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return Xn(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?tr(this,!0):null}toSQLTime({includeOffset:t=!0,includeZone:e=!1,includeOffsetSpace:n=!0}={}){let r="HH:mm:ss.SSS";return(e||t)&&(n&&(r+=" "),e?r+="z":t&&(r+="ZZ")),Xn(this,r,!0)}toSQL(t={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(t)}`:null}toString(){return this.isValid?this.toISO():zn}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`DateTime { ts: ${this.toISO()}, zone: ${this.zone.name}, locale: ${this.locale} }`:`DateTime { Invalid, reason: ${this.invalidReason} }`}valueOf(){return this.toMillis()}toMillis(){return this.isValid?this.ts:NaN}toSeconds(){return this.isValid?this.ts/1e3:NaN}toUnixInteger(){return this.isValid?Math.floor(this.ts/1e3):NaN}toJSON(){return this.toISO()}toBSON(){return this.toJSDate()}toObject(t={}){if(!this.isValid)return{};const e={...this.c};return t.includeConfig&&(e.outputCalendar=this.outputCalendar,e.numberingSystem=this.loc.numberingSystem,e.locale=this.loc.locale),e}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(t,e="milliseconds",n={}){if(!this.isValid||!t.isValid)return Nn.invalid("created by diffing an invalid DateTime");const r={locale:this.locale,numberingSystem:this.numberingSystem,...n},s=(o=e,Array.isArray(o)?o:[o]).map(Nn.normalizeUnit),i=t.valueOf()>this.valueOf(),u=function(t,e,n,r){let[s,i,u,o]=function(t,e,n){const r=[["years",(t,e)=>e.year-t.year],["quarters",(t,e)=>e.quarter-t.quarter+4*(e.year-t.year)],["months",(t,e)=>e.month-t.month+12*(e.year-t.year)],["weeks",(t,e)=>{const n=On(t,e);return(n-n%7)/7}],["days",On]],s={},i=t;let u,o;for(const[a,c]of r)n.indexOf(a)>=0&&(u=a,s[a]=c(t,e),o=i.plus(s),o>e?(s[a]--,(t=i.plus(s))>e&&(o=t,s[a]--,t=i.plus(s))):t=o);return[t,s,o,u]}(t,e,n);const a=e-s,c=n.filter((t=>["hours","minutes","seconds","milliseconds"].indexOf(t)>=0));0===c.length&&(u<e&&(u=s.plus({[o]:1})),u!==s&&(i[o]=(i[o]||0)+a/(u-s)));const h=Nn.fromObject(i,r);return c.length>0?Nn.fromMillis(a,r).shiftTo(...c).plus(h):h}(i?this:t,i?t:this,s,r);var o;return i?u.negate():u}diffNow(t="milliseconds",e={}){return this.diff(yr.now(),t,e)}until(t){return this.isValid?vn.fromDateTimes(this,t):this}hasSame(t,e,n){if(!this.isValid)return!1;const r=t.valueOf(),s=this.setZone(t.zone,{keepLocalTime:!0});return s.startOf(e,n)<=r&&r<=s.endOf(e,n)}equals(t){return this.isValid&&t.isValid&&this.valueOf()===t.valueOf()&&this.zone.equals(t.zone)&&this.loc.equals(t.loc)}toRelative(t={}){if(!this.isValid)return null;const e=t.base||yr.fromObject({},{zone:this.zone}),n=t.padding?this<e?-t.padding:t.padding:0;let r=["years","months","days","hours","minutes","seconds"],s=t.unit;return Array.isArray(t.unit)&&(r=t.unit,s=void 0),lr(e,this.plus(n),{...t,numeric:"always",units:r,unit:s})}toRelativeCalendar(t={}){return this.isValid?lr(t.base||yr.fromObject({},{zone:this.zone}),this,{...t,numeric:"auto",units:["years","months","days"],calendary:!0}):null}static min(...t){if(!t.every(yr.isDateTime))throw new a("min requires all arguments be DateTimes");return Ht(t,(t=>t.valueOf()),Math.min)}static max(...t){if(!t.every(yr.isDateTime))throw new a("max requires all arguments be DateTimes");return Ht(t,(t=>t.valueOf()),Math.max)}static fromFormatExplain(t,e,n={}){const{locale:r=null,numberingSystem:s=null}=n;return qn(nt.fromOpts({locale:r,numberingSystem:s,defaultToEN:!0}),t,e)}static fromStringExplain(t,e,n={}){return yr.fromFormatExplain(t,e,n)}static buildFormatParser(t,e={}){const{locale:n=null,numberingSystem:r=null}=e,s=nt.fromOpts({locale:n,numberingSystem:r,defaultToEN:!0});return new jn(s,t)}static fromFormatParser(t,e,n={}){if(At(t)||At(e))throw new a("fromFormatParser requires an input string and a format parser");const{locale:r=null,numberingSystem:s=null}=n,i=nt.fromOpts({locale:r,numberingSystem:s,defaultToEN:!0});if(!i.equals(e.locale))throw new a(`fromFormatParser called with a locale of ${i}, but the format parser was created for ${e.locale}`);const{result:u,zone:o,specificOffset:c,invalidReason:h}=e.explainFromTokens(t);return h?yr.invalid(h):Kn(u,o,n,`format ${e.format}`,t,c)}static get DATE_SHORT(){return m}static get DATE_MED(){return f}static get DATE_MED_WITH_WEEKDAY(){return y}static get DATE_FULL(){return g}static get DATE_HUGE(){return w}static get TIME_SIMPLE(){return p}static get TIME_WITH_SECONDS(){return M}static get TIME_WITH_SHORT_OFFSET(){return k}static get TIME_WITH_LONG_OFFSET(){return S}static get TIME_24_SIMPLE(){return T}static get TIME_24_WITH_SECONDS(){return N}static get TIME_24_WITH_SHORT_OFFSET(){return b}static get TIME_24_WITH_LONG_OFFSET(){return v}static get DATETIME_SHORT(){return E}static get DATETIME_SHORT_WITH_SECONDS(){return O}static get DATETIME_MED(){return D}static get DATETIME_MED_WITH_SECONDS(){return $}static get DATETIME_MED_WITH_WEEKDAY(){return I}static get DATETIME_FULL(){return x}static get DATETIME_FULL_WITH_SECONDS(){return F}static get DATETIME_HUGE(){return Z}static get DATETIME_HUGE_WITH_SECONDS(){return L}}function gr(t){if(yr.isDateTime(t))return t;if(t&&t.valueOf&&Ct(t.valueOf()))return yr.fromJSDate(t);if(t&&"object"==typeof t)return yr.fromObject(t);throw new a(`Unknown datetime argument: ${t}, of type ${typeof t}`)}export{yr as D,t as c,e as g}
1
+ const t={scenarios:{ac:{name:"AC",colorIndex:10,sortIndex:400},fc:{name:"FC",colorIndex:30,sortIndex:300},pl:{name:"PL",colorIndex:50,sortIndex:200},bu:{name:"BU",colorIndex:50,sortIndex:200},pp:{name:"PP",colorIndex:20,sortIndex:100},py:{name:"PY",colorIndex:20,sortIndex:100},dac:{name:"dAC",colorIndex:10,sortIndex:1400},dfc:{name:"dFC",colorIndex:30,sortIndex:1300},dpl:{name:"dPL",colorIndex:50,sortIndex:1200},dbu:{name:"dBU",colorIndex:50,sortIndex:1200},dpp:{name:"dPP",colorIndex:20,sortIndex:1100},dpy:{name:"dPY",colorIndex:20,sortIndex:1100},drac:{name:"drAC",colorIndex:10,sortIndex:2400},drfc:{name:"drFC",colorIndex:30,sortIndex:2300},drpl:{name:"drPL",colorIndex:50,sortIndex:2200},drbu:{name:"drBU",colorIndex:50,sortIndex:2200},drpp:{name:"drPP",colorIndex:20,sortIndex:2100},drpy:{name:"drPY",colorIndex:20,sortIndex:2100}},fallback:{name:"Series",group:"Series",colorIndex:10,sortIndex:120}};var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function n(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}class r extends Error{}class s extends r{constructor(t){super(`Invalid DateTime: ${t.toMessage()}`)}}class i extends r{constructor(t){super(`Invalid Interval: ${t.toMessage()}`)}}class u extends r{constructor(t){super(`Invalid Duration: ${t.toMessage()}`)}}class o extends r{}class a extends r{constructor(t){super(`Invalid unit ${t}`)}}class c extends r{}class l extends r{constructor(){super("Zone is an abstract class")}}const h="numeric",d="short",m="long",f={year:h,month:h,day:h},y={year:h,month:d,day:h},g={year:h,month:d,day:h,weekday:d},w={year:h,month:m,day:h},p={year:h,month:m,day:h,weekday:m},S={hour:h,minute:h},M={hour:h,minute:h,second:h},k={hour:h,minute:h,second:h,timeZoneName:d},T={hour:h,minute:h,second:h,timeZoneName:m},b={hour:h,minute:h,hourCycle:"h23"},N={hour:h,minute:h,second:h,hourCycle:"h23"},I={hour:h,minute:h,second:h,hourCycle:"h23",timeZoneName:d},v={hour:h,minute:h,second:h,hourCycle:"h23",timeZoneName:m},E={year:h,month:h,day:h,hour:h,minute:h},O={year:h,month:h,day:h,hour:h,minute:h,second:h},D={year:h,month:d,day:h,hour:h,minute:h},$={year:h,month:d,day:h,hour:h,minute:h,second:h},x={year:h,month:d,day:h,weekday:d,hour:h,minute:h},F={year:h,month:m,day:h,hour:h,minute:h,timeZoneName:d},L={year:h,month:m,day:h,hour:h,minute:h,second:h,timeZoneName:d},Z={year:h,month:m,day:h,weekday:m,hour:h,minute:h,timeZoneName:m},W={year:h,month:m,day:h,weekday:m,hour:h,minute:h,second:h,timeZoneName:m};class C{get type(){throw new l}get name(){throw new l}get ianaName(){return this.name}get isUniversal(){throw new l}offsetName(t,e){throw new l}formatOffset(t,e){throw new l}offset(t){throw new l}equals(t){throw new l}get isValid(){throw new l}}let A=null;class _ extends C{static get instance(){return null===A&&(A=new _),A}get type(){return"system"}get name(){return(new Intl.DateTimeFormat).resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(t,{format:e,locale:n}){return se(t,e,n)}formatOffset(t,e){return ae(this.offset(t),e)}offset(t){return-new Date(t).getTimezoneOffset()}equals(t){return"system"===t.type}get isValid(){return!0}}const j=new Map,q={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6},H=new Map;class P extends C{static create(t){let e=H.get(t);return void 0===e&&H.set(t,e=new P(t)),e}static resetCache(){H.clear(),j.clear()}static isValidSpecifier(t){return this.isValidZone(t)}static isValidZone(t){if(!t)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:t}).format(),!0}catch(t){return!1}}constructor(t){super(),this.zoneName=t,this.valid=P.isValidZone(t)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(t,{format:e,locale:n}){return se(t,e,n,this.name)}formatOffset(t,e){return ae(this.offset(t),e)}offset(t){if(!this.valid)return NaN;const e=new Date(t);if(isNaN(e))return NaN;const n=function(t){let e=j.get(t);return void 0===e&&(e=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:t,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"}),j.set(t,e)),e}(this.name);let[r,s,i,u,o,a,c]=n.formatToParts?function(t,e){const n=t.formatToParts(e),r=[];for(let t=0;t<n.length;t++){const{type:e,value:s}=n[t],i=q[e];"era"===e?r[i]=s:At(i)||(r[i]=parseInt(s,10))}return r}(n,e):function(t,e){const n=t.format(e).replace(/\u200E/g,""),r=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(n),[,s,i,u,o,a,c,l]=r;return[u,s,i,o,a,c,l]}(n,e);"BC"===u&&(r=1-Math.abs(r));let l=+e;const h=l%1e3;return l-=h>=0?h:1e3+h,(te({year:r,month:s,day:i,hour:24===o?0:o,minute:a,second:c,millisecond:0})-l)/6e4}equals(t){return"iana"===t.type&&t.name===this.name}get isValid(){return this.valid}}let U={};const z=new Map;function R(t,e={}){const n=JSON.stringify([t,e]);let r=z.get(n);return void 0===r&&(r=new Intl.DateTimeFormat(t,e),z.set(n,r)),r}const J=new Map,Y=new Map;let G=null;const V=new Map;function B(t){let e=V.get(t);return void 0===e&&(e=new Intl.DateTimeFormat(t).resolvedOptions(),V.set(t,e)),e}const Q=new Map;function K(t,e,n,r){const s=t.listingMode();return"error"===s?null:"en"===s?n(e):r(e)}class X{constructor(t,e,n){this.padTo=n.padTo||0,this.floor=n.floor||!1;const{padTo:r,floor:s,...i}=n;if(!e||Object.keys(i).length>0){const e={useGrouping:!1,...n};n.padTo>0&&(e.minimumIntegerDigits=n.padTo),this.inf=function(t,e={}){const n=JSON.stringify([t,e]);let r=J.get(n);return void 0===r&&(r=new Intl.NumberFormat(t,e),J.set(n,r)),r}(t,e)}}format(t){if(this.inf){const e=this.floor?Math.floor(t):t;return this.inf.format(e)}return Jt(this.floor?Math.floor(t):Bt(t,3),this.padTo)}}class tt{constructor(t,e,n){let r;if(this.opts=n,this.originalZone=void 0,this.opts.timeZone)this.dt=t;else if("fixed"===t.zone.type){const e=t.offset/60*-1,n=e>=0?`Etc/GMT+${e}`:`Etc/GMT${e}`;0!==t.offset&&P.create(n).valid?(r=n,this.dt=t):(r="UTC",this.dt=0===t.offset?t:t.setZone("UTC").plus({minutes:t.offset}),this.originalZone=t.zone)}else"system"===t.zone.type?this.dt=t:"iana"===t.zone.type?(this.dt=t,r=t.zone.name):(r="UTC",this.dt=t.setZone("UTC").plus({minutes:t.offset}),this.originalZone=t.zone);const s={...this.opts};s.timeZone=s.timeZone||r,this.dtf=R(e,s)}format(){return this.originalZone?this.formatToParts().map((({value:t})=>t)).join(""):this.dtf.format(this.dt.toJSDate())}formatToParts(){const t=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?t.map((t=>{if("timeZoneName"===t.type){const e=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...t,value:e}}return t})):t}resolvedOptions(){return this.dtf.resolvedOptions()}}class et{constructor(t,e,n){this.opts={style:"long",...n},!e&&qt()&&(this.rtf=function(t,e={}){const{base:n,...r}=e,s=JSON.stringify([t,r]);let i=Y.get(s);return void 0===i&&(i=new Intl.RelativeTimeFormat(t,e),Y.set(s,i)),i}(t,n))}format(t,e){return this.rtf?this.rtf.format(t,e):function(t,e,n="always",r=!1){const s={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},i=-1===["hours","minutes","seconds"].indexOf(t);if("auto"===n&&i){const n="days"===t;switch(e){case 1:return n?"tomorrow":`next ${s[t][0]}`;case-1:return n?"yesterday":`last ${s[t][0]}`;case 0:return n?"today":`this ${s[t][0]}`}}const u=Object.is(e,-0)||e<0,o=Math.abs(e),a=1===o,c=s[t],l=r?a?c[1]:c[2]||c[1]:a?s[t][0]:t;return u?`${o} ${l} ago`:`in ${o} ${l}`}(e,t,this.opts.numeric,"long"!==this.opts.style)}formatToParts(t,e){return this.rtf?this.rtf.formatToParts(t,e):[]}}const nt={firstDay:1,minimalDays:4,weekend:[6,7]};class rt{static fromOpts(t){return rt.create(t.locale,t.numberingSystem,t.outputCalendar,t.weekSettings,t.defaultToEN)}static create(t,e,n,r,s=!1){const i=t||kt.defaultLocale,u=i||(s?"en-US":G||(G=(new Intl.DateTimeFormat).resolvedOptions().locale,G)),o=e||kt.defaultNumberingSystem,a=n||kt.defaultOutputCalendar,c=zt(r)||kt.defaultWeekSettings;return new rt(u,o,a,c,i)}static resetCache(){G=null,z.clear(),J.clear(),Y.clear(),V.clear(),Q.clear()}static fromObject({locale:t,numberingSystem:e,outputCalendar:n,weekSettings:r}={}){return rt.create(t,e,n,r)}constructor(t,e,n,r,s){const[i,u,o]=function(t){const e=t.indexOf("-x-");-1!==e&&(t=t.substring(0,e));const n=t.indexOf("-u-");if(-1===n)return[t];{let e,r;try{e=R(t).resolvedOptions(),r=t}catch(s){const i=t.substring(0,n);e=R(i).resolvedOptions(),r=i}const{numberingSystem:s,calendar:i}=e;return[r,s,i]}}(t);this.locale=i,this.numberingSystem=e||u||null,this.outputCalendar=n||o||null,this.weekSettings=r,this.intl=function(t,e,n){return n||e?(t.includes("-u-")||(t+="-u"),n&&(t+=`-ca-${n}`),e&&(t+=`-nu-${e}`),t):t}(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=s,this.fastNumbersCached=null}get fastNumbers(){var t;return null==this.fastNumbersCached&&(this.fastNumbersCached=(!(t=this).numberingSystem||"latn"===t.numberingSystem)&&("latn"===t.numberingSystem||!t.locale||t.locale.startsWith("en")||"latn"===B(t.locale).numberingSystem)),this.fastNumbersCached}listingMode(){return this.isEnglish()&&!(null!==this.numberingSystem&&"latn"!==this.numberingSystem||null!==this.outputCalendar&&"gregory"!==this.outputCalendar)?"en":"intl"}clone(t){return t&&0!==Object.getOwnPropertyNames(t).length?rt.create(t.locale||this.specifiedLocale,t.numberingSystem||this.numberingSystem,t.outputCalendar||this.outputCalendar,zt(t.weekSettings)||this.weekSettings,t.defaultToEN||!1):this}redefaultToEN(t={}){return this.clone({...t,defaultToEN:!0})}redefaultToSystem(t={}){return this.clone({...t,defaultToEN:!1})}months(t,e=!1){return K(this,t,me,(()=>{const n="ja"===this.intl||this.intl.startsWith("ja-"),r=(e&=!n)?{month:t,day:"numeric"}:{month:t},s=e?"format":"standalone";return this.monthsCache[s][t]||(this.monthsCache[s][t]=function(t){const e=[];for(let n=1;n<=12;n++){const r=gr.utc(2009,n,1);e.push(t(r))}return e}(n?t=>this.dtFormatter(t,r).format():t=>this.extract(t,r,"month"))),this.monthsCache[s][t]}))}weekdays(t,e=!1){return K(this,t,we,(()=>{const n=e?{weekday:t,year:"numeric",month:"long",day:"numeric"}:{weekday:t},r=e?"format":"standalone";return this.weekdaysCache[r][t]||(this.weekdaysCache[r][t]=function(t){const e=[];for(let n=1;n<=7;n++){const r=gr.utc(2016,11,13+n);e.push(t(r))}return e}((t=>this.extract(t,n,"weekday")))),this.weekdaysCache[r][t]}))}meridiems(){return K(this,void 0,(()=>pe),(()=>{if(!this.meridiemCache){const t={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[gr.utc(2016,11,13,9),gr.utc(2016,11,13,19)].map((e=>this.extract(e,t,"dayperiod")))}return this.meridiemCache}))}eras(t){return K(this,t,Te,(()=>{const e={era:t};return this.eraCache[t]||(this.eraCache[t]=[gr.utc(-40,1,1),gr.utc(2017,1,1)].map((t=>this.extract(t,e,"era")))),this.eraCache[t]}))}extract(t,e,n){const r=this.dtFormatter(t,e).formatToParts().find((t=>t.type.toLowerCase()===n));return r?r.value:null}numberFormatter(t={}){return new X(this.intl,t.forceSimple||this.fastNumbers,t)}dtFormatter(t,e={}){return new tt(t,this.intl,e)}relFormatter(t={}){return new et(this.intl,this.isEnglish(),t)}listFormatter(t={}){return function(t,e={}){const n=JSON.stringify([t,e]);let r=U[n];return r||(r=new Intl.ListFormat(t,e),U[n]=r),r}(this.intl,t)}isEnglish(){return"en"===this.locale||"en-us"===this.locale.toLowerCase()||B(this.intl).locale.startsWith("en-us")}getWeekSettings(){return this.weekSettings?this.weekSettings:Ht()?function(t){let e=Q.get(t);if(!e){const n=new Intl.Locale(t);e="getWeekInfo"in n?n.getWeekInfo():n.weekInfo,"minimalDays"in e||(e={...nt,...e}),Q.set(t,e)}return e}(this.locale):nt}getStartOfWeek(){return this.getWeekSettings().firstDay}getMinDaysInFirstWeek(){return this.getWeekSettings().minimalDays}getWeekendDays(){return this.getWeekSettings().weekend}equals(t){return this.locale===t.locale&&this.numberingSystem===t.numberingSystem&&this.outputCalendar===t.outputCalendar}toString(){return`Locale(${this.locale}, ${this.numberingSystem}, ${this.outputCalendar})`}}let st=null;class it extends C{static get utcInstance(){return null===st&&(st=new it(0)),st}static instance(t){return 0===t?it.utcInstance:new it(t)}static parseSpecifier(t){if(t){const e=t.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(e)return new it(ie(e[1],e[2]))}return null}constructor(t){super(),this.fixed=t}get type(){return"fixed"}get name(){return 0===this.fixed?"UTC":`UTC${ae(this.fixed,"narrow")}`}get ianaName(){return 0===this.fixed?"Etc/UTC":`Etc/GMT${ae(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(t,e){return ae(this.fixed,e)}get isUniversal(){return!0}offset(){return this.fixed}equals(t){return"fixed"===t.type&&t.fixed===this.fixed}get isValid(){return!0}}class ut extends C{constructor(t){super(),this.zoneName=t}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return!1}get isValid(){return!1}}function ot(t,e){if(At(t)||null===t)return e;if(t instanceof C)return t;if("string"==typeof t){const n=t.toLowerCase();return"default"===n?e:"local"===n||"system"===n?_.instance:"utc"===n||"gmt"===n?it.utcInstance:it.parseSpecifier(n)||P.create(t)}return _t(t)?it.instance(t):"object"==typeof t&&"offset"in t&&"function"==typeof t.offset?t:new ut(t)}const at={arab:"[٠-٩]",arabext:"[۰-۹]",bali:"[᭐-᭙]",beng:"[০-৯]",deva:"[०-९]",fullwide:"[0-9]",gujr:"[૦-૯]",hanidec:"[〇|一|二|三|四|五|六|七|八|九]",khmr:"[០-៩]",knda:"[೦-೯]",laoo:"[໐-໙]",limb:"[᥆-᥏]",mlym:"[൦-൯]",mong:"[᠐-᠙]",mymr:"[၀-၉]",orya:"[୦-୯]",tamldec:"[௦-௯]",telu:"[౦-౯]",thai:"[๐-๙]",tibt:"[༠-༩]",latn:"\\d"},ct={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},lt=at.hanidec.replace(/[\[|\]]/g,"").split(""),ht=new Map;function dt({numberingSystem:t},e=""){const n=t||"latn";let r=ht.get(n);void 0===r&&(r=new Map,ht.set(n,r));let s=r.get(e);return void 0===s&&(s=new RegExp(`${at[n]}${e}`),r.set(e,s)),s}let mt,ft=()=>Date.now(),yt="system",gt=null,wt=null,pt=null,St=60,Mt=null;class kt{static get now(){return ft}static set now(t){ft=t}static set defaultZone(t){yt=t}static get defaultZone(){return ot(yt,_.instance)}static get defaultLocale(){return gt}static set defaultLocale(t){gt=t}static get defaultNumberingSystem(){return wt}static set defaultNumberingSystem(t){wt=t}static get defaultOutputCalendar(){return pt}static set defaultOutputCalendar(t){pt=t}static get defaultWeekSettings(){return Mt}static set defaultWeekSettings(t){Mt=zt(t)}static get twoDigitCutoffYear(){return St}static set twoDigitCutoffYear(t){St=t%100}static get throwOnInvalid(){return mt}static set throwOnInvalid(t){mt=t}static resetCaches(){rt.resetCache(),P.resetCache(),gr.resetCache(),ht.clear()}}class Tt{constructor(t,e){this.reason=t,this.explanation=e}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}const bt=[0,31,59,90,120,151,181,212,243,273,304,334],Nt=[0,31,60,91,121,152,182,213,244,274,305,335];function It(t,e){return new Tt("unit out of range",`you specified ${e} (of type ${typeof e}) as a ${t}, which is invalid`)}function vt(t,e,n){const r=new Date(Date.UTC(t,e-1,n));t<100&&t>=0&&r.setUTCFullYear(r.getUTCFullYear()-1900);const s=r.getUTCDay();return 0===s?7:s}function Et(t,e,n){return n+(Qt(t)?Nt:bt)[e-1]}function Ot(t,e){const n=Qt(t)?Nt:bt,r=n.findIndex((t=>t<e));return{month:r+1,day:e-n[r]}}function Dt(t,e){return(t-e+7)%7+1}function $t(t,e=4,n=1){const{year:r,month:s,day:i}=t,u=Et(r,s,i),o=Dt(vt(r,s,i),n);let a,c=Math.floor((u-o+14-e)/7);return c<1?(a=r-1,c=ne(a,e,n)):c>ne(r,e,n)?(a=r+1,c=1):a=r,{weekYear:a,weekNumber:c,weekday:o,...ce(t)}}function xt(t,e=4,n=1){const{weekYear:r,weekNumber:s,weekday:i}=t,u=Dt(vt(r,1,e),n),o=Kt(r);let a,c=7*s+i-u-7+e;c<1?(a=r-1,c+=Kt(a)):c>o?(a=r+1,c-=Kt(r)):a=r;const{month:l,day:h}=Ot(a,c);return{year:a,month:l,day:h,...ce(t)}}function Ft(t){const{year:e,month:n,day:r}=t;return{year:e,ordinal:Et(e,n,r),...ce(t)}}function Lt(t){const{year:e,ordinal:n}=t,{month:r,day:s}=Ot(e,n);return{year:e,month:r,day:s,...ce(t)}}function Zt(t,e){if(!At(t.localWeekday)||!At(t.localWeekNumber)||!At(t.localWeekYear)){if(!At(t.weekday)||!At(t.weekNumber)||!At(t.weekYear))throw new o("Cannot mix locale-based week fields with ISO-based week fields");return At(t.localWeekday)||(t.weekday=t.localWeekday),At(t.localWeekNumber)||(t.weekNumber=t.localWeekNumber),At(t.localWeekYear)||(t.weekYear=t.localWeekYear),delete t.localWeekday,delete t.localWeekNumber,delete t.localWeekYear,{minDaysInFirstWeek:e.getMinDaysInFirstWeek(),startOfWeek:e.getStartOfWeek()}}return{minDaysInFirstWeek:4,startOfWeek:1}}function Wt(t){const e=jt(t.year),n=Rt(t.month,1,12),r=Rt(t.day,1,Xt(t.year,t.month));return e?n?!r&&It("day",t.day):It("month",t.month):It("year",t.year)}function Ct(t){const{hour:e,minute:n,second:r,millisecond:s}=t,i=Rt(e,0,23)||24===e&&0===n&&0===r&&0===s,u=Rt(n,0,59),o=Rt(r,0,59),a=Rt(s,0,999);return i?u?o?!a&&It("millisecond",s):It("second",r):It("minute",n):It("hour",e)}function At(t){return void 0===t}function _t(t){return"number"==typeof t}function jt(t){return"number"==typeof t&&t%1==0}function qt(){try{return"undefined"!=typeof Intl&&!!Intl.RelativeTimeFormat}catch(t){return!1}}function Ht(){try{return"undefined"!=typeof Intl&&!!Intl.Locale&&("weekInfo"in Intl.Locale.prototype||"getWeekInfo"in Intl.Locale.prototype)}catch(t){return!1}}function Pt(t,e,n){if(0!==t.length)return t.reduce(((t,r)=>{const s=[e(r),r];return t&&n(t[0],s[0])===t[0]?t:s}),null)[1]}function Ut(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function zt(t){if(null==t)return null;if("object"!=typeof t)throw new c("Week settings must be an object");if(!Rt(t.firstDay,1,7)||!Rt(t.minimalDays,1,7)||!Array.isArray(t.weekend)||t.weekend.some((t=>!Rt(t,1,7))))throw new c("Invalid week settings");return{firstDay:t.firstDay,minimalDays:t.minimalDays,weekend:Array.from(t.weekend)}}function Rt(t,e,n){return jt(t)&&t>=e&&t<=n}function Jt(t,e=2){let n;return n=t<0?"-"+(""+-t).padStart(e,"0"):(""+t).padStart(e,"0"),n}function Yt(t){return At(t)||null===t||""===t?void 0:parseInt(t,10)}function Gt(t){return At(t)||null===t||""===t?void 0:parseFloat(t)}function Vt(t){if(!At(t)&&null!==t&&""!==t){const e=1e3*parseFloat("0."+t);return Math.floor(e)}}function Bt(t,e,n="round"){const r=10**e;switch(n){case"expand":return t>0?Math.ceil(t*r)/r:Math.floor(t*r)/r;case"trunc":return Math.trunc(t*r)/r;case"round":return Math.round(t*r)/r;case"floor":return Math.floor(t*r)/r;case"ceil":return Math.ceil(t*r)/r;default:throw new RangeError(`Value rounding ${n} is out of range`)}}function Qt(t){return t%4==0&&(t%100!=0||t%400==0)}function Kt(t){return Qt(t)?366:365}function Xt(t,e){const n=(r=e-1)-12*Math.floor(r/12)+1;var r;return 2===n?Qt(t+(e-n)/12)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][n-1]}function te(t){let e=Date.UTC(t.year,t.month-1,t.day,t.hour,t.minute,t.second,t.millisecond);return t.year<100&&t.year>=0&&(e=new Date(e),e.setUTCFullYear(t.year,t.month-1,t.day)),+e}function ee(t,e,n){return-Dt(vt(t,1,e),n)+e-1}function ne(t,e=4,n=1){const r=ee(t,e,n),s=ee(t+1,e,n);return(Kt(t)-r+s)/7}function re(t){return t>99?t:t>kt.twoDigitCutoffYear?1900+t:2e3+t}function se(t,e,n,r=null){const s=new Date(t),i={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};r&&(i.timeZone=r);const u={timeZoneName:e,...i},o=new Intl.DateTimeFormat(n,u).formatToParts(s).find((t=>"timezonename"===t.type.toLowerCase()));return o?o.value:null}function ie(t,e){let n=parseInt(t,10);Number.isNaN(n)&&(n=0);const r=parseInt(e,10)||0;return 60*n+(n<0||Object.is(n,-0)?-r:r)}function ue(t){const e=Number(t);if("boolean"==typeof t||""===t||!Number.isFinite(e))throw new c(`Invalid unit value ${t}`);return e}function oe(t,e){const n={};for(const r in t)if(Ut(t,r)){const s=t[r];if(null==s)continue;n[e(r)]=ue(s)}return n}function ae(t,e){const n=Math.trunc(Math.abs(t/60)),r=Math.trunc(Math.abs(t%60)),s=t>=0?"+":"-";switch(e){case"short":return`${s}${Jt(n,2)}:${Jt(r,2)}`;case"narrow":return`${s}${n}${r>0?`:${r}`:""}`;case"techie":return`${s}${Jt(n,2)}${Jt(r,2)}`;default:throw new RangeError(`Value format ${e} is out of range for property format`)}}function ce(t){return function(t){return["hour","minute","second","millisecond"].reduce(((e,n)=>(e[n]=t[n],e)),{})}(t)}const le=["January","February","March","April","May","June","July","August","September","October","November","December"],he=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],de=["J","F","M","A","M","J","J","A","S","O","N","D"];function me(t){switch(t){case"narrow":return[...de];case"short":return[...he];case"long":return[...le];case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}const fe=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],ye=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],ge=["M","T","W","T","F","S","S"];function we(t){switch(t){case"narrow":return[...ge];case"short":return[...ye];case"long":return[...fe];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const pe=["AM","PM"],Se=["Before Christ","Anno Domini"],Me=["BC","AD"],ke=["B","A"];function Te(t){switch(t){case"narrow":return[...ke];case"short":return[...Me];case"long":return[...Se];default:return null}}function be(t,e){let n="";for(const r of t)n+=r.literal?r.val:e(r.val);return n}const Ne={D:f,DD:y,DDD:w,DDDD:p,t:S,tt:M,ttt:k,tttt:T,T:b,TT:N,TTT:I,TTTT:v,f:E,ff:D,fff:F,ffff:Z,F:O,FF:$,FFF:L,FFFF:W};class Ie{static create(t,e={}){return new Ie(t,e)}static parseFormat(t){let e=null,n="",r=!1;const s=[];for(let i=0;i<t.length;i++){const u=t.charAt(i);"'"===u?((n.length>0||r)&&s.push({literal:r||/^\s+$/.test(n),val:""===n?"'":n}),e=null,n="",r=!r):r||u===e?n+=u:(n.length>0&&s.push({literal:/^\s+$/.test(n),val:n}),n=u,e=u)}return n.length>0&&s.push({literal:r||/^\s+$/.test(n),val:n}),s}static macroTokenToFormatOpts(t){return Ne[t]}constructor(t,e){this.opts=e,this.loc=t,this.systemLoc=null}formatWithSystemDefault(t,e){return null===this.systemLoc&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(t,{...this.opts,...e}).format()}dtFormatter(t,e={}){return this.loc.dtFormatter(t,{...this.opts,...e})}formatDateTime(t,e){return this.dtFormatter(t,e).format()}formatDateTimeParts(t,e){return this.dtFormatter(t,e).formatToParts()}formatInterval(t,e){return this.dtFormatter(t.start,e).dtf.formatRange(t.start.toJSDate(),t.end.toJSDate())}resolvedOptions(t,e){return this.dtFormatter(t,e).resolvedOptions()}num(t,e=0,n){if(this.opts.forceSimple)return Jt(t,e);const r={...this.opts};return e>0&&(r.padTo=e),n&&(r.signDisplay=n),this.loc.numberFormatter(r).format(t)}formatDateTimeFromString(t,e){const n="en"===this.loc.listingMode(),r=this.loc.outputCalendar&&"gregory"!==this.loc.outputCalendar,s=(e,n)=>this.loc.extract(t,e,n),i=e=>t.isOffsetFixed&&0===t.offset&&e.allowZ?"Z":t.isValid?t.zone.formatOffset(t.ts,e.format):"",u=(e,r)=>n?function(t,e){return me(e)[t.month-1]}(t,e):s(r?{month:e}:{month:e,day:"numeric"},"month"),o=(e,r)=>n?function(t,e){return we(e)[t.weekday-1]}(t,e):s(r?{weekday:e}:{weekday:e,month:"long",day:"numeric"},"weekday"),a=e=>{const n=Ie.macroTokenToFormatOpts(e);return n?this.formatWithSystemDefault(t,n):e},c=e=>n?function(t,e){return Te(e)[t.year<0?0:1]}(t,e):s({era:e},"era");return be(Ie.parseFormat(e),(e=>{switch(e){case"S":return this.num(t.millisecond);case"u":case"SSS":return this.num(t.millisecond,3);case"s":return this.num(t.second);case"ss":return this.num(t.second,2);case"uu":return this.num(Math.floor(t.millisecond/10),2);case"uuu":return this.num(Math.floor(t.millisecond/100));case"m":return this.num(t.minute);case"mm":return this.num(t.minute,2);case"h":return this.num(t.hour%12==0?12:t.hour%12);case"hh":return this.num(t.hour%12==0?12:t.hour%12,2);case"H":return this.num(t.hour);case"HH":return this.num(t.hour,2);case"Z":return i({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return i({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return i({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return t.zone.offsetName(t.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return t.zone.offsetName(t.ts,{format:"long",locale:this.loc.locale});case"z":return t.zoneName;case"a":return n?function(t){return pe[t.hour<12?0:1]}(t):s({hour:"numeric",hourCycle:"h12"},"dayperiod");case"d":return r?s({day:"numeric"},"day"):this.num(t.day);case"dd":return r?s({day:"2-digit"},"day"):this.num(t.day,2);case"c":case"E":return this.num(t.weekday);case"ccc":return o("short",!0);case"cccc":return o("long",!0);case"ccccc":return o("narrow",!0);case"EEE":return o("short",!1);case"EEEE":return o("long",!1);case"EEEEE":return o("narrow",!1);case"L":return r?s({month:"numeric",day:"numeric"},"month"):this.num(t.month);case"LL":return r?s({month:"2-digit",day:"numeric"},"month"):this.num(t.month,2);case"LLL":return u("short",!0);case"LLLL":return u("long",!0);case"LLLLL":return u("narrow",!0);case"M":return r?s({month:"numeric"},"month"):this.num(t.month);case"MM":return r?s({month:"2-digit"},"month"):this.num(t.month,2);case"MMM":return u("short",!1);case"MMMM":return u("long",!1);case"MMMMM":return u("narrow",!1);case"y":return r?s({year:"numeric"},"year"):this.num(t.year);case"yy":return r?s({year:"2-digit"},"year"):this.num(t.year.toString().slice(-2),2);case"yyyy":return r?s({year:"numeric"},"year"):this.num(t.year,4);case"yyyyyy":return r?s({year:"numeric"},"year"):this.num(t.year,6);case"G":return c("short");case"GG":return c("long");case"GGGGG":return c("narrow");case"kk":return this.num(t.weekYear.toString().slice(-2),2);case"kkkk":return this.num(t.weekYear,4);case"W":return this.num(t.weekNumber);case"WW":return this.num(t.weekNumber,2);case"n":return this.num(t.localWeekNumber);case"nn":return this.num(t.localWeekNumber,2);case"ii":return this.num(t.localWeekYear.toString().slice(-2),2);case"iiii":return this.num(t.localWeekYear,4);case"o":return this.num(t.ordinal);case"ooo":return this.num(t.ordinal,3);case"q":return this.num(t.quarter);case"qq":return this.num(t.quarter,2);case"X":return this.num(Math.floor(t.ts/1e3));case"x":return this.num(t.ts);default:return a(e)}}))}formatDurationFromString(t,e){const n="negativeLargestOnly"===this.opts.signMode?-1:1,r=t=>{switch(t[0]){case"S":return"milliseconds";case"s":return"seconds";case"m":return"minutes";case"h":return"hours";case"d":return"days";case"w":return"weeks";case"M":return"months";case"y":return"years";default:return null}},s=Ie.parseFormat(e),i=s.reduce(((t,{literal:e,val:n})=>e?t:t.concat(n)),[]),u=t.shiftTo(...i.map(r).filter((t=>t)));return be(s,((t,e)=>s=>{const i=r(s);if(i){const r=e.isNegativeDuration&&i!==e.largestUnit?n:1;let u;return u="negativeLargestOnly"===this.opts.signMode&&i!==e.largestUnit?"never":"all"===this.opts.signMode?"always":"auto",this.num(t.get(i)*r,s.length,u)}return s})(u,{isNegativeDuration:u<0,largestUnit:Object.keys(u.values)[0]}))}}const ve=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function Ee(...t){const e=t.reduce(((t,e)=>t+e.source),"");return RegExp(`^${e}$`)}function Oe(...t){return e=>t.reduce((([t,n,r],s)=>{const[i,u,o]=s(e,r);return[{...t,...i},u||n,o]}),[{},null,1]).slice(0,2)}function De(t,...e){if(null==t)return[null,null];for(const[n,r]of e){const e=n.exec(t);if(e)return r(e)}return[null,null]}function $e(...t){return(e,n)=>{const r={};let s;for(s=0;s<t.length;s++)r[t[s]]=Yt(e[n+s]);return[r,null,n+s]}}const xe=/(?:([Zz])|([+-]\d\d)(?::?(\d\d))?)/,Fe=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,Le=RegExp(`${Fe.source}(?:${xe.source}?(?:\\[(${ve.source})\\])?)?`),Ze=RegExp(`(?:[Tt]${Le.source})?`),We=$e("weekYear","weekNumber","weekDay"),Ce=$e("year","ordinal"),Ae=RegExp(`${Fe.source} ?(?:${xe.source}|(${ve.source}))?`),_e=RegExp(`(?: ${Ae.source})?`);function je(t,e,n){const r=t[e];return At(r)?n:Yt(r)}function qe(t,e){return[{hours:je(t,e,0),minutes:je(t,e+1,0),seconds:je(t,e+2,0),milliseconds:Vt(t[e+3])},null,e+4]}function He(t,e){const n=!t[e]&&!t[e+1],r=ie(t[e+1],t[e+2]);return[{},n?null:it.instance(r),e+3]}function Pe(t,e){return[{},t[e]?P.create(t[e]):null,e+1]}const Ue=RegExp(`^T?${Fe.source}$`),ze=/^-?P(?:(?:(-?\d{1,20}(?:\.\d{1,20})?)Y)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20}(?:\.\d{1,20})?)W)?(?:(-?\d{1,20}(?:\.\d{1,20})?)D)?(?:T(?:(-?\d{1,20}(?:\.\d{1,20})?)H)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,20}))?S)?)?)$/;function Re(t){const[e,n,r,s,i,u,o,a,c]=t,l="-"===e[0],h=a&&"-"===a[0],d=(t,e=!1)=>void 0!==t&&(e||t&&l)?-t:t;return[{years:d(Gt(n)),months:d(Gt(r)),weeks:d(Gt(s)),days:d(Gt(i)),hours:d(Gt(u)),minutes:d(Gt(o)),seconds:d(Gt(a),"-0"===a),milliseconds:d(Vt(c),h)}]}const Je={GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Ye(t,e,n,r,s,i,u){const o={year:2===e.length?re(Yt(e)):Yt(e),month:he.indexOf(n)+1,day:Yt(r),hour:Yt(s),minute:Yt(i)};return u&&(o.second=Yt(u)),t&&(o.weekday=t.length>3?fe.indexOf(t)+1:ye.indexOf(t)+1),o}const Ge=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function Ve(t){const[,e,n,r,s,i,u,o,a,c,l,h]=t,d=Ye(e,s,r,n,i,u,o);let m;return m=a?Je[a]:c?0:ie(l,h),[d,new it(m)]}const Be=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,Qe=/^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,Ke=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function Xe(t){const[,e,n,r,s,i,u,o]=t;return[Ye(e,s,r,n,i,u,o),it.utcInstance]}function tn(t){const[,e,n,r,s,i,u,o]=t;return[Ye(e,o,n,r,s,i,u),it.utcInstance]}const en=Ee(/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,Ze),nn=Ee(/(\d{4})-?W(\d\d)(?:-?(\d))?/,Ze),rn=Ee(/(\d{4})-?(\d{3})/,Ze),sn=Ee(Le),un=Oe((function(t,e){return[{year:je(t,e),month:je(t,e+1,1),day:je(t,e+2,1)},null,e+3]}),qe,He,Pe),on=Oe(We,qe,He,Pe),an=Oe(Ce,qe,He,Pe),cn=Oe(qe,He,Pe),ln=Oe(qe),hn=Ee(/(\d{4})-(\d\d)-(\d\d)/,_e),dn=Ee(Ae),mn=Oe(qe,He,Pe),fn="Invalid Duration",yn={weeks:{days:7,hours:168,minutes:10080,seconds:604800,milliseconds:6048e5},days:{hours:24,minutes:1440,seconds:86400,milliseconds:864e5},hours:{minutes:60,seconds:3600,milliseconds:36e5},minutes:{seconds:60,milliseconds:6e4},seconds:{milliseconds:1e3}},gn={years:{quarters:4,months:12,weeks:52,days:365,hours:8760,minutes:525600,seconds:31536e3,milliseconds:31536e6},quarters:{months:3,weeks:13,days:91,hours:2184,minutes:131040,seconds:7862400,milliseconds:78624e5},months:{weeks:4,days:30,hours:720,minutes:43200,seconds:2592e3,milliseconds:2592e6},...yn},wn={years:{quarters:4,months:12,weeks:52.1775,days:365.2425,hours:8765.82,minutes:525949.2,seconds:525949.2*60,milliseconds:525949.2*60*1e3},quarters:{months:3,weeks:13.044375,days:91.310625,hours:2191.455,minutes:131487.3,seconds:525949.2*60/4,milliseconds:7889237999.999999},months:{weeks:4.3481250000000005,days:30.436875,hours:730.485,minutes:43829.1,seconds:2629746,milliseconds:2629746e3},...yn},pn=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],Sn=pn.slice(0).reverse();function Mn(t,e,n=!1){const r={values:n?e.values:{...t.values,...e.values||{}},loc:t.loc.clone(e.loc),conversionAccuracy:e.conversionAccuracy||t.conversionAccuracy,matrix:e.matrix||t.matrix};return new Nn(r)}function kn(t,e){let n=e.milliseconds??0;for(const r of Sn.slice(1))e[r]&&(n+=e[r]*t[r].milliseconds);return n}function Tn(t,e){const n=kn(t,e)<0?-1:1;pn.reduceRight(((r,s)=>{if(At(e[s]))return r;if(r){const i=t[s][r],u=Math.floor(e[r]*n/i);e[s]+=u*n,e[r]-=u*i*n}return s}),null),pn.reduce(((n,r)=>{if(At(e[r]))return n;if(n){const s=e[n]%1;e[n]-=s,e[r]+=s*t[n][r]}return r}),null)}function bn(t){const e={};for(const[n,r]of Object.entries(t))0!==r&&(e[n]=r);return e}class Nn{constructor(t){const e="longterm"===t.conversionAccuracy||!1;let n=e?wn:gn;t.matrix&&(n=t.matrix),this.values=t.values,this.loc=t.loc||rt.create(),this.conversionAccuracy=e?"longterm":"casual",this.invalid=t.invalid||null,this.matrix=n,this.isLuxonDuration=!0}static fromMillis(t,e){return Nn.fromObject({milliseconds:t},e)}static fromObject(t,e={}){if(null==t||"object"!=typeof t)throw new c("Duration.fromObject: argument expected to be an object, got "+(null===t?"null":typeof t));return new Nn({values:oe(t,Nn.normalizeUnit),loc:rt.fromObject(e),conversionAccuracy:e.conversionAccuracy,matrix:e.matrix})}static fromDurationLike(t){if(_t(t))return Nn.fromMillis(t);if(Nn.isDuration(t))return t;if("object"==typeof t)return Nn.fromObject(t);throw new c(`Unknown duration argument ${t} of type ${typeof t}`)}static fromISO(t,e){const[n]=function(t){return De(t,[ze,Re])}(t);return n?Nn.fromObject(n,e):Nn.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static fromISOTime(t,e){const[n]=function(t){return De(t,[Ue,ln])}(t);return n?Nn.fromObject(n,e):Nn.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static invalid(t,e=null){if(!t)throw new c("need to specify a reason the Duration is invalid");const n=t instanceof Tt?t:new Tt(t,e);if(kt.throwOnInvalid)throw new u(n);return new Nn({invalid:n})}static normalizeUnit(t){const e={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[t?t.toLowerCase():t];if(!e)throw new a(t);return e}static isDuration(t){return t&&t.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(t,e={}){const n={...e,floor:!1!==e.round&&!1!==e.floor};return this.isValid?Ie.create(this.loc,n).formatDurationFromString(this,t):fn}toHuman(t={}){if(!this.isValid)return fn;const e=!1!==t.showZeros,n=pn.map((n=>{const r=this.values[n];return At(r)||0===r&&!e?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...t,unit:n.slice(0,-1)}).format(r)})).filter((t=>t));return this.loc.listFormatter({type:"conjunction",style:t.listStyle||"narrow",...t}).format(n)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let t="P";return 0!==this.years&&(t+=this.years+"Y"),0===this.months&&0===this.quarters||(t+=this.months+3*this.quarters+"M"),0!==this.weeks&&(t+=this.weeks+"W"),0!==this.days&&(t+=this.days+"D"),0===this.hours&&0===this.minutes&&0===this.seconds&&0===this.milliseconds||(t+="T"),0!==this.hours&&(t+=this.hours+"H"),0!==this.minutes&&(t+=this.minutes+"M"),0===this.seconds&&0===this.milliseconds||(t+=Bt(this.seconds+this.milliseconds/1e3,3)+"S"),"P"===t&&(t+="T0S"),t}toISOTime(t={}){if(!this.isValid)return null;const e=this.toMillis();return e<0||e>=864e5?null:(t={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...t,includeOffset:!1},gr.fromMillis(e,{zone:"UTC"}).toISOTime(t))}toJSON(){return this.toISO()}toString(){return this.toISO()}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Duration { values: ${JSON.stringify(this.values)} }`:`Duration { Invalid, reason: ${this.invalidReason} }`}toMillis(){return this.isValid?kn(this.matrix,this.values):NaN}valueOf(){return this.toMillis()}plus(t){if(!this.isValid)return this;const e=Nn.fromDurationLike(t),n={};for(const t of pn)(Ut(e.values,t)||Ut(this.values,t))&&(n[t]=e.get(t)+this.get(t));return Mn(this,{values:n},!0)}minus(t){if(!this.isValid)return this;const e=Nn.fromDurationLike(t);return this.plus(e.negate())}mapUnits(t){if(!this.isValid)return this;const e={};for(const n of Object.keys(this.values))e[n]=ue(t(this.values[n],n));return Mn(this,{values:e},!0)}get(t){return this[Nn.normalizeUnit(t)]}set(t){return this.isValid?Mn(this,{values:{...this.values,...oe(t,Nn.normalizeUnit)}}):this}reconfigure({locale:t,numberingSystem:e,conversionAccuracy:n,matrix:r}={}){return Mn(this,{loc:this.loc.clone({locale:t,numberingSystem:e}),matrix:r,conversionAccuracy:n})}as(t){return this.isValid?this.shiftTo(t).get(t):NaN}normalize(){if(!this.isValid)return this;const t=this.toObject();return Tn(this.matrix,t),Mn(this,{values:t},!0)}rescale(){return this.isValid?Mn(this,{values:bn(this.normalize().shiftToAll().toObject())},!0):this}shiftTo(...t){if(!this.isValid)return this;if(0===t.length)return this;t=t.map((t=>Nn.normalizeUnit(t)));const e={},n={},r=this.toObject();let s;for(const i of pn)if(t.indexOf(i)>=0){s=i;let t=0;for(const e in n)t+=this.matrix[e][i]*n[e],n[e]=0;_t(r[i])&&(t+=r[i]);const u=Math.trunc(t);e[i]=u,n[i]=(1e3*t-1e3*u)/1e3}else _t(r[i])&&(n[i]=r[i]);for(const t in n)0!==n[t]&&(e[s]+=t===s?n[t]:n[t]/this.matrix[s][t]);return Tn(this.matrix,e),Mn(this,{values:e},!0)}shiftToAll(){return this.isValid?this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"):this}negate(){if(!this.isValid)return this;const t={};for(const e of Object.keys(this.values))t[e]=0===this.values[e]?0:-this.values[e];return Mn(this,{values:t},!0)}removeZeros(){return this.isValid?Mn(this,{values:bn(this.values)},!0):this}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return null===this.invalid}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(t){if(!this.isValid||!t.isValid)return!1;if(!this.loc.equals(t.loc))return!1;for(const r of pn)if(n=t.values[r],!(void 0===(e=this.values[r])||0===e?void 0===n||0===n:e===n))return!1;var e,n;return!0}}const In="Invalid Interval";class vn{constructor(t){this.s=t.start,this.e=t.end,this.invalid=t.invalid||null,this.isLuxonInterval=!0}static invalid(t,e=null){if(!t)throw new c("need to specify a reason the Interval is invalid");const n=t instanceof Tt?t:new Tt(t,e);if(kt.throwOnInvalid)throw new i(n);return new vn({invalid:n})}static fromDateTimes(t,e){const n=wr(t),r=wr(e),s=function(t,e){return t&&t.isValid?e&&e.isValid?e<t?vn.invalid("end before start",`The end of an interval must be after its start, but you had start=${t.toISO()} and end=${e.toISO()}`):null:vn.invalid("missing or invalid end"):vn.invalid("missing or invalid start")}(n,r);return null==s?new vn({start:n,end:r}):s}static after(t,e){const n=Nn.fromDurationLike(e),r=wr(t);return vn.fromDateTimes(r,r.plus(n))}static before(t,e){const n=Nn.fromDurationLike(e),r=wr(t);return vn.fromDateTimes(r.minus(n),r)}static fromISO(t,e){const[n,r]=(t||"").split("/",2);if(n&&r){let t,s,i,u;try{t=gr.fromISO(n,e),s=t.isValid}catch(r){s=!1}try{i=gr.fromISO(r,e),u=i.isValid}catch(r){u=!1}if(s&&u)return vn.fromDateTimes(t,i);if(s){const n=Nn.fromISO(r,e);if(n.isValid)return vn.after(t,n)}else if(u){const t=Nn.fromISO(n,e);if(t.isValid)return vn.before(i,t)}}return vn.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static isInterval(t){return t&&t.isLuxonInterval||!1}get start(){return this.isValid?this.s:null}get end(){return this.isValid?this.e:null}get lastDateTime(){return this.isValid&&this.e?this.e.minus(1):null}get isValid(){return null===this.invalidReason}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}length(t="milliseconds"){return this.isValid?this.toDuration(t).get(t):NaN}count(t="milliseconds",e){if(!this.isValid)return NaN;const n=this.start.startOf(t,e);let r;return r=e?.useLocaleWeeks?this.end.reconfigure({locale:n.locale}):this.end,r=r.startOf(t,e),Math.floor(r.diff(n,t).get(t))+(r.valueOf()!==this.end.valueOf())}hasSame(t){return!!this.isValid&&(this.isEmpty()||this.e.minus(1).hasSame(this.s,t))}isEmpty(){return this.s.valueOf()===this.e.valueOf()}isAfter(t){return!!this.isValid&&this.s>t}isBefore(t){return!!this.isValid&&this.e<=t}contains(t){return!!this.isValid&&this.s<=t&&this.e>t}set({start:t,end:e}={}){return this.isValid?vn.fromDateTimes(t||this.s,e||this.e):this}splitAt(...t){if(!this.isValid)return[];const e=t.map(wr).filter((t=>this.contains(t))).sort(((t,e)=>t.toMillis()-e.toMillis())),n=[];let{s:r}=this,s=0;for(;r<this.e;){const t=e[s]||this.e,i=+t>+this.e?this.e:t;n.push(vn.fromDateTimes(r,i)),r=i,s+=1}return n}splitBy(t){const e=Nn.fromDurationLike(t);if(!this.isValid||!e.isValid||0===e.as("milliseconds"))return[];let n,{s:r}=this,s=1;const i=[];for(;r<this.e;){const t=this.start.plus(e.mapUnits((t=>t*s)));n=+t>+this.e?this.e:t,i.push(vn.fromDateTimes(r,n)),r=n,s+=1}return i}divideEqually(t){return this.isValid?this.splitBy(this.length()/t).slice(0,t):[]}overlaps(t){return this.e>t.s&&this.s<t.e}abutsStart(t){return!!this.isValid&&+this.e==+t.s}abutsEnd(t){return!!this.isValid&&+t.e==+this.s}engulfs(t){return!!this.isValid&&this.s<=t.s&&this.e>=t.e}equals(t){return!(!this.isValid||!t.isValid)&&this.s.equals(t.s)&&this.e.equals(t.e)}intersection(t){if(!this.isValid)return this;const e=this.s>t.s?this.s:t.s,n=this.e<t.e?this.e:t.e;return e>=n?null:vn.fromDateTimes(e,n)}union(t){return this.isValid?vn.fromDateTimes(this.s<t.s?this.s:t.s,this.e>t.e?this.e:t.e):this}static merge(t){const[e,n]=t.sort(((t,e)=>t.s-e.s)).reduce((([t,e],n)=>e?e.overlaps(n)||e.abutsStart(n)?[t,e.union(n)]:[t.concat([e]),n]:[t,n]),[[],null]);return n&&e.push(n),e}static xor(t){let e=null,n=0;const r=[],s=t.map((t=>[{time:t.s,type:"s"},{time:t.e,type:"e"}])),i=Array.prototype.concat(...s).sort(((t,e)=>t.time-e.time));for(const t of i)n+="s"===t.type?1:-1,1===n?e=t.time:(e&&+e!=+t.time&&r.push(vn.fromDateTimes(e,t.time)),e=null);return vn.merge(r)}difference(...t){return vn.xor([this].concat(t)).map((t=>this.intersection(t))).filter((t=>t&&!t.isEmpty()))}toString(){return this.isValid?`[${this.s.toISO()} – ${this.e.toISO()})`:In}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Interval { start: ${this.s.toISO()}, end: ${this.e.toISO()} }`:`Interval { Invalid, reason: ${this.invalidReason} }`}toLocaleString(t=f,e={}){return this.isValid?Ie.create(this.s.loc.clone(e),t).formatInterval(this):In}toISO(t){return this.isValid?`${this.s.toISO(t)}/${this.e.toISO(t)}`:In}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:In}toISOTime(t){return this.isValid?`${this.s.toISOTime(t)}/${this.e.toISOTime(t)}`:In}toFormat(t,{separator:e=" – "}={}){return this.isValid?`${this.s.toFormat(t)}${e}${this.e.toFormat(t)}`:In}toDuration(t,e){return this.isValid?this.e.diff(this.s,t,e):Nn.invalid(this.invalidReason)}mapEndpoints(t){return vn.fromDateTimes(t(this.s),t(this.e))}}class En{static hasDST(t=kt.defaultZone){const e=gr.now().setZone(t).set({month:12});return!t.isUniversal&&e.offset!==e.set({month:6}).offset}static isValidIANAZone(t){return P.isValidZone(t)}static normalizeZone(t){return ot(t,kt.defaultZone)}static getStartOfWeek({locale:t=null,locObj:e=null}={}){return(e||rt.create(t)).getStartOfWeek()}static getMinimumDaysInFirstWeek({locale:t=null,locObj:e=null}={}){return(e||rt.create(t)).getMinDaysInFirstWeek()}static getWeekendWeekdays({locale:t=null,locObj:e=null}={}){return(e||rt.create(t)).getWeekendDays().slice()}static months(t="long",{locale:e=null,numberingSystem:n=null,locObj:r=null,outputCalendar:s="gregory"}={}){return(r||rt.create(e,n,s)).months(t)}static monthsFormat(t="long",{locale:e=null,numberingSystem:n=null,locObj:r=null,outputCalendar:s="gregory"}={}){return(r||rt.create(e,n,s)).months(t,!0)}static weekdays(t="long",{locale:e=null,numberingSystem:n=null,locObj:r=null}={}){return(r||rt.create(e,n,null)).weekdays(t)}static weekdaysFormat(t="long",{locale:e=null,numberingSystem:n=null,locObj:r=null}={}){return(r||rt.create(e,n,null)).weekdays(t,!0)}static meridiems({locale:t=null}={}){return rt.create(t).meridiems()}static eras(t="short",{locale:e=null}={}){return rt.create(e,null,"gregory").eras(t)}static features(){return{relative:qt(),localeWeek:Ht()}}}function On(t,e){const n=t=>t.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),r=n(e)-n(t);return Math.floor(Nn.fromMillis(r).as("days"))}function Dn(t,e=t=>t){return{regex:t,deser:([t])=>e(function(t){let e=parseInt(t,10);if(isNaN(e)){e="";for(let n=0;n<t.length;n++){const r=t.charCodeAt(n);if(-1!==t[n].search(at.hanidec))e+=lt.indexOf(t[n]);else for(const t in ct){const[n,s]=ct[t];r>=n&&r<=s&&(e+=r-n)}}return parseInt(e,10)}return e}(t))}}const $n=`[ ${String.fromCharCode(160)}]`,xn=new RegExp($n,"g");function Fn(t){return t.replace(/\./g,"\\.?").replace(xn,$n)}function Ln(t){return t.replace(/\./g,"").replace(xn," ").toLowerCase()}function Zn(t,e){return null===t?null:{regex:RegExp(t.map(Fn).join("|")),deser:([n])=>t.findIndex((t=>Ln(n)===Ln(t)))+e}}function Wn(t,e){return{regex:t,deser:([,t,e])=>ie(t,e),groups:e}}function Cn(t){return{regex:t,deser:([t])=>t}}const An={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour12:{numeric:"h","2-digit":"hh"},hour24:{numeric:"H","2-digit":"HH"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"},timeZoneName:{long:"ZZZZZ",short:"ZZZ"}};let _n=null;function jn(t,e){return Array.prototype.concat(...t.map((t=>function(t,e){if(t.literal)return t;const n=Pn(Ie.macroTokenToFormatOpts(t.val),e);return null==n||n.includes(void 0)?t:n}(t,e))))}class qn{constructor(t,e){if(this.locale=t,this.format=e,this.tokens=jn(Ie.parseFormat(e),t),this.units=this.tokens.map((e=>function(t,e){const n=dt(e),r=dt(e,"{2}"),s=dt(e,"{3}"),i=dt(e,"{4}"),u=dt(e,"{6}"),o=dt(e,"{1,2}"),a=dt(e,"{1,3}"),c=dt(e,"{1,6}"),l=dt(e,"{1,9}"),h=dt(e,"{2,4}"),d=dt(e,"{4,6}"),m=t=>{return{regex:RegExp((e=t.val,e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&"))),deser:([t])=>t,literal:!0};var e},f=(f=>{if(t.literal)return m(f);switch(f.val){case"G":return Zn(e.eras("short"),0);case"GG":return Zn(e.eras("long"),0);case"y":return Dn(c);case"yy":case"kk":return Dn(h,re);case"yyyy":case"kkkk":return Dn(i);case"yyyyy":return Dn(d);case"yyyyyy":return Dn(u);case"M":case"L":case"d":case"H":case"h":case"m":case"q":case"s":case"W":return Dn(o);case"MM":case"LL":case"dd":case"HH":case"hh":case"mm":case"qq":case"ss":case"WW":return Dn(r);case"MMM":return Zn(e.months("short",!0),1);case"MMMM":return Zn(e.months("long",!0),1);case"LLL":return Zn(e.months("short",!1),1);case"LLLL":return Zn(e.months("long",!1),1);case"o":case"S":return Dn(a);case"ooo":case"SSS":return Dn(s);case"u":return Cn(l);case"uu":return Cn(o);case"uuu":case"E":case"c":return Dn(n);case"a":return Zn(e.meridiems(),0);case"EEE":return Zn(e.weekdays("short",!1),1);case"EEEE":return Zn(e.weekdays("long",!1),1);case"ccc":return Zn(e.weekdays("short",!0),1);case"cccc":return Zn(e.weekdays("long",!0),1);case"Z":case"ZZ":return Wn(new RegExp(`([+-]${o.source})(?::(${r.source}))?`),2);case"ZZZ":return Wn(new RegExp(`([+-]${o.source})(${r.source})?`),2);case"z":return Cn(/[a-z_+-/]{1,256}?/i);case" ":return Cn(/[^\S\n\r]/);default:return m(f)}})(t)||{invalidReason:"missing Intl.DateTimeFormat.formatToParts support"};return f.token=t,f}(e,t))),this.disqualifyingUnit=this.units.find((t=>t.invalidReason)),!this.disqualifyingUnit){const[t,e]=[`^${(n=this.units).map((t=>t.regex)).reduce(((t,e)=>`${t}(${e.source})`),"")}$`,n];this.regex=RegExp(t,"i"),this.handlers=e}var n}explainFromTokens(t){if(this.isValid){const[e,n]=function(t,e,n){const r=t.match(e);if(r){const t={};let e=1;for(const s in n)if(Ut(n,s)){const i=n[s],u=i.groups?i.groups+1:1;!i.literal&&i.token&&(t[i.token.val[0]]=i.deser(r.slice(e,e+u))),e+=u}return[r,t]}return[r,{}]}(t,this.regex,this.handlers),[r,s,i]=n?function(t){let e,n=null;return At(t.z)||(n=P.create(t.z)),At(t.Z)||(n||(n=new it(t.Z)),e=t.Z),At(t.q)||(t.M=3*(t.q-1)+1),At(t.h)||(t.h<12&&1===t.a?t.h+=12:12===t.h&&0===t.a&&(t.h=0)),0===t.G&&t.y&&(t.y=-t.y),At(t.u)||(t.S=Vt(t.u)),[Object.keys(t).reduce(((e,n)=>{const r=(t=>{switch(t){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}})(n);return r&&(e[r]=t[n]),e}),{}),n,e]}(n):[null,null,void 0];if(Ut(n,"a")&&Ut(n,"H"))throw new o("Can't include meridiem when specifying 24-hour format");return{input:t,tokens:this.tokens,regex:this.regex,rawMatches:e,matches:n,result:r,zone:s,specificOffset:i}}return{input:t,tokens:this.tokens,invalidReason:this.invalidReason}}get isValid(){return!this.disqualifyingUnit}get invalidReason(){return this.disqualifyingUnit?this.disqualifyingUnit.invalidReason:null}}function Hn(t,e,n){return new qn(t,n).explainFromTokens(e)}function Pn(t,e){if(!t)return null;const n=Ie.create(e,t).dtFormatter((_n||(_n=gr.fromMillis(1555555555555)),_n)),r=n.formatToParts(),s=n.resolvedOptions();return r.map((e=>function(t,e,n){const{type:r,value:s}=t;if("literal"===r){const t=/^\s+$/.test(s);return{literal:!t,val:t?" ":s}}let i=r;"hour"===r&&(i=null!=e.hour12?e.hour12?"hour12":"hour24":null!=e.hourCycle?"h11"===e.hourCycle||"h12"===e.hourCycle?"hour12":"hour24":n.hour12?"hour12":"hour24");let u=An[i];if("object"==typeof u&&(u=u[e[r]]),u)return{literal:!1,val:u}}(e,t,s)))}const Un="Invalid DateTime",zn=864e13;function Rn(t){return new Tt("unsupported zone",`the zone "${t.name}" is not supported`)}function Jn(t){return null===t.weekData&&(t.weekData=$t(t.c)),t.weekData}function Yn(t){return null===t.localWeekData&&(t.localWeekData=$t(t.c,t.loc.getMinDaysInFirstWeek(),t.loc.getStartOfWeek())),t.localWeekData}function Gn(t,e){const n={ts:t.ts,zone:t.zone,c:t.c,o:t.o,loc:t.loc,invalid:t.invalid};return new gr({...n,...e,old:n})}function Vn(t,e,n){let r=t-60*e*1e3;const s=n.offset(r);if(e===s)return[r,e];r-=60*(s-e)*1e3;const i=n.offset(r);return s===i?[r,s]:[t-60*Math.min(s,i)*1e3,Math.max(s,i)]}function Bn(t,e){const n=new Date(t+=60*e*1e3);return{year:n.getUTCFullYear(),month:n.getUTCMonth()+1,day:n.getUTCDate(),hour:n.getUTCHours(),minute:n.getUTCMinutes(),second:n.getUTCSeconds(),millisecond:n.getUTCMilliseconds()}}function Qn(t,e,n){return Vn(te(t),e,n)}function Kn(t,e){const n=t.o,r=t.c.year+Math.trunc(e.years),s=t.c.month+Math.trunc(e.months)+3*Math.trunc(e.quarters),i={...t.c,year:r,month:s,day:Math.min(t.c.day,Xt(r,s))+Math.trunc(e.days)+7*Math.trunc(e.weeks)},u=Nn.fromObject({years:e.years-Math.trunc(e.years),quarters:e.quarters-Math.trunc(e.quarters),months:e.months-Math.trunc(e.months),weeks:e.weeks-Math.trunc(e.weeks),days:e.days-Math.trunc(e.days),hours:e.hours,minutes:e.minutes,seconds:e.seconds,milliseconds:e.milliseconds}).as("milliseconds"),o=te(i);let[a,c]=Vn(o,n,t.zone);return 0!==u&&(a+=u,c=t.zone.offset(a)),{ts:a,o:c}}function Xn(t,e,n,r,s,i){const{setZone:u,zone:o}=n;if(t&&0!==Object.keys(t).length||e){const r=e||o,s=gr.fromObject(t,{...n,zone:r,specificOffset:i});return u?s:s.setZone(o)}return gr.invalid(new Tt("unparsable",`the input "${s}" can't be parsed as ${r}`))}function tr(t,e,n=!0){return t.isValid?Ie.create(rt.create("en-US"),{allowZ:n,forceSimple:!0}).formatDateTimeFromString(t,e):null}function er(t,e,n){const r=t.c.year>9999||t.c.year<0;let s="";if(r&&t.c.year>=0&&(s+="+"),s+=Jt(t.c.year,r?6:4),"year"===n)return s;if(e){if(s+="-",s+=Jt(t.c.month),"month"===n)return s;s+="-"}else if(s+=Jt(t.c.month),"month"===n)return s;return s+=Jt(t.c.day),s}function nr(t,e,n,r,s,i,u){let o=!n||0!==t.c.millisecond||0!==t.c.second,a="";switch(u){case"day":case"month":case"year":break;default:if(a+=Jt(t.c.hour),"hour"===u)break;if(e){if(a+=":",a+=Jt(t.c.minute),"minute"===u)break;o&&(a+=":",a+=Jt(t.c.second))}else{if(a+=Jt(t.c.minute),"minute"===u)break;o&&(a+=Jt(t.c.second))}if("second"===u)break;!o||r&&0===t.c.millisecond||(a+=".",a+=Jt(t.c.millisecond,3))}return s&&(t.isOffsetFixed&&0===t.offset&&!i?a+="Z":t.o<0?(a+="-",a+=Jt(Math.trunc(-t.o/60)),a+=":",a+=Jt(Math.trunc(-t.o%60))):(a+="+",a+=Jt(Math.trunc(t.o/60)),a+=":",a+=Jt(Math.trunc(t.o%60)))),i&&(a+="["+t.zone.ianaName+"]"),a}const rr={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},sr={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},ir={ordinal:1,hour:0,minute:0,second:0,millisecond:0},ur=["year","month","day","hour","minute","second","millisecond"],or=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],ar=["year","ordinal","hour","minute","second","millisecond"];function cr(t){const e={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[t.toLowerCase()];if(!e)throw new a(t);return e}function lr(t){switch(t.toLowerCase()){case"localweekday":case"localweekdays":return"localWeekday";case"localweeknumber":case"localweeknumbers":return"localWeekNumber";case"localweekyear":case"localweekyears":return"localWeekYear";default:return cr(t)}}function hr(t,e){const n=ot(e.zone,kt.defaultZone);if(!n.isValid)return gr.invalid(Rn(n));const r=rt.fromObject(e);let s,i;if(At(t.year))s=kt.now();else{for(const e of ur)At(t[e])&&(t[e]=rr[e]);const e=Wt(t)||Ct(t);if(e)return gr.invalid(e);const r=function(t){if(void 0===fr&&(fr=kt.now()),"iana"!==t.type)return t.offset(fr);const e=t.name;let n=yr.get(e);return void 0===n&&(n=t.offset(fr),yr.set(e,n)),n}(n);[s,i]=Qn(t,r,n)}return new gr({ts:s,zone:n,loc:r,o:i})}function dr(t,e,n){const r=!!At(n.round)||n.round,s=At(n.rounding)?"trunc":n.rounding,i=(t,i)=>(t=Bt(t,r||n.calendary?0:2,n.calendary?"round":s),e.loc.clone(n).relFormatter(n).format(t,i)),u=r=>n.calendary?e.hasSame(t,r)?0:e.startOf(r).diff(t.startOf(r),r).get(r):e.diff(t,r).get(r);if(n.unit)return i(u(n.unit),n.unit);for(const t of n.units){const e=u(t);if(Math.abs(e)>=1)return i(e,t)}return i(t>e?-0:0,n.units[n.units.length-1])}function mr(t){let e,n={};return t.length>0&&"object"==typeof t[t.length-1]?(n=t[t.length-1],e=Array.from(t).slice(0,t.length-1)):e=Array.from(t),[n,e]}let fr;const yr=new Map;class gr{constructor(t){const e=t.zone||kt.defaultZone;let n=t.invalid||(Number.isNaN(t.ts)?new Tt("invalid input"):null)||(e.isValid?null:Rn(e));this.ts=At(t.ts)?kt.now():t.ts;let r=null,s=null;if(!n)if(t.old&&t.old.ts===this.ts&&t.old.zone.equals(e))[r,s]=[t.old.c,t.old.o];else{const i=_t(t.o)&&!t.old?t.o:e.offset(this.ts);r=Bn(this.ts,i),n=Number.isNaN(r.year)?new Tt("invalid input"):null,r=n?null:r,s=n?null:i}this._zone=e,this.loc=t.loc||rt.create(),this.invalid=n,this.weekData=null,this.localWeekData=null,this.c=r,this.o=s,this.isLuxonDateTime=!0}static now(){return new gr({})}static local(){const[t,e]=mr(arguments),[n,r,s,i,u,o,a]=e;return hr({year:n,month:r,day:s,hour:i,minute:u,second:o,millisecond:a},t)}static utc(){const[t,e]=mr(arguments),[n,r,s,i,u,o,a]=e;return t.zone=it.utcInstance,hr({year:n,month:r,day:s,hour:i,minute:u,second:o,millisecond:a},t)}static fromJSDate(t,e={}){const n="[object Date]"===Object.prototype.toString.call(t)?t.valueOf():NaN;if(Number.isNaN(n))return gr.invalid("invalid input");const r=ot(e.zone,kt.defaultZone);return r.isValid?new gr({ts:n,zone:r,loc:rt.fromObject(e)}):gr.invalid(Rn(r))}static fromMillis(t,e={}){if(_t(t))return t<-zn||t>zn?gr.invalid("Timestamp out of range"):new gr({ts:t,zone:ot(e.zone,kt.defaultZone),loc:rt.fromObject(e)});throw new c(`fromMillis requires a numerical input, but received a ${typeof t} with value ${t}`)}static fromSeconds(t,e={}){if(_t(t))return new gr({ts:1e3*t,zone:ot(e.zone,kt.defaultZone),loc:rt.fromObject(e)});throw new c("fromSeconds requires a numerical input")}static fromObject(t,e={}){t=t||{};const n=ot(e.zone,kt.defaultZone);if(!n.isValid)return gr.invalid(Rn(n));const r=rt.fromObject(e),s=oe(t,lr),{minDaysInFirstWeek:i,startOfWeek:u}=Zt(s,r),a=kt.now(),c=At(e.specificOffset)?n.offset(a):e.specificOffset,l=!At(s.ordinal),h=!At(s.year),d=!At(s.month)||!At(s.day),m=h||d,f=s.weekYear||s.weekNumber;if((m||l)&&f)throw new o("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(d&&l)throw new o("Can't mix ordinal dates with month/day");const y=f||s.weekday&&!m;let g,w,p=Bn(a,c);y?(g=or,w=sr,p=$t(p,i,u)):l?(g=ar,w=ir,p=Ft(p)):(g=ur,w=rr);let S=!1;for(const t of g)At(s[t])?s[t]=S?w[t]:p[t]:S=!0;const M=y?function(t,e=4,n=1){const r=jt(t.weekYear),s=Rt(t.weekNumber,1,ne(t.weekYear,e,n)),i=Rt(t.weekday,1,7);return r?s?!i&&It("weekday",t.weekday):It("week",t.weekNumber):It("weekYear",t.weekYear)}(s,i,u):l?function(t){const e=jt(t.year),n=Rt(t.ordinal,1,Kt(t.year));return e?!n&&It("ordinal",t.ordinal):It("year",t.year)}(s):Wt(s),k=M||Ct(s);if(k)return gr.invalid(k);const T=y?xt(s,i,u):l?Lt(s):s,[b,N]=Qn(T,c,n),I=new gr({ts:b,zone:n,o:N,loc:r});return s.weekday&&m&&t.weekday!==I.weekday?gr.invalid("mismatched weekday",`you can't specify both a weekday of ${s.weekday} and a date of ${I.toISO()}`):I.isValid?I:gr.invalid(I.invalid)}static fromISO(t,e={}){const[n,r]=function(t){return De(t,[en,un],[nn,on],[rn,an],[sn,cn])}(t);return Xn(n,r,e,"ISO 8601",t)}static fromRFC2822(t,e={}){const[n,r]=function(t){return De(function(t){return t.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}(t),[Ge,Ve])}(t);return Xn(n,r,e,"RFC 2822",t)}static fromHTTP(t,e={}){const[n,r]=function(t){return De(t,[Be,Xe],[Qe,Xe],[Ke,tn])}(t);return Xn(n,r,e,"HTTP",e)}static fromFormat(t,e,n={}){if(At(t)||At(e))throw new c("fromFormat requires an input string and a format");const{locale:r=null,numberingSystem:s=null}=n,i=rt.fromOpts({locale:r,numberingSystem:s,defaultToEN:!0}),[u,o,a,l]=function(t,e,n){const{result:r,zone:s,specificOffset:i,invalidReason:u}=Hn(t,e,n);return[r,s,i,u]}(i,t,e);return l?gr.invalid(l):Xn(u,o,n,`format ${e}`,t,a)}static fromString(t,e,n={}){return gr.fromFormat(t,e,n)}static fromSQL(t,e={}){const[n,r]=function(t){return De(t,[hn,un],[dn,mn])}(t);return Xn(n,r,e,"SQL",t)}static invalid(t,e=null){if(!t)throw new c("need to specify a reason the DateTime is invalid");const n=t instanceof Tt?t:new Tt(t,e);if(kt.throwOnInvalid)throw new s(n);return new gr({invalid:n})}static isDateTime(t){return t&&t.isLuxonDateTime||!1}static parseFormatForOpts(t,e={}){const n=Pn(t,rt.fromObject(e));return n?n.map((t=>t?t.val:null)).join(""):null}static expandFormat(t,e={}){return jn(Ie.parseFormat(t),rt.fromObject(e)).map((t=>t.val)).join("")}static resetCache(){fr=void 0,yr.clear()}get(t){return this[t]}get isValid(){return null===this.invalid}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?Jn(this).weekYear:NaN}get weekNumber(){return this.isValid?Jn(this).weekNumber:NaN}get weekday(){return this.isValid?Jn(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?Yn(this).weekday:NaN}get localWeekNumber(){return this.isValid?Yn(this).weekNumber:NaN}get localWeekYear(){return this.isValid?Yn(this).weekYear:NaN}get ordinal(){return this.isValid?Ft(this.c).ordinal:NaN}get monthShort(){return this.isValid?En.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?En.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?En.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?En.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){return!this.isOffsetFixed&&(this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset)}getPossibleOffsets(){if(!this.isValid||this.isOffsetFixed)return[this];const t=864e5,e=6e4,n=te(this.c),r=this.zone.offset(n-t),s=this.zone.offset(n+t),i=this.zone.offset(n-r*e),u=this.zone.offset(n-s*e);if(i===u)return[this];const o=n-i*e,a=n-u*e,c=Bn(o,i),l=Bn(a,u);return c.hour===l.hour&&c.minute===l.minute&&c.second===l.second&&c.millisecond===l.millisecond?[Gn(this,{ts:o}),Gn(this,{ts:a})]:[this]}get isInLeapYear(){return Qt(this.year)}get daysInMonth(){return Xt(this.year,this.month)}get daysInYear(){return this.isValid?Kt(this.year):NaN}get weeksInWeekYear(){return this.isValid?ne(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?ne(this.localWeekYear,this.loc.getMinDaysInFirstWeek(),this.loc.getStartOfWeek()):NaN}resolvedLocaleOptions(t={}){const{locale:e,numberingSystem:n,calendar:r}=Ie.create(this.loc.clone(t),t).resolvedOptions(this);return{locale:e,numberingSystem:n,outputCalendar:r}}toUTC(t=0,e={}){return this.setZone(it.instance(t),e)}toLocal(){return this.setZone(kt.defaultZone)}setZone(t,{keepLocalTime:e=!1,keepCalendarTime:n=!1}={}){if((t=ot(t,kt.defaultZone)).equals(this.zone))return this;if(t.isValid){let r=this.ts;if(e||n){const e=t.offset(this.ts),n=this.toObject();[r]=Qn(n,e,t)}return Gn(this,{ts:r,zone:t})}return gr.invalid(Rn(t))}reconfigure({locale:t,numberingSystem:e,outputCalendar:n}={}){return Gn(this,{loc:this.loc.clone({locale:t,numberingSystem:e,outputCalendar:n})})}setLocale(t){return this.reconfigure({locale:t})}set(t){if(!this.isValid)return this;const e=oe(t,lr),{minDaysInFirstWeek:n,startOfWeek:r}=Zt(e,this.loc),s=!At(e.weekYear)||!At(e.weekNumber)||!At(e.weekday),i=!At(e.ordinal),u=!At(e.year),a=!At(e.month)||!At(e.day);if((u||a||i)&&(e.weekYear||e.weekNumber))throw new o("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(a&&i)throw new o("Can't mix ordinal dates with month/day");let c;s?c=xt({...$t(this.c,n,r),...e},n,r):At(e.ordinal)?(c={...this.toObject(),...e},At(e.day)&&(c.day=Math.min(Xt(c.year,c.month),c.day))):c=Lt({...Ft(this.c),...e});const[l,h]=Qn(c,this.o,this.zone);return Gn(this,{ts:l,o:h})}plus(t){return this.isValid?Gn(this,Kn(this,Nn.fromDurationLike(t))):this}minus(t){return this.isValid?Gn(this,Kn(this,Nn.fromDurationLike(t).negate())):this}startOf(t,{useLocaleWeeks:e=!1}={}){if(!this.isValid)return this;const n={},r=Nn.normalizeUnit(t);switch(r){case"years":n.month=1;case"quarters":case"months":n.day=1;case"weeks":case"days":n.hour=0;case"hours":n.minute=0;case"minutes":n.second=0;case"seconds":n.millisecond=0}if("weeks"===r)if(e){const t=this.loc.getStartOfWeek(),{weekday:e}=this;e<t&&(n.weekNumber=this.weekNumber-1),n.weekday=t}else n.weekday=1;if("quarters"===r){const t=Math.ceil(this.month/3);n.month=3*(t-1)+1}return this.set(n)}endOf(t,e){return this.isValid?this.plus({[t]:1}).startOf(t,e).minus(1):this}toFormat(t,e={}){return this.isValid?Ie.create(this.loc.redefaultToEN(e)).formatDateTimeFromString(this,t):Un}toLocaleString(t=f,e={}){return this.isValid?Ie.create(this.loc.clone(e),t).formatDateTime(this):Un}toLocaleParts(t={}){return this.isValid?Ie.create(this.loc.clone(t),t).formatDateTimeParts(this):[]}toISO({format:t="extended",suppressSeconds:e=!1,suppressMilliseconds:n=!1,includeOffset:r=!0,extendedZone:s=!1,precision:i="milliseconds"}={}){if(!this.isValid)return null;const u="extended"===t;let o=er(this,u,i=cr(i));return ur.indexOf(i)>=3&&(o+="T"),o+=nr(this,u,e,n,r,s,i),o}toISODate({format:t="extended",precision:e="day"}={}){return this.isValid?er(this,"extended"===t,cr(e)):null}toISOWeekDate(){return tr(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:t=!1,suppressSeconds:e=!1,includeOffset:n=!0,includePrefix:r=!1,extendedZone:s=!1,format:i="extended",precision:u="milliseconds"}={}){return this.isValid?(u=cr(u),(r&&ur.indexOf(u)>=3?"T":"")+nr(this,"extended"===i,e,t,n,s,u)):null}toRFC2822(){return tr(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return tr(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?er(this,!0):null}toSQLTime({includeOffset:t=!0,includeZone:e=!1,includeOffsetSpace:n=!0}={}){let r="HH:mm:ss.SSS";return(e||t)&&(n&&(r+=" "),e?r+="z":t&&(r+="ZZ")),tr(this,r,!0)}toSQL(t={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(t)}`:null}toString(){return this.isValid?this.toISO():Un}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`DateTime { ts: ${this.toISO()}, zone: ${this.zone.name}, locale: ${this.locale} }`:`DateTime { Invalid, reason: ${this.invalidReason} }`}valueOf(){return this.toMillis()}toMillis(){return this.isValid?this.ts:NaN}toSeconds(){return this.isValid?this.ts/1e3:NaN}toUnixInteger(){return this.isValid?Math.floor(this.ts/1e3):NaN}toJSON(){return this.toISO()}toBSON(){return this.toJSDate()}toObject(t={}){if(!this.isValid)return{};const e={...this.c};return t.includeConfig&&(e.outputCalendar=this.outputCalendar,e.numberingSystem=this.loc.numberingSystem,e.locale=this.loc.locale),e}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(t,e="milliseconds",n={}){if(!this.isValid||!t.isValid)return Nn.invalid("created by diffing an invalid DateTime");const r={locale:this.locale,numberingSystem:this.numberingSystem,...n},s=(o=e,Array.isArray(o)?o:[o]).map(Nn.normalizeUnit),i=t.valueOf()>this.valueOf(),u=function(t,e,n,r){let[s,i,u,o]=function(t,e,n){const r=[["years",(t,e)=>e.year-t.year],["quarters",(t,e)=>e.quarter-t.quarter+4*(e.year-t.year)],["months",(t,e)=>e.month-t.month+12*(e.year-t.year)],["weeks",(t,e)=>{const n=On(t,e);return(n-n%7)/7}],["days",On]],s={},i=t;let u,o;for(const[a,c]of r)n.indexOf(a)>=0&&(u=a,s[a]=c(t,e),o=i.plus(s),o>e?(s[a]--,(t=i.plus(s))>e&&(o=t,s[a]--,t=i.plus(s))):t=o);return[t,s,o,u]}(t,e,n);const a=e-s,c=n.filter((t=>["hours","minutes","seconds","milliseconds"].indexOf(t)>=0));0===c.length&&(u<e&&(u=s.plus({[o]:1})),u!==s&&(i[o]=(i[o]||0)+a/(u-s)));const l=Nn.fromObject(i,r);return c.length>0?Nn.fromMillis(a,r).shiftTo(...c).plus(l):l}(i?this:t,i?t:this,s,r);var o;return i?u.negate():u}diffNow(t="milliseconds",e={}){return this.diff(gr.now(),t,e)}until(t){return this.isValid?vn.fromDateTimes(this,t):this}hasSame(t,e,n){if(!this.isValid)return!1;const r=t.valueOf(),s=this.setZone(t.zone,{keepLocalTime:!0});return s.startOf(e,n)<=r&&r<=s.endOf(e,n)}equals(t){return this.isValid&&t.isValid&&this.valueOf()===t.valueOf()&&this.zone.equals(t.zone)&&this.loc.equals(t.loc)}toRelative(t={}){if(!this.isValid)return null;const e=t.base||gr.fromObject({},{zone:this.zone}),n=t.padding?this<e?-t.padding:t.padding:0;let r=["years","months","days","hours","minutes","seconds"],s=t.unit;return Array.isArray(t.unit)&&(r=t.unit,s=void 0),dr(e,this.plus(n),{...t,numeric:"always",units:r,unit:s})}toRelativeCalendar(t={}){return this.isValid?dr(t.base||gr.fromObject({},{zone:this.zone}),this,{...t,numeric:"auto",units:["years","months","days"],calendary:!0}):null}static min(...t){if(!t.every(gr.isDateTime))throw new c("min requires all arguments be DateTimes");return Pt(t,(t=>t.valueOf()),Math.min)}static max(...t){if(!t.every(gr.isDateTime))throw new c("max requires all arguments be DateTimes");return Pt(t,(t=>t.valueOf()),Math.max)}static fromFormatExplain(t,e,n={}){const{locale:r=null,numberingSystem:s=null}=n;return Hn(rt.fromOpts({locale:r,numberingSystem:s,defaultToEN:!0}),t,e)}static fromStringExplain(t,e,n={}){return gr.fromFormatExplain(t,e,n)}static buildFormatParser(t,e={}){const{locale:n=null,numberingSystem:r=null}=e,s=rt.fromOpts({locale:n,numberingSystem:r,defaultToEN:!0});return new qn(s,t)}static fromFormatParser(t,e,n={}){if(At(t)||At(e))throw new c("fromFormatParser requires an input string and a format parser");const{locale:r=null,numberingSystem:s=null}=n,i=rt.fromOpts({locale:r,numberingSystem:s,defaultToEN:!0});if(!i.equals(e.locale))throw new c(`fromFormatParser called with a locale of ${i}, but the format parser was created for ${e.locale}`);const{result:u,zone:o,specificOffset:a,invalidReason:l}=e.explainFromTokens(t);return l?gr.invalid(l):Xn(u,o,n,`format ${e.format}`,t,a)}static get DATE_SHORT(){return f}static get DATE_MED(){return y}static get DATE_MED_WITH_WEEKDAY(){return g}static get DATE_FULL(){return w}static get DATE_HUGE(){return p}static get TIME_SIMPLE(){return S}static get TIME_WITH_SECONDS(){return M}static get TIME_WITH_SHORT_OFFSET(){return k}static get TIME_WITH_LONG_OFFSET(){return T}static get TIME_24_SIMPLE(){return b}static get TIME_24_WITH_SECONDS(){return N}static get TIME_24_WITH_SHORT_OFFSET(){return I}static get TIME_24_WITH_LONG_OFFSET(){return v}static get DATETIME_SHORT(){return E}static get DATETIME_SHORT_WITH_SECONDS(){return O}static get DATETIME_MED(){return D}static get DATETIME_MED_WITH_SECONDS(){return $}static get DATETIME_MED_WITH_WEEKDAY(){return x}static get DATETIME_FULL(){return F}static get DATETIME_FULL_WITH_SECONDS(){return L}static get DATETIME_HUGE(){return Z}static get DATETIME_HUGE_WITH_SECONDS(){return W}}function wr(t){if(gr.isDateTime(t))return t;if(t&&t.valueOf&&_t(t.valueOf()))return gr.fromJSDate(t);if(t&&"object"==typeof t)return gr.fromObject(t);throw new c(`Unknown datetime argument: ${t}, of type ${typeof t}`)}export{gr as D,t as S,e as c,n as g}
@@ -0,0 +1 @@
1
+ import{C as t}from"./CompareUtil.js";class n{constructor(){this.font="16px Arial",this.size=16,this.color="#000000",this.background="#ffffff",this.leading=1.8}}class s{adapt(s){const i=new n;return t.isString(s.font)&&(i.font=s.font),t.isNumber(s.size)&&(i.size=s.size),t.isString(s.color)&&(i.color=s.color),t.isString(s.background)&&(i.background=s.background),t.isNumber(s.leading)&&(i.leading=s.leading),i}default(){return new n}}class i{constructor(){this.top=10,this.left=10,this.right=10,this.bottom=10}}class r{adapt(n){const s=new i;return t.isNumber(n.top)&&(s.top=n.top),t.isNumber(n.left)&&(s.left=n.left),t.isNumber(n.right)&&(s.right=n.right),t.isNumber(n.bottom)&&(s.bottom=n.bottom),s}default(){return new i}}class e{constructor(t="#000000",n="#000000",s=.1){this.stroke=t,this.fill=n,this.width=s}}class h{adapt(n){const s=new e(n.stroke,n.fill,n.width);return t.isString(n.fillpattern)&&(s.fillpattern=n.fillpattern),t.isString(n.dasharray)&&(s.dasharray=n.dasharray),s}default(){return new e("#000000","#000000",.3)}defaultAC(){return new e("#000000","#000000",.3)}defaultFC(){const t=new e("#000000","#000000",.3);return t.dasharray="10 5 5 5",t.fillpattern="fc",t}defaultPP(){return new e("#999999","#999999",.3)}defaultPL(){return new e("#000000","#ffffff",.3)}defaultPos(){return new e("#00ff00","#00ff00",.3)}defaultNeg(){return new e("#ff0000","#ff0000",.3)}defaultNeu(){return new e("#999999","#999999",.3)}}class u{constructor(t,n,s,i){this.ac=t,this.fc=n,this.pp=s,this.pl=i}getSVGStyle(t){return"ac"===t?this.ac:"fc"===t?this.fc:"pp"===t?this.pp:"pl"===t?this.pl:this.ac}}class o{constructor(t){this.svgStyleAdapter=t}adapt(n){const s=new u(this.svgStyleAdapter.defaultAC(),this.svgStyleAdapter.defaultFC(),this.svgStyleAdapter.defaultPP(),this.svgStyleAdapter.defaultPL());return t.isExisting(n.ac)&&(s.ac=this.svgStyleAdapter.adapt(n.ac)),t.isExisting(n.fc)&&(s.fc=this.svgStyleAdapter.adapt(n.fc)),t.isExisting(n.pp)&&(s.pp=this.svgStyleAdapter.adapt(n.pp)),t.isExisting(n.pl)&&(s.pl=this.svgStyleAdapter.adapt(n.pl)),s}default(){return new u(this.svgStyleAdapter.defaultAC(),this.svgStyleAdapter.defaultFC(),this.svgStyleAdapter.defaultPP(),this.svgStyleAdapter.defaultPL())}}const c={},l=[];function a(t,n){if(Array.isArray(t))for(const s of t)a(s,n);else if("object"!=typeof t)p(Object.getOwnPropertyNames(n)),c[t]=Object.assign(c[t]||{},n);else for(const n in t)a(n,t[n])}function f(t){return c[t]||{}}function p(t){l.push(...t)}function d(t,n){let s;const i=t.length,r=[];for(s=0;s<i;s++)r.push(n(t[s]));return r}function w(t){return t%360*Math.PI/180}function y(t){return t.charAt(0).toUpperCase()+t.slice(1)}function m(t,n,s,i){return null!=n&&null!=s||(i=i||t.bbox(),null==n?n=i.width/i.height*s:null==s&&(s=i.height/i.width*n)),{width:n,height:s}}function g(t,n){const s=t.origin;let i=null!=t.ox?t.ox:null!=t.originX?t.originX:"center",r=null!=t.oy?t.oy:null!=t.originY?t.originY:"center";null!=s&&([i,r]=Array.isArray(s)?s:"object"==typeof s?[s.x,s.y]:[s,s]);const e="string"==typeof i,h="string"==typeof r;if(e||h){const{height:t,width:s,x:u,y:o}=n.bbox();e&&(i=i.includes("left")?u:i.includes("right")?u+s:u+s/2),h&&(r=r.includes("top")?o:r.includes("bottom")?o+t:o+t/2)}return[i,r]}const x=new Set(["desc","metadata","title"]),b=t=>x.has(t.nodeName),v=(t,n,s={})=>{const i={...n};for(const t in i)i[t].valueOf()===s[t]&&delete i[t];Object.keys(i).length?t.node.setAttribute("data-svgjs",JSON.stringify(i)):(t.node.removeAttribute("data-svgjs"),t.node.removeAttribute("svgjs:data"))},_="http://www.w3.org/2000/svg",M="http://www.w3.org/2000/xmlns/",k="http://www.w3.org/1999/xlink",A={window:"undefined"==typeof window?null:window,document:"undefined"==typeof document?null:document};class j{}const O={},C="___SYMBOL___ROOT___";function S(t,n=_){return A.document.createElementNS(n,t)}function E(t,n=!1){if(t instanceof j)return t;if("object"==typeof t)return F(t);if(null==t)return new O[C];if("string"==typeof t&&"<"!==t.trim().charAt(0))return F(A.document.querySelector(t));const s=n?A.document.createElement("div"):S("svg");return s.innerHTML=t.trim(),t=F(s.firstElementChild),s.removeChild(s.firstElementChild),t}function T(t,n){return n&&(n instanceof A.window.Node||n.ownerDocument&&n instanceof n.ownerDocument.defaultView.Node)?n:S(t)}function z(t){if(!t)return null;if(t.instance instanceof j)return t.instance;if("#document-fragment"===t.nodeName)return new O.Fragment(t);let n=y(t.nodeName||"Dom");return"LinearGradient"===n||"RadialGradient"===n?n="Gradient":O[n]||(n="Dom"),new O[n](t)}let F=z;function N(t,n=t.name,s=!1){return O[n]=t,s&&(O[C]=t),p(Object.getOwnPropertyNames(t.prototype)),t}let D=1e3;function P(t){return"Svgjs"+y(t)+D++}function R(t){for(let n=t.children.length-1;n>=0;n--)R(t.children[n]);return t.id?(t.id=P(t.nodeName),t):t}function L(t,n){let s,i;for(i=(t=Array.isArray(t)?t:[t]).length-1;i>=0;i--)for(s in n)t[i].prototype[s]=n[s]}function $(t){return function(...n){const s=n[n.length-1];return!s||s.constructor!==Object||s instanceof Array?t.apply(this,n):t.apply(this,n.slice(0,-1)).attr(s)}}a("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 t=this.position();return this.parent().add(this.remove(),t+1),this},backward:function(){const t=this.position();return this.parent().add(this.remove(),t?t-1:0),this},front:function(){return this.parent().add(this.remove()),this},back:function(){return this.parent().add(this.remove(),0),this},before:function(t){(t=E(t)).remove();const n=this.position();return this.parent().add(t,n),this},after:function(t){(t=E(t)).remove();const n=this.position();return this.parent().add(t,n+1),this},insertBefore:function(t){return(t=E(t)).before(this),this},insertAfter:function(t){return(t=E(t)).after(this),this}});const G=/^([+-]?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?)([a-z%]*)$/i,I=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i,Y=/rgb\((\d+),(\d+),(\d+)\)/,X=/(#[a-z_][a-z0-9\-_]*)/i,H=/\)\s*,?\s*/,B=/\s/g,V=/^#[a-f0-9]{3}$|^#[a-f0-9]{6}$/i,Q=/^rgb\(/,q=/^(\s+)?$/,J=/^[+-]?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,U=/\.(jpg|jpeg|png|gif|svg)(\?[^=]+.*)?/i,Z=/[\s,]+/,W=/[MLHVCSQTAZ]/i;function K(t){const n=Math.round(t),s=Math.max(0,Math.min(255,n)).toString(16);return 1===s.length?"0"+s:s}function tt(t,n){for(let s=n.length;s--;)if(null==t[n[s]])return!1;return!0}function nt(t,n,s){return s<0&&(s+=1),s>1&&(s-=1),s<1/6?t+6*(n-t)*s:s<.5?n:s<2/3?t+(n-t)*(2/3-s)*6:t}a("Dom",{classes:function(){const t=this.attr("class");return null==t?[]:t.trim().split(Z)},hasClass:function(t){return-1!==this.classes().indexOf(t)},addClass:function(t){if(!this.hasClass(t)){const n=this.classes();n.push(t),this.attr("class",n.join(" "))}return this},removeClass:function(t){return this.hasClass(t)&&this.attr("class",this.classes().filter((function(n){return n!==t})).join(" ")),this},toggleClass:function(t){return this.hasClass(t)?this.removeClass(t):this.addClass(t)}}),a("Dom",{css:function(t,n){const s={};if(0===arguments.length)return this.node.style.cssText.split(/\s*;\s*/).filter((function(t){return!!t.length})).forEach((function(t){const n=t.split(/\s*:\s*/);s[n[0]]=n[1]})),s;if(arguments.length<2){if(Array.isArray(t)){for(const n of t)s[n]=this.node.style.getPropertyValue(n);return s}if("string"==typeof t)return this.node.style.getPropertyValue(t);if("object"==typeof t)for(const n in t)this.node.style.setProperty(n,null==t[n]||q.test(t[n])?"":t[n])}return 2===arguments.length&&this.node.style.setProperty(t,null==n||q.test(n)?"":n),this},show:function(){return this.css("display","")},hide:function(){return this.css("display","none")},visible:function(){return"none"!==this.css("display")}}),a("Dom",{data:function(t,n,s){if(null==t)return this.data(d(function(t){let n;const s=t.length,i=[];for(n=0;n<s;n++)0===t[n].nodeName.indexOf("data-")&&i.push(t[n]);return i}(this.node.attributes),(t=>t.nodeName.slice(5))));if(t instanceof Array){const n={};for(const s of t)n[s]=this.data(s);return n}if("object"==typeof t)for(n in t)this.data(n,t[n]);else if(arguments.length<2)try{return JSON.parse(this.attr("data-"+t))}catch(n){return this.attr("data-"+t)}else this.attr("data-"+t,null===n?null:!0===s||"string"==typeof n||"number"==typeof n?n:JSON.stringify(n));return this}}),a("Dom",{remember:function(t,n){if("object"==typeof arguments[0])for(const n in t)this.remember(n,t[n]);else{if(1===arguments.length)return this.memory()[t];this.memory()[t]=n}return this},forget:function(){if(0===arguments.length)this._memory={};else for(let t=arguments.length-1;t>=0;t--)delete this.memory()[arguments[t]];return this},memory:function(){return this._memory=this._memory||{}}});class st{constructor(...t){this.init(...t)}static isColor(t){return t&&(t instanceof st||this.isRgb(t)||this.test(t))}static isRgb(t){return t&&"number"==typeof t.r&&"number"==typeof t.g&&"number"==typeof t.b}static random(t="vibrant",n){const{random:s,round:i,sin:r,PI:e}=Math;if("vibrant"===t){const t=24*s()+57,n=38*s()+45,i=360*s();return new st(t,n,i,"lch")}if("sine"===t){const t=i(80*r(2*e*(n=null==n?s():n)/.5+.01)+150),h=i(50*r(2*e*n/.5+4.6)+200),u=i(100*r(2*e*n/.5+2.3)+150);return new st(t,h,u)}if("pastel"===t){const t=8*s()+86,n=17*s()+9,i=360*s();return new st(t,n,i,"lch")}if("dark"===t){const t=10+10*s(),n=50*s()+86,i=360*s();return new st(t,n,i,"lch")}if("rgb"===t){const t=255*s(),n=255*s(),i=255*s();return new st(t,n,i)}if("lab"===t){const t=100*s(),n=256*s()-128,i=256*s()-128;return new st(t,n,i,"lab")}if("grey"===t){const t=255*s();return new st(t,t,t)}throw new Error("Unsupported random color mode")}static test(t){return"string"==typeof t&&(V.test(t)||Q.test(t))}cmyk(){const{_a:t,_b:n,_c:s}=this.rgb(),[i,r,e]=[t,n,s].map((t=>t/255)),h=Math.min(1-i,1-r,1-e);return 1===h?new st(0,0,0,1,"cmyk"):new st((1-i-h)/(1-h),(1-r-h)/(1-h),(1-e-h)/(1-h),h,"cmyk")}hsl(){const{_a:t,_b:n,_c:s}=this.rgb(),[i,r,e]=[t,n,s].map((t=>t/255)),h=Math.max(i,r,e),u=Math.min(i,r,e),o=(h+u)/2,c=h===u,l=h-u;return new st(360*(c?0:h===i?((r-e)/l+(r<e?6:0))/6:h===r?((e-i)/l+2)/6:h===e?((i-r)/l+4)/6:0),100*(c?0:o>.5?l/(2-h-u):l/(h+u)),100*o,"hsl")}init(t=0,n=0,s=0,i=0,r="rgb"){if(t=t||0,this.space)for(const t in this.space)delete this[this.space[t]];if("number"==typeof t)r="string"==typeof i?i:r,i="string"==typeof i?0:i,Object.assign(this,{_a:t,_b:n,_c:s,_d:i,space:r});else if(t instanceof Array)this.space=n||("string"==typeof t[3]?t[3]:t[4])||"rgb",Object.assign(this,{_a:t[0],_b:t[1],_c:t[2],_d:t[3]||0});else if(t instanceof Object){const s=function(t,n){const s=tt(t,"rgb")?{_a:t.r,_b:t.g,_c:t.b,_d:0,space:"rgb"}:tt(t,"xyz")?{_a:t.x,_b:t.y,_c:t.z,_d:0,space:"xyz"}:tt(t,"hsl")?{_a:t.h,_b:t.s,_c:t.l,_d:0,space:"hsl"}:tt(t,"lab")?{_a:t.l,_b:t.a,_c:t.b,_d:0,space:"lab"}:tt(t,"lch")?{_a:t.l,_b:t.c,_c:t.h,_d:0,space:"lch"}:tt(t,"cmyk")?{_a:t.c,_b:t.m,_c:t.y,_d:t.k,space:"cmyk"}:{_a:0,_b:0,_c:0,space:"rgb"};return s.space=n||s.space,s}(t,n);Object.assign(this,s)}else if("string"==typeof t)if(Q.test(t)){const n=t.replace(B,""),[s,i,r]=Y.exec(n).slice(1,4).map((t=>parseInt(t)));Object.assign(this,{_a:s,_b:i,_c:r,_d:0,space:"rgb"})}else{if(!V.test(t))throw Error("Unsupported string format, can't construct Color");{const n=t=>parseInt(t,16),[,s,i,r]=I.exec(function(t){return 4===t.length?["#",t.substring(1,2),t.substring(1,2),t.substring(2,3),t.substring(2,3),t.substring(3,4),t.substring(3,4)].join(""):t}(t)).map(n);Object.assign(this,{_a:s,_b:i,_c:r,_d:0,space:"rgb"})}}const{_a:e,_b:h,_c:u,_d:o}=this;Object.assign(this,"rgb"===this.space?{r:e,g:h,b:u}:"xyz"===this.space?{x:e,y:h,z:u}:"hsl"===this.space?{h:e,s:h,l:u}:"lab"===this.space?{l:e,a:h,b:u}:"lch"===this.space?{l:e,c:h,h:u}:"cmyk"===this.space?{c:e,m:h,y:u,k:o}:{})}lab(){const{x:t,y:n,z:s}=this.xyz();return new st(116*n-16,500*(t-n),200*(n-s),"lab")}lch(){const{l:t,a:n,b:s}=this.lab(),i=Math.sqrt(n**2+s**2);let r=180*Math.atan2(s,n)/Math.PI;return r<0&&(r*=-1,r=360-r),new st(t,i,r,"lch")}rgb(){if("rgb"===this.space)return this;if("lab"===(t=this.space)||"xyz"===t||"lch"===t){let{x:t,y:n,z:s}=this;if("lab"===this.space||"lch"===this.space){let{l:i,a:r,b:e}=this;if("lch"===this.space){const{c:t,h:n}=this,s=Math.PI/180;r=t*Math.cos(s*n),e=t*Math.sin(s*n)}const h=(i+16)/116,u=r/500+h,o=h-e/200,c=16/116,l=.008856,a=7.787;t=.95047*(u**3>l?u**3:(u-c)/a),n=1*(h**3>l?h**3:(h-c)/a),s=1.08883*(o**3>l?o**3:(o-c)/a)}const i=3.2406*t+-1.5372*n+-.4986*s,r=-.9689*t+1.8758*n+.0415*s,e=.0557*t+-.204*n+1.057*s,h=Math.pow,u=.0031308,o=i>u?1.055*h(i,1/2.4)-.055:12.92*i,c=r>u?1.055*h(r,1/2.4)-.055:12.92*r,l=e>u?1.055*h(e,1/2.4)-.055:12.92*e;return new st(255*o,255*c,255*l)}if("hsl"===this.space){let{h:t,s:n,l:s}=this;if(t/=360,n/=100,s/=100,0===n)return s*=255,new st(s,s,s);const i=s<.5?s*(1+n):s+n-s*n,r=2*s-i,e=255*nt(r,i,t+1/3),h=255*nt(r,i,t),u=255*nt(r,i,t-1/3);return new st(e,h,u)}if("cmyk"===this.space){const{c:t,m:n,y:s,k:i}=this,r=255*(1-Math.min(1,t*(1-i)+i)),e=255*(1-Math.min(1,n*(1-i)+i)),h=255*(1-Math.min(1,s*(1-i)+i));return new st(r,e,h)}return this;var t}toArray(){const{_a:t,_b:n,_c:s,_d:i,space:r}=this;return[t,n,s,i,r]}toHex(){const[t,n,s]=this._clamped().map(K);return`#${t}${n}${s}`}toRgb(){const[t,n,s]=this._clamped();return`rgb(${t},${n},${s})`}toString(){return this.toHex()}xyz(){const{_a:t,_b:n,_c:s}=this.rgb(),[i,r,e]=[t,n,s].map((t=>t/255)),h=i>.04045?Math.pow((i+.055)/1.055,2.4):i/12.92,u=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92,o=e>.04045?Math.pow((e+.055)/1.055,2.4):e/12.92,c=(.4124*h+.3576*u+.1805*o)/.95047,l=(.2126*h+.7152*u+.0722*o)/1,a=(.0193*h+.1192*u+.9505*o)/1.08883,f=c>.008856?Math.pow(c,1/3):7.787*c+16/116,p=l>.008856?Math.pow(l,1/3):7.787*l+16/116,d=a>.008856?Math.pow(a,1/3):7.787*a+16/116;return new st(f,p,d,"xyz")}_clamped(){const{_a:t,_b:n,_c:s}=this.rgb(),{max:i,min:r,round:e}=Math;return[t,n,s].map((t=>i(0,r(e(t),255))))}}class it{constructor(...t){this.init(...t)}clone(){return new it(this)}init(t,n){const s=Array.isArray(t)?{x:t[0],y:t[1]}:"object"==typeof t?{x:t.x,y:t.y}:{x:t,y:n};return this.x=null==s.x?0:s.x,this.y=null==s.y?0:s.y,this}toArray(){return[this.x,this.y]}transform(t){return this.clone().transformO(t)}transformO(t){et.isMatrixLike(t)||(t=new et(t));const{x:n,y:s}=this;return this.x=t.a*n+t.c*s+t.e,this.y=t.b*n+t.d*s+t.f,this}}function rt(t,n){return Math.abs(n-t)<1e-6}class et{constructor(...t){this.init(...t)}static formatTransforms(t){const n="both"===t.flip||!0===t.flip,s=t.flip&&(n||"x"===t.flip)?-1:1,i=t.flip&&(n||"y"===t.flip)?-1:1,r=t.skew&&t.skew.length?t.skew[0]:isFinite(t.skew)?t.skew:isFinite(t.skewX)?t.skewX:0,e=t.skew&&t.skew.length?t.skew[1]:isFinite(t.skew)?t.skew:isFinite(t.skewY)?t.skewY:0,h=t.scale&&t.scale.length?t.scale[0]*s:isFinite(t.scale)?t.scale*s:isFinite(t.scaleX)?t.scaleX*s:s,u=t.scale&&t.scale.length?t.scale[1]*i:isFinite(t.scale)?t.scale*i:isFinite(t.scaleY)?t.scaleY*i:i,o=t.shear||0,c=t.rotate||t.theta||0,l=new it(t.origin||t.around||t.ox||t.originX,t.oy||t.originY),a=l.x,f=l.y,p=new it(t.position||t.px||t.positionX||NaN,t.py||t.positionY||NaN),d=p.x,w=p.y,y=new it(t.translate||t.tx||t.translateX,t.ty||t.translateY),m=y.x,g=y.y,x=new it(t.relative||t.rx||t.relativeX,t.ry||t.relativeY);return{scaleX:h,scaleY:u,skewX:r,skewY:e,shear:o,theta:c,rx:x.x,ry:x.y,tx:m,ty:g,ox:a,oy:f,px:d,py:w}}static fromArray(t){return{a:t[0],b:t[1],c:t[2],d:t[3],e:t[4],f:t[5]}}static isMatrixLike(t){return null!=t.a||null!=t.b||null!=t.c||null!=t.d||null!=t.e||null!=t.f}static matrixMultiply(t,n,s){const i=t.b*n.a+t.d*n.b,r=t.a*n.c+t.c*n.d,e=t.b*n.c+t.d*n.d,h=t.e+t.a*n.e+t.c*n.f,u=t.f+t.b*n.e+t.d*n.f;return s.a=t.a*n.a+t.c*n.b,s.b=i,s.c=r,s.d=e,s.e=h,s.f=u,s}around(t,n,s){return this.clone().aroundO(t,n,s)}aroundO(t,n,s){const i=t||0,r=n||0;return this.translateO(-i,-r).lmultiplyO(s).translateO(i,r)}clone(){return new et(this)}decompose(t=0,n=0){const s=this.a,i=this.b,r=this.c,e=this.d,h=this.e,u=this.f,o=s*e-i*r,c=o>0?1:-1,l=c*Math.sqrt(s*s+i*i),a=Math.atan2(c*i,c*s),f=180/Math.PI*a,p=Math.cos(a),d=Math.sin(a),w=(s*r+i*e)/o,y=r*l/(w*s-i)||e*l/(w*i+s);return{scaleX:l,scaleY:y,shear:w,rotate:f,translateX:h-t+t*p*l+n*(w*p*l-d*y),translateY:u-n+t*d*l+n*(w*d*l+p*y),originX:t,originY:n,a:this.a,b:this.b,c:this.c,d:this.d,e:this.e,f:this.f}}equals(t){if(t===this)return!0;const n=new et(t);return rt(this.a,n.a)&&rt(this.b,n.b)&&rt(this.c,n.c)&&rt(this.d,n.d)&&rt(this.e,n.e)&&rt(this.f,n.f)}flip(t,n){return this.clone().flipO(t,n)}flipO(t,n){return"x"===t?this.scaleO(-1,1,n,0):"y"===t?this.scaleO(1,-1,0,n):this.scaleO(-1,-1,t,n||t)}init(t){const n=et.fromArray([1,0,0,1,0,0]);return t=t instanceof Ot?t.matrixify():"string"==typeof t?et.fromArray(t.split(Z).map(parseFloat)):Array.isArray(t)?et.fromArray(t):"object"==typeof t&&et.isMatrixLike(t)?t:"object"==typeof t?(new et).transform(t):6===arguments.length?et.fromArray([].slice.call(arguments)):n,this.a=null!=t.a?t.a:n.a,this.b=null!=t.b?t.b:n.b,this.c=null!=t.c?t.c:n.c,this.d=null!=t.d?t.d:n.d,this.e=null!=t.e?t.e:n.e,this.f=null!=t.f?t.f:n.f,this}inverse(){return this.clone().inverseO()}inverseO(){const t=this.a,n=this.b,s=this.c,i=this.d,r=this.e,e=this.f,h=t*i-n*s;if(!h)throw new Error("Cannot invert "+this);const u=i/h,o=-n/h,c=-s/h,l=t/h,a=-(u*r+c*e),f=-(o*r+l*e);return this.a=u,this.b=o,this.c=c,this.d=l,this.e=a,this.f=f,this}lmultiply(t){return this.clone().lmultiplyO(t)}lmultiplyO(t){const n=t instanceof et?t:new et(t);return et.matrixMultiply(n,this,this)}multiply(t){return this.clone().multiplyO(t)}multiplyO(t){const n=t instanceof et?t:new et(t);return et.matrixMultiply(this,n,this)}rotate(t,n,s){return this.clone().rotateO(t,n,s)}rotateO(t,n=0,s=0){t=w(t);const i=Math.cos(t),r=Math.sin(t),{a:e,b:h,c:u,d:o,e:c,f:l}=this;return this.a=e*i-h*r,this.b=h*i+e*r,this.c=u*i-o*r,this.d=o*i+u*r,this.e=c*i-l*r+s*r-n*i+n,this.f=l*i+c*r-n*r-s*i+s,this}scale(){return this.clone().scaleO(...arguments)}scaleO(t,n=t,s=0,i=0){3===arguments.length&&(i=s,s=n,n=t);const{a:r,b:e,c:h,d:u,e:o,f:c}=this;return this.a=r*t,this.b=e*n,this.c=h*t,this.d=u*n,this.e=o*t-s*t+s,this.f=c*n-i*n+i,this}shear(t,n,s){return this.clone().shearO(t,n,s)}shearO(t,n=0,s=0){const{a:i,b:r,c:e,d:h,e:u,f:o}=this;return this.a=i+r*t,this.c=e+h*t,this.e=u+o*t-s*t,this}skew(){return this.clone().skewO(...arguments)}skewO(t,n=t,s=0,i=0){3===arguments.length&&(i=s,s=n,n=t),t=w(t),n=w(n);const r=Math.tan(t),e=Math.tan(n),{a:h,b:u,c:o,d:c,e:l,f:a}=this;return this.a=h+u*r,this.b=u+h*e,this.c=o+c*r,this.d=c+o*e,this.e=l+a*r-i*r,this.f=a+l*e-s*e,this}skewX(t,n,s){return this.skew(t,0,n,s)}skewY(t,n,s){return this.skew(0,t,n,s)}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(t){if(et.isMatrixLike(t))return new et(t).multiplyO(this);const n=et.formatTransforms(t),{x:s,y:i}=new it(n.ox,n.oy).transform(this),r=(new et).translateO(n.rx,n.ry).lmultiplyO(this).translateO(-s,-i).scaleO(n.scaleX,n.scaleY).skewO(n.skewX,n.skewY).shearO(n.shear).rotateO(n.theta).translateO(s,i);if(isFinite(n.px)||isFinite(n.py)){const t=new it(s,i).transform(r),e=isFinite(n.px)?n.px-t.x:0,h=isFinite(n.py)?n.py-t.y:0;r.translateO(e,h)}return r.translateO(n.tx,n.ty),r}translate(t,n){return this.clone().translateO(t,n)}translateO(t,n){return this.e+=t||0,this.f+=n||0,this}valueOf(){return{a:this.a,b:this.b,c:this.c,d:this.d,e:this.e,f:this.f}}}function ht(){if(!ht.nodes){const t=E().size(2,0);t.node.style.cssText=["opacity: 0","position: absolute","left: -100%","top: -100%","overflow: hidden"].join(";"),t.attr("focusable","false"),t.attr("aria-hidden","true");const n=t.path().node;ht.nodes={svg:t,path:n}}return ht.nodes.svg.node.parentNode||ht.nodes.svg.addTo(A.document.body||A.document.documentElement),ht.nodes}function ut(t){return!(t.width||t.height||t.x||t.y)}N(et,"Matrix");class ot{constructor(...t){this.init(...t)}addOffset(){return this.x+=A.window.pageXOffset,this.y+=A.window.pageYOffset,new ot(this)}init(t){return t="string"==typeof t?t.split(Z).map(parseFloat):Array.isArray(t)?t:"object"==typeof t?[null!=t.left?t.left:t.x,null!=t.top?t.top:t.y,t.width,t.height]:4===arguments.length?[].slice.call(arguments):[0,0,0,0],this.x=t[0]||0,this.y=t[1]||0,this.width=this.w=t[2]||0,this.height=this.h=t[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 ut(this)}merge(t){const n=Math.min(this.x,t.x),s=Math.min(this.y,t.y),i=Math.max(this.x+this.width,t.x+t.width)-n,r=Math.max(this.y+this.height,t.y+t.height)-s;return new ot(n,s,i,r)}toArray(){return[this.x,this.y,this.width,this.height]}toString(){return this.x+" "+this.y+" "+this.width+" "+this.height}transform(t){t instanceof et||(t=new et(t));let n=1/0,s=-1/0,i=1/0,r=-1/0;return[new it(this.x,this.y),new it(this.x2,this.y),new it(this.x,this.y2),new it(this.x2,this.y2)].forEach((function(e){e=e.transform(t),n=Math.min(n,e.x),s=Math.max(s,e.x),i=Math.min(i,e.y),r=Math.max(r,e.y)})),new ot(n,i,s-n,r-i)}}function ct(t,n,s){let i;try{if(i=n(t.node),ut(i)&&(r=t.node)!==A.document&&!(A.document.documentElement.contains||function(t){for(;t.parentNode;)t=t.parentNode;return t===A.document}).call(A.document.documentElement,r))throw new Error("Element not in the dom")}catch(n){i=s(t)}var r;return i}a({viewbox:{viewbox(t,n,s,i){return null==t?new ot(this.attr("viewBox")):this.attr("viewBox",new ot(t,n,s,i))},zoom(t,n){let{width:s,height:i}=this.attr(["width","height"]);if((s||i)&&"string"!=typeof s&&"string"!=typeof i||(s=this.node.clientWidth,i=this.node.clientHeight),!s||!i)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(),e=s/r.width,h=i/r.height,u=Math.min(e,h);if(null==t)return u;let o=u/t;o===1/0&&(o=Number.MAX_SAFE_INTEGER/100),n=n||new it(s/2/e+r.x,i/2/h+r.y);const c=new ot(r).transform(new et({scale:o,origin:n}));return this.viewbox(c)}}}),N(ot,"Box");class lt extends Array{constructor(t=[],...n){if(super(t,...n),"number"==typeof t)return this;this.length=0,this.push(...t)}}L([lt],{each(t,...n){return this.map("function"==typeof t?(n,s,i)=>t.call(n,n,s,i):s=>s[t](...n))},toArray(){return Array.prototype.concat.apply([],this)}});const at=["toArray","constructor","each"];function ft(t,n){return new lt(d((n||A.document).querySelectorAll(t),(function(t){return z(t)})))}lt.extend=function(t){t=t.reduce(((t,n)=>(at.includes(n)||"_"===n[0]||(n in Array.prototype&&(t["$"+n]=Array.prototype[n]),t[n]=function(...t){return this.each(n,...t)}),t)),{}),L([lt],t)};let pt=0;const dt={};function wt(t){let n=t.getEventHolder();return n===A.window&&(n=dt),n.events||(n.events={}),n.events}function yt(t){return t.getEventTarget()}function mt(t,n,s,i,r){const e=s.bind(i||t),h=E(t),u=wt(h),o=yt(h);n=Array.isArray(n)?n:n.split(Z),s._svgjsListenerId||(s._svgjsListenerId=++pt),n.forEach((function(t){const n=t.split(".")[0],i=t.split(".")[1]||"*";u[n]=u[n]||{},u[n][i]=u[n][i]||{},u[n][i][s._svgjsListenerId]=e,o.addEventListener(n,e,r||!1)}))}function gt(t,n,s,i){const r=E(t),e=wt(r),h=yt(r);("function"!=typeof s||(s=s._svgjsListenerId))&&(n=Array.isArray(n)?n:(n||"").split(Z)).forEach((function(t){const n=t&&t.split(".")[0],u=t&&t.split(".")[1];let o,c;if(s)e[n]&&e[n][u||"*"]&&(h.removeEventListener(n,e[n][u||"*"][s],i||!1),delete e[n][u||"*"][s]);else if(n&&u){if(e[n]&&e[n][u]){for(c in e[n][u])gt(h,[n,u].join("."),c);delete e[n][u]}}else if(u)for(t in e)for(o in e[t])u===o&&gt(h,[t,u].join("."));else if(n){if(e[n]){for(o in e[n])gt(h,[n,o].join("."));delete e[n]}}else{for(t in e)gt(h,t);!function(t){let n=t.getEventHolder();n===A.window&&(n=dt),n.events&&(n.events={})}(r)}}))}class xt extends j{addEventListener(){}dispatch(t,n,s){return function(t,n,s,i){const r=yt(t);return n instanceof A.window.Event||(n=new A.window.CustomEvent(n,{detail:s,cancelable:!0,...i})),r.dispatchEvent(n),n}(this,t,n,s)}dispatchEvent(t){const n=this.getEventHolder().events;if(!n)return!0;const s=n[t.type];for(const n in s)for(const i in s[n])s[n][i](t);return!t.defaultPrevented}fire(t,n,s){return this.dispatch(t,n,s),this}getEventHolder(){return this}getEventTarget(){return this}off(t,n,s){return gt(this,t,n,s),this}on(t,n,s,i){return mt(this,t,n,s,i),this}removeEventListener(){}}function bt(){}N(xt,"EventTarget");const vt={"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 _t extends Array{constructor(...t){super(...t),this.init(...t)}clone(){return new this.constructor(this)}init(t){return"number"==typeof t||(this.length=0,this.push(...this.parse(t))),this}parse(t=[]){return t instanceof Array?t:t.trim().split(Z).map(parseFloat)}toArray(){return Array.prototype.concat.apply([],this)}toSet(){return new Set(this)}toString(){return this.join(" ")}valueOf(){const t=[];return t.push(...this),t}}class Mt{constructor(...t){this.init(...t)}convert(t){return new Mt(this.value,t)}divide(t){return t=new Mt(t),new Mt(this/t,this.unit||t.unit)}init(t,n){return n=Array.isArray(t)?t[1]:n,t=Array.isArray(t)?t[0]:t,this.value=0,this.unit=n||"","number"==typeof t?this.value=isNaN(t)?0:isFinite(t)?t:t<0?-34e37:34e37:"string"==typeof t?(n=t.match(G))&&(this.value=parseFloat(n[1]),"%"===n[5]?this.value/=100:"s"===n[5]&&(this.value*=1e3),this.unit=n[5]):t instanceof Mt&&(this.value=t.valueOf(),this.unit=t.unit),this}minus(t){return t=new Mt(t),new Mt(this-t,this.unit||t.unit)}plus(t){return t=new Mt(t),new Mt(this+t,this.unit||t.unit)}times(t){return t=new Mt(t),new Mt(this*t,this.unit||t.unit)}toArray(){return[this.value,this.unit]}toJSON(){return this.toString()}toString(){return("%"===this.unit?~~(1e8*this.value)/1e6:"s"===this.unit?this.value/1e3:this.value)+this.unit}valueOf(){return this.value}}const kt=new Set(["fill","stroke","color","bgcolor","stop-color","flood-color","lighting-color"]),At=[];class jt extends xt{constructor(t,n){super(),this.node=t,this.type=t.nodeName,n&&t!==n&&this.attr(n)}add(t,n){return(t=E(t)).removeNamespace&&this.node instanceof A.window.SVGElement&&t.removeNamespace(),null==n?this.node.appendChild(t.node):t.node!==this.node.childNodes[n]&&this.node.insertBefore(t.node,this.node.childNodes[n]),this}addTo(t,n){return E(t).put(this,n)}children(){return new lt(d(this.node.children,(function(t){return z(t)})))}clear(){for(;this.node.hasChildNodes();)this.node.removeChild(this.node.lastChild);return this}clone(t=!0,n=!0){this.writeDataToDom();let s=this.node.cloneNode(t);return n&&(s=R(s)),new this.constructor(s)}each(t,n){const s=this.children();let i,r;for(i=0,r=s.length;i<r;i++)t.apply(s[i],[i,s]),n&&s[i].each(t,n);return this}element(t,n){return this.put(new jt(S(t),n))}first(){return z(this.node.firstChild)}get(t){return z(this.node.childNodes[t])}getEventHolder(){return this.node}getEventTarget(){return this.node}has(t){return this.index(t)>=0}html(t,n){return this.xml(t,n,"http://www.w3.org/1999/xhtml")}id(t){return void 0!==t||this.node.id||(this.node.id=P(this.type)),this.attr("id",t)}index(t){return[].slice.call(this.node.childNodes).indexOf(t.node)}last(){return z(this.node.lastChild)}matches(t){const n=this.node,s=n.matches||n.matchesSelector||n.msMatchesSelector||n.mozMatchesSelector||n.webkitMatchesSelector||n.oMatchesSelector||null;return s&&s.call(n,t)}parent(t){let n=this;if(!n.node.parentNode)return null;if(n=z(n.node.parentNode),!t)return n;do{if("string"==typeof t?n.matches(t):n instanceof t)return n}while(n=z(n.node.parentNode));return n}put(t,n){return t=E(t),this.add(t,n),t}putIn(t,n){return E(t).add(this,n)}remove(){return this.parent()&&this.parent().removeElement(this),this}removeElement(t){return this.node.removeChild(t.node),this}replace(t){return t=E(t),this.node.parentNode&&this.node.parentNode.replaceChild(t.node,this.node),t}round(t=2,n=null){const s=10**t,i=this.attr(n);for(const t in i)"number"==typeof i[t]&&(i[t]=Math.round(i[t]*s)/s);return this.attr(i),this}svg(t,n){return this.xml(t,n,_)}toString(){return this.id()}words(t){return this.node.textContent=t,this}wrap(t){const n=this.parent();if(!n)return this.addTo(t);const s=n.index(this);return n.put(t,s).put(this)}writeDataToDom(){return this.each((function(){this.writeDataToDom()})),this}xml(t,n,s){if("boolean"==typeof t&&(s=n,n=t,t=null),null==t||"function"==typeof t){n=null==n||n,this.writeDataToDom();let s=this;if(null!=t){if(s=z(s.node.cloneNode(!0)),n){const n=t(s);if(s=n||s,!1===n)return""}s.each((function(){const n=t(this),s=n||this;!1===n?this.remove():n&&this!==s&&this.replace(s)}),!0)}return n?s.node.outerHTML:s.node.innerHTML}n=null!=n&&n;const i=S("wrapper",s),r=A.document.createDocumentFragment();i.innerHTML=t;for(let t=i.children.length;t--;)r.appendChild(i.firstElementChild);const e=this.parent();return n?this.replace(r)&&e:this.add(r)}}L(jt,{attr:function(t,n,s){if(null==t){t={},n=this.node.attributes;for(const s of n)t[s.nodeName]=J.test(s.nodeValue)?parseFloat(s.nodeValue):s.nodeValue;return t}if(t instanceof Array)return t.reduce(((t,n)=>(t[n]=this.attr(n),t)),{});if("object"==typeof t&&t.constructor===Object)for(n in t)this.attr(n,t[n]);else if(null===n)this.node.removeAttribute(t);else{if(null==n)return null==(n=this.node.getAttribute(t))?vt[t]:J.test(n)?parseFloat(n):n;"number"==typeof(n=At.reduce(((n,s)=>s(t,n,this)),n))?n=new Mt(n):kt.has(t)&&st.isColor(n)?n=new st(n):n.constructor===Array&&(n=new _t(n)),"leading"===t?this.leading&&this.leading(n):"string"==typeof s?this.node.setAttributeNS(s,t,n.toString()):this.node.setAttribute(t,n.toString()),!this.rebuild||"font-size"!==t&&"x"!==t||this.rebuild()}return this},find:function(t){return ft(t,this.node)},findOne:function(t){return z(this.node.querySelector(t))}}),N(jt,"Dom");class Ot extends jt{constructor(t,n){super(t,n),this.dom={},this.node.instance=this,(t.hasAttribute("data-svgjs")||t.hasAttribute("svgjs:data"))&&this.setData(JSON.parse(t.getAttribute("data-svgjs"))??JSON.parse(t.getAttribute("svgjs:data"))??{})}center(t,n){return this.cx(t).cy(n)}cx(t){return null==t?this.x()+this.width()/2:this.x(t-this.width()/2)}cy(t){return null==t?this.y()+this.height()/2:this.y(t-this.height()/2)}defs(){const t=this.root();return t&&t.defs()}dmove(t,n){return this.dx(t).dy(n)}dx(t=0){return this.x(new Mt(t).plus(this.x()))}dy(t=0){return this.y(new Mt(t).plus(this.y()))}getEventHolder(){return this}height(t){return this.attr("height",t)}move(t,n){return this.x(t).y(n)}parents(t=this.root()){const n="string"==typeof t;n||(t=E(t));const s=new lt;let i=this;for(;(i=i.parent())&&i.node!==A.document&&"#document-fragment"!==i.nodeName&&(s.push(i),n||i.node!==t.node)&&(!n||!i.matches(t));)if(i.node===this.root().node)return null;return s}reference(t){if(!(t=this.attr(t)))return null;const n=(t+"").match(X);return n?E(n[1]):null}root(){const t=this.parent(O[C]);return t&&t.root()}setData(t){return this.dom=t,this}size(t,n){const s=m(this,t,n);return this.width(new Mt(s.width)).height(new Mt(s.height))}width(t){return this.attr("width",t)}writeDataToDom(){return v(this,this.dom),super.writeDataToDom()}x(t){return this.attr("x",t)}y(t){return this.attr("y",t)}}L(Ot,{bbox:function(){const t=ct(this,(t=>t.getBBox()),(t=>{try{const n=t.clone().addTo(ht().svg).show(),s=n.node.getBBox();return n.remove(),s}catch(n){throw new Error(`Getting bbox of element "${t.node.nodeName}" is not possible: ${n.toString()}`)}}));return new ot(t)},rbox:function(t){const n=ct(this,(t=>t.getBoundingClientRect()),(t=>{throw new Error(`Getting rbox of element "${t.node.nodeName}" is not possible`)})),s=new ot(n);return t?s.transform(t.screenCTM().inverseO()):s.addOffset()},inside:function(t,n){const s=this.bbox();return t>s.x&&n>s.y&&t<s.x+s.width&&n<s.y+s.height},point:function(t,n){return new it(t,n).transformO(this.screenCTM().inverseO())},ctm:function(){return new et(this.node.getCTM())},screenCTM:function(){try{if("function"==typeof this.isRoot&&!this.isRoot()){const t=this.rect(1,1),n=t.node.getScreenCTM();return t.remove(),new et(n)}return new et(this.node.getScreenCTM())}catch(t){return console.warn(`Cannot get CTM from SVG node ${this.node.nodeName}. Is the element rendered?`),new et}}}),N(Ot,"Element");const Ct={stroke:["color","width","opacity","linecap","linejoin","miterlimit","dasharray","dashoffset"],fill:["color","opacity","rule"],prefix:function(t,n){return"color"===n?t:t+"-"+n}};["fill","stroke"].forEach((function(t){const n={};let s;n[t]=function(n){if(void 0===n)return this.attr(t);if("string"==typeof n||n instanceof st||st.isRgb(n)||n instanceof Ot)this.attr(t,n);else for(s=Ct[t].length-1;s>=0;s--)null!=n[Ct[t][s]]&&this.attr(Ct.prefix(t,Ct[t][s]),n[Ct[t][s]]);return this},a(["Element","Runner"],n)})),a(["Element","Runner"],{matrix:function(t,n,s,i,r,e){return null==t?new et(this):this.attr("transform",new et(t,n,s,i,r,e))},rotate:function(t,n,s){return this.transform({rotate:t,ox:n,oy:s},!0)},skew:function(t,n,s,i){return this.transform(1===arguments.length||3===arguments.length?{skew:t,ox:n,oy:s}:{skew:[t,n],ox:s,oy:i},!0)},shear:function(t,n,s){return this.transform({shear:t,ox:n,oy:s},!0)},scale:function(t,n,s,i){return this.transform(1===arguments.length||3===arguments.length?{scale:t,ox:n,oy:s}:{scale:[t,n],ox:s,oy:i},!0)},translate:function(t,n){return this.transform({translate:[t,n]},!0)},relative:function(t,n){return this.transform({relative:[t,n]},!0)},flip:function(t="both",n="center"){return-1==="xybothtrue".indexOf(t)&&(n=t,t="both"),this.transform({flip:t,origin:n},!0)},opacity:function(t){return this.attr("opacity",t)}}),a("radius",{radius:function(t,n=t){return"radialGradient"===(this._element||this).type?this.attr("r",new Mt(t)):this.rx(t).ry(n)}}),a("Path",{length:function(){return this.node.getTotalLength()},pointAt:function(t){return new it(this.node.getPointAtLength(t))}}),a(["Element","Runner"],{font:function(t,n){if("object"==typeof t){for(n in t)this.font(n,t[n]);return this}return"leading"===t?this.leading(n):this.attr("anchor"===t?"text-anchor":"size"===t||"family"===t||"weight"===t||"stretch"===t||"variant"===t||"style"===t?"font-"+t:t,n)}}),a("Element",["click","dblclick","mousedown","mouseup","mouseover","mouseout","mousemove","mouseenter","mouseleave","touchstart","touchmove","touchleave","touchend","touchcancel","contextmenu","wheel","pointerdown","pointermove","pointerup","pointerleave","pointercancel"].reduce((function(t,n){return t[n]=function(t){return null===t?this.off(n):this.on(n,t),this},t}),{})),a("Element",{untransform:function(){return this.attr("transform",null)},matrixify:function(){return(this.attr("transform")||"").split(H).slice(0,-1).map((function(t){const n=t.trim().split("(");return[n[0],n[1].split(Z).map((function(t){return parseFloat(t)}))]})).reverse().reduce((function(t,n){return"matrix"===n[0]?t.lmultiply(et.fromArray(n[1])):t[n[0]].apply(t,n[1])}),new et)},toParent:function(t,n){if(this===t)return this;if(b(this.node))return this.addTo(t,n);const s=this.screenCTM(),i=t.screenCTM().inverse();return this.addTo(t,n).untransform().transform(i.multiply(s)),this},toRoot:function(t){return this.toParent(this.root(),t)},transform:function(t,n){if(null==t||"string"==typeof t){const n=new et(this).decompose();return null==t?n:n[t]}et.isMatrixLike(t)||(t={...t,origin:g(t,this)});const s=new et(!0===n?this:n||!1).transform(t);return this.attr("transform",s)}});class St extends Ot{flatten(){return this.each((function(){if(this instanceof St)return this.flatten().ungroup()})),this}ungroup(t=this.parent(),n=t.index(this)){return n=-1===n?t.children().length:n,this.each((function(s,i){return i[i.length-s-1].toParent(t,n)})),this.remove()}}N(St,"Container");class Et extends St{constructor(t,n=t){super(T("defs",t),n)}flatten(){return this}ungroup(){return this}}N(Et,"Defs");class Tt extends Ot{}function zt(t){return this.attr("rx",t)}function Ft(t){return this.attr("ry",t)}function Nt(t){return null==t?this.cx()-this.rx():this.cx(t+this.rx())}function Dt(t){return null==t?this.cy()-this.ry():this.cy(t+this.ry())}function Pt(t){return this.attr("cx",t)}function Rt(t){return this.attr("cy",t)}function Lt(t){return null==t?2*this.rx():this.rx(new Mt(t).divide(2))}function $t(t){return null==t?2*this.ry():this.ry(new Mt(t).divide(2))}N(Tt,"Shape");var Gt=Object.freeze({__proto__:null,cx:Pt,cy:Rt,height:$t,rx:zt,ry:Ft,width:Lt,x:Nt,y:Dt});class It extends Tt{constructor(t,n=t){super(T("ellipse",t),n)}size(t,n){const s=m(this,t,n);return this.rx(new Mt(s.width).divide(2)).ry(new Mt(s.height).divide(2))}}L(It,Gt),a("Container",{ellipse:$((function(t=0,n=t){return this.put(new It).size(t,n).move(0,0)}))}),N(It,"Ellipse");class Yt extends jt{constructor(t=A.document.createDocumentFragment()){super(t)}xml(t,n,s){if("boolean"==typeof t&&(s=n,n=t,t=null),null==t||"function"==typeof t){const t=new jt(S("wrapper",s));return t.add(this.node.cloneNode(!0)),t.xml(!1,s)}return super.xml(t,!1,s)}}function Xt(t,n){return this.attr("radialGradient"===(this._element||this).type?{fx:new Mt(t),fy:new Mt(n)}:{x1:new Mt(t),y1:new Mt(n)})}function Ht(t,n){return this.attr("radialGradient"===(this._element||this).type?{cx:new Mt(t),cy:new Mt(n)}:{x2:new Mt(t),y2:new Mt(n)})}N(Yt,"Fragment");var Bt=Object.freeze({__proto__:null,from:Xt,to:Ht});class Vt extends St{constructor(t,n){super(T(t+"Gradient","string"==typeof t?null:t),n)}attr(t,n,s){return"transform"===t&&(t="gradientTransform"),super.attr(t,n,s)}bbox(){return new ot}targets(){return ft("svg [fill*="+this.id()+"]")}toString(){return this.url()}update(t){return this.clear(),"function"==typeof t&&t.call(this,this),this}url(){return"url(#"+this.id()+")"}}L(Vt,Bt),a({Container:{gradient(...t){return this.defs().gradient(...t)}},Defs:{gradient:$((function(t,n){return this.put(new Vt(t)).update(n)}))}}),N(Vt,"Gradient");class Qt extends St{constructor(t,n=t){super(T("pattern",t),n)}attr(t,n,s){return"transform"===t&&(t="patternTransform"),super.attr(t,n,s)}bbox(){return new ot}targets(){return ft("svg [fill*="+this.id()+"]")}toString(){return this.url()}update(t){return this.clear(),"function"==typeof t&&t.call(this,this),this}url(){return"url(#"+this.id()+")"}}a({Container:{pattern(...t){return this.defs().pattern(...t)}},Defs:{pattern:$((function(t,n,s){return this.put(new Qt).update(s).attr({x:0,y:0,width:t,height:n,patternUnits:"userSpaceOnUse"})}))}}),N(Qt,"Pattern");class qt extends Tt{constructor(t,n=t){super(T("image",t),n)}load(t,n){if(!t)return this;const s=new A.window.Image;return mt(s,"load",(function(t){const i=this.parent(Qt);0===this.width()&&0===this.height()&&this.size(s.width,s.height),i instanceof Qt&&0===i.width()&&0===i.height()&&i.size(this.width(),this.height()),"function"==typeof n&&n.call(this,t)}),this),mt(s,"load error",(function(){gt(s)})),this.attr("href",s.src=t,k)}}At.push((function(t,n,s){return"fill"!==t&&"stroke"!==t||U.test(n)&&(n=s.root().defs().image(n)),n instanceof qt&&(n=s.root().defs().pattern(0,0,(t=>{t.add(n)}))),n})),a({Container:{image:$((function(t,n){return this.put(new qt).size(0,0).load(t,n)}))}}),N(qt,"Image");class Jt extends _t{bbox(){let t=-1/0,n=-1/0,s=1/0,i=1/0;return this.forEach((function(r){t=Math.max(r[0],t),n=Math.max(r[1],n),s=Math.min(r[0],s),i=Math.min(r[1],i)})),new ot(s,i,t-s,n-i)}move(t,n){const s=this.bbox();if(t-=s.x,n-=s.y,!isNaN(t)&&!isNaN(n))for(let s=this.length-1;s>=0;s--)this[s]=[this[s][0]+t,this[s][1]+n];return this}parse(t=[0,0]){const n=[];(t=t instanceof Array?Array.prototype.concat.apply([],t):t.trim().split(Z).map(parseFloat)).length%2!=0&&t.pop();for(let s=0,i=t.length;s<i;s+=2)n.push([t[s],t[s+1]]);return n}size(t,n){let s;const i=this.bbox();for(s=this.length-1;s>=0;s--)i.width&&(this[s][0]=(this[s][0]-i.x)*t/i.width+i.x),i.height&&(this[s][1]=(this[s][1]-i.y)*n/i.height+i.y);return this}toLine(){return{x1:this[0][0],y1:this[0][1],x2:this[1][0],y2:this[1][1]}}toString(){const t=[];for(let n=0,s=this.length;n<s;n++)t.push(this[n].join(","));return t.join(" ")}transform(t){return this.clone().transformO(t)}transformO(t){et.isMatrixLike(t)||(t=new et(t));for(let n=this.length;n--;){const[s,i]=this[n];this[n][0]=t.a*s+t.c*i+t.e,this[n][1]=t.b*s+t.d*i+t.f}return this}}var Ut=Object.freeze({__proto__:null,MorphArray:Jt,height:function(t){const n=this.bbox();return null==t?n.height:this.size(n.width,t)},width:function(t){const n=this.bbox();return null==t?n.width:this.size(t,n.height)},x:function(t){return null==t?this.bbox().x:this.move(t,this.bbox().y)},y:function(t){return null==t?this.bbox().y:this.move(this.bbox().x,t)}});class Zt extends Tt{constructor(t,n=t){super(T("line",t),n)}array(){return new Jt([[this.attr("x1"),this.attr("y1")],[this.attr("x2"),this.attr("y2")]])}move(t,n){return this.attr(this.array().move(t,n).toLine())}plot(t,n,s,i){return null==t?this.array():(t=void 0!==n?{x1:t,y1:n,x2:s,y2:i}:new Jt(t).toLine(),this.attr(t))}size(t,n){const s=m(this,t,n);return this.attr(this.array().size(s.width,s.height).toLine())}}L(Zt,Ut),a({Container:{line:$((function(...t){return Zt.prototype.plot.apply(this.put(new Zt),null!=t[0]?t:[0,0,0,0])}))}}),N(Zt,"Line");class Wt extends St{constructor(t,n=t){super(T("marker",t),n)}height(t){return this.attr("markerHeight",t)}orient(t){return this.attr("orient",t)}ref(t,n){return this.attr("refX",t).attr("refY",n)}toString(){return"url(#"+this.id()+")"}update(t){return this.clear(),"function"==typeof t&&t.call(this,this),this}width(t){return this.attr("markerWidth",t)}}function Kt(t,n){return function(s){return null==s?this[t]:(this[t]=s,n&&n.call(this),this)}}a({Container:{marker(...t){return this.defs().marker(...t)}},Defs:{marker:$((function(t,n,s){return this.put(new Wt).size(t,n).ref(t/2,n/2).viewbox(0,0,t,n).attr("orient","auto").update(s)}))},marker:{marker(t,n,s,i){let r=["marker"];return"all"!==t&&r.push(t),r=r.join("-"),t=arguments[1]instanceof Wt?arguments[1]:this.defs().marker(n,s,i),this.attr(r,t)}}}),N(Wt,"Marker");const tn={"-":function(t){return t},"<>":function(t){return-Math.cos(t*Math.PI)/2+.5},">":function(t){return Math.sin(t*Math.PI/2)},"<":function(t){return 1-Math.cos(t*Math.PI/2)},bezier:function(t,n,s,i){return function(r){return r<0?t>0?n/t*r:s>0?i/s*r:0:r>1?s<1?(1-i)/(1-s)*r+(i-s)/(1-s):t<1?(1-n)/(1-t)*r+(n-t)/(1-t):1:3*r*(1-r)**2*n+3*r**2*(1-r)*i+r**3}},steps:function(t,n="end"){n=n.split("-").reverse()[0];let s=t;return"none"===n?--s:"both"===n&&++s,(i,r=!1)=>{let e=Math.floor(i*t);const h=i*e%1==0;return"start"!==n&&"both"!==n||++e,r&&h&&--e,i>=0&&e<0&&(e=0),i<=1&&e>s&&(e=s),e/s}}};class nn{done(){return!1}}class sn extends nn{constructor(t=">"){super(),this.ease=tn[t]||t}step(t,n,s){return"number"!=typeof t?s<1?t:n:t+(n-t)*this.ease(s)}}class rn extends nn{constructor(t){super(),this.stepper=t}done(t){return t.done}step(t,n,s,i){return this.stepper(t,n,s,i)}}function en(){const t=(this._duration||500)/1e3,n=Math.PI,s=Math.log((this._overshoot||0)/100+1e-10),i=-s/Math.sqrt(n*n+s*s),r=3.9/(i*t);this.d=2*i*r,this.k=r*r}L(class extends rn{constructor(t=500,n=0){super(),this.duration(t).overshoot(n)}step(t,n,s,i){if("string"==typeof t)return t;if(i.done=s===1/0,s===1/0)return n;if(0===s)return t;s>100&&(s=16);const r=i.velocity||0,e=-this.d*r-this.k*(t-n),h=t+r*(s/=1e3)+e*s*s/2;return i.velocity=r+e*s,i.done=Math.abs(n-h)+Math.abs(r)<.002,i.done?n:h}},{duration:Kt("_duration",en),overshoot:Kt("_overshoot",en)}),L(class extends rn{constructor(t=.1,n=.01,s=0,i=1e3){super(),this.p(t).i(n).d(s).windup(i)}step(t,n,s,i){if("string"==typeof t)return t;if(i.done=s===1/0,s===1/0)return n;if(0===s)return t;const r=n-t;let e=(i.integral||0)+r*s;const h=(r-(i.error||0))/s,u=this._windup;return!1!==u&&(e=Math.max(-u,Math.min(e,u))),i.error=r,i.integral=e,i.done=Math.abs(r)<.001,i.done?n:t+(this.P*r+this.I*e+this.D*h)}},{windup:Kt("_windup"),p:Kt("P"),i:Kt("I"),d:Kt("D")});const hn={M:2,L:2,H:1,V:1,C:6,S:4,Q:4,T:2,A:7,Z:0},un={M:function(t,n,s){return n.x=s.x=t[0],n.y=s.y=t[1],["M",n.x,n.y]},L:function(t,n){return n.x=t[0],n.y=t[1],["L",t[0],t[1]]},H:function(t,n){return n.x=t[0],["H",t[0]]},V:function(t,n){return n.y=t[0],["V",t[0]]},C:function(t,n){return n.x=t[4],n.y=t[5],["C",t[0],t[1],t[2],t[3],t[4],t[5]]},S:function(t,n){return n.x=t[2],n.y=t[3],["S",t[0],t[1],t[2],t[3]]},Q:function(t,n){return n.x=t[2],n.y=t[3],["Q",t[0],t[1],t[2],t[3]]},T:function(t,n){return n.x=t[0],n.y=t[1],["T",t[0],t[1]]},Z:function(t,n,s){return n.x=s.x,n.y=s.y,["Z"]},A:function(t,n){return n.x=t[5],n.y=t[6],["A",t[0],t[1],t[2],t[3],t[4],t[5],t[6]]}},on="mlhvqtcsaz".split("");for(let t=0,n=on.length;t<n;++t)un[on[t]]=function(t){return function(n,s,i){if("H"===t)n[0]=n[0]+s.x;else if("V"===t)n[0]=n[0]+s.y;else if("A"===t)n[5]=n[5]+s.x,n[6]=n[6]+s.y;else for(let t=0,i=n.length;t<i;++t)n[t]=n[t]+(t%2?s.y:s.x);return un[t](n,s,i)}}(on[t].toUpperCase());function cn(t){return t.segment.length&&t.segment.length-1===hn[t.segment[0].toUpperCase()]}function ln(t,n){t.inNumber&&an(t,!1);const s=W.test(n);if(s)t.segment=[n];else{const n=t.lastCommand,s=n.toLowerCase();t.segment=["m"===s?n===s?"l":"L":n]}return t.inSegment=!0,t.lastCommand=t.segment[0],s}function an(t,n){if(!t.inNumber)throw new Error("Parser Error");t.number&&t.segment.push(parseFloat(t.number)),t.inNumber=n,t.number="",t.pointSeen=!1,t.hasExponent=!1,cn(t)&&fn(t)}function fn(t){t.inSegment=!1,t.absolute&&(t.segment=function(t){return un[t.segment[0]](t.segment.slice(1),t.p,t.p0)}(t)),t.segments.push(t.segment)}function pn(t){if(!t.segment.length)return!1;const n="A"===t.segment[0].toUpperCase(),s=t.segment.length;return n&&(4===s||5===s)}function dn(t){return"E"===t.lastToken.toUpperCase()}const wn=new Set([" ",",","\t","\n","\r","\f"]);class yn extends _t{bbox(){return ht().path.setAttribute("d",this.toString()),new ot(ht.nodes.path.getBBox())}move(t,n){const s=this.bbox();if(t-=s.x,n-=s.y,!isNaN(t)&&!isNaN(n))for(let s,i=this.length-1;i>=0;i--)s=this[i][0],"M"===s||"L"===s||"T"===s?(this[i][1]+=t,this[i][2]+=n):"H"===s?this[i][1]+=t:"V"===s?this[i][1]+=n:"C"===s||"S"===s||"Q"===s?(this[i][1]+=t,this[i][2]+=n,this[i][3]+=t,this[i][4]+=n,"C"===s&&(this[i][5]+=t,this[i][6]+=n)):"A"===s&&(this[i][6]+=t,this[i][7]+=n);return this}parse(t="M0 0"){return Array.isArray(t)&&(t=Array.prototype.concat.apply([],t).toString()),function(t,n=!0){let s=0,i="";const r={segment:[],inNumber:!1,number:"",lastToken:"",inSegment:!1,segments:[],pointSeen:!1,hasExponent:!1,absolute:n,p0:new it,p:new it};for(;r.lastToken=i,i=t.charAt(s++);)if(r.inSegment||!ln(r,i))if("."!==i)if(isNaN(parseInt(i)))if(wn.has(i))r.inNumber&&an(r,!1);else if("-"!==i&&"+"!==i)if("E"!==i.toUpperCase()){if(W.test(i)){if(r.inNumber)an(r,!1);else{if(!cn(r))throw new Error("parser Error");fn(r)}--s}}else r.number+=i,r.hasExponent=!0;else{if(r.inNumber&&!dn(r)){an(r,!1),--s;continue}r.number+=i,r.inNumber=!0}else{if("0"===r.number||pn(r)){r.inNumber=!0,r.number=i,an(r,!0);continue}r.inNumber=!0,r.number+=i}else{if(r.pointSeen||r.hasExponent){an(r,!1),--s;continue}r.inNumber=!0,r.pointSeen=!0,r.number+=i}return r.inNumber&&an(r,!1),r.inSegment&&cn(r)&&fn(r),r.segments}(t)}size(t,n){const s=this.bbox();let i,r;for(s.width=0===s.width?1:s.width,s.height=0===s.height?1:s.height,i=this.length-1;i>=0;i--)r=this[i][0],"M"===r||"L"===r||"T"===r?(this[i][1]=(this[i][1]-s.x)*t/s.width+s.x,this[i][2]=(this[i][2]-s.y)*n/s.height+s.y):"H"===r?this[i][1]=(this[i][1]-s.x)*t/s.width+s.x:"V"===r?this[i][1]=(this[i][1]-s.y)*n/s.height+s.y:"C"===r||"S"===r||"Q"===r?(this[i][1]=(this[i][1]-s.x)*t/s.width+s.x,this[i][2]=(this[i][2]-s.y)*n/s.height+s.y,this[i][3]=(this[i][3]-s.x)*t/s.width+s.x,this[i][4]=(this[i][4]-s.y)*n/s.height+s.y,"C"===r&&(this[i][5]=(this[i][5]-s.x)*t/s.width+s.x,this[i][6]=(this[i][6]-s.y)*n/s.height+s.y)):"A"===r&&(this[i][1]=this[i][1]*t/s.width,this[i][2]=this[i][2]*n/s.height,this[i][6]=(this[i][6]-s.x)*t/s.width+s.x,this[i][7]=(this[i][7]-s.y)*n/s.height+s.y);return this}toString(){return function(t){let n="";for(let s=0,i=t.length;s<i;s++)n+=t[s][0],null!=t[s][1]&&(n+=t[s][1],null!=t[s][2]&&(n+=" ",n+=t[s][2],null!=t[s][3]&&(n+=" ",n+=t[s][3],n+=" ",n+=t[s][4],null!=t[s][5]&&(n+=" ",n+=t[s][5],n+=" ",n+=t[s][6],null!=t[s][7]&&(n+=" ",n+=t[s][7])))));return n+" "}(this)}}const mn=t=>{const n=typeof t;return"number"===n?Mt:"string"===n?st.isColor(t)?st:Z.test(t)?W.test(t)?yn:_t:G.test(t)?Mt:xn:Mn.indexOf(t.constructor)>-1?t.constructor:Array.isArray(t)?_t:"object"===n?_n:xn};class gn{constructor(t){this._stepper=t||new sn("-"),this._from=null,this._to=null,this._type=null,this._context=null,this._morphObj=null}at(t){return this._morphObj.morph(this._from,this._to,t,this._stepper,this._context)}done(){return this._context.map(this._stepper.done).reduce((function(t,n){return t&&n}),!0)}from(t){return null==t?this._from:(this._from=this._set(t),this)}stepper(t){return null==t?this._stepper:(this._stepper=t,this)}to(t){return null==t?this._to:(this._to=this._set(t),this)}type(t){return null==t?this._type:(this._type=t,this)}_set(t){this._type||this.type(mn(t));let n=new this._type(t);return this._type===st&&(n=this._to?n[this._to[4]]():this._from?n[this._from[4]]():n),this._type===_n&&(n=this._to?n.align(this._to):this._from?n.align(this._from):n),n=n.toConsumable(),this._morphObj=this._morphObj||new this._type,this._context=this._context||Array.apply(null,Array(n.length)).map(Object).map((function(t){return t.done=!0,t})),n}}class xn{constructor(...t){this.init(...t)}init(t){return t=Array.isArray(t)?t[0]:t,this.value=t,this}toArray(){return[this.value]}valueOf(){return this.value}}class bn{constructor(...t){this.init(...t)}init(t){return Array.isArray(t)&&(t={scaleX:t[0],scaleY:t[1],shear:t[2],rotate:t[3],translateX:t[4],translateY:t[5],originX:t[6],originY:t[7]}),Object.assign(this,bn.defaults,t),this}toArray(){const t=this;return[t.scaleX,t.scaleY,t.shear,t.rotate,t.translateX,t.translateY,t.originX,t.originY]}}bn.defaults={scaleX:1,scaleY:1,shear:0,rotate:0,translateX:0,translateY:0,originX:0,originY:0};const vn=(t,n)=>t[0]<n[0]?-1:t[0]>n[0]?1:0;class _n{constructor(...t){this.init(...t)}align(t){const n=this.values;for(let s=0,i=n.length;s<i;++s){if(n[s+1]===t[s+1]){if(n[s+1]===st&&t[s+7]!==n[s+7]){const n=t[s+7],i=new st(this.values.splice(s+3,5))[n]().toArray();this.values.splice(s+3,0,...i)}s+=n[s+2]+2;continue}if(!t[s+1])return this;const i=(new t[s+1]).toArray();n.splice(s,n[s+2]+3,t[s],t[s+1],t[s+2],...i),s+=n[s+2]+2}return this}init(t){if(this.values=[],Array.isArray(t))return void(this.values=t.slice());t=t||{};const n=[];for(const s in t){const i=mn(t[s]),r=new i(t[s]).toArray();n.push([s,i,r.length,...r])}return n.sort(vn),this.values=n.reduce(((t,n)=>t.concat(n)),[]),this}toArray(){return this.values}valueOf(){const t={},n=this.values;for(;n.length;){const s=n.shift(),i=n.shift(),r=n.shift(),e=n.splice(0,r);t[s]=new i(e)}return t}}const Mn=[xn,bn,_n];class kn extends Tt{constructor(t,n=t){super(T("path",t),n)}array(){return this._array||(this._array=new yn(this.attr("d")))}clear(){return delete this._array,this}height(t){return null==t?this.bbox().height:this.size(this.bbox().width,t)}move(t,n){return this.attr("d",this.array().move(t,n))}plot(t){return null==t?this.array():this.clear().attr("d","string"==typeof t?t:this._array=new yn(t))}size(t,n){const s=m(this,t,n);return this.attr("d",this.array().size(s.width,s.height))}width(t){return null==t?this.bbox().width:this.size(t,this.bbox().height)}x(t){return null==t?this.bbox().x:this.move(t,this.bbox().y)}y(t){return null==t?this.bbox().y:this.move(this.bbox().x,t)}}kn.prototype.MorphArray=yn,a({Container:{path:$((function(t){return this.put(new kn).plot(t||new yn)}))}}),N(kn,"Path");var An=Object.freeze({__proto__:null,array:function(){return this._array||(this._array=new Jt(this.attr("points")))},clear:function(){return delete this._array,this},move:function(t,n){return this.attr("points",this.array().move(t,n))},plot:function(t){return null==t?this.array():this.clear().attr("points","string"==typeof t?t:this._array=new Jt(t))},size:function(t,n){const s=m(this,t,n);return this.attr("points",this.array().size(s.width,s.height))}});class jn extends Tt{constructor(t,n=t){super(T("polygon",t),n)}}a({Container:{polygon:$((function(t){return this.put(new jn).plot(t||new Jt)}))}}),L(jn,Ut),L(jn,An),N(jn,"Polygon");class On extends Tt{constructor(t,n=t){super(T("polyline",t),n)}}a({Container:{polyline:$((function(t){return this.put(new On).plot(t||new Jt)}))}}),L(On,Ut),L(On,An),N(On,"Polyline");class Cn extends Tt{constructor(t,n=t){super(T("rect",t),n)}}L(Cn,{rx:zt,ry:Ft}),a({Container:{rect:$((function(t,n){return this.put(new Cn).size(t,n)}))}}),N(Cn,"Rect");class Sn{constructor(){this._first=null,this._last=null}first(){return this._first&&this._first.value}last(){return this._last&&this._last.value}push(t){const n=void 0!==t.next?t:{value:t,next:null,prev:null};return this._last?(n.prev=this._last,this._last.next=n,this._last=n):(this._last=n,this._first=n),n}remove(t){t.prev&&(t.prev.next=t.next),t.next&&(t.next.prev=t.prev),t===this._last&&(this._last=t.prev),t===this._first&&(this._first=t.next),t.prev=null,t.next=null}shift(){const t=this._first;return t?(this._first=t.next,this._first&&(this._first.prev=null),this._last=this._first?this._last:null,t.value):null}}const En={nextDraw:null,frames:new Sn,timeouts:new Sn,immediates:new Sn,timer:()=>A.window.performance||A.window.Date,transforms:[],frame(t){const n=En.frames.push({run:t});return null===En.nextDraw&&(En.nextDraw=A.window.requestAnimationFrame(En._draw)),n},timeout(t,n){n=n||0;const s=En.timer().now()+n,i=En.timeouts.push({run:t,time:s});return null===En.nextDraw&&(En.nextDraw=A.window.requestAnimationFrame(En._draw)),i},immediate(t){const n=En.immediates.push(t);return null===En.nextDraw&&(En.nextDraw=A.window.requestAnimationFrame(En._draw)),n},cancelFrame(t){null!=t&&En.frames.remove(t)},clearTimeout(t){null!=t&&En.timeouts.remove(t)},cancelImmediate(t){null!=t&&En.immediates.remove(t)},_draw(t){let n=null;const s=En.timeouts.last();for(;(n=En.timeouts.shift())&&(t>=n.time?n.run():En.timeouts.push(n),n!==s););let i=null;const r=En.frames.last();for(;i!==r&&(i=En.frames.shift());)i.run(t);let e=null;for(;e=En.immediates.shift();)e();En.nextDraw=En.timeouts.first()||En.frames.first()?A.window.requestAnimationFrame(En._draw):null}},Tn=function(t){const n=t.start,s=t.runner.duration();return{start:n,duration:s,end:n+s,runner:t.runner}},zn=function(){const t=A.window;return(t.performance||t.Date).now()};class Fn extends xt{constructor(t=zn){super(),this._timeSource=t,this.terminate()}active(){return!!this._nextFrame}finish(){return this.time(this.getEndTimeOfTimeline()+1),this.pause()}getEndTime(){const t=this.getLastRunnerInfo(),n=t?t.runner.duration():0;return(t?t.start:this._time)+n}getEndTimeOfTimeline(){const t=this._runners.map((t=>t.start+t.runner.duration()));return Math.max(0,...t)}getLastRunnerInfo(){return this.getRunnerInfoById(this._lastRunnerId)}getRunnerInfoById(t){return this._runners[this._runnerIds.indexOf(t)]||null}pause(){return this._paused=!0,this._continue()}persist(t){return null==t?this._persist:(this._persist=t,this)}play(){return this._paused=!1,this.updateTime()._continue()}reverse(t){const n=this.speed();if(null==t)return this.speed(-n);const s=Math.abs(n);return this.speed(t?-s:s)}schedule(t,n,s){if(null==t)return this._runners.map(Tn);let i=0;const r=this.getEndTime();if(n=n||0,null==s||"last"===s||"after"===s)i=r;else if("absolute"===s||"start"===s)i=n,n=0;else if("now"===s)i=this._time;else if("relative"===s){const s=this.getRunnerInfoById(t.id);s&&(i=s.start+n,n=0)}else{if("with-last"!==s)throw new Error('Invalid value for the "when" parameter');{const t=this.getLastRunnerInfo();i=t?t.start:this._time}}t.unschedule(),t.timeline(this);const e=t.persist(),h={persist:null===e?this._persist:e,start:i+n,runner:t};return this._lastRunnerId=t.id,this._runners.push(h),this._runners.sort(((t,n)=>t.start-n.start)),this._runnerIds=this._runners.map((t=>t.runner.id)),this.updateTime()._continue(),this}seek(t){return this.time(this._time+t)}source(t){return null==t?this._timeSource:(this._timeSource=t,this)}speed(t){return null==t?this._speed:(this._speed=t,this)}stop(){return this.time(0),this.pause()}time(t){return null==t?this._time:(this._time=t,this._continue(!0))}unschedule(t){const n=this._runnerIds.indexOf(t.id);return n<0||(this._runners.splice(n,1),this._runnerIds.splice(n,1),t.timeline(null)),this}updateTime(){return this.active()||(this._lastSourceTime=this._timeSource()),this}_continue(t=!1){return En.cancelFrame(this._nextFrame),this._nextFrame=null,t?this._stepImmediate():(this._paused||(this._nextFrame=En.frame(this._step)),this)}_stepFn(t=!1){const n=this._timeSource();let s=n-this._lastSourceTime;t&&(s=0);const i=this._speed*s+(this._time-this._lastStepTime);this._lastSourceTime=n,t||(this._time+=i,this._time=this._time<0?0:this._time),this._lastStepTime=this._time,this.fire("time",this._time);for(let t=this._runners.length;t--;){const n=this._runners[t];this._time-n.start<=0&&n.runner.reset()}let r=!1;for(let t=0,n=this._runners.length;t<n;t++){const s=this._runners[t],e=s.runner;let h=i;const u=this._time-s.start;u<=0?r=!0:(u<h&&(h=u),e.active()&&(e.step(h).done?!0!==s.persist&&e.duration()-e.time()+this._time+s.persist<this._time&&(e.unschedule(),--t,--n):r=!0))}return r&&!(this._speed<0&&0===this._time)||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)}}a({Element:{timeline:function(t){return null==t?(this._timeline=this._timeline||new Fn,this._timeline):(this._timeline=t,this)}}});class Nn extends xt{constructor(t){super(),this.id=Nn.id++,t="function"==typeof(t=null==t?400:t)?new rn(t):t,this._element=null,this._timeline=null,this.done=!1,this._queue=[],this._duration="number"==typeof t&&t,this._isDeclarative=t instanceof rn,this._stepper=this._isDeclarative?t:new sn,this._history={},this.enabled=!0,this._time=0,this._lastTime=0,this._reseted=!0,this.transforms=new et,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(t,n,s){let i=1,r=!1,e=0;return n=n??0,s=s||"last","object"!=typeof(t=t??400)||t instanceof nn||(n=t.delay??n,s=t.when??s,r=t.swing||r,i=t.times??i,e=t.wait??e,t=t.duration??400),{duration:t,delay:n,swing:r,times:i,wait:e,when:s}}active(t){return null==t?this.enabled:(this.enabled=t,this)}addTransform(t){return this.transforms.lmultiplyO(t),this}after(t){return this.on("finished",t)}animate(t,n,s){const i=Nn.sanitise(t,n,s),r=new Nn(i.duration);return this._timeline&&r.timeline(this._timeline),this._element&&r.element(this._element),r.loop(i).schedule(i.delay,i.when)}clearTransform(){return this.transforms=new et,this}clearTransformsFromQueue(){this.done&&this._timeline&&this._timeline._runnerIds.includes(this.id)||(this._queue=this._queue.filter((t=>!t.isTransform)))}delay(t){return this.animate(0,t)}duration(){return this._times*(this._wait+this._duration)-this._wait}during(t){return this.queue(null,t)}ease(t){return this._stepper=new sn(t),this}element(t){return null==t?this._element:(this._element=t,t._prepareRunner(),this)}finish(){return this.step(1/0)}loop(t,n,s){return"object"==typeof t&&(n=t.swing,s=t.wait,t=t.times),this._times=t||1/0,this._swing=n||!1,this._wait=s||0,!0===this._times&&(this._times=1/0),this}loops(t){const n=this._duration+this._wait;if(null==t){const t=Math.floor(this._time/n);return Math.min(t+(this._time-t*n)/this._duration,this._times)}const s=Math.floor(t);return this.time(n*s+this._duration*(t%1))}persist(t){return null==t?this._persist:(this._persist=t,this)}position(t){const n=this._time,s=this._duration,i=this._wait,r=this._swing,e=this._reverse;let h;if(null==t){const t=function(t){const n=r*Math.floor(t%(2*(i+s))/(i+s)),h=n&&!e||!n&&e,u=Math.pow(-1,h)*(t%(i+s))/s+h;return Math.max(Math.min(u,1),0)},u=this._times*(i+s)-i;return h=n<=0?Math.round(t(1e-5)):n<u?t(n):Math.round(t(u-1e-5)),h}const u=Math.floor(this.loops()),o=r&&u%2==0;return h=u+(o&&!e||e&&o?t:1-t),this.loops(h)}progress(t){return null==t?Math.min(1,this._time/this.duration()):this.time(t*this.duration())}queue(t,n,s,i){return this._queue.push({initialiser:t||bt,runner:n||bt,retarget:s,isTransform:i,initialised:!1,finished:!1}),this.timeline()&&this.timeline()._continue(),this}reset(){return this._reseted||(this.time(0),this._reseted=!0),this}reverse(t){return this._reverse=null==t?!this._reverse:t,this}schedule(t,n,s){if(t instanceof Fn||(s=n,n=t,t=this.timeline()),!t)throw Error("Runner cannot be scheduled without timeline");return t.schedule(this,n,s),this}step(t){if(!this.enabled)return this;this._time+=t=null==t?16:t;const n=this.position(),s=this._lastPosition!==n&&this._time>=0;this._lastPosition=n;const i=this.duration(),r=this._lastTime<=0&&this._time>0,e=this._lastTime<i&&this._time>=i;this._lastTime=this._time,r&&this.fire("start",this);const h=this._isDeclarative;this.done=!h&&!e&&this._time>=i,this._reseted=!1;let u=!1;return(s||h)&&(this._initialise(s),this.transforms=new et,u=this._run(h?t:n),this.fire("step",this)),this.done=this.done||u&&h,e&&this.fire("finished",this),this}time(t){return null==t?this._time:(this.step(t-this._time),this)}timeline(t){return void 0===t?this._timeline:(this._timeline=t,this)}unschedule(){const t=this.timeline();return t&&t.unschedule(this),this}_initialise(t){if(t||this._isDeclarative)for(let n=0,s=this._queue.length;n<s;++n){const s=this._queue[n],i=this._isDeclarative||!s.initialised&&t;t=!s.finished,i&&t&&(s.initialiser.call(this),s.initialised=!0)}}_rememberMorpher(t,n){if(this._history[t]={morpher:n,caller:this._queue[this._queue.length-1]},this._isDeclarative){const t=this.timeline();t&&t.play()}}_run(t){let n=!0;for(let s=0,i=this._queue.length;s<i;++s){const i=this._queue[s],r=i.runner.call(this,t);i.finished=i.finished||!0===r,n=n&&i.finished}return n}_tryRetarget(t,n,s){if(this._history[t]){if(!this._history[t].caller.initialised){const n=this._queue.indexOf(this._history[t].caller);return this._queue.splice(n,1),!1}this._history[t].caller.retarget?this._history[t].caller.retarget.call(this,n,s):this._history[t].morpher.to(n),this._history[t].caller.finished=!1;const i=this.timeline();return i&&i.play(),!0}return!1}}Nn.id=0;class Dn{constructor(t=new et,n=-1,s=!0){this.transforms=t,this.id=n,this.done=s}clearTransformsFromQueue(){}}L([Nn,Dn],{mergeWith(t){return new Dn(t.transforms.lmultiply(this.transforms),t.id)}});const Pn=(t,n)=>t.lmultiplyO(n),Rn=t=>t.transforms;function Ln(){const t=this._transformationRunners.runners.map(Rn).reduce(Pn,new et);this.transform(t),this._transformationRunners.merge(),1===this._transformationRunners.length()&&(this._frameId=null)}class $n{constructor(){this.runners=[],this.ids=[]}add(t){if(this.runners.includes(t))return;const n=t.id+1;return this.runners.push(t),this.ids.push(n),this}clearBefore(t){const n=this.ids.indexOf(t+1)||1;return this.ids.splice(0,n,0),this.runners.splice(0,n,new Dn).forEach((t=>t.clearTransformsFromQueue())),this}edit(t,n){const s=this.ids.indexOf(t+1);return this.ids.splice(s,1,t+1),this.runners.splice(s,1,n),this}getByID(t){return this.runners[this.ids.indexOf(t+1)]}length(){return this.ids.length}merge(){let t=null;for(let n=0;n<this.runners.length;++n){const s=this.runners[n];if(!(t&&s.done&&t.done)||s._timeline&&s._timeline._runnerIds.includes(s.id)||t._timeline&&t._timeline._runnerIds.includes(t.id))t=s;else{this.remove(s.id);const i=s.mergeWith(t);this.edit(t.id,i),t=i,--n}}return this}remove(t){const n=this.ids.indexOf(t+1);return this.ids.splice(n,1),this.runners.splice(n,1),this}}a({Element:{animate(t,n,s){const i=Nn.sanitise(t,n,s),r=this.timeline();return new Nn(i.duration).loop(i).element(this).timeline(r.play()).schedule(i.delay,i.when)},delay(t,n){return this.animate(0,t,n)},_clearTransformRunnersBefore(t){this._transformationRunners.clearBefore(t.id)},_currentTransform(t){return this._transformationRunners.runners.filter((n=>n.id<=t.id)).map(Rn).reduce(Pn,new et)},_addRunner(t){this._transformationRunners.add(t),En.cancelImmediate(this._frameId),this._frameId=En.immediate(Ln.bind(this))},_prepareRunner(){null==this._frameId&&(this._transformationRunners=(new $n).add(new Dn(new et(this))))}}}),L(Nn,{attr(t,n){return this.styleAttr("attr",t,n)},css(t,n){return this.styleAttr("css",t,n)},styleAttr(t,n,s){if("string"==typeof n)return this.styleAttr(t,{[n]:s});let i=n;if(this._tryRetarget(t,i))return this;let r=new gn(this._stepper).to(i),e=Object.keys(i);return this.queue((function(){r=r.from(this.element()[t](e))}),(function(n){return this.element()[t](r.at(n).valueOf()),r.done()}),(function(n){const s=Object.keys(n),h=(u=e,s.filter((t=>!u.includes(t))));var u;if(h.length){const n=this.element()[t](h),s=new _n(r.from()).valueOf();Object.assign(s,n),r.from(s)}const o=new _n(r.to()).valueOf();Object.assign(o,n),r.to(o),e=s,i=n})),this._rememberMorpher(t,r),this},zoom(t,n){if(this._tryRetarget("zoom",t,n))return this;let s=new gn(this._stepper).to(new Mt(t));return this.queue((function(){s=s.from(this.element().zoom())}),(function(t){return this.element().zoom(s.at(t),n),s.done()}),(function(t,i){n=i,s.to(t)})),this._rememberMorpher("zoom",s),this},transform(t,n,s){if(n=t.relative||n,this._isDeclarative&&!n&&this._tryRetarget("transform",t))return this;const i=et.isMatrixLike(t);s=null!=t.affine?t.affine:null!=s?s:!i;const r=new gn(this._stepper).type(s?bn:et);let e,h,u,o,c;return this.queue((function(){h=h||this.element(),e=e||g(t,h),c=new et(n?void 0:h),h._addRunner(this),n||h._clearTransformRunnersBefore(this)}),(function(l){n||this.clearTransform();const{x:a,y:f}=new it(e).transform(h._currentTransform(this));let p=new et({...t,origin:[a,f]}),d=this._isDeclarative&&u?u:c;if(s){p=p.decompose(a,f),d=d.decompose(a,f);const t=p.rotate,n=d.rotate,s=[t-360,t,t+360],i=s.map((t=>Math.abs(t-n))),r=Math.min(...i),e=i.indexOf(r);p.rotate=s[e]}n&&(i||(p.rotate=t.rotate||0),this._isDeclarative&&o&&(d.rotate=o)),r.from(d),r.to(p);const w=r.at(l);return o=w.rotate,u=new et(w),this.addTransform(u),h._addRunner(this),r.done()}),(function(n){(n.origin||"center").toString()!==(t.origin||"center").toString()&&(e=g(n,h)),t={...n,origin:e}}),!0),this._isDeclarative&&this._rememberMorpher("transform",r),this},x(t){return this._queueNumber("x",t)},y(t){return this._queueNumber("y",t)},ax(t){return this._queueNumber("ax",t)},ay(t){return this._queueNumber("ay",t)},dx(t=0){return this._queueNumberDelta("x",t)},dy(t=0){return this._queueNumberDelta("y",t)},dmove(t,n){return this.dx(t).dy(n)},_queueNumberDelta(t,n){if(n=new Mt(n),this._tryRetarget(t,n))return this;const s=new gn(this._stepper).to(n);let i=null;return this.queue((function(){i=this.element()[t](),s.from(i),s.to(i+n)}),(function(n){return this.element()[t](s.at(n)),s.done()}),(function(t){s.to(i+new Mt(t))})),this._rememberMorpher(t,s),this},_queueObject(t,n){if(this._tryRetarget(t,n))return this;const s=new gn(this._stepper).to(n);return this.queue((function(){s.from(this.element()[t]())}),(function(n){return this.element()[t](s.at(n)),s.done()})),this._rememberMorpher(t,s),this},_queueNumber(t,n){return this._queueObject(t,new Mt(n))},cx(t){return this._queueNumber("cx",t)},cy(t){return this._queueNumber("cy",t)},move(t,n){return this.x(t).y(n)},amove(t,n){return this.ax(t).ay(n)},center(t,n){return this.cx(t).cy(n)},size(t,n){let s;return t&&n||(s=this._element.bbox()),t||(t=s.width/s.height*n),n||(n=s.height/s.width*t),this.width(t).height(n)},width(t){return this._queueNumber("width",t)},height(t){return this._queueNumber("height",t)},plot(t,n,s,i){if(4===arguments.length)return this.plot([t,n,s,i]);if(this._tryRetarget("plot",t))return this;const r=new gn(this._stepper).type(this._element.MorphArray).to(t);return this.queue((function(){r.from(this._element.array())}),(function(t){return this._element.plot(r.at(t)),r.done()})),this._rememberMorpher("plot",r),this},leading(t){return this._queueNumber("leading",t)},viewbox(t,n,s,i){return this._queueObject("viewbox",new ot(t,n,s,i))},update(t){return"object"!=typeof t?this.update({offset:arguments[0],color:arguments[1],opacity:arguments[2]}):(null!=t.opacity&&this.attr("stop-opacity",t.opacity),null!=t.color&&this.attr("stop-color",t.color),null!=t.offset&&this.attr("offset",t.offset),this)}}),L(Nn,{rx:zt,ry:Ft,from:Xt,to:Ht}),N(Nn,"Runner");class Gn extends St{constructor(t,n=t){super(T("svg",t),n),this.namespace()}defs(){return this.isRoot()?z(this.node.querySelector("defs"))||this.put(new Et):this.root().defs()}isRoot(){return!this.node.parentNode||!(this.node.parentNode instanceof A.window.SVGElement)&&"#document-fragment"!==this.node.parentNode.nodeName}namespace(){return this.isRoot()?this.attr({xmlns:_,version:"1.1"}).attr("xmlns:xlink",k,M):this.root().namespace()}removeNamespace(){return this.attr({xmlns:null,version:null}).attr("xmlns:xlink",null,M).attr("xmlns:svgjs",null,M)}root(){return this.isRoot()?this:super.root()}}a({Container:{nested:$((function(){return this.put(new Gn)}))}}),N(Gn,"Svg",!0);class In extends St{constructor(t,n=t){super(T("symbol",t),n)}}a({Container:{symbol:$((function(){return this.put(new In)}))}}),N(In,"Symbol");var Yn=Object.freeze({__proto__:null,amove:function(t,n){return this.ax(t).ay(n)},ax:function(t){return this.attr("x",t)},ay:function(t){return this.attr("y",t)},build:function(t){return this._build=!!t,this},center:function(t,n,s=this.bbox()){return this.cx(t,s).cy(n,s)},cx:function(t,n=this.bbox()){return null==t?n.cx:this.attr("x",this.attr("x")+t-n.cx)},cy:function(t,n=this.bbox()){return null==t?n.cy:this.attr("y",this.attr("y")+t-n.cy)},length:function(){return this.node.getComputedTextLength()},move:function(t,n,s=this.bbox()){return this.x(t,s).y(n,s)},plain:function(t){return!1===this._build&&this.clear(),this.node.appendChild(A.document.createTextNode(t)),this},x:function(t,n=this.bbox()){return null==t?n.x:this.attr("x",this.attr("x")+t-n.x)},y:function(t,n=this.bbox()){return null==t?n.y:this.attr("y",this.attr("y")+t-n.y)}});class Xn extends Tt{constructor(t,n=t){super(T("text",t),n),this.dom.leading=this.dom.leading??new Mt(1.3),this._rebuild=!0,this._build=!1}leading(t){return null==t?this.dom.leading:(this.dom.leading=new Mt(t),this.rebuild())}rebuild(t){if("boolean"==typeof t&&(this._rebuild=t),this._rebuild){const t=this;let n=0;const s=this.dom.leading;this.each((function(i){if(b(this.node))return;const r=A.window.getComputedStyle(this.node).getPropertyValue("font-size"),e=s*new Mt(r);this.dom.newLined&&(this.attr("x",t.attr("x")),"\n"===this.text()?n+=e:(this.attr("dy",i?e+n:0),n=0))})),this.fire("rebuild")}return this}setData(t){return this.dom=t,this.dom.leading=new Mt(t.leading||1.3),this}writeDataToDom(){return v(this,this.dom,{leading:1.3}),this}text(t){if(void 0===t){const n=this.node.childNodes;let s=0;t="";for(let i=0,r=n.length;i<r;++i)"textPath"===n[i].nodeName||b(n[i])?0===i&&(s=i+1):(i!==s&&3!==n[i].nodeType&&!0===z(n[i]).dom.newLined&&(t+="\n"),t+=n[i].textContent);return t}if(this.clear().build(!0),"function"==typeof t)t.call(this,this);else for(let n=0,s=(t=(t+"").split("\n")).length;n<s;n++)this.newLine(t[n]);return this.build(!1).rebuild()}}L(Xn,Yn),a({Container:{text:$((function(t=""){return this.put(new Xn).text(t)})),plain:$((function(t=""){return this.put(new Xn).plain(t)}))}}),N(Xn,"Text");class Hn extends Tt{constructor(t,n=t){super(T("tspan",t),n),this._build=!1}dx(t){return this.attr("dx",t)}dy(t){return this.attr("dy",t)}newLine(){this.dom.newLined=!0;const t=this.parent();if(!(t instanceof Xn))return this;const n=t.index(this),s=A.window.getComputedStyle(this.node).getPropertyValue("font-size"),i=t.dom.leading*new Mt(s);return this.dy(n?i:0).attr("x",t.x())}text(t){return null==t?this.node.textContent+(this.dom.newLined?"\n":""):("function"==typeof t?(this.clear().build(!0),t.call(this,this),this.build(!1)):this.plain(t),this)}}L(Hn,Yn),a({Tspan:{tspan:$((function(t=""){const n=new Hn;return this._build||this.clear(),this.put(n).text(t)}))},Text:{newLine:function(t=""){return this.tspan(t).newLine()}}}),N(Hn,"Tspan");class Bn extends Tt{constructor(t,n=t){super(T("circle",t),n)}radius(t){return this.attr("r",t)}rx(t){return this.attr("r",t)}ry(t){return this.rx(t)}size(t){return this.radius(new Mt(t).divide(2))}}L(Bn,{x:Nt,y:Dt,cx:Pt,cy:Rt,width:Lt,height:$t}),a({Container:{circle:$((function(t=0){return this.put(new Bn).size(t).move(0,0)}))}}),N(Bn,"Circle");class Vn extends St{constructor(t,n=t){super(T("clipPath",t),n)}remove(){return this.targets().forEach((function(t){t.unclip()})),super.remove()}targets(){return ft("svg [clip-path*="+this.id()+"]")}}a({Container:{clip:$((function(){return this.defs().put(new Vn)}))},Element:{clipper(){return this.reference("clip-path")},clipWith(t){const n=t instanceof Vn?t:this.parent().clip().add(t);return this.attr("clip-path","url(#"+n.id()+")")},unclip(){return this.attr("clip-path",null)}}}),N(Vn,"ClipPath");class Qn extends Ot{constructor(t,n=t){super(T("foreignObject",t),n)}}a({Container:{foreignObject:$((function(t,n){return this.put(new Qn).size(t,n)}))}}),N(Qn,"ForeignObject");var qn=Object.freeze({__proto__:null,dmove:function(t,n){return this.children().forEach((s=>{let i;try{i=s.node instanceof A.window.SVGSVGElement?new ot(s.attr(["x","y","width","height"])):s.bbox()}catch(t){return}const r=new et(s),e=r.translate(t,n).transform(r.inverse()),h=new it(i.x,i.y).transform(e);s.move(h.x,h.y)})),this},dx:function(t){return this.dmove(t,0)},dy:function(t){return this.dmove(0,t)},height:function(t,n=this.bbox()){return null==t?n.height:this.size(n.width,t,n)},move:function(t=0,n=0,s=this.bbox()){return this.dmove(t-s.x,n-s.y)},size:function(t,n,s=this.bbox()){const i=m(this,t,n,s),r=i.width/s.width,e=i.height/s.height;return this.children().forEach((t=>{const n=new it(s).transform(new et(t).inverse());t.scale(r,e,n.x,n.y)})),this},width:function(t,n=this.bbox()){return null==t?n.width:this.size(t,n.height,n)},x:function(t,n=this.bbox()){return null==t?n.x:this.move(t,n.y,n)},y:function(t,n=this.bbox()){return null==t?n.y:this.move(n.x,t,n)}});class Jn extends St{constructor(t,n=t){super(T("g",t),n)}}L(Jn,qn),a({Container:{group:$((function(){return this.put(new Jn)}))}}),N(Jn,"G");class Un extends St{constructor(t,n=t){super(T("a",t),n)}target(t){return this.attr("target",t)}to(t){return this.attr("href",t,k)}}L(Un,qn),a({Container:{link:$((function(t){return this.put(new Un).to(t)}))},Element:{unlink(){const t=this.linker();if(!t)return this;const n=t.parent();if(!n)return this.remove();const s=n.index(t);return n.add(this,s),t.remove(),this},linkTo(t){let n=this.linker();return n||(n=new Un,this.wrap(n)),"function"==typeof t?t.call(n,n):n.to(t),this},linker(){const t=this.parent();return t&&"a"===t.node.nodeName.toLowerCase()?t:null}}}),N(Un,"A");class Zn extends St{constructor(t,n=t){super(T("mask",t),n)}remove(){return this.targets().forEach((function(t){t.unmask()})),super.remove()}targets(){return ft("svg [mask*="+this.id()+"]")}}a({Container:{mask:$((function(){return this.defs().put(new Zn)}))},Element:{masker(){return this.reference("mask")},maskWith(t){const n=t instanceof Zn?t:this.parent().mask().add(t);return this.attr("mask","url(#"+n.id()+")")},unmask(){return this.attr("mask",null)}}}),N(Zn,"Mask");class Wn extends Ot{constructor(t,n=t){super(T("stop",t),n)}update(t){return("number"==typeof t||t instanceof Mt)&&(t={offset:arguments[0],color:arguments[1],opacity:arguments[2]}),null!=t.opacity&&this.attr("stop-opacity",t.opacity),null!=t.color&&this.attr("stop-color",t.color),null!=t.offset&&this.attr("offset",new Mt(t.offset)),this}}a({Gradient:{stop:function(t,n,s){return this.put(new Wn).update(t,n,s)}}}),N(Wn,"Stop");class Kn extends Ot{constructor(t,n=t){super(T("style",t),n)}addText(t=""){return this.node.textContent+=t,this}font(t,n,s={}){return this.rule("@font-face",{fontFamily:t,src:n,...s})}rule(t,n){return this.addText(function(t,n){if(!t)return"";if(!n)return t;let s=t+"{";for(const t in n)s+=t.replace(/([A-Z])/g,(function(t,n){return"-"+n.toLowerCase()}))+":"+n[t]+";";return s+="}",s}(t,n))}}a("Dom",{style(t,n){return this.put(new Kn).rule(t,n)},fontface(t,n,s){return this.put(new Kn).font(t,n,s)}}),N(Kn,"Style");class ts extends Xn{constructor(t,n=t){super(T("textPath",t),n)}array(){const t=this.track();return t?t.array():null}plot(t){const n=this.track();let s=null;return n&&(s=n.plot(t)),null==t?s:this}track(){return this.reference("href")}}a({Container:{textPath:$((function(t,n){return t instanceof Xn||(t=this.text(t)),t.path(n)}))},Text:{path:$((function(t,n=!0){const s=new ts;let i;if(t instanceof kn||(t=this.defs().path(t)),s.attr("href","#"+t,k),n)for(;i=this.node.firstChild;)s.node.appendChild(i);return this.put(s)})),textPath(){return this.findOne("textPath")}},Path:{text:$((function(t){return t instanceof Xn||(t=(new Xn).addTo(this.parent()).text(t)),t.path(this)})),targets(){return ft("svg textPath").filter((t=>(t.attr("href")||"").includes(this.id())))}}}),ts.prototype.MorphArray=yn,N(ts,"TextPath");class ns extends Tt{constructor(t,n=t){super(T("use",t),n)}use(t,n){return this.attr("href",(n||"")+"#"+t,k)}}a({Container:{use:$((function(t,n){return this.put(new ns).use(t,n)}))}}),N(ns,"Use"),L([Gn,In,qt,Qt,Wt],f("viewbox")),L([Zt,On,jn,kn],f("marker")),L(Xn,f("Text")),L(kn,f("Path")),L(Et,f("Defs")),L([Xn,Hn],f("Tspan")),L([Cn,It,Vt,Nn],f("radius")),L(xt,f("EventTarget")),L(jt,f("Dom")),L(Ot,f("Element")),L(Tt,f("Shape")),L([St,Yt],f("Container")),L(Vt,f("Gradient")),L(Nn,f("Runner")),lt.extend([...new Set(l)]),function(t=[]){Mn.push(...[].concat(t))}([Mt,st,ot,et,_t,Jt,yn,it]),L(Mn,{to(t){return(new gn).type(this.constructor).from(this.toArray()).to(t)},fromArray(t){return this.init(t),this},toConsumable(){return this.toArray()},morph(t,n,s,i,r){return this.fromArray(t.map((function(t,e){return i.step(t,n[e],s,r[e],r)})))}});export{s as F,r as P,Gn as S,o as a,h as b}
@@ -0,0 +1 @@
1
+ const e=e=>{if("object"==typeof e&&null!==e){if("function"==typeof Object.getPrototypeOf){const r=Object.getPrototypeOf(e);return r===Object.prototype||null===r}return"[object Object]"===Object.prototype.toString.call(e)}return!1},r=(e,r)=>r,t=(e,r)=>[...new Set([...e,...r])],n=(c,o)=>{const b=(e=>{return{arrayMergeType:"combine",arrayMerge:(n=e?e.arrayMergeType:"combine","overwrite"===n?r:t),...e};var n})(o);return c.reduce(((r,t)=>(Object.keys(t).forEach((c=>{Array.isArray(r[c])&&Array.isArray(t[c])?b&&b.arrayMerge&&(r[c]=b.arrayMerge(r[c],t[c])):r[c]=e(r[c])&&e(t[c])?n([r[c],t[c]],b):t[c]})),r)),{})};export{n as m}