@tolki/str 1.8.1 → 1.9.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.
- package/README.md +13 -1
- package/dist/convertcase/index.js +4 -1
- package/dist/index.d.ts +13 -13
- package/dist/index.d.ts.map +1 -1
- package/dist/replacer/index.d.ts +3 -0
- package/dist/replacer/index.d.ts.map +1 -1
- package/dist/replacer/index.js +24 -24
- package/dist/str.d.ts +16 -2
- package/dist/str.d.ts.map +1 -1
- package/dist/str.js +198 -186
- package/dist/stringable/index.d.ts +20 -3
- package/dist/stringable/index.d.ts.map +1 -1
- package/dist/stringable/index.js +5 -3
- package/dist/width/index.d.ts +19 -0
- package/dist/width/index.d.ts.map +1 -0
- package/dist/width/index.js +155 -0
- package/package.json +8 -23
package/dist/str.js
CHANGED
|
@@ -4,63 +4,66 @@ import { substr as i } from "./replacer/index.js";
|
|
|
4
4
|
import { ltrim as a, rtrim as o, trim as s } from "./trimmer/index.js";
|
|
5
5
|
import { createUlidsNormally as c } from "./ulid/index.js";
|
|
6
6
|
import { createUuidsNormally as l } from "./uuid/index.js";
|
|
7
|
-
import {
|
|
7
|
+
import { strWidth as u, strimWidth as d } from "./width/index.js";
|
|
8
|
+
import { hasOwnToString as f, isArray as p, isFunction as m, isIterable as h, isMap as g, isNull as _, isNumber as v, isObject as y, isPlainObject as ee, isString as b, isUndefined as te, phpIntArgument as x, phpStringCast as S, toLower as C } from "@tolki/utils";
|
|
8
9
|
// src/str.ts
|
|
9
|
-
var
|
|
10
|
+
var w = /* @__PURE__ */ new Map(), T = /* @__PURE__ */ new Map(), E = /* @__PURE__ */ new Map(), D = null;
|
|
10
11
|
/* @__NO_SIDE_EFFECTS__ */
|
|
11
|
-
function
|
|
12
|
+
function O(e, t) {
|
|
12
13
|
if (t === "") return e;
|
|
13
14
|
let n = String(t), r = e.indexOf(n);
|
|
14
15
|
return r === -1 ? e : e.slice(r + n.length);
|
|
15
16
|
}
|
|
16
17
|
/* @__NO_SIDE_EFFECTS__ */
|
|
17
|
-
function
|
|
18
|
+
function ne(e, t) {
|
|
18
19
|
if (t === "") return e;
|
|
19
20
|
let n = e.lastIndexOf(String(t));
|
|
20
21
|
return n === -1 ? e : e.slice(n + String(t).length);
|
|
21
22
|
}
|
|
22
23
|
/* @__NO_SIDE_EFFECTS__ */
|
|
23
|
-
function
|
|
24
|
+
function k(e, t) {
|
|
24
25
|
if (t === "") return e;
|
|
25
26
|
let n = e.indexOf(String(t));
|
|
26
27
|
return n === -1 ? e : e.slice(0, n);
|
|
27
28
|
}
|
|
28
29
|
/* @__NO_SIDE_EFFECTS__ */
|
|
29
|
-
function
|
|
30
|
+
function re(e, t) {
|
|
30
31
|
if (t === "") return e;
|
|
31
32
|
let n = e.lastIndexOf(String(t));
|
|
32
|
-
return n === -1 ? e :
|
|
33
|
+
return n === -1 ? e : e.slice(0, n);
|
|
33
34
|
}
|
|
34
35
|
/* @__NO_SIDE_EFFECTS__ */
|
|
35
|
-
function
|
|
36
|
-
return t === "" || n === "" ? e : /* @__PURE__ */
|
|
36
|
+
function ie(e, t, n) {
|
|
37
|
+
return t === "" || n === "" ? e : /* @__PURE__ */ re(/* @__PURE__ */ O(e, t), n);
|
|
37
38
|
}
|
|
38
39
|
/* @__NO_SIDE_EFFECTS__ */
|
|
39
|
-
function
|
|
40
|
-
return t === "" || n === "" ? e : /* @__PURE__ */
|
|
40
|
+
function ae(e, t, n) {
|
|
41
|
+
return t === "" || n === "" ? e : /* @__PURE__ */ k(/* @__PURE__ */ O(e, t), n);
|
|
41
42
|
}
|
|
42
43
|
/* @__NO_SIDE_EFFECTS__ */
|
|
43
|
-
function
|
|
44
|
-
if (
|
|
45
|
-
let t = /* @__PURE__ */
|
|
46
|
-
return
|
|
44
|
+
function oe(e) {
|
|
45
|
+
if (T.has(e)) return T.get(e);
|
|
46
|
+
let t = /* @__PURE__ */ Z(/* @__PURE__ */ X(e));
|
|
47
|
+
return T.set(e, t), t;
|
|
47
48
|
}
|
|
48
49
|
/* @__NO_SIDE_EFFECTS__ */
|
|
49
|
-
function
|
|
50
|
-
let n = e.length;
|
|
51
|
-
|
|
50
|
+
function se(e, t) {
|
|
51
|
+
let n = Array.from(e), r = n.length;
|
|
52
|
+
if (t < 0 ? t < -r : t > r - 1) return !1;
|
|
53
|
+
let i = x(t, "mb_substr(): Argument #2 ($start) must be of type int, float given");
|
|
54
|
+
return n[i < 0 ? i + r : i];
|
|
52
55
|
}
|
|
53
56
|
/* @__NO_SIDE_EFFECTS__ */
|
|
54
|
-
function
|
|
55
|
-
for (let n of
|
|
57
|
+
function ce(e, t) {
|
|
58
|
+
for (let n of p(t) ? t : [t]) if (n !== "" && e.startsWith(n)) {
|
|
56
59
|
let t = [...e], r = [...n];
|
|
57
60
|
return t.slice(r.length).join("");
|
|
58
61
|
}
|
|
59
62
|
return e;
|
|
60
63
|
}
|
|
61
64
|
/* @__NO_SIDE_EFFECTS__ */
|
|
62
|
-
function
|
|
63
|
-
for (let n of
|
|
65
|
+
function le(e, t) {
|
|
66
|
+
for (let n of p(t) ? t : [t]) if (n !== "" && e.endsWith(n)) {
|
|
64
67
|
let t = [...e], r = [...n];
|
|
65
68
|
return t.slice(0, -r.length).join("");
|
|
66
69
|
}
|
|
@@ -75,8 +78,8 @@ function A(e, t, n = !1) {
|
|
|
75
78
|
return !1;
|
|
76
79
|
}
|
|
77
80
|
/* @__NO_SIDE_EFFECTS__ */
|
|
78
|
-
function
|
|
79
|
-
let { radius: r = 100, omission: s = "..." } = n, c = String(e ?? ""), l = RegExp(`^(.*?)(${(
|
|
81
|
+
function ue(e, t = "", n = {}) {
|
|
82
|
+
let { radius: r = 100, omission: s = "..." } = n, c = String(e ?? ""), l = RegExp(`^(.*?)(${H(t ?? "")})(.*)$`, "iu").exec(c);
|
|
80
83
|
if (!l) return null;
|
|
81
84
|
let u = String(l[1]), d = String(l[2]), f = String(l[3]), p = /* @__PURE__ */ a(u), m = Array.from(p).length, h = /* @__PURE__ */ i(p, Math.max(m - r, 0), r), g = /* @__PURE__ */ a(h);
|
|
82
85
|
g !== p && (g = s + g);
|
|
@@ -84,55 +87,55 @@ function se(e, t = "", n = {}) {
|
|
|
84
87
|
return v !== _ && (v += s), g + d + v;
|
|
85
88
|
}
|
|
86
89
|
/* @__NO_SIDE_EFFECTS__ */
|
|
87
|
-
function
|
|
90
|
+
function de(e, t, n = !1) {
|
|
88
91
|
let r = !1;
|
|
89
92
|
for (let i of t) if (r = !0, !/* @__PURE__ */ A(e, i, n)) return !1;
|
|
90
93
|
return r;
|
|
91
94
|
}
|
|
92
95
|
/* @__NO_SIDE_EFFECTS__ */
|
|
93
|
-
function
|
|
96
|
+
function fe(e, t, n = !1) {
|
|
94
97
|
return !/* @__PURE__ */ A(e, t, n);
|
|
95
98
|
}
|
|
96
99
|
/* @__NO_SIDE_EFFECTS__ */
|
|
97
|
-
function
|
|
98
|
-
return
|
|
99
|
-
e = e.replace(RegExp(`${t}+`, "
|
|
100
|
-
}), e) : e.replace(RegExp(`${t}+`, "
|
|
100
|
+
function pe(e, t = " ") {
|
|
101
|
+
return p(t) ? (t.forEach((t) => {
|
|
102
|
+
e = e.replace(RegExp(`${H(t)}+`, "gu"), () => t);
|
|
103
|
+
}), e) : e.replace(RegExp(`${H(t)}+`, "gu"), () => t);
|
|
101
104
|
}
|
|
102
105
|
/* @__NO_SIDE_EFFECTS__ */
|
|
103
106
|
function j(e, t) {
|
|
104
107
|
if (e === null) return !1;
|
|
105
|
-
e = String(e), t =
|
|
108
|
+
e = String(e), t = p(t) ? Array.from(t) : [String(t)];
|
|
106
109
|
for (let n of t) if (n !== "" && e.endsWith(n)) return !0;
|
|
107
110
|
return !1;
|
|
108
111
|
}
|
|
109
112
|
/* @__NO_SIDE_EFFECTS__ */
|
|
110
|
-
function
|
|
113
|
+
function me(e, t) {
|
|
111
114
|
return !/* @__PURE__ */ j(e, t);
|
|
112
115
|
}
|
|
113
116
|
/* @__NO_SIDE_EFFECTS__ */
|
|
114
|
-
function
|
|
115
|
-
let n =
|
|
117
|
+
function he(e, t) {
|
|
118
|
+
let n = S(e), r = S(t);
|
|
116
119
|
if (r === "") return n;
|
|
117
120
|
let i = n.length;
|
|
118
121
|
for (; n.endsWith(r, i);) i -= r.length;
|
|
119
122
|
return `${n.slice(0, i)}${r}`;
|
|
120
123
|
}
|
|
121
124
|
/* @__NO_SIDE_EFFECTS__ */
|
|
122
|
-
function
|
|
125
|
+
function ge(e, t, n = null) {
|
|
123
126
|
return t + e + (n ?? t);
|
|
124
127
|
}
|
|
125
128
|
/* @__NO_SIDE_EFFECTS__ */
|
|
126
|
-
function
|
|
127
|
-
return /* @__PURE__ */
|
|
129
|
+
function _e(e, t, n = null) {
|
|
130
|
+
return /* @__PURE__ */ Y(e, t) && (e = /* @__PURE__ */ i(e, /* @__PURE__ */ N(t))), /* @__PURE__ */ j(e, n ??= t) && (e = /* @__PURE__ */ i(e, 0, -/* @__PURE__ */ N(n))), e;
|
|
128
131
|
}
|
|
129
132
|
/* @__NO_SIDE_EFFECTS__ */
|
|
130
|
-
function
|
|
133
|
+
function ve(e, t, n = !1) {
|
|
131
134
|
t = String(t);
|
|
132
135
|
let r;
|
|
133
136
|
r = typeof e == "string" ? [e] : Array.from(e);
|
|
134
137
|
for (let e of r) {
|
|
135
|
-
if (e = String(e), e === t || n &&
|
|
138
|
+
if (e = String(e), e === t || n && C(e) === C(t)) return !0;
|
|
136
139
|
e = e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), e = e.replace(/\\\*/g, ".*");
|
|
137
140
|
let r = n ? "iu" : "u";
|
|
138
141
|
if (RegExp(`^${e}$`, r).test(t)) return !0;
|
|
@@ -145,8 +148,8 @@ function M(e) {
|
|
|
145
148
|
return !0;
|
|
146
149
|
}
|
|
147
150
|
/* @__NO_SIDE_EFFECTS__ */
|
|
148
|
-
function
|
|
149
|
-
if (!
|
|
151
|
+
function ye(e) {
|
|
152
|
+
if (!b(e)) return !1;
|
|
150
153
|
try {
|
|
151
154
|
JSON.parse(e);
|
|
152
155
|
} catch {
|
|
@@ -155,8 +158,8 @@ function ge(e) {
|
|
|
155
158
|
return !0;
|
|
156
159
|
}
|
|
157
160
|
/* @__NO_SIDE_EFFECTS__ */
|
|
158
|
-
function
|
|
159
|
-
if (!
|
|
161
|
+
function be(e, t = []) {
|
|
162
|
+
if (!b(e)) return !1;
|
|
160
163
|
let n = (t.length === 0 ? "aaa|aaas|about|acap|acct|acd|acr|adiumxtra|adt|afp|afs|aim|amss|android|appdata|apt|ark|attachment|aw|barion|beshare|bitcoin|bitcoincash|blob|bolo|browserext|calculator|callto|cap|cast|casts|chrome|chrome-extension|cid|coap|coap+tcp|coap+ws|coaps|coaps+tcp|coaps+ws|com-eventbrite-attendee|content|conti|crid|cvs|dab|data|dav|diaspora|dict|did|dis|dlna-playcontainer|dlna-playsingle|dns|dntp|dpp|drm|drop|dtn|dvb|ed2k|elsi|example|facetime|fax|feed|feedready|file|filesystem|finger|first-run-pen-experience|fish|fm|ftp|fuchsia-pkg|geo|gg|git|gizmoproject|go|gopher|graph|gtalk|h323|ham|hcap|hcp|http|https|hxxp|hxxps|hydrazone|iax|icap|icon|im|imap|info|iotdisco|ipn|ipp|ipps|irc|irc6|ircs|iris|iris.beep|iris.lwz|iris.xpc|iris.xpcs|isostore|itms|jabber|jar|jms|keyparc|lastfm|ldap|ldaps|leaptofrogans|lorawan|lvlt|magnet|mailserver|mailto|maps|market|message|mid|mms|modem|mongodb|moz|ms-access|ms-browser-extension|ms-calculator|ms-drive-to|ms-enrollment|ms-excel|ms-eyecontrolspeech|ms-gamebarservices|ms-gamingoverlay|ms-getoffice|ms-help|ms-infopath|ms-inputapp|ms-lockscreencomponent-config|ms-media-stream-id|ms-mixedrealitycapture|ms-mobileplans|ms-officeapp|ms-people|ms-project|ms-powerpoint|ms-publisher|ms-restoretabcompanion|ms-screenclip|ms-screensketch|ms-search|ms-search-repair|ms-secondary-screen-controller|ms-secondary-screen-setup|ms-settings|ms-settings-airplanemode|ms-settings-bluetooth|ms-settings-camera|ms-settings-cellular|ms-settings-cloudstorage|ms-settings-connectabledevices|ms-settings-displays-topology|ms-settings-emailandaccounts|ms-settings-language|ms-settings-location|ms-settings-lock|ms-settings-nfctransactions|ms-settings-notifications|ms-settings-power|ms-settings-privacy|ms-settings-proximity|ms-settings-screenrotation|ms-settings-wifi|ms-settings-workplace|ms-spd|ms-sttoverlay|ms-transit-to|ms-useractivityset|ms-virtualtouchpad|ms-visio|ms-walk-to|ms-whiteboard|ms-whiteboard-cmd|ms-word|msnim|msrp|msrps|mss|mtqp|mumble|mupdate|mvn|news|nfs|ni|nih|nntp|notes|ocf|oid|onenote|onenote-cmd|opaquelocktoken|openpgp4fpr|pack|palm|paparazzi|payto|pkcs11|platform|pop|pres|prospero|proxy|pwid|psyc|pttp|qb|query|redis|rediss|reload|res|resource|rmi|rsync|rtmfp|rtmp|rtsp|rtsps|rtspu|s3|secondlife|service|session|sftp|sgn|shttp|sieve|simpleledger|sip|sips|skype|smb|sms|smtp|snews|snmp|soap.beep|soap.beeps|soldat|spiffe|spotify|ssh|steam|stun|stuns|submit|svn|tag|teamspeak|tel|teliaeid|telnet|tftp|tg|things|thismessage|tip|tn3270|tool|ts3server|turn|turns|tv|udp|unreal|urn|ut2004|v-event|vemmi|ventrilo|videotex|vnc|view-source|wais|webcal|wpid|ws|wss|wtai|wyciwyg|xcon|xcon-userid|xfire|xmlrpc.beep|xmlrpc.beeps|xmpp|xri|ymsgr|z39.50|z39.50r|z39.50s" : t.join("|")).split("|").map((e) => e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&")).join("|");
|
|
161
164
|
try {
|
|
162
165
|
let t = new URL(e), r = t.protocol.replace(":", ""), i = t.hostname, a = e.slice(e.indexOf("://") + 3).startsWith("/"), o = i.length > 0 && !/^\.+$/.test(i) && !a, s = r === "file" && a;
|
|
@@ -183,43 +186,45 @@ function _e(e, t = []) {
|
|
|
183
186
|
return new RegExp(r, "iu").test(e);
|
|
184
187
|
}
|
|
185
188
|
/* @__NO_SIDE_EFFECTS__ */
|
|
186
|
-
function
|
|
187
|
-
return /* @__PURE__ */
|
|
189
|
+
function xe(e) {
|
|
190
|
+
return /* @__PURE__ */ J(e, "-");
|
|
188
191
|
}
|
|
189
192
|
/* @__NO_SIDE_EFFECTS__ */
|
|
190
193
|
function N(e) {
|
|
191
|
-
|
|
194
|
+
let t = 0;
|
|
195
|
+
for (let n of e) t++;
|
|
196
|
+
return t;
|
|
192
197
|
}
|
|
193
198
|
/* @__NO_SIDE_EFFECTS__ */
|
|
194
|
-
function
|
|
195
|
-
if (e
|
|
196
|
-
if (!r) return e
|
|
197
|
-
e = (/* @__PURE__ */
|
|
198
|
-
let
|
|
199
|
-
return e
|
|
199
|
+
function Se(e, t = 100, n = "...", r = !1) {
|
|
200
|
+
if (/* @__PURE__ */ u(e) <= t) return e;
|
|
201
|
+
if (!r) return (/* @__PURE__ */ d(e, t)).trimEnd() + n;
|
|
202
|
+
e = (/* @__PURE__ */ q(e)).replace(/[\n\r]+/g, " ").trim();
|
|
203
|
+
let a = (/* @__PURE__ */ d(e, t)).trimEnd();
|
|
204
|
+
return /* @__PURE__ */ i(e, t, 1) === " " || !/\s/.test(a) ? a + n : a.replace(/(.*)\s.*/, "$1") + n;
|
|
200
205
|
}
|
|
201
206
|
/* @__NO_SIDE_EFFECTS__ */
|
|
202
207
|
function P(e) {
|
|
203
|
-
return
|
|
208
|
+
return C(e);
|
|
204
209
|
}
|
|
205
210
|
/* @__NO_SIDE_EFFECTS__ */
|
|
206
|
-
function
|
|
211
|
+
function Ce(e, t = 100, n = "...") {
|
|
207
212
|
if (t <= 0) return e;
|
|
208
213
|
let r = RegExp(`^\\s*(?:\\S+\\s*){1,${t}}`, "u"), i = e.match(r);
|
|
209
214
|
return !i || /* @__PURE__ */ N(e) === /* @__PURE__ */ N(i[0]) ? e : i[0].trimEnd() + n;
|
|
210
215
|
}
|
|
211
216
|
/* @__NO_SIDE_EFFECTS__ */
|
|
212
|
-
function
|
|
217
|
+
function we(e, t, n, r = null) {
|
|
213
218
|
if (t === "") return e;
|
|
214
|
-
let
|
|
215
|
-
|
|
216
|
-
let o = e.
|
|
217
|
-
|
|
218
|
-
let
|
|
219
|
-
return
|
|
219
|
+
let a = /* @__PURE__ */ i(e, n, r);
|
|
220
|
+
if (a === "") return e;
|
|
221
|
+
let o = Array.from(e).length, s = n;
|
|
222
|
+
n < 0 && (s = n < -o ? 0 : o + n);
|
|
223
|
+
let c = /* @__PURE__ */ i(e, 0, s), l = Array.from(a).length, u = /* @__PURE__ */ i(e, s + l);
|
|
224
|
+
return c + (/* @__PURE__ */ i(t, 0, 1)).repeat(l) + u;
|
|
220
225
|
}
|
|
221
226
|
/* @__NO_SIDE_EFFECTS__ */
|
|
222
|
-
function
|
|
227
|
+
function Te(e, t) {
|
|
223
228
|
let n = "u", r = e;
|
|
224
229
|
if (e.length >= 2 && e[0] === "/") {
|
|
225
230
|
let t = -1;
|
|
@@ -245,7 +250,7 @@ function Se(e, t) {
|
|
|
245
250
|
}
|
|
246
251
|
}
|
|
247
252
|
/* @__NO_SIDE_EFFECTS__ */
|
|
248
|
-
function
|
|
253
|
+
function Ee(e, t) {
|
|
249
254
|
t = String(t);
|
|
250
255
|
let n = typeof e == "string" ? [e] : Array.from(e);
|
|
251
256
|
for (let e of n) {
|
|
@@ -274,7 +279,7 @@ function Ce(e, t) {
|
|
|
274
279
|
return !1;
|
|
275
280
|
}
|
|
276
281
|
/* @__NO_SIDE_EFFECTS__ */
|
|
277
|
-
function
|
|
282
|
+
function De(e, t) {
|
|
278
283
|
let n = "u", r = e;
|
|
279
284
|
if (e.length >= 2 && e[0] === "/") {
|
|
280
285
|
let t = -1;
|
|
@@ -303,34 +308,38 @@ function we(e, t) {
|
|
|
303
308
|
return i;
|
|
304
309
|
}
|
|
305
310
|
/* @__NO_SIDE_EFFECTS__ */
|
|
306
|
-
function
|
|
307
|
-
return
|
|
311
|
+
function Oe(e) {
|
|
312
|
+
return p(e) ? e.map((e) => e.replace(/\D/g, "")) : e.replace(/\D/g, "");
|
|
308
313
|
}
|
|
309
314
|
/* @__NO_SIDE_EFFECTS__ */
|
|
310
|
-
function
|
|
311
|
-
let r = e.
|
|
312
|
-
|
|
313
|
-
let i = t - r, a = Math.floor(i / 2), o = i - a;
|
|
314
|
-
return /* @__PURE__ */ F(n, a) + e + /* @__PURE__ */ F(n, o);
|
|
315
|
+
function ke(e, t, n = " ") {
|
|
316
|
+
let r = F(e, t, n), i = Math.floor(r / 2), a = r - i;
|
|
317
|
+
return /* @__PURE__ */ I(n, i) + e + /* @__PURE__ */ I(n, a);
|
|
315
318
|
}
|
|
316
319
|
/* @__NO_SIDE_EFFECTS__ */
|
|
317
|
-
function
|
|
318
|
-
|
|
319
|
-
return t <= r || n === "" ? e : /* @__PURE__ */ F(n, t - r) + e;
|
|
320
|
+
function Ae(e, t, n = " ") {
|
|
321
|
+
return /* @__PURE__ */ I(n, F(e, t, n)) + e;
|
|
320
322
|
}
|
|
321
323
|
/* @__NO_SIDE_EFFECTS__ */
|
|
322
|
-
function
|
|
323
|
-
|
|
324
|
-
|
|
324
|
+
function je(e, t, n = " ") {
|
|
325
|
+
return e + /* @__PURE__ */ I(n, F(e, t, n));
|
|
326
|
+
}
|
|
327
|
+
function F(e, t, n) {
|
|
328
|
+
let r = x(t, "mb_str_pad(): Argument #2 ($length) must be of type int, float given") - /* @__PURE__ */ N(e);
|
|
329
|
+
if (r <= 0) return 0;
|
|
330
|
+
if (n === "") throw Error("mb_str_pad(): Argument #3 ($pad_string) must not be empty");
|
|
331
|
+
return r;
|
|
325
332
|
}
|
|
326
333
|
/* @__NO_SIDE_EFFECTS__ */
|
|
327
|
-
function
|
|
328
|
-
if (t <= 0
|
|
329
|
-
let n =
|
|
330
|
-
|
|
334
|
+
function I(e, t) {
|
|
335
|
+
if (t <= 0) return "";
|
|
336
|
+
let n = Array.from(e);
|
|
337
|
+
if (n.length === 0) return "";
|
|
338
|
+
let r = Math.ceil(t / n.length);
|
|
339
|
+
return Array.from(e.repeat(r)).slice(0, t).join("");
|
|
331
340
|
}
|
|
332
341
|
/* @__NO_SIDE_EFFECTS__ */
|
|
333
|
-
function
|
|
342
|
+
function Me(e = 32, t = !0, r = !0, i = !0, a = !1) {
|
|
334
343
|
let o = [
|
|
335
344
|
t ? /* @__PURE__ */ "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".split("") : null,
|
|
336
345
|
r ? [
|
|
@@ -347,12 +356,12 @@ function ke(e = 32, t = !0, r = !0, i = !0, a = !1) {
|
|
|
347
356
|
] : null,
|
|
348
357
|
i ? /* @__PURE__ */ "~!#$%^&*()-_.,<>?/\\{}[]|:;".split("") : null,
|
|
349
358
|
a ? [" "] : null
|
|
350
|
-
].filter((e) =>
|
|
359
|
+
].filter((e) => p(e));
|
|
351
360
|
if (o.length === 0) throw Error("At least one character pool must be enabled.");
|
|
352
|
-
let s = o.flat(), c =
|
|
353
|
-
return
|
|
361
|
+
let s = o.flat(), c = L(o).slice(0, Math.max(0, e)).map((e) => e[/* @__PURE__ */ n(0, e.length - 1)]), l = Array.from({ length: Math.max(0, e - c.length) }, () => s[/* @__PURE__ */ n(0, s.length - 1)]);
|
|
362
|
+
return L([...c, ...l]).join("");
|
|
354
363
|
}
|
|
355
|
-
function
|
|
364
|
+
function L(e) {
|
|
356
365
|
let t = [...e];
|
|
357
366
|
for (let e = t.length - 1; e > 0; e--) {
|
|
358
367
|
let r = /* @__PURE__ */ n(0, e);
|
|
@@ -361,12 +370,12 @@ function I(e) {
|
|
|
361
370
|
return t;
|
|
362
371
|
}
|
|
363
372
|
/* @__NO_SIDE_EFFECTS__ */
|
|
364
|
-
function
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
if (
|
|
368
|
-
let
|
|
369
|
-
for (let e =
|
|
373
|
+
function Ne(e, t, n = 0) {
|
|
374
|
+
let r = Array.from(e), i = Array.from(t), a = x(n, "mb_strpos(): Argument #3 ($offset) must be of type int, float given"), o = a >= 0 ? a : r.length + a;
|
|
375
|
+
if (o < 0 || o > r.length) throw Error("mb_strpos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)");
|
|
376
|
+
if (t === "") return o;
|
|
377
|
+
let s = r.length - i.length;
|
|
378
|
+
for (let e = o; e <= s; e++) {
|
|
370
379
|
let t = !0;
|
|
371
380
|
for (let n = 0; n < i.length; n++) if (r[e + n] !== i[n]) {
|
|
372
381
|
t = !1;
|
|
@@ -377,32 +386,32 @@ function Ae(e, t, n = 0) {
|
|
|
377
386
|
return !1;
|
|
378
387
|
}
|
|
379
388
|
/* @__NO_SIDE_EFFECTS__ */
|
|
380
|
-
function
|
|
381
|
-
return (
|
|
389
|
+
function R(e = 16) {
|
|
390
|
+
return (D ?? ((e) => /* @__PURE__ */ r(e)))(e);
|
|
382
391
|
}
|
|
383
|
-
function
|
|
384
|
-
|
|
392
|
+
function z(e) {
|
|
393
|
+
D = e;
|
|
385
394
|
}
|
|
386
|
-
function
|
|
395
|
+
function Pe(e, t) {
|
|
387
396
|
let n = 0, r = t ?? function(e) {
|
|
388
|
-
let t =
|
|
389
|
-
|
|
390
|
-
let r = /* @__PURE__ */
|
|
391
|
-
return
|
|
397
|
+
let t = D;
|
|
398
|
+
D = null;
|
|
399
|
+
let r = /* @__PURE__ */ R(e);
|
|
400
|
+
return D = t, n++, r;
|
|
392
401
|
};
|
|
393
|
-
|
|
402
|
+
z((t) => n < e.length ? String(e[n++]) : r(t));
|
|
394
403
|
}
|
|
395
|
-
function
|
|
396
|
-
|
|
404
|
+
function B() {
|
|
405
|
+
D = null;
|
|
397
406
|
}
|
|
398
407
|
/* @__NO_SIDE_EFFECTS__ */
|
|
399
|
-
function
|
|
408
|
+
function Fe(e, t) {
|
|
400
409
|
return t <= 0 ? "" : e.repeat(t);
|
|
401
410
|
}
|
|
402
411
|
/* @__NO_SIDE_EFFECTS__ */
|
|
403
|
-
function
|
|
412
|
+
function Ie(e, t, n) {
|
|
404
413
|
let r;
|
|
405
|
-
r = typeof t == "object" && !
|
|
414
|
+
r = typeof t == "object" && !p(t) ? Object.values(t) : p(t) ? [...t] : Array.from(t);
|
|
406
415
|
let i = n.split(e);
|
|
407
416
|
if (i.length === 1) return n;
|
|
408
417
|
let a = i[0];
|
|
@@ -413,7 +422,7 @@ function Ne(e, t, n) {
|
|
|
413
422
|
return String(a);
|
|
414
423
|
}
|
|
415
424
|
/* @__NO_SIDE_EFFECTS__ */
|
|
416
|
-
function
|
|
425
|
+
function Le(e, t) {
|
|
417
426
|
try {
|
|
418
427
|
let t = String(e);
|
|
419
428
|
if (t.length) return t;
|
|
@@ -423,49 +432,51 @@ function Pe(e, t) {
|
|
|
423
432
|
}
|
|
424
433
|
}
|
|
425
434
|
/* @__NO_SIDE_EFFECTS__ */
|
|
426
|
-
function
|
|
427
|
-
if (
|
|
428
|
-
let i =
|
|
429
|
-
return
|
|
435
|
+
function V(e, t, n, r = !0) {
|
|
436
|
+
if (b(e) && !b(t)) throw TypeError("The replacement must be a string when the search term is a string.");
|
|
437
|
+
let i = b(e) ? [e] : Array.from(e, (e) => W(e)), a = b(t) ? i.map(() => t) : Array.from(t, (e) => W(e));
|
|
438
|
+
return U(n, (e) => r ? i.reduce((e, t, n) => t === "" ? e : e.split(t).join(a[n] ?? ""), e) : Re(i, a, e));
|
|
430
439
|
}
|
|
431
|
-
function
|
|
432
|
-
|
|
433
|
-
|
|
440
|
+
function H(e) {
|
|
441
|
+
return e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
442
|
+
}
|
|
443
|
+
function Re(e, t, n) {
|
|
444
|
+
return e.reduce((e, n, r) => {
|
|
434
445
|
if (n === "") return e;
|
|
435
|
-
let
|
|
436
|
-
return e.replace(
|
|
446
|
+
let i = t[r] ?? "", a = new RegExp(H(n), /* @__PURE__ */ M(n) ? "gi" : "giu");
|
|
447
|
+
return e.replace(a, () => i);
|
|
437
448
|
}, n);
|
|
438
449
|
}
|
|
439
|
-
function
|
|
440
|
-
let n = (e) => Object.fromEntries(Object.entries(e).map(([e, n]) => [e, t(
|
|
441
|
-
return
|
|
450
|
+
function U(e, t) {
|
|
451
|
+
let n = (e) => Object.fromEntries(Object.entries(e).map(([e, n]) => [e, t(W(n))]));
|
|
452
|
+
return b(e) ? t(e) : p(e) ? e.map((e) => t(W(e))) : g(e) ? new Map(Array.from(e, ([e, n]) => [e, t(W(n))])) : ee(e) ? n(e) : y(e) && m(e.all) ? U(e.all(), t) : h(e) ? Array.from(e, (e) => t(W(e))) : f(e) ? t(String(e)) : y(e) ? n(e) : t(W(e));
|
|
442
453
|
}
|
|
443
|
-
function
|
|
444
|
-
return
|
|
454
|
+
function W(e) {
|
|
455
|
+
return _(e) || te(e) ? "" : String(e);
|
|
445
456
|
}
|
|
446
457
|
/* @__NO_SIDE_EFFECTS__ */
|
|
447
|
-
function
|
|
458
|
+
function G(e, t, n) {
|
|
448
459
|
if (e = String(e), e === "") return n;
|
|
449
460
|
let r = n.indexOf(e);
|
|
450
461
|
return r === -1 ? n : n.slice(0, r) + t + n.slice(r + e.length);
|
|
451
462
|
}
|
|
452
463
|
/* @__NO_SIDE_EFFECTS__ */
|
|
453
|
-
function
|
|
454
|
-
return e = String(e), e === "" ? n : /* @__PURE__ */
|
|
464
|
+
function ze(e, t, n) {
|
|
465
|
+
return e = String(e), e === "" ? n : /* @__PURE__ */ Y(n, e) ? /* @__PURE__ */ G(e, t, n) : n;
|
|
455
466
|
}
|
|
456
467
|
/* @__NO_SIDE_EFFECTS__ */
|
|
457
|
-
function
|
|
468
|
+
function K(e, t, n) {
|
|
458
469
|
if (e = String(e), e === "") return n;
|
|
459
470
|
let r = n.lastIndexOf(e);
|
|
460
471
|
return r === -1 ? n : n.slice(0, r) + t + n.slice(r + e.length);
|
|
461
472
|
}
|
|
462
473
|
/* @__NO_SIDE_EFFECTS__ */
|
|
463
|
-
function
|
|
464
|
-
return e = String(e), e === "" ? n : /* @__PURE__ */ j(n, e) ? /* @__PURE__ */
|
|
474
|
+
function Be(e, t, n) {
|
|
475
|
+
return e = String(e), e === "" ? n : /* @__PURE__ */ j(n, e) ? /* @__PURE__ */ K(e, t, n) : n;
|
|
465
476
|
}
|
|
466
477
|
/* @__NO_SIDE_EFFECTS__ */
|
|
467
|
-
function
|
|
468
|
-
let i = (e) =>
|
|
478
|
+
function Ve(e, t, n, r = -1) {
|
|
479
|
+
let i = (e) => p(e) ? e : [e], a = i(e);
|
|
469
480
|
function o(e) {
|
|
470
481
|
try {
|
|
471
482
|
if (e instanceof RegExp) {
|
|
@@ -500,7 +511,7 @@ function Re(e, t, n, r = -1) {
|
|
|
500
511
|
if (!t) return null;
|
|
501
512
|
s.push(t);
|
|
502
513
|
}
|
|
503
|
-
let c =
|
|
514
|
+
let c = m(t), l = c ? [] : i(t), u = (e) => {
|
|
504
515
|
let n = e;
|
|
505
516
|
for (let e = 0; e < s.length; e++) {
|
|
506
517
|
let i = s[e];
|
|
@@ -533,10 +544,10 @@ function Re(e, t, n, r = -1) {
|
|
|
533
544
|
}
|
|
534
545
|
return n;
|
|
535
546
|
};
|
|
536
|
-
return
|
|
547
|
+
return p(n) ? n.map(u) : u(n);
|
|
537
548
|
}
|
|
538
549
|
/* @__NO_SIDE_EFFECTS__ */
|
|
539
|
-
function
|
|
550
|
+
function q(e) {
|
|
540
551
|
let t = "", n = !1;
|
|
541
552
|
for (let r = 0; r < e.length; r++) {
|
|
542
553
|
let i = e[r];
|
|
@@ -545,35 +556,35 @@ function G(e) {
|
|
|
545
556
|
return t;
|
|
546
557
|
}
|
|
547
558
|
/* @__NO_SIDE_EFFECTS__ */
|
|
548
|
-
function
|
|
549
|
-
return /* @__PURE__ */
|
|
559
|
+
function He(e, t, n = !0) {
|
|
560
|
+
return /* @__PURE__ */ V(e, "", t, n);
|
|
550
561
|
}
|
|
551
562
|
/* @__NO_SIDE_EFFECTS__ */
|
|
552
|
-
function
|
|
563
|
+
function Ue(e) {
|
|
553
564
|
return Array.from(e).reverse().join("");
|
|
554
565
|
}
|
|
555
566
|
/* @__NO_SIDE_EFFECTS__ */
|
|
556
|
-
function
|
|
557
|
-
let n =
|
|
567
|
+
function We(e, t) {
|
|
568
|
+
let n = S(e), r = S(t);
|
|
558
569
|
if (r === "") return n;
|
|
559
570
|
let i = 0;
|
|
560
571
|
for (; n.startsWith(r, i);) i += r.length;
|
|
561
572
|
return `${r}${n.slice(i)}`;
|
|
562
573
|
}
|
|
563
574
|
/* @__NO_SIDE_EFFECTS__ */
|
|
564
|
-
function
|
|
575
|
+
function Ge(t) {
|
|
565
576
|
let n = String(t).trim();
|
|
566
577
|
if (n === "") return "";
|
|
567
578
|
let r = n.split(/\s+/u);
|
|
568
|
-
return r = r.length > 1 ? r.map((t) => /* @__PURE__ */ e(t)) : (/* @__PURE__ */
|
|
579
|
+
return r = r.length > 1 ? r.map((t) => /* @__PURE__ */ e(t)) : (/* @__PURE__ */ Q(r.join("_"))).map((t) => /* @__PURE__ */ e(t)), r.join("_").replace(/[-_ ]+/gu, "_").split("_").filter((e) => e.length > 0).join(" ");
|
|
569
580
|
}
|
|
570
581
|
/* @__NO_SIDE_EFFECTS__ */
|
|
571
|
-
function
|
|
582
|
+
function Ke(e, n = !1) {
|
|
572
583
|
let r = e.split(/\s+/u).filter((e) => e.length > 0).map((e) => [...e][0]).join("");
|
|
573
584
|
return n ? /* @__PURE__ */ t(r) : r;
|
|
574
585
|
}
|
|
575
586
|
/* @__NO_SIDE_EFFECTS__ */
|
|
576
|
-
function
|
|
587
|
+
function qe(e) {
|
|
577
588
|
if (e.trim() === "") return e;
|
|
578
589
|
let t = /* @__PURE__ */ new Set(/* @__PURE__ */ "and.as.but.for.if.nor.or.so.yet.a.an.the.at.by.for.in.of.off.on.per.to.up.via.et.ou.un.une.la.le.les.de.du.des.par.à".split(".")), n = /* @__PURE__ */ new Set([
|
|
579
590
|
".",
|
|
@@ -600,21 +611,21 @@ function We(e) {
|
|
|
600
611
|
return r.join(" ");
|
|
601
612
|
}
|
|
602
613
|
/* @__NO_SIDE_EFFECTS__ */
|
|
603
|
-
function
|
|
614
|
+
function J(e, t = "_") {
|
|
604
615
|
let n = `${e}|${t}`;
|
|
605
|
-
if (
|
|
616
|
+
if (w.has(n)) return w.get(n);
|
|
606
617
|
let r = e;
|
|
607
|
-
return /^[a-z]+$/.test(e) || (r = (/* @__PURE__ */
|
|
618
|
+
return /^[a-z]+$/.test(e) || (r = (/* @__PURE__ */ et(e)).replace(/\s+/gu, ""), r = r.replace(/(.)(?=[A-Z])/g, `$1${t}`), r = /* @__PURE__ */ P(r)), w.set(n, r), r;
|
|
608
619
|
}
|
|
609
620
|
/* @__NO_SIDE_EFFECTS__ */
|
|
610
|
-
function
|
|
621
|
+
function Je(e) {
|
|
611
622
|
return (/* @__PURE__ */ s(e)).replace(/[\s\u3164\u1160]+/gu, " ");
|
|
612
623
|
}
|
|
613
624
|
/* @__NO_SIDE_EFFECTS__ */
|
|
614
|
-
function
|
|
625
|
+
function Y(e, t) {
|
|
615
626
|
if (e == null || t == null) return !1;
|
|
616
627
|
let n;
|
|
617
|
-
n =
|
|
628
|
+
n = b(t) || v(t) ? [t] : Symbol.iterator in Object(t) ? Array.from(t) : [t];
|
|
618
629
|
let r = String(e);
|
|
619
630
|
for (let e of n) {
|
|
620
631
|
if (e == null) continue;
|
|
@@ -624,28 +635,28 @@ function q(e, t) {
|
|
|
624
635
|
return !1;
|
|
625
636
|
}
|
|
626
637
|
/* @__NO_SIDE_EFFECTS__ */
|
|
627
|
-
function
|
|
628
|
-
return !/* @__PURE__ */
|
|
638
|
+
function Ye(e, t) {
|
|
639
|
+
return !/* @__PURE__ */ Y(e, t);
|
|
629
640
|
}
|
|
630
641
|
/* @__NO_SIDE_EFFECTS__ */
|
|
631
|
-
function
|
|
642
|
+
function X(e, t = !1) {
|
|
632
643
|
let n = e;
|
|
633
644
|
t && (n = e.replace(/(^|[-_ \s])([A-Z]+)(?=[-_ \s]|$)/gu, (e, t, n) => t + n.toLowerCase()));
|
|
634
645
|
let r = n;
|
|
635
|
-
if (
|
|
646
|
+
if (E.has(r)) return E.get(r);
|
|
636
647
|
let i = String(n).replace(/[-_]+/g, " "), a = (i.trim() === "" ? [] : i.split(/\s+/u)).map((e) => {
|
|
637
648
|
if (!e) return e;
|
|
638
649
|
let t = Array.from(e);
|
|
639
650
|
return t[0].toUpperCase() + t.slice(1).join("");
|
|
640
651
|
}).join("");
|
|
641
|
-
return
|
|
652
|
+
return E.set(r, a), a;
|
|
642
653
|
}
|
|
643
654
|
/* @__NO_SIDE_EFFECTS__ */
|
|
644
|
-
function
|
|
645
|
-
return /* @__PURE__ */
|
|
655
|
+
function Xe(e, t = !1) {
|
|
656
|
+
return /* @__PURE__ */ X(e, t);
|
|
646
657
|
}
|
|
647
658
|
/* @__NO_SIDE_EFFECTS__ */
|
|
648
|
-
function
|
|
659
|
+
function Ze(e, t) {
|
|
649
660
|
if (!e || Object.keys(e).length === 0) return t;
|
|
650
661
|
let n = Object.keys(e).filter((e) => e !== "");
|
|
651
662
|
if (n.length === 0) return t;
|
|
@@ -654,46 +665,47 @@ function Je(e, t) {
|
|
|
654
665
|
return t.replace(r, (t) => e[t]);
|
|
655
666
|
}
|
|
656
667
|
/* @__NO_SIDE_EFFECTS__ */
|
|
657
|
-
function
|
|
658
|
-
|
|
668
|
+
function Qe(e, t) {
|
|
669
|
+
let n = x(t, "Str::take(): Argument #2 ($limit) must be of type int, float given");
|
|
670
|
+
return n < 0 ? /* @__PURE__ */ i(e, n) : /* @__PURE__ */ i(e, 0, n);
|
|
659
671
|
}
|
|
660
672
|
/* @__NO_SIDE_EFFECTS__ */
|
|
661
|
-
function
|
|
673
|
+
function Z(e) {
|
|
662
674
|
return /* @__PURE__ */ P(/* @__PURE__ */ i(e, 0, 1)) + /* @__PURE__ */ i(e, 1);
|
|
663
675
|
}
|
|
664
676
|
/* @__NO_SIDE_EFFECTS__ */
|
|
665
|
-
function
|
|
677
|
+
function $e(e) {
|
|
666
678
|
return /* @__PURE__ */ t(/* @__PURE__ */ i(e, 0, 1)) + /* @__PURE__ */ i(e, 1);
|
|
667
679
|
}
|
|
668
680
|
/* @__NO_SIDE_EFFECTS__ */
|
|
669
|
-
function
|
|
681
|
+
function Q(e) {
|
|
670
682
|
return e.split(/(?=\p{Lu})/u).filter(Boolean);
|
|
671
683
|
}
|
|
672
684
|
/* @__NO_SIDE_EFFECTS__ */
|
|
673
|
-
function
|
|
674
|
-
let n =
|
|
685
|
+
function et(e, t = " \r\n\f\v") {
|
|
686
|
+
let n = p(t) ? t.join("") : t, r = n.length ? ((e) => e.replace(/[-\\^$*+?.()|[\]{}]/g, "\\$&"))(n) : "", i = r.length ? `(?:\\s|[${r}])` : "\\s", a = RegExp(`(^|${i})(\\p{Ll})`, "gu");
|
|
675
687
|
return e.replace(a, (e, t, n) => t + n.toUpperCase());
|
|
676
688
|
}
|
|
677
689
|
/* @__NO_SIDE_EFFECTS__ */
|
|
678
|
-
function
|
|
690
|
+
function tt(e, t = null) {
|
|
679
691
|
let n = t && t.length > 0 ? t.replace(/[-\\^$*+?.()|[\]{}]/g, "\\$&") : "", r = n.length > 0 ? RegExp(`[\\p{L}\\p{N}${n}]+`, "gu") : /[\p{L}\p{N}]+/gu, i = e.match(r);
|
|
680
692
|
return i ? i.length : 0;
|
|
681
693
|
}
|
|
682
|
-
function
|
|
694
|
+
function $(e) {
|
|
683
695
|
return e.trim() === "";
|
|
684
696
|
}
|
|
685
|
-
function
|
|
697
|
+
function nt(e, t, n) {
|
|
686
698
|
let r = t;
|
|
687
|
-
for (; r < n &&
|
|
699
|
+
for (; r < n && $(e[r]);) r++;
|
|
688
700
|
return r;
|
|
689
701
|
}
|
|
690
|
-
function
|
|
702
|
+
function rt(e, t, n) {
|
|
691
703
|
let r = n;
|
|
692
|
-
for (; r > t &&
|
|
704
|
+
for (; r > t && $(e[r - 1]);) r--;
|
|
693
705
|
return r;
|
|
694
706
|
}
|
|
695
707
|
/* @__NO_SIDE_EFFECTS__ */
|
|
696
|
-
function
|
|
708
|
+
function it(e, t = 75, n = "\n", r = !1) {
|
|
697
709
|
if (e.length === 0 || t < 1 || n === "") return e;
|
|
698
710
|
let i = e.split(/\r\n|\n|\r/), a = [];
|
|
699
711
|
for (let e of i) {
|
|
@@ -703,20 +715,20 @@ function $e(e, t = 75, n = "\n", r = !1) {
|
|
|
703
715
|
continue;
|
|
704
716
|
}
|
|
705
717
|
let o = 0;
|
|
706
|
-
if (r) for (; o < i && (o =
|
|
718
|
+
if (r) for (; o < i && (o = nt(n, o, i), o !== i);) {
|
|
707
719
|
if (i - o <= t) {
|
|
708
720
|
a.push(n.slice(o, i).join(""));
|
|
709
721
|
break;
|
|
710
722
|
}
|
|
711
|
-
let e =
|
|
723
|
+
let e = rt(n, o, o + t);
|
|
712
724
|
a.push(n.slice(o, e).join("")), o += t;
|
|
713
725
|
}
|
|
714
726
|
else {
|
|
715
727
|
for (; i - o > t;) {
|
|
716
|
-
let e =
|
|
728
|
+
let e = nt(n, o, i);
|
|
717
729
|
if (e !== o && (o = e, i - o <= t)) break;
|
|
718
730
|
let r = Math.min(i, o + t + 1), s = -1;
|
|
719
|
-
for (let e = r - 1; e >= o; e--) if (
|
|
731
|
+
for (let e = r - 1; e >= o; e--) if ($(n[e])) {
|
|
720
732
|
s = e;
|
|
721
733
|
break;
|
|
722
734
|
}
|
|
@@ -725,7 +737,7 @@ function $e(e, t = 75, n = "\n", r = !1) {
|
|
|
725
737
|
continue;
|
|
726
738
|
}
|
|
727
739
|
let c = -1;
|
|
728
|
-
for (let e = o; e < i; e++) if (
|
|
740
|
+
for (let e = o; e < i; e++) if ($(n[e])) {
|
|
729
741
|
c = e;
|
|
730
742
|
break;
|
|
731
743
|
}
|
|
@@ -741,21 +753,21 @@ function $e(e, t = 75, n = "\n", r = !1) {
|
|
|
741
753
|
return a.join(n);
|
|
742
754
|
}
|
|
743
755
|
/* @__NO_SIDE_EFFECTS__ */
|
|
744
|
-
function
|
|
745
|
-
return
|
|
756
|
+
function at() {
|
|
757
|
+
return w.size;
|
|
746
758
|
}
|
|
747
759
|
/* @__NO_SIDE_EFFECTS__ */
|
|
748
|
-
function
|
|
749
|
-
return
|
|
760
|
+
function ot() {
|
|
761
|
+
return T.size;
|
|
750
762
|
}
|
|
751
763
|
/* @__NO_SIDE_EFFECTS__ */
|
|
752
|
-
function
|
|
753
|
-
return
|
|
764
|
+
function st() {
|
|
765
|
+
return E.size;
|
|
754
766
|
}
|
|
755
|
-
function
|
|
756
|
-
|
|
767
|
+
function ct() {
|
|
768
|
+
w.clear(), T.clear(), E.clear();
|
|
757
769
|
}
|
|
758
|
-
function
|
|
759
|
-
|
|
770
|
+
function lt() {
|
|
771
|
+
B(), c(), l();
|
|
760
772
|
}
|
|
761
|
-
export {
|
|
773
|
+
export { O as after, ne as afterLast, qe as apa, k as before, re as beforeLast, ie as between, ae as betweenFirst, oe as camel, ot as camelCacheSize, se as charAt, le as chopEnd, ce as chopStart, A as contains, de as containsAll, B as createRandomStringsNormally, z as createRandomStringsUsing, Pe as createRandomStringsUsingSequence, pe as deduplicate, fe as doesntContain, me as doesntEndWith, Ye as doesntStartWith, j as endsWith, ue as excerpt, he as finish, ct as flushCache, Ge as headline, Ke as initials, ve as is, M as isAscii, ye as isJson, Ee as isMatch, be as isUrl, xe as kebab, Z as lcfirst, N as length, Se as limit, P as lower, I as makePad, we as mask, Te as match, De as matchAll, Oe as numbers, ke as padBoth, Ae as padLeft, je as padRight, Xe as pascal, Me as password, Ne as position, R as random, He as remove, Fe as repeat, V as replace, Ie as replaceArray, Be as replaceEnd, G as replaceFirst, K as replaceLast, Ve as replaceMatches, ze as replaceStart, lt as resetFactoryState, Ue as reverse, J as snake, at as snakeCacheSize, Je as squish, We as start, Y as startsWith, q as stripTags, X as studly, st as studlyCacheSize, Ze as swap, Qe as take, Le as toStringOr, $e as ucfirst, Q as ucsplit, et as ucwords, _e as unwrap, tt as wordCount, it as wordWrap, Ce as words, ge as wrap };
|