@cling-se/widget 0.14.4 → 0.14.6
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/AddClientCallout-C7abPZ87.js +46 -0
- package/dist/AnswerModal-CsA2pl2P.js +3874 -0
- package/dist/AttachmentItem-Da1-7xwf.js +78 -0
- package/dist/BaseDatePicker-k9zlSi5J.js +3183 -0
- package/dist/BaseUpload-BUrXX3fT.js +1977 -0
- package/dist/BlockMedia-CYI07qAn.js +76 -0
- package/dist/CCallout-Qwae66vo.js +59 -0
- package/dist/CCurrencyDropdown-Y_u0hgBx.js +246 -0
- package/dist/CDropdownItem-CXJ4xD8W.js +538 -0
- package/dist/CField.vue_vue_type_style_index_0_lang-l0sNRNKZ.js +1 -0
- package/dist/CFormField--m3PvQuT.js +241 -0
- package/dist/CPhoneFormat-Qg6MkDVP.js +62 -0
- package/dist/CPriceInput-Dlx44UrR.js +112 -0
- package/dist/CTabs.vue_vue_type_style_index_0_scoped_b7262014_lang-l0sNRNKZ.js +1 -0
- package/dist/ClientAutocomplete-BKKc_br6.js +78 -0
- package/dist/ClientModal-CVZFb1Br.js +625 -0
- package/dist/ColorPicker-Bo3s3Esp.js +2879 -0
- package/dist/CompanyModal-DadjAioS.js +141 -0
- package/dist/ContentWrapper-BC3ZBQW9.js +183 -0
- package/dist/CoverBlockSettings-B484eE4g.js +275 -0
- package/dist/DocAnswer-CcYryOWI.js +36 -0
- package/dist/DocDetails-BigsoEWL.js +246 -0
- package/dist/DocForm-DlN0eNWt.js +7273 -0
- package/dist/DocFormSend-TqKo210I.js +143 -0
- package/dist/DocLinks-DSo54vDn.js +38 -0
- package/dist/DocModalBase-XlM1SThW.js +28 -0
- package/dist/DocPrint-tD0Vd9Sw.js +240 -0
- package/dist/DocReceipt-CDHPrhXM.js +210 -0
- package/dist/DocSendReminder-C62RhltH.js +137 -0
- package/dist/DocTextEditor-VjhV9IRp.js +17181 -0
- package/dist/DocTimeline-LcW4z3nC.js +481 -0
- package/dist/DocumentClient-CqbTRdpB.js +136 -0
- package/dist/DocumentLayout-Dbf8_01r.js +4909 -0
- package/dist/DocumentLogotype-DXYnBedV.js +87 -0
- package/dist/DocumentVoided-vH1Ti5lZ.js +25 -0
- package/dist/EmbedInput-D9qP8OnY.js +113 -0
- package/dist/EmbedSettings-DISuNqJT.js +72 -0
- package/dist/ErrorCallout-CCtCVwSh.js +28 -0
- package/dist/FilePreviewModal-BjhNyb6L.js +81 -0
- package/dist/Flag-Dhukv9_J.js +114 -0
- package/dist/HeaderSettings-CK4SkB1x.js +392 -0
- package/dist/ImageSelectModal-DnvPZzXx.js +84 -0
- package/dist/ImageUploadWrapper-B7cNMu5a.js +1604 -0
- package/dist/Index-B3HoK_cZ.js +84 -0
- package/dist/Index-B3aucNji.js +25 -0
- package/dist/Index-B9H5MMHb.js +62 -0
- package/dist/Index-BAYdvT-t.js +754 -0
- package/dist/Index-BLeQprjq.js +46 -0
- package/dist/Index-BOyvQlng.js +154 -0
- package/dist/Index-BVsw2tak.js +70 -0
- package/dist/Index-BY1UKGEO.js +98 -0
- package/dist/Index-Bh0kMSsA.js +107 -0
- package/dist/Index-BlQSM7tC.js +144 -0
- package/dist/Index-BpcJBGGd.js +642 -0
- package/dist/Index-Bs8wprXw.js +58 -0
- package/dist/Index-BvZZAvFd.js +21 -0
- package/dist/Index-CFo-3Y5Q.js +26 -0
- package/dist/Index-CNvp5K3L.js +559 -0
- package/dist/Index-CPJVx14x.js +171 -0
- package/dist/Index-CQ325eVT.js +140 -0
- package/dist/Index-CWrDtcfT.js +49 -0
- package/dist/Index-CyJnSvDR.js +223 -0
- package/dist/Index-D6bc7lg4.js +52 -0
- package/dist/Index-DCR8ev4U.js +33 -0
- package/dist/Index-DGQSB9cH.js +24 -0
- package/dist/Index-DXAvlq74.js +292 -0
- package/dist/Index-D_rfst8y.js +45 -0
- package/dist/Index-Dm8xMFGg.js +61 -0
- package/dist/Index-DtSSgtxB.js +55 -0
- package/dist/Index-DuTw9vhb.js +77 -0
- package/dist/Index-Dw26jtGV.js +31 -0
- package/dist/Index-OxN73_fO.js +32 -0
- package/dist/Index-S-FHG7_k.js +2402 -0
- package/dist/Index-ZFkitzfq.js +69 -0
- package/dist/Index-dyWK9jgr.js +25 -0
- package/dist/Index-gb11ngPS.js +57 -0
- package/dist/Index-lKk_XKJ3.js +150 -0
- package/dist/InputToggleRow-DSSvhPKA.js +57 -0
- package/dist/ManualPopover-lpJYSkw5.js +58 -0
- package/dist/MediaWrapper-BQ22FA2B.js +23 -0
- package/dist/NotBindingText-JxwzZLPP.js +32 -0
- package/dist/PackageGroup-BLSMSUDz.js +699 -0
- package/dist/PdfTerms-DtutjM5Y.js +36 -0
- package/dist/PdfViewer-BsxcZI_x.js +374 -0
- package/dist/PlainHtml-BMPZs2fT.js +20 -0
- package/dist/PriceHeader-BRYY01H2.js +339 -0
- package/dist/SearchApi-6001iFxU.js +161 -0
- package/dist/Setup-cw6jMI9M.js +50 -0
- package/dist/SmartList-q6H-uLbm.js +83 -0
- package/dist/TermsSettings-DWvaPneu.js +102 -0
- package/dist/ThemeColorRow-BXWnvfz-.js +67 -0
- package/dist/ToggleBinding-DydtwpNG.js +38 -0
- package/dist/UploadModal-D_EDKHGD.js +95 -0
- package/dist/VideoPlayerInput-B9yzUeBW.js +93 -0
- package/dist/VideoPlayerSettings-Bvp9l0yj.js +61 -0
- package/dist/VideoSelectModal-DY3N4JiS.js +100 -0
- package/dist/anime.es-BrPTThYb.js +858 -0
- package/dist/answerDocumentMixin-BYZPU_R-.js +51 -0
- package/dist/color-TdtKxwVa.js +19 -0
- package/dist/debounce-BPnlzNwd.js +84 -0
- package/dist/dom-CJxkno7i.js +91 -0
- package/dist/favicon.ico +0 -0
- package/dist/focusDrawerMixin-DC9Oa1i7.js +22 -0
- package/dist/formComponentsInstall-CEW6TK6z.js +2499 -0
- package/dist/formDrawerState-CAzvSMiQ.js +20 -0
- package/dist/formValidationMixin-D7zXxCpC.js +49 -0
- package/dist/i18nMessages-Chz_lxGG.js +17 -0
- package/dist/index-B9WDC3Xe.js +166 -0
- package/dist/index-BCMaUC5r.js +3916 -0
- package/dist/index-BDMI4NVY.js +492 -0
- package/dist/index-BbscgdRg.js +81 -0
- package/dist/index-CLUljEDI.js +347 -0
- package/dist/index-SxyZvewN.js +102 -0
- package/dist/index.es.js +35 -0
- package/dist/index.umd.js +3148 -0
- package/dist/main-CQBEuZk9.js +56739 -0
- package/dist/mapFormMixin-DlFcgwhm.js +72 -0
- package/dist/omit-BWy0Zhd3.js +31 -0
- package/dist/publicSenderState-CvOcFv2U.js +21 -0
- package/dist/splitpanes-BHUVsCZF.js +382 -0
- package/dist/style.css +4 -0
- package/dist/throttle-BrC8eGjQ.js +18 -0
- package/dist/tinycolor-PhFP695w.js +633 -0
- package/dist/tippy.esm-7dmKOUvu.js +1799 -0
- package/dist/utils-NBLgNGHR.js +108 -0
- package/dist/vuedraggable.umd-ByfH7ZxC.js +3161 -0
- package/dist/vuex.esm-DKGl8mcw.js +467 -0
- package/package.json +1 -1
- package/vite.config.ts +0 -1
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { k as n, l } from "./main-CQBEuZk9.js";
|
|
2
|
+
import { a as o } from "./debounce-BPnlzNwd.js";
|
|
3
|
+
var g = o, c = l, f = "Expected a function";
|
|
4
|
+
function u(a, i, t) {
|
|
5
|
+
var r = !0, e = !0;
|
|
6
|
+
if (typeof a != "function")
|
|
7
|
+
throw new TypeError(f);
|
|
8
|
+
return c(t) && (r = "leading" in t ? !!t.leading : r, e = "trailing" in t ? !!t.trailing : e), g(a, i, {
|
|
9
|
+
leading: r,
|
|
10
|
+
maxWait: i,
|
|
11
|
+
trailing: e
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
var d = u;
|
|
15
|
+
const _ = /* @__PURE__ */ n(d);
|
|
16
|
+
export {
|
|
17
|
+
_ as t
|
|
18
|
+
};
|
|
@@ -0,0 +1,633 @@
|
|
|
1
|
+
import { k as he } from "./main-CQBEuZk9.js";
|
|
2
|
+
var N = { exports: {} };
|
|
3
|
+
(function(R) {
|
|
4
|
+
(function(c) {
|
|
5
|
+
var z = /^\s+/, B = /\s+$/, G = 0, f = c.round, _ = c.min, m = c.max, S = c.random;
|
|
6
|
+
function s(e, r) {
|
|
7
|
+
if (e = e || "", r = r || {}, e instanceof s)
|
|
8
|
+
return e;
|
|
9
|
+
if (!(this instanceof s))
|
|
10
|
+
return new s(e, r);
|
|
11
|
+
var t = j(e);
|
|
12
|
+
this._originalInput = e, this._r = t.r, this._g = t.g, this._b = t.b, this._a = t.a, this._roundA = f(100 * this._a) / 100, this._format = r.format || t.format, this._gradientType = r.gradientType, this._r < 1 && (this._r = f(this._r)), this._g < 1 && (this._g = f(this._g)), this._b < 1 && (this._b = f(this._b)), this._ok = t.ok, this._tc_id = G++;
|
|
13
|
+
}
|
|
14
|
+
s.prototype = {
|
|
15
|
+
isDark: function() {
|
|
16
|
+
return this.getBrightness() < 128;
|
|
17
|
+
},
|
|
18
|
+
isLight: function() {
|
|
19
|
+
return !this.isDark();
|
|
20
|
+
},
|
|
21
|
+
isValid: function() {
|
|
22
|
+
return this._ok;
|
|
23
|
+
},
|
|
24
|
+
getOriginalInput: function() {
|
|
25
|
+
return this._originalInput;
|
|
26
|
+
},
|
|
27
|
+
getFormat: function() {
|
|
28
|
+
return this._format;
|
|
29
|
+
},
|
|
30
|
+
getAlpha: function() {
|
|
31
|
+
return this._a;
|
|
32
|
+
},
|
|
33
|
+
getBrightness: function() {
|
|
34
|
+
var e = this.toRgb();
|
|
35
|
+
return (e.r * 299 + e.g * 587 + e.b * 114) / 1e3;
|
|
36
|
+
},
|
|
37
|
+
getLuminance: function() {
|
|
38
|
+
var e = this.toRgb(), r, t, i, a, n, h;
|
|
39
|
+
return r = e.r / 255, t = e.g / 255, i = e.b / 255, r <= 0.03928 ? a = r / 12.92 : a = c.pow((r + 0.055) / 1.055, 2.4), t <= 0.03928 ? n = t / 12.92 : n = c.pow((t + 0.055) / 1.055, 2.4), i <= 0.03928 ? h = i / 12.92 : h = c.pow((i + 0.055) / 1.055, 2.4), 0.2126 * a + 0.7152 * n + 0.0722 * h;
|
|
40
|
+
},
|
|
41
|
+
setAlpha: function(e) {
|
|
42
|
+
return this._a = E(e), this._roundA = f(100 * this._a) / 100, this;
|
|
43
|
+
},
|
|
44
|
+
toHsv: function() {
|
|
45
|
+
var e = F(this._r, this._g, this._b);
|
|
46
|
+
return { h: e.h * 360, s: e.s, v: e.v, a: this._a };
|
|
47
|
+
},
|
|
48
|
+
toHsvString: function() {
|
|
49
|
+
var e = F(this._r, this._g, this._b), r = f(e.h * 360), t = f(e.s * 100), i = f(e.v * 100);
|
|
50
|
+
return this._a == 1 ? "hsv(" + r + ", " + t + "%, " + i + "%)" : "hsva(" + r + ", " + t + "%, " + i + "%, " + this._roundA + ")";
|
|
51
|
+
},
|
|
52
|
+
toHsl: function() {
|
|
53
|
+
var e = H(this._r, this._g, this._b);
|
|
54
|
+
return { h: e.h * 360, s: e.s, l: e.l, a: this._a };
|
|
55
|
+
},
|
|
56
|
+
toHslString: function() {
|
|
57
|
+
var e = H(this._r, this._g, this._b), r = f(e.h * 360), t = f(e.s * 100), i = f(e.l * 100);
|
|
58
|
+
return this._a == 1 ? "hsl(" + r + ", " + t + "%, " + i + "%)" : "hsla(" + r + ", " + t + "%, " + i + "%, " + this._roundA + ")";
|
|
59
|
+
},
|
|
60
|
+
toHex: function(e) {
|
|
61
|
+
return T(this._r, this._g, this._b, e);
|
|
62
|
+
},
|
|
63
|
+
toHexString: function(e) {
|
|
64
|
+
return "#" + this.toHex(e);
|
|
65
|
+
},
|
|
66
|
+
toHex8: function(e) {
|
|
67
|
+
return D(this._r, this._g, this._b, this._a, e);
|
|
68
|
+
},
|
|
69
|
+
toHex8String: function(e) {
|
|
70
|
+
return "#" + this.toHex8(e);
|
|
71
|
+
},
|
|
72
|
+
toRgb: function() {
|
|
73
|
+
return { r: f(this._r), g: f(this._g), b: f(this._b), a: this._a };
|
|
74
|
+
},
|
|
75
|
+
toRgbString: function() {
|
|
76
|
+
return this._a == 1 ? "rgb(" + f(this._r) + ", " + f(this._g) + ", " + f(this._b) + ")" : "rgba(" + f(this._r) + ", " + f(this._g) + ", " + f(this._b) + ", " + this._roundA + ")";
|
|
77
|
+
},
|
|
78
|
+
toPercentageRgb: function() {
|
|
79
|
+
return { r: f(u(this._r, 255) * 100) + "%", g: f(u(this._g, 255) * 100) + "%", b: f(u(this._b, 255) * 100) + "%", a: this._a };
|
|
80
|
+
},
|
|
81
|
+
toPercentageRgbString: function() {
|
|
82
|
+
return this._a == 1 ? "rgb(" + f(u(this._r, 255) * 100) + "%, " + f(u(this._g, 255) * 100) + "%, " + f(u(this._b, 255) * 100) + "%)" : "rgba(" + f(u(this._r, 255) * 100) + "%, " + f(u(this._g, 255) * 100) + "%, " + f(u(this._b, 255) * 100) + "%, " + this._roundA + ")";
|
|
83
|
+
},
|
|
84
|
+
toName: function() {
|
|
85
|
+
return this._a === 0 ? "transparent" : this._a < 1 ? !1 : re[T(this._r, this._g, this._b, !0)] || !1;
|
|
86
|
+
},
|
|
87
|
+
toFilter: function(e) {
|
|
88
|
+
var r = "#" + C(this._r, this._g, this._b, this._a), t = r, i = this._gradientType ? "GradientType = 1, " : "";
|
|
89
|
+
if (e) {
|
|
90
|
+
var a = s(e);
|
|
91
|
+
t = "#" + C(a._r, a._g, a._b, a._a);
|
|
92
|
+
}
|
|
93
|
+
return "progid:DXImageTransform.Microsoft.gradient(" + i + "startColorstr=" + r + ",endColorstr=" + t + ")";
|
|
94
|
+
},
|
|
95
|
+
toString: function(e) {
|
|
96
|
+
var r = !!e;
|
|
97
|
+
e = e || this._format;
|
|
98
|
+
var t = !1, i = this._a < 1 && this._a >= 0, a = !r && i && (e === "hex" || e === "hex6" || e === "hex3" || e === "hex4" || e === "hex8" || e === "name");
|
|
99
|
+
return a ? e === "name" && this._a === 0 ? this.toName() : this.toRgbString() : (e === "rgb" && (t = this.toRgbString()), e === "prgb" && (t = this.toPercentageRgbString()), (e === "hex" || e === "hex6") && (t = this.toHexString()), e === "hex3" && (t = this.toHexString(!0)), e === "hex4" && (t = this.toHex8String(!0)), e === "hex8" && (t = this.toHex8String()), e === "name" && (t = this.toName()), e === "hsl" && (t = this.toHslString()), e === "hsv" && (t = this.toHsvString()), t || this.toHexString());
|
|
100
|
+
},
|
|
101
|
+
clone: function() {
|
|
102
|
+
return s(this.toString());
|
|
103
|
+
},
|
|
104
|
+
_applyModification: function(e, r) {
|
|
105
|
+
var t = e.apply(null, [this].concat([].slice.call(r)));
|
|
106
|
+
return this._r = t._r, this._g = t._g, this._b = t._b, this.setAlpha(t._a), this;
|
|
107
|
+
},
|
|
108
|
+
lighten: function() {
|
|
109
|
+
return this._applyModification(V, arguments);
|
|
110
|
+
},
|
|
111
|
+
brighten: function() {
|
|
112
|
+
return this._applyModification(W, arguments);
|
|
113
|
+
},
|
|
114
|
+
darken: function() {
|
|
115
|
+
return this._applyModification(X, arguments);
|
|
116
|
+
},
|
|
117
|
+
desaturate: function() {
|
|
118
|
+
return this._applyModification(M, arguments);
|
|
119
|
+
},
|
|
120
|
+
saturate: function() {
|
|
121
|
+
return this._applyModification(U, arguments);
|
|
122
|
+
},
|
|
123
|
+
greyscale: function() {
|
|
124
|
+
return this._applyModification($, arguments);
|
|
125
|
+
},
|
|
126
|
+
spin: function() {
|
|
127
|
+
return this._applyModification(Z, arguments);
|
|
128
|
+
},
|
|
129
|
+
_applyCombination: function(e, r) {
|
|
130
|
+
return e.apply(null, [this].concat([].slice.call(r)));
|
|
131
|
+
},
|
|
132
|
+
analogous: function() {
|
|
133
|
+
return this._applyCombination(ee, arguments);
|
|
134
|
+
},
|
|
135
|
+
complement: function() {
|
|
136
|
+
return this._applyCombination(J, arguments);
|
|
137
|
+
},
|
|
138
|
+
monochromatic: function() {
|
|
139
|
+
return this._applyCombination(te, arguments);
|
|
140
|
+
},
|
|
141
|
+
splitcomplement: function() {
|
|
142
|
+
return this._applyCombination(Y, arguments);
|
|
143
|
+
},
|
|
144
|
+
triad: function() {
|
|
145
|
+
return this._applyCombination(K, arguments);
|
|
146
|
+
},
|
|
147
|
+
tetrad: function() {
|
|
148
|
+
return this._applyCombination(Q, arguments);
|
|
149
|
+
}
|
|
150
|
+
}, s.fromRatio = function(e, r) {
|
|
151
|
+
if (typeof e == "object") {
|
|
152
|
+
var t = {};
|
|
153
|
+
for (var i in e)
|
|
154
|
+
e.hasOwnProperty(i) && (i === "a" ? t[i] = e[i] : t[i] = x(e[i]));
|
|
155
|
+
e = t;
|
|
156
|
+
}
|
|
157
|
+
return s(e, r);
|
|
158
|
+
};
|
|
159
|
+
function j(e) {
|
|
160
|
+
var r = { r: 0, g: 0, b: 0 }, t = 1, i = null, a = null, n = null, h = !1, l = !1;
|
|
161
|
+
return typeof e == "string" && (e = se(e)), typeof e == "object" && (y(e.r) && y(e.g) && y(e.b) ? (r = O(e.r, e.g, e.b), h = !0, l = String(e.r).substr(-1) === "%" ? "prgb" : "rgb") : y(e.h) && y(e.s) && y(e.v) ? (i = x(e.s), a = x(e.v), r = q(e.h, i, a), h = !0, l = "hsv") : y(e.h) && y(e.s) && y(e.l) && (i = x(e.s), n = x(e.l), r = L(e.h, i, n), h = !0, l = "hsl"), e.hasOwnProperty("a") && (t = e.a)), t = E(t), {
|
|
162
|
+
ok: h,
|
|
163
|
+
format: e.format || l,
|
|
164
|
+
r: _(255, m(r.r, 0)),
|
|
165
|
+
g: _(255, m(r.g, 0)),
|
|
166
|
+
b: _(255, m(r.b, 0)),
|
|
167
|
+
a: t
|
|
168
|
+
};
|
|
169
|
+
}
|
|
170
|
+
function O(e, r, t) {
|
|
171
|
+
return {
|
|
172
|
+
r: u(e, 255) * 255,
|
|
173
|
+
g: u(r, 255) * 255,
|
|
174
|
+
b: u(t, 255) * 255
|
|
175
|
+
};
|
|
176
|
+
}
|
|
177
|
+
function H(e, r, t) {
|
|
178
|
+
e = u(e, 255), r = u(r, 255), t = u(t, 255);
|
|
179
|
+
var i = m(e, r, t), a = _(e, r, t), n, h, l = (i + a) / 2;
|
|
180
|
+
if (i == a)
|
|
181
|
+
n = h = 0;
|
|
182
|
+
else {
|
|
183
|
+
var g = i - a;
|
|
184
|
+
switch (h = l > 0.5 ? g / (2 - i - a) : g / (i + a), i) {
|
|
185
|
+
case e:
|
|
186
|
+
n = (r - t) / g + (r < t ? 6 : 0);
|
|
187
|
+
break;
|
|
188
|
+
case r:
|
|
189
|
+
n = (t - e) / g + 2;
|
|
190
|
+
break;
|
|
191
|
+
case t:
|
|
192
|
+
n = (e - r) / g + 4;
|
|
193
|
+
break;
|
|
194
|
+
}
|
|
195
|
+
n /= 6;
|
|
196
|
+
}
|
|
197
|
+
return { h: n, s: h, l };
|
|
198
|
+
}
|
|
199
|
+
function L(e, r, t) {
|
|
200
|
+
var i, a, n;
|
|
201
|
+
e = u(e, 360), r = u(r, 100), t = u(t, 100);
|
|
202
|
+
function h(b, A, p) {
|
|
203
|
+
return p < 0 && (p += 1), p > 1 && (p -= 1), p < 1 / 6 ? b + (A - b) * 6 * p : p < 1 / 2 ? A : p < 2 / 3 ? b + (A - b) * (2 / 3 - p) * 6 : b;
|
|
204
|
+
}
|
|
205
|
+
if (r === 0)
|
|
206
|
+
i = a = n = t;
|
|
207
|
+
else {
|
|
208
|
+
var l = t < 0.5 ? t * (1 + r) : t + r - t * r, g = 2 * t - l;
|
|
209
|
+
i = h(g, l, e + 1 / 3), a = h(g, l, e), n = h(g, l, e - 1 / 3);
|
|
210
|
+
}
|
|
211
|
+
return { r: i * 255, g: a * 255, b: n * 255 };
|
|
212
|
+
}
|
|
213
|
+
function F(e, r, t) {
|
|
214
|
+
e = u(e, 255), r = u(r, 255), t = u(t, 255);
|
|
215
|
+
var i = m(e, r, t), a = _(e, r, t), n, h, l = i, g = i - a;
|
|
216
|
+
if (h = i === 0 ? 0 : g / i, i == a)
|
|
217
|
+
n = 0;
|
|
218
|
+
else {
|
|
219
|
+
switch (i) {
|
|
220
|
+
case e:
|
|
221
|
+
n = (r - t) / g + (r < t ? 6 : 0);
|
|
222
|
+
break;
|
|
223
|
+
case r:
|
|
224
|
+
n = (t - e) / g + 2;
|
|
225
|
+
break;
|
|
226
|
+
case t:
|
|
227
|
+
n = (e - r) / g + 4;
|
|
228
|
+
break;
|
|
229
|
+
}
|
|
230
|
+
n /= 6;
|
|
231
|
+
}
|
|
232
|
+
return { h: n, s: h, v: l };
|
|
233
|
+
}
|
|
234
|
+
function q(e, r, t) {
|
|
235
|
+
e = u(e, 360) * 6, r = u(r, 100), t = u(t, 100);
|
|
236
|
+
var i = c.floor(e), a = e - i, n = t * (1 - r), h = t * (1 - a * r), l = t * (1 - (1 - a) * r), g = i % 6, b = [t, h, n, n, l, t][g], A = [l, t, t, h, n, n][g], p = [n, n, l, t, t, h][g];
|
|
237
|
+
return { r: b * 255, g: A * 255, b: p * 255 };
|
|
238
|
+
}
|
|
239
|
+
function T(e, r, t, i) {
|
|
240
|
+
var a = [
|
|
241
|
+
d(f(e).toString(16)),
|
|
242
|
+
d(f(r).toString(16)),
|
|
243
|
+
d(f(t).toString(16))
|
|
244
|
+
];
|
|
245
|
+
return i && 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("");
|
|
246
|
+
}
|
|
247
|
+
function D(e, r, t, i, a) {
|
|
248
|
+
var n = [
|
|
249
|
+
d(f(e).toString(16)),
|
|
250
|
+
d(f(r).toString(16)),
|
|
251
|
+
d(f(t).toString(16)),
|
|
252
|
+
d(I(i))
|
|
253
|
+
];
|
|
254
|
+
return a && n[0].charAt(0) == n[0].charAt(1) && n[1].charAt(0) == n[1].charAt(1) && n[2].charAt(0) == n[2].charAt(1) && n[3].charAt(0) == n[3].charAt(1) ? n[0].charAt(0) + n[1].charAt(0) + n[2].charAt(0) + n[3].charAt(0) : n.join("");
|
|
255
|
+
}
|
|
256
|
+
function C(e, r, t, i) {
|
|
257
|
+
var a = [
|
|
258
|
+
d(I(i)),
|
|
259
|
+
d(f(e).toString(16)),
|
|
260
|
+
d(f(r).toString(16)),
|
|
261
|
+
d(f(t).toString(16))
|
|
262
|
+
];
|
|
263
|
+
return a.join("");
|
|
264
|
+
}
|
|
265
|
+
s.equals = function(e, r) {
|
|
266
|
+
return !e || !r ? !1 : s(e).toRgbString() == s(r).toRgbString();
|
|
267
|
+
}, s.random = function() {
|
|
268
|
+
return s.fromRatio({
|
|
269
|
+
r: S(),
|
|
270
|
+
g: S(),
|
|
271
|
+
b: S()
|
|
272
|
+
});
|
|
273
|
+
};
|
|
274
|
+
function M(e, r) {
|
|
275
|
+
r = r === 0 ? 0 : r || 10;
|
|
276
|
+
var t = s(e).toHsl();
|
|
277
|
+
return t.s -= r / 100, t.s = k(t.s), s(t);
|
|
278
|
+
}
|
|
279
|
+
function U(e, r) {
|
|
280
|
+
r = r === 0 ? 0 : r || 10;
|
|
281
|
+
var t = s(e).toHsl();
|
|
282
|
+
return t.s += r / 100, t.s = k(t.s), s(t);
|
|
283
|
+
}
|
|
284
|
+
function $(e) {
|
|
285
|
+
return s(e).desaturate(100);
|
|
286
|
+
}
|
|
287
|
+
function V(e, r) {
|
|
288
|
+
r = r === 0 ? 0 : r || 10;
|
|
289
|
+
var t = s(e).toHsl();
|
|
290
|
+
return t.l += r / 100, t.l = k(t.l), s(t);
|
|
291
|
+
}
|
|
292
|
+
function W(e, r) {
|
|
293
|
+
r = r === 0 ? 0 : r || 10;
|
|
294
|
+
var t = s(e).toRgb();
|
|
295
|
+
return t.r = m(0, _(255, t.r - f(255 * -(r / 100)))), t.g = m(0, _(255, t.g - f(255 * -(r / 100)))), t.b = m(0, _(255, t.b - f(255 * -(r / 100)))), s(t);
|
|
296
|
+
}
|
|
297
|
+
function X(e, r) {
|
|
298
|
+
r = r === 0 ? 0 : r || 10;
|
|
299
|
+
var t = s(e).toHsl();
|
|
300
|
+
return t.l -= r / 100, t.l = k(t.l), s(t);
|
|
301
|
+
}
|
|
302
|
+
function Z(e, r) {
|
|
303
|
+
var t = s(e).toHsl(), i = (t.h + r) % 360;
|
|
304
|
+
return t.h = i < 0 ? 360 + i : i, s(t);
|
|
305
|
+
}
|
|
306
|
+
function J(e) {
|
|
307
|
+
var r = s(e).toHsl();
|
|
308
|
+
return r.h = (r.h + 180) % 360, s(r);
|
|
309
|
+
}
|
|
310
|
+
function K(e) {
|
|
311
|
+
var r = s(e).toHsl(), t = r.h;
|
|
312
|
+
return [
|
|
313
|
+
s(e),
|
|
314
|
+
s({ h: (t + 120) % 360, s: r.s, l: r.l }),
|
|
315
|
+
s({ h: (t + 240) % 360, s: r.s, l: r.l })
|
|
316
|
+
];
|
|
317
|
+
}
|
|
318
|
+
function Q(e) {
|
|
319
|
+
var r = s(e).toHsl(), t = r.h;
|
|
320
|
+
return [
|
|
321
|
+
s(e),
|
|
322
|
+
s({ h: (t + 90) % 360, s: r.s, l: r.l }),
|
|
323
|
+
s({ h: (t + 180) % 360, s: r.s, l: r.l }),
|
|
324
|
+
s({ h: (t + 270) % 360, s: r.s, l: r.l })
|
|
325
|
+
];
|
|
326
|
+
}
|
|
327
|
+
function Y(e) {
|
|
328
|
+
var r = s(e).toHsl(), t = r.h;
|
|
329
|
+
return [
|
|
330
|
+
s(e),
|
|
331
|
+
s({ h: (t + 72) % 360, s: r.s, l: r.l }),
|
|
332
|
+
s({ h: (t + 216) % 360, s: r.s, l: r.l })
|
|
333
|
+
];
|
|
334
|
+
}
|
|
335
|
+
function ee(e, r, t) {
|
|
336
|
+
r = r || 6, t = t || 30;
|
|
337
|
+
var i = s(e).toHsl(), a = 360 / t, n = [s(e)];
|
|
338
|
+
for (i.h = (i.h - (a * r >> 1) + 720) % 360; --r; )
|
|
339
|
+
i.h = (i.h + a) % 360, n.push(s(i));
|
|
340
|
+
return n;
|
|
341
|
+
}
|
|
342
|
+
function te(e, r) {
|
|
343
|
+
r = r || 6;
|
|
344
|
+
for (var t = s(e).toHsv(), i = t.h, a = t.s, n = t.v, h = [], l = 1 / r; r--; )
|
|
345
|
+
h.push(s({ h: i, s: a, v: n })), n = (n + l) % 1;
|
|
346
|
+
return h;
|
|
347
|
+
}
|
|
348
|
+
s.mix = function(e, r, t) {
|
|
349
|
+
t = t === 0 ? 0 : t || 50;
|
|
350
|
+
var i = s(e).toRgb(), a = s(r).toRgb(), n = t / 100, h = {
|
|
351
|
+
r: (a.r - i.r) * n + i.r,
|
|
352
|
+
g: (a.g - i.g) * n + i.g,
|
|
353
|
+
b: (a.b - i.b) * n + i.b,
|
|
354
|
+
a: (a.a - i.a) * n + i.a
|
|
355
|
+
};
|
|
356
|
+
return s(h);
|
|
357
|
+
}, s.readability = function(e, r) {
|
|
358
|
+
var t = s(e), i = s(r);
|
|
359
|
+
return (c.max(t.getLuminance(), i.getLuminance()) + 0.05) / (c.min(t.getLuminance(), i.getLuminance()) + 0.05);
|
|
360
|
+
}, s.isReadable = function(e, r, t) {
|
|
361
|
+
var i = s.readability(e, r), a, n;
|
|
362
|
+
switch (n = !1, a = fe(t), a.level + a.size) {
|
|
363
|
+
case "AAsmall":
|
|
364
|
+
case "AAAlarge":
|
|
365
|
+
n = i >= 4.5;
|
|
366
|
+
break;
|
|
367
|
+
case "AAlarge":
|
|
368
|
+
n = i >= 3;
|
|
369
|
+
break;
|
|
370
|
+
case "AAAsmall":
|
|
371
|
+
n = i >= 7;
|
|
372
|
+
break;
|
|
373
|
+
}
|
|
374
|
+
return n;
|
|
375
|
+
}, s.mostReadable = function(e, r, t) {
|
|
376
|
+
var i = null, a = 0, n, h, l, g;
|
|
377
|
+
t = t || {}, h = t.includeFallbackColors, l = t.level, g = t.size;
|
|
378
|
+
for (var b = 0; b < r.length; b++)
|
|
379
|
+
n = s.readability(e, r[b]), n > a && (a = n, i = s(r[b]));
|
|
380
|
+
return s.isReadable(e, i, { level: l, size: g }) || !h ? i : (t.includeFallbackColors = !1, s.mostReadable(e, ["#fff", "#000"], t));
|
|
381
|
+
};
|
|
382
|
+
var w = s.names = {
|
|
383
|
+
aliceblue: "f0f8ff",
|
|
384
|
+
antiquewhite: "faebd7",
|
|
385
|
+
aqua: "0ff",
|
|
386
|
+
aquamarine: "7fffd4",
|
|
387
|
+
azure: "f0ffff",
|
|
388
|
+
beige: "f5f5dc",
|
|
389
|
+
bisque: "ffe4c4",
|
|
390
|
+
black: "000",
|
|
391
|
+
blanchedalmond: "ffebcd",
|
|
392
|
+
blue: "00f",
|
|
393
|
+
blueviolet: "8a2be2",
|
|
394
|
+
brown: "a52a2a",
|
|
395
|
+
burlywood: "deb887",
|
|
396
|
+
burntsienna: "ea7e5d",
|
|
397
|
+
cadetblue: "5f9ea0",
|
|
398
|
+
chartreuse: "7fff00",
|
|
399
|
+
chocolate: "d2691e",
|
|
400
|
+
coral: "ff7f50",
|
|
401
|
+
cornflowerblue: "6495ed",
|
|
402
|
+
cornsilk: "fff8dc",
|
|
403
|
+
crimson: "dc143c",
|
|
404
|
+
cyan: "0ff",
|
|
405
|
+
darkblue: "00008b",
|
|
406
|
+
darkcyan: "008b8b",
|
|
407
|
+
darkgoldenrod: "b8860b",
|
|
408
|
+
darkgray: "a9a9a9",
|
|
409
|
+
darkgreen: "006400",
|
|
410
|
+
darkgrey: "a9a9a9",
|
|
411
|
+
darkkhaki: "bdb76b",
|
|
412
|
+
darkmagenta: "8b008b",
|
|
413
|
+
darkolivegreen: "556b2f",
|
|
414
|
+
darkorange: "ff8c00",
|
|
415
|
+
darkorchid: "9932cc",
|
|
416
|
+
darkred: "8b0000",
|
|
417
|
+
darksalmon: "e9967a",
|
|
418
|
+
darkseagreen: "8fbc8f",
|
|
419
|
+
darkslateblue: "483d8b",
|
|
420
|
+
darkslategray: "2f4f4f",
|
|
421
|
+
darkslategrey: "2f4f4f",
|
|
422
|
+
darkturquoise: "00ced1",
|
|
423
|
+
darkviolet: "9400d3",
|
|
424
|
+
deeppink: "ff1493",
|
|
425
|
+
deepskyblue: "00bfff",
|
|
426
|
+
dimgray: "696969",
|
|
427
|
+
dimgrey: "696969",
|
|
428
|
+
dodgerblue: "1e90ff",
|
|
429
|
+
firebrick: "b22222",
|
|
430
|
+
floralwhite: "fffaf0",
|
|
431
|
+
forestgreen: "228b22",
|
|
432
|
+
fuchsia: "f0f",
|
|
433
|
+
gainsboro: "dcdcdc",
|
|
434
|
+
ghostwhite: "f8f8ff",
|
|
435
|
+
gold: "ffd700",
|
|
436
|
+
goldenrod: "daa520",
|
|
437
|
+
gray: "808080",
|
|
438
|
+
green: "008000",
|
|
439
|
+
greenyellow: "adff2f",
|
|
440
|
+
grey: "808080",
|
|
441
|
+
honeydew: "f0fff0",
|
|
442
|
+
hotpink: "ff69b4",
|
|
443
|
+
indianred: "cd5c5c",
|
|
444
|
+
indigo: "4b0082",
|
|
445
|
+
ivory: "fffff0",
|
|
446
|
+
khaki: "f0e68c",
|
|
447
|
+
lavender: "e6e6fa",
|
|
448
|
+
lavenderblush: "fff0f5",
|
|
449
|
+
lawngreen: "7cfc00",
|
|
450
|
+
lemonchiffon: "fffacd",
|
|
451
|
+
lightblue: "add8e6",
|
|
452
|
+
lightcoral: "f08080",
|
|
453
|
+
lightcyan: "e0ffff",
|
|
454
|
+
lightgoldenrodyellow: "fafad2",
|
|
455
|
+
lightgray: "d3d3d3",
|
|
456
|
+
lightgreen: "90ee90",
|
|
457
|
+
lightgrey: "d3d3d3",
|
|
458
|
+
lightpink: "ffb6c1",
|
|
459
|
+
lightsalmon: "ffa07a",
|
|
460
|
+
lightseagreen: "20b2aa",
|
|
461
|
+
lightskyblue: "87cefa",
|
|
462
|
+
lightslategray: "789",
|
|
463
|
+
lightslategrey: "789",
|
|
464
|
+
lightsteelblue: "b0c4de",
|
|
465
|
+
lightyellow: "ffffe0",
|
|
466
|
+
lime: "0f0",
|
|
467
|
+
limegreen: "32cd32",
|
|
468
|
+
linen: "faf0e6",
|
|
469
|
+
magenta: "f0f",
|
|
470
|
+
maroon: "800000",
|
|
471
|
+
mediumaquamarine: "66cdaa",
|
|
472
|
+
mediumblue: "0000cd",
|
|
473
|
+
mediumorchid: "ba55d3",
|
|
474
|
+
mediumpurple: "9370db",
|
|
475
|
+
mediumseagreen: "3cb371",
|
|
476
|
+
mediumslateblue: "7b68ee",
|
|
477
|
+
mediumspringgreen: "00fa9a",
|
|
478
|
+
mediumturquoise: "48d1cc",
|
|
479
|
+
mediumvioletred: "c71585",
|
|
480
|
+
midnightblue: "191970",
|
|
481
|
+
mintcream: "f5fffa",
|
|
482
|
+
mistyrose: "ffe4e1",
|
|
483
|
+
moccasin: "ffe4b5",
|
|
484
|
+
navajowhite: "ffdead",
|
|
485
|
+
navy: "000080",
|
|
486
|
+
oldlace: "fdf5e6",
|
|
487
|
+
olive: "808000",
|
|
488
|
+
olivedrab: "6b8e23",
|
|
489
|
+
orange: "ffa500",
|
|
490
|
+
orangered: "ff4500",
|
|
491
|
+
orchid: "da70d6",
|
|
492
|
+
palegoldenrod: "eee8aa",
|
|
493
|
+
palegreen: "98fb98",
|
|
494
|
+
paleturquoise: "afeeee",
|
|
495
|
+
palevioletred: "db7093",
|
|
496
|
+
papayawhip: "ffefd5",
|
|
497
|
+
peachpuff: "ffdab9",
|
|
498
|
+
peru: "cd853f",
|
|
499
|
+
pink: "ffc0cb",
|
|
500
|
+
plum: "dda0dd",
|
|
501
|
+
powderblue: "b0e0e6",
|
|
502
|
+
purple: "800080",
|
|
503
|
+
rebeccapurple: "663399",
|
|
504
|
+
red: "f00",
|
|
505
|
+
rosybrown: "bc8f8f",
|
|
506
|
+
royalblue: "4169e1",
|
|
507
|
+
saddlebrown: "8b4513",
|
|
508
|
+
salmon: "fa8072",
|
|
509
|
+
sandybrown: "f4a460",
|
|
510
|
+
seagreen: "2e8b57",
|
|
511
|
+
seashell: "fff5ee",
|
|
512
|
+
sienna: "a0522d",
|
|
513
|
+
silver: "c0c0c0",
|
|
514
|
+
skyblue: "87ceeb",
|
|
515
|
+
slateblue: "6a5acd",
|
|
516
|
+
slategray: "708090",
|
|
517
|
+
slategrey: "708090",
|
|
518
|
+
snow: "fffafa",
|
|
519
|
+
springgreen: "00ff7f",
|
|
520
|
+
steelblue: "4682b4",
|
|
521
|
+
tan: "d2b48c",
|
|
522
|
+
teal: "008080",
|
|
523
|
+
thistle: "d8bfd8",
|
|
524
|
+
tomato: "ff6347",
|
|
525
|
+
turquoise: "40e0d0",
|
|
526
|
+
violet: "ee82ee",
|
|
527
|
+
wheat: "f5deb3",
|
|
528
|
+
white: "fff",
|
|
529
|
+
whitesmoke: "f5f5f5",
|
|
530
|
+
yellow: "ff0",
|
|
531
|
+
yellowgreen: "9acd32"
|
|
532
|
+
}, re = s.hexNames = ie(w);
|
|
533
|
+
function ie(e) {
|
|
534
|
+
var r = {};
|
|
535
|
+
for (var t in e)
|
|
536
|
+
e.hasOwnProperty(t) && (r[e[t]] = t);
|
|
537
|
+
return r;
|
|
538
|
+
}
|
|
539
|
+
function E(e) {
|
|
540
|
+
return e = parseFloat(e), (isNaN(e) || e < 0 || e > 1) && (e = 1), e;
|
|
541
|
+
}
|
|
542
|
+
function u(e, r) {
|
|
543
|
+
ne(e) && (e = "100%");
|
|
544
|
+
var t = ae(e);
|
|
545
|
+
return e = _(r, m(0, parseFloat(e))), t && (e = parseInt(e * r, 10) / 100), c.abs(e - r) < 1e-6 ? 1 : e % r / parseFloat(r);
|
|
546
|
+
}
|
|
547
|
+
function k(e) {
|
|
548
|
+
return _(1, m(0, e));
|
|
549
|
+
}
|
|
550
|
+
function o(e) {
|
|
551
|
+
return parseInt(e, 16);
|
|
552
|
+
}
|
|
553
|
+
function ne(e) {
|
|
554
|
+
return typeof e == "string" && e.indexOf(".") != -1 && parseFloat(e) === 1;
|
|
555
|
+
}
|
|
556
|
+
function ae(e) {
|
|
557
|
+
return typeof e == "string" && e.indexOf("%") != -1;
|
|
558
|
+
}
|
|
559
|
+
function d(e) {
|
|
560
|
+
return e.length == 1 ? "0" + e : "" + e;
|
|
561
|
+
}
|
|
562
|
+
function x(e) {
|
|
563
|
+
return e <= 1 && (e = e * 100 + "%"), e;
|
|
564
|
+
}
|
|
565
|
+
function I(e) {
|
|
566
|
+
return c.round(parseFloat(e) * 255).toString(16);
|
|
567
|
+
}
|
|
568
|
+
function P(e) {
|
|
569
|
+
return o(e) / 255;
|
|
570
|
+
}
|
|
571
|
+
var v = function() {
|
|
572
|
+
var e = "[-\\+]?\\d+%?", r = "[-\\+]?\\d*\\.\\d+%?", t = "(?:" + r + ")|(?:" + e + ")", i = "[\\s|\\(]+(" + t + ")[,|\\s]+(" + t + ")[,|\\s]+(" + t + ")\\s*\\)?", a = "[\\s|\\(]+(" + t + ")[,|\\s]+(" + t + ")[,|\\s]+(" + t + ")[,|\\s]+(" + t + ")\\s*\\)?";
|
|
573
|
+
return {
|
|
574
|
+
CSS_UNIT: new RegExp(t),
|
|
575
|
+
rgb: new RegExp("rgb" + i),
|
|
576
|
+
rgba: new RegExp("rgba" + a),
|
|
577
|
+
hsl: new RegExp("hsl" + i),
|
|
578
|
+
hsla: new RegExp("hsla" + a),
|
|
579
|
+
hsv: new RegExp("hsv" + i),
|
|
580
|
+
hsva: new RegExp("hsva" + a),
|
|
581
|
+
hex3: /^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,
|
|
582
|
+
hex6: /^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,
|
|
583
|
+
hex4: /^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,
|
|
584
|
+
hex8: /^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/
|
|
585
|
+
};
|
|
586
|
+
}();
|
|
587
|
+
function y(e) {
|
|
588
|
+
return !!v.CSS_UNIT.exec(e);
|
|
589
|
+
}
|
|
590
|
+
function se(e) {
|
|
591
|
+
e = e.replace(z, "").replace(B, "").toLowerCase();
|
|
592
|
+
var r = !1;
|
|
593
|
+
if (w[e])
|
|
594
|
+
e = w[e], r = !0;
|
|
595
|
+
else if (e == "transparent")
|
|
596
|
+
return { r: 0, g: 0, b: 0, a: 0, format: "name" };
|
|
597
|
+
var t;
|
|
598
|
+
return (t = v.rgb.exec(e)) ? { r: t[1], g: t[2], b: t[3] } : (t = v.rgba.exec(e)) ? { r: t[1], g: t[2], b: t[3], a: t[4] } : (t = v.hsl.exec(e)) ? { h: t[1], s: t[2], l: t[3] } : (t = v.hsla.exec(e)) ? { h: t[1], s: t[2], l: t[3], a: t[4] } : (t = v.hsv.exec(e)) ? { h: t[1], s: t[2], v: t[3] } : (t = v.hsva.exec(e)) ? { h: t[1], s: t[2], v: t[3], a: t[4] } : (t = v.hex8.exec(e)) ? {
|
|
599
|
+
r: o(t[1]),
|
|
600
|
+
g: o(t[2]),
|
|
601
|
+
b: o(t[3]),
|
|
602
|
+
a: P(t[4]),
|
|
603
|
+
format: r ? "name" : "hex8"
|
|
604
|
+
} : (t = v.hex6.exec(e)) ? {
|
|
605
|
+
r: o(t[1]),
|
|
606
|
+
g: o(t[2]),
|
|
607
|
+
b: o(t[3]),
|
|
608
|
+
format: r ? "name" : "hex"
|
|
609
|
+
} : (t = v.hex4.exec(e)) ? {
|
|
610
|
+
r: o(t[1] + "" + t[1]),
|
|
611
|
+
g: o(t[2] + "" + t[2]),
|
|
612
|
+
b: o(t[3] + "" + t[3]),
|
|
613
|
+
a: P(t[4] + "" + t[4]),
|
|
614
|
+
format: r ? "name" : "hex8"
|
|
615
|
+
} : (t = v.hex3.exec(e)) ? {
|
|
616
|
+
r: o(t[1] + "" + t[1]),
|
|
617
|
+
g: o(t[2] + "" + t[2]),
|
|
618
|
+
b: o(t[3] + "" + t[3]),
|
|
619
|
+
format: r ? "name" : "hex"
|
|
620
|
+
} : !1;
|
|
621
|
+
}
|
|
622
|
+
function fe(e) {
|
|
623
|
+
var r, t;
|
|
624
|
+
return e = e || { level: "AA", size: "small" }, r = (e.level || "AA").toUpperCase(), t = (e.size || "small").toLowerCase(), r !== "AA" && r !== "AAA" && (r = "AA"), t !== "small" && t !== "large" && (t = "small"), { level: r, size: t };
|
|
625
|
+
}
|
|
626
|
+
R.exports ? R.exports = s : window.tinycolor = s;
|
|
627
|
+
})(Math);
|
|
628
|
+
})(N);
|
|
629
|
+
var ue = N.exports;
|
|
630
|
+
const ge = /* @__PURE__ */ he(ue);
|
|
631
|
+
export {
|
|
632
|
+
ge as t
|
|
633
|
+
};
|