@orieljs/framework 0.1.0-alpha.1 → 0.1.0-alpha.10
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/NOTICE +7 -0
- package/README.md +10 -1
- package/TRADEMARKS.md +33 -0
- package/dist/chunk-7ZQZYDOC.js +3253 -0
- package/dist/chunk-7ZQZYDOC.js.map +1 -0
- package/dist/{chunk-K6MAA3RM.js → chunk-GVNLZZTN.js} +7 -1
- package/dist/chunk-GVNLZZTN.js.map +1 -0
- package/dist/chunk-OXAATQA6.js +8433 -0
- package/dist/chunk-OXAATQA6.js.map +1 -0
- package/dist/{chunk-WI7E7Q46.js → chunk-VOYW3R5J.js} +8 -4
- package/dist/chunk-VOYW3R5J.js.map +1 -0
- package/dist/contracts.d.ts +841 -168
- package/dist/contracts.js +7 -1
- package/dist/index.d-WQpfdIbG.d.ts +630 -0
- package/dist/index.d.ts +2916 -5178
- package/dist/index.js +7357 -2609
- package/dist/index.js.map +1 -1
- package/dist/{jsx-runtime-B8J6xq-7.d.ts → jsx-runtime-6um4Mwfb.d.ts} +99 -149
- package/dist/jsx-runtime.d.ts +3 -1
- package/dist/jsx-runtime.js +3 -3
- package/dist/testing-CKwfWJGn.d.ts +1586 -0
- package/dist/testing.d.ts +3 -1408
- package/dist/testing.js +29 -5
- package/docs/authentication.md +487 -0
- package/docs/authorization.md +435 -0
- package/docs/cache.md +647 -0
- package/docs/collections.md +2270 -0
- package/docs/configuration.md +334 -0
- package/docs/console.md +652 -0
- package/docs/container.md +430 -0
- package/docs/controllers.md +406 -0
- package/docs/csrf.md +126 -0
- package/docs/database-testing.md +144 -0
- package/docs/database.md +236 -0
- package/docs/deployment.md +276 -0
- package/docs/eloquent-collections.md +218 -0
- package/docs/eloquent-factories.md +255 -0
- package/docs/eloquent-mutators.md +254 -0
- package/docs/eloquent-observers.md +145 -0
- package/docs/eloquent-relationships.md +557 -0
- package/docs/eloquent.md +494 -0
- package/docs/encryption.md +104 -0
- package/docs/errors.md +318 -0
- package/docs/events.md +336 -0
- package/docs/facades.md +278 -0
- package/docs/hashing.md +118 -0
- package/docs/helpers.md +1281 -0
- package/docs/http-tests.md +386 -0
- package/docs/inertia.md +485 -0
- package/docs/installation.md +209 -0
- package/docs/lifecycle.md +234 -0
- package/docs/live-tests.md +226 -0
- package/docs/live.md +910 -0
- package/docs/logging.md +255 -0
- package/docs/mail.md +619 -0
- package/docs/middleware.md +384 -0
- package/docs/migrations.md +416 -0
- package/docs/mocking.md +264 -0
- package/docs/navigation.json +273 -0
- package/docs/notifications.md +225 -0
- package/docs/pagination.md +247 -0
- package/docs/passwords.md +207 -0
- package/docs/providers.md +187 -0
- package/docs/queries.md +600 -0
- package/docs/queues.md +330 -0
- package/docs/requests.md +533 -0
- package/docs/responses.md +444 -0
- package/docs/routing.md +738 -0
- package/docs/scheduling.md +277 -0
- package/docs/seeding.md +122 -0
- package/docs/session.md +409 -0
- package/docs/starter-kits.md +396 -0
- package/docs/storage.md +192 -0
- package/docs/structure.md +264 -0
- package/docs/testing.md +165 -0
- package/docs/time-travel.md +138 -0
- package/docs/validation.md +1792 -0
- package/docs/verification.md +152 -0
- package/docs/views.md +566 -0
- package/docs/vite.md +322 -0
- package/package.json +35 -30
- package/dist/chunk-AI2RFMBT.js +0 -745
- package/dist/chunk-AI2RFMBT.js.map +0 -1
- package/dist/chunk-BZPCRKFQ.js +0 -2941
- package/dist/chunk-BZPCRKFQ.js.map +0 -1
- package/dist/chunk-K6MAA3RM.js.map +0 -1
- package/dist/chunk-WI7E7Q46.js.map +0 -1
|
@@ -0,0 +1,3253 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Application,
|
|
3
|
+
ConfigRepository,
|
|
4
|
+
Container
|
|
5
|
+
} from "./chunk-GVNLZZTN.js";
|
|
6
|
+
|
|
7
|
+
// ../Container/dist/index.js
|
|
8
|
+
import { AsyncLocalStorage } from "async_hooks";
|
|
9
|
+
function describe(abstract) {
|
|
10
|
+
return typeof abstract === "function" ? abstract.name || "<anonymous class>" : abstract.description;
|
|
11
|
+
}
|
|
12
|
+
var BindingResolutionError = class extends Error {
|
|
13
|
+
kind = "BindingResolution";
|
|
14
|
+
name = "BindingResolutionError";
|
|
15
|
+
};
|
|
16
|
+
var CircularDependencyError = class extends Error {
|
|
17
|
+
constructor(chain) {
|
|
18
|
+
super(`Circular dependency detected: ${chain.join(" -> ")}`);
|
|
19
|
+
this.chain = chain;
|
|
20
|
+
}
|
|
21
|
+
chain;
|
|
22
|
+
kind = "CircularDependency";
|
|
23
|
+
name = "CircularDependencyError";
|
|
24
|
+
};
|
|
25
|
+
var ContainerNotAvailableError = class extends Error {
|
|
26
|
+
kind = "ContainerNotAvailable";
|
|
27
|
+
name = "ContainerNotAvailableError";
|
|
28
|
+
constructor(what) {
|
|
29
|
+
super(
|
|
30
|
+
`Cannot resolve [${what}]: no container is available. inject(), helpers and facades only work while the application is running (inside a request, job, command, provider or app.run()). Don't call them at module top level.`
|
|
31
|
+
);
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
|
+
var ALS_KEY = /* @__PURE__ */ Symbol.for("oriel:container.als");
|
|
35
|
+
var GLOBAL_KEY = /* @__PURE__ */ Symbol.for("oriel:container.instance");
|
|
36
|
+
var BUILDING_KEY = /* @__PURE__ */ Symbol.for("oriel:container.building");
|
|
37
|
+
var g = globalThis;
|
|
38
|
+
var storage = g[ALS_KEY] ??= new AsyncLocalStorage();
|
|
39
|
+
var building = g[BUILDING_KEY] ??= {
|
|
40
|
+
keys: [],
|
|
41
|
+
names: [],
|
|
42
|
+
containers: []
|
|
43
|
+
};
|
|
44
|
+
function currentContainer() {
|
|
45
|
+
return building.containers.at(-1) ?? storage.getStore() ?? g[GLOBAL_KEY];
|
|
46
|
+
}
|
|
47
|
+
function inject(abstract) {
|
|
48
|
+
const container = currentContainer();
|
|
49
|
+
if (!container) throw new ContainerNotAvailableError(describe(abstract));
|
|
50
|
+
return container.make(abstract);
|
|
51
|
+
}
|
|
52
|
+
var globals = globalThis;
|
|
53
|
+
var keyOf = (abstract) => typeof abstract === "function" ? abstract : abstract.id;
|
|
54
|
+
var isClass = (fn) => typeof fn === "function" && /^class[\s{]/.test(Function.prototype.toString.call(fn));
|
|
55
|
+
var Container2 = class _Container {
|
|
56
|
+
static getInstance() {
|
|
57
|
+
return globals[GLOBAL_KEY];
|
|
58
|
+
}
|
|
59
|
+
static setInstance(container) {
|
|
60
|
+
globals[GLOBAL_KEY] = container;
|
|
61
|
+
}
|
|
62
|
+
shared;
|
|
63
|
+
root;
|
|
64
|
+
parent;
|
|
65
|
+
local = /* @__PURE__ */ new Map();
|
|
66
|
+
constructor(parent) {
|
|
67
|
+
this.parent = parent;
|
|
68
|
+
this.root = parent?.root ?? this;
|
|
69
|
+
this.shared = parent?.shared ?? { bindings: /* @__PURE__ */ new Map(), extenders: /* @__PURE__ */ new Map(), resolving: /* @__PURE__ */ new Map(), resolved: /* @__PURE__ */ new Set() };
|
|
70
|
+
this.local.set(keyOf(Container), this);
|
|
71
|
+
this.local.set(_Container, this);
|
|
72
|
+
}
|
|
73
|
+
bind(abstract, concrete) {
|
|
74
|
+
this.#assertRoot("bind");
|
|
75
|
+
this.#addBinding(abstract, concrete, "transient");
|
|
76
|
+
}
|
|
77
|
+
singleton(abstract, concrete) {
|
|
78
|
+
this.#assertRoot("singleton");
|
|
79
|
+
this.#addBinding(abstract, concrete, "singleton");
|
|
80
|
+
}
|
|
81
|
+
scoped(abstract, concrete) {
|
|
82
|
+
this.#assertRoot("scoped");
|
|
83
|
+
this.#addBinding(abstract, concrete, "scoped");
|
|
84
|
+
}
|
|
85
|
+
instance(abstract, instance) {
|
|
86
|
+
const key = keyOf(abstract);
|
|
87
|
+
this.local.set(key, instance);
|
|
88
|
+
if (this === this.root) this.shared.resolved.add(key);
|
|
89
|
+
return instance;
|
|
90
|
+
}
|
|
91
|
+
make(abstract) {
|
|
92
|
+
const key = keyOf(abstract);
|
|
93
|
+
const owner = this.#owning(key);
|
|
94
|
+
if (owner) return owner.local.get(key);
|
|
95
|
+
const binding = this.shared.bindings.get(key) ?? this.#implicitBinding(abstract);
|
|
96
|
+
if (binding.lifetime === "scoped" && this === this.root) {
|
|
97
|
+
throw new BindingResolutionError(
|
|
98
|
+
`Scoped binding [${describe(abstract)}] was resolved outside a scope. Resolve it inside app.createScope().run(...), and don't inject scoped services into singletons.`
|
|
99
|
+
);
|
|
100
|
+
}
|
|
101
|
+
const builder = binding.lifetime === "singleton" ? this.root : this;
|
|
102
|
+
const instance = builder.build(abstract, key, binding);
|
|
103
|
+
if (binding.lifetime === "singleton") this.root.local.set(key, instance);
|
|
104
|
+
if (binding.lifetime === "scoped") this.local.set(key, instance);
|
|
105
|
+
return instance;
|
|
106
|
+
}
|
|
107
|
+
bound(abstract) {
|
|
108
|
+
const key = keyOf(abstract);
|
|
109
|
+
return this.shared.bindings.has(key) || this.#owning(key) !== void 0;
|
|
110
|
+
}
|
|
111
|
+
resolved(abstract) {
|
|
112
|
+
const key = keyOf(abstract);
|
|
113
|
+
return this.shared.resolved.has(key) || this.#owning(key) !== void 0;
|
|
114
|
+
}
|
|
115
|
+
extend(abstract, extender) {
|
|
116
|
+
this.#assertRoot("extend");
|
|
117
|
+
const key = keyOf(abstract);
|
|
118
|
+
const list = this.shared.extenders.get(key) ?? [];
|
|
119
|
+
list.push(extender);
|
|
120
|
+
this.shared.extenders.set(key, list);
|
|
121
|
+
if (this.local.has(key)) this.local.set(key, extender(this.local.get(key), this));
|
|
122
|
+
}
|
|
123
|
+
resolving(abstract, callback) {
|
|
124
|
+
this.#assertRoot("resolving");
|
|
125
|
+
const key = keyOf(abstract);
|
|
126
|
+
const list = this.shared.resolving.get(key) ?? [];
|
|
127
|
+
list.push(callback);
|
|
128
|
+
this.shared.resolving.set(key, list);
|
|
129
|
+
}
|
|
130
|
+
forgetInstance(abstract) {
|
|
131
|
+
this.local.delete(keyOf(abstract));
|
|
132
|
+
}
|
|
133
|
+
/** Scopes are always plain Containers (never subclasses such as Application). */
|
|
134
|
+
createScope() {
|
|
135
|
+
return new _Container(this);
|
|
136
|
+
}
|
|
137
|
+
run(fn) {
|
|
138
|
+
return storage.run(this, fn);
|
|
139
|
+
}
|
|
140
|
+
/** The nearest container in this -> parent scopes -> root that holds an instance for the key. */
|
|
141
|
+
#owning(key) {
|
|
142
|
+
if (this.local.has(key)) return this;
|
|
143
|
+
return this.parent === void 0 ? void 0 : this.parent.#owning(key);
|
|
144
|
+
}
|
|
145
|
+
/** Bindings, extenders and callbacks are app-wide state: a request scope must never write them. */
|
|
146
|
+
#assertRoot(method) {
|
|
147
|
+
if (this !== this.root) {
|
|
148
|
+
throw new Error(
|
|
149
|
+
`Cannot register bindings on a request scope (${method}). Register them on the application in a service provider; use instance() for per-request values.`
|
|
150
|
+
);
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
#addBinding(abstract, concrete, lifetime) {
|
|
154
|
+
const key = keyOf(abstract);
|
|
155
|
+
let factory;
|
|
156
|
+
if (concrete === void 0) {
|
|
157
|
+
if (typeof abstract !== "function") throw new TypeError(`bind(${describe(abstract)}) needs a concrete: tokens can't be constructed`);
|
|
158
|
+
factory = () => new abstract();
|
|
159
|
+
} else if (isClass(concrete)) {
|
|
160
|
+
factory = () => new concrete();
|
|
161
|
+
} else {
|
|
162
|
+
factory = concrete;
|
|
163
|
+
}
|
|
164
|
+
this.shared.bindings.set(key, { lifetime, factory });
|
|
165
|
+
this.local.delete(key);
|
|
166
|
+
}
|
|
167
|
+
#implicitBinding(abstract) {
|
|
168
|
+
if (typeof abstract === "function") {
|
|
169
|
+
return { lifetime: "transient", factory: () => new abstract() };
|
|
170
|
+
}
|
|
171
|
+
throw new BindingResolutionError(
|
|
172
|
+
`Target [${abstract.description}] is not bound. Is its service provider registered in bootstrap/providers.ts?`
|
|
173
|
+
);
|
|
174
|
+
}
|
|
175
|
+
build(abstract, key, binding) {
|
|
176
|
+
const stackIndex = building.keys.indexOf(key);
|
|
177
|
+
if (stackIndex !== -1) {
|
|
178
|
+
const chain = [...building.names.slice(stackIndex), describe(abstract)];
|
|
179
|
+
throw new CircularDependencyError(chain);
|
|
180
|
+
}
|
|
181
|
+
building.keys.push(key);
|
|
182
|
+
building.names.push(describe(abstract));
|
|
183
|
+
building.containers.push(this);
|
|
184
|
+
try {
|
|
185
|
+
let instance = binding.factory(this);
|
|
186
|
+
for (const extender of this.shared.extenders.get(key) ?? []) instance = extender(instance, this);
|
|
187
|
+
for (const callback of this.shared.resolving.get(key) ?? []) callback(instance, this);
|
|
188
|
+
this.shared.resolved.add(key);
|
|
189
|
+
return instance;
|
|
190
|
+
} finally {
|
|
191
|
+
building.keys.pop();
|
|
192
|
+
building.names.pop();
|
|
193
|
+
building.containers.pop();
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
};
|
|
197
|
+
|
|
198
|
+
// ../Collections/dist/index.js
|
|
199
|
+
function compare(left, operator, right) {
|
|
200
|
+
switch (operator) {
|
|
201
|
+
case "=":
|
|
202
|
+
case "==":
|
|
203
|
+
return left == right;
|
|
204
|
+
case "===":
|
|
205
|
+
return left === right;
|
|
206
|
+
case "!=":
|
|
207
|
+
case "<>":
|
|
208
|
+
return left != right;
|
|
209
|
+
case "!==":
|
|
210
|
+
return left !== right;
|
|
211
|
+
case "<":
|
|
212
|
+
return left < right;
|
|
213
|
+
case "<=":
|
|
214
|
+
return left <= right;
|
|
215
|
+
case ">":
|
|
216
|
+
return left > right;
|
|
217
|
+
case ">=":
|
|
218
|
+
return left >= right;
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
function ascending(a, b) {
|
|
222
|
+
const aNil = a === null || a === void 0;
|
|
223
|
+
const bNil = b === null || b === void 0;
|
|
224
|
+
if (aNil || bNil) return aNil === bNil ? 0 : aNil ? 1 : -1;
|
|
225
|
+
if (typeof a === "number" && typeof b === "number") return a - b;
|
|
226
|
+
if (a instanceof Date && b instanceof Date) return a.getTime() - b.getTime();
|
|
227
|
+
return String(a).localeCompare(String(b));
|
|
228
|
+
}
|
|
229
|
+
var ItemNotFoundError = class extends Error {
|
|
230
|
+
name = "ItemNotFoundError";
|
|
231
|
+
constructor() {
|
|
232
|
+
super("Item not found.");
|
|
233
|
+
}
|
|
234
|
+
};
|
|
235
|
+
var MultipleItemsFoundError = class extends Error {
|
|
236
|
+
constructor(count) {
|
|
237
|
+
super(`${count} items were found.`);
|
|
238
|
+
this.count = count;
|
|
239
|
+
}
|
|
240
|
+
count;
|
|
241
|
+
name = "MultipleItemsFoundError";
|
|
242
|
+
};
|
|
243
|
+
var LazyCollection = class _LazyCollection {
|
|
244
|
+
constructor(source) {
|
|
245
|
+
this.source = source;
|
|
246
|
+
}
|
|
247
|
+
source;
|
|
248
|
+
static make(source) {
|
|
249
|
+
return new _LazyCollection(source);
|
|
250
|
+
}
|
|
251
|
+
async *[Symbol.asyncIterator]() {
|
|
252
|
+
yield* this.source();
|
|
253
|
+
}
|
|
254
|
+
map(callback) {
|
|
255
|
+
const self = this;
|
|
256
|
+
return new _LazyCollection(async function* () {
|
|
257
|
+
let i = 0;
|
|
258
|
+
for await (const item of self) yield await callback(item, i++);
|
|
259
|
+
});
|
|
260
|
+
}
|
|
261
|
+
filter(callback) {
|
|
262
|
+
const self = this;
|
|
263
|
+
return new _LazyCollection(async function* () {
|
|
264
|
+
let i = 0;
|
|
265
|
+
for await (const item of self) if (await callback(item, i++)) yield item;
|
|
266
|
+
});
|
|
267
|
+
}
|
|
268
|
+
take(count) {
|
|
269
|
+
const self = this;
|
|
270
|
+
return new _LazyCollection(async function* () {
|
|
271
|
+
if (count <= 0) return;
|
|
272
|
+
let taken = 0;
|
|
273
|
+
for await (const item of self) {
|
|
274
|
+
yield item;
|
|
275
|
+
if (++taken >= count) return;
|
|
276
|
+
}
|
|
277
|
+
});
|
|
278
|
+
}
|
|
279
|
+
chunk(size) {
|
|
280
|
+
const self = this;
|
|
281
|
+
return new _LazyCollection(async function* () {
|
|
282
|
+
if (size <= 0) return;
|
|
283
|
+
let buffer = [];
|
|
284
|
+
for await (const item of self) {
|
|
285
|
+
buffer.push(item);
|
|
286
|
+
if (buffer.length === size) {
|
|
287
|
+
yield new Collection(buffer);
|
|
288
|
+
buffer = [];
|
|
289
|
+
}
|
|
290
|
+
}
|
|
291
|
+
if (buffer.length) yield new Collection(buffer);
|
|
292
|
+
});
|
|
293
|
+
}
|
|
294
|
+
/** Return false from the callback to stop. */
|
|
295
|
+
async each(callback) {
|
|
296
|
+
let i = 0;
|
|
297
|
+
for await (const item of this) if (await callback(item, i++) === false) return;
|
|
298
|
+
}
|
|
299
|
+
async first(callback) {
|
|
300
|
+
for await (const item of this) if (!callback || await callback(item)) return item;
|
|
301
|
+
return void 0;
|
|
302
|
+
}
|
|
303
|
+
async count() {
|
|
304
|
+
let n = 0;
|
|
305
|
+
for await (const item of this) {
|
|
306
|
+
void item;
|
|
307
|
+
n++;
|
|
308
|
+
}
|
|
309
|
+
return n;
|
|
310
|
+
}
|
|
311
|
+
async collect() {
|
|
312
|
+
const items = [];
|
|
313
|
+
for await (const item of this) items.push(item);
|
|
314
|
+
return new Collection(items);
|
|
315
|
+
}
|
|
316
|
+
};
|
|
317
|
+
var read = (item, getter) => typeof getter === "function" ? getter(item) : item?.[getter];
|
|
318
|
+
var isArrayable = (v) => typeof v === "object" && v !== null && typeof v.toArray === "function";
|
|
319
|
+
var numbers = (items, getter) => items.map((item) => getter === void 0 ? item : read(item, getter)).filter((v) => typeof v === "number" && !Number.isNaN(v));
|
|
320
|
+
var isNil = (value2) => value2 === null || value2 === void 0;
|
|
321
|
+
var predicateFor = (value2) => typeof value2 === "function" ? value2 : (item) => item === value2;
|
|
322
|
+
var roundTo = (value2, precision) => Number(`${Math.round(Number(`${value2}e${precision}`))}e-${precision}`);
|
|
323
|
+
var typeNameOf = (value2) => {
|
|
324
|
+
if (value2 === null) return "null";
|
|
325
|
+
if (Array.isArray(value2)) return "array";
|
|
326
|
+
if (typeof value2 === "object") return value2.constructor?.name ?? "object";
|
|
327
|
+
return typeof value2;
|
|
328
|
+
};
|
|
329
|
+
var isIndex = (index, length) => Number.isInteger(index) && index >= 0 && index < length;
|
|
330
|
+
function compareBy(a, b, key, direction) {
|
|
331
|
+
const left = read(a, key);
|
|
332
|
+
const right = read(b, key);
|
|
333
|
+
const leftNil = isNil(left);
|
|
334
|
+
const rightNil = isNil(right);
|
|
335
|
+
if (leftNil || rightNil) return leftNil === rightNil ? 0 : leftNil ? 1 : -1;
|
|
336
|
+
return (direction === "asc" ? 1 : -1) * ascending(left, right);
|
|
337
|
+
}
|
|
338
|
+
function flattenItems(items, depth) {
|
|
339
|
+
const result = [];
|
|
340
|
+
for (const value2 of items) {
|
|
341
|
+
const item = value2 instanceof Collection ? value2.all() : value2;
|
|
342
|
+
if (!Array.isArray(item)) result.push(item);
|
|
343
|
+
else if (depth <= 1) result.push(...item);
|
|
344
|
+
else result.push(...flattenItems(item, depth - 1));
|
|
345
|
+
}
|
|
346
|
+
return result;
|
|
347
|
+
}
|
|
348
|
+
function whereCondition(args) {
|
|
349
|
+
const [key, operatorOrValue, value2] = args;
|
|
350
|
+
if (args.length === 1) return (item) => Boolean(read(item, key));
|
|
351
|
+
if (args.length === 2) return (item) => compare(read(item, key), "=", operatorOrValue);
|
|
352
|
+
return (item) => compare(read(item, key), operatorOrValue, value2);
|
|
353
|
+
}
|
|
354
|
+
function uniqueWith(values, equal) {
|
|
355
|
+
const result = [];
|
|
356
|
+
for (const value2 of values) if (!result.some((seen) => equal(seen, value2))) result.push(value2);
|
|
357
|
+
return result;
|
|
358
|
+
}
|
|
359
|
+
var loose = (a, b) => a == b;
|
|
360
|
+
var strict = (a, b) => a === b;
|
|
361
|
+
var Collection = class _Collection {
|
|
362
|
+
items;
|
|
363
|
+
constructor(items = []) {
|
|
364
|
+
this.items = [...items];
|
|
365
|
+
}
|
|
366
|
+
static make(items = []) {
|
|
367
|
+
return new _Collection(items);
|
|
368
|
+
}
|
|
369
|
+
/** Laravel semantics: callback receives 1..n. */
|
|
370
|
+
static times(count, callback) {
|
|
371
|
+
return new _Collection(Array.from({ length: Math.max(0, count) }, (_, i) => callback(i + 1)));
|
|
372
|
+
}
|
|
373
|
+
/** The numbers from `from` to `to`, inclusive, counting up or down by `step` (PHP's range()). */
|
|
374
|
+
static range(from, to, step = 1) {
|
|
375
|
+
if (step === 0) throw new RangeError("range(): Argument #3 ($step) cannot be 0");
|
|
376
|
+
const size = Math.abs(step);
|
|
377
|
+
const numbers2 = [];
|
|
378
|
+
if (from <= to) for (let n = from; n <= to; n += size) numbers2.push(n);
|
|
379
|
+
else for (let n = from; n >= to; n -= size) numbers2.push(n);
|
|
380
|
+
return new _Collection(numbers2);
|
|
381
|
+
}
|
|
382
|
+
static wrap(value2) {
|
|
383
|
+
if (value2 instanceof _Collection) return new _Collection(value2.all());
|
|
384
|
+
if (Array.isArray(value2)) return new _Collection(value2);
|
|
385
|
+
return new _Collection(isNil(value2) ? [] : [value2]);
|
|
386
|
+
}
|
|
387
|
+
static unwrap(value2) {
|
|
388
|
+
return value2 instanceof _Collection ? value2.all() : value2;
|
|
389
|
+
}
|
|
390
|
+
static empty() {
|
|
391
|
+
return new _Collection();
|
|
392
|
+
}
|
|
393
|
+
/** The decoded JSON: an array's items, nothing for null, else the one value. */
|
|
394
|
+
static fromJson(json) {
|
|
395
|
+
return _Collection.wrap(JSON.parse(json));
|
|
396
|
+
}
|
|
397
|
+
/** A new collection of the receiver's class (a subclass keeps its class through filter(), sortBy(), …). */
|
|
398
|
+
newInstance(items = []) {
|
|
399
|
+
return new this.constructor(items);
|
|
400
|
+
}
|
|
401
|
+
[Symbol.iterator]() {
|
|
402
|
+
return this.items[Symbol.iterator]();
|
|
403
|
+
}
|
|
404
|
+
all() {
|
|
405
|
+
return [...this.items];
|
|
406
|
+
}
|
|
407
|
+
count() {
|
|
408
|
+
return this.items.length;
|
|
409
|
+
}
|
|
410
|
+
isEmpty() {
|
|
411
|
+
return this.items.length === 0;
|
|
412
|
+
}
|
|
413
|
+
isNotEmpty() {
|
|
414
|
+
return this.items.length > 0;
|
|
415
|
+
}
|
|
416
|
+
toArray() {
|
|
417
|
+
return this.items.map((i) => isArrayable(i) ? i.toArray() : i);
|
|
418
|
+
}
|
|
419
|
+
toJSON() {
|
|
420
|
+
return this.all();
|
|
421
|
+
}
|
|
422
|
+
toJson() {
|
|
423
|
+
return JSON.stringify(this);
|
|
424
|
+
}
|
|
425
|
+
get(index, defaultValue) {
|
|
426
|
+
if (Number.isInteger(index) && index >= 0 && index < this.items.length) return this.items[index];
|
|
427
|
+
return typeof defaultValue === "function" ? defaultValue() : defaultValue;
|
|
428
|
+
}
|
|
429
|
+
/** Whether every given index exists. */
|
|
430
|
+
has(...indexes) {
|
|
431
|
+
return indexes.flat().every((index) => Number.isInteger(index) && index >= 0 && index < this.items.length);
|
|
432
|
+
}
|
|
433
|
+
/** Whether any of the given indexes exists. */
|
|
434
|
+
hasAny(...indexes) {
|
|
435
|
+
if (this.isEmpty()) return false;
|
|
436
|
+
return indexes.flat().some((index) => this.has(index));
|
|
437
|
+
}
|
|
438
|
+
search(value2, strict2 = false) {
|
|
439
|
+
const index = typeof value2 === "function" ? this.items.findIndex(value2) : this.items.findIndex((item) => strict2 ? item === value2 : item == value2);
|
|
440
|
+
return index === -1 ? false : index;
|
|
441
|
+
}
|
|
442
|
+
before(value2, strict2 = false) {
|
|
443
|
+
const index = this.search(value2, strict2);
|
|
444
|
+
return index === false || index === 0 ? void 0 : this.items[index - 1];
|
|
445
|
+
}
|
|
446
|
+
after(value2, strict2 = false) {
|
|
447
|
+
const index = this.search(value2, strict2);
|
|
448
|
+
return index === false ? void 0 : this.items[index + 1];
|
|
449
|
+
}
|
|
450
|
+
value(key, defaultValue) {
|
|
451
|
+
const item = this.items.find((candidate) => Boolean(read(candidate, key)));
|
|
452
|
+
if (item !== void 0) return read(item, key);
|
|
453
|
+
return typeof defaultValue === "function" ? defaultValue() : defaultValue;
|
|
454
|
+
}
|
|
455
|
+
every(...args) {
|
|
456
|
+
if (args.length === 1 && typeof args[0] === "function") return this.items.every(args[0]);
|
|
457
|
+
const condition = whereCondition(args);
|
|
458
|
+
return this.items.every((item) => condition(item));
|
|
459
|
+
}
|
|
460
|
+
contains(keyOrValue, operatorOrValue, value2) {
|
|
461
|
+
if (arguments.length === 3) return this.items.some(whereCondition([keyOrValue, operatorOrValue, value2]));
|
|
462
|
+
if (arguments.length === 2) return this.items.some((item) => read(item, keyOrValue) === operatorOrValue);
|
|
463
|
+
if (typeof keyOrValue === "function") return this.items.some(keyOrValue);
|
|
464
|
+
return this.items.includes(keyOrValue);
|
|
465
|
+
}
|
|
466
|
+
some(...args) {
|
|
467
|
+
return Reflect.apply(this.contains, this, args);
|
|
468
|
+
}
|
|
469
|
+
containsStrict(...args) {
|
|
470
|
+
return Reflect.apply(this.contains, this, args);
|
|
471
|
+
}
|
|
472
|
+
doesntContain(...args) {
|
|
473
|
+
return !Reflect.apply(this.contains, this, args);
|
|
474
|
+
}
|
|
475
|
+
doesntContainStrict(...args) {
|
|
476
|
+
return !Reflect.apply(this.contains, this, args);
|
|
477
|
+
}
|
|
478
|
+
/** Whether there is exactly one item (that passes the callback). */
|
|
479
|
+
containsOneItem(callback) {
|
|
480
|
+
return (callback ? this.items.filter(callback) : this.items).length === 1;
|
|
481
|
+
}
|
|
482
|
+
sole(...args) {
|
|
483
|
+
const items = this.matching(args);
|
|
484
|
+
if (items.length === 0) throw new ItemNotFoundError();
|
|
485
|
+
if (items.length > 1) throw new MultipleItemsFoundError(items.length);
|
|
486
|
+
return items[0];
|
|
487
|
+
}
|
|
488
|
+
firstOrFail(...args) {
|
|
489
|
+
const items = this.matching(args);
|
|
490
|
+
if (items.length === 0) throw new ItemNotFoundError();
|
|
491
|
+
return items[0];
|
|
492
|
+
}
|
|
493
|
+
/** The items a callback or a where condition (sole(), firstOrFail()) selects; every item without arguments. */
|
|
494
|
+
matching(args) {
|
|
495
|
+
if (args.length === 0 || args[0] === void 0) return this.items;
|
|
496
|
+
if (args.length === 1) return this.items.filter(args[0]);
|
|
497
|
+
return this.items.filter(whereCondition(args));
|
|
498
|
+
}
|
|
499
|
+
// ---------------------------------------------------------------- transforming
|
|
500
|
+
map(callback) {
|
|
501
|
+
return new _Collection(this.items.map(callback));
|
|
502
|
+
}
|
|
503
|
+
flatMap(callback) {
|
|
504
|
+
return new _Collection(
|
|
505
|
+
this.items.flatMap((item, i) => {
|
|
506
|
+
const out = callback(item, i);
|
|
507
|
+
return out instanceof _Collection ? out.all() : out;
|
|
508
|
+
})
|
|
509
|
+
);
|
|
510
|
+
}
|
|
511
|
+
filter(callback) {
|
|
512
|
+
return this.newInstance(this.items.filter(callback ?? ((item) => Boolean(item))));
|
|
513
|
+
}
|
|
514
|
+
reject(callback) {
|
|
515
|
+
return this.newInstance(this.items.filter((item, i) => !callback(item, i)));
|
|
516
|
+
}
|
|
517
|
+
/** Return false from the callback to stop. */
|
|
518
|
+
each(callback) {
|
|
519
|
+
for (let i = 0; i < this.items.length; i++) if (callback(this.items[i], i) === false) break;
|
|
520
|
+
return this;
|
|
521
|
+
}
|
|
522
|
+
reduce(callback, initial) {
|
|
523
|
+
return this.items.reduce(callback, initial);
|
|
524
|
+
}
|
|
525
|
+
first(callback, defaultValue) {
|
|
526
|
+
if (!callback) return this.items[0];
|
|
527
|
+
const index = this.items.findIndex(callback);
|
|
528
|
+
return index === -1 ? defaultValue : this.items[index];
|
|
529
|
+
}
|
|
530
|
+
last(callback, defaultValue) {
|
|
531
|
+
if (!callback) return this.items.at(-1);
|
|
532
|
+
const index = this.items.findLastIndex(callback);
|
|
533
|
+
return index === -1 ? defaultValue : this.items[index];
|
|
534
|
+
}
|
|
535
|
+
where(...args) {
|
|
536
|
+
return this.filter(whereCondition(args));
|
|
537
|
+
}
|
|
538
|
+
/** where() with strict comparison (===). */
|
|
539
|
+
whereStrict(key, value2) {
|
|
540
|
+
return this.filter((item) => read(item, key) === value2);
|
|
541
|
+
}
|
|
542
|
+
firstWhere(...args) {
|
|
543
|
+
return this.items.find(whereCondition(args));
|
|
544
|
+
}
|
|
545
|
+
whereIn(key, values) {
|
|
546
|
+
const set = new Set(values);
|
|
547
|
+
return this.filter((item) => set.has(read(item, key)));
|
|
548
|
+
}
|
|
549
|
+
/** whereIn() under Laravel's strict name (whereIn() already compares strictly). */
|
|
550
|
+
whereInStrict(key, values) {
|
|
551
|
+
return this.whereIn(key, values);
|
|
552
|
+
}
|
|
553
|
+
whereNotIn(key, values) {
|
|
554
|
+
const set = new Set(values);
|
|
555
|
+
return this.filter((item) => !set.has(read(item, key)));
|
|
556
|
+
}
|
|
557
|
+
whereNotInStrict(key, values) {
|
|
558
|
+
return this.whereNotIn(key, values);
|
|
559
|
+
}
|
|
560
|
+
/** Items whose key (or the item itself) is null or undefined (a missing key counts as null). */
|
|
561
|
+
whereNull(key) {
|
|
562
|
+
return this.filter((item) => isNil(key === void 0 ? item : read(item, key)));
|
|
563
|
+
}
|
|
564
|
+
whereNotNull(key) {
|
|
565
|
+
return this.filter((item) => !isNil(key === void 0 ? item : read(item, key)));
|
|
566
|
+
}
|
|
567
|
+
/** Items whose key is within the first and last values, inclusive. */
|
|
568
|
+
whereBetween(key, values) {
|
|
569
|
+
return this.where(key, ">=", values[0]).where(key, "<=", values.at(-1));
|
|
570
|
+
}
|
|
571
|
+
whereNotBetween(key, values) {
|
|
572
|
+
return this.filter((item) => {
|
|
573
|
+
const value2 = read(item, key);
|
|
574
|
+
return value2 < values[0] || value2 > values.at(-1);
|
|
575
|
+
});
|
|
576
|
+
}
|
|
577
|
+
/** Items that are instances of the class (or of any of the classes). */
|
|
578
|
+
whereInstanceOf(type2) {
|
|
579
|
+
const types = [type2].flat();
|
|
580
|
+
return this.filter((item) => types.some((cls) => item instanceof cls));
|
|
581
|
+
}
|
|
582
|
+
pluck(key) {
|
|
583
|
+
return this.map((item) => read(item, key));
|
|
584
|
+
}
|
|
585
|
+
keyBy(key) {
|
|
586
|
+
return Object.fromEntries(this.items.map((item) => [String(read(item, key)), item]));
|
|
587
|
+
}
|
|
588
|
+
groupBy(key) {
|
|
589
|
+
const groups = /* @__PURE__ */ new Map();
|
|
590
|
+
for (const item of this.items) {
|
|
591
|
+
const name = String(read(item, key));
|
|
592
|
+
groups.set(name, (groups.get(name) ?? this.newInstance()).push(item));
|
|
593
|
+
}
|
|
594
|
+
return Object.fromEntries(groups);
|
|
595
|
+
}
|
|
596
|
+
mapWithKeys(callback) {
|
|
597
|
+
return Object.fromEntries(this.items.map(callback));
|
|
598
|
+
}
|
|
599
|
+
duplicates(key) {
|
|
600
|
+
return this.repeated(key, loose);
|
|
601
|
+
}
|
|
602
|
+
duplicatesStrict(key) {
|
|
603
|
+
return this.repeated(key, strict);
|
|
604
|
+
}
|
|
605
|
+
/** Laravel's duplicates(): each value after the first of its kind. */
|
|
606
|
+
repeated(key, equal) {
|
|
607
|
+
const values = this.items.map((item) => key === void 0 ? item : read(item, key));
|
|
608
|
+
const unique = uniqueWith(values, equal);
|
|
609
|
+
const duplicates = [];
|
|
610
|
+
for (const value2 of values) {
|
|
611
|
+
if (unique.length && equal(value2, unique[0])) unique.shift();
|
|
612
|
+
else duplicates.push(value2);
|
|
613
|
+
}
|
|
614
|
+
return new _Collection(duplicates);
|
|
615
|
+
}
|
|
616
|
+
/** The items that aren't in the given items (strict comparison). */
|
|
617
|
+
diff(items) {
|
|
618
|
+
const other = new Set(items);
|
|
619
|
+
return this.filter((item) => !other.has(item));
|
|
620
|
+
}
|
|
621
|
+
/** diff() with a comparator that returns 0 for equal items. */
|
|
622
|
+
diffUsing(items, callback) {
|
|
623
|
+
const other = [...items];
|
|
624
|
+
return this.filter((item) => !other.some((candidate) => callback(item, candidate) === 0));
|
|
625
|
+
}
|
|
626
|
+
/** The items that are also in the given items (strict comparison). */
|
|
627
|
+
intersect(items) {
|
|
628
|
+
const other = new Set(items);
|
|
629
|
+
return this.filter((item) => other.has(item));
|
|
630
|
+
}
|
|
631
|
+
intersectUsing(items, callback) {
|
|
632
|
+
const other = [...items];
|
|
633
|
+
return this.filter((item) => other.some((candidate) => callback(item, candidate) === 0));
|
|
634
|
+
}
|
|
635
|
+
// ---------------------------------------------------------------- ordering and slicing
|
|
636
|
+
/** Sorted with the default ascending order (numbers, dates, then strings), or by a comparator. */
|
|
637
|
+
sort(callback) {
|
|
638
|
+
return this.newInstance([...this.items].sort(callback ?? ((a, b) => ascending(a, b))));
|
|
639
|
+
}
|
|
640
|
+
sortDesc() {
|
|
641
|
+
return this.newInstance([...this.items].sort((a, b) => ascending(b, a)));
|
|
642
|
+
}
|
|
643
|
+
sortBy(keyOrSteps, direction = "asc") {
|
|
644
|
+
const steps = Array.isArray(keyOrSteps) ? keyOrSteps : [[keyOrSteps, direction]];
|
|
645
|
+
const comparators = steps.map((step) => {
|
|
646
|
+
if (typeof step === "function" && step.length >= 2) return step;
|
|
647
|
+
const [key, order = "asc"] = Array.isArray(step) ? step : [step];
|
|
648
|
+
return (a, b) => compareBy(a, b, key, order);
|
|
649
|
+
});
|
|
650
|
+
return this.newInstance(
|
|
651
|
+
this.items.map((item, index) => ({ item, index })).sort((a, b) => {
|
|
652
|
+
for (const comparator of comparators) {
|
|
653
|
+
const result = comparator(a.item, b.item);
|
|
654
|
+
if (result) return result;
|
|
655
|
+
}
|
|
656
|
+
return a.index - b.index;
|
|
657
|
+
}).map((x) => x.item)
|
|
658
|
+
);
|
|
659
|
+
}
|
|
660
|
+
sortByDesc(key) {
|
|
661
|
+
return this.sortBy(key, "desc");
|
|
662
|
+
}
|
|
663
|
+
sum(key) {
|
|
664
|
+
return numbers(this.items, key).reduce((a, b) => a + b, 0);
|
|
665
|
+
}
|
|
666
|
+
avg(key) {
|
|
667
|
+
const values = numbers(this.items, key);
|
|
668
|
+
return values.length ? values.reduce((a, b) => a + b, 0) / values.length : void 0;
|
|
669
|
+
}
|
|
670
|
+
min(key) {
|
|
671
|
+
const values = numbers(this.items, key);
|
|
672
|
+
return values.length ? Math.min(...values) : void 0;
|
|
673
|
+
}
|
|
674
|
+
max(key) {
|
|
675
|
+
const values = numbers(this.items, key);
|
|
676
|
+
return values.length ? Math.max(...values) : void 0;
|
|
677
|
+
}
|
|
678
|
+
/** avg() under Laravel's other name. */
|
|
679
|
+
average(key) {
|
|
680
|
+
return this.avg(key);
|
|
681
|
+
}
|
|
682
|
+
/** The middle number (the mean of the two middle ones for an even count), ignoring null and non-numbers. */
|
|
683
|
+
median(key) {
|
|
684
|
+
const values = numbers(this.items, key).sort((a, b) => a - b);
|
|
685
|
+
if (!values.length) return void 0;
|
|
686
|
+
const middle = Math.floor(values.length / 2);
|
|
687
|
+
return values.length % 2 ? values[middle] : (values[middle - 1] + values[middle]) / 2;
|
|
688
|
+
}
|
|
689
|
+
mode(key) {
|
|
690
|
+
if (this.isEmpty()) return void 0;
|
|
691
|
+
const counts = /* @__PURE__ */ new Map();
|
|
692
|
+
for (const item of this.items) {
|
|
693
|
+
const value2 = key === void 0 ? item : read(item, key);
|
|
694
|
+
counts.set(value2, (counts.get(value2) ?? 0) + 1);
|
|
695
|
+
}
|
|
696
|
+
const highest = Math.max(...counts.values());
|
|
697
|
+
return [...counts].filter(([, count]) => count === highest).map(([value2]) => value2);
|
|
698
|
+
}
|
|
699
|
+
/** The share of items that pass the callback, as a percentage rounded to `precision` places; undefined when empty. */
|
|
700
|
+
percentage(callback, precision = 2) {
|
|
701
|
+
if (this.isEmpty()) return void 0;
|
|
702
|
+
return roundTo(this.items.filter(callback).length / this.items.length * 100, precision);
|
|
703
|
+
}
|
|
704
|
+
/** How many items have each value, key value or callback result: [1, 2, 2].countBy() → { 1: 1, 2: 2 }. */
|
|
705
|
+
countBy(key) {
|
|
706
|
+
const counts = /* @__PURE__ */ new Map();
|
|
707
|
+
for (const item of this.items) {
|
|
708
|
+
const value2 = String(key === void 0 ? item : read(item, key));
|
|
709
|
+
counts.set(value2, (counts.get(value2) ?? 0) + 1);
|
|
710
|
+
}
|
|
711
|
+
return Object.fromEntries(counts);
|
|
712
|
+
}
|
|
713
|
+
/** Groups the callback's [key, value] pairs: values under the same key are collected in arrays. */
|
|
714
|
+
mapToDictionary(callback) {
|
|
715
|
+
const dictionary = /* @__PURE__ */ new Map();
|
|
716
|
+
this.items.forEach((item, index) => {
|
|
717
|
+
const [key, value2] = callback(item, index);
|
|
718
|
+
const name = String(key);
|
|
719
|
+
const values = dictionary.get(name) ?? [];
|
|
720
|
+
values.push(value2);
|
|
721
|
+
dictionary.set(name, values);
|
|
722
|
+
});
|
|
723
|
+
return Object.fromEntries(dictionary);
|
|
724
|
+
}
|
|
725
|
+
/** mapToDictionary() with each group as a collection. */
|
|
726
|
+
mapToGroups(callback) {
|
|
727
|
+
return Object.fromEntries(Object.entries(this.mapToDictionary(callback)).map(([key, values]) => [key, new _Collection(values)]));
|
|
728
|
+
}
|
|
729
|
+
/** A new instance of the class for each item: new cls(item, index). */
|
|
730
|
+
mapInto(cls) {
|
|
731
|
+
return this.map((item, index) => new cls(item, index));
|
|
732
|
+
}
|
|
733
|
+
/** Maps nested arrays (or collections) with their items as the arguments, then the index. */
|
|
734
|
+
mapSpread(callback) {
|
|
735
|
+
return this.map((chunk, index) => callback(...[...chunk instanceof _Collection ? chunk.all() : chunk, index]));
|
|
736
|
+
}
|
|
737
|
+
/** each() with the nested items as the arguments, then the index. Return false to stop. */
|
|
738
|
+
eachSpread(callback) {
|
|
739
|
+
return this.each((chunk, index) => callback(...[...chunk instanceof _Collection ? chunk.all() : chunk, index]));
|
|
740
|
+
}
|
|
741
|
+
/** reduce() with several carried values: the reducer gets them, then the item and index, and returns them as an array. */
|
|
742
|
+
reduceSpread(callback, ...initial) {
|
|
743
|
+
let result = initial;
|
|
744
|
+
this.items.forEach((item, index) => {
|
|
745
|
+
result = callback(...result, item, index);
|
|
746
|
+
if (!Array.isArray(result)) {
|
|
747
|
+
throw new TypeError(`${this.constructor.name}::reduceSpread expects reducer to return an array, but got a '${typeNameOf(result)}' instead.`);
|
|
748
|
+
}
|
|
749
|
+
});
|
|
750
|
+
return result;
|
|
751
|
+
}
|
|
752
|
+
/** The first item of each value (strict comparison), or of each key or callback value. */
|
|
753
|
+
unique(key) {
|
|
754
|
+
const seen = /* @__PURE__ */ new Set();
|
|
755
|
+
return this.filter((item) => {
|
|
756
|
+
const v = key === void 0 ? item : read(item, key);
|
|
757
|
+
if (seen.has(v)) return false;
|
|
758
|
+
seen.add(v);
|
|
759
|
+
return true;
|
|
760
|
+
});
|
|
761
|
+
}
|
|
762
|
+
/** unique() under Laravel's strict name (unique() already compares strictly). */
|
|
763
|
+
uniqueStrict(key) {
|
|
764
|
+
return this.unique(key);
|
|
765
|
+
}
|
|
766
|
+
chunk(size) {
|
|
767
|
+
if (size <= 0) return new _Collection();
|
|
768
|
+
const chunks = [];
|
|
769
|
+
for (let i = 0; i < this.items.length; i += size) chunks.push(this.newInstance(this.items.slice(i, i + size)));
|
|
770
|
+
return new _Collection(chunks);
|
|
771
|
+
}
|
|
772
|
+
/** Negative count takes from the end. */
|
|
773
|
+
take(count) {
|
|
774
|
+
return this.newInstance(count < 0 ? this.items.slice(count) : this.items.slice(0, count));
|
|
775
|
+
}
|
|
776
|
+
skip(count) {
|
|
777
|
+
return this.newInstance(this.items.slice(count));
|
|
778
|
+
}
|
|
779
|
+
/** PHP's array_slice(): a negative offset counts from the end; a negative length leaves that many off the end. */
|
|
780
|
+
slice(offset, length) {
|
|
781
|
+
const size = this.items.length;
|
|
782
|
+
const start = offset < 0 ? Math.max(0, size + offset) : Math.min(offset, size);
|
|
783
|
+
const end = length === void 0 ? size : length < 0 ? size + length : start + length;
|
|
784
|
+
return this.newInstance(this.items.slice(start, Math.max(start, end)));
|
|
785
|
+
}
|
|
786
|
+
values() {
|
|
787
|
+
return this.newInstance(this.items);
|
|
788
|
+
}
|
|
789
|
+
/** Mutates, like Laravel. */
|
|
790
|
+
push(...values) {
|
|
791
|
+
this.items.push(...values);
|
|
792
|
+
return this;
|
|
793
|
+
}
|
|
794
|
+
concat(values) {
|
|
795
|
+
return this.newInstance([...this.items, ...values]);
|
|
796
|
+
}
|
|
797
|
+
partition(callback) {
|
|
798
|
+
return [this.filter(callback), this.reject(callback)];
|
|
799
|
+
}
|
|
800
|
+
reverse() {
|
|
801
|
+
return this.newInstance([...this.items].reverse());
|
|
802
|
+
}
|
|
803
|
+
shuffle() {
|
|
804
|
+
const items = [...this.items];
|
|
805
|
+
for (let i = items.length - 1; i > 0; i--) {
|
|
806
|
+
const j = Math.floor(Math.random() * (i + 1));
|
|
807
|
+
[items[i], items[j]] = [items[j], items[i]];
|
|
808
|
+
}
|
|
809
|
+
return this.newInstance(items);
|
|
810
|
+
}
|
|
811
|
+
random(count) {
|
|
812
|
+
const requested = typeof count === "function" ? count(this) : count;
|
|
813
|
+
const wanted = requested ?? 1;
|
|
814
|
+
if (wanted > this.items.length) {
|
|
815
|
+
throw new RangeError(`You requested ${wanted} items, but there are only ${this.items.length} items available.`);
|
|
816
|
+
}
|
|
817
|
+
if (requested === void 0) return this.items[Math.floor(Math.random() * this.items.length)];
|
|
818
|
+
const indexes = [...this.items.keys()];
|
|
819
|
+
for (let i = indexes.length - 1; i > 0; i--) {
|
|
820
|
+
const j = Math.floor(Math.random() * (i + 1));
|
|
821
|
+
[indexes[i], indexes[j]] = [indexes[j], indexes[i]];
|
|
822
|
+
}
|
|
823
|
+
return this.newInstance(indexes.slice(0, Math.max(0, wanted)).sort((a, b) => a - b).map((index) => this.items[index]));
|
|
824
|
+
}
|
|
825
|
+
/** Every step-th item, starting at offset. */
|
|
826
|
+
nth(step, offset = 0) {
|
|
827
|
+
return this.newInstance(this.items.slice(offset).filter((_, position) => position % step === 0));
|
|
828
|
+
}
|
|
829
|
+
/** Pads to `size` items with the value; a negative size pads at the start (PHP's array_pad()). */
|
|
830
|
+
pad(size, value2) {
|
|
831
|
+
const missing = Math.abs(size) - this.items.length;
|
|
832
|
+
if (missing <= 0) return new _Collection(this.items);
|
|
833
|
+
const padding = Array.from({ length: missing }, () => value2);
|
|
834
|
+
return new _Collection(size < 0 ? [...padding, ...this.items] : [...this.items, ...padding]);
|
|
835
|
+
}
|
|
836
|
+
/** The items of one page: forPage(2, 15). */
|
|
837
|
+
forPage(page, perPage) {
|
|
838
|
+
return this.slice(Math.max(0, (page - 1) * perPage), perPage);
|
|
839
|
+
}
|
|
840
|
+
/** `count` groups of nearly equal size, the first ones larger. */
|
|
841
|
+
split(count) {
|
|
842
|
+
const groups = [];
|
|
843
|
+
if (this.isEmpty()) return new _Collection(groups);
|
|
844
|
+
const size = Math.floor(this.items.length / count);
|
|
845
|
+
const remain = this.items.length % count;
|
|
846
|
+
let start = 0;
|
|
847
|
+
for (let i = 0; i < count; i++) {
|
|
848
|
+
const length = size + (i < remain ? 1 : 0);
|
|
849
|
+
if (!length) continue;
|
|
850
|
+
groups.push(this.newInstance(this.items.slice(start, start + length)));
|
|
851
|
+
start += length;
|
|
852
|
+
}
|
|
853
|
+
return new _Collection(groups);
|
|
854
|
+
}
|
|
855
|
+
/** `count` groups, every group full except the last. */
|
|
856
|
+
splitIn(count) {
|
|
857
|
+
return this.chunk(Math.ceil(this.items.length / count));
|
|
858
|
+
}
|
|
859
|
+
/** Overlapping windows of `size` items, `step` apart: [1, 2, 3].sliding(2) → [[1, 2], [2, 3]]. */
|
|
860
|
+
sliding(size = 2, step = 1) {
|
|
861
|
+
const windows = Math.floor((this.items.length - size) / step) + 1;
|
|
862
|
+
return _Collection.times(windows, (number) => this.slice((number - 1) * step, size));
|
|
863
|
+
}
|
|
864
|
+
/** Chunks that grow while the callback (value, index, the current chunk) returns true. */
|
|
865
|
+
chunkWhile(callback) {
|
|
866
|
+
const chunks = [];
|
|
867
|
+
let chunk = this.newInstance();
|
|
868
|
+
this.items.forEach((item, index) => {
|
|
869
|
+
if (index > 0 && !callback(item, index, chunk)) {
|
|
870
|
+
chunks.push(chunk);
|
|
871
|
+
chunk = this.newInstance();
|
|
872
|
+
}
|
|
873
|
+
chunk.push(item);
|
|
874
|
+
});
|
|
875
|
+
if (chunk.isNotEmpty()) chunks.push(chunk);
|
|
876
|
+
return new _Collection(chunks);
|
|
877
|
+
}
|
|
878
|
+
takeUntil(value2) {
|
|
879
|
+
const stop = this.items.findIndex(predicateFor(value2));
|
|
880
|
+
return this.newInstance(stop === -1 ? this.items : this.items.slice(0, stop));
|
|
881
|
+
}
|
|
882
|
+
takeWhile(value2) {
|
|
883
|
+
const keep = predicateFor(value2);
|
|
884
|
+
const stop = this.items.findIndex((item, index) => !keep(item, index));
|
|
885
|
+
return this.newInstance(stop === -1 ? this.items : this.items.slice(0, stop));
|
|
886
|
+
}
|
|
887
|
+
skipUntil(value2) {
|
|
888
|
+
const start = this.items.findIndex(predicateFor(value2));
|
|
889
|
+
return this.newInstance(start === -1 ? [] : this.items.slice(start));
|
|
890
|
+
}
|
|
891
|
+
skipWhile(value2) {
|
|
892
|
+
const skip = predicateFor(value2);
|
|
893
|
+
const start = this.items.findIndex((item, index) => !skip(item, index));
|
|
894
|
+
return this.newInstance(start === -1 ? [] : this.items.slice(start));
|
|
895
|
+
}
|
|
896
|
+
/** The items at the given indexes, in collection order. */
|
|
897
|
+
only(...indexes) {
|
|
898
|
+
const wanted = new Set(indexes.flat());
|
|
899
|
+
return this.newInstance(this.items.filter((_, index) => wanted.has(index)));
|
|
900
|
+
}
|
|
901
|
+
/** The items except those at the given indexes. */
|
|
902
|
+
except(...indexes) {
|
|
903
|
+
const unwanted = new Set(indexes.flat());
|
|
904
|
+
return this.newInstance(this.items.filter((_, index) => !unwanted.has(index)));
|
|
905
|
+
}
|
|
906
|
+
/** The indexes: 0, 1, 2, … */
|
|
907
|
+
keys() {
|
|
908
|
+
return new _Collection(this.items.keys());
|
|
909
|
+
}
|
|
910
|
+
pop(count) {
|
|
911
|
+
if (count === void 0) return this.items.pop();
|
|
912
|
+
const removed = [];
|
|
913
|
+
while (removed.length < count && this.items.length) removed.push(this.items.pop());
|
|
914
|
+
return this.newInstance(removed);
|
|
915
|
+
}
|
|
916
|
+
shift(count) {
|
|
917
|
+
if (count !== void 0 && count < 0) throw new RangeError("Number of shifted items may not be less than zero.");
|
|
918
|
+
if (count === void 0) return this.items.shift();
|
|
919
|
+
return this.newInstance(this.items.splice(0, count));
|
|
920
|
+
}
|
|
921
|
+
/** Adds an item at the start (mutates). */
|
|
922
|
+
prepend(value2) {
|
|
923
|
+
this.items.unshift(value2);
|
|
924
|
+
return this;
|
|
925
|
+
}
|
|
926
|
+
/** Adds items at the start, in the given order (mutates). */
|
|
927
|
+
unshift(...values) {
|
|
928
|
+
this.items.unshift(...values);
|
|
929
|
+
return this;
|
|
930
|
+
}
|
|
931
|
+
/** Adds one item at the end (mutates). */
|
|
932
|
+
add(item) {
|
|
933
|
+
this.items.push(item);
|
|
934
|
+
return this;
|
|
935
|
+
}
|
|
936
|
+
/** Sets the item at an index (mutates); an index at or past the end appends. */
|
|
937
|
+
put(index, value2) {
|
|
938
|
+
if (!Number.isInteger(index) || index < 0) throw new RangeError(`Invalid collection index [${index}].`);
|
|
939
|
+
if (index < this.items.length) this.items[index] = value2;
|
|
940
|
+
else this.items.push(value2);
|
|
941
|
+
return this;
|
|
942
|
+
}
|
|
943
|
+
pull(index, defaultValue) {
|
|
944
|
+
if (isIndex(index, this.items.length)) return this.items.splice(index, 1)[0];
|
|
945
|
+
return typeof defaultValue === "function" ? defaultValue() : defaultValue;
|
|
946
|
+
}
|
|
947
|
+
/** Removes the items at the given indexes (mutates); the later items move up. */
|
|
948
|
+
forget(...indexes) {
|
|
949
|
+
const remove = [...new Set(indexes.flat())].filter((index) => isIndex(index, this.items.length)).sort((a, b) => b - a);
|
|
950
|
+
for (const index of remove) this.items.splice(index, 1);
|
|
951
|
+
return this;
|
|
952
|
+
}
|
|
953
|
+
/**
|
|
954
|
+
* Removes `length` items from `offset` (mutates), inserting the replacement there, and returns the removed items
|
|
955
|
+
* (PHP's array_splice(): a negative offset counts from the end; a negative length leaves that many at the end).
|
|
956
|
+
*/
|
|
957
|
+
splice(offset, length, replacement = []) {
|
|
958
|
+
const size = this.items.length;
|
|
959
|
+
const start = offset < 0 ? Math.max(0, size + offset) : Math.min(offset, size);
|
|
960
|
+
const count = length === void 0 ? size - start : length < 0 ? Math.max(0, size + length - start) : length;
|
|
961
|
+
return this.newInstance(this.items.splice(start, count, ...replacement));
|
|
962
|
+
}
|
|
963
|
+
/** Replaces every item with the callback's result (mutates) and returns this collection, typed with the new items. */
|
|
964
|
+
transform(callback) {
|
|
965
|
+
const items = this.items;
|
|
966
|
+
items.forEach((item, index) => {
|
|
967
|
+
items[index] = callback(item, index);
|
|
968
|
+
});
|
|
969
|
+
return this;
|
|
970
|
+
}
|
|
971
|
+
/**
|
|
972
|
+
* A copy with items replaced by index: an array from index 0, or { index: value }; past the end appends, and a
|
|
973
|
+
* negative or fractional index throws a RangeError, as put() does.
|
|
974
|
+
*/
|
|
975
|
+
replace(items) {
|
|
976
|
+
const copy = this.newInstance(this.items);
|
|
977
|
+
const entries = Symbol.iterator in items ? [...items].map((value2, index) => [index, value2]) : Object.entries(items).map(([index, value2]) => [Number(index), value2]);
|
|
978
|
+
for (const [index, value2] of [...entries].sort((a, b) => a[0] - b[0])) copy.put(index, value2);
|
|
979
|
+
return copy;
|
|
980
|
+
}
|
|
981
|
+
// ---------------------------------------------------------------- building collections
|
|
982
|
+
/** One level of nested arrays and collections, merged (other items are dropped). */
|
|
983
|
+
collapse() {
|
|
984
|
+
const result = [];
|
|
985
|
+
for (const item of this.items) {
|
|
986
|
+
if (item instanceof _Collection) result.push(...item.all());
|
|
987
|
+
else if (Array.isArray(item)) result.push(...item);
|
|
988
|
+
}
|
|
989
|
+
return new _Collection(result);
|
|
990
|
+
}
|
|
991
|
+
flatten(depth = Infinity) {
|
|
992
|
+
return new _Collection(flattenItems(this.items, depth));
|
|
993
|
+
}
|
|
994
|
+
/** Every combination of the items with the lists' items: [1, 2] × ['a'] → [[1, 'a'], [2, 'a']]. */
|
|
995
|
+
crossJoin(...lists) {
|
|
996
|
+
let rows = this.items.map((item) => [item]);
|
|
997
|
+
for (const list of lists) {
|
|
998
|
+
const values = [...list];
|
|
999
|
+
rows = rows.flatMap((row) => values.map((value2) => [...row, value2]));
|
|
1000
|
+
}
|
|
1001
|
+
return new _Collection(rows);
|
|
1002
|
+
}
|
|
1003
|
+
/** Pairs items by index with the lists' items, as collections; the shorter lists give undefined. */
|
|
1004
|
+
zip(...lists) {
|
|
1005
|
+
const arrays = lists.map((list) => [...list]);
|
|
1006
|
+
const length = Math.max(this.items.length, ...arrays.map((array) => array.length));
|
|
1007
|
+
return _Collection.times(length, (number) => new _Collection([this.items[number - 1], ...arrays.map((array) => array[number - 1])]));
|
|
1008
|
+
}
|
|
1009
|
+
/** The items as keys for the values: ['name', 'age'].combine(['George', 29]) → { name: 'George', age: 29 }. */
|
|
1010
|
+
combine(values) {
|
|
1011
|
+
const list = [...values];
|
|
1012
|
+
if (list.length !== this.items.length) {
|
|
1013
|
+
throw new RangeError("combine(): the keys and the values must have the same number of items.");
|
|
1014
|
+
}
|
|
1015
|
+
return Object.fromEntries(this.items.map((key, index) => [String(key), list[index]]));
|
|
1016
|
+
}
|
|
1017
|
+
/** Each item as a key for its index: ['a', 'b'] → { a: 0, b: 1 }. */
|
|
1018
|
+
flip() {
|
|
1019
|
+
return Object.fromEntries(this.items.map((item, index) => [String(item), index]));
|
|
1020
|
+
}
|
|
1021
|
+
/** The items followed by the given ones (a list merges by appending). */
|
|
1022
|
+
merge(items) {
|
|
1023
|
+
return this.concat(items);
|
|
1024
|
+
}
|
|
1025
|
+
/** The items repeated `multiplier` times. */
|
|
1026
|
+
multiply(multiplier) {
|
|
1027
|
+
return this.newInstance(Array.from({ length: Math.max(0, multiplier) }, () => this.items).flat());
|
|
1028
|
+
}
|
|
1029
|
+
/**
|
|
1030
|
+
* Each item reduced to the given keys it has: select(['name', 'role']). An item has a key when `key in item` or
|
|
1031
|
+
* reading it gives a value, so a model's attributes, which its proxy serves on read, are kept.
|
|
1032
|
+
*/
|
|
1033
|
+
select(...keys) {
|
|
1034
|
+
const names = keys.flat();
|
|
1035
|
+
return this.map((item) => {
|
|
1036
|
+
const picked = {};
|
|
1037
|
+
if (typeof item !== "object" || item === null) return picked;
|
|
1038
|
+
for (const key of names) {
|
|
1039
|
+
const value2 = item[key];
|
|
1040
|
+
if (key in item || value2 !== void 0) picked[key] = value2;
|
|
1041
|
+
}
|
|
1042
|
+
return picked;
|
|
1043
|
+
});
|
|
1044
|
+
}
|
|
1045
|
+
/** A LazyCollection over a copy of the items: later changes to this collection don't reach it. */
|
|
1046
|
+
lazy() {
|
|
1047
|
+
const items = this.all();
|
|
1048
|
+
return LazyCollection.make(() => items);
|
|
1049
|
+
}
|
|
1050
|
+
/** A base collection with the same items. */
|
|
1051
|
+
collect() {
|
|
1052
|
+
return new _Collection(this.items);
|
|
1053
|
+
}
|
|
1054
|
+
implode(keyOrGlue, glue) {
|
|
1055
|
+
if (typeof keyOrGlue === "function") return this.items.map(keyOrGlue).join(glue);
|
|
1056
|
+
if (glue === void 0) return this.items.join(keyOrGlue);
|
|
1057
|
+
return this.items.map((item) => read(item, keyOrGlue)).join(glue);
|
|
1058
|
+
}
|
|
1059
|
+
/** implode() with a different glue before the last item: join(', ', ' and ') → 'a, b and c'. */
|
|
1060
|
+
join(glue, finalGlue = "") {
|
|
1061
|
+
if (finalGlue === "" || this.items.length < 2) return this.implode(glue);
|
|
1062
|
+
return `${this.items.slice(0, -1).join(glue)}${finalGlue}${String(this.items.at(-1))}`;
|
|
1063
|
+
}
|
|
1064
|
+
/**
|
|
1065
|
+
* Runs the callback (collection, value) when the value is truthy, else the default; a function value is called with
|
|
1066
|
+
* the collection first. Returns what the callback returns, or the collection when it returns nothing.
|
|
1067
|
+
*/
|
|
1068
|
+
when(value2, callback, otherwise) {
|
|
1069
|
+
const resolved = typeof value2 === "function" ? value2(this) : value2;
|
|
1070
|
+
const result = resolved ? callback(this, resolved) : otherwise?.(this, resolved);
|
|
1071
|
+
return result ?? this;
|
|
1072
|
+
}
|
|
1073
|
+
/** when() with the condition reversed. */
|
|
1074
|
+
unless(value2, callback, otherwise) {
|
|
1075
|
+
const resolved = typeof value2 === "function" ? value2(this) : value2;
|
|
1076
|
+
const result = !resolved ? callback(this, resolved) : otherwise?.(this, resolved);
|
|
1077
|
+
return result ?? this;
|
|
1078
|
+
}
|
|
1079
|
+
whenEmpty(callback, otherwise) {
|
|
1080
|
+
return this.when(this.isEmpty(), (collection) => callback(collection), otherwise && ((collection) => otherwise(collection)));
|
|
1081
|
+
}
|
|
1082
|
+
whenNotEmpty(callback, otherwise) {
|
|
1083
|
+
return this.when(this.isNotEmpty(), (collection) => callback(collection), otherwise && ((collection) => otherwise(collection)));
|
|
1084
|
+
}
|
|
1085
|
+
/** whenNotEmpty() under Laravel's other name. */
|
|
1086
|
+
unlessEmpty(callback, otherwise) {
|
|
1087
|
+
return this.whenNotEmpty(callback, otherwise);
|
|
1088
|
+
}
|
|
1089
|
+
/** whenEmpty() under Laravel's other name. */
|
|
1090
|
+
unlessNotEmpty(callback, otherwise) {
|
|
1091
|
+
return this.whenEmpty(callback, otherwise);
|
|
1092
|
+
}
|
|
1093
|
+
pipe(callback) {
|
|
1094
|
+
return callback(this);
|
|
1095
|
+
}
|
|
1096
|
+
/** new cls(collection). */
|
|
1097
|
+
pipeInto(cls) {
|
|
1098
|
+
return new cls(this);
|
|
1099
|
+
}
|
|
1100
|
+
pipeThrough(callbacks) {
|
|
1101
|
+
return callbacks.reduce((carry, callback) => callback(carry), this);
|
|
1102
|
+
}
|
|
1103
|
+
tap(callback) {
|
|
1104
|
+
callback(this);
|
|
1105
|
+
return this;
|
|
1106
|
+
}
|
|
1107
|
+
/**
|
|
1108
|
+
* Throws a TypeError unless every item is an instance of one of the classes or of one of the type names (typeof's,
|
|
1109
|
+
* plus 'null' and 'array'), with Laravel's message. Returns the collection, typed with the checked items.
|
|
1110
|
+
*/
|
|
1111
|
+
ensure(type2) {
|
|
1112
|
+
const allowed = [type2].flat();
|
|
1113
|
+
this.items.forEach((item, index) => {
|
|
1114
|
+
const name = typeNameOf(item);
|
|
1115
|
+
const ok = allowed.some((entry) => typeof entry === "string" ? entry === name || entry === "object" && typeof item === "object" && item !== null && !Array.isArray(item) : item instanceof entry);
|
|
1116
|
+
if (!ok) {
|
|
1117
|
+
const names = allowed.map((entry) => typeof entry === "string" ? entry : entry.name).join(", ");
|
|
1118
|
+
throw new TypeError(`Collection should only include [${names}] items, but '${name}' found at position ${index}.`);
|
|
1119
|
+
}
|
|
1120
|
+
});
|
|
1121
|
+
return this;
|
|
1122
|
+
}
|
|
1123
|
+
/** Logs the items (and any extra values) with console.log and returns the collection. */
|
|
1124
|
+
dump(...values) {
|
|
1125
|
+
console.log(this.all(), ...values);
|
|
1126
|
+
return this;
|
|
1127
|
+
}
|
|
1128
|
+
/** JSON with four-space indentation (PHP's JSON_PRETTY_PRINT). */
|
|
1129
|
+
toPrettyJson() {
|
|
1130
|
+
return JSON.stringify(this, null, 4);
|
|
1131
|
+
}
|
|
1132
|
+
};
|
|
1133
|
+
function collect(items = []) {
|
|
1134
|
+
return new Collection(items);
|
|
1135
|
+
}
|
|
1136
|
+
|
|
1137
|
+
// ../Support/dist/index.js
|
|
1138
|
+
import { randomBytes, randomUUID } from "crypto";
|
|
1139
|
+
import pluralize from "pluralize";
|
|
1140
|
+
import { setTimeout as sleep } from "timers/promises";
|
|
1141
|
+
var __defProp = Object.defineProperty;
|
|
1142
|
+
var __export = (target, all) => {
|
|
1143
|
+
for (var name in all)
|
|
1144
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
1145
|
+
};
|
|
1146
|
+
var TABLE = new Map(
|
|
1147
|
+
Object.entries({
|
|
1148
|
+
"\xC1": "A",
|
|
1149
|
+
"\xE1": "a",
|
|
1150
|
+
"\xC4": "A",
|
|
1151
|
+
"\xE4": "a",
|
|
1152
|
+
"\xC0": "A",
|
|
1153
|
+
"\xE0": "a",
|
|
1154
|
+
"\xC2": "A",
|
|
1155
|
+
"\xE2": "a",
|
|
1156
|
+
"\xC9": "E",
|
|
1157
|
+
"\xE9": "e",
|
|
1158
|
+
"\xCB": "E",
|
|
1159
|
+
"\xEB": "e",
|
|
1160
|
+
"\xC8": "E",
|
|
1161
|
+
"\xE8": "e",
|
|
1162
|
+
"\xCA": "E",
|
|
1163
|
+
"\xEA": "e",
|
|
1164
|
+
"\xCD": "I",
|
|
1165
|
+
"\xED": "i",
|
|
1166
|
+
"\xCF": "I",
|
|
1167
|
+
"\xEF": "i",
|
|
1168
|
+
"\xCC": "I",
|
|
1169
|
+
"\xEC": "i",
|
|
1170
|
+
"\xCE": "I",
|
|
1171
|
+
"\xEE": "i",
|
|
1172
|
+
"\xD3": "O",
|
|
1173
|
+
"\xF3": "o",
|
|
1174
|
+
"\xD6": "O",
|
|
1175
|
+
"\xF6": "o",
|
|
1176
|
+
"\xD2": "O",
|
|
1177
|
+
"\xF2": "o",
|
|
1178
|
+
"\xD4": "O",
|
|
1179
|
+
"\xF4": "o",
|
|
1180
|
+
"\xDA": "U",
|
|
1181
|
+
"\xFA": "u",
|
|
1182
|
+
"\xDC": "U",
|
|
1183
|
+
"\xFC": "u",
|
|
1184
|
+
"\xD9": "U",
|
|
1185
|
+
"\xF9": "u",
|
|
1186
|
+
"\xDB": "U",
|
|
1187
|
+
"\xFB": "u",
|
|
1188
|
+
"\xDD": "Y",
|
|
1189
|
+
"\xFD": "y",
|
|
1190
|
+
"\u0178": "Y",
|
|
1191
|
+
"\u0410": "A",
|
|
1192
|
+
"\u0411": "B",
|
|
1193
|
+
"\u0412": "V",
|
|
1194
|
+
"\u0413": "G",
|
|
1195
|
+
"\u0414": "D",
|
|
1196
|
+
"\u0403": "Gj",
|
|
1197
|
+
"\u0415": "E",
|
|
1198
|
+
"\u0416": "Z",
|
|
1199
|
+
"\u0417": "Z",
|
|
1200
|
+
"\u0405": "Dz",
|
|
1201
|
+
"\u0418": "I",
|
|
1202
|
+
"\u0408": "j",
|
|
1203
|
+
"\u041A": "K",
|
|
1204
|
+
"\u041B": "L",
|
|
1205
|
+
"\u0409": "Lj",
|
|
1206
|
+
"\u041C": "M",
|
|
1207
|
+
"\u041D": "N",
|
|
1208
|
+
"\u040A": "Nj",
|
|
1209
|
+
"\u041E": "O",
|
|
1210
|
+
"\u041F": "P",
|
|
1211
|
+
"\u0420": "R",
|
|
1212
|
+
"\u0421": "S",
|
|
1213
|
+
"\u0422": "T",
|
|
1214
|
+
"\u040C": "Kj",
|
|
1215
|
+
"\u0423": "U",
|
|
1216
|
+
"\u0424": "F",
|
|
1217
|
+
"\u0425": "X",
|
|
1218
|
+
"\u0426": "C",
|
|
1219
|
+
"\u0427": "C",
|
|
1220
|
+
"\u040F": "Dz",
|
|
1221
|
+
"\u0428": "S",
|
|
1222
|
+
"\u0430": "a",
|
|
1223
|
+
"\u0431": "b",
|
|
1224
|
+
"\u0432": "v",
|
|
1225
|
+
"\u0433": "g",
|
|
1226
|
+
"\u0434": "d",
|
|
1227
|
+
"\u0453": "gj",
|
|
1228
|
+
"\u0435": "e",
|
|
1229
|
+
"\u0436": "z",
|
|
1230
|
+
"\u0437": "z",
|
|
1231
|
+
"\u0455": "dz",
|
|
1232
|
+
"\u0438": "i",
|
|
1233
|
+
"\u0458": "j",
|
|
1234
|
+
"\u043A": "k",
|
|
1235
|
+
"\u043B": "l",
|
|
1236
|
+
"\u0459": "lj",
|
|
1237
|
+
"\u043C": "m",
|
|
1238
|
+
"\u043D": "n",
|
|
1239
|
+
"\u045A": "nj",
|
|
1240
|
+
"\u043E": "o",
|
|
1241
|
+
"\u043F": "p",
|
|
1242
|
+
"\u0440": "r",
|
|
1243
|
+
"\u0441": "s",
|
|
1244
|
+
"\u0442": "t",
|
|
1245
|
+
"\u045C": "kj",
|
|
1246
|
+
"\u0443": "u",
|
|
1247
|
+
"\u0444": "f",
|
|
1248
|
+
"\u0445": "x",
|
|
1249
|
+
"\u0446": "c",
|
|
1250
|
+
"\u0447": "c",
|
|
1251
|
+
"\u045F": "dz",
|
|
1252
|
+
"\u0448": "s",
|
|
1253
|
+
"\xE6": "ae",
|
|
1254
|
+
"\u01FD": "ae",
|
|
1255
|
+
"\xC3": "A",
|
|
1256
|
+
"\xC5": "A",
|
|
1257
|
+
"\u01FA": "A",
|
|
1258
|
+
"\u0102": "A",
|
|
1259
|
+
"\u01CD": "A",
|
|
1260
|
+
"\xC6": "AE",
|
|
1261
|
+
"\u01FC": "AE",
|
|
1262
|
+
"\xE3": "a",
|
|
1263
|
+
"\xE5": "a",
|
|
1264
|
+
"\u01FB": "a",
|
|
1265
|
+
"\u0103": "a",
|
|
1266
|
+
"\u01CE": "a",
|
|
1267
|
+
"\xAA": "a",
|
|
1268
|
+
"\u0108": "C",
|
|
1269
|
+
"\u010A": "C",
|
|
1270
|
+
"\xC7": "C",
|
|
1271
|
+
"\xE7": "c",
|
|
1272
|
+
"\u0109": "c",
|
|
1273
|
+
"\u010B": "c",
|
|
1274
|
+
"\xD0": "D",
|
|
1275
|
+
"\u0110": "D",
|
|
1276
|
+
"\xF0": "d",
|
|
1277
|
+
"\u0111": "d",
|
|
1278
|
+
"\u0114": "E",
|
|
1279
|
+
"\u0116": "E",
|
|
1280
|
+
"\u0115": "e",
|
|
1281
|
+
"\u0117": "e",
|
|
1282
|
+
"\u0192": "f",
|
|
1283
|
+
"\u011C": "G",
|
|
1284
|
+
"\u0120": "G",
|
|
1285
|
+
"\u011D": "g",
|
|
1286
|
+
"\u0121": "g",
|
|
1287
|
+
"\u0124": "H",
|
|
1288
|
+
"\u0126": "H",
|
|
1289
|
+
"\u0125": "h",
|
|
1290
|
+
"\u0127": "h",
|
|
1291
|
+
"\u0128": "I",
|
|
1292
|
+
"\u012C": "I",
|
|
1293
|
+
"\u01CF": "I",
|
|
1294
|
+
"\u012E": "I",
|
|
1295
|
+
"\u0132": "IJ",
|
|
1296
|
+
"\u0129": "i",
|
|
1297
|
+
"\u012D": "i",
|
|
1298
|
+
"\u01D0": "i",
|
|
1299
|
+
"\u012F": "i",
|
|
1300
|
+
"\u0133": "ij",
|
|
1301
|
+
"\u0134": "J",
|
|
1302
|
+
"\u0135": "j",
|
|
1303
|
+
"\u0139": "L",
|
|
1304
|
+
"\u013D": "L",
|
|
1305
|
+
"\u013F": "L",
|
|
1306
|
+
"\u013A": "l",
|
|
1307
|
+
"\u013E": "l",
|
|
1308
|
+
"\u0140": "l",
|
|
1309
|
+
"\xD1": "N",
|
|
1310
|
+
"\xF1": "n",
|
|
1311
|
+
"\u0149": "n",
|
|
1312
|
+
"\xD5": "O",
|
|
1313
|
+
"\u014C": "O",
|
|
1314
|
+
"\u014E": "O",
|
|
1315
|
+
"\u01D1": "O",
|
|
1316
|
+
"\u0150": "O",
|
|
1317
|
+
"\u01A0": "O",
|
|
1318
|
+
"\xD8": "O",
|
|
1319
|
+
"\u01FE": "O",
|
|
1320
|
+
"\u0152": "OE",
|
|
1321
|
+
"\xF5": "o",
|
|
1322
|
+
"\u014D": "o",
|
|
1323
|
+
"\u014F": "o",
|
|
1324
|
+
"\u01D2": "o",
|
|
1325
|
+
"\u0151": "o",
|
|
1326
|
+
"\u01A1": "o",
|
|
1327
|
+
"\xF8": "o",
|
|
1328
|
+
"\u01FF": "o",
|
|
1329
|
+
"\xBA": "o",
|
|
1330
|
+
"\u0153": "oe",
|
|
1331
|
+
"\u0154": "R",
|
|
1332
|
+
"\u0156": "R",
|
|
1333
|
+
"\u0155": "r",
|
|
1334
|
+
"\u0157": "r",
|
|
1335
|
+
"\u015C": "S",
|
|
1336
|
+
"\u0218": "S",
|
|
1337
|
+
"\u015D": "s",
|
|
1338
|
+
"\u0219": "s",
|
|
1339
|
+
"\u017F": "s",
|
|
1340
|
+
"\u0162": "T",
|
|
1341
|
+
"\u021A": "T",
|
|
1342
|
+
"\u0166": "T",
|
|
1343
|
+
"\xDE": "TH",
|
|
1344
|
+
"\u0163": "t",
|
|
1345
|
+
"\u021B": "t",
|
|
1346
|
+
"\u0167": "t",
|
|
1347
|
+
"\xFE": "th",
|
|
1348
|
+
"\u0168": "U",
|
|
1349
|
+
"\u016C": "U",
|
|
1350
|
+
"\u0170": "U",
|
|
1351
|
+
"\u0172": "U",
|
|
1352
|
+
"\u01AF": "U",
|
|
1353
|
+
"\u01D3": "U",
|
|
1354
|
+
"\u01D5": "U",
|
|
1355
|
+
"\u01D7": "U",
|
|
1356
|
+
"\u01D9": "U",
|
|
1357
|
+
"\u01DB": "U",
|
|
1358
|
+
"\u0169": "u",
|
|
1359
|
+
"\u016D": "u",
|
|
1360
|
+
"\u0171": "u",
|
|
1361
|
+
"\u0173": "u",
|
|
1362
|
+
"\u01B0": "u",
|
|
1363
|
+
"\u01D4": "u",
|
|
1364
|
+
"\u01D6": "u",
|
|
1365
|
+
"\u01D8": "u",
|
|
1366
|
+
"\u01DA": "u",
|
|
1367
|
+
"\u01DC": "u",
|
|
1368
|
+
"\u0174": "W",
|
|
1369
|
+
"\u0175": "w",
|
|
1370
|
+
"\u0176": "Y",
|
|
1371
|
+
"\xFF": "y",
|
|
1372
|
+
"\u0177": "y",
|
|
1373
|
+
"\u0391\u03A5": "AU",
|
|
1374
|
+
"\u0391\u038E": "AU",
|
|
1375
|
+
"\u0391\u03C5": "Au",
|
|
1376
|
+
"\u0391\u03CD": "Au",
|
|
1377
|
+
"\u0395\u038A": "I",
|
|
1378
|
+
"\u0395\u0399": "I",
|
|
1379
|
+
"\u0395\u03B9": "Ei",
|
|
1380
|
+
"\u0395\u03A5": "EF",
|
|
1381
|
+
"\u0395\u038E": "EU",
|
|
1382
|
+
"\u0395\u03AF": "I",
|
|
1383
|
+
"\u0395\u03C5": "Ef",
|
|
1384
|
+
"\u0395\u03CD": "Eu",
|
|
1385
|
+
"\u039F\u0399": "I",
|
|
1386
|
+
"\u039F\u038A": "I",
|
|
1387
|
+
"\u039F\u03A5": "U",
|
|
1388
|
+
"\u039F\u038E": "OU",
|
|
1389
|
+
"\u039F\u03B9": "Oi",
|
|
1390
|
+
"\u039F\u03AF": "I",
|
|
1391
|
+
"\u039F\u03C5": "Oy",
|
|
1392
|
+
"\u039F\u03CD": "Ou",
|
|
1393
|
+
"\u03A5\u0399": "I",
|
|
1394
|
+
"\u038E\u0399": "I",
|
|
1395
|
+
"\u03A5\u03B9": "Yi",
|
|
1396
|
+
"\u038E\u03B9": "I",
|
|
1397
|
+
"\u03A5\u038A": "I",
|
|
1398
|
+
"\u03A5\u03AF": "I",
|
|
1399
|
+
"\u03B1\u03C5": "au",
|
|
1400
|
+
"\u03B1\u03CD": "au",
|
|
1401
|
+
"\u03B5\u03AF": "i",
|
|
1402
|
+
"\u03B5\u03B9": "ei",
|
|
1403
|
+
"\u03B5\u03C5": "ef",
|
|
1404
|
+
"\u03B5\u03CD": "eu",
|
|
1405
|
+
"\u03BF\u03B9": "oi",
|
|
1406
|
+
"\u03BF\u03AF": "i",
|
|
1407
|
+
"\u03BF\u03C5": "oy",
|
|
1408
|
+
"\u03BF\u03CD": "ou",
|
|
1409
|
+
"\u03C5\u03B9": "yi",
|
|
1410
|
+
"\u03CD\u03B9": "i",
|
|
1411
|
+
"\u03C5\u03AF": "i",
|
|
1412
|
+
"\u0391": "A",
|
|
1413
|
+
"\u0386": "A",
|
|
1414
|
+
"\u0392": "B",
|
|
1415
|
+
"\u0394": "D",
|
|
1416
|
+
"\u0395": "E",
|
|
1417
|
+
"\u0388": "E",
|
|
1418
|
+
"\u03A6": "F",
|
|
1419
|
+
"\u0393": "G",
|
|
1420
|
+
"\u0397": "H",
|
|
1421
|
+
"\u0389": "I",
|
|
1422
|
+
"\u0399": "I",
|
|
1423
|
+
"\u038A": "I",
|
|
1424
|
+
"\u03AA": "I",
|
|
1425
|
+
"\u039A": "K",
|
|
1426
|
+
"\u039E": "Ks",
|
|
1427
|
+
"\u039B": "L",
|
|
1428
|
+
"\u039C": "M",
|
|
1429
|
+
"\u039D": "N",
|
|
1430
|
+
"\u03A0": "P",
|
|
1431
|
+
"\u039F": "O",
|
|
1432
|
+
"\u038C": "O",
|
|
1433
|
+
"\u03A8": "Ps",
|
|
1434
|
+
"\u03A1": "R",
|
|
1435
|
+
"\u03A3": "S",
|
|
1436
|
+
"\u03A4": "T",
|
|
1437
|
+
"\u0398": "Th",
|
|
1438
|
+
"\u03A9": "O",
|
|
1439
|
+
"\u038F": "W",
|
|
1440
|
+
"\u03A7": "X",
|
|
1441
|
+
"\u03D2": "Y",
|
|
1442
|
+
"\u03A5": "Y",
|
|
1443
|
+
"\u038E": "Y",
|
|
1444
|
+
"\u03AB": "Y",
|
|
1445
|
+
"\u0396": "Z",
|
|
1446
|
+
"\u03B1": "a",
|
|
1447
|
+
"\u03AC": "a",
|
|
1448
|
+
"\u03B2": "v",
|
|
1449
|
+
"\u03B4": "d",
|
|
1450
|
+
"\u03B5": "e",
|
|
1451
|
+
"\u03AD": "e",
|
|
1452
|
+
"\u03C6": "f",
|
|
1453
|
+
"\u03B3": "gh",
|
|
1454
|
+
"\u03B7": "i",
|
|
1455
|
+
"\u03AE": "i",
|
|
1456
|
+
"\u03B9": "i",
|
|
1457
|
+
"\u03AF": "i",
|
|
1458
|
+
"\u03CA": "i",
|
|
1459
|
+
"\u0390": "i",
|
|
1460
|
+
"\u03BA": "k",
|
|
1461
|
+
"\u03BE": "ks",
|
|
1462
|
+
"\u03BB": "l",
|
|
1463
|
+
"\u03BC": "m",
|
|
1464
|
+
"\u03BD": "n",
|
|
1465
|
+
"\u03BF": "o",
|
|
1466
|
+
"\u03CC": "o",
|
|
1467
|
+
"\u03C0": "p",
|
|
1468
|
+
"\u03C8": "ps",
|
|
1469
|
+
"\u03C1": "r",
|
|
1470
|
+
"\u03C3": "s",
|
|
1471
|
+
"\u03C2": "s",
|
|
1472
|
+
"\u03C4": "t",
|
|
1473
|
+
"\u03D1": "th",
|
|
1474
|
+
"\u03B8": "th",
|
|
1475
|
+
"\u03D0": "v",
|
|
1476
|
+
"\u03C9": "o",
|
|
1477
|
+
"\u03CE": "w",
|
|
1478
|
+
"\u03C7": "kh",
|
|
1479
|
+
"\u03C5": "i",
|
|
1480
|
+
"\u03CD": "y",
|
|
1481
|
+
"\u03B0": "y",
|
|
1482
|
+
"\u03CB": "y",
|
|
1483
|
+
"\u03B6": "z",
|
|
1484
|
+
"\u0905": "a",
|
|
1485
|
+
"\u0906": "aa",
|
|
1486
|
+
"\u090F": "e",
|
|
1487
|
+
"\u0908": "ii",
|
|
1488
|
+
"\u090D": "ei",
|
|
1489
|
+
"\u090E": "ae",
|
|
1490
|
+
"\u0910": "ai",
|
|
1491
|
+
"\u0907": "i",
|
|
1492
|
+
"\u0913": "o",
|
|
1493
|
+
"\u0911": "oi",
|
|
1494
|
+
"\u0912": "oii",
|
|
1495
|
+
"\u090A": "uu",
|
|
1496
|
+
"\u0914": "ou",
|
|
1497
|
+
"\u0909": "u",
|
|
1498
|
+
"\u092C": "B",
|
|
1499
|
+
"\u092D": "Bha",
|
|
1500
|
+
"\u091A": "Ca",
|
|
1501
|
+
"\u091B": "Chha",
|
|
1502
|
+
"\u0921": "Da",
|
|
1503
|
+
"\u0922": "Dha",
|
|
1504
|
+
"\u092B": "Fa",
|
|
1505
|
+
"\u092B\u093C": "Fi",
|
|
1506
|
+
"\u0917": "Ga",
|
|
1507
|
+
"\u0918": "Gha",
|
|
1508
|
+
"\u0917\u093C": "Ghi",
|
|
1509
|
+
"\u0939": "Ha",
|
|
1510
|
+
"\u091C": "Ja",
|
|
1511
|
+
"\u091D": "Jha",
|
|
1512
|
+
"\u0915": "Ka",
|
|
1513
|
+
"\u0916": "Kha",
|
|
1514
|
+
"\u0916\u093C": "Khi",
|
|
1515
|
+
"\u0932": "L",
|
|
1516
|
+
"\u0933": "Li",
|
|
1517
|
+
"\u090C": "Li",
|
|
1518
|
+
"\u0934": "Lii",
|
|
1519
|
+
"\u0961": "Lii",
|
|
1520
|
+
"\u092E": "Ma",
|
|
1521
|
+
"\u0928": "Na",
|
|
1522
|
+
"\u0919": "Na",
|
|
1523
|
+
"\u091E": "Nia",
|
|
1524
|
+
"\u0923": "Nae",
|
|
1525
|
+
"\u0929": "Ni",
|
|
1526
|
+
"\u0950": "oms",
|
|
1527
|
+
"\u092A": "Pa",
|
|
1528
|
+
"\u0915\u093C": "Qi",
|
|
1529
|
+
"\u0930": "Ra",
|
|
1530
|
+
"\u090B": "Ri",
|
|
1531
|
+
"\u0960": "Ri",
|
|
1532
|
+
"\u0931": "Ri",
|
|
1533
|
+
"\u0938": "Sa",
|
|
1534
|
+
"\u0936": "Sha",
|
|
1535
|
+
"\u0937": "Shha",
|
|
1536
|
+
"\u091F": "Ta",
|
|
1537
|
+
"\u0924": "Ta",
|
|
1538
|
+
"\u0920": "Tha",
|
|
1539
|
+
"\u0926": "Tha",
|
|
1540
|
+
"\u0925": "Tha",
|
|
1541
|
+
"\u0927": "Thha",
|
|
1542
|
+
"\u0921\u093C": "ugDha",
|
|
1543
|
+
"\u0922\u093C": "ugDhha",
|
|
1544
|
+
"\u0935": "Va",
|
|
1545
|
+
"\u092F": "Ya",
|
|
1546
|
+
"\u092F\u093C": "Yi",
|
|
1547
|
+
"\u091C\u093C": "Za",
|
|
1548
|
+
"\u0531": "A",
|
|
1549
|
+
"\u0532": "B",
|
|
1550
|
+
"\u0533": "G",
|
|
1551
|
+
"\u0534": "D",
|
|
1552
|
+
"\u0535": "E",
|
|
1553
|
+
"\u0536": "Z",
|
|
1554
|
+
"\u0537": "E",
|
|
1555
|
+
"\u0538": "Y",
|
|
1556
|
+
"\u0539": "Th",
|
|
1557
|
+
"\u053A": "Zh",
|
|
1558
|
+
"\u053B": "I",
|
|
1559
|
+
"\u053C": "L",
|
|
1560
|
+
"\u053D": "Kh",
|
|
1561
|
+
"\u053E": "Ts",
|
|
1562
|
+
"\u053F": "K",
|
|
1563
|
+
"\u0540": "H",
|
|
1564
|
+
"\u0541": "Dz",
|
|
1565
|
+
"\u0542": "Gh",
|
|
1566
|
+
"\u0543": "Tch",
|
|
1567
|
+
"\u0544": "M",
|
|
1568
|
+
"\u0545": "Y",
|
|
1569
|
+
"\u0546": "N",
|
|
1570
|
+
"\u0547": "Sh",
|
|
1571
|
+
"\u0548": "Vo",
|
|
1572
|
+
"\u0549": "Ch",
|
|
1573
|
+
"\u054A": "P",
|
|
1574
|
+
"\u054B": "J",
|
|
1575
|
+
"\u054C": "R",
|
|
1576
|
+
"\u054D": "S",
|
|
1577
|
+
"\u054E": "V",
|
|
1578
|
+
"\u054F": "T",
|
|
1579
|
+
"\u0550": "R",
|
|
1580
|
+
"\u0551": "C",
|
|
1581
|
+
"\u0552": "u",
|
|
1582
|
+
"\u0553": "Ph",
|
|
1583
|
+
"\u0554": "Q",
|
|
1584
|
+
"\u0587": "ev",
|
|
1585
|
+
"\u0555": "O",
|
|
1586
|
+
"\u0556": "F",
|
|
1587
|
+
"\u0561": "a",
|
|
1588
|
+
"\u0562": "b",
|
|
1589
|
+
"\u0563": "g",
|
|
1590
|
+
"\u0564": "d",
|
|
1591
|
+
"\u0565": "e",
|
|
1592
|
+
"\u0566": "z",
|
|
1593
|
+
"\u0567": "e",
|
|
1594
|
+
"\u0568": "y",
|
|
1595
|
+
"\u0569": "th",
|
|
1596
|
+
"\u056A": "zh",
|
|
1597
|
+
"\u056B": "i",
|
|
1598
|
+
"\u056C": "l",
|
|
1599
|
+
"\u056D": "kh",
|
|
1600
|
+
"\u056E": "ts",
|
|
1601
|
+
"\u056F": "k",
|
|
1602
|
+
"\u0570": "h",
|
|
1603
|
+
"\u0571": "dz",
|
|
1604
|
+
"\u0572": "gh",
|
|
1605
|
+
"\u0573": "tch",
|
|
1606
|
+
"\u0574": "m",
|
|
1607
|
+
"\u0575": "y",
|
|
1608
|
+
"\u0576": "n",
|
|
1609
|
+
"\u0577": "sh",
|
|
1610
|
+
"\u0578": "vo",
|
|
1611
|
+
"\u0579": "ch",
|
|
1612
|
+
"\u057A": "p",
|
|
1613
|
+
"\u057B": "j",
|
|
1614
|
+
"\u057C": "r",
|
|
1615
|
+
"\u057D": "s",
|
|
1616
|
+
"\u057E": "v",
|
|
1617
|
+
"\u057F": "t",
|
|
1618
|
+
"\u0580": "r",
|
|
1619
|
+
"\u0581": "c",
|
|
1620
|
+
"\u0582": "u",
|
|
1621
|
+
"\u0583": "ph",
|
|
1622
|
+
"\u0584": "q",
|
|
1623
|
+
"\u0585": "o",
|
|
1624
|
+
"\u0586": "f",
|
|
1625
|
+
"\u017D": "Z",
|
|
1626
|
+
"\u0147": "N",
|
|
1627
|
+
"\u015E": "S",
|
|
1628
|
+
"\u017E": "z",
|
|
1629
|
+
"\u0148": "n",
|
|
1630
|
+
"\u015F": "s",
|
|
1631
|
+
"\u0131": "i",
|
|
1632
|
+
"\u0130": "I",
|
|
1633
|
+
"\u011F": "g",
|
|
1634
|
+
"\u011E": "G",
|
|
1635
|
+
"\u044C\u043E": "yo",
|
|
1636
|
+
"\u0419": "i",
|
|
1637
|
+
"\u0429": "Shh",
|
|
1638
|
+
"\u042A": "Ie",
|
|
1639
|
+
"\u042C": "",
|
|
1640
|
+
"\u042E": "Iu",
|
|
1641
|
+
"\u042F": "Ia",
|
|
1642
|
+
"\u0439": "i",
|
|
1643
|
+
"\u0449": "shh",
|
|
1644
|
+
"\u044A": "ie",
|
|
1645
|
+
"\u044C": "",
|
|
1646
|
+
"\u044E": "iu",
|
|
1647
|
+
"\u044F": "ia",
|
|
1648
|
+
"\u0112": "E",
|
|
1649
|
+
"\u0113": "e",
|
|
1650
|
+
"\u102D\u1010\u103A": "eik",
|
|
1651
|
+
"\u102F\u1010\u103A": "ok",
|
|
1652
|
+
"\u102F\u1014\u103A": "on",
|
|
1653
|
+
"\u1031\u1010\u103A": "it",
|
|
1654
|
+
"\u102F\u1012\u103A": "ait",
|
|
1655
|
+
"\u102C\u1014\u103A": "an",
|
|
1656
|
+
"\u102D\u1014\u103A": "ein",
|
|
1657
|
+
"\u103D\u1010\u103A": "ut",
|
|
1658
|
+
"\u1031\u102B\u103A": "aw",
|
|
1659
|
+
"\u103D\u1014\u103A": "un",
|
|
1660
|
+
"\u102D\u1015\u103A": "eik",
|
|
1661
|
+
"\u102F\u1015\u103A": "ok",
|
|
1662
|
+
"\u103D\u1015\u103A": "ut",
|
|
1663
|
+
"\u102D\u1019\u103A": "ein",
|
|
1664
|
+
"\u102F\u1019\u103A": "on",
|
|
1665
|
+
"\u1031\u102C\u103A": "aw",
|
|
1666
|
+
"\u103D\u1019\u103A": "un",
|
|
1667
|
+
"\u1000\u103A": "et",
|
|
1668
|
+
"\u1031\u102B": "aw",
|
|
1669
|
+
"\u1031\u102C": "aw",
|
|
1670
|
+
"\u103B\u103D": "ywa",
|
|
1671
|
+
"\u103C\u103D": "yw",
|
|
1672
|
+
"\u102D\u102F": "o",
|
|
1673
|
+
"\u102F\u1036": "on",
|
|
1674
|
+
"\u1010\u103A": "at",
|
|
1675
|
+
"\u1004\u103A": "in",
|
|
1676
|
+
"\u100A\u103A": "i",
|
|
1677
|
+
"\u1012\u103A": "d",
|
|
1678
|
+
"\u1014\u103A": "an",
|
|
1679
|
+
"\u1015\u103A": "at",
|
|
1680
|
+
"\u1019\u103A": "an",
|
|
1681
|
+
"\u1005\u103B": "za",
|
|
1682
|
+
"\u101A\u103A": "e",
|
|
1683
|
+
"\u1009\u103A": "in",
|
|
1684
|
+
"\u1005\u103A": "it",
|
|
1685
|
+
"\u102D\u1036": "ein",
|
|
1686
|
+
"\u1032": "e",
|
|
1687
|
+
"\u1038": "",
|
|
1688
|
+
"\u102C": "a",
|
|
1689
|
+
"\u102B": "a",
|
|
1690
|
+
"\u1031": "e",
|
|
1691
|
+
"\u1036": "an",
|
|
1692
|
+
"\u102D": "i",
|
|
1693
|
+
"\u102E": "i",
|
|
1694
|
+
"\u102F": "u",
|
|
1695
|
+
"\u1030": "u",
|
|
1696
|
+
"\u103A": "at",
|
|
1697
|
+
"\u1039": "",
|
|
1698
|
+
"\u1037": "",
|
|
1699
|
+
"\u1000": "k",
|
|
1700
|
+
"\u1049": "9",
|
|
1701
|
+
"\u1010": "t",
|
|
1702
|
+
"\u101B": "ya",
|
|
1703
|
+
"\u101A": "y",
|
|
1704
|
+
"\u1019": "m",
|
|
1705
|
+
"\u1018": "ba",
|
|
1706
|
+
"\u1017": "b",
|
|
1707
|
+
"\u1016": "pa",
|
|
1708
|
+
"\u1015": "p",
|
|
1709
|
+
"\u1014": "n",
|
|
1710
|
+
"\u1013": "da",
|
|
1711
|
+
"\u1012": "d",
|
|
1712
|
+
"\u1011": "ta",
|
|
1713
|
+
"\u100F": "na",
|
|
1714
|
+
"\u101D": "w",
|
|
1715
|
+
"\u100E": "da",
|
|
1716
|
+
"\u100D": "d",
|
|
1717
|
+
"\u100C": "ta",
|
|
1718
|
+
"\u100B": "t",
|
|
1719
|
+
"\u100A": "ny",
|
|
1720
|
+
"\u1007": "z",
|
|
1721
|
+
"\u1006": "sa",
|
|
1722
|
+
"\u1005": "s",
|
|
1723
|
+
"\u1004": "ng",
|
|
1724
|
+
"\u1003": "ga",
|
|
1725
|
+
"\u1002": "g",
|
|
1726
|
+
"\u101C": "l",
|
|
1727
|
+
"\u101E": "th",
|
|
1728
|
+
"\u1048": "8",
|
|
1729
|
+
"\u1029": "aw",
|
|
1730
|
+
"\u1001": "kh",
|
|
1731
|
+
"\u1046": "6",
|
|
1732
|
+
"\u1045": "5",
|
|
1733
|
+
"\u1044": "4",
|
|
1734
|
+
"\u1043": "3",
|
|
1735
|
+
"\u1042": "2",
|
|
1736
|
+
"\u1041": "1",
|
|
1737
|
+
"\u1040": "0",
|
|
1738
|
+
"\u104C": "hnaik",
|
|
1739
|
+
"\u104D": "ywae",
|
|
1740
|
+
"\u102A": "aw",
|
|
1741
|
+
"\u1026": "-u",
|
|
1742
|
+
"\u101F": "h",
|
|
1743
|
+
"\u1009": "u",
|
|
1744
|
+
"\u1024": "-i",
|
|
1745
|
+
"\u1023": "i",
|
|
1746
|
+
"\u104F": "-e",
|
|
1747
|
+
"\u1027": "e",
|
|
1748
|
+
"\u103E": "h",
|
|
1749
|
+
"\u103D": "w",
|
|
1750
|
+
"\u103B": "ya",
|
|
1751
|
+
"\u103C": "y",
|
|
1752
|
+
"\u1021": "a",
|
|
1753
|
+
"\u1020": "la",
|
|
1754
|
+
"\u1047": "7",
|
|
1755
|
+
"D\u017D": "DZ",
|
|
1756
|
+
"D\u017E": "Dz",
|
|
1757
|
+
"d\u017E": "dz",
|
|
1758
|
+
"\u01F1": "DZ",
|
|
1759
|
+
"\u01F2": "Dz",
|
|
1760
|
+
"\u01F3": "dz",
|
|
1761
|
+
"\u01C7": "LJ",
|
|
1762
|
+
"\u01C8": "Lj",
|
|
1763
|
+
"\u01C9": "lj",
|
|
1764
|
+
"\u01CA": "NJ",
|
|
1765
|
+
"\u01CB": "Nj",
|
|
1766
|
+
"\u01CC": "nj",
|
|
1767
|
+
"\u010D": "c",
|
|
1768
|
+
"\u010C": "C",
|
|
1769
|
+
"\u0107": "c",
|
|
1770
|
+
"\u0106": "C",
|
|
1771
|
+
"\u0161": "s",
|
|
1772
|
+
"\u0160": "S",
|
|
1773
|
+
"\u10D0": "a",
|
|
1774
|
+
"\u10D1": "b",
|
|
1775
|
+
"\u10D2": "g",
|
|
1776
|
+
"\u10D3": "d",
|
|
1777
|
+
"\u10D4": "e",
|
|
1778
|
+
"\u10D5": "v",
|
|
1779
|
+
"\u10D6": "z",
|
|
1780
|
+
"\u10D7": "t",
|
|
1781
|
+
"\u10D8": "i",
|
|
1782
|
+
"\u10D9": "k",
|
|
1783
|
+
"\u10DA": "l",
|
|
1784
|
+
"\u10DB": "m",
|
|
1785
|
+
"\u10DC": "n",
|
|
1786
|
+
"\u10DD": "o",
|
|
1787
|
+
"\u10DE": "p",
|
|
1788
|
+
"\u10DF": "zh",
|
|
1789
|
+
"\u10E0": "r",
|
|
1790
|
+
"\u10E1": "s",
|
|
1791
|
+
"\u10E2": "t",
|
|
1792
|
+
"\u10E3": "u",
|
|
1793
|
+
"\u10E4": "f",
|
|
1794
|
+
"\u10E5": "q",
|
|
1795
|
+
"\u10E6": "gh",
|
|
1796
|
+
"\u10E7": "y",
|
|
1797
|
+
"\u10E8": "sh",
|
|
1798
|
+
"\u10E9": "ch",
|
|
1799
|
+
"\u10EA": "ts",
|
|
1800
|
+
"\u10EB": "dz",
|
|
1801
|
+
"\u10EC": "ts",
|
|
1802
|
+
"\u10ED": "ch",
|
|
1803
|
+
"\u10EE": "kh",
|
|
1804
|
+
"\u10EF": "j",
|
|
1805
|
+
"\u10F0": "h",
|
|
1806
|
+
"\u0401": "E",
|
|
1807
|
+
"\u0451": "e",
|
|
1808
|
+
"\u042B": "Y",
|
|
1809
|
+
"\u044B": "y",
|
|
1810
|
+
"\u042D": "E",
|
|
1811
|
+
"\u044D": "e",
|
|
1812
|
+
"\u0406": "I",
|
|
1813
|
+
"\u0456": "i",
|
|
1814
|
+
"\u0472": "F",
|
|
1815
|
+
"\u0473": "f",
|
|
1816
|
+
"\u0462": "E",
|
|
1817
|
+
"\u0463": "e",
|
|
1818
|
+
"\u0474": "I",
|
|
1819
|
+
"\u0475": "i",
|
|
1820
|
+
"\u0404": "Je",
|
|
1821
|
+
"\u0454": "je",
|
|
1822
|
+
"\u0464": "Je",
|
|
1823
|
+
"\u0465": "je",
|
|
1824
|
+
"\uA64A": "U",
|
|
1825
|
+
"\uA64B": "u",
|
|
1826
|
+
"\u0460": "O",
|
|
1827
|
+
"\u0461": "o",
|
|
1828
|
+
"\u047E": "Ot",
|
|
1829
|
+
"\u047F": "ot",
|
|
1830
|
+
"\u046A": "U",
|
|
1831
|
+
"\u046B": "u",
|
|
1832
|
+
"\u0466": "Ja",
|
|
1833
|
+
"\u0467": "ja",
|
|
1834
|
+
"\u046C": "Ju",
|
|
1835
|
+
"\u046D": "ju",
|
|
1836
|
+
"\u0468": "Ja",
|
|
1837
|
+
"\u0469": "Ja",
|
|
1838
|
+
"\u046E": "Ks",
|
|
1839
|
+
"\u046F": "ks",
|
|
1840
|
+
"\u0470": "Ps",
|
|
1841
|
+
"\u0471": "ps",
|
|
1842
|
+
"\u0490": "G",
|
|
1843
|
+
"\u0491": "g",
|
|
1844
|
+
"\u0407": "Yi",
|
|
1845
|
+
"\u0457": "yi",
|
|
1846
|
+
"\u04D8": "A",
|
|
1847
|
+
"\u0492": "G",
|
|
1848
|
+
"\u049A": "Q",
|
|
1849
|
+
"\u04A2": "N",
|
|
1850
|
+
"\u04E8": "O",
|
|
1851
|
+
"\u04B0": "U",
|
|
1852
|
+
"\u04AE": "U",
|
|
1853
|
+
"\u04BA": "H",
|
|
1854
|
+
"\u04D9": "a",
|
|
1855
|
+
"\u0493": "g",
|
|
1856
|
+
"\u049B": "q",
|
|
1857
|
+
"\u04A3": "n",
|
|
1858
|
+
"\u04E9": "o",
|
|
1859
|
+
"\u04B1": "u",
|
|
1860
|
+
"\u04AF": "u",
|
|
1861
|
+
"\u04BB": "h",
|
|
1862
|
+
"\u010F": "d",
|
|
1863
|
+
"\u010E": "D",
|
|
1864
|
+
"\u011B": "e",
|
|
1865
|
+
"\u011A": "E",
|
|
1866
|
+
"\u0159": "r",
|
|
1867
|
+
"\u0158": "R",
|
|
1868
|
+
"\u0165": "t",
|
|
1869
|
+
"\u0164": "T",
|
|
1870
|
+
"\u016F": "u",
|
|
1871
|
+
"\u016E": "U",
|
|
1872
|
+
"\u0105": "a",
|
|
1873
|
+
"\u0119": "e",
|
|
1874
|
+
"\u0142": "l",
|
|
1875
|
+
"\u0144": "n",
|
|
1876
|
+
"\u015B": "s",
|
|
1877
|
+
"\u017A": "z",
|
|
1878
|
+
"\u017C": "z",
|
|
1879
|
+
"\u0104": "A",
|
|
1880
|
+
"\u0118": "E",
|
|
1881
|
+
"\u0141": "L",
|
|
1882
|
+
"\u0143": "N",
|
|
1883
|
+
"\u015A": "S",
|
|
1884
|
+
"\u0179": "Z",
|
|
1885
|
+
"\u017B": "Z",
|
|
1886
|
+
"\u0101": "a",
|
|
1887
|
+
"\u0123": "g",
|
|
1888
|
+
"\u012B": "i",
|
|
1889
|
+
"\u0137": "k",
|
|
1890
|
+
"\u013C": "l",
|
|
1891
|
+
"\u0146": "n",
|
|
1892
|
+
"\u016B": "u",
|
|
1893
|
+
"\u0100": "A",
|
|
1894
|
+
"\u0122": "G",
|
|
1895
|
+
"\u012A": "I",
|
|
1896
|
+
"\u0136": "k",
|
|
1897
|
+
"\u013B": "L",
|
|
1898
|
+
"\u0145": "N",
|
|
1899
|
+
"\u016A": "U",
|
|
1900
|
+
"\u1EA2": "A",
|
|
1901
|
+
"\u1EA0": "A",
|
|
1902
|
+
"\u1EAE": "A",
|
|
1903
|
+
"\u1EB0": "A",
|
|
1904
|
+
"\u1EB2": "A",
|
|
1905
|
+
"\u1EB4": "A",
|
|
1906
|
+
"\u1EB6": "A",
|
|
1907
|
+
"\u1EA4": "A",
|
|
1908
|
+
"\u1EA6": "A",
|
|
1909
|
+
"\u1EA8": "A",
|
|
1910
|
+
"\u1EAA": "A",
|
|
1911
|
+
"\u1EAC": "A",
|
|
1912
|
+
"\u1EA3": "a",
|
|
1913
|
+
"\u1EA1": "a",
|
|
1914
|
+
"\u1EAF": "a",
|
|
1915
|
+
"\u1EB1": "a",
|
|
1916
|
+
"\u1EB3": "a",
|
|
1917
|
+
"\u1EB5": "a",
|
|
1918
|
+
"\u1EB7": "a",
|
|
1919
|
+
"\u1EA5": "a",
|
|
1920
|
+
"\u1EA7": "a",
|
|
1921
|
+
"\u1EA9": "a",
|
|
1922
|
+
"\u1EAB": "a",
|
|
1923
|
+
"\u1EAD": "a",
|
|
1924
|
+
"\u1EBA": "E",
|
|
1925
|
+
"\u1EBC": "E",
|
|
1926
|
+
"\u1EB8": "E",
|
|
1927
|
+
"\u1EBE": "E",
|
|
1928
|
+
"\u1EC0": "E",
|
|
1929
|
+
"\u1EC2": "E",
|
|
1930
|
+
"\u1EC4": "E",
|
|
1931
|
+
"\u1EC6": "E",
|
|
1932
|
+
"\u1EBB": "e",
|
|
1933
|
+
"\u1EBD": "e",
|
|
1934
|
+
"\u1EB9": "e",
|
|
1935
|
+
"\u1EBF": "e",
|
|
1936
|
+
"\u1EC1": "e",
|
|
1937
|
+
"\u1EC3": "e",
|
|
1938
|
+
"\u1EC5": "e",
|
|
1939
|
+
"\u1EC7": "e",
|
|
1940
|
+
"\u1EC8": "I",
|
|
1941
|
+
"\u1ECA": "I",
|
|
1942
|
+
"\u1EC9": "i",
|
|
1943
|
+
"\u1ECB": "i",
|
|
1944
|
+
"\u1ECE": "O",
|
|
1945
|
+
"\u1ECC": "O",
|
|
1946
|
+
"\u1ED0": "O",
|
|
1947
|
+
"\u1ED2": "O",
|
|
1948
|
+
"\u1ED4": "O",
|
|
1949
|
+
"\u1ED6": "O",
|
|
1950
|
+
"\u1ED8": "O",
|
|
1951
|
+
"\u1EDA": "O",
|
|
1952
|
+
"\u1EDC": "O",
|
|
1953
|
+
"\u1EDE": "O",
|
|
1954
|
+
"\u1EE0": "O",
|
|
1955
|
+
"\u1EE2": "O",
|
|
1956
|
+
"\u1ECF": "o",
|
|
1957
|
+
"\u1ECD": "o",
|
|
1958
|
+
"\u1ED1": "o",
|
|
1959
|
+
"\u1ED3": "o",
|
|
1960
|
+
"\u1ED5": "o",
|
|
1961
|
+
"\u1ED7": "o",
|
|
1962
|
+
"\u1ED9": "o",
|
|
1963
|
+
"\u1EDB": "o",
|
|
1964
|
+
"\u1EDD": "o",
|
|
1965
|
+
"\u1EDF": "o",
|
|
1966
|
+
"\u1EE1": "o",
|
|
1967
|
+
"\u1EE3": "o",
|
|
1968
|
+
"\u1EE6": "U",
|
|
1969
|
+
"\u1EE4": "U",
|
|
1970
|
+
"\u1EE8": "U",
|
|
1971
|
+
"\u1EEA": "U",
|
|
1972
|
+
"\u1EEC": "U",
|
|
1973
|
+
"\u1EEE": "U",
|
|
1974
|
+
"\u1EF0": "U",
|
|
1975
|
+
"\u1EE7": "u",
|
|
1976
|
+
"\u1EE5": "u",
|
|
1977
|
+
"\u1EE9": "u",
|
|
1978
|
+
"\u1EEB": "u",
|
|
1979
|
+
"\u1EED": "u",
|
|
1980
|
+
"\u1EEF": "u",
|
|
1981
|
+
"\u1EF1": "u",
|
|
1982
|
+
"\u1EF2": "Y",
|
|
1983
|
+
"\u1EF6": "Y",
|
|
1984
|
+
"\u1EF8": "Y",
|
|
1985
|
+
"\u1EF4": "Y",
|
|
1986
|
+
"\u1EF3": "y",
|
|
1987
|
+
"\u1EF7": "y",
|
|
1988
|
+
"\u1EF9": "y",
|
|
1989
|
+
"\u1EF5": "y",
|
|
1990
|
+
"\u0627": "a",
|
|
1991
|
+
"\u0628": "b",
|
|
1992
|
+
"\u067E": "p",
|
|
1993
|
+
"\u062A": "t",
|
|
1994
|
+
"\u062B": "th",
|
|
1995
|
+
"\u062C": "g",
|
|
1996
|
+
"\u0686": "ch",
|
|
1997
|
+
"\u062D": "h",
|
|
1998
|
+
"\u062E": "kh",
|
|
1999
|
+
"\u062F": "d",
|
|
2000
|
+
"\u0630": "th",
|
|
2001
|
+
"\u0631": "r",
|
|
2002
|
+
"\u0632": "z",
|
|
2003
|
+
"\u0633": "s",
|
|
2004
|
+
"\u0634": "sh",
|
|
2005
|
+
"\u0635": "s",
|
|
2006
|
+
"\u0636": "d",
|
|
2007
|
+
"\u0637": "t",
|
|
2008
|
+
"\u0638": "th",
|
|
2009
|
+
"\u0639": "aa",
|
|
2010
|
+
"\u063A": "gh",
|
|
2011
|
+
"\u0641": "f",
|
|
2012
|
+
"\u0642": "k",
|
|
2013
|
+
"\u06A9": "k",
|
|
2014
|
+
"\u06AF": "g",
|
|
2015
|
+
"\u0644": "l",
|
|
2016
|
+
"\u0698": "zh",
|
|
2017
|
+
"\u0643": "k",
|
|
2018
|
+
"\u0645": "m",
|
|
2019
|
+
"\u0646": "n",
|
|
2020
|
+
"\u0647": "h",
|
|
2021
|
+
"\u0648": "o",
|
|
2022
|
+
"\u06CC": "y",
|
|
2023
|
+
"\u0622": "a",
|
|
2024
|
+
"\u0660": "0",
|
|
2025
|
+
"\u0661": "1",
|
|
2026
|
+
"\u0662": "2",
|
|
2027
|
+
"\u0663": "3",
|
|
2028
|
+
"\u0664": "4",
|
|
2029
|
+
"\u0665": "5",
|
|
2030
|
+
"\u0666": "6",
|
|
2031
|
+
"\u0667": "7",
|
|
2032
|
+
"\u0668": "8",
|
|
2033
|
+
"\u0669": "9",
|
|
2034
|
+
"\u0623": "a",
|
|
2035
|
+
"\u064A": "y",
|
|
2036
|
+
"\u0625": "a",
|
|
2037
|
+
"\u0624": "o",
|
|
2038
|
+
"\u0626": "y",
|
|
2039
|
+
"\u0621": "aa",
|
|
2040
|
+
"\u0452": "dj",
|
|
2041
|
+
"\u045B": "c",
|
|
2042
|
+
"\u0402": "Dj",
|
|
2043
|
+
"\u040B": "C",
|
|
2044
|
+
"\u0259": "e",
|
|
2045
|
+
"\u018F": "E",
|
|
2046
|
+
"\xDF": "ss",
|
|
2047
|
+
"\u1E9E": "SS",
|
|
2048
|
+
"\u09AD\u09CD\u09B2": "vl",
|
|
2049
|
+
"\u09AA\u09B6": "psh",
|
|
2050
|
+
"\u09AC\u09CD\u09A7": "bdh",
|
|
2051
|
+
"\u09AC\u09CD\u099C": "bj",
|
|
2052
|
+
"\u09AC\u09CD\u09A6": "bd",
|
|
2053
|
+
"\u09AC\u09CD\u09AC": "bb",
|
|
2054
|
+
"\u09AC\u09CD\u09B2": "bl",
|
|
2055
|
+
"\u09AD": "v",
|
|
2056
|
+
"\u09AC": "b",
|
|
2057
|
+
"\u099A\u09CD\u099E": "cNG",
|
|
2058
|
+
"\u099A\u09CD\u099B": "cch",
|
|
2059
|
+
"\u099A\u09CD\u099A": "cc",
|
|
2060
|
+
"\u099B": "ch",
|
|
2061
|
+
"\u099A": "c",
|
|
2062
|
+
"\u09A7\u09CD\u09A8": "dhn",
|
|
2063
|
+
"\u09A7\u09CD\u09AE": "dhm",
|
|
2064
|
+
"\u09A6\u09CD\u0998": "dgh",
|
|
2065
|
+
"\u09A6\u09CD\u09A7": "ddh",
|
|
2066
|
+
"\u09A6\u09CD\u09AD": "dv",
|
|
2067
|
+
"\u09A6\u09CD\u09AE": "dm",
|
|
2068
|
+
"\u09A1\u09CD\u09A1": "DD",
|
|
2069
|
+
"\u09A2": "Dh",
|
|
2070
|
+
"\u09A7": "dh",
|
|
2071
|
+
"\u09A6\u09CD\u0997": "dg",
|
|
2072
|
+
"\u09A6\u09CD\u09A6": "dd",
|
|
2073
|
+
"\u09A1": "D",
|
|
2074
|
+
"\u09A6": "d",
|
|
2075
|
+
"\u0964": ".",
|
|
2076
|
+
"\u0998\u09CD\u09A8": "Ghn",
|
|
2077
|
+
"\u0997\u09CD\u09A7": "Gdh",
|
|
2078
|
+
"\u0997\u09CD\u09A3": "GN",
|
|
2079
|
+
"\u0997\u09CD\u09A8": "Gn",
|
|
2080
|
+
"\u0997\u09CD\u09AE": "Gm",
|
|
2081
|
+
"\u0997\u09CD\u09B2": "Gl",
|
|
2082
|
+
"\u099C\u09CD\u099E": "jNG",
|
|
2083
|
+
"\u0998": "Gh",
|
|
2084
|
+
"\u0997": "g",
|
|
2085
|
+
"\u09B9\u09CD\u09A3": "hN",
|
|
2086
|
+
"\u09B9\u09CD\u09A8": "hn",
|
|
2087
|
+
"\u09B9\u09CD\u09AE": "hm",
|
|
2088
|
+
"\u09B9\u09CD\u09B2": "hl",
|
|
2089
|
+
"\u09B9": "h",
|
|
2090
|
+
"\u099C\u09CD\u099D": "jjh",
|
|
2091
|
+
"\u099D": "jh",
|
|
2092
|
+
"\u099C\u09CD\u099C": "jj",
|
|
2093
|
+
"\u099C": "j",
|
|
2094
|
+
"\u0995\u09CD\u09B7": "ksh",
|
|
2095
|
+
"\u0995\u09B6": "ksh",
|
|
2096
|
+
"\u0995\u09CD\u0995": "kk",
|
|
2097
|
+
"\u0995\u09CD\u099F": "kT",
|
|
2098
|
+
"\u0995\u09CD\u09A4": "kt",
|
|
2099
|
+
"\u0995\u09CD\u09B2": "kl",
|
|
2100
|
+
"\u0995\u09CD\u09B8": "ks",
|
|
2101
|
+
"\u0996": "kh",
|
|
2102
|
+
"\u0995": "k",
|
|
2103
|
+
"\u09B2\u09CD\u09AD": "lv",
|
|
2104
|
+
"\u09B2\u09CD\u09A7": "ldh",
|
|
2105
|
+
"\u09B2\u0996": "lkh",
|
|
2106
|
+
"\u09B2\u0998": "lgh",
|
|
2107
|
+
"\u09B2\u09AB": "lph",
|
|
2108
|
+
"\u09B2\u09CD\u0995": "lk",
|
|
2109
|
+
"\u09B2\u09CD\u0997": "lg",
|
|
2110
|
+
"\u09B2\u09CD\u099F": "lT",
|
|
2111
|
+
"\u09B2\u09CD\u09A1": "lD",
|
|
2112
|
+
"\u09B2\u09CD\u09AA": "lp",
|
|
2113
|
+
"\u09B2\u09CD\u09AE": "lm",
|
|
2114
|
+
"\u09B2\u09CD\u09B2": "ll",
|
|
2115
|
+
"\u09B2\u09CD\u09AC": "lb",
|
|
2116
|
+
"\u09B2": "l",
|
|
2117
|
+
"\u09AE\u09CD\u09A5": "mth",
|
|
2118
|
+
"\u09AE\u09CD\u09AB": "mf",
|
|
2119
|
+
"\u09AE\u09CD\u09AD": "mv",
|
|
2120
|
+
"\u09AE\u09CD\u09A8": "mn",
|
|
2121
|
+
"\u09AE\u09CD\u09AA": "mp",
|
|
2122
|
+
"\u09AE\u09CD\u09AE": "mm",
|
|
2123
|
+
"\u09AE\u09CD\u09B2": "ml",
|
|
2124
|
+
"\u09AE\u09CD\u09AC": "mb",
|
|
2125
|
+
"\u09AE": "m",
|
|
2126
|
+
"\u09E6": "0",
|
|
2127
|
+
"\u09E7": "1",
|
|
2128
|
+
"\u09E8": "2",
|
|
2129
|
+
"\u09E9": "3",
|
|
2130
|
+
"\u09EA": "4",
|
|
2131
|
+
"\u09EB": "5",
|
|
2132
|
+
"\u09EC": "6",
|
|
2133
|
+
"\u09ED": "7",
|
|
2134
|
+
"\u09EE": "8",
|
|
2135
|
+
"\u09EF": "9",
|
|
2136
|
+
"\u099E\u09CD\u099B": "nch",
|
|
2137
|
+
"\u0999\u09CD\u0998": "ngh",
|
|
2138
|
+
"\u0999\u09CD\u0996": "nkh",
|
|
2139
|
+
"\u099E\u09CD\u099D": "njh",
|
|
2140
|
+
"\u099E\u09CD\u099A": "nc",
|
|
2141
|
+
"\u0999\u09CD\u0995": "nk",
|
|
2142
|
+
"\u0999\u09CD\u09B7": "Ngx",
|
|
2143
|
+
"\u0999\u09CD\u0997": "ngo",
|
|
2144
|
+
"\u0999\u09CD\u09AE": "Ngm",
|
|
2145
|
+
"\u099E\u09CD\u099C": "nj",
|
|
2146
|
+
"\u09A8\u09CD\u09A7": "ndh",
|
|
2147
|
+
"\u09A8\u09CD\u09A0": "nTh",
|
|
2148
|
+
"\u09A3\u09CD\u09A0": "NTh",
|
|
2149
|
+
"\u09A8\u09CD\u09A5": "nth",
|
|
2150
|
+
"\u09A3\u09CD\u09A2": "NDh",
|
|
2151
|
+
"\u09A8\u09B6": "nsh",
|
|
2152
|
+
"\u0999\u09B0": "Ngr",
|
|
2153
|
+
"\u099E\u09B0": "NGr",
|
|
2154
|
+
"\u0982\u09B0": "ngr",
|
|
2155
|
+
"\u0999": "Ng",
|
|
2156
|
+
"\u099E": "NG",
|
|
2157
|
+
"\u0982": "ng",
|
|
2158
|
+
"\u09A8\u09CD\u09A8": "nn",
|
|
2159
|
+
"\u09A3\u09CD\u09A3": "NN",
|
|
2160
|
+
"\u09A3\u09CD\u09A8": "Nn",
|
|
2161
|
+
"\u09A8\u09CD\u09AE": "nm",
|
|
2162
|
+
"\u09A3\u09CD\u09AE": "Nm",
|
|
2163
|
+
"\u09A8\u09CD\u09A6": "nd",
|
|
2164
|
+
"\u09A8\u09CD\u099F": "nT",
|
|
2165
|
+
"\u09A3\u09CD\u099F": "NT",
|
|
2166
|
+
"\u09A8\u09CD\u09A1": "nD",
|
|
2167
|
+
"\u09A3\u09CD\u09A1": "ND",
|
|
2168
|
+
"\u09A8\u09CD\u09A4": "nt",
|
|
2169
|
+
"\u09A8\u09CD\u09B8": "ns",
|
|
2170
|
+
"\u09A8": "n",
|
|
2171
|
+
"\u09A3": "N",
|
|
2172
|
+
"\u09C8": "OI",
|
|
2173
|
+
"\u09CC": "OU",
|
|
2174
|
+
"\u09CB": "O",
|
|
2175
|
+
"\u0990": "OI",
|
|
2176
|
+
"\u0994": "OU",
|
|
2177
|
+
"\u0985": "o",
|
|
2178
|
+
"\u0993": "oo",
|
|
2179
|
+
"\u09AB\u09CD\u09B2": "fl",
|
|
2180
|
+
"\u09AA\u09CD\u099F": "pT",
|
|
2181
|
+
"\u09AA\u09CD\u09A4": "pt",
|
|
2182
|
+
"\u09AA\u09CD\u09A8": "pn",
|
|
2183
|
+
"\u09AA\u09CD\u09AA": "pp",
|
|
2184
|
+
"\u09AA\u09CD\u09B2": "pl",
|
|
2185
|
+
"\u09AA\u09CD\u09B8": "ps",
|
|
2186
|
+
"\u09AB": "f",
|
|
2187
|
+
"\u09AA": "p",
|
|
2188
|
+
"\u09C3": "rri",
|
|
2189
|
+
"\u098B": "rri",
|
|
2190
|
+
"\u09CD\u09B0\u09B0": "rr",
|
|
2191
|
+
"\u09DC\u09CD\u0997": "Rg",
|
|
2192
|
+
"\u09DD": "Rh",
|
|
2193
|
+
"\u09DC": "R",
|
|
2194
|
+
"\u09B0": "r",
|
|
2195
|
+
"\u09CD\u09B0": "r",
|
|
2196
|
+
"\u09B6\u09CD\u099B": "Sch",
|
|
2197
|
+
"\u09B7\u09CD\u09A0": "ShTh",
|
|
2198
|
+
"\u09B7\u09CD\u09AB": "Shf",
|
|
2199
|
+
"\u09B8\u09CD\u0996": "skh",
|
|
2200
|
+
"\u09B8\u09CD\u09A5": "sth",
|
|
2201
|
+
"\u09B8\u09CD\u09AB": "sf",
|
|
2202
|
+
"\u09B6\u09CD\u099A": "Sc",
|
|
2203
|
+
"\u09B6\u09CD\u09A4": "St",
|
|
2204
|
+
"\u09B6\u09CD\u09A8": "Sn",
|
|
2205
|
+
"\u09B6\u09CD\u09AE": "Sm",
|
|
2206
|
+
"\u09B6\u09CD\u09B2": "Sl",
|
|
2207
|
+
"\u09B7\u09CD\u0995": "Shk",
|
|
2208
|
+
"\u09B7\u09CD\u099F": "ShT",
|
|
2209
|
+
"\u09B7\u09CD\u09A3": "ShN",
|
|
2210
|
+
"\u09B7\u09CD\u09AA": "Shp",
|
|
2211
|
+
"\u09B7\u09CD\u09AE": "Shm",
|
|
2212
|
+
"\u09B8\u09CD\u0995": "sk",
|
|
2213
|
+
"\u09B8\u09CD\u099F": "sT",
|
|
2214
|
+
"\u09B8\u09CD\u09A4": "st",
|
|
2215
|
+
"\u09B8\u09CD\u09A8": "sn",
|
|
2216
|
+
"\u09B8\u09CD\u09AA": "sp",
|
|
2217
|
+
"\u09B8\u09CD\u09AE": "sm",
|
|
2218
|
+
"\u09B8\u09CD\u09B2": "sl",
|
|
2219
|
+
"\u09B6": "S",
|
|
2220
|
+
"\u09B7": "Sh",
|
|
2221
|
+
"\u09B8": "s",
|
|
2222
|
+
"\u09C1": "u",
|
|
2223
|
+
"\u0989": "u",
|
|
2224
|
+
"\u0985\u09CD\u09AF": "oZ",
|
|
2225
|
+
"\u09A4\u09CD\u09A5": "tth",
|
|
2226
|
+
"\u09CE": "tt",
|
|
2227
|
+
"\u099F\u09CD\u099F": "TT",
|
|
2228
|
+
"\u099F\u09CD\u09AE": "Tm",
|
|
2229
|
+
"\u09A0": "Th",
|
|
2230
|
+
"\u09A4\u09CD\u09A8": "tn",
|
|
2231
|
+
"\u09A4\u09CD\u09AE": "tm",
|
|
2232
|
+
"\u09A5": "th",
|
|
2233
|
+
"\u09A4\u09CD\u09A4": "tt",
|
|
2234
|
+
"\u099F": "T",
|
|
2235
|
+
"\u09A4": "t",
|
|
2236
|
+
"\u09BE": "a",
|
|
2237
|
+
"\u0986": "a",
|
|
2238
|
+
"\u09DF\u09BE": "ya",
|
|
2239
|
+
"\u09DF": "y",
|
|
2240
|
+
"\u09BF": "i",
|
|
2241
|
+
"\u0987": "i",
|
|
2242
|
+
"\u09C0": "ee",
|
|
2243
|
+
"\u0988": "ee",
|
|
2244
|
+
"\u09C2": "uu",
|
|
2245
|
+
"\u098A": "uu",
|
|
2246
|
+
"\u09C7": "e",
|
|
2247
|
+
"\u098F": "e",
|
|
2248
|
+
"\u09AF": "z",
|
|
2249
|
+
"\u09CD\u09AF": "Z",
|
|
2250
|
+
"\u0987\u09DF": "y",
|
|
2251
|
+
"\u0993\u09DF": "w",
|
|
2252
|
+
"\u09CD\u09AC": "w",
|
|
2253
|
+
"\u0983": ":",
|
|
2254
|
+
"\u0981": "nn",
|
|
2255
|
+
"\u09CD\u200C": "",
|
|
2256
|
+
"\u02DA": "0",
|
|
2257
|
+
"\xB9": "1",
|
|
2258
|
+
"\xB2": "2",
|
|
2259
|
+
"\xB3": "3",
|
|
2260
|
+
"\u2074": "4",
|
|
2261
|
+
"\u2075": "5",
|
|
2262
|
+
"\u2076": "6",
|
|
2263
|
+
"\u2077": "7",
|
|
2264
|
+
"\u2078": "8",
|
|
2265
|
+
"\u2079": "9",
|
|
2266
|
+
"\u2080": "0",
|
|
2267
|
+
"\u2081": "1",
|
|
2268
|
+
"\u2082": "2",
|
|
2269
|
+
"\u2083": "3",
|
|
2270
|
+
"\u2084": "4",
|
|
2271
|
+
"\u2085": "5",
|
|
2272
|
+
"\u2086": "6",
|
|
2273
|
+
"\u2087": "7",
|
|
2274
|
+
"\u2088": "8",
|
|
2275
|
+
"\u2089": "9",
|
|
2276
|
+
"\u0BE6": "0",
|
|
2277
|
+
"\u0BE7": "1",
|
|
2278
|
+
"\u0BE8": "2",
|
|
2279
|
+
"\u0BE9": "3",
|
|
2280
|
+
"\u0BEA": "4",
|
|
2281
|
+
"\u0BEB": "5",
|
|
2282
|
+
"\u0BEC": "6",
|
|
2283
|
+
"\u0BED": "7",
|
|
2284
|
+
"\u0BEE": "8",
|
|
2285
|
+
"\u0BEF": "9",
|
|
2286
|
+
"\u0BF0": "10",
|
|
2287
|
+
"\u0BF1": "100",
|
|
2288
|
+
"\u0BF2": "1000",
|
|
2289
|
+
"\uA732": "AA",
|
|
2290
|
+
"\uA733": "aa",
|
|
2291
|
+
"\uA734": "AO",
|
|
2292
|
+
"\uA735": "ao",
|
|
2293
|
+
"\uA736": "AU",
|
|
2294
|
+
"\uA737": "au",
|
|
2295
|
+
"\uA738": "AV",
|
|
2296
|
+
"\uA739": "av",
|
|
2297
|
+
"\uA73A": "av",
|
|
2298
|
+
"\uA73B": "av",
|
|
2299
|
+
"\uA73C": "AY",
|
|
2300
|
+
"\uA73D": "ay",
|
|
2301
|
+
"\u0238": "db",
|
|
2302
|
+
"\u02A3": "dz",
|
|
2303
|
+
"\u02A5": "dz",
|
|
2304
|
+
"\u02A4": "dezh",
|
|
2305
|
+
"\u{1F670}": "et",
|
|
2306
|
+
"\uFB00": "ff",
|
|
2307
|
+
"\uFB03": "ffi",
|
|
2308
|
+
"\uFB04": "ffl",
|
|
2309
|
+
"\uFB01": "fi",
|
|
2310
|
+
"\uFB02": "fl",
|
|
2311
|
+
"\u02A9": "feng",
|
|
2312
|
+
"\u02AA": "ls",
|
|
2313
|
+
"\u02AB": "lz",
|
|
2314
|
+
"\u026E": "lezh",
|
|
2315
|
+
"\u0239": "qp",
|
|
2316
|
+
"\u02A8": "tc",
|
|
2317
|
+
"\u02A6": "ts",
|
|
2318
|
+
"\u02A7": "tesh",
|
|
2319
|
+
"\uA74E": "OO",
|
|
2320
|
+
"\uA74F": "oo",
|
|
2321
|
+
"\uFB06": "st",
|
|
2322
|
+
"\uFB05": "st",
|
|
2323
|
+
"\uA728": "TZ",
|
|
2324
|
+
"\uA729": "tz",
|
|
2325
|
+
"\u1D6B": "ue",
|
|
2326
|
+
"A\u03B9": "Ai",
|
|
2327
|
+
"\u03B1\u03B9": "ai",
|
|
2328
|
+
"\u1F00": "a",
|
|
2329
|
+
"\u1F01": "a",
|
|
2330
|
+
"\u1F02": "a",
|
|
2331
|
+
"\u1F03": "a",
|
|
2332
|
+
"\u1F04": "a",
|
|
2333
|
+
"\u1F05": "a",
|
|
2334
|
+
"\u1F06": "a",
|
|
2335
|
+
"\u1F07": "a",
|
|
2336
|
+
"\u1F08": "A",
|
|
2337
|
+
"\u1F09": "A",
|
|
2338
|
+
"\u1F0A": "A",
|
|
2339
|
+
"\u1F0B": "A",
|
|
2340
|
+
"\u1F0C": "A",
|
|
2341
|
+
"\u1F0D": "A",
|
|
2342
|
+
"\u1F0E": "A",
|
|
2343
|
+
"\u1F0F": "A",
|
|
2344
|
+
"\u1FB0": "a",
|
|
2345
|
+
"\u1FB1": "a",
|
|
2346
|
+
"\u1FB2": "a",
|
|
2347
|
+
"\u1FB3": "a",
|
|
2348
|
+
"\u1FB4": "a",
|
|
2349
|
+
"\u1FB6": "a",
|
|
2350
|
+
"\u1FB7": "a",
|
|
2351
|
+
"\u1FB8": "A",
|
|
2352
|
+
"\u1FB9": "A",
|
|
2353
|
+
"\u1FBA": "A",
|
|
2354
|
+
"\u1FBB": "A",
|
|
2355
|
+
"\u1FBC": "A",
|
|
2356
|
+
"A\u0327": "A",
|
|
2357
|
+
"a\u0327": "a",
|
|
2358
|
+
"\u023A": "A",
|
|
2359
|
+
"\u2C65": "a",
|
|
2360
|
+
"\u0226": "A",
|
|
2361
|
+
"\u0227": "a",
|
|
2362
|
+
"\u0181": "B",
|
|
2363
|
+
"C\u0308": "C",
|
|
2364
|
+
"c\u0308": "c",
|
|
2365
|
+
"C\u0328": "C",
|
|
2366
|
+
"c\u0328": "c",
|
|
2367
|
+
"\u023B": "C",
|
|
2368
|
+
"\u023C": "c",
|
|
2369
|
+
"C\u0300": "C",
|
|
2370
|
+
"c\u0300": "c",
|
|
2371
|
+
"C\u0323": "C",
|
|
2372
|
+
"c\u0323": "c",
|
|
2373
|
+
"C\u0304": "C",
|
|
2374
|
+
"c\u0304": "c",
|
|
2375
|
+
"C\u0303": "C",
|
|
2376
|
+
"c\u0303": "c",
|
|
2377
|
+
"\u0228": "E",
|
|
2378
|
+
"\u0229": "e",
|
|
2379
|
+
"\u0246": "E",
|
|
2380
|
+
"\u0247": "e",
|
|
2381
|
+
"I\u0327": "I",
|
|
2382
|
+
"i\u0327": "i",
|
|
2383
|
+
"\u0197": "I",
|
|
2384
|
+
"\u0268": "i",
|
|
2385
|
+
"i": "i",
|
|
2386
|
+
"J\u0301\u0301": "J",
|
|
2387
|
+
"j\u0301": "j",
|
|
2388
|
+
"J\u0300\u0300": "J",
|
|
2389
|
+
"j\u0300": "j",
|
|
2390
|
+
"J\u0308": "J",
|
|
2391
|
+
"j\u0308": "j",
|
|
2392
|
+
"J\u0327": "J",
|
|
2393
|
+
"j\u0327": "j",
|
|
2394
|
+
"J\u0328": "J",
|
|
2395
|
+
"j\u0328": "j",
|
|
2396
|
+
"\u0248": "J",
|
|
2397
|
+
"\u0249": "j",
|
|
2398
|
+
"J\u030C": "J",
|
|
2399
|
+
"\u01F0": "j",
|
|
2400
|
+
"J\u0307": "J",
|
|
2401
|
+
"j": "j",
|
|
2402
|
+
"J\u0323": "J",
|
|
2403
|
+
"j\u0323": "j",
|
|
2404
|
+
"J\u0304": "J",
|
|
2405
|
+
"j\u0304": "j",
|
|
2406
|
+
"J\u0303": "J",
|
|
2407
|
+
"j\u0303": "j",
|
|
2408
|
+
"\u0138": "k",
|
|
2409
|
+
"L\u0300": "L",
|
|
2410
|
+
"l\u0300": "l",
|
|
2411
|
+
"L\u0302": "L",
|
|
2412
|
+
"l\u0302": "l",
|
|
2413
|
+
"L\u0308": "L",
|
|
2414
|
+
"l\u0308": "l",
|
|
2415
|
+
"L\u0328": "L",
|
|
2416
|
+
"l\u0328": "l",
|
|
2417
|
+
"\u023D": "L",
|
|
2418
|
+
"\u019A": "l",
|
|
2419
|
+
"L\u0307": "L",
|
|
2420
|
+
"l\u0307": "l",
|
|
2421
|
+
"\u1E36": "L",
|
|
2422
|
+
"\u1E37": "l",
|
|
2423
|
+
"L\u0304": "L",
|
|
2424
|
+
"l\u0304": "l",
|
|
2425
|
+
"L\u0303": "L",
|
|
2426
|
+
"l\u0303": "l",
|
|
2427
|
+
"\u014A": "N",
|
|
2428
|
+
"\u014B": "n",
|
|
2429
|
+
"\u01F8": "N",
|
|
2430
|
+
"\u01F9": "n",
|
|
2431
|
+
"N\u0302": "N",
|
|
2432
|
+
"n\u0302": "n",
|
|
2433
|
+
"N\u0308": "N",
|
|
2434
|
+
"n\u0308": "n",
|
|
2435
|
+
"N\u0328": "N",
|
|
2436
|
+
"n\u0328": "n",
|
|
2437
|
+
"\uA7A4": "N",
|
|
2438
|
+
"\uA7A5": "n",
|
|
2439
|
+
"\u1E44": "N",
|
|
2440
|
+
"\u1E45": "n",
|
|
2441
|
+
"\u1E46": "N",
|
|
2442
|
+
"\u1E47": "n",
|
|
2443
|
+
"N\u0304": "N",
|
|
2444
|
+
"n\u0304": "n",
|
|
2445
|
+
"O\u0327": "O",
|
|
2446
|
+
"o\u0327": "o",
|
|
2447
|
+
"\u01EA": "O",
|
|
2448
|
+
"\u01EB": "o",
|
|
2449
|
+
"\u019F": "O",
|
|
2450
|
+
"\u0275": "o",
|
|
2451
|
+
"\u022E": "O",
|
|
2452
|
+
"\u022F": "o",
|
|
2453
|
+
"S\u0300": "S",
|
|
2454
|
+
"s\u0300": "s",
|
|
2455
|
+
"\u015C\u0300": "S",
|
|
2456
|
+
"S\u0308": "S",
|
|
2457
|
+
"s\u0308": "s",
|
|
2458
|
+
"S\u0328": "S",
|
|
2459
|
+
"s\u0328": "s",
|
|
2460
|
+
"\uA7A8": "S",
|
|
2461
|
+
"\uA7A9": "s",
|
|
2462
|
+
"\u1E60": "S",
|
|
2463
|
+
"\u1E61": "s",
|
|
2464
|
+
"\u1E62": "S",
|
|
2465
|
+
"\u1E63": "s",
|
|
2466
|
+
"S\u0304": "S",
|
|
2467
|
+
"s\u0304": "s",
|
|
2468
|
+
"S\u0303": "S",
|
|
2469
|
+
"s\u0303": "s",
|
|
2470
|
+
"T\u0301": "T",
|
|
2471
|
+
"t\u0301": "t",
|
|
2472
|
+
"T\u0300": "T",
|
|
2473
|
+
"t\u0300": "t",
|
|
2474
|
+
"T\u0302": "T",
|
|
2475
|
+
"t\u0302": "t",
|
|
2476
|
+
"T\u0308": "T",
|
|
2477
|
+
"\u1E97": "t",
|
|
2478
|
+
"T\u0328": "T",
|
|
2479
|
+
"t\u0328": "t",
|
|
2480
|
+
"\u023E": "T",
|
|
2481
|
+
"\u2C66": "t",
|
|
2482
|
+
"\u1E6A": "T",
|
|
2483
|
+
"\u1E6B": "t",
|
|
2484
|
+
"\u1E6C": "T",
|
|
2485
|
+
"\u1E6D": "t",
|
|
2486
|
+
"T\u0304": "T",
|
|
2487
|
+
"t\u0304": "t",
|
|
2488
|
+
"T\u0303": "T",
|
|
2489
|
+
"t\u0303": "t",
|
|
2490
|
+
"U\u0327": "U",
|
|
2491
|
+
"u\u0327": "u",
|
|
2492
|
+
"\u0244": "U",
|
|
2493
|
+
"\u0289": "u",
|
|
2494
|
+
"U\u0307": "U",
|
|
2495
|
+
"u\u0307": "u",
|
|
2496
|
+
"\u01B1": "U",
|
|
2497
|
+
"\u028A": "u",
|
|
2498
|
+
"\u1E80": "W",
|
|
2499
|
+
"\u1E81": "w",
|
|
2500
|
+
"\u1E82": "W",
|
|
2501
|
+
"\u1E83": "w",
|
|
2502
|
+
"\u1E84": "W",
|
|
2503
|
+
"\u1E85": "w",
|
|
2504
|
+
"\uA656": "Ja",
|
|
2505
|
+
"\uA657": "ja",
|
|
2506
|
+
"Y\u0327": "Y",
|
|
2507
|
+
"y\u0327": "y",
|
|
2508
|
+
"Y\u0328": "Y",
|
|
2509
|
+
"y\u0328": "y",
|
|
2510
|
+
"\u024E": "Y",
|
|
2511
|
+
"\u024F": "y",
|
|
2512
|
+
"Y\u030C": "Y",
|
|
2513
|
+
"y\u030C": "y",
|
|
2514
|
+
"\u1E8E": "Y",
|
|
2515
|
+
"\u1E8F": "y",
|
|
2516
|
+
"\u0232": "Y",
|
|
2517
|
+
"\u0233": "y",
|
|
2518
|
+
"Z\u0300": "Z",
|
|
2519
|
+
"z\u0300": "z",
|
|
2520
|
+
"\u1E90": "Z",
|
|
2521
|
+
"\u1E91": "z",
|
|
2522
|
+
"Z\u0308": "Z",
|
|
2523
|
+
"z\u0308": "z",
|
|
2524
|
+
"Z\u0327": "Z",
|
|
2525
|
+
"z\u0327": "z",
|
|
2526
|
+
"Z\u0328": "Z",
|
|
2527
|
+
"z\u0328": "z",
|
|
2528
|
+
"\u01B5": "Z",
|
|
2529
|
+
"\u01B6": "z",
|
|
2530
|
+
"\u1E92": "Z",
|
|
2531
|
+
"\u1E93": "z",
|
|
2532
|
+
"Z\u0304": "Z",
|
|
2533
|
+
"z\u0304": "z",
|
|
2534
|
+
"Z\u0303": "Z",
|
|
2535
|
+
"z\u0303": "z",
|
|
2536
|
+
"\xA0": " ",
|
|
2537
|
+
"\u1680": " ",
|
|
2538
|
+
"\u2000": " ",
|
|
2539
|
+
"\u2001": " ",
|
|
2540
|
+
"\u2002": " ",
|
|
2541
|
+
"\u2003": " ",
|
|
2542
|
+
"\u2004": " ",
|
|
2543
|
+
"\u2005": " ",
|
|
2544
|
+
"\u2006": " ",
|
|
2545
|
+
"\u2007": " ",
|
|
2546
|
+
"\u2008": " ",
|
|
2547
|
+
"\u2009": " ",
|
|
2548
|
+
"\u200A": " ",
|
|
2549
|
+
"\u2028": " ",
|
|
2550
|
+
"\u2029": " ",
|
|
2551
|
+
"\u200B": " ",
|
|
2552
|
+
"\u202F": " ",
|
|
2553
|
+
"\u205F": " ",
|
|
2554
|
+
"\u3000": " ",
|
|
2555
|
+
"\uFFA0": " ",
|
|
2556
|
+
"\xAB": "<<",
|
|
2557
|
+
"\xBB": ">>",
|
|
2558
|
+
"\u2018": "'",
|
|
2559
|
+
"\u2019": "'",
|
|
2560
|
+
"\u201A": "'",
|
|
2561
|
+
"\u201B": "'",
|
|
2562
|
+
"\u201C": '"',
|
|
2563
|
+
"\u201D": '"',
|
|
2564
|
+
"\u201E": '"',
|
|
2565
|
+
"\u201F": '"',
|
|
2566
|
+
"\u2039": "'",
|
|
2567
|
+
"\u203A": "'",
|
|
2568
|
+
"\u2013": "-",
|
|
2569
|
+
"\u2014": "-",
|
|
2570
|
+
"\u2026": "...",
|
|
2571
|
+
"\u20AC": "EUR",
|
|
2572
|
+
"$": "$",
|
|
2573
|
+
"\u20A2": "Cr",
|
|
2574
|
+
"\u20A3": "Fr.",
|
|
2575
|
+
"\xA3": "PS",
|
|
2576
|
+
"\u20A4": "L.",
|
|
2577
|
+
"\u2133": "M",
|
|
2578
|
+
"\u20A5": "mil",
|
|
2579
|
+
"\u20A6": "N",
|
|
2580
|
+
"\u20A7": "Pts",
|
|
2581
|
+
"\u20A8": "Rs",
|
|
2582
|
+
"\u0DBB\u0DD4": "LKR",
|
|
2583
|
+
"\u0BB0\u0BC2": "LKR",
|
|
2584
|
+
"\u0BF9": "Rs",
|
|
2585
|
+
"\u0930\u0942": "NPR",
|
|
2586
|
+
"\u20B9": "Rs",
|
|
2587
|
+
"\u0AF1": "Rs",
|
|
2588
|
+
"\u20A9": "W",
|
|
2589
|
+
"\u20AA": "NS",
|
|
2590
|
+
"\u20B8": "KZT",
|
|
2591
|
+
"\u20AB": "D",
|
|
2592
|
+
"\u058F": "AMD",
|
|
2593
|
+
"\u20AD": "K",
|
|
2594
|
+
"\u20BA": "TL",
|
|
2595
|
+
"\u20BC": "AZN",
|
|
2596
|
+
"\u20AE": "T",
|
|
2597
|
+
"\u20AF": "Dr",
|
|
2598
|
+
"\u20B2": "PYG",
|
|
2599
|
+
"\u20BE": "GEL",
|
|
2600
|
+
"\u20B3": "ARA",
|
|
2601
|
+
"\u20B4": "UAH",
|
|
2602
|
+
"\u20BD": "RUB",
|
|
2603
|
+
"\u20B5": "GHS",
|
|
2604
|
+
"\u20A1": "CL",
|
|
2605
|
+
"\xA2": "c",
|
|
2606
|
+
"\xA5": "YEN",
|
|
2607
|
+
"\u5186": "JPY",
|
|
2608
|
+
"\u09F3": "BDT",
|
|
2609
|
+
"\u5143": "CNY",
|
|
2610
|
+
"\uFDFC": "SAR",
|
|
2611
|
+
"\u17DB": "KR",
|
|
2612
|
+
"\u20A0": "ECU",
|
|
2613
|
+
"\xA4": "$?",
|
|
2614
|
+
"\u0E3F": "THB",
|
|
2615
|
+
"\u060B": "AFN"
|
|
2616
|
+
})
|
|
2617
|
+
);
|
|
2618
|
+
var UNSUPPORTED = /[^\x09\x10\x13\x0A\x0D\x20-\x7E]/gu;
|
|
2619
|
+
function toAscii(value2) {
|
|
2620
|
+
const characters = value2.match(UNSUPPORTED) ?? [];
|
|
2621
|
+
const done = /* @__PURE__ */ new Set();
|
|
2622
|
+
let result = value2;
|
|
2623
|
+
const replace = (run) => {
|
|
2624
|
+
const ascii2 = TABLE.get(run);
|
|
2625
|
+
if (ascii2 === void 0 || done.has(run) || !result.includes(run)) return;
|
|
2626
|
+
done.add(run);
|
|
2627
|
+
result = result.replaceAll(run, ascii2);
|
|
2628
|
+
};
|
|
2629
|
+
for (const size of [3, 2]) {
|
|
2630
|
+
for (let index = 0; index + size <= characters.length; index++) replace(characters.slice(index, index + size).join(""));
|
|
2631
|
+
}
|
|
2632
|
+
for (const character of characters) replace(character);
|
|
2633
|
+
return result.replace(/\n\r|\n|\r|\t/g, " ").replace(UNSUPPORTED, "");
|
|
2634
|
+
}
|
|
2635
|
+
var INVISIBLE = "\\u0009\\u0020\\u00a0\\u00ad\\u034f\\u061c\\u115f\\u1160\\u17b4\\u17b5\\u180e\\u2000-\\u200f\\u202f\\u205f\\u2060-\\u2065\\u206a-\\u206f\\u3000\\u2800\\u3164\\ufeff\\uffa0\\u{1d159}\\u{1d173}-\\u{1d17a}\\u{e0020}";
|
|
2636
|
+
var LEADING = new RegExp(`^[\\s\\0\\v${INVISIBLE}]+`, "u");
|
|
2637
|
+
var TRAILING = new RegExp(`[\\s\\0\\v${INVISIBLE}]+$`, "u");
|
|
2638
|
+
var TRUE_VALUES = /* @__PURE__ */ new Set(["1", "true", "on", "yes"]);
|
|
2639
|
+
var startTrimmed = (value2, characters) => {
|
|
2640
|
+
let start = 0;
|
|
2641
|
+
while (start < value2.length && characters.includes(value2[start])) start++;
|
|
2642
|
+
return value2.slice(start);
|
|
2643
|
+
};
|
|
2644
|
+
var endTrimmed = (value2, characters) => {
|
|
2645
|
+
let end = value2.length;
|
|
2646
|
+
while (end > 0 && characters.includes(value2[end - 1])) end--;
|
|
2647
|
+
return value2.slice(0, end);
|
|
2648
|
+
};
|
|
2649
|
+
var Stringable = class _Stringable {
|
|
2650
|
+
#value;
|
|
2651
|
+
constructor(value2 = "") {
|
|
2652
|
+
this.#value = value2;
|
|
2653
|
+
}
|
|
2654
|
+
after(search) {
|
|
2655
|
+
return new _Stringable(Str.after(this.#value, search));
|
|
2656
|
+
}
|
|
2657
|
+
afterLast(search) {
|
|
2658
|
+
return new _Stringable(Str.afterLast(this.#value, search));
|
|
2659
|
+
}
|
|
2660
|
+
append(...values) {
|
|
2661
|
+
return new _Stringable(this.#value + values.join(""));
|
|
2662
|
+
}
|
|
2663
|
+
ascii() {
|
|
2664
|
+
return new _Stringable(Str.ascii(this.#value));
|
|
2665
|
+
}
|
|
2666
|
+
before(search) {
|
|
2667
|
+
return new _Stringable(Str.before(this.#value, search));
|
|
2668
|
+
}
|
|
2669
|
+
beforeLast(search) {
|
|
2670
|
+
return new _Stringable(Str.beforeLast(this.#value, search));
|
|
2671
|
+
}
|
|
2672
|
+
between(from, to) {
|
|
2673
|
+
return new _Stringable(Str.between(this.#value, from, to));
|
|
2674
|
+
}
|
|
2675
|
+
camel() {
|
|
2676
|
+
return new _Stringable(Str.camel(this.#value));
|
|
2677
|
+
}
|
|
2678
|
+
contains(needles) {
|
|
2679
|
+
return Str.contains(this.#value, needles);
|
|
2680
|
+
}
|
|
2681
|
+
endsWith(needles) {
|
|
2682
|
+
return Str.endsWith(this.#value, needles);
|
|
2683
|
+
}
|
|
2684
|
+
/** The same string as `value` (a string or another Stringable). */
|
|
2685
|
+
exactly(value2) {
|
|
2686
|
+
return this.#value === String(value2);
|
|
2687
|
+
}
|
|
2688
|
+
/** The parts between the delimiters, as a Collection (PHP's explode()). */
|
|
2689
|
+
explode(delimiter) {
|
|
2690
|
+
return new Collection(this.#value.split(delimiter));
|
|
2691
|
+
}
|
|
2692
|
+
finish(cap) {
|
|
2693
|
+
return new _Stringable(Str.finish(this.#value, cap));
|
|
2694
|
+
}
|
|
2695
|
+
/** Wildcard match, as Str.is(): `*` matches anything. */
|
|
2696
|
+
is(pattern) {
|
|
2697
|
+
return Str.is(pattern, this.#value);
|
|
2698
|
+
}
|
|
2699
|
+
isEmpty() {
|
|
2700
|
+
return this.#value === "";
|
|
2701
|
+
}
|
|
2702
|
+
isNotEmpty() {
|
|
2703
|
+
return this.#value !== "";
|
|
2704
|
+
}
|
|
2705
|
+
kebab() {
|
|
2706
|
+
return new _Stringable(Str.kebab(this.#value));
|
|
2707
|
+
}
|
|
2708
|
+
lcfirst() {
|
|
2709
|
+
return new _Stringable(Str.lcfirst(this.#value));
|
|
2710
|
+
}
|
|
2711
|
+
/** The number of characters (code points, as PHP's mb_strlen()). */
|
|
2712
|
+
length() {
|
|
2713
|
+
return [...this.#value].length;
|
|
2714
|
+
}
|
|
2715
|
+
limit(limit = 100, end = "...") {
|
|
2716
|
+
return new _Stringable(Str.limit(this.#value, limit, end));
|
|
2717
|
+
}
|
|
2718
|
+
lower() {
|
|
2719
|
+
return new _Stringable(this.#value.toLowerCase());
|
|
2720
|
+
}
|
|
2721
|
+
/** Strips whitespace and invisible characters from the start, or the characters given. */
|
|
2722
|
+
ltrim(characters) {
|
|
2723
|
+
return new _Stringable(characters === void 0 ? this.#value.replace(LEADING, "") : startTrimmed(this.#value, characters));
|
|
2724
|
+
}
|
|
2725
|
+
plural(count = 2) {
|
|
2726
|
+
return new _Stringable(Str.plural(this.#value, count));
|
|
2727
|
+
}
|
|
2728
|
+
prepend(...values) {
|
|
2729
|
+
return new _Stringable(values.join("") + this.#value);
|
|
2730
|
+
}
|
|
2731
|
+
/** Replaces every occurrence of the search string (or of each of several) with `replace`. */
|
|
2732
|
+
replace(search, replace) {
|
|
2733
|
+
let value2 = this.#value;
|
|
2734
|
+
for (const needle of [search].flat()) if (needle !== "") value2 = value2.replaceAll(needle, replace);
|
|
2735
|
+
return new _Stringable(value2);
|
|
2736
|
+
}
|
|
2737
|
+
/** Strips whitespace and invisible characters from the end, or the characters given. */
|
|
2738
|
+
rtrim(characters) {
|
|
2739
|
+
return new _Stringable(characters === void 0 ? this.#value.replace(TRAILING, "") : endTrimmed(this.#value, characters));
|
|
2740
|
+
}
|
|
2741
|
+
singular() {
|
|
2742
|
+
return new _Stringable(Str.singular(this.#value));
|
|
2743
|
+
}
|
|
2744
|
+
slug(separator = "-") {
|
|
2745
|
+
return new _Stringable(Str.slug(this.#value, separator));
|
|
2746
|
+
}
|
|
2747
|
+
snake(delimiter = "_") {
|
|
2748
|
+
return new _Stringable(Str.snake(this.#value, delimiter));
|
|
2749
|
+
}
|
|
2750
|
+
start(prefix) {
|
|
2751
|
+
return new _Stringable(Str.start(this.#value, prefix));
|
|
2752
|
+
}
|
|
2753
|
+
startsWith(needles) {
|
|
2754
|
+
return Str.startsWith(this.#value, needles);
|
|
2755
|
+
}
|
|
2756
|
+
studly() {
|
|
2757
|
+
return new _Stringable(Str.studly(this.#value));
|
|
2758
|
+
}
|
|
2759
|
+
title() {
|
|
2760
|
+
return new _Stringable(Str.title(this.#value));
|
|
2761
|
+
}
|
|
2762
|
+
/** PHP's filter_var(FILTER_VALIDATE_BOOLEAN): '1', 'true', 'on' and 'yes' (any case, trimmed) are true. */
|
|
2763
|
+
toBoolean() {
|
|
2764
|
+
return TRUE_VALUES.has(this.#value.trim().toLowerCase());
|
|
2765
|
+
}
|
|
2766
|
+
/** PHP's floatval(): the leading number, else 0. */
|
|
2767
|
+
toFloat() {
|
|
2768
|
+
const parsed = Number.parseFloat(this.#value);
|
|
2769
|
+
return Number.isNaN(parsed) ? 0 : parsed;
|
|
2770
|
+
}
|
|
2771
|
+
/** PHP's intval(): the leading digits, else 0. */
|
|
2772
|
+
toInteger() {
|
|
2773
|
+
const parsed = Number.parseInt(this.#value.trim(), 10);
|
|
2774
|
+
return Number.isNaN(parsed) ? 0 : parsed;
|
|
2775
|
+
}
|
|
2776
|
+
toJSON() {
|
|
2777
|
+
return this.#value;
|
|
2778
|
+
}
|
|
2779
|
+
toString() {
|
|
2780
|
+
return this.#value;
|
|
2781
|
+
}
|
|
2782
|
+
/** Strips whitespace and invisible characters from both ends (Laravel's Str::trim()), or the characters given. */
|
|
2783
|
+
trim(characters) {
|
|
2784
|
+
return this.ltrim(characters).rtrim(characters);
|
|
2785
|
+
}
|
|
2786
|
+
ucfirst() {
|
|
2787
|
+
return new _Stringable(Str.ucfirst(this.#value));
|
|
2788
|
+
}
|
|
2789
|
+
upper() {
|
|
2790
|
+
return new _Stringable(this.#value.toUpperCase());
|
|
2791
|
+
}
|
|
2792
|
+
value() {
|
|
2793
|
+
return this.#value;
|
|
2794
|
+
}
|
|
2795
|
+
};
|
|
2796
|
+
var words = (value2) => value2.replace(/([a-z\d])([A-Z])/g, "$1 $2").replace(/([A-Z]+)([A-Z][a-z])/g, "$1 $2").split(/[^A-Za-z\d]+/).filter(Boolean);
|
|
2797
|
+
var ALPHANUM = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
|
|
2798
|
+
var CROCKFORD = "0123456789ABCDEFGHJKMNPQRSTVWXYZ";
|
|
2799
|
+
var UUID = /^[\da-fA-F]{8}-[\da-fA-F]{4}-[\da-fA-F]{4}-[\da-fA-F]{4}-[\da-fA-F]{12}$/;
|
|
2800
|
+
var ULID = /^[0-7][0-9A-HJKMNP-TV-Z]{25}$/i;
|
|
2801
|
+
var escapeRegex = (s) => s.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
2802
|
+
var escapeClass = (s) => s.replace(/[\\\]^-]/g, "\\$&");
|
|
2803
|
+
var trimCharacters = (value2, characters) => {
|
|
2804
|
+
const set = new Set(characters);
|
|
2805
|
+
let start = 0;
|
|
2806
|
+
let end = value2.length;
|
|
2807
|
+
while (start < end && set.has(value2[start])) start++;
|
|
2808
|
+
while (end > start && set.has(value2[end - 1])) end--;
|
|
2809
|
+
return value2.slice(start, end);
|
|
2810
|
+
};
|
|
2811
|
+
var timestamp48 = (time) => {
|
|
2812
|
+
const ms = time.getTime();
|
|
2813
|
+
if (!(ms >= 0 && ms <= 2 ** 48 - 1)) throw new TypeError("The timestamp must be between 1970-01-01 and 10889-08-02.");
|
|
2814
|
+
return ms;
|
|
2815
|
+
};
|
|
2816
|
+
var anyOf = (needles) => (Array.isArray(needles) ? needles : [needles]).filter((n) => n !== "");
|
|
2817
|
+
var Str = {
|
|
2818
|
+
/** Laravel's Str::of(): the value as a Stringable, for chaining: Str.of(title).trim().slug(). */
|
|
2819
|
+
of: (value2 = "") => new Stringable(value2 === null || value2 === void 0 ? "" : String(value2)),
|
|
2820
|
+
ucfirst: (v) => v.charAt(0).toUpperCase() + v.slice(1),
|
|
2821
|
+
lcfirst: (v) => v.charAt(0).toLowerCase() + v.slice(1),
|
|
2822
|
+
studly: (v) => words(v).map((w) => Str.ucfirst(w.toLowerCase())).join(""),
|
|
2823
|
+
camel: (v) => Str.lcfirst(Str.studly(v)),
|
|
2824
|
+
snake: (v, delimiter = "_") => words(v).map((w) => w.toLowerCase()).join(delimiter),
|
|
2825
|
+
kebab: (v) => Str.snake(v, "-"),
|
|
2826
|
+
title: (v) => v.toLowerCase().replace(/(^|\s)\S/g, (m) => m.toUpperCase()),
|
|
2827
|
+
/** Laravel's Str::ascii(): the value in plain ASCII ('Café' → 'Cafe', 'Ελληνικά' → 'Ellinika'), as for English. */
|
|
2828
|
+
ascii: (v) => toAscii(v),
|
|
2829
|
+
/**
|
|
2830
|
+
* Laravel's Str::slug(): transliterated to ASCII first (unless `language` is null), '@' read as 'at', then lower-cased
|
|
2831
|
+
* letters and digits joined by the separator: 'Café crème' → 'cafe-creme'. What has no ASCII form is dropped.
|
|
2832
|
+
*/
|
|
2833
|
+
slug: (title, separator = "-", language = "en", dictionary = { "@": "at" }) => {
|
|
2834
|
+
let value2 = language === null ? title : toAscii(title);
|
|
2835
|
+
const flip = separator === "-" ? "_" : "-";
|
|
2836
|
+
value2 = value2.replace(new RegExp(`[${escapeClass(flip)}]+`, "gu"), separator);
|
|
2837
|
+
for (const [key, word] of Object.entries(dictionary)) value2 = value2.replaceAll(key, `${separator}${word}${separator}`);
|
|
2838
|
+
value2 = value2.toLowerCase().replace(new RegExp(`[^${escapeClass(separator)}\\p{L}\\p{N}\\s]+`, "gu"), "");
|
|
2839
|
+
value2 = value2.replace(new RegExp(`[${escapeClass(separator)}\\s]+`, "gu"), separator);
|
|
2840
|
+
return trimCharacters(value2, separator);
|
|
2841
|
+
},
|
|
2842
|
+
plural: (v, count = 2) => pluralize(v, count),
|
|
2843
|
+
singular: (v) => pluralize.singular(v),
|
|
2844
|
+
random: (length = 16) => {
|
|
2845
|
+
let out = "";
|
|
2846
|
+
while (out.length < length) {
|
|
2847
|
+
for (const byte of randomBytes(length)) {
|
|
2848
|
+
if (byte < 248 && out.length < length) out += ALPHANUM[byte % 62];
|
|
2849
|
+
}
|
|
2850
|
+
}
|
|
2851
|
+
return out;
|
|
2852
|
+
},
|
|
2853
|
+
uuid: () => randomUUID(),
|
|
2854
|
+
/**
|
|
2855
|
+
* A version 7 UUID (RFC 9562): the time in milliseconds first, so ids from later milliseconds sort after earlier ones
|
|
2856
|
+
* (within one millisecond the order is random). Throws a TypeError for a time before 1970, after 10889 or invalid.
|
|
2857
|
+
*/
|
|
2858
|
+
uuid7: (time = /* @__PURE__ */ new Date()) => {
|
|
2859
|
+
const ms = timestamp48(time);
|
|
2860
|
+
const bytes = randomBytes(16);
|
|
2861
|
+
bytes.writeUIntBE(ms, 0, 6);
|
|
2862
|
+
bytes[6] = 112 | bytes[6] & 15;
|
|
2863
|
+
bytes[8] = 128 | bytes[8] & 63;
|
|
2864
|
+
const hex = bytes.toString("hex");
|
|
2865
|
+
return `${hex.slice(0, 8)}-${hex.slice(8, 12)}-${hex.slice(12, 16)}-${hex.slice(16, 20)}-${hex.slice(20)}`;
|
|
2866
|
+
},
|
|
2867
|
+
/**
|
|
2868
|
+
* A ULID: 26 upper-case Crockford characters, ten for the time in milliseconds and sixteen random, so ids from later
|
|
2869
|
+
* milliseconds sort after earlier ones. Throws a TypeError for a time before 1970, after 10889 or invalid.
|
|
2870
|
+
*/
|
|
2871
|
+
ulid: (time = /* @__PURE__ */ new Date()) => {
|
|
2872
|
+
let out = "";
|
|
2873
|
+
for (let ms = timestamp48(time), i = 0; i < 10; i++, ms = Math.floor(ms / 32)) out = CROCKFORD[ms % 32] + out;
|
|
2874
|
+
let random = BigInt(`0x${randomBytes(10).toString("hex")}`);
|
|
2875
|
+
let tail = "";
|
|
2876
|
+
for (let i = 0; i < 16; i++, random >>= 5n) tail = CROCKFORD[Number(random & 31n)] + tail;
|
|
2877
|
+
return out + tail;
|
|
2878
|
+
},
|
|
2879
|
+
/** Laravel's Str::isUuid(): five groups of hex digits, any version. */
|
|
2880
|
+
isUuid: (value2) => typeof value2 === "string" && UUID.test(value2),
|
|
2881
|
+
/** Laravel's Str::isUlid(): 26 Crockford characters in either case, the first at most 7. */
|
|
2882
|
+
isUlid: (value2) => typeof value2 === "string" && ULID.test(value2),
|
|
2883
|
+
/** Wildcard match: `*` matches anything; everything else is literal. */
|
|
2884
|
+
is: (pattern, value2) => pattern === value2 || new RegExp(`^${pattern.split("*").map(escapeRegex).join(".*")}$`, "s").test(value2),
|
|
2885
|
+
startsWith: (v, needles) => anyOf(needles).some((n) => v.startsWith(n)),
|
|
2886
|
+
endsWith: (v, needles) => anyOf(needles).some((n) => v.endsWith(n)),
|
|
2887
|
+
contains: (v, needles) => anyOf(needles).some((n) => v.includes(n)),
|
|
2888
|
+
after: (v, search) => search === "" || !v.includes(search) ? v : v.slice(v.indexOf(search) + search.length),
|
|
2889
|
+
afterLast: (v, search) => search === "" || !v.includes(search) ? v : v.slice(v.lastIndexOf(search) + search.length),
|
|
2890
|
+
before: (v, search) => search === "" || !v.includes(search) ? v : v.slice(0, v.indexOf(search)),
|
|
2891
|
+
beforeLast: (v, search) => search === "" || !v.includes(search) ? v : v.slice(0, v.lastIndexOf(search)),
|
|
2892
|
+
between: (v, from, to) => Str.beforeLast(Str.after(v, from), to),
|
|
2893
|
+
limit: (v, limit = 100, end = "...") => v.length <= limit ? v : v.slice(0, limit).trimEnd() + end,
|
|
2894
|
+
start: (v, prefix) => v.startsWith(prefix) ? v : prefix + v,
|
|
2895
|
+
finish: (v, cap) => v.endsWith(cap) ? v : v + cap
|
|
2896
|
+
};
|
|
2897
|
+
var FORBIDDEN = /* @__PURE__ */ new Set(["__proto__", "prototype", "constructor"]);
|
|
2898
|
+
var isWalkable = (v) => typeof v === "object" && v !== null;
|
|
2899
|
+
var segments = (key) => key.split(".");
|
|
2900
|
+
var Arr = {
|
|
2901
|
+
get(target, key, defaultValue) {
|
|
2902
|
+
if (key === void 0 || key === "") return target;
|
|
2903
|
+
let current = target;
|
|
2904
|
+
for (const segment of segments(key)) {
|
|
2905
|
+
if (!isWalkable(current) || !Object.hasOwn(current, segment)) return defaultValue;
|
|
2906
|
+
current = current[segment];
|
|
2907
|
+
}
|
|
2908
|
+
return current;
|
|
2909
|
+
},
|
|
2910
|
+
has(target, key) {
|
|
2911
|
+
const missing = /* @__PURE__ */ Symbol("missing");
|
|
2912
|
+
return Arr.get(target, key, missing) !== missing;
|
|
2913
|
+
},
|
|
2914
|
+
set(target, key, value2) {
|
|
2915
|
+
const parts = segments(key);
|
|
2916
|
+
if (parts.some((p) => FORBIDDEN.has(p))) throw new Error(`Refusing to set unsafe key "${key}"`);
|
|
2917
|
+
let current = target;
|
|
2918
|
+
parts.slice(0, -1).forEach((segment) => {
|
|
2919
|
+
if (!isWalkable(current[segment])) current[segment] = {};
|
|
2920
|
+
current = current[segment];
|
|
2921
|
+
});
|
|
2922
|
+
current[parts.at(-1)] = value2;
|
|
2923
|
+
return target;
|
|
2924
|
+
},
|
|
2925
|
+
forget(target, key) {
|
|
2926
|
+
const parts = segments(key);
|
|
2927
|
+
const parent = parts.length === 1 ? target : Arr.get(target, parts.slice(0, -1).join("."));
|
|
2928
|
+
if (isWalkable(parent)) delete parent[parts.at(-1)];
|
|
2929
|
+
},
|
|
2930
|
+
dot(target, prefix = "") {
|
|
2931
|
+
const out = {};
|
|
2932
|
+
for (const [k, v] of Object.entries(target)) {
|
|
2933
|
+
const path = prefix + k;
|
|
2934
|
+
if (isWalkable(v) && Object.keys(v).length > 0) Object.assign(out, Arr.dot(v, `${path}.`));
|
|
2935
|
+
else out[path] = v;
|
|
2936
|
+
}
|
|
2937
|
+
return out;
|
|
2938
|
+
},
|
|
2939
|
+
undot(flat) {
|
|
2940
|
+
const out = {};
|
|
2941
|
+
for (const [k, v] of Object.entries(flat)) Arr.set(out, k, v);
|
|
2942
|
+
return out;
|
|
2943
|
+
},
|
|
2944
|
+
only(target, keys) {
|
|
2945
|
+
return Object.fromEntries(keys.filter((k) => Object.hasOwn(target, k)).map((k) => [k, target[k]]));
|
|
2946
|
+
},
|
|
2947
|
+
except(target, keys) {
|
|
2948
|
+
const skip = new Set(keys);
|
|
2949
|
+
return Object.fromEntries(Object.entries(target).filter(([k]) => !skip.has(k)));
|
|
2950
|
+
},
|
|
2951
|
+
wrap(value2) {
|
|
2952
|
+
if (value2 === null || value2 === void 0) return [];
|
|
2953
|
+
return Array.isArray(value2) ? value2 : [value2];
|
|
2954
|
+
},
|
|
2955
|
+
first(items, predicate, defaultValue) {
|
|
2956
|
+
const index = predicate ? items.findIndex(predicate) : items.length > 0 ? 0 : -1;
|
|
2957
|
+
return index === -1 ? defaultValue : items[index];
|
|
2958
|
+
},
|
|
2959
|
+
last(items, predicate, defaultValue) {
|
|
2960
|
+
const index = predicate ? items.findLastIndex(predicate) : items.length - 1;
|
|
2961
|
+
return index === -1 ? defaultValue : items[index];
|
|
2962
|
+
}
|
|
2963
|
+
};
|
|
2964
|
+
var ServiceProvider = class {
|
|
2965
|
+
constructor(app2) {
|
|
2966
|
+
this.app = app2;
|
|
2967
|
+
}
|
|
2968
|
+
app;
|
|
2969
|
+
register() {
|
|
2970
|
+
}
|
|
2971
|
+
boot() {
|
|
2972
|
+
}
|
|
2973
|
+
/** Package defaults under `key`; values the app already set win (shallow merge, like Laravel). */
|
|
2974
|
+
mergeConfigFrom(defaults, key) {
|
|
2975
|
+
const config2 = this.app.make(ConfigRepository);
|
|
2976
|
+
config2.set(key, { ...defaults, ...config2.get(key, {}) });
|
|
2977
|
+
}
|
|
2978
|
+
};
|
|
2979
|
+
function facade(abstract, extras) {
|
|
2980
|
+
const container = () => {
|
|
2981
|
+
const c = currentContainer();
|
|
2982
|
+
if (!c) throw new ContainerNotAvailableError(describe(abstract));
|
|
2983
|
+
return c;
|
|
2984
|
+
};
|
|
2985
|
+
const statics = {
|
|
2986
|
+
getFacadeRoot: () => container().make(abstract),
|
|
2987
|
+
swap: (instance) => void container().instance(abstract, instance)
|
|
2988
|
+
};
|
|
2989
|
+
const proxy = new Proxy({}, {
|
|
2990
|
+
get(_target, prop) {
|
|
2991
|
+
if (typeof prop === "symbol" || prop === "then") return void 0;
|
|
2992
|
+
if (extras && Object.hasOwn(extras, prop)) {
|
|
2993
|
+
const extra = extras[prop];
|
|
2994
|
+
return typeof extra === "function" ? extra.bind(proxy) : extra;
|
|
2995
|
+
}
|
|
2996
|
+
if (Object.hasOwn(statics, prop)) return statics[prop];
|
|
2997
|
+
const root = statics.getFacadeRoot();
|
|
2998
|
+
const value2 = Reflect.get(root, prop, root);
|
|
2999
|
+
return typeof value2 === "function" ? value2.bind(root) : value2;
|
|
3000
|
+
}
|
|
3001
|
+
});
|
|
3002
|
+
return proxy;
|
|
3003
|
+
}
|
|
3004
|
+
var ClassRegistry = class {
|
|
3005
|
+
byName = /* @__PURE__ */ new Map();
|
|
3006
|
+
byClass = /* @__PURE__ */ new Map();
|
|
3007
|
+
register(cls, name = cls.name) {
|
|
3008
|
+
const existingName = this.byClass.get(cls);
|
|
3009
|
+
if (existingName !== void 0) return existingName;
|
|
3010
|
+
if (!name) throw new Error('Anonymous classes need an explicit name: registry.register(cls, "Some.Name")');
|
|
3011
|
+
const existing = this.byName.get(name);
|
|
3012
|
+
if (existing && existing !== cls) {
|
|
3013
|
+
throw new Error(`"${name}" is already registered to a different class. Pass an explicit name: register(cls, "Module.${name}")`);
|
|
3014
|
+
}
|
|
3015
|
+
this.byName.set(name, cls);
|
|
3016
|
+
this.byClass.set(cls, name);
|
|
3017
|
+
return name;
|
|
3018
|
+
}
|
|
3019
|
+
nameOf(cls) {
|
|
3020
|
+
return this.byClass.get(cls);
|
|
3021
|
+
}
|
|
3022
|
+
resolve(name) {
|
|
3023
|
+
const cls = this.byName.get(name);
|
|
3024
|
+
if (!cls) throw new Error(`No class registered as "${name}". Is it registered by its service provider?`);
|
|
3025
|
+
return cls;
|
|
3026
|
+
}
|
|
3027
|
+
has(name) {
|
|
3028
|
+
return this.byName.has(name);
|
|
3029
|
+
}
|
|
3030
|
+
};
|
|
3031
|
+
var SCOPE_METHODS = /* @__PURE__ */ new Set(["make", "instance", "bound", "resolved", "forgetInstance", "createScope", "run"]);
|
|
3032
|
+
var scopedViews = /* @__PURE__ */ new WeakMap();
|
|
3033
|
+
function viewFrom(scope, application) {
|
|
3034
|
+
let view = scopedViews.get(scope);
|
|
3035
|
+
if (view === void 0) {
|
|
3036
|
+
view = new Proxy(application, {
|
|
3037
|
+
get(target, property) {
|
|
3038
|
+
const source = SCOPE_METHODS.has(property) ? scope : target;
|
|
3039
|
+
const member = Reflect.get(source, property, source);
|
|
3040
|
+
return typeof member === "function" ? member.bind(source) : member;
|
|
3041
|
+
}
|
|
3042
|
+
});
|
|
3043
|
+
scopedViews.set(scope, view);
|
|
3044
|
+
}
|
|
3045
|
+
return view;
|
|
3046
|
+
}
|
|
3047
|
+
function app(abstract) {
|
|
3048
|
+
if (abstract !== void 0) return inject(abstract);
|
|
3049
|
+
const application = inject(Application);
|
|
3050
|
+
const current = currentContainer();
|
|
3051
|
+
return current === void 0 || current === application ? application : viewFrom(current, application);
|
|
3052
|
+
}
|
|
3053
|
+
function config(keyOrValues, defaultValue) {
|
|
3054
|
+
const repository = inject(ConfigRepository);
|
|
3055
|
+
if (keyOrValues === void 0) return repository;
|
|
3056
|
+
if (typeof keyOrValues === "string") return repository.get(keyOrValues, defaultValue);
|
|
3057
|
+
repository.set(keyOrValues);
|
|
3058
|
+
return void 0;
|
|
3059
|
+
}
|
|
3060
|
+
var now = () => /* @__PURE__ */ new Date();
|
|
3061
|
+
var value = (v) => typeof v === "function" ? v() : v;
|
|
3062
|
+
function tap(target, callback) {
|
|
3063
|
+
callback(target);
|
|
3064
|
+
return target;
|
|
3065
|
+
}
|
|
3066
|
+
async function retry(times, fn, sleepMs = 0, when) {
|
|
3067
|
+
for (let attempt = 1; ; attempt++) {
|
|
3068
|
+
try {
|
|
3069
|
+
return await fn(attempt);
|
|
3070
|
+
} catch (error) {
|
|
3071
|
+
if (attempt >= times || when && !when(error)) throw error;
|
|
3072
|
+
const ms = typeof sleepMs === "function" ? sleepMs(attempt) : sleepMs;
|
|
3073
|
+
if (ms > 0) await sleep(ms);
|
|
3074
|
+
}
|
|
3075
|
+
}
|
|
3076
|
+
}
|
|
3077
|
+
var LINES = {
|
|
3078
|
+
"auth.failed": "These credentials do not match our records.",
|
|
3079
|
+
"auth.password": "The provided password is incorrect.",
|
|
3080
|
+
"auth.throttle": "Too many login attempts. Please try again in :seconds seconds.",
|
|
3081
|
+
"passwords.reset": "Your password has been reset.",
|
|
3082
|
+
"passwords.sent": "We have emailed your password reset link.",
|
|
3083
|
+
"passwords.throttled": "Please wait before retrying.",
|
|
3084
|
+
"passwords.token": "This password reset token is invalid.",
|
|
3085
|
+
"passwords.user": "We can't find a user with that email address."
|
|
3086
|
+
};
|
|
3087
|
+
function __(key, replace = {}) {
|
|
3088
|
+
let line = LINES[key] ?? key;
|
|
3089
|
+
const names = Object.keys(replace).sort((a, b) => b.length - a.length);
|
|
3090
|
+
for (const name of names) {
|
|
3091
|
+
const value2 = String(replace[name]);
|
|
3092
|
+
const capitalized = name.charAt(0).toUpperCase() + name.slice(1);
|
|
3093
|
+
line = line.replaceAll(`:${capitalized}`, value2.charAt(0).toUpperCase() + value2.slice(1)).replaceAll(`:${name.toUpperCase()}`, value2.toUpperCase()).replaceAll(`:${name}`, value2);
|
|
3094
|
+
}
|
|
3095
|
+
return line;
|
|
3096
|
+
}
|
|
3097
|
+
var fileType_exports = {};
|
|
3098
|
+
__export(fileType_exports, {
|
|
3099
|
+
AVIF: () => AVIF,
|
|
3100
|
+
BINARY_AND_MARKUP_TYPES: () => BINARY_AND_MARKUP_TYPES,
|
|
3101
|
+
BMP: () => BMP,
|
|
3102
|
+
EMPTY: () => EMPTY,
|
|
3103
|
+
GIF: () => GIF,
|
|
3104
|
+
HTML: () => HTML,
|
|
3105
|
+
JPEG: () => JPEG,
|
|
3106
|
+
PDF: () => PDF,
|
|
3107
|
+
PNG: () => PNG,
|
|
3108
|
+
RASTER_IMAGES: () => RASTER_IMAGES,
|
|
3109
|
+
SNIFF_BYTES: () => SNIFF_BYTES,
|
|
3110
|
+
SVG: () => SVG,
|
|
3111
|
+
TEXT: () => TEXT,
|
|
3112
|
+
UNKNOWN: () => UNKNOWN,
|
|
3113
|
+
WEBP: () => WEBP,
|
|
3114
|
+
XML: () => XML,
|
|
3115
|
+
detectFileType: () => detectFileType
|
|
3116
|
+
});
|
|
3117
|
+
var type = (mime, ...extensions) => Object.freeze({ mime, extensions: Object.freeze(extensions) });
|
|
3118
|
+
var JPEG = type("image/jpeg", "jpg", "jpeg");
|
|
3119
|
+
var PNG = type("image/png", "png");
|
|
3120
|
+
var GIF = type("image/gif", "gif");
|
|
3121
|
+
var WEBP = type("image/webp", "webp");
|
|
3122
|
+
var AVIF = type("image/avif", "avif");
|
|
3123
|
+
var BMP = type("image/bmp", "bmp");
|
|
3124
|
+
var SVG = type("image/svg+xml", "svg");
|
|
3125
|
+
var PDF = type("application/pdf", "pdf");
|
|
3126
|
+
var HTML = type("text/html", "html", "htm");
|
|
3127
|
+
var XML = type("text/xml", "xml");
|
|
3128
|
+
var TEXT = type("text/plain", "txt");
|
|
3129
|
+
var UNKNOWN = type("application/octet-stream");
|
|
3130
|
+
var EMPTY = type("application/x-empty");
|
|
3131
|
+
var RASTER_IMAGES = new Set([JPEG, PNG, GIF, WEBP, AVIF, BMP].map(({ mime }) => mime));
|
|
3132
|
+
var BINARY_AND_MARKUP_TYPES = [JPEG, PNG, GIF, WEBP, AVIF, BMP, SVG, PDF, HTML, XML];
|
|
3133
|
+
var SNIFF_BYTES = 1024 * 1024;
|
|
3134
|
+
var MARKUP_SNIFF_BYTES = 64 * 1024;
|
|
3135
|
+
var MAX_PROLOG_ITEMS = 64;
|
|
3136
|
+
var BINARY_BYTES = new Uint8Array(256).fill(1, 0, 32);
|
|
3137
|
+
for (const byte of [7, 8, 9, 10, 11, 12, 13, 27]) BINARY_BYTES[byte] = 0;
|
|
3138
|
+
BINARY_BYTES[127] = 1;
|
|
3139
|
+
var FTYP_SCAN_BYTES = 1024;
|
|
3140
|
+
var BMP_HEADER_SIZES = /* @__PURE__ */ new Set([12, 40, 52, 56, 64, 108, 124]);
|
|
3141
|
+
var ascii = (bytes, offset, length) => String.fromCharCode(...bytes.subarray(offset, offset + length));
|
|
3142
|
+
var startsWith = (bytes, signature) => bytes.length >= signature.length && signature.every((byte, i) => bytes[i] === byte);
|
|
3143
|
+
var u32be = (bytes, offset) => (bytes[offset] << 24 | bytes[offset + 1] << 16 | bytes[offset + 2] << 8 | bytes[offset + 3]) >>> 0;
|
|
3144
|
+
var u32le = (bytes, offset) => (bytes[offset] | bytes[offset + 1] << 8 | bytes[offset + 2] << 16 | bytes[offset + 3] << 24) >>> 0;
|
|
3145
|
+
function detectFileType(bytes) {
|
|
3146
|
+
if (bytes.length === 0) return EMPTY;
|
|
3147
|
+
if (startsWith(bytes, [255, 216, 255])) return JPEG;
|
|
3148
|
+
if (startsWith(bytes, [137, 80, 78, 71, 13, 10, 26, 10])) return PNG;
|
|
3149
|
+
const head = ascii(bytes, 0, 6);
|
|
3150
|
+
if (head === "GIF87a" || head === "GIF89a") return GIF;
|
|
3151
|
+
if (ascii(bytes, 0, 4) === "RIFF" && ascii(bytes, 8, 4) === "WEBP") return WEBP;
|
|
3152
|
+
if (isAvif(bytes)) return AVIF;
|
|
3153
|
+
if (ascii(bytes, 0, 2) === "BM" && bytes.length >= 18 && BMP_HEADER_SIZES.has(u32le(bytes, 14))) return BMP;
|
|
3154
|
+
if (ascii(bytes, 0, 5) === "%PDF-") return PDF;
|
|
3155
|
+
return detectText(bytes);
|
|
3156
|
+
}
|
|
3157
|
+
function isAvif(bytes) {
|
|
3158
|
+
if (bytes.length < 16 || ascii(bytes, 4, 4) !== "ftyp") return false;
|
|
3159
|
+
const isAvifBrand = (offset) => {
|
|
3160
|
+
const brand = ascii(bytes, offset, 4);
|
|
3161
|
+
return brand === "avif" || brand === "avis";
|
|
3162
|
+
};
|
|
3163
|
+
if (isAvifBrand(8)) return true;
|
|
3164
|
+
const end = Math.min(u32be(bytes, 0), bytes.length, FTYP_SCAN_BYTES);
|
|
3165
|
+
for (let offset = 16; offset + 4 <= end; offset += 4) {
|
|
3166
|
+
if (isAvifBrand(offset)) return true;
|
|
3167
|
+
}
|
|
3168
|
+
return false;
|
|
3169
|
+
}
|
|
3170
|
+
function detectText(bytes) {
|
|
3171
|
+
const end = Math.min(bytes.length, SNIFF_BYTES);
|
|
3172
|
+
for (let i = 0; i < end; i++) {
|
|
3173
|
+
if (BINARY_BYTES[bytes[i]] === 1) return UNKNOWN;
|
|
3174
|
+
}
|
|
3175
|
+
const content = new TextDecoder().decode(bytes.subarray(0, MARKUP_SNIFF_BYTES)).trimStart();
|
|
3176
|
+
if (!content.startsWith("<")) return TEXT;
|
|
3177
|
+
const root = rootElement(content);
|
|
3178
|
+
if (root === "svg" || root?.endsWith(":svg")) return SVG;
|
|
3179
|
+
if (root === "html") return HTML;
|
|
3180
|
+
return content.startsWith("<?xml") ? XML : HTML;
|
|
3181
|
+
}
|
|
3182
|
+
function rootElement(markup) {
|
|
3183
|
+
let rest = markup;
|
|
3184
|
+
for (let items = 0; ; items++) {
|
|
3185
|
+
const skip = prologItemLength(rest);
|
|
3186
|
+
if (skip === 0) return /^<([A-Za-z_][\w.:-]*)/.exec(rest)?.[1]?.toLowerCase();
|
|
3187
|
+
if (skip === -1 || items === MAX_PROLOG_ITEMS) return void 0;
|
|
3188
|
+
rest = rest.slice(skip).trimStart();
|
|
3189
|
+
}
|
|
3190
|
+
}
|
|
3191
|
+
function prologItemLength(rest) {
|
|
3192
|
+
const through = (index, length) => index === -1 ? -1 : index + length;
|
|
3193
|
+
if (rest.startsWith("<?")) return through(rest.indexOf("?>"), 2);
|
|
3194
|
+
if (rest.startsWith("<!--")) return through(rest.indexOf("-->"), 3);
|
|
3195
|
+
if (/^<!doctype/i.test(rest)) {
|
|
3196
|
+
const close = rest.indexOf(">");
|
|
3197
|
+
if (close === -1) return -1;
|
|
3198
|
+
const subset = rest.slice(0, close).indexOf("[");
|
|
3199
|
+
if (subset === -1) return close + 1;
|
|
3200
|
+
const subsetEnd = rest.indexOf("]", subset);
|
|
3201
|
+
return subsetEnd === -1 ? -1 : through(rest.indexOf(">", subsetEnd), 1);
|
|
3202
|
+
}
|
|
3203
|
+
return 0;
|
|
3204
|
+
}
|
|
3205
|
+
|
|
3206
|
+
export {
|
|
3207
|
+
BindingResolutionError,
|
|
3208
|
+
CircularDependencyError,
|
|
3209
|
+
ContainerNotAvailableError,
|
|
3210
|
+
currentContainer,
|
|
3211
|
+
inject,
|
|
3212
|
+
Container2 as Container,
|
|
3213
|
+
ItemNotFoundError,
|
|
3214
|
+
MultipleItemsFoundError,
|
|
3215
|
+
LazyCollection,
|
|
3216
|
+
Collection,
|
|
3217
|
+
collect,
|
|
3218
|
+
Stringable,
|
|
3219
|
+
Str,
|
|
3220
|
+
Arr,
|
|
3221
|
+
ServiceProvider,
|
|
3222
|
+
facade,
|
|
3223
|
+
ClassRegistry,
|
|
3224
|
+
app,
|
|
3225
|
+
config,
|
|
3226
|
+
now,
|
|
3227
|
+
value,
|
|
3228
|
+
tap,
|
|
3229
|
+
retry,
|
|
3230
|
+
__,
|
|
3231
|
+
fileType_exports
|
|
3232
|
+
};
|
|
3233
|
+
/*!
|
|
3234
|
+
* Laravel's Str::ascii() table for English: the transliterations of voku/portable-ascii 2.0, merged as its to_ascii()
|
|
3235
|
+
* merges them for the 'en' language (runs of up to three characters; longer runs never apply to 'en'). The keys are
|
|
3236
|
+
* written as \u escapes so this file stays plain ASCII.
|
|
3237
|
+
*
|
|
3238
|
+
* voku/portable-ascii: Copyright (C) 2019 Lars Moelleken
|
|
3239
|
+
*
|
|
3240
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
|
|
3241
|
+
* documentation files (the "Software"), to deal in the Software without restriction, including without limitation the
|
|
3242
|
+
* rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to
|
|
3243
|
+
* permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
3244
|
+
*
|
|
3245
|
+
* The above copyright notice and this permission notice shall be included in all copies or substantial portions of the
|
|
3246
|
+
* Software.
|
|
3247
|
+
*
|
|
3248
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
|
|
3249
|
+
* WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
|
3250
|
+
* COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
|
|
3251
|
+
* OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
3252
|
+
*/
|
|
3253
|
+
//# sourceMappingURL=chunk-7ZQZYDOC.js.map
|