st-comp 0.0.147 → 0.0.149

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 (142) hide show
  1. package/components.d.ts +3 -0
  2. package/es/ChartLayout.cjs +1 -1
  3. package/es/ChartLayout.js +2 -2
  4. package/es/Dialog.cjs +1 -1
  5. package/es/Dialog.js +26 -22
  6. package/es/FactorWarning.cjs +1 -1
  7. package/es/FactorWarning.js +112 -103
  8. package/es/Kline.cjs +1 -0
  9. package/es/Kline.js +1901 -0
  10. package/es/KlineBasic.cjs +1 -1
  11. package/es/KlineBasic.js +675 -1422
  12. package/es/KlineNew.cjs +1 -3
  13. package/es/KlineNew.js +314 -2736
  14. package/es/Pagination.cjs +1 -1
  15. package/es/Pagination.js +102 -96
  16. package/es/Table.cjs +1 -1
  17. package/es/Table.js +66 -60
  18. package/es/User.cjs +1 -1
  19. package/es/User.js +102 -95
  20. package/es/VarietySearch.cjs +1 -1
  21. package/es/VarietySearch.js +41 -32
  22. package/es/VirtualTable.cjs +13 -1
  23. package/es/VirtualTable.js +2801 -1
  24. package/es/{_initCloneObject-a8dcd058.js → _initCloneObject-14b53c6f.js} +26 -26
  25. package/es/_initCloneObject-441db749.cjs +1 -0
  26. package/es/{base-674a354a.js → base-437d17f3.js} +64 -63
  27. package/es/{base-00ce90ec.cjs → base-ec05f348.cjs} +3 -3
  28. package/es/castArray-4251bbe4.js +10 -0
  29. package/es/castArray-a45823fe.cjs +1 -0
  30. package/es/config-provider-55482a43.js +47 -0
  31. package/es/config-provider-7cdfca4d.cjs +1 -0
  32. package/es/debounce-ac30be50.js +83 -0
  33. package/es/debounce-b2ff12bd.cjs +1 -0
  34. package/es/{dropdown-ce30ada6.js → dropdown-634b5e27.js} +31 -30
  35. package/es/dropdown-d7c59a21.cjs +1 -0
  36. package/es/el-button-196807af.cjs +1 -0
  37. package/es/el-button-e1665717.js +235 -0
  38. package/es/el-checkbox-group-492b95cc.cjs +1 -0
  39. package/es/{el-checkbox-group-0554b352.js → el-checkbox-group-e8fece80.js} +10 -10
  40. package/es/{el-empty-87154b6d.cjs → el-empty-19ea04f4.cjs} +1 -1
  41. package/es/{el-empty-39b3aed7.js → el-empty-bacc6613.js} +5 -5
  42. package/es/el-form-item-5bdffd07.cjs +12 -0
  43. package/es/{el-form-item-fc6f80ab.js → el-form-item-af1855f0.js} +79 -78
  44. package/es/el-input-23e2bac3.cjs +1 -0
  45. package/es/{el-input-d249ac86.js → el-input-4961b99f.js} +84 -82
  46. package/es/el-input-number-40a81eb5.cjs +1 -0
  47. package/es/{el-input-number-2066fbb7.js → el-input-number-610fc8ba.js} +36 -35
  48. package/es/el-menu-item-78b858f2.cjs +1 -0
  49. package/es/el-menu-item-7d04c11a.js +771 -0
  50. package/es/{el-message-9859835d.js → el-message-c3b3ac96.js} +81 -79
  51. package/es/el-message-d4df8136.cjs +1 -0
  52. package/es/el-overlay-12dd9b35.js +519 -0
  53. package/es/el-overlay-bc0790a2.cjs +1 -0
  54. package/es/{el-popover-b7b43c1f.js → el-popover-0aa071f2.js} +18 -18
  55. package/es/el-popover-8a77e015.cjs +1 -0
  56. package/es/el-popper-50100766.js +2262 -0
  57. package/es/el-popper-746070ba.cjs +1 -0
  58. package/es/el-scrollbar-562d0595.js +201 -0
  59. package/es/el-scrollbar-d1c3e7f7.cjs +1 -0
  60. package/es/{el-select-bcbb7e55.js → el-select-9381b156.js} +333 -329
  61. package/es/el-select-b162dffc.cjs +1 -0
  62. package/es/{el-table-column-c1e1a206.js → el-table-column-55bffba5.js} +350 -346
  63. package/es/el-table-column-6d761fce.cjs +14 -0
  64. package/es/el-tag-985d9aff.js +279 -0
  65. package/es/el-tag-c51a6490.cjs +1 -0
  66. package/es/index-09e01b1d.js +81 -0
  67. package/es/index-0cb48e01.js +306 -0
  68. package/es/{index-45de4a12.js → index-39ec9741.js} +7 -7
  69. package/es/index-3bf8d597.cjs +1 -0
  70. package/es/index-657047bb.js +513 -0
  71. package/es/index-8a0b1c53.cjs +3 -0
  72. package/es/index-a387515d.cjs +1 -0
  73. package/es/index-a902a0d9.js +59 -0
  74. package/es/index-deb8de52.cjs +1 -0
  75. package/es/index-eea0bcb3.cjs +1 -0
  76. package/es/index.esm-8d9a2abe.js +2432 -0
  77. package/es/index.esm-94a95a2a.cjs +3 -0
  78. package/es/raf-8fc301fd.cjs +1 -0
  79. package/es/raf-b128c7b7.js +6 -0
  80. package/es/{scroll-cb696ed2.js → scroll-387fcfdb.js} +1 -1
  81. package/es/{scroll-cca17da0.cjs → scroll-41224831.cjs} +1 -1
  82. package/es/style.css +1 -1
  83. package/es/typescript-7ae59c4c.js +4 -0
  84. package/es/typescript-b63f8e83.cjs +1 -0
  85. package/es/use-form-common-props-1b84d8f4.cjs +2 -0
  86. package/es/use-form-common-props-f377e500.js +587 -0
  87. package/es/vnode-7dfd4ed5.js +14 -0
  88. package/es/vnode-7fbc61e1.cjs +1 -0
  89. package/es/{zh-cn-37af467d.cjs → zh-cn-ab9a583d.cjs} +1 -1
  90. package/es/{zh-cn-ef7d7220.js → zh-cn-eb9c2820.js} +2 -2
  91. package/lib/bundle.js +1 -1
  92. package/lib/bundle.umd.cjs +206 -206
  93. package/lib/{index-24f8572c.js → index-d2de454d.js} +33249 -31372
  94. package/lib/{python-2143eee4.js → python-22975586.js} +1 -1
  95. package/lib/style.css +1 -1
  96. package/package.json +1 -1
  97. package/packages/Kline/components/Contextmenu/index.vue +110 -0
  98. package/packages/Kline/components/Tips/index.vue +40 -0
  99. package/packages/Kline/componentsNew/KlineSlide/index.vue +155 -0
  100. package/packages/Kline/componentsNew/KlineSub/index.vue +297 -0
  101. package/packages/Kline/componentsNew/KlineTips/index.vue +66 -0
  102. package/packages/Kline/componentsNew/KlineUtils/index.vue +84 -0
  103. package/packages/Kline/componentsNew/Tips/index.vue +33 -0
  104. package/packages/Kline/formatKlineData.ts +109 -0
  105. package/packages/Kline/images/buy.svg +1 -0
  106. package/packages/Kline/images/pen.png +0 -0
  107. package/packages/Kline/images/sell.svg +1 -0
  108. package/packages/Kline/images/t.svg +1 -0
  109. package/packages/Kline/index.ts +16 -0
  110. package/packages/Kline/index.vue +891 -0
  111. package/packages/Kline/option.ts +539 -0
  112. package/packages/Kline/type.d.ts +219 -0
  113. package/packages/Kline/utils.ts +682 -0
  114. package/packages/KlineBasic/utils.js +1 -1
  115. package/packages/index.ts +2 -0
  116. package/src/pages/Kline/index.vue +12 -0
  117. package/src/router/routes.ts +5 -0
  118. package/es/_initCloneObject-7493ecd5.cjs +0 -1
  119. package/es/config-provider-419ffbf2.js +0 -120
  120. package/es/config-provider-68414290.cjs +0 -3
  121. package/es/dropdown-127a8c0d.cjs +0 -1
  122. package/es/el-button-7b9f5933.js +0 -745
  123. package/es/el-button-c00975e1.cjs +0 -1
  124. package/es/el-checkbox-group-7a313d34.cjs +0 -1
  125. package/es/el-form-item-7867f64d.cjs +0 -12
  126. package/es/el-input-2ff1628c.cjs +0 -1
  127. package/es/el-input-number-d6801a5c.cjs +0 -1
  128. package/es/el-message-ffcf690c.cjs +0 -1
  129. package/es/el-overlay-91784be2.cjs +0 -1
  130. package/es/el-overlay-f0757cc4.js +0 -525
  131. package/es/el-popover-4db657e2.cjs +0 -1
  132. package/es/el-scrollbar-35bac6b3.js +0 -2452
  133. package/es/el-scrollbar-ec09bbd3.cjs +0 -1
  134. package/es/el-select-0785c35a.cjs +0 -1
  135. package/es/el-table-column-2478adf8.cjs +0 -14
  136. package/es/el-tag-13ee17b3.cjs +0 -1
  137. package/es/el-tag-73372c6c.js +0 -359
  138. package/es/index-07b61d12.cjs +0 -1
  139. package/es/index-65b719a4.cjs +0 -1
  140. package/es/index-8b5fbc11.js +0 -66
  141. package/es/index-8c85d7c5.js +0 -858
  142. package/es/index-a49f4743.cjs +0 -2
@@ -0,0 +1,513 @@
1
+ function h(r, t) {
2
+ F(r) && (r = "100%");
3
+ var e = I(r);
4
+ return r = t === 360 ? r : Math.min(t, Math.max(0, parseFloat(r))), e && (r = parseInt(String(r * t), 10) / 100), Math.abs(r - t) < 1e-6 ? 1 : (t === 360 ? r = (r < 0 ? r % t + t : r % t) / parseFloat(String(t)) : r = r % t / parseFloat(String(t)), r);
5
+ }
6
+ function v(r) {
7
+ return Math.min(1, Math.max(0, r));
8
+ }
9
+ function F(r) {
10
+ return typeof r == "string" && r.indexOf(".") !== -1 && parseFloat(r) === 1;
11
+ }
12
+ function I(r) {
13
+ return typeof r == "string" && r.indexOf("%") !== -1;
14
+ }
15
+ function A(r) {
16
+ return r = parseFloat(r), (isNaN(r) || r < 0 || r > 1) && (r = 1), r;
17
+ }
18
+ function p(r) {
19
+ return r <= 1 ? "".concat(Number(r) * 100, "%") : r;
20
+ }
21
+ function b(r) {
22
+ return r.length === 1 ? "0" + r : String(r);
23
+ }
24
+ function E(r, t, e) {
25
+ return {
26
+ r: h(r, 255) * 255,
27
+ g: h(t, 255) * 255,
28
+ b: h(e, 255) * 255
29
+ };
30
+ }
31
+ function M(r, t, e) {
32
+ r = h(r, 255), t = h(t, 255), e = h(e, 255);
33
+ var a = Math.max(r, t, e), n = Math.min(r, t, e), i = 0, f = 0, s = (a + n) / 2;
34
+ if (a === n)
35
+ f = 0, i = 0;
36
+ else {
37
+ var u = a - n;
38
+ switch (f = s > 0.5 ? u / (2 - a - n) : u / (a + n), a) {
39
+ case r:
40
+ i = (t - e) / u + (t < e ? 6 : 0);
41
+ break;
42
+ case t:
43
+ i = (e - r) / u + 2;
44
+ break;
45
+ case e:
46
+ i = (r - t) / u + 4;
47
+ break;
48
+ }
49
+ i /= 6;
50
+ }
51
+ return { h: i, s: f, l: s };
52
+ }
53
+ function l(r, t, e) {
54
+ return e < 0 && (e += 1), e > 1 && (e -= 1), e < 1 / 6 ? r + (t - r) * (6 * e) : e < 1 / 2 ? t : e < 2 / 3 ? r + (t - r) * (2 / 3 - e) * 6 : r;
55
+ }
56
+ function B(r, t, e) {
57
+ var a, n, i;
58
+ if (r = h(r, 360), t = h(t, 100), e = h(e, 100), t === 0)
59
+ n = e, i = e, a = e;
60
+ else {
61
+ var f = e < 0.5 ? e * (1 + t) : e + t - e * t, s = 2 * e - f;
62
+ a = l(s, f, r + 1 / 3), n = l(s, f, r), i = l(s, f, r - 1 / 3);
63
+ }
64
+ return { r: a * 255, g: n * 255, b: i * 255 };
65
+ }
66
+ function S(r, t, e) {
67
+ r = h(r, 255), t = h(t, 255), e = h(e, 255);
68
+ var a = Math.max(r, t, e), n = Math.min(r, t, e), i = 0, f = a, s = a - n, u = a === 0 ? 0 : s / a;
69
+ if (a === n)
70
+ i = 0;
71
+ else {
72
+ switch (a) {
73
+ case r:
74
+ i = (t - e) / s + (t < e ? 6 : 0);
75
+ break;
76
+ case t:
77
+ i = (e - r) / s + 2;
78
+ break;
79
+ case e:
80
+ i = (r - t) / s + 4;
81
+ break;
82
+ }
83
+ i /= 6;
84
+ }
85
+ return { h: i, s: u, v: f };
86
+ }
87
+ function N(r, t, e) {
88
+ r = h(r, 360) * 6, t = h(t, 100), e = h(e, 100);
89
+ var a = Math.floor(r), n = r - a, i = e * (1 - t), f = e * (1 - n * t), s = e * (1 - (1 - n) * t), u = a % 6, H = [e, f, i, i, s, e][u], R = [s, e, e, f, i, i][u], T = [i, i, s, e, e, f][u];
90
+ return { r: H * 255, g: R * 255, b: T * 255 };
91
+ }
92
+ function k(r, t, e, a) {
93
+ var n = [
94
+ b(Math.round(r).toString(16)),
95
+ b(Math.round(t).toString(16)),
96
+ b(Math.round(e).toString(16))
97
+ ];
98
+ return a && n[0].startsWith(n[0].charAt(1)) && n[1].startsWith(n[1].charAt(1)) && n[2].startsWith(n[2].charAt(1)) ? n[0].charAt(0) + n[1].charAt(0) + n[2].charAt(0) : n.join("");
99
+ }
100
+ function P(r, t, e, a, n) {
101
+ var i = [
102
+ b(Math.round(r).toString(16)),
103
+ b(Math.round(t).toString(16)),
104
+ b(Math.round(e).toString(16)),
105
+ b(j(a))
106
+ ];
107
+ return n && i[0].startsWith(i[0].charAt(1)) && i[1].startsWith(i[1].charAt(1)) && i[2].startsWith(i[2].charAt(1)) && i[3].startsWith(i[3].charAt(1)) ? i[0].charAt(0) + i[1].charAt(0) + i[2].charAt(0) + i[3].charAt(0) : i.join("");
108
+ }
109
+ function j(r) {
110
+ return Math.round(parseFloat(r) * 255).toString(16);
111
+ }
112
+ function w(r) {
113
+ return o(r) / 255;
114
+ }
115
+ function o(r) {
116
+ return parseInt(r, 16);
117
+ }
118
+ function O(r) {
119
+ return {
120
+ r: r >> 16,
121
+ g: (r & 65280) >> 8,
122
+ b: r & 255
123
+ };
124
+ }
125
+ var x = {
126
+ aliceblue: "#f0f8ff",
127
+ antiquewhite: "#faebd7",
128
+ aqua: "#00ffff",
129
+ aquamarine: "#7fffd4",
130
+ azure: "#f0ffff",
131
+ beige: "#f5f5dc",
132
+ bisque: "#ffe4c4",
133
+ black: "#000000",
134
+ blanchedalmond: "#ffebcd",
135
+ blue: "#0000ff",
136
+ blueviolet: "#8a2be2",
137
+ brown: "#a52a2a",
138
+ burlywood: "#deb887",
139
+ cadetblue: "#5f9ea0",
140
+ chartreuse: "#7fff00",
141
+ chocolate: "#d2691e",
142
+ coral: "#ff7f50",
143
+ cornflowerblue: "#6495ed",
144
+ cornsilk: "#fff8dc",
145
+ crimson: "#dc143c",
146
+ cyan: "#00ffff",
147
+ darkblue: "#00008b",
148
+ darkcyan: "#008b8b",
149
+ darkgoldenrod: "#b8860b",
150
+ darkgray: "#a9a9a9",
151
+ darkgreen: "#006400",
152
+ darkgrey: "#a9a9a9",
153
+ darkkhaki: "#bdb76b",
154
+ darkmagenta: "#8b008b",
155
+ darkolivegreen: "#556b2f",
156
+ darkorange: "#ff8c00",
157
+ darkorchid: "#9932cc",
158
+ darkred: "#8b0000",
159
+ darksalmon: "#e9967a",
160
+ darkseagreen: "#8fbc8f",
161
+ darkslateblue: "#483d8b",
162
+ darkslategray: "#2f4f4f",
163
+ darkslategrey: "#2f4f4f",
164
+ darkturquoise: "#00ced1",
165
+ darkviolet: "#9400d3",
166
+ deeppink: "#ff1493",
167
+ deepskyblue: "#00bfff",
168
+ dimgray: "#696969",
169
+ dimgrey: "#696969",
170
+ dodgerblue: "#1e90ff",
171
+ firebrick: "#b22222",
172
+ floralwhite: "#fffaf0",
173
+ forestgreen: "#228b22",
174
+ fuchsia: "#ff00ff",
175
+ gainsboro: "#dcdcdc",
176
+ ghostwhite: "#f8f8ff",
177
+ goldenrod: "#daa520",
178
+ gold: "#ffd700",
179
+ gray: "#808080",
180
+ green: "#008000",
181
+ greenyellow: "#adff2f",
182
+ grey: "#808080",
183
+ honeydew: "#f0fff0",
184
+ hotpink: "#ff69b4",
185
+ indianred: "#cd5c5c",
186
+ indigo: "#4b0082",
187
+ ivory: "#fffff0",
188
+ khaki: "#f0e68c",
189
+ lavenderblush: "#fff0f5",
190
+ lavender: "#e6e6fa",
191
+ lawngreen: "#7cfc00",
192
+ lemonchiffon: "#fffacd",
193
+ lightblue: "#add8e6",
194
+ lightcoral: "#f08080",
195
+ lightcyan: "#e0ffff",
196
+ lightgoldenrodyellow: "#fafad2",
197
+ lightgray: "#d3d3d3",
198
+ lightgreen: "#90ee90",
199
+ lightgrey: "#d3d3d3",
200
+ lightpink: "#ffb6c1",
201
+ lightsalmon: "#ffa07a",
202
+ lightseagreen: "#20b2aa",
203
+ lightskyblue: "#87cefa",
204
+ lightslategray: "#778899",
205
+ lightslategrey: "#778899",
206
+ lightsteelblue: "#b0c4de",
207
+ lightyellow: "#ffffe0",
208
+ lime: "#00ff00",
209
+ limegreen: "#32cd32",
210
+ linen: "#faf0e6",
211
+ magenta: "#ff00ff",
212
+ maroon: "#800000",
213
+ mediumaquamarine: "#66cdaa",
214
+ mediumblue: "#0000cd",
215
+ mediumorchid: "#ba55d3",
216
+ mediumpurple: "#9370db",
217
+ mediumseagreen: "#3cb371",
218
+ mediumslateblue: "#7b68ee",
219
+ mediumspringgreen: "#00fa9a",
220
+ mediumturquoise: "#48d1cc",
221
+ mediumvioletred: "#c71585",
222
+ midnightblue: "#191970",
223
+ mintcream: "#f5fffa",
224
+ mistyrose: "#ffe4e1",
225
+ moccasin: "#ffe4b5",
226
+ navajowhite: "#ffdead",
227
+ navy: "#000080",
228
+ oldlace: "#fdf5e6",
229
+ olive: "#808000",
230
+ olivedrab: "#6b8e23",
231
+ orange: "#ffa500",
232
+ orangered: "#ff4500",
233
+ orchid: "#da70d6",
234
+ palegoldenrod: "#eee8aa",
235
+ palegreen: "#98fb98",
236
+ paleturquoise: "#afeeee",
237
+ palevioletred: "#db7093",
238
+ papayawhip: "#ffefd5",
239
+ peachpuff: "#ffdab9",
240
+ peru: "#cd853f",
241
+ pink: "#ffc0cb",
242
+ plum: "#dda0dd",
243
+ powderblue: "#b0e0e6",
244
+ purple: "#800080",
245
+ rebeccapurple: "#663399",
246
+ red: "#ff0000",
247
+ rosybrown: "#bc8f8f",
248
+ royalblue: "#4169e1",
249
+ saddlebrown: "#8b4513",
250
+ salmon: "#fa8072",
251
+ sandybrown: "#f4a460",
252
+ seagreen: "#2e8b57",
253
+ seashell: "#fff5ee",
254
+ sienna: "#a0522d",
255
+ silver: "#c0c0c0",
256
+ skyblue: "#87ceeb",
257
+ slateblue: "#6a5acd",
258
+ slategray: "#708090",
259
+ slategrey: "#708090",
260
+ snow: "#fffafa",
261
+ springgreen: "#00ff7f",
262
+ steelblue: "#4682b4",
263
+ tan: "#d2b48c",
264
+ teal: "#008080",
265
+ thistle: "#d8bfd8",
266
+ tomato: "#ff6347",
267
+ turquoise: "#40e0d0",
268
+ violet: "#ee82ee",
269
+ wheat: "#f5deb3",
270
+ white: "#ffffff",
271
+ whitesmoke: "#f5f5f5",
272
+ yellow: "#ffff00",
273
+ yellowgreen: "#9acd32"
274
+ };
275
+ function W(r) {
276
+ var t = { r: 0, g: 0, b: 0 }, e = 1, a = null, n = null, i = null, f = !1, s = !1;
277
+ return typeof r == "string" && (r = U(r)), typeof r == "object" && (g(r.r) && g(r.g) && g(r.b) ? (t = E(r.r, r.g, r.b), f = !0, s = String(r.r).substr(-1) === "%" ? "prgb" : "rgb") : g(r.h) && g(r.s) && g(r.v) ? (a = p(r.s), n = p(r.v), t = N(r.h, a, n), f = !0, s = "hsv") : g(r.h) && g(r.s) && g(r.l) && (a = p(r.s), i = p(r.l), t = B(r.h, a, i), f = !0, s = "hsl"), Object.prototype.hasOwnProperty.call(r, "a") && (e = r.a)), e = A(e), {
278
+ ok: f,
279
+ format: r.format || s,
280
+ r: Math.min(255, Math.max(t.r, 0)),
281
+ g: Math.min(255, Math.max(t.g, 0)),
282
+ b: Math.min(255, Math.max(t.b, 0)),
283
+ a: e
284
+ };
285
+ }
286
+ var G = "[-\\+]?\\d+%?", q = "[-\\+]?\\d*\\.\\d+%?", d = "(?:".concat(q, ")|(?:").concat(G, ")"), y = "[\\s|\\(]+(".concat(d, ")[,|\\s]+(").concat(d, ")[,|\\s]+(").concat(d, ")\\s*\\)?"), m = "[\\s|\\(]+(".concat(d, ")[,|\\s]+(").concat(d, ")[,|\\s]+(").concat(d, ")[,|\\s]+(").concat(d, ")\\s*\\)?"), c = {
287
+ CSS_UNIT: new RegExp(d),
288
+ rgb: new RegExp("rgb" + y),
289
+ rgba: new RegExp("rgba" + m),
290
+ hsl: new RegExp("hsl" + y),
291
+ hsla: new RegExp("hsla" + m),
292
+ hsv: new RegExp("hsv" + y),
293
+ hsva: new RegExp("hsva" + m),
294
+ hex3: /^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,
295
+ hex6: /^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,
296
+ hex4: /^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,
297
+ hex8: /^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/
298
+ };
299
+ function U(r) {
300
+ if (r = r.trim().toLowerCase(), r.length === 0)
301
+ return !1;
302
+ var t = !1;
303
+ if (x[r])
304
+ r = x[r], t = !0;
305
+ else if (r === "transparent")
306
+ return { r: 0, g: 0, b: 0, a: 0, format: "name" };
307
+ var e = c.rgb.exec(r);
308
+ return e ? { r: e[1], g: e[2], b: e[3] } : (e = c.rgba.exec(r), e ? { r: e[1], g: e[2], b: e[3], a: e[4] } : (e = c.hsl.exec(r), e ? { h: e[1], s: e[2], l: e[3] } : (e = c.hsla.exec(r), e ? { h: e[1], s: e[2], l: e[3], a: e[4] } : (e = c.hsv.exec(r), e ? { h: e[1], s: e[2], v: e[3] } : (e = c.hsva.exec(r), e ? { h: e[1], s: e[2], v: e[3], a: e[4] } : (e = c.hex8.exec(r), e ? {
309
+ r: o(e[1]),
310
+ g: o(e[2]),
311
+ b: o(e[3]),
312
+ a: w(e[4]),
313
+ format: t ? "name" : "hex8"
314
+ } : (e = c.hex6.exec(r), e ? {
315
+ r: o(e[1]),
316
+ g: o(e[2]),
317
+ b: o(e[3]),
318
+ format: t ? "name" : "hex"
319
+ } : (e = c.hex4.exec(r), e ? {
320
+ r: o(e[1] + e[1]),
321
+ g: o(e[2] + e[2]),
322
+ b: o(e[3] + e[3]),
323
+ a: w(e[4] + e[4]),
324
+ format: t ? "name" : "hex8"
325
+ } : (e = c.hex3.exec(r), e ? {
326
+ r: o(e[1] + e[1]),
327
+ g: o(e[2] + e[2]),
328
+ b: o(e[3] + e[3]),
329
+ format: t ? "name" : "hex"
330
+ } : !1)))))))));
331
+ }
332
+ function g(r) {
333
+ return !!c.CSS_UNIT.exec(String(r));
334
+ }
335
+ var D = (
336
+ /** @class */
337
+ function() {
338
+ function r(t, e) {
339
+ t === void 0 && (t = ""), e === void 0 && (e = {});
340
+ var a;
341
+ if (t instanceof r)
342
+ return t;
343
+ typeof t == "number" && (t = O(t)), this.originalInput = t;
344
+ var n = W(t);
345
+ this.originalInput = t, this.r = n.r, this.g = n.g, this.b = n.b, this.a = n.a, this.roundA = Math.round(100 * this.a) / 100, this.format = (a = e.format) !== null && a !== void 0 ? a : n.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.isValid = n.ok;
346
+ }
347
+ return r.prototype.isDark = function() {
348
+ return this.getBrightness() < 128;
349
+ }, r.prototype.isLight = function() {
350
+ return !this.isDark();
351
+ }, r.prototype.getBrightness = function() {
352
+ var t = this.toRgb();
353
+ return (t.r * 299 + t.g * 587 + t.b * 114) / 1e3;
354
+ }, r.prototype.getLuminance = function() {
355
+ var t = this.toRgb(), e, a, n, i = t.r / 255, f = t.g / 255, s = t.b / 255;
356
+ return i <= 0.03928 ? e = i / 12.92 : e = Math.pow((i + 0.055) / 1.055, 2.4), f <= 0.03928 ? a = f / 12.92 : a = Math.pow((f + 0.055) / 1.055, 2.4), s <= 0.03928 ? n = s / 12.92 : n = Math.pow((s + 0.055) / 1.055, 2.4), 0.2126 * e + 0.7152 * a + 0.0722 * n;
357
+ }, r.prototype.getAlpha = function() {
358
+ return this.a;
359
+ }, r.prototype.setAlpha = function(t) {
360
+ return this.a = A(t), this.roundA = Math.round(100 * this.a) / 100, this;
361
+ }, r.prototype.isMonochrome = function() {
362
+ var t = this.toHsl().s;
363
+ return t === 0;
364
+ }, r.prototype.toHsv = function() {
365
+ var t = S(this.r, this.g, this.b);
366
+ return { h: t.h * 360, s: t.s, v: t.v, a: this.a };
367
+ }, r.prototype.toHsvString = function() {
368
+ var t = S(this.r, this.g, this.b), e = Math.round(t.h * 360), a = Math.round(t.s * 100), n = Math.round(t.v * 100);
369
+ return this.a === 1 ? "hsv(".concat(e, ", ").concat(a, "%, ").concat(n, "%)") : "hsva(".concat(e, ", ").concat(a, "%, ").concat(n, "%, ").concat(this.roundA, ")");
370
+ }, r.prototype.toHsl = function() {
371
+ var t = M(this.r, this.g, this.b);
372
+ return { h: t.h * 360, s: t.s, l: t.l, a: this.a };
373
+ }, r.prototype.toHslString = function() {
374
+ var t = M(this.r, this.g, this.b), e = Math.round(t.h * 360), a = Math.round(t.s * 100), n = Math.round(t.l * 100);
375
+ return this.a === 1 ? "hsl(".concat(e, ", ").concat(a, "%, ").concat(n, "%)") : "hsla(".concat(e, ", ").concat(a, "%, ").concat(n, "%, ").concat(this.roundA, ")");
376
+ }, r.prototype.toHex = function(t) {
377
+ return t === void 0 && (t = !1), k(this.r, this.g, this.b, t);
378
+ }, r.prototype.toHexString = function(t) {
379
+ return t === void 0 && (t = !1), "#" + this.toHex(t);
380
+ }, r.prototype.toHex8 = function(t) {
381
+ return t === void 0 && (t = !1), P(this.r, this.g, this.b, this.a, t);
382
+ }, r.prototype.toHex8String = function(t) {
383
+ return t === void 0 && (t = !1), "#" + this.toHex8(t);
384
+ }, r.prototype.toHexShortString = function(t) {
385
+ return t === void 0 && (t = !1), this.a === 1 ? this.toHexString(t) : this.toHex8String(t);
386
+ }, r.prototype.toRgb = function() {
387
+ return {
388
+ r: Math.round(this.r),
389
+ g: Math.round(this.g),
390
+ b: Math.round(this.b),
391
+ a: this.a
392
+ };
393
+ }, r.prototype.toRgbString = function() {
394
+ var t = Math.round(this.r), e = Math.round(this.g), a = Math.round(this.b);
395
+ return this.a === 1 ? "rgb(".concat(t, ", ").concat(e, ", ").concat(a, ")") : "rgba(".concat(t, ", ").concat(e, ", ").concat(a, ", ").concat(this.roundA, ")");
396
+ }, r.prototype.toPercentageRgb = function() {
397
+ var t = function(e) {
398
+ return "".concat(Math.round(h(e, 255) * 100), "%");
399
+ };
400
+ return {
401
+ r: t(this.r),
402
+ g: t(this.g),
403
+ b: t(this.b),
404
+ a: this.a
405
+ };
406
+ }, r.prototype.toPercentageRgbString = function() {
407
+ var t = function(e) {
408
+ return Math.round(h(e, 255) * 100);
409
+ };
410
+ return this.a === 1 ? "rgb(".concat(t(this.r), "%, ").concat(t(this.g), "%, ").concat(t(this.b), "%)") : "rgba(".concat(t(this.r), "%, ").concat(t(this.g), "%, ").concat(t(this.b), "%, ").concat(this.roundA, ")");
411
+ }, r.prototype.toName = function() {
412
+ if (this.a === 0)
413
+ return "transparent";
414
+ if (this.a < 1)
415
+ return !1;
416
+ for (var t = "#" + k(this.r, this.g, this.b, !1), e = 0, a = Object.entries(x); e < a.length; e++) {
417
+ var n = a[e], i = n[0], f = n[1];
418
+ if (t === f)
419
+ return i;
420
+ }
421
+ return !1;
422
+ }, r.prototype.toString = function(t) {
423
+ var e = !!t;
424
+ t = t ?? this.format;
425
+ var a = !1, n = this.a < 1 && this.a >= 0, i = !e && n && (t.startsWith("hex") || t === "name");
426
+ return i ? t === "name" && this.a === 0 ? this.toName() : this.toRgbString() : (t === "rgb" && (a = this.toRgbString()), t === "prgb" && (a = this.toPercentageRgbString()), (t === "hex" || t === "hex6") && (a = this.toHexString()), t === "hex3" && (a = this.toHexString(!0)), t === "hex4" && (a = this.toHex8String(!0)), t === "hex8" && (a = this.toHex8String()), t === "name" && (a = this.toName()), t === "hsl" && (a = this.toHslString()), t === "hsv" && (a = this.toHsvString()), a || this.toHexString());
427
+ }, r.prototype.toNumber = function() {
428
+ return (Math.round(this.r) << 16) + (Math.round(this.g) << 8) + Math.round(this.b);
429
+ }, r.prototype.clone = function() {
430
+ return new r(this.toString());
431
+ }, r.prototype.lighten = function(t) {
432
+ t === void 0 && (t = 10);
433
+ var e = this.toHsl();
434
+ return e.l += t / 100, e.l = v(e.l), new r(e);
435
+ }, r.prototype.brighten = function(t) {
436
+ t === void 0 && (t = 10);
437
+ var e = this.toRgb();
438
+ return e.r = Math.max(0, Math.min(255, e.r - Math.round(255 * -(t / 100)))), e.g = Math.max(0, Math.min(255, e.g - Math.round(255 * -(t / 100)))), e.b = Math.max(0, Math.min(255, e.b - Math.round(255 * -(t / 100)))), new r(e);
439
+ }, r.prototype.darken = function(t) {
440
+ t === void 0 && (t = 10);
441
+ var e = this.toHsl();
442
+ return e.l -= t / 100, e.l = v(e.l), new r(e);
443
+ }, r.prototype.tint = function(t) {
444
+ return t === void 0 && (t = 10), this.mix("white", t);
445
+ }, r.prototype.shade = function(t) {
446
+ return t === void 0 && (t = 10), this.mix("black", t);
447
+ }, r.prototype.desaturate = function(t) {
448
+ t === void 0 && (t = 10);
449
+ var e = this.toHsl();
450
+ return e.s -= t / 100, e.s = v(e.s), new r(e);
451
+ }, r.prototype.saturate = function(t) {
452
+ t === void 0 && (t = 10);
453
+ var e = this.toHsl();
454
+ return e.s += t / 100, e.s = v(e.s), new r(e);
455
+ }, r.prototype.greyscale = function() {
456
+ return this.desaturate(100);
457
+ }, r.prototype.spin = function(t) {
458
+ var e = this.toHsl(), a = (e.h + t) % 360;
459
+ return e.h = a < 0 ? 360 + a : a, new r(e);
460
+ }, r.prototype.mix = function(t, e) {
461
+ e === void 0 && (e = 50);
462
+ var a = this.toRgb(), n = new r(t).toRgb(), i = e / 100, f = {
463
+ r: (n.r - a.r) * i + a.r,
464
+ g: (n.g - a.g) * i + a.g,
465
+ b: (n.b - a.b) * i + a.b,
466
+ a: (n.a - a.a) * i + a.a
467
+ };
468
+ return new r(f);
469
+ }, r.prototype.analogous = function(t, e) {
470
+ t === void 0 && (t = 6), e === void 0 && (e = 30);
471
+ var a = this.toHsl(), n = 360 / e, i = [this];
472
+ for (a.h = (a.h - (n * t >> 1) + 720) % 360; --t; )
473
+ a.h = (a.h + n) % 360, i.push(new r(a));
474
+ return i;
475
+ }, r.prototype.complement = function() {
476
+ var t = this.toHsl();
477
+ return t.h = (t.h + 180) % 360, new r(t);
478
+ }, r.prototype.monochromatic = function(t) {
479
+ t === void 0 && (t = 6);
480
+ for (var e = this.toHsv(), a = e.h, n = e.s, i = e.v, f = [], s = 1 / t; t--; )
481
+ f.push(new r({ h: a, s: n, v: i })), i = (i + s) % 1;
482
+ return f;
483
+ }, r.prototype.splitcomplement = function() {
484
+ var t = this.toHsl(), e = t.h;
485
+ return [
486
+ this,
487
+ new r({ h: (e + 72) % 360, s: t.s, l: t.l }),
488
+ new r({ h: (e + 216) % 360, s: t.s, l: t.l })
489
+ ];
490
+ }, r.prototype.onBackground = function(t) {
491
+ var e = this.toRgb(), a = new r(t).toRgb(), n = e.a + a.a * (1 - e.a);
492
+ return new r({
493
+ r: (e.r * e.a + a.r * a.a * (1 - e.a)) / n,
494
+ g: (e.g * e.a + a.g * a.a * (1 - e.a)) / n,
495
+ b: (e.b * e.a + a.b * a.a * (1 - e.a)) / n,
496
+ a: n
497
+ });
498
+ }, r.prototype.triad = function() {
499
+ return this.polyad(3);
500
+ }, r.prototype.tetrad = function() {
501
+ return this.polyad(4);
502
+ }, r.prototype.polyad = function(t) {
503
+ for (var e = this.toHsl(), a = e.h, n = [this], i = 360 / t, f = 1; f < t; f++)
504
+ n.push(new r({ h: (a + f * i) % 360, s: e.s, l: e.l }));
505
+ return n;
506
+ }, r.prototype.equals = function(t) {
507
+ return this.toRgbString() === new r(t).toRgbString();
508
+ }, r;
509
+ }()
510
+ );
511
+ export {
512
+ D as T
513
+ };
@@ -0,0 +1,3 @@
1
+ "use strict";const n=require("vue"),s=require("./base-ec05f348.cjs"),c=require("./use-form-common-props-1b84d8f4.cjs"),m=Symbol();function C(o,u,t){return o==null?o:c.baseSet(o,u,t)}const f=o=>Object.keys(o),b=(o,u,t)=>({get value(){return s.get(o,u,t)},set value(l){C(o,u,l)}}),d=n.ref();function v(o,u=void 0){const t=n.getCurrentInstance()?n.inject(m,d):d;return o?n.computed(()=>{var l,r;return(r=(l=t.value)==null?void 0:l[o])!=null?r:u}):t}function y(o,u){const t=v(),l=s.useNamespace(o,n.computed(()=>{var e;return((e=t.value)==null?void 0:e.namespace)||s.defaultNamespace})),r=s.useLocale(n.computed(()=>{var e;return(e=t.value)==null?void 0:e.locale})),i=c.useZIndex(n.computed(()=>{var e;return((e=t.value)==null?void 0:e.zIndex)||c.defaultInitialZIndex})),a=n.computed(()=>{var e;return n.unref(u)||((e=t.value)==null?void 0:e.size)||""});return g(n.computed(()=>n.unref(t)||{})),{ns:l,locale:r,zIndex:i,size:a}}const g=(o,u,t=!1)=>{var l;const r=!!n.getCurrentInstance(),i=r?v():void 0,a=(l=u==null?void 0:u.provide)!=null?l:r?n.provide:void 0;if(!a){s.debugWarn("provideGlobalConfig","provideGlobalConfig() can only be used inside setup().");return}const e=n.computed(()=>{const p=n.unref(o);return i!=null&&i.value?I(i.value,p):p});return a(m,e),a(s.localeContextKey,n.computed(()=>e.value.locale)),a(s.namespaceContextKey,n.computed(()=>e.value.namespace)),a(c.zIndexContextKey,n.computed(()=>e.value.zIndex)),a(c.SIZE_INJECTION_KEY,{size:n.computed(()=>e.value.size||"")}),a(c.emptyValuesContextKey,n.computed(()=>({emptyValues:e.value.emptyValues,valueOnClear:e.value.valueOnClear}))),(t||!d.value)&&(d.value=e.value),e},I=(o,u)=>{const t=[...new Set([...f(o),...f(u)])],l={};for(const r of t)l[r]=u[r]!==void 0?u[r]:o[r];return l},x=({from:o,replacement:u,scope:t,version:l,ref:r,type:i="API"},a)=>{n.watch(()=>n.unref(a),e=>{e&&s.debugWarn(t,`[${i}] ${o} is about to be deprecated in version ${l}, please use ${u} instead.
2
+ For more detail, please visit: ${r}
3
+ `)},{immediate:!0})};exports.getProp=b;exports.provideGlobalConfig=g;exports.useDeprecated=x;exports.useGlobalComponentSettings=y;exports.useGlobalConfig=v;
@@ -0,0 +1 @@
1
+ "use strict";const e=require("vue"),l=require("./use-form-common-props-1b84d8f4.cjs"),c=require("./base-ec05f348.cjs"),p=c.buildProps({type:{type:String,values:["primary","success","info","warning","danger"],default:"primary"},closable:Boolean,disableTransitions:Boolean,hit:Boolean,color:String,size:{type:String,values:l.componentSizes},effect:{type:String,values:["dark","light","plain"],default:"light"},round:Boolean}),b={close:s=>s instanceof MouseEvent,click:s=>s instanceof MouseEvent},y=e.defineComponent({name:"ElTag"}),h=e.defineComponent({...y,props:p,emits:b,setup(s,{emit:i}){const f=s,k=l.useFormSize(),n=c.useNamespace("tag"),u=e.computed(()=>{const{type:o,hit:t,effect:a,closable:r,round:g}=f;return[n.b(),n.is("closable",r),n.m(o||"primary"),n.m(k.value),n.m(a),n.is("hit",t),n.is("round",g)]}),m=o=>{i("close",o)},d=o=>{i("click",o)},C=o=>{var t,a,r;(r=(a=(t=o==null?void 0:o.component)==null?void 0:t.subTree)==null?void 0:a.component)!=null&&r.bum&&(o.component.subTree.component.bum=null)};return(o,t)=>o.disableTransitions?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(e.unref(u)),style:e.normalizeStyle({backgroundColor:o.color}),onClick:d},[e.createElementVNode("span",{class:e.normalizeClass(e.unref(n).e("content"))},[e.renderSlot(o.$slots,"default")],2),o.closable?(e.openBlock(),e.createBlock(e.unref(l.ElIcon),{key:0,class:e.normalizeClass(e.unref(n).e("close")),onClick:e.withModifiers(m,["stop"])},{default:e.withCtx(()=>[e.createVNode(e.unref(l.close_default))]),_:1},8,["class","onClick"])):e.createCommentVNode("v-if",!0)],6)):(e.openBlock(),e.createBlock(e.Transition,{key:1,name:`${e.unref(n).namespace.value}-zoom-in-center`,appear:"",onVnodeMounted:C},{default:e.withCtx(()=>[e.createElementVNode("span",{class:e.normalizeClass(e.unref(u)),style:e.normalizeStyle({backgroundColor:o.color}),onClick:d},[e.createElementVNode("span",{class:e.normalizeClass(e.unref(n).e("content"))},[e.renderSlot(o.$slots,"default")],2),o.closable?(e.openBlock(),e.createBlock(e.unref(l.ElIcon),{key:0,class:e.normalizeClass(e.unref(n).e("close")),onClick:e.withModifiers(m,["stop"])},{default:e.withCtx(()=>[e.createVNode(e.unref(l.close_default))]),_:1},8,["class","onClick"])):e.createCommentVNode("v-if",!0)],6)]),_:3},8,["name"]))}});var v=c._export_sfc(h,[["__file","tag.vue"]]);const z=c.withInstall(v);exports.ElTag=z;exports.tagProps=p;
@@ -0,0 +1,59 @@
1
+ import { getCurrentInstance as C, shallowRef as E, ref as m, watch as g, onMounted as F, nextTick as b } from "vue";
2
+ import { b as r } from "./el-scrollbar-562d0595.js";
3
+ import { m as x, h as f } from "./base-437d17f3.js";
4
+ function y(l, {
5
+ beforeFocus: t,
6
+ afterFocus: e,
7
+ beforeBlur: d,
8
+ afterBlur: c
9
+ } = {}) {
10
+ const p = C(), { emit: v } = p, o = E(), s = m(!1), a = (n) => {
11
+ f(t) && t(n) || s.value || (s.value = !0, v("focus", n), e == null || e());
12
+ }, i = (n) => {
13
+ var u;
14
+ f(d) && d(n) || n.relatedTarget && ((u = o.value) != null && u.contains(n.relatedTarget)) || (s.value = !1, v("blur", n), c == null || c());
15
+ }, h = () => {
16
+ var n, u;
17
+ (n = o.value) != null && n.contains(document.activeElement) && o.value !== document.activeElement || (u = l.value) == null || u.focus();
18
+ };
19
+ return g(o, (n) => {
20
+ n && n.setAttribute("tabindex", "-1");
21
+ }), r(o, "focus", a, !0), r(o, "blur", i, !0), r(o, "click", h, !0), process.env.NODE_ENV === "test" && F(() => {
22
+ const n = x(l.value) ? l.value : document.querySelector("input,textarea");
23
+ n && (r(n, "focus", a, !0), r(n, "blur", i, !0));
24
+ }), {
25
+ isFocused: s,
26
+ wrapperRef: o,
27
+ handleFocus: a,
28
+ handleBlur: i
29
+ };
30
+ }
31
+ const _ = (l) => /([\uAC00-\uD7AF\u3130-\u318F])+/gi.test(l);
32
+ function D({
33
+ afterComposition: l,
34
+ emit: t
35
+ }) {
36
+ const e = m(!1), d = (o) => {
37
+ t == null || t("compositionstart", o), e.value = !0;
38
+ }, c = (o) => {
39
+ var s;
40
+ t == null || t("compositionupdate", o);
41
+ const a = (s = o.target) == null ? void 0 : s.value, i = a[a.length - 1] || "";
42
+ e.value = !_(i);
43
+ }, p = (o) => {
44
+ t == null || t("compositionend", o), e.value && (e.value = !1, b(() => l(o)));
45
+ };
46
+ return {
47
+ isComposing: e,
48
+ handleComposition: (o) => {
49
+ o.type === "compositionend" ? p(o) : c(o);
50
+ },
51
+ handleCompositionStart: d,
52
+ handleCompositionUpdate: c,
53
+ handleCompositionEnd: p
54
+ };
55
+ }
56
+ export {
57
+ y as a,
58
+ D as u
59
+ };
@@ -0,0 +1 @@
1
+ "use strict";const l=require("vue"),d=require("./el-scrollbar-d1c3e7f7.cjs"),m=require("./base-ec05f348.cjs");function h(s,{beforeFocus:t,afterFocus:o,beforeBlur:v,afterBlur:a}={}){const f=l.getCurrentInstance(),{emit:p}=f,e=l.shallowRef(),u=l.ref(!1),i=n=>{m.isFunction(t)&&t(n)||u.value||(u.value=!0,p("focus",n),o==null||o())},r=n=>{var c;m.isFunction(v)&&v(n)||n.relatedTarget&&((c=e.value)!=null&&c.contains(n.relatedTarget))||(u.value=!1,p("blur",n),a==null||a())},C=()=>{var n,c;(n=e.value)!=null&&n.contains(document.activeElement)&&e.value!==document.activeElement||(c=s.value)==null||c.focus()};return l.watch(e,n=>{n&&n.setAttribute("tabindex","-1")}),d.useEventListener(e,"focus",i,!0),d.useEventListener(e,"blur",r,!0),d.useEventListener(e,"click",C,!0),process.env.NODE_ENV==="test"&&l.onMounted(()=>{const n=m.isElement(s.value)?s.value:document.querySelector("input,textarea");n&&(d.useEventListener(n,"focus",i,!0),d.useEventListener(n,"blur",r,!0))}),{isFocused:u,wrapperRef:e,handleFocus:i,handleBlur:r}}const E=s=>/([\uAC00-\uD7AF\u3130-\u318F])+/gi.test(s);function F({afterComposition:s,emit:t}){const o=l.ref(!1),v=e=>{t==null||t("compositionstart",e),o.value=!0},a=e=>{var u;t==null||t("compositionupdate",e);const i=(u=e.target)==null?void 0:u.value,r=i[i.length-1]||"";o.value=!E(r)},f=e=>{t==null||t("compositionend",e),o.value&&(o.value=!1,l.nextTick(()=>s(e)))};return{isComposing:o,handleComposition:e=>{e.type==="compositionend"?f(e):a(e)},handleCompositionStart:v,handleCompositionUpdate:a,handleCompositionEnd:f}}exports.useComposition=F;exports.useFocusController=h;
@@ -0,0 +1 @@
1
+ "use strict";function h(r,t){F(r)&&(r="100%");var e=I(r);return r=t===360?r:Math.min(t,Math.max(0,parseFloat(r))),e&&(r=parseInt(String(r*t),10)/100),Math.abs(r-t)<1e-6?1:(t===360?r=(r<0?r%t+t:r%t)/parseFloat(String(t)):r=r%t/parseFloat(String(t)),r)}function v(r){return Math.min(1,Math.max(0,r))}function F(r){return typeof r=="string"&&r.indexOf(".")!==-1&&parseFloat(r)===1}function I(r){return typeof r=="string"&&r.indexOf("%")!==-1}function A(r){return r=parseFloat(r),(isNaN(r)||r<0||r>1)&&(r=1),r}function p(r){return r<=1?"".concat(Number(r)*100,"%"):r}function b(r){return r.length===1?"0"+r:String(r)}function E(r,t,e){return{r:h(r,255)*255,g:h(t,255)*255,b:h(e,255)*255}}function M(r,t,e){r=h(r,255),t=h(t,255),e=h(e,255);var a=Math.max(r,t,e),n=Math.min(r,t,e),i=0,f=0,s=(a+n)/2;if(a===n)f=0,i=0;else{var u=a-n;switch(f=s>.5?u/(2-a-n):u/(a+n),a){case r:i=(t-e)/u+(t<e?6:0);break;case t:i=(e-r)/u+2;break;case e:i=(r-t)/u+4;break}i/=6}return{h:i,s:f,l:s}}function l(r,t,e){return e<0&&(e+=1),e>1&&(e-=1),e<1/6?r+(t-r)*(6*e):e<1/2?t:e<2/3?r+(t-r)*(2/3-e)*6:r}function B(r,t,e){var a,n,i;if(r=h(r,360),t=h(t,100),e=h(e,100),t===0)n=e,i=e,a=e;else{var f=e<.5?e*(1+t):e+t-e*t,s=2*e-f;a=l(s,f,r+1/3),n=l(s,f,r),i=l(s,f,r-1/3)}return{r:a*255,g:n*255,b:i*255}}function S(r,t,e){r=h(r,255),t=h(t,255),e=h(e,255);var a=Math.max(r,t,e),n=Math.min(r,t,e),i=0,f=a,s=a-n,u=a===0?0:s/a;if(a===n)i=0;else{switch(a){case r:i=(t-e)/s+(t<e?6:0);break;case t:i=(e-r)/s+2;break;case e:i=(r-t)/s+4;break}i/=6}return{h:i,s:u,v:f}}function N(r,t,e){r=h(r,360)*6,t=h(t,100),e=h(e,100);var a=Math.floor(r),n=r-a,i=e*(1-t),f=e*(1-n*t),s=e*(1-(1-n)*t),u=a%6,H=[e,f,i,i,s,e][u],R=[s,e,e,f,i,i][u],T=[i,i,s,e,e,f][u];return{r:H*255,g:R*255,b:T*255}}function k(r,t,e,a){var n=[b(Math.round(r).toString(16)),b(Math.round(t).toString(16)),b(Math.round(e).toString(16))];return a&&n[0].startsWith(n[0].charAt(1))&&n[1].startsWith(n[1].charAt(1))&&n[2].startsWith(n[2].charAt(1))?n[0].charAt(0)+n[1].charAt(0)+n[2].charAt(0):n.join("")}function P(r,t,e,a,n){var i=[b(Math.round(r).toString(16)),b(Math.round(t).toString(16)),b(Math.round(e).toString(16)),b(j(a))];return n&&i[0].startsWith(i[0].charAt(1))&&i[1].startsWith(i[1].charAt(1))&&i[2].startsWith(i[2].charAt(1))&&i[3].startsWith(i[3].charAt(1))?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0)+i[3].charAt(0):i.join("")}function j(r){return Math.round(parseFloat(r)*255).toString(16)}function w(r){return o(r)/255}function o(r){return parseInt(r,16)}function O(r){return{r:r>>16,g:(r&65280)>>8,b:r&255}}var x={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function W(r){var t={r:0,g:0,b:0},e=1,a=null,n=null,i=null,f=!1,s=!1;return typeof r=="string"&&(r=U(r)),typeof r=="object"&&(g(r.r)&&g(r.g)&&g(r.b)?(t=E(r.r,r.g,r.b),f=!0,s=String(r.r).substr(-1)==="%"?"prgb":"rgb"):g(r.h)&&g(r.s)&&g(r.v)?(a=p(r.s),n=p(r.v),t=N(r.h,a,n),f=!0,s="hsv"):g(r.h)&&g(r.s)&&g(r.l)&&(a=p(r.s),i=p(r.l),t=B(r.h,a,i),f=!0,s="hsl"),Object.prototype.hasOwnProperty.call(r,"a")&&(e=r.a)),e=A(e),{ok:f,format:r.format||s,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:e}}var G="[-\\+]?\\d+%?",q="[-\\+]?\\d*\\.\\d+%?",d="(?:".concat(q,")|(?:").concat(G,")"),y="[\\s|\\(]+(".concat(d,")[,|\\s]+(").concat(d,")[,|\\s]+(").concat(d,")\\s*\\)?"),m="[\\s|\\(]+(".concat(d,")[,|\\s]+(").concat(d,")[,|\\s]+(").concat(d,")[,|\\s]+(").concat(d,")\\s*\\)?"),c={CSS_UNIT:new RegExp(d),rgb:new RegExp("rgb"+y),rgba:new RegExp("rgba"+m),hsl:new RegExp("hsl"+y),hsla:new RegExp("hsla"+m),hsv:new RegExp("hsv"+y),hsva:new RegExp("hsva"+m),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function U(r){if(r=r.trim().toLowerCase(),r.length===0)return!1;var t=!1;if(x[r])r=x[r],t=!0;else if(r==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var e=c.rgb.exec(r);return e?{r:e[1],g:e[2],b:e[3]}:(e=c.rgba.exec(r),e?{r:e[1],g:e[2],b:e[3],a:e[4]}:(e=c.hsl.exec(r),e?{h:e[1],s:e[2],l:e[3]}:(e=c.hsla.exec(r),e?{h:e[1],s:e[2],l:e[3],a:e[4]}:(e=c.hsv.exec(r),e?{h:e[1],s:e[2],v:e[3]}:(e=c.hsva.exec(r),e?{h:e[1],s:e[2],v:e[3],a:e[4]}:(e=c.hex8.exec(r),e?{r:o(e[1]),g:o(e[2]),b:o(e[3]),a:w(e[4]),format:t?"name":"hex8"}:(e=c.hex6.exec(r),e?{r:o(e[1]),g:o(e[2]),b:o(e[3]),format:t?"name":"hex"}:(e=c.hex4.exec(r),e?{r:o(e[1]+e[1]),g:o(e[2]+e[2]),b:o(e[3]+e[3]),a:w(e[4]+e[4]),format:t?"name":"hex8"}:(e=c.hex3.exec(r),e?{r:o(e[1]+e[1]),g:o(e[2]+e[2]),b:o(e[3]+e[3]),format:t?"name":"hex"}:!1)))))))))}function g(r){return!!c.CSS_UNIT.exec(String(r))}var D=function(){function r(t,e){t===void 0&&(t=""),e===void 0&&(e={});var a;if(t instanceof r)return t;typeof t=="number"&&(t=O(t)),this.originalInput=t;var n=W(t);this.originalInput=t,this.r=n.r,this.g=n.g,this.b=n.b,this.a=n.a,this.roundA=Math.round(100*this.a)/100,this.format=(a=e.format)!==null&&a!==void 0?a:n.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.isValid=n.ok}return r.prototype.isDark=function(){return this.getBrightness()<128},r.prototype.isLight=function(){return!this.isDark()},r.prototype.getBrightness=function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},r.prototype.getLuminance=function(){var t=this.toRgb(),e,a,n,i=t.r/255,f=t.g/255,s=t.b/255;return i<=.03928?e=i/12.92:e=Math.pow((i+.055)/1.055,2.4),f<=.03928?a=f/12.92:a=Math.pow((f+.055)/1.055,2.4),s<=.03928?n=s/12.92:n=Math.pow((s+.055)/1.055,2.4),.2126*e+.7152*a+.0722*n},r.prototype.getAlpha=function(){return this.a},r.prototype.setAlpha=function(t){return this.a=A(t),this.roundA=Math.round(100*this.a)/100,this},r.prototype.isMonochrome=function(){var t=this.toHsl().s;return t===0},r.prototype.toHsv=function(){var t=S(this.r,this.g,this.b);return{h:t.h*360,s:t.s,v:t.v,a:this.a}},r.prototype.toHsvString=function(){var t=S(this.r,this.g,this.b),e=Math.round(t.h*360),a=Math.round(t.s*100),n=Math.round(t.v*100);return this.a===1?"hsv(".concat(e,", ").concat(a,"%, ").concat(n,"%)"):"hsva(".concat(e,", ").concat(a,"%, ").concat(n,"%, ").concat(this.roundA,")")},r.prototype.toHsl=function(){var t=M(this.r,this.g,this.b);return{h:t.h*360,s:t.s,l:t.l,a:this.a}},r.prototype.toHslString=function(){var t=M(this.r,this.g,this.b),e=Math.round(t.h*360),a=Math.round(t.s*100),n=Math.round(t.l*100);return this.a===1?"hsl(".concat(e,", ").concat(a,"%, ").concat(n,"%)"):"hsla(".concat(e,", ").concat(a,"%, ").concat(n,"%, ").concat(this.roundA,")")},r.prototype.toHex=function(t){return t===void 0&&(t=!1),k(this.r,this.g,this.b,t)},r.prototype.toHexString=function(t){return t===void 0&&(t=!1),"#"+this.toHex(t)},r.prototype.toHex8=function(t){return t===void 0&&(t=!1),P(this.r,this.g,this.b,this.a,t)},r.prototype.toHex8String=function(t){return t===void 0&&(t=!1),"#"+this.toHex8(t)},r.prototype.toHexShortString=function(t){return t===void 0&&(t=!1),this.a===1?this.toHexString(t):this.toHex8String(t)},r.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},r.prototype.toRgbString=function(){var t=Math.round(this.r),e=Math.round(this.g),a=Math.round(this.b);return this.a===1?"rgb(".concat(t,", ").concat(e,", ").concat(a,")"):"rgba(".concat(t,", ").concat(e,", ").concat(a,", ").concat(this.roundA,")")},r.prototype.toPercentageRgb=function(){var t=function(e){return"".concat(Math.round(h(e,255)*100),"%")};return{r:t(this.r),g:t(this.g),b:t(this.b),a:this.a}},r.prototype.toPercentageRgbString=function(){var t=function(e){return Math.round(h(e,255)*100)};return this.a===1?"rgb(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%)"):"rgba(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%, ").concat(this.roundA,")")},r.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var t="#"+k(this.r,this.g,this.b,!1),e=0,a=Object.entries(x);e<a.length;e++){var n=a[e],i=n[0],f=n[1];if(t===f)return i}return!1},r.prototype.toString=function(t){var e=!!t;t=t??this.format;var a=!1,n=this.a<1&&this.a>=0,i=!e&&n&&(t.startsWith("hex")||t==="name");return i?t==="name"&&this.a===0?this.toName():this.toRgbString():(t==="rgb"&&(a=this.toRgbString()),t==="prgb"&&(a=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(a=this.toHexString()),t==="hex3"&&(a=this.toHexString(!0)),t==="hex4"&&(a=this.toHex8String(!0)),t==="hex8"&&(a=this.toHex8String()),t==="name"&&(a=this.toName()),t==="hsl"&&(a=this.toHslString()),t==="hsv"&&(a=this.toHsvString()),a||this.toHexString())},r.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},r.prototype.clone=function(){return new r(this.toString())},r.prototype.lighten=function(t){t===void 0&&(t=10);var e=this.toHsl();return e.l+=t/100,e.l=v(e.l),new r(e)},r.prototype.brighten=function(t){t===void 0&&(t=10);var e=this.toRgb();return e.r=Math.max(0,Math.min(255,e.r-Math.round(255*-(t/100)))),e.g=Math.max(0,Math.min(255,e.g-Math.round(255*-(t/100)))),e.b=Math.max(0,Math.min(255,e.b-Math.round(255*-(t/100)))),new r(e)},r.prototype.darken=function(t){t===void 0&&(t=10);var e=this.toHsl();return e.l-=t/100,e.l=v(e.l),new r(e)},r.prototype.tint=function(t){return t===void 0&&(t=10),this.mix("white",t)},r.prototype.shade=function(t){return t===void 0&&(t=10),this.mix("black",t)},r.prototype.desaturate=function(t){t===void 0&&(t=10);var e=this.toHsl();return e.s-=t/100,e.s=v(e.s),new r(e)},r.prototype.saturate=function(t){t===void 0&&(t=10);var e=this.toHsl();return e.s+=t/100,e.s=v(e.s),new r(e)},r.prototype.greyscale=function(){return this.desaturate(100)},r.prototype.spin=function(t){var e=this.toHsl(),a=(e.h+t)%360;return e.h=a<0?360+a:a,new r(e)},r.prototype.mix=function(t,e){e===void 0&&(e=50);var a=this.toRgb(),n=new r(t).toRgb(),i=e/100,f={r:(n.r-a.r)*i+a.r,g:(n.g-a.g)*i+a.g,b:(n.b-a.b)*i+a.b,a:(n.a-a.a)*i+a.a};return new r(f)},r.prototype.analogous=function(t,e){t===void 0&&(t=6),e===void 0&&(e=30);var a=this.toHsl(),n=360/e,i=[this];for(a.h=(a.h-(n*t>>1)+720)%360;--t;)a.h=(a.h+n)%360,i.push(new r(a));return i},r.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new r(t)},r.prototype.monochromatic=function(t){t===void 0&&(t=6);for(var e=this.toHsv(),a=e.h,n=e.s,i=e.v,f=[],s=1/t;t--;)f.push(new r({h:a,s:n,v:i})),i=(i+s)%1;return f},r.prototype.splitcomplement=function(){var t=this.toHsl(),e=t.h;return[this,new r({h:(e+72)%360,s:t.s,l:t.l}),new r({h:(e+216)%360,s:t.s,l:t.l})]},r.prototype.onBackground=function(t){var e=this.toRgb(),a=new r(t).toRgb(),n=e.a+a.a*(1-e.a);return new r({r:(e.r*e.a+a.r*a.a*(1-e.a))/n,g:(e.g*e.a+a.g*a.a*(1-e.a))/n,b:(e.b*e.a+a.b*a.a*(1-e.a))/n,a:n})},r.prototype.triad=function(){return this.polyad(3)},r.prototype.tetrad=function(){return this.polyad(4)},r.prototype.polyad=function(t){for(var e=this.toHsl(),a=e.h,n=[this],i=360/t,f=1;f<t;f++)n.push(new r({h:(a+f*i)%360,s:e.s,l:e.l}));return n},r.prototype.equals=function(t){return this.toRgbString()===new r(t).toRgbString()},r}();exports.TinyColor=D;