@revolist/revogrid 4.9.22 → 4.9.23
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/{app-globals-a6bcda2f.js → app-globals-c0b20747.js} +2 -2
- package/dist/cjs/{app-globals-a6bcda2f.js.map → app-globals-c0b20747.js.map} +1 -1
- package/dist/cjs/{column.drag.plugin-3644bda6.js → column.drag.plugin-eb1db875.js} +50 -55
- package/dist/cjs/column.drag.plugin-eb1db875.js.map +1 -0
- package/dist/cjs/{column.service-caec759a.js → column.service-6089b047.js} +10 -20
- package/dist/cjs/column.service-6089b047.js.map +1 -0
- package/dist/{esm/debounce-e8e9464a.js → cjs/debounce-ec7a04b4.js} +36 -78
- package/dist/cjs/debounce-ec7a04b4.js.map +1 -0
- package/dist/cjs/{edit.utils-18840bb3.js → edit.utils-093fe9cd.js} +2 -2
- package/dist/cjs/{edit.utils-18840bb3.js.map → edit.utils-093fe9cd.js.map} +1 -1
- package/dist/cjs/{filter.button-1e1e16be.js → filter.button-afb16244.js} +2 -2
- package/dist/cjs/{filter.button-1e1e16be.js.map → filter.button-afb16244.js.map} +1 -1
- package/dist/cjs/{header-cell-renderer-4fd62cec.js → header-cell-renderer-2d56e8f5.js} +3 -3
- package/dist/cjs/{header-cell-renderer-4fd62cec.js.map → header-cell-renderer-2d56e8f5.js.map} +1 -1
- package/dist/cjs/{index-34dfb0db.js → index-10d10c55.js} +14 -20
- package/dist/cjs/index-10d10c55.js.map +1 -0
- package/dist/cjs/{index-71b783e2.js → index-a9ee8eef.js} +290 -854
- package/dist/cjs/index-a9ee8eef.js.map +1 -0
- package/dist/cjs/index.cjs.js +11 -11
- package/dist/cjs/{key.utils-48b178d1.js → key.utils-1438f2ac.js} +2 -2
- package/dist/cjs/{key.utils-48b178d1.js.map → key.utils-1438f2ac.js.map} +1 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/revo-grid.cjs.entry.js +43 -74
- package/dist/cjs/revo-grid.cjs.entry.js.map +1 -1
- package/dist/cjs/revo-grid.cjs.js +3 -3
- package/dist/cjs/revo-grid.cjs.js.map +1 -1
- package/dist/cjs/revogr-attribution_6.cjs.entry.js +10 -10
- package/dist/cjs/revogr-attribution_6.cjs.entry.js.map +1 -1
- package/dist/cjs/revogr-clipboard_3.cjs.entry.js +7 -7
- package/dist/cjs/revogr-clipboard_3.cjs.entry.js.map +1 -1
- package/dist/cjs/revogr-data_4.cjs.entry.js +24 -47
- package/dist/cjs/revogr-data_4.cjs.entry.js.map +1 -1
- package/dist/cjs/revogr-filter-panel.cjs.entry.js +4 -4
- package/dist/cjs/revogr-filter-panel.cjs.entry.js.map +1 -1
- package/dist/cjs/{row-header-utils-baf917a2.js → row-header-utils-eb5949b3.js} +7 -9
- package/dist/cjs/row-header-utils-eb5949b3.js.map +1 -0
- package/dist/cjs/{sorting.sign-54938069.js → sorting.sign-8bf92449.js} +2 -2
- package/dist/cjs/{sorting.sign-54938069.js.map → sorting.sign-8bf92449.js.map} +1 -1
- package/dist/cjs/{text-editor-bdc757b1.js → text-editor-ea3badef.js} +3 -3
- package/dist/cjs/{text-editor-bdc757b1.js.map → text-editor-ea3badef.js.map} +1 -1
- package/dist/cjs/{throttle-b5d436ca.js → throttle-6fecba1e.js} +6 -11
- package/dist/cjs/throttle-6fecba1e.js.map +1 -0
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/revoGrid/revo-grid.js +9 -13
- package/dist/collection/components/revoGrid/revo-grid.js.map +1 -1
- package/dist/collection/services/dimension.provider.js +4 -3
- package/dist/collection/services/dimension.provider.js.map +1 -1
- package/dist/collection/store/dimension/dimension.store.js +19 -6
- package/dist/collection/store/dimension/dimension.store.js.map +1 -1
- package/dist/collection/store/vp/viewport.store.js +5 -7
- package/dist/collection/store/vp/viewport.store.js.map +1 -1
- package/dist/esm/{app-globals-43714036.js → app-globals-3a760941.js} +2 -2
- package/dist/esm/{app-globals-43714036.js.map → app-globals-3a760941.js.map} +1 -1
- package/dist/esm/{column.drag.plugin-49737eae.js → column.drag.plugin-cb25a5e1.js} +47 -52
- package/dist/esm/column.drag.plugin-cb25a5e1.js.map +1 -0
- package/dist/esm/{column.service-dc98409c.js → column.service-407956dd.js} +7 -17
- package/dist/esm/column.service-407956dd.js.map +1 -0
- package/dist/{cjs/debounce-cb5f4e35.js → esm/debounce-7b511afc.js} +26 -88
- package/dist/esm/debounce-7b511afc.js.map +1 -0
- package/dist/esm/{edit.utils-177d6b9e.js → edit.utils-1eeabeab.js} +2 -2
- package/dist/esm/{edit.utils-177d6b9e.js.map → edit.utils-1eeabeab.js.map} +1 -1
- package/dist/esm/{filter.button-91088160.js → filter.button-37373672.js} +2 -2
- package/dist/esm/{filter.button-91088160.js.map → filter.button-37373672.js.map} +1 -1
- package/dist/esm/{header-cell-renderer-07c6f845.js → header-cell-renderer-da468bd2.js} +3 -3
- package/dist/esm/{header-cell-renderer-07c6f845.js.map → header-cell-renderer-da468bd2.js.map} +1 -1
- package/dist/esm/{index-70354f39.js → index-a61f225b.js} +14 -20
- package/dist/esm/index-a61f225b.js.map +1 -0
- package/dist/esm/{index-29a9a87a.js → index-b6586f9b.js} +270 -834
- package/dist/esm/index-b6586f9b.js.map +1 -0
- package/dist/esm/index.js +11 -11
- package/dist/esm/{key.utils-0bbb3bc6.js → key.utils-562c749e.js} +2 -2
- package/dist/esm/{key.utils-0bbb3bc6.js.map → key.utils-562c749e.js.map} +1 -1
- package/dist/esm/loader.js +3 -3
- package/dist/esm/revo-grid.entry.js +39 -70
- package/dist/esm/revo-grid.entry.js.map +1 -1
- package/dist/esm/revo-grid.js +4 -4
- package/dist/esm/revo-grid.js.map +1 -1
- package/dist/esm/revogr-attribution_6.entry.js +10 -10
- package/dist/esm/revogr-attribution_6.entry.js.map +1 -1
- package/dist/esm/revogr-clipboard_3.entry.js +7 -7
- package/dist/esm/revogr-clipboard_3.entry.js.map +1 -1
- package/dist/esm/revogr-data_4.entry.js +20 -43
- package/dist/esm/revogr-data_4.entry.js.map +1 -1
- package/dist/esm/revogr-filter-panel.entry.js +4 -4
- package/dist/esm/revogr-filter-panel.entry.js.map +1 -1
- package/dist/esm/{row-header-utils-32049c13.js → row-header-utils-e043f744.js} +7 -9
- package/dist/esm/row-header-utils-e043f744.js.map +1 -0
- package/dist/esm/{sorting.sign-569a1f3c.js → sorting.sign-1afddea1.js} +2 -2
- package/dist/esm/{sorting.sign-569a1f3c.js.map → sorting.sign-1afddea1.js.map} +1 -1
- package/dist/esm/{text-editor-b1bb2bd3.js → text-editor-654f5d53.js} +3 -3
- package/dist/esm/{text-editor-b1bb2bd3.js.map → text-editor-654f5d53.js.map} +1 -1
- package/dist/esm/{throttle-c6f34cc0.js → throttle-bb3169c7.js} +4 -9
- package/dist/esm/throttle-bb3169c7.js.map +1 -0
- package/dist/revo-grid/app-globals-3a760941.js +5 -0
- package/dist/revo-grid/column.drag.plugin-cb25a5e1.js +5 -0
- package/dist/revo-grid/column.drag.plugin-cb25a5e1.js.map +1 -0
- package/dist/revo-grid/column.service-407956dd.js +5 -0
- package/dist/revo-grid/column.service-407956dd.js.map +1 -0
- package/dist/revo-grid/debounce-7b511afc.js +5 -0
- package/dist/revo-grid/debounce-7b511afc.js.map +1 -0
- package/dist/revo-grid/{edit.utils-177d6b9e.js → edit.utils-1eeabeab.js} +2 -2
- package/dist/revo-grid/{filter.button-91088160.js → filter.button-37373672.js} +2 -2
- package/dist/revo-grid/{header-cell-renderer-07c6f845.js → header-cell-renderer-da468bd2.js} +2 -2
- package/dist/revo-grid/index-a61f225b.js +6 -0
- package/dist/revo-grid/index-a61f225b.js.map +1 -0
- package/dist/revo-grid/index-b6586f9b.js +5 -0
- package/dist/revo-grid/index-b6586f9b.js.map +1 -0
- package/dist/revo-grid/index.esm.js +1 -1
- package/dist/revo-grid/{key.utils-0bbb3bc6.js → key.utils-562c749e.js} +2 -2
- package/dist/revo-grid/revo-grid.entry.js +1 -1
- package/dist/revo-grid/revo-grid.entry.js.map +1 -1
- package/dist/revo-grid/revo-grid.esm.js +1 -1
- package/dist/revo-grid/revo-grid.esm.js.map +1 -1
- package/dist/revo-grid/revogr-attribution_6.entry.js +1 -1
- package/dist/revo-grid/revogr-clipboard_3.entry.js +1 -1
- package/dist/revo-grid/revogr-data_4.entry.js +1 -1
- package/dist/revo-grid/revogr-data_4.entry.js.map +1 -1
- package/dist/revo-grid/revogr-filter-panel.entry.js +1 -1
- package/dist/revo-grid/row-header-utils-e043f744.js +5 -0
- package/dist/revo-grid/row-header-utils-e043f744.js.map +1 -0
- package/dist/revo-grid/{sorting.sign-569a1f3c.js → sorting.sign-1afddea1.js} +2 -2
- package/dist/revo-grid/{text-editor-b1bb2bd3.js → text-editor-654f5d53.js} +2 -2
- package/dist/revo-grid/throttle-bb3169c7.js +5 -0
- package/dist/revo-grid/throttle-bb3169c7.js.map +1 -0
- package/dist/types/store/dimension/dimension.store.d.ts +2 -1
- package/dist/types/store/vp/viewport.store.d.ts +0 -1
- package/hydrate/index.d.ts +4 -4
- package/hydrate/index.js +426 -1128
- package/hydrate/index.mjs +426 -1128
- package/package.json +3 -3
- package/standalone/column.service.js +5 -16
- package/standalone/column.service.js.map +1 -1
- package/standalone/debounce.js +7 -16
- package/standalone/debounce.js.map +1 -1
- package/standalone/dimension.helpers.js +15 -45
- package/standalone/dimension.helpers.js.map +1 -1
- package/standalone/index.js +0 -2
- package/standalone/index.js.map +1 -1
- package/standalone/index2.js +0 -2
- package/standalone/index2.js.map +1 -1
- package/standalone/reduce.js +1319 -474
- package/standalone/reduce.js.map +1 -1
- package/standalone/revo-grid.js +74 -111
- package/standalone/revo-grid.js.map +1 -1
- package/standalone/revogr-data2.js +0 -2
- package/standalone/revogr-data2.js.map +1 -1
- package/standalone/revogr-filter-panel.js +2 -2
- package/standalone/revogr-filter-panel.js.map +1 -1
- package/standalone/revogr-focus2.js +0 -2
- package/standalone/revogr-focus2.js.map +1 -1
- package/standalone/revogr-header2.js +12 -37
- package/standalone/revogr-header2.js.map +1 -1
- package/standalone/revogr-order-editor2.js +2 -4
- package/standalone/revogr-order-editor2.js.map +1 -1
- package/standalone/revogr-overlay-selection2.js +2 -4
- package/standalone/revogr-overlay-selection2.js.map +1 -1
- package/standalone/revogr-row-headers2.js +5 -9
- package/standalone/revogr-row-headers2.js.map +1 -1
- package/standalone/revogr-temp-range2.js +2 -2
- package/standalone/revogr-temp-range2.js.map +1 -1
- package/standalone/revogr-viewport-scroll2.js +2 -2
- package/standalone/revogr-viewport-scroll2.js.map +1 -1
- package/standalone/selection.utils.js +0 -2
- package/standalone/selection.utils.js.map +1 -1
- package/standalone/throttle.js +3 -8
- package/standalone/throttle.js.map +1 -1
- package/standalone/toNumber.js +165 -22
- package/standalone/toNumber.js.map +1 -1
- package/dist/cjs/column.drag.plugin-3644bda6.js.map +0 -1
- package/dist/cjs/column.service-caec759a.js.map +0 -1
- package/dist/cjs/debounce-cb5f4e35.js.map +0 -1
- package/dist/cjs/index-34dfb0db.js.map +0 -1
- package/dist/cjs/index-71b783e2.js.map +0 -1
- package/dist/cjs/row-header-utils-baf917a2.js.map +0 -1
- package/dist/cjs/throttle-b5d436ca.js.map +0 -1
- package/dist/esm/column.drag.plugin-49737eae.js.map +0 -1
- package/dist/esm/column.service-dc98409c.js.map +0 -1
- package/dist/esm/debounce-e8e9464a.js.map +0 -1
- package/dist/esm/index-29a9a87a.js.map +0 -1
- package/dist/esm/index-70354f39.js.map +0 -1
- package/dist/esm/row-header-utils-32049c13.js.map +0 -1
- package/dist/esm/throttle-c6f34cc0.js.map +0 -1
- package/dist/revo-grid/app-globals-43714036.js +0 -5
- package/dist/revo-grid/column.drag.plugin-49737eae.js +0 -5
- package/dist/revo-grid/column.drag.plugin-49737eae.js.map +0 -1
- package/dist/revo-grid/column.service-dc98409c.js +0 -5
- package/dist/revo-grid/column.service-dc98409c.js.map +0 -1
- package/dist/revo-grid/debounce-e8e9464a.js +0 -5
- package/dist/revo-grid/debounce-e8e9464a.js.map +0 -1
- package/dist/revo-grid/index-29a9a87a.js +0 -5
- package/dist/revo-grid/index-29a9a87a.js.map +0 -1
- package/dist/revo-grid/index-70354f39.js +0 -6
- package/dist/revo-grid/index-70354f39.js.map +0 -1
- package/dist/revo-grid/row-header-utils-32049c13.js +0 -5
- package/dist/revo-grid/row-header-utils-32049c13.js.map +0 -1
- package/dist/revo-grid/throttle-c6f34cc0.js +0 -5
- package/dist/revo-grid/throttle-c6f34cc0.js.map +0 -1
- package/standalone/_stringToPath.js +0 -1389
- package/standalone/_stringToPath.js.map +0 -1
- package/standalone/isObjectLike.js +0 -195
- package/standalone/isObjectLike.js.map +0 -1
- /package/dist/revo-grid/{app-globals-43714036.js.map → app-globals-3a760941.js.map} +0 -0
- /package/dist/revo-grid/{edit.utils-177d6b9e.js.map → edit.utils-1eeabeab.js.map} +0 -0
- /package/dist/revo-grid/{filter.button-91088160.js.map → filter.button-37373672.js.map} +0 -0
- /package/dist/revo-grid/{header-cell-renderer-07c6f845.js.map → header-cell-renderer-da468bd2.js.map} +0 -0
- /package/dist/revo-grid/{key.utils-0bbb3bc6.js.map → key.utils-562c749e.js.map} +0 -0
- /package/dist/revo-grid/{sorting.sign-569a1f3c.js.map → sorting.sign-1afddea1.js.map} +0 -0
- /package/dist/revo-grid/{text-editor-b1bb2bd3.js.map → text-editor-654f5d53.js.map} +0 -0
package/hydrate/index.js
CHANGED
|
@@ -130,7 +130,7 @@ const NAMESPACE = 'revo-grid';
|
|
|
130
130
|
const BUILD = /* revo-grid */ { allRenderFn: false, appendChildSlotFix: false, asyncLoading: true, attachStyles: true, cloneNodeFix: false, cmpDidLoad: true, cmpDidRender: true, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: true, cmpWillRender: true, cmpWillUpdate: false, connectedCallback: true, constructableCSS: false, cssAnnotations: true, devTools: false, disconnectedCallback: true, element: false, event: true, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: true, hostListenerTarget: true, hostListenerTargetBody: false, hostListenerTargetDocument: true, hostListenerTargetParent: false, hostListenerTargetWindow: false, hotModuleReplacement: false, hydrateClientSide: true, hydrateServerSide: true, hydratedAttribute: false, hydratedClass: true, hydratedSelectorName: "hydrated", invisiblePrehydration: false, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: true, mode: false, observeAttribute: true, profile: false, prop: true, propBoolean: true, propMutable: true, propNumber: true, propString: true, reflect: true, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: false, shadowDomShim: true, slot: true, slotChildNodesFix: false, slotRelocation: true, state: true, style: true, svg: true, taskQueue: true, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: true, vdomKey: true, vdomListener: true, vdomPropOrAttr: true, vdomRef: true, vdomRender: true, vdomStyle: true, vdomText: true, vdomXlink: true, watchCallback: true };
|
|
131
131
|
|
|
132
132
|
/*
|
|
133
|
-
Stencil Hydrate Platform v4.
|
|
133
|
+
Stencil Hydrate Platform v4.20.0 | MIT Licensed | https://stenciljs.com
|
|
134
134
|
*/
|
|
135
135
|
var __defProp = Object.defineProperty;
|
|
136
136
|
var __export = (target, all) => {
|
|
@@ -584,19 +584,17 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
584
584
|
if (cmpMeta.$flags$ & 2 /* scopedCssEncapsulation */) {
|
|
585
585
|
styleElm.setAttribute(HYDRATED_STYLE_ID, scopeId2);
|
|
586
586
|
}
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */ && styleContainerNode.nodeName !== "HEAD") {
|
|
599
|
-
styleContainerNode.insertBefore(styleElm, null);
|
|
587
|
+
const injectStyle = (
|
|
588
|
+
/**
|
|
589
|
+
* we render a scoped component
|
|
590
|
+
*/
|
|
591
|
+
!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) || /**
|
|
592
|
+
* we are using shadow dom and render the style tag within the shadowRoot
|
|
593
|
+
*/
|
|
594
|
+
cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */ && styleContainerNode.nodeName !== "HEAD"
|
|
595
|
+
);
|
|
596
|
+
if (injectStyle) {
|
|
597
|
+
styleContainerNode.insertBefore(styleElm, styleContainerNode.querySelector("link"));
|
|
600
598
|
}
|
|
601
599
|
}
|
|
602
600
|
if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
|
|
@@ -678,11 +676,7 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
|
678
676
|
if (memberName === "list") {
|
|
679
677
|
isProp = false;
|
|
680
678
|
} else if (oldValue == null || elm[memberName] != n) {
|
|
681
|
-
|
|
682
|
-
elm[memberName] = n;
|
|
683
|
-
} else {
|
|
684
|
-
elm.setAttribute(memberName, n);
|
|
685
|
-
}
|
|
679
|
+
elm[memberName] = n;
|
|
686
680
|
}
|
|
687
681
|
} else {
|
|
688
682
|
elm[memberName] = newValue;
|
|
@@ -1446,7 +1440,7 @@ var serverSideConnected = (elm) => {
|
|
|
1446
1440
|
};
|
|
1447
1441
|
|
|
1448
1442
|
// src/runtime/set-value.ts
|
|
1449
|
-
var getValue$
|
|
1443
|
+
var getValue$1 = (ref, propName) => getHostRef(ref).$instanceValues$.get(propName);
|
|
1450
1444
|
var setValue = (ref, propName, newVal, cmpMeta) => {
|
|
1451
1445
|
const hostRef = getHostRef(ref);
|
|
1452
1446
|
if (!hostRef) {
|
|
@@ -1496,7 +1490,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1496
1490
|
if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
|
|
1497
1491
|
Object.defineProperty(prototype, memberName, {
|
|
1498
1492
|
get() {
|
|
1499
|
-
return getValue$
|
|
1493
|
+
return getValue$1(this, memberName);
|
|
1500
1494
|
},
|
|
1501
1495
|
set(newValue) {
|
|
1502
1496
|
setValue(this, memberName, newValue, cmpMeta);
|
|
@@ -1911,7 +1905,7 @@ function proxyHostElement(elm, cmpMeta) {
|
|
|
1911
1905
|
}
|
|
1912
1906
|
Object.defineProperty(elm, memberName, {
|
|
1913
1907
|
get() {
|
|
1914
|
-
return getValue$
|
|
1908
|
+
return getValue$1(this, memberName);
|
|
1915
1909
|
},
|
|
1916
1910
|
set(newValue) {
|
|
1917
1911
|
setValue(this, memberName, newValue, cmpMeta);
|
|
@@ -2445,8 +2439,6 @@ class Clipboard {
|
|
|
2445
2439
|
}; }
|
|
2446
2440
|
}
|
|
2447
2441
|
|
|
2448
|
-
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
2449
|
-
|
|
2450
2442
|
/**
|
|
2451
2443
|
* Checks if `value` is the
|
|
2452
2444
|
* [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
|
|
@@ -2472,31 +2464,23 @@ var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof win
|
|
|
2472
2464
|
* _.isObject(null);
|
|
2473
2465
|
* // => false
|
|
2474
2466
|
*/
|
|
2475
|
-
|
|
2476
|
-
function isObject$7(value) {
|
|
2467
|
+
function isObject(value) {
|
|
2477
2468
|
var type = typeof value;
|
|
2478
2469
|
return value != null && (type == 'object' || type == 'function');
|
|
2479
2470
|
}
|
|
2480
2471
|
|
|
2481
|
-
var isObject_1 = isObject$7;
|
|
2482
|
-
|
|
2483
2472
|
/** Detect free variable `global` from Node.js. */
|
|
2473
|
+
var freeGlobal = typeof global == 'object' && global && global.Object === Object && global;
|
|
2484
2474
|
|
|
2485
|
-
var freeGlobal$1 =
|
|
2486
|
-
|
|
2487
|
-
var _freeGlobal = freeGlobal$1;
|
|
2488
|
-
|
|
2489
|
-
var freeGlobal = _freeGlobal;
|
|
2475
|
+
var freeGlobal$1 = freeGlobal;
|
|
2490
2476
|
|
|
2491
2477
|
/** Detect free variable `self`. */
|
|
2492
2478
|
var freeSelf = typeof self == 'object' && self && self.Object === Object && self;
|
|
2493
2479
|
|
|
2494
2480
|
/** Used as a reference to the global object. */
|
|
2495
|
-
var root
|
|
2481
|
+
var root = freeGlobal$1 || freeSelf || Function('return this')();
|
|
2496
2482
|
|
|
2497
|
-
var
|
|
2498
|
-
|
|
2499
|
-
var root$8 = _root;
|
|
2483
|
+
var root$1 = root;
|
|
2500
2484
|
|
|
2501
2485
|
/**
|
|
2502
2486
|
* Gets the timestamp of the number of milliseconds that have elapsed since
|
|
@@ -2514,14 +2498,13 @@ var root$8 = _root;
|
|
|
2514
2498
|
* }, _.now());
|
|
2515
2499
|
* // => Logs the number of milliseconds it took for the deferred invocation.
|
|
2516
2500
|
*/
|
|
2517
|
-
var now
|
|
2518
|
-
return root$
|
|
2501
|
+
var now = function() {
|
|
2502
|
+
return root$1.Date.now();
|
|
2519
2503
|
};
|
|
2520
2504
|
|
|
2521
|
-
var
|
|
2505
|
+
var now$1 = now;
|
|
2522
2506
|
|
|
2523
2507
|
/** Used to match a single whitespace character. */
|
|
2524
|
-
|
|
2525
2508
|
var reWhitespace = /\s/;
|
|
2526
2509
|
|
|
2527
2510
|
/**
|
|
@@ -2532,17 +2515,13 @@ var reWhitespace = /\s/;
|
|
|
2532
2515
|
* @param {string} string The string to inspect.
|
|
2533
2516
|
* @returns {number} Returns the index of the last non-whitespace character.
|
|
2534
2517
|
*/
|
|
2535
|
-
function trimmedEndIndex
|
|
2518
|
+
function trimmedEndIndex(string) {
|
|
2536
2519
|
var index = string.length;
|
|
2537
2520
|
|
|
2538
2521
|
while (index-- && reWhitespace.test(string.charAt(index))) {}
|
|
2539
2522
|
return index;
|
|
2540
2523
|
}
|
|
2541
2524
|
|
|
2542
|
-
var _trimmedEndIndex = trimmedEndIndex$1;
|
|
2543
|
-
|
|
2544
|
-
var trimmedEndIndex = _trimmedEndIndex;
|
|
2545
|
-
|
|
2546
2525
|
/** Used to match leading whitespace. */
|
|
2547
2526
|
var reTrimStart = /^\s+/;
|
|
2548
2527
|
|
|
@@ -2553,22 +2532,16 @@ var reTrimStart = /^\s+/;
|
|
|
2553
2532
|
* @param {string} string The string to trim.
|
|
2554
2533
|
* @returns {string} Returns the trimmed string.
|
|
2555
2534
|
*/
|
|
2556
|
-
function baseTrim
|
|
2535
|
+
function baseTrim(string) {
|
|
2557
2536
|
return string
|
|
2558
2537
|
? string.slice(0, trimmedEndIndex(string) + 1).replace(reTrimStart, '')
|
|
2559
2538
|
: string;
|
|
2560
2539
|
}
|
|
2561
2540
|
|
|
2562
|
-
var _baseTrim = baseTrim$1;
|
|
2563
|
-
|
|
2564
|
-
var root$7 = _root;
|
|
2565
|
-
|
|
2566
2541
|
/** Built-in value references. */
|
|
2567
|
-
var Symbol
|
|
2568
|
-
|
|
2569
|
-
var _Symbol = Symbol$4;
|
|
2542
|
+
var Symbol = root$1.Symbol;
|
|
2570
2543
|
|
|
2571
|
-
var Symbol$
|
|
2544
|
+
var Symbol$1 = Symbol;
|
|
2572
2545
|
|
|
2573
2546
|
/** Used for built-in method references. */
|
|
2574
2547
|
var objectProto$b = Object.prototype;
|
|
@@ -2584,7 +2557,7 @@ var hasOwnProperty$8 = objectProto$b.hasOwnProperty;
|
|
|
2584
2557
|
var nativeObjectToString$1 = objectProto$b.toString;
|
|
2585
2558
|
|
|
2586
2559
|
/** Built-in value references. */
|
|
2587
|
-
var symToStringTag$1 = Symbol$
|
|
2560
|
+
var symToStringTag$1 = Symbol$1 ? Symbol$1.toStringTag : undefined;
|
|
2588
2561
|
|
|
2589
2562
|
/**
|
|
2590
2563
|
* A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.
|
|
@@ -2593,7 +2566,7 @@ var symToStringTag$1 = Symbol$3 ? Symbol$3.toStringTag : undefined;
|
|
|
2593
2566
|
* @param {*} value The value to query.
|
|
2594
2567
|
* @returns {string} Returns the raw `toStringTag`.
|
|
2595
2568
|
*/
|
|
2596
|
-
function getRawTag
|
|
2569
|
+
function getRawTag(value) {
|
|
2597
2570
|
var isOwn = hasOwnProperty$8.call(value, symToStringTag$1),
|
|
2598
2571
|
tag = value[symToStringTag$1];
|
|
2599
2572
|
|
|
@@ -2613,10 +2586,7 @@ function getRawTag$1(value) {
|
|
|
2613
2586
|
return result;
|
|
2614
2587
|
}
|
|
2615
2588
|
|
|
2616
|
-
var _getRawTag = getRawTag$1;
|
|
2617
|
-
|
|
2618
2589
|
/** Used for built-in method references. */
|
|
2619
|
-
|
|
2620
2590
|
var objectProto$a = Object.prototype;
|
|
2621
2591
|
|
|
2622
2592
|
/**
|
|
@@ -2633,22 +2603,16 @@ var nativeObjectToString = objectProto$a.toString;
|
|
|
2633
2603
|
* @param {*} value The value to convert.
|
|
2634
2604
|
* @returns {string} Returns the converted string.
|
|
2635
2605
|
*/
|
|
2636
|
-
function objectToString
|
|
2606
|
+
function objectToString(value) {
|
|
2637
2607
|
return nativeObjectToString.call(value);
|
|
2638
2608
|
}
|
|
2639
2609
|
|
|
2640
|
-
var _objectToString = objectToString$1;
|
|
2641
|
-
|
|
2642
|
-
var Symbol$2 = _Symbol,
|
|
2643
|
-
getRawTag = _getRawTag,
|
|
2644
|
-
objectToString = _objectToString;
|
|
2645
|
-
|
|
2646
2610
|
/** `Object#toString` result references. */
|
|
2647
2611
|
var nullTag = '[object Null]',
|
|
2648
2612
|
undefinedTag = '[object Undefined]';
|
|
2649
2613
|
|
|
2650
2614
|
/** Built-in value references. */
|
|
2651
|
-
var symToStringTag = Symbol$
|
|
2615
|
+
var symToStringTag = Symbol$1 ? Symbol$1.toStringTag : undefined;
|
|
2652
2616
|
|
|
2653
2617
|
/**
|
|
2654
2618
|
* The base implementation of `getTag` without fallbacks for buggy environments.
|
|
@@ -2657,7 +2621,7 @@ var symToStringTag = Symbol$2 ? Symbol$2.toStringTag : undefined;
|
|
|
2657
2621
|
* @param {*} value The value to query.
|
|
2658
2622
|
* @returns {string} Returns the `toStringTag`.
|
|
2659
2623
|
*/
|
|
2660
|
-
function baseGetTag
|
|
2624
|
+
function baseGetTag(value) {
|
|
2661
2625
|
if (value == null) {
|
|
2662
2626
|
return value === undefined ? undefinedTag : nullTag;
|
|
2663
2627
|
}
|
|
@@ -2666,8 +2630,6 @@ function baseGetTag$6(value) {
|
|
|
2666
2630
|
: objectToString(value);
|
|
2667
2631
|
}
|
|
2668
2632
|
|
|
2669
|
-
var _baseGetTag = baseGetTag$6;
|
|
2670
|
-
|
|
2671
2633
|
/**
|
|
2672
2634
|
* Checks if `value` is object-like. A value is object-like if it's not `null`
|
|
2673
2635
|
* and has a `typeof` result of "object".
|
|
@@ -2692,16 +2654,10 @@ var _baseGetTag = baseGetTag$6;
|
|
|
2692
2654
|
* _.isObjectLike(null);
|
|
2693
2655
|
* // => false
|
|
2694
2656
|
*/
|
|
2695
|
-
|
|
2696
|
-
function isObjectLike$6(value) {
|
|
2657
|
+
function isObjectLike(value) {
|
|
2697
2658
|
return value != null && typeof value == 'object';
|
|
2698
2659
|
}
|
|
2699
2660
|
|
|
2700
|
-
var isObjectLike_1 = isObjectLike$6;
|
|
2701
|
-
|
|
2702
|
-
var baseGetTag$5 = _baseGetTag,
|
|
2703
|
-
isObjectLike$5 = isObjectLike_1;
|
|
2704
|
-
|
|
2705
2661
|
/** `Object#toString` result references. */
|
|
2706
2662
|
var symbolTag$1 = '[object Symbol]';
|
|
2707
2663
|
|
|
@@ -2722,17 +2678,11 @@ var symbolTag$1 = '[object Symbol]';
|
|
|
2722
2678
|
* _.isSymbol('abc');
|
|
2723
2679
|
* // => false
|
|
2724
2680
|
*/
|
|
2725
|
-
function isSymbol
|
|
2681
|
+
function isSymbol(value) {
|
|
2726
2682
|
return typeof value == 'symbol' ||
|
|
2727
|
-
(isObjectLike
|
|
2683
|
+
(isObjectLike(value) && baseGetTag(value) == symbolTag$1);
|
|
2728
2684
|
}
|
|
2729
2685
|
|
|
2730
|
-
var isSymbol_1 = isSymbol$6;
|
|
2731
|
-
|
|
2732
|
-
var baseTrim = _baseTrim,
|
|
2733
|
-
isObject$6 = isObject_1,
|
|
2734
|
-
isSymbol$5 = isSymbol_1;
|
|
2735
|
-
|
|
2736
2686
|
/** Used as references for various `Number` constants. */
|
|
2737
2687
|
var NAN = 0 / 0;
|
|
2738
2688
|
|
|
@@ -2771,16 +2721,16 @@ var freeParseInt = parseInt;
|
|
|
2771
2721
|
* _.toNumber('3.2');
|
|
2772
2722
|
* // => 3.2
|
|
2773
2723
|
*/
|
|
2774
|
-
function toNumber
|
|
2724
|
+
function toNumber(value) {
|
|
2775
2725
|
if (typeof value == 'number') {
|
|
2776
2726
|
return value;
|
|
2777
2727
|
}
|
|
2778
|
-
if (isSymbol
|
|
2728
|
+
if (isSymbol(value)) {
|
|
2779
2729
|
return NAN;
|
|
2780
2730
|
}
|
|
2781
|
-
if (isObject
|
|
2731
|
+
if (isObject(value)) {
|
|
2782
2732
|
var other = typeof value.valueOf == 'function' ? value.valueOf() : value;
|
|
2783
|
-
value = isObject
|
|
2733
|
+
value = isObject(other) ? (other + '') : other;
|
|
2784
2734
|
}
|
|
2785
2735
|
if (typeof value != 'string') {
|
|
2786
2736
|
return value === 0 ? value : +value;
|
|
@@ -2792,12 +2742,6 @@ function toNumber$2(value) {
|
|
|
2792
2742
|
: (reIsBadHex.test(value) ? NAN : +value);
|
|
2793
2743
|
}
|
|
2794
2744
|
|
|
2795
|
-
var toNumber_1 = toNumber$2;
|
|
2796
|
-
|
|
2797
|
-
var isObject$5 = isObject_1,
|
|
2798
|
-
now = now_1,
|
|
2799
|
-
toNumber$1 = toNumber_1;
|
|
2800
|
-
|
|
2801
2745
|
/** Error message constants. */
|
|
2802
2746
|
var FUNC_ERROR_TEXT$2 = 'Expected a function';
|
|
2803
2747
|
|
|
@@ -2859,7 +2803,7 @@ var nativeMax$2 = Math.max,
|
|
|
2859
2803
|
* // Cancel the trailing debounced invocation.
|
|
2860
2804
|
* jQuery(window).on('popstate', debounced.cancel);
|
|
2861
2805
|
*/
|
|
2862
|
-
function debounce$
|
|
2806
|
+
function debounce$1(func, wait, options) {
|
|
2863
2807
|
var lastArgs,
|
|
2864
2808
|
lastThis,
|
|
2865
2809
|
maxWait,
|
|
@@ -2874,11 +2818,11 @@ function debounce$2(func, wait, options) {
|
|
|
2874
2818
|
if (typeof func != 'function') {
|
|
2875
2819
|
throw new TypeError(FUNC_ERROR_TEXT$2);
|
|
2876
2820
|
}
|
|
2877
|
-
wait = toNumber
|
|
2878
|
-
if (isObject
|
|
2821
|
+
wait = toNumber(wait) || 0;
|
|
2822
|
+
if (isObject(options)) {
|
|
2879
2823
|
leading = !!options.leading;
|
|
2880
2824
|
maxing = 'maxWait' in options;
|
|
2881
|
-
maxWait = maxing ? nativeMax$2(toNumber
|
|
2825
|
+
maxWait = maxing ? nativeMax$2(toNumber(options.maxWait) || 0, wait) : maxWait;
|
|
2882
2826
|
trailing = 'trailing' in options ? !!options.trailing : trailing;
|
|
2883
2827
|
}
|
|
2884
2828
|
|
|
@@ -2923,7 +2867,7 @@ function debounce$2(func, wait, options) {
|
|
|
2923
2867
|
}
|
|
2924
2868
|
|
|
2925
2869
|
function timerExpired() {
|
|
2926
|
-
var time = now();
|
|
2870
|
+
var time = now$1();
|
|
2927
2871
|
if (shouldInvoke(time)) {
|
|
2928
2872
|
return trailingEdge(time);
|
|
2929
2873
|
}
|
|
@@ -2952,11 +2896,11 @@ function debounce$2(func, wait, options) {
|
|
|
2952
2896
|
}
|
|
2953
2897
|
|
|
2954
2898
|
function flush() {
|
|
2955
|
-
return timerId === undefined ? result : trailingEdge(now());
|
|
2899
|
+
return timerId === undefined ? result : trailingEdge(now$1());
|
|
2956
2900
|
}
|
|
2957
2901
|
|
|
2958
2902
|
function debounced() {
|
|
2959
|
-
var time = now(),
|
|
2903
|
+
var time = now$1(),
|
|
2960
2904
|
isInvoking = shouldInvoke(time);
|
|
2961
2905
|
|
|
2962
2906
|
lastArgs = arguments;
|
|
@@ -2984,8 +2928,6 @@ function debounce$2(func, wait, options) {
|
|
|
2984
2928
|
return debounced;
|
|
2985
2929
|
}
|
|
2986
2930
|
|
|
2987
|
-
var debounce_1 = debounce$2;
|
|
2988
|
-
|
|
2989
2931
|
const FILTER_BUTTON_CLASS = 'rv-filter';
|
|
2990
2932
|
const FILTER_BUTTON_ACTIVE = 'active';
|
|
2991
2933
|
const FILTER_PROP = 'hasFilter';
|
|
@@ -3063,7 +3005,7 @@ class FilterPanel {
|
|
|
3063
3005
|
and: 'and',
|
|
3064
3006
|
or: 'or',
|
|
3065
3007
|
};
|
|
3066
|
-
this.debouncedApplyFilter =
|
|
3008
|
+
this.debouncedApplyFilter = debounce$1(() => {
|
|
3067
3009
|
this.filterChange.emit(this.filterItems);
|
|
3068
3010
|
}, 400);
|
|
3069
3011
|
this.isFilterIdSet = false;
|
|
@@ -3391,8 +3333,7 @@ function isProxy(k) {
|
|
|
3391
3333
|
* @param {boolean} [fromRight] Specify iterating from right to left.
|
|
3392
3334
|
* @returns {number} Returns the index of the matched value, else `-1`.
|
|
3393
3335
|
*/
|
|
3394
|
-
|
|
3395
|
-
function baseFindIndex$1(array, predicate, fromIndex, fromRight) {
|
|
3336
|
+
function baseFindIndex(array, predicate, fromIndex, fromRight) {
|
|
3396
3337
|
var length = array.length,
|
|
3397
3338
|
index = fromIndex + (fromRight ? 1 : -1);
|
|
3398
3339
|
|
|
@@ -3404,8 +3345,6 @@ function baseFindIndex$1(array, predicate, fromIndex, fromRight) {
|
|
|
3404
3345
|
return -1;
|
|
3405
3346
|
}
|
|
3406
3347
|
|
|
3407
|
-
var _baseFindIndex = baseFindIndex$1;
|
|
3408
|
-
|
|
3409
3348
|
/**
|
|
3410
3349
|
* Removes all key-value entries from the list cache.
|
|
3411
3350
|
*
|
|
@@ -3413,14 +3352,11 @@ var _baseFindIndex = baseFindIndex$1;
|
|
|
3413
3352
|
* @name clear
|
|
3414
3353
|
* @memberOf ListCache
|
|
3415
3354
|
*/
|
|
3416
|
-
|
|
3417
|
-
function listCacheClear$1() {
|
|
3355
|
+
function listCacheClear() {
|
|
3418
3356
|
this.__data__ = [];
|
|
3419
3357
|
this.size = 0;
|
|
3420
3358
|
}
|
|
3421
3359
|
|
|
3422
|
-
var _listCacheClear = listCacheClear$1;
|
|
3423
|
-
|
|
3424
3360
|
/**
|
|
3425
3361
|
* Performs a
|
|
3426
3362
|
* [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
|
|
@@ -3453,15 +3389,10 @@ var _listCacheClear = listCacheClear$1;
|
|
|
3453
3389
|
* _.eq(NaN, NaN);
|
|
3454
3390
|
* // => true
|
|
3455
3391
|
*/
|
|
3456
|
-
|
|
3457
|
-
function eq$4(value, other) {
|
|
3392
|
+
function eq$1(value, other) {
|
|
3458
3393
|
return value === other || (value !== value && other !== other);
|
|
3459
3394
|
}
|
|
3460
3395
|
|
|
3461
|
-
var eq_1 = eq$4;
|
|
3462
|
-
|
|
3463
|
-
var eq$3 = eq_1;
|
|
3464
|
-
|
|
3465
3396
|
/**
|
|
3466
3397
|
* Gets the index at which the `key` is found in `array` of key-value pairs.
|
|
3467
3398
|
*
|
|
@@ -3470,20 +3401,16 @@ var eq$3 = eq_1;
|
|
|
3470
3401
|
* @param {*} key The key to search for.
|
|
3471
3402
|
* @returns {number} Returns the index of the matched value, else `-1`.
|
|
3472
3403
|
*/
|
|
3473
|
-
function assocIndexOf
|
|
3404
|
+
function assocIndexOf(array, key) {
|
|
3474
3405
|
var length = array.length;
|
|
3475
3406
|
while (length--) {
|
|
3476
|
-
if (eq$
|
|
3407
|
+
if (eq$1(array[length][0], key)) {
|
|
3477
3408
|
return length;
|
|
3478
3409
|
}
|
|
3479
3410
|
}
|
|
3480
3411
|
return -1;
|
|
3481
3412
|
}
|
|
3482
3413
|
|
|
3483
|
-
var _assocIndexOf = assocIndexOf$4;
|
|
3484
|
-
|
|
3485
|
-
var assocIndexOf$3 = _assocIndexOf;
|
|
3486
|
-
|
|
3487
3414
|
/** Used for built-in method references. */
|
|
3488
3415
|
var arrayProto = Array.prototype;
|
|
3489
3416
|
|
|
@@ -3499,9 +3426,9 @@ var splice = arrayProto.splice;
|
|
|
3499
3426
|
* @param {string} key The key of the value to remove.
|
|
3500
3427
|
* @returns {boolean} Returns `true` if the entry was removed, else `false`.
|
|
3501
3428
|
*/
|
|
3502
|
-
function listCacheDelete
|
|
3429
|
+
function listCacheDelete(key) {
|
|
3503
3430
|
var data = this.__data__,
|
|
3504
|
-
index = assocIndexOf
|
|
3431
|
+
index = assocIndexOf(data, key);
|
|
3505
3432
|
|
|
3506
3433
|
if (index < 0) {
|
|
3507
3434
|
return false;
|
|
@@ -3516,10 +3443,6 @@ function listCacheDelete$1(key) {
|
|
|
3516
3443
|
return true;
|
|
3517
3444
|
}
|
|
3518
3445
|
|
|
3519
|
-
var _listCacheDelete = listCacheDelete$1;
|
|
3520
|
-
|
|
3521
|
-
var assocIndexOf$2 = _assocIndexOf;
|
|
3522
|
-
|
|
3523
3446
|
/**
|
|
3524
3447
|
* Gets the list cache value for `key`.
|
|
3525
3448
|
*
|
|
@@ -3529,17 +3452,13 @@ var assocIndexOf$2 = _assocIndexOf;
|
|
|
3529
3452
|
* @param {string} key The key of the value to get.
|
|
3530
3453
|
* @returns {*} Returns the entry value.
|
|
3531
3454
|
*/
|
|
3532
|
-
function listCacheGet
|
|
3455
|
+
function listCacheGet(key) {
|
|
3533
3456
|
var data = this.__data__,
|
|
3534
|
-
index = assocIndexOf
|
|
3457
|
+
index = assocIndexOf(data, key);
|
|
3535
3458
|
|
|
3536
3459
|
return index < 0 ? undefined : data[index][1];
|
|
3537
3460
|
}
|
|
3538
3461
|
|
|
3539
|
-
var _listCacheGet = listCacheGet$1;
|
|
3540
|
-
|
|
3541
|
-
var assocIndexOf$1 = _assocIndexOf;
|
|
3542
|
-
|
|
3543
3462
|
/**
|
|
3544
3463
|
* Checks if a list cache value for `key` exists.
|
|
3545
3464
|
*
|
|
@@ -3549,14 +3468,10 @@ var assocIndexOf$1 = _assocIndexOf;
|
|
|
3549
3468
|
* @param {string} key The key of the entry to check.
|
|
3550
3469
|
* @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
|
|
3551
3470
|
*/
|
|
3552
|
-
function listCacheHas
|
|
3553
|
-
return assocIndexOf
|
|
3471
|
+
function listCacheHas(key) {
|
|
3472
|
+
return assocIndexOf(this.__data__, key) > -1;
|
|
3554
3473
|
}
|
|
3555
3474
|
|
|
3556
|
-
var _listCacheHas = listCacheHas$1;
|
|
3557
|
-
|
|
3558
|
-
var assocIndexOf = _assocIndexOf;
|
|
3559
|
-
|
|
3560
3475
|
/**
|
|
3561
3476
|
* Sets the list cache `key` to `value`.
|
|
3562
3477
|
*
|
|
@@ -3567,7 +3482,7 @@ var assocIndexOf = _assocIndexOf;
|
|
|
3567
3482
|
* @param {*} value The value to set.
|
|
3568
3483
|
* @returns {Object} Returns the list cache instance.
|
|
3569
3484
|
*/
|
|
3570
|
-
function listCacheSet
|
|
3485
|
+
function listCacheSet(key, value) {
|
|
3571
3486
|
var data = this.__data__,
|
|
3572
3487
|
index = assocIndexOf(data, key);
|
|
3573
3488
|
|
|
@@ -3580,14 +3495,6 @@ function listCacheSet$1(key, value) {
|
|
|
3580
3495
|
return this;
|
|
3581
3496
|
}
|
|
3582
3497
|
|
|
3583
|
-
var _listCacheSet = listCacheSet$1;
|
|
3584
|
-
|
|
3585
|
-
var listCacheClear = _listCacheClear,
|
|
3586
|
-
listCacheDelete = _listCacheDelete,
|
|
3587
|
-
listCacheGet = _listCacheGet,
|
|
3588
|
-
listCacheHas = _listCacheHas,
|
|
3589
|
-
listCacheSet = _listCacheSet;
|
|
3590
|
-
|
|
3591
3498
|
/**
|
|
3592
3499
|
* Creates an list cache object.
|
|
3593
3500
|
*
|
|
@@ -3595,7 +3502,7 @@ var listCacheClear = _listCacheClear,
|
|
|
3595
3502
|
* @constructor
|
|
3596
3503
|
* @param {Array} [entries] The key-value pairs to cache.
|
|
3597
3504
|
*/
|
|
3598
|
-
function ListCache
|
|
3505
|
+
function ListCache(entries) {
|
|
3599
3506
|
var index = -1,
|
|
3600
3507
|
length = entries == null ? 0 : entries.length;
|
|
3601
3508
|
|
|
@@ -3607,15 +3514,11 @@ function ListCache$4(entries) {
|
|
|
3607
3514
|
}
|
|
3608
3515
|
|
|
3609
3516
|
// Add methods to `ListCache`.
|
|
3610
|
-
ListCache
|
|
3611
|
-
ListCache
|
|
3612
|
-
ListCache
|
|
3613
|
-
ListCache
|
|
3614
|
-
ListCache
|
|
3615
|
-
|
|
3616
|
-
var _ListCache = ListCache$4;
|
|
3617
|
-
|
|
3618
|
-
var ListCache$3 = _ListCache;
|
|
3517
|
+
ListCache.prototype.clear = listCacheClear;
|
|
3518
|
+
ListCache.prototype['delete'] = listCacheDelete;
|
|
3519
|
+
ListCache.prototype.get = listCacheGet;
|
|
3520
|
+
ListCache.prototype.has = listCacheHas;
|
|
3521
|
+
ListCache.prototype.set = listCacheSet;
|
|
3619
3522
|
|
|
3620
3523
|
/**
|
|
3621
3524
|
* Removes all key-value entries from the stack.
|
|
@@ -3624,13 +3527,11 @@ var ListCache$3 = _ListCache;
|
|
|
3624
3527
|
* @name clear
|
|
3625
3528
|
* @memberOf Stack
|
|
3626
3529
|
*/
|
|
3627
|
-
function stackClear
|
|
3628
|
-
this.__data__ = new ListCache
|
|
3530
|
+
function stackClear() {
|
|
3531
|
+
this.__data__ = new ListCache;
|
|
3629
3532
|
this.size = 0;
|
|
3630
3533
|
}
|
|
3631
3534
|
|
|
3632
|
-
var _stackClear = stackClear$1;
|
|
3633
|
-
|
|
3634
3535
|
/**
|
|
3635
3536
|
* Removes `key` and its value from the stack.
|
|
3636
3537
|
*
|
|
@@ -3640,8 +3541,7 @@ var _stackClear = stackClear$1;
|
|
|
3640
3541
|
* @param {string} key The key of the value to remove.
|
|
3641
3542
|
* @returns {boolean} Returns `true` if the entry was removed, else `false`.
|
|
3642
3543
|
*/
|
|
3643
|
-
|
|
3644
|
-
function stackDelete$1(key) {
|
|
3544
|
+
function stackDelete(key) {
|
|
3645
3545
|
var data = this.__data__,
|
|
3646
3546
|
result = data['delete'](key);
|
|
3647
3547
|
|
|
@@ -3649,8 +3549,6 @@ function stackDelete$1(key) {
|
|
|
3649
3549
|
return result;
|
|
3650
3550
|
}
|
|
3651
3551
|
|
|
3652
|
-
var _stackDelete = stackDelete$1;
|
|
3653
|
-
|
|
3654
3552
|
/**
|
|
3655
3553
|
* Gets the stack value for `key`.
|
|
3656
3554
|
*
|
|
@@ -3660,13 +3558,10 @@ var _stackDelete = stackDelete$1;
|
|
|
3660
3558
|
* @param {string} key The key of the value to get.
|
|
3661
3559
|
* @returns {*} Returns the entry value.
|
|
3662
3560
|
*/
|
|
3663
|
-
|
|
3664
|
-
function stackGet$1(key) {
|
|
3561
|
+
function stackGet(key) {
|
|
3665
3562
|
return this.__data__.get(key);
|
|
3666
3563
|
}
|
|
3667
3564
|
|
|
3668
|
-
var _stackGet = stackGet$1;
|
|
3669
|
-
|
|
3670
3565
|
/**
|
|
3671
3566
|
* Checks if a stack value for `key` exists.
|
|
3672
3567
|
*
|
|
@@ -3676,16 +3571,10 @@ var _stackGet = stackGet$1;
|
|
|
3676
3571
|
* @param {string} key The key of the entry to check.
|
|
3677
3572
|
* @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
|
|
3678
3573
|
*/
|
|
3679
|
-
|
|
3680
|
-
function stackHas$1(key) {
|
|
3574
|
+
function stackHas(key) {
|
|
3681
3575
|
return this.__data__.has(key);
|
|
3682
3576
|
}
|
|
3683
3577
|
|
|
3684
|
-
var _stackHas = stackHas$1;
|
|
3685
|
-
|
|
3686
|
-
var baseGetTag$4 = _baseGetTag,
|
|
3687
|
-
isObject$4 = isObject_1;
|
|
3688
|
-
|
|
3689
3578
|
/** `Object#toString` result references. */
|
|
3690
3579
|
var asyncTag = '[object AsyncFunction]',
|
|
3691
3580
|
funcTag$1 = '[object Function]',
|
|
@@ -3709,30 +3598,24 @@ var asyncTag = '[object AsyncFunction]',
|
|
|
3709
3598
|
* _.isFunction(/abc/);
|
|
3710
3599
|
* // => false
|
|
3711
3600
|
*/
|
|
3712
|
-
function isFunction
|
|
3713
|
-
if (!isObject
|
|
3601
|
+
function isFunction(value) {
|
|
3602
|
+
if (!isObject(value)) {
|
|
3714
3603
|
return false;
|
|
3715
3604
|
}
|
|
3716
3605
|
// The use of `Object#toString` avoids issues with the `typeof` operator
|
|
3717
3606
|
// in Safari 9 which returns 'object' for typed arrays and other constructors.
|
|
3718
|
-
var tag = baseGetTag
|
|
3607
|
+
var tag = baseGetTag(value);
|
|
3719
3608
|
return tag == funcTag$1 || tag == genTag || tag == asyncTag || tag == proxyTag;
|
|
3720
3609
|
}
|
|
3721
3610
|
|
|
3722
|
-
var isFunction_1 = isFunction$2;
|
|
3723
|
-
|
|
3724
|
-
var root$6 = _root;
|
|
3725
|
-
|
|
3726
3611
|
/** Used to detect overreaching core-js shims. */
|
|
3727
|
-
var coreJsData
|
|
3612
|
+
var coreJsData = root$1['__core-js_shared__'];
|
|
3728
3613
|
|
|
3729
|
-
var
|
|
3730
|
-
|
|
3731
|
-
var coreJsData = _coreJsData;
|
|
3614
|
+
var coreJsData$1 = coreJsData;
|
|
3732
3615
|
|
|
3733
3616
|
/** Used to detect methods masquerading as native. */
|
|
3734
3617
|
var maskSrcKey = (function() {
|
|
3735
|
-
var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || '');
|
|
3618
|
+
var uid = /[^.]+$/.exec(coreJsData$1 && coreJsData$1.keys && coreJsData$1.keys.IE_PROTO || '');
|
|
3736
3619
|
return uid ? ('Symbol(src)_1.' + uid) : '';
|
|
3737
3620
|
}());
|
|
3738
3621
|
|
|
@@ -3743,14 +3626,11 @@ var maskSrcKey = (function() {
|
|
|
3743
3626
|
* @param {Function} func The function to check.
|
|
3744
3627
|
* @returns {boolean} Returns `true` if `func` is masked, else `false`.
|
|
3745
3628
|
*/
|
|
3746
|
-
function isMasked
|
|
3629
|
+
function isMasked(func) {
|
|
3747
3630
|
return !!maskSrcKey && (maskSrcKey in func);
|
|
3748
3631
|
}
|
|
3749
3632
|
|
|
3750
|
-
var _isMasked = isMasked$1;
|
|
3751
|
-
|
|
3752
3633
|
/** Used for built-in method references. */
|
|
3753
|
-
|
|
3754
3634
|
var funcProto$1 = Function.prototype;
|
|
3755
3635
|
|
|
3756
3636
|
/** Used to resolve the decompiled source of functions. */
|
|
@@ -3763,7 +3643,7 @@ var funcToString$1 = funcProto$1.toString;
|
|
|
3763
3643
|
* @param {Function} func The function to convert.
|
|
3764
3644
|
* @returns {string} Returns the source code.
|
|
3765
3645
|
*/
|
|
3766
|
-
function toSource
|
|
3646
|
+
function toSource(func) {
|
|
3767
3647
|
if (func != null) {
|
|
3768
3648
|
try {
|
|
3769
3649
|
return funcToString$1.call(func);
|
|
@@ -3775,13 +3655,6 @@ function toSource$2(func) {
|
|
|
3775
3655
|
return '';
|
|
3776
3656
|
}
|
|
3777
3657
|
|
|
3778
|
-
var _toSource = toSource$2;
|
|
3779
|
-
|
|
3780
|
-
var isFunction$1 = isFunction_1,
|
|
3781
|
-
isMasked = _isMasked,
|
|
3782
|
-
isObject$3 = isObject_1,
|
|
3783
|
-
toSource$1 = _toSource;
|
|
3784
|
-
|
|
3785
3658
|
/**
|
|
3786
3659
|
* Used to match `RegExp`
|
|
3787
3660
|
* [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).
|
|
@@ -3815,16 +3688,14 @@ var reIsNative = RegExp('^' +
|
|
|
3815
3688
|
* @returns {boolean} Returns `true` if `value` is a native function,
|
|
3816
3689
|
* else `false`.
|
|
3817
3690
|
*/
|
|
3818
|
-
function baseIsNative
|
|
3819
|
-
if (!isObject
|
|
3691
|
+
function baseIsNative(value) {
|
|
3692
|
+
if (!isObject(value) || isMasked(value)) {
|
|
3820
3693
|
return false;
|
|
3821
3694
|
}
|
|
3822
|
-
var pattern = isFunction
|
|
3823
|
-
return pattern.test(toSource
|
|
3695
|
+
var pattern = isFunction(value) ? reIsNative : reIsHostCtor;
|
|
3696
|
+
return pattern.test(toSource(value));
|
|
3824
3697
|
}
|
|
3825
3698
|
|
|
3826
|
-
var _baseIsNative = baseIsNative$1;
|
|
3827
|
-
|
|
3828
3699
|
/**
|
|
3829
3700
|
* Gets the value at `key` of `object`.
|
|
3830
3701
|
*
|
|
@@ -3833,16 +3704,10 @@ var _baseIsNative = baseIsNative$1;
|
|
|
3833
3704
|
* @param {string} key The key of the property to get.
|
|
3834
3705
|
* @returns {*} Returns the property value.
|
|
3835
3706
|
*/
|
|
3836
|
-
|
|
3837
|
-
function getValue$1(object, key) {
|
|
3707
|
+
function getValue(object, key) {
|
|
3838
3708
|
return object == null ? undefined : object[key];
|
|
3839
3709
|
}
|
|
3840
3710
|
|
|
3841
|
-
var _getValue = getValue$1;
|
|
3842
|
-
|
|
3843
|
-
var baseIsNative = _baseIsNative,
|
|
3844
|
-
getValue = _getValue;
|
|
3845
|
-
|
|
3846
3711
|
/**
|
|
3847
3712
|
* Gets the native function at `key` of `object`.
|
|
3848
3713
|
*
|
|
@@ -3851,29 +3716,20 @@ var baseIsNative = _baseIsNative,
|
|
|
3851
3716
|
* @param {string} key The key of the method to get.
|
|
3852
3717
|
* @returns {*} Returns the function if it's native, else `undefined`.
|
|
3853
3718
|
*/
|
|
3854
|
-
function getNative
|
|
3719
|
+
function getNative(object, key) {
|
|
3855
3720
|
var value = getValue(object, key);
|
|
3856
3721
|
return baseIsNative(value) ? value : undefined;
|
|
3857
3722
|
}
|
|
3858
3723
|
|
|
3859
|
-
var _getNative = getNative$7;
|
|
3860
|
-
|
|
3861
|
-
var getNative$6 = _getNative,
|
|
3862
|
-
root$5 = _root;
|
|
3863
|
-
|
|
3864
3724
|
/* Built-in method references that are verified to be native. */
|
|
3865
|
-
var Map$
|
|
3725
|
+
var Map$1 = getNative(root$1, 'Map');
|
|
3866
3726
|
|
|
3867
|
-
var
|
|
3868
|
-
|
|
3869
|
-
var getNative$5 = _getNative;
|
|
3727
|
+
var Map$2 = Map$1;
|
|
3870
3728
|
|
|
3871
3729
|
/* Built-in method references that are verified to be native. */
|
|
3872
|
-
var nativeCreate
|
|
3873
|
-
|
|
3874
|
-
var _nativeCreate = nativeCreate$4;
|
|
3730
|
+
var nativeCreate = getNative(Object, 'create');
|
|
3875
3731
|
|
|
3876
|
-
var nativeCreate$
|
|
3732
|
+
var nativeCreate$1 = nativeCreate;
|
|
3877
3733
|
|
|
3878
3734
|
/**
|
|
3879
3735
|
* Removes all key-value entries from the hash.
|
|
@@ -3882,13 +3738,11 @@ var nativeCreate$3 = _nativeCreate;
|
|
|
3882
3738
|
* @name clear
|
|
3883
3739
|
* @memberOf Hash
|
|
3884
3740
|
*/
|
|
3885
|
-
function hashClear
|
|
3886
|
-
this.__data__ = nativeCreate$
|
|
3741
|
+
function hashClear() {
|
|
3742
|
+
this.__data__ = nativeCreate$1 ? nativeCreate$1(null) : {};
|
|
3887
3743
|
this.size = 0;
|
|
3888
3744
|
}
|
|
3889
3745
|
|
|
3890
|
-
var _hashClear = hashClear$1;
|
|
3891
|
-
|
|
3892
3746
|
/**
|
|
3893
3747
|
* Removes `key` and its value from the hash.
|
|
3894
3748
|
*
|
|
@@ -3899,17 +3753,12 @@ var _hashClear = hashClear$1;
|
|
|
3899
3753
|
* @param {string} key The key of the value to remove.
|
|
3900
3754
|
* @returns {boolean} Returns `true` if the entry was removed, else `false`.
|
|
3901
3755
|
*/
|
|
3902
|
-
|
|
3903
|
-
function hashDelete$1(key) {
|
|
3756
|
+
function hashDelete(key) {
|
|
3904
3757
|
var result = this.has(key) && delete this.__data__[key];
|
|
3905
3758
|
this.size -= result ? 1 : 0;
|
|
3906
3759
|
return result;
|
|
3907
3760
|
}
|
|
3908
3761
|
|
|
3909
|
-
var _hashDelete = hashDelete$1;
|
|
3910
|
-
|
|
3911
|
-
var nativeCreate$2 = _nativeCreate;
|
|
3912
|
-
|
|
3913
3762
|
/** Used to stand-in for `undefined` hash values. */
|
|
3914
3763
|
var HASH_UNDEFINED$2 = '__lodash_hash_undefined__';
|
|
3915
3764
|
|
|
@@ -3928,19 +3777,15 @@ var hasOwnProperty$6 = objectProto$8.hasOwnProperty;
|
|
|
3928
3777
|
* @param {string} key The key of the value to get.
|
|
3929
3778
|
* @returns {*} Returns the entry value.
|
|
3930
3779
|
*/
|
|
3931
|
-
function hashGet
|
|
3780
|
+
function hashGet(key) {
|
|
3932
3781
|
var data = this.__data__;
|
|
3933
|
-
if (nativeCreate$
|
|
3782
|
+
if (nativeCreate$1) {
|
|
3934
3783
|
var result = data[key];
|
|
3935
3784
|
return result === HASH_UNDEFINED$2 ? undefined : result;
|
|
3936
3785
|
}
|
|
3937
3786
|
return hasOwnProperty$6.call(data, key) ? data[key] : undefined;
|
|
3938
3787
|
}
|
|
3939
3788
|
|
|
3940
|
-
var _hashGet = hashGet$1;
|
|
3941
|
-
|
|
3942
|
-
var nativeCreate$1 = _nativeCreate;
|
|
3943
|
-
|
|
3944
3789
|
/** Used for built-in method references. */
|
|
3945
3790
|
var objectProto$7 = Object.prototype;
|
|
3946
3791
|
|
|
@@ -3956,15 +3801,11 @@ var hasOwnProperty$5 = objectProto$7.hasOwnProperty;
|
|
|
3956
3801
|
* @param {string} key The key of the entry to check.
|
|
3957
3802
|
* @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
|
|
3958
3803
|
*/
|
|
3959
|
-
function hashHas
|
|
3804
|
+
function hashHas(key) {
|
|
3960
3805
|
var data = this.__data__;
|
|
3961
3806
|
return nativeCreate$1 ? (data[key] !== undefined) : hasOwnProperty$5.call(data, key);
|
|
3962
3807
|
}
|
|
3963
3808
|
|
|
3964
|
-
var _hashHas = hashHas$1;
|
|
3965
|
-
|
|
3966
|
-
var nativeCreate = _nativeCreate;
|
|
3967
|
-
|
|
3968
3809
|
/** Used to stand-in for `undefined` hash values. */
|
|
3969
3810
|
var HASH_UNDEFINED$1 = '__lodash_hash_undefined__';
|
|
3970
3811
|
|
|
@@ -3978,21 +3819,13 @@ var HASH_UNDEFINED$1 = '__lodash_hash_undefined__';
|
|
|
3978
3819
|
* @param {*} value The value to set.
|
|
3979
3820
|
* @returns {Object} Returns the hash instance.
|
|
3980
3821
|
*/
|
|
3981
|
-
function hashSet
|
|
3822
|
+
function hashSet(key, value) {
|
|
3982
3823
|
var data = this.__data__;
|
|
3983
3824
|
this.size += this.has(key) ? 0 : 1;
|
|
3984
|
-
data[key] = (nativeCreate && value === undefined) ? HASH_UNDEFINED$1 : value;
|
|
3825
|
+
data[key] = (nativeCreate$1 && value === undefined) ? HASH_UNDEFINED$1 : value;
|
|
3985
3826
|
return this;
|
|
3986
3827
|
}
|
|
3987
3828
|
|
|
3988
|
-
var _hashSet = hashSet$1;
|
|
3989
|
-
|
|
3990
|
-
var hashClear = _hashClear,
|
|
3991
|
-
hashDelete = _hashDelete,
|
|
3992
|
-
hashGet = _hashGet,
|
|
3993
|
-
hashHas = _hashHas,
|
|
3994
|
-
hashSet = _hashSet;
|
|
3995
|
-
|
|
3996
3829
|
/**
|
|
3997
3830
|
* Creates a hash object.
|
|
3998
3831
|
*
|
|
@@ -4000,7 +3833,7 @@ var hashClear = _hashClear,
|
|
|
4000
3833
|
* @constructor
|
|
4001
3834
|
* @param {Array} [entries] The key-value pairs to cache.
|
|
4002
3835
|
*/
|
|
4003
|
-
function Hash
|
|
3836
|
+
function Hash(entries) {
|
|
4004
3837
|
var index = -1,
|
|
4005
3838
|
length = entries == null ? 0 : entries.length;
|
|
4006
3839
|
|
|
@@ -4012,17 +3845,11 @@ function Hash$1(entries) {
|
|
|
4012
3845
|
}
|
|
4013
3846
|
|
|
4014
3847
|
// Add methods to `Hash`.
|
|
4015
|
-
Hash
|
|
4016
|
-
Hash
|
|
4017
|
-
Hash
|
|
4018
|
-
Hash
|
|
4019
|
-
Hash
|
|
4020
|
-
|
|
4021
|
-
var _Hash = Hash$1;
|
|
4022
|
-
|
|
4023
|
-
var Hash = _Hash,
|
|
4024
|
-
ListCache$2 = _ListCache,
|
|
4025
|
-
Map$3 = _Map;
|
|
3848
|
+
Hash.prototype.clear = hashClear;
|
|
3849
|
+
Hash.prototype['delete'] = hashDelete;
|
|
3850
|
+
Hash.prototype.get = hashGet;
|
|
3851
|
+
Hash.prototype.has = hashHas;
|
|
3852
|
+
Hash.prototype.set = hashSet;
|
|
4026
3853
|
|
|
4027
3854
|
/**
|
|
4028
3855
|
* Removes all key-value entries from the map.
|
|
@@ -4031,17 +3858,15 @@ var Hash = _Hash,
|
|
|
4031
3858
|
* @name clear
|
|
4032
3859
|
* @memberOf MapCache
|
|
4033
3860
|
*/
|
|
4034
|
-
function mapCacheClear
|
|
3861
|
+
function mapCacheClear() {
|
|
4035
3862
|
this.size = 0;
|
|
4036
3863
|
this.__data__ = {
|
|
4037
3864
|
'hash': new Hash,
|
|
4038
|
-
'map': new (Map$
|
|
3865
|
+
'map': new (Map$2 || ListCache),
|
|
4039
3866
|
'string': new Hash
|
|
4040
3867
|
};
|
|
4041
3868
|
}
|
|
4042
3869
|
|
|
4043
|
-
var _mapCacheClear = mapCacheClear$1;
|
|
4044
|
-
|
|
4045
3870
|
/**
|
|
4046
3871
|
* Checks if `value` is suitable for use as unique object key.
|
|
4047
3872
|
*
|
|
@@ -4049,18 +3874,13 @@ var _mapCacheClear = mapCacheClear$1;
|
|
|
4049
3874
|
* @param {*} value The value to check.
|
|
4050
3875
|
* @returns {boolean} Returns `true` if `value` is suitable, else `false`.
|
|
4051
3876
|
*/
|
|
4052
|
-
|
|
4053
|
-
function isKeyable$1(value) {
|
|
3877
|
+
function isKeyable(value) {
|
|
4054
3878
|
var type = typeof value;
|
|
4055
3879
|
return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean')
|
|
4056
3880
|
? (value !== '__proto__')
|
|
4057
3881
|
: (value === null);
|
|
4058
3882
|
}
|
|
4059
3883
|
|
|
4060
|
-
var _isKeyable = isKeyable$1;
|
|
4061
|
-
|
|
4062
|
-
var isKeyable = _isKeyable;
|
|
4063
|
-
|
|
4064
3884
|
/**
|
|
4065
3885
|
* Gets the data for `map`.
|
|
4066
3886
|
*
|
|
@@ -4069,17 +3889,13 @@ var isKeyable = _isKeyable;
|
|
|
4069
3889
|
* @param {string} key The reference key.
|
|
4070
3890
|
* @returns {*} Returns the map data.
|
|
4071
3891
|
*/
|
|
4072
|
-
function getMapData
|
|
3892
|
+
function getMapData(map, key) {
|
|
4073
3893
|
var data = map.__data__;
|
|
4074
3894
|
return isKeyable(key)
|
|
4075
3895
|
? data[typeof key == 'string' ? 'string' : 'hash']
|
|
4076
3896
|
: data.map;
|
|
4077
3897
|
}
|
|
4078
3898
|
|
|
4079
|
-
var _getMapData = getMapData$4;
|
|
4080
|
-
|
|
4081
|
-
var getMapData$3 = _getMapData;
|
|
4082
|
-
|
|
4083
3899
|
/**
|
|
4084
3900
|
* Removes `key` and its value from the map.
|
|
4085
3901
|
*
|
|
@@ -4089,16 +3905,12 @@ var getMapData$3 = _getMapData;
|
|
|
4089
3905
|
* @param {string} key The key of the value to remove.
|
|
4090
3906
|
* @returns {boolean} Returns `true` if the entry was removed, else `false`.
|
|
4091
3907
|
*/
|
|
4092
|
-
function mapCacheDelete
|
|
4093
|
-
var result = getMapData
|
|
3908
|
+
function mapCacheDelete(key) {
|
|
3909
|
+
var result = getMapData(this, key)['delete'](key);
|
|
4094
3910
|
this.size -= result ? 1 : 0;
|
|
4095
3911
|
return result;
|
|
4096
3912
|
}
|
|
4097
3913
|
|
|
4098
|
-
var _mapCacheDelete = mapCacheDelete$1;
|
|
4099
|
-
|
|
4100
|
-
var getMapData$2 = _getMapData;
|
|
4101
|
-
|
|
4102
3914
|
/**
|
|
4103
3915
|
* Gets the map value for `key`.
|
|
4104
3916
|
*
|
|
@@ -4108,14 +3920,10 @@ var getMapData$2 = _getMapData;
|
|
|
4108
3920
|
* @param {string} key The key of the value to get.
|
|
4109
3921
|
* @returns {*} Returns the entry value.
|
|
4110
3922
|
*/
|
|
4111
|
-
function mapCacheGet
|
|
4112
|
-
return getMapData
|
|
3923
|
+
function mapCacheGet(key) {
|
|
3924
|
+
return getMapData(this, key).get(key);
|
|
4113
3925
|
}
|
|
4114
3926
|
|
|
4115
|
-
var _mapCacheGet = mapCacheGet$1;
|
|
4116
|
-
|
|
4117
|
-
var getMapData$1 = _getMapData;
|
|
4118
|
-
|
|
4119
3927
|
/**
|
|
4120
3928
|
* Checks if a map value for `key` exists.
|
|
4121
3929
|
*
|
|
@@ -4125,14 +3933,10 @@ var getMapData$1 = _getMapData;
|
|
|
4125
3933
|
* @param {string} key The key of the entry to check.
|
|
4126
3934
|
* @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
|
|
4127
3935
|
*/
|
|
4128
|
-
function mapCacheHas
|
|
4129
|
-
return getMapData
|
|
3936
|
+
function mapCacheHas(key) {
|
|
3937
|
+
return getMapData(this, key).has(key);
|
|
4130
3938
|
}
|
|
4131
3939
|
|
|
4132
|
-
var _mapCacheHas = mapCacheHas$1;
|
|
4133
|
-
|
|
4134
|
-
var getMapData = _getMapData;
|
|
4135
|
-
|
|
4136
3940
|
/**
|
|
4137
3941
|
* Sets the map `key` to `value`.
|
|
4138
3942
|
*
|
|
@@ -4143,7 +3947,7 @@ var getMapData = _getMapData;
|
|
|
4143
3947
|
* @param {*} value The value to set.
|
|
4144
3948
|
* @returns {Object} Returns the map cache instance.
|
|
4145
3949
|
*/
|
|
4146
|
-
function mapCacheSet
|
|
3950
|
+
function mapCacheSet(key, value) {
|
|
4147
3951
|
var data = getMapData(this, key),
|
|
4148
3952
|
size = data.size;
|
|
4149
3953
|
|
|
@@ -4152,14 +3956,6 @@ function mapCacheSet$1(key, value) {
|
|
|
4152
3956
|
return this;
|
|
4153
3957
|
}
|
|
4154
3958
|
|
|
4155
|
-
var _mapCacheSet = mapCacheSet$1;
|
|
4156
|
-
|
|
4157
|
-
var mapCacheClear = _mapCacheClear,
|
|
4158
|
-
mapCacheDelete = _mapCacheDelete,
|
|
4159
|
-
mapCacheGet = _mapCacheGet,
|
|
4160
|
-
mapCacheHas = _mapCacheHas,
|
|
4161
|
-
mapCacheSet = _mapCacheSet;
|
|
4162
|
-
|
|
4163
3959
|
/**
|
|
4164
3960
|
* Creates a map cache object to store key-value pairs.
|
|
4165
3961
|
*
|
|
@@ -4167,7 +3963,7 @@ var mapCacheClear = _mapCacheClear,
|
|
|
4167
3963
|
* @constructor
|
|
4168
3964
|
* @param {Array} [entries] The key-value pairs to cache.
|
|
4169
3965
|
*/
|
|
4170
|
-
function MapCache
|
|
3966
|
+
function MapCache(entries) {
|
|
4171
3967
|
var index = -1,
|
|
4172
3968
|
length = entries == null ? 0 : entries.length;
|
|
4173
3969
|
|
|
@@ -4179,17 +3975,11 @@ function MapCache$3(entries) {
|
|
|
4179
3975
|
}
|
|
4180
3976
|
|
|
4181
3977
|
// Add methods to `MapCache`.
|
|
4182
|
-
MapCache
|
|
4183
|
-
MapCache
|
|
4184
|
-
MapCache
|
|
4185
|
-
MapCache
|
|
4186
|
-
MapCache
|
|
4187
|
-
|
|
4188
|
-
var _MapCache = MapCache$3;
|
|
4189
|
-
|
|
4190
|
-
var ListCache$1 = _ListCache,
|
|
4191
|
-
Map$2 = _Map,
|
|
4192
|
-
MapCache$2 = _MapCache;
|
|
3978
|
+
MapCache.prototype.clear = mapCacheClear;
|
|
3979
|
+
MapCache.prototype['delete'] = mapCacheDelete;
|
|
3980
|
+
MapCache.prototype.get = mapCacheGet;
|
|
3981
|
+
MapCache.prototype.has = mapCacheHas;
|
|
3982
|
+
MapCache.prototype.set = mapCacheSet;
|
|
4193
3983
|
|
|
4194
3984
|
/** Used as the size to enable large array optimizations. */
|
|
4195
3985
|
var LARGE_ARRAY_SIZE = 200;
|
|
@@ -4204,31 +3994,22 @@ var LARGE_ARRAY_SIZE = 200;
|
|
|
4204
3994
|
* @param {*} value The value to set.
|
|
4205
3995
|
* @returns {Object} Returns the stack cache instance.
|
|
4206
3996
|
*/
|
|
4207
|
-
function stackSet
|
|
3997
|
+
function stackSet(key, value) {
|
|
4208
3998
|
var data = this.__data__;
|
|
4209
|
-
if (data instanceof ListCache
|
|
3999
|
+
if (data instanceof ListCache) {
|
|
4210
4000
|
var pairs = data.__data__;
|
|
4211
4001
|
if (!Map$2 || (pairs.length < LARGE_ARRAY_SIZE - 1)) {
|
|
4212
4002
|
pairs.push([key, value]);
|
|
4213
4003
|
this.size = ++data.size;
|
|
4214
4004
|
return this;
|
|
4215
4005
|
}
|
|
4216
|
-
data = this.__data__ = new MapCache
|
|
4006
|
+
data = this.__data__ = new MapCache(pairs);
|
|
4217
4007
|
}
|
|
4218
4008
|
data.set(key, value);
|
|
4219
4009
|
this.size = data.size;
|
|
4220
4010
|
return this;
|
|
4221
4011
|
}
|
|
4222
4012
|
|
|
4223
|
-
var _stackSet = stackSet$1;
|
|
4224
|
-
|
|
4225
|
-
var ListCache = _ListCache,
|
|
4226
|
-
stackClear = _stackClear,
|
|
4227
|
-
stackDelete = _stackDelete,
|
|
4228
|
-
stackGet = _stackGet,
|
|
4229
|
-
stackHas = _stackHas,
|
|
4230
|
-
stackSet = _stackSet;
|
|
4231
|
-
|
|
4232
4013
|
/**
|
|
4233
4014
|
* Creates a stack cache object to store key-value pairs.
|
|
4234
4015
|
*
|
|
@@ -4236,22 +4017,19 @@ var ListCache = _ListCache,
|
|
|
4236
4017
|
* @constructor
|
|
4237
4018
|
* @param {Array} [entries] The key-value pairs to cache.
|
|
4238
4019
|
*/
|
|
4239
|
-
function Stack
|
|
4020
|
+
function Stack(entries) {
|
|
4240
4021
|
var data = this.__data__ = new ListCache(entries);
|
|
4241
4022
|
this.size = data.size;
|
|
4242
4023
|
}
|
|
4243
4024
|
|
|
4244
4025
|
// Add methods to `Stack`.
|
|
4245
|
-
Stack
|
|
4246
|
-
Stack
|
|
4247
|
-
Stack
|
|
4248
|
-
Stack
|
|
4249
|
-
Stack
|
|
4250
|
-
|
|
4251
|
-
var _Stack = Stack$2;
|
|
4026
|
+
Stack.prototype.clear = stackClear;
|
|
4027
|
+
Stack.prototype['delete'] = stackDelete;
|
|
4028
|
+
Stack.prototype.get = stackGet;
|
|
4029
|
+
Stack.prototype.has = stackHas;
|
|
4030
|
+
Stack.prototype.set = stackSet;
|
|
4252
4031
|
|
|
4253
4032
|
/** Used to stand-in for `undefined` hash values. */
|
|
4254
|
-
|
|
4255
4033
|
var HASH_UNDEFINED = '__lodash_hash_undefined__';
|
|
4256
4034
|
|
|
4257
4035
|
/**
|
|
@@ -4264,13 +4042,11 @@ var HASH_UNDEFINED = '__lodash_hash_undefined__';
|
|
|
4264
4042
|
* @param {*} value The value to cache.
|
|
4265
4043
|
* @returns {Object} Returns the cache instance.
|
|
4266
4044
|
*/
|
|
4267
|
-
function setCacheAdd
|
|
4045
|
+
function setCacheAdd(value) {
|
|
4268
4046
|
this.__data__.set(value, HASH_UNDEFINED);
|
|
4269
4047
|
return this;
|
|
4270
4048
|
}
|
|
4271
4049
|
|
|
4272
|
-
var _setCacheAdd = setCacheAdd$1;
|
|
4273
|
-
|
|
4274
4050
|
/**
|
|
4275
4051
|
* Checks if `value` is in the array cache.
|
|
4276
4052
|
*
|
|
@@ -4280,17 +4056,10 @@ var _setCacheAdd = setCacheAdd$1;
|
|
|
4280
4056
|
* @param {*} value The value to search for.
|
|
4281
4057
|
* @returns {number} Returns `true` if `value` is found, else `false`.
|
|
4282
4058
|
*/
|
|
4283
|
-
|
|
4284
|
-
function setCacheHas$1(value) {
|
|
4059
|
+
function setCacheHas(value) {
|
|
4285
4060
|
return this.__data__.has(value);
|
|
4286
4061
|
}
|
|
4287
4062
|
|
|
4288
|
-
var _setCacheHas = setCacheHas$1;
|
|
4289
|
-
|
|
4290
|
-
var MapCache$1 = _MapCache,
|
|
4291
|
-
setCacheAdd = _setCacheAdd,
|
|
4292
|
-
setCacheHas = _setCacheHas;
|
|
4293
|
-
|
|
4294
4063
|
/**
|
|
4295
4064
|
*
|
|
4296
4065
|
* Creates an array cache object to store unique values.
|
|
@@ -4299,21 +4068,19 @@ var MapCache$1 = _MapCache,
|
|
|
4299
4068
|
* @constructor
|
|
4300
4069
|
* @param {Array} [values] The values to cache.
|
|
4301
4070
|
*/
|
|
4302
|
-
function SetCache
|
|
4071
|
+
function SetCache(values) {
|
|
4303
4072
|
var index = -1,
|
|
4304
4073
|
length = values == null ? 0 : values.length;
|
|
4305
4074
|
|
|
4306
|
-
this.__data__ = new MapCache
|
|
4075
|
+
this.__data__ = new MapCache;
|
|
4307
4076
|
while (++index < length) {
|
|
4308
4077
|
this.add(values[index]);
|
|
4309
4078
|
}
|
|
4310
4079
|
}
|
|
4311
4080
|
|
|
4312
4081
|
// Add methods to `SetCache`.
|
|
4313
|
-
SetCache
|
|
4314
|
-
SetCache
|
|
4315
|
-
|
|
4316
|
-
var _SetCache = SetCache$1;
|
|
4082
|
+
SetCache.prototype.add = SetCache.prototype.push = setCacheAdd;
|
|
4083
|
+
SetCache.prototype.has = setCacheHas;
|
|
4317
4084
|
|
|
4318
4085
|
/**
|
|
4319
4086
|
* A specialized version of `_.some` for arrays without support for iteratee
|
|
@@ -4325,8 +4092,7 @@ var _SetCache = SetCache$1;
|
|
|
4325
4092
|
* @returns {boolean} Returns `true` if any element passes the predicate check,
|
|
4326
4093
|
* else `false`.
|
|
4327
4094
|
*/
|
|
4328
|
-
|
|
4329
|
-
function arraySome$1(array, predicate) {
|
|
4095
|
+
function arraySome(array, predicate) {
|
|
4330
4096
|
var index = -1,
|
|
4331
4097
|
length = array == null ? 0 : array.length;
|
|
4332
4098
|
|
|
@@ -4338,8 +4104,6 @@ function arraySome$1(array, predicate) {
|
|
|
4338
4104
|
return false;
|
|
4339
4105
|
}
|
|
4340
4106
|
|
|
4341
|
-
var _arraySome = arraySome$1;
|
|
4342
|
-
|
|
4343
4107
|
/**
|
|
4344
4108
|
* Checks if a `cache` value for `key` exists.
|
|
4345
4109
|
*
|
|
@@ -4348,17 +4112,10 @@ var _arraySome = arraySome$1;
|
|
|
4348
4112
|
* @param {string} key The key of the entry to check.
|
|
4349
4113
|
* @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
|
|
4350
4114
|
*/
|
|
4351
|
-
|
|
4352
|
-
function cacheHas$1(cache, key) {
|
|
4115
|
+
function cacheHas(cache, key) {
|
|
4353
4116
|
return cache.has(key);
|
|
4354
4117
|
}
|
|
4355
4118
|
|
|
4356
|
-
var _cacheHas = cacheHas$1;
|
|
4357
|
-
|
|
4358
|
-
var SetCache = _SetCache,
|
|
4359
|
-
arraySome = _arraySome,
|
|
4360
|
-
cacheHas = _cacheHas;
|
|
4361
|
-
|
|
4362
4119
|
/** Used to compose bitmasks for value comparisons. */
|
|
4363
4120
|
var COMPARE_PARTIAL_FLAG$5 = 1,
|
|
4364
4121
|
COMPARE_UNORDERED_FLAG$3 = 2;
|
|
@@ -4376,7 +4133,7 @@ var COMPARE_PARTIAL_FLAG$5 = 1,
|
|
|
4376
4133
|
* @param {Object} stack Tracks traversed `array` and `other` objects.
|
|
4377
4134
|
* @returns {boolean} Returns `true` if the arrays are equivalent, else `false`.
|
|
4378
4135
|
*/
|
|
4379
|
-
function equalArrays
|
|
4136
|
+
function equalArrays(array, other, bitmask, customizer, equalFunc, stack) {
|
|
4380
4137
|
var isPartial = bitmask & COMPARE_PARTIAL_FLAG$5,
|
|
4381
4138
|
arrLength = array.length,
|
|
4382
4139
|
othLength = other.length;
|
|
@@ -4438,14 +4195,10 @@ function equalArrays$2(array, other, bitmask, customizer, equalFunc, stack) {
|
|
|
4438
4195
|
return result;
|
|
4439
4196
|
}
|
|
4440
4197
|
|
|
4441
|
-
var _equalArrays = equalArrays$2;
|
|
4442
|
-
|
|
4443
|
-
var root$4 = _root;
|
|
4444
|
-
|
|
4445
4198
|
/** Built-in value references. */
|
|
4446
|
-
var Uint8Array
|
|
4199
|
+
var Uint8Array = root$1.Uint8Array;
|
|
4447
4200
|
|
|
4448
|
-
var
|
|
4201
|
+
var Uint8Array$1 = Uint8Array;
|
|
4449
4202
|
|
|
4450
4203
|
/**
|
|
4451
4204
|
* Converts `map` to its key-value pairs.
|
|
@@ -4454,8 +4207,7 @@ var _Uint8Array = Uint8Array$1;
|
|
|
4454
4207
|
* @param {Object} map The map to convert.
|
|
4455
4208
|
* @returns {Array} Returns the key-value pairs.
|
|
4456
4209
|
*/
|
|
4457
|
-
|
|
4458
|
-
function mapToArray$1(map) {
|
|
4210
|
+
function mapToArray(map) {
|
|
4459
4211
|
var index = -1,
|
|
4460
4212
|
result = Array(map.size);
|
|
4461
4213
|
|
|
@@ -4465,8 +4217,6 @@ function mapToArray$1(map) {
|
|
|
4465
4217
|
return result;
|
|
4466
4218
|
}
|
|
4467
4219
|
|
|
4468
|
-
var _mapToArray = mapToArray$1;
|
|
4469
|
-
|
|
4470
4220
|
/**
|
|
4471
4221
|
* Converts `set` to an array of its values.
|
|
4472
4222
|
*
|
|
@@ -4474,8 +4224,7 @@ var _mapToArray = mapToArray$1;
|
|
|
4474
4224
|
* @param {Object} set The set to convert.
|
|
4475
4225
|
* @returns {Array} Returns the values.
|
|
4476
4226
|
*/
|
|
4477
|
-
|
|
4478
|
-
function setToArray$1(set) {
|
|
4227
|
+
function setToArray(set) {
|
|
4479
4228
|
var index = -1,
|
|
4480
4229
|
result = Array(set.size);
|
|
4481
4230
|
|
|
@@ -4485,15 +4234,6 @@ function setToArray$1(set) {
|
|
|
4485
4234
|
return result;
|
|
4486
4235
|
}
|
|
4487
4236
|
|
|
4488
|
-
var _setToArray = setToArray$1;
|
|
4489
|
-
|
|
4490
|
-
var Symbol$1 = _Symbol,
|
|
4491
|
-
Uint8Array = _Uint8Array,
|
|
4492
|
-
eq$2 = eq_1,
|
|
4493
|
-
equalArrays$1 = _equalArrays,
|
|
4494
|
-
mapToArray = _mapToArray,
|
|
4495
|
-
setToArray = _setToArray;
|
|
4496
|
-
|
|
4497
4237
|
/** Used to compose bitmasks for value comparisons. */
|
|
4498
4238
|
var COMPARE_PARTIAL_FLAG$4 = 1,
|
|
4499
4239
|
COMPARE_UNORDERED_FLAG$2 = 2;
|
|
@@ -4533,7 +4273,7 @@ var symbolProto$1 = Symbol$1 ? Symbol$1.prototype : undefined,
|
|
|
4533
4273
|
* @param {Object} stack Tracks traversed `object` and `other` objects.
|
|
4534
4274
|
* @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
|
|
4535
4275
|
*/
|
|
4536
|
-
function equalByTag
|
|
4276
|
+
function equalByTag(object, other, tag, bitmask, customizer, equalFunc, stack) {
|
|
4537
4277
|
switch (tag) {
|
|
4538
4278
|
case dataViewTag$2:
|
|
4539
4279
|
if ((object.byteLength != other.byteLength) ||
|
|
@@ -4545,7 +4285,7 @@ function equalByTag$1(object, other, tag, bitmask, customizer, equalFunc, stack)
|
|
|
4545
4285
|
|
|
4546
4286
|
case arrayBufferTag$1:
|
|
4547
4287
|
if ((object.byteLength != other.byteLength) ||
|
|
4548
|
-
!equalFunc(new Uint8Array(object), new Uint8Array(other))) {
|
|
4288
|
+
!equalFunc(new Uint8Array$1(object), new Uint8Array$1(other))) {
|
|
4549
4289
|
return false;
|
|
4550
4290
|
}
|
|
4551
4291
|
return true;
|
|
@@ -4555,7 +4295,7 @@ function equalByTag$1(object, other, tag, bitmask, customizer, equalFunc, stack)
|
|
|
4555
4295
|
case numberTag$1:
|
|
4556
4296
|
// Coerce booleans to `1` or `0` and dates to milliseconds.
|
|
4557
4297
|
// Invalid dates are coerced to `NaN`.
|
|
4558
|
-
return eq$
|
|
4298
|
+
return eq$1(+object, +other);
|
|
4559
4299
|
|
|
4560
4300
|
case errorTag$1:
|
|
4561
4301
|
return object.name == other.name && object.message == other.message;
|
|
@@ -4586,7 +4326,7 @@ function equalByTag$1(object, other, tag, bitmask, customizer, equalFunc, stack)
|
|
|
4586
4326
|
|
|
4587
4327
|
// Recursively compare objects (susceptible to call stack limits).
|
|
4588
4328
|
stack.set(object, other);
|
|
4589
|
-
var result = equalArrays
|
|
4329
|
+
var result = equalArrays(convert(object), convert(other), bitmask, customizer, equalFunc, stack);
|
|
4590
4330
|
stack['delete'](object);
|
|
4591
4331
|
return result;
|
|
4592
4332
|
|
|
@@ -4598,8 +4338,6 @@ function equalByTag$1(object, other, tag, bitmask, customizer, equalFunc, stack)
|
|
|
4598
4338
|
return false;
|
|
4599
4339
|
}
|
|
4600
4340
|
|
|
4601
|
-
var _equalByTag = equalByTag$1;
|
|
4602
|
-
|
|
4603
4341
|
/**
|
|
4604
4342
|
* Appends the elements of `values` to `array`.
|
|
4605
4343
|
*
|
|
@@ -4608,8 +4346,7 @@ var _equalByTag = equalByTag$1;
|
|
|
4608
4346
|
* @param {Array} values The values to append.
|
|
4609
4347
|
* @returns {Array} Returns `array`.
|
|
4610
4348
|
*/
|
|
4611
|
-
|
|
4612
|
-
function arrayPush$1(array, values) {
|
|
4349
|
+
function arrayPush(array, values) {
|
|
4613
4350
|
var index = -1,
|
|
4614
4351
|
length = values.length,
|
|
4615
4352
|
offset = array.length;
|
|
@@ -4620,8 +4357,6 @@ function arrayPush$1(array, values) {
|
|
|
4620
4357
|
return array;
|
|
4621
4358
|
}
|
|
4622
4359
|
|
|
4623
|
-
var _arrayPush = arrayPush$1;
|
|
4624
|
-
|
|
4625
4360
|
/**
|
|
4626
4361
|
* Checks if `value` is classified as an `Array` object.
|
|
4627
4362
|
*
|
|
@@ -4645,13 +4380,9 @@ var _arrayPush = arrayPush$1;
|
|
|
4645
4380
|
* _.isArray(_.noop);
|
|
4646
4381
|
* // => false
|
|
4647
4382
|
*/
|
|
4383
|
+
var isArray = Array.isArray;
|
|
4648
4384
|
|
|
4649
|
-
var isArray$
|
|
4650
|
-
|
|
4651
|
-
var isArray_1 = isArray$c;
|
|
4652
|
-
|
|
4653
|
-
var arrayPush = _arrayPush,
|
|
4654
|
-
isArray$b = isArray_1;
|
|
4385
|
+
var isArray$1 = isArray;
|
|
4655
4386
|
|
|
4656
4387
|
/**
|
|
4657
4388
|
* The base implementation of `getAllKeys` and `getAllKeysIn` which uses
|
|
@@ -4664,13 +4395,11 @@ var arrayPush = _arrayPush,
|
|
|
4664
4395
|
* @param {Function} symbolsFunc The function to get the symbols of `object`.
|
|
4665
4396
|
* @returns {Array} Returns the array of property names and symbols.
|
|
4666
4397
|
*/
|
|
4667
|
-
function baseGetAllKeys
|
|
4398
|
+
function baseGetAllKeys(object, keysFunc, symbolsFunc) {
|
|
4668
4399
|
var result = keysFunc(object);
|
|
4669
|
-
return isArray$
|
|
4400
|
+
return isArray$1(object) ? result : arrayPush(result, symbolsFunc(object));
|
|
4670
4401
|
}
|
|
4671
4402
|
|
|
4672
|
-
var _baseGetAllKeys = baseGetAllKeys$1;
|
|
4673
|
-
|
|
4674
4403
|
/**
|
|
4675
4404
|
* A specialized version of `_.filter` for arrays without support for
|
|
4676
4405
|
* iteratee shorthands.
|
|
@@ -4680,8 +4409,7 @@ var _baseGetAllKeys = baseGetAllKeys$1;
|
|
|
4680
4409
|
* @param {Function} predicate The function invoked per iteration.
|
|
4681
4410
|
* @returns {Array} Returns the new filtered array.
|
|
4682
4411
|
*/
|
|
4683
|
-
|
|
4684
|
-
function arrayFilter$1(array, predicate) {
|
|
4412
|
+
function arrayFilter(array, predicate) {
|
|
4685
4413
|
var index = -1,
|
|
4686
4414
|
length = array == null ? 0 : array.length,
|
|
4687
4415
|
resIndex = 0,
|
|
@@ -4696,8 +4424,6 @@ function arrayFilter$1(array, predicate) {
|
|
|
4696
4424
|
return result;
|
|
4697
4425
|
}
|
|
4698
4426
|
|
|
4699
|
-
var _arrayFilter = arrayFilter$1;
|
|
4700
|
-
|
|
4701
4427
|
/**
|
|
4702
4428
|
* This method returns a new empty array.
|
|
4703
4429
|
*
|
|
@@ -4716,16 +4442,10 @@ var _arrayFilter = arrayFilter$1;
|
|
|
4716
4442
|
* console.log(arrays[0] === arrays[1]);
|
|
4717
4443
|
* // => false
|
|
4718
4444
|
*/
|
|
4719
|
-
|
|
4720
|
-
function stubArray$1() {
|
|
4445
|
+
function stubArray() {
|
|
4721
4446
|
return [];
|
|
4722
4447
|
}
|
|
4723
4448
|
|
|
4724
|
-
var stubArray_1 = stubArray$1;
|
|
4725
|
-
|
|
4726
|
-
var arrayFilter = _arrayFilter,
|
|
4727
|
-
stubArray = stubArray_1;
|
|
4728
|
-
|
|
4729
4449
|
/** Used for built-in method references. */
|
|
4730
4450
|
var objectProto$6 = Object.prototype;
|
|
4731
4451
|
|
|
@@ -4742,7 +4462,7 @@ var nativeGetSymbols = Object.getOwnPropertySymbols;
|
|
|
4742
4462
|
* @param {Object} object The object to query.
|
|
4743
4463
|
* @returns {Array} Returns the array of symbols.
|
|
4744
4464
|
*/
|
|
4745
|
-
var getSymbols
|
|
4465
|
+
var getSymbols = !nativeGetSymbols ? stubArray : function(object) {
|
|
4746
4466
|
if (object == null) {
|
|
4747
4467
|
return [];
|
|
4748
4468
|
}
|
|
@@ -4752,7 +4472,7 @@ var getSymbols$1 = !nativeGetSymbols ? stubArray : function(object) {
|
|
|
4752
4472
|
});
|
|
4753
4473
|
};
|
|
4754
4474
|
|
|
4755
|
-
var
|
|
4475
|
+
var getSymbols$1 = getSymbols;
|
|
4756
4476
|
|
|
4757
4477
|
/**
|
|
4758
4478
|
* The base implementation of `_.times` without support for iteratee shorthands
|
|
@@ -4763,8 +4483,7 @@ var _getSymbols = getSymbols$1;
|
|
|
4763
4483
|
* @param {Function} iteratee The function invoked per iteration.
|
|
4764
4484
|
* @returns {Array} Returns the array of results.
|
|
4765
4485
|
*/
|
|
4766
|
-
|
|
4767
|
-
function baseTimes$1(n, iteratee) {
|
|
4486
|
+
function baseTimes(n, iteratee) {
|
|
4768
4487
|
var index = -1,
|
|
4769
4488
|
result = Array(n);
|
|
4770
4489
|
|
|
@@ -4774,11 +4493,6 @@ function baseTimes$1(n, iteratee) {
|
|
|
4774
4493
|
return result;
|
|
4775
4494
|
}
|
|
4776
4495
|
|
|
4777
|
-
var _baseTimes = baseTimes$1;
|
|
4778
|
-
|
|
4779
|
-
var baseGetTag$3 = _baseGetTag,
|
|
4780
|
-
isObjectLike$4 = isObjectLike_1;
|
|
4781
|
-
|
|
4782
4496
|
/** `Object#toString` result references. */
|
|
4783
4497
|
var argsTag$2 = '[object Arguments]';
|
|
4784
4498
|
|
|
@@ -4789,15 +4503,10 @@ var argsTag$2 = '[object Arguments]';
|
|
|
4789
4503
|
* @param {*} value The value to check.
|
|
4790
4504
|
* @returns {boolean} Returns `true` if `value` is an `arguments` object,
|
|
4791
4505
|
*/
|
|
4792
|
-
function baseIsArguments
|
|
4793
|
-
return isObjectLike
|
|
4506
|
+
function baseIsArguments(value) {
|
|
4507
|
+
return isObjectLike(value) && baseGetTag(value) == argsTag$2;
|
|
4794
4508
|
}
|
|
4795
4509
|
|
|
4796
|
-
var _baseIsArguments = baseIsArguments$1;
|
|
4797
|
-
|
|
4798
|
-
var baseIsArguments = _baseIsArguments,
|
|
4799
|
-
isObjectLike$3 = isObjectLike_1;
|
|
4800
|
-
|
|
4801
4510
|
/** Used for built-in method references. */
|
|
4802
4511
|
var objectProto$5 = Object.prototype;
|
|
4803
4512
|
|
|
@@ -4825,14 +4534,12 @@ var propertyIsEnumerable = objectProto$5.propertyIsEnumerable;
|
|
|
4825
4534
|
* _.isArguments([1, 2, 3]);
|
|
4826
4535
|
* // => false
|
|
4827
4536
|
*/
|
|
4828
|
-
var isArguments
|
|
4829
|
-
return isObjectLike
|
|
4537
|
+
var isArguments = baseIsArguments(function() { return arguments; }()) ? baseIsArguments : function(value) {
|
|
4538
|
+
return isObjectLike(value) && hasOwnProperty$4.call(value, 'callee') &&
|
|
4830
4539
|
!propertyIsEnumerable.call(value, 'callee');
|
|
4831
4540
|
};
|
|
4832
4541
|
|
|
4833
|
-
var
|
|
4834
|
-
|
|
4835
|
-
var isBuffer$2 = {exports: {}};
|
|
4542
|
+
var isArguments$1 = isArguments;
|
|
4836
4543
|
|
|
4837
4544
|
/**
|
|
4838
4545
|
* This method returns `false`.
|
|
@@ -4847,28 +4554,21 @@ var isBuffer$2 = {exports: {}};
|
|
|
4847
4554
|
* _.times(2, _.stubFalse);
|
|
4848
4555
|
* // => [false, false]
|
|
4849
4556
|
*/
|
|
4850
|
-
|
|
4851
4557
|
function stubFalse() {
|
|
4852
4558
|
return false;
|
|
4853
4559
|
}
|
|
4854
4560
|
|
|
4855
|
-
var stubFalse_1 = stubFalse;
|
|
4856
|
-
|
|
4857
|
-
(function (module, exports) {
|
|
4858
|
-
var root = _root,
|
|
4859
|
-
stubFalse = stubFalse_1;
|
|
4860
|
-
|
|
4861
4561
|
/** Detect free variable `exports`. */
|
|
4862
|
-
var freeExports = exports && !exports.nodeType && exports;
|
|
4562
|
+
var freeExports$1 = typeof exports == 'object' && exports && !exports.nodeType && exports;
|
|
4863
4563
|
|
|
4864
4564
|
/** Detect free variable `module`. */
|
|
4865
|
-
var freeModule = freeExports &&
|
|
4565
|
+
var freeModule$1 = freeExports$1 && typeof module == 'object' && module && !module.nodeType && module;
|
|
4866
4566
|
|
|
4867
4567
|
/** Detect the popular CommonJS extension `module.exports`. */
|
|
4868
|
-
var moduleExports = freeModule && freeModule.exports === freeExports;
|
|
4568
|
+
var moduleExports$1 = freeModule$1 && freeModule$1.exports === freeExports$1;
|
|
4869
4569
|
|
|
4870
4570
|
/** Built-in value references. */
|
|
4871
|
-
var Buffer = moduleExports ? root.Buffer : undefined;
|
|
4571
|
+
var Buffer = moduleExports$1 ? root$1.Buffer : undefined;
|
|
4872
4572
|
|
|
4873
4573
|
/* Built-in method references for those with the same name as other `lodash` methods. */
|
|
4874
4574
|
var nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined;
|
|
@@ -4892,11 +4592,9 @@ var nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined;
|
|
|
4892
4592
|
*/
|
|
4893
4593
|
var isBuffer = nativeIsBuffer || stubFalse;
|
|
4894
4594
|
|
|
4895
|
-
|
|
4896
|
-
}(isBuffer$2, isBuffer$2.exports));
|
|
4595
|
+
var isBuffer$1 = isBuffer;
|
|
4897
4596
|
|
|
4898
4597
|
/** Used as references for various `Number` constants. */
|
|
4899
|
-
|
|
4900
4598
|
var MAX_SAFE_INTEGER$1 = 9007199254740991;
|
|
4901
4599
|
|
|
4902
4600
|
/** Used to detect unsigned integer values. */
|
|
@@ -4910,7 +4608,7 @@ var reIsUint = /^(?:0|[1-9]\d*)$/;
|
|
|
4910
4608
|
* @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.
|
|
4911
4609
|
* @returns {boolean} Returns `true` if `value` is a valid index, else `false`.
|
|
4912
4610
|
*/
|
|
4913
|
-
function isIndex
|
|
4611
|
+
function isIndex(value, length) {
|
|
4914
4612
|
var type = typeof value;
|
|
4915
4613
|
length = length == null ? MAX_SAFE_INTEGER$1 : length;
|
|
4916
4614
|
|
|
@@ -4920,10 +4618,7 @@ function isIndex$3(value, length) {
|
|
|
4920
4618
|
(value > -1 && value % 1 == 0 && value < length);
|
|
4921
4619
|
}
|
|
4922
4620
|
|
|
4923
|
-
var _isIndex = isIndex$3;
|
|
4924
|
-
|
|
4925
4621
|
/** Used as references for various `Number` constants. */
|
|
4926
|
-
|
|
4927
4622
|
var MAX_SAFE_INTEGER = 9007199254740991;
|
|
4928
4623
|
|
|
4929
4624
|
/**
|
|
@@ -4952,17 +4647,11 @@ var MAX_SAFE_INTEGER = 9007199254740991;
|
|
|
4952
4647
|
* _.isLength('3');
|
|
4953
4648
|
* // => false
|
|
4954
4649
|
*/
|
|
4955
|
-
function isLength
|
|
4650
|
+
function isLength(value) {
|
|
4956
4651
|
return typeof value == 'number' &&
|
|
4957
4652
|
value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
|
|
4958
4653
|
}
|
|
4959
4654
|
|
|
4960
|
-
var isLength_1 = isLength$3;
|
|
4961
|
-
|
|
4962
|
-
var baseGetTag$2 = _baseGetTag,
|
|
4963
|
-
isLength$2 = isLength_1,
|
|
4964
|
-
isObjectLike$2 = isObjectLike_1;
|
|
4965
|
-
|
|
4966
4655
|
/** `Object#toString` result references. */
|
|
4967
4656
|
var argsTag$1 = '[object Arguments]',
|
|
4968
4657
|
arrayTag$1 = '[object Array]',
|
|
@@ -5013,13 +4702,11 @@ typedArrayTags[weakMapTag$1] = false;
|
|
|
5013
4702
|
* @param {*} value The value to check.
|
|
5014
4703
|
* @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
|
|
5015
4704
|
*/
|
|
5016
|
-
function baseIsTypedArray
|
|
5017
|
-
return isObjectLike
|
|
5018
|
-
isLength
|
|
4705
|
+
function baseIsTypedArray(value) {
|
|
4706
|
+
return isObjectLike(value) &&
|
|
4707
|
+
isLength(value.length) && !!typedArrayTags[baseGetTag(value)];
|
|
5019
4708
|
}
|
|
5020
4709
|
|
|
5021
|
-
var _baseIsTypedArray = baseIsTypedArray$1;
|
|
5022
|
-
|
|
5023
4710
|
/**
|
|
5024
4711
|
* The base implementation of `_.unary` without support for storing metadata.
|
|
5025
4712
|
*
|
|
@@ -5027,31 +4714,23 @@ var _baseIsTypedArray = baseIsTypedArray$1;
|
|
|
5027
4714
|
* @param {Function} func The function to cap arguments for.
|
|
5028
4715
|
* @returns {Function} Returns the new capped function.
|
|
5029
4716
|
*/
|
|
5030
|
-
|
|
5031
|
-
function baseUnary$1(func) {
|
|
4717
|
+
function baseUnary(func) {
|
|
5032
4718
|
return function(value) {
|
|
5033
4719
|
return func(value);
|
|
5034
4720
|
};
|
|
5035
4721
|
}
|
|
5036
4722
|
|
|
5037
|
-
var _baseUnary = baseUnary$1;
|
|
5038
|
-
|
|
5039
|
-
var _nodeUtil = {exports: {}};
|
|
5040
|
-
|
|
5041
|
-
(function (module, exports) {
|
|
5042
|
-
var freeGlobal = _freeGlobal;
|
|
5043
|
-
|
|
5044
4723
|
/** Detect free variable `exports`. */
|
|
5045
|
-
var freeExports = exports && !exports.nodeType && exports;
|
|
4724
|
+
var freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports;
|
|
5046
4725
|
|
|
5047
4726
|
/** Detect free variable `module`. */
|
|
5048
|
-
var freeModule = freeExports &&
|
|
4727
|
+
var freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;
|
|
5049
4728
|
|
|
5050
4729
|
/** Detect the popular CommonJS extension `module.exports`. */
|
|
5051
4730
|
var moduleExports = freeModule && freeModule.exports === freeExports;
|
|
5052
4731
|
|
|
5053
4732
|
/** Detect free variable `process` from Node.js. */
|
|
5054
|
-
var freeProcess = moduleExports && freeGlobal.process;
|
|
4733
|
+
var freeProcess = moduleExports && freeGlobal$1.process;
|
|
5055
4734
|
|
|
5056
4735
|
/** Used to access faster Node.js helpers. */
|
|
5057
4736
|
var nodeUtil = (function() {
|
|
@@ -5068,15 +4747,10 @@ var nodeUtil = (function() {
|
|
|
5068
4747
|
} catch (e) {}
|
|
5069
4748
|
}());
|
|
5070
4749
|
|
|
5071
|
-
|
|
5072
|
-
}(_nodeUtil, _nodeUtil.exports));
|
|
5073
|
-
|
|
5074
|
-
var baseIsTypedArray = _baseIsTypedArray,
|
|
5075
|
-
baseUnary = _baseUnary,
|
|
5076
|
-
nodeUtil = _nodeUtil.exports;
|
|
4750
|
+
var nodeUtil$1 = nodeUtil;
|
|
5077
4751
|
|
|
5078
4752
|
/* Node.js helper references. */
|
|
5079
|
-
var nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;
|
|
4753
|
+
var nodeIsTypedArray = nodeUtil$1 && nodeUtil$1.isTypedArray;
|
|
5080
4754
|
|
|
5081
4755
|
/**
|
|
5082
4756
|
* Checks if `value` is classified as a typed array.
|
|
@@ -5095,16 +4769,9 @@ var nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;
|
|
|
5095
4769
|
* _.isTypedArray([]);
|
|
5096
4770
|
* // => false
|
|
5097
4771
|
*/
|
|
5098
|
-
var isTypedArray
|
|
5099
|
-
|
|
5100
|
-
var isTypedArray_1 = isTypedArray$2;
|
|
4772
|
+
var isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;
|
|
5101
4773
|
|
|
5102
|
-
var
|
|
5103
|
-
isArguments$1 = isArguments_1,
|
|
5104
|
-
isArray$a = isArray_1,
|
|
5105
|
-
isBuffer$1 = isBuffer$2.exports,
|
|
5106
|
-
isIndex$2 = _isIndex,
|
|
5107
|
-
isTypedArray$1 = isTypedArray_1;
|
|
4774
|
+
var isTypedArray$1 = isTypedArray;
|
|
5108
4775
|
|
|
5109
4776
|
/** Used for built-in method references. */
|
|
5110
4777
|
var objectProto$4 = Object.prototype;
|
|
@@ -5120,8 +4787,8 @@ var hasOwnProperty$3 = objectProto$4.hasOwnProperty;
|
|
|
5120
4787
|
* @param {boolean} inherited Specify returning inherited property names.
|
|
5121
4788
|
* @returns {Array} Returns the array of property names.
|
|
5122
4789
|
*/
|
|
5123
|
-
function arrayLikeKeys
|
|
5124
|
-
var isArr = isArray$
|
|
4790
|
+
function arrayLikeKeys(value, inherited) {
|
|
4791
|
+
var isArr = isArray$1(value),
|
|
5125
4792
|
isArg = !isArr && isArguments$1(value),
|
|
5126
4793
|
isBuff = !isArr && !isArg && isBuffer$1(value),
|
|
5127
4794
|
isType = !isArr && !isArg && !isBuff && isTypedArray$1(value),
|
|
@@ -5139,7 +4806,7 @@ function arrayLikeKeys$1(value, inherited) {
|
|
|
5139
4806
|
// PhantomJS 2 has enumerable non-index properties on typed arrays.
|
|
5140
4807
|
(isType && (key == 'buffer' || key == 'byteLength' || key == 'byteOffset')) ||
|
|
5141
4808
|
// Skip index properties.
|
|
5142
|
-
isIndex
|
|
4809
|
+
isIndex(key, length)
|
|
5143
4810
|
))) {
|
|
5144
4811
|
result.push(key);
|
|
5145
4812
|
}
|
|
@@ -5147,10 +4814,7 @@ function arrayLikeKeys$1(value, inherited) {
|
|
|
5147
4814
|
return result;
|
|
5148
4815
|
}
|
|
5149
4816
|
|
|
5150
|
-
var _arrayLikeKeys = arrayLikeKeys$1;
|
|
5151
|
-
|
|
5152
4817
|
/** Used for built-in method references. */
|
|
5153
|
-
|
|
5154
4818
|
var objectProto$3 = Object.prototype;
|
|
5155
4819
|
|
|
5156
4820
|
/**
|
|
@@ -5160,15 +4824,13 @@ var objectProto$3 = Object.prototype;
|
|
|
5160
4824
|
* @param {*} value The value to check.
|
|
5161
4825
|
* @returns {boolean} Returns `true` if `value` is a prototype, else `false`.
|
|
5162
4826
|
*/
|
|
5163
|
-
function isPrototype
|
|
4827
|
+
function isPrototype(value) {
|
|
5164
4828
|
var Ctor = value && value.constructor,
|
|
5165
4829
|
proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto$3;
|
|
5166
4830
|
|
|
5167
4831
|
return value === proto;
|
|
5168
4832
|
}
|
|
5169
4833
|
|
|
5170
|
-
var _isPrototype = isPrototype$1;
|
|
5171
|
-
|
|
5172
4834
|
/**
|
|
5173
4835
|
* Creates a unary function that invokes `func` with its argument transformed.
|
|
5174
4836
|
*
|
|
@@ -5177,24 +4839,16 @@ var _isPrototype = isPrototype$1;
|
|
|
5177
4839
|
* @param {Function} transform The argument transform.
|
|
5178
4840
|
* @returns {Function} Returns the new function.
|
|
5179
4841
|
*/
|
|
5180
|
-
|
|
5181
|
-
function overArg$1(func, transform) {
|
|
4842
|
+
function overArg(func, transform) {
|
|
5182
4843
|
return function(arg) {
|
|
5183
4844
|
return func(transform(arg));
|
|
5184
4845
|
};
|
|
5185
4846
|
}
|
|
5186
4847
|
|
|
5187
|
-
var _overArg = overArg$1;
|
|
5188
|
-
|
|
5189
|
-
var overArg = _overArg;
|
|
5190
|
-
|
|
5191
4848
|
/* Built-in method references for those with the same name as other `lodash` methods. */
|
|
5192
|
-
var nativeKeys
|
|
5193
|
-
|
|
5194
|
-
var _nativeKeys = nativeKeys$1;
|
|
4849
|
+
var nativeKeys = overArg(Object.keys, Object);
|
|
5195
4850
|
|
|
5196
|
-
var
|
|
5197
|
-
nativeKeys = _nativeKeys;
|
|
4851
|
+
var nativeKeys$1 = nativeKeys;
|
|
5198
4852
|
|
|
5199
4853
|
/** Used for built-in method references. */
|
|
5200
4854
|
var objectProto$2 = Object.prototype;
|
|
@@ -5209,9 +4863,9 @@ var hasOwnProperty$2 = objectProto$2.hasOwnProperty;
|
|
|
5209
4863
|
* @param {Object} object The object to query.
|
|
5210
4864
|
* @returns {Array} Returns the array of property names.
|
|
5211
4865
|
*/
|
|
5212
|
-
function baseKeys
|
|
4866
|
+
function baseKeys(object) {
|
|
5213
4867
|
if (!isPrototype(object)) {
|
|
5214
|
-
return nativeKeys(object);
|
|
4868
|
+
return nativeKeys$1(object);
|
|
5215
4869
|
}
|
|
5216
4870
|
var result = [];
|
|
5217
4871
|
for (var key in Object(object)) {
|
|
@@ -5222,11 +4876,6 @@ function baseKeys$2(object) {
|
|
|
5222
4876
|
return result;
|
|
5223
4877
|
}
|
|
5224
4878
|
|
|
5225
|
-
var _baseKeys = baseKeys$2;
|
|
5226
|
-
|
|
5227
|
-
var isFunction = isFunction_1,
|
|
5228
|
-
isLength$1 = isLength_1;
|
|
5229
|
-
|
|
5230
4879
|
/**
|
|
5231
4880
|
* Checks if `value` is array-like. A value is considered array-like if it's
|
|
5232
4881
|
* not a function and has a `value.length` that's an integer greater than or
|
|
@@ -5252,16 +4901,10 @@ var isFunction = isFunction_1,
|
|
|
5252
4901
|
* _.isArrayLike(_.noop);
|
|
5253
4902
|
* // => false
|
|
5254
4903
|
*/
|
|
5255
|
-
function isArrayLike
|
|
5256
|
-
return value != null && isLength
|
|
4904
|
+
function isArrayLike(value) {
|
|
4905
|
+
return value != null && isLength(value.length) && !isFunction(value);
|
|
5257
4906
|
}
|
|
5258
4907
|
|
|
5259
|
-
var isArrayLike_1 = isArrayLike$4;
|
|
5260
|
-
|
|
5261
|
-
var arrayLikeKeys = _arrayLikeKeys,
|
|
5262
|
-
baseKeys$1 = _baseKeys,
|
|
5263
|
-
isArrayLike$3 = isArrayLike_1;
|
|
5264
|
-
|
|
5265
4908
|
/**
|
|
5266
4909
|
* Creates an array of the own enumerable property names of `object`.
|
|
5267
4910
|
*
|
|
@@ -5290,16 +4933,10 @@ var arrayLikeKeys = _arrayLikeKeys,
|
|
|
5290
4933
|
* _.keys('hi');
|
|
5291
4934
|
* // => ['0', '1']
|
|
5292
4935
|
*/
|
|
5293
|
-
function keys
|
|
5294
|
-
return isArrayLike
|
|
4936
|
+
function keys(object) {
|
|
4937
|
+
return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object);
|
|
5295
4938
|
}
|
|
5296
4939
|
|
|
5297
|
-
var keys_1 = keys$3;
|
|
5298
|
-
|
|
5299
|
-
var baseGetAllKeys = _baseGetAllKeys,
|
|
5300
|
-
getSymbols = _getSymbols,
|
|
5301
|
-
keys$2 = keys_1;
|
|
5302
|
-
|
|
5303
4940
|
/**
|
|
5304
4941
|
* Creates an array of own enumerable property names and symbols of `object`.
|
|
5305
4942
|
*
|
|
@@ -5307,14 +4944,10 @@ var baseGetAllKeys = _baseGetAllKeys,
|
|
|
5307
4944
|
* @param {Object} object The object to query.
|
|
5308
4945
|
* @returns {Array} Returns the array of property names and symbols.
|
|
5309
4946
|
*/
|
|
5310
|
-
function getAllKeys
|
|
5311
|
-
return baseGetAllKeys(object, keys
|
|
4947
|
+
function getAllKeys(object) {
|
|
4948
|
+
return baseGetAllKeys(object, keys, getSymbols$1);
|
|
5312
4949
|
}
|
|
5313
4950
|
|
|
5314
|
-
var _getAllKeys = getAllKeys$1;
|
|
5315
|
-
|
|
5316
|
-
var getAllKeys = _getAllKeys;
|
|
5317
|
-
|
|
5318
4951
|
/** Used to compose bitmasks for value comparisons. */
|
|
5319
4952
|
var COMPARE_PARTIAL_FLAG$3 = 1;
|
|
5320
4953
|
|
|
@@ -5337,7 +4970,7 @@ var hasOwnProperty$1 = objectProto$1.hasOwnProperty;
|
|
|
5337
4970
|
* @param {Object} stack Tracks traversed `object` and `other` objects.
|
|
5338
4971
|
* @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
|
|
5339
4972
|
*/
|
|
5340
|
-
function equalObjects
|
|
4973
|
+
function equalObjects(object, other, bitmask, customizer, equalFunc, stack) {
|
|
5341
4974
|
var isPartial = bitmask & COMPARE_PARTIAL_FLAG$3,
|
|
5342
4975
|
objProps = getAllKeys(object),
|
|
5343
4976
|
objLength = objProps.length,
|
|
@@ -5402,47 +5035,25 @@ function equalObjects$1(object, other, bitmask, customizer, equalFunc, stack) {
|
|
|
5402
5035
|
return result;
|
|
5403
5036
|
}
|
|
5404
5037
|
|
|
5405
|
-
var _equalObjects = equalObjects$1;
|
|
5406
|
-
|
|
5407
|
-
var getNative$4 = _getNative,
|
|
5408
|
-
root$3 = _root;
|
|
5409
|
-
|
|
5410
5038
|
/* Built-in method references that are verified to be native. */
|
|
5411
|
-
var DataView
|
|
5412
|
-
|
|
5413
|
-
var _DataView = DataView$1;
|
|
5039
|
+
var DataView = getNative(root$1, 'DataView');
|
|
5414
5040
|
|
|
5415
|
-
var
|
|
5416
|
-
root$2 = _root;
|
|
5041
|
+
var DataView$1 = DataView;
|
|
5417
5042
|
|
|
5418
5043
|
/* Built-in method references that are verified to be native. */
|
|
5419
|
-
var Promise$
|
|
5044
|
+
var Promise$1 = getNative(root$1, 'Promise');
|
|
5420
5045
|
|
|
5421
|
-
var
|
|
5422
|
-
|
|
5423
|
-
var getNative$2 = _getNative,
|
|
5424
|
-
root$1 = _root;
|
|
5046
|
+
var Promise$2 = Promise$1;
|
|
5425
5047
|
|
|
5426
5048
|
/* Built-in method references that are verified to be native. */
|
|
5427
|
-
var Set$
|
|
5428
|
-
|
|
5429
|
-
var _Set = Set$2;
|
|
5049
|
+
var Set$1 = getNative(root$1, 'Set');
|
|
5430
5050
|
|
|
5431
|
-
var
|
|
5432
|
-
root = _root;
|
|
5051
|
+
var Set$2 = Set$1;
|
|
5433
5052
|
|
|
5434
5053
|
/* Built-in method references that are verified to be native. */
|
|
5435
|
-
var WeakMap$
|
|
5436
|
-
|
|
5437
|
-
var _WeakMap = WeakMap$2;
|
|
5054
|
+
var WeakMap$1 = getNative(root$1, 'WeakMap');
|
|
5438
5055
|
|
|
5439
|
-
var
|
|
5440
|
-
Map$1 = _Map,
|
|
5441
|
-
Promise$1 = _Promise,
|
|
5442
|
-
Set$1 = _Set,
|
|
5443
|
-
WeakMap$1 = _WeakMap,
|
|
5444
|
-
baseGetTag$1 = _baseGetTag,
|
|
5445
|
-
toSource = _toSource;
|
|
5056
|
+
var WeakMap$2 = WeakMap$1;
|
|
5446
5057
|
|
|
5447
5058
|
/** `Object#toString` result references. */
|
|
5448
5059
|
var mapTag$1 = '[object Map]',
|
|
@@ -5454,11 +5065,11 @@ var mapTag$1 = '[object Map]',
|
|
|
5454
5065
|
var dataViewTag = '[object DataView]';
|
|
5455
5066
|
|
|
5456
5067
|
/** Used to detect maps, sets, and weakmaps. */
|
|
5457
|
-
var dataViewCtorString = toSource(DataView),
|
|
5458
|
-
mapCtorString = toSource(Map$
|
|
5459
|
-
promiseCtorString = toSource(Promise$
|
|
5460
|
-
setCtorString = toSource(Set$
|
|
5461
|
-
weakMapCtorString = toSource(WeakMap$
|
|
5068
|
+
var dataViewCtorString = toSource(DataView$1),
|
|
5069
|
+
mapCtorString = toSource(Map$2),
|
|
5070
|
+
promiseCtorString = toSource(Promise$2),
|
|
5071
|
+
setCtorString = toSource(Set$2),
|
|
5072
|
+
weakMapCtorString = toSource(WeakMap$2);
|
|
5462
5073
|
|
|
5463
5074
|
/**
|
|
5464
5075
|
* Gets the `toStringTag` of `value`.
|
|
@@ -5467,16 +5078,16 @@ var dataViewCtorString = toSource(DataView),
|
|
|
5467
5078
|
* @param {*} value The value to query.
|
|
5468
5079
|
* @returns {string} Returns the `toStringTag`.
|
|
5469
5080
|
*/
|
|
5470
|
-
var getTag
|
|
5081
|
+
var getTag = baseGetTag;
|
|
5471
5082
|
|
|
5472
5083
|
// Fallback for data views, maps, sets, and weak maps in IE 11 and promises in Node.js < 6.
|
|
5473
|
-
if ((DataView && getTag
|
|
5474
|
-
(Map$
|
|
5475
|
-
(Promise$
|
|
5476
|
-
(Set$
|
|
5477
|
-
(WeakMap$
|
|
5478
|
-
getTag
|
|
5479
|
-
var result = baseGetTag
|
|
5084
|
+
if ((DataView$1 && getTag(new DataView$1(new ArrayBuffer(1))) != dataViewTag) ||
|
|
5085
|
+
(Map$2 && getTag(new Map$2) != mapTag$1) ||
|
|
5086
|
+
(Promise$2 && getTag(Promise$2.resolve()) != promiseTag) ||
|
|
5087
|
+
(Set$2 && getTag(new Set$2) != setTag$1) ||
|
|
5088
|
+
(WeakMap$2 && getTag(new WeakMap$2) != weakMapTag)) {
|
|
5089
|
+
getTag = function(value) {
|
|
5090
|
+
var result = baseGetTag(value),
|
|
5480
5091
|
Ctor = result == objectTag$1 ? value.constructor : undefined,
|
|
5481
5092
|
ctorString = Ctor ? toSource(Ctor) : '';
|
|
5482
5093
|
|
|
@@ -5493,16 +5104,7 @@ if ((DataView && getTag$2(new DataView(new ArrayBuffer(1))) != dataViewTag) ||
|
|
|
5493
5104
|
};
|
|
5494
5105
|
}
|
|
5495
5106
|
|
|
5496
|
-
var
|
|
5497
|
-
|
|
5498
|
-
var Stack$1 = _Stack,
|
|
5499
|
-
equalArrays = _equalArrays,
|
|
5500
|
-
equalByTag = _equalByTag,
|
|
5501
|
-
equalObjects = _equalObjects,
|
|
5502
|
-
getTag$1 = _getTag,
|
|
5503
|
-
isArray$9 = isArray_1,
|
|
5504
|
-
isBuffer = isBuffer$2.exports,
|
|
5505
|
-
isTypedArray = isTypedArray_1;
|
|
5107
|
+
var getTag$1 = getTag;
|
|
5506
5108
|
|
|
5507
5109
|
/** Used to compose bitmasks for value comparisons. */
|
|
5508
5110
|
var COMPARE_PARTIAL_FLAG$2 = 1;
|
|
@@ -5532,9 +5134,9 @@ var hasOwnProperty = objectProto.hasOwnProperty;
|
|
|
5532
5134
|
* @param {Object} [stack] Tracks traversed `object` and `other` objects.
|
|
5533
5135
|
* @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
|
|
5534
5136
|
*/
|
|
5535
|
-
function baseIsEqualDeep
|
|
5536
|
-
var objIsArr = isArray$
|
|
5537
|
-
othIsArr = isArray$
|
|
5137
|
+
function baseIsEqualDeep(object, other, bitmask, customizer, equalFunc, stack) {
|
|
5138
|
+
var objIsArr = isArray$1(object),
|
|
5139
|
+
othIsArr = isArray$1(other),
|
|
5538
5140
|
objTag = objIsArr ? arrayTag : getTag$1(object),
|
|
5539
5141
|
othTag = othIsArr ? arrayTag : getTag$1(other);
|
|
5540
5142
|
|
|
@@ -5545,16 +5147,16 @@ function baseIsEqualDeep$1(object, other, bitmask, customizer, equalFunc, stack)
|
|
|
5545
5147
|
othIsObj = othTag == objectTag,
|
|
5546
5148
|
isSameTag = objTag == othTag;
|
|
5547
5149
|
|
|
5548
|
-
if (isSameTag && isBuffer(object)) {
|
|
5549
|
-
if (!isBuffer(other)) {
|
|
5150
|
+
if (isSameTag && isBuffer$1(object)) {
|
|
5151
|
+
if (!isBuffer$1(other)) {
|
|
5550
5152
|
return false;
|
|
5551
5153
|
}
|
|
5552
5154
|
objIsArr = true;
|
|
5553
5155
|
objIsObj = false;
|
|
5554
5156
|
}
|
|
5555
5157
|
if (isSameTag && !objIsObj) {
|
|
5556
|
-
stack || (stack = new Stack
|
|
5557
|
-
return (objIsArr || isTypedArray(object))
|
|
5158
|
+
stack || (stack = new Stack);
|
|
5159
|
+
return (objIsArr || isTypedArray$1(object))
|
|
5558
5160
|
? equalArrays(object, other, bitmask, customizer, equalFunc, stack)
|
|
5559
5161
|
: equalByTag(object, other, objTag, bitmask, customizer, equalFunc, stack);
|
|
5560
5162
|
}
|
|
@@ -5566,22 +5168,17 @@ function baseIsEqualDeep$1(object, other, bitmask, customizer, equalFunc, stack)
|
|
|
5566
5168
|
var objUnwrapped = objIsWrapped ? object.value() : object,
|
|
5567
5169
|
othUnwrapped = othIsWrapped ? other.value() : other;
|
|
5568
5170
|
|
|
5569
|
-
stack || (stack = new Stack
|
|
5171
|
+
stack || (stack = new Stack);
|
|
5570
5172
|
return equalFunc(objUnwrapped, othUnwrapped, bitmask, customizer, stack);
|
|
5571
5173
|
}
|
|
5572
5174
|
}
|
|
5573
5175
|
if (!isSameTag) {
|
|
5574
5176
|
return false;
|
|
5575
5177
|
}
|
|
5576
|
-
stack || (stack = new Stack
|
|
5178
|
+
stack || (stack = new Stack);
|
|
5577
5179
|
return equalObjects(object, other, bitmask, customizer, equalFunc, stack);
|
|
5578
5180
|
}
|
|
5579
5181
|
|
|
5580
|
-
var _baseIsEqualDeep = baseIsEqualDeep$1;
|
|
5581
|
-
|
|
5582
|
-
var baseIsEqualDeep = _baseIsEqualDeep,
|
|
5583
|
-
isObjectLike$1 = isObjectLike_1;
|
|
5584
|
-
|
|
5585
5182
|
/**
|
|
5586
5183
|
* The base implementation of `_.isEqual` which supports partial comparisons
|
|
5587
5184
|
* and tracks traversed objects.
|
|
@@ -5596,21 +5193,16 @@ var baseIsEqualDeep = _baseIsEqualDeep,
|
|
|
5596
5193
|
* @param {Object} [stack] Tracks traversed `value` and `other` objects.
|
|
5597
5194
|
* @returns {boolean} Returns `true` if the values are equivalent, else `false`.
|
|
5598
5195
|
*/
|
|
5599
|
-
function baseIsEqual
|
|
5196
|
+
function baseIsEqual(value, other, bitmask, customizer, stack) {
|
|
5600
5197
|
if (value === other) {
|
|
5601
5198
|
return true;
|
|
5602
5199
|
}
|
|
5603
|
-
if (value == null || other == null || (!isObjectLike
|
|
5200
|
+
if (value == null || other == null || (!isObjectLike(value) && !isObjectLike(other))) {
|
|
5604
5201
|
return value !== value && other !== other;
|
|
5605
5202
|
}
|
|
5606
|
-
return baseIsEqualDeep(value, other, bitmask, customizer, baseIsEqual
|
|
5203
|
+
return baseIsEqualDeep(value, other, bitmask, customizer, baseIsEqual, stack);
|
|
5607
5204
|
}
|
|
5608
5205
|
|
|
5609
|
-
var _baseIsEqual = baseIsEqual$2;
|
|
5610
|
-
|
|
5611
|
-
var Stack = _Stack,
|
|
5612
|
-
baseIsEqual$1 = _baseIsEqual;
|
|
5613
|
-
|
|
5614
5206
|
/** Used to compose bitmasks for value comparisons. */
|
|
5615
5207
|
var COMPARE_PARTIAL_FLAG$1 = 1,
|
|
5616
5208
|
COMPARE_UNORDERED_FLAG$1 = 2;
|
|
@@ -5625,7 +5217,7 @@ var COMPARE_PARTIAL_FLAG$1 = 1,
|
|
|
5625
5217
|
* @param {Function} [customizer] The function to customize comparisons.
|
|
5626
5218
|
* @returns {boolean} Returns `true` if `object` is a match, else `false`.
|
|
5627
5219
|
*/
|
|
5628
|
-
function baseIsMatch
|
|
5220
|
+
function baseIsMatch(object, source, matchData, customizer) {
|
|
5629
5221
|
var index = matchData.length,
|
|
5630
5222
|
length = index,
|
|
5631
5223
|
noCustomizer = !customizer;
|
|
@@ -5659,7 +5251,7 @@ function baseIsMatch$1(object, source, matchData, customizer) {
|
|
|
5659
5251
|
var result = customizer(objValue, srcValue, key, object, source, stack);
|
|
5660
5252
|
}
|
|
5661
5253
|
if (!(result === undefined
|
|
5662
|
-
? baseIsEqual
|
|
5254
|
+
? baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG$1 | COMPARE_UNORDERED_FLAG$1, customizer, stack)
|
|
5663
5255
|
: result
|
|
5664
5256
|
)) {
|
|
5665
5257
|
return false;
|
|
@@ -5669,10 +5261,6 @@ function baseIsMatch$1(object, source, matchData, customizer) {
|
|
|
5669
5261
|
return true;
|
|
5670
5262
|
}
|
|
5671
5263
|
|
|
5672
|
-
var _baseIsMatch = baseIsMatch$1;
|
|
5673
|
-
|
|
5674
|
-
var isObject$2 = isObject_1;
|
|
5675
|
-
|
|
5676
5264
|
/**
|
|
5677
5265
|
* Checks if `value` is suitable for strict equality comparisons, i.e. `===`.
|
|
5678
5266
|
*
|
|
@@ -5681,15 +5269,10 @@ var isObject$2 = isObject_1;
|
|
|
5681
5269
|
* @returns {boolean} Returns `true` if `value` if suitable for strict
|
|
5682
5270
|
* equality comparisons, else `false`.
|
|
5683
5271
|
*/
|
|
5684
|
-
function isStrictComparable
|
|
5685
|
-
return value === value && !isObject
|
|
5272
|
+
function isStrictComparable(value) {
|
|
5273
|
+
return value === value && !isObject(value);
|
|
5686
5274
|
}
|
|
5687
5275
|
|
|
5688
|
-
var _isStrictComparable = isStrictComparable$2;
|
|
5689
|
-
|
|
5690
|
-
var isStrictComparable$1 = _isStrictComparable,
|
|
5691
|
-
keys$1 = keys_1;
|
|
5692
|
-
|
|
5693
5276
|
/**
|
|
5694
5277
|
* Gets the property names, values, and compare flags of `object`.
|
|
5695
5278
|
*
|
|
@@ -5697,21 +5280,19 @@ var isStrictComparable$1 = _isStrictComparable,
|
|
|
5697
5280
|
* @param {Object} object The object to query.
|
|
5698
5281
|
* @returns {Array} Returns the match data of `object`.
|
|
5699
5282
|
*/
|
|
5700
|
-
function getMatchData
|
|
5701
|
-
var result = keys
|
|
5283
|
+
function getMatchData(object) {
|
|
5284
|
+
var result = keys(object),
|
|
5702
5285
|
length = result.length;
|
|
5703
5286
|
|
|
5704
5287
|
while (length--) {
|
|
5705
5288
|
var key = result[length],
|
|
5706
5289
|
value = object[key];
|
|
5707
5290
|
|
|
5708
|
-
result[length] = [key, value, isStrictComparable
|
|
5291
|
+
result[length] = [key, value, isStrictComparable(value)];
|
|
5709
5292
|
}
|
|
5710
5293
|
return result;
|
|
5711
5294
|
}
|
|
5712
5295
|
|
|
5713
|
-
var _getMatchData = getMatchData$1;
|
|
5714
|
-
|
|
5715
5296
|
/**
|
|
5716
5297
|
* A specialized version of `matchesProperty` for source values suitable
|
|
5717
5298
|
* for strict equality comparisons, i.e. `===`.
|
|
@@ -5721,8 +5302,7 @@ var _getMatchData = getMatchData$1;
|
|
|
5721
5302
|
* @param {*} srcValue The value to match.
|
|
5722
5303
|
* @returns {Function} Returns the new spec function.
|
|
5723
5304
|
*/
|
|
5724
|
-
|
|
5725
|
-
function matchesStrictComparable$2(key, srcValue) {
|
|
5305
|
+
function matchesStrictComparable(key, srcValue) {
|
|
5726
5306
|
return function(object) {
|
|
5727
5307
|
if (object == null) {
|
|
5728
5308
|
return false;
|
|
@@ -5732,12 +5312,6 @@ function matchesStrictComparable$2(key, srcValue) {
|
|
|
5732
5312
|
};
|
|
5733
5313
|
}
|
|
5734
5314
|
|
|
5735
|
-
var _matchesStrictComparable = matchesStrictComparable$2;
|
|
5736
|
-
|
|
5737
|
-
var baseIsMatch = _baseIsMatch,
|
|
5738
|
-
getMatchData = _getMatchData,
|
|
5739
|
-
matchesStrictComparable$1 = _matchesStrictComparable;
|
|
5740
|
-
|
|
5741
5315
|
/**
|
|
5742
5316
|
* The base implementation of `_.matches` which doesn't clone `source`.
|
|
5743
5317
|
*
|
|
@@ -5745,21 +5319,16 @@ var baseIsMatch = _baseIsMatch,
|
|
|
5745
5319
|
* @param {Object} source The object of property values to match.
|
|
5746
5320
|
* @returns {Function} Returns the new spec function.
|
|
5747
5321
|
*/
|
|
5748
|
-
function baseMatches
|
|
5322
|
+
function baseMatches(source) {
|
|
5749
5323
|
var matchData = getMatchData(source);
|
|
5750
5324
|
if (matchData.length == 1 && matchData[0][2]) {
|
|
5751
|
-
return matchesStrictComparable
|
|
5325
|
+
return matchesStrictComparable(matchData[0][0], matchData[0][1]);
|
|
5752
5326
|
}
|
|
5753
5327
|
return function(object) {
|
|
5754
5328
|
return object === source || baseIsMatch(object, source, matchData);
|
|
5755
5329
|
};
|
|
5756
5330
|
}
|
|
5757
5331
|
|
|
5758
|
-
var _baseMatches = baseMatches$1;
|
|
5759
|
-
|
|
5760
|
-
var isArray$8 = isArray_1,
|
|
5761
|
-
isSymbol$4 = isSymbol_1;
|
|
5762
|
-
|
|
5763
5332
|
/** Used to match property names within property paths. */
|
|
5764
5333
|
var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,
|
|
5765
5334
|
reIsPlainProp = /^\w*$/;
|
|
@@ -5772,23 +5341,19 @@ var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,
|
|
|
5772
5341
|
* @param {Object} [object] The object to query keys on.
|
|
5773
5342
|
* @returns {boolean} Returns `true` if `value` is a property name, else `false`.
|
|
5774
5343
|
*/
|
|
5775
|
-
function isKey
|
|
5776
|
-
if (isArray$
|
|
5344
|
+
function isKey(value, object) {
|
|
5345
|
+
if (isArray$1(value)) {
|
|
5777
5346
|
return false;
|
|
5778
5347
|
}
|
|
5779
5348
|
var type = typeof value;
|
|
5780
5349
|
if (type == 'number' || type == 'symbol' || type == 'boolean' ||
|
|
5781
|
-
value == null || isSymbol
|
|
5350
|
+
value == null || isSymbol(value)) {
|
|
5782
5351
|
return true;
|
|
5783
5352
|
}
|
|
5784
5353
|
return reIsPlainProp.test(value) || !reIsDeepProp.test(value) ||
|
|
5785
5354
|
(object != null && value in Object(object));
|
|
5786
5355
|
}
|
|
5787
5356
|
|
|
5788
|
-
var _isKey = isKey$3;
|
|
5789
|
-
|
|
5790
|
-
var MapCache = _MapCache;
|
|
5791
|
-
|
|
5792
5357
|
/** Error message constants. */
|
|
5793
5358
|
var FUNC_ERROR_TEXT$1 = 'Expected a function';
|
|
5794
5359
|
|
|
@@ -5836,7 +5401,7 @@ var FUNC_ERROR_TEXT$1 = 'Expected a function';
|
|
|
5836
5401
|
* // Replace `_.memoize.Cache`.
|
|
5837
5402
|
* _.memoize.Cache = WeakMap;
|
|
5838
5403
|
*/
|
|
5839
|
-
function memoize
|
|
5404
|
+
function memoize(func, resolver) {
|
|
5840
5405
|
if (typeof func != 'function' || (resolver != null && typeof resolver != 'function')) {
|
|
5841
5406
|
throw new TypeError(FUNC_ERROR_TEXT$1);
|
|
5842
5407
|
}
|
|
@@ -5852,16 +5417,12 @@ function memoize$1(func, resolver) {
|
|
|
5852
5417
|
memoized.cache = cache.set(key, result) || cache;
|
|
5853
5418
|
return result;
|
|
5854
5419
|
};
|
|
5855
|
-
memoized.cache = new (memoize
|
|
5420
|
+
memoized.cache = new (memoize.Cache || MapCache);
|
|
5856
5421
|
return memoized;
|
|
5857
5422
|
}
|
|
5858
5423
|
|
|
5859
5424
|
// Expose `MapCache`.
|
|
5860
|
-
memoize
|
|
5861
|
-
|
|
5862
|
-
var memoize_1 = memoize$1;
|
|
5863
|
-
|
|
5864
|
-
var memoize = memoize_1;
|
|
5425
|
+
memoize.Cache = MapCache;
|
|
5865
5426
|
|
|
5866
5427
|
/** Used as the maximum memoize cache size. */
|
|
5867
5428
|
var MAX_MEMOIZE_SIZE = 500;
|
|
@@ -5874,7 +5435,7 @@ var MAX_MEMOIZE_SIZE = 500;
|
|
|
5874
5435
|
* @param {Function} func The function to have its output memoized.
|
|
5875
5436
|
* @returns {Function} Returns the new memoized function.
|
|
5876
5437
|
*/
|
|
5877
|
-
function memoizeCapped
|
|
5438
|
+
function memoizeCapped(func) {
|
|
5878
5439
|
var result = memoize(func, function(key) {
|
|
5879
5440
|
if (cache.size === MAX_MEMOIZE_SIZE) {
|
|
5880
5441
|
cache.clear();
|
|
@@ -5886,10 +5447,6 @@ function memoizeCapped$1(func) {
|
|
|
5886
5447
|
return result;
|
|
5887
5448
|
}
|
|
5888
5449
|
|
|
5889
|
-
var _memoizeCapped = memoizeCapped$1;
|
|
5890
|
-
|
|
5891
|
-
var memoizeCapped = _memoizeCapped;
|
|
5892
|
-
|
|
5893
5450
|
/** Used to match property names within property paths. */
|
|
5894
5451
|
var rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;
|
|
5895
5452
|
|
|
@@ -5903,7 +5460,7 @@ var reEscapeChar = /\\(\\)?/g;
|
|
|
5903
5460
|
* @param {string} string The string to convert.
|
|
5904
5461
|
* @returns {Array} Returns the property path array.
|
|
5905
5462
|
*/
|
|
5906
|
-
var stringToPath
|
|
5463
|
+
var stringToPath = memoizeCapped(function(string) {
|
|
5907
5464
|
var result = [];
|
|
5908
5465
|
if (string.charCodeAt(0) === 46 /* . */) {
|
|
5909
5466
|
result.push('');
|
|
@@ -5914,7 +5471,7 @@ var stringToPath$1 = memoizeCapped(function(string) {
|
|
|
5914
5471
|
return result;
|
|
5915
5472
|
});
|
|
5916
5473
|
|
|
5917
|
-
var
|
|
5474
|
+
var stringToPath$1 = stringToPath;
|
|
5918
5475
|
|
|
5919
5476
|
/**
|
|
5920
5477
|
* A specialized version of `_.map` for arrays without support for iteratee
|
|
@@ -5925,8 +5482,7 @@ var _stringToPath = stringToPath$1;
|
|
|
5925
5482
|
* @param {Function} iteratee The function invoked per iteration.
|
|
5926
5483
|
* @returns {Array} Returns the new mapped array.
|
|
5927
5484
|
*/
|
|
5928
|
-
|
|
5929
|
-
function arrayMap$1(array, iteratee) {
|
|
5485
|
+
function arrayMap(array, iteratee) {
|
|
5930
5486
|
var index = -1,
|
|
5931
5487
|
length = array == null ? 0 : array.length,
|
|
5932
5488
|
result = Array(length);
|
|
@@ -5937,18 +5493,11 @@ function arrayMap$1(array, iteratee) {
|
|
|
5937
5493
|
return result;
|
|
5938
5494
|
}
|
|
5939
5495
|
|
|
5940
|
-
var _arrayMap = arrayMap$1;
|
|
5941
|
-
|
|
5942
|
-
var Symbol = _Symbol,
|
|
5943
|
-
arrayMap = _arrayMap,
|
|
5944
|
-
isArray$7 = isArray_1,
|
|
5945
|
-
isSymbol$3 = isSymbol_1;
|
|
5946
|
-
|
|
5947
5496
|
/** Used as references for various `Number` constants. */
|
|
5948
5497
|
var INFINITY$2 = 1 / 0;
|
|
5949
5498
|
|
|
5950
5499
|
/** Used to convert symbols to primitives and strings. */
|
|
5951
|
-
var symbolProto = Symbol ? Symbol.prototype : undefined,
|
|
5500
|
+
var symbolProto = Symbol$1 ? Symbol$1.prototype : undefined,
|
|
5952
5501
|
symbolToString = symbolProto ? symbolProto.toString : undefined;
|
|
5953
5502
|
|
|
5954
5503
|
/**
|
|
@@ -5959,26 +5508,22 @@ var symbolProto = Symbol ? Symbol.prototype : undefined,
|
|
|
5959
5508
|
* @param {*} value The value to process.
|
|
5960
5509
|
* @returns {string} Returns the string.
|
|
5961
5510
|
*/
|
|
5962
|
-
function baseToString
|
|
5511
|
+
function baseToString(value) {
|
|
5963
5512
|
// Exit early for strings to avoid a performance hit in some environments.
|
|
5964
5513
|
if (typeof value == 'string') {
|
|
5965
5514
|
return value;
|
|
5966
5515
|
}
|
|
5967
|
-
if (isArray$
|
|
5516
|
+
if (isArray$1(value)) {
|
|
5968
5517
|
// Recursively convert values (susceptible to call stack limits).
|
|
5969
|
-
return arrayMap(value, baseToString
|
|
5518
|
+
return arrayMap(value, baseToString) + '';
|
|
5970
5519
|
}
|
|
5971
|
-
if (isSymbol
|
|
5520
|
+
if (isSymbol(value)) {
|
|
5972
5521
|
return symbolToString ? symbolToString.call(value) : '';
|
|
5973
5522
|
}
|
|
5974
5523
|
var result = (value + '');
|
|
5975
5524
|
return (result == '0' && (1 / value) == -INFINITY$2) ? '-0' : result;
|
|
5976
5525
|
}
|
|
5977
5526
|
|
|
5978
|
-
var _baseToString = baseToString$1;
|
|
5979
|
-
|
|
5980
|
-
var baseToString = _baseToString;
|
|
5981
|
-
|
|
5982
5527
|
/**
|
|
5983
5528
|
* Converts `value` to a string. An empty string is returned for `null`
|
|
5984
5529
|
* and `undefined` values. The sign of `-0` is preserved.
|
|
@@ -6000,17 +5545,10 @@ var baseToString = _baseToString;
|
|
|
6000
5545
|
* _.toString([1, 2, 3]);
|
|
6001
5546
|
* // => '1,2,3'
|
|
6002
5547
|
*/
|
|
6003
|
-
function toString
|
|
5548
|
+
function toString(value) {
|
|
6004
5549
|
return value == null ? '' : baseToString(value);
|
|
6005
5550
|
}
|
|
6006
5551
|
|
|
6007
|
-
var toString_1 = toString$1;
|
|
6008
|
-
|
|
6009
|
-
var isArray$6 = isArray_1,
|
|
6010
|
-
isKey$2 = _isKey,
|
|
6011
|
-
stringToPath = _stringToPath,
|
|
6012
|
-
toString = toString_1;
|
|
6013
|
-
|
|
6014
5552
|
/**
|
|
6015
5553
|
* Casts `value` to a path array if it's not one.
|
|
6016
5554
|
*
|
|
@@ -6019,17 +5557,13 @@ var isArray$6 = isArray_1,
|
|
|
6019
5557
|
* @param {Object} [object] The object to query keys on.
|
|
6020
5558
|
* @returns {Array} Returns the cast property path array.
|
|
6021
5559
|
*/
|
|
6022
|
-
function castPath
|
|
6023
|
-
if (isArray$
|
|
5560
|
+
function castPath(value, object) {
|
|
5561
|
+
if (isArray$1(value)) {
|
|
6024
5562
|
return value;
|
|
6025
5563
|
}
|
|
6026
|
-
return isKey
|
|
5564
|
+
return isKey(value, object) ? [value] : stringToPath$1(toString(value));
|
|
6027
5565
|
}
|
|
6028
5566
|
|
|
6029
|
-
var _castPath = castPath$2;
|
|
6030
|
-
|
|
6031
|
-
var isSymbol$2 = isSymbol_1;
|
|
6032
|
-
|
|
6033
5567
|
/** Used as references for various `Number` constants. */
|
|
6034
5568
|
var INFINITY$1 = 1 / 0;
|
|
6035
5569
|
|
|
@@ -6040,19 +5574,14 @@ var INFINITY$1 = 1 / 0;
|
|
|
6040
5574
|
* @param {*} value The value to inspect.
|
|
6041
5575
|
* @returns {string|symbol} Returns the key.
|
|
6042
5576
|
*/
|
|
6043
|
-
function toKey
|
|
6044
|
-
if (typeof value == 'string' || isSymbol
|
|
5577
|
+
function toKey(value) {
|
|
5578
|
+
if (typeof value == 'string' || isSymbol(value)) {
|
|
6045
5579
|
return value;
|
|
6046
5580
|
}
|
|
6047
5581
|
var result = (value + '');
|
|
6048
5582
|
return (result == '0' && (1 / value) == -INFINITY$1) ? '-0' : result;
|
|
6049
5583
|
}
|
|
6050
5584
|
|
|
6051
|
-
var _toKey = toKey$4;
|
|
6052
|
-
|
|
6053
|
-
var castPath$1 = _castPath,
|
|
6054
|
-
toKey$3 = _toKey;
|
|
6055
|
-
|
|
6056
5585
|
/**
|
|
6057
5586
|
* The base implementation of `_.get` without support for default values.
|
|
6058
5587
|
*
|
|
@@ -6061,22 +5590,18 @@ var castPath$1 = _castPath,
|
|
|
6061
5590
|
* @param {Array|string} path The path of the property to get.
|
|
6062
5591
|
* @returns {*} Returns the resolved value.
|
|
6063
5592
|
*/
|
|
6064
|
-
function baseGet
|
|
6065
|
-
path = castPath
|
|
5593
|
+
function baseGet(object, path) {
|
|
5594
|
+
path = castPath(path, object);
|
|
6066
5595
|
|
|
6067
5596
|
var index = 0,
|
|
6068
5597
|
length = path.length;
|
|
6069
5598
|
|
|
6070
5599
|
while (object != null && index < length) {
|
|
6071
|
-
object = object[toKey
|
|
5600
|
+
object = object[toKey(path[index++])];
|
|
6072
5601
|
}
|
|
6073
5602
|
return (index && index == length) ? object : undefined;
|
|
6074
5603
|
}
|
|
6075
5604
|
|
|
6076
|
-
var _baseGet = baseGet$2;
|
|
6077
|
-
|
|
6078
|
-
var baseGet$1 = _baseGet;
|
|
6079
|
-
|
|
6080
5605
|
/**
|
|
6081
5606
|
* Gets the value at `path` of `object`. If the resolved value is
|
|
6082
5607
|
* `undefined`, the `defaultValue` is returned in its place.
|
|
@@ -6102,13 +5627,11 @@ var baseGet$1 = _baseGet;
|
|
|
6102
5627
|
* _.get(object, 'a.b.c', 'default');
|
|
6103
5628
|
* // => 'default'
|
|
6104
5629
|
*/
|
|
6105
|
-
function get
|
|
6106
|
-
var result = object == null ? undefined : baseGet
|
|
5630
|
+
function get(object, path, defaultValue) {
|
|
5631
|
+
var result = object == null ? undefined : baseGet(object, path);
|
|
6107
5632
|
return result === undefined ? defaultValue : result;
|
|
6108
5633
|
}
|
|
6109
5634
|
|
|
6110
|
-
var get_1 = get$1;
|
|
6111
|
-
|
|
6112
5635
|
/**
|
|
6113
5636
|
* The base implementation of `_.hasIn` without support for deep paths.
|
|
6114
5637
|
*
|
|
@@ -6117,20 +5640,10 @@ var get_1 = get$1;
|
|
|
6117
5640
|
* @param {Array|string} key The key to check.
|
|
6118
5641
|
* @returns {boolean} Returns `true` if `key` exists, else `false`.
|
|
6119
5642
|
*/
|
|
6120
|
-
|
|
6121
|
-
function baseHasIn$1(object, key) {
|
|
5643
|
+
function baseHasIn(object, key) {
|
|
6122
5644
|
return object != null && key in Object(object);
|
|
6123
5645
|
}
|
|
6124
5646
|
|
|
6125
|
-
var _baseHasIn = baseHasIn$1;
|
|
6126
|
-
|
|
6127
|
-
var castPath = _castPath,
|
|
6128
|
-
isArguments = isArguments_1,
|
|
6129
|
-
isArray$5 = isArray_1,
|
|
6130
|
-
isIndex$1 = _isIndex,
|
|
6131
|
-
isLength = isLength_1,
|
|
6132
|
-
toKey$2 = _toKey;
|
|
6133
|
-
|
|
6134
5647
|
/**
|
|
6135
5648
|
* Checks if `path` exists on `object`.
|
|
6136
5649
|
*
|
|
@@ -6140,7 +5653,7 @@ var castPath = _castPath,
|
|
|
6140
5653
|
* @param {Function} hasFunc The function to check properties.
|
|
6141
5654
|
* @returns {boolean} Returns `true` if `path` exists, else `false`.
|
|
6142
5655
|
*/
|
|
6143
|
-
function hasPath
|
|
5656
|
+
function hasPath(object, path, hasFunc) {
|
|
6144
5657
|
path = castPath(path, object);
|
|
6145
5658
|
|
|
6146
5659
|
var index = -1,
|
|
@@ -6148,7 +5661,7 @@ function hasPath$1(object, path, hasFunc) {
|
|
|
6148
5661
|
result = false;
|
|
6149
5662
|
|
|
6150
5663
|
while (++index < length) {
|
|
6151
|
-
var key = toKey
|
|
5664
|
+
var key = toKey(path[index]);
|
|
6152
5665
|
if (!(result = object != null && hasFunc(object, key))) {
|
|
6153
5666
|
break;
|
|
6154
5667
|
}
|
|
@@ -6158,15 +5671,10 @@ function hasPath$1(object, path, hasFunc) {
|
|
|
6158
5671
|
return result;
|
|
6159
5672
|
}
|
|
6160
5673
|
length = object == null ? 0 : object.length;
|
|
6161
|
-
return !!length && isLength(length) && isIndex
|
|
6162
|
-
(isArray$
|
|
5674
|
+
return !!length && isLength(length) && isIndex(key, length) &&
|
|
5675
|
+
(isArray$1(object) || isArguments$1(object));
|
|
6163
5676
|
}
|
|
6164
5677
|
|
|
6165
|
-
var _hasPath = hasPath$1;
|
|
6166
|
-
|
|
6167
|
-
var baseHasIn = _baseHasIn,
|
|
6168
|
-
hasPath = _hasPath;
|
|
6169
|
-
|
|
6170
5678
|
/**
|
|
6171
5679
|
* Checks if `path` is a direct or inherited property of `object`.
|
|
6172
5680
|
*
|
|
@@ -6193,20 +5701,10 @@ var baseHasIn = _baseHasIn,
|
|
|
6193
5701
|
* _.hasIn(object, 'b');
|
|
6194
5702
|
* // => false
|
|
6195
5703
|
*/
|
|
6196
|
-
function hasIn
|
|
5704
|
+
function hasIn(object, path) {
|
|
6197
5705
|
return object != null && hasPath(object, path, baseHasIn);
|
|
6198
5706
|
}
|
|
6199
5707
|
|
|
6200
|
-
var hasIn_1 = hasIn$1;
|
|
6201
|
-
|
|
6202
|
-
var baseIsEqual = _baseIsEqual,
|
|
6203
|
-
get = get_1,
|
|
6204
|
-
hasIn = hasIn_1,
|
|
6205
|
-
isKey$1 = _isKey,
|
|
6206
|
-
isStrictComparable = _isStrictComparable,
|
|
6207
|
-
matchesStrictComparable = _matchesStrictComparable,
|
|
6208
|
-
toKey$1 = _toKey;
|
|
6209
|
-
|
|
6210
5708
|
/** Used to compose bitmasks for value comparisons. */
|
|
6211
5709
|
var COMPARE_PARTIAL_FLAG = 1,
|
|
6212
5710
|
COMPARE_UNORDERED_FLAG = 2;
|
|
@@ -6219,9 +5717,9 @@ var COMPARE_PARTIAL_FLAG = 1,
|
|
|
6219
5717
|
* @param {*} srcValue The value to match.
|
|
6220
5718
|
* @returns {Function} Returns the new spec function.
|
|
6221
5719
|
*/
|
|
6222
|
-
function baseMatchesProperty
|
|
6223
|
-
if (isKey
|
|
6224
|
-
return matchesStrictComparable(toKey
|
|
5720
|
+
function baseMatchesProperty(path, srcValue) {
|
|
5721
|
+
if (isKey(path) && isStrictComparable(srcValue)) {
|
|
5722
|
+
return matchesStrictComparable(toKey(path), srcValue);
|
|
6225
5723
|
}
|
|
6226
5724
|
return function(object) {
|
|
6227
5725
|
var objValue = get(object, path);
|
|
@@ -6231,8 +5729,6 @@ function baseMatchesProperty$1(path, srcValue) {
|
|
|
6231
5729
|
};
|
|
6232
5730
|
}
|
|
6233
5731
|
|
|
6234
|
-
var _baseMatchesProperty = baseMatchesProperty$1;
|
|
6235
|
-
|
|
6236
5732
|
/**
|
|
6237
5733
|
* This method returns the first argument it receives.
|
|
6238
5734
|
*
|
|
@@ -6249,13 +5745,10 @@ var _baseMatchesProperty = baseMatchesProperty$1;
|
|
|
6249
5745
|
* console.log(_.identity(object) === object);
|
|
6250
5746
|
* // => true
|
|
6251
5747
|
*/
|
|
6252
|
-
|
|
6253
|
-
function identity$3(value) {
|
|
5748
|
+
function identity(value) {
|
|
6254
5749
|
return value;
|
|
6255
5750
|
}
|
|
6256
5751
|
|
|
6257
|
-
var identity_1 = identity$3;
|
|
6258
|
-
|
|
6259
5752
|
/**
|
|
6260
5753
|
* The base implementation of `_.property` without support for deep paths.
|
|
6261
5754
|
*
|
|
@@ -6263,17 +5756,12 @@ var identity_1 = identity$3;
|
|
|
6263
5756
|
* @param {string} key The key of the property to get.
|
|
6264
5757
|
* @returns {Function} Returns the new accessor function.
|
|
6265
5758
|
*/
|
|
6266
|
-
|
|
6267
|
-
function baseProperty$2(key) {
|
|
5759
|
+
function baseProperty(key) {
|
|
6268
5760
|
return function(object) {
|
|
6269
5761
|
return object == null ? undefined : object[key];
|
|
6270
5762
|
};
|
|
6271
5763
|
}
|
|
6272
5764
|
|
|
6273
|
-
var _baseProperty = baseProperty$2;
|
|
6274
|
-
|
|
6275
|
-
var baseGet = _baseGet;
|
|
6276
|
-
|
|
6277
5765
|
/**
|
|
6278
5766
|
* A specialized version of `baseProperty` which supports deep paths.
|
|
6279
5767
|
*
|
|
@@ -6281,19 +5769,12 @@ var baseGet = _baseGet;
|
|
|
6281
5769
|
* @param {Array|string} path The path of the property to get.
|
|
6282
5770
|
* @returns {Function} Returns the new accessor function.
|
|
6283
5771
|
*/
|
|
6284
|
-
function basePropertyDeep
|
|
5772
|
+
function basePropertyDeep(path) {
|
|
6285
5773
|
return function(object) {
|
|
6286
5774
|
return baseGet(object, path);
|
|
6287
5775
|
};
|
|
6288
5776
|
}
|
|
6289
5777
|
|
|
6290
|
-
var _basePropertyDeep = basePropertyDeep$1;
|
|
6291
|
-
|
|
6292
|
-
var baseProperty$1 = _baseProperty,
|
|
6293
|
-
basePropertyDeep = _basePropertyDeep,
|
|
6294
|
-
isKey = _isKey,
|
|
6295
|
-
toKey = _toKey;
|
|
6296
|
-
|
|
6297
5778
|
/**
|
|
6298
5779
|
* Creates a function that returns the value at `path` of a given object.
|
|
6299
5780
|
*
|
|
@@ -6316,18 +5797,10 @@ var baseProperty$1 = _baseProperty,
|
|
|
6316
5797
|
* _.map(_.sortBy(objects, _.property(['a', 'b'])), 'a.b');
|
|
6317
5798
|
* // => [1, 2]
|
|
6318
5799
|
*/
|
|
6319
|
-
function property
|
|
6320
|
-
return isKey(path) ? baseProperty
|
|
5800
|
+
function property(path) {
|
|
5801
|
+
return isKey(path) ? baseProperty(toKey(path)) : basePropertyDeep(path);
|
|
6321
5802
|
}
|
|
6322
5803
|
|
|
6323
|
-
var property_1 = property$1;
|
|
6324
|
-
|
|
6325
|
-
var baseMatches = _baseMatches,
|
|
6326
|
-
baseMatchesProperty = _baseMatchesProperty,
|
|
6327
|
-
identity$2 = identity_1,
|
|
6328
|
-
isArray$4 = isArray_1,
|
|
6329
|
-
property = property_1;
|
|
6330
|
-
|
|
6331
5804
|
/**
|
|
6332
5805
|
* The base implementation of `_.iteratee`.
|
|
6333
5806
|
*
|
|
@@ -6335,27 +5808,23 @@ var baseMatches = _baseMatches,
|
|
|
6335
5808
|
* @param {*} [value=_.identity] The value to convert to an iteratee.
|
|
6336
5809
|
* @returns {Function} Returns the iteratee.
|
|
6337
5810
|
*/
|
|
6338
|
-
function baseIteratee
|
|
5811
|
+
function baseIteratee(value) {
|
|
6339
5812
|
// Don't store the `typeof` result in a variable to avoid a JIT bug in Safari 9.
|
|
6340
5813
|
// See https://bugs.webkit.org/show_bug.cgi?id=156034 for more details.
|
|
6341
5814
|
if (typeof value == 'function') {
|
|
6342
5815
|
return value;
|
|
6343
5816
|
}
|
|
6344
5817
|
if (value == null) {
|
|
6345
|
-
return identity
|
|
5818
|
+
return identity;
|
|
6346
5819
|
}
|
|
6347
5820
|
if (typeof value == 'object') {
|
|
6348
|
-
return isArray$
|
|
5821
|
+
return isArray$1(value)
|
|
6349
5822
|
? baseMatchesProperty(value[0], value[1])
|
|
6350
5823
|
: baseMatches(value);
|
|
6351
5824
|
}
|
|
6352
5825
|
return property(value);
|
|
6353
5826
|
}
|
|
6354
5827
|
|
|
6355
|
-
var _baseIteratee = baseIteratee$3;
|
|
6356
|
-
|
|
6357
|
-
var toNumber = toNumber_1;
|
|
6358
|
-
|
|
6359
5828
|
/** Used as references for various `Number` constants. */
|
|
6360
5829
|
var INFINITY = 1 / 0,
|
|
6361
5830
|
MAX_INTEGER = 1.7976931348623157e+308;
|
|
@@ -6383,7 +5852,7 @@ var INFINITY = 1 / 0,
|
|
|
6383
5852
|
* _.toFinite('3.2');
|
|
6384
5853
|
* // => 3.2
|
|
6385
5854
|
*/
|
|
6386
|
-
function toFinite
|
|
5855
|
+
function toFinite(value) {
|
|
6387
5856
|
if (!value) {
|
|
6388
5857
|
return value === 0 ? value : 0;
|
|
6389
5858
|
}
|
|
@@ -6395,10 +5864,6 @@ function toFinite$2(value) {
|
|
|
6395
5864
|
return value === value ? value : 0;
|
|
6396
5865
|
}
|
|
6397
5866
|
|
|
6398
|
-
var toFinite_1 = toFinite$2;
|
|
6399
|
-
|
|
6400
|
-
var toFinite$1 = toFinite_1;
|
|
6401
|
-
|
|
6402
5867
|
/**
|
|
6403
5868
|
* Converts `value` to an integer.
|
|
6404
5869
|
*
|
|
@@ -6425,19 +5890,13 @@ var toFinite$1 = toFinite_1;
|
|
|
6425
5890
|
* _.toInteger('3.2');
|
|
6426
5891
|
* // => 3
|
|
6427
5892
|
*/
|
|
6428
|
-
function toInteger
|
|
6429
|
-
var result = toFinite
|
|
5893
|
+
function toInteger(value) {
|
|
5894
|
+
var result = toFinite(value),
|
|
6430
5895
|
remainder = result % 1;
|
|
6431
5896
|
|
|
6432
5897
|
return result === result ? (remainder ? result - remainder : result) : 0;
|
|
6433
5898
|
}
|
|
6434
5899
|
|
|
6435
|
-
var toInteger_1 = toInteger$4;
|
|
6436
|
-
|
|
6437
|
-
var baseFindIndex = _baseFindIndex,
|
|
6438
|
-
baseIteratee$2 = _baseIteratee,
|
|
6439
|
-
toInteger$3 = toInteger_1;
|
|
6440
|
-
|
|
6441
5900
|
/* Built-in method references for those with the same name as other `lodash` methods. */
|
|
6442
5901
|
var nativeMax$1 = Math.max;
|
|
6443
5902
|
|
|
@@ -6481,17 +5940,14 @@ function findIndex(array, predicate, fromIndex) {
|
|
|
6481
5940
|
if (!length) {
|
|
6482
5941
|
return -1;
|
|
6483
5942
|
}
|
|
6484
|
-
var index = fromIndex == null ? 0 : toInteger
|
|
5943
|
+
var index = fromIndex == null ? 0 : toInteger(fromIndex);
|
|
6485
5944
|
if (index < 0) {
|
|
6486
5945
|
index = nativeMax$1(length + index, 0);
|
|
6487
5946
|
}
|
|
6488
|
-
return baseFindIndex(array, baseIteratee
|
|
5947
|
+
return baseFindIndex(array, baseIteratee(predicate), index);
|
|
6489
5948
|
}
|
|
6490
5949
|
|
|
6491
|
-
var findIndex_1 = findIndex;
|
|
6492
|
-
|
|
6493
5950
|
/* Built-in method references for those with the same name as other `lodash` methods. */
|
|
6494
|
-
|
|
6495
5951
|
var nativeCeil = Math.ceil,
|
|
6496
5952
|
nativeMax = Math.max;
|
|
6497
5953
|
|
|
@@ -6506,7 +5962,7 @@ var nativeCeil = Math.ceil,
|
|
|
6506
5962
|
* @param {boolean} [fromRight] Specify iterating from right to left.
|
|
6507
5963
|
* @returns {Array} Returns the range of numbers.
|
|
6508
5964
|
*/
|
|
6509
|
-
function baseRange
|
|
5965
|
+
function baseRange(start, end, step, fromRight) {
|
|
6510
5966
|
var index = -1,
|
|
6511
5967
|
length = nativeMax(nativeCeil((end - start) / (step || 1)), 0),
|
|
6512
5968
|
result = Array(length);
|
|
@@ -6518,13 +5974,6 @@ function baseRange$1(start, end, step, fromRight) {
|
|
|
6518
5974
|
return result;
|
|
6519
5975
|
}
|
|
6520
5976
|
|
|
6521
|
-
var _baseRange = baseRange$1;
|
|
6522
|
-
|
|
6523
|
-
var eq$1 = eq_1,
|
|
6524
|
-
isArrayLike$2 = isArrayLike_1,
|
|
6525
|
-
isIndex = _isIndex,
|
|
6526
|
-
isObject$1 = isObject_1;
|
|
6527
|
-
|
|
6528
5977
|
/**
|
|
6529
5978
|
* Checks if the given arguments are from an iteratee call.
|
|
6530
5979
|
*
|
|
@@ -6535,13 +5984,13 @@ var eq$1 = eq_1,
|
|
|
6535
5984
|
* @returns {boolean} Returns `true` if the arguments are from an iteratee call,
|
|
6536
5985
|
* else `false`.
|
|
6537
5986
|
*/
|
|
6538
|
-
function isIterateeCall
|
|
6539
|
-
if (!isObject
|
|
5987
|
+
function isIterateeCall(value, index, object) {
|
|
5988
|
+
if (!isObject(object)) {
|
|
6540
5989
|
return false;
|
|
6541
5990
|
}
|
|
6542
5991
|
var type = typeof index;
|
|
6543
5992
|
if (type == 'number'
|
|
6544
|
-
? (isArrayLike
|
|
5993
|
+
? (isArrayLike(object) && isIndex(index, object.length))
|
|
6545
5994
|
: (type == 'string' && index in object)
|
|
6546
5995
|
) {
|
|
6547
5996
|
return eq$1(object[index], value);
|
|
@@ -6549,12 +5998,6 @@ function isIterateeCall$3(value, index, object) {
|
|
|
6549
5998
|
return false;
|
|
6550
5999
|
}
|
|
6551
6000
|
|
|
6552
|
-
var _isIterateeCall = isIterateeCall$3;
|
|
6553
|
-
|
|
6554
|
-
var baseRange = _baseRange,
|
|
6555
|
-
isIterateeCall$2 = _isIterateeCall,
|
|
6556
|
-
toFinite = toFinite_1;
|
|
6557
|
-
|
|
6558
6001
|
/**
|
|
6559
6002
|
* Creates a `_.range` or `_.rangeRight` function.
|
|
6560
6003
|
*
|
|
@@ -6562,9 +6005,9 @@ var baseRange = _baseRange,
|
|
|
6562
6005
|
* @param {boolean} [fromRight] Specify iterating from right to left.
|
|
6563
6006
|
* @returns {Function} Returns the new range function.
|
|
6564
6007
|
*/
|
|
6565
|
-
function createRange
|
|
6008
|
+
function createRange(fromRight) {
|
|
6566
6009
|
return function(start, end, step) {
|
|
6567
|
-
if (step && typeof step != 'number' && isIterateeCall
|
|
6010
|
+
if (step && typeof step != 'number' && isIterateeCall(start, end, step)) {
|
|
6568
6011
|
end = step = undefined;
|
|
6569
6012
|
}
|
|
6570
6013
|
// Ensure the sign of `-0` is preserved.
|
|
@@ -6580,10 +6023,6 @@ function createRange$1(fromRight) {
|
|
|
6580
6023
|
};
|
|
6581
6024
|
}
|
|
6582
6025
|
|
|
6583
|
-
var _createRange = createRange$1;
|
|
6584
|
-
|
|
6585
|
-
var createRange = _createRange;
|
|
6586
|
-
|
|
6587
6026
|
/**
|
|
6588
6027
|
* Creates an array of numbers (positive and/or negative) progressing from
|
|
6589
6028
|
* `start` up to, but not including, `end`. A step of `-1` is used if a negative
|
|
@@ -6627,7 +6066,7 @@ var createRange = _createRange;
|
|
|
6627
6066
|
*/
|
|
6628
6067
|
var range = createRange();
|
|
6629
6068
|
|
|
6630
|
-
var
|
|
6069
|
+
var range$1 = range;
|
|
6631
6070
|
|
|
6632
6071
|
const appendToMap = (map, propName, value) => {
|
|
6633
6072
|
const items = map.get(propName);
|
|
@@ -6638,7 +6077,7 @@ const appendToMap = (map, propName, value) => {
|
|
|
6638
6077
|
items.push(value);
|
|
6639
6078
|
}
|
|
6640
6079
|
};
|
|
6641
|
-
const debounce
|
|
6080
|
+
const debounce = (fn, ms) => {
|
|
6642
6081
|
let timeoutId;
|
|
6643
6082
|
return (...args) => {
|
|
6644
6083
|
if (timeoutId) {
|
|
@@ -6661,7 +6100,7 @@ const debounce$1 = (fn, ms) => {
|
|
|
6661
6100
|
* Better leak in Edge than to be useless.
|
|
6662
6101
|
*/
|
|
6663
6102
|
const isConnected = (maybeElement) => !('isConnected' in maybeElement) || maybeElement.isConnected;
|
|
6664
|
-
const cleanupElements = debounce
|
|
6103
|
+
const cleanupElements = debounce((map) => {
|
|
6665
6104
|
for (let key of map.keys()) {
|
|
6666
6105
|
map.set(key, map.get(key).filter(isConnected));
|
|
6667
6106
|
}
|
|
@@ -6890,7 +6329,7 @@ class DataStore {
|
|
|
6890
6329
|
}
|
|
6891
6330
|
// clear items
|
|
6892
6331
|
this.store.set('items', []);
|
|
6893
|
-
const items =
|
|
6332
|
+
const items = range$1(0, (source === null || source === void 0 ? void 0 : source.length) || 0);
|
|
6894
6333
|
// set proxy first
|
|
6895
6334
|
setStore(this.store, {
|
|
6896
6335
|
source,
|
|
@@ -6972,7 +6411,7 @@ function setItems(store, items) {
|
|
|
6972
6411
|
function getSourceItemVirtualIndexByProp(store, prop) {
|
|
6973
6412
|
const items = store.get('items');
|
|
6974
6413
|
const source = store.get('source');
|
|
6975
|
-
const physicalIndex =
|
|
6414
|
+
const physicalIndex = findIndex(source, { prop });
|
|
6976
6415
|
return items.indexOf(physicalIndex);
|
|
6977
6416
|
}
|
|
6978
6417
|
|
|
@@ -6988,8 +6427,7 @@ function getSourceItemVirtualIndexByProp(store, prop) {
|
|
|
6988
6427
|
* the initial value.
|
|
6989
6428
|
* @returns {*} Returns the accumulated value.
|
|
6990
6429
|
*/
|
|
6991
|
-
|
|
6992
|
-
function arrayReduce$1(array, iteratee, accumulator, initAccum) {
|
|
6430
|
+
function arrayReduce(array, iteratee, accumulator, initAccum) {
|
|
6993
6431
|
var index = -1,
|
|
6994
6432
|
length = array == null ? 0 : array.length;
|
|
6995
6433
|
|
|
@@ -7002,8 +6440,6 @@ function arrayReduce$1(array, iteratee, accumulator, initAccum) {
|
|
|
7002
6440
|
return accumulator;
|
|
7003
6441
|
}
|
|
7004
6442
|
|
|
7005
|
-
var _arrayReduce = arrayReduce$1;
|
|
7006
|
-
|
|
7007
6443
|
/**
|
|
7008
6444
|
* Creates a base function for methods like `_.forIn` and `_.forOwn`.
|
|
7009
6445
|
*
|
|
@@ -7011,8 +6447,7 @@ var _arrayReduce = arrayReduce$1;
|
|
|
7011
6447
|
* @param {boolean} [fromRight] Specify iterating from right to left.
|
|
7012
6448
|
* @returns {Function} Returns the new base function.
|
|
7013
6449
|
*/
|
|
7014
|
-
|
|
7015
|
-
function createBaseFor$1(fromRight) {
|
|
6450
|
+
function createBaseFor(fromRight) {
|
|
7016
6451
|
return function(object, iteratee, keysFunc) {
|
|
7017
6452
|
var index = -1,
|
|
7018
6453
|
iterable = Object(object),
|
|
@@ -7029,10 +6464,6 @@ function createBaseFor$1(fromRight) {
|
|
|
7029
6464
|
};
|
|
7030
6465
|
}
|
|
7031
6466
|
|
|
7032
|
-
var _createBaseFor = createBaseFor$1;
|
|
7033
|
-
|
|
7034
|
-
var createBaseFor = _createBaseFor;
|
|
7035
|
-
|
|
7036
6467
|
/**
|
|
7037
6468
|
* The base implementation of `baseForOwn` which iterates over `object`
|
|
7038
6469
|
* properties returned by `keysFunc` and invokes `iteratee` for each property.
|
|
@@ -7044,12 +6475,9 @@ var createBaseFor = _createBaseFor;
|
|
|
7044
6475
|
* @param {Function} keysFunc The function to get the keys of `object`.
|
|
7045
6476
|
* @returns {Object} Returns `object`.
|
|
7046
6477
|
*/
|
|
7047
|
-
var baseFor
|
|
7048
|
-
|
|
7049
|
-
var _baseFor = baseFor$1;
|
|
6478
|
+
var baseFor = createBaseFor();
|
|
7050
6479
|
|
|
7051
|
-
var baseFor =
|
|
7052
|
-
keys = keys_1;
|
|
6480
|
+
var baseFor$1 = baseFor;
|
|
7053
6481
|
|
|
7054
6482
|
/**
|
|
7055
6483
|
* The base implementation of `_.forOwn` without support for iteratee shorthands.
|
|
@@ -7059,14 +6487,10 @@ var baseFor = _baseFor,
|
|
|
7059
6487
|
* @param {Function} iteratee The function invoked per iteration.
|
|
7060
6488
|
* @returns {Object} Returns `object`.
|
|
7061
6489
|
*/
|
|
7062
|
-
function baseForOwn
|
|
7063
|
-
return object && baseFor(object, iteratee, keys);
|
|
6490
|
+
function baseForOwn(object, iteratee) {
|
|
6491
|
+
return object && baseFor$1(object, iteratee, keys);
|
|
7064
6492
|
}
|
|
7065
6493
|
|
|
7066
|
-
var _baseForOwn = baseForOwn$1;
|
|
7067
|
-
|
|
7068
|
-
var isArrayLike$1 = isArrayLike_1;
|
|
7069
|
-
|
|
7070
6494
|
/**
|
|
7071
6495
|
* Creates a `baseEach` or `baseEachRight` function.
|
|
7072
6496
|
*
|
|
@@ -7075,12 +6499,12 @@ var isArrayLike$1 = isArrayLike_1;
|
|
|
7075
6499
|
* @param {boolean} [fromRight] Specify iterating from right to left.
|
|
7076
6500
|
* @returns {Function} Returns the new base function.
|
|
7077
6501
|
*/
|
|
7078
|
-
function createBaseEach
|
|
6502
|
+
function createBaseEach(eachFunc, fromRight) {
|
|
7079
6503
|
return function(collection, iteratee) {
|
|
7080
6504
|
if (collection == null) {
|
|
7081
6505
|
return collection;
|
|
7082
6506
|
}
|
|
7083
|
-
if (!isArrayLike
|
|
6507
|
+
if (!isArrayLike(collection)) {
|
|
7084
6508
|
return eachFunc(collection, iteratee);
|
|
7085
6509
|
}
|
|
7086
6510
|
var length = collection.length,
|
|
@@ -7096,11 +6520,6 @@ function createBaseEach$1(eachFunc, fromRight) {
|
|
|
7096
6520
|
};
|
|
7097
6521
|
}
|
|
7098
6522
|
|
|
7099
|
-
var _createBaseEach = createBaseEach$1;
|
|
7100
|
-
|
|
7101
|
-
var baseForOwn = _baseForOwn,
|
|
7102
|
-
createBaseEach = _createBaseEach;
|
|
7103
|
-
|
|
7104
6523
|
/**
|
|
7105
6524
|
* The base implementation of `_.forEach` without support for iteratee shorthands.
|
|
7106
6525
|
*
|
|
@@ -7109,9 +6528,9 @@ var baseForOwn = _baseForOwn,
|
|
|
7109
6528
|
* @param {Function} iteratee The function invoked per iteration.
|
|
7110
6529
|
* @returns {Array|Object} Returns `collection`.
|
|
7111
6530
|
*/
|
|
7112
|
-
var baseEach
|
|
6531
|
+
var baseEach = createBaseEach(baseForOwn);
|
|
7113
6532
|
|
|
7114
|
-
var
|
|
6533
|
+
var baseEach$1 = baseEach;
|
|
7115
6534
|
|
|
7116
6535
|
/**
|
|
7117
6536
|
* The base implementation of `_.reduce` and `_.reduceRight`, without support
|
|
@@ -7126,8 +6545,7 @@ var _baseEach = baseEach$3;
|
|
|
7126
6545
|
* @param {Function} eachFunc The function to iterate over `collection`.
|
|
7127
6546
|
* @returns {*} Returns the accumulated value.
|
|
7128
6547
|
*/
|
|
7129
|
-
|
|
7130
|
-
function baseReduce$1(collection, iteratee, accumulator, initAccum, eachFunc) {
|
|
6548
|
+
function baseReduce(collection, iteratee, accumulator, initAccum, eachFunc) {
|
|
7131
6549
|
eachFunc(collection, function(value, index, collection) {
|
|
7132
6550
|
accumulator = initAccum
|
|
7133
6551
|
? (initAccum = false, value)
|
|
@@ -7136,14 +6554,6 @@ function baseReduce$1(collection, iteratee, accumulator, initAccum, eachFunc) {
|
|
|
7136
6554
|
return accumulator;
|
|
7137
6555
|
}
|
|
7138
6556
|
|
|
7139
|
-
var _baseReduce = baseReduce$1;
|
|
7140
|
-
|
|
7141
|
-
var arrayReduce = _arrayReduce,
|
|
7142
|
-
baseEach$2 = _baseEach,
|
|
7143
|
-
baseIteratee$1 = _baseIteratee,
|
|
7144
|
-
baseReduce = _baseReduce,
|
|
7145
|
-
isArray$3 = isArray_1;
|
|
7146
|
-
|
|
7147
6557
|
/**
|
|
7148
6558
|
* Reduces `collection` to a value which is the accumulated result of running
|
|
7149
6559
|
* each element in `collection` thru `iteratee`, where each successive
|
|
@@ -7182,14 +6592,12 @@ var arrayReduce = _arrayReduce,
|
|
|
7182
6592
|
* // => { '1': ['a', 'c'], '2': ['b'] } (iteration order is not guaranteed)
|
|
7183
6593
|
*/
|
|
7184
6594
|
function reduce(collection, iteratee, accumulator) {
|
|
7185
|
-
var func = isArray$
|
|
6595
|
+
var func = isArray$1(collection) ? arrayReduce : baseReduce,
|
|
7186
6596
|
initAccum = arguments.length < 3;
|
|
7187
6597
|
|
|
7188
|
-
return func(collection, baseIteratee
|
|
6598
|
+
return func(collection, baseIteratee(iteratee), accumulator, initAccum, baseEach$1);
|
|
7189
6599
|
}
|
|
7190
6600
|
|
|
7191
|
-
var reduce_1 = reduce;
|
|
7192
|
-
|
|
7193
6601
|
/**
|
|
7194
6602
|
* A specialized version of `_.forEach` for arrays without support for
|
|
7195
6603
|
* iteratee shorthands.
|
|
@@ -7199,8 +6607,7 @@ var reduce_1 = reduce;
|
|
|
7199
6607
|
* @param {Function} iteratee The function invoked per iteration.
|
|
7200
6608
|
* @returns {Array} Returns `array`.
|
|
7201
6609
|
*/
|
|
7202
|
-
|
|
7203
|
-
function arrayEach$1(array, iteratee) {
|
|
6610
|
+
function arrayEach(array, iteratee) {
|
|
7204
6611
|
var index = -1,
|
|
7205
6612
|
length = array == null ? 0 : array.length;
|
|
7206
6613
|
|
|
@@ -7212,10 +6619,6 @@ function arrayEach$1(array, iteratee) {
|
|
|
7212
6619
|
return array;
|
|
7213
6620
|
}
|
|
7214
6621
|
|
|
7215
|
-
var _arrayEach = arrayEach$1;
|
|
7216
|
-
|
|
7217
|
-
var identity$1 = identity_1;
|
|
7218
|
-
|
|
7219
6622
|
/**
|
|
7220
6623
|
* Casts `value` to `identity` if it's not a function.
|
|
7221
6624
|
*
|
|
@@ -7223,17 +6626,10 @@ var identity$1 = identity_1;
|
|
|
7223
6626
|
* @param {*} value The value to inspect.
|
|
7224
6627
|
* @returns {Function} Returns cast function.
|
|
7225
6628
|
*/
|
|
7226
|
-
function castFunction
|
|
7227
|
-
return typeof value == 'function' ? value : identity
|
|
6629
|
+
function castFunction(value) {
|
|
6630
|
+
return typeof value == 'function' ? value : identity;
|
|
7228
6631
|
}
|
|
7229
6632
|
|
|
7230
|
-
var _castFunction = castFunction$1;
|
|
7231
|
-
|
|
7232
|
-
var arrayEach = _arrayEach,
|
|
7233
|
-
baseEach$1 = _baseEach,
|
|
7234
|
-
castFunction = _castFunction,
|
|
7235
|
-
isArray$2 = isArray_1;
|
|
7236
|
-
|
|
7237
6633
|
/**
|
|
7238
6634
|
* Iterates over elements of `collection` and invokes `iteratee` for each element.
|
|
7239
6635
|
* The iteratee is invoked with three arguments: (value, index|key, collection).
|
|
@@ -7265,16 +6661,10 @@ var arrayEach = _arrayEach,
|
|
|
7265
6661
|
* // => Logs 'a' then 'b' (iteration order is not guaranteed).
|
|
7266
6662
|
*/
|
|
7267
6663
|
function forEach(collection, iteratee) {
|
|
7268
|
-
var func = isArray$
|
|
6664
|
+
var func = isArray$1(collection) ? arrayEach : baseEach$1;
|
|
7269
6665
|
return func(collection, castFunction(iteratee));
|
|
7270
6666
|
}
|
|
7271
6667
|
|
|
7272
|
-
var forEach_1 = forEach;
|
|
7273
|
-
|
|
7274
|
-
var each = forEach_1;
|
|
7275
|
-
|
|
7276
|
-
var isSymbol$1 = isSymbol_1;
|
|
7277
|
-
|
|
7278
6668
|
/** Used as references for the maximum length and index of an array. */
|
|
7279
6669
|
var MAX_ARRAY_LENGTH$2 = 4294967295,
|
|
7280
6670
|
MAX_ARRAY_INDEX = MAX_ARRAY_LENGTH$2 - 1;
|
|
@@ -7296,7 +6686,7 @@ var nativeFloor = Math.floor,
|
|
|
7296
6686
|
* @returns {number} Returns the index at which `value` should be inserted
|
|
7297
6687
|
* into `array`.
|
|
7298
6688
|
*/
|
|
7299
|
-
function baseSortedIndexBy
|
|
6689
|
+
function baseSortedIndexBy(array, value, iteratee, retHighest) {
|
|
7300
6690
|
var low = 0,
|
|
7301
6691
|
high = array == null ? 0 : array.length;
|
|
7302
6692
|
if (high === 0) {
|
|
@@ -7306,7 +6696,7 @@ function baseSortedIndexBy$1(array, value, iteratee, retHighest) {
|
|
|
7306
6696
|
value = iteratee(value);
|
|
7307
6697
|
var valIsNaN = value !== value,
|
|
7308
6698
|
valIsNull = value === null,
|
|
7309
|
-
valIsSymbol = isSymbol
|
|
6699
|
+
valIsSymbol = isSymbol(value),
|
|
7310
6700
|
valIsUndefined = value === undefined;
|
|
7311
6701
|
|
|
7312
6702
|
while (low < high) {
|
|
@@ -7315,7 +6705,7 @@ function baseSortedIndexBy$1(array, value, iteratee, retHighest) {
|
|
|
7315
6705
|
othIsDefined = computed !== undefined,
|
|
7316
6706
|
othIsNull = computed === null,
|
|
7317
6707
|
othIsReflexive = computed === computed,
|
|
7318
|
-
othIsSymbol = isSymbol
|
|
6708
|
+
othIsSymbol = isSymbol(computed);
|
|
7319
6709
|
|
|
7320
6710
|
if (valIsNaN) {
|
|
7321
6711
|
var setLow = retHighest || othIsReflexive;
|
|
@@ -7339,12 +6729,6 @@ function baseSortedIndexBy$1(array, value, iteratee, retHighest) {
|
|
|
7339
6729
|
return nativeMin(high, MAX_ARRAY_INDEX);
|
|
7340
6730
|
}
|
|
7341
6731
|
|
|
7342
|
-
var _baseSortedIndexBy = baseSortedIndexBy$1;
|
|
7343
|
-
|
|
7344
|
-
var baseSortedIndexBy = _baseSortedIndexBy,
|
|
7345
|
-
identity = identity_1,
|
|
7346
|
-
isSymbol = isSymbol_1;
|
|
7347
|
-
|
|
7348
6732
|
/** Used as references for the maximum length and index of an array. */
|
|
7349
6733
|
var MAX_ARRAY_LENGTH$1 = 4294967295,
|
|
7350
6734
|
HALF_MAX_ARRAY_LENGTH = MAX_ARRAY_LENGTH$1 >>> 1;
|
|
@@ -7361,7 +6745,7 @@ var MAX_ARRAY_LENGTH$1 = 4294967295,
|
|
|
7361
6745
|
* @returns {number} Returns the index at which `value` should be inserted
|
|
7362
6746
|
* into `array`.
|
|
7363
6747
|
*/
|
|
7364
|
-
function baseSortedIndex
|
|
6748
|
+
function baseSortedIndex(array, value, retHighest) {
|
|
7365
6749
|
var low = 0,
|
|
7366
6750
|
high = array == null ? low : array.length;
|
|
7367
6751
|
|
|
@@ -7382,10 +6766,6 @@ function baseSortedIndex$1(array, value, retHighest) {
|
|
|
7382
6766
|
return baseSortedIndexBy(array, value, identity, retHighest);
|
|
7383
6767
|
}
|
|
7384
6768
|
|
|
7385
|
-
var _baseSortedIndex = baseSortedIndex$1;
|
|
7386
|
-
|
|
7387
|
-
var baseSortedIndex = _baseSortedIndex;
|
|
7388
|
-
|
|
7389
6769
|
/**
|
|
7390
6770
|
* Uses a binary search to determine the lowest index at which `value`
|
|
7391
6771
|
* should be inserted into `array` in order to maintain its sort order.
|
|
@@ -7407,8 +6787,6 @@ function sortedIndex(array, value) {
|
|
|
7407
6787
|
return baseSortedIndex(array, value);
|
|
7408
6788
|
}
|
|
7409
6789
|
|
|
7410
|
-
var sortedIndex_1 = sortedIndex;
|
|
7411
|
-
|
|
7412
6790
|
/**
|
|
7413
6791
|
* Pre-calculation
|
|
7414
6792
|
* Dimension custom sizes for each cell
|
|
@@ -7422,12 +6800,12 @@ function calculateDimensionData(originItemSize, newSizes = {}) {
|
|
|
7422
6800
|
const sizes = Object.assign({}, newSizes);
|
|
7423
6801
|
// prepare order sorted new sizes and calculate changed real size
|
|
7424
6802
|
let newIndexes = [];
|
|
7425
|
-
|
|
6803
|
+
forEach(newSizes, (_, i) => {
|
|
7426
6804
|
const index = parseInt(i, 10);
|
|
7427
|
-
newIndexes[
|
|
6805
|
+
newIndexes[sortedIndex(newIndexes, index)] = index;
|
|
7428
6806
|
});
|
|
7429
6807
|
// fill new coordinates based on what is changed
|
|
7430
|
-
|
|
6808
|
+
reduce(newIndexes, (previous, itemIndex, i) => {
|
|
7431
6809
|
const newItem = {
|
|
7432
6810
|
itemIndex,
|
|
7433
6811
|
start: 0,
|
|
@@ -7463,7 +6841,7 @@ const getItemByPosition = ({ indexes, positionIndexes, originItemSize, positionI
|
|
|
7463
6841
|
start: 0,
|
|
7464
6842
|
end: 0,
|
|
7465
6843
|
};
|
|
7466
|
-
const currentPlace = indexes.length ?
|
|
6844
|
+
const currentPlace = indexes.length ? sortedIndex(positionIndexes, pos) : 0;
|
|
7467
6845
|
// not found or first index
|
|
7468
6846
|
if (!currentPlace) {
|
|
7469
6847
|
item.itemIndex = Math.floor(pos / originItemSize);
|
|
@@ -7495,7 +6873,7 @@ function getItemByIndex(dimension, index) {
|
|
|
7495
6873
|
return dimension.indexToItem[index];
|
|
7496
6874
|
}
|
|
7497
6875
|
const currentPlace = dimension.indexes.length
|
|
7498
|
-
?
|
|
6876
|
+
? sortedIndex(dimension.indexes, index)
|
|
7499
6877
|
: 0;
|
|
7500
6878
|
// not found or first index
|
|
7501
6879
|
if (!currentPlace) {
|
|
@@ -7543,20 +6921,32 @@ const trimmedPlugin = (store) => {
|
|
|
7543
6921
|
},
|
|
7544
6922
|
};
|
|
7545
6923
|
};
|
|
7546
|
-
|
|
6924
|
+
/**
|
|
6925
|
+
* Plugin which recalculates realSize on changes of sizes, originItemSize and count
|
|
6926
|
+
*/
|
|
6927
|
+
const recalculateRealSizePlugin = (storeService) => {
|
|
6928
|
+
/**
|
|
6929
|
+
* Recalculates realSize if size, origin size or count changes
|
|
6930
|
+
*/
|
|
7547
6931
|
return {
|
|
6932
|
+
/**
|
|
6933
|
+
* Reacts on changes of count, sizes and originItemSize
|
|
6934
|
+
*/
|
|
7548
6935
|
set(k) {
|
|
7549
6936
|
switch (k) {
|
|
7550
6937
|
case 'count':
|
|
7551
6938
|
case 'sizes':
|
|
7552
6939
|
case 'originItemSize':
|
|
6940
|
+
// recalculate realSize
|
|
7553
6941
|
let realSize = 0;
|
|
7554
|
-
const count =
|
|
6942
|
+
const count = storeService.store.get('count');
|
|
7555
6943
|
for (let i = 0; i < count; i++) {
|
|
7556
6944
|
realSize +=
|
|
7557
|
-
|
|
6945
|
+
storeService.store.get('sizes')[i] ||
|
|
6946
|
+
storeService.store.get('originItemSize');
|
|
7558
6947
|
}
|
|
7559
|
-
|
|
6948
|
+
storeService.setStore({ realSize });
|
|
6949
|
+
break;
|
|
7560
6950
|
}
|
|
7561
6951
|
},
|
|
7562
6952
|
};
|
|
@@ -7586,15 +6976,16 @@ function initialState$1() {
|
|
|
7586
6976
|
originItemSize: 0 });
|
|
7587
6977
|
}
|
|
7588
6978
|
class DimensionStore {
|
|
7589
|
-
constructor() {
|
|
6979
|
+
constructor(type) {
|
|
6980
|
+
this.type = type;
|
|
7590
6981
|
this.store = createStore(initialState$1());
|
|
7591
6982
|
this.store.use(trimmedPlugin(this));
|
|
7592
|
-
this.store.use(
|
|
6983
|
+
this.store.use(recalculateRealSizePlugin(this));
|
|
7593
6984
|
}
|
|
7594
6985
|
getCurrentState() {
|
|
7595
6986
|
const state = initialState$1();
|
|
7596
6987
|
const keys = Object.keys(state);
|
|
7597
|
-
return
|
|
6988
|
+
return reduce(keys, (r, k) => {
|
|
7598
6989
|
const data = this.store.get(k);
|
|
7599
6990
|
r[k] = data;
|
|
7600
6991
|
return r;
|
|
@@ -8331,10 +7722,6 @@ class ViewportStore {
|
|
|
8331
7722
|
// last coordinate for store position restore
|
|
8332
7723
|
this.lastKnownScroll = 0;
|
|
8333
7724
|
this.store = createStore(initialState());
|
|
8334
|
-
// drop items on real size change, require a new item set
|
|
8335
|
-
this.store.onChange('realCount', () => this.clearItems());
|
|
8336
|
-
// drop items on virtual size change, require a new item set
|
|
8337
|
-
this.store.onChange('virtualSize', () => this.clearItems());
|
|
8338
7725
|
}
|
|
8339
7726
|
/**
|
|
8340
7727
|
* Render viewport based on coordinate
|
|
@@ -8436,11 +7823,13 @@ class ViewportStore {
|
|
|
8436
7823
|
};
|
|
8437
7824
|
}
|
|
8438
7825
|
setViewport(data) {
|
|
7826
|
+
// drop items on virtual size change, require a new item set
|
|
7827
|
+
// drop items on real size change, require a new item set
|
|
7828
|
+
if (typeof data.realCount === 'number' || typeof data.virtualSize === 'number') {
|
|
7829
|
+
data = Object.assign(Object.assign({}, data), { items: data.items || [] });
|
|
7830
|
+
}
|
|
8439
7831
|
setStore(this.store, data);
|
|
8440
7832
|
}
|
|
8441
|
-
clearItems() {
|
|
8442
|
-
this.store.set('items', []);
|
|
8443
|
-
}
|
|
8444
7833
|
}
|
|
8445
7834
|
|
|
8446
7835
|
const rowTypes = ['rowPinStart', 'rgRow', 'rowPinEnd'];
|
|
@@ -8556,7 +7945,7 @@ class OrderEditor {
|
|
|
8556
7945
|
this.rowMouseMove = createEvent(this, "rowdragmousemove", 7);
|
|
8557
7946
|
this.rowDropped = createEvent(this, "rowdropinit", 7);
|
|
8558
7947
|
this.events = [];
|
|
8559
|
-
this.rowMoveFunc =
|
|
7948
|
+
this.rowMoveFunc = debounce$1((y) => {
|
|
8560
7949
|
const rgRow = this.rowOrderService.move(y, this.getData());
|
|
8561
7950
|
if (rgRow !== null) {
|
|
8562
7951
|
this.rowDrag.emit(rgRow);
|
|
@@ -8715,7 +8104,7 @@ function getColumns(columns, level = 0, types) {
|
|
|
8715
8104
|
// sorting
|
|
8716
8105
|
sort: {},
|
|
8717
8106
|
};
|
|
8718
|
-
return
|
|
8107
|
+
return reduce(columns, (res, colData) => {
|
|
8719
8108
|
// Grouped column
|
|
8720
8109
|
if (isColGrouping(colData)) {
|
|
8721
8110
|
return gatherGroup(res, colData, getColumns(colData.children, level + 1, types), level);
|
|
@@ -8752,7 +8141,7 @@ function gatherGroup(res, colData, collection, level = 0) {
|
|
|
8752
8141
|
const resultItem = res.columns[key];
|
|
8753
8142
|
const collectionItem = collection.columns[key];
|
|
8754
8143
|
// if column data
|
|
8755
|
-
if (
|
|
8144
|
+
if (isArray$1(resultItem) && isArray$1(collectionItem)) {
|
|
8756
8145
|
// fill columns
|
|
8757
8146
|
resultItem.push(...collectionItem);
|
|
8758
8147
|
// fill grouping
|
|
@@ -9089,8 +8478,7 @@ function isSameGroup(currentGroup, currentModel, nextModel) {
|
|
|
9089
8478
|
* @param {number} [end=array.length] The end position.
|
|
9090
8479
|
* @returns {Array} Returns the slice of `array`.
|
|
9091
8480
|
*/
|
|
9092
|
-
|
|
9093
|
-
function baseSlice$1(array, start, end) {
|
|
8481
|
+
function baseSlice(array, start, end) {
|
|
9094
8482
|
var index = -1,
|
|
9095
8483
|
length = array.length;
|
|
9096
8484
|
|
|
@@ -9111,12 +8499,6 @@ function baseSlice$1(array, start, end) {
|
|
|
9111
8499
|
return result;
|
|
9112
8500
|
}
|
|
9113
8501
|
|
|
9114
|
-
var _baseSlice = baseSlice$1;
|
|
9115
|
-
|
|
9116
|
-
var baseSlice = _baseSlice,
|
|
9117
|
-
isIterateeCall$1 = _isIterateeCall,
|
|
9118
|
-
toInteger$2 = toInteger_1;
|
|
9119
|
-
|
|
9120
8502
|
/**
|
|
9121
8503
|
* Creates a slice of `array` from `start` up to, but not including, `end`.
|
|
9122
8504
|
*
|
|
@@ -9138,19 +8520,17 @@ function slice(array, start, end) {
|
|
|
9138
8520
|
if (!length) {
|
|
9139
8521
|
return [];
|
|
9140
8522
|
}
|
|
9141
|
-
if (end && typeof end != 'number' && isIterateeCall
|
|
8523
|
+
if (end && typeof end != 'number' && isIterateeCall(array, start, end)) {
|
|
9142
8524
|
start = 0;
|
|
9143
8525
|
end = length;
|
|
9144
8526
|
}
|
|
9145
8527
|
else {
|
|
9146
|
-
start = start == null ? 0 : toInteger
|
|
9147
|
-
end = end === undefined ? length : toInteger
|
|
8528
|
+
start = start == null ? 0 : toInteger(start);
|
|
8529
|
+
end = end === undefined ? length : toInteger(end);
|
|
9148
8530
|
}
|
|
9149
8531
|
return baseSlice(array, start, end);
|
|
9150
8532
|
}
|
|
9151
8533
|
|
|
9152
|
-
var slice_1 = slice;
|
|
9153
|
-
|
|
9154
8534
|
class ColumnService {
|
|
9155
8535
|
get columns() {
|
|
9156
8536
|
return getVisibleSourceItem(this.source);
|
|
@@ -9385,7 +8765,7 @@ class ColumnService {
|
|
|
9385
8765
|
}
|
|
9386
8766
|
copyRangeArray(range, store) {
|
|
9387
8767
|
const cols = [...this.columns];
|
|
9388
|
-
const props =
|
|
8768
|
+
const props = slice(cols, range.x, range.x1 + 1).map(v => v.prop);
|
|
9389
8769
|
const toCopy = [];
|
|
9390
8770
|
const mapping = {};
|
|
9391
8771
|
// rows indexes
|
|
@@ -9823,7 +9203,7 @@ class AutoFillService {
|
|
|
9823
9203
|
selectionMouseMove(e) {
|
|
9824
9204
|
// initiate mouse move debounce if not present
|
|
9825
9205
|
if (!this.onMouseMoveAutofill) {
|
|
9826
|
-
this.onMouseMoveAutofill =
|
|
9206
|
+
this.onMouseMoveAutofill = debounce$1((e, data) => this.doAutofillMouseMove(e, data), 5);
|
|
9827
9207
|
}
|
|
9828
9208
|
if (this.isAutoFill) {
|
|
9829
9209
|
this.onMouseMoveAutofill(e, this.sv.getData());
|
|
@@ -10766,7 +10146,7 @@ class ColumnDataProvider {
|
|
|
10766
10146
|
return getSourceItem(this.dataSources[type].store, virtualIndex);
|
|
10767
10147
|
}
|
|
10768
10148
|
getRawColumns() {
|
|
10769
|
-
return
|
|
10149
|
+
return reduce(this.dataSources, (result, item, type) => {
|
|
10770
10150
|
result[type] = item.store.get('source');
|
|
10771
10151
|
return result;
|
|
10772
10152
|
}, {
|
|
@@ -10867,14 +10247,14 @@ class ColumnDataProvider {
|
|
|
10867
10247
|
return column;
|
|
10868
10248
|
}
|
|
10869
10249
|
clearSorting() {
|
|
10870
|
-
const types =
|
|
10250
|
+
const types = reduce(this.sorting, (r, c) => {
|
|
10871
10251
|
const k = getColumnType(c);
|
|
10872
10252
|
r[k] = true;
|
|
10873
10253
|
return r;
|
|
10874
10254
|
}, {});
|
|
10875
|
-
|
|
10255
|
+
forEach(types, (_, type) => {
|
|
10876
10256
|
const cols = this.dataSources[type].store.get('source');
|
|
10877
|
-
|
|
10257
|
+
forEach(cols, (c) => (c.order = undefined));
|
|
10878
10258
|
this.dataSources[type].setData({ source: [...cols] });
|
|
10879
10259
|
});
|
|
10880
10260
|
this.sorting = {};
|
|
@@ -10887,7 +10267,7 @@ class ColumnDataProvider {
|
|
|
10887
10267
|
class DataProvider {
|
|
10888
10268
|
constructor(dimensionProvider) {
|
|
10889
10269
|
this.dimensionProvider = dimensionProvider;
|
|
10890
|
-
this.stores =
|
|
10270
|
+
this.stores = reduce(rowTypes, (sources, k) => {
|
|
10891
10271
|
sources[k] = new DataStore(k);
|
|
10892
10272
|
return sources;
|
|
10893
10273
|
}, {});
|
|
@@ -10954,10 +10334,10 @@ class DataProvider {
|
|
|
10954
10334
|
class DimensionProvider {
|
|
10955
10335
|
constructor(viewports, config) {
|
|
10956
10336
|
this.viewports = viewports;
|
|
10957
|
-
const sizeChanged =
|
|
10958
|
-
this.stores =
|
|
10959
|
-
sources[
|
|
10960
|
-
sources[
|
|
10337
|
+
const sizeChanged = debounce$1((k) => config.realSizeChanged(k), RESIZE_INTERVAL);
|
|
10338
|
+
this.stores = reduce([...rowTypes, ...columnTypes], (sources, t) => {
|
|
10339
|
+
sources[t] = new DimensionStore(t);
|
|
10340
|
+
sources[t].store.onChange('realSize', () => sizeChanged(t));
|
|
10961
10341
|
return sources;
|
|
10962
10342
|
}, {});
|
|
10963
10343
|
}
|
|
@@ -11039,6 +10419,7 @@ class DimensionProvider {
|
|
|
11039
10419
|
if (noVirtual) {
|
|
11040
10420
|
vpUpdate.virtualSize = this.stores[type].getCurrentState().realSize;
|
|
11041
10421
|
}
|
|
10422
|
+
// if virtualSize present this would trigger viewport clear
|
|
11042
10423
|
this.viewports.stores[type].setViewport(vpUpdate);
|
|
11043
10424
|
this.setViewPortCoordinate({
|
|
11044
10425
|
coordinate: this.viewports.stores[type].lastCoordinate,
|
|
@@ -11092,7 +10473,7 @@ class DimensionProvider {
|
|
|
11092
10473
|
|
|
11093
10474
|
class ViewportProvider {
|
|
11094
10475
|
constructor() {
|
|
11095
|
-
this.stores =
|
|
10476
|
+
this.stores = reduce([...rowTypes, ...columnTypes], (sources, k) => {
|
|
11096
10477
|
sources[k] = new ViewportStore(k);
|
|
11097
10478
|
return sources;
|
|
11098
10479
|
}, {});
|
|
@@ -11338,9 +10719,9 @@ class AutoSizeColumnPlugin extends BasePlugin {
|
|
|
11338
10719
|
}
|
|
11339
10720
|
}
|
|
11340
10721
|
// calculate sizes
|
|
11341
|
-
|
|
10722
|
+
forEach(autoSize, (_v, type) => {
|
|
11342
10723
|
const sizes = {};
|
|
11343
|
-
|
|
10724
|
+
forEach(autoSize[type], rgCol => {
|
|
11344
10725
|
// calculate size
|
|
11345
10726
|
rgCol.size = sizes[rgCol.index] = source.reduce((prev, rgRow) => Math.max(prev, this.getLength(rgRow[rgCol.prop])), this.getLength(rgCol.name || ''));
|
|
11346
10727
|
});
|
|
@@ -11374,12 +10755,12 @@ class AutoSizeColumnPlugin extends BasePlugin {
|
|
|
11374
10755
|
else {
|
|
11375
10756
|
data = { 0: { [e.prop]: e.val } };
|
|
11376
10757
|
}
|
|
11377
|
-
|
|
10758
|
+
forEach(this.autoSizeColumns, (columns, type) => {
|
|
11378
10759
|
const sizes = {};
|
|
11379
|
-
|
|
10760
|
+
forEach(columns, rgCol => {
|
|
11380
10761
|
var _a;
|
|
11381
10762
|
// calculate size
|
|
11382
|
-
const size =
|
|
10763
|
+
const size = reduce(data, (prev, rgRow) => {
|
|
11383
10764
|
if (typeof rgRow[rgCol.prop] === 'undefined') {
|
|
11384
10765
|
return prev;
|
|
11385
10766
|
}
|
|
@@ -11395,14 +10776,14 @@ class AutoSizeColumnPlugin extends BasePlugin {
|
|
|
11395
10776
|
afterEditAll(e) {
|
|
11396
10777
|
const props = {};
|
|
11397
10778
|
if (this.isRangeEdit(e)) {
|
|
11398
|
-
|
|
10779
|
+
forEach(e.data, r => forEach(r, (_v, p) => (props[p] = true)));
|
|
11399
10780
|
}
|
|
11400
10781
|
else {
|
|
11401
10782
|
props[e.prop] = true;
|
|
11402
10783
|
}
|
|
11403
|
-
|
|
10784
|
+
forEach(this.autoSizeColumns, (columns, type) => {
|
|
11404
10785
|
const sizes = {};
|
|
11405
|
-
|
|
10786
|
+
forEach(columns, rgCol => {
|
|
11406
10787
|
if (props[rgCol.prop]) {
|
|
11407
10788
|
const size = this.getColumnSize(rgCol.index, type);
|
|
11408
10789
|
if (size) {
|
|
@@ -11419,8 +10800,8 @@ class AutoSizeColumnPlugin extends BasePlugin {
|
|
|
11419
10800
|
if (!rgCol) {
|
|
11420
10801
|
return 0;
|
|
11421
10802
|
}
|
|
11422
|
-
return
|
|
11423
|
-
const perStore =
|
|
10803
|
+
return reduce(this.providers.data.stores, (r, s) => {
|
|
10804
|
+
const perStore = reduce(s.store.get('items'), (prev, _row, i) => {
|
|
11424
10805
|
const item = getSourceItem(s.store, i);
|
|
11425
10806
|
return Math.max(prev || 0, this.getLength(item === null || item === void 0 ? void 0 : item[rgCol.prop]));
|
|
11426
10807
|
}, 0);
|
|
@@ -11716,7 +11097,7 @@ class FilterPlugin extends BasePlugin {
|
|
|
11716
11097
|
}
|
|
11717
11098
|
}
|
|
11718
11099
|
if (config.collection) {
|
|
11719
|
-
this.filterCollection =
|
|
11100
|
+
this.filterCollection = reduce(config.collection, (result, item, prop) => {
|
|
11720
11101
|
if (this.filterFunctionsIndexedByType[item.type]) {
|
|
11721
11102
|
result[prop] = item;
|
|
11722
11103
|
}
|
|
@@ -11944,10 +11325,6 @@ class FilterPlugin extends BasePlugin {
|
|
|
11944
11325
|
}
|
|
11945
11326
|
}
|
|
11946
11327
|
|
|
11947
|
-
var baseGetTag = _baseGetTag,
|
|
11948
|
-
isArray$1 = isArray_1,
|
|
11949
|
-
isObjectLike = isObjectLike_1;
|
|
11950
|
-
|
|
11951
11328
|
/** `Object#toString` result references. */
|
|
11952
11329
|
var stringTag = '[object String]';
|
|
11953
11330
|
|
|
@@ -11968,15 +11345,11 @@ var stringTag = '[object String]';
|
|
|
11968
11345
|
* _.isString(1);
|
|
11969
11346
|
* // => false
|
|
11970
11347
|
*/
|
|
11971
|
-
function isString
|
|
11348
|
+
function isString(value) {
|
|
11972
11349
|
return typeof value == 'string' ||
|
|
11973
11350
|
(!isArray$1(value) && isObjectLike(value) && baseGetTag(value) == stringTag);
|
|
11974
11351
|
}
|
|
11975
11352
|
|
|
11976
|
-
var isString_1 = isString$1;
|
|
11977
|
-
|
|
11978
|
-
var baseProperty = _baseProperty;
|
|
11979
|
-
|
|
11980
11353
|
/**
|
|
11981
11354
|
* Gets the size of an ASCII `string`.
|
|
11982
11355
|
*
|
|
@@ -11984,12 +11357,11 @@ var baseProperty = _baseProperty;
|
|
|
11984
11357
|
* @param {string} string The string inspect.
|
|
11985
11358
|
* @returns {number} Returns the string size.
|
|
11986
11359
|
*/
|
|
11987
|
-
var asciiSize
|
|
11360
|
+
var asciiSize = baseProperty('length');
|
|
11988
11361
|
|
|
11989
|
-
var
|
|
11362
|
+
var asciiSize$1 = asciiSize;
|
|
11990
11363
|
|
|
11991
11364
|
/** Used to compose unicode character classes. */
|
|
11992
|
-
|
|
11993
11365
|
var rsAstralRange$1 = '\\ud800-\\udfff',
|
|
11994
11366
|
rsComboMarksRange$1 = '\\u0300-\\u036f',
|
|
11995
11367
|
reComboHalfMarksRange$1 = '\\ufe20-\\ufe2f',
|
|
@@ -12010,14 +11382,11 @@ var reHasUnicode = RegExp('[' + rsZWJ$1 + rsAstralRange$1 + rsComboRange$1 + rs
|
|
|
12010
11382
|
* @param {string} string The string to inspect.
|
|
12011
11383
|
* @returns {boolean} Returns `true` if a symbol is found, else `false`.
|
|
12012
11384
|
*/
|
|
12013
|
-
function hasUnicode
|
|
11385
|
+
function hasUnicode(string) {
|
|
12014
11386
|
return reHasUnicode.test(string);
|
|
12015
11387
|
}
|
|
12016
11388
|
|
|
12017
|
-
var _hasUnicode = hasUnicode$1;
|
|
12018
|
-
|
|
12019
11389
|
/** Used to compose unicode character classes. */
|
|
12020
|
-
|
|
12021
11390
|
var rsAstralRange = '\\ud800-\\udfff',
|
|
12022
11391
|
rsComboMarksRange = '\\u0300-\\u036f',
|
|
12023
11392
|
reComboHalfMarksRange = '\\ufe20-\\ufe2f',
|
|
@@ -12052,7 +11421,7 @@ var reUnicode = RegExp(rsFitz + '(?=' + rsFitz + ')|' + rsSymbol + rsSeq, 'g');
|
|
|
12052
11421
|
* @param {string} string The string inspect.
|
|
12053
11422
|
* @returns {number} Returns the string size.
|
|
12054
11423
|
*/
|
|
12055
|
-
function unicodeSize
|
|
11424
|
+
function unicodeSize(string) {
|
|
12056
11425
|
var result = reUnicode.lastIndex = 0;
|
|
12057
11426
|
while (reUnicode.test(string)) {
|
|
12058
11427
|
++result;
|
|
@@ -12060,12 +11429,6 @@ function unicodeSize$1(string) {
|
|
|
12060
11429
|
return result;
|
|
12061
11430
|
}
|
|
12062
11431
|
|
|
12063
|
-
var _unicodeSize = unicodeSize$1;
|
|
12064
|
-
|
|
12065
|
-
var asciiSize = _asciiSize,
|
|
12066
|
-
hasUnicode = _hasUnicode,
|
|
12067
|
-
unicodeSize = _unicodeSize;
|
|
12068
|
-
|
|
12069
11432
|
/**
|
|
12070
11433
|
* Gets the number of symbols in `string`.
|
|
12071
11434
|
*
|
|
@@ -12073,20 +11436,12 @@ var asciiSize = _asciiSize,
|
|
|
12073
11436
|
* @param {string} string The string to inspect.
|
|
12074
11437
|
* @returns {number} Returns the string size.
|
|
12075
11438
|
*/
|
|
12076
|
-
function stringSize
|
|
11439
|
+
function stringSize(string) {
|
|
12077
11440
|
return hasUnicode(string)
|
|
12078
11441
|
? unicodeSize(string)
|
|
12079
|
-
: asciiSize(string);
|
|
11442
|
+
: asciiSize$1(string);
|
|
12080
11443
|
}
|
|
12081
11444
|
|
|
12082
|
-
var _stringSize = stringSize$1;
|
|
12083
|
-
|
|
12084
|
-
var baseKeys = _baseKeys,
|
|
12085
|
-
getTag = _getTag,
|
|
12086
|
-
isArrayLike = isArrayLike_1,
|
|
12087
|
-
isString = isString_1,
|
|
12088
|
-
stringSize = _stringSize;
|
|
12089
|
-
|
|
12090
11445
|
/** `Object#toString` result references. */
|
|
12091
11446
|
var mapTag = '[object Map]',
|
|
12092
11447
|
setTag = '[object Set]';
|
|
@@ -12119,15 +11474,13 @@ function size$1(collection) {
|
|
|
12119
11474
|
if (isArrayLike(collection)) {
|
|
12120
11475
|
return isString(collection) ? stringSize(collection) : collection.length;
|
|
12121
11476
|
}
|
|
12122
|
-
var tag = getTag(collection);
|
|
11477
|
+
var tag = getTag$1(collection);
|
|
12123
11478
|
if (tag == mapTag || tag == setTag) {
|
|
12124
11479
|
return collection.size;
|
|
12125
11480
|
}
|
|
12126
11481
|
return baseKeys(collection).length;
|
|
12127
11482
|
}
|
|
12128
11483
|
|
|
12129
|
-
var size_1 = size$1;
|
|
12130
|
-
|
|
12131
11484
|
/**
|
|
12132
11485
|
* Lifecycle
|
|
12133
11486
|
* 1. @event `beforesorting` - Triggered when sorting just starts. Nothing has happened yet. This can be triggered from a column or from the source. If the type is from rows, the column will be undefined.
|
|
@@ -12148,7 +11501,7 @@ class SortingPlugin extends BasePlugin {
|
|
|
12148
11501
|
super(revogrid, providers);
|
|
12149
11502
|
this.revogrid = revogrid;
|
|
12150
11503
|
this.sortingPromise = null;
|
|
12151
|
-
this.postponeSort =
|
|
11504
|
+
this.postponeSort = debounce$1(async (order, comparison) => this.runSorting(order, comparison), 50);
|
|
12152
11505
|
const beforeanysource = async ({ detail: { type }, }) => {
|
|
12153
11506
|
// if sorting was provided - sort data
|
|
12154
11507
|
if (!!this.sorting && this.sortingFunc) {
|
|
@@ -12231,7 +11584,7 @@ class SortingPlugin extends BasePlugin {
|
|
|
12231
11584
|
this.sorting = Object.assign(Object.assign({}, this.sorting), sorting);
|
|
12232
11585
|
// extend sorting function with new sorting for multiple columns sorting
|
|
12233
11586
|
this.sortingFunc = Object.assign(Object.assign({}, this.sortingFunc), sortingFunc);
|
|
12234
|
-
if (column.prop in sorting &&
|
|
11587
|
+
if (column.prop in sorting && size$1(sorting) > 1 && order === undefined) {
|
|
12235
11588
|
delete sorting[column.prop];
|
|
12236
11589
|
delete sortingFunc[column.prop];
|
|
12237
11590
|
}
|
|
@@ -12263,7 +11616,7 @@ class SortingPlugin extends BasePlugin {
|
|
|
12263
11616
|
*/
|
|
12264
11617
|
async sort(sorting, sortingFunc, types = ['rgRow', 'rowPinStart', 'rowPinEnd']) {
|
|
12265
11618
|
// if no sorting - reset
|
|
12266
|
-
if (!
|
|
11619
|
+
if (!size$1(sorting)) {
|
|
12267
11620
|
this.sorting = undefined;
|
|
12268
11621
|
this.sortingFunc = undefined;
|
|
12269
11622
|
for (let type of types) {
|
|
@@ -12271,7 +11624,7 @@ class SortingPlugin extends BasePlugin {
|
|
|
12271
11624
|
// row data
|
|
12272
11625
|
const source = store.get('source');
|
|
12273
11626
|
// row indexes
|
|
12274
|
-
const proxyItems =
|
|
11627
|
+
const proxyItems = range$1(0, source.length);
|
|
12275
11628
|
setStore(store, {
|
|
12276
11629
|
proxyItems,
|
|
12277
11630
|
source: [...source],
|
|
@@ -12358,8 +11711,7 @@ class SortingPlugin extends BasePlugin {
|
|
|
12358
11711
|
* @param {number} upper The upper bound.
|
|
12359
11712
|
* @returns {number} Returns the clamped number.
|
|
12360
11713
|
*/
|
|
12361
|
-
|
|
12362
|
-
function baseClamp$1(number, lower, upper) {
|
|
11714
|
+
function baseClamp(number, lower, upper) {
|
|
12363
11715
|
if (number === number) {
|
|
12364
11716
|
if (upper !== undefined) {
|
|
12365
11717
|
number = number <= upper ? number : upper;
|
|
@@ -12371,11 +11723,6 @@ function baseClamp$1(number, lower, upper) {
|
|
|
12371
11723
|
return number;
|
|
12372
11724
|
}
|
|
12373
11725
|
|
|
12374
|
-
var _baseClamp = baseClamp$1;
|
|
12375
|
-
|
|
12376
|
-
var baseClamp = _baseClamp,
|
|
12377
|
-
toInteger$1 = toInteger_1;
|
|
12378
|
-
|
|
12379
11726
|
/** Used as references for the maximum length and index of an array. */
|
|
12380
11727
|
var MAX_ARRAY_LENGTH = 4294967295;
|
|
12381
11728
|
|
|
@@ -12406,15 +11753,10 @@ var MAX_ARRAY_LENGTH = 4294967295;
|
|
|
12406
11753
|
* _.toLength('3.2');
|
|
12407
11754
|
* // => 3
|
|
12408
11755
|
*/
|
|
12409
|
-
function toLength
|
|
12410
|
-
return value ? baseClamp(toInteger
|
|
11756
|
+
function toLength(value) {
|
|
11757
|
+
return value ? baseClamp(toInteger(value), 0, MAX_ARRAY_LENGTH) : 0;
|
|
12411
11758
|
}
|
|
12412
11759
|
|
|
12413
|
-
var toLength_1 = toLength$1;
|
|
12414
|
-
|
|
12415
|
-
var toInteger = toInteger_1,
|
|
12416
|
-
toLength = toLength_1;
|
|
12417
|
-
|
|
12418
11760
|
/**
|
|
12419
11761
|
* The base implementation of `_.fill` without an iteratee call guard.
|
|
12420
11762
|
*
|
|
@@ -12425,7 +11767,7 @@ var toInteger = toInteger_1,
|
|
|
12425
11767
|
* @param {number} [end=array.length] The end position.
|
|
12426
11768
|
* @returns {Array} Returns `array`.
|
|
12427
11769
|
*/
|
|
12428
|
-
function baseFill
|
|
11770
|
+
function baseFill(array, value, start, end) {
|
|
12429
11771
|
var length = array.length;
|
|
12430
11772
|
|
|
12431
11773
|
start = toInteger(start);
|
|
@@ -12443,11 +11785,6 @@ function baseFill$1(array, value, start, end) {
|
|
|
12443
11785
|
return array;
|
|
12444
11786
|
}
|
|
12445
11787
|
|
|
12446
|
-
var _baseFill = baseFill$1;
|
|
12447
|
-
|
|
12448
|
-
var baseFill = _baseFill,
|
|
12449
|
-
isIterateeCall = _isIterateeCall;
|
|
12450
|
-
|
|
12451
11788
|
/**
|
|
12452
11789
|
* Fills elements of `array` with `value` from `start` up to, but not
|
|
12453
11790
|
* including, `end`.
|
|
@@ -12489,8 +11826,6 @@ function fill(array, value, start, end) {
|
|
|
12489
11826
|
return baseFill(array, value, start, end);
|
|
12490
11827
|
}
|
|
12491
11828
|
|
|
12492
|
-
var fill_1 = fill;
|
|
12493
|
-
|
|
12494
11829
|
const INITIAL = {
|
|
12495
11830
|
mime: 'text/csv',
|
|
12496
11831
|
fileKind: 'csv',
|
|
@@ -12664,7 +11999,7 @@ class ExportFilePlugin extends BasePlugin {
|
|
|
12664
11999
|
}
|
|
12665
12000
|
getGroupHeaders(depth, groups, items, visibleItems) {
|
|
12666
12001
|
const rows = [];
|
|
12667
|
-
const template =
|
|
12002
|
+
const template = fill(new Array(items.length), '');
|
|
12668
12003
|
for (let d = 0; d < depth; d++) {
|
|
12669
12004
|
const rgRow = [...template];
|
|
12670
12005
|
rows.push(rgRow);
|
|
@@ -13236,7 +12571,7 @@ class ViewportService {
|
|
|
13236
12571
|
onColumnResize(type, { detail }, store) {
|
|
13237
12572
|
var _a;
|
|
13238
12573
|
(_a = this.config.dimensionProvider) === null || _a === void 0 ? void 0 : _a.setCustomSizes(type, detail, true);
|
|
13239
|
-
const changedItems =
|
|
12574
|
+
const changedItems = reduce(detail || {}, (r, size, i) => {
|
|
13240
12575
|
const index = parseInt(i, 10);
|
|
13241
12576
|
const item = getSourceItem(store, index);
|
|
13242
12577
|
if (item) {
|
|
@@ -13532,7 +12867,7 @@ class StretchColumn extends BasePlugin {
|
|
|
13532
12867
|
this.dropChanges();
|
|
13533
12868
|
// calculate grid size
|
|
13534
12869
|
let sizeDifference = this.revogrid.clientWidth - 1;
|
|
13535
|
-
|
|
12870
|
+
forEach(columns, (_, type) => {
|
|
13536
12871
|
const realSize = this.providers.dimension.stores[type].store.get('realSize');
|
|
13537
12872
|
sizeDifference -= realSize;
|
|
13538
12873
|
});
|
|
@@ -13998,7 +13333,7 @@ class ColumnPlugin extends BasePlugin {
|
|
|
13998
13333
|
super(revogrid, providers);
|
|
13999
13334
|
this.revogrid = revogrid;
|
|
14000
13335
|
this.providers = providers;
|
|
14001
|
-
this.moveFunc =
|
|
13336
|
+
this.moveFunc = debounce$1((e) => this.doMove(e), 5);
|
|
14002
13337
|
this.staticDragData = null;
|
|
14003
13338
|
this.dragData = null;
|
|
14004
13339
|
this.localSubscriptions = {};
|
|
@@ -14106,7 +13441,7 @@ class ColumnPlugin extends BasePlugin {
|
|
|
14106
13441
|
this.clearOrder();
|
|
14107
13442
|
}
|
|
14108
13443
|
clearLocalSubscriptions() {
|
|
14109
|
-
|
|
13444
|
+
forEach(this.localSubscriptions, ({ target, callback }, key) => target.removeEventListener(key, callback));
|
|
14110
13445
|
}
|
|
14111
13446
|
clearOrder() {
|
|
14112
13447
|
this.staticDragData = null;
|
|
@@ -14763,7 +14098,7 @@ class RevoGridComponent {
|
|
|
14763
14098
|
vals: after,
|
|
14764
14099
|
oldVals: before,
|
|
14765
14100
|
});
|
|
14766
|
-
// apply new
|
|
14101
|
+
// apply new values
|
|
14767
14102
|
const newRows = rowDefinitionByType(newVal);
|
|
14768
14103
|
// clear current defs
|
|
14769
14104
|
if (oldVal) {
|
|
@@ -14778,18 +14113,14 @@ class RevoGridComponent {
|
|
|
14778
14113
|
}
|
|
14779
14114
|
}
|
|
14780
14115
|
}
|
|
14781
|
-
|
|
14782
|
-
|
|
14783
|
-
this.dimensionProvider.setCustomSizes('rgRow', {});
|
|
14784
|
-
}
|
|
14785
|
-
else {
|
|
14786
|
-
return;
|
|
14787
|
-
}
|
|
14788
|
-
}
|
|
14789
|
-
Object.entries(newRows).forEach(([k, r]) => {
|
|
14116
|
+
// set new sizes
|
|
14117
|
+
rowTypes.forEach((t) => {
|
|
14790
14118
|
var _a;
|
|
14791
|
-
const
|
|
14792
|
-
|
|
14119
|
+
const newSizes = newRows[t];
|
|
14120
|
+
// apply new sizes or force update
|
|
14121
|
+
if (newSizes || forceUpdate) {
|
|
14122
|
+
(_a = this.dimensionProvider) === null || _a === void 0 ? void 0 : _a.setCustomSizes(t, (newSizes === null || newSizes === void 0 ? void 0 : newSizes.sizes) || {});
|
|
14123
|
+
}
|
|
14793
14124
|
});
|
|
14794
14125
|
}
|
|
14795
14126
|
trimmedRowsChanged(newVal = {}) {
|
|
@@ -15593,9 +14924,6 @@ class RevogrFocus$1 {
|
|
|
15593
14924
|
}; }
|
|
15594
14925
|
}
|
|
15595
14926
|
|
|
15596
|
-
var debounce = debounce_1,
|
|
15597
|
-
isObject = isObject_1;
|
|
15598
|
-
|
|
15599
14927
|
/** Error message constants. */
|
|
15600
14928
|
var FUNC_ERROR_TEXT = 'Expected a function';
|
|
15601
14929
|
|
|
@@ -15654,15 +14982,13 @@ function throttle(func, wait, options) {
|
|
|
15654
14982
|
leading = 'leading' in options ? !!options.leading : leading;
|
|
15655
14983
|
trailing = 'trailing' in options ? !!options.trailing : trailing;
|
|
15656
14984
|
}
|
|
15657
|
-
return debounce(func, wait, {
|
|
14985
|
+
return debounce$1(func, wait, {
|
|
15658
14986
|
'leading': leading,
|
|
15659
14987
|
'maxWait': wait,
|
|
15660
14988
|
'trailing': trailing
|
|
15661
14989
|
});
|
|
15662
14990
|
}
|
|
15663
14991
|
|
|
15664
|
-
var throttle_1 = throttle;
|
|
15665
|
-
|
|
15666
14992
|
const revogrTempRangeStyleCss = ".revo-drag-icon{width:11px;opacity:0.8}.revo-drag-icon::before{content:\"::\"}.revo-alt-icon{-webkit-mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 384 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M192.4375,383 C197.424479,383 201.663411,381.254557 205.154297,377.763672 L205.154297,377.763672 L264.25,318.667969 C270.234375,312.683594 271.605794,306.075846 268.364258,298.844727 C265.122721,291.613607 259.51237,287.998047 251.533203,287.998047 L251.533203,287.998047 L213.382812,287.998047 L213.382812,212.445312 L288.935547,212.445312 L288.935547,250.595703 C288.935547,258.57487 292.551107,264.185221 299.782227,267.426758 C307.013346,270.668294 313.621094,269.296875 319.605469,263.3125 L319.605469,263.3125 L378.701172,204.216797 C382.192057,200.725911 383.9375,196.486979 383.9375,191.5 C383.9375,186.513021 382.192057,182.274089 378.701172,178.783203 L378.701172,178.783203 L319.605469,119.6875 C313.621094,114.201823 307.013346,112.955078 299.782227,115.947266 C292.551107,118.939453 288.935547,124.42513 288.935547,132.404297 L288.935547,132.404297 L288.935547,170.554688 L213.382812,170.554688 L213.382812,95.0019531 L251.533203,95.0019531 C259.51237,95.0019531 264.998047,91.3863932 267.990234,84.1552734 C270.982422,76.9241536 269.735677,70.3164062 264.25,64.3320312 L264.25,64.3320312 L205.154297,5.23632812 C201.663411,1.74544271 197.424479,0 192.4375,0 C187.450521,0 183.211589,1.74544271 179.720703,5.23632812 L179.720703,5.23632812 L120.625,64.3320312 C114.640625,70.3164062 113.269206,76.9241536 116.510742,84.1552734 C119.752279,91.3863932 125.36263,95.0019531 133.341797,95.0019531 L133.341797,95.0019531 L171.492188,95.0019531 L171.492188,170.554688 L95.9394531,170.554688 L95.9394531,132.404297 C95.9394531,124.42513 92.3238932,118.814779 85.0927734,115.573242 C77.8616536,112.331706 71.2539062,113.703125 65.2695312,119.6875 L65.2695312,119.6875 L6.17382812,178.783203 C2.68294271,182.274089 0.9375,186.513021 0.9375,191.5 C0.9375,196.486979 2.68294271,200.725911 6.17382812,204.216797 L6.17382812,204.216797 L65.2695312,263.3125 C71.2539062,268.798177 77.8616536,270.044922 85.0927734,267.052734 C92.3238932,264.060547 95.9394531,258.57487 95.9394531,250.595703 L95.9394531,250.595703 L95.9394531,212.445312 L171.492188,212.445312 L171.492188,287.998047 L133.341797,287.998047 C125.36263,287.998047 119.876953,291.613607 116.884766,298.844727 C113.892578,306.075846 115.139323,312.683594 120.625,318.667969 L120.625,318.667969 L179.720703,377.763672 C183.211589,381.254557 187.450521,383 192.4375,383 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg viewBox='0 0 384 383' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cg%3E%3Cpath d='M192.4375,383 C197.424479,383 201.663411,381.254557 205.154297,377.763672 L205.154297,377.763672 L264.25,318.667969 C270.234375,312.683594 271.605794,306.075846 268.364258,298.844727 C265.122721,291.613607 259.51237,287.998047 251.533203,287.998047 L251.533203,287.998047 L213.382812,287.998047 L213.382812,212.445312 L288.935547,212.445312 L288.935547,250.595703 C288.935547,258.57487 292.551107,264.185221 299.782227,267.426758 C307.013346,270.668294 313.621094,269.296875 319.605469,263.3125 L319.605469,263.3125 L378.701172,204.216797 C382.192057,200.725911 383.9375,196.486979 383.9375,191.5 C383.9375,186.513021 382.192057,182.274089 378.701172,178.783203 L378.701172,178.783203 L319.605469,119.6875 C313.621094,114.201823 307.013346,112.955078 299.782227,115.947266 C292.551107,118.939453 288.935547,124.42513 288.935547,132.404297 L288.935547,132.404297 L288.935547,170.554688 L213.382812,170.554688 L213.382812,95.0019531 L251.533203,95.0019531 C259.51237,95.0019531 264.998047,91.3863932 267.990234,84.1552734 C270.982422,76.9241536 269.735677,70.3164062 264.25,64.3320312 L264.25,64.3320312 L205.154297,5.23632812 C201.663411,1.74544271 197.424479,0 192.4375,0 C187.450521,0 183.211589,1.74544271 179.720703,5.23632812 L179.720703,5.23632812 L120.625,64.3320312 C114.640625,70.3164062 113.269206,76.9241536 116.510742,84.1552734 C119.752279,91.3863932 125.36263,95.0019531 133.341797,95.0019531 L133.341797,95.0019531 L171.492188,95.0019531 L171.492188,170.554688 L95.9394531,170.554688 L95.9394531,132.404297 C95.9394531,124.42513 92.3238932,118.814779 85.0927734,115.573242 C77.8616536,112.331706 71.2539062,113.703125 65.2695312,119.6875 L65.2695312,119.6875 L6.17382812,178.783203 C2.68294271,182.274089 0.9375,186.513021 0.9375,191.5 C0.9375,196.486979 2.68294271,200.725911 6.17382812,204.216797 L6.17382812,204.216797 L65.2695312,263.3125 C71.2539062,268.798177 77.8616536,270.044922 85.0927734,267.052734 C92.3238932,264.060547 95.9394531,258.57487 95.9394531,250.595703 L95.9394531,250.595703 L95.9394531,212.445312 L171.492188,212.445312 L171.492188,287.998047 L133.341797,287.998047 C125.36263,287.998047 119.876953,291.613607 116.884766,298.844727 C113.892578,306.075846 115.139323,312.683594 120.625,318.667969 L120.625,318.667969 L179.720703,377.763672 C183.211589,381.254557 187.450521,383 192.4375,383 Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E\");width:11px;height:11px;background-size:cover;background-repeat:no-repeat}.arrow-down{position:absolute;right:5px;top:0}.arrow-down svg{width:8px;margin-top:5px;margin-left:5px;opacity:0.4}.cell-value-wrapper{margin-right:10px;overflow:hidden;text-overflow:ellipsis}.revo-button{position:relative;overflow:hidden;color:#fff;background-color:#6200ee;height:34px;line-height:34px;padding:0 15px;outline:0;border:0;border-radius:7px;box-sizing:border-box;cursor:pointer}.revo-button.green{background-color:#009037;border:1px solid #00772d}.revo-button.red{background-color:#E0662E;border:1px solid #d55920}.revo-button:disabled,.revo-button[disabled]{cursor:not-allowed !important;filter:opacity(0.35) !important}.revo-button.light{border:1px solid #cedefa;line-height:32px;background:none;color:#000;box-shadow:none}.temp-bg-range{display:block !important;position:absolute;pointer-events:none;z-index:9;border:1px solid rgb(255, 94, 0);box-sizing:border-box}.temp-bg-range.Selection{border:1px dashed gray}.temp-bg-range>div{width:1px;height:1px;position:absolute}.temp-bg-range>div.top{top:-1px}.temp-bg-range>div.bottom{bottom:-1px}.temp-bg-range>div.left{left:-1px}.temp-bg-range>div.right{right:-1px}";
|
|
15667
14993
|
var RevogrTempRangeStyle0 = revogrTempRangeStyleCss;
|
|
15668
14994
|
|
|
@@ -15672,7 +14998,7 @@ var RevogrTempRangeStyle0 = revogrTempRangeStyleCss;
|
|
|
15672
14998
|
class RevogrFocus {
|
|
15673
14999
|
constructor(hostRef) {
|
|
15674
15000
|
registerInstance(this, hostRef);
|
|
15675
|
-
this.onChange =
|
|
15001
|
+
this.onChange = throttle((e) => this.doChange(e), 300);
|
|
15676
15002
|
this.selectionStore = undefined;
|
|
15677
15003
|
this.dimensionRow = undefined;
|
|
15678
15004
|
this.dimensionCol = undefined;
|
|
@@ -15739,9 +15065,7 @@ class RevogrFocus {
|
|
|
15739
15065
|
}; }
|
|
15740
15066
|
}
|
|
15741
15067
|
|
|
15742
|
-
var
|
|
15743
|
-
|
|
15744
|
-
var defineProperty$1 = (function() {
|
|
15068
|
+
var defineProperty = (function() {
|
|
15745
15069
|
try {
|
|
15746
15070
|
var func = getNative(Object, 'defineProperty');
|
|
15747
15071
|
func({}, '', {});
|
|
@@ -15749,9 +15073,7 @@ var defineProperty$1 = (function() {
|
|
|
15749
15073
|
} catch (e) {}
|
|
15750
15074
|
}());
|
|
15751
15075
|
|
|
15752
|
-
var
|
|
15753
|
-
|
|
15754
|
-
var defineProperty = _defineProperty;
|
|
15076
|
+
var defineProperty$1 = defineProperty;
|
|
15755
15077
|
|
|
15756
15078
|
/**
|
|
15757
15079
|
* The base implementation of `assignValue` and `assignMergeValue` without
|
|
@@ -15762,9 +15084,9 @@ var defineProperty = _defineProperty;
|
|
|
15762
15084
|
* @param {string} key The key of the property to assign.
|
|
15763
15085
|
* @param {*} value The value to assign.
|
|
15764
15086
|
*/
|
|
15765
|
-
function baseAssignValue
|
|
15766
|
-
if (key == '__proto__' && defineProperty) {
|
|
15767
|
-
defineProperty(object, key, {
|
|
15087
|
+
function baseAssignValue(object, key, value) {
|
|
15088
|
+
if (key == '__proto__' && defineProperty$1) {
|
|
15089
|
+
defineProperty$1(object, key, {
|
|
15768
15090
|
'configurable': true,
|
|
15769
15091
|
'enumerable': true,
|
|
15770
15092
|
'value': value,
|
|
@@ -15775,8 +15097,6 @@ function baseAssignValue$1(object, key, value) {
|
|
|
15775
15097
|
}
|
|
15776
15098
|
}
|
|
15777
15099
|
|
|
15778
|
-
var _baseAssignValue = baseAssignValue$1;
|
|
15779
|
-
|
|
15780
15100
|
/**
|
|
15781
15101
|
* A specialized version of `baseAggregator` for arrays.
|
|
15782
15102
|
*
|
|
@@ -15787,8 +15107,7 @@ var _baseAssignValue = baseAssignValue$1;
|
|
|
15787
15107
|
* @param {Object} accumulator The initial aggregated object.
|
|
15788
15108
|
* @returns {Function} Returns `accumulator`.
|
|
15789
15109
|
*/
|
|
15790
|
-
|
|
15791
|
-
function arrayAggregator$1(array, setter, iteratee, accumulator) {
|
|
15110
|
+
function arrayAggregator(array, setter, iteratee, accumulator) {
|
|
15792
15111
|
var index = -1,
|
|
15793
15112
|
length = array == null ? 0 : array.length;
|
|
15794
15113
|
|
|
@@ -15799,10 +15118,6 @@ function arrayAggregator$1(array, setter, iteratee, accumulator) {
|
|
|
15799
15118
|
return accumulator;
|
|
15800
15119
|
}
|
|
15801
15120
|
|
|
15802
|
-
var _arrayAggregator = arrayAggregator$1;
|
|
15803
|
-
|
|
15804
|
-
var baseEach = _baseEach;
|
|
15805
|
-
|
|
15806
15121
|
/**
|
|
15807
15122
|
* Aggregates elements of `collection` on `accumulator` with keys transformed
|
|
15808
15123
|
* by `iteratee` and values set by `setter`.
|
|
@@ -15814,20 +15129,13 @@ var baseEach = _baseEach;
|
|
|
15814
15129
|
* @param {Object} accumulator The initial aggregated object.
|
|
15815
15130
|
* @returns {Function} Returns `accumulator`.
|
|
15816
15131
|
*/
|
|
15817
|
-
function baseAggregator
|
|
15818
|
-
baseEach(collection, function(value, key, collection) {
|
|
15132
|
+
function baseAggregator(collection, setter, iteratee, accumulator) {
|
|
15133
|
+
baseEach$1(collection, function(value, key, collection) {
|
|
15819
15134
|
setter(accumulator, value, iteratee(value), collection);
|
|
15820
15135
|
});
|
|
15821
15136
|
return accumulator;
|
|
15822
15137
|
}
|
|
15823
15138
|
|
|
15824
|
-
var _baseAggregator = baseAggregator$1;
|
|
15825
|
-
|
|
15826
|
-
var arrayAggregator = _arrayAggregator,
|
|
15827
|
-
baseAggregator = _baseAggregator,
|
|
15828
|
-
baseIteratee = _baseIteratee,
|
|
15829
|
-
isArray = isArray_1;
|
|
15830
|
-
|
|
15831
15139
|
/**
|
|
15832
15140
|
* Creates a function like `_.groupBy`.
|
|
15833
15141
|
*
|
|
@@ -15836,20 +15144,15 @@ var arrayAggregator = _arrayAggregator,
|
|
|
15836
15144
|
* @param {Function} [initializer] The accumulator object initializer.
|
|
15837
15145
|
* @returns {Function} Returns the new aggregator function.
|
|
15838
15146
|
*/
|
|
15839
|
-
function createAggregator
|
|
15147
|
+
function createAggregator(setter, initializer) {
|
|
15840
15148
|
return function(collection, iteratee) {
|
|
15841
|
-
var func = isArray(collection) ? arrayAggregator : baseAggregator,
|
|
15149
|
+
var func = isArray$1(collection) ? arrayAggregator : baseAggregator,
|
|
15842
15150
|
accumulator = initializer ? initializer() : {};
|
|
15843
15151
|
|
|
15844
15152
|
return func(collection, setter, baseIteratee(iteratee), accumulator);
|
|
15845
15153
|
};
|
|
15846
15154
|
}
|
|
15847
15155
|
|
|
15848
|
-
var _createAggregator = createAggregator$1;
|
|
15849
|
-
|
|
15850
|
-
var baseAssignValue = _baseAssignValue,
|
|
15851
|
-
createAggregator = _createAggregator;
|
|
15852
|
-
|
|
15853
15156
|
/**
|
|
15854
15157
|
* Creates an object composed of keys generated from the results of running
|
|
15855
15158
|
* each element of `collection` thru `iteratee`. The corresponding value of
|
|
@@ -15882,7 +15185,7 @@ var keyBy = createAggregator(function(result, value, key) {
|
|
|
15882
15185
|
baseAssignValue(result, key, value);
|
|
15883
15186
|
});
|
|
15884
15187
|
|
|
15885
|
-
var
|
|
15188
|
+
var keyBy$1 = keyBy;
|
|
15886
15189
|
|
|
15887
15190
|
const SortingSign = ({ column }) => {
|
|
15888
15191
|
var _a;
|
|
@@ -15969,7 +15272,7 @@ const ColumnGroupsRenderer = ({ additionalData, providers, depth, groups, visibl
|
|
|
15969
15272
|
for (let group of groups[i]) {
|
|
15970
15273
|
// if group in visible range
|
|
15971
15274
|
// find first visible group prop in visible columns range
|
|
15972
|
-
const indexFirstVisibleCol =
|
|
15275
|
+
const indexFirstVisibleCol = findIndex(group.ids, id => typeof visibleProps[id] === 'number');
|
|
15973
15276
|
if (indexFirstVisibleCol > -1) {
|
|
15974
15277
|
const colVisibleIndex = visibleProps[group.ids[indexFirstVisibleCol]]; // get column index
|
|
15975
15278
|
const groupStartIndex = colVisibleIndex - indexFirstVisibleCol; // first column index in group
|
|
@@ -16021,7 +15324,7 @@ class RevogrHeaderComponent {
|
|
|
16021
15324
|
}
|
|
16022
15325
|
onResizeGroup(changedX, startIndex, endIndex) {
|
|
16023
15326
|
const sizes = {};
|
|
16024
|
-
const cols =
|
|
15327
|
+
const cols = keyBy$1(this.viewportCol.get('items'), 'itemIndex');
|
|
16025
15328
|
const change = changedX / (endIndex - startIndex + 1);
|
|
16026
15329
|
for (let i = startIndex; i <= endIndex; i++) {
|
|
16027
15330
|
const item = cols[i];
|
|
@@ -16506,7 +15809,7 @@ class GridResizeService {
|
|
|
16506
15809
|
constructor(el, events) {
|
|
16507
15810
|
this.events = events;
|
|
16508
15811
|
this.resizeObserver = null;
|
|
16509
|
-
this.resize =
|
|
15812
|
+
this.resize = throttle((e, o) => { var _a; return (_a = this.events) === null || _a === void 0 ? void 0 : _a.resize(e, o); }, 10);
|
|
16510
15813
|
this.init(el);
|
|
16511
15814
|
}
|
|
16512
15815
|
async init(el) {
|
|
@@ -17385,7 +16688,7 @@ exports.hydrateApp = hydrateApp;
|
|
|
17385
16688
|
}
|
|
17386
16689
|
|
|
17387
16690
|
/*
|
|
17388
|
-
Stencil Hydrate Runner v4.
|
|
16691
|
+
Stencil Hydrate Runner v4.20.0 | MIT Licensed | https://stenciljs.com
|
|
17389
16692
|
*/
|
|
17390
16693
|
var __defProp = Object.defineProperty;
|
|
17391
16694
|
var __export = (target, all) => {
|
|
@@ -29366,11 +28669,6 @@ patchPropAttributes(
|
|
|
29366
28669
|
type: "submit"
|
|
29367
28670
|
}
|
|
29368
28671
|
);
|
|
29369
|
-
Object.defineProperty(MockButtonElement.prototype, "form", {
|
|
29370
|
-
get() {
|
|
29371
|
-
return this.hasAttribute("form") ? this.getAttribute("form") : null;
|
|
29372
|
-
}
|
|
29373
|
-
});
|
|
29374
28672
|
var MockImageElement = class extends MockHTMLElement {
|
|
29375
28673
|
constructor(ownerDocument) {
|
|
29376
28674
|
super(ownerDocument, "img");
|