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