@aiderdesk/aiderdesk 0.62.0 → 0.66.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/out/cli.js +1 -0
- package/out/{open-telemetry-CcefKvbB.js → open-telemetry-baOvr6sK.js} +1 -1
- package/out/renderer/assets/{arc-TuVjX2tH.js → arc-BXuUWHai.js} +1 -1
- package/out/renderer/assets/{architectureDiagram-Q4EWVU46-CnAcyRvO.js → architectureDiagram-3BPJPVTR-Bm9oFTP_.js} +11 -9
- package/out/renderer/assets/{blockDiagram-DXYQGD6D-DBoJhGAM.js → blockDiagram-GPEHLZMM-DQ2DevZl.js} +218 -30
- package/out/renderer/assets/{c4Diagram-AHTNJAMY-BzW0gKwX.js → c4Diagram-AAUBKEIU-BdR46VbA.js} +2 -2
- package/out/renderer/assets/{channel-CqR4FAVX.js → channel-DUdp1NJ7.js} +1 -1
- package/out/renderer/assets/{chunk-EDXVE4YY-DRk838hn.js → chunk-2J33WTMH-Dzi-idRV.js} +1 -1
- package/out/renderer/assets/{chunk-4BX2VUAB-DQjg_Naa.js → chunk-4BX2VUAB-DEyFpixF.js} +1 -1
- package/out/renderer/assets/{chunk-55IACEB6-pFPEMTmI.js → chunk-55IACEB6-DyyQMIZa.js} +1 -1
- package/out/renderer/assets/{chunk-4TB4RGXK-DkcI1yaW.js → chunk-727SXJPM-vXEiesCP.js} +245 -149
- package/out/renderer/assets/{chunk-OYMX7WX6-DOGJ-XHp.js → chunk-AQP2D5EJ-B0SWmbrS.js} +92 -78
- package/out/renderer/assets/{chunk-FMBD7UC4-BagQdd5u.js → chunk-FMBD7UC4-CoPwvBCa.js} +1 -1
- package/out/renderer/assets/{chunk-YZCP3GAM-BKZRTlUj.js → chunk-ND2GUHAM-ku5t5SwP.js} +1 -1
- package/out/renderer/assets/{chunk-QZHKN3VN-CdzjbbBk.js → chunk-QZHKN3VN-DBGBAqit.js} +1 -1
- package/out/renderer/assets/{classDiagram-6PBFFD2Q-CjVhmlxb.js → classDiagram-4FO5ZUOK-DTyjsHX9.js} +6 -6
- package/out/renderer/assets/{classDiagram-v2-HSJHXN6E-CjVhmlxb.js → classDiagram-v2-Q7XG4LA2-DTyjsHX9.js} +6 -6
- package/out/renderer/assets/{cose-bilkent-S5V4N54A-CZLRecVB.js → cose-bilkent-S5V4N54A-wGfE9wIx.js} +1 -1
- package/out/renderer/assets/{dagre-KV5264BT-BUAzC7Um.js → dagre-BM42HDAG-cwyj1-l0.js} +17 -6
- package/out/renderer/assets/{diagram-MMDJMWI5-B5H49OVD.js → diagram-2AECGRRQ-BYvCxkOs.js} +3 -5
- package/out/renderer/assets/{diagram-5BDNPKRD-DNQEDszc.js → diagram-5GNKFQAL--ZlqvgmY.js} +4 -6
- package/out/renderer/assets/diagram-KO2AKTUF-CoPNrPhx.js +632 -0
- package/out/renderer/assets/{diagram-TYMM5635-Bw7r467p.js → diagram-LMA3HP47-wjhxYTWf.js} +3 -5
- package/out/renderer/assets/{diagram-G4DWMVQ6-D9YY6W2O.js → diagram-OG6HWLK6-DhYpewbd.js} +4 -6
- package/out/renderer/assets/{erDiagram-SMLLAGMA-Bz4ALNLp.js → erDiagram-TEJ5UH35-DolRLBng.js} +4 -4
- package/out/renderer/assets/{flowDiagram-DWJPFMVM-Uqg1ZeN2.js → flowDiagram-I6XJVG4X-DjAbl_XC.js} +6 -6
- package/out/renderer/assets/{ganttDiagram-T4ZO3ILL-Dm0tRLCH.js → ganttDiagram-6RSMTGT7-AF7-XgtX.js} +7 -1
- package/out/renderer/assets/{gitGraphDiagram-UUTBAWPF-R8imfIrj.js → gitGraphDiagram-PVQCEYII-BMZLakzH.js} +4 -6
- package/out/renderer/assets/{graph-B5YWEnt0.js → graph-B_ifajWk.js} +490 -135
- package/out/renderer/assets/{index-D7Xi0GX5.js → index-3bI-dJm8.js} +12818 -8179
- package/out/renderer/assets/{index-B6Zj03wk.css → index-B62bIfbt.css} +234 -11
- package/out/renderer/assets/{infoDiagram-42DDH7IO-CWPYNP1k.js → infoDiagram-5YYISTIA-0f7Qxxvp.js} +3 -5
- package/out/renderer/assets/{ishikawaDiagram-UXIWVN3A-CFTrc-S6.js → ishikawaDiagram-YF4QCWOH-BX_EIAMn.js} +1 -1
- package/out/renderer/assets/{journeyDiagram-VCZTEJTY-Dfd-piIf.js → journeyDiagram-JHISSGLW-Dmitv8wD.js} +4 -4
- package/out/renderer/assets/{kanban-definition-6JOO6SKY-BocrfAtb.js → kanban-definition-UN3LZRKU-By2GFUNB.js} +2 -2
- package/out/renderer/assets/{layout-DHzrXVin.js → layout-DAkKffy1.js} +459 -32
- package/out/renderer/assets/{mindmap-definition-QFDTVHPH-D9cyK1Gb.js → mindmap-definition-RKZ34NQL-yIrV1m0y.js} +3 -3
- package/out/renderer/assets/{pieDiagram-DEJITSTG-LUWwVJA5.js → pieDiagram-4H26LBE5-PV9y5rw_.js} +4 -6
- package/out/renderer/assets/{quadrantDiagram-34T5L4WZ-DdWTi9yW.js → quadrantDiagram-W4KKPZXB-DeX0zTCp.js} +22 -20
- package/out/renderer/assets/{requirementDiagram-MS252O5E-BoLT3tay.js → requirementDiagram-4Y6WPE33-Bzfk_KE-.js} +3 -3
- package/out/renderer/assets/{sankeyDiagram-XADWPNL6-B4gY_QI-.js → sankeyDiagram-5OEKKPKP-BuCv8QIY.js} +80 -11
- package/out/renderer/assets/{sequenceDiagram-FGHM5R23-B-JJvxQW.js → sequenceDiagram-3UESZ5HK-Zg7Ukud8.js} +21 -9
- package/out/renderer/assets/{stateDiagram-FHFEXIEX-BntwOBUs.js → stateDiagram-AJRCARHV-CLaqfYR8.js} +6 -8
- package/out/renderer/assets/{stateDiagram-v2-QKLJ7IA2-C__eWVIe.js → stateDiagram-v2-BHNVJYJU-Cmm1ljQ4.js} +4 -4
- package/out/renderer/assets/{timeline-definition-GMOUNBTQ-C7ch2INk.js → timeline-definition-PNZ67QCA-DQBaAVcC.js} +2 -2
- package/out/renderer/assets/{vennDiagram-DHZGUBPP-CQ__NSue.js → vennDiagram-CIIHVFJN-CuplbU_R.js} +1 -1
- package/out/renderer/assets/{wardley-RL74JXVD-Kh6mNiRV.js → wardley-L42UT6IY-BiqfHMim.js} +25605 -19118
- package/out/renderer/assets/{wardleyDiagram-NUSXRM2D-CfRYzJMU.js → wardleyDiagram-YWT4CUSO-BaV0FnUu.js} +112 -38
- package/out/renderer/assets/worker-CfJUABHG.js +12626 -0
- package/out/renderer/assets/{xychartDiagram-5P7HB3ND-BFq2zIne.js → xychartDiagram-2RQKCTM6-DA_Miw-n.js} +1 -1
- package/out/renderer/index.html +2 -2
- package/out/renderer/progress.html +4 -48
- package/out/resources/connector/connector.py +14 -6
- package/out/resources/mcp-server/aider-desk-mcp-server.js +1051 -501
- package/out/resources/skills/extension-creator/references/config-components.md +6 -6
- package/out/runner.js +2815 -537
- package/package.json +29 -21
- package/patches/@ai-sdk+deepseek+1.0.37.patch +150 -0
- package/scripts/generate-package.mjs +10 -2
- package/out/renderer/assets/_baseUniq-B7TxjYgy.js +0 -381
- package/out/renderer/assets/clone-B-kqpcr4.js +0 -8
- package/out/renderer/assets/min-D6g96v7R.js +0 -41
- package/out/resources/linux/probe +0 -0
- package/out/resources/linux-x64/probe +0 -0
- /package/patches/{ai+5.0.172.patch → ai+5.0.179.patch} +0 -0
|
@@ -1,163 +1,421 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { bE as isArray, bF as isSymbol, bG as Symbol$1, bH as getNative, bI as MapCache, bJ as isArguments, bK as arrayPush, bL as Stack, bM as baseIsEqual, bN as isObject, bO as keys, bP as isLength, bQ as isIndex, bR as isArrayLike, bS as isObjectLike, bT as arrayFilter, bU as isBuffer, bV as isTypedArray, bW as getTag, bX as isPrototype, bY as baseKeys, bZ as Set, b_ as setToArray, b$ as SetCache, c0 as cacheHas, c1 as isFunction } from "./index-3bI-dJm8.js";
|
|
2
|
+
function arrayMap(array, iteratee) {
|
|
3
|
+
var index = -1, length = array == null ? 0 : array.length, result = Array(length);
|
|
4
|
+
while (++index < length) {
|
|
5
|
+
result[index] = iteratee(array[index], index, array);
|
|
6
|
+
}
|
|
7
|
+
return result;
|
|
5
8
|
}
|
|
6
|
-
|
|
7
|
-
|
|
9
|
+
var symbolProto = Symbol$1 ? Symbol$1.prototype : void 0, symbolToString = symbolProto ? symbolProto.toString : void 0;
|
|
10
|
+
function baseToString(value) {
|
|
11
|
+
if (typeof value == "string") {
|
|
12
|
+
return value;
|
|
13
|
+
}
|
|
14
|
+
if (isArray(value)) {
|
|
15
|
+
return arrayMap(value, baseToString) + "";
|
|
16
|
+
}
|
|
17
|
+
if (isSymbol(value)) {
|
|
18
|
+
return symbolToString ? symbolToString.call(value) : "";
|
|
19
|
+
}
|
|
20
|
+
var result = value + "";
|
|
21
|
+
return result == "0" && 1 / value == -Infinity ? "-0" : result;
|
|
8
22
|
}
|
|
9
|
-
function
|
|
10
|
-
return
|
|
23
|
+
function identity(value) {
|
|
24
|
+
return value;
|
|
11
25
|
}
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
26
|
+
function apply(func, thisArg, args) {
|
|
27
|
+
switch (args.length) {
|
|
28
|
+
case 0:
|
|
29
|
+
return func.call(thisArg);
|
|
30
|
+
case 1:
|
|
31
|
+
return func.call(thisArg, args[0]);
|
|
32
|
+
case 2:
|
|
33
|
+
return func.call(thisArg, args[0], args[1]);
|
|
34
|
+
case 3:
|
|
35
|
+
return func.call(thisArg, args[0], args[1], args[2]);
|
|
18
36
|
}
|
|
19
|
-
return
|
|
37
|
+
return func.apply(thisArg, args);
|
|
38
|
+
}
|
|
39
|
+
function noop() {
|
|
40
|
+
}
|
|
41
|
+
var HOT_COUNT = 800, HOT_SPAN = 16;
|
|
42
|
+
var nativeNow = Date.now;
|
|
43
|
+
function shortOut(func) {
|
|
44
|
+
var count = 0, lastCalled = 0;
|
|
45
|
+
return function() {
|
|
46
|
+
var stamp = nativeNow(), remaining = HOT_SPAN - (stamp - lastCalled);
|
|
47
|
+
lastCalled = stamp;
|
|
48
|
+
if (remaining > 0) {
|
|
49
|
+
if (++count >= HOT_COUNT) {
|
|
50
|
+
return arguments[0];
|
|
51
|
+
}
|
|
52
|
+
} else {
|
|
53
|
+
count = 0;
|
|
54
|
+
}
|
|
55
|
+
return func.apply(void 0, arguments);
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
function constant(value) {
|
|
59
|
+
return function() {
|
|
60
|
+
return value;
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
var defineProperty = (function() {
|
|
64
|
+
try {
|
|
65
|
+
var func = getNative(Object, "defineProperty");
|
|
66
|
+
func({}, "", {});
|
|
67
|
+
return func;
|
|
68
|
+
} catch (e) {
|
|
69
|
+
}
|
|
70
|
+
})();
|
|
71
|
+
var baseSetToString = !defineProperty ? identity : function(func, string) {
|
|
72
|
+
return defineProperty(func, "toString", {
|
|
73
|
+
"configurable": true,
|
|
74
|
+
"enumerable": false,
|
|
75
|
+
"value": constant(string),
|
|
76
|
+
"writable": true
|
|
77
|
+
});
|
|
20
78
|
};
|
|
21
|
-
|
|
22
|
-
|
|
79
|
+
var setToString = shortOut(baseSetToString);
|
|
80
|
+
function arrayEach(array, iteratee) {
|
|
81
|
+
var index = -1, length = array == null ? 0 : array.length;
|
|
82
|
+
while (++index < length) {
|
|
83
|
+
if (iteratee(array[index], index, array) === false) {
|
|
84
|
+
break;
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
return array;
|
|
23
88
|
}
|
|
24
|
-
function
|
|
25
|
-
|
|
89
|
+
function baseFindIndex(array, predicate, fromIndex, fromRight) {
|
|
90
|
+
var length = array.length, index = fromIndex + -1;
|
|
91
|
+
while (++index < length) {
|
|
92
|
+
if (predicate(array[index], index, array)) {
|
|
93
|
+
return index;
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
return -1;
|
|
26
97
|
}
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
98
|
+
function baseIsNaN(value) {
|
|
99
|
+
return value !== value;
|
|
100
|
+
}
|
|
101
|
+
function strictIndexOf(array, value, fromIndex) {
|
|
102
|
+
var index = fromIndex - 1, length = array.length;
|
|
103
|
+
while (++index < length) {
|
|
104
|
+
if (array[index] === value) {
|
|
105
|
+
return index;
|
|
106
|
+
}
|
|
34
107
|
}
|
|
35
|
-
return
|
|
108
|
+
return -1;
|
|
36
109
|
}
|
|
37
|
-
function
|
|
38
|
-
|
|
39
|
-
return new dataView.constructor(buffer, dataView.byteOffset, dataView.byteLength);
|
|
110
|
+
function baseIndexOf(array, value, fromIndex) {
|
|
111
|
+
return value === value ? strictIndexOf(array, value, fromIndex) : baseFindIndex(array, baseIsNaN, fromIndex);
|
|
40
112
|
}
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
113
|
+
function arrayIncludes(array, value) {
|
|
114
|
+
var length = array == null ? 0 : array.length;
|
|
115
|
+
return !!length && baseIndexOf(array, value, 0) > -1;
|
|
116
|
+
}
|
|
117
|
+
var nativeMax = Math.max;
|
|
118
|
+
function overRest(func, start, transform) {
|
|
119
|
+
start = nativeMax(start === void 0 ? func.length - 1 : start, 0);
|
|
120
|
+
return function() {
|
|
121
|
+
var args = arguments, index = -1, length = nativeMax(args.length - start, 0), array = Array(length);
|
|
122
|
+
while (++index < length) {
|
|
123
|
+
array[index] = args[start + index];
|
|
124
|
+
}
|
|
125
|
+
index = -1;
|
|
126
|
+
var otherArgs = Array(start + 1);
|
|
127
|
+
while (++index < start) {
|
|
128
|
+
otherArgs[index] = args[index];
|
|
129
|
+
}
|
|
130
|
+
otherArgs[start] = transform(array);
|
|
131
|
+
return apply(func, this, otherArgs);
|
|
132
|
+
};
|
|
133
|
+
}
|
|
134
|
+
function baseRest(func, start) {
|
|
135
|
+
return setToString(overRest(func, start, identity), func + "");
|
|
46
136
|
}
|
|
47
|
-
var
|
|
48
|
-
function
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
var
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
case uint16Tag$1:
|
|
71
|
-
case uint32Tag$1:
|
|
72
|
-
return cloneTypedArray(object, isDeep);
|
|
73
|
-
case mapTag$2:
|
|
74
|
-
return new Ctor();
|
|
75
|
-
case numberTag$1:
|
|
76
|
-
case stringTag$1:
|
|
77
|
-
return new Ctor(object);
|
|
78
|
-
case regexpTag$1:
|
|
79
|
-
return cloneRegExp(object);
|
|
80
|
-
case setTag$2:
|
|
81
|
-
return new Ctor();
|
|
82
|
-
case symbolTag$1:
|
|
83
|
-
return cloneSymbol(object);
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
var mapTag$1 = "[object Map]";
|
|
87
|
-
function baseIsMap(value) {
|
|
88
|
-
return isObjectLike(value) && getTag(value) == mapTag$1;
|
|
89
|
-
}
|
|
90
|
-
var nodeIsMap = nodeUtil && nodeUtil.isMap;
|
|
91
|
-
var isMap = nodeIsMap ? baseUnary(nodeIsMap) : baseIsMap;
|
|
92
|
-
var setTag$1 = "[object Set]";
|
|
93
|
-
function baseIsSet(value) {
|
|
94
|
-
return isObjectLike(value) && getTag(value) == setTag$1;
|
|
95
|
-
}
|
|
96
|
-
var nodeIsSet = nodeUtil && nodeUtil.isSet;
|
|
97
|
-
var isSet = nodeIsSet ? baseUnary(nodeIsSet) : baseIsSet;
|
|
98
|
-
var CLONE_DEEP_FLAG = 1, CLONE_FLAT_FLAG = 2, CLONE_SYMBOLS_FLAG = 4;
|
|
99
|
-
var argsTag = "[object Arguments]", arrayTag = "[object Array]", boolTag = "[object Boolean]", dateTag = "[object Date]", errorTag = "[object Error]", funcTag = "[object Function]", genTag = "[object GeneratorFunction]", mapTag = "[object Map]", numberTag = "[object Number]", objectTag = "[object Object]", regexpTag = "[object RegExp]", setTag = "[object Set]", stringTag = "[object String]", symbolTag = "[object Symbol]", weakMapTag = "[object WeakMap]";
|
|
100
|
-
var arrayBufferTag = "[object ArrayBuffer]", dataViewTag = "[object DataView]", float32Tag = "[object Float32Array]", float64Tag = "[object Float64Array]", int8Tag = "[object Int8Array]", int16Tag = "[object Int16Array]", int32Tag = "[object Int32Array]", uint8Tag = "[object Uint8Array]", uint8ClampedTag = "[object Uint8ClampedArray]", uint16Tag = "[object Uint16Array]", uint32Tag = "[object Uint32Array]";
|
|
101
|
-
var cloneableTags = {};
|
|
102
|
-
cloneableTags[argsTag] = cloneableTags[arrayTag] = cloneableTags[arrayBufferTag] = cloneableTags[dataViewTag] = cloneableTags[boolTag] = cloneableTags[dateTag] = cloneableTags[float32Tag] = cloneableTags[float64Tag] = cloneableTags[int8Tag] = cloneableTags[int16Tag] = cloneableTags[int32Tag] = cloneableTags[mapTag] = cloneableTags[numberTag] = cloneableTags[objectTag] = cloneableTags[regexpTag] = cloneableTags[setTag] = cloneableTags[stringTag] = cloneableTags[symbolTag] = cloneableTags[uint8Tag] = cloneableTags[uint8ClampedTag] = cloneableTags[uint16Tag] = cloneableTags[uint32Tag] = true;
|
|
103
|
-
cloneableTags[errorTag] = cloneableTags[funcTag] = cloneableTags[weakMapTag] = false;
|
|
104
|
-
function baseClone(value, bitmask, customizer, key, object, stack) {
|
|
105
|
-
var result, isDeep = bitmask & CLONE_DEEP_FLAG, isFlat = bitmask & CLONE_FLAT_FLAG, isFull = bitmask & CLONE_SYMBOLS_FLAG;
|
|
106
|
-
if (result !== void 0) {
|
|
137
|
+
var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, reIsPlainProp = /^\w*$/;
|
|
138
|
+
function isKey(value, object) {
|
|
139
|
+
if (isArray(value)) {
|
|
140
|
+
return false;
|
|
141
|
+
}
|
|
142
|
+
var type = typeof value;
|
|
143
|
+
if (type == "number" || type == "symbol" || type == "boolean" || value == null || isSymbol(value)) {
|
|
144
|
+
return true;
|
|
145
|
+
}
|
|
146
|
+
return reIsPlainProp.test(value) || !reIsDeepProp.test(value) || object != null && value in Object(object);
|
|
147
|
+
}
|
|
148
|
+
var FUNC_ERROR_TEXT = "Expected a function";
|
|
149
|
+
function memoize(func, resolver) {
|
|
150
|
+
if (typeof func != "function" || resolver != null && typeof resolver != "function") {
|
|
151
|
+
throw new TypeError(FUNC_ERROR_TEXT);
|
|
152
|
+
}
|
|
153
|
+
var memoized = function() {
|
|
154
|
+
var args = arguments, key = resolver ? resolver.apply(this, args) : args[0], cache = memoized.cache;
|
|
155
|
+
if (cache.has(key)) {
|
|
156
|
+
return cache.get(key);
|
|
157
|
+
}
|
|
158
|
+
var result = func.apply(this, args);
|
|
159
|
+
memoized.cache = cache.set(key, result) || cache;
|
|
107
160
|
return result;
|
|
161
|
+
};
|
|
162
|
+
memoized.cache = new (memoize.Cache || MapCache)();
|
|
163
|
+
return memoized;
|
|
164
|
+
}
|
|
165
|
+
memoize.Cache = MapCache;
|
|
166
|
+
var MAX_MEMOIZE_SIZE = 500;
|
|
167
|
+
function memoizeCapped(func) {
|
|
168
|
+
var result = memoize(func, function(key) {
|
|
169
|
+
if (cache.size === MAX_MEMOIZE_SIZE) {
|
|
170
|
+
cache.clear();
|
|
171
|
+
}
|
|
172
|
+
return key;
|
|
173
|
+
});
|
|
174
|
+
var cache = result.cache;
|
|
175
|
+
return result;
|
|
176
|
+
}
|
|
177
|
+
var rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;
|
|
178
|
+
var reEscapeChar = /\\(\\)?/g;
|
|
179
|
+
var stringToPath = memoizeCapped(function(string) {
|
|
180
|
+
var result = [];
|
|
181
|
+
if (string.charCodeAt(0) === 46) {
|
|
182
|
+
result.push("");
|
|
183
|
+
}
|
|
184
|
+
string.replace(rePropName, function(match, number, quote, subString) {
|
|
185
|
+
result.push(quote ? subString.replace(reEscapeChar, "$1") : number || match);
|
|
186
|
+
});
|
|
187
|
+
return result;
|
|
188
|
+
});
|
|
189
|
+
function toString(value) {
|
|
190
|
+
return value == null ? "" : baseToString(value);
|
|
191
|
+
}
|
|
192
|
+
function castPath(value, object) {
|
|
193
|
+
if (isArray(value)) {
|
|
194
|
+
return value;
|
|
108
195
|
}
|
|
109
|
-
|
|
196
|
+
return isKey(value, object) ? [value] : stringToPath(toString(value));
|
|
197
|
+
}
|
|
198
|
+
function toKey(value) {
|
|
199
|
+
if (typeof value == "string" || isSymbol(value)) {
|
|
110
200
|
return value;
|
|
111
201
|
}
|
|
112
|
-
var
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
202
|
+
var result = value + "";
|
|
203
|
+
return result == "0" && 1 / value == -Infinity ? "-0" : result;
|
|
204
|
+
}
|
|
205
|
+
function baseGet(object, path) {
|
|
206
|
+
path = castPath(path, object);
|
|
207
|
+
var index = 0, length = path.length;
|
|
208
|
+
while (object != null && index < length) {
|
|
209
|
+
object = object[toKey(path[index++])];
|
|
210
|
+
}
|
|
211
|
+
return index && index == length ? object : void 0;
|
|
212
|
+
}
|
|
213
|
+
function get(object, path, defaultValue) {
|
|
214
|
+
var result = object == null ? void 0 : baseGet(object, path);
|
|
215
|
+
return result === void 0 ? defaultValue : result;
|
|
216
|
+
}
|
|
217
|
+
var spreadableSymbol = Symbol$1 ? Symbol$1.isConcatSpreadable : void 0;
|
|
218
|
+
function isFlattenable(value) {
|
|
219
|
+
return isArray(value) || isArguments(value) || !!(spreadableSymbol && value && value[spreadableSymbol]);
|
|
220
|
+
}
|
|
221
|
+
function baseFlatten(array, depth, predicate, isStrict, result) {
|
|
222
|
+
var index = -1, length = array.length;
|
|
223
|
+
predicate || (predicate = isFlattenable);
|
|
224
|
+
result || (result = []);
|
|
225
|
+
while (++index < length) {
|
|
226
|
+
var value = array[index];
|
|
227
|
+
if (predicate(value)) {
|
|
228
|
+
{
|
|
229
|
+
arrayPush(result, value);
|
|
230
|
+
}
|
|
231
|
+
} else if (!isStrict) {
|
|
232
|
+
result[result.length] = value;
|
|
117
233
|
}
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
234
|
+
}
|
|
235
|
+
return result;
|
|
236
|
+
}
|
|
237
|
+
function arrayReduce(array, iteratee, accumulator, initAccum) {
|
|
238
|
+
var index = -1, length = array == null ? 0 : array.length;
|
|
239
|
+
if (initAccum && length) {
|
|
240
|
+
accumulator = array[++index];
|
|
241
|
+
}
|
|
242
|
+
while (++index < length) {
|
|
243
|
+
accumulator = iteratee(accumulator, array[index], index, array);
|
|
244
|
+
}
|
|
245
|
+
return accumulator;
|
|
246
|
+
}
|
|
247
|
+
var COMPARE_PARTIAL_FLAG$1 = 1, COMPARE_UNORDERED_FLAG$1 = 2;
|
|
248
|
+
function baseIsMatch(object, source, matchData, customizer) {
|
|
249
|
+
var index = matchData.length, length = index;
|
|
250
|
+
if (object == null) {
|
|
251
|
+
return !length;
|
|
252
|
+
}
|
|
253
|
+
object = Object(object);
|
|
254
|
+
while (index--) {
|
|
255
|
+
var data = matchData[index];
|
|
256
|
+
if (data[2] ? data[1] !== object[data[0]] : !(data[0] in object)) {
|
|
257
|
+
return false;
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
while (++index < length) {
|
|
261
|
+
data = matchData[index];
|
|
262
|
+
var key = data[0], objValue = object[key], srcValue = data[1];
|
|
263
|
+
if (data[2]) {
|
|
264
|
+
if (objValue === void 0 && !(key in object)) {
|
|
265
|
+
return false;
|
|
127
266
|
}
|
|
128
267
|
} else {
|
|
129
|
-
|
|
130
|
-
|
|
268
|
+
var stack = new Stack();
|
|
269
|
+
var result;
|
|
270
|
+
if (!(result === void 0 ? baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG$1 | COMPARE_UNORDERED_FLAG$1, customizer, stack) : result)) {
|
|
271
|
+
return false;
|
|
131
272
|
}
|
|
132
|
-
result = initCloneByTag(value, tag, isDeep);
|
|
133
273
|
}
|
|
134
274
|
}
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
275
|
+
return true;
|
|
276
|
+
}
|
|
277
|
+
function isStrictComparable(value) {
|
|
278
|
+
return value === value && !isObject(value);
|
|
279
|
+
}
|
|
280
|
+
function getMatchData(object) {
|
|
281
|
+
var result = keys(object), length = result.length;
|
|
282
|
+
while (length--) {
|
|
283
|
+
var key = result[length], value = object[key];
|
|
284
|
+
result[length] = [key, value, isStrictComparable(value)];
|
|
139
285
|
}
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
286
|
+
return result;
|
|
287
|
+
}
|
|
288
|
+
function matchesStrictComparable(key, srcValue) {
|
|
289
|
+
return function(object) {
|
|
290
|
+
if (object == null) {
|
|
291
|
+
return false;
|
|
292
|
+
}
|
|
293
|
+
return object[key] === srcValue && (srcValue !== void 0 || key in Object(object));
|
|
294
|
+
};
|
|
295
|
+
}
|
|
296
|
+
function baseMatches(source) {
|
|
297
|
+
var matchData = getMatchData(source);
|
|
298
|
+
if (matchData.length == 1 && matchData[0][2]) {
|
|
299
|
+
return matchesStrictComparable(matchData[0][0], matchData[0][1]);
|
|
300
|
+
}
|
|
301
|
+
return function(object) {
|
|
302
|
+
return object === source || baseIsMatch(object, source, matchData);
|
|
303
|
+
};
|
|
304
|
+
}
|
|
305
|
+
function baseHasIn(object, key) {
|
|
306
|
+
return object != null && key in Object(object);
|
|
307
|
+
}
|
|
308
|
+
function hasPath(object, path, hasFunc) {
|
|
309
|
+
path = castPath(path, object);
|
|
310
|
+
var index = -1, length = path.length, result = false;
|
|
311
|
+
while (++index < length) {
|
|
312
|
+
var key = toKey(path[index]);
|
|
313
|
+
if (!(result = object != null && hasFunc(object, key))) {
|
|
314
|
+
break;
|
|
315
|
+
}
|
|
316
|
+
object = object[key];
|
|
317
|
+
}
|
|
318
|
+
if (result || ++index != length) {
|
|
319
|
+
return result;
|
|
149
320
|
}
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
321
|
+
length = object == null ? 0 : object.length;
|
|
322
|
+
return !!length && isLength(length) && isIndex(key, length) && (isArray(object) || isArguments(object));
|
|
323
|
+
}
|
|
324
|
+
function hasIn(object, path) {
|
|
325
|
+
return object != null && hasPath(object, path, baseHasIn);
|
|
326
|
+
}
|
|
327
|
+
var COMPARE_PARTIAL_FLAG = 1, COMPARE_UNORDERED_FLAG = 2;
|
|
328
|
+
function baseMatchesProperty(path, srcValue) {
|
|
329
|
+
if (isKey(path) && isStrictComparable(srcValue)) {
|
|
330
|
+
return matchesStrictComparable(toKey(path), srcValue);
|
|
331
|
+
}
|
|
332
|
+
return function(object) {
|
|
333
|
+
var objValue = get(object, path);
|
|
334
|
+
return objValue === void 0 && objValue === srcValue ? hasIn(object, path) : baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG);
|
|
335
|
+
};
|
|
336
|
+
}
|
|
337
|
+
function baseProperty(key) {
|
|
338
|
+
return function(object) {
|
|
339
|
+
return object == null ? void 0 : object[key];
|
|
340
|
+
};
|
|
341
|
+
}
|
|
342
|
+
function basePropertyDeep(path) {
|
|
343
|
+
return function(object) {
|
|
344
|
+
return baseGet(object, path);
|
|
345
|
+
};
|
|
346
|
+
}
|
|
347
|
+
function property(path) {
|
|
348
|
+
return isKey(path) ? baseProperty(toKey(path)) : basePropertyDeep(path);
|
|
349
|
+
}
|
|
350
|
+
function baseIteratee(value) {
|
|
351
|
+
if (typeof value == "function") {
|
|
352
|
+
return value;
|
|
353
|
+
}
|
|
354
|
+
if (value == null) {
|
|
355
|
+
return identity;
|
|
356
|
+
}
|
|
357
|
+
if (typeof value == "object") {
|
|
358
|
+
return isArray(value) ? baseMatchesProperty(value[0], value[1]) : baseMatches(value);
|
|
359
|
+
}
|
|
360
|
+
return property(value);
|
|
361
|
+
}
|
|
362
|
+
function createBaseFor(fromRight) {
|
|
363
|
+
return function(object, iteratee, keysFunc) {
|
|
364
|
+
var index = -1, iterable = Object(object), props = keysFunc(object), length = props.length;
|
|
365
|
+
while (length--) {
|
|
366
|
+
var key = props[++index];
|
|
367
|
+
if (iteratee(iterable[key], key, iterable) === false) {
|
|
368
|
+
break;
|
|
369
|
+
}
|
|
370
|
+
}
|
|
371
|
+
return object;
|
|
372
|
+
};
|
|
373
|
+
}
|
|
374
|
+
var baseFor = createBaseFor();
|
|
375
|
+
function baseForOwn(object, iteratee) {
|
|
376
|
+
return object && baseFor(object, iteratee, keys);
|
|
377
|
+
}
|
|
378
|
+
function createBaseEach(eachFunc, fromRight) {
|
|
379
|
+
return function(collection, iteratee) {
|
|
380
|
+
if (collection == null) {
|
|
381
|
+
return collection;
|
|
382
|
+
}
|
|
383
|
+
if (!isArrayLike(collection)) {
|
|
384
|
+
return eachFunc(collection, iteratee);
|
|
385
|
+
}
|
|
386
|
+
var length = collection.length, index = -1, iterable = Object(collection);
|
|
387
|
+
while (++index < length) {
|
|
388
|
+
if (iteratee(iterable[index], index, iterable) === false) {
|
|
389
|
+
break;
|
|
390
|
+
}
|
|
391
|
+
}
|
|
392
|
+
return collection;
|
|
393
|
+
};
|
|
394
|
+
}
|
|
395
|
+
var baseEach = createBaseEach(baseForOwn);
|
|
396
|
+
function isArrayLikeObject(value) {
|
|
397
|
+
return isObjectLike(value) && isArrayLike(value);
|
|
398
|
+
}
|
|
399
|
+
function castFunction(value) {
|
|
400
|
+
return typeof value == "function" ? value : identity;
|
|
401
|
+
}
|
|
402
|
+
function forEach(collection, iteratee) {
|
|
403
|
+
var func = isArray(collection) ? arrayEach : baseEach;
|
|
404
|
+
return func(collection, castFunction(iteratee));
|
|
405
|
+
}
|
|
406
|
+
function baseFilter(collection, predicate) {
|
|
407
|
+
var result = [];
|
|
408
|
+
baseEach(collection, function(value, index, collection2) {
|
|
409
|
+
if (predicate(value, index, collection2)) {
|
|
410
|
+
result.push(value);
|
|
156
411
|
}
|
|
157
|
-
assignValue(result, key2, baseClone(subValue, bitmask, customizer, key2, value, stack));
|
|
158
412
|
});
|
|
159
413
|
return result;
|
|
160
414
|
}
|
|
415
|
+
function filter(collection, predicate) {
|
|
416
|
+
var func = isArray(collection) ? arrayFilter : baseFilter;
|
|
417
|
+
return func(collection, baseIteratee(predicate));
|
|
418
|
+
}
|
|
161
419
|
function baseValues(object, props) {
|
|
162
420
|
return arrayMap(props, function(key) {
|
|
163
421
|
return object[key];
|
|
@@ -166,9 +424,82 @@ function baseValues(object, props) {
|
|
|
166
424
|
function values(object) {
|
|
167
425
|
return object == null ? [] : baseValues(object, keys(object));
|
|
168
426
|
}
|
|
427
|
+
var mapTag = "[object Map]", setTag = "[object Set]";
|
|
428
|
+
var objectProto = Object.prototype;
|
|
429
|
+
var hasOwnProperty = objectProto.hasOwnProperty;
|
|
430
|
+
function isEmpty(value) {
|
|
431
|
+
if (value == null) {
|
|
432
|
+
return true;
|
|
433
|
+
}
|
|
434
|
+
if (isArrayLike(value) && (isArray(value) || typeof value == "string" || typeof value.splice == "function" || isBuffer(value) || isTypedArray(value) || isArguments(value))) {
|
|
435
|
+
return !value.length;
|
|
436
|
+
}
|
|
437
|
+
var tag = getTag(value);
|
|
438
|
+
if (tag == mapTag || tag == setTag) {
|
|
439
|
+
return !value.size;
|
|
440
|
+
}
|
|
441
|
+
if (isPrototype(value)) {
|
|
442
|
+
return !baseKeys(value).length;
|
|
443
|
+
}
|
|
444
|
+
for (var key in value) {
|
|
445
|
+
if (hasOwnProperty.call(value, key)) {
|
|
446
|
+
return false;
|
|
447
|
+
}
|
|
448
|
+
}
|
|
449
|
+
return true;
|
|
450
|
+
}
|
|
169
451
|
function isUndefined(value) {
|
|
170
452
|
return value === void 0;
|
|
171
453
|
}
|
|
454
|
+
function baseReduce(collection, iteratee, accumulator, initAccum, eachFunc) {
|
|
455
|
+
eachFunc(collection, function(value, index, collection2) {
|
|
456
|
+
accumulator = initAccum ? (initAccum = false, value) : iteratee(accumulator, value, index, collection2);
|
|
457
|
+
});
|
|
458
|
+
return accumulator;
|
|
459
|
+
}
|
|
460
|
+
function reduce(collection, iteratee, accumulator) {
|
|
461
|
+
var func = isArray(collection) ? arrayReduce : baseReduce, initAccum = arguments.length < 3;
|
|
462
|
+
return func(collection, baseIteratee(iteratee), accumulator, initAccum, baseEach);
|
|
463
|
+
}
|
|
464
|
+
var INFINITY = 1 / 0;
|
|
465
|
+
var createSet = !(Set && 1 / setToArray(new Set([, -0]))[1] == INFINITY) ? noop : function(values2) {
|
|
466
|
+
return new Set(values2);
|
|
467
|
+
};
|
|
468
|
+
var LARGE_ARRAY_SIZE = 200;
|
|
469
|
+
function baseUniq(array, iteratee, comparator) {
|
|
470
|
+
var index = -1, includes = arrayIncludes, length = array.length, isCommon = true, result = [], seen = result;
|
|
471
|
+
if (length >= LARGE_ARRAY_SIZE) {
|
|
472
|
+
var set = createSet(array);
|
|
473
|
+
if (set) {
|
|
474
|
+
return setToArray(set);
|
|
475
|
+
}
|
|
476
|
+
isCommon = false;
|
|
477
|
+
includes = cacheHas;
|
|
478
|
+
seen = new SetCache();
|
|
479
|
+
} else {
|
|
480
|
+
seen = result;
|
|
481
|
+
}
|
|
482
|
+
outer:
|
|
483
|
+
while (++index < length) {
|
|
484
|
+
var value = array[index], computed = value;
|
|
485
|
+
value = value !== 0 ? value : 0;
|
|
486
|
+
if (isCommon && computed === computed) {
|
|
487
|
+
var seenIndex = seen.length;
|
|
488
|
+
while (seenIndex--) {
|
|
489
|
+
if (seen[seenIndex] === computed) {
|
|
490
|
+
continue outer;
|
|
491
|
+
}
|
|
492
|
+
}
|
|
493
|
+
result.push(value);
|
|
494
|
+
} else if (!includes(seen, computed, comparator)) {
|
|
495
|
+
if (seen !== result) {
|
|
496
|
+
seen.push(computed);
|
|
497
|
+
}
|
|
498
|
+
result.push(value);
|
|
499
|
+
}
|
|
500
|
+
}
|
|
501
|
+
return result;
|
|
502
|
+
}
|
|
172
503
|
var union = baseRest(function(arrays) {
|
|
173
504
|
return baseUniq(baseFlatten(arrays, 1, isArrayLikeObject, true));
|
|
174
505
|
});
|
|
@@ -946,8 +1277,32 @@ function edgeObjToId(isDirected, edgeObj) {
|
|
|
946
1277
|
return edgeArgsToId(isDirected, edgeObj.v, edgeObj.w, edgeObj.name);
|
|
947
1278
|
}
|
|
948
1279
|
export {
|
|
1280
|
+
reduce as A,
|
|
949
1281
|
Graph as G,
|
|
950
|
-
|
|
1282
|
+
baseFlatten as a,
|
|
1283
|
+
baseRest as b,
|
|
1284
|
+
arrayEach as c,
|
|
1285
|
+
defineProperty as d,
|
|
1286
|
+
isArrayLikeObject as e,
|
|
1287
|
+
baseFor as f,
|
|
1288
|
+
baseIteratee as g,
|
|
1289
|
+
baseFindIndex as h,
|
|
951
1290
|
isUndefined as i,
|
|
952
|
-
|
|
1291
|
+
baseEach as j,
|
|
1292
|
+
arrayMap as k,
|
|
1293
|
+
castFunction as l,
|
|
1294
|
+
baseForOwn as m,
|
|
1295
|
+
hasPath as n,
|
|
1296
|
+
overRest as o,
|
|
1297
|
+
identity as p,
|
|
1298
|
+
castPath as q,
|
|
1299
|
+
baseGet as r,
|
|
1300
|
+
setToString as s,
|
|
1301
|
+
toKey as t,
|
|
1302
|
+
hasIn as u,
|
|
1303
|
+
toString as v,
|
|
1304
|
+
forEach as w,
|
|
1305
|
+
constant as x,
|
|
1306
|
+
filter as y,
|
|
1307
|
+
values as z
|
|
953
1308
|
};
|