@unchainedshop/admin-ui 5.0.0-alpha.6 → 5.0.0-alpha.8

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 (731) hide show
  1. package/README.md +27 -19
  2. package/dist/chunk-2ARWAOZW.js +17 -0
  3. package/dist/chunk-6UGLNLJG.js +44 -0
  4. package/dist/{chunk-UXG7EYHC.js → chunk-6ZZIMVID.js} +1 -1
  5. package/dist/{chunk-6TXD4TA7.js → chunk-A3WBMBUF.js} +5 -84
  6. package/dist/{chunk-45H2WVIC.js → chunk-COV7BREX.js} +0 -1
  7. package/dist/{chunk-UFYR5WZT.js → chunk-GY2DRQGW.js} +2 -1
  8. package/dist/{chunk-QNLGYFV7.js → chunk-IYKPRAWC.js} +4 -0
  9. package/dist/{chunk-BGCKJQGS.js → chunk-JAVEZY3Q.js} +22 -15
  10. package/dist/{chunk-RHUFQVKL.js → chunk-QVKXUZEC.js} +1 -1
  11. package/dist/chunk-RORNAN2J.js +12 -0
  12. package/dist/{chunk-YSKZE2KN.js → chunk-SDA2A6TP.js} +37 -24
  13. package/dist/{chunk-4VNS5WPM.js → chunk-WPLOTFGW.js} +7 -8
  14. package/dist/components/ui/Tag/TagInput.d.ts +10 -5
  15. package/dist/components/ui/Tag/TagInput.d.ts.map +1 -1
  16. package/dist/components/ui/form/ChoicesField.d.ts.map +1 -1
  17. package/dist/components/ui/form/TagInputField.d.ts +2 -1
  18. package/dist/components/ui/form/TagInputField.d.ts.map +1 -1
  19. package/dist/components/ui/index.d.ts +2 -0
  20. package/dist/components/ui/index.d.ts.map +1 -1
  21. package/dist/form.js +1071 -2806
  22. package/dist/gql/operation-types.d.ts +13063 -0
  23. package/dist/gql/operation-types.d.ts.map +1 -0
  24. package/dist/gql/schema-types.d.ts +3821 -0
  25. package/dist/gql/schema-types.d.ts.map +1 -0
  26. package/dist/gql/types.d.ts +2 -17208
  27. package/dist/gql/types.d.ts.map +1 -1
  28. package/dist/hooks.js +3 -3
  29. package/dist/modal.js +11 -6
  30. package/dist/modules/accounts/fragment/UserFragment.d.ts.map +1 -1
  31. package/dist/modules/accounts/hooks/useCurrentUser.d.ts.map +1 -1
  32. package/dist/modules/accounts.js +220 -64
  33. package/dist/modules/assortment.js +10 -5
  34. package/dist/modules/common/components/MediaAvatar.d.ts +6 -0
  35. package/dist/modules/common/components/MediaAvatar.d.ts.map +1 -0
  36. package/dist/modules/common/components/Table.d.ts +25 -0
  37. package/dist/modules/common/components/Table.d.ts.map +1 -0
  38. package/dist/modules/common/components/TableCell.d.ts +12 -0
  39. package/dist/modules/common/components/TableCell.d.ts.map +1 -0
  40. package/dist/modules/common/components/TableRow.d.ts +10 -0
  41. package/dist/modules/common/components/TableRow.d.ts.map +1 -0
  42. package/dist/modules/common/hooks/useApp.d.ts +1 -1
  43. package/dist/modules/common/hooks/useBulkResultHandler.d.ts +8 -0
  44. package/dist/modules/common/hooks/useBulkResultHandler.d.ts.map +1 -0
  45. package/dist/modules/common/hooks/useBulkSelection.d.ts +12 -0
  46. package/dist/modules/common/hooks/useBulkSelection.d.ts.map +1 -0
  47. package/dist/modules/common/hooks/useScrollRestoration.d.ts +8 -0
  48. package/dist/modules/common/hooks/useScrollRestoration.d.ts.map +1 -0
  49. package/dist/modules/common/hooks/useShopInfo.d.ts +13 -13
  50. package/dist/modules/common/hooks/useShopInfo.d.ts.map +1 -1
  51. package/dist/modules/common/utils/useFormatDateTime.d.ts +10 -1
  52. package/dist/modules/common/utils/useFormatDateTime.d.ts.map +1 -1
  53. package/dist/modules/country/hooks/useCountries.d.ts +4 -4
  54. package/dist/modules/country.js +1 -1
  55. package/dist/modules/currency.js +1 -1
  56. package/dist/modules/delivery-provider.js +1 -1
  57. package/dist/modules/enrollment.js +24 -3
  58. package/dist/modules/event.js +2 -2
  59. package/dist/modules/filter.js +2 -2
  60. package/dist/modules/language/hooks/useLanguages.d.ts +4 -4
  61. package/dist/modules/language.js +1 -1
  62. package/dist/modules/modal/components/DangerMessage.d.ts +2 -1
  63. package/dist/modules/modal/components/DangerMessage.d.ts.map +1 -1
  64. package/dist/modules/order/hooks/useOrders.d.ts +20 -20
  65. package/dist/modules/order/hooks/useOrders.d.ts.map +1 -1
  66. package/dist/modules/order.js +10 -4
  67. package/dist/modules/payment-providers.js +1 -1
  68. package/dist/modules/product-review.js +25 -6
  69. package/dist/modules/product.js +14 -18
  70. package/dist/modules/quotation.js +23 -3
  71. package/dist/modules/token.js +3 -3
  72. package/dist/modules/warehousing-providers.js +1 -1
  73. package/dist/modules/work/hooks/useWork.d.ts +14 -14
  74. package/dist/modules/work.js +15 -7
  75. package/dist/plugins.js +7 -2
  76. package/dist/providers.js +5 -4
  77. package/dist/sdk/plugins.d.ts +11 -0
  78. package/dist/sdk/plugins.d.ts.map +1 -1
  79. package/dist/sdk/shims/admin-ui-plugins.d.ts +3 -0
  80. package/dist/sdk/shims/admin-ui-plugins.d.ts.map +1 -0
  81. package/dist/sdk/shims/apollo-client-react.d.ts +3 -0
  82. package/dist/sdk/shims/apollo-client-react.d.ts.map +1 -0
  83. package/dist/sdk/shims/apollo-client.d.ts +3 -0
  84. package/dist/sdk/shims/apollo-client.d.ts.map +1 -0
  85. package/dist/sdk/shims/host.d.ts +17 -0
  86. package/dist/sdk/shims/host.d.ts.map +1 -0
  87. package/dist/sdk/shims/next-head.d.ts +3 -0
  88. package/dist/sdk/shims/next-head.d.ts.map +1 -0
  89. package/dist/sdk/shims/next-image.d.ts +3 -0
  90. package/dist/sdk/shims/next-image.d.ts.map +1 -0
  91. package/dist/sdk/shims/next-link.d.ts +3 -0
  92. package/dist/sdk/shims/next-link.d.ts.map +1 -0
  93. package/dist/sdk/shims/next-router.d.ts +3 -0
  94. package/dist/sdk/shims/next-router.d.ts.map +1 -0
  95. package/dist/sdk/shims/react-dom-client.d.ts +3 -0
  96. package/dist/sdk/shims/react-dom-client.d.ts.map +1 -0
  97. package/dist/sdk/shims/react-dom.d.ts +3 -0
  98. package/dist/sdk/shims/react-dom.d.ts.map +1 -0
  99. package/dist/sdk/shims/react-hook-form.d.ts +3 -0
  100. package/dist/sdk/shims/react-hook-form.d.ts.map +1 -0
  101. package/dist/sdk/shims/react-intl.d.ts +3 -0
  102. package/dist/sdk/shims/react-intl.d.ts.map +1 -0
  103. package/dist/sdk/shims/react-jsx-runtime.d.ts +3 -0
  104. package/dist/sdk/shims/react-jsx-runtime.d.ts.map +1 -0
  105. package/dist/sdk/shims/react-toastify.d.ts +3 -0
  106. package/dist/sdk/shims/react-toastify.d.ts.map +1 -0
  107. package/dist/sdk/shims/react.d.ts +3 -0
  108. package/dist/sdk/shims/react.d.ts.map +1 -0
  109. package/dist/shims/admin-ui-plugins.js +9 -0
  110. package/dist/shims/apollo-client-react.js +25 -0
  111. package/dist/shims/apollo-client.js +55 -0
  112. package/dist/shims/next-head.js +9 -0
  113. package/dist/shims/next-image.js +9 -0
  114. package/dist/shims/next-link.js +9 -0
  115. package/dist/shims/next-router.js +13 -0
  116. package/dist/shims/react-dom-client.js +11 -0
  117. package/dist/shims/react-dom.js +22 -0
  118. package/dist/shims/react-hook-form.js +25 -0
  119. package/dist/shims/react-intl.js +37 -0
  120. package/dist/shims/react-jsx-runtime.js +11 -0
  121. package/dist/shims/react-toastify.js +16 -0
  122. package/dist/shims/react.js +52 -0
  123. package/dist/theme.js +1 -1
  124. package/dist/ui.js +1438 -1465
  125. package/out/403/index.html +2 -2
  126. package/out/404/index.html +2 -2
  127. package/out/404.html +2 -2
  128. package/out/423/index.html +2 -2
  129. package/out/500/index.html +2 -2
  130. package/out/_next/static/{VYWUvBJY94uiS3jm4HOFN → 9EKCOng_3jDFmFdZSuNp0}/_buildManifest.js +63 -63
  131. package/out/_next/static/chunks/0-2b37ubdpy0o.js +7 -0
  132. package/out/_next/static/chunks/015ge5k3o3f-r.js +226 -0
  133. package/out/_next/static/chunks/05-ui58k9illr.js +234 -0
  134. package/out/_next/static/chunks/05au-xyt__0f2.js +3 -0
  135. package/out/_next/static/chunks/{087a2d-0e1pvn.js → 05nn5xr3ufcsh.js} +1 -1
  136. package/out/_next/static/chunks/{1m5m15javwn8p.js → 05o_q7jg8wucs.js} +1 -1
  137. package/out/_next/static/chunks/065x9wl2mga3m.js +11 -0
  138. package/out/_next/static/chunks/0752goe9_9g2s.js +110 -0
  139. package/out/_next/static/chunks/07evy5u8ldd1y.js +50 -0
  140. package/out/_next/static/chunks/07o7bmqljy89r.js +1 -0
  141. package/out/_next/static/chunks/083ylavob4a8d.js +3 -0
  142. package/out/_next/static/chunks/09qx8ltnvw8f2.js +12 -0
  143. package/out/_next/static/chunks/0_o5motvr7gdv.js +21 -0
  144. package/out/_next/static/chunks/0_puys1lwhv9m.js +16 -0
  145. package/out/_next/static/chunks/0a_bg-ub3r2eo.js +60 -0
  146. package/out/_next/static/chunks/0b28h3157pjxr.js +17 -0
  147. package/out/_next/static/chunks/0bd_--7-52ko6.js +13 -0
  148. package/out/_next/static/chunks/0bg4_y1qh5y5h.js +47 -0
  149. package/out/_next/static/chunks/0ckhtcvz1kyxg.js +1 -0
  150. package/out/_next/static/chunks/{19y4w6_d_qiou.js → 0dnh0kr83_tj0.js} +1 -1
  151. package/out/_next/static/chunks/0dxu94yin5gdn.js +35 -0
  152. package/out/_next/static/chunks/0e2c-jlh2q_eq.js +74 -0
  153. package/out/_next/static/chunks/0e7hhok2eawc3.js +9 -0
  154. package/out/_next/static/chunks/0el-98_f_r8ex.js +27 -0
  155. package/out/_next/static/chunks/0g2igd8sj5-gg.js +16 -0
  156. package/out/_next/static/chunks/0gx9t6j5kx_ho.js +9 -0
  157. package/out/_next/static/chunks/0i9ymn9xxs0nx.js +18 -0
  158. package/out/_next/static/chunks/0iebz0rtddbw8.js +15 -0
  159. package/out/_next/static/chunks/0iqjlf_9c6eo_.js +59 -0
  160. package/out/_next/static/chunks/0iy11ws57hzzr.js +99 -0
  161. package/out/_next/static/chunks/0j838r-8ied1f.js +1 -0
  162. package/out/_next/static/chunks/0jeddko6bac8h.js +1 -0
  163. package/out/_next/static/chunks/0l4eldqr95f75.js +16 -0
  164. package/out/_next/static/chunks/0ld6wd2it3xix.js +18 -0
  165. package/out/_next/static/chunks/0lzvfs3koqtzr.js +15 -0
  166. package/out/_next/static/chunks/0m6jydfuy_4o3.js +1 -0
  167. package/out/_next/static/chunks/0mez27zlo26ni.js +103 -0
  168. package/out/_next/static/chunks/0n9to89fz811b.js +3 -0
  169. package/out/_next/static/chunks/0nkkcq0-s-9fo.js +1 -0
  170. package/out/_next/static/chunks/0o7k5vanq57ch.js +807 -0
  171. package/out/_next/static/chunks/0ou6gsnpn0wml.js +1 -0
  172. package/out/_next/static/chunks/0pgpevl26rrte.js +13 -0
  173. package/out/_next/static/chunks/0pji5t2zheb2j.js +234 -0
  174. package/out/_next/static/chunks/0r5wwinf72z4g.js +1 -0
  175. package/out/_next/static/chunks/0rgdxqr_0y-g-.js +136 -0
  176. package/out/_next/static/chunks/0rqjr_lmrk4pz.js +5 -0
  177. package/out/_next/static/chunks/0s165pqd53i2e.js +13 -0
  178. package/out/_next/static/chunks/0tej_--_qru5h.js +126 -0
  179. package/out/_next/static/chunks/0tnyefaaxof6-.js +247 -0
  180. package/out/_next/static/chunks/{1dsjo02ozub3p.js → 0ubzi2s1spm4e.js} +4 -4
  181. package/out/_next/static/chunks/0uecw_5mn0zvr.js +110 -0
  182. package/out/_next/static/chunks/0v0928tdjepyk.js +16 -0
  183. package/out/_next/static/chunks/0vbqa5pd_ajm5.js +1 -0
  184. package/out/_next/static/chunks/0w7ic_22nz92w.js +58 -0
  185. package/out/_next/static/chunks/0x97pf4va0tdj.js +17 -0
  186. package/out/_next/static/chunks/0y4eg57kgif01.js +1 -0
  187. package/out/_next/static/chunks/0ywlba3uh1t0x.js +16 -0
  188. package/out/_next/static/chunks/0zoum0jzrtu0s.js +145 -0
  189. package/out/_next/static/chunks/10u71-qve349q.js +14 -0
  190. package/out/_next/static/chunks/10vpdjjvq7u53.js +15 -0
  191. package/out/_next/static/chunks/13pcz259h-_kj.js +17 -0
  192. package/out/_next/static/chunks/13u_a5l2xngm4.js +1 -0
  193. package/out/_next/static/chunks/13wfvr2b0-qlj.js +30 -0
  194. package/out/_next/static/chunks/151puw-sc__by.js +103 -0
  195. package/out/_next/static/chunks/15vz50rks0o2-.js +238 -0
  196. package/out/_next/static/chunks/17b4rvj5k8ye2.js +807 -0
  197. package/out/_next/static/chunks/188l-km9dyejj.js +34 -0
  198. package/out/_next/static/chunks/{252n_i72ate30.js → 18juy_eauk94g.js} +2 -2
  199. package/out/_next/static/chunks/{0k-vf2ns330qm.js → 19eflki8bmivb.js} +1 -1
  200. package/out/_next/static/chunks/19eu5d-wm2hfr.js +23 -0
  201. package/out/_next/static/chunks/1_5ba1obzc231.js +1 -0
  202. package/out/_next/static/chunks/1_lrjs51fhhko.js +807 -0
  203. package/out/_next/static/chunks/1a5z9hqww-usq.js +20 -0
  204. package/out/_next/static/chunks/1am9n6exll687.js +807 -0
  205. package/out/_next/static/chunks/1cqhbfj3zp710.js +1 -0
  206. package/out/_next/static/chunks/1cy-2yb5j5_9b.js +157 -0
  207. package/out/_next/static/chunks/{1ji44prsmhq_a.js → 1dt9_bzfioi8a.js} +3 -3
  208. package/out/_next/static/chunks/1feyuu-4twwai.js +15 -0
  209. package/out/_next/static/chunks/1i8wb5lh3jac1.js +13 -0
  210. package/out/_next/static/chunks/1k4ep4igedo8p.js +1 -0
  211. package/out/_next/static/chunks/1kn74nabrpy14.js +3 -0
  212. package/out/_next/static/chunks/{34sm1u3s14z4b.js → 1ndk3s-aeqfej.js} +1 -1
  213. package/out/_next/static/chunks/1ngpcnj86ohnv.js +14 -0
  214. package/out/_next/static/chunks/1ocvneidf1syf.js +25 -0
  215. package/out/_next/static/chunks/1og09fg689_nc.js +180 -0
  216. package/out/_next/static/chunks/1p639idox1vll.js +16 -0
  217. package/out/_next/static/chunks/1q5b4oexneef5.js +17 -0
  218. package/out/_next/static/chunks/1q_sewe1wbxsk.js +54 -0
  219. package/out/_next/static/chunks/1r_e-dk-1oicl.js +2 -0
  220. package/out/_next/static/chunks/1rkg8vhvo8vgz.js +83 -0
  221. package/out/_next/static/chunks/1rtv3c_klo0jk.js +1 -0
  222. package/out/_next/static/chunks/1s8vxngh_0xfn.js +13 -0
  223. package/out/_next/static/chunks/1srfjl1rurrm9.js +3 -0
  224. package/out/_next/static/chunks/1t8mb2td_pm1h.js +43 -0
  225. package/out/_next/static/chunks/1tkaly-z0eb-q.js +14 -0
  226. package/out/_next/static/chunks/1tvr-10z5x0by.js +104 -0
  227. package/out/_next/static/chunks/1v-2aqdslc2g1.js +1 -0
  228. package/out/_next/static/chunks/1w5uao_cylgd1.js +234 -0
  229. package/out/_next/static/chunks/1x-t9f0f5vr10.js +329 -0
  230. package/out/_next/static/chunks/1ylgjha1c0ua_.js +124 -0
  231. package/out/_next/static/chunks/1yp98n-n4gxwy.js +15 -0
  232. package/out/_next/static/chunks/1yy_-xc9xthfo.js +3 -0
  233. package/out/_next/static/chunks/1z1esw-t8kopy.js +1 -0
  234. package/out/_next/static/chunks/1z1jxtjhg_5v6.js +11 -0
  235. package/out/_next/static/chunks/1zgah7t55d46v.js +19 -0
  236. package/out/_next/static/chunks/200_u2ywg-be1.js +43 -0
  237. package/out/_next/static/chunks/205q4wv45jomk.js +13 -0
  238. package/out/_next/static/chunks/20usp87kxiivk.js +14 -0
  239. package/out/_next/static/chunks/224p31baeu3c3.js +15 -0
  240. package/out/_next/static/chunks/22mj125470p07.js +15 -0
  241. package/out/_next/static/chunks/22ud9v8dzixqk.js +15 -0
  242. package/out/_next/static/chunks/24-pobk4qjjvp.js +3 -0
  243. package/out/_next/static/chunks/24mbze45k4evy.js +22 -0
  244. package/out/_next/static/chunks/26mue2l4069m0.js +22 -0
  245. package/out/_next/static/chunks/26yksvb45bfug.js +13 -0
  246. package/out/_next/static/chunks/{1rgwj4dr0k4_b.js → 270ua9t85a7ev.js} +1 -1
  247. package/out/_next/static/chunks/27jaailh2k450.js +879 -0
  248. package/out/_next/static/chunks/29m1e34-eyni_.js +9 -0
  249. package/out/_next/static/chunks/2__i5ksblcvil.js +16 -0
  250. package/out/_next/static/chunks/2d_tll2e3tyei.js +9 -0
  251. package/out/_next/static/chunks/2dnjzvnx4dg-n.js +22 -0
  252. package/out/_next/static/chunks/{34dhtdp_8idgm.js → 2dyj8q92_k5el.js} +112 -62
  253. package/out/_next/static/chunks/2e47h0g7w7si3.js +7 -0
  254. package/out/_next/static/chunks/2f16josk9b_cl.js +8 -0
  255. package/out/_next/static/chunks/2fjmw94mat8m0.js +807 -0
  256. package/out/_next/static/chunks/{0f7z8oojvqahv.js → 2fo2ki1egxbah.js} +1 -1
  257. package/out/_next/static/chunks/2g7t-73faoik2.js +15 -0
  258. package/out/_next/static/chunks/2hg887w-4-saz.js +11 -0
  259. package/out/_next/static/chunks/2httcwd92at4i.js +9 -0
  260. package/out/_next/static/chunks/2ib6fee-nqe-z.js +23 -0
  261. package/out/_next/static/chunks/2j3p_ne416507.js +16 -0
  262. package/out/_next/static/chunks/2k5rg3rwz2qz1.js +15 -0
  263. package/out/_next/static/chunks/2kjux30i3gg-c.js +5 -0
  264. package/out/_next/static/chunks/2l629mu99aqil.js +9 -0
  265. package/out/_next/static/chunks/2lal4ruoql8-s.js +16 -0
  266. package/out/_next/static/chunks/2lx_iig9xewfj.js +52 -0
  267. package/out/_next/static/chunks/2m4su5mqey5cb.js +14 -0
  268. package/out/_next/static/chunks/2o9hdz0gk1-s7.js +165 -0
  269. package/out/_next/static/chunks/2on7of8c32boh.js +15 -0
  270. package/out/_next/static/chunks/2q-mpau-4gsvd.js +1 -0
  271. package/out/_next/static/chunks/2qzxq2qs80c_8.js +11 -0
  272. package/out/_next/static/chunks/2rddaar-ns45d.js +116 -0
  273. package/out/_next/static/chunks/2rywg4dn0aeez.js +1 -0
  274. package/out/_next/static/chunks/2s6u8274_jzk2.js +105 -0
  275. package/out/_next/static/chunks/{0qjv_q4seojfh.js → 2skfzjx2g9hkk.js} +7 -3
  276. package/out/_next/static/chunks/2sw8wfufjrcpb.js +14 -0
  277. package/out/_next/static/chunks/2szj6o9fr-rib.js +15 -0
  278. package/out/_next/static/chunks/{1cgliwmj52a0t.js → 2u6jwsqz0uhes.js} +3 -3
  279. package/out/_next/static/chunks/{08o69avnk4qvk.js → 2v4k4vpb2id7m.js} +1 -1
  280. package/out/_next/static/chunks/2vkqez8xx-yp9.js +807 -0
  281. package/out/_next/static/chunks/2ztcyhxd9w5_m.js +1 -0
  282. package/out/_next/static/chunks/2zynam_mr2g6y.js +21 -0
  283. package/out/_next/static/chunks/3-xi25w8-k-02.js +15 -0
  284. package/out/_next/static/chunks/304cl99rh8rs_.js +2 -0
  285. package/out/_next/static/chunks/30_ns6urg1dkn.js +41 -0
  286. package/out/_next/static/chunks/{0gurfn3nhm859.js → 313i1x81q2xj1.js} +1 -1
  287. package/out/_next/static/chunks/325a7n__tfxy_.js +61 -0
  288. package/out/_next/static/chunks/32gi2dpw3twz7.js +17 -0
  289. package/out/_next/static/chunks/33emlry70k-lv.js +2 -0
  290. package/out/_next/static/chunks/{202a3z9hys0o7.js → 346itdsbw-5tn.js} +2 -2
  291. package/out/_next/static/chunks/348d_4lpnrkzq.js +100 -0
  292. package/out/_next/static/chunks/351jscvbk_wb9.js +13 -0
  293. package/out/_next/static/chunks/357odtev0t245.js +59 -0
  294. package/out/_next/static/chunks/{2oz58zpay0wub.js → 35fjd9uhctw7y.js} +1 -1
  295. package/out/_next/static/chunks/35mb--fw85e9-.js +20 -0
  296. package/out/_next/static/chunks/360g4b1clnt45.js +142 -0
  297. package/out/_next/static/chunks/36aqs7u7s-lb1.js +119 -0
  298. package/out/_next/static/chunks/36zrtyhmqlx_n.js +807 -0
  299. package/out/_next/static/chunks/{18yg2pj3hb_in.js → 37uz0njkj43tz.js} +1 -1
  300. package/out/_next/static/chunks/38ffn8gazqz8_.js +3 -0
  301. package/out/_next/static/chunks/38kjuo_3xeof3.js +14 -0
  302. package/out/_next/static/chunks/39-19ao-xkexy.js +2 -0
  303. package/out/_next/static/chunks/39m5tbxzzsmn4.js +807 -0
  304. package/out/_next/static/chunks/3bgtu00fe99yc.js +1 -0
  305. package/out/_next/static/chunks/3c1rc1w-xe4u7.js +39 -0
  306. package/out/_next/static/chunks/3cdfuacs4_0d-.js +1 -0
  307. package/out/_next/static/chunks/3d1ofcqmlbg-5.js +52 -0
  308. package/out/_next/static/chunks/3dopaxkoi5px6.js +1 -0
  309. package/out/_next/static/chunks/3ic_dagw-uvrx.js +234 -0
  310. package/out/_next/static/chunks/3jtzvr48aaoo0.js +13 -0
  311. package/out/_next/static/chunks/3k5lt5_-g36w9.js +9 -0
  312. package/out/_next/static/chunks/3krpx72smyufn.js +15 -0
  313. package/out/_next/static/chunks/3l-9xxd1i1sya.js +1 -0
  314. package/out/_next/static/chunks/3m2hre_c-kclo.js +25 -0
  315. package/out/_next/static/chunks/3mancxzz8c7hl.js +51 -0
  316. package/out/_next/static/chunks/3nkse7h0-kbyx.js +126 -0
  317. package/out/_next/static/chunks/3om1fkw-lrmng.js +1 -0
  318. package/out/_next/static/chunks/{3m7-q-ztmzcf5.js → 3oynij37wfjb2.js} +2 -2
  319. package/out/_next/static/chunks/3oz5p4rrvnew1.js +807 -0
  320. package/out/_next/static/chunks/3p0ir-pqcslbi.js +175 -0
  321. package/out/_next/static/chunks/{434iz38padke2.js → 3pbyo5kkko3wh.js} +1 -1
  322. package/out/_next/static/chunks/3pr477_ci25mm.js +22 -0
  323. package/out/_next/static/chunks/3qjgt-x153i6u.js +234 -0
  324. package/out/_next/static/chunks/3r54d1b_uyq95.js +13 -0
  325. package/out/_next/static/chunks/3rh3nigvg06yu.js +337 -0
  326. package/out/_next/static/chunks/3s-n0xc-vi0ww.js +31 -0
  327. package/out/_next/static/chunks/3sc7jsyx25g08.js +16 -0
  328. package/out/_next/static/chunks/3t_3vlnk1ntkb.js +95 -0
  329. package/out/_next/static/chunks/3ti7tims6gz1j.js +234 -0
  330. package/out/_next/static/chunks/3tzaludii6vtu.js +54 -0
  331. package/out/_next/static/chunks/{01q9gliprwq-_.js → 3u504487p_y7e.js} +2 -2
  332. package/out/_next/static/chunks/3ufg-in2riva7.js +1 -0
  333. package/out/_next/static/chunks/3ugwv1vrnbivg.js +1 -0
  334. package/out/_next/static/chunks/3vet2a9q9rf2c.js +61 -0
  335. package/out/_next/static/chunks/3vjgbl76cgrmt.js +1 -0
  336. package/out/_next/static/chunks/3vz3gqmojh7sx.js +4 -0
  337. package/out/_next/static/chunks/3w9xrlkiztuwi.js +23 -0
  338. package/out/_next/static/chunks/3xmtbqm0gddn8.js +3 -0
  339. package/out/_next/static/chunks/3yqmjvx7t3t0_.js +1 -0
  340. package/out/_next/static/chunks/3z3k6qx61arup.js +27 -0
  341. package/out/_next/static/chunks/401o5bfi_90qs.js +141 -0
  342. package/out/_next/static/chunks/40xhwnc_48o73.js +297 -0
  343. package/out/_next/static/chunks/41e2wlkp9_pvk.js +28 -0
  344. package/out/_next/static/chunks/41g7mv3yuhz6k.js +68 -0
  345. package/out/_next/static/chunks/429ihwc6co7u7.js +32 -0
  346. package/out/_next/static/chunks/42x9tn0uff92o.js +15 -0
  347. package/out/_next/static/chunks/43jyzccx6x0lw.js +1 -0
  348. package/out/_next/static/chunks/44daaafswok67.css +1 -0
  349. package/out/_next/static/chunks/turbopack-02-k6w2e9_3af.js +1 -0
  350. package/out/_next/static/chunks/{turbopack-04ukk4jyuwwfc.js → turbopack-03fj2scz_09ul.js} +1 -1
  351. package/out/_next/static/chunks/{turbopack-40xcd2mr6qovi.js → turbopack-0_42u9tky4zng.js} +1 -1
  352. package/out/_next/static/chunks/turbopack-0gnmdx6ye6n_e.js +1 -0
  353. package/out/_next/static/chunks/turbopack-0iozo8xy34oiw.js +1 -0
  354. package/out/_next/static/chunks/turbopack-0rb_mm-wnau-3.js +1 -0
  355. package/out/_next/static/chunks/{turbopack-29n-soxzu37jf.js → turbopack-0v5-op7r79bhf.js} +1 -1
  356. package/out/_next/static/chunks/{turbopack-34749rlp0_n5c.js → turbopack-0zf_85we0x_rs.js} +1 -1
  357. package/out/_next/static/chunks/turbopack-1-ukcimwb2wq1.js +1 -0
  358. package/out/_next/static/chunks/turbopack-10anz7o9kcb98.js +1 -0
  359. package/out/_next/static/chunks/{turbopack-0w2ztfttfubzl.js → turbopack-12-4lgc8wbnmx.js} +1 -1
  360. package/out/_next/static/chunks/turbopack-14bpgd3qmna2b.js +1 -0
  361. package/out/_next/static/chunks/{turbopack-04s7-zvvb1coi.js → turbopack-16ecm5pf7vta6.js} +1 -1
  362. package/out/_next/static/chunks/{turbopack-298r66lt68r_n.js → turbopack-16gej7p33tsw5.js} +1 -1
  363. package/out/_next/static/chunks/{turbopack-41cj0-dssfw9l.js → turbopack-1iglf5syrme2d.js} +1 -1
  364. package/out/_next/static/chunks/turbopack-1l2mxrtt6fj2q.js +1 -0
  365. package/out/_next/static/chunks/turbopack-1nwkuzx-97xdl.js +1 -0
  366. package/out/_next/static/chunks/{turbopack-1h9u07n6a83dl.js → turbopack-1od40dnbx8fg3.js} +1 -1
  367. package/out/_next/static/chunks/turbopack-1qg_72lzl6ek8.js +1 -0
  368. package/out/_next/static/chunks/turbopack-1rmjnbaunrx2u.js +1 -0
  369. package/out/_next/static/chunks/{turbopack-3b2k0p0g1mako.js → turbopack-1wpa09idv1cyh.js} +1 -1
  370. package/out/_next/static/chunks/turbopack-1ykuk8u3enawr.js +1 -0
  371. package/out/_next/static/chunks/{turbopack-0cwxwz82vstff.js → turbopack-21_p8k9zs76-x.js} +1 -1
  372. package/out/_next/static/chunks/{turbopack-13v4uorj3l10n.js → turbopack-220rj632xmu2e.js} +1 -1
  373. package/out/_next/static/chunks/turbopack-22p012gdqk61c.js +1 -0
  374. package/out/_next/static/chunks/turbopack-25j7jj4dskbwu.js +1 -0
  375. package/out/_next/static/chunks/turbopack-27pc-r2lunwha.js +1 -0
  376. package/out/_next/static/chunks/{turbopack-3p-k1txa6-4ik.js → turbopack-2bb143jjb45b6.js} +1 -1
  377. package/out/_next/static/chunks/turbopack-2esinq43hb-vc.js +1 -0
  378. package/out/_next/static/chunks/{turbopack-32kxihayw_v97.js → turbopack-2g3vf-v8r3qd2.js} +1 -1
  379. package/out/_next/static/chunks/{turbopack-1noe2ur-_o71n.js → turbopack-2gxln6h99_6pp.js} +1 -1
  380. package/out/_next/static/chunks/{turbopack-3j07f1odh4keh.js → turbopack-2j5sxbr_zaxjf.js} +1 -1
  381. package/out/_next/static/chunks/turbopack-2j61phdts4xpn.js +1 -0
  382. package/out/_next/static/chunks/{turbopack-2k2d3c2qq-0z0.js → turbopack-2nd6qjscj3z2p.js} +1 -1
  383. package/out/_next/static/chunks/turbopack-2o76al0gsswxo.js +1 -0
  384. package/out/_next/static/chunks/turbopack-2pe-c3nyyswmm.js +1 -0
  385. package/out/_next/static/chunks/{turbopack-0sv7lr_kx3kdq.js → turbopack-2tz1t67cqt8ex.js} +1 -1
  386. package/out/_next/static/chunks/turbopack-2u-4w10t8mu6i.js +1 -0
  387. package/out/_next/static/chunks/turbopack-2u879ap4um9kt.js +1 -0
  388. package/out/_next/static/chunks/turbopack-2ubl1vyufevbf.js +1 -0
  389. package/out/_next/static/chunks/{turbopack-1wqjl3y4c1ij-.js → turbopack-2x85w-5txf7i5.js} +1 -1
  390. package/out/_next/static/chunks/turbopack-32oolm1x2hqm8.js +1 -0
  391. package/out/_next/static/chunks/turbopack-32unbrrzdhim9.js +1 -0
  392. package/out/_next/static/chunks/{turbopack-3jw01psrsjqdi.js → turbopack-37e-e484qmc03.js} +1 -1
  393. package/out/_next/static/chunks/turbopack-3aa45-9tjh99k.js +1 -0
  394. package/out/_next/static/chunks/{turbopack-1-ceqxb_000x-.js → turbopack-3d9zuhypuljic.js} +1 -1
  395. package/out/_next/static/chunks/turbopack-3dl00zga30bss.js +1 -0
  396. package/out/_next/static/chunks/turbopack-3f06s1e12y6j9.js +1 -0
  397. package/out/_next/static/chunks/{turbopack-0qa163y1bx_g6.js → turbopack-3g98_iakkqypg.js} +1 -1
  398. package/out/_next/static/chunks/turbopack-3j4bdo8-ldea5.js +1 -0
  399. package/out/_next/static/chunks/{turbopack-1au-y5u3wzv22.js → turbopack-3l3o1x7j1z_63.js} +1 -1
  400. package/out/_next/static/chunks/{turbopack-1sllc7f9its9a.js → turbopack-3lm631px3s8-4.js} +1 -1
  401. package/out/_next/static/chunks/{turbopack-14kspgbfigjpa.js → turbopack-3mwf6he42ff9n.js} +1 -1
  402. package/out/_next/static/chunks/turbopack-3oih6rrmvb7t3.js +1 -0
  403. package/out/_next/static/chunks/turbopack-3oq88d3632ksa.js +1 -0
  404. package/out/_next/static/chunks/turbopack-3q1s32jzw2pnu.js +1 -0
  405. package/out/_next/static/chunks/turbopack-3snas0eww9sey.js +1 -0
  406. package/out/_next/static/chunks/turbopack-3tg-pp9_bemtn.js +1 -0
  407. package/out/_next/static/chunks/turbopack-3tlngjwse53m1.js +1 -0
  408. package/out/_next/static/chunks/turbopack-3tp3s3o8o9e-_.js +1 -0
  409. package/out/_next/static/chunks/turbopack-3tyhe6yjnx5h6.js +1 -0
  410. package/out/_next/static/chunks/turbopack-3v3wnwaeu0os5.js +1 -0
  411. package/out/_next/static/chunks/turbopack-3xc_rmnnnzfkm.js +1 -0
  412. package/out/_next/static/chunks/turbopack-4592lth1oe0jg.js +1 -0
  413. package/out/_offline/index.html +2 -2
  414. package/out/account/forgot-password/index.html +2 -2
  415. package/out/account/index.html +2 -2
  416. package/out/assortments/AssortmentDetailPage/index.html +2 -2
  417. package/out/assortments/index.html +2 -2
  418. package/out/assortments/new/index.html +2 -2
  419. package/out/copilot/index.html +2 -2
  420. package/out/country/CountryDetailPage/index.html +2 -2
  421. package/out/country/index.html +2 -2
  422. package/out/country/new/index.html +2 -2
  423. package/out/currency/CurrencyDetailPage/index.html +2 -2
  424. package/out/currency/index.html +2 -2
  425. package/out/currency/new/index.html +2 -2
  426. package/out/delivery-provider/DeliveryProviderDetailPage/index.html +2 -2
  427. package/out/delivery-provider/index.html +2 -2
  428. package/out/delivery-provider/new/index.html +2 -2
  429. package/out/enrollments/EnrollmentDetailPage/index.html +2 -2
  430. package/out/enrollments/index.html +2 -2
  431. package/out/events/EventDetailPage/index.html +2 -2
  432. package/out/events/index.html +2 -2
  433. package/out/exports/index.html +2 -2
  434. package/out/ext/[[...slug]]/index.html +2 -2
  435. package/out/external/index.html +2 -2
  436. package/out/filters/FilterDetailPage/index.html +2 -2
  437. package/out/filters/index.html +2 -2
  438. package/out/filters/new/index.html +2 -2
  439. package/out/index.html +2 -2
  440. package/out/install/index.html +2 -2
  441. package/out/language/LanguageDetailPage/index.html +2 -2
  442. package/out/language/index.html +2 -2
  443. package/out/language/new/index.html +2 -2
  444. package/out/log-in/index.html +2 -2
  445. package/out/orders/OrderDetailPage/index.html +2 -2
  446. package/out/orders/index.html +2 -2
  447. package/out/payment-provider/PaymentProviderDetailPage/index.html +2 -2
  448. package/out/payment-provider/index.html +2 -2
  449. package/out/payment-provider/new/index.html +2 -2
  450. package/out/products/ProductDetailPage/index.html +2 -2
  451. package/out/products/index.html +2 -2
  452. package/out/products/new/index.html +2 -2
  453. package/out/quotations/QuotationDetailPage/index.html +2 -2
  454. package/out/quotations/index.html +2 -2
  455. package/out/reset-password/index.html +2 -2
  456. package/out/sign-up/index.html +2 -2
  457. package/out/styleguide/index.html +2 -2
  458. package/out/tokens/TokenDetailPage/index.html +2 -2
  459. package/out/tokens/index.html +2 -2
  460. package/out/users/UserDetailPage/index.html +2 -2
  461. package/out/users/index.html +2 -2
  462. package/out/users/new/index.html +2 -2
  463. package/out/verify-email/index.html +2 -2
  464. package/out/warehousing-provider/WarehousingProviderDetailPage/index.html +2 -2
  465. package/out/warehousing-provider/index.html +2 -2
  466. package/out/warehousing-provider/new/index.html +2 -2
  467. package/out/works/WorkDetailPage/index.html +2 -2
  468. package/out/works/WorkQueueListView/index.html +2 -2
  469. package/out/works/index.html +2 -2
  470. package/out/works/management/index.html +2 -2
  471. package/package.json +18 -13
  472. package/src/sdk/README.md +195 -0
  473. package/src/sdk/plugin-build.mjs +83 -98
  474. package/src/sdk/plugin-build.test.mjs +39 -4
  475. package/src/sdk/plugin-runtime.cjs +66 -0
  476. package/src/sdk/plugin-runtime.d.mts +11 -0
  477. package/src/sdk/plugin-runtime.mjs +27 -0
  478. package/src/sdk/plugin-runtime.test.mjs +32 -0
  479. package/src/sdk/plugins.mjs +17 -0
  480. package/src/sdk/plugins.ts +17 -0
  481. package/src/sdk/shims/admin-ui-plugins.ts +3 -0
  482. package/src/sdk/shims/apollo-client-react.ts +3 -0
  483. package/src/sdk/shims/apollo-client.ts +3 -0
  484. package/src/sdk/shims/host.ts +61 -0
  485. package/src/sdk/shims/next-head.ts +3 -0
  486. package/src/sdk/shims/next-image.ts +3 -0
  487. package/src/sdk/shims/next-link.ts +3 -0
  488. package/src/sdk/shims/next-router.ts +3 -0
  489. package/src/sdk/shims/react-dom-client.ts +3 -0
  490. package/src/sdk/shims/react-dom.ts +3 -0
  491. package/src/sdk/shims/react-hook-form.ts +3 -0
  492. package/src/sdk/shims/react-intl.ts +3 -0
  493. package/src/sdk/shims/react-jsx-runtime.ts +3 -0
  494. package/src/sdk/shims/react-toastify.ts +3 -0
  495. package/src/sdk/shims/react.ts +3 -0
  496. package/out/_next/static/chunks/00zpb_zgq36h-.js +0 -14
  497. package/out/_next/static/chunks/02aa23atze2y4.js +0 -119
  498. package/out/_next/static/chunks/02u93m0n7n-q-.js +0 -12
  499. package/out/_next/static/chunks/03n4up296yhei.js +0 -138
  500. package/out/_next/static/chunks/03zrzz0sb-gy8.js +0 -14
  501. package/out/_next/static/chunks/044dmimivt13x.js +0 -233
  502. package/out/_next/static/chunks/07pwkvl-lm4vp.js +0 -24
  503. package/out/_next/static/chunks/08vf2wf3mxta3.js +0 -13
  504. package/out/_next/static/chunks/094s-grteo6tb.js +0 -31
  505. package/out/_next/static/chunks/0_wt7zjqgpl76.js +0 -807
  506. package/out/_next/static/chunks/0a81cjauoijka.js +0 -1
  507. package/out/_next/static/chunks/0ab_-095b34n5.js +0 -90
  508. package/out/_next/static/chunks/0ac9c5ecooaav.js +0 -234
  509. package/out/_next/static/chunks/0b--0624xswmi.js +0 -16
  510. package/out/_next/static/chunks/0b3hl4d_27v6q.js +0 -173
  511. package/out/_next/static/chunks/0braigkg4hdry.js +0 -39
  512. package/out/_next/static/chunks/0cdcsn87u-tzw.js +0 -1
  513. package/out/_next/static/chunks/0d9cf7svcpjcu.js +0 -1
  514. package/out/_next/static/chunks/0eooy6dat270h.js +0 -226
  515. package/out/_next/static/chunks/0ety-u93s5lsq.js +0 -188
  516. package/out/_next/static/chunks/0fb5j_lva6f8h.js +0 -19
  517. package/out/_next/static/chunks/0hm6-xlqw4vmr.js +0 -1
  518. package/out/_next/static/chunks/0im5k2e2u2uz_.js +0 -8
  519. package/out/_next/static/chunks/0iv288bepx0ug.js +0 -29
  520. package/out/_next/static/chunks/0ld2eenwz_blg.js +0 -52
  521. package/out/_next/static/chunks/0m9y8-nk64c1e.js +0 -12
  522. package/out/_next/static/chunks/0nz8nqr7k7pni.js +0 -61
  523. package/out/_next/static/chunks/0pyfoz6288y0f.js +0 -1
  524. package/out/_next/static/chunks/0qfjbvj6nn9zr.js +0 -18
  525. package/out/_next/static/chunks/0r0l1vs8bls6y.js +0 -1
  526. package/out/_next/static/chunks/0r2v5se5riad_.js +0 -227
  527. package/out/_next/static/chunks/0rdl1jrsef2ew.js +0 -3
  528. package/out/_next/static/chunks/0sutuaadm9sa2.js +0 -11
  529. package/out/_next/static/chunks/0tmo-o_wjgk4-.js +0 -8
  530. package/out/_next/static/chunks/0u-md-qpvyccn.js +0 -149
  531. package/out/_next/static/chunks/0u881hesm8z4s.js +0 -14
  532. package/out/_next/static/chunks/0u_efcr52k9v1.js +0 -15
  533. package/out/_next/static/chunks/0ukobsq85_to1.js +0 -135
  534. package/out/_next/static/chunks/0vxvcl2s96x4f.js +0 -24
  535. package/out/_next/static/chunks/0vyfm3usoot1p.js +0 -60
  536. package/out/_next/static/chunks/0wr0r7tr1jbcz.js +0 -10
  537. package/out/_next/static/chunks/0x_i69reqib8u.js +0 -3
  538. package/out/_next/static/chunks/0xxl7fb2bi8_8.js +0 -82
  539. package/out/_next/static/chunks/0z7jldn83dst6.js +0 -13
  540. package/out/_next/static/chunks/1-4f-vlpf5end.js +0 -43
  541. package/out/_next/static/chunks/1293ysgb8y4y3.js +0 -12
  542. package/out/_next/static/chunks/129pi8m3j6761.js +0 -1
  543. package/out/_next/static/chunks/12lbg_ctrshrg.js +0 -1
  544. package/out/_next/static/chunks/13f9ypdy9t6l8.js +0 -15
  545. package/out/_next/static/chunks/13g90lbjehcp1.js +0 -12
  546. package/out/_next/static/chunks/1413uu5ol2rfr.js +0 -166
  547. package/out/_next/static/chunks/15-duc2e3btcy.js +0 -1
  548. package/out/_next/static/chunks/155jjdhtr4dhn.js +0 -30
  549. package/out/_next/static/chunks/1679i7xv8jnle.js +0 -117
  550. package/out/_next/static/chunks/16a-8jlyrl0m8.js +0 -12
  551. package/out/_next/static/chunks/16bdu48a5vry_.js +0 -13
  552. package/out/_next/static/chunks/16r_t7quts1w0.js +0 -289
  553. package/out/_next/static/chunks/189epg0ebf7bc.js +0 -13
  554. package/out/_next/static/chunks/18ujb5-7bg1p4.js +0 -1
  555. package/out/_next/static/chunks/19fzi9f2kw8zv.js +0 -233
  556. package/out/_next/static/chunks/1_ov-8bomgh6c.js +0 -54
  557. package/out/_next/static/chunks/1axp79-x4n7i4.js +0 -242
  558. package/out/_next/static/chunks/1bga5_ny7avyr.js +0 -23
  559. package/out/_next/static/chunks/1bgsls3okrjue.js +0 -1
  560. package/out/_next/static/chunks/1cliieayy_gw1.js +0 -13
  561. package/out/_next/static/chunks/1cvyi5qu_s_d7.js +0 -10
  562. package/out/_next/static/chunks/1dcw-b0uqh6b0.js +0 -1
  563. package/out/_next/static/chunks/1drrou5kp4qdz.js +0 -1
  564. package/out/_next/static/chunks/1e4ue1_7qn6kz.js +0 -14
  565. package/out/_next/static/chunks/1emope9zm_-ch.js +0 -14
  566. package/out/_next/static/chunks/1f7ar56dj5j8s.js +0 -21
  567. package/out/_next/static/chunks/1fk9whsy-495f.js +0 -1
  568. package/out/_next/static/chunks/1fp7uihlvzcij.js +0 -13
  569. package/out/_next/static/chunks/1g0syfr6r0rj8.js +0 -111
  570. package/out/_next/static/chunks/1g5l7e7du4p25.js +0 -1
  571. package/out/_next/static/chunks/1h03py7retxw8.js +0 -13
  572. package/out/_next/static/chunks/1i6-vxhyp4fan.js +0 -73
  573. package/out/_next/static/chunks/1ihjqvn68cj5e.js +0 -36
  574. package/out/_next/static/chunks/1ij-bgloqrwlw.js +0 -809
  575. package/out/_next/static/chunks/1l1_ntden2a5-.js +0 -58
  576. package/out/_next/static/chunks/1m0x2mb91rv2i.js +0 -13
  577. package/out/_next/static/chunks/1mw35msx036qx.js +0 -66
  578. package/out/_next/static/chunks/1ou8q3ltdifd1.js +0 -34
  579. package/out/_next/static/chunks/1prx7jjoz9cq8.js +0 -3
  580. package/out/_next/static/chunks/1q1js93yqv2ym.js +0 -14
  581. package/out/_next/static/chunks/1qkgln72hya5g.js +0 -1
  582. package/out/_next/static/chunks/1qn6du1pk46f0.js +0 -14
  583. package/out/_next/static/chunks/1r_q8-_cl6_b-.js +0 -23
  584. package/out/_next/static/chunks/1rirgtcu6_bpa.js +0 -17
  585. package/out/_next/static/chunks/1rpgl9uhsj7jq.js +0 -28
  586. package/out/_next/static/chunks/1tzo3v9d5ccon.js +0 -15
  587. package/out/_next/static/chunks/1uculcrefh01f.js +0 -16
  588. package/out/_next/static/chunks/1uinfdu-lhddb.js +0 -1
  589. package/out/_next/static/chunks/1uiqmuia9hpwc.js +0 -32
  590. package/out/_next/static/chunks/1ukg1j06gk9j7.js +0 -233
  591. package/out/_next/static/chunks/1v2r-dm5xnwxd.js +0 -95
  592. package/out/_next/static/chunks/1x8c4f-tlz8oq.js +0 -54
  593. package/out/_next/static/chunks/1xic7x33en-_t.js +0 -46
  594. package/out/_next/static/chunks/1y-vwb0-v5xv0.js +0 -304
  595. package/out/_next/static/chunks/1ymswtxkxcnfi.js +0 -11
  596. package/out/_next/static/chunks/1yrby6v2msnio.js +0 -13
  597. package/out/_next/static/chunks/1yx8v1-jzs__q.js +0 -234
  598. package/out/_next/static/chunks/1yxsj_p-0xiav.js +0 -14
  599. package/out/_next/static/chunks/2-1ihmwxm5nd8.js +0 -13
  600. package/out/_next/static/chunks/2-hsn5zne_kbo.js +0 -18
  601. package/out/_next/static/chunks/20ndjd4r5l6vk.js +0 -1
  602. package/out/_next/static/chunks/22l-2aehes9lx.js +0 -153
  603. package/out/_next/static/chunks/23ju3v8ue0m8a.js +0 -8
  604. package/out/_next/static/chunks/23lmor9w4r767.js +0 -1
  605. package/out/_next/static/chunks/24p5ic154k1id.js +0 -50
  606. package/out/_next/static/chunks/250qu8q7duhe7.js +0 -1
  607. package/out/_next/static/chunks/25asi1rq6d8hb.js +0 -7
  608. package/out/_next/static/chunks/263u-_eyq54xn.js +0 -155
  609. package/out/_next/static/chunks/26ca8aneaqvre.js +0 -2
  610. package/out/_next/static/chunks/27_5des_qn7kz.js +0 -1
  611. package/out/_next/static/chunks/27ek8w2c2mk46.js +0 -15
  612. package/out/_next/static/chunks/28d90lqq_6ddl.js +0 -135
  613. package/out/_next/static/chunks/29yitf66u5w9d.js +0 -1
  614. package/out/_next/static/chunks/2_3qu55ddb4jo.js +0 -3
  615. package/out/_next/static/chunks/2b8nhs_3rpawc.js +0 -1
  616. package/out/_next/static/chunks/2bby8chs2h2zt.js +0 -190
  617. package/out/_next/static/chunks/2ch1ir5bauqm-.js +0 -41
  618. package/out/_next/static/chunks/2cwzq52lgg7tg.js +0 -147
  619. package/out/_next/static/chunks/2dbrybnhe5thu.css +0 -1
  620. package/out/_next/static/chunks/2dddh3jepg6r9.js +0 -22
  621. package/out/_next/static/chunks/2epfbio36cp2x.js +0 -13
  622. package/out/_next/static/chunks/2ev7bgw2foqui.js +0 -12
  623. package/out/_next/static/chunks/2f0e2t3pz-rua.js +0 -1
  624. package/out/_next/static/chunks/2ibnigbqfhrjb.js +0 -8
  625. package/out/_next/static/chunks/2iuu4shi025hv.js +0 -10
  626. package/out/_next/static/chunks/2n3x1m3a_ria_.js +0 -1
  627. package/out/_next/static/chunks/2ngg-2uli_wsk.js +0 -17
  628. package/out/_next/static/chunks/2nofj6ud99639.js +0 -2
  629. package/out/_next/static/chunks/2onfts3kpe9d8.js +0 -1
  630. package/out/_next/static/chunks/2rdh3y4-gf0r1.js +0 -7
  631. package/out/_next/static/chunks/2ry72x6et3uyk.js +0 -235
  632. package/out/_next/static/chunks/2t2zzfasof1ej.js +0 -18
  633. package/out/_next/static/chunks/2tw-iq1oliu-h.js +0 -1
  634. package/out/_next/static/chunks/2twd9trj9horc.js +0 -61
  635. package/out/_next/static/chunks/2uln0xj_hk2xv.js +0 -22
  636. package/out/_next/static/chunks/2x0c4v5dipld3.js +0 -13
  637. package/out/_next/static/chunks/2xhllcys1_u52.js +0 -14
  638. package/out/_next/static/chunks/3-n5bzlk225-y.js +0 -1
  639. package/out/_next/static/chunks/3154519pby2gj.js +0 -5
  640. package/out/_next/static/chunks/327jk4epgudqh.js +0 -110
  641. package/out/_next/static/chunks/334lcmrt6lgtz.js +0 -14
  642. package/out/_next/static/chunks/33bnjdrokmipf.js +0 -12
  643. package/out/_next/static/chunks/33g91_yljnpiw.js +0 -807
  644. package/out/_next/static/chunks/33getgbb1rmpa.js +0 -43
  645. package/out/_next/static/chunks/342etvf_c28cb.js +0 -39
  646. package/out/_next/static/chunks/34kqgu8bnykwx.js +0 -315
  647. package/out/_next/static/chunks/34zya3wqxvl8k.js +0 -19
  648. package/out/_next/static/chunks/35k7e1g1muu56.js +0 -5
  649. package/out/_next/static/chunks/399t21noeueqk.js +0 -13
  650. package/out/_next/static/chunks/39ze4mwy903wm.js +0 -13
  651. package/out/_next/static/chunks/3_8h-x8lcmhr7.js +0 -339
  652. package/out/_next/static/chunks/3_j5zrbyysq1g.js +0 -31
  653. package/out/_next/static/chunks/3a8a8fpl7-ndf.js +0 -1
  654. package/out/_next/static/chunks/3a9g7ouf888jt.js +0 -1
  655. package/out/_next/static/chunks/3anxg7pk9-h3t.js +0 -50
  656. package/out/_next/static/chunks/3blzs4z5wryub.js +0 -1
  657. package/out/_next/static/chunks/3cfkqo3t0m0es.js +0 -3
  658. package/out/_next/static/chunks/3coz1fo064u6a.js +0 -12
  659. package/out/_next/static/chunks/3cr1as0q659er.js +0 -1
  660. package/out/_next/static/chunks/3crdcex_nrx3o.js +0 -12
  661. package/out/_next/static/chunks/3crkl2ligc-kt.js +0 -14
  662. package/out/_next/static/chunks/3d0ic2ovyeue7.js +0 -2
  663. package/out/_next/static/chunks/3ddaet08eakmw.js +0 -18
  664. package/out/_next/static/chunks/3dh3x6thy7fef.js +0 -1
  665. package/out/_next/static/chunks/3e75y5wr7_vem.js +0 -327
  666. package/out/_next/static/chunks/3e98ykfx_vamf.js +0 -60
  667. package/out/_next/static/chunks/3eq-uts_yz1e5.js +0 -1
  668. package/out/_next/static/chunks/3ghzaufs2n8uq.js +0 -2
  669. package/out/_next/static/chunks/3ie60090urams.js +0 -16
  670. package/out/_next/static/chunks/3jffivfbeet7f.js +0 -15
  671. package/out/_next/static/chunks/3mskn3uvx6s77.js +0 -142
  672. package/out/_next/static/chunks/3oppyz2wurlv-.js +0 -329
  673. package/out/_next/static/chunks/3p-pioxz8jyip.js +0 -15
  674. package/out/_next/static/chunks/3po1wffu1pc3k.js +0 -12
  675. package/out/_next/static/chunks/3rvxjwpm2hkzt.js +0 -13
  676. package/out/_next/static/chunks/3snnfwi0hsfwy.js +0 -31
  677. package/out/_next/static/chunks/3so-jsqyai73m.js +0 -1
  678. package/out/_next/static/chunks/3voheu4m42ctw.js +0 -14
  679. package/out/_next/static/chunks/3x3oqxb68-ull.js +0 -7
  680. package/out/_next/static/chunks/3ysj3lx_q697-.js +0 -124
  681. package/out/_next/static/chunks/3zncjth-kop8p.js +0 -1
  682. package/out/_next/static/chunks/3zp4iedgev460.js +0 -35
  683. package/out/_next/static/chunks/40jzqlki-ix7b.js +0 -17
  684. package/out/_next/static/chunks/4138xi7jgdv_o.js +0 -107
  685. package/out/_next/static/chunks/413d2n3_vvshb.js +0 -14
  686. package/out/_next/static/chunks/41mslgyvxwsej.js +0 -1
  687. package/out/_next/static/chunks/44kw4hk598ruu.js +0 -1
  688. package/out/_next/static/chunks/44um3bi95nxcy.js +0 -1
  689. package/out/_next/static/chunks/44xj9eghssy4h.js +0 -1
  690. package/out/_next/static/chunks/turbopack-00bqo3amk802l.js +0 -1
  691. package/out/_next/static/chunks/turbopack-00xv5x2980kaw.js +0 -1
  692. package/out/_next/static/chunks/turbopack-07riv31885zxj.js +0 -1
  693. package/out/_next/static/chunks/turbopack-0_sc_n1p1bcp9.js +0 -1
  694. package/out/_next/static/chunks/turbopack-0a3d8s54evtiu.js +0 -1
  695. package/out/_next/static/chunks/turbopack-0eg08vs3s4808.js +0 -1
  696. package/out/_next/static/chunks/turbopack-0j5aiynif9rh6.js +0 -1
  697. package/out/_next/static/chunks/turbopack-0utbjxefp9fml.js +0 -1
  698. package/out/_next/static/chunks/turbopack-12eu9ngd0g762.js +0 -1
  699. package/out/_next/static/chunks/turbopack-169mif_3j2xs7.js +0 -1
  700. package/out/_next/static/chunks/turbopack-16y9ecuw-sg_1.js +0 -1
  701. package/out/_next/static/chunks/turbopack-17gr4a9fxe8he.js +0 -1
  702. package/out/_next/static/chunks/turbopack-19agtluuz9hs9.js +0 -1
  703. package/out/_next/static/chunks/turbopack-1qm1ao7m24ujy.js +0 -1
  704. package/out/_next/static/chunks/turbopack-1tefm98ftz444.js +0 -1
  705. package/out/_next/static/chunks/turbopack-1yd96mx8ypi2r.js +0 -1
  706. package/out/_next/static/chunks/turbopack-1yr-b62bnm8pn.js +0 -1
  707. package/out/_next/static/chunks/turbopack-20jztdd3emk_4.js +0 -1
  708. package/out/_next/static/chunks/turbopack-24wh5-0ze4f20.js +0 -1
  709. package/out/_next/static/chunks/turbopack-27e97jv6b-s-_.js +0 -1
  710. package/out/_next/static/chunks/turbopack-2_-s3bsa7fy5n.js +0 -1
  711. package/out/_next/static/chunks/turbopack-2agmtzzi93gcu.js +0 -1
  712. package/out/_next/static/chunks/turbopack-2krkwbmqyusjo.js +0 -1
  713. package/out/_next/static/chunks/turbopack-2ktr6ad7w59-u.js +0 -1
  714. package/out/_next/static/chunks/turbopack-2o3ztc3qxaqmv.js +0 -1
  715. package/out/_next/static/chunks/turbopack-2ocojyxy_6ohm.js +0 -1
  716. package/out/_next/static/chunks/turbopack-2p09rgir8a_rr.js +0 -1
  717. package/out/_next/static/chunks/turbopack-2s314huts4-ih.js +0 -1
  718. package/out/_next/static/chunks/turbopack-2uy0-z_9q9r-t.js +0 -1
  719. package/out/_next/static/chunks/turbopack-2xkr4g1kb-c30.js +0 -1
  720. package/out/_next/static/chunks/turbopack-38uc2-slitwye.js +0 -1
  721. package/out/_next/static/chunks/turbopack-3_vxq7t7y83kn.js +0 -1
  722. package/out/_next/static/chunks/turbopack-3b4ho7bon8y1n.js +0 -1
  723. package/out/_next/static/chunks/turbopack-3ldzloccscyev.js +0 -1
  724. package/out/_next/static/chunks/turbopack-3o2wlpvy73vfc.js +0 -1
  725. package/out/_next/static/chunks/turbopack-3u8iq4uiukeh-.js +0 -1
  726. package/out/_next/static/chunks/turbopack-3ywen4wf3l3h-.js +0 -1
  727. package/out/_next/static/chunks/turbopack-3zajpzv2knbum.js +0 -1
  728. package/out/_next/static/chunks/turbopack-42c24-sypz5zz.js +0 -1
  729. /package/dist/{chunk-BYXBJQAS.js → chunk-QWQ3WJJN.js} +0 -0
  730. /package/out/_next/static/{VYWUvBJY94uiS3jm4HOFN → 9EKCOng_3jDFmFdZSuNp0}/_clientMiddlewareManifest.js +0 -0
  731. /package/out/_next/static/{VYWUvBJY94uiS3jm4HOFN → 9EKCOng_3jDFmFdZSuNp0}/_ssgManifest.js +0 -0
package/dist/ui.js CHANGED
@@ -1,12 +1,19 @@
1
- import { clsx, clsx_default, ChevronUpIcon_default, ChevronDownIcon_default, SubmitButton_default, TagInputField_default, Badge_default } from './chunk-YSKZE2KN.js';
2
- export { Badge_default as Badge, HelpText_default as HelpText, JSONView_default as JSONView, Tab_default as Tab, TagInput_default as TagInput } from './chunk-YSKZE2KN.js';
1
+ import { clsx, clsx_default, ChevronUpIcon_default, ChevronDownIcon_default, SubmitButton_default, TagInputField_default, Badge_default } from './chunk-SDA2A6TP.js';
2
+ export { Badge_default as Badge, HelpText_default as HelpText, JSONView_default as JSONView, Tab_default as Tab, TagInput_default as TagInput } from './chunk-SDA2A6TP.js';
3
3
  import { DefaultLimit, LimitSteps } from './chunk-VDKQGOMV.js';
4
4
  import { useForm_default } from './chunk-Q6S3LBUF.js';
5
- import { FormContext_default, toDate, isValid, millisecondsInWeek, constructFrom, startOfDay, millisecondsInDay } from './chunk-UXG7EYHC.js';
5
+ import { FormContext_default, toDate, isValid, millisecondsInWeek, constructFrom, startOfDay, millisecondsInDay } from './chunk-6ZZIMVID.js';
6
6
  import { NoSymbolIcon_default, PlusIcon_default, CheckCircleIcon_default, XCircleIcon_default, InformationCircleIcon_default, PhotoIcon_default, UserCircleIcon_default } from './chunk-XJBPMIC4.js';
7
7
  import { useModal_default } from './chunk-XHOCXPD5.js';
8
+ import { init_react, react_exports } from './chunk-2ARWAOZW.js';
8
9
  import './chunk-RVG6IOFC.js';
9
- import { __commonJS, __require, __toESM, __export } from './chunk-4VNS5WPM.js';
10
+ import { useShopInfo_default, AppContext_default } from './chunk-JAVEZY3Q.js';
11
+ import './chunk-ELPURWDC.js';
12
+ import './chunk-RAQV2GYF.js';
13
+ import './chunk-54DKBWXV.js';
14
+ import './chunk-GY2DRQGW.js';
15
+ import './chunk-IAQPLRXZ.js';
16
+ import { __commonJS, __toCommonJS, __toESM, __export } from './chunk-WPLOTFGW.js';
10
17
  import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
11
18
  import { useRouter } from 'next/router';
12
19
  import { useIntl, FormattedMessage } from 'react-intl';
@@ -18,67 +25,15 @@ import Image from 'next/image';
18
25
  import { FormProvider } from 'react-hook-form';
19
26
  import { createPortal } from 'react-dom';
20
27
 
21
- // ../node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.js
22
- var require_use_sync_external_store_shim_production = __commonJS({
23
- "../node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.js"(exports) {
24
- var React17 = __require("react");
25
- function is2(x2, y2) {
26
- return x2 === y2 && (0 !== x2 || 1 / x2 === 1 / y2) || x2 !== x2 && y2 !== y2;
27
- }
28
- var objectIs = "function" === typeof Object.is ? Object.is : is2;
29
- var useState13 = React17.useState;
30
- var useEffect12 = React17.useEffect;
31
- var useLayoutEffect2 = React17.useLayoutEffect;
32
- var useDebugValue = React17.useDebugValue;
33
- function useSyncExternalStore$2(subscribe, getSnapshot) {
34
- var value = getSnapshot(), _useState = useState13({ inst: { value, getSnapshot } }), inst = _useState[0].inst, forceUpdate = _useState[1];
35
- useLayoutEffect2(
36
- function() {
37
- inst.value = value;
38
- inst.getSnapshot = getSnapshot;
39
- checkIfSnapshotChanged(inst) && forceUpdate({ inst });
40
- },
41
- [subscribe, value, getSnapshot]
42
- );
43
- useEffect12(
44
- function() {
45
- checkIfSnapshotChanged(inst) && forceUpdate({ inst });
46
- return subscribe(function() {
47
- checkIfSnapshotChanged(inst) && forceUpdate({ inst });
48
- });
49
- },
50
- [subscribe]
51
- );
52
- useDebugValue(value);
53
- return value;
54
- }
55
- function checkIfSnapshotChanged(inst) {
56
- var latestGetSnapshot = inst.getSnapshot;
57
- inst = inst.value;
58
- try {
59
- var nextValue = latestGetSnapshot();
60
- return !objectIs(inst, nextValue);
61
- } catch (error) {
62
- return true;
63
- }
64
- }
65
- function useSyncExternalStore$1(subscribe, getSnapshot) {
66
- return getSnapshot();
67
- }
68
- var shim = "undefined" === typeof window || "undefined" === typeof window.document || "undefined" === typeof window.document.createElement ? useSyncExternalStore$1 : useSyncExternalStore$2;
69
- exports.useSyncExternalStore = void 0 !== React17.useSyncExternalStore ? React17.useSyncExternalStore : shim;
70
- }
71
- });
72
-
73
28
  // ../node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.js
74
29
  var require_use_sync_external_store_shim_development = __commonJS({
75
30
  "../node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.js"(exports) {
76
- "production" !== process.env.NODE_ENV && (function() {
31
+ (function() {
77
32
  function is2(x2, y2) {
78
33
  return x2 === y2 && (0 !== x2 || 1 / x2 === 1 / y2) || x2 !== x2 && y2 !== y2;
79
34
  }
80
35
  function useSyncExternalStore$2(subscribe, getSnapshot) {
81
- didWarnOld18Alpha || void 0 === React17.startTransition || (didWarnOld18Alpha = true, console.error(
36
+ didWarnOld18Alpha || void 0 === React19.startTransition || (didWarnOld18Alpha = true, console.error(
82
37
  "You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."
83
38
  ));
84
39
  var value = getSnapshot();
@@ -88,7 +43,7 @@ var require_use_sync_external_store_shim_development = __commonJS({
88
43
  "The result of getSnapshot should be cached to avoid an infinite loop"
89
44
  ), didWarnUncachedGetSnapshot = true);
90
45
  }
91
- cachedValue = useState13({
46
+ cachedValue = useState14({
92
47
  inst: { value, getSnapshot }
93
48
  });
94
49
  var inst = cachedValue[0].inst, forceUpdate = cachedValue[1];
@@ -100,7 +55,7 @@ var require_use_sync_external_store_shim_development = __commonJS({
100
55
  },
101
56
  [subscribe, value, getSnapshot]
102
57
  );
103
- useEffect12(
58
+ useEffect13(
104
59
  function() {
105
60
  checkIfSnapshotChanged(inst) && forceUpdate({ inst });
106
61
  return subscribe(function() {
@@ -126,8 +81,8 @@ var require_use_sync_external_store_shim_development = __commonJS({
126
81
  return getSnapshot();
127
82
  }
128
83
  "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
129
- var React17 = __require("react"), objectIs = "function" === typeof Object.is ? Object.is : is2, useState13 = React17.useState, useEffect12 = React17.useEffect, useLayoutEffect2 = React17.useLayoutEffect, useDebugValue = React17.useDebugValue, didWarnOld18Alpha = false, didWarnUncachedGetSnapshot = false, shim = "undefined" === typeof window || "undefined" === typeof window.document || "undefined" === typeof window.document.createElement ? useSyncExternalStore$1 : useSyncExternalStore$2;
130
- exports.useSyncExternalStore = void 0 !== React17.useSyncExternalStore ? React17.useSyncExternalStore : shim;
84
+ var React19 = (init_react(), __toCommonJS(react_exports)), objectIs = "function" === typeof Object.is ? Object.is : is2, useState14 = React19.useState, useEffect13 = React19.useEffect, useLayoutEffect2 = React19.useLayoutEffect, useDebugValue = React19.useDebugValue, didWarnOld18Alpha = false, didWarnUncachedGetSnapshot = false, shim = "undefined" === typeof window || "undefined" === typeof window.document || "undefined" === typeof window.document.createElement ? useSyncExternalStore$1 : useSyncExternalStore$2;
85
+ exports.useSyncExternalStore = void 0 !== React19.useSyncExternalStore ? React19.useSyncExternalStore : shim;
131
86
  "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
132
87
  })();
133
88
  }
@@ -136,91 +91,21 @@ var require_use_sync_external_store_shim_development = __commonJS({
136
91
  // ../node_modules/use-sync-external-store/shim/index.js
137
92
  var require_shim = __commonJS({
138
93
  "../node_modules/use-sync-external-store/shim/index.js"(exports, module) {
139
- if (process.env.NODE_ENV === "production") {
140
- module.exports = require_use_sync_external_store_shim_production();
141
- } else {
94
+ {
142
95
  module.exports = require_use_sync_external_store_shim_development();
143
96
  }
144
97
  }
145
98
  });
146
99
 
147
- // ../node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.js
148
- var require_with_selector_production = __commonJS({
149
- "../node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.js"(exports) {
150
- var React17 = __require("react");
151
- var shim = require_shim();
152
- function is2(x2, y2) {
153
- return x2 === y2 && (0 !== x2 || 1 / x2 === 1 / y2) || x2 !== x2 && y2 !== y2;
154
- }
155
- var objectIs = "function" === typeof Object.is ? Object.is : is2;
156
- var useSyncExternalStore = shim.useSyncExternalStore;
157
- var useRef7 = React17.useRef;
158
- var useEffect12 = React17.useEffect;
159
- var useMemo6 = React17.useMemo;
160
- var useDebugValue = React17.useDebugValue;
161
- exports.useSyncExternalStoreWithSelector = function(subscribe, getSnapshot, getServerSnapshot, selector, isEqual) {
162
- var instRef = useRef7(null);
163
- if (null === instRef.current) {
164
- var inst = { hasValue: false, value: null };
165
- instRef.current = inst;
166
- } else inst = instRef.current;
167
- instRef = useMemo6(
168
- function() {
169
- function memoizedSelector(nextSnapshot) {
170
- if (!hasMemo) {
171
- hasMemo = true;
172
- memoizedSnapshot = nextSnapshot;
173
- nextSnapshot = selector(nextSnapshot);
174
- if (void 0 !== isEqual && inst.hasValue) {
175
- var currentSelection = inst.value;
176
- if (isEqual(currentSelection, nextSnapshot))
177
- return memoizedSelection = currentSelection;
178
- }
179
- return memoizedSelection = nextSnapshot;
180
- }
181
- currentSelection = memoizedSelection;
182
- if (objectIs(memoizedSnapshot, nextSnapshot)) return currentSelection;
183
- var nextSelection = selector(nextSnapshot);
184
- if (void 0 !== isEqual && isEqual(currentSelection, nextSelection))
185
- return memoizedSnapshot = nextSnapshot, currentSelection;
186
- memoizedSnapshot = nextSnapshot;
187
- return memoizedSelection = nextSelection;
188
- }
189
- var hasMemo = false, memoizedSnapshot, memoizedSelection, maybeGetServerSnapshot = void 0 === getServerSnapshot ? null : getServerSnapshot;
190
- return [
191
- function() {
192
- return memoizedSelector(getSnapshot());
193
- },
194
- null === maybeGetServerSnapshot ? void 0 : function() {
195
- return memoizedSelector(maybeGetServerSnapshot());
196
- }
197
- ];
198
- },
199
- [getSnapshot, getServerSnapshot, selector, isEqual]
200
- );
201
- var value = useSyncExternalStore(subscribe, instRef[0], instRef[1]);
202
- useEffect12(
203
- function() {
204
- inst.hasValue = true;
205
- inst.value = value;
206
- },
207
- [value]
208
- );
209
- useDebugValue(value);
210
- return value;
211
- };
212
- }
213
- });
214
-
215
100
  // ../node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.development.js
216
101
  var require_with_selector_development = __commonJS({
217
102
  "../node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.development.js"(exports) {
218
- "production" !== process.env.NODE_ENV && (function() {
103
+ (function() {
219
104
  function is2(x2, y2) {
220
105
  return x2 === y2 && (0 !== x2 || 1 / x2 === 1 / y2) || x2 !== x2 && y2 !== y2;
221
106
  }
222
107
  "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
223
- var React17 = __require("react"), shim = require_shim(), objectIs = "function" === typeof Object.is ? Object.is : is2, useSyncExternalStore = shim.useSyncExternalStore, useRef7 = React17.useRef, useEffect12 = React17.useEffect, useMemo6 = React17.useMemo, useDebugValue = React17.useDebugValue;
108
+ var React19 = (init_react(), __toCommonJS(react_exports)), shim = require_shim(), objectIs = "function" === typeof Object.is ? Object.is : is2, useSyncExternalStore = shim.useSyncExternalStore, useRef7 = React19.useRef, useEffect13 = React19.useEffect, useMemo6 = React19.useMemo, useDebugValue = React19.useDebugValue;
224
109
  exports.useSyncExternalStoreWithSelector = function(subscribe, getSnapshot, getServerSnapshot, selector, isEqual) {
225
110
  var instRef = useRef7(null);
226
111
  if (null === instRef.current) {
@@ -263,7 +148,7 @@ var require_with_selector_development = __commonJS({
263
148
  [getSnapshot, getServerSnapshot, selector, isEqual]
264
149
  );
265
150
  var value = useSyncExternalStore(subscribe, instRef[0], instRef[1]);
266
- useEffect12(
151
+ useEffect13(
267
152
  function() {
268
153
  inst.hasValue = true;
269
154
  inst.value = value;
@@ -281,14 +166,995 @@ var require_with_selector_development = __commonJS({
281
166
  // ../node_modules/use-sync-external-store/shim/with-selector.js
282
167
  var require_with_selector = __commonJS({
283
168
  "../node_modules/use-sync-external-store/shim/with-selector.js"(exports, module) {
284
- if (process.env.NODE_ENV === "production") {
285
- module.exports = require_with_selector_production();
286
- } else {
169
+ {
287
170
  module.exports = require_with_selector_development();
288
171
  }
289
172
  }
290
173
  });
291
174
 
175
+ // ../node_modules/decimal.js-light/decimal.js
176
+ var require_decimal = __commonJS({
177
+ "../node_modules/decimal.js-light/decimal.js"(exports, module) {
178
+ (function(globalScope) {
179
+ var MAX_DIGITS = 1e9, Decimal3 = {
180
+ // These values must be integers within the stated ranges (inclusive).
181
+ // Most of these values can be changed during run-time using `Decimal.config`.
182
+ // The maximum number of significant digits of the result of a calculation or base conversion.
183
+ // E.g. `Decimal.config({ precision: 20 });`
184
+ precision: 20,
185
+ // 1 to MAX_DIGITS
186
+ // The rounding mode used by default by `toInteger`, `toDecimalPlaces`, `toExponential`,
187
+ // `toFixed`, `toPrecision` and `toSignificantDigits`.
188
+ //
189
+ // ROUND_UP 0 Away from zero.
190
+ // ROUND_DOWN 1 Towards zero.
191
+ // ROUND_CEIL 2 Towards +Infinity.
192
+ // ROUND_FLOOR 3 Towards -Infinity.
193
+ // ROUND_HALF_UP 4 Towards nearest neighbour. If equidistant, up.
194
+ // ROUND_HALF_DOWN 5 Towards nearest neighbour. If equidistant, down.
195
+ // ROUND_HALF_EVEN 6 Towards nearest neighbour. If equidistant, towards even neighbour.
196
+ // ROUND_HALF_CEIL 7 Towards nearest neighbour. If equidistant, towards +Infinity.
197
+ // ROUND_HALF_FLOOR 8 Towards nearest neighbour. If equidistant, towards -Infinity.
198
+ //
199
+ // E.g.
200
+ // `Decimal.rounding = 4;`
201
+ // `Decimal.rounding = Decimal.ROUND_HALF_UP;`
202
+ rounding: 4,
203
+ // 0 to 8
204
+ // The exponent value at and beneath which `toString` returns exponential notation.
205
+ // JavaScript numbers: -7
206
+ toExpNeg: -7,
207
+ // 0 to -MAX_E
208
+ // The exponent value at and above which `toString` returns exponential notation.
209
+ // JavaScript numbers: 21
210
+ toExpPos: 21,
211
+ // 0 to MAX_E
212
+ // The natural logarithm of 10.
213
+ // 115 digits
214
+ LN10: "2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"
215
+ }, external = true, decimalError = "[DecimalError] ", invalidArgument = decimalError + "Invalid argument: ", exponentOutOfRange = decimalError + "Exponent out of range: ", mathfloor = Math.floor, mathpow = Math.pow, isDecimal = /^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i, ONE, BASE = 1e7, LOG_BASE = 7, MAX_SAFE_INTEGER = 9007199254740991, MAX_E = mathfloor(MAX_SAFE_INTEGER / LOG_BASE), P = {};
216
+ P.absoluteValue = P.abs = function() {
217
+ var x2 = new this.constructor(this);
218
+ if (x2.s) x2.s = 1;
219
+ return x2;
220
+ };
221
+ P.comparedTo = P.cmp = function(y2) {
222
+ var i, j, xdL, ydL, x2 = this;
223
+ y2 = new x2.constructor(y2);
224
+ if (x2.s !== y2.s) return x2.s || -y2.s;
225
+ if (x2.e !== y2.e) return x2.e > y2.e ^ x2.s < 0 ? 1 : -1;
226
+ xdL = x2.d.length;
227
+ ydL = y2.d.length;
228
+ for (i = 0, j = xdL < ydL ? xdL : ydL; i < j; ++i) {
229
+ if (x2.d[i] !== y2.d[i]) return x2.d[i] > y2.d[i] ^ x2.s < 0 ? 1 : -1;
230
+ }
231
+ return xdL === ydL ? 0 : xdL > ydL ^ x2.s < 0 ? 1 : -1;
232
+ };
233
+ P.decimalPlaces = P.dp = function() {
234
+ var x2 = this, w = x2.d.length - 1, dp = (w - x2.e) * LOG_BASE;
235
+ w = x2.d[w];
236
+ if (w) for (; w % 10 == 0; w /= 10) dp--;
237
+ return dp < 0 ? 0 : dp;
238
+ };
239
+ P.dividedBy = P.div = function(y2) {
240
+ return divide(this, new this.constructor(y2));
241
+ };
242
+ P.dividedToIntegerBy = P.idiv = function(y2) {
243
+ var x2 = this, Ctor = x2.constructor;
244
+ return round2(divide(x2, new Ctor(y2), 0, 1), Ctor.precision);
245
+ };
246
+ P.equals = P.eq = function(y2) {
247
+ return !this.cmp(y2);
248
+ };
249
+ P.exponent = function() {
250
+ return getBase10Exponent(this);
251
+ };
252
+ P.greaterThan = P.gt = function(y2) {
253
+ return this.cmp(y2) > 0;
254
+ };
255
+ P.greaterThanOrEqualTo = P.gte = function(y2) {
256
+ return this.cmp(y2) >= 0;
257
+ };
258
+ P.isInteger = P.isint = function() {
259
+ return this.e > this.d.length - 2;
260
+ };
261
+ P.isNegative = P.isneg = function() {
262
+ return this.s < 0;
263
+ };
264
+ P.isPositive = P.ispos = function() {
265
+ return this.s > 0;
266
+ };
267
+ P.isZero = function() {
268
+ return this.s === 0;
269
+ };
270
+ P.lessThan = P.lt = function(y2) {
271
+ return this.cmp(y2) < 0;
272
+ };
273
+ P.lessThanOrEqualTo = P.lte = function(y2) {
274
+ return this.cmp(y2) < 1;
275
+ };
276
+ P.logarithm = P.log = function(base) {
277
+ var r, x2 = this, Ctor = x2.constructor, pr = Ctor.precision, wpr = pr + 5;
278
+ if (base === void 0) {
279
+ base = new Ctor(10);
280
+ } else {
281
+ base = new Ctor(base);
282
+ if (base.s < 1 || base.eq(ONE)) throw Error(decimalError + "NaN");
283
+ }
284
+ if (x2.s < 1) throw Error(decimalError + (x2.s ? "NaN" : "-Infinity"));
285
+ if (x2.eq(ONE)) return new Ctor(0);
286
+ external = false;
287
+ r = divide(ln(x2, wpr), ln(base, wpr), wpr);
288
+ external = true;
289
+ return round2(r, pr);
290
+ };
291
+ P.minus = P.sub = function(y2) {
292
+ var x2 = this;
293
+ y2 = new x2.constructor(y2);
294
+ return x2.s == y2.s ? subtract(x2, y2) : add(x2, (y2.s = -y2.s, y2));
295
+ };
296
+ P.modulo = P.mod = function(y2) {
297
+ var q, x2 = this, Ctor = x2.constructor, pr = Ctor.precision;
298
+ y2 = new Ctor(y2);
299
+ if (!y2.s) throw Error(decimalError + "NaN");
300
+ if (!x2.s) return round2(new Ctor(x2), pr);
301
+ external = false;
302
+ q = divide(x2, y2, 0, 1).times(y2);
303
+ external = true;
304
+ return x2.minus(q);
305
+ };
306
+ P.naturalExponential = P.exp = function() {
307
+ return exp(this);
308
+ };
309
+ P.naturalLogarithm = P.ln = function() {
310
+ return ln(this);
311
+ };
312
+ P.negated = P.neg = function() {
313
+ var x2 = new this.constructor(this);
314
+ x2.s = -x2.s || 0;
315
+ return x2;
316
+ };
317
+ P.plus = P.add = function(y2) {
318
+ var x2 = this;
319
+ y2 = new x2.constructor(y2);
320
+ return x2.s == y2.s ? add(x2, y2) : subtract(x2, (y2.s = -y2.s, y2));
321
+ };
322
+ P.precision = P.sd = function(z) {
323
+ var e, sd, w, x2 = this;
324
+ if (z !== void 0 && z !== !!z && z !== 1 && z !== 0) throw Error(invalidArgument + z);
325
+ e = getBase10Exponent(x2) + 1;
326
+ w = x2.d.length - 1;
327
+ sd = w * LOG_BASE + 1;
328
+ w = x2.d[w];
329
+ if (w) {
330
+ for (; w % 10 == 0; w /= 10) sd--;
331
+ for (w = x2.d[0]; w >= 10; w /= 10) sd++;
332
+ }
333
+ return z && e > sd ? e : sd;
334
+ };
335
+ P.squareRoot = P.sqrt = function() {
336
+ var e, n, pr, r, s, t, wpr, x2 = this, Ctor = x2.constructor;
337
+ if (x2.s < 1) {
338
+ if (!x2.s) return new Ctor(0);
339
+ throw Error(decimalError + "NaN");
340
+ }
341
+ e = getBase10Exponent(x2);
342
+ external = false;
343
+ s = Math.sqrt(+x2);
344
+ if (s == 0 || s == 1 / 0) {
345
+ n = digitsToString(x2.d);
346
+ if ((n.length + e) % 2 == 0) n += "0";
347
+ s = Math.sqrt(n);
348
+ e = mathfloor((e + 1) / 2) - (e < 0 || e % 2);
349
+ if (s == 1 / 0) {
350
+ n = "5e" + e;
351
+ } else {
352
+ n = s.toExponential();
353
+ n = n.slice(0, n.indexOf("e") + 1) + e;
354
+ }
355
+ r = new Ctor(n);
356
+ } else {
357
+ r = new Ctor(s.toString());
358
+ }
359
+ pr = Ctor.precision;
360
+ s = wpr = pr + 3;
361
+ for (; ; ) {
362
+ t = r;
363
+ r = t.plus(divide(x2, t, wpr + 2)).times(0.5);
364
+ if (digitsToString(t.d).slice(0, wpr) === (n = digitsToString(r.d)).slice(0, wpr)) {
365
+ n = n.slice(wpr - 3, wpr + 1);
366
+ if (s == wpr && n == "4999") {
367
+ round2(t, pr + 1, 0);
368
+ if (t.times(t).eq(x2)) {
369
+ r = t;
370
+ break;
371
+ }
372
+ } else if (n != "9999") {
373
+ break;
374
+ }
375
+ wpr += 4;
376
+ }
377
+ }
378
+ external = true;
379
+ return round2(r, pr);
380
+ };
381
+ P.times = P.mul = function(y2) {
382
+ var carry, e, i, k, r, rL, t, xdL, ydL, x2 = this, Ctor = x2.constructor, xd = x2.d, yd = (y2 = new Ctor(y2)).d;
383
+ if (!x2.s || !y2.s) return new Ctor(0);
384
+ y2.s *= x2.s;
385
+ e = x2.e + y2.e;
386
+ xdL = xd.length;
387
+ ydL = yd.length;
388
+ if (xdL < ydL) {
389
+ r = xd;
390
+ xd = yd;
391
+ yd = r;
392
+ rL = xdL;
393
+ xdL = ydL;
394
+ ydL = rL;
395
+ }
396
+ r = [];
397
+ rL = xdL + ydL;
398
+ for (i = rL; i--; ) r.push(0);
399
+ for (i = ydL; --i >= 0; ) {
400
+ carry = 0;
401
+ for (k = xdL + i; k > i; ) {
402
+ t = r[k] + yd[i] * xd[k - i - 1] + carry;
403
+ r[k--] = t % BASE | 0;
404
+ carry = t / BASE | 0;
405
+ }
406
+ r[k] = (r[k] + carry) % BASE | 0;
407
+ }
408
+ for (; !r[--rL]; ) r.pop();
409
+ if (carry) ++e;
410
+ else r.shift();
411
+ y2.d = r;
412
+ y2.e = e;
413
+ return external ? round2(y2, Ctor.precision) : y2;
414
+ };
415
+ P.toDecimalPlaces = P.todp = function(dp, rm) {
416
+ var x2 = this, Ctor = x2.constructor;
417
+ x2 = new Ctor(x2);
418
+ if (dp === void 0) return x2;
419
+ checkInt32(dp, 0, MAX_DIGITS);
420
+ if (rm === void 0) rm = Ctor.rounding;
421
+ else checkInt32(rm, 0, 8);
422
+ return round2(x2, dp + getBase10Exponent(x2) + 1, rm);
423
+ };
424
+ P.toExponential = function(dp, rm) {
425
+ var str, x2 = this, Ctor = x2.constructor;
426
+ if (dp === void 0) {
427
+ str = toString2(x2, true);
428
+ } else {
429
+ checkInt32(dp, 0, MAX_DIGITS);
430
+ if (rm === void 0) rm = Ctor.rounding;
431
+ else checkInt32(rm, 0, 8);
432
+ x2 = round2(new Ctor(x2), dp + 1, rm);
433
+ str = toString2(x2, true, dp + 1);
434
+ }
435
+ return str;
436
+ };
437
+ P.toFixed = function(dp, rm) {
438
+ var str, y2, x2 = this, Ctor = x2.constructor;
439
+ if (dp === void 0) return toString2(x2);
440
+ checkInt32(dp, 0, MAX_DIGITS);
441
+ if (rm === void 0) rm = Ctor.rounding;
442
+ else checkInt32(rm, 0, 8);
443
+ y2 = round2(new Ctor(x2), dp + getBase10Exponent(x2) + 1, rm);
444
+ str = toString2(y2.abs(), false, dp + getBase10Exponent(y2) + 1);
445
+ return x2.isneg() && !x2.isZero() ? "-" + str : str;
446
+ };
447
+ P.toInteger = P.toint = function() {
448
+ var x2 = this, Ctor = x2.constructor;
449
+ return round2(new Ctor(x2), getBase10Exponent(x2) + 1, Ctor.rounding);
450
+ };
451
+ P.toNumber = function() {
452
+ return +this;
453
+ };
454
+ P.toPower = P.pow = function(y2) {
455
+ var e, k, pr, r, sign2, yIsInt, x2 = this, Ctor = x2.constructor, guard = 12, yn = +(y2 = new Ctor(y2));
456
+ if (!y2.s) return new Ctor(ONE);
457
+ x2 = new Ctor(x2);
458
+ if (!x2.s) {
459
+ if (y2.s < 1) throw Error(decimalError + "Infinity");
460
+ return x2;
461
+ }
462
+ if (x2.eq(ONE)) return x2;
463
+ pr = Ctor.precision;
464
+ if (y2.eq(ONE)) return round2(x2, pr);
465
+ e = y2.e;
466
+ k = y2.d.length - 1;
467
+ yIsInt = e >= k;
468
+ sign2 = x2.s;
469
+ if (!yIsInt) {
470
+ if (sign2 < 0) throw Error(decimalError + "NaN");
471
+ } else if ((k = yn < 0 ? -yn : yn) <= MAX_SAFE_INTEGER) {
472
+ r = new Ctor(ONE);
473
+ e = Math.ceil(pr / LOG_BASE + 4);
474
+ external = false;
475
+ for (; ; ) {
476
+ if (k % 2) {
477
+ r = r.times(x2);
478
+ truncate(r.d, e);
479
+ }
480
+ k = mathfloor(k / 2);
481
+ if (k === 0) break;
482
+ x2 = x2.times(x2);
483
+ truncate(x2.d, e);
484
+ }
485
+ external = true;
486
+ return y2.s < 0 ? new Ctor(ONE).div(r) : round2(r, pr);
487
+ }
488
+ sign2 = sign2 < 0 && y2.d[Math.max(e, k)] & 1 ? -1 : 1;
489
+ x2.s = 1;
490
+ external = false;
491
+ r = y2.times(ln(x2, pr + guard));
492
+ external = true;
493
+ r = exp(r);
494
+ r.s = sign2;
495
+ return r;
496
+ };
497
+ P.toPrecision = function(sd, rm) {
498
+ var e, str, x2 = this, Ctor = x2.constructor;
499
+ if (sd === void 0) {
500
+ e = getBase10Exponent(x2);
501
+ str = toString2(x2, e <= Ctor.toExpNeg || e >= Ctor.toExpPos);
502
+ } else {
503
+ checkInt32(sd, 1, MAX_DIGITS);
504
+ if (rm === void 0) rm = Ctor.rounding;
505
+ else checkInt32(rm, 0, 8);
506
+ x2 = round2(new Ctor(x2), sd, rm);
507
+ e = getBase10Exponent(x2);
508
+ str = toString2(x2, sd <= e || e <= Ctor.toExpNeg, sd);
509
+ }
510
+ return str;
511
+ };
512
+ P.toSignificantDigits = P.tosd = function(sd, rm) {
513
+ var x2 = this, Ctor = x2.constructor;
514
+ if (sd === void 0) {
515
+ sd = Ctor.precision;
516
+ rm = Ctor.rounding;
517
+ } else {
518
+ checkInt32(sd, 1, MAX_DIGITS);
519
+ if (rm === void 0) rm = Ctor.rounding;
520
+ else checkInt32(rm, 0, 8);
521
+ }
522
+ return round2(new Ctor(x2), sd, rm);
523
+ };
524
+ P.toString = P.valueOf = P.val = P.toJSON = function() {
525
+ var x2 = this, e = getBase10Exponent(x2), Ctor = x2.constructor;
526
+ return toString2(x2, e <= Ctor.toExpNeg || e >= Ctor.toExpPos);
527
+ };
528
+ function add(x2, y2) {
529
+ var carry, d, e, i, k, len, xd, yd, Ctor = x2.constructor, pr = Ctor.precision;
530
+ if (!x2.s || !y2.s) {
531
+ if (!y2.s) y2 = new Ctor(x2);
532
+ return external ? round2(y2, pr) : y2;
533
+ }
534
+ xd = x2.d;
535
+ yd = y2.d;
536
+ k = x2.e;
537
+ e = y2.e;
538
+ xd = xd.slice();
539
+ i = k - e;
540
+ if (i) {
541
+ if (i < 0) {
542
+ d = xd;
543
+ i = -i;
544
+ len = yd.length;
545
+ } else {
546
+ d = yd;
547
+ e = k;
548
+ len = xd.length;
549
+ }
550
+ k = Math.ceil(pr / LOG_BASE);
551
+ len = k > len ? k + 1 : len + 1;
552
+ if (i > len) {
553
+ i = len;
554
+ d.length = 1;
555
+ }
556
+ d.reverse();
557
+ for (; i--; ) d.push(0);
558
+ d.reverse();
559
+ }
560
+ len = xd.length;
561
+ i = yd.length;
562
+ if (len - i < 0) {
563
+ i = len;
564
+ d = yd;
565
+ yd = xd;
566
+ xd = d;
567
+ }
568
+ for (carry = 0; i; ) {
569
+ carry = (xd[--i] = xd[i] + yd[i] + carry) / BASE | 0;
570
+ xd[i] %= BASE;
571
+ }
572
+ if (carry) {
573
+ xd.unshift(carry);
574
+ ++e;
575
+ }
576
+ for (len = xd.length; xd[--len] == 0; ) xd.pop();
577
+ y2.d = xd;
578
+ y2.e = e;
579
+ return external ? round2(y2, pr) : y2;
580
+ }
581
+ function checkInt32(i, min2, max2) {
582
+ if (i !== ~~i || i < min2 || i > max2) {
583
+ throw Error(invalidArgument + i);
584
+ }
585
+ }
586
+ function digitsToString(d) {
587
+ var i, k, ws, indexOfLastWord = d.length - 1, str = "", w = d[0];
588
+ if (indexOfLastWord > 0) {
589
+ str += w;
590
+ for (i = 1; i < indexOfLastWord; i++) {
591
+ ws = d[i] + "";
592
+ k = LOG_BASE - ws.length;
593
+ if (k) str += getZeroString(k);
594
+ str += ws;
595
+ }
596
+ w = d[i];
597
+ ws = w + "";
598
+ k = LOG_BASE - ws.length;
599
+ if (k) str += getZeroString(k);
600
+ } else if (w === 0) {
601
+ return "0";
602
+ }
603
+ for (; w % 10 === 0; ) w /= 10;
604
+ return str + w;
605
+ }
606
+ var divide = /* @__PURE__ */ (function() {
607
+ function multiplyInteger(x2, k) {
608
+ var temp, carry = 0, i = x2.length;
609
+ for (x2 = x2.slice(); i--; ) {
610
+ temp = x2[i] * k + carry;
611
+ x2[i] = temp % BASE | 0;
612
+ carry = temp / BASE | 0;
613
+ }
614
+ if (carry) x2.unshift(carry);
615
+ return x2;
616
+ }
617
+ function compare(a, b, aL, bL) {
618
+ var i, r;
619
+ if (aL != bL) {
620
+ r = aL > bL ? 1 : -1;
621
+ } else {
622
+ for (i = r = 0; i < aL; i++) {
623
+ if (a[i] != b[i]) {
624
+ r = a[i] > b[i] ? 1 : -1;
625
+ break;
626
+ }
627
+ }
628
+ }
629
+ return r;
630
+ }
631
+ function subtract2(a, b, aL) {
632
+ var i = 0;
633
+ for (; aL--; ) {
634
+ a[aL] -= i;
635
+ i = a[aL] < b[aL] ? 1 : 0;
636
+ a[aL] = i * BASE + a[aL] - b[aL];
637
+ }
638
+ for (; !a[0] && a.length > 1; ) a.shift();
639
+ }
640
+ return function(x2, y2, pr, dp) {
641
+ var cmp, e, i, k, prod, prodL, q, qd, rem, remL, rem0, sd, t, xi, xL, yd0, yL, yz, Ctor = x2.constructor, sign2 = x2.s == y2.s ? 1 : -1, xd = x2.d, yd = y2.d;
642
+ if (!x2.s) return new Ctor(x2);
643
+ if (!y2.s) throw Error(decimalError + "Division by zero");
644
+ e = x2.e - y2.e;
645
+ yL = yd.length;
646
+ xL = xd.length;
647
+ q = new Ctor(sign2);
648
+ qd = q.d = [];
649
+ for (i = 0; yd[i] == (xd[i] || 0); ) ++i;
650
+ if (yd[i] > (xd[i] || 0)) --e;
651
+ if (pr == null) {
652
+ sd = pr = Ctor.precision;
653
+ } else if (dp) {
654
+ sd = pr + (getBase10Exponent(x2) - getBase10Exponent(y2)) + 1;
655
+ } else {
656
+ sd = pr;
657
+ }
658
+ if (sd < 0) return new Ctor(0);
659
+ sd = sd / LOG_BASE + 2 | 0;
660
+ i = 0;
661
+ if (yL == 1) {
662
+ k = 0;
663
+ yd = yd[0];
664
+ sd++;
665
+ for (; (i < xL || k) && sd--; i++) {
666
+ t = k * BASE + (xd[i] || 0);
667
+ qd[i] = t / yd | 0;
668
+ k = t % yd | 0;
669
+ }
670
+ } else {
671
+ k = BASE / (yd[0] + 1) | 0;
672
+ if (k > 1) {
673
+ yd = multiplyInteger(yd, k);
674
+ xd = multiplyInteger(xd, k);
675
+ yL = yd.length;
676
+ xL = xd.length;
677
+ }
678
+ xi = yL;
679
+ rem = xd.slice(0, yL);
680
+ remL = rem.length;
681
+ for (; remL < yL; ) rem[remL++] = 0;
682
+ yz = yd.slice();
683
+ yz.unshift(0);
684
+ yd0 = yd[0];
685
+ if (yd[1] >= BASE / 2) ++yd0;
686
+ do {
687
+ k = 0;
688
+ cmp = compare(yd, rem, yL, remL);
689
+ if (cmp < 0) {
690
+ rem0 = rem[0];
691
+ if (yL != remL) rem0 = rem0 * BASE + (rem[1] || 0);
692
+ k = rem0 / yd0 | 0;
693
+ if (k > 1) {
694
+ if (k >= BASE) k = BASE - 1;
695
+ prod = multiplyInteger(yd, k);
696
+ prodL = prod.length;
697
+ remL = rem.length;
698
+ cmp = compare(prod, rem, prodL, remL);
699
+ if (cmp == 1) {
700
+ k--;
701
+ subtract2(prod, yL < prodL ? yz : yd, prodL);
702
+ }
703
+ } else {
704
+ if (k == 0) cmp = k = 1;
705
+ prod = yd.slice();
706
+ }
707
+ prodL = prod.length;
708
+ if (prodL < remL) prod.unshift(0);
709
+ subtract2(rem, prod, remL);
710
+ if (cmp == -1) {
711
+ remL = rem.length;
712
+ cmp = compare(yd, rem, yL, remL);
713
+ if (cmp < 1) {
714
+ k++;
715
+ subtract2(rem, yL < remL ? yz : yd, remL);
716
+ }
717
+ }
718
+ remL = rem.length;
719
+ } else if (cmp === 0) {
720
+ k++;
721
+ rem = [0];
722
+ }
723
+ qd[i++] = k;
724
+ if (cmp && rem[0]) {
725
+ rem[remL++] = xd[xi] || 0;
726
+ } else {
727
+ rem = [xd[xi]];
728
+ remL = 1;
729
+ }
730
+ } while ((xi++ < xL || rem[0] !== void 0) && sd--);
731
+ }
732
+ if (!qd[0]) qd.shift();
733
+ q.e = e;
734
+ return round2(q, dp ? pr + getBase10Exponent(q) + 1 : pr);
735
+ };
736
+ })();
737
+ function exp(x2, sd) {
738
+ var denominator, guard, pow2, sum, t, wpr, i = 0, k = 0, Ctor = x2.constructor, pr = Ctor.precision;
739
+ if (getBase10Exponent(x2) > 16) throw Error(exponentOutOfRange + getBase10Exponent(x2));
740
+ if (!x2.s) return new Ctor(ONE);
741
+ {
742
+ external = false;
743
+ wpr = pr;
744
+ }
745
+ t = new Ctor(0.03125);
746
+ while (x2.abs().gte(0.1)) {
747
+ x2 = x2.times(t);
748
+ k += 5;
749
+ }
750
+ guard = Math.log(mathpow(2, k)) / Math.LN10 * 2 + 5 | 0;
751
+ wpr += guard;
752
+ denominator = pow2 = sum = new Ctor(ONE);
753
+ Ctor.precision = wpr;
754
+ for (; ; ) {
755
+ pow2 = round2(pow2.times(x2), wpr);
756
+ denominator = denominator.times(++i);
757
+ t = sum.plus(divide(pow2, denominator, wpr));
758
+ if (digitsToString(t.d).slice(0, wpr) === digitsToString(sum.d).slice(0, wpr)) {
759
+ while (k--) sum = round2(sum.times(sum), wpr);
760
+ Ctor.precision = pr;
761
+ return sd == null ? (external = true, round2(sum, pr)) : sum;
762
+ }
763
+ sum = t;
764
+ }
765
+ }
766
+ function getBase10Exponent(x2) {
767
+ var e = x2.e * LOG_BASE, w = x2.d[0];
768
+ for (; w >= 10; w /= 10) e++;
769
+ return e;
770
+ }
771
+ function getLn10(Ctor, sd, pr) {
772
+ if (sd > Ctor.LN10.sd()) {
773
+ external = true;
774
+ if (pr) Ctor.precision = pr;
775
+ throw Error(decimalError + "LN10 precision limit exceeded");
776
+ }
777
+ return round2(new Ctor(Ctor.LN10), sd);
778
+ }
779
+ function getZeroString(k) {
780
+ var zs = "";
781
+ for (; k--; ) zs += "0";
782
+ return zs;
783
+ }
784
+ function ln(y2, sd) {
785
+ var c, c0, denominator, e, numerator, sum, t, wpr, x2, n = 1, guard = 10, x3 = y2, xd = x3.d, Ctor = x3.constructor, pr = Ctor.precision;
786
+ if (x3.s < 1) throw Error(decimalError + (x3.s ? "NaN" : "-Infinity"));
787
+ if (x3.eq(ONE)) return new Ctor(0);
788
+ if (sd == null) {
789
+ external = false;
790
+ wpr = pr;
791
+ } else {
792
+ wpr = sd;
793
+ }
794
+ if (x3.eq(10)) {
795
+ if (sd == null) external = true;
796
+ return getLn10(Ctor, wpr);
797
+ }
798
+ wpr += guard;
799
+ Ctor.precision = wpr;
800
+ c = digitsToString(xd);
801
+ c0 = c.charAt(0);
802
+ e = getBase10Exponent(x3);
803
+ if (Math.abs(e) < 15e14) {
804
+ while (c0 < 7 && c0 != 1 || c0 == 1 && c.charAt(1) > 3) {
805
+ x3 = x3.times(y2);
806
+ c = digitsToString(x3.d);
807
+ c0 = c.charAt(0);
808
+ n++;
809
+ }
810
+ e = getBase10Exponent(x3);
811
+ if (c0 > 1) {
812
+ x3 = new Ctor("0." + c);
813
+ e++;
814
+ } else {
815
+ x3 = new Ctor(c0 + "." + c.slice(1));
816
+ }
817
+ } else {
818
+ t = getLn10(Ctor, wpr + 2, pr).times(e + "");
819
+ x3 = ln(new Ctor(c0 + "." + c.slice(1)), wpr - guard).plus(t);
820
+ Ctor.precision = pr;
821
+ return sd == null ? (external = true, round2(x3, pr)) : x3;
822
+ }
823
+ sum = numerator = x3 = divide(x3.minus(ONE), x3.plus(ONE), wpr);
824
+ x2 = round2(x3.times(x3), wpr);
825
+ denominator = 3;
826
+ for (; ; ) {
827
+ numerator = round2(numerator.times(x2), wpr);
828
+ t = sum.plus(divide(numerator, new Ctor(denominator), wpr));
829
+ if (digitsToString(t.d).slice(0, wpr) === digitsToString(sum.d).slice(0, wpr)) {
830
+ sum = sum.times(2);
831
+ if (e !== 0) sum = sum.plus(getLn10(Ctor, wpr + 2, pr).times(e + ""));
832
+ sum = divide(sum, new Ctor(n), wpr);
833
+ Ctor.precision = pr;
834
+ return sd == null ? (external = true, round2(sum, pr)) : sum;
835
+ }
836
+ sum = t;
837
+ denominator += 2;
838
+ }
839
+ }
840
+ function parseDecimal(x2, str) {
841
+ var e, i, len;
842
+ if ((e = str.indexOf(".")) > -1) str = str.replace(".", "");
843
+ if ((i = str.search(/e/i)) > 0) {
844
+ if (e < 0) e = i;
845
+ e += +str.slice(i + 1);
846
+ str = str.substring(0, i);
847
+ } else if (e < 0) {
848
+ e = str.length;
849
+ }
850
+ for (i = 0; str.charCodeAt(i) === 48; ) ++i;
851
+ for (len = str.length; str.charCodeAt(len - 1) === 48; ) --len;
852
+ str = str.slice(i, len);
853
+ if (str) {
854
+ len -= i;
855
+ e = e - i - 1;
856
+ x2.e = mathfloor(e / LOG_BASE);
857
+ x2.d = [];
858
+ i = (e + 1) % LOG_BASE;
859
+ if (e < 0) i += LOG_BASE;
860
+ if (i < len) {
861
+ if (i) x2.d.push(+str.slice(0, i));
862
+ for (len -= LOG_BASE; i < len; ) x2.d.push(+str.slice(i, i += LOG_BASE));
863
+ str = str.slice(i);
864
+ i = LOG_BASE - str.length;
865
+ } else {
866
+ i -= len;
867
+ }
868
+ for (; i--; ) str += "0";
869
+ x2.d.push(+str);
870
+ if (external && (x2.e > MAX_E || x2.e < -MAX_E)) throw Error(exponentOutOfRange + e);
871
+ } else {
872
+ x2.s = 0;
873
+ x2.e = 0;
874
+ x2.d = [0];
875
+ }
876
+ return x2;
877
+ }
878
+ function round2(x2, sd, rm) {
879
+ var i, j, k, n, rd, doRound, w, xdi, xd = x2.d;
880
+ for (n = 1, k = xd[0]; k >= 10; k /= 10) n++;
881
+ i = sd - n;
882
+ if (i < 0) {
883
+ i += LOG_BASE;
884
+ j = sd;
885
+ w = xd[xdi = 0];
886
+ } else {
887
+ xdi = Math.ceil((i + 1) / LOG_BASE);
888
+ k = xd.length;
889
+ if (xdi >= k) return x2;
890
+ w = k = xd[xdi];
891
+ for (n = 1; k >= 10; k /= 10) n++;
892
+ i %= LOG_BASE;
893
+ j = i - LOG_BASE + n;
894
+ }
895
+ if (rm !== void 0) {
896
+ k = mathpow(10, n - j - 1);
897
+ rd = w / k % 10 | 0;
898
+ doRound = sd < 0 || xd[xdi + 1] !== void 0 || w % k;
899
+ doRound = rm < 4 ? (rd || doRound) && (rm == 0 || rm == (x2.s < 0 ? 3 : 2)) : rd > 5 || rd == 5 && (rm == 4 || doRound || rm == 6 && // Check whether the digit to the left of the rounding digit is odd.
900
+ (i > 0 ? j > 0 ? w / mathpow(10, n - j) : 0 : xd[xdi - 1]) % 10 & 1 || rm == (x2.s < 0 ? 8 : 7));
901
+ }
902
+ if (sd < 1 || !xd[0]) {
903
+ if (doRound) {
904
+ k = getBase10Exponent(x2);
905
+ xd.length = 1;
906
+ sd = sd - k - 1;
907
+ xd[0] = mathpow(10, (LOG_BASE - sd % LOG_BASE) % LOG_BASE);
908
+ x2.e = mathfloor(-sd / LOG_BASE) || 0;
909
+ } else {
910
+ xd.length = 1;
911
+ xd[0] = x2.e = x2.s = 0;
912
+ }
913
+ return x2;
914
+ }
915
+ if (i == 0) {
916
+ xd.length = xdi;
917
+ k = 1;
918
+ xdi--;
919
+ } else {
920
+ xd.length = xdi + 1;
921
+ k = mathpow(10, LOG_BASE - i);
922
+ xd[xdi] = j > 0 ? (w / mathpow(10, n - j) % mathpow(10, j) | 0) * k : 0;
923
+ }
924
+ if (doRound) {
925
+ for (; ; ) {
926
+ if (xdi == 0) {
927
+ if ((xd[0] += k) == BASE) {
928
+ xd[0] = 1;
929
+ ++x2.e;
930
+ }
931
+ break;
932
+ } else {
933
+ xd[xdi] += k;
934
+ if (xd[xdi] != BASE) break;
935
+ xd[xdi--] = 0;
936
+ k = 1;
937
+ }
938
+ }
939
+ }
940
+ for (i = xd.length; xd[--i] === 0; ) xd.pop();
941
+ if (external && (x2.e > MAX_E || x2.e < -MAX_E)) {
942
+ throw Error(exponentOutOfRange + getBase10Exponent(x2));
943
+ }
944
+ return x2;
945
+ }
946
+ function subtract(x2, y2) {
947
+ var d, e, i, j, k, len, xd, xe, xLTy, yd, Ctor = x2.constructor, pr = Ctor.precision;
948
+ if (!x2.s || !y2.s) {
949
+ if (y2.s) y2.s = -y2.s;
950
+ else y2 = new Ctor(x2);
951
+ return external ? round2(y2, pr) : y2;
952
+ }
953
+ xd = x2.d;
954
+ yd = y2.d;
955
+ e = y2.e;
956
+ xe = x2.e;
957
+ xd = xd.slice();
958
+ k = xe - e;
959
+ if (k) {
960
+ xLTy = k < 0;
961
+ if (xLTy) {
962
+ d = xd;
963
+ k = -k;
964
+ len = yd.length;
965
+ } else {
966
+ d = yd;
967
+ e = xe;
968
+ len = xd.length;
969
+ }
970
+ i = Math.max(Math.ceil(pr / LOG_BASE), len) + 2;
971
+ if (k > i) {
972
+ k = i;
973
+ d.length = 1;
974
+ }
975
+ d.reverse();
976
+ for (i = k; i--; ) d.push(0);
977
+ d.reverse();
978
+ } else {
979
+ i = xd.length;
980
+ len = yd.length;
981
+ xLTy = i < len;
982
+ if (xLTy) len = i;
983
+ for (i = 0; i < len; i++) {
984
+ if (xd[i] != yd[i]) {
985
+ xLTy = xd[i] < yd[i];
986
+ break;
987
+ }
988
+ }
989
+ k = 0;
990
+ }
991
+ if (xLTy) {
992
+ d = xd;
993
+ xd = yd;
994
+ yd = d;
995
+ y2.s = -y2.s;
996
+ }
997
+ len = xd.length;
998
+ for (i = yd.length - len; i > 0; --i) xd[len++] = 0;
999
+ for (i = yd.length; i > k; ) {
1000
+ if (xd[--i] < yd[i]) {
1001
+ for (j = i; j && xd[--j] === 0; ) xd[j] = BASE - 1;
1002
+ --xd[j];
1003
+ xd[i] += BASE;
1004
+ }
1005
+ xd[i] -= yd[i];
1006
+ }
1007
+ for (; xd[--len] === 0; ) xd.pop();
1008
+ for (; xd[0] === 0; xd.shift()) --e;
1009
+ if (!xd[0]) return new Ctor(0);
1010
+ y2.d = xd;
1011
+ y2.e = e;
1012
+ return external ? round2(y2, pr) : y2;
1013
+ }
1014
+ function toString2(x2, isExp, sd) {
1015
+ var k, e = getBase10Exponent(x2), str = digitsToString(x2.d), len = str.length;
1016
+ if (isExp) {
1017
+ if (sd && (k = sd - len) > 0) {
1018
+ str = str.charAt(0) + "." + str.slice(1) + getZeroString(k);
1019
+ } else if (len > 1) {
1020
+ str = str.charAt(0) + "." + str.slice(1);
1021
+ }
1022
+ str = str + (e < 0 ? "e" : "e+") + e;
1023
+ } else if (e < 0) {
1024
+ str = "0." + getZeroString(-e - 1) + str;
1025
+ if (sd && (k = sd - len) > 0) str += getZeroString(k);
1026
+ } else if (e >= len) {
1027
+ str += getZeroString(e + 1 - len);
1028
+ if (sd && (k = sd - e - 1) > 0) str = str + "." + getZeroString(k);
1029
+ } else {
1030
+ if ((k = e + 1) < len) str = str.slice(0, k) + "." + str.slice(k);
1031
+ if (sd && (k = sd - len) > 0) {
1032
+ if (e + 1 === len) str += ".";
1033
+ str += getZeroString(k);
1034
+ }
1035
+ }
1036
+ return x2.s < 0 ? "-" + str : str;
1037
+ }
1038
+ function truncate(arr, len) {
1039
+ if (arr.length > len) {
1040
+ arr.length = len;
1041
+ return true;
1042
+ }
1043
+ }
1044
+ function clone(obj) {
1045
+ var i, p, ps;
1046
+ function Decimal4(value) {
1047
+ var x2 = this;
1048
+ if (!(x2 instanceof Decimal4)) return new Decimal4(value);
1049
+ x2.constructor = Decimal4;
1050
+ if (value instanceof Decimal4) {
1051
+ x2.s = value.s;
1052
+ x2.e = value.e;
1053
+ x2.d = (value = value.d) ? value.slice() : value;
1054
+ return;
1055
+ }
1056
+ if (typeof value === "number") {
1057
+ if (value * 0 !== 0) {
1058
+ throw Error(invalidArgument + value);
1059
+ }
1060
+ if (value > 0) {
1061
+ x2.s = 1;
1062
+ } else if (value < 0) {
1063
+ value = -value;
1064
+ x2.s = -1;
1065
+ } else {
1066
+ x2.s = 0;
1067
+ x2.e = 0;
1068
+ x2.d = [0];
1069
+ return;
1070
+ }
1071
+ if (value === ~~value && value < 1e7) {
1072
+ x2.e = 0;
1073
+ x2.d = [value];
1074
+ return;
1075
+ }
1076
+ return parseDecimal(x2, value.toString());
1077
+ } else if (typeof value !== "string") {
1078
+ throw Error(invalidArgument + value);
1079
+ }
1080
+ if (value.charCodeAt(0) === 45) {
1081
+ value = value.slice(1);
1082
+ x2.s = -1;
1083
+ } else {
1084
+ x2.s = 1;
1085
+ }
1086
+ if (isDecimal.test(value)) parseDecimal(x2, value);
1087
+ else throw Error(invalidArgument + value);
1088
+ }
1089
+ Decimal4.prototype = P;
1090
+ Decimal4.ROUND_UP = 0;
1091
+ Decimal4.ROUND_DOWN = 1;
1092
+ Decimal4.ROUND_CEIL = 2;
1093
+ Decimal4.ROUND_FLOOR = 3;
1094
+ Decimal4.ROUND_HALF_UP = 4;
1095
+ Decimal4.ROUND_HALF_DOWN = 5;
1096
+ Decimal4.ROUND_HALF_EVEN = 6;
1097
+ Decimal4.ROUND_HALF_CEIL = 7;
1098
+ Decimal4.ROUND_HALF_FLOOR = 8;
1099
+ Decimal4.clone = clone;
1100
+ Decimal4.config = Decimal4.set = config;
1101
+ if (obj === void 0) obj = {};
1102
+ if (obj) {
1103
+ ps = ["precision", "rounding", "toExpNeg", "toExpPos", "LN10"];
1104
+ for (i = 0; i < ps.length; ) if (!obj.hasOwnProperty(p = ps[i++])) obj[p] = this[p];
1105
+ }
1106
+ Decimal4.config(obj);
1107
+ return Decimal4;
1108
+ }
1109
+ function config(obj) {
1110
+ if (!obj || typeof obj !== "object") {
1111
+ throw Error(decimalError + "Object expected");
1112
+ }
1113
+ var i, p, v, ps = [
1114
+ "precision",
1115
+ 1,
1116
+ MAX_DIGITS,
1117
+ "rounding",
1118
+ 0,
1119
+ 8,
1120
+ "toExpNeg",
1121
+ -1 / 0,
1122
+ 0,
1123
+ "toExpPos",
1124
+ 0,
1125
+ 1 / 0
1126
+ ];
1127
+ for (i = 0; i < ps.length; i += 3) {
1128
+ if ((v = obj[p = ps[i]]) !== void 0) {
1129
+ if (mathfloor(v) === v && v >= ps[i + 1] && v <= ps[i + 2]) this[p] = v;
1130
+ else throw Error(invalidArgument + p + ": " + v);
1131
+ }
1132
+ }
1133
+ if ((v = obj[p = "LN10"]) !== void 0) {
1134
+ if (v == Math.LN10) this[p] = new this(v);
1135
+ else throw Error(invalidArgument + p + ": " + v);
1136
+ }
1137
+ return this;
1138
+ }
1139
+ Decimal3 = clone(Decimal3);
1140
+ Decimal3["default"] = Decimal3.Decimal = Decimal3;
1141
+ ONE = new Decimal3(1);
1142
+ if (typeof define == "function" && define.amd) {
1143
+ define(function() {
1144
+ return Decimal3;
1145
+ });
1146
+ } else if (typeof module != "undefined" && module.exports) {
1147
+ module.exports = Decimal3;
1148
+ } else {
1149
+ if (!globalScope) {
1150
+ globalScope = typeof self != "undefined" && self && self.self == self ? self : Function("return this")();
1151
+ }
1152
+ globalScope.Decimal = Decimal3;
1153
+ }
1154
+ })(exports);
1155
+ }
1156
+ });
1157
+
292
1158
  // ../node_modules/eventemitter3/index.js
293
1159
  var require_eventemitter3 = __commonJS({
294
1160
  "../node_modules/eventemitter3/index.js"(exports, module) {
@@ -529,6 +1395,15 @@ var Button = ({
529
1395
  var Button_default = Button;
530
1396
 
531
1397
  // src/modules/common/utils/utils.ts
1398
+ var getSortKeys = (sort) => {
1399
+ return sort && sort?.split(",").reduce((acc, curr) => {
1400
+ const [key = null, value = null] = (curr || "")?.split("_") || [];
1401
+ return {
1402
+ ...acc,
1403
+ [key]: value
1404
+ };
1405
+ }, null) || {};
1406
+ };
532
1407
  var normalizeObjectToString = (object) => {
533
1408
  return Object.keys(object)?.map((key) => [key, object[key]].join("="))?.join("&");
534
1409
  };
@@ -3790,14 +4665,38 @@ function fromZonedTime(date2, timeZone, options) {
3790
4665
  const offsetMilliseconds = tzParseTimezone(timeZone, new Date(utc));
3791
4666
  return new Date(utc + offsetMilliseconds);
3792
4667
  }
3793
-
3794
- // src/modules/common/utils/useFormatDateTime.ts
4668
+ var resolveDateTimeLocale = (uiLocale, countryCode, selectedLocale) => {
4669
+ if (selectedLocale) {
4670
+ try {
4671
+ return new Intl.Locale(selectedLocale).toString();
4672
+ } catch {
4673
+ }
4674
+ }
4675
+ const locale3 = new Intl.Locale(uiLocale || "en");
4676
+ if (locale3.region || !countryCode) return locale3.toString();
4677
+ try {
4678
+ return new Intl.Locale(locale3, {
4679
+ region: countryCode.toUpperCase()
4680
+ }).toString();
4681
+ } catch {
4682
+ return locale3.toString();
4683
+ }
4684
+ };
3795
4685
  var useFormatDateTime = () => {
4686
+ const { locale: uiLocale } = useIntl();
4687
+ const { shopInfo } = useShopInfo_default();
4688
+ const appContext = useContext(AppContext_default);
4689
+ const locale3 = resolveDateTimeLocale(
4690
+ uiLocale,
4691
+ shopInfo?.country?.isoCode,
4692
+ appContext?.selectedLocale
4693
+ );
3796
4694
  const formatDateTime = (date2, options = {}) => {
3797
- if (!date2 || !Date.parse(date2)) return "n/a";
3798
- return Intl.DateTimeFormat(void 0, options).format(
3799
- new Date(date2).getTime()
3800
- );
4695
+ if (typeof date2 !== "string" && typeof date2 !== "number" && !(date2 instanceof Date) || date2 === "")
4696
+ return "n/a";
4697
+ const timestamp = new Date(date2).getTime();
4698
+ if (Number.isNaN(timestamp)) return "n/a";
4699
+ return new Intl.DateTimeFormat(locale3, options).format(timestamp);
3801
4700
  };
3802
4701
  const getDateFormatPattern = () => {
3803
4702
  const getPatternForPart = (part) => {
@@ -3814,7 +4713,7 @@ var useFormatDateTime = () => {
3814
4713
  return "dd.mm.yyyy";
3815
4714
  }
3816
4715
  };
3817
- return new Intl.DateTimeFormat(void 0).formatToParts(/* @__PURE__ */ new Date()).map(getPatternForPart).join("");
4716
+ return new Intl.DateTimeFormat(locale3).formatToParts(/* @__PURE__ */ new Date()).map(getPatternForPart).join("");
3818
4717
  };
3819
4718
  const parseDate2 = (value) => {
3820
4719
  return format(
@@ -3822,7 +4721,7 @@ var useFormatDateTime = () => {
3822
4721
  "yyyy-MM-dd"
3823
4722
  );
3824
4723
  };
3825
- return { formatDateTime, getDateFormatPattern, parseDate: parseDate2 };
4724
+ return { formatDateTime, getDateFormatPattern, parseDate: parseDate2, locale: locale3 };
3826
4725
  };
3827
4726
  var useFormatDateTime_default = useFormatDateTime;
3828
4727
  var DateRangeFilterInput = () => {
@@ -4165,12 +5064,12 @@ var createClassPartObject = (nextPart = /* @__PURE__ */ new Map(), validators =
4165
5064
  var CLASS_PART_SEPARATOR = "-";
4166
5065
  var EMPTY_CONFLICTS = [];
4167
5066
  var ARBITRARY_PROPERTY_PREFIX = "arbitrary..";
4168
- var createClassGroupUtils = (config2) => {
4169
- const classMap = createClassMap(config2);
5067
+ var createClassGroupUtils = (config) => {
5068
+ const classMap = createClassMap(config);
4170
5069
  const {
4171
5070
  conflictingClassGroups,
4172
5071
  conflictingClassGroupModifiers
4173
- } = config2;
5072
+ } = config;
4174
5073
  const getClassGroupId = (className) => {
4175
5074
  if (className.startsWith("[") && className.endsWith("]")) {
4176
5075
  return getGroupIdForArbitraryProperty(className);
@@ -4229,11 +5128,11 @@ var getGroupIdForArbitraryProperty = (className) => className.slice(1, -1).index
4229
5128
  const property2 = content.slice(0, colonIndex);
4230
5129
  return property2 ? ARBITRARY_PROPERTY_PREFIX + property2 : void 0;
4231
5130
  })();
4232
- var createClassMap = (config2) => {
5131
+ var createClassMap = (config) => {
4233
5132
  const {
4234
5133
  theme,
4235
5134
  classGroups
4236
- } = config2;
5135
+ } = config;
4237
5136
  return processClassGroups(classGroups, theme);
4238
5137
  };
4239
5138
  var processClassGroups = (classGroups, theme) => {
@@ -4350,11 +5249,11 @@ var createResultObject = (modifiers, hasImportantModifier, baseClassName, maybeP
4350
5249
  maybePostfixModifierPosition,
4351
5250
  isExternal
4352
5251
  });
4353
- var createParseClassName = (config2) => {
5252
+ var createParseClassName = (config) => {
4354
5253
  const {
4355
5254
  prefix,
4356
5255
  experimentalParseClassName
4357
- } = config2;
5256
+ } = config;
4358
5257
  let parseClassName = (className) => {
4359
5258
  const modifiers = [];
4360
5259
  let bracketDepth = 0;
@@ -4413,9 +5312,9 @@ var createParseClassName = (config2) => {
4413
5312
  }
4414
5313
  return parseClassName;
4415
5314
  };
4416
- var createSortModifiers = (config2) => {
5315
+ var createSortModifiers = (config) => {
4417
5316
  const modifierWeights = /* @__PURE__ */ new Map();
4418
- config2.orderSensitiveModifiers.forEach((mod, index) => {
5317
+ config.orderSensitiveModifiers.forEach((mod, index) => {
4419
5318
  modifierWeights.set(mod, 1e6 + index);
4420
5319
  });
4421
5320
  return (modifiers) => {
@@ -4443,16 +5342,16 @@ var createSortModifiers = (config2) => {
4443
5342
  return result;
4444
5343
  };
4445
5344
  };
4446
- var createConfigUtils = (config2) => ({
4447
- cache: createLruCache(config2.cacheSize),
4448
- parseClassName: createParseClassName(config2),
4449
- sortModifiers: createSortModifiers(config2),
4450
- postfixLookupClassGroupIds: createPostfixLookupClassGroupIds(config2),
4451
- ...createClassGroupUtils(config2)
5345
+ var createConfigUtils = (config) => ({
5346
+ cache: createLruCache(config.cacheSize),
5347
+ parseClassName: createParseClassName(config),
5348
+ sortModifiers: createSortModifiers(config),
5349
+ postfixLookupClassGroupIds: createPostfixLookupClassGroupIds(config),
5350
+ ...createClassGroupUtils(config)
4452
5351
  });
4453
- var createPostfixLookupClassGroupIds = (config2) => {
5352
+ var createPostfixLookupClassGroupIds = (config) => {
4454
5353
  const lookup = /* @__PURE__ */ Object.create(null);
4455
- const classGroupIds = config2.postfixLookupClassGroups;
5354
+ const classGroupIds = config.postfixLookupClassGroups;
4456
5355
  if (classGroupIds) {
4457
5356
  for (let i = 0; i < classGroupIds.length; i++) {
4458
5357
  lookup[classGroupIds[i]] = true;
@@ -4563,8 +5462,8 @@ var createTailwindMerge = (createConfigFirst, ...createConfigRest) => {
4563
5462
  let cacheSet;
4564
5463
  let functionToCall;
4565
5464
  const initTailwindMerge = (classList) => {
4566
- const config2 = createConfigRest.reduce((previousConfig, createConfigCurrent) => createConfigCurrent(previousConfig), createConfigFirst());
4567
- configUtils = createConfigUtils(config2);
5465
+ const config = createConfigRest.reduce((previousConfig, createConfigCurrent) => createConfigCurrent(previousConfig), createConfigFirst());
5466
+ configUtils = createConfigUtils(config);
4568
5467
  cacheGet = configUtils.cache.get;
4569
5468
  cacheSet = configUtils.cache.set;
4570
5469
  functionToCall = tailwindMerge;
@@ -4586,6 +5485,7 @@ var fallbackThemeArr = [];
4586
5485
  var fromTheme = (key) => {
4587
5486
  const themeGetter = (theme) => theme[key] || fallbackThemeArr;
4588
5487
  themeGetter.isThemeGetter = true;
5488
+ themeGetter.themeKey = key;
4589
5489
  return themeGetter;
4590
5490
  };
4591
5491
  var arbitraryValueRegex = /^\[(?:(\w[\w-]*):)?(.+)\]$/i;
@@ -4593,7 +5493,7 @@ var arbitraryVariableRegex = /^\((?:(\w[\w-]*):)?(.+)\)$/i;
4593
5493
  var fractionRegex = /^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/;
4594
5494
  var tshirtUnitRegex = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/;
4595
5495
  var lengthUnitRegex = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/;
4596
- var colorFunctionRegex = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/;
5496
+ var colorFunctionRegex = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix|color|light-dark)\(.+\)$/;
4597
5497
  var shadowRegex = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/;
4598
5498
  var imageRegex = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/;
4599
5499
  var isFraction = (value) => fractionRegex.test(value);
@@ -4713,7 +5613,7 @@ var getDefaultConfig = () => {
4713
5613
  const scaleAlignSecondaryAxis = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"];
4714
5614
  const scaleMargin = () => ["auto", ...scaleUnambiguousSpacing()];
4715
5615
  const scaleSizing = () => [isFraction, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...scaleUnambiguousSpacing()];
4716
- const scaleSizingInline = () => [isFraction, "screen", "full", "dvw", "lvw", "svw", "min", "max", "fit", ...scaleUnambiguousSpacing()];
5616
+ const scaleSizingInline = () => [themeContainer, isFraction, "screen", "full", "dvw", "lvw", "svw", "min", "max", "fit", ...scaleUnambiguousSpacing()];
4717
5617
  const scaleSizingBlock = () => [isFraction, "screen", "full", "lh", "dvh", "lvh", "svh", "min", "max", "fit", ...scaleUnambiguousSpacing()];
4718
5618
  const scaleColor = () => [themeColor, isArbitraryVariable, isArbitraryValue];
4719
5619
  const scaleBgPosition = () => [...scalePosition(), isArbitraryVariablePosition, isArbitraryPosition, {
@@ -4808,7 +5708,7 @@ var getDefaultConfig = () => {
4808
5708
  * @see https://tailwindcss.com/docs/columns
4809
5709
  */
4810
5710
  columns: [{
4811
- columns: [isNumber, isArbitraryValue, isArbitraryVariable, themeContainer]
5711
+ columns: [isNumber, "auto", isArbitraryValue, isArbitraryVariable, themeContainer]
4812
5712
  }],
4813
5713
  /**
4814
5714
  * Break After
@@ -5444,42 +6344,42 @@ var getDefaultConfig = () => {
5444
6344
  }],
5445
6345
  /**
5446
6346
  * Inline Size
5447
- * @see https://tailwindcss.com/docs/width
6347
+ * @see https://tailwindcss.com/docs/inline-size
5448
6348
  */
5449
6349
  "inline-size": [{
5450
6350
  inline: ["auto", ...scaleSizingInline()]
5451
6351
  }],
5452
6352
  /**
5453
6353
  * Min-Inline Size
5454
- * @see https://tailwindcss.com/docs/min-width
6354
+ * @see https://tailwindcss.com/docs/min-inline-size
5455
6355
  */
5456
6356
  "min-inline-size": [{
5457
6357
  "min-inline": ["auto", ...scaleSizingInline()]
5458
6358
  }],
5459
6359
  /**
5460
6360
  * Max-Inline Size
5461
- * @see https://tailwindcss.com/docs/max-width
6361
+ * @see https://tailwindcss.com/docs/max-inline-size
5462
6362
  */
5463
6363
  "max-inline-size": [{
5464
6364
  "max-inline": ["none", ...scaleSizingInline()]
5465
6365
  }],
5466
6366
  /**
5467
6367
  * Block Size
5468
- * @see https://tailwindcss.com/docs/height
6368
+ * @see https://tailwindcss.com/docs/block-size
5469
6369
  */
5470
6370
  "block-size": [{
5471
6371
  block: ["auto", ...scaleSizingBlock()]
5472
6372
  }],
5473
6373
  /**
5474
6374
  * Min-Block Size
5475
- * @see https://tailwindcss.com/docs/min-height
6375
+ * @see https://tailwindcss.com/docs/min-block-size
5476
6376
  */
5477
6377
  "min-block-size": [{
5478
6378
  "min-block": ["auto", ...scaleSizingBlock()]
5479
6379
  }],
5480
6380
  /**
5481
6381
  * Max-Block Size
5482
- * @see https://tailwindcss.com/docs/max-height
6382
+ * @see https://tailwindcss.com/docs/max-block-size
5483
6383
  */
5484
6384
  "max-block-size": [{
5485
6385
  "max-block": ["none", ...scaleSizingBlock()]
@@ -5541,7 +6441,7 @@ var getDefaultConfig = () => {
5541
6441
  * @see https://tailwindcss.com/docs/max-height
5542
6442
  */
5543
6443
  "max-h": [{
5544
- "max-h": ["screen", "lh", ...scaleSizing()]
6444
+ "max-h": ["screen", "lh", "none", ...scaleSizing()]
5545
6445
  }],
5546
6446
  // ------------------
5547
6447
  // --- Typography ---
@@ -5641,6 +6541,7 @@ var getDefaultConfig = () => {
5641
6541
  */
5642
6542
  leading: [{
5643
6543
  leading: [
6544
+ "none",
5644
6545
  /** Deprecated since Tailwind CSS v4.0.0. @see https://github.com/tailwindlabs/tailwindcss.com/issues/2027#issuecomment-2620152757 */
5645
6546
  themeLeading,
5646
6547
  ...scaleUnambiguousSpacing()
@@ -5850,7 +6751,7 @@ var getDefaultConfig = () => {
5850
6751
  to: ["t", "tr", "r", "br", "b", "bl", "l", "tl"]
5851
6752
  }, isInteger, isArbitraryVariable, isArbitraryValue],
5852
6753
  radial: ["", isArbitraryVariable, isArbitraryValue],
5853
- conic: [isInteger, isArbitraryVariable, isArbitraryValue]
6754
+ conic: ["", isInteger, isArbitraryVariable, isArbitraryValue]
5854
6755
  }, isArbitraryVariableImage, isArbitraryImage]
5855
6756
  }],
5856
6757
  /**
@@ -6248,6 +7149,8 @@ var getDefaultConfig = () => {
6248
7149
  shadow: [
6249
7150
  // Deprecated since Tailwind CSS v4.0.0
6250
7151
  "",
7152
+ // Deprecated since Tailwind CSS v4.0.0
7153
+ "inner",
6251
7154
  "none",
6252
7155
  themeShadow,
6253
7156
  isArbitraryVariableShadow,
@@ -7341,16 +8244,16 @@ var getDefaultConfig = () => {
7341
8244
  overflow: ["overflow-x", "overflow-y"],
7342
8245
  overscroll: ["overscroll-x", "overscroll-y"],
7343
8246
  inset: ["inset-x", "inset-y", "inset-bs", "inset-be", "start", "end", "top", "right", "bottom", "left"],
7344
- "inset-x": ["right", "left"],
7345
- "inset-y": ["top", "bottom"],
8247
+ "inset-x": ["start", "end", "right", "left"],
8248
+ "inset-y": ["inset-bs", "inset-be", "top", "bottom"],
7346
8249
  flex: ["basis", "grow", "shrink"],
7347
8250
  gap: ["gap-x", "gap-y"],
7348
8251
  p: ["px", "py", "ps", "pe", "pbs", "pbe", "pt", "pr", "pb", "pl"],
7349
- px: ["pr", "pl"],
7350
- py: ["pt", "pb"],
8252
+ px: ["ps", "pe", "pr", "pl"],
8253
+ py: ["pbs", "pbe", "pt", "pb"],
7351
8254
  m: ["mx", "my", "ms", "me", "mbs", "mbe", "mt", "mr", "mb", "ml"],
7352
- mx: ["mr", "ml"],
7353
- my: ["mt", "mb"],
8255
+ mx: ["ms", "me", "mr", "ml"],
8256
+ my: ["mbs", "mbe", "mt", "mb"],
7354
8257
  size: ["w", "h"],
7355
8258
  "font-size": ["leading"],
7356
8259
  "fvn-normal": ["fvn-ordinal", "fvn-slashed-zero", "fvn-figure", "fvn-spacing", "fvn-fraction"],
@@ -7369,19 +8272,19 @@ var getDefaultConfig = () => {
7369
8272
  "rounded-l": ["rounded-tl", "rounded-bl"],
7370
8273
  "border-spacing": ["border-spacing-x", "border-spacing-y"],
7371
8274
  "border-w": ["border-w-x", "border-w-y", "border-w-s", "border-w-e", "border-w-bs", "border-w-be", "border-w-t", "border-w-r", "border-w-b", "border-w-l"],
7372
- "border-w-x": ["border-w-r", "border-w-l"],
7373
- "border-w-y": ["border-w-t", "border-w-b"],
8275
+ "border-w-x": ["border-w-s", "border-w-e", "border-w-r", "border-w-l"],
8276
+ "border-w-y": ["border-w-bs", "border-w-be", "border-w-t", "border-w-b"],
7374
8277
  "border-color": ["border-color-x", "border-color-y", "border-color-s", "border-color-e", "border-color-bs", "border-color-be", "border-color-t", "border-color-r", "border-color-b", "border-color-l"],
7375
- "border-color-x": ["border-color-r", "border-color-l"],
7376
- "border-color-y": ["border-color-t", "border-color-b"],
8278
+ "border-color-x": ["border-color-s", "border-color-e", "border-color-r", "border-color-l"],
8279
+ "border-color-y": ["border-color-bs", "border-color-be", "border-color-t", "border-color-b"],
7377
8280
  translate: ["translate-x", "translate-y", "translate-none"],
7378
8281
  "translate-none": ["translate", "translate-x", "translate-y", "translate-z"],
7379
8282
  "scroll-m": ["scroll-mx", "scroll-my", "scroll-ms", "scroll-me", "scroll-mbs", "scroll-mbe", "scroll-mt", "scroll-mr", "scroll-mb", "scroll-ml"],
7380
- "scroll-mx": ["scroll-mr", "scroll-ml"],
7381
- "scroll-my": ["scroll-mt", "scroll-mb"],
8283
+ "scroll-mx": ["scroll-ms", "scroll-me", "scroll-mr", "scroll-ml"],
8284
+ "scroll-my": ["scroll-mbs", "scroll-mbe", "scroll-mt", "scroll-mb"],
7382
8285
  "scroll-p": ["scroll-px", "scroll-py", "scroll-ps", "scroll-pe", "scroll-pbs", "scroll-pbe", "scroll-pt", "scroll-pr", "scroll-pb", "scroll-pl"],
7383
- "scroll-px": ["scroll-pr", "scroll-pl"],
7384
- "scroll-py": ["scroll-pt", "scroll-pb"],
8286
+ "scroll-px": ["scroll-ps", "scroll-pe", "scroll-pr", "scroll-pl"],
8287
+ "scroll-py": ["scroll-pbs", "scroll-pbe", "scroll-pt", "scroll-pb"],
7385
8288
  touch: ["touch-x", "touch-y", "touch-pz"],
7386
8289
  "touch-x": ["touch"],
7387
8290
  "touch-y": ["touch"],
@@ -7847,6 +8750,11 @@ function toKey(value) {
7847
8750
  return String(value);
7848
8751
  }
7849
8752
 
8753
+ // ../node_modules/es-toolkit/dist/compat/predicate/isSymbol.mjs
8754
+ function isSymbol(value) {
8755
+ return typeof value === "symbol" || value instanceof Symbol;
8756
+ }
8757
+
7850
8758
  // ../node_modules/es-toolkit/dist/compat/util/toString.mjs
7851
8759
  function toString(value) {
7852
8760
  if (value == null) return "";
@@ -7855,7 +8763,8 @@ function toString(value) {
7855
8763
  function baseToString(value) {
7856
8764
  if (typeof value === "string") return value;
7857
8765
  if (Array.isArray(value)) return value.map(baseToString).join(",");
7858
- const result = String(value);
8766
+ if (isSymbol(value)) return value.toString();
8767
+ const result = value + "";
7859
8768
  if (result === "0" && Object.is(Number(value), -0)) return "-0";
7860
8769
  return result;
7861
8770
  }
@@ -9385,9 +10294,9 @@ function has(object, path2) {
9385
10294
  if (resolvedPath.length === 0) return false;
9386
10295
  let current2 = object;
9387
10296
  for (let i = 0; i < resolvedPath.length; i++) {
9388
- const key = resolvedPath[i];
10297
+ const key = toKey(resolvedPath[i]);
9389
10298
  if (current2 == null || !Object.hasOwn(current2, key)) {
9390
- if (!((Array.isArray(current2) || isArguments(current2)) && isIndex(key) && key < current2.length)) return false;
10299
+ if (!((Array.isArray(current2) || isArguments(current2)) && isIndex(key) && Number(key) < current2.length)) return false;
9391
10300
  }
9392
10301
  current2 = current2[key];
9393
10302
  }
@@ -9720,7 +10629,7 @@ function createSelectorCreator(memoizeOrOptions, ...memoizeOptionsFromArgs) {
9720
10629
  arguments
9721
10630
  );
9722
10631
  lastResult = memoizedResultFunc.apply(null, inputSelectorResults);
9723
- if (process.env.NODE_ENV !== "production") {
10632
+ {
9724
10633
  const { devModeChecks = {} } = combinedOptions;
9725
10634
  const { identityFunctionCheck, inputStabilityCheck } = getDevModeChecksExecutionInfo(firstRun, devModeChecks);
9726
10635
  if (identityFunctionCheck.shouldRun) {
@@ -9812,11 +10721,6 @@ var compareValues = (a, b, order) => {
9812
10721
  return 0;
9813
10722
  };
9814
10723
 
9815
- // ../node_modules/es-toolkit/dist/compat/predicate/isSymbol.mjs
9816
- function isSymbol(value) {
9817
- return typeof value === "symbol" || value instanceof Symbol;
9818
- }
9819
-
9820
10724
  // ../node_modules/es-toolkit/dist/compat/_internal/isKey.mjs
9821
10725
  var regexIsDeepProp2 = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/;
9822
10726
  var regexIsPlainProp = /^\w*$/;
@@ -10003,7 +10907,7 @@ function isAction(action) {
10003
10907
  var NOTHING = /* @__PURE__ */ Symbol.for("immer-nothing");
10004
10908
  var DRAFTABLE = /* @__PURE__ */ Symbol.for("immer-draftable");
10005
10909
  var DRAFT_STATE = /* @__PURE__ */ Symbol.for("immer-state");
10006
- var errors = process.env.NODE_ENV !== "production" ? [
10910
+ var errors = [
10007
10911
  // All error codes, starting by 0:
10008
10912
  function(plugin) {
10009
10913
  return `The plugin for '${plugin}' has not been loaded into Immer. To enable the plugin, import and call \`enable${plugin}()\` when initializing your application.`;
@@ -10033,16 +10937,13 @@ var errors = process.env.NODE_ENV !== "production" ? [
10033
10937
  }
10034
10938
  // Note: if more errors are added, the errorOffset in Patches.ts should be increased
10035
10939
  // See Patches.ts for additional errors
10036
- ] : [];
10940
+ ] ;
10037
10941
  function die(error, ...args) {
10038
- if (process.env.NODE_ENV !== "production") {
10942
+ {
10039
10943
  const e = errors[error];
10040
10944
  const msg = isFunction(e) ? e.apply(null, args) : e;
10041
10945
  throw new Error(`[Immer] ${msg}`);
10042
10946
  }
10043
- throw new Error(
10044
- `[Immer] minified error nr: ${error}. Full error at: https://bit.ly/3cXEKWf`
10045
- );
10046
10947
  }
10047
10948
  var O = Object;
10048
10949
  var getPrototypeOf = O.getPrototypeOf;
@@ -10573,12 +11474,12 @@ for (let key in objectTraps) {
10573
11474
  };
10574
11475
  }
10575
11476
  arrayTraps.deleteProperty = function(state, prop) {
10576
- if (process.env.NODE_ENV !== "production" && isNaN(parseInt(prop)))
11477
+ if (isNaN(parseInt(prop)))
10577
11478
  die(13);
10578
11479
  return arrayTraps.set.call(this, state, prop, void 0);
10579
11480
  };
10580
11481
  arrayTraps.set = function(state, prop, value) {
10581
- if (process.env.NODE_ENV !== "production" && prop !== "length" && isNaN(parseInt(prop)))
11482
+ if (prop !== "length" && isNaN(parseInt(prop)))
10582
11483
  die(14);
10583
11484
  return objectTraps.set.call(this, state[0], prop, value, state[0]);
10584
11485
  };
@@ -10631,7 +11532,7 @@ function prepareCopy(state) {
10631
11532
  }
10632
11533
  }
10633
11534
  var Immer2 = class {
10634
- constructor(config2) {
11535
+ constructor(config) {
10635
11536
  this.autoFreeze_ = true;
10636
11537
  this.useStrictShallowCopy_ = false;
10637
11538
  this.useStrictIteration_ = false;
@@ -10696,12 +11597,12 @@ var Immer2 = class {
10696
11597
  });
10697
11598
  return [result, patches, inversePatches];
10698
11599
  };
10699
- if (isBoolean(config2?.autoFreeze))
10700
- this.setAutoFreeze(config2.autoFreeze);
10701
- if (isBoolean(config2?.useStrictShallowCopy))
10702
- this.setUseStrictShallowCopy(config2.useStrictShallowCopy);
10703
- if (isBoolean(config2?.useStrictIteration))
10704
- this.setUseStrictIteration(config2.useStrictIteration);
11600
+ if (isBoolean(config?.autoFreeze))
11601
+ this.setAutoFreeze(config.autoFreeze);
11602
+ if (isBoolean(config?.useStrictShallowCopy))
11603
+ this.setUseStrictShallowCopy(config.useStrictShallowCopy);
11604
+ if (isBoolean(config?.useStrictIteration))
11605
+ this.setUseStrictIteration(config.useStrictIteration);
10705
11606
  }
10706
11607
  createDraft(base) {
10707
11608
  if (!isDraftable(base))
@@ -10832,18 +11733,12 @@ function createAction(type, prepareAction) {
10832
11733
  function actionCreator(...args) {
10833
11734
  if (prepareAction) {
10834
11735
  let prepared = prepareAction(...args);
10835
- if (!prepared) {
10836
- throw new Error(process.env.NODE_ENV === "production" ? formatProdErrorMessage(0) : "prepareAction did not return an object");
10837
- }
11736
+ if (!prepared) throw new Error("prepareAction did not return an object");
10838
11737
  return {
10839
11738
  type,
10840
11739
  payload: prepared.payload,
10841
- ..."meta" in prepared && {
10842
- meta: prepared.meta
10843
- },
10844
- ..."error" in prepared && {
10845
- error: prepared.error
10846
- }
11740
+ ..."meta" in prepared && { meta: prepared.meta },
11741
+ ..."error" in prepared && { error: prepared.error }
10847
11742
  };
10848
11743
  }
10849
11744
  return {
@@ -10867,9 +11762,7 @@ function getOrInsertComputed(map2, key, compute) {
10867
11762
  var SHOULD_AUTOBATCH = "RTK_autoBatch";
10868
11763
  var prepareAutoBatched = () => (payload) => ({
10869
11764
  payload,
10870
- meta: {
10871
- [SHOULD_AUTOBATCH]: true
10872
- }
11765
+ meta: { [SHOULD_AUTOBATCH]: true }
10873
11766
  });
10874
11767
  function executeReducerBuilderCallback(builderCallback) {
10875
11768
  const actionsMap = {};
@@ -10877,29 +11770,19 @@ function executeReducerBuilderCallback(builderCallback) {
10877
11770
  let defaultCaseReducer;
10878
11771
  const builder = {
10879
11772
  addCase(typeOrActionCreator, reducer) {
10880
- if (process.env.NODE_ENV !== "production") {
10881
- if (actionMatchers.length > 0) {
10882
- throw new Error(process.env.NODE_ENV === "production" ? formatProdErrorMessage(26) : "`builder.addCase` should only be called before calling `builder.addMatcher`");
10883
- }
10884
- if (defaultCaseReducer) {
10885
- throw new Error(process.env.NODE_ENV === "production" ? formatProdErrorMessage(27) : "`builder.addCase` should only be called before calling `builder.addDefaultCase`");
10886
- }
11773
+ {
11774
+ if (actionMatchers.length > 0) throw new Error("`builder.addCase` should only be called before calling `builder.addMatcher`");
11775
+ if (defaultCaseReducer) throw new Error("`builder.addCase` should only be called before calling `builder.addDefaultCase`");
10887
11776
  }
10888
11777
  const type = typeof typeOrActionCreator === "string" ? typeOrActionCreator : typeOrActionCreator.type;
10889
- if (!type) {
10890
- throw new Error(process.env.NODE_ENV === "production" ? formatProdErrorMessage(28) : "`builder.addCase` cannot be called with an empty action type");
10891
- }
10892
- if (type in actionsMap) {
10893
- throw new Error(process.env.NODE_ENV === "production" ? formatProdErrorMessage(29) : `\`builder.addCase\` cannot be called with two reducers for the same action type '${type}'`);
10894
- }
11778
+ if (!type) throw new Error("`builder.addCase` cannot be called with an empty action type");
11779
+ if (type in actionsMap) throw new Error(`\`builder.addCase\` cannot be called with two reducers for the same action type '${type}'`);
10895
11780
  actionsMap[type] = reducer;
10896
11781
  return builder;
10897
11782
  },
10898
11783
  addAsyncThunk(asyncThunk, reducers) {
10899
- if (process.env.NODE_ENV !== "production") {
10900
- if (defaultCaseReducer) {
10901
- throw new Error(process.env.NODE_ENV === "production" ? formatProdErrorMessage(43) : "`builder.addAsyncThunk` should only be called before calling `builder.addDefaultCase`");
10902
- }
11784
+ {
11785
+ if (defaultCaseReducer) throw new Error("`builder.addAsyncThunk` should only be called before calling `builder.addDefaultCase`");
10903
11786
  }
10904
11787
  if (reducers.pending) actionsMap[asyncThunk.pending.type] = reducers.pending;
10905
11788
  if (reducers.rejected) actionsMap[asyncThunk.rejected.type] = reducers.rejected;
@@ -10911,10 +11794,8 @@ function executeReducerBuilderCallback(builderCallback) {
10911
11794
  return builder;
10912
11795
  },
10913
11796
  addMatcher(matcher, reducer) {
10914
- if (process.env.NODE_ENV !== "production") {
10915
- if (defaultCaseReducer) {
10916
- throw new Error(process.env.NODE_ENV === "production" ? formatProdErrorMessage(30) : "`builder.addMatcher` should only be called before calling `builder.addDefaultCase`");
10917
- }
11797
+ {
11798
+ if (defaultCaseReducer) throw new Error("`builder.addMatcher` should only be called before calling `builder.addDefaultCase`");
10918
11799
  }
10919
11800
  actionMatchers.push({
10920
11801
  matcher,
@@ -10923,67 +11804,53 @@ function executeReducerBuilderCallback(builderCallback) {
10923
11804
  return builder;
10924
11805
  },
10925
11806
  addDefaultCase(reducer) {
10926
- if (process.env.NODE_ENV !== "production") {
10927
- if (defaultCaseReducer) {
10928
- throw new Error(process.env.NODE_ENV === "production" ? formatProdErrorMessage(31) : "`builder.addDefaultCase` can only be called once");
10929
- }
11807
+ {
11808
+ if (defaultCaseReducer) throw new Error("`builder.addDefaultCase` can only be called once");
10930
11809
  }
10931
11810
  defaultCaseReducer = reducer;
10932
11811
  return builder;
10933
11812
  }
10934
11813
  };
10935
11814
  builderCallback(builder);
10936
- return [actionsMap, actionMatchers, defaultCaseReducer];
11815
+ return [
11816
+ actionsMap,
11817
+ actionMatchers,
11818
+ defaultCaseReducer
11819
+ ];
10937
11820
  }
10938
11821
  function isStateFunction(x2) {
10939
11822
  return typeof x2 === "function";
10940
11823
  }
10941
11824
  function createReducer(initialState3, mapOrBuilderCallback) {
10942
- if (process.env.NODE_ENV !== "production") {
10943
- if (typeof mapOrBuilderCallback === "object") {
10944
- throw new Error(process.env.NODE_ENV === "production" ? formatProdErrorMessage(8) : "The object notation for `createReducer` has been removed. Please use the 'builder callback' notation instead: https://redux-toolkit.js.org/api/createReducer");
10945
- }
11825
+ {
11826
+ if (typeof mapOrBuilderCallback === "object") throw new Error("The object notation for `createReducer` has been removed. Please use the 'builder callback' notation instead: https://redux-toolkit.js.org/api/createReducer");
10946
11827
  }
10947
11828
  let [actionsMap, finalActionMatchers, finalDefaultCaseReducer] = executeReducerBuilderCallback(mapOrBuilderCallback);
10948
11829
  let getInitialState;
10949
- if (isStateFunction(initialState3)) {
10950
- getInitialState = () => freezeDraftable(initialState3());
10951
- } else {
11830
+ if (isStateFunction(initialState3)) getInitialState = () => freezeDraftable(initialState3());
11831
+ else {
10952
11832
  const frozenInitialState = freezeDraftable(initialState3);
10953
11833
  getInitialState = () => frozenInitialState;
10954
11834
  }
10955
11835
  function reducer(state = getInitialState(), action) {
10956
- let caseReducers = [actionsMap[action.type], ...finalActionMatchers.filter(({
10957
- matcher
10958
- }) => matcher(action)).map(({
10959
- reducer: reducer2
10960
- }) => reducer2)];
10961
- if (caseReducers.filter((cr) => !!cr).length === 0) {
10962
- caseReducers = [finalDefaultCaseReducer];
10963
- }
11836
+ let caseReducers = [actionsMap[action.type], ...finalActionMatchers.filter(({ matcher }) => matcher(action)).map(({ reducer: reducer2 }) => reducer2)];
11837
+ if (caseReducers.filter((cr) => !!cr).length === 0) caseReducers = [finalDefaultCaseReducer];
10964
11838
  return caseReducers.reduce((previousState, caseReducer) => {
10965
11839
  if (caseReducer) {
10966
11840
  if (isDraft(previousState)) {
10967
- const draft = previousState;
10968
- const result = caseReducer(draft, action);
10969
- if (result === void 0) {
10970
- return previousState;
10971
- }
11841
+ const result = caseReducer(previousState, action);
11842
+ if (result === void 0) return previousState;
10972
11843
  return result;
10973
11844
  } else if (!isDraftable(previousState)) {
10974
11845
  const result = caseReducer(previousState, action);
10975
11846
  if (result === void 0) {
10976
- if (previousState === null) {
10977
- return previousState;
10978
- }
10979
- throw Error("A case reducer on a non-draftable value must not return undefined");
11847
+ if (previousState === null) return previousState;
11848
+ throw new Error("A case reducer on a non-draftable value must not return undefined");
10980
11849
  }
10981
11850
  return result;
10982
- } else {
10983
- return produce(previousState, (draft) => {
10984
- return caseReducer(draft, action);
10985
- });
10986
- }
11851
+ } else return produce(previousState, (draft) => {
11852
+ return caseReducer(draft, action);
11853
+ });
10987
11854
  }
10988
11855
  return previousState;
10989
11856
  }, state);
@@ -10995,22 +11862,13 @@ var asyncThunkSymbol = /* @__PURE__ */ Symbol.for("rtk-slice-createasyncthunk");
10995
11862
  function getType(slice2, actionKey) {
10996
11863
  return `${slice2}/${actionKey}`;
10997
11864
  }
10998
- function buildCreateSlice({
10999
- creators
11000
- } = {}) {
11865
+ function buildCreateSlice({ creators } = {}) {
11001
11866
  const cAT = creators?.asyncThunk?.[asyncThunkSymbol];
11002
11867
  return function createSlice2(options) {
11003
- const {
11004
- name,
11005
- reducerPath = name
11006
- } = options;
11007
- if (!name) {
11008
- throw new Error(process.env.NODE_ENV === "production" ? formatProdErrorMessage(11) : "`name` is a required option for createSlice");
11009
- }
11010
- if (typeof process !== "undefined" && process.env.NODE_ENV === "development") {
11011
- if (options.initialState === void 0) {
11012
- console.error("You must provide an `initialState` value that is not `undefined`. You may have misspelled `initialState`");
11013
- }
11868
+ const { name, reducerPath = name } = options;
11869
+ if (!name) throw new Error("`name` is a required option for createSlice");
11870
+ if (typeof process !== "undefined" && true) {
11871
+ if (options.initialState === void 0) console.error("You must provide an `initialState` value that is not `undefined`. You may have misspelled `initialState`");
11014
11872
  }
11015
11873
  const reducers = (typeof options.reducers === "function" ? options.reducers(buildReducerCreators()) : options.reducers) || {};
11016
11874
  const reducerNames = Object.keys(reducers);
@@ -11023,12 +11881,8 @@ function buildCreateSlice({
11023
11881
  const contextMethods = {
11024
11882
  addCase(typeOrActionCreator, reducer2) {
11025
11883
  const type = typeof typeOrActionCreator === "string" ? typeOrActionCreator : typeOrActionCreator.type;
11026
- if (!type) {
11027
- throw new Error(process.env.NODE_ENV === "production" ? formatProdErrorMessage(12) : "`context.addCase` cannot be called with an empty action type");
11028
- }
11029
- if (type in context.sliceCaseReducersByType) {
11030
- throw new Error(process.env.NODE_ENV === "production" ? formatProdErrorMessage(13) : "`context.addCase` cannot be called with two reducers for the same action type: " + type);
11031
- }
11884
+ if (!type) throw new Error("`context.addCase` cannot be called with an empty action type");
11885
+ if (type in context.sliceCaseReducersByType) throw new Error("`context.addCase` cannot be called with two reducers for the same action type: " + type);
11032
11886
  context.sliceCaseReducersByType[type] = reducer2;
11033
11887
  return contextMethods;
11034
11888
  },
@@ -11055,17 +11909,12 @@ function buildCreateSlice({
11055
11909
  type: getType(name, reducerName),
11056
11910
  createNotation: typeof options.reducers === "function"
11057
11911
  };
11058
- if (isAsyncThunkSliceReducerDefinition(reducerDefinition)) {
11059
- handleThunkCaseReducerDefinition(reducerDetails, reducerDefinition, contextMethods, cAT);
11060
- } else {
11061
- handleNormalReducerDefinition(reducerDetails, reducerDefinition, contextMethods);
11062
- }
11912
+ if (isAsyncThunkSliceReducerDefinition(reducerDefinition)) handleThunkCaseReducerDefinition(reducerDetails, reducerDefinition, contextMethods, cAT);
11913
+ else handleNormalReducerDefinition(reducerDetails, reducerDefinition, contextMethods);
11063
11914
  });
11064
11915
  function buildReducer() {
11065
- if (process.env.NODE_ENV !== "production") {
11066
- if (typeof options.extraReducers === "object") {
11067
- throw new Error(process.env.NODE_ENV === "production" ? formatProdErrorMessage(14) : "The object notation for `createSlice.extraReducers` has been removed. Please use the 'builder callback' notation instead: https://redux-toolkit.js.org/api/createSlice");
11068
- }
11916
+ {
11917
+ if (typeof options.extraReducers === "object") throw new Error("The object notation for `createSlice.extraReducers` has been removed. Please use the 'builder callback' notation instead: https://redux-toolkit.js.org/api/createSlice");
11069
11918
  }
11070
11919
  const [extraReducers = {}, actionMatchers = [], defaultCaseReducer = void 0] = typeof options.extraReducers === "function" ? executeReducerBuilderCallback(options.extraReducers) : [options.extraReducers];
11071
11920
  const finalCaseReducers = {
@@ -11073,18 +11922,10 @@ function buildCreateSlice({
11073
11922
  ...context.sliceCaseReducersByType
11074
11923
  };
11075
11924
  return createReducer(options.initialState, (builder) => {
11076
- for (let key in finalCaseReducers) {
11077
- builder.addCase(key, finalCaseReducers[key]);
11078
- }
11079
- for (let sM of context.sliceMatchers) {
11080
- builder.addMatcher(sM.matcher, sM.reducer);
11081
- }
11082
- for (let m of actionMatchers) {
11083
- builder.addMatcher(m.matcher, m.reducer);
11084
- }
11085
- if (defaultCaseReducer) {
11086
- builder.addDefaultCase(defaultCaseReducer);
11087
- }
11925
+ for (let key in finalCaseReducers) builder.addCase(key, finalCaseReducers[key]);
11926
+ for (let sM of context.sliceMatchers) builder.addMatcher(sM.matcher, sM.reducer);
11927
+ for (let m of actionMatchers) builder.addMatcher(m.matcher, m.reducer);
11928
+ if (defaultCaseReducer) builder.addDefaultCase(defaultCaseReducer);
11088
11929
  });
11089
11930
  }
11090
11931
  const selectSelf = (state) => state;
@@ -11103,21 +11944,15 @@ function buildCreateSlice({
11103
11944
  function selectSlice(state) {
11104
11945
  let sliceState = state[reducerPath2];
11105
11946
  if (typeof sliceState === "undefined") {
11106
- if (injected) {
11107
- sliceState = getOrInsertComputed(injectedStateCache, selectSlice, getInitialState);
11108
- } else if (process.env.NODE_ENV !== "production") {
11109
- throw new Error(process.env.NODE_ENV === "production" ? formatProdErrorMessage(15) : "selectSlice returned undefined for an uninjected slice reducer");
11110
- }
11947
+ if (injected) sliceState = getOrInsertComputed(injectedStateCache, selectSlice, getInitialState);
11948
+ else throw new Error("selectSlice returned undefined for an uninjected slice reducer");
11111
11949
  }
11112
11950
  return sliceState;
11113
11951
  }
11114
11952
  function getSelectors(selectState = selectSelf) {
11115
- const selectorCache = getOrInsertComputed(injectedSelectorCache, injected, () => /* @__PURE__ */ new WeakMap());
11116
- return getOrInsertComputed(selectorCache, selectState, () => {
11953
+ return getOrInsertComputed(getOrInsertComputed(injectedSelectorCache, injected, () => /* @__PURE__ */ new WeakMap()), selectState, () => {
11117
11954
  const map2 = {};
11118
- for (const [name2, selector] of Object.entries(options.selectors ?? {})) {
11119
- map2[name2] = wrapSelector(selector, selectState, () => getOrInsertComputed(injectedStateCache, selectState, getInitialState), injected);
11120
- }
11955
+ for (const [name2, selector] of Object.entries(options.selectors ?? {})) map2[name2] = wrapSelector(selector, selectState, () => getOrInsertComputed(injectedStateCache, selectState, getInitialState), injected);
11121
11956
  return map2;
11122
11957
  });
11123
11958
  }
@@ -11137,15 +11972,12 @@ function buildCreateSlice({
11137
11972
  caseReducers: context.sliceCaseReducersByName,
11138
11973
  getInitialState,
11139
11974
  ...makeSelectorProps(reducerPath),
11140
- injectInto(injectable, {
11141
- reducerPath: pathOpt,
11142
- ...config2
11143
- } = {}) {
11975
+ injectInto(injectable, { reducerPath: pathOpt, ...config } = {}) {
11144
11976
  const newReducerPath = pathOpt ?? reducerPath;
11145
11977
  injectable.inject({
11146
11978
  reducerPath: newReducerPath,
11147
11979
  reducer
11148
- }, config2);
11980
+ }, config);
11149
11981
  return {
11150
11982
  ...slice2,
11151
11983
  ...makeSelectorProps(newReducerPath, true)
@@ -11159,11 +11991,8 @@ function wrapSelector(selector, selectState, getInitialState, injected) {
11159
11991
  function wrapper(rootState, ...args) {
11160
11992
  let sliceState = selectState(rootState);
11161
11993
  if (typeof sliceState === "undefined") {
11162
- if (injected) {
11163
- sliceState = getInitialState();
11164
- } else if (process.env.NODE_ENV !== "production") {
11165
- throw new Error(process.env.NODE_ENV === "production" ? formatProdErrorMessage(16) : "selectState returned undefined for an uninjected slice reducer");
11166
- }
11994
+ if (injected) sliceState = getInitialState();
11995
+ else throw new Error("selectState returned undefined for an uninjected slice reducer");
11167
11996
  }
11168
11997
  return selector(sliceState, ...args);
11169
11998
  }
@@ -11172,26 +12001,19 @@ function wrapSelector(selector, selectState, getInitialState, injected) {
11172
12001
  }
11173
12002
  var createSlice = /* @__PURE__ */ buildCreateSlice();
11174
12003
  function buildReducerCreators() {
11175
- function asyncThunk(payloadCreator, config2) {
12004
+ function asyncThunk(payloadCreator, config) {
11176
12005
  return {
11177
12006
  _reducerDefinitionType: "asyncThunk",
11178
12007
  payloadCreator,
11179
- ...config2
12008
+ ...config
11180
12009
  };
11181
12010
  }
11182
12011
  asyncThunk.withTypes = () => asyncThunk;
11183
12012
  return {
11184
12013
  reducer(caseReducer) {
11185
- return Object.assign({
11186
- // hack so the wrapping function has the same name as the original
11187
- // we need to create a wrapper so the `reducerDefinitionType` is not assigned to the original
11188
- [caseReducer.name](...args) {
11189
- return caseReducer(...args);
11190
- }
11191
- }[caseReducer.name], {
11192
- _reducerDefinitionType: "reducer"
11193
- /* reducer */
11194
- });
12014
+ return Object.assign({ [caseReducer.name](...args) {
12015
+ return caseReducer(...args);
12016
+ } }[caseReducer.name], { _reducerDefinitionType: "reducer" });
11195
12017
  },
11196
12018
  preparedReducer(prepare, reducer) {
11197
12019
  return {
@@ -11203,22 +12025,14 @@ function buildReducerCreators() {
11203
12025
  asyncThunk
11204
12026
  };
11205
12027
  }
11206
- function handleNormalReducerDefinition({
11207
- type,
11208
- reducerName,
11209
- createNotation
11210
- }, maybeReducerWithPrepare, context) {
12028
+ function handleNormalReducerDefinition({ type, reducerName, createNotation }, maybeReducerWithPrepare, context) {
11211
12029
  let caseReducer;
11212
12030
  let prepareCallback;
11213
12031
  if ("reducer" in maybeReducerWithPrepare) {
11214
- if (createNotation && !isCaseReducerWithPrepareDefinition(maybeReducerWithPrepare)) {
11215
- throw new Error(process.env.NODE_ENV === "production" ? formatProdErrorMessage(17) : "Please use the `create.preparedReducer` notation for prepared action creators with the `create` notation.");
11216
- }
12032
+ if (createNotation && !isCaseReducerWithPrepareDefinition(maybeReducerWithPrepare)) throw new Error("Please use the `create.preparedReducer` notation for prepared action creators with the `create` notation.");
11217
12033
  caseReducer = maybeReducerWithPrepare.reducer;
11218
12034
  prepareCallback = maybeReducerWithPrepare.prepare;
11219
- } else {
11220
- caseReducer = maybeReducerWithPrepare;
11221
- }
12035
+ } else caseReducer = maybeReducerWithPrepare;
11222
12036
  context.addCase(type, caseReducer).exposeCaseReducer(reducerName, caseReducer).exposeAction(reducerName, prepareCallback ? createAction(type, prepareCallback) : createAction(type));
11223
12037
  }
11224
12038
  function isAsyncThunkSliceReducerDefinition(reducerDefinition) {
@@ -11227,46 +12041,23 @@ function isAsyncThunkSliceReducerDefinition(reducerDefinition) {
11227
12041
  function isCaseReducerWithPrepareDefinition(reducerDefinition) {
11228
12042
  return reducerDefinition._reducerDefinitionType === "reducerWithPrepare";
11229
12043
  }
11230
- function handleThunkCaseReducerDefinition({
11231
- type,
11232
- reducerName
11233
- }, reducerDefinition, context, cAT) {
11234
- if (!cAT) {
11235
- throw new Error(process.env.NODE_ENV === "production" ? formatProdErrorMessage(18) : "Cannot use `create.asyncThunk` in the built-in `createSlice`. Use `buildCreateSlice({ creators: { asyncThunk: asyncThunkCreator } })` to create a customised version of `createSlice`.");
11236
- }
11237
- const {
11238
- payloadCreator,
11239
- fulfilled,
11240
- pending,
11241
- rejected,
11242
- settled,
11243
- options
11244
- } = reducerDefinition;
12044
+ function handleThunkCaseReducerDefinition({ type, reducerName }, reducerDefinition, context, cAT) {
12045
+ if (!cAT) throw new Error("Cannot use `create.asyncThunk` in the built-in `createSlice`. Use `buildCreateSlice({ creators: { asyncThunk: asyncThunkCreator } })` to create a customised version of `createSlice`.");
12046
+ const { payloadCreator, fulfilled, pending, rejected, settled, options } = reducerDefinition;
11245
12047
  const thunk = cAT(type, payloadCreator, options);
11246
12048
  context.exposeAction(reducerName, thunk);
11247
- if (fulfilled) {
11248
- context.addCase(thunk.fulfilled, fulfilled);
11249
- }
11250
- if (pending) {
11251
- context.addCase(thunk.pending, pending);
11252
- }
11253
- if (rejected) {
11254
- context.addCase(thunk.rejected, rejected);
11255
- }
11256
- if (settled) {
11257
- context.addMatcher(thunk.settled, settled);
11258
- }
12049
+ if (fulfilled) context.addCase(thunk.fulfilled, fulfilled);
12050
+ if (pending) context.addCase(thunk.pending, pending);
12051
+ if (rejected) context.addCase(thunk.rejected, rejected);
12052
+ if (settled) context.addMatcher(thunk.settled, settled);
11259
12053
  context.exposeCaseReducer(reducerName, {
11260
- fulfilled: fulfilled || noop3,
11261
- pending: pending || noop3,
11262
- rejected: rejected || noop3,
11263
- settled: settled || noop3
12054
+ fulfilled: fulfilled || noop$1,
12055
+ pending: pending || noop$1,
12056
+ rejected: rejected || noop$1,
12057
+ settled: settled || noop$1
11264
12058
  });
11265
12059
  }
11266
- function noop3() {
11267
- }
11268
- function formatProdErrorMessage(code) {
11269
- return `Minified Redux Toolkit error #${code}; visit https://redux-toolkit.js.org/Errors?code=${code} for the full message or use the non-minified dev environment for full errors. `;
12060
+ function noop$1() {
11270
12061
  }
11271
12062
 
11272
12063
  // ../node_modules/recharts/es6/util/getSliced.js
@@ -11530,7 +12321,7 @@ var getBandSizeOfAxis = (axis, ticks2, isBar) => {
11530
12321
  }
11531
12322
  return bandSize === Infinity ? 0 : bandSize;
11532
12323
  }
11533
- return 0;
12324
+ return isBar ? void 0 : 0;
11534
12325
  };
11535
12326
  function getTooltipEntry(_ref4) {
11536
12327
  var tooltipEntrySettings = _ref4.tooltipEntrySettings, dataKey = _ref4.dataKey, payload = _ref4.payload, value = _ref4.value, name = _ref4.name;
@@ -11757,7 +12548,7 @@ function debounce2(func, debounceMs = 0, options = {}) {
11757
12548
  if (maxWait != null) {
11758
12549
  if (pendingAt === null) pendingAt = Date.now();
11759
12550
  if (Date.now() - pendingAt >= maxWait) {
11760
- result = func.apply(this, args);
12551
+ if (leading || trailing) result = func.apply(this, args);
11761
12552
  pendingAt = Date.now();
11762
12553
  _debounced.cancel();
11763
12554
  _debounced.schedule();
@@ -13002,8 +13793,8 @@ var configBezier = function configBezier2() {
13002
13793
  return createBezierEasing(...getBezierCoordinates(...arguments));
13003
13794
  };
13004
13795
  var createSpringEasing = function createSpringEasing2() {
13005
- var config2 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
13006
- var _config$stiff = config2.stiff, stiff = _config$stiff === void 0 ? 100 : _config$stiff, _config$damping = config2.damping, damping = _config$damping === void 0 ? 8 : _config$damping, _config$dt = config2.dt, dt = _config$dt === void 0 ? 16.67 : _config$dt;
13796
+ var config = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
13797
+ var _config$stiff = config.stiff, stiff = _config$stiff === void 0 ? 100 : _config$stiff, _config$damping = config.damping, damping = _config$damping === void 0 ? 8 : _config$damping, _config$dt = config.dt, dt = _config$dt === void 0 ? 16.67 : _config$dt;
13007
13798
  var destX = 1;
13008
13799
  var positions = [0];
13009
13800
  var currX = 0;
@@ -14138,998 +14929,22 @@ function parseNumericalUserDomain(userDomain, dataDomain, allowDataOverflow) {
14138
14929
  return void 0;
14139
14930
  }
14140
14931
 
14141
- // ../node_modules/decimal.js-light/decimal.mjs
14142
- var MAX_DIGITS = 1e9;
14143
- var defaults = {
14144
- // These values must be integers within the stated ranges (inclusive).
14145
- // Most of these values can be changed during run-time using `Decimal.config`.
14146
- // The maximum number of significant digits of the result of a calculation or base conversion.
14147
- // E.g. `Decimal.config({ precision: 20 });`
14148
- precision: 20,
14149
- // 1 to MAX_DIGITS
14150
- // The rounding mode used by default by `toInteger`, `toDecimalPlaces`, `toExponential`,
14151
- // `toFixed`, `toPrecision` and `toSignificantDigits`.
14152
- //
14153
- // ROUND_UP 0 Away from zero.
14154
- // ROUND_DOWN 1 Towards zero.
14155
- // ROUND_CEIL 2 Towards +Infinity.
14156
- // ROUND_FLOOR 3 Towards -Infinity.
14157
- // ROUND_HALF_UP 4 Towards nearest neighbour. If equidistant, up.
14158
- // ROUND_HALF_DOWN 5 Towards nearest neighbour. If equidistant, down.
14159
- // ROUND_HALF_EVEN 6 Towards nearest neighbour. If equidistant, towards even neighbour.
14160
- // ROUND_HALF_CEIL 7 Towards nearest neighbour. If equidistant, towards +Infinity.
14161
- // ROUND_HALF_FLOOR 8 Towards nearest neighbour. If equidistant, towards -Infinity.
14162
- //
14163
- // E.g.
14164
- // `Decimal.rounding = 4;`
14165
- // `Decimal.rounding = Decimal.ROUND_HALF_UP;`
14166
- rounding: 4,
14167
- // 0 to 8
14168
- // The exponent value at and beneath which `toString` returns exponential notation.
14169
- // JavaScript numbers: -7
14170
- toExpNeg: -7,
14171
- // 0 to -MAX_E
14172
- // The exponent value at and above which `toString` returns exponential notation.
14173
- // JavaScript numbers: 21
14174
- toExpPos: 21,
14175
- // 0 to MAX_E
14176
- // The natural logarithm of 10.
14177
- // 115 digits
14178
- LN10: "2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"
14179
- };
14180
- var Decimal;
14181
- var external = true;
14182
- var decimalError = "[DecimalError] ";
14183
- var invalidArgument = decimalError + "Invalid argument: ";
14184
- var exponentOutOfRange = decimalError + "Exponent out of range: ";
14185
- var mathfloor = Math.floor;
14186
- var mathpow = Math.pow;
14187
- var isDecimal = /^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i;
14188
- var ONE;
14189
- var BASE = 1e7;
14190
- var LOG_BASE = 7;
14191
- var MAX_SAFE_INTEGER = 9007199254740991;
14192
- var MAX_E = mathfloor(MAX_SAFE_INTEGER / LOG_BASE);
14193
- var P = {};
14194
- P.absoluteValue = P.abs = function() {
14195
- var x2 = new this.constructor(this);
14196
- if (x2.s) x2.s = 1;
14197
- return x2;
14198
- };
14199
- P.comparedTo = P.cmp = function(y2) {
14200
- var i, j, xdL, ydL, x2 = this;
14201
- y2 = new x2.constructor(y2);
14202
- if (x2.s !== y2.s) return x2.s || -y2.s;
14203
- if (x2.e !== y2.e) return x2.e > y2.e ^ x2.s < 0 ? 1 : -1;
14204
- xdL = x2.d.length;
14205
- ydL = y2.d.length;
14206
- for (i = 0, j = xdL < ydL ? xdL : ydL; i < j; ++i) {
14207
- if (x2.d[i] !== y2.d[i]) return x2.d[i] > y2.d[i] ^ x2.s < 0 ? 1 : -1;
14208
- }
14209
- return xdL === ydL ? 0 : xdL > ydL ^ x2.s < 0 ? 1 : -1;
14210
- };
14211
- P.decimalPlaces = P.dp = function() {
14212
- var x2 = this, w = x2.d.length - 1, dp = (w - x2.e) * LOG_BASE;
14213
- w = x2.d[w];
14214
- if (w) for (; w % 10 == 0; w /= 10) dp--;
14215
- return dp < 0 ? 0 : dp;
14216
- };
14217
- P.dividedBy = P.div = function(y2) {
14218
- return divide(this, new this.constructor(y2));
14219
- };
14220
- P.dividedToIntegerBy = P.idiv = function(y2) {
14221
- var x2 = this, Ctor = x2.constructor;
14222
- return round2(divide(x2, new Ctor(y2), 0, 1), Ctor.precision);
14223
- };
14224
- P.equals = P.eq = function(y2) {
14225
- return !this.cmp(y2);
14226
- };
14227
- P.exponent = function() {
14228
- return getBase10Exponent(this);
14229
- };
14230
- P.greaterThan = P.gt = function(y2) {
14231
- return this.cmp(y2) > 0;
14232
- };
14233
- P.greaterThanOrEqualTo = P.gte = function(y2) {
14234
- return this.cmp(y2) >= 0;
14235
- };
14236
- P.isInteger = P.isint = function() {
14237
- return this.e > this.d.length - 2;
14238
- };
14239
- P.isNegative = P.isneg = function() {
14240
- return this.s < 0;
14241
- };
14242
- P.isPositive = P.ispos = function() {
14243
- return this.s > 0;
14244
- };
14245
- P.isZero = function() {
14246
- return this.s === 0;
14247
- };
14248
- P.lessThan = P.lt = function(y2) {
14249
- return this.cmp(y2) < 0;
14250
- };
14251
- P.lessThanOrEqualTo = P.lte = function(y2) {
14252
- return this.cmp(y2) < 1;
14253
- };
14254
- P.logarithm = P.log = function(base) {
14255
- var r, x2 = this, Ctor = x2.constructor, pr = Ctor.precision, wpr = pr + 5;
14256
- if (base === void 0) {
14257
- base = new Ctor(10);
14258
- } else {
14259
- base = new Ctor(base);
14260
- if (base.s < 1 || base.eq(ONE)) throw Error(decimalError + "NaN");
14261
- }
14262
- if (x2.s < 1) throw Error(decimalError + (x2.s ? "NaN" : "-Infinity"));
14263
- if (x2.eq(ONE)) return new Ctor(0);
14264
- external = false;
14265
- r = divide(ln(x2, wpr), ln(base, wpr), wpr);
14266
- external = true;
14267
- return round2(r, pr);
14268
- };
14269
- P.minus = P.sub = function(y2) {
14270
- var x2 = this;
14271
- y2 = new x2.constructor(y2);
14272
- return x2.s == y2.s ? subtract(x2, y2) : add(x2, (y2.s = -y2.s, y2));
14273
- };
14274
- P.modulo = P.mod = function(y2) {
14275
- var q, x2 = this, Ctor = x2.constructor, pr = Ctor.precision;
14276
- y2 = new Ctor(y2);
14277
- if (!y2.s) throw Error(decimalError + "NaN");
14278
- if (!x2.s) return round2(new Ctor(x2), pr);
14279
- external = false;
14280
- q = divide(x2, y2, 0, 1).times(y2);
14281
- external = true;
14282
- return x2.minus(q);
14283
- };
14284
- P.naturalExponential = P.exp = function() {
14285
- return exp(this);
14286
- };
14287
- P.naturalLogarithm = P.ln = function() {
14288
- return ln(this);
14289
- };
14290
- P.negated = P.neg = function() {
14291
- var x2 = new this.constructor(this);
14292
- x2.s = -x2.s || 0;
14293
- return x2;
14294
- };
14295
- P.plus = P.add = function(y2) {
14296
- var x2 = this;
14297
- y2 = new x2.constructor(y2);
14298
- return x2.s == y2.s ? add(x2, y2) : subtract(x2, (y2.s = -y2.s, y2));
14299
- };
14300
- P.precision = P.sd = function(z) {
14301
- var e, sd, w, x2 = this;
14302
- if (z !== void 0 && z !== !!z && z !== 1 && z !== 0) throw Error(invalidArgument + z);
14303
- e = getBase10Exponent(x2) + 1;
14304
- w = x2.d.length - 1;
14305
- sd = w * LOG_BASE + 1;
14306
- w = x2.d[w];
14307
- if (w) {
14308
- for (; w % 10 == 0; w /= 10) sd--;
14309
- for (w = x2.d[0]; w >= 10; w /= 10) sd++;
14310
- }
14311
- return z && e > sd ? e : sd;
14312
- };
14313
- P.squareRoot = P.sqrt = function() {
14314
- var e, n, pr, r, s, t, wpr, x2 = this, Ctor = x2.constructor;
14315
- if (x2.s < 1) {
14316
- if (!x2.s) return new Ctor(0);
14317
- throw Error(decimalError + "NaN");
14318
- }
14319
- e = getBase10Exponent(x2);
14320
- external = false;
14321
- s = Math.sqrt(+x2);
14322
- if (s == 0 || s == 1 / 0) {
14323
- n = digitsToString(x2.d);
14324
- if ((n.length + e) % 2 == 0) n += "0";
14325
- s = Math.sqrt(n);
14326
- e = mathfloor((e + 1) / 2) - (e < 0 || e % 2);
14327
- if (s == 1 / 0) {
14328
- n = "5e" + e;
14329
- } else {
14330
- n = s.toExponential();
14331
- n = n.slice(0, n.indexOf("e") + 1) + e;
14332
- }
14333
- r = new Ctor(n);
14334
- } else {
14335
- r = new Ctor(s.toString());
14336
- }
14337
- pr = Ctor.precision;
14338
- s = wpr = pr + 3;
14339
- for (; ; ) {
14340
- t = r;
14341
- r = t.plus(divide(x2, t, wpr + 2)).times(0.5);
14342
- if (digitsToString(t.d).slice(0, wpr) === (n = digitsToString(r.d)).slice(0, wpr)) {
14343
- n = n.slice(wpr - 3, wpr + 1);
14344
- if (s == wpr && n == "4999") {
14345
- round2(t, pr + 1, 0);
14346
- if (t.times(t).eq(x2)) {
14347
- r = t;
14348
- break;
14349
- }
14350
- } else if (n != "9999") {
14351
- break;
14352
- }
14353
- wpr += 4;
14354
- }
14355
- }
14356
- external = true;
14357
- return round2(r, pr);
14358
- };
14359
- P.times = P.mul = function(y2) {
14360
- var carry, e, i, k, r, rL, t, xdL, ydL, x2 = this, Ctor = x2.constructor, xd = x2.d, yd = (y2 = new Ctor(y2)).d;
14361
- if (!x2.s || !y2.s) return new Ctor(0);
14362
- y2.s *= x2.s;
14363
- e = x2.e + y2.e;
14364
- xdL = xd.length;
14365
- ydL = yd.length;
14366
- if (xdL < ydL) {
14367
- r = xd;
14368
- xd = yd;
14369
- yd = r;
14370
- rL = xdL;
14371
- xdL = ydL;
14372
- ydL = rL;
14373
- }
14374
- r = [];
14375
- rL = xdL + ydL;
14376
- for (i = rL; i--; ) r.push(0);
14377
- for (i = ydL; --i >= 0; ) {
14378
- carry = 0;
14379
- for (k = xdL + i; k > i; ) {
14380
- t = r[k] + yd[i] * xd[k - i - 1] + carry;
14381
- r[k--] = t % BASE | 0;
14382
- carry = t / BASE | 0;
14383
- }
14384
- r[k] = (r[k] + carry) % BASE | 0;
14385
- }
14386
- for (; !r[--rL]; ) r.pop();
14387
- if (carry) ++e;
14388
- else r.shift();
14389
- y2.d = r;
14390
- y2.e = e;
14391
- return external ? round2(y2, Ctor.precision) : y2;
14392
- };
14393
- P.toDecimalPlaces = P.todp = function(dp, rm) {
14394
- var x2 = this, Ctor = x2.constructor;
14395
- x2 = new Ctor(x2);
14396
- if (dp === void 0) return x2;
14397
- checkInt32(dp, 0, MAX_DIGITS);
14398
- if (rm === void 0) rm = Ctor.rounding;
14399
- else checkInt32(rm, 0, 8);
14400
- return round2(x2, dp + getBase10Exponent(x2) + 1, rm);
14401
- };
14402
- P.toExponential = function(dp, rm) {
14403
- var str, x2 = this, Ctor = x2.constructor;
14404
- if (dp === void 0) {
14405
- str = toString2(x2, true);
14406
- } else {
14407
- checkInt32(dp, 0, MAX_DIGITS);
14408
- if (rm === void 0) rm = Ctor.rounding;
14409
- else checkInt32(rm, 0, 8);
14410
- x2 = round2(new Ctor(x2), dp + 1, rm);
14411
- str = toString2(x2, true, dp + 1);
14412
- }
14413
- return str;
14414
- };
14415
- P.toFixed = function(dp, rm) {
14416
- var str, y2, x2 = this, Ctor = x2.constructor;
14417
- if (dp === void 0) return toString2(x2);
14418
- checkInt32(dp, 0, MAX_DIGITS);
14419
- if (rm === void 0) rm = Ctor.rounding;
14420
- else checkInt32(rm, 0, 8);
14421
- y2 = round2(new Ctor(x2), dp + getBase10Exponent(x2) + 1, rm);
14422
- str = toString2(y2.abs(), false, dp + getBase10Exponent(y2) + 1);
14423
- return x2.isneg() && !x2.isZero() ? "-" + str : str;
14424
- };
14425
- P.toInteger = P.toint = function() {
14426
- var x2 = this, Ctor = x2.constructor;
14427
- return round2(new Ctor(x2), getBase10Exponent(x2) + 1, Ctor.rounding);
14428
- };
14429
- P.toNumber = function() {
14430
- return +this;
14431
- };
14432
- P.toPower = P.pow = function(y2) {
14433
- var e, k, pr, r, sign2, yIsInt, x2 = this, Ctor = x2.constructor, guard = 12, yn = +(y2 = new Ctor(y2));
14434
- if (!y2.s) return new Ctor(ONE);
14435
- x2 = new Ctor(x2);
14436
- if (!x2.s) {
14437
- if (y2.s < 1) throw Error(decimalError + "Infinity");
14438
- return x2;
14439
- }
14440
- if (x2.eq(ONE)) return x2;
14441
- pr = Ctor.precision;
14442
- if (y2.eq(ONE)) return round2(x2, pr);
14443
- e = y2.e;
14444
- k = y2.d.length - 1;
14445
- yIsInt = e >= k;
14446
- sign2 = x2.s;
14447
- if (!yIsInt) {
14448
- if (sign2 < 0) throw Error(decimalError + "NaN");
14449
- } else if ((k = yn < 0 ? -yn : yn) <= MAX_SAFE_INTEGER) {
14450
- r = new Ctor(ONE);
14451
- e = Math.ceil(pr / LOG_BASE + 4);
14452
- external = false;
14453
- for (; ; ) {
14454
- if (k % 2) {
14455
- r = r.times(x2);
14456
- truncate(r.d, e);
14457
- }
14458
- k = mathfloor(k / 2);
14459
- if (k === 0) break;
14460
- x2 = x2.times(x2);
14461
- truncate(x2.d, e);
14462
- }
14463
- external = true;
14464
- return y2.s < 0 ? new Ctor(ONE).div(r) : round2(r, pr);
14465
- }
14466
- sign2 = sign2 < 0 && y2.d[Math.max(e, k)] & 1 ? -1 : 1;
14467
- x2.s = 1;
14468
- external = false;
14469
- r = y2.times(ln(x2, pr + guard));
14470
- external = true;
14471
- r = exp(r);
14472
- r.s = sign2;
14473
- return r;
14474
- };
14475
- P.toPrecision = function(sd, rm) {
14476
- var e, str, x2 = this, Ctor = x2.constructor;
14477
- if (sd === void 0) {
14478
- e = getBase10Exponent(x2);
14479
- str = toString2(x2, e <= Ctor.toExpNeg || e >= Ctor.toExpPos);
14480
- } else {
14481
- checkInt32(sd, 1, MAX_DIGITS);
14482
- if (rm === void 0) rm = Ctor.rounding;
14483
- else checkInt32(rm, 0, 8);
14484
- x2 = round2(new Ctor(x2), sd, rm);
14485
- e = getBase10Exponent(x2);
14486
- str = toString2(x2, sd <= e || e <= Ctor.toExpNeg, sd);
14487
- }
14488
- return str;
14489
- };
14490
- P.toSignificantDigits = P.tosd = function(sd, rm) {
14491
- var x2 = this, Ctor = x2.constructor;
14492
- if (sd === void 0) {
14493
- sd = Ctor.precision;
14494
- rm = Ctor.rounding;
14495
- } else {
14496
- checkInt32(sd, 1, MAX_DIGITS);
14497
- if (rm === void 0) rm = Ctor.rounding;
14498
- else checkInt32(rm, 0, 8);
14499
- }
14500
- return round2(new Ctor(x2), sd, rm);
14501
- };
14502
- P.toString = P.valueOf = P.val = P.toJSON = P[/* @__PURE__ */ Symbol.for("nodejs.util.inspect.custom")] = function() {
14503
- var x2 = this, e = getBase10Exponent(x2), Ctor = x2.constructor;
14504
- return toString2(x2, e <= Ctor.toExpNeg || e >= Ctor.toExpPos);
14505
- };
14506
- function add(x2, y2) {
14507
- var carry, d, e, i, k, len, xd, yd, Ctor = x2.constructor, pr = Ctor.precision;
14508
- if (!x2.s || !y2.s) {
14509
- if (!y2.s) y2 = new Ctor(x2);
14510
- return external ? round2(y2, pr) : y2;
14511
- }
14512
- xd = x2.d;
14513
- yd = y2.d;
14514
- k = x2.e;
14515
- e = y2.e;
14516
- xd = xd.slice();
14517
- i = k - e;
14518
- if (i) {
14519
- if (i < 0) {
14520
- d = xd;
14521
- i = -i;
14522
- len = yd.length;
14523
- } else {
14524
- d = yd;
14525
- e = k;
14526
- len = xd.length;
14527
- }
14528
- k = Math.ceil(pr / LOG_BASE);
14529
- len = k > len ? k + 1 : len + 1;
14530
- if (i > len) {
14531
- i = len;
14532
- d.length = 1;
14533
- }
14534
- d.reverse();
14535
- for (; i--; ) d.push(0);
14536
- d.reverse();
14537
- }
14538
- len = xd.length;
14539
- i = yd.length;
14540
- if (len - i < 0) {
14541
- i = len;
14542
- d = yd;
14543
- yd = xd;
14544
- xd = d;
14545
- }
14546
- for (carry = 0; i; ) {
14547
- carry = (xd[--i] = xd[i] + yd[i] + carry) / BASE | 0;
14548
- xd[i] %= BASE;
14549
- }
14550
- if (carry) {
14551
- xd.unshift(carry);
14552
- ++e;
14553
- }
14554
- for (len = xd.length; xd[--len] == 0; ) xd.pop();
14555
- y2.d = xd;
14556
- y2.e = e;
14557
- return external ? round2(y2, pr) : y2;
14558
- }
14559
- function checkInt32(i, min2, max2) {
14560
- if (i !== ~~i || i < min2 || i > max2) {
14561
- throw Error(invalidArgument + i);
14562
- }
14563
- }
14564
- function digitsToString(d) {
14565
- var i, k, ws, indexOfLastWord = d.length - 1, str = "", w = d[0];
14566
- if (indexOfLastWord > 0) {
14567
- str += w;
14568
- for (i = 1; i < indexOfLastWord; i++) {
14569
- ws = d[i] + "";
14570
- k = LOG_BASE - ws.length;
14571
- if (k) str += getZeroString(k);
14572
- str += ws;
14573
- }
14574
- w = d[i];
14575
- ws = w + "";
14576
- k = LOG_BASE - ws.length;
14577
- if (k) str += getZeroString(k);
14578
- } else if (w === 0) {
14579
- return "0";
14580
- }
14581
- for (; w % 10 === 0; ) w /= 10;
14582
- return str + w;
14583
- }
14584
- var divide = /* @__PURE__ */ (function() {
14585
- function multiplyInteger(x2, k) {
14586
- var temp, carry = 0, i = x2.length;
14587
- for (x2 = x2.slice(); i--; ) {
14588
- temp = x2[i] * k + carry;
14589
- x2[i] = temp % BASE | 0;
14590
- carry = temp / BASE | 0;
14591
- }
14592
- if (carry) x2.unshift(carry);
14593
- return x2;
14594
- }
14595
- function compare(a, b, aL, bL) {
14596
- var i, r;
14597
- if (aL != bL) {
14598
- r = aL > bL ? 1 : -1;
14599
- } else {
14600
- for (i = r = 0; i < aL; i++) {
14601
- if (a[i] != b[i]) {
14602
- r = a[i] > b[i] ? 1 : -1;
14603
- break;
14604
- }
14605
- }
14606
- }
14607
- return r;
14608
- }
14609
- function subtract2(a, b, aL) {
14610
- var i = 0;
14611
- for (; aL--; ) {
14612
- a[aL] -= i;
14613
- i = a[aL] < b[aL] ? 1 : 0;
14614
- a[aL] = i * BASE + a[aL] - b[aL];
14615
- }
14616
- for (; !a[0] && a.length > 1; ) a.shift();
14617
- }
14618
- return function(x2, y2, pr, dp) {
14619
- var cmp, e, i, k, prod, prodL, q, qd, rem, remL, rem0, sd, t, xi, xL, yd0, yL, yz, Ctor = x2.constructor, sign2 = x2.s == y2.s ? 1 : -1, xd = x2.d, yd = y2.d;
14620
- if (!x2.s) return new Ctor(x2);
14621
- if (!y2.s) throw Error(decimalError + "Division by zero");
14622
- e = x2.e - y2.e;
14623
- yL = yd.length;
14624
- xL = xd.length;
14625
- q = new Ctor(sign2);
14626
- qd = q.d = [];
14627
- for (i = 0; yd[i] == (xd[i] || 0); ) ++i;
14628
- if (yd[i] > (xd[i] || 0)) --e;
14629
- if (pr == null) {
14630
- sd = pr = Ctor.precision;
14631
- } else if (dp) {
14632
- sd = pr + (getBase10Exponent(x2) - getBase10Exponent(y2)) + 1;
14633
- } else {
14634
- sd = pr;
14635
- }
14636
- if (sd < 0) return new Ctor(0);
14637
- sd = sd / LOG_BASE + 2 | 0;
14638
- i = 0;
14639
- if (yL == 1) {
14640
- k = 0;
14641
- yd = yd[0];
14642
- sd++;
14643
- for (; (i < xL || k) && sd--; i++) {
14644
- t = k * BASE + (xd[i] || 0);
14645
- qd[i] = t / yd | 0;
14646
- k = t % yd | 0;
14647
- }
14648
- } else {
14649
- k = BASE / (yd[0] + 1) | 0;
14650
- if (k > 1) {
14651
- yd = multiplyInteger(yd, k);
14652
- xd = multiplyInteger(xd, k);
14653
- yL = yd.length;
14654
- xL = xd.length;
14655
- }
14656
- xi = yL;
14657
- rem = xd.slice(0, yL);
14658
- remL = rem.length;
14659
- for (; remL < yL; ) rem[remL++] = 0;
14660
- yz = yd.slice();
14661
- yz.unshift(0);
14662
- yd0 = yd[0];
14663
- if (yd[1] >= BASE / 2) ++yd0;
14664
- do {
14665
- k = 0;
14666
- cmp = compare(yd, rem, yL, remL);
14667
- if (cmp < 0) {
14668
- rem0 = rem[0];
14669
- if (yL != remL) rem0 = rem0 * BASE + (rem[1] || 0);
14670
- k = rem0 / yd0 | 0;
14671
- if (k > 1) {
14672
- if (k >= BASE) k = BASE - 1;
14673
- prod = multiplyInteger(yd, k);
14674
- prodL = prod.length;
14675
- remL = rem.length;
14676
- cmp = compare(prod, rem, prodL, remL);
14677
- if (cmp == 1) {
14678
- k--;
14679
- subtract2(prod, yL < prodL ? yz : yd, prodL);
14680
- }
14681
- } else {
14682
- if (k == 0) cmp = k = 1;
14683
- prod = yd.slice();
14684
- }
14685
- prodL = prod.length;
14686
- if (prodL < remL) prod.unshift(0);
14687
- subtract2(rem, prod, remL);
14688
- if (cmp == -1) {
14689
- remL = rem.length;
14690
- cmp = compare(yd, rem, yL, remL);
14691
- if (cmp < 1) {
14692
- k++;
14693
- subtract2(rem, yL < remL ? yz : yd, remL);
14694
- }
14695
- }
14696
- remL = rem.length;
14697
- } else if (cmp === 0) {
14698
- k++;
14699
- rem = [0];
14700
- }
14701
- qd[i++] = k;
14702
- if (cmp && rem[0]) {
14703
- rem[remL++] = xd[xi] || 0;
14704
- } else {
14705
- rem = [xd[xi]];
14706
- remL = 1;
14707
- }
14708
- } while ((xi++ < xL || rem[0] !== void 0) && sd--);
14709
- }
14710
- if (!qd[0]) qd.shift();
14711
- q.e = e;
14712
- return round2(q, dp ? pr + getBase10Exponent(q) + 1 : pr);
14713
- };
14714
- })();
14715
- function exp(x2, sd) {
14716
- var denominator, guard, pow2, sum, t, wpr, i = 0, k = 0, Ctor = x2.constructor, pr = Ctor.precision;
14717
- if (getBase10Exponent(x2) > 16) throw Error(exponentOutOfRange + getBase10Exponent(x2));
14718
- if (!x2.s) return new Ctor(ONE);
14719
- {
14720
- external = false;
14721
- wpr = pr;
14722
- }
14723
- t = new Ctor(0.03125);
14724
- while (x2.abs().gte(0.1)) {
14725
- x2 = x2.times(t);
14726
- k += 5;
14727
- }
14728
- guard = Math.log(mathpow(2, k)) / Math.LN10 * 2 + 5 | 0;
14729
- wpr += guard;
14730
- denominator = pow2 = sum = new Ctor(ONE);
14731
- Ctor.precision = wpr;
14732
- for (; ; ) {
14733
- pow2 = round2(pow2.times(x2), wpr);
14734
- denominator = denominator.times(++i);
14735
- t = sum.plus(divide(pow2, denominator, wpr));
14736
- if (digitsToString(t.d).slice(0, wpr) === digitsToString(sum.d).slice(0, wpr)) {
14737
- while (k--) sum = round2(sum.times(sum), wpr);
14738
- Ctor.precision = pr;
14739
- return sd == null ? (external = true, round2(sum, pr)) : sum;
14740
- }
14741
- sum = t;
14742
- }
14743
- }
14744
- function getBase10Exponent(x2) {
14745
- var e = x2.e * LOG_BASE, w = x2.d[0];
14746
- for (; w >= 10; w /= 10) e++;
14747
- return e;
14748
- }
14749
- function getLn10(Ctor, sd, pr) {
14750
- if (sd > Ctor.LN10.sd()) {
14751
- external = true;
14752
- if (pr) Ctor.precision = pr;
14753
- throw Error(decimalError + "LN10 precision limit exceeded");
14754
- }
14755
- return round2(new Ctor(Ctor.LN10), sd);
14756
- }
14757
- function getZeroString(k) {
14758
- var zs = "";
14759
- for (; k--; ) zs += "0";
14760
- return zs;
14761
- }
14762
- function ln(y2, sd) {
14763
- var c, c0, denominator, e, numerator, sum, t, wpr, x2, n = 1, guard = 10, x3 = y2, xd = x3.d, Ctor = x3.constructor, pr = Ctor.precision;
14764
- if (x3.s < 1) throw Error(decimalError + (x3.s ? "NaN" : "-Infinity"));
14765
- if (x3.eq(ONE)) return new Ctor(0);
14766
- if (sd == null) {
14767
- external = false;
14768
- wpr = pr;
14769
- } else {
14770
- wpr = sd;
14771
- }
14772
- if (x3.eq(10)) {
14773
- if (sd == null) external = true;
14774
- return getLn10(Ctor, wpr);
14775
- }
14776
- wpr += guard;
14777
- Ctor.precision = wpr;
14778
- c = digitsToString(xd);
14779
- c0 = c.charAt(0);
14780
- e = getBase10Exponent(x3);
14781
- if (Math.abs(e) < 15e14) {
14782
- while (c0 < 7 && c0 != 1 || c0 == 1 && c.charAt(1) > 3) {
14783
- x3 = x3.times(y2);
14784
- c = digitsToString(x3.d);
14785
- c0 = c.charAt(0);
14786
- n++;
14787
- }
14788
- e = getBase10Exponent(x3);
14789
- if (c0 > 1) {
14790
- x3 = new Ctor("0." + c);
14791
- e++;
14792
- } else {
14793
- x3 = new Ctor(c0 + "." + c.slice(1));
14794
- }
14795
- } else {
14796
- t = getLn10(Ctor, wpr + 2, pr).times(e + "");
14797
- x3 = ln(new Ctor(c0 + "." + c.slice(1)), wpr - guard).plus(t);
14798
- Ctor.precision = pr;
14799
- return sd == null ? (external = true, round2(x3, pr)) : x3;
14800
- }
14801
- sum = numerator = x3 = divide(x3.minus(ONE), x3.plus(ONE), wpr);
14802
- x2 = round2(x3.times(x3), wpr);
14803
- denominator = 3;
14804
- for (; ; ) {
14805
- numerator = round2(numerator.times(x2), wpr);
14806
- t = sum.plus(divide(numerator, new Ctor(denominator), wpr));
14807
- if (digitsToString(t.d).slice(0, wpr) === digitsToString(sum.d).slice(0, wpr)) {
14808
- sum = sum.times(2);
14809
- if (e !== 0) sum = sum.plus(getLn10(Ctor, wpr + 2, pr).times(e + ""));
14810
- sum = divide(sum, new Ctor(n), wpr);
14811
- Ctor.precision = pr;
14812
- return sd == null ? (external = true, round2(sum, pr)) : sum;
14813
- }
14814
- sum = t;
14815
- denominator += 2;
14816
- }
14817
- }
14818
- function parseDecimal(x2, str) {
14819
- var e, i, len;
14820
- if ((e = str.indexOf(".")) > -1) str = str.replace(".", "");
14821
- if ((i = str.search(/e/i)) > 0) {
14822
- if (e < 0) e = i;
14823
- e += +str.slice(i + 1);
14824
- str = str.substring(0, i);
14825
- } else if (e < 0) {
14826
- e = str.length;
14827
- }
14828
- for (i = 0; str.charCodeAt(i) === 48; ) ++i;
14829
- for (len = str.length; str.charCodeAt(len - 1) === 48; ) --len;
14830
- str = str.slice(i, len);
14831
- if (str) {
14832
- len -= i;
14833
- e = e - i - 1;
14834
- x2.e = mathfloor(e / LOG_BASE);
14835
- x2.d = [];
14836
- i = (e + 1) % LOG_BASE;
14837
- if (e < 0) i += LOG_BASE;
14838
- if (i < len) {
14839
- if (i) x2.d.push(+str.slice(0, i));
14840
- for (len -= LOG_BASE; i < len; ) x2.d.push(+str.slice(i, i += LOG_BASE));
14841
- str = str.slice(i);
14842
- i = LOG_BASE - str.length;
14843
- } else {
14844
- i -= len;
14845
- }
14846
- for (; i--; ) str += "0";
14847
- x2.d.push(+str);
14848
- if (external && (x2.e > MAX_E || x2.e < -MAX_E)) throw Error(exponentOutOfRange + e);
14849
- } else {
14850
- x2.s = 0;
14851
- x2.e = 0;
14852
- x2.d = [0];
14853
- }
14854
- return x2;
14855
- }
14856
- function round2(x2, sd, rm) {
14857
- var i, j, k, n, rd, doRound, w, xdi, xd = x2.d;
14858
- for (n = 1, k = xd[0]; k >= 10; k /= 10) n++;
14859
- i = sd - n;
14860
- if (i < 0) {
14861
- i += LOG_BASE;
14862
- j = sd;
14863
- w = xd[xdi = 0];
14864
- } else {
14865
- xdi = Math.ceil((i + 1) / LOG_BASE);
14866
- k = xd.length;
14867
- if (xdi >= k) return x2;
14868
- w = k = xd[xdi];
14869
- for (n = 1; k >= 10; k /= 10) n++;
14870
- i %= LOG_BASE;
14871
- j = i - LOG_BASE + n;
14872
- }
14873
- if (rm !== void 0) {
14874
- k = mathpow(10, n - j - 1);
14875
- rd = w / k % 10 | 0;
14876
- doRound = sd < 0 || xd[xdi + 1] !== void 0 || w % k;
14877
- doRound = rm < 4 ? (rd || doRound) && (rm == 0 || rm == (x2.s < 0 ? 3 : 2)) : rd > 5 || rd == 5 && (rm == 4 || doRound || rm == 6 && // Check whether the digit to the left of the rounding digit is odd.
14878
- (i > 0 ? j > 0 ? w / mathpow(10, n - j) : 0 : xd[xdi - 1]) % 10 & 1 || rm == (x2.s < 0 ? 8 : 7));
14879
- }
14880
- if (sd < 1 || !xd[0]) {
14881
- if (doRound) {
14882
- k = getBase10Exponent(x2);
14883
- xd.length = 1;
14884
- sd = sd - k - 1;
14885
- xd[0] = mathpow(10, (LOG_BASE - sd % LOG_BASE) % LOG_BASE);
14886
- x2.e = mathfloor(-sd / LOG_BASE) || 0;
14887
- } else {
14888
- xd.length = 1;
14889
- xd[0] = x2.e = x2.s = 0;
14890
- }
14891
- return x2;
14892
- }
14893
- if (i == 0) {
14894
- xd.length = xdi;
14895
- k = 1;
14896
- xdi--;
14897
- } else {
14898
- xd.length = xdi + 1;
14899
- k = mathpow(10, LOG_BASE - i);
14900
- xd[xdi] = j > 0 ? (w / mathpow(10, n - j) % mathpow(10, j) | 0) * k : 0;
14901
- }
14902
- if (doRound) {
14903
- for (; ; ) {
14904
- if (xdi == 0) {
14905
- if ((xd[0] += k) == BASE) {
14906
- xd[0] = 1;
14907
- ++x2.e;
14908
- }
14909
- break;
14910
- } else {
14911
- xd[xdi] += k;
14912
- if (xd[xdi] != BASE) break;
14913
- xd[xdi--] = 0;
14914
- k = 1;
14915
- }
14916
- }
14917
- }
14918
- for (i = xd.length; xd[--i] === 0; ) xd.pop();
14919
- if (external && (x2.e > MAX_E || x2.e < -MAX_E)) {
14920
- throw Error(exponentOutOfRange + getBase10Exponent(x2));
14921
- }
14922
- return x2;
14923
- }
14924
- function subtract(x2, y2) {
14925
- var d, e, i, j, k, len, xd, xe, xLTy, yd, Ctor = x2.constructor, pr = Ctor.precision;
14926
- if (!x2.s || !y2.s) {
14927
- if (y2.s) y2.s = -y2.s;
14928
- else y2 = new Ctor(x2);
14929
- return external ? round2(y2, pr) : y2;
14930
- }
14931
- xd = x2.d;
14932
- yd = y2.d;
14933
- e = y2.e;
14934
- xe = x2.e;
14935
- xd = xd.slice();
14936
- k = xe - e;
14937
- if (k) {
14938
- xLTy = k < 0;
14939
- if (xLTy) {
14940
- d = xd;
14941
- k = -k;
14942
- len = yd.length;
14943
- } else {
14944
- d = yd;
14945
- e = xe;
14946
- len = xd.length;
14947
- }
14948
- i = Math.max(Math.ceil(pr / LOG_BASE), len) + 2;
14949
- if (k > i) {
14950
- k = i;
14951
- d.length = 1;
14952
- }
14953
- d.reverse();
14954
- for (i = k; i--; ) d.push(0);
14955
- d.reverse();
14956
- } else {
14957
- i = xd.length;
14958
- len = yd.length;
14959
- xLTy = i < len;
14960
- if (xLTy) len = i;
14961
- for (i = 0; i < len; i++) {
14962
- if (xd[i] != yd[i]) {
14963
- xLTy = xd[i] < yd[i];
14964
- break;
14965
- }
14966
- }
14967
- k = 0;
14968
- }
14969
- if (xLTy) {
14970
- d = xd;
14971
- xd = yd;
14972
- yd = d;
14973
- y2.s = -y2.s;
14974
- }
14975
- len = xd.length;
14976
- for (i = yd.length - len; i > 0; --i) xd[len++] = 0;
14977
- for (i = yd.length; i > k; ) {
14978
- if (xd[--i] < yd[i]) {
14979
- for (j = i; j && xd[--j] === 0; ) xd[j] = BASE - 1;
14980
- --xd[j];
14981
- xd[i] += BASE;
14982
- }
14983
- xd[i] -= yd[i];
14984
- }
14985
- for (; xd[--len] === 0; ) xd.pop();
14986
- for (; xd[0] === 0; xd.shift()) --e;
14987
- if (!xd[0]) return new Ctor(0);
14988
- y2.d = xd;
14989
- y2.e = e;
14990
- return external ? round2(y2, pr) : y2;
14991
- }
14992
- function toString2(x2, isExp, sd) {
14993
- var k, e = getBase10Exponent(x2), str = digitsToString(x2.d), len = str.length;
14994
- if (isExp) {
14995
- if (sd && (k = sd - len) > 0) {
14996
- str = str.charAt(0) + "." + str.slice(1) + getZeroString(k);
14997
- } else if (len > 1) {
14998
- str = str.charAt(0) + "." + str.slice(1);
14999
- }
15000
- str = str + (e < 0 ? "e" : "e+") + e;
15001
- } else if (e < 0) {
15002
- str = "0." + getZeroString(-e - 1) + str;
15003
- if (sd && (k = sd - len) > 0) str += getZeroString(k);
15004
- } else if (e >= len) {
15005
- str += getZeroString(e + 1 - len);
15006
- if (sd && (k = sd - e - 1) > 0) str = str + "." + getZeroString(k);
15007
- } else {
15008
- if ((k = e + 1) < len) str = str.slice(0, k) + "." + str.slice(k);
15009
- if (sd && (k = sd - len) > 0) {
15010
- if (e + 1 === len) str += ".";
15011
- str += getZeroString(k);
15012
- }
15013
- }
15014
- return x2.s < 0 ? "-" + str : str;
15015
- }
15016
- function truncate(arr, len) {
15017
- if (arr.length > len) {
15018
- arr.length = len;
15019
- return true;
15020
- }
15021
- }
15022
- function clone(obj) {
15023
- var i, p, ps;
15024
- function Decimal2(value) {
15025
- var x2 = this;
15026
- if (!(x2 instanceof Decimal2)) return new Decimal2(value);
15027
- x2.constructor = Decimal2;
15028
- if (value instanceof Decimal2) {
15029
- x2.s = value.s;
15030
- x2.e = value.e;
15031
- x2.d = (value = value.d) ? value.slice() : value;
15032
- return;
15033
- }
15034
- if (typeof value === "number") {
15035
- if (value * 0 !== 0) {
15036
- throw Error(invalidArgument + value);
15037
- }
15038
- if (value > 0) {
15039
- x2.s = 1;
15040
- } else if (value < 0) {
15041
- value = -value;
15042
- x2.s = -1;
15043
- } else {
15044
- x2.s = 0;
15045
- x2.e = 0;
15046
- x2.d = [0];
15047
- return;
15048
- }
15049
- if (value === ~~value && value < 1e7) {
15050
- x2.e = 0;
15051
- x2.d = [value];
15052
- return;
15053
- }
15054
- return parseDecimal(x2, value.toString());
15055
- } else if (typeof value !== "string") {
15056
- throw Error(invalidArgument + value);
15057
- }
15058
- if (value.charCodeAt(0) === 45) {
15059
- value = value.slice(1);
15060
- x2.s = -1;
15061
- } else {
15062
- x2.s = 1;
15063
- }
15064
- if (isDecimal.test(value)) parseDecimal(x2, value);
15065
- else throw Error(invalidArgument + value);
15066
- }
15067
- Decimal2.prototype = P;
15068
- Decimal2.ROUND_UP = 0;
15069
- Decimal2.ROUND_DOWN = 1;
15070
- Decimal2.ROUND_CEIL = 2;
15071
- Decimal2.ROUND_FLOOR = 3;
15072
- Decimal2.ROUND_HALF_UP = 4;
15073
- Decimal2.ROUND_HALF_DOWN = 5;
15074
- Decimal2.ROUND_HALF_EVEN = 6;
15075
- Decimal2.ROUND_HALF_CEIL = 7;
15076
- Decimal2.ROUND_HALF_FLOOR = 8;
15077
- Decimal2.clone = clone;
15078
- Decimal2.config = Decimal2.set = config;
15079
- if (obj === void 0) obj = {};
15080
- if (obj) {
15081
- ps = ["precision", "rounding", "toExpNeg", "toExpPos", "LN10"];
15082
- for (i = 0; i < ps.length; ) if (!obj.hasOwnProperty(p = ps[i++])) obj[p] = this[p];
15083
- }
15084
- Decimal2.config(obj);
15085
- return Decimal2;
15086
- }
15087
- function config(obj) {
15088
- if (!obj || typeof obj !== "object") {
15089
- throw Error(decimalError + "Object expected");
15090
- }
15091
- var i, p, v, ps = [
15092
- "precision",
15093
- 1,
15094
- MAX_DIGITS,
15095
- "rounding",
15096
- 0,
15097
- 8,
15098
- "toExpNeg",
15099
- -1 / 0,
15100
- 0,
15101
- "toExpPos",
15102
- 0,
15103
- 1 / 0
15104
- ];
15105
- for (i = 0; i < ps.length; i += 3) {
15106
- if ((v = obj[p = ps[i]]) !== void 0) {
15107
- if (mathfloor(v) === v && v >= ps[i + 1] && v <= ps[i + 2]) this[p] = v;
15108
- else throw Error(invalidArgument + p + ": " + v);
15109
- }
15110
- }
15111
- if ((v = obj[p = "LN10"]) !== void 0) {
15112
- if (v == Math.LN10) this[p] = new this(v);
15113
- else throw Error(invalidArgument + p + ": " + v);
15114
- }
15115
- return this;
15116
- }
15117
- var Decimal = clone(defaults);
15118
- ONE = new Decimal(1);
15119
- var decimal_default = Decimal;
14932
+ // ../node_modules/recharts/es6/util/scale/getNiceTickValues.js
14933
+ var import_decimal2 = __toESM(require_decimal());
15120
14934
 
15121
14935
  // ../node_modules/recharts/es6/util/scale/util/arithmetic.js
14936
+ var import_decimal = __toESM(require_decimal());
15122
14937
  function getDigitCount(value) {
15123
14938
  var result;
15124
14939
  if (value === 0) {
15125
14940
  result = 1;
15126
14941
  } else {
15127
- result = Math.floor(new decimal_default(value).abs().log(10).toNumber()) + 1;
14942
+ result = Math.floor(new import_decimal.default(value).abs().log(10).toNumber()) + 1;
15128
14943
  }
15129
14944
  return result;
15130
14945
  }
15131
14946
  function rangeStep(start, end, step) {
15132
- var num = new decimal_default(start);
14947
+ var num = new import_decimal.default(start);
15133
14948
  var i = 0;
15134
14949
  var result = [];
15135
14950
  while (num.lt(end) && i < 1e5) {
@@ -15191,25 +15006,25 @@ var getValidInterval = (_ref) => {
15191
15006
  };
15192
15007
  var getAdaptiveStep = (roughStep, allowDecimals, correctionFactor) => {
15193
15008
  if (roughStep.lte(0)) {
15194
- return new decimal_default(0);
15009
+ return new import_decimal2.default(0);
15195
15010
  }
15196
15011
  var digitCount = getDigitCount(roughStep.toNumber());
15197
- var digitCountValue = new decimal_default(10).pow(digitCount);
15012
+ var digitCountValue = new import_decimal2.default(10).pow(digitCount);
15198
15013
  var stepRatio = roughStep.div(digitCountValue);
15199
15014
  var stepRatioScale = digitCount !== 1 ? 0.05 : 0.1;
15200
- var amendStepRatio = new decimal_default(Math.ceil(stepRatio.div(stepRatioScale).toNumber())).add(correctionFactor).mul(stepRatioScale);
15015
+ var amendStepRatio = new import_decimal2.default(Math.ceil(stepRatio.div(stepRatioScale).toNumber())).add(correctionFactor).mul(stepRatioScale);
15201
15016
  var formatStep = amendStepRatio.mul(digitCountValue);
15202
- return allowDecimals ? new decimal_default(formatStep.toNumber()) : new decimal_default(Math.ceil(formatStep.toNumber()));
15017
+ return allowDecimals ? new import_decimal2.default(formatStep.toNumber()) : new import_decimal2.default(Math.ceil(formatStep.toNumber()));
15203
15018
  };
15204
15019
  var getSnap125Step = (roughStep, allowDecimals, correctionFactor) => {
15205
15020
  var _NICE_STEPS$niceIdx;
15206
15021
  if (roughStep.lte(0)) {
15207
- return new decimal_default(0);
15022
+ return new import_decimal2.default(0);
15208
15023
  }
15209
15024
  var NICE_STEPS = [1, 2, 2.5, 5];
15210
15025
  var roughNum = roughStep.toNumber();
15211
- var exponent = Math.floor(new decimal_default(roughNum).abs().log(10).toNumber());
15212
- var magnitude = new decimal_default(10).pow(exponent);
15026
+ var exponent = Math.floor(new import_decimal2.default(roughNum).abs().log(10).toNumber());
15027
+ var magnitude = new import_decimal2.default(10).pow(exponent);
15213
15028
  var normalized = roughStep.div(magnitude).toNumber();
15214
15029
  var niceIdx = NICE_STEPS.findIndex((s) => s >= normalized - 1e-10);
15215
15030
  if (niceIdx === -1) {
@@ -15220,32 +15035,32 @@ var getSnap125Step = (roughStep, allowDecimals, correctionFactor) => {
15220
15035
  if (niceIdx >= NICE_STEPS.length) {
15221
15036
  var extraMag = Math.floor(niceIdx / NICE_STEPS.length);
15222
15037
  niceIdx %= NICE_STEPS.length;
15223
- magnitude = magnitude.mul(new decimal_default(10).pow(extraMag));
15038
+ magnitude = magnitude.mul(new import_decimal2.default(10).pow(extraMag));
15224
15039
  }
15225
15040
  var niceStep = (_NICE_STEPS$niceIdx = NICE_STEPS[niceIdx]) !== null && _NICE_STEPS$niceIdx !== void 0 ? _NICE_STEPS$niceIdx : 1;
15226
- var formatStep = new decimal_default(niceStep).mul(magnitude);
15227
- return allowDecimals ? formatStep : new decimal_default(Math.ceil(formatStep.toNumber()));
15041
+ var formatStep = new import_decimal2.default(niceStep).mul(magnitude);
15042
+ return allowDecimals ? formatStep : new import_decimal2.default(Math.ceil(formatStep.toNumber()));
15228
15043
  };
15229
15044
  var getTickOfSingleValue = (value, tickCount, allowDecimals) => {
15230
- var step = new decimal_default(1);
15231
- var middle = new decimal_default(value);
15045
+ var step = new import_decimal2.default(1);
15046
+ var middle = new import_decimal2.default(value);
15232
15047
  if (!middle.isint() && allowDecimals) {
15233
15048
  var absVal = Math.abs(value);
15234
15049
  if (absVal < 1) {
15235
- step = new decimal_default(10).pow(getDigitCount(value) - 1);
15236
- middle = new decimal_default(Math.floor(middle.div(step).toNumber())).mul(step);
15050
+ step = new import_decimal2.default(10).pow(getDigitCount(value) - 1);
15051
+ middle = new import_decimal2.default(Math.floor(middle.div(step).toNumber())).mul(step);
15237
15052
  } else if (absVal > 1) {
15238
- middle = new decimal_default(Math.floor(value));
15053
+ middle = new import_decimal2.default(Math.floor(value));
15239
15054
  }
15240
15055
  } else if (value === 0) {
15241
- middle = new decimal_default(Math.floor((tickCount - 1) / 2));
15056
+ middle = new import_decimal2.default(Math.floor((tickCount - 1) / 2));
15242
15057
  } else if (!allowDecimals) {
15243
- middle = new decimal_default(Math.floor(value));
15058
+ middle = new import_decimal2.default(Math.floor(value));
15244
15059
  }
15245
15060
  var middleIndex = Math.floor((tickCount - 1) / 2);
15246
15061
  var ticks2 = [];
15247
15062
  for (var i = 0; i < tickCount; i++) {
15248
- ticks2.push(middle.add(new decimal_default(i - middleIndex).mul(step)).toNumber());
15063
+ ticks2.push(middle.add(new import_decimal2.default(i - middleIndex).mul(step)).toNumber());
15249
15064
  }
15250
15065
  return ticks2;
15251
15066
  };
@@ -15254,21 +15069,21 @@ var _calculateStep = function calculateStep(min2, max2, tickCount, allowDecimals
15254
15069
  var stepFn = arguments.length > 5 && arguments[5] !== void 0 ? arguments[5] : getAdaptiveStep;
15255
15070
  if (!Number.isFinite((max2 - min2) / (tickCount - 1))) {
15256
15071
  return {
15257
- step: new decimal_default(0),
15258
- tickMin: new decimal_default(0),
15259
- tickMax: new decimal_default(0)
15072
+ step: new import_decimal2.default(0),
15073
+ tickMin: new import_decimal2.default(0),
15074
+ tickMax: new import_decimal2.default(0)
15260
15075
  };
15261
15076
  }
15262
- var step = stepFn(new decimal_default(max2).sub(min2).div(tickCount - 1), allowDecimals, correctionFactor);
15077
+ var step = stepFn(new import_decimal2.default(max2).sub(min2).div(tickCount - 1), allowDecimals, correctionFactor);
15263
15078
  var middle;
15264
15079
  if (min2 <= 0 && max2 >= 0) {
15265
- middle = new decimal_default(0);
15080
+ middle = new import_decimal2.default(0);
15266
15081
  } else {
15267
- middle = new decimal_default(min2).add(max2).div(2);
15268
- middle = middle.sub(new decimal_default(middle).mod(step));
15082
+ middle = new import_decimal2.default(min2).add(max2).div(2);
15083
+ middle = middle.sub(new import_decimal2.default(middle).mod(step));
15269
15084
  }
15270
15085
  var belowCount = Math.ceil(middle.sub(min2).div(step).toNumber());
15271
- var upCount = Math.ceil(new decimal_default(max2).sub(middle).div(step).toNumber());
15086
+ var upCount = Math.ceil(new import_decimal2.default(max2).sub(middle).div(step).toNumber());
15272
15087
  var scaleCount = belowCount + upCount + 1;
15273
15088
  if (scaleCount > tickCount) {
15274
15089
  return _calculateStep(min2, max2, tickCount, allowDecimals, correctionFactor + 1, stepFn);
@@ -15279,8 +15094,8 @@ var _calculateStep = function calculateStep(min2, max2, tickCount, allowDecimals
15279
15094
  }
15280
15095
  return {
15281
15096
  step,
15282
- tickMin: middle.sub(new decimal_default(belowCount).mul(step)),
15283
- tickMax: middle.add(new decimal_default(upCount).mul(step))
15097
+ tickMin: middle.sub(new import_decimal2.default(belowCount).mul(step)),
15098
+ tickMax: middle.add(new import_decimal2.default(upCount).mul(step))
15284
15099
  };
15285
15100
  };
15286
15101
  var getNiceTickValues = function getNiceTickValues2(_ref3) {
@@ -15299,7 +15114,7 @@ var getNiceTickValues = function getNiceTickValues2(_ref3) {
15299
15114
  }
15300
15115
  var stepFn = niceTicksMode === "snap125" ? getSnap125Step : getAdaptiveStep;
15301
15116
  var _calculateStep2 = _calculateStep(cormin, cormax, count, allowDecimals, 0, stepFn), step = _calculateStep2.step, tickMin = _calculateStep2.tickMin, tickMax = _calculateStep2.tickMax;
15302
- var values = rangeStep(tickMin, tickMax.add(new decimal_default(0.1).mul(step)), step);
15117
+ var values = rangeStep(tickMin, tickMax.add(new import_decimal2.default(0.1).mul(step)), step);
15303
15118
  return min2 > max2 ? values.reverse() : values;
15304
15119
  };
15305
15120
  var getTickValuesFixedDomain = function getTickValuesFixedDomain2(_ref5, tickCount) {
@@ -15315,8 +15130,8 @@ var getTickValuesFixedDomain = function getTickValuesFixedDomain2(_ref5, tickCou
15315
15130
  }
15316
15131
  var stepFn = niceTicksMode === "snap125" ? getSnap125Step : getAdaptiveStep;
15317
15132
  var count = Math.max(tickCount, 2);
15318
- var step = stepFn(new decimal_default(cormax).sub(cormin).div(count - 1), allowDecimals, 0);
15319
- var values = [...rangeStep(new decimal_default(cormin), new decimal_default(cormax), step), cormax];
15133
+ var step = stepFn(new import_decimal2.default(cormax).sub(cormin).div(count - 1), allowDecimals, 0);
15134
+ var values = [...rangeStep(new import_decimal2.default(cormin), new import_decimal2.default(cormax), step), cormax];
15320
15135
  if (allowDecimals === false) {
15321
15136
  values = values.map((value) => Math.round(value));
15322
15137
  var last = values.length - 1;
@@ -16156,15 +15971,15 @@ function ordinal() {
16156
15971
 
16157
15972
  // ../node_modules/d3-scale/src/band.js
16158
15973
  function band() {
16159
- var scale = ordinal().unknown(void 0), domain = scale.domain, ordinalRange = scale.range, r0 = 0, r1 = 1, step, bandwidth, round3 = false, paddingInner = 0, paddingOuter = 0, align = 0.5;
15974
+ var scale = ordinal().unknown(void 0), domain = scale.domain, ordinalRange = scale.range, r0 = 0, r1 = 1, step, bandwidth, round2 = false, paddingInner = 0, paddingOuter = 0, align = 0.5;
16160
15975
  delete scale.unknown;
16161
15976
  function rescale() {
16162
15977
  var n = domain().length, reverse = r1 < r0, start = reverse ? r1 : r0, stop = reverse ? r0 : r1;
16163
15978
  step = (stop - start) / Math.max(1, n - paddingInner + paddingOuter * 2);
16164
- if (round3) step = Math.floor(step);
15979
+ if (round2) step = Math.floor(step);
16165
15980
  start += (stop - start - step * (n - paddingInner)) * align;
16166
15981
  bandwidth = step * (1 - paddingInner);
16167
- if (round3) start = Math.round(start), bandwidth = Math.round(bandwidth);
15982
+ if (round2) start = Math.round(start), bandwidth = Math.round(bandwidth);
16168
15983
  var values = range2(n).map(function(i) {
16169
15984
  return start + step * i;
16170
15985
  });
@@ -16177,7 +15992,7 @@ function band() {
16177
15992
  return arguments.length ? ([r0, r1] = _, r0 = +r0, r1 = +r1, rescale()) : [r0, r1];
16178
15993
  };
16179
15994
  scale.rangeRound = function(_) {
16180
- return [r0, r1] = _, r0 = +r0, r1 = +r1, round3 = true, rescale();
15995
+ return [r0, r1] = _, r0 = +r0, r1 = +r1, round2 = true, rescale();
16181
15996
  };
16182
15997
  scale.bandwidth = function() {
16183
15998
  return bandwidth;
@@ -16186,7 +16001,7 @@ function band() {
16186
16001
  return step;
16187
16002
  };
16188
16003
  scale.round = function(_) {
16189
- return arguments.length ? (round3 = !!_, rescale()) : round3;
16004
+ return arguments.length ? (round2 = !!_, rescale()) : round2;
16190
16005
  };
16191
16006
  scale.padding = function(_) {
16192
16007
  return arguments.length ? (paddingInner = Math.min(1, paddingOuter = +_), rescale()) : paddingInner;
@@ -16201,7 +16016,7 @@ function band() {
16201
16016
  return arguments.length ? (align = Math.max(0, Math.min(1, _)), rescale()) : align;
16202
16017
  };
16203
16018
  scale.copy = function() {
16204
- return band(domain(), [r0, r1]).round(round3).paddingInner(paddingInner).paddingOuter(paddingOuter).align(align);
16019
+ return band(domain(), [r0, r1]).round(round2).paddingInner(paddingInner).paddingOuter(paddingOuter).align(align);
16205
16020
  };
16206
16021
  return initRange.apply(rescale(), arguments);
16207
16022
  }
@@ -17365,10 +17180,10 @@ function unsquare(x2) {
17365
17180
  return Math.sign(x2) * Math.sqrt(Math.abs(x2));
17366
17181
  }
17367
17182
  function radial() {
17368
- var squared = continuous(), range3 = [0, 1], round3 = false, unknown;
17183
+ var squared = continuous(), range3 = [0, 1], round2 = false, unknown;
17369
17184
  function scale(x2) {
17370
17185
  var y2 = unsquare(squared(x2));
17371
- return isNaN(y2) ? unknown : round3 ? Math.round(y2) : y2;
17186
+ return isNaN(y2) ? unknown : round2 ? Math.round(y2) : y2;
17372
17187
  }
17373
17188
  scale.invert = function(y2) {
17374
17189
  return squared.invert(square(y2));
@@ -17383,7 +17198,7 @@ function radial() {
17383
17198
  return scale.range(_).round(true);
17384
17199
  };
17385
17200
  scale.round = function(_) {
17386
- return arguments.length ? (round3 = !!_, scale) : round3;
17201
+ return arguments.length ? (round2 = !!_, scale) : round2;
17387
17202
  };
17388
17203
  scale.clamp = function(_) {
17389
17204
  return arguments.length ? (squared.clamp(_), scale) : squared.clamp();
@@ -17392,7 +17207,7 @@ function radial() {
17392
17207
  return arguments.length ? (unknown = _, scale) : unknown;
17393
17208
  };
17394
17209
  scale.copy = function() {
17395
- return radial(squared.domain(), range3).round(round3).clamp(squared.clamp()).unknown(unknown);
17210
+ return radial(squared.domain(), range3).round(round2).clamp(squared.clamp()).unknown(unknown);
17396
17211
  };
17397
17212
  initRange.apply(scale, arguments);
17398
17213
  return linearish(scale);
@@ -21321,10 +21136,10 @@ function useChart() {
21321
21136
  }
21322
21137
  return context;
21323
21138
  }
21324
- var ChartContainer = React8.forwardRef(({ id, className, children, config: config2, ...props }, ref) => {
21139
+ var ChartContainer = React8.forwardRef(({ id, className, children, config, ...props }, ref) => {
21325
21140
  const uniqueId2 = React8.useId();
21326
21141
  const chartId = `chart-${id || uniqueId2.replace(/:/g, "")}`;
21327
- return /* @__PURE__ */ jsx(ChartContext.Provider, { value: { config: config2 }, children: /* @__PURE__ */ jsxs(
21142
+ return /* @__PURE__ */ jsx(ChartContext.Provider, { value: { config }, children: /* @__PURE__ */ jsxs(
21328
21143
  "div",
21329
21144
  {
21330
21145
  "data-chart": chartId,
@@ -21335,16 +21150,16 @@ var ChartContainer = React8.forwardRef(({ id, className, children, config: confi
21335
21150
  ),
21336
21151
  ...props,
21337
21152
  children: [
21338
- /* @__PURE__ */ jsx(ChartStyle, { id: chartId, config: config2 }),
21153
+ /* @__PURE__ */ jsx(ChartStyle, { id: chartId, config }),
21339
21154
  /* @__PURE__ */ jsx(ResponsiveContainer, { children })
21340
21155
  ]
21341
21156
  }
21342
21157
  ) });
21343
21158
  });
21344
21159
  ChartContainer.displayName = "Chart";
21345
- var ChartStyle = ({ id, config: config2 }) => {
21346
- const colorConfig = Object.entries(config2).filter(
21347
- ([_, config3]) => config3.theme || config3.color
21160
+ var ChartStyle = ({ id, config }) => {
21161
+ const colorConfig = Object.entries(config).filter(
21162
+ ([_, config2]) => config2.theme || config2.color
21348
21163
  );
21349
21164
  if (!colorConfig.length) {
21350
21165
  return null;
@@ -21382,20 +21197,20 @@ var ChartTooltipContent = React8.forwardRef(
21382
21197
  nameKey,
21383
21198
  labelKey
21384
21199
  }, ref) => {
21385
- const { config: config2 } = useChart();
21200
+ const { config } = useChart();
21386
21201
  const tooltipLabel = React8.useMemo(() => {
21387
21202
  if (hideLabel || !payload?.length) {
21388
21203
  return null;
21389
21204
  }
21390
21205
  const [item] = payload;
21391
21206
  const key = `${labelKey || item.dataKey || item.name || "value"}`;
21392
- const itemConfig = getPayloadConfigFromPayload(config2, item, key);
21393
- const value = !labelKey && typeof label === "string" ? config2[label]?.label || label : itemConfig?.label;
21207
+ const itemConfig = getPayloadConfigFromPayload(config, item, key);
21208
+ const value = !labelKey && typeof label === "string" ? config[label]?.label || label : itemConfig?.label;
21394
21209
  if (labelFormatter && typeof value === "string") {
21395
21210
  return labelFormatter(value, payload);
21396
21211
  }
21397
21212
  return value;
21398
- }, [label, labelFormatter, payload, hideLabel, labelKey, config2]);
21213
+ }, [label, labelFormatter, payload, hideLabel, labelKey, config]);
21399
21214
  if (!active || !payload?.length) {
21400
21215
  return null;
21401
21216
  }
@@ -21422,7 +21237,7 @@ var ChartTooltipContent = React8.forwardRef(
21422
21237
  /* @__PURE__ */ jsx("div", { className: "grid gap-1.5", children: payload.map((item, index) => {
21423
21238
  const key = `${nameKey || item.name || item.dataKey || "value"}`;
21424
21239
  const itemConfig = getPayloadConfigFromPayload(
21425
- config2,
21240
+ config,
21426
21241
  item,
21427
21242
  key
21428
21243
  );
@@ -21479,30 +21294,196 @@ var ChartTooltipContent = React8.forwardRef(
21479
21294
  }
21480
21295
  );
21481
21296
  ChartTooltipContent.displayName = "ChartTooltipContent";
21482
- function getPayloadConfigFromPayload(config2, payload, key) {
21297
+ function getPayloadConfigFromPayload(config, payload, key) {
21483
21298
  if (typeof payload !== "object" || payload === null) {
21484
21299
  return void 0;
21485
21300
  }
21486
21301
  const payloadPayload = "payload" in payload && typeof payload.payload === "object" && payload.payload !== null ? payload.payload : void 0;
21487
21302
  const configLabelKey = key;
21488
- if (key in config2 || payloadPayload && configLabelKey in payloadPayload) {
21489
- return config2[configLabelKey];
21303
+ if (key in config || payloadPayload && configLabelKey in payloadPayload) {
21304
+ return config[configLabelKey];
21490
21305
  }
21491
- return config2[key];
21306
+ return config[key];
21492
21307
  }
21308
+ var getNextSortDirection = (direction) => {
21309
+ if (!direction) return "ASC";
21310
+ if (direction === "ASC") return "DESC";
21311
+ return null;
21312
+ };
21313
+ var SortButton = ({ onSort, sortDirection }) => {
21314
+ if (!sortDirection)
21315
+ return /* @__PURE__ */ jsx(
21316
+ "svg",
21317
+ {
21318
+ xmlns: "http://www.w3.org/2000/svg",
21319
+ fill: "none",
21320
+ viewBox: "0 0 24 24",
21321
+ strokeWidth: 1.5,
21322
+ stroke: "currentColor",
21323
+ className: "ml-2 w-6 h-6",
21324
+ onClick: onSort,
21325
+ children: /* @__PURE__ */ jsx(
21326
+ "path",
21327
+ {
21328
+ strokeLinecap: "round",
21329
+ strokeLinejoin: "round",
21330
+ d: "M8.25 15L12 18.75 15.75 15m-7.5-6L12 5.25 15.75 9"
21331
+ }
21332
+ )
21333
+ }
21334
+ );
21335
+ return sortDirection === "ASC" ? /* @__PURE__ */ jsx(ChevronUpIcon_default, { className: "ml-2 w-5 h-5 text-slate-700", onClick: onSort }) : /* @__PURE__ */ jsx(ChevronDownIcon_default, { className: "ml-2 w-5 h-5 text-slate-700", onClick: onSort });
21336
+ };
21337
+ var TableCell = ({
21338
+ className = "",
21339
+ header = false,
21340
+ enablesort = false,
21341
+ children,
21342
+ sortKey = null,
21343
+ defaultSortDirection = null,
21344
+ ...props
21345
+ }) => {
21346
+ const router = useRouter();
21347
+ const sortKeys = getSortKeys(router.query?.sort);
21348
+ const onSort = (event) => {
21349
+ event.preventDefault();
21350
+ const next = getNextSortDirection(sortKeys[sortKey]);
21351
+ let newSortKeys;
21352
+ if (!next && sortKeys[sortKey]) {
21353
+ delete sortKeys[sortKey];
21354
+ newSortKeys = sortKeys;
21355
+ } else {
21356
+ newSortKeys = {
21357
+ ...sortKeys,
21358
+ [sortKey]: sortKeys[sortKey] === "ASC" ? "DESC" : "ASC"
21359
+ };
21360
+ }
21361
+ const sort = Object.entries(newSortKeys).map(([key, value]) => [key, value].join("_")).join(",");
21362
+ const { sort: currentSort, ...rest } = router.query;
21363
+ const newRest = Object.keys(rest).map((key) => [key, rest[key]].join("=")).join("&");
21364
+ const newURL = Object.keys(rest).length === 0 ? `${router.basePath}?sort=${sort}` : `${router.basePath}?${newRest}&sort=${sort}`;
21365
+ if (sort) router.push(newURL);
21366
+ else
21367
+ router.push({
21368
+ query: normalizeQuery(rest)
21369
+ });
21370
+ };
21371
+ const Td = header ? "th" : "td";
21372
+ return /* @__PURE__ */ jsx(
21373
+ Td,
21374
+ {
21375
+ className: clsx_default(
21376
+ header ? "px-4 py-3 text-left text-text-muted" : "whitespace-nowrap px-4 py-3 text-text-muted border-b dark:border-slate-300 last:border-b-0 sm:border-b-0 text-left flex items-center sm:table-cell",
21377
+ className
21378
+ ),
21379
+ ...props,
21380
+ children: /* @__PURE__ */ jsxs("div", { className: "flex items-center", children: [
21381
+ children,
21382
+ Td === "th" && enablesort && sortKey && /* @__PURE__ */ jsx(
21383
+ SortButton,
21384
+ {
21385
+ onSort,
21386
+ sortDirection: Object.keys(sortKeys).length ? sortKeys[sortKey] : defaultSortDirection
21387
+ }
21388
+ )
21389
+ ] })
21390
+ }
21391
+ );
21392
+ };
21393
+ var TableCell_default = TableCell;
21394
+ var TableRow = ({
21395
+ className = "",
21396
+ children = [],
21397
+ header = false,
21398
+ enablesort = false,
21399
+ ...props
21400
+ }) => {
21401
+ const clone = (cell) => React8__default?.cloneElement(cell || /* @__PURE__ */ jsx("span", {}), { header, enablesort });
21402
+ const cells = React8__default.Children.map(children, clone);
21403
+ return /* @__PURE__ */ jsx(
21404
+ "tr",
21405
+ {
21406
+ className: clsx_default(
21407
+ "grid grid-cols-1 auto-rows-fr border border-border-subtle sm:border-0 rounded-md sm:mb-0 sm:table-row sm:rounded-none bg-surface sm:bg-inherit dark:sm:bg-inherit",
21408
+ className
21409
+ ),
21410
+ ...props,
21411
+ children: cells
21412
+ }
21413
+ );
21414
+ };
21415
+ var TableRow_default = TableRow;
21416
+ var buildRows = (props) => {
21417
+ const header = [];
21418
+ const body = [];
21419
+ const footer = [];
21420
+ React8__default.Children.forEach(props.children, (row) => {
21421
+ if (row?.props?.header) {
21422
+ header.push(row);
21423
+ } else if (row?.props?.footer) {
21424
+ footer.push(row);
21425
+ } else {
21426
+ body.push(row);
21427
+ }
21428
+ });
21429
+ return { header, footer, body };
21430
+ };
21431
+ var Table = ({ className = "", ...props }) => {
21432
+ const [rows, setRows] = useState(buildRows(props));
21433
+ const { formatMessage } = useIntl();
21434
+ const rowsWithSort = {
21435
+ ...rows,
21436
+ header: React8__default.Children.map(rows.header, (c) => React8__default.cloneElement(c))
21437
+ };
21438
+ useEffect(() => {
21439
+ setRows(buildRows(props));
21440
+ }, [props.children]);
21441
+ return rowsWithSort.header.length || rowsWithSort.body.length ? /* @__PURE__ */ jsxs(
21442
+ "table",
21443
+ {
21444
+ className: clsx_default(
21445
+ "overflow-hidden my-3 flex w-full flex-row flex-nowrap divide-y divide-slate-200 dark:divide-slate-600 shadow-sm sm:rounded-lg sm:bg-white dark:bg-slate-950",
21446
+ className
21447
+ ),
21448
+ ...props,
21449
+ children: [
21450
+ /* @__PURE__ */ jsx("thead", { className: "hidden sm:table-header-group bg-surface-raised text-sm text-text-secondary", children: rowsWithSort.header }),
21451
+ rowsWithSort.body.length ? /* @__PURE__ */ jsx("tbody", { className: "space-y-4 sm:space-y-0 flex-1 sm:divide-y divide-slate-200 dark:divide-slate-700 sm:bg-white dark:sm:bg-slate-800 sm:flex-none", children: rowsWithSort.body }) : null,
21452
+ rowsWithSort.footer.length ? /* @__PURE__ */ jsx("tfoot", { children: rowsWithSort.footer }) : null
21453
+ ]
21454
+ }
21455
+ ) : /* @__PURE__ */ jsx(
21456
+ NoData_default,
21457
+ {
21458
+ message: formatMessage({
21459
+ id: "data",
21460
+ defaultMessage: "Data"
21461
+ })
21462
+ }
21463
+ );
21464
+ };
21465
+ Table.Row = TableRow_default;
21466
+ Table.Cell = TableCell_default;
21467
+ var Table_default = Table;
21468
+ var MediaAvatar = ({ file, className = "" }) => {
21469
+ const { formatMessage } = useIntl();
21470
+ return /* @__PURE__ */ jsx("div", { className: clsx_default("h-10 w-10 shrink-0", className), children: file ? /* @__PURE__ */ jsx(
21471
+ ImageWithFallback_default,
21472
+ {
21473
+ className: "relative h-10 w-10 rounded-sm",
21474
+ src: file.url,
21475
+ width: 100,
21476
+ height: 100,
21477
+ alt: formatMessage({
21478
+ id: "image_not_available",
21479
+ defaultMessage: "Image not available"
21480
+ })
21481
+ }
21482
+ ) : /* @__PURE__ */ jsx(NoImage_default, {}) });
21483
+ };
21484
+ var MediaAvatar_default = MediaAvatar;
21493
21485
  /*! Bundled license information:
21494
21486
 
21495
- use-sync-external-store/cjs/use-sync-external-store-shim.production.js:
21496
- (**
21497
- * @license React
21498
- * use-sync-external-store-shim.production.js
21499
- *
21500
- * Copyright (c) Meta Platforms, Inc. and affiliates.
21501
- *
21502
- * This source code is licensed under the MIT license found in the
21503
- * LICENSE file in the root directory of this source tree.
21504
- *)
21505
-
21506
21487
  use-sync-external-store/cjs/use-sync-external-store-shim.development.js:
21507
21488
  (**
21508
21489
  * @license React
@@ -21514,17 +21495,6 @@ use-sync-external-store/cjs/use-sync-external-store-shim.development.js:
21514
21495
  * LICENSE file in the root directory of this source tree.
21515
21496
  *)
21516
21497
 
21517
- use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.js:
21518
- (**
21519
- * @license React
21520
- * use-sync-external-store-shim/with-selector.production.js
21521
- *
21522
- * Copyright (c) Meta Platforms, Inc. and affiliates.
21523
- *
21524
- * This source code is licensed under the MIT license found in the
21525
- * LICENSE file in the root directory of this source tree.
21526
- *)
21527
-
21528
21498
  use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.development.js:
21529
21499
  (**
21530
21500
  * @license React
@@ -21535,6 +21505,9 @@ use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.developme
21535
21505
  * This source code is licensed under the MIT license found in the
21536
21506
  * LICENSE file in the root directory of this source tree.
21537
21507
  *)
21508
+
21509
+ decimal.js-light/decimal.js:
21510
+ (*! decimal.js-light v2.5.1 https://github.com/MikeMcl/decimal.js-light/LICENCE *)
21538
21511
  */
21539
21512
 
21540
- export { Accordion_default as Accordion, AccordionHeader_default as AccordionHeader, AccordionItem_default as AccordionItem, ActiveInActive_default as ActiveInActive, AnimatedCounter_default as AnimatedCounter, BreadCrumbs_default as BreadCrumbs, Button_default as Button, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, ChartContainer, ChartStyle, ChartTooltip, ChartTooltipContent, CopyableText_default as CopyableText, DateInput_default as DateInput, DateRangeFilterInput_default as DateRangeFilterInput, DetailHeader_default as DetailHeader, DraggableIcon_default as DraggableIcon, ErrorBoundary_default as ErrorBoundary, ErrorFallback_default as ErrorFallback, ImageWithFallback_default as ImageWithFallback, InfoTextBanner_default as InfoTextBanner, ListHeader_default as ListHeader, Loading_default as Loading, NoData_default as NoData, NoImage_default as NoImage, NoImageSvg_default as NoImageSvg, PageHeader_default as PageHeader, Pagination_default as Pagination, Portal_default as Portal, SaveAndCancelButtons_default as SaveAndCancelButtons, SearchField_default as SearchField, TagList_default as TagList, TagListForm_default as TagListForm, Toggle_default as Toggle, ToolTip_default as ToolTip };
21513
+ export { Accordion_default as Accordion, AccordionHeader_default as AccordionHeader, AccordionItem_default as AccordionItem, ActiveInActive_default as ActiveInActive, AnimatedCounter_default as AnimatedCounter, BreadCrumbs_default as BreadCrumbs, Button_default as Button, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, ChartContainer, ChartStyle, ChartTooltip, ChartTooltipContent, CopyableText_default as CopyableText, DateInput_default as DateInput, DateRangeFilterInput_default as DateRangeFilterInput, DetailHeader_default as DetailHeader, DraggableIcon_default as DraggableIcon, ErrorBoundary_default as ErrorBoundary, ErrorFallback_default as ErrorFallback, ImageWithFallback_default as ImageWithFallback, InfoTextBanner_default as InfoTextBanner, ListHeader_default as ListHeader, Loading_default as Loading, MediaAvatar_default as MediaAvatar, NoData_default as NoData, NoImage_default as NoImage, NoImageSvg_default as NoImageSvg, PageHeader_default as PageHeader, Pagination_default as Pagination, Portal_default as Portal, SaveAndCancelButtons_default as SaveAndCancelButtons, SearchField_default as SearchField, Table_default as Table, TagList_default as TagList, TagListForm_default as TagListForm, Toggle_default as Toggle, ToolTip_default as ToolTip };