@fgv/ts-random 5.1.0-8 → 5.1.0-9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (118) hide show
  1. package/.rush/temp/chunked-rush-logs/ts-random.build.chunks.jsonl +6 -0
  2. package/.rush/temp/f2b77fef5ae7ce9231b50310b3a1f4766e374fe0.tar.log +121 -0
  3. package/.rush/temp/operation/build/all.log +6 -0
  4. package/.rush/temp/operation/build/log-chunks.jsonl +6 -0
  5. package/.rush/temp/operation/build/state.json +3 -0
  6. package/.rush/temp/shrinkwrap-deps.json +610 -0
  7. package/dist/generator/generators.js +207 -0
  8. package/dist/generator/generators.js.map +1 -0
  9. package/dist/generator/index.js +22 -0
  10. package/dist/generator/index.js.map +1 -0
  11. package/dist/generator/randomSource.js +141 -0
  12. package/dist/generator/randomSource.js.map +1 -0
  13. package/dist/generator-data/charClasses.js +95 -0
  14. package/dist/generator-data/charClasses.js.map +1 -0
  15. package/dist/generator-data/index.js +22 -0
  16. package/dist/generator-data/index.js.map +1 -0
  17. package/dist/generator-data/words/adjectives.js +247 -0
  18. package/dist/generator-data/words/adjectives.js.map +1 -0
  19. package/dist/generator-data/words/animals.js +75 -0
  20. package/dist/generator-data/words/animals.js.map +1 -0
  21. package/dist/generator-data/words/cities.js +229 -0
  22. package/dist/generator-data/words/cities.js.map +1 -0
  23. package/dist/generator-data/words/colors.js +56 -0
  24. package/dist/generator-data/words/colors.js.map +1 -0
  25. package/dist/generator-data/words/countries.js +217 -0
  26. package/dist/generator-data/words/countries.js.map +1 -0
  27. package/dist/generator-data/words/domains.js +47 -0
  28. package/dist/generator-data/words/domains.js.map +1 -0
  29. package/dist/generator-data/words/gerunds.js +126 -0
  30. package/dist/generator-data/words/gerunds.js.map +1 -0
  31. package/dist/generator-data/words/index.js +29 -0
  32. package/dist/generator-data/words/index.js.map +1 -0
  33. package/dist/generator-data/words/jobs.js +175 -0
  34. package/dist/generator-data/words/jobs.js.map +1 -0
  35. package/dist/generator-data/words/names.js +714 -0
  36. package/dist/generator-data/words/names.js.map +1 -0
  37. package/dist/index.js +7 -0
  38. package/dist/index.js.map +1 -0
  39. package/dist/test/unit/generators.test.js +596 -0
  40. package/dist/test/unit/generators.test.js.map +1 -0
  41. package/dist/test/unit/randomSource.test.js +452 -0
  42. package/dist/test/unit/randomSource.test.js.map +1 -0
  43. package/lib/generator/generators.d.ts +142 -0
  44. package/lib/generator/generators.d.ts.map +1 -0
  45. package/lib/generator/generators.js +211 -0
  46. package/lib/generator/generators.js.map +1 -0
  47. package/lib/generator/index.d.ts +3 -0
  48. package/lib/generator/index.d.ts.map +1 -0
  49. package/lib/generator/index.js +38 -0
  50. package/lib/generator/index.js.map +1 -0
  51. package/lib/generator/randomSource.d.ts +115 -0
  52. package/lib/generator/randomSource.d.ts.map +1 -0
  53. package/lib/generator/randomSource.js +145 -0
  54. package/lib/generator/randomSource.js.map +1 -0
  55. package/lib/generator-data/charClasses.d.ts +76 -0
  56. package/lib/generator-data/charClasses.d.ts.map +1 -0
  57. package/lib/generator-data/charClasses.js +98 -0
  58. package/lib/generator-data/charClasses.js.map +1 -0
  59. package/lib/generator-data/index.d.ts +3 -0
  60. package/lib/generator-data/index.d.ts.map +1 -0
  61. package/lib/generator-data/index.js +58 -0
  62. package/lib/generator-data/index.js.map +1 -0
  63. package/lib/generator-data/words/adjectives.d.ts +2 -0
  64. package/lib/generator-data/words/adjectives.d.ts.map +1 -0
  65. package/lib/generator-data/words/adjectives.js +250 -0
  66. package/lib/generator-data/words/adjectives.js.map +1 -0
  67. package/lib/generator-data/words/animals.d.ts +2 -0
  68. package/lib/generator-data/words/animals.d.ts.map +1 -0
  69. package/lib/generator-data/words/animals.js +78 -0
  70. package/lib/generator-data/words/animals.js.map +1 -0
  71. package/lib/generator-data/words/cities.d.ts +2 -0
  72. package/lib/generator-data/words/cities.d.ts.map +1 -0
  73. package/lib/generator-data/words/cities.js +232 -0
  74. package/lib/generator-data/words/cities.js.map +1 -0
  75. package/lib/generator-data/words/colors.d.ts +2 -0
  76. package/lib/generator-data/words/colors.d.ts.map +1 -0
  77. package/lib/generator-data/words/colors.js +59 -0
  78. package/lib/generator-data/words/colors.js.map +1 -0
  79. package/lib/generator-data/words/countries.d.ts +2 -0
  80. package/lib/generator-data/words/countries.d.ts.map +1 -0
  81. package/lib/generator-data/words/countries.js +220 -0
  82. package/lib/generator-data/words/countries.js.map +1 -0
  83. package/lib/generator-data/words/domains.d.ts +2 -0
  84. package/lib/generator-data/words/domains.d.ts.map +1 -0
  85. package/lib/generator-data/words/domains.js +50 -0
  86. package/lib/generator-data/words/domains.js.map +1 -0
  87. package/lib/generator-data/words/gerunds.d.ts +2 -0
  88. package/lib/generator-data/words/gerunds.d.ts.map +1 -0
  89. package/lib/generator-data/words/gerunds.js +129 -0
  90. package/lib/generator-data/words/gerunds.js.map +1 -0
  91. package/lib/generator-data/words/index.d.ts +10 -0
  92. package/lib/generator-data/words/index.d.ts.map +1 -0
  93. package/lib/generator-data/words/index.js +45 -0
  94. package/lib/generator-data/words/index.js.map +1 -0
  95. package/lib/generator-data/words/jobs.d.ts +2 -0
  96. package/lib/generator-data/words/jobs.d.ts.map +1 -0
  97. package/lib/generator-data/words/jobs.js +178 -0
  98. package/lib/generator-data/words/jobs.js.map +1 -0
  99. package/lib/generator-data/words/names.d.ts +21 -0
  100. package/lib/generator-data/words/names.d.ts.map +1 -0
  101. package/lib/generator-data/words/names.js +717 -0
  102. package/lib/generator-data/words/names.js.map +1 -0
  103. package/lib/index.d.ts +7 -0
  104. package/lib/index.d.ts.map +1 -0
  105. package/lib/index.js +43 -0
  106. package/lib/index.js.map +1 -0
  107. package/lib/test/unit/generators.test.d.ts +2 -0
  108. package/lib/test/unit/generators.test.d.ts.map +1 -0
  109. package/lib/test/unit/generators.test.js +598 -0
  110. package/lib/test/unit/generators.test.js.map +1 -0
  111. package/lib/test/unit/randomSource.test.d.ts +2 -0
  112. package/lib/test/unit/randomSource.test.d.ts.map +1 -0
  113. package/lib/test/unit/randomSource.test.js +454 -0
  114. package/lib/test/unit/randomSource.test.js.map +1 -0
  115. package/package.json +17 -17
  116. package/rush-logs/ts-random.build.cache.log +3 -0
  117. package/rush-logs/ts-random.build.log +6 -0
  118. package/temp/build/typescript/ts_8nwakTlr.json +1 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"randomSource.d.ts","sourceRoot":"","sources":["../../src/generator/randomSource.ts"],"names":[],"mappings":"AAoBA,OAAO,EAAiB,MAAM,EAAE,MAAM,eAAe,CAAC;AAEtD;;;GAGG;AACH,MAAM,WAAW,SAAS;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;CACf;AAED;;;GAGG;AACH,MAAM,WAAW,WAAW;IAC1B,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;CACnB;AAED;;;GAGG;AACH,MAAM,MAAM,kBAAkB,GAAG,CAAC,KAAK,EAAE,MAAM,KAAK,WAAW,CAAC;AAEhE;;;GAGG;AACH,MAAM,WAAW,oCAAoC;IACnD,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,aAAa,CAAC,MAAM,CAAC,CAAC;IAC/B,IAAI,EAAE,kBAAkB,CAAC;CAC1B;AAED;;;GAGG;AACH,MAAM,WAAW,+BAA+B;IAC9C,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACvB,IAAI,CAAC,EAAE,kBAAkB,CAAC;CAC3B;AAED;;;GAGG;AACH,qBAAa,kBAAkB;IAC7B,OAAO,CAAC,YAAY,CAAS;IAC7B,SAAgB,IAAI,EAAE,MAAM,CAAC;IAC7B,SAAgB,OAAO,EAAE,aAAa,CAAC,MAAM,CAAC,CAAC;IAC/C,OAAO,CAAC,QAAQ,CAAS;IACzB,OAAO,CAAC,KAAK,CAAqB;IAElC;;OAEG;IACH,IAAW,OAAO,IAAI,MAAM,CAE3B;IAED;;;OAGG;IACH,SAAS,aAAa,IAAI,EAAE,oCAAoC;IAQhE;;;;OAIG;WACW,MAAM,CAAC,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC,kBAAkB,CAAC;IAExE;;;;OAIG;WACW,MAAM,CAAC,IAAI,EAAE,+BAA+B,GAAG,MAAM,CAAC,kBAAkB,CAAC;IAoBvF;;;OAGG;IACI,IAAI,IAAI,MAAM;IAOrB;;;OAGG;IACI,KAAK,IAAI,kBAAkB;IAUlC;;;;OAIG;IACI,WAAW,CAAC,KAAK,EAAE,MAAM,GAAG,kBAAkB;IAMrD;;;;OAIG;WACW,YAAY,CAAC,YAAY,EAAE,MAAM,GAAG,WAAW;IAW7D;;;;OAIG;WACW,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS;IAWxD;;;;;OAKG;WACW,iBAAiB,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,SAAS;IAKxE;;;;OAIG;IACH,OAAO,CAAC,MAAM,CAAC,UAAU;CAU1B"}
@@ -0,0 +1,145 @@
1
+ "use strict";
2
+ // Copyright (c) 2026 Erik Fortune
3
+ //
4
+ // Permission is hereby granted, free of charge, to any person obtaining a copy
5
+ // of this software and associated documentation files (the "Software"), to deal
6
+ // in the Software without restriction, including without limitation the rights
7
+ // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
+ // copies of the Software, and to permit persons to whom the Software is
9
+ // furnished to do so, subject to the following conditions:
10
+ //
11
+ // The above copyright notice and this permission notice shall be included in all
12
+ // copies or substantial portions of the Software.
13
+ //
14
+ // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
+ // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
+ // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
+ // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
+ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
+ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20
+ // SOFTWARE.
21
+ Object.defineProperty(exports, "__esModule", { value: true });
22
+ exports.SeededRandomSource = void 0;
23
+ const ts_utils_1 = require("@fgv/ts-utils");
24
+ /**
25
+ * Seeded random number generator that can be cloned and used for deterministic generation.
26
+ * @public
27
+ */
28
+ class SeededRandomSource {
29
+ /**
30
+ * Gets the current counter value.
31
+ */
32
+ get counter() {
33
+ return this._counter;
34
+ }
35
+ /**
36
+ * Creates a new seeded random source.
37
+ * @param seed - The seed value.
38
+ */
39
+ constructor(init) {
40
+ this.currentState = init.state;
41
+ this.seed = init.seed;
42
+ this._counter = init.counter;
43
+ this._step = init.step;
44
+ this.lineage = init.lineage;
45
+ }
46
+ static create(seedOrInit) {
47
+ var _a, _b;
48
+ const init = typeof seedOrInit === 'object' ? seedOrInit : { seed: seedOrInit };
49
+ const step = (_a = init === null || init === void 0 ? void 0 : init.step) !== null && _a !== void 0 ? _a : SeededRandomSource.mulberryStep;
50
+ const { seed, state } = SeededRandomSource.hashSeed((_b = init === null || init === void 0 ? void 0 : init.seed) !== null && _b !== void 0 ? _b : Date.now());
51
+ return (0, ts_utils_1.captureResult)(() => new SeededRandomSource({
52
+ state,
53
+ seed,
54
+ counter: 0,
55
+ lineage: [],
56
+ step
57
+ }));
58
+ }
59
+ /**
60
+ * Generates the next random number.
61
+ * @returns A random number between 0 and 1.
62
+ */
63
+ next() {
64
+ this._counter += 1;
65
+ const { value, nextState } = this._step(this.currentState);
66
+ this.currentState = nextState;
67
+ return value;
68
+ }
69
+ /**
70
+ * Creates a clone of this random source.
71
+ * @returns A new seeded random source with the same state.
72
+ */
73
+ clone() {
74
+ return new SeededRandomSource({
75
+ state: this.currentState,
76
+ seed: this.seed,
77
+ counter: this._counter,
78
+ lineage: this.lineage,
79
+ step: this._step
80
+ });
81
+ }
82
+ /**
83
+ * Creates a child random source with a label.
84
+ * @param label - The label for the child.
85
+ * @returns A new seeded random source with a hashed state and label.
86
+ */
87
+ createChild(label) {
88
+ const { seed, state } = SeededRandomSource.hashStateAndLabel(this.currentState, label);
89
+ const lineage = [...this.lineage, `${this._counter}:${label}`];
90
+ return new SeededRandomSource({ state, seed, counter: 0, lineage, step: this._step });
91
+ }
92
+ /**
93
+ * Steps a mulberry32 random number generator state and returns the next value.
94
+ * @param currentState - The current state of the generator.
95
+ * @returns The next random number and the next state.
96
+ */
97
+ static mulberryStep(currentState) {
98
+ const nextState = (currentState + 0x6d2b79f5) >>> 0;
99
+ let t = nextState;
100
+ t = Math.imul(t ^ (t >>> 15), t | 1);
101
+ t ^= t + Math.imul(t ^ (t >>> 7), t | 61);
102
+ const value = ((t ^ (t >>> 14)) >>> 0) / 4294967296;
103
+ return { value, nextState };
104
+ }
105
+ /**
106
+ * Hashes a seed value.
107
+ * @param seed - The seed value.
108
+ * @returns A hashed seed value.
109
+ */
110
+ static hashSeed(seed) {
111
+ if (typeof seed === 'number') {
112
+ return { seed: seed.toString(), state: seed };
113
+ }
114
+ const parsedSeed = Number(seed);
115
+ if (!isNaN(parsedSeed) && isFinite(parsedSeed)) {
116
+ return { seed, state: parsedSeed };
117
+ }
118
+ return { seed, state: SeededRandomSource.hashString(seed) };
119
+ }
120
+ /**
121
+ * Hashes a state and label.
122
+ * @param state - The state value.
123
+ * @param label - The label value.
124
+ * @returns A hashed state and label value.
125
+ */
126
+ static hashStateAndLabel(state, label) {
127
+ const seed = `${state >>> 0}:${label}`;
128
+ return { seed, state: SeededRandomSource.hashString(seed) };
129
+ }
130
+ /**
131
+ * Hashes a string value.
132
+ * @param value - The string value.
133
+ * @returns A hashed string value.
134
+ */
135
+ static hashString(value) {
136
+ let hash = 0x811c9dc5;
137
+ for (let index = 0; index < value.length; index++) {
138
+ hash ^= value.charCodeAt(index);
139
+ hash = Math.imul(hash, 0x01000193);
140
+ }
141
+ return hash >>> 0;
142
+ }
143
+ }
144
+ exports.SeededRandomSource = SeededRandomSource;
145
+ //# sourceMappingURL=randomSource.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"randomSource.js","sourceRoot":"","sources":["../../src/generator/randomSource.ts"],"names":[],"mappings":"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","sourcesContent":["// Copyright (c) 2026 Erik Fortune\n//\n// Permission is hereby granted, free of charge, to any person obtaining a copy\n// of this software and associated documentation files (the \"Software\"), to deal\n// in the Software without restriction, including without limitation the rights\n// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n// copies of the Software, and to permit persons to whom the Software is\n// furnished to do so, subject to the following conditions:\n//\n// The above copyright notice and this permission notice shall be included in all\n// copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n// SOFTWARE.\n\nimport { captureResult, Result } from '@fgv/ts-utils';\n\n/**\n * Represents a seed as both a string and a number.\n * @public\n */\nexport interface ISeedPair {\n seed: string;\n state: number;\n}\n\n/**\n * Result of an internal next() operation.\n * @public\n */\nexport interface INextResult {\n value: number;\n nextState: number;\n}\n\n/**\n * Function that steps a random number generator state and returns the next value.\n * @public\n */\nexport type RandomStepFunction = (state: number) => INextResult;\n\n/**\n * Constructor params for a {@link Generator.SeededRandomSource | SeededRandomSource}.\n * @public\n */\nexport interface ISeededRandomSourceConstructorParams {\n state: number;\n seed: string;\n counter: number;\n lineage: ReadonlyArray<string>;\n step: RandomStepFunction;\n}\n\n/**\n * Static create parameters for a {@link Generator.SeededRandomSource | SeededRandomSource}.\n * @public\n */\nexport interface ISeededRandomSourceCreateParams {\n seed?: number | string;\n step?: RandomStepFunction;\n}\n\n/**\n * Seeded random number generator that can be cloned and used for deterministic generation.\n * @public\n */\nexport class SeededRandomSource {\n private currentState: number;\n public readonly seed: string;\n public readonly lineage: ReadonlyArray<string>;\n private _counter: number;\n private _step: RandomStepFunction;\n\n /**\n * Gets the current counter value.\n */\n public get counter(): number {\n return this._counter;\n }\n\n /**\n * Creates a new seeded random source.\n * @param seed - The seed value.\n */\n protected constructor(init: ISeededRandomSourceConstructorParams) {\n this.currentState = init.state;\n this.seed = init.seed;\n this._counter = init.counter;\n this._step = init.step;\n this.lineage = init.lineage;\n }\n\n /**\n * Creates a new seeded random source from an optional seed.\n * @param seed - The optional seed value.\n * @returns A new seeded random source.\n */\n public static create(seed?: number | string): Result<SeededRandomSource>;\n\n /**\n * Creates a new seeded random source from {@link Generator.ISeededRandomSourceCreateParams | ISeededRandomSourceCreateParams}.\n * @param init - The initialization parameters.\n * @returns A new seeded random source.\n */\n public static create(init: ISeededRandomSourceCreateParams): Result<SeededRandomSource>;\n\n public static create(\n seedOrInit?: number | string | ISeededRandomSourceCreateParams\n ): Result<SeededRandomSource> {\n const init = typeof seedOrInit === 'object' ? seedOrInit : { seed: seedOrInit };\n const step = init?.step ?? SeededRandomSource.mulberryStep;\n const { seed, state } = SeededRandomSource.hashSeed(init?.seed ?? Date.now());\n return captureResult(\n () =>\n new SeededRandomSource({\n state,\n seed,\n counter: 0,\n lineage: [],\n step\n })\n );\n }\n\n /**\n * Generates the next random number.\n * @returns A random number between 0 and 1.\n */\n public next(): number {\n this._counter += 1;\n const { value, nextState } = this._step(this.currentState);\n this.currentState = nextState;\n return value;\n }\n\n /**\n * Creates a clone of this random source.\n * @returns A new seeded random source with the same state.\n */\n public clone(): SeededRandomSource {\n return new SeededRandomSource({\n state: this.currentState,\n seed: this.seed,\n counter: this._counter,\n lineage: this.lineage,\n step: this._step\n });\n }\n\n /**\n * Creates a child random source with a label.\n * @param label - The label for the child.\n * @returns A new seeded random source with a hashed state and label.\n */\n public createChild(label: string): SeededRandomSource {\n const { seed, state } = SeededRandomSource.hashStateAndLabel(this.currentState, label);\n const lineage = [...this.lineage, `${this._counter}:${label}`];\n return new SeededRandomSource({ state, seed, counter: 0, lineage, step: this._step });\n }\n\n /**\n * Steps a mulberry32 random number generator state and returns the next value.\n * @param currentState - The current state of the generator.\n * @returns The next random number and the next state.\n */\n public static mulberryStep(currentState: number): INextResult {\n const nextState = (currentState + 0x6d2b79f5) >>> 0;\n\n let t = nextState;\n t = Math.imul(t ^ (t >>> 15), t | 1);\n t ^= t + Math.imul(t ^ (t >>> 7), t | 61);\n\n const value = ((t ^ (t >>> 14)) >>> 0) / 4294967296;\n return { value, nextState };\n }\n\n /**\n * Hashes a seed value.\n * @param seed - The seed value.\n * @returns A hashed seed value.\n */\n public static hashSeed(seed: number | string): ISeedPair {\n if (typeof seed === 'number') {\n return { seed: seed.toString(), state: seed };\n }\n const parsedSeed = Number(seed);\n if (!isNaN(parsedSeed) && isFinite(parsedSeed)) {\n return { seed, state: parsedSeed };\n }\n return { seed, state: SeededRandomSource.hashString(seed) };\n }\n\n /**\n * Hashes a state and label.\n * @param state - The state value.\n * @param label - The label value.\n * @returns A hashed state and label value.\n */\n public static hashStateAndLabel(state: number, label: string): ISeedPair {\n const seed = `${state >>> 0}:${label}`;\n return { seed, state: SeededRandomSource.hashString(seed) };\n }\n\n /**\n * Hashes a string value.\n * @param value - The string value.\n * @returns A hashed string value.\n */\n private static hashString(value: string): number {\n let hash = 0x811c9dc5;\n\n for (let index = 0; index < value.length; index++) {\n hash ^= value.charCodeAt(index);\n hash = Math.imul(hash, 0x01000193);\n }\n\n return hash >>> 0;\n }\n}\n"]}
@@ -0,0 +1,76 @@
1
+ /**
2
+ * Lowercase letters
3
+ * @public
4
+ */
5
+ export declare const lowerCase: string;
6
+ /**
7
+ * Uppercase letters
8
+ * @public
9
+ */
10
+ export declare const upperCase: string;
11
+ /**
12
+ * Digits
13
+ * @public
14
+ */
15
+ export declare const digits: string;
16
+ /**
17
+ * Letters
18
+ * @public
19
+ */
20
+ export declare const letters: string;
21
+ /**
22
+ * Alphanumeric
23
+ * @public
24
+ */
25
+ export declare const alphanumeric: string;
26
+ /**
27
+ * Symbols
28
+ * @public
29
+ */
30
+ export declare const symbols: string;
31
+ /**
32
+ * Whitespace
33
+ * @public
34
+ */
35
+ export declare const whitespace: string;
36
+ /**
37
+ * Printable
38
+ * @public
39
+ */
40
+ export declare const printable: string;
41
+ /**
42
+ * All
43
+ * @public
44
+ */
45
+ export declare const all: string;
46
+ /**
47
+ * Hex digits
48
+ * @public
49
+ */
50
+ export declare const hexDigits: string;
51
+ /**
52
+ * Hex digits upper
53
+ * @public
54
+ */
55
+ export declare const hexDigitsUpper: string;
56
+ /**
57
+ * Hex
58
+ * @public
59
+ */
60
+ export declare const hex: string;
61
+ /**
62
+ * Base64
63
+ * @public
64
+ */
65
+ export declare const base64: string;
66
+ /**
67
+ * Base64 URL
68
+ * @public
69
+ */
70
+ export declare const base64Url: string;
71
+ /**
72
+ * Base64 URL no padding
73
+ * @public
74
+ */
75
+ export declare const base64UrlNoPadding: string;
76
+ //# sourceMappingURL=charClasses.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"charClasses.d.ts","sourceRoot":"","sources":["../../src/generator-data/charClasses.ts"],"names":[],"mappings":"AAoBA;;;GAGG;AACH,eAAO,MAAM,SAAS,EAAE,MAAqC,CAAC;AAC9D;;;GAGG;AACH,eAAO,MAAM,SAAS,EAAE,MAAqC,CAAC;AAC9D;;;GAGG;AACH,eAAO,MAAM,MAAM,EAAE,MAAqB,CAAC;AAC3C;;;GAGG;AACH,eAAO,MAAM,OAAO,EAAE,MAA8B,CAAC;AACrD;;;GAGG;AACH,eAAO,MAAM,YAAY,EAAE,MAAyB,CAAC;AACrD;;;GAGG;AACH,eAAO,MAAM,OAAO,EAAE,MAAqC,CAAC;AAC5D;;;GAGG;AACH,eAAO,MAAM,UAAU,EAAE,MAAkB,CAAC;AAC5C;;;GAGG;AACH,eAAO,MAAM,SAAS,EAAE,MAAgD,CAAC;AACzE;;;GAGG;AACH,eAAO,MAAM,GAAG,EAAE,MAAkB,CAAC;AACrC;;;GAGG;AACH,eAAO,MAAM,SAAS,EAAE,MAA2B,CAAC;AACpD;;;GAGG;AACH,eAAO,MAAM,cAAc,EAAE,MAA2B,CAAC;AACzD;;;GAGG;AACH,eAAO,MAAM,GAAG,EAAE,MAAmC,CAAC;AACtD;;;GAGG;AACH,eAAO,MAAM,MAAM,EAAE,MAAgC,CAAC;AACtD;;;GAGG;AACH,eAAO,MAAM,SAAS,EAAE,MAAgC,CAAC;AACzD;;;GAGG;AACH,eAAO,MAAM,kBAAkB,EAAE,MAAwB,CAAC"}
@@ -0,0 +1,98 @@
1
+ "use strict";
2
+ // Copyright (c) 2026 Erik Fortune
3
+ //
4
+ // Permission is hereby granted, free of charge, to any person obtaining a copy
5
+ // of this software and associated documentation files (the "Software"), to deal
6
+ // in the Software without restriction, including without limitation the rights
7
+ // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
+ // copies of the Software, and to permit persons to whom the Software is
9
+ // furnished to do so, subject to the following conditions:
10
+ //
11
+ // The above copyright notice and this permission notice shall be included in all
12
+ // copies or substantial portions of the Software.
13
+ //
14
+ // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
+ // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
+ // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
+ // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
+ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
+ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20
+ // SOFTWARE.
21
+ Object.defineProperty(exports, "__esModule", { value: true });
22
+ exports.base64UrlNoPadding = exports.base64Url = exports.base64 = exports.hex = exports.hexDigitsUpper = exports.hexDigits = exports.all = exports.printable = exports.whitespace = exports.symbols = exports.alphanumeric = exports.letters = exports.digits = exports.upperCase = exports.lowerCase = void 0;
23
+ /**
24
+ * Lowercase letters
25
+ * @public
26
+ */
27
+ exports.lowerCase = 'abcdefghijklmnopqrstuvwxyz';
28
+ /**
29
+ * Uppercase letters
30
+ * @public
31
+ */
32
+ exports.upperCase = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ';
33
+ /**
34
+ * Digits
35
+ * @public
36
+ */
37
+ exports.digits = '0123456789';
38
+ /**
39
+ * Letters
40
+ * @public
41
+ */
42
+ exports.letters = exports.lowerCase + exports.upperCase;
43
+ /**
44
+ * Alphanumeric
45
+ * @public
46
+ */
47
+ exports.alphanumeric = exports.letters + exports.digits;
48
+ /**
49
+ * Symbols
50
+ * @public
51
+ */
52
+ exports.symbols = '!@#$%^&*()_+-=[]{}|;:,.<>?';
53
+ /**
54
+ * Whitespace
55
+ * @public
56
+ */
57
+ exports.whitespace = ' \t\n\r';
58
+ /**
59
+ * Printable
60
+ * @public
61
+ */
62
+ exports.printable = exports.letters + exports.digits + exports.symbols + exports.whitespace;
63
+ /**
64
+ * All
65
+ * @public
66
+ */
67
+ exports.all = exports.printable;
68
+ /**
69
+ * Hex digits
70
+ * @public
71
+ */
72
+ exports.hexDigits = '0123456789abcdef';
73
+ /**
74
+ * Hex digits upper
75
+ * @public
76
+ */
77
+ exports.hexDigitsUpper = '0123456789ABCDEF';
78
+ /**
79
+ * Hex
80
+ * @public
81
+ */
82
+ exports.hex = exports.hexDigits + exports.hexDigitsUpper;
83
+ /**
84
+ * Base64
85
+ * @public
86
+ */
87
+ exports.base64 = exports.letters + exports.digits + '+/';
88
+ /**
89
+ * Base64 URL
90
+ * @public
91
+ */
92
+ exports.base64Url = exports.letters + exports.digits + '-_';
93
+ /**
94
+ * Base64 URL no padding
95
+ * @public
96
+ */
97
+ exports.base64UrlNoPadding = exports.base64Url + '=';
98
+ //# sourceMappingURL=charClasses.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"charClasses.js","sourceRoot":"","sources":["../../src/generator-data/charClasses.ts"],"names":[],"mappings":";AAAA,kCAAkC;AAClC,EAAE;AACF,+EAA+E;AAC/E,gFAAgF;AAChF,+EAA+E;AAC/E,4EAA4E;AAC5E,wEAAwE;AACxE,2DAA2D;AAC3D,EAAE;AACF,iFAAiF;AACjF,kDAAkD;AAClD,EAAE;AACF,6EAA6E;AAC7E,2EAA2E;AAC3E,8EAA8E;AAC9E,yEAAyE;AACzE,gFAAgF;AAChF,gFAAgF;AAChF,YAAY;;;AAEZ;;;GAGG;AACU,QAAA,SAAS,GAAW,4BAA4B,CAAC;AAC9D;;;GAGG;AACU,QAAA,SAAS,GAAW,4BAA4B,CAAC;AAC9D;;;GAGG;AACU,QAAA,MAAM,GAAW,YAAY,CAAC;AAC3C;;;GAGG;AACU,QAAA,OAAO,GAAW,iBAAS,GAAG,iBAAS,CAAC;AACrD;;;GAGG;AACU,QAAA,YAAY,GAAW,eAAO,GAAG,cAAM,CAAC;AACrD;;;GAGG;AACU,QAAA,OAAO,GAAW,4BAA4B,CAAC;AAC5D;;;GAGG;AACU,QAAA,UAAU,GAAW,SAAS,CAAC;AAC5C;;;GAGG;AACU,QAAA,SAAS,GAAW,eAAO,GAAG,cAAM,GAAG,eAAO,GAAG,kBAAU,CAAC;AACzE;;;GAGG;AACU,QAAA,GAAG,GAAW,iBAAS,CAAC;AACrC;;;GAGG;AACU,QAAA,SAAS,GAAW,kBAAkB,CAAC;AACpD;;;GAGG;AACU,QAAA,cAAc,GAAW,kBAAkB,CAAC;AACzD;;;GAGG;AACU,QAAA,GAAG,GAAW,iBAAS,GAAG,sBAAc,CAAC;AACtD;;;GAGG;AACU,QAAA,MAAM,GAAW,eAAO,GAAG,cAAM,GAAG,IAAI,CAAC;AACtD;;;GAGG;AACU,QAAA,SAAS,GAAW,eAAO,GAAG,cAAM,GAAG,IAAI,CAAC;AACzD;;;GAGG;AACU,QAAA,kBAAkB,GAAW,iBAAS,GAAG,GAAG,CAAC","sourcesContent":["// Copyright (c) 2026 Erik Fortune\n//\n// Permission is hereby granted, free of charge, to any person obtaining a copy\n// of this software and associated documentation files (the \"Software\"), to deal\n// in the Software without restriction, including without limitation the rights\n// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n// copies of the Software, and to permit persons to whom the Software is\n// furnished to do so, subject to the following conditions:\n//\n// The above copyright notice and this permission notice shall be included in all\n// copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n// SOFTWARE.\n\n/**\n * Lowercase letters\n * @public\n */\nexport const lowerCase: string = 'abcdefghijklmnopqrstuvwxyz';\n/**\n * Uppercase letters\n * @public\n */\nexport const upperCase: string = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ';\n/**\n * Digits\n * @public\n */\nexport const digits: string = '0123456789';\n/**\n * Letters\n * @public\n */\nexport const letters: string = lowerCase + upperCase;\n/**\n * Alphanumeric\n * @public\n */\nexport const alphanumeric: string = letters + digits;\n/**\n * Symbols\n * @public\n */\nexport const symbols: string = '!@#$%^&*()_+-=[]{}|;:,.<>?';\n/**\n * Whitespace\n * @public\n */\nexport const whitespace: string = ' \\t\\n\\r';\n/**\n * Printable\n * @public\n */\nexport const printable: string = letters + digits + symbols + whitespace;\n/**\n * All\n * @public\n */\nexport const all: string = printable;\n/**\n * Hex digits\n * @public\n */\nexport const hexDigits: string = '0123456789abcdef';\n/**\n * Hex digits upper\n * @public\n */\nexport const hexDigitsUpper: string = '0123456789ABCDEF';\n/**\n * Hex\n * @public\n */\nexport const hex: string = hexDigits + hexDigitsUpper;\n/**\n * Base64\n * @public\n */\nexport const base64: string = letters + digits + '+/';\n/**\n * Base64 URL\n * @public\n */\nexport const base64Url: string = letters + digits + '-_';\n/**\n * Base64 URL no padding\n * @public\n */\nexport const base64UrlNoPadding: string = base64Url + '=';\n"]}
@@ -0,0 +1,3 @@
1
+ export * as Chars from './charClasses';
2
+ export * as Words from './words';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/generator-data/index.ts"],"names":[],"mappings":"AAoBA,OAAO,KAAK,KAAK,MAAM,eAAe,CAAC;AACvC,OAAO,KAAK,KAAK,MAAM,SAAS,CAAC"}
@@ -0,0 +1,58 @@
1
+ "use strict";
2
+ // Copyright (c) 2026 Erik Fortune
3
+ //
4
+ // Permission is hereby granted, free of charge, to any person obtaining a copy
5
+ // of this software and associated documentation files (the "Software"), to deal
6
+ // in the Software without restriction, including without limitation the rights
7
+ // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
+ // copies of the Software, and to permit persons to whom the Software is
9
+ // furnished to do so, subject to the following conditions:
10
+ //
11
+ // The above copyright notice and this permission notice shall be included in all
12
+ // copies or substantial portions of the Software.
13
+ //
14
+ // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
+ // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
+ // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
+ // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
+ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
+ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20
+ // SOFTWARE.
21
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
22
+ if (k2 === undefined) k2 = k;
23
+ var desc = Object.getOwnPropertyDescriptor(m, k);
24
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
25
+ desc = { enumerable: true, get: function() { return m[k]; } };
26
+ }
27
+ Object.defineProperty(o, k2, desc);
28
+ }) : (function(o, m, k, k2) {
29
+ if (k2 === undefined) k2 = k;
30
+ o[k2] = m[k];
31
+ }));
32
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
33
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
34
+ }) : function(o, v) {
35
+ o["default"] = v;
36
+ });
37
+ var __importStar = (this && this.__importStar) || (function () {
38
+ var ownKeys = function(o) {
39
+ ownKeys = Object.getOwnPropertyNames || function (o) {
40
+ var ar = [];
41
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
42
+ return ar;
43
+ };
44
+ return ownKeys(o);
45
+ };
46
+ return function (mod) {
47
+ if (mod && mod.__esModule) return mod;
48
+ var result = {};
49
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
50
+ __setModuleDefault(result, mod);
51
+ return result;
52
+ };
53
+ })();
54
+ Object.defineProperty(exports, "__esModule", { value: true });
55
+ exports.Words = exports.Chars = void 0;
56
+ exports.Chars = __importStar(require("./charClasses"));
57
+ exports.Words = __importStar(require("./words"));
58
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/generator-data/index.ts"],"names":[],"mappings":";AAAA,kCAAkC;AAClC,EAAE;AACF,+EAA+E;AAC/E,gFAAgF;AAChF,+EAA+E;AAC/E,4EAA4E;AAC5E,wEAAwE;AACxE,2DAA2D;AAC3D,EAAE;AACF,iFAAiF;AACjF,kDAAkD;AAClD,EAAE;AACF,6EAA6E;AAC7E,2EAA2E;AAC3E,8EAA8E;AAC9E,yEAAyE;AACzE,gFAAgF;AAChF,gFAAgF;AAChF,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEZ,uDAAuC;AACvC,iDAAiC","sourcesContent":["// Copyright (c) 2026 Erik Fortune\n//\n// Permission is hereby granted, free of charge, to any person obtaining a copy\n// of this software and associated documentation files (the \"Software\"), to deal\n// in the Software without restriction, including without limitation the rights\n// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n// copies of the Software, and to permit persons to whom the Software is\n// furnished to do so, subject to the following conditions:\n//\n// The above copyright notice and this permission notice shall be included in all\n// copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n// SOFTWARE.\n\nexport * as Chars from './charClasses';\nexport * as Words from './words';\n"]}
@@ -0,0 +1,2 @@
1
+ export declare const Adjectives: ReadonlyArray<string>;
2
+ //# sourceMappingURL=adjectives.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"adjectives.d.ts","sourceRoot":"","sources":["../../../src/generator-data/words/adjectives.ts"],"names":[],"mappings":"AAoBA,eAAO,MAAM,UAAU,EAAE,aAAa,CAAC,MAAM,CAkO5C,CAAC"}