@nxgt/material-vue 0.16.0 → 0.19.0

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 (157) hide show
  1. package/README.md +4 -0
  2. package/dist/_baseIsEqual-Cj6hHjs0.js +226 -0
  3. package/dist/abnfDiagram-O67JEVCF-Cl_I9xuI.js +89 -0
  4. package/dist/arc-DNNg1pxp.js +80 -0
  5. package/dist/architecture-7GRP2DOG-DDr0RGVC.js +3 -0
  6. package/dist/architectureDiagram-NJMV4G6O-CVS4UUCi.js +4146 -0
  7. package/dist/array-CApNbSU9.js +6 -0
  8. package/dist/blockDiagram-BEXU5L5S-B5Z0jbc8.js +1946 -0
  9. package/dist/c4Diagram-YGBWAQC7-B6jKsl3h.js +2990 -0
  10. package/dist/{camera-Cbd1TWFd.js → camera-oxz1xItP.js} +4 -4
  11. package/dist/channel-BA1GJyZ7.js +5 -0
  12. package/dist/chunk-2Q5K7J3B-kzxEEeTu.js +15 -0
  13. package/dist/chunk-3FUC2YCW-CX-v_TQz.js +364 -0
  14. package/dist/chunk-5DYCD2WN-B9vjeX2u.js +37 -0
  15. package/dist/chunk-5VM5RSS4-Cr17nBXp.js +5 -0
  16. package/dist/chunk-6AEJRKK7-D9IaQdwq.js +10 -0
  17. package/dist/chunk-742MDFTN-BIhVe9GR.js +275 -0
  18. package/dist/chunk-7INBJB4K-CwPgdc2G.js +4487 -0
  19. package/dist/chunk-7M6MHVWA-Deh_-m6x.js +4256 -0
  20. package/dist/chunk-7PRAP22T-CofnNOEr.js +67 -0
  21. package/dist/chunk-DUW6YSOI-BdOla2G8.js +10 -0
  22. package/dist/chunk-FOHPRMQF-Crq0JMf2.js +21388 -0
  23. package/dist/chunk-GNY47TPC-rS2K544k.js +75 -0
  24. package/dist/chunk-GTNCS2PH-BR0O70z_.js +490 -0
  25. package/dist/chunk-GWA4HPMP-DU9lUCZD.js +61 -0
  26. package/dist/chunk-J5ZVWO5B-CYzz6Pq8.js +12 -0
  27. package/dist/chunk-JWPE2WC7-Ccb0QaC8.js +8 -0
  28. package/dist/chunk-LNGE3PJU-CiGrDO_F.js +1513 -0
  29. package/dist/chunk-MBY4JIJT-HYVRUG_P.js +1847 -0
  30. package/dist/chunk-NETBCI7D-C8amwD_P.js +236 -0
  31. package/dist/chunk-O7XYJQB3-WMQqqzRb.js +3922 -0
  32. package/dist/chunk-UA2S7LBM-DtBatid7.js +363 -0
  33. package/dist/chunk-WEXAMYUT-Cc10h8ed.js +26 -0
  34. package/dist/chunk-XXDRQBXY-B2pGFcse.js +9 -0
  35. package/dist/chunk-Y2CYZVJY-i11wjrBe.js +12 -0
  36. package/dist/chunk-Z7XXMR3K-CJmsOGTV.js +676 -0
  37. package/dist/chunk-ZIGJFQKS-DBdWb0bj.js +1366 -0
  38. package/dist/classDiagram-v2-NBCMYWYE-Caqw5P6A.js +3397 -0
  39. package/dist/{components-DLtnz66n.js → components-IbdMALGv.js} +43465 -18610
  40. package/dist/components.js +5 -5
  41. package/dist/{composables-BJ2GgDD0.js → composables-6zV0t-y7.js} +1 -1
  42. package/dist/composables.js +1 -1
  43. package/dist/cose-bilkent-JH36ORCC-DStMi-eo.js +2251 -0
  44. package/dist/cynefin-OW5HDTMX-B8HVdZhp.js +3 -0
  45. package/dist/cynefinDiagram-VND7K2PF-0Mq0e5NQ.js +349 -0
  46. package/dist/cytoscape.esm-_jXi1N4y.js +18151 -0
  47. package/dist/dagre-6A5THRUB-EHXNn6Wq.js +2192 -0
  48. package/dist/defaultLocale-DnzPsei5.js +201 -0
  49. package/dist/diagram-22UHCM2B-B3RAQlqQ.js +5084 -0
  50. package/dist/diagram-3UASUU5V-BznCZHss.js +525 -0
  51. package/dist/diagram-ATOU4E4O-DtIUxSAn.js +432 -0
  52. package/dist/diagram-CDSNMT55-DOjN3BR2.js +301 -0
  53. package/dist/diagram-MLGK6HIB-Dx2UboD6.js +134 -0
  54. package/dist/diagram-MPIPVDR6-DnPL3RV0.js +214 -0
  55. package/dist/dist-D9zvfe2i.js +59 -0
  56. package/dist/{dnd-Cmcrm28l.js → dnd-CaDeYjQx.js} +1 -1
  57. package/dist/dnd.js +1 -1
  58. package/dist/ebnfDiagram-ZINNZB2B-BNbxCL0b.js +100 -0
  59. package/dist/elk-276RUBZZ-B9WeHolc.js +47597 -0
  60. package/dist/erDiagram-OPXOYQCR-DReZElBu.js +1970 -0
  61. package/dist/eventmodeling-NTZA5JFV-C1CEo-26.js +3 -0
  62. package/dist/flowDiagram-KWPJA3E3-DYss4vEI.js +17 -0
  63. package/dist/ganttDiagram-FUAMR5RP-64EZDDmC.js +3083 -0
  64. package/dist/gitGraph-4MIJSDKK-BTeCS_5q.js +3 -0
  65. package/dist/gitGraphDiagram-X574FWY7-DmMMrp5A.js +729 -0
  66. package/dist/graphlib-CrmIPC4m.js +372 -0
  67. package/dist/{i18n-DmMS3ID3.js → i18n-OBzfa-B7.js} +233 -924
  68. package/dist/i18n.js +2 -2
  69. package/dist/info-A6RAGUB7-BvtuPd9C.js +3 -0
  70. package/dist/infoDiagram-VRGFBTTK-XlBUAu0t.js +20 -0
  71. package/dist/init-MwSGRDIl.js +15 -0
  72. package/dist/isArrayLikeObject-VG1KOJ3m.js +539 -0
  73. package/dist/isEmpty-CMjyBU-a.js +136 -0
  74. package/dist/ishikawaDiagram-OU5B5YK6-C9cMWMPO.js +719 -0
  75. package/dist/journeyDiagram-ZHPQQLJL-DXdfP9BW.js +884 -0
  76. package/dist/kanban-definition-PNTS6WVX-DhOBy3A0.js +976 -0
  77. package/dist/katex-BMQ6LGsM.js +21962 -0
  78. package/dist/lib/components/index.d.ts +4 -0
  79. package/dist/lib/components/ui/chat/chat-composer-mentions.vue.d.ts +13 -0
  80. package/dist/lib/components/ui/chat/chat-composer.vue.d.ts +6 -2
  81. package/dist/lib/components/ui/contacts/consts.d.ts +1 -1
  82. package/dist/lib/components/ui/emoji/emoji-list.vue.d.ts +11 -0
  83. package/dist/lib/components/ui/emoji/emoji-picker.vue.d.ts +12 -0
  84. package/dist/lib/components/ui/emoji/emoji.utils.d.ts +2 -0
  85. package/dist/lib/components/ui/emoji/index.d.ts +4 -0
  86. package/dist/lib/components/ui/emoji/types.d.ts +6 -0
  87. package/dist/lib/components/ui/markdown/index.d.ts +2 -0
  88. package/dist/lib/components/ui/markdown/markdown.utils.d.ts +10 -0
  89. package/dist/lib/components/ui/markdown/markdown.vue.d.ts +10 -0
  90. package/dist/lib/components/ui/markdown/mermaid.lazy.d.ts +12 -0
  91. package/dist/lib/components/ui/markdown/partials/mermaid-diagram.vue.d.ts +7 -0
  92. package/dist/lib/components/ui/mentions/index.d.ts +4 -0
  93. package/dist/lib/components/ui/mentions/mention-list.vue.d.ts +16 -0
  94. package/dist/lib/components/ui/mentions/mentions.utils.d.ts +7 -0
  95. package/dist/lib/components/ui/mentions/types.d.ts +5 -0
  96. package/dist/lib/components/ui/terminal/index.d.ts +3 -0
  97. package/dist/lib/components/ui/terminal/terminal.utils.d.ts +5 -0
  98. package/dist/lib/components/ui/terminal/terminal.vue.d.ts +17 -0
  99. package/dist/lib/i18n/resources/en/index.d.ts +7 -0
  100. package/dist/lib/i18n/resources/en/material.json.d.ts +7 -0
  101. package/dist/lib/i18n/resources/fr/index.d.ts +7 -0
  102. package/dist/lib/i18n/resources/fr/material.json.d.ts +7 -0
  103. package/dist/lib/i18n/resources/index.d.ts +14 -0
  104. package/dist/lib/i18n/translator.d.ts +1 -1
  105. package/dist/lib/nuxt/component-names.d.ts +1 -1
  106. package/dist/lib-B9AHrvmh.js +389 -0
  107. package/dist/lib.js +1 -1
  108. package/dist/line-UP6dkL36.js +34 -0
  109. package/dist/linear-bD_QoED_.js +289 -0
  110. package/dist/main.js +9 -9
  111. package/dist/material-vue.css +1 -1
  112. package/dist/merge-B4IBXGaq.js +170 -0
  113. package/dist/mermaid-parser.core-Cz-MfB4Z.js +638 -0
  114. package/dist/mermaid.core-C_Rtflmc.js +1096 -0
  115. package/dist/mindmap-definition-NLK3R4M7-CO6s2Afv.js +1008 -0
  116. package/dist/ordinal-D_ZgubzR.js +65 -0
  117. package/dist/packet-AYTQ26CC-CshIswP8.js +3 -0
  118. package/dist/path-DGNPZRdx.js +85 -0
  119. package/dist/{pdf-outline-sidebar-BBXJRwdt.js → pdf-outline-sidebar-D5VedBgk.js} +3 -2
  120. package/dist/{pdf-page-DZyTFukn.js → pdf-page-B1Ze518d.js} +1 -1
  121. package/dist/{pdf-page-list-C3GukJ3_.js → pdf-page-list-CBJziavm.js} +3 -2
  122. package/dist/{pdf-reader-Ci4v2Ff9.js → pdf-reader-Cn1uxtJN.js} +13 -13
  123. package/dist/{pdf-sidebar-Dl8fQStG.js → pdf-sidebar-PXfgGlmq.js} +4 -4
  124. package/dist/{pdf-thumbnail-sidebar-GS_V0PGc.js → pdf-thumbnail-sidebar-7agqWsXT.js} +4 -3
  125. package/dist/{pdf-toolbar-D37w-WIK.js → pdf-toolbar-Blm9CFvh.js} +22 -21
  126. package/dist/pegDiagram-GJSIUBJH-gvsGke9W.js +94 -0
  127. package/dist/pie-WAS4IAKB-CYs22y4X.js +3 -0
  128. package/dist/pieDiagram-5QR66LMP-DLBcErnI.js +205 -0
  129. package/dist/quadrantDiagram-O4NWA36T-Bn3CmGxM.js +2001 -0
  130. package/dist/radar-RG4KPBEZ-BOJKjbGv.js +3 -0
  131. package/dist/railroad-74A4TZTK-Dt1BmUkI.js +3 -0
  132. package/dist/railroad-abnf-HS5TGJTU-Cs9GMUMY.js +3 -0
  133. package/dist/railroad-ebnf-LZEXJU2U-D4y0fXoW.js +3 -0
  134. package/dist/railroad-peg-WCYAUIDC-D2f_ZNR5.js +3 -0
  135. package/dist/railroadDiagram-XR7U4H2S-DLeBxWbV.js +76 -0
  136. package/dist/requirementDiagram-PLB6GJNP-JpWB5sEv.js +2228 -0
  137. package/dist/rolldown-runtime-CWhphoD1.js +23 -0
  138. package/dist/rough.esm-rcMoXTJj.js +1352 -0
  139. package/dist/sankeyDiagram-IPEJSGJF-a4rFl5rR.js +970 -0
  140. package/dist/sequenceDiagram-PO4LG4MO-CjUigcL2.js +4200 -0
  141. package/dist/sizeCapture-INFHLROL-CHXIsPO_.js +46 -0
  142. package/dist/src-CNRY2AUH.js +2142 -0
  143. package/dist/stateDiagram-v2-GCMORJYK-DJkVDIb0.js +2143 -0
  144. package/dist/{stx-player-C0FOaRjU.js → stx-player-rs3uH0iI.js} +17 -17
  145. package/dist/swimlanes-2SLR337P-D7Ff0hLr.js +4763 -0
  146. package/dist/swimlanesDiagram-TC7HE7FX-DZZ9d76C.js +28 -0
  147. package/dist/timeline-definition-EJHVYXUP-C0aHlt9K.js +1073 -0
  148. package/dist/treeView-Q6P3EWNA-BrJylG9N.js +3 -0
  149. package/dist/treemap-WGGIJYW6-DpIZuqbj.js +3 -0
  150. package/dist/usecaseDiagram-POWQR4AR-BrRAt7Wu.js +9932 -0
  151. package/dist/vennDiagram-UO4OBE2U-B22Jhju8.js +1880 -0
  152. package/dist/wardley-WFR3VGLG-CbwdAAbH.js +3 -0
  153. package/dist/wardleyDiagram-VNRHLVJA-Dw4YgRiQ.js +645 -0
  154. package/dist/xychartDiagram-PMCCYNJV-DtuDs9I7.js +2214 -0
  155. package/lib/nuxt/component-names.ts +2 -0
  156. package/package.json +5 -1
  157. package/dist/lib-CT0uRn8S.js +0 -611
@@ -0,0 +1,275 @@
1
+ import { n as e } from "./chunk-Y2CYZVJY-i11wjrBe.js";
2
+ import { m as t } from "./src-CNRY2AUH.js";
3
+ import { b as n, z as r } from "./chunk-O7XYJQB3-WMQqqzRb.js";
4
+ //#region node_modules/@iconify/utils/lib/icon/defaults.js
5
+ var i = Object.freeze({
6
+ left: 0,
7
+ top: 0,
8
+ width: 16,
9
+ height: 16
10
+ }), a = Object.freeze({
11
+ rotate: 0,
12
+ vFlip: !1,
13
+ hFlip: !1
14
+ }), o = Object.freeze({
15
+ ...i,
16
+ ...a
17
+ }), s = Object.freeze({
18
+ ...o,
19
+ body: "",
20
+ hidden: !1
21
+ }), c = Object.freeze({
22
+ width: null,
23
+ height: null
24
+ }), l = Object.freeze({
25
+ ...c,
26
+ ...a
27
+ }), u = (e, t, n, r = "") => {
28
+ let i = e.split(":");
29
+ if (e.slice(0, 1) === "@") {
30
+ if (i.length < 2 || i.length > 3) return null;
31
+ r = i.shift().slice(1);
32
+ }
33
+ if (i.length > 3 || !i.length) return null;
34
+ if (i.length > 1) {
35
+ let e = i.pop(), n = i.pop(), a = {
36
+ provider: i.length > 0 ? i[0] : r,
37
+ prefix: n,
38
+ name: e
39
+ };
40
+ return t && !d(a) ? null : a;
41
+ }
42
+ let a = i[0], o = a.split("-");
43
+ if (o.length > 1) {
44
+ let e = {
45
+ provider: r,
46
+ prefix: o.shift(),
47
+ name: o.join("-")
48
+ };
49
+ return t && !d(e) ? null : e;
50
+ }
51
+ if (n && r === "") {
52
+ let e = {
53
+ provider: r,
54
+ prefix: "",
55
+ name: a
56
+ };
57
+ return t && !d(e, n) ? null : e;
58
+ }
59
+ return null;
60
+ }, d = (e, t) => e ? !!((t && e.prefix === "" || e.prefix) && e.name) : !1;
61
+ //#endregion
62
+ //#region node_modules/@iconify/utils/lib/icon/transformations.js
63
+ function f(e, t) {
64
+ let n = {};
65
+ !e.hFlip != !t.hFlip && (n.hFlip = !0), !e.vFlip != !t.vFlip && (n.vFlip = !0);
66
+ let r = ((e.rotate || 0) + (t.rotate || 0)) % 4;
67
+ return r && (n.rotate = r), n;
68
+ }
69
+ //#endregion
70
+ //#region node_modules/@iconify/utils/lib/icon/merge.js
71
+ function p(e, t) {
72
+ let n = f(e, t);
73
+ for (let r in s) r in a ? r in e && !(r in n) && (n[r] = a[r]) : r in t ? n[r] = t[r] : r in e && (n[r] = e[r]);
74
+ return n;
75
+ }
76
+ //#endregion
77
+ //#region node_modules/@iconify/utils/lib/icon-set/tree.js
78
+ function m(e, t) {
79
+ let n = e.icons, r = e.aliases || Object.create(null), i = Object.create(null);
80
+ function a(e) {
81
+ if (n[e]) return i[e] = [];
82
+ if (!(e in i)) {
83
+ i[e] = null;
84
+ let t = r[e] && r[e].parent, n = t && a(t);
85
+ n && (i[e] = [t].concat(n));
86
+ }
87
+ return i[e];
88
+ }
89
+ return (t || Object.keys(n).concat(Object.keys(r))).forEach(a), i;
90
+ }
91
+ //#endregion
92
+ //#region node_modules/@iconify/utils/lib/icon-set/get-icon.js
93
+ function h(e, t, n) {
94
+ let r = e.icons, i = e.aliases || Object.create(null), a = {};
95
+ function o(e) {
96
+ a = p(r[e] || i[e], a);
97
+ }
98
+ return o(t), n.forEach(o), p(e, a);
99
+ }
100
+ function g(e, t) {
101
+ if (e.icons[t]) return h(e, t, []);
102
+ let n = m(e, [t])[t];
103
+ return n ? h(e, t, n) : null;
104
+ }
105
+ //#endregion
106
+ //#region node_modules/@iconify/utils/lib/svg/size.js
107
+ var _ = /(-?[0-9.]*[0-9]+[0-9.]*)/g, v = /^-?[0-9.]*[0-9]+[0-9.]*$/g;
108
+ function y(e, t, n) {
109
+ if (t === 1) return e;
110
+ if (n ||= 100, typeof e == "number") return Math.ceil(e * t * n) / n;
111
+ if (typeof e != "string") return e;
112
+ let r = e.split(_);
113
+ if (r === null || !r.length) return e;
114
+ let i = [], a = r.shift(), o = v.test(a);
115
+ for (;;) {
116
+ if (o) {
117
+ let e = parseFloat(a);
118
+ isNaN(e) ? i.push(a) : i.push(Math.ceil(e * t * n) / n);
119
+ } else i.push(a);
120
+ if (a = r.shift(), a === void 0) return i.join("");
121
+ o = !o;
122
+ }
123
+ }
124
+ //#endregion
125
+ //#region node_modules/@iconify/utils/lib/svg/defs.js
126
+ function b(e, t = "defs") {
127
+ let n = "", r = e.indexOf("<" + t);
128
+ for (; r >= 0;) {
129
+ let i = e.indexOf(">", r), a = e.indexOf("</" + t);
130
+ if (i === -1 || a === -1) break;
131
+ let o = e.indexOf(">", a);
132
+ if (o === -1) break;
133
+ n += e.slice(i + 1, a).trim(), e = e.slice(0, r).trim() + e.slice(o + 1);
134
+ }
135
+ return {
136
+ defs: n,
137
+ content: e
138
+ };
139
+ }
140
+ function x(e, t) {
141
+ return e ? "<defs>" + e + "</defs>" + t : t;
142
+ }
143
+ function S(e, t, n) {
144
+ let r = b(e);
145
+ return x(r.defs, t + r.content + n);
146
+ }
147
+ //#endregion
148
+ //#region node_modules/@iconify/utils/lib/svg/build.js
149
+ var C = (e) => e === "unset" || e === "undefined" || e === "none";
150
+ function w(e, t) {
151
+ let n = {
152
+ ...o,
153
+ ...e
154
+ }, r = {
155
+ ...l,
156
+ ...t
157
+ }, i = {
158
+ left: n.left,
159
+ top: n.top,
160
+ width: n.width,
161
+ height: n.height
162
+ }, a = n.body;
163
+ [n, r].forEach((e) => {
164
+ let t = [], n = e.hFlip, r = e.vFlip, o = e.rotate;
165
+ n ? r ? o += 2 : (t.push("translate(" + (i.width + i.left).toString() + " " + (0 - i.top).toString() + ")"), t.push("scale(-1 1)"), i.top = i.left = 0) : r && (t.push("translate(" + (0 - i.left).toString() + " " + (i.height + i.top).toString() + ")"), t.push("scale(1 -1)"), i.top = i.left = 0);
166
+ let s;
167
+ switch (o < 0 && (o -= Math.floor(o / 4) * 4), o %= 4, o) {
168
+ case 1:
169
+ s = i.height / 2 + i.top, t.unshift("rotate(90 " + s.toString() + " " + s.toString() + ")");
170
+ break;
171
+ case 2:
172
+ t.unshift("rotate(180 " + (i.width / 2 + i.left).toString() + " " + (i.height / 2 + i.top).toString() + ")");
173
+ break;
174
+ case 3: s = i.width / 2 + i.left, t.unshift("rotate(-90 " + s.toString() + " " + s.toString() + ")");
175
+ }
176
+ o % 2 == 1 && (i.left !== i.top && (s = i.left, i.left = i.top, i.top = s), i.width !== i.height && (s = i.width, i.width = i.height, i.height = s)), t.length && (a = S(a, "<g transform=\"" + t.join(" ") + "\">", "</g>"));
177
+ });
178
+ let s = r.width, c = r.height, u = i.width, d = i.height, f, p;
179
+ s === null ? (p = c === null ? "1em" : c === "auto" ? d : c, f = y(p, u / d)) : (f = s === "auto" ? u : s, p = c === null ? y(f, d / u) : c === "auto" ? d : c);
180
+ let m = {}, h = (e, t) => {
181
+ C(t) || (m[e] = t.toString());
182
+ };
183
+ h("width", f), h("height", p);
184
+ let g = [
185
+ i.left,
186
+ i.top,
187
+ u,
188
+ d
189
+ ];
190
+ return m.viewBox = g.join(" "), {
191
+ attributes: m,
192
+ viewBox: g,
193
+ body: a
194
+ };
195
+ }
196
+ //#endregion
197
+ //#region node_modules/@iconify/utils/lib/svg/id.js
198
+ var T = /\sid="(\S+)"/g, E = /* @__PURE__ */ new Map();
199
+ function D(e) {
200
+ e = e.replace(/[0-9]+$/, "") || "a";
201
+ let t = E.get(e) || 0;
202
+ return E.set(e, t + 1), t ? `${e}${t}` : e;
203
+ }
204
+ function O(e) {
205
+ let t = [], n;
206
+ for (; n = T.exec(e);) t.push(n[1]);
207
+ if (!t.length) return e;
208
+ let r = "suffix" + (Math.random() * 16777216 | Date.now()).toString(16);
209
+ return t.forEach((t) => {
210
+ let n = D(t), i = t.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
211
+ e = e.replace(RegExp("([#;\"])(" + i + ")([\")]|\\.[a-z])", "g"), "$1" + n + r + "$3");
212
+ }), e = e.replace(new RegExp(r, "g"), ""), e;
213
+ }
214
+ //#endregion
215
+ //#region node_modules/@iconify/utils/lib/svg/html.js
216
+ function k(e, t) {
217
+ let n = e.indexOf("xlink:") === -1 ? "" : " xmlns:xlink=\"http://www.w3.org/1999/xlink\"";
218
+ for (let e in t) n += " " + e + "=\"" + t[e] + "\"";
219
+ return "<svg xmlns=\"http://www.w3.org/2000/svg\"" + n + ">" + e + "</svg>";
220
+ }
221
+ //#endregion
222
+ //#region node_modules/mermaid/dist/chunks/mermaid.core/chunk-742MDFTN.mjs
223
+ var A = {
224
+ body: "<g><rect width=\"80\" height=\"80\" style=\"fill: #087ebf; stroke-width: 0px;\"/><text transform=\"translate(21.16 64.67)\" style=\"fill: #fff; font-family: ArialMT, Arial; font-size: 67.75px;\"><tspan x=\"0\" y=\"0\">?</tspan></text></g>",
225
+ height: 80,
226
+ width: 80
227
+ }, j = /* @__PURE__ */ new Map(), M = /* @__PURE__ */ new Map(), N = /* @__PURE__ */ e((e) => {
228
+ for (let n of e) {
229
+ if (!n.name) throw Error("Invalid icon loader. Must have a \"name\" property with non-empty string value.");
230
+ if (t.debug("Registering icon pack:", n.name), "loader" in n) M.set(n.name, n.loader);
231
+ else if ("icons" in n) j.set(n.name, n.icons);
232
+ else throw t.error("Invalid icon loader:", n), Error("Invalid icon loader. Must have either \"icons\" or \"loader\" property.");
233
+ }
234
+ }, "registerIconPacks"), P = /* @__PURE__ */ e(async (e, n) => {
235
+ let r = u(e, !0, n !== void 0);
236
+ if (!r) throw Error(`Invalid icon name: ${e}`);
237
+ let i = r.prefix || n;
238
+ if (!i) throw Error(`Icon name must contain a prefix: ${e}`);
239
+ let a = j.get(i);
240
+ if (!a) {
241
+ let e = M.get(i);
242
+ if (!e) throw Error(`Icon set not found: ${r.prefix}`);
243
+ try {
244
+ a = {
245
+ ...await e(),
246
+ prefix: i
247
+ }, j.set(i, a);
248
+ } catch (e) {
249
+ throw t.error(e), Error(`Failed to load icon set: ${r.prefix}`);
250
+ }
251
+ }
252
+ let o = g(a, r.name);
253
+ if (!o) throw Error(`Icon not found: ${e}`);
254
+ return o;
255
+ }, "getRegisteredIconData"), F = /* @__PURE__ */ e(async (e) => {
256
+ try {
257
+ return await P(e), !0;
258
+ } catch {
259
+ return !1;
260
+ }
261
+ }, "isIconAvailable"), I = /* @__PURE__ */ e(async (e, i, a) => {
262
+ let o;
263
+ try {
264
+ o = await P(e, i?.fallbackPrefix);
265
+ } catch (e) {
266
+ t.error(e), o = A;
267
+ }
268
+ let s = w(o, i);
269
+ return r(k(O(s.body), {
270
+ ...s.attributes,
271
+ ...a
272
+ }), n());
273
+ }, "getIconSVG");
274
+ //#endregion
275
+ export { A as i, F as n, N as r, I as t };