@tolki/str 1.2.1 → 1.2.2

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 CHANGED
@@ -1788,6 +1788,10 @@ const result = wordCount("Hello, world!");
1788
1788
 
1789
1789
  Wrap a string to a given number of characters.
1790
1790
 
1791
+ The width is counted in characters rather than in UTF-16 code units, so
1792
+ characters outside the Basic Multilingual Plane such as emoji each count as a
1793
+ single character.
1794
+
1791
1795
  ```javascript
1792
1796
  import { wordWrap } from "@tolki/str";
1793
1797
 
@@ -1803,6 +1807,10 @@ The quick brown fox<br />
1803
1807
  jumped over the lazy<br />
1804
1808
  dog.
1805
1809
  */
1810
+
1811
+ const result2 = wordWrap("šŸ˜€šŸ˜€šŸ˜€šŸ˜€", 2, "\n", true);
1812
+
1813
+ // result2 is "šŸ˜€šŸ˜€\nšŸ˜€šŸ˜€"
1806
1814
  ```
1807
1815
 
1808
1816
  ' },
package/dist/str.d.ts CHANGED
@@ -766,6 +766,22 @@ export declare function wordCount(value: string, characters?: string | null): nu
766
766
  /**
767
767
  * Wrap a string to a given number of characters.
768
768
  *
769
+ * The width is measured in Unicode characters rather than UTF-16 code units,
770
+ * so characters outside the Basic Multilingual Plane such as emoji count as a
771
+ * single character.
772
+ *
773
+ * Three long standing differences from Laravel's `Str::wordWrap()` are
774
+ * deliberate and are pinned by the "known differences from PHP" tests:
775
+ *
776
+ * - `cutLongWords` breaks strictly every `characters` characters here, while
777
+ * PHP breaks at word boundaries first and only splits words that are longer
778
+ * than the width on their own.
779
+ * - Leading whitespace on a line is dropped here, while PHP keeps it and emits
780
+ * it as its own line.
781
+ * - Line breaks already present in the string are replaced with `breakStr`
782
+ * here, while PHP leaves them as they are and only inserts `breakStr` where
783
+ * it wraps.
784
+ *
769
785
  * @param value - The string to wrap
770
786
  * @param characters - The maximum number of characters per line (default: 75)
771
787
  * @param breakStr - The string to insert as a line break (default: "\n")
package/dist/str.d.ts.map CHANGED
@@ -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H,wBAAgB,UAAU,IAAI,IAAI,CAIjC;AAED;;;;GAIG;AACH,wBAAgB,iBAAiB,IAAI,IAAI,CAIxC"}
package/dist/str.js CHANGED
@@ -1,53 +1,53 @@
1
- import { isArray as S, toLower as U, isString as z, isFunction as K, isNumber as j } from "@tolki/utils";
2
- import { title as I, upper as T } from "./convertcase/index.js";
3
- import { randomInt as O, randomString as D } from "./random/index.js";
1
+ import { isArray as S, toLower as M, isString as O, isFunction as D, isNumber as Q } from "@tolki/utils";
2
+ import { title as q, upper as B } from "./convertcase/index.js";
3
+ import { randomInt as W, randomString as V } from "./random/index.js";
4
4
  import { substr as x } from "./replacer/index.js";
5
- import { ltrim as q, rtrim as G, trim as Q } from "./trimmer/index.js";
6
- import { createUlidsNormally as V } from "./ulid/index.js";
7
- import { createUuidsNormally as X } from "./uuid/index.js";
5
+ import { ltrim as j, rtrim as G, trim as X } from "./trimmer/index.js";
6
+ import { createUlidsNormally as Y } from "./ulid/index.js";
7
+ import { createUuidsNormally as v } from "./uuid/index.js";
8
8
  const R = /* @__PURE__ */ new Map(), C = /* @__PURE__ */ new Map(), F = /* @__PURE__ */ new Map();
9
- let E = null;
10
- function B(t, e) {
9
+ let L = null;
10
+ function H(t, e) {
11
11
  if (e === "")
12
12
  return t;
13
13
  const n = String(e), r = t.indexOf(n);
14
14
  return r === -1 ? t : t.slice(r + n.length);
15
15
  }
16
- function wt(t, e) {
16
+ function $t(t, e) {
17
17
  if (e === "")
18
18
  return t;
19
19
  const n = t.lastIndexOf(String(e));
20
20
  return n === -1 ? t : t.slice(n + String(e).length);
21
21
  }
22
- function Y(t, e) {
22
+ function tt(t, e) {
23
23
  if (e === "")
24
24
  return t;
25
25
  const n = t.indexOf(String(e));
26
26
  return n === -1 ? t : t.slice(0, n);
27
27
  }
28
- function v(t, e) {
28
+ function et(t, e) {
29
29
  if (e === "")
30
30
  return t;
31
31
  const n = t.lastIndexOf(String(e));
32
32
  return n === -1 ? t : x(t, 0, n);
33
33
  }
34
- function St(t, e, n) {
35
- return e === "" || n === "" ? t : v(B(t, e), n);
34
+ function kt(t, e, n) {
35
+ return e === "" || n === "" ? t : et(H(t, e), n);
36
36
  }
37
- function xt(t, e, n) {
38
- return e === "" || n === "" ? t : Y(B(t, e), n);
37
+ function At(t, e, n) {
38
+ return e === "" || n === "" ? t : tt(H(t, e), n);
39
39
  }
40
- function $t(t) {
40
+ function bt(t) {
41
41
  if (C.has(t))
42
42
  return C.get(t);
43
- const e = ct(Z(t));
43
+ const e = ft(K(t));
44
44
  return C.set(t, e), e;
45
45
  }
46
- function At(t, e) {
46
+ function Et(t, e) {
47
47
  const n = t.length;
48
48
  return (e < 0 ? e < -n : e > n - 1) ? !1 : (e < 0 && (e += n), t.charAt(e));
49
49
  }
50
- function kt(t, e) {
50
+ function Lt(t, e) {
51
51
  for (const n of S(e) ? e : [e])
52
52
  if (n !== "" && t.startsWith(n)) {
53
53
  const r = [...t], s = [...n];
@@ -55,7 +55,7 @@ function kt(t, e) {
55
55
  }
56
56
  return t;
57
57
  }
58
- function bt(t, e) {
58
+ function Rt(t, e) {
59
59
  for (const n of S(e) ? e : [e])
60
60
  if (n !== "" && t.endsWith(n)) {
61
61
  const r = [...t], s = [...n];
@@ -63,7 +63,7 @@ function bt(t, e) {
63
63
  }
64
64
  return t;
65
65
  }
66
- function H(t, e, n = !1) {
66
+ function J(t, e, n = !1) {
67
67
  n && (t = t.toLowerCase());
68
68
  let r;
69
69
  typeof e == "string" ? r = [e] : r = Array.from(e);
@@ -72,33 +72,33 @@ function H(t, e, n = !1) {
72
72
  return !0;
73
73
  return !1;
74
74
  }
75
- function Lt(t, e = "", n = {}) {
76
- const { radius: r = 100, omission: s = "..." } = n, o = String(t ?? ""), c = e ?? "", i = ($) => $.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), l = new RegExp(`^(.*?)(${i(c)})(.*)$`, "iu").exec(o);
77
- if (!l)
75
+ function Ct(t, e = "", n = {}) {
76
+ const { radius: r = 100, omission: s = "..." } = n, o = String(t ?? ""), c = e ?? "", l = ($) => $.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), i = new RegExp(`^(.*?)(${l(c)})(.*)$`, "iu").exec(o);
77
+ if (!i)
78
78
  return null;
79
- const u = String(l[1]), a = String(l[2]), g = String(l[3]), p = q(u), m = Array.from(p).length, y = x(p, Math.max(m - r, 0), r);
80
- let w = q(y);
81
- w !== p && (w = s + w);
79
+ const m = String(i[1]), p = String(i[2]), g = String(i[3]), u = j(m), a = Array.from(u).length, y = x(u, Math.max(a - r, 0), r);
80
+ let w = j(y);
81
+ w !== u && (w = s + w);
82
82
  const h = G(g), d = x(h, 0, r);
83
- let A = G(d);
84
- return A !== h && (A = A + s), w + a + A;
83
+ let k = G(d);
84
+ return k !== h && (k = k + s), w + p + k;
85
85
  }
86
- function Et(t, e, n = !1) {
86
+ function Ft(t, e, n = !1) {
87
87
  let r = !1;
88
88
  for (const s of e)
89
- if (r = !0, !H(t, s, n))
89
+ if (r = !0, !J(t, s, n))
90
90
  return !1;
91
91
  return r;
92
92
  }
93
- function Rt(t, e, n = !1) {
94
- return !H(t, e, n);
93
+ function _t(t, e, n = !1) {
94
+ return !J(t, e, n);
95
95
  }
96
- function Ct(t, e = " ") {
96
+ function Nt(t, e = " ") {
97
97
  return S(e) ? (e.forEach((n) => {
98
98
  t = t.replace(new RegExp(`${n}+`, "g"), n);
99
99
  }), t) : t.replace(new RegExp(`${e}+`, "g"), e);
100
100
  }
101
- function W(t, e) {
101
+ function U(t, e) {
102
102
  if (t === null)
103
103
  return !1;
104
104
  t = String(t), S(e) ? e = Array.from(e) : e = [String(e)];
@@ -107,25 +107,25 @@ function W(t, e) {
107
107
  return !0;
108
108
  return !1;
109
109
  }
110
- function Ft(t, e) {
111
- return !W(t, e);
110
+ function zt(t, e) {
111
+ return !U(t, e);
112
112
  }
113
- function _t(t, e) {
113
+ function Ot(t, e) {
114
114
  const n = e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
115
115
  return t.replace(new RegExp(`(?:${n})+$`, "u"), "") + e;
116
116
  }
117
- function Nt(t, e, n = null) {
117
+ function Wt(t, e, n = null) {
118
118
  return e + t + (n ?? e);
119
119
  }
120
- function zt(t, e, n = null) {
121
- return M(t, e) && (t = x(t, _(e))), W(t, n ??= e) && (t = x(t, 0, -_(n))), t;
120
+ function Mt(t, e, n = null) {
121
+ return P(t, e) && (t = x(t, _(e))), U(t, n ??= e) && (t = x(t, 0, -_(n))), t;
122
122
  }
123
- function Ot(t, e, n = !1) {
123
+ function Ut(t, e, n = !1) {
124
124
  e = String(e);
125
125
  let r;
126
126
  typeof t == "string" ? r = [t] : r = Array.from(t);
127
127
  for (let s of r) {
128
- if (s = String(s), s === e || n && U(s) === U(e))
128
+ if (s = String(s), s === e || n && M(s) === M(e))
129
129
  return !0;
130
130
  s = s.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), s = s.replace(/\\\*/g, ".*");
131
131
  const o = n ? "iu" : "u";
@@ -134,14 +134,14 @@ function Ot(t, e, n = !1) {
134
134
  }
135
135
  return !1;
136
136
  }
137
- function Ut(t) {
137
+ function Pt(t) {
138
138
  for (let e = 0; e < t.length; e++)
139
139
  if (t.charCodeAt(e) > 127)
140
140
  return !1;
141
141
  return !0;
142
142
  }
143
- function Wt(t) {
144
- if (!z(t))
143
+ function It(t) {
144
+ if (!O(t))
145
145
  return !1;
146
146
  try {
147
147
  JSON.parse(t);
@@ -150,13 +150,13 @@ function Wt(t) {
150
150
  }
151
151
  return !0;
152
152
  }
153
- function Mt(t, e = []) {
154
- if (!z(t))
153
+ function qt(t, e = []) {
154
+ if (!O(t))
155
155
  return !1;
156
156
  const r = (e.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" : e.join("|")).split("|").map((o) => o.replace(/[.*+?^${}()|[\]\\]/g, "\\$&")).join("|");
157
157
  try {
158
- const o = new URL(t), c = o.protocol.replace(":", ""), i = o.hostname, l = t.slice(t.indexOf("://") + 3).startsWith("/"), u = i.length > 0 && !/^\.+$/.test(i) && !l, a = c === "file" && l;
159
- if (r.split("|").includes(c) && (u || a))
158
+ const o = new URL(t), c = o.protocol.replace(":", ""), l = o.hostname, i = t.slice(t.indexOf("://") + 3).startsWith("/"), m = l.length > 0 && !/^\.+$/.test(l) && !i, p = c === "file" && i;
159
+ if (r.split("|").includes(c) && (m || p))
160
160
  return !0;
161
161
  } catch {
162
162
  }
@@ -180,31 +180,31 @@ function Mt(t, e = []) {
180
180
  ].join("");
181
181
  return new RegExp(s, "iu").test(t);
182
182
  }
183
- function Pt(t) {
184
- return it(t, "-");
183
+ function jt(t) {
184
+ return lt(t, "-");
185
185
  }
186
186
  function _(t) {
187
187
  return t.length;
188
188
  }
189
- function It(t, e = 100, n = "...", r = !1) {
189
+ function Gt(t, e = 100, n = "...", r = !1) {
190
190
  if (t.length <= e)
191
191
  return t;
192
192
  if (!r)
193
193
  return t.slice(0, e).replace(/\s+$/, "") + n;
194
- t = ot(t).replace(/[\n\r]+/g, " ").trim();
194
+ t = ct(t).replace(/[\n\r]+/g, " ").trim();
195
195
  const s = t.slice(0, e).replace(/\s+$/, "");
196
196
  return t.substring(e, e + 1) === " " ? s + n : s.replace(/(.*)\s.*/, "$1") + n;
197
197
  }
198
- function J(t) {
199
- return U(t);
198
+ function Z(t) {
199
+ return M(t);
200
200
  }
201
- function qt(t, e = 100, n = "...") {
201
+ function Tt(t, e = 100, n = "...") {
202
202
  if (e <= 0)
203
203
  return t;
204
204
  const r = e, s = new RegExp(`^\\s*(?:\\S+\\s*){1,${r}}`, "u"), o = t.match(s);
205
205
  return !o || _(t) === _(o[0]) ? t : o[0].trimEnd() + n;
206
206
  }
207
- function Gt(t, e, n, r = null) {
207
+ function Bt(t, e, n, r = null) {
208
208
  if (e === "")
209
209
  return t;
210
210
  const s = t.length;
@@ -216,17 +216,17 @@ function Gt(t, e, n, r = null) {
216
216
  );
217
217
  if (c === "")
218
218
  return t;
219
- const i = t.slice(0, o), f = c.length, l = t.slice(o + f);
220
- return i + e.slice(0, 1).repeat(f) + l;
219
+ const l = t.slice(0, o), f = c.length, i = t.slice(o + f);
220
+ return l + e.slice(0, 1).repeat(f) + i;
221
221
  }
222
- function Tt(t, e) {
222
+ function Ht(t, e) {
223
223
  let n = "u", r = t;
224
224
  if (t.length >= 2 && t[0] === "/") {
225
225
  let s = -1;
226
226
  for (let o = t.length - 1; o > 0; o--)
227
227
  if (t[o] === "/") {
228
228
  let c = 0;
229
- for (let i = o - 1; i >= 0 && t[i] === "\\"; i--)
229
+ for (let l = o - 1; l >= 0 && t[l] === "\\"; l--)
230
230
  c++;
231
231
  if (c % 2 === 0) {
232
232
  s = o;
@@ -248,7 +248,7 @@ function Tt(t, e) {
248
248
  return "";
249
249
  }
250
250
  }
251
- function Bt(t, e) {
251
+ function Jt(t, e) {
252
252
  e = String(e);
253
253
  const n = typeof t == "string" ? [t] : Array.from(t);
254
254
  for (const r of n) {
@@ -256,21 +256,21 @@ function Bt(t, e) {
256
256
  let s = "u", o = r;
257
257
  if (r.length >= 2 && r[0] === "/") {
258
258
  let c = -1;
259
- for (let i = r.length - 1; i > 0; i--)
260
- if (r[i] === "/") {
259
+ for (let l = r.length - 1; l > 0; l--)
260
+ if (r[l] === "/") {
261
261
  let f = 0;
262
- for (let l = i - 1; l >= 0 && r[l] === "\\"; l--)
262
+ for (let i = l - 1; i >= 0 && r[i] === "\\"; i--)
263
263
  f++;
264
264
  if (f % 2 === 0) {
265
- c = i;
265
+ c = l;
266
266
  break;
267
267
  }
268
268
  }
269
269
  if (c > 0) {
270
270
  o = r.slice(1, c);
271
- const i = r.slice(c + 1);
272
- if (i)
273
- for (const f of i)
271
+ const l = r.slice(c + 1);
272
+ if (l)
273
+ for (const f of l)
274
274
  /[imsuy]/.test(f) && !s.includes(f) && (s += f);
275
275
  }
276
276
  }
@@ -282,16 +282,16 @@ function Bt(t, e) {
282
282
  }
283
283
  return !1;
284
284
  }
285
- function Ht(t, e) {
285
+ function Zt(t, e) {
286
286
  let n = "u", r = t;
287
287
  if (t.length >= 2 && t[0] === "/") {
288
288
  let o = -1;
289
289
  for (let c = t.length - 1; c > 0; c--)
290
290
  if (t[c] === "/") {
291
- let i = 0;
291
+ let l = 0;
292
292
  for (let f = c - 1; f >= 0 && t[f] === "\\"; f--)
293
- i++;
294
- if (i % 2 === 0) {
293
+ l++;
294
+ if (l % 2 === 0) {
295
295
  o = c;
296
296
  break;
297
297
  }
@@ -300,8 +300,8 @@ function Ht(t, e) {
300
300
  r = t.slice(1, o);
301
301
  const c = t.slice(o + 1);
302
302
  if (c)
303
- for (const i of c)
304
- /[gimsuy]/.test(i) && !n.includes(i) && (n += i);
303
+ for (const l of c)
304
+ /[gimsuy]/.test(l) && !n.includes(l) && (n += l);
305
305
  }
306
306
  }
307
307
  n.includes("g") || (n += "g");
@@ -316,24 +316,24 @@ function Ht(t, e) {
316
316
  }
317
317
  return s;
318
318
  }
319
- function Jt(t) {
319
+ function Kt(t) {
320
320
  return S(t) ? t.map((e) => e.replace(/[^0-9]/g, "")) : t.replace(/[^0-9]/g, "");
321
321
  }
322
- function Zt(t, e, n = " ") {
322
+ function Dt(t, e, n = " ") {
323
323
  const r = t.length;
324
324
  if (e <= r || n === "")
325
325
  return t;
326
326
  const s = e - r, o = Math.floor(s / 2), c = s - o;
327
327
  return N(n, o) + t + N(n, c);
328
328
  }
329
- function Kt(t, e, n = " ") {
329
+ function Qt(t, e, n = " ") {
330
330
  const r = t.length;
331
331
  if (e <= r || n === "")
332
332
  return t;
333
333
  const o = e - r;
334
334
  return N(n, o) + t;
335
335
  }
336
- function jt(t, e, n = " ") {
336
+ function Vt(t, e, n = " ") {
337
337
  const r = t.length;
338
338
  if (e <= r || n === "")
339
339
  return t;
@@ -346,8 +346,8 @@ function N(t, e) {
346
346
  const n = Math.ceil(e / t.length);
347
347
  return t.repeat(n).slice(0, e);
348
348
  }
349
- function Dt(t = 32, e = !0, n = !0, r = !0, s = !1) {
350
- const l = [
349
+ function Xt(t = 32, e = !0, n = !0, r = !0, s = !1) {
350
+ const i = [
351
351
  e ? [
352
352
  "a",
353
353
  "b",
@@ -432,26 +432,26 @@ function Dt(t = 32, e = !0, n = !0, r = !0, s = !1) {
432
432
  ";"
433
433
  ] : null,
434
434
  s ? [" "] : null
435
- ].filter((p) => S(p));
436
- if (l.length === 0 || t <= 0)
435
+ ].filter((u) => S(u));
436
+ if (i.length === 0 || t <= 0)
437
437
  return "";
438
- const u = [];
439
- for (const p of l) {
440
- const m = O(0, p.length - 1);
441
- u.push(p[m]);
438
+ const m = [];
439
+ for (const u of i) {
440
+ const a = W(0, u.length - 1);
441
+ m.push(u[a]);
442
442
  }
443
- const a = Math.max(0, t - u.length), g = l.flat();
444
- for (let p = 0; p < a; p++) {
445
- const m = O(0, g.length - 1);
446
- u.push(g[m]);
443
+ const p = Math.max(0, t - m.length), g = i.flat();
444
+ for (let u = 0; u < p; u++) {
445
+ const a = W(0, g.length - 1);
446
+ m.push(g[a]);
447
447
  }
448
- for (let p = u.length - 1; p > 0; p--) {
449
- const m = O(0, p), y = u[p];
450
- u[p] = u[m], u[m] = y;
448
+ for (let u = m.length - 1; u > 0; u--) {
449
+ const a = W(0, u), y = m[u];
450
+ m[u] = m[a], m[a] = y;
451
451
  }
452
- return u.join("");
452
+ return m.join("");
453
453
  }
454
- function Qt(t, e, n = 0) {
454
+ function Yt(t, e, n = 0) {
455
455
  if (e === "")
456
456
  return !1;
457
457
  const r = Array.from(t), s = Array.from(e);
@@ -459,41 +459,41 @@ function Qt(t, e, n = 0) {
459
459
  if (o < 0 && (o = 0), o >= r.length)
460
460
  return !1;
461
461
  const c = r.length - s.length;
462
- for (let i = o; i <= c; i++) {
462
+ for (let l = o; l <= c; l++) {
463
463
  let f = !0;
464
- for (let l = 0; l < s.length; l++)
465
- if (r[i + l] !== s[l]) {
464
+ for (let i = 0; i < s.length; i++)
465
+ if (r[l + i] !== s[i]) {
466
466
  f = !1;
467
467
  break;
468
468
  }
469
469
  if (f)
470
- return i;
470
+ return l;
471
471
  }
472
472
  return !1;
473
473
  }
474
- function tt(t = 16) {
475
- return (E ?? ((n) => D(n)))(t);
474
+ function nt(t = 16) {
475
+ return (L ?? ((n) => V(n)))(t);
476
476
  }
477
- function et(t) {
478
- E = t;
477
+ function rt(t) {
478
+ L = t;
479
479
  }
480
- function Vt(t, e) {
480
+ function vt(t, e) {
481
481
  let n = 0;
482
482
  const r = e ?? function(s) {
483
- const o = E;
484
- E = null;
485
- const c = tt(s);
486
- return E = o, n++, c;
483
+ const o = L;
484
+ L = null;
485
+ const c = nt(s);
486
+ return L = o, n++, c;
487
487
  };
488
- et((s) => n < t.length ? String(t[n++]) : r(s));
488
+ rt((s) => n < t.length ? String(t[n++]) : r(s));
489
489
  }
490
- function nt() {
491
- E = null;
490
+ function st() {
491
+ L = null;
492
492
  }
493
- function Xt(t, e) {
493
+ function te(t, e) {
494
494
  return e <= 0 ? "" : t.repeat(e);
495
495
  }
496
- function Yt(t, e, n) {
496
+ function ee(t, e, n) {
497
497
  let r;
498
498
  typeof e == "object" && !S(e) ? r = Object.values(e) : r = S(e) ? [...e] : Array.from(e);
499
499
  const s = n.split(t);
@@ -501,12 +501,12 @@ function Yt(t, e, n) {
501
501
  return n;
502
502
  let o = s[0];
503
503
  for (let c = 1; c < s.length; c++) {
504
- const i = r.length ? r.shift() : t;
505
- o += i + s[c];
504
+ const l = r.length ? r.shift() : t;
505
+ o += l + s[c];
506
506
  }
507
507
  return String(o);
508
508
  }
509
- function vt(t, e) {
509
+ function ne(t, e) {
510
510
  try {
511
511
  const n = String(t);
512
512
  if (n.length)
@@ -516,116 +516,116 @@ function vt(t, e) {
516
516
  return e;
517
517
  }
518
518
  }
519
- function te(t, e, n, r = !0) {
520
- const s = (l) => typeof l == "string" ? [l] : Array.from(l), o = s(t), c = s(e), i = (l) => l.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), f = (l) => o.reduce((u, a, g) => {
521
- if (a === "") return u;
522
- const p = c[g] ?? "";
519
+ function re(t, e, n, r = !0) {
520
+ const s = (i) => typeof i == "string" ? [i] : Array.from(i), o = s(t), c = s(e), l = (i) => i.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), f = (i) => o.reduce((m, p, g) => {
521
+ if (p === "") return m;
522
+ const u = c[g] ?? "";
523
523
  if (!r)
524
- return u.split(a).join(p);
525
- const m = new RegExp(i(a), "gi");
526
- return u.replace(m, () => p);
527
- }, l);
528
- return z(n) ? f(n) : Array.from(n).map(f);
524
+ return m.split(p).join(u);
525
+ const a = new RegExp(l(p), "gi");
526
+ return m.replace(a, () => u);
527
+ }, i);
528
+ return O(n) ? f(n) : Array.from(n).map(f);
529
529
  }
530
- function rt(t, e, n) {
530
+ function ot(t, e, n) {
531
531
  if (t = String(t), t === "")
532
532
  return n;
533
533
  const r = n.indexOf(t);
534
534
  return r !== -1 ? n.slice(0, r) + e + n.slice(r + t.length) : n;
535
535
  }
536
- function ee(t, e, n) {
537
- return t = String(t), t === "" ? n : M(n, t) ? rt(t, e, n) : n;
536
+ function se(t, e, n) {
537
+ return t = String(t), t === "" ? n : P(n, t) ? ot(t, e, n) : n;
538
538
  }
539
- function st(t, e, n) {
539
+ function it(t, e, n) {
540
540
  if (t = String(t), t === "")
541
541
  return n;
542
542
  const r = n.lastIndexOf(t);
543
543
  return r !== -1 ? n.slice(0, r) + e + n.slice(r + t.length) : n;
544
544
  }
545
- function ne(t, e, n) {
546
- return t = String(t), t === "" ? n : W(n, t) ? st(t, e, n) : n;
545
+ function oe(t, e, n) {
546
+ return t = String(t), t === "" ? n : U(n, t) ? it(t, e, n) : n;
547
547
  }
548
- function re(t, e, n, r = -1) {
549
- const s = (a) => S(a) ? a : [a], o = s(t);
550
- function c(a) {
548
+ function ie(t, e, n, r = -1) {
549
+ const s = (p) => S(p) ? p : [p], o = s(t);
550
+ function c(p) {
551
551
  try {
552
- if (a instanceof RegExp) {
553
- let m = a.flags;
554
- return m.includes("g") || (m += "g"), m.includes("u") || (m += "u"), new RegExp(a.source, m);
552
+ if (p instanceof RegExp) {
553
+ let a = p.flags;
554
+ return a.includes("g") || (a += "g"), a.includes("u") || (a += "u"), new RegExp(p.source, a);
555
555
  }
556
- let g = a, p = "gu";
557
- if (a.length >= 2 && a[0] === "/") {
558
- let m = -1;
559
- for (let y = a.length - 1; y > 0; y--)
560
- if (a[y] === "/") {
556
+ let g = p, u = "gu";
557
+ if (p.length >= 2 && p[0] === "/") {
558
+ let a = -1;
559
+ for (let y = p.length - 1; y > 0; y--)
560
+ if (p[y] === "/") {
561
561
  let w = 0;
562
- for (let h = y - 1; h >= 0 && a[h] === "\\"; h--)
562
+ for (let h = y - 1; h >= 0 && p[h] === "\\"; h--)
563
563
  w++;
564
564
  if (w % 2 === 0) {
565
- m = y;
565
+ a = y;
566
566
  break;
567
567
  }
568
568
  }
569
- if (m > 1) {
570
- g = a.slice(1, m);
571
- const y = a.slice(m + 1);
569
+ if (a > 1) {
570
+ g = p.slice(1, a);
571
+ const y = p.slice(a + 1);
572
572
  if (y)
573
573
  for (const w of y)
574
- /[imsuy]/.test(w) && !p.includes(w) && (p += w);
574
+ /[imsuy]/.test(w) && !u.includes(w) && (u += w);
575
575
  }
576
576
  }
577
577
  return new RegExp(
578
578
  g,
579
- Array.from(new Set(p.split(""))).join("")
579
+ Array.from(new Set(u.split(""))).join("")
580
580
  );
581
581
  } catch {
582
582
  return null;
583
583
  }
584
584
  }
585
- const i = [];
586
- for (const a of o) {
587
- const g = c(a);
585
+ const l = [];
586
+ for (const p of o) {
587
+ const g = c(p);
588
588
  if (!g) return null;
589
- i.push(g);
589
+ l.push(g);
590
590
  }
591
- const f = K(e), l = f ? [] : s(e), u = (a) => {
592
- let g = a;
593
- for (let p = 0; p < i.length; p++) {
594
- const m = i[p];
591
+ const f = D(e), i = f ? [] : s(e), m = (p) => {
592
+ let g = p;
593
+ for (let u = 0; u < l.length; u++) {
594
+ const a = l[u];
595
595
  if (f) {
596
596
  let y = 0;
597
597
  const w = e;
598
598
  g = g.replace(
599
- m,
599
+ a,
600
600
  (h, ...d) => {
601
601
  if (r >= 0 && y >= r) return h;
602
602
  y++;
603
603
  const b = d.length > 0 && d[d.length - 1] !== null && typeof d[d.length - 1] == "object" ? d.length - 3 : d.length - 2, $ = [];
604
- for (let k = 0; k < b; k++)
605
- $.push(d[k]);
606
- const L = [h, ...$];
607
- return w(L);
604
+ for (let A = 0; A < b; A++)
605
+ $.push(d[A]);
606
+ const E = [h, ...$];
607
+ return w(E);
608
608
  }
609
609
  );
610
610
  } else {
611
- const y = l[p] ?? (l.length === 1 ? l[0] : "");
611
+ const y = i[u] ?? (i.length === 1 ? i[0] : "");
612
612
  if (r < 0)
613
- g = g.replace(m, (w, ...h) => {
614
- const A = h.length > 0 && h[h.length - 1] !== null && typeof h[h.length - 1] == "object" ? h.length - 3 : h.length - 2, b = h.slice(0, A).map(($) => String($));
615
- return y.replace(/\$(\d{1,2})/g, ($, L) => {
616
- const k = parseInt(L, 10);
617
- return (b[k - 1] ?? "").toUpperCase();
613
+ g = g.replace(a, (w, ...h) => {
614
+ const k = h.length > 0 && h[h.length - 1] !== null && typeof h[h.length - 1] == "object" ? h.length - 3 : h.length - 2, b = h.slice(0, k).map(($) => String($));
615
+ return y.replace(/\$(\d{1,2})/g, ($, E) => {
616
+ const A = parseInt(E, 10);
617
+ return (b[A - 1] ?? "").toUpperCase();
618
618
  });
619
619
  });
620
620
  else {
621
621
  let w = 0;
622
- g = g.replace(m, (h, ...d) => {
622
+ g = g.replace(a, (h, ...d) => {
623
623
  if (w >= r) return h;
624
624
  w++;
625
- const b = d.length > 0 && d[d.length - 1] !== null && typeof d[d.length - 1] == "object" ? d.length - 3 : d.length - 2, $ = d.slice(0, b).map((L) => String(L));
626
- return y.replace(/\$(\d{1,2})/g, (L, k) => {
627
- const P = parseInt(k, 10);
628
- return ($[P - 1] ?? "").toUpperCase();
625
+ const b = d.length > 0 && d[d.length - 1] !== null && typeof d[d.length - 1] == "object" ? d.length - 3 : d.length - 2, $ = d.slice(0, b).map((E) => String(E));
626
+ return y.replace(/\$(\d{1,2})/g, (E, A) => {
627
+ const I = parseInt(A, 10);
628
+ return ($[I - 1] ?? "").toUpperCase();
629
629
  });
630
630
  });
631
631
  }
@@ -633,9 +633,9 @@ function re(t, e, n, r = -1) {
633
633
  }
634
634
  return g;
635
635
  };
636
- return S(n) ? n.map(u) : u(n);
636
+ return S(n) ? n.map(m) : m(n);
637
637
  }
638
- function ot(t) {
638
+ function ct(t) {
639
639
  let e = "", n = !1;
640
640
  for (let r = 0; r < t.length; r++) {
641
641
  const s = t[r];
@@ -643,40 +643,40 @@ function ot(t) {
643
643
  }
644
644
  return e;
645
645
  }
646
- function se(t, e, n = !0) {
646
+ function ce(t, e, n = !0) {
647
647
  const r = typeof t == "string" ? [t] : Array.from(t), s = (c) => c.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), o = (c) => {
648
- let i = c;
648
+ let l = c;
649
649
  for (const f of r)
650
650
  if (f !== "")
651
651
  if (n)
652
- i = i.split(f).join("");
652
+ l = l.split(f).join("");
653
653
  else {
654
- const l = new RegExp(s(f), "gi");
655
- i = i.replace(l, "");
654
+ const i = new RegExp(s(f), "gi");
655
+ l = l.replace(i, "");
656
656
  }
657
- return i;
657
+ return l;
658
658
  };
659
659
  return typeof e == "string" ? o(e) : Array.from(e, (c) => o(String(c)));
660
660
  }
661
- function oe(t) {
661
+ function le(t) {
662
662
  return Array.from(t).reverse().join("");
663
663
  }
664
- function ie(t, e) {
664
+ function fe(t, e) {
665
665
  const n = e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
666
666
  return e + t.replace(new RegExp(`^(?:${n})+`, "u"), "");
667
667
  }
668
- function ce(t) {
668
+ function ae(t) {
669
669
  const e = String(t).trim();
670
670
  if (e === "")
671
671
  return "";
672
672
  let n = e.split(/\s+/u);
673
- return n.length > 1 ? n = n.map((s) => I(s)) : n = lt(n.join("_")).map((s) => I(s)), n.join("_").replace(/[-_ ]+/gu, "_").split("_").filter((s) => s.length > 0).join(" ");
673
+ return n.length > 1 ? n = n.map((s) => q(s)) : n = at(n.join("_")).map((s) => q(s)), n.join("_").replace(/[-_ ]+/gu, "_").split("_").filter((s) => s.length > 0).join(" ");
674
674
  }
675
- function le(t, e = !1) {
675
+ function ue(t, e = !1) {
676
676
  const r = t.split(/\s+/u).filter((s) => s.length > 0).map((s) => [...s][0]).join("");
677
- return e ? T(r) : r;
677
+ return e ? B(r) : r;
678
678
  }
679
- function fe(t) {
679
+ function pe(t) {
680
680
  if (t.trim() === "")
681
681
  return t;
682
682
  const e = /* @__PURE__ */ new Set([
@@ -717,36 +717,36 @@ function fe(t) {
717
717
  "Ć "
718
718
  ]), n = /* @__PURE__ */ new Set([".", "!", "?", ":", "—", ","]), r = t.split(/\s+/u), s = (o) => {
719
719
  if (!o) return o;
720
- const c = Array.from(o), i = c[0].toLocaleUpperCase(), f = c.slice(1).join("");
721
- return i + f;
720
+ const c = Array.from(o), l = c[0].toLocaleUpperCase(), f = c.slice(1).join("");
721
+ return l + f;
722
722
  };
723
723
  for (let o = 0; o < r.length; o++) {
724
724
  const c = r[o].toLocaleLowerCase();
725
725
  if (c.includes("-")) {
726
- const f = c.split("-").map((l) => e.has(l) && l.length <= 3 ? l : s(l));
726
+ const f = c.split("-").map((i) => e.has(i) && i.length <= 3 ? i : s(i));
727
727
  r[o] = f.join("-");
728
728
  } else {
729
- const i = o > 0 ? r[o - 1] : "", f = i ? Array.from(i).slice(-1)[0] : void 0, l = o === 0 || f !== void 0 && n.has(f);
730
- e.has(c) && c.length <= 3 && !l ? r[o] = c : r[o] = s(c);
729
+ const l = o > 0 ? r[o - 1] : "", f = l ? Array.from(l).slice(-1)[0] : void 0, i = o === 0 || f !== void 0 && n.has(f);
730
+ e.has(c) && c.length <= 3 && !i ? r[o] = c : r[o] = s(c);
731
731
  }
732
732
  }
733
733
  return r.join(" ");
734
734
  }
735
- function it(t, e = "_") {
735
+ function lt(t, e = "_") {
736
736
  const r = `${t}|${e}`;
737
737
  if (R.has(r))
738
738
  return R.get(r);
739
739
  let s = t;
740
- return /^[a-z]+$/.test(t) || (s = ft(t).replace(/\s+/gu, ""), s = s.replace(/(.)(?=[A-Z])/g, `$1${e}`), s = J(s)), R.set(r, s), s;
740
+ return /^[a-z]+$/.test(t) || (s = ut(t).replace(/\s+/gu, ""), s = s.replace(/(.)(?=[A-Z])/g, `$1${e}`), s = Z(s)), R.set(r, s), s;
741
741
  }
742
- function ae(t) {
743
- return Q(t).replace(/[\s\u3164\u1160]+/gu, " ");
742
+ function me(t) {
743
+ return X(t).replace(/[\s\u3164\u1160]+/gu, " ");
744
744
  }
745
- function M(t, e) {
745
+ function P(t, e) {
746
746
  if (t == null || e == null)
747
747
  return !1;
748
748
  let n;
749
- z(e) || j(e) ? n = [e] : Symbol.iterator in Object(e) ? n = Array.from(e) : n = [e];
749
+ O(e) || Q(e) ? n = [e] : Symbol.iterator in Object(e) ? n = Array.from(e) : n = [e];
750
750
  const r = String(t);
751
751
  for (const s of n) {
752
752
  if (s == null)
@@ -757,29 +757,29 @@ function M(t, e) {
757
757
  }
758
758
  return !1;
759
759
  }
760
- function ue(t, e) {
761
- return !M(t, e);
760
+ function ge(t, e) {
761
+ return !P(t, e);
762
762
  }
763
- function Z(t, e = !1) {
763
+ function K(t, e = !1) {
764
764
  let n = t;
765
765
  e && (n = t.replace(
766
766
  /(^|[-_ \s])([A-Z]+)(?=[-_ \s]|$)/gu,
767
- (f, l, u) => l + u.toLowerCase()
767
+ (f, i, m) => i + m.toLowerCase()
768
768
  ));
769
769
  const r = n;
770
770
  if (F.has(r))
771
771
  return F.get(r);
772
772
  const s = String(n).replace(/[-_]+/g, " "), o = s.trim() === "" ? [] : s.split(/\s+/u), c = (f) => {
773
773
  if (!f) return f;
774
- const l = Array.from(f), u = l[0].toUpperCase(), a = l.slice(1).join("");
775
- return u + a;
776
- }, i = o.map(c).join("");
777
- return F.set(r, i), i;
774
+ const i = Array.from(f), m = i[0].toUpperCase(), p = i.slice(1).join("");
775
+ return m + p;
776
+ }, l = o.map(c).join("");
777
+ return F.set(r, l), l;
778
778
  }
779
- function pe(t, e = !1) {
780
- return Z(t, e);
779
+ function he(t, e = !1) {
780
+ return K(t, e);
781
781
  }
782
- function ge(t, e) {
782
+ function de(t, e) {
783
783
  if (!t || Object.keys(t).length === 0)
784
784
  return e;
785
785
  const n = Object.keys(t).filter((o) => o !== "");
@@ -789,169 +789,194 @@ function ge(t, e) {
789
789
  const r = (o) => o.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), s = new RegExp(n.map(r).join("|"), "gu");
790
790
  return e.replace(s, (o) => t[o]);
791
791
  }
792
- function me(t, e) {
792
+ function ye(t, e) {
793
793
  return e < 0 ? x(t, e) : x(t, 0, e);
794
794
  }
795
- function ct(t) {
796
- return J(x(t, 0, 1)) + x(t, 1);
795
+ function ft(t) {
796
+ return Z(x(t, 0, 1)) + x(t, 1);
797
797
  }
798
- function he(t) {
799
- return T(x(t, 0, 1)) + x(t, 1);
798
+ function we(t) {
799
+ return B(x(t, 0, 1)) + x(t, 1);
800
800
  }
801
- function lt(t) {
801
+ function at(t) {
802
802
  return t.split(new RegExp("(?=\\p{Lu})", "u")).filter(Boolean);
803
803
  }
804
- function ft(t, e = ` \r
804
+ function ut(t, e = ` \r
805
805
  \f\v`) {
806
- const n = S(e) ? e.join("") : e, r = (i) => i.replace(/[-\\^$*+?.()|[\]{}]/g, "\\$&"), s = n.length ? r(n) : "", o = s.length ? `(?:\\s|[${s}])` : "\\s", c = new RegExp(`(^|${o})(\\p{Ll})`, "gu");
807
- return t.replace(c, (i, f, l) => f + l.toUpperCase());
806
+ const n = S(e) ? e.join("") : e, r = (l) => l.replace(/[-\\^$*+?.()|[\]{}]/g, "\\$&"), s = n.length ? r(n) : "", o = s.length ? `(?:\\s|[${s}])` : "\\s", c = new RegExp(`(^|${o})(\\p{Ll})`, "gu");
807
+ return t.replace(c, (l, f, i) => f + i.toUpperCase());
808
808
  }
809
- function de(t, e = null) {
809
+ function Se(t, e = null) {
810
810
  const n = e && e.length > 0 ? e.replace(/[-\\^$*+?.()|[\]{}]/g, "\\$&") : "", r = n.length > 0 ? new RegExp(`[\\p{L}\\p{N}${n}]+`, "gu") : /[\p{L}\p{N}]+/gu, s = t.match(r);
811
811
  return s ? s.length : 0;
812
812
  }
813
- function ye(t, e = 75, n = `
813
+ function z(t) {
814
+ return t.trim() === "";
815
+ }
816
+ function T(t, e, n) {
817
+ let r = e;
818
+ for (; r < n && z(t[r]); )
819
+ r++;
820
+ return r;
821
+ }
822
+ function pt(t, e, n) {
823
+ let r = n;
824
+ for (; r > e && z(t[r - 1]); )
825
+ r--;
826
+ return r;
827
+ }
828
+ function xe(t, e = 75, n = `
814
829
  `, r = !1) {
815
830
  if (t.length === 0 || e < 1 || n === "")
816
831
  return t;
817
832
  const s = t.split(/\r\n|\n|\r/), o = [];
818
833
  for (const c of s) {
819
- let i = c;
820
- if (i.length === 0) {
834
+ const l = [...c], f = l.length;
835
+ if (f === 0) {
821
836
  o.push("");
822
837
  continue;
823
838
  }
839
+ let i = 0;
824
840
  if (r) {
825
- for (; i.length > 0 && !(/^\s/u.test(i) && (i = i.replace(/^\s+/u, ""), i.length === 0)); ) {
826
- if (i.length <= e) {
827
- o.push(i);
841
+ for (; i < f && (i = T(l, i, f), i !== f); ) {
842
+ if (f - i <= e) {
843
+ o.push(l.slice(i, f).join(""));
828
844
  break;
829
845
  }
830
- let f = i.slice(0, e);
831
- f = f.replace(/\s+$/u, ""), o.push(f), i = i.slice(e).replace(/^\s+/u, "");
846
+ const m = pt(
847
+ l,
848
+ i,
849
+ i + e
850
+ );
851
+ o.push(l.slice(i, m).join("")), i += e;
832
852
  }
833
853
  continue;
834
854
  }
835
- for (; i.length > e; ) {
836
- const f = i.replace(/^\s+/u, "");
837
- if (f.length !== i.length && (i = f, i.length <= e))
855
+ for (; f - i > e; ) {
856
+ const m = T(l, i, f);
857
+ if (m !== i && (i = m, f - i <= e))
838
858
  break;
839
- const l = i.slice(0, e + 1);
840
- let u = -1;
841
- for (let g = l.length - 1; g >= 0; g--)
842
- if (/\s/u.test(l[g])) {
843
- u = g;
859
+ const p = Math.min(f, i + e + 1);
860
+ let g = -1;
861
+ for (let a = p - 1; a >= i; a--)
862
+ if (z(l[a])) {
863
+ g = a;
844
864
  break;
845
865
  }
846
- if (u > 0) {
847
- o.push(i.slice(0, u)), i = i.slice(u + 1);
866
+ if (g > i) {
867
+ o.push(l.slice(i, g).join("")), i = g + 1;
848
868
  continue;
849
869
  }
850
- const a = i.search(/\s/u);
851
- if (a >= 0) {
852
- o.push(i.slice(0, a)), i = i.slice(a + 1);
870
+ let u = -1;
871
+ for (let a = i; a < f; a++)
872
+ if (z(l[a])) {
873
+ u = a;
874
+ break;
875
+ }
876
+ if (u >= 0) {
877
+ o.push(l.slice(i, u).join("")), i = u + 1;
853
878
  continue;
854
879
  }
855
- o.push(i), i = "";
880
+ o.push(l.slice(i, f).join("")), i = f;
856
881
  break;
857
882
  }
858
- i.length > 0 && o.push(i);
883
+ f - i > 0 && o.push(l.slice(i, f).join(""));
859
884
  }
860
885
  return o.join(n);
861
886
  }
862
- function we() {
887
+ function $e() {
863
888
  return R.size;
864
889
  }
865
- function Se() {
890
+ function ke() {
866
891
  return C.size;
867
892
  }
868
- function xe() {
893
+ function Ae() {
869
894
  return F.size;
870
895
  }
871
- function $e() {
896
+ function be() {
872
897
  R.clear(), C.clear(), F.clear();
873
898
  }
874
- function Ae() {
875
- nt(), V(), X();
899
+ function Ee() {
900
+ st(), Y(), v();
876
901
  }
877
902
  export {
878
- B as after,
879
- wt as afterLast,
880
- fe as apa,
881
- Y as before,
882
- v as beforeLast,
883
- St as between,
884
- xt as betweenFirst,
885
- $t as camel,
886
- Se as camelCacheSize,
887
- At as charAt,
888
- bt as chopEnd,
889
- kt as chopStart,
890
- H as contains,
891
- Et as containsAll,
892
- nt as createRandomStringsNormally,
893
- et as createRandomStringsUsing,
894
- Vt as createRandomStringsUsingSequence,
895
- Ct as deduplicate,
896
- Rt as doesntContain,
897
- Ft as doesntEndWith,
898
- ue as doesntStartWith,
899
- W as endsWith,
900
- Lt as excerpt,
901
- _t as finish,
902
- $e as flushCache,
903
- ce as headline,
904
- le as initials,
905
- Ot as is,
906
- Ut as isAscii,
907
- Wt as isJson,
908
- Bt as isMatch,
909
- Mt as isUrl,
910
- Pt as kebab,
911
- ct as lcfirst,
903
+ H as after,
904
+ $t as afterLast,
905
+ pe as apa,
906
+ tt as before,
907
+ et as beforeLast,
908
+ kt as between,
909
+ At as betweenFirst,
910
+ bt as camel,
911
+ ke as camelCacheSize,
912
+ Et as charAt,
913
+ Rt as chopEnd,
914
+ Lt as chopStart,
915
+ J as contains,
916
+ Ft as containsAll,
917
+ st as createRandomStringsNormally,
918
+ rt as createRandomStringsUsing,
919
+ vt as createRandomStringsUsingSequence,
920
+ Nt as deduplicate,
921
+ _t as doesntContain,
922
+ zt as doesntEndWith,
923
+ ge as doesntStartWith,
924
+ U as endsWith,
925
+ Ct as excerpt,
926
+ Ot as finish,
927
+ be as flushCache,
928
+ ae as headline,
929
+ ue as initials,
930
+ Ut as is,
931
+ Pt as isAscii,
932
+ It as isJson,
933
+ Jt as isMatch,
934
+ qt as isUrl,
935
+ jt as kebab,
936
+ ft as lcfirst,
912
937
  _ as length,
913
- It as limit,
914
- J as lower,
938
+ Gt as limit,
939
+ Z as lower,
915
940
  N as makePad,
916
- Gt as mask,
917
- Tt as match,
918
- Ht as matchAll,
919
- Jt as numbers,
920
- Zt as padBoth,
921
- Kt as padLeft,
922
- jt as padRight,
923
- pe as pascal,
924
- Dt as password,
925
- Qt as position,
926
- tt as random,
927
- se as remove,
928
- Xt as repeat,
929
- te as replace,
930
- Yt as replaceArray,
931
- ne as replaceEnd,
932
- rt as replaceFirst,
933
- st as replaceLast,
934
- re as replaceMatches,
935
- ee as replaceStart,
936
- Ae as resetFactoryState,
937
- oe as reverse,
938
- it as snake,
939
- we as snakeCacheSize,
940
- ae as squish,
941
- ie as start,
942
- M as startsWith,
943
- ot as stripTags,
944
- Z as studly,
945
- xe as studlyCacheSize,
946
- ge as swap,
947
- me as take,
948
- vt as toStringOr,
949
- he as ucfirst,
950
- lt as ucsplit,
951
- ft as ucwords,
952
- zt as unwrap,
953
- de as wordCount,
954
- ye as wordWrap,
955
- qt as words,
956
- Nt as wrap
941
+ Bt as mask,
942
+ Ht as match,
943
+ Zt as matchAll,
944
+ Kt as numbers,
945
+ Dt as padBoth,
946
+ Qt as padLeft,
947
+ Vt as padRight,
948
+ he as pascal,
949
+ Xt as password,
950
+ Yt as position,
951
+ nt as random,
952
+ ce as remove,
953
+ te as repeat,
954
+ re as replace,
955
+ ee as replaceArray,
956
+ oe as replaceEnd,
957
+ ot as replaceFirst,
958
+ it as replaceLast,
959
+ ie as replaceMatches,
960
+ se as replaceStart,
961
+ Ee as resetFactoryState,
962
+ le as reverse,
963
+ lt as snake,
964
+ $e as snakeCacheSize,
965
+ me as squish,
966
+ fe as start,
967
+ P as startsWith,
968
+ ct as stripTags,
969
+ K as studly,
970
+ Ae as studlyCacheSize,
971
+ de as swap,
972
+ ye as take,
973
+ ne as toStringOr,
974
+ we as ucfirst,
975
+ at as ucsplit,
976
+ ut as ucwords,
977
+ Mt as unwrap,
978
+ Se as wordCount,
979
+ xe as wordWrap,
980
+ Tt as words,
981
+ Wt as wrap
957
982
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tolki/str",
3
- "version": "1.2.1",
3
+ "version": "1.2.2",
4
4
  "description": "Utilities for working with strings similar to Laravel's Str & Stringable classes.",
5
5
  "author": "Abraham Arango <https://github.com/abetwothree>",
6
6
  "license": "MIT",
@@ -36,8 +36,8 @@
36
36
  "transliteration": "^2.6.0",
37
37
  "ulid": "^2.4.0",
38
38
  "uuid": "^11.1.0",
39
- "@tolki/num": "^2.2.1",
40
- "@tolki/utils": "^1.0.2"
39
+ "@tolki/num": "^2.2.2",
40
+ "@tolki/utils": "^1.1.0"
41
41
  },
42
42
  "files": [
43
43
  "dist"