llmz 0.9.0 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/DOCS.md +232 -1794
- package/ERRORS.md +101 -0
- package/README.md +96 -582
- package/dist/chat/chat.d.ts +63 -0
- package/dist/chat/component.d.ts +31 -0
- package/dist/chat/component.default.d.ts +58 -0
- package/dist/chat/response.d.ts +15 -0
- package/dist/compiler/compiler.d.ts +2 -7
- package/dist/compiler/plugins/dynamic-code.d.ts +7 -0
- package/dist/compiler/plugins/replace-comment.d.ts +2 -3
- package/dist/compiler/plugins/return-async.d.ts +5 -4
- package/dist/compiler/plugins/termination.d.ts +8 -0
- package/dist/compiler/plugins/tool-resolution.d.ts +4 -0
- package/dist/compiler/plugins/variable-extraction.d.ts +2 -8
- package/dist/component-CMFoCHyu.cjs +649 -0
- package/dist/component-DncqP4fB.js +614 -0
- package/dist/context.d.ts +71 -378
- package/dist/custom-client-C-WXvLD9.js +1655 -0
- package/dist/custom-client-Cgt9_0r1.cjs +1732 -0
- package/dist/custom-client.d.ts +12 -2
- package/dist/errors/catalog.d.ts +294 -0
- package/dist/errors/hooks.d.ts +2 -0
- package/dist/errors-C6ppQUZX.cjs +893 -0
- package/dist/errors-Crk5P8jo.js +636 -0
- package/dist/errors.d.ts +24 -36
- package/dist/execute-CiYvPs5Q.js +2061 -0
- package/dist/execute-DTTfacsi.cjs +2062 -0
- package/dist/{exit-DUM96DN1.cjs → exit-BOtKWPuT.cjs} +38 -28
- package/dist/{exit-CDdxDBRT.js → exit-DMPwCSba.js} +37 -27
- package/dist/exit.d.ts +19 -16
- package/dist/index.cjs +177 -1237
- package/dist/index.d.ts +25 -28
- package/dist/index.js +137 -1213
- package/dist/index.workerd.js +8974 -11145
- package/dist/inspect.d.ts +18 -4
- package/dist/inspection.d.ts +40 -0
- package/dist/native-0bq5ATZM.cjs +212 -0
- package/dist/native-n_718Z-T.js +177 -0
- package/dist/objects.d.ts +2 -57
- package/dist/prompts/native.d.ts +2 -0
- package/dist/prompts/prompt.d.ts +10 -101
- package/dist/quickjs-variant-21IO97PF.cjs +1080 -0
- package/dist/quickjs-variant-CtuGagsb.js +985 -0
- package/dist/result.d.ts +30 -861
- package/dist/runtime/execute.d.ts +3 -2
- package/dist/runtime/execution-activity.d.ts +11 -0
- package/dist/runtime/execution-diagnostics.d.ts +11 -0
- package/dist/runtime/execution-report.d.ts +51 -0
- package/dist/runtime/fixtures/chat.d.ts +8 -0
- package/dist/runtime/fixtures/long-search.d.ts +1 -1
- package/dist/runtime/fixtures/native-client.d.ts +33 -0
- package/dist/runtime/fixtures/protocol-languages.d.ts +1 -1
- package/dist/runtime/forced-inspection.d.ts +13 -0
- package/dist/runtime/forced-inspection.test.d.ts +1 -0
- package/dist/runtime/generate.d.ts +23 -20
- package/dist/runtime/generate.test.d.ts +1 -0
- package/dist/runtime/hook-provenance.test.d.ts +1 -0
- package/dist/runtime/inspection-hook.test.d.ts +1 -0
- package/dist/runtime/inspection-values.d.ts +14 -0
- package/dist/runtime/inspection-values.test.d.ts +1 -0
- package/dist/runtime/interruption-control-flow.test.d.ts +1 -0
- package/dist/runtime/interruption-settings.test.d.ts +1 -0
- package/dist/runtime/javascript-api.d.ts +62 -0
- package/dist/runtime/javascript-api.test.d.ts +1 -0
- package/dist/runtime/native-review.test.d.ts +1 -0
- package/dist/runtime/native-tools.d.ts +18 -0
- package/dist/runtime/native-tools.test.d.ts +1 -0
- package/dist/runtime/object-memory.test.d.ts +1 -0
- package/dist/runtime/single-tool.test.d.ts +1 -0
- package/dist/runtime/think-signal.test.d.ts +1 -0
- package/dist/runtime/token-budget.d.ts +22 -0
- package/dist/runtime/token-budget.test.d.ts +1 -0
- package/dist/runtime/tool-wrapper.d.ts +6 -5
- package/dist/runtime/traces.test.d.ts +1 -0
- package/dist/runtime/truncation.test.d.ts +1 -0
- package/dist/runtime/types.d.ts +47 -31
- package/dist/runtime/variable-recovery.test.d.ts +1 -0
- package/dist/runtime/vm-context.d.ts +6 -1
- package/dist/runtime/worker-completion.test.d.ts +1 -0
- package/dist/runtime-names.d.ts +4 -0
- package/dist/schema-CXlnbb3n.cjs +68 -0
- package/dist/schema-GE4ISPCR.js +45 -0
- package/dist/schema.d.ts +10 -0
- package/dist/schema.test.d.ts +1 -0
- package/dist/session/compactor.d.ts +51 -0
- package/dist/session/compactor.test.d.ts +1 -0
- package/dist/session/history.d.ts +36 -0
- package/dist/session/history.test.d.ts +1 -0
- package/dist/session/json.d.ts +3 -0
- package/dist/session/json.test.d.ts +1 -0
- package/dist/session/memory-codec.d.ts +9 -0
- package/dist/session/memory-codec.test.d.ts +1 -0
- package/dist/session/memory-render.d.ts +15 -0
- package/dist/session/memory-render.test.d.ts +1 -0
- package/dist/session/memory.d.ts +112 -0
- package/dist/session/memory.test.d.ts +1 -0
- package/dist/session/messages.d.ts +19 -0
- package/dist/session/messages.test.d.ts +1 -0
- package/dist/session/serialization.d.ts +36 -0
- package/dist/session/serialization.test.d.ts +1 -0
- package/dist/session/session-memory.test.d.ts +1 -0
- package/dist/session/session.d.ts +121 -0
- package/dist/session/session.test.d.ts +1 -0
- package/dist/session/speaker.test.d.ts +1 -0
- package/dist/{transcript.d.ts → session/transcript.d.ts} +4 -8
- package/dist/session/transcript.test.d.ts +1 -0
- package/dist/{tool-Bv8N4IPj.js → tool-DstssiAs.js} +144 -92
- package/dist/{tool-Dy6AJpJH.cjs → tool-_wK9hQOb.cjs} +146 -94
- package/dist/tool.d.ts +25 -17
- package/dist/truncate-BEKbdo3t.js +79 -0
- package/dist/truncate-uomAMGPs.cjs +102 -0
- package/dist/truncate.d.ts +24 -0
- package/dist/truncate.test.d.ts +1 -0
- package/dist/types.d.ts +33 -9
- package/dist/{typings-3lsqCbkn.cjs → typings-BA_XxAcY.cjs} +38 -193
- package/dist/{typings-CrBa7Tyy.js → typings-BEVDvtuk.js} +38 -175
- package/dist/typings-formatter.d.ts +1 -1
- package/dist/typings.d.ts +3 -0
- package/dist/{uniq-BYQ7GWwb.js → uniq-DfUeSNaX.js} +2 -2
- package/dist/{uniq-G872RWmE.cjs → uniq-DiXgysNV.cjs} +6 -18
- package/dist/{_baseIteratee-P_firB7b.js → utils-BOFzb8Ok.js} +1134 -16
- package/dist/{_baseIteratee-CF4qP2a8.cjs → utils-CTlsXvdj.cjs} +1281 -84
- package/dist/vm/drivers/node.d.ts +1 -1
- package/dist/vm/drivers/quickjs.d.ts +1 -1
- package/dist/vm/errors.d.ts +4 -4
- package/dist/vm/index.d.ts +3 -4
- package/dist/vm/instrument.d.ts +14 -6
- package/dist/vm/member-proxy.d.ts +4 -0
- package/dist/vm/member-proxy.test.d.ts +1 -0
- package/dist/vm/memory.test.d.ts +1 -0
- package/dist/vm/return-semantics.test.d.ts +1 -0
- package/dist/vm/types.d.ts +20 -3
- package/dist/{vm-BLsHw1da.js → vm-C7SfutHn.js} +1187 -180
- package/dist/{vm-D6s1zF6M.cjs → vm-gmekHc0i.cjs} +1221 -207
- package/package.json +13 -6
- package/dist/_baseForOwn-BfWDTL8L.cjs +0 -53
- package/dist/_baseForOwn-CFhWe_W6.js +0 -48
- package/dist/_getPrototype-CG7Dxrrz.js +0 -6
- package/dist/_getPrototype-DQDlNVVM.cjs +0 -10
- package/dist/_overArg-C5Hy7oCi.cjs +0 -196
- package/dist/_overArg-CRYbj1NH.js +0 -155
- package/dist/chat.d.ts +0 -401
- package/dist/common-BlRFtdf2.js +0 -807
- package/dist/common-BnvrDnIT.cjs +0 -860
- package/dist/compiler/plugins/track-tool-calls.d.ts +0 -33
- package/dist/compiler-C-OI9sim.cjs +0 -547
- package/dist/compiler-CW1VjQsn.js +0 -473
- package/dist/component-C6Agl2ns.cjs +0 -73
- package/dist/component-DGG7d_Mz.js +0 -44
- package/dist/component.d.ts +0 -88
- package/dist/component.default.d.ts +0 -278
- package/dist/custom-client-ChuZ63zp.js +0 -2658
- package/dist/custom-client-DAsGRnYc.cjs +0 -2729
- package/dist/dual-modes-DDkoCp3R.js +0 -3006
- package/dist/dual-modes-DPXiuvNe.cjs +0 -3090
- package/dist/errors-C962uJdS.cjs +0 -220
- package/dist/errors-Cg1G0Awu.js +0 -161
- package/dist/example-format.d.ts +0 -8
- package/dist/example.d.ts +0 -45
- package/dist/execute-BWcdv9so.js +0 -1059
- package/dist/execute-DM2-7y86.cjs +0 -1060
- package/dist/exit-parser.d.ts +0 -39
- package/dist/handlers.d.ts +0 -10
- package/dist/hoist.d.ts +0 -2
- package/dist/isEmpty-BhJRCqIF.js +0 -52
- package/dist/isEmpty-LY533Wmh.cjs +0 -57
- package/dist/isPlainObject-CSxXVKCk.cjs +0 -56
- package/dist/isPlainObject-D39AzPO2.js +0 -51
- package/dist/jsx-CIgdGGVs.js +0 -52
- package/dist/jsx-owqxrquU.cjs +0 -75
- package/dist/jsx.d.ts +0 -11
- package/dist/message-stream/index.d.ts +0 -9
- package/dist/message-stream/instructions.d.ts +0 -30
- package/dist/message-stream/normalizer.d.ts +0 -21
- package/dist/message-stream/parser.d.ts +0 -89
- package/dist/message-stream/registry.d.ts +0 -14
- package/dist/message-stream/replayable.d.ts +0 -27
- package/dist/message-stream/response-parser.d.ts +0 -24
- package/dist/message-stream/sanitize.d.ts +0 -10
- package/dist/message-stream/stream.d.ts +0 -54
- package/dist/message-stream/types.d.ts +0 -97
- package/dist/message-stream/validator.d.ts +0 -23
- package/dist/prompts/chat-mode/protocol.d.ts +0 -2
- package/dist/prompts/chat-mode/system.d.ts +0 -2
- package/dist/prompts/chat-mode/system.md.d.ts +0 -2
- package/dist/prompts/chat-mode/user.d.ts +0 -2
- package/dist/prompts/chat-mode/user.md.d.ts +0 -2
- package/dist/prompts/code-examples.d.ts +0 -2
- package/dist/prompts/common.d.ts +0 -7
- package/dist/prompts/dual-modes.d.ts +0 -2
- package/dist/prompts/execution-history.d.ts +0 -6
- package/dist/prompts/execution-state.d.ts +0 -3
- package/dist/prompts/protocol-basics.d.ts +0 -5
- package/dist/prompts/protocol.d.ts +0 -31
- package/dist/prompts/worker-mode/protocol.d.ts +0 -2
- package/dist/prompts/worker-mode/system.d.ts +0 -2
- package/dist/prompts/worker-mode/system.md.d.ts +0 -2
- package/dist/prompts/worker-mode/user.d.ts +0 -2
- package/dist/prompts/worker-mode/user.md.d.ts +0 -2
- package/dist/quickjs-variant-BYhMBpwU.js +0 -45
- package/dist/quickjs-variant-CsIwTVFC.cjs +0 -56
- package/dist/rolldown-runtime-EAsCxrDo.js +0 -14
- package/dist/runtime/fixtures/qwen-protocol-failures.d.ts +0 -29
- package/dist/runtime/interpret-result.d.ts +0 -22
- package/dist/snapshots.d.ts +0 -249
- package/dist/stack-traces-BIE_5Xwf.js +0 -21
- package/dist/stack-traces-ntw_qhoy.cjs +0 -26
- package/dist/truncator-CLkouTCO.cjs +0 -276
- package/dist/truncator-DZqEqnpD.js +0 -253
- package/dist/truncator.d.ts +0 -118
- package/dist/utils-3ESwP3yg.cjs +0 -1075
- package/dist/utils-UBeAFeEI.js +0 -950
- /package/dist/{citations.d.ts → chat/citations.d.ts} +0 -0
- /package/dist/{citations.test.d.ts → chat/citations.test.d.ts} +0 -0
- /package/dist/{component.default.test.d.ts → chat/component.default.test.d.ts} +0 -0
- /package/dist/{compiler/plugins/track-tool-calls.test.d.ts → chat/component.test.d.ts} +0 -0
- /package/dist/{example.test.d.ts → chat/response.test.d.ts} +0 -0
- /package/dist/{exit-parser.test.d.ts → compiler/plugins/dynamic-code.test.d.ts} +0 -0
- /package/dist/{handlers.test.d.ts → compiler/plugins/tool-resolution.test.d.ts} +0 -0
- /package/dist/{hoist.test.d.ts → errors/catalog.test.d.ts} +0 -0
- /package/dist/{message-stream/instructions.test.d.ts → exit.test.d.ts} +0 -0
- /package/dist/{message-stream/normalizer.test.d.ts → inspection.test.d.ts} +0 -0
- /package/dist/{message-stream/parser.test.d.ts → prompts/native.test.d.ts} +0 -0
- /package/dist/{message-stream/response-parser.test.d.ts → result.test.d.ts} +0 -0
- /package/dist/{message-stream/stream.test.d.ts → runtime/chat-completion.test.d.ts} +0 -0
- /package/dist/{message-stream/validator.test.d.ts → runtime/chat-delivery.test.d.ts} +0 -0
- /package/dist/{prompts/adherence.test.d.ts → runtime/chat-last-speaker.test.d.ts} +0 -0
- /package/dist/{prompts/catalogue-examples.test.d.ts → runtime/compatibility-regressions.test.d.ts} +0 -0
- /package/dist/{prompts/code-examples.test.d.ts → runtime/context-registration.test.d.ts} +0 -0
- /package/dist/{prompts/common.test.d.ts → runtime/empty-completion.test.d.ts} +0 -0
- /package/dist/{prompts/concrete-patterns.test.d.ts → runtime/error-recovery.test.d.ts} +0 -0
- /package/dist/{prompts/long-search.test.d.ts → runtime/errors.test.d.ts} +0 -0
- /package/dist/{prompts/protocol-simple.test.d.ts → runtime/execution-activity.test.d.ts} +0 -0
- /package/dist/{prompts/protocol.test.d.ts → runtime/execution-diagnostics.test.d.ts} +0 -0
- /package/dist/{prompts/sections.test.d.ts → runtime/execution-report.test.d.ts} +0 -0
- /package/dist/runtime/{interpret-result.test.d.ts → execution-safety.test.d.ts} +0 -0
- /package/dist/{transcript.test.d.ts → runtime/exit-control-flow.test.d.ts} +0 -0
- /package/dist/{truncator.test.d.ts → runtime/fixtures/long-search.test.d.ts} +0 -0
package/dist/utils-3ESwP3yg.cjs
DELETED
|
@@ -1,1075 +0,0 @@
|
|
|
1
|
-
const require_compiler = require("./compiler-C-OI9sim.cjs");
|
|
2
|
-
const require__baseIteratee = require("./_baseIteratee-CF4qP2a8.cjs");
|
|
3
|
-
const require__getPrototype = require("./_getPrototype-DQDlNVVM.cjs");
|
|
4
|
-
let _bpinternal_zui = require("@bpinternal/zui");
|
|
5
|
-
let _bpinternal_thicktoken = require("@bpinternal/thicktoken");
|
|
6
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_assignValue.js
|
|
7
|
-
/** Used to check objects for own properties. */
|
|
8
|
-
var hasOwnProperty$1 = Object.prototype.hasOwnProperty;
|
|
9
|
-
/**
|
|
10
|
-
* Assigns `value` to `key` of `object` if the existing value is not equivalent
|
|
11
|
-
* using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
|
|
12
|
-
* for equality comparisons.
|
|
13
|
-
*
|
|
14
|
-
* @private
|
|
15
|
-
* @param {Object} object The object to modify.
|
|
16
|
-
* @param {string} key The key of the property to assign.
|
|
17
|
-
* @param {*} value The value to assign.
|
|
18
|
-
*/
|
|
19
|
-
function assignValue(object, key, value) {
|
|
20
|
-
var objValue = object[key];
|
|
21
|
-
if (!(hasOwnProperty$1.call(object, key) && require__baseIteratee.eq(objValue, value)) || value === void 0 && !(key in object)) require__baseIteratee.baseAssignValue(object, key, value);
|
|
22
|
-
}
|
|
23
|
-
//#endregion
|
|
24
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_nativeKeysIn.js
|
|
25
|
-
/**
|
|
26
|
-
* This function is like
|
|
27
|
-
* [`Object.keys`](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)
|
|
28
|
-
* except that it includes inherited enumerable properties.
|
|
29
|
-
*
|
|
30
|
-
* @private
|
|
31
|
-
* @param {Object} object The object to query.
|
|
32
|
-
* @returns {Array} Returns the array of property names.
|
|
33
|
-
*/
|
|
34
|
-
function nativeKeysIn(object) {
|
|
35
|
-
var result = [];
|
|
36
|
-
if (object != null) for (var key in Object(object)) result.push(key);
|
|
37
|
-
return result;
|
|
38
|
-
}
|
|
39
|
-
//#endregion
|
|
40
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseKeysIn.js
|
|
41
|
-
/** Used to check objects for own properties. */
|
|
42
|
-
var hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
43
|
-
/**
|
|
44
|
-
* The base implementation of `_.keysIn` which doesn't treat sparse arrays as dense.
|
|
45
|
-
*
|
|
46
|
-
* @private
|
|
47
|
-
* @param {Object} object The object to query.
|
|
48
|
-
* @returns {Array} Returns the array of property names.
|
|
49
|
-
*/
|
|
50
|
-
function baseKeysIn(object) {
|
|
51
|
-
if (!require__baseIteratee.isObject(object)) return nativeKeysIn(object);
|
|
52
|
-
var isProto = require__baseIteratee.isPrototype(object), result = [];
|
|
53
|
-
for (var key in object) if (!(key == "constructor" && (isProto || !hasOwnProperty.call(object, key)))) result.push(key);
|
|
54
|
-
return result;
|
|
55
|
-
}
|
|
56
|
-
//#endregion
|
|
57
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/keysIn.js
|
|
58
|
-
/**
|
|
59
|
-
* Creates an array of the own and inherited enumerable property names of `object`.
|
|
60
|
-
*
|
|
61
|
-
* **Note:** Non-object values are coerced to objects.
|
|
62
|
-
*
|
|
63
|
-
* @static
|
|
64
|
-
* @memberOf _
|
|
65
|
-
* @since 3.0.0
|
|
66
|
-
* @category Object
|
|
67
|
-
* @param {Object} object The object to query.
|
|
68
|
-
* @returns {Array} Returns the array of property names.
|
|
69
|
-
* @example
|
|
70
|
-
*
|
|
71
|
-
* function Foo() {
|
|
72
|
-
* this.a = 1;
|
|
73
|
-
* this.b = 2;
|
|
74
|
-
* }
|
|
75
|
-
*
|
|
76
|
-
* Foo.prototype.c = 3;
|
|
77
|
-
*
|
|
78
|
-
* _.keysIn(new Foo);
|
|
79
|
-
* // => ['a', 'b', 'c'] (iteration order is not guaranteed)
|
|
80
|
-
*/
|
|
81
|
-
function keysIn(object) {
|
|
82
|
-
return require__baseIteratee.isArrayLike(object) ? require__baseIteratee.arrayLikeKeys(object, true) : baseKeysIn(object);
|
|
83
|
-
}
|
|
84
|
-
//#endregion
|
|
85
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseSlice.js
|
|
86
|
-
/**
|
|
87
|
-
* The base implementation of `_.slice` without an iteratee call guard.
|
|
88
|
-
*
|
|
89
|
-
* @private
|
|
90
|
-
* @param {Array} array The array to slice.
|
|
91
|
-
* @param {number} [start=0] The start position.
|
|
92
|
-
* @param {number} [end=array.length] The end position.
|
|
93
|
-
* @returns {Array} Returns the slice of `array`.
|
|
94
|
-
*/
|
|
95
|
-
function baseSlice(array, start, end) {
|
|
96
|
-
var index = -1, length = array.length;
|
|
97
|
-
if (start < 0) start = -start > length ? 0 : length + start;
|
|
98
|
-
end = end > length ? length : end;
|
|
99
|
-
if (end < 0) end += length;
|
|
100
|
-
length = start > end ? 0 : end - start >>> 0;
|
|
101
|
-
start >>>= 0;
|
|
102
|
-
var result = Array(length);
|
|
103
|
-
while (++index < length) result[index] = array[index + start];
|
|
104
|
-
return result;
|
|
105
|
-
}
|
|
106
|
-
//#endregion
|
|
107
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_castSlice.js
|
|
108
|
-
/**
|
|
109
|
-
* Casts `array` to a slice if it's needed.
|
|
110
|
-
*
|
|
111
|
-
* @private
|
|
112
|
-
* @param {Array} array The array to inspect.
|
|
113
|
-
* @param {number} start The start position.
|
|
114
|
-
* @param {number} [end=array.length] The end position.
|
|
115
|
-
* @returns {Array} Returns the cast slice.
|
|
116
|
-
*/
|
|
117
|
-
function castSlice(array, start, end) {
|
|
118
|
-
var length = array.length;
|
|
119
|
-
end = end === void 0 ? length : end;
|
|
120
|
-
return !start && end >= length ? array : baseSlice(array, start, end);
|
|
121
|
-
}
|
|
122
|
-
//#endregion
|
|
123
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hasUnicode.js
|
|
124
|
-
/** Used to detect strings with [zero-width joiners or code points from the astral planes](http://eev.ee/blog/2015/09/12/dark-corners-of-unicode/). */
|
|
125
|
-
var reHasUnicode = RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");
|
|
126
|
-
/**
|
|
127
|
-
* Checks if `string` contains Unicode symbols.
|
|
128
|
-
*
|
|
129
|
-
* @private
|
|
130
|
-
* @param {string} string The string to inspect.
|
|
131
|
-
* @returns {boolean} Returns `true` if a symbol is found, else `false`.
|
|
132
|
-
*/
|
|
133
|
-
function hasUnicode(string) {
|
|
134
|
-
return reHasUnicode.test(string);
|
|
135
|
-
}
|
|
136
|
-
//#endregion
|
|
137
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_asciiToArray.js
|
|
138
|
-
/**
|
|
139
|
-
* Converts an ASCII `string` to an array.
|
|
140
|
-
*
|
|
141
|
-
* @private
|
|
142
|
-
* @param {string} string The string to convert.
|
|
143
|
-
* @returns {Array} Returns the converted array.
|
|
144
|
-
*/
|
|
145
|
-
function asciiToArray(string) {
|
|
146
|
-
return string.split("");
|
|
147
|
-
}
|
|
148
|
-
//#endregion
|
|
149
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_unicodeToArray.js
|
|
150
|
-
/** Used to compose unicode character classes. */
|
|
151
|
-
var rsAstralRange$1 = "\\ud800-\\udfff";
|
|
152
|
-
var rsComboRange$1 = "\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff";
|
|
153
|
-
var rsVarRange$1 = "\\ufe0e\\ufe0f";
|
|
154
|
-
/** Used to compose unicode capture groups. */
|
|
155
|
-
var rsAstral = "[" + rsAstralRange$1 + "]";
|
|
156
|
-
var rsCombo$1 = "[" + rsComboRange$1 + "]";
|
|
157
|
-
var rsFitz = "\\ud83c[\\udffb-\\udfff]";
|
|
158
|
-
var rsModifier$1 = "(?:" + rsCombo$1 + "|" + rsFitz + ")";
|
|
159
|
-
var rsNonAstral$1 = "[^" + rsAstralRange$1 + "]";
|
|
160
|
-
var rsRegional$1 = "(?:\\ud83c[\\udde6-\\uddff]){2}";
|
|
161
|
-
var rsSurrPair$1 = "[\\ud800-\\udbff][\\udc00-\\udfff]";
|
|
162
|
-
var rsZWJ$1 = "\\u200d";
|
|
163
|
-
/** Used to compose unicode regexes. */
|
|
164
|
-
var reOptMod$1 = rsModifier$1 + "?";
|
|
165
|
-
var rsOptVar$1 = "[" + rsVarRange$1 + "]?";
|
|
166
|
-
var rsOptJoin$1 = "(?:" + rsZWJ$1 + "(?:" + [
|
|
167
|
-
rsNonAstral$1,
|
|
168
|
-
rsRegional$1,
|
|
169
|
-
rsSurrPair$1
|
|
170
|
-
].join("|") + ")" + rsOptVar$1 + reOptMod$1 + ")*";
|
|
171
|
-
var rsSeq$1 = rsOptVar$1 + reOptMod$1 + rsOptJoin$1;
|
|
172
|
-
var rsSymbol = "(?:" + [
|
|
173
|
-
rsNonAstral$1 + rsCombo$1 + "?",
|
|
174
|
-
rsCombo$1,
|
|
175
|
-
rsRegional$1,
|
|
176
|
-
rsSurrPair$1,
|
|
177
|
-
rsAstral
|
|
178
|
-
].join("|") + ")";
|
|
179
|
-
/** Used to match [string symbols](https://mathiasbynens.be/notes/javascript-unicode). */
|
|
180
|
-
var reUnicode = RegExp(rsFitz + "(?=" + rsFitz + ")|" + rsSymbol + rsSeq$1, "g");
|
|
181
|
-
/**
|
|
182
|
-
* Converts a Unicode `string` to an array.
|
|
183
|
-
*
|
|
184
|
-
* @private
|
|
185
|
-
* @param {string} string The string to convert.
|
|
186
|
-
* @returns {Array} Returns the converted array.
|
|
187
|
-
*/
|
|
188
|
-
function unicodeToArray(string) {
|
|
189
|
-
return string.match(reUnicode) || [];
|
|
190
|
-
}
|
|
191
|
-
//#endregion
|
|
192
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_stringToArray.js
|
|
193
|
-
/**
|
|
194
|
-
* Converts `string` to an array.
|
|
195
|
-
*
|
|
196
|
-
* @private
|
|
197
|
-
* @param {string} string The string to convert.
|
|
198
|
-
* @returns {Array} Returns the converted array.
|
|
199
|
-
*/
|
|
200
|
-
function stringToArray(string) {
|
|
201
|
-
return hasUnicode(string) ? unicodeToArray(string) : asciiToArray(string);
|
|
202
|
-
}
|
|
203
|
-
//#endregion
|
|
204
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_createCaseFirst.js
|
|
205
|
-
/**
|
|
206
|
-
* Creates a function like `_.lowerFirst`.
|
|
207
|
-
*
|
|
208
|
-
* @private
|
|
209
|
-
* @param {string} methodName The name of the `String` case method to use.
|
|
210
|
-
* @returns {Function} Returns the new case function.
|
|
211
|
-
*/
|
|
212
|
-
function createCaseFirst(methodName) {
|
|
213
|
-
return function(string) {
|
|
214
|
-
string = require__baseIteratee.toString(string);
|
|
215
|
-
var strSymbols = hasUnicode(string) ? stringToArray(string) : void 0;
|
|
216
|
-
var chr = strSymbols ? strSymbols[0] : string.charAt(0);
|
|
217
|
-
var trailing = strSymbols ? castSlice(strSymbols, 1).join("") : string.slice(1);
|
|
218
|
-
return chr[methodName]() + trailing;
|
|
219
|
-
};
|
|
220
|
-
}
|
|
221
|
-
//#endregion
|
|
222
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/upperFirst.js
|
|
223
|
-
/**
|
|
224
|
-
* Converts the first character of `string` to upper case.
|
|
225
|
-
*
|
|
226
|
-
* @static
|
|
227
|
-
* @memberOf _
|
|
228
|
-
* @since 4.0.0
|
|
229
|
-
* @category String
|
|
230
|
-
* @param {string} [string=''] The string to convert.
|
|
231
|
-
* @returns {string} Returns the converted string.
|
|
232
|
-
* @example
|
|
233
|
-
*
|
|
234
|
-
* _.upperFirst('fred');
|
|
235
|
-
* // => 'Fred'
|
|
236
|
-
*
|
|
237
|
-
* _.upperFirst('FRED');
|
|
238
|
-
* // => 'FRED'
|
|
239
|
-
*/
|
|
240
|
-
var upperFirst = createCaseFirst("toUpperCase");
|
|
241
|
-
//#endregion
|
|
242
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/capitalize.js
|
|
243
|
-
/**
|
|
244
|
-
* Converts the first character of `string` to upper case and the remaining
|
|
245
|
-
* to lower case.
|
|
246
|
-
*
|
|
247
|
-
* @static
|
|
248
|
-
* @memberOf _
|
|
249
|
-
* @since 3.0.0
|
|
250
|
-
* @category String
|
|
251
|
-
* @param {string} [string=''] The string to capitalize.
|
|
252
|
-
* @returns {string} Returns the capitalized string.
|
|
253
|
-
* @example
|
|
254
|
-
*
|
|
255
|
-
* _.capitalize('FRED');
|
|
256
|
-
* // => 'Fred'
|
|
257
|
-
*/
|
|
258
|
-
function capitalize(string) {
|
|
259
|
-
return upperFirst(require__baseIteratee.toString(string).toLowerCase());
|
|
260
|
-
}
|
|
261
|
-
//#endregion
|
|
262
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_arrayReduce.js
|
|
263
|
-
/**
|
|
264
|
-
* A specialized version of `_.reduce` for arrays without support for
|
|
265
|
-
* iteratee shorthands.
|
|
266
|
-
*
|
|
267
|
-
* @private
|
|
268
|
-
* @param {Array} [array] The array to iterate over.
|
|
269
|
-
* @param {Function} iteratee The function invoked per iteration.
|
|
270
|
-
* @param {*} [accumulator] The initial value.
|
|
271
|
-
* @param {boolean} [initAccum] Specify using the first element of `array` as
|
|
272
|
-
* the initial value.
|
|
273
|
-
* @returns {*} Returns the accumulated value.
|
|
274
|
-
*/
|
|
275
|
-
function arrayReduce(array, iteratee, accumulator, initAccum) {
|
|
276
|
-
var index = -1, length = array == null ? 0 : array.length;
|
|
277
|
-
if (initAccum && length) accumulator = array[++index];
|
|
278
|
-
while (++index < length) accumulator = iteratee(accumulator, array[index], index, array);
|
|
279
|
-
return accumulator;
|
|
280
|
-
}
|
|
281
|
-
//#endregion
|
|
282
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_basePropertyOf.js
|
|
283
|
-
/**
|
|
284
|
-
* The base implementation of `_.propertyOf` without support for deep paths.
|
|
285
|
-
*
|
|
286
|
-
* @private
|
|
287
|
-
* @param {Object} object The object to query.
|
|
288
|
-
* @returns {Function} Returns the new accessor function.
|
|
289
|
-
*/
|
|
290
|
-
function basePropertyOf(object) {
|
|
291
|
-
return function(key) {
|
|
292
|
-
return object == null ? void 0 : object[key];
|
|
293
|
-
};
|
|
294
|
-
}
|
|
295
|
-
//#endregion
|
|
296
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_deburrLetter.js
|
|
297
|
-
/**
|
|
298
|
-
* Used by `_.deburr` to convert Latin-1 Supplement and Latin Extended-A
|
|
299
|
-
* letters to basic Latin letters.
|
|
300
|
-
*
|
|
301
|
-
* @private
|
|
302
|
-
* @param {string} letter The matched letter to deburr.
|
|
303
|
-
* @returns {string} Returns the deburred letter.
|
|
304
|
-
*/
|
|
305
|
-
var deburrLetter = basePropertyOf({
|
|
306
|
-
"À": "A",
|
|
307
|
-
"Á": "A",
|
|
308
|
-
"Â": "A",
|
|
309
|
-
"Ã": "A",
|
|
310
|
-
"Ä": "A",
|
|
311
|
-
"Å": "A",
|
|
312
|
-
"à": "a",
|
|
313
|
-
"á": "a",
|
|
314
|
-
"â": "a",
|
|
315
|
-
"ã": "a",
|
|
316
|
-
"ä": "a",
|
|
317
|
-
"å": "a",
|
|
318
|
-
"Ç": "C",
|
|
319
|
-
"ç": "c",
|
|
320
|
-
"Ð": "D",
|
|
321
|
-
"ð": "d",
|
|
322
|
-
"È": "E",
|
|
323
|
-
"É": "E",
|
|
324
|
-
"Ê": "E",
|
|
325
|
-
"Ë": "E",
|
|
326
|
-
"è": "e",
|
|
327
|
-
"é": "e",
|
|
328
|
-
"ê": "e",
|
|
329
|
-
"ë": "e",
|
|
330
|
-
"Ì": "I",
|
|
331
|
-
"Í": "I",
|
|
332
|
-
"Î": "I",
|
|
333
|
-
"Ï": "I",
|
|
334
|
-
"ì": "i",
|
|
335
|
-
"í": "i",
|
|
336
|
-
"î": "i",
|
|
337
|
-
"ï": "i",
|
|
338
|
-
"Ñ": "N",
|
|
339
|
-
"ñ": "n",
|
|
340
|
-
"Ò": "O",
|
|
341
|
-
"Ó": "O",
|
|
342
|
-
"Ô": "O",
|
|
343
|
-
"Õ": "O",
|
|
344
|
-
"Ö": "O",
|
|
345
|
-
"Ø": "O",
|
|
346
|
-
"ò": "o",
|
|
347
|
-
"ó": "o",
|
|
348
|
-
"ô": "o",
|
|
349
|
-
"õ": "o",
|
|
350
|
-
"ö": "o",
|
|
351
|
-
"ø": "o",
|
|
352
|
-
"Ù": "U",
|
|
353
|
-
"Ú": "U",
|
|
354
|
-
"Û": "U",
|
|
355
|
-
"Ü": "U",
|
|
356
|
-
"ù": "u",
|
|
357
|
-
"ú": "u",
|
|
358
|
-
"û": "u",
|
|
359
|
-
"ü": "u",
|
|
360
|
-
"Ý": "Y",
|
|
361
|
-
"ý": "y",
|
|
362
|
-
"ÿ": "y",
|
|
363
|
-
"Æ": "Ae",
|
|
364
|
-
"æ": "ae",
|
|
365
|
-
"Þ": "Th",
|
|
366
|
-
"þ": "th",
|
|
367
|
-
"ß": "ss",
|
|
368
|
-
"Ā": "A",
|
|
369
|
-
"Ă": "A",
|
|
370
|
-
"Ą": "A",
|
|
371
|
-
"ā": "a",
|
|
372
|
-
"ă": "a",
|
|
373
|
-
"ą": "a",
|
|
374
|
-
"Ć": "C",
|
|
375
|
-
"Ĉ": "C",
|
|
376
|
-
"Ċ": "C",
|
|
377
|
-
"Č": "C",
|
|
378
|
-
"ć": "c",
|
|
379
|
-
"ĉ": "c",
|
|
380
|
-
"ċ": "c",
|
|
381
|
-
"č": "c",
|
|
382
|
-
"Ď": "D",
|
|
383
|
-
"Đ": "D",
|
|
384
|
-
"ď": "d",
|
|
385
|
-
"đ": "d",
|
|
386
|
-
"Ē": "E",
|
|
387
|
-
"Ĕ": "E",
|
|
388
|
-
"Ė": "E",
|
|
389
|
-
"Ę": "E",
|
|
390
|
-
"Ě": "E",
|
|
391
|
-
"ē": "e",
|
|
392
|
-
"ĕ": "e",
|
|
393
|
-
"ė": "e",
|
|
394
|
-
"ę": "e",
|
|
395
|
-
"ě": "e",
|
|
396
|
-
"Ĝ": "G",
|
|
397
|
-
"Ğ": "G",
|
|
398
|
-
"Ġ": "G",
|
|
399
|
-
"Ģ": "G",
|
|
400
|
-
"ĝ": "g",
|
|
401
|
-
"ğ": "g",
|
|
402
|
-
"ġ": "g",
|
|
403
|
-
"ģ": "g",
|
|
404
|
-
"Ĥ": "H",
|
|
405
|
-
"Ħ": "H",
|
|
406
|
-
"ĥ": "h",
|
|
407
|
-
"ħ": "h",
|
|
408
|
-
"Ĩ": "I",
|
|
409
|
-
"Ī": "I",
|
|
410
|
-
"Ĭ": "I",
|
|
411
|
-
"Į": "I",
|
|
412
|
-
"İ": "I",
|
|
413
|
-
"ĩ": "i",
|
|
414
|
-
"ī": "i",
|
|
415
|
-
"ĭ": "i",
|
|
416
|
-
"į": "i",
|
|
417
|
-
"ı": "i",
|
|
418
|
-
"Ĵ": "J",
|
|
419
|
-
"ĵ": "j",
|
|
420
|
-
"Ķ": "K",
|
|
421
|
-
"ķ": "k",
|
|
422
|
-
"ĸ": "k",
|
|
423
|
-
"Ĺ": "L",
|
|
424
|
-
"Ļ": "L",
|
|
425
|
-
"Ľ": "L",
|
|
426
|
-
"Ŀ": "L",
|
|
427
|
-
"Ł": "L",
|
|
428
|
-
"ĺ": "l",
|
|
429
|
-
"ļ": "l",
|
|
430
|
-
"ľ": "l",
|
|
431
|
-
"ŀ": "l",
|
|
432
|
-
"ł": "l",
|
|
433
|
-
"Ń": "N",
|
|
434
|
-
"Ņ": "N",
|
|
435
|
-
"Ň": "N",
|
|
436
|
-
"Ŋ": "N",
|
|
437
|
-
"ń": "n",
|
|
438
|
-
"ņ": "n",
|
|
439
|
-
"ň": "n",
|
|
440
|
-
"ŋ": "n",
|
|
441
|
-
"Ō": "O",
|
|
442
|
-
"Ŏ": "O",
|
|
443
|
-
"Ő": "O",
|
|
444
|
-
"ō": "o",
|
|
445
|
-
"ŏ": "o",
|
|
446
|
-
"ő": "o",
|
|
447
|
-
"Ŕ": "R",
|
|
448
|
-
"Ŗ": "R",
|
|
449
|
-
"Ř": "R",
|
|
450
|
-
"ŕ": "r",
|
|
451
|
-
"ŗ": "r",
|
|
452
|
-
"ř": "r",
|
|
453
|
-
"Ś": "S",
|
|
454
|
-
"Ŝ": "S",
|
|
455
|
-
"Ş": "S",
|
|
456
|
-
"Š": "S",
|
|
457
|
-
"ś": "s",
|
|
458
|
-
"ŝ": "s",
|
|
459
|
-
"ş": "s",
|
|
460
|
-
"š": "s",
|
|
461
|
-
"Ţ": "T",
|
|
462
|
-
"Ť": "T",
|
|
463
|
-
"Ŧ": "T",
|
|
464
|
-
"ţ": "t",
|
|
465
|
-
"ť": "t",
|
|
466
|
-
"ŧ": "t",
|
|
467
|
-
"Ũ": "U",
|
|
468
|
-
"Ū": "U",
|
|
469
|
-
"Ŭ": "U",
|
|
470
|
-
"Ů": "U",
|
|
471
|
-
"Ű": "U",
|
|
472
|
-
"Ų": "U",
|
|
473
|
-
"ũ": "u",
|
|
474
|
-
"ū": "u",
|
|
475
|
-
"ŭ": "u",
|
|
476
|
-
"ů": "u",
|
|
477
|
-
"ű": "u",
|
|
478
|
-
"ų": "u",
|
|
479
|
-
"Ŵ": "W",
|
|
480
|
-
"ŵ": "w",
|
|
481
|
-
"Ŷ": "Y",
|
|
482
|
-
"ŷ": "y",
|
|
483
|
-
"Ÿ": "Y",
|
|
484
|
-
"Ź": "Z",
|
|
485
|
-
"Ż": "Z",
|
|
486
|
-
"Ž": "Z",
|
|
487
|
-
"ź": "z",
|
|
488
|
-
"ż": "z",
|
|
489
|
-
"ž": "z",
|
|
490
|
-
"IJ": "IJ",
|
|
491
|
-
"ij": "ij",
|
|
492
|
-
"Œ": "Oe",
|
|
493
|
-
"œ": "oe",
|
|
494
|
-
"ʼn": "'n",
|
|
495
|
-
"ſ": "s"
|
|
496
|
-
});
|
|
497
|
-
//#endregion
|
|
498
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/deburr.js
|
|
499
|
-
/** Used to match Latin Unicode letters (excluding mathematical operators). */
|
|
500
|
-
var reLatin = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g;
|
|
501
|
-
/**
|
|
502
|
-
* Used to match [combining diacritical marks](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks) and
|
|
503
|
-
* [combining diacritical marks for symbols](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks_for_Symbols).
|
|
504
|
-
*/
|
|
505
|
-
var reComboMark = RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]", "g");
|
|
506
|
-
/**
|
|
507
|
-
* Deburrs `string` by converting
|
|
508
|
-
* [Latin-1 Supplement](https://en.wikipedia.org/wiki/Latin-1_Supplement_(Unicode_block)#Character_table)
|
|
509
|
-
* and [Latin Extended-A](https://en.wikipedia.org/wiki/Latin_Extended-A)
|
|
510
|
-
* letters to basic Latin letters and removing
|
|
511
|
-
* [combining diacritical marks](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks).
|
|
512
|
-
*
|
|
513
|
-
* @static
|
|
514
|
-
* @memberOf _
|
|
515
|
-
* @since 3.0.0
|
|
516
|
-
* @category String
|
|
517
|
-
* @param {string} [string=''] The string to deburr.
|
|
518
|
-
* @returns {string} Returns the deburred string.
|
|
519
|
-
* @example
|
|
520
|
-
*
|
|
521
|
-
* _.deburr('déjà vu');
|
|
522
|
-
* // => 'deja vu'
|
|
523
|
-
*/
|
|
524
|
-
function deburr(string) {
|
|
525
|
-
string = require__baseIteratee.toString(string);
|
|
526
|
-
return string && string.replace(reLatin, deburrLetter).replace(reComboMark, "");
|
|
527
|
-
}
|
|
528
|
-
//#endregion
|
|
529
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_asciiWords.js
|
|
530
|
-
/** Used to match words composed of alphanumeric characters. */
|
|
531
|
-
var reAsciiWord = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;
|
|
532
|
-
/**
|
|
533
|
-
* Splits an ASCII `string` into an array of its words.
|
|
534
|
-
*
|
|
535
|
-
* @private
|
|
536
|
-
* @param {string} The string to inspect.
|
|
537
|
-
* @returns {Array} Returns the words of `string`.
|
|
538
|
-
*/
|
|
539
|
-
function asciiWords(string) {
|
|
540
|
-
return string.match(reAsciiWord) || [];
|
|
541
|
-
}
|
|
542
|
-
//#endregion
|
|
543
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hasUnicodeWord.js
|
|
544
|
-
/** Used to detect strings that need a more robust regexp to match words. */
|
|
545
|
-
var reHasUnicodeWord = /[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;
|
|
546
|
-
/**
|
|
547
|
-
* Checks if `string` contains a word composed of Unicode symbols.
|
|
548
|
-
*
|
|
549
|
-
* @private
|
|
550
|
-
* @param {string} string The string to inspect.
|
|
551
|
-
* @returns {boolean} Returns `true` if a word is found, else `false`.
|
|
552
|
-
*/
|
|
553
|
-
function hasUnicodeWord(string) {
|
|
554
|
-
return reHasUnicodeWord.test(string);
|
|
555
|
-
}
|
|
556
|
-
//#endregion
|
|
557
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_unicodeWords.js
|
|
558
|
-
/** Used to compose unicode character classes. */
|
|
559
|
-
var rsAstralRange = "\\ud800-\\udfff";
|
|
560
|
-
var rsComboRange = "\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff";
|
|
561
|
-
var rsDingbatRange = "\\u2700-\\u27bf";
|
|
562
|
-
var rsLowerRange = "a-z\\xdf-\\xf6\\xf8-\\xff";
|
|
563
|
-
var rsMathOpRange = "\\xac\\xb1\\xd7\\xf7";
|
|
564
|
-
var rsNonCharRange = "\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf";
|
|
565
|
-
var rsPunctuationRange = "\\u2000-\\u206f";
|
|
566
|
-
var rsSpaceRange = " \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000";
|
|
567
|
-
var rsUpperRange = "A-Z\\xc0-\\xd6\\xd8-\\xde";
|
|
568
|
-
var rsVarRange = "\\ufe0e\\ufe0f";
|
|
569
|
-
var rsBreakRange = rsMathOpRange + rsNonCharRange + rsPunctuationRange + rsSpaceRange;
|
|
570
|
-
/** Used to compose unicode capture groups. */
|
|
571
|
-
var rsApos = "['’]";
|
|
572
|
-
var rsBreak = "[" + rsBreakRange + "]";
|
|
573
|
-
var rsCombo = "[" + rsComboRange + "]";
|
|
574
|
-
var rsDigits = "\\d+";
|
|
575
|
-
var rsDingbat = "[" + rsDingbatRange + "]";
|
|
576
|
-
var rsLower = "[" + rsLowerRange + "]";
|
|
577
|
-
var rsMisc = "[^" + rsAstralRange + rsBreakRange + rsDigits + rsDingbatRange + rsLowerRange + rsUpperRange + "]";
|
|
578
|
-
var rsModifier = "(?:" + rsCombo + "|\\ud83c[\\udffb-\\udfff])";
|
|
579
|
-
var rsNonAstral = "[^" + rsAstralRange + "]";
|
|
580
|
-
var rsRegional = "(?:\\ud83c[\\udde6-\\uddff]){2}";
|
|
581
|
-
var rsSurrPair = "[\\ud800-\\udbff][\\udc00-\\udfff]";
|
|
582
|
-
var rsUpper = "[" + rsUpperRange + "]";
|
|
583
|
-
var rsZWJ = "\\u200d";
|
|
584
|
-
/** Used to compose unicode regexes. */
|
|
585
|
-
var rsMiscLower = "(?:" + rsLower + "|" + rsMisc + ")";
|
|
586
|
-
var rsMiscUpper = "(?:" + rsUpper + "|" + rsMisc + ")";
|
|
587
|
-
var rsOptContrLower = "(?:" + rsApos + "(?:d|ll|m|re|s|t|ve))?";
|
|
588
|
-
var rsOptContrUpper = "(?:" + rsApos + "(?:D|LL|M|RE|S|T|VE))?";
|
|
589
|
-
var reOptMod = rsModifier + "?";
|
|
590
|
-
var rsOptVar = "[" + rsVarRange + "]?";
|
|
591
|
-
var rsOptJoin = "(?:" + rsZWJ + "(?:" + [
|
|
592
|
-
rsNonAstral,
|
|
593
|
-
rsRegional,
|
|
594
|
-
rsSurrPair
|
|
595
|
-
].join("|") + ")" + rsOptVar + reOptMod + ")*";
|
|
596
|
-
var rsOrdLower = "\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])";
|
|
597
|
-
var rsOrdUpper = "\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])";
|
|
598
|
-
var rsSeq = rsOptVar + reOptMod + rsOptJoin;
|
|
599
|
-
var rsEmoji = "(?:" + [
|
|
600
|
-
rsDingbat,
|
|
601
|
-
rsRegional,
|
|
602
|
-
rsSurrPair
|
|
603
|
-
].join("|") + ")" + rsSeq;
|
|
604
|
-
/** Used to match complex or compound words. */
|
|
605
|
-
var reUnicodeWord = RegExp([
|
|
606
|
-
rsUpper + "?" + rsLower + "+" + rsOptContrLower + "(?=" + [
|
|
607
|
-
rsBreak,
|
|
608
|
-
rsUpper,
|
|
609
|
-
"$"
|
|
610
|
-
].join("|") + ")",
|
|
611
|
-
rsMiscUpper + "+" + rsOptContrUpper + "(?=" + [
|
|
612
|
-
rsBreak,
|
|
613
|
-
rsUpper + rsMiscLower,
|
|
614
|
-
"$"
|
|
615
|
-
].join("|") + ")",
|
|
616
|
-
rsUpper + "?" + rsMiscLower + "+" + rsOptContrLower,
|
|
617
|
-
rsUpper + "+" + rsOptContrUpper,
|
|
618
|
-
rsOrdUpper,
|
|
619
|
-
rsOrdLower,
|
|
620
|
-
rsDigits,
|
|
621
|
-
rsEmoji
|
|
622
|
-
].join("|"), "g");
|
|
623
|
-
/**
|
|
624
|
-
* Splits a Unicode `string` into an array of its words.
|
|
625
|
-
*
|
|
626
|
-
* @private
|
|
627
|
-
* @param {string} The string to inspect.
|
|
628
|
-
* @returns {Array} Returns the words of `string`.
|
|
629
|
-
*/
|
|
630
|
-
function unicodeWords(string) {
|
|
631
|
-
return string.match(reUnicodeWord) || [];
|
|
632
|
-
}
|
|
633
|
-
//#endregion
|
|
634
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/words.js
|
|
635
|
-
/**
|
|
636
|
-
* Splits `string` into an array of its words.
|
|
637
|
-
*
|
|
638
|
-
* @static
|
|
639
|
-
* @memberOf _
|
|
640
|
-
* @since 3.0.0
|
|
641
|
-
* @category String
|
|
642
|
-
* @param {string} [string=''] The string to inspect.
|
|
643
|
-
* @param {RegExp|string} [pattern] The pattern to match words.
|
|
644
|
-
* @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
|
|
645
|
-
* @returns {Array} Returns the words of `string`.
|
|
646
|
-
* @example
|
|
647
|
-
*
|
|
648
|
-
* _.words('fred, barney, & pebbles');
|
|
649
|
-
* // => ['fred', 'barney', 'pebbles']
|
|
650
|
-
*
|
|
651
|
-
* _.words('fred, barney, & pebbles', /[^, ]+/g);
|
|
652
|
-
* // => ['fred', 'barney', '&', 'pebbles']
|
|
653
|
-
*/
|
|
654
|
-
function words(string, pattern, guard) {
|
|
655
|
-
string = require__baseIteratee.toString(string);
|
|
656
|
-
pattern = guard ? void 0 : pattern;
|
|
657
|
-
if (pattern === void 0) return hasUnicodeWord(string) ? unicodeWords(string) : asciiWords(string);
|
|
658
|
-
return string.match(pattern) || [];
|
|
659
|
-
}
|
|
660
|
-
//#endregion
|
|
661
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_createCompounder.js
|
|
662
|
-
/** Used to match apostrophes. */
|
|
663
|
-
var reApos = RegExp("['’]", "g");
|
|
664
|
-
/**
|
|
665
|
-
* Creates a function like `_.camelCase`.
|
|
666
|
-
*
|
|
667
|
-
* @private
|
|
668
|
-
* @param {Function} callback The function to combine each word.
|
|
669
|
-
* @returns {Function} Returns the new compounder function.
|
|
670
|
-
*/
|
|
671
|
-
function createCompounder(callback) {
|
|
672
|
-
return function(string) {
|
|
673
|
-
return arrayReduce(words(deburr(string).replace(reApos, "")), callback, "");
|
|
674
|
-
};
|
|
675
|
-
}
|
|
676
|
-
//#endregion
|
|
677
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/camelCase.js
|
|
678
|
-
/**
|
|
679
|
-
* Converts `string` to [camel case](https://en.wikipedia.org/wiki/CamelCase).
|
|
680
|
-
*
|
|
681
|
-
* @static
|
|
682
|
-
* @memberOf _
|
|
683
|
-
* @since 3.0.0
|
|
684
|
-
* @category String
|
|
685
|
-
* @param {string} [string=''] The string to convert.
|
|
686
|
-
* @returns {string} Returns the camel cased string.
|
|
687
|
-
* @example
|
|
688
|
-
*
|
|
689
|
-
* _.camelCase('Foo Bar');
|
|
690
|
-
* // => 'fooBar'
|
|
691
|
-
*
|
|
692
|
-
* _.camelCase('--foo-bar--');
|
|
693
|
-
* // => 'fooBar'
|
|
694
|
-
*
|
|
695
|
-
* _.camelCase('__FOO_BAR__');
|
|
696
|
-
* // => 'fooBar'
|
|
697
|
-
*/
|
|
698
|
-
var camelCase = createCompounder(function(result, word, index) {
|
|
699
|
-
word = word.toLowerCase();
|
|
700
|
-
return result + (index ? capitalize(word) : word);
|
|
701
|
-
});
|
|
702
|
-
//#endregion
|
|
703
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getSymbolsIn.js
|
|
704
|
-
/**
|
|
705
|
-
* Creates an array of the own and inherited enumerable symbols of `object`.
|
|
706
|
-
*
|
|
707
|
-
* @private
|
|
708
|
-
* @param {Object} object The object to query.
|
|
709
|
-
* @returns {Array} Returns the array of symbols.
|
|
710
|
-
*/
|
|
711
|
-
var getSymbolsIn = !Object.getOwnPropertySymbols ? require__baseIteratee.stubArray : function(object) {
|
|
712
|
-
var result = [];
|
|
713
|
-
while (object) {
|
|
714
|
-
require__baseIteratee.arrayPush(result, require__baseIteratee.getSymbols(object));
|
|
715
|
-
object = require__getPrototype.getPrototype(object);
|
|
716
|
-
}
|
|
717
|
-
return result;
|
|
718
|
-
};
|
|
719
|
-
//#endregion
|
|
720
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getAllKeysIn.js
|
|
721
|
-
/**
|
|
722
|
-
* Creates an array of own and inherited enumerable property names and
|
|
723
|
-
* symbols of `object`.
|
|
724
|
-
*
|
|
725
|
-
* @private
|
|
726
|
-
* @param {Object} object The object to query.
|
|
727
|
-
* @returns {Array} Returns the array of property names and symbols.
|
|
728
|
-
*/
|
|
729
|
-
function getAllKeysIn(object) {
|
|
730
|
-
return require__baseIteratee.baseGetAllKeys(object, keysIn, getSymbolsIn);
|
|
731
|
-
}
|
|
732
|
-
//#endregion
|
|
733
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseSet.js
|
|
734
|
-
/**
|
|
735
|
-
* The base implementation of `_.set`.
|
|
736
|
-
*
|
|
737
|
-
* @private
|
|
738
|
-
* @param {Object} object The object to modify.
|
|
739
|
-
* @param {Array|string} path The path of the property to set.
|
|
740
|
-
* @param {*} value The value to set.
|
|
741
|
-
* @param {Function} [customizer] The function to customize path creation.
|
|
742
|
-
* @returns {Object} Returns `object`.
|
|
743
|
-
*/
|
|
744
|
-
function baseSet(object, path, value, customizer) {
|
|
745
|
-
if (!require__baseIteratee.isObject(object)) return object;
|
|
746
|
-
path = require__baseIteratee.castPath(path, object);
|
|
747
|
-
var index = -1, length = path.length, lastIndex = length - 1, nested = object;
|
|
748
|
-
while (nested != null && ++index < length) {
|
|
749
|
-
var key = require__baseIteratee.toKey(path[index]), newValue = value;
|
|
750
|
-
if (key === "__proto__" || key === "constructor" || key === "prototype") return object;
|
|
751
|
-
if (index != lastIndex) {
|
|
752
|
-
var objValue = nested[key];
|
|
753
|
-
newValue = customizer ? customizer(objValue, key, nested) : void 0;
|
|
754
|
-
if (newValue === void 0) newValue = require__baseIteratee.isObject(objValue) ? objValue : require__baseIteratee.isIndex(path[index + 1]) ? [] : {};
|
|
755
|
-
}
|
|
756
|
-
assignValue(nested, key, newValue);
|
|
757
|
-
nested = nested[key];
|
|
758
|
-
}
|
|
759
|
-
return object;
|
|
760
|
-
}
|
|
761
|
-
//#endregion
|
|
762
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_basePickBy.js
|
|
763
|
-
/**
|
|
764
|
-
* The base implementation of `_.pickBy` without support for iteratee shorthands.
|
|
765
|
-
*
|
|
766
|
-
* @private
|
|
767
|
-
* @param {Object} object The source object.
|
|
768
|
-
* @param {string[]} paths The property paths to pick.
|
|
769
|
-
* @param {Function} predicate The function invoked per property.
|
|
770
|
-
* @returns {Object} Returns the new object.
|
|
771
|
-
*/
|
|
772
|
-
function basePickBy(object, paths, predicate) {
|
|
773
|
-
var index = -1, length = paths.length, result = {};
|
|
774
|
-
while (++index < length) {
|
|
775
|
-
var path = paths[index], value = require__baseIteratee.baseGet(object, path);
|
|
776
|
-
if (predicate(value, path)) baseSet(result, require__baseIteratee.castPath(path, object), value);
|
|
777
|
-
}
|
|
778
|
-
return result;
|
|
779
|
-
}
|
|
780
|
-
//#endregion
|
|
781
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/pickBy.js
|
|
782
|
-
/**
|
|
783
|
-
* Creates an object composed of the `object` properties `predicate` returns
|
|
784
|
-
* truthy for. The predicate is invoked with two arguments: (value, key).
|
|
785
|
-
*
|
|
786
|
-
* @static
|
|
787
|
-
* @memberOf _
|
|
788
|
-
* @since 4.0.0
|
|
789
|
-
* @category Object
|
|
790
|
-
* @param {Object} object The source object.
|
|
791
|
-
* @param {Function} [predicate=_.identity] The function invoked per property.
|
|
792
|
-
* @returns {Object} Returns the new object.
|
|
793
|
-
* @example
|
|
794
|
-
*
|
|
795
|
-
* var object = { 'a': 1, 'b': '2', 'c': 3 };
|
|
796
|
-
*
|
|
797
|
-
* _.pickBy(object, _.isNumber);
|
|
798
|
-
* // => { 'a': 1, 'c': 3 }
|
|
799
|
-
*/
|
|
800
|
-
function pickBy(object, predicate) {
|
|
801
|
-
if (object == null) return {};
|
|
802
|
-
var props = require__baseIteratee.arrayMap(getAllKeysIn(object), function(prop) {
|
|
803
|
-
return [prop];
|
|
804
|
-
});
|
|
805
|
-
predicate = require__baseIteratee.baseIteratee(predicate);
|
|
806
|
-
return basePickBy(object, props, function(value, path) {
|
|
807
|
-
return predicate(value, path[0]);
|
|
808
|
-
});
|
|
809
|
-
}
|
|
810
|
-
//#endregion
|
|
811
|
-
//#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/startCase.js
|
|
812
|
-
/**
|
|
813
|
-
* Converts `string` to
|
|
814
|
-
* [start case](https://en.wikipedia.org/wiki/Letter_case#Stylistic_or_specialised_usage).
|
|
815
|
-
*
|
|
816
|
-
* @static
|
|
817
|
-
* @memberOf _
|
|
818
|
-
* @since 3.1.0
|
|
819
|
-
* @category String
|
|
820
|
-
* @param {string} [string=''] The string to convert.
|
|
821
|
-
* @returns {string} Returns the start cased string.
|
|
822
|
-
* @example
|
|
823
|
-
*
|
|
824
|
-
* _.startCase('--foo-bar--');
|
|
825
|
-
* // => 'Foo Bar'
|
|
826
|
-
*
|
|
827
|
-
* _.startCase('fooBar');
|
|
828
|
-
* // => 'Foo Bar'
|
|
829
|
-
*
|
|
830
|
-
* _.startCase('__FOO_BAR__');
|
|
831
|
-
* // => 'FOO BAR'
|
|
832
|
-
*/
|
|
833
|
-
var startCase = createCompounder(function(result, word, index) {
|
|
834
|
-
return result + (index ? " " : "") + upperFirst(word);
|
|
835
|
-
});
|
|
836
|
-
//#endregion
|
|
837
|
-
//#region src/utils.ts
|
|
838
|
-
var utils_exports = /* @__PURE__ */ require_compiler.__exportAll({
|
|
839
|
-
Identifier: () => Identifier,
|
|
840
|
-
configureTokenizer: () => configureTokenizer,
|
|
841
|
-
escapeString: () => escapeString,
|
|
842
|
-
fromJSONSchemaCompat: () => fromJSONSchemaCompat,
|
|
843
|
-
getErrorMessage: () => getErrorMessage,
|
|
844
|
-
getMultilineComment: () => getMultilineComment,
|
|
845
|
-
getTokenizer: () => getTokenizer,
|
|
846
|
-
init: () => init,
|
|
847
|
-
isJsonSchema: () => isJsonSchema,
|
|
848
|
-
isValidIdentifier: () => isValidIdentifier,
|
|
849
|
-
isZuiSchema: () => isZuiSchema,
|
|
850
|
-
stripInvalidIdentifiers: () => stripInvalidIdentifiers,
|
|
851
|
-
toPropertyKey: () => toPropertyKey,
|
|
852
|
-
toValidFunctionName: () => toValidFunctionName,
|
|
853
|
-
toValidObjectName: () => toValidObjectName
|
|
854
|
-
});
|
|
855
|
-
let tokenizer = null;
|
|
856
|
-
/**
|
|
857
|
-
* Injects the tokenizer used for prompt budgeting instead of the default
|
|
858
|
-
* `@bpinternal/thicktoken` WASM tokenizer.
|
|
859
|
-
*
|
|
860
|
-
* The default tokenizer compiles its WASM at runtime (`new WebAssembly.Module(bytes)`),
|
|
861
|
-
* which is disallowed on some platforms (e.g. Cloudflare Workers / workerd). On those
|
|
862
|
-
* platforms, build a tokenizer from a statically imported precompiled `WebAssembly.Module`
|
|
863
|
-
* and inject it here before calling `execute()`.
|
|
864
|
-
*/
|
|
865
|
-
const configureTokenizer = (customTokenizer) => {
|
|
866
|
-
tokenizer = customTokenizer;
|
|
867
|
-
};
|
|
868
|
-
const init = async () => {
|
|
869
|
-
if (tokenizer) return;
|
|
870
|
-
while (typeof _bpinternal_thicktoken.getWasmTokenizer !== "function") await new Promise((resolve) => setTimeout(resolve, 50));
|
|
871
|
-
tokenizer = await (0, _bpinternal_thicktoken.getWasmTokenizer)();
|
|
872
|
-
};
|
|
873
|
-
const getTokenizer = () => {
|
|
874
|
-
if (!tokenizer) throw new Error("Tokenizer not initialized, make sure to call init() first and await it");
|
|
875
|
-
return tokenizer;
|
|
876
|
-
};
|
|
877
|
-
const Identifier = _bpinternal_zui.z.string().min(1).max(100).regex(/^([a-zA-Z_][a-zA-Z0-9_]*)$/, "Identifiers must start with a letter and can only contain letters, numbers and underscores");
|
|
878
|
-
function escapeString(str) {
|
|
879
|
-
if (typeof str !== "string") return "";
|
|
880
|
-
const escapedStr = String.raw`${str}`.replace(/\\/g, "\\\\").replace(/\n/g, "\\n").replace(/"/g, "\\\"").replace(/'/g, "\\'");
|
|
881
|
-
if (escapedStr.includes("`")) return `"${escapedStr}"`;
|
|
882
|
-
else if (escapedStr.includes("'")) return `"${escapedStr}"`;
|
|
883
|
-
else return `'${escapedStr}'`;
|
|
884
|
-
}
|
|
885
|
-
const toPropertyKey = (key) => {
|
|
886
|
-
if (/^[a-zA-Z_$][a-zA-Z0-9_$]*$/.test(key)) return key;
|
|
887
|
-
return escapeString(key);
|
|
888
|
-
};
|
|
889
|
-
const trimEmptyLines = (lines) => {
|
|
890
|
-
var _lines$;
|
|
891
|
-
while (lines.length && !((_lines$ = lines[0]) === null || _lines$ === void 0 ? void 0 : _lines$.trim())) lines.shift();
|
|
892
|
-
while (lines.length && !lines[lines.length - 1].trim()) lines.pop();
|
|
893
|
-
};
|
|
894
|
-
const getMultilineComment = (description) => {
|
|
895
|
-
description = description === null || description === void 0 ? void 0 : description.replace(/(\n(\s*)?){3,}/g, "\n\n");
|
|
896
|
-
const ensureLineStartsWithAsterisk = (line) => line.startsWith("* ") ? ` ${line}` : ` * ${line}`;
|
|
897
|
-
const escapeCommentEnd = (line) => line.replace(/\*\//g, "*\\/");
|
|
898
|
-
const descLines = (description ?? "").split("\n").map((line) => line.trim());
|
|
899
|
-
trimEmptyLines(descLines);
|
|
900
|
-
if (descLines.length) {
|
|
901
|
-
descLines[0] = descLines[0].replace(/^\/\*\*?/, "");
|
|
902
|
-
descLines[descLines.length - 1] = descLines[descLines.length - 1].replace(/\*\/$/, "");
|
|
903
|
-
}
|
|
904
|
-
trimEmptyLines(descLines);
|
|
905
|
-
return descLines.length === 0 ? "" : descLines.length === 1 ? `/** ${escapeCommentEnd(descLines[0])} */` : `/**\n${descLines.map(ensureLineStartsWithAsterisk).map(escapeCommentEnd).join("\n")}\n */`;
|
|
906
|
-
};
|
|
907
|
-
const toValidFunctionName = (str) => {
|
|
908
|
-
let name = deburr(str);
|
|
909
|
-
name = name.replace(/[^a-zA-Z0-9_$]/g, "");
|
|
910
|
-
if (!/^[a-zA-Z_$]/.test(name)) name = `_${name}`;
|
|
911
|
-
return camelCase(name);
|
|
912
|
-
};
|
|
913
|
-
const toValidObjectName = (str) => {
|
|
914
|
-
let name = deburr(str);
|
|
915
|
-
name = name.split(/[^a-zA-Z0-9_$]/g).map(startCase).join("");
|
|
916
|
-
if (!/^[a-zA-Z_$]/.test(name)) name = `_${name}`;
|
|
917
|
-
return name.replaceAll(" ", "");
|
|
918
|
-
};
|
|
919
|
-
const stripInvalidIdentifiers = (object) => {
|
|
920
|
-
if (typeof object !== "object") return object;
|
|
921
|
-
if (Array.isArray(object)) return object.map(stripInvalidIdentifiers);
|
|
922
|
-
return pickBy(object, (__, key) => Identifier.safeParse(key).success);
|
|
923
|
-
};
|
|
924
|
-
/**
|
|
925
|
-
* JSON Schema → Zui via the legacy transform, falling back to the eval-free one.
|
|
926
|
-
* The legacy transform builds the schema by evaluating generated code, which is
|
|
927
|
-
* banned on some platforms (e.g. Cloudflare Workers / workerd) — there it throws
|
|
928
|
-
* and the eval-free transform takes over. Kept legacy-first because the two
|
|
929
|
-
* transforms differ on some shapes (e.g. discriminated unions).
|
|
930
|
-
*/
|
|
931
|
-
const fromJSONSchemaCompat = (schema) => {
|
|
932
|
-
try {
|
|
933
|
-
return _bpinternal_zui.transforms.fromJSONSchemaLegacy(schema);
|
|
934
|
-
} catch {
|
|
935
|
-
return _bpinternal_zui.transforms.fromJSONSchema(schema);
|
|
936
|
-
}
|
|
937
|
-
};
|
|
938
|
-
function isZuiSchema(schema) {
|
|
939
|
-
return !!schema && typeof schema === "object" && schema.__type__ === "ZuiType";
|
|
940
|
-
}
|
|
941
|
-
function isJsonSchema(schema) {
|
|
942
|
-
return !!schema && typeof schema === "object" && ("$schema" in schema || "type" in schema || "properties" in schema);
|
|
943
|
-
}
|
|
944
|
-
function isValidIdentifier(name) {
|
|
945
|
-
if (typeof name !== "string") return false;
|
|
946
|
-
return /^[A-Z]{1,}[A-Z0-9_]{0,50}$/i.test(name);
|
|
947
|
-
}
|
|
948
|
-
const getErrorMessage = (err) => err instanceof Error ? err.message : JSON.stringify(err);
|
|
949
|
-
//#endregion
|
|
950
|
-
Object.defineProperty(exports, "assignValue", {
|
|
951
|
-
enumerable: true,
|
|
952
|
-
get: function() {
|
|
953
|
-
return assignValue;
|
|
954
|
-
}
|
|
955
|
-
});
|
|
956
|
-
Object.defineProperty(exports, "baseSlice", {
|
|
957
|
-
enumerable: true,
|
|
958
|
-
get: function() {
|
|
959
|
-
return baseSlice;
|
|
960
|
-
}
|
|
961
|
-
});
|
|
962
|
-
Object.defineProperty(exports, "configureTokenizer", {
|
|
963
|
-
enumerable: true,
|
|
964
|
-
get: function() {
|
|
965
|
-
return configureTokenizer;
|
|
966
|
-
}
|
|
967
|
-
});
|
|
968
|
-
Object.defineProperty(exports, "escapeString", {
|
|
969
|
-
enumerable: true,
|
|
970
|
-
get: function() {
|
|
971
|
-
return escapeString;
|
|
972
|
-
}
|
|
973
|
-
});
|
|
974
|
-
Object.defineProperty(exports, "fromJSONSchemaCompat", {
|
|
975
|
-
enumerable: true,
|
|
976
|
-
get: function() {
|
|
977
|
-
return fromJSONSchemaCompat;
|
|
978
|
-
}
|
|
979
|
-
});
|
|
980
|
-
Object.defineProperty(exports, "getAllKeysIn", {
|
|
981
|
-
enumerable: true,
|
|
982
|
-
get: function() {
|
|
983
|
-
return getAllKeysIn;
|
|
984
|
-
}
|
|
985
|
-
});
|
|
986
|
-
Object.defineProperty(exports, "getErrorMessage", {
|
|
987
|
-
enumerable: true,
|
|
988
|
-
get: function() {
|
|
989
|
-
return getErrorMessage;
|
|
990
|
-
}
|
|
991
|
-
});
|
|
992
|
-
Object.defineProperty(exports, "getMultilineComment", {
|
|
993
|
-
enumerable: true,
|
|
994
|
-
get: function() {
|
|
995
|
-
return getMultilineComment;
|
|
996
|
-
}
|
|
997
|
-
});
|
|
998
|
-
Object.defineProperty(exports, "getSymbolsIn", {
|
|
999
|
-
enumerable: true,
|
|
1000
|
-
get: function() {
|
|
1001
|
-
return getSymbolsIn;
|
|
1002
|
-
}
|
|
1003
|
-
});
|
|
1004
|
-
Object.defineProperty(exports, "getTokenizer", {
|
|
1005
|
-
enumerable: true,
|
|
1006
|
-
get: function() {
|
|
1007
|
-
return getTokenizer;
|
|
1008
|
-
}
|
|
1009
|
-
});
|
|
1010
|
-
Object.defineProperty(exports, "init", {
|
|
1011
|
-
enumerable: true,
|
|
1012
|
-
get: function() {
|
|
1013
|
-
return init;
|
|
1014
|
-
}
|
|
1015
|
-
});
|
|
1016
|
-
Object.defineProperty(exports, "isJsonSchema", {
|
|
1017
|
-
enumerable: true,
|
|
1018
|
-
get: function() {
|
|
1019
|
-
return isJsonSchema;
|
|
1020
|
-
}
|
|
1021
|
-
});
|
|
1022
|
-
Object.defineProperty(exports, "isValidIdentifier", {
|
|
1023
|
-
enumerable: true,
|
|
1024
|
-
get: function() {
|
|
1025
|
-
return isValidIdentifier;
|
|
1026
|
-
}
|
|
1027
|
-
});
|
|
1028
|
-
Object.defineProperty(exports, "isZuiSchema", {
|
|
1029
|
-
enumerable: true,
|
|
1030
|
-
get: function() {
|
|
1031
|
-
return isZuiSchema;
|
|
1032
|
-
}
|
|
1033
|
-
});
|
|
1034
|
-
Object.defineProperty(exports, "keysIn", {
|
|
1035
|
-
enumerable: true,
|
|
1036
|
-
get: function() {
|
|
1037
|
-
return keysIn;
|
|
1038
|
-
}
|
|
1039
|
-
});
|
|
1040
|
-
Object.defineProperty(exports, "stripInvalidIdentifiers", {
|
|
1041
|
-
enumerable: true,
|
|
1042
|
-
get: function() {
|
|
1043
|
-
return stripInvalidIdentifiers;
|
|
1044
|
-
}
|
|
1045
|
-
});
|
|
1046
|
-
Object.defineProperty(exports, "toPropertyKey", {
|
|
1047
|
-
enumerable: true,
|
|
1048
|
-
get: function() {
|
|
1049
|
-
return toPropertyKey;
|
|
1050
|
-
}
|
|
1051
|
-
});
|
|
1052
|
-
Object.defineProperty(exports, "toValidFunctionName", {
|
|
1053
|
-
enumerable: true,
|
|
1054
|
-
get: function() {
|
|
1055
|
-
return toValidFunctionName;
|
|
1056
|
-
}
|
|
1057
|
-
});
|
|
1058
|
-
Object.defineProperty(exports, "toValidObjectName", {
|
|
1059
|
-
enumerable: true,
|
|
1060
|
-
get: function() {
|
|
1061
|
-
return toValidObjectName;
|
|
1062
|
-
}
|
|
1063
|
-
});
|
|
1064
|
-
Object.defineProperty(exports, "upperFirst", {
|
|
1065
|
-
enumerable: true,
|
|
1066
|
-
get: function() {
|
|
1067
|
-
return upperFirst;
|
|
1068
|
-
}
|
|
1069
|
-
});
|
|
1070
|
-
Object.defineProperty(exports, "utils_exports", {
|
|
1071
|
-
enumerable: true,
|
|
1072
|
-
get: function() {
|
|
1073
|
-
return utils_exports;
|
|
1074
|
-
}
|
|
1075
|
-
});
|