@rotki/ui-library 2.6.3 → 2.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (63) hide show
  1. package/dist/components/accordions/accordion/RuiAccordion.vue.d.ts +2 -2
  2. package/dist/components/alerts/RuiAlert.vue.d.ts +3 -3
  3. package/dist/components/buttons/button/RuiButton.vue.d.ts +2 -2
  4. package/dist/components/buttons/button-group/RuiButtonGroup.vue.d.ts +2 -2
  5. package/dist/components/cards/RuiCard.vue.d.ts +6 -6
  6. package/dist/components/date-time-picker/use-input-handler.d.ts +2 -2
  7. package/dist/components/date-time-picker/use-keyboard-handler.d.ts +2 -2
  8. package/dist/components/forms/auto-complete/RuiAutoComplete.vue.d.ts +18 -18
  9. package/dist/components/forms/checkbox/RuiCheckbox.vue.d.ts +2 -2
  10. package/dist/components/forms/radio-button/radio/RuiRadio.vue.d.ts +2 -2
  11. package/dist/components/forms/radio-button/radio-group/RuiRadioGroup.vue.d.ts +2 -2
  12. package/dist/components/forms/revealable-text-field/RuiRevealableTextField.vue.d.ts +4 -4
  13. package/dist/components/forms/select/RuiMenuSelect.vue.d.ts +2 -2
  14. package/dist/components/forms/text-area/RuiTextArea.vue.d.ts +3 -3
  15. package/dist/components/forms/text-field/RuiTextField.vue.d.ts +3 -3
  16. package/dist/components/index.es.js +2781 -2829
  17. package/dist/components/overlays/badge/RuiBadge.vue.d.ts +3 -3
  18. package/dist/components/overlays/bottom-sheet/RuiBottomSheet.vue.d.ts +2 -2
  19. package/dist/components/overlays/dialog/RuiDialog.vue.d.ts +2 -2
  20. package/dist/components/overlays/menu/RuiMenu.vue.d.ts +3 -3
  21. package/dist/components/overlays/navigation-drawer/RuiNavigationDrawer.vue.d.ts +2 -2
  22. package/dist/components/overlays/notification/RuiNotification.vue.d.ts +2 -2
  23. package/dist/components/overlays/tooltip/RuiTooltip.vue.d.ts +3 -3
  24. package/dist/components/tables/RuiDataTable.vue.d.ts +2 -2
  25. package/dist/components/tables/RuiExpandButton.vue.d.ts +2 -2
  26. package/dist/components/tables/RuiTableHead.vue.d.ts +2 -2
  27. package/dist/components/tabs/tab/RuiTab.vue.d.ts +1 -1
  28. package/dist/components/tabs/tab-item/RuiTabItem.vue.d.ts +3 -3
  29. package/dist/components/tabs/tab-items/RuiTabItems.vue.d.ts +2 -2
  30. package/dist/composables/icons.d.ts +1 -1
  31. package/dist/composables/index-D7DVd8pO.js +717 -0
  32. package/dist/composables/index.es.js +2 -1
  33. package/dist/composables/popper.d.ts +11 -11
  34. package/dist/composables/timeout-manager.d.ts +5 -0
  35. package/dist/consts/colors-D563Ic3q.js +1 -0
  36. package/dist/consts/forms/auto-complete/index-l0sNRNKZ.js +1 -0
  37. package/dist/consts/time-accuracy-BnKA5GyT.js +1 -0
  38. package/dist/i18n/keys-CNGXWOJX.js +1 -0
  39. package/dist/icons/icons_1.d.ts +12 -12
  40. package/dist/icons/icons_1.es.js +955 -954
  41. package/dist/icons/icons_2.d.ts +23 -23
  42. package/dist/icons/icons_2.es.js +1088 -1087
  43. package/dist/icons/icons_3.d.ts +29 -29
  44. package/dist/icons/icons_3.es.js +1100 -1099
  45. package/dist/icons/icons_4.d.ts +35 -0
  46. package/dist/icons/icons_4.es.js +447 -306
  47. package/dist/icons/index.d.ts +1 -1
  48. package/dist/icons/index.es.js +1577 -1541
  49. package/dist/index-cTPqOSmm.js +54 -0
  50. package/dist/index.d.ts +1 -1
  51. package/dist/index.es.js +1603 -1567
  52. package/dist/style.css +1 -1
  53. package/dist/theme/index.es.js +1 -0
  54. package/dist/types/index-CN6Ip1GL.js +1 -0
  55. package/dist/types/theme.d.ts +1 -1
  56. package/dist/utils/index-D-sENcA8.js +158 -0
  57. package/dist/vendor-X3mXJl51.js +1931 -0
  58. package/dist/web-types.json +16 -16
  59. package/package.json +38 -37
  60. package/dist/composables/index-DRJor0yQ.js +0 -727
  61. package/dist/index-BpodgU9n.js +0 -54
  62. package/dist/utils/index-lIBwzXNM.js +0 -157
  63. package/dist/vendor-Dt9dVBgA.js +0 -1896
@@ -1,1896 +0,0 @@
1
- import { g as Vt } from "./index-BpodgU9n.js";
2
- const Ee = /\d/, Pe = ["-", "_", "/", "."];
3
- function Le(t = "") {
4
- if (!Ee.test(t))
5
- return t !== t.toLowerCase();
6
- }
7
- function Fe(t, e) {
8
- const r = Pe, n = [];
9
- if (!t || typeof t != "string")
10
- return n;
11
- let a = "", i, f;
12
- for (const s of t) {
13
- const o = r.includes(s);
14
- if (o === !0) {
15
- n.push(a), a = "", i = void 0;
16
- continue;
17
- }
18
- const h = Le(s);
19
- if (f === !1) {
20
- if (i === !1 && h === !0) {
21
- n.push(a), a = s, i = h;
22
- continue;
23
- }
24
- if (i === !0 && h === !1 && a.length > 1) {
25
- const c = a.at(-1);
26
- n.push(a.slice(0, Math.max(0, a.length - 1))), a = c + s, i = h;
27
- continue;
28
- }
29
- }
30
- a += s, i = h, f = o;
31
- }
32
- return n.push(a), n;
33
- }
34
- function Ye(t) {
35
- return t ? t[0].toUpperCase() + t.slice(1) : "";
36
- }
37
- function Be(t) {
38
- return t ? t[0].toLowerCase() + t.slice(1) : "";
39
- }
40
- function je(t, e) {
41
- return t ? (Array.isArray(t) ? t : Fe(t)).map((r) => Ye(r)).join("") : "";
42
- }
43
- function yn(t, e) {
44
- return Be(je(t || ""));
45
- }
46
- var B = "top", V = "bottom", q = "right", j = "left", qt = "auto", kt = [B, V, q, j], mt = "start", Dt = "end", ze = "clippingParents", Ae = "viewport", Ot = "popper", Ne = "reference", se = /* @__PURE__ */ kt.reduce(function(t, e) {
47
- return t.concat([e + "-" + mt, e + "-" + Dt]);
48
- }, []), Oe = /* @__PURE__ */ [].concat(kt, [qt]).reduce(function(t, e) {
49
- return t.concat([e, e + "-" + mt, e + "-" + Dt]);
50
- }, []), Ue = "beforeRead", Ie = "read", We = "afterRead", Ve = "beforeMain", qe = "main", Ze = "afterMain", Xe = "beforeWrite", Ge = "write", Qe = "afterWrite", Je = [Ue, Ie, We, Ve, qe, Ze, Xe, Ge, Qe];
51
- function X(t) {
52
- return t.split("-")[0];
53
- }
54
- function z(t) {
55
- if (t == null)
56
- return window;
57
- if (t.toString() !== "[object Window]") {
58
- var e = t.ownerDocument;
59
- return e && e.defaultView || window;
60
- }
61
- return t;
62
- }
63
- function ut(t) {
64
- var e = z(t).Element;
65
- return t instanceof e || t instanceof Element;
66
- }
67
- function N(t) {
68
- var e = z(t).HTMLElement;
69
- return t instanceof e || t instanceof HTMLElement;
70
- }
71
- function Zt(t) {
72
- if (typeof ShadowRoot > "u")
73
- return !1;
74
- var e = z(t).ShadowRoot;
75
- return t instanceof e || t instanceof ShadowRoot;
76
- }
77
- var ft = Math.max, Yt = Math.min, bt = Math.round;
78
- function Ut() {
79
- var t = navigator.userAgentData;
80
- return t != null && t.brands && Array.isArray(t.brands) ? t.brands.map(function(e) {
81
- return e.brand + "/" + e.version;
82
- }).join(" ") : navigator.userAgent;
83
- }
84
- function _e() {
85
- return !/^((?!chrome|android).)*safari/i.test(Ut());
86
- }
87
- function yt(t, e, r) {
88
- e === void 0 && (e = !1), r === void 0 && (r = !1);
89
- var n = t.getBoundingClientRect(), a = 1, i = 1;
90
- e && N(t) && (a = t.offsetWidth > 0 && bt(n.width) / t.offsetWidth || 1, i = t.offsetHeight > 0 && bt(n.height) / t.offsetHeight || 1);
91
- var f = ut(t) ? z(t) : window, s = f.visualViewport, o = !_e() && r, h = (n.left + (o && s ? s.offsetLeft : 0)) / a, c = (n.top + (o && s ? s.offsetTop : 0)) / i, M = n.width / a, y = n.height / i;
92
- return {
93
- width: M,
94
- height: y,
95
- top: c,
96
- right: h + M,
97
- bottom: c + y,
98
- left: h,
99
- x: h,
100
- y: c
101
- };
102
- }
103
- function Xt(t) {
104
- var e = yt(t), r = t.offsetWidth, n = t.offsetHeight;
105
- return Math.abs(e.width - r) <= 1 && (r = e.width), Math.abs(e.height - n) <= 1 && (n = e.height), {
106
- x: t.offsetLeft,
107
- y: t.offsetTop,
108
- width: r,
109
- height: n
110
- };
111
- }
112
- function Se(t, e) {
113
- var r = e.getRootNode && e.getRootNode();
114
- if (t.contains(e))
115
- return !0;
116
- if (r && Zt(r)) {
117
- var n = e;
118
- do {
119
- if (n && t.isSameNode(n))
120
- return !0;
121
- n = n.parentNode || n.host;
122
- } while (n);
123
- }
124
- return !1;
125
- }
126
- function G(t) {
127
- return t ? (t.nodeName || "").toLowerCase() : null;
128
- }
129
- function rt(t) {
130
- return z(t).getComputedStyle(t);
131
- }
132
- function Ke(t) {
133
- return ["table", "td", "th"].indexOf(G(t)) >= 0;
134
- }
135
- function it(t) {
136
- return ((ut(t) ? t.ownerDocument : (
137
- // $FlowFixMe[prop-missing]
138
- t.document
139
- )) || window.document).documentElement;
140
- }
141
- function jt(t) {
142
- return G(t) === "html" ? t : (
143
- // this is a quicker (but less type safe) way to save quite some bytes from the bundle
144
- // $FlowFixMe[incompatible-return]
145
- // $FlowFixMe[prop-missing]
146
- t.assignedSlot || // step into the shadow DOM of the parent of a slotted node
147
- t.parentNode || // DOM Element detected
148
- (Zt(t) ? t.host : null) || // ShadowRoot detected
149
- // $FlowFixMe[incompatible-call]: HTMLElement is a Node
150
- it(t)
151
- );
152
- }
153
- function fe(t) {
154
- return !N(t) || // https://github.com/popperjs/popper-core/issues/837
155
- rt(t).position === "fixed" ? null : t.offsetParent;
156
- }
157
- function tr(t) {
158
- var e = /firefox/i.test(Ut()), r = /Trident/i.test(Ut());
159
- if (r && N(t)) {
160
- var n = rt(t);
161
- if (n.position === "fixed")
162
- return null;
163
- }
164
- var a = jt(t);
165
- for (Zt(a) && (a = a.host); N(a) && ["html", "body"].indexOf(G(a)) < 0; ) {
166
- var i = rt(a);
167
- if (i.transform !== "none" || i.perspective !== "none" || i.contain === "paint" || ["transform", "perspective"].indexOf(i.willChange) !== -1 || e && i.willChange === "filter" || e && i.filter && i.filter !== "none")
168
- return a;
169
- a = a.parentNode;
170
- }
171
- return null;
172
- }
173
- function Rt(t) {
174
- for (var e = z(t), r = fe(t); r && Ke(r) && rt(r).position === "static"; )
175
- r = fe(r);
176
- return r && (G(r) === "html" || G(r) === "body" && rt(r).position === "static") ? e : r || tr(t) || e;
177
- }
178
- function Gt(t) {
179
- return ["top", "bottom"].indexOf(t) >= 0 ? "x" : "y";
180
- }
181
- function St(t, e, r) {
182
- return ft(t, Yt(e, r));
183
- }
184
- function er(t, e, r) {
185
- var n = St(t, e, r);
186
- return n > r ? r : n;
187
- }
188
- function $e() {
189
- return {
190
- top: 0,
191
- right: 0,
192
- bottom: 0,
193
- left: 0
194
- };
195
- }
196
- function De(t) {
197
- return Object.assign({}, $e(), t);
198
- }
199
- function ke(t, e) {
200
- return e.reduce(function(r, n) {
201
- return r[n] = t, r;
202
- }, {});
203
- }
204
- var rr = function(e, r) {
205
- return e = typeof e == "function" ? e(Object.assign({}, r.rects, {
206
- placement: r.placement
207
- })) : e, De(typeof e != "number" ? e : ke(e, kt));
208
- };
209
- function nr(t) {
210
- var e, r = t.state, n = t.name, a = t.options, i = r.elements.arrow, f = r.modifiersData.popperOffsets, s = X(r.placement), o = Gt(s), h = [j, q].indexOf(s) >= 0, c = h ? "height" : "width";
211
- if (!(!i || !f)) {
212
- var M = rr(a.padding, r), y = Xt(i), g = o === "y" ? B : j, w = o === "y" ? V : q, l = r.rects.reference[c] + r.rects.reference[o] - f[o] - r.rects.popper[c], u = f[o] - r.rects.reference[o], p = Rt(i), v = p ? o === "y" ? p.clientHeight || 0 : p.clientWidth || 0 : 0, d = l / 2 - u / 2, m = M[g], x = v - y[c] - M[w], A = v / 2 - y[c] / 2 + d, O = St(m, A, x), S = o;
213
- r.modifiersData[n] = (e = {}, e[S] = O, e.centerOffset = O - A, e);
214
- }
215
- }
216
- function ar(t) {
217
- var e = t.state, r = t.options, n = r.element, a = n === void 0 ? "[data-popper-arrow]" : n;
218
- a != null && (typeof a == "string" && (a = e.elements.popper.querySelector(a), !a) || Se(e.elements.popper, a) && (e.elements.arrow = a));
219
- }
220
- const xn = {
221
- name: "arrow",
222
- enabled: !0,
223
- phase: "main",
224
- fn: nr,
225
- effect: ar,
226
- requires: ["popperOffsets"],
227
- requiresIfExists: ["preventOverflow"]
228
- };
229
- function xt(t) {
230
- return t.split("-")[1];
231
- }
232
- var ir = {
233
- top: "auto",
234
- right: "auto",
235
- bottom: "auto",
236
- left: "auto"
237
- };
238
- function or(t, e) {
239
- var r = t.x, n = t.y, a = e.devicePixelRatio || 1;
240
- return {
241
- x: bt(r * a) / a || 0,
242
- y: bt(n * a) / a || 0
243
- };
244
- }
245
- function ue(t) {
246
- var e, r = t.popper, n = t.popperRect, a = t.placement, i = t.variation, f = t.offsets, s = t.position, o = t.gpuAcceleration, h = t.adaptive, c = t.roundOffsets, M = t.isFixed, y = f.x, g = y === void 0 ? 0 : y, w = f.y, l = w === void 0 ? 0 : w, u = typeof c == "function" ? c({
247
- x: g,
248
- y: l
249
- }) : {
250
- x: g,
251
- y: l
252
- };
253
- g = u.x, l = u.y;
254
- var p = f.hasOwnProperty("x"), v = f.hasOwnProperty("y"), d = j, m = B, x = window;
255
- if (h) {
256
- var A = Rt(r), O = "clientHeight", S = "clientWidth";
257
- if (A === z(r) && (A = it(r), rt(A).position !== "static" && s === "absolute" && (O = "scrollHeight", S = "scrollWidth")), A = A, a === B || (a === j || a === q) && i === Dt) {
258
- m = V;
259
- var _ = M && A === x && x.visualViewport ? x.visualViewport.height : (
260
- // $FlowFixMe[prop-missing]
261
- A[O]
262
- );
263
- l -= _ - n.height, l *= o ? 1 : -1;
264
- }
265
- if (a === j || (a === B || a === V) && i === Dt) {
266
- d = q;
267
- var $ = M && A === x && x.visualViewport ? x.visualViewport.width : (
268
- // $FlowFixMe[prop-missing]
269
- A[S]
270
- );
271
- g -= $ - n.width, g *= o ? 1 : -1;
272
- }
273
- }
274
- var D = Object.assign({
275
- position: s
276
- }, h && ir), T = c === !0 ? or({
277
- x: g,
278
- y: l
279
- }, z(r)) : {
280
- x: g,
281
- y: l
282
- };
283
- if (g = T.x, l = T.y, o) {
284
- var k;
285
- return Object.assign({}, D, (k = {}, k[m] = v ? "0" : "", k[d] = p ? "0" : "", k.transform = (x.devicePixelRatio || 1) <= 1 ? "translate(" + g + "px, " + l + "px)" : "translate3d(" + g + "px, " + l + "px, 0)", k));
286
- }
287
- return Object.assign({}, D, (e = {}, e[m] = v ? l + "px" : "", e[d] = p ? g + "px" : "", e.transform = "", e));
288
- }
289
- function sr(t) {
290
- var e = t.state, r = t.options, n = r.gpuAcceleration, a = n === void 0 ? !0 : n, i = r.adaptive, f = i === void 0 ? !0 : i, s = r.roundOffsets, o = s === void 0 ? !0 : s, h = {
291
- placement: X(e.placement),
292
- variation: xt(e.placement),
293
- popper: e.elements.popper,
294
- popperRect: e.rects.popper,
295
- gpuAcceleration: a,
296
- isFixed: e.options.strategy === "fixed"
297
- };
298
- e.modifiersData.popperOffsets != null && (e.styles.popper = Object.assign({}, e.styles.popper, ue(Object.assign({}, h, {
299
- offsets: e.modifiersData.popperOffsets,
300
- position: e.options.strategy,
301
- adaptive: f,
302
- roundOffsets: o
303
- })))), e.modifiersData.arrow != null && (e.styles.arrow = Object.assign({}, e.styles.arrow, ue(Object.assign({}, h, {
304
- offsets: e.modifiersData.arrow,
305
- position: "absolute",
306
- adaptive: !1,
307
- roundOffsets: o
308
- })))), e.attributes.popper = Object.assign({}, e.attributes.popper, {
309
- "data-popper-placement": e.placement
310
- });
311
- }
312
- const fr = {
313
- name: "computeStyles",
314
- enabled: !0,
315
- phase: "beforeWrite",
316
- fn: sr,
317
- data: {}
318
- };
319
- var Ct = {
320
- passive: !0
321
- };
322
- function ur(t) {
323
- var e = t.state, r = t.instance, n = t.options, a = n.scroll, i = a === void 0 ? !0 : a, f = n.resize, s = f === void 0 ? !0 : f, o = z(e.elements.popper), h = [].concat(e.scrollParents.reference, e.scrollParents.popper);
324
- return i && h.forEach(function(c) {
325
- c.addEventListener("scroll", r.update, Ct);
326
- }), s && o.addEventListener("resize", r.update, Ct), function() {
327
- i && h.forEach(function(c) {
328
- c.removeEventListener("scroll", r.update, Ct);
329
- }), s && o.removeEventListener("resize", r.update, Ct);
330
- };
331
- }
332
- const cr = {
333
- name: "eventListeners",
334
- enabled: !0,
335
- phase: "write",
336
- fn: function() {
337
- },
338
- effect: ur,
339
- data: {}
340
- };
341
- var lr = {
342
- left: "right",
343
- right: "left",
344
- bottom: "top",
345
- top: "bottom"
346
- };
347
- function Et(t) {
348
- return t.replace(/left|right|bottom|top/g, function(e) {
349
- return lr[e];
350
- });
351
- }
352
- var hr = {
353
- start: "end",
354
- end: "start"
355
- };
356
- function ce(t) {
357
- return t.replace(/start|end/g, function(e) {
358
- return hr[e];
359
- });
360
- }
361
- function Qt(t) {
362
- var e = z(t), r = e.pageXOffset, n = e.pageYOffset;
363
- return {
364
- scrollLeft: r,
365
- scrollTop: n
366
- };
367
- }
368
- function Jt(t) {
369
- return yt(it(t)).left + Qt(t).scrollLeft;
370
- }
371
- function pr(t, e) {
372
- var r = z(t), n = it(t), a = r.visualViewport, i = n.clientWidth, f = n.clientHeight, s = 0, o = 0;
373
- if (a) {
374
- i = a.width, f = a.height;
375
- var h = _e();
376
- (h || !h && e === "fixed") && (s = a.offsetLeft, o = a.offsetTop);
377
- }
378
- return {
379
- width: i,
380
- height: f,
381
- x: s + Jt(t),
382
- y: o
383
- };
384
- }
385
- function dr(t) {
386
- var e, r = it(t), n = Qt(t), a = (e = t.ownerDocument) == null ? void 0 : e.body, i = ft(r.scrollWidth, r.clientWidth, a ? a.scrollWidth : 0, a ? a.clientWidth : 0), f = ft(r.scrollHeight, r.clientHeight, a ? a.scrollHeight : 0, a ? a.clientHeight : 0), s = -n.scrollLeft + Jt(t), o = -n.scrollTop;
387
- return rt(a || r).direction === "rtl" && (s += ft(r.clientWidth, a ? a.clientWidth : 0) - i), {
388
- width: i,
389
- height: f,
390
- x: s,
391
- y: o
392
- };
393
- }
394
- function Kt(t) {
395
- var e = rt(t), r = e.overflow, n = e.overflowX, a = e.overflowY;
396
- return /auto|scroll|overlay|hidden/.test(r + a + n);
397
- }
398
- function Re(t) {
399
- return ["html", "body", "#document"].indexOf(G(t)) >= 0 ? t.ownerDocument.body : N(t) && Kt(t) ? t : Re(jt(t));
400
- }
401
- function $t(t, e) {
402
- var r;
403
- e === void 0 && (e = []);
404
- var n = Re(t), a = n === ((r = t.ownerDocument) == null ? void 0 : r.body), i = z(n), f = a ? [i].concat(i.visualViewport || [], Kt(n) ? n : []) : n, s = e.concat(f);
405
- return a ? s : (
406
- // $FlowFixMe[incompatible-call]: isBody tells us target will be an HTMLElement here
407
- s.concat($t(jt(f)))
408
- );
409
- }
410
- function It(t) {
411
- return Object.assign({}, t, {
412
- left: t.x,
413
- top: t.y,
414
- right: t.x + t.width,
415
- bottom: t.y + t.height
416
- });
417
- }
418
- function vr(t, e) {
419
- var r = yt(t, !1, e === "fixed");
420
- return r.top = r.top + t.clientTop, r.left = r.left + t.clientLeft, r.bottom = r.top + t.clientHeight, r.right = r.left + t.clientWidth, r.width = t.clientWidth, r.height = t.clientHeight, r.x = r.left, r.y = r.top, r;
421
- }
422
- function le(t, e, r) {
423
- return e === Ae ? It(pr(t, r)) : ut(e) ? vr(e, r) : It(dr(it(t)));
424
- }
425
- function gr(t) {
426
- var e = $t(jt(t)), r = ["absolute", "fixed"].indexOf(rt(t).position) >= 0, n = r && N(t) ? Rt(t) : t;
427
- return ut(n) ? e.filter(function(a) {
428
- return ut(a) && Se(a, n) && G(a) !== "body";
429
- }) : [];
430
- }
431
- function mr(t, e, r, n) {
432
- var a = e === "clippingParents" ? gr(t) : [].concat(e), i = [].concat(a, [r]), f = i[0], s = i.reduce(function(o, h) {
433
- var c = le(t, h, n);
434
- return o.top = ft(c.top, o.top), o.right = Yt(c.right, o.right), o.bottom = Yt(c.bottom, o.bottom), o.left = ft(c.left, o.left), o;
435
- }, le(t, f, n));
436
- return s.width = s.right - s.left, s.height = s.bottom - s.top, s.x = s.left, s.y = s.top, s;
437
- }
438
- function Te(t) {
439
- var e = t.reference, r = t.element, n = t.placement, a = n ? X(n) : null, i = n ? xt(n) : null, f = e.x + e.width / 2 - r.width / 2, s = e.y + e.height / 2 - r.height / 2, o;
440
- switch (a) {
441
- case B:
442
- o = {
443
- x: f,
444
- y: e.y - r.height
445
- };
446
- break;
447
- case V:
448
- o = {
449
- x: f,
450
- y: e.y + e.height
451
- };
452
- break;
453
- case q:
454
- o = {
455
- x: e.x + e.width,
456
- y: s
457
- };
458
- break;
459
- case j:
460
- o = {
461
- x: e.x - r.width,
462
- y: s
463
- };
464
- break;
465
- default:
466
- o = {
467
- x: e.x,
468
- y: e.y
469
- };
470
- }
471
- var h = a ? Gt(a) : null;
472
- if (h != null) {
473
- var c = h === "y" ? "height" : "width";
474
- switch (i) {
475
- case mt:
476
- o[h] = o[h] - (e[c] / 2 - r[c] / 2);
477
- break;
478
- case Dt:
479
- o[h] = o[h] + (e[c] / 2 - r[c] / 2);
480
- break;
481
- }
482
- }
483
- return o;
484
- }
485
- function te(t, e) {
486
- e === void 0 && (e = {});
487
- var r = e, n = r.placement, a = n === void 0 ? t.placement : n, i = r.strategy, f = i === void 0 ? t.strategy : i, s = r.boundary, o = s === void 0 ? ze : s, h = r.rootBoundary, c = h === void 0 ? Ae : h, M = r.elementContext, y = M === void 0 ? Ot : M, g = r.altBoundary, w = g === void 0 ? !1 : g, l = r.padding, u = l === void 0 ? 0 : l, p = De(typeof u != "number" ? u : ke(u, kt)), v = y === Ot ? Ne : Ot, d = t.rects.popper, m = t.elements[w ? v : y], x = mr(ut(m) ? m : m.contextElement || it(t.elements.popper), o, c, f), A = yt(t.elements.reference), O = Te({
488
- reference: A,
489
- element: d,
490
- placement: a
491
- }), S = It(Object.assign({}, d, O)), _ = y === Ot ? S : A, $ = {
492
- top: x.top - _.top + p.top,
493
- bottom: _.bottom - x.bottom + p.bottom,
494
- left: x.left - _.left + p.left,
495
- right: _.right - x.right + p.right
496
- }, D = t.modifiersData.offset;
497
- if (y === Ot && D) {
498
- var T = D[a];
499
- Object.keys($).forEach(function(k) {
500
- var C = [q, V].indexOf(k) >= 0 ? 1 : -1, E = [B, V].indexOf(k) >= 0 ? "y" : "x";
501
- $[k] += T[E] * C;
502
- });
503
- }
504
- return $;
505
- }
506
- function br(t, e) {
507
- e === void 0 && (e = {});
508
- var r = e, n = r.placement, a = r.boundary, i = r.rootBoundary, f = r.padding, s = r.flipVariations, o = r.allowedAutoPlacements, h = o === void 0 ? Oe : o, c = xt(n), M = c ? s ? se : se.filter(function(w) {
509
- return xt(w) === c;
510
- }) : kt, y = M.filter(function(w) {
511
- return h.indexOf(w) >= 0;
512
- });
513
- y.length === 0 && (y = M);
514
- var g = y.reduce(function(w, l) {
515
- return w[l] = te(t, {
516
- placement: l,
517
- boundary: a,
518
- rootBoundary: i,
519
- padding: f
520
- })[X(l)], w;
521
- }, {});
522
- return Object.keys(g).sort(function(w, l) {
523
- return g[w] - g[l];
524
- });
525
- }
526
- function yr(t) {
527
- if (X(t) === qt)
528
- return [];
529
- var e = Et(t);
530
- return [ce(t), e, ce(e)];
531
- }
532
- function xr(t) {
533
- var e = t.state, r = t.options, n = t.name;
534
- if (!e.modifiersData[n]._skip) {
535
- for (var a = r.mainAxis, i = a === void 0 ? !0 : a, f = r.altAxis, s = f === void 0 ? !0 : f, o = r.fallbackPlacements, h = r.padding, c = r.boundary, M = r.rootBoundary, y = r.altBoundary, g = r.flipVariations, w = g === void 0 ? !0 : g, l = r.allowedAutoPlacements, u = e.options.placement, p = X(u), v = p === u, d = o || (v || !w ? [Et(u)] : yr(u)), m = [u].concat(d).reduce(function(nt, Z) {
536
- return nt.concat(X(Z) === qt ? br(e, {
537
- placement: Z,
538
- boundary: c,
539
- rootBoundary: M,
540
- padding: h,
541
- flipVariations: w,
542
- allowedAutoPlacements: l
543
- }) : Z);
544
- }, []), x = e.rects.reference, A = e.rects.popper, O = /* @__PURE__ */ new Map(), S = !0, _ = m[0], $ = 0; $ < m.length; $++) {
545
- var D = m[$], T = X(D), k = xt(D) === mt, C = [B, V].indexOf(T) >= 0, E = C ? "width" : "height", H = te(e, {
546
- placement: D,
547
- boundary: c,
548
- rootBoundary: M,
549
- altBoundary: y,
550
- padding: h
551
- }), P = C ? k ? q : j : k ? V : B;
552
- x[E] > A[E] && (P = Et(P));
553
- var U = Et(P), F = [];
554
- if (i && F.push(H[T] <= 0), s && F.push(H[P] <= 0, H[U] <= 0), F.every(function(nt) {
555
- return nt;
556
- })) {
557
- _ = D, S = !1;
558
- break;
559
- }
560
- O.set(D, F);
561
- }
562
- if (S)
563
- for (var Q = w ? 3 : 1, L = function(Z) {
564
- var ot = m.find(function(ct) {
565
- var tt = O.get(ct);
566
- if (tt)
567
- return tt.slice(0, Z).every(function(lt) {
568
- return lt;
569
- });
570
- });
571
- if (ot)
572
- return _ = ot, "break";
573
- }, J = Q; J > 0; J--) {
574
- var K = L(J);
575
- if (K === "break") break;
576
- }
577
- e.placement !== _ && (e.modifiersData[n]._skip = !0, e.placement = _, e.reset = !0);
578
- }
579
- }
580
- const wn = {
581
- name: "flip",
582
- enabled: !0,
583
- phase: "main",
584
- fn: xr,
585
- requiresIfExists: ["offset"],
586
- data: {
587
- _skip: !1
588
- }
589
- };
590
- function wr(t, e, r) {
591
- var n = X(t), a = [j, B].indexOf(n) >= 0 ? -1 : 1, i = typeof r == "function" ? r(Object.assign({}, e, {
592
- placement: t
593
- })) : r, f = i[0], s = i[1];
594
- return f = f || 0, s = (s || 0) * a, [j, q].indexOf(n) >= 0 ? {
595
- x: s,
596
- y: f
597
- } : {
598
- x: f,
599
- y: s
600
- };
601
- }
602
- function Mr(t) {
603
- var e = t.state, r = t.options, n = t.name, a = r.offset, i = a === void 0 ? [0, 0] : a, f = Oe.reduce(function(c, M) {
604
- return c[M] = wr(M, e.rects, i), c;
605
- }, {}), s = f[e.placement], o = s.x, h = s.y;
606
- e.modifiersData.popperOffsets != null && (e.modifiersData.popperOffsets.x += o, e.modifiersData.popperOffsets.y += h), e.modifiersData[n] = f;
607
- }
608
- const Mn = {
609
- name: "offset",
610
- enabled: !0,
611
- phase: "main",
612
- requires: ["popperOffsets"],
613
- fn: Mr
614
- };
615
- function Ar(t) {
616
- return t === "x" ? "y" : "x";
617
- }
618
- function Or(t) {
619
- var e = t.state, r = t.options, n = t.name, a = r.mainAxis, i = a === void 0 ? !0 : a, f = r.altAxis, s = f === void 0 ? !1 : f, o = r.boundary, h = r.rootBoundary, c = r.altBoundary, M = r.padding, y = r.tether, g = y === void 0 ? !0 : y, w = r.tetherOffset, l = w === void 0 ? 0 : w, u = te(e, {
620
- boundary: o,
621
- rootBoundary: h,
622
- padding: M,
623
- altBoundary: c
624
- }), p = X(e.placement), v = xt(e.placement), d = !v, m = Gt(p), x = Ar(m), A = e.modifiersData.popperOffsets, O = e.rects.reference, S = e.rects.popper, _ = typeof l == "function" ? l(Object.assign({}, e.rects, {
625
- placement: e.placement
626
- })) : l, $ = typeof _ == "number" ? {
627
- mainAxis: _,
628
- altAxis: _
629
- } : Object.assign({
630
- mainAxis: 0,
631
- altAxis: 0
632
- }, _), D = e.modifiersData.offset ? e.modifiersData.offset[e.placement] : null, T = {
633
- x: 0,
634
- y: 0
635
- };
636
- if (A) {
637
- if (i) {
638
- var k, C = m === "y" ? B : j, E = m === "y" ? V : q, H = m === "y" ? "height" : "width", P = A[m], U = P + u[C], F = P - u[E], Q = g ? -S[H] / 2 : 0, L = v === mt ? O[H] : S[H], J = v === mt ? -S[H] : -O[H], K = e.elements.arrow, nt = g && K ? Xt(K) : {
639
- width: 0,
640
- height: 0
641
- }, Z = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : $e(), ot = Z[C], ct = Z[E], tt = St(0, O[H], nt[H]), lt = d ? O[H] / 2 - Q - tt - ot - $.mainAxis : L - tt - ot - $.mainAxis, Tt = d ? -O[H] / 2 + Q + tt + ct + $.mainAxis : J + tt + ct + $.mainAxis, st = e.elements.arrow && Rt(e.elements.arrow), wt = st ? m === "y" ? st.clientTop || 0 : st.clientLeft || 0 : 0, ht = (k = D == null ? void 0 : D[m]) != null ? k : 0, pt = P + lt - ht - wt, dt = P + Tt - ht, vt = St(g ? Yt(U, pt) : U, P, g ? ft(F, dt) : F);
642
- A[m] = vt, T[m] = vt - P;
643
- }
644
- if (s) {
645
- var gt, Mt = m === "x" ? B : j, At = m === "x" ? V : q, at = A[x], Ht = x === "y" ? "height" : "width", ee = at + u[Mt], re = at - u[At], Nt = [B, j].indexOf(p) !== -1, ne = (gt = D == null ? void 0 : D[x]) != null ? gt : 0, ae = Nt ? ee : at - O[Ht] - S[Ht] - ne + $.altAxis, ie = Nt ? at + O[Ht] + S[Ht] - ne - $.altAxis : re, oe = g && Nt ? er(ae, at, ie) : St(g ? ae : ee, at, g ? ie : re);
646
- A[x] = oe, T[x] = oe - at;
647
- }
648
- e.modifiersData[n] = T;
649
- }
650
- }
651
- const An = {
652
- name: "preventOverflow",
653
- enabled: !0,
654
- phase: "main",
655
- fn: Or,
656
- requiresIfExists: ["offset"]
657
- };
658
- function _r(t) {
659
- return {
660
- scrollLeft: t.scrollLeft,
661
- scrollTop: t.scrollTop
662
- };
663
- }
664
- function Sr(t) {
665
- return t === z(t) || !N(t) ? Qt(t) : _r(t);
666
- }
667
- function $r(t) {
668
- var e = t.getBoundingClientRect(), r = bt(e.width) / t.offsetWidth || 1, n = bt(e.height) / t.offsetHeight || 1;
669
- return r !== 1 || n !== 1;
670
- }
671
- function Dr(t, e, r) {
672
- r === void 0 && (r = !1);
673
- var n = N(e), a = N(e) && $r(e), i = it(e), f = yt(t, a, r), s = {
674
- scrollLeft: 0,
675
- scrollTop: 0
676
- }, o = {
677
- x: 0,
678
- y: 0
679
- };
680
- return (n || !n && !r) && ((G(e) !== "body" || // https://github.com/popperjs/popper-core/issues/1078
681
- Kt(i)) && (s = Sr(e)), N(e) ? (o = yt(e, !0), o.x += e.clientLeft, o.y += e.clientTop) : i && (o.x = Jt(i))), {
682
- x: f.left + s.scrollLeft - o.x,
683
- y: f.top + s.scrollTop - o.y,
684
- width: f.width,
685
- height: f.height
686
- };
687
- }
688
- function kr(t) {
689
- var e = /* @__PURE__ */ new Map(), r = /* @__PURE__ */ new Set(), n = [];
690
- t.forEach(function(i) {
691
- e.set(i.name, i);
692
- });
693
- function a(i) {
694
- r.add(i.name);
695
- var f = [].concat(i.requires || [], i.requiresIfExists || []);
696
- f.forEach(function(s) {
697
- if (!r.has(s)) {
698
- var o = e.get(s);
699
- o && a(o);
700
- }
701
- }), n.push(i);
702
- }
703
- return t.forEach(function(i) {
704
- r.has(i.name) || a(i);
705
- }), n;
706
- }
707
- function Rr(t) {
708
- var e = kr(t);
709
- return Je.reduce(function(r, n) {
710
- return r.concat(e.filter(function(a) {
711
- return a.phase === n;
712
- }));
713
- }, []);
714
- }
715
- function Tr(t) {
716
- var e;
717
- return function() {
718
- return e || (e = new Promise(function(r) {
719
- Promise.resolve().then(function() {
720
- e = void 0, r(t());
721
- });
722
- })), e;
723
- };
724
- }
725
- function Hr(t) {
726
- var e = t.reduce(function(r, n) {
727
- var a = r[n.name];
728
- return r[n.name] = a ? Object.assign({}, a, n, {
729
- options: Object.assign({}, a.options, n.options),
730
- data: Object.assign({}, a.data, n.data)
731
- }) : n, r;
732
- }, {});
733
- return Object.keys(e).map(function(r) {
734
- return e[r];
735
- });
736
- }
737
- var he = {
738
- placement: "bottom",
739
- modifiers: [],
740
- strategy: "absolute"
741
- };
742
- function pe() {
743
- for (var t = arguments.length, e = new Array(t), r = 0; r < t; r++)
744
- e[r] = arguments[r];
745
- return !e.some(function(n) {
746
- return !(n && typeof n.getBoundingClientRect == "function");
747
- });
748
- }
749
- function On(t) {
750
- t === void 0 && (t = {});
751
- var e = t, r = e.defaultModifiers, n = r === void 0 ? [] : r, a = e.defaultOptions, i = a === void 0 ? he : a;
752
- return function(s, o, h) {
753
- h === void 0 && (h = i);
754
- var c = {
755
- placement: "bottom",
756
- orderedModifiers: [],
757
- options: Object.assign({}, he, i),
758
- modifiersData: {},
759
- elements: {
760
- reference: s,
761
- popper: o
762
- },
763
- attributes: {},
764
- styles: {}
765
- }, M = [], y = !1, g = {
766
- state: c,
767
- setOptions: function(p) {
768
- var v = typeof p == "function" ? p(c.options) : p;
769
- l(), c.options = Object.assign({}, i, c.options, v), c.scrollParents = {
770
- reference: ut(s) ? $t(s) : s.contextElement ? $t(s.contextElement) : [],
771
- popper: $t(o)
772
- };
773
- var d = Rr(Hr([].concat(n, c.options.modifiers)));
774
- return c.orderedModifiers = d.filter(function(m) {
775
- return m.enabled;
776
- }), w(), g.update();
777
- },
778
- // Sync update – it will always be executed, even if not necessary. This
779
- // is useful for low frequency updates where sync behavior simplifies the
780
- // logic.
781
- // For high frequency updates (e.g. `resize` and `scroll` events), always
782
- // prefer the async Popper#update method
783
- forceUpdate: function() {
784
- if (!y) {
785
- var p = c.elements, v = p.reference, d = p.popper;
786
- if (pe(v, d)) {
787
- c.rects = {
788
- reference: Dr(v, Rt(d), c.options.strategy === "fixed"),
789
- popper: Xt(d)
790
- }, c.reset = !1, c.placement = c.options.placement, c.orderedModifiers.forEach(function($) {
791
- return c.modifiersData[$.name] = Object.assign({}, $.data);
792
- });
793
- for (var m = 0; m < c.orderedModifiers.length; m++) {
794
- if (c.reset === !0) {
795
- c.reset = !1, m = -1;
796
- continue;
797
- }
798
- var x = c.orderedModifiers[m], A = x.fn, O = x.options, S = O === void 0 ? {} : O, _ = x.name;
799
- typeof A == "function" && (c = A({
800
- state: c,
801
- options: S,
802
- name: _,
803
- instance: g
804
- }) || c);
805
- }
806
- }
807
- }
808
- },
809
- // Async and optimistically optimized update – it will not be executed if
810
- // not necessary (debounced to run at most once-per-tick)
811
- update: Tr(function() {
812
- return new Promise(function(u) {
813
- g.forceUpdate(), u(c);
814
- });
815
- }),
816
- destroy: function() {
817
- l(), y = !0;
818
- }
819
- };
820
- if (!pe(s, o))
821
- return g;
822
- g.setOptions(h).then(function(u) {
823
- !y && h.onFirstUpdate && h.onFirstUpdate(u);
824
- });
825
- function w() {
826
- c.orderedModifiers.forEach(function(u) {
827
- var p = u.name, v = u.options, d = v === void 0 ? {} : v, m = u.effect;
828
- if (typeof m == "function") {
829
- var x = m({
830
- state: c,
831
- name: p,
832
- instance: g,
833
- options: d
834
- }), A = function() {
835
- };
836
- M.push(x || A);
837
- }
838
- });
839
- }
840
- function l() {
841
- M.forEach(function(u) {
842
- return u();
843
- }), M = [];
844
- }
845
- return g;
846
- };
847
- }
848
- function Cr(t) {
849
- var e = t.state, r = t.name;
850
- e.modifiersData[r] = Te({
851
- reference: e.rects.reference,
852
- element: e.rects.popper,
853
- placement: e.placement
854
- });
855
- }
856
- const Er = {
857
- name: "popperOffsets",
858
- enabled: !0,
859
- phase: "read",
860
- fn: Cr,
861
- data: {}
862
- };
863
- function Pr(t) {
864
- var e = t.state;
865
- Object.keys(e.elements).forEach(function(r) {
866
- var n = e.styles[r] || {}, a = e.attributes[r] || {}, i = e.elements[r];
867
- !N(i) || !G(i) || (Object.assign(i.style, n), Object.keys(a).forEach(function(f) {
868
- var s = a[f];
869
- s === !1 ? i.removeAttribute(f) : i.setAttribute(f, s === !0 ? "" : s);
870
- }));
871
- });
872
- }
873
- function Lr(t) {
874
- var e = t.state, r = {
875
- popper: {
876
- position: e.options.strategy,
877
- left: "0",
878
- top: "0",
879
- margin: "0"
880
- },
881
- arrow: {
882
- position: "absolute"
883
- },
884
- reference: {}
885
- };
886
- return Object.assign(e.elements.popper.style, r.popper), e.styles = r, e.elements.arrow && Object.assign(e.elements.arrow.style, r.arrow), function() {
887
- Object.keys(e.elements).forEach(function(n) {
888
- var a = e.elements[n], i = e.attributes[n] || {}, f = Object.keys(e.styles.hasOwnProperty(n) ? e.styles[n] : r[n]), s = f.reduce(function(o, h) {
889
- return o[h] = "", o;
890
- }, {});
891
- !N(a) || !G(a) || (Object.assign(a.style, s), Object.keys(i).forEach(function(o) {
892
- a.removeAttribute(o);
893
- }));
894
- });
895
- };
896
- }
897
- const Fr = {
898
- name: "applyStyles",
899
- enabled: !0,
900
- phase: "write",
901
- fn: Pr,
902
- effect: Lr,
903
- requires: ["computeStyles"]
904
- };
905
- var _n = [cr, Er, fr, Fr];
906
- function Bt(t) {
907
- "@babel/helpers - typeof";
908
- return Bt = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
909
- return typeof e;
910
- } : function(e) {
911
- return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
912
- }, Bt(t);
913
- }
914
- var Yr = /^\s+/, Br = /\s+$/;
915
- function b(t, e) {
916
- if (t = t || "", e = e || {}, t instanceof b)
917
- return t;
918
- if (!(this instanceof b))
919
- return new b(t, e);
920
- var r = jr(t);
921
- this._originalInput = t, this._r = r.r, this._g = r.g, this._b = r.b, this._a = r.a, this._roundA = Math.round(100 * this._a) / 100, this._format = e.format || r.format, this._gradientType = e.gradientType, this._r < 1 && (this._r = Math.round(this._r)), this._g < 1 && (this._g = Math.round(this._g)), this._b < 1 && (this._b = Math.round(this._b)), this._ok = r.ok;
922
- }
923
- b.prototype = {
924
- isDark: function() {
925
- return this.getBrightness() < 128;
926
- },
927
- isLight: function() {
928
- return !this.isDark();
929
- },
930
- isValid: function() {
931
- return this._ok;
932
- },
933
- getOriginalInput: function() {
934
- return this._originalInput;
935
- },
936
- getFormat: function() {
937
- return this._format;
938
- },
939
- getAlpha: function() {
940
- return this._a;
941
- },
942
- getBrightness: function() {
943
- var e = this.toRgb();
944
- return (e.r * 299 + e.g * 587 + e.b * 114) / 1e3;
945
- },
946
- getLuminance: function() {
947
- var e = this.toRgb(), r, n, a, i, f, s;
948
- return r = e.r / 255, n = e.g / 255, a = e.b / 255, r <= 0.03928 ? i = r / 12.92 : i = Math.pow((r + 0.055) / 1.055, 2.4), n <= 0.03928 ? f = n / 12.92 : f = Math.pow((n + 0.055) / 1.055, 2.4), a <= 0.03928 ? s = a / 12.92 : s = Math.pow((a + 0.055) / 1.055, 2.4), 0.2126 * i + 0.7152 * f + 0.0722 * s;
949
- },
950
- setAlpha: function(e) {
951
- return this._a = He(e), this._roundA = Math.round(100 * this._a) / 100, this;
952
- },
953
- toHsv: function() {
954
- var e = ve(this._r, this._g, this._b);
955
- return {
956
- h: e.h * 360,
957
- s: e.s,
958
- v: e.v,
959
- a: this._a
960
- };
961
- },
962
- toHsvString: function() {
963
- var e = ve(this._r, this._g, this._b), r = Math.round(e.h * 360), n = Math.round(e.s * 100), a = Math.round(e.v * 100);
964
- return this._a == 1 ? "hsv(" + r + ", " + n + "%, " + a + "%)" : "hsva(" + r + ", " + n + "%, " + a + "%, " + this._roundA + ")";
965
- },
966
- toHsl: function() {
967
- var e = de(this._r, this._g, this._b);
968
- return {
969
- h: e.h * 360,
970
- s: e.s,
971
- l: e.l,
972
- a: this._a
973
- };
974
- },
975
- toHslString: function() {
976
- var e = de(this._r, this._g, this._b), r = Math.round(e.h * 360), n = Math.round(e.s * 100), a = Math.round(e.l * 100);
977
- return this._a == 1 ? "hsl(" + r + ", " + n + "%, " + a + "%)" : "hsla(" + r + ", " + n + "%, " + a + "%, " + this._roundA + ")";
978
- },
979
- toHex: function(e) {
980
- return ge(this._r, this._g, this._b, e);
981
- },
982
- toHexString: function(e) {
983
- return "#" + this.toHex(e);
984
- },
985
- toHex8: function(e) {
986
- return Ir(this._r, this._g, this._b, this._a, e);
987
- },
988
- toHex8String: function(e) {
989
- return "#" + this.toHex8(e);
990
- },
991
- toRgb: function() {
992
- return {
993
- r: Math.round(this._r),
994
- g: Math.round(this._g),
995
- b: Math.round(this._b),
996
- a: this._a
997
- };
998
- },
999
- toRgbString: function() {
1000
- return this._a == 1 ? "rgb(" + Math.round(this._r) + ", " + Math.round(this._g) + ", " + Math.round(this._b) + ")" : "rgba(" + Math.round(this._r) + ", " + Math.round(this._g) + ", " + Math.round(this._b) + ", " + this._roundA + ")";
1001
- },
1002
- toPercentageRgb: function() {
1003
- return {
1004
- r: Math.round(R(this._r, 255) * 100) + "%",
1005
- g: Math.round(R(this._g, 255) * 100) + "%",
1006
- b: Math.round(R(this._b, 255) * 100) + "%",
1007
- a: this._a
1008
- };
1009
- },
1010
- toPercentageRgbString: function() {
1011
- return this._a == 1 ? "rgb(" + Math.round(R(this._r, 255) * 100) + "%, " + Math.round(R(this._g, 255) * 100) + "%, " + Math.round(R(this._b, 255) * 100) + "%)" : "rgba(" + Math.round(R(this._r, 255) * 100) + "%, " + Math.round(R(this._g, 255) * 100) + "%, " + Math.round(R(this._b, 255) * 100) + "%, " + this._roundA + ")";
1012
- },
1013
- toName: function() {
1014
- return this._a === 0 ? "transparent" : this._a < 1 ? !1 : rn[ge(this._r, this._g, this._b, !0)] || !1;
1015
- },
1016
- toFilter: function(e) {
1017
- var r = "#" + me(this._r, this._g, this._b, this._a), n = r, a = this._gradientType ? "GradientType = 1, " : "";
1018
- if (e) {
1019
- var i = b(e);
1020
- n = "#" + me(i._r, i._g, i._b, i._a);
1021
- }
1022
- return "progid:DXImageTransform.Microsoft.gradient(" + a + "startColorstr=" + r + ",endColorstr=" + n + ")";
1023
- },
1024
- toString: function(e) {
1025
- var r = !!e;
1026
- e = e || this._format;
1027
- var n = !1, a = this._a < 1 && this._a >= 0, i = !r && a && (e === "hex" || e === "hex6" || e === "hex3" || e === "hex4" || e === "hex8" || e === "name");
1028
- return i ? e === "name" && this._a === 0 ? this.toName() : this.toRgbString() : (e === "rgb" && (n = this.toRgbString()), e === "prgb" && (n = this.toPercentageRgbString()), (e === "hex" || e === "hex6") && (n = this.toHexString()), e === "hex3" && (n = this.toHexString(!0)), e === "hex4" && (n = this.toHex8String(!0)), e === "hex8" && (n = this.toHex8String()), e === "name" && (n = this.toName()), e === "hsl" && (n = this.toHslString()), e === "hsv" && (n = this.toHsvString()), n || this.toHexString());
1029
- },
1030
- clone: function() {
1031
- return b(this.toString());
1032
- },
1033
- _applyModification: function(e, r) {
1034
- var n = e.apply(null, [this].concat([].slice.call(r)));
1035
- return this._r = n._r, this._g = n._g, this._b = n._b, this.setAlpha(n._a), this;
1036
- },
1037
- lighten: function() {
1038
- return this._applyModification(Zr, arguments);
1039
- },
1040
- brighten: function() {
1041
- return this._applyModification(Xr, arguments);
1042
- },
1043
- darken: function() {
1044
- return this._applyModification(Gr, arguments);
1045
- },
1046
- desaturate: function() {
1047
- return this._applyModification(Wr, arguments);
1048
- },
1049
- saturate: function() {
1050
- return this._applyModification(Vr, arguments);
1051
- },
1052
- greyscale: function() {
1053
- return this._applyModification(qr, arguments);
1054
- },
1055
- spin: function() {
1056
- return this._applyModification(Qr, arguments);
1057
- },
1058
- _applyCombination: function(e, r) {
1059
- return e.apply(null, [this].concat([].slice.call(r)));
1060
- },
1061
- analogous: function() {
1062
- return this._applyCombination(tn, arguments);
1063
- },
1064
- complement: function() {
1065
- return this._applyCombination(Jr, arguments);
1066
- },
1067
- monochromatic: function() {
1068
- return this._applyCombination(en, arguments);
1069
- },
1070
- splitcomplement: function() {
1071
- return this._applyCombination(Kr, arguments);
1072
- },
1073
- // Disabled until https://github.com/bgrins/TinyColor/issues/254
1074
- // polyad: function (number) {
1075
- // return this._applyCombination(polyad, [number]);
1076
- // },
1077
- triad: function() {
1078
- return this._applyCombination(be, [3]);
1079
- },
1080
- tetrad: function() {
1081
- return this._applyCombination(be, [4]);
1082
- }
1083
- };
1084
- b.fromRatio = function(t, e) {
1085
- if (Bt(t) == "object") {
1086
- var r = {};
1087
- for (var n in t)
1088
- t.hasOwnProperty(n) && (n === "a" ? r[n] = t[n] : r[n] = _t(t[n]));
1089
- t = r;
1090
- }
1091
- return b(t, e);
1092
- };
1093
- function jr(t) {
1094
- var e = {
1095
- r: 0,
1096
- g: 0,
1097
- b: 0
1098
- }, r = 1, n = null, a = null, i = null, f = !1, s = !1;
1099
- return typeof t == "string" && (t = sn(t)), Bt(t) == "object" && (et(t.r) && et(t.g) && et(t.b) ? (e = zr(t.r, t.g, t.b), f = !0, s = String(t.r).substr(-1) === "%" ? "prgb" : "rgb") : et(t.h) && et(t.s) && et(t.v) ? (n = _t(t.s), a = _t(t.v), e = Ur(t.h, n, a), f = !0, s = "hsv") : et(t.h) && et(t.s) && et(t.l) && (n = _t(t.s), i = _t(t.l), e = Nr(t.h, n, i), f = !0, s = "hsl"), t.hasOwnProperty("a") && (r = t.a)), r = He(r), {
1100
- ok: f,
1101
- format: t.format || s,
1102
- r: Math.min(255, Math.max(e.r, 0)),
1103
- g: Math.min(255, Math.max(e.g, 0)),
1104
- b: Math.min(255, Math.max(e.b, 0)),
1105
- a: r
1106
- };
1107
- }
1108
- function zr(t, e, r) {
1109
- return {
1110
- r: R(t, 255) * 255,
1111
- g: R(e, 255) * 255,
1112
- b: R(r, 255) * 255
1113
- };
1114
- }
1115
- function de(t, e, r) {
1116
- t = R(t, 255), e = R(e, 255), r = R(r, 255);
1117
- var n = Math.max(t, e, r), a = Math.min(t, e, r), i, f, s = (n + a) / 2;
1118
- if (n == a)
1119
- i = f = 0;
1120
- else {
1121
- var o = n - a;
1122
- switch (f = s > 0.5 ? o / (2 - n - a) : o / (n + a), n) {
1123
- case t:
1124
- i = (e - r) / o + (e < r ? 6 : 0);
1125
- break;
1126
- case e:
1127
- i = (r - t) / o + 2;
1128
- break;
1129
- case r:
1130
- i = (t - e) / o + 4;
1131
- break;
1132
- }
1133
- i /= 6;
1134
- }
1135
- return {
1136
- h: i,
1137
- s: f,
1138
- l: s
1139
- };
1140
- }
1141
- function Nr(t, e, r) {
1142
- var n, a, i;
1143
- t = R(t, 360), e = R(e, 100), r = R(r, 100);
1144
- function f(h, c, M) {
1145
- return M < 0 && (M += 1), M > 1 && (M -= 1), M < 1 / 6 ? h + (c - h) * 6 * M : M < 1 / 2 ? c : M < 2 / 3 ? h + (c - h) * (2 / 3 - M) * 6 : h;
1146
- }
1147
- if (e === 0)
1148
- n = a = i = r;
1149
- else {
1150
- var s = r < 0.5 ? r * (1 + e) : r + e - r * e, o = 2 * r - s;
1151
- n = f(o, s, t + 1 / 3), a = f(o, s, t), i = f(o, s, t - 1 / 3);
1152
- }
1153
- return {
1154
- r: n * 255,
1155
- g: a * 255,
1156
- b: i * 255
1157
- };
1158
- }
1159
- function ve(t, e, r) {
1160
- t = R(t, 255), e = R(e, 255), r = R(r, 255);
1161
- var n = Math.max(t, e, r), a = Math.min(t, e, r), i, f, s = n, o = n - a;
1162
- if (f = n === 0 ? 0 : o / n, n == a)
1163
- i = 0;
1164
- else {
1165
- switch (n) {
1166
- case t:
1167
- i = (e - r) / o + (e < r ? 6 : 0);
1168
- break;
1169
- case e:
1170
- i = (r - t) / o + 2;
1171
- break;
1172
- case r:
1173
- i = (t - e) / o + 4;
1174
- break;
1175
- }
1176
- i /= 6;
1177
- }
1178
- return {
1179
- h: i,
1180
- s: f,
1181
- v: s
1182
- };
1183
- }
1184
- function Ur(t, e, r) {
1185
- t = R(t, 360) * 6, e = R(e, 100), r = R(r, 100);
1186
- var n = Math.floor(t), a = t - n, i = r * (1 - e), f = r * (1 - a * e), s = r * (1 - (1 - a) * e), o = n % 6, h = [r, f, i, i, s, r][o], c = [s, r, r, f, i, i][o], M = [i, i, s, r, r, f][o];
1187
- return {
1188
- r: h * 255,
1189
- g: c * 255,
1190
- b: M * 255
1191
- };
1192
- }
1193
- function ge(t, e, r, n) {
1194
- var a = [W(Math.round(t).toString(16)), W(Math.round(e).toString(16)), W(Math.round(r).toString(16))];
1195
- return n && a[0].charAt(0) == a[0].charAt(1) && a[1].charAt(0) == a[1].charAt(1) && a[2].charAt(0) == a[2].charAt(1) ? a[0].charAt(0) + a[1].charAt(0) + a[2].charAt(0) : a.join("");
1196
- }
1197
- function Ir(t, e, r, n, a) {
1198
- var i = [W(Math.round(t).toString(16)), W(Math.round(e).toString(16)), W(Math.round(r).toString(16)), W(Ce(n))];
1199
- return a && i[0].charAt(0) == i[0].charAt(1) && i[1].charAt(0) == i[1].charAt(1) && i[2].charAt(0) == i[2].charAt(1) && i[3].charAt(0) == i[3].charAt(1) ? i[0].charAt(0) + i[1].charAt(0) + i[2].charAt(0) + i[3].charAt(0) : i.join("");
1200
- }
1201
- function me(t, e, r, n) {
1202
- var a = [W(Ce(n)), W(Math.round(t).toString(16)), W(Math.round(e).toString(16)), W(Math.round(r).toString(16))];
1203
- return a.join("");
1204
- }
1205
- b.equals = function(t, e) {
1206
- return !t || !e ? !1 : b(t).toRgbString() == b(e).toRgbString();
1207
- };
1208
- b.random = function() {
1209
- return b.fromRatio({
1210
- r: Math.random(),
1211
- g: Math.random(),
1212
- b: Math.random()
1213
- });
1214
- };
1215
- function Wr(t, e) {
1216
- e = e === 0 ? 0 : e || 10;
1217
- var r = b(t).toHsl();
1218
- return r.s -= e / 100, r.s = zt(r.s), b(r);
1219
- }
1220
- function Vr(t, e) {
1221
- e = e === 0 ? 0 : e || 10;
1222
- var r = b(t).toHsl();
1223
- return r.s += e / 100, r.s = zt(r.s), b(r);
1224
- }
1225
- function qr(t) {
1226
- return b(t).desaturate(100);
1227
- }
1228
- function Zr(t, e) {
1229
- e = e === 0 ? 0 : e || 10;
1230
- var r = b(t).toHsl();
1231
- return r.l += e / 100, r.l = zt(r.l), b(r);
1232
- }
1233
- function Xr(t, e) {
1234
- e = e === 0 ? 0 : e || 10;
1235
- var r = b(t).toRgb();
1236
- return r.r = Math.max(0, Math.min(255, r.r - Math.round(255 * -(e / 100)))), r.g = Math.max(0, Math.min(255, r.g - Math.round(255 * -(e / 100)))), r.b = Math.max(0, Math.min(255, r.b - Math.round(255 * -(e / 100)))), b(r);
1237
- }
1238
- function Gr(t, e) {
1239
- e = e === 0 ? 0 : e || 10;
1240
- var r = b(t).toHsl();
1241
- return r.l -= e / 100, r.l = zt(r.l), b(r);
1242
- }
1243
- function Qr(t, e) {
1244
- var r = b(t).toHsl(), n = (r.h + e) % 360;
1245
- return r.h = n < 0 ? 360 + n : n, b(r);
1246
- }
1247
- function Jr(t) {
1248
- var e = b(t).toHsl();
1249
- return e.h = (e.h + 180) % 360, b(e);
1250
- }
1251
- function be(t, e) {
1252
- if (isNaN(e) || e <= 0)
1253
- throw new Error("Argument to polyad must be a positive number");
1254
- for (var r = b(t).toHsl(), n = [b(t)], a = 360 / e, i = 1; i < e; i++)
1255
- n.push(b({
1256
- h: (r.h + i * a) % 360,
1257
- s: r.s,
1258
- l: r.l
1259
- }));
1260
- return n;
1261
- }
1262
- function Kr(t) {
1263
- var e = b(t).toHsl(), r = e.h;
1264
- return [b(t), b({
1265
- h: (r + 72) % 360,
1266
- s: e.s,
1267
- l: e.l
1268
- }), b({
1269
- h: (r + 216) % 360,
1270
- s: e.s,
1271
- l: e.l
1272
- })];
1273
- }
1274
- function tn(t, e, r) {
1275
- e = e || 6, r = r || 30;
1276
- var n = b(t).toHsl(), a = 360 / r, i = [b(t)];
1277
- for (n.h = (n.h - (a * e >> 1) + 720) % 360; --e; )
1278
- n.h = (n.h + a) % 360, i.push(b(n));
1279
- return i;
1280
- }
1281
- function en(t, e) {
1282
- e = e || 6;
1283
- for (var r = b(t).toHsv(), n = r.h, a = r.s, i = r.v, f = [], s = 1 / e; e--; )
1284
- f.push(b({
1285
- h: n,
1286
- s: a,
1287
- v: i
1288
- })), i = (i + s) % 1;
1289
- return f;
1290
- }
1291
- b.mix = function(t, e, r) {
1292
- r = r === 0 ? 0 : r || 50;
1293
- var n = b(t).toRgb(), a = b(e).toRgb(), i = r / 100, f = {
1294
- r: (a.r - n.r) * i + n.r,
1295
- g: (a.g - n.g) * i + n.g,
1296
- b: (a.b - n.b) * i + n.b,
1297
- a: (a.a - n.a) * i + n.a
1298
- };
1299
- return b(f);
1300
- };
1301
- b.readability = function(t, e) {
1302
- var r = b(t), n = b(e);
1303
- return (Math.max(r.getLuminance(), n.getLuminance()) + 0.05) / (Math.min(r.getLuminance(), n.getLuminance()) + 0.05);
1304
- };
1305
- b.isReadable = function(t, e, r) {
1306
- var n = b.readability(t, e), a, i;
1307
- switch (i = !1, a = fn(r), a.level + a.size) {
1308
- case "AAsmall":
1309
- case "AAAlarge":
1310
- i = n >= 4.5;
1311
- break;
1312
- case "AAlarge":
1313
- i = n >= 3;
1314
- break;
1315
- case "AAAsmall":
1316
- i = n >= 7;
1317
- break;
1318
- }
1319
- return i;
1320
- };
1321
- b.mostReadable = function(t, e, r) {
1322
- var n = null, a = 0, i, f, s, o;
1323
- r = r || {}, f = r.includeFallbackColors, s = r.level, o = r.size;
1324
- for (var h = 0; h < e.length; h++)
1325
- i = b.readability(t, e[h]), i > a && (a = i, n = b(e[h]));
1326
- return b.isReadable(t, n, {
1327
- level: s,
1328
- size: o
1329
- }) || !f ? n : (r.includeFallbackColors = !1, b.mostReadable(t, ["#fff", "#000"], r));
1330
- };
1331
- var Wt = b.names = {
1332
- aliceblue: "f0f8ff",
1333
- antiquewhite: "faebd7",
1334
- aqua: "0ff",
1335
- aquamarine: "7fffd4",
1336
- azure: "f0ffff",
1337
- beige: "f5f5dc",
1338
- bisque: "ffe4c4",
1339
- black: "000",
1340
- blanchedalmond: "ffebcd",
1341
- blue: "00f",
1342
- blueviolet: "8a2be2",
1343
- brown: "a52a2a",
1344
- burlywood: "deb887",
1345
- burntsienna: "ea7e5d",
1346
- cadetblue: "5f9ea0",
1347
- chartreuse: "7fff00",
1348
- chocolate: "d2691e",
1349
- coral: "ff7f50",
1350
- cornflowerblue: "6495ed",
1351
- cornsilk: "fff8dc",
1352
- crimson: "dc143c",
1353
- cyan: "0ff",
1354
- darkblue: "00008b",
1355
- darkcyan: "008b8b",
1356
- darkgoldenrod: "b8860b",
1357
- darkgray: "a9a9a9",
1358
- darkgreen: "006400",
1359
- darkgrey: "a9a9a9",
1360
- darkkhaki: "bdb76b",
1361
- darkmagenta: "8b008b",
1362
- darkolivegreen: "556b2f",
1363
- darkorange: "ff8c00",
1364
- darkorchid: "9932cc",
1365
- darkred: "8b0000",
1366
- darksalmon: "e9967a",
1367
- darkseagreen: "8fbc8f",
1368
- darkslateblue: "483d8b",
1369
- darkslategray: "2f4f4f",
1370
- darkslategrey: "2f4f4f",
1371
- darkturquoise: "00ced1",
1372
- darkviolet: "9400d3",
1373
- deeppink: "ff1493",
1374
- deepskyblue: "00bfff",
1375
- dimgray: "696969",
1376
- dimgrey: "696969",
1377
- dodgerblue: "1e90ff",
1378
- firebrick: "b22222",
1379
- floralwhite: "fffaf0",
1380
- forestgreen: "228b22",
1381
- fuchsia: "f0f",
1382
- gainsboro: "dcdcdc",
1383
- ghostwhite: "f8f8ff",
1384
- gold: "ffd700",
1385
- goldenrod: "daa520",
1386
- gray: "808080",
1387
- green: "008000",
1388
- greenyellow: "adff2f",
1389
- grey: "808080",
1390
- honeydew: "f0fff0",
1391
- hotpink: "ff69b4",
1392
- indianred: "cd5c5c",
1393
- indigo: "4b0082",
1394
- ivory: "fffff0",
1395
- khaki: "f0e68c",
1396
- lavender: "e6e6fa",
1397
- lavenderblush: "fff0f5",
1398
- lawngreen: "7cfc00",
1399
- lemonchiffon: "fffacd",
1400
- lightblue: "add8e6",
1401
- lightcoral: "f08080",
1402
- lightcyan: "e0ffff",
1403
- lightgoldenrodyellow: "fafad2",
1404
- lightgray: "d3d3d3",
1405
- lightgreen: "90ee90",
1406
- lightgrey: "d3d3d3",
1407
- lightpink: "ffb6c1",
1408
- lightsalmon: "ffa07a",
1409
- lightseagreen: "20b2aa",
1410
- lightskyblue: "87cefa",
1411
- lightslategray: "789",
1412
- lightslategrey: "789",
1413
- lightsteelblue: "b0c4de",
1414
- lightyellow: "ffffe0",
1415
- lime: "0f0",
1416
- limegreen: "32cd32",
1417
- linen: "faf0e6",
1418
- magenta: "f0f",
1419
- maroon: "800000",
1420
- mediumaquamarine: "66cdaa",
1421
- mediumblue: "0000cd",
1422
- mediumorchid: "ba55d3",
1423
- mediumpurple: "9370db",
1424
- mediumseagreen: "3cb371",
1425
- mediumslateblue: "7b68ee",
1426
- mediumspringgreen: "00fa9a",
1427
- mediumturquoise: "48d1cc",
1428
- mediumvioletred: "c71585",
1429
- midnightblue: "191970",
1430
- mintcream: "f5fffa",
1431
- mistyrose: "ffe4e1",
1432
- moccasin: "ffe4b5",
1433
- navajowhite: "ffdead",
1434
- navy: "000080",
1435
- oldlace: "fdf5e6",
1436
- olive: "808000",
1437
- olivedrab: "6b8e23",
1438
- orange: "ffa500",
1439
- orangered: "ff4500",
1440
- orchid: "da70d6",
1441
- palegoldenrod: "eee8aa",
1442
- palegreen: "98fb98",
1443
- paleturquoise: "afeeee",
1444
- palevioletred: "db7093",
1445
- papayawhip: "ffefd5",
1446
- peachpuff: "ffdab9",
1447
- peru: "cd853f",
1448
- pink: "ffc0cb",
1449
- plum: "dda0dd",
1450
- powderblue: "b0e0e6",
1451
- purple: "800080",
1452
- rebeccapurple: "663399",
1453
- red: "f00",
1454
- rosybrown: "bc8f8f",
1455
- royalblue: "4169e1",
1456
- saddlebrown: "8b4513",
1457
- salmon: "fa8072",
1458
- sandybrown: "f4a460",
1459
- seagreen: "2e8b57",
1460
- seashell: "fff5ee",
1461
- sienna: "a0522d",
1462
- silver: "c0c0c0",
1463
- skyblue: "87ceeb",
1464
- slateblue: "6a5acd",
1465
- slategray: "708090",
1466
- slategrey: "708090",
1467
- snow: "fffafa",
1468
- springgreen: "00ff7f",
1469
- steelblue: "4682b4",
1470
- tan: "d2b48c",
1471
- teal: "008080",
1472
- thistle: "d8bfd8",
1473
- tomato: "ff6347",
1474
- turquoise: "40e0d0",
1475
- violet: "ee82ee",
1476
- wheat: "f5deb3",
1477
- white: "fff",
1478
- whitesmoke: "f5f5f5",
1479
- yellow: "ff0",
1480
- yellowgreen: "9acd32"
1481
- }, rn = b.hexNames = nn(Wt);
1482
- function nn(t) {
1483
- var e = {};
1484
- for (var r in t)
1485
- t.hasOwnProperty(r) && (e[t[r]] = r);
1486
- return e;
1487
- }
1488
- function He(t) {
1489
- return t = parseFloat(t), (isNaN(t) || t < 0 || t > 1) && (t = 1), t;
1490
- }
1491
- function R(t, e) {
1492
- an(t) && (t = "100%");
1493
- var r = on(t);
1494
- return t = Math.min(e, Math.max(0, parseFloat(t))), r && (t = parseInt(t * e, 10) / 100), Math.abs(t - e) < 1e-6 ? 1 : t % e / parseFloat(e);
1495
- }
1496
- function zt(t) {
1497
- return Math.min(1, Math.max(0, t));
1498
- }
1499
- function Y(t) {
1500
- return parseInt(t, 16);
1501
- }
1502
- function an(t) {
1503
- return typeof t == "string" && t.indexOf(".") != -1 && parseFloat(t) === 1;
1504
- }
1505
- function on(t) {
1506
- return typeof t == "string" && t.indexOf("%") != -1;
1507
- }
1508
- function W(t) {
1509
- return t.length == 1 ? "0" + t : "" + t;
1510
- }
1511
- function _t(t) {
1512
- return t <= 1 && (t = t * 100 + "%"), t;
1513
- }
1514
- function Ce(t) {
1515
- return Math.round(parseFloat(t) * 255).toString(16);
1516
- }
1517
- function ye(t) {
1518
- return Y(t) / 255;
1519
- }
1520
- var I = function() {
1521
- var t = "[-\\+]?\\d+%?", e = "[-\\+]?\\d*\\.\\d+%?", r = "(?:" + e + ")|(?:" + t + ")", n = "[\\s|\\(]+(" + r + ")[,|\\s]+(" + r + ")[,|\\s]+(" + r + ")\\s*\\)?", a = "[\\s|\\(]+(" + r + ")[,|\\s]+(" + r + ")[,|\\s]+(" + r + ")[,|\\s]+(" + r + ")\\s*\\)?";
1522
- return {
1523
- CSS_UNIT: new RegExp(r),
1524
- rgb: new RegExp("rgb" + n),
1525
- rgba: new RegExp("rgba" + a),
1526
- hsl: new RegExp("hsl" + n),
1527
- hsla: new RegExp("hsla" + a),
1528
- hsv: new RegExp("hsv" + n),
1529
- hsva: new RegExp("hsva" + a),
1530
- hex3: /^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,
1531
- hex6: /^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,
1532
- hex4: /^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,
1533
- hex8: /^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/
1534
- };
1535
- }();
1536
- function et(t) {
1537
- return !!I.CSS_UNIT.exec(t);
1538
- }
1539
- function sn(t) {
1540
- t = t.replace(Yr, "").replace(Br, "").toLowerCase();
1541
- var e = !1;
1542
- if (Wt[t])
1543
- t = Wt[t], e = !0;
1544
- else if (t == "transparent")
1545
- return {
1546
- r: 0,
1547
- g: 0,
1548
- b: 0,
1549
- a: 0,
1550
- format: "name"
1551
- };
1552
- var r;
1553
- return (r = I.rgb.exec(t)) ? {
1554
- r: r[1],
1555
- g: r[2],
1556
- b: r[3]
1557
- } : (r = I.rgba.exec(t)) ? {
1558
- r: r[1],
1559
- g: r[2],
1560
- b: r[3],
1561
- a: r[4]
1562
- } : (r = I.hsl.exec(t)) ? {
1563
- h: r[1],
1564
- s: r[2],
1565
- l: r[3]
1566
- } : (r = I.hsla.exec(t)) ? {
1567
- h: r[1],
1568
- s: r[2],
1569
- l: r[3],
1570
- a: r[4]
1571
- } : (r = I.hsv.exec(t)) ? {
1572
- h: r[1],
1573
- s: r[2],
1574
- v: r[3]
1575
- } : (r = I.hsva.exec(t)) ? {
1576
- h: r[1],
1577
- s: r[2],
1578
- v: r[3],
1579
- a: r[4]
1580
- } : (r = I.hex8.exec(t)) ? {
1581
- r: Y(r[1]),
1582
- g: Y(r[2]),
1583
- b: Y(r[3]),
1584
- a: ye(r[4]),
1585
- format: e ? "name" : "hex8"
1586
- } : (r = I.hex6.exec(t)) ? {
1587
- r: Y(r[1]),
1588
- g: Y(r[2]),
1589
- b: Y(r[3]),
1590
- format: e ? "name" : "hex"
1591
- } : (r = I.hex4.exec(t)) ? {
1592
- r: Y(r[1] + "" + r[1]),
1593
- g: Y(r[2] + "" + r[2]),
1594
- b: Y(r[3] + "" + r[3]),
1595
- a: ye(r[4] + "" + r[4]),
1596
- format: e ? "name" : "hex8"
1597
- } : (r = I.hex3.exec(t)) ? {
1598
- r: Y(r[1] + "" + r[1]),
1599
- g: Y(r[2] + "" + r[2]),
1600
- b: Y(r[3] + "" + r[3]),
1601
- format: e ? "name" : "hex"
1602
- } : !1;
1603
- }
1604
- function fn(t) {
1605
- var e, r;
1606
- return t = t || {
1607
- level: "AA",
1608
- size: "small"
1609
- }, e = (t.level || "AA").toUpperCase(), r = (t.size || "small").toLowerCase(), e !== "AA" && e !== "AAA" && (e = "AA"), r !== "small" && r !== "large" && (r = "small"), {
1610
- level: e,
1611
- size: r
1612
- };
1613
- }
1614
- var Pt = { exports: {} }, un = Pt.exports, xe;
1615
- function cn() {
1616
- return xe || (xe = 1, function(t, e) {
1617
- (function(r, n) {
1618
- t.exports = n();
1619
- })(un, function() {
1620
- var r = { LTS: "h:mm:ss A", LT: "h:mm A", L: "MM/DD/YYYY", LL: "MMMM D, YYYY", LLL: "MMMM D, YYYY h:mm A", LLLL: "dddd, MMMM D, YYYY h:mm A" }, n = /(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g, a = /\d/, i = /\d\d/, f = /\d\d?/, s = /\d*[^-_:/,()\s\d]+/, o = {}, h = function(u) {
1621
- return (u = +u) + (u > 68 ? 1900 : 2e3);
1622
- }, c = function(u) {
1623
- return function(p) {
1624
- this[u] = +p;
1625
- };
1626
- }, M = [/[+-]\d\d:?(\d\d)?|Z/, function(u) {
1627
- (this.zone || (this.zone = {})).offset = function(p) {
1628
- if (!p || p === "Z") return 0;
1629
- var v = p.match(/([+-]|\d\d)/g), d = 60 * v[1] + (+v[2] || 0);
1630
- return d === 0 ? 0 : v[0] === "+" ? -d : d;
1631
- }(u);
1632
- }], y = function(u) {
1633
- var p = o[u];
1634
- return p && (p.indexOf ? p : p.s.concat(p.f));
1635
- }, g = function(u, p) {
1636
- var v, d = o.meridiem;
1637
- if (d) {
1638
- for (var m = 1; m <= 24; m += 1) if (u.indexOf(d(m, 0, p)) > -1) {
1639
- v = m > 12;
1640
- break;
1641
- }
1642
- } else v = u === (p ? "pm" : "PM");
1643
- return v;
1644
- }, w = { A: [s, function(u) {
1645
- this.afternoon = g(u, !1);
1646
- }], a: [s, function(u) {
1647
- this.afternoon = g(u, !0);
1648
- }], Q: [a, function(u) {
1649
- this.month = 3 * (u - 1) + 1;
1650
- }], S: [a, function(u) {
1651
- this.milliseconds = 100 * +u;
1652
- }], SS: [i, function(u) {
1653
- this.milliseconds = 10 * +u;
1654
- }], SSS: [/\d{3}/, function(u) {
1655
- this.milliseconds = +u;
1656
- }], s: [f, c("seconds")], ss: [f, c("seconds")], m: [f, c("minutes")], mm: [f, c("minutes")], H: [f, c("hours")], h: [f, c("hours")], HH: [f, c("hours")], hh: [f, c("hours")], D: [f, c("day")], DD: [i, c("day")], Do: [s, function(u) {
1657
- var p = o.ordinal, v = u.match(/\d+/);
1658
- if (this.day = v[0], p) for (var d = 1; d <= 31; d += 1) p(d).replace(/\[|\]/g, "") === u && (this.day = d);
1659
- }], w: [f, c("week")], ww: [i, c("week")], M: [f, c("month")], MM: [i, c("month")], MMM: [s, function(u) {
1660
- var p = y("months"), v = (y("monthsShort") || p.map(function(d) {
1661
- return d.slice(0, 3);
1662
- })).indexOf(u) + 1;
1663
- if (v < 1) throw new Error();
1664
- this.month = v % 12 || v;
1665
- }], MMMM: [s, function(u) {
1666
- var p = y("months").indexOf(u) + 1;
1667
- if (p < 1) throw new Error();
1668
- this.month = p % 12 || p;
1669
- }], Y: [/[+-]?\d+/, c("year")], YY: [i, function(u) {
1670
- this.year = h(u);
1671
- }], YYYY: [/\d{4}/, c("year")], Z: M, ZZ: M };
1672
- function l(u) {
1673
- var p, v;
1674
- p = u, v = o && o.formats;
1675
- for (var d = (u = p.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, function($, D, T) {
1676
- var k = T && T.toUpperCase();
1677
- return D || v[T] || r[T] || v[k].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, function(C, E, H) {
1678
- return E || H.slice(1);
1679
- });
1680
- })).match(n), m = d.length, x = 0; x < m; x += 1) {
1681
- var A = d[x], O = w[A], S = O && O[0], _ = O && O[1];
1682
- d[x] = _ ? { regex: S, parser: _ } : A.replace(/^\[|\]$/g, "");
1683
- }
1684
- return function($) {
1685
- for (var D = {}, T = 0, k = 0; T < m; T += 1) {
1686
- var C = d[T];
1687
- if (typeof C == "string") k += C.length;
1688
- else {
1689
- var E = C.regex, H = C.parser, P = $.slice(k), U = E.exec(P)[0];
1690
- H.call(D, U), $ = $.replace(U, "");
1691
- }
1692
- }
1693
- return function(F) {
1694
- var Q = F.afternoon;
1695
- if (Q !== void 0) {
1696
- var L = F.hours;
1697
- Q ? L < 12 && (F.hours += 12) : L === 12 && (F.hours = 0), delete F.afternoon;
1698
- }
1699
- }(D), D;
1700
- };
1701
- }
1702
- return function(u, p, v) {
1703
- v.p.customParseFormat = !0, u && u.parseTwoDigitYear && (h = u.parseTwoDigitYear);
1704
- var d = p.prototype, m = d.parse;
1705
- d.parse = function(x) {
1706
- var A = x.date, O = x.utc, S = x.args;
1707
- this.$u = O;
1708
- var _ = S[1];
1709
- if (typeof _ == "string") {
1710
- var $ = S[2] === !0, D = S[3] === !0, T = $ || D, k = S[2];
1711
- D && (k = S[2]), o = this.$locale(), !$ && k && (o = v.Ls[k]), this.$d = function(P, U, F, Q) {
1712
- try {
1713
- if (["x", "X"].indexOf(U) > -1) return new Date((U === "X" ? 1e3 : 1) * P);
1714
- var L = l(U)(P), J = L.year, K = L.month, nt = L.day, Z = L.hours, ot = L.minutes, ct = L.seconds, tt = L.milliseconds, lt = L.zone, Tt = L.week, st = /* @__PURE__ */ new Date(), wt = nt || (J || K ? 1 : st.getDate()), ht = J || st.getFullYear(), pt = 0;
1715
- J && !K || (pt = K > 0 ? K - 1 : st.getMonth());
1716
- var dt, vt = Z || 0, gt = ot || 0, Mt = ct || 0, At = tt || 0;
1717
- return lt ? new Date(Date.UTC(ht, pt, wt, vt, gt, Mt, At + 60 * lt.offset * 1e3)) : F ? new Date(Date.UTC(ht, pt, wt, vt, gt, Mt, At)) : (dt = new Date(ht, pt, wt, vt, gt, Mt, At), Tt && (dt = Q(dt).week(Tt).toDate()), dt);
1718
- } catch {
1719
- return /* @__PURE__ */ new Date("");
1720
- }
1721
- }(A, _, O, v), this.init(), k && k !== !0 && (this.$L = this.locale(k).$L), T && A != this.format(_) && (this.$d = /* @__PURE__ */ new Date("")), o = {};
1722
- } else if (_ instanceof Array) for (var C = _.length, E = 1; E <= C; E += 1) {
1723
- S[1] = _[E - 1];
1724
- var H = v.apply(this, S);
1725
- if (H.isValid()) {
1726
- this.$d = H.$d, this.$L = H.$L, this.init();
1727
- break;
1728
- }
1729
- E === C && (this.$d = /* @__PURE__ */ new Date(""));
1730
- }
1731
- else m.call(this, x);
1732
- };
1733
- };
1734
- });
1735
- }(Pt)), Pt.exports;
1736
- }
1737
- var ln = cn();
1738
- const Sn = /* @__PURE__ */ Vt(ln);
1739
- var Lt = { exports: {} }, hn = Lt.exports, we;
1740
- function pn() {
1741
- return we || (we = 1, function(t, e) {
1742
- (function(r, n) {
1743
- t.exports = n();
1744
- })(hn, function() {
1745
- var r = { year: 0, month: 1, day: 2, hour: 3, minute: 4, second: 5 }, n = {};
1746
- return function(a, i, f) {
1747
- var s, o = function(y, g, w) {
1748
- w === void 0 && (w = {});
1749
- var l = new Date(y), u = function(p, v) {
1750
- v === void 0 && (v = {});
1751
- var d = v.timeZoneName || "short", m = p + "|" + d, x = n[m];
1752
- return x || (x = new Intl.DateTimeFormat("en-US", { hour12: !1, timeZone: p, year: "numeric", month: "2-digit", day: "2-digit", hour: "2-digit", minute: "2-digit", second: "2-digit", timeZoneName: d }), n[m] = x), x;
1753
- }(g, w);
1754
- return u.formatToParts(l);
1755
- }, h = function(y, g) {
1756
- for (var w = o(y, g), l = [], u = 0; u < w.length; u += 1) {
1757
- var p = w[u], v = p.type, d = p.value, m = r[v];
1758
- m >= 0 && (l[m] = parseInt(d, 10));
1759
- }
1760
- var x = l[3], A = x === 24 ? 0 : x, O = l[0] + "-" + l[1] + "-" + l[2] + " " + A + ":" + l[4] + ":" + l[5] + ":000", S = +y;
1761
- return (f.utc(O).valueOf() - (S -= S % 1e3)) / 6e4;
1762
- }, c = i.prototype;
1763
- c.tz = function(y, g) {
1764
- y === void 0 && (y = s);
1765
- var w, l = this.utcOffset(), u = this.toDate(), p = u.toLocaleString("en-US", { timeZone: y }), v = Math.round((u - new Date(p)) / 1e3 / 60), d = 15 * -Math.round(u.getTimezoneOffset() / 15) - v;
1766
- if (!Number(d)) w = this.utcOffset(0, g);
1767
- else if (w = f(p, { locale: this.$L }).$set("millisecond", this.$ms).utcOffset(d, !0), g) {
1768
- var m = w.utcOffset();
1769
- w = w.add(l - m, "minute");
1770
- }
1771
- return w.$x.$timezone = y, w;
1772
- }, c.offsetName = function(y) {
1773
- var g = this.$x.$timezone || f.tz.guess(), w = o(this.valueOf(), g, { timeZoneName: y }).find(function(l) {
1774
- return l.type.toLowerCase() === "timezonename";
1775
- });
1776
- return w && w.value;
1777
- };
1778
- var M = c.startOf;
1779
- c.startOf = function(y, g) {
1780
- if (!this.$x || !this.$x.$timezone) return M.call(this, y, g);
1781
- var w = f(this.format("YYYY-MM-DD HH:mm:ss:SSS"), { locale: this.$L });
1782
- return M.call(w, y, g).tz(this.$x.$timezone, !0);
1783
- }, f.tz = function(y, g, w) {
1784
- var l = w && g, u = w || g || s, p = h(+f(), u);
1785
- if (typeof y != "string") return f(y).tz(u);
1786
- var v = function(A, O, S) {
1787
- var _ = A - 60 * O * 1e3, $ = h(_, S);
1788
- if (O === $) return [_, O];
1789
- var D = h(_ -= 60 * ($ - O) * 1e3, S);
1790
- return $ === D ? [_, $] : [A - 60 * Math.min($, D) * 1e3, Math.max($, D)];
1791
- }(f.utc(y, l).valueOf(), p, u), d = v[0], m = v[1], x = f(d).utcOffset(m);
1792
- return x.$x.$timezone = u, x;
1793
- }, f.tz.guess = function() {
1794
- return Intl.DateTimeFormat().resolvedOptions().timeZone;
1795
- }, f.tz.setDefault = function(y) {
1796
- s = y;
1797
- };
1798
- };
1799
- });
1800
- }(Lt)), Lt.exports;
1801
- }
1802
- var dn = pn();
1803
- const $n = /* @__PURE__ */ Vt(dn);
1804
- var Ft = { exports: {} }, vn = Ft.exports, Me;
1805
- function gn() {
1806
- return Me || (Me = 1, function(t, e) {
1807
- (function(r, n) {
1808
- t.exports = n();
1809
- })(vn, function() {
1810
- var r = "minute", n = /[+-]\d\d(?::?\d\d)?/g, a = /([+-]|\d\d)/g;
1811
- return function(i, f, s) {
1812
- var o = f.prototype;
1813
- s.utc = function(l) {
1814
- var u = { date: l, utc: !0, args: arguments };
1815
- return new f(u);
1816
- }, o.utc = function(l) {
1817
- var u = s(this.toDate(), { locale: this.$L, utc: !0 });
1818
- return l ? u.add(this.utcOffset(), r) : u;
1819
- }, o.local = function() {
1820
- return s(this.toDate(), { locale: this.$L, utc: !1 });
1821
- };
1822
- var h = o.parse;
1823
- o.parse = function(l) {
1824
- l.utc && (this.$u = !0), this.$utils().u(l.$offset) || (this.$offset = l.$offset), h.call(this, l);
1825
- };
1826
- var c = o.init;
1827
- o.init = function() {
1828
- if (this.$u) {
1829
- var l = this.$d;
1830
- this.$y = l.getUTCFullYear(), this.$M = l.getUTCMonth(), this.$D = l.getUTCDate(), this.$W = l.getUTCDay(), this.$H = l.getUTCHours(), this.$m = l.getUTCMinutes(), this.$s = l.getUTCSeconds(), this.$ms = l.getUTCMilliseconds();
1831
- } else c.call(this);
1832
- };
1833
- var M = o.utcOffset;
1834
- o.utcOffset = function(l, u) {
1835
- var p = this.$utils().u;
1836
- if (p(l)) return this.$u ? 0 : p(this.$offset) ? M.call(this) : this.$offset;
1837
- if (typeof l == "string" && (l = function(x) {
1838
- x === void 0 && (x = "");
1839
- var A = x.match(n);
1840
- if (!A) return null;
1841
- var O = ("" + A[0]).match(a) || ["-", 0, 0], S = O[0], _ = 60 * +O[1] + +O[2];
1842
- return _ === 0 ? 0 : S === "+" ? _ : -_;
1843
- }(l), l === null)) return this;
1844
- var v = Math.abs(l) <= 16 ? 60 * l : l, d = this;
1845
- if (u) return d.$offset = v, d.$u = l === 0, d;
1846
- if (l !== 0) {
1847
- var m = this.$u ? this.toDate().getTimezoneOffset() : -1 * this.utcOffset();
1848
- (d = this.local().add(v + m, r)).$offset = v, d.$x.$localOffset = m;
1849
- } else d = this.utc();
1850
- return d;
1851
- };
1852
- var y = o.format;
1853
- o.format = function(l) {
1854
- var u = l || (this.$u ? "YYYY-MM-DDTHH:mm:ss[Z]" : "");
1855
- return y.call(this, u);
1856
- }, o.valueOf = function() {
1857
- var l = this.$utils().u(this.$offset) ? 0 : this.$offset + (this.$x.$localOffset || this.$d.getTimezoneOffset());
1858
- return this.$d.valueOf() - 6e4 * l;
1859
- }, o.isUTC = function() {
1860
- return !!this.$u;
1861
- }, o.toISOString = function() {
1862
- return this.toDate().toISOString();
1863
- }, o.toString = function() {
1864
- return this.toDate().toUTCString();
1865
- };
1866
- var g = o.toDate;
1867
- o.toDate = function(l) {
1868
- return l === "s" && this.$offset ? s(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate() : g.call(this);
1869
- };
1870
- var w = o.diff;
1871
- o.diff = function(l, u, p) {
1872
- if (l && this.$u === l.$u) return w.call(this, l, u, p);
1873
- var v = this.local(), d = s(l).local();
1874
- return w.call(v, d, u, p);
1875
- };
1876
- };
1877
- });
1878
- }(Ft)), Ft.exports;
1879
- }
1880
- var mn = gn();
1881
- const Dn = /* @__PURE__ */ Vt(mn);
1882
- export {
1883
- xn as a,
1884
- An as b,
1885
- yn as c,
1886
- _n as d,
1887
- fr as e,
1888
- wn as f,
1889
- cr as g,
1890
- $n as h,
1891
- Sn as i,
1892
- Mn as o,
1893
- On as p,
1894
- b as t,
1895
- Dn as u
1896
- };