@rspress/plugin-medium-zoom 0.0.0-next-20230926070920 → 0.0.0-next-20231020055855

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/index.js CHANGED
@@ -3,98 +3,6 @@ import path from "path";
3
3
  import { fileURLToPath } from "url";
4
4
 
5
5
  // ../shared/dist/index.mjs
6
- function listCacheClear() {
7
- this.__data__ = [];
8
- this.size = 0;
9
- }
10
- var listCacheClear_default = listCacheClear;
11
- function eq(value, other) {
12
- return value === other || value !== value && other !== other;
13
- }
14
- var eq_default = eq;
15
- function assocIndexOf(array, key) {
16
- var length = array.length;
17
- while (length--) {
18
- if (eq_default(array[length][0], key)) {
19
- return length;
20
- }
21
- }
22
- return -1;
23
- }
24
- var assocIndexOf_default = assocIndexOf;
25
- var arrayProto = Array.prototype;
26
- var splice = arrayProto.splice;
27
- function listCacheDelete(key) {
28
- var data = this.__data__, index = assocIndexOf_default(data, key);
29
- if (index < 0) {
30
- return false;
31
- }
32
- var lastIndex = data.length - 1;
33
- if (index == lastIndex) {
34
- data.pop();
35
- } else {
36
- splice.call(data, index, 1);
37
- }
38
- --this.size;
39
- return true;
40
- }
41
- var listCacheDelete_default = listCacheDelete;
42
- function listCacheGet(key) {
43
- var data = this.__data__, index = assocIndexOf_default(data, key);
44
- return index < 0 ? void 0 : data[index][1];
45
- }
46
- var listCacheGet_default = listCacheGet;
47
- function listCacheHas(key) {
48
- return assocIndexOf_default(this.__data__, key) > -1;
49
- }
50
- var listCacheHas_default = listCacheHas;
51
- function listCacheSet(key, value) {
52
- var data = this.__data__, index = assocIndexOf_default(data, key);
53
- if (index < 0) {
54
- ++this.size;
55
- data.push([
56
- key,
57
- value
58
- ]);
59
- } else {
60
- data[index][1] = value;
61
- }
62
- return this;
63
- }
64
- var listCacheSet_default = listCacheSet;
65
- function ListCache(entries) {
66
- var index = -1, length = entries == null ? 0 : entries.length;
67
- this.clear();
68
- while (++index < length) {
69
- var entry = entries[index];
70
- this.set(entry[0], entry[1]);
71
- }
72
- }
73
- ListCache.prototype.clear = listCacheClear_default;
74
- ListCache.prototype["delete"] = listCacheDelete_default;
75
- ListCache.prototype.get = listCacheGet_default;
76
- ListCache.prototype.has = listCacheHas_default;
77
- ListCache.prototype.set = listCacheSet_default;
78
- var ListCache_default = ListCache;
79
- function stackClear() {
80
- this.__data__ = new ListCache_default();
81
- this.size = 0;
82
- }
83
- var stackClear_default = stackClear;
84
- function stackDelete(key) {
85
- var data = this.__data__, result = data["delete"](key);
86
- this.size = data.size;
87
- return result;
88
- }
89
- var stackDelete_default = stackDelete;
90
- function stackGet(key) {
91
- return this.__data__.get(key);
92
- }
93
- var stackGet_default = stackGet;
94
- function stackHas(key) {
95
- return this.__data__.has(key);
96
- }
97
- var stackHas_default = stackHas;
98
6
  var freeGlobal = typeof global == "object" && global && global.Object === Object && global;
99
7
  var freeGlobal_default = freeGlobal;
100
8
  var freeSelf = typeof self == "object" && self && self.Object === Object && self;
@@ -140,11 +48,21 @@ function baseGetTag(value) {
140
48
  return symToStringTag2 && symToStringTag2 in Object(value) ? getRawTag_default(value) : objectToString_default(value);
141
49
  }
142
50
  var baseGetTag_default = baseGetTag;
51
+ function isObjectLike(value) {
52
+ return value != null && typeof value == "object";
53
+ }
54
+ var isObjectLike_default = isObjectLike;
55
+ var isArray = Array.isArray;
56
+ var isArray_default = isArray;
143
57
  function isObject(value) {
144
58
  var type = typeof value;
145
59
  return value != null && (type == "object" || type == "function");
146
60
  }
147
61
  var isObject_default = isObject;
62
+ function identity(value) {
63
+ return value;
64
+ }
65
+ var identity_default = identity;
148
66
  var asyncTag = "[object AsyncFunction]";
149
67
  var funcTag = "[object Function]";
150
68
  var genTag = "[object GeneratorFunction]";
@@ -189,7 +107,9 @@ var funcProto2 = Function.prototype;
189
107
  var objectProto3 = Object.prototype;
190
108
  var funcToString2 = funcProto2.toString;
191
109
  var hasOwnProperty2 = objectProto3.hasOwnProperty;
192
- var reIsNative = RegExp("^" + funcToString2.call(hasOwnProperty2).replace(reRegExpChar, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$");
110
+ var reIsNative = RegExp(
111
+ "^" + funcToString2.call(hasOwnProperty2).replace(reRegExpChar, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
112
+ );
193
113
  function baseIsNative(value) {
194
114
  if (!isObject_default(value) || isMasked_default(value)) {
195
115
  return false;
@@ -207,323 +127,245 @@ function getNative(object, key) {
207
127
  return baseIsNative_default(value) ? value : void 0;
208
128
  }
209
129
  var getNative_default = getNative;
210
- var Map = getNative_default(root_default, "Map");
211
- var Map_default = Map;
212
- var nativeCreate = getNative_default(Object, "create");
213
- var nativeCreate_default = nativeCreate;
214
- function hashClear() {
215
- this.__data__ = nativeCreate_default ? nativeCreate_default(null) : {};
216
- this.size = 0;
217
- }
218
- var hashClear_default = hashClear;
219
- function hashDelete(key) {
220
- var result = this.has(key) && delete this.__data__[key];
221
- this.size -= result ? 1 : 0;
222
- return result;
223
- }
224
- var hashDelete_default = hashDelete;
225
- var HASH_UNDEFINED = "__lodash_hash_undefined__";
226
- var objectProto4 = Object.prototype;
227
- var hasOwnProperty3 = objectProto4.hasOwnProperty;
228
- function hashGet(key) {
229
- var data = this.__data__;
230
- if (nativeCreate_default) {
231
- var result = data[key];
232
- return result === HASH_UNDEFINED ? void 0 : result;
130
+ var objectCreate = Object.create;
131
+ var baseCreate = function() {
132
+ function object() {
233
133
  }
234
- return hasOwnProperty3.call(data, key) ? data[key] : void 0;
235
- }
236
- var hashGet_default = hashGet;
237
- var objectProto5 = Object.prototype;
238
- var hasOwnProperty4 = objectProto5.hasOwnProperty;
239
- function hashHas(key) {
240
- var data = this.__data__;
241
- return nativeCreate_default ? data[key] !== void 0 : hasOwnProperty4.call(data, key);
242
- }
243
- var hashHas_default = hashHas;
244
- var HASH_UNDEFINED2 = "__lodash_hash_undefined__";
245
- function hashSet(key, value) {
246
- var data = this.__data__;
247
- this.size += this.has(key) ? 0 : 1;
248
- data[key] = nativeCreate_default && value === void 0 ? HASH_UNDEFINED2 : value;
249
- return this;
134
+ return function(proto) {
135
+ if (!isObject_default(proto)) {
136
+ return {};
137
+ }
138
+ if (objectCreate) {
139
+ return objectCreate(proto);
140
+ }
141
+ object.prototype = proto;
142
+ var result = new object();
143
+ object.prototype = void 0;
144
+ return result;
145
+ };
146
+ }();
147
+ var baseCreate_default = baseCreate;
148
+ function apply(func, thisArg, args) {
149
+ switch (args.length) {
150
+ case 0:
151
+ return func.call(thisArg);
152
+ case 1:
153
+ return func.call(thisArg, args[0]);
154
+ case 2:
155
+ return func.call(thisArg, args[0], args[1]);
156
+ case 3:
157
+ return func.call(thisArg, args[0], args[1], args[2]);
158
+ }
159
+ return func.apply(thisArg, args);
250
160
  }
251
- var hashSet_default = hashSet;
252
- function Hash(entries) {
253
- var index = -1, length = entries == null ? 0 : entries.length;
254
- this.clear();
161
+ var apply_default = apply;
162
+ function copyArray(source, array) {
163
+ var index = -1, length = source.length;
164
+ array || (array = Array(length));
255
165
  while (++index < length) {
256
- var entry = entries[index];
257
- this.set(entry[0], entry[1]);
166
+ array[index] = source[index];
258
167
  }
168
+ return array;
259
169
  }
260
- Hash.prototype.clear = hashClear_default;
261
- Hash.prototype["delete"] = hashDelete_default;
262
- Hash.prototype.get = hashGet_default;
263
- Hash.prototype.has = hashHas_default;
264
- Hash.prototype.set = hashSet_default;
265
- var Hash_default = Hash;
266
- function mapCacheClear() {
267
- this.size = 0;
268
- this.__data__ = {
269
- "hash": new Hash_default(),
270
- "map": new (Map_default || ListCache_default)(),
271
- "string": new Hash_default()
170
+ var copyArray_default = copyArray;
171
+ var HOT_COUNT = 800;
172
+ var HOT_SPAN = 16;
173
+ var nativeNow = Date.now;
174
+ function shortOut(func) {
175
+ var count = 0, lastCalled = 0;
176
+ return function() {
177
+ var stamp = nativeNow(), remaining = HOT_SPAN - (stamp - lastCalled);
178
+ lastCalled = stamp;
179
+ if (remaining > 0) {
180
+ if (++count >= HOT_COUNT) {
181
+ return arguments[0];
182
+ }
183
+ } else {
184
+ count = 0;
185
+ }
186
+ return func.apply(void 0, arguments);
272
187
  };
273
188
  }
274
- var mapCacheClear_default = mapCacheClear;
275
- function isKeyable(value) {
189
+ var shortOut_default = shortOut;
190
+ function constant(value) {
191
+ return function() {
192
+ return value;
193
+ };
194
+ }
195
+ var constant_default = constant;
196
+ var defineProperty = function() {
197
+ try {
198
+ var func = getNative_default(Object, "defineProperty");
199
+ func({}, "", {});
200
+ return func;
201
+ } catch (e) {
202
+ }
203
+ }();
204
+ var defineProperty_default = defineProperty;
205
+ var baseSetToString = !defineProperty_default ? identity_default : function(func, string) {
206
+ return defineProperty_default(func, "toString", {
207
+ "configurable": true,
208
+ "enumerable": false,
209
+ "value": constant_default(string),
210
+ "writable": true
211
+ });
212
+ };
213
+ var baseSetToString_default = baseSetToString;
214
+ var setToString = shortOut_default(baseSetToString_default);
215
+ var setToString_default = setToString;
216
+ var MAX_SAFE_INTEGER = 9007199254740991;
217
+ var reIsUint = /^(?:0|[1-9]\d*)$/;
218
+ function isIndex(value, length) {
276
219
  var type = typeof value;
277
- return type == "string" || type == "number" || type == "symbol" || type == "boolean" ? value !== "__proto__" : value === null;
220
+ length = length == null ? MAX_SAFE_INTEGER : length;
221
+ return !!length && (type == "number" || type != "symbol" && reIsUint.test(value)) && (value > -1 && value % 1 == 0 && value < length);
278
222
  }
279
- var isKeyable_default = isKeyable;
280
- function getMapData(map, key) {
281
- var data = map.__data__;
282
- return isKeyable_default(key) ? data[typeof key == "string" ? "string" : "hash"] : data.map;
223
+ var isIndex_default = isIndex;
224
+ function baseAssignValue(object, key, value) {
225
+ if (key == "__proto__" && defineProperty_default) {
226
+ defineProperty_default(object, key, {
227
+ "configurable": true,
228
+ "enumerable": true,
229
+ "value": value,
230
+ "writable": true
231
+ });
232
+ } else {
233
+ object[key] = value;
234
+ }
283
235
  }
284
- var getMapData_default = getMapData;
285
- function mapCacheDelete(key) {
286
- var result = getMapData_default(this, key)["delete"](key);
287
- this.size -= result ? 1 : 0;
288
- return result;
289
- }
290
- var mapCacheDelete_default = mapCacheDelete;
291
- function mapCacheGet(key) {
292
- return getMapData_default(this, key).get(key);
293
- }
294
- var mapCacheGet_default = mapCacheGet;
295
- function mapCacheHas(key) {
296
- return getMapData_default(this, key).has(key);
297
- }
298
- var mapCacheHas_default = mapCacheHas;
299
- function mapCacheSet(key, value) {
300
- var data = getMapData_default(this, key), size = data.size;
301
- data.set(key, value);
302
- this.size += data.size == size ? 0 : 1;
303
- return this;
236
+ var baseAssignValue_default = baseAssignValue;
237
+ function eq(value, other) {
238
+ return value === other || value !== value && other !== other;
304
239
  }
305
- var mapCacheSet_default = mapCacheSet;
306
- function MapCache(entries) {
307
- var index = -1, length = entries == null ? 0 : entries.length;
308
- this.clear();
309
- while (++index < length) {
310
- var entry = entries[index];
311
- this.set(entry[0], entry[1]);
240
+ var eq_default = eq;
241
+ var objectProto4 = Object.prototype;
242
+ var hasOwnProperty3 = objectProto4.hasOwnProperty;
243
+ function assignValue(object, key, value) {
244
+ var objValue = object[key];
245
+ if (!(hasOwnProperty3.call(object, key) && eq_default(objValue, value)) || value === void 0 && !(key in object)) {
246
+ baseAssignValue_default(object, key, value);
312
247
  }
313
248
  }
314
- MapCache.prototype.clear = mapCacheClear_default;
315
- MapCache.prototype["delete"] = mapCacheDelete_default;
316
- MapCache.prototype.get = mapCacheGet_default;
317
- MapCache.prototype.has = mapCacheHas_default;
318
- MapCache.prototype.set = mapCacheSet_default;
319
- var MapCache_default = MapCache;
320
- var LARGE_ARRAY_SIZE = 200;
321
- function stackSet(key, value) {
322
- var data = this.__data__;
323
- if (data instanceof ListCache_default) {
324
- var pairs = data.__data__;
325
- if (!Map_default || pairs.length < LARGE_ARRAY_SIZE - 1) {
326
- pairs.push([
327
- key,
328
- value
329
- ]);
330
- this.size = ++data.size;
331
- return this;
249
+ var assignValue_default = assignValue;
250
+ function copyObject(source, props, object, customizer) {
251
+ var isNew = !object;
252
+ object || (object = {});
253
+ var index = -1, length = props.length;
254
+ while (++index < length) {
255
+ var key = props[index];
256
+ var newValue = customizer ? customizer(object[key], source[key], key, object, source) : void 0;
257
+ if (newValue === void 0) {
258
+ newValue = source[key];
259
+ }
260
+ if (isNew) {
261
+ baseAssignValue_default(object, key, newValue);
262
+ } else {
263
+ assignValue_default(object, key, newValue);
332
264
  }
333
- data = this.__data__ = new MapCache_default(pairs);
334
- }
335
- data.set(key, value);
336
- this.size = data.size;
337
- return this;
338
- }
339
- var stackSet_default = stackSet;
340
- function Stack(entries) {
341
- var data = this.__data__ = new ListCache_default(entries);
342
- this.size = data.size;
343
- }
344
- Stack.prototype.clear = stackClear_default;
345
- Stack.prototype["delete"] = stackDelete_default;
346
- Stack.prototype.get = stackGet_default;
347
- Stack.prototype.has = stackHas_default;
348
- Stack.prototype.set = stackSet_default;
349
- var Stack_default = Stack;
350
- var defineProperty = function() {
351
- try {
352
- var func = getNative_default(Object, "defineProperty");
353
- func({}, "", {});
354
- return func;
355
- } catch (e) {
356
- }
357
- }();
358
- var defineProperty_default = defineProperty;
359
- function baseAssignValue(object, key, value) {
360
- if (key == "__proto__" && defineProperty_default) {
361
- defineProperty_default(object, key, {
362
- "configurable": true,
363
- "enumerable": true,
364
- "value": value,
365
- "writable": true
366
- });
367
- } else {
368
- object[key] = value;
369
- }
370
- }
371
- var baseAssignValue_default = baseAssignValue;
372
- function assignMergeValue(object, key, value) {
373
- if (value !== void 0 && !eq_default(object[key], value) || value === void 0 && !(key in object)) {
374
- baseAssignValue_default(object, key, value);
375
265
  }
266
+ return object;
376
267
  }
377
- var assignMergeValue_default = assignMergeValue;
378
- function createBaseFor(fromRight) {
379
- return function(object, iteratee, keysFunc) {
380
- var index = -1, iterable = Object(object), props = keysFunc(object), length = props.length;
381
- while (length--) {
382
- var key = props[fromRight ? length : ++index];
383
- if (iteratee(iterable[key], key, iterable) === false) {
384
- break;
385
- }
268
+ var copyObject_default = copyObject;
269
+ var nativeMax = Math.max;
270
+ function overRest(func, start, transform) {
271
+ start = nativeMax(start === void 0 ? func.length - 1 : start, 0);
272
+ return function() {
273
+ var args = arguments, index = -1, length = nativeMax(args.length - start, 0), array = Array(length);
274
+ while (++index < length) {
275
+ array[index] = args[start + index];
386
276
  }
387
- return object;
277
+ index = -1;
278
+ var otherArgs = Array(start + 1);
279
+ while (++index < start) {
280
+ otherArgs[index] = args[index];
281
+ }
282
+ otherArgs[start] = transform(array);
283
+ return apply_default(func, this, otherArgs);
388
284
  };
389
285
  }
390
- var createBaseFor_default = createBaseFor;
391
- var baseFor = createBaseFor_default();
392
- var baseFor_default = baseFor;
393
- var freeExports = typeof exports == "object" && exports && !exports.nodeType && exports;
394
- var freeModule = freeExports && typeof module == "object" && module && !module.nodeType && module;
395
- var moduleExports = freeModule && freeModule.exports === freeExports;
396
- var Buffer = moduleExports ? root_default.Buffer : void 0;
397
- var allocUnsafe = Buffer ? Buffer.allocUnsafe : void 0;
398
- function cloneBuffer(buffer, isDeep) {
399
- if (isDeep) {
400
- return buffer.slice();
401
- }
402
- var length = buffer.length, result = allocUnsafe ? allocUnsafe(length) : new buffer.constructor(length);
403
- buffer.copy(result);
404
- return result;
286
+ var overRest_default = overRest;
287
+ function baseRest(func, start) {
288
+ return setToString_default(overRest_default(func, start, identity_default), func + "");
405
289
  }
406
- var cloneBuffer_default = cloneBuffer;
407
- var Uint8Array = root_default.Uint8Array;
408
- var Uint8Array_default = Uint8Array;
409
- function cloneArrayBuffer(arrayBuffer) {
410
- var result = new arrayBuffer.constructor(arrayBuffer.byteLength);
411
- new Uint8Array_default(result).set(new Uint8Array_default(arrayBuffer));
412
- return result;
290
+ var baseRest_default = baseRest;
291
+ var MAX_SAFE_INTEGER2 = 9007199254740991;
292
+ function isLength(value) {
293
+ return typeof value == "number" && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER2;
413
294
  }
414
- var cloneArrayBuffer_default = cloneArrayBuffer;
415
- function cloneTypedArray(typedArray, isDeep) {
416
- var buffer = isDeep ? cloneArrayBuffer_default(typedArray.buffer) : typedArray.buffer;
417
- return new typedArray.constructor(buffer, typedArray.byteOffset, typedArray.length);
295
+ var isLength_default = isLength;
296
+ function isArrayLike(value) {
297
+ return value != null && isLength_default(value.length) && !isFunction_default(value);
418
298
  }
419
- var cloneTypedArray_default = cloneTypedArray;
420
- function copyArray(source, array) {
421
- var index = -1, length = source.length;
422
- array || (array = Array(length));
423
- while (++index < length) {
424
- array[index] = source[index];
299
+ var isArrayLike_default = isArrayLike;
300
+ function isIterateeCall(value, index, object) {
301
+ if (!isObject_default(object)) {
302
+ return false;
425
303
  }
426
- return array;
427
- }
428
- var copyArray_default = copyArray;
429
- var objectCreate = Object.create;
430
- var baseCreate = function() {
431
- function object() {
304
+ var type = typeof index;
305
+ if (type == "number" ? isArrayLike_default(object) && isIndex_default(index, object.length) : type == "string" && index in object) {
306
+ return eq_default(object[index], value);
432
307
  }
433
- return function(proto) {
434
- if (!isObject_default(proto)) {
435
- return {};
308
+ return false;
309
+ }
310
+ var isIterateeCall_default = isIterateeCall;
311
+ function createAssigner(assigner) {
312
+ return baseRest_default(function(object, sources) {
313
+ var index = -1, length = sources.length, customizer = length > 1 ? sources[length - 1] : void 0, guard = length > 2 ? sources[2] : void 0;
314
+ customizer = assigner.length > 3 && typeof customizer == "function" ? (length--, customizer) : void 0;
315
+ if (guard && isIterateeCall_default(sources[0], sources[1], guard)) {
316
+ customizer = length < 3 ? void 0 : customizer;
317
+ length = 1;
436
318
  }
437
- if (objectCreate) {
438
- return objectCreate(proto);
319
+ object = Object(object);
320
+ while (++index < length) {
321
+ var source = sources[index];
322
+ if (source) {
323
+ assigner(object, source, index, customizer);
324
+ }
439
325
  }
440
- object.prototype = proto;
441
- var result = new object();
442
- object.prototype = void 0;
443
- return result;
444
- };
445
- }();
446
- var baseCreate_default = baseCreate;
447
- function overArg(func, transform) {
448
- return function(arg) {
449
- return func(transform(arg));
450
- };
326
+ return object;
327
+ });
451
328
  }
452
- var overArg_default = overArg;
453
- var getPrototype = overArg_default(Object.getPrototypeOf, Object);
454
- var getPrototype_default = getPrototype;
455
- var objectProto6 = Object.prototype;
329
+ var createAssigner_default = createAssigner;
330
+ var objectProto5 = Object.prototype;
456
331
  function isPrototype(value) {
457
- var Ctor = value && value.constructor, proto = typeof Ctor == "function" && Ctor.prototype || objectProto6;
332
+ var Ctor = value && value.constructor, proto = typeof Ctor == "function" && Ctor.prototype || objectProto5;
458
333
  return value === proto;
459
334
  }
460
335
  var isPrototype_default = isPrototype;
461
- function initCloneObject(object) {
462
- return typeof object.constructor == "function" && !isPrototype_default(object) ? baseCreate_default(getPrototype_default(object)) : {};
463
- }
464
- var initCloneObject_default = initCloneObject;
465
- function isObjectLike(value) {
466
- return value != null && typeof value == "object";
336
+ function baseTimes(n, iteratee) {
337
+ var index = -1, result = Array(n);
338
+ while (++index < n) {
339
+ result[index] = iteratee(index);
340
+ }
341
+ return result;
467
342
  }
468
- var isObjectLike_default = isObjectLike;
343
+ var baseTimes_default = baseTimes;
469
344
  var argsTag = "[object Arguments]";
470
345
  function baseIsArguments(value) {
471
346
  return isObjectLike_default(value) && baseGetTag_default(value) == argsTag;
472
347
  }
473
348
  var baseIsArguments_default = baseIsArguments;
474
- var objectProto7 = Object.prototype;
475
- var hasOwnProperty5 = objectProto7.hasOwnProperty;
476
- var propertyIsEnumerable = objectProto7.propertyIsEnumerable;
349
+ var objectProto6 = Object.prototype;
350
+ var hasOwnProperty4 = objectProto6.hasOwnProperty;
351
+ var propertyIsEnumerable = objectProto6.propertyIsEnumerable;
477
352
  var isArguments = baseIsArguments_default(function() {
478
353
  return arguments;
479
354
  }()) ? baseIsArguments_default : function(value) {
480
- return isObjectLike_default(value) && hasOwnProperty5.call(value, "callee") && !propertyIsEnumerable.call(value, "callee");
355
+ return isObjectLike_default(value) && hasOwnProperty4.call(value, "callee") && !propertyIsEnumerable.call(value, "callee");
481
356
  };
482
357
  var isArguments_default = isArguments;
483
- var isArray = Array.isArray;
484
- var isArray_default = isArray;
485
- var MAX_SAFE_INTEGER = 9007199254740991;
486
- function isLength(value) {
487
- return typeof value == "number" && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
488
- }
489
- var isLength_default = isLength;
490
- function isArrayLike(value) {
491
- return value != null && isLength_default(value.length) && !isFunction_default(value);
492
- }
493
- var isArrayLike_default = isArrayLike;
494
- function isArrayLikeObject(value) {
495
- return isObjectLike_default(value) && isArrayLike_default(value);
496
- }
497
- var isArrayLikeObject_default = isArrayLikeObject;
498
358
  function stubFalse() {
499
359
  return false;
500
360
  }
501
361
  var stubFalse_default = stubFalse;
502
- var freeExports2 = typeof exports == "object" && exports && !exports.nodeType && exports;
503
- var freeModule2 = freeExports2 && typeof module == "object" && module && !module.nodeType && module;
504
- var moduleExports2 = freeModule2 && freeModule2.exports === freeExports2;
505
- var Buffer2 = moduleExports2 ? root_default.Buffer : void 0;
506
- var nativeIsBuffer = Buffer2 ? Buffer2.isBuffer : void 0;
507
- var isBuffer = nativeIsBuffer || stubFalse_default;
508
- var isBuffer_default = isBuffer;
509
- var objectTag = "[object Object]";
510
- var funcProto3 = Function.prototype;
511
- var objectProto8 = Object.prototype;
512
- var funcToString3 = funcProto3.toString;
513
- var hasOwnProperty6 = objectProto8.hasOwnProperty;
514
- var objectCtorString = funcToString3.call(Object);
515
- function isPlainObject(value) {
516
- if (!isObjectLike_default(value) || baseGetTag_default(value) != objectTag) {
517
- return false;
518
- }
519
- var proto = getPrototype_default(value);
520
- if (proto === null) {
521
- return true;
522
- }
523
- var Ctor = hasOwnProperty6.call(proto, "constructor") && proto.constructor;
524
- return typeof Ctor == "function" && Ctor instanceof Ctor && funcToString3.call(Ctor) == objectCtorString;
525
- }
526
- var isPlainObject_default = isPlainObject;
362
+ var freeExports = typeof exports == "object" && exports && !exports.nodeType && exports;
363
+ var freeModule = freeExports && typeof module == "object" && module && !module.nodeType && module;
364
+ var moduleExports = freeModule && freeModule.exports === freeExports;
365
+ var Buffer = moduleExports ? root_default.Buffer : void 0;
366
+ var nativeIsBuffer = Buffer ? Buffer.isBuffer : void 0;
367
+ var isBuffer = nativeIsBuffer || stubFalse_default;
368
+ var isBuffer_default = isBuffer;
527
369
  var argsTag2 = "[object Arguments]";
528
370
  var arrayTag = "[object Array]";
529
371
  var boolTag = "[object Boolean]";
@@ -532,7 +374,7 @@ var errorTag = "[object Error]";
532
374
  var funcTag2 = "[object Function]";
533
375
  var mapTag = "[object Map]";
534
376
  var numberTag = "[object Number]";
535
- var objectTag2 = "[object Object]";
377
+ var objectTag = "[object Object]";
536
378
  var regexpTag = "[object RegExp]";
537
379
  var setTag = "[object Set]";
538
380
  var stringTag = "[object String]";
@@ -550,7 +392,7 @@ var uint16Tag = "[object Uint16Array]";
550
392
  var uint32Tag = "[object Uint32Array]";
551
393
  var typedArrayTags = {};
552
394
  typedArrayTags[float32Tag] = typedArrayTags[float64Tag] = typedArrayTags[int8Tag] = typedArrayTags[int16Tag] = typedArrayTags[int32Tag] = typedArrayTags[uint8Tag] = typedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] = typedArrayTags[uint32Tag] = true;
553
- typedArrayTags[argsTag2] = typedArrayTags[arrayTag] = typedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] = typedArrayTags[dataViewTag] = typedArrayTags[dateTag] = typedArrayTags[errorTag] = typedArrayTags[funcTag2] = typedArrayTags[mapTag] = typedArrayTags[numberTag] = typedArrayTags[objectTag2] = typedArrayTags[regexpTag] = typedArrayTags[setTag] = typedArrayTags[stringTag] = typedArrayTags[weakMapTag] = false;
395
+ typedArrayTags[argsTag2] = typedArrayTags[arrayTag] = typedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] = typedArrayTags[dataViewTag] = typedArrayTags[dateTag] = typedArrayTags[errorTag] = typedArrayTags[funcTag2] = typedArrayTags[mapTag] = typedArrayTags[numberTag] = typedArrayTags[objectTag] = typedArrayTags[regexpTag] = typedArrayTags[setTag] = typedArrayTags[stringTag] = typedArrayTags[weakMapTag] = false;
554
396
  function baseIsTypedArray(value) {
555
397
  return isObjectLike_default(value) && isLength_default(value.length) && !!typedArrayTags[baseGetTag_default(value)];
556
398
  }
@@ -561,13 +403,13 @@ function baseUnary(func) {
561
403
  };
562
404
  }
563
405
  var baseUnary_default = baseUnary;
564
- var freeExports3 = typeof exports == "object" && exports && !exports.nodeType && exports;
565
- var freeModule3 = freeExports3 && typeof module == "object" && module && !module.nodeType && module;
566
- var moduleExports3 = freeModule3 && freeModule3.exports === freeExports3;
567
- var freeProcess = moduleExports3 && freeGlobal_default.process;
406
+ var freeExports2 = typeof exports == "object" && exports && !exports.nodeType && exports;
407
+ var freeModule2 = freeExports2 && typeof module == "object" && module && !module.nodeType && module;
408
+ var moduleExports2 = freeModule2 && freeModule2.exports === freeExports2;
409
+ var freeProcess = moduleExports2 && freeGlobal_default.process;
568
410
  var nodeUtil = function() {
569
411
  try {
570
- var types = freeModule3 && freeModule3.require && freeModule3.require("util").types;
412
+ var types = freeModule2 && freeModule2.require && freeModule2.require("util").types;
571
413
  if (types) {
572
414
  return types;
573
415
  }
@@ -579,105 +421,365 @@ var nodeUtil_default = nodeUtil;
579
421
  var nodeIsTypedArray = nodeUtil_default && nodeUtil_default.isTypedArray;
580
422
  var isTypedArray = nodeIsTypedArray ? baseUnary_default(nodeIsTypedArray) : baseIsTypedArray_default;
581
423
  var isTypedArray_default = isTypedArray;
582
- function safeGet(object, key) {
583
- if (key === "constructor" && typeof object[key] === "function") {
584
- return;
424
+ var objectProto7 = Object.prototype;
425
+ var hasOwnProperty5 = objectProto7.hasOwnProperty;
426
+ function arrayLikeKeys(value, inherited) {
427
+ var isArr = isArray_default(value), isArg = !isArr && isArguments_default(value), isBuff = !isArr && !isArg && isBuffer_default(value), isType = !isArr && !isArg && !isBuff && isTypedArray_default(value), skipIndexes = isArr || isArg || isBuff || isType, result = skipIndexes ? baseTimes_default(value.length, String) : [], length = result.length;
428
+ for (var key in value) {
429
+ if ((inherited || hasOwnProperty5.call(value, key)) && !(skipIndexes && // Safari 9 has enumerable `arguments.length` in strict mode.
430
+ (key == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
431
+ isBuff && (key == "offset" || key == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
432
+ isType && (key == "buffer" || key == "byteLength" || key == "byteOffset") || // Skip index properties.
433
+ isIndex_default(key, length)))) {
434
+ result.push(key);
435
+ }
585
436
  }
586
- if (key == "__proto__") {
587
- return;
437
+ return result;
438
+ }
439
+ var arrayLikeKeys_default = arrayLikeKeys;
440
+ function overArg(func, transform) {
441
+ return function(arg) {
442
+ return func(transform(arg));
443
+ };
444
+ }
445
+ var overArg_default = overArg;
446
+ function nativeKeysIn(object) {
447
+ var result = [];
448
+ if (object != null) {
449
+ for (var key in Object(object)) {
450
+ result.push(key);
451
+ }
588
452
  }
589
- return object[key];
453
+ return result;
590
454
  }
591
- var safeGet_default = safeGet;
455
+ var nativeKeysIn_default = nativeKeysIn;
456
+ var objectProto8 = Object.prototype;
457
+ var hasOwnProperty6 = objectProto8.hasOwnProperty;
458
+ function baseKeysIn(object) {
459
+ if (!isObject_default(object)) {
460
+ return nativeKeysIn_default(object);
461
+ }
462
+ var isProto = isPrototype_default(object), result = [];
463
+ for (var key in object) {
464
+ if (!(key == "constructor" && (isProto || !hasOwnProperty6.call(object, key)))) {
465
+ result.push(key);
466
+ }
467
+ }
468
+ return result;
469
+ }
470
+ var baseKeysIn_default = baseKeysIn;
471
+ function keysIn(object) {
472
+ return isArrayLike_default(object) ? arrayLikeKeys_default(object, true) : baseKeysIn_default(object);
473
+ }
474
+ var keysIn_default = keysIn;
475
+ var nativeCreate = getNative_default(Object, "create");
476
+ var nativeCreate_default = nativeCreate;
477
+ function hashClear() {
478
+ this.__data__ = nativeCreate_default ? nativeCreate_default(null) : {};
479
+ this.size = 0;
480
+ }
481
+ var hashClear_default = hashClear;
482
+ function hashDelete(key) {
483
+ var result = this.has(key) && delete this.__data__[key];
484
+ this.size -= result ? 1 : 0;
485
+ return result;
486
+ }
487
+ var hashDelete_default = hashDelete;
488
+ var HASH_UNDEFINED = "__lodash_hash_undefined__";
592
489
  var objectProto9 = Object.prototype;
593
490
  var hasOwnProperty7 = objectProto9.hasOwnProperty;
594
- function assignValue(object, key, value) {
595
- var objValue = object[key];
596
- if (!(hasOwnProperty7.call(object, key) && eq_default(objValue, value)) || value === void 0 && !(key in object)) {
597
- baseAssignValue_default(object, key, value);
491
+ function hashGet(key) {
492
+ var data = this.__data__;
493
+ if (nativeCreate_default) {
494
+ var result = data[key];
495
+ return result === HASH_UNDEFINED ? void 0 : result;
598
496
  }
497
+ return hasOwnProperty7.call(data, key) ? data[key] : void 0;
599
498
  }
600
- var assignValue_default = assignValue;
601
- function copyObject(source, props, object, customizer) {
602
- var isNew = !object;
603
- object || (object = {});
604
- var index = -1, length = props.length;
499
+ var hashGet_default = hashGet;
500
+ var objectProto10 = Object.prototype;
501
+ var hasOwnProperty8 = objectProto10.hasOwnProperty;
502
+ function hashHas(key) {
503
+ var data = this.__data__;
504
+ return nativeCreate_default ? data[key] !== void 0 : hasOwnProperty8.call(data, key);
505
+ }
506
+ var hashHas_default = hashHas;
507
+ var HASH_UNDEFINED2 = "__lodash_hash_undefined__";
508
+ function hashSet(key, value) {
509
+ var data = this.__data__;
510
+ this.size += this.has(key) ? 0 : 1;
511
+ data[key] = nativeCreate_default && value === void 0 ? HASH_UNDEFINED2 : value;
512
+ return this;
513
+ }
514
+ var hashSet_default = hashSet;
515
+ function Hash(entries) {
516
+ var index = -1, length = entries == null ? 0 : entries.length;
517
+ this.clear();
605
518
  while (++index < length) {
606
- var key = props[index];
607
- var newValue = customizer ? customizer(object[key], source[key], key, object, source) : void 0;
608
- if (newValue === void 0) {
609
- newValue = source[key];
610
- }
611
- if (isNew) {
612
- baseAssignValue_default(object, key, newValue);
613
- } else {
614
- assignValue_default(object, key, newValue);
519
+ var entry = entries[index];
520
+ this.set(entry[0], entry[1]);
521
+ }
522
+ }
523
+ Hash.prototype.clear = hashClear_default;
524
+ Hash.prototype["delete"] = hashDelete_default;
525
+ Hash.prototype.get = hashGet_default;
526
+ Hash.prototype.has = hashHas_default;
527
+ Hash.prototype.set = hashSet_default;
528
+ var Hash_default = Hash;
529
+ function listCacheClear() {
530
+ this.__data__ = [];
531
+ this.size = 0;
532
+ }
533
+ var listCacheClear_default = listCacheClear;
534
+ function assocIndexOf(array, key) {
535
+ var length = array.length;
536
+ while (length--) {
537
+ if (eq_default(array[length][0], key)) {
538
+ return length;
615
539
  }
616
540
  }
617
- return object;
618
- }
619
- var copyObject_default = copyObject;
620
- function baseTimes(n, iteratee) {
621
- var index = -1, result = Array(n);
622
- while (++index < n) {
623
- result[index] = iteratee(index);
541
+ return -1;
542
+ }
543
+ var assocIndexOf_default = assocIndexOf;
544
+ var arrayProto = Array.prototype;
545
+ var splice = arrayProto.splice;
546
+ function listCacheDelete(key) {
547
+ var data = this.__data__, index = assocIndexOf_default(data, key);
548
+ if (index < 0) {
549
+ return false;
550
+ }
551
+ var lastIndex = data.length - 1;
552
+ if (index == lastIndex) {
553
+ data.pop();
554
+ } else {
555
+ splice.call(data, index, 1);
556
+ }
557
+ --this.size;
558
+ return true;
559
+ }
560
+ var listCacheDelete_default = listCacheDelete;
561
+ function listCacheGet(key) {
562
+ var data = this.__data__, index = assocIndexOf_default(data, key);
563
+ return index < 0 ? void 0 : data[index][1];
564
+ }
565
+ var listCacheGet_default = listCacheGet;
566
+ function listCacheHas(key) {
567
+ return assocIndexOf_default(this.__data__, key) > -1;
568
+ }
569
+ var listCacheHas_default = listCacheHas;
570
+ function listCacheSet(key, value) {
571
+ var data = this.__data__, index = assocIndexOf_default(data, key);
572
+ if (index < 0) {
573
+ ++this.size;
574
+ data.push([key, value]);
575
+ } else {
576
+ data[index][1] = value;
577
+ }
578
+ return this;
579
+ }
580
+ var listCacheSet_default = listCacheSet;
581
+ function ListCache(entries) {
582
+ var index = -1, length = entries == null ? 0 : entries.length;
583
+ this.clear();
584
+ while (++index < length) {
585
+ var entry = entries[index];
586
+ this.set(entry[0], entry[1]);
587
+ }
588
+ }
589
+ ListCache.prototype.clear = listCacheClear_default;
590
+ ListCache.prototype["delete"] = listCacheDelete_default;
591
+ ListCache.prototype.get = listCacheGet_default;
592
+ ListCache.prototype.has = listCacheHas_default;
593
+ ListCache.prototype.set = listCacheSet_default;
594
+ var ListCache_default = ListCache;
595
+ var Map = getNative_default(root_default, "Map");
596
+ var Map_default = Map;
597
+ function mapCacheClear() {
598
+ this.size = 0;
599
+ this.__data__ = {
600
+ "hash": new Hash_default(),
601
+ "map": new (Map_default || ListCache_default)(),
602
+ "string": new Hash_default()
603
+ };
604
+ }
605
+ var mapCacheClear_default = mapCacheClear;
606
+ function isKeyable(value) {
607
+ var type = typeof value;
608
+ return type == "string" || type == "number" || type == "symbol" || type == "boolean" ? value !== "__proto__" : value === null;
609
+ }
610
+ var isKeyable_default = isKeyable;
611
+ function getMapData(map, key) {
612
+ var data = map.__data__;
613
+ return isKeyable_default(key) ? data[typeof key == "string" ? "string" : "hash"] : data.map;
614
+ }
615
+ var getMapData_default = getMapData;
616
+ function mapCacheDelete(key) {
617
+ var result = getMapData_default(this, key)["delete"](key);
618
+ this.size -= result ? 1 : 0;
619
+ return result;
620
+ }
621
+ var mapCacheDelete_default = mapCacheDelete;
622
+ function mapCacheGet(key) {
623
+ return getMapData_default(this, key).get(key);
624
+ }
625
+ var mapCacheGet_default = mapCacheGet;
626
+ function mapCacheHas(key) {
627
+ return getMapData_default(this, key).has(key);
628
+ }
629
+ var mapCacheHas_default = mapCacheHas;
630
+ function mapCacheSet(key, value) {
631
+ var data = getMapData_default(this, key), size = data.size;
632
+ data.set(key, value);
633
+ this.size += data.size == size ? 0 : 1;
634
+ return this;
635
+ }
636
+ var mapCacheSet_default = mapCacheSet;
637
+ function MapCache(entries) {
638
+ var index = -1, length = entries == null ? 0 : entries.length;
639
+ this.clear();
640
+ while (++index < length) {
641
+ var entry = entries[index];
642
+ this.set(entry[0], entry[1]);
643
+ }
644
+ }
645
+ MapCache.prototype.clear = mapCacheClear_default;
646
+ MapCache.prototype["delete"] = mapCacheDelete_default;
647
+ MapCache.prototype.get = mapCacheGet_default;
648
+ MapCache.prototype.has = mapCacheHas_default;
649
+ MapCache.prototype.set = mapCacheSet_default;
650
+ var MapCache_default = MapCache;
651
+ var getPrototype = overArg_default(Object.getPrototypeOf, Object);
652
+ var getPrototype_default = getPrototype;
653
+ var objectTag2 = "[object Object]";
654
+ var funcProto3 = Function.prototype;
655
+ var objectProto11 = Object.prototype;
656
+ var funcToString3 = funcProto3.toString;
657
+ var hasOwnProperty9 = objectProto11.hasOwnProperty;
658
+ var objectCtorString = funcToString3.call(Object);
659
+ function isPlainObject(value) {
660
+ if (!isObjectLike_default(value) || baseGetTag_default(value) != objectTag2) {
661
+ return false;
662
+ }
663
+ var proto = getPrototype_default(value);
664
+ if (proto === null) {
665
+ return true;
624
666
  }
667
+ var Ctor = hasOwnProperty9.call(proto, "constructor") && proto.constructor;
668
+ return typeof Ctor == "function" && Ctor instanceof Ctor && funcToString3.call(Ctor) == objectCtorString;
669
+ }
670
+ var isPlainObject_default = isPlainObject;
671
+ function stackClear() {
672
+ this.__data__ = new ListCache_default();
673
+ this.size = 0;
674
+ }
675
+ var stackClear_default = stackClear;
676
+ function stackDelete(key) {
677
+ var data = this.__data__, result = data["delete"](key);
678
+ this.size = data.size;
625
679
  return result;
626
680
  }
627
- var baseTimes_default = baseTimes;
628
- var MAX_SAFE_INTEGER2 = 9007199254740991;
629
- var reIsUint = /^(?:0|[1-9]\d*)$/;
630
- function isIndex(value, length) {
631
- var type = typeof value;
632
- length = length == null ? MAX_SAFE_INTEGER2 : length;
633
- return !!length && (type == "number" || type != "symbol" && reIsUint.test(value)) && value > -1 && value % 1 == 0 && value < length;
681
+ var stackDelete_default = stackDelete;
682
+ function stackGet(key) {
683
+ return this.__data__.get(key);
634
684
  }
635
- var isIndex_default = isIndex;
636
- var objectProto10 = Object.prototype;
637
- var hasOwnProperty8 = objectProto10.hasOwnProperty;
638
- function arrayLikeKeys(value, inherited) {
639
- var isArr = isArray_default(value), isArg = !isArr && isArguments_default(value), isBuff = !isArr && !isArg && isBuffer_default(value), isType = !isArr && !isArg && !isBuff && isTypedArray_default(value), skipIndexes = isArr || isArg || isBuff || isType, result = skipIndexes ? baseTimes_default(value.length, String) : [], length = result.length;
640
- for (var key in value) {
641
- if ((inherited || hasOwnProperty8.call(value, key)) && !(skipIndexes && // Safari 9 has enumerable `arguments.length` in strict mode.
642
- (key == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
643
- isBuff && (key == "offset" || key == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
644
- isType && (key == "buffer" || key == "byteLength" || key == "byteOffset") || // Skip index properties.
645
- isIndex_default(key, length)))) {
646
- result.push(key);
685
+ var stackGet_default = stackGet;
686
+ function stackHas(key) {
687
+ return this.__data__.has(key);
688
+ }
689
+ var stackHas_default = stackHas;
690
+ var LARGE_ARRAY_SIZE = 200;
691
+ function stackSet(key, value) {
692
+ var data = this.__data__;
693
+ if (data instanceof ListCache_default) {
694
+ var pairs = data.__data__;
695
+ if (!Map_default || pairs.length < LARGE_ARRAY_SIZE - 1) {
696
+ pairs.push([key, value]);
697
+ this.size = ++data.size;
698
+ return this;
647
699
  }
700
+ data = this.__data__ = new MapCache_default(pairs);
648
701
  }
649
- return result;
702
+ data.set(key, value);
703
+ this.size = data.size;
704
+ return this;
650
705
  }
651
- var arrayLikeKeys_default = arrayLikeKeys;
652
- function nativeKeysIn(object) {
653
- var result = [];
654
- if (object != null) {
655
- for (var key in Object(object)) {
656
- result.push(key);
657
- }
706
+ var stackSet_default = stackSet;
707
+ function Stack(entries) {
708
+ var data = this.__data__ = new ListCache_default(entries);
709
+ this.size = data.size;
710
+ }
711
+ Stack.prototype.clear = stackClear_default;
712
+ Stack.prototype["delete"] = stackDelete_default;
713
+ Stack.prototype.get = stackGet_default;
714
+ Stack.prototype.has = stackHas_default;
715
+ Stack.prototype.set = stackSet_default;
716
+ var Stack_default = Stack;
717
+ var freeExports3 = typeof exports == "object" && exports && !exports.nodeType && exports;
718
+ var freeModule3 = freeExports3 && typeof module == "object" && module && !module.nodeType && module;
719
+ var moduleExports3 = freeModule3 && freeModule3.exports === freeExports3;
720
+ var Buffer2 = moduleExports3 ? root_default.Buffer : void 0;
721
+ var allocUnsafe = Buffer2 ? Buffer2.allocUnsafe : void 0;
722
+ function cloneBuffer(buffer, isDeep) {
723
+ if (isDeep) {
724
+ return buffer.slice();
658
725
  }
726
+ var length = buffer.length, result = allocUnsafe ? allocUnsafe(length) : new buffer.constructor(length);
727
+ buffer.copy(result);
659
728
  return result;
660
729
  }
661
- var nativeKeysIn_default = nativeKeysIn;
662
- var objectProto11 = Object.prototype;
663
- var hasOwnProperty9 = objectProto11.hasOwnProperty;
664
- function baseKeysIn(object) {
665
- if (!isObject_default(object)) {
666
- return nativeKeysIn_default(object);
667
- }
668
- var isProto = isPrototype_default(object), result = [];
669
- for (var key in object) {
670
- if (!(key == "constructor" && (isProto || !hasOwnProperty9.call(object, key)))) {
671
- result.push(key);
730
+ var cloneBuffer_default = cloneBuffer;
731
+ var Uint8Array = root_default.Uint8Array;
732
+ var Uint8Array_default = Uint8Array;
733
+ function cloneArrayBuffer(arrayBuffer) {
734
+ var result = new arrayBuffer.constructor(arrayBuffer.byteLength);
735
+ new Uint8Array_default(result).set(new Uint8Array_default(arrayBuffer));
736
+ return result;
737
+ }
738
+ var cloneArrayBuffer_default = cloneArrayBuffer;
739
+ function cloneTypedArray(typedArray, isDeep) {
740
+ var buffer = isDeep ? cloneArrayBuffer_default(typedArray.buffer) : typedArray.buffer;
741
+ return new typedArray.constructor(buffer, typedArray.byteOffset, typedArray.length);
742
+ }
743
+ var cloneTypedArray_default = cloneTypedArray;
744
+ function initCloneObject(object) {
745
+ return typeof object.constructor == "function" && !isPrototype_default(object) ? baseCreate_default(getPrototype_default(object)) : {};
746
+ }
747
+ var initCloneObject_default = initCloneObject;
748
+ function createBaseFor(fromRight) {
749
+ return function(object, iteratee, keysFunc) {
750
+ var index = -1, iterable = Object(object), props = keysFunc(object), length = props.length;
751
+ while (length--) {
752
+ var key = props[fromRight ? length : ++index];
753
+ if (iteratee(iterable[key], key, iterable) === false) {
754
+ break;
755
+ }
672
756
  }
757
+ return object;
758
+ };
759
+ }
760
+ var createBaseFor_default = createBaseFor;
761
+ var baseFor = createBaseFor_default();
762
+ var baseFor_default = baseFor;
763
+ function assignMergeValue(object, key, value) {
764
+ if (value !== void 0 && !eq_default(object[key], value) || value === void 0 && !(key in object)) {
765
+ baseAssignValue_default(object, key, value);
673
766
  }
674
- return result;
675
767
  }
676
- var baseKeysIn_default = baseKeysIn;
677
- function keysIn(object) {
678
- return isArrayLike_default(object) ? arrayLikeKeys_default(object, true) : baseKeysIn_default(object);
768
+ var assignMergeValue_default = assignMergeValue;
769
+ function isArrayLikeObject(value) {
770
+ return isObjectLike_default(value) && isArrayLike_default(value);
679
771
  }
680
- var keysIn_default = keysIn;
772
+ var isArrayLikeObject_default = isArrayLikeObject;
773
+ function safeGet(object, key) {
774
+ if (key === "constructor" && typeof object[key] === "function") {
775
+ return;
776
+ }
777
+ if (key == "__proto__") {
778
+ return;
779
+ }
780
+ return object[key];
781
+ }
782
+ var safeGet_default = safeGet;
681
783
  function toPlainObject(value) {
682
784
  return copyObject_default(value, keysIn_default(value));
683
785
  }
@@ -744,117 +846,9 @@ function baseMerge(object, source, srcIndex, customizer, stack) {
744
846
  }, keysIn_default);
745
847
  }
746
848
  var baseMerge_default = baseMerge;
747
- function identity(value) {
748
- return value;
749
- }
750
- var identity_default = identity;
751
- function apply(func, thisArg, args) {
752
- switch (args.length) {
753
- case 0:
754
- return func.call(thisArg);
755
- case 1:
756
- return func.call(thisArg, args[0]);
757
- case 2:
758
- return func.call(thisArg, args[0], args[1]);
759
- case 3:
760
- return func.call(thisArg, args[0], args[1], args[2]);
761
- }
762
- return func.apply(thisArg, args);
763
- }
764
- var apply_default = apply;
765
- var nativeMax = Math.max;
766
- function overRest(func, start, transform) {
767
- start = nativeMax(start === void 0 ? func.length - 1 : start, 0);
768
- return function() {
769
- var args = arguments, index = -1, length = nativeMax(args.length - start, 0), array = Array(length);
770
- while (++index < length) {
771
- array[index] = args[start + index];
772
- }
773
- index = -1;
774
- var otherArgs = Array(start + 1);
775
- while (++index < start) {
776
- otherArgs[index] = args[index];
777
- }
778
- otherArgs[start] = transform(array);
779
- return apply_default(func, this, otherArgs);
780
- };
781
- }
782
- var overRest_default = overRest;
783
- function constant(value) {
784
- return function() {
785
- return value;
786
- };
787
- }
788
- var constant_default = constant;
789
- var baseSetToString = !defineProperty_default ? identity_default : function(func, string) {
790
- return defineProperty_default(func, "toString", {
791
- "configurable": true,
792
- "enumerable": false,
793
- "value": constant_default(string),
794
- "writable": true
795
- });
796
- };
797
- var baseSetToString_default = baseSetToString;
798
- var HOT_COUNT = 800;
799
- var HOT_SPAN = 16;
800
- var nativeNow = Date.now;
801
- function shortOut(func) {
802
- var count = 0, lastCalled = 0;
803
- return function() {
804
- var stamp = nativeNow(), remaining = HOT_SPAN - (stamp - lastCalled);
805
- lastCalled = stamp;
806
- if (remaining > 0) {
807
- if (++count >= HOT_COUNT) {
808
- return arguments[0];
809
- }
810
- } else {
811
- count = 0;
812
- }
813
- return func.apply(void 0, arguments);
814
- };
815
- }
816
- var shortOut_default = shortOut;
817
- var setToString = shortOut_default(baseSetToString_default);
818
- var setToString_default = setToString;
819
- function baseRest(func, start) {
820
- return setToString_default(overRest_default(func, start, identity_default), func + "");
821
- }
822
- var baseRest_default = baseRest;
823
- function isIterateeCall(value, index, object) {
824
- if (!isObject_default(object)) {
825
- return false;
826
- }
827
- var type = typeof index;
828
- if (type == "number" ? isArrayLike_default(object) && isIndex_default(index, object.length) : type == "string" && index in object) {
829
- return eq_default(object[index], value);
830
- }
831
- return false;
832
- }
833
- var isIterateeCall_default = isIterateeCall;
834
- function createAssigner(assigner) {
835
- return baseRest_default(function(object, sources) {
836
- var index = -1, length = sources.length, customizer = length > 1 ? sources[length - 1] : void 0, guard = length > 2 ? sources[2] : void 0;
837
- customizer = assigner.length > 3 && typeof customizer == "function" ? (length--, customizer) : void 0;
838
- if (guard && isIterateeCall_default(sources[0], sources[1], guard)) {
839
- customizer = length < 3 ? void 0 : customizer;
840
- length = 1;
841
- }
842
- object = Object(object);
843
- while (++index < length) {
844
- var source = sources[index];
845
- if (source) {
846
- assigner(object, source, index, customizer);
847
- }
848
- }
849
- return object;
850
- });
851
- }
852
- var createAssigner_default = createAssigner;
853
849
  var mergeWith = createAssigner_default(function(object, source, srcIndex, customizer) {
854
850
  baseMerge_default(object, source, srcIndex, customizer);
855
851
  });
856
- var QUERY_REGEXP = RegExp("\\?.*$", "s");
857
- var HASH_REGEXP = RegExp("#.*$", "s");
858
852
  function slash(str) {
859
853
  return str.replace(/\\/g, "/");
860
854
  }
@@ -885,19 +879,31 @@ function normalizePosixPath(id) {
885
879
 
886
880
  // src/index.ts
887
881
  function pluginMediumZoom(options = {}) {
888
- const __dirname = normalizePosixPath(path.dirname(fileURLToPath(import.meta.url)));
882
+ const __dirname = normalizePosixPath(
883
+ path.dirname(fileURLToPath(import.meta.url))
884
+ );
889
885
  return {
890
886
  name: "@rspress/plugin-medium-zoom",
891
887
  globalUIComponents: [
892
- [
893
- path.posix.join(__dirname, "../src/components/MediumZoom.tsx"),
894
- options
895
- ]
888
+ [path.posix.join(__dirname, "../src/components/MediumZoom.tsx"), options]
896
889
  ]
897
890
  };
898
891
  }
899
892
  export {
900
893
  pluginMediumZoom
901
894
  };
895
+ /*! Bundled license information:
896
+
897
+ lodash-es/lodash.js:
898
+ (**
899
+ * @license
900
+ * Lodash (Custom Build) <https://lodash.com/>
901
+ * Build: `lodash modularize exports="es" -o ./`
902
+ * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
903
+ * Released under MIT license <https://lodash.com/license>
904
+ * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
905
+ * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
906
+ *)
907
+ */
902
908
 
903
909
  //# sourceMappingURL=index.js.map