ik-next-ui 0.0.1

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 (206) hide show
  1. package/dist/Demo/ik.index.es.js +8 -0
  2. package/dist/IkApprovalProcess/ik-next-ui.css +1 -0
  3. package/dist/IkApprovalProcess/ik.index.es.js +2610 -0
  4. package/dist/IkApprovalProcessDetail/ik-next-ui.css +1 -0
  5. package/dist/IkApprovalProcessDetail/ik.index.es.js +17033 -0
  6. package/dist/IkAutoCard/ik-next-ui.css +1 -0
  7. package/dist/IkAutoCard/ik.index.es.js +51 -0
  8. package/dist/IkBaseDialog/ik-next-ui.css +1 -0
  9. package/dist/IkBaseDialog/ik.index.es.js +1954 -0
  10. package/dist/IkBottomOperate/ik-next-ui.css +1 -0
  11. package/dist/IkBottomOperate/ik.index.es.js +241 -0
  12. package/dist/IkBtnContent/ik-next-ui.css +1 -0
  13. package/dist/IkBtnContent/ik.index.es.js +80 -0
  14. package/dist/IkCollapseCard/ik-next-ui.css +1 -0
  15. package/dist/IkCollapseCard/ik.index.es.js +1924 -0
  16. package/dist/IkCurrencyInput/ik.index.es.js +60 -0
  17. package/dist/IkDescription/ik-next-ui.css +1 -0
  18. package/dist/IkDescription/ik.index.es.js +16544 -0
  19. package/dist/IkDetailPreviewFiles/ik-next-ui.css +1 -0
  20. package/dist/IkDetailPreviewFiles/ik.index.es.js +16540 -0
  21. package/dist/IkDragList/ik-next-ui.css +1 -0
  22. package/dist/IkDragList/ik.index.es.js +445 -0
  23. package/dist/IkEmpty/ik-next-ui.css +1 -0
  24. package/dist/IkEmpty/ik.index.es.js +44 -0
  25. package/dist/IkFileIcon/ik.index.es.js +619 -0
  26. package/dist/IkHorizontalStepBar/ik-next-ui.css +1 -0
  27. package/dist/IkHorizontalStepBar/ik.index.es.js +279 -0
  28. package/dist/IkIconPicker/ik-next-ui.css +1 -0
  29. package/dist/IkIconPicker/ik.index.es.js +2060 -0
  30. package/dist/IkImageUploadEditor/ik-next-ui.css +9 -0
  31. package/dist/IkImageUploadEditor/ik.index.es.js +9489 -0
  32. package/dist/IkImageViewer/ik.index.es.js +552 -0
  33. package/dist/IkMonacoEditor/ik-next-ui.css +1 -0
  34. package/dist/IkMonacoEditor/ik.index.es.js +2566 -0
  35. package/dist/IkOnlyOffice/ik.index.es.js +1612 -0
  36. package/dist/IkPage/ik.index.es.js +1 -0
  37. package/dist/IkPickerUser/ik-next-ui.css +1 -0
  38. package/dist/IkPickerUser/ik.index.es.js +2077 -0
  39. package/dist/IkPlayer/ik-next-ui.css +1 -0
  40. package/dist/IkPlayer/ik.index.es.js +11071 -0
  41. package/dist/IkPreviewFile/ik-next-ui.css +1 -0
  42. package/dist/IkPreviewFile/ik.index.es.js +16385 -0
  43. package/dist/IkPreviewFileDialog/ik-next-ui.css +1 -0
  44. package/dist/IkPreviewFileDialog/ik.index.es.js +15486 -0
  45. package/dist/IkRadioGroup/ik-next-ui.css +1 -0
  46. package/dist/IkRadioGroup/ik.index.es.js +1937 -0
  47. package/dist/IkSelectTag/ik-next-ui.css +1 -0
  48. package/dist/IkSelectTag/ik.index.es.js +359 -0
  49. package/dist/IkSideText/ik-next-ui.css +1 -0
  50. package/dist/IkSideText/ik.index.es.js +2084 -0
  51. package/dist/IkStatu/ik-next-ui.css +1 -0
  52. package/dist/IkStatu/ik.index.es.js +131 -0
  53. package/dist/IkStatuOver/ik-next-ui.css +1 -0
  54. package/dist/IkStatuOver/ik.index.es.js +284 -0
  55. package/dist/IkSvgIcon/ik-next-ui.css +1 -0
  56. package/dist/IkSvgIcon/ik.index.es.js +1845 -0
  57. package/dist/IkTemplateOfficeConfig/ik-next-ui.css +1 -0
  58. package/dist/IkTemplateOfficeConfig/ik.index.es.js +2027 -0
  59. package/dist/IkTinymce/ik-next-ui.css +1 -0
  60. package/dist/IkTinymce/ik.index.es.js +50349 -0
  61. package/dist/IkTooltip/ik.index.es.js +48 -0
  62. package/dist/IkTree/ik-next-ui.css +1 -0
  63. package/dist/IkTree/ik.index.es.js +136 -0
  64. package/dist/IkUploadFile/ik-next-ui.css +1 -0
  65. package/dist/IkUploadFile/ik.index.es.js +17251 -0
  66. package/dist/IkUploadImage/ik-next-ui.css +1 -0
  67. package/dist/IkUploadImage/ik.index.es.js +2946 -0
  68. package/dist/IkVerticalStepBar/ik-next-ui.css +1 -0
  69. package/dist/IkVerticalStepBar/ik.index.es.js +1987 -0
  70. package/dist/Provider/ik.index.es.js +42 -0
  71. package/dist/ik-next-ui.css +9 -0
  72. package/dist/index.es.js +84696 -0
  73. package/dist/index.umd.js +371 -0
  74. package/dist/resolver.cjs +1 -0
  75. package/dist/resolver.js +63 -0
  76. package/dist/src/components/Demo/index.d.ts +4 -0
  77. package/dist/src/components/IkApprovalProcess/index.d.ts +100 -0
  78. package/dist/src/components/IkApprovalProcess/src/IkApprovalProcess.vue.d.ts +100 -0
  79. package/dist/src/components/IkApprovalProcessDetail/index.d.ts +108 -0
  80. package/dist/src/components/IkApprovalProcessDetail/src/IkApprovalProcessDetail.vue.d.ts +109 -0
  81. package/dist/src/components/IkAutoCard/index.d.ts +60 -0
  82. package/dist/src/components/IkAutoCard/src/IkAutoCard.vue.d.ts +43 -0
  83. package/dist/src/components/IkBaseDialog/index.d.ts +141 -0
  84. package/dist/src/components/IkBaseDialog/src/CloseIcon.vue.d.ts +23 -0
  85. package/dist/src/components/IkBaseDialog/src/IkBaseDialog.vue.d.ts +87 -0
  86. package/dist/src/components/IkBottomOperate/index.d.ts +155 -0
  87. package/dist/src/components/IkBottomOperate/src/IkBottomOperate.vue.d.ts +84 -0
  88. package/dist/src/components/IkCollapseCard/index.d.ts +59 -0
  89. package/dist/src/components/IkCollapseCard/src/index.vue.d.ts +36 -0
  90. package/dist/src/components/IkCurrencyInput/index.d.ts +25 -0
  91. package/dist/src/components/IkCurrencyInput/src/IkCurrencyInput.vue.d.ts +25 -0
  92. package/dist/src/components/IkDescription/index.d.ts +235 -0
  93. package/dist/src/components/IkDescription/src/IkDescription.vue.d.ts +146 -0
  94. package/dist/src/components/IkDetailPreviewFiles/index.d.ts +52 -0
  95. package/dist/src/components/IkDetailPreviewFiles/src/IkDetailPreviewFiles.vue.d.ts +53 -0
  96. package/dist/src/components/IkDragList/index.d.ts +509 -0
  97. package/dist/src/components/IkDragList/src/IkDragList.vue.d.ts +307 -0
  98. package/dist/src/components/IkDragList/src/default-props.d.ts +150 -0
  99. package/dist/src/components/IkEmpty/index.d.ts +69 -0
  100. package/dist/src/components/IkEmpty/src/index.vue.d.ts +41 -0
  101. package/dist/src/components/IkFileIcon/index.d.ts +40 -0
  102. package/dist/src/components/IkFileIcon/src/IkFileIcon.vue.d.ts +42 -0
  103. package/dist/src/components/IkHorizontalStepBar/index.d.ts +224 -0
  104. package/dist/src/components/IkHorizontalStepBar/src/IkHorizontalStepBar.vue.d.ts +137 -0
  105. package/dist/src/components/IkIconPicker/index.d.ts +83 -0
  106. package/dist/src/components/IkIconPicker/src/index.vue.d.ts +83 -0
  107. package/dist/src/components/IkImageUploadEditor/index.d.ts +231 -0
  108. package/dist/src/components/IkImageUploadEditor/src/IkImageUploadEditor.vue.d.ts +232 -0
  109. package/dist/src/components/IkImageViewer/index.d.ts +6 -0
  110. package/dist/src/components/IkImageViewer/src/IkImageViewer.vue.d.ts +11 -0
  111. package/dist/src/components/IkImageViewer/src/image-viewer.d.ts +87 -0
  112. package/dist/src/components/IkMonacoEditor/index.d.ts +229 -0
  113. package/dist/src/components/IkMonacoEditor/src/editor-config.d.ts +10 -0
  114. package/dist/src/components/IkMonacoEditor/src/index.vue.d.ts +232 -0
  115. package/dist/src/components/IkOnlyOffice/index.d.ts +32 -0
  116. package/dist/src/components/IkOnlyOffice/src/IkOnlyOffice.vue.d.ts +32 -0
  117. package/dist/src/components/IkPage/index.d.ts +0 -0
  118. package/dist/src/components/IkPickerUser/index.d.ts +373 -0
  119. package/dist/src/components/IkPickerUser/src/avatar/Avatar.vue.d.ts +41 -0
  120. package/dist/src/components/IkPickerUser/src/default.d.ts +156 -0
  121. package/dist/src/components/IkPickerUser/src/list/GroupList.vue.d.ts +112 -0
  122. package/dist/src/components/IkPickerUser/src/list/PostList.vue.d.ts +110 -0
  123. package/dist/src/components/IkPickerUser/src/list/RoleList.vue.d.ts +110 -0
  124. package/dist/src/components/IkPickerUser/src/list/props.d.ts +49 -0
  125. package/dist/src/components/IkPickerUser/src/list/utils.d.ts +5 -0
  126. package/dist/src/components/IkPickerUser/src/picker.vue.d.ts +375 -0
  127. package/dist/src/components/IkPickerUser/src/svg/close_svg.vue.d.ts +2 -0
  128. package/dist/src/components/IkPickerUser/src/svg/group_svg.vue.d.ts +2 -0
  129. package/dist/src/components/IkPickerUser/src/svg/post_svg.vue.d.ts +2 -0
  130. package/dist/src/components/IkPickerUser/src/svg/role_svg.vue.d.ts +2 -0
  131. package/dist/src/components/IkPickerUser/src/svg/search_svg.vue.d.ts +2 -0
  132. package/dist/src/components/IkPickerUser/src/use-picker-data.d.ts +15 -0
  133. package/dist/src/components/IkPickerUser/types.d.ts +28 -0
  134. package/dist/src/components/IkPlayer/index.d.ts +82 -0
  135. package/dist/src/components/IkPlayer/src/Player.vue.d.ts +48 -0
  136. package/dist/src/components/IkPreviewFile/index.d.ts +382 -0
  137. package/dist/src/components/IkPreviewFile/src/IkPreviewFile.vue.d.ts +231 -0
  138. package/dist/src/components/IkPreviewFileDialog/index.d.ts +80 -0
  139. package/dist/src/components/IkPreviewFileDialog/src/IkPreviewFileDialog.vue.d.ts +82 -0
  140. package/dist/src/components/IkRadioGroup/index.d.ts +30 -0
  141. package/dist/src/components/IkRadioGroup/src/index.vue.d.ts +32 -0
  142. package/dist/src/components/IkSelectTag/index.d.ts +85 -0
  143. package/dist/src/components/IkSelectTag/src/index.vue.d.ts +49 -0
  144. package/dist/src/components/IkSideText/IkLinearIcon.vue.d.ts +32 -0
  145. package/dist/src/components/IkSideText/IkSideText.vue.d.ts +115 -0
  146. package/dist/src/components/IkSideText/index.d.ts +113 -0
  147. package/dist/src/components/IkSideText/useLinear.d.ts +3 -0
  148. package/dist/src/components/IkStatu/index.d.ts +117 -0
  149. package/dist/src/components/IkStatu/src/index.vue.d.ts +119 -0
  150. package/dist/src/components/IkStatuOver/index.d.ts +36 -0
  151. package/dist/src/components/IkStatuOver/src/index.vue.d.ts +52 -0
  152. package/dist/src/components/IkSvgIcon/index.d.ts +135 -0
  153. package/dist/src/components/IkSvgIcon/src/index.vue.d.ts +146 -0
  154. package/dist/src/components/IkTemplateOfficeConfig/index.d.ts +130 -0
  155. package/dist/src/components/IkTemplateOfficeConfig/src/IkTemplateOfficeConfig.vue.d.ts +130 -0
  156. package/dist/src/components/IkTemplateOfficeConfig/src/templateOfficeData.vue.d.ts +57 -0
  157. package/dist/src/components/IkTinymce/index.d.ts +215 -0
  158. package/dist/src/components/IkTinymce/src/index.vue.d.ts +216 -0
  159. package/dist/src/components/IkTooltip/index.d.ts +84 -0
  160. package/dist/src/components/IkTooltip/src/index.vue.d.ts +52 -0
  161. package/dist/src/components/IkTree/IkTree.vue.d.ts +1597 -0
  162. package/dist/src/components/IkTree/index.d.ts +4693 -0
  163. package/dist/src/components/IkUploadFile/index.d.ts +586 -0
  164. package/dist/src/components/IkUploadFile/src/components/ErrorFileItem.vue.d.ts +27 -0
  165. package/dist/src/components/IkUploadFile/src/components/FileItemCard.vue.d.ts +85 -0
  166. package/dist/src/components/IkUploadFile/src/components/FileItemDefault.vue.d.ts +103 -0
  167. package/dist/src/components/IkUploadFile/src/components/FileItemSimple.vue.d.ts +68 -0
  168. package/dist/src/components/IkUploadFile/src/components/FileItemSimpleIcon.vue.d.ts +112 -0
  169. package/dist/src/components/IkUploadFile/src/components/UploadTriggerButton.vue.d.ts +59 -0
  170. package/dist/src/components/IkUploadFile/src/components/UploadTriggerCard.vue.d.ts +90 -0
  171. package/dist/src/components/IkUploadFile/src/hooks/useFileInfo.d.ts +35 -0
  172. package/dist/src/components/IkUploadFile/src/hooks/useFileOperations.d.ts +32 -0
  173. package/dist/src/components/IkUploadFile/src/hooks/useUploadFile.d.ts +35 -0
  174. package/dist/src/components/IkUploadFile/src/index.vue.d.ts +349 -0
  175. package/dist/src/components/IkUploadFile/src/types/index.d.ts +133 -0
  176. package/dist/src/components/IkUploadFile/src/utils.d.ts +0 -0
  177. package/dist/src/components/IkUploadImage/index.d.ts +287 -0
  178. package/dist/src/components/IkUploadImage/src/index.vue.d.ts +171 -0
  179. package/dist/src/components/IkUploadImage/src/loading.vue.d.ts +2 -0
  180. package/dist/src/components/IkVerticalStepBar/index.d.ts +79 -0
  181. package/dist/src/components/IkVerticalStepBar/src/IkVerticalStepBar.vue.d.ts +81 -0
  182. package/dist/src/components/Provider/ProviderConfig.vue.d.ts +59 -0
  183. package/dist/src/components/Provider/index.d.ts +99 -0
  184. package/dist/src/components/index.d.ts +37 -0
  185. package/dist/src/components-dev/IkUmoEditor/index.d.ts +322 -0
  186. package/dist/src/components-dev/IkUmoEditor/src/props.d.ts +138 -0
  187. package/dist/src/components-dev/IkUmoEditor/src/types.d.ts +78 -0
  188. package/dist/src/components-dev/IkUmoViewer/index.d.ts +168 -0
  189. package/dist/src/components-dev/IkUmoViewer/src/props.d.ts +85 -0
  190. package/dist/src/components-dev/IkUmoViewer/src/types.d.ts +13 -0
  191. package/dist/src/enum/search.d.ts +88 -0
  192. package/dist/src/iking-ui/component.d.ts +4 -0
  193. package/dist/src/iking-ui/defaults.d.ts +4 -0
  194. package/dist/src/iking-ui/index.d.ts +6 -0
  195. package/dist/src/iking-ui/make-installer.d.ts +5 -0
  196. package/dist/src/iking-ui/resolver.d.ts +16 -0
  197. package/dist/src/utils/approval.d.ts +10 -0
  198. package/dist/src/utils/file.d.ts +27 -0
  199. package/dist/src/utils/index.d.ts +12 -0
  200. package/dist/src/utils/install.d.ts +6 -0
  201. package/dist/src/utils/math.d.ts +3 -0
  202. package/dist/src/utils/object.d.ts +4 -0
  203. package/dist/src/utils/theme.d.ts +1 -0
  204. package/dist/src/utils/typescript.d.ts +6 -0
  205. package/dist/src/utils/use-provider.d.ts +15 -0
  206. package/package.json +236 -0
@@ -0,0 +1,1987 @@
1
+ import { defineComponent as J, h as se, toValue as S, watch as F, nextTick as Se, isRef as pt, toRef as gt, readonly as mt, customRef as vt, ref as Qe, getCurrentScope as yt, onScopeDispose as wt, shallowRef as A, computed as O, unref as E, reactive as kt, resolveComponent as bt, openBlock as I, createElementBlock as C, normalizeStyle as j, normalizeClass as z, createBlock as L, withCtx as N, createElementVNode as T, createCommentVNode as K, Fragment as le, renderList as Ce, toDisplayString as ee, createTextVNode as xt, withModifiers as Te } from "vue";
2
+ const Ge = (e, n) => (e.install = (t) => {
3
+ for (const i of [e, ...Object.values({})])
4
+ t.component(i.name, i);
5
+ }, e);
6
+ function Ke(...e) {
7
+ const n = [];
8
+ for (const t of e)
9
+ if (t) {
10
+ if (typeof t == "string")
11
+ n.push(t);
12
+ else if (Array.isArray(t)) {
13
+ const i = Ke(...t);
14
+ i && n.push(i);
15
+ } else if (typeof t == "object")
16
+ for (const [i, o] of Object.entries(t))
17
+ o && n.push(i);
18
+ }
19
+ return n.join(" ");
20
+ }
21
+ const Ye = (e, n) => {
22
+ const t = e.__vccOpts || e;
23
+ for (const [i, o] of n)
24
+ t[i] = o;
25
+ return t;
26
+ }, Je = /^[a-z0-9]+(-[a-z0-9]+)*$/, X = (e, n, t, i = "") => {
27
+ const o = e.split(":");
28
+ if (e.slice(0, 1) === "@") {
29
+ if (o.length < 2 || o.length > 3)
30
+ return null;
31
+ i = o.shift().slice(1);
32
+ }
33
+ if (o.length > 3 || !o.length)
34
+ return null;
35
+ if (o.length > 1) {
36
+ const l = o.pop(), a = o.pop(), f = {
37
+ // Allow provider without '@': "provider:prefix:name"
38
+ provider: o.length > 0 ? o[0] : i,
39
+ prefix: a,
40
+ name: l
41
+ };
42
+ return n && !q(f) ? null : f;
43
+ }
44
+ const r = o[0], s = r.split("-");
45
+ if (s.length > 1) {
46
+ const l = {
47
+ provider: i,
48
+ prefix: s.shift(),
49
+ name: s.join("-")
50
+ };
51
+ return n && !q(l) ? null : l;
52
+ }
53
+ if (t && i === "") {
54
+ const l = {
55
+ provider: i,
56
+ prefix: "",
57
+ name: r
58
+ };
59
+ return n && !q(l, t) ? null : l;
60
+ }
61
+ return null;
62
+ }, q = (e, n) => e ? !!// Check prefix: cannot be empty, unless allowSimpleName is enabled
63
+ // Check name: cannot be empty
64
+ ((n && e.prefix === "" || e.prefix) && e.name) : !1, Xe = Object.freeze(
65
+ {
66
+ left: 0,
67
+ top: 0,
68
+ width: 16,
69
+ height: 16
70
+ }
71
+ ), Y = Object.freeze({
72
+ rotate: 0,
73
+ vFlip: !1,
74
+ hFlip: !1
75
+ }), Z = Object.freeze({
76
+ ...Xe,
77
+ ...Y
78
+ }), ce = Object.freeze({
79
+ ...Z,
80
+ body: "",
81
+ hidden: !1
82
+ });
83
+ function It(e, n) {
84
+ const t = {};
85
+ !e.hFlip != !n.hFlip && (t.hFlip = !0), !e.vFlip != !n.vFlip && (t.vFlip = !0);
86
+ const i = ((e.rotate || 0) + (n.rotate || 0)) % 4;
87
+ return i && (t.rotate = i), t;
88
+ }
89
+ function Pe(e, n) {
90
+ const t = It(e, n);
91
+ for (const i in ce)
92
+ i in Y ? i in e && !(i in t) && (t[i] = Y[i]) : i in n ? t[i] = n[i] : i in e && (t[i] = e[i]);
93
+ return t;
94
+ }
95
+ function St(e, n) {
96
+ const t = e.icons, i = e.aliases || /* @__PURE__ */ Object.create(null), o = /* @__PURE__ */ Object.create(null);
97
+ function r(s) {
98
+ if (t[s])
99
+ return o[s] = [];
100
+ if (!(s in o)) {
101
+ o[s] = null;
102
+ const l = i[s] && i[s].parent, a = l && r(l);
103
+ a && (o[s] = [l].concat(a));
104
+ }
105
+ return o[s];
106
+ }
107
+ return Object.keys(t).concat(Object.keys(i)).forEach(r), o;
108
+ }
109
+ function Ct(e, n, t) {
110
+ const i = e.icons, o = e.aliases || /* @__PURE__ */ Object.create(null);
111
+ let r = {};
112
+ function s(l) {
113
+ r = Pe(
114
+ i[l] || o[l],
115
+ r
116
+ );
117
+ }
118
+ return s(n), t.forEach(s), Pe(e, r);
119
+ }
120
+ function Ze(e, n) {
121
+ const t = [];
122
+ if (typeof e != "object" || typeof e.icons != "object")
123
+ return t;
124
+ e.not_found instanceof Array && e.not_found.forEach((o) => {
125
+ n(o, null), t.push(o);
126
+ });
127
+ const i = St(e);
128
+ for (const o in i) {
129
+ const r = i[o];
130
+ r && (n(o, Ct(e, o, r)), t.push(o));
131
+ }
132
+ return t;
133
+ }
134
+ const Tt = {
135
+ provider: "",
136
+ aliases: {},
137
+ not_found: {},
138
+ ...Xe
139
+ };
140
+ function te(e, n) {
141
+ for (const t in n)
142
+ if (t in e && typeof e[t] != typeof n[t])
143
+ return !1;
144
+ return !0;
145
+ }
146
+ function _e(e) {
147
+ if (typeof e != "object" || e === null)
148
+ return null;
149
+ const n = e;
150
+ if (typeof n.prefix != "string" || !e.icons || typeof e.icons != "object" || !te(e, Tt))
151
+ return null;
152
+ const t = n.icons;
153
+ for (const o in t) {
154
+ const r = t[o];
155
+ if (
156
+ // Name cannot be empty
157
+ !o || // Must have body
158
+ typeof r.body != "string" || // Check other props
159
+ !te(
160
+ r,
161
+ ce
162
+ )
163
+ )
164
+ return null;
165
+ }
166
+ const i = n.aliases || /* @__PURE__ */ Object.create(null);
167
+ for (const o in i) {
168
+ const r = i[o], s = r.parent;
169
+ if (
170
+ // Name cannot be empty
171
+ !o || // Parent must be set and point to existing icon
172
+ typeof s != "string" || !t[s] && !i[s] || // Check other props
173
+ !te(
174
+ r,
175
+ ce
176
+ )
177
+ )
178
+ return null;
179
+ }
180
+ return n;
181
+ }
182
+ const Oe = /* @__PURE__ */ Object.create(null);
183
+ function Pt(e, n) {
184
+ return {
185
+ provider: e,
186
+ prefix: n,
187
+ icons: /* @__PURE__ */ Object.create(null),
188
+ missing: /* @__PURE__ */ new Set()
189
+ };
190
+ }
191
+ function $(e, n) {
192
+ const t = Oe[e] || (Oe[e] = /* @__PURE__ */ Object.create(null));
193
+ return t[n] || (t[n] = Pt(e, n));
194
+ }
195
+ function ye(e, n) {
196
+ return _e(n) ? Ze(n, (t, i) => {
197
+ i ? e.icons[t] = i : e.missing.add(t);
198
+ }) : [];
199
+ }
200
+ function Ot(e, n, t) {
201
+ try {
202
+ if (typeof t.body == "string")
203
+ return e.icons[n] = { ...t }, !0;
204
+ } catch {
205
+ }
206
+ return !1;
207
+ }
208
+ let V = !1;
209
+ function et(e) {
210
+ return typeof e == "boolean" && (V = e), V;
211
+ }
212
+ function Et(e) {
213
+ const n = typeof e == "string" ? X(e, !0, V) : e;
214
+ if (n) {
215
+ const t = $(n.provider, n.prefix), i = n.name;
216
+ return t.icons[i] || (t.missing.has(i) ? null : void 0);
217
+ }
218
+ }
219
+ function jt(e, n) {
220
+ const t = X(e, !0, V);
221
+ if (!t)
222
+ return !1;
223
+ const i = $(t.provider, t.prefix);
224
+ return n ? Ot(i, t.name, n) : (i.missing.add(t.name), !0);
225
+ }
226
+ function Mt(e, n) {
227
+ if (typeof e != "object")
228
+ return !1;
229
+ if (typeof n != "string" && (n = e.provider || ""), V && !n && !e.prefix) {
230
+ let o = !1;
231
+ return _e(e) && (e.prefix = "", Ze(e, (r, s) => {
232
+ jt(r, s) && (o = !0);
233
+ })), o;
234
+ }
235
+ const t = e.prefix;
236
+ if (!q({
237
+ prefix: t,
238
+ name: "a"
239
+ }))
240
+ return !1;
241
+ const i = $(n, t);
242
+ return !!ye(i, e);
243
+ }
244
+ const tt = Object.freeze({
245
+ width: null,
246
+ height: null
247
+ }), nt = Object.freeze({
248
+ // Dimensions
249
+ ...tt,
250
+ // Transformations
251
+ ...Y
252
+ }), Lt = /(-?[0-9.]*[0-9]+[0-9.]*)/g, zt = /^-?[0-9.]*[0-9]+[0-9.]*$/g;
253
+ function Ee(e, n, t) {
254
+ if (n === 1)
255
+ return e;
256
+ if (t = t || 100, typeof e == "number")
257
+ return Math.ceil(e * n * t) / t;
258
+ if (typeof e != "string")
259
+ return e;
260
+ const i = e.split(Lt);
261
+ if (i === null || !i.length)
262
+ return e;
263
+ const o = [];
264
+ let r = i.shift(), s = zt.test(r);
265
+ for (; ; ) {
266
+ if (s) {
267
+ const l = parseFloat(r);
268
+ isNaN(l) ? o.push(r) : o.push(Math.ceil(l * n * t) / t);
269
+ } else
270
+ o.push(r);
271
+ if (r = i.shift(), r === void 0)
272
+ return o.join("");
273
+ s = !s;
274
+ }
275
+ }
276
+ function $t(e, n = "defs") {
277
+ let t = "";
278
+ const i = e.indexOf("<" + n);
279
+ for (; i >= 0; ) {
280
+ const o = e.indexOf(">", i), r = e.indexOf("</" + n);
281
+ if (o === -1 || r === -1)
282
+ break;
283
+ const s = e.indexOf(">", r);
284
+ if (s === -1)
285
+ break;
286
+ t += e.slice(o + 1, r).trim(), e = e.slice(0, i).trim() + e.slice(s + 1);
287
+ }
288
+ return {
289
+ defs: t,
290
+ content: e
291
+ };
292
+ }
293
+ function At(e, n) {
294
+ return e ? "<defs>" + e + "</defs>" + n : n;
295
+ }
296
+ function Ft(e, n, t) {
297
+ const i = $t(e);
298
+ return At(i.defs, n + i.content + t);
299
+ }
300
+ const Bt = (e) => e === "unset" || e === "undefined" || e === "none";
301
+ function Nt(e, n) {
302
+ const t = {
303
+ ...Z,
304
+ ...e
305
+ }, i = {
306
+ ...nt,
307
+ ...n
308
+ }, o = {
309
+ left: t.left,
310
+ top: t.top,
311
+ width: t.width,
312
+ height: t.height
313
+ };
314
+ let r = t.body;
315
+ [t, i].forEach((m) => {
316
+ const h = [], w = m.hFlip, b = m.vFlip;
317
+ let v = m.rotate;
318
+ w ? b ? v += 2 : (h.push(
319
+ "translate(" + (o.width + o.left).toString() + " " + (0 - o.top).toString() + ")"
320
+ ), h.push("scale(-1 1)"), o.top = o.left = 0) : b && (h.push(
321
+ "translate(" + (0 - o.left).toString() + " " + (o.height + o.top).toString() + ")"
322
+ ), h.push("scale(1 -1)"), o.top = o.left = 0);
323
+ let k;
324
+ switch (v < 0 && (v -= Math.floor(v / 4) * 4), v = v % 4, v) {
325
+ case 1:
326
+ k = o.height / 2 + o.top, h.unshift(
327
+ "rotate(90 " + k.toString() + " " + k.toString() + ")"
328
+ );
329
+ break;
330
+ case 2:
331
+ h.unshift(
332
+ "rotate(180 " + (o.width / 2 + o.left).toString() + " " + (o.height / 2 + o.top).toString() + ")"
333
+ );
334
+ break;
335
+ case 3:
336
+ k = o.width / 2 + o.left, h.unshift(
337
+ "rotate(-90 " + k.toString() + " " + k.toString() + ")"
338
+ );
339
+ break;
340
+ }
341
+ v % 2 === 1 && (o.left !== o.top && (k = o.left, o.left = o.top, o.top = k), o.width !== o.height && (k = o.width, o.width = o.height, o.height = k)), h.length && (r = Ft(
342
+ r,
343
+ '<g transform="' + h.join(" ") + '">',
344
+ "</g>"
345
+ ));
346
+ });
347
+ const s = i.width, l = i.height, a = o.width, f = o.height;
348
+ let p, d;
349
+ s === null ? (d = l === null ? "1em" : l === "auto" ? f : l, p = Ee(d, a / f)) : (p = s === "auto" ? a : s, d = l === null ? Ee(p, f / a) : l === "auto" ? f : l);
350
+ const c = {}, u = (m, h) => {
351
+ Bt(h) || (c[m] = h.toString());
352
+ };
353
+ u("width", p), u("height", d);
354
+ const g = [o.left, o.top, a, f];
355
+ return c.viewBox = g.join(" "), {
356
+ attributes: c,
357
+ viewBox: g,
358
+ body: r
359
+ };
360
+ }
361
+ const Dt = /\sid="(\S+)"/g, Rt = "IconifyId" + Date.now().toString(16) + (Math.random() * 16777216 | 0).toString(16);
362
+ let Vt = 0;
363
+ function Ut(e, n = Rt) {
364
+ const t = [];
365
+ let i;
366
+ for (; i = Dt.exec(e); )
367
+ t.push(i[1]);
368
+ if (!t.length)
369
+ return e;
370
+ const o = "suffix" + (Math.random() * 16777216 | Date.now()).toString(16);
371
+ return t.forEach((r) => {
372
+ const s = typeof n == "function" ? n(r) : n + (Vt++).toString(), l = r.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
373
+ e = e.replace(
374
+ // Allowed characters before id: [#;"]
375
+ // Allowed characters after id: [)"], .[a-z]
376
+ new RegExp('([#;"])(' + l + ')([")]|\\.[a-z])', "g"),
377
+ "$1" + s + o + "$3"
378
+ );
379
+ }), e = e.replace(new RegExp(o, "g"), ""), e;
380
+ }
381
+ const ae = /* @__PURE__ */ Object.create(null);
382
+ function Wt(e, n) {
383
+ ae[e] = n;
384
+ }
385
+ function ue(e) {
386
+ return ae[e] || ae[""];
387
+ }
388
+ function we(e) {
389
+ let n;
390
+ if (typeof e.resources == "string")
391
+ n = [e.resources];
392
+ else if (n = e.resources, !(n instanceof Array) || !n.length)
393
+ return null;
394
+ return {
395
+ // API hosts
396
+ resources: n,
397
+ // Root path
398
+ path: e.path || "/",
399
+ // URL length limit
400
+ maxURL: e.maxURL || 500,
401
+ // Timeout before next host is used.
402
+ rotate: e.rotate || 750,
403
+ // Timeout before failing query.
404
+ timeout: e.timeout || 5e3,
405
+ // Randomise default API end point.
406
+ random: e.random === !0,
407
+ // Start index
408
+ index: e.index || 0,
409
+ // Receive data after time out (used if time out kicks in first, then API module sends data anyway).
410
+ dataAfterTimeout: e.dataAfterTimeout !== !1
411
+ };
412
+ }
413
+ const ke = /* @__PURE__ */ Object.create(null), D = [
414
+ "https://api.simplesvg.com",
415
+ "https://api.unisvg.com"
416
+ ], Q = [];
417
+ for (; D.length > 0; )
418
+ D.length === 1 || Math.random() > 0.5 ? Q.push(D.shift()) : Q.push(D.pop());
419
+ ke[""] = we({
420
+ resources: ["https://api.iconify.design"].concat(Q)
421
+ });
422
+ function Ht(e, n) {
423
+ const t = we(n);
424
+ return t === null ? !1 : (ke[e] = t, !0);
425
+ }
426
+ function be(e) {
427
+ return ke[e];
428
+ }
429
+ const qt = () => {
430
+ let e;
431
+ try {
432
+ if (e = fetch, typeof e == "function")
433
+ return e;
434
+ } catch {
435
+ }
436
+ };
437
+ let je = qt();
438
+ function Qt(e, n) {
439
+ const t = be(e);
440
+ if (!t)
441
+ return 0;
442
+ let i;
443
+ if (!t.maxURL)
444
+ i = 0;
445
+ else {
446
+ let o = 0;
447
+ t.resources.forEach((s) => {
448
+ o = Math.max(o, s.length);
449
+ });
450
+ const r = n + ".json?icons=";
451
+ i = t.maxURL - o - t.path.length - r.length;
452
+ }
453
+ return i;
454
+ }
455
+ function Gt(e) {
456
+ return e === 404;
457
+ }
458
+ const Kt = (e, n, t) => {
459
+ const i = [], o = Qt(e, n), r = "icons";
460
+ let s = {
461
+ type: r,
462
+ provider: e,
463
+ prefix: n,
464
+ icons: []
465
+ }, l = 0;
466
+ return t.forEach((a, f) => {
467
+ l += a.length + 1, l >= o && f > 0 && (i.push(s), s = {
468
+ type: r,
469
+ provider: e,
470
+ prefix: n,
471
+ icons: []
472
+ }, l = a.length), s.icons.push(a);
473
+ }), i.push(s), i;
474
+ };
475
+ function Yt(e) {
476
+ if (typeof e == "string") {
477
+ const n = be(e);
478
+ if (n)
479
+ return n.path;
480
+ }
481
+ return "/";
482
+ }
483
+ const Jt = (e, n, t) => {
484
+ if (!je) {
485
+ t("abort", 424);
486
+ return;
487
+ }
488
+ let i = Yt(n.provider);
489
+ switch (n.type) {
490
+ case "icons": {
491
+ const r = n.prefix, l = n.icons.join(","), a = new URLSearchParams({
492
+ icons: l
493
+ });
494
+ i += r + ".json?" + a.toString();
495
+ break;
496
+ }
497
+ case "custom": {
498
+ const r = n.uri;
499
+ i += r.slice(0, 1) === "/" ? r.slice(1) : r;
500
+ break;
501
+ }
502
+ default:
503
+ t("abort", 400);
504
+ return;
505
+ }
506
+ let o = 503;
507
+ je(e + i).then((r) => {
508
+ const s = r.status;
509
+ if (s !== 200) {
510
+ setTimeout(() => {
511
+ t(Gt(s) ? "abort" : "next", s);
512
+ });
513
+ return;
514
+ }
515
+ return o = 501, r.json();
516
+ }).then((r) => {
517
+ if (typeof r != "object" || r === null) {
518
+ setTimeout(() => {
519
+ r === 404 ? t("abort", r) : t("next", o);
520
+ });
521
+ return;
522
+ }
523
+ setTimeout(() => {
524
+ t("success", r);
525
+ });
526
+ }).catch(() => {
527
+ t("next", o);
528
+ });
529
+ }, Xt = {
530
+ prepare: Kt,
531
+ send: Jt
532
+ };
533
+ function Zt(e) {
534
+ const n = {
535
+ loaded: [],
536
+ missing: [],
537
+ pending: []
538
+ }, t = /* @__PURE__ */ Object.create(null);
539
+ e.sort((o, r) => o.provider !== r.provider ? o.provider.localeCompare(r.provider) : o.prefix !== r.prefix ? o.prefix.localeCompare(r.prefix) : o.name.localeCompare(r.name));
540
+ let i = {
541
+ provider: "",
542
+ prefix: "",
543
+ name: ""
544
+ };
545
+ return e.forEach((o) => {
546
+ if (i.name === o.name && i.prefix === o.prefix && i.provider === o.provider)
547
+ return;
548
+ i = o;
549
+ const r = o.provider, s = o.prefix, l = o.name, a = t[r] || (t[r] = /* @__PURE__ */ Object.create(null)), f = a[s] || (a[s] = $(r, s));
550
+ let p;
551
+ l in f.icons ? p = n.loaded : s === "" || f.missing.has(l) ? p = n.missing : p = n.pending;
552
+ const d = {
553
+ provider: r,
554
+ prefix: s,
555
+ name: l
556
+ };
557
+ p.push(d);
558
+ }), n;
559
+ }
560
+ function ot(e, n) {
561
+ e.forEach((t) => {
562
+ const i = t.loaderCallbacks;
563
+ i && (t.loaderCallbacks = i.filter((o) => o.id !== n));
564
+ });
565
+ }
566
+ function _t(e) {
567
+ e.pendingCallbacksFlag || (e.pendingCallbacksFlag = !0, setTimeout(() => {
568
+ e.pendingCallbacksFlag = !1;
569
+ const n = e.loaderCallbacks ? e.loaderCallbacks.slice(0) : [];
570
+ if (!n.length)
571
+ return;
572
+ let t = !1;
573
+ const i = e.provider, o = e.prefix;
574
+ n.forEach((r) => {
575
+ const s = r.icons, l = s.pending.length;
576
+ s.pending = s.pending.filter((a) => {
577
+ if (a.prefix !== o)
578
+ return !0;
579
+ const f = a.name;
580
+ if (e.icons[f])
581
+ s.loaded.push({
582
+ provider: i,
583
+ prefix: o,
584
+ name: f
585
+ });
586
+ else if (e.missing.has(f))
587
+ s.missing.push({
588
+ provider: i,
589
+ prefix: o,
590
+ name: f
591
+ });
592
+ else
593
+ return t = !0, !0;
594
+ return !1;
595
+ }), s.pending.length !== l && (t || ot([e], r.id), r.callback(
596
+ s.loaded.slice(0),
597
+ s.missing.slice(0),
598
+ s.pending.slice(0),
599
+ r.abort
600
+ ));
601
+ });
602
+ }));
603
+ }
604
+ let en = 0;
605
+ function tn(e, n, t) {
606
+ const i = en++, o = ot.bind(null, t, i);
607
+ if (!n.pending.length)
608
+ return o;
609
+ const r = {
610
+ id: i,
611
+ icons: n,
612
+ callback: e,
613
+ abort: o
614
+ };
615
+ return t.forEach((s) => {
616
+ (s.loaderCallbacks || (s.loaderCallbacks = [])).push(r);
617
+ }), o;
618
+ }
619
+ function nn(e, n = !0, t = !1) {
620
+ const i = [];
621
+ return e.forEach((o) => {
622
+ const r = typeof o == "string" ? X(o, n, t) : o;
623
+ r && i.push(r);
624
+ }), i;
625
+ }
626
+ var on = {
627
+ resources: [],
628
+ index: 0,
629
+ timeout: 2e3,
630
+ rotate: 750,
631
+ random: !1,
632
+ dataAfterTimeout: !1
633
+ };
634
+ function rn(e, n, t, i) {
635
+ const o = e.resources.length, r = e.random ? Math.floor(Math.random() * o) : e.index;
636
+ let s;
637
+ if (e.random) {
638
+ let y = e.resources.slice(0);
639
+ for (s = []; y.length > 1; ) {
640
+ const x = Math.floor(Math.random() * y.length);
641
+ s.push(y[x]), y = y.slice(0, x).concat(y.slice(x + 1));
642
+ }
643
+ s = s.concat(y);
644
+ } else
645
+ s = e.resources.slice(r).concat(e.resources.slice(0, r));
646
+ const l = Date.now();
647
+ let a = "pending", f = 0, p, d = null, c = [], u = [];
648
+ typeof i == "function" && u.push(i);
649
+ function g() {
650
+ d && (clearTimeout(d), d = null);
651
+ }
652
+ function m() {
653
+ a === "pending" && (a = "aborted"), g(), c.forEach((y) => {
654
+ y.status === "pending" && (y.status = "aborted");
655
+ }), c = [];
656
+ }
657
+ function h(y, x) {
658
+ x && (u = []), typeof y == "function" && u.push(y);
659
+ }
660
+ function w() {
661
+ return {
662
+ startTime: l,
663
+ payload: n,
664
+ status: a,
665
+ queriesSent: f,
666
+ queriesPending: c.length,
667
+ subscribe: h,
668
+ abort: m
669
+ };
670
+ }
671
+ function b() {
672
+ a = "failed", u.forEach((y) => {
673
+ y(void 0, p);
674
+ });
675
+ }
676
+ function v() {
677
+ c.forEach((y) => {
678
+ y.status === "pending" && (y.status = "aborted");
679
+ }), c = [];
680
+ }
681
+ function k(y, x, B) {
682
+ const W = x !== "success";
683
+ switch (c = c.filter((M) => M !== y), a) {
684
+ case "pending":
685
+ break;
686
+ case "failed":
687
+ if (W || !e.dataAfterTimeout)
688
+ return;
689
+ break;
690
+ default:
691
+ return;
692
+ }
693
+ if (x === "abort") {
694
+ p = B, b();
695
+ return;
696
+ }
697
+ if (W) {
698
+ p = B, c.length || (s.length ? P() : b());
699
+ return;
700
+ }
701
+ if (g(), v(), !e.random) {
702
+ const M = e.resources.indexOf(y.resource);
703
+ M !== -1 && M !== e.index && (e.index = M);
704
+ }
705
+ a = "completed", u.forEach((M) => {
706
+ M(B);
707
+ });
708
+ }
709
+ function P() {
710
+ if (a !== "pending")
711
+ return;
712
+ g();
713
+ const y = s.shift();
714
+ if (y === void 0) {
715
+ if (c.length) {
716
+ d = setTimeout(() => {
717
+ g(), a === "pending" && (v(), b());
718
+ }, e.timeout);
719
+ return;
720
+ }
721
+ b();
722
+ return;
723
+ }
724
+ const x = {
725
+ status: "pending",
726
+ resource: y,
727
+ callback: (B, W) => {
728
+ k(x, B, W);
729
+ }
730
+ };
731
+ c.push(x), f++, d = setTimeout(P, e.rotate), t(y, n, x.callback);
732
+ }
733
+ return setTimeout(P), w;
734
+ }
735
+ function it(e) {
736
+ const n = {
737
+ ...on,
738
+ ...e
739
+ };
740
+ let t = [];
741
+ function i() {
742
+ t = t.filter((l) => l().status === "pending");
743
+ }
744
+ function o(l, a, f) {
745
+ const p = rn(
746
+ n,
747
+ l,
748
+ a,
749
+ (d, c) => {
750
+ i(), f && f(d, c);
751
+ }
752
+ );
753
+ return t.push(p), p;
754
+ }
755
+ function r(l) {
756
+ return t.find((a) => l(a)) || null;
757
+ }
758
+ return {
759
+ query: o,
760
+ find: r,
761
+ setIndex: (l) => {
762
+ n.index = l;
763
+ },
764
+ getIndex: () => n.index,
765
+ cleanup: i
766
+ };
767
+ }
768
+ function Me() {
769
+ }
770
+ const ne = /* @__PURE__ */ Object.create(null);
771
+ function sn(e) {
772
+ if (!ne[e]) {
773
+ const n = be(e);
774
+ if (!n)
775
+ return;
776
+ const t = it(n), i = {
777
+ config: n,
778
+ redundancy: t
779
+ };
780
+ ne[e] = i;
781
+ }
782
+ return ne[e];
783
+ }
784
+ function ln(e, n, t) {
785
+ let i, o;
786
+ if (typeof e == "string") {
787
+ const r = ue(e);
788
+ if (!r)
789
+ return t(void 0, 424), Me;
790
+ o = r.send;
791
+ const s = sn(e);
792
+ s && (i = s.redundancy);
793
+ } else {
794
+ const r = we(e);
795
+ if (r) {
796
+ i = it(r);
797
+ const s = e.resources ? e.resources[0] : "", l = ue(s);
798
+ l && (o = l.send);
799
+ }
800
+ }
801
+ return !i || !o ? (t(void 0, 424), Me) : i.query(n, o, t)().abort;
802
+ }
803
+ const Le = "iconify2", U = "iconify", rt = U + "-count", ze = U + "-version", st = 36e5, cn = 168, an = 50;
804
+ function fe(e, n) {
805
+ try {
806
+ return e.getItem(n);
807
+ } catch {
808
+ }
809
+ }
810
+ function xe(e, n, t) {
811
+ try {
812
+ return e.setItem(n, t), !0;
813
+ } catch {
814
+ }
815
+ }
816
+ function $e(e, n) {
817
+ try {
818
+ e.removeItem(n);
819
+ } catch {
820
+ }
821
+ }
822
+ function de(e, n) {
823
+ return xe(e, rt, n.toString());
824
+ }
825
+ function he(e) {
826
+ return parseInt(fe(e, rt)) || 0;
827
+ }
828
+ const _ = {
829
+ local: !0,
830
+ session: !0
831
+ }, lt = {
832
+ local: /* @__PURE__ */ new Set(),
833
+ session: /* @__PURE__ */ new Set()
834
+ };
835
+ let Ie = !1;
836
+ function un(e) {
837
+ Ie = e;
838
+ }
839
+ let H = typeof window > "u" ? {} : window;
840
+ function ct(e) {
841
+ const n = e + "Storage";
842
+ try {
843
+ if (H && H[n] && typeof H[n].length == "number")
844
+ return H[n];
845
+ } catch {
846
+ }
847
+ _[e] = !1;
848
+ }
849
+ function at(e, n) {
850
+ const t = ct(e);
851
+ if (!t)
852
+ return;
853
+ const i = fe(t, ze);
854
+ if (i !== Le) {
855
+ if (i) {
856
+ const l = he(t);
857
+ for (let a = 0; a < l; a++)
858
+ $e(t, U + a.toString());
859
+ }
860
+ xe(t, ze, Le), de(t, 0);
861
+ return;
862
+ }
863
+ const o = Math.floor(Date.now() / st) - cn, r = (l) => {
864
+ const a = U + l.toString(), f = fe(t, a);
865
+ if (typeof f == "string") {
866
+ try {
867
+ const p = JSON.parse(f);
868
+ if (typeof p == "object" && typeof p.cached == "number" && p.cached > o && typeof p.provider == "string" && typeof p.data == "object" && typeof p.data.prefix == "string" && // Valid item: run callback
869
+ n(p, l))
870
+ return !0;
871
+ } catch {
872
+ }
873
+ $e(t, a);
874
+ }
875
+ };
876
+ let s = he(t);
877
+ for (let l = s - 1; l >= 0; l--)
878
+ r(l) || (l === s - 1 ? (s--, de(t, s)) : lt[e].add(l));
879
+ }
880
+ function ut() {
881
+ if (!Ie) {
882
+ un(!0);
883
+ for (const e in _)
884
+ at(e, (n) => {
885
+ const t = n.data, i = n.provider, o = t.prefix, r = $(
886
+ i,
887
+ o
888
+ );
889
+ if (!ye(r, t).length)
890
+ return !1;
891
+ const s = t.lastModified || -1;
892
+ return r.lastModifiedCached = r.lastModifiedCached ? Math.min(r.lastModifiedCached, s) : s, !0;
893
+ });
894
+ }
895
+ }
896
+ function fn(e, n) {
897
+ const t = e.lastModifiedCached;
898
+ if (
899
+ // Matches or newer
900
+ t && t >= n
901
+ )
902
+ return t === n;
903
+ if (e.lastModifiedCached = n, t)
904
+ for (const i in _)
905
+ at(i, (o) => {
906
+ const r = o.data;
907
+ return o.provider !== e.provider || r.prefix !== e.prefix || r.lastModified === n;
908
+ });
909
+ return !0;
910
+ }
911
+ function dn(e, n) {
912
+ Ie || ut();
913
+ function t(i) {
914
+ let o;
915
+ if (!_[i] || !(o = ct(i)))
916
+ return;
917
+ const r = lt[i];
918
+ let s;
919
+ if (r.size)
920
+ r.delete(s = Array.from(r).shift());
921
+ else if (s = he(o), s >= an || !de(o, s + 1))
922
+ return;
923
+ const l = {
924
+ cached: Math.floor(Date.now() / st),
925
+ provider: e.provider,
926
+ data: n
927
+ };
928
+ return xe(
929
+ o,
930
+ U + s.toString(),
931
+ JSON.stringify(l)
932
+ );
933
+ }
934
+ n.lastModified && !fn(e, n.lastModified) || Object.keys(n.icons).length && (n.not_found && (n = Object.assign({}, n), delete n.not_found), t("local") || t("session"));
935
+ }
936
+ function Ae() {
937
+ }
938
+ function hn(e) {
939
+ e.iconsLoaderFlag || (e.iconsLoaderFlag = !0, setTimeout(() => {
940
+ e.iconsLoaderFlag = !1, _t(e);
941
+ }));
942
+ }
943
+ function pn(e) {
944
+ const n = [], t = [];
945
+ return e.forEach((i) => {
946
+ (i.match(Je) ? n : t).push(i);
947
+ }), {
948
+ valid: n,
949
+ invalid: t
950
+ };
951
+ }
952
+ function R(e, n, t, i) {
953
+ function o() {
954
+ const r = e.pendingIcons;
955
+ n.forEach((s) => {
956
+ r && r.delete(s), e.icons[s] || e.missing.add(s);
957
+ });
958
+ }
959
+ if (t && typeof t == "object")
960
+ try {
961
+ if (!ye(e, t).length) {
962
+ o();
963
+ return;
964
+ }
965
+ i && dn(e, t);
966
+ } catch (r) {
967
+ console.error(r);
968
+ }
969
+ o(), hn(e);
970
+ }
971
+ function Fe(e, n) {
972
+ e instanceof Promise ? e.then((t) => {
973
+ n(t);
974
+ }).catch(() => {
975
+ n(null);
976
+ }) : n(e);
977
+ }
978
+ function gn(e, n) {
979
+ e.iconsToLoad ? e.iconsToLoad = e.iconsToLoad.concat(n).sort() : e.iconsToLoad = n, e.iconsQueueFlag || (e.iconsQueueFlag = !0, setTimeout(() => {
980
+ e.iconsQueueFlag = !1;
981
+ const { provider: t, prefix: i } = e, o = e.iconsToLoad;
982
+ if (delete e.iconsToLoad, !o || !o.length)
983
+ return;
984
+ const r = e.loadIcon;
985
+ if (e.loadIcons && (o.length > 1 || !r)) {
986
+ Fe(
987
+ e.loadIcons(o, i, t),
988
+ (p) => {
989
+ R(e, o, p, !1);
990
+ }
991
+ );
992
+ return;
993
+ }
994
+ if (r) {
995
+ o.forEach((p) => {
996
+ const d = r(p, i, t);
997
+ Fe(d, (c) => {
998
+ const u = c ? {
999
+ prefix: i,
1000
+ icons: {
1001
+ [p]: c
1002
+ }
1003
+ } : null;
1004
+ R(e, [p], u, !1);
1005
+ });
1006
+ });
1007
+ return;
1008
+ }
1009
+ const { valid: s, invalid: l } = pn(o);
1010
+ if (l.length && R(e, l, null, !1), !s.length)
1011
+ return;
1012
+ const a = i.match(Je) ? ue(t) : null;
1013
+ if (!a) {
1014
+ R(e, s, null, !1);
1015
+ return;
1016
+ }
1017
+ a.prepare(t, i, s).forEach((p) => {
1018
+ ln(t, p, (d) => {
1019
+ R(e, p.icons, d, !0);
1020
+ });
1021
+ });
1022
+ }));
1023
+ }
1024
+ const mn = (e, n) => {
1025
+ const t = nn(e, !0, et()), i = Zt(t);
1026
+ if (!i.pending.length) {
1027
+ let a = !0;
1028
+ return n && setTimeout(() => {
1029
+ a && n(
1030
+ i.loaded,
1031
+ i.missing,
1032
+ i.pending,
1033
+ Ae
1034
+ );
1035
+ }), () => {
1036
+ a = !1;
1037
+ };
1038
+ }
1039
+ const o = /* @__PURE__ */ Object.create(null), r = [];
1040
+ let s, l;
1041
+ return i.pending.forEach((a) => {
1042
+ const { provider: f, prefix: p } = a;
1043
+ if (p === l && f === s)
1044
+ return;
1045
+ s = f, l = p, r.push($(f, p));
1046
+ const d = o[f] || (o[f] = /* @__PURE__ */ Object.create(null));
1047
+ d[p] || (d[p] = []);
1048
+ }), i.pending.forEach((a) => {
1049
+ const { provider: f, prefix: p, name: d } = a, c = $(f, p), u = c.pendingIcons || (c.pendingIcons = /* @__PURE__ */ new Set());
1050
+ u.has(d) || (u.add(d), o[f][p].push(d));
1051
+ }), r.forEach((a) => {
1052
+ const f = o[a.provider][a.prefix];
1053
+ f.length && gn(a, f);
1054
+ }), n ? tn(n, i, r) : Ae;
1055
+ };
1056
+ function vn(e, n) {
1057
+ const t = {
1058
+ ...e
1059
+ };
1060
+ for (const i in n) {
1061
+ const o = n[i], r = typeof o;
1062
+ i in tt ? (o === null || o && (r === "string" || r === "number")) && (t[i] = o) : r === typeof t[i] && (t[i] = i === "rotate" ? o % 4 : o);
1063
+ }
1064
+ return t;
1065
+ }
1066
+ const yn = /[\s,]+/;
1067
+ function wn(e, n) {
1068
+ n.split(yn).forEach((t) => {
1069
+ switch (t.trim()) {
1070
+ case "horizontal":
1071
+ e.hFlip = !0;
1072
+ break;
1073
+ case "vertical":
1074
+ e.vFlip = !0;
1075
+ break;
1076
+ }
1077
+ });
1078
+ }
1079
+ function kn(e, n = 0) {
1080
+ const t = e.replace(/^-?[0-9.]*/, "");
1081
+ function i(o) {
1082
+ for (; o < 0; )
1083
+ o += 4;
1084
+ return o % 4;
1085
+ }
1086
+ if (t === "") {
1087
+ const o = parseInt(e);
1088
+ return isNaN(o) ? 0 : i(o);
1089
+ } else if (t !== e) {
1090
+ let o = 0;
1091
+ switch (t) {
1092
+ case "%":
1093
+ o = 25;
1094
+ break;
1095
+ case "deg":
1096
+ o = 90;
1097
+ }
1098
+ if (o) {
1099
+ let r = parseFloat(e.slice(0, e.length - t.length));
1100
+ return isNaN(r) ? 0 : (r = r / o, r % 1 === 0 ? i(r) : 0);
1101
+ }
1102
+ }
1103
+ return n;
1104
+ }
1105
+ function bn(e, n) {
1106
+ let t = e.indexOf("xlink:") === -1 ? "" : ' xmlns:xlink="http://www.w3.org/1999/xlink"';
1107
+ for (const i in n)
1108
+ t += " " + i + '="' + n[i] + '"';
1109
+ return '<svg xmlns="http://www.w3.org/2000/svg"' + t + ">" + e + "</svg>";
1110
+ }
1111
+ function xn(e) {
1112
+ return e.replace(/"/g, "'").replace(/%/g, "%25").replace(/#/g, "%23").replace(/</g, "%3C").replace(/>/g, "%3E").replace(/\s+/g, " ");
1113
+ }
1114
+ function In(e) {
1115
+ return "data:image/svg+xml," + xn(e);
1116
+ }
1117
+ function Sn(e) {
1118
+ return 'url("' + In(e) + '")';
1119
+ }
1120
+ const Be = {
1121
+ ...nt,
1122
+ inline: !1
1123
+ }, Cn = {
1124
+ xmlns: "http://www.w3.org/2000/svg",
1125
+ "xmlns:xlink": "http://www.w3.org/1999/xlink",
1126
+ "aria-hidden": !0,
1127
+ role: "img"
1128
+ }, Tn = {
1129
+ display: "inline-block"
1130
+ }, pe = {
1131
+ backgroundColor: "currentColor"
1132
+ }, ft = {
1133
+ backgroundColor: "transparent"
1134
+ }, Ne = {
1135
+ Image: "var(--svg)",
1136
+ Repeat: "no-repeat",
1137
+ Size: "100% 100%"
1138
+ }, De = {
1139
+ webkitMask: pe,
1140
+ mask: pe,
1141
+ background: ft
1142
+ };
1143
+ for (const e in De) {
1144
+ const n = De[e];
1145
+ for (const t in Ne)
1146
+ n[e + t] = Ne[t];
1147
+ }
1148
+ const G = {};
1149
+ ["horizontal", "vertical"].forEach((e) => {
1150
+ const n = e.slice(0, 1) + "Flip";
1151
+ G[e + "-flip"] = n, G[e.slice(0, 1) + "-flip"] = n, G[e + "Flip"] = n;
1152
+ });
1153
+ function Re(e) {
1154
+ return e + (e.match(/^[-0-9.]+$/) ? "px" : "");
1155
+ }
1156
+ const Ve = (e, n) => {
1157
+ const t = vn(Be, n), i = { ...Cn }, o = n.mode || "svg", r = {}, s = n.style, l = typeof s == "object" && !(s instanceof Array) ? s : {};
1158
+ for (let m in n) {
1159
+ const h = n[m];
1160
+ if (h !== void 0)
1161
+ switch (m) {
1162
+ // Properties to ignore
1163
+ case "icon":
1164
+ case "style":
1165
+ case "onLoad":
1166
+ case "mode":
1167
+ case "ssr":
1168
+ break;
1169
+ // Boolean attributes
1170
+ case "inline":
1171
+ case "hFlip":
1172
+ case "vFlip":
1173
+ t[m] = h === !0 || h === "true" || h === 1;
1174
+ break;
1175
+ // Flip as string: 'horizontal,vertical'
1176
+ case "flip":
1177
+ typeof h == "string" && wn(t, h);
1178
+ break;
1179
+ // Color: override style
1180
+ case "color":
1181
+ r.color = h;
1182
+ break;
1183
+ // Rotation as string
1184
+ case "rotate":
1185
+ typeof h == "string" ? t[m] = kn(h) : typeof h == "number" && (t[m] = h);
1186
+ break;
1187
+ // Remove aria-hidden
1188
+ case "ariaHidden":
1189
+ case "aria-hidden":
1190
+ h !== !0 && h !== "true" && delete i["aria-hidden"];
1191
+ break;
1192
+ default: {
1193
+ const w = G[m];
1194
+ w ? (h === !0 || h === "true" || h === 1) && (t[w] = !0) : Be[m] === void 0 && (i[m] = h);
1195
+ }
1196
+ }
1197
+ }
1198
+ const a = Nt(e, t), f = a.attributes;
1199
+ if (t.inline && (r.verticalAlign = "-0.125em"), o === "svg") {
1200
+ i.style = {
1201
+ ...r,
1202
+ ...l
1203
+ }, Object.assign(i, f);
1204
+ let m = 0, h = n.id;
1205
+ return typeof h == "string" && (h = h.replace(/-/g, "_")), i.innerHTML = Ut(a.body, h ? () => h + "ID" + m++ : "iconifyVue"), se("svg", i);
1206
+ }
1207
+ const { body: p, width: d, height: c } = e, u = o === "mask" || (o === "bg" ? !1 : p.indexOf("currentColor") !== -1), g = bn(p, {
1208
+ ...f,
1209
+ width: d + "",
1210
+ height: c + ""
1211
+ });
1212
+ return i.style = {
1213
+ ...r,
1214
+ "--svg": Sn(g),
1215
+ width: Re(f.width),
1216
+ height: Re(f.height),
1217
+ ...Tn,
1218
+ ...u ? pe : ft,
1219
+ ...l
1220
+ }, se("span", i);
1221
+ };
1222
+ et(!0);
1223
+ Wt("", Xt);
1224
+ if (typeof document < "u" && typeof window < "u") {
1225
+ ut();
1226
+ const e = window;
1227
+ if (e.IconifyPreload !== void 0) {
1228
+ const n = e.IconifyPreload, t = "Invalid IconifyPreload syntax.";
1229
+ typeof n == "object" && n !== null && (n instanceof Array ? n : [n]).forEach((i) => {
1230
+ try {
1231
+ // Check if item is an object and not null/array
1232
+ (typeof i != "object" || i === null || i instanceof Array || // Check for 'icons' and 'prefix'
1233
+ typeof i.icons != "object" || typeof i.prefix != "string" || // Add icon set
1234
+ !Mt(i)) && console.error(t);
1235
+ } catch {
1236
+ console.error(t);
1237
+ }
1238
+ });
1239
+ }
1240
+ if (e.IconifyProviders !== void 0) {
1241
+ const n = e.IconifyProviders;
1242
+ if (typeof n == "object" && n !== null)
1243
+ for (let t in n) {
1244
+ const i = "IconifyProviders[" + t + "] is invalid.";
1245
+ try {
1246
+ const o = n[t];
1247
+ if (typeof o != "object" || !o || o.resources === void 0)
1248
+ continue;
1249
+ Ht(t, o) || console.error(i);
1250
+ } catch {
1251
+ console.error(i);
1252
+ }
1253
+ }
1254
+ }
1255
+ }
1256
+ const Pn = {
1257
+ ...Z,
1258
+ body: ""
1259
+ }, Ue = J({
1260
+ // Do not inherit other attributes: it is handled by render()
1261
+ inheritAttrs: !1,
1262
+ // Set initial data
1263
+ data() {
1264
+ return {
1265
+ // Current icon name
1266
+ _name: "",
1267
+ // Loading
1268
+ _loadingIcon: null,
1269
+ // Mounted status
1270
+ iconMounted: !1,
1271
+ // Callback counter to trigger re-render
1272
+ counter: 0
1273
+ };
1274
+ },
1275
+ mounted() {
1276
+ this.iconMounted = !0;
1277
+ },
1278
+ unmounted() {
1279
+ this.abortLoading();
1280
+ },
1281
+ methods: {
1282
+ abortLoading() {
1283
+ this._loadingIcon && (this._loadingIcon.abort(), this._loadingIcon = null);
1284
+ },
1285
+ // Get data for icon to render or null
1286
+ getIcon(e, n, t) {
1287
+ if (typeof e == "object" && e !== null && typeof e.body == "string")
1288
+ return this._name = "", this.abortLoading(), {
1289
+ data: e
1290
+ };
1291
+ let i;
1292
+ if (typeof e != "string" || (i = X(e, !1, !0)) === null)
1293
+ return this.abortLoading(), null;
1294
+ let o = Et(i);
1295
+ if (!o)
1296
+ return (!this._loadingIcon || this._loadingIcon.name !== e) && (this.abortLoading(), this._name = "", o !== null && (this._loadingIcon = {
1297
+ name: e,
1298
+ abort: mn([i], () => {
1299
+ this.counter++;
1300
+ })
1301
+ })), null;
1302
+ if (this.abortLoading(), this._name !== e && (this._name = e, n && n(e)), t) {
1303
+ o = Object.assign({}, o);
1304
+ const s = t(o.body, i.name, i.prefix, i.provider);
1305
+ typeof s == "string" && (o.body = s);
1306
+ }
1307
+ const r = ["iconify"];
1308
+ return i.prefix !== "" && r.push("iconify--" + i.prefix), i.provider !== "" && r.push("iconify--" + i.provider), { data: o, classes: r };
1309
+ }
1310
+ },
1311
+ // Render icon
1312
+ render() {
1313
+ this.counter;
1314
+ const e = this.$attrs, n = this.iconMounted || e.ssr ? this.getIcon(e.icon, e.onLoad, e.customise) : null;
1315
+ if (!n)
1316
+ return Ve(Pn, e);
1317
+ let t = e;
1318
+ return n.classes && (t = {
1319
+ ...e,
1320
+ class: (typeof e.class == "string" ? e.class + " " : "") + n.classes.join(" ")
1321
+ }), Ve({
1322
+ ...Z,
1323
+ ...n.data
1324
+ }, t);
1325
+ }
1326
+ });
1327
+ function On(e, n) {
1328
+ return yt() ? (wt(e, n), !0) : !1;
1329
+ }
1330
+ const dt = typeof window < "u" && typeof document < "u";
1331
+ typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
1332
+ const En = Object.prototype.toString, jn = (e) => En.call(e) === "[object Object]", ge = () => {
1333
+ }, We = /* @__PURE__ */ Mn();
1334
+ function Mn() {
1335
+ var e, n, t;
1336
+ return dt && !!(!((e = window) === null || e === void 0 || (e = e.navigator) === null || e === void 0) && e.userAgent) && (/iP(?:ad|hone|od)/.test(window.navigator.userAgent) || ((n = window) === null || n === void 0 || (n = n.navigator) === null || n === void 0 ? void 0 : n.maxTouchPoints) > 2 && /iPad|Macintosh/.test((t = window) === null || t === void 0 ? void 0 : t.navigator.userAgent));
1337
+ }
1338
+ function Ln(...e) {
1339
+ if (e.length !== 1) return gt(...e);
1340
+ const n = e[0];
1341
+ return typeof n == "function" ? mt(vt(() => ({
1342
+ get: n,
1343
+ set: ge
1344
+ }))) : Qe(n);
1345
+ }
1346
+ function me(e, n = !1, t = "Timeout") {
1347
+ return new Promise((i, o) => {
1348
+ setTimeout(n ? () => o(t) : i, e);
1349
+ });
1350
+ }
1351
+ function oe(e) {
1352
+ return Array.isArray(e) ? e : [e];
1353
+ }
1354
+ function ve(e, n = !1) {
1355
+ function t(d, { flush: c = "sync", deep: u = !1, timeout: g, throwOnTimeout: m } = {}) {
1356
+ let h = null;
1357
+ const w = [new Promise((b) => {
1358
+ h = F(e, (v) => {
1359
+ d(v) !== n && (h ? h() : Se(() => h == null ? void 0 : h()), b(v));
1360
+ }, {
1361
+ flush: c,
1362
+ deep: u,
1363
+ immediate: !0
1364
+ });
1365
+ })];
1366
+ return g != null && w.push(me(g, m).then(() => S(e)).finally(() => h == null ? void 0 : h())), Promise.race(w);
1367
+ }
1368
+ function i(d, c) {
1369
+ if (!pt(d)) return t((v) => v === d, c);
1370
+ const { flush: u = "sync", deep: g = !1, timeout: m, throwOnTimeout: h } = c ?? {};
1371
+ let w = null;
1372
+ const b = [new Promise((v) => {
1373
+ w = F([e, d], ([k, P]) => {
1374
+ n !== (k === P) && (w ? w() : Se(() => w == null ? void 0 : w()), v(k));
1375
+ }, {
1376
+ flush: u,
1377
+ deep: g,
1378
+ immediate: !0
1379
+ });
1380
+ })];
1381
+ return m != null && b.push(me(m, h).then(() => S(e)).finally(() => (w == null || w(), S(e)))), Promise.race(b);
1382
+ }
1383
+ function o(d) {
1384
+ return t((c) => !!c, d);
1385
+ }
1386
+ function r(d) {
1387
+ return i(null, d);
1388
+ }
1389
+ function s(d) {
1390
+ return i(void 0, d);
1391
+ }
1392
+ function l(d) {
1393
+ return t(Number.isNaN, d);
1394
+ }
1395
+ function a(d, c) {
1396
+ return t((u) => {
1397
+ const g = Array.from(u);
1398
+ return g.includes(d) || g.includes(S(d));
1399
+ }, c);
1400
+ }
1401
+ function f(d) {
1402
+ return p(1, d);
1403
+ }
1404
+ function p(d = 1, c) {
1405
+ let u = -1;
1406
+ return t(() => (u += 1, u >= d), c);
1407
+ }
1408
+ return Array.isArray(S(e)) ? {
1409
+ toMatch: t,
1410
+ toContains: a,
1411
+ changed: f,
1412
+ changedTimes: p,
1413
+ get not() {
1414
+ return ve(e, !n);
1415
+ }
1416
+ } : {
1417
+ toMatch: t,
1418
+ toBe: i,
1419
+ toBeTruthy: o,
1420
+ toBeNull: r,
1421
+ toBeNaN: l,
1422
+ toBeUndefined: s,
1423
+ changed: f,
1424
+ changedTimes: p,
1425
+ get not() {
1426
+ return ve(e, !n);
1427
+ }
1428
+ };
1429
+ }
1430
+ function zn(e) {
1431
+ return ve(e);
1432
+ }
1433
+ function $n(e, n, t) {
1434
+ return F(e, n, {
1435
+ ...t,
1436
+ immediate: !0
1437
+ });
1438
+ }
1439
+ const An = dt ? window : void 0;
1440
+ function Fn(e) {
1441
+ var n;
1442
+ const t = S(e);
1443
+ return (n = t == null ? void 0 : t.$el) !== null && n !== void 0 ? n : t;
1444
+ }
1445
+ function Bn(...e) {
1446
+ const n = (i, o, r, s) => (i.addEventListener(o, r, s), () => i.removeEventListener(o, r, s)), t = O(() => {
1447
+ const i = oe(S(e[0])).filter((o) => o != null);
1448
+ return i.every((o) => typeof o != "string") ? i : void 0;
1449
+ });
1450
+ return $n(() => {
1451
+ var i, o;
1452
+ return [
1453
+ (i = (o = t.value) === null || o === void 0 ? void 0 : o.map((r) => Fn(r))) !== null && i !== void 0 ? i : [An].filter((r) => r != null),
1454
+ oe(S(t.value ? e[1] : e[0])),
1455
+ oe(E(t.value ? e[2] : e[1])),
1456
+ S(t.value ? e[3] : e[2])
1457
+ ];
1458
+ }, ([i, o, r, s], l, a) => {
1459
+ if (!(i != null && i.length) || !(o != null && o.length) || !(r != null && r.length)) return;
1460
+ const f = jn(s) ? { ...s } : s, p = i.flatMap((d) => o.flatMap((c) => r.map((u) => n(d, c, u, f))));
1461
+ a(() => {
1462
+ p.forEach((d) => d());
1463
+ });
1464
+ }, { flush: "post" });
1465
+ }
1466
+ function Nn(e, n, t) {
1467
+ var i;
1468
+ const { immediate: o = !0, delay: r = 0, onError: s = (i = globalThis.reportError) !== null && i !== void 0 ? i : ge, onSuccess: l = ge, resetOnExecute: a = !0, shallow: f = !0, throwError: p } = t ?? {}, d = f ? A(n) : Qe(n), c = A(!1), u = A(!1), g = A(void 0);
1469
+ let m = 0;
1470
+ async function h(v = 0, ...k) {
1471
+ const P = m += 1;
1472
+ a && (d.value = S(n)), g.value = void 0, c.value = !1, u.value = !0, v > 0 && await me(v);
1473
+ const y = typeof e == "function" ? e(...k) : e;
1474
+ try {
1475
+ const x = await y;
1476
+ return P === m && (d.value = x, c.value = !0), l(x), x;
1477
+ } catch (x) {
1478
+ if (P === m && (g.value = x), s(x), p) throw x;
1479
+ } finally {
1480
+ P === m && (u.value = !1);
1481
+ }
1482
+ }
1483
+ o && h(r);
1484
+ const w = {
1485
+ state: d,
1486
+ isReady: c,
1487
+ isLoading: u,
1488
+ error: g,
1489
+ execute: h,
1490
+ executeImmediate: (...v) => h(0, ...v)
1491
+ };
1492
+ function b() {
1493
+ return new Promise((v, k) => {
1494
+ zn(u).toBe(!1).then(() => v(w)).catch(k);
1495
+ });
1496
+ }
1497
+ return {
1498
+ ...w,
1499
+ then(v, k) {
1500
+ return b().then(v, k);
1501
+ }
1502
+ };
1503
+ }
1504
+ async function Dn(e) {
1505
+ return new Promise((n, t) => {
1506
+ const i = new Image(), { src: o, srcset: r, sizes: s, class: l, loading: a, crossorigin: f, referrerPolicy: p, width: d, height: c, decoding: u, fetchPriority: g, ismap: m, usemap: h } = e;
1507
+ i.src = o, r != null && (i.srcset = r), s != null && (i.sizes = s), l != null && (i.className = l), a != null && (i.loading = a), f != null && (i.crossOrigin = f), p != null && (i.referrerPolicy = p), d != null && (i.width = d), c != null && (i.height = c), u != null && (i.decoding = u), g != null && (i.fetchPriority = g), m != null && (i.isMap = m), h != null && (i.useMap = h), i.onload = () => n(i), i.onerror = t;
1508
+ });
1509
+ }
1510
+ function Rn(e, n = {}) {
1511
+ const t = Nn(() => Dn(S(e)), void 0, {
1512
+ resetOnExecute: !0,
1513
+ ...n
1514
+ });
1515
+ return F(() => S(e), () => t.execute(n.delay), { deep: !0 }), t;
1516
+ }
1517
+ function ie(e) {
1518
+ return typeof Window < "u" && e instanceof Window ? e.document.documentElement : typeof Document < "u" && e instanceof Document ? e.documentElement : e;
1519
+ }
1520
+ function ht(e) {
1521
+ const n = window.getComputedStyle(e);
1522
+ if (n.overflowX === "scroll" || n.overflowY === "scroll" || n.overflowX === "auto" && e.clientWidth < e.scrollWidth || n.overflowY === "auto" && e.clientHeight < e.scrollHeight) return !0;
1523
+ {
1524
+ const t = e.parentNode;
1525
+ return !t || t.tagName === "BODY" ? !1 : ht(t);
1526
+ }
1527
+ }
1528
+ function Vn(e) {
1529
+ const n = e || window.event, t = n.target;
1530
+ return ht(t) ? !1 : n.touches.length > 1 ? !0 : (n.preventDefault && n.preventDefault(), !1);
1531
+ }
1532
+ const re = /* @__PURE__ */ new WeakMap();
1533
+ function Un(e, n = !1) {
1534
+ const t = A(n);
1535
+ let i = null, o = "";
1536
+ F(Ln(e), (l) => {
1537
+ const a = ie(S(l));
1538
+ if (a) {
1539
+ const f = a;
1540
+ if (re.get(f) || re.set(f, f.style.overflow), f.style.overflow !== "hidden" && (o = f.style.overflow), f.style.overflow === "hidden") return t.value = !0;
1541
+ if (t.value) return f.style.overflow = "hidden";
1542
+ }
1543
+ }, { immediate: !0 });
1544
+ const r = () => {
1545
+ const l = ie(S(e));
1546
+ !l || t.value || (We && (i = Bn(l, "touchmove", (a) => {
1547
+ Vn(a);
1548
+ }, { passive: !1 })), l.style.overflow = "hidden", t.value = !0);
1549
+ }, s = () => {
1550
+ const l = ie(S(e));
1551
+ !l || !t.value || (We && (i == null || i()), l.style.overflow = o, re.delete(l), t.value = !1);
1552
+ };
1553
+ return On(s), O({
1554
+ get() {
1555
+ return t.value;
1556
+ },
1557
+ set(l) {
1558
+ l ? r() : s();
1559
+ }
1560
+ });
1561
+ }
1562
+ const He = /* @__PURE__ */ J((e, { slots: n }) => {
1563
+ const t = kt(Rn(e));
1564
+ return () => t.isLoading && n.loading ? n.loading(t) : t.error && n.error ? n.error(t.error) : n.default ? n.default(t) : se(e.as || "img", e);
1565
+ }, {
1566
+ name: "UseImage",
1567
+ props: [
1568
+ "alt",
1569
+ "as",
1570
+ "class",
1571
+ "crossorigin",
1572
+ "decoding",
1573
+ "fetchPriority",
1574
+ "height",
1575
+ "ismap",
1576
+ "loading",
1577
+ "referrerPolicy",
1578
+ "sizes",
1579
+ "src",
1580
+ "srcset",
1581
+ "usemap",
1582
+ "width"
1583
+ ]
1584
+ });
1585
+ function Wn() {
1586
+ let e = !1;
1587
+ const n = A(!1);
1588
+ return (t, i) => {
1589
+ if (n.value = i.value, e) return;
1590
+ e = !0;
1591
+ const o = Un(t, i.value);
1592
+ F(n, (r) => o.value = r);
1593
+ };
1594
+ }
1595
+ Wn();
1596
+ const Hn = {
1597
+ key: 2,
1598
+ class: "shrink-0 size-inherit",
1599
+ "aria-hidden": "true"
1600
+ }, qn = ["xlink:href"], Qn = ["xlink:href"], Gn = ["size"], Kn = ["xlink:href"], Yn = ["xlink:href"], Jn = /* @__PURE__ */ J({
1601
+ name: "IkSvgIcon",
1602
+ __name: "index",
1603
+ props: {
1604
+ name: {},
1605
+ class: {},
1606
+ showBg: { type: Boolean, default: !1 },
1607
+ disabled: { type: Boolean, default: !1 },
1608
+ size: {},
1609
+ active: { type: Boolean, default: !1 },
1610
+ unMargin: { type: Boolean, default: !1 },
1611
+ title: { default: null },
1612
+ type: { default: "default" },
1613
+ colorMode: { default: "auto" },
1614
+ deepColor: {},
1615
+ shallowColor: {},
1616
+ onClick: {},
1617
+ danger: { type: Boolean, default: !1 },
1618
+ error: { type: Boolean, default: !1 },
1619
+ hover: { type: Boolean, default: !1 }
1620
+ },
1621
+ emits: ["click"],
1622
+ setup(e, { emit: n }) {
1623
+ const t = e, i = n, o = O(() => t.danger ? "danger" : t.error ? "error" : t.type), r = O(() => {
1624
+ if (!t.name)
1625
+ return;
1626
+ const c = (u) => /^\.{1,2}\//.test(u) || u.startsWith("/") || u.includes("/");
1627
+ return /^https?:\/\//.test(t.name) || c(t.name) ? "img" : t.name.startsWith("iksvg_") ? "two-color-svg" : /i-[^:]+:[^:]+/.test(t.name) || t.name.startsWith("ik") ? "unocss" : t.name.includes(":") ? "iconify" : "svg";
1628
+ }), s = {
1629
+ big: 24,
1630
+ default: 22,
1631
+ small: 20
1632
+ };
1633
+ function l() {
1634
+ return t.size ? s[t.size] || t.size : 18;
1635
+ }
1636
+ const a = O(() => {
1637
+ const c = l(), u = typeof c == "number" ? `${c}px` : c;
1638
+ return {
1639
+ width: u,
1640
+ height: u,
1641
+ fontSize: u
1642
+ };
1643
+ }), f = O(() => {
1644
+ const u = `${Number.parseInt(l()) + 8}px`;
1645
+ return {
1646
+ width: u,
1647
+ height: u
1648
+ };
1649
+ });
1650
+ function p(c) {
1651
+ t.onClick ? t.onClick(c) : i("click", c);
1652
+ }
1653
+ const d = O(() => {
1654
+ if (r.value !== "two-color-svg")
1655
+ return {};
1656
+ const c = {};
1657
+ if (t.disabled)
1658
+ return c["--ik-icon-deep-color"] = "var(--ik-icon-deep-disabled)", c["--ik-icon-shallow-color"] = "var(--ik-icon-shallow-disabled)", c;
1659
+ if (t.deepColor && (c["--ik-icon-deep-color"] = t.deepColor), t.shallowColor && (c["--ik-icon-shallow-color"] = t.shallowColor), t.colorMode !== "auto")
1660
+ switch (t.colorMode) {
1661
+ case "primary":
1662
+ t.deepColor || (c["--ik-icon-deep-color"] = "var(--ik-color-primary)"), t.shallowColor || (c["--ik-icon-shallow-color"] = "var(--ik-primary-light-1, color-mix(in srgb, var(--ik-color-primary) 30%, white))");
1663
+ break;
1664
+ case "deep":
1665
+ t.shallowColor || (c["--ik-icon-shallow-color"] = c["--ik-icon-deep-color"] || t.deepColor || "var(--ik-icon-deep-color)");
1666
+ break;
1667
+ case "shallow":
1668
+ t.deepColor || (c["--ik-icon-deep-color"] = c["--ik-icon-shallow-color"] || t.shallowColor || "var(--ik-icon-shallow-color)");
1669
+ break;
1670
+ }
1671
+ return t.active && o.value !== "default" && !t.deepColor && !t.shallowColor && t.colorMode === "auto" && (c["--ik-icon-deep-color"] = `var(--ik-icon-${o.value}-deep-active)`, c["--ik-icon-shallow-color"] = `var(--ik-icon-${o.value}-shallow-active)`), c;
1672
+ });
1673
+ return (c, u) => {
1674
+ var m;
1675
+ const g = bt("IkTooltip");
1676
+ return I(), C(
1677
+ "i",
1678
+ {
1679
+ class: z(E(Ke)(
1680
+ "ik-icon relative size-[1em] flex-inline items-center justify-center fill-current leading-[1em]",
1681
+ t.class,
1682
+ e.showBg ? "bg" : "",
1683
+ e.disabled ? "is-disabled" : "",
1684
+ e.active ? "is-active" : "",
1685
+ o.value !== "default" ? `is-${o.value}` : "",
1686
+ e.unMargin ? "un-margin" : "margin",
1687
+ e.hover ? "is-hover" : ""
1688
+ )),
1689
+ style: j(e.showBg ? f.value : a.value),
1690
+ onClick: p
1691
+ },
1692
+ [
1693
+ e.title ? (I(), L(g, {
1694
+ key: 0,
1695
+ text: e.title
1696
+ }, {
1697
+ default: N(() => {
1698
+ var h;
1699
+ return [
1700
+ r.value === "unocss" ? (I(), C(
1701
+ "i",
1702
+ {
1703
+ key: 0,
1704
+ class: z(["iconfont shrink-0 size-inherit", `${e.name} ${(h = e.name) == null ? void 0 : h.split("_")[0]}`]),
1705
+ style: j({ ...d.value, ...e.showBg ? a.value : {} })
1706
+ },
1707
+ null,
1708
+ 6
1709
+ /* CLASS, STYLE */
1710
+ )) : r.value === "iconify" ? (I(), L(E(Ue), {
1711
+ key: 1,
1712
+ icon: e.name,
1713
+ class: "shrink-0 size-inherit"
1714
+ }, null, 8, ["icon"])) : r.value === "svg" ? (I(), C("svg", Hn, [
1715
+ T("use", {
1716
+ "xlink:href": `#icon-${e.name}`
1717
+ }, null, 8, qn)
1718
+ ])) : r.value === "two-color-svg" ? (I(), C(
1719
+ "svg",
1720
+ {
1721
+ key: 3,
1722
+ class: "two-color-icon shrink-0 size-inherit",
1723
+ style: j(d.value),
1724
+ "aria-hidden": "true"
1725
+ },
1726
+ [
1727
+ T("use", {
1728
+ "xlink:href": `#${e.name}`
1729
+ }, null, 8, Qn)
1730
+ ],
1731
+ 4
1732
+ /* STYLE */
1733
+ )) : r.value === "img" ? (I(), L(E(He), {
1734
+ key: 4,
1735
+ src: e.name,
1736
+ class: "shrink-0"
1737
+ }, {
1738
+ loading: N(() => [...u[0] || (u[0] = [
1739
+ T(
1740
+ "i",
1741
+ { class: "i-line-md:loading-loop size-inherit" },
1742
+ null,
1743
+ -1
1744
+ /* CACHED */
1745
+ )
1746
+ ])]),
1747
+ error: N(() => [...u[1] || (u[1] = [
1748
+ T(
1749
+ "i",
1750
+ { class: "i-ph:image-broken-duotone size-inherit" },
1751
+ null,
1752
+ -1
1753
+ /* CACHED */
1754
+ )
1755
+ ])]),
1756
+ _: 1
1757
+ /* STABLE */
1758
+ }, 8, ["src"])) : K("v-if", !0)
1759
+ ];
1760
+ }),
1761
+ _: 1
1762
+ /* STABLE */
1763
+ }, 8, ["text"])) : (I(), C(
1764
+ le,
1765
+ { key: 1 },
1766
+ [
1767
+ r.value === "unocss" ? (I(), C(
1768
+ "i",
1769
+ {
1770
+ key: 0,
1771
+ class: z(["iconfont shrink-0 size-inherit", `${e.name} ${(m = e.name) == null ? void 0 : m.split("_")[0]}`]),
1772
+ style: j({ ...d.value, ...e.showBg ? a.value : {} })
1773
+ },
1774
+ null,
1775
+ 6
1776
+ /* CLASS, STYLE */
1777
+ )) : r.value === "iconify" ? (I(), L(E(Ue), {
1778
+ key: 1,
1779
+ icon: e.name,
1780
+ class: "shrink-0 size-inherit"
1781
+ }, null, 8, ["icon"])) : r.value === "svg" ? (I(), C("svg", {
1782
+ key: 2,
1783
+ class: "shrink-0 size-inherit",
1784
+ size: e.size,
1785
+ "aria-hidden": "true"
1786
+ }, [
1787
+ T("use", {
1788
+ "xlink:href": `#icon-${e.name}`
1789
+ }, null, 8, Kn)
1790
+ ], 8, Gn)) : r.value === "two-color-svg" ? (I(), C(
1791
+ "svg",
1792
+ {
1793
+ key: 3,
1794
+ class: "two-color-icon shrink-0 size-inherit",
1795
+ style: j(d.value),
1796
+ "aria-hidden": "true"
1797
+ },
1798
+ [
1799
+ T("use", {
1800
+ "xlink:href": `#${e.name}`
1801
+ }, null, 8, Yn)
1802
+ ],
1803
+ 4
1804
+ /* STYLE */
1805
+ )) : r.value === "img" ? (I(), L(E(He), {
1806
+ key: 4,
1807
+ src: e.name,
1808
+ class: "shrink-0"
1809
+ }, {
1810
+ loading: N(() => [...u[2] || (u[2] = [
1811
+ T(
1812
+ "i",
1813
+ { class: "i-line-md:loading-loop size-inherit" },
1814
+ null,
1815
+ -1
1816
+ /* CACHED */
1817
+ )
1818
+ ])]),
1819
+ error: N(() => [...u[3] || (u[3] = [
1820
+ T(
1821
+ "i",
1822
+ { class: "i-ph:image-broken-duotone size-inherit" },
1823
+ null,
1824
+ -1
1825
+ /* CACHED */
1826
+ )
1827
+ ])]),
1828
+ _: 1
1829
+ /* STABLE */
1830
+ }, 8, ["src"])) : K("v-if", !0)
1831
+ ],
1832
+ 64
1833
+ /* STABLE_FRAGMENT */
1834
+ ))
1835
+ ],
1836
+ 6
1837
+ /* CLASS, STYLE */
1838
+ );
1839
+ };
1840
+ }
1841
+ }), Xn = /* @__PURE__ */ Ye(Jn, [["__scopeId", "data-v-701f2359"]]), qe = Ge(Xn), Zn = { class: "content" }, _n = { class: "top" }, eo = ["onClick"], to = ["id"], no = ["onClick"], oo = /* @__PURE__ */ J({
1842
+ __name: "IkVerticalStepBar",
1843
+ props: {
1844
+ // 当前激活的下标
1845
+ active: {
1846
+ type: String,
1847
+ default: ""
1848
+ },
1849
+ // 当前激活颜色
1850
+ activeColor: {
1851
+ type: String,
1852
+ default: ""
1853
+ },
1854
+ // 数据数组
1855
+ list: {
1856
+ type: Array,
1857
+ default: () => []
1858
+ },
1859
+ // 是否存在点击事件
1860
+ needClick: {
1861
+ type: Boolean,
1862
+ default: !1
1863
+ },
1864
+ // 数字样式:circle 圆形,rect 矩形
1865
+ numShape: {
1866
+ type: String,
1867
+ default: "rect",
1868
+ validator: (e) => ["circle", "rect"].includes(e)
1869
+ },
1870
+ // 映射字段
1871
+ propsField: {
1872
+ type: Object,
1873
+ default: () => ({
1874
+ name: "name",
1875
+ children: "children"
1876
+ })
1877
+ }
1878
+ },
1879
+ emits: ["click", "update:active"],
1880
+ setup(e, { emit: n }) {
1881
+ const t = e, i = n, o = O(() => Number(
1882
+ t.active.indexOf("-") > 0 ? t.active.split("-")[0] : t.active
1883
+ )), r = O(() => t.active.indexOf("-") > 0 ? Number(t.active.split("-")[1]) : 0), s = (c) => {
1884
+ let u = "", g = c + 1;
1885
+ return g < o.value ? u = "before-bg" : g === o.value ? u = "active-bg" : g > o.value && (u = "after-bg"), `${u} index`;
1886
+ }, l = (c) => {
1887
+ let u = "", g = c + 1;
1888
+ return g < o.value ? u = "before-text" : g === o.value ? u = "active-text" : g > o.value && (u = "after-text"), `${u} text`;
1889
+ }, a = (c) => {
1890
+ let u = "", g = c + 1;
1891
+ return g >= t.list.length ? "" : (g < o.value ? u = "before-style" : u = "after-style", `${u} bottom`);
1892
+ }, f = (c, u) => {
1893
+ let g = "", m = c + 1, h = u + 1;
1894
+ return m < o.value ? g = "before-text" : m === o.value ? h < r.value ? g = "before-text" : h === r.value ? g = "active-text" : h > r.value && (g = "after-text") : m > o.value && (g = "after-text"), `${g} child-text`;
1895
+ }, p = (c, u) => {
1896
+ t.needClick && (c[t.propsField.children] || (i("update:active", u + ""), i("click", c)));
1897
+ }, d = (c, u) => {
1898
+ c.show = !c.show;
1899
+ let g = document.getElementById(`children${u}`);
1900
+ c.show ? g.style.display = "none" : g.style.display = "block";
1901
+ };
1902
+ return (c, u) => (I(), C("div", Zn, [
1903
+ (I(!0), C(
1904
+ le,
1905
+ null,
1906
+ Ce(e.list, (g, m) => {
1907
+ var h, w;
1908
+ return I(), C("div", {
1909
+ class: "line-block",
1910
+ key: m
1911
+ }, [
1912
+ T("div", _n, [
1913
+ T(
1914
+ "div",
1915
+ {
1916
+ class: z(`${s(m)} index index-${e.numShape}`),
1917
+ style: j({
1918
+ backgroundColor: m + 1 === o.value && e.activeColor ? e.activeColor : "",
1919
+ "--ik-step-active-shadow": e.activeColor ? `${e.activeColor}40` : "rgba(3, 158, 247, 0.4)"
1920
+ })
1921
+ },
1922
+ ee(m + 1),
1923
+ 7
1924
+ /* TEXT, CLASS, STYLE */
1925
+ ),
1926
+ T("div", {
1927
+ class: z(l(m)),
1928
+ style: j(e.needClick ? "cursor: pointer;" : ""),
1929
+ onClick: (b) => p(g, m + 1)
1930
+ }, [
1931
+ xt(
1932
+ ee(g[e.propsField.name]) + " ",
1933
+ 1
1934
+ /* TEXT */
1935
+ ),
1936
+ (h = g[e.propsField.children]) != null && h.length && !g.show ? (I(), L(E(qe), {
1937
+ key: 0,
1938
+ class: "ikapprove",
1939
+ onClick: Te((b) => d(g, m), ["stop"]),
1940
+ name: "iksvg_zhankai"
1941
+ }, null, 8, ["onClick"])) : K("v-if", !0),
1942
+ (w = g[e.propsField.children]) != null && w.length && g.show ? (I(), L(E(qe), {
1943
+ key: 1,
1944
+ class: "ikapprove",
1945
+ onClick: Te((b) => d(g, m), ["stop"]),
1946
+ name: "iksvg_shouqi"
1947
+ }, null, 8, ["onClick"])) : K("v-if", !0)
1948
+ ], 14, eo)
1949
+ ]),
1950
+ T(
1951
+ "ul",
1952
+ {
1953
+ class: z(a(m))
1954
+ },
1955
+ [
1956
+ T("div", {
1957
+ id: `children${m}`
1958
+ }, [
1959
+ (I(!0), C(
1960
+ le,
1961
+ null,
1962
+ Ce(g[e.propsField.children], (b, v) => (I(), C("li", {
1963
+ class: z(f(m, v)),
1964
+ style: j(e.needClick ? "cursor: pointer;" : ""),
1965
+ key: v,
1966
+ onClick: (k) => p(b, m + 1 + "-" + (v + 1))
1967
+ }, ee(b.name), 15, no))),
1968
+ 128
1969
+ /* KEYED_FRAGMENT */
1970
+ ))
1971
+ ], 8, to)
1972
+ ],
1973
+ 2
1974
+ /* CLASS */
1975
+ )
1976
+ ]);
1977
+ }),
1978
+ 128
1979
+ /* KEYED_FRAGMENT */
1980
+ ))
1981
+ ]));
1982
+ }
1983
+ }), io = /* @__PURE__ */ Ye(oo, [["__scopeId", "data-v-08141597"]]), so = Ge(io);
1984
+ export {
1985
+ so as IkVerticalStepBar,
1986
+ so as default
1987
+ };