@veevarts/design-system 2.0.0-alpha.6 → 2.0.0-alpha.60

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 (277) hide show
  1. package/README.md +82 -0
  2. package/dist/assistant.cjs +1 -0
  3. package/dist/assistant.d.ts +10 -0
  4. package/dist/assistant.js +790 -0
  5. package/dist/components/DatePicker/DatePicker.d.ts +9 -2
  6. package/dist/components/DatePicker/defaults.d.ts +28 -0
  7. package/dist/components/DatePicker/index.d.ts +1 -0
  8. package/dist/components/Drawer/Drawer.d.ts +17 -0
  9. package/dist/components/Drawer/index.d.ts +2 -0
  10. package/dist/components/Modal/CloseButton.d.ts +18 -0
  11. package/dist/components/Modal/Modal.d.ts +15 -0
  12. package/dist/components/Modal/index.d.ts +2 -0
  13. package/dist/components/Modal/useLabelledCloseButton.d.ts +13 -0
  14. package/dist/components/Select/Select.d.ts +10 -0
  15. package/dist/components/Skeleton/Skeleton.d.ts +37 -0
  16. package/dist/components/Skeleton/index.d.ts +2 -0
  17. package/dist/components/Table/Table.d.ts +7 -0
  18. package/dist/components/Table/index.d.ts +2 -0
  19. package/dist/components/index.d.ts +9 -1
  20. package/dist/hasContent-BCRxiry-.js +1200 -0
  21. package/dist/hasContent-JfCtoDIu.cjs +1 -0
  22. package/dist/index.cjs +9 -9
  23. package/dist/index.d.ts +6 -0
  24. package/dist/index.js +10761 -6895
  25. package/dist/patterns/ActivityTimeline/ActivityTimeline.d.ts +3 -0
  26. package/dist/patterns/ActivityTimeline/index.d.ts +2 -0
  27. package/dist/patterns/ActivityTimeline/styles.d.ts +15 -0
  28. package/dist/patterns/ActivityTimeline/types.d.ts +15 -0
  29. package/dist/patterns/AdminTable/AdminTable.d.ts +1 -0
  30. package/dist/patterns/AdminTable/styles.d.ts +8 -1
  31. package/dist/patterns/AdminTextField/AdminTextField.d.ts +4 -44
  32. package/dist/patterns/AdminTextField/index.d.ts +2 -2
  33. package/dist/patterns/AdminTextField/styles.d.ts +29 -0
  34. package/dist/patterns/AdminTextField/types.d.ts +78 -0
  35. package/dist/patterns/AdminToolbar/AdminToolbar.d.ts +13 -2
  36. package/dist/patterns/AdminToolbar/index.d.ts +1 -0
  37. package/dist/patterns/AdminToolbar/styles.d.ts +49 -0
  38. package/dist/patterns/AdminToolbar/types.d.ts +2 -0
  39. package/dist/patterns/AmountList/AmountList.d.ts +3 -0
  40. package/dist/patterns/AmountList/index.d.ts +2 -0
  41. package/dist/patterns/AmountList/styles.d.ts +23 -0
  42. package/dist/patterns/AmountList/types.d.ts +26 -0
  43. package/dist/patterns/AssistantActivity/AssistantActivity.d.ts +15 -0
  44. package/dist/patterns/AssistantActivity/formatAssistantDuration.d.ts +10 -0
  45. package/dist/patterns/AssistantActivity/index.d.ts +3 -0
  46. package/dist/patterns/AssistantActivity/styles.d.ts +31 -0
  47. package/dist/patterns/AssistantActivity/types.d.ts +42 -0
  48. package/dist/patterns/AssistantComposer/AssistantComposer.d.ts +15 -0
  49. package/dist/patterns/AssistantComposer/index.d.ts +2 -0
  50. package/dist/patterns/AssistantComposer/styles.d.ts +33 -0
  51. package/dist/patterns/AssistantComposer/types.d.ts +62 -0
  52. package/dist/patterns/AssistantMessage/AssistantMessage.d.ts +17 -0
  53. package/dist/patterns/AssistantMessage/index.d.ts +2 -0
  54. package/dist/patterns/AssistantMessage/styles.d.ts +45 -0
  55. package/dist/patterns/AssistantMessage/types.d.ts +84 -0
  56. package/dist/patterns/AssistantNotice/AssistantNotice.d.ts +18 -0
  57. package/dist/patterns/AssistantNotice/index.d.ts +2 -0
  58. package/dist/patterns/AssistantNotice/styles.d.ts +49 -0
  59. package/dist/patterns/AssistantNotice/types.d.ts +58 -0
  60. package/dist/patterns/CardList/CardList.d.ts +3 -0
  61. package/dist/patterns/CardList/index.d.ts +2 -0
  62. package/dist/patterns/CardList/styles.d.ts +20 -0
  63. package/dist/patterns/CardList/types.d.ts +20 -0
  64. package/dist/patterns/CardStack/CardStack.d.ts +7 -0
  65. package/dist/patterns/CardStack/index.d.ts +2 -0
  66. package/dist/patterns/CardStack/styles.d.ts +2 -0
  67. package/dist/patterns/CashTenderForm/types.d.ts +6 -0
  68. package/dist/patterns/CellText/CellText.d.ts +16 -0
  69. package/dist/patterns/CellText/index.d.ts +2 -0
  70. package/dist/patterns/CellText/styles.d.ts +7 -0
  71. package/dist/patterns/DiscardGuard/DiscardGuard.d.ts +23 -0
  72. package/dist/patterns/DiscardGuard/context.d.ts +25 -0
  73. package/dist/patterns/DiscardGuard/index.d.ts +6 -0
  74. package/dist/patterns/DiscardGuard/useDiscardGuard.d.ts +38 -0
  75. package/dist/patterns/DonationAmounts/index.d.ts +1 -1
  76. package/dist/patterns/DonationAmounts/styles.d.ts +51 -0
  77. package/dist/patterns/DonationAmounts/types.d.ts +79 -1
  78. package/dist/patterns/DonationAmounts/utils/currency.d.ts +23 -3
  79. package/dist/patterns/EntityRow/EntityList.d.ts +15 -0
  80. package/dist/patterns/EntityRow/EntityRow.d.ts +3 -0
  81. package/dist/patterns/EntityRow/context.d.ts +2 -0
  82. package/dist/patterns/EntityRow/icons.d.ts +3 -0
  83. package/dist/patterns/EntityRow/index.d.ts +3 -0
  84. package/dist/patterns/EntityRow/initials.d.ts +6 -0
  85. package/dist/patterns/EntityRow/styles.d.ts +74 -0
  86. package/dist/patterns/EntityRow/types.d.ts +125 -0
  87. package/dist/patterns/ExpandableTable/ExpandableTable.d.ts +6 -0
  88. package/dist/patterns/ExpandableTable/index.d.ts +2 -0
  89. package/dist/patterns/ExpandableTable/styles.d.ts +43 -0
  90. package/dist/patterns/ExpandableTable/types.d.ts +99 -0
  91. package/dist/patterns/FeedbackState/FeedbackState.d.ts +1 -1
  92. package/dist/patterns/FeedbackState/type.d.ts +11 -1
  93. package/dist/patterns/FilterSelect/FilterSelect.d.ts +3 -0
  94. package/dist/patterns/FilterSelect/FilterSelectGroup.d.ts +3 -0
  95. package/dist/patterns/FilterSelect/index.d.ts +3 -0
  96. package/dist/patterns/FilterSelect/styles.d.ts +17 -0
  97. package/dist/patterns/FilterSelect/types.d.ts +19 -0
  98. package/dist/patterns/InlineConfirm/InlineConfirm.d.ts +38 -0
  99. package/dist/patterns/InlineConfirm/index.d.ts +2 -0
  100. package/dist/patterns/InlineConfirm/styles.d.ts +16 -0
  101. package/dist/patterns/InstallmentFundAssignment/InstallmentFundAssignment.d.ts +1 -1
  102. package/dist/patterns/InstallmentFundAssignment/types.d.ts +3 -0
  103. package/dist/patterns/InstallmentSchedule/InstallmentSchedule.d.ts +1 -1
  104. package/dist/patterns/InstallmentSchedule/InstallmentTable.d.ts +1 -1
  105. package/dist/patterns/InstallmentSchedule/index.d.ts +1 -1
  106. package/dist/patterns/InstallmentSchedule/types.d.ts +62 -3
  107. package/dist/patterns/InstallmentSchedule/utils.d.ts +33 -0
  108. package/dist/patterns/KeyValueChip/KeyValueChip.d.ts +1 -0
  109. package/dist/patterns/KeyValueRows/KeyValueRows.d.ts +13 -0
  110. package/dist/patterns/KeyValueRows/index.d.ts +2 -0
  111. package/dist/patterns/KeyValueRows/styles.d.ts +8 -0
  112. package/dist/patterns/LineItemRows/LineItemRows.d.ts +17 -0
  113. package/dist/patterns/LineItemRows/index.d.ts +2 -0
  114. package/dist/patterns/LineItemRows/styles.d.ts +13 -0
  115. package/dist/patterns/ListPanel/ListPanel.d.ts +2 -0
  116. package/dist/patterns/LoadMoreFooter/LoadMoreFooter.d.ts +3 -0
  117. package/dist/patterns/LoadMoreFooter/index.d.ts +2 -0
  118. package/dist/patterns/LoadMoreFooter/styles.d.ts +7 -0
  119. package/dist/patterns/LoadMoreFooter/types.d.ts +10 -0
  120. package/dist/patterns/MetaCard/types.d.ts +2 -0
  121. package/dist/patterns/ModalPanels/ModalPanels.d.ts +35 -0
  122. package/dist/patterns/ModalPanels/context.d.ts +20 -0
  123. package/dist/patterns/ModalPanels/focus.d.ts +44 -0
  124. package/dist/patterns/ModalPanels/index.d.ts +6 -0
  125. package/dist/patterns/ModalPanels/styles.d.ts +13 -0
  126. package/dist/patterns/ModalPanels/useModalPanels.d.ts +30 -0
  127. package/dist/patterns/NeedsFixDot/NeedsFixDot.d.ts +16 -0
  128. package/dist/patterns/NeedsFixDot/firstNeedsFixKey.d.ts +18 -0
  129. package/dist/patterns/NeedsFixDot/index.d.ts +4 -0
  130. package/dist/patterns/NeedsFixDot/styles.d.ts +20 -0
  131. package/dist/patterns/Notice/Notice.d.ts +16 -0
  132. package/dist/patterns/Notice/index.d.ts +2 -0
  133. package/dist/patterns/Notice/styles.d.ts +35 -0
  134. package/dist/patterns/Notice/type.d.ts +39 -0
  135. package/dist/patterns/OutcomeView/index.d.ts +1 -1
  136. package/dist/patterns/OutcomeView/types.d.ts +110 -3
  137. package/dist/patterns/PageHeader/PageHeader.d.ts +1 -0
  138. package/dist/patterns/PaginationSummary/PaginationSummary.d.ts +12 -0
  139. package/dist/patterns/PaginationSummary/index.d.ts +1 -1
  140. package/dist/patterns/PaymentSubAmountInput/PaymentSubAmountInput.d.ts +2 -0
  141. package/dist/patterns/PillTabs/PillTabs.d.ts +3 -0
  142. package/dist/patterns/PillTabs/ids.d.ts +9 -0
  143. package/dist/patterns/PillTabs/index.d.ts +3 -0
  144. package/dist/patterns/PillTabs/styles.d.ts +20 -0
  145. package/dist/patterns/PillTabs/types.d.ts +21 -0
  146. package/dist/patterns/{CatalogItemCard → Programs/CatalogItemCard}/type.d.ts +1 -1
  147. package/dist/patterns/{EventDetails → Programs/EventDetails}/EventDetails.d.ts +3 -1
  148. package/dist/patterns/{OfferCard → Programs/OfferCard}/OfferCard.d.ts +1 -1
  149. package/dist/patterns/{OfferCard → Programs/OfferCard}/types.d.ts +7 -0
  150. package/dist/patterns/Programs/ProgramListItem/ProgramListItem.d.ts +17 -0
  151. package/dist/patterns/Programs/ProgramListItem/index.d.ts +2 -0
  152. package/dist/patterns/Programs/index.d.ts +5 -0
  153. package/dist/patterns/ReasonSelect/types.d.ts +1 -0
  154. package/dist/patterns/RecordCard/RecordCard.d.ts +3 -0
  155. package/dist/patterns/RecordCard/index.d.ts +2 -0
  156. package/dist/patterns/RecordCard/styles.d.ts +16 -0
  157. package/dist/patterns/RecordCard/types.d.ts +22 -0
  158. package/dist/patterns/RecordHeader/RecordHeader.d.ts +3 -0
  159. package/dist/patterns/RecordHeader/index.d.ts +2 -0
  160. package/dist/patterns/RecordHeader/styles.d.ts +43 -0
  161. package/dist/patterns/RecordHeader/types.d.ts +30 -0
  162. package/dist/patterns/RecordLayout/RecordLayout.d.ts +3 -0
  163. package/dist/patterns/RecordLayout/index.d.ts +2 -0
  164. package/dist/patterns/RecordLayout/styles.d.ts +8 -0
  165. package/dist/patterns/RecordLayout/types.d.ts +6 -0
  166. package/dist/patterns/RecordTotals/RecordTotals.d.ts +19 -0
  167. package/dist/patterns/RecordTotals/index.d.ts +2 -0
  168. package/dist/patterns/RecordTotals/styles.d.ts +19 -0
  169. package/dist/patterns/RefundMethodCards/RefundMethodCards.d.ts +4 -0
  170. package/dist/patterns/RefundMethodCards/index.d.ts +2 -0
  171. package/dist/patterns/RefundMethodCards/styles.d.ts +59 -0
  172. package/dist/patterns/RefundMethodCards/types.d.ts +72 -0
  173. package/dist/patterns/RefundProgressList/RefundProgressList.d.ts +4 -0
  174. package/dist/patterns/RefundProgressList/index.d.ts +2 -0
  175. package/dist/patterns/RefundProgressList/styles.d.ts +44 -0
  176. package/dist/patterns/RefundProgressList/types.d.ts +37 -0
  177. package/dist/patterns/RelatedRecordList/RelatedRecordList.d.ts +3 -0
  178. package/dist/patterns/RelatedRecordList/index.d.ts +2 -0
  179. package/dist/patterns/RelatedRecordList/styles.d.ts +19 -0
  180. package/dist/patterns/RelatedRecordList/types.d.ts +17 -0
  181. package/dist/patterns/ScrollToLatest/ScrollToLatest.d.ts +18 -0
  182. package/dist/patterns/ScrollToLatest/index.d.ts +2 -0
  183. package/dist/patterns/ScrollToLatest/styles.d.ts +11 -0
  184. package/dist/patterns/ScrollToLatest/types.d.ts +36 -0
  185. package/dist/patterns/SessionExpiredCard/SessionExpiredCard.d.ts +14 -0
  186. package/dist/patterns/SessionExpiredCard/index.d.ts +2 -0
  187. package/dist/patterns/SessionExpiredCard/type.d.ts +6 -0
  188. package/dist/patterns/SplitPaymentSummary/index.d.ts +1 -1
  189. package/dist/patterns/SplitPaymentSummary/types.d.ts +18 -0
  190. package/dist/patterns/StatTiles/StatTiles.d.ts +3 -0
  191. package/dist/patterns/StatTiles/index.d.ts +2 -0
  192. package/dist/patterns/StatTiles/styles.d.ts +8 -0
  193. package/dist/patterns/StatTiles/types.d.ts +12 -0
  194. package/dist/patterns/StatusChip/StatusChip.d.ts +3 -3
  195. package/dist/patterns/StepProgress/StepProgress.d.ts +4 -0
  196. package/dist/patterns/StepProgress/index.d.ts +2 -0
  197. package/dist/patterns/StepProgress/styles.d.ts +29 -0
  198. package/dist/patterns/StepProgress/types.d.ts +43 -0
  199. package/dist/patterns/Summary/components/ActionBar.d.ts +2 -0
  200. package/dist/patterns/Summary/components/GrandTotalRow.d.ts +1 -0
  201. package/dist/patterns/Summary/components/ItemRow.d.ts +1 -0
  202. package/dist/patterns/Summary/components/SummaryBody.d.ts +4 -1
  203. package/dist/patterns/Summary/components/TotalsLineRow.d.ts +3 -2
  204. package/dist/patterns/Summary/types.d.ts +51 -9
  205. package/dist/patterns/TableSkeleton/TableSkeleton.d.ts +1 -0
  206. package/dist/patterns/TileSelect/TileSelect.d.ts +2 -37
  207. package/dist/patterns/TileSelect/index.d.ts +1 -1
  208. package/dist/patterns/TileSelect/styles.d.ts +56 -0
  209. package/dist/patterns/TileSelect/types.d.ts +140 -0
  210. package/dist/patterns/TimeField/TimeField.d.ts +6 -0
  211. package/dist/patterns/TimeField/index.d.ts +3 -0
  212. package/dist/patterns/TimeField/time.d.ts +40 -0
  213. package/dist/patterns/TimeField/types.d.ts +77 -0
  214. package/dist/patterns/ToolbarButton/ToolbarButton.d.ts +2 -0
  215. package/dist/patterns/UnderlineTabs/UnderlineTabs.d.ts +40 -1
  216. package/dist/patterns/UnderlineTabs/index.d.ts +1 -1
  217. package/dist/patterns/UnderlineTabs/styles.d.ts +21 -0
  218. package/dist/patterns/VerticalSteps/StepPager.d.ts +6 -0
  219. package/dist/patterns/VerticalSteps/StepsReadiness.d.ts +15 -0
  220. package/dist/patterns/VerticalSteps/VerticalSteps.d.ts +6 -0
  221. package/dist/patterns/VerticalSteps/index.d.ts +4 -0
  222. package/dist/patterns/VerticalSteps/styles.d.ts +54 -0
  223. package/dist/patterns/VerticalSteps/types.d.ts +100 -0
  224. package/dist/patterns/WizardShell/index.d.ts +1 -1
  225. package/dist/patterns/WizardShell/types.d.ts +9 -1
  226. package/dist/patterns/grid-columns.d.ts +1 -1
  227. package/dist/patterns/index.d.ts +79 -19
  228. package/dist/patterns/shared/hasContent.d.ts +2 -0
  229. package/dist/patterns/shared/index.d.ts +1 -0
  230. package/dist/patterns/shared/motion.d.ts +6 -0
  231. package/dist/patterns/shared/recordTone.d.ts +9 -0
  232. package/dist/patterns/shared/rem.d.ts +4 -0
  233. package/dist/patterns/shared/useContainerWidth.d.ts +6 -0
  234. package/dist/patterns/shared/useDecimalDraft.d.ts +33 -0
  235. package/dist/patterns/shared/usePrefillEdits.d.ts +7 -0
  236. package/dist/providers/DensityProvider.d.ts +7 -0
  237. package/dist/providers/HeroUIProvider.d.ts +20 -1
  238. package/dist/providers/ToastProvider.d.ts +21 -0
  239. package/dist/providers/close-label-context.d.ts +18 -0
  240. package/dist/providers/density.d.ts +17 -0
  241. package/dist/providers/index.d.ts +6 -0
  242. package/dist/tailwind/index.cjs +107 -5
  243. package/dist/tailwind/index.d.ts +61 -0
  244. package/dist/tailwind/index.mjs +104 -5
  245. package/dist/test/ReducedMotion.d.ts +4 -0
  246. package/dist/test/RootFontSize.d.ts +5 -0
  247. package/dist/test/backdrop.d.ts +12 -0
  248. package/dist/test/container-width.d.ts +14 -0
  249. package/dist/test/contrast.d.ts +1 -0
  250. package/dist/test/px-class-names.d.ts +1 -0
  251. package/dist/test/px-classes.d.ts +3 -0
  252. package/dist/test/reducedMotionCss.d.ts +40 -0
  253. package/dist/test/root-font-size.d.ts +8 -0
  254. package/dist/tokens/assistant-surface.d.ts +66 -0
  255. package/dist/tokens/index.d.ts +2 -0
  256. package/dist/tokens/pos-surface.d.ts +23 -4
  257. package/package.json +22 -3
  258. /package/dist/patterns/{CatalogItemCard → Programs/CatalogItemCard}/CatalogItemCard.d.ts +0 -0
  259. /package/dist/patterns/{CatalogItemCard → Programs/CatalogItemCard}/index.d.ts +0 -0
  260. /package/dist/patterns/{EventDetails → Programs/EventDetails}/index.d.ts +0 -0
  261. /package/dist/patterns/{OfferCard → Programs/OfferCard}/examples/CustomQuantitySelectorExample.d.ts +0 -0
  262. /package/dist/patterns/{OfferCard → Programs/OfferCard}/examples/ListWithEurosCurrencyExample.d.ts +0 -0
  263. /package/dist/patterns/{OfferCard → Programs/OfferCard}/examples/ListWithoutAnimationExample.d.ts +0 -0
  264. /package/dist/patterns/{OfferCard → Programs/OfferCard}/examples/index.d.ts +0 -0
  265. /package/dist/patterns/{OfferCard → Programs/OfferCard}/index.d.ts +0 -0
  266. /package/dist/patterns/{OfferCard → Programs/OfferCard}/utils/animations.d.ts +0 -0
  267. /package/dist/patterns/{OfferCard → Programs/OfferCard}/utils/currency.d.ts +0 -0
  268. /package/dist/patterns/{OfferCard → Programs/OfferCard}/utils/index.d.ts +0 -0
  269. /package/dist/patterns/{OfferCard → Programs/OfferCard}/utils/offers.d.ts +0 -0
  270. /package/dist/patterns/{OfferCard → Programs/OfferCard}/variants/OfferCardEmpty.d.ts +0 -0
  271. /package/dist/patterns/{OfferCard → Programs/OfferCard}/variants/OfferCardError.d.ts +0 -0
  272. /package/dist/patterns/{OfferCard → Programs/OfferCard}/variants/OfferCardList.d.ts +0 -0
  273. /package/dist/patterns/{OfferCard → Programs/OfferCard}/variants/OfferCardSkeleton.d.ts +0 -0
  274. /package/dist/patterns/{OfferCard → Programs/OfferCard}/variants/index.d.ts +0 -0
  275. /package/dist/patterns/{SessionTimeline → Programs/SessionTimeline}/SessionTimeline.d.ts +0 -0
  276. /package/dist/patterns/{SessionTimeline → Programs/SessionTimeline}/index.d.ts +0 -0
  277. /package/dist/patterns/{SessionTimeline → Programs/SessionTimeline}/type.d.ts +0 -0
@@ -0,0 +1,1200 @@
1
+ import { createContext as Ce, useContext as Te, useState as M, useEffect as D, forwardRef as k, createElement as H, isValidElement as Ee, useRef as Pe } from "react";
2
+ import { jsx as I } from "react/jsx-runtime";
3
+ import { Button as Le, Drawer as Me, Modal as Fe, Select as Oe, Skeleton as je, cn as le, Table as Ae } from "@heroui/react";
4
+ const Ne = Ce(void 0);
5
+ function De() {
6
+ return Te(Ne);
7
+ }
8
+ const ae = "(prefers-reduced-motion: reduce)", ue = "data-pos-reduce-motion", en = "motion-reduce:transition-none [html[data-pos-reduce-motion=true]_&]:transition-none", Re = "motion-reduce:animate-none [html[data-pos-reduce-motion=true]_&]:animate-none", tn = `rounded-[0.375rem] bg-[linear-gradient(90deg,#F0F0F1_0,#F9F9FA_12.5rem,#F0F0F1_25rem)] bg-[length:50rem_100%] animate-record-shimmer ${Re}`;
9
+ function _e() {
10
+ return typeof document > "u" ? !1 : document.documentElement.getAttribute(ue) === "true" ? !0 : typeof window.matchMedia == "function" && window.matchMedia(ae).matches;
11
+ }
12
+ function nn() {
13
+ const [e, t] = M(!1);
14
+ return D(() => {
15
+ const o = () => t(_e()), r = typeof window.matchMedia == "function" ? window.matchMedia(ae) : null;
16
+ r?.addEventListener?.("change", o);
17
+ const n = typeof MutationObserver > "u" ? null : new MutationObserver(o);
18
+ return n?.observe(document.documentElement, {
19
+ attributes: !0,
20
+ attributeFilter: [ue]
21
+ }), o(), () => {
22
+ r?.removeEventListener?.("change", o), n?.disconnect();
23
+ };
24
+ }, []), e;
25
+ }
26
+ function Be(e, t) {
27
+ const o = e.icons, r = e.aliases || /* @__PURE__ */ Object.create(null), n = /* @__PURE__ */ Object.create(null);
28
+ function i(s) {
29
+ if (o[s]) return n[s] = [];
30
+ if (!(s in n)) {
31
+ n[s] = null;
32
+ const c = r[s] && r[s].parent, l = c && i(c);
33
+ l && (n[s] = [c].concat(l));
34
+ }
35
+ return n[s];
36
+ }
37
+ return Object.keys(o).concat(Object.keys(r)).forEach(i), n;
38
+ }
39
+ const fe = Object.freeze({
40
+ left: 0,
41
+ top: 0,
42
+ width: 16,
43
+ height: 16
44
+ }), R = Object.freeze({
45
+ rotate: 0,
46
+ vFlip: !1,
47
+ hFlip: !1
48
+ }), G = Object.freeze({
49
+ ...fe,
50
+ ...R
51
+ }), Q = Object.freeze({
52
+ ...G,
53
+ body: "",
54
+ hidden: !1
55
+ });
56
+ function Ue(e, t) {
57
+ const o = {};
58
+ !e.hFlip != !t.hFlip && (o.hFlip = !0), !e.vFlip != !t.vFlip && (o.vFlip = !0);
59
+ const r = ((e.rotate || 0) + (t.rotate || 0)) % 4;
60
+ return r && (o.rotate = r), o;
61
+ }
62
+ function X(e, t) {
63
+ const o = Ue(e, t);
64
+ for (const r in Q) r in R ? r in e && !(r in o) && (o[r] = R[r]) : r in t ? o[r] = t[r] : r in e && (o[r] = e[r]);
65
+ return o;
66
+ }
67
+ function $e(e, t, o) {
68
+ const r = e.icons, n = e.aliases || /* @__PURE__ */ Object.create(null);
69
+ let i = {};
70
+ function s(c) {
71
+ i = X(r[c] || n[c], i);
72
+ }
73
+ return s(t), o.forEach(s), X(e, i);
74
+ }
75
+ function de(e, t) {
76
+ const o = [];
77
+ if (typeof e != "object" || typeof e.icons != "object") return o;
78
+ e.not_found instanceof Array && e.not_found.forEach((n) => {
79
+ t(n, null), o.push(n);
80
+ });
81
+ const r = Be(e);
82
+ for (const n in r) {
83
+ const i = r[n];
84
+ i && (t(n, $e(e, n, i)), o.push(n));
85
+ }
86
+ return o;
87
+ }
88
+ const He = {
89
+ provider: "",
90
+ aliases: {},
91
+ not_found: {},
92
+ ...fe
93
+ };
94
+ function U(e, t) {
95
+ for (const o in t) if (o in e && typeof e[o] != typeof t[o]) return !1;
96
+ return !0;
97
+ }
98
+ function pe(e) {
99
+ if (typeof e != "object" || e === null) return null;
100
+ const t = e;
101
+ if (typeof t.prefix != "string" || !e.icons || typeof e.icons != "object" || !U(e, He)) return null;
102
+ const o = t.icons;
103
+ for (const n in o) {
104
+ const i = o[n];
105
+ if (!n || typeof i.body != "string" || !U(i, Q)) return null;
106
+ }
107
+ const r = t.aliases || /* @__PURE__ */ Object.create(null);
108
+ for (const n in r) {
109
+ const i = r[n], s = i.parent;
110
+ if (!n || typeof s != "string" || !o[s] && !r[s] || !U(i, Q)) return null;
111
+ }
112
+ return t;
113
+ }
114
+ const Y = /* @__PURE__ */ Object.create(null);
115
+ function Qe(e, t) {
116
+ return {
117
+ provider: e,
118
+ prefix: t,
119
+ icons: /* @__PURE__ */ Object.create(null),
120
+ missing: /* @__PURE__ */ new Set()
121
+ };
122
+ }
123
+ function T(e, t) {
124
+ const o = Y[e] || (Y[e] = /* @__PURE__ */ Object.create(null));
125
+ return o[t] || (o[t] = Qe(e, t));
126
+ }
127
+ function he(e, t) {
128
+ return pe(t) ? de(t, (o, r) => {
129
+ r ? e.icons[o] = r : e.missing.add(o);
130
+ }) : [];
131
+ }
132
+ function qe(e, t, o) {
133
+ try {
134
+ if (typeof o.body == "string")
135
+ return e.icons[t] = { ...o }, !0;
136
+ } catch {
137
+ }
138
+ return !1;
139
+ }
140
+ const ge = /^[a-z0-9]+(-[a-z0-9]+)*$/, _ = (e, t, o, r = "") => {
141
+ const n = e.split(":");
142
+ if (e.slice(0, 1) === "@") {
143
+ if (n.length < 2 || n.length > 3) return null;
144
+ r = n.shift().slice(1);
145
+ }
146
+ if (n.length > 3 || !n.length) return null;
147
+ if (n.length > 1) {
148
+ const c = n.pop(), l = n.pop(), a = {
149
+ provider: n.length > 0 ? n[0] : r,
150
+ prefix: l,
151
+ name: c
152
+ };
153
+ return t && !A(a) ? null : a;
154
+ }
155
+ const i = n[0], s = i.split("-");
156
+ if (s.length > 1) {
157
+ const c = {
158
+ provider: r,
159
+ prefix: s.shift(),
160
+ name: s.join("-")
161
+ };
162
+ return t && !A(c) ? null : c;
163
+ }
164
+ if (o && r === "") {
165
+ const c = {
166
+ provider: r,
167
+ prefix: "",
168
+ name: i
169
+ };
170
+ return t && !A(c, o) ? null : c;
171
+ }
172
+ return null;
173
+ }, A = (e, t) => e ? !!((t && e.prefix === "" || e.prefix) && e.name) : !1;
174
+ let O = !1;
175
+ function me(e) {
176
+ return typeof e == "boolean" && (O = e), O;
177
+ }
178
+ function Z(e) {
179
+ const t = typeof e == "string" ? _(e, !0, O) : e;
180
+ if (t) {
181
+ const o = T(t.provider, t.prefix), r = t.name;
182
+ return o.icons[r] || (o.missing.has(r) ? null : void 0);
183
+ }
184
+ }
185
+ function ze(e, t) {
186
+ const o = _(e, !0, O);
187
+ if (!o) return !1;
188
+ const r = T(o.provider, o.prefix);
189
+ return t ? qe(r, o.name, t) : (r.missing.add(o.name), !0);
190
+ }
191
+ function Ve(e, t) {
192
+ if (typeof e != "object") return !1;
193
+ if (typeof t != "string" && (t = e.provider || ""), O && !t && !e.prefix) {
194
+ let n = !1;
195
+ return pe(e) && (e.prefix = "", de(e, (i, s) => {
196
+ ze(i, s) && (n = !0);
197
+ })), n;
198
+ }
199
+ const o = e.prefix;
200
+ if (!A({
201
+ prefix: o,
202
+ name: "a"
203
+ })) return !1;
204
+ const r = T(t, o);
205
+ return !!he(r, e);
206
+ }
207
+ const ye = Object.freeze({
208
+ width: null,
209
+ height: null
210
+ }), be = Object.freeze({
211
+ ...ye,
212
+ ...R
213
+ }), Ge = /(-?[0-9.]*[0-9]+[0-9.]*)/g, We = /^-?[0-9.]*[0-9]+[0-9.]*$/g;
214
+ function ee(e, t, o) {
215
+ if (t === 1) return e;
216
+ if (o = o || 100, typeof e == "number") return Math.ceil(e * t * o) / o;
217
+ if (typeof e != "string") return e;
218
+ const r = e.split(Ge);
219
+ if (r === null || !r.length) return e;
220
+ const n = [];
221
+ let i = r.shift(), s = We.test(i);
222
+ for (; ; ) {
223
+ if (s) {
224
+ const c = parseFloat(i);
225
+ isNaN(c) ? n.push(i) : n.push(Math.ceil(c * t * o) / o);
226
+ } else n.push(i);
227
+ if (i = r.shift(), i === void 0) return n.join("");
228
+ s = !s;
229
+ }
230
+ }
231
+ function Ke(e, t = "defs") {
232
+ let o = "";
233
+ const r = e.indexOf("<" + t);
234
+ for (; r >= 0; ) {
235
+ const n = e.indexOf(">", r), i = e.indexOf("</" + t);
236
+ if (n === -1 || i === -1) break;
237
+ const s = e.indexOf(">", i);
238
+ if (s === -1) break;
239
+ o += e.slice(n + 1, i).trim(), e = e.slice(0, r).trim() + e.slice(s + 1);
240
+ }
241
+ return {
242
+ defs: o,
243
+ content: e
244
+ };
245
+ }
246
+ function Je(e, t) {
247
+ return e ? "<defs>" + e + "</defs>" + t : t;
248
+ }
249
+ function Xe(e, t, o) {
250
+ const r = Ke(e);
251
+ return Je(r.defs, t + r.content + o);
252
+ }
253
+ const Ye = (e) => e === "unset" || e === "undefined" || e === "none";
254
+ function Ze(e, t) {
255
+ const o = {
256
+ ...G,
257
+ ...e
258
+ }, r = {
259
+ ...be,
260
+ ...t
261
+ }, n = {
262
+ left: o.left,
263
+ top: o.top,
264
+ width: o.width,
265
+ height: o.height
266
+ };
267
+ let i = o.body;
268
+ [o, r].forEach((b) => {
269
+ const f = [], p = b.hFlip, S = b.vFlip;
270
+ let x = b.rotate;
271
+ p ? S ? x += 2 : (f.push("translate(" + (n.width + n.left).toString() + " " + (0 - n.top).toString() + ")"), f.push("scale(-1 1)"), n.top = n.left = 0) : S && (f.push("translate(" + (0 - n.left).toString() + " " + (n.height + n.top).toString() + ")"), f.push("scale(1 -1)"), n.top = n.left = 0);
272
+ let v;
273
+ switch (x < 0 && (x -= Math.floor(x / 4) * 4), x = x % 4, x) {
274
+ case 1:
275
+ v = n.height / 2 + n.top, f.unshift("rotate(90 " + v.toString() + " " + v.toString() + ")");
276
+ break;
277
+ case 2:
278
+ f.unshift("rotate(180 " + (n.width / 2 + n.left).toString() + " " + (n.height / 2 + n.top).toString() + ")");
279
+ break;
280
+ case 3:
281
+ v = n.width / 2 + n.left, f.unshift("rotate(-90 " + v.toString() + " " + v.toString() + ")");
282
+ break;
283
+ }
284
+ x % 2 === 1 && (n.left !== n.top && (v = n.left, n.left = n.top, n.top = v), n.width !== n.height && (v = n.width, n.width = n.height, n.height = v)), f.length && (i = Xe(i, '<g transform="' + f.join(" ") + '">', "</g>"));
285
+ });
286
+ const s = r.width, c = r.height, l = n.width, a = n.height;
287
+ let u, d;
288
+ s === null ? (d = c === null ? "1em" : c === "auto" ? a : c, u = ee(d, l / a)) : (u = s === "auto" ? l : s, d = c === null ? ee(u, a / l) : c === "auto" ? a : c);
289
+ const h = {}, g = (b, f) => {
290
+ Ye(f) || (h[b] = f.toString());
291
+ };
292
+ g("width", u), g("height", d);
293
+ const y = [
294
+ n.left,
295
+ n.top,
296
+ l,
297
+ a
298
+ ];
299
+ return h.viewBox = y.join(" "), {
300
+ attributes: h,
301
+ viewBox: y,
302
+ body: i
303
+ };
304
+ }
305
+ const et = /\sid="(\S+)"/g, tt = "IconifyId" + Date.now().toString(16) + (Math.random() * 16777216 | 0).toString(16);
306
+ let nt = 0;
307
+ function ot(e, t = tt) {
308
+ const o = [];
309
+ let r;
310
+ for (; r = et.exec(e); ) o.push(r[1]);
311
+ if (!o.length) return e;
312
+ const n = "suffix" + (Math.random() * 16777216 | Date.now()).toString(16);
313
+ return o.forEach((i) => {
314
+ const s = typeof t == "function" ? t(i) : t + (nt++).toString(), c = i.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
315
+ e = e.replace(new RegExp('([#;"])(' + c + ')([")]|\\.[a-z])', "g"), "$1" + s + n + "$3");
316
+ }), e = e.replace(new RegExp(n, "g"), ""), e;
317
+ }
318
+ const q = /* @__PURE__ */ Object.create(null);
319
+ function rt(e, t) {
320
+ q[e] = t;
321
+ }
322
+ function z(e) {
323
+ return q[e] || q[""];
324
+ }
325
+ function W(e) {
326
+ let t;
327
+ if (typeof e.resources == "string") t = [e.resources];
328
+ else if (t = e.resources, !(t instanceof Array) || !t.length) return null;
329
+ return {
330
+ resources: t,
331
+ path: e.path || "/",
332
+ maxURL: e.maxURL || 500,
333
+ rotate: e.rotate || 750,
334
+ timeout: e.timeout || 5e3,
335
+ random: e.random === !0,
336
+ index: e.index || 0,
337
+ dataAfterTimeout: e.dataAfterTimeout !== !1
338
+ };
339
+ }
340
+ const K = /* @__PURE__ */ Object.create(null), P = ["https://api.simplesvg.com", "https://api.unisvg.com"], N = [];
341
+ for (; P.length > 0; ) P.length === 1 || Math.random() > 0.5 ? N.push(P.shift()) : N.push(P.pop());
342
+ K[""] = W({ resources: ["https://api.iconify.design"].concat(N) });
343
+ function it(e, t) {
344
+ const o = W(t);
345
+ return o === null ? !1 : (K[e] = o, !0);
346
+ }
347
+ function J(e) {
348
+ return K[e];
349
+ }
350
+ const st = () => {
351
+ let e;
352
+ try {
353
+ if (e = fetch, typeof e == "function") return e;
354
+ } catch {
355
+ }
356
+ };
357
+ let te = st();
358
+ function ct(e, t) {
359
+ const o = J(e);
360
+ if (!o) return 0;
361
+ let r;
362
+ if (!o.maxURL) r = 0;
363
+ else {
364
+ let n = 0;
365
+ o.resources.forEach((s) => {
366
+ n = Math.max(n, s.length);
367
+ });
368
+ const i = t + ".json?icons=";
369
+ r = o.maxURL - n - o.path.length - i.length;
370
+ }
371
+ return r;
372
+ }
373
+ function lt(e) {
374
+ return e === 404;
375
+ }
376
+ const at = (e, t, o) => {
377
+ const r = [], n = ct(e, t), i = "icons";
378
+ let s = {
379
+ type: i,
380
+ provider: e,
381
+ prefix: t,
382
+ icons: []
383
+ }, c = 0;
384
+ return o.forEach((l, a) => {
385
+ c += l.length + 1, c >= n && a > 0 && (r.push(s), s = {
386
+ type: i,
387
+ provider: e,
388
+ prefix: t,
389
+ icons: []
390
+ }, c = l.length), s.icons.push(l);
391
+ }), r.push(s), r;
392
+ };
393
+ function ut(e) {
394
+ if (typeof e == "string") {
395
+ const t = J(e);
396
+ if (t) return t.path;
397
+ }
398
+ return "/";
399
+ }
400
+ const ft = (e, t, o) => {
401
+ if (!te) {
402
+ o("abort", 424);
403
+ return;
404
+ }
405
+ let r = ut(t.provider);
406
+ switch (t.type) {
407
+ case "icons": {
408
+ const i = t.prefix, c = t.icons.join(","), l = new URLSearchParams({ icons: c });
409
+ r += i + ".json?" + l.toString();
410
+ break;
411
+ }
412
+ case "custom": {
413
+ const i = t.uri;
414
+ r += i.slice(0, 1) === "/" ? i.slice(1) : i;
415
+ break;
416
+ }
417
+ default:
418
+ o("abort", 400);
419
+ return;
420
+ }
421
+ let n = 503;
422
+ te(e + r).then((i) => {
423
+ const s = i.status;
424
+ if (s !== 200) {
425
+ setTimeout(() => {
426
+ o(lt(s) ? "abort" : "next", s);
427
+ });
428
+ return;
429
+ }
430
+ return n = 501, i.json();
431
+ }).then((i) => {
432
+ if (typeof i != "object" || i === null) {
433
+ setTimeout(() => {
434
+ i === 404 ? o("abort", i) : o("next", n);
435
+ });
436
+ return;
437
+ }
438
+ setTimeout(() => {
439
+ o("success", i);
440
+ });
441
+ }).catch(() => {
442
+ o("next", n);
443
+ });
444
+ }, dt = {
445
+ prepare: at,
446
+ send: ft
447
+ };
448
+ function xe(e, t) {
449
+ e.forEach((o) => {
450
+ const r = o.loaderCallbacks;
451
+ r && (o.loaderCallbacks = r.filter((n) => n.id !== t));
452
+ });
453
+ }
454
+ function pt(e) {
455
+ e.pendingCallbacksFlag || (e.pendingCallbacksFlag = !0, setTimeout(() => {
456
+ e.pendingCallbacksFlag = !1;
457
+ const t = e.loaderCallbacks ? e.loaderCallbacks.slice(0) : [];
458
+ if (!t.length) return;
459
+ let o = !1;
460
+ const r = e.provider, n = e.prefix;
461
+ t.forEach((i) => {
462
+ const s = i.icons, c = s.pending.length;
463
+ s.pending = s.pending.filter((l) => {
464
+ if (l.prefix !== n) return !0;
465
+ const a = l.name;
466
+ if (e.icons[a]) s.loaded.push({
467
+ provider: r,
468
+ prefix: n,
469
+ name: a
470
+ });
471
+ else if (e.missing.has(a)) s.missing.push({
472
+ provider: r,
473
+ prefix: n,
474
+ name: a
475
+ });
476
+ else
477
+ return o = !0, !0;
478
+ return !1;
479
+ }), s.pending.length !== c && (o || xe([e], i.id), i.callback(s.loaded.slice(0), s.missing.slice(0), s.pending.slice(0), i.abort));
480
+ });
481
+ }));
482
+ }
483
+ let ht = 0;
484
+ function gt(e, t, o) {
485
+ const r = ht++, n = xe.bind(null, o, r);
486
+ if (!t.pending.length) return n;
487
+ const i = {
488
+ id: r,
489
+ icons: t,
490
+ callback: e,
491
+ abort: n
492
+ };
493
+ return o.forEach((s) => {
494
+ (s.loaderCallbacks || (s.loaderCallbacks = [])).push(i);
495
+ }), n;
496
+ }
497
+ function mt(e) {
498
+ const t = {
499
+ loaded: [],
500
+ missing: [],
501
+ pending: []
502
+ }, o = /* @__PURE__ */ Object.create(null);
503
+ e.sort((n, i) => n.provider !== i.provider ? n.provider.localeCompare(i.provider) : n.prefix !== i.prefix ? n.prefix.localeCompare(i.prefix) : n.name.localeCompare(i.name));
504
+ let r = {
505
+ provider: "",
506
+ prefix: "",
507
+ name: ""
508
+ };
509
+ return e.forEach((n) => {
510
+ if (r.name === n.name && r.prefix === n.prefix && r.provider === n.provider) return;
511
+ r = n;
512
+ const i = n.provider, s = n.prefix, c = n.name, l = o[i] || (o[i] = /* @__PURE__ */ Object.create(null)), a = l[s] || (l[s] = T(i, s));
513
+ let u;
514
+ c in a.icons ? u = t.loaded : s === "" || a.missing.has(c) ? u = t.missing : u = t.pending;
515
+ const d = {
516
+ provider: i,
517
+ prefix: s,
518
+ name: c
519
+ };
520
+ u.push(d);
521
+ }), t;
522
+ }
523
+ function yt(e, t = !0, o = !1) {
524
+ const r = [];
525
+ return e.forEach((n) => {
526
+ const i = typeof n == "string" ? _(n, t, o) : n;
527
+ i && r.push(i);
528
+ }), r;
529
+ }
530
+ const bt = {
531
+ resources: [],
532
+ index: 0,
533
+ timeout: 2e3,
534
+ rotate: 750,
535
+ random: !1,
536
+ dataAfterTimeout: !1
537
+ };
538
+ function xt(e, t, o, r) {
539
+ const n = e.resources.length, i = e.random ? Math.floor(Math.random() * n) : e.index;
540
+ let s;
541
+ if (e.random) {
542
+ let m = e.resources.slice(0);
543
+ for (s = []; m.length > 1; ) {
544
+ const w = Math.floor(Math.random() * m.length);
545
+ s.push(m[w]), m = m.slice(0, w).concat(m.slice(w + 1));
546
+ }
547
+ s = s.concat(m);
548
+ } else s = e.resources.slice(i).concat(e.resources.slice(0, i));
549
+ const c = Date.now();
550
+ let l = "pending", a = 0, u, d = null, h = [], g = [];
551
+ typeof r == "function" && g.push(r);
552
+ function y() {
553
+ d && (clearTimeout(d), d = null);
554
+ }
555
+ function b() {
556
+ l === "pending" && (l = "aborted"), y(), h.forEach((m) => {
557
+ m.status === "pending" && (m.status = "aborted");
558
+ }), h = [];
559
+ }
560
+ function f(m, w) {
561
+ w && (g = []), typeof m == "function" && g.push(m);
562
+ }
563
+ function p() {
564
+ return {
565
+ startTime: c,
566
+ payload: t,
567
+ status: l,
568
+ queriesSent: a,
569
+ queriesPending: h.length,
570
+ subscribe: f,
571
+ abort: b
572
+ };
573
+ }
574
+ function S() {
575
+ l = "failed", g.forEach((m) => {
576
+ m(void 0, u);
577
+ });
578
+ }
579
+ function x() {
580
+ h.forEach((m) => {
581
+ m.status === "pending" && (m.status = "aborted");
582
+ }), h = [];
583
+ }
584
+ function v(m, w, E) {
585
+ const j = w !== "success";
586
+ switch (h = h.filter((C) => C !== m), l) {
587
+ case "pending":
588
+ break;
589
+ case "failed":
590
+ if (j || !e.dataAfterTimeout) return;
591
+ break;
592
+ default:
593
+ return;
594
+ }
595
+ if (w === "abort") {
596
+ u = E, S();
597
+ return;
598
+ }
599
+ if (j) {
600
+ u = E, h.length || (s.length ? B() : S());
601
+ return;
602
+ }
603
+ if (y(), x(), !e.random) {
604
+ const C = e.resources.indexOf(m.resource);
605
+ C !== -1 && C !== e.index && (e.index = C);
606
+ }
607
+ l = "completed", g.forEach((C) => {
608
+ C(E);
609
+ });
610
+ }
611
+ function B() {
612
+ if (l !== "pending") return;
613
+ y();
614
+ const m = s.shift();
615
+ if (m === void 0) {
616
+ if (h.length) {
617
+ d = setTimeout(() => {
618
+ y(), l === "pending" && (x(), S());
619
+ }, e.timeout);
620
+ return;
621
+ }
622
+ S();
623
+ return;
624
+ }
625
+ const w = {
626
+ status: "pending",
627
+ resource: m,
628
+ callback: (E, j) => {
629
+ v(w, E, j);
630
+ }
631
+ };
632
+ h.push(w), a++, d = setTimeout(B, e.rotate), o(m, t, w.callback);
633
+ }
634
+ return setTimeout(B), p;
635
+ }
636
+ function ve(e) {
637
+ const t = {
638
+ ...bt,
639
+ ...e
640
+ };
641
+ let o = [];
642
+ function r() {
643
+ o = o.filter((c) => c().status === "pending");
644
+ }
645
+ function n(c, l, a) {
646
+ const u = xt(t, c, l, (d, h) => {
647
+ r(), a && a(d, h);
648
+ });
649
+ return o.push(u), u;
650
+ }
651
+ function i(c) {
652
+ return o.find((l) => c(l)) || null;
653
+ }
654
+ return {
655
+ query: n,
656
+ find: i,
657
+ setIndex: (c) => {
658
+ t.index = c;
659
+ },
660
+ getIndex: () => t.index,
661
+ cleanup: r
662
+ };
663
+ }
664
+ function ne() {
665
+ }
666
+ const $ = /* @__PURE__ */ Object.create(null);
667
+ function vt(e) {
668
+ if (!$[e]) {
669
+ const t = J(e);
670
+ if (!t) return;
671
+ const o = ve(t), r = {
672
+ config: t,
673
+ redundancy: o
674
+ };
675
+ $[e] = r;
676
+ }
677
+ return $[e];
678
+ }
679
+ function wt(e, t, o) {
680
+ let r, n;
681
+ if (typeof e == "string") {
682
+ const i = z(e);
683
+ if (!i)
684
+ return o(void 0, 424), ne;
685
+ n = i.send;
686
+ const s = vt(e);
687
+ s && (r = s.redundancy);
688
+ } else {
689
+ const i = W(e);
690
+ if (i) {
691
+ r = ve(i);
692
+ const s = e.resources ? e.resources[0] : "", c = z(s);
693
+ c && (n = c.send);
694
+ }
695
+ }
696
+ return !r || !n ? (o(void 0, 424), ne) : r.query(t, n, o)().abort;
697
+ }
698
+ function oe() {
699
+ }
700
+ function It(e) {
701
+ e.iconsLoaderFlag || (e.iconsLoaderFlag = !0, setTimeout(() => {
702
+ e.iconsLoaderFlag = !1, pt(e);
703
+ }));
704
+ }
705
+ function St(e) {
706
+ const t = [], o = [];
707
+ return e.forEach((r) => {
708
+ (r.match(ge) ? t : o).push(r);
709
+ }), {
710
+ valid: t,
711
+ invalid: o
712
+ };
713
+ }
714
+ function L(e, t, o) {
715
+ function r() {
716
+ const n = e.pendingIcons;
717
+ t.forEach((i) => {
718
+ n && n.delete(i), e.icons[i] || e.missing.add(i);
719
+ });
720
+ }
721
+ if (o && typeof o == "object") try {
722
+ if (!he(e, o).length) {
723
+ r();
724
+ return;
725
+ }
726
+ } catch (n) {
727
+ console.error(n);
728
+ }
729
+ r(), It(e);
730
+ }
731
+ function re(e, t) {
732
+ e instanceof Promise ? e.then((o) => {
733
+ t(o);
734
+ }).catch(() => {
735
+ t(null);
736
+ }) : t(e);
737
+ }
738
+ function kt(e, t) {
739
+ e.iconsToLoad ? e.iconsToLoad = e.iconsToLoad.concat(t).sort() : e.iconsToLoad = t, e.iconsQueueFlag || (e.iconsQueueFlag = !0, setTimeout(() => {
740
+ e.iconsQueueFlag = !1;
741
+ const { provider: o, prefix: r } = e, n = e.iconsToLoad;
742
+ if (delete e.iconsToLoad, !n || !n.length) return;
743
+ const i = e.loadIcon;
744
+ if (e.loadIcons && (n.length > 1 || !i)) {
745
+ re(e.loadIcons(n, r, o), (u) => {
746
+ L(e, n, u);
747
+ });
748
+ return;
749
+ }
750
+ if (i) {
751
+ n.forEach((u) => {
752
+ const d = i(u, r, o);
753
+ re(d, (h) => {
754
+ const g = h ? {
755
+ prefix: r,
756
+ icons: { [u]: h }
757
+ } : null;
758
+ L(e, [u], g);
759
+ });
760
+ });
761
+ return;
762
+ }
763
+ const { valid: s, invalid: c } = St(n);
764
+ if (c.length && L(e, c, null), !s.length) return;
765
+ const l = r.match(ge) ? z(o) : null;
766
+ if (!l) {
767
+ L(e, s, null);
768
+ return;
769
+ }
770
+ l.prepare(o, r, s).forEach((u) => {
771
+ wt(o, u, (d) => {
772
+ L(e, u.icons, d);
773
+ });
774
+ });
775
+ }));
776
+ }
777
+ const Ct = (e, t) => {
778
+ const o = yt(e, !0, me()), r = mt(o);
779
+ if (!r.pending.length) {
780
+ let l = !0;
781
+ return t && setTimeout(() => {
782
+ l && t(r.loaded, r.missing, r.pending, oe);
783
+ }), () => {
784
+ l = !1;
785
+ };
786
+ }
787
+ const n = /* @__PURE__ */ Object.create(null), i = [];
788
+ let s, c;
789
+ return r.pending.forEach((l) => {
790
+ const { provider: a, prefix: u } = l;
791
+ if (u === c && a === s) return;
792
+ s = a, c = u, i.push(T(a, u));
793
+ const d = n[a] || (n[a] = /* @__PURE__ */ Object.create(null));
794
+ d[u] || (d[u] = []);
795
+ }), r.pending.forEach((l) => {
796
+ const { provider: a, prefix: u, name: d } = l, h = T(a, u), g = h.pendingIcons || (h.pendingIcons = /* @__PURE__ */ new Set());
797
+ g.has(d) || (g.add(d), n[a][u].push(d));
798
+ }), i.forEach((l) => {
799
+ const a = n[l.provider][l.prefix];
800
+ a.length && kt(l, a);
801
+ }), t ? gt(t, r, i) : oe;
802
+ };
803
+ function Tt(e, t) {
804
+ const o = { ...e };
805
+ for (const r in t) {
806
+ const n = t[r], i = typeof n;
807
+ r in ye ? (n === null || n && (i === "string" || i === "number")) && (o[r] = n) : i === typeof o[r] && (o[r] = r === "rotate" ? n % 4 : n);
808
+ }
809
+ return o;
810
+ }
811
+ const Et = /[\s,]+/;
812
+ function Pt(e, t) {
813
+ t.split(Et).forEach((o) => {
814
+ switch (o.trim()) {
815
+ case "horizontal":
816
+ e.hFlip = !0;
817
+ break;
818
+ case "vertical":
819
+ e.vFlip = !0;
820
+ break;
821
+ }
822
+ });
823
+ }
824
+ function Lt(e, t = 0) {
825
+ const o = e.replace(/^-?[0-9.]*/, "");
826
+ function r(n) {
827
+ for (; n < 0; ) n += 4;
828
+ return n % 4;
829
+ }
830
+ if (o === "") {
831
+ const n = parseInt(e);
832
+ return isNaN(n) ? 0 : r(n);
833
+ } else if (o !== e) {
834
+ let n = 0;
835
+ switch (o) {
836
+ case "%":
837
+ n = 25;
838
+ break;
839
+ case "deg":
840
+ n = 90;
841
+ }
842
+ if (n) {
843
+ let i = parseFloat(e.slice(0, e.length - o.length));
844
+ return isNaN(i) ? 0 : (i = i / n, i % 1 === 0 ? r(i) : 0);
845
+ }
846
+ }
847
+ return t;
848
+ }
849
+ function Mt(e, t) {
850
+ let o = e.indexOf("xlink:") === -1 ? "" : ' xmlns:xlink="http://www.w3.org/1999/xlink"';
851
+ for (const r in t) o += " " + r + '="' + t[r] + '"';
852
+ return '<svg xmlns="http://www.w3.org/2000/svg"' + o + ">" + e + "</svg>";
853
+ }
854
+ function Ft(e) {
855
+ return e.replace(/"/g, "'").replace(/%/g, "%25").replace(/#/g, "%23").replace(/</g, "%3C").replace(/>/g, "%3E").replace(/\s+/g, " ");
856
+ }
857
+ function Ot(e) {
858
+ return "data:image/svg+xml," + Ft(e);
859
+ }
860
+ function jt(e) {
861
+ return 'url("' + Ot(e) + '")';
862
+ }
863
+ let F;
864
+ function At() {
865
+ try {
866
+ F = window.trustedTypes.createPolicy("iconify", { createHTML: (e) => e });
867
+ } catch {
868
+ F = null;
869
+ }
870
+ }
871
+ function Nt(e) {
872
+ return F === void 0 && At(), F ? F.createHTML(e) : e;
873
+ }
874
+ const we = {
875
+ ...be,
876
+ inline: !1
877
+ }, Dt = {
878
+ xmlns: "http://www.w3.org/2000/svg",
879
+ xmlnsXlink: "http://www.w3.org/1999/xlink",
880
+ "aria-hidden": !0,
881
+ role: "img"
882
+ }, Rt = {
883
+ display: "inline-block"
884
+ }, V = {
885
+ backgroundColor: "currentColor"
886
+ }, Ie = {
887
+ backgroundColor: "transparent"
888
+ }, ie = {
889
+ Image: "var(--svg)",
890
+ Repeat: "no-repeat",
891
+ Size: "100% 100%"
892
+ }, se = {
893
+ WebkitMask: V,
894
+ mask: V,
895
+ background: Ie
896
+ };
897
+ for (const e in se) {
898
+ const t = se[e];
899
+ for (const o in ie)
900
+ t[e + o] = ie[o];
901
+ }
902
+ const _t = {
903
+ ...we,
904
+ inline: !0
905
+ };
906
+ function ce(e) {
907
+ return e + (e.match(/^[-0-9.]+$/) ? "px" : "");
908
+ }
909
+ const Bt = (e, t, o) => {
910
+ const r = t.inline ? _t : we, n = Tt(r, t), i = t.mode || "svg", s = {}, c = t.style || {}, l = {
911
+ ...i === "svg" ? Dt : {}
912
+ };
913
+ if (o) {
914
+ const f = _(o, !1, !0);
915
+ if (f) {
916
+ const p = ["iconify"], S = [
917
+ "provider",
918
+ "prefix"
919
+ ];
920
+ for (const x of S)
921
+ f[x] && p.push("iconify--" + f[x]);
922
+ l.className = p.join(" ");
923
+ }
924
+ }
925
+ for (let f in t) {
926
+ const p = t[f];
927
+ if (p !== void 0)
928
+ switch (f) {
929
+ // Properties to ignore
930
+ case "icon":
931
+ case "style":
932
+ case "children":
933
+ case "onLoad":
934
+ case "mode":
935
+ case "ssr":
936
+ case "fallback":
937
+ break;
938
+ // Forward ref
939
+ case "_ref":
940
+ l.ref = p;
941
+ break;
942
+ // Merge class names
943
+ case "className":
944
+ l[f] = (l[f] ? l[f] + " " : "") + p;
945
+ break;
946
+ // Boolean attributes
947
+ case "inline":
948
+ case "hFlip":
949
+ case "vFlip":
950
+ n[f] = p === !0 || p === "true" || p === 1;
951
+ break;
952
+ // Flip as string: 'horizontal,vertical'
953
+ case "flip":
954
+ typeof p == "string" && Pt(n, p);
955
+ break;
956
+ // Color: copy to style
957
+ case "color":
958
+ s.color = p;
959
+ break;
960
+ // Rotation as string
961
+ case "rotate":
962
+ typeof p == "string" ? n[f] = Lt(p) : typeof p == "number" && (n[f] = p);
963
+ break;
964
+ // Remove aria-hidden
965
+ case "ariaHidden":
966
+ case "aria-hidden":
967
+ p !== !0 && p !== "true" && delete l["aria-hidden"];
968
+ break;
969
+ // Copy missing property if it does not exist in customisations
970
+ default:
971
+ r[f] === void 0 && (l[f] = p);
972
+ }
973
+ }
974
+ const a = Ze(e, n), u = a.attributes;
975
+ if (n.inline && (s.verticalAlign = "-0.125em"), i === "svg") {
976
+ l.style = {
977
+ ...s,
978
+ ...c
979
+ }, Object.assign(l, u);
980
+ let f = 0, p = t.id;
981
+ return typeof p == "string" && (p = p.replace(/-/g, "_")), l.dangerouslySetInnerHTML = {
982
+ __html: Nt(ot(a.body, p ? () => p + "ID" + f++ : "iconifyReact"))
983
+ }, H("svg", l);
984
+ }
985
+ const { body: d, width: h, height: g } = e, y = i === "mask" || (i === "bg" ? !1 : d.indexOf("currentColor") !== -1), b = Mt(d, {
986
+ ...u,
987
+ width: h + "",
988
+ height: g + ""
989
+ });
990
+ return l.style = {
991
+ ...s,
992
+ "--svg": jt(b),
993
+ width: ce(u.width),
994
+ height: ce(u.height),
995
+ ...Rt,
996
+ ...y ? V : Ie,
997
+ ...c
998
+ }, H("span", l);
999
+ };
1000
+ me(!0);
1001
+ rt("", dt);
1002
+ if (typeof document < "u" && typeof window < "u") {
1003
+ const e = window;
1004
+ if (e.IconifyPreload !== void 0) {
1005
+ const t = e.IconifyPreload, o = "Invalid IconifyPreload syntax.";
1006
+ typeof t == "object" && t !== null && (t instanceof Array ? t : [t]).forEach((r) => {
1007
+ try {
1008
+ // Check if item is an object and not null/array
1009
+ (typeof r != "object" || r === null || r instanceof Array || // Check for 'icons' and 'prefix'
1010
+ typeof r.icons != "object" || typeof r.prefix != "string" || // Add icon set
1011
+ !Ve(r)) && console.error(o);
1012
+ } catch {
1013
+ console.error(o);
1014
+ }
1015
+ });
1016
+ }
1017
+ if (e.IconifyProviders !== void 0) {
1018
+ const t = e.IconifyProviders;
1019
+ if (typeof t == "object" && t !== null)
1020
+ for (let o in t) {
1021
+ const r = "IconifyProviders[" + o + "] is invalid.";
1022
+ try {
1023
+ const n = t[o];
1024
+ if (typeof n != "object" || !n || n.resources === void 0)
1025
+ continue;
1026
+ it(o, n) || console.error(r);
1027
+ } catch {
1028
+ console.error(r);
1029
+ }
1030
+ }
1031
+ }
1032
+ }
1033
+ function Se(e) {
1034
+ const [t, o] = M(!!e.ssr), [r, n] = M({});
1035
+ function i(g) {
1036
+ if (g) {
1037
+ const y = e.icon;
1038
+ if (typeof y == "object")
1039
+ return {
1040
+ name: "",
1041
+ data: y
1042
+ };
1043
+ const b = Z(y);
1044
+ if (b)
1045
+ return {
1046
+ name: y,
1047
+ data: b
1048
+ };
1049
+ }
1050
+ return {
1051
+ name: ""
1052
+ };
1053
+ }
1054
+ const [s, c] = M(i(!!e.ssr));
1055
+ function l() {
1056
+ const g = r.callback;
1057
+ g && (g(), n({}));
1058
+ }
1059
+ function a(g) {
1060
+ if (JSON.stringify(s) !== JSON.stringify(g))
1061
+ return l(), c(g), !0;
1062
+ }
1063
+ function u() {
1064
+ var g;
1065
+ const y = e.icon;
1066
+ if (typeof y == "object") {
1067
+ a({
1068
+ name: "",
1069
+ data: y
1070
+ });
1071
+ return;
1072
+ }
1073
+ const b = Z(y);
1074
+ if (a({
1075
+ name: y,
1076
+ data: b
1077
+ }))
1078
+ if (b === void 0) {
1079
+ const f = Ct([y], u);
1080
+ n({
1081
+ callback: f
1082
+ });
1083
+ } else b && ((g = e.onLoad) === null || g === void 0 || g.call(e, y));
1084
+ }
1085
+ D(() => (o(!0), l), []), D(() => {
1086
+ t && u();
1087
+ }, [e.icon, t]);
1088
+ const { name: d, data: h } = s;
1089
+ return h ? Bt({
1090
+ ...G,
1091
+ ...h
1092
+ }, e, d) : e.children ? e.children : e.fallback ? e.fallback : H("span", {});
1093
+ }
1094
+ const on = k((e, t) => Se({
1095
+ ...e,
1096
+ _ref: t
1097
+ }));
1098
+ k((e, t) => Se({
1099
+ inline: !0,
1100
+ ...e,
1101
+ _ref: t
1102
+ }));
1103
+ const Ut = k(
1104
+ ({ color: e = "primary", radius: t = "full", testId: o = "veevart-button", ...r }, n) => /* @__PURE__ */ I(Le, { ref: n, color: e, radius: t, "data-testid": o, ...r })
1105
+ );
1106
+ Ut.displayName = "Button";
1107
+ function $t({ label: e, ...t }) {
1108
+ return /* @__PURE__ */ I("button", { ...t, "aria-label": e, children: /* @__PURE__ */ I(
1109
+ "svg",
1110
+ {
1111
+ "aria-hidden": "true",
1112
+ className: "fill-current",
1113
+ fill: "none",
1114
+ focusable: "false",
1115
+ height: "1em",
1116
+ role: "presentation",
1117
+ stroke: "currentColor",
1118
+ strokeLinecap: "round",
1119
+ strokeLinejoin: "round",
1120
+ strokeWidth: 2,
1121
+ viewBox: "0 0 24 24",
1122
+ width: "1em",
1123
+ children: /* @__PURE__ */ I("path", { d: "M18 6L6 18M6 6l12 12" })
1124
+ }
1125
+ ) });
1126
+ }
1127
+ function Ht(e) {
1128
+ return e !== void 0 && e.trim() !== "";
1129
+ }
1130
+ function ke(e, t) {
1131
+ const o = De();
1132
+ if (Ee(t)) return t;
1133
+ const r = [e, o].find(Ht);
1134
+ return r === void 0 ? void 0 : /* @__PURE__ */ I($t, { label: r });
1135
+ }
1136
+ const Qt = k(({ closeLabel: e, closeButton: t, ...o }, r) => {
1137
+ const n = ke(e, t);
1138
+ return /* @__PURE__ */ I(Me, { ref: r, ...o, closeButton: n });
1139
+ });
1140
+ Qt.displayName = "Drawer";
1141
+ const qt = k(({ closeLabel: e, closeButton: t, ...o }, r) => {
1142
+ const n = ke(e, t);
1143
+ return /* @__PURE__ */ I(Fe, { ref: r, ...o, closeButton: n });
1144
+ });
1145
+ qt.displayName = "Modal";
1146
+ function zt(e) {
1147
+ const t = e?.closest('[role="dialog"]');
1148
+ return t?.parentElement ?? t ?? void 0;
1149
+ }
1150
+ const Vt = k(({ popoverProps: e, ...t }, o) => {
1151
+ const r = Pe(null), [n, i] = M(void 0), { "data-react-aria-top-layer": s, ...c } = e ?? {}, l = s === "true" || s === void 0 && n !== void 0, a = {
1152
+ ...c,
1153
+ disableDialogFocus: c.disableDialogFocus ?? (n ? !0 : void 0),
1154
+ portalContainer: c.portalContainer ?? n,
1155
+ ...l ? { "data-react-aria-top-layer": "true" } : {}
1156
+ };
1157
+ return D(() => {
1158
+ i(zt(r.current));
1159
+ }, []), /* @__PURE__ */ I("span", { ref: r, className: "contents", children: /* @__PURE__ */ I(Oe, { ref: o, ...t, popoverProps: a }) });
1160
+ });
1161
+ Vt.displayName = "Select";
1162
+ const Gt = "motion-reduce:animate-none motion-reduce:transition-none motion-reduce:before:animate-none motion-reduce:before:transition-none motion-reduce:after:transition-none", Wt = k(({ classNames: e, ...t }, o) => /* @__PURE__ */ I(
1163
+ je,
1164
+ {
1165
+ ref: o,
1166
+ ...t,
1167
+ classNames: { ...e, base: le(Gt, e?.base) }
1168
+ }
1169
+ ));
1170
+ Wt.displayName = "Skeleton";
1171
+ const Kt = "text-default-600 data-[hover=true]:text-default-700", Jt = k(
1172
+ ({ classNames: e, ...t }, o) => /* @__PURE__ */ I(
1173
+ Ae,
1174
+ {
1175
+ ref: o,
1176
+ ...t,
1177
+ classNames: { ...e, th: le(Kt, e?.th) }
1178
+ }
1179
+ )
1180
+ );
1181
+ Jt.displayName = "Table";
1182
+ function rn(e) {
1183
+ return e != null && e !== !1 && e !== "";
1184
+ }
1185
+ export {
1186
+ Ut as B,
1187
+ Ne as C,
1188
+ Qt as D,
1189
+ on as I,
1190
+ qt as M,
1191
+ Vt as S,
1192
+ Jt as T,
1193
+ nn as a,
1194
+ Wt as b,
1195
+ tn as c,
1196
+ Re as d,
1197
+ rn as h,
1198
+ en as s,
1199
+ De as u
1200
+ };