@inditextech/weave-store-azure-web-pubsub 5.2.0 → 5.2.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/dist/client.d.ts +773 -65
- package/dist/client.js +892 -1124
- package/dist/client.stats.html +388 -33
- package/dist/server.d.ts +2177 -503
- package/dist/server.js +357 -460
- package/dist/server.stats.html +388 -33
- package/package.json +7 -7
package/dist/client.js
CHANGED
|
@@ -3,37 +3,32 @@ import { WEAVE_STORE_CONNECTION_STATUS } from "@inditextech/weave-types";
|
|
|
3
3
|
import { IndexeddbPersistence } from "y-indexeddb";
|
|
4
4
|
import { v4 } from "uuid";
|
|
5
5
|
import ReconnectingWebSocket from "reconnecting-websocket";
|
|
6
|
-
import * as Y$1 from "yjs";
|
|
7
6
|
import * as Y from "yjs";
|
|
8
|
-
|
|
9
|
-
//#region rolldown:runtime
|
|
7
|
+
//#region \0rolldown/runtime.js
|
|
10
8
|
var __create = Object.create;
|
|
11
9
|
var __defProp = Object.defineProperty;
|
|
12
10
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
13
11
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
14
12
|
var __getProtoOf = Object.getPrototypeOf;
|
|
15
13
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
16
|
-
var
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
if (from$1 && typeof from$1 === "object" || typeof from$1 === "function") for (var keys$1 = __getOwnPropNames(from$1), i = 0, n = keys$1.length, key; i < n; i++) {
|
|
21
|
-
key = keys$1[i];
|
|
14
|
+
var __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod), cb = null), mod.exports);
|
|
15
|
+
var __copyProps = (to, from, except, desc) => {
|
|
16
|
+
if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
17
|
+
key = keys[i];
|
|
22
18
|
if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
23
|
-
get: ((k) => from
|
|
24
|
-
enumerable: !(desc = __getOwnPropDesc(from
|
|
19
|
+
get: ((k) => from[k]).bind(null, key),
|
|
20
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
25
21
|
});
|
|
26
22
|
}
|
|
27
23
|
return to;
|
|
28
24
|
};
|
|
29
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
|
25
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule || !__hasOwnProp.call(mod, "default") ? __defProp(target, "default", {
|
|
30
26
|
value: mod,
|
|
31
27
|
enumerable: true
|
|
32
28
|
}) : target, mod));
|
|
33
|
-
|
|
34
29
|
//#endregion
|
|
35
30
|
//#region ../../node_modules/lodash/_listCacheClear.js
|
|
36
|
-
var require__listCacheClear =
|
|
31
|
+
var require__listCacheClear = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
37
32
|
/**
|
|
38
33
|
* Removes all key-value entries from the list cache.
|
|
39
34
|
*
|
|
@@ -41,16 +36,15 @@ var require__listCacheClear = __commonJS({ "../../node_modules/lodash/_listCache
|
|
|
41
36
|
* @name clear
|
|
42
37
|
* @memberOf ListCache
|
|
43
38
|
*/
|
|
44
|
-
function listCacheClear
|
|
39
|
+
function listCacheClear() {
|
|
45
40
|
this.__data__ = [];
|
|
46
41
|
this.size = 0;
|
|
47
42
|
}
|
|
48
|
-
module.exports = listCacheClear
|
|
49
|
-
}
|
|
50
|
-
|
|
43
|
+
module.exports = listCacheClear;
|
|
44
|
+
}));
|
|
51
45
|
//#endregion
|
|
52
46
|
//#region ../../node_modules/lodash/eq.js
|
|
53
|
-
var require_eq =
|
|
47
|
+
var require_eq = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
54
48
|
/**
|
|
55
49
|
* Performs a
|
|
56
50
|
* [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
|
|
@@ -83,16 +77,15 @@ var require_eq = __commonJS({ "../../node_modules/lodash/eq.js"(exports, module)
|
|
|
83
77
|
* _.eq(NaN, NaN);
|
|
84
78
|
* // => true
|
|
85
79
|
*/
|
|
86
|
-
function eq
|
|
80
|
+
function eq(value, other) {
|
|
87
81
|
return value === other || value !== value && other !== other;
|
|
88
82
|
}
|
|
89
|
-
module.exports = eq
|
|
90
|
-
}
|
|
91
|
-
|
|
83
|
+
module.exports = eq;
|
|
84
|
+
}));
|
|
92
85
|
//#endregion
|
|
93
86
|
//#region ../../node_modules/lodash/_assocIndexOf.js
|
|
94
|
-
var require__assocIndexOf =
|
|
95
|
-
var eq
|
|
87
|
+
var require__assocIndexOf = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
88
|
+
var eq = require_eq();
|
|
96
89
|
/**
|
|
97
90
|
* Gets the index at which the `key` is found in `array` of key-value pairs.
|
|
98
91
|
*
|
|
@@ -101,22 +94,19 @@ var require__assocIndexOf = __commonJS({ "../../node_modules/lodash/_assocIndexO
|
|
|
101
94
|
* @param {*} key The key to search for.
|
|
102
95
|
* @returns {number} Returns the index of the matched value, else `-1`.
|
|
103
96
|
*/
|
|
104
|
-
function assocIndexOf
|
|
105
|
-
var length
|
|
106
|
-
while (length
|
|
97
|
+
function assocIndexOf(array, key) {
|
|
98
|
+
var length = array.length;
|
|
99
|
+
while (length--) if (eq(array[length][0], key)) return length;
|
|
107
100
|
return -1;
|
|
108
101
|
}
|
|
109
|
-
module.exports = assocIndexOf
|
|
110
|
-
}
|
|
111
|
-
|
|
102
|
+
module.exports = assocIndexOf;
|
|
103
|
+
}));
|
|
112
104
|
//#endregion
|
|
113
105
|
//#region ../../node_modules/lodash/_listCacheDelete.js
|
|
114
|
-
var require__listCacheDelete =
|
|
115
|
-
var assocIndexOf
|
|
116
|
-
/** Used for built-in method references. */
|
|
117
|
-
var arrayProto = Array.prototype;
|
|
106
|
+
var require__listCacheDelete = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
107
|
+
var assocIndexOf = require__assocIndexOf();
|
|
118
108
|
/** Built-in value references. */
|
|
119
|
-
var splice =
|
|
109
|
+
var splice = Array.prototype.splice;
|
|
120
110
|
/**
|
|
121
111
|
* Removes `key` and its value from the list cache.
|
|
122
112
|
*
|
|
@@ -126,22 +116,20 @@ var require__listCacheDelete = __commonJS({ "../../node_modules/lodash/_listCach
|
|
|
126
116
|
* @param {string} key The key of the value to remove.
|
|
127
117
|
* @returns {boolean} Returns `true` if the entry was removed, else `false`.
|
|
128
118
|
*/
|
|
129
|
-
function listCacheDelete
|
|
130
|
-
var data = this.__data__, index = assocIndexOf
|
|
119
|
+
function listCacheDelete(key) {
|
|
120
|
+
var data = this.__data__, index = assocIndexOf(data, key);
|
|
131
121
|
if (index < 0) return false;
|
|
132
|
-
|
|
133
|
-
if (index == lastIndex) data.pop();
|
|
122
|
+
if (index == data.length - 1) data.pop();
|
|
134
123
|
else splice.call(data, index, 1);
|
|
135
124
|
--this.size;
|
|
136
125
|
return true;
|
|
137
126
|
}
|
|
138
|
-
module.exports = listCacheDelete
|
|
139
|
-
}
|
|
140
|
-
|
|
127
|
+
module.exports = listCacheDelete;
|
|
128
|
+
}));
|
|
141
129
|
//#endregion
|
|
142
130
|
//#region ../../node_modules/lodash/_listCacheGet.js
|
|
143
|
-
var require__listCacheGet =
|
|
144
|
-
var assocIndexOf
|
|
131
|
+
var require__listCacheGet = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
132
|
+
var assocIndexOf = require__assocIndexOf();
|
|
145
133
|
/**
|
|
146
134
|
* Gets the list cache value for `key`.
|
|
147
135
|
*
|
|
@@ -151,17 +139,16 @@ var require__listCacheGet = __commonJS({ "../../node_modules/lodash/_listCacheGe
|
|
|
151
139
|
* @param {string} key The key of the value to get.
|
|
152
140
|
* @returns {*} Returns the entry value.
|
|
153
141
|
*/
|
|
154
|
-
function listCacheGet
|
|
155
|
-
var data = this.__data__, index = assocIndexOf
|
|
142
|
+
function listCacheGet(key) {
|
|
143
|
+
var data = this.__data__, index = assocIndexOf(data, key);
|
|
156
144
|
return index < 0 ? void 0 : data[index][1];
|
|
157
145
|
}
|
|
158
|
-
module.exports = listCacheGet
|
|
159
|
-
}
|
|
160
|
-
|
|
146
|
+
module.exports = listCacheGet;
|
|
147
|
+
}));
|
|
161
148
|
//#endregion
|
|
162
149
|
//#region ../../node_modules/lodash/_listCacheHas.js
|
|
163
|
-
var require__listCacheHas =
|
|
164
|
-
var assocIndexOf
|
|
150
|
+
var require__listCacheHas = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
151
|
+
var assocIndexOf = require__assocIndexOf();
|
|
165
152
|
/**
|
|
166
153
|
* Checks if a list cache value for `key` exists.
|
|
167
154
|
*
|
|
@@ -171,15 +158,14 @@ var require__listCacheHas = __commonJS({ "../../node_modules/lodash/_listCacheHa
|
|
|
171
158
|
* @param {string} key The key of the entry to check.
|
|
172
159
|
* @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
|
|
173
160
|
*/
|
|
174
|
-
function listCacheHas
|
|
175
|
-
return assocIndexOf
|
|
161
|
+
function listCacheHas(key) {
|
|
162
|
+
return assocIndexOf(this.__data__, key) > -1;
|
|
176
163
|
}
|
|
177
|
-
module.exports = listCacheHas
|
|
178
|
-
}
|
|
179
|
-
|
|
164
|
+
module.exports = listCacheHas;
|
|
165
|
+
}));
|
|
180
166
|
//#endregion
|
|
181
167
|
//#region ../../node_modules/lodash/_listCacheSet.js
|
|
182
|
-
var require__listCacheSet =
|
|
168
|
+
var require__listCacheSet = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
183
169
|
var assocIndexOf = require__assocIndexOf();
|
|
184
170
|
/**
|
|
185
171
|
* Sets the list cache `key` to `value`.
|
|
@@ -191,7 +177,7 @@ var require__listCacheSet = __commonJS({ "../../node_modules/lodash/_listCacheSe
|
|
|
191
177
|
* @param {*} value The value to set.
|
|
192
178
|
* @returns {Object} Returns the list cache instance.
|
|
193
179
|
*/
|
|
194
|
-
function listCacheSet
|
|
180
|
+
function listCacheSet(key, value) {
|
|
195
181
|
var data = this.__data__, index = assocIndexOf(data, key);
|
|
196
182
|
if (index < 0) {
|
|
197
183
|
++this.size;
|
|
@@ -199,13 +185,16 @@ var require__listCacheSet = __commonJS({ "../../node_modules/lodash/_listCacheSe
|
|
|
199
185
|
} else data[index][1] = value;
|
|
200
186
|
return this;
|
|
201
187
|
}
|
|
202
|
-
module.exports = listCacheSet
|
|
203
|
-
}
|
|
204
|
-
|
|
188
|
+
module.exports = listCacheSet;
|
|
189
|
+
}));
|
|
205
190
|
//#endregion
|
|
206
191
|
//#region ../../node_modules/lodash/_ListCache.js
|
|
207
|
-
var require__ListCache =
|
|
208
|
-
var listCacheClear = require__listCacheClear()
|
|
192
|
+
var require__ListCache = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
193
|
+
var listCacheClear = require__listCacheClear();
|
|
194
|
+
var listCacheDelete = require__listCacheDelete();
|
|
195
|
+
var listCacheGet = require__listCacheGet();
|
|
196
|
+
var listCacheHas = require__listCacheHas();
|
|
197
|
+
var listCacheSet = require__listCacheSet();
|
|
209
198
|
/**
|
|
210
199
|
* Creates an list cache object.
|
|
211
200
|
*
|
|
@@ -213,26 +202,25 @@ var require__ListCache = __commonJS({ "../../node_modules/lodash/_ListCache.js"(
|
|
|
213
202
|
* @constructor
|
|
214
203
|
* @param {Array} [entries] The key-value pairs to cache.
|
|
215
204
|
*/
|
|
216
|
-
function ListCache
|
|
217
|
-
var index = -1, length
|
|
205
|
+
function ListCache(entries) {
|
|
206
|
+
var index = -1, length = entries == null ? 0 : entries.length;
|
|
218
207
|
this.clear();
|
|
219
|
-
while (++index < length
|
|
208
|
+
while (++index < length) {
|
|
220
209
|
var entry = entries[index];
|
|
221
210
|
this.set(entry[0], entry[1]);
|
|
222
211
|
}
|
|
223
212
|
}
|
|
224
|
-
ListCache
|
|
225
|
-
ListCache
|
|
226
|
-
ListCache
|
|
227
|
-
ListCache
|
|
228
|
-
ListCache
|
|
229
|
-
module.exports = ListCache
|
|
230
|
-
}
|
|
231
|
-
|
|
213
|
+
ListCache.prototype.clear = listCacheClear;
|
|
214
|
+
ListCache.prototype["delete"] = listCacheDelete;
|
|
215
|
+
ListCache.prototype.get = listCacheGet;
|
|
216
|
+
ListCache.prototype.has = listCacheHas;
|
|
217
|
+
ListCache.prototype.set = listCacheSet;
|
|
218
|
+
module.exports = ListCache;
|
|
219
|
+
}));
|
|
232
220
|
//#endregion
|
|
233
221
|
//#region ../../node_modules/lodash/_stackClear.js
|
|
234
|
-
var require__stackClear =
|
|
235
|
-
var ListCache
|
|
222
|
+
var require__stackClear = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
223
|
+
var ListCache = require__ListCache();
|
|
236
224
|
/**
|
|
237
225
|
* Removes all key-value entries from the stack.
|
|
238
226
|
*
|
|
@@ -240,16 +228,15 @@ var require__stackClear = __commonJS({ "../../node_modules/lodash/_stackClear.js
|
|
|
240
228
|
* @name clear
|
|
241
229
|
* @memberOf Stack
|
|
242
230
|
*/
|
|
243
|
-
function stackClear
|
|
244
|
-
this.__data__ = new ListCache
|
|
231
|
+
function stackClear() {
|
|
232
|
+
this.__data__ = new ListCache();
|
|
245
233
|
this.size = 0;
|
|
246
234
|
}
|
|
247
|
-
module.exports = stackClear
|
|
248
|
-
}
|
|
249
|
-
|
|
235
|
+
module.exports = stackClear;
|
|
236
|
+
}));
|
|
250
237
|
//#endregion
|
|
251
238
|
//#region ../../node_modules/lodash/_stackDelete.js
|
|
252
|
-
var require__stackDelete =
|
|
239
|
+
var require__stackDelete = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
253
240
|
/**
|
|
254
241
|
* Removes `key` and its value from the stack.
|
|
255
242
|
*
|
|
@@ -259,17 +246,16 @@ var require__stackDelete = __commonJS({ "../../node_modules/lodash/_stackDelete.
|
|
|
259
246
|
* @param {string} key The key of the value to remove.
|
|
260
247
|
* @returns {boolean} Returns `true` if the entry was removed, else `false`.
|
|
261
248
|
*/
|
|
262
|
-
function stackDelete
|
|
249
|
+
function stackDelete(key) {
|
|
263
250
|
var data = this.__data__, result = data["delete"](key);
|
|
264
251
|
this.size = data.size;
|
|
265
252
|
return result;
|
|
266
253
|
}
|
|
267
|
-
module.exports = stackDelete
|
|
268
|
-
}
|
|
269
|
-
|
|
254
|
+
module.exports = stackDelete;
|
|
255
|
+
}));
|
|
270
256
|
//#endregion
|
|
271
257
|
//#region ../../node_modules/lodash/_stackGet.js
|
|
272
|
-
var require__stackGet =
|
|
258
|
+
var require__stackGet = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
273
259
|
/**
|
|
274
260
|
* Gets the stack value for `key`.
|
|
275
261
|
*
|
|
@@ -279,15 +265,14 @@ var require__stackGet = __commonJS({ "../../node_modules/lodash/_stackGet.js"(ex
|
|
|
279
265
|
* @param {string} key The key of the value to get.
|
|
280
266
|
* @returns {*} Returns the entry value.
|
|
281
267
|
*/
|
|
282
|
-
function stackGet
|
|
268
|
+
function stackGet(key) {
|
|
283
269
|
return this.__data__.get(key);
|
|
284
270
|
}
|
|
285
|
-
module.exports = stackGet
|
|
286
|
-
}
|
|
287
|
-
|
|
271
|
+
module.exports = stackGet;
|
|
272
|
+
}));
|
|
288
273
|
//#endregion
|
|
289
274
|
//#region ../../node_modules/lodash/_stackHas.js
|
|
290
|
-
var require__stackHas =
|
|
275
|
+
var require__stackHas = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
291
276
|
/**
|
|
292
277
|
* Checks if a stack value for `key` exists.
|
|
293
278
|
*
|
|
@@ -297,56 +282,45 @@ var require__stackHas = __commonJS({ "../../node_modules/lodash/_stackHas.js"(ex
|
|
|
297
282
|
* @param {string} key The key of the entry to check.
|
|
298
283
|
* @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
|
|
299
284
|
*/
|
|
300
|
-
function stackHas
|
|
285
|
+
function stackHas(key) {
|
|
301
286
|
return this.__data__.has(key);
|
|
302
287
|
}
|
|
303
|
-
module.exports = stackHas
|
|
304
|
-
}
|
|
305
|
-
|
|
288
|
+
module.exports = stackHas;
|
|
289
|
+
}));
|
|
306
290
|
//#endregion
|
|
307
291
|
//#region ../../node_modules/lodash/_freeGlobal.js
|
|
308
|
-
var require__freeGlobal =
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
module.exports = freeGlobal$2;
|
|
312
|
-
} });
|
|
313
|
-
|
|
292
|
+
var require__freeGlobal = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
293
|
+
module.exports = typeof global == "object" && global && global.Object === Object && global;
|
|
294
|
+
}));
|
|
314
295
|
//#endregion
|
|
315
296
|
//#region ../../node_modules/lodash/_root.js
|
|
316
|
-
var require__root =
|
|
317
|
-
var freeGlobal
|
|
297
|
+
var require__root = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
298
|
+
var freeGlobal = require__freeGlobal();
|
|
318
299
|
/** Detect free variable `self`. */
|
|
319
300
|
var freeSelf = typeof self == "object" && self && self.Object === Object && self;
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
module.exports = root$6;
|
|
323
|
-
} });
|
|
324
|
-
|
|
301
|
+
module.exports = freeGlobal || freeSelf || Function("return this")();
|
|
302
|
+
}));
|
|
325
303
|
//#endregion
|
|
326
304
|
//#region ../../node_modules/lodash/_Symbol.js
|
|
327
|
-
var require__Symbol =
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
var Symbol$3 = root$5.Symbol;
|
|
331
|
-
module.exports = Symbol$3;
|
|
332
|
-
} });
|
|
333
|
-
|
|
305
|
+
var require__Symbol = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
306
|
+
module.exports = require__root().Symbol;
|
|
307
|
+
}));
|
|
334
308
|
//#endregion
|
|
335
309
|
//#region ../../node_modules/lodash/_getRawTag.js
|
|
336
|
-
var require__getRawTag =
|
|
337
|
-
var Symbol
|
|
310
|
+
var require__getRawTag = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
311
|
+
var Symbol = require__Symbol();
|
|
338
312
|
/** Used for built-in method references. */
|
|
339
|
-
var objectProto
|
|
313
|
+
var objectProto = Object.prototype;
|
|
340
314
|
/** Used to check objects for own properties. */
|
|
341
|
-
var hasOwnProperty
|
|
315
|
+
var hasOwnProperty = objectProto.hasOwnProperty;
|
|
342
316
|
/**
|
|
343
317
|
* Used to resolve the
|
|
344
318
|
* [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
|
|
345
319
|
* of values.
|
|
346
320
|
*/
|
|
347
|
-
var nativeObjectToString
|
|
321
|
+
var nativeObjectToString = objectProto.toString;
|
|
348
322
|
/** Built-in value references. */
|
|
349
|
-
var symToStringTag
|
|
323
|
+
var symToStringTag = Symbol ? Symbol.toStringTag : void 0;
|
|
350
324
|
/**
|
|
351
325
|
* A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.
|
|
352
326
|
*
|
|
@@ -354,31 +328,30 @@ var require__getRawTag = __commonJS({ "../../node_modules/lodash/_getRawTag.js"(
|
|
|
354
328
|
* @param {*} value The value to query.
|
|
355
329
|
* @returns {string} Returns the raw `toStringTag`.
|
|
356
330
|
*/
|
|
357
|
-
function getRawTag
|
|
358
|
-
var isOwn = hasOwnProperty
|
|
331
|
+
function getRawTag(value) {
|
|
332
|
+
var isOwn = hasOwnProperty.call(value, symToStringTag), tag = value[symToStringTag];
|
|
359
333
|
try {
|
|
360
|
-
value[symToStringTag
|
|
334
|
+
value[symToStringTag] = void 0;
|
|
361
335
|
var unmasked = true;
|
|
362
336
|
} catch (e) {}
|
|
363
|
-
var result = nativeObjectToString
|
|
364
|
-
if (unmasked)
|
|
365
|
-
|
|
337
|
+
var result = nativeObjectToString.call(value);
|
|
338
|
+
if (unmasked) {
|
|
339
|
+
if (isOwn) value[symToStringTag] = tag;
|
|
340
|
+
else delete value[symToStringTag];
|
|
341
|
+
}
|
|
366
342
|
return result;
|
|
367
343
|
}
|
|
368
|
-
module.exports = getRawTag
|
|
369
|
-
}
|
|
370
|
-
|
|
344
|
+
module.exports = getRawTag;
|
|
345
|
+
}));
|
|
371
346
|
//#endregion
|
|
372
347
|
//#region ../../node_modules/lodash/_objectToString.js
|
|
373
|
-
var require__objectToString =
|
|
374
|
-
/** Used for built-in method references. */
|
|
375
|
-
var objectProto$9 = Object.prototype;
|
|
348
|
+
var require__objectToString = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
376
349
|
/**
|
|
377
350
|
* Used to resolve the
|
|
378
351
|
* [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
|
|
379
352
|
* of values.
|
|
380
353
|
*/
|
|
381
|
-
var nativeObjectToString =
|
|
354
|
+
var nativeObjectToString = Object.prototype.toString;
|
|
382
355
|
/**
|
|
383
356
|
* Converts `value` to a string using `Object.prototype.toString`.
|
|
384
357
|
*
|
|
@@ -386,20 +359,22 @@ var require__objectToString = __commonJS({ "../../node_modules/lodash/_objectToS
|
|
|
386
359
|
* @param {*} value The value to convert.
|
|
387
360
|
* @returns {string} Returns the converted string.
|
|
388
361
|
*/
|
|
389
|
-
function objectToString
|
|
362
|
+
function objectToString(value) {
|
|
390
363
|
return nativeObjectToString.call(value);
|
|
391
364
|
}
|
|
392
|
-
module.exports = objectToString
|
|
393
|
-
}
|
|
394
|
-
|
|
365
|
+
module.exports = objectToString;
|
|
366
|
+
}));
|
|
395
367
|
//#endregion
|
|
396
368
|
//#region ../../node_modules/lodash/_baseGetTag.js
|
|
397
|
-
var require__baseGetTag =
|
|
398
|
-
var Symbol
|
|
369
|
+
var require__baseGetTag = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
370
|
+
var Symbol = require__Symbol();
|
|
371
|
+
var getRawTag = require__getRawTag();
|
|
372
|
+
var objectToString = require__objectToString();
|
|
399
373
|
/** `Object#toString` result references. */
|
|
400
|
-
var nullTag = "[object Null]"
|
|
374
|
+
var nullTag = "[object Null]";
|
|
375
|
+
var undefinedTag = "[object Undefined]";
|
|
401
376
|
/** Built-in value references. */
|
|
402
|
-
var symToStringTag = Symbol
|
|
377
|
+
var symToStringTag = Symbol ? Symbol.toStringTag : void 0;
|
|
403
378
|
/**
|
|
404
379
|
* The base implementation of `getTag` without fallbacks for buggy environments.
|
|
405
380
|
*
|
|
@@ -407,16 +382,15 @@ var require__baseGetTag = __commonJS({ "../../node_modules/lodash/_baseGetTag.js
|
|
|
407
382
|
* @param {*} value The value to query.
|
|
408
383
|
* @returns {string} Returns the `toStringTag`.
|
|
409
384
|
*/
|
|
410
|
-
function baseGetTag
|
|
385
|
+
function baseGetTag(value) {
|
|
411
386
|
if (value == null) return value === void 0 ? undefinedTag : nullTag;
|
|
412
387
|
return symToStringTag && symToStringTag in Object(value) ? getRawTag(value) : objectToString(value);
|
|
413
388
|
}
|
|
414
|
-
module.exports = baseGetTag
|
|
415
|
-
}
|
|
416
|
-
|
|
389
|
+
module.exports = baseGetTag;
|
|
390
|
+
}));
|
|
417
391
|
//#endregion
|
|
418
392
|
//#region ../../node_modules/lodash/isObject.js
|
|
419
|
-
var require_isObject =
|
|
393
|
+
var require_isObject = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
420
394
|
/**
|
|
421
395
|
* Checks if `value` is the
|
|
422
396
|
* [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
|
|
@@ -442,19 +416,22 @@ var require_isObject = __commonJS({ "../../node_modules/lodash/isObject.js"(expo
|
|
|
442
416
|
* _.isObject(null);
|
|
443
417
|
* // => false
|
|
444
418
|
*/
|
|
445
|
-
function isObject
|
|
419
|
+
function isObject(value) {
|
|
446
420
|
var type = typeof value;
|
|
447
421
|
return value != null && (type == "object" || type == "function");
|
|
448
422
|
}
|
|
449
|
-
module.exports = isObject
|
|
450
|
-
}
|
|
451
|
-
|
|
423
|
+
module.exports = isObject;
|
|
424
|
+
}));
|
|
452
425
|
//#endregion
|
|
453
426
|
//#region ../../node_modules/lodash/isFunction.js
|
|
454
|
-
var require_isFunction =
|
|
455
|
-
var baseGetTag
|
|
427
|
+
var require_isFunction = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
428
|
+
var baseGetTag = require__baseGetTag();
|
|
429
|
+
var isObject = require_isObject();
|
|
456
430
|
/** `Object#toString` result references. */
|
|
457
|
-
var asyncTag = "[object AsyncFunction]"
|
|
431
|
+
var asyncTag = "[object AsyncFunction]";
|
|
432
|
+
var funcTag = "[object Function]";
|
|
433
|
+
var genTag = "[object GeneratorFunction]";
|
|
434
|
+
var proxyTag = "[object Proxy]";
|
|
458
435
|
/**
|
|
459
436
|
* Checks if `value` is classified as a `Function` object.
|
|
460
437
|
*
|
|
@@ -472,26 +449,21 @@ var require_isFunction = __commonJS({ "../../node_modules/lodash/isFunction.js"(
|
|
|
472
449
|
* _.isFunction(/abc/);
|
|
473
450
|
* // => false
|
|
474
451
|
*/
|
|
475
|
-
function isFunction
|
|
476
|
-
if (!isObject
|
|
477
|
-
var tag = baseGetTag
|
|
478
|
-
return tag == funcTag
|
|
479
|
-
}
|
|
480
|
-
module.exports = isFunction
|
|
481
|
-
}
|
|
482
|
-
|
|
452
|
+
function isFunction(value) {
|
|
453
|
+
if (!isObject(value)) return false;
|
|
454
|
+
var tag = baseGetTag(value);
|
|
455
|
+
return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;
|
|
456
|
+
}
|
|
457
|
+
module.exports = isFunction;
|
|
458
|
+
}));
|
|
483
459
|
//#endregion
|
|
484
460
|
//#region ../../node_modules/lodash/_coreJsData.js
|
|
485
|
-
var require__coreJsData =
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
var coreJsData$1 = root$4["__core-js_shared__"];
|
|
489
|
-
module.exports = coreJsData$1;
|
|
490
|
-
} });
|
|
491
|
-
|
|
461
|
+
var require__coreJsData = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
462
|
+
module.exports = require__root()["__core-js_shared__"];
|
|
463
|
+
}));
|
|
492
464
|
//#endregion
|
|
493
465
|
//#region ../../node_modules/lodash/_isMasked.js
|
|
494
|
-
var require__isMasked =
|
|
466
|
+
var require__isMasked = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
495
467
|
var coreJsData = require__coreJsData();
|
|
496
468
|
/** Used to detect methods masquerading as native. */
|
|
497
469
|
var maskSrcKey = function() {
|
|
@@ -505,19 +477,16 @@ var require__isMasked = __commonJS({ "../../node_modules/lodash/_isMasked.js"(ex
|
|
|
505
477
|
* @param {Function} func The function to check.
|
|
506
478
|
* @returns {boolean} Returns `true` if `func` is masked, else `false`.
|
|
507
479
|
*/
|
|
508
|
-
function isMasked
|
|
480
|
+
function isMasked(func) {
|
|
509
481
|
return !!maskSrcKey && maskSrcKey in func;
|
|
510
482
|
}
|
|
511
|
-
module.exports = isMasked
|
|
512
|
-
}
|
|
513
|
-
|
|
483
|
+
module.exports = isMasked;
|
|
484
|
+
}));
|
|
514
485
|
//#endregion
|
|
515
486
|
//#region ../../node_modules/lodash/_toSource.js
|
|
516
|
-
var require__toSource =
|
|
517
|
-
/** Used for built-in method references. */
|
|
518
|
-
var funcProto$2 = Function.prototype;
|
|
487
|
+
var require__toSource = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
519
488
|
/** Used to resolve the decompiled source of functions. */
|
|
520
|
-
var funcToString
|
|
489
|
+
var funcToString = Function.prototype.toString;
|
|
521
490
|
/**
|
|
522
491
|
* Converts `func` to its source code.
|
|
523
492
|
*
|
|
@@ -525,10 +494,10 @@ var require__toSource = __commonJS({ "../../node_modules/lodash/_toSource.js"(ex
|
|
|
525
494
|
* @param {Function} func The function to convert.
|
|
526
495
|
* @returns {string} Returns the source code.
|
|
527
496
|
*/
|
|
528
|
-
function toSource
|
|
497
|
+
function toSource(func) {
|
|
529
498
|
if (func != null) {
|
|
530
499
|
try {
|
|
531
|
-
return funcToString
|
|
500
|
+
return funcToString.call(func);
|
|
532
501
|
} catch (e) {}
|
|
533
502
|
try {
|
|
534
503
|
return func + "";
|
|
@@ -536,13 +505,15 @@ var require__toSource = __commonJS({ "../../node_modules/lodash/_toSource.js"(ex
|
|
|
536
505
|
}
|
|
537
506
|
return "";
|
|
538
507
|
}
|
|
539
|
-
module.exports = toSource
|
|
540
|
-
}
|
|
541
|
-
|
|
508
|
+
module.exports = toSource;
|
|
509
|
+
}));
|
|
542
510
|
//#endregion
|
|
543
511
|
//#region ../../node_modules/lodash/_baseIsNative.js
|
|
544
|
-
var require__baseIsNative =
|
|
545
|
-
var isFunction
|
|
512
|
+
var require__baseIsNative = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
513
|
+
var isFunction = require_isFunction();
|
|
514
|
+
var isMasked = require__isMasked();
|
|
515
|
+
var isObject = require_isObject();
|
|
516
|
+
var toSource = require__toSource();
|
|
546
517
|
/**
|
|
547
518
|
* Used to match `RegExp`
|
|
548
519
|
* [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).
|
|
@@ -551,13 +522,14 @@ var require__baseIsNative = __commonJS({ "../../node_modules/lodash/_baseIsNativ
|
|
|
551
522
|
/** Used to detect host constructors (Safari). */
|
|
552
523
|
var reIsHostCtor = /^\[object .+?Constructor\]$/;
|
|
553
524
|
/** Used for built-in method references. */
|
|
554
|
-
var funcProto
|
|
525
|
+
var funcProto = Function.prototype;
|
|
526
|
+
var objectProto = Object.prototype;
|
|
555
527
|
/** Used to resolve the decompiled source of functions. */
|
|
556
|
-
var funcToString
|
|
528
|
+
var funcToString = funcProto.toString;
|
|
557
529
|
/** Used to check objects for own properties. */
|
|
558
|
-
var hasOwnProperty
|
|
530
|
+
var hasOwnProperty = objectProto.hasOwnProperty;
|
|
559
531
|
/** Used to detect if a method is native. */
|
|
560
|
-
var reIsNative = RegExp("^" + funcToString
|
|
532
|
+
var reIsNative = RegExp("^" + funcToString.call(hasOwnProperty).replace(reRegExpChar, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$");
|
|
561
533
|
/**
|
|
562
534
|
* The base implementation of `_.isNative` without bad shim checks.
|
|
563
535
|
*
|
|
@@ -566,17 +538,15 @@ var require__baseIsNative = __commonJS({ "../../node_modules/lodash/_baseIsNativ
|
|
|
566
538
|
* @returns {boolean} Returns `true` if `value` is a native function,
|
|
567
539
|
* else `false`.
|
|
568
540
|
*/
|
|
569
|
-
function baseIsNative
|
|
570
|
-
if (!isObject
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
} });
|
|
576
|
-
|
|
541
|
+
function baseIsNative(value) {
|
|
542
|
+
if (!isObject(value) || isMasked(value)) return false;
|
|
543
|
+
return (isFunction(value) ? reIsNative : reIsHostCtor).test(toSource(value));
|
|
544
|
+
}
|
|
545
|
+
module.exports = baseIsNative;
|
|
546
|
+
}));
|
|
577
547
|
//#endregion
|
|
578
548
|
//#region ../../node_modules/lodash/_getValue.js
|
|
579
|
-
var require__getValue =
|
|
549
|
+
var require__getValue = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
580
550
|
/**
|
|
581
551
|
* Gets the value at `key` of `object`.
|
|
582
552
|
*
|
|
@@ -585,16 +555,16 @@ var require__getValue = __commonJS({ "../../node_modules/lodash/_getValue.js"(ex
|
|
|
585
555
|
* @param {string} key The key of the property to get.
|
|
586
556
|
* @returns {*} Returns the property value.
|
|
587
557
|
*/
|
|
588
|
-
function getValue
|
|
558
|
+
function getValue(object, key) {
|
|
589
559
|
return object == null ? void 0 : object[key];
|
|
590
560
|
}
|
|
591
|
-
module.exports = getValue
|
|
592
|
-
}
|
|
593
|
-
|
|
561
|
+
module.exports = getValue;
|
|
562
|
+
}));
|
|
594
563
|
//#endregion
|
|
595
564
|
//#region ../../node_modules/lodash/_getNative.js
|
|
596
|
-
var require__getNative =
|
|
597
|
-
var baseIsNative = require__baseIsNative()
|
|
565
|
+
var require__getNative = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
566
|
+
var baseIsNative = require__baseIsNative();
|
|
567
|
+
var getValue = require__getValue();
|
|
598
568
|
/**
|
|
599
569
|
* Gets the native function at `key` of `object`.
|
|
600
570
|
*
|
|
@@ -603,33 +573,26 @@ var require__getNative = __commonJS({ "../../node_modules/lodash/_getNative.js"(
|
|
|
603
573
|
* @param {string} key The key of the method to get.
|
|
604
574
|
* @returns {*} Returns the function if it's native, else `undefined`.
|
|
605
575
|
*/
|
|
606
|
-
function getNative
|
|
576
|
+
function getNative(object, key) {
|
|
607
577
|
var value = getValue(object, key);
|
|
608
578
|
return baseIsNative(value) ? value : void 0;
|
|
609
579
|
}
|
|
610
|
-
module.exports = getNative
|
|
611
|
-
}
|
|
612
|
-
|
|
580
|
+
module.exports = getNative;
|
|
581
|
+
}));
|
|
613
582
|
//#endregion
|
|
614
583
|
//#region ../../node_modules/lodash/_Map.js
|
|
615
|
-
var require__Map =
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
module.exports = Map$3;
|
|
619
|
-
} });
|
|
620
|
-
|
|
584
|
+
var require__Map = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
585
|
+
module.exports = require__getNative()(require__root(), "Map");
|
|
586
|
+
}));
|
|
621
587
|
//#endregion
|
|
622
588
|
//#region ../../node_modules/lodash/_nativeCreate.js
|
|
623
|
-
var require__nativeCreate =
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
module.exports = nativeCreate$4;
|
|
627
|
-
} });
|
|
628
|
-
|
|
589
|
+
var require__nativeCreate = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
590
|
+
module.exports = require__getNative()(Object, "create");
|
|
591
|
+
}));
|
|
629
592
|
//#endregion
|
|
630
593
|
//#region ../../node_modules/lodash/_hashClear.js
|
|
631
|
-
var require__hashClear =
|
|
632
|
-
var nativeCreate
|
|
594
|
+
var require__hashClear = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
595
|
+
var nativeCreate = require__nativeCreate();
|
|
633
596
|
/**
|
|
634
597
|
* Removes all key-value entries from the hash.
|
|
635
598
|
*
|
|
@@ -637,16 +600,15 @@ var require__hashClear = __commonJS({ "../../node_modules/lodash/_hashClear.js"(
|
|
|
637
600
|
* @name clear
|
|
638
601
|
* @memberOf Hash
|
|
639
602
|
*/
|
|
640
|
-
function hashClear
|
|
641
|
-
this.__data__ = nativeCreate
|
|
603
|
+
function hashClear() {
|
|
604
|
+
this.__data__ = nativeCreate ? nativeCreate(null) : {};
|
|
642
605
|
this.size = 0;
|
|
643
606
|
}
|
|
644
|
-
module.exports = hashClear
|
|
645
|
-
}
|
|
646
|
-
|
|
607
|
+
module.exports = hashClear;
|
|
608
|
+
}));
|
|
647
609
|
//#endregion
|
|
648
610
|
//#region ../../node_modules/lodash/_hashDelete.js
|
|
649
|
-
var require__hashDelete =
|
|
611
|
+
var require__hashDelete = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
650
612
|
/**
|
|
651
613
|
* Removes `key` and its value from the hash.
|
|
652
614
|
*
|
|
@@ -657,24 +619,21 @@ var require__hashDelete = __commonJS({ "../../node_modules/lodash/_hashDelete.js
|
|
|
657
619
|
* @param {string} key The key of the value to remove.
|
|
658
620
|
* @returns {boolean} Returns `true` if the entry was removed, else `false`.
|
|
659
621
|
*/
|
|
660
|
-
function hashDelete
|
|
622
|
+
function hashDelete(key) {
|
|
661
623
|
var result = this.has(key) && delete this.__data__[key];
|
|
662
624
|
this.size -= result ? 1 : 0;
|
|
663
625
|
return result;
|
|
664
626
|
}
|
|
665
|
-
module.exports = hashDelete
|
|
666
|
-
}
|
|
667
|
-
|
|
627
|
+
module.exports = hashDelete;
|
|
628
|
+
}));
|
|
668
629
|
//#endregion
|
|
669
630
|
//#region ../../node_modules/lodash/_hashGet.js
|
|
670
|
-
var require__hashGet =
|
|
671
|
-
var nativeCreate
|
|
631
|
+
var require__hashGet = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
632
|
+
var nativeCreate = require__nativeCreate();
|
|
672
633
|
/** Used to stand-in for `undefined` hash values. */
|
|
673
|
-
var HASH_UNDEFINED
|
|
674
|
-
/** Used for built-in method references. */
|
|
675
|
-
var objectProto$7 = Object.prototype;
|
|
634
|
+
var HASH_UNDEFINED = "__lodash_hash_undefined__";
|
|
676
635
|
/** Used to check objects for own properties. */
|
|
677
|
-
var hasOwnProperty
|
|
636
|
+
var hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
678
637
|
/**
|
|
679
638
|
* Gets the hash value for `key`.
|
|
680
639
|
*
|
|
@@ -684,25 +643,22 @@ var require__hashGet = __commonJS({ "../../node_modules/lodash/_hashGet.js"(expo
|
|
|
684
643
|
* @param {string} key The key of the value to get.
|
|
685
644
|
* @returns {*} Returns the entry value.
|
|
686
645
|
*/
|
|
687
|
-
function hashGet
|
|
646
|
+
function hashGet(key) {
|
|
688
647
|
var data = this.__data__;
|
|
689
|
-
if (nativeCreate
|
|
648
|
+
if (nativeCreate) {
|
|
690
649
|
var result = data[key];
|
|
691
|
-
return result === HASH_UNDEFINED
|
|
650
|
+
return result === HASH_UNDEFINED ? void 0 : result;
|
|
692
651
|
}
|
|
693
|
-
return hasOwnProperty
|
|
652
|
+
return hasOwnProperty.call(data, key) ? data[key] : void 0;
|
|
694
653
|
}
|
|
695
|
-
module.exports = hashGet
|
|
696
|
-
}
|
|
697
|
-
|
|
654
|
+
module.exports = hashGet;
|
|
655
|
+
}));
|
|
698
656
|
//#endregion
|
|
699
657
|
//#region ../../node_modules/lodash/_hashHas.js
|
|
700
|
-
var require__hashHas =
|
|
701
|
-
var nativeCreate
|
|
702
|
-
/** Used for built-in method references. */
|
|
703
|
-
var objectProto$6 = Object.prototype;
|
|
658
|
+
var require__hashHas = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
659
|
+
var nativeCreate = require__nativeCreate();
|
|
704
660
|
/** Used to check objects for own properties. */
|
|
705
|
-
var hasOwnProperty
|
|
661
|
+
var hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
706
662
|
/**
|
|
707
663
|
* Checks if a hash value for `key` exists.
|
|
708
664
|
*
|
|
@@ -712,16 +668,15 @@ var require__hashHas = __commonJS({ "../../node_modules/lodash/_hashHas.js"(expo
|
|
|
712
668
|
* @param {string} key The key of the entry to check.
|
|
713
669
|
* @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
|
|
714
670
|
*/
|
|
715
|
-
function hashHas
|
|
671
|
+
function hashHas(key) {
|
|
716
672
|
var data = this.__data__;
|
|
717
|
-
return nativeCreate
|
|
673
|
+
return nativeCreate ? data[key] !== void 0 : hasOwnProperty.call(data, key);
|
|
718
674
|
}
|
|
719
|
-
module.exports = hashHas
|
|
720
|
-
}
|
|
721
|
-
|
|
675
|
+
module.exports = hashHas;
|
|
676
|
+
}));
|
|
722
677
|
//#endregion
|
|
723
678
|
//#region ../../node_modules/lodash/_hashSet.js
|
|
724
|
-
var require__hashSet =
|
|
679
|
+
var require__hashSet = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
725
680
|
var nativeCreate = require__nativeCreate();
|
|
726
681
|
/** Used to stand-in for `undefined` hash values. */
|
|
727
682
|
var HASH_UNDEFINED = "__lodash_hash_undefined__";
|
|
@@ -735,19 +690,22 @@ var require__hashSet = __commonJS({ "../../node_modules/lodash/_hashSet.js"(expo
|
|
|
735
690
|
* @param {*} value The value to set.
|
|
736
691
|
* @returns {Object} Returns the hash instance.
|
|
737
692
|
*/
|
|
738
|
-
function hashSet
|
|
693
|
+
function hashSet(key, value) {
|
|
739
694
|
var data = this.__data__;
|
|
740
695
|
this.size += this.has(key) ? 0 : 1;
|
|
741
696
|
data[key] = nativeCreate && value === void 0 ? HASH_UNDEFINED : value;
|
|
742
697
|
return this;
|
|
743
698
|
}
|
|
744
|
-
module.exports = hashSet
|
|
745
|
-
}
|
|
746
|
-
|
|
699
|
+
module.exports = hashSet;
|
|
700
|
+
}));
|
|
747
701
|
//#endregion
|
|
748
702
|
//#region ../../node_modules/lodash/_Hash.js
|
|
749
|
-
var require__Hash =
|
|
750
|
-
var hashClear = require__hashClear()
|
|
703
|
+
var require__Hash = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
704
|
+
var hashClear = require__hashClear();
|
|
705
|
+
var hashDelete = require__hashDelete();
|
|
706
|
+
var hashGet = require__hashGet();
|
|
707
|
+
var hashHas = require__hashHas();
|
|
708
|
+
var hashSet = require__hashSet();
|
|
751
709
|
/**
|
|
752
710
|
* Creates a hash object.
|
|
753
711
|
*
|
|
@@ -755,26 +713,27 @@ var require__Hash = __commonJS({ "../../node_modules/lodash/_Hash.js"(exports, m
|
|
|
755
713
|
* @constructor
|
|
756
714
|
* @param {Array} [entries] The key-value pairs to cache.
|
|
757
715
|
*/
|
|
758
|
-
function Hash
|
|
759
|
-
var index = -1, length
|
|
716
|
+
function Hash(entries) {
|
|
717
|
+
var index = -1, length = entries == null ? 0 : entries.length;
|
|
760
718
|
this.clear();
|
|
761
|
-
while (++index < length
|
|
719
|
+
while (++index < length) {
|
|
762
720
|
var entry = entries[index];
|
|
763
721
|
this.set(entry[0], entry[1]);
|
|
764
722
|
}
|
|
765
723
|
}
|
|
766
|
-
Hash
|
|
767
|
-
Hash
|
|
768
|
-
Hash
|
|
769
|
-
Hash
|
|
770
|
-
Hash
|
|
771
|
-
module.exports = Hash
|
|
772
|
-
}
|
|
773
|
-
|
|
724
|
+
Hash.prototype.clear = hashClear;
|
|
725
|
+
Hash.prototype["delete"] = hashDelete;
|
|
726
|
+
Hash.prototype.get = hashGet;
|
|
727
|
+
Hash.prototype.has = hashHas;
|
|
728
|
+
Hash.prototype.set = hashSet;
|
|
729
|
+
module.exports = Hash;
|
|
730
|
+
}));
|
|
774
731
|
//#endregion
|
|
775
732
|
//#region ../../node_modules/lodash/_mapCacheClear.js
|
|
776
|
-
var require__mapCacheClear =
|
|
777
|
-
var Hash = require__Hash()
|
|
733
|
+
var require__mapCacheClear = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
734
|
+
var Hash = require__Hash();
|
|
735
|
+
var ListCache = require__ListCache();
|
|
736
|
+
var Map = require__Map();
|
|
778
737
|
/**
|
|
779
738
|
* Removes all key-value entries from the map.
|
|
780
739
|
*
|
|
@@ -782,20 +741,19 @@ var require__mapCacheClear = __commonJS({ "../../node_modules/lodash/_mapCacheCl
|
|
|
782
741
|
* @name clear
|
|
783
742
|
* @memberOf MapCache
|
|
784
743
|
*/
|
|
785
|
-
function mapCacheClear
|
|
744
|
+
function mapCacheClear() {
|
|
786
745
|
this.size = 0;
|
|
787
746
|
this.__data__ = {
|
|
788
747
|
"hash": new Hash(),
|
|
789
|
-
"map": new (Map
|
|
748
|
+
"map": new (Map || ListCache)(),
|
|
790
749
|
"string": new Hash()
|
|
791
750
|
};
|
|
792
751
|
}
|
|
793
|
-
module.exports = mapCacheClear
|
|
794
|
-
}
|
|
795
|
-
|
|
752
|
+
module.exports = mapCacheClear;
|
|
753
|
+
}));
|
|
796
754
|
//#endregion
|
|
797
755
|
//#region ../../node_modules/lodash/_isKeyable.js
|
|
798
|
-
var require__isKeyable =
|
|
756
|
+
var require__isKeyable = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
799
757
|
/**
|
|
800
758
|
* Checks if `value` is suitable for use as unique object key.
|
|
801
759
|
*
|
|
@@ -803,16 +761,15 @@ var require__isKeyable = __commonJS({ "../../node_modules/lodash/_isKeyable.js"(
|
|
|
803
761
|
* @param {*} value The value to check.
|
|
804
762
|
* @returns {boolean} Returns `true` if `value` is suitable, else `false`.
|
|
805
763
|
*/
|
|
806
|
-
function isKeyable
|
|
764
|
+
function isKeyable(value) {
|
|
807
765
|
var type = typeof value;
|
|
808
766
|
return type == "string" || type == "number" || type == "symbol" || type == "boolean" ? value !== "__proto__" : value === null;
|
|
809
767
|
}
|
|
810
|
-
module.exports = isKeyable
|
|
811
|
-
}
|
|
812
|
-
|
|
768
|
+
module.exports = isKeyable;
|
|
769
|
+
}));
|
|
813
770
|
//#endregion
|
|
814
771
|
//#region ../../node_modules/lodash/_getMapData.js
|
|
815
|
-
var require__getMapData =
|
|
772
|
+
var require__getMapData = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
816
773
|
var isKeyable = require__isKeyable();
|
|
817
774
|
/**
|
|
818
775
|
* Gets the data for `map`.
|
|
@@ -822,17 +779,16 @@ var require__getMapData = __commonJS({ "../../node_modules/lodash/_getMapData.js
|
|
|
822
779
|
* @param {string} key The reference key.
|
|
823
780
|
* @returns {*} Returns the map data.
|
|
824
781
|
*/
|
|
825
|
-
function getMapData
|
|
782
|
+
function getMapData(map, key) {
|
|
826
783
|
var data = map.__data__;
|
|
827
784
|
return isKeyable(key) ? data[typeof key == "string" ? "string" : "hash"] : data.map;
|
|
828
785
|
}
|
|
829
|
-
module.exports = getMapData
|
|
830
|
-
}
|
|
831
|
-
|
|
786
|
+
module.exports = getMapData;
|
|
787
|
+
}));
|
|
832
788
|
//#endregion
|
|
833
789
|
//#region ../../node_modules/lodash/_mapCacheDelete.js
|
|
834
|
-
var require__mapCacheDelete =
|
|
835
|
-
var getMapData
|
|
790
|
+
var require__mapCacheDelete = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
791
|
+
var getMapData = require__getMapData();
|
|
836
792
|
/**
|
|
837
793
|
* Removes `key` and its value from the map.
|
|
838
794
|
*
|
|
@@ -842,18 +798,17 @@ var require__mapCacheDelete = __commonJS({ "../../node_modules/lodash/_mapCacheD
|
|
|
842
798
|
* @param {string} key The key of the value to remove.
|
|
843
799
|
* @returns {boolean} Returns `true` if the entry was removed, else `false`.
|
|
844
800
|
*/
|
|
845
|
-
function mapCacheDelete
|
|
846
|
-
var result = getMapData
|
|
801
|
+
function mapCacheDelete(key) {
|
|
802
|
+
var result = getMapData(this, key)["delete"](key);
|
|
847
803
|
this.size -= result ? 1 : 0;
|
|
848
804
|
return result;
|
|
849
805
|
}
|
|
850
|
-
module.exports = mapCacheDelete
|
|
851
|
-
}
|
|
852
|
-
|
|
806
|
+
module.exports = mapCacheDelete;
|
|
807
|
+
}));
|
|
853
808
|
//#endregion
|
|
854
809
|
//#region ../../node_modules/lodash/_mapCacheGet.js
|
|
855
|
-
var require__mapCacheGet =
|
|
856
|
-
var getMapData
|
|
810
|
+
var require__mapCacheGet = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
811
|
+
var getMapData = require__getMapData();
|
|
857
812
|
/**
|
|
858
813
|
* Gets the map value for `key`.
|
|
859
814
|
*
|
|
@@ -863,16 +818,15 @@ var require__mapCacheGet = __commonJS({ "../../node_modules/lodash/_mapCacheGet.
|
|
|
863
818
|
* @param {string} key The key of the value to get.
|
|
864
819
|
* @returns {*} Returns the entry value.
|
|
865
820
|
*/
|
|
866
|
-
function mapCacheGet
|
|
867
|
-
return getMapData
|
|
821
|
+
function mapCacheGet(key) {
|
|
822
|
+
return getMapData(this, key).get(key);
|
|
868
823
|
}
|
|
869
|
-
module.exports = mapCacheGet
|
|
870
|
-
}
|
|
871
|
-
|
|
824
|
+
module.exports = mapCacheGet;
|
|
825
|
+
}));
|
|
872
826
|
//#endregion
|
|
873
827
|
//#region ../../node_modules/lodash/_mapCacheHas.js
|
|
874
|
-
var require__mapCacheHas =
|
|
875
|
-
var getMapData
|
|
828
|
+
var require__mapCacheHas = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
829
|
+
var getMapData = require__getMapData();
|
|
876
830
|
/**
|
|
877
831
|
* Checks if a map value for `key` exists.
|
|
878
832
|
*
|
|
@@ -882,15 +836,14 @@ var require__mapCacheHas = __commonJS({ "../../node_modules/lodash/_mapCacheHas.
|
|
|
882
836
|
* @param {string} key The key of the entry to check.
|
|
883
837
|
* @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
|
|
884
838
|
*/
|
|
885
|
-
function mapCacheHas
|
|
886
|
-
return getMapData
|
|
839
|
+
function mapCacheHas(key) {
|
|
840
|
+
return getMapData(this, key).has(key);
|
|
887
841
|
}
|
|
888
|
-
module.exports = mapCacheHas
|
|
889
|
-
}
|
|
890
|
-
|
|
842
|
+
module.exports = mapCacheHas;
|
|
843
|
+
}));
|
|
891
844
|
//#endregion
|
|
892
845
|
//#region ../../node_modules/lodash/_mapCacheSet.js
|
|
893
|
-
var require__mapCacheSet =
|
|
846
|
+
var require__mapCacheSet = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
894
847
|
var getMapData = require__getMapData();
|
|
895
848
|
/**
|
|
896
849
|
* Sets the map `key` to `value`.
|
|
@@ -902,19 +855,22 @@ var require__mapCacheSet = __commonJS({ "../../node_modules/lodash/_mapCacheSet.
|
|
|
902
855
|
* @param {*} value The value to set.
|
|
903
856
|
* @returns {Object} Returns the map cache instance.
|
|
904
857
|
*/
|
|
905
|
-
function mapCacheSet
|
|
906
|
-
var data = getMapData(this, key), size
|
|
858
|
+
function mapCacheSet(key, value) {
|
|
859
|
+
var data = getMapData(this, key), size = data.size;
|
|
907
860
|
data.set(key, value);
|
|
908
|
-
this.size += data.size == size
|
|
861
|
+
this.size += data.size == size ? 0 : 1;
|
|
909
862
|
return this;
|
|
910
863
|
}
|
|
911
|
-
module.exports = mapCacheSet
|
|
912
|
-
}
|
|
913
|
-
|
|
864
|
+
module.exports = mapCacheSet;
|
|
865
|
+
}));
|
|
914
866
|
//#endregion
|
|
915
867
|
//#region ../../node_modules/lodash/_MapCache.js
|
|
916
|
-
var require__MapCache =
|
|
917
|
-
var mapCacheClear = require__mapCacheClear()
|
|
868
|
+
var require__MapCache = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
869
|
+
var mapCacheClear = require__mapCacheClear();
|
|
870
|
+
var mapCacheDelete = require__mapCacheDelete();
|
|
871
|
+
var mapCacheGet = require__mapCacheGet();
|
|
872
|
+
var mapCacheHas = require__mapCacheHas();
|
|
873
|
+
var mapCacheSet = require__mapCacheSet();
|
|
918
874
|
/**
|
|
919
875
|
* Creates a map cache object to store key-value pairs.
|
|
920
876
|
*
|
|
@@ -922,26 +878,27 @@ var require__MapCache = __commonJS({ "../../node_modules/lodash/_MapCache.js"(ex
|
|
|
922
878
|
* @constructor
|
|
923
879
|
* @param {Array} [entries] The key-value pairs to cache.
|
|
924
880
|
*/
|
|
925
|
-
function MapCache
|
|
926
|
-
var index = -1, length
|
|
881
|
+
function MapCache(entries) {
|
|
882
|
+
var index = -1, length = entries == null ? 0 : entries.length;
|
|
927
883
|
this.clear();
|
|
928
|
-
while (++index < length
|
|
884
|
+
while (++index < length) {
|
|
929
885
|
var entry = entries[index];
|
|
930
886
|
this.set(entry[0], entry[1]);
|
|
931
887
|
}
|
|
932
888
|
}
|
|
933
|
-
MapCache
|
|
934
|
-
MapCache
|
|
935
|
-
MapCache
|
|
936
|
-
MapCache
|
|
937
|
-
MapCache
|
|
938
|
-
module.exports = MapCache
|
|
939
|
-
}
|
|
940
|
-
|
|
889
|
+
MapCache.prototype.clear = mapCacheClear;
|
|
890
|
+
MapCache.prototype["delete"] = mapCacheDelete;
|
|
891
|
+
MapCache.prototype.get = mapCacheGet;
|
|
892
|
+
MapCache.prototype.has = mapCacheHas;
|
|
893
|
+
MapCache.prototype.set = mapCacheSet;
|
|
894
|
+
module.exports = MapCache;
|
|
895
|
+
}));
|
|
941
896
|
//#endregion
|
|
942
897
|
//#region ../../node_modules/lodash/_stackSet.js
|
|
943
|
-
var require__stackSet =
|
|
944
|
-
var ListCache
|
|
898
|
+
var require__stackSet = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
899
|
+
var ListCache = require__ListCache();
|
|
900
|
+
var Map = require__Map();
|
|
901
|
+
var MapCache = require__MapCache();
|
|
945
902
|
/** Used as the size to enable large array optimizations. */
|
|
946
903
|
var LARGE_ARRAY_SIZE = 200;
|
|
947
904
|
/**
|
|
@@ -954,11 +911,11 @@ var require__stackSet = __commonJS({ "../../node_modules/lodash/_stackSet.js"(ex
|
|
|
954
911
|
* @param {*} value The value to set.
|
|
955
912
|
* @returns {Object} Returns the stack cache instance.
|
|
956
913
|
*/
|
|
957
|
-
function stackSet
|
|
914
|
+
function stackSet(key, value) {
|
|
958
915
|
var data = this.__data__;
|
|
959
|
-
if (data instanceof ListCache
|
|
916
|
+
if (data instanceof ListCache) {
|
|
960
917
|
var pairs = data.__data__;
|
|
961
|
-
if (!Map
|
|
918
|
+
if (!Map || pairs.length < LARGE_ARRAY_SIZE - 1) {
|
|
962
919
|
pairs.push([key, value]);
|
|
963
920
|
this.size = ++data.size;
|
|
964
921
|
return this;
|
|
@@ -969,13 +926,17 @@ var require__stackSet = __commonJS({ "../../node_modules/lodash/_stackSet.js"(ex
|
|
|
969
926
|
this.size = data.size;
|
|
970
927
|
return this;
|
|
971
928
|
}
|
|
972
|
-
module.exports = stackSet
|
|
973
|
-
}
|
|
974
|
-
|
|
929
|
+
module.exports = stackSet;
|
|
930
|
+
}));
|
|
975
931
|
//#endregion
|
|
976
932
|
//#region ../../node_modules/lodash/_Stack.js
|
|
977
|
-
var require__Stack =
|
|
978
|
-
var ListCache = require__ListCache()
|
|
933
|
+
var require__Stack = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
934
|
+
var ListCache = require__ListCache();
|
|
935
|
+
var stackClear = require__stackClear();
|
|
936
|
+
var stackDelete = require__stackDelete();
|
|
937
|
+
var stackGet = require__stackGet();
|
|
938
|
+
var stackHas = require__stackHas();
|
|
939
|
+
var stackSet = require__stackSet();
|
|
979
940
|
/**
|
|
980
941
|
* Creates a stack cache object to store key-value pairs.
|
|
981
942
|
*
|
|
@@ -983,36 +944,33 @@ var require__Stack = __commonJS({ "../../node_modules/lodash/_Stack.js"(exports,
|
|
|
983
944
|
* @constructor
|
|
984
945
|
* @param {Array} [entries] The key-value pairs to cache.
|
|
985
946
|
*/
|
|
986
|
-
function Stack
|
|
947
|
+
function Stack(entries) {
|
|
987
948
|
var data = this.__data__ = new ListCache(entries);
|
|
988
949
|
this.size = data.size;
|
|
989
950
|
}
|
|
990
|
-
Stack
|
|
991
|
-
Stack
|
|
992
|
-
Stack
|
|
993
|
-
Stack
|
|
994
|
-
Stack
|
|
995
|
-
module.exports = Stack
|
|
996
|
-
}
|
|
997
|
-
|
|
951
|
+
Stack.prototype.clear = stackClear;
|
|
952
|
+
Stack.prototype["delete"] = stackDelete;
|
|
953
|
+
Stack.prototype.get = stackGet;
|
|
954
|
+
Stack.prototype.has = stackHas;
|
|
955
|
+
Stack.prototype.set = stackSet;
|
|
956
|
+
module.exports = Stack;
|
|
957
|
+
}));
|
|
998
958
|
//#endregion
|
|
999
959
|
//#region ../../node_modules/lodash/_defineProperty.js
|
|
1000
|
-
var require__defineProperty =
|
|
960
|
+
var require__defineProperty = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1001
961
|
var getNative = require__getNative();
|
|
1002
|
-
|
|
962
|
+
module.exports = function() {
|
|
1003
963
|
try {
|
|
1004
964
|
var func = getNative(Object, "defineProperty");
|
|
1005
965
|
func({}, "", {});
|
|
1006
966
|
return func;
|
|
1007
967
|
} catch (e) {}
|
|
1008
968
|
}();
|
|
1009
|
-
|
|
1010
|
-
} });
|
|
1011
|
-
|
|
969
|
+
}));
|
|
1012
970
|
//#endregion
|
|
1013
971
|
//#region ../../node_modules/lodash/_baseAssignValue.js
|
|
1014
|
-
var require__baseAssignValue =
|
|
1015
|
-
var defineProperty
|
|
972
|
+
var require__baseAssignValue = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
973
|
+
var defineProperty = require__defineProperty();
|
|
1016
974
|
/**
|
|
1017
975
|
* The base implementation of `assignValue` and `assignMergeValue` without
|
|
1018
976
|
* value checks.
|
|
@@ -1022,8 +980,8 @@ var require__baseAssignValue = __commonJS({ "../../node_modules/lodash/_baseAssi
|
|
|
1022
980
|
* @param {string} key The key of the property to assign.
|
|
1023
981
|
* @param {*} value The value to assign.
|
|
1024
982
|
*/
|
|
1025
|
-
function baseAssignValue
|
|
1026
|
-
if (key == "__proto__" && defineProperty
|
|
983
|
+
function baseAssignValue(object, key, value) {
|
|
984
|
+
if (key == "__proto__" && defineProperty) defineProperty(object, key, {
|
|
1027
985
|
"configurable": true,
|
|
1028
986
|
"enumerable": true,
|
|
1029
987
|
"value": value,
|
|
@@ -1031,13 +989,13 @@ var require__baseAssignValue = __commonJS({ "../../node_modules/lodash/_baseAssi
|
|
|
1031
989
|
});
|
|
1032
990
|
else object[key] = value;
|
|
1033
991
|
}
|
|
1034
|
-
module.exports = baseAssignValue
|
|
1035
|
-
}
|
|
1036
|
-
|
|
992
|
+
module.exports = baseAssignValue;
|
|
993
|
+
}));
|
|
1037
994
|
//#endregion
|
|
1038
995
|
//#region ../../node_modules/lodash/_assignMergeValue.js
|
|
1039
|
-
var require__assignMergeValue =
|
|
1040
|
-
var baseAssignValue
|
|
996
|
+
var require__assignMergeValue = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
997
|
+
var baseAssignValue = require__baseAssignValue();
|
|
998
|
+
var eq = require_eq();
|
|
1041
999
|
/**
|
|
1042
1000
|
* This function is like `assignValue` except that it doesn't assign
|
|
1043
1001
|
* `undefined` values.
|
|
@@ -1047,15 +1005,14 @@ var require__assignMergeValue = __commonJS({ "../../node_modules/lodash/_assignM
|
|
|
1047
1005
|
* @param {string} key The key of the property to assign.
|
|
1048
1006
|
* @param {*} value The value to assign.
|
|
1049
1007
|
*/
|
|
1050
|
-
function assignMergeValue
|
|
1051
|
-
if (value !== void 0 && !eq
|
|
1008
|
+
function assignMergeValue(object, key, value) {
|
|
1009
|
+
if (value !== void 0 && !eq(object[key], value) || value === void 0 && !(key in object)) baseAssignValue(object, key, value);
|
|
1052
1010
|
}
|
|
1053
|
-
module.exports = assignMergeValue
|
|
1054
|
-
}
|
|
1055
|
-
|
|
1011
|
+
module.exports = assignMergeValue;
|
|
1012
|
+
}));
|
|
1056
1013
|
//#endregion
|
|
1057
1014
|
//#region ../../node_modules/lodash/_createBaseFor.js
|
|
1058
|
-
var require__createBaseFor =
|
|
1015
|
+
var require__createBaseFor = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1059
1016
|
/**
|
|
1060
1017
|
* Creates a base function for methods like `_.forIn` and `_.forOwn`.
|
|
1061
1018
|
*
|
|
@@ -1063,50 +1020,34 @@ var require__createBaseFor = __commonJS({ "../../node_modules/lodash/_createBase
|
|
|
1063
1020
|
* @param {boolean} [fromRight] Specify iterating from right to left.
|
|
1064
1021
|
* @returns {Function} Returns the new base function.
|
|
1065
1022
|
*/
|
|
1066
|
-
function createBaseFor
|
|
1023
|
+
function createBaseFor(fromRight) {
|
|
1067
1024
|
return function(object, iteratee, keysFunc) {
|
|
1068
|
-
var index = -1, iterable = Object(object), props = keysFunc(object), length
|
|
1069
|
-
while (length
|
|
1070
|
-
var key = props[fromRight ? length
|
|
1025
|
+
var index = -1, iterable = Object(object), props = keysFunc(object), length = props.length;
|
|
1026
|
+
while (length--) {
|
|
1027
|
+
var key = props[fromRight ? length : ++index];
|
|
1071
1028
|
if (iteratee(iterable[key], key, iterable) === false) break;
|
|
1072
1029
|
}
|
|
1073
1030
|
return object;
|
|
1074
1031
|
};
|
|
1075
1032
|
}
|
|
1076
|
-
module.exports = createBaseFor
|
|
1077
|
-
}
|
|
1078
|
-
|
|
1033
|
+
module.exports = createBaseFor;
|
|
1034
|
+
}));
|
|
1079
1035
|
//#endregion
|
|
1080
1036
|
//#region ../../node_modules/lodash/_baseFor.js
|
|
1081
|
-
var require__baseFor =
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
* The base implementation of `baseForOwn` which iterates over `object`
|
|
1085
|
-
* properties returned by `keysFunc` and invokes `iteratee` for each property.
|
|
1086
|
-
* Iteratee functions may exit iteration early by explicitly returning `false`.
|
|
1087
|
-
*
|
|
1088
|
-
* @private
|
|
1089
|
-
* @param {Object} object The object to iterate over.
|
|
1090
|
-
* @param {Function} iteratee The function invoked per iteration.
|
|
1091
|
-
* @param {Function} keysFunc The function to get the keys of `object`.
|
|
1092
|
-
* @returns {Object} Returns `object`.
|
|
1093
|
-
*/
|
|
1094
|
-
var baseFor$1 = createBaseFor();
|
|
1095
|
-
module.exports = baseFor$1;
|
|
1096
|
-
} });
|
|
1097
|
-
|
|
1037
|
+
var require__baseFor = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1038
|
+
module.exports = require__createBaseFor()();
|
|
1039
|
+
}));
|
|
1098
1040
|
//#endregion
|
|
1099
1041
|
//#region ../../node_modules/lodash/_cloneBuffer.js
|
|
1100
|
-
var require__cloneBuffer =
|
|
1101
|
-
var root
|
|
1042
|
+
var require__cloneBuffer = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1043
|
+
var root = require__root();
|
|
1102
1044
|
/** Detect free variable `exports`. */
|
|
1103
|
-
var freeExports
|
|
1045
|
+
var freeExports = typeof exports == "object" && exports && !exports.nodeType && exports;
|
|
1104
1046
|
/** Detect free variable `module`. */
|
|
1105
|
-
var freeModule
|
|
1106
|
-
/** Detect the popular CommonJS extension `module.exports`. */
|
|
1107
|
-
var moduleExports$2 = freeModule$2 && freeModule$2.exports === freeExports$2;
|
|
1047
|
+
var freeModule = freeExports && typeof module == "object" && module && !module.nodeType && module;
|
|
1108
1048
|
/** Built-in value references. */
|
|
1109
|
-
var Buffer
|
|
1049
|
+
var Buffer = freeModule && freeModule.exports === freeExports ? root.Buffer : void 0;
|
|
1050
|
+
var allocUnsafe = Buffer ? Buffer.allocUnsafe : void 0;
|
|
1110
1051
|
/**
|
|
1111
1052
|
* Creates a clone of `buffer`.
|
|
1112
1053
|
*
|
|
@@ -1115,28 +1056,23 @@ var require__cloneBuffer = __commonJS({ "../../node_modules/lodash/_cloneBuffer.
|
|
|
1115
1056
|
* @param {boolean} [isDeep] Specify a deep clone.
|
|
1116
1057
|
* @returns {Buffer} Returns the cloned buffer.
|
|
1117
1058
|
*/
|
|
1118
|
-
function cloneBuffer
|
|
1059
|
+
function cloneBuffer(buffer, isDeep) {
|
|
1119
1060
|
if (isDeep) return buffer.slice();
|
|
1120
|
-
var length
|
|
1061
|
+
var length = buffer.length, result = allocUnsafe ? allocUnsafe(length) : new buffer.constructor(length);
|
|
1121
1062
|
buffer.copy(result);
|
|
1122
1063
|
return result;
|
|
1123
1064
|
}
|
|
1124
|
-
module.exports = cloneBuffer
|
|
1125
|
-
}
|
|
1126
|
-
|
|
1065
|
+
module.exports = cloneBuffer;
|
|
1066
|
+
}));
|
|
1127
1067
|
//#endregion
|
|
1128
1068
|
//#region ../../node_modules/lodash/_Uint8Array.js
|
|
1129
|
-
var require__Uint8Array =
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
var Uint8Array$2 = root$1.Uint8Array;
|
|
1133
|
-
module.exports = Uint8Array$2;
|
|
1134
|
-
} });
|
|
1135
|
-
|
|
1069
|
+
var require__Uint8Array = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1070
|
+
module.exports = require__root().Uint8Array;
|
|
1071
|
+
}));
|
|
1136
1072
|
//#endregion
|
|
1137
1073
|
//#region ../../node_modules/lodash/_cloneArrayBuffer.js
|
|
1138
|
-
var require__cloneArrayBuffer =
|
|
1139
|
-
var Uint8Array
|
|
1074
|
+
var require__cloneArrayBuffer = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1075
|
+
var Uint8Array = require__Uint8Array();
|
|
1140
1076
|
/**
|
|
1141
1077
|
* Creates a clone of `arrayBuffer`.
|
|
1142
1078
|
*
|
|
@@ -1144,17 +1080,16 @@ var require__cloneArrayBuffer = __commonJS({ "../../node_modules/lodash/_cloneAr
|
|
|
1144
1080
|
* @param {ArrayBuffer} arrayBuffer The array buffer to clone.
|
|
1145
1081
|
* @returns {ArrayBuffer} Returns the cloned array buffer.
|
|
1146
1082
|
*/
|
|
1147
|
-
function cloneArrayBuffer
|
|
1083
|
+
function cloneArrayBuffer(arrayBuffer) {
|
|
1148
1084
|
var result = new arrayBuffer.constructor(arrayBuffer.byteLength);
|
|
1149
|
-
new Uint8Array
|
|
1085
|
+
new Uint8Array(result).set(new Uint8Array(arrayBuffer));
|
|
1150
1086
|
return result;
|
|
1151
1087
|
}
|
|
1152
|
-
module.exports = cloneArrayBuffer
|
|
1153
|
-
}
|
|
1154
|
-
|
|
1088
|
+
module.exports = cloneArrayBuffer;
|
|
1089
|
+
}));
|
|
1155
1090
|
//#endregion
|
|
1156
1091
|
//#region ../../node_modules/lodash/_cloneTypedArray.js
|
|
1157
|
-
var require__cloneTypedArray =
|
|
1092
|
+
var require__cloneTypedArray = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1158
1093
|
var cloneArrayBuffer = require__cloneArrayBuffer();
|
|
1159
1094
|
/**
|
|
1160
1095
|
* Creates a clone of `typedArray`.
|
|
@@ -1164,16 +1099,15 @@ var require__cloneTypedArray = __commonJS({ "../../node_modules/lodash/_cloneTyp
|
|
|
1164
1099
|
* @param {boolean} [isDeep] Specify a deep clone.
|
|
1165
1100
|
* @returns {Object} Returns the cloned typed array.
|
|
1166
1101
|
*/
|
|
1167
|
-
function cloneTypedArray
|
|
1102
|
+
function cloneTypedArray(typedArray, isDeep) {
|
|
1168
1103
|
var buffer = isDeep ? cloneArrayBuffer(typedArray.buffer) : typedArray.buffer;
|
|
1169
1104
|
return new typedArray.constructor(buffer, typedArray.byteOffset, typedArray.length);
|
|
1170
1105
|
}
|
|
1171
|
-
module.exports = cloneTypedArray
|
|
1172
|
-
}
|
|
1173
|
-
|
|
1106
|
+
module.exports = cloneTypedArray;
|
|
1107
|
+
}));
|
|
1174
1108
|
//#endregion
|
|
1175
1109
|
//#region ../../node_modules/lodash/_copyArray.js
|
|
1176
|
-
var require__copyArray =
|
|
1110
|
+
var require__copyArray = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1177
1111
|
/**
|
|
1178
1112
|
* Copies the values of `source` to `array`.
|
|
1179
1113
|
*
|
|
@@ -1182,33 +1116,24 @@ var require__copyArray = __commonJS({ "../../node_modules/lodash/_copyArray.js"(
|
|
|
1182
1116
|
* @param {Array} [array=[]] The array to copy values to.
|
|
1183
1117
|
* @returns {Array} Returns `array`.
|
|
1184
1118
|
*/
|
|
1185
|
-
function copyArray
|
|
1186
|
-
var index = -1, length
|
|
1187
|
-
array || (array = Array(length
|
|
1188
|
-
while (++index < length
|
|
1119
|
+
function copyArray(source, array) {
|
|
1120
|
+
var index = -1, length = source.length;
|
|
1121
|
+
array || (array = Array(length));
|
|
1122
|
+
while (++index < length) array[index] = source[index];
|
|
1189
1123
|
return array;
|
|
1190
1124
|
}
|
|
1191
|
-
module.exports = copyArray
|
|
1192
|
-
}
|
|
1193
|
-
|
|
1125
|
+
module.exports = copyArray;
|
|
1126
|
+
}));
|
|
1194
1127
|
//#endregion
|
|
1195
1128
|
//#region ../../node_modules/lodash/_baseCreate.js
|
|
1196
|
-
var require__baseCreate =
|
|
1197
|
-
var isObject
|
|
1129
|
+
var require__baseCreate = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1130
|
+
var isObject = require_isObject();
|
|
1198
1131
|
/** Built-in value references. */
|
|
1199
1132
|
var objectCreate = Object.create;
|
|
1200
|
-
|
|
1201
|
-
* The base implementation of `_.create` without support for assigning
|
|
1202
|
-
* properties to the created object.
|
|
1203
|
-
*
|
|
1204
|
-
* @private
|
|
1205
|
-
* @param {Object} proto The object to inherit from.
|
|
1206
|
-
* @returns {Object} Returns the new object.
|
|
1207
|
-
*/
|
|
1208
|
-
var baseCreate$1 = function() {
|
|
1133
|
+
module.exports = function() {
|
|
1209
1134
|
function object() {}
|
|
1210
1135
|
return function(proto) {
|
|
1211
|
-
if (!isObject
|
|
1136
|
+
if (!isObject(proto)) return {};
|
|
1212
1137
|
if (objectCreate) return objectCreate(proto);
|
|
1213
1138
|
object.prototype = proto;
|
|
1214
1139
|
var result = new object();
|
|
@@ -1216,12 +1141,10 @@ var require__baseCreate = __commonJS({ "../../node_modules/lodash/_baseCreate.js
|
|
|
1216
1141
|
return result;
|
|
1217
1142
|
};
|
|
1218
1143
|
}();
|
|
1219
|
-
|
|
1220
|
-
} });
|
|
1221
|
-
|
|
1144
|
+
}));
|
|
1222
1145
|
//#endregion
|
|
1223
1146
|
//#region ../../node_modules/lodash/_overArg.js
|
|
1224
|
-
var require__overArg =
|
|
1147
|
+
var require__overArg = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1225
1148
|
/**
|
|
1226
1149
|
* Creates a unary function that invokes `func` with its argument transformed.
|
|
1227
1150
|
*
|
|
@@ -1230,28 +1153,23 @@ var require__overArg = __commonJS({ "../../node_modules/lodash/_overArg.js"(expo
|
|
|
1230
1153
|
* @param {Function} transform The argument transform.
|
|
1231
1154
|
* @returns {Function} Returns the new function.
|
|
1232
1155
|
*/
|
|
1233
|
-
function overArg
|
|
1156
|
+
function overArg(func, transform) {
|
|
1234
1157
|
return function(arg) {
|
|
1235
1158
|
return func(transform(arg));
|
|
1236
1159
|
};
|
|
1237
1160
|
}
|
|
1238
|
-
module.exports = overArg
|
|
1239
|
-
}
|
|
1240
|
-
|
|
1161
|
+
module.exports = overArg;
|
|
1162
|
+
}));
|
|
1241
1163
|
//#endregion
|
|
1242
1164
|
//#region ../../node_modules/lodash/_getPrototype.js
|
|
1243
|
-
var require__getPrototype =
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
var getPrototype$2 = overArg(Object.getPrototypeOf, Object);
|
|
1247
|
-
module.exports = getPrototype$2;
|
|
1248
|
-
} });
|
|
1249
|
-
|
|
1165
|
+
var require__getPrototype = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1166
|
+
module.exports = require__overArg()(Object.getPrototypeOf, Object);
|
|
1167
|
+
}));
|
|
1250
1168
|
//#endregion
|
|
1251
1169
|
//#region ../../node_modules/lodash/_isPrototype.js
|
|
1252
|
-
var require__isPrototype =
|
|
1170
|
+
var require__isPrototype = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1253
1171
|
/** Used for built-in method references. */
|
|
1254
|
-
var objectProto
|
|
1172
|
+
var objectProto = Object.prototype;
|
|
1255
1173
|
/**
|
|
1256
1174
|
* Checks if `value` is likely a prototype object.
|
|
1257
1175
|
*
|
|
@@ -1259,17 +1177,18 @@ var require__isPrototype = __commonJS({ "../../node_modules/lodash/_isPrototype.
|
|
|
1259
1177
|
* @param {*} value The value to check.
|
|
1260
1178
|
* @returns {boolean} Returns `true` if `value` is a prototype, else `false`.
|
|
1261
1179
|
*/
|
|
1262
|
-
function isPrototype
|
|
1263
|
-
var Ctor = value && value.constructor
|
|
1264
|
-
return value ===
|
|
1180
|
+
function isPrototype(value) {
|
|
1181
|
+
var Ctor = value && value.constructor;
|
|
1182
|
+
return value === (typeof Ctor == "function" && Ctor.prototype || objectProto);
|
|
1265
1183
|
}
|
|
1266
|
-
module.exports = isPrototype
|
|
1267
|
-
}
|
|
1268
|
-
|
|
1184
|
+
module.exports = isPrototype;
|
|
1185
|
+
}));
|
|
1269
1186
|
//#endregion
|
|
1270
1187
|
//#region ../../node_modules/lodash/_initCloneObject.js
|
|
1271
|
-
var require__initCloneObject =
|
|
1272
|
-
var baseCreate = require__baseCreate()
|
|
1188
|
+
var require__initCloneObject = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1189
|
+
var baseCreate = require__baseCreate();
|
|
1190
|
+
var getPrototype = require__getPrototype();
|
|
1191
|
+
var isPrototype = require__isPrototype();
|
|
1273
1192
|
/**
|
|
1274
1193
|
* Initializes an object clone.
|
|
1275
1194
|
*
|
|
@@ -1277,15 +1196,14 @@ var require__initCloneObject = __commonJS({ "../../node_modules/lodash/_initClon
|
|
|
1277
1196
|
* @param {Object} object The object to clone.
|
|
1278
1197
|
* @returns {Object} Returns the initialized clone.
|
|
1279
1198
|
*/
|
|
1280
|
-
function initCloneObject
|
|
1281
|
-
return typeof object.constructor == "function" && !isPrototype
|
|
1199
|
+
function initCloneObject(object) {
|
|
1200
|
+
return typeof object.constructor == "function" && !isPrototype(object) ? baseCreate(getPrototype(object)) : {};
|
|
1282
1201
|
}
|
|
1283
|
-
module.exports = initCloneObject
|
|
1284
|
-
}
|
|
1285
|
-
|
|
1202
|
+
module.exports = initCloneObject;
|
|
1203
|
+
}));
|
|
1286
1204
|
//#endregion
|
|
1287
1205
|
//#region ../../node_modules/lodash/isObjectLike.js
|
|
1288
|
-
var require_isObjectLike =
|
|
1206
|
+
var require_isObjectLike = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1289
1207
|
/**
|
|
1290
1208
|
* Checks if `value` is object-like. A value is object-like if it's not `null`
|
|
1291
1209
|
* and has a `typeof` result of "object".
|
|
@@ -1310,18 +1228,18 @@ var require_isObjectLike = __commonJS({ "../../node_modules/lodash/isObjectLike.
|
|
|
1310
1228
|
* _.isObjectLike(null);
|
|
1311
1229
|
* // => false
|
|
1312
1230
|
*/
|
|
1313
|
-
function isObjectLike
|
|
1231
|
+
function isObjectLike(value) {
|
|
1314
1232
|
return value != null && typeof value == "object";
|
|
1315
1233
|
}
|
|
1316
|
-
module.exports = isObjectLike
|
|
1317
|
-
}
|
|
1318
|
-
|
|
1234
|
+
module.exports = isObjectLike;
|
|
1235
|
+
}));
|
|
1319
1236
|
//#endregion
|
|
1320
1237
|
//#region ../../node_modules/lodash/_baseIsArguments.js
|
|
1321
|
-
var require__baseIsArguments =
|
|
1322
|
-
var baseGetTag
|
|
1238
|
+
var require__baseIsArguments = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1239
|
+
var baseGetTag = require__baseGetTag();
|
|
1240
|
+
var isObjectLike = require_isObjectLike();
|
|
1323
1241
|
/** `Object#toString` result references. */
|
|
1324
|
-
var argsTag
|
|
1242
|
+
var argsTag = "[object Arguments]";
|
|
1325
1243
|
/**
|
|
1326
1244
|
* The base implementation of `_.isArguments`.
|
|
1327
1245
|
*
|
|
@@ -1329,83 +1247,38 @@ var require__baseIsArguments = __commonJS({ "../../node_modules/lodash/_baseIsAr
|
|
|
1329
1247
|
* @param {*} value The value to check.
|
|
1330
1248
|
* @returns {boolean} Returns `true` if `value` is an `arguments` object,
|
|
1331
1249
|
*/
|
|
1332
|
-
function baseIsArguments
|
|
1333
|
-
return isObjectLike
|
|
1250
|
+
function baseIsArguments(value) {
|
|
1251
|
+
return isObjectLike(value) && baseGetTag(value) == argsTag;
|
|
1334
1252
|
}
|
|
1335
|
-
module.exports = baseIsArguments
|
|
1336
|
-
}
|
|
1337
|
-
|
|
1253
|
+
module.exports = baseIsArguments;
|
|
1254
|
+
}));
|
|
1338
1255
|
//#endregion
|
|
1339
1256
|
//#region ../../node_modules/lodash/isArguments.js
|
|
1340
|
-
var require_isArguments =
|
|
1341
|
-
var baseIsArguments = require__baseIsArguments()
|
|
1257
|
+
var require_isArguments = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1258
|
+
var baseIsArguments = require__baseIsArguments();
|
|
1259
|
+
var isObjectLike = require_isObjectLike();
|
|
1342
1260
|
/** Used for built-in method references. */
|
|
1343
|
-
var objectProto
|
|
1261
|
+
var objectProto = Object.prototype;
|
|
1344
1262
|
/** Used to check objects for own properties. */
|
|
1345
|
-
var hasOwnProperty
|
|
1263
|
+
var hasOwnProperty = objectProto.hasOwnProperty;
|
|
1346
1264
|
/** Built-in value references. */
|
|
1347
|
-
var propertyIsEnumerable = objectProto
|
|
1348
|
-
|
|
1349
|
-
* Checks if `value` is likely an `arguments` object.
|
|
1350
|
-
*
|
|
1351
|
-
* @static
|
|
1352
|
-
* @memberOf _
|
|
1353
|
-
* @since 0.1.0
|
|
1354
|
-
* @category Lang
|
|
1355
|
-
* @param {*} value The value to check.
|
|
1356
|
-
* @returns {boolean} Returns `true` if `value` is an `arguments` object,
|
|
1357
|
-
* else `false`.
|
|
1358
|
-
* @example
|
|
1359
|
-
*
|
|
1360
|
-
* _.isArguments(function() { return arguments; }());
|
|
1361
|
-
* // => true
|
|
1362
|
-
*
|
|
1363
|
-
* _.isArguments([1, 2, 3]);
|
|
1364
|
-
* // => false
|
|
1365
|
-
*/
|
|
1366
|
-
var isArguments$2 = baseIsArguments(function() {
|
|
1265
|
+
var propertyIsEnumerable = objectProto.propertyIsEnumerable;
|
|
1266
|
+
module.exports = baseIsArguments(function() {
|
|
1367
1267
|
return arguments;
|
|
1368
1268
|
}()) ? baseIsArguments : function(value) {
|
|
1369
|
-
return isObjectLike
|
|
1269
|
+
return isObjectLike(value) && hasOwnProperty.call(value, "callee") && !propertyIsEnumerable.call(value, "callee");
|
|
1370
1270
|
};
|
|
1371
|
-
|
|
1372
|
-
} });
|
|
1373
|
-
|
|
1271
|
+
}));
|
|
1374
1272
|
//#endregion
|
|
1375
1273
|
//#region ../../node_modules/lodash/isArray.js
|
|
1376
|
-
var require_isArray =
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
*
|
|
1380
|
-
* @static
|
|
1381
|
-
* @memberOf _
|
|
1382
|
-
* @since 0.1.0
|
|
1383
|
-
* @category Lang
|
|
1384
|
-
* @param {*} value The value to check.
|
|
1385
|
-
* @returns {boolean} Returns `true` if `value` is an array, else `false`.
|
|
1386
|
-
* @example
|
|
1387
|
-
*
|
|
1388
|
-
* _.isArray([1, 2, 3]);
|
|
1389
|
-
* // => true
|
|
1390
|
-
*
|
|
1391
|
-
* _.isArray(document.body.children);
|
|
1392
|
-
* // => false
|
|
1393
|
-
*
|
|
1394
|
-
* _.isArray('abc');
|
|
1395
|
-
* // => false
|
|
1396
|
-
*
|
|
1397
|
-
* _.isArray(_.noop);
|
|
1398
|
-
* // => false
|
|
1399
|
-
*/
|
|
1400
|
-
var isArray$4 = Array.isArray;
|
|
1401
|
-
module.exports = isArray$4;
|
|
1402
|
-
} });
|
|
1403
|
-
|
|
1274
|
+
var require_isArray = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1275
|
+
module.exports = Array.isArray;
|
|
1276
|
+
}));
|
|
1404
1277
|
//#endregion
|
|
1405
1278
|
//#region ../../node_modules/lodash/isLength.js
|
|
1406
|
-
var require_isLength =
|
|
1279
|
+
var require_isLength = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1407
1280
|
/** Used as references for various `Number` constants. */
|
|
1408
|
-
var MAX_SAFE_INTEGER
|
|
1281
|
+
var MAX_SAFE_INTEGER = 9007199254740991;
|
|
1409
1282
|
/**
|
|
1410
1283
|
* Checks if `value` is a valid array-like length.
|
|
1411
1284
|
*
|
|
@@ -1432,16 +1305,16 @@ var require_isLength = __commonJS({ "../../node_modules/lodash/isLength.js"(expo
|
|
|
1432
1305
|
* _.isLength('3');
|
|
1433
1306
|
* // => false
|
|
1434
1307
|
*/
|
|
1435
|
-
function isLength
|
|
1436
|
-
return typeof value == "number" && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER
|
|
1308
|
+
function isLength(value) {
|
|
1309
|
+
return typeof value == "number" && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
|
|
1437
1310
|
}
|
|
1438
|
-
module.exports = isLength
|
|
1439
|
-
}
|
|
1440
|
-
|
|
1311
|
+
module.exports = isLength;
|
|
1312
|
+
}));
|
|
1441
1313
|
//#endregion
|
|
1442
1314
|
//#region ../../node_modules/lodash/isArrayLike.js
|
|
1443
|
-
var require_isArrayLike =
|
|
1444
|
-
var isFunction
|
|
1315
|
+
var require_isArrayLike = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1316
|
+
var isFunction = require_isFunction();
|
|
1317
|
+
var isLength = require_isLength();
|
|
1445
1318
|
/**
|
|
1446
1319
|
* Checks if `value` is array-like. A value is considered array-like if it's
|
|
1447
1320
|
* not a function and has a `value.length` that's an integer greater than or
|
|
@@ -1467,16 +1340,16 @@ var require_isArrayLike = __commonJS({ "../../node_modules/lodash/isArrayLike.js
|
|
|
1467
1340
|
* _.isArrayLike(_.noop);
|
|
1468
1341
|
* // => false
|
|
1469
1342
|
*/
|
|
1470
|
-
function isArrayLike
|
|
1471
|
-
return value != null && isLength
|
|
1343
|
+
function isArrayLike(value) {
|
|
1344
|
+
return value != null && isLength(value.length) && !isFunction(value);
|
|
1472
1345
|
}
|
|
1473
|
-
module.exports = isArrayLike
|
|
1474
|
-
}
|
|
1475
|
-
|
|
1346
|
+
module.exports = isArrayLike;
|
|
1347
|
+
}));
|
|
1476
1348
|
//#endregion
|
|
1477
1349
|
//#region ../../node_modules/lodash/isArrayLikeObject.js
|
|
1478
|
-
var require_isArrayLikeObject =
|
|
1479
|
-
var isArrayLike
|
|
1350
|
+
var require_isArrayLikeObject = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1351
|
+
var isArrayLike = require_isArrayLike();
|
|
1352
|
+
var isObjectLike = require_isObjectLike();
|
|
1480
1353
|
/**
|
|
1481
1354
|
* This method is like `_.isArrayLike` except that it also checks if `value`
|
|
1482
1355
|
* is an object.
|
|
@@ -1502,15 +1375,14 @@ var require_isArrayLikeObject = __commonJS({ "../../node_modules/lodash/isArrayL
|
|
|
1502
1375
|
* _.isArrayLikeObject(_.noop);
|
|
1503
1376
|
* // => false
|
|
1504
1377
|
*/
|
|
1505
|
-
function isArrayLikeObject
|
|
1506
|
-
return isObjectLike
|
|
1378
|
+
function isArrayLikeObject(value) {
|
|
1379
|
+
return isObjectLike(value) && isArrayLike(value);
|
|
1507
1380
|
}
|
|
1508
|
-
module.exports = isArrayLikeObject
|
|
1509
|
-
}
|
|
1510
|
-
|
|
1381
|
+
module.exports = isArrayLikeObject;
|
|
1382
|
+
}));
|
|
1511
1383
|
//#endregion
|
|
1512
1384
|
//#region ../../node_modules/lodash/stubFalse.js
|
|
1513
|
-
var require_stubFalse =
|
|
1385
|
+
var require_stubFalse = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1514
1386
|
/**
|
|
1515
1387
|
* This method returns `false`.
|
|
1516
1388
|
*
|
|
@@ -1524,58 +1396,39 @@ var require_stubFalse = __commonJS({ "../../node_modules/lodash/stubFalse.js"(ex
|
|
|
1524
1396
|
* _.times(2, _.stubFalse);
|
|
1525
1397
|
* // => [false, false]
|
|
1526
1398
|
*/
|
|
1527
|
-
function stubFalse
|
|
1399
|
+
function stubFalse() {
|
|
1528
1400
|
return false;
|
|
1529
1401
|
}
|
|
1530
|
-
module.exports = stubFalse
|
|
1531
|
-
}
|
|
1532
|
-
|
|
1402
|
+
module.exports = stubFalse;
|
|
1403
|
+
}));
|
|
1533
1404
|
//#endregion
|
|
1534
1405
|
//#region ../../node_modules/lodash/isBuffer.js
|
|
1535
|
-
var require_isBuffer =
|
|
1536
|
-
var root = require__root()
|
|
1406
|
+
var require_isBuffer = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1407
|
+
var root = require__root();
|
|
1408
|
+
var stubFalse = require_stubFalse();
|
|
1537
1409
|
/** Detect free variable `exports`. */
|
|
1538
|
-
var freeExports
|
|
1410
|
+
var freeExports = typeof exports == "object" && exports && !exports.nodeType && exports;
|
|
1539
1411
|
/** Detect free variable `module`. */
|
|
1540
|
-
var freeModule
|
|
1541
|
-
/** Detect the popular CommonJS extension `module.exports`. */
|
|
1542
|
-
var moduleExports$1 = freeModule$1 && freeModule$1.exports === freeExports$1;
|
|
1412
|
+
var freeModule = freeExports && typeof module == "object" && module && !module.nodeType && module;
|
|
1543
1413
|
/** Built-in value references. */
|
|
1544
|
-
var Buffer
|
|
1545
|
-
|
|
1546
|
-
|
|
1547
|
-
* Checks if `value` is a buffer.
|
|
1548
|
-
*
|
|
1549
|
-
* @static
|
|
1550
|
-
* @memberOf _
|
|
1551
|
-
* @since 4.3.0
|
|
1552
|
-
* @category Lang
|
|
1553
|
-
* @param {*} value The value to check.
|
|
1554
|
-
* @returns {boolean} Returns `true` if `value` is a buffer, else `false`.
|
|
1555
|
-
* @example
|
|
1556
|
-
*
|
|
1557
|
-
* _.isBuffer(new Buffer(2));
|
|
1558
|
-
* // => true
|
|
1559
|
-
*
|
|
1560
|
-
* _.isBuffer(new Uint8Array(2));
|
|
1561
|
-
* // => false
|
|
1562
|
-
*/
|
|
1563
|
-
var isBuffer$2 = nativeIsBuffer || stubFalse;
|
|
1564
|
-
module.exports = isBuffer$2;
|
|
1565
|
-
} });
|
|
1566
|
-
|
|
1414
|
+
var Buffer = freeModule && freeModule.exports === freeExports ? root.Buffer : void 0;
|
|
1415
|
+
module.exports = (Buffer ? Buffer.isBuffer : void 0) || stubFalse;
|
|
1416
|
+
}));
|
|
1567
1417
|
//#endregion
|
|
1568
1418
|
//#region ../../node_modules/lodash/isPlainObject.js
|
|
1569
|
-
var require_isPlainObject =
|
|
1570
|
-
var baseGetTag
|
|
1419
|
+
var require_isPlainObject = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1420
|
+
var baseGetTag = require__baseGetTag();
|
|
1421
|
+
var getPrototype = require__getPrototype();
|
|
1422
|
+
var isObjectLike = require_isObjectLike();
|
|
1571
1423
|
/** `Object#toString` result references. */
|
|
1572
|
-
var objectTag
|
|
1424
|
+
var objectTag = "[object Object]";
|
|
1573
1425
|
/** Used for built-in method references. */
|
|
1574
|
-
var funcProto = Function.prototype
|
|
1426
|
+
var funcProto = Function.prototype;
|
|
1427
|
+
var objectProto = Object.prototype;
|
|
1575
1428
|
/** Used to resolve the decompiled source of functions. */
|
|
1576
1429
|
var funcToString = funcProto.toString;
|
|
1577
1430
|
/** Used to check objects for own properties. */
|
|
1578
|
-
var hasOwnProperty
|
|
1431
|
+
var hasOwnProperty = objectProto.hasOwnProperty;
|
|
1579
1432
|
/** Used to infer the `Object` constructor. */
|
|
1580
1433
|
var objectCtorString = funcToString.call(Object);
|
|
1581
1434
|
/**
|
|
@@ -1606,23 +1459,46 @@ var require_isPlainObject = __commonJS({ "../../node_modules/lodash/isPlainObjec
|
|
|
1606
1459
|
* _.isPlainObject(Object.create(null));
|
|
1607
1460
|
* // => true
|
|
1608
1461
|
*/
|
|
1609
|
-
function isPlainObject
|
|
1610
|
-
if (!isObjectLike
|
|
1462
|
+
function isPlainObject(value) {
|
|
1463
|
+
if (!isObjectLike(value) || baseGetTag(value) != objectTag) return false;
|
|
1611
1464
|
var proto = getPrototype(value);
|
|
1612
1465
|
if (proto === null) return true;
|
|
1613
|
-
var Ctor = hasOwnProperty
|
|
1466
|
+
var Ctor = hasOwnProperty.call(proto, "constructor") && proto.constructor;
|
|
1614
1467
|
return typeof Ctor == "function" && Ctor instanceof Ctor && funcToString.call(Ctor) == objectCtorString;
|
|
1615
1468
|
}
|
|
1616
|
-
module.exports = isPlainObject
|
|
1617
|
-
}
|
|
1618
|
-
|
|
1469
|
+
module.exports = isPlainObject;
|
|
1470
|
+
}));
|
|
1619
1471
|
//#endregion
|
|
1620
1472
|
//#region ../../node_modules/lodash/_baseIsTypedArray.js
|
|
1621
|
-
var require__baseIsTypedArray =
|
|
1622
|
-
var baseGetTag = require__baseGetTag()
|
|
1473
|
+
var require__baseIsTypedArray = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1474
|
+
var baseGetTag = require__baseGetTag();
|
|
1475
|
+
var isLength = require_isLength();
|
|
1476
|
+
var isObjectLike = require_isObjectLike();
|
|
1623
1477
|
/** `Object#toString` result references. */
|
|
1624
|
-
var argsTag = "[object Arguments]"
|
|
1625
|
-
var
|
|
1478
|
+
var argsTag = "[object Arguments]";
|
|
1479
|
+
var arrayTag = "[object Array]";
|
|
1480
|
+
var boolTag = "[object Boolean]";
|
|
1481
|
+
var dateTag = "[object Date]";
|
|
1482
|
+
var errorTag = "[object Error]";
|
|
1483
|
+
var funcTag = "[object Function]";
|
|
1484
|
+
var mapTag = "[object Map]";
|
|
1485
|
+
var numberTag = "[object Number]";
|
|
1486
|
+
var objectTag = "[object Object]";
|
|
1487
|
+
var regexpTag = "[object RegExp]";
|
|
1488
|
+
var setTag = "[object Set]";
|
|
1489
|
+
var stringTag = "[object String]";
|
|
1490
|
+
var weakMapTag = "[object WeakMap]";
|
|
1491
|
+
var arrayBufferTag = "[object ArrayBuffer]";
|
|
1492
|
+
var dataViewTag = "[object DataView]";
|
|
1493
|
+
var float32Tag = "[object Float32Array]";
|
|
1494
|
+
var float64Tag = "[object Float64Array]";
|
|
1495
|
+
var int8Tag = "[object Int8Array]";
|
|
1496
|
+
var int16Tag = "[object Int16Array]";
|
|
1497
|
+
var int32Tag = "[object Int32Array]";
|
|
1498
|
+
var uint8Tag = "[object Uint8Array]";
|
|
1499
|
+
var uint8ClampedTag = "[object Uint8ClampedArray]";
|
|
1500
|
+
var uint16Tag = "[object Uint16Array]";
|
|
1501
|
+
var uint32Tag = "[object Uint32Array]";
|
|
1626
1502
|
/** Used to identify `toStringTag` values of typed arrays. */
|
|
1627
1503
|
var typedArrayTags = {};
|
|
1628
1504
|
typedArrayTags[float32Tag] = typedArrayTags[float64Tag] = typedArrayTags[int8Tag] = typedArrayTags[int16Tag] = typedArrayTags[int32Tag] = typedArrayTags[uint8Tag] = typedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] = typedArrayTags[uint32Tag] = true;
|
|
@@ -1634,15 +1510,14 @@ var require__baseIsTypedArray = __commonJS({ "../../node_modules/lodash/_baseIsT
|
|
|
1634
1510
|
* @param {*} value The value to check.
|
|
1635
1511
|
* @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
|
|
1636
1512
|
*/
|
|
1637
|
-
function baseIsTypedArray
|
|
1513
|
+
function baseIsTypedArray(value) {
|
|
1638
1514
|
return isObjectLike(value) && isLength(value.length) && !!typedArrayTags[baseGetTag(value)];
|
|
1639
1515
|
}
|
|
1640
|
-
module.exports = baseIsTypedArray
|
|
1641
|
-
}
|
|
1642
|
-
|
|
1516
|
+
module.exports = baseIsTypedArray;
|
|
1517
|
+
}));
|
|
1643
1518
|
//#endregion
|
|
1644
1519
|
//#region ../../node_modules/lodash/_baseUnary.js
|
|
1645
|
-
var require__baseUnary =
|
|
1520
|
+
var require__baseUnary = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1646
1521
|
/**
|
|
1647
1522
|
* The base implementation of `_.unary` without support for storing metadata.
|
|
1648
1523
|
*
|
|
@@ -1650,66 +1525,43 @@ var require__baseUnary = __commonJS({ "../../node_modules/lodash/_baseUnary.js"(
|
|
|
1650
1525
|
* @param {Function} func The function to cap arguments for.
|
|
1651
1526
|
* @returns {Function} Returns the new capped function.
|
|
1652
1527
|
*/
|
|
1653
|
-
function baseUnary
|
|
1528
|
+
function baseUnary(func) {
|
|
1654
1529
|
return function(value) {
|
|
1655
1530
|
return func(value);
|
|
1656
1531
|
};
|
|
1657
1532
|
}
|
|
1658
|
-
module.exports = baseUnary
|
|
1659
|
-
}
|
|
1660
|
-
|
|
1533
|
+
module.exports = baseUnary;
|
|
1534
|
+
}));
|
|
1661
1535
|
//#endregion
|
|
1662
1536
|
//#region ../../node_modules/lodash/_nodeUtil.js
|
|
1663
|
-
var require__nodeUtil =
|
|
1537
|
+
var require__nodeUtil = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1664
1538
|
var freeGlobal = require__freeGlobal();
|
|
1665
1539
|
/** Detect free variable `exports`. */
|
|
1666
1540
|
var freeExports = typeof exports == "object" && exports && !exports.nodeType && exports;
|
|
1667
1541
|
/** Detect free variable `module`. */
|
|
1668
1542
|
var freeModule = freeExports && typeof module == "object" && module && !module.nodeType && module;
|
|
1669
|
-
/** Detect the popular CommonJS extension `module.exports`. */
|
|
1670
|
-
var moduleExports = freeModule && freeModule.exports === freeExports;
|
|
1671
1543
|
/** Detect free variable `process` from Node.js. */
|
|
1672
|
-
var freeProcess =
|
|
1673
|
-
|
|
1674
|
-
var nodeUtil$1 = function() {
|
|
1544
|
+
var freeProcess = freeModule && freeModule.exports === freeExports && freeGlobal.process;
|
|
1545
|
+
module.exports = function() {
|
|
1675
1546
|
try {
|
|
1676
1547
|
var types = freeModule && freeModule.require && freeModule.require("util").types;
|
|
1677
1548
|
if (types) return types;
|
|
1678
1549
|
return freeProcess && freeProcess.binding && freeProcess.binding("util");
|
|
1679
1550
|
} catch (e) {}
|
|
1680
1551
|
}();
|
|
1681
|
-
|
|
1682
|
-
} });
|
|
1683
|
-
|
|
1552
|
+
}));
|
|
1684
1553
|
//#endregion
|
|
1685
1554
|
//#region ../../node_modules/lodash/isTypedArray.js
|
|
1686
|
-
var require_isTypedArray =
|
|
1687
|
-
var baseIsTypedArray = require__baseIsTypedArray()
|
|
1555
|
+
var require_isTypedArray = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1556
|
+
var baseIsTypedArray = require__baseIsTypedArray();
|
|
1557
|
+
var baseUnary = require__baseUnary();
|
|
1558
|
+
var nodeUtil = require__nodeUtil();
|
|
1688
1559
|
var nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;
|
|
1689
|
-
|
|
1690
|
-
|
|
1691
|
-
*
|
|
1692
|
-
* @static
|
|
1693
|
-
* @memberOf _
|
|
1694
|
-
* @since 3.0.0
|
|
1695
|
-
* @category Lang
|
|
1696
|
-
* @param {*} value The value to check.
|
|
1697
|
-
* @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
|
|
1698
|
-
* @example
|
|
1699
|
-
*
|
|
1700
|
-
* _.isTypedArray(new Uint8Array);
|
|
1701
|
-
* // => true
|
|
1702
|
-
*
|
|
1703
|
-
* _.isTypedArray([]);
|
|
1704
|
-
* // => false
|
|
1705
|
-
*/
|
|
1706
|
-
var isTypedArray$2 = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;
|
|
1707
|
-
module.exports = isTypedArray$2;
|
|
1708
|
-
} });
|
|
1709
|
-
|
|
1560
|
+
module.exports = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;
|
|
1561
|
+
}));
|
|
1710
1562
|
//#endregion
|
|
1711
1563
|
//#region ../../node_modules/lodash/_safeGet.js
|
|
1712
|
-
var require__safeGet =
|
|
1564
|
+
var require__safeGet = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1713
1565
|
/**
|
|
1714
1566
|
* Gets the value at `key`, unless `key` is "__proto__" or "constructor".
|
|
1715
1567
|
*
|
|
@@ -1718,22 +1570,20 @@ var require__safeGet = __commonJS({ "../../node_modules/lodash/_safeGet.js"(expo
|
|
|
1718
1570
|
* @param {string} key The key of the property to get.
|
|
1719
1571
|
* @returns {*} Returns the property value.
|
|
1720
1572
|
*/
|
|
1721
|
-
function safeGet
|
|
1573
|
+
function safeGet(object, key) {
|
|
1722
1574
|
if (key === "constructor" && typeof object[key] === "function") return;
|
|
1723
1575
|
if (key == "__proto__") return;
|
|
1724
1576
|
return object[key];
|
|
1725
1577
|
}
|
|
1726
|
-
module.exports = safeGet
|
|
1727
|
-
}
|
|
1728
|
-
|
|
1578
|
+
module.exports = safeGet;
|
|
1579
|
+
}));
|
|
1729
1580
|
//#endregion
|
|
1730
1581
|
//#region ../../node_modules/lodash/_assignValue.js
|
|
1731
|
-
var require__assignValue =
|
|
1732
|
-
var baseAssignValue
|
|
1733
|
-
|
|
1734
|
-
var objectProto$2 = Object.prototype;
|
|
1582
|
+
var require__assignValue = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1583
|
+
var baseAssignValue = require__baseAssignValue();
|
|
1584
|
+
var eq = require_eq();
|
|
1735
1585
|
/** Used to check objects for own properties. */
|
|
1736
|
-
var hasOwnProperty
|
|
1586
|
+
var hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
1737
1587
|
/**
|
|
1738
1588
|
* Assigns `value` to `key` of `object` if the existing value is not equivalent
|
|
1739
1589
|
* using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
|
|
@@ -1744,17 +1594,17 @@ var require__assignValue = __commonJS({ "../../node_modules/lodash/_assignValue.
|
|
|
1744
1594
|
* @param {string} key The key of the property to assign.
|
|
1745
1595
|
* @param {*} value The value to assign.
|
|
1746
1596
|
*/
|
|
1747
|
-
function assignValue
|
|
1597
|
+
function assignValue(object, key, value) {
|
|
1748
1598
|
var objValue = object[key];
|
|
1749
|
-
if (!(hasOwnProperty
|
|
1599
|
+
if (!(hasOwnProperty.call(object, key) && eq(objValue, value)) || value === void 0 && !(key in object)) baseAssignValue(object, key, value);
|
|
1750
1600
|
}
|
|
1751
|
-
module.exports = assignValue
|
|
1752
|
-
}
|
|
1753
|
-
|
|
1601
|
+
module.exports = assignValue;
|
|
1602
|
+
}));
|
|
1754
1603
|
//#endregion
|
|
1755
1604
|
//#region ../../node_modules/lodash/_copyObject.js
|
|
1756
|
-
var require__copyObject =
|
|
1757
|
-
var assignValue = require__assignValue()
|
|
1605
|
+
var require__copyObject = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1606
|
+
var assignValue = require__assignValue();
|
|
1607
|
+
var baseAssignValue = require__baseAssignValue();
|
|
1758
1608
|
/**
|
|
1759
1609
|
* Copies properties of `source` to `object`.
|
|
1760
1610
|
*
|
|
@@ -1765,11 +1615,11 @@ var require__copyObject = __commonJS({ "../../node_modules/lodash/_copyObject.js
|
|
|
1765
1615
|
* @param {Function} [customizer] The function to customize copied values.
|
|
1766
1616
|
* @returns {Object} Returns `object`.
|
|
1767
1617
|
*/
|
|
1768
|
-
function copyObject
|
|
1618
|
+
function copyObject(source, props, object, customizer) {
|
|
1769
1619
|
var isNew = !object;
|
|
1770
1620
|
object || (object = {});
|
|
1771
|
-
var index = -1, length
|
|
1772
|
-
while (++index < length
|
|
1621
|
+
var index = -1, length = props.length;
|
|
1622
|
+
while (++index < length) {
|
|
1773
1623
|
var key = props[index];
|
|
1774
1624
|
var newValue = customizer ? customizer(object[key], source[key], key, object, source) : void 0;
|
|
1775
1625
|
if (newValue === void 0) newValue = source[key];
|
|
@@ -1778,12 +1628,11 @@ var require__copyObject = __commonJS({ "../../node_modules/lodash/_copyObject.js
|
|
|
1778
1628
|
}
|
|
1779
1629
|
return object;
|
|
1780
1630
|
}
|
|
1781
|
-
module.exports = copyObject
|
|
1782
|
-
}
|
|
1783
|
-
|
|
1631
|
+
module.exports = copyObject;
|
|
1632
|
+
}));
|
|
1784
1633
|
//#endregion
|
|
1785
1634
|
//#region ../../node_modules/lodash/_baseTimes.js
|
|
1786
|
-
var require__baseTimes =
|
|
1635
|
+
var require__baseTimes = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1787
1636
|
/**
|
|
1788
1637
|
* The base implementation of `_.times` without support for iteratee shorthands
|
|
1789
1638
|
* or max array length checks.
|
|
@@ -1793,19 +1642,18 @@ var require__baseTimes = __commonJS({ "../../node_modules/lodash/_baseTimes.js"(
|
|
|
1793
1642
|
* @param {Function} iteratee The function invoked per iteration.
|
|
1794
1643
|
* @returns {Array} Returns the array of results.
|
|
1795
1644
|
*/
|
|
1796
|
-
function baseTimes
|
|
1645
|
+
function baseTimes(n, iteratee) {
|
|
1797
1646
|
var index = -1, result = Array(n);
|
|
1798
1647
|
while (++index < n) result[index] = iteratee(index);
|
|
1799
1648
|
return result;
|
|
1800
1649
|
}
|
|
1801
|
-
module.exports = baseTimes
|
|
1802
|
-
}
|
|
1803
|
-
|
|
1650
|
+
module.exports = baseTimes;
|
|
1651
|
+
}));
|
|
1804
1652
|
//#endregion
|
|
1805
1653
|
//#region ../../node_modules/lodash/_isIndex.js
|
|
1806
|
-
var require__isIndex =
|
|
1654
|
+
var require__isIndex = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1807
1655
|
/** Used as references for various `Number` constants. */
|
|
1808
|
-
var MAX_SAFE_INTEGER
|
|
1656
|
+
var MAX_SAFE_INTEGER = 9007199254740991;
|
|
1809
1657
|
/** Used to detect unsigned integer values. */
|
|
1810
1658
|
var reIsUint = /^(?:0|[1-9]\d*)$/;
|
|
1811
1659
|
/**
|
|
@@ -1816,22 +1664,24 @@ var require__isIndex = __commonJS({ "../../node_modules/lodash/_isIndex.js"(expo
|
|
|
1816
1664
|
* @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.
|
|
1817
1665
|
* @returns {boolean} Returns `true` if `value` is a valid index, else `false`.
|
|
1818
1666
|
*/
|
|
1819
|
-
function isIndex
|
|
1667
|
+
function isIndex(value, length) {
|
|
1820
1668
|
var type = typeof value;
|
|
1821
|
-
length
|
|
1822
|
-
return !!length
|
|
1669
|
+
length = length == null ? MAX_SAFE_INTEGER : length;
|
|
1670
|
+
return !!length && (type == "number" || type != "symbol" && reIsUint.test(value)) && value > -1 && value % 1 == 0 && value < length;
|
|
1823
1671
|
}
|
|
1824
|
-
module.exports = isIndex
|
|
1825
|
-
}
|
|
1826
|
-
|
|
1672
|
+
module.exports = isIndex;
|
|
1673
|
+
}));
|
|
1827
1674
|
//#endregion
|
|
1828
1675
|
//#region ../../node_modules/lodash/_arrayLikeKeys.js
|
|
1829
|
-
var require__arrayLikeKeys =
|
|
1830
|
-
var baseTimes = require__baseTimes()
|
|
1831
|
-
|
|
1832
|
-
var
|
|
1676
|
+
var require__arrayLikeKeys = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1677
|
+
var baseTimes = require__baseTimes();
|
|
1678
|
+
var isArguments = require_isArguments();
|
|
1679
|
+
var isArray = require_isArray();
|
|
1680
|
+
var isBuffer = require_isBuffer();
|
|
1681
|
+
var isIndex = require__isIndex();
|
|
1682
|
+
var isTypedArray = require_isTypedArray();
|
|
1833
1683
|
/** Used to check objects for own properties. */
|
|
1834
|
-
var hasOwnProperty
|
|
1684
|
+
var hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
1835
1685
|
/**
|
|
1836
1686
|
* Creates an array of the enumerable property names of the array-like `value`.
|
|
1837
1687
|
*
|
|
@@ -1840,17 +1690,16 @@ var require__arrayLikeKeys = __commonJS({ "../../node_modules/lodash/_arrayLikeK
|
|
|
1840
1690
|
* @param {boolean} inherited Specify returning inherited property names.
|
|
1841
1691
|
* @returns {Array} Returns the array of property names.
|
|
1842
1692
|
*/
|
|
1843
|
-
function arrayLikeKeys
|
|
1844
|
-
var isArr = isArray
|
|
1845
|
-
for (var key in value) if ((inherited || hasOwnProperty
|
|
1693
|
+
function arrayLikeKeys(value, inherited) {
|
|
1694
|
+
var isArr = isArray(value), isArg = !isArr && isArguments(value), isBuff = !isArr && !isArg && isBuffer(value), isType = !isArr && !isArg && !isBuff && isTypedArray(value), skipIndexes = isArr || isArg || isBuff || isType, result = skipIndexes ? baseTimes(value.length, String) : [], length = result.length;
|
|
1695
|
+
for (var key in value) if ((inherited || hasOwnProperty.call(value, key)) && !(skipIndexes && (key == "length" || isBuff && (key == "offset" || key == "parent") || isType && (key == "buffer" || key == "byteLength" || key == "byteOffset") || isIndex(key, length)))) result.push(key);
|
|
1846
1696
|
return result;
|
|
1847
1697
|
}
|
|
1848
|
-
module.exports = arrayLikeKeys
|
|
1849
|
-
}
|
|
1850
|
-
|
|
1698
|
+
module.exports = arrayLikeKeys;
|
|
1699
|
+
}));
|
|
1851
1700
|
//#endregion
|
|
1852
1701
|
//#region ../../node_modules/lodash/_nativeKeysIn.js
|
|
1853
|
-
var require__nativeKeysIn =
|
|
1702
|
+
var require__nativeKeysIn = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1854
1703
|
/**
|
|
1855
1704
|
* This function is like
|
|
1856
1705
|
* [`Object.keys`](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)
|
|
@@ -1860,22 +1709,21 @@ var require__nativeKeysIn = __commonJS({ "../../node_modules/lodash/_nativeKeysI
|
|
|
1860
1709
|
* @param {Object} object The object to query.
|
|
1861
1710
|
* @returns {Array} Returns the array of property names.
|
|
1862
1711
|
*/
|
|
1863
|
-
function nativeKeysIn
|
|
1712
|
+
function nativeKeysIn(object) {
|
|
1864
1713
|
var result = [];
|
|
1865
1714
|
if (object != null) for (var key in Object(object)) result.push(key);
|
|
1866
1715
|
return result;
|
|
1867
1716
|
}
|
|
1868
|
-
module.exports = nativeKeysIn
|
|
1869
|
-
}
|
|
1870
|
-
|
|
1717
|
+
module.exports = nativeKeysIn;
|
|
1718
|
+
}));
|
|
1871
1719
|
//#endregion
|
|
1872
1720
|
//#region ../../node_modules/lodash/_baseKeysIn.js
|
|
1873
|
-
var require__baseKeysIn =
|
|
1874
|
-
var isObject
|
|
1875
|
-
|
|
1876
|
-
var
|
|
1721
|
+
var require__baseKeysIn = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1722
|
+
var isObject = require_isObject();
|
|
1723
|
+
var isPrototype = require__isPrototype();
|
|
1724
|
+
var nativeKeysIn = require__nativeKeysIn();
|
|
1877
1725
|
/** Used to check objects for own properties. */
|
|
1878
|
-
var hasOwnProperty =
|
|
1726
|
+
var hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
1879
1727
|
/**
|
|
1880
1728
|
* The base implementation of `_.keysIn` which doesn't treat sparse arrays as dense.
|
|
1881
1729
|
*
|
|
@@ -1883,19 +1731,20 @@ var require__baseKeysIn = __commonJS({ "../../node_modules/lodash/_baseKeysIn.js
|
|
|
1883
1731
|
* @param {Object} object The object to query.
|
|
1884
1732
|
* @returns {Array} Returns the array of property names.
|
|
1885
1733
|
*/
|
|
1886
|
-
function baseKeysIn
|
|
1887
|
-
if (!isObject
|
|
1734
|
+
function baseKeysIn(object) {
|
|
1735
|
+
if (!isObject(object)) return nativeKeysIn(object);
|
|
1888
1736
|
var isProto = isPrototype(object), result = [];
|
|
1889
1737
|
for (var key in object) if (!(key == "constructor" && (isProto || !hasOwnProperty.call(object, key)))) result.push(key);
|
|
1890
1738
|
return result;
|
|
1891
1739
|
}
|
|
1892
|
-
module.exports = baseKeysIn
|
|
1893
|
-
}
|
|
1894
|
-
|
|
1740
|
+
module.exports = baseKeysIn;
|
|
1741
|
+
}));
|
|
1895
1742
|
//#endregion
|
|
1896
1743
|
//#region ../../node_modules/lodash/keysIn.js
|
|
1897
|
-
var require_keysIn =
|
|
1898
|
-
var arrayLikeKeys = require__arrayLikeKeys()
|
|
1744
|
+
var require_keysIn = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1745
|
+
var arrayLikeKeys = require__arrayLikeKeys();
|
|
1746
|
+
var baseKeysIn = require__baseKeysIn();
|
|
1747
|
+
var isArrayLike = require_isArrayLike();
|
|
1899
1748
|
/**
|
|
1900
1749
|
* Creates an array of the own and inherited enumerable property names of `object`.
|
|
1901
1750
|
*
|
|
@@ -1919,16 +1768,16 @@ var require_keysIn = __commonJS({ "../../node_modules/lodash/keysIn.js"(exports,
|
|
|
1919
1768
|
* _.keysIn(new Foo);
|
|
1920
1769
|
* // => ['a', 'b', 'c'] (iteration order is not guaranteed)
|
|
1921
1770
|
*/
|
|
1922
|
-
function keysIn
|
|
1923
|
-
return isArrayLike
|
|
1771
|
+
function keysIn(object) {
|
|
1772
|
+
return isArrayLike(object) ? arrayLikeKeys(object, true) : baseKeysIn(object);
|
|
1924
1773
|
}
|
|
1925
|
-
module.exports = keysIn
|
|
1926
|
-
}
|
|
1927
|
-
|
|
1774
|
+
module.exports = keysIn;
|
|
1775
|
+
}));
|
|
1928
1776
|
//#endregion
|
|
1929
1777
|
//#region ../../node_modules/lodash/toPlainObject.js
|
|
1930
|
-
var require_toPlainObject =
|
|
1931
|
-
var copyObject = require__copyObject()
|
|
1778
|
+
var require_toPlainObject = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1779
|
+
var copyObject = require__copyObject();
|
|
1780
|
+
var keysIn = require_keysIn();
|
|
1932
1781
|
/**
|
|
1933
1782
|
* Converts `value` to a plain object flattening inherited enumerable string
|
|
1934
1783
|
* keyed properties of `value` to own properties of the plain object.
|
|
@@ -1953,16 +1802,29 @@ var require_toPlainObject = __commonJS({ "../../node_modules/lodash/toPlainObjec
|
|
|
1953
1802
|
* _.assign({ 'a': 1 }, _.toPlainObject(new Foo));
|
|
1954
1803
|
* // => { 'a': 1, 'b': 2, 'c': 3 }
|
|
1955
1804
|
*/
|
|
1956
|
-
function toPlainObject
|
|
1957
|
-
return copyObject(value, keysIn
|
|
1805
|
+
function toPlainObject(value) {
|
|
1806
|
+
return copyObject(value, keysIn(value));
|
|
1958
1807
|
}
|
|
1959
|
-
module.exports = toPlainObject
|
|
1960
|
-
}
|
|
1961
|
-
|
|
1808
|
+
module.exports = toPlainObject;
|
|
1809
|
+
}));
|
|
1962
1810
|
//#endregion
|
|
1963
1811
|
//#region ../../node_modules/lodash/_baseMergeDeep.js
|
|
1964
|
-
var require__baseMergeDeep =
|
|
1965
|
-
var assignMergeValue
|
|
1812
|
+
var require__baseMergeDeep = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1813
|
+
var assignMergeValue = require__assignMergeValue();
|
|
1814
|
+
var cloneBuffer = require__cloneBuffer();
|
|
1815
|
+
var cloneTypedArray = require__cloneTypedArray();
|
|
1816
|
+
var copyArray = require__copyArray();
|
|
1817
|
+
var initCloneObject = require__initCloneObject();
|
|
1818
|
+
var isArguments = require_isArguments();
|
|
1819
|
+
var isArray = require_isArray();
|
|
1820
|
+
var isArrayLikeObject = require_isArrayLikeObject();
|
|
1821
|
+
var isBuffer = require_isBuffer();
|
|
1822
|
+
var isFunction = require_isFunction();
|
|
1823
|
+
var isObject = require_isObject();
|
|
1824
|
+
var isPlainObject = require_isPlainObject();
|
|
1825
|
+
var isTypedArray = require_isTypedArray();
|
|
1826
|
+
var safeGet = require__safeGet();
|
|
1827
|
+
var toPlainObject = require_toPlainObject();
|
|
1966
1828
|
/**
|
|
1967
1829
|
* A specialized version of `baseMerge` for arrays and objects which performs
|
|
1968
1830
|
* deep merges and tracks traversed objects enabling objects with circular
|
|
@@ -1978,30 +1840,31 @@ var require__baseMergeDeep = __commonJS({ "../../node_modules/lodash/_baseMergeD
|
|
|
1978
1840
|
* @param {Object} [stack] Tracks traversed source values and their merged
|
|
1979
1841
|
* counterparts.
|
|
1980
1842
|
*/
|
|
1981
|
-
function baseMergeDeep
|
|
1982
|
-
var objValue = safeGet
|
|
1843
|
+
function baseMergeDeep(object, source, key, srcIndex, mergeFunc, customizer, stack) {
|
|
1844
|
+
var objValue = safeGet(object, key), srcValue = safeGet(source, key), stacked = stack.get(srcValue);
|
|
1983
1845
|
if (stacked) {
|
|
1984
|
-
assignMergeValue
|
|
1846
|
+
assignMergeValue(object, key, stacked);
|
|
1985
1847
|
return;
|
|
1986
1848
|
}
|
|
1987
1849
|
var newValue = customizer ? customizer(objValue, srcValue, key + "", object, source, stack) : void 0;
|
|
1988
1850
|
var isCommon = newValue === void 0;
|
|
1989
1851
|
if (isCommon) {
|
|
1990
|
-
var isArr = isArray
|
|
1852
|
+
var isArr = isArray(srcValue), isBuff = !isArr && isBuffer(srcValue), isTyped = !isArr && !isBuff && isTypedArray(srcValue);
|
|
1991
1853
|
newValue = srcValue;
|
|
1992
|
-
if (isArr || isBuff || isTyped)
|
|
1993
|
-
|
|
1994
|
-
|
|
1995
|
-
|
|
1996
|
-
|
|
1997
|
-
|
|
1998
|
-
|
|
1999
|
-
|
|
2000
|
-
|
|
2001
|
-
|
|
1854
|
+
if (isArr || isBuff || isTyped) {
|
|
1855
|
+
if (isArray(objValue)) newValue = objValue;
|
|
1856
|
+
else if (isArrayLikeObject(objValue)) newValue = copyArray(objValue);
|
|
1857
|
+
else if (isBuff) {
|
|
1858
|
+
isCommon = false;
|
|
1859
|
+
newValue = cloneBuffer(srcValue, true);
|
|
1860
|
+
} else if (isTyped) {
|
|
1861
|
+
isCommon = false;
|
|
1862
|
+
newValue = cloneTypedArray(srcValue, true);
|
|
1863
|
+
} else newValue = [];
|
|
1864
|
+
} else if (isPlainObject(srcValue) || isArguments(srcValue)) {
|
|
2002
1865
|
newValue = objValue;
|
|
2003
1866
|
if (isArguments(objValue)) newValue = toPlainObject(objValue);
|
|
2004
|
-
else if (!isObject
|
|
1867
|
+
else if (!isObject(objValue) || isFunction(objValue)) newValue = initCloneObject(srcValue);
|
|
2005
1868
|
} else isCommon = false;
|
|
2006
1869
|
}
|
|
2007
1870
|
if (isCommon) {
|
|
@@ -2009,15 +1872,20 @@ var require__baseMergeDeep = __commonJS({ "../../node_modules/lodash/_baseMergeD
|
|
|
2009
1872
|
mergeFunc(newValue, srcValue, srcIndex, customizer, stack);
|
|
2010
1873
|
stack["delete"](srcValue);
|
|
2011
1874
|
}
|
|
2012
|
-
assignMergeValue
|
|
1875
|
+
assignMergeValue(object, key, newValue);
|
|
2013
1876
|
}
|
|
2014
|
-
module.exports = baseMergeDeep
|
|
2015
|
-
}
|
|
2016
|
-
|
|
1877
|
+
module.exports = baseMergeDeep;
|
|
1878
|
+
}));
|
|
2017
1879
|
//#endregion
|
|
2018
1880
|
//#region ../../node_modules/lodash/_baseMerge.js
|
|
2019
|
-
var require__baseMerge =
|
|
2020
|
-
var Stack = require__Stack()
|
|
1881
|
+
var require__baseMerge = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1882
|
+
var Stack = require__Stack();
|
|
1883
|
+
var assignMergeValue = require__assignMergeValue();
|
|
1884
|
+
var baseFor = require__baseFor();
|
|
1885
|
+
var baseMergeDeep = require__baseMergeDeep();
|
|
1886
|
+
var isObject = require_isObject();
|
|
1887
|
+
var keysIn = require_keysIn();
|
|
1888
|
+
var safeGet = require__safeGet();
|
|
2021
1889
|
/**
|
|
2022
1890
|
* The base implementation of `_.merge` without support for multiple sources.
|
|
2023
1891
|
*
|
|
@@ -2029,11 +1897,11 @@ var require__baseMerge = __commonJS({ "../../node_modules/lodash/_baseMerge.js"(
|
|
|
2029
1897
|
* @param {Object} [stack] Tracks traversed source values and their merged
|
|
2030
1898
|
* counterparts.
|
|
2031
1899
|
*/
|
|
2032
|
-
function baseMerge
|
|
1900
|
+
function baseMerge(object, source, srcIndex, customizer, stack) {
|
|
2033
1901
|
if (object === source) return;
|
|
2034
1902
|
baseFor(source, function(srcValue, key) {
|
|
2035
1903
|
stack || (stack = new Stack());
|
|
2036
|
-
if (isObject
|
|
1904
|
+
if (isObject(srcValue)) baseMergeDeep(object, source, key, srcIndex, baseMerge, customizer, stack);
|
|
2037
1905
|
else {
|
|
2038
1906
|
var newValue = customizer ? customizer(safeGet(object, key), srcValue, key + "", object, source, stack) : void 0;
|
|
2039
1907
|
if (newValue === void 0) newValue = srcValue;
|
|
@@ -2041,12 +1909,11 @@ var require__baseMerge = __commonJS({ "../../node_modules/lodash/_baseMerge.js"(
|
|
|
2041
1909
|
}
|
|
2042
1910
|
}, keysIn);
|
|
2043
1911
|
}
|
|
2044
|
-
module.exports = baseMerge
|
|
2045
|
-
}
|
|
2046
|
-
|
|
1912
|
+
module.exports = baseMerge;
|
|
1913
|
+
}));
|
|
2047
1914
|
//#endregion
|
|
2048
1915
|
//#region ../../node_modules/lodash/identity.js
|
|
2049
|
-
var require_identity =
|
|
1916
|
+
var require_identity = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
2050
1917
|
/**
|
|
2051
1918
|
* This method returns the first argument it receives.
|
|
2052
1919
|
*
|
|
@@ -2063,15 +1930,14 @@ var require_identity = __commonJS({ "../../node_modules/lodash/identity.js"(expo
|
|
|
2063
1930
|
* console.log(_.identity(object) === object);
|
|
2064
1931
|
* // => true
|
|
2065
1932
|
*/
|
|
2066
|
-
function identity
|
|
1933
|
+
function identity(value) {
|
|
2067
1934
|
return value;
|
|
2068
1935
|
}
|
|
2069
|
-
module.exports = identity
|
|
2070
|
-
}
|
|
2071
|
-
|
|
1936
|
+
module.exports = identity;
|
|
1937
|
+
}));
|
|
2072
1938
|
//#endregion
|
|
2073
1939
|
//#region ../../node_modules/lodash/_apply.js
|
|
2074
|
-
var require__apply =
|
|
1940
|
+
var require__apply = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
2075
1941
|
/**
|
|
2076
1942
|
* A faster alternative to `Function#apply`, this function invokes `func`
|
|
2077
1943
|
* with the `this` binding of `thisArg` and the arguments of `args`.
|
|
@@ -2082,7 +1948,7 @@ var require__apply = __commonJS({ "../../node_modules/lodash/_apply.js"(exports,
|
|
|
2082
1948
|
* @param {Array} args The arguments to invoke `func` with.
|
|
2083
1949
|
* @returns {*} Returns the result of `func`.
|
|
2084
1950
|
*/
|
|
2085
|
-
function apply
|
|
1951
|
+
function apply(func, thisArg, args) {
|
|
2086
1952
|
switch (args.length) {
|
|
2087
1953
|
case 0: return func.call(thisArg);
|
|
2088
1954
|
case 1: return func.call(thisArg, args[0]);
|
|
@@ -2091,12 +1957,11 @@ var require__apply = __commonJS({ "../../node_modules/lodash/_apply.js"(exports,
|
|
|
2091
1957
|
}
|
|
2092
1958
|
return func.apply(thisArg, args);
|
|
2093
1959
|
}
|
|
2094
|
-
module.exports = apply
|
|
2095
|
-
}
|
|
2096
|
-
|
|
1960
|
+
module.exports = apply;
|
|
1961
|
+
}));
|
|
2097
1962
|
//#endregion
|
|
2098
1963
|
//#region ../../node_modules/lodash/_overRest.js
|
|
2099
|
-
var require__overRest =
|
|
1964
|
+
var require__overRest = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
2100
1965
|
var apply = require__apply();
|
|
2101
1966
|
var nativeMax = Math.max;
|
|
2102
1967
|
/**
|
|
@@ -2108,11 +1973,11 @@ var require__overRest = __commonJS({ "../../node_modules/lodash/_overRest.js"(ex
|
|
|
2108
1973
|
* @param {Function} transform The rest array transform.
|
|
2109
1974
|
* @returns {Function} Returns the new function.
|
|
2110
1975
|
*/
|
|
2111
|
-
function overRest
|
|
1976
|
+
function overRest(func, start, transform) {
|
|
2112
1977
|
start = nativeMax(start === void 0 ? func.length - 1 : start, 0);
|
|
2113
1978
|
return function() {
|
|
2114
|
-
var args = arguments, index = -1, length
|
|
2115
|
-
while (++index < length
|
|
1979
|
+
var args = arguments, index = -1, length = nativeMax(args.length - start, 0), array = Array(length);
|
|
1980
|
+
while (++index < length) array[index] = args[start + index];
|
|
2116
1981
|
index = -1;
|
|
2117
1982
|
var otherArgs = Array(start + 1);
|
|
2118
1983
|
while (++index < start) otherArgs[index] = args[index];
|
|
@@ -2120,12 +1985,11 @@ var require__overRest = __commonJS({ "../../node_modules/lodash/_overRest.js"(ex
|
|
|
2120
1985
|
return apply(func, this, otherArgs);
|
|
2121
1986
|
};
|
|
2122
1987
|
}
|
|
2123
|
-
module.exports = overRest
|
|
2124
|
-
}
|
|
2125
|
-
|
|
1988
|
+
module.exports = overRest;
|
|
1989
|
+
}));
|
|
2126
1990
|
//#endregion
|
|
2127
1991
|
//#region ../../node_modules/lodash/constant.js
|
|
2128
|
-
var require_constant =
|
|
1992
|
+
var require_constant = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
2129
1993
|
/**
|
|
2130
1994
|
* Creates a function that returns `value`.
|
|
2131
1995
|
*
|
|
@@ -2145,27 +2009,20 @@ var require_constant = __commonJS({ "../../node_modules/lodash/constant.js"(expo
|
|
|
2145
2009
|
* console.log(objects[0] === objects[1]);
|
|
2146
2010
|
* // => true
|
|
2147
2011
|
*/
|
|
2148
|
-
function constant
|
|
2012
|
+
function constant(value) {
|
|
2149
2013
|
return function() {
|
|
2150
2014
|
return value;
|
|
2151
2015
|
};
|
|
2152
2016
|
}
|
|
2153
|
-
module.exports = constant
|
|
2154
|
-
}
|
|
2155
|
-
|
|
2017
|
+
module.exports = constant;
|
|
2018
|
+
}));
|
|
2156
2019
|
//#endregion
|
|
2157
2020
|
//#region ../../node_modules/lodash/_baseSetToString.js
|
|
2158
|
-
var require__baseSetToString =
|
|
2159
|
-
var constant = require_constant()
|
|
2160
|
-
|
|
2161
|
-
|
|
2162
|
-
|
|
2163
|
-
* @private
|
|
2164
|
-
* @param {Function} func The function to modify.
|
|
2165
|
-
* @param {Function} string The `toString` result.
|
|
2166
|
-
* @returns {Function} Returns `func`.
|
|
2167
|
-
*/
|
|
2168
|
-
var baseSetToString$1 = !defineProperty ? identity$1 : function(func, string) {
|
|
2021
|
+
var require__baseSetToString = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
2022
|
+
var constant = require_constant();
|
|
2023
|
+
var defineProperty = require__defineProperty();
|
|
2024
|
+
var identity = require_identity();
|
|
2025
|
+
module.exports = !defineProperty ? identity : function(func, string) {
|
|
2169
2026
|
return defineProperty(func, "toString", {
|
|
2170
2027
|
"configurable": true,
|
|
2171
2028
|
"enumerable": false,
|
|
@@ -2173,14 +2030,13 @@ var require__baseSetToString = __commonJS({ "../../node_modules/lodash/_baseSetT
|
|
|
2173
2030
|
"writable": true
|
|
2174
2031
|
});
|
|
2175
2032
|
};
|
|
2176
|
-
|
|
2177
|
-
} });
|
|
2178
|
-
|
|
2033
|
+
}));
|
|
2179
2034
|
//#endregion
|
|
2180
2035
|
//#region ../../node_modules/lodash/_shortOut.js
|
|
2181
|
-
var require__shortOut =
|
|
2036
|
+
var require__shortOut = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
2182
2037
|
/** Used to detect hot functions by number of calls within a span of milliseconds. */
|
|
2183
|
-
var HOT_COUNT = 800
|
|
2038
|
+
var HOT_COUNT = 800;
|
|
2039
|
+
var HOT_SPAN = 16;
|
|
2184
2040
|
var nativeNow = Date.now;
|
|
2185
2041
|
/**
|
|
2186
2042
|
* Creates a function that'll short out and invoke `identity` instead
|
|
@@ -2191,7 +2047,7 @@ var require__shortOut = __commonJS({ "../../node_modules/lodash/_shortOut.js"(ex
|
|
|
2191
2047
|
* @param {Function} func The function to restrict.
|
|
2192
2048
|
* @returns {Function} Returns the new shortable function.
|
|
2193
2049
|
*/
|
|
2194
|
-
function shortOut
|
|
2050
|
+
function shortOut(func) {
|
|
2195
2051
|
var count = 0, lastCalled = 0;
|
|
2196
2052
|
return function() {
|
|
2197
2053
|
var stamp = nativeNow(), remaining = HOT_SPAN - (stamp - lastCalled);
|
|
@@ -2202,29 +2058,20 @@ var require__shortOut = __commonJS({ "../../node_modules/lodash/_shortOut.js"(ex
|
|
|
2202
2058
|
return func.apply(void 0, arguments);
|
|
2203
2059
|
};
|
|
2204
2060
|
}
|
|
2205
|
-
module.exports = shortOut
|
|
2206
|
-
}
|
|
2207
|
-
|
|
2061
|
+
module.exports = shortOut;
|
|
2062
|
+
}));
|
|
2208
2063
|
//#endregion
|
|
2209
2064
|
//#region ../../node_modules/lodash/_setToString.js
|
|
2210
|
-
var require__setToString =
|
|
2211
|
-
var baseSetToString = require__baseSetToString()
|
|
2212
|
-
|
|
2213
|
-
|
|
2214
|
-
*
|
|
2215
|
-
* @private
|
|
2216
|
-
* @param {Function} func The function to modify.
|
|
2217
|
-
* @param {Function} string The `toString` result.
|
|
2218
|
-
* @returns {Function} Returns `func`.
|
|
2219
|
-
*/
|
|
2220
|
-
var setToString$1 = shortOut(baseSetToString);
|
|
2221
|
-
module.exports = setToString$1;
|
|
2222
|
-
} });
|
|
2223
|
-
|
|
2065
|
+
var require__setToString = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
2066
|
+
var baseSetToString = require__baseSetToString();
|
|
2067
|
+
module.exports = require__shortOut()(baseSetToString);
|
|
2068
|
+
}));
|
|
2224
2069
|
//#endregion
|
|
2225
2070
|
//#region ../../node_modules/lodash/_baseRest.js
|
|
2226
|
-
var require__baseRest =
|
|
2227
|
-
var identity = require_identity()
|
|
2071
|
+
var require__baseRest = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
2072
|
+
var identity = require_identity();
|
|
2073
|
+
var overRest = require__overRest();
|
|
2074
|
+
var setToString = require__setToString();
|
|
2228
2075
|
/**
|
|
2229
2076
|
* The base implementation of `_.rest` which doesn't validate or coerce arguments.
|
|
2230
2077
|
*
|
|
@@ -2233,16 +2080,18 @@ var require__baseRest = __commonJS({ "../../node_modules/lodash/_baseRest.js"(ex
|
|
|
2233
2080
|
* @param {number} [start=func.length-1] The start position of the rest parameter.
|
|
2234
2081
|
* @returns {Function} Returns the new function.
|
|
2235
2082
|
*/
|
|
2236
|
-
function baseRest
|
|
2083
|
+
function baseRest(func, start) {
|
|
2237
2084
|
return setToString(overRest(func, start, identity), func + "");
|
|
2238
2085
|
}
|
|
2239
|
-
module.exports = baseRest
|
|
2240
|
-
}
|
|
2241
|
-
|
|
2086
|
+
module.exports = baseRest;
|
|
2087
|
+
}));
|
|
2242
2088
|
//#endregion
|
|
2243
2089
|
//#region ../../node_modules/lodash/_isIterateeCall.js
|
|
2244
|
-
var require__isIterateeCall =
|
|
2245
|
-
var eq = require_eq()
|
|
2090
|
+
var require__isIterateeCall = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
2091
|
+
var eq = require_eq();
|
|
2092
|
+
var isArrayLike = require_isArrayLike();
|
|
2093
|
+
var isIndex = require__isIndex();
|
|
2094
|
+
var isObject = require_isObject();
|
|
2246
2095
|
/**
|
|
2247
2096
|
* Checks if the given arguments are from an iteratee call.
|
|
2248
2097
|
*
|
|
@@ -2253,19 +2102,19 @@ var require__isIterateeCall = __commonJS({ "../../node_modules/lodash/_isIterate
|
|
|
2253
2102
|
* @returns {boolean} Returns `true` if the arguments are from an iteratee call,
|
|
2254
2103
|
* else `false`.
|
|
2255
2104
|
*/
|
|
2256
|
-
function isIterateeCall
|
|
2105
|
+
function isIterateeCall(value, index, object) {
|
|
2257
2106
|
if (!isObject(object)) return false;
|
|
2258
2107
|
var type = typeof index;
|
|
2259
2108
|
if (type == "number" ? isArrayLike(object) && isIndex(index, object.length) : type == "string" && index in object) return eq(object[index], value);
|
|
2260
2109
|
return false;
|
|
2261
2110
|
}
|
|
2262
|
-
module.exports = isIterateeCall
|
|
2263
|
-
}
|
|
2264
|
-
|
|
2111
|
+
module.exports = isIterateeCall;
|
|
2112
|
+
}));
|
|
2265
2113
|
//#endregion
|
|
2266
2114
|
//#region ../../node_modules/lodash/_createAssigner.js
|
|
2267
|
-
var require__createAssigner =
|
|
2268
|
-
var baseRest = require__baseRest()
|
|
2115
|
+
var require__createAssigner = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
2116
|
+
var baseRest = require__baseRest();
|
|
2117
|
+
var isIterateeCall = require__isIterateeCall();
|
|
2269
2118
|
/**
|
|
2270
2119
|
* Creates a function like `_.assign`.
|
|
2271
2120
|
*
|
|
@@ -2273,73 +2122,35 @@ var require__createAssigner = __commonJS({ "../../node_modules/lodash/_createAss
|
|
|
2273
2122
|
* @param {Function} assigner The function to assign values.
|
|
2274
2123
|
* @returns {Function} Returns the new assigner function.
|
|
2275
2124
|
*/
|
|
2276
|
-
function createAssigner
|
|
2125
|
+
function createAssigner(assigner) {
|
|
2277
2126
|
return baseRest(function(object, sources) {
|
|
2278
|
-
var index = -1, length
|
|
2279
|
-
customizer = assigner.length > 3 && typeof customizer == "function" ? (length
|
|
2127
|
+
var index = -1, length = sources.length, customizer = length > 1 ? sources[length - 1] : void 0, guard = length > 2 ? sources[2] : void 0;
|
|
2128
|
+
customizer = assigner.length > 3 && typeof customizer == "function" ? (length--, customizer) : void 0;
|
|
2280
2129
|
if (guard && isIterateeCall(sources[0], sources[1], guard)) {
|
|
2281
|
-
customizer = length
|
|
2282
|
-
length
|
|
2130
|
+
customizer = length < 3 ? void 0 : customizer;
|
|
2131
|
+
length = 1;
|
|
2283
2132
|
}
|
|
2284
2133
|
object = Object(object);
|
|
2285
|
-
while (++index < length
|
|
2134
|
+
while (++index < length) {
|
|
2286
2135
|
var source = sources[index];
|
|
2287
2136
|
if (source) assigner(object, source, index, customizer);
|
|
2288
2137
|
}
|
|
2289
2138
|
return object;
|
|
2290
2139
|
});
|
|
2291
2140
|
}
|
|
2292
|
-
module.exports = createAssigner
|
|
2293
|
-
}
|
|
2294
|
-
|
|
2141
|
+
module.exports = createAssigner;
|
|
2142
|
+
}));
|
|
2295
2143
|
//#endregion
|
|
2296
|
-
//#region ../../node_modules/
|
|
2297
|
-
var
|
|
2298
|
-
var baseMerge = require__baseMerge()
|
|
2299
|
-
|
|
2300
|
-
* This method is like `_.assign` except that it recursively merges own and
|
|
2301
|
-
* inherited enumerable string keyed properties of source objects into the
|
|
2302
|
-
* destination object. Source properties that resolve to `undefined` are
|
|
2303
|
-
* skipped if a destination value exists. Array and plain object properties
|
|
2304
|
-
* are merged recursively. Other objects and value types are overridden by
|
|
2305
|
-
* assignment. Source objects are applied from left to right. Subsequent
|
|
2306
|
-
* sources overwrite property assignments of previous sources.
|
|
2307
|
-
*
|
|
2308
|
-
* **Note:** This method mutates `object`.
|
|
2309
|
-
*
|
|
2310
|
-
* @static
|
|
2311
|
-
* @memberOf _
|
|
2312
|
-
* @since 0.5.0
|
|
2313
|
-
* @category Object
|
|
2314
|
-
* @param {Object} object The destination object.
|
|
2315
|
-
* @param {...Object} [sources] The source objects.
|
|
2316
|
-
* @returns {Object} Returns `object`.
|
|
2317
|
-
* @example
|
|
2318
|
-
*
|
|
2319
|
-
* var object = {
|
|
2320
|
-
* 'a': [{ 'b': 2 }, { 'd': 4 }]
|
|
2321
|
-
* };
|
|
2322
|
-
*
|
|
2323
|
-
* var other = {
|
|
2324
|
-
* 'a': [{ 'c': 3 }, { 'e': 5 }]
|
|
2325
|
-
* };
|
|
2326
|
-
*
|
|
2327
|
-
* _.merge(object, other);
|
|
2328
|
-
* // => { 'a': [{ 'b': 2, 'c': 3 }, { 'd': 4, 'e': 5 }] }
|
|
2329
|
-
*/
|
|
2330
|
-
var merge = createAssigner(function(object, source, srcIndex) {
|
|
2144
|
+
//#region ../../node_modules/emittery/maps.js
|
|
2145
|
+
var import_merge = /* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
2146
|
+
var baseMerge = require__baseMerge();
|
|
2147
|
+
module.exports = require__createAssigner()(function(object, source, srcIndex) {
|
|
2331
2148
|
baseMerge(object, source, srcIndex);
|
|
2332
2149
|
});
|
|
2333
|
-
|
|
2334
|
-
|
|
2335
|
-
|
|
2336
|
-
|
|
2337
|
-
//#endregion
|
|
2338
|
-
//#region ../../node_modules/emittery/maps.js
|
|
2339
|
-
const anyMap = new WeakMap();
|
|
2340
|
-
const eventsMap = new WeakMap();
|
|
2341
|
-
const producersMap = new WeakMap();
|
|
2342
|
-
|
|
2150
|
+
})))(), 1);
|
|
2151
|
+
const anyMap = /* @__PURE__ */ new WeakMap();
|
|
2152
|
+
const eventsMap = /* @__PURE__ */ new WeakMap();
|
|
2153
|
+
const producersMap = /* @__PURE__ */ new WeakMap();
|
|
2343
2154
|
//#endregion
|
|
2344
2155
|
//#region ../../node_modules/emittery/index.js
|
|
2345
2156
|
const anyProducer = Symbol("anyProducer");
|
|
@@ -2392,9 +2203,8 @@ function iterator(instance, eventNames) {
|
|
|
2392
2203
|
for (const eventName of eventNames) {
|
|
2393
2204
|
let set = getEventProducers(instance, eventName);
|
|
2394
2205
|
if (!set) {
|
|
2395
|
-
set = new Set();
|
|
2396
|
-
|
|
2397
|
-
producers.set(eventName, set);
|
|
2206
|
+
set = /* @__PURE__ */ new Set();
|
|
2207
|
+
producersMap.get(instance).set(eventName, set);
|
|
2398
2208
|
}
|
|
2399
2209
|
set.add(producer);
|
|
2400
2210
|
}
|
|
@@ -2422,10 +2232,7 @@ function iterator(instance, eventNames) {
|
|
|
2422
2232
|
const set = getEventProducers(instance, eventName);
|
|
2423
2233
|
if (set) {
|
|
2424
2234
|
set.delete(producer);
|
|
2425
|
-
if (set.size === 0)
|
|
2426
|
-
const producers = producersMap.get(instance);
|
|
2427
|
-
producers.delete(eventName);
|
|
2428
|
-
}
|
|
2235
|
+
if (set.size === 0) producersMap.get(instance).delete(eventName);
|
|
2429
2236
|
}
|
|
2430
2237
|
}
|
|
2431
2238
|
flush();
|
|
@@ -2494,10 +2301,10 @@ var Emittery = class Emittery {
|
|
|
2494
2301
|
isGlobalDebugEnabled = newValue;
|
|
2495
2302
|
}
|
|
2496
2303
|
constructor(options = {}) {
|
|
2497
|
-
anyMap.set(this, new Set());
|
|
2498
|
-
eventsMap.set(this, new Map());
|
|
2499
|
-
producersMap.set(this, new Map());
|
|
2500
|
-
producersMap.get(this).set(anyProducer, new Set());
|
|
2304
|
+
anyMap.set(this, /* @__PURE__ */ new Set());
|
|
2305
|
+
eventsMap.set(this, /* @__PURE__ */ new Map());
|
|
2306
|
+
producersMap.set(this, /* @__PURE__ */ new Map());
|
|
2307
|
+
producersMap.get(this).set(anyProducer, /* @__PURE__ */ new Set());
|
|
2501
2308
|
this.debug = options.debug ?? {};
|
|
2502
2309
|
if (this.debug.enabled === void 0) this.debug.enabled = false;
|
|
2503
2310
|
if (!this.debug.logger) this.debug.logger = (type, debugName, eventName, eventData) => {
|
|
@@ -2507,7 +2314,7 @@ var Emittery = class Emittery {
|
|
|
2507
2314
|
eventData = `Object with the following keys failed to stringify: ${Object.keys(eventData).join(",")}`;
|
|
2508
2315
|
}
|
|
2509
2316
|
if (typeof eventName === "symbol" || typeof eventName === "number") eventName = eventName.toString();
|
|
2510
|
-
const currentTime = new Date();
|
|
2317
|
+
const currentTime = /* @__PURE__ */ new Date();
|
|
2511
2318
|
const logTime = `${currentTime.getHours()}:${currentTime.getMinutes()}:${currentTime.getSeconds()}.${currentTime.getMilliseconds()}`;
|
|
2512
2319
|
console.log(`[${logTime}][emittery:${type}][${debugName}] Event Name: ${eventName}\n\tdata: ${eventData}`);
|
|
2513
2320
|
};
|
|
@@ -2522,9 +2329,8 @@ var Emittery = class Emittery {
|
|
|
2522
2329
|
assertEventName(eventName);
|
|
2523
2330
|
let set = getListeners(this, eventName);
|
|
2524
2331
|
if (!set) {
|
|
2525
|
-
set = new Set();
|
|
2526
|
-
|
|
2527
|
-
events.set(eventName, set);
|
|
2332
|
+
set = /* @__PURE__ */ new Set();
|
|
2333
|
+
eventsMap.get(this).set(eventName, set);
|
|
2528
2334
|
}
|
|
2529
2335
|
set.add(listener);
|
|
2530
2336
|
this.logIfDebugEnabled("subscribe", eventName, void 0);
|
|
@@ -2549,10 +2355,7 @@ var Emittery = class Emittery {
|
|
|
2549
2355
|
const set = getListeners(this, eventName);
|
|
2550
2356
|
if (set) {
|
|
2551
2357
|
set.delete(listener);
|
|
2552
|
-
if (set.size === 0)
|
|
2553
|
-
const events = eventsMap.get(this);
|
|
2554
|
-
events.delete(eventName);
|
|
2555
|
-
}
|
|
2358
|
+
if (set.size === 0) eventsMap.get(this).delete(eventName);
|
|
2556
2359
|
}
|
|
2557
2360
|
this.logIfDebugEnabled("unsubscribe", eventName, void 0);
|
|
2558
2361
|
if (!isMetaEvent(eventName)) emitMetaEvent(this, listenerRemoved, {
|
|
@@ -2582,7 +2385,7 @@ var Emittery = class Emittery {
|
|
|
2582
2385
|
if (isMetaEvent(eventName) && !canEmitMetaEvents) throw new TypeError("`eventName` cannot be meta event `listenerAdded` or `listenerRemoved`");
|
|
2583
2386
|
this.logIfDebugEnabled("emit", eventName, eventData);
|
|
2584
2387
|
enqueueProducers(this, eventName, eventData);
|
|
2585
|
-
const listeners = getListeners(this, eventName) ?? new Set();
|
|
2388
|
+
const listeners = getListeners(this, eventName) ?? /* @__PURE__ */ new Set();
|
|
2586
2389
|
const anyListeners = anyMap.get(this);
|
|
2587
2390
|
const staticListeners = [...listeners];
|
|
2588
2391
|
const staticAnyListeners = isMetaEvent(eventName) ? [] : [...anyListeners];
|
|
@@ -2597,7 +2400,7 @@ var Emittery = class Emittery {
|
|
|
2597
2400
|
assertEventName(eventName);
|
|
2598
2401
|
if (isMetaEvent(eventName) && !canEmitMetaEvents) throw new TypeError("`eventName` cannot be meta event `listenerAdded` or `listenerRemoved`");
|
|
2599
2402
|
this.logIfDebugEnabled("emitSerial", eventName, eventData);
|
|
2600
|
-
const listeners = getListeners(this, eventName) ?? new Set();
|
|
2403
|
+
const listeners = getListeners(this, eventName) ?? /* @__PURE__ */ new Set();
|
|
2601
2404
|
const anyListeners = anyMap.get(this);
|
|
2602
2405
|
const staticListeners = [...listeners];
|
|
2603
2406
|
const staticAnyListeners = [...anyListeners];
|
|
@@ -2641,14 +2444,14 @@ var Emittery = class Emittery {
|
|
|
2641
2444
|
}
|
|
2642
2445
|
} else {
|
|
2643
2446
|
anyMap.get(this).clear();
|
|
2644
|
-
for (const [eventName
|
|
2447
|
+
for (const [eventName, listeners] of eventsMap.get(this).entries()) {
|
|
2645
2448
|
listeners.clear();
|
|
2646
|
-
eventsMap.get(this).delete(eventName
|
|
2449
|
+
eventsMap.get(this).delete(eventName);
|
|
2647
2450
|
}
|
|
2648
|
-
for (const [eventName
|
|
2451
|
+
for (const [eventName, producers] of producersMap.get(this).entries()) {
|
|
2649
2452
|
for (const producer of producers) producer.finish();
|
|
2650
2453
|
producers.clear();
|
|
2651
|
-
producersMap.get(this).delete(eventName
|
|
2454
|
+
producersMap.get(this).delete(eventName);
|
|
2652
2455
|
}
|
|
2653
2456
|
}
|
|
2654
2457
|
}
|
|
@@ -2693,7 +2496,6 @@ Object.defineProperty(Emittery, "listenerRemoved", {
|
|
|
2693
2496
|
enumerable: true,
|
|
2694
2497
|
configurable: false
|
|
2695
2498
|
});
|
|
2696
|
-
|
|
2697
2499
|
//#endregion
|
|
2698
2500
|
//#region ../../node_modules/lib0/math.js
|
|
2699
2501
|
/**
|
|
@@ -2716,62 +2518,19 @@ const min = (a, b) => a < b ? a : b;
|
|
|
2716
2518
|
* @return {number} The bigger element of a and b
|
|
2717
2519
|
*/
|
|
2718
2520
|
const max = (a, b) => a > b ? a : b;
|
|
2719
|
-
|
|
2720
|
-
|
|
2521
|
+
Number.isNaN;
|
|
2721
2522
|
//#endregion
|
|
2722
|
-
//#region ../../node_modules/lib0/
|
|
2723
|
-
const BIT8 = 128;
|
|
2724
|
-
const BIT18 = 1 << 17;
|
|
2725
|
-
const BIT19 = 1 << 18;
|
|
2726
|
-
const BIT20 = 1 << 19;
|
|
2727
|
-
const BIT21 = 1 << 20;
|
|
2728
|
-
const BIT22 = 1 << 21;
|
|
2729
|
-
const BIT23 = 1 << 22;
|
|
2730
|
-
const BIT24 = 1 << 23;
|
|
2731
|
-
const BIT25 = 1 << 24;
|
|
2732
|
-
const BIT26 = 1 << 25;
|
|
2733
|
-
const BIT27 = 1 << 26;
|
|
2734
|
-
const BIT28 = 1 << 27;
|
|
2735
|
-
const BIT29 = 1 << 28;
|
|
2736
|
-
const BIT30 = 1 << 29;
|
|
2737
|
-
const BIT31 = 1 << 30;
|
|
2738
|
-
const BIT32 = 1 << 31;
|
|
2739
|
-
const BITS7 = 127;
|
|
2740
|
-
const BITS17 = BIT18 - 1;
|
|
2741
|
-
const BITS18 = BIT19 - 1;
|
|
2742
|
-
const BITS19 = BIT20 - 1;
|
|
2743
|
-
const BITS20 = BIT21 - 1;
|
|
2744
|
-
const BITS21 = BIT22 - 1;
|
|
2745
|
-
const BITS22 = BIT23 - 1;
|
|
2746
|
-
const BITS23 = BIT24 - 1;
|
|
2747
|
-
const BITS24 = BIT25 - 1;
|
|
2748
|
-
const BITS25 = BIT26 - 1;
|
|
2749
|
-
const BITS26 = BIT27 - 1;
|
|
2750
|
-
const BITS27 = BIT28 - 1;
|
|
2751
|
-
const BITS28 = BIT29 - 1;
|
|
2752
|
-
const BITS29 = BIT30 - 1;
|
|
2753
|
-
const BITS30 = BIT31 - 1;
|
|
2754
|
-
/**
|
|
2755
|
-
* @type {number}
|
|
2756
|
-
*/
|
|
2757
|
-
const BITS31 = 2147483647;
|
|
2523
|
+
//#region ../../node_modules/lib0/number.js
|
|
2758
2524
|
/**
|
|
2759
|
-
*
|
|
2525
|
+
* Utility helpers for working with numbers.
|
|
2526
|
+
*
|
|
2527
|
+
* @module number
|
|
2760
2528
|
*/
|
|
2761
|
-
const BITS32 = 4294967295;
|
|
2762
|
-
|
|
2763
|
-
//#endregion
|
|
2764
|
-
//#region ../../node_modules/lib0/number.js
|
|
2765
2529
|
const MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER;
|
|
2766
|
-
|
|
2767
|
-
|
|
2768
|
-
|
|
2769
|
-
|
|
2770
|
-
/* c8 ignore next */
|
|
2771
|
-
const isInteger = Number.isInteger || ((num) => typeof num === "number" && isFinite(num) && floor(num) === num);
|
|
2772
|
-
const isNaN = Number.isNaN;
|
|
2773
|
-
const parseInt = Number.parseInt;
|
|
2774
|
-
|
|
2530
|
+
Number.MIN_SAFE_INTEGER;
|
|
2531
|
+
Number.isInteger;
|
|
2532
|
+
Number.isNaN;
|
|
2533
|
+
Number.parseInt;
|
|
2775
2534
|
//#endregion
|
|
2776
2535
|
//#region ../../node_modules/lib0/set.js
|
|
2777
2536
|
/**
|
|
@@ -2779,8 +2538,7 @@ const parseInt = Number.parseInt;
|
|
|
2779
2538
|
*
|
|
2780
2539
|
* @module set
|
|
2781
2540
|
*/
|
|
2782
|
-
const create$2 = () => new Set();
|
|
2783
|
-
|
|
2541
|
+
const create$2 = () => /* @__PURE__ */ new Set();
|
|
2784
2542
|
//#endregion
|
|
2785
2543
|
//#region ../../node_modules/lib0/array.js
|
|
2786
2544
|
/**
|
|
@@ -2792,8 +2550,7 @@ const create$2 = () => new Set();
|
|
|
2792
2550
|
* @return {T}
|
|
2793
2551
|
*/
|
|
2794
2552
|
const from = Array.from;
|
|
2795
|
-
|
|
2796
|
-
|
|
2553
|
+
Array.isArray;
|
|
2797
2554
|
//#endregion
|
|
2798
2555
|
//#region ../../node_modules/lib0/string.js
|
|
2799
2556
|
/**
|
|
@@ -2802,12 +2559,8 @@ const isArray$1 = Array.isArray;
|
|
|
2802
2559
|
* @module string
|
|
2803
2560
|
*/
|
|
2804
2561
|
const fromCharCode = String.fromCharCode;
|
|
2805
|
-
|
|
2806
|
-
|
|
2807
|
-
* The largest utf16 character.
|
|
2808
|
-
* Corresponds to Uint8Array([255, 255]) or charcodeof(2x2^8)
|
|
2809
|
-
*/
|
|
2810
|
-
const MAX_UTF16_CHARACTER = fromCharCode(65535);
|
|
2562
|
+
String.fromCodePoint;
|
|
2563
|
+
fromCharCode(65535);
|
|
2811
2564
|
/**
|
|
2812
2565
|
* @param {string} str
|
|
2813
2566
|
* @return {Uint8Array<ArrayBuffer>}
|
|
@@ -2838,19 +2591,45 @@ let utf8TextDecoder = typeof TextDecoder === "undefined" ? null : new TextDecode
|
|
|
2838
2591
|
ignoreBOM: true
|
|
2839
2592
|
});
|
|
2840
2593
|
/* c8 ignore start */
|
|
2841
|
-
if (utf8TextDecoder && utf8TextDecoder.decode(new Uint8Array()).length === 1)
|
|
2594
|
+
if (utf8TextDecoder && utf8TextDecoder.decode(/* @__PURE__ */ new Uint8Array()).length === 1)
|
|
2842
2595
|
/* c8 ignore next */
|
|
2843
2596
|
utf8TextDecoder = null;
|
|
2844
|
-
|
|
2845
2597
|
//#endregion
|
|
2846
2598
|
//#region ../../node_modules/lib0/encoding.js
|
|
2847
2599
|
/**
|
|
2600
|
+
* Efficient schema-less binary encoding with support for variable length encoding.
|
|
2601
|
+
*
|
|
2602
|
+
* Use [lib0/encoding] with [lib0/decoding]. Every encoding function has a corresponding decoding function.
|
|
2603
|
+
*
|
|
2604
|
+
* Encodes numbers in little-endian order (least to most significant byte order)
|
|
2605
|
+
* and is compatible with Golang's binary encoding (https://golang.org/pkg/encoding/binary/)
|
|
2606
|
+
* which is also used in Protocol Buffers.
|
|
2607
|
+
*
|
|
2608
|
+
* ```js
|
|
2609
|
+
* // encoding step
|
|
2610
|
+
* const encoder = encoding.createEncoder()
|
|
2611
|
+
* encoding.writeVarUint(encoder, 256)
|
|
2612
|
+
* encoding.writeVarString(encoder, 'Hello world!')
|
|
2613
|
+
* const buf = encoding.toUint8Array(encoder)
|
|
2614
|
+
* ```
|
|
2615
|
+
*
|
|
2616
|
+
* ```js
|
|
2617
|
+
* // decoding step
|
|
2618
|
+
* const decoder = decoding.createDecoder(buf)
|
|
2619
|
+
* decoding.readVarUint(decoder) // => 256
|
|
2620
|
+
* decoding.readVarString(decoder) // => 'Hello world!'
|
|
2621
|
+
* decoding.hasContent(decoder) // => false - all data is read
|
|
2622
|
+
* ```
|
|
2623
|
+
*
|
|
2624
|
+
* @module encoding
|
|
2625
|
+
*/
|
|
2626
|
+
/**
|
|
2848
2627
|
* A BinaryEncoder handles the encoding to an Uint8Array.
|
|
2849
2628
|
*/
|
|
2850
2629
|
var Encoder = class {
|
|
2851
2630
|
constructor() {
|
|
2852
2631
|
this.cpos = 0;
|
|
2853
|
-
this.cbuf = new Uint8Array(100);
|
|
2632
|
+
this.cbuf = /* @__PURE__ */ new Uint8Array(100);
|
|
2854
2633
|
/**
|
|
2855
2634
|
* @type {Array<Uint8Array>}
|
|
2856
2635
|
*/
|
|
@@ -2916,16 +2695,16 @@ const write = (encoder, num) => {
|
|
|
2916
2695
|
* @param {number} num The number that is to be encoded.
|
|
2917
2696
|
*/
|
|
2918
2697
|
const writeVarUint = (encoder, num) => {
|
|
2919
|
-
while (num >
|
|
2920
|
-
write(encoder,
|
|
2698
|
+
while (num > 127) {
|
|
2699
|
+
write(encoder, 128 | 127 & num);
|
|
2921
2700
|
num = floor(num / 128);
|
|
2922
2701
|
}
|
|
2923
|
-
write(encoder,
|
|
2702
|
+
write(encoder, 127 & num);
|
|
2924
2703
|
};
|
|
2925
2704
|
/**
|
|
2926
2705
|
* A cache to store strings temporarily
|
|
2927
2706
|
*/
|
|
2928
|
-
const _strBuffer = new Uint8Array(3e4);
|
|
2707
|
+
const _strBuffer = /* @__PURE__ */ new Uint8Array(3e4);
|
|
2929
2708
|
const _maxStrBSize = _strBuffer.length / 3;
|
|
2930
2709
|
/**
|
|
2931
2710
|
* Write a variable length string.
|
|
@@ -2953,11 +2732,7 @@ const _writeVarStringPolyfill = (encoder, str) => {
|
|
|
2953
2732
|
const encodedString = unescape(encodeURIComponent(str));
|
|
2954
2733
|
const len = encodedString.length;
|
|
2955
2734
|
writeVarUint(encoder, len);
|
|
2956
|
-
for (let i = 0; i < len; i++) write(
|
|
2957
|
-
encoder,
|
|
2958
|
-
/** @type {number} */
|
|
2959
|
-
encodedString.codePointAt(i)
|
|
2960
|
-
);
|
|
2735
|
+
for (let i = 0; i < len; i++) write(encoder, encodedString.codePointAt(i));
|
|
2961
2736
|
};
|
|
2962
2737
|
/**
|
|
2963
2738
|
* Write a variable length string.
|
|
@@ -3000,8 +2775,6 @@ const writeVarUint8Array = (encoder, uint8Array) => {
|
|
|
3000
2775
|
writeVarUint(encoder, uint8Array.byteLength);
|
|
3001
2776
|
writeUint8Array(encoder, uint8Array);
|
|
3002
2777
|
};
|
|
3003
|
-
const floatTestBed = new DataView(new ArrayBuffer(4));
|
|
3004
|
-
|
|
3005
2778
|
//#endregion
|
|
3006
2779
|
//#region ../../node_modules/lib0/error.js
|
|
3007
2780
|
/**
|
|
@@ -3015,9 +2788,35 @@ const floatTestBed = new DataView(new ArrayBuffer(4));
|
|
|
3015
2788
|
*/
|
|
3016
2789
|
/* c8 ignore next */
|
|
3017
2790
|
const create$1 = (s) => new Error(s);
|
|
3018
|
-
|
|
3019
2791
|
//#endregion
|
|
3020
2792
|
//#region ../../node_modules/lib0/decoding.js
|
|
2793
|
+
/**
|
|
2794
|
+
* Efficient schema-less binary decoding with support for variable length encoding.
|
|
2795
|
+
*
|
|
2796
|
+
* Use [lib0/decoding] with [lib0/encoding]. Every encoding function has a corresponding decoding function.
|
|
2797
|
+
*
|
|
2798
|
+
* Encodes numbers in little-endian order (least to most significant byte order)
|
|
2799
|
+
* and is compatible with Golang's binary encoding (https://golang.org/pkg/encoding/binary/)
|
|
2800
|
+
* which is also used in Protocol Buffers.
|
|
2801
|
+
*
|
|
2802
|
+
* ```js
|
|
2803
|
+
* // encoding step
|
|
2804
|
+
* const encoder = encoding.createEncoder()
|
|
2805
|
+
* encoding.writeVarUint(encoder, 256)
|
|
2806
|
+
* encoding.writeVarString(encoder, 'Hello world!')
|
|
2807
|
+
* const buf = encoding.toUint8Array(encoder)
|
|
2808
|
+
* ```
|
|
2809
|
+
*
|
|
2810
|
+
* ```js
|
|
2811
|
+
* // decoding step
|
|
2812
|
+
* const decoder = decoding.createDecoder(buf)
|
|
2813
|
+
* decoding.readVarUint(decoder) // => 256
|
|
2814
|
+
* decoding.readVarString(decoder) // => 'Hello world!'
|
|
2815
|
+
* decoding.hasContent(decoder) // => false - all data is read
|
|
2816
|
+
* ```
|
|
2817
|
+
*
|
|
2818
|
+
* @module decoding
|
|
2819
|
+
*/
|
|
3021
2820
|
const errorUnexpectedEndOfArray = create$1("Unexpected end of array");
|
|
3022
2821
|
const errorIntegerOutOfRange = create$1("Integer out of Range");
|
|
3023
2822
|
/**
|
|
@@ -3102,9 +2901,9 @@ const readVarUint = (decoder) => {
|
|
|
3102
2901
|
const len = decoder.arr.length;
|
|
3103
2902
|
while (decoder.pos < len) {
|
|
3104
2903
|
const r = decoder.arr[decoder.pos++];
|
|
3105
|
-
num = num + (r &
|
|
2904
|
+
num = num + (r & 127) * mult;
|
|
3106
2905
|
mult *= 128;
|
|
3107
|
-
if (r <
|
|
2906
|
+
if (r < 128) return num;
|
|
3108
2907
|
/* c8 ignore start */
|
|
3109
2908
|
if (num > MAX_SAFE_INTEGER) throw errorIntegerOutOfRange;
|
|
3110
2909
|
}
|
|
@@ -3134,11 +2933,7 @@ const _readVarStringPolyfill = (decoder) => {
|
|
|
3134
2933
|
const nextLen = remainingLen < 1e4 ? remainingLen : 1e4;
|
|
3135
2934
|
const bytes = decoder.arr.subarray(decoder.pos, decoder.pos + nextLen);
|
|
3136
2935
|
decoder.pos += nextLen;
|
|
3137
|
-
encodedString += String.fromCodePoint.apply(
|
|
3138
|
-
null,
|
|
3139
|
-
/** @type {any} */
|
|
3140
|
-
bytes
|
|
3141
|
-
);
|
|
2936
|
+
encodedString += String.fromCodePoint.apply(null, bytes);
|
|
3142
2937
|
remainingLen -= nextLen;
|
|
3143
2938
|
}
|
|
3144
2939
|
return decodeURIComponent(escape(encodedString));
|
|
@@ -3162,39 +2957,6 @@ const _readVarStringNative = (decoder) => utf8TextDecoder.decode(readVarUint8Arr
|
|
|
3162
2957
|
*/
|
|
3163
2958
|
/* c8 ignore next */
|
|
3164
2959
|
const readVarString = utf8TextDecoder ? _readVarStringNative : _readVarStringPolyfill;
|
|
3165
|
-
|
|
3166
|
-
//#endregion
|
|
3167
|
-
//#region ../../node_modules/y-protocols/sync.js
|
|
3168
|
-
/**
|
|
3169
|
-
* @typedef {Map<number, number>} StateMap
|
|
3170
|
-
*/
|
|
3171
|
-
/**
|
|
3172
|
-
* Core Yjs defines two message types:
|
|
3173
|
-
* • YjsSyncStep1: Includes the State Set of the sending client. When received, the client should reply with YjsSyncStep2.
|
|
3174
|
-
* • YjsSyncStep2: Includes all missing structs and the complete delete set. When received, the client is assured that it
|
|
3175
|
-
* received all information from the remote client.
|
|
3176
|
-
*
|
|
3177
|
-
* In a peer-to-peer network, you may want to introduce a SyncDone message type. Both parties should initiate the connection
|
|
3178
|
-
* with SyncStep1. When a client received SyncStep2, it should reply with SyncDone. When the local client received both
|
|
3179
|
-
* SyncStep2 and SyncDone, it is assured that it is synced to the remote client.
|
|
3180
|
-
*
|
|
3181
|
-
* In a client-server model, you want to handle this differently: The client should initiate the connection with SyncStep1.
|
|
3182
|
-
* When the server receives SyncStep1, it should reply with SyncStep2 immediately followed by SyncStep1. The client replies
|
|
3183
|
-
* with SyncStep2 when it receives SyncStep1. Optionally the server may send a SyncDone after it received SyncStep2, so the
|
|
3184
|
-
* client knows that the sync is finished. There are two reasons for this more elaborated sync model: 1. This protocol can
|
|
3185
|
-
* easily be implemented on top of http and websockets. 2. The server should only reply to requests, and not initiate them.
|
|
3186
|
-
* Therefore it is necessary that the client initiates the sync.
|
|
3187
|
-
*
|
|
3188
|
-
* Construction of a message:
|
|
3189
|
-
* [messageType : varUint, message definition..]
|
|
3190
|
-
*
|
|
3191
|
-
* Note: A message does not include information about the room name. This must to be handled by the upper layer protocol!
|
|
3192
|
-
*
|
|
3193
|
-
* stringify[messageType] stringifies a message definition (messageType is already read from the bufffer)
|
|
3194
|
-
*/
|
|
3195
|
-
const messageYjsSyncStep1 = 0;
|
|
3196
|
-
const messageYjsSyncStep2 = 1;
|
|
3197
|
-
const messageYjsUpdate = 2;
|
|
3198
2960
|
/**
|
|
3199
2961
|
* Create a sync step 1 message based on the state of the current shared document.
|
|
3200
2962
|
*
|
|
@@ -3202,8 +2964,8 @@ const messageYjsUpdate = 2;
|
|
|
3202
2964
|
* @param {Y.Doc} doc
|
|
3203
2965
|
*/
|
|
3204
2966
|
const writeSyncStep1 = (encoder, doc) => {
|
|
3205
|
-
writeVarUint(encoder,
|
|
3206
|
-
const sv = Y
|
|
2967
|
+
writeVarUint(encoder, 0);
|
|
2968
|
+
const sv = Y.encodeStateVector(doc);
|
|
3207
2969
|
writeVarUint8Array(encoder, sv);
|
|
3208
2970
|
};
|
|
3209
2971
|
/**
|
|
@@ -3212,8 +2974,8 @@ const writeSyncStep1 = (encoder, doc) => {
|
|
|
3212
2974
|
* @param {Uint8Array} [encodedStateVector]
|
|
3213
2975
|
*/
|
|
3214
2976
|
const writeSyncStep2 = (encoder, doc, encodedStateVector) => {
|
|
3215
|
-
writeVarUint(encoder,
|
|
3216
|
-
writeVarUint8Array(encoder, Y
|
|
2977
|
+
writeVarUint(encoder, 1);
|
|
2978
|
+
writeVarUint8Array(encoder, Y.encodeStateAsUpdate(doc, encodedStateVector));
|
|
3217
2979
|
};
|
|
3218
2980
|
/**
|
|
3219
2981
|
* Read SyncStep1 message and reply with SyncStep2.
|
|
@@ -3233,12 +2995,9 @@ const readSyncStep1 = (decoder, encoder, doc) => writeSyncStep2(encoder, doc, re
|
|
|
3233
2995
|
*/
|
|
3234
2996
|
const readSyncStep2 = (decoder, doc, transactionOrigin, errorHandler) => {
|
|
3235
2997
|
try {
|
|
3236
|
-
Y
|
|
2998
|
+
Y.applyUpdate(doc, readVarUint8Array(decoder), transactionOrigin);
|
|
3237
2999
|
} catch (error) {
|
|
3238
|
-
if (errorHandler != null) errorHandler(
|
|
3239
|
-
/** @type {Error} */
|
|
3240
|
-
error
|
|
3241
|
-
);
|
|
3000
|
+
if (errorHandler != null) errorHandler(error);
|
|
3242
3001
|
console.error("Caught error while handling a Yjs update", error);
|
|
3243
3002
|
}
|
|
3244
3003
|
};
|
|
@@ -3247,7 +3006,7 @@ const readSyncStep2 = (decoder, doc, transactionOrigin, errorHandler) => {
|
|
|
3247
3006
|
* @param {Uint8Array} update
|
|
3248
3007
|
*/
|
|
3249
3008
|
const writeUpdate = (encoder, update) => {
|
|
3250
|
-
writeVarUint(encoder,
|
|
3009
|
+
writeVarUint(encoder, 2);
|
|
3251
3010
|
writeVarUint8Array(encoder, update);
|
|
3252
3011
|
};
|
|
3253
3012
|
/**
|
|
@@ -3269,20 +3028,19 @@ const readUpdate = readSyncStep2;
|
|
|
3269
3028
|
const readSyncMessage = (decoder, encoder, doc, transactionOrigin, errorHandler) => {
|
|
3270
3029
|
const messageType = readVarUint(decoder);
|
|
3271
3030
|
switch (messageType) {
|
|
3272
|
-
case
|
|
3031
|
+
case 0:
|
|
3273
3032
|
readSyncStep1(decoder, encoder, doc);
|
|
3274
3033
|
break;
|
|
3275
|
-
case
|
|
3034
|
+
case 1:
|
|
3276
3035
|
readSyncStep2(decoder, doc, transactionOrigin, errorHandler);
|
|
3277
3036
|
break;
|
|
3278
|
-
case
|
|
3037
|
+
case 2:
|
|
3279
3038
|
readUpdate(decoder, doc, transactionOrigin, errorHandler);
|
|
3280
3039
|
break;
|
|
3281
3040
|
default: throw new Error("Unknown message type");
|
|
3282
3041
|
}
|
|
3283
3042
|
return messageType;
|
|
3284
3043
|
};
|
|
3285
|
-
|
|
3286
3044
|
//#endregion
|
|
3287
3045
|
//#region ../../node_modules/lib0/time.js
|
|
3288
3046
|
/**
|
|
@@ -3291,7 +3049,6 @@ const readSyncMessage = (decoder, encoder, doc, transactionOrigin, errorHandler)
|
|
|
3291
3049
|
* @return {number}
|
|
3292
3050
|
*/
|
|
3293
3051
|
const getUnixTime = Date.now;
|
|
3294
|
-
|
|
3295
3052
|
//#endregion
|
|
3296
3053
|
//#region ../../node_modules/lib0/map.js
|
|
3297
3054
|
/**
|
|
@@ -3312,7 +3069,7 @@ const getUnixTime = Date.now;
|
|
|
3312
3069
|
*
|
|
3313
3070
|
* @function
|
|
3314
3071
|
*/
|
|
3315
|
-
const create = () => new Map();
|
|
3072
|
+
const create = () => /* @__PURE__ */ new Map();
|
|
3316
3073
|
/**
|
|
3317
3074
|
* Get map property. Create T if property is undefined and set T on map.
|
|
3318
3075
|
*
|
|
@@ -3334,9 +3091,13 @@ const setIfUndefined = (map, key, createT) => {
|
|
|
3334
3091
|
if (set === void 0) map.set(key, set = createT());
|
|
3335
3092
|
return set;
|
|
3336
3093
|
};
|
|
3337
|
-
|
|
3338
3094
|
//#endregion
|
|
3339
3095
|
//#region ../../node_modules/lib0/observable.js
|
|
3096
|
+
/**
|
|
3097
|
+
* Observable class prototype.
|
|
3098
|
+
*
|
|
3099
|
+
* @module observable
|
|
3100
|
+
*/
|
|
3340
3101
|
/* c8 ignore start */
|
|
3341
3102
|
/**
|
|
3342
3103
|
* Handles named events.
|
|
@@ -3401,11 +3162,9 @@ var Observable = class {
|
|
|
3401
3162
|
}
|
|
3402
3163
|
};
|
|
3403
3164
|
/* c8 ignore end */
|
|
3404
|
-
|
|
3405
3165
|
//#endregion
|
|
3406
3166
|
//#region ../../node_modules/lib0/trait/equality.js
|
|
3407
3167
|
const EqualityTraitSymbol = Symbol("Equality");
|
|
3408
|
-
|
|
3409
3168
|
//#endregion
|
|
3410
3169
|
//#region ../../node_modules/lib0/object.js
|
|
3411
3170
|
/**
|
|
@@ -3425,7 +3184,6 @@ const size = (obj) => keys(obj).length;
|
|
|
3425
3184
|
* @return {boolean}
|
|
3426
3185
|
*/
|
|
3427
3186
|
const hasProperty = (obj, key) => Object.prototype.hasOwnProperty.call(obj, key);
|
|
3428
|
-
|
|
3429
3187
|
//#endregion
|
|
3430
3188
|
//#region ../../node_modules/lib0/function.js
|
|
3431
3189
|
/* c8 ignore start */
|
|
@@ -3442,21 +3200,18 @@ const equalityDeep = (a, b) => {
|
|
|
3442
3200
|
case ArrayBuffer:
|
|
3443
3201
|
a = new Uint8Array(a);
|
|
3444
3202
|
b = new Uint8Array(b);
|
|
3445
|
-
case Uint8Array:
|
|
3203
|
+
case Uint8Array:
|
|
3446
3204
|
if (a.byteLength !== b.byteLength) return false;
|
|
3447
3205
|
for (let i = 0; i < a.length; i++) if (a[i] !== b[i]) return false;
|
|
3448
3206
|
break;
|
|
3449
|
-
|
|
3450
|
-
case Set: {
|
|
3207
|
+
case Set:
|
|
3451
3208
|
if (a.size !== b.size) return false;
|
|
3452
3209
|
for (const value of a) if (!b.has(value)) return false;
|
|
3453
3210
|
break;
|
|
3454
|
-
|
|
3455
|
-
case Map: {
|
|
3211
|
+
case Map:
|
|
3456
3212
|
if (a.size !== b.size) return false;
|
|
3457
3213
|
for (const key of a.keys()) if (!b.has(key) || !equalityDeep(a.get(key), b.get(key))) return false;
|
|
3458
3214
|
break;
|
|
3459
|
-
}
|
|
3460
3215
|
case void 0:
|
|
3461
3216
|
case Object:
|
|
3462
3217
|
if (size(a) !== size(b)) return false;
|
|
@@ -3470,11 +3225,11 @@ const equalityDeep = (a, b) => {
|
|
|
3470
3225
|
}
|
|
3471
3226
|
return true;
|
|
3472
3227
|
};
|
|
3473
|
-
/* c8 ignore stop */
|
|
3474
|
-
const isArray = isArray$1;
|
|
3475
|
-
|
|
3476
3228
|
//#endregion
|
|
3477
3229
|
//#region ../../node_modules/y-protocols/awareness.js
|
|
3230
|
+
/**
|
|
3231
|
+
* @module awareness-protocol
|
|
3232
|
+
*/
|
|
3478
3233
|
const outdatedTimeout = 3e4;
|
|
3479
3234
|
/**
|
|
3480
3235
|
* @typedef {Object} MetaClientState
|
|
@@ -3514,20 +3269,20 @@ var Awareness = class extends Observable {
|
|
|
3514
3269
|
* Maps from client id to client state
|
|
3515
3270
|
* @type {Map<number, Object<string, any>>}
|
|
3516
3271
|
*/
|
|
3517
|
-
this.states = new Map();
|
|
3272
|
+
this.states = /* @__PURE__ */ new Map();
|
|
3518
3273
|
/**
|
|
3519
3274
|
* @type {Map<number, MetaClientState>}
|
|
3520
3275
|
*/
|
|
3521
|
-
this.meta = new Map();
|
|
3276
|
+
this.meta = /* @__PURE__ */ new Map();
|
|
3522
3277
|
this._checkInterval = setInterval(() => {
|
|
3523
3278
|
const now = getUnixTime();
|
|
3524
|
-
if (this.getLocalState() !== null &&
|
|
3279
|
+
if (this.getLocalState() !== null && 15e3 <= now - this.meta.get(this.clientID).lastUpdated) this.setLocalState(this.getLocalState());
|
|
3525
3280
|
/**
|
|
3526
3281
|
* @type {Array<number>}
|
|
3527
3282
|
*/
|
|
3528
3283
|
const remove = [];
|
|
3529
3284
|
this.meta.forEach((meta, clientid) => {
|
|
3530
|
-
if (clientid !== this.clientID &&
|
|
3285
|
+
if (clientid !== this.clientID && 3e4 <= now - meta.lastUpdated && this.states.has(clientid)) remove.push(clientid);
|
|
3531
3286
|
});
|
|
3532
3287
|
if (remove.length > 0) removeAwarenessStates(this, remove, "timeout");
|
|
3533
3288
|
}, floor(outdatedTimeout / 10));
|
|
@@ -3679,9 +3434,10 @@ const applyAwarenessUpdate = (awareness, update, origin) => {
|
|
|
3679
3434
|
const prevState = awareness.states.get(clientID);
|
|
3680
3435
|
const currClock = clientMeta === void 0 ? 0 : clientMeta.clock;
|
|
3681
3436
|
if (currClock < clock || currClock === clock && state === null && awareness.states.has(clientID)) {
|
|
3682
|
-
if (state === null)
|
|
3683
|
-
|
|
3684
|
-
|
|
3437
|
+
if (state === null) {
|
|
3438
|
+
if (clientID === awareness.clientID && awareness.getLocalState() != null) clock++;
|
|
3439
|
+
else awareness.states.delete(clientID);
|
|
3440
|
+
} else awareness.states.set(clientID, state);
|
|
3685
3441
|
awareness.meta.set(clientID, {
|
|
3686
3442
|
clock,
|
|
3687
3443
|
lastUpdated: timestamp
|
|
@@ -3705,22 +3461,20 @@ const applyAwarenessUpdate = (awareness, update, origin) => {
|
|
|
3705
3461
|
removed
|
|
3706
3462
|
}, origin]);
|
|
3707
3463
|
};
|
|
3708
|
-
|
|
3709
3464
|
//#endregion
|
|
3710
3465
|
//#region src/types.ts
|
|
3711
|
-
let MessageType = /* @__PURE__ */ function(MessageType
|
|
3712
|
-
MessageType
|
|
3713
|
-
MessageType
|
|
3714
|
-
MessageType
|
|
3715
|
-
return MessageType
|
|
3466
|
+
let MessageType = /* @__PURE__ */ function(MessageType) {
|
|
3467
|
+
MessageType["System"] = "system";
|
|
3468
|
+
MessageType["JoinGroup"] = "joinGroup";
|
|
3469
|
+
MessageType["SendToGroup"] = "sendToGroup";
|
|
3470
|
+
return MessageType;
|
|
3716
3471
|
}({});
|
|
3717
|
-
let MessageDataType = /* @__PURE__ */ function(MessageDataType
|
|
3718
|
-
MessageDataType
|
|
3719
|
-
MessageDataType
|
|
3720
|
-
MessageDataType
|
|
3721
|
-
return MessageDataType
|
|
3472
|
+
let MessageDataType = /* @__PURE__ */ function(MessageDataType) {
|
|
3473
|
+
MessageDataType["Init"] = "init";
|
|
3474
|
+
MessageDataType["Sync"] = "sync";
|
|
3475
|
+
MessageDataType["Awareness"] = "awareness";
|
|
3476
|
+
return MessageDataType;
|
|
3722
3477
|
}({});
|
|
3723
|
-
|
|
3724
3478
|
//#endregion
|
|
3725
3479
|
//#region src/constants.ts
|
|
3726
3480
|
const WEAVE_STORE_AZURE_WEB_PUBSUB = "store-azure-web-pubsub";
|
|
@@ -3753,7 +3507,6 @@ const WEAVE_STORE_AZURE_WEB_PUBSUB_SYNC_HOST_DEFAULT_OPTIONS = {
|
|
|
3753
3507
|
attemptsLimit: 12
|
|
3754
3508
|
}
|
|
3755
3509
|
};
|
|
3756
|
-
|
|
3757
3510
|
//#endregion
|
|
3758
3511
|
//#region src/utils.ts
|
|
3759
3512
|
function handleChunkedMessage(chunkedMessagesMap, messageData) {
|
|
@@ -3789,11 +3542,9 @@ function uint8ToBase64(u8) {
|
|
|
3789
3542
|
for (let i = 0; i < u8.length; i += CHUNK) binary += String.fromCodePoint(...u8.subarray(i, i + CHUNK));
|
|
3790
3543
|
return btoa(binary);
|
|
3791
3544
|
}
|
|
3792
|
-
|
|
3793
3545
|
//#endregion
|
|
3794
3546
|
//#region src/yjs.ts
|
|
3795
3547
|
var yjs_default = Y;
|
|
3796
|
-
|
|
3797
3548
|
//#endregion
|
|
3798
3549
|
//#region src/client.ts
|
|
3799
3550
|
const messageSyncStep1 = 0;
|
|
@@ -3804,7 +3555,7 @@ const messageHandlers = [];
|
|
|
3804
3555
|
messageHandlers[messageSyncStep1] = (encoder, decoder, client, clientId, emitSynced, messageType) => {
|
|
3805
3556
|
writeVarUint(encoder, messageType);
|
|
3806
3557
|
const syncMessageType = readSyncMessage(decoder, encoder, client.doc, clientId);
|
|
3807
|
-
if (emitSynced && syncMessageType ===
|
|
3558
|
+
if (emitSynced && syncMessageType === 1 && !client.synced) client.synced = true;
|
|
3808
3559
|
};
|
|
3809
3560
|
messageHandlers[messageQueryAwareness] = (encoder, _, client) => {
|
|
3810
3561
|
writeVarUint(encoder, messageAwareness);
|
|
@@ -3824,6 +3575,26 @@ const readMessage = (client, buf, emitSynced, clientId) => {
|
|
|
3824
3575
|
return encoder;
|
|
3825
3576
|
};
|
|
3826
3577
|
var WeaveStoreAzureWebPubSubSyncClient = class extends Emittery {
|
|
3578
|
+
doc;
|
|
3579
|
+
topic;
|
|
3580
|
+
instance;
|
|
3581
|
+
_ws;
|
|
3582
|
+
_url;
|
|
3583
|
+
_fetchClient;
|
|
3584
|
+
_status;
|
|
3585
|
+
_wsConnected;
|
|
3586
|
+
_synced;
|
|
3587
|
+
_lastReceivedSyncResponse;
|
|
3588
|
+
_connectionRetries;
|
|
3589
|
+
_uuid;
|
|
3590
|
+
_awareness;
|
|
3591
|
+
_initialized;
|
|
3592
|
+
_chunkedMessages;
|
|
3593
|
+
_synClientOptions;
|
|
3594
|
+
_checkHeartbeatId;
|
|
3595
|
+
_lastHeartbeatTime;
|
|
3596
|
+
_updateHandler;
|
|
3597
|
+
_awarenessUpdateHandler;
|
|
3827
3598
|
/**
|
|
3828
3599
|
* @param {string} url
|
|
3829
3600
|
* @param {string} topic
|
|
@@ -3844,7 +3615,7 @@ var WeaveStoreAzureWebPubSubSyncClient = class extends Emittery {
|
|
|
3844
3615
|
this._status = WEAVE_STORE_AZURE_WEB_PUBSUB_CONNECTION_STATUS.DISCONNECTED;
|
|
3845
3616
|
this._wsConnected = false;
|
|
3846
3617
|
this._initialized = false;
|
|
3847
|
-
this._chunkedMessages = new Map();
|
|
3618
|
+
this._chunkedMessages = /* @__PURE__ */ new Map();
|
|
3848
3619
|
this._connectionRetries = 0;
|
|
3849
3620
|
this._synced = false;
|
|
3850
3621
|
this._ws = null;
|
|
@@ -3856,7 +3627,7 @@ var WeaveStoreAzureWebPubSubSyncClient = class extends Emittery {
|
|
|
3856
3627
|
const encoder = createEncoder();
|
|
3857
3628
|
writeVarUint(encoder, messageSyncStep1);
|
|
3858
3629
|
writeUpdate(encoder, update);
|
|
3859
|
-
sendToControlGroup(this, topic,
|
|
3630
|
+
sendToControlGroup(this, topic, "sync", toUint8Array(encoder));
|
|
3860
3631
|
}
|
|
3861
3632
|
};
|
|
3862
3633
|
this.doc.on("update", this._updateHandler);
|
|
@@ -3865,7 +3636,7 @@ var WeaveStoreAzureWebPubSubSyncClient = class extends Emittery {
|
|
|
3865
3636
|
const encoder = createEncoder();
|
|
3866
3637
|
writeVarUint(encoder, messageAwareness);
|
|
3867
3638
|
writeVarUint8Array(encoder, encodeAwarenessUpdate(this.awareness, changedClients));
|
|
3868
|
-
sendToControlGroup(this, topic,
|
|
3639
|
+
sendToControlGroup(this, topic, "awareness", toUint8Array(encoder));
|
|
3869
3640
|
};
|
|
3870
3641
|
this._awareness.on("update", this._awarenessUpdateHandler);
|
|
3871
3642
|
}
|
|
@@ -3888,20 +3659,20 @@ var WeaveStoreAzureWebPubSubSyncClient = class extends Emittery {
|
|
|
3888
3659
|
return this.id;
|
|
3889
3660
|
}
|
|
3890
3661
|
saveLastSyncResponse() {
|
|
3891
|
-
const now = new Date();
|
|
3662
|
+
const now = /* @__PURE__ */ new Date();
|
|
3892
3663
|
this._lastReceivedSyncResponse = now.getTime();
|
|
3893
3664
|
this.instance.emitEvent("onSyncResponse", this._lastReceivedSyncResponse);
|
|
3894
3665
|
}
|
|
3895
3666
|
simulateWebsocketError() {
|
|
3896
|
-
if (this._ws) this._ws._ws.close(4e3, new Error("Simulated error for testing"));
|
|
3667
|
+
if (this._ws) this._ws._ws.close(4e3, /* @__PURE__ */ new Error("Simulated error for testing"));
|
|
3897
3668
|
}
|
|
3898
3669
|
async disconnect() {
|
|
3899
3670
|
if (this._ws !== null) {
|
|
3900
3671
|
const encoder = createEncoder();
|
|
3901
3672
|
writeVarUint(encoder, messageAwareness);
|
|
3902
|
-
writeVarUint8Array(encoder, encodeAwarenessUpdate(this.awareness, [this.doc.clientID], new Map()));
|
|
3673
|
+
writeVarUint8Array(encoder, encodeAwarenessUpdate(this.awareness, [this.doc.clientID], /* @__PURE__ */ new Map()));
|
|
3903
3674
|
const u8 = toUint8Array(encoder);
|
|
3904
|
-
sendToControlGroup(this, this.topic,
|
|
3675
|
+
sendToControlGroup(this, this.topic, "awareness", u8);
|
|
3905
3676
|
removeAwarenessStates(this.awareness, Array.from(this.awareness.getStates().keys()).filter((client) => client !== this.doc.clientID), this);
|
|
3906
3677
|
this._initialized = false;
|
|
3907
3678
|
this._ws.close();
|
|
@@ -3925,10 +3696,8 @@ var WeaveStoreAzureWebPubSubSyncClient = class extends Emittery {
|
|
|
3925
3696
|
const controller = new AbortController();
|
|
3926
3697
|
const timeout = setTimeout(() => controller.abort(), this._synClientOptions.clientConnection.timeoutMs);
|
|
3927
3698
|
const res = await this._fetchClient(connectionURL.toString(), { signal: controller.signal }).finally(() => clearTimeout(timeout));
|
|
3928
|
-
if (res.ok)
|
|
3929
|
-
|
|
3930
|
-
return data.url;
|
|
3931
|
-
} else throw new Error(`Failed to fetch connection url from: ${this._url}`);
|
|
3699
|
+
if (res.ok) return (await res.json()).url;
|
|
3700
|
+
else throw new Error(`Failed to fetch connection url from: ${this._url}`);
|
|
3932
3701
|
} catch (err) {
|
|
3933
3702
|
throw new Error(`Failed to fetch connection url from: ${this._url}`);
|
|
3934
3703
|
}
|
|
@@ -3973,7 +3742,7 @@ var WeaveStoreAzureWebPubSubSyncClient = class extends Emittery {
|
|
|
3973
3742
|
websocket.onmessage = async (event) => {
|
|
3974
3743
|
if (event.data === null) return;
|
|
3975
3744
|
const message = JSON.parse(event.data.toString());
|
|
3976
|
-
if (message.type ===
|
|
3745
|
+
if (message.type === "system") return;
|
|
3977
3746
|
const messageData = message.data;
|
|
3978
3747
|
if (messageData.type === "heartbeat") {
|
|
3979
3748
|
const actualDate = Date.now();
|
|
@@ -3981,11 +3750,11 @@ var WeaveStoreAzureWebPubSubSyncClient = class extends Emittery {
|
|
|
3981
3750
|
return;
|
|
3982
3751
|
}
|
|
3983
3752
|
if (messageData.type === "resync") {
|
|
3984
|
-
const encoder
|
|
3985
|
-
writeVarUint(encoder
|
|
3753
|
+
const encoder = createEncoder();
|
|
3754
|
+
writeVarUint(encoder, messageSyncStep1);
|
|
3986
3755
|
const stateVector = yjs_default.encodeStateVector(this.doc);
|
|
3987
|
-
writeUpdate(encoder
|
|
3988
|
-
sendToControlGroup(this, this.topic,
|
|
3756
|
+
writeUpdate(encoder, yjs_default.encodeStateAsUpdate(this.doc, stateVector));
|
|
3757
|
+
sendToControlGroup(this, this.topic, "sync", toUint8Array(encoder));
|
|
3989
3758
|
return;
|
|
3990
3759
|
}
|
|
3991
3760
|
if (messageData.t !== void 0 && messageData.t !== this._uuid) return;
|
|
@@ -3994,7 +3763,7 @@ var WeaveStoreAzureWebPubSubSyncClient = class extends Emittery {
|
|
|
3994
3763
|
const buffer = handleMessageBufferData(messageData.c, joinedMessagePayload);
|
|
3995
3764
|
if (!buffer) return;
|
|
3996
3765
|
const encoder = readMessage(this, buffer, true, messageData.f);
|
|
3997
|
-
if (length(encoder) > 1) sendToControlGroup(this, this.topic,
|
|
3766
|
+
if (length(encoder) > 1) sendToControlGroup(this, this.topic, "sync", toUint8Array(encoder));
|
|
3998
3767
|
};
|
|
3999
3768
|
websocket.onclose = (e) => {
|
|
4000
3769
|
console.log(`🚫 [Azure Web PubSub] closed, code: ${e.code}`);
|
|
@@ -4021,20 +3790,20 @@ var WeaveStoreAzureWebPubSubSyncClient = class extends Emittery {
|
|
|
4021
3790
|
writeVarUint(encoder, messageSyncStep1);
|
|
4022
3791
|
writeSyncStep1(encoder, this.doc);
|
|
4023
3792
|
const u8 = toUint8Array(encoder);
|
|
4024
|
-
sendToControlGroup(this, this.topic,
|
|
3793
|
+
sendToControlGroup(this, this.topic, "init", u8);
|
|
4025
3794
|
const encoderState = createEncoder();
|
|
4026
3795
|
writeVarUint(encoderState, messageSyncStep1);
|
|
4027
3796
|
writeSyncStep2(encoderState, this.doc);
|
|
4028
|
-
sendToControlGroup(this, this.topic,
|
|
3797
|
+
sendToControlGroup(this, this.topic, "init", u8);
|
|
4029
3798
|
const encoderAwarenessQuery = createEncoder();
|
|
4030
3799
|
writeVarUint(encoderAwarenessQuery, messageQueryAwareness);
|
|
4031
|
-
sendToControlGroup(this, this.topic,
|
|
3800
|
+
sendToControlGroup(this, this.topic, "init", u8);
|
|
4032
3801
|
if (this.awareness.getLocalState() !== null) {
|
|
4033
3802
|
const encoderAwarenessState = createEncoder();
|
|
4034
3803
|
writeVarUint(encoderAwarenessState, messageAwareness);
|
|
4035
3804
|
writeVarUint8Array(encoderAwarenessState, encodeAwarenessUpdate(this.awareness, [this.doc.clientID]));
|
|
4036
3805
|
const u82 = toUint8Array(encoder);
|
|
4037
|
-
sendToControlGroup(this, this.topic,
|
|
3806
|
+
sendToControlGroup(this, this.topic, "awareness", u82);
|
|
4038
3807
|
}
|
|
4039
3808
|
this.setupCheckHeartbeat();
|
|
4040
3809
|
};
|
|
@@ -4047,8 +3816,7 @@ var WeaveStoreAzureWebPubSubSyncClient = class extends Emittery {
|
|
|
4047
3816
|
}
|
|
4048
3817
|
setupCheckHeartbeat() {
|
|
4049
3818
|
this._checkHeartbeatId = setInterval(async () => {
|
|
4050
|
-
|
|
4051
|
-
if (now - this._lastHeartbeatTime > this._synClientOptions.heartbeat.checkWindowTimeMs) {
|
|
3819
|
+
if (Date.now() - this._lastHeartbeatTime > this._synClientOptions.heartbeat.checkWindowTimeMs) {
|
|
4052
3820
|
if (this._checkHeartbeatId) clearInterval(this._checkHeartbeatId);
|
|
4053
3821
|
await this.disconnect();
|
|
4054
3822
|
this.createWebSocket();
|
|
@@ -4065,14 +3833,12 @@ var WeaveStoreAzureWebPubSubSyncClient = class extends Emittery {
|
|
|
4065
3833
|
}
|
|
4066
3834
|
};
|
|
4067
3835
|
function safeSend(data) {
|
|
4068
|
-
|
|
4069
|
-
const bytes = new TextEncoder().encode(data);
|
|
4070
|
-
if (bytes.byteLength > MAX_BYTES) return false;
|
|
3836
|
+
if (new TextEncoder().encode(data).byteLength > 524288) return false;
|
|
4071
3837
|
return true;
|
|
4072
3838
|
}
|
|
4073
3839
|
function joinGroup(client, group) {
|
|
4074
3840
|
const payload = JSON.stringify({
|
|
4075
|
-
type:
|
|
3841
|
+
type: "joinGroup",
|
|
4076
3842
|
group
|
|
4077
3843
|
});
|
|
4078
3844
|
if (!safeSend(payload)) return;
|
|
@@ -4080,7 +3846,7 @@ function joinGroup(client, group) {
|
|
|
4080
3846
|
}
|
|
4081
3847
|
function sendToControlGroup(client, group, type, u8) {
|
|
4082
3848
|
const payload = JSON.stringify({
|
|
4083
|
-
type:
|
|
3849
|
+
type: "sendToGroup",
|
|
4084
3850
|
group: `${group}.host`,
|
|
4085
3851
|
noEcho: true,
|
|
4086
3852
|
data: {
|
|
@@ -4095,19 +3861,17 @@ function sendToControlGroup(client, group, type, u8) {
|
|
|
4095
3861
|
}
|
|
4096
3862
|
client.ws?.send(payload);
|
|
4097
3863
|
}
|
|
4098
|
-
function chunkString(str, size
|
|
3864
|
+
function chunkString(str, size) {
|
|
4099
3865
|
const chunks = [];
|
|
4100
|
-
for (let i = 0; i < str.length; i += size
|
|
3866
|
+
for (let i = 0; i < str.length; i += size) chunks.push(str.slice(i, i + size));
|
|
4101
3867
|
return chunks;
|
|
4102
3868
|
}
|
|
4103
3869
|
function sendToControlGroupChunked(client, group, type, u8) {
|
|
4104
|
-
const
|
|
4105
|
-
const CHUNK_SIZE = 512 * 1024;
|
|
4106
|
-
const chunks = chunkString(base64Data, CHUNK_SIZE);
|
|
3870
|
+
const chunks = chunkString(uint8ToBase64(u8), 524288);
|
|
4107
3871
|
const payloadId = v4();
|
|
4108
3872
|
for (let i = 0; i < chunks.length; i++) {
|
|
4109
|
-
const payload
|
|
4110
|
-
type:
|
|
3873
|
+
const payload = JSON.stringify({
|
|
3874
|
+
type: "sendToGroup",
|
|
4111
3875
|
group: `${group}.host`,
|
|
4112
3876
|
noEcho: true,
|
|
4113
3877
|
data: {
|
|
@@ -4120,10 +3884,10 @@ function sendToControlGroupChunked(client, group, type, u8) {
|
|
|
4120
3884
|
c: chunks[i]
|
|
4121
3885
|
}
|
|
4122
3886
|
});
|
|
4123
|
-
client.ws?.send(payload
|
|
3887
|
+
client.ws?.send(payload);
|
|
4124
3888
|
}
|
|
4125
3889
|
const payload = JSON.stringify({
|
|
4126
|
-
type:
|
|
3890
|
+
type: "sendToGroup",
|
|
4127
3891
|
group: `${group}.host`,
|
|
4128
3892
|
noEcho: true,
|
|
4129
3893
|
data: {
|
|
@@ -4138,13 +3902,19 @@ function sendToControlGroupChunked(client, group, type, u8) {
|
|
|
4138
3902
|
function isRelativeUrl(url) {
|
|
4139
3903
|
return !/^[a-zA-Z][a-zA-Z\d+\-.]*:/.test(url);
|
|
4140
3904
|
}
|
|
4141
|
-
|
|
4142
3905
|
//#endregion
|
|
4143
3906
|
//#region src/store-azure-web-pubsub.ts
|
|
4144
3907
|
var WeaveStoreAzureWebPubsub = class WeaveStoreAzureWebPubsub extends WeaveStore {
|
|
3908
|
+
azureWebPubsubOptions;
|
|
3909
|
+
started;
|
|
3910
|
+
initialRoomData;
|
|
3911
|
+
actualStatus;
|
|
4145
3912
|
indexedDbPersistence = null;
|
|
3913
|
+
roomId;
|
|
3914
|
+
provider;
|
|
4146
3915
|
name = WEAVE_STORE_AZURE_WEB_PUBSUB;
|
|
4147
3916
|
supportsUndoManager = true;
|
|
3917
|
+
awarenessCallback;
|
|
4148
3918
|
constructor(initialRoomData, storeOptions, azureWebPubsubOptions) {
|
|
4149
3919
|
super(storeOptions);
|
|
4150
3920
|
const { roomId } = azureWebPubsubOptions;
|
|
@@ -4205,8 +3975,8 @@ var WeaveStoreAzureWebPubsub = class WeaveStoreAzureWebPubsub extends WeaveStore
|
|
|
4205
3975
|
awareness.on("update", this.handleAwarenessChange.bind(this));
|
|
4206
3976
|
awareness.on("change", this.handleAwarenessChange.bind(this));
|
|
4207
3977
|
window.addEventListener("beforeunload", () => {
|
|
4208
|
-
const awareness
|
|
4209
|
-
if (awareness
|
|
3978
|
+
const awareness = this.provider.awareness;
|
|
3979
|
+
if (awareness) awareness.destroy();
|
|
4210
3980
|
});
|
|
4211
3981
|
this.provider.on("error", () => {
|
|
4212
3982
|
this.handleConnectionStatusChange(WEAVE_STORE_CONNECTION_STATUS.DISCONNECTED);
|
|
@@ -4269,10 +4039,8 @@ var WeaveStoreAzureWebPubsub = class WeaveStoreAzureWebPubsub extends WeaveStore
|
|
|
4269
4039
|
if (emit) this.instance.emitEvent("onAwarenessChange", values);
|
|
4270
4040
|
}
|
|
4271
4041
|
setAwarenessInfo(field, value) {
|
|
4272
|
-
|
|
4273
|
-
awareness.setLocalStateField(field, value);
|
|
4042
|
+
this.provider.awareness.setLocalStateField(field, value);
|
|
4274
4043
|
}
|
|
4275
4044
|
};
|
|
4276
|
-
|
|
4277
4045
|
//#endregion
|
|
4278
|
-
export { MessageDataType, MessageType, WEAVE_STORE_AZURE_WEB_PUBSUB, WEAVE_STORE_AZURE_WEB_PUBSUB_CONNECTION_STATUS, WEAVE_STORE_AZURE_WEB_PUBSUB_DESTROY_ROOM_STATUS, WEAVE_STORE_AZURE_WEB_PUBSUB_SYNC_CLIENT_DEFAULT_OPTIONS, WEAVE_STORE_AZURE_WEB_PUBSUB_SYNC_HOST_DEFAULT_OPTIONS, WEAVE_STORE_HORIZONTAL_SYNC_HANDLER_CLIENT_TYPE, WeaveStoreAzureWebPubsub };
|
|
4046
|
+
export { MessageDataType, MessageType, WEAVE_STORE_AZURE_WEB_PUBSUB, WEAVE_STORE_AZURE_WEB_PUBSUB_CONNECTION_STATUS, WEAVE_STORE_AZURE_WEB_PUBSUB_DESTROY_ROOM_STATUS, WEAVE_STORE_AZURE_WEB_PUBSUB_SYNC_CLIENT_DEFAULT_OPTIONS, WEAVE_STORE_AZURE_WEB_PUBSUB_SYNC_HOST_DEFAULT_OPTIONS, WEAVE_STORE_HORIZONTAL_SYNC_HANDLER_CLIENT_TYPE, WeaveStoreAzureWebPubsub };
|