melonykit 0.1.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.
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" style="position:absolute;width:0;height:0;" id="svg-sprite"><symbol xmlns="http://www.w3.org/2000/svg" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" color="currentColor" id="icon-check" viewBox="0 0 24 24"><path d="m5 13.26 2.586 2.697C8.252 16.652 8.586 17 9 17s.748-.348 1.414-1.043L19 7"/></symbol><symbol xmlns="http://www.w3.org/2000/svg" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" color="currentColor" id="icon-exclamation-triangle" viewBox="0 0 24 24"><path d="M13.925 21h-3.85c-4.63 0-6.945 0-7.799-1.506-.853-1.506.331-3.503 2.7-7.495L6.9 8.753C9.176 4.918 10.313 3 12 3s2.824 1.918 5.1 5.753L19.023 12c2.369 3.992 3.553 5.989 2.7 7.495C20.87 21 18.555 21 13.924 21"/><path d="M12 9v4"/><path d="M12.125 16.75H12m.25 0a.25.25 0 1 1-.5 0 .25.25 0 0 1 .5 0"/></symbol><symbol xmlns="http://www.w3.org/2000/svg" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" color="currentColor" id="icon-plus" viewBox="0 0 24 24"><path d="M11.992 4v16m8-8h-16"/></symbol><symbol xmlns="http://www.w3.org/2000/svg" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" color="currentColor" id="icon-x" viewBox="0 0 24 24"><path d="m18 6-6 6m0 0-6 6m6-6 6 6m-6-6L6 6"/></symbol><symbol xmlns="http://www.w3.org/2000/svg" fill="none" stroke="currentColor" stroke-linecap="round" stroke-width="1.5" color="currentColor" id="icon-trash" viewBox="0 0 24 24"><path d="m19.5 5.5-.62 10.025c-.158 2.561-.237 3.842-.88 4.763a4 4 0 0 1-1.2 1.128c-.957.584-2.24.584-4.806.584-2.57 0-3.855 0-4.814-.585a4 4 0 0 1-1.2-1.13c-.642-.922-.72-2.205-.874-4.77L4.5 5.5"/><path d="M3 5.5h18m-4.944 0-.683-1.408c-.453-.936-.68-1.403-1.071-1.695a2 2 0 0 0-.275-.172C13.594 2 13.074 2 12.035 2c-1.066 0-1.599 0-2.04.234a2 2 0 0 0-.278.18c-.395.303-.616.788-1.058 1.757L8.053 5.5"/><path d="M9.5 16.5v-6"/><path d="M14.5 16.5v-6"/></symbol><symbol xmlns="http://www.w3.org/2000/svg" fill="none" stroke="currentColor" stroke-linejoin="round" stroke-width="1.5" color="currentColor" id="icon-play" viewBox="0 0 24 24"><path d="M18.89 12.846c-.353 1.343-2.023 2.292-5.364 4.19-3.23 1.835-4.845 2.752-6.146 2.384a3.25 3.25 0 0 1-1.424-.841C5 17.614 5 15.743 5 12s0-5.614.956-6.579a3.25 3.25 0 0 1 1.424-.84c1.301-.37 2.916.548 6.146 2.383 3.34 1.898 5.011 2.847 5.365 4.19a3.3 3.3 0 0 1 0 1.692Z"/></symbol><symbol xmlns="http://www.w3.org/2000/svg" fill="none" stroke="currentColor" stroke-width="1.5" color="currentColor" id="icon-eye" viewBox="0 0 24 24"><path d="M21.544 11.045c.304.426.456.64.456.955 0 .316-.152.529-.456.955C20.178 14.871 16.689 19 12 19c-4.69 0-8.178-4.13-9.544-6.045C2.152 12.529 2 12.315 2 12c0-.316.152-.529.456-.955C3.822 9.129 7.311 5 12 5c4.69 0 8.178 4.13 9.544 6.045Z"/><path d="M15 12a3 3 0 1 0-6 0 3 3 0 0 0 6 0Z"/></symbol><symbol xmlns="http://www.w3.org/2000/svg" fill="none" stroke="currentColor" stroke-width="1.5" color="currentColor" id="icon-hourglass" viewBox="0 0 24 24"><path d="M17.201 2H6.8c-1.458 0-2.737.985-2.795 2.404-.074 1.785 1.182 2.97 2.5 4.083 1.825 1.54 2.737 2.31 2.832 3.284q.023.229 0 .458c-.095.975-1.007 1.744-2.832 3.284-1.355 1.143-2.578 2.207-2.5 4.083C4.062 21.016 5.34 22 6.799 22H17.2c1.458 0 2.737-.985 2.796-2.404.046-1.13-.373-2.254-1.262-3.036-.405-.357-.826-.698-1.24-1.047-1.824-1.54-2.736-2.31-2.831-3.284a2.3 2.3 0 0 1 0-.458c.095-.975 1.008-1.744 2.832-3.284 1.34-1.131 2.577-2.229 2.5-4.083C19.939 2.984 18.66 2 17.202 2Z"/><path stroke-linecap="round" d="M9 21.638c0-.442 0-.663.088-.856a1 1 0 0 1 .046-.09c.107-.183.288-.312.65-.571 1.006-.719 1.51-1.078 2.081-1.116q.135-.009.27 0c.572.038 1.075.397 2.08 1.116.363.259.544.388.651.571q.026.045.046.09c.088.193.088.414.088.856V22H9z"/></symbol></svg>
@@ -0,0 +1,93 @@
1
+ Copyright 2018 The Manrope Project Authors (https://github.com/sharanda/manrope)
2
+
3
+ This Font Software is licensed under the SIL Open Font License, Version 1.1.
4
+ This license is copied below, and is also available with a FAQ at:
5
+ https://openfontlicense.org
6
+
7
+
8
+ -----------------------------------------------------------
9
+ SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
10
+ -----------------------------------------------------------
11
+
12
+ PREAMBLE
13
+ The goals of the Open Font License (OFL) are to stimulate worldwide
14
+ development of collaborative font projects, to support the font creation
15
+ efforts of academic and linguistic communities, and to provide a free and
16
+ open framework in which fonts may be shared and improved in partnership
17
+ with others.
18
+
19
+ The OFL allows the licensed fonts to be used, studied, modified and
20
+ redistributed freely as long as they are not sold by themselves. The
21
+ fonts, including any derivative works, can be bundled, embedded,
22
+ redistributed and/or sold with any software provided that any reserved
23
+ names are not used by derivative works. The fonts and derivatives,
24
+ however, cannot be released under any other type of license. The
25
+ requirement for fonts to remain under this license does not apply
26
+ to any document created using the fonts or their derivatives.
27
+
28
+ DEFINITIONS
29
+ "Font Software" refers to the set of files released by the Copyright
30
+ Holder(s) under this license and clearly marked as such. This may
31
+ include source files, build scripts and documentation.
32
+
33
+ "Reserved Font Name" refers to any names specified as such after the
34
+ copyright statement(s).
35
+
36
+ "Original Version" refers to the collection of Font Software components as
37
+ distributed by the Copyright Holder(s).
38
+
39
+ "Modified Version" refers to any derivative made by adding to, deleting,
40
+ or substituting -- in part or in whole -- any of the components of the
41
+ Original Version, by changing formats or by porting the Font Software to a
42
+ new environment.
43
+
44
+ "Author" refers to any designer, engineer, programmer, technical
45
+ writer or other person who contributed to the Font Software.
46
+
47
+ PERMISSION & CONDITIONS
48
+ Permission is hereby granted, free of charge, to any person obtaining
49
+ a copy of the Font Software, to use, study, copy, merge, embed, modify,
50
+ redistribute, and sell modified and unmodified copies of the Font
51
+ Software, subject to the following conditions:
52
+
53
+ 1) Neither the Font Software nor any of its individual components,
54
+ in Original or Modified Versions, may be sold by itself.
55
+
56
+ 2) Original or Modified Versions of the Font Software may be bundled,
57
+ redistributed and/or sold with any software, provided that each copy
58
+ contains the above copyright notice and this license. These can be
59
+ included either as stand-alone text files, human-readable headers or
60
+ in the appropriate machine-readable metadata fields within text or
61
+ binary files as long as those fields can be easily viewed by the user.
62
+
63
+ 3) No Modified Version of the Font Software may use the Reserved Font
64
+ Name(s) unless explicit written permission is granted by the corresponding
65
+ Copyright Holder. This restriction only applies to the primary font name as
66
+ presented to the users.
67
+
68
+ 4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
69
+ Software shall not be used to promote, endorse or advertise any
70
+ Modified Version, except to acknowledge the contribution(s) of the
71
+ Copyright Holder(s) and the Author(s) or with their explicit written
72
+ permission.
73
+
74
+ 5) The Font Software, modified or unmodified, in part or in whole,
75
+ must be distributed entirely under this license, and must not be
76
+ distributed under any other license. The requirement for fonts to
77
+ remain under this license does not apply to any document created
78
+ using the Font Software.
79
+
80
+ TERMINATION
81
+ This license becomes null and void if any of the above conditions are
82
+ not met.
83
+
84
+ DISCLAIMER
85
+ THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
86
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
87
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
88
+ OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
89
+ COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
90
+ INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
91
+ DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
92
+ FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
93
+ OTHER DEALINGS IN THE FONT SOFTWARE.
Binary file
@@ -0,0 +1,203 @@
1
+ //#region src/functions/_parse-hex-color.js
2
+ function e(e) {
3
+ if (typeof e != "string" || !/^#([\da-f]{3}|[\da-f]{6})$/i.test(e)) throw TypeError("hex must be a three- or six-digit hexadecimal color");
4
+ let t = e.slice(1), n = t.length === 3 ? [...t].map((e) => e.repeat(2)).join("") : t;
5
+ return [
6
+ 0,
7
+ 2,
8
+ 4
9
+ ].map((e) => parseInt(n.slice(e, e + 2), 16));
10
+ }
11
+ //#endregion
12
+ //#region src/functions/_convert-hex-to-rgba.js
13
+ function t(t, n) {
14
+ let [r, i, a] = e(t);
15
+ if (!Number.isFinite(n)) throw TypeError("alpha must be a finite number");
16
+ if (n < 0 || n > 1) throw RangeError("alpha must be between 0 and 1");
17
+ return `rgba(${r}, ${i}, ${a}, ${n})`;
18
+ }
19
+ //#endregion
20
+ //#region src/functions/_darken-hex-color.js
21
+ function n(t, n) {
22
+ let r = e(t);
23
+ if (!Number.isFinite(n)) throw TypeError("amount must be a finite number");
24
+ if (n < 0 || n > 1) throw RangeError("amount must be between 0 and 1");
25
+ let i = 1 - n;
26
+ return `#${r.map((e) => Math.round(e * i)).map((e) => e.toString(16).padStart(2, "0")).join("")}`;
27
+ }
28
+ //#endregion
29
+ //#region src/functions/_format-date.js
30
+ function r(e) {
31
+ return Object.prototype.toString.call(e) === "[object Date]" && !isNaN(e);
32
+ }
33
+ function i(e) {
34
+ return typeof e == "string";
35
+ }
36
+ var a = /d{1,4}|D{3,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|W{1,2}|[LlopSZN]|"[^"]*"|'[^']*'/g, o = /\b(?:[A-Z]{1,3}[A-Z][TC])(?:[-+]\d{4})?|((?:Australian )?(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time)\b/g, s = /[^-+\dA-Z]/g, c = (e, t = 2) => String(e).padStart(t, "0"), l = {
37
+ dayNames: [
38
+ "So",
39
+ "Mo",
40
+ "Di",
41
+ "Mi",
42
+ "Do",
43
+ "Fr",
44
+ "Sa",
45
+ "Sonntag",
46
+ "Montag",
47
+ "Dienstag",
48
+ "Mittwoch",
49
+ "Donnerstag",
50
+ "Freitag",
51
+ "Samstag"
52
+ ],
53
+ monthNames: [
54
+ "Jan",
55
+ "Feb",
56
+ "Mär",
57
+ "Apr",
58
+ "Mai",
59
+ "Jun",
60
+ "Jul",
61
+ "Aug",
62
+ "Sep",
63
+ "Okt",
64
+ "Nov",
65
+ "Dez",
66
+ "Januar",
67
+ "Februar",
68
+ "März",
69
+ "April",
70
+ "Mai",
71
+ "Juni",
72
+ "Juli",
73
+ "August",
74
+ "September",
75
+ "Oktober",
76
+ "November",
77
+ "Dezember"
78
+ ],
79
+ timeNames: [
80
+ "a",
81
+ "p",
82
+ "am",
83
+ "pm",
84
+ "A",
85
+ "P",
86
+ "AM",
87
+ "PM"
88
+ ]
89
+ };
90
+ function u(e, t = "dd.mm.yyyy", n, o) {
91
+ if (!r(e) || !i(t)) return "";
92
+ let s = () => n ? "getUTC" : "get", u = () => e[s() + "Date"](), h = () => e[s() + "Day"](), g = () => e[s() + "Month"](), _ = () => e[s() + "FullYear"](), v = () => e[s() + "Hours"](), y = () => e[s() + "Minutes"](), b = () => e[s() + "Seconds"](), x = () => e[s() + "Milliseconds"](), S = () => n ? 0 : e.getTimezoneOffset(), C = () => d(e), w = () => f(e), T = {
93
+ d: () => u(),
94
+ dd: () => c(u()),
95
+ ddd: () => l.dayNames[h()],
96
+ DDD: () => m({
97
+ y: _(),
98
+ m: g(),
99
+ d: u(),
100
+ _: s(),
101
+ dayName: l.dayNames[h()],
102
+ short: !0
103
+ }),
104
+ dddd: () => l.dayNames[h() + 7],
105
+ DDDD: () => m({
106
+ y: _(),
107
+ m: g(),
108
+ d: u(),
109
+ _: s(),
110
+ dayName: l.dayNames[h() + 7]
111
+ }),
112
+ m: () => g() + 1,
113
+ mm: () => c(g() + 1),
114
+ mmm: () => l.monthNames[g()],
115
+ mmmm: () => l.monthNames[g() + 12],
116
+ yy: () => String(_()).slice(2),
117
+ yyyy: () => c(_(), 4),
118
+ h: () => v() % 12 || 12,
119
+ hh: () => c(v() % 12 || 12),
120
+ H: () => v(),
121
+ HH: () => c(v()),
122
+ M: () => y(),
123
+ MM: () => c(y()),
124
+ s: () => b(),
125
+ ss: () => c(b()),
126
+ l: () => c(x(), 3),
127
+ L: () => c(Math.floor(x() / 10)),
128
+ t: () => v() < 12 ? l.timeNames[0] : l.timeNames[1],
129
+ tt: () => v() < 12 ? l.timeNames[2] : l.timeNames[3],
130
+ T: () => v() < 12 ? l.timeNames[4] : l.timeNames[5],
131
+ TT: () => v() < 12 ? l.timeNames[6] : l.timeNames[7],
132
+ Z: () => o ? "GMT" : n ? "UTC" : p(e),
133
+ o: () => (S() > 0 ? "-" : "+") + c(Math.floor(Math.abs(S()) / 60) * 100 + Math.abs(S()) % 60, 4),
134
+ p: () => (S() > 0 ? "-" : "+") + c(Math.floor(Math.abs(S()) / 60), 2) + ":" + c(Math.floor(Math.abs(S()) % 60), 2),
135
+ S: () => [
136
+ "th",
137
+ "st",
138
+ "nd",
139
+ "rd"
140
+ ][u() % 10 > 3 ? 0 : (u() % 100 - u() % 10 != 10) * u() % 10],
141
+ W: () => C(),
142
+ WW: () => c(C()),
143
+ N: () => w()
144
+ };
145
+ return t.replace(a, (e) => e in T ? T[e]() : e.slice(1, e.length - 1));
146
+ }
147
+ var d = (e) => {
148
+ let t = new Date(e.getFullYear(), e.getMonth(), e.getDate());
149
+ t.setDate(t.getDate() - (t.getDay() + 6) % 7 + 3);
150
+ let n = new Date(t.getFullYear(), 0, 4);
151
+ n.setDate(n.getDate() - (n.getDay() + 6) % 7 + 3);
152
+ let r = t.getTimezoneOffset() - n.getTimezoneOffset();
153
+ t.setHours(t.getHours() - r);
154
+ let i = (t - n) / 6048e5;
155
+ return 1 + Math.floor(i);
156
+ }, f = (e) => {
157
+ let t = e.getDay();
158
+ return t === 0 && (t = 7), t;
159
+ }, p = (e) => (String(e).match(o) || [""]).pop().replace(s, "").replace(/GMT\+0000/g, "UTC"), m = ({ y: e, m: t, d: n, _: r, dayName: i, short: a = !1 }) => {
160
+ let o = /* @__PURE__ */ new Date(), s = /* @__PURE__ */ new Date();
161
+ s.setDate(s[r + "Date"]() - 1);
162
+ let c = /* @__PURE__ */ new Date();
163
+ return c.setDate(c[r + "Date"]() + 1), o[r + "FullYear"]() === e && o[r + "Month"]() === t && o[r + "Date"]() === n ? a ? "Tdy" : "Today" : s[r + "FullYear"]() === e && s[r + "Month"]() === t && s[r + "Date"]() === n ? a ? "Ysd" : "Yesterday" : c[r + "FullYear"]() === e && c[r + "Month"]() === t && c[r + "Date"]() === n ? a ? "Tmw" : "Tomorrow" : i;
164
+ };
165
+ //#endregion
166
+ //#region src/functions/_is-empty.js
167
+ function h(e) {
168
+ return e == null ? !0 : typeof e == "function" ? !1 : typeof e == "number" ? !Number.isFinite(e) : typeof e == "string" ? e.trim().length === 0 : Array.isArray(e) ? e.length === 0 : typeof e != "object" || Object.keys(e).length === 0 && Object.getOwnPropertySymbols(e).length === 0;
169
+ }
170
+ //#endregion
171
+ //#region src/functions/_request.js
172
+ async function g({ url: e, body: t, method: n = "POST", headers: r = {} } = {}) {
173
+ let i = n !== "GET" && t !== void 0 ? JSON.stringify(t) : void 0, a = await fetch(e, {
174
+ method: n,
175
+ headers: {
176
+ "Content-Type": "application/json",
177
+ ...r
178
+ },
179
+ body: i
180
+ }), o = { status: a.status };
181
+ try {
182
+ o.data = await a.json(), o.success = !0;
183
+ } catch (e) {
184
+ o.error = e, o.success = !1;
185
+ }
186
+ return o;
187
+ }
188
+ //#endregion
189
+ //#region src/functions/_size.js
190
+ function _(e) {
191
+ return e == null ? 0 : Array.isArray(e) || typeof e == "string" ? e.length : typeof e == "object" || typeof e == "function" ? Object.keys(e).length : 0;
192
+ }
193
+ //#endregion
194
+ //#region src/functions/_to-number.js
195
+ function v(e, t = null) {
196
+ let n = typeof e == "number" ? e : typeof e == "string" && e.trim() !== "" ? Number(e) : NaN;
197
+ if (!Number.isFinite(n)) return null;
198
+ if (t == null) return n;
199
+ let r = 10 ** t;
200
+ return Math.round(n * r) / r;
201
+ }
202
+ //#endregion
203
+ export { u as a, h as i, _ as n, n as o, g as r, t as s, v as t };
@@ -0,0 +1,2 @@
1
+ import { a as e, i as t, n, o as r, r as i, s as a, t as o } from "./functions-C8th2V6m.js";
2
+ export { a as convertHexToRgba, r as darkenHexColor, e as formatDate, t as isEmpty, i as request, n as size, o as toNumber };