@zonos/elements 1.3.4-alpha.1 → 1.3.4-alpha.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/cjs/{cart-cfa5d5fd.js → cart-f31374d4.js} +4 -4
- package/dist/cjs/{getBorderRadius-c3c63ee6.js → getBorderRadius-cd7ef574.js} +1 -1
- package/dist/cjs/{index-0dcccc22.js → index-3ead02fe.js} +56 -22
- package/dist/cjs/index.cjs.js +6 -6
- package/dist/cjs/{isDarkColor-fc8c294a.js → isDarkColor-5eda1323.js} +7 -3
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{localization-4746acf7.js → localization-d43e1540.js} +1 -1
- package/dist/cjs/{submitGtag-ca175427.js → submitGtag-42f29b3a.js} +2 -2
- package/dist/cjs/zonos-address_2.cjs.entry.js +12 -10
- package/dist/cjs/zonos-badge.cjs.entry.js +7 -6
- package/dist/cjs/zonos-banner.cjs.entry.js +4 -3
- package/dist/cjs/zonos-button_2.cjs.entry.js +11 -9
- package/dist/cjs/zonos-card_2.cjs.entry.js +10 -8
- package/dist/cjs/zonos-cart-items_10.cjs.entry.js +36 -26
- package/dist/cjs/zonos-checkout.cjs.entry.js +9 -8
- package/dist/cjs/zonos-component.cjs.entry.js +4 -3
- package/dist/cjs/zonos-controller.cjs.entry.js +9 -8
- package/dist/cjs/zonos-country-flag_4.cjs.entry.js +19 -15
- package/dist/cjs/zonos-elements.cjs.js +2 -2
- package/dist/cjs/zonos-hello-dialog.cjs.entry.js +7 -6
- package/dist/cjs/zonos-hello.cjs.entry.js +44 -27
- package/dist/cjs/zonos-icon.cjs.entry.js +4 -3
- package/dist/cjs/zonos-notification.cjs.entry.js +6 -5
- package/dist/cjs/zonos-payment.cjs.entry.js +9 -8
- package/dist/cjs/zonos-shipping-rich-radio.cjs.entry.js +6 -5
- package/dist/cjs/zonos-text.cjs.entry.js +4 -3
- package/dist/cjs/{zonosStore-10d1d6ff.js → zonosStore-b88b5671.js} +571 -332
- package/dist/collection/collection-manifest.json +2 -2
- package/dist/collection/components/checkout/zonos-checkout/zonos-cart-items/zonos-cart-items.js +1 -1
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-finish/zonos-checkout-finish.js +1 -1
- package/dist/collection/components/common/zonos-badge/zonos-badge.js +3 -3
- package/dist/collection/components/common/zonos-button/zonos-button.js +3 -3
- package/dist/collection/components/common/zonos-card/zonos-card.js +2 -2
- package/dist/collection/components/common/zonos-collapse/zonos-collapse.js +2 -2
- package/dist/collection/components/common/zonos-country-select/zonos-country-select.js +3 -3
- package/dist/collection/components/common/zonos-custom-message/zonos-custom-message.js +2 -2
- package/dist/collection/components/common/zonos-dialog/zonos-dialog.js +3 -3
- package/dist/collection/components/common/zonos-logo/zonos-logo.js +2 -2
- package/dist/collection/components/common/zonos-notification/zonos-notification.js +2 -2
- package/dist/collection/components/common/zonos-shipping-rich-radio/zonos-shipping-rich-radio.js +1 -1
- package/dist/collection/components/common/zonos-v-stack/zonos-v-stack.js +2 -2
- package/dist/collection/components/component-template/zonos-component/zonos-component.js +1 -1
- package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog-footer/zonos-hello-dialog-footer.js +2 -2
- package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog.js +2 -2
- package/dist/collection/components/main/zonos-controller.js +1 -1
- package/dist/collection/components/stripe/zonos-address/zonos-address.js +1 -1
- package/dist/collection/components/stripe/zonos-link-authentication/zonos-link-authentication.js +1 -1
- package/dist/collection/components/stripe/zonos-payment/zonos-payment.js +1 -1
- package/dist/components/isDarkColor.js +7 -3
- package/dist/components/zonos-address2.js +3 -2
- package/dist/components/zonos-badge2.js +6 -5
- package/dist/components/zonos-banner2.js +3 -2
- package/dist/components/zonos-button2.js +6 -5
- package/dist/components/zonos-card2.js +5 -4
- package/dist/components/zonos-cart-items2.js +3 -2
- package/dist/components/zonos-cart-subtotal2.js +2 -1
- package/dist/components/zonos-checkout-finish2.js +3 -2
- package/dist/components/zonos-checkout-payment2.js +2 -1
- package/dist/components/zonos-checkout.js +2 -1
- package/dist/components/zonos-collapse2.js +5 -4
- package/dist/components/zonos-component.js +3 -2
- package/dist/components/zonos-controller.js +4 -3
- package/dist/components/zonos-country-flag2.js +3 -2
- package/dist/components/zonos-country-select2.js +6 -5
- package/dist/components/zonos-custom-message2.js +5 -4
- package/dist/components/zonos-customer-info2.js +2 -1
- package/dist/components/zonos-dialog2.js +6 -5
- package/dist/components/zonos-hello-dialog-footer2.js +4 -3
- package/dist/components/zonos-hello-dialog2.js +4 -3
- package/dist/components/zonos-hello.js +42 -25
- package/dist/components/zonos-icon2.js +3 -2
- package/dist/components/zonos-link-authentication2.js +3 -2
- package/dist/components/zonos-logo2.js +5 -4
- package/dist/components/zonos-notification2.js +5 -4
- package/dist/components/zonos-payment2.js +3 -2
- package/dist/components/zonos-review2.js +2 -1
- package/dist/components/zonos-shipping-rich-radio2.js +4 -3
- package/dist/components/zonos-shipping2.js +2 -1
- package/dist/components/zonos-spinner2.js +2 -1
- package/dist/components/zonos-text2.js +3 -2
- package/dist/components/zonos-v-stack2.js +5 -4
- package/dist/components/zonosStore.js +571 -331
- package/dist/esm/{cart-d81b92ea.js → cart-c9124cc3.js} +4 -4
- package/dist/esm/{getBorderRadius-77e97943.js → getBorderRadius-9e4cb3b1.js} +1 -1
- package/dist/esm/{index-36ff6342.js → index-81a199ef.js} +56 -22
- package/dist/esm/index.js +6 -6
- package/dist/esm/{isDarkColor-69090b29.js → isDarkColor-8696cb70.js} +7 -3
- package/dist/esm/loader.js +2 -2
- package/dist/esm/{localization-0c5b29fd.js → localization-5d83fde2.js} +1 -1
- package/dist/esm/{submitGtag-8a0fbd41.js → submitGtag-a7d07aec.js} +2 -2
- package/dist/esm/zonos-address_2.entry.js +12 -10
- package/dist/esm/zonos-badge.entry.js +7 -6
- package/dist/esm/zonos-banner.entry.js +4 -3
- package/dist/esm/zonos-button_2.entry.js +11 -9
- package/dist/esm/zonos-card_2.entry.js +10 -8
- package/dist/esm/zonos-cart-items_10.entry.js +36 -26
- package/dist/esm/zonos-checkout.entry.js +9 -8
- package/dist/esm/zonos-component.entry.js +4 -3
- package/dist/esm/zonos-controller.entry.js +9 -8
- package/dist/esm/zonos-country-flag_4.entry.js +19 -15
- package/dist/esm/zonos-elements.js +3 -3
- package/dist/esm/zonos-hello-dialog.entry.js +7 -6
- package/dist/esm/zonos-hello.entry.js +44 -27
- package/dist/esm/zonos-icon.entry.js +4 -3
- package/dist/esm/zonos-notification.entry.js +6 -5
- package/dist/esm/zonos-payment.entry.js +9 -8
- package/dist/esm/zonos-shipping-rich-radio.entry.js +6 -5
- package/dist/esm/zonos-text.entry.js +4 -3
- package/dist/esm/{zonosStore-34f07ee8.js → zonosStore-e59617f8.js} +572 -332
- package/dist/esm-es5/{cart-d81b92ea.js → cart-c9124cc3.js} +1 -1
- package/dist/esm-es5/{getBorderRadius-77e97943.js → getBorderRadius-9e4cb3b1.js} +1 -1
- package/dist/esm-es5/index-81a199ef.js +2 -0
- package/dist/esm-es5/index.js +1 -1
- package/dist/esm-es5/isDarkColor-8696cb70.js +1 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/{localization-0c5b29fd.js → localization-5d83fde2.js} +1 -1
- package/dist/esm-es5/{submitGtag-8a0fbd41.js → submitGtag-a7d07aec.js} +1 -1
- package/dist/esm-es5/zonos-address_2.entry.js +1 -1
- package/dist/esm-es5/zonos-badge.entry.js +1 -1
- package/dist/esm-es5/zonos-banner.entry.js +1 -1
- package/dist/esm-es5/zonos-button_2.entry.js +1 -1
- package/dist/esm-es5/zonos-card_2.entry.js +1 -1
- package/dist/esm-es5/zonos-cart-items_10.entry.js +1 -1
- package/dist/esm-es5/zonos-checkout.entry.js +1 -1
- package/dist/esm-es5/zonos-component.entry.js +1 -1
- package/dist/esm-es5/zonos-controller.entry.js +1 -1
- package/dist/esm-es5/zonos-country-flag_4.entry.js +1 -1
- package/dist/esm-es5/zonos-elements.js +1 -1
- package/dist/esm-es5/zonos-hello-dialog.entry.js +1 -1
- package/dist/esm-es5/zonos-hello.entry.js +1 -1
- package/dist/esm-es5/zonos-icon.entry.js +1 -1
- package/dist/esm-es5/zonos-notification.entry.js +1 -1
- package/dist/esm-es5/zonos-payment.entry.js +1 -1
- package/dist/esm-es5/zonos-shipping-rich-radio.entry.js +1 -1
- package/dist/esm-es5/zonos-text.entry.js +1 -1
- package/dist/esm-es5/zonosStore-e59617f8.js +1 -0
- package/dist/scripts/loadZonos.js +1 -1
- package/dist/scripts/zonos.js +1 -1
- package/dist/scripts/zonosBase.js +1 -1
- package/dist/zonos-elements/index.esm.js +1 -1
- package/dist/zonos-elements/p-0024f8c2.js +1 -0
- package/dist/zonos-elements/p-027abb50.entry.js +1 -0
- package/dist/zonos-elements/{p-a54d8db3.system.js → p-12ecf765.system.js} +1 -1
- package/dist/zonos-elements/p-139fc767.entry.js +1 -0
- package/dist/zonos-elements/p-1c00ffea.system.entry.js +1 -0
- package/dist/zonos-elements/{p-c1e298d5.system.entry.js → p-21793192.entry.js} +1 -1
- package/dist/zonos-elements/p-26edde4d.system.entry.js +1 -0
- package/dist/zonos-elements/p-28d7b75d.entry.js +1 -0
- package/dist/zonos-elements/p-2ac66cea.system.entry.js +1 -0
- package/dist/zonos-elements/p-39d12bf0.entry.js +1 -0
- package/dist/zonos-elements/p-3d965e88.entry.js +1 -0
- package/dist/zonos-elements/p-410045c5.system.entry.js +1 -0
- package/dist/zonos-elements/{p-c0494ed6.entry.js → p-43220d68.entry.js} +1 -1
- package/dist/zonos-elements/p-4d39efb6.system.js +2 -0
- package/dist/zonos-elements/p-4d8545e1.js +2 -0
- package/dist/zonos-elements/{p-ed074fbf.system.js → p-51a40ddf.system.js} +1 -1
- package/dist/zonos-elements/{p-5bada106.system.entry.js → p-5a0264e8.system.entry.js} +1 -1
- package/dist/zonos-elements/p-5d91e45c.entry.js +1 -0
- package/dist/zonos-elements/p-62851827.system.entry.js +1 -0
- package/dist/zonos-elements/p-73174d0c.system.entry.js +1 -0
- package/dist/zonos-elements/p-741a1402.system.entry.js +1 -0
- package/dist/zonos-elements/p-7748735d.entry.js +1 -0
- package/dist/zonos-elements/p-7cae86a0.system.entry.js +1 -0
- package/dist/zonos-elements/p-7f68c103.system.js +1 -0
- package/dist/zonos-elements/p-83bb8727.system.entry.js +1 -0
- package/dist/zonos-elements/{p-a244579e.js → p-8ebc0b64.js} +1 -1
- package/dist/zonos-elements/p-97e659b7.entry.js +1 -0
- package/dist/zonos-elements/p-9f3cad08.entry.js +1 -0
- package/dist/zonos-elements/{p-ab179c88.system.js → p-a6f2e282.system.js} +1 -1
- package/dist/zonos-elements/p-afed9236.entry.js +1 -0
- package/dist/zonos-elements/{p-24fbe845.system.js → p-b035f9e5.system.js} +1 -1
- package/dist/zonos-elements/{p-3509ffaa.entry.js → p-b1ffb37b.entry.js} +1 -1
- package/dist/zonos-elements/{p-17ef815f.entry.js → p-b494d540.entry.js} +1 -1
- package/dist/zonos-elements/{p-06a332cd.js → p-b87fa3a1.js} +1 -1
- package/dist/zonos-elements/{p-ab00288a.entry.js → p-bd02a65c.entry.js} +1 -1
- package/dist/zonos-elements/p-be23cc91.system.entry.js +1 -0
- package/dist/zonos-elements/p-bea31a7b.system.entry.js +1 -0
- package/dist/zonos-elements/p-c134eecd.system.js +1 -0
- package/dist/zonos-elements/p-d170748c.system.entry.js +1 -0
- package/dist/zonos-elements/p-dc09ca69.system.js +1 -0
- package/dist/zonos-elements/{p-2b41549a.js → p-e59b6648.js} +1 -1
- package/dist/zonos-elements/p-e8da4463.js +1 -0
- package/dist/zonos-elements/{p-ccd1794a.system.entry.js → p-eb96f893.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-5066955b.system.js → p-ee8b44c0.system.js} +1 -1
- package/dist/zonos-elements/{p-935fa685.system.entry.js → p-efd1544b.system.entry.js} +1 -1
- package/dist/zonos-elements/p-f2733cc7.js +1 -0
- package/dist/zonos-elements/{p-e6556b0d.entry.js → p-f342e7c7.entry.js} +1 -1
- package/dist/zonos-elements/p-f7b1dfd0.system.entry.js +1 -0
- package/dist/zonos-elements/p-f82e000f.system.entry.js +1 -0
- package/dist/zonos-elements/p-ffc91e42.entry.js +1 -0
- package/dist/zonos-elements/zonos-elements.esm.js +1 -1
- package/dist/zonos-elements/zonos-elements.js +1 -1
- package/package.json +29 -29
- package/dist/esm-es5/index-36ff6342.js +0 -2
- package/dist/esm-es5/isDarkColor-69090b29.js +0 -1
- package/dist/esm-es5/zonosStore-34f07ee8.js +0 -1
- package/dist/zonos-elements/p-02175f85.entry.js +0 -1
- package/dist/zonos-elements/p-124857ae.entry.js +0 -1
- package/dist/zonos-elements/p-18904b7c.system.js +0 -2
- package/dist/zonos-elements/p-1f494581.system.entry.js +0 -1
- package/dist/zonos-elements/p-2e1e9074.js +0 -1
- package/dist/zonos-elements/p-3c8763a7.entry.js +0 -1
- package/dist/zonos-elements/p-3e7444c6.entry.js +0 -1
- package/dist/zonos-elements/p-4b3baf99.js +0 -1
- package/dist/zonos-elements/p-53ea93c2.system.entry.js +0 -1
- package/dist/zonos-elements/p-67154df2.system.entry.js +0 -1
- package/dist/zonos-elements/p-684ed483.entry.js +0 -1
- package/dist/zonos-elements/p-72cfaee2.system.entry.js +0 -1
- package/dist/zonos-elements/p-7730250d.system.js +0 -1
- package/dist/zonos-elements/p-80748529.system.entry.js +0 -1
- package/dist/zonos-elements/p-86f22026.js +0 -1
- package/dist/zonos-elements/p-88600956.entry.js +0 -1
- package/dist/zonos-elements/p-8b1cb8a4.entry.js +0 -1
- package/dist/zonos-elements/p-8bd04aaa.entry.js +0 -1
- package/dist/zonos-elements/p-956efa27.js +0 -2
- package/dist/zonos-elements/p-9c1f19b6.entry.js +0 -1
- package/dist/zonos-elements/p-a063c4b7.entry.js +0 -1
- package/dist/zonos-elements/p-a174d834.system.js +0 -1
- package/dist/zonos-elements/p-b3a71ae4.system.entry.js +0 -1
- package/dist/zonos-elements/p-b3e034bb.system.entry.js +0 -1
- package/dist/zonos-elements/p-bb7de2c4.system.entry.js +0 -1
- package/dist/zonos-elements/p-c1665c4f.system.js +0 -1
- package/dist/zonos-elements/p-c520d819.system.entry.js +0 -1
- package/dist/zonos-elements/p-ca875e60.system.entry.js +0 -1
- package/dist/zonos-elements/p-e2c7adaa.system.entry.js +0 -1
- package/dist/zonos-elements/p-e3bca405.entry.js +0 -1
- package/dist/zonos-elements/p-e58cc024.entry.js +0 -1
- package/dist/zonos-elements/p-f1e9b431.system.entry.js +0 -1
- package/dist/zonos-elements/p-fbc09dae.system.entry.js +0 -1
|
@@ -191,6 +191,8 @@ const createStore = (defaultState, shouldUpdate) => {
|
|
|
191
191
|
return map;
|
|
192
192
|
};
|
|
193
193
|
|
|
194
|
+
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
195
|
+
|
|
194
196
|
/**
|
|
195
197
|
* Removes all key-value entries from the list cache.
|
|
196
198
|
*
|
|
@@ -198,12 +200,13 @@ const createStore = (defaultState, shouldUpdate) => {
|
|
|
198
200
|
* @name clear
|
|
199
201
|
* @memberOf ListCache
|
|
200
202
|
*/
|
|
201
|
-
|
|
203
|
+
|
|
204
|
+
function listCacheClear$1() {
|
|
202
205
|
this.__data__ = [];
|
|
203
206
|
this.size = 0;
|
|
204
207
|
}
|
|
205
208
|
|
|
206
|
-
var _listCacheClear = listCacheClear;
|
|
209
|
+
var _listCacheClear = listCacheClear$1;
|
|
207
210
|
|
|
208
211
|
/**
|
|
209
212
|
* Performs a
|
|
@@ -237,11 +240,14 @@ var _listCacheClear = listCacheClear;
|
|
|
237
240
|
* _.eq(NaN, NaN);
|
|
238
241
|
* // => true
|
|
239
242
|
*/
|
|
240
|
-
|
|
243
|
+
|
|
244
|
+
function eq$4(value, other) {
|
|
241
245
|
return value === other || (value !== value && other !== other);
|
|
242
246
|
}
|
|
243
247
|
|
|
244
|
-
var eq_1 = eq;
|
|
248
|
+
var eq_1 = eq$4;
|
|
249
|
+
|
|
250
|
+
var eq$3 = eq_1;
|
|
245
251
|
|
|
246
252
|
/**
|
|
247
253
|
* Gets the index at which the `key` is found in `array` of key-value pairs.
|
|
@@ -251,17 +257,19 @@ var eq_1 = eq;
|
|
|
251
257
|
* @param {*} key The key to search for.
|
|
252
258
|
* @returns {number} Returns the index of the matched value, else `-1`.
|
|
253
259
|
*/
|
|
254
|
-
function assocIndexOf(array, key) {
|
|
260
|
+
function assocIndexOf$4(array, key) {
|
|
255
261
|
var length = array.length;
|
|
256
262
|
while (length--) {
|
|
257
|
-
if (
|
|
263
|
+
if (eq$3(array[length][0], key)) {
|
|
258
264
|
return length;
|
|
259
265
|
}
|
|
260
266
|
}
|
|
261
267
|
return -1;
|
|
262
268
|
}
|
|
263
269
|
|
|
264
|
-
var _assocIndexOf = assocIndexOf;
|
|
270
|
+
var _assocIndexOf = assocIndexOf$4;
|
|
271
|
+
|
|
272
|
+
var assocIndexOf$3 = _assocIndexOf;
|
|
265
273
|
|
|
266
274
|
/** Used for built-in method references. */
|
|
267
275
|
var arrayProto = Array.prototype;
|
|
@@ -278,9 +286,9 @@ var splice = arrayProto.splice;
|
|
|
278
286
|
* @param {string} key The key of the value to remove.
|
|
279
287
|
* @returns {boolean} Returns `true` if the entry was removed, else `false`.
|
|
280
288
|
*/
|
|
281
|
-
function listCacheDelete(key) {
|
|
289
|
+
function listCacheDelete$1(key) {
|
|
282
290
|
var data = this.__data__,
|
|
283
|
-
index =
|
|
291
|
+
index = assocIndexOf$3(data, key);
|
|
284
292
|
|
|
285
293
|
if (index < 0) {
|
|
286
294
|
return false;
|
|
@@ -295,7 +303,9 @@ function listCacheDelete(key) {
|
|
|
295
303
|
return true;
|
|
296
304
|
}
|
|
297
305
|
|
|
298
|
-
var _listCacheDelete = listCacheDelete;
|
|
306
|
+
var _listCacheDelete = listCacheDelete$1;
|
|
307
|
+
|
|
308
|
+
var assocIndexOf$2 = _assocIndexOf;
|
|
299
309
|
|
|
300
310
|
/**
|
|
301
311
|
* Gets the list cache value for `key`.
|
|
@@ -306,14 +316,16 @@ var _listCacheDelete = listCacheDelete;
|
|
|
306
316
|
* @param {string} key The key of the value to get.
|
|
307
317
|
* @returns {*} Returns the entry value.
|
|
308
318
|
*/
|
|
309
|
-
function listCacheGet(key) {
|
|
319
|
+
function listCacheGet$1(key) {
|
|
310
320
|
var data = this.__data__,
|
|
311
|
-
index =
|
|
321
|
+
index = assocIndexOf$2(data, key);
|
|
312
322
|
|
|
313
323
|
return index < 0 ? undefined : data[index][1];
|
|
314
324
|
}
|
|
315
325
|
|
|
316
|
-
var _listCacheGet = listCacheGet;
|
|
326
|
+
var _listCacheGet = listCacheGet$1;
|
|
327
|
+
|
|
328
|
+
var assocIndexOf$1 = _assocIndexOf;
|
|
317
329
|
|
|
318
330
|
/**
|
|
319
331
|
* Checks if a list cache value for `key` exists.
|
|
@@ -324,11 +336,13 @@ var _listCacheGet = listCacheGet;
|
|
|
324
336
|
* @param {string} key The key of the entry to check.
|
|
325
337
|
* @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
|
|
326
338
|
*/
|
|
327
|
-
function listCacheHas(key) {
|
|
328
|
-
return
|
|
339
|
+
function listCacheHas$1(key) {
|
|
340
|
+
return assocIndexOf$1(this.__data__, key) > -1;
|
|
329
341
|
}
|
|
330
342
|
|
|
331
|
-
var _listCacheHas = listCacheHas;
|
|
343
|
+
var _listCacheHas = listCacheHas$1;
|
|
344
|
+
|
|
345
|
+
var assocIndexOf = _assocIndexOf;
|
|
332
346
|
|
|
333
347
|
/**
|
|
334
348
|
* Sets the list cache `key` to `value`.
|
|
@@ -340,9 +354,9 @@ var _listCacheHas = listCacheHas;
|
|
|
340
354
|
* @param {*} value The value to set.
|
|
341
355
|
* @returns {Object} Returns the list cache instance.
|
|
342
356
|
*/
|
|
343
|
-
function listCacheSet(key, value) {
|
|
357
|
+
function listCacheSet$1(key, value) {
|
|
344
358
|
var data = this.__data__,
|
|
345
|
-
index =
|
|
359
|
+
index = assocIndexOf(data, key);
|
|
346
360
|
|
|
347
361
|
if (index < 0) {
|
|
348
362
|
++this.size;
|
|
@@ -353,7 +367,13 @@ function listCacheSet(key, value) {
|
|
|
353
367
|
return this;
|
|
354
368
|
}
|
|
355
369
|
|
|
356
|
-
var _listCacheSet = listCacheSet;
|
|
370
|
+
var _listCacheSet = listCacheSet$1;
|
|
371
|
+
|
|
372
|
+
var listCacheClear = _listCacheClear,
|
|
373
|
+
listCacheDelete = _listCacheDelete,
|
|
374
|
+
listCacheGet = _listCacheGet,
|
|
375
|
+
listCacheHas = _listCacheHas,
|
|
376
|
+
listCacheSet = _listCacheSet;
|
|
357
377
|
|
|
358
378
|
/**
|
|
359
379
|
* Creates an list cache object.
|
|
@@ -362,7 +382,7 @@ var _listCacheSet = listCacheSet;
|
|
|
362
382
|
* @constructor
|
|
363
383
|
* @param {Array} [entries] The key-value pairs to cache.
|
|
364
384
|
*/
|
|
365
|
-
function ListCache(entries) {
|
|
385
|
+
function ListCache$4(entries) {
|
|
366
386
|
var index = -1,
|
|
367
387
|
length = entries == null ? 0 : entries.length;
|
|
368
388
|
|
|
@@ -374,13 +394,15 @@ function ListCache(entries) {
|
|
|
374
394
|
}
|
|
375
395
|
|
|
376
396
|
// Add methods to `ListCache`.
|
|
377
|
-
ListCache.prototype.clear =
|
|
378
|
-
ListCache.prototype['delete'] =
|
|
379
|
-
ListCache.prototype.get =
|
|
380
|
-
ListCache.prototype.has =
|
|
381
|
-
ListCache.prototype.set =
|
|
397
|
+
ListCache$4.prototype.clear = listCacheClear;
|
|
398
|
+
ListCache$4.prototype['delete'] = listCacheDelete;
|
|
399
|
+
ListCache$4.prototype.get = listCacheGet;
|
|
400
|
+
ListCache$4.prototype.has = listCacheHas;
|
|
401
|
+
ListCache$4.prototype.set = listCacheSet;
|
|
402
|
+
|
|
403
|
+
var _ListCache = ListCache$4;
|
|
382
404
|
|
|
383
|
-
var
|
|
405
|
+
var ListCache$3 = _ListCache;
|
|
384
406
|
|
|
385
407
|
/**
|
|
386
408
|
* Removes all key-value entries from the stack.
|
|
@@ -389,12 +411,12 @@ var _ListCache = ListCache;
|
|
|
389
411
|
* @name clear
|
|
390
412
|
* @memberOf Stack
|
|
391
413
|
*/
|
|
392
|
-
function stackClear() {
|
|
393
|
-
this.__data__ = new
|
|
414
|
+
function stackClear$1() {
|
|
415
|
+
this.__data__ = new ListCache$3;
|
|
394
416
|
this.size = 0;
|
|
395
417
|
}
|
|
396
418
|
|
|
397
|
-
var _stackClear = stackClear;
|
|
419
|
+
var _stackClear = stackClear$1;
|
|
398
420
|
|
|
399
421
|
/**
|
|
400
422
|
* Removes `key` and its value from the stack.
|
|
@@ -405,7 +427,8 @@ var _stackClear = stackClear;
|
|
|
405
427
|
* @param {string} key The key of the value to remove.
|
|
406
428
|
* @returns {boolean} Returns `true` if the entry was removed, else `false`.
|
|
407
429
|
*/
|
|
408
|
-
|
|
430
|
+
|
|
431
|
+
function stackDelete$1(key) {
|
|
409
432
|
var data = this.__data__,
|
|
410
433
|
result = data['delete'](key);
|
|
411
434
|
|
|
@@ -413,7 +436,7 @@ function stackDelete(key) {
|
|
|
413
436
|
return result;
|
|
414
437
|
}
|
|
415
438
|
|
|
416
|
-
var _stackDelete = stackDelete;
|
|
439
|
+
var _stackDelete = stackDelete$1;
|
|
417
440
|
|
|
418
441
|
/**
|
|
419
442
|
* Gets the stack value for `key`.
|
|
@@ -424,11 +447,12 @@ var _stackDelete = stackDelete;
|
|
|
424
447
|
* @param {string} key The key of the value to get.
|
|
425
448
|
* @returns {*} Returns the entry value.
|
|
426
449
|
*/
|
|
427
|
-
|
|
450
|
+
|
|
451
|
+
function stackGet$1(key) {
|
|
428
452
|
return this.__data__.get(key);
|
|
429
453
|
}
|
|
430
454
|
|
|
431
|
-
var _stackGet = stackGet;
|
|
455
|
+
var _stackGet = stackGet$1;
|
|
432
456
|
|
|
433
457
|
/**
|
|
434
458
|
* Checks if a stack value for `key` exists.
|
|
@@ -439,45 +463,37 @@ var _stackGet = stackGet;
|
|
|
439
463
|
* @param {string} key The key of the entry to check.
|
|
440
464
|
* @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
|
|
441
465
|
*/
|
|
442
|
-
|
|
466
|
+
|
|
467
|
+
function stackHas$1(key) {
|
|
443
468
|
return this.__data__.has(key);
|
|
444
469
|
}
|
|
445
470
|
|
|
446
|
-
var _stackHas = stackHas;
|
|
471
|
+
var _stackHas = stackHas$1;
|
|
447
472
|
|
|
448
|
-
|
|
473
|
+
/** Detect free variable `global` from Node.js. */
|
|
449
474
|
|
|
450
|
-
|
|
451
|
-
return module = {
|
|
452
|
-
path: basedir,
|
|
453
|
-
exports: {},
|
|
454
|
-
require: function (path, base) {
|
|
455
|
-
return commonjsRequire();
|
|
456
|
-
}
|
|
457
|
-
}, fn(module, module.exports), module.exports;
|
|
458
|
-
}
|
|
475
|
+
var freeGlobal$1 = typeof commonjsGlobal == 'object' && commonjsGlobal && commonjsGlobal.Object === Object && commonjsGlobal;
|
|
459
476
|
|
|
460
|
-
|
|
461
|
-
throw new Error('Dynamic requires are not currently supported by @rollup/plugin-commonjs');
|
|
462
|
-
}
|
|
477
|
+
var _freeGlobal = freeGlobal$1;
|
|
463
478
|
|
|
464
|
-
|
|
465
|
-
var freeGlobal = typeof commonjsGlobal == 'object' && commonjsGlobal && commonjsGlobal.Object === Object && commonjsGlobal;
|
|
466
|
-
|
|
467
|
-
var _freeGlobal = freeGlobal;
|
|
479
|
+
var freeGlobal = _freeGlobal;
|
|
468
480
|
|
|
469
481
|
/** Detect free variable `self`. */
|
|
470
482
|
var freeSelf = typeof self == 'object' && self && self.Object === Object && self;
|
|
471
483
|
|
|
472
484
|
/** Used as a reference to the global object. */
|
|
473
|
-
var root =
|
|
485
|
+
var root$4 = freeGlobal || freeSelf || Function('return this')();
|
|
486
|
+
|
|
487
|
+
var _root = root$4;
|
|
474
488
|
|
|
475
|
-
var
|
|
489
|
+
var root$3 = _root;
|
|
476
490
|
|
|
477
491
|
/** Built-in value references. */
|
|
478
|
-
var Symbol =
|
|
492
|
+
var Symbol$2 = root$3.Symbol;
|
|
479
493
|
|
|
480
|
-
var _Symbol = Symbol;
|
|
494
|
+
var _Symbol = Symbol$2;
|
|
495
|
+
|
|
496
|
+
var Symbol$1 = _Symbol;
|
|
481
497
|
|
|
482
498
|
/** Used for built-in method references. */
|
|
483
499
|
var objectProto$a = Object.prototype;
|
|
@@ -493,7 +509,7 @@ var hasOwnProperty$8 = objectProto$a.hasOwnProperty;
|
|
|
493
509
|
var nativeObjectToString$1 = objectProto$a.toString;
|
|
494
510
|
|
|
495
511
|
/** Built-in value references. */
|
|
496
|
-
var symToStringTag$1 =
|
|
512
|
+
var symToStringTag$1 = Symbol$1 ? Symbol$1.toStringTag : undefined;
|
|
497
513
|
|
|
498
514
|
/**
|
|
499
515
|
* A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.
|
|
@@ -502,7 +518,7 @@ var symToStringTag$1 = _Symbol ? _Symbol.toStringTag : undefined;
|
|
|
502
518
|
* @param {*} value The value to query.
|
|
503
519
|
* @returns {string} Returns the raw `toStringTag`.
|
|
504
520
|
*/
|
|
505
|
-
function getRawTag(value) {
|
|
521
|
+
function getRawTag$1(value) {
|
|
506
522
|
var isOwn = hasOwnProperty$8.call(value, symToStringTag$1),
|
|
507
523
|
tag = value[symToStringTag$1];
|
|
508
524
|
|
|
@@ -522,9 +538,10 @@ function getRawTag(value) {
|
|
|
522
538
|
return result;
|
|
523
539
|
}
|
|
524
540
|
|
|
525
|
-
var _getRawTag = getRawTag;
|
|
541
|
+
var _getRawTag = getRawTag$1;
|
|
526
542
|
|
|
527
543
|
/** Used for built-in method references. */
|
|
544
|
+
|
|
528
545
|
var objectProto$9 = Object.prototype;
|
|
529
546
|
|
|
530
547
|
/**
|
|
@@ -541,18 +558,22 @@ var nativeObjectToString = objectProto$9.toString;
|
|
|
541
558
|
* @param {*} value The value to convert.
|
|
542
559
|
* @returns {string} Returns the converted string.
|
|
543
560
|
*/
|
|
544
|
-
function objectToString(value) {
|
|
561
|
+
function objectToString$1(value) {
|
|
545
562
|
return nativeObjectToString.call(value);
|
|
546
563
|
}
|
|
547
564
|
|
|
548
|
-
var _objectToString = objectToString;
|
|
565
|
+
var _objectToString = objectToString$1;
|
|
566
|
+
|
|
567
|
+
var Symbol = _Symbol,
|
|
568
|
+
getRawTag = _getRawTag,
|
|
569
|
+
objectToString = _objectToString;
|
|
549
570
|
|
|
550
571
|
/** `Object#toString` result references. */
|
|
551
572
|
var nullTag = '[object Null]',
|
|
552
573
|
undefinedTag = '[object Undefined]';
|
|
553
574
|
|
|
554
575
|
/** Built-in value references. */
|
|
555
|
-
var symToStringTag =
|
|
576
|
+
var symToStringTag = Symbol ? Symbol.toStringTag : undefined;
|
|
556
577
|
|
|
557
578
|
/**
|
|
558
579
|
* The base implementation of `getTag` without fallbacks for buggy environments.
|
|
@@ -561,16 +582,16 @@ var symToStringTag = _Symbol ? _Symbol.toStringTag : undefined;
|
|
|
561
582
|
* @param {*} value The value to query.
|
|
562
583
|
* @returns {string} Returns the `toStringTag`.
|
|
563
584
|
*/
|
|
564
|
-
function baseGetTag(value) {
|
|
585
|
+
function baseGetTag$4(value) {
|
|
565
586
|
if (value == null) {
|
|
566
587
|
return value === undefined ? undefinedTag : nullTag;
|
|
567
588
|
}
|
|
568
589
|
return (symToStringTag && symToStringTag in Object(value))
|
|
569
|
-
?
|
|
570
|
-
:
|
|
590
|
+
? getRawTag(value)
|
|
591
|
+
: objectToString(value);
|
|
571
592
|
}
|
|
572
593
|
|
|
573
|
-
var _baseGetTag = baseGetTag;
|
|
594
|
+
var _baseGetTag = baseGetTag$4;
|
|
574
595
|
|
|
575
596
|
/**
|
|
576
597
|
* Checks if `value` is the
|
|
@@ -597,12 +618,16 @@ var _baseGetTag = baseGetTag;
|
|
|
597
618
|
* _.isObject(null);
|
|
598
619
|
* // => false
|
|
599
620
|
*/
|
|
600
|
-
|
|
621
|
+
|
|
622
|
+
function isObject$7(value) {
|
|
601
623
|
var type = typeof value;
|
|
602
624
|
return value != null && (type == 'object' || type == 'function');
|
|
603
625
|
}
|
|
604
626
|
|
|
605
|
-
var isObject_1 = isObject;
|
|
627
|
+
var isObject_1 = isObject$7;
|
|
628
|
+
|
|
629
|
+
var baseGetTag$3 = _baseGetTag,
|
|
630
|
+
isObject$6 = isObject_1;
|
|
606
631
|
|
|
607
632
|
/** `Object#toString` result references. */
|
|
608
633
|
var asyncTag = '[object AsyncFunction]',
|
|
@@ -627,26 +652,30 @@ var asyncTag = '[object AsyncFunction]',
|
|
|
627
652
|
* _.isFunction(/abc/);
|
|
628
653
|
* // => false
|
|
629
654
|
*/
|
|
630
|
-
function isFunction(value) {
|
|
631
|
-
if (!
|
|
655
|
+
function isFunction$3(value) {
|
|
656
|
+
if (!isObject$6(value)) {
|
|
632
657
|
return false;
|
|
633
658
|
}
|
|
634
659
|
// The use of `Object#toString` avoids issues with the `typeof` operator
|
|
635
660
|
// in Safari 9 which returns 'object' for typed arrays and other constructors.
|
|
636
|
-
var tag =
|
|
661
|
+
var tag = baseGetTag$3(value);
|
|
637
662
|
return tag == funcTag$1 || tag == genTag || tag == asyncTag || tag == proxyTag;
|
|
638
663
|
}
|
|
639
664
|
|
|
640
|
-
var isFunction_1 = isFunction;
|
|
665
|
+
var isFunction_1 = isFunction$3;
|
|
666
|
+
|
|
667
|
+
var root$2 = _root;
|
|
641
668
|
|
|
642
669
|
/** Used to detect overreaching core-js shims. */
|
|
643
|
-
var coreJsData =
|
|
670
|
+
var coreJsData$1 = root$2['__core-js_shared__'];
|
|
644
671
|
|
|
645
|
-
var _coreJsData = coreJsData;
|
|
672
|
+
var _coreJsData = coreJsData$1;
|
|
673
|
+
|
|
674
|
+
var coreJsData = _coreJsData;
|
|
646
675
|
|
|
647
676
|
/** Used to detect methods masquerading as native. */
|
|
648
677
|
var maskSrcKey = (function() {
|
|
649
|
-
var uid = /[^.]+$/.exec(
|
|
678
|
+
var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || '');
|
|
650
679
|
return uid ? ('Symbol(src)_1.' + uid) : '';
|
|
651
680
|
}());
|
|
652
681
|
|
|
@@ -657,13 +686,14 @@ var maskSrcKey = (function() {
|
|
|
657
686
|
* @param {Function} func The function to check.
|
|
658
687
|
* @returns {boolean} Returns `true` if `func` is masked, else `false`.
|
|
659
688
|
*/
|
|
660
|
-
function isMasked(func) {
|
|
689
|
+
function isMasked$1(func) {
|
|
661
690
|
return !!maskSrcKey && (maskSrcKey in func);
|
|
662
691
|
}
|
|
663
692
|
|
|
664
|
-
var _isMasked = isMasked;
|
|
693
|
+
var _isMasked = isMasked$1;
|
|
665
694
|
|
|
666
695
|
/** Used for built-in method references. */
|
|
696
|
+
|
|
667
697
|
var funcProto$2 = Function.prototype;
|
|
668
698
|
|
|
669
699
|
/** Used to resolve the decompiled source of functions. */
|
|
@@ -676,7 +706,7 @@ var funcToString$2 = funcProto$2.toString;
|
|
|
676
706
|
* @param {Function} func The function to convert.
|
|
677
707
|
* @returns {string} Returns the source code.
|
|
678
708
|
*/
|
|
679
|
-
function toSource(func) {
|
|
709
|
+
function toSource$1(func) {
|
|
680
710
|
if (func != null) {
|
|
681
711
|
try {
|
|
682
712
|
return funcToString$2.call(func);
|
|
@@ -688,7 +718,12 @@ function toSource(func) {
|
|
|
688
718
|
return '';
|
|
689
719
|
}
|
|
690
720
|
|
|
691
|
-
var _toSource = toSource;
|
|
721
|
+
var _toSource = toSource$1;
|
|
722
|
+
|
|
723
|
+
var isFunction$2 = isFunction_1,
|
|
724
|
+
isMasked = _isMasked,
|
|
725
|
+
isObject$5 = isObject_1,
|
|
726
|
+
toSource = _toSource;
|
|
692
727
|
|
|
693
728
|
/**
|
|
694
729
|
* Used to match `RegExp`
|
|
@@ -723,15 +758,15 @@ var reIsNative = RegExp('^' +
|
|
|
723
758
|
* @returns {boolean} Returns `true` if `value` is a native function,
|
|
724
759
|
* else `false`.
|
|
725
760
|
*/
|
|
726
|
-
function baseIsNative(value) {
|
|
727
|
-
if (!
|
|
761
|
+
function baseIsNative$1(value) {
|
|
762
|
+
if (!isObject$5(value) || isMasked(value)) {
|
|
728
763
|
return false;
|
|
729
764
|
}
|
|
730
|
-
var pattern =
|
|
731
|
-
return pattern.test(
|
|
765
|
+
var pattern = isFunction$2(value) ? reIsNative : reIsHostCtor;
|
|
766
|
+
return pattern.test(toSource(value));
|
|
732
767
|
}
|
|
733
768
|
|
|
734
|
-
var _baseIsNative = baseIsNative;
|
|
769
|
+
var _baseIsNative = baseIsNative$1;
|
|
735
770
|
|
|
736
771
|
/**
|
|
737
772
|
* Gets the value at `key` of `object`.
|
|
@@ -741,11 +776,15 @@ var _baseIsNative = baseIsNative;
|
|
|
741
776
|
* @param {string} key The key of the property to get.
|
|
742
777
|
* @returns {*} Returns the property value.
|
|
743
778
|
*/
|
|
744
|
-
|
|
779
|
+
|
|
780
|
+
function getValue$1(object, key) {
|
|
745
781
|
return object == null ? undefined : object[key];
|
|
746
782
|
}
|
|
747
783
|
|
|
748
|
-
var _getValue = getValue;
|
|
784
|
+
var _getValue = getValue$1;
|
|
785
|
+
|
|
786
|
+
var baseIsNative = _baseIsNative,
|
|
787
|
+
getValue = _getValue;
|
|
749
788
|
|
|
750
789
|
/**
|
|
751
790
|
* Gets the native function at `key` of `object`.
|
|
@@ -755,22 +794,29 @@ var _getValue = getValue;
|
|
|
755
794
|
* @param {string} key The key of the method to get.
|
|
756
795
|
* @returns {*} Returns the function if it's native, else `undefined`.
|
|
757
796
|
*/
|
|
758
|
-
function getNative(object, key) {
|
|
759
|
-
var value =
|
|
760
|
-
return
|
|
797
|
+
function getNative$3(object, key) {
|
|
798
|
+
var value = getValue(object, key);
|
|
799
|
+
return baseIsNative(value) ? value : undefined;
|
|
761
800
|
}
|
|
762
801
|
|
|
763
|
-
var _getNative = getNative;
|
|
802
|
+
var _getNative = getNative$3;
|
|
803
|
+
|
|
804
|
+
var getNative$2 = _getNative,
|
|
805
|
+
root$1 = _root;
|
|
764
806
|
|
|
765
807
|
/* Built-in method references that are verified to be native. */
|
|
766
|
-
var Map$
|
|
808
|
+
var Map$3 = getNative$2(root$1, 'Map');
|
|
809
|
+
|
|
810
|
+
var _Map = Map$3;
|
|
767
811
|
|
|
768
|
-
var
|
|
812
|
+
var getNative$1 = _getNative;
|
|
769
813
|
|
|
770
814
|
/* Built-in method references that are verified to be native. */
|
|
771
|
-
var nativeCreate =
|
|
815
|
+
var nativeCreate$4 = getNative$1(Object, 'create');
|
|
772
816
|
|
|
773
|
-
var _nativeCreate = nativeCreate;
|
|
817
|
+
var _nativeCreate = nativeCreate$4;
|
|
818
|
+
|
|
819
|
+
var nativeCreate$3 = _nativeCreate;
|
|
774
820
|
|
|
775
821
|
/**
|
|
776
822
|
* Removes all key-value entries from the hash.
|
|
@@ -779,12 +825,12 @@ var _nativeCreate = nativeCreate;
|
|
|
779
825
|
* @name clear
|
|
780
826
|
* @memberOf Hash
|
|
781
827
|
*/
|
|
782
|
-
function hashClear() {
|
|
783
|
-
this.__data__ =
|
|
828
|
+
function hashClear$1() {
|
|
829
|
+
this.__data__ = nativeCreate$3 ? nativeCreate$3(null) : {};
|
|
784
830
|
this.size = 0;
|
|
785
831
|
}
|
|
786
832
|
|
|
787
|
-
var _hashClear = hashClear;
|
|
833
|
+
var _hashClear = hashClear$1;
|
|
788
834
|
|
|
789
835
|
/**
|
|
790
836
|
* Removes `key` and its value from the hash.
|
|
@@ -796,13 +842,16 @@ var _hashClear = hashClear;
|
|
|
796
842
|
* @param {string} key The key of the value to remove.
|
|
797
843
|
* @returns {boolean} Returns `true` if the entry was removed, else `false`.
|
|
798
844
|
*/
|
|
799
|
-
|
|
845
|
+
|
|
846
|
+
function hashDelete$1(key) {
|
|
800
847
|
var result = this.has(key) && delete this.__data__[key];
|
|
801
848
|
this.size -= result ? 1 : 0;
|
|
802
849
|
return result;
|
|
803
850
|
}
|
|
804
851
|
|
|
805
|
-
var _hashDelete = hashDelete;
|
|
852
|
+
var _hashDelete = hashDelete$1;
|
|
853
|
+
|
|
854
|
+
var nativeCreate$2 = _nativeCreate;
|
|
806
855
|
|
|
807
856
|
/** Used to stand-in for `undefined` hash values. */
|
|
808
857
|
var HASH_UNDEFINED$1 = '__lodash_hash_undefined__';
|
|
@@ -822,16 +871,18 @@ var hasOwnProperty$6 = objectProto$7.hasOwnProperty;
|
|
|
822
871
|
* @param {string} key The key of the value to get.
|
|
823
872
|
* @returns {*} Returns the entry value.
|
|
824
873
|
*/
|
|
825
|
-
function hashGet(key) {
|
|
874
|
+
function hashGet$1(key) {
|
|
826
875
|
var data = this.__data__;
|
|
827
|
-
if (
|
|
876
|
+
if (nativeCreate$2) {
|
|
828
877
|
var result = data[key];
|
|
829
878
|
return result === HASH_UNDEFINED$1 ? undefined : result;
|
|
830
879
|
}
|
|
831
880
|
return hasOwnProperty$6.call(data, key) ? data[key] : undefined;
|
|
832
881
|
}
|
|
833
882
|
|
|
834
|
-
var _hashGet = hashGet;
|
|
883
|
+
var _hashGet = hashGet$1;
|
|
884
|
+
|
|
885
|
+
var nativeCreate$1 = _nativeCreate;
|
|
835
886
|
|
|
836
887
|
/** Used for built-in method references. */
|
|
837
888
|
var objectProto$6 = Object.prototype;
|
|
@@ -848,12 +899,14 @@ var hasOwnProperty$5 = objectProto$6.hasOwnProperty;
|
|
|
848
899
|
* @param {string} key The key of the entry to check.
|
|
849
900
|
* @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
|
|
850
901
|
*/
|
|
851
|
-
function hashHas(key) {
|
|
902
|
+
function hashHas$1(key) {
|
|
852
903
|
var data = this.__data__;
|
|
853
|
-
return
|
|
904
|
+
return nativeCreate$1 ? (data[key] !== undefined) : hasOwnProperty$5.call(data, key);
|
|
854
905
|
}
|
|
855
906
|
|
|
856
|
-
var _hashHas = hashHas;
|
|
907
|
+
var _hashHas = hashHas$1;
|
|
908
|
+
|
|
909
|
+
var nativeCreate = _nativeCreate;
|
|
857
910
|
|
|
858
911
|
/** Used to stand-in for `undefined` hash values. */
|
|
859
912
|
var HASH_UNDEFINED = '__lodash_hash_undefined__';
|
|
@@ -868,14 +921,20 @@ var HASH_UNDEFINED = '__lodash_hash_undefined__';
|
|
|
868
921
|
* @param {*} value The value to set.
|
|
869
922
|
* @returns {Object} Returns the hash instance.
|
|
870
923
|
*/
|
|
871
|
-
function hashSet(key, value) {
|
|
924
|
+
function hashSet$1(key, value) {
|
|
872
925
|
var data = this.__data__;
|
|
873
926
|
this.size += this.has(key) ? 0 : 1;
|
|
874
|
-
data[key] = (
|
|
927
|
+
data[key] = (nativeCreate && value === undefined) ? HASH_UNDEFINED : value;
|
|
875
928
|
return this;
|
|
876
929
|
}
|
|
877
930
|
|
|
878
|
-
var _hashSet = hashSet;
|
|
931
|
+
var _hashSet = hashSet$1;
|
|
932
|
+
|
|
933
|
+
var hashClear = _hashClear,
|
|
934
|
+
hashDelete = _hashDelete,
|
|
935
|
+
hashGet = _hashGet,
|
|
936
|
+
hashHas = _hashHas,
|
|
937
|
+
hashSet = _hashSet;
|
|
879
938
|
|
|
880
939
|
/**
|
|
881
940
|
* Creates a hash object.
|
|
@@ -884,7 +943,7 @@ var _hashSet = hashSet;
|
|
|
884
943
|
* @constructor
|
|
885
944
|
* @param {Array} [entries] The key-value pairs to cache.
|
|
886
945
|
*/
|
|
887
|
-
function Hash(entries) {
|
|
946
|
+
function Hash$1(entries) {
|
|
888
947
|
var index = -1,
|
|
889
948
|
length = entries == null ? 0 : entries.length;
|
|
890
949
|
|
|
@@ -896,13 +955,17 @@ function Hash(entries) {
|
|
|
896
955
|
}
|
|
897
956
|
|
|
898
957
|
// Add methods to `Hash`.
|
|
899
|
-
Hash.prototype.clear =
|
|
900
|
-
Hash.prototype['delete'] =
|
|
901
|
-
Hash.prototype.get =
|
|
902
|
-
Hash.prototype.has =
|
|
903
|
-
Hash.prototype.set =
|
|
958
|
+
Hash$1.prototype.clear = hashClear;
|
|
959
|
+
Hash$1.prototype['delete'] = hashDelete;
|
|
960
|
+
Hash$1.prototype.get = hashGet;
|
|
961
|
+
Hash$1.prototype.has = hashHas;
|
|
962
|
+
Hash$1.prototype.set = hashSet;
|
|
963
|
+
|
|
964
|
+
var _Hash = Hash$1;
|
|
904
965
|
|
|
905
|
-
var
|
|
966
|
+
var Hash = _Hash,
|
|
967
|
+
ListCache$2 = _ListCache,
|
|
968
|
+
Map$2 = _Map;
|
|
906
969
|
|
|
907
970
|
/**
|
|
908
971
|
* Removes all key-value entries from the map.
|
|
@@ -911,16 +974,16 @@ var _Hash = Hash;
|
|
|
911
974
|
* @name clear
|
|
912
975
|
* @memberOf MapCache
|
|
913
976
|
*/
|
|
914
|
-
function mapCacheClear() {
|
|
977
|
+
function mapCacheClear$1() {
|
|
915
978
|
this.size = 0;
|
|
916
979
|
this.__data__ = {
|
|
917
|
-
'hash': new
|
|
918
|
-
'map': new (
|
|
919
|
-
'string': new
|
|
980
|
+
'hash': new Hash,
|
|
981
|
+
'map': new (Map$2 || ListCache$2),
|
|
982
|
+
'string': new Hash
|
|
920
983
|
};
|
|
921
984
|
}
|
|
922
985
|
|
|
923
|
-
var _mapCacheClear = mapCacheClear;
|
|
986
|
+
var _mapCacheClear = mapCacheClear$1;
|
|
924
987
|
|
|
925
988
|
/**
|
|
926
989
|
* Checks if `value` is suitable for use as unique object key.
|
|
@@ -929,14 +992,17 @@ var _mapCacheClear = mapCacheClear;
|
|
|
929
992
|
* @param {*} value The value to check.
|
|
930
993
|
* @returns {boolean} Returns `true` if `value` is suitable, else `false`.
|
|
931
994
|
*/
|
|
932
|
-
|
|
995
|
+
|
|
996
|
+
function isKeyable$1(value) {
|
|
933
997
|
var type = typeof value;
|
|
934
998
|
return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean')
|
|
935
999
|
? (value !== '__proto__')
|
|
936
1000
|
: (value === null);
|
|
937
1001
|
}
|
|
938
1002
|
|
|
939
|
-
var _isKeyable = isKeyable;
|
|
1003
|
+
var _isKeyable = isKeyable$1;
|
|
1004
|
+
|
|
1005
|
+
var isKeyable = _isKeyable;
|
|
940
1006
|
|
|
941
1007
|
/**
|
|
942
1008
|
* Gets the data for `map`.
|
|
@@ -946,14 +1012,16 @@ var _isKeyable = isKeyable;
|
|
|
946
1012
|
* @param {string} key The reference key.
|
|
947
1013
|
* @returns {*} Returns the map data.
|
|
948
1014
|
*/
|
|
949
|
-
function getMapData(map, key) {
|
|
1015
|
+
function getMapData$4(map, key) {
|
|
950
1016
|
var data = map.__data__;
|
|
951
|
-
return
|
|
1017
|
+
return isKeyable(key)
|
|
952
1018
|
? data[typeof key == 'string' ? 'string' : 'hash']
|
|
953
1019
|
: data.map;
|
|
954
1020
|
}
|
|
955
1021
|
|
|
956
|
-
var _getMapData = getMapData;
|
|
1022
|
+
var _getMapData = getMapData$4;
|
|
1023
|
+
|
|
1024
|
+
var getMapData$3 = _getMapData;
|
|
957
1025
|
|
|
958
1026
|
/**
|
|
959
1027
|
* Removes `key` and its value from the map.
|
|
@@ -964,13 +1032,15 @@ var _getMapData = getMapData;
|
|
|
964
1032
|
* @param {string} key The key of the value to remove.
|
|
965
1033
|
* @returns {boolean} Returns `true` if the entry was removed, else `false`.
|
|
966
1034
|
*/
|
|
967
|
-
function mapCacheDelete(key) {
|
|
968
|
-
var result =
|
|
1035
|
+
function mapCacheDelete$1(key) {
|
|
1036
|
+
var result = getMapData$3(this, key)['delete'](key);
|
|
969
1037
|
this.size -= result ? 1 : 0;
|
|
970
1038
|
return result;
|
|
971
1039
|
}
|
|
972
1040
|
|
|
973
|
-
var _mapCacheDelete = mapCacheDelete;
|
|
1041
|
+
var _mapCacheDelete = mapCacheDelete$1;
|
|
1042
|
+
|
|
1043
|
+
var getMapData$2 = _getMapData;
|
|
974
1044
|
|
|
975
1045
|
/**
|
|
976
1046
|
* Gets the map value for `key`.
|
|
@@ -981,11 +1051,13 @@ var _mapCacheDelete = mapCacheDelete;
|
|
|
981
1051
|
* @param {string} key The key of the value to get.
|
|
982
1052
|
* @returns {*} Returns the entry value.
|
|
983
1053
|
*/
|
|
984
|
-
function mapCacheGet(key) {
|
|
985
|
-
return
|
|
1054
|
+
function mapCacheGet$1(key) {
|
|
1055
|
+
return getMapData$2(this, key).get(key);
|
|
986
1056
|
}
|
|
987
1057
|
|
|
988
|
-
var _mapCacheGet = mapCacheGet;
|
|
1058
|
+
var _mapCacheGet = mapCacheGet$1;
|
|
1059
|
+
|
|
1060
|
+
var getMapData$1 = _getMapData;
|
|
989
1061
|
|
|
990
1062
|
/**
|
|
991
1063
|
* Checks if a map value for `key` exists.
|
|
@@ -996,11 +1068,13 @@ var _mapCacheGet = mapCacheGet;
|
|
|
996
1068
|
* @param {string} key The key of the entry to check.
|
|
997
1069
|
* @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
|
|
998
1070
|
*/
|
|
999
|
-
function mapCacheHas(key) {
|
|
1000
|
-
return
|
|
1071
|
+
function mapCacheHas$1(key) {
|
|
1072
|
+
return getMapData$1(this, key).has(key);
|
|
1001
1073
|
}
|
|
1002
1074
|
|
|
1003
|
-
var _mapCacheHas = mapCacheHas;
|
|
1075
|
+
var _mapCacheHas = mapCacheHas$1;
|
|
1076
|
+
|
|
1077
|
+
var getMapData = _getMapData;
|
|
1004
1078
|
|
|
1005
1079
|
/**
|
|
1006
1080
|
* Sets the map `key` to `value`.
|
|
@@ -1012,8 +1086,8 @@ var _mapCacheHas = mapCacheHas;
|
|
|
1012
1086
|
* @param {*} value The value to set.
|
|
1013
1087
|
* @returns {Object} Returns the map cache instance.
|
|
1014
1088
|
*/
|
|
1015
|
-
function mapCacheSet(key, value) {
|
|
1016
|
-
var data =
|
|
1089
|
+
function mapCacheSet$1(key, value) {
|
|
1090
|
+
var data = getMapData(this, key),
|
|
1017
1091
|
size = data.size;
|
|
1018
1092
|
|
|
1019
1093
|
data.set(key, value);
|
|
@@ -1021,7 +1095,13 @@ function mapCacheSet(key, value) {
|
|
|
1021
1095
|
return this;
|
|
1022
1096
|
}
|
|
1023
1097
|
|
|
1024
|
-
var _mapCacheSet = mapCacheSet;
|
|
1098
|
+
var _mapCacheSet = mapCacheSet$1;
|
|
1099
|
+
|
|
1100
|
+
var mapCacheClear = _mapCacheClear,
|
|
1101
|
+
mapCacheDelete = _mapCacheDelete,
|
|
1102
|
+
mapCacheGet = _mapCacheGet,
|
|
1103
|
+
mapCacheHas = _mapCacheHas,
|
|
1104
|
+
mapCacheSet = _mapCacheSet;
|
|
1025
1105
|
|
|
1026
1106
|
/**
|
|
1027
1107
|
* Creates a map cache object to store key-value pairs.
|
|
@@ -1030,7 +1110,7 @@ var _mapCacheSet = mapCacheSet;
|
|
|
1030
1110
|
* @constructor
|
|
1031
1111
|
* @param {Array} [entries] The key-value pairs to cache.
|
|
1032
1112
|
*/
|
|
1033
|
-
function MapCache(entries) {
|
|
1113
|
+
function MapCache$1(entries) {
|
|
1034
1114
|
var index = -1,
|
|
1035
1115
|
length = entries == null ? 0 : entries.length;
|
|
1036
1116
|
|
|
@@ -1042,13 +1122,17 @@ function MapCache(entries) {
|
|
|
1042
1122
|
}
|
|
1043
1123
|
|
|
1044
1124
|
// Add methods to `MapCache`.
|
|
1045
|
-
MapCache.prototype.clear =
|
|
1046
|
-
MapCache.prototype['delete'] =
|
|
1047
|
-
MapCache.prototype.get =
|
|
1048
|
-
MapCache.prototype.has =
|
|
1049
|
-
MapCache.prototype.set =
|
|
1125
|
+
MapCache$1.prototype.clear = mapCacheClear;
|
|
1126
|
+
MapCache$1.prototype['delete'] = mapCacheDelete;
|
|
1127
|
+
MapCache$1.prototype.get = mapCacheGet;
|
|
1128
|
+
MapCache$1.prototype.has = mapCacheHas;
|
|
1129
|
+
MapCache$1.prototype.set = mapCacheSet;
|
|
1050
1130
|
|
|
1051
|
-
var _MapCache = MapCache;
|
|
1131
|
+
var _MapCache = MapCache$1;
|
|
1132
|
+
|
|
1133
|
+
var ListCache$1 = _ListCache,
|
|
1134
|
+
Map$1 = _Map,
|
|
1135
|
+
MapCache = _MapCache;
|
|
1052
1136
|
|
|
1053
1137
|
/** Used as the size to enable large array optimizations. */
|
|
1054
1138
|
var LARGE_ARRAY_SIZE = 200;
|
|
@@ -1063,23 +1147,30 @@ var LARGE_ARRAY_SIZE = 200;
|
|
|
1063
1147
|
* @param {*} value The value to set.
|
|
1064
1148
|
* @returns {Object} Returns the stack cache instance.
|
|
1065
1149
|
*/
|
|
1066
|
-
function stackSet(key, value) {
|
|
1150
|
+
function stackSet$1(key, value) {
|
|
1067
1151
|
var data = this.__data__;
|
|
1068
|
-
if (data instanceof
|
|
1152
|
+
if (data instanceof ListCache$1) {
|
|
1069
1153
|
var pairs = data.__data__;
|
|
1070
|
-
if (!
|
|
1154
|
+
if (!Map$1 || (pairs.length < LARGE_ARRAY_SIZE - 1)) {
|
|
1071
1155
|
pairs.push([key, value]);
|
|
1072
1156
|
this.size = ++data.size;
|
|
1073
1157
|
return this;
|
|
1074
1158
|
}
|
|
1075
|
-
data = this.__data__ = new
|
|
1159
|
+
data = this.__data__ = new MapCache(pairs);
|
|
1076
1160
|
}
|
|
1077
1161
|
data.set(key, value);
|
|
1078
1162
|
this.size = data.size;
|
|
1079
1163
|
return this;
|
|
1080
1164
|
}
|
|
1081
1165
|
|
|
1082
|
-
var _stackSet = stackSet;
|
|
1166
|
+
var _stackSet = stackSet$1;
|
|
1167
|
+
|
|
1168
|
+
var ListCache = _ListCache,
|
|
1169
|
+
stackClear = _stackClear,
|
|
1170
|
+
stackDelete = _stackDelete,
|
|
1171
|
+
stackGet = _stackGet,
|
|
1172
|
+
stackHas = _stackHas,
|
|
1173
|
+
stackSet = _stackSet;
|
|
1083
1174
|
|
|
1084
1175
|
/**
|
|
1085
1176
|
* Creates a stack cache object to store key-value pairs.
|
|
@@ -1088,29 +1179,33 @@ var _stackSet = stackSet;
|
|
|
1088
1179
|
* @constructor
|
|
1089
1180
|
* @param {Array} [entries] The key-value pairs to cache.
|
|
1090
1181
|
*/
|
|
1091
|
-
function Stack(entries) {
|
|
1092
|
-
var data = this.__data__ = new
|
|
1182
|
+
function Stack$1(entries) {
|
|
1183
|
+
var data = this.__data__ = new ListCache(entries);
|
|
1093
1184
|
this.size = data.size;
|
|
1094
1185
|
}
|
|
1095
1186
|
|
|
1096
1187
|
// Add methods to `Stack`.
|
|
1097
|
-
Stack.prototype.clear =
|
|
1098
|
-
Stack.prototype['delete'] =
|
|
1099
|
-
Stack.prototype.get =
|
|
1100
|
-
Stack.prototype.has =
|
|
1101
|
-
Stack.prototype.set =
|
|
1188
|
+
Stack$1.prototype.clear = stackClear;
|
|
1189
|
+
Stack$1.prototype['delete'] = stackDelete;
|
|
1190
|
+
Stack$1.prototype.get = stackGet;
|
|
1191
|
+
Stack$1.prototype.has = stackHas;
|
|
1192
|
+
Stack$1.prototype.set = stackSet;
|
|
1193
|
+
|
|
1194
|
+
var _Stack = Stack$1;
|
|
1102
1195
|
|
|
1103
|
-
var
|
|
1196
|
+
var getNative = _getNative;
|
|
1104
1197
|
|
|
1105
|
-
var defineProperty = (function() {
|
|
1198
|
+
var defineProperty$2 = (function() {
|
|
1106
1199
|
try {
|
|
1107
|
-
var func =
|
|
1200
|
+
var func = getNative(Object, 'defineProperty');
|
|
1108
1201
|
func({}, '', {});
|
|
1109
1202
|
return func;
|
|
1110
1203
|
} catch (e) {}
|
|
1111
1204
|
}());
|
|
1112
1205
|
|
|
1113
|
-
var _defineProperty = defineProperty;
|
|
1206
|
+
var _defineProperty = defineProperty$2;
|
|
1207
|
+
|
|
1208
|
+
var defineProperty$1 = _defineProperty;
|
|
1114
1209
|
|
|
1115
1210
|
/**
|
|
1116
1211
|
* The base implementation of `assignValue` and `assignMergeValue` without
|
|
@@ -1121,9 +1216,9 @@ var _defineProperty = defineProperty;
|
|
|
1121
1216
|
* @param {string} key The key of the property to assign.
|
|
1122
1217
|
* @param {*} value The value to assign.
|
|
1123
1218
|
*/
|
|
1124
|
-
function baseAssignValue(object, key, value) {
|
|
1125
|
-
if (key == '__proto__' &&
|
|
1126
|
-
|
|
1219
|
+
function baseAssignValue$3(object, key, value) {
|
|
1220
|
+
if (key == '__proto__' && defineProperty$1) {
|
|
1221
|
+
defineProperty$1(object, key, {
|
|
1127
1222
|
'configurable': true,
|
|
1128
1223
|
'enumerable': true,
|
|
1129
1224
|
'value': value,
|
|
@@ -1134,7 +1229,10 @@ function baseAssignValue(object, key, value) {
|
|
|
1134
1229
|
}
|
|
1135
1230
|
}
|
|
1136
1231
|
|
|
1137
|
-
var _baseAssignValue = baseAssignValue;
|
|
1232
|
+
var _baseAssignValue = baseAssignValue$3;
|
|
1233
|
+
|
|
1234
|
+
var baseAssignValue$2 = _baseAssignValue,
|
|
1235
|
+
eq$2 = eq_1;
|
|
1138
1236
|
|
|
1139
1237
|
/**
|
|
1140
1238
|
* This function is like `assignValue` except that it doesn't assign
|
|
@@ -1145,14 +1243,14 @@ var _baseAssignValue = baseAssignValue;
|
|
|
1145
1243
|
* @param {string} key The key of the property to assign.
|
|
1146
1244
|
* @param {*} value The value to assign.
|
|
1147
1245
|
*/
|
|
1148
|
-
function assignMergeValue(object, key, value) {
|
|
1149
|
-
if ((value !== undefined && !
|
|
1246
|
+
function assignMergeValue$2(object, key, value) {
|
|
1247
|
+
if ((value !== undefined && !eq$2(object[key], value)) ||
|
|
1150
1248
|
(value === undefined && !(key in object))) {
|
|
1151
|
-
|
|
1249
|
+
baseAssignValue$2(object, key, value);
|
|
1152
1250
|
}
|
|
1153
1251
|
}
|
|
1154
1252
|
|
|
1155
|
-
var _assignMergeValue = assignMergeValue;
|
|
1253
|
+
var _assignMergeValue = assignMergeValue$2;
|
|
1156
1254
|
|
|
1157
1255
|
/**
|
|
1158
1256
|
* Creates a base function for methods like `_.forIn` and `_.forOwn`.
|
|
@@ -1161,7 +1259,8 @@ var _assignMergeValue = assignMergeValue;
|
|
|
1161
1259
|
* @param {boolean} [fromRight] Specify iterating from right to left.
|
|
1162
1260
|
* @returns {Function} Returns the new base function.
|
|
1163
1261
|
*/
|
|
1164
|
-
|
|
1262
|
+
|
|
1263
|
+
function createBaseFor$1(fromRight) {
|
|
1165
1264
|
return function(object, iteratee, keysFunc) {
|
|
1166
1265
|
var index = -1,
|
|
1167
1266
|
iterable = Object(object),
|
|
@@ -1178,7 +1277,9 @@ function createBaseFor(fromRight) {
|
|
|
1178
1277
|
};
|
|
1179
1278
|
}
|
|
1180
1279
|
|
|
1181
|
-
var _createBaseFor = createBaseFor;
|
|
1280
|
+
var _createBaseFor = createBaseFor$1;
|
|
1281
|
+
|
|
1282
|
+
var createBaseFor = _createBaseFor;
|
|
1182
1283
|
|
|
1183
1284
|
/**
|
|
1184
1285
|
* The base implementation of `baseForOwn` which iterates over `object`
|
|
@@ -1191,11 +1292,15 @@ var _createBaseFor = createBaseFor;
|
|
|
1191
1292
|
* @param {Function} keysFunc The function to get the keys of `object`.
|
|
1192
1293
|
* @returns {Object} Returns `object`.
|
|
1193
1294
|
*/
|
|
1194
|
-
var baseFor =
|
|
1295
|
+
var baseFor$1 = createBaseFor();
|
|
1296
|
+
|
|
1297
|
+
var _baseFor = baseFor$1;
|
|
1195
1298
|
|
|
1196
|
-
var
|
|
1299
|
+
var _cloneBuffer = {exports: {}};
|
|
1300
|
+
|
|
1301
|
+
(function (module, exports) {
|
|
1302
|
+
var root = _root;
|
|
1197
1303
|
|
|
1198
|
-
var _cloneBuffer = createCommonjsModule(function (module, exports) {
|
|
1199
1304
|
/** Detect free variable `exports`. */
|
|
1200
1305
|
var freeExports = exports && !exports.nodeType && exports;
|
|
1201
1306
|
|
|
@@ -1206,7 +1311,7 @@ var freeModule = freeExports && 'object' == 'object' && module && !module.nodeTy
|
|
|
1206
1311
|
var moduleExports = freeModule && freeModule.exports === freeExports;
|
|
1207
1312
|
|
|
1208
1313
|
/** Built-in value references. */
|
|
1209
|
-
var Buffer = moduleExports ?
|
|
1314
|
+
var Buffer = moduleExports ? root.Buffer : undefined,
|
|
1210
1315
|
allocUnsafe = Buffer ? Buffer.allocUnsafe : undefined;
|
|
1211
1316
|
|
|
1212
1317
|
/**
|
|
@@ -1229,12 +1334,16 @@ function cloneBuffer(buffer, isDeep) {
|
|
|
1229
1334
|
}
|
|
1230
1335
|
|
|
1231
1336
|
module.exports = cloneBuffer;
|
|
1232
|
-
});
|
|
1337
|
+
}(_cloneBuffer, _cloneBuffer.exports));
|
|
1338
|
+
|
|
1339
|
+
var root = _root;
|
|
1233
1340
|
|
|
1234
1341
|
/** Built-in value references. */
|
|
1235
|
-
var Uint8Array =
|
|
1342
|
+
var Uint8Array$1 = root.Uint8Array;
|
|
1343
|
+
|
|
1344
|
+
var _Uint8Array = Uint8Array$1;
|
|
1236
1345
|
|
|
1237
|
-
var
|
|
1346
|
+
var Uint8Array = _Uint8Array;
|
|
1238
1347
|
|
|
1239
1348
|
/**
|
|
1240
1349
|
* Creates a clone of `arrayBuffer`.
|
|
@@ -1243,13 +1352,15 @@ var _Uint8Array = Uint8Array;
|
|
|
1243
1352
|
* @param {ArrayBuffer} arrayBuffer The array buffer to clone.
|
|
1244
1353
|
* @returns {ArrayBuffer} Returns the cloned array buffer.
|
|
1245
1354
|
*/
|
|
1246
|
-
function cloneArrayBuffer(arrayBuffer) {
|
|
1355
|
+
function cloneArrayBuffer$1(arrayBuffer) {
|
|
1247
1356
|
var result = new arrayBuffer.constructor(arrayBuffer.byteLength);
|
|
1248
|
-
new
|
|
1357
|
+
new Uint8Array(result).set(new Uint8Array(arrayBuffer));
|
|
1249
1358
|
return result;
|
|
1250
1359
|
}
|
|
1251
1360
|
|
|
1252
|
-
var _cloneArrayBuffer = cloneArrayBuffer;
|
|
1361
|
+
var _cloneArrayBuffer = cloneArrayBuffer$1;
|
|
1362
|
+
|
|
1363
|
+
var cloneArrayBuffer = _cloneArrayBuffer;
|
|
1253
1364
|
|
|
1254
1365
|
/**
|
|
1255
1366
|
* Creates a clone of `typedArray`.
|
|
@@ -1259,12 +1370,12 @@ var _cloneArrayBuffer = cloneArrayBuffer;
|
|
|
1259
1370
|
* @param {boolean} [isDeep] Specify a deep clone.
|
|
1260
1371
|
* @returns {Object} Returns the cloned typed array.
|
|
1261
1372
|
*/
|
|
1262
|
-
function cloneTypedArray(typedArray, isDeep) {
|
|
1263
|
-
var buffer = isDeep ?
|
|
1373
|
+
function cloneTypedArray$1(typedArray, isDeep) {
|
|
1374
|
+
var buffer = isDeep ? cloneArrayBuffer(typedArray.buffer) : typedArray.buffer;
|
|
1264
1375
|
return new typedArray.constructor(buffer, typedArray.byteOffset, typedArray.length);
|
|
1265
1376
|
}
|
|
1266
1377
|
|
|
1267
|
-
var _cloneTypedArray = cloneTypedArray;
|
|
1378
|
+
var _cloneTypedArray = cloneTypedArray$1;
|
|
1268
1379
|
|
|
1269
1380
|
/**
|
|
1270
1381
|
* Copies the values of `source` to `array`.
|
|
@@ -1274,7 +1385,8 @@ var _cloneTypedArray = cloneTypedArray;
|
|
|
1274
1385
|
* @param {Array} [array=[]] The array to copy values to.
|
|
1275
1386
|
* @returns {Array} Returns `array`.
|
|
1276
1387
|
*/
|
|
1277
|
-
|
|
1388
|
+
|
|
1389
|
+
function copyArray$1(source, array) {
|
|
1278
1390
|
var index = -1,
|
|
1279
1391
|
length = source.length;
|
|
1280
1392
|
|
|
@@ -1285,7 +1397,9 @@ function copyArray(source, array) {
|
|
|
1285
1397
|
return array;
|
|
1286
1398
|
}
|
|
1287
1399
|
|
|
1288
|
-
var _copyArray = copyArray;
|
|
1400
|
+
var _copyArray = copyArray$1;
|
|
1401
|
+
|
|
1402
|
+
var isObject$4 = isObject_1;
|
|
1289
1403
|
|
|
1290
1404
|
/** Built-in value references. */
|
|
1291
1405
|
var objectCreate = Object.create;
|
|
@@ -1298,10 +1412,10 @@ var objectCreate = Object.create;
|
|
|
1298
1412
|
* @param {Object} proto The object to inherit from.
|
|
1299
1413
|
* @returns {Object} Returns the new object.
|
|
1300
1414
|
*/
|
|
1301
|
-
var baseCreate = (function() {
|
|
1415
|
+
var baseCreate$1 = (function() {
|
|
1302
1416
|
function object() {}
|
|
1303
1417
|
return function(proto) {
|
|
1304
|
-
if (!
|
|
1418
|
+
if (!isObject$4(proto)) {
|
|
1305
1419
|
return {};
|
|
1306
1420
|
}
|
|
1307
1421
|
if (objectCreate) {
|
|
@@ -1314,7 +1428,7 @@ var baseCreate = (function() {
|
|
|
1314
1428
|
};
|
|
1315
1429
|
}());
|
|
1316
1430
|
|
|
1317
|
-
var _baseCreate = baseCreate;
|
|
1431
|
+
var _baseCreate = baseCreate$1;
|
|
1318
1432
|
|
|
1319
1433
|
/**
|
|
1320
1434
|
* Creates a unary function that invokes `func` with its argument transformed.
|
|
@@ -1324,20 +1438,24 @@ var _baseCreate = baseCreate;
|
|
|
1324
1438
|
* @param {Function} transform The argument transform.
|
|
1325
1439
|
* @returns {Function} Returns the new function.
|
|
1326
1440
|
*/
|
|
1327
|
-
|
|
1441
|
+
|
|
1442
|
+
function overArg$1(func, transform) {
|
|
1328
1443
|
return function(arg) {
|
|
1329
1444
|
return func(transform(arg));
|
|
1330
1445
|
};
|
|
1331
1446
|
}
|
|
1332
1447
|
|
|
1333
|
-
var _overArg = overArg;
|
|
1448
|
+
var _overArg = overArg$1;
|
|
1449
|
+
|
|
1450
|
+
var overArg = _overArg;
|
|
1334
1451
|
|
|
1335
1452
|
/** Built-in value references. */
|
|
1336
|
-
var getPrototype =
|
|
1453
|
+
var getPrototype$2 = overArg(Object.getPrototypeOf, Object);
|
|
1337
1454
|
|
|
1338
|
-
var _getPrototype = getPrototype;
|
|
1455
|
+
var _getPrototype = getPrototype$2;
|
|
1339
1456
|
|
|
1340
1457
|
/** Used for built-in method references. */
|
|
1458
|
+
|
|
1341
1459
|
var objectProto$5 = Object.prototype;
|
|
1342
1460
|
|
|
1343
1461
|
/**
|
|
@@ -1347,14 +1465,18 @@ var objectProto$5 = Object.prototype;
|
|
|
1347
1465
|
* @param {*} value The value to check.
|
|
1348
1466
|
* @returns {boolean} Returns `true` if `value` is a prototype, else `false`.
|
|
1349
1467
|
*/
|
|
1350
|
-
function isPrototype(value) {
|
|
1468
|
+
function isPrototype$2(value) {
|
|
1351
1469
|
var Ctor = value && value.constructor,
|
|
1352
1470
|
proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto$5;
|
|
1353
1471
|
|
|
1354
1472
|
return value === proto;
|
|
1355
1473
|
}
|
|
1356
1474
|
|
|
1357
|
-
var _isPrototype = isPrototype;
|
|
1475
|
+
var _isPrototype = isPrototype$2;
|
|
1476
|
+
|
|
1477
|
+
var baseCreate = _baseCreate,
|
|
1478
|
+
getPrototype$1 = _getPrototype,
|
|
1479
|
+
isPrototype$1 = _isPrototype;
|
|
1358
1480
|
|
|
1359
1481
|
/**
|
|
1360
1482
|
* Initializes an object clone.
|
|
@@ -1363,13 +1485,13 @@ var _isPrototype = isPrototype;
|
|
|
1363
1485
|
* @param {Object} object The object to clone.
|
|
1364
1486
|
* @returns {Object} Returns the initialized clone.
|
|
1365
1487
|
*/
|
|
1366
|
-
function initCloneObject(object) {
|
|
1367
|
-
return (typeof object.constructor == 'function' && !
|
|
1368
|
-
?
|
|
1488
|
+
function initCloneObject$1(object) {
|
|
1489
|
+
return (typeof object.constructor == 'function' && !isPrototype$1(object))
|
|
1490
|
+
? baseCreate(getPrototype$1(object))
|
|
1369
1491
|
: {};
|
|
1370
1492
|
}
|
|
1371
1493
|
|
|
1372
|
-
var _initCloneObject = initCloneObject;
|
|
1494
|
+
var _initCloneObject = initCloneObject$1;
|
|
1373
1495
|
|
|
1374
1496
|
/**
|
|
1375
1497
|
* Checks if `value` is object-like. A value is object-like if it's not `null`
|
|
@@ -1395,11 +1517,15 @@ var _initCloneObject = initCloneObject;
|
|
|
1395
1517
|
* _.isObjectLike(null);
|
|
1396
1518
|
* // => false
|
|
1397
1519
|
*/
|
|
1398
|
-
|
|
1520
|
+
|
|
1521
|
+
function isObjectLike$5(value) {
|
|
1399
1522
|
return value != null && typeof value == 'object';
|
|
1400
1523
|
}
|
|
1401
1524
|
|
|
1402
|
-
var isObjectLike_1 = isObjectLike;
|
|
1525
|
+
var isObjectLike_1 = isObjectLike$5;
|
|
1526
|
+
|
|
1527
|
+
var baseGetTag$2 = _baseGetTag,
|
|
1528
|
+
isObjectLike$4 = isObjectLike_1;
|
|
1403
1529
|
|
|
1404
1530
|
/** `Object#toString` result references. */
|
|
1405
1531
|
var argsTag$1 = '[object Arguments]';
|
|
@@ -1411,11 +1537,14 @@ var argsTag$1 = '[object Arguments]';
|
|
|
1411
1537
|
* @param {*} value The value to check.
|
|
1412
1538
|
* @returns {boolean} Returns `true` if `value` is an `arguments` object,
|
|
1413
1539
|
*/
|
|
1414
|
-
function baseIsArguments(value) {
|
|
1415
|
-
return
|
|
1540
|
+
function baseIsArguments$1(value) {
|
|
1541
|
+
return isObjectLike$4(value) && baseGetTag$2(value) == argsTag$1;
|
|
1416
1542
|
}
|
|
1417
1543
|
|
|
1418
|
-
var _baseIsArguments = baseIsArguments;
|
|
1544
|
+
var _baseIsArguments = baseIsArguments$1;
|
|
1545
|
+
|
|
1546
|
+
var baseIsArguments = _baseIsArguments,
|
|
1547
|
+
isObjectLike$3 = isObjectLike_1;
|
|
1419
1548
|
|
|
1420
1549
|
/** Used for built-in method references. */
|
|
1421
1550
|
var objectProto$4 = Object.prototype;
|
|
@@ -1444,12 +1573,12 @@ var propertyIsEnumerable = objectProto$4.propertyIsEnumerable;
|
|
|
1444
1573
|
* _.isArguments([1, 2, 3]);
|
|
1445
1574
|
* // => false
|
|
1446
1575
|
*/
|
|
1447
|
-
var isArguments =
|
|
1448
|
-
return
|
|
1576
|
+
var isArguments$2 = baseIsArguments(function() { return arguments; }()) ? baseIsArguments : function(value) {
|
|
1577
|
+
return isObjectLike$3(value) && hasOwnProperty$4.call(value, 'callee') &&
|
|
1449
1578
|
!propertyIsEnumerable.call(value, 'callee');
|
|
1450
1579
|
};
|
|
1451
1580
|
|
|
1452
|
-
var isArguments_1 = isArguments;
|
|
1581
|
+
var isArguments_1 = isArguments$2;
|
|
1453
1582
|
|
|
1454
1583
|
/**
|
|
1455
1584
|
* Checks if `value` is classified as an `Array` object.
|
|
@@ -1474,11 +1603,13 @@ var isArguments_1 = isArguments;
|
|
|
1474
1603
|
* _.isArray(_.noop);
|
|
1475
1604
|
* // => false
|
|
1476
1605
|
*/
|
|
1477
|
-
var isArray = Array.isArray;
|
|
1478
1606
|
|
|
1479
|
-
var
|
|
1607
|
+
var isArray$2 = Array.isArray;
|
|
1608
|
+
|
|
1609
|
+
var isArray_1 = isArray$2;
|
|
1480
1610
|
|
|
1481
1611
|
/** Used as references for various `Number` constants. */
|
|
1612
|
+
|
|
1482
1613
|
var MAX_SAFE_INTEGER$1 = 9007199254740991;
|
|
1483
1614
|
|
|
1484
1615
|
/**
|
|
@@ -1507,12 +1638,15 @@ var MAX_SAFE_INTEGER$1 = 9007199254740991;
|
|
|
1507
1638
|
* _.isLength('3');
|
|
1508
1639
|
* // => false
|
|
1509
1640
|
*/
|
|
1510
|
-
function isLength(value) {
|
|
1641
|
+
function isLength$2(value) {
|
|
1511
1642
|
return typeof value == 'number' &&
|
|
1512
1643
|
value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER$1;
|
|
1513
1644
|
}
|
|
1514
1645
|
|
|
1515
|
-
var isLength_1 = isLength;
|
|
1646
|
+
var isLength_1 = isLength$2;
|
|
1647
|
+
|
|
1648
|
+
var isFunction$1 = isFunction_1,
|
|
1649
|
+
isLength$1 = isLength_1;
|
|
1516
1650
|
|
|
1517
1651
|
/**
|
|
1518
1652
|
* Checks if `value` is array-like. A value is considered array-like if it's
|
|
@@ -1539,11 +1673,14 @@ var isLength_1 = isLength;
|
|
|
1539
1673
|
* _.isArrayLike(_.noop);
|
|
1540
1674
|
* // => false
|
|
1541
1675
|
*/
|
|
1542
|
-
function isArrayLike(value) {
|
|
1543
|
-
return value != null &&
|
|
1676
|
+
function isArrayLike$3(value) {
|
|
1677
|
+
return value != null && isLength$1(value.length) && !isFunction$1(value);
|
|
1544
1678
|
}
|
|
1545
1679
|
|
|
1546
|
-
var isArrayLike_1 = isArrayLike;
|
|
1680
|
+
var isArrayLike_1 = isArrayLike$3;
|
|
1681
|
+
|
|
1682
|
+
var isArrayLike$2 = isArrayLike_1,
|
|
1683
|
+
isObjectLike$2 = isObjectLike_1;
|
|
1547
1684
|
|
|
1548
1685
|
/**
|
|
1549
1686
|
* This method is like `_.isArrayLike` except that it also checks if `value`
|
|
@@ -1570,11 +1707,13 @@ var isArrayLike_1 = isArrayLike;
|
|
|
1570
1707
|
* _.isArrayLikeObject(_.noop);
|
|
1571
1708
|
* // => false
|
|
1572
1709
|
*/
|
|
1573
|
-
function isArrayLikeObject(value) {
|
|
1574
|
-
return
|
|
1710
|
+
function isArrayLikeObject$1(value) {
|
|
1711
|
+
return isObjectLike$2(value) && isArrayLike$2(value);
|
|
1575
1712
|
}
|
|
1576
1713
|
|
|
1577
|
-
var isArrayLikeObject_1 = isArrayLikeObject;
|
|
1714
|
+
var isArrayLikeObject_1 = isArrayLikeObject$1;
|
|
1715
|
+
|
|
1716
|
+
var isBuffer$2 = {exports: {}};
|
|
1578
1717
|
|
|
1579
1718
|
/**
|
|
1580
1719
|
* This method returns `false`.
|
|
@@ -1589,13 +1728,17 @@ var isArrayLikeObject_1 = isArrayLikeObject;
|
|
|
1589
1728
|
* _.times(2, _.stubFalse);
|
|
1590
1729
|
* // => [false, false]
|
|
1591
1730
|
*/
|
|
1731
|
+
|
|
1592
1732
|
function stubFalse() {
|
|
1593
1733
|
return false;
|
|
1594
1734
|
}
|
|
1595
1735
|
|
|
1596
1736
|
var stubFalse_1 = stubFalse;
|
|
1597
1737
|
|
|
1598
|
-
|
|
1738
|
+
(function (module, exports) {
|
|
1739
|
+
var root = _root,
|
|
1740
|
+
stubFalse = stubFalse_1;
|
|
1741
|
+
|
|
1599
1742
|
/** Detect free variable `exports`. */
|
|
1600
1743
|
var freeExports = exports && !exports.nodeType && exports;
|
|
1601
1744
|
|
|
@@ -1606,7 +1749,7 @@ var freeModule = freeExports && 'object' == 'object' && module && !module.nodeTy
|
|
|
1606
1749
|
var moduleExports = freeModule && freeModule.exports === freeExports;
|
|
1607
1750
|
|
|
1608
1751
|
/** Built-in value references. */
|
|
1609
|
-
var Buffer = moduleExports ?
|
|
1752
|
+
var Buffer = moduleExports ? root.Buffer : undefined;
|
|
1610
1753
|
|
|
1611
1754
|
/* Built-in method references for those with the same name as other `lodash` methods. */
|
|
1612
1755
|
var nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined;
|
|
@@ -1628,10 +1771,14 @@ var nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined;
|
|
|
1628
1771
|
* _.isBuffer(new Uint8Array(2));
|
|
1629
1772
|
* // => false
|
|
1630
1773
|
*/
|
|
1631
|
-
var isBuffer = nativeIsBuffer ||
|
|
1774
|
+
var isBuffer = nativeIsBuffer || stubFalse;
|
|
1632
1775
|
|
|
1633
1776
|
module.exports = isBuffer;
|
|
1634
|
-
});
|
|
1777
|
+
}(isBuffer$2, isBuffer$2.exports));
|
|
1778
|
+
|
|
1779
|
+
var baseGetTag$1 = _baseGetTag,
|
|
1780
|
+
getPrototype = _getPrototype,
|
|
1781
|
+
isObjectLike$1 = isObjectLike_1;
|
|
1635
1782
|
|
|
1636
1783
|
/** `Object#toString` result references. */
|
|
1637
1784
|
var objectTag$1 = '[object Object]';
|
|
@@ -1677,11 +1824,11 @@ var objectCtorString = funcToString.call(Object);
|
|
|
1677
1824
|
* _.isPlainObject(Object.create(null));
|
|
1678
1825
|
* // => true
|
|
1679
1826
|
*/
|
|
1680
|
-
function isPlainObject(value) {
|
|
1681
|
-
if (!
|
|
1827
|
+
function isPlainObject$1(value) {
|
|
1828
|
+
if (!isObjectLike$1(value) || baseGetTag$1(value) != objectTag$1) {
|
|
1682
1829
|
return false;
|
|
1683
1830
|
}
|
|
1684
|
-
var proto =
|
|
1831
|
+
var proto = getPrototype(value);
|
|
1685
1832
|
if (proto === null) {
|
|
1686
1833
|
return true;
|
|
1687
1834
|
}
|
|
@@ -1690,7 +1837,11 @@ function isPlainObject(value) {
|
|
|
1690
1837
|
funcToString.call(Ctor) == objectCtorString;
|
|
1691
1838
|
}
|
|
1692
1839
|
|
|
1693
|
-
var isPlainObject_1 = isPlainObject;
|
|
1840
|
+
var isPlainObject_1 = isPlainObject$1;
|
|
1841
|
+
|
|
1842
|
+
var baseGetTag = _baseGetTag,
|
|
1843
|
+
isLength = isLength_1,
|
|
1844
|
+
isObjectLike = isObjectLike_1;
|
|
1694
1845
|
|
|
1695
1846
|
/** `Object#toString` result references. */
|
|
1696
1847
|
var argsTag = '[object Arguments]',
|
|
@@ -1742,12 +1893,12 @@ typedArrayTags[weakMapTag] = false;
|
|
|
1742
1893
|
* @param {*} value The value to check.
|
|
1743
1894
|
* @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
|
|
1744
1895
|
*/
|
|
1745
|
-
function baseIsTypedArray(value) {
|
|
1746
|
-
return
|
|
1747
|
-
|
|
1896
|
+
function baseIsTypedArray$1(value) {
|
|
1897
|
+
return isObjectLike(value) &&
|
|
1898
|
+
isLength(value.length) && !!typedArrayTags[baseGetTag(value)];
|
|
1748
1899
|
}
|
|
1749
1900
|
|
|
1750
|
-
var _baseIsTypedArray = baseIsTypedArray;
|
|
1901
|
+
var _baseIsTypedArray = baseIsTypedArray$1;
|
|
1751
1902
|
|
|
1752
1903
|
/**
|
|
1753
1904
|
* The base implementation of `_.unary` without support for storing metadata.
|
|
@@ -1756,15 +1907,20 @@ var _baseIsTypedArray = baseIsTypedArray;
|
|
|
1756
1907
|
* @param {Function} func The function to cap arguments for.
|
|
1757
1908
|
* @returns {Function} Returns the new capped function.
|
|
1758
1909
|
*/
|
|
1759
|
-
|
|
1910
|
+
|
|
1911
|
+
function baseUnary$1(func) {
|
|
1760
1912
|
return function(value) {
|
|
1761
1913
|
return func(value);
|
|
1762
1914
|
};
|
|
1763
1915
|
}
|
|
1764
1916
|
|
|
1765
|
-
var _baseUnary = baseUnary;
|
|
1917
|
+
var _baseUnary = baseUnary$1;
|
|
1918
|
+
|
|
1919
|
+
var _nodeUtil = {exports: {}};
|
|
1920
|
+
|
|
1921
|
+
(function (module, exports) {
|
|
1922
|
+
var freeGlobal = _freeGlobal;
|
|
1766
1923
|
|
|
1767
|
-
var _nodeUtil = createCommonjsModule(function (module, exports) {
|
|
1768
1924
|
/** Detect free variable `exports`. */
|
|
1769
1925
|
var freeExports = exports && !exports.nodeType && exports;
|
|
1770
1926
|
|
|
@@ -1775,7 +1931,7 @@ var freeModule = freeExports && 'object' == 'object' && module && !module.nodeTy
|
|
|
1775
1931
|
var moduleExports = freeModule && freeModule.exports === freeExports;
|
|
1776
1932
|
|
|
1777
1933
|
/** Detect free variable `process` from Node.js. */
|
|
1778
|
-
var freeProcess = moduleExports &&
|
|
1934
|
+
var freeProcess = moduleExports && freeGlobal.process;
|
|
1779
1935
|
|
|
1780
1936
|
/** Used to access faster Node.js helpers. */
|
|
1781
1937
|
var nodeUtil = (function() {
|
|
@@ -1793,10 +1949,14 @@ var nodeUtil = (function() {
|
|
|
1793
1949
|
}());
|
|
1794
1950
|
|
|
1795
1951
|
module.exports = nodeUtil;
|
|
1796
|
-
});
|
|
1952
|
+
}(_nodeUtil, _nodeUtil.exports));
|
|
1953
|
+
|
|
1954
|
+
var baseIsTypedArray = _baseIsTypedArray,
|
|
1955
|
+
baseUnary = _baseUnary,
|
|
1956
|
+
nodeUtil = _nodeUtil.exports;
|
|
1797
1957
|
|
|
1798
1958
|
/* Node.js helper references. */
|
|
1799
|
-
var nodeIsTypedArray =
|
|
1959
|
+
var nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;
|
|
1800
1960
|
|
|
1801
1961
|
/**
|
|
1802
1962
|
* Checks if `value` is classified as a typed array.
|
|
@@ -1815,9 +1975,9 @@ var nodeIsTypedArray = _nodeUtil && _nodeUtil.isTypedArray;
|
|
|
1815
1975
|
* _.isTypedArray([]);
|
|
1816
1976
|
* // => false
|
|
1817
1977
|
*/
|
|
1818
|
-
var isTypedArray = nodeIsTypedArray ?
|
|
1978
|
+
var isTypedArray$2 = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;
|
|
1819
1979
|
|
|
1820
|
-
var isTypedArray_1 = isTypedArray;
|
|
1980
|
+
var isTypedArray_1 = isTypedArray$2;
|
|
1821
1981
|
|
|
1822
1982
|
/**
|
|
1823
1983
|
* Gets the value at `key`, unless `key` is "__proto__" or "constructor".
|
|
@@ -1827,7 +1987,8 @@ var isTypedArray_1 = isTypedArray;
|
|
|
1827
1987
|
* @param {string} key The key of the property to get.
|
|
1828
1988
|
* @returns {*} Returns the property value.
|
|
1829
1989
|
*/
|
|
1830
|
-
|
|
1990
|
+
|
|
1991
|
+
function safeGet$2(object, key) {
|
|
1831
1992
|
if (key === 'constructor' && typeof object[key] === 'function') {
|
|
1832
1993
|
return;
|
|
1833
1994
|
}
|
|
@@ -1839,7 +2000,10 @@ function safeGet(object, key) {
|
|
|
1839
2000
|
return object[key];
|
|
1840
2001
|
}
|
|
1841
2002
|
|
|
1842
|
-
var _safeGet = safeGet;
|
|
2003
|
+
var _safeGet = safeGet$2;
|
|
2004
|
+
|
|
2005
|
+
var baseAssignValue$1 = _baseAssignValue,
|
|
2006
|
+
eq$1 = eq_1;
|
|
1843
2007
|
|
|
1844
2008
|
/** Used for built-in method references. */
|
|
1845
2009
|
var objectProto$2 = Object.prototype;
|
|
@@ -1857,15 +2021,18 @@ var hasOwnProperty$2 = objectProto$2.hasOwnProperty;
|
|
|
1857
2021
|
* @param {string} key The key of the property to assign.
|
|
1858
2022
|
* @param {*} value The value to assign.
|
|
1859
2023
|
*/
|
|
1860
|
-
function assignValue(object, key, value) {
|
|
2024
|
+
function assignValue$1(object, key, value) {
|
|
1861
2025
|
var objValue = object[key];
|
|
1862
|
-
if (!(hasOwnProperty$2.call(object, key) &&
|
|
2026
|
+
if (!(hasOwnProperty$2.call(object, key) && eq$1(objValue, value)) ||
|
|
1863
2027
|
(value === undefined && !(key in object))) {
|
|
1864
|
-
|
|
2028
|
+
baseAssignValue$1(object, key, value);
|
|
1865
2029
|
}
|
|
1866
2030
|
}
|
|
1867
2031
|
|
|
1868
|
-
var _assignValue = assignValue;
|
|
2032
|
+
var _assignValue = assignValue$1;
|
|
2033
|
+
|
|
2034
|
+
var assignValue = _assignValue,
|
|
2035
|
+
baseAssignValue = _baseAssignValue;
|
|
1869
2036
|
|
|
1870
2037
|
/**
|
|
1871
2038
|
* Copies properties of `source` to `object`.
|
|
@@ -1877,7 +2044,7 @@ var _assignValue = assignValue;
|
|
|
1877
2044
|
* @param {Function} [customizer] The function to customize copied values.
|
|
1878
2045
|
* @returns {Object} Returns `object`.
|
|
1879
2046
|
*/
|
|
1880
|
-
function copyObject(source, props, object, customizer) {
|
|
2047
|
+
function copyObject$1(source, props, object, customizer) {
|
|
1881
2048
|
var isNew = !object;
|
|
1882
2049
|
object || (object = {});
|
|
1883
2050
|
|
|
@@ -1895,15 +2062,15 @@ function copyObject(source, props, object, customizer) {
|
|
|
1895
2062
|
newValue = source[key];
|
|
1896
2063
|
}
|
|
1897
2064
|
if (isNew) {
|
|
1898
|
-
|
|
2065
|
+
baseAssignValue(object, key, newValue);
|
|
1899
2066
|
} else {
|
|
1900
|
-
|
|
2067
|
+
assignValue(object, key, newValue);
|
|
1901
2068
|
}
|
|
1902
2069
|
}
|
|
1903
2070
|
return object;
|
|
1904
2071
|
}
|
|
1905
2072
|
|
|
1906
|
-
var _copyObject = copyObject;
|
|
2073
|
+
var _copyObject = copyObject$1;
|
|
1907
2074
|
|
|
1908
2075
|
/**
|
|
1909
2076
|
* The base implementation of `_.times` without support for iteratee shorthands
|
|
@@ -1914,7 +2081,8 @@ var _copyObject = copyObject;
|
|
|
1914
2081
|
* @param {Function} iteratee The function invoked per iteration.
|
|
1915
2082
|
* @returns {Array} Returns the array of results.
|
|
1916
2083
|
*/
|
|
1917
|
-
|
|
2084
|
+
|
|
2085
|
+
function baseTimes$1(n, iteratee) {
|
|
1918
2086
|
var index = -1,
|
|
1919
2087
|
result = Array(n);
|
|
1920
2088
|
|
|
@@ -1924,9 +2092,10 @@ function baseTimes(n, iteratee) {
|
|
|
1924
2092
|
return result;
|
|
1925
2093
|
}
|
|
1926
2094
|
|
|
1927
|
-
var _baseTimes = baseTimes;
|
|
2095
|
+
var _baseTimes = baseTimes$1;
|
|
1928
2096
|
|
|
1929
2097
|
/** Used as references for various `Number` constants. */
|
|
2098
|
+
|
|
1930
2099
|
var MAX_SAFE_INTEGER = 9007199254740991;
|
|
1931
2100
|
|
|
1932
2101
|
/** Used to detect unsigned integer values. */
|
|
@@ -1940,7 +2109,7 @@ var reIsUint = /^(?:0|[1-9]\d*)$/;
|
|
|
1940
2109
|
* @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.
|
|
1941
2110
|
* @returns {boolean} Returns `true` if `value` is a valid index, else `false`.
|
|
1942
2111
|
*/
|
|
1943
|
-
function isIndex(value, length) {
|
|
2112
|
+
function isIndex$2(value, length) {
|
|
1944
2113
|
var type = typeof value;
|
|
1945
2114
|
length = length == null ? MAX_SAFE_INTEGER : length;
|
|
1946
2115
|
|
|
@@ -1950,7 +2119,14 @@ function isIndex(value, length) {
|
|
|
1950
2119
|
(value > -1 && value % 1 == 0 && value < length);
|
|
1951
2120
|
}
|
|
1952
2121
|
|
|
1953
|
-
var _isIndex = isIndex;
|
|
2122
|
+
var _isIndex = isIndex$2;
|
|
2123
|
+
|
|
2124
|
+
var baseTimes = _baseTimes,
|
|
2125
|
+
isArguments$1 = isArguments_1,
|
|
2126
|
+
isArray$1 = isArray_1,
|
|
2127
|
+
isBuffer$1 = isBuffer$2.exports,
|
|
2128
|
+
isIndex$1 = _isIndex,
|
|
2129
|
+
isTypedArray$1 = isTypedArray_1;
|
|
1954
2130
|
|
|
1955
2131
|
/** Used for built-in method references. */
|
|
1956
2132
|
var objectProto$1 = Object.prototype;
|
|
@@ -1966,13 +2142,13 @@ var hasOwnProperty$1 = objectProto$1.hasOwnProperty;
|
|
|
1966
2142
|
* @param {boolean} inherited Specify returning inherited property names.
|
|
1967
2143
|
* @returns {Array} Returns the array of property names.
|
|
1968
2144
|
*/
|
|
1969
|
-
function arrayLikeKeys(value, inherited) {
|
|
1970
|
-
var isArr =
|
|
1971
|
-
isArg = !isArr &&
|
|
1972
|
-
isBuff = !isArr && !isArg &&
|
|
1973
|
-
isType = !isArr && !isArg && !isBuff &&
|
|
2145
|
+
function arrayLikeKeys$1(value, inherited) {
|
|
2146
|
+
var isArr = isArray$1(value),
|
|
2147
|
+
isArg = !isArr && isArguments$1(value),
|
|
2148
|
+
isBuff = !isArr && !isArg && isBuffer$1(value),
|
|
2149
|
+
isType = !isArr && !isArg && !isBuff && isTypedArray$1(value),
|
|
1974
2150
|
skipIndexes = isArr || isArg || isBuff || isType,
|
|
1975
|
-
result = skipIndexes ?
|
|
2151
|
+
result = skipIndexes ? baseTimes(value.length, String) : [],
|
|
1976
2152
|
length = result.length;
|
|
1977
2153
|
|
|
1978
2154
|
for (var key in value) {
|
|
@@ -1985,7 +2161,7 @@ function arrayLikeKeys(value, inherited) {
|
|
|
1985
2161
|
// PhantomJS 2 has enumerable non-index properties on typed arrays.
|
|
1986
2162
|
(isType && (key == 'buffer' || key == 'byteLength' || key == 'byteOffset')) ||
|
|
1987
2163
|
// Skip index properties.
|
|
1988
|
-
|
|
2164
|
+
isIndex$1(key, length)
|
|
1989
2165
|
))) {
|
|
1990
2166
|
result.push(key);
|
|
1991
2167
|
}
|
|
@@ -1993,7 +2169,7 @@ function arrayLikeKeys(value, inherited) {
|
|
|
1993
2169
|
return result;
|
|
1994
2170
|
}
|
|
1995
2171
|
|
|
1996
|
-
var _arrayLikeKeys = arrayLikeKeys;
|
|
2172
|
+
var _arrayLikeKeys = arrayLikeKeys$1;
|
|
1997
2173
|
|
|
1998
2174
|
/**
|
|
1999
2175
|
* This function is like
|
|
@@ -2004,7 +2180,8 @@ var _arrayLikeKeys = arrayLikeKeys;
|
|
|
2004
2180
|
* @param {Object} object The object to query.
|
|
2005
2181
|
* @returns {Array} Returns the array of property names.
|
|
2006
2182
|
*/
|
|
2007
|
-
|
|
2183
|
+
|
|
2184
|
+
function nativeKeysIn$1(object) {
|
|
2008
2185
|
var result = [];
|
|
2009
2186
|
if (object != null) {
|
|
2010
2187
|
for (var key in Object(object)) {
|
|
@@ -2014,7 +2191,11 @@ function nativeKeysIn(object) {
|
|
|
2014
2191
|
return result;
|
|
2015
2192
|
}
|
|
2016
2193
|
|
|
2017
|
-
var _nativeKeysIn = nativeKeysIn;
|
|
2194
|
+
var _nativeKeysIn = nativeKeysIn$1;
|
|
2195
|
+
|
|
2196
|
+
var isObject$3 = isObject_1,
|
|
2197
|
+
isPrototype = _isPrototype,
|
|
2198
|
+
nativeKeysIn = _nativeKeysIn;
|
|
2018
2199
|
|
|
2019
2200
|
/** Used for built-in method references. */
|
|
2020
2201
|
var objectProto = Object.prototype;
|
|
@@ -2029,11 +2210,11 @@ var hasOwnProperty = objectProto.hasOwnProperty;
|
|
|
2029
2210
|
* @param {Object} object The object to query.
|
|
2030
2211
|
* @returns {Array} Returns the array of property names.
|
|
2031
2212
|
*/
|
|
2032
|
-
function baseKeysIn(object) {
|
|
2033
|
-
if (!
|
|
2034
|
-
return
|
|
2213
|
+
function baseKeysIn$1(object) {
|
|
2214
|
+
if (!isObject$3(object)) {
|
|
2215
|
+
return nativeKeysIn(object);
|
|
2035
2216
|
}
|
|
2036
|
-
var isProto =
|
|
2217
|
+
var isProto = isPrototype(object),
|
|
2037
2218
|
result = [];
|
|
2038
2219
|
|
|
2039
2220
|
for (var key in object) {
|
|
@@ -2044,7 +2225,11 @@ function baseKeysIn(object) {
|
|
|
2044
2225
|
return result;
|
|
2045
2226
|
}
|
|
2046
2227
|
|
|
2047
|
-
var _baseKeysIn = baseKeysIn;
|
|
2228
|
+
var _baseKeysIn = baseKeysIn$1;
|
|
2229
|
+
|
|
2230
|
+
var arrayLikeKeys = _arrayLikeKeys,
|
|
2231
|
+
baseKeysIn = _baseKeysIn,
|
|
2232
|
+
isArrayLike$1 = isArrayLike_1;
|
|
2048
2233
|
|
|
2049
2234
|
/**
|
|
2050
2235
|
* Creates an array of the own and inherited enumerable property names of `object`.
|
|
@@ -2069,11 +2254,14 @@ var _baseKeysIn = baseKeysIn;
|
|
|
2069
2254
|
* _.keysIn(new Foo);
|
|
2070
2255
|
* // => ['a', 'b', 'c'] (iteration order is not guaranteed)
|
|
2071
2256
|
*/
|
|
2072
|
-
function keysIn(object) {
|
|
2073
|
-
return
|
|
2257
|
+
function keysIn$2(object) {
|
|
2258
|
+
return isArrayLike$1(object) ? arrayLikeKeys(object, true) : baseKeysIn(object);
|
|
2074
2259
|
}
|
|
2075
2260
|
|
|
2076
|
-
var keysIn_1 = keysIn;
|
|
2261
|
+
var keysIn_1 = keysIn$2;
|
|
2262
|
+
|
|
2263
|
+
var copyObject = _copyObject,
|
|
2264
|
+
keysIn$1 = keysIn_1;
|
|
2077
2265
|
|
|
2078
2266
|
/**
|
|
2079
2267
|
* Converts `value` to a plain object flattening inherited enumerable string
|
|
@@ -2099,11 +2287,27 @@ var keysIn_1 = keysIn;
|
|
|
2099
2287
|
* _.assign({ 'a': 1 }, _.toPlainObject(new Foo));
|
|
2100
2288
|
* // => { 'a': 1, 'b': 2, 'c': 3 }
|
|
2101
2289
|
*/
|
|
2102
|
-
function toPlainObject(value) {
|
|
2103
|
-
return
|
|
2290
|
+
function toPlainObject$1(value) {
|
|
2291
|
+
return copyObject(value, keysIn$1(value));
|
|
2104
2292
|
}
|
|
2105
2293
|
|
|
2106
|
-
var toPlainObject_1 = toPlainObject;
|
|
2294
|
+
var toPlainObject_1 = toPlainObject$1;
|
|
2295
|
+
|
|
2296
|
+
var assignMergeValue$1 = _assignMergeValue,
|
|
2297
|
+
cloneBuffer = _cloneBuffer.exports,
|
|
2298
|
+
cloneTypedArray = _cloneTypedArray,
|
|
2299
|
+
copyArray = _copyArray,
|
|
2300
|
+
initCloneObject = _initCloneObject,
|
|
2301
|
+
isArguments = isArguments_1,
|
|
2302
|
+
isArray = isArray_1,
|
|
2303
|
+
isArrayLikeObject = isArrayLikeObject_1,
|
|
2304
|
+
isBuffer = isBuffer$2.exports,
|
|
2305
|
+
isFunction = isFunction_1,
|
|
2306
|
+
isObject$2 = isObject_1,
|
|
2307
|
+
isPlainObject = isPlainObject_1,
|
|
2308
|
+
isTypedArray = isTypedArray_1,
|
|
2309
|
+
safeGet$1 = _safeGet,
|
|
2310
|
+
toPlainObject = toPlainObject_1;
|
|
2107
2311
|
|
|
2108
2312
|
/**
|
|
2109
2313
|
* A specialized version of `baseMerge` for arrays and objects which performs
|
|
@@ -2120,13 +2324,13 @@ var toPlainObject_1 = toPlainObject;
|
|
|
2120
2324
|
* @param {Object} [stack] Tracks traversed source values and their merged
|
|
2121
2325
|
* counterparts.
|
|
2122
2326
|
*/
|
|
2123
|
-
function baseMergeDeep(object, source, key, srcIndex, mergeFunc, customizer, stack) {
|
|
2124
|
-
var objValue =
|
|
2125
|
-
srcValue =
|
|
2327
|
+
function baseMergeDeep$1(object, source, key, srcIndex, mergeFunc, customizer, stack) {
|
|
2328
|
+
var objValue = safeGet$1(object, key),
|
|
2329
|
+
srcValue = safeGet$1(source, key),
|
|
2126
2330
|
stacked = stack.get(srcValue);
|
|
2127
2331
|
|
|
2128
2332
|
if (stacked) {
|
|
2129
|
-
|
|
2333
|
+
assignMergeValue$1(object, key, stacked);
|
|
2130
2334
|
return;
|
|
2131
2335
|
}
|
|
2132
2336
|
var newValue = customizer
|
|
@@ -2136,37 +2340,37 @@ function baseMergeDeep(object, source, key, srcIndex, mergeFunc, customizer, sta
|
|
|
2136
2340
|
var isCommon = newValue === undefined;
|
|
2137
2341
|
|
|
2138
2342
|
if (isCommon) {
|
|
2139
|
-
var isArr =
|
|
2140
|
-
isBuff = !isArr &&
|
|
2141
|
-
isTyped = !isArr && !isBuff &&
|
|
2343
|
+
var isArr = isArray(srcValue),
|
|
2344
|
+
isBuff = !isArr && isBuffer(srcValue),
|
|
2345
|
+
isTyped = !isArr && !isBuff && isTypedArray(srcValue);
|
|
2142
2346
|
|
|
2143
2347
|
newValue = srcValue;
|
|
2144
2348
|
if (isArr || isBuff || isTyped) {
|
|
2145
|
-
if (
|
|
2349
|
+
if (isArray(objValue)) {
|
|
2146
2350
|
newValue = objValue;
|
|
2147
2351
|
}
|
|
2148
|
-
else if (
|
|
2149
|
-
newValue =
|
|
2352
|
+
else if (isArrayLikeObject(objValue)) {
|
|
2353
|
+
newValue = copyArray(objValue);
|
|
2150
2354
|
}
|
|
2151
2355
|
else if (isBuff) {
|
|
2152
2356
|
isCommon = false;
|
|
2153
|
-
newValue =
|
|
2357
|
+
newValue = cloneBuffer(srcValue, true);
|
|
2154
2358
|
}
|
|
2155
2359
|
else if (isTyped) {
|
|
2156
2360
|
isCommon = false;
|
|
2157
|
-
newValue =
|
|
2361
|
+
newValue = cloneTypedArray(srcValue, true);
|
|
2158
2362
|
}
|
|
2159
2363
|
else {
|
|
2160
2364
|
newValue = [];
|
|
2161
2365
|
}
|
|
2162
2366
|
}
|
|
2163
|
-
else if (
|
|
2367
|
+
else if (isPlainObject(srcValue) || isArguments(srcValue)) {
|
|
2164
2368
|
newValue = objValue;
|
|
2165
|
-
if (
|
|
2166
|
-
newValue =
|
|
2369
|
+
if (isArguments(objValue)) {
|
|
2370
|
+
newValue = toPlainObject(objValue);
|
|
2167
2371
|
}
|
|
2168
|
-
else if (!
|
|
2169
|
-
newValue =
|
|
2372
|
+
else if (!isObject$2(objValue) || isFunction(objValue)) {
|
|
2373
|
+
newValue = initCloneObject(srcValue);
|
|
2170
2374
|
}
|
|
2171
2375
|
}
|
|
2172
2376
|
else {
|
|
@@ -2179,10 +2383,18 @@ function baseMergeDeep(object, source, key, srcIndex, mergeFunc, customizer, sta
|
|
|
2179
2383
|
mergeFunc(newValue, srcValue, srcIndex, customizer, stack);
|
|
2180
2384
|
stack['delete'](srcValue);
|
|
2181
2385
|
}
|
|
2182
|
-
|
|
2386
|
+
assignMergeValue$1(object, key, newValue);
|
|
2183
2387
|
}
|
|
2184
2388
|
|
|
2185
|
-
var _baseMergeDeep = baseMergeDeep;
|
|
2389
|
+
var _baseMergeDeep = baseMergeDeep$1;
|
|
2390
|
+
|
|
2391
|
+
var Stack = _Stack,
|
|
2392
|
+
assignMergeValue = _assignMergeValue,
|
|
2393
|
+
baseFor = _baseFor,
|
|
2394
|
+
baseMergeDeep = _baseMergeDeep,
|
|
2395
|
+
isObject$1 = isObject_1,
|
|
2396
|
+
keysIn = keysIn_1,
|
|
2397
|
+
safeGet = _safeGet;
|
|
2186
2398
|
|
|
2187
2399
|
/**
|
|
2188
2400
|
* The base implementation of `_.merge` without support for multiple sources.
|
|
@@ -2195,29 +2407,29 @@ var _baseMergeDeep = baseMergeDeep;
|
|
|
2195
2407
|
* @param {Object} [stack] Tracks traversed source values and their merged
|
|
2196
2408
|
* counterparts.
|
|
2197
2409
|
*/
|
|
2198
|
-
function baseMerge(object, source, srcIndex, customizer, stack) {
|
|
2410
|
+
function baseMerge$1(object, source, srcIndex, customizer, stack) {
|
|
2199
2411
|
if (object === source) {
|
|
2200
2412
|
return;
|
|
2201
2413
|
}
|
|
2202
|
-
|
|
2203
|
-
stack || (stack = new
|
|
2204
|
-
if (
|
|
2205
|
-
|
|
2414
|
+
baseFor(source, function(srcValue, key) {
|
|
2415
|
+
stack || (stack = new Stack);
|
|
2416
|
+
if (isObject$1(srcValue)) {
|
|
2417
|
+
baseMergeDeep(object, source, key, srcIndex, baseMerge$1, customizer, stack);
|
|
2206
2418
|
}
|
|
2207
2419
|
else {
|
|
2208
2420
|
var newValue = customizer
|
|
2209
|
-
? customizer(
|
|
2421
|
+
? customizer(safeGet(object, key), srcValue, (key + ''), object, source, stack)
|
|
2210
2422
|
: undefined;
|
|
2211
2423
|
|
|
2212
2424
|
if (newValue === undefined) {
|
|
2213
2425
|
newValue = srcValue;
|
|
2214
2426
|
}
|
|
2215
|
-
|
|
2427
|
+
assignMergeValue(object, key, newValue);
|
|
2216
2428
|
}
|
|
2217
|
-
},
|
|
2429
|
+
}, keysIn);
|
|
2218
2430
|
}
|
|
2219
2431
|
|
|
2220
|
-
var _baseMerge = baseMerge;
|
|
2432
|
+
var _baseMerge = baseMerge$1;
|
|
2221
2433
|
|
|
2222
2434
|
/**
|
|
2223
2435
|
* This method returns the first argument it receives.
|
|
@@ -2235,11 +2447,12 @@ var _baseMerge = baseMerge;
|
|
|
2235
2447
|
* console.log(_.identity(object) === object);
|
|
2236
2448
|
* // => true
|
|
2237
2449
|
*/
|
|
2238
|
-
|
|
2450
|
+
|
|
2451
|
+
function identity$2(value) {
|
|
2239
2452
|
return value;
|
|
2240
2453
|
}
|
|
2241
2454
|
|
|
2242
|
-
var identity_1 = identity;
|
|
2455
|
+
var identity_1 = identity$2;
|
|
2243
2456
|
|
|
2244
2457
|
/**
|
|
2245
2458
|
* A faster alternative to `Function#apply`, this function invokes `func`
|
|
@@ -2251,7 +2464,8 @@ var identity_1 = identity;
|
|
|
2251
2464
|
* @param {Array} args The arguments to invoke `func` with.
|
|
2252
2465
|
* @returns {*} Returns the result of `func`.
|
|
2253
2466
|
*/
|
|
2254
|
-
|
|
2467
|
+
|
|
2468
|
+
function apply$1(func, thisArg, args) {
|
|
2255
2469
|
switch (args.length) {
|
|
2256
2470
|
case 0: return func.call(thisArg);
|
|
2257
2471
|
case 1: return func.call(thisArg, args[0]);
|
|
@@ -2261,7 +2475,9 @@ function apply(func, thisArg, args) {
|
|
|
2261
2475
|
return func.apply(thisArg, args);
|
|
2262
2476
|
}
|
|
2263
2477
|
|
|
2264
|
-
var _apply = apply;
|
|
2478
|
+
var _apply = apply$1;
|
|
2479
|
+
|
|
2480
|
+
var apply = _apply;
|
|
2265
2481
|
|
|
2266
2482
|
/* Built-in method references for those with the same name as other `lodash` methods. */
|
|
2267
2483
|
var nativeMax = Math.max;
|
|
@@ -2275,7 +2491,7 @@ var nativeMax = Math.max;
|
|
|
2275
2491
|
* @param {Function} transform The rest array transform.
|
|
2276
2492
|
* @returns {Function} Returns the new function.
|
|
2277
2493
|
*/
|
|
2278
|
-
function overRest(func, start, transform) {
|
|
2494
|
+
function overRest$1(func, start, transform) {
|
|
2279
2495
|
start = nativeMax(start === undefined ? (func.length - 1) : start, 0);
|
|
2280
2496
|
return function() {
|
|
2281
2497
|
var args = arguments,
|
|
@@ -2292,11 +2508,11 @@ function overRest(func, start, transform) {
|
|
|
2292
2508
|
otherArgs[index] = args[index];
|
|
2293
2509
|
}
|
|
2294
2510
|
otherArgs[start] = transform(array);
|
|
2295
|
-
return
|
|
2511
|
+
return apply(func, this, otherArgs);
|
|
2296
2512
|
};
|
|
2297
2513
|
}
|
|
2298
2514
|
|
|
2299
|
-
var _overRest = overRest;
|
|
2515
|
+
var _overRest = overRest$1;
|
|
2300
2516
|
|
|
2301
2517
|
/**
|
|
2302
2518
|
* Creates a function that returns `value`.
|
|
@@ -2317,13 +2533,18 @@ var _overRest = overRest;
|
|
|
2317
2533
|
* console.log(objects[0] === objects[1]);
|
|
2318
2534
|
* // => true
|
|
2319
2535
|
*/
|
|
2320
|
-
|
|
2536
|
+
|
|
2537
|
+
function constant$1(value) {
|
|
2321
2538
|
return function() {
|
|
2322
2539
|
return value;
|
|
2323
2540
|
};
|
|
2324
2541
|
}
|
|
2325
2542
|
|
|
2326
|
-
var constant_1 = constant;
|
|
2543
|
+
var constant_1 = constant$1;
|
|
2544
|
+
|
|
2545
|
+
var constant = constant_1,
|
|
2546
|
+
defineProperty = _defineProperty,
|
|
2547
|
+
identity$1 = identity_1;
|
|
2327
2548
|
|
|
2328
2549
|
/**
|
|
2329
2550
|
* The base implementation of `setToString` without support for hot loop shorting.
|
|
@@ -2333,18 +2554,19 @@ var constant_1 = constant;
|
|
|
2333
2554
|
* @param {Function} string The `toString` result.
|
|
2334
2555
|
* @returns {Function} Returns `func`.
|
|
2335
2556
|
*/
|
|
2336
|
-
var baseSetToString = !
|
|
2337
|
-
return
|
|
2557
|
+
var baseSetToString$1 = !defineProperty ? identity$1 : function(func, string) {
|
|
2558
|
+
return defineProperty(func, 'toString', {
|
|
2338
2559
|
'configurable': true,
|
|
2339
2560
|
'enumerable': false,
|
|
2340
|
-
'value':
|
|
2561
|
+
'value': constant(string),
|
|
2341
2562
|
'writable': true
|
|
2342
2563
|
});
|
|
2343
2564
|
};
|
|
2344
2565
|
|
|
2345
|
-
var _baseSetToString = baseSetToString;
|
|
2566
|
+
var _baseSetToString = baseSetToString$1;
|
|
2346
2567
|
|
|
2347
2568
|
/** Used to detect hot functions by number of calls within a span of milliseconds. */
|
|
2569
|
+
|
|
2348
2570
|
var HOT_COUNT = 800,
|
|
2349
2571
|
HOT_SPAN = 16;
|
|
2350
2572
|
|
|
@@ -2360,7 +2582,7 @@ var nativeNow = Date.now;
|
|
|
2360
2582
|
* @param {Function} func The function to restrict.
|
|
2361
2583
|
* @returns {Function} Returns the new shortable function.
|
|
2362
2584
|
*/
|
|
2363
|
-
function shortOut(func) {
|
|
2585
|
+
function shortOut$1(func) {
|
|
2364
2586
|
var count = 0,
|
|
2365
2587
|
lastCalled = 0;
|
|
2366
2588
|
|
|
@@ -2380,7 +2602,10 @@ function shortOut(func) {
|
|
|
2380
2602
|
};
|
|
2381
2603
|
}
|
|
2382
2604
|
|
|
2383
|
-
var _shortOut = shortOut;
|
|
2605
|
+
var _shortOut = shortOut$1;
|
|
2606
|
+
|
|
2607
|
+
var baseSetToString = _baseSetToString,
|
|
2608
|
+
shortOut = _shortOut;
|
|
2384
2609
|
|
|
2385
2610
|
/**
|
|
2386
2611
|
* Sets the `toString` method of `func` to return `string`.
|
|
@@ -2390,9 +2615,13 @@ var _shortOut = shortOut;
|
|
|
2390
2615
|
* @param {Function} string The `toString` result.
|
|
2391
2616
|
* @returns {Function} Returns `func`.
|
|
2392
2617
|
*/
|
|
2393
|
-
var setToString =
|
|
2618
|
+
var setToString$1 = shortOut(baseSetToString);
|
|
2619
|
+
|
|
2620
|
+
var _setToString = setToString$1;
|
|
2394
2621
|
|
|
2395
|
-
var
|
|
2622
|
+
var identity = identity_1,
|
|
2623
|
+
overRest = _overRest,
|
|
2624
|
+
setToString = _setToString;
|
|
2396
2625
|
|
|
2397
2626
|
/**
|
|
2398
2627
|
* The base implementation of `_.rest` which doesn't validate or coerce arguments.
|
|
@@ -2402,11 +2631,16 @@ var _setToString = setToString;
|
|
|
2402
2631
|
* @param {number} [start=func.length-1] The start position of the rest parameter.
|
|
2403
2632
|
* @returns {Function} Returns the new function.
|
|
2404
2633
|
*/
|
|
2405
|
-
function baseRest(func, start) {
|
|
2406
|
-
return
|
|
2634
|
+
function baseRest$1(func, start) {
|
|
2635
|
+
return setToString(overRest(func, start, identity), func + '');
|
|
2407
2636
|
}
|
|
2408
2637
|
|
|
2409
|
-
var _baseRest = baseRest;
|
|
2638
|
+
var _baseRest = baseRest$1;
|
|
2639
|
+
|
|
2640
|
+
var eq = eq_1,
|
|
2641
|
+
isArrayLike = isArrayLike_1,
|
|
2642
|
+
isIndex = _isIndex,
|
|
2643
|
+
isObject = isObject_1;
|
|
2410
2644
|
|
|
2411
2645
|
/**
|
|
2412
2646
|
* Checks if the given arguments are from an iteratee call.
|
|
@@ -2418,21 +2652,24 @@ var _baseRest = baseRest;
|
|
|
2418
2652
|
* @returns {boolean} Returns `true` if the arguments are from an iteratee call,
|
|
2419
2653
|
* else `false`.
|
|
2420
2654
|
*/
|
|
2421
|
-
function isIterateeCall(value, index, object) {
|
|
2422
|
-
if (!
|
|
2655
|
+
function isIterateeCall$1(value, index, object) {
|
|
2656
|
+
if (!isObject(object)) {
|
|
2423
2657
|
return false;
|
|
2424
2658
|
}
|
|
2425
2659
|
var type = typeof index;
|
|
2426
2660
|
if (type == 'number'
|
|
2427
|
-
? (
|
|
2661
|
+
? (isArrayLike(object) && isIndex(index, object.length))
|
|
2428
2662
|
: (type == 'string' && index in object)
|
|
2429
2663
|
) {
|
|
2430
|
-
return
|
|
2664
|
+
return eq(object[index], value);
|
|
2431
2665
|
}
|
|
2432
2666
|
return false;
|
|
2433
2667
|
}
|
|
2434
2668
|
|
|
2435
|
-
var _isIterateeCall = isIterateeCall;
|
|
2669
|
+
var _isIterateeCall = isIterateeCall$1;
|
|
2670
|
+
|
|
2671
|
+
var baseRest = _baseRest,
|
|
2672
|
+
isIterateeCall = _isIterateeCall;
|
|
2436
2673
|
|
|
2437
2674
|
/**
|
|
2438
2675
|
* Creates a function like `_.assign`.
|
|
@@ -2441,8 +2678,8 @@ var _isIterateeCall = isIterateeCall;
|
|
|
2441
2678
|
* @param {Function} assigner The function to assign values.
|
|
2442
2679
|
* @returns {Function} Returns the new assigner function.
|
|
2443
2680
|
*/
|
|
2444
|
-
function createAssigner(assigner) {
|
|
2445
|
-
return
|
|
2681
|
+
function createAssigner$1(assigner) {
|
|
2682
|
+
return baseRest(function(object, sources) {
|
|
2446
2683
|
var index = -1,
|
|
2447
2684
|
length = sources.length,
|
|
2448
2685
|
customizer = length > 1 ? sources[length - 1] : undefined,
|
|
@@ -2452,7 +2689,7 @@ function createAssigner(assigner) {
|
|
|
2452
2689
|
? (length--, customizer)
|
|
2453
2690
|
: undefined;
|
|
2454
2691
|
|
|
2455
|
-
if (guard &&
|
|
2692
|
+
if (guard && isIterateeCall(sources[0], sources[1], guard)) {
|
|
2456
2693
|
customizer = length < 3 ? undefined : customizer;
|
|
2457
2694
|
length = 1;
|
|
2458
2695
|
}
|
|
@@ -2467,7 +2704,10 @@ function createAssigner(assigner) {
|
|
|
2467
2704
|
});
|
|
2468
2705
|
}
|
|
2469
2706
|
|
|
2470
|
-
var _createAssigner = createAssigner;
|
|
2707
|
+
var _createAssigner = createAssigner$1;
|
|
2708
|
+
|
|
2709
|
+
var baseMerge = _baseMerge,
|
|
2710
|
+
createAssigner = _createAssigner;
|
|
2471
2711
|
|
|
2472
2712
|
/**
|
|
2473
2713
|
* This method is like `_.assign` except that it recursively merges own and
|
|
@@ -2500,8 +2740,8 @@ var _createAssigner = createAssigner;
|
|
|
2500
2740
|
* _.merge(object, other);
|
|
2501
2741
|
* // => { 'a': [{ 'b': 2, 'c': 3 }, { 'd': 4, 'e': 5 }] }
|
|
2502
2742
|
*/
|
|
2503
|
-
var merge =
|
|
2504
|
-
|
|
2743
|
+
var merge = createAssigner(function(object, source, srcIndex) {
|
|
2744
|
+
baseMerge(object, source, srcIndex);
|
|
2505
2745
|
});
|
|
2506
2746
|
|
|
2507
2747
|
var merge_1 = merge;
|
|
@@ -2617,4 +2857,4 @@ const zonosStoreFontFamily = () => {
|
|
|
2617
2857
|
return fontFamily;
|
|
2618
2858
|
};
|
|
2619
2859
|
|
|
2620
|
-
export { _root as _,
|
|
2860
|
+
export { _root as _, commonjsGlobal as a, zonosStoreFontFamily as b, createStore as c, zonosStoreInitSetting as d, _baseGetTag as e, isObject_1 as f, isObjectLike_1 as i, mergeConfig as m, zonosStore as z };
|