@burdenoff/microfe-integrations 2026.929.3 → 2026.930.2
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.
- package/dist/generated/wspace-operations.d.ts +0 -137
- package/dist/generated/wspace-operations.d.ts.map +1 -1
- package/dist/generated/wspace-operations.js +73 -142
- package/dist/generated/wspace-operations.js.map +1 -1
- package/dist/index.js +4 -3
- package/dist/integrations/ConnectSourceDialog.d.ts +21 -0
- package/dist/integrations/ConnectSourceDialog.d.ts.map +1 -0
- package/dist/integrations/ConnectSourceDialog.js +56 -0
- package/dist/integrations/ConnectSourceDialog.js.map +1 -0
- package/dist/integrations/ConnectionsPanel.d.ts.map +1 -1
- package/dist/integrations/ConnectionsPanel.js.map +1 -1
- package/dist/integrations/components/AddConnectionDialog.d.ts +22 -11
- package/dist/integrations/components/AddConnectionDialog.d.ts.map +1 -1
- package/dist/integrations/components/AddConnectionDialog.js +54 -602
- package/dist/integrations/components/AddConnectionDialog.js.map +1 -1
- package/dist/integrations/components/AuthMethodsEditor.d.ts.map +1 -1
- package/dist/integrations/components/AuthMethodsEditor.js +69 -68
- package/dist/integrations/components/AuthMethodsEditor.js.map +1 -1
- package/dist/integrations/components/ConnectionCard.js +28 -28
- package/dist/integrations/components/ConnectionCard.js.map +1 -1
- package/dist/integrations/components/ConnectionModalFrame.d.ts +38 -0
- package/dist/integrations/components/ConnectionModalFrame.d.ts.map +1 -0
- package/dist/integrations/components/ConnectionModalFrame.js +64 -0
- package/dist/integrations/components/ConnectionModalFrame.js.map +1 -0
- package/dist/integrations/components/ProviderCard.js +29 -29
- package/dist/integrations/components/ProviderCard.js.map +1 -1
- package/dist/integrations/hooks/useConnections.js +91 -102
- package/dist/integrations/hooks/useConnections.js.map +1 -1
- package/dist/integrations/hooks/useLogs.js +4 -4
- package/dist/integrations/hooks/useProviders.js +36 -36
- package/dist/integrations/index.d.ts +2 -0
- package/dist/integrations/index.d.ts.map +1 -1
- package/dist/integrations/index.js +1 -0
- package/dist/integrations/pages/AddConnectionWizard.d.ts.map +1 -1
- package/dist/integrations/pages/AddConnectionWizard.js +281 -277
- package/dist/integrations/pages/AddConnectionWizard.js.map +1 -1
- package/dist/integrations/pages/ConnectionDetail.js +24 -24
- package/dist/integrations/pages/ConnectionDetail.js.map +1 -1
- package/dist/integrations/pages/ConnectionsList.js +7 -7
- package/dist/integrations/pages/ConnectionsList.js.map +1 -1
- package/dist/integrations/pages/IntegrationsOverview.js +34 -34
- package/dist/integrations/pages/ProviderCatalog.js +4 -4
- package/dist/integrations/pages/ProviderDetail.js +110 -110
- package/dist/integrations/pages/ProviderDetail.js.map +1 -1
- package/dist/integrations/translations/en.d.ts +21 -0
- package/dist/integrations/translations/en.d.ts.map +1 -1
- package/dist/integrations/utils/appearance.d.ts +0 -3
- package/dist/integrations/utils/appearance.d.ts.map +1 -1
- package/dist/integrations/utils/appearance.js +1 -20
- package/dist/integrations/utils/appearance.js.map +1 -1
- package/dist/integrations/utils/integrationsHelpers.js +1 -4
- package/dist/integrations/utils/integrationsHelpers.js.map +1 -1
- package/package.json +5 -3
- package/dist/integrations/assets/brands/bigconsole.js +0 -6
- package/dist/integrations/assets/brands/bigconsole.js.map +0 -1
- package/dist/integrations/assets/brands/burdenoff.js +0 -6
- package/dist/integrations/assets/brands/burdenoff.js.map +0 -1
- package/dist/integrations/components/AuthMethodSelector.d.ts +0 -30
- package/dist/integrations/components/AuthMethodSelector.d.ts.map +0 -1
- package/dist/integrations/components/AuthMethodSelector.js +0 -66
- package/dist/integrations/components/AuthMethodSelector.js.map +0 -1
- package/dist/integrations/components/CredentialStorageSelector.d.ts +0 -16
- package/dist/integrations/components/CredentialStorageSelector.d.ts.map +0 -1
- package/dist/integrations/components/CredentialStorageSelector.js +0 -262
- package/dist/integrations/components/CredentialStorageSelector.js.map +0 -1
- package/dist/integrations/components/ProviderIcon.d.ts +0 -25
- package/dist/integrations/components/ProviderIcon.d.ts.map +0 -1
- package/dist/integrations/components/ProviderIcon.js +0 -166
- package/dist/integrations/components/ProviderIcon.js.map +0 -1
- package/dist/integrations/components/SchemaForm.d.ts +0 -60
- package/dist/integrations/components/SchemaForm.d.ts.map +0 -1
- package/dist/integrations/components/SchemaForm.js +0 -235
- package/dist/integrations/components/SchemaForm.js.map +0 -1
- package/dist/integrations/hooks/useCredentialVaults.d.ts +0 -40
- package/dist/integrations/hooks/useCredentialVaults.d.ts.map +0 -1
- package/dist/integrations/hooks/useCredentialVaults.js +0 -98
- package/dist/integrations/hooks/useCredentialVaults.js.map +0 -1
- package/dist/integrations/utils/oauthPopup.d.ts +0 -16
- package/dist/integrations/utils/oauthPopup.d.ts.map +0 -1
- package/dist/integrations/utils/oauthPopup.js +0 -62
- package/dist/integrations/utils/oauthPopup.js.map +0 -1
- package/dist/node_modules/@iconify/react/dist/iconify.js +0 -1005
- package/dist/node_modules/@iconify/react/dist/iconify.js.map +0 -1
|
@@ -1,1005 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { createElement as e, forwardRef as t, useEffect as n, useState as r } from "react";
|
|
3
|
-
//#region node_modules/@iconify/react/dist/iconify.js
|
|
4
|
-
var i = Object.freeze({
|
|
5
|
-
left: 0,
|
|
6
|
-
top: 0,
|
|
7
|
-
width: 16,
|
|
8
|
-
height: 16
|
|
9
|
-
}), a = Object.freeze({
|
|
10
|
-
rotate: 0,
|
|
11
|
-
vFlip: !1,
|
|
12
|
-
hFlip: !1
|
|
13
|
-
}), o = Object.freeze({
|
|
14
|
-
...i,
|
|
15
|
-
...a
|
|
16
|
-
}), s = Object.freeze({
|
|
17
|
-
...o,
|
|
18
|
-
body: "",
|
|
19
|
-
hidden: !1
|
|
20
|
-
});
|
|
21
|
-
function c(e, t) {
|
|
22
|
-
let n = {};
|
|
23
|
-
!e.hFlip != !t.hFlip && (n.hFlip = !0), !e.vFlip != !t.vFlip && (n.vFlip = !0);
|
|
24
|
-
let r = ((e.rotate || 0) + (t.rotate || 0)) % 4;
|
|
25
|
-
return r && (n.rotate = r), n;
|
|
26
|
-
}
|
|
27
|
-
function l(e, t) {
|
|
28
|
-
let n = c(e, t);
|
|
29
|
-
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]);
|
|
30
|
-
return n;
|
|
31
|
-
}
|
|
32
|
-
function u(e, t) {
|
|
33
|
-
let n = e.icons, r = e.aliases || /* @__PURE__ */ Object.create(null), i = /* @__PURE__ */ Object.create(null);
|
|
34
|
-
function a(e) {
|
|
35
|
-
if (n[e]) return i[e] = [];
|
|
36
|
-
if (!(e in i)) {
|
|
37
|
-
i[e] = null;
|
|
38
|
-
let t = r[e] && r[e].parent, n = t && a(t);
|
|
39
|
-
n && (i[e] = [t].concat(n));
|
|
40
|
-
}
|
|
41
|
-
return i[e];
|
|
42
|
-
}
|
|
43
|
-
return Object.keys(n).concat(Object.keys(r)).forEach(a), i;
|
|
44
|
-
}
|
|
45
|
-
function d(e, t, n) {
|
|
46
|
-
let r = e.icons, i = e.aliases || /* @__PURE__ */ Object.create(null), a = {};
|
|
47
|
-
function o(e) {
|
|
48
|
-
a = l(r[e] || i[e], a);
|
|
49
|
-
}
|
|
50
|
-
return o(t), n.forEach(o), l(e, a);
|
|
51
|
-
}
|
|
52
|
-
function f(e, t) {
|
|
53
|
-
let n = [];
|
|
54
|
-
if (typeof e != "object" || typeof e.icons != "object") return n;
|
|
55
|
-
e.not_found instanceof Array && e.not_found.forEach((e) => {
|
|
56
|
-
t(e, null), n.push(e);
|
|
57
|
-
});
|
|
58
|
-
let r = u(e);
|
|
59
|
-
for (let i in r) {
|
|
60
|
-
let a = r[i];
|
|
61
|
-
a && (t(i, d(e, i, a)), n.push(i));
|
|
62
|
-
}
|
|
63
|
-
return n;
|
|
64
|
-
}
|
|
65
|
-
var p = {
|
|
66
|
-
provider: "",
|
|
67
|
-
aliases: {},
|
|
68
|
-
not_found: {},
|
|
69
|
-
...i
|
|
70
|
-
};
|
|
71
|
-
function m(e, t) {
|
|
72
|
-
for (let n in t) if (n in e && typeof e[n] != typeof t[n]) return !1;
|
|
73
|
-
return !0;
|
|
74
|
-
}
|
|
75
|
-
function h(e) {
|
|
76
|
-
if (typeof e != "object" || !e) return null;
|
|
77
|
-
let t = e;
|
|
78
|
-
if (typeof t.prefix != "string" || !e.icons || typeof e.icons != "object" || !m(e, p)) return null;
|
|
79
|
-
let n = t.icons;
|
|
80
|
-
for (let e in n) {
|
|
81
|
-
let t = n[e];
|
|
82
|
-
if (!e || typeof t.body != "string" || !m(t, s)) return null;
|
|
83
|
-
}
|
|
84
|
-
let r = t.aliases || /* @__PURE__ */ Object.create(null);
|
|
85
|
-
for (let e in r) {
|
|
86
|
-
let t = r[e], i = t.parent;
|
|
87
|
-
if (!e || typeof i != "string" || !n[i] && !r[i] || !m(t, s)) return null;
|
|
88
|
-
}
|
|
89
|
-
return t;
|
|
90
|
-
}
|
|
91
|
-
var g = /^[a-z0-9]+(-[a-z0-9]+)*$/, _ = (e, t, n, r = "") => {
|
|
92
|
-
let i = e.split(":");
|
|
93
|
-
if (e.slice(0, 1) === "@") {
|
|
94
|
-
if (i.length < 2 || i.length > 3) return null;
|
|
95
|
-
r = i.shift().slice(1);
|
|
96
|
-
}
|
|
97
|
-
if (i.length > 3 || !i.length) return null;
|
|
98
|
-
if (i.length > 1) {
|
|
99
|
-
let e = i.pop(), n = i.pop(), a = {
|
|
100
|
-
provider: i.length > 0 ? i[0] : r,
|
|
101
|
-
prefix: n,
|
|
102
|
-
name: e
|
|
103
|
-
};
|
|
104
|
-
return t && !v(a) ? null : a;
|
|
105
|
-
}
|
|
106
|
-
let a = i[0], o = a.split("-");
|
|
107
|
-
if (o.length > 1) {
|
|
108
|
-
let e = {
|
|
109
|
-
provider: r,
|
|
110
|
-
prefix: o.shift(),
|
|
111
|
-
name: o.join("-")
|
|
112
|
-
};
|
|
113
|
-
return t && !v(e) ? null : e;
|
|
114
|
-
}
|
|
115
|
-
if (n && r === "") {
|
|
116
|
-
let e = {
|
|
117
|
-
provider: r,
|
|
118
|
-
prefix: "",
|
|
119
|
-
name: a
|
|
120
|
-
};
|
|
121
|
-
return t && !v(e, n) ? null : e;
|
|
122
|
-
}
|
|
123
|
-
return null;
|
|
124
|
-
}, v = (e, t) => e ? !!((t && e.prefix === "" || e.prefix) && e.name) : !1, y = /* @__PURE__ */ Object.create(null);
|
|
125
|
-
function b(e, t) {
|
|
126
|
-
return {
|
|
127
|
-
provider: e,
|
|
128
|
-
prefix: t,
|
|
129
|
-
icons: /* @__PURE__ */ Object.create(null),
|
|
130
|
-
missing: /* @__PURE__ */ new Set()
|
|
131
|
-
};
|
|
132
|
-
}
|
|
133
|
-
function x(e, t) {
|
|
134
|
-
let n = y[e] || (y[e] = /* @__PURE__ */ Object.create(null));
|
|
135
|
-
return n[t] || (n[t] = b(e, t));
|
|
136
|
-
}
|
|
137
|
-
function S(e, t) {
|
|
138
|
-
return h(t) ? f(t, (t, n) => {
|
|
139
|
-
n ? e.icons[t] = n : e.missing.add(t);
|
|
140
|
-
}) : [];
|
|
141
|
-
}
|
|
142
|
-
function ee(e, t, n) {
|
|
143
|
-
try {
|
|
144
|
-
if (typeof n.body == "string") return e.icons[t] = { ...n }, !0;
|
|
145
|
-
} catch {}
|
|
146
|
-
return !1;
|
|
147
|
-
}
|
|
148
|
-
var C = !1;
|
|
149
|
-
function w(e) {
|
|
150
|
-
return typeof e == "boolean" && (C = e), C;
|
|
151
|
-
}
|
|
152
|
-
function T(e) {
|
|
153
|
-
let t = typeof e == "string" ? _(e, !0, C) : e;
|
|
154
|
-
if (t) {
|
|
155
|
-
let e = x(t.provider, t.prefix), n = t.name;
|
|
156
|
-
return e.icons[n] || (e.missing.has(n) ? null : void 0);
|
|
157
|
-
}
|
|
158
|
-
}
|
|
159
|
-
function te(e, t) {
|
|
160
|
-
let n = _(e, !0, C);
|
|
161
|
-
if (!n) return !1;
|
|
162
|
-
let r = x(n.provider, n.prefix);
|
|
163
|
-
return t ? ee(r, n.name, t) : (r.missing.add(n.name), !0);
|
|
164
|
-
}
|
|
165
|
-
function ne(e, t) {
|
|
166
|
-
if (typeof e != "object") return !1;
|
|
167
|
-
if (typeof t != "string" && (t = e.provider || ""), C && !t && !e.prefix) {
|
|
168
|
-
let t = !1;
|
|
169
|
-
return h(e) && (e.prefix = "", f(e, (e, n) => {
|
|
170
|
-
te(e, n) && (t = !0);
|
|
171
|
-
})), t;
|
|
172
|
-
}
|
|
173
|
-
let n = e.prefix;
|
|
174
|
-
return v({
|
|
175
|
-
prefix: n,
|
|
176
|
-
name: "a"
|
|
177
|
-
}) ? !!S(x(t, n), e) : !1;
|
|
178
|
-
}
|
|
179
|
-
var E = Object.freeze({
|
|
180
|
-
width: null,
|
|
181
|
-
height: null
|
|
182
|
-
}), D = Object.freeze({
|
|
183
|
-
...E,
|
|
184
|
-
...a
|
|
185
|
-
}), re = /(-?[0-9.]*[0-9]+[0-9.]*)/g, ie = /^-?[0-9.]*[0-9]+[0-9.]*$/g;
|
|
186
|
-
function O(e, t, n) {
|
|
187
|
-
if (t === 1) return e;
|
|
188
|
-
if (n ||= 100, typeof e == "number") return Math.ceil(e * t * n) / n;
|
|
189
|
-
if (typeof e != "string") return e;
|
|
190
|
-
let r = e.split(re);
|
|
191
|
-
if (r === null || !r.length) return e;
|
|
192
|
-
let i = [], a = r.shift(), o = ie.test(a);
|
|
193
|
-
for (;;) {
|
|
194
|
-
if (o) {
|
|
195
|
-
let e = parseFloat(a);
|
|
196
|
-
isNaN(e) ? i.push(a) : i.push(Math.ceil(e * t * n) / n);
|
|
197
|
-
} else i.push(a);
|
|
198
|
-
if (a = r.shift(), a === void 0) return i.join("");
|
|
199
|
-
o = !o;
|
|
200
|
-
}
|
|
201
|
-
}
|
|
202
|
-
function ae(e, t = "defs") {
|
|
203
|
-
let n = "", r = e.indexOf("<" + t);
|
|
204
|
-
for (; r >= 0;) {
|
|
205
|
-
let i = e.indexOf(">", r), a = e.indexOf("</" + t);
|
|
206
|
-
if (i === -1 || a === -1) break;
|
|
207
|
-
let o = e.indexOf(">", a);
|
|
208
|
-
if (o === -1) break;
|
|
209
|
-
n += e.slice(i + 1, a).trim(), e = e.slice(0, r).trim() + e.slice(o + 1);
|
|
210
|
-
}
|
|
211
|
-
return {
|
|
212
|
-
defs: n,
|
|
213
|
-
content: e
|
|
214
|
-
};
|
|
215
|
-
}
|
|
216
|
-
function oe(e, t) {
|
|
217
|
-
return e ? "<defs>" + e + "</defs>" + t : t;
|
|
218
|
-
}
|
|
219
|
-
function se(e, t, n) {
|
|
220
|
-
let r = ae(e);
|
|
221
|
-
return oe(r.defs, t + r.content + n);
|
|
222
|
-
}
|
|
223
|
-
var ce = (e) => e === "unset" || e === "undefined" || e === "none";
|
|
224
|
-
function le(e, t) {
|
|
225
|
-
let n = {
|
|
226
|
-
...o,
|
|
227
|
-
...e
|
|
228
|
-
}, r = {
|
|
229
|
-
...D,
|
|
230
|
-
...t
|
|
231
|
-
}, i = {
|
|
232
|
-
left: n.left,
|
|
233
|
-
top: n.top,
|
|
234
|
-
width: n.width,
|
|
235
|
-
height: n.height
|
|
236
|
-
}, a = n.body;
|
|
237
|
-
[n, r].forEach((e) => {
|
|
238
|
-
let t = [], n = e.hFlip, r = e.vFlip, o = e.rotate;
|
|
239
|
-
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);
|
|
240
|
-
let s;
|
|
241
|
-
switch (o < 0 && (o -= Math.floor(o / 4) * 4), o %= 4, o) {
|
|
242
|
-
case 1:
|
|
243
|
-
s = i.height / 2 + i.top, t.unshift("rotate(90 " + s.toString() + " " + s.toString() + ")");
|
|
244
|
-
break;
|
|
245
|
-
case 2:
|
|
246
|
-
t.unshift("rotate(180 " + (i.width / 2 + i.left).toString() + " " + (i.height / 2 + i.top).toString() + ")");
|
|
247
|
-
break;
|
|
248
|
-
case 3:
|
|
249
|
-
s = i.width / 2 + i.left, t.unshift("rotate(-90 " + s.toString() + " " + s.toString() + ")");
|
|
250
|
-
break;
|
|
251
|
-
}
|
|
252
|
-
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 = se(a, "<g transform=\"" + t.join(" ") + "\">", "</g>"));
|
|
253
|
-
});
|
|
254
|
-
let s = r.width, c = r.height, l = i.width, u = i.height, d, f;
|
|
255
|
-
s === null ? (f = c === null ? "1em" : c === "auto" ? u : c, d = O(f, l / u)) : (d = s === "auto" ? l : s, f = c === null ? O(d, u / l) : c === "auto" ? u : c);
|
|
256
|
-
let p = {}, m = (e, t) => {
|
|
257
|
-
ce(t) || (p[e] = t.toString());
|
|
258
|
-
};
|
|
259
|
-
m("width", d), m("height", f);
|
|
260
|
-
let h = [
|
|
261
|
-
i.left,
|
|
262
|
-
i.top,
|
|
263
|
-
l,
|
|
264
|
-
u
|
|
265
|
-
];
|
|
266
|
-
return p.viewBox = h.join(" "), {
|
|
267
|
-
attributes: p,
|
|
268
|
-
viewBox: h,
|
|
269
|
-
body: a
|
|
270
|
-
};
|
|
271
|
-
}
|
|
272
|
-
var ue = /\sid="(\S+)"/g, de = "IconifyId" + Date.now().toString(16) + (Math.random() * 16777216 | 0).toString(16), fe = 0;
|
|
273
|
-
function pe(e, t = de) {
|
|
274
|
-
let n = [], r;
|
|
275
|
-
for (; r = ue.exec(e);) n.push(r[1]);
|
|
276
|
-
if (!n.length) return e;
|
|
277
|
-
let i = "suffix" + (Math.random() * 16777216 | Date.now()).toString(16);
|
|
278
|
-
return n.forEach((n) => {
|
|
279
|
-
let r = typeof t == "function" ? t(n) : t + (fe++).toString(), a = n.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
280
|
-
e = e.replace(RegExp("([#;\"])(" + a + ")([\")]|\\.[a-z])", "g"), "$1" + r + i + "$3");
|
|
281
|
-
}), e = e.replace(new RegExp(i, "g"), ""), e;
|
|
282
|
-
}
|
|
283
|
-
var k = /* @__PURE__ */ Object.create(null);
|
|
284
|
-
function me(e, t) {
|
|
285
|
-
k[e] = t;
|
|
286
|
-
}
|
|
287
|
-
function A(e) {
|
|
288
|
-
return k[e] || k[""];
|
|
289
|
-
}
|
|
290
|
-
function j(e) {
|
|
291
|
-
let t;
|
|
292
|
-
if (typeof e.resources == "string") t = [e.resources];
|
|
293
|
-
else if (t = e.resources, !(t instanceof Array) || !t.length) return null;
|
|
294
|
-
return {
|
|
295
|
-
resources: t,
|
|
296
|
-
path: e.path || "/",
|
|
297
|
-
maxURL: e.maxURL || 500,
|
|
298
|
-
rotate: e.rotate || 750,
|
|
299
|
-
timeout: e.timeout || 5e3,
|
|
300
|
-
random: e.random === !0,
|
|
301
|
-
index: e.index || 0,
|
|
302
|
-
dataAfterTimeout: e.dataAfterTimeout !== !1
|
|
303
|
-
};
|
|
304
|
-
}
|
|
305
|
-
for (var M = /* @__PURE__ */ Object.create(null), N = ["https://api.simplesvg.com", "https://api.unisvg.com"], P = []; N.length > 0;) N.length === 1 || Math.random() > .5 ? P.push(N.shift()) : P.push(N.pop());
|
|
306
|
-
M[""] = j({ resources: ["https://api.iconify.design"].concat(P) });
|
|
307
|
-
function he(e, t) {
|
|
308
|
-
let n = j(t);
|
|
309
|
-
return n === null ? !1 : (M[e] = n, !0);
|
|
310
|
-
}
|
|
311
|
-
function F(e) {
|
|
312
|
-
return M[e];
|
|
313
|
-
}
|
|
314
|
-
var I = (() => {
|
|
315
|
-
let e;
|
|
316
|
-
try {
|
|
317
|
-
if (e = fetch, typeof e == "function") return e;
|
|
318
|
-
} catch {}
|
|
319
|
-
})();
|
|
320
|
-
function ge(e, t) {
|
|
321
|
-
let n = F(e);
|
|
322
|
-
if (!n) return 0;
|
|
323
|
-
let r;
|
|
324
|
-
if (!n.maxURL) r = 0;
|
|
325
|
-
else {
|
|
326
|
-
let e = 0;
|
|
327
|
-
n.resources.forEach((t) => {
|
|
328
|
-
e = Math.max(e, t.length);
|
|
329
|
-
});
|
|
330
|
-
let i = t + ".json?icons=";
|
|
331
|
-
r = n.maxURL - e - n.path.length - i.length;
|
|
332
|
-
}
|
|
333
|
-
return r;
|
|
334
|
-
}
|
|
335
|
-
function L(e) {
|
|
336
|
-
return e === 404;
|
|
337
|
-
}
|
|
338
|
-
var _e = (e, t, n) => {
|
|
339
|
-
let r = [], i = ge(e, t), a = "icons", o = {
|
|
340
|
-
type: a,
|
|
341
|
-
provider: e,
|
|
342
|
-
prefix: t,
|
|
343
|
-
icons: []
|
|
344
|
-
}, s = 0;
|
|
345
|
-
return n.forEach((n, c) => {
|
|
346
|
-
s += n.length + 1, s >= i && c > 0 && (r.push(o), o = {
|
|
347
|
-
type: a,
|
|
348
|
-
provider: e,
|
|
349
|
-
prefix: t,
|
|
350
|
-
icons: []
|
|
351
|
-
}, s = n.length), o.icons.push(n);
|
|
352
|
-
}), r.push(o), r;
|
|
353
|
-
};
|
|
354
|
-
function ve(e) {
|
|
355
|
-
if (typeof e == "string") {
|
|
356
|
-
let t = F(e);
|
|
357
|
-
if (t) return t.path;
|
|
358
|
-
}
|
|
359
|
-
return "/";
|
|
360
|
-
}
|
|
361
|
-
var ye = {
|
|
362
|
-
prepare: _e,
|
|
363
|
-
send: (e, t, n) => {
|
|
364
|
-
if (!I) {
|
|
365
|
-
n("abort", 424);
|
|
366
|
-
return;
|
|
367
|
-
}
|
|
368
|
-
let r = ve(t.provider);
|
|
369
|
-
switch (t.type) {
|
|
370
|
-
case "icons": {
|
|
371
|
-
let e = t.prefix, n = t.icons.join(","), i = new URLSearchParams({ icons: n });
|
|
372
|
-
r += e + ".json?" + i.toString();
|
|
373
|
-
break;
|
|
374
|
-
}
|
|
375
|
-
case "custom": {
|
|
376
|
-
let e = t.uri;
|
|
377
|
-
r += e.slice(0, 1) === "/" ? e.slice(1) : e;
|
|
378
|
-
break;
|
|
379
|
-
}
|
|
380
|
-
default:
|
|
381
|
-
n("abort", 400);
|
|
382
|
-
return;
|
|
383
|
-
}
|
|
384
|
-
let i = 503;
|
|
385
|
-
I(e + r).then((e) => {
|
|
386
|
-
let t = e.status;
|
|
387
|
-
if (t !== 200) {
|
|
388
|
-
setTimeout(() => {
|
|
389
|
-
n(L(t) ? "abort" : "next", t);
|
|
390
|
-
});
|
|
391
|
-
return;
|
|
392
|
-
}
|
|
393
|
-
return i = 501, e.json();
|
|
394
|
-
}).then((e) => {
|
|
395
|
-
if (typeof e != "object" || !e) {
|
|
396
|
-
setTimeout(() => {
|
|
397
|
-
e === 404 ? n("abort", e) : n("next", i);
|
|
398
|
-
});
|
|
399
|
-
return;
|
|
400
|
-
}
|
|
401
|
-
setTimeout(() => {
|
|
402
|
-
n("success", e);
|
|
403
|
-
});
|
|
404
|
-
}).catch(() => {
|
|
405
|
-
n("next", i);
|
|
406
|
-
});
|
|
407
|
-
}
|
|
408
|
-
};
|
|
409
|
-
function be(e) {
|
|
410
|
-
let t = {
|
|
411
|
-
loaded: [],
|
|
412
|
-
missing: [],
|
|
413
|
-
pending: []
|
|
414
|
-
}, n = /* @__PURE__ */ Object.create(null);
|
|
415
|
-
e.sort((e, t) => e.provider === t.provider ? e.prefix === t.prefix ? e.name.localeCompare(t.name) : e.prefix.localeCompare(t.prefix) : e.provider.localeCompare(t.provider));
|
|
416
|
-
let r = {
|
|
417
|
-
provider: "",
|
|
418
|
-
prefix: "",
|
|
419
|
-
name: ""
|
|
420
|
-
};
|
|
421
|
-
return e.forEach((e) => {
|
|
422
|
-
if (r.name === e.name && r.prefix === e.prefix && r.provider === e.provider) return;
|
|
423
|
-
r = e;
|
|
424
|
-
let i = e.provider, a = e.prefix, o = e.name, s = n[i] || (n[i] = /* @__PURE__ */ Object.create(null)), c = s[a] || (s[a] = x(i, a)), l;
|
|
425
|
-
l = o in c.icons ? t.loaded : a === "" || c.missing.has(o) ? t.missing : t.pending;
|
|
426
|
-
let u = {
|
|
427
|
-
provider: i,
|
|
428
|
-
prefix: a,
|
|
429
|
-
name: o
|
|
430
|
-
};
|
|
431
|
-
l.push(u);
|
|
432
|
-
}), t;
|
|
433
|
-
}
|
|
434
|
-
function R(e, t) {
|
|
435
|
-
e.forEach((e) => {
|
|
436
|
-
let n = e.loaderCallbacks;
|
|
437
|
-
n && (e.loaderCallbacks = n.filter((e) => e.id !== t));
|
|
438
|
-
});
|
|
439
|
-
}
|
|
440
|
-
function xe(e) {
|
|
441
|
-
e.pendingCallbacksFlag || (e.pendingCallbacksFlag = !0, setTimeout(() => {
|
|
442
|
-
e.pendingCallbacksFlag = !1;
|
|
443
|
-
let t = e.loaderCallbacks ? e.loaderCallbacks.slice(0) : [];
|
|
444
|
-
if (!t.length) return;
|
|
445
|
-
let n = !1, r = e.provider, i = e.prefix;
|
|
446
|
-
t.forEach((t) => {
|
|
447
|
-
let a = t.icons, o = a.pending.length;
|
|
448
|
-
a.pending = a.pending.filter((t) => {
|
|
449
|
-
if (t.prefix !== i) return !0;
|
|
450
|
-
let o = t.name;
|
|
451
|
-
if (e.icons[o]) a.loaded.push({
|
|
452
|
-
provider: r,
|
|
453
|
-
prefix: i,
|
|
454
|
-
name: o
|
|
455
|
-
});
|
|
456
|
-
else if (e.missing.has(o)) a.missing.push({
|
|
457
|
-
provider: r,
|
|
458
|
-
prefix: i,
|
|
459
|
-
name: o
|
|
460
|
-
});
|
|
461
|
-
else return n = !0, !0;
|
|
462
|
-
return !1;
|
|
463
|
-
}), a.pending.length !== o && (n || R([e], t.id), t.callback(a.loaded.slice(0), a.missing.slice(0), a.pending.slice(0), t.abort));
|
|
464
|
-
});
|
|
465
|
-
}));
|
|
466
|
-
}
|
|
467
|
-
var Se = 0;
|
|
468
|
-
function Ce(e, t, n) {
|
|
469
|
-
let r = Se++, i = R.bind(null, n, r);
|
|
470
|
-
if (!t.pending.length) return i;
|
|
471
|
-
let a = {
|
|
472
|
-
id: r,
|
|
473
|
-
icons: t,
|
|
474
|
-
callback: e,
|
|
475
|
-
abort: i
|
|
476
|
-
};
|
|
477
|
-
return n.forEach((e) => {
|
|
478
|
-
(e.loaderCallbacks ||= []).push(a);
|
|
479
|
-
}), i;
|
|
480
|
-
}
|
|
481
|
-
function we(e, t = !0, n = !1) {
|
|
482
|
-
let r = [];
|
|
483
|
-
return e.forEach((e) => {
|
|
484
|
-
let i = typeof e == "string" ? _(e, t, n) : e;
|
|
485
|
-
i && r.push(i);
|
|
486
|
-
}), r;
|
|
487
|
-
}
|
|
488
|
-
var Te = {
|
|
489
|
-
resources: [],
|
|
490
|
-
index: 0,
|
|
491
|
-
timeout: 2e3,
|
|
492
|
-
rotate: 750,
|
|
493
|
-
random: !1,
|
|
494
|
-
dataAfterTimeout: !1
|
|
495
|
-
};
|
|
496
|
-
function Ee(e, t, n, r) {
|
|
497
|
-
let i = e.resources.length, a = e.random ? Math.floor(Math.random() * i) : e.index, o;
|
|
498
|
-
if (e.random) {
|
|
499
|
-
let t = e.resources.slice(0);
|
|
500
|
-
for (o = []; t.length > 1;) {
|
|
501
|
-
let e = Math.floor(Math.random() * t.length);
|
|
502
|
-
o.push(t[e]), t = t.slice(0, e).concat(t.slice(e + 1));
|
|
503
|
-
}
|
|
504
|
-
o = o.concat(t);
|
|
505
|
-
} else o = e.resources.slice(a).concat(e.resources.slice(0, a));
|
|
506
|
-
let s = Date.now(), c = "pending", l = 0, u, d = null, f = [], p = [];
|
|
507
|
-
typeof r == "function" && p.push(r);
|
|
508
|
-
function m() {
|
|
509
|
-
d &&= (clearTimeout(d), null);
|
|
510
|
-
}
|
|
511
|
-
function h() {
|
|
512
|
-
c === "pending" && (c = "aborted"), m(), f.forEach((e) => {
|
|
513
|
-
e.status === "pending" && (e.status = "aborted");
|
|
514
|
-
}), f = [];
|
|
515
|
-
}
|
|
516
|
-
function g(e, t) {
|
|
517
|
-
t && (p = []), typeof e == "function" && p.push(e);
|
|
518
|
-
}
|
|
519
|
-
function _() {
|
|
520
|
-
return {
|
|
521
|
-
startTime: s,
|
|
522
|
-
payload: t,
|
|
523
|
-
status: c,
|
|
524
|
-
queriesSent: l,
|
|
525
|
-
queriesPending: f.length,
|
|
526
|
-
subscribe: g,
|
|
527
|
-
abort: h
|
|
528
|
-
};
|
|
529
|
-
}
|
|
530
|
-
function v() {
|
|
531
|
-
c = "failed", p.forEach((e) => {
|
|
532
|
-
e(void 0, u);
|
|
533
|
-
});
|
|
534
|
-
}
|
|
535
|
-
function y() {
|
|
536
|
-
f.forEach((e) => {
|
|
537
|
-
e.status === "pending" && (e.status = "aborted");
|
|
538
|
-
}), f = [];
|
|
539
|
-
}
|
|
540
|
-
function b(t, n, r) {
|
|
541
|
-
let i = n !== "success";
|
|
542
|
-
switch (f = f.filter((e) => e !== t), c) {
|
|
543
|
-
case "pending": break;
|
|
544
|
-
case "failed":
|
|
545
|
-
if (i || !e.dataAfterTimeout) return;
|
|
546
|
-
break;
|
|
547
|
-
default: return;
|
|
548
|
-
}
|
|
549
|
-
if (n === "abort") {
|
|
550
|
-
u = r, v();
|
|
551
|
-
return;
|
|
552
|
-
}
|
|
553
|
-
if (i) {
|
|
554
|
-
u = r, f.length || (o.length ? x() : v());
|
|
555
|
-
return;
|
|
556
|
-
}
|
|
557
|
-
if (m(), y(), !e.random) {
|
|
558
|
-
let n = e.resources.indexOf(t.resource);
|
|
559
|
-
n !== -1 && n !== e.index && (e.index = n);
|
|
560
|
-
}
|
|
561
|
-
c = "completed", p.forEach((e) => {
|
|
562
|
-
e(r);
|
|
563
|
-
});
|
|
564
|
-
}
|
|
565
|
-
function x() {
|
|
566
|
-
if (c !== "pending") return;
|
|
567
|
-
m();
|
|
568
|
-
let r = o.shift();
|
|
569
|
-
if (r === void 0) {
|
|
570
|
-
if (f.length) {
|
|
571
|
-
d = setTimeout(() => {
|
|
572
|
-
m(), c === "pending" && (y(), v());
|
|
573
|
-
}, e.timeout);
|
|
574
|
-
return;
|
|
575
|
-
}
|
|
576
|
-
v();
|
|
577
|
-
return;
|
|
578
|
-
}
|
|
579
|
-
let i = {
|
|
580
|
-
status: "pending",
|
|
581
|
-
resource: r,
|
|
582
|
-
callback: (e, t) => {
|
|
583
|
-
b(i, e, t);
|
|
584
|
-
}
|
|
585
|
-
};
|
|
586
|
-
f.push(i), l++, d = setTimeout(x, e.rotate), n(r, t, i.callback);
|
|
587
|
-
}
|
|
588
|
-
return setTimeout(x), _;
|
|
589
|
-
}
|
|
590
|
-
function z(e) {
|
|
591
|
-
let t = {
|
|
592
|
-
...Te,
|
|
593
|
-
...e
|
|
594
|
-
}, n = [];
|
|
595
|
-
function r() {
|
|
596
|
-
n = n.filter((e) => e().status === "pending");
|
|
597
|
-
}
|
|
598
|
-
function i(e, i, a) {
|
|
599
|
-
let o = Ee(t, e, i, (e, t) => {
|
|
600
|
-
r(), a && a(e, t);
|
|
601
|
-
});
|
|
602
|
-
return n.push(o), o;
|
|
603
|
-
}
|
|
604
|
-
function a(e) {
|
|
605
|
-
return n.find((t) => e(t)) || null;
|
|
606
|
-
}
|
|
607
|
-
return {
|
|
608
|
-
query: i,
|
|
609
|
-
find: a,
|
|
610
|
-
setIndex: (e) => {
|
|
611
|
-
t.index = e;
|
|
612
|
-
},
|
|
613
|
-
getIndex: () => t.index,
|
|
614
|
-
cleanup: r
|
|
615
|
-
};
|
|
616
|
-
}
|
|
617
|
-
function B() {}
|
|
618
|
-
var V = /* @__PURE__ */ Object.create(null);
|
|
619
|
-
function De(e) {
|
|
620
|
-
if (!V[e]) {
|
|
621
|
-
let t = F(e);
|
|
622
|
-
if (!t) return;
|
|
623
|
-
V[e] = {
|
|
624
|
-
config: t,
|
|
625
|
-
redundancy: z(t)
|
|
626
|
-
};
|
|
627
|
-
}
|
|
628
|
-
return V[e];
|
|
629
|
-
}
|
|
630
|
-
function Oe(e, t, n) {
|
|
631
|
-
let r, i;
|
|
632
|
-
if (typeof e == "string") {
|
|
633
|
-
let t = A(e);
|
|
634
|
-
if (!t) return n(void 0, 424), B;
|
|
635
|
-
i = t.send;
|
|
636
|
-
let a = De(e);
|
|
637
|
-
a && (r = a.redundancy);
|
|
638
|
-
} else {
|
|
639
|
-
let t = j(e);
|
|
640
|
-
if (t) {
|
|
641
|
-
r = z(t);
|
|
642
|
-
let n = A(e.resources ? e.resources[0] : "");
|
|
643
|
-
n && (i = n.send);
|
|
644
|
-
}
|
|
645
|
-
}
|
|
646
|
-
return !r || !i ? (n(void 0, 424), B) : r.query(t, i, n)().abort;
|
|
647
|
-
}
|
|
648
|
-
function H() {}
|
|
649
|
-
function ke(e) {
|
|
650
|
-
e.iconsLoaderFlag || (e.iconsLoaderFlag = !0, setTimeout(() => {
|
|
651
|
-
e.iconsLoaderFlag = !1, xe(e);
|
|
652
|
-
}));
|
|
653
|
-
}
|
|
654
|
-
function U(e) {
|
|
655
|
-
let t = [], n = [];
|
|
656
|
-
return e.forEach((e) => {
|
|
657
|
-
(e.match(g) ? t : n).push(e);
|
|
658
|
-
}), {
|
|
659
|
-
valid: t,
|
|
660
|
-
invalid: n
|
|
661
|
-
};
|
|
662
|
-
}
|
|
663
|
-
function W(e, t, n) {
|
|
664
|
-
function r() {
|
|
665
|
-
let n = e.pendingIcons;
|
|
666
|
-
t.forEach((t) => {
|
|
667
|
-
n && n.delete(t), e.icons[t] || e.missing.add(t);
|
|
668
|
-
});
|
|
669
|
-
}
|
|
670
|
-
if (n && typeof n == "object") try {
|
|
671
|
-
if (!S(e, n).length) {
|
|
672
|
-
r();
|
|
673
|
-
return;
|
|
674
|
-
}
|
|
675
|
-
} catch (e) {
|
|
676
|
-
console.error(e);
|
|
677
|
-
}
|
|
678
|
-
r(), ke(e);
|
|
679
|
-
}
|
|
680
|
-
function G(e, t) {
|
|
681
|
-
e instanceof Promise ? e.then((e) => {
|
|
682
|
-
t(e);
|
|
683
|
-
}).catch(() => {
|
|
684
|
-
t(null);
|
|
685
|
-
}) : t(e);
|
|
686
|
-
}
|
|
687
|
-
function Ae(e, t) {
|
|
688
|
-
e.iconsToLoad ? e.iconsToLoad = e.iconsToLoad.concat(t).sort() : e.iconsToLoad = t, e.iconsQueueFlag || (e.iconsQueueFlag = !0, setTimeout(() => {
|
|
689
|
-
e.iconsQueueFlag = !1;
|
|
690
|
-
let { provider: t, prefix: n } = e, r = e.iconsToLoad;
|
|
691
|
-
if (delete e.iconsToLoad, !r || !r.length) return;
|
|
692
|
-
let i = e.loadIcon;
|
|
693
|
-
if (e.loadIcons && (r.length > 1 || !i)) {
|
|
694
|
-
G(e.loadIcons(r, n, t), (t) => {
|
|
695
|
-
W(e, r, t);
|
|
696
|
-
});
|
|
697
|
-
return;
|
|
698
|
-
}
|
|
699
|
-
if (i) {
|
|
700
|
-
r.forEach((r) => {
|
|
701
|
-
G(i(r, n, t), (t) => {
|
|
702
|
-
W(e, [r], t ? {
|
|
703
|
-
prefix: n,
|
|
704
|
-
icons: { [r]: t }
|
|
705
|
-
} : null);
|
|
706
|
-
});
|
|
707
|
-
});
|
|
708
|
-
return;
|
|
709
|
-
}
|
|
710
|
-
let { valid: a, invalid: o } = U(r);
|
|
711
|
-
if (o.length && W(e, o, null), !a.length) return;
|
|
712
|
-
let s = n.match(g) ? A(t) : null;
|
|
713
|
-
if (!s) {
|
|
714
|
-
W(e, a, null);
|
|
715
|
-
return;
|
|
716
|
-
}
|
|
717
|
-
s.prepare(t, n, a).forEach((n) => {
|
|
718
|
-
Oe(t, n, (t) => {
|
|
719
|
-
W(e, n.icons, t);
|
|
720
|
-
});
|
|
721
|
-
});
|
|
722
|
-
}));
|
|
723
|
-
}
|
|
724
|
-
var je = (e, t) => {
|
|
725
|
-
let n = be(we(e, !0, w()));
|
|
726
|
-
if (!n.pending.length) {
|
|
727
|
-
let e = !0;
|
|
728
|
-
return t && setTimeout(() => {
|
|
729
|
-
e && t(n.loaded, n.missing, n.pending, H);
|
|
730
|
-
}), () => {
|
|
731
|
-
e = !1;
|
|
732
|
-
};
|
|
733
|
-
}
|
|
734
|
-
let r = /* @__PURE__ */ Object.create(null), i = [], a, o;
|
|
735
|
-
return n.pending.forEach((e) => {
|
|
736
|
-
let { provider: t, prefix: n } = e;
|
|
737
|
-
if (n === o && t === a) return;
|
|
738
|
-
a = t, o = n, i.push(x(t, n));
|
|
739
|
-
let s = r[t] || (r[t] = /* @__PURE__ */ Object.create(null));
|
|
740
|
-
s[n] || (s[n] = []);
|
|
741
|
-
}), n.pending.forEach((e) => {
|
|
742
|
-
let { provider: t, prefix: n, name: i } = e, a = x(t, n), o = a.pendingIcons ||= /* @__PURE__ */ new Set();
|
|
743
|
-
o.has(i) || (o.add(i), r[t][n].push(i));
|
|
744
|
-
}), i.forEach((e) => {
|
|
745
|
-
let t = r[e.provider][e.prefix];
|
|
746
|
-
t.length && Ae(e, t);
|
|
747
|
-
}), t ? Ce(t, n, i) : H;
|
|
748
|
-
};
|
|
749
|
-
function Me(e, t) {
|
|
750
|
-
let n = { ...e };
|
|
751
|
-
for (let e in t) {
|
|
752
|
-
let r = t[e], i = typeof r;
|
|
753
|
-
e in E ? (r === null || r && (i === "string" || i === "number")) && (n[e] = r) : i === typeof n[e] && (n[e] = e === "rotate" ? r % 4 : r);
|
|
754
|
-
}
|
|
755
|
-
return n;
|
|
756
|
-
}
|
|
757
|
-
var Ne = /[\s,]+/;
|
|
758
|
-
function Pe(e, t) {
|
|
759
|
-
t.split(Ne).forEach((t) => {
|
|
760
|
-
switch (t.trim()) {
|
|
761
|
-
case "horizontal":
|
|
762
|
-
e.hFlip = !0;
|
|
763
|
-
break;
|
|
764
|
-
case "vertical":
|
|
765
|
-
e.vFlip = !0;
|
|
766
|
-
break;
|
|
767
|
-
}
|
|
768
|
-
});
|
|
769
|
-
}
|
|
770
|
-
function Fe(e, t = 0) {
|
|
771
|
-
let n = e.replace(/^-?[0-9.]*/, "");
|
|
772
|
-
function r(e) {
|
|
773
|
-
for (; e < 0;) e += 4;
|
|
774
|
-
return e % 4;
|
|
775
|
-
}
|
|
776
|
-
if (n === "") {
|
|
777
|
-
let t = parseInt(e);
|
|
778
|
-
return isNaN(t) ? 0 : r(t);
|
|
779
|
-
} else if (n !== e) {
|
|
780
|
-
let t = 0;
|
|
781
|
-
switch (n) {
|
|
782
|
-
case "%":
|
|
783
|
-
t = 25;
|
|
784
|
-
break;
|
|
785
|
-
case "deg": t = 90;
|
|
786
|
-
}
|
|
787
|
-
if (t) {
|
|
788
|
-
let i = parseFloat(e.slice(0, e.length - n.length));
|
|
789
|
-
return isNaN(i) ? 0 : (i /= t, i % 1 == 0 ? r(i) : 0);
|
|
790
|
-
}
|
|
791
|
-
}
|
|
792
|
-
return t;
|
|
793
|
-
}
|
|
794
|
-
function Ie(e, t) {
|
|
795
|
-
let n = e.indexOf("xlink:") === -1 ? "" : " xmlns:xlink=\"http://www.w3.org/1999/xlink\"";
|
|
796
|
-
for (let e in t) n += " " + e + "=\"" + t[e] + "\"";
|
|
797
|
-
return "<svg xmlns=\"http://www.w3.org/2000/svg\"" + n + ">" + e + "</svg>";
|
|
798
|
-
}
|
|
799
|
-
function Le(e) {
|
|
800
|
-
return e.replace(/"/g, "'").replace(/%/g, "%25").replace(/#/g, "%23").replace(/</g, "%3C").replace(/>/g, "%3E").replace(/\s+/g, " ");
|
|
801
|
-
}
|
|
802
|
-
function Re(e) {
|
|
803
|
-
return "data:image/svg+xml," + Le(e);
|
|
804
|
-
}
|
|
805
|
-
function ze(e) {
|
|
806
|
-
return "url(\"" + Re(e) + "\")";
|
|
807
|
-
}
|
|
808
|
-
var K;
|
|
809
|
-
function Be() {
|
|
810
|
-
try {
|
|
811
|
-
K = window.trustedTypes.createPolicy("iconify", { createHTML: (e) => e });
|
|
812
|
-
} catch {
|
|
813
|
-
K = null;
|
|
814
|
-
}
|
|
815
|
-
}
|
|
816
|
-
function Ve(e) {
|
|
817
|
-
return K === void 0 && Be(), K ? K.createHTML(e) : e;
|
|
818
|
-
}
|
|
819
|
-
var q = {
|
|
820
|
-
...D,
|
|
821
|
-
inline: !1
|
|
822
|
-
}, He = {
|
|
823
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
824
|
-
xmlnsXlink: "http://www.w3.org/1999/xlink",
|
|
825
|
-
"aria-hidden": !0,
|
|
826
|
-
role: "img"
|
|
827
|
-
}, Ue = { display: "inline-block" }, J = { backgroundColor: "currentColor" }, Y = { backgroundColor: "transparent" }, X = {
|
|
828
|
-
Image: "var(--svg)",
|
|
829
|
-
Repeat: "no-repeat",
|
|
830
|
-
Size: "100% 100%"
|
|
831
|
-
}, Z = {
|
|
832
|
-
WebkitMask: J,
|
|
833
|
-
mask: J,
|
|
834
|
-
background: Y
|
|
835
|
-
};
|
|
836
|
-
for (let e in Z) {
|
|
837
|
-
let t = Z[e];
|
|
838
|
-
for (let n in X) t[e + n] = X[n];
|
|
839
|
-
}
|
|
840
|
-
var We = {
|
|
841
|
-
...q,
|
|
842
|
-
inline: !0
|
|
843
|
-
};
|
|
844
|
-
function Q(e) {
|
|
845
|
-
return e + (e.match(/^[-0-9.]+$/) ? "px" : "");
|
|
846
|
-
}
|
|
847
|
-
var Ge = (t, n, r) => {
|
|
848
|
-
let i = n.inline ? We : q, a = Me(i, n), o = n.mode || "svg", s = {}, c = n.style || {}, l = { ...o === "svg" ? He : {} };
|
|
849
|
-
if (r) {
|
|
850
|
-
let e = _(r, !1, !0);
|
|
851
|
-
if (e) {
|
|
852
|
-
let t = ["iconify"];
|
|
853
|
-
for (let n of ["provider", "prefix"]) e[n] && t.push("iconify--" + e[n]);
|
|
854
|
-
l.className = t.join(" ");
|
|
855
|
-
}
|
|
856
|
-
}
|
|
857
|
-
for (let e in n) {
|
|
858
|
-
let t = n[e];
|
|
859
|
-
if (t !== void 0) switch (e) {
|
|
860
|
-
case "icon":
|
|
861
|
-
case "style":
|
|
862
|
-
case "children":
|
|
863
|
-
case "onLoad":
|
|
864
|
-
case "mode":
|
|
865
|
-
case "ssr": break;
|
|
866
|
-
case "_ref":
|
|
867
|
-
l.ref = t;
|
|
868
|
-
break;
|
|
869
|
-
case "className":
|
|
870
|
-
l[e] = (l[e] ? l[e] + " " : "") + t;
|
|
871
|
-
break;
|
|
872
|
-
case "inline":
|
|
873
|
-
case "hFlip":
|
|
874
|
-
case "vFlip":
|
|
875
|
-
a[e] = t === !0 || t === "true" || t === 1;
|
|
876
|
-
break;
|
|
877
|
-
case "flip":
|
|
878
|
-
typeof t == "string" && Pe(a, t);
|
|
879
|
-
break;
|
|
880
|
-
case "color":
|
|
881
|
-
s.color = t;
|
|
882
|
-
break;
|
|
883
|
-
case "rotate":
|
|
884
|
-
typeof t == "string" ? a[e] = Fe(t) : typeof t == "number" && (a[e] = t);
|
|
885
|
-
break;
|
|
886
|
-
case "ariaHidden":
|
|
887
|
-
case "aria-hidden":
|
|
888
|
-
t !== !0 && t !== "true" && delete l["aria-hidden"];
|
|
889
|
-
break;
|
|
890
|
-
default: i[e] === void 0 && (l[e] = t);
|
|
891
|
-
}
|
|
892
|
-
}
|
|
893
|
-
let u = le(t, a), d = u.attributes;
|
|
894
|
-
if (a.inline && (s.verticalAlign = "-0.125em"), o === "svg") {
|
|
895
|
-
l.style = {
|
|
896
|
-
...s,
|
|
897
|
-
...c
|
|
898
|
-
}, Object.assign(l, d);
|
|
899
|
-
let t = 0, r = n.id;
|
|
900
|
-
return typeof r == "string" && (r = r.replace(/-/g, "_")), l.dangerouslySetInnerHTML = { __html: Ve(pe(u.body, r ? () => r + "ID" + t++ : "iconifyReact")) }, e("svg", l);
|
|
901
|
-
}
|
|
902
|
-
let { body: f, width: p, height: m } = t, h = o === "mask" || (o === "bg" ? !1 : f.indexOf("currentColor") !== -1), g = Ie(f, {
|
|
903
|
-
...d,
|
|
904
|
-
width: p + "",
|
|
905
|
-
height: m + ""
|
|
906
|
-
});
|
|
907
|
-
return l.style = {
|
|
908
|
-
...s,
|
|
909
|
-
"--svg": ze(g),
|
|
910
|
-
width: Q(d.width),
|
|
911
|
-
height: Q(d.height),
|
|
912
|
-
...Ue,
|
|
913
|
-
...h ? J : Y,
|
|
914
|
-
...c
|
|
915
|
-
}, e("span", l);
|
|
916
|
-
};
|
|
917
|
-
if (w(!0), me("", ye), typeof document < "u" && typeof window < "u") {
|
|
918
|
-
let e = window;
|
|
919
|
-
if (e.IconifyPreload !== void 0) {
|
|
920
|
-
let t = e.IconifyPreload, n = "Invalid IconifyPreload syntax.";
|
|
921
|
-
typeof t == "object" && t && (t instanceof Array ? t : [t]).forEach((e) => {
|
|
922
|
-
try {
|
|
923
|
-
(typeof e != "object" || !e || e instanceof Array || typeof e.icons != "object" || typeof e.prefix != "string" || !ne(e)) && console.error(n);
|
|
924
|
-
} catch {
|
|
925
|
-
console.error(n);
|
|
926
|
-
}
|
|
927
|
-
});
|
|
928
|
-
}
|
|
929
|
-
if (e.IconifyProviders !== void 0) {
|
|
930
|
-
let t = e.IconifyProviders;
|
|
931
|
-
if (typeof t == "object" && t) for (let e in t) {
|
|
932
|
-
let n = "IconifyProviders[" + e + "] is invalid.";
|
|
933
|
-
try {
|
|
934
|
-
let r = t[e];
|
|
935
|
-
if (typeof r != "object" || !r || r.resources === void 0) continue;
|
|
936
|
-
he(e, r) || console.error(n);
|
|
937
|
-
} catch {
|
|
938
|
-
console.error(n);
|
|
939
|
-
}
|
|
940
|
-
}
|
|
941
|
-
}
|
|
942
|
-
}
|
|
943
|
-
function $(t) {
|
|
944
|
-
let [i, a] = r(!!t.ssr), [s, c] = r({});
|
|
945
|
-
function l(e) {
|
|
946
|
-
if (e) {
|
|
947
|
-
let e = t.icon;
|
|
948
|
-
if (typeof e == "object") return {
|
|
949
|
-
name: "",
|
|
950
|
-
data: e
|
|
951
|
-
};
|
|
952
|
-
let n = T(e);
|
|
953
|
-
if (n) return {
|
|
954
|
-
name: e,
|
|
955
|
-
data: n
|
|
956
|
-
};
|
|
957
|
-
}
|
|
958
|
-
return { name: "" };
|
|
959
|
-
}
|
|
960
|
-
let [u, d] = r(l(!!t.ssr));
|
|
961
|
-
function f() {
|
|
962
|
-
let e = s.callback;
|
|
963
|
-
e && (e(), c({}));
|
|
964
|
-
}
|
|
965
|
-
function p(e) {
|
|
966
|
-
if (JSON.stringify(u) !== JSON.stringify(e)) return f(), d(e), !0;
|
|
967
|
-
}
|
|
968
|
-
function m() {
|
|
969
|
-
var e;
|
|
970
|
-
let n = t.icon;
|
|
971
|
-
if (typeof n == "object") {
|
|
972
|
-
p({
|
|
973
|
-
name: "",
|
|
974
|
-
data: n
|
|
975
|
-
});
|
|
976
|
-
return;
|
|
977
|
-
}
|
|
978
|
-
let r = T(n);
|
|
979
|
-
p({
|
|
980
|
-
name: n,
|
|
981
|
-
data: r
|
|
982
|
-
}) && (r === void 0 ? c({ callback: je([n], m) }) : r && ((e = t.onLoad) == null || e.call(t, n)));
|
|
983
|
-
}
|
|
984
|
-
n(() => (a(!0), f), []), n(() => {
|
|
985
|
-
i && m();
|
|
986
|
-
}, [t.icon, i]);
|
|
987
|
-
let { name: h, data: g } = u;
|
|
988
|
-
return g ? Ge({
|
|
989
|
-
...o,
|
|
990
|
-
...g
|
|
991
|
-
}, t, h) : t.children ? t.children : t.fallback ? t.fallback : e("span", {});
|
|
992
|
-
}
|
|
993
|
-
var Ke = t((e, t) => $({
|
|
994
|
-
...e,
|
|
995
|
-
_ref: t
|
|
996
|
-
}));
|
|
997
|
-
t((e, t) => $({
|
|
998
|
-
inline: !0,
|
|
999
|
-
...e,
|
|
1000
|
-
_ref: t
|
|
1001
|
-
}));
|
|
1002
|
-
//#endregion
|
|
1003
|
-
export { Ke as Icon };
|
|
1004
|
-
|
|
1005
|
-
//# sourceMappingURL=iconify.js.map
|