se-design 0.0.117 → 0.0.119
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/assets/icons/all-space.svg +12 -0
- package/dist/assets/icons/checked-circle.svg +8 -6
- package/dist/assets/icons/csv.svg +20 -0
- package/dist/assets/icons/gmail.svg +7 -0
- package/dist/assets/icons/hashtag.svg +6 -0
- package/dist/assets/icons/info.svg +10 -6
- package/dist/assets/icons/onedrive.svg +6 -0
- package/dist/assets/icons/outlook.svg +39 -0
- package/dist/assets/icons/shipment-private.svg +7 -0
- package/dist/assets/style.css +1 -1
- package/dist/components/DatePicker/index.d.ts +17 -0
- package/dist/components/HamburgerMenu/index.d.ts +1 -0
- package/dist/components/Icon/index.d.ts +1 -0
- package/dist/components/MenuItem/index.d.ts +1 -0
- package/dist/components/RadioGroup/index.d.ts +1 -0
- package/dist/components/SearchBox/index.d.ts +3 -0
- package/dist/components/SidebarOverlay/index.d.ts +1 -1
- package/dist/components/index.d.ts +1 -0
- package/dist/index.js +28 -26
- package/dist/index.js.map +1 -1
- package/dist/index100.js +1 -1
- package/dist/index100.js.map +1 -1
- package/dist/index101.js +1 -1
- package/dist/index101.js.map +1 -1
- package/dist/index102.js +1 -1
- package/dist/index102.js.map +1 -1
- package/dist/index103.js +1 -1
- package/dist/index103.js.map +1 -1
- package/dist/index104.js +1 -1
- package/dist/index104.js.map +1 -1
- package/dist/index105.js +1 -1
- package/dist/index105.js.map +1 -1
- package/dist/index106.js +2 -2
- package/dist/index106.js.map +1 -1
- package/dist/index107.js +1 -1
- package/dist/index107.js.map +1 -1
- package/dist/index108.js +2 -2
- package/dist/index108.js.map +1 -1
- package/dist/index109.js +1 -1
- package/dist/index109.js.map +1 -1
- package/dist/index110.js +1 -1
- package/dist/index110.js.map +1 -1
- package/dist/index111.js +1 -1
- package/dist/index111.js.map +1 -1
- package/dist/index112.js +1 -1
- package/dist/index112.js.map +1 -1
- package/dist/index113.js +1 -1
- package/dist/index113.js.map +1 -1
- package/dist/index114.js +2 -2
- package/dist/index114.js.map +1 -1
- package/dist/index115.js +1 -1
- package/dist/index115.js.map +1 -1
- package/dist/index116.js +1 -1
- package/dist/index116.js.map +1 -1
- package/dist/index117.js +2 -149
- package/dist/index117.js.map +1 -1
- package/dist/index118.js +5 -0
- package/dist/index118.js.map +1 -0
- package/dist/index119.js +5 -0
- package/dist/index119.js.map +1 -0
- package/dist/index120.js +5 -0
- package/dist/index120.js.map +1 -0
- package/dist/index121.js +5 -0
- package/dist/index121.js.map +1 -0
- package/dist/index122.js +5 -0
- package/dist/index122.js.map +1 -0
- package/dist/index123.js +5 -0
- package/dist/index123.js.map +1 -0
- package/dist/index124.js +5 -0
- package/dist/index124.js.map +1 -0
- package/dist/index125.js +152 -0
- package/dist/index125.js.map +1 -0
- package/dist/index136.js +12 -1233
- package/dist/index136.js.map +1 -1
- package/dist/index144.js +1232 -37
- package/dist/index144.js.map +1 -1
- package/dist/index146.js +9 -7
- package/dist/index146.js.map +1 -1
- package/dist/index147.js +9 -326
- package/dist/index147.js.map +1 -1
- package/dist/index148.js +4 -49
- package/dist/index148.js.map +1 -1
- package/dist/index149.js +170 -2
- package/dist/index149.js.map +1 -1
- package/dist/index15.js +21 -17
- package/dist/index15.js.map +1 -1
- package/dist/index150.js +11 -76
- package/dist/index150.js.map +1 -1
- package/dist/index151.js +5 -92
- package/dist/index151.js.map +1 -1
- package/dist/index152.js +5 -51
- package/dist/index152.js.map +1 -1
- package/dist/index153.js +37 -7
- package/dist/index153.js.map +1 -1
- package/dist/index154.js +2 -5
- package/dist/index154.js.map +1 -1
- package/dist/index155.js +7 -51
- package/dist/index155.js.map +1 -1
- package/dist/index156.js +327 -2
- package/dist/index156.js.map +1 -1
- package/dist/index157.js +50 -2
- package/dist/index157.js.map +1 -1
- package/dist/index158.js +5 -0
- package/dist/index158.js.map +1 -0
- package/dist/index159.js +79 -0
- package/dist/index159.js.map +1 -0
- package/dist/index160.js +96 -0
- package/dist/index160.js.map +1 -0
- package/dist/index161.js +55 -0
- package/dist/index161.js.map +1 -0
- package/dist/index162.js +11 -0
- package/dist/index162.js.map +1 -0
- package/dist/index163.js +8 -0
- package/dist/index163.js.map +1 -0
- package/dist/index164.js +55 -0
- package/dist/index164.js.map +1 -0
- package/dist/index165.js +5 -0
- package/dist/index165.js.map +1 -0
- package/dist/index166.js +5 -0
- package/dist/index166.js.map +1 -0
- package/dist/index19.js +9 -8
- package/dist/index19.js.map +1 -1
- package/dist/index26.js +54 -39
- package/dist/index26.js.map +1 -1
- package/dist/index31.js +27 -27
- package/dist/index31.js.map +1 -1
- package/dist/index32.js +9 -9
- package/dist/index32.js.map +1 -1
- package/dist/index37.js +46 -38
- package/dist/index37.js.map +1 -1
- package/dist/index42.js +36 -36
- package/dist/index42.js.map +1 -1
- package/dist/index43.js +1 -1
- package/dist/index48.js +292 -2
- package/dist/index48.js.map +1 -1
- package/dist/index49.js +1 -1
- package/dist/index49.js.map +1 -1
- package/dist/index5.js +133 -118
- package/dist/index5.js.map +1 -1
- package/dist/index50.js +1 -1
- package/dist/index50.js.map +1 -1
- package/dist/index51.js +1 -1
- package/dist/index51.js.map +1 -1
- package/dist/index52.js +1 -1
- package/dist/index52.js.map +1 -1
- package/dist/index53.js +1 -1
- package/dist/index53.js.map +1 -1
- package/dist/index54.js +1 -1
- package/dist/index54.js.map +1 -1
- package/dist/index55.js +1 -1
- package/dist/index55.js.map +1 -1
- package/dist/index56.js +1 -1
- package/dist/index56.js.map +1 -1
- package/dist/index57.js +1 -1
- package/dist/index57.js.map +1 -1
- package/dist/index58.js +1 -1
- package/dist/index58.js.map +1 -1
- package/dist/index59.js +1 -1
- package/dist/index59.js.map +1 -1
- package/dist/index60.js +1 -1
- package/dist/index60.js.map +1 -1
- package/dist/index61.js +2 -2
- package/dist/index61.js.map +1 -1
- package/dist/index62.js +1 -1
- package/dist/index62.js.map +1 -1
- package/dist/index63.js +1 -1
- package/dist/index63.js.map +1 -1
- package/dist/index64.js +1 -1
- package/dist/index64.js.map +1 -1
- package/dist/index65.js +1 -1
- package/dist/index65.js.map +1 -1
- package/dist/index66.js +2 -2
- package/dist/index66.js.map +1 -1
- package/dist/index67.js +1 -1
- package/dist/index67.js.map +1 -1
- package/dist/index68.js +2 -2
- package/dist/index68.js.map +1 -1
- package/dist/index69.js +2 -2
- package/dist/index69.js.map +1 -1
- package/dist/index70.js +1 -1
- package/dist/index70.js.map +1 -1
- package/dist/index71.js +1 -1
- package/dist/index71.js.map +1 -1
- package/dist/index72.js +2 -2
- package/dist/index72.js.map +1 -1
- package/dist/index73.js +1 -1
- package/dist/index73.js.map +1 -1
- package/dist/index74.js +2 -2
- package/dist/index74.js.map +1 -1
- package/dist/index75.js +2 -2
- package/dist/index75.js.map +1 -1
- package/dist/index76.js +1 -1
- package/dist/index76.js.map +1 -1
- package/dist/index77.js +2 -2
- package/dist/index77.js.map +1 -1
- package/dist/index78.js +2 -2
- package/dist/index78.js.map +1 -1
- package/dist/index79.js +1 -1
- package/dist/index79.js.map +1 -1
- package/dist/index80.js +1 -1
- package/dist/index80.js.map +1 -1
- package/dist/index81.js +1 -1
- package/dist/index81.js.map +1 -1
- package/dist/index82.js +1 -1
- package/dist/index82.js.map +1 -1
- package/dist/index83.js +2 -2
- package/dist/index83.js.map +1 -1
- package/dist/index84.js +1 -1
- package/dist/index84.js.map +1 -1
- package/dist/index85.js +2 -2
- package/dist/index85.js.map +1 -1
- package/dist/index86.js +1 -1
- package/dist/index86.js.map +1 -1
- package/dist/index87.js +1 -1
- package/dist/index87.js.map +1 -1
- package/dist/index88.js +1 -1
- package/dist/index88.js.map +1 -1
- package/dist/index89.js +1 -1
- package/dist/index89.js.map +1 -1
- package/dist/index9.js +9 -9
- package/dist/index9.js.map +1 -1
- package/dist/index90.js +2 -2
- package/dist/index90.js.map +1 -1
- package/dist/index91.js +2 -2
- package/dist/index91.js.map +1 -1
- package/dist/index92.js +1 -1
- package/dist/index92.js.map +1 -1
- package/dist/index93.js +1 -1
- package/dist/index93.js.map +1 -1
- package/dist/index94.js +2 -2
- package/dist/index94.js.map +1 -1
- package/dist/index95.js +2 -2
- package/dist/index95.js.map +1 -1
- package/dist/index96.js +1 -1
- package/dist/index96.js.map +1 -1
- package/dist/index97.js +2 -2
- package/dist/index97.js.map +1 -1
- package/dist/index98.js +2 -2
- package/dist/index98.js.map +1 -1
- package/dist/index99.js +1 -1
- package/dist/index99.js.map +1 -1
- package/package.json +1 -1
- package/dist/index128.js +0 -15
- package/dist/index128.js.map +0 -1
- package/dist/index137.js +0 -13
- package/dist/index137.js.map +0 -1
- package/dist/index138.js +0 -13
- package/dist/index138.js.map +0 -1
- package/dist/index139.js +0 -8
- package/dist/index139.js.map +0 -1
- package/dist/index140.js +0 -173
- package/dist/index140.js.map +0 -1
- package/dist/index141.js +0 -14
- package/dist/index141.js.map +0 -1
- package/dist/index142.js +0 -9
- package/dist/index142.js.map +0 -1
- package/dist/index143.js +0 -9
- package/dist/index143.js.map +0 -1
- package/dist/index145.js +0 -5
- package/dist/index145.js.map +0 -1
package/dist/index149.js
CHANGED
@@ -1,5 +1,173 @@
|
|
1
|
-
|
1
|
+
import { __spreadArray as D } from "./index152.js";
|
2
|
+
import { parse as fe } from "./index153.js";
|
3
|
+
var g = /* @__PURE__ */ new Map(), Y = function(e) {
|
4
|
+
return e.cloneNode(!0);
|
5
|
+
}, z = function() {
|
6
|
+
return window.location.protocol === "file:";
|
7
|
+
}, Z = function(e, o, n) {
|
8
|
+
var t = new XMLHttpRequest();
|
9
|
+
t.onreadystatechange = function() {
|
10
|
+
try {
|
11
|
+
if (!/\.svg/i.test(e) && t.readyState === 2) {
|
12
|
+
var u = t.getResponseHeader("Content-Type");
|
13
|
+
if (!u)
|
14
|
+
throw new Error("Content type not found");
|
15
|
+
var i = fe(u).type;
|
16
|
+
if (!(i === "image/svg+xml" || i === "text/plain"))
|
17
|
+
throw new Error("Invalid content type: ".concat(i));
|
18
|
+
}
|
19
|
+
if (t.readyState === 4) {
|
20
|
+
if (t.status === 404 || t.responseXML === null)
|
21
|
+
throw new Error(z() ? "Note: SVG injection ajax calls do not work locally without adjusting security settings in your browser. Or consider using a local webserver." : "Unable to load SVG file: " + e);
|
22
|
+
if (t.status === 200 || z() && t.status === 0)
|
23
|
+
n(null, t);
|
24
|
+
else
|
25
|
+
throw new Error("There was a problem injecting the SVG: " + t.status + " " + t.statusText);
|
26
|
+
}
|
27
|
+
} catch (a) {
|
28
|
+
if (t.abort(), a instanceof Error)
|
29
|
+
n(a, t);
|
30
|
+
else
|
31
|
+
throw a;
|
32
|
+
}
|
33
|
+
}, t.open("GET", e), t.withCredentials = o, t.overrideMimeType && t.overrideMimeType("text/xml"), t.send();
|
34
|
+
}, p = {}, B = function(e, o) {
|
35
|
+
p[e] = p[e] || [], p[e].push(o);
|
36
|
+
}, se = function(e) {
|
37
|
+
for (var o = function(i, a) {
|
38
|
+
setTimeout(function() {
|
39
|
+
if (Array.isArray(p[e])) {
|
40
|
+
var f = g.get(e), v = p[e][i];
|
41
|
+
f instanceof SVGSVGElement && v(null, Y(f)), f instanceof Error && v(f), i === p[e].length - 1 && delete p[e];
|
42
|
+
}
|
43
|
+
}, 0);
|
44
|
+
}, n = 0, t = p[e].length; n < t; n++)
|
45
|
+
o(n);
|
46
|
+
}, le = function(e, o, n) {
|
47
|
+
if (g.has(e)) {
|
48
|
+
var t = g.get(e);
|
49
|
+
if (t === void 0) {
|
50
|
+
B(e, n);
|
51
|
+
return;
|
52
|
+
}
|
53
|
+
if (t instanceof SVGSVGElement) {
|
54
|
+
n(null, Y(t));
|
55
|
+
return;
|
56
|
+
}
|
57
|
+
}
|
58
|
+
g.set(e, void 0), B(e, n), Z(e, o, function(u, i) {
|
59
|
+
var a;
|
60
|
+
u ? g.set(e, u) : ((a = i.responseXML) === null || a === void 0 ? void 0 : a.documentElement) instanceof SVGSVGElement && g.set(e, i.responseXML.documentElement), se(e);
|
61
|
+
});
|
62
|
+
}, ce = function(e, o, n) {
|
63
|
+
Z(e, o, function(t, u) {
|
64
|
+
var i;
|
65
|
+
t ? n(t) : ((i = u.responseXML) === null || i === void 0 ? void 0 : i.documentElement) instanceof SVGSVGElement && n(null, u.responseXML.documentElement);
|
66
|
+
});
|
67
|
+
}, de = 0, pe = function() {
|
68
|
+
return ++de;
|
69
|
+
}, l = [], J = {}, ve = "http://www.w3.org/2000/svg", F = "http://www.w3.org/1999/xlink", K = function(e, o, n, t, u, i, a) {
|
70
|
+
var f = e.getAttribute("data-src") || e.getAttribute("src");
|
71
|
+
if (!f) {
|
72
|
+
a(new Error("Invalid data-src or src attribute"));
|
73
|
+
return;
|
74
|
+
}
|
75
|
+
if (l.indexOf(e) !== -1) {
|
76
|
+
l.splice(l.indexOf(e), 1), e = null;
|
77
|
+
return;
|
78
|
+
}
|
79
|
+
l.push(e), e.setAttribute("src", "");
|
80
|
+
var v = t ? le : ce;
|
81
|
+
v(f, u, function(j, r) {
|
82
|
+
if (!r) {
|
83
|
+
l.splice(l.indexOf(e), 1), e = null, a(j);
|
84
|
+
return;
|
85
|
+
}
|
86
|
+
var w = e.getAttribute("id");
|
87
|
+
w && r.setAttribute("id", w);
|
88
|
+
var S = e.getAttribute("title");
|
89
|
+
S && r.setAttribute("title", S);
|
90
|
+
var E = e.getAttribute("width");
|
91
|
+
E && r.setAttribute("width", E);
|
92
|
+
var y = e.getAttribute("height");
|
93
|
+
y && r.setAttribute("height", y);
|
94
|
+
var G = Array.from(new Set(D(D(D([], (r.getAttribute("class") || "").split(" "), !0), ["injected-svg"], !1), (e.getAttribute("class") || "").split(" "), !0))).join(" ").trim();
|
95
|
+
r.setAttribute("class", G);
|
96
|
+
var b = e.getAttribute("style");
|
97
|
+
b && r.setAttribute("style", b), r.setAttribute("data-src", f);
|
98
|
+
var R = [].filter.call(e.attributes, function(s) {
|
99
|
+
return /^data-\w[\w-]*$/.test(s.name);
|
100
|
+
});
|
101
|
+
if (Array.prototype.forEach.call(R, function(s) {
|
102
|
+
s.name && s.value && r.setAttribute(s.name, s.value);
|
103
|
+
}), n) {
|
104
|
+
var h = {
|
105
|
+
clipPath: ["clip-path"],
|
106
|
+
"color-profile": ["color-profile"],
|
107
|
+
cursor: ["cursor"],
|
108
|
+
filter: ["filter"],
|
109
|
+
linearGradient: ["fill", "stroke"],
|
110
|
+
marker: ["marker", "marker-start", "marker-mid", "marker-end"],
|
111
|
+
mask: ["mask"],
|
112
|
+
path: [],
|
113
|
+
pattern: ["fill", "stroke"],
|
114
|
+
radialGradient: ["fill", "stroke"]
|
115
|
+
}, C, d, m, T, k;
|
116
|
+
Object.keys(h).forEach(function(s) {
|
117
|
+
C = s, m = h[s], d = r.querySelectorAll(C + "[id]");
|
118
|
+
for (var ne = function(I, me) {
|
119
|
+
T = d[I].id, k = T + "-" + pe();
|
120
|
+
var M;
|
121
|
+
Array.prototype.forEach.call(m, function(W) {
|
122
|
+
M = r.querySelectorAll("[" + W + '*="' + T + '"]');
|
123
|
+
for (var O = 0, ue = M.length; O < ue; O++) {
|
124
|
+
var $ = M[O].getAttribute(W);
|
125
|
+
$ && !$.match(new RegExp('url\\("?#' + T + '"?\\)')) || M[O].setAttribute(W, "url(#" + k + ")");
|
126
|
+
}
|
127
|
+
});
|
128
|
+
for (var U = r.querySelectorAll("[*|href]"), H = [], N = 0, ae = U.length; N < ae; N++) {
|
129
|
+
var P = U[N].getAttributeNS(F, "href");
|
130
|
+
P && P.toString() === "#" + d[I].id && H.push(U[N]);
|
131
|
+
}
|
132
|
+
for (var Q = 0, oe = H.length; Q < oe; Q++)
|
133
|
+
H[Q].setAttributeNS(F, "href", "#" + k);
|
134
|
+
d[I].id = k;
|
135
|
+
}, _ = 0, ie = d.length; _ < ie; _++)
|
136
|
+
ne(_);
|
137
|
+
});
|
138
|
+
}
|
139
|
+
r.removeAttribute("xmlns:a");
|
140
|
+
for (var x = r.querySelectorAll("script"), L = [], V, q, A = 0, ee = x.length; A < ee; A++)
|
141
|
+
q = x[A].getAttribute("type"), (!q || q === "application/ecmascript" || q === "application/javascript" || q === "text/javascript") && (V = x[A].innerText || x[A].textContent, V && L.push(V), r.removeChild(x[A]));
|
142
|
+
if (L.length > 0 && (o === "always" || o === "once" && !J[f])) {
|
143
|
+
for (var X = 0, te = L.length; X < te; X++)
|
144
|
+
new Function(L[X])(window);
|
145
|
+
J[f] = !0;
|
146
|
+
}
|
147
|
+
var re = r.querySelectorAll("style");
|
148
|
+
if (Array.prototype.forEach.call(re, function(s) {
|
149
|
+
s.textContent += "";
|
150
|
+
}), r.setAttribute("xmlns", ve), r.setAttribute("xmlns:xlink", F), i(r), !e.parentNode) {
|
151
|
+
l.splice(l.indexOf(e), 1), e = null, a(new Error("Parent node is null"));
|
152
|
+
return;
|
153
|
+
}
|
154
|
+
e.parentNode.replaceChild(r, e), l.splice(l.indexOf(e), 1), e = null, a(null, r);
|
155
|
+
});
|
156
|
+
}, we = function(e, o) {
|
157
|
+
var n = o === void 0 ? {} : o, t = n.afterAll, u = t === void 0 ? function() {
|
158
|
+
} : t, i = n.afterEach, a = i === void 0 ? function() {
|
159
|
+
} : i, f = n.beforeEach, v = f === void 0 ? function() {
|
160
|
+
} : f, j = n.cacheRequests, r = j === void 0 ? !0 : j, w = n.evalScripts, S = w === void 0 ? "never" : w, E = n.httpRequestWithCredentials, y = E === void 0 ? !1 : E, G = n.renumerateIRIElements, b = G === void 0 ? !0 : G;
|
161
|
+
if (e && "length" in e)
|
162
|
+
for (var R = 0, h = 0, C = e.length; h < C; h++)
|
163
|
+
K(e[h], S, b, r, y, v, function(d, m) {
|
164
|
+
a(d, m), e && "length" in e && e.length === ++R && u(R);
|
165
|
+
});
|
166
|
+
else e ? K(e, S, b, r, y, v, function(d, m) {
|
167
|
+
a(d, m), u(1), e = null;
|
168
|
+
}) : u(0);
|
169
|
+
};
|
2
170
|
export {
|
3
|
-
|
171
|
+
we as SVGInjector
|
4
172
|
};
|
5
173
|
//# sourceMappingURL=index149.js.map
|
package/dist/index149.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index149.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
1
|
+
{"version":3,"file":"index149.js","sources":["../node_modules/@tanem/svg-injector/dist/svg-injector.esm.js"],"sourcesContent":["import { __spreadArray } from 'tslib';\nimport { parse } from 'content-type';\n\nvar cache = new Map();\n\nvar cloneSvg = function cloneSvg(sourceSvg) {\n return sourceSvg.cloneNode(true);\n};\n\nvar isLocal = function isLocal() {\n return window.location.protocol === 'file:';\n};\n\nvar makeAjaxRequest = function makeAjaxRequest(url, httpRequestWithCredentials, callback) {\n var httpRequest = new XMLHttpRequest();\n httpRequest.onreadystatechange = function () {\n try {\n if (!/\\.svg/i.test(url) && httpRequest.readyState === 2) {\n var contentType = httpRequest.getResponseHeader('Content-Type');\n if (!contentType) {\n throw new Error('Content type not found');\n }\n var type = parse(contentType).type;\n if (!(type === 'image/svg+xml' || type === 'text/plain')) {\n throw new Error(\"Invalid content type: \".concat(type));\n }\n }\n if (httpRequest.readyState === 4) {\n if (httpRequest.status === 404 || httpRequest.responseXML === null) {\n throw new Error(isLocal() ? 'Note: SVG injection ajax calls do not work locally without ' + 'adjusting security settings in your browser. Or consider ' + 'using a local webserver.' : 'Unable to load SVG file: ' + url);\n }\n if (httpRequest.status === 200 || isLocal() && httpRequest.status === 0) {\n callback(null, httpRequest);\n } else {\n throw new Error('There was a problem injecting the SVG: ' + httpRequest.status + ' ' + httpRequest.statusText);\n }\n }\n } catch (error) {\n httpRequest.abort();\n if (error instanceof Error) {\n callback(error, httpRequest);\n } else {\n throw error;\n }\n }\n };\n httpRequest.open('GET', url);\n httpRequest.withCredentials = httpRequestWithCredentials;\n if (httpRequest.overrideMimeType) {\n httpRequest.overrideMimeType('text/xml');\n }\n httpRequest.send();\n};\n\nvar requestQueue = {};\nvar queueRequest = function queueRequest(url, callback) {\n requestQueue[url] = requestQueue[url] || [];\n requestQueue[url].push(callback);\n};\nvar processRequestQueue = function processRequestQueue(url) {\n var _loop_1 = function _loop_1(i, len) {\n setTimeout(function () {\n if (Array.isArray(requestQueue[url])) {\n var cacheValue = cache.get(url);\n var callback = requestQueue[url][i];\n if (cacheValue instanceof SVGSVGElement) {\n callback(null, cloneSvg(cacheValue));\n }\n if (cacheValue instanceof Error) {\n callback(cacheValue);\n }\n if (i === requestQueue[url].length - 1) {\n delete requestQueue[url];\n }\n }\n }, 0);\n };\n for (var i = 0, len = requestQueue[url].length; i < len; i++) {\n _loop_1(i);\n }\n};\n\nvar loadSvgCached = function loadSvgCached(url, httpRequestWithCredentials, callback) {\n if (cache.has(url)) {\n var cacheValue = cache.get(url);\n if (cacheValue === undefined) {\n queueRequest(url, callback);\n return;\n }\n if (cacheValue instanceof SVGSVGElement) {\n callback(null, cloneSvg(cacheValue));\n return;\n }\n }\n cache.set(url, undefined);\n queueRequest(url, callback);\n makeAjaxRequest(url, httpRequestWithCredentials, function (error, httpRequest) {\n var _a;\n if (error) {\n cache.set(url, error);\n } else if (((_a = httpRequest.responseXML) === null || _a === void 0 ? void 0 : _a.documentElement) instanceof SVGSVGElement) {\n cache.set(url, httpRequest.responseXML.documentElement);\n }\n processRequestQueue(url);\n });\n};\n\nvar loadSvgUncached = function loadSvgUncached(url, httpRequestWithCredentials, callback) {\n makeAjaxRequest(url, httpRequestWithCredentials, function (error, httpRequest) {\n var _a;\n if (error) {\n callback(error);\n } else if (((_a = httpRequest.responseXML) === null || _a === void 0 ? void 0 : _a.documentElement) instanceof SVGSVGElement) {\n callback(null, httpRequest.responseXML.documentElement);\n }\n });\n};\n\nvar idCounter = 0;\nvar uniqueId = function uniqueId() {\n return ++idCounter;\n};\n\nvar injectedElements = [];\nvar ranScripts = {};\nvar svgNamespace = 'http://www.w3.org/2000/svg';\nvar xlinkNamespace = 'http://www.w3.org/1999/xlink';\nvar injectElement = function injectElement(el, evalScripts, renumerateIRIElements, cacheRequests, httpRequestWithCredentials, beforeEach, callback) {\n var elUrl = el.getAttribute('data-src') || el.getAttribute('src');\n if (!elUrl) {\n callback(new Error('Invalid data-src or src attribute'));\n return;\n }\n if (injectedElements.indexOf(el) !== -1) {\n injectedElements.splice(injectedElements.indexOf(el), 1);\n el = null;\n return;\n }\n injectedElements.push(el);\n el.setAttribute('src', '');\n var loadSvg = cacheRequests ? loadSvgCached : loadSvgUncached;\n loadSvg(elUrl, httpRequestWithCredentials, function (error, svg) {\n if (!svg) {\n injectedElements.splice(injectedElements.indexOf(el), 1);\n el = null;\n callback(error);\n return;\n }\n var elId = el.getAttribute('id');\n if (elId) {\n svg.setAttribute('id', elId);\n }\n var elTitle = el.getAttribute('title');\n if (elTitle) {\n svg.setAttribute('title', elTitle);\n }\n var elWidth = el.getAttribute('width');\n if (elWidth) {\n svg.setAttribute('width', elWidth);\n }\n var elHeight = el.getAttribute('height');\n if (elHeight) {\n svg.setAttribute('height', elHeight);\n }\n var mergedClasses = Array.from(new Set(__spreadArray(__spreadArray(__spreadArray([], (svg.getAttribute('class') || '').split(' '), true), ['injected-svg'], false), (el.getAttribute('class') || '').split(' '), true))).join(' ').trim();\n svg.setAttribute('class', mergedClasses);\n var elStyle = el.getAttribute('style');\n if (elStyle) {\n svg.setAttribute('style', elStyle);\n }\n svg.setAttribute('data-src', elUrl);\n var elData = [].filter.call(el.attributes, function (at) {\n return /^data-\\w[\\w-]*$/.test(at.name);\n });\n Array.prototype.forEach.call(elData, function (dataAttr) {\n if (dataAttr.name && dataAttr.value) {\n svg.setAttribute(dataAttr.name, dataAttr.value);\n }\n });\n if (renumerateIRIElements) {\n var iriElementsAndProperties_1 = {\n clipPath: ['clip-path'],\n 'color-profile': ['color-profile'],\n cursor: ['cursor'],\n filter: ['filter'],\n linearGradient: ['fill', 'stroke'],\n marker: ['marker', 'marker-start', 'marker-mid', 'marker-end'],\n mask: ['mask'],\n path: [],\n pattern: ['fill', 'stroke'],\n radialGradient: ['fill', 'stroke']\n };\n var element_1;\n var elements_1;\n var properties_1;\n var currentId_1;\n var newId_1;\n Object.keys(iriElementsAndProperties_1).forEach(function (key) {\n element_1 = key;\n properties_1 = iriElementsAndProperties_1[key];\n elements_1 = svg.querySelectorAll(element_1 + '[id]');\n var _loop_1 = function _loop_1(a, elementsLen) {\n currentId_1 = elements_1[a].id;\n newId_1 = currentId_1 + '-' + uniqueId();\n var referencingElements;\n Array.prototype.forEach.call(properties_1, function (property) {\n referencingElements = svg.querySelectorAll('[' + property + '*=\"' + currentId_1 + '\"]');\n for (var b = 0, referencingElementLen = referencingElements.length; b < referencingElementLen; b++) {\n var attrValue = referencingElements[b].getAttribute(property);\n if (attrValue && !attrValue.match(new RegExp('url\\\\(\"?#' + currentId_1 + '\"?\\\\)'))) {\n continue;\n }\n referencingElements[b].setAttribute(property, 'url(#' + newId_1 + ')');\n }\n });\n var allLinks = svg.querySelectorAll('[*|href]');\n var links = [];\n for (var c = 0, allLinksLen = allLinks.length; c < allLinksLen; c++) {\n var href = allLinks[c].getAttributeNS(xlinkNamespace, 'href');\n if (href && href.toString() === '#' + elements_1[a].id) {\n links.push(allLinks[c]);\n }\n }\n for (var d = 0, linksLen = links.length; d < linksLen; d++) {\n links[d].setAttributeNS(xlinkNamespace, 'href', '#' + newId_1);\n }\n elements_1[a].id = newId_1;\n };\n for (var a = 0, elementsLen = elements_1.length; a < elementsLen; a++) {\n _loop_1(a);\n }\n });\n }\n svg.removeAttribute('xmlns:a');\n var scripts = svg.querySelectorAll('script');\n var scriptsToEval = [];\n var script;\n var scriptType;\n for (var i = 0, scriptsLen = scripts.length; i < scriptsLen; i++) {\n scriptType = scripts[i].getAttribute('type');\n if (!scriptType || scriptType === 'application/ecmascript' || scriptType === 'application/javascript' || scriptType === 'text/javascript') {\n script = scripts[i].innerText || scripts[i].textContent;\n if (script) {\n scriptsToEval.push(script);\n }\n svg.removeChild(scripts[i]);\n }\n }\n if (scriptsToEval.length > 0 && (evalScripts === 'always' || evalScripts === 'once' && !ranScripts[elUrl])) {\n for (var l = 0, scriptsToEvalLen = scriptsToEval.length; l < scriptsToEvalLen; l++) {\n new Function(scriptsToEval[l])(window);\n }\n ranScripts[elUrl] = true;\n }\n var styleTags = svg.querySelectorAll('style');\n Array.prototype.forEach.call(styleTags, function (styleTag) {\n styleTag.textContent += '';\n });\n svg.setAttribute('xmlns', svgNamespace);\n svg.setAttribute('xmlns:xlink', xlinkNamespace);\n beforeEach(svg);\n if (!el.parentNode) {\n injectedElements.splice(injectedElements.indexOf(el), 1);\n el = null;\n callback(new Error('Parent node is null'));\n return;\n }\n el.parentNode.replaceChild(svg, el);\n injectedElements.splice(injectedElements.indexOf(el), 1);\n el = null;\n callback(null, svg);\n });\n};\n\nvar SVGInjector = function SVGInjector(elements, _a) {\n var _b = _a === void 0 ? {} : _a,\n _c = _b.afterAll,\n afterAll = _c === void 0 ? function () {\n return undefined;\n } : _c,\n _d = _b.afterEach,\n afterEach = _d === void 0 ? function () {\n return undefined;\n } : _d,\n _e = _b.beforeEach,\n beforeEach = _e === void 0 ? function () {\n return undefined;\n } : _e,\n _f = _b.cacheRequests,\n cacheRequests = _f === void 0 ? true : _f,\n _g = _b.evalScripts,\n evalScripts = _g === void 0 ? 'never' : _g,\n _h = _b.httpRequestWithCredentials,\n httpRequestWithCredentials = _h === void 0 ? false : _h,\n _j = _b.renumerateIRIElements,\n renumerateIRIElements = _j === void 0 ? true : _j;\n if (elements && 'length' in elements) {\n var elementsLoaded_1 = 0;\n for (var i = 0, j = elements.length; i < j; i++) {\n injectElement(elements[i], evalScripts, renumerateIRIElements, cacheRequests, httpRequestWithCredentials, beforeEach, function (error, svg) {\n afterEach(error, svg);\n if (elements && 'length' in elements && elements.length === ++elementsLoaded_1) {\n afterAll(elementsLoaded_1);\n }\n });\n }\n } else if (elements) {\n injectElement(elements, evalScripts, renumerateIRIElements, cacheRequests, httpRequestWithCredentials, beforeEach, function (error, svg) {\n afterEach(error, svg);\n afterAll(1);\n elements = null;\n });\n } else {\n afterAll(0);\n }\n};\n\nexport { SVGInjector };\n//# sourceMappingURL=svg-injector.esm.js.map\n"],"names":["__spreadArray","parse_1","cache","cloneSvg","sourceSvg","isLocal","makeAjaxRequest","url","httpRequestWithCredentials","callback","httpRequest","contentType","type","parse","error","requestQueue","queueRequest","processRequestQueue","_loop_1","len","cacheValue","i","loadSvgCached","_a","loadSvgUncached","idCounter","uniqueId","injectedElements","ranScripts","svgNamespace","xlinkNamespace","injectElement","el","evalScripts","renumerateIRIElements","cacheRequests","beforeEach","elUrl","loadSvg","svg","elId","elTitle","elWidth","elHeight","mergedClasses","elStyle","elData","at","dataAttr","iriElementsAndProperties_1","element_1","elements_1","properties_1","currentId_1","newId_1","key","a","elementsLen","referencingElements","property","b","referencingElementLen","attrValue","allLinks","links","c","allLinksLen","href","d","linksLen","scripts","scriptsToEval","script","scriptType","scriptsLen","l","scriptsToEvalLen","styleTags","styleTag","SVGInjector","elements","_b","_c","afterAll","_d","afterEach","_e","_f","_g","_h","_j","elementsLoaded_1","j"],"mappings":"AAGA,SAAA,iBAAAA,SAAA;AAAA,SAAA,SAAAC,UAAA;AAAA,IAAIC,IAAQ,oBAAI,IAAK,GAEjBC,IAAW,SAAkBC,GAAW;AAC1C,SAAOA,EAAU,UAAU,EAAI;AACjC,GAEIC,IAAU,WAAmB;AAC/B,SAAO,OAAO,SAAS,aAAa;AACtC,GAEIC,IAAkB,SAAyBC,GAAKC,GAA4BC,GAAU;AACxF,MAAIC,IAAc,IAAI,eAAgB;AACtC,EAAAA,EAAY,qBAAqB,WAAY;AAC3C,QAAI;AACF,UAAI,CAAC,SAAS,KAAKH,CAAG,KAAKG,EAAY,eAAe,GAAG;AACvD,YAAIC,IAAcD,EAAY,kBAAkB,cAAc;AAC9D,YAAI,CAACC;AACH,gBAAM,IAAI,MAAM,wBAAwB;AAE1C,YAAIC,IAAOC,GAAMF,CAAW,EAAE;AAC9B,YAAI,EAAEC,MAAS,mBAAmBA,MAAS;AACzC,gBAAM,IAAI,MAAM,yBAAyB,OAAOA,CAAI,CAAC;AAAA,MAE/D;AACM,UAAIF,EAAY,eAAe,GAAG;AAChC,YAAIA,EAAY,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,EAAG,4BACRzE,IAA6BiF,MAAO,SAAS,KAAQA,GACrDC,IAAKT,EAAG,uBACR/C,IAAwBwD,MAAO,SAAS,KAAOA;AACjD,MAAIV,KAAY,YAAYA;AAE1B,aADIW,IAAmB,GACdtE,IAAI,GAAGuE,IAAIZ,EAAS,QAAQ3D,IAAIuE,GAAGvE;AAC1C,MAAAU,EAAciD,EAAS3D,CAAC,GAAGY,GAAaC,GAAuBC,GAAe3B,GAA4B4B,GAAY,SAAUtB,GAAOyB,GAAK;AAC1I,QAAA8C,EAAUvE,GAAOyB,CAAG,GAChByC,KAAY,YAAYA,KAAYA,EAAS,WAAW,EAAEW,KAC5DR,EAASQ,CAAgB;AAAA,MAEnC,CAAO;AAAA,MAEE,CAAIX,IACTjD,EAAciD,GAAU/C,GAAaC,GAAuBC,GAAe3B,GAA4B4B,GAAY,SAAUtB,GAAOyB,GAAK;AACvI,IAAA8C,EAAUvE,GAAOyB,CAAG,GACpB4C,EAAS,CAAC,GACVH,IAAW;AAAA,EACjB,CAAK,IAEDG,EAAS,CAAC;AAEd;","x_google_ignoreList":[0]}
|
package/dist/index15.js
CHANGED
@@ -1,34 +1,38 @@
|
|
1
|
-
import
|
2
|
-
import { Badge as
|
3
|
-
import { Icon as
|
4
|
-
const
|
1
|
+
import e from "react";
|
2
|
+
import { Badge as u } from "./index8.js";
|
3
|
+
import { Icon as s } from "./index5.js";
|
4
|
+
const b = (i) => {
|
5
5
|
const {
|
6
6
|
label: a = "",
|
7
|
-
icon:
|
7
|
+
icon: t,
|
8
8
|
tag: r = "",
|
9
9
|
iconPosition: o = "right",
|
10
|
-
onClick:
|
11
|
-
isActive:
|
12
|
-
|
13
|
-
|
10
|
+
onClick: c,
|
11
|
+
isActive: l = !1,
|
12
|
+
showCheckMarkForSelected: n = !1
|
13
|
+
} = i, m = (g) => /* @__PURE__ */ e.createElement(s, {
|
14
|
+
name: g
|
14
15
|
});
|
15
|
-
return /* @__PURE__ */
|
16
|
-
className: `se-design-menu-item flex items-center justify-between p-2 text-[var(--color-gray-900)] hover:bg-[var(--color-blue-100)] cursor-pointer rounded-[6px] gap-2 ${
|
17
|
-
onClick: () =>
|
16
|
+
return /* @__PURE__ */ e.createElement("div", {
|
17
|
+
className: `se-design-menu-item flex items-center justify-between p-2 text-[var(--color-gray-900)] hover:bg-[var(--color-blue-100)] cursor-pointer rounded-[6px] gap-2 ${l && !n ? "bg-[var(--color-blue-100)]" : ""}`,
|
18
|
+
onClick: () => c && c({
|
18
19
|
label: a,
|
19
20
|
tag: r,
|
20
|
-
icon:
|
21
|
+
icon: t,
|
21
22
|
iconPosition: o
|
22
23
|
})
|
23
|
-
}, /* @__PURE__ */
|
24
|
+
}, /* @__PURE__ */ e.createElement("div", {
|
24
25
|
className: "flex items-center gap-1"
|
25
|
-
}, o === "left" &&
|
26
|
+
}, o === "left" && t && m(t), /* @__PURE__ */ e.createElement("span", {
|
26
27
|
className: "text-[var(--color-gray-900)]"
|
27
|
-
}, a), o === "right" &&
|
28
|
+
}, a), o === "right" && t && m(t)), r && /* @__PURE__ */ e.createElement(u, {
|
28
29
|
label: r
|
30
|
+
}), n && l && /* @__PURE__ */ e.createElement(s, {
|
31
|
+
name: "checkmark",
|
32
|
+
stroke: "var(--color-blue-500)"
|
29
33
|
}));
|
30
34
|
};
|
31
35
|
export {
|
32
|
-
|
36
|
+
b as MenuItem
|
33
37
|
};
|
34
38
|
//# sourceMappingURL=index15.js.map
|
package/dist/index15.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index15.js","sources":["../src/components/MenuItem/index.tsx"],"sourcesContent":["import React, { FC } from 'react';\nimport { Badge } from 'src/components/Badge';\nimport { Icon } from 'components/Icon';\n\nexport type MenuItemProps = {\n label: string;\n tag?: string;\n isDisabled?: boolean;\n isActive?: boolean;\n icon?: string;\n iconPosition?: 'left' | 'right';\n onClick?: (item: MenuItemProps) => void;\n};\n\nexport const MenuItem: FC<MenuItemProps> = (props) => {\n const { label = '', icon, tag = '', iconPosition = \"right\", onClick, isActive = false } = props;\n\n const getIconJsx = (icon: string) => {\n return <Icon name={icon} />\n }\n\n return (\n <div\n className={`se-design-menu-item flex items-center justify-between p-2 text-[var(--color-gray-900)] hover:bg-[var(--color-blue-100)] cursor-pointer rounded-[6px] gap-2 ${isActive ? 'bg-[var(--color-blue-100)]': ''}`}\n onClick={() => onClick && onClick({label, tag, icon, iconPosition})}\n >\n <div className='flex items-center gap-1'>\n {iconPosition === 'left' && icon && getIconJsx(icon)}\n <span className=\"text-[var(--color-gray-900)]\">{label}</span>\n {iconPosition === 'right' && icon && getIconJsx(icon)}\n </div>\n {tag && <Badge label={tag} />}\n </div>\n );\n};\n"],"names":["React__default","Badge","Icon","MenuItem","props","label","icon","tag","iconPosition","onClick","isActive","getIconJsx","React","createElement","name","className"],"mappings":"
|
1
|
+
{"version":3,"file":"index15.js","sources":["../src/components/MenuItem/index.tsx"],"sourcesContent":["import React, { FC } from 'react';\nimport { Badge } from 'src/components/Badge';\nimport { Icon } from 'components/Icon';\n\nexport type MenuItemProps = {\n label: string;\n tag?: string;\n isDisabled?: boolean;\n isActive?: boolean;\n icon?: string;\n iconPosition?: 'left' | 'right';\n onClick?: (item: MenuItemProps) => void;\n showCheckMarkForSelected?: boolean;\n};\n\nexport const MenuItem: FC<MenuItemProps> = (props) => {\n const { label = '', icon, tag = '', iconPosition = \"right\", onClick, isActive = false, showCheckMarkForSelected = false } = props;\n\n const getIconJsx = (icon: string) => {\n return <Icon name={icon} />\n }\n\n return (\n <div\n className={`se-design-menu-item flex items-center justify-between p-2 text-[var(--color-gray-900)] hover:bg-[var(--color-blue-100)] cursor-pointer rounded-[6px] gap-2 ${isActive && !showCheckMarkForSelected ? 'bg-[var(--color-blue-100)]': ''}`}\n onClick={() => onClick && onClick({label, tag, icon, iconPosition})}\n >\n <div className='flex items-center gap-1'>\n {iconPosition === 'left' && icon && getIconJsx(icon)}\n <span className=\"text-[var(--color-gray-900)]\">{label}</span>\n {iconPosition === 'right' && icon && getIconJsx(icon)}\n </div>\n {tag && <Badge label={tag} />}\n {showCheckMarkForSelected && isActive && <Icon name='checkmark' stroke='var(--color-blue-500)' />}\n </div>\n );\n};\n"],"names":["React__default","Badge","Icon","MenuItem","props","label","icon","tag","iconPosition","onClick","isActive","showCheckMarkForSelected","getIconJsx","React","createElement","name","className","stroke"],"mappings":"AAeO,OAAAA,OAAA;AAAA,SAAA,SAAAC,SAAA;AAAA,SAAA,QAAAC,SAAA;AAAA,MAAMC,IAA+BC,CAAUA,MAAA;AAC9C,QAAA;AAAA,IAAEC,OAAAA,IAAQ;AAAA,IAAIC,MAAAA;AAAAA,IAAMC,KAAAA,IAAM;AAAA,IAAIC,cAAAA,IAAe;AAAA,IAASC,SAAAA;AAAAA,IAASC,UAAAA,IAAW;AAAA,IAAOC,0BAAAA,IAA2B;AAAA,EAAA,IAAUP,GAEtHQ,IAAaA,CAACN,MACXO,gBAAAA,EAAAC,cAACZ,GAAI;AAAA,IAACa,MAAMT;AAAAA,EAAAA,CAAO;AAI1BO,SAAAA,gBAAAA,EAAAC,cAAA,OAAA;AAAA,IACEE,WAAW,8JAA8JN,KAAY,CAACC,IAA2B,+BAA8B,EAAE;AAAA,IACjPF,SAASA,MAAMA,KAAWA,EAAQ;AAAA,MAACJ,OAAAA;AAAAA,MAAOE,KAAAA;AAAAA,MAAKD,MAAAA;AAAAA,MAAME,cAAAA;AAAAA,IAAa,CAAA;AAAA,EAAA,GAElEM,gBAAAA,EAAAA,cAAA,OAAA;AAAA,IAAKE,WAAU;AAAA,EAAA,GACZR,MAAiB,UAAUF,KAAQM,EAAWN,CAAI,GACnDQ,gBAAAA,EAAAA,cAAA,QAAA;AAAA,IAAME,WAAU;AAAA,EAAgCX,GAAAA,CAAY,GAC3DG,MAAiB,WAAWF,KAAQM,EAAWN,CAAI,CACjD,GACJC,KAAOM,gBAAAA,EAAAC,cAACb,GAAK;AAAA,IAACI,OAAOE;AAAAA,EAAM,CAAA,GAC3BI,KAA4BD,KAAYG,gBAAAA,EAAAC,cAACZ,GAAI;AAAA,IAACa,MAAK;AAAA,IAAYE,QAAO;AAAA,EAAA,CAAyB,CAC7F;AAET;"}
|
package/dist/index150.js
CHANGED
@@ -1,79 +1,14 @@
|
|
1
|
-
import {
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
var _;
|
11
|
-
function g() {
|
12
|
-
if (_) return r;
|
13
|
-
_ = 1;
|
14
|
-
var t = typeof Symbol == "function" && Symbol.for, a = t ? Symbol.for("react.element") : 60103, b = t ? Symbol.for("react.portal") : 60106, n = t ? Symbol.for("react.fragment") : 60107, c = t ? Symbol.for("react.strict_mode") : 60108, f = t ? Symbol.for("react.profiler") : 60114, i = t ? Symbol.for("react.provider") : 60109, s = t ? Symbol.for("react.context") : 60110, d = t ? Symbol.for("react.async_mode") : 60111, u = t ? Symbol.for("react.concurrent_mode") : 60111, y = t ? Symbol.for("react.forward_ref") : 60112, l = t ? Symbol.for("react.suspense") : 60113, x = t ? Symbol.for("react.suspense_list") : 60120, m = t ? Symbol.for("react.memo") : 60115, p = t ? Symbol.for("react.lazy") : 60116, C = t ? Symbol.for("react.block") : 60121, M = t ? Symbol.for("react.fundamental") : 60117, v = t ? Symbol.for("react.responder") : 60118, w = t ? Symbol.for("react.scope") : 60119;
|
15
|
-
function o(e) {
|
16
|
-
if (typeof e == "object" && e !== null) {
|
17
|
-
var S = e.$$typeof;
|
18
|
-
switch (S) {
|
19
|
-
case a:
|
20
|
-
switch (e = e.type, e) {
|
21
|
-
case d:
|
22
|
-
case u:
|
23
|
-
case n:
|
24
|
-
case f:
|
25
|
-
case c:
|
26
|
-
case l:
|
27
|
-
return e;
|
28
|
-
default:
|
29
|
-
switch (e = e && e.$$typeof, e) {
|
30
|
-
case s:
|
31
|
-
case y:
|
32
|
-
case p:
|
33
|
-
case m:
|
34
|
-
case i:
|
35
|
-
return e;
|
36
|
-
default:
|
37
|
-
return S;
|
38
|
-
}
|
39
|
-
}
|
40
|
-
case b:
|
41
|
-
return S;
|
42
|
-
}
|
43
|
-
}
|
44
|
-
}
|
45
|
-
function $(e) {
|
46
|
-
return o(e) === u;
|
47
|
-
}
|
48
|
-
return r.AsyncMode = d, r.ConcurrentMode = u, r.ContextConsumer = s, r.ContextProvider = i, r.Element = a, r.ForwardRef = y, r.Fragment = n, r.Lazy = p, r.Memo = m, r.Portal = b, r.Profiler = f, r.StrictMode = c, r.Suspense = l, r.isAsyncMode = function(e) {
|
49
|
-
return $(e) || o(e) === d;
|
50
|
-
}, r.isConcurrentMode = $, r.isContextConsumer = function(e) {
|
51
|
-
return o(e) === s;
|
52
|
-
}, r.isContextProvider = function(e) {
|
53
|
-
return o(e) === i;
|
54
|
-
}, r.isElement = function(e) {
|
55
|
-
return typeof e == "object" && e !== null && e.$$typeof === a;
|
56
|
-
}, r.isForwardRef = function(e) {
|
57
|
-
return o(e) === y;
|
58
|
-
}, r.isFragment = function(e) {
|
59
|
-
return o(e) === n;
|
60
|
-
}, r.isLazy = function(e) {
|
61
|
-
return o(e) === p;
|
62
|
-
}, r.isMemo = function(e) {
|
63
|
-
return o(e) === m;
|
64
|
-
}, r.isPortal = function(e) {
|
65
|
-
return o(e) === b;
|
66
|
-
}, r.isProfiler = function(e) {
|
67
|
-
return o(e) === f;
|
68
|
-
}, r.isStrictMode = function(e) {
|
69
|
-
return o(e) === c;
|
70
|
-
}, r.isSuspense = function(e) {
|
71
|
-
return o(e) === l;
|
72
|
-
}, r.isValidElementType = function(e) {
|
73
|
-
return typeof e == "string" || typeof e == "function" || e === n || e === u || e === f || e === c || e === l || e === x || typeof e == "object" && e !== null && (e.$$typeof === p || e.$$typeof === m || e.$$typeof === i || e.$$typeof === s || e.$$typeof === y || e.$$typeof === M || e.$$typeof === v || e.$$typeof === w || e.$$typeof === C);
|
74
|
-
}, r.typeOf = o, r;
|
75
|
-
}
|
1
|
+
import { __module as r } from "./index154.js";
|
2
|
+
import { __require as e } from "./index155.js";
|
3
|
+
import { __require as o } from "./index156.js";
|
4
|
+
import { __require as p } from "./index157.js";
|
5
|
+
if (process.env.NODE_ENV !== "production") {
|
6
|
+
var s = e(), i = !0;
|
7
|
+
r.exports = o()(s.isElement, i);
|
8
|
+
} else
|
9
|
+
r.exports = p()();
|
10
|
+
var _ = r.exports;
|
76
11
|
export {
|
77
|
-
|
12
|
+
_ as p
|
78
13
|
};
|
79
14
|
//# sourceMappingURL=index150.js.map
|
package/dist/index150.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index150.js","sources":["../node_modules/prop-types/
|
1
|
+
{"version":3,"file":"index150.js","sources":["../node_modules/prop-types/index.js"],"sourcesContent":["/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nif (process.env.NODE_ENV !== 'production') {\n var ReactIs = require('react-is');\n\n // By explicitly using `prop-types` you are opting into new development behavior.\n // http://fb.me/prop-types-in-prod\n var throwOnDirectAccess = true;\n module.exports = require('./factoryWithTypeCheckers')(ReactIs.isElement, throwOnDirectAccess);\n} else {\n // By explicitly using `prop-types` you are opting into new production behavior.\n // http://fb.me/prop-types-in-prod\n module.exports = require('./factoryWithThrowingShims')();\n}\n"],"names":["ReactIs","require$$0","throwOnDirectAccess","propTypesModule","require$$1","require$$2"],"mappings":";;;;AAOA,IAAI,QAAQ,IAAI,aAAa,cAAc;AACzC,MAAIA,IAAUC,EAAmB,GAI7BC,IAAsB;AAC1BC,EAAAA,EAAA,UAAiBC,EAAA,EAAqCJ,EAAQ,WAAWE,CAAmB;AAC9F;AAGEC,EAAAA,EAAc,UAAGE,IAAuC;;","x_google_ignoreList":[0]}
|
package/dist/index151.js
CHANGED
@@ -1,96 +1,9 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
6
|
-
*
|
7
|
-
* This source code is licensed under the MIT license found in the
|
8
|
-
* LICENSE file in the root directory of this source tree.
|
9
|
-
*/
|
10
|
-
var A;
|
11
|
-
function re() {
|
12
|
-
return A ? r : (A = 1, process.env.NODE_ENV !== "production" && function() {
|
13
|
-
var o = typeof Symbol == "function" && Symbol.for, _ = o ? Symbol.for("react.element") : 60103, T = o ? Symbol.for("react.portal") : 60106, t = o ? Symbol.for("react.fragment") : 60107, n = o ? Symbol.for("react.strict_mode") : 60108, s = o ? Symbol.for("react.profiler") : 60114, c = o ? Symbol.for("react.provider") : 60109, i = o ? Symbol.for("react.context") : 60110, v = o ? Symbol.for("react.async_mode") : 60111, f = o ? Symbol.for("react.concurrent_mode") : 60111, u = o ? Symbol.for("react.forward_ref") : 60112, E = o ? Symbol.for("react.suspense") : 60113, y = o ? Symbol.for("react.suspense_list") : 60120, d = o ? Symbol.for("react.memo") : 60115, l = o ? Symbol.for("react.lazy") : 60116, x = o ? Symbol.for("react.block") : 60121, M = o ? Symbol.for("react.fundamental") : 60117, b = o ? Symbol.for("react.responder") : 60118, p = o ? Symbol.for("react.scope") : 60119;
|
14
|
-
function Y(e) {
|
15
|
-
return typeof e == "string" || typeof e == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
16
|
-
e === t || e === f || e === s || e === n || e === E || e === y || typeof e == "object" && e !== null && (e.$$typeof === l || e.$$typeof === d || e.$$typeof === c || e.$$typeof === i || e.$$typeof === u || e.$$typeof === M || e.$$typeof === b || e.$$typeof === p || e.$$typeof === x);
|
17
|
-
}
|
18
|
-
function a(e) {
|
19
|
-
if (typeof e == "object" && e !== null) {
|
20
|
-
var C = e.$$typeof;
|
21
|
-
switch (C) {
|
22
|
-
case _:
|
23
|
-
var m = e.type;
|
24
|
-
switch (m) {
|
25
|
-
case v:
|
26
|
-
case f:
|
27
|
-
case t:
|
28
|
-
case s:
|
29
|
-
case n:
|
30
|
-
case E:
|
31
|
-
return m;
|
32
|
-
default:
|
33
|
-
var P = m && m.$$typeof;
|
34
|
-
switch (P) {
|
35
|
-
case i:
|
36
|
-
case u:
|
37
|
-
case l:
|
38
|
-
case d:
|
39
|
-
case c:
|
40
|
-
return P;
|
41
|
-
default:
|
42
|
-
return C;
|
43
|
-
}
|
44
|
-
}
|
45
|
-
case T:
|
46
|
-
return C;
|
47
|
-
}
|
48
|
-
}
|
49
|
-
}
|
50
|
-
var $ = v, O = f, F = i, N = c, I = _, L = u, h = t, w = l, D = d, g = T, z = s, U = n, V = E, R = !1;
|
51
|
-
function q(e) {
|
52
|
-
return R || (R = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), S(e) || a(e) === v;
|
53
|
-
}
|
54
|
-
function S(e) {
|
55
|
-
return a(e) === f;
|
56
|
-
}
|
57
|
-
function W(e) {
|
58
|
-
return a(e) === i;
|
59
|
-
}
|
60
|
-
function k(e) {
|
61
|
-
return a(e) === c;
|
62
|
-
}
|
63
|
-
function B(e) {
|
64
|
-
return typeof e == "object" && e !== null && e.$$typeof === _;
|
65
|
-
}
|
66
|
-
function G(e) {
|
67
|
-
return a(e) === u;
|
68
|
-
}
|
69
|
-
function K(e) {
|
70
|
-
return a(e) === t;
|
71
|
-
}
|
72
|
-
function X(e) {
|
73
|
-
return a(e) === l;
|
74
|
-
}
|
75
|
-
function Z(e) {
|
76
|
-
return a(e) === d;
|
77
|
-
}
|
78
|
-
function H(e) {
|
79
|
-
return a(e) === T;
|
80
|
-
}
|
81
|
-
function J(e) {
|
82
|
-
return a(e) === s;
|
83
|
-
}
|
84
|
-
function Q(e) {
|
85
|
-
return a(e) === n;
|
86
|
-
}
|
87
|
-
function j(e) {
|
88
|
-
return a(e) === E;
|
89
|
-
}
|
90
|
-
r.AsyncMode = $, r.ConcurrentMode = O, r.ContextConsumer = F, r.ContextProvider = N, r.Element = I, r.ForwardRef = L, r.Fragment = h, r.Lazy = w, r.Memo = D, r.Portal = g, r.Profiler = z, r.StrictMode = U, r.Suspense = V, r.isAsyncMode = q, r.isConcurrentMode = S, r.isContextConsumer = W, r.isContextProvider = k, r.isElement = B, r.isForwardRef = G, r.isFragment = K, r.isLazy = X, r.isMemo = Z, r.isPortal = H, r.isProfiler = J, r.isStrictMode = Q, r.isSuspense = j, r.isValidElementType = Y, r.typeOf = a;
|
91
|
-
}(), r);
|
1
|
+
function e(o, r) {
|
2
|
+
return e = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t, n) {
|
3
|
+
return t.__proto__ = n, t;
|
4
|
+
}, e(o, r);
|
92
5
|
}
|
93
6
|
export {
|
94
|
-
|
7
|
+
e as default
|
95
8
|
};
|
96
9
|
//# sourceMappingURL=index151.js.map
|
package/dist/index151.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index151.js","sources":["../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js"],"sourcesContent":["/** @license React v16.13.1\n * react-is.development.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\n\n\nif (process.env.NODE_ENV !== \"production\") {\n (function() {\n'use strict';\n\n// The Symbol used to tag the ReactElement-like types. If there is no native Symbol\n// nor polyfill, then a plain number is used for performance.\nvar hasSymbol = typeof Symbol === 'function' && Symbol.for;\nvar REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;\nvar REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;\nvar REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;\nvar REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;\nvar REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;\nvar REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;\nvar REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace; // TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary\n// (unstable) APIs that have been removed. Can we remove the symbols?\n\nvar REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for('react.async_mode') : 0xeacf;\nvar REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;\nvar REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;\nvar REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;\nvar REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for('react.suspense_list') : 0xead8;\nvar REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;\nvar REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;\nvar REACT_BLOCK_TYPE = hasSymbol ? Symbol.for('react.block') : 0xead9;\nvar REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for('react.fundamental') : 0xead5;\nvar REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for('react.responder') : 0xead6;\nvar REACT_SCOPE_TYPE = hasSymbol ? Symbol.for('react.scope') : 0xead7;\n\nfunction isValidElementType(type) {\n return typeof type === 'string' || typeof type === 'function' || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.\n type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || typeof type === 'object' && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_RESPONDER_TYPE || type.$$typeof === REACT_SCOPE_TYPE || type.$$typeof === REACT_BLOCK_TYPE);\n}\n\nfunction typeOf(object) {\n if (typeof object === 'object' && object !== null) {\n var $$typeof = object.$$typeof;\n\n switch ($$typeof) {\n case REACT_ELEMENT_TYPE:\n var type = object.type;\n\n switch (type) {\n case REACT_ASYNC_MODE_TYPE:\n case REACT_CONCURRENT_MODE_TYPE:\n case REACT_FRAGMENT_TYPE:\n case REACT_PROFILER_TYPE:\n case REACT_STRICT_MODE_TYPE:\n case REACT_SUSPENSE_TYPE:\n return type;\n\n default:\n var $$typeofType = type && type.$$typeof;\n\n switch ($$typeofType) {\n case REACT_CONTEXT_TYPE:\n case REACT_FORWARD_REF_TYPE:\n case REACT_LAZY_TYPE:\n case REACT_MEMO_TYPE:\n case REACT_PROVIDER_TYPE:\n return $$typeofType;\n\n default:\n return $$typeof;\n }\n\n }\n\n case REACT_PORTAL_TYPE:\n return $$typeof;\n }\n }\n\n return undefined;\n} // AsyncMode is deprecated along with isAsyncMode\n\nvar AsyncMode = REACT_ASYNC_MODE_TYPE;\nvar ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;\nvar ContextConsumer = REACT_CONTEXT_TYPE;\nvar ContextProvider = REACT_PROVIDER_TYPE;\nvar Element = REACT_ELEMENT_TYPE;\nvar ForwardRef = REACT_FORWARD_REF_TYPE;\nvar Fragment = REACT_FRAGMENT_TYPE;\nvar Lazy = REACT_LAZY_TYPE;\nvar Memo = REACT_MEMO_TYPE;\nvar Portal = REACT_PORTAL_TYPE;\nvar Profiler = REACT_PROFILER_TYPE;\nvar StrictMode = REACT_STRICT_MODE_TYPE;\nvar Suspense = REACT_SUSPENSE_TYPE;\nvar hasWarnedAboutDeprecatedIsAsyncMode = false; // AsyncMode should be deprecated\n\nfunction isAsyncMode(object) {\n {\n if (!hasWarnedAboutDeprecatedIsAsyncMode) {\n hasWarnedAboutDeprecatedIsAsyncMode = true; // Using console['warn'] to evade Babel and ESLint\n\n console['warn']('The ReactIs.isAsyncMode() alias has been deprecated, ' + 'and will be removed in React 17+. Update your code to use ' + 'ReactIs.isConcurrentMode() instead. It has the exact same API.');\n }\n }\n\n return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;\n}\nfunction isConcurrentMode(object) {\n return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;\n}\nfunction isContextConsumer(object) {\n return typeOf(object) === REACT_CONTEXT_TYPE;\n}\nfunction isContextProvider(object) {\n return typeOf(object) === REACT_PROVIDER_TYPE;\n}\nfunction isElement(object) {\n return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;\n}\nfunction isForwardRef(object) {\n return typeOf(object) === REACT_FORWARD_REF_TYPE;\n}\nfunction isFragment(object) {\n return typeOf(object) === REACT_FRAGMENT_TYPE;\n}\nfunction isLazy(object) {\n return typeOf(object) === REACT_LAZY_TYPE;\n}\nfunction isMemo(object) {\n return typeOf(object) === REACT_MEMO_TYPE;\n}\nfunction isPortal(object) {\n return typeOf(object) === REACT_PORTAL_TYPE;\n}\nfunction isProfiler(object) {\n return typeOf(object) === REACT_PROFILER_TYPE;\n}\nfunction isStrictMode(object) {\n return typeOf(object) === REACT_STRICT_MODE_TYPE;\n}\nfunction isSuspense(object) {\n return typeOf(object) === REACT_SUSPENSE_TYPE;\n}\n\nexports.AsyncMode = AsyncMode;\nexports.ConcurrentMode = ConcurrentMode;\nexports.ContextConsumer = ContextConsumer;\nexports.ContextProvider = ContextProvider;\nexports.Element = Element;\nexports.ForwardRef = ForwardRef;\nexports.Fragment = Fragment;\nexports.Lazy = Lazy;\nexports.Memo = Memo;\nexports.Portal = Portal;\nexports.Profiler = Profiler;\nexports.StrictMode = StrictMode;\nexports.Suspense = Suspense;\nexports.isAsyncMode = isAsyncMode;\nexports.isConcurrentMode = isConcurrentMode;\nexports.isContextConsumer = isContextConsumer;\nexports.isContextProvider = isContextProvider;\nexports.isElement = isElement;\nexports.isForwardRef = isForwardRef;\nexports.isFragment = isFragment;\nexports.isLazy = isLazy;\nexports.isMemo = isMemo;\nexports.isPortal = isPortal;\nexports.isProfiler = isProfiler;\nexports.isStrictMode = isStrictMode;\nexports.isSuspense = isSuspense;\nexports.isValidElementType = isValidElementType;\nexports.typeOf = typeOf;\n })();\n}\n"],"names":["hasSymbol","REACT_ELEMENT_TYPE","REACT_PORTAL_TYPE","REACT_FRAGMENT_TYPE","REACT_STRICT_MODE_TYPE","REACT_PROFILER_TYPE","REACT_PROVIDER_TYPE","REACT_CONTEXT_TYPE","REACT_ASYNC_MODE_TYPE","REACT_CONCURRENT_MODE_TYPE","REACT_FORWARD_REF_TYPE","REACT_SUSPENSE_TYPE","REACT_SUSPENSE_LIST_TYPE","REACT_MEMO_TYPE","REACT_LAZY_TYPE","REACT_BLOCK_TYPE","REACT_FUNDAMENTAL_TYPE","REACT_RESPONDER_TYPE","REACT_SCOPE_TYPE","isValidElementType","type","typeOf","object","$$typeof","$$typeofType","AsyncMode","ConcurrentMode","ContextConsumer","ContextProvider","Element","ForwardRef","Fragment","Lazy","Memo","Portal","Profiler","StrictMode","Suspense","hasWarnedAboutDeprecatedIsAsyncMode","isAsyncMode","isConcurrentMode","isContextConsumer","isContextProvider","isElement","isForwardRef","isFragment","isLazy","isMemo","isPortal","isProfiler","isStrictMode","isSuspense","reactIs_development"],"mappings":";;;;;;;;;;;yBAaI,QAAQ,IAAI,aAAa,gBAC1B,WAAW;AAKd,QAAIA,IAAY,OAAO,UAAW,cAAc,OAAO,KACnDC,IAAqBD,IAAY,OAAO,IAAI,eAAe,IAAI,OAC/DE,IAAoBF,IAAY,OAAO,IAAI,cAAc,IAAI,OAC7DG,IAAsBH,IAAY,OAAO,IAAI,gBAAgB,IAAI,OACjEI,IAAyBJ,IAAY,OAAO,IAAI,mBAAmB,IAAI,OACvEK,IAAsBL,IAAY,OAAO,IAAI,gBAAgB,IAAI,OACjEM,IAAsBN,IAAY,OAAO,IAAI,gBAAgB,IAAI,OACjEO,IAAqBP,IAAY,OAAO,IAAI,eAAe,IAAI,OAG/DQ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AASmC,EAAS1B,GAAQ;AACxB,aAAOD,EAAOC,CAAM,MAAMpB;AAAA;AAE5B,aAAS+C,EAAW3B,GAAQ;AAC1B,aAAOD,EAAOC,CAAM,MAAMjB;AAAA;AAE5B,aAAS6C,EAAa5B,GAAQ;AAC5B,aAAOD,EAAOC,CAAM,MAAMlB;AAAA;AAE5B,aAAS+C,EAAW7B,GAAQ;AAC1B,aAAOD,EAAOC,CAAM,MAAMX;AAAA;AAGX,IAAAyC,EAAA,YAAG3B,GACE2B,EAAA,iBAAG1B,GACF0B,EAAA,kBAAGzB,GACHyB,EAAA,kBAAGxB,GACXwB,EAAA,UAAGvB,GACAuB,EAAA,aAAGtB,GACLsB,EAAA,WAAGrB,GACPqB,EAAA,OAAGpB,GACHoB,EAAA,OAAGnB,GACDmB,EAAA,SAAGlB,GACDkB,EAAA,WAAGjB,GACDiB,EAAA,aAAGhB,GACLgB,EAAA,WAAGf,GACAe,EAAA,cAAGb,GACEa,EAAA,mBAAGZ,GACFY,EAAA,oBAAGX,GACHW,EAAA,oBAAGV,GACXU,EAAA,YAAGT,GACAS,EAAA,eAAGR,GACLQ,EAAA,aAAGP,GACPO,EAAA,SAAGN,GACHM,EAAA,SAAGL,GACDK,EAAA,WAAGJ,GACDI,EAAA,aAAGH,GACDG,EAAA,eAAGF,GACLE,EAAA,aAAGD,GACKC,EAAA,qBAAGjC,GACfiC,EAAA,SAAG/B;AAAA,EACjB,EAAM;;","x_google_ignoreList":[0]}
|
1
|
+
{"version":3,"file":"index151.js","sources":["../node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js"],"sourcesContent":["function _setPrototypeOf(t, e) {\n return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) {\n return t.__proto__ = e, t;\n }, _setPrototypeOf(t, e);\n}\nexport { _setPrototypeOf as default };"],"names":["_setPrototypeOf","t","e"],"mappings":"AAAA,SAASA,EAAgBC,GAAGC,GAAG;AAC7B,SAAOF,IAAkB,OAAO,iBAAiB,OAAO,eAAe,KAAM,IAAG,SAAU,GAAGE,GAAG;AAC9F,WAAO,EAAE,YAAYA,GAAG;AAAA,EAC5B,GAAKF,EAAgBC,GAAGC,CAAC;AACzB;","x_google_ignoreList":[0]}
|
package/dist/index152.js
CHANGED
@@ -1,55 +1,9 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
(
|
4
|
-
|
5
|
-
*/
|
6
|
-
var f, i;
|
7
|
-
function p() {
|
8
|
-
if (i) return f;
|
9
|
-
i = 1;
|
10
|
-
var u = Object.getOwnPropertySymbols, b = Object.prototype.hasOwnProperty, l = Object.prototype.propertyIsEnumerable;
|
11
|
-
function O(n) {
|
12
|
-
if (n == null)
|
13
|
-
throw new TypeError("Object.assign cannot be called with null or undefined");
|
14
|
-
return Object(n);
|
15
|
-
}
|
16
|
-
function j() {
|
17
|
-
try {
|
18
|
-
if (!Object.assign)
|
19
|
-
return !1;
|
20
|
-
var n = new String("abc");
|
21
|
-
if (n[5] = "de", Object.getOwnPropertyNames(n)[0] === "5")
|
22
|
-
return !1;
|
23
|
-
for (var s = {}, r = 0; r < 10; r++)
|
24
|
-
s["_" + String.fromCharCode(r)] = r;
|
25
|
-
var a = Object.getOwnPropertyNames(s).map(function(e) {
|
26
|
-
return s[e];
|
27
|
-
});
|
28
|
-
if (a.join("") !== "0123456789")
|
29
|
-
return !1;
|
30
|
-
var t = {};
|
31
|
-
return "abcdefghijklmnopqrst".split("").forEach(function(e) {
|
32
|
-
t[e] = e;
|
33
|
-
}), Object.keys(Object.assign({}, t)).join("") === "abcdefghijklmnopqrst";
|
34
|
-
} catch (e) {
|
35
|
-
return !1;
|
36
|
-
}
|
37
|
-
}
|
38
|
-
return f = j() ? Object.assign : function(n, s) {
|
39
|
-
for (var r, a = O(n), t, e = 1; e < arguments.length; e++) {
|
40
|
-
r = Object(arguments[e]);
|
41
|
-
for (var c in r)
|
42
|
-
b.call(r, c) && (a[c] = r[c]);
|
43
|
-
if (u) {
|
44
|
-
t = u(r);
|
45
|
-
for (var o = 0; o < t.length; o++)
|
46
|
-
l.call(r, t[o]) && (a[t[o]] = r[t[o]]);
|
47
|
-
}
|
48
|
-
}
|
49
|
-
return a;
|
50
|
-
}, f;
|
1
|
+
function o(p, e, t) {
|
2
|
+
if (t || arguments.length === 2) for (var r = 0, s = e.length, n; r < s; r++)
|
3
|
+
(n || !(r in e)) && (n || (n = Array.prototype.slice.call(e, 0, r)), n[r] = e[r]);
|
4
|
+
return p.concat(n || Array.prototype.slice.call(e));
|
51
5
|
}
|
52
6
|
export {
|
53
|
-
|
7
|
+
o as __spreadArray
|
54
8
|
};
|
55
9
|
//# sourceMappingURL=index152.js.map
|