@dso-toolkit/core 73.2.1 → 73.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bundle/dso-accordion-section.d.ts +11 -0
- package/dist/bundle/dso-accordion-section.js +281 -0
- package/dist/bundle/dso-accordion-section.js.map +1 -0
- package/dist/bundle/dso-accordion.d.ts +11 -0
- package/dist/bundle/dso-accordion.js +262 -0
- package/dist/bundle/dso-accordion.js.map +1 -0
- package/dist/bundle/dso-action-list-item.d.ts +11 -0
- package/dist/bundle/dso-action-list-item.js +63 -0
- package/dist/bundle/dso-action-list-item.js.map +1 -0
- package/dist/bundle/dso-action-list.d.ts +11 -0
- package/dist/bundle/dso-action-list.js +38 -0
- package/dist/bundle/dso-action-list.js.map +1 -0
- package/dist/bundle/dso-advanced-select.d.ts +11 -0
- package/dist/bundle/dso-advanced-select.js +155 -0
- package/dist/bundle/dso-advanced-select.js.map +1 -0
- package/dist/bundle/dso-alert.d.ts +11 -0
- package/dist/bundle/dso-alert.js +9 -0
- package/dist/bundle/dso-alert.js.map +1 -0
- package/dist/bundle/dso-annotation-activiteit.d.ts +11 -0
- package/dist/bundle/dso-annotation-activiteit.js +87 -0
- package/dist/bundle/dso-annotation-activiteit.js.map +1 -0
- package/dist/bundle/dso-annotation-gebiedsaanwijzing.d.ts +11 -0
- package/dist/bundle/dso-annotation-gebiedsaanwijzing.js +83 -0
- package/dist/bundle/dso-annotation-gebiedsaanwijzing.js.map +1 -0
- package/dist/bundle/dso-annotation-kaart.d.ts +11 -0
- package/dist/bundle/dso-annotation-kaart.js +72 -0
- package/dist/bundle/dso-annotation-kaart.js.map +1 -0
- package/dist/bundle/dso-annotation-locatie.d.ts +11 -0
- package/dist/bundle/dso-annotation-locatie.js +9 -0
- package/dist/bundle/dso-annotation-locatie.js.map +1 -0
- package/dist/bundle/dso-annotation-omgevingsnormwaarde.d.ts +11 -0
- package/dist/bundle/dso-annotation-omgevingsnormwaarde.js +87 -0
- package/dist/bundle/dso-annotation-omgevingsnormwaarde.js.map +1 -0
- package/dist/bundle/dso-attachments-counter.d.ts +11 -0
- package/dist/bundle/dso-attachments-counter.js +9 -0
- package/dist/bundle/dso-attachments-counter.js.map +1 -0
- package/dist/bundle/dso-autosuggest.d.ts +11 -0
- package/dist/bundle/dso-autosuggest.js +588 -0
- package/dist/bundle/dso-autosuggest.js.map +1 -0
- package/dist/bundle/dso-badge.d.ts +11 -0
- package/dist/bundle/dso-badge.js +9 -0
- package/dist/bundle/dso-badge.js.map +1 -0
- package/dist/bundle/dso-banner.d.ts +11 -0
- package/dist/bundle/dso-banner.js +53 -0
- package/dist/bundle/dso-banner.js.map +1 -0
- package/dist/bundle/dso-card-container.d.ts +11 -0
- package/dist/bundle/dso-card-container.js +42 -0
- package/dist/bundle/dso-card-container.js.map +1 -0
- package/dist/bundle/dso-card.d.ts +11 -0
- package/dist/bundle/dso-card.js +72 -0
- package/dist/bundle/dso-card.js.map +1 -0
- package/dist/bundle/dso-contact-information.d.ts +11 -0
- package/dist/bundle/dso-contact-information.js +36 -0
- package/dist/bundle/dso-contact-information.js.map +1 -0
- package/dist/bundle/dso-date-picker-legacy.d.ts +11 -0
- package/dist/bundle/dso-date-picker-legacy.js +773 -0
- package/dist/bundle/dso-date-picker-legacy.js.map +1 -0
- package/dist/bundle/dso-date-picker.d.ts +11 -0
- package/dist/bundle/dso-date-picker.js +187 -0
- package/dist/bundle/dso-date-picker.js.map +1 -0
- package/dist/bundle/dso-document-card.d.ts +11 -0
- package/dist/bundle/dso-document-card.js +66 -0
- package/dist/bundle/dso-document-card.js.map +1 -0
- package/dist/bundle/dso-document-component.d.ts +11 -0
- package/dist/bundle/dso-document-component.js +9 -0
- package/dist/bundle/dso-document-component.js.map +1 -0
- package/dist/bundle/dso-dropdown-menu.d.ts +11 -0
- package/dist/bundle/dso-dropdown-menu.js +9 -0
- package/dist/bundle/dso-dropdown-menu.js.map +1 -0
- package/dist/bundle/dso-expandable.d.ts +11 -0
- package/dist/bundle/dso-expandable.js +9 -0
- package/dist/bundle/dso-expandable.js.map +1 -0
- package/dist/bundle/dso-header.d.ts +11 -0
- package/dist/bundle/dso-header.js +218 -0
- package/dist/bundle/dso-header.js.map +1 -0
- package/dist/bundle/dso-highlight-box.d.ts +11 -0
- package/dist/bundle/dso-highlight-box.js +45 -0
- package/dist/bundle/dso-highlight-box.js.map +1 -0
- package/dist/bundle/dso-icon.d.ts +11 -0
- package/dist/bundle/dso-icon.js +9 -0
- package/dist/bundle/dso-icon.js.map +1 -0
- package/dist/bundle/dso-image-overlay.d.ts +11 -0
- package/dist/bundle/dso-image-overlay.js +9 -0
- package/dist/bundle/dso-image-overlay.js.map +1 -0
- package/dist/bundle/dso-info-button.d.ts +11 -0
- package/dist/bundle/dso-info-button.js +9 -0
- package/dist/bundle/dso-info-button.js.map +1 -0
- package/dist/bundle/dso-info.d.ts +11 -0
- package/dist/bundle/dso-info.js +9 -0
- package/dist/bundle/dso-info.js.map +1 -0
- package/dist/bundle/dso-input-range.d.ts +11 -0
- package/dist/bundle/dso-input-range.js +59 -0
- package/dist/bundle/dso-input-range.js.map +1 -0
- package/dist/bundle/dso-label.d.ts +11 -0
- package/dist/bundle/dso-label.js +9 -0
- package/dist/bundle/dso-label.js.map +1 -0
- package/dist/bundle/dso-legend-item.d.ts +11 -0
- package/dist/bundle/dso-legend-item.js +90 -0
- package/dist/bundle/dso-legend-item.js.map +1 -0
- package/dist/bundle/dso-list-button.d.ts +11 -0
- package/dist/bundle/dso-list-button.js +118 -0
- package/dist/bundle/dso-list-button.js.map +1 -0
- package/dist/bundle/dso-logo.d.ts +11 -0
- package/dist/bundle/dso-logo.js +64 -0
- package/dist/bundle/dso-logo.js.map +1 -0
- package/dist/bundle/dso-map-base-layers.d.ts +11 -0
- package/dist/bundle/dso-map-base-layers.js +101 -0
- package/dist/bundle/dso-map-base-layers.js.map +1 -0
- package/dist/bundle/dso-map-controls.d.ts +11 -0
- package/dist/bundle/dso-map-controls.js +138 -0
- package/dist/bundle/dso-map-controls.js.map +1 -0
- package/dist/bundle/dso-map-overlays.d.ts +11 -0
- package/dist/bundle/dso-map-overlays.js +102 -0
- package/dist/bundle/dso-map-overlays.js.map +1 -0
- package/dist/bundle/dso-mark-bar.d.ts +11 -0
- package/dist/bundle/dso-mark-bar.js +91 -0
- package/dist/bundle/dso-mark-bar.js.map +1 -0
- package/dist/bundle/dso-modal.d.ts +11 -0
- package/dist/bundle/dso-modal.js +120 -0
- package/dist/bundle/dso-modal.js.map +1 -0
- package/dist/bundle/dso-onboarding-tip.d.ts +11 -0
- package/dist/bundle/dso-onboarding-tip.js +1839 -0
- package/dist/bundle/dso-onboarding-tip.js.map +1 -0
- package/dist/bundle/dso-ozon-content.d.ts +11 -0
- package/dist/bundle/dso-ozon-content.js +9 -0
- package/dist/bundle/dso-ozon-content.js.map +1 -0
- package/dist/bundle/dso-pagination.d.ts +11 -0
- package/dist/bundle/dso-pagination.js +188 -0
- package/dist/bundle/dso-pagination.js.map +1 -0
- package/dist/bundle/dso-panel.d.ts +11 -0
- package/dist/bundle/dso-panel.js +9 -0
- package/dist/bundle/dso-panel.js.map +1 -0
- package/dist/bundle/dso-plekinfo-card.d.ts +11 -0
- package/dist/bundle/dso-plekinfo-card.js +88 -0
- package/dist/bundle/dso-plekinfo-card.js.map +1 -0
- package/dist/bundle/dso-progress-bar.d.ts +11 -0
- package/dist/bundle/dso-progress-bar.js +50 -0
- package/dist/bundle/dso-progress-bar.js.map +1 -0
- package/dist/bundle/dso-progress-indicator.d.ts +11 -0
- package/dist/bundle/dso-progress-indicator.js +9 -0
- package/dist/bundle/dso-progress-indicator.js.map +1 -0
- package/dist/bundle/dso-project-item.d.ts +11 -0
- package/dist/bundle/dso-project-item.js +56 -0
- package/dist/bundle/dso-project-item.js.map +1 -0
- package/dist/bundle/dso-renvooi.d.ts +11 -0
- package/dist/bundle/dso-renvooi.js +9 -0
- package/dist/bundle/dso-renvooi.js.map +1 -0
- package/dist/bundle/dso-responsive-element.d.ts +11 -0
- package/dist/bundle/dso-responsive-element.js +9 -0
- package/dist/bundle/dso-responsive-element.js.map +1 -0
- package/dist/bundle/dso-scrollable.d.ts +11 -0
- package/dist/bundle/dso-scrollable.js +9 -0
- package/dist/bundle/dso-scrollable.js.map +1 -0
- package/dist/bundle/dso-selectable.d.ts +11 -0
- package/dist/bundle/dso-selectable.js +9 -0
- package/dist/bundle/dso-selectable.js.map +1 -0
- package/dist/bundle/dso-skiplink.d.ts +11 -0
- package/dist/bundle/dso-skiplink.js +53 -0
- package/dist/bundle/dso-skiplink.js.map +1 -0
- package/dist/bundle/dso-slide-toggle.d.ts +11 -0
- package/dist/bundle/dso-slide-toggle.js +9 -0
- package/dist/bundle/dso-slide-toggle.js.map +1 -0
- package/dist/bundle/dso-survey-rating.d.ts +11 -0
- package/dist/bundle/dso-survey-rating.js +70 -0
- package/dist/bundle/dso-survey-rating.js.map +1 -0
- package/dist/bundle/dso-tab.d.ts +11 -0
- package/dist/bundle/dso-tab.js +70 -0
- package/dist/bundle/dso-tab.js.map +1 -0
- package/dist/bundle/dso-table.d.ts +11 -0
- package/dist/bundle/dso-table.js +9 -0
- package/dist/bundle/dso-table.js.map +1 -0
- package/dist/bundle/dso-tabs.d.ts +11 -0
- package/dist/bundle/dso-tabs.js +94 -0
- package/dist/bundle/dso-tabs.js.map +1 -0
- package/dist/bundle/dso-toggletip.d.ts +11 -0
- package/dist/bundle/dso-toggletip.js +9 -0
- package/dist/bundle/dso-toggletip.js.map +1 -0
- package/dist/bundle/dso-tooltip.d.ts +11 -0
- package/dist/bundle/dso-tooltip.js +9 -0
- package/dist/bundle/dso-tooltip.js.map +1 -0
- package/dist/bundle/dso-tree-view.d.ts +11 -0
- package/dist/bundle/dso-tree-view.js +237 -0
- package/dist/bundle/dso-tree-view.js.map +1 -0
- package/dist/bundle/dso-viewer-grid.d.ts +11 -0
- package/dist/bundle/dso-viewer-grid.js +351 -0
- package/dist/bundle/dso-viewer-grid.js.map +1 -0
- package/dist/bundle/dsot-document-component-demo.d.ts +11 -0
- package/dist/bundle/dsot-document-component-demo.js +1957 -0
- package/dist/bundle/dsot-document-component-demo.js.map +1 -0
- package/dist/bundle/index.d.ts +45 -0
- package/dist/bundle/index.js +143 -0
- package/dist/bundle/index.js.map +1 -0
- package/dist/bundle/p-0JGmXD8O.js +59 -0
- package/dist/bundle/p-0JGmXD8O.js.map +1 -0
- package/dist/bundle/p-BF0_OXTe.js +60 -0
- package/dist/bundle/p-BF0_OXTe.js.map +1 -0
- package/dist/bundle/p-BPLPqKUj.js +163 -0
- package/dist/bundle/p-BPLPqKUj.js.map +1 -0
- package/dist/bundle/p-B_kXuEcW.js +2178 -0
- package/dist/bundle/p-B_kXuEcW.js.map +1 -0
- package/dist/bundle/p-BacS1uCc.js +35 -0
- package/dist/bundle/p-BacS1uCc.js.map +1 -0
- package/dist/bundle/p-BdyXpl60.js +76 -0
- package/dist/bundle/p-BdyXpl60.js.map +1 -0
- package/dist/bundle/p-BocpUT46.js +992 -0
- package/dist/bundle/p-BocpUT46.js.map +1 -0
- package/dist/bundle/p-BtcZ9oZ6.js +115 -0
- package/dist/bundle/p-BtcZ9oZ6.js.map +1 -0
- package/dist/bundle/p-BxvZeNWe.js +126 -0
- package/dist/bundle/p-BxvZeNWe.js.map +1 -0
- package/dist/bundle/p-C1tscMvU.js +43 -0
- package/dist/bundle/p-C1tscMvU.js.map +1 -0
- package/dist/bundle/p-CZ2ipzNO.js +63 -0
- package/dist/bundle/p-CZ2ipzNO.js.map +1 -0
- package/dist/bundle/p-Cbba2ZRN.js +36 -0
- package/dist/bundle/p-Cbba2ZRN.js.map +1 -0
- package/dist/bundle/p-ChV9xqsO.js +6 -0
- package/dist/bundle/p-ChV9xqsO.js.map +1 -0
- package/dist/bundle/p-ChrHXjXh.js +80 -0
- package/dist/bundle/p-ChrHXjXh.js.map +1 -0
- package/dist/bundle/p-Cng7insW.js +145 -0
- package/dist/bundle/p-Cng7insW.js.map +1 -0
- package/dist/bundle/p-CodDyi2J.js +15 -0
- package/dist/bundle/p-CodDyi2J.js.map +1 -0
- package/dist/bundle/p-CsY83cJO.js +1801 -0
- package/dist/bundle/p-CsY83cJO.js.map +1 -0
- package/dist/bundle/p-CvGnEQcm.js +80 -0
- package/dist/bundle/p-CvGnEQcm.js.map +1 -0
- package/dist/bundle/p-D2nuXSd0.js +723 -0
- package/dist/bundle/p-D2nuXSd0.js.map +1 -0
- package/dist/bundle/p-D9Yjz_Sm.js +125 -0
- package/dist/bundle/p-D9Yjz_Sm.js.map +1 -0
- package/dist/bundle/p-DDDh2Izf.js +12 -0
- package/dist/bundle/p-DDDh2Izf.js.map +1 -0
- package/dist/bundle/p-DGWbWwct.js +121 -0
- package/dist/bundle/p-DGWbWwct.js.map +1 -0
- package/dist/bundle/p-DHO_Za64.js +1729 -0
- package/dist/bundle/p-DHO_Za64.js.map +1 -0
- package/dist/bundle/p-DPH021KD.js +14 -0
- package/dist/bundle/p-DPH021KD.js.map +1 -0
- package/dist/bundle/p-DSyv-znO.js +18 -0
- package/dist/bundle/p-DSyv-znO.js.map +1 -0
- package/dist/bundle/p-DWTXTDbr.js +253 -0
- package/dist/bundle/p-DWTXTDbr.js.map +1 -0
- package/dist/bundle/p-DacnxEpv.js +78 -0
- package/dist/bundle/p-DacnxEpv.js.map +1 -0
- package/dist/bundle/p-DcpG4jOU.js +99 -0
- package/dist/bundle/p-DcpG4jOU.js.map +1 -0
- package/dist/bundle/p-DrR9RuIM.js +83 -0
- package/dist/bundle/p-DrR9RuIM.js.map +1 -0
- package/dist/bundle/p-DvqO1i1s.js +1162 -0
- package/dist/bundle/p-DvqO1i1s.js.map +1 -0
- package/dist/bundle/p-Hgv-pDpy.js +13 -0
- package/dist/bundle/p-Hgv-pDpy.js.map +1 -0
- package/dist/bundle/p-Pk8qng7t.js +573 -0
- package/dist/bundle/p-Pk8qng7t.js.map +1 -0
- package/dist/bundle/p-WYm6cxra.js +64 -0
- package/dist/bundle/p-WYm6cxra.js.map +1 -0
- package/dist/bundle/p-dB3K6tfb.js +41 -0
- package/dist/bundle/p-dB3K6tfb.js.map +1 -0
- package/dist/bundle/p-kDtv6DeD.js +314 -0
- package/dist/bundle/p-kDtv6DeD.js.map +1 -0
- package/dist/bundle/p-pVO6m7lg.js +271 -0
- package/dist/bundle/p-pVO6m7lg.js.map +1 -0
- package/dist/bundle/p-xNnEBBZG.js +63 -0
- package/dist/bundle/p-xNnEBBZG.js.map +1 -0
- package/dist/cjs/dso-accordion-section.cjs.entry.js +3 -3
- package/dist/cjs/dso-accordion-section.cjs.entry.js.map +1 -1
- package/dist/cjs/dso-accordion-section.entry.cjs.js.map +1 -1
- package/dist/cjs/dso-alert.dso-badge.dso-image-overlay.dso-ozon-content.dso-panel.dso-table.entry.cjs.js.map +1 -1
- package/dist/cjs/dso-alert_6.cjs.entry.js +3 -7
- package/dist/cjs/dso-alert_6.cjs.entry.js.map +1 -1
- package/dist/cjs/dso-onboarding-tip.cjs.entry.js +24 -10
- package/dist/cjs/dso-onboarding-tip.cjs.entry.js.map +1 -1
- package/dist/cjs/dso-onboarding-tip.entry.cjs.js.map +1 -1
- package/dist/cjs/dso-toolkit.cjs.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/components/accordion/components/accordion-section.js +3 -3
- package/dist/collection/components/accordion/components/accordion-section.js.map +1 -1
- package/dist/collection/components/onboarding-tip/onboarding-tip.css +21 -1
- package/dist/collection/components/onboarding-tip/onboarding-tip.js +28 -9
- package/dist/collection/components/onboarding-tip/onboarding-tip.js.map +1 -1
- package/dist/collection/components/table/table.css +2 -2
- package/dist/collection/components/table/table.js +3 -26
- package/dist/collection/components/table/table.js.map +1 -1
- package/dist/components/dso-accordion-section.js +3 -3
- package/dist/components/dso-accordion-section.js.map +1 -1
- package/dist/components/dso-onboarding-tip.js +26 -11
- package/dist/components/dso-onboarding-tip.js.map +1 -1
- package/dist/components/table.js +4 -8
- package/dist/components/table.js.map +1 -1
- package/dist/dso-toolkit/dso-accordion-section.entry.esm.js.map +1 -1
- package/dist/dso-toolkit/dso-alert.dso-badge.dso-image-overlay.dso-ozon-content.dso-panel.dso-table.entry.esm.js.map +1 -1
- package/dist/dso-toolkit/dso-onboarding-tip.entry.esm.js.map +1 -1
- package/dist/dso-toolkit/dso-toolkit.esm.js +1 -1
- package/dist/dso-toolkit/{p-8084c884.entry.js → p-5fa008c6.entry.js} +2 -2
- package/dist/dso-toolkit/{p-8084c884.entry.js.map → p-5fa008c6.entry.js.map} +1 -1
- package/dist/dso-toolkit/{p-6a156238.entry.js → p-6f89da1c.entry.js} +2 -2
- package/dist/dso-toolkit/{p-6a156238.entry.js.map → p-6f89da1c.entry.js.map} +1 -1
- package/dist/dso-toolkit/p-909118a3.entry.js +2 -0
- package/dist/dso-toolkit/p-909118a3.entry.js.map +1 -0
- package/dist/esm/dso-accordion-section.entry.js +3 -3
- package/dist/esm/dso-accordion-section.entry.js.map +1 -1
- package/dist/esm/dso-alert.dso-badge.dso-image-overlay.dso-ozon-content.dso-panel.dso-table.entry.js.map +1 -1
- package/dist/esm/dso-alert_6.entry.js +3 -7
- package/dist/esm/dso-alert_6.entry.js.map +1 -1
- package/dist/esm/dso-onboarding-tip.entry.js +24 -10
- package/dist/esm/dso-onboarding-tip.entry.js.map +1 -1
- package/dist/esm/dso-toolkit.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/types/components/onboarding-tip/onboarding-tip.d.ts +1 -0
- package/dist/types/components/table/table.d.ts +1 -4
- package/dist/types/components.d.ts +0 -8
- package/package.json +3 -3
- package/dist/dso-toolkit/p-c0410277.entry.js +0 -2
- package/dist/dso-toolkit/p-c0410277.entry.js.map +0 -1
|
@@ -0,0 +1,1957 @@
|
|
|
1
|
+
import { p as proxyCustomElement, H, e as createEvent, h, F as Fragment } from './p-DHO_Za64.js';
|
|
2
|
+
import { g as getDefaultExportFromCjs, c as commonjsGlobal } from './p-BxvZeNWe.js';
|
|
3
|
+
import { d as defineCustomElement$f } from './p-DacnxEpv.js';
|
|
4
|
+
import { d as defineCustomElement$e } from './p-ChrHXjXh.js';
|
|
5
|
+
import { d as defineCustomElement$d } from './p-Cbba2ZRN.js';
|
|
6
|
+
import { d as defineCustomElement$c } from './p-DWTXTDbr.js';
|
|
7
|
+
import { d as defineCustomElement$b } from './p-D2nuXSd0.js';
|
|
8
|
+
import { d as defineCustomElement$a } from './p-Cng7insW.js';
|
|
9
|
+
import { d as defineCustomElement$9 } from './p-BPLPqKUj.js';
|
|
10
|
+
import { d as defineCustomElement$8 } from './p-DvqO1i1s.js';
|
|
11
|
+
import { d as defineCustomElement$7 } from './p-WYm6cxra.js';
|
|
12
|
+
import { d as defineCustomElement$6 } from './p-DrR9RuIM.js';
|
|
13
|
+
import { d as defineCustomElement$5 } from './p-BdyXpl60.js';
|
|
14
|
+
import { d as defineCustomElement$4 } from './p-xNnEBBZG.js';
|
|
15
|
+
import { d as defineCustomElement$3 } from './p-BtcZ9oZ6.js';
|
|
16
|
+
import { d as defineCustomElement$2 } from './p-kDtv6DeD.js';
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* lodash (Custom Build) <https://lodash.com/>
|
|
20
|
+
* Build: `lodash modularize exports="npm" -o ./`
|
|
21
|
+
* Copyright jQuery Foundation and other contributors <https://jquery.org/>
|
|
22
|
+
* Released under MIT license <https://lodash.com/license>
|
|
23
|
+
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
24
|
+
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
25
|
+
*/
|
|
26
|
+
|
|
27
|
+
var lodash_random;
|
|
28
|
+
var hasRequiredLodash_random;
|
|
29
|
+
|
|
30
|
+
function requireLodash_random () {
|
|
31
|
+
if (hasRequiredLodash_random) return lodash_random;
|
|
32
|
+
hasRequiredLodash_random = 1;
|
|
33
|
+
/** Used as references for various `Number` constants. */
|
|
34
|
+
var INFINITY = 1 / 0,
|
|
35
|
+
MAX_SAFE_INTEGER = 9007199254740991,
|
|
36
|
+
MAX_INTEGER = 1.7976931348623157e+308,
|
|
37
|
+
NAN = 0 / 0;
|
|
38
|
+
|
|
39
|
+
/** `Object#toString` result references. */
|
|
40
|
+
var funcTag = '[object Function]',
|
|
41
|
+
genTag = '[object GeneratorFunction]',
|
|
42
|
+
symbolTag = '[object Symbol]';
|
|
43
|
+
|
|
44
|
+
/** Used to match leading and trailing whitespace. */
|
|
45
|
+
var reTrim = /^\s+|\s+$/g;
|
|
46
|
+
|
|
47
|
+
/** Used to detect bad signed hexadecimal string values. */
|
|
48
|
+
var reIsBadHex = /^[-+]0x[0-9a-f]+$/i;
|
|
49
|
+
|
|
50
|
+
/** Used to detect binary string values. */
|
|
51
|
+
var reIsBinary = /^0b[01]+$/i;
|
|
52
|
+
|
|
53
|
+
/** Used to detect octal string values. */
|
|
54
|
+
var reIsOctal = /^0o[0-7]+$/i;
|
|
55
|
+
|
|
56
|
+
/** Used to detect unsigned integer values. */
|
|
57
|
+
var reIsUint = /^(?:0|[1-9]\d*)$/;
|
|
58
|
+
|
|
59
|
+
/** Built-in method references without a dependency on `root`. */
|
|
60
|
+
var freeParseFloat = parseFloat,
|
|
61
|
+
freeParseInt = parseInt;
|
|
62
|
+
|
|
63
|
+
/** Used for built-in method references. */
|
|
64
|
+
var objectProto = Object.prototype;
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* Used to resolve the
|
|
68
|
+
* [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
|
|
69
|
+
* of values.
|
|
70
|
+
*/
|
|
71
|
+
var objectToString = objectProto.toString;
|
|
72
|
+
|
|
73
|
+
/* Built-in method references for those with the same name as other `lodash` methods. */
|
|
74
|
+
var nativeFloor = Math.floor,
|
|
75
|
+
nativeMin = Math.min,
|
|
76
|
+
nativeRandom = Math.random;
|
|
77
|
+
|
|
78
|
+
/**
|
|
79
|
+
* The base implementation of `_.random` without support for returning
|
|
80
|
+
* floating-point numbers.
|
|
81
|
+
*
|
|
82
|
+
* @private
|
|
83
|
+
* @param {number} lower The lower bound.
|
|
84
|
+
* @param {number} upper The upper bound.
|
|
85
|
+
* @returns {number} Returns the random number.
|
|
86
|
+
*/
|
|
87
|
+
function baseRandom(lower, upper) {
|
|
88
|
+
return lower + nativeFloor(nativeRandom() * (upper - lower + 1));
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* Checks if `value` is a valid array-like index.
|
|
93
|
+
*
|
|
94
|
+
* @private
|
|
95
|
+
* @param {*} value The value to check.
|
|
96
|
+
* @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.
|
|
97
|
+
* @returns {boolean} Returns `true` if `value` is a valid index, else `false`.
|
|
98
|
+
*/
|
|
99
|
+
function isIndex(value, length) {
|
|
100
|
+
length = length == null ? MAX_SAFE_INTEGER : length;
|
|
101
|
+
return !!length &&
|
|
102
|
+
(typeof value == 'number' || reIsUint.test(value)) &&
|
|
103
|
+
(value > -1 && value % 1 == 0 && value < length);
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
/**
|
|
107
|
+
* Checks if the given arguments are from an iteratee call.
|
|
108
|
+
*
|
|
109
|
+
* @private
|
|
110
|
+
* @param {*} value The potential iteratee value argument.
|
|
111
|
+
* @param {*} index The potential iteratee index or key argument.
|
|
112
|
+
* @param {*} object The potential iteratee object argument.
|
|
113
|
+
* @returns {boolean} Returns `true` if the arguments are from an iteratee call,
|
|
114
|
+
* else `false`.
|
|
115
|
+
*/
|
|
116
|
+
function isIterateeCall(value, index, object) {
|
|
117
|
+
if (!isObject(object)) {
|
|
118
|
+
return false;
|
|
119
|
+
}
|
|
120
|
+
var type = typeof index;
|
|
121
|
+
if (type == 'number'
|
|
122
|
+
? (isArrayLike(object) && isIndex(index, object.length))
|
|
123
|
+
: (type == 'string' && index in object)
|
|
124
|
+
) {
|
|
125
|
+
return eq(object[index], value);
|
|
126
|
+
}
|
|
127
|
+
return false;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
/**
|
|
131
|
+
* Performs a
|
|
132
|
+
* [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
|
|
133
|
+
* comparison between two values to determine if they are equivalent.
|
|
134
|
+
*
|
|
135
|
+
* @static
|
|
136
|
+
* @memberOf _
|
|
137
|
+
* @since 4.0.0
|
|
138
|
+
* @category Lang
|
|
139
|
+
* @param {*} value The value to compare.
|
|
140
|
+
* @param {*} other The other value to compare.
|
|
141
|
+
* @returns {boolean} Returns `true` if the values are equivalent, else `false`.
|
|
142
|
+
* @example
|
|
143
|
+
*
|
|
144
|
+
* var object = { 'a': 1 };
|
|
145
|
+
* var other = { 'a': 1 };
|
|
146
|
+
*
|
|
147
|
+
* _.eq(object, object);
|
|
148
|
+
* // => true
|
|
149
|
+
*
|
|
150
|
+
* _.eq(object, other);
|
|
151
|
+
* // => false
|
|
152
|
+
*
|
|
153
|
+
* _.eq('a', 'a');
|
|
154
|
+
* // => true
|
|
155
|
+
*
|
|
156
|
+
* _.eq('a', Object('a'));
|
|
157
|
+
* // => false
|
|
158
|
+
*
|
|
159
|
+
* _.eq(NaN, NaN);
|
|
160
|
+
* // => true
|
|
161
|
+
*/
|
|
162
|
+
function eq(value, other) {
|
|
163
|
+
return value === other || (value !== value && other !== other);
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
/**
|
|
167
|
+
* Checks if `value` is array-like. A value is considered array-like if it's
|
|
168
|
+
* not a function and has a `value.length` that's an integer greater than or
|
|
169
|
+
* equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.
|
|
170
|
+
*
|
|
171
|
+
* @static
|
|
172
|
+
* @memberOf _
|
|
173
|
+
* @since 4.0.0
|
|
174
|
+
* @category Lang
|
|
175
|
+
* @param {*} value The value to check.
|
|
176
|
+
* @returns {boolean} Returns `true` if `value` is array-like, else `false`.
|
|
177
|
+
* @example
|
|
178
|
+
*
|
|
179
|
+
* _.isArrayLike([1, 2, 3]);
|
|
180
|
+
* // => true
|
|
181
|
+
*
|
|
182
|
+
* _.isArrayLike(document.body.children);
|
|
183
|
+
* // => true
|
|
184
|
+
*
|
|
185
|
+
* _.isArrayLike('abc');
|
|
186
|
+
* // => true
|
|
187
|
+
*
|
|
188
|
+
* _.isArrayLike(_.noop);
|
|
189
|
+
* // => false
|
|
190
|
+
*/
|
|
191
|
+
function isArrayLike(value) {
|
|
192
|
+
return value != null && isLength(value.length) && !isFunction(value);
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
/**
|
|
196
|
+
* Checks if `value` is classified as a `Function` object.
|
|
197
|
+
*
|
|
198
|
+
* @static
|
|
199
|
+
* @memberOf _
|
|
200
|
+
* @since 0.1.0
|
|
201
|
+
* @category Lang
|
|
202
|
+
* @param {*} value The value to check.
|
|
203
|
+
* @returns {boolean} Returns `true` if `value` is a function, else `false`.
|
|
204
|
+
* @example
|
|
205
|
+
*
|
|
206
|
+
* _.isFunction(_);
|
|
207
|
+
* // => true
|
|
208
|
+
*
|
|
209
|
+
* _.isFunction(/abc/);
|
|
210
|
+
* // => false
|
|
211
|
+
*/
|
|
212
|
+
function isFunction(value) {
|
|
213
|
+
// The use of `Object#toString` avoids issues with the `typeof` operator
|
|
214
|
+
// in Safari 8-9 which returns 'object' for typed array and other constructors.
|
|
215
|
+
var tag = isObject(value) ? objectToString.call(value) : '';
|
|
216
|
+
return tag == funcTag || tag == genTag;
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
/**
|
|
220
|
+
* Checks if `value` is a valid array-like length.
|
|
221
|
+
*
|
|
222
|
+
* **Note:** This method is loosely based on
|
|
223
|
+
* [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).
|
|
224
|
+
*
|
|
225
|
+
* @static
|
|
226
|
+
* @memberOf _
|
|
227
|
+
* @since 4.0.0
|
|
228
|
+
* @category Lang
|
|
229
|
+
* @param {*} value The value to check.
|
|
230
|
+
* @returns {boolean} Returns `true` if `value` is a valid length, else `false`.
|
|
231
|
+
* @example
|
|
232
|
+
*
|
|
233
|
+
* _.isLength(3);
|
|
234
|
+
* // => true
|
|
235
|
+
*
|
|
236
|
+
* _.isLength(Number.MIN_VALUE);
|
|
237
|
+
* // => false
|
|
238
|
+
*
|
|
239
|
+
* _.isLength(Infinity);
|
|
240
|
+
* // => false
|
|
241
|
+
*
|
|
242
|
+
* _.isLength('3');
|
|
243
|
+
* // => false
|
|
244
|
+
*/
|
|
245
|
+
function isLength(value) {
|
|
246
|
+
return typeof value == 'number' &&
|
|
247
|
+
value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
/**
|
|
251
|
+
* Checks if `value` is the
|
|
252
|
+
* [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
|
|
253
|
+
* of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
|
|
254
|
+
*
|
|
255
|
+
* @static
|
|
256
|
+
* @memberOf _
|
|
257
|
+
* @since 0.1.0
|
|
258
|
+
* @category Lang
|
|
259
|
+
* @param {*} value The value to check.
|
|
260
|
+
* @returns {boolean} Returns `true` if `value` is an object, else `false`.
|
|
261
|
+
* @example
|
|
262
|
+
*
|
|
263
|
+
* _.isObject({});
|
|
264
|
+
* // => true
|
|
265
|
+
*
|
|
266
|
+
* _.isObject([1, 2, 3]);
|
|
267
|
+
* // => true
|
|
268
|
+
*
|
|
269
|
+
* _.isObject(_.noop);
|
|
270
|
+
* // => true
|
|
271
|
+
*
|
|
272
|
+
* _.isObject(null);
|
|
273
|
+
* // => false
|
|
274
|
+
*/
|
|
275
|
+
function isObject(value) {
|
|
276
|
+
var type = typeof value;
|
|
277
|
+
return !!value && (type == 'object' || type == 'function');
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
/**
|
|
281
|
+
* Checks if `value` is object-like. A value is object-like if it's not `null`
|
|
282
|
+
* and has a `typeof` result of "object".
|
|
283
|
+
*
|
|
284
|
+
* @static
|
|
285
|
+
* @memberOf _
|
|
286
|
+
* @since 4.0.0
|
|
287
|
+
* @category Lang
|
|
288
|
+
* @param {*} value The value to check.
|
|
289
|
+
* @returns {boolean} Returns `true` if `value` is object-like, else `false`.
|
|
290
|
+
* @example
|
|
291
|
+
*
|
|
292
|
+
* _.isObjectLike({});
|
|
293
|
+
* // => true
|
|
294
|
+
*
|
|
295
|
+
* _.isObjectLike([1, 2, 3]);
|
|
296
|
+
* // => true
|
|
297
|
+
*
|
|
298
|
+
* _.isObjectLike(_.noop);
|
|
299
|
+
* // => false
|
|
300
|
+
*
|
|
301
|
+
* _.isObjectLike(null);
|
|
302
|
+
* // => false
|
|
303
|
+
*/
|
|
304
|
+
function isObjectLike(value) {
|
|
305
|
+
return !!value && typeof value == 'object';
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
/**
|
|
309
|
+
* Checks if `value` is classified as a `Symbol` primitive or object.
|
|
310
|
+
*
|
|
311
|
+
* @static
|
|
312
|
+
* @memberOf _
|
|
313
|
+
* @since 4.0.0
|
|
314
|
+
* @category Lang
|
|
315
|
+
* @param {*} value The value to check.
|
|
316
|
+
* @returns {boolean} Returns `true` if `value` is a symbol, else `false`.
|
|
317
|
+
* @example
|
|
318
|
+
*
|
|
319
|
+
* _.isSymbol(Symbol.iterator);
|
|
320
|
+
* // => true
|
|
321
|
+
*
|
|
322
|
+
* _.isSymbol('abc');
|
|
323
|
+
* // => false
|
|
324
|
+
*/
|
|
325
|
+
function isSymbol(value) {
|
|
326
|
+
return typeof value == 'symbol' ||
|
|
327
|
+
(isObjectLike(value) && objectToString.call(value) == symbolTag);
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
/**
|
|
331
|
+
* Converts `value` to a finite number.
|
|
332
|
+
*
|
|
333
|
+
* @static
|
|
334
|
+
* @memberOf _
|
|
335
|
+
* @since 4.12.0
|
|
336
|
+
* @category Lang
|
|
337
|
+
* @param {*} value The value to convert.
|
|
338
|
+
* @returns {number} Returns the converted number.
|
|
339
|
+
* @example
|
|
340
|
+
*
|
|
341
|
+
* _.toFinite(3.2);
|
|
342
|
+
* // => 3.2
|
|
343
|
+
*
|
|
344
|
+
* _.toFinite(Number.MIN_VALUE);
|
|
345
|
+
* // => 5e-324
|
|
346
|
+
*
|
|
347
|
+
* _.toFinite(Infinity);
|
|
348
|
+
* // => 1.7976931348623157e+308
|
|
349
|
+
*
|
|
350
|
+
* _.toFinite('3.2');
|
|
351
|
+
* // => 3.2
|
|
352
|
+
*/
|
|
353
|
+
function toFinite(value) {
|
|
354
|
+
if (!value) {
|
|
355
|
+
return value === 0 ? value : 0;
|
|
356
|
+
}
|
|
357
|
+
value = toNumber(value);
|
|
358
|
+
if (value === INFINITY || value === -Infinity) {
|
|
359
|
+
var sign = (value < 0 ? -1 : 1);
|
|
360
|
+
return sign * MAX_INTEGER;
|
|
361
|
+
}
|
|
362
|
+
return value === value ? value : 0;
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
/**
|
|
366
|
+
* Converts `value` to a number.
|
|
367
|
+
*
|
|
368
|
+
* @static
|
|
369
|
+
* @memberOf _
|
|
370
|
+
* @since 4.0.0
|
|
371
|
+
* @category Lang
|
|
372
|
+
* @param {*} value The value to process.
|
|
373
|
+
* @returns {number} Returns the number.
|
|
374
|
+
* @example
|
|
375
|
+
*
|
|
376
|
+
* _.toNumber(3.2);
|
|
377
|
+
* // => 3.2
|
|
378
|
+
*
|
|
379
|
+
* _.toNumber(Number.MIN_VALUE);
|
|
380
|
+
* // => 5e-324
|
|
381
|
+
*
|
|
382
|
+
* _.toNumber(Infinity);
|
|
383
|
+
* // => Infinity
|
|
384
|
+
*
|
|
385
|
+
* _.toNumber('3.2');
|
|
386
|
+
* // => 3.2
|
|
387
|
+
*/
|
|
388
|
+
function toNumber(value) {
|
|
389
|
+
if (typeof value == 'number') {
|
|
390
|
+
return value;
|
|
391
|
+
}
|
|
392
|
+
if (isSymbol(value)) {
|
|
393
|
+
return NAN;
|
|
394
|
+
}
|
|
395
|
+
if (isObject(value)) {
|
|
396
|
+
var other = typeof value.valueOf == 'function' ? value.valueOf() : value;
|
|
397
|
+
value = isObject(other) ? (other + '') : other;
|
|
398
|
+
}
|
|
399
|
+
if (typeof value != 'string') {
|
|
400
|
+
return value === 0 ? value : +value;
|
|
401
|
+
}
|
|
402
|
+
value = value.replace(reTrim, '');
|
|
403
|
+
var isBinary = reIsBinary.test(value);
|
|
404
|
+
return (isBinary || reIsOctal.test(value))
|
|
405
|
+
? freeParseInt(value.slice(2), isBinary ? 2 : 8)
|
|
406
|
+
: (reIsBadHex.test(value) ? NAN : +value);
|
|
407
|
+
}
|
|
408
|
+
|
|
409
|
+
/**
|
|
410
|
+
* Produces a random number between the inclusive `lower` and `upper` bounds.
|
|
411
|
+
* If only one argument is provided a number between `0` and the given number
|
|
412
|
+
* is returned. If `floating` is `true`, or either `lower` or `upper` are
|
|
413
|
+
* floats, a floating-point number is returned instead of an integer.
|
|
414
|
+
*
|
|
415
|
+
* **Note:** JavaScript follows the IEEE-754 standard for resolving
|
|
416
|
+
* floating-point values which can produce unexpected results.
|
|
417
|
+
*
|
|
418
|
+
* @static
|
|
419
|
+
* @memberOf _
|
|
420
|
+
* @since 0.7.0
|
|
421
|
+
* @category Number
|
|
422
|
+
* @param {number} [lower=0] The lower bound.
|
|
423
|
+
* @param {number} [upper=1] The upper bound.
|
|
424
|
+
* @param {boolean} [floating] Specify returning a floating-point number.
|
|
425
|
+
* @returns {number} Returns the random number.
|
|
426
|
+
* @example
|
|
427
|
+
*
|
|
428
|
+
* _.random(0, 5);
|
|
429
|
+
* // => an integer between 0 and 5
|
|
430
|
+
*
|
|
431
|
+
* _.random(5);
|
|
432
|
+
* // => also an integer between 0 and 5
|
|
433
|
+
*
|
|
434
|
+
* _.random(5, true);
|
|
435
|
+
* // => a floating-point number between 0 and 5
|
|
436
|
+
*
|
|
437
|
+
* _.random(1.2, 5.2);
|
|
438
|
+
* // => a floating-point number between 1.2 and 5.2
|
|
439
|
+
*/
|
|
440
|
+
function random(lower, upper, floating) {
|
|
441
|
+
if (floating && typeof floating != 'boolean' && isIterateeCall(lower, upper, floating)) {
|
|
442
|
+
upper = floating = undefined;
|
|
443
|
+
}
|
|
444
|
+
if (floating === undefined) {
|
|
445
|
+
if (typeof upper == 'boolean') {
|
|
446
|
+
floating = upper;
|
|
447
|
+
upper = undefined;
|
|
448
|
+
}
|
|
449
|
+
else if (typeof lower == 'boolean') {
|
|
450
|
+
floating = lower;
|
|
451
|
+
lower = undefined;
|
|
452
|
+
}
|
|
453
|
+
}
|
|
454
|
+
if (lower === undefined && upper === undefined) {
|
|
455
|
+
lower = 0;
|
|
456
|
+
upper = 1;
|
|
457
|
+
}
|
|
458
|
+
else {
|
|
459
|
+
lower = toFinite(lower);
|
|
460
|
+
if (upper === undefined) {
|
|
461
|
+
upper = lower;
|
|
462
|
+
lower = 0;
|
|
463
|
+
} else {
|
|
464
|
+
upper = toFinite(upper);
|
|
465
|
+
}
|
|
466
|
+
}
|
|
467
|
+
if (lower > upper) {
|
|
468
|
+
var temp = lower;
|
|
469
|
+
lower = upper;
|
|
470
|
+
upper = temp;
|
|
471
|
+
}
|
|
472
|
+
if (floating || lower % 1 || upper % 1) {
|
|
473
|
+
var rand = nativeRandom();
|
|
474
|
+
return nativeMin(lower + (rand * (upper - lower + freeParseFloat('1e-' + ((rand + '').length - 1)))), upper);
|
|
475
|
+
}
|
|
476
|
+
return baseRandom(lower, upper);
|
|
477
|
+
}
|
|
478
|
+
|
|
479
|
+
lodash_random = random;
|
|
480
|
+
return lodash_random;
|
|
481
|
+
}
|
|
482
|
+
|
|
483
|
+
var lodash_randomExports = requireLodash_random();
|
|
484
|
+
var random = /*@__PURE__*/getDefaultExportFromCjs(lodash_randomExports);
|
|
485
|
+
|
|
486
|
+
/**
|
|
487
|
+
* lodash (Custom Build) <https://lodash.com/>
|
|
488
|
+
* Build: `lodash modularize exports="npm" -o ./`
|
|
489
|
+
* Copyright jQuery Foundation and other contributors <https://jquery.org/>
|
|
490
|
+
* Released under MIT license <https://lodash.com/license>
|
|
491
|
+
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
492
|
+
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
493
|
+
*/
|
|
494
|
+
|
|
495
|
+
var lodash_samplesize;
|
|
496
|
+
var hasRequiredLodash_samplesize;
|
|
497
|
+
|
|
498
|
+
function requireLodash_samplesize () {
|
|
499
|
+
if (hasRequiredLodash_samplesize) return lodash_samplesize;
|
|
500
|
+
hasRequiredLodash_samplesize = 1;
|
|
501
|
+
/** Used as references for various `Number` constants. */
|
|
502
|
+
var INFINITY = 1 / 0,
|
|
503
|
+
MAX_SAFE_INTEGER = 9007199254740991,
|
|
504
|
+
MAX_INTEGER = 1.7976931348623157e+308,
|
|
505
|
+
NAN = 0 / 0;
|
|
506
|
+
|
|
507
|
+
/** `Object#toString` result references. */
|
|
508
|
+
var argsTag = '[object Arguments]',
|
|
509
|
+
funcTag = '[object Function]',
|
|
510
|
+
genTag = '[object GeneratorFunction]',
|
|
511
|
+
mapTag = '[object Map]',
|
|
512
|
+
objectTag = '[object Object]',
|
|
513
|
+
promiseTag = '[object Promise]',
|
|
514
|
+
setTag = '[object Set]',
|
|
515
|
+
stringTag = '[object String]',
|
|
516
|
+
symbolTag = '[object Symbol]',
|
|
517
|
+
weakMapTag = '[object WeakMap]';
|
|
518
|
+
|
|
519
|
+
var dataViewTag = '[object DataView]';
|
|
520
|
+
|
|
521
|
+
/**
|
|
522
|
+
* Used to match `RegExp`
|
|
523
|
+
* [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).
|
|
524
|
+
*/
|
|
525
|
+
var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
|
|
526
|
+
|
|
527
|
+
/** Used to match leading and trailing whitespace. */
|
|
528
|
+
var reTrim = /^\s+|\s+$/g;
|
|
529
|
+
|
|
530
|
+
/** Used to detect bad signed hexadecimal string values. */
|
|
531
|
+
var reIsBadHex = /^[-+]0x[0-9a-f]+$/i;
|
|
532
|
+
|
|
533
|
+
/** Used to detect binary string values. */
|
|
534
|
+
var reIsBinary = /^0b[01]+$/i;
|
|
535
|
+
|
|
536
|
+
/** Used to detect host constructors (Safari). */
|
|
537
|
+
var reIsHostCtor = /^\[object .+?Constructor\]$/;
|
|
538
|
+
|
|
539
|
+
/** Used to detect octal string values. */
|
|
540
|
+
var reIsOctal = /^0o[0-7]+$/i;
|
|
541
|
+
|
|
542
|
+
/** Used to detect unsigned integer values. */
|
|
543
|
+
var reIsUint = /^(?:0|[1-9]\d*)$/;
|
|
544
|
+
|
|
545
|
+
/** Used to compose unicode character classes. */
|
|
546
|
+
var rsAstralRange = '\\ud800-\\udfff',
|
|
547
|
+
rsComboMarksRange = '\\u0300-\\u036f\\ufe20-\\ufe23',
|
|
548
|
+
rsComboSymbolsRange = '\\u20d0-\\u20f0',
|
|
549
|
+
rsVarRange = '\\ufe0e\\ufe0f';
|
|
550
|
+
|
|
551
|
+
/** Used to compose unicode capture groups. */
|
|
552
|
+
var rsAstral = '[' + rsAstralRange + ']',
|
|
553
|
+
rsCombo = '[' + rsComboMarksRange + rsComboSymbolsRange + ']',
|
|
554
|
+
rsFitz = '\\ud83c[\\udffb-\\udfff]',
|
|
555
|
+
rsModifier = '(?:' + rsCombo + '|' + rsFitz + ')',
|
|
556
|
+
rsNonAstral = '[^' + rsAstralRange + ']',
|
|
557
|
+
rsRegional = '(?:\\ud83c[\\udde6-\\uddff]){2}',
|
|
558
|
+
rsSurrPair = '[\\ud800-\\udbff][\\udc00-\\udfff]',
|
|
559
|
+
rsZWJ = '\\u200d';
|
|
560
|
+
|
|
561
|
+
/** Used to compose unicode regexes. */
|
|
562
|
+
var reOptMod = rsModifier + '?',
|
|
563
|
+
rsOptVar = '[' + rsVarRange + ']?',
|
|
564
|
+
rsOptJoin = '(?:' + rsZWJ + '(?:' + [rsNonAstral, rsRegional, rsSurrPair].join('|') + ')' + rsOptVar + reOptMod + ')*',
|
|
565
|
+
rsSeq = rsOptVar + reOptMod + rsOptJoin,
|
|
566
|
+
rsSymbol = '(?:' + [rsNonAstral + rsCombo + '?', rsCombo, rsRegional, rsSurrPair, rsAstral].join('|') + ')';
|
|
567
|
+
|
|
568
|
+
/** Used to match [string symbols](https://mathiasbynens.be/notes/javascript-unicode). */
|
|
569
|
+
var reUnicode = RegExp(rsFitz + '(?=' + rsFitz + ')|' + rsSymbol + rsSeq, 'g');
|
|
570
|
+
|
|
571
|
+
/** Used to detect strings with [zero-width joiners or code points from the astral planes](http://eev.ee/blog/2015/09/12/dark-corners-of-unicode/). */
|
|
572
|
+
var reHasUnicode = RegExp('[' + rsZWJ + rsAstralRange + rsComboMarksRange + rsComboSymbolsRange + rsVarRange + ']');
|
|
573
|
+
|
|
574
|
+
/** Built-in method references without a dependency on `root`. */
|
|
575
|
+
var freeParseInt = parseInt;
|
|
576
|
+
|
|
577
|
+
/** Detect free variable `global` from Node.js. */
|
|
578
|
+
var freeGlobal = typeof commonjsGlobal == 'object' && commonjsGlobal && commonjsGlobal.Object === Object && commonjsGlobal;
|
|
579
|
+
|
|
580
|
+
/** Detect free variable `self`. */
|
|
581
|
+
var freeSelf = typeof self == 'object' && self && self.Object === Object && self;
|
|
582
|
+
|
|
583
|
+
/** Used as a reference to the global object. */
|
|
584
|
+
var root = freeGlobal || freeSelf || Function('return this')();
|
|
585
|
+
|
|
586
|
+
/**
|
|
587
|
+
* A specialized version of `_.map` for arrays without support for iteratee
|
|
588
|
+
* shorthands.
|
|
589
|
+
*
|
|
590
|
+
* @private
|
|
591
|
+
* @param {Array} [array] The array to iterate over.
|
|
592
|
+
* @param {Function} iteratee The function invoked per iteration.
|
|
593
|
+
* @returns {Array} Returns the new mapped array.
|
|
594
|
+
*/
|
|
595
|
+
function arrayMap(array, iteratee) {
|
|
596
|
+
var index = -1,
|
|
597
|
+
length = array ? array.length : 0,
|
|
598
|
+
result = Array(length);
|
|
599
|
+
|
|
600
|
+
while (++index < length) {
|
|
601
|
+
result[index] = iteratee(array[index], index, array);
|
|
602
|
+
}
|
|
603
|
+
return result;
|
|
604
|
+
}
|
|
605
|
+
|
|
606
|
+
/**
|
|
607
|
+
* Converts an ASCII `string` to an array.
|
|
608
|
+
*
|
|
609
|
+
* @private
|
|
610
|
+
* @param {string} string The string to convert.
|
|
611
|
+
* @returns {Array} Returns the converted array.
|
|
612
|
+
*/
|
|
613
|
+
function asciiToArray(string) {
|
|
614
|
+
return string.split('');
|
|
615
|
+
}
|
|
616
|
+
|
|
617
|
+
/**
|
|
618
|
+
* The base implementation of `_.times` without support for iteratee shorthands
|
|
619
|
+
* or max array length checks.
|
|
620
|
+
*
|
|
621
|
+
* @private
|
|
622
|
+
* @param {number} n The number of times to invoke `iteratee`.
|
|
623
|
+
* @param {Function} iteratee The function invoked per iteration.
|
|
624
|
+
* @returns {Array} Returns the array of results.
|
|
625
|
+
*/
|
|
626
|
+
function baseTimes(n, iteratee) {
|
|
627
|
+
var index = -1,
|
|
628
|
+
result = Array(n);
|
|
629
|
+
|
|
630
|
+
while (++index < n) {
|
|
631
|
+
result[index] = iteratee(index);
|
|
632
|
+
}
|
|
633
|
+
return result;
|
|
634
|
+
}
|
|
635
|
+
|
|
636
|
+
/**
|
|
637
|
+
* The base implementation of `_.values` and `_.valuesIn` which creates an
|
|
638
|
+
* array of `object` property values corresponding to the property names
|
|
639
|
+
* of `props`.
|
|
640
|
+
*
|
|
641
|
+
* @private
|
|
642
|
+
* @param {Object} object The object to query.
|
|
643
|
+
* @param {Array} props The property names to get values for.
|
|
644
|
+
* @returns {Object} Returns the array of property values.
|
|
645
|
+
*/
|
|
646
|
+
function baseValues(object, props) {
|
|
647
|
+
return arrayMap(props, function(key) {
|
|
648
|
+
return object[key];
|
|
649
|
+
});
|
|
650
|
+
}
|
|
651
|
+
|
|
652
|
+
/**
|
|
653
|
+
* Gets the value at `key` of `object`.
|
|
654
|
+
*
|
|
655
|
+
* @private
|
|
656
|
+
* @param {Object} [object] The object to query.
|
|
657
|
+
* @param {string} key The key of the property to get.
|
|
658
|
+
* @returns {*} Returns the property value.
|
|
659
|
+
*/
|
|
660
|
+
function getValue(object, key) {
|
|
661
|
+
return object == null ? undefined : object[key];
|
|
662
|
+
}
|
|
663
|
+
|
|
664
|
+
/**
|
|
665
|
+
* Checks if `string` contains Unicode symbols.
|
|
666
|
+
*
|
|
667
|
+
* @private
|
|
668
|
+
* @param {string} string The string to inspect.
|
|
669
|
+
* @returns {boolean} Returns `true` if a symbol is found, else `false`.
|
|
670
|
+
*/
|
|
671
|
+
function hasUnicode(string) {
|
|
672
|
+
return reHasUnicode.test(string);
|
|
673
|
+
}
|
|
674
|
+
|
|
675
|
+
/**
|
|
676
|
+
* Checks if `value` is a host object in IE < 9.
|
|
677
|
+
*
|
|
678
|
+
* @private
|
|
679
|
+
* @param {*} value The value to check.
|
|
680
|
+
* @returns {boolean} Returns `true` if `value` is a host object, else `false`.
|
|
681
|
+
*/
|
|
682
|
+
function isHostObject(value) {
|
|
683
|
+
// Many host objects are `Object` objects that can coerce to strings
|
|
684
|
+
// despite having improperly defined `toString` methods.
|
|
685
|
+
var result = false;
|
|
686
|
+
if (value != null && typeof value.toString != 'function') {
|
|
687
|
+
try {
|
|
688
|
+
result = !!(value + '');
|
|
689
|
+
} catch (e) {}
|
|
690
|
+
}
|
|
691
|
+
return result;
|
|
692
|
+
}
|
|
693
|
+
|
|
694
|
+
/**
|
|
695
|
+
* Converts `iterator` to an array.
|
|
696
|
+
*
|
|
697
|
+
* @private
|
|
698
|
+
* @param {Object} iterator The iterator to convert.
|
|
699
|
+
* @returns {Array} Returns the converted array.
|
|
700
|
+
*/
|
|
701
|
+
function iteratorToArray(iterator) {
|
|
702
|
+
var data,
|
|
703
|
+
result = [];
|
|
704
|
+
|
|
705
|
+
while (!(data = iterator.next()).done) {
|
|
706
|
+
result.push(data.value);
|
|
707
|
+
}
|
|
708
|
+
return result;
|
|
709
|
+
}
|
|
710
|
+
|
|
711
|
+
/**
|
|
712
|
+
* Converts `map` to its key-value pairs.
|
|
713
|
+
*
|
|
714
|
+
* @private
|
|
715
|
+
* @param {Object} map The map to convert.
|
|
716
|
+
* @returns {Array} Returns the key-value pairs.
|
|
717
|
+
*/
|
|
718
|
+
function mapToArray(map) {
|
|
719
|
+
var index = -1,
|
|
720
|
+
result = Array(map.size);
|
|
721
|
+
|
|
722
|
+
map.forEach(function(value, key) {
|
|
723
|
+
result[++index] = [key, value];
|
|
724
|
+
});
|
|
725
|
+
return result;
|
|
726
|
+
}
|
|
727
|
+
|
|
728
|
+
/**
|
|
729
|
+
* Creates a unary function that invokes `func` with its argument transformed.
|
|
730
|
+
*
|
|
731
|
+
* @private
|
|
732
|
+
* @param {Function} func The function to wrap.
|
|
733
|
+
* @param {Function} transform The argument transform.
|
|
734
|
+
* @returns {Function} Returns the new function.
|
|
735
|
+
*/
|
|
736
|
+
function overArg(func, transform) {
|
|
737
|
+
return function(arg) {
|
|
738
|
+
return func(transform(arg));
|
|
739
|
+
};
|
|
740
|
+
}
|
|
741
|
+
|
|
742
|
+
/**
|
|
743
|
+
* Converts `set` to an array of its values.
|
|
744
|
+
*
|
|
745
|
+
* @private
|
|
746
|
+
* @param {Object} set The set to convert.
|
|
747
|
+
* @returns {Array} Returns the values.
|
|
748
|
+
*/
|
|
749
|
+
function setToArray(set) {
|
|
750
|
+
var index = -1,
|
|
751
|
+
result = Array(set.size);
|
|
752
|
+
|
|
753
|
+
set.forEach(function(value) {
|
|
754
|
+
result[++index] = value;
|
|
755
|
+
});
|
|
756
|
+
return result;
|
|
757
|
+
}
|
|
758
|
+
|
|
759
|
+
/**
|
|
760
|
+
* Converts `string` to an array.
|
|
761
|
+
*
|
|
762
|
+
* @private
|
|
763
|
+
* @param {string} string The string to convert.
|
|
764
|
+
* @returns {Array} Returns the converted array.
|
|
765
|
+
*/
|
|
766
|
+
function stringToArray(string) {
|
|
767
|
+
return hasUnicode(string)
|
|
768
|
+
? unicodeToArray(string)
|
|
769
|
+
: asciiToArray(string);
|
|
770
|
+
}
|
|
771
|
+
|
|
772
|
+
/**
|
|
773
|
+
* Converts a Unicode `string` to an array.
|
|
774
|
+
*
|
|
775
|
+
* @private
|
|
776
|
+
* @param {string} string The string to convert.
|
|
777
|
+
* @returns {Array} Returns the converted array.
|
|
778
|
+
*/
|
|
779
|
+
function unicodeToArray(string) {
|
|
780
|
+
return string.match(reUnicode) || [];
|
|
781
|
+
}
|
|
782
|
+
|
|
783
|
+
/** Used for built-in method references. */
|
|
784
|
+
var funcProto = Function.prototype,
|
|
785
|
+
objectProto = Object.prototype;
|
|
786
|
+
|
|
787
|
+
/** Used to detect overreaching core-js shims. */
|
|
788
|
+
var coreJsData = root['__core-js_shared__'];
|
|
789
|
+
|
|
790
|
+
/** Used to detect methods masquerading as native. */
|
|
791
|
+
var maskSrcKey = (function() {
|
|
792
|
+
var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || '');
|
|
793
|
+
return uid ? ('Symbol(src)_1.' + uid) : '';
|
|
794
|
+
}());
|
|
795
|
+
|
|
796
|
+
/** Used to resolve the decompiled source of functions. */
|
|
797
|
+
var funcToString = funcProto.toString;
|
|
798
|
+
|
|
799
|
+
/** Used to check objects for own properties. */
|
|
800
|
+
var hasOwnProperty = objectProto.hasOwnProperty;
|
|
801
|
+
|
|
802
|
+
/**
|
|
803
|
+
* Used to resolve the
|
|
804
|
+
* [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
|
|
805
|
+
* of values.
|
|
806
|
+
*/
|
|
807
|
+
var objectToString = objectProto.toString;
|
|
808
|
+
|
|
809
|
+
/** Used to detect if a method is native. */
|
|
810
|
+
var reIsNative = RegExp('^' +
|
|
811
|
+
funcToString.call(hasOwnProperty).replace(reRegExpChar, '\\$&')
|
|
812
|
+
.replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$'
|
|
813
|
+
);
|
|
814
|
+
|
|
815
|
+
/** Built-in value references. */
|
|
816
|
+
var Symbol = root.Symbol,
|
|
817
|
+
iteratorSymbol = Symbol ? Symbol.iterator : undefined,
|
|
818
|
+
propertyIsEnumerable = objectProto.propertyIsEnumerable;
|
|
819
|
+
|
|
820
|
+
/* Built-in method references for those with the same name as other `lodash` methods. */
|
|
821
|
+
var nativeFloor = Math.floor,
|
|
822
|
+
nativeKeys = overArg(Object.keys, Object),
|
|
823
|
+
nativeRandom = Math.random;
|
|
824
|
+
|
|
825
|
+
/* Built-in method references that are verified to be native. */
|
|
826
|
+
var DataView = getNative(root, 'DataView'),
|
|
827
|
+
Map = getNative(root, 'Map'),
|
|
828
|
+
Promise = getNative(root, 'Promise'),
|
|
829
|
+
Set = getNative(root, 'Set'),
|
|
830
|
+
WeakMap = getNative(root, 'WeakMap');
|
|
831
|
+
|
|
832
|
+
/** Used to detect maps, sets, and weakmaps. */
|
|
833
|
+
var dataViewCtorString = toSource(DataView),
|
|
834
|
+
mapCtorString = toSource(Map),
|
|
835
|
+
promiseCtorString = toSource(Promise),
|
|
836
|
+
setCtorString = toSource(Set),
|
|
837
|
+
weakMapCtorString = toSource(WeakMap);
|
|
838
|
+
|
|
839
|
+
/**
|
|
840
|
+
* Creates an array of the enumerable property names of the array-like `value`.
|
|
841
|
+
*
|
|
842
|
+
* @private
|
|
843
|
+
* @param {*} value The value to query.
|
|
844
|
+
* @param {boolean} inherited Specify returning inherited property names.
|
|
845
|
+
* @returns {Array} Returns the array of property names.
|
|
846
|
+
*/
|
|
847
|
+
function arrayLikeKeys(value, inherited) {
|
|
848
|
+
// Safari 8.1 makes `arguments.callee` enumerable in strict mode.
|
|
849
|
+
// Safari 9 makes `arguments.length` enumerable in strict mode.
|
|
850
|
+
var result = (isArray(value) || isArguments(value))
|
|
851
|
+
? baseTimes(value.length, String)
|
|
852
|
+
: [];
|
|
853
|
+
|
|
854
|
+
var length = result.length,
|
|
855
|
+
skipIndexes = !!length;
|
|
856
|
+
|
|
857
|
+
for (var key in value) {
|
|
858
|
+
if ((hasOwnProperty.call(value, key)) &&
|
|
859
|
+
!(skipIndexes && (key == 'length' || isIndex(key, length)))) {
|
|
860
|
+
result.push(key);
|
|
861
|
+
}
|
|
862
|
+
}
|
|
863
|
+
return result;
|
|
864
|
+
}
|
|
865
|
+
|
|
866
|
+
/**
|
|
867
|
+
* The base implementation of `_.clamp` which doesn't coerce arguments.
|
|
868
|
+
*
|
|
869
|
+
* @private
|
|
870
|
+
* @param {number} number The number to clamp.
|
|
871
|
+
* @param {number} [lower] The lower bound.
|
|
872
|
+
* @param {number} upper The upper bound.
|
|
873
|
+
* @returns {number} Returns the clamped number.
|
|
874
|
+
*/
|
|
875
|
+
function baseClamp(number, lower, upper) {
|
|
876
|
+
if (number === number) {
|
|
877
|
+
if (upper !== undefined) {
|
|
878
|
+
number = number <= upper ? number : upper;
|
|
879
|
+
}
|
|
880
|
+
{
|
|
881
|
+
number = number >= lower ? number : lower;
|
|
882
|
+
}
|
|
883
|
+
}
|
|
884
|
+
return number;
|
|
885
|
+
}
|
|
886
|
+
|
|
887
|
+
/**
|
|
888
|
+
* The base implementation of `getTag`.
|
|
889
|
+
*
|
|
890
|
+
* @private
|
|
891
|
+
* @param {*} value The value to query.
|
|
892
|
+
* @returns {string} Returns the `toStringTag`.
|
|
893
|
+
*/
|
|
894
|
+
function baseGetTag(value) {
|
|
895
|
+
return objectToString.call(value);
|
|
896
|
+
}
|
|
897
|
+
|
|
898
|
+
/**
|
|
899
|
+
* The base implementation of `_.isNative` without bad shim checks.
|
|
900
|
+
*
|
|
901
|
+
* @private
|
|
902
|
+
* @param {*} value The value to check.
|
|
903
|
+
* @returns {boolean} Returns `true` if `value` is a native function,
|
|
904
|
+
* else `false`.
|
|
905
|
+
*/
|
|
906
|
+
function baseIsNative(value) {
|
|
907
|
+
if (!isObject(value) || isMasked(value)) {
|
|
908
|
+
return false;
|
|
909
|
+
}
|
|
910
|
+
var pattern = (isFunction(value) || isHostObject(value)) ? reIsNative : reIsHostCtor;
|
|
911
|
+
return pattern.test(toSource(value));
|
|
912
|
+
}
|
|
913
|
+
|
|
914
|
+
/**
|
|
915
|
+
* The base implementation of `_.keys` which doesn't treat sparse arrays as dense.
|
|
916
|
+
*
|
|
917
|
+
* @private
|
|
918
|
+
* @param {Object} object The object to query.
|
|
919
|
+
* @returns {Array} Returns the array of property names.
|
|
920
|
+
*/
|
|
921
|
+
function baseKeys(object) {
|
|
922
|
+
if (!isPrototype(object)) {
|
|
923
|
+
return nativeKeys(object);
|
|
924
|
+
}
|
|
925
|
+
var result = [];
|
|
926
|
+
for (var key in Object(object)) {
|
|
927
|
+
if (hasOwnProperty.call(object, key) && key != 'constructor') {
|
|
928
|
+
result.push(key);
|
|
929
|
+
}
|
|
930
|
+
}
|
|
931
|
+
return result;
|
|
932
|
+
}
|
|
933
|
+
|
|
934
|
+
/**
|
|
935
|
+
* The base implementation of `_.random` without support for returning
|
|
936
|
+
* floating-point numbers.
|
|
937
|
+
*
|
|
938
|
+
* @private
|
|
939
|
+
* @param {number} lower The lower bound.
|
|
940
|
+
* @param {number} upper The upper bound.
|
|
941
|
+
* @returns {number} Returns the random number.
|
|
942
|
+
*/
|
|
943
|
+
function baseRandom(lower, upper) {
|
|
944
|
+
return lower + nativeFloor(nativeRandom() * (upper - lower + 1));
|
|
945
|
+
}
|
|
946
|
+
|
|
947
|
+
/**
|
|
948
|
+
* Copies the values of `source` to `array`.
|
|
949
|
+
*
|
|
950
|
+
* @private
|
|
951
|
+
* @param {Array} source The array to copy values from.
|
|
952
|
+
* @param {Array} [array=[]] The array to copy values to.
|
|
953
|
+
* @returns {Array} Returns `array`.
|
|
954
|
+
*/
|
|
955
|
+
function copyArray(source, array) {
|
|
956
|
+
var index = -1,
|
|
957
|
+
length = source.length;
|
|
958
|
+
|
|
959
|
+
array || (array = Array(length));
|
|
960
|
+
while (++index < length) {
|
|
961
|
+
array[index] = source[index];
|
|
962
|
+
}
|
|
963
|
+
return array;
|
|
964
|
+
}
|
|
965
|
+
|
|
966
|
+
/**
|
|
967
|
+
* Gets the native function at `key` of `object`.
|
|
968
|
+
*
|
|
969
|
+
* @private
|
|
970
|
+
* @param {Object} object The object to query.
|
|
971
|
+
* @param {string} key The key of the method to get.
|
|
972
|
+
* @returns {*} Returns the function if it's native, else `undefined`.
|
|
973
|
+
*/
|
|
974
|
+
function getNative(object, key) {
|
|
975
|
+
var value = getValue(object, key);
|
|
976
|
+
return baseIsNative(value) ? value : undefined;
|
|
977
|
+
}
|
|
978
|
+
|
|
979
|
+
/**
|
|
980
|
+
* Gets the `toStringTag` of `value`.
|
|
981
|
+
*
|
|
982
|
+
* @private
|
|
983
|
+
* @param {*} value The value to query.
|
|
984
|
+
* @returns {string} Returns the `toStringTag`.
|
|
985
|
+
*/
|
|
986
|
+
var getTag = baseGetTag;
|
|
987
|
+
|
|
988
|
+
// Fallback for data views, maps, sets, and weak maps in IE 11,
|
|
989
|
+
// for data views in Edge < 14, and promises in Node.js.
|
|
990
|
+
if ((DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag) ||
|
|
991
|
+
(Map && getTag(new Map) != mapTag) ||
|
|
992
|
+
(Promise && getTag(Promise.resolve()) != promiseTag) ||
|
|
993
|
+
(Set && getTag(new Set) != setTag) ||
|
|
994
|
+
(WeakMap && getTag(new WeakMap) != weakMapTag)) {
|
|
995
|
+
getTag = function(value) {
|
|
996
|
+
var result = objectToString.call(value),
|
|
997
|
+
Ctor = result == objectTag ? value.constructor : undefined,
|
|
998
|
+
ctorString = Ctor ? toSource(Ctor) : undefined;
|
|
999
|
+
|
|
1000
|
+
if (ctorString) {
|
|
1001
|
+
switch (ctorString) {
|
|
1002
|
+
case dataViewCtorString: return dataViewTag;
|
|
1003
|
+
case mapCtorString: return mapTag;
|
|
1004
|
+
case promiseCtorString: return promiseTag;
|
|
1005
|
+
case setCtorString: return setTag;
|
|
1006
|
+
case weakMapCtorString: return weakMapTag;
|
|
1007
|
+
}
|
|
1008
|
+
}
|
|
1009
|
+
return result;
|
|
1010
|
+
};
|
|
1011
|
+
}
|
|
1012
|
+
|
|
1013
|
+
/**
|
|
1014
|
+
* Checks if `value` is a valid array-like index.
|
|
1015
|
+
*
|
|
1016
|
+
* @private
|
|
1017
|
+
* @param {*} value The value to check.
|
|
1018
|
+
* @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.
|
|
1019
|
+
* @returns {boolean} Returns `true` if `value` is a valid index, else `false`.
|
|
1020
|
+
*/
|
|
1021
|
+
function isIndex(value, length) {
|
|
1022
|
+
length = length == null ? MAX_SAFE_INTEGER : length;
|
|
1023
|
+
return !!length &&
|
|
1024
|
+
(typeof value == 'number' || reIsUint.test(value)) &&
|
|
1025
|
+
(value > -1 && value % 1 == 0 && value < length);
|
|
1026
|
+
}
|
|
1027
|
+
|
|
1028
|
+
/**
|
|
1029
|
+
* Checks if the given arguments are from an iteratee call.
|
|
1030
|
+
*
|
|
1031
|
+
* @private
|
|
1032
|
+
* @param {*} value The potential iteratee value argument.
|
|
1033
|
+
* @param {*} index The potential iteratee index or key argument.
|
|
1034
|
+
* @param {*} object The potential iteratee object argument.
|
|
1035
|
+
* @returns {boolean} Returns `true` if the arguments are from an iteratee call,
|
|
1036
|
+
* else `false`.
|
|
1037
|
+
*/
|
|
1038
|
+
function isIterateeCall(value, index, object) {
|
|
1039
|
+
if (!isObject(object)) {
|
|
1040
|
+
return false;
|
|
1041
|
+
}
|
|
1042
|
+
var type = typeof index;
|
|
1043
|
+
if (type == 'number'
|
|
1044
|
+
? (isArrayLike(object) && isIndex(index, object.length))
|
|
1045
|
+
: (type == 'string' && index in object)
|
|
1046
|
+
) {
|
|
1047
|
+
return eq(object[index], value);
|
|
1048
|
+
}
|
|
1049
|
+
return false;
|
|
1050
|
+
}
|
|
1051
|
+
|
|
1052
|
+
/**
|
|
1053
|
+
* Checks if `func` has its source masked.
|
|
1054
|
+
*
|
|
1055
|
+
* @private
|
|
1056
|
+
* @param {Function} func The function to check.
|
|
1057
|
+
* @returns {boolean} Returns `true` if `func` is masked, else `false`.
|
|
1058
|
+
*/
|
|
1059
|
+
function isMasked(func) {
|
|
1060
|
+
return !!maskSrcKey && (maskSrcKey in func);
|
|
1061
|
+
}
|
|
1062
|
+
|
|
1063
|
+
/**
|
|
1064
|
+
* Checks if `value` is likely a prototype object.
|
|
1065
|
+
*
|
|
1066
|
+
* @private
|
|
1067
|
+
* @param {*} value The value to check.
|
|
1068
|
+
* @returns {boolean} Returns `true` if `value` is a prototype, else `false`.
|
|
1069
|
+
*/
|
|
1070
|
+
function isPrototype(value) {
|
|
1071
|
+
var Ctor = value && value.constructor,
|
|
1072
|
+
proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto;
|
|
1073
|
+
|
|
1074
|
+
return value === proto;
|
|
1075
|
+
}
|
|
1076
|
+
|
|
1077
|
+
/**
|
|
1078
|
+
* Converts `func` to its source code.
|
|
1079
|
+
*
|
|
1080
|
+
* @private
|
|
1081
|
+
* @param {Function} func The function to process.
|
|
1082
|
+
* @returns {string} Returns the source code.
|
|
1083
|
+
*/
|
|
1084
|
+
function toSource(func) {
|
|
1085
|
+
if (func != null) {
|
|
1086
|
+
try {
|
|
1087
|
+
return funcToString.call(func);
|
|
1088
|
+
} catch (e) {}
|
|
1089
|
+
try {
|
|
1090
|
+
return (func + '');
|
|
1091
|
+
} catch (e) {}
|
|
1092
|
+
}
|
|
1093
|
+
return '';
|
|
1094
|
+
}
|
|
1095
|
+
|
|
1096
|
+
/**
|
|
1097
|
+
* Gets `n` random elements at unique keys from `collection` up to the
|
|
1098
|
+
* size of `collection`.
|
|
1099
|
+
*
|
|
1100
|
+
* @static
|
|
1101
|
+
* @memberOf _
|
|
1102
|
+
* @since 4.0.0
|
|
1103
|
+
* @category Collection
|
|
1104
|
+
* @param {Array|Object} collection The collection to sample.
|
|
1105
|
+
* @param {number} [n=1] The number of elements to sample.
|
|
1106
|
+
* @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
|
|
1107
|
+
* @returns {Array} Returns the random elements.
|
|
1108
|
+
* @example
|
|
1109
|
+
*
|
|
1110
|
+
* _.sampleSize([1, 2, 3], 2);
|
|
1111
|
+
* // => [3, 1]
|
|
1112
|
+
*
|
|
1113
|
+
* _.sampleSize([1, 2, 3], 4);
|
|
1114
|
+
* // => [2, 3, 1]
|
|
1115
|
+
*/
|
|
1116
|
+
function sampleSize(collection, n, guard) {
|
|
1117
|
+
var index = -1,
|
|
1118
|
+
result = toArray(collection),
|
|
1119
|
+
length = result.length,
|
|
1120
|
+
lastIndex = length - 1;
|
|
1121
|
+
|
|
1122
|
+
if ((guard ? isIterateeCall(collection, n, guard) : n === undefined)) {
|
|
1123
|
+
n = 1;
|
|
1124
|
+
} else {
|
|
1125
|
+
n = baseClamp(toInteger(n), 0, length);
|
|
1126
|
+
}
|
|
1127
|
+
while (++index < n) {
|
|
1128
|
+
var rand = baseRandom(index, lastIndex),
|
|
1129
|
+
value = result[rand];
|
|
1130
|
+
|
|
1131
|
+
result[rand] = result[index];
|
|
1132
|
+
result[index] = value;
|
|
1133
|
+
}
|
|
1134
|
+
result.length = n;
|
|
1135
|
+
return result;
|
|
1136
|
+
}
|
|
1137
|
+
|
|
1138
|
+
/**
|
|
1139
|
+
* Performs a
|
|
1140
|
+
* [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
|
|
1141
|
+
* comparison between two values to determine if they are equivalent.
|
|
1142
|
+
*
|
|
1143
|
+
* @static
|
|
1144
|
+
* @memberOf _
|
|
1145
|
+
* @since 4.0.0
|
|
1146
|
+
* @category Lang
|
|
1147
|
+
* @param {*} value The value to compare.
|
|
1148
|
+
* @param {*} other The other value to compare.
|
|
1149
|
+
* @returns {boolean} Returns `true` if the values are equivalent, else `false`.
|
|
1150
|
+
* @example
|
|
1151
|
+
*
|
|
1152
|
+
* var object = { 'a': 1 };
|
|
1153
|
+
* var other = { 'a': 1 };
|
|
1154
|
+
*
|
|
1155
|
+
* _.eq(object, object);
|
|
1156
|
+
* // => true
|
|
1157
|
+
*
|
|
1158
|
+
* _.eq(object, other);
|
|
1159
|
+
* // => false
|
|
1160
|
+
*
|
|
1161
|
+
* _.eq('a', 'a');
|
|
1162
|
+
* // => true
|
|
1163
|
+
*
|
|
1164
|
+
* _.eq('a', Object('a'));
|
|
1165
|
+
* // => false
|
|
1166
|
+
*
|
|
1167
|
+
* _.eq(NaN, NaN);
|
|
1168
|
+
* // => true
|
|
1169
|
+
*/
|
|
1170
|
+
function eq(value, other) {
|
|
1171
|
+
return value === other || (value !== value && other !== other);
|
|
1172
|
+
}
|
|
1173
|
+
|
|
1174
|
+
/**
|
|
1175
|
+
* Checks if `value` is likely an `arguments` object.
|
|
1176
|
+
*
|
|
1177
|
+
* @static
|
|
1178
|
+
* @memberOf _
|
|
1179
|
+
* @since 0.1.0
|
|
1180
|
+
* @category Lang
|
|
1181
|
+
* @param {*} value The value to check.
|
|
1182
|
+
* @returns {boolean} Returns `true` if `value` is an `arguments` object,
|
|
1183
|
+
* else `false`.
|
|
1184
|
+
* @example
|
|
1185
|
+
*
|
|
1186
|
+
* _.isArguments(function() { return arguments; }());
|
|
1187
|
+
* // => true
|
|
1188
|
+
*
|
|
1189
|
+
* _.isArguments([1, 2, 3]);
|
|
1190
|
+
* // => false
|
|
1191
|
+
*/
|
|
1192
|
+
function isArguments(value) {
|
|
1193
|
+
// Safari 8.1 makes `arguments.callee` enumerable in strict mode.
|
|
1194
|
+
return isArrayLikeObject(value) && hasOwnProperty.call(value, 'callee') &&
|
|
1195
|
+
(!propertyIsEnumerable.call(value, 'callee') || objectToString.call(value) == argsTag);
|
|
1196
|
+
}
|
|
1197
|
+
|
|
1198
|
+
/**
|
|
1199
|
+
* Checks if `value` is classified as an `Array` object.
|
|
1200
|
+
*
|
|
1201
|
+
* @static
|
|
1202
|
+
* @memberOf _
|
|
1203
|
+
* @since 0.1.0
|
|
1204
|
+
* @category Lang
|
|
1205
|
+
* @param {*} value The value to check.
|
|
1206
|
+
* @returns {boolean} Returns `true` if `value` is an array, else `false`.
|
|
1207
|
+
* @example
|
|
1208
|
+
*
|
|
1209
|
+
* _.isArray([1, 2, 3]);
|
|
1210
|
+
* // => true
|
|
1211
|
+
*
|
|
1212
|
+
* _.isArray(document.body.children);
|
|
1213
|
+
* // => false
|
|
1214
|
+
*
|
|
1215
|
+
* _.isArray('abc');
|
|
1216
|
+
* // => false
|
|
1217
|
+
*
|
|
1218
|
+
* _.isArray(_.noop);
|
|
1219
|
+
* // => false
|
|
1220
|
+
*/
|
|
1221
|
+
var isArray = Array.isArray;
|
|
1222
|
+
|
|
1223
|
+
/**
|
|
1224
|
+
* Checks if `value` is array-like. A value is considered array-like if it's
|
|
1225
|
+
* not a function and has a `value.length` that's an integer greater than or
|
|
1226
|
+
* equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.
|
|
1227
|
+
*
|
|
1228
|
+
* @static
|
|
1229
|
+
* @memberOf _
|
|
1230
|
+
* @since 4.0.0
|
|
1231
|
+
* @category Lang
|
|
1232
|
+
* @param {*} value The value to check.
|
|
1233
|
+
* @returns {boolean} Returns `true` if `value` is array-like, else `false`.
|
|
1234
|
+
* @example
|
|
1235
|
+
*
|
|
1236
|
+
* _.isArrayLike([1, 2, 3]);
|
|
1237
|
+
* // => true
|
|
1238
|
+
*
|
|
1239
|
+
* _.isArrayLike(document.body.children);
|
|
1240
|
+
* // => true
|
|
1241
|
+
*
|
|
1242
|
+
* _.isArrayLike('abc');
|
|
1243
|
+
* // => true
|
|
1244
|
+
*
|
|
1245
|
+
* _.isArrayLike(_.noop);
|
|
1246
|
+
* // => false
|
|
1247
|
+
*/
|
|
1248
|
+
function isArrayLike(value) {
|
|
1249
|
+
return value != null && isLength(value.length) && !isFunction(value);
|
|
1250
|
+
}
|
|
1251
|
+
|
|
1252
|
+
/**
|
|
1253
|
+
* This method is like `_.isArrayLike` except that it also checks if `value`
|
|
1254
|
+
* is an object.
|
|
1255
|
+
*
|
|
1256
|
+
* @static
|
|
1257
|
+
* @memberOf _
|
|
1258
|
+
* @since 4.0.0
|
|
1259
|
+
* @category Lang
|
|
1260
|
+
* @param {*} value The value to check.
|
|
1261
|
+
* @returns {boolean} Returns `true` if `value` is an array-like object,
|
|
1262
|
+
* else `false`.
|
|
1263
|
+
* @example
|
|
1264
|
+
*
|
|
1265
|
+
* _.isArrayLikeObject([1, 2, 3]);
|
|
1266
|
+
* // => true
|
|
1267
|
+
*
|
|
1268
|
+
* _.isArrayLikeObject(document.body.children);
|
|
1269
|
+
* // => true
|
|
1270
|
+
*
|
|
1271
|
+
* _.isArrayLikeObject('abc');
|
|
1272
|
+
* // => false
|
|
1273
|
+
*
|
|
1274
|
+
* _.isArrayLikeObject(_.noop);
|
|
1275
|
+
* // => false
|
|
1276
|
+
*/
|
|
1277
|
+
function isArrayLikeObject(value) {
|
|
1278
|
+
return isObjectLike(value) && isArrayLike(value);
|
|
1279
|
+
}
|
|
1280
|
+
|
|
1281
|
+
/**
|
|
1282
|
+
* Checks if `value` is classified as a `Function` object.
|
|
1283
|
+
*
|
|
1284
|
+
* @static
|
|
1285
|
+
* @memberOf _
|
|
1286
|
+
* @since 0.1.0
|
|
1287
|
+
* @category Lang
|
|
1288
|
+
* @param {*} value The value to check.
|
|
1289
|
+
* @returns {boolean} Returns `true` if `value` is a function, else `false`.
|
|
1290
|
+
* @example
|
|
1291
|
+
*
|
|
1292
|
+
* _.isFunction(_);
|
|
1293
|
+
* // => true
|
|
1294
|
+
*
|
|
1295
|
+
* _.isFunction(/abc/);
|
|
1296
|
+
* // => false
|
|
1297
|
+
*/
|
|
1298
|
+
function isFunction(value) {
|
|
1299
|
+
// The use of `Object#toString` avoids issues with the `typeof` operator
|
|
1300
|
+
// in Safari 8-9 which returns 'object' for typed array and other constructors.
|
|
1301
|
+
var tag = isObject(value) ? objectToString.call(value) : '';
|
|
1302
|
+
return tag == funcTag || tag == genTag;
|
|
1303
|
+
}
|
|
1304
|
+
|
|
1305
|
+
/**
|
|
1306
|
+
* Checks if `value` is a valid array-like length.
|
|
1307
|
+
*
|
|
1308
|
+
* **Note:** This method is loosely based on
|
|
1309
|
+
* [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).
|
|
1310
|
+
*
|
|
1311
|
+
* @static
|
|
1312
|
+
* @memberOf _
|
|
1313
|
+
* @since 4.0.0
|
|
1314
|
+
* @category Lang
|
|
1315
|
+
* @param {*} value The value to check.
|
|
1316
|
+
* @returns {boolean} Returns `true` if `value` is a valid length, else `false`.
|
|
1317
|
+
* @example
|
|
1318
|
+
*
|
|
1319
|
+
* _.isLength(3);
|
|
1320
|
+
* // => true
|
|
1321
|
+
*
|
|
1322
|
+
* _.isLength(Number.MIN_VALUE);
|
|
1323
|
+
* // => false
|
|
1324
|
+
*
|
|
1325
|
+
* _.isLength(Infinity);
|
|
1326
|
+
* // => false
|
|
1327
|
+
*
|
|
1328
|
+
* _.isLength('3');
|
|
1329
|
+
* // => false
|
|
1330
|
+
*/
|
|
1331
|
+
function isLength(value) {
|
|
1332
|
+
return typeof value == 'number' &&
|
|
1333
|
+
value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
|
|
1334
|
+
}
|
|
1335
|
+
|
|
1336
|
+
/**
|
|
1337
|
+
* Checks if `value` is the
|
|
1338
|
+
* [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
|
|
1339
|
+
* of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
|
|
1340
|
+
*
|
|
1341
|
+
* @static
|
|
1342
|
+
* @memberOf _
|
|
1343
|
+
* @since 0.1.0
|
|
1344
|
+
* @category Lang
|
|
1345
|
+
* @param {*} value The value to check.
|
|
1346
|
+
* @returns {boolean} Returns `true` if `value` is an object, else `false`.
|
|
1347
|
+
* @example
|
|
1348
|
+
*
|
|
1349
|
+
* _.isObject({});
|
|
1350
|
+
* // => true
|
|
1351
|
+
*
|
|
1352
|
+
* _.isObject([1, 2, 3]);
|
|
1353
|
+
* // => true
|
|
1354
|
+
*
|
|
1355
|
+
* _.isObject(_.noop);
|
|
1356
|
+
* // => true
|
|
1357
|
+
*
|
|
1358
|
+
* _.isObject(null);
|
|
1359
|
+
* // => false
|
|
1360
|
+
*/
|
|
1361
|
+
function isObject(value) {
|
|
1362
|
+
var type = typeof value;
|
|
1363
|
+
return !!value && (type == 'object' || type == 'function');
|
|
1364
|
+
}
|
|
1365
|
+
|
|
1366
|
+
/**
|
|
1367
|
+
* Checks if `value` is object-like. A value is object-like if it's not `null`
|
|
1368
|
+
* and has a `typeof` result of "object".
|
|
1369
|
+
*
|
|
1370
|
+
* @static
|
|
1371
|
+
* @memberOf _
|
|
1372
|
+
* @since 4.0.0
|
|
1373
|
+
* @category Lang
|
|
1374
|
+
* @param {*} value The value to check.
|
|
1375
|
+
* @returns {boolean} Returns `true` if `value` is object-like, else `false`.
|
|
1376
|
+
* @example
|
|
1377
|
+
*
|
|
1378
|
+
* _.isObjectLike({});
|
|
1379
|
+
* // => true
|
|
1380
|
+
*
|
|
1381
|
+
* _.isObjectLike([1, 2, 3]);
|
|
1382
|
+
* // => true
|
|
1383
|
+
*
|
|
1384
|
+
* _.isObjectLike(_.noop);
|
|
1385
|
+
* // => false
|
|
1386
|
+
*
|
|
1387
|
+
* _.isObjectLike(null);
|
|
1388
|
+
* // => false
|
|
1389
|
+
*/
|
|
1390
|
+
function isObjectLike(value) {
|
|
1391
|
+
return !!value && typeof value == 'object';
|
|
1392
|
+
}
|
|
1393
|
+
|
|
1394
|
+
/**
|
|
1395
|
+
* Checks if `value` is classified as a `String` primitive or object.
|
|
1396
|
+
*
|
|
1397
|
+
* @static
|
|
1398
|
+
* @since 0.1.0
|
|
1399
|
+
* @memberOf _
|
|
1400
|
+
* @category Lang
|
|
1401
|
+
* @param {*} value The value to check.
|
|
1402
|
+
* @returns {boolean} Returns `true` if `value` is a string, else `false`.
|
|
1403
|
+
* @example
|
|
1404
|
+
*
|
|
1405
|
+
* _.isString('abc');
|
|
1406
|
+
* // => true
|
|
1407
|
+
*
|
|
1408
|
+
* _.isString(1);
|
|
1409
|
+
* // => false
|
|
1410
|
+
*/
|
|
1411
|
+
function isString(value) {
|
|
1412
|
+
return typeof value == 'string' ||
|
|
1413
|
+
(!isArray(value) && isObjectLike(value) && objectToString.call(value) == stringTag);
|
|
1414
|
+
}
|
|
1415
|
+
|
|
1416
|
+
/**
|
|
1417
|
+
* Checks if `value` is classified as a `Symbol` primitive or object.
|
|
1418
|
+
*
|
|
1419
|
+
* @static
|
|
1420
|
+
* @memberOf _
|
|
1421
|
+
* @since 4.0.0
|
|
1422
|
+
* @category Lang
|
|
1423
|
+
* @param {*} value The value to check.
|
|
1424
|
+
* @returns {boolean} Returns `true` if `value` is a symbol, else `false`.
|
|
1425
|
+
* @example
|
|
1426
|
+
*
|
|
1427
|
+
* _.isSymbol(Symbol.iterator);
|
|
1428
|
+
* // => true
|
|
1429
|
+
*
|
|
1430
|
+
* _.isSymbol('abc');
|
|
1431
|
+
* // => false
|
|
1432
|
+
*/
|
|
1433
|
+
function isSymbol(value) {
|
|
1434
|
+
return typeof value == 'symbol' ||
|
|
1435
|
+
(isObjectLike(value) && objectToString.call(value) == symbolTag);
|
|
1436
|
+
}
|
|
1437
|
+
|
|
1438
|
+
/**
|
|
1439
|
+
* Converts `value` to an array.
|
|
1440
|
+
*
|
|
1441
|
+
* @static
|
|
1442
|
+
* @since 0.1.0
|
|
1443
|
+
* @memberOf _
|
|
1444
|
+
* @category Lang
|
|
1445
|
+
* @param {*} value The value to convert.
|
|
1446
|
+
* @returns {Array} Returns the converted array.
|
|
1447
|
+
* @example
|
|
1448
|
+
*
|
|
1449
|
+
* _.toArray({ 'a': 1, 'b': 2 });
|
|
1450
|
+
* // => [1, 2]
|
|
1451
|
+
*
|
|
1452
|
+
* _.toArray('abc');
|
|
1453
|
+
* // => ['a', 'b', 'c']
|
|
1454
|
+
*
|
|
1455
|
+
* _.toArray(1);
|
|
1456
|
+
* // => []
|
|
1457
|
+
*
|
|
1458
|
+
* _.toArray(null);
|
|
1459
|
+
* // => []
|
|
1460
|
+
*/
|
|
1461
|
+
function toArray(value) {
|
|
1462
|
+
if (!value) {
|
|
1463
|
+
return [];
|
|
1464
|
+
}
|
|
1465
|
+
if (isArrayLike(value)) {
|
|
1466
|
+
return isString(value) ? stringToArray(value) : copyArray(value);
|
|
1467
|
+
}
|
|
1468
|
+
if (iteratorSymbol && value[iteratorSymbol]) {
|
|
1469
|
+
return iteratorToArray(value[iteratorSymbol]());
|
|
1470
|
+
}
|
|
1471
|
+
var tag = getTag(value),
|
|
1472
|
+
func = tag == mapTag ? mapToArray : (tag == setTag ? setToArray : values);
|
|
1473
|
+
|
|
1474
|
+
return func(value);
|
|
1475
|
+
}
|
|
1476
|
+
|
|
1477
|
+
/**
|
|
1478
|
+
* Converts `value` to a finite number.
|
|
1479
|
+
*
|
|
1480
|
+
* @static
|
|
1481
|
+
* @memberOf _
|
|
1482
|
+
* @since 4.12.0
|
|
1483
|
+
* @category Lang
|
|
1484
|
+
* @param {*} value The value to convert.
|
|
1485
|
+
* @returns {number} Returns the converted number.
|
|
1486
|
+
* @example
|
|
1487
|
+
*
|
|
1488
|
+
* _.toFinite(3.2);
|
|
1489
|
+
* // => 3.2
|
|
1490
|
+
*
|
|
1491
|
+
* _.toFinite(Number.MIN_VALUE);
|
|
1492
|
+
* // => 5e-324
|
|
1493
|
+
*
|
|
1494
|
+
* _.toFinite(Infinity);
|
|
1495
|
+
* // => 1.7976931348623157e+308
|
|
1496
|
+
*
|
|
1497
|
+
* _.toFinite('3.2');
|
|
1498
|
+
* // => 3.2
|
|
1499
|
+
*/
|
|
1500
|
+
function toFinite(value) {
|
|
1501
|
+
if (!value) {
|
|
1502
|
+
return value === 0 ? value : 0;
|
|
1503
|
+
}
|
|
1504
|
+
value = toNumber(value);
|
|
1505
|
+
if (value === INFINITY || value === -Infinity) {
|
|
1506
|
+
var sign = (value < 0 ? -1 : 1);
|
|
1507
|
+
return sign * MAX_INTEGER;
|
|
1508
|
+
}
|
|
1509
|
+
return value === value ? value : 0;
|
|
1510
|
+
}
|
|
1511
|
+
|
|
1512
|
+
/**
|
|
1513
|
+
* Converts `value` to an integer.
|
|
1514
|
+
*
|
|
1515
|
+
* **Note:** This method is loosely based on
|
|
1516
|
+
* [`ToInteger`](http://www.ecma-international.org/ecma-262/7.0/#sec-tointeger).
|
|
1517
|
+
*
|
|
1518
|
+
* @static
|
|
1519
|
+
* @memberOf _
|
|
1520
|
+
* @since 4.0.0
|
|
1521
|
+
* @category Lang
|
|
1522
|
+
* @param {*} value The value to convert.
|
|
1523
|
+
* @returns {number} Returns the converted integer.
|
|
1524
|
+
* @example
|
|
1525
|
+
*
|
|
1526
|
+
* _.toInteger(3.2);
|
|
1527
|
+
* // => 3
|
|
1528
|
+
*
|
|
1529
|
+
* _.toInteger(Number.MIN_VALUE);
|
|
1530
|
+
* // => 0
|
|
1531
|
+
*
|
|
1532
|
+
* _.toInteger(Infinity);
|
|
1533
|
+
* // => 1.7976931348623157e+308
|
|
1534
|
+
*
|
|
1535
|
+
* _.toInteger('3.2');
|
|
1536
|
+
* // => 3
|
|
1537
|
+
*/
|
|
1538
|
+
function toInteger(value) {
|
|
1539
|
+
var result = toFinite(value),
|
|
1540
|
+
remainder = result % 1;
|
|
1541
|
+
|
|
1542
|
+
return result === result ? (remainder ? result - remainder : result) : 0;
|
|
1543
|
+
}
|
|
1544
|
+
|
|
1545
|
+
/**
|
|
1546
|
+
* Converts `value` to a number.
|
|
1547
|
+
*
|
|
1548
|
+
* @static
|
|
1549
|
+
* @memberOf _
|
|
1550
|
+
* @since 4.0.0
|
|
1551
|
+
* @category Lang
|
|
1552
|
+
* @param {*} value The value to process.
|
|
1553
|
+
* @returns {number} Returns the number.
|
|
1554
|
+
* @example
|
|
1555
|
+
*
|
|
1556
|
+
* _.toNumber(3.2);
|
|
1557
|
+
* // => 3.2
|
|
1558
|
+
*
|
|
1559
|
+
* _.toNumber(Number.MIN_VALUE);
|
|
1560
|
+
* // => 5e-324
|
|
1561
|
+
*
|
|
1562
|
+
* _.toNumber(Infinity);
|
|
1563
|
+
* // => Infinity
|
|
1564
|
+
*
|
|
1565
|
+
* _.toNumber('3.2');
|
|
1566
|
+
* // => 3.2
|
|
1567
|
+
*/
|
|
1568
|
+
function toNumber(value) {
|
|
1569
|
+
if (typeof value == 'number') {
|
|
1570
|
+
return value;
|
|
1571
|
+
}
|
|
1572
|
+
if (isSymbol(value)) {
|
|
1573
|
+
return NAN;
|
|
1574
|
+
}
|
|
1575
|
+
if (isObject(value)) {
|
|
1576
|
+
var other = typeof value.valueOf == 'function' ? value.valueOf() : value;
|
|
1577
|
+
value = isObject(other) ? (other + '') : other;
|
|
1578
|
+
}
|
|
1579
|
+
if (typeof value != 'string') {
|
|
1580
|
+
return value === 0 ? value : +value;
|
|
1581
|
+
}
|
|
1582
|
+
value = value.replace(reTrim, '');
|
|
1583
|
+
var isBinary = reIsBinary.test(value);
|
|
1584
|
+
return (isBinary || reIsOctal.test(value))
|
|
1585
|
+
? freeParseInt(value.slice(2), isBinary ? 2 : 8)
|
|
1586
|
+
: (reIsBadHex.test(value) ? NAN : +value);
|
|
1587
|
+
}
|
|
1588
|
+
|
|
1589
|
+
/**
|
|
1590
|
+
* Creates an array of the own enumerable property names of `object`.
|
|
1591
|
+
*
|
|
1592
|
+
* **Note:** Non-object values are coerced to objects. See the
|
|
1593
|
+
* [ES spec](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)
|
|
1594
|
+
* for more details.
|
|
1595
|
+
*
|
|
1596
|
+
* @static
|
|
1597
|
+
* @since 0.1.0
|
|
1598
|
+
* @memberOf _
|
|
1599
|
+
* @category Object
|
|
1600
|
+
* @param {Object} object The object to query.
|
|
1601
|
+
* @returns {Array} Returns the array of property names.
|
|
1602
|
+
* @example
|
|
1603
|
+
*
|
|
1604
|
+
* function Foo() {
|
|
1605
|
+
* this.a = 1;
|
|
1606
|
+
* this.b = 2;
|
|
1607
|
+
* }
|
|
1608
|
+
*
|
|
1609
|
+
* Foo.prototype.c = 3;
|
|
1610
|
+
*
|
|
1611
|
+
* _.keys(new Foo);
|
|
1612
|
+
* // => ['a', 'b'] (iteration order is not guaranteed)
|
|
1613
|
+
*
|
|
1614
|
+
* _.keys('hi');
|
|
1615
|
+
* // => ['0', '1']
|
|
1616
|
+
*/
|
|
1617
|
+
function keys(object) {
|
|
1618
|
+
return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object);
|
|
1619
|
+
}
|
|
1620
|
+
|
|
1621
|
+
/**
|
|
1622
|
+
* Creates an array of the own enumerable string keyed property values of `object`.
|
|
1623
|
+
*
|
|
1624
|
+
* **Note:** Non-object values are coerced to objects.
|
|
1625
|
+
*
|
|
1626
|
+
* @static
|
|
1627
|
+
* @since 0.1.0
|
|
1628
|
+
* @memberOf _
|
|
1629
|
+
* @category Object
|
|
1630
|
+
* @param {Object} object The object to query.
|
|
1631
|
+
* @returns {Array} Returns the array of property values.
|
|
1632
|
+
* @example
|
|
1633
|
+
*
|
|
1634
|
+
* function Foo() {
|
|
1635
|
+
* this.a = 1;
|
|
1636
|
+
* this.b = 2;
|
|
1637
|
+
* }
|
|
1638
|
+
*
|
|
1639
|
+
* Foo.prototype.c = 3;
|
|
1640
|
+
*
|
|
1641
|
+
* _.values(new Foo);
|
|
1642
|
+
* // => [1, 2] (iteration order is not guaranteed)
|
|
1643
|
+
*
|
|
1644
|
+
* _.values('hi');
|
|
1645
|
+
* // => ['h', 'i']
|
|
1646
|
+
*/
|
|
1647
|
+
function values(object) {
|
|
1648
|
+
return object ? baseValues(object, keys(object)) : [];
|
|
1649
|
+
}
|
|
1650
|
+
|
|
1651
|
+
lodash_samplesize = sampleSize;
|
|
1652
|
+
return lodash_samplesize;
|
|
1653
|
+
}
|
|
1654
|
+
|
|
1655
|
+
var lodash_samplesizeExports = requireLodash_samplesize();
|
|
1656
|
+
var sampleSize = /*@__PURE__*/getDefaultExportFromCjs(lodash_samplesizeExports);
|
|
1657
|
+
|
|
1658
|
+
const documentComponentDemoCss = ".sc-dsot-document-component-demo-h{display:block;margin-block:0;margin-inline:8px;border-inline-start:1px dashed transparent;border-inline-end:1px dashed transparent}[show-canvas].sc-dsot-document-component-demo-h{border-inline-start:1px dashed pink;border-inline-end:1px dashed pink}";
|
|
1659
|
+
|
|
1660
|
+
const DocumentComponentDemo = /*@__PURE__*/ proxyCustomElement(class DocumentComponentDemo extends H {
|
|
1661
|
+
constructor() {
|
|
1662
|
+
super();
|
|
1663
|
+
this.__registerHost();
|
|
1664
|
+
this.dsotOzonContentAnchorClick = createEvent(this, "dsotOzonContentAnchorClick", 7);
|
|
1665
|
+
this.dsotTableOfContentsClick = createEvent(this, "dsotTableOfContentsClick", 3);
|
|
1666
|
+
/**
|
|
1667
|
+
* Show canvas to where Document Component extends.
|
|
1668
|
+
*/
|
|
1669
|
+
this.showCanvas = false;
|
|
1670
|
+
/**
|
|
1671
|
+
* The default state for all Document Components.
|
|
1672
|
+
*/
|
|
1673
|
+
this.openDefault = false;
|
|
1674
|
+
/**
|
|
1675
|
+
* The mode of the Document Component. One of "document" or "table-of-contents". Defaults to "document"
|
|
1676
|
+
*/
|
|
1677
|
+
this.mode = "document";
|
|
1678
|
+
this.openOrClosed = [];
|
|
1679
|
+
this.openedAnnotation = [];
|
|
1680
|
+
this.filtered = [];
|
|
1681
|
+
this.notApplicable = [];
|
|
1682
|
+
this.activeAnnotationSelectables = [];
|
|
1683
|
+
this.handleRecursiveToggle = (documentComponent, detail) => {
|
|
1684
|
+
const embeddedDocuments = this.getEmbeddedDocumentComponents(documentComponent);
|
|
1685
|
+
if (!embeddedDocuments) {
|
|
1686
|
+
return;
|
|
1687
|
+
}
|
|
1688
|
+
for (const d of embeddedDocuments.documentComponents) {
|
|
1689
|
+
this.handleOpenToggle(d, detail.next);
|
|
1690
|
+
}
|
|
1691
|
+
};
|
|
1692
|
+
this.DocumentComponent = ({ path }) => {
|
|
1693
|
+
const documentComponent = path.at(-1);
|
|
1694
|
+
if (!documentComponent || (this.mode === "table-of-contents" && documentComponent.type === "LID")) {
|
|
1695
|
+
return h(Fragment, null);
|
|
1696
|
+
}
|
|
1697
|
+
const { DocumentComponent } = this;
|
|
1698
|
+
const embeddedDocuments = this.getEmbeddedDocumentComponents(documentComponent);
|
|
1699
|
+
return (h("dso-document-component", { annotated: this.isAnnotated(documentComponent), bevatOntwerpInformatie: !!documentComponent.bevatOntwerpInformatie, filtered: this.isOpen(documentComponent)
|
|
1700
|
+
? this.isFiltered(documentComponent)
|
|
1701
|
+
: this.hasFilteredChildren(documentComponent), genesteOntwerpInformatie: this.hasNestedDraft(documentComponent), gereserveerd: documentComponent.gereserveerd, heading: "h2", kop: documentComponent.kop, inhoud: documentComponent.inhoud, openAnnotation: this.isOpenedAnnotation(documentComponent), notApplicable: this.isNotApplicable(documentComponent) || path.some((p) => this.isNotApplicable(p)), onDsoAnnotationToggle: () => this.handleAnnotationToggle(documentComponent), onDsoOpenToggle: () => this.handleOpenToggle(documentComponent), onDsoOzonContentAnchorClick: (e) => this.handleOzonContentAnchorClick(e), open: this.isOpen(documentComponent), type: documentComponent.type, vervallen: documentComponent.vervallen, wijzigactie: documentComponent.wijzigactie, recursiveToggle: this.recursiveToggleState(documentComponent), onDsoRecursiveToggle: (e) => this.handleRecursiveToggle(documentComponent, e.detail), mode: this.mode, href: this.mode === "table-of-contents" ? "/document/" + documentComponent.documentTechnischId : undefined, onDsoTableOfContentsClick: (e) => this.handleTableOfContentsClick(e), ozonContentUrlResolver: this.ozonContentUrlResolver }, this.isOpenedAnnotation(documentComponent) && (h("div", { slot: "annotations" }, h("dso-annotation-locatie", { active: this.isCheckedSlideToggle(documentComponent), "gewijzigde-locatie": true, locatieNoemer: "Winkelgebied", onDsoActiveChange: () => this.handleSelectableChange(documentComponent) }, h("span", { class: "symboolcode", slot: "symbool", "data-symboolcode": "vszt030" })))), this.showContent(documentComponent) && (embeddedDocuments === null || embeddedDocuments === void 0 ? void 0 : embeddedDocuments.documentComponents.length) && (h("ul", { class: "dso-document-component-list" }, embeddedDocuments.documentComponents.map((d) => (h("li", { key: d.documentTechnischId }, h(DocumentComponent, { path: [...path, d] }))))))));
|
|
1702
|
+
};
|
|
1703
|
+
this.MenuButton = ({ documentComponent }) => {
|
|
1704
|
+
const { labelXml, nummerXml, type } = documentComponent;
|
|
1705
|
+
return (h("button", { type: "button", onClick: () => (this.document = documentComponent) }, !labelXml && !nummerXml ? (h("span", null, h("i", null, type))) : (h(Fragment, null, labelXml && (h(Fragment, null, h("dso-ozon-content", { content: labelXml, inline: true }))), nummerXml && (h(Fragment, null, " ", h("dso-ozon-content", { content: nummerXml, inline: true })))))));
|
|
1706
|
+
};
|
|
1707
|
+
}
|
|
1708
|
+
async jsonFileWatcher() {
|
|
1709
|
+
this.openOrClosed = [];
|
|
1710
|
+
await this.loadData();
|
|
1711
|
+
}
|
|
1712
|
+
async openDefaultWatcher() {
|
|
1713
|
+
this.openOrClosed = [];
|
|
1714
|
+
await this.loadData();
|
|
1715
|
+
}
|
|
1716
|
+
async componentDidLoad() {
|
|
1717
|
+
await this.loadData();
|
|
1718
|
+
}
|
|
1719
|
+
getEmbeddedDocumentComponents(documentEmbedded) {
|
|
1720
|
+
var _a, _b;
|
|
1721
|
+
if ((_a = documentEmbedded === null || documentEmbedded === void 0 ? void 0 : documentEmbedded._embedded) === null || _a === void 0 ? void 0 : _a.ontwerpDocumentComponenten) {
|
|
1722
|
+
return {
|
|
1723
|
+
documentComponents: documentEmbedded._embedded.ontwerpDocumentComponenten,
|
|
1724
|
+
ontwerp: true,
|
|
1725
|
+
};
|
|
1726
|
+
}
|
|
1727
|
+
if ((_b = documentEmbedded === null || documentEmbedded === void 0 ? void 0 : documentEmbedded._embedded) === null || _b === void 0 ? void 0 : _b.documentComponenten) {
|
|
1728
|
+
return {
|
|
1729
|
+
documentComponents: documentEmbedded._embedded.documentComponenten,
|
|
1730
|
+
ontwerp: false,
|
|
1731
|
+
};
|
|
1732
|
+
}
|
|
1733
|
+
return undefined;
|
|
1734
|
+
}
|
|
1735
|
+
concatEmbeddedDocumentComponents(documentComponent) {
|
|
1736
|
+
var _a, _b;
|
|
1737
|
+
const embeddedDocuments = [...((_b = (_a = this.getEmbeddedDocumentComponents(documentComponent)) === null || _a === void 0 ? void 0 : _a.documentComponents) !== null && _b !== void 0 ? _b : [])];
|
|
1738
|
+
for (const d of embeddedDocuments) {
|
|
1739
|
+
embeddedDocuments.push(...this.concatEmbeddedDocumentComponents(d));
|
|
1740
|
+
}
|
|
1741
|
+
return embeddedDocuments;
|
|
1742
|
+
}
|
|
1743
|
+
selectRandomDocumentComponents(documentComponent, exclude = []) {
|
|
1744
|
+
const documentComponents = this.concatEmbeddedDocumentComponents(documentComponent).filter((d) => !exclude.includes(d));
|
|
1745
|
+
const size = random(0, Math.floor(documentComponents.length / 10));
|
|
1746
|
+
return sampleSize(documentComponents, size);
|
|
1747
|
+
}
|
|
1748
|
+
async loadData() {
|
|
1749
|
+
var _a, _b;
|
|
1750
|
+
if (!this.jsonFile) {
|
|
1751
|
+
this.response = undefined;
|
|
1752
|
+
this.document = undefined;
|
|
1753
|
+
return;
|
|
1754
|
+
}
|
|
1755
|
+
this.response = await fetch(this.jsonFile).then((r) => r.json());
|
|
1756
|
+
this.document = (_a = this.getEmbeddedDocumentComponents(this.response)) === null || _a === void 0 ? void 0 : _a.documentComponents[0];
|
|
1757
|
+
if (((_b = this.document) === null || _b === void 0 ? void 0 : _b.type) === "LICHAAM") {
|
|
1758
|
+
this.notApplicable = this.selectRandomDocumentComponents(this.document);
|
|
1759
|
+
this.filtered = this.selectRandomDocumentComponents(this.document, this.notApplicable);
|
|
1760
|
+
}
|
|
1761
|
+
else {
|
|
1762
|
+
this.notApplicable = [];
|
|
1763
|
+
this.filtered = [];
|
|
1764
|
+
}
|
|
1765
|
+
}
|
|
1766
|
+
handleOpenToggle(documentComponent, force) {
|
|
1767
|
+
const isOpenOrClosed = typeof force === "boolean" ? force : this.openOrClosed.includes(documentComponent);
|
|
1768
|
+
if (isOpenOrClosed && this.openOrClosed.includes(documentComponent)) {
|
|
1769
|
+
this.openOrClosed = this.openOrClosed.filter((d) => d !== documentComponent);
|
|
1770
|
+
}
|
|
1771
|
+
else if (!isOpenOrClosed && !this.openOrClosed.includes(documentComponent)) {
|
|
1772
|
+
this.openOrClosed = [...this.openOrClosed, documentComponent];
|
|
1773
|
+
}
|
|
1774
|
+
}
|
|
1775
|
+
handleAnnotationToggle(documentComponent) {
|
|
1776
|
+
this.openedAnnotation = this.isOpenedAnnotation(documentComponent)
|
|
1777
|
+
? this.openedAnnotation.filter((d) => d !== documentComponent)
|
|
1778
|
+
: [...this.openedAnnotation, documentComponent];
|
|
1779
|
+
if (!this.isOpen(documentComponent)) {
|
|
1780
|
+
this.openOrClosed = [...this.openOrClosed, documentComponent];
|
|
1781
|
+
}
|
|
1782
|
+
}
|
|
1783
|
+
handleSelectableChange(documentComponent) {
|
|
1784
|
+
this.activeAnnotationSelectables = this.isCheckedSlideToggle(documentComponent)
|
|
1785
|
+
? this.activeAnnotationSelectables.filter((d) => d !== documentComponent)
|
|
1786
|
+
: [...this.activeAnnotationSelectables, documentComponent];
|
|
1787
|
+
}
|
|
1788
|
+
handleOzonContentAnchorClick(e) {
|
|
1789
|
+
this.dsotOzonContentAnchorClick.emit(e.detail);
|
|
1790
|
+
}
|
|
1791
|
+
handleTableOfContentsClick(e) {
|
|
1792
|
+
this.dsotTableOfContentsClick.emit(e.detail);
|
|
1793
|
+
}
|
|
1794
|
+
isCheckedSlideToggle(documentComponent) {
|
|
1795
|
+
return this.activeAnnotationSelectables.includes(documentComponent);
|
|
1796
|
+
}
|
|
1797
|
+
hasFilteredChildren(documentComponent) {
|
|
1798
|
+
var _a, _b;
|
|
1799
|
+
return (this.filtered.includes(documentComponent) ||
|
|
1800
|
+
((_b = (_a = this.getEmbeddedDocumentComponents(documentComponent)) === null || _a === void 0 ? void 0 : _a.documentComponents.some((d) => this.hasFilteredChildren(d))) !== null && _b !== void 0 ? _b : false));
|
|
1801
|
+
}
|
|
1802
|
+
isOpen(documentComponent) {
|
|
1803
|
+
return documentComponent.type === "LID" || this.openDefault
|
|
1804
|
+
? !this.openOrClosed.includes(documentComponent)
|
|
1805
|
+
: this.openOrClosed.includes(documentComponent);
|
|
1806
|
+
}
|
|
1807
|
+
isOpenedAnnotation(documentComponent) {
|
|
1808
|
+
return this.openedAnnotation.includes(documentComponent);
|
|
1809
|
+
}
|
|
1810
|
+
isFiltered(documentComponent) {
|
|
1811
|
+
return this.filtered.includes(documentComponent);
|
|
1812
|
+
}
|
|
1813
|
+
isNotApplicable(documentComponent) {
|
|
1814
|
+
return this.notApplicable.includes(documentComponent);
|
|
1815
|
+
}
|
|
1816
|
+
hasNestedDraft(documentComponent) {
|
|
1817
|
+
var _a, _b;
|
|
1818
|
+
return ((_b = (_a = this.getEmbeddedDocumentComponents(documentComponent)) === null || _a === void 0 ? void 0 : _a.documentComponents.some((d) => !!d.bevatOntwerpInformatie || this.hasNestedDraft(d))) !== null && _b !== void 0 ? _b : false);
|
|
1819
|
+
}
|
|
1820
|
+
showContent(documentComponent) {
|
|
1821
|
+
var _a;
|
|
1822
|
+
return (this.isOpen(documentComponent) &&
|
|
1823
|
+
!!(((_a = this.getEmbeddedDocumentComponents(documentComponent)) === null || _a === void 0 ? void 0 : _a.documentComponents.length) || documentComponent.inhoud));
|
|
1824
|
+
}
|
|
1825
|
+
recursiveToggleState(documentComponent) {
|
|
1826
|
+
const embeddedDocuments = this.getEmbeddedDocumentComponents(documentComponent);
|
|
1827
|
+
if (!embeddedDocuments ||
|
|
1828
|
+
embeddedDocuments.documentComponents.length <= 1 ||
|
|
1829
|
+
!embeddedDocuments.documentComponents.some((d) => d.type === "ARTIKEL")) {
|
|
1830
|
+
return undefined;
|
|
1831
|
+
}
|
|
1832
|
+
return embeddedDocuments.documentComponents.every((d) => this.isOpen(d));
|
|
1833
|
+
}
|
|
1834
|
+
isAnnotated(documentComponent) {
|
|
1835
|
+
return (documentComponent.type === "DIVISIE" ||
|
|
1836
|
+
documentComponent.type === "DIVISIETEKST" ||
|
|
1837
|
+
documentComponent.type === "ARTIKEL" ||
|
|
1838
|
+
documentComponent.type === "LID");
|
|
1839
|
+
}
|
|
1840
|
+
render() {
|
|
1841
|
+
var _a, _b;
|
|
1842
|
+
const { DocumentComponent, MenuButton } = this;
|
|
1843
|
+
return (h("dso-responsive-element", { key: '035af6f3f084c434155b8a7cea1fd2a054af9bfc', class: "dso-document-components" }, h("div", { key: 'baa05e7f091391fb8a1779365a5f98fa5e552af5', class: "dso-navbar" }, h("ul", { key: '030d2050156fe948be7678fcf456d113d9107ba3', class: "dso-nav dso-nav-sub" }, (_b = (_a = this.getEmbeddedDocumentComponents(this.response)) === null || _a === void 0 ? void 0 : _a.documentComponents) === null || _b === void 0 ? void 0 : _b.map((d) => (h("li", { class: this.document === d ? "dso-active" : undefined }, h(MenuButton, { documentComponent: d })))))), this.document && h(DocumentComponent, { key: '13387515126f7264942f57be563c9031b3593b49', path: [this.document] })));
|
|
1844
|
+
}
|
|
1845
|
+
static get watchers() { return {
|
|
1846
|
+
"jsonFile": ["jsonFileWatcher"],
|
|
1847
|
+
"openDefault": ["openDefaultWatcher"]
|
|
1848
|
+
}; }
|
|
1849
|
+
static get style() { return documentComponentDemoCss; }
|
|
1850
|
+
}, [2, "dsot-document-component-demo", {
|
|
1851
|
+
"showCanvas": [516, "show-canvas"],
|
|
1852
|
+
"jsonFile": [1, "json-file"],
|
|
1853
|
+
"openDefault": [4, "open-default"],
|
|
1854
|
+
"mode": [513],
|
|
1855
|
+
"ozonContentUrlResolver": [16, "ozon-content-url-resolver"],
|
|
1856
|
+
"response": [32],
|
|
1857
|
+
"document": [32],
|
|
1858
|
+
"openOrClosed": [32],
|
|
1859
|
+
"openedAnnotation": [32],
|
|
1860
|
+
"filtered": [32],
|
|
1861
|
+
"notApplicable": [32],
|
|
1862
|
+
"activeAnnotationSelectables": [32]
|
|
1863
|
+
}, undefined, {
|
|
1864
|
+
"jsonFile": ["jsonFileWatcher"],
|
|
1865
|
+
"openDefault": ["openDefaultWatcher"]
|
|
1866
|
+
}]);
|
|
1867
|
+
function defineCustomElement$1() {
|
|
1868
|
+
if (typeof customElements === "undefined") {
|
|
1869
|
+
return;
|
|
1870
|
+
}
|
|
1871
|
+
const components = ["dsot-document-component-demo", "dso-alert", "dso-annotation-locatie", "dso-badge", "dso-document-component", "dso-icon", "dso-image-overlay", "dso-label", "dso-ozon-content", "dso-panel", "dso-renvooi", "dso-responsive-element", "dso-slide-toggle", "dso-table", "dso-tooltip"];
|
|
1872
|
+
components.forEach(tagName => { switch (tagName) {
|
|
1873
|
+
case "dsot-document-component-demo":
|
|
1874
|
+
if (!customElements.get(tagName)) {
|
|
1875
|
+
customElements.define(tagName, DocumentComponentDemo);
|
|
1876
|
+
}
|
|
1877
|
+
break;
|
|
1878
|
+
case "dso-alert":
|
|
1879
|
+
if (!customElements.get(tagName)) {
|
|
1880
|
+
defineCustomElement$f();
|
|
1881
|
+
}
|
|
1882
|
+
break;
|
|
1883
|
+
case "dso-annotation-locatie":
|
|
1884
|
+
if (!customElements.get(tagName)) {
|
|
1885
|
+
defineCustomElement$e();
|
|
1886
|
+
}
|
|
1887
|
+
break;
|
|
1888
|
+
case "dso-badge":
|
|
1889
|
+
if (!customElements.get(tagName)) {
|
|
1890
|
+
defineCustomElement$d();
|
|
1891
|
+
}
|
|
1892
|
+
break;
|
|
1893
|
+
case "dso-document-component":
|
|
1894
|
+
if (!customElements.get(tagName)) {
|
|
1895
|
+
defineCustomElement$c();
|
|
1896
|
+
}
|
|
1897
|
+
break;
|
|
1898
|
+
case "dso-icon":
|
|
1899
|
+
if (!customElements.get(tagName)) {
|
|
1900
|
+
defineCustomElement$b();
|
|
1901
|
+
}
|
|
1902
|
+
break;
|
|
1903
|
+
case "dso-image-overlay":
|
|
1904
|
+
if (!customElements.get(tagName)) {
|
|
1905
|
+
defineCustomElement$a();
|
|
1906
|
+
}
|
|
1907
|
+
break;
|
|
1908
|
+
case "dso-label":
|
|
1909
|
+
if (!customElements.get(tagName)) {
|
|
1910
|
+
defineCustomElement$9();
|
|
1911
|
+
}
|
|
1912
|
+
break;
|
|
1913
|
+
case "dso-ozon-content":
|
|
1914
|
+
if (!customElements.get(tagName)) {
|
|
1915
|
+
defineCustomElement$8();
|
|
1916
|
+
}
|
|
1917
|
+
break;
|
|
1918
|
+
case "dso-panel":
|
|
1919
|
+
if (!customElements.get(tagName)) {
|
|
1920
|
+
defineCustomElement$7();
|
|
1921
|
+
}
|
|
1922
|
+
break;
|
|
1923
|
+
case "dso-renvooi":
|
|
1924
|
+
if (!customElements.get(tagName)) {
|
|
1925
|
+
defineCustomElement$6();
|
|
1926
|
+
}
|
|
1927
|
+
break;
|
|
1928
|
+
case "dso-responsive-element":
|
|
1929
|
+
if (!customElements.get(tagName)) {
|
|
1930
|
+
defineCustomElement$5();
|
|
1931
|
+
}
|
|
1932
|
+
break;
|
|
1933
|
+
case "dso-slide-toggle":
|
|
1934
|
+
if (!customElements.get(tagName)) {
|
|
1935
|
+
defineCustomElement$4();
|
|
1936
|
+
}
|
|
1937
|
+
break;
|
|
1938
|
+
case "dso-table":
|
|
1939
|
+
if (!customElements.get(tagName)) {
|
|
1940
|
+
defineCustomElement$3();
|
|
1941
|
+
}
|
|
1942
|
+
break;
|
|
1943
|
+
case "dso-tooltip":
|
|
1944
|
+
if (!customElements.get(tagName)) {
|
|
1945
|
+
defineCustomElement$2();
|
|
1946
|
+
}
|
|
1947
|
+
break;
|
|
1948
|
+
} });
|
|
1949
|
+
}
|
|
1950
|
+
|
|
1951
|
+
const DsotDocumentComponentDemo = DocumentComponentDemo;
|
|
1952
|
+
const defineCustomElement = defineCustomElement$1;
|
|
1953
|
+
|
|
1954
|
+
export { DsotDocumentComponentDemo, defineCustomElement };
|
|
1955
|
+
//# sourceMappingURL=dsot-document-component-demo.js.map
|
|
1956
|
+
|
|
1957
|
+
//# sourceMappingURL=dsot-document-component-demo.js.map
|