deverything 0.35.0 → 0.38.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 +17 -4
- package/dist/index.d.ts +36 -7
- package/dist/index.global.js +129 -122
- package/dist/index.global.js.map +1 -1
- package/dist/index.js +129 -122
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -73,7 +73,10 @@ Contributions always welcome!
|
|
|
73
73
|
- `getKeys()` get the keys of an object, includes symbols
|
|
74
74
|
- `getUrlSearchParam()`
|
|
75
75
|
- `getUrlSearchParams()`
|
|
76
|
+
- `incrementalId()` autoincremental SQL-like, process-unique numeric id
|
|
77
|
+
- `keysLength()`
|
|
76
78
|
- `last()` get the last element of an array
|
|
79
|
+
- `lastIndex()` get the last index of an array
|
|
77
80
|
- ⭐ `merge()` deep merge objects
|
|
78
81
|
- `moveToFirst()` move array element to first
|
|
79
82
|
- `moveToIndex()` move array element to desired index
|
|
@@ -94,6 +97,7 @@ Contributions always welcome!
|
|
|
94
97
|
### Formatters
|
|
95
98
|
|
|
96
99
|
- `formatNumber()` 1000 => "1,000" or "1K"
|
|
100
|
+
- `stringToUnicode()` "hello" => "\u0068\u0065\u006c\u006c\u006f"
|
|
97
101
|
|
|
98
102
|
### Random data generators
|
|
99
103
|
|
|
@@ -101,7 +105,7 @@ These functions are optimized for low entropy random data generation useful for
|
|
|
101
105
|
|
|
102
106
|
- `randomAddress()`
|
|
103
107
|
- `randomAlphaNumericCode()`
|
|
104
|
-
- ⭐ `randomArrayItem()`
|
|
108
|
+
- ⭐ `randomArrayItem()` now supporting non-uniform distribution
|
|
105
109
|
- `randomBankAccount()`
|
|
106
110
|
- `randomBool()`
|
|
107
111
|
- `randomChar()`
|
|
@@ -136,9 +140,9 @@ These functions are optimized for low entropy random data generation useful for
|
|
|
136
140
|
- `randomLastName()`
|
|
137
141
|
- `randomFullName()`
|
|
138
142
|
- `randomNumericCode()`
|
|
139
|
-
- `randomNumericId()` autoincremental process-unique id
|
|
140
143
|
- `randomParagraph()`
|
|
141
144
|
- `randomPassword()`
|
|
145
|
+
- `randomPath()` /path/to/something
|
|
142
146
|
- `randomPhoneNumber()`
|
|
143
147
|
- `randomString()`
|
|
144
148
|
- `randomUUID()` lightweight uuid generation, passing UUID validation
|
|
@@ -150,7 +154,7 @@ Checks are functions that throw an error, if the validation fails
|
|
|
150
154
|
|
|
151
155
|
- ⭐ `checkEnvVars()` Make sure env vars are set per-environment
|
|
152
156
|
|
|
153
|
-
### TypeScript Helpers
|
|
157
|
+
### TypeScript Helpers & Generics
|
|
154
158
|
|
|
155
159
|
- `Coords`
|
|
156
160
|
- `DateLike`
|
|
@@ -161,10 +165,19 @@ Checks are functions that throw an error, if the validation fails
|
|
|
161
165
|
- `MaybePromiseOrValueArray<>`
|
|
162
166
|
- `NonUndefined`
|
|
163
167
|
- `ObjectKey<>`
|
|
168
|
+
- `ObjectKeys<>`
|
|
164
169
|
- `ObjectValue<>`
|
|
165
|
-
- `
|
|
170
|
+
- `ObjectValues<>`
|
|
171
|
+
- `ObjectEntries<>`
|
|
172
|
+
- ⭐ `PlainObject` use this instead of `Record<,>` or `extends object`, also makes sure it's not an array
|
|
166
173
|
- `Point`
|
|
167
174
|
- `PrismaSelect<>`
|
|
175
|
+
- `HashMap<>`
|
|
176
|
+
- `HashMapKey`
|
|
177
|
+
- `NumberMap`
|
|
178
|
+
- `StringMap`
|
|
179
|
+
- `BoolMap`
|
|
180
|
+
- `TrueMap`
|
|
168
181
|
|
|
169
182
|
## Development
|
|
170
183
|
|
package/dist/index.d.ts
CHANGED
|
@@ -78,6 +78,13 @@ type Dimensions = {
|
|
|
78
78
|
height: number;
|
|
79
79
|
};
|
|
80
80
|
|
|
81
|
+
type HashMapKey = string | number | symbol;
|
|
82
|
+
type HashMap<T> = Record<HashMapKey, T>;
|
|
83
|
+
type NumberMap = Record<HashMapKey, number>;
|
|
84
|
+
type StringMap = Record<HashMapKey, string>;
|
|
85
|
+
type BoolMap = Record<HashMapKey, boolean>;
|
|
86
|
+
type TrueMap = Record<HashMapKey, true>;
|
|
87
|
+
|
|
81
88
|
type Matrix<T> = T[][];
|
|
82
89
|
|
|
83
90
|
type Maybe<T> = T | null | undefined;
|
|
@@ -87,10 +94,13 @@ type MaybePromiseOrValueArray<T> = MaybePromiseOrValue<T>[];
|
|
|
87
94
|
|
|
88
95
|
type NonUndefined<T> = T extends undefined ? never : T;
|
|
89
96
|
|
|
90
|
-
type ObjectValue<T> = T[keyof T];
|
|
91
|
-
type ObjectValues<T> = ObjectValue<T>[];
|
|
92
97
|
type ObjectKey<T> = keyof T;
|
|
93
98
|
type ObjectKeys<T> = ObjectKey<T>[];
|
|
99
|
+
type ObjectValue<T> = T[keyof T];
|
|
100
|
+
type ObjectValues<T> = ObjectValue<T>[];
|
|
101
|
+
type ObjectEntries<T> = {
|
|
102
|
+
[K in keyof T]: [K, T[K]];
|
|
103
|
+
}[keyof T][];
|
|
94
104
|
|
|
95
105
|
type PlainObject = Record<string | symbol, any> & {
|
|
96
106
|
length?: never;
|
|
@@ -114,7 +124,13 @@ declare const getUrlSearchParam: (urlString: Maybe<string>, param: string) => st
|
|
|
114
124
|
|
|
115
125
|
declare const getUrlSearchParams: (urlString: Maybe<string>) => Record<string, string>;
|
|
116
126
|
|
|
117
|
-
declare const
|
|
127
|
+
declare const incrementalId: () => number;
|
|
128
|
+
|
|
129
|
+
declare const keysLength: <T extends PlainObject>(obj: T) => number;
|
|
130
|
+
|
|
131
|
+
declare const last: <T>(arr: T[]) => T;
|
|
132
|
+
|
|
133
|
+
declare const lastIndex: (array: any[]) => number;
|
|
118
134
|
|
|
119
135
|
/**
|
|
120
136
|
* @description Simple merge function that merges two objects, arrays get overwritten, no options
|
|
@@ -188,7 +204,7 @@ declare const multiply: (numbers: number[]) => number;
|
|
|
188
204
|
|
|
189
205
|
declare const sum: (numbers: number[]) => number;
|
|
190
206
|
|
|
191
|
-
type
|
|
207
|
+
type RandomAddress = {
|
|
192
208
|
city: string;
|
|
193
209
|
country: string;
|
|
194
210
|
countryCode: string;
|
|
@@ -199,7 +215,7 @@ type Address = {
|
|
|
199
215
|
zip: string;
|
|
200
216
|
};
|
|
201
217
|
|
|
202
|
-
declare const randomAddress: () =>
|
|
218
|
+
declare const randomAddress: () => RandomAddress;
|
|
203
219
|
|
|
204
220
|
/**
|
|
205
221
|
* Generates a random alphanumeric code that can be used for verification codes, etc.
|
|
@@ -213,7 +229,9 @@ declare const randomAlphaNumericCode: ({ length, }?: {
|
|
|
213
229
|
length?: number | undefined;
|
|
214
230
|
}) => string;
|
|
215
231
|
|
|
216
|
-
declare const randomArrayItem: <T>(array: T[]
|
|
232
|
+
declare const randomArrayItem: <T>(array: T[], { weights }?: {
|
|
233
|
+
weights?: number[] | undefined;
|
|
234
|
+
}) => T;
|
|
217
235
|
|
|
218
236
|
type BankAccount = {
|
|
219
237
|
abaNumber?: string;
|
|
@@ -321,6 +339,9 @@ declare const randomNumericCode: ({ length }?: {
|
|
|
321
339
|
length?: number | undefined;
|
|
322
340
|
}) => string;
|
|
323
341
|
|
|
342
|
+
/**
|
|
343
|
+
* @deprecated use incrementalId() instead, as this one is not random and could cause confusion
|
|
344
|
+
*/
|
|
324
345
|
declare const randomNumericId: () => number;
|
|
325
346
|
|
|
326
347
|
/**
|
|
@@ -340,6 +361,10 @@ declare const randomPassword: ({ minChars, maxChars, }?: {
|
|
|
340
361
|
maxChars?: number | undefined;
|
|
341
362
|
}) => string;
|
|
342
363
|
|
|
364
|
+
declare const randomPath: ({ depth, }?: {
|
|
365
|
+
depth?: number | undefined;
|
|
366
|
+
}) => string;
|
|
367
|
+
|
|
343
368
|
declare const randomPhoneNumber: () => string;
|
|
344
369
|
|
|
345
370
|
declare const randomString: ({ length, }?: {
|
|
@@ -356,6 +381,8 @@ declare const randomString: ({ length, }?: {
|
|
|
356
381
|
declare const randomUUID: () => string;
|
|
357
382
|
|
|
358
383
|
declare const randomWord: () => string;
|
|
384
|
+
declare const randomNoun: () => string;
|
|
385
|
+
declare const randomVerb: () => string;
|
|
359
386
|
|
|
360
387
|
declare const isArray: <T>(arg?: any) => arg is T[];
|
|
361
388
|
|
|
@@ -442,4 +469,6 @@ declare const formatNumber: (value: number, { compact, maxDigits, }?: {
|
|
|
442
469
|
maxDigits?: number | undefined;
|
|
443
470
|
}) => string;
|
|
444
471
|
|
|
445
|
-
|
|
472
|
+
declare const stringToUnicode: (text: string) => string;
|
|
473
|
+
|
|
474
|
+
export { BoolMap, Coords, DateLike, DateRange, Datey, Dimensions, HashMap, HashMapKey, JS_MAX_DIGITS, Matrix, Maybe, MaybePromise, MaybePromiseOrValue, MaybePromiseOrValueArray, NonUndefined, NumberMap, ObjectEntries, ObjectKey, ObjectKeys, ObjectValue, ObjectValues, PlainObject, Point, PrismaSelect, StringMap, TrueMap, array, arrayDiff, arrayIntersection, average, capitalize, checkEnvVars, clamp, cleanSpaces, dir, first, firstKey, firstValue, formatNumber, getEnumerableOwnPropertySymbols, getKeys, getUrlSearchParam, getUrlSearchParams, incrementalId, isArray, isBoolean, isBrowser, isClient, isEmail, isEmpty, isEmptyArray, isEmptyObject, isEmptyString, isEven, isFunction, isFutureDate, isInt, isJsDate, isKey, isLastIndex, isNegative, isNegativeInt, isNotEmptyString, isNumber, isNumeric, isNumericId, isObject, isOdd, isPWA, isPastDate, isPositive, isPositiveInt, isPromise, isReactElement, isRegExp, isSame, isServer, isSpacedString, isString, isStringDate, isURL, isUUID, isValue, keysLength, last, lastIndex, max, merge, min, moveToFirst, moveToLast, multiply, normalizeNumber, objectDiff, omit, parseDate, pretty, promiseWithTimeout, randomAddress, randomAlphaNumericCode, randomArrayItem, randomBankAccount, randomBool, randomChar, randomCompany, randomCoords, randomDate, randomDateRange, randomEmail, randomEmoji, randomEnumKey, randomEnumValue, randomFile, randomFirstName, randomFloat, randomFormattedPercentage, randomFullName, randomFutureDate, randomHandle, randomHexColor, randomHexValue, randomHtmlColorName, randomIBAN, randomIP, randomInt, randomLastName, randomLat, randomLng, randomMaxDate, randomMaxInt, randomMaxSafeInt, randomName, randomNegativeInt, randomNoun, randomNumericCode, randomNumericId, randomParagraph, randomPassword, randomPastDate, randomPath, randomPercentage, randomPhoneNumber, randomPositiveInt, randomPositivePercentage, randomString, randomUUID, randomVerb, randomWord, scrambleText, serialize, setUrlSearchParams, shuffle, sleep, stringToUnicode, sum, toggleArray, toggleArrayValue, truncate, uniqueValues };
|
package/dist/index.global.js
CHANGED
|
@@ -1,135 +1,142 @@
|
|
|
1
1
|
(function (exports) {
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
|
-
var f=t=>Array.isArray(t);var p=t=>Object.prototype.toString.call(t)==="[object Object]";var ht=["oneOf","endsWith","startsWith"],ae=(t,e)=>{let r=(e==null?void 0:e.processEnvKey)||"NODE_ENV",o=[],i=[],u=({envVarKey:c,envVarValue:a,validation:m})=>{m.oneOf&&(a?m.oneOf.includes(a)||o.push(`${c}=${a} is not allowed, use one of: ${m.oneOf.join(", ")}`):o.push(`${c} is missing`)),m.endsWith&&(a?a!=null&&a.endsWith(m.endsWith)||o.push(`${c}=${a} is not allowed, must end in: ${m.endsWith}`):o.push(`${c} is missing`)),m.startsWith&&(a?a!=null&&a.startsWith(m.startsWith)||o.push(`${c}=${a} is not allowed, must start with: ${m.startsWith}`):o.push(`${c} is missing`));},N=({envVarKey:c,envVarValue:a,rule:m})=>{switch(m){case"should":a||i.push(`${c} should be set`);break;case"shouldNot":a&&i.push(`${c} should not be set`);break;case"never":case!1:a&&o.push(`${c} is not allowed`);break;case"always":case!0:default:a||o.push(`${c} is missing`);break}};if(Object.entries(t).forEach(([c,a])=>{let m=process.env[c];p(a)?(Object.entries(a).forEach(([x,S])=>{ht.includes(x)&&u({envVarValue:m,validation:{[x]:S},envVarKey:c});}),Object.entries(a).forEach(([x,S])=>{process.env[r]===x&&(p(S)?u({envVarValue:m,validation:S,envVarKey:c}):N({envVarValue:m,rule:S,envVarKey:c}));})):f(a)?a.forEach(S=>{process.env[r]===S&&!m&&o.push(`${c} is missing`);}):N({envVarValue:m,rule:a,envVarKey:c});}),i.length&&console.warn("[WARNING] "+i.join(", ")),o.length)throw new Error("[ERROR] "+o.join(", "))};var l=(t,e=()=>{})=>Array.from({length:t},e);var T=t=>[...new Set(t)];var ue=(t,e)=>T(t.filter(r=>!e.includes(r)).concat(e.filter(r=>!t.includes(r))));var fe=(t,e)=>T(t.filter(r=>e.includes(r)));var F=t=>t.charAt(0).toUpperCase()+t.slice(1).toLowerCase();var Se=({number:t,min:e,max:r})=>(r<e&&process.env.DEVERYTHING_WARNINGS&&console.warn("clamp: max < min",{number:t,min:e,max:r}),t<e?e:t>r?r:t);var z=new RegExp(/\p{C}/,"gu");var v=new RegExp("\\p{Zs}","gu");var K=new RegExp("\\p{Zl}","gu");var G=new RegExp("\\p{Zp}","gu");var Me=t=>t.replace(z," ").replace(v," ").replace(K," ").replace(G," ").trim().replace(/\s{2,}/g," ");var Ie=(t,e=5)=>{console.dir(t,{depth:e});};var Pe=t=>t==null?void 0:t[0];var d=t=>Object.keys(t).concat(Et(t)),Et=t=>Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter(function(e){return Object.propertyIsEnumerable.call(t,e)}):[];var Le=t=>d(t)[0];var ke=t=>Object.values(t)[0];var $=t=>{if(!t)return {};try{let e=new URL(t);return Object.fromEntries(e.searchParams)}catch(e){return {}}};var Fe=(t,e)=>$(t)[e];var ve=t=>t==null?void 0:t[t.length-1];var Ge=t=>Object.prototype.toString.call(t)==="[object Boolean]";var J=()=>typeof window=="undefined";var C=()=>!J();var Ye=C;var b=t=>typeof t=="string";var er=t=>b(t)&&/\S+@\S+\.\S+/.test(t);var X=t=>!!(t===void 0||t===null||Nt(t)||Ct(t)||Tt(t)),Nt=t=>b(t)&&t.trim().length===0,Tt=t=>f(t)&&t.length===0,Ct=t=>p(t)&&Object.keys(t).length===0;var B=t=>Object.prototype.toString.call(t)==="[object Function]";var w=t=>{let e=y(t);return !!e&&e>new Date};var _=t=>Object.prototype.toString.call(t)==="[object Date]"&&!isNaN(t);var M=(t,e)=>e.hasOwnProperty(t)&&e.propertyIsEnumerable(t);var lr=(t,e)=>t===e.length-1;var A=t=>Number.isInteger(t),fr=t=>A(t)&&!(t%2),yr=t=>A(t)&&!!(t%2),br=t=>A(t)&&t>0,V=t=>A(t)&&t>0,Sr=t=>A(t)&&t<0,Ar=t=>A(t)&&t<0,q=t=>Object.prototype.toString.apply(t)==="[object Number]"&&isFinite(t);var Y=t=>t.indexOf(" ")>=0;var Z=t=>q(t)?!0:!b(t)||Y(t)?!1:!isNaN(parseFloat(t));var Cr=t=>/^\d+$/.test(t)&&parseInt(t)>0;var L=t=>{let e=y(t);return !!e&&e<new Date};var Ir=t=>t instanceof Promise;var Dr=t=>b(t)&&t.trim().length>0;var Lr=()=>C()&&window.matchMedia("(display-mode: standalone)").matches;var _t=typeof Symbol=="function"&&Symbol.for,Mt=_t?Symbol.for("react.element"):60103,kr=t=>t.$$typeof===Mt;var Wr=t=>Object.prototype.toString.call(t)==="[object RegExp]";var R=(t,e)=>{if(t===e)return !0;if(f(t)&&f(e))return t.length!==e.length?!1:t.every((r,o)=>R(r,e[o]));if(p(t)&&p(e)){let r=d(t);return r.length!==d(e).length?!1:r.every(o=>R(t[o],e[o]))}return B(t)&&B(e)?t.toString()===e.toString():!1};var Jr=t=>{let e=new Date(t);return _(e)};var Rt=new RegExp("^(https?:\\/\\/)?((([a-z\\d]([a-z\\d-]*[a-z\\d])*)\\.?)+[a-z]{2,}|((\\d{1,3}\\.){3}\\d{1,3}))(\\:\\d+)?(\\/[-a-z\\d%_.~+]*)*(\\?[;&a-z\\d%_.~+=-]*)?(\\#[-a-z\\d_]*)?$","i"),Vr=t=>!!t&&Rt.test(t);var Yr=t=>/^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(t);var Q=t=>t!=null&&!Number.isNaN(t);var j=(t,e)=>{let r={};return d(t).forEach(o=>{r[o]=p(t[o])?j({},t[o]):t[o];}),d(e).forEach(o=>{M(o,t)?r[o]=p(t[o])&&p(e[o])?j(t[o],e[o]):e[o]:r[o]=p(e[o])?j({},e[o]):e[o];}),r};var oo=(t,e)=>{let r=[...t];for(let o=0;o<r.length;o++)if(e(r[o],o,r)){let i=r.splice(o,1);r.unshift(i[0]);break}return r};var io=(t,e)=>{let r=[...t];for(let o=0;o<r.length;o++)if(e(r[o],o,r)){let i=r.splice(o,1)[0];r.push(i);break}return r};var so=({value:t,max:e,min:r})=>t>=e?1:t<=r?0:(t-r)/(e-r);var uo=(t,e)=>{var r={};let o=new Set([...d(t),...d(e)]);for(let i of o)R(e[i],t[i])||(r[i]={from:t[i],to:e[i]});return r};var fo=(t,e)=>{let r={};for(let o in t)e.includes(o)||(r[o]=t[o]);return r};var y=t=>{if(X(t))return;let e=new Date(t);if(_(e))return e};var tt=()=>{let t=[],e=[],r=function(o,i){return t[0]===i?"[Circular ~]":"[Circular ~."+e.slice(0,t.indexOf(i)).join(".")+"]"};return function(o,i){if(t.length>0){let u=t.indexOf(this);~u?t.splice(u+1):t.push(this),~u?e.splice(u,1/0,o):e.push(o),~t.indexOf(i)&&(i=r.call(this,o,i));}else t.push(i);return i}};var ho=t=>JSON.stringify(t,tt(),2);var No=(t,e,r)=>{let o,i=new Promise((u,N)=>{o=setTimeout(()=>N(r!=null?r:new Error("Promise timed out")),e);});return Promise.race([t(),i]).finally(()=>{clearTimeout(o);})};var s=(t=-100,e=100)=>(t=Math.ceil(t),e=Math.floor(e),Math.floor(Math.random()*(e-t+1)+t)),Co=(t=100)=>s(1,t),_o=(t=-100)=>s(t,-1),Mo=()=>s(-Number.MAX_SAFE_INTEGER,Number.MAX_SAFE_INTEGER),Ro=()=>s(-Number.MAX_VALUE,Number.MAX_VALUE),It=({min:t,max:e}={})=>s(t!=null?t:-100,e!=null?e:100),Io=({min:t,max:e}={})=>s(t!=null?t:1,e!=null?e:100),Oo=()=>It()+"%";var I=()=>String.fromCharCode(s(97,122));var et=new RegExp(/\p{L}/,"gu");var ko=t=>t.replace(et,()=>I());var Wo=t=>{let e=new Set;return JSON.stringify(t,(r,o)=>(e.add(r),o)),JSON.stringify(t,Array.from(e).sort())};var Fo=(t,e={})=>{let r=t.startsWith("/"),o=new URL(t,r?"https://deverything.dev/":void 0);return Object.entries(e).forEach(([i,u])=>{o.searchParams.set(i,u.toString());}),r?o.pathname+o.search+o.hash:o.toString()};var vo=t=>{let e=[...t];for(let r=e.length-1;r>0;r--){let o=Math.floor(Math.random()*(r+1));[e[r],e[o]]=[e[o],e[r]];}return e};var Go=t=>new Promise(e=>{setTimeout(e,t);});var Ot=(t,e)=>{if(!f(t))return t;let r=t.reduce((o,i)=>(i!==e&&o.push(i),o),[]);return r.length===t.length&&r.push(e),r},Xo=Ot;var Yo=(t,e,r="...")=>{if(!V(e))return t;let o=[...t];return o.length<=e?t:o.slice(0,e).join("")+r};var Qo=t=>t.reduce((r,o)=>r+o,0)/t.length;var en=t=>Math.max(...t);var on=t=>Math.min(...t);var an=t=>t.reduce((e,r)=>e*r,1);var cn=t=>t.reduce((e,r)=>e+r,0);var Pt=[{city:"London",country:"United Kingdom",countryCode:"GB",line2:"Marylebone",number:"221B",street:"Baker Street",zip:"NW1 6XE"},{city:"Birmingham",country:"United Kingdom",countryCode:"GB",number:"B1 1AA",street:"Bordesley Street",zip:"B1 1AA"}],Dt=[{city:"New York",country:"United States",countryCode:"US",state:"NY",street:"Broadway",line2:"Manhattan",number:"42",zip:"10036"},{city:"Los Angeles",country:"United States",countryCode:"US",state:"CA",street:"Hollywood Boulevard",number:"6801",zip:"90028"}],Bt=[{city:"Paris",country:"France",countryCode:"FR",street:"Rue de Rivoli",number:"75001",zip:"75001"},{city:"Berlin",country:"Germany",countryCode:"DE",street:"Unter den Linden",line2:"Mitte",number:"10117",zip:"10117"},{city:"Rome",country:"Italy",countryCode:"IT",street:"Via del Corso",number:"00186",zip:"00186"},{city:"Madrid",country:"Spain",countryCode:"ES",street:"Gran V\xEDa",line2:"Sol",number:"28013",zip:"28013"}],wt=[{city:"Moscow",country:"Russia",countryCode:"RU",street:"Tverskaya",number:"101000",zip:"101000"},{city:"Tokyo",country:"Japan",countryCode:"JP",street:"Shinjuku",line2:"Shinjuku City",number:"160-0022",zip:"160-0022"},{city:"Beijing",country:"China",countryCode:"CN",street:"Changan",number:"100005",zip:"100005"},{city:"Cairo",country:"Egypt",countryCode:"EG",street:"Al-Muizz",number:"11511",zip:"11511"},{city:"Buenos Aires",country:"Argentina",countryCode:"AR",street:"Avenida de Mayo",number:"1002",zip:"C1006AAQ"},{city:"Cape Town",country:"South Africa",countryCode:"ZA",street:"Adderley",number:"7700",zip:"7700"},{city:"Sydney",country:"Australia",countryCode:"AU",street:"George",line2:"Haymarket",number:"2000",zip:"2000"},{city:"Rio de Janeiro",country:"Brazil",countryCode:"BR",street:"Av. Presidente Vargas",number:"20021-000",zip:"20021-000"},{city:"Mexico City",country:"Mexico",countryCode:"MX",street:"Paseo de la Reforma",number:"06500",zip:"06500"}],rt=[...Pt,...Dt,...Bt,...wt];var n=t=>t[s(0,t.length-1)];var yn=()=>n(rt);var Lt="123456789ABCDEFGHIJKLMNPQRSTUVWXYZ".split(""),xn=({length:t=6}={})=>{if(t<1)throw new Error("randomAlphaNumericCode: Length must be greater than 0.");return l(t,()=>n(Lt)).join("")};var ot=["AD1200012030200359100100","BA391290079401028494","BE68539007547034","BG80BNBG96611020345678","FI2112345600000785","FO6264600001631634","FR1420041010050500013M02606","GB29NWBK60161331926819","GE29NB0000000101904917"];var jt=[{accountHolderName:"John Peters",accountNumber:"12345678",bankAddress:"1 Churchill Place, Canary Wharf, London, E14 5HP, UK",bankName:"Barclays plc",bicSwift:"BARCGB22",iban:"GB51BARC20039534871253",sortCode:"12-34-56",accountHolderType:"individual"},{accountHolderName:"Jane Evans",accountNumber:"87654321",bankAddress:"8 Canada Square, London, E14 5HQ, UK",bankName:"HSBC Holdings plc",bicSwift:"HSBCGB2L",iban:"GB82BARC20031847813531",sortCode:"65-43-21",accountHolderType:"company"}],kt=[{accountHolderName:"Jack I. Taylor",accountNumber:"123456789012",accountType:"checking",bankAddress:"Bank of America Corporate Center, 100 North Tryon Street, Charlotte, NC 28255, USA",bankName:"Bank of America Corporation",routingNumber:"111000025",accountHolderType:"individual"},{accountHolderName:"Sally T King",accountNumber:"987654321098",accountType:"savings",bankAddress:"383 Madison Avenue, New York, NY 10179, USA",bankName:"JPMorgan Chase & Co.",routingNumber:"021000021",accountHolderType:"company"}],Ut=[{accountHolderName:"William Kevin White",accountNumber:"123456789012",accountType:"savings",bankAddress:"Commonwealth Bank Centre, Tower 1, 201 Sussex Street, Sydney, NSW 2000, Australia",bankName:"Commonwealth Bank of Australia",bicSwift:"CTBAAU2S",bsbNumber:"062-000",accountHolderType:"individual"},{accountHolderName:"Jennifer Ann Brown",accountNumber:"987654321098",accountType:"checking",bankAddress:"Westpac Place, 275 Kent Street, Sydney, NSW 2000, Australia",bankName:"Westpac Banking Corporation",bicSwift:"WPACAU2S",bsbNumber:"032-001",accountHolderType:"company"}],Wt=[{accountHolderName:"Charles Green",accountNumber:"123456789012",accountType:"savings",bankAddress:"Royal Bank Plaza, 200 Bay Street, North Tower, Toronto, ON M5J 2J5, Canada",bankName:"Royal Bank of Canada",branchTransitNumber:"45678",institutionNumber:"123",accountHolderType:"individual"},{accountHolderName:"Olivia Orange",accountNumber:"987654321098",accountType:"checking",bankAddress:"TD Canada Trust Tower, 161 Bay Street, Toronto, ON M5J 2S8, Canada",bankName:"Toronto-Dominion Bank",branchTransitNumber:"65432",institutionNumber:"987",accountHolderType:"company"}],nt=[...jt,...kt,...Ut,...Wt];var Tn=()=>n(nt);var Mn=()=>!!s(0,1);var it=["IE1234567T","GB123456789","XI123456789"],at=["Acme Inc.","Globex Ltd.","Aurora LLC","Serenity Systems","Vulcan Ventures","Umbrella Corp."];var Bn=()=>({name:n(at),vatRegNumber:n(it)});var jn=16,k=(t=-9,e=9,r)=>{let o=Math.random()*(e-t)+t;return Q(r)?parseFloat(o.toFixed(r)):o};var Wn=()=>({lat:Ht(),lng:Ft()}),Ht=()=>k(-90,90),Ft=()=>k(-180,180);var W=t=>new Date(new Date().getTime()+t),g=(t,e)=>{let r=y(t),o=y(e);r&&o&&r>o&&console.warn("randomDate: startDate must be before endDate");let i=r||(o?new Date(o.getTime()-31536e7):W(-31536e7)),u=o||(r?new Date(r.getTime()+31536e7):W(31536e7));return new Date(s(i.getTime(),u.getTime()))},Gn=(t,e)=>{let r=t||new Date(-864e13),o=e||new Date(864e13);return g(r,o)},$n=({startDate:t,endDate:e}={})=>{t&&L(t)&&console.warn("randomFutureDate: startDate must be in the future"),e&&L(e)&&console.warn("randomFutureDate: endDate must be in the future");let r=y(t)||W(5*6e4);return g(r,e)},Jn=({startDate:t,endDate:e}={})=>{t&&w(t)&&console.warn("randomPastDate: startDate must be in the past"),e&&w(e)&&console.warn("randomPastDate: endDate must be in the past");let r=y(e)||new Date;return g(t,r)},Xn=()=>{let t=g();return {endDate:g(t),startDate:t}};var st=["gmail.com","yahoo.com","hotmail.com","aol.com","msn.com","comcast.net","live.com","att.net","mac.com","me.com","charter.net","shaw.ca","yahoo.ca","mail.com","qq.com","web.de","gmx.de","mail.ru"];var ct=["Albatross","Dolphin","Elephant","Giraffe","Koala","Lion","Penguin","Squirrel","Tiger","Turtle","Whale","Zebra"],mt=["Axe","Chisel","Drill","Hammer","Mallet","Pliers","Saw","Screwdriver","Wrench","Blowtorch","Crowbar","Ladder"],h=["Adrian","Albert","Alexander","Alice","Amanda","Amy","Benjamin","David","Emma","Esther","Olivia","Ruby","Sarah","Victoria"],E=["Anderson","Brown","Davis","Jackson","Johnson","Jones","Miller","Moore","Smith","Taylor","Thomas","White","Williams","Wilson"],vt=["\u0410\u0431\u0438\u0433\u0430\u0438\u043B","\u0410\u0433\u043D\u0435\u0441","\u0410\u0434\u0430\u043C","\u0410\u0434\u0440\u0438\u0430\u043D","\u0410\u043B\u0430\u043D","\u0410\u043B\u0435\u043A\u0441\u0430\u043D\u0434\u0440","\u0410\u043B\u0438\u0441\u0430","\u0410\u043B\u044C\u0431\u0435\u0440\u0442","\u0410\u043C\u0430\u043D\u0434\u0430","\u0410\u043C\u0435\u043B\u0438\u044F","\u042D\u043C\u0438","\u042D\u043D\u0434\u0440\u044E"],Kt=["\u0410\u043D\u0434\u0435\u0440\u0441\u043E\u043D","\u0411\u0440\u0430\u0443\u043D","\u0412\u0438\u043B\u0441\u043E\u043D","\u0414\u0436\u0435\u043A\u0441\u043E\u043D","\u0414\u0436\u043E\u043D\u0441","\u0414\u0436\u043E\u043D\u0441\u043E\u043D","\u0414\u044D\u0432\u0438\u0441","\u041C\u0438\u043B\u043B\u0435\u0440","\u041C\u0443\u0440","\u0421\u043C\u0438\u0442","\u0422\u0435\u0439\u043B\u043E\u0440","\u0422\u043E\u043C\u0430\u0441","\u0423\u0430\u0439\u0442","\u0423\u0438\u043B\u044C\u044F\u043C\u0441"],Gt=["\u30A2\u30B0\u30CD\u30B9","\u30A2\u30C0\u30E0","\u30A2\u30C9\u30EA\u30A2\u30F3","\u30A2\u30D3\u30B2\u30A4\u30EB","\u30A2\u30DE\u30F3\u30C0","\u30A2\u30DF\u30FC","\u30A2\u30E1\u30EA\u30A2","\u30A2\u30E9\u30F3","\u30A2\u30EA\u30B9","\u30A2\u30EB\u30D0\u30FC\u30C8","\u30A2\u30EC\u30AF\u30B5\u30F3\u30C0\u30FC","\u30A2\u30F3\u30C9\u30EA\u30E5\u30FC"],$t=["\u30A2\u30F3\u30C0\u30FC\u30BD\u30F3","\u30A6\u30A3\u30EA\u30A2\u30E0\u30BA","\u30A6\u30A3\u30EB\u30BD\u30F3","\u30B8\u30E3\u30AF\u30BD\u30F3","\u30B8\u30E7\u30FC\u30F3\u30BA","\u30B8\u30E7\u30F3\u30BD\u30F3","\u30B9\u30DF\u30B9","\u30BF\u30A4\u30E9\u30FC","\u30C7\u30A4\u30D3\u30B9","\u30C8\u30FC\u30DE\u30B9","\u30D6\u30E9\u30A6\u30F3","\u30DB\u30EF\u30A4\u30C8","\u30DF\u30E9\u30FC","\u30E2\u30A2"],Jt=["\u0622\u062F\u0631\u064A\u0627\u0646","\u0622\u062F\u0645","\u0622\u0644\u0627\u0646","\u0622\u0644\u0628\u0631\u062A","\u0622\u0644\u064A\u0633","\u0622\u0645\u0627\u0646\u062F\u0627","\u0622\u0645\u064A","\u0622\u0645\u064A\u0644\u064A\u0627","\u0623\u0628\u064A\u062C\u064A\u0644","\u0623\u063A\u0646\u064A\u0633","\u0623\u0644\u0643\u0633\u0646\u062F\u0631","\u0623\u0646\u062F\u0631\u0648"],Xt=["\u0623\u0646\u062F\u0631\u0633\u0648\u0646","\u0628\u0631\u0627\u0648\u0646","\u062A\u0627\u064A\u0644\u0648\u0631","\u062A\u0648\u0645\u0627\u0633","\u062C\u0627\u0643\u0633\u0648\u0646","\u062C\u0648\u0646\u0632","\u062C\u0648\u0646\u0633\u0648\u0646","\u062F\u064A\u0641\u064A\u0633","\u0633\u0645\u064A\u062B","\u0645\u0648\u0631","\u0645\u064A\u0644\u0631","\u0648\u0627\u064A\u062A","\u0648\u064A\u0644\u0633\u0648\u0646","\u0648\u064A\u0644\u064A\u0627\u0645\u0632"],pt=[...h,...vt,...Gt,...Jt],ut=[...E,...Kt,...$t,...Xt];var Vt=1,O=()=>Vt++;var lt=()=>(n(h)+"."+n(E)).toLowerCase()+O();var ai=()=>`${lt()}@${n(st)}`;var dt=["\u{1F600}","\u{1F601}","\u{1F602}","\u{1F923}","\u{1F603}","\u{1F604}","\u{1F605}","\u{1F606}","\u{1F609}","\u{1F60A}","\u{1F60B}","\u{1F60E}","\u{1F60D}","\u{1F618}","\u{1F617}","\u{1F619}"],ft=["!","@","#","$","%","^","&","*"];var ui=()=>n(dt);var yt=t=>Object.keys(t).filter(e=>!Z(e));var Si=t=>{let e=yt(t);return n(e)};var bt=t=>{let e=[];return Object.values(t).forEach(r=>{M(r,t)&&!e.includes(r)&&e.push(t[r]);}),e};var Ni=t=>{let e=bt(t);return n(e)};var qt=["abide","abound","accept","accomplish","achieve","acquire","act","adapt","add","adjust","admire","admit","adopt","advance","advise","afford","agree","alert","allow","be","go","need","work"],Yt=["courage","family","food","friend","fun","hope","justice","life","love","music","smile","time"],Zt=["absolute","compassionate","cozy","dull","enigmatic","fascinating","interesting","playful","remarkable","sunny","unforgettable","wonderful","predictable"],Qt=["abnormally","aboard","absentmindedly","absolutely","absurdly","abundantly","abysmally","academically","acceleratedly","accentually","acceptably","accessibly","accidentally","accommodatingly"],te=["Pneumonoultramicroscopicsilicovolcanoconiosis","Floccinaucinihilipilification","Pseudopseudohypoparathyroidism","Hippopotomonstrosesquippedaliophobia","Antidisestablishmentarianism","Supercalifragilisticexpialidocious","Honorificabilitudinitatibus"];var St=["AliceBlue","Aqua","Aquamarine","Azure","Beige","Bisque","Black","Blue","BlueViolet","Brown","BurlyWood","CadetBlue","Chartreuse","Chocolate","Coral","DarkSlateGray","DeepPink","Gold","Lime","Olive","Orchid","Salmon","Turquoise"],At=[...qt,...Yt,...Zt,...Qt,...te];var P=()=>n(At);var xt=({maxCharacters:t=200,minWords:e=8,maxWords:r=16}={})=>F(l(s(e,r),()=>P()).join(" ").slice(0,t-1)+".");var ee=["png","jpg","jpeg","gif","svg","webp"],ki=({name:t,extension:e}={})=>{if(typeof File=="undefined")return;let r=e||n(ee);return new File([xt()],`${t||P()}.${r}`,{type:`image/${r}`})};var D=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F"];var vi=()=>"#"+l(6,()=>n(D)).join("");var Ji=()=>n(D);var Yi=()=>n(St);var ea=()=>n(ot);var ia=()=>l(4,()=>s(0,255).toString()).join(".");var ma=()=>n([...ct,...mt]),pa=()=>n(pt),ua=()=>n(ut),la=()=>n(h)+" "+n(E);var ba=({length:t=6}={})=>{if(t<1)throw new Error("randomNumericCode: Length must be greater than 0.");return l(t,(e,r)=>s(r?0:1,9)).join("")};var H=({length:t=10}={})=>l(t,()=>I()).join("");var Ca=({minChars:t=9,maxChars:e=32}={})=>H({length:1}).toUpperCase()+H({length:s(t,e)-3})+n(ft)+s(1,9);var gt=["+44 20 7123 4567","+33 1 45 67 89 10","+81 3 1234 5678","+61 2 9876 5432","+49 30 9876 5432"];var Oa=()=>n(gt);var Ba=()=>{let t=O().toString().padStart(15,"0"),e=t.substring(0,12);return `00000000-0000-1000-8${t.substring(12,15)}-${e}`};var La=(t,{compact:e,maxDigits:r}={})=>Intl.NumberFormat("en",{notation:e?"compact":"standard",maximumSignificantDigits:r}).format(t);
|
|
4
|
+
var f=t=>Array.isArray(t);var u=t=>Object.prototype.toString.call(t)==="[object Object]";var Mt=["oneOf","endsWith","startsWith"],pe=(t,e)=>{let r=(e==null?void 0:e.processEnvKey)||"NODE_ENV",o=[],i=[],l=({envVarKey:m,envVarValue:s,validation:c})=>{c.oneOf&&(s?c.oneOf.includes(s)||o.push(`${m}=${s} is not allowed, use one of: ${c.oneOf.join(", ")}`):o.push(`${m} is missing`)),c.endsWith&&(s?s!=null&&s.endsWith(c.endsWith)||o.push(`${m}=${s} is not allowed, must end in: ${c.endsWith}`):o.push(`${m} is missing`)),c.startsWith&&(s?s!=null&&s.startsWith(c.startsWith)||o.push(`${m}=${s} is not allowed, must start with: ${c.startsWith}`):o.push(`${m} is missing`));},C=({envVarKey:m,envVarValue:s,rule:c})=>{switch(c){case"should":s||i.push(`${m} should be set`);break;case"shouldNot":s&&i.push(`${m} should not be set`);break;case"never":case!1:s&&o.push(`${m} is not allowed`);break;case"always":case!0:default:s||o.push(`${m} is missing`);break}};if(Object.entries(t).forEach(([m,s])=>{let c=process.env[m];u(s)?(Object.entries(s).forEach(([h,S])=>{Mt.includes(h)&&l({envVarValue:c,validation:{[h]:S},envVarKey:m});}),Object.entries(s).forEach(([h,S])=>{process.env[r]===h&&(u(S)?l({envVarValue:c,validation:S,envVarKey:m}):C({envVarValue:c,rule:S,envVarKey:m}));})):f(s)?s.forEach(S=>{process.env[r]===S&&!c&&o.push(`${m} is missing`);}):C({envVarValue:c,rule:s,envVarKey:m});}),i.length&&console.warn("[WARNING] "+i.join(", ")),o.length)throw new Error("[ERROR] "+o.join(", "))};var p=(t,e=()=>{})=>Array.from({length:t},e);var M=t=>[...new Set(t)];var ye=(t,e)=>M(t.filter(r=>!e.includes(r)).concat(e.filter(r=>!t.includes(r))));var Ae=(t,e)=>M(t.filter(r=>e.includes(r)));var v=t=>t.charAt(0).toUpperCase()+t.slice(1).toLowerCase();var he=({number:t,min:e,max:r})=>(r<e&&process.env.DEVERYTHING_WARNINGS&&console.warn("clamp: max < min",{number:t,min:e,max:r}),t<e?e:t>r?r:t);var G=new RegExp(/\p{C}/,"gu");var $=new RegExp("\\p{Zs}","gu");var J=new RegExp("\\p{Zl}","gu");var X=new RegExp("\\p{Zp}","gu");var Pe=t=>t.replace(G," ").replace($," ").replace(J," ").replace(X," ").trim().replace(/\s{2,}/g," ");var Be=(t,e=5)=>{console.dir(t,{depth:e});};var Le=t=>t==null?void 0:t[0];var d=t=>Object.keys(t).concat(Rt(t)),Rt=t=>Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter(function(e){return Object.propertyIsEnumerable.call(t,e)}):[];var We=t=>d(t)[0];var Fe=t=>Object.values(t)[0];var V=t=>{if(!t)return {};try{let e=new URL(t);return Object.fromEntries(e.searchParams)}catch(e){return {}}};var Ge=(t,e)=>V(t)[e];var _t=1,Je=()=>_t++;var Ve=t=>Object.keys(t).length;var A=t=>t.length-1;var q=t=>t[A(t)];var tr=t=>Object.prototype.toString.call(t)==="[object Boolean]";var Y=()=>typeof window=="undefined";var R=()=>!Y();var sr=R;var b=t=>typeof t=="string";var pr=t=>b(t)&&/\S+@\S+\.\S+/.test(t);var Z=t=>!!(t===void 0||t===null||It(t)||Pt(t)||Ot(t)),It=t=>b(t)&&t.trim().length===0,Ot=t=>f(t)&&t.length===0,Pt=t=>u(t)&&Object.keys(t).length===0;var w=t=>Object.prototype.toString.call(t)==="[object Function]";var L=t=>{let e=y(t);return !!e&&e>new Date};var _=t=>Object.prototype.toString.call(t)==="[object Date]"&&!isNaN(t);var I=(t,e)=>e.hasOwnProperty(t)&&e.propertyIsEnumerable(t);var Er=(t,e)=>t===A(e);var x=t=>Number.isInteger(t),Tr=t=>x(t)&&!(t%2),Cr=t=>x(t)&&!!(t%2),Mr=t=>x(t)&&t>0,Q=t=>x(t)&&t>0,Rr=t=>x(t)&&t<0,_r=t=>x(t)&&t<0,tt=t=>Object.prototype.toString.apply(t)==="[object Number]"&&isFinite(t);var et=t=>t.indexOf(" ")>=0;var rt=t=>tt(t)?!0:!b(t)||et(t)?!1:!isNaN(parseFloat(t));var Lr=t=>/^\d+$/.test(t)&&parseInt(t)>0;var j=t=>{let e=y(t);return !!e&&e<new Date};var Wr=t=>t instanceof Promise;var zr=t=>b(t)&&t.trim().length>0;var Gr=()=>R()&&window.matchMedia("(display-mode: standalone)").matches;var Dt=typeof Symbol=="function"&&Symbol.for,Bt=Dt?Symbol.for("react.element"):60103,Jr=t=>t.$$typeof===Bt;var Vr=t=>Object.prototype.toString.call(t)==="[object RegExp]";var O=(t,e)=>{if(t===e)return !0;if(f(t)&&f(e))return t.length!==e.length?!1:t.every((r,o)=>O(r,e[o]));if(u(t)&&u(e)){let r=d(t);return r.length!==d(e).length?!1:r.every(o=>O(t[o],e[o]))}return w(t)&&w(e)?t.toString()===e.toString():!1};var oo=t=>{let e=new Date(t);return _(e)};var wt=new RegExp("^(https?:\\/\\/)?((([a-z\\d]([a-z\\d-]*[a-z\\d])*)\\.?)+[a-z]{2,}|((\\d{1,3}\\.){3}\\d{1,3}))(\\:\\d+)?(\\/[-a-z\\d%_.~+]*)*(\\?[;&a-z\\d%_.~+=-]*)?(\\#[-a-z\\d_]*)?$","i"),io=t=>!!t&&wt.test(t);var ao=t=>/^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(t);var ot=t=>t!=null&&!Number.isNaN(t);var k=(t,e)=>{let r={};return d(t).forEach(o=>{r[o]=u(t[o])?k({},t[o]):t[o];}),d(e).forEach(o=>{I(o,t)?r[o]=u(t[o])&&u(e[o])?k(t[o],e[o]):e[o]:r[o]=u(e[o])?k({},e[o]):e[o];}),r};var fo=(t,e)=>{let r=[...t];for(let o=0;o<r.length;o++)if(e(r[o],o,r)){let i=r.splice(o,1);r.unshift(i[0]);break}return r};var bo=(t,e)=>{let r=[...t];for(let o=0;o<r.length;o++)if(e(r[o],o,r)){let i=r.splice(o,1)[0];r.push(i);break}return r};var Ao=({value:t,max:e,min:r})=>t>=e?1:t<=r?0:(t-r)/(e-r);var Eo=(t,e)=>{var r={};let o=new Set([...d(t),...d(e)]);for(let i of o)O(e[i],t[i])||(r[i]={from:t[i],to:e[i]});return r};var To=(t,e)=>{let r={};for(let o in t)e.includes(o)||(r[o]=t[o]);return r};var y=t=>{if(Z(t))return;let e=new Date(t);if(_(e))return e};var nt=()=>{let t=[],e=[],r=function(o,i){return t[0]===i?"[Circular ~]":"[Circular ~."+e.slice(0,t.indexOf(i)).join(".")+"]"};return function(o,i){if(t.length>0){let l=t.indexOf(this);~l?t.splice(l+1):t.push(this),~l?e.splice(l,1/0,o):e.push(o),~t.indexOf(i)&&(i=r.call(this,o,i));}else t.push(i);return i}};var Po=t=>JSON.stringify(t,nt(),2);var Bo=(t,e,r)=>{let o,i=new Promise((l,C)=>{o=setTimeout(()=>C(r!=null?r:new Error("Promise timed out")),e);});return Promise.race([t(),i]).finally(()=>{clearTimeout(o);})};var a=(t=-100,e=100)=>(t=Math.ceil(t),e=Math.floor(e),Math.floor(Math.random()*(e-t+1)+t)),Lo=(t=100)=>a(1,t),jo=(t=-100)=>a(t,-1),ko=()=>a(-Number.MAX_SAFE_INTEGER,Number.MAX_SAFE_INTEGER),Uo=()=>a(-Number.MAX_VALUE,Number.MAX_VALUE),Lt=({min:t,max:e}={})=>a(t!=null?t:-100,e!=null?e:100),Wo=({min:t,max:e}={})=>a(t!=null?t:1,e!=null?e:100),Ho=()=>Lt()+"%";var P=()=>String.fromCharCode(a(97,122));var it=new RegExp(/\p{L}/,"gu");var Jo=t=>t.replace(it,()=>P());var Vo=t=>{let e=new Set;return JSON.stringify(t,(r,o)=>(e.add(r),o)),JSON.stringify(t,Array.from(e).sort())};var Yo=(t,e={})=>{let r=t.startsWith("/"),o=new URL(t,r?"https://deverything.dev/":void 0);return Object.entries(e).forEach(([i,l])=>{o.searchParams.set(i,l.toString());}),r?o.pathname+o.search+o.hash:o.toString()};var Qo=t=>{let e=[...t];for(let r=e.length-1;r>0;r--){let o=Math.floor(Math.random()*(r+1));[e[r],e[o]]=[e[o],e[r]];}return e};var en=t=>new Promise(e=>{setTimeout(e,t);});var jt=(t,e)=>{if(!f(t))return t;let r=t.reduce((o,i)=>(i!==e&&o.push(i),o),[]);return r.length===t.length&&r.push(e),r},nn=jt;var mn=(t,e,r="...")=>{if(!Q(e))return t;let o=[...t];return o.length<=e?t:o.slice(0,e).join("")+r};var pn=t=>t.reduce((r,o)=>r+o,0)/t.length;var ln=t=>Math.max(...t);var fn=t=>Math.min(...t);var bn=t=>t.reduce((e,r)=>e*r,1);var st=t=>t.reduce((e,r)=>e+r,0);var kt=[{city:"London",country:"United Kingdom",countryCode:"GB",line2:"Marylebone",number:"221B",street:"Baker Street",zip:"NW1 6XE"},{city:"Birmingham",country:"United Kingdom",countryCode:"GB",number:"B1 1AA",street:"Bordesley Street",zip:"B1 1AA"}],Ut=[{city:"New York",country:"United States",countryCode:"US",state:"NY",street:"Broadway",line2:"Manhattan",number:"42",zip:"10036"},{city:"Los Angeles",country:"United States",countryCode:"US",state:"CA",street:"Hollywood Boulevard",number:"6801",zip:"90028"}],Wt=[{city:"Paris",country:"France",countryCode:"FR",street:"Rue de Rivoli",number:"75001",zip:"75001"},{city:"Berlin",country:"Germany",countryCode:"DE",street:"Unter den Linden",line2:"Mitte",number:"10117",zip:"10117"},{city:"Rome",country:"Italy",countryCode:"IT",street:"Via del Corso",number:"00186",zip:"00186"},{city:"Madrid",country:"Spain",countryCode:"ES",street:"Gran V\xEDa",line2:"Sol",number:"28013",zip:"28013"}],Ht=[{city:"Moscow",country:"Russia",countryCode:"RU",street:"Tverskaya",number:"101000",zip:"101000"},{city:"Tokyo",country:"Japan",countryCode:"JP",street:"Shinjuku",line2:"Shinjuku City",number:"160-0022",zip:"160-0022"},{city:"Beijing",country:"China",countryCode:"CN",street:"Changan",number:"100005",zip:"100005"},{city:"Cairo",country:"Egypt",countryCode:"EG",street:"Al-Muizz",number:"11511",zip:"11511"},{city:"Buenos Aires",country:"Argentina",countryCode:"AR",street:"Avenida de Mayo",number:"1002",zip:"C1006AAQ"},{city:"Cape Town",country:"South Africa",countryCode:"ZA",street:"Adderley",number:"7700",zip:"7700"},{city:"Sydney",country:"Australia",countryCode:"AU",street:"George",line2:"Haymarket",number:"2000",zip:"2000"},{city:"Rio de Janeiro",country:"Brazil",countryCode:"BR",street:"Av. Presidente Vargas",number:"20021-000",zip:"20021-000"},{city:"Mexico City",country:"Mexico",countryCode:"MX",street:"Paseo de la Reforma",number:"06500",zip:"06500"}],at=[...kt,...Ut,...Wt,...Ht];var n=(t,{weights:e}={})=>{if(e&&e.length===t.length){let r=st(e),o=Math.random()*r;for(let i=0;i<e.length;i++)if(o-=e[i],o<=0)return t[i];return q(t)}return t[a(0,A(t))]};var Rn=()=>n(at);var Ft="123456789ABCDEFGHIJKLMNPQRSTUVWXYZ".split(""),Pn=({length:t=6}={})=>{if(t<1)throw new Error("randomAlphaNumericCode: Length must be greater than 0.");return p(t,()=>n(Ft)).join("")};var mt=["AD1200012030200359100100","BA391290079401028494","BE68539007547034","BG80BNBG96611020345678","FI2112345600000785","FO6264600001631634","FR1420041010050500013M02606","GB29NWBK60161331926819","GE29NB0000000101904917"];var zt=[{accountHolderName:"John Peters",accountNumber:"12345678",bankAddress:"1 Churchill Place, Canary Wharf, London, E14 5HP, UK",bankName:"Barclays plc",bicSwift:"BARCGB22",iban:"GB51BARC20039534871253",sortCode:"12-34-56",accountHolderType:"individual"},{accountHolderName:"Jane Evans",accountNumber:"87654321",bankAddress:"8 Canada Square, London, E14 5HQ, UK",bankName:"HSBC Holdings plc",bicSwift:"HSBCGB2L",iban:"GB82BARC20031847813531",sortCode:"65-43-21",accountHolderType:"company"}],Kt=[{accountHolderName:"Jack I. Taylor",accountNumber:"123456789012",accountType:"checking",bankAddress:"Bank of America Corporate Center, 100 North Tryon Street, Charlotte, NC 28255, USA",bankName:"Bank of America Corporation",routingNumber:"111000025",accountHolderType:"individual"},{accountHolderName:"Sally T King",accountNumber:"987654321098",accountType:"savings",bankAddress:"383 Madison Avenue, New York, NY 10179, USA",bankName:"JPMorgan Chase & Co.",routingNumber:"021000021",accountHolderType:"company"}],vt=[{accountHolderName:"William Kevin White",accountNumber:"123456789012",accountType:"savings",bankAddress:"Commonwealth Bank Centre, Tower 1, 201 Sussex Street, Sydney, NSW 2000, Australia",bankName:"Commonwealth Bank of Australia",bicSwift:"CTBAAU2S",bsbNumber:"062-000",accountHolderType:"individual"},{accountHolderName:"Jennifer Ann Brown",accountNumber:"987654321098",accountType:"checking",bankAddress:"Westpac Place, 275 Kent Street, Sydney, NSW 2000, Australia",bankName:"Westpac Banking Corporation",bicSwift:"WPACAU2S",bsbNumber:"032-001",accountHolderType:"company"}],Gt=[{accountHolderName:"Charles Green",accountNumber:"123456789012",accountType:"savings",bankAddress:"Royal Bank Plaza, 200 Bay Street, North Tower, Toronto, ON M5J 2J5, Canada",bankName:"Royal Bank of Canada",branchTransitNumber:"45678",institutionNumber:"123",accountHolderType:"individual"},{accountHolderName:"Olivia Orange",accountNumber:"987654321098",accountType:"checking",bankAddress:"TD Canada Trust Tower, 161 Bay Street, Toronto, ON M5J 2S8, Canada",bankName:"Toronto-Dominion Bank",branchTransitNumber:"65432",institutionNumber:"987",accountHolderType:"company"}],ct=[...zt,...Kt,...vt,...Gt];var jn=()=>n(ct);var Wn=()=>!!a(0,1);var pt=["IE1234567T","GB123456789","XI123456789"],ut=["Acme Inc.","Globex Ltd.","Aurora LLC","Serenity Systems","Vulcan Ventures","Umbrella Corp."];var Gn=()=>({name:n(ut),vatRegNumber:n(pt)});var Xn=16,U=(t=-9,e=9,r)=>{let o=Math.random()*(e-t)+t;return ot(r)?parseFloat(o.toFixed(r)):o};var Yn=()=>({lat:$t(),lng:Jt()}),$t=()=>U(-90,90),Jt=()=>U(-180,180);var H=t=>new Date(new Date().getTime()+t),E=(t,e)=>{let r=y(t),o=y(e);r&&o&&r>o&&console.warn("randomDate: startDate must be before endDate");let i=r||(o?new Date(o.getTime()-31536e7):H(-31536e7)),l=o||(r?new Date(r.getTime()+31536e7):H(31536e7));return new Date(a(i.getTime(),l.getTime()))},oi=(t,e)=>{let r=t||new Date(-864e13),o=e||new Date(864e13);return E(r,o)},ni=({startDate:t,endDate:e}={})=>{t&&j(t)&&console.warn("randomFutureDate: startDate must be in the future"),e&&j(e)&&console.warn("randomFutureDate: endDate must be in the future");let r=y(t)||H(5*6e4);return E(r,e)},ii=({startDate:t,endDate:e}={})=>{t&&L(t)&&console.warn("randomPastDate: startDate must be in the past"),e&&L(e)&&console.warn("randomPastDate: endDate must be in the past");let r=y(e)||new Date;return E(t,r)},si=()=>{let t=E();return {endDate:E(t),startDate:t}};var lt=["gmail.com","yahoo.com","hotmail.com","aol.com","msn.com","comcast.net","live.com","att.net","mac.com","me.com","charter.net","shaw.ca","yahoo.ca","mail.com","qq.com","web.de","gmx.de","mail.ru"];var dt=["Albatross","Dolphin","Elephant","Giraffe","Koala","Lion","Penguin","Squirrel","Tiger","Turtle","Whale","Zebra"],ft=["Axe","Chisel","Drill","Hammer","Mallet","Pliers","Saw","Screwdriver","Wrench","Blowtorch","Crowbar","Ladder"],N=["Adrian","Albert","Alexander","Alice","Amanda","Amy","Benjamin","David","Emma","Esther","Olivia","Ruby","Sarah","Victoria"],T=["Anderson","Brown","Davis","Jackson","Johnson","Jones","Miller","Moore","Smith","Taylor","Thomas","White","Williams","Wilson"],Vt=["\u0410\u0431\u0438\u0433\u0430\u0438\u043B","\u0410\u0433\u043D\u0435\u0441","\u0410\u0434\u0430\u043C","\u0410\u0434\u0440\u0438\u0430\u043D","\u0410\u043B\u0430\u043D","\u0410\u043B\u0435\u043A\u0441\u0430\u043D\u0434\u0440","\u0410\u043B\u0438\u0441\u0430","\u0410\u043B\u044C\u0431\u0435\u0440\u0442","\u0410\u043C\u0430\u043D\u0434\u0430","\u0410\u043C\u0435\u043B\u0438\u044F","\u042D\u043C\u0438","\u042D\u043D\u0434\u0440\u044E"],qt=["\u0410\u043D\u0434\u0435\u0440\u0441\u043E\u043D","\u0411\u0440\u0430\u0443\u043D","\u0412\u0438\u043B\u0441\u043E\u043D","\u0414\u0436\u0435\u043A\u0441\u043E\u043D","\u0414\u0436\u043E\u043D\u0441","\u0414\u0436\u043E\u043D\u0441\u043E\u043D","\u0414\u044D\u0432\u0438\u0441","\u041C\u0438\u043B\u043B\u0435\u0440","\u041C\u0443\u0440","\u0421\u043C\u0438\u0442","\u0422\u0435\u0439\u043B\u043E\u0440","\u0422\u043E\u043C\u0430\u0441","\u0423\u0430\u0439\u0442","\u0423\u0438\u043B\u044C\u044F\u043C\u0441"],Yt=["\u30A2\u30B0\u30CD\u30B9","\u30A2\u30C0\u30E0","\u30A2\u30C9\u30EA\u30A2\u30F3","\u30A2\u30D3\u30B2\u30A4\u30EB","\u30A2\u30DE\u30F3\u30C0","\u30A2\u30DF\u30FC","\u30A2\u30E1\u30EA\u30A2","\u30A2\u30E9\u30F3","\u30A2\u30EA\u30B9","\u30A2\u30EB\u30D0\u30FC\u30C8","\u30A2\u30EC\u30AF\u30B5\u30F3\u30C0\u30FC","\u30A2\u30F3\u30C9\u30EA\u30E5\u30FC"],Zt=["\u30A2\u30F3\u30C0\u30FC\u30BD\u30F3","\u30A6\u30A3\u30EA\u30A2\u30E0\u30BA","\u30A6\u30A3\u30EB\u30BD\u30F3","\u30B8\u30E3\u30AF\u30BD\u30F3","\u30B8\u30E7\u30FC\u30F3\u30BA","\u30B8\u30E7\u30F3\u30BD\u30F3","\u30B9\u30DF\u30B9","\u30BF\u30A4\u30E9\u30FC","\u30C7\u30A4\u30D3\u30B9","\u30C8\u30FC\u30DE\u30B9","\u30D6\u30E9\u30A6\u30F3","\u30DB\u30EF\u30A4\u30C8","\u30DF\u30E9\u30FC","\u30E2\u30A2"],Qt=["\u0622\u062F\u0631\u064A\u0627\u0646","\u0622\u062F\u0645","\u0622\u0644\u0627\u0646","\u0622\u0644\u0628\u0631\u062A","\u0622\u0644\u064A\u0633","\u0622\u0645\u0627\u0646\u062F\u0627","\u0622\u0645\u064A","\u0622\u0645\u064A\u0644\u064A\u0627","\u0623\u0628\u064A\u062C\u064A\u0644","\u0623\u063A\u0646\u064A\u0633","\u0623\u0644\u0643\u0633\u0646\u062F\u0631","\u0623\u0646\u062F\u0631\u0648"],te=["\u0623\u0646\u062F\u0631\u0633\u0648\u0646","\u0628\u0631\u0627\u0648\u0646","\u062A\u0627\u064A\u0644\u0648\u0631","\u062A\u0648\u0645\u0627\u0633","\u062C\u0627\u0643\u0633\u0648\u0646","\u062C\u0648\u0646\u0632","\u062C\u0648\u0646\u0633\u0648\u0646","\u062F\u064A\u0641\u064A\u0633","\u0633\u0645\u064A\u062B","\u0645\u0648\u0631","\u0645\u064A\u0644\u0631","\u0648\u0627\u064A\u062A","\u0648\u064A\u0644\u0633\u0648\u0646","\u0648\u064A\u0644\u064A\u0627\u0645\u0632"],yt=[...N,...Vt,...Yt,...Qt],bt=[...T,...qt,...Zt,...te];var ee=1,D=()=>ee++;var St=()=>(n(N)+"."+n(T)).toLowerCase()+D();var Ai=()=>`${St()}@${n(lt)}`;var At=["\u{1F600}","\u{1F601}","\u{1F602}","\u{1F923}","\u{1F603}","\u{1F604}","\u{1F605}","\u{1F606}","\u{1F609}","\u{1F60A}","\u{1F60B}","\u{1F60E}","\u{1F60D}","\u{1F618}","\u{1F617}","\u{1F619}"],xt=["!","@","#","$","%","^","&","*"];var Ni=()=>n(At);var gt=t=>Object.keys(t).filter(e=>!rt(e));var Ii=t=>{let e=gt(t);return n(e)};var ht=t=>{let e=[];return Object.values(t).forEach(r=>{I(r,t)&&!e.includes(r)&&e.push(t[r]);}),e};var Li=t=>{let e=ht(t);return n(e)};var F=["act","add","agree","allow","be","catch","create","delete","discover","eat","explore","go","help","imagine","jump","merge","need","offer","play","read","run","search","skip","solve","speak","think","try","work","write"],z=["city","coffee","courage","fact","family","flower","food","friend","fun","hope","justice","key","life","love","music","smile","time"],re=["absolute","compassionate","cozy","dull","enigmatic","fascinating","interesting","playful","predictable","remarkable","soothing","sunny","unforgettable","wonderful"],oe=["accidentally","accommodatingly","boldly","briskly","carefully","efficiently","freely","gently","happily","lightly","loudly","quickly","quietly","suddenly","unexpectedly","wisely"],ne=["Pneumonoultramicroscopicsilicovolcanoconiosis","Floccinaucinihilipilification","Pseudopseudohypoparathyroidism","Hippopotomonstrosesquippedaliophobia","Antidisestablishmentarianism","Supercalifragilisticexpialidocious","Honorificabilitudinitatibus"];var Et=["AliceBlue","Aqua","Aquamarine","Azure","Beige","Bisque","Black","Blue","BlueViolet","Brown","BurlyWood","CadetBlue","Chartreuse","Chocolate","Coral","DarkSlateGray","DeepPink","Gold","Lime","Olive","Orchid","Salmon","Turquoise"],Nt=[...F,...z,...re,...oe,...ne];var g=()=>n(Nt),Hi=()=>n(z),Fi=()=>n(F);var Tt=({maxCharacters:t=200,minWords:e=8,maxWords:r=16}={})=>v(p(a(e,r),()=>g()).join(" ").slice(0,t-1)+".");var ie=["png","jpg","jpeg","gif","svg","webp"],Yi=({name:t,extension:e}={})=>{if(typeof File=="undefined")return;let r=e||n(ie);return new File([Tt()],`${t||g()}.${r}`,{type:`image/${r}`})};var B=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F"];var os=()=>"#"+p(6,()=>n(B)).join("");var as=()=>n(B);var us=()=>n(Et);var ys=()=>n(mt);var xs=()=>p(4,()=>a(0,255).toString()).join(".");var Ns=()=>n([...dt,...ft]),Ts=()=>n(yt),Cs=()=>n(bt),Ms=()=>n(N)+" "+n(T);var Os=({length:t=6}={})=>{if(t<1)throw new Error("randomNumericCode: Length must be greater than 0.");return p(t,(e,r)=>a(r?0:1,9)).join("")};var K=({length:t=10}={})=>p(t,()=>P()).join("");var Ws=({minChars:t=9,maxChars:e=32}={})=>K({length:1}).toUpperCase()+K({length:a(t,e)-3})+n(xt)+a(1,9);var Ks=({depth:t=3}={})=>p(t,g).join("/");var Ct=["+44 20 7123 4567","+33 1 45 67 89 10","+81 3 1234 5678","+61 2 9876 5432","+49 30 9876 5432"];var Xs=()=>n(Ct);var Ys=()=>{let t=D().toString().padStart(15,"0"),e=t.substring(0,12);return `00000000-0000-1000-8${t.substring(12,15)}-${e}`};var Qs=(t,{compact:e,maxDigits:r}={})=>Intl.NumberFormat("en",{notation:e?"compact":"standard",maximumSignificantDigits:r}).format(t);var ea=t=>Array.from(t).map(e=>{let r=e.codePointAt(0);return r!==void 0?`\\u{${r.toString(16)}}`:""}).join("");
|
|
5
5
|
|
|
6
|
-
exports.JS_MAX_DIGITS =
|
|
7
|
-
exports.array =
|
|
8
|
-
exports.arrayDiff =
|
|
9
|
-
exports.arrayIntersection =
|
|
10
|
-
exports.average =
|
|
11
|
-
exports.capitalize =
|
|
12
|
-
exports.checkEnvVars =
|
|
13
|
-
exports.clamp =
|
|
14
|
-
exports.cleanSpaces =
|
|
15
|
-
exports.dir =
|
|
16
|
-
exports.first =
|
|
17
|
-
exports.firstKey =
|
|
18
|
-
exports.firstValue =
|
|
19
|
-
exports.formatNumber =
|
|
20
|
-
exports.getEnumerableOwnPropertySymbols =
|
|
6
|
+
exports.JS_MAX_DIGITS = Xn;
|
|
7
|
+
exports.array = p;
|
|
8
|
+
exports.arrayDiff = ye;
|
|
9
|
+
exports.arrayIntersection = Ae;
|
|
10
|
+
exports.average = pn;
|
|
11
|
+
exports.capitalize = v;
|
|
12
|
+
exports.checkEnvVars = pe;
|
|
13
|
+
exports.clamp = he;
|
|
14
|
+
exports.cleanSpaces = Pe;
|
|
15
|
+
exports.dir = Be;
|
|
16
|
+
exports.first = Le;
|
|
17
|
+
exports.firstKey = We;
|
|
18
|
+
exports.firstValue = Fe;
|
|
19
|
+
exports.formatNumber = Qs;
|
|
20
|
+
exports.getEnumerableOwnPropertySymbols = Rt;
|
|
21
21
|
exports.getKeys = d;
|
|
22
|
-
exports.getUrlSearchParam =
|
|
23
|
-
exports.getUrlSearchParams =
|
|
22
|
+
exports.getUrlSearchParam = Ge;
|
|
23
|
+
exports.getUrlSearchParams = V;
|
|
24
|
+
exports.incrementalId = Je;
|
|
24
25
|
exports.isArray = f;
|
|
25
|
-
exports.isBoolean =
|
|
26
|
-
exports.isBrowser =
|
|
27
|
-
exports.isClient =
|
|
28
|
-
exports.isEmail =
|
|
29
|
-
exports.isEmpty =
|
|
30
|
-
exports.isEmptyArray =
|
|
31
|
-
exports.isEmptyObject =
|
|
32
|
-
exports.isEmptyString =
|
|
33
|
-
exports.isEven =
|
|
34
|
-
exports.isFunction =
|
|
35
|
-
exports.isFutureDate =
|
|
36
|
-
exports.isInt =
|
|
26
|
+
exports.isBoolean = tr;
|
|
27
|
+
exports.isBrowser = sr;
|
|
28
|
+
exports.isClient = R;
|
|
29
|
+
exports.isEmail = pr;
|
|
30
|
+
exports.isEmpty = Z;
|
|
31
|
+
exports.isEmptyArray = Ot;
|
|
32
|
+
exports.isEmptyObject = Pt;
|
|
33
|
+
exports.isEmptyString = It;
|
|
34
|
+
exports.isEven = Tr;
|
|
35
|
+
exports.isFunction = w;
|
|
36
|
+
exports.isFutureDate = L;
|
|
37
|
+
exports.isInt = x;
|
|
37
38
|
exports.isJsDate = _;
|
|
38
|
-
exports.isKey =
|
|
39
|
-
exports.isLastIndex =
|
|
40
|
-
exports.isNegative =
|
|
41
|
-
exports.isNegativeInt =
|
|
42
|
-
exports.isNotEmptyString =
|
|
43
|
-
exports.isNumber =
|
|
44
|
-
exports.isNumeric =
|
|
45
|
-
exports.isNumericId =
|
|
46
|
-
exports.isObject =
|
|
47
|
-
exports.isOdd =
|
|
48
|
-
exports.isPWA =
|
|
49
|
-
exports.isPastDate =
|
|
50
|
-
exports.isPositive =
|
|
51
|
-
exports.isPositiveInt =
|
|
52
|
-
exports.isPromise =
|
|
53
|
-
exports.isReactElement =
|
|
54
|
-
exports.isRegExp =
|
|
55
|
-
exports.isSame =
|
|
56
|
-
exports.isServer =
|
|
57
|
-
exports.isSpacedString =
|
|
39
|
+
exports.isKey = I;
|
|
40
|
+
exports.isLastIndex = Er;
|
|
41
|
+
exports.isNegative = Rr;
|
|
42
|
+
exports.isNegativeInt = _r;
|
|
43
|
+
exports.isNotEmptyString = zr;
|
|
44
|
+
exports.isNumber = tt;
|
|
45
|
+
exports.isNumeric = rt;
|
|
46
|
+
exports.isNumericId = Lr;
|
|
47
|
+
exports.isObject = u;
|
|
48
|
+
exports.isOdd = Cr;
|
|
49
|
+
exports.isPWA = Gr;
|
|
50
|
+
exports.isPastDate = j;
|
|
51
|
+
exports.isPositive = Mr;
|
|
52
|
+
exports.isPositiveInt = Q;
|
|
53
|
+
exports.isPromise = Wr;
|
|
54
|
+
exports.isReactElement = Jr;
|
|
55
|
+
exports.isRegExp = Vr;
|
|
56
|
+
exports.isSame = O;
|
|
57
|
+
exports.isServer = Y;
|
|
58
|
+
exports.isSpacedString = et;
|
|
58
59
|
exports.isString = b;
|
|
59
|
-
exports.isStringDate =
|
|
60
|
-
exports.isURL =
|
|
61
|
-
exports.isUUID =
|
|
62
|
-
exports.isValue =
|
|
63
|
-
exports.
|
|
64
|
-
exports.
|
|
65
|
-
exports.
|
|
66
|
-
exports.
|
|
67
|
-
exports.
|
|
68
|
-
exports.
|
|
69
|
-
exports.
|
|
70
|
-
exports.
|
|
71
|
-
exports.
|
|
72
|
-
exports.
|
|
60
|
+
exports.isStringDate = oo;
|
|
61
|
+
exports.isURL = io;
|
|
62
|
+
exports.isUUID = ao;
|
|
63
|
+
exports.isValue = ot;
|
|
64
|
+
exports.keysLength = Ve;
|
|
65
|
+
exports.last = q;
|
|
66
|
+
exports.lastIndex = A;
|
|
67
|
+
exports.max = ln;
|
|
68
|
+
exports.merge = k;
|
|
69
|
+
exports.min = fn;
|
|
70
|
+
exports.moveToFirst = fo;
|
|
71
|
+
exports.moveToLast = bo;
|
|
72
|
+
exports.multiply = bn;
|
|
73
|
+
exports.normalizeNumber = Ao;
|
|
74
|
+
exports.objectDiff = Eo;
|
|
75
|
+
exports.omit = To;
|
|
73
76
|
exports.parseDate = y;
|
|
74
|
-
exports.pretty =
|
|
75
|
-
exports.promiseWithTimeout =
|
|
76
|
-
exports.randomAddress =
|
|
77
|
-
exports.randomAlphaNumericCode =
|
|
77
|
+
exports.pretty = Po;
|
|
78
|
+
exports.promiseWithTimeout = Bo;
|
|
79
|
+
exports.randomAddress = Rn;
|
|
80
|
+
exports.randomAlphaNumericCode = Pn;
|
|
78
81
|
exports.randomArrayItem = n;
|
|
79
|
-
exports.randomBankAccount =
|
|
80
|
-
exports.randomBool =
|
|
81
|
-
exports.randomChar =
|
|
82
|
-
exports.randomCompany =
|
|
83
|
-
exports.randomCoords =
|
|
84
|
-
exports.randomDate =
|
|
85
|
-
exports.randomDateRange =
|
|
86
|
-
exports.randomEmail =
|
|
87
|
-
exports.randomEmoji =
|
|
88
|
-
exports.randomEnumKey =
|
|
89
|
-
exports.randomEnumValue =
|
|
90
|
-
exports.randomFile =
|
|
91
|
-
exports.randomFirstName =
|
|
92
|
-
exports.randomFloat =
|
|
93
|
-
exports.randomFormattedPercentage =
|
|
94
|
-
exports.randomFullName =
|
|
95
|
-
exports.randomFutureDate =
|
|
96
|
-
exports.randomHandle =
|
|
97
|
-
exports.randomHexColor =
|
|
98
|
-
exports.randomHexValue =
|
|
99
|
-
exports.randomHtmlColorName =
|
|
100
|
-
exports.randomIBAN =
|
|
101
|
-
exports.randomIP =
|
|
102
|
-
exports.randomInt =
|
|
103
|
-
exports.randomLastName =
|
|
104
|
-
exports.randomLat =
|
|
105
|
-
exports.randomLng =
|
|
106
|
-
exports.randomMaxDate =
|
|
107
|
-
exports.randomMaxInt =
|
|
108
|
-
exports.randomMaxSafeInt =
|
|
109
|
-
exports.randomName =
|
|
110
|
-
exports.randomNegativeInt =
|
|
111
|
-
exports.
|
|
112
|
-
exports.
|
|
113
|
-
exports.
|
|
114
|
-
exports.
|
|
115
|
-
exports.
|
|
116
|
-
exports.
|
|
117
|
-
exports.
|
|
118
|
-
exports.
|
|
119
|
-
exports.
|
|
120
|
-
exports.
|
|
121
|
-
exports.
|
|
122
|
-
exports.
|
|
123
|
-
exports.
|
|
124
|
-
exports.
|
|
125
|
-
exports.
|
|
126
|
-
exports.
|
|
127
|
-
exports.
|
|
128
|
-
exports.
|
|
129
|
-
exports.
|
|
130
|
-
exports.
|
|
131
|
-
exports.
|
|
132
|
-
exports.
|
|
82
|
+
exports.randomBankAccount = jn;
|
|
83
|
+
exports.randomBool = Wn;
|
|
84
|
+
exports.randomChar = P;
|
|
85
|
+
exports.randomCompany = Gn;
|
|
86
|
+
exports.randomCoords = Yn;
|
|
87
|
+
exports.randomDate = E;
|
|
88
|
+
exports.randomDateRange = si;
|
|
89
|
+
exports.randomEmail = Ai;
|
|
90
|
+
exports.randomEmoji = Ni;
|
|
91
|
+
exports.randomEnumKey = Ii;
|
|
92
|
+
exports.randomEnumValue = Li;
|
|
93
|
+
exports.randomFile = Yi;
|
|
94
|
+
exports.randomFirstName = Ts;
|
|
95
|
+
exports.randomFloat = U;
|
|
96
|
+
exports.randomFormattedPercentage = Ho;
|
|
97
|
+
exports.randomFullName = Ms;
|
|
98
|
+
exports.randomFutureDate = ni;
|
|
99
|
+
exports.randomHandle = St;
|
|
100
|
+
exports.randomHexColor = os;
|
|
101
|
+
exports.randomHexValue = as;
|
|
102
|
+
exports.randomHtmlColorName = us;
|
|
103
|
+
exports.randomIBAN = ys;
|
|
104
|
+
exports.randomIP = xs;
|
|
105
|
+
exports.randomInt = a;
|
|
106
|
+
exports.randomLastName = Cs;
|
|
107
|
+
exports.randomLat = $t;
|
|
108
|
+
exports.randomLng = Jt;
|
|
109
|
+
exports.randomMaxDate = oi;
|
|
110
|
+
exports.randomMaxInt = Uo;
|
|
111
|
+
exports.randomMaxSafeInt = ko;
|
|
112
|
+
exports.randomName = Ns;
|
|
113
|
+
exports.randomNegativeInt = jo;
|
|
114
|
+
exports.randomNoun = Hi;
|
|
115
|
+
exports.randomNumericCode = Os;
|
|
116
|
+
exports.randomNumericId = D;
|
|
117
|
+
exports.randomParagraph = Tt;
|
|
118
|
+
exports.randomPassword = Ws;
|
|
119
|
+
exports.randomPastDate = ii;
|
|
120
|
+
exports.randomPath = Ks;
|
|
121
|
+
exports.randomPercentage = Lt;
|
|
122
|
+
exports.randomPhoneNumber = Xs;
|
|
123
|
+
exports.randomPositiveInt = Lo;
|
|
124
|
+
exports.randomPositivePercentage = Wo;
|
|
125
|
+
exports.randomString = K;
|
|
126
|
+
exports.randomUUID = Ys;
|
|
127
|
+
exports.randomVerb = Fi;
|
|
128
|
+
exports.randomWord = g;
|
|
129
|
+
exports.scrambleText = Jo;
|
|
130
|
+
exports.serialize = Vo;
|
|
131
|
+
exports.setUrlSearchParams = Yo;
|
|
132
|
+
exports.shuffle = Qo;
|
|
133
|
+
exports.sleep = en;
|
|
134
|
+
exports.stringToUnicode = ea;
|
|
135
|
+
exports.sum = st;
|
|
136
|
+
exports.toggleArray = nn;
|
|
137
|
+
exports.toggleArrayValue = jt;
|
|
138
|
+
exports.truncate = mn;
|
|
139
|
+
exports.uniqueValues = M;
|
|
133
140
|
|
|
134
141
|
return exports;
|
|
135
142
|
|