@sparkle-learning/core 0.0.56 → 0.0.57
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/sparkle-core/PrivateRoute-a12e7ee5.js +37 -0
- package/dist/sparkle-core/account.service-e711795d.js +63 -0
- package/dist/sparkle-core/active-router-af86c9b4.js +73 -0
- package/dist/sparkle-core/animation-676a644d.js +984 -0
- package/dist/sparkle-core/app-globals-9ffa9ec3.js +10 -0
- package/dist/sparkle-core/appdata.service-703dff70.js +69 -0
- package/dist/sparkle-core/assets/user.png +0 -0
- package/dist/sparkle-core/assets.service-6508aae6.js +71 -0
- package/dist/sparkle-core/assignment.service-e42e9368.js +17 -0
- package/dist/sparkle-core/button-active-d68c5eb7.js +67 -0
- package/dist/sparkle-core/compass-svg.entry.js +128 -0
- package/dist/sparkle-core/context-consumer.entry.js +25 -0
- package/dist/sparkle-core/course-select.entry.js +26 -0
- package/dist/sparkle-core/css-shim-04165e59.js +4 -0
- package/dist/sparkle-core/dom-26e7cb2c.js +73 -0
- package/dist/sparkle-core/dom-utils-8e73e88b.js +55 -0
- package/dist/sparkle-core/facilitator.service-00a88935.js +79 -0
- package/dist/sparkle-core/facilitator.store-01be0386.js +18 -0
- package/dist/sparkle-core/feed.service-d495f3e1.js +53 -0
- package/dist/sparkle-core/framework-delegate-d3fa493f.js +107 -0
- package/dist/sparkle-core/haptic-a9e94599.js +124 -0
- package/dist/sparkle-core/header-mobile-collapse.entry.js +86 -0
- package/dist/sparkle-core/helpers-f11f0674.js +406 -0
- package/dist/sparkle-core/icons-758d1417.js +41 -0
- package/dist/sparkle-core/index-05b398c2.js +34 -0
- package/dist/sparkle-core/index-0af0deac.js +312 -0
- package/dist/sparkle-core/index-0df264ee.js +4518 -0
- package/dist/sparkle-core/index-183cda39.js +223 -0
- package/dist/sparkle-core/index-18a69883.js +1336 -0
- package/dist/sparkle-core/index-1d7a6fa0.js +269 -0
- package/dist/sparkle-core/index-1dec9544.js +3064 -0
- package/dist/sparkle-core/index-81dab78f.js +85 -0
- package/dist/sparkle-core/index-9b5bcea1.js +22 -0
- package/dist/sparkle-core/index-bb469fe3.js +128 -0
- package/dist/sparkle-core/index-d2990a48.js +184 -0
- package/dist/sparkle-core/index-dd414b33.js +653 -0
- package/dist/sparkle-core/index-faeec85a.js +8 -0
- package/dist/sparkle-core/index.es-1f6eedc5.js +11066 -0
- package/dist/sparkle-core/index.esm.js +19 -1
- package/dist/sparkle-core/input-shims-0b2f5522.js +418 -0
- package/dist/sparkle-core/ion-accordion-group.entry.js +201 -0
- package/dist/sparkle-core/ion-accordion.entry.js +332 -0
- package/dist/sparkle-core/ion-action-sheet.entry.js +263 -0
- package/dist/sparkle-core/ion-alert.entry.js +448 -0
- package/dist/sparkle-core/ion-app.entry.js +75 -0
- package/dist/sparkle-core/ion-avatar.entry.js +21 -0
- package/dist/sparkle-core/ion-back-button.entry.js +90 -0
- package/dist/sparkle-core/ion-backdrop.entry.js +63 -0
- package/dist/sparkle-core/ion-badge.entry.js +25 -0
- package/dist/sparkle-core/ion-breadcrumb.entry.js +91 -0
- package/dist/sparkle-core/ion-breadcrumbs.entry.js +129 -0
- package/dist/sparkle-core/ion-button.entry.js +125 -0
- package/dist/sparkle-core/ion-buttons.entry.js +38 -0
- package/dist/sparkle-core/ion-card-content.entry.js +26 -0
- package/dist/sparkle-core/ion-card-header.entry.js +33 -0
- package/dist/sparkle-core/ion-card-subtitle.entry.js +26 -0
- package/dist/sparkle-core/ion-card-title.entry.js +26 -0
- package/dist/sparkle-core/ion-card.entry.js +64 -0
- package/dist/sparkle-core/ion-checkbox.entry.js +109 -0
- package/dist/sparkle-core/ion-chip.entry.js +36 -0
- package/dist/sparkle-core/ion-col.entry.js +121 -0
- package/dist/sparkle-core/ion-content.entry.js +319 -0
- package/dist/sparkle-core/ion-datetime-button.entry.js +308 -0
- package/dist/sparkle-core/ion-datetime.entry.js +1619 -0
- package/dist/sparkle-core/ion-fab-button.entry.js +104 -0
- package/dist/sparkle-core/ion-fab-list.entry.js +41 -0
- package/dist/sparkle-core/ion-fab.entry.js +72 -0
- package/dist/sparkle-core/ion-footer.entry.js +116 -0
- package/dist/sparkle-core/ion-grid.entry.js +24 -0
- package/dist/sparkle-core/ion-header.entry.js +341 -0
- package/dist/sparkle-core/ion-icon.entry.js +200 -0
- package/dist/sparkle-core/ion-img.entry.js +97 -0
- package/dist/sparkle-core/ion-infinite-scroll-content.entry.js +33 -0
- package/dist/sparkle-core/ion-infinite-scroll.entry.js +202 -0
- package/dist/sparkle-core/ion-input.entry.js +293 -0
- package/dist/sparkle-core/ion-item-divider.entry.js +36 -0
- package/dist/sparkle-core/ion-item-group.entry.js +27 -0
- package/dist/sparkle-core/ion-item-option.entry.js +56 -0
- package/dist/sparkle-core/ion-item-options.entry.js +43 -0
- package/dist/sparkle-core/ion-item-sliding.entry.js +394 -0
- package/dist/sparkle-core/ion-item.entry.js +267 -0
- package/dist/sparkle-core/ion-label.entry.js +77 -0
- package/dist/sparkle-core/ion-list-header.entry.js +27 -0
- package/dist/sparkle-core/ion-list.entry.js +48 -0
- package/dist/sparkle-core/ion-loading.entry.js +211 -0
- package/dist/sparkle-core/ion-menu-button.entry.js +72 -0
- package/dist/sparkle-core/ion-menu-toggle.entry.js +43 -0
- package/dist/sparkle-core/ion-menu.entry.js +575 -0
- package/dist/sparkle-core/ion-modal.entry.js +1706 -0
- package/dist/sparkle-core/ion-nav-link.entry.js +43 -0
- package/dist/sparkle-core/ion-nav.entry.js +872 -0
- package/dist/sparkle-core/ion-note.entry.js +25 -0
- package/dist/sparkle-core/ion-picker-column-internal.entry.js +363 -0
- package/dist/sparkle-core/ion-picker-column.entry.js +327 -0
- package/dist/sparkle-core/ion-picker-internal.entry.js +454 -0
- package/dist/sparkle-core/ion-picker.entry.js +217 -0
- package/dist/sparkle-core/ion-popover.entry.js +1362 -0
- package/dist/sparkle-core/ion-progress-bar.entry.js +70 -0
- package/dist/sparkle-core/ion-radio-group.entry.js +121 -0
- package/dist/sparkle-core/ion-radio.entry.js +111 -0
- package/dist/sparkle-core/ion-range.entry.js +511 -0
- package/dist/sparkle-core/ion-refresher-content.entry.js +31 -0
- package/dist/sparkle-core/ion-refresher.entry.js +798 -0
- package/dist/sparkle-core/ion-reorder-group.entry.js +277 -0
- package/dist/sparkle-core/ion-reorder.entry.js +34 -0
- package/dist/sparkle-core/ion-ripple-effect.entry.js +89 -0
- package/dist/sparkle-core/ion-route-redirect.entry.js +20 -0
- package/dist/sparkle-core/ion-route.entry.js +45 -0
- package/dist/sparkle-core/ion-router-link.entry.js +34 -0
- package/dist/sparkle-core/ion-router-outlet.entry.js +196 -0
- package/dist/sparkle-core/ion-router.entry.js +827 -0
- package/dist/sparkle-core/ion-row.entry.js +16 -0
- package/dist/sparkle-core/ion-searchbar.entry.js +366 -0
- package/dist/sparkle-core/ion-segment-button.entry.js +98 -0
- package/dist/sparkle-core/ion-segment.entry.js +415 -0
- package/dist/sparkle-core/ion-select-option.entry.js +23 -0
- package/dist/sparkle-core/ion-select-popover.entry.js +96 -0
- package/dist/sparkle-core/ion-select.entry.js +510 -0
- package/dist/sparkle-core/ion-skeleton-text.entry.js +29 -0
- package/dist/sparkle-core/ion-slide.entry.js +21 -0
- package/dist/sparkle-core/ion-slides.entry.js +387 -0
- package/dist/sparkle-core/ion-spinner.entry.js +60 -0
- package/dist/sparkle-core/ion-split-pane.entry.js +156 -0
- package/dist/sparkle-core/ion-tab-bar.entry.js +71 -0
- package/dist/sparkle-core/ion-tab-button.entry.js +99 -0
- package/dist/sparkle-core/ion-tab.entry.js +63 -0
- package/dist/sparkle-core/ion-tabs.entry.js +150 -0
- package/dist/sparkle-core/ion-text.entry.js +20 -0
- package/dist/sparkle-core/ion-textarea.entry.js +244 -0
- package/dist/sparkle-core/ion-thumbnail.entry.js +16 -0
- package/dist/sparkle-core/ion-title.entry.js +48 -0
- package/dist/sparkle-core/ion-toast.entry.js +268 -0
- package/dist/sparkle-core/ion-toggle.entry.js +173 -0
- package/dist/sparkle-core/ion-toolbar.entry.js +70 -0
- package/dist/sparkle-core/ion-virtual-scroll.entry.js +551 -0
- package/dist/sparkle-core/ionic-global-127576f6.js +226 -0
- package/dist/sparkle-core/ios.transition-02531dda.js +479 -0
- package/dist/sparkle-core/location-utils-fea12957.js +229 -0
- package/dist/sparkle-core/match-path-760e1797.js +343 -0
- package/dist/sparkle-core/md.transition-f8765467.js +55 -0
- package/dist/sparkle-core/media.service-2609406e.js +36 -0
- package/dist/sparkle-core/menu-toggle-util-6cc13cbd.js +12 -0
- package/dist/sparkle-core/overlays-fd3cfa13.js +493 -0
- package/dist/sparkle-core/parse-60474840.js +1196 -0
- package/dist/sparkle-core/purify-d9093094.js +1469 -0
- package/dist/sparkle-core/quiz.model-1cff62e4.js +5 -0
- package/dist/sparkle-core/shadow-css-1257b266.js +387 -0
- package/dist/sparkle-core/signalR.service-2b7645c1.js +2983 -0
- package/dist/sparkle-core/sparkle-animation-player.entry.js +513 -0
- package/dist/sparkle-core/sparkle-assignment.entry.js +114 -0
- package/dist/sparkle-core/sparkle-button.entry.js +24 -0
- package/dist/sparkle-core/sparkle-card.entry.js +61 -0
- package/dist/sparkle-core/sparkle-cards.entry.js +15 -0
- package/dist/sparkle-core/sparkle-character-intro.entry.js +22 -0
- package/dist/sparkle-core/sparkle-code.entry.js +39 -0
- package/dist/sparkle-core/sparkle-compass-post.entry.js +129 -0
- package/dist/sparkle-core/sparkle-compass.entry.js +122 -0
- package/dist/sparkle-core/sparkle-core.css +2660 -1
- package/dist/sparkle-core/sparkle-core.esm.js +130 -1
- package/dist/sparkle-core/sparkle-course-root.entry.js +155 -0
- package/dist/sparkle-core/sparkle-discussion-questions.entry.js +122 -0
- package/dist/sparkle-core/sparkle-discussion-results.entry.js +189 -0
- package/dist/sparkle-core/sparkle-discussion.entry.js +52 -0
- package/dist/sparkle-core/sparkle-dropdown.entry.js +57 -0
- package/dist/sparkle-core/sparkle-emoji.entry.js +77 -0
- package/dist/sparkle-core/sparkle-export-lessons.entry.js +10081 -0
- package/dist/sparkle-core/sparkle-facilitator-dashboard.entry.js +93 -0
- package/dist/sparkle-core/sparkle-facilitator-header.entry.js +60 -0
- package/dist/sparkle-core/sparkle-facilitator-notes-form.entry.js +160 -0
- package/dist/sparkle-core/sparkle-facilitator-notes.entry.js +65 -0
- package/dist/sparkle-core/sparkle-facilitator-page.entry.js +198 -0
- package/dist/sparkle-core/sparkle-feed-post.entry.js +131 -0
- package/dist/sparkle-core/sparkle-feedback.entry.js +106 -0
- package/dist/sparkle-core/sparkle-file-upload.entry.js +57 -0
- package/dist/sparkle-core/sparkle-forgot-password.entry.js +80 -0
- package/dist/sparkle-core/sparkle-goal-form.entry.js +182 -0
- package/dist/sparkle-core/sparkle-goal-item.entry.js +15 -0
- package/dist/sparkle-core/sparkle-goal-progress.entry.js +15 -0
- package/dist/sparkle-core/sparkle-goals.entry.js +47 -0
- package/dist/sparkle-core/sparkle-gww-comment-list.entry.js +22 -0
- package/dist/sparkle-core/sparkle-gww-graph.entry.js +15 -0
- package/dist/sparkle-core/sparkle-gww-item.entry.js +80 -0
- package/dist/sparkle-core/sparkle-gww.entry.js +44 -0
- package/dist/sparkle-core/sparkle-header.entry.js +97 -0
- package/dist/sparkle-core/sparkle-health.entry.js +70 -0
- package/dist/sparkle-core/sparkle-input.entry.js +52 -0
- package/dist/sparkle-core/sparkle-intro.entry.js +22 -0
- package/dist/sparkle-core/sparkle-login.entry.js +116 -0
- package/dist/sparkle-core/sparkle-lower-content-nav.entry.js +18 -0
- package/dist/sparkle-core/sparkle-menu-collapsible.entry.js +42 -0
- package/dist/sparkle-core/sparkle-menu-toggle.entry.js +24 -0
- package/dist/sparkle-core/sparkle-menu.entry.js +26 -0
- package/dist/sparkle-core/sparkle-modal-image.entry.js +33 -0
- package/dist/sparkle-core/sparkle-mood.entry.js +76 -0
- package/dist/sparkle-core/sparkle-nav.entry.js +113 -0
- package/dist/sparkle-core/sparkle-notfound-page.entry.js +25 -0
- package/dist/sparkle-core/sparkle-online-students.entry.js +55 -0
- package/dist/sparkle-core/sparkle-overlay.entry.js +90 -0
- package/dist/sparkle-core/sparkle-page-footer.entry.js +24 -0
- package/dist/sparkle-core/sparkle-page.entry.js +245 -0
- package/dist/sparkle-core/sparkle-pagination.entry.js +67 -0
- package/dist/sparkle-core/sparkle-poll.entry.js +15 -0
- package/dist/sparkle-core/sparkle-quiz-container.entry.js +43 -0
- package/dist/sparkle-core/sparkle-quiz-feedback.entry.js +18 -0
- package/dist/sparkle-core/sparkle-quiz-input.entry.js +16 -0
- package/dist/sparkle-core/sparkle-quiz-old.entry.js +116 -0
- package/dist/sparkle-core/sparkle-quiz-opinion.entry.js +41 -0
- package/dist/sparkle-core/sparkle-quiz-poll.entry.js +16 -0
- package/dist/sparkle-core/sparkle-quiz-select.entry.js +29 -0
- package/dist/sparkle-core/sparkle-quiz.entry.js +98 -0
- package/dist/sparkle-core/sparkle-reset-password.entry.js +96 -0
- package/dist/sparkle-core/sparkle-root.entry.js +79 -0
- package/dist/sparkle-core/sparkle-select.entry.js +57 -0
- package/dist/sparkle-core/sparkle-sidebar.entry.js +39 -0
- package/dist/sparkle-core/sparkle-signup.entry.js +144 -0
- package/dist/sparkle-core/sparkle-tab.entry.js +22 -0
- package/dist/sparkle-core/sparkle-table-of-contents.entry.js +67 -0
- package/dist/sparkle-core/sparkle-tabs.entry.js +62 -0
- package/dist/sparkle-core/sparkle-unauthorized.entry.js +17 -0
- package/dist/sparkle-core/sparkle-user-enrollment.entry.js +85 -0
- package/dist/sparkle-core/sparkle-user-profile.entry.js +129 -0
- package/dist/sparkle-core/sparkle-validation-error.entry.js +17 -0
- package/dist/sparkle-core/sparkle-video-player.entry.js +18 -0
- package/dist/sparkle-core/sparkle-youtube.entry.js +35 -0
- package/dist/sparkle-core/status-tap-52feb1b1.js +40 -0
- package/dist/sparkle-core/stencil-async-content.entry.js +28 -0
- package/dist/sparkle-core/stencil-route-link.entry.js +74 -0
- package/dist/sparkle-core/stencil-route-switch.entry.js +100 -0
- package/dist/sparkle-core/stencil-route-title.entry.js +28 -0
- package/dist/sparkle-core/stencil-route.entry.js +93 -0
- package/dist/sparkle-core/stencil-router-prompt.entry.js +55 -0
- package/dist/sparkle-core/stencil-router-redirect.entry.js +28 -0
- package/dist/sparkle-core/stencil-router.entry.js +636 -0
- package/dist/sparkle-core/store.service-0f7d998b.js +16 -0
- package/dist/sparkle-core/student.service-f0375229.js +59 -0
- package/dist/sparkle-core/swipe-back-9a614189.js +73 -0
- package/dist/sparkle-core/swiper.bundle-4274e115.js +6418 -0
- package/dist/sparkle-core/user.store-3d052406.js +19 -0
- package/dist/sparkle-core/util-ba470e54.js +14683 -0
- package/dist/sparkle-core/utils-cae23bce.js +114 -0
- package/package.json +1 -1
- package/dist/cjs/PrivateRoute-f97245ce.js +0 -217
- package/dist/cjs/active-router-f9e18bd8.js +0 -75
- package/dist/cjs/animation-ee586546.js +0 -986
- package/dist/cjs/app-globals-33c9f31b.js +0 -9
- package/dist/cjs/appdata.service-c8d71e05.js +0 -73
- package/dist/cjs/assets.service-bfa75092.js +0 -50
- package/dist/cjs/assignment.service-690fb59c.js +0 -19
- package/dist/cjs/auth.store-1e630a7d.js +0 -3392
- package/dist/cjs/compass-svg.cjs.entry.js +0 -132
- package/dist/cjs/context-consumer.cjs.entry.js +0 -29
- package/dist/cjs/course-select.cjs.entry.js +0 -30
- package/dist/cjs/cubic-bezier-53d26d05.js +0 -93
- package/dist/cjs/dir-5af5259a.js +0 -20
- package/dist/cjs/environment-config.service-c8ff1f3d.js +0 -28
- package/dist/cjs/facilitator.service-ff0e1659.js +0 -95
- package/dist/cjs/feed.service-8eca4de6.js +0 -57
- package/dist/cjs/focus-visible-b0b07ba6.js +0 -76
- package/dist/cjs/framework-delegate-59a98abd.js +0 -111
- package/dist/cjs/gesture-controller-0eb5579e.js +0 -196
- package/dist/cjs/haptic-780f33c4.js +0 -116
- package/dist/cjs/hardware-back-button-92d97ff8.js +0 -76
- package/dist/cjs/header-mobile-collapse_61.cjs.entry.js +0 -15124
- package/dist/cjs/helpers-c2496722.js +0 -425
- package/dist/cjs/httpService-d2e7bf8f.js +0 -687
- package/dist/cjs/icons-fda820af.js +0 -26
- package/dist/cjs/index-12082cba.js +0 -465
- package/dist/cjs/index-15ea05f5.js +0 -314
- package/dist/cjs/index-51e8292e.js +0 -1928
- package/dist/cjs/index-787d4498.js +0 -232
- package/dist/cjs/index-8b5629a6.js +0 -186
- package/dist/cjs/index-975586fd.js +0 -48
- package/dist/cjs/index-9c7b27e4.js +0 -140
- package/dist/cjs/index-af080b50.js +0 -139
- package/dist/cjs/index-e56e09b8.js +0 -38
- package/dist/cjs/index.cjs.js +0 -26
- package/dist/cjs/index.es-38cbcdbe.js +0 -10666
- package/dist/cjs/input-shims-eff63b88.js +0 -418
- package/dist/cjs/ion-accordion-group.cjs.entry.js +0 -205
- package/dist/cjs/ion-accordion.cjs.entry.js +0 -336
- package/dist/cjs/ion-action-sheet_7.cjs.entry.js +0 -2935
- package/dist/cjs/ion-app.cjs.entry.js +0 -79
- package/dist/cjs/ion-back-button.cjs.entry.js +0 -94
- package/dist/cjs/ion-backdrop.cjs.entry.js +0 -67
- package/dist/cjs/ion-badge.cjs.entry.js +0 -29
- package/dist/cjs/ion-breadcrumb.cjs.entry.js +0 -95
- package/dist/cjs/ion-breadcrumbs.cjs.entry.js +0 -133
- package/dist/cjs/ion-buttons_3.cjs.entry.js +0 -153
- package/dist/cjs/ion-card-header.cjs.entry.js +0 -37
- package/dist/cjs/ion-card-subtitle.cjs.entry.js +0 -30
- package/dist/cjs/ion-card-title.cjs.entry.js +0 -30
- package/dist/cjs/ion-chip.cjs.entry.js +0 -40
- package/dist/cjs/ion-content_2.cjs.entry.js +0 -659
- package/dist/cjs/ion-datetime-button.cjs.entry.js +0 -312
- package/dist/cjs/ion-datetime.cjs.entry.js +0 -1623
- package/dist/cjs/ion-fab-button.cjs.entry.js +0 -108
- package/dist/cjs/ion-fab-list.cjs.entry.js +0 -45
- package/dist/cjs/ion-fab.cjs.entry.js +0 -76
- package/dist/cjs/ion-footer.cjs.entry.js +0 -120
- package/dist/cjs/ion-img.cjs.entry.js +0 -101
- package/dist/cjs/ion-infinite-scroll-content.cjs.entry.js +0 -37
- package/dist/cjs/ion-infinite-scroll.cjs.entry.js +0 -206
- package/dist/cjs/ion-item-divider.cjs.entry.js +0 -40
- package/dist/cjs/ion-item-group.cjs.entry.js +0 -31
- package/dist/cjs/ion-item-option.cjs.entry.js +0 -60
- package/dist/cjs/ion-item-options.cjs.entry.js +0 -47
- package/dist/cjs/ion-item-sliding.cjs.entry.js +0 -398
- package/dist/cjs/ion-loading.cjs.entry.js +0 -215
- package/dist/cjs/ion-menu-button.cjs.entry.js +0 -76
- package/dist/cjs/ion-menu-toggle.cjs.entry.js +0 -47
- package/dist/cjs/ion-menu.cjs.entry.js +0 -575
- package/dist/cjs/ion-modal.cjs.entry.js +0 -1711
- package/dist/cjs/ion-nav-link.cjs.entry.js +0 -47
- package/dist/cjs/ion-nav.cjs.entry.js +0 -872
- package/dist/cjs/ion-picker-column-internal_2.cjs.entry.js +0 -808
- package/dist/cjs/ion-picker-column.cjs.entry.js +0 -331
- package/dist/cjs/ion-picker.cjs.entry.js +0 -221
- package/dist/cjs/ion-progress-bar.cjs.entry.js +0 -74
- package/dist/cjs/ion-refresher-content.cjs.entry.js +0 -35
- package/dist/cjs/ion-refresher.cjs.entry.js +0 -802
- package/dist/cjs/ion-reorder-group.cjs.entry.js +0 -281
- package/dist/cjs/ion-reorder.cjs.entry.js +0 -38
- package/dist/cjs/ion-route-redirect.cjs.entry.js +0 -24
- package/dist/cjs/ion-route.cjs.entry.js +0 -49
- package/dist/cjs/ion-router-link.cjs.entry.js +0 -38
- package/dist/cjs/ion-router-outlet.cjs.entry.js +0 -200
- package/dist/cjs/ion-router.cjs.entry.js +0 -831
- package/dist/cjs/ion-searchbar.cjs.entry.js +0 -370
- package/dist/cjs/ion-segment-button.cjs.entry.js +0 -102
- package/dist/cjs/ion-segment.cjs.entry.js +0 -417
- package/dist/cjs/ion-skeleton-text.cjs.entry.js +0 -33
- package/dist/cjs/ion-slide.cjs.entry.js +0 -25
- package/dist/cjs/ion-slides.cjs.entry.js +0 -391
- package/dist/cjs/ion-split-pane.cjs.entry.js +0 -154
- package/dist/cjs/ion-tab-bar.cjs.entry.js +0 -75
- package/dist/cjs/ion-tab-button.cjs.entry.js +0 -103
- package/dist/cjs/ion-tab.cjs.entry.js +0 -59
- package/dist/cjs/ion-tabs.cjs.entry.js +0 -154
- package/dist/cjs/ion-thumbnail.cjs.entry.js +0 -20
- package/dist/cjs/ion-toast.cjs.entry.js +0 -272
- package/dist/cjs/ion-toggle.cjs.entry.js +0 -177
- package/dist/cjs/ion-virtual-scroll.cjs.entry.js +0 -555
- package/dist/cjs/ionic-global-2cde9d3a.js +0 -231
- package/dist/cjs/ios.transition-da235483.js +0 -482
- package/dist/cjs/keyboard-91096619.js +0 -140
- package/dist/cjs/loader.cjs.js +0 -24
- package/dist/cjs/localstorage.service-6346a41d.js +0 -40
- package/dist/cjs/md.transition-be429e07.js +0 -57
- package/dist/cjs/media.service-8a1b9bc5.js +0 -40
- package/dist/cjs/menu-toggle-util-7a01448c.js +0 -14
- package/dist/cjs/overlays-32df265a.js +0 -507
- package/dist/cjs/parse-d0071120.js +0 -1237
- package/dist/cjs/purify-fb9c107e.js +0 -1468
- package/dist/cjs/signalR.service-bd6b42f9.js +0 -2985
- package/dist/cjs/sparkle-animation-player.cjs.entry.js +0 -515
- package/dist/cjs/sparkle-assignment.cjs.entry.js +0 -110
- package/dist/cjs/sparkle-character-intro.cjs.entry.js +0 -26
- package/dist/cjs/sparkle-code.cjs.entry.js +0 -43
- package/dist/cjs/sparkle-compass-post.cjs.entry.js +0 -133
- package/dist/cjs/sparkle-compass.cjs.entry.js +0 -126
- package/dist/cjs/sparkle-core.cjs.js +0 -22
- package/dist/cjs/sparkle-discussion-questions_2.cjs.entry.js +0 -281
- package/dist/cjs/sparkle-discussion.cjs.entry.js +0 -42
- package/dist/cjs/sparkle-emoji.cjs.entry.js +0 -80
- package/dist/cjs/sparkle-facilitator-notes-form.cjs.entry.js +0 -121
- package/dist/cjs/sparkle-feed-post.cjs.entry.js +0 -116
- package/dist/cjs/sparkle-feedback.cjs.entry.js +0 -101
- package/dist/cjs/sparkle-file-upload.cjs.entry.js +0 -53
- package/dist/cjs/sparkle-goal-form.cjs.entry.js +0 -179
- package/dist/cjs/sparkle-gww-comment-list.cjs.entry.js +0 -26
- package/dist/cjs/sparkle-gww-graph.cjs.entry.js +0 -19
- package/dist/cjs/sparkle-input.cjs.entry.js +0 -56
- package/dist/cjs/sparkle-intro.cjs.entry.js +0 -26
- package/dist/cjs/sparkle-lower-content-nav.cjs.entry.js +0 -22
- package/dist/cjs/sparkle-menu-collapsible.cjs.entry.js +0 -46
- package/dist/cjs/sparkle-modal-image.cjs.entry.js +0 -34
- package/dist/cjs/sparkle-notfound-page.cjs.entry.js +0 -25
- package/dist/cjs/sparkle-overlay.cjs.entry.js +0 -92
- package/dist/cjs/sparkle-poll.cjs.entry.js +0 -19
- package/dist/cjs/sparkle-quiz-container.cjs.entry.js +0 -47
- package/dist/cjs/sparkle-quiz-feedback_5.cjs.entry.js +0 -117
- package/dist/cjs/sparkle-quiz-old.cjs.entry.js +0 -120
- package/dist/cjs/sparkle-quiz.cjs.entry.js +0 -103
- package/dist/cjs/sparkle-select.cjs.entry.js +0 -61
- package/dist/cjs/sparkle-sidebar.cjs.entry.js +0 -43
- package/dist/cjs/sparkle-tab.cjs.entry.js +0 -26
- package/dist/cjs/sparkle-table-of-contents.cjs.entry.js +0 -71
- package/dist/cjs/sparkle-tabs.cjs.entry.js +0 -66
- package/dist/cjs/sparkle-video-player.cjs.entry.js +0 -22
- package/dist/cjs/sparkle-youtube.cjs.entry.js +0 -39
- package/dist/cjs/spinner-configs-0ac05f2d.js +0 -147
- package/dist/cjs/status-tap-033befa2.js +0 -42
- package/dist/cjs/stencil-async-content.cjs.entry.js +0 -32
- package/dist/cjs/stencil-route-title.cjs.entry.js +0 -32
- package/dist/cjs/stencil-router-prompt.cjs.entry.js +0 -59
- package/dist/cjs/student.service-7e5385be.js +0 -78
- package/dist/cjs/swipe-back-4a826f9b.js +0 -76
- package/dist/cjs/swiper.bundle-8c897c07.js +0 -6420
- package/dist/cjs/theme-b0b295c1.js +0 -48
- package/dist/cjs/token.service-7a41953d.js +0 -97
- package/dist/cjs/util-47e320b2.js +0 -2462
- package/dist/collection/PrivateRoute.js +0 -27
- package/dist/collection/appconst.js +0 -13
- package/dist/collection/assets/img/forward.svg +0 -5
- package/dist/collection/assets/img/help/fitt-logo.svg +0 -1
- package/dist/collection/assets/img/home/big-white-wall.svg +0 -15
- package/dist/collection/assets/img/home/find-help.svg +0 -23
- package/dist/collection/assets/img/home/lessons.svg +0 -26
- package/dist/collection/assets/img/home/my-goals.svg +0 -19
- package/dist/collection/assets/img/home/my-health.svg +0 -17
- package/dist/collection/assets/img/home/my-mood.svg +0 -26
- package/dist/collection/assets/img/pause.svg +0 -5
- package/dist/collection/assets/img/play-symbol.svg +0 -8
- package/dist/collection/assets/img/play.svg +0 -4
- package/dist/collection/assets/img/rewind.svg +0 -5
- package/dist/collection/assets/lib/SignalRAspNetCoreHelper.js +0 -17
- package/dist/collection/assets/lib/sparkleUtility.js +0 -8
- package/dist/collection/assets/svg/profile.svg +0 -2
- package/dist/collection/collection-manifest.json +0 -219
- package/dist/collection/components/compass-svg/compass-svg.css +0 -15
- package/dist/collection/components/compass-svg/compass-svg.js +0 -156
- package/dist/collection/components/layout/facilitator/export-lessons/export-lessons.css +0 -7
- package/dist/collection/components/layout/facilitator/export-lessons/export-lessons.js +0 -110
- package/dist/collection/components/layout/facilitator/facilitator-dashboard/facilitator-dashboard.css +0 -3
- package/dist/collection/components/layout/facilitator/facilitator-dashboard/facilitator-dashboard.js +0 -214
- package/dist/collection/components/layout/facilitator/facilitator-header/facilitator-header-mobile-collapse/facilitator-header-mobile-collapse.js +0 -0
- package/dist/collection/components/layout/facilitator/facilitator-header/facilitator-header.css +0 -172
- package/dist/collection/components/layout/facilitator/facilitator-header/facilitator-header.js +0 -104
- package/dist/collection/components/layout/facilitator/facilitator-notes/facilitator-notes-form/facilitator-notes-form.css +0 -3
- package/dist/collection/components/layout/facilitator/facilitator-notes/facilitator-notes-form/facilitator-notes-form.js +0 -144
- package/dist/collection/components/layout/facilitator/facilitator-notes/facilitator-notes.css +0 -14
- package/dist/collection/components/layout/facilitator/facilitator-notes/facilitator-notes.js +0 -64
- package/dist/collection/components/layout/facilitator/facilitator-page.css +0 -196
- package/dist/collection/components/layout/facilitator/facilitator-page.js +0 -281
- package/dist/collection/components/layout/facilitator/online-students/online-students.css +0 -0
- package/dist/collection/components/layout/facilitator/online-students/online-students.js +0 -70
- package/dist/collection/components/layout/page/page.css +0 -183
- package/dist/collection/components/layout/page/page.js +0 -321
- package/dist/collection/components/layout/page/templates/default.js +0 -9
- package/dist/collection/components/layout/page/templates/error.js +0 -33
- package/dist/collection/components/layout/page/templates/index.js +0 -8
- package/dist/collection/components/layout/page/templates/pdf.js +0 -8
- package/dist/collection/components/layout/page/to-hypertext.js +0 -27
- package/dist/collection/components/mini-apps/sparkle-goals/sparkle-goal-form/sparkle-goal-form.css +0 -3
- package/dist/collection/components/mini-apps/sparkle-goals/sparkle-goal-form/sparkle-goal-form.js +0 -252
- package/dist/collection/components/mini-apps/sparkle-goals/sparkle-goal-item/sparkle-goal-item.css +0 -12
- package/dist/collection/components/mini-apps/sparkle-goals/sparkle-goal-item/sparkle-goal-item.js +0 -59
- package/dist/collection/components/mini-apps/sparkle-goals/sparkle-goal-progress/sparkle-goal-progress.css +0 -33
- package/dist/collection/components/mini-apps/sparkle-goals/sparkle-goal-progress/sparkle-goal-progress.js +0 -37
- package/dist/collection/components/mini-apps/sparkle-goals/sparkle-goals.css +0 -8
- package/dist/collection/components/mini-apps/sparkle-goals/sparkle-goals.js +0 -40
- package/dist/collection/components/mini-apps/sparkle-gww/sparkle-gww-comment-list/sparkle-gww-comment-list.css +0 -7
- package/dist/collection/components/mini-apps/sparkle-gww/sparkle-gww-comment-list/sparkle-gww-comment-list.js +0 -52
- package/dist/collection/components/mini-apps/sparkle-gww/sparkle-gww-graph/sparkle-gww-graph.css +0 -3
- package/dist/collection/components/mini-apps/sparkle-gww/sparkle-gww-graph/sparkle-gww-graph.js +0 -14
- package/dist/collection/components/mini-apps/sparkle-gww/sparkle-gww-item/sparkle-gww-item.css +0 -30
- package/dist/collection/components/mini-apps/sparkle-gww/sparkle-gww-item/sparkle-gww-item.js +0 -187
- package/dist/collection/components/mini-apps/sparkle-gww/sparkle-gww.css +0 -3
- package/dist/collection/components/mini-apps/sparkle-gww/sparkle-gww.js +0 -43
- package/dist/collection/components/mini-apps/sparkle-health/sparkle-health.css +0 -10
- package/dist/collection/components/mini-apps/sparkle-health/sparkle-health.js +0 -111
- package/dist/collection/components/mini-apps/sparkle-mood/sparkle-mood.css +0 -11
- package/dist/collection/components/mini-apps/sparkle-mood/sparkle-mood.js +0 -127
- package/dist/collection/components/modal-image/modal-image.css +0 -61
- package/dist/collection/components/modal-image/modal-image.js +0 -159
- package/dist/collection/components/sparkle-animation-player/assets/play-button-disabled-overlay.png +0 -0
- package/dist/collection/components/sparkle-animation-player/assets/play-button-overlay.png +0 -0
- package/dist/collection/components/sparkle-animation-player/caption-parser.js +0 -94
- package/dist/collection/components/sparkle-animation-player/sparkle-animation-player.css +0 -157
- package/dist/collection/components/sparkle-animation-player/sparkle-animation-player.js +0 -598
- package/dist/collection/components/sparkle-assignment/sparkle-assignment.css +0 -30
- package/dist/collection/components/sparkle-assignment/sparkle-assignment.js +0 -159
- package/dist/collection/components/sparkle-character-intro/assets/characters/character-img.jpg +0 -0
- package/dist/collection/components/sparkle-character-intro/assets/characters/jen.png +0 -0
- package/dist/collection/components/sparkle-character-intro/assets/characters/kimberly.png +0 -0
- package/dist/collection/components/sparkle-character-intro/assets/characters/valeria.png +0 -0
- package/dist/collection/components/sparkle-character-intro/assets/characters/yuna.png +0 -0
- package/dist/collection/components/sparkle-character-intro/assets/characters/zynab.png +0 -0
- package/dist/collection/components/sparkle-character-intro/sparkle-character-intro.css +0 -74
- package/dist/collection/components/sparkle-character-intro/sparkle-character-intro.js +0 -68
- package/dist/collection/components/sparkle-compass/sparkle-compass-post/sparkle-compass-post.css +0 -35
- package/dist/collection/components/sparkle-compass/sparkle-compass-post/sparkle-compass-post.js +0 -171
- package/dist/collection/components/sparkle-compass/sparkle-compass.css +0 -25
- package/dist/collection/components/sparkle-compass/sparkle-compass.js +0 -283
- package/dist/collection/components/sparkle-course-root/sparkle-course-root.css +0 -3
- package/dist/collection/components/sparkle-course-root/sparkle-course-root.js +0 -196
- package/dist/collection/components/sparkle-discussion/sparkle-discussion-questions/sparkle-discussion-questions.css +0 -157
- package/dist/collection/components/sparkle-discussion/sparkle-discussion-questions/sparkle-discussion-questions.js +0 -232
- package/dist/collection/components/sparkle-discussion/sparkle-discussion-results/sparkle-discussion-results.css +0 -158
- package/dist/collection/components/sparkle-discussion/sparkle-discussion-results/sparkle-discussion-results.js +0 -274
- package/dist/collection/components/sparkle-discussion/sparkle-discussion.css +0 -5
- package/dist/collection/components/sparkle-discussion/sparkle-discussion.js +0 -112
- package/dist/collection/components/sparkle-emoji/sparkle-emoji.css +0 -16
- package/dist/collection/components/sparkle-emoji/sparkle-emoji.js +0 -116
- package/dist/collection/components/sparkle-feed-post/sparkle-feed-post.css +0 -35
- package/dist/collection/components/sparkle-feed-post/sparkle-feed-post.js +0 -193
- package/dist/collection/components/sparkle-feedback/sparkle-feedback.css +0 -3
- package/dist/collection/components/sparkle-feedback/sparkle-feedback.js +0 -118
- package/dist/collection/components/sparkle-file-upload/sparkle-file-upload.css +0 -0
- package/dist/collection/components/sparkle-file-upload/sparkle-file-upload.js +0 -105
- package/dist/collection/components/sparkle-forgot-password/sparkle-forgot-password.css +0 -4
- package/dist/collection/components/sparkle-forgot-password/sparkle-forgot-password.js +0 -107
- package/dist/collection/components/sparkle-input/sparkle-input.css +0 -0
- package/dist/collection/components/sparkle-input/sparkle-input.js +0 -212
- package/dist/collection/components/sparkle-intro/sparkle-intro.css +0 -15
- package/dist/collection/components/sparkle-intro/sparkle-intro.js +0 -35
- package/dist/collection/components/sparkle-login/sparkle-login.css +0 -4
- package/dist/collection/components/sparkle-login/sparkle-login.js +0 -173
- package/dist/collection/components/sparkle-poll/sparkle-poll.css +0 -3
- package/dist/collection/components/sparkle-poll/sparkle-poll.js +0 -15
- package/dist/collection/components/sparkle-quiz/sparkle-quiz-feedback/sparkle-quiz-feedback.css +0 -3
- package/dist/collection/components/sparkle-quiz/sparkle-quiz-feedback/sparkle-quiz-feedback.js +0 -69
- package/dist/collection/components/sparkle-quiz/sparkle-quiz-input/sparkle-quiz-input.css +0 -3
- package/dist/collection/components/sparkle-quiz/sparkle-quiz-input/sparkle-quiz-input.js +0 -59
- package/dist/collection/components/sparkle-quiz/sparkle-quiz-old/sparkle-quiz-old.css +0 -48
- package/dist/collection/components/sparkle-quiz/sparkle-quiz-old/sparkle-quiz-old.js +0 -327
- package/dist/collection/components/sparkle-quiz/sparkle-quiz-opinion/sparkle-quiz-opinion.css +0 -18
- package/dist/collection/components/sparkle-quiz/sparkle-quiz-opinion/sparkle-quiz-opinion.js +0 -106
- package/dist/collection/components/sparkle-quiz/sparkle-quiz-poll/sparkle-quiz-poll.css +0 -3
- package/dist/collection/components/sparkle-quiz/sparkle-quiz-poll/sparkle-quiz-poll.js +0 -59
- package/dist/collection/components/sparkle-quiz/sparkle-quiz-select/sparkle-quiz-select.css +0 -3
- package/dist/collection/components/sparkle-quiz/sparkle-quiz-select/sparkle-quiz-select.js +0 -100
- package/dist/collection/components/sparkle-quiz/sparkle-quiz.css +0 -48
- package/dist/collection/components/sparkle-quiz/sparkle-quiz.js +0 -221
- package/dist/collection/components/sparkle-quiz-container/sparkle-quiz-container.css +0 -3
- package/dist/collection/components/sparkle-quiz-container/sparkle-quiz-container.js +0 -98
- package/dist/collection/components/sparkle-reset-password/sparkle-reset-password.css +0 -3
- package/dist/collection/components/sparkle-reset-password/sparkle-reset-password.js +0 -126
- package/dist/collection/components/sparkle-root/sparkle-root.css +0 -61
- package/dist/collection/components/sparkle-root/sparkle-root.js +0 -86
- package/dist/collection/components/sparkle-signup/sparkle-signup.css +0 -6
- package/dist/collection/components/sparkle-signup/sparkle-signup.js +0 -197
- package/dist/collection/components/sparkle-unauthorized/sparkle-unauthorized.css +0 -13
- package/dist/collection/components/sparkle-unauthorized/sparkle-unauthorized.js +0 -18
- package/dist/collection/components/sparkle-user-enrollment/sparkle-user-enrollment.css +0 -3
- package/dist/collection/components/sparkle-user-enrollment/sparkle-user-enrollment.js +0 -93
- package/dist/collection/components/sparkle-user-profile/sparkle-user-profile.css +0 -54
- package/dist/collection/components/sparkle-user-profile/sparkle-user-profile.js +0 -151
- package/dist/collection/components/sparkle-validation-error/sparkle-validation-error.css +0 -11
- package/dist/collection/components/sparkle-validation-error/sparkle-validation-error.js +0 -44
- package/dist/collection/components/sparkle-video-player/sparkle-video-player.css +0 -0
- package/dist/collection/components/sparkle-video-player/sparkle-video-player.js +0 -92
- package/dist/collection/components/sparkle-youtube/sparkle-youtube.css +0 -24
- package/dist/collection/components/sparkle-youtube/sparkle-youtube.js +0 -99
- package/dist/collection/global/app.js +0 -4
- package/dist/collection/helpers/utils.js +0 -3
- package/dist/collection/icons.js +0 -36
- package/dist/collection/index.js +0 -3
- package/dist/collection/l10n.js +0 -18
- package/dist/collection/models/api.model.js +0 -7
- package/dist/collection/models/assets.model.js +0 -1
- package/dist/collection/models/auth/auth.user.js +0 -1
- package/dist/collection/models/class.model.js +0 -5
- package/dist/collection/models/course.model.js +0 -10
- package/dist/collection/models/definitions.js +0 -1
- package/dist/collection/models/facilitator-dashboard.model.js +0 -5
- package/dist/collection/models/goal.model.js +0 -1
- package/dist/collection/models/index.js +0 -1
- package/dist/collection/models/markdown.model.js +0 -1
- package/dist/collection/models/page.model.js +0 -1
- package/dist/collection/models/quiz.model.js +0 -3
- package/dist/collection/models/user.model.js +0 -1
- package/dist/collection/pages/course/welcome-to-mind-body/introduction/animation/m4l1p1_part1.js +0 -2727
- package/dist/collection/pages/course/welcome-to-mind-body/introduction/animation/m4l1p1_part2.js +0 -2042
- package/dist/collection/services/account.service.js +0 -61
- package/dist/collection/services/appdata.service.js +0 -60
- package/dist/collection/services/assignment.service.js +0 -14
- package/dist/collection/services/auth/auth.service.js +0 -64
- package/dist/collection/services/core/assets.service.js +0 -45
- package/dist/collection/services/core/localstorage.service.js +0 -34
- package/dist/collection/services/environment/environment-config.js +0 -24
- package/dist/collection/services/environment/environment-config.service.js +0 -24
- package/dist/collection/services/facilitator.service.js +0 -76
- package/dist/collection/services/feed.service.js +0 -43
- package/dist/collection/services/httpService.js +0 -103
- package/dist/collection/services/index.js +0 -4
- package/dist/collection/services/media.service.js +0 -29
- package/dist/collection/services/signalR.service.js +0 -83
- package/dist/collection/services/store.service.js +0 -13
- package/dist/collection/services/student.service.js +0 -56
- package/dist/collection/services/token.service.js +0 -79
- package/dist/collection/stores/auth.store.js +0 -12
- package/dist/collection/stores/class.store.js +0 -5
- package/dist/collection/stores/error.store.js +0 -5
- package/dist/collection/stores/facilitator.store.js +0 -15
- package/dist/collection/stores/feed.store.js +0 -8
- package/dist/collection/stores/goal.store.js +0 -7
- package/dist/collection/stores/index.js +0 -1
- package/dist/collection/stores/media.store.js +0 -5
- package/dist/collection/stores/mood.store.js +0 -5
- package/dist/collection/stores/nav.store.js +0 -11
- package/dist/collection/stores/signalR.store.js +0 -6
- package/dist/collection/stores/theme.store.js +0 -9
- package/dist/collection/stores/toc.store.js +0 -5
- package/dist/collection/stores/user.store.js +0 -16
- package/dist/collection/util.js +0 -55
- package/dist/collection/utils.js +0 -92
- package/dist/esm/PrivateRoute-90ac95b8.js +0 -212
- package/dist/esm/active-router-fc9e4e06.js +0 -73
- package/dist/esm/animation-12377cb3.js +0 -984
- package/dist/esm/app-globals-3f0347b0.js +0 -7
- package/dist/esm/appdata.service-2e84e167.js +0 -70
- package/dist/esm/assets.service-def1d63c.js +0 -48
- package/dist/esm/assignment.service-8d31f141.js +0 -17
- package/dist/esm/auth.store-dba2c2da.js +0 -3381
- package/dist/esm/compass-svg.entry.js +0 -128
- package/dist/esm/context-consumer.entry.js +0 -25
- package/dist/esm/course-select.entry.js +0 -26
- package/dist/esm/dir-03012648.js +0 -18
- package/dist/esm/environment-config.service-b191f276.js +0 -26
- package/dist/esm/facilitator.service-18c47bdf.js +0 -92
- package/dist/esm/feed.service-b4f3cae4.js +0 -54
- package/dist/esm/framework-delegate-3e634a5c.js +0 -107
- package/dist/esm/gesture-controller-7be18351.js +0 -194
- package/dist/esm/haptic-522f76f2.js +0 -110
- package/dist/esm/header-mobile-collapse_61.entry.js +0 -15060
- package/dist/esm/helpers-bf0e23d6.js +0 -403
- package/dist/esm/httpService-7986aeed.js +0 -685
- package/dist/esm/icons-1c794c74.js +0 -18
- package/dist/esm/index-21661af2.js +0 -463
- package/dist/esm/index-2b84cad2.js +0 -223
- package/dist/esm/index-4044fde9.js +0 -25
- package/dist/esm/index-45fec1e7.js +0 -184
- package/dist/esm/index-5e8971ae.js +0 -128
- package/dist/esm/index-c04b9ed5.js +0 -1888
- package/dist/esm/index-cded2d87.js +0 -312
- package/dist/esm/index-dad75b83.js +0 -34
- package/dist/esm/index.es-e0c0f891.js +0 -10580
- package/dist/esm/index.js +0 -12
- package/dist/esm/input-shims-671d8d9f.js +0 -416
- package/dist/esm/ion-accordion-group.entry.js +0 -201
- package/dist/esm/ion-accordion.entry.js +0 -332
- package/dist/esm/ion-action-sheet_7.entry.js +0 -2925
- package/dist/esm/ion-app.entry.js +0 -75
- package/dist/esm/ion-back-button.entry.js +0 -90
- package/dist/esm/ion-backdrop.entry.js +0 -63
- package/dist/esm/ion-badge.entry.js +0 -25
- package/dist/esm/ion-breadcrumb.entry.js +0 -91
- package/dist/esm/ion-breadcrumbs.entry.js +0 -129
- package/dist/esm/ion-buttons_3.entry.js +0 -147
- package/dist/esm/ion-card-header.entry.js +0 -33
- package/dist/esm/ion-card-subtitle.entry.js +0 -26
- package/dist/esm/ion-card-title.entry.js +0 -26
- package/dist/esm/ion-chip.entry.js +0 -36
- package/dist/esm/ion-content_2.entry.js +0 -654
- package/dist/esm/ion-datetime-button.entry.js +0 -308
- package/dist/esm/ion-datetime.entry.js +0 -1619
- package/dist/esm/ion-fab-button.entry.js +0 -104
- package/dist/esm/ion-fab-list.entry.js +0 -41
- package/dist/esm/ion-fab.entry.js +0 -72
- package/dist/esm/ion-footer.entry.js +0 -116
- package/dist/esm/ion-img.entry.js +0 -97
- package/dist/esm/ion-infinite-scroll-content.entry.js +0 -33
- package/dist/esm/ion-infinite-scroll.entry.js +0 -202
- package/dist/esm/ion-item-divider.entry.js +0 -36
- package/dist/esm/ion-item-group.entry.js +0 -27
- package/dist/esm/ion-item-option.entry.js +0 -56
- package/dist/esm/ion-item-options.entry.js +0 -43
- package/dist/esm/ion-item-sliding.entry.js +0 -394
- package/dist/esm/ion-loading.entry.js +0 -211
- package/dist/esm/ion-menu-button.entry.js +0 -72
- package/dist/esm/ion-menu-toggle.entry.js +0 -43
- package/dist/esm/ion-menu.entry.js +0 -571
- package/dist/esm/ion-modal.entry.js +0 -1707
- package/dist/esm/ion-nav-link.entry.js +0 -43
- package/dist/esm/ion-nav.entry.js +0 -868
- package/dist/esm/ion-picker-column-internal_2.entry.js +0 -803
- package/dist/esm/ion-picker-column.entry.js +0 -327
- package/dist/esm/ion-picker.entry.js +0 -217
- package/dist/esm/ion-progress-bar.entry.js +0 -70
- package/dist/esm/ion-refresher-content.entry.js +0 -31
- package/dist/esm/ion-refresher.entry.js +0 -798
- package/dist/esm/ion-reorder-group.entry.js +0 -277
- package/dist/esm/ion-reorder.entry.js +0 -34
- package/dist/esm/ion-route-redirect.entry.js +0 -20
- package/dist/esm/ion-route.entry.js +0 -45
- package/dist/esm/ion-router-link.entry.js +0 -34
- package/dist/esm/ion-router-outlet.entry.js +0 -196
- package/dist/esm/ion-router.entry.js +0 -827
- package/dist/esm/ion-searchbar.entry.js +0 -366
- package/dist/esm/ion-segment-button.entry.js +0 -98
- package/dist/esm/ion-segment.entry.js +0 -413
- package/dist/esm/ion-skeleton-text.entry.js +0 -29
- package/dist/esm/ion-slide.entry.js +0 -21
- package/dist/esm/ion-slides.entry.js +0 -387
- package/dist/esm/ion-split-pane.entry.js +0 -150
- package/dist/esm/ion-tab-bar.entry.js +0 -71
- package/dist/esm/ion-tab-button.entry.js +0 -99
- package/dist/esm/ion-tab.entry.js +0 -55
- package/dist/esm/ion-tabs.entry.js +0 -150
- package/dist/esm/ion-thumbnail.entry.js +0 -16
- package/dist/esm/ion-toast.entry.js +0 -268
- package/dist/esm/ion-toggle.entry.js +0 -173
- package/dist/esm/ion-virtual-scroll.entry.js +0 -551
- package/dist/esm/ionic-global-4903e23e.js +0 -226
- package/dist/esm/ios.transition-131d64fe.js +0 -479
- package/dist/esm/loader.js +0 -20
- package/dist/esm/md.transition-f6126011.js +0 -55
- package/dist/esm/media.service-6e90bc41.js +0 -37
- package/dist/esm/menu-toggle-util-bace8ae6.js +0 -12
- package/dist/esm/overlays-4233a39d.js +0 -491
- package/dist/esm/parse-1ae3a9bb.js +0 -1196
- package/dist/esm/polyfills/core-js.js +0 -11
- package/dist/esm/polyfills/css-shim.js +0 -1
- package/dist/esm/polyfills/dom.js +0 -79
- package/dist/esm/polyfills/es5-html-element.js +0 -1
- package/dist/esm/polyfills/index.js +0 -34
- package/dist/esm/polyfills/system.js +0 -6
- package/dist/esm/purify-85bfcc69.js +0 -1466
- package/dist/esm/signalR.service-c33fba50.js +0 -2982
- package/dist/esm/sparkle-animation-player.entry.js +0 -511
- package/dist/esm/sparkle-assignment.entry.js +0 -106
- package/dist/esm/sparkle-character-intro.entry.js +0 -22
- package/dist/esm/sparkle-code.entry.js +0 -39
- package/dist/esm/sparkle-compass-post.entry.js +0 -129
- package/dist/esm/sparkle-compass.entry.js +0 -122
- package/dist/esm/sparkle-core.js +0 -20
- package/dist/esm/sparkle-discussion-questions_2.entry.js +0 -276
- package/dist/esm/sparkle-discussion.entry.js +0 -38
- package/dist/esm/sparkle-emoji.entry.js +0 -76
- package/dist/esm/sparkle-facilitator-notes-form.entry.js +0 -117
- package/dist/esm/sparkle-feed-post.entry.js +0 -112
- package/dist/esm/sparkle-feedback.entry.js +0 -97
- package/dist/esm/sparkle-file-upload.entry.js +0 -49
- package/dist/esm/sparkle-goal-form.entry.js +0 -175
- package/dist/esm/sparkle-gww-comment-list.entry.js +0 -22
- package/dist/esm/sparkle-gww-graph.entry.js +0 -15
- package/dist/esm/sparkle-input.entry.js +0 -52
- package/dist/esm/sparkle-intro.entry.js +0 -22
- package/dist/esm/sparkle-lower-content-nav.entry.js +0 -18
- package/dist/esm/sparkle-menu-collapsible.entry.js +0 -42
- package/dist/esm/sparkle-modal-image.entry.js +0 -30
- package/dist/esm/sparkle-notfound-page.entry.js +0 -21
- package/dist/esm/sparkle-overlay.entry.js +0 -88
- package/dist/esm/sparkle-poll.entry.js +0 -15
- package/dist/esm/sparkle-quiz-container.entry.js +0 -43
- package/dist/esm/sparkle-quiz-feedback_5.entry.js +0 -109
- package/dist/esm/sparkle-quiz-old.entry.js +0 -116
- package/dist/esm/sparkle-quiz.entry.js +0 -99
- package/dist/esm/sparkle-select.entry.js +0 -57
- package/dist/esm/sparkle-sidebar.entry.js +0 -39
- package/dist/esm/sparkle-tab.entry.js +0 -22
- package/dist/esm/sparkle-table-of-contents.entry.js +0 -67
- package/dist/esm/sparkle-tabs.entry.js +0 -62
- package/dist/esm/sparkle-video-player.entry.js +0 -18
- package/dist/esm/sparkle-youtube.entry.js +0 -35
- package/dist/esm/status-tap-dde52787.js +0 -40
- package/dist/esm/stencil-async-content.entry.js +0 -28
- package/dist/esm/stencil-route-title.entry.js +0 -28
- package/dist/esm/stencil-router-prompt.entry.js +0 -55
- package/dist/esm/student.service-08af124f.js +0 -75
- package/dist/esm/swipe-back-7847a0c1.js +0 -74
- package/dist/esm/swiper.bundle-b6a959de.js +0 -6418
- package/dist/esm/token.service-71a5d33f.js +0 -94
- package/dist/esm/util-57cc8006.js +0 -2451
- package/dist/index.cjs.js +0 -1
- package/dist/index.js +0 -1
- package/dist/loader/cdn.js +0 -3
- package/dist/loader/index.cjs.js +0 -3
- package/dist/loader/index.d.ts +0 -12
- package/dist/loader/index.es2017.js +0 -3
- package/dist/loader/index.js +0 -4
- package/dist/loader/package.json +0 -10
- package/dist/node_modules/@ionic/core/dist/collection/components/accordion/accordion.ios.css +0 -75
- package/dist/node_modules/@ionic/core/dist/collection/components/accordion/accordion.md.css +0 -72
- package/dist/node_modules/@ionic/core/dist/collection/components/accordion-group/accordion-group.ios.css +0 -25
- package/dist/node_modules/@ionic/core/dist/collection/components/accordion-group/accordion-group.md.css +0 -59
- package/dist/node_modules/@ionic/core/dist/collection/components/action-sheet/action-sheet.ios.css +0 -357
- package/dist/node_modules/@ionic/core/dist/collection/components/action-sheet/action-sheet.md.css +0 -290
- package/dist/node_modules/@ionic/core/dist/collection/components/alert/alert.ios.css +0 -494
- package/dist/node_modules/@ionic/core/dist/collection/components/alert/alert.md.css +0 -502
- package/dist/node_modules/@ionic/core/dist/collection/components/app/app.css +0 -17
- package/dist/node_modules/@ionic/core/dist/collection/components/avatar/avatar.ios.css +0 -22
- package/dist/node_modules/@ionic/core/dist/collection/components/avatar/avatar.md.css +0 -22
- package/dist/node_modules/@ionic/core/dist/collection/components/back-button/back-button.ios.css +0 -281
- package/dist/node_modules/@ionic/core/dist/collection/components/back-button/back-button.md.css +0 -309
- package/dist/node_modules/@ionic/core/dist/collection/components/backdrop/backdrop.ios.css +0 -26
- package/dist/node_modules/@ionic/core/dist/collection/components/backdrop/backdrop.md.css +0 -26
- package/dist/node_modules/@ionic/core/dist/collection/components/badge/badge.ios.css +0 -58
- package/dist/node_modules/@ionic/core/dist/collection/components/badge/badge.md.css +0 -62
- package/dist/node_modules/@ionic/core/dist/collection/components/breadcrumb/breadcrumb.ios.css +0 -234
- package/dist/node_modules/@ionic/core/dist/collection/components/breadcrumb/breadcrumb.md.css +0 -237
- package/dist/node_modules/@ionic/core/dist/collection/components/breadcrumbs/breadcrumbs.ios.css +0 -38
- package/dist/node_modules/@ionic/core/dist/collection/components/breadcrumbs/breadcrumbs.md.css +0 -37
- package/dist/node_modules/@ionic/core/dist/collection/components/button/button.ios.css +0 -439
- package/dist/node_modules/@ionic/core/dist/collection/components/button/button.md.css +0 -428
- package/dist/node_modules/@ionic/core/dist/collection/components/buttons/buttons.ios.css +0 -128
- package/dist/node_modules/@ionic/core/dist/collection/components/buttons/buttons.md.css +0 -151
- package/dist/node_modules/@ionic/core/dist/collection/components/card/card.ios.css +0 -101
- package/dist/node_modules/@ionic/core/dist/collection/components/card/card.md.css +0 -95
- package/dist/node_modules/@ionic/core/dist/collection/components/card-content/card-content.ios.css +0 -61
- package/dist/node_modules/@ionic/core/dist/collection/components/card-content/card-content.md.css +0 -63
- package/dist/node_modules/@ionic/core/dist/collection/components/card-header/card-header.ios.css +0 -37
- package/dist/node_modules/@ionic/core/dist/collection/components/card-header/card-header.md.css +0 -35
- package/dist/node_modules/@ionic/core/dist/collection/components/card-subtitle/card-subtitle.ios.css +0 -28
- package/dist/node_modules/@ionic/core/dist/collection/components/card-subtitle/card-subtitle.md.css +0 -26
- package/dist/node_modules/@ionic/core/dist/collection/components/card-title/card-title.ios.css +0 -27
- package/dist/node_modules/@ionic/core/dist/collection/components/card-title/card-title.md.css +0 -27
- package/dist/node_modules/@ionic/core/dist/collection/components/checkbox/checkbox.ios.css +0 -169
- package/dist/node_modules/@ionic/core/dist/collection/components/checkbox/checkbox.md.css +0 -172
- package/dist/node_modules/@ionic/core/dist/collection/components/chip/chip.ios.css +0 -200
- package/dist/node_modules/@ionic/core/dist/collection/components/chip/chip.md.css +0 -200
- package/dist/node_modules/@ionic/core/dist/collection/components/col/col.css +0 -108
- package/dist/node_modules/@ionic/core/dist/collection/components/content/content.css +0 -237
- package/dist/node_modules/@ionic/core/dist/collection/components/datetime/datetime.ios.css +0 -648
- package/dist/node_modules/@ionic/core/dist/collection/components/datetime/datetime.md.css +0 -637
- package/dist/node_modules/@ionic/core/dist/collection/components/datetime-button/datetime-button.css +0 -60
- package/dist/node_modules/@ionic/core/dist/collection/components/fab/fab.css +0 -61
- package/dist/node_modules/@ionic/core/dist/collection/components/fab-button/fab-button.ios.css +0 -338
- package/dist/node_modules/@ionic/core/dist/collection/components/fab-button/fab-button.md.css +0 -307
- package/dist/node_modules/@ionic/core/dist/collection/components/fab-list/fab-list.css +0 -116
- package/dist/node_modules/@ionic/core/dist/collection/components/footer/footer.ios.css +0 -37
- package/dist/node_modules/@ionic/core/dist/collection/components/footer/footer.md.css +0 -37
- package/dist/node_modules/@ionic/core/dist/collection/components/grid/grid.css +0 -151
- package/dist/node_modules/@ionic/core/dist/collection/components/header/header.ios.css +0 -108
- package/dist/node_modules/@ionic/core/dist/collection/components/header/header.md.css +0 -40
- package/dist/node_modules/@ionic/core/dist/collection/components/img/img.css +0 -12
- package/dist/node_modules/@ionic/core/dist/collection/components/infinite-scroll/infinite-scroll.css +0 -8
- package/dist/node_modules/@ionic/core/dist/collection/components/infinite-scroll-content/infinite-scroll-content.ios.css +0 -54
- package/dist/node_modules/@ionic/core/dist/collection/components/infinite-scroll-content/infinite-scroll-content.md.css +0 -54
- package/dist/node_modules/@ionic/core/dist/collection/components/input/input.ios.css +0 -185
- package/dist/node_modules/@ionic/core/dist/collection/components/input/input.md.css +0 -185
- package/dist/node_modules/@ionic/core/dist/collection/components/item/item.ios.css +0 -669
- package/dist/node_modules/@ionic/core/dist/collection/components/item/item.md.css +0 -928
- package/dist/node_modules/@ionic/core/dist/collection/components/item-divider/item-divider.ios.css +0 -204
- package/dist/node_modules/@ionic/core/dist/collection/components/item-divider/item-divider.md.css +0 -297
- package/dist/node_modules/@ionic/core/dist/collection/components/item-group/item-group.ios.css +0 -3
- package/dist/node_modules/@ionic/core/dist/collection/components/item-group/item-group.md.css +0 -3
- package/dist/node_modules/@ionic/core/dist/collection/components/item-option/item-option.ios.css +0 -186
- package/dist/node_modules/@ionic/core/dist/collection/components/item-option/item-option.md.css +0 -180
- package/dist/node_modules/@ionic/core/dist/collection/components/item-options/item-options.ios.css +0 -88
- package/dist/node_modules/@ionic/core/dist/collection/components/item-options/item-options.md.css +0 -85
- package/dist/node_modules/@ionic/core/dist/collection/components/item-sliding/item-sliding.css +0 -42
- package/dist/node_modules/@ionic/core/dist/collection/components/label/label.ios.css +0 -156
- package/dist/node_modules/@ionic/core/dist/collection/components/label/label.md.css +0 -250
- package/dist/node_modules/@ionic/core/dist/collection/components/list/list.ios.css +0 -91
- package/dist/node_modules/@ionic/core/dist/collection/components/list/list.md.css +0 -114
- package/dist/node_modules/@ionic/core/dist/collection/components/list-header/list-header.ios.css +0 -118
- package/dist/node_modules/@ionic/core/dist/collection/components/list-header/list-header.md.css +0 -94
- package/dist/node_modules/@ionic/core/dist/collection/components/loading/loading.ios.css +0 -109
- package/dist/node_modules/@ionic/core/dist/collection/components/loading/loading.md.css +0 -100
- package/dist/node_modules/@ionic/core/dist/collection/components/menu/menu.ios.css +0 -127
- package/dist/node_modules/@ionic/core/dist/collection/components/menu/menu.md.css +0 -123
- package/dist/node_modules/@ionic/core/dist/collection/components/menu-button/menu-button.ios.css +0 -175
- package/dist/node_modules/@ionic/core/dist/collection/components/menu-button/menu-button.md.css +0 -178
- package/dist/node_modules/@ionic/core/dist/collection/components/menu-toggle/menu-toggle.css +0 -3
- package/dist/node_modules/@ionic/core/dist/collection/components/modal/modal.ios.css +0 -250
- package/dist/node_modules/@ionic/core/dist/collection/components/modal/modal.md.css +0 -177
- package/dist/node_modules/@ionic/core/dist/collection/components/nav/nav.css +0 -10
- package/dist/node_modules/@ionic/core/dist/collection/components/note/note.ios.css +0 -16
- package/dist/node_modules/@ionic/core/dist/collection/components/note/note.md.css +0 -17
- package/dist/node_modules/@ionic/core/dist/collection/components/picker/picker.ios.css +0 -217
- package/dist/node_modules/@ionic/core/dist/collection/components/picker/picker.md.css +0 -204
- package/dist/node_modules/@ionic/core/dist/collection/components/picker-column/picker-column.ios.css +0 -122
- package/dist/node_modules/@ionic/core/dist/collection/components/picker-column/picker-column.md.css +0 -123
- package/dist/node_modules/@ionic/core/dist/collection/components/picker-column-internal/picker-column-internal.ios.css +0 -82
- package/dist/node_modules/@ionic/core/dist/collection/components/picker-column-internal/picker-column-internal.md.css +0 -85
- package/dist/node_modules/@ionic/core/dist/collection/components/picker-internal/picker-internal.ios.css +0 -126
- package/dist/node_modules/@ionic/core/dist/collection/components/picker-internal/picker-internal.md.css +0 -122
- package/dist/node_modules/@ionic/core/dist/collection/components/popover/popover.ios.css +0 -201
- package/dist/node_modules/@ionic/core/dist/collection/components/popover/popover.md.css +0 -132
- package/dist/node_modules/@ionic/core/dist/collection/components/progress-bar/progress-bar.ios.css +0 -206
- package/dist/node_modules/@ionic/core/dist/collection/components/progress-bar/progress-bar.md.css +0 -206
- package/dist/node_modules/@ionic/core/dist/collection/components/radio/radio.ios.css +0 -177
- package/dist/node_modules/@ionic/core/dist/collection/components/radio/radio.md.css +0 -178
- package/dist/node_modules/@ionic/core/dist/collection/components/range/range.ios.css +0 -275
- package/dist/node_modules/@ionic/core/dist/collection/components/range/range.md.css +0 -320
- package/dist/node_modules/@ionic/core/dist/collection/components/refresher/refresher.ios.css +0 -189
- package/dist/node_modules/@ionic/core/dist/collection/components/refresher/refresher.md.css +0 -210
- package/dist/node_modules/@ionic/core/dist/collection/components/reorder/reorder.ios.css +0 -15
- package/dist/node_modules/@ionic/core/dist/collection/components/reorder/reorder.md.css +0 -15
- package/dist/node_modules/@ionic/core/dist/collection/components/reorder-group/reorder-group.css +0 -33
- package/dist/node_modules/@ionic/core/dist/collection/components/ripple-effect/ripple-effect.css +0 -58
- package/dist/node_modules/@ionic/core/dist/collection/components/router-link/router-link.css +0 -29
- package/dist/node_modules/@ionic/core/dist/collection/components/router-outlet/route-outlet.css +0 -10
- package/dist/node_modules/@ionic/core/dist/collection/components/row/row.css +0 -4
- package/dist/node_modules/@ionic/core/dist/collection/components/searchbar/searchbar.ios.css +0 -348
- package/dist/node_modules/@ionic/core/dist/collection/components/searchbar/searchbar.md.css +0 -279
- package/dist/node_modules/@ionic/core/dist/collection/components/segment/segment.ios.css +0 -65
- package/dist/node_modules/@ionic/core/dist/collection/components/segment/segment.md.css +0 -36
- package/dist/node_modules/@ionic/core/dist/collection/components/segment-button/segment-button.ios.css +0 -446
- package/dist/node_modules/@ionic/core/dist/collection/components/segment-button/segment-button.md.css +0 -424
- package/dist/node_modules/@ionic/core/dist/collection/components/select/select.ios.css +0 -145
- package/dist/node_modules/@ionic/core/dist/collection/components/select/select.md.css +0 -177
- package/dist/node_modules/@ionic/core/dist/collection/components/select-option/select-option.css +0 -3
- package/dist/node_modules/@ionic/core/dist/collection/components/select-popover/select-popover.ios.css +0 -14
- package/dist/node_modules/@ionic/core/dist/collection/components/select-popover/select-popover.md.css +0 -37
- package/dist/node_modules/@ionic/core/dist/collection/components/skeleton-text/skeleton-text.css +0 -53
- package/dist/node_modules/@ionic/core/dist/collection/components/slide/slide.css +0 -31
- package/dist/node_modules/@ionic/core/dist/collection/components/slides/slides.ios.css +0 -764
- package/dist/node_modules/@ionic/core/dist/collection/components/slides/slides.md.css +0 -764
- package/dist/node_modules/@ionic/core/dist/collection/components/spinner/spinner.css +0 -167
- package/dist/node_modules/@ionic/core/dist/collection/components/split-pane/split-pane.ios.css +0 -108
- package/dist/node_modules/@ionic/core/dist/collection/components/split-pane/split-pane.md.css +0 -108
- package/dist/node_modules/@ionic/core/dist/collection/components/tab/tab.css +0 -4
- package/dist/node_modules/@ionic/core/dist/collection/components/tab-bar/tab-bar.ios.css +0 -97
- package/dist/node_modules/@ionic/core/dist/collection/components/tab-bar/tab-bar.md.css +0 -82
- package/dist/node_modules/@ionic/core/dist/collection/components/tab-button/tab-button.ios.css +0 -308
- package/dist/node_modules/@ionic/core/dist/collection/components/tab-button/tab-button.md.css +0 -331
- package/dist/node_modules/@ionic/core/dist/collection/components/tabs/tabs.css +0 -19
- package/dist/node_modules/@ionic/core/dist/collection/components/text/text.css +0 -3
- package/dist/node_modules/@ionic/core/dist/collection/components/textarea/textarea.ios.css +0 -175
- package/dist/node_modules/@ionic/core/dist/collection/components/textarea/textarea.md.css +0 -179
- package/dist/node_modules/@ionic/core/dist/collection/components/thumbnail/thumbnail.css +0 -21
- package/dist/node_modules/@ionic/core/dist/collection/components/title/title.ios.css +0 -122
- package/dist/node_modules/@ionic/core/dist/collection/components/title/title.md.css +0 -55
- package/dist/node_modules/@ionic/core/dist/collection/components/toast/toast.ios.css +0 -262
- package/dist/node_modules/@ionic/core/dist/collection/components/toast/toast.md.css +0 -295
- package/dist/node_modules/@ionic/core/dist/collection/components/toggle/toggle.ios.css +0 -286
- package/dist/node_modules/@ionic/core/dist/collection/components/toggle/toggle.md.css +0 -261
- package/dist/node_modules/@ionic/core/dist/collection/components/toolbar/toolbar.ios.css +0 -175
- package/dist/node_modules/@ionic/core/dist/collection/components/toolbar/toolbar.md.css +0 -168
- package/dist/node_modules/@ionic/core/dist/collection/components/virtual-scroll/virtual-scroll.css +0 -21
- package/dist/node_modules/@sparkle-learning/components/dist/collection/components/button/button.css +0 -49
- package/dist/node_modules/@sparkle-learning/components/dist/collection/components/cards/card/card.css +0 -208
- package/dist/node_modules/@sparkle-learning/components/dist/collection/components/cards/cards.css +0 -31
- package/dist/node_modules/@sparkle-learning/components/dist/collection/components/code/code.css +0 -245
- package/dist/node_modules/@sparkle-learning/components/dist/collection/components/dropdown/dropdown.css +0 -115
- package/dist/node_modules/@sparkle-learning/components/dist/collection/components/header/header-mobile-collapse/header-mobile-collapse.css +0 -255
- package/dist/node_modules/@sparkle-learning/components/dist/collection/components/header/header.css +0 -232
- package/dist/node_modules/@sparkle-learning/components/dist/collection/components/menu/collapsible/collapsible.css +0 -3
- package/dist/node_modules/@sparkle-learning/components/dist/collection/components/menu/menu-toggle/menu-toggle.css +0 -25
- package/dist/node_modules/@sparkle-learning/components/dist/collection/components/menu/menu.css +0 -71
- package/dist/node_modules/@sparkle-learning/components/dist/collection/components/nav/nav.css +0 -194
- package/dist/node_modules/@sparkle-learning/components/dist/collection/components/notfound-page/notfound-page.css +0 -4
- package/dist/node_modules/@sparkle-learning/components/dist/collection/components/overlay/overlay.css +0 -67
- package/dist/node_modules/@sparkle-learning/components/dist/collection/components/page-footer/page-footer.css +0 -25
- package/dist/node_modules/@sparkle-learning/components/dist/collection/components/pagination/pagination.css +0 -93
- package/dist/node_modules/@sparkle-learning/components/dist/collection/components/select/select.css +0 -52
- package/dist/node_modules/@sparkle-learning/components/dist/collection/components/sidebar/sidebar.css +0 -98
- package/dist/node_modules/@sparkle-learning/components/dist/collection/components/sparkle-lower-content-nav/sparkle-lower-content-nav.css +0 -8
- package/dist/node_modules/@sparkle-learning/components/dist/collection/components/table-of-contents/table-of-contents.css +0 -37
- package/dist/node_modules/@sparkle-learning/components/dist/collection/components/tabs/tabs.css +0 -64
- package/dist/node_modules/@stencil/router/dist/collection/components/route/route.css +0 -3
- package/dist/node_modules/ionicons/dist/collection/components/icon/icon.css +0 -101
- package/dist/sparkle-core/p-00d10dc9.js +0 -4
- package/dist/sparkle-core/p-0147266a.js +0 -1
- package/dist/sparkle-core/p-04c7b276.entry.js +0 -1
- package/dist/sparkle-core/p-05c032dd.js +0 -4
- package/dist/sparkle-core/p-06642405.entry.js +0 -1
- package/dist/sparkle-core/p-0664370b.entry.js +0 -1
- package/dist/sparkle-core/p-06c7d0f2.entry.js +0 -1
- package/dist/sparkle-core/p-076f0239.js +0 -4
- package/dist/sparkle-core/p-077c732b.js +0 -4
- package/dist/sparkle-core/p-08420531.entry.js +0 -1
- package/dist/sparkle-core/p-08cca80d.entry.js +0 -1
- package/dist/sparkle-core/p-0ad5c123.entry.js +0 -1
- package/dist/sparkle-core/p-0afa3a4d.entry.js +0 -1
- package/dist/sparkle-core/p-0c3f3ea6.entry.js +0 -1
- package/dist/sparkle-core/p-0e4de1d0.js +0 -4
- package/dist/sparkle-core/p-0e8e539f.entry.js +0 -1
- package/dist/sparkle-core/p-11356b03.entry.js +0 -1
- package/dist/sparkle-core/p-11a6c175.entry.js +0 -1
- package/dist/sparkle-core/p-12dd96d7.js +0 -4
- package/dist/sparkle-core/p-13ec39db.entry.js +0 -1
- package/dist/sparkle-core/p-1adc98f6.js +0 -1
- package/dist/sparkle-core/p-1b1ba156.entry.js +0 -1
- package/dist/sparkle-core/p-1e125ca5.entry.js +0 -1
- package/dist/sparkle-core/p-1e4782af.entry.js +0 -1
- package/dist/sparkle-core/p-2033cd86.js +0 -7
- package/dist/sparkle-core/p-214d1229.entry.js +0 -1
- package/dist/sparkle-core/p-23aca7ca.js +0 -4
- package/dist/sparkle-core/p-24cb9a33.entry.js +0 -1
- package/dist/sparkle-core/p-27fbabc3.entry.js +0 -1
- package/dist/sparkle-core/p-2ba70507.entry.js +0 -1
- package/dist/sparkle-core/p-2c1ca854.entry.js +0 -1
- package/dist/sparkle-core/p-2d9659e2.entry.js +0 -1
- package/dist/sparkle-core/p-2f569553.js +0 -1
- package/dist/sparkle-core/p-30b810d1.entry.js +0 -4
- package/dist/sparkle-core/p-32f4e565.entry.js +0 -1
- package/dist/sparkle-core/p-352677e6.entry.js +0 -1
- package/dist/sparkle-core/p-38b7cf68.entry.js +0 -1
- package/dist/sparkle-core/p-38c842d5.entry.js +0 -1
- package/dist/sparkle-core/p-3963e02b.entry.js +0 -1
- package/dist/sparkle-core/p-39712c56.entry.js +0 -4
- package/dist/sparkle-core/p-39a31e43.js +0 -1
- package/dist/sparkle-core/p-3daf2915.entry.js +0 -352
- package/dist/sparkle-core/p-3de0e00c.js +0 -4
- package/dist/sparkle-core/p-4053ecdb.entry.js +0 -1
- package/dist/sparkle-core/p-408176ba.js +0 -1
- package/dist/sparkle-core/p-42ed7d5f.entry.js +0 -1
- package/dist/sparkle-core/p-48f72e63.js +0 -4
- package/dist/sparkle-core/p-4b4a8703.js +0 -1
- package/dist/sparkle-core/p-4c6a7e52.js +0 -1
- package/dist/sparkle-core/p-4d1cfcbe.entry.js +0 -1
- package/dist/sparkle-core/p-4d4077ea.js +0 -4
- package/dist/sparkle-core/p-4fba3e4c.js +0 -1
- package/dist/sparkle-core/p-506221fe.js +0 -4
- package/dist/sparkle-core/p-5096739e.entry.js +0 -1
- package/dist/sparkle-core/p-5322c920.entry.js +0 -1
- package/dist/sparkle-core/p-5893bbe5.entry.js +0 -1
- package/dist/sparkle-core/p-594a6982.entry.js +0 -1
- package/dist/sparkle-core/p-5c435d5a.entry.js +0 -1
- package/dist/sparkle-core/p-5cad23f1.js +0 -3
- package/dist/sparkle-core/p-5d409601.js +0 -1
- package/dist/sparkle-core/p-601397df.entry.js +0 -1
- package/dist/sparkle-core/p-604a7987.js +0 -4
- package/dist/sparkle-core/p-616941c6.entry.js +0 -1
- package/dist/sparkle-core/p-6316d124.entry.js +0 -1
- package/dist/sparkle-core/p-63f71ada.entry.js +0 -1
- package/dist/sparkle-core/p-69487d90.entry.js +0 -1
- package/dist/sparkle-core/p-6bde0192.entry.js +0 -7
- package/dist/sparkle-core/p-6d2f4093.entry.js +0 -7
- package/dist/sparkle-core/p-6ffd2420.entry.js +0 -1
- package/dist/sparkle-core/p-72053ae0.entry.js +0 -1
- package/dist/sparkle-core/p-73721c84.js +0 -4
- package/dist/sparkle-core/p-74864276.entry.js +0 -1
- package/dist/sparkle-core/p-7d8427eb.js +0 -4
- package/dist/sparkle-core/p-7dae0f0e.js +0 -1
- package/dist/sparkle-core/p-7dbfc316.js +0 -1
- package/dist/sparkle-core/p-7e7ce516.js +0 -4
- package/dist/sparkle-core/p-81714d94.entry.js +0 -1
- package/dist/sparkle-core/p-8492a765.entry.js +0 -1
- package/dist/sparkle-core/p-859563db.entry.js +0 -1
- package/dist/sparkle-core/p-85d4cd5c.entry.js +0 -1
- package/dist/sparkle-core/p-865f36a8.entry.js +0 -1
- package/dist/sparkle-core/p-86ed13f0.js +0 -5
- package/dist/sparkle-core/p-871106e0.js +0 -4
- package/dist/sparkle-core/p-894ff7e6.entry.js +0 -1
- package/dist/sparkle-core/p-8a41b502.entry.js +0 -1
- package/dist/sparkle-core/p-8b56f734.js +0 -1
- package/dist/sparkle-core/p-8c74cbb6.entry.js +0 -1
- package/dist/sparkle-core/p-924b2917.js +0 -4
- package/dist/sparkle-core/p-9289cdbc.entry.js +0 -1
- package/dist/sparkle-core/p-957715c5.entry.js +0 -1
- package/dist/sparkle-core/p-973fe404.entry.js +0 -22
- package/dist/sparkle-core/p-975b99ee.entry.js +0 -1
- package/dist/sparkle-core/p-98daeddb.entry.js +0 -1
- package/dist/sparkle-core/p-99ee9919.js +0 -1
- package/dist/sparkle-core/p-9abbd715.entry.js +0 -1
- package/dist/sparkle-core/p-9d894ed4.js +0 -4
- package/dist/sparkle-core/p-9e309b3e.entry.js +0 -1
- package/dist/sparkle-core/p-9e7fee8f.entry.js +0 -1
- package/dist/sparkle-core/p-9ebf0537.entry.js +0 -1
- package/dist/sparkle-core/p-a208ab2d.js +0 -4
- package/dist/sparkle-core/p-a2638250.entry.js +0 -1
- package/dist/sparkle-core/p-a2ebcf0a.entry.js +0 -1
- package/dist/sparkle-core/p-a98d7ebe.entry.js +0 -1
- package/dist/sparkle-core/p-add30d46.js +0 -4
- package/dist/sparkle-core/p-b0603d19.js +0 -16
- package/dist/sparkle-core/p-b06e2bef.js +0 -1
- package/dist/sparkle-core/p-b3f375fb.entry.js +0 -1
- package/dist/sparkle-core/p-b5f3e1bf.entry.js +0 -1
- package/dist/sparkle-core/p-b6fec622.entry.js +0 -1
- package/dist/sparkle-core/p-b8d71ff4.js +0 -1
- package/dist/sparkle-core/p-b96f3c84.entry.js +0 -7
- package/dist/sparkle-core/p-bd80ff43.js +0 -4
- package/dist/sparkle-core/p-bd90903e.js +0 -1
- package/dist/sparkle-core/p-be64105c.entry.js +0 -1
- package/dist/sparkle-core/p-c0533c23.entry.js +0 -1
- package/dist/sparkle-core/p-c2990b24.entry.js +0 -1
- package/dist/sparkle-core/p-c3cadfc6.entry.js +0 -1
- package/dist/sparkle-core/p-c60b29bd.entry.js +0 -4
- package/dist/sparkle-core/p-c64a34cd.entry.js +0 -1
- package/dist/sparkle-core/p-c7e21070.entry.js +0 -1
- package/dist/sparkle-core/p-c9f753a4.js +0 -1
- package/dist/sparkle-core/p-cabe9139.js +0 -1
- package/dist/sparkle-core/p-cabfbf22.entry.js +0 -1
- package/dist/sparkle-core/p-cc518c36.entry.js +0 -1
- package/dist/sparkle-core/p-cffd4817.entry.js +0 -1
- package/dist/sparkle-core/p-d0adf726.entry.js +0 -1
- package/dist/sparkle-core/p-d20e4fcf.entry.js +0 -1
- package/dist/sparkle-core/p-d24e53ab.entry.js +0 -1
- package/dist/sparkle-core/p-d288e6c1.entry.js +0 -1
- package/dist/sparkle-core/p-d601810e.entry.js +0 -1
- package/dist/sparkle-core/p-d68092b7.js +0 -4
- package/dist/sparkle-core/p-da391f3f.js +0 -1
- package/dist/sparkle-core/p-de4deb61.entry.js +0 -1
- package/dist/sparkle-core/p-e0cad1bb.js +0 -1
- package/dist/sparkle-core/p-e249aebf.entry.js +0 -1
- package/dist/sparkle-core/p-e3e36ce9.entry.js +0 -1
- package/dist/sparkle-core/p-e421d638.entry.js +0 -1
- package/dist/sparkle-core/p-e686d8b5.entry.js +0 -4
- package/dist/sparkle-core/p-e8988989.entry.js +0 -1
- package/dist/sparkle-core/p-e9431eeb.js +0 -7
- package/dist/sparkle-core/p-ea962e1b.entry.js +0 -1
- package/dist/sparkle-core/p-eaa8bbee.js +0 -4
- package/dist/sparkle-core/p-ebd4354b.entry.js +0 -1
- package/dist/sparkle-core/p-ee1e0eb4.js +0 -2
- package/dist/sparkle-core/p-ef4edc48.entry.js +0 -4
- package/dist/sparkle-core/p-f196c124.entry.js +0 -7
- package/dist/sparkle-core/p-f3cba72a.js +0 -4
- package/dist/sparkle-core/p-f47fe1fe.entry.js +0 -1
- package/dist/sparkle-core/p-f714f77a.entry.js +0 -1
- package/dist/sparkle-core/p-f891c79a.entry.js +0 -1
- package/dist/sparkle-core/p-fb0ca75e.entry.js +0 -5
- package/dist/sparkle-core/p-fb757951.entry.js +0 -1
- package/dist/sparkle-core/p-fd8d0738.entry.js +0 -4
- package/dist/sparkle-core/p-fda95b6e.entry.js +0 -1
- package/dist/sparkle-core/p-fe6dc976.entry.js +0 -1
- package/dist/sparkle-core/p-ff080f82.entry.js +0 -10
- package/dist/sparkle-core/p-ff7a8a71.js +0 -4
- /package/dist/{esm → sparkle-core}/cubic-bezier-4c0db14f.js +0 -0
- /package/dist/{esm → sparkle-core}/focus-visible-4e9a0764.js +0 -0
- /package/dist/{esm → sparkle-core}/hardware-back-button-fa04d6e9.js +0 -0
- /package/dist/{esm → sparkle-core}/index-be6112f8.js +0 -0
- /package/dist/{esm → sparkle-core}/keyboard-7e8329b3.js +0 -0
- /package/dist/{esm → sparkle-core}/localstorage.service-4bf408c8.js +0 -0
- /package/dist/{esm → sparkle-core}/spinner-configs-a37e628a.js +0 -0
- /package/dist/{esm → sparkle-core}/theme-7ef00c83.js +0 -0
@@ -0,0 +1,4518 @@
|
|
1
|
+
import { h as getAssetPath, i as getRenderingRef, j as forceUpdate } from './index-1dec9544.js';
|
2
|
+
import { E as EnvironmentConfigService } from './assets.service-6508aae6.js';
|
3
|
+
import { g as get, s as set, r as remove } from './localstorage.service-4bf408c8.js';
|
4
|
+
import './index-1d7a6fa0.js';
|
5
|
+
import { t as toastController } from './overlays-fd3cfa13.js';
|
6
|
+
|
7
|
+
//import * as abpTypings from '../lib/abp';
|
8
|
+
class Utils {
|
9
|
+
constructor() {
|
10
|
+
this.sample = (array) => array[Math.floor(Math.random() * array.length)];
|
11
|
+
this.keyBy = (array, keyMap, valMap) => array.reduce((obj, item) => {
|
12
|
+
obj[keyMap(item)] = valMap ? valMap(item) : item;
|
13
|
+
return obj;
|
14
|
+
}, {});
|
15
|
+
this.debounce = (fn, wait) => {
|
16
|
+
let scheduled = null;
|
17
|
+
return (...args) => {
|
18
|
+
clearTimeout(scheduled);
|
19
|
+
scheduled = setTimeout(fn, wait, ...args);
|
20
|
+
};
|
21
|
+
};
|
22
|
+
}
|
23
|
+
loadScript(url) {
|
24
|
+
var script = document.createElement('script');
|
25
|
+
script.type = 'text/javascript';
|
26
|
+
script.src = url;
|
27
|
+
document.body.appendChild(script);
|
28
|
+
}
|
29
|
+
loadScriptAsync(src) {
|
30
|
+
return new Promise(function (resolve, reject) {
|
31
|
+
const s = document.createElement('script');
|
32
|
+
let r = false;
|
33
|
+
s.type = 'text/javascript';
|
34
|
+
s.src = src;
|
35
|
+
s.async = true;
|
36
|
+
s.onerror = function (err) {
|
37
|
+
reject(err);
|
38
|
+
};
|
39
|
+
s.onload = s.onreadystatechange = function () {
|
40
|
+
// console.log(this.readyState); // uncomment this line to see which ready states are called.
|
41
|
+
if (!r && (!this.readyState || this.readyState == 'complete')) {
|
42
|
+
r = true;
|
43
|
+
resolve(true);
|
44
|
+
}
|
45
|
+
};
|
46
|
+
const t = document.getElementsByTagName('script')[0];
|
47
|
+
t.parentElement.insertBefore(s, t);
|
48
|
+
});
|
49
|
+
}
|
50
|
+
extend(...args) {
|
51
|
+
let options, name, src, srcType, copy, copyIsArray, clone, target = args[0] || {}, i = 1, length = args.length, deep = false;
|
52
|
+
if (typeof target === 'boolean') {
|
53
|
+
deep = target;
|
54
|
+
target = args[i] || {};
|
55
|
+
i++;
|
56
|
+
}
|
57
|
+
if (typeof target !== 'object' && typeof target !== 'function') {
|
58
|
+
target = {};
|
59
|
+
}
|
60
|
+
if (i === length) {
|
61
|
+
target = this;
|
62
|
+
i--;
|
63
|
+
}
|
64
|
+
for (; i < length; i++) {
|
65
|
+
if ((options = args[i]) !== null) {
|
66
|
+
for (name in options) {
|
67
|
+
src = target[name];
|
68
|
+
copy = options[name];
|
69
|
+
if (target === copy) {
|
70
|
+
continue;
|
71
|
+
}
|
72
|
+
srcType = Array.isArray(src) ? 'array' : typeof src;
|
73
|
+
if (deep && copy && ((copyIsArray = Array.isArray(copy)) || typeof copy === 'object')) {
|
74
|
+
if (copyIsArray) {
|
75
|
+
copyIsArray = false;
|
76
|
+
clone = src && srcType === 'array' ? src : [];
|
77
|
+
}
|
78
|
+
else {
|
79
|
+
clone = src && srcType === 'object' ? src : {};
|
80
|
+
}
|
81
|
+
target[name] = this.extend(deep, clone, copy);
|
82
|
+
}
|
83
|
+
else if (copy !== undefined) {
|
84
|
+
target[name] = copy;
|
85
|
+
}
|
86
|
+
}
|
87
|
+
}
|
88
|
+
}
|
89
|
+
return target;
|
90
|
+
}
|
91
|
+
setLocalization() {
|
92
|
+
if (!sparkle.utils.getCookieValue('Sparkle.Localization.CultureName')) {
|
93
|
+
let language = navigator.language;
|
94
|
+
sparkle.utils.setCookieValue('Sparkle.Localization.CultureName', language, new Date(new Date().getTime() + 5 * 365 * 86400000), sparkle.appPath);
|
95
|
+
}
|
96
|
+
}
|
97
|
+
}
|
98
|
+
const Util = new Utils();
|
99
|
+
|
100
|
+
//declare var sparkle: any;
|
101
|
+
async function setupConfig(config) {
|
102
|
+
if (!window) {
|
103
|
+
return;
|
104
|
+
}
|
105
|
+
const win = window;
|
106
|
+
const Sparkle = win.Sparkle;
|
107
|
+
if (Sparkle && Sparkle.config && Sparkle.config.constructor.name !== 'Object') {
|
108
|
+
console.error('Sparkle config was already initialized');
|
109
|
+
return;
|
110
|
+
}
|
111
|
+
win.Sparkle = win.Sparkle || {};
|
112
|
+
win.Sparkle.config = Object.assign(Object.assign({}, win.Sparkle.config), config);
|
113
|
+
// sparkle.config = {
|
114
|
+
// ...config.sparkle
|
115
|
+
// };
|
116
|
+
return win.Sparkle.config;
|
117
|
+
}
|
118
|
+
async function initSetupConfig(config) {
|
119
|
+
await Util.loadScriptAsync(getAssetPath(`../assets/lib/sparkle.js`));
|
120
|
+
await setupConfig(config);
|
121
|
+
}
|
122
|
+
|
123
|
+
'use strict';
|
124
|
+
|
125
|
+
var bind = function bind(fn, thisArg) {
|
126
|
+
return function wrap() {
|
127
|
+
var args = new Array(arguments.length);
|
128
|
+
for (var i = 0; i < args.length; i++) {
|
129
|
+
args[i] = arguments[i];
|
130
|
+
}
|
131
|
+
return fn.apply(thisArg, args);
|
132
|
+
};
|
133
|
+
};
|
134
|
+
|
135
|
+
'use strict';
|
136
|
+
|
137
|
+
|
138
|
+
|
139
|
+
// utils is a library of generic helper functions non-specific to axios
|
140
|
+
|
141
|
+
var toString = Object.prototype.toString;
|
142
|
+
|
143
|
+
/**
|
144
|
+
* Determine if a value is an Array
|
145
|
+
*
|
146
|
+
* @param {Object} val The value to test
|
147
|
+
* @returns {boolean} True if value is an Array, otherwise false
|
148
|
+
*/
|
149
|
+
function isArray$4(val) {
|
150
|
+
return Array.isArray(val);
|
151
|
+
}
|
152
|
+
|
153
|
+
/**
|
154
|
+
* Determine if a value is undefined
|
155
|
+
*
|
156
|
+
* @param {Object} val The value to test
|
157
|
+
* @returns {boolean} True if the value is undefined, otherwise false
|
158
|
+
*/
|
159
|
+
function isUndefined(val) {
|
160
|
+
return typeof val === 'undefined';
|
161
|
+
}
|
162
|
+
|
163
|
+
/**
|
164
|
+
* Determine if a value is a Buffer
|
165
|
+
*
|
166
|
+
* @param {Object} val The value to test
|
167
|
+
* @returns {boolean} True if value is a Buffer, otherwise false
|
168
|
+
*/
|
169
|
+
function isBuffer$1(val) {
|
170
|
+
return val !== null && !isUndefined(val) && val.constructor !== null && !isUndefined(val.constructor)
|
171
|
+
&& typeof val.constructor.isBuffer === 'function' && val.constructor.isBuffer(val);
|
172
|
+
}
|
173
|
+
|
174
|
+
/**
|
175
|
+
* Determine if a value is an ArrayBuffer
|
176
|
+
*
|
177
|
+
* @param {Object} val The value to test
|
178
|
+
* @returns {boolean} True if value is an ArrayBuffer, otherwise false
|
179
|
+
*/
|
180
|
+
function isArrayBuffer(val) {
|
181
|
+
return toString.call(val) === '[object ArrayBuffer]';
|
182
|
+
}
|
183
|
+
|
184
|
+
/**
|
185
|
+
* Determine if a value is a FormData
|
186
|
+
*
|
187
|
+
* @param {Object} val The value to test
|
188
|
+
* @returns {boolean} True if value is an FormData, otherwise false
|
189
|
+
*/
|
190
|
+
function isFormData(val) {
|
191
|
+
return toString.call(val) === '[object FormData]';
|
192
|
+
}
|
193
|
+
|
194
|
+
/**
|
195
|
+
* Determine if a value is a view on an ArrayBuffer
|
196
|
+
*
|
197
|
+
* @param {Object} val The value to test
|
198
|
+
* @returns {boolean} True if value is a view on an ArrayBuffer, otherwise false
|
199
|
+
*/
|
200
|
+
function isArrayBufferView(val) {
|
201
|
+
var result;
|
202
|
+
if ((typeof ArrayBuffer !== 'undefined') && (ArrayBuffer.isView)) {
|
203
|
+
result = ArrayBuffer.isView(val);
|
204
|
+
} else {
|
205
|
+
result = (val) && (val.buffer) && (isArrayBuffer(val.buffer));
|
206
|
+
}
|
207
|
+
return result;
|
208
|
+
}
|
209
|
+
|
210
|
+
/**
|
211
|
+
* Determine if a value is a String
|
212
|
+
*
|
213
|
+
* @param {Object} val The value to test
|
214
|
+
* @returns {boolean} True if value is a String, otherwise false
|
215
|
+
*/
|
216
|
+
function isString$1(val) {
|
217
|
+
return typeof val === 'string';
|
218
|
+
}
|
219
|
+
|
220
|
+
/**
|
221
|
+
* Determine if a value is a Number
|
222
|
+
*
|
223
|
+
* @param {Object} val The value to test
|
224
|
+
* @returns {boolean} True if value is a Number, otherwise false
|
225
|
+
*/
|
226
|
+
function isNumber$1(val) {
|
227
|
+
return typeof val === 'number';
|
228
|
+
}
|
229
|
+
|
230
|
+
/**
|
231
|
+
* Determine if a value is an Object
|
232
|
+
*
|
233
|
+
* @param {Object} val The value to test
|
234
|
+
* @returns {boolean} True if value is an Object, otherwise false
|
235
|
+
*/
|
236
|
+
function isObject(val) {
|
237
|
+
return val !== null && typeof val === 'object';
|
238
|
+
}
|
239
|
+
|
240
|
+
/**
|
241
|
+
* Determine if a value is a plain Object
|
242
|
+
*
|
243
|
+
* @param {Object} val The value to test
|
244
|
+
* @return {boolean} True if value is a plain Object, otherwise false
|
245
|
+
*/
|
246
|
+
function isPlainObject(val) {
|
247
|
+
if (toString.call(val) !== '[object Object]') {
|
248
|
+
return false;
|
249
|
+
}
|
250
|
+
|
251
|
+
var prototype = Object.getPrototypeOf(val);
|
252
|
+
return prototype === null || prototype === Object.prototype;
|
253
|
+
}
|
254
|
+
|
255
|
+
/**
|
256
|
+
* Determine if a value is a Date
|
257
|
+
*
|
258
|
+
* @param {Object} val The value to test
|
259
|
+
* @returns {boolean} True if value is a Date, otherwise false
|
260
|
+
*/
|
261
|
+
function isDate$1(val) {
|
262
|
+
return toString.call(val) === '[object Date]';
|
263
|
+
}
|
264
|
+
|
265
|
+
/**
|
266
|
+
* Determine if a value is a File
|
267
|
+
*
|
268
|
+
* @param {Object} val The value to test
|
269
|
+
* @returns {boolean} True if value is a File, otherwise false
|
270
|
+
*/
|
271
|
+
function isFile(val) {
|
272
|
+
return toString.call(val) === '[object File]';
|
273
|
+
}
|
274
|
+
|
275
|
+
/**
|
276
|
+
* Determine if a value is a Blob
|
277
|
+
*
|
278
|
+
* @param {Object} val The value to test
|
279
|
+
* @returns {boolean} True if value is a Blob, otherwise false
|
280
|
+
*/
|
281
|
+
function isBlob(val) {
|
282
|
+
return toString.call(val) === '[object Blob]';
|
283
|
+
}
|
284
|
+
|
285
|
+
/**
|
286
|
+
* Determine if a value is a Function
|
287
|
+
*
|
288
|
+
* @param {Object} val The value to test
|
289
|
+
* @returns {boolean} True if value is a Function, otherwise false
|
290
|
+
*/
|
291
|
+
function isFunction(val) {
|
292
|
+
return toString.call(val) === '[object Function]';
|
293
|
+
}
|
294
|
+
|
295
|
+
/**
|
296
|
+
* Determine if a value is a Stream
|
297
|
+
*
|
298
|
+
* @param {Object} val The value to test
|
299
|
+
* @returns {boolean} True if value is a Stream, otherwise false
|
300
|
+
*/
|
301
|
+
function isStream(val) {
|
302
|
+
return isObject(val) && isFunction(val.pipe);
|
303
|
+
}
|
304
|
+
|
305
|
+
/**
|
306
|
+
* Determine if a value is a URLSearchParams object
|
307
|
+
*
|
308
|
+
* @param {Object} val The value to test
|
309
|
+
* @returns {boolean} True if value is a URLSearchParams object, otherwise false
|
310
|
+
*/
|
311
|
+
function isURLSearchParams(val) {
|
312
|
+
return toString.call(val) === '[object URLSearchParams]';
|
313
|
+
}
|
314
|
+
|
315
|
+
/**
|
316
|
+
* Trim excess whitespace off the beginning and end of a string
|
317
|
+
*
|
318
|
+
* @param {String} str The String to trim
|
319
|
+
* @returns {String} The String freed of excess whitespace
|
320
|
+
*/
|
321
|
+
function trim(str) {
|
322
|
+
return str.trim ? str.trim() : str.replace(/^\s+|\s+$/g, '');
|
323
|
+
}
|
324
|
+
|
325
|
+
/**
|
326
|
+
* Determine if we're running in a standard browser environment
|
327
|
+
*
|
328
|
+
* This allows axios to run in a web worker, and react-native.
|
329
|
+
* Both environments support XMLHttpRequest, but not fully standard globals.
|
330
|
+
*
|
331
|
+
* web workers:
|
332
|
+
* typeof window -> undefined
|
333
|
+
* typeof document -> undefined
|
334
|
+
*
|
335
|
+
* react-native:
|
336
|
+
* navigator.product -> 'ReactNative'
|
337
|
+
* nativescript
|
338
|
+
* navigator.product -> 'NativeScript' or 'NS'
|
339
|
+
*/
|
340
|
+
function isStandardBrowserEnv() {
|
341
|
+
if (typeof navigator !== 'undefined' && (navigator.product === 'ReactNative' ||
|
342
|
+
navigator.product === 'NativeScript' ||
|
343
|
+
navigator.product === 'NS')) {
|
344
|
+
return false;
|
345
|
+
}
|
346
|
+
return (
|
347
|
+
typeof window !== 'undefined' &&
|
348
|
+
typeof document !== 'undefined'
|
349
|
+
);
|
350
|
+
}
|
351
|
+
|
352
|
+
/**
|
353
|
+
* Iterate over an Array or an Object invoking a function for each item.
|
354
|
+
*
|
355
|
+
* If `obj` is an Array callback will be called passing
|
356
|
+
* the value, index, and complete array for each item.
|
357
|
+
*
|
358
|
+
* If 'obj' is an Object callback will be called passing
|
359
|
+
* the value, key, and complete object for each property.
|
360
|
+
*
|
361
|
+
* @param {Object|Array} obj The object to iterate
|
362
|
+
* @param {Function} fn The callback to invoke for each item
|
363
|
+
*/
|
364
|
+
function forEach(obj, fn) {
|
365
|
+
// Don't bother if no value provided
|
366
|
+
if (obj === null || typeof obj === 'undefined') {
|
367
|
+
return;
|
368
|
+
}
|
369
|
+
|
370
|
+
// Force an array if not already something iterable
|
371
|
+
if (typeof obj !== 'object') {
|
372
|
+
/*eslint no-param-reassign:0*/
|
373
|
+
obj = [obj];
|
374
|
+
}
|
375
|
+
|
376
|
+
if (isArray$4(obj)) {
|
377
|
+
// Iterate over array values
|
378
|
+
for (var i = 0, l = obj.length; i < l; i++) {
|
379
|
+
fn.call(null, obj[i], i, obj);
|
380
|
+
}
|
381
|
+
} else {
|
382
|
+
// Iterate over object keys
|
383
|
+
for (var key in obj) {
|
384
|
+
if (Object.prototype.hasOwnProperty.call(obj, key)) {
|
385
|
+
fn.call(null, obj[key], key, obj);
|
386
|
+
}
|
387
|
+
}
|
388
|
+
}
|
389
|
+
}
|
390
|
+
|
391
|
+
/**
|
392
|
+
* Accepts varargs expecting each argument to be an object, then
|
393
|
+
* immutably merges the properties of each object and returns result.
|
394
|
+
*
|
395
|
+
* When multiple objects contain the same key the later object in
|
396
|
+
* the arguments list will take precedence.
|
397
|
+
*
|
398
|
+
* Example:
|
399
|
+
*
|
400
|
+
* ```js
|
401
|
+
* var result = merge({foo: 123}, {foo: 456});
|
402
|
+
* console.log(result.foo); // outputs 456
|
403
|
+
* ```
|
404
|
+
*
|
405
|
+
* @param {Object} obj1 Object to merge
|
406
|
+
* @returns {Object} Result of all merge properties
|
407
|
+
*/
|
408
|
+
function merge$1(/* obj1, obj2, obj3, ... */) {
|
409
|
+
var result = {};
|
410
|
+
function assignValue(val, key) {
|
411
|
+
if (isPlainObject(result[key]) && isPlainObject(val)) {
|
412
|
+
result[key] = merge$1(result[key], val);
|
413
|
+
} else if (isPlainObject(val)) {
|
414
|
+
result[key] = merge$1({}, val);
|
415
|
+
} else if (isArray$4(val)) {
|
416
|
+
result[key] = val.slice();
|
417
|
+
} else {
|
418
|
+
result[key] = val;
|
419
|
+
}
|
420
|
+
}
|
421
|
+
|
422
|
+
for (var i = 0, l = arguments.length; i < l; i++) {
|
423
|
+
forEach(arguments[i], assignValue);
|
424
|
+
}
|
425
|
+
return result;
|
426
|
+
}
|
427
|
+
|
428
|
+
/**
|
429
|
+
* Extends object a by mutably adding to it the properties of object b.
|
430
|
+
*
|
431
|
+
* @param {Object} a The object to be extended
|
432
|
+
* @param {Object} b The object to copy properties from
|
433
|
+
* @param {Object} thisArg The object to bind function to
|
434
|
+
* @return {Object} The resulting value of object a
|
435
|
+
*/
|
436
|
+
function extend(a, b, thisArg) {
|
437
|
+
forEach(b, function assignValue(val, key) {
|
438
|
+
if (thisArg && typeof val === 'function') {
|
439
|
+
a[key] = bind(val, thisArg);
|
440
|
+
} else {
|
441
|
+
a[key] = val;
|
442
|
+
}
|
443
|
+
});
|
444
|
+
return a;
|
445
|
+
}
|
446
|
+
|
447
|
+
/**
|
448
|
+
* Remove byte order marker. This catches EF BB BF (the UTF-8 BOM)
|
449
|
+
*
|
450
|
+
* @param {string} content with BOM
|
451
|
+
* @return {string} content value without BOM
|
452
|
+
*/
|
453
|
+
function stripBOM(content) {
|
454
|
+
if (content.charCodeAt(0) === 0xFEFF) {
|
455
|
+
content = content.slice(1);
|
456
|
+
}
|
457
|
+
return content;
|
458
|
+
}
|
459
|
+
|
460
|
+
var utils$1 = {
|
461
|
+
isArray: isArray$4,
|
462
|
+
isArrayBuffer: isArrayBuffer,
|
463
|
+
isBuffer: isBuffer$1,
|
464
|
+
isFormData: isFormData,
|
465
|
+
isArrayBufferView: isArrayBufferView,
|
466
|
+
isString: isString$1,
|
467
|
+
isNumber: isNumber$1,
|
468
|
+
isObject: isObject,
|
469
|
+
isPlainObject: isPlainObject,
|
470
|
+
isUndefined: isUndefined,
|
471
|
+
isDate: isDate$1,
|
472
|
+
isFile: isFile,
|
473
|
+
isBlob: isBlob,
|
474
|
+
isFunction: isFunction,
|
475
|
+
isStream: isStream,
|
476
|
+
isURLSearchParams: isURLSearchParams,
|
477
|
+
isStandardBrowserEnv: isStandardBrowserEnv,
|
478
|
+
forEach: forEach,
|
479
|
+
merge: merge$1,
|
480
|
+
extend: extend,
|
481
|
+
trim: trim,
|
482
|
+
stripBOM: stripBOM
|
483
|
+
};
|
484
|
+
|
485
|
+
'use strict';
|
486
|
+
|
487
|
+
|
488
|
+
|
489
|
+
function encode$1(val) {
|
490
|
+
return encodeURIComponent(val).
|
491
|
+
replace(/%3A/gi, ':').
|
492
|
+
replace(/%24/g, '$').
|
493
|
+
replace(/%2C/gi, ',').
|
494
|
+
replace(/%20/g, '+').
|
495
|
+
replace(/%5B/gi, '[').
|
496
|
+
replace(/%5D/gi, ']');
|
497
|
+
}
|
498
|
+
|
499
|
+
/**
|
500
|
+
* Build a URL by appending params to the end
|
501
|
+
*
|
502
|
+
* @param {string} url The base of the url (e.g., http://www.google.com)
|
503
|
+
* @param {object} [params] The params to be appended
|
504
|
+
* @returns {string} The formatted url
|
505
|
+
*/
|
506
|
+
var buildURL = function buildURL(url, params, paramsSerializer) {
|
507
|
+
/*eslint no-param-reassign:0*/
|
508
|
+
if (!params) {
|
509
|
+
return url;
|
510
|
+
}
|
511
|
+
|
512
|
+
var serializedParams;
|
513
|
+
if (paramsSerializer) {
|
514
|
+
serializedParams = paramsSerializer(params);
|
515
|
+
} else if (utils$1.isURLSearchParams(params)) {
|
516
|
+
serializedParams = params.toString();
|
517
|
+
} else {
|
518
|
+
var parts = [];
|
519
|
+
|
520
|
+
utils$1.forEach(params, function serialize(val, key) {
|
521
|
+
if (val === null || typeof val === 'undefined') {
|
522
|
+
return;
|
523
|
+
}
|
524
|
+
|
525
|
+
if (utils$1.isArray(val)) {
|
526
|
+
key = key + '[]';
|
527
|
+
} else {
|
528
|
+
val = [val];
|
529
|
+
}
|
530
|
+
|
531
|
+
utils$1.forEach(val, function parseValue(v) {
|
532
|
+
if (utils$1.isDate(v)) {
|
533
|
+
v = v.toISOString();
|
534
|
+
} else if (utils$1.isObject(v)) {
|
535
|
+
v = JSON.stringify(v);
|
536
|
+
}
|
537
|
+
parts.push(encode$1(key) + '=' + encode$1(v));
|
538
|
+
});
|
539
|
+
});
|
540
|
+
|
541
|
+
serializedParams = parts.join('&');
|
542
|
+
}
|
543
|
+
|
544
|
+
if (serializedParams) {
|
545
|
+
var hashmarkIndex = url.indexOf('#');
|
546
|
+
if (hashmarkIndex !== -1) {
|
547
|
+
url = url.slice(0, hashmarkIndex);
|
548
|
+
}
|
549
|
+
|
550
|
+
url += (url.indexOf('?') === -1 ? '?' : '&') + serializedParams;
|
551
|
+
}
|
552
|
+
|
553
|
+
return url;
|
554
|
+
};
|
555
|
+
|
556
|
+
'use strict';
|
557
|
+
|
558
|
+
|
559
|
+
|
560
|
+
function InterceptorManager() {
|
561
|
+
this.handlers = [];
|
562
|
+
}
|
563
|
+
|
564
|
+
/**
|
565
|
+
* Add a new interceptor to the stack
|
566
|
+
*
|
567
|
+
* @param {Function} fulfilled The function to handle `then` for a `Promise`
|
568
|
+
* @param {Function} rejected The function to handle `reject` for a `Promise`
|
569
|
+
*
|
570
|
+
* @return {Number} An ID used to remove interceptor later
|
571
|
+
*/
|
572
|
+
InterceptorManager.prototype.use = function use(fulfilled, rejected, options) {
|
573
|
+
this.handlers.push({
|
574
|
+
fulfilled: fulfilled,
|
575
|
+
rejected: rejected,
|
576
|
+
synchronous: options ? options.synchronous : false,
|
577
|
+
runWhen: options ? options.runWhen : null
|
578
|
+
});
|
579
|
+
return this.handlers.length - 1;
|
580
|
+
};
|
581
|
+
|
582
|
+
/**
|
583
|
+
* Remove an interceptor from the stack
|
584
|
+
*
|
585
|
+
* @param {Number} id The ID that was returned by `use`
|
586
|
+
*/
|
587
|
+
InterceptorManager.prototype.eject = function eject(id) {
|
588
|
+
if (this.handlers[id]) {
|
589
|
+
this.handlers[id] = null;
|
590
|
+
}
|
591
|
+
};
|
592
|
+
|
593
|
+
/**
|
594
|
+
* Iterate over all the registered interceptors
|
595
|
+
*
|
596
|
+
* This method is particularly useful for skipping over any
|
597
|
+
* interceptors that may have become `null` calling `eject`.
|
598
|
+
*
|
599
|
+
* @param {Function} fn The function to call for each interceptor
|
600
|
+
*/
|
601
|
+
InterceptorManager.prototype.forEach = function forEach(fn) {
|
602
|
+
utils$1.forEach(this.handlers, function forEachHandler(h) {
|
603
|
+
if (h !== null) {
|
604
|
+
fn(h);
|
605
|
+
}
|
606
|
+
});
|
607
|
+
};
|
608
|
+
|
609
|
+
var InterceptorManager_1 = InterceptorManager;
|
610
|
+
|
611
|
+
'use strict';
|
612
|
+
|
613
|
+
|
614
|
+
|
615
|
+
var normalizeHeaderName = function normalizeHeaderName(headers, normalizedName) {
|
616
|
+
utils$1.forEach(headers, function processHeader(value, name) {
|
617
|
+
if (name !== normalizedName && name.toUpperCase() === normalizedName.toUpperCase()) {
|
618
|
+
headers[normalizedName] = value;
|
619
|
+
delete headers[name];
|
620
|
+
}
|
621
|
+
});
|
622
|
+
};
|
623
|
+
|
624
|
+
'use strict';
|
625
|
+
|
626
|
+
/**
|
627
|
+
* Update an Error with the specified config, error code, and response.
|
628
|
+
*
|
629
|
+
* @param {Error} error The error to update.
|
630
|
+
* @param {Object} config The config.
|
631
|
+
* @param {string} [code] The error code (for example, 'ECONNABORTED').
|
632
|
+
* @param {Object} [request] The request.
|
633
|
+
* @param {Object} [response] The response.
|
634
|
+
* @returns {Error} The error.
|
635
|
+
*/
|
636
|
+
var enhanceError = function enhanceError(error, config, code, request, response) {
|
637
|
+
error.config = config;
|
638
|
+
if (code) {
|
639
|
+
error.code = code;
|
640
|
+
}
|
641
|
+
|
642
|
+
error.request = request;
|
643
|
+
error.response = response;
|
644
|
+
error.isAxiosError = true;
|
645
|
+
|
646
|
+
error.toJSON = function toJSON() {
|
647
|
+
return {
|
648
|
+
// Standard
|
649
|
+
message: this.message,
|
650
|
+
name: this.name,
|
651
|
+
// Microsoft
|
652
|
+
description: this.description,
|
653
|
+
number: this.number,
|
654
|
+
// Mozilla
|
655
|
+
fileName: this.fileName,
|
656
|
+
lineNumber: this.lineNumber,
|
657
|
+
columnNumber: this.columnNumber,
|
658
|
+
stack: this.stack,
|
659
|
+
// Axios
|
660
|
+
config: this.config,
|
661
|
+
code: this.code,
|
662
|
+
status: this.response && this.response.status ? this.response.status : null
|
663
|
+
};
|
664
|
+
};
|
665
|
+
return error;
|
666
|
+
};
|
667
|
+
|
668
|
+
'use strict';
|
669
|
+
|
670
|
+
var transitional = {
|
671
|
+
silentJSONParsing: true,
|
672
|
+
forcedJSONParsing: true,
|
673
|
+
clarifyTimeoutError: false
|
674
|
+
};
|
675
|
+
|
676
|
+
'use strict';
|
677
|
+
|
678
|
+
|
679
|
+
|
680
|
+
/**
|
681
|
+
* Create an Error with the specified message, config, error code, request and response.
|
682
|
+
*
|
683
|
+
* @param {string} message The error message.
|
684
|
+
* @param {Object} config The config.
|
685
|
+
* @param {string} [code] The error code (for example, 'ECONNABORTED').
|
686
|
+
* @param {Object} [request] The request.
|
687
|
+
* @param {Object} [response] The response.
|
688
|
+
* @returns {Error} The created error.
|
689
|
+
*/
|
690
|
+
var createError = function createError(message, config, code, request, response) {
|
691
|
+
var error = new Error(message);
|
692
|
+
return enhanceError(error, config, code, request, response);
|
693
|
+
};
|
694
|
+
|
695
|
+
'use strict';
|
696
|
+
|
697
|
+
|
698
|
+
|
699
|
+
/**
|
700
|
+
* Resolve or reject a Promise based on response status.
|
701
|
+
*
|
702
|
+
* @param {Function} resolve A function that resolves the promise.
|
703
|
+
* @param {Function} reject A function that rejects the promise.
|
704
|
+
* @param {object} response The response.
|
705
|
+
*/
|
706
|
+
var settle = function settle(resolve, reject, response) {
|
707
|
+
var validateStatus = response.config.validateStatus;
|
708
|
+
if (!response.status || !validateStatus || validateStatus(response.status)) {
|
709
|
+
resolve(response);
|
710
|
+
} else {
|
711
|
+
reject(createError(
|
712
|
+
'Request failed with status code ' + response.status,
|
713
|
+
response.config,
|
714
|
+
null,
|
715
|
+
response.request,
|
716
|
+
response
|
717
|
+
));
|
718
|
+
}
|
719
|
+
};
|
720
|
+
|
721
|
+
'use strict';
|
722
|
+
|
723
|
+
|
724
|
+
|
725
|
+
var cookies = (
|
726
|
+
utils$1.isStandardBrowserEnv() ?
|
727
|
+
|
728
|
+
// Standard browser envs support document.cookie
|
729
|
+
(function standardBrowserEnv() {
|
730
|
+
return {
|
731
|
+
write: function write(name, value, expires, path, domain, secure) {
|
732
|
+
var cookie = [];
|
733
|
+
cookie.push(name + '=' + encodeURIComponent(value));
|
734
|
+
|
735
|
+
if (utils$1.isNumber(expires)) {
|
736
|
+
cookie.push('expires=' + new Date(expires).toGMTString());
|
737
|
+
}
|
738
|
+
|
739
|
+
if (utils$1.isString(path)) {
|
740
|
+
cookie.push('path=' + path);
|
741
|
+
}
|
742
|
+
|
743
|
+
if (utils$1.isString(domain)) {
|
744
|
+
cookie.push('domain=' + domain);
|
745
|
+
}
|
746
|
+
|
747
|
+
if (secure === true) {
|
748
|
+
cookie.push('secure');
|
749
|
+
}
|
750
|
+
|
751
|
+
document.cookie = cookie.join('; ');
|
752
|
+
},
|
753
|
+
|
754
|
+
read: function read(name) {
|
755
|
+
var match = document.cookie.match(new RegExp('(^|;\\s*)(' + name + ')=([^;]*)'));
|
756
|
+
return (match ? decodeURIComponent(match[3]) : null);
|
757
|
+
},
|
758
|
+
|
759
|
+
remove: function remove(name) {
|
760
|
+
this.write(name, '', Date.now() - 86400000);
|
761
|
+
}
|
762
|
+
};
|
763
|
+
})() :
|
764
|
+
|
765
|
+
// Non standard browser env (web workers, react-native) lack needed support.
|
766
|
+
(function nonStandardBrowserEnv() {
|
767
|
+
return {
|
768
|
+
write: function write() {},
|
769
|
+
read: function read() { return null; },
|
770
|
+
remove: function remove() {}
|
771
|
+
};
|
772
|
+
})()
|
773
|
+
);
|
774
|
+
|
775
|
+
'use strict';
|
776
|
+
|
777
|
+
/**
|
778
|
+
* Determines whether the specified URL is absolute
|
779
|
+
*
|
780
|
+
* @param {string} url The URL to test
|
781
|
+
* @returns {boolean} True if the specified URL is absolute, otherwise false
|
782
|
+
*/
|
783
|
+
var isAbsoluteURL = function isAbsoluteURL(url) {
|
784
|
+
// A URL is considered absolute if it begins with "<scheme>://" or "//" (protocol-relative URL).
|
785
|
+
// RFC 3986 defines scheme name as a sequence of characters beginning with a letter and followed
|
786
|
+
// by any combination of letters, digits, plus, period, or hyphen.
|
787
|
+
return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(url);
|
788
|
+
};
|
789
|
+
|
790
|
+
'use strict';
|
791
|
+
|
792
|
+
/**
|
793
|
+
* Creates a new URL by combining the specified URLs
|
794
|
+
*
|
795
|
+
* @param {string} baseURL The base URL
|
796
|
+
* @param {string} relativeURL The relative URL
|
797
|
+
* @returns {string} The combined URL
|
798
|
+
*/
|
799
|
+
var combineURLs = function combineURLs(baseURL, relativeURL) {
|
800
|
+
return relativeURL
|
801
|
+
? baseURL.replace(/\/+$/, '') + '/' + relativeURL.replace(/^\/+/, '')
|
802
|
+
: baseURL;
|
803
|
+
};
|
804
|
+
|
805
|
+
'use strict';
|
806
|
+
|
807
|
+
|
808
|
+
|
809
|
+
|
810
|
+
/**
|
811
|
+
* Creates a new URL by combining the baseURL with the requestedURL,
|
812
|
+
* only when the requestedURL is not already an absolute URL.
|
813
|
+
* If the requestURL is absolute, this function returns the requestedURL untouched.
|
814
|
+
*
|
815
|
+
* @param {string} baseURL The base URL
|
816
|
+
* @param {string} requestedURL Absolute or relative URL to combine
|
817
|
+
* @returns {string} The combined full path
|
818
|
+
*/
|
819
|
+
var buildFullPath = function buildFullPath(baseURL, requestedURL) {
|
820
|
+
if (baseURL && !isAbsoluteURL(requestedURL)) {
|
821
|
+
return combineURLs(baseURL, requestedURL);
|
822
|
+
}
|
823
|
+
return requestedURL;
|
824
|
+
};
|
825
|
+
|
826
|
+
'use strict';
|
827
|
+
|
828
|
+
|
829
|
+
|
830
|
+
// Headers whose duplicates are ignored by node
|
831
|
+
// c.f. https://nodejs.org/api/http.html#http_message_headers
|
832
|
+
var ignoreDuplicateOf = [
|
833
|
+
'age', 'authorization', 'content-length', 'content-type', 'etag',
|
834
|
+
'expires', 'from', 'host', 'if-modified-since', 'if-unmodified-since',
|
835
|
+
'last-modified', 'location', 'max-forwards', 'proxy-authorization',
|
836
|
+
'referer', 'retry-after', 'user-agent'
|
837
|
+
];
|
838
|
+
|
839
|
+
/**
|
840
|
+
* Parse headers into an object
|
841
|
+
*
|
842
|
+
* ```
|
843
|
+
* Date: Wed, 27 Aug 2014 08:58:49 GMT
|
844
|
+
* Content-Type: application/json
|
845
|
+
* Connection: keep-alive
|
846
|
+
* Transfer-Encoding: chunked
|
847
|
+
* ```
|
848
|
+
*
|
849
|
+
* @param {String} headers Headers needing to be parsed
|
850
|
+
* @returns {Object} Headers parsed into an object
|
851
|
+
*/
|
852
|
+
var parseHeaders = function parseHeaders(headers) {
|
853
|
+
var parsed = {};
|
854
|
+
var key;
|
855
|
+
var val;
|
856
|
+
var i;
|
857
|
+
|
858
|
+
if (!headers) { return parsed; }
|
859
|
+
|
860
|
+
utils$1.forEach(headers.split('\n'), function parser(line) {
|
861
|
+
i = line.indexOf(':');
|
862
|
+
key = utils$1.trim(line.substr(0, i)).toLowerCase();
|
863
|
+
val = utils$1.trim(line.substr(i + 1));
|
864
|
+
|
865
|
+
if (key) {
|
866
|
+
if (parsed[key] && ignoreDuplicateOf.indexOf(key) >= 0) {
|
867
|
+
return;
|
868
|
+
}
|
869
|
+
if (key === 'set-cookie') {
|
870
|
+
parsed[key] = (parsed[key] ? parsed[key] : []).concat([val]);
|
871
|
+
} else {
|
872
|
+
parsed[key] = parsed[key] ? parsed[key] + ', ' + val : val;
|
873
|
+
}
|
874
|
+
}
|
875
|
+
});
|
876
|
+
|
877
|
+
return parsed;
|
878
|
+
};
|
879
|
+
|
880
|
+
'use strict';
|
881
|
+
|
882
|
+
|
883
|
+
|
884
|
+
var isURLSameOrigin = (
|
885
|
+
utils$1.isStandardBrowserEnv() ?
|
886
|
+
|
887
|
+
// Standard browser envs have full support of the APIs needed to test
|
888
|
+
// whether the request URL is of the same origin as current location.
|
889
|
+
(function standardBrowserEnv() {
|
890
|
+
var msie = /(msie|trident)/i.test(navigator.userAgent);
|
891
|
+
var urlParsingNode = document.createElement('a');
|
892
|
+
var originURL;
|
893
|
+
|
894
|
+
/**
|
895
|
+
* Parse a URL to discover it's components
|
896
|
+
*
|
897
|
+
* @param {String} url The URL to be parsed
|
898
|
+
* @returns {Object}
|
899
|
+
*/
|
900
|
+
function resolveURL(url) {
|
901
|
+
var href = url;
|
902
|
+
|
903
|
+
if (msie) {
|
904
|
+
// IE needs attribute set twice to normalize properties
|
905
|
+
urlParsingNode.setAttribute('href', href);
|
906
|
+
href = urlParsingNode.href;
|
907
|
+
}
|
908
|
+
|
909
|
+
urlParsingNode.setAttribute('href', href);
|
910
|
+
|
911
|
+
// urlParsingNode provides the UrlUtils interface - http://url.spec.whatwg.org/#urlutils
|
912
|
+
return {
|
913
|
+
href: urlParsingNode.href,
|
914
|
+
protocol: urlParsingNode.protocol ? urlParsingNode.protocol.replace(/:$/, '') : '',
|
915
|
+
host: urlParsingNode.host,
|
916
|
+
search: urlParsingNode.search ? urlParsingNode.search.replace(/^\?/, '') : '',
|
917
|
+
hash: urlParsingNode.hash ? urlParsingNode.hash.replace(/^#/, '') : '',
|
918
|
+
hostname: urlParsingNode.hostname,
|
919
|
+
port: urlParsingNode.port,
|
920
|
+
pathname: (urlParsingNode.pathname.charAt(0) === '/') ?
|
921
|
+
urlParsingNode.pathname :
|
922
|
+
'/' + urlParsingNode.pathname
|
923
|
+
};
|
924
|
+
}
|
925
|
+
|
926
|
+
originURL = resolveURL(window.location.href);
|
927
|
+
|
928
|
+
/**
|
929
|
+
* Determine if a URL shares the same origin as the current location
|
930
|
+
*
|
931
|
+
* @param {String} requestURL The URL to test
|
932
|
+
* @returns {boolean} True if URL shares the same origin, otherwise false
|
933
|
+
*/
|
934
|
+
return function isURLSameOrigin(requestURL) {
|
935
|
+
var parsed = (utils$1.isString(requestURL)) ? resolveURL(requestURL) : requestURL;
|
936
|
+
return (parsed.protocol === originURL.protocol &&
|
937
|
+
parsed.host === originURL.host);
|
938
|
+
};
|
939
|
+
})() :
|
940
|
+
|
941
|
+
// Non standard browser envs (web workers, react-native) lack needed support.
|
942
|
+
(function nonStandardBrowserEnv() {
|
943
|
+
return function isURLSameOrigin() {
|
944
|
+
return true;
|
945
|
+
};
|
946
|
+
})()
|
947
|
+
);
|
948
|
+
|
949
|
+
'use strict';
|
950
|
+
|
951
|
+
/**
|
952
|
+
* A `Cancel` is an object that is thrown when an operation is canceled.
|
953
|
+
*
|
954
|
+
* @class
|
955
|
+
* @param {string=} message The message.
|
956
|
+
*/
|
957
|
+
function Cancel(message) {
|
958
|
+
this.message = message;
|
959
|
+
}
|
960
|
+
|
961
|
+
Cancel.prototype.toString = function toString() {
|
962
|
+
return 'Cancel' + (this.message ? ': ' + this.message : '');
|
963
|
+
};
|
964
|
+
|
965
|
+
Cancel.prototype.__CANCEL__ = true;
|
966
|
+
|
967
|
+
var Cancel_1 = Cancel;
|
968
|
+
|
969
|
+
'use strict';
|
970
|
+
|
971
|
+
|
972
|
+
|
973
|
+
|
974
|
+
|
975
|
+
|
976
|
+
|
977
|
+
|
978
|
+
|
979
|
+
|
980
|
+
|
981
|
+
|
982
|
+
var xhr = function xhrAdapter(config) {
|
983
|
+
return new Promise(function dispatchXhrRequest(resolve, reject) {
|
984
|
+
var requestData = config.data;
|
985
|
+
var requestHeaders = config.headers;
|
986
|
+
var responseType = config.responseType;
|
987
|
+
var onCanceled;
|
988
|
+
function done() {
|
989
|
+
if (config.cancelToken) {
|
990
|
+
config.cancelToken.unsubscribe(onCanceled);
|
991
|
+
}
|
992
|
+
|
993
|
+
if (config.signal) {
|
994
|
+
config.signal.removeEventListener('abort', onCanceled);
|
995
|
+
}
|
996
|
+
}
|
997
|
+
|
998
|
+
if (utils$1.isFormData(requestData)) {
|
999
|
+
delete requestHeaders['Content-Type']; // Let the browser set it
|
1000
|
+
}
|
1001
|
+
|
1002
|
+
var request = new XMLHttpRequest();
|
1003
|
+
|
1004
|
+
// HTTP basic authentication
|
1005
|
+
if (config.auth) {
|
1006
|
+
var username = config.auth.username || '';
|
1007
|
+
var password = config.auth.password ? unescape(encodeURIComponent(config.auth.password)) : '';
|
1008
|
+
requestHeaders.Authorization = 'Basic ' + btoa(username + ':' + password);
|
1009
|
+
}
|
1010
|
+
|
1011
|
+
var fullPath = buildFullPath(config.baseURL, config.url);
|
1012
|
+
request.open(config.method.toUpperCase(), buildURL(fullPath, config.params, config.paramsSerializer), true);
|
1013
|
+
|
1014
|
+
// Set the request timeout in MS
|
1015
|
+
request.timeout = config.timeout;
|
1016
|
+
|
1017
|
+
function onloadend() {
|
1018
|
+
if (!request) {
|
1019
|
+
return;
|
1020
|
+
}
|
1021
|
+
// Prepare the response
|
1022
|
+
var responseHeaders = 'getAllResponseHeaders' in request ? parseHeaders(request.getAllResponseHeaders()) : null;
|
1023
|
+
var responseData = !responseType || responseType === 'text' || responseType === 'json' ?
|
1024
|
+
request.responseText : request.response;
|
1025
|
+
var response = {
|
1026
|
+
data: responseData,
|
1027
|
+
status: request.status,
|
1028
|
+
statusText: request.statusText,
|
1029
|
+
headers: responseHeaders,
|
1030
|
+
config: config,
|
1031
|
+
request: request
|
1032
|
+
};
|
1033
|
+
|
1034
|
+
settle(function _resolve(value) {
|
1035
|
+
resolve(value);
|
1036
|
+
done();
|
1037
|
+
}, function _reject(err) {
|
1038
|
+
reject(err);
|
1039
|
+
done();
|
1040
|
+
}, response);
|
1041
|
+
|
1042
|
+
// Clean up request
|
1043
|
+
request = null;
|
1044
|
+
}
|
1045
|
+
|
1046
|
+
if ('onloadend' in request) {
|
1047
|
+
// Use onloadend if available
|
1048
|
+
request.onloadend = onloadend;
|
1049
|
+
} else {
|
1050
|
+
// Listen for ready state to emulate onloadend
|
1051
|
+
request.onreadystatechange = function handleLoad() {
|
1052
|
+
if (!request || request.readyState !== 4) {
|
1053
|
+
return;
|
1054
|
+
}
|
1055
|
+
|
1056
|
+
// The request errored out and we didn't get a response, this will be
|
1057
|
+
// handled by onerror instead
|
1058
|
+
// With one exception: request that using file: protocol, most browsers
|
1059
|
+
// will return status as 0 even though it's a successful request
|
1060
|
+
if (request.status === 0 && !(request.responseURL && request.responseURL.indexOf('file:') === 0)) {
|
1061
|
+
return;
|
1062
|
+
}
|
1063
|
+
// readystate handler is calling before onerror or ontimeout handlers,
|
1064
|
+
// so we should call onloadend on the next 'tick'
|
1065
|
+
setTimeout(onloadend);
|
1066
|
+
};
|
1067
|
+
}
|
1068
|
+
|
1069
|
+
// Handle browser request cancellation (as opposed to a manual cancellation)
|
1070
|
+
request.onabort = function handleAbort() {
|
1071
|
+
if (!request) {
|
1072
|
+
return;
|
1073
|
+
}
|
1074
|
+
|
1075
|
+
reject(createError('Request aborted', config, 'ECONNABORTED', request));
|
1076
|
+
|
1077
|
+
// Clean up request
|
1078
|
+
request = null;
|
1079
|
+
};
|
1080
|
+
|
1081
|
+
// Handle low level network errors
|
1082
|
+
request.onerror = function handleError() {
|
1083
|
+
// Real errors are hidden from us by the browser
|
1084
|
+
// onerror should only fire if it's a network error
|
1085
|
+
reject(createError('Network Error', config, null, request));
|
1086
|
+
|
1087
|
+
// Clean up request
|
1088
|
+
request = null;
|
1089
|
+
};
|
1090
|
+
|
1091
|
+
// Handle timeout
|
1092
|
+
request.ontimeout = function handleTimeout() {
|
1093
|
+
var timeoutErrorMessage = config.timeout ? 'timeout of ' + config.timeout + 'ms exceeded' : 'timeout exceeded';
|
1094
|
+
var transitional$1 = config.transitional || transitional;
|
1095
|
+
if (config.timeoutErrorMessage) {
|
1096
|
+
timeoutErrorMessage = config.timeoutErrorMessage;
|
1097
|
+
}
|
1098
|
+
reject(createError(
|
1099
|
+
timeoutErrorMessage,
|
1100
|
+
config,
|
1101
|
+
transitional$1.clarifyTimeoutError ? 'ETIMEDOUT' : 'ECONNABORTED',
|
1102
|
+
request));
|
1103
|
+
|
1104
|
+
// Clean up request
|
1105
|
+
request = null;
|
1106
|
+
};
|
1107
|
+
|
1108
|
+
// Add xsrf header
|
1109
|
+
// This is only done if running in a standard browser environment.
|
1110
|
+
// Specifically not if we're in a web worker, or react-native.
|
1111
|
+
if (utils$1.isStandardBrowserEnv()) {
|
1112
|
+
// Add xsrf header
|
1113
|
+
var xsrfValue = (config.withCredentials || isURLSameOrigin(fullPath)) && config.xsrfCookieName ?
|
1114
|
+
cookies.read(config.xsrfCookieName) :
|
1115
|
+
undefined;
|
1116
|
+
|
1117
|
+
if (xsrfValue) {
|
1118
|
+
requestHeaders[config.xsrfHeaderName] = xsrfValue;
|
1119
|
+
}
|
1120
|
+
}
|
1121
|
+
|
1122
|
+
// Add headers to the request
|
1123
|
+
if ('setRequestHeader' in request) {
|
1124
|
+
utils$1.forEach(requestHeaders, function setRequestHeader(val, key) {
|
1125
|
+
if (typeof requestData === 'undefined' && key.toLowerCase() === 'content-type') {
|
1126
|
+
// Remove Content-Type if data is undefined
|
1127
|
+
delete requestHeaders[key];
|
1128
|
+
} else {
|
1129
|
+
// Otherwise add header to the request
|
1130
|
+
request.setRequestHeader(key, val);
|
1131
|
+
}
|
1132
|
+
});
|
1133
|
+
}
|
1134
|
+
|
1135
|
+
// Add withCredentials to request if needed
|
1136
|
+
if (!utils$1.isUndefined(config.withCredentials)) {
|
1137
|
+
request.withCredentials = !!config.withCredentials;
|
1138
|
+
}
|
1139
|
+
|
1140
|
+
// Add responseType to request if needed
|
1141
|
+
if (responseType && responseType !== 'json') {
|
1142
|
+
request.responseType = config.responseType;
|
1143
|
+
}
|
1144
|
+
|
1145
|
+
// Handle progress if needed
|
1146
|
+
if (typeof config.onDownloadProgress === 'function') {
|
1147
|
+
request.addEventListener('progress', config.onDownloadProgress);
|
1148
|
+
}
|
1149
|
+
|
1150
|
+
// Not all browsers support upload events
|
1151
|
+
if (typeof config.onUploadProgress === 'function' && request.upload) {
|
1152
|
+
request.upload.addEventListener('progress', config.onUploadProgress);
|
1153
|
+
}
|
1154
|
+
|
1155
|
+
if (config.cancelToken || config.signal) {
|
1156
|
+
// Handle cancellation
|
1157
|
+
// eslint-disable-next-line func-names
|
1158
|
+
onCanceled = function(cancel) {
|
1159
|
+
if (!request) {
|
1160
|
+
return;
|
1161
|
+
}
|
1162
|
+
reject(!cancel || (cancel && cancel.type) ? new Cancel_1('canceled') : cancel);
|
1163
|
+
request.abort();
|
1164
|
+
request = null;
|
1165
|
+
};
|
1166
|
+
|
1167
|
+
config.cancelToken && config.cancelToken.subscribe(onCanceled);
|
1168
|
+
if (config.signal) {
|
1169
|
+
config.signal.aborted ? onCanceled() : config.signal.addEventListener('abort', onCanceled);
|
1170
|
+
}
|
1171
|
+
}
|
1172
|
+
|
1173
|
+
if (!requestData) {
|
1174
|
+
requestData = null;
|
1175
|
+
}
|
1176
|
+
|
1177
|
+
// Send the request
|
1178
|
+
request.send(requestData);
|
1179
|
+
});
|
1180
|
+
};
|
1181
|
+
|
1182
|
+
'use strict';
|
1183
|
+
|
1184
|
+
|
1185
|
+
|
1186
|
+
|
1187
|
+
|
1188
|
+
|
1189
|
+
var DEFAULT_CONTENT_TYPE = {
|
1190
|
+
'Content-Type': 'application/x-www-form-urlencoded'
|
1191
|
+
};
|
1192
|
+
|
1193
|
+
function setContentTypeIfUnset(headers, value) {
|
1194
|
+
if (!utils$1.isUndefined(headers) && utils$1.isUndefined(headers['Content-Type'])) {
|
1195
|
+
headers['Content-Type'] = value;
|
1196
|
+
}
|
1197
|
+
}
|
1198
|
+
|
1199
|
+
function getDefaultAdapter() {
|
1200
|
+
var adapter;
|
1201
|
+
if (typeof XMLHttpRequest !== 'undefined') {
|
1202
|
+
// For browsers use XHR adapter
|
1203
|
+
adapter = xhr;
|
1204
|
+
} else if (typeof process !== 'undefined' && Object.prototype.toString.call(process) === '[object process]') {
|
1205
|
+
// For node use HTTP adapter
|
1206
|
+
adapter = xhr;
|
1207
|
+
}
|
1208
|
+
return adapter;
|
1209
|
+
}
|
1210
|
+
|
1211
|
+
function stringifySafely(rawValue, parser, encoder) {
|
1212
|
+
if (utils$1.isString(rawValue)) {
|
1213
|
+
try {
|
1214
|
+
(parser || JSON.parse)(rawValue);
|
1215
|
+
return utils$1.trim(rawValue);
|
1216
|
+
} catch (e) {
|
1217
|
+
if (e.name !== 'SyntaxError') {
|
1218
|
+
throw e;
|
1219
|
+
}
|
1220
|
+
}
|
1221
|
+
}
|
1222
|
+
|
1223
|
+
return (encoder || JSON.stringify)(rawValue);
|
1224
|
+
}
|
1225
|
+
|
1226
|
+
var defaults$2 = {
|
1227
|
+
|
1228
|
+
transitional: transitional,
|
1229
|
+
|
1230
|
+
adapter: getDefaultAdapter(),
|
1231
|
+
|
1232
|
+
transformRequest: [function transformRequest(data, headers) {
|
1233
|
+
normalizeHeaderName(headers, 'Accept');
|
1234
|
+
normalizeHeaderName(headers, 'Content-Type');
|
1235
|
+
|
1236
|
+
if (utils$1.isFormData(data) ||
|
1237
|
+
utils$1.isArrayBuffer(data) ||
|
1238
|
+
utils$1.isBuffer(data) ||
|
1239
|
+
utils$1.isStream(data) ||
|
1240
|
+
utils$1.isFile(data) ||
|
1241
|
+
utils$1.isBlob(data)
|
1242
|
+
) {
|
1243
|
+
return data;
|
1244
|
+
}
|
1245
|
+
if (utils$1.isArrayBufferView(data)) {
|
1246
|
+
return data.buffer;
|
1247
|
+
}
|
1248
|
+
if (utils$1.isURLSearchParams(data)) {
|
1249
|
+
setContentTypeIfUnset(headers, 'application/x-www-form-urlencoded;charset=utf-8');
|
1250
|
+
return data.toString();
|
1251
|
+
}
|
1252
|
+
if (utils$1.isObject(data) || (headers && headers['Content-Type'] === 'application/json')) {
|
1253
|
+
setContentTypeIfUnset(headers, 'application/json');
|
1254
|
+
return stringifySafely(data);
|
1255
|
+
}
|
1256
|
+
return data;
|
1257
|
+
}],
|
1258
|
+
|
1259
|
+
transformResponse: [function transformResponse(data) {
|
1260
|
+
var transitional = this.transitional || defaults$2.transitional;
|
1261
|
+
var silentJSONParsing = transitional && transitional.silentJSONParsing;
|
1262
|
+
var forcedJSONParsing = transitional && transitional.forcedJSONParsing;
|
1263
|
+
var strictJSONParsing = !silentJSONParsing && this.responseType === 'json';
|
1264
|
+
|
1265
|
+
if (strictJSONParsing || (forcedJSONParsing && utils$1.isString(data) && data.length)) {
|
1266
|
+
try {
|
1267
|
+
return JSON.parse(data);
|
1268
|
+
} catch (e) {
|
1269
|
+
if (strictJSONParsing) {
|
1270
|
+
if (e.name === 'SyntaxError') {
|
1271
|
+
throw enhanceError(e, this, 'E_JSON_PARSE');
|
1272
|
+
}
|
1273
|
+
throw e;
|
1274
|
+
}
|
1275
|
+
}
|
1276
|
+
}
|
1277
|
+
|
1278
|
+
return data;
|
1279
|
+
}],
|
1280
|
+
|
1281
|
+
/**
|
1282
|
+
* A timeout in milliseconds to abort a request. If set to 0 (default) a
|
1283
|
+
* timeout is not created.
|
1284
|
+
*/
|
1285
|
+
timeout: 0,
|
1286
|
+
|
1287
|
+
xsrfCookieName: 'XSRF-TOKEN',
|
1288
|
+
xsrfHeaderName: 'X-XSRF-TOKEN',
|
1289
|
+
|
1290
|
+
maxContentLength: -1,
|
1291
|
+
maxBodyLength: -1,
|
1292
|
+
|
1293
|
+
validateStatus: function validateStatus(status) {
|
1294
|
+
return status >= 200 && status < 300;
|
1295
|
+
},
|
1296
|
+
|
1297
|
+
headers: {
|
1298
|
+
common: {
|
1299
|
+
'Accept': 'application/json, text/plain, */*'
|
1300
|
+
}
|
1301
|
+
}
|
1302
|
+
};
|
1303
|
+
|
1304
|
+
utils$1.forEach(['delete', 'get', 'head'], function forEachMethodNoData(method) {
|
1305
|
+
defaults$2.headers[method] = {};
|
1306
|
+
});
|
1307
|
+
|
1308
|
+
utils$1.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) {
|
1309
|
+
defaults$2.headers[method] = utils$1.merge(DEFAULT_CONTENT_TYPE);
|
1310
|
+
});
|
1311
|
+
|
1312
|
+
var defaults_1 = defaults$2;
|
1313
|
+
|
1314
|
+
'use strict';
|
1315
|
+
|
1316
|
+
|
1317
|
+
|
1318
|
+
|
1319
|
+
/**
|
1320
|
+
* Transform the data for a request or a response
|
1321
|
+
*
|
1322
|
+
* @param {Object|String} data The data to be transformed
|
1323
|
+
* @param {Array} headers The headers for the request or response
|
1324
|
+
* @param {Array|Function} fns A single function or Array of functions
|
1325
|
+
* @returns {*} The resulting transformed data
|
1326
|
+
*/
|
1327
|
+
var transformData = function transformData(data, headers, fns) {
|
1328
|
+
var context = this || defaults_1;
|
1329
|
+
/*eslint no-param-reassign:0*/
|
1330
|
+
utils$1.forEach(fns, function transform(fn) {
|
1331
|
+
data = fn.call(context, data, headers);
|
1332
|
+
});
|
1333
|
+
|
1334
|
+
return data;
|
1335
|
+
};
|
1336
|
+
|
1337
|
+
'use strict';
|
1338
|
+
|
1339
|
+
var isCancel = function isCancel(value) {
|
1340
|
+
return !!(value && value.__CANCEL__);
|
1341
|
+
};
|
1342
|
+
|
1343
|
+
'use strict';
|
1344
|
+
|
1345
|
+
|
1346
|
+
|
1347
|
+
|
1348
|
+
|
1349
|
+
|
1350
|
+
|
1351
|
+
/**
|
1352
|
+
* Throws a `Cancel` if cancellation has been requested.
|
1353
|
+
*/
|
1354
|
+
function throwIfCancellationRequested(config) {
|
1355
|
+
if (config.cancelToken) {
|
1356
|
+
config.cancelToken.throwIfRequested();
|
1357
|
+
}
|
1358
|
+
|
1359
|
+
if (config.signal && config.signal.aborted) {
|
1360
|
+
throw new Cancel_1('canceled');
|
1361
|
+
}
|
1362
|
+
}
|
1363
|
+
|
1364
|
+
/**
|
1365
|
+
* Dispatch a request to the server using the configured adapter.
|
1366
|
+
*
|
1367
|
+
* @param {object} config The config that is to be used for the request
|
1368
|
+
* @returns {Promise} The Promise to be fulfilled
|
1369
|
+
*/
|
1370
|
+
var dispatchRequest = function dispatchRequest(config) {
|
1371
|
+
throwIfCancellationRequested(config);
|
1372
|
+
|
1373
|
+
// Ensure headers exist
|
1374
|
+
config.headers = config.headers || {};
|
1375
|
+
|
1376
|
+
// Transform request data
|
1377
|
+
config.data = transformData.call(
|
1378
|
+
config,
|
1379
|
+
config.data,
|
1380
|
+
config.headers,
|
1381
|
+
config.transformRequest
|
1382
|
+
);
|
1383
|
+
|
1384
|
+
// Flatten headers
|
1385
|
+
config.headers = utils$1.merge(
|
1386
|
+
config.headers.common || {},
|
1387
|
+
config.headers[config.method] || {},
|
1388
|
+
config.headers
|
1389
|
+
);
|
1390
|
+
|
1391
|
+
utils$1.forEach(
|
1392
|
+
['delete', 'get', 'head', 'post', 'put', 'patch', 'common'],
|
1393
|
+
function cleanHeaderConfig(method) {
|
1394
|
+
delete config.headers[method];
|
1395
|
+
}
|
1396
|
+
);
|
1397
|
+
|
1398
|
+
var adapter = config.adapter || defaults_1.adapter;
|
1399
|
+
|
1400
|
+
return adapter(config).then(function onAdapterResolution(response) {
|
1401
|
+
throwIfCancellationRequested(config);
|
1402
|
+
|
1403
|
+
// Transform response data
|
1404
|
+
response.data = transformData.call(
|
1405
|
+
config,
|
1406
|
+
response.data,
|
1407
|
+
response.headers,
|
1408
|
+
config.transformResponse
|
1409
|
+
);
|
1410
|
+
|
1411
|
+
return response;
|
1412
|
+
}, function onAdapterRejection(reason) {
|
1413
|
+
if (!isCancel(reason)) {
|
1414
|
+
throwIfCancellationRequested(config);
|
1415
|
+
|
1416
|
+
// Transform response data
|
1417
|
+
if (reason && reason.response) {
|
1418
|
+
reason.response.data = transformData.call(
|
1419
|
+
config,
|
1420
|
+
reason.response.data,
|
1421
|
+
reason.response.headers,
|
1422
|
+
config.transformResponse
|
1423
|
+
);
|
1424
|
+
}
|
1425
|
+
}
|
1426
|
+
|
1427
|
+
return Promise.reject(reason);
|
1428
|
+
});
|
1429
|
+
};
|
1430
|
+
|
1431
|
+
'use strict';
|
1432
|
+
|
1433
|
+
|
1434
|
+
|
1435
|
+
/**
|
1436
|
+
* Config-specific merge-function which creates a new config-object
|
1437
|
+
* by merging two configuration objects together.
|
1438
|
+
*
|
1439
|
+
* @param {Object} config1
|
1440
|
+
* @param {Object} config2
|
1441
|
+
* @returns {Object} New object resulting from merging config2 to config1
|
1442
|
+
*/
|
1443
|
+
var mergeConfig = function mergeConfig(config1, config2) {
|
1444
|
+
// eslint-disable-next-line no-param-reassign
|
1445
|
+
config2 = config2 || {};
|
1446
|
+
var config = {};
|
1447
|
+
|
1448
|
+
function getMergedValue(target, source) {
|
1449
|
+
if (utils$1.isPlainObject(target) && utils$1.isPlainObject(source)) {
|
1450
|
+
return utils$1.merge(target, source);
|
1451
|
+
} else if (utils$1.isPlainObject(source)) {
|
1452
|
+
return utils$1.merge({}, source);
|
1453
|
+
} else if (utils$1.isArray(source)) {
|
1454
|
+
return source.slice();
|
1455
|
+
}
|
1456
|
+
return source;
|
1457
|
+
}
|
1458
|
+
|
1459
|
+
// eslint-disable-next-line consistent-return
|
1460
|
+
function mergeDeepProperties(prop) {
|
1461
|
+
if (!utils$1.isUndefined(config2[prop])) {
|
1462
|
+
return getMergedValue(config1[prop], config2[prop]);
|
1463
|
+
} else if (!utils$1.isUndefined(config1[prop])) {
|
1464
|
+
return getMergedValue(undefined, config1[prop]);
|
1465
|
+
}
|
1466
|
+
}
|
1467
|
+
|
1468
|
+
// eslint-disable-next-line consistent-return
|
1469
|
+
function valueFromConfig2(prop) {
|
1470
|
+
if (!utils$1.isUndefined(config2[prop])) {
|
1471
|
+
return getMergedValue(undefined, config2[prop]);
|
1472
|
+
}
|
1473
|
+
}
|
1474
|
+
|
1475
|
+
// eslint-disable-next-line consistent-return
|
1476
|
+
function defaultToConfig2(prop) {
|
1477
|
+
if (!utils$1.isUndefined(config2[prop])) {
|
1478
|
+
return getMergedValue(undefined, config2[prop]);
|
1479
|
+
} else if (!utils$1.isUndefined(config1[prop])) {
|
1480
|
+
return getMergedValue(undefined, config1[prop]);
|
1481
|
+
}
|
1482
|
+
}
|
1483
|
+
|
1484
|
+
// eslint-disable-next-line consistent-return
|
1485
|
+
function mergeDirectKeys(prop) {
|
1486
|
+
if (prop in config2) {
|
1487
|
+
return getMergedValue(config1[prop], config2[prop]);
|
1488
|
+
} else if (prop in config1) {
|
1489
|
+
return getMergedValue(undefined, config1[prop]);
|
1490
|
+
}
|
1491
|
+
}
|
1492
|
+
|
1493
|
+
var mergeMap = {
|
1494
|
+
'url': valueFromConfig2,
|
1495
|
+
'method': valueFromConfig2,
|
1496
|
+
'data': valueFromConfig2,
|
1497
|
+
'baseURL': defaultToConfig2,
|
1498
|
+
'transformRequest': defaultToConfig2,
|
1499
|
+
'transformResponse': defaultToConfig2,
|
1500
|
+
'paramsSerializer': defaultToConfig2,
|
1501
|
+
'timeout': defaultToConfig2,
|
1502
|
+
'timeoutMessage': defaultToConfig2,
|
1503
|
+
'withCredentials': defaultToConfig2,
|
1504
|
+
'adapter': defaultToConfig2,
|
1505
|
+
'responseType': defaultToConfig2,
|
1506
|
+
'xsrfCookieName': defaultToConfig2,
|
1507
|
+
'xsrfHeaderName': defaultToConfig2,
|
1508
|
+
'onUploadProgress': defaultToConfig2,
|
1509
|
+
'onDownloadProgress': defaultToConfig2,
|
1510
|
+
'decompress': defaultToConfig2,
|
1511
|
+
'maxContentLength': defaultToConfig2,
|
1512
|
+
'maxBodyLength': defaultToConfig2,
|
1513
|
+
'transport': defaultToConfig2,
|
1514
|
+
'httpAgent': defaultToConfig2,
|
1515
|
+
'httpsAgent': defaultToConfig2,
|
1516
|
+
'cancelToken': defaultToConfig2,
|
1517
|
+
'socketPath': defaultToConfig2,
|
1518
|
+
'responseEncoding': defaultToConfig2,
|
1519
|
+
'validateStatus': mergeDirectKeys
|
1520
|
+
};
|
1521
|
+
|
1522
|
+
utils$1.forEach(Object.keys(config1).concat(Object.keys(config2)), function computeConfigValue(prop) {
|
1523
|
+
var merge = mergeMap[prop] || mergeDeepProperties;
|
1524
|
+
var configValue = merge(prop);
|
1525
|
+
(utils$1.isUndefined(configValue) && merge !== mergeDirectKeys) || (config[prop] = configValue);
|
1526
|
+
});
|
1527
|
+
|
1528
|
+
return config;
|
1529
|
+
};
|
1530
|
+
|
1531
|
+
var data = {
|
1532
|
+
"version": "0.26.1"
|
1533
|
+
};
|
1534
|
+
|
1535
|
+
'use strict';
|
1536
|
+
|
1537
|
+
var VERSION = data.version;
|
1538
|
+
|
1539
|
+
var validators$1 = {};
|
1540
|
+
|
1541
|
+
// eslint-disable-next-line func-names
|
1542
|
+
['object', 'boolean', 'number', 'function', 'string', 'symbol'].forEach(function(type, i) {
|
1543
|
+
validators$1[type] = function validator(thing) {
|
1544
|
+
return typeof thing === type || 'a' + (i < 1 ? 'n ' : ' ') + type;
|
1545
|
+
};
|
1546
|
+
});
|
1547
|
+
|
1548
|
+
var deprecatedWarnings = {};
|
1549
|
+
|
1550
|
+
/**
|
1551
|
+
* Transitional option validator
|
1552
|
+
* @param {function|boolean?} validator - set to false if the transitional option has been removed
|
1553
|
+
* @param {string?} version - deprecated version / removed since version
|
1554
|
+
* @param {string?} message - some message with additional info
|
1555
|
+
* @returns {function}
|
1556
|
+
*/
|
1557
|
+
validators$1.transitional = function transitional(validator, version, message) {
|
1558
|
+
function formatMessage(opt, desc) {
|
1559
|
+
return '[Axios v' + VERSION + '] Transitional option \'' + opt + '\'' + desc + (message ? '. ' + message : '');
|
1560
|
+
}
|
1561
|
+
|
1562
|
+
// eslint-disable-next-line func-names
|
1563
|
+
return function(value, opt, opts) {
|
1564
|
+
if (validator === false) {
|
1565
|
+
throw new Error(formatMessage(opt, ' has been removed' + (version ? ' in ' + version : '')));
|
1566
|
+
}
|
1567
|
+
|
1568
|
+
if (version && !deprecatedWarnings[opt]) {
|
1569
|
+
deprecatedWarnings[opt] = true;
|
1570
|
+
// eslint-disable-next-line no-console
|
1571
|
+
console.warn(
|
1572
|
+
formatMessage(
|
1573
|
+
opt,
|
1574
|
+
' has been deprecated since v' + version + ' and will be removed in the near future'
|
1575
|
+
)
|
1576
|
+
);
|
1577
|
+
}
|
1578
|
+
|
1579
|
+
return validator ? validator(value, opt, opts) : true;
|
1580
|
+
};
|
1581
|
+
};
|
1582
|
+
|
1583
|
+
/**
|
1584
|
+
* Assert object's properties type
|
1585
|
+
* @param {object} options
|
1586
|
+
* @param {object} schema
|
1587
|
+
* @param {boolean?} allowUnknown
|
1588
|
+
*/
|
1589
|
+
|
1590
|
+
function assertOptions(options, schema, allowUnknown) {
|
1591
|
+
if (typeof options !== 'object') {
|
1592
|
+
throw new TypeError('options must be an object');
|
1593
|
+
}
|
1594
|
+
var keys = Object.keys(options);
|
1595
|
+
var i = keys.length;
|
1596
|
+
while (i-- > 0) {
|
1597
|
+
var opt = keys[i];
|
1598
|
+
var validator = schema[opt];
|
1599
|
+
if (validator) {
|
1600
|
+
var value = options[opt];
|
1601
|
+
var result = value === undefined || validator(value, opt, options);
|
1602
|
+
if (result !== true) {
|
1603
|
+
throw new TypeError('option ' + opt + ' must be ' + result);
|
1604
|
+
}
|
1605
|
+
continue;
|
1606
|
+
}
|
1607
|
+
if (allowUnknown !== true) {
|
1608
|
+
throw Error('Unknown option ' + opt);
|
1609
|
+
}
|
1610
|
+
}
|
1611
|
+
}
|
1612
|
+
|
1613
|
+
var validator = {
|
1614
|
+
assertOptions: assertOptions,
|
1615
|
+
validators: validators$1
|
1616
|
+
};
|
1617
|
+
|
1618
|
+
'use strict';
|
1619
|
+
|
1620
|
+
|
1621
|
+
|
1622
|
+
|
1623
|
+
|
1624
|
+
|
1625
|
+
|
1626
|
+
|
1627
|
+
var validators = validator.validators;
|
1628
|
+
/**
|
1629
|
+
* Create a new instance of Axios
|
1630
|
+
*
|
1631
|
+
* @param {Object} instanceConfig The default config for the instance
|
1632
|
+
*/
|
1633
|
+
function Axios(instanceConfig) {
|
1634
|
+
this.defaults = instanceConfig;
|
1635
|
+
this.interceptors = {
|
1636
|
+
request: new InterceptorManager_1(),
|
1637
|
+
response: new InterceptorManager_1()
|
1638
|
+
};
|
1639
|
+
}
|
1640
|
+
|
1641
|
+
/**
|
1642
|
+
* Dispatch a request
|
1643
|
+
*
|
1644
|
+
* @param {Object} config The config specific for this request (merged with this.defaults)
|
1645
|
+
*/
|
1646
|
+
Axios.prototype.request = function request(configOrUrl, config) {
|
1647
|
+
/*eslint no-param-reassign:0*/
|
1648
|
+
// Allow for axios('example/url'[, config]) a la fetch API
|
1649
|
+
if (typeof configOrUrl === 'string') {
|
1650
|
+
config = config || {};
|
1651
|
+
config.url = configOrUrl;
|
1652
|
+
} else {
|
1653
|
+
config = configOrUrl || {};
|
1654
|
+
}
|
1655
|
+
|
1656
|
+
config = mergeConfig(this.defaults, config);
|
1657
|
+
|
1658
|
+
// Set config.method
|
1659
|
+
if (config.method) {
|
1660
|
+
config.method = config.method.toLowerCase();
|
1661
|
+
} else if (this.defaults.method) {
|
1662
|
+
config.method = this.defaults.method.toLowerCase();
|
1663
|
+
} else {
|
1664
|
+
config.method = 'get';
|
1665
|
+
}
|
1666
|
+
|
1667
|
+
var transitional = config.transitional;
|
1668
|
+
|
1669
|
+
if (transitional !== undefined) {
|
1670
|
+
validator.assertOptions(transitional, {
|
1671
|
+
silentJSONParsing: validators.transitional(validators.boolean),
|
1672
|
+
forcedJSONParsing: validators.transitional(validators.boolean),
|
1673
|
+
clarifyTimeoutError: validators.transitional(validators.boolean)
|
1674
|
+
}, false);
|
1675
|
+
}
|
1676
|
+
|
1677
|
+
// filter out skipped interceptors
|
1678
|
+
var requestInterceptorChain = [];
|
1679
|
+
var synchronousRequestInterceptors = true;
|
1680
|
+
this.interceptors.request.forEach(function unshiftRequestInterceptors(interceptor) {
|
1681
|
+
if (typeof interceptor.runWhen === 'function' && interceptor.runWhen(config) === false) {
|
1682
|
+
return;
|
1683
|
+
}
|
1684
|
+
|
1685
|
+
synchronousRequestInterceptors = synchronousRequestInterceptors && interceptor.synchronous;
|
1686
|
+
|
1687
|
+
requestInterceptorChain.unshift(interceptor.fulfilled, interceptor.rejected);
|
1688
|
+
});
|
1689
|
+
|
1690
|
+
var responseInterceptorChain = [];
|
1691
|
+
this.interceptors.response.forEach(function pushResponseInterceptors(interceptor) {
|
1692
|
+
responseInterceptorChain.push(interceptor.fulfilled, interceptor.rejected);
|
1693
|
+
});
|
1694
|
+
|
1695
|
+
var promise;
|
1696
|
+
|
1697
|
+
if (!synchronousRequestInterceptors) {
|
1698
|
+
var chain = [dispatchRequest, undefined];
|
1699
|
+
|
1700
|
+
Array.prototype.unshift.apply(chain, requestInterceptorChain);
|
1701
|
+
chain = chain.concat(responseInterceptorChain);
|
1702
|
+
|
1703
|
+
promise = Promise.resolve(config);
|
1704
|
+
while (chain.length) {
|
1705
|
+
promise = promise.then(chain.shift(), chain.shift());
|
1706
|
+
}
|
1707
|
+
|
1708
|
+
return promise;
|
1709
|
+
}
|
1710
|
+
|
1711
|
+
|
1712
|
+
var newConfig = config;
|
1713
|
+
while (requestInterceptorChain.length) {
|
1714
|
+
var onFulfilled = requestInterceptorChain.shift();
|
1715
|
+
var onRejected = requestInterceptorChain.shift();
|
1716
|
+
try {
|
1717
|
+
newConfig = onFulfilled(newConfig);
|
1718
|
+
} catch (error) {
|
1719
|
+
onRejected(error);
|
1720
|
+
break;
|
1721
|
+
}
|
1722
|
+
}
|
1723
|
+
|
1724
|
+
try {
|
1725
|
+
promise = dispatchRequest(newConfig);
|
1726
|
+
} catch (error) {
|
1727
|
+
return Promise.reject(error);
|
1728
|
+
}
|
1729
|
+
|
1730
|
+
while (responseInterceptorChain.length) {
|
1731
|
+
promise = promise.then(responseInterceptorChain.shift(), responseInterceptorChain.shift());
|
1732
|
+
}
|
1733
|
+
|
1734
|
+
return promise;
|
1735
|
+
};
|
1736
|
+
|
1737
|
+
Axios.prototype.getUri = function getUri(config) {
|
1738
|
+
config = mergeConfig(this.defaults, config);
|
1739
|
+
return buildURL(config.url, config.params, config.paramsSerializer).replace(/^\?/, '');
|
1740
|
+
};
|
1741
|
+
|
1742
|
+
// Provide aliases for supported request methods
|
1743
|
+
utils$1.forEach(['delete', 'get', 'head', 'options'], function forEachMethodNoData(method) {
|
1744
|
+
/*eslint func-names:0*/
|
1745
|
+
Axios.prototype[method] = function(url, config) {
|
1746
|
+
return this.request(mergeConfig(config || {}, {
|
1747
|
+
method: method,
|
1748
|
+
url: url,
|
1749
|
+
data: (config || {}).data
|
1750
|
+
}));
|
1751
|
+
};
|
1752
|
+
});
|
1753
|
+
|
1754
|
+
utils$1.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) {
|
1755
|
+
/*eslint func-names:0*/
|
1756
|
+
Axios.prototype[method] = function(url, data, config) {
|
1757
|
+
return this.request(mergeConfig(config || {}, {
|
1758
|
+
method: method,
|
1759
|
+
url: url,
|
1760
|
+
data: data
|
1761
|
+
}));
|
1762
|
+
};
|
1763
|
+
});
|
1764
|
+
|
1765
|
+
var Axios_1 = Axios;
|
1766
|
+
|
1767
|
+
'use strict';
|
1768
|
+
|
1769
|
+
|
1770
|
+
|
1771
|
+
/**
|
1772
|
+
* A `CancelToken` is an object that can be used to request cancellation of an operation.
|
1773
|
+
*
|
1774
|
+
* @class
|
1775
|
+
* @param {Function} executor The executor function.
|
1776
|
+
*/
|
1777
|
+
function CancelToken(executor) {
|
1778
|
+
if (typeof executor !== 'function') {
|
1779
|
+
throw new TypeError('executor must be a function.');
|
1780
|
+
}
|
1781
|
+
|
1782
|
+
var resolvePromise;
|
1783
|
+
|
1784
|
+
this.promise = new Promise(function promiseExecutor(resolve) {
|
1785
|
+
resolvePromise = resolve;
|
1786
|
+
});
|
1787
|
+
|
1788
|
+
var token = this;
|
1789
|
+
|
1790
|
+
// eslint-disable-next-line func-names
|
1791
|
+
this.promise.then(function(cancel) {
|
1792
|
+
if (!token._listeners) return;
|
1793
|
+
|
1794
|
+
var i;
|
1795
|
+
var l = token._listeners.length;
|
1796
|
+
|
1797
|
+
for (i = 0; i < l; i++) {
|
1798
|
+
token._listeners[i](cancel);
|
1799
|
+
}
|
1800
|
+
token._listeners = null;
|
1801
|
+
});
|
1802
|
+
|
1803
|
+
// eslint-disable-next-line func-names
|
1804
|
+
this.promise.then = function(onfulfilled) {
|
1805
|
+
var _resolve;
|
1806
|
+
// eslint-disable-next-line func-names
|
1807
|
+
var promise = new Promise(function(resolve) {
|
1808
|
+
token.subscribe(resolve);
|
1809
|
+
_resolve = resolve;
|
1810
|
+
}).then(onfulfilled);
|
1811
|
+
|
1812
|
+
promise.cancel = function reject() {
|
1813
|
+
token.unsubscribe(_resolve);
|
1814
|
+
};
|
1815
|
+
|
1816
|
+
return promise;
|
1817
|
+
};
|
1818
|
+
|
1819
|
+
executor(function cancel(message) {
|
1820
|
+
if (token.reason) {
|
1821
|
+
// Cancellation has already been requested
|
1822
|
+
return;
|
1823
|
+
}
|
1824
|
+
|
1825
|
+
token.reason = new Cancel_1(message);
|
1826
|
+
resolvePromise(token.reason);
|
1827
|
+
});
|
1828
|
+
}
|
1829
|
+
|
1830
|
+
/**
|
1831
|
+
* Throws a `Cancel` if cancellation has been requested.
|
1832
|
+
*/
|
1833
|
+
CancelToken.prototype.throwIfRequested = function throwIfRequested() {
|
1834
|
+
if (this.reason) {
|
1835
|
+
throw this.reason;
|
1836
|
+
}
|
1837
|
+
};
|
1838
|
+
|
1839
|
+
/**
|
1840
|
+
* Subscribe to the cancel signal
|
1841
|
+
*/
|
1842
|
+
|
1843
|
+
CancelToken.prototype.subscribe = function subscribe(listener) {
|
1844
|
+
if (this.reason) {
|
1845
|
+
listener(this.reason);
|
1846
|
+
return;
|
1847
|
+
}
|
1848
|
+
|
1849
|
+
if (this._listeners) {
|
1850
|
+
this._listeners.push(listener);
|
1851
|
+
} else {
|
1852
|
+
this._listeners = [listener];
|
1853
|
+
}
|
1854
|
+
};
|
1855
|
+
|
1856
|
+
/**
|
1857
|
+
* Unsubscribe from the cancel signal
|
1858
|
+
*/
|
1859
|
+
|
1860
|
+
CancelToken.prototype.unsubscribe = function unsubscribe(listener) {
|
1861
|
+
if (!this._listeners) {
|
1862
|
+
return;
|
1863
|
+
}
|
1864
|
+
var index = this._listeners.indexOf(listener);
|
1865
|
+
if (index !== -1) {
|
1866
|
+
this._listeners.splice(index, 1);
|
1867
|
+
}
|
1868
|
+
};
|
1869
|
+
|
1870
|
+
/**
|
1871
|
+
* Returns an object that contains a new `CancelToken` and a function that, when called,
|
1872
|
+
* cancels the `CancelToken`.
|
1873
|
+
*/
|
1874
|
+
CancelToken.source = function source() {
|
1875
|
+
var cancel;
|
1876
|
+
var token = new CancelToken(function executor(c) {
|
1877
|
+
cancel = c;
|
1878
|
+
});
|
1879
|
+
return {
|
1880
|
+
token: token,
|
1881
|
+
cancel: cancel
|
1882
|
+
};
|
1883
|
+
};
|
1884
|
+
|
1885
|
+
var CancelToken_1 = CancelToken;
|
1886
|
+
|
1887
|
+
'use strict';
|
1888
|
+
|
1889
|
+
/**
|
1890
|
+
* Syntactic sugar for invoking a function and expanding an array for arguments.
|
1891
|
+
*
|
1892
|
+
* Common use case would be to use `Function.prototype.apply`.
|
1893
|
+
*
|
1894
|
+
* ```js
|
1895
|
+
* function f(x, y, z) {}
|
1896
|
+
* var args = [1, 2, 3];
|
1897
|
+
* f.apply(null, args);
|
1898
|
+
* ```
|
1899
|
+
*
|
1900
|
+
* With `spread` this example can be re-written.
|
1901
|
+
*
|
1902
|
+
* ```js
|
1903
|
+
* spread(function(x, y, z) {})([1, 2, 3]);
|
1904
|
+
* ```
|
1905
|
+
*
|
1906
|
+
* @param {Function} callback
|
1907
|
+
* @returns {Function}
|
1908
|
+
*/
|
1909
|
+
var spread = function spread(callback) {
|
1910
|
+
return function wrap(arr) {
|
1911
|
+
return callback.apply(null, arr);
|
1912
|
+
};
|
1913
|
+
};
|
1914
|
+
|
1915
|
+
'use strict';
|
1916
|
+
|
1917
|
+
|
1918
|
+
|
1919
|
+
/**
|
1920
|
+
* Determines whether the payload is an error thrown by Axios
|
1921
|
+
*
|
1922
|
+
* @param {*} payload The value to test
|
1923
|
+
* @returns {boolean} True if the payload is an error thrown by Axios, otherwise false
|
1924
|
+
*/
|
1925
|
+
var isAxiosError = function isAxiosError(payload) {
|
1926
|
+
return utils$1.isObject(payload) && (payload.isAxiosError === true);
|
1927
|
+
};
|
1928
|
+
|
1929
|
+
'use strict';
|
1930
|
+
|
1931
|
+
|
1932
|
+
|
1933
|
+
|
1934
|
+
|
1935
|
+
|
1936
|
+
|
1937
|
+
/**
|
1938
|
+
* Create an instance of Axios
|
1939
|
+
*
|
1940
|
+
* @param {Object} defaultConfig The default config for the instance
|
1941
|
+
* @return {Axios} A new instance of Axios
|
1942
|
+
*/
|
1943
|
+
function createInstance(defaultConfig) {
|
1944
|
+
var context = new Axios_1(defaultConfig);
|
1945
|
+
var instance = bind(Axios_1.prototype.request, context);
|
1946
|
+
|
1947
|
+
// Copy axios.prototype to instance
|
1948
|
+
utils$1.extend(instance, Axios_1.prototype, context);
|
1949
|
+
|
1950
|
+
// Copy context to instance
|
1951
|
+
utils$1.extend(instance, context);
|
1952
|
+
|
1953
|
+
// Factory for creating new instances
|
1954
|
+
instance.create = function create(instanceConfig) {
|
1955
|
+
return createInstance(mergeConfig(defaultConfig, instanceConfig));
|
1956
|
+
};
|
1957
|
+
|
1958
|
+
return instance;
|
1959
|
+
}
|
1960
|
+
|
1961
|
+
// Create the default instance to be exported
|
1962
|
+
var axios$1 = createInstance(defaults_1);
|
1963
|
+
|
1964
|
+
// Expose Axios class to allow class inheritance
|
1965
|
+
axios$1.Axios = Axios_1;
|
1966
|
+
|
1967
|
+
// Expose Cancel & CancelToken
|
1968
|
+
axios$1.Cancel = Cancel_1;
|
1969
|
+
axios$1.CancelToken = CancelToken_1;
|
1970
|
+
axios$1.isCancel = isCancel;
|
1971
|
+
axios$1.VERSION = data.version;
|
1972
|
+
|
1973
|
+
// Expose all/spread
|
1974
|
+
axios$1.all = function all(promises) {
|
1975
|
+
return Promise.all(promises);
|
1976
|
+
};
|
1977
|
+
axios$1.spread = spread;
|
1978
|
+
|
1979
|
+
// Expose isAxiosError
|
1980
|
+
axios$1.isAxiosError = isAxiosError;
|
1981
|
+
|
1982
|
+
var axios_1 = axios$1;
|
1983
|
+
|
1984
|
+
// Allow use of default import syntax in TypeScript
|
1985
|
+
var _default = axios$1;
|
1986
|
+
axios_1.default = _default;
|
1987
|
+
|
1988
|
+
var axios = axios_1;
|
1989
|
+
|
1990
|
+
'use strict';
|
1991
|
+
|
1992
|
+
/* eslint complexity: [2, 18], max-statements: [2, 33] */
|
1993
|
+
var shams = function hasSymbols() {
|
1994
|
+
if (typeof Symbol !== 'function' || typeof Object.getOwnPropertySymbols !== 'function') { return false; }
|
1995
|
+
if (typeof Symbol.iterator === 'symbol') { return true; }
|
1996
|
+
|
1997
|
+
var obj = {};
|
1998
|
+
var sym = Symbol('test');
|
1999
|
+
var symObj = Object(sym);
|
2000
|
+
if (typeof sym === 'string') { return false; }
|
2001
|
+
|
2002
|
+
if (Object.prototype.toString.call(sym) !== '[object Symbol]') { return false; }
|
2003
|
+
if (Object.prototype.toString.call(symObj) !== '[object Symbol]') { return false; }
|
2004
|
+
|
2005
|
+
// temp disabled per https://github.com/ljharb/object.assign/issues/17
|
2006
|
+
// if (sym instanceof Symbol) { return false; }
|
2007
|
+
// temp disabled per https://github.com/WebReflection/get-own-property-symbols/issues/4
|
2008
|
+
// if (!(symObj instanceof Symbol)) { return false; }
|
2009
|
+
|
2010
|
+
// if (typeof Symbol.prototype.toString !== 'function') { return false; }
|
2011
|
+
// if (String(sym) !== Symbol.prototype.toString.call(sym)) { return false; }
|
2012
|
+
|
2013
|
+
var symVal = 42;
|
2014
|
+
obj[sym] = symVal;
|
2015
|
+
for (sym in obj) { return false; } // eslint-disable-line no-restricted-syntax, no-unreachable-loop
|
2016
|
+
if (typeof Object.keys === 'function' && Object.keys(obj).length !== 0) { return false; }
|
2017
|
+
|
2018
|
+
if (typeof Object.getOwnPropertyNames === 'function' && Object.getOwnPropertyNames(obj).length !== 0) { return false; }
|
2019
|
+
|
2020
|
+
var syms = Object.getOwnPropertySymbols(obj);
|
2021
|
+
if (syms.length !== 1 || syms[0] !== sym) { return false; }
|
2022
|
+
|
2023
|
+
if (!Object.prototype.propertyIsEnumerable.call(obj, sym)) { return false; }
|
2024
|
+
|
2025
|
+
if (typeof Object.getOwnPropertyDescriptor === 'function') {
|
2026
|
+
var descriptor = Object.getOwnPropertyDescriptor(obj, sym);
|
2027
|
+
if (descriptor.value !== symVal || descriptor.enumerable !== true) { return false; }
|
2028
|
+
}
|
2029
|
+
|
2030
|
+
return true;
|
2031
|
+
};
|
2032
|
+
|
2033
|
+
'use strict';
|
2034
|
+
|
2035
|
+
var origSymbol = typeof Symbol !== 'undefined' && Symbol;
|
2036
|
+
|
2037
|
+
|
2038
|
+
var hasSymbols$1 = function hasNativeSymbols() {
|
2039
|
+
if (typeof origSymbol !== 'function') { return false; }
|
2040
|
+
if (typeof Symbol !== 'function') { return false; }
|
2041
|
+
if (typeof origSymbol('foo') !== 'symbol') { return false; }
|
2042
|
+
if (typeof Symbol('bar') !== 'symbol') { return false; }
|
2043
|
+
|
2044
|
+
return shams();
|
2045
|
+
};
|
2046
|
+
|
2047
|
+
'use strict';
|
2048
|
+
|
2049
|
+
/* eslint no-invalid-this: 1 */
|
2050
|
+
|
2051
|
+
var ERROR_MESSAGE = 'Function.prototype.bind called on incompatible ';
|
2052
|
+
var slice = Array.prototype.slice;
|
2053
|
+
var toStr$1 = Object.prototype.toString;
|
2054
|
+
var funcType = '[object Function]';
|
2055
|
+
|
2056
|
+
var implementation = function bind(that) {
|
2057
|
+
var target = this;
|
2058
|
+
if (typeof target !== 'function' || toStr$1.call(target) !== funcType) {
|
2059
|
+
throw new TypeError(ERROR_MESSAGE + target);
|
2060
|
+
}
|
2061
|
+
var args = slice.call(arguments, 1);
|
2062
|
+
|
2063
|
+
var bound;
|
2064
|
+
var binder = function () {
|
2065
|
+
if (this instanceof bound) {
|
2066
|
+
var result = target.apply(
|
2067
|
+
this,
|
2068
|
+
args.concat(slice.call(arguments))
|
2069
|
+
);
|
2070
|
+
if (Object(result) === result) {
|
2071
|
+
return result;
|
2072
|
+
}
|
2073
|
+
return this;
|
2074
|
+
} else {
|
2075
|
+
return target.apply(
|
2076
|
+
that,
|
2077
|
+
args.concat(slice.call(arguments))
|
2078
|
+
);
|
2079
|
+
}
|
2080
|
+
};
|
2081
|
+
|
2082
|
+
var boundLength = Math.max(0, target.length - args.length);
|
2083
|
+
var boundArgs = [];
|
2084
|
+
for (var i = 0; i < boundLength; i++) {
|
2085
|
+
boundArgs.push('$' + i);
|
2086
|
+
}
|
2087
|
+
|
2088
|
+
bound = Function('binder', 'return function (' + boundArgs.join(',') + '){ return binder.apply(this,arguments); }')(binder);
|
2089
|
+
|
2090
|
+
if (target.prototype) {
|
2091
|
+
var Empty = function Empty() {};
|
2092
|
+
Empty.prototype = target.prototype;
|
2093
|
+
bound.prototype = new Empty();
|
2094
|
+
Empty.prototype = null;
|
2095
|
+
}
|
2096
|
+
|
2097
|
+
return bound;
|
2098
|
+
};
|
2099
|
+
|
2100
|
+
'use strict';
|
2101
|
+
|
2102
|
+
|
2103
|
+
|
2104
|
+
var functionBind = Function.prototype.bind || implementation;
|
2105
|
+
|
2106
|
+
'use strict';
|
2107
|
+
|
2108
|
+
|
2109
|
+
|
2110
|
+
var src = functionBind.call(Function.call, Object.prototype.hasOwnProperty);
|
2111
|
+
|
2112
|
+
'use strict';
|
2113
|
+
|
2114
|
+
var undefined$1;
|
2115
|
+
|
2116
|
+
var $SyntaxError = SyntaxError;
|
2117
|
+
var $Function = Function;
|
2118
|
+
var $TypeError$1 = TypeError;
|
2119
|
+
|
2120
|
+
// eslint-disable-next-line consistent-return
|
2121
|
+
var getEvalledConstructor = function (expressionSyntax) {
|
2122
|
+
try {
|
2123
|
+
return $Function('"use strict"; return (' + expressionSyntax + ').constructor;')();
|
2124
|
+
} catch (e) {}
|
2125
|
+
};
|
2126
|
+
|
2127
|
+
var $gOPD = Object.getOwnPropertyDescriptor;
|
2128
|
+
if ($gOPD) {
|
2129
|
+
try {
|
2130
|
+
$gOPD({}, '');
|
2131
|
+
} catch (e) {
|
2132
|
+
$gOPD = null; // this is IE 8, which has a broken gOPD
|
2133
|
+
}
|
2134
|
+
}
|
2135
|
+
|
2136
|
+
var throwTypeError = function () {
|
2137
|
+
throw new $TypeError$1();
|
2138
|
+
};
|
2139
|
+
var ThrowTypeError = $gOPD
|
2140
|
+
? (function () {
|
2141
|
+
try {
|
2142
|
+
// eslint-disable-next-line no-unused-expressions, no-caller, no-restricted-properties
|
2143
|
+
arguments.callee; // IE 8 does not throw here
|
2144
|
+
return throwTypeError;
|
2145
|
+
} catch (calleeThrows) {
|
2146
|
+
try {
|
2147
|
+
// IE 8 throws on Object.getOwnPropertyDescriptor(arguments, '')
|
2148
|
+
return $gOPD(arguments, 'callee').get;
|
2149
|
+
} catch (gOPDthrows) {
|
2150
|
+
return throwTypeError;
|
2151
|
+
}
|
2152
|
+
}
|
2153
|
+
}())
|
2154
|
+
: throwTypeError;
|
2155
|
+
|
2156
|
+
var hasSymbols = hasSymbols$1();
|
2157
|
+
|
2158
|
+
var getProto = Object.getPrototypeOf || function (x) { return x.__proto__; }; // eslint-disable-line no-proto
|
2159
|
+
|
2160
|
+
var needsEval = {};
|
2161
|
+
|
2162
|
+
var TypedArray = typeof Uint8Array === 'undefined' ? undefined$1 : getProto(Uint8Array);
|
2163
|
+
|
2164
|
+
var INTRINSICS = {
|
2165
|
+
'%AggregateError%': typeof AggregateError === 'undefined' ? undefined$1 : AggregateError,
|
2166
|
+
'%Array%': Array,
|
2167
|
+
'%ArrayBuffer%': typeof ArrayBuffer === 'undefined' ? undefined$1 : ArrayBuffer,
|
2168
|
+
'%ArrayIteratorPrototype%': hasSymbols ? getProto([][Symbol.iterator]()) : undefined$1,
|
2169
|
+
'%AsyncFromSyncIteratorPrototype%': undefined$1,
|
2170
|
+
'%AsyncFunction%': needsEval,
|
2171
|
+
'%AsyncGenerator%': needsEval,
|
2172
|
+
'%AsyncGeneratorFunction%': needsEval,
|
2173
|
+
'%AsyncIteratorPrototype%': needsEval,
|
2174
|
+
'%Atomics%': typeof Atomics === 'undefined' ? undefined$1 : Atomics,
|
2175
|
+
'%BigInt%': typeof BigInt === 'undefined' ? undefined$1 : BigInt,
|
2176
|
+
'%Boolean%': Boolean,
|
2177
|
+
'%DataView%': typeof DataView === 'undefined' ? undefined$1 : DataView,
|
2178
|
+
'%Date%': Date,
|
2179
|
+
'%decodeURI%': decodeURI,
|
2180
|
+
'%decodeURIComponent%': decodeURIComponent,
|
2181
|
+
'%encodeURI%': encodeURI,
|
2182
|
+
'%encodeURIComponent%': encodeURIComponent,
|
2183
|
+
'%Error%': Error,
|
2184
|
+
'%eval%': eval, // eslint-disable-line no-eval
|
2185
|
+
'%EvalError%': EvalError,
|
2186
|
+
'%Float32Array%': typeof Float32Array === 'undefined' ? undefined$1 : Float32Array,
|
2187
|
+
'%Float64Array%': typeof Float64Array === 'undefined' ? undefined$1 : Float64Array,
|
2188
|
+
'%FinalizationRegistry%': typeof FinalizationRegistry === 'undefined' ? undefined$1 : FinalizationRegistry,
|
2189
|
+
'%Function%': $Function,
|
2190
|
+
'%GeneratorFunction%': needsEval,
|
2191
|
+
'%Int8Array%': typeof Int8Array === 'undefined' ? undefined$1 : Int8Array,
|
2192
|
+
'%Int16Array%': typeof Int16Array === 'undefined' ? undefined$1 : Int16Array,
|
2193
|
+
'%Int32Array%': typeof Int32Array === 'undefined' ? undefined$1 : Int32Array,
|
2194
|
+
'%isFinite%': isFinite,
|
2195
|
+
'%isNaN%': isNaN,
|
2196
|
+
'%IteratorPrototype%': hasSymbols ? getProto(getProto([][Symbol.iterator]())) : undefined$1,
|
2197
|
+
'%JSON%': typeof JSON === 'object' ? JSON : undefined$1,
|
2198
|
+
'%Map%': typeof Map === 'undefined' ? undefined$1 : Map,
|
2199
|
+
'%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols ? undefined$1 : getProto(new Map()[Symbol.iterator]()),
|
2200
|
+
'%Math%': Math,
|
2201
|
+
'%Number%': Number,
|
2202
|
+
'%Object%': Object,
|
2203
|
+
'%parseFloat%': parseFloat,
|
2204
|
+
'%parseInt%': parseInt,
|
2205
|
+
'%Promise%': typeof Promise === 'undefined' ? undefined$1 : Promise,
|
2206
|
+
'%Proxy%': typeof Proxy === 'undefined' ? undefined$1 : Proxy,
|
2207
|
+
'%RangeError%': RangeError,
|
2208
|
+
'%ReferenceError%': ReferenceError,
|
2209
|
+
'%Reflect%': typeof Reflect === 'undefined' ? undefined$1 : Reflect,
|
2210
|
+
'%RegExp%': RegExp,
|
2211
|
+
'%Set%': typeof Set === 'undefined' ? undefined$1 : Set,
|
2212
|
+
'%SetIteratorPrototype%': typeof Set === 'undefined' || !hasSymbols ? undefined$1 : getProto(new Set()[Symbol.iterator]()),
|
2213
|
+
'%SharedArrayBuffer%': typeof SharedArrayBuffer === 'undefined' ? undefined$1 : SharedArrayBuffer,
|
2214
|
+
'%String%': String,
|
2215
|
+
'%StringIteratorPrototype%': hasSymbols ? getProto(''[Symbol.iterator]()) : undefined$1,
|
2216
|
+
'%Symbol%': hasSymbols ? Symbol : undefined$1,
|
2217
|
+
'%SyntaxError%': $SyntaxError,
|
2218
|
+
'%ThrowTypeError%': ThrowTypeError,
|
2219
|
+
'%TypedArray%': TypedArray,
|
2220
|
+
'%TypeError%': $TypeError$1,
|
2221
|
+
'%Uint8Array%': typeof Uint8Array === 'undefined' ? undefined$1 : Uint8Array,
|
2222
|
+
'%Uint8ClampedArray%': typeof Uint8ClampedArray === 'undefined' ? undefined$1 : Uint8ClampedArray,
|
2223
|
+
'%Uint16Array%': typeof Uint16Array === 'undefined' ? undefined$1 : Uint16Array,
|
2224
|
+
'%Uint32Array%': typeof Uint32Array === 'undefined' ? undefined$1 : Uint32Array,
|
2225
|
+
'%URIError%': URIError,
|
2226
|
+
'%WeakMap%': typeof WeakMap === 'undefined' ? undefined$1 : WeakMap,
|
2227
|
+
'%WeakRef%': typeof WeakRef === 'undefined' ? undefined$1 : WeakRef,
|
2228
|
+
'%WeakSet%': typeof WeakSet === 'undefined' ? undefined$1 : WeakSet
|
2229
|
+
};
|
2230
|
+
|
2231
|
+
var doEval = function doEval(name) {
|
2232
|
+
var value;
|
2233
|
+
if (name === '%AsyncFunction%') {
|
2234
|
+
value = getEvalledConstructor('async function () {}');
|
2235
|
+
} else if (name === '%GeneratorFunction%') {
|
2236
|
+
value = getEvalledConstructor('function* () {}');
|
2237
|
+
} else if (name === '%AsyncGeneratorFunction%') {
|
2238
|
+
value = getEvalledConstructor('async function* () {}');
|
2239
|
+
} else if (name === '%AsyncGenerator%') {
|
2240
|
+
var fn = doEval('%AsyncGeneratorFunction%');
|
2241
|
+
if (fn) {
|
2242
|
+
value = fn.prototype;
|
2243
|
+
}
|
2244
|
+
} else if (name === '%AsyncIteratorPrototype%') {
|
2245
|
+
var gen = doEval('%AsyncGenerator%');
|
2246
|
+
if (gen) {
|
2247
|
+
value = getProto(gen.prototype);
|
2248
|
+
}
|
2249
|
+
}
|
2250
|
+
|
2251
|
+
INTRINSICS[name] = value;
|
2252
|
+
|
2253
|
+
return value;
|
2254
|
+
};
|
2255
|
+
|
2256
|
+
var LEGACY_ALIASES = {
|
2257
|
+
'%ArrayBufferPrototype%': ['ArrayBuffer', 'prototype'],
|
2258
|
+
'%ArrayPrototype%': ['Array', 'prototype'],
|
2259
|
+
'%ArrayProto_entries%': ['Array', 'prototype', 'entries'],
|
2260
|
+
'%ArrayProto_forEach%': ['Array', 'prototype', 'forEach'],
|
2261
|
+
'%ArrayProto_keys%': ['Array', 'prototype', 'keys'],
|
2262
|
+
'%ArrayProto_values%': ['Array', 'prototype', 'values'],
|
2263
|
+
'%AsyncFunctionPrototype%': ['AsyncFunction', 'prototype'],
|
2264
|
+
'%AsyncGenerator%': ['AsyncGeneratorFunction', 'prototype'],
|
2265
|
+
'%AsyncGeneratorPrototype%': ['AsyncGeneratorFunction', 'prototype', 'prototype'],
|
2266
|
+
'%BooleanPrototype%': ['Boolean', 'prototype'],
|
2267
|
+
'%DataViewPrototype%': ['DataView', 'prototype'],
|
2268
|
+
'%DatePrototype%': ['Date', 'prototype'],
|
2269
|
+
'%ErrorPrototype%': ['Error', 'prototype'],
|
2270
|
+
'%EvalErrorPrototype%': ['EvalError', 'prototype'],
|
2271
|
+
'%Float32ArrayPrototype%': ['Float32Array', 'prototype'],
|
2272
|
+
'%Float64ArrayPrototype%': ['Float64Array', 'prototype'],
|
2273
|
+
'%FunctionPrototype%': ['Function', 'prototype'],
|
2274
|
+
'%Generator%': ['GeneratorFunction', 'prototype'],
|
2275
|
+
'%GeneratorPrototype%': ['GeneratorFunction', 'prototype', 'prototype'],
|
2276
|
+
'%Int8ArrayPrototype%': ['Int8Array', 'prototype'],
|
2277
|
+
'%Int16ArrayPrototype%': ['Int16Array', 'prototype'],
|
2278
|
+
'%Int32ArrayPrototype%': ['Int32Array', 'prototype'],
|
2279
|
+
'%JSONParse%': ['JSON', 'parse'],
|
2280
|
+
'%JSONStringify%': ['JSON', 'stringify'],
|
2281
|
+
'%MapPrototype%': ['Map', 'prototype'],
|
2282
|
+
'%NumberPrototype%': ['Number', 'prototype'],
|
2283
|
+
'%ObjectPrototype%': ['Object', 'prototype'],
|
2284
|
+
'%ObjProto_toString%': ['Object', 'prototype', 'toString'],
|
2285
|
+
'%ObjProto_valueOf%': ['Object', 'prototype', 'valueOf'],
|
2286
|
+
'%PromisePrototype%': ['Promise', 'prototype'],
|
2287
|
+
'%PromiseProto_then%': ['Promise', 'prototype', 'then'],
|
2288
|
+
'%Promise_all%': ['Promise', 'all'],
|
2289
|
+
'%Promise_reject%': ['Promise', 'reject'],
|
2290
|
+
'%Promise_resolve%': ['Promise', 'resolve'],
|
2291
|
+
'%RangeErrorPrototype%': ['RangeError', 'prototype'],
|
2292
|
+
'%ReferenceErrorPrototype%': ['ReferenceError', 'prototype'],
|
2293
|
+
'%RegExpPrototype%': ['RegExp', 'prototype'],
|
2294
|
+
'%SetPrototype%': ['Set', 'prototype'],
|
2295
|
+
'%SharedArrayBufferPrototype%': ['SharedArrayBuffer', 'prototype'],
|
2296
|
+
'%StringPrototype%': ['String', 'prototype'],
|
2297
|
+
'%SymbolPrototype%': ['Symbol', 'prototype'],
|
2298
|
+
'%SyntaxErrorPrototype%': ['SyntaxError', 'prototype'],
|
2299
|
+
'%TypedArrayPrototype%': ['TypedArray', 'prototype'],
|
2300
|
+
'%TypeErrorPrototype%': ['TypeError', 'prototype'],
|
2301
|
+
'%Uint8ArrayPrototype%': ['Uint8Array', 'prototype'],
|
2302
|
+
'%Uint8ClampedArrayPrototype%': ['Uint8ClampedArray', 'prototype'],
|
2303
|
+
'%Uint16ArrayPrototype%': ['Uint16Array', 'prototype'],
|
2304
|
+
'%Uint32ArrayPrototype%': ['Uint32Array', 'prototype'],
|
2305
|
+
'%URIErrorPrototype%': ['URIError', 'prototype'],
|
2306
|
+
'%WeakMapPrototype%': ['WeakMap', 'prototype'],
|
2307
|
+
'%WeakSetPrototype%': ['WeakSet', 'prototype']
|
2308
|
+
};
|
2309
|
+
|
2310
|
+
|
2311
|
+
|
2312
|
+
var $concat$1 = functionBind.call(Function.call, Array.prototype.concat);
|
2313
|
+
var $spliceApply = functionBind.call(Function.apply, Array.prototype.splice);
|
2314
|
+
var $replace$1 = functionBind.call(Function.call, String.prototype.replace);
|
2315
|
+
var $strSlice = functionBind.call(Function.call, String.prototype.slice);
|
2316
|
+
|
2317
|
+
/* adapted from https://github.com/lodash/lodash/blob/4.17.15/dist/lodash.js#L6735-L6744 */
|
2318
|
+
var rePropName = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;
|
2319
|
+
var reEscapeChar = /\\(\\)?/g; /** Used to match backslashes in property paths. */
|
2320
|
+
var stringToPath = function stringToPath(string) {
|
2321
|
+
var first = $strSlice(string, 0, 1);
|
2322
|
+
var last = $strSlice(string, -1);
|
2323
|
+
if (first === '%' && last !== '%') {
|
2324
|
+
throw new $SyntaxError('invalid intrinsic syntax, expected closing `%`');
|
2325
|
+
} else if (last === '%' && first !== '%') {
|
2326
|
+
throw new $SyntaxError('invalid intrinsic syntax, expected opening `%`');
|
2327
|
+
}
|
2328
|
+
var result = [];
|
2329
|
+
$replace$1(string, rePropName, function (match, number, quote, subString) {
|
2330
|
+
result[result.length] = quote ? $replace$1(subString, reEscapeChar, '$1') : number || match;
|
2331
|
+
});
|
2332
|
+
return result;
|
2333
|
+
};
|
2334
|
+
/* end adaptation */
|
2335
|
+
|
2336
|
+
var getBaseIntrinsic = function getBaseIntrinsic(name, allowMissing) {
|
2337
|
+
var intrinsicName = name;
|
2338
|
+
var alias;
|
2339
|
+
if (src(LEGACY_ALIASES, intrinsicName)) {
|
2340
|
+
alias = LEGACY_ALIASES[intrinsicName];
|
2341
|
+
intrinsicName = '%' + alias[0] + '%';
|
2342
|
+
}
|
2343
|
+
|
2344
|
+
if (src(INTRINSICS, intrinsicName)) {
|
2345
|
+
var value = INTRINSICS[intrinsicName];
|
2346
|
+
if (value === needsEval) {
|
2347
|
+
value = doEval(intrinsicName);
|
2348
|
+
}
|
2349
|
+
if (typeof value === 'undefined' && !allowMissing) {
|
2350
|
+
throw new $TypeError$1('intrinsic ' + name + ' exists, but is not available. Please file an issue!');
|
2351
|
+
}
|
2352
|
+
|
2353
|
+
return {
|
2354
|
+
alias: alias,
|
2355
|
+
name: intrinsicName,
|
2356
|
+
value: value
|
2357
|
+
};
|
2358
|
+
}
|
2359
|
+
|
2360
|
+
throw new $SyntaxError('intrinsic ' + name + ' does not exist!');
|
2361
|
+
};
|
2362
|
+
|
2363
|
+
var getIntrinsic = function GetIntrinsic(name, allowMissing) {
|
2364
|
+
if (typeof name !== 'string' || name.length === 0) {
|
2365
|
+
throw new $TypeError$1('intrinsic name must be a non-empty string');
|
2366
|
+
}
|
2367
|
+
if (arguments.length > 1 && typeof allowMissing !== 'boolean') {
|
2368
|
+
throw new $TypeError$1('"allowMissing" argument must be a boolean');
|
2369
|
+
}
|
2370
|
+
|
2371
|
+
var parts = stringToPath(name);
|
2372
|
+
var intrinsicBaseName = parts.length > 0 ? parts[0] : '';
|
2373
|
+
|
2374
|
+
var intrinsic = getBaseIntrinsic('%' + intrinsicBaseName + '%', allowMissing);
|
2375
|
+
var intrinsicRealName = intrinsic.name;
|
2376
|
+
var value = intrinsic.value;
|
2377
|
+
var skipFurtherCaching = false;
|
2378
|
+
|
2379
|
+
var alias = intrinsic.alias;
|
2380
|
+
if (alias) {
|
2381
|
+
intrinsicBaseName = alias[0];
|
2382
|
+
$spliceApply(parts, $concat$1([0, 1], alias));
|
2383
|
+
}
|
2384
|
+
|
2385
|
+
for (var i = 1, isOwn = true; i < parts.length; i += 1) {
|
2386
|
+
var part = parts[i];
|
2387
|
+
var first = $strSlice(part, 0, 1);
|
2388
|
+
var last = $strSlice(part, -1);
|
2389
|
+
if (
|
2390
|
+
(
|
2391
|
+
(first === '"' || first === "'" || first === '`')
|
2392
|
+
|| (last === '"' || last === "'" || last === '`')
|
2393
|
+
)
|
2394
|
+
&& first !== last
|
2395
|
+
) {
|
2396
|
+
throw new $SyntaxError('property names with quotes must have matching quotes');
|
2397
|
+
}
|
2398
|
+
if (part === 'constructor' || !isOwn) {
|
2399
|
+
skipFurtherCaching = true;
|
2400
|
+
}
|
2401
|
+
|
2402
|
+
intrinsicBaseName += '.' + part;
|
2403
|
+
intrinsicRealName = '%' + intrinsicBaseName + '%';
|
2404
|
+
|
2405
|
+
if (src(INTRINSICS, intrinsicRealName)) {
|
2406
|
+
value = INTRINSICS[intrinsicRealName];
|
2407
|
+
} else if (value != null) {
|
2408
|
+
if (!(part in value)) {
|
2409
|
+
if (!allowMissing) {
|
2410
|
+
throw new $TypeError$1('base intrinsic for ' + name + ' exists, but the property is not available.');
|
2411
|
+
}
|
2412
|
+
return void undefined$1;
|
2413
|
+
}
|
2414
|
+
if ($gOPD && (i + 1) >= parts.length) {
|
2415
|
+
var desc = $gOPD(value, part);
|
2416
|
+
isOwn = !!desc;
|
2417
|
+
|
2418
|
+
// By convention, when a data property is converted to an accessor
|
2419
|
+
// property to emulate a data property that does not suffer from
|
2420
|
+
// the override mistake, that accessor's getter is marked with
|
2421
|
+
// an `originalValue` property. Here, when we detect this, we
|
2422
|
+
// uphold the illusion by pretending to see that original data
|
2423
|
+
// property, i.e., returning the value rather than the getter
|
2424
|
+
// itself.
|
2425
|
+
if (isOwn && 'get' in desc && !('originalValue' in desc.get)) {
|
2426
|
+
value = desc.get;
|
2427
|
+
} else {
|
2428
|
+
value = value[part];
|
2429
|
+
}
|
2430
|
+
} else {
|
2431
|
+
isOwn = src(value, part);
|
2432
|
+
value = value[part];
|
2433
|
+
}
|
2434
|
+
|
2435
|
+
if (isOwn && !skipFurtherCaching) {
|
2436
|
+
INTRINSICS[intrinsicRealName] = value;
|
2437
|
+
}
|
2438
|
+
}
|
2439
|
+
}
|
2440
|
+
return value;
|
2441
|
+
};
|
2442
|
+
|
2443
|
+
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
2444
|
+
|
2445
|
+
function getDefaultExportFromCjs (x) {
|
2446
|
+
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
2447
|
+
}
|
2448
|
+
|
2449
|
+
function createCommonjsModule(fn, basedir, module) {
|
2450
|
+
return module = {
|
2451
|
+
path: basedir,
|
2452
|
+
exports: {},
|
2453
|
+
require: function (path, base) {
|
2454
|
+
return commonjsRequire(path, (base === undefined || base === null) ? module.path : base);
|
2455
|
+
}
|
2456
|
+
}, fn(module, module.exports), module.exports;
|
2457
|
+
}
|
2458
|
+
|
2459
|
+
function getDefaultExportFromNamespaceIfPresent (n) {
|
2460
|
+
return n && Object.prototype.hasOwnProperty.call(n, 'default') ? n['default'] : n;
|
2461
|
+
}
|
2462
|
+
|
2463
|
+
function getDefaultExportFromNamespaceIfNotNamed (n) {
|
2464
|
+
return n && Object.prototype.hasOwnProperty.call(n, 'default') && Object.keys(n).length === 1 ? n['default'] : n;
|
2465
|
+
}
|
2466
|
+
|
2467
|
+
function getAugmentedNamespace(n) {
|
2468
|
+
if (n.__esModule) return n;
|
2469
|
+
var a = Object.defineProperty({}, '__esModule', {value: true});
|
2470
|
+
Object.keys(n).forEach(function (k) {
|
2471
|
+
var d = Object.getOwnPropertyDescriptor(n, k);
|
2472
|
+
Object.defineProperty(a, k, d.get ? d : {
|
2473
|
+
enumerable: true,
|
2474
|
+
get: function () {
|
2475
|
+
return n[k];
|
2476
|
+
}
|
2477
|
+
});
|
2478
|
+
});
|
2479
|
+
return a;
|
2480
|
+
}
|
2481
|
+
|
2482
|
+
function commonjsRequire () {
|
2483
|
+
throw new Error('Dynamic requires are not currently supported by @rollup/plugin-commonjs');
|
2484
|
+
}
|
2485
|
+
|
2486
|
+
var callBind = createCommonjsModule(function (module) {
|
2487
|
+
'use strict';
|
2488
|
+
|
2489
|
+
|
2490
|
+
|
2491
|
+
|
2492
|
+
var $apply = getIntrinsic('%Function.prototype.apply%');
|
2493
|
+
var $call = getIntrinsic('%Function.prototype.call%');
|
2494
|
+
var $reflectApply = getIntrinsic('%Reflect.apply%', true) || functionBind.call($call, $apply);
|
2495
|
+
|
2496
|
+
var $gOPD = getIntrinsic('%Object.getOwnPropertyDescriptor%', true);
|
2497
|
+
var $defineProperty = getIntrinsic('%Object.defineProperty%', true);
|
2498
|
+
var $max = getIntrinsic('%Math.max%');
|
2499
|
+
|
2500
|
+
if ($defineProperty) {
|
2501
|
+
try {
|
2502
|
+
$defineProperty({}, 'a', { value: 1 });
|
2503
|
+
} catch (e) {
|
2504
|
+
// IE 8 has a broken defineProperty
|
2505
|
+
$defineProperty = null;
|
2506
|
+
}
|
2507
|
+
}
|
2508
|
+
|
2509
|
+
module.exports = function callBind(originalFunction) {
|
2510
|
+
var func = $reflectApply(functionBind, $call, arguments);
|
2511
|
+
if ($gOPD && $defineProperty) {
|
2512
|
+
var desc = $gOPD(func, 'length');
|
2513
|
+
if (desc.configurable) {
|
2514
|
+
// original length, plus the receiver, minus any additional arguments (after the receiver)
|
2515
|
+
$defineProperty(
|
2516
|
+
func,
|
2517
|
+
'length',
|
2518
|
+
{ value: 1 + $max(0, originalFunction.length - (arguments.length - 1)) }
|
2519
|
+
);
|
2520
|
+
}
|
2521
|
+
}
|
2522
|
+
return func;
|
2523
|
+
};
|
2524
|
+
|
2525
|
+
var applyBind = function applyBind() {
|
2526
|
+
return $reflectApply(functionBind, $apply, arguments);
|
2527
|
+
};
|
2528
|
+
|
2529
|
+
if ($defineProperty) {
|
2530
|
+
$defineProperty(module.exports, 'apply', { value: applyBind });
|
2531
|
+
} else {
|
2532
|
+
module.exports.apply = applyBind;
|
2533
|
+
}
|
2534
|
+
});
|
2535
|
+
|
2536
|
+
'use strict';
|
2537
|
+
|
2538
|
+
|
2539
|
+
|
2540
|
+
|
2541
|
+
|
2542
|
+
var $indexOf = callBind(getIntrinsic('String.prototype.indexOf'));
|
2543
|
+
|
2544
|
+
var callBound = function callBoundIntrinsic(name, allowMissing) {
|
2545
|
+
var intrinsic = getIntrinsic(name, !!allowMissing);
|
2546
|
+
if (typeof intrinsic === 'function' && $indexOf(name, '.prototype.') > -1) {
|
2547
|
+
return callBind(intrinsic);
|
2548
|
+
}
|
2549
|
+
return intrinsic;
|
2550
|
+
};
|
2551
|
+
|
2552
|
+
const _nodeResolve_empty = {};
|
2553
|
+
|
2554
|
+
const _nodeResolve_empty$1 = /*#__PURE__*/Object.freeze({
|
2555
|
+
__proto__: null,
|
2556
|
+
'default': _nodeResolve_empty
|
2557
|
+
});
|
2558
|
+
|
2559
|
+
const require$$0 = /*@__PURE__*/getAugmentedNamespace(_nodeResolve_empty$1);
|
2560
|
+
|
2561
|
+
var hasMap = typeof Map === 'function' && Map.prototype;
|
2562
|
+
var mapSizeDescriptor = Object.getOwnPropertyDescriptor && hasMap ? Object.getOwnPropertyDescriptor(Map.prototype, 'size') : null;
|
2563
|
+
var mapSize = hasMap && mapSizeDescriptor && typeof mapSizeDescriptor.get === 'function' ? mapSizeDescriptor.get : null;
|
2564
|
+
var mapForEach = hasMap && Map.prototype.forEach;
|
2565
|
+
var hasSet = typeof Set === 'function' && Set.prototype;
|
2566
|
+
var setSizeDescriptor = Object.getOwnPropertyDescriptor && hasSet ? Object.getOwnPropertyDescriptor(Set.prototype, 'size') : null;
|
2567
|
+
var setSize = hasSet && setSizeDescriptor && typeof setSizeDescriptor.get === 'function' ? setSizeDescriptor.get : null;
|
2568
|
+
var setForEach = hasSet && Set.prototype.forEach;
|
2569
|
+
var hasWeakMap = typeof WeakMap === 'function' && WeakMap.prototype;
|
2570
|
+
var weakMapHas = hasWeakMap ? WeakMap.prototype.has : null;
|
2571
|
+
var hasWeakSet = typeof WeakSet === 'function' && WeakSet.prototype;
|
2572
|
+
var weakSetHas = hasWeakSet ? WeakSet.prototype.has : null;
|
2573
|
+
var hasWeakRef = typeof WeakRef === 'function' && WeakRef.prototype;
|
2574
|
+
var weakRefDeref = hasWeakRef ? WeakRef.prototype.deref : null;
|
2575
|
+
var booleanValueOf = Boolean.prototype.valueOf;
|
2576
|
+
var objectToString = Object.prototype.toString;
|
2577
|
+
var functionToString = Function.prototype.toString;
|
2578
|
+
var $match = String.prototype.match;
|
2579
|
+
var $slice = String.prototype.slice;
|
2580
|
+
var $replace = String.prototype.replace;
|
2581
|
+
var $toUpperCase = String.prototype.toUpperCase;
|
2582
|
+
var $toLowerCase = String.prototype.toLowerCase;
|
2583
|
+
var $test = RegExp.prototype.test;
|
2584
|
+
var $concat = Array.prototype.concat;
|
2585
|
+
var $join = Array.prototype.join;
|
2586
|
+
var $arrSlice = Array.prototype.slice;
|
2587
|
+
var $floor = Math.floor;
|
2588
|
+
var bigIntValueOf = typeof BigInt === 'function' ? BigInt.prototype.valueOf : null;
|
2589
|
+
var gOPS = Object.getOwnPropertySymbols;
|
2590
|
+
var symToString = typeof Symbol === 'function' && typeof Symbol.iterator === 'symbol' ? Symbol.prototype.toString : null;
|
2591
|
+
var hasShammedSymbols = typeof Symbol === 'function' && typeof Symbol.iterator === 'object';
|
2592
|
+
// ie, `has-tostringtag/shams
|
2593
|
+
var toStringTag = typeof Symbol === 'function' && Symbol.toStringTag && (typeof Symbol.toStringTag === hasShammedSymbols ? 'object' : 'symbol')
|
2594
|
+
? Symbol.toStringTag
|
2595
|
+
: null;
|
2596
|
+
var isEnumerable = Object.prototype.propertyIsEnumerable;
|
2597
|
+
|
2598
|
+
var gPO = (typeof Reflect === 'function' ? Reflect.getPrototypeOf : Object.getPrototypeOf) || (
|
2599
|
+
[].__proto__ === Array.prototype // eslint-disable-line no-proto
|
2600
|
+
? function (O) {
|
2601
|
+
return O.__proto__; // eslint-disable-line no-proto
|
2602
|
+
}
|
2603
|
+
: null
|
2604
|
+
);
|
2605
|
+
|
2606
|
+
function addNumericSeparator(num, str) {
|
2607
|
+
if (
|
2608
|
+
num === Infinity
|
2609
|
+
|| num === -Infinity
|
2610
|
+
|| num !== num
|
2611
|
+
|| (num && num > -1000 && num < 1000)
|
2612
|
+
|| $test.call(/e/, str)
|
2613
|
+
) {
|
2614
|
+
return str;
|
2615
|
+
}
|
2616
|
+
var sepRegex = /[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;
|
2617
|
+
if (typeof num === 'number') {
|
2618
|
+
var int = num < 0 ? -$floor(-num) : $floor(num); // trunc(num)
|
2619
|
+
if (int !== num) {
|
2620
|
+
var intStr = String(int);
|
2621
|
+
var dec = $slice.call(str, intStr.length + 1);
|
2622
|
+
return $replace.call(intStr, sepRegex, '$&_') + '.' + $replace.call($replace.call(dec, /([0-9]{3})/g, '$&_'), /_$/, '');
|
2623
|
+
}
|
2624
|
+
}
|
2625
|
+
return $replace.call(str, sepRegex, '$&_');
|
2626
|
+
}
|
2627
|
+
|
2628
|
+
var inspectCustom = require$$0.custom;
|
2629
|
+
var inspectSymbol = inspectCustom && isSymbol(inspectCustom) ? inspectCustom : null;
|
2630
|
+
|
2631
|
+
var objectInspect = function inspect_(obj, options, depth, seen) {
|
2632
|
+
var opts = options || {};
|
2633
|
+
|
2634
|
+
if (has$3(opts, 'quoteStyle') && (opts.quoteStyle !== 'single' && opts.quoteStyle !== 'double')) {
|
2635
|
+
throw new TypeError('option "quoteStyle" must be "single" or "double"');
|
2636
|
+
}
|
2637
|
+
if (
|
2638
|
+
has$3(opts, 'maxStringLength') && (typeof opts.maxStringLength === 'number'
|
2639
|
+
? opts.maxStringLength < 0 && opts.maxStringLength !== Infinity
|
2640
|
+
: opts.maxStringLength !== null
|
2641
|
+
)
|
2642
|
+
) {
|
2643
|
+
throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');
|
2644
|
+
}
|
2645
|
+
var customInspect = has$3(opts, 'customInspect') ? opts.customInspect : true;
|
2646
|
+
if (typeof customInspect !== 'boolean' && customInspect !== 'symbol') {
|
2647
|
+
throw new TypeError('option "customInspect", if provided, must be `true`, `false`, or `\'symbol\'`');
|
2648
|
+
}
|
2649
|
+
|
2650
|
+
if (
|
2651
|
+
has$3(opts, 'indent')
|
2652
|
+
&& opts.indent !== null
|
2653
|
+
&& opts.indent !== '\t'
|
2654
|
+
&& !(parseInt(opts.indent, 10) === opts.indent && opts.indent > 0)
|
2655
|
+
) {
|
2656
|
+
throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');
|
2657
|
+
}
|
2658
|
+
if (has$3(opts, 'numericSeparator') && typeof opts.numericSeparator !== 'boolean') {
|
2659
|
+
throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');
|
2660
|
+
}
|
2661
|
+
var numericSeparator = opts.numericSeparator;
|
2662
|
+
|
2663
|
+
if (typeof obj === 'undefined') {
|
2664
|
+
return 'undefined';
|
2665
|
+
}
|
2666
|
+
if (obj === null) {
|
2667
|
+
return 'null';
|
2668
|
+
}
|
2669
|
+
if (typeof obj === 'boolean') {
|
2670
|
+
return obj ? 'true' : 'false';
|
2671
|
+
}
|
2672
|
+
|
2673
|
+
if (typeof obj === 'string') {
|
2674
|
+
return inspectString(obj, opts);
|
2675
|
+
}
|
2676
|
+
if (typeof obj === 'number') {
|
2677
|
+
if (obj === 0) {
|
2678
|
+
return Infinity / obj > 0 ? '0' : '-0';
|
2679
|
+
}
|
2680
|
+
var str = String(obj);
|
2681
|
+
return numericSeparator ? addNumericSeparator(obj, str) : str;
|
2682
|
+
}
|
2683
|
+
if (typeof obj === 'bigint') {
|
2684
|
+
var bigIntStr = String(obj) + 'n';
|
2685
|
+
return numericSeparator ? addNumericSeparator(obj, bigIntStr) : bigIntStr;
|
2686
|
+
}
|
2687
|
+
|
2688
|
+
var maxDepth = typeof opts.depth === 'undefined' ? 5 : opts.depth;
|
2689
|
+
if (typeof depth === 'undefined') { depth = 0; }
|
2690
|
+
if (depth >= maxDepth && maxDepth > 0 && typeof obj === 'object') {
|
2691
|
+
return isArray$3(obj) ? '[Array]' : '[Object]';
|
2692
|
+
}
|
2693
|
+
|
2694
|
+
var indent = getIndent(opts, depth);
|
2695
|
+
|
2696
|
+
if (typeof seen === 'undefined') {
|
2697
|
+
seen = [];
|
2698
|
+
} else if (indexOf(seen, obj) >= 0) {
|
2699
|
+
return '[Circular]';
|
2700
|
+
}
|
2701
|
+
|
2702
|
+
function inspect(value, from, noIndent) {
|
2703
|
+
if (from) {
|
2704
|
+
seen = $arrSlice.call(seen);
|
2705
|
+
seen.push(from);
|
2706
|
+
}
|
2707
|
+
if (noIndent) {
|
2708
|
+
var newOpts = {
|
2709
|
+
depth: opts.depth
|
2710
|
+
};
|
2711
|
+
if (has$3(opts, 'quoteStyle')) {
|
2712
|
+
newOpts.quoteStyle = opts.quoteStyle;
|
2713
|
+
}
|
2714
|
+
return inspect_(value, newOpts, depth + 1, seen);
|
2715
|
+
}
|
2716
|
+
return inspect_(value, opts, depth + 1, seen);
|
2717
|
+
}
|
2718
|
+
|
2719
|
+
if (typeof obj === 'function') {
|
2720
|
+
var name = nameOf(obj);
|
2721
|
+
var keys = arrObjKeys(obj, inspect);
|
2722
|
+
return '[Function' + (name ? ': ' + name : ' (anonymous)') + ']' + (keys.length > 0 ? ' { ' + $join.call(keys, ', ') + ' }' : '');
|
2723
|
+
}
|
2724
|
+
if (isSymbol(obj)) {
|
2725
|
+
var symString = hasShammedSymbols ? $replace.call(String(obj), /^(Symbol\(.*\))_[^)]*$/, '$1') : symToString.call(obj);
|
2726
|
+
return typeof obj === 'object' && !hasShammedSymbols ? markBoxed(symString) : symString;
|
2727
|
+
}
|
2728
|
+
if (isElement(obj)) {
|
2729
|
+
var s = '<' + $toLowerCase.call(String(obj.nodeName));
|
2730
|
+
var attrs = obj.attributes || [];
|
2731
|
+
for (var i = 0; i < attrs.length; i++) {
|
2732
|
+
s += ' ' + attrs[i].name + '=' + wrapQuotes(quote(attrs[i].value), 'double', opts);
|
2733
|
+
}
|
2734
|
+
s += '>';
|
2735
|
+
if (obj.childNodes && obj.childNodes.length) { s += '...'; }
|
2736
|
+
s += '</' + $toLowerCase.call(String(obj.nodeName)) + '>';
|
2737
|
+
return s;
|
2738
|
+
}
|
2739
|
+
if (isArray$3(obj)) {
|
2740
|
+
if (obj.length === 0) { return '[]'; }
|
2741
|
+
var xs = arrObjKeys(obj, inspect);
|
2742
|
+
if (indent && !singleLineValues(xs)) {
|
2743
|
+
return '[' + indentedJoin(xs, indent) + ']';
|
2744
|
+
}
|
2745
|
+
return '[ ' + $join.call(xs, ', ') + ' ]';
|
2746
|
+
}
|
2747
|
+
if (isError(obj)) {
|
2748
|
+
var parts = arrObjKeys(obj, inspect);
|
2749
|
+
if ('cause' in obj && !isEnumerable.call(obj, 'cause')) {
|
2750
|
+
return '{ [' + String(obj) + '] ' + $join.call($concat.call('[cause]: ' + inspect(obj.cause), parts), ', ') + ' }';
|
2751
|
+
}
|
2752
|
+
if (parts.length === 0) { return '[' + String(obj) + ']'; }
|
2753
|
+
return '{ [' + String(obj) + '] ' + $join.call(parts, ', ') + ' }';
|
2754
|
+
}
|
2755
|
+
if (typeof obj === 'object' && customInspect) {
|
2756
|
+
if (inspectSymbol && typeof obj[inspectSymbol] === 'function') {
|
2757
|
+
return obj[inspectSymbol]();
|
2758
|
+
} else if (customInspect !== 'symbol' && typeof obj.inspect === 'function') {
|
2759
|
+
return obj.inspect();
|
2760
|
+
}
|
2761
|
+
}
|
2762
|
+
if (isMap(obj)) {
|
2763
|
+
var mapParts = [];
|
2764
|
+
mapForEach.call(obj, function (value, key) {
|
2765
|
+
mapParts.push(inspect(key, obj, true) + ' => ' + inspect(value, obj));
|
2766
|
+
});
|
2767
|
+
return collectionOf('Map', mapSize.call(obj), mapParts, indent);
|
2768
|
+
}
|
2769
|
+
if (isSet(obj)) {
|
2770
|
+
var setParts = [];
|
2771
|
+
setForEach.call(obj, function (value) {
|
2772
|
+
setParts.push(inspect(value, obj));
|
2773
|
+
});
|
2774
|
+
return collectionOf('Set', setSize.call(obj), setParts, indent);
|
2775
|
+
}
|
2776
|
+
if (isWeakMap(obj)) {
|
2777
|
+
return weakCollectionOf('WeakMap');
|
2778
|
+
}
|
2779
|
+
if (isWeakSet(obj)) {
|
2780
|
+
return weakCollectionOf('WeakSet');
|
2781
|
+
}
|
2782
|
+
if (isWeakRef(obj)) {
|
2783
|
+
return weakCollectionOf('WeakRef');
|
2784
|
+
}
|
2785
|
+
if (isNumber(obj)) {
|
2786
|
+
return markBoxed(inspect(Number(obj)));
|
2787
|
+
}
|
2788
|
+
if (isBigInt(obj)) {
|
2789
|
+
return markBoxed(inspect(bigIntValueOf.call(obj)));
|
2790
|
+
}
|
2791
|
+
if (isBoolean(obj)) {
|
2792
|
+
return markBoxed(booleanValueOf.call(obj));
|
2793
|
+
}
|
2794
|
+
if (isString(obj)) {
|
2795
|
+
return markBoxed(inspect(String(obj)));
|
2796
|
+
}
|
2797
|
+
if (!isDate(obj) && !isRegExp$1(obj)) {
|
2798
|
+
var ys = arrObjKeys(obj, inspect);
|
2799
|
+
var isPlainObject = gPO ? gPO(obj) === Object.prototype : obj instanceof Object || obj.constructor === Object;
|
2800
|
+
var protoTag = obj instanceof Object ? '' : 'null prototype';
|
2801
|
+
var stringTag = !isPlainObject && toStringTag && Object(obj) === obj && toStringTag in obj ? $slice.call(toStr(obj), 8, -1) : protoTag ? 'Object' : '';
|
2802
|
+
var constructorTag = isPlainObject || typeof obj.constructor !== 'function' ? '' : obj.constructor.name ? obj.constructor.name + ' ' : '';
|
2803
|
+
var tag = constructorTag + (stringTag || protoTag ? '[' + $join.call($concat.call([], stringTag || [], protoTag || []), ': ') + '] ' : '');
|
2804
|
+
if (ys.length === 0) { return tag + '{}'; }
|
2805
|
+
if (indent) {
|
2806
|
+
return tag + '{' + indentedJoin(ys, indent) + '}';
|
2807
|
+
}
|
2808
|
+
return tag + '{ ' + $join.call(ys, ', ') + ' }';
|
2809
|
+
}
|
2810
|
+
return String(obj);
|
2811
|
+
};
|
2812
|
+
|
2813
|
+
function wrapQuotes(s, defaultStyle, opts) {
|
2814
|
+
var quoteChar = (opts.quoteStyle || defaultStyle) === 'double' ? '"' : "'";
|
2815
|
+
return quoteChar + s + quoteChar;
|
2816
|
+
}
|
2817
|
+
|
2818
|
+
function quote(s) {
|
2819
|
+
return $replace.call(String(s), /"/g, '"');
|
2820
|
+
}
|
2821
|
+
|
2822
|
+
function isArray$3(obj) { return toStr(obj) === '[object Array]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
|
2823
|
+
function isDate(obj) { return toStr(obj) === '[object Date]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
|
2824
|
+
function isRegExp$1(obj) { return toStr(obj) === '[object RegExp]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
|
2825
|
+
function isError(obj) { return toStr(obj) === '[object Error]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
|
2826
|
+
function isString(obj) { return toStr(obj) === '[object String]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
|
2827
|
+
function isNumber(obj) { return toStr(obj) === '[object Number]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
|
2828
|
+
function isBoolean(obj) { return toStr(obj) === '[object Boolean]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
|
2829
|
+
|
2830
|
+
// Symbol and BigInt do have Symbol.toStringTag by spec, so that can't be used to eliminate false positives
|
2831
|
+
function isSymbol(obj) {
|
2832
|
+
if (hasShammedSymbols) {
|
2833
|
+
return obj && typeof obj === 'object' && obj instanceof Symbol;
|
2834
|
+
}
|
2835
|
+
if (typeof obj === 'symbol') {
|
2836
|
+
return true;
|
2837
|
+
}
|
2838
|
+
if (!obj || typeof obj !== 'object' || !symToString) {
|
2839
|
+
return false;
|
2840
|
+
}
|
2841
|
+
try {
|
2842
|
+
symToString.call(obj);
|
2843
|
+
return true;
|
2844
|
+
} catch (e) {}
|
2845
|
+
return false;
|
2846
|
+
}
|
2847
|
+
|
2848
|
+
function isBigInt(obj) {
|
2849
|
+
if (!obj || typeof obj !== 'object' || !bigIntValueOf) {
|
2850
|
+
return false;
|
2851
|
+
}
|
2852
|
+
try {
|
2853
|
+
bigIntValueOf.call(obj);
|
2854
|
+
return true;
|
2855
|
+
} catch (e) {}
|
2856
|
+
return false;
|
2857
|
+
}
|
2858
|
+
|
2859
|
+
var hasOwn = Object.prototype.hasOwnProperty || function (key) { return key in this; };
|
2860
|
+
function has$3(obj, key) {
|
2861
|
+
return hasOwn.call(obj, key);
|
2862
|
+
}
|
2863
|
+
|
2864
|
+
function toStr(obj) {
|
2865
|
+
return objectToString.call(obj);
|
2866
|
+
}
|
2867
|
+
|
2868
|
+
function nameOf(f) {
|
2869
|
+
if (f.name) { return f.name; }
|
2870
|
+
var m = $match.call(functionToString.call(f), /^function\s*([\w$]+)/);
|
2871
|
+
if (m) { return m[1]; }
|
2872
|
+
return null;
|
2873
|
+
}
|
2874
|
+
|
2875
|
+
function indexOf(xs, x) {
|
2876
|
+
if (xs.indexOf) { return xs.indexOf(x); }
|
2877
|
+
for (var i = 0, l = xs.length; i < l; i++) {
|
2878
|
+
if (xs[i] === x) { return i; }
|
2879
|
+
}
|
2880
|
+
return -1;
|
2881
|
+
}
|
2882
|
+
|
2883
|
+
function isMap(x) {
|
2884
|
+
if (!mapSize || !x || typeof x !== 'object') {
|
2885
|
+
return false;
|
2886
|
+
}
|
2887
|
+
try {
|
2888
|
+
mapSize.call(x);
|
2889
|
+
try {
|
2890
|
+
setSize.call(x);
|
2891
|
+
} catch (s) {
|
2892
|
+
return true;
|
2893
|
+
}
|
2894
|
+
return x instanceof Map; // core-js workaround, pre-v2.5.0
|
2895
|
+
} catch (e) {}
|
2896
|
+
return false;
|
2897
|
+
}
|
2898
|
+
|
2899
|
+
function isWeakMap(x) {
|
2900
|
+
if (!weakMapHas || !x || typeof x !== 'object') {
|
2901
|
+
return false;
|
2902
|
+
}
|
2903
|
+
try {
|
2904
|
+
weakMapHas.call(x, weakMapHas);
|
2905
|
+
try {
|
2906
|
+
weakSetHas.call(x, weakSetHas);
|
2907
|
+
} catch (s) {
|
2908
|
+
return true;
|
2909
|
+
}
|
2910
|
+
return x instanceof WeakMap; // core-js workaround, pre-v2.5.0
|
2911
|
+
} catch (e) {}
|
2912
|
+
return false;
|
2913
|
+
}
|
2914
|
+
|
2915
|
+
function isWeakRef(x) {
|
2916
|
+
if (!weakRefDeref || !x || typeof x !== 'object') {
|
2917
|
+
return false;
|
2918
|
+
}
|
2919
|
+
try {
|
2920
|
+
weakRefDeref.call(x);
|
2921
|
+
return true;
|
2922
|
+
} catch (e) {}
|
2923
|
+
return false;
|
2924
|
+
}
|
2925
|
+
|
2926
|
+
function isSet(x) {
|
2927
|
+
if (!setSize || !x || typeof x !== 'object') {
|
2928
|
+
return false;
|
2929
|
+
}
|
2930
|
+
try {
|
2931
|
+
setSize.call(x);
|
2932
|
+
try {
|
2933
|
+
mapSize.call(x);
|
2934
|
+
} catch (m) {
|
2935
|
+
return true;
|
2936
|
+
}
|
2937
|
+
return x instanceof Set; // core-js workaround, pre-v2.5.0
|
2938
|
+
} catch (e) {}
|
2939
|
+
return false;
|
2940
|
+
}
|
2941
|
+
|
2942
|
+
function isWeakSet(x) {
|
2943
|
+
if (!weakSetHas || !x || typeof x !== 'object') {
|
2944
|
+
return false;
|
2945
|
+
}
|
2946
|
+
try {
|
2947
|
+
weakSetHas.call(x, weakSetHas);
|
2948
|
+
try {
|
2949
|
+
weakMapHas.call(x, weakMapHas);
|
2950
|
+
} catch (s) {
|
2951
|
+
return true;
|
2952
|
+
}
|
2953
|
+
return x instanceof WeakSet; // core-js workaround, pre-v2.5.0
|
2954
|
+
} catch (e) {}
|
2955
|
+
return false;
|
2956
|
+
}
|
2957
|
+
|
2958
|
+
function isElement(x) {
|
2959
|
+
if (!x || typeof x !== 'object') { return false; }
|
2960
|
+
if (typeof HTMLElement !== 'undefined' && x instanceof HTMLElement) {
|
2961
|
+
return true;
|
2962
|
+
}
|
2963
|
+
return typeof x.nodeName === 'string' && typeof x.getAttribute === 'function';
|
2964
|
+
}
|
2965
|
+
|
2966
|
+
function inspectString(str, opts) {
|
2967
|
+
if (str.length > opts.maxStringLength) {
|
2968
|
+
var remaining = str.length - opts.maxStringLength;
|
2969
|
+
var trailer = '... ' + remaining + ' more character' + (remaining > 1 ? 's' : '');
|
2970
|
+
return inspectString($slice.call(str, 0, opts.maxStringLength), opts) + trailer;
|
2971
|
+
}
|
2972
|
+
// eslint-disable-next-line no-control-regex
|
2973
|
+
var s = $replace.call($replace.call(str, /(['\\])/g, '\\$1'), /[\x00-\x1f]/g, lowbyte);
|
2974
|
+
return wrapQuotes(s, 'single', opts);
|
2975
|
+
}
|
2976
|
+
|
2977
|
+
function lowbyte(c) {
|
2978
|
+
var n = c.charCodeAt(0);
|
2979
|
+
var x = {
|
2980
|
+
8: 'b',
|
2981
|
+
9: 't',
|
2982
|
+
10: 'n',
|
2983
|
+
12: 'f',
|
2984
|
+
13: 'r'
|
2985
|
+
}[n];
|
2986
|
+
if (x) { return '\\' + x; }
|
2987
|
+
return '\\x' + (n < 0x10 ? '0' : '') + $toUpperCase.call(n.toString(16));
|
2988
|
+
}
|
2989
|
+
|
2990
|
+
function markBoxed(str) {
|
2991
|
+
return 'Object(' + str + ')';
|
2992
|
+
}
|
2993
|
+
|
2994
|
+
function weakCollectionOf(type) {
|
2995
|
+
return type + ' { ? }';
|
2996
|
+
}
|
2997
|
+
|
2998
|
+
function collectionOf(type, size, entries, indent) {
|
2999
|
+
var joinedEntries = indent ? indentedJoin(entries, indent) : $join.call(entries, ', ');
|
3000
|
+
return type + ' (' + size + ') {' + joinedEntries + '}';
|
3001
|
+
}
|
3002
|
+
|
3003
|
+
function singleLineValues(xs) {
|
3004
|
+
for (var i = 0; i < xs.length; i++) {
|
3005
|
+
if (indexOf(xs[i], '\n') >= 0) {
|
3006
|
+
return false;
|
3007
|
+
}
|
3008
|
+
}
|
3009
|
+
return true;
|
3010
|
+
}
|
3011
|
+
|
3012
|
+
function getIndent(opts, depth) {
|
3013
|
+
var baseIndent;
|
3014
|
+
if (opts.indent === '\t') {
|
3015
|
+
baseIndent = '\t';
|
3016
|
+
} else if (typeof opts.indent === 'number' && opts.indent > 0) {
|
3017
|
+
baseIndent = $join.call(Array(opts.indent + 1), ' ');
|
3018
|
+
} else {
|
3019
|
+
return null;
|
3020
|
+
}
|
3021
|
+
return {
|
3022
|
+
base: baseIndent,
|
3023
|
+
prev: $join.call(Array(depth + 1), baseIndent)
|
3024
|
+
};
|
3025
|
+
}
|
3026
|
+
|
3027
|
+
function indentedJoin(xs, indent) {
|
3028
|
+
if (xs.length === 0) { return ''; }
|
3029
|
+
var lineJoiner = '\n' + indent.prev + indent.base;
|
3030
|
+
return lineJoiner + $join.call(xs, ',' + lineJoiner) + '\n' + indent.prev;
|
3031
|
+
}
|
3032
|
+
|
3033
|
+
function arrObjKeys(obj, inspect) {
|
3034
|
+
var isArr = isArray$3(obj);
|
3035
|
+
var xs = [];
|
3036
|
+
if (isArr) {
|
3037
|
+
xs.length = obj.length;
|
3038
|
+
for (var i = 0; i < obj.length; i++) {
|
3039
|
+
xs[i] = has$3(obj, i) ? inspect(obj[i], obj) : '';
|
3040
|
+
}
|
3041
|
+
}
|
3042
|
+
var syms = typeof gOPS === 'function' ? gOPS(obj) : [];
|
3043
|
+
var symMap;
|
3044
|
+
if (hasShammedSymbols) {
|
3045
|
+
symMap = {};
|
3046
|
+
for (var k = 0; k < syms.length; k++) {
|
3047
|
+
symMap['$' + syms[k]] = syms[k];
|
3048
|
+
}
|
3049
|
+
}
|
3050
|
+
|
3051
|
+
for (var key in obj) { // eslint-disable-line no-restricted-syntax
|
3052
|
+
if (!has$3(obj, key)) { continue; } // eslint-disable-line no-restricted-syntax, no-continue
|
3053
|
+
if (isArr && String(Number(key)) === key && key < obj.length) { continue; } // eslint-disable-line no-restricted-syntax, no-continue
|
3054
|
+
if (hasShammedSymbols && symMap['$' + key] instanceof Symbol) {
|
3055
|
+
// this is to prevent shammed Symbols, which are stored as strings, from being included in the string key section
|
3056
|
+
continue; // eslint-disable-line no-restricted-syntax, no-continue
|
3057
|
+
} else if ($test.call(/[^\w$]/, key)) {
|
3058
|
+
xs.push(inspect(key, obj) + ': ' + inspect(obj[key], obj));
|
3059
|
+
} else {
|
3060
|
+
xs.push(key + ': ' + inspect(obj[key], obj));
|
3061
|
+
}
|
3062
|
+
}
|
3063
|
+
if (typeof gOPS === 'function') {
|
3064
|
+
for (var j = 0; j < syms.length; j++) {
|
3065
|
+
if (isEnumerable.call(obj, syms[j])) {
|
3066
|
+
xs.push('[' + inspect(syms[j]) + ']: ' + inspect(obj[syms[j]], obj));
|
3067
|
+
}
|
3068
|
+
}
|
3069
|
+
}
|
3070
|
+
return xs;
|
3071
|
+
}
|
3072
|
+
|
3073
|
+
'use strict';
|
3074
|
+
|
3075
|
+
|
3076
|
+
|
3077
|
+
|
3078
|
+
|
3079
|
+
var $TypeError = getIntrinsic('%TypeError%');
|
3080
|
+
var $WeakMap = getIntrinsic('%WeakMap%', true);
|
3081
|
+
var $Map = getIntrinsic('%Map%', true);
|
3082
|
+
|
3083
|
+
var $weakMapGet = callBound('WeakMap.prototype.get', true);
|
3084
|
+
var $weakMapSet = callBound('WeakMap.prototype.set', true);
|
3085
|
+
var $weakMapHas = callBound('WeakMap.prototype.has', true);
|
3086
|
+
var $mapGet = callBound('Map.prototype.get', true);
|
3087
|
+
var $mapSet = callBound('Map.prototype.set', true);
|
3088
|
+
var $mapHas = callBound('Map.prototype.has', true);
|
3089
|
+
|
3090
|
+
/*
|
3091
|
+
* This function traverses the list returning the node corresponding to the
|
3092
|
+
* given key.
|
3093
|
+
*
|
3094
|
+
* That node is also moved to the head of the list, so that if it's accessed
|
3095
|
+
* again we don't need to traverse the whole list. By doing so, all the recently
|
3096
|
+
* used nodes can be accessed relatively quickly.
|
3097
|
+
*/
|
3098
|
+
var listGetNode = function (list, key) { // eslint-disable-line consistent-return
|
3099
|
+
for (var prev = list, curr; (curr = prev.next) !== null; prev = curr) {
|
3100
|
+
if (curr.key === key) {
|
3101
|
+
prev.next = curr.next;
|
3102
|
+
curr.next = list.next;
|
3103
|
+
list.next = curr; // eslint-disable-line no-param-reassign
|
3104
|
+
return curr;
|
3105
|
+
}
|
3106
|
+
}
|
3107
|
+
};
|
3108
|
+
|
3109
|
+
var listGet = function (objects, key) {
|
3110
|
+
var node = listGetNode(objects, key);
|
3111
|
+
return node && node.value;
|
3112
|
+
};
|
3113
|
+
var listSet = function (objects, key, value) {
|
3114
|
+
var node = listGetNode(objects, key);
|
3115
|
+
if (node) {
|
3116
|
+
node.value = value;
|
3117
|
+
} else {
|
3118
|
+
// Prepend the new node to the beginning of the list
|
3119
|
+
objects.next = { // eslint-disable-line no-param-reassign
|
3120
|
+
key: key,
|
3121
|
+
next: objects.next,
|
3122
|
+
value: value
|
3123
|
+
};
|
3124
|
+
}
|
3125
|
+
};
|
3126
|
+
var listHas = function (objects, key) {
|
3127
|
+
return !!listGetNode(objects, key);
|
3128
|
+
};
|
3129
|
+
|
3130
|
+
var sideChannel = function getSideChannel() {
|
3131
|
+
var $wm;
|
3132
|
+
var $m;
|
3133
|
+
var $o;
|
3134
|
+
var channel = {
|
3135
|
+
assert: function (key) {
|
3136
|
+
if (!channel.has(key)) {
|
3137
|
+
throw new $TypeError('Side channel does not contain ' + objectInspect(key));
|
3138
|
+
}
|
3139
|
+
},
|
3140
|
+
get: function (key) { // eslint-disable-line consistent-return
|
3141
|
+
if ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) {
|
3142
|
+
if ($wm) {
|
3143
|
+
return $weakMapGet($wm, key);
|
3144
|
+
}
|
3145
|
+
} else if ($Map) {
|
3146
|
+
if ($m) {
|
3147
|
+
return $mapGet($m, key);
|
3148
|
+
}
|
3149
|
+
} else {
|
3150
|
+
if ($o) { // eslint-disable-line no-lonely-if
|
3151
|
+
return listGet($o, key);
|
3152
|
+
}
|
3153
|
+
}
|
3154
|
+
},
|
3155
|
+
has: function (key) {
|
3156
|
+
if ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) {
|
3157
|
+
if ($wm) {
|
3158
|
+
return $weakMapHas($wm, key);
|
3159
|
+
}
|
3160
|
+
} else if ($Map) {
|
3161
|
+
if ($m) {
|
3162
|
+
return $mapHas($m, key);
|
3163
|
+
}
|
3164
|
+
} else {
|
3165
|
+
if ($o) { // eslint-disable-line no-lonely-if
|
3166
|
+
return listHas($o, key);
|
3167
|
+
}
|
3168
|
+
}
|
3169
|
+
return false;
|
3170
|
+
},
|
3171
|
+
set: function (key, value) {
|
3172
|
+
if ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) {
|
3173
|
+
if (!$wm) {
|
3174
|
+
$wm = new $WeakMap();
|
3175
|
+
}
|
3176
|
+
$weakMapSet($wm, key, value);
|
3177
|
+
} else if ($Map) {
|
3178
|
+
if (!$m) {
|
3179
|
+
$m = new $Map();
|
3180
|
+
}
|
3181
|
+
$mapSet($m, key, value);
|
3182
|
+
} else {
|
3183
|
+
if (!$o) {
|
3184
|
+
/*
|
3185
|
+
* Initialize the linked list as an empty node, so that we don't have
|
3186
|
+
* to special-case handling of the first node: we can always refer to
|
3187
|
+
* it as (previous node).next, instead of something like (list).head
|
3188
|
+
*/
|
3189
|
+
$o = { key: {}, next: null };
|
3190
|
+
}
|
3191
|
+
listSet($o, key, value);
|
3192
|
+
}
|
3193
|
+
}
|
3194
|
+
};
|
3195
|
+
return channel;
|
3196
|
+
};
|
3197
|
+
|
3198
|
+
'use strict';
|
3199
|
+
|
3200
|
+
var replace = String.prototype.replace;
|
3201
|
+
var percentTwenties = /%20/g;
|
3202
|
+
|
3203
|
+
var Format = {
|
3204
|
+
RFC1738: 'RFC1738',
|
3205
|
+
RFC3986: 'RFC3986'
|
3206
|
+
};
|
3207
|
+
|
3208
|
+
var formats = {
|
3209
|
+
'default': Format.RFC3986,
|
3210
|
+
formatters: {
|
3211
|
+
RFC1738: function (value) {
|
3212
|
+
return replace.call(value, percentTwenties, '+');
|
3213
|
+
},
|
3214
|
+
RFC3986: function (value) {
|
3215
|
+
return String(value);
|
3216
|
+
}
|
3217
|
+
},
|
3218
|
+
RFC1738: Format.RFC1738,
|
3219
|
+
RFC3986: Format.RFC3986
|
3220
|
+
};
|
3221
|
+
|
3222
|
+
'use strict';
|
3223
|
+
|
3224
|
+
|
3225
|
+
|
3226
|
+
var has$2 = Object.prototype.hasOwnProperty;
|
3227
|
+
var isArray$2 = Array.isArray;
|
3228
|
+
|
3229
|
+
var hexTable = (function () {
|
3230
|
+
var array = [];
|
3231
|
+
for (var i = 0; i < 256; ++i) {
|
3232
|
+
array.push('%' + ((i < 16 ? '0' : '') + i.toString(16)).toUpperCase());
|
3233
|
+
}
|
3234
|
+
|
3235
|
+
return array;
|
3236
|
+
}());
|
3237
|
+
|
3238
|
+
var compactQueue = function compactQueue(queue) {
|
3239
|
+
while (queue.length > 1) {
|
3240
|
+
var item = queue.pop();
|
3241
|
+
var obj = item.obj[item.prop];
|
3242
|
+
|
3243
|
+
if (isArray$2(obj)) {
|
3244
|
+
var compacted = [];
|
3245
|
+
|
3246
|
+
for (var j = 0; j < obj.length; ++j) {
|
3247
|
+
if (typeof obj[j] !== 'undefined') {
|
3248
|
+
compacted.push(obj[j]);
|
3249
|
+
}
|
3250
|
+
}
|
3251
|
+
|
3252
|
+
item.obj[item.prop] = compacted;
|
3253
|
+
}
|
3254
|
+
}
|
3255
|
+
};
|
3256
|
+
|
3257
|
+
var arrayToObject = function arrayToObject(source, options) {
|
3258
|
+
var obj = options && options.plainObjects ? Object.create(null) : {};
|
3259
|
+
for (var i = 0; i < source.length; ++i) {
|
3260
|
+
if (typeof source[i] !== 'undefined') {
|
3261
|
+
obj[i] = source[i];
|
3262
|
+
}
|
3263
|
+
}
|
3264
|
+
|
3265
|
+
return obj;
|
3266
|
+
};
|
3267
|
+
|
3268
|
+
var merge = function merge(target, source, options) {
|
3269
|
+
/* eslint no-param-reassign: 0 */
|
3270
|
+
if (!source) {
|
3271
|
+
return target;
|
3272
|
+
}
|
3273
|
+
|
3274
|
+
if (typeof source !== 'object') {
|
3275
|
+
if (isArray$2(target)) {
|
3276
|
+
target.push(source);
|
3277
|
+
} else if (target && typeof target === 'object') {
|
3278
|
+
if ((options && (options.plainObjects || options.allowPrototypes)) || !has$2.call(Object.prototype, source)) {
|
3279
|
+
target[source] = true;
|
3280
|
+
}
|
3281
|
+
} else {
|
3282
|
+
return [target, source];
|
3283
|
+
}
|
3284
|
+
|
3285
|
+
return target;
|
3286
|
+
}
|
3287
|
+
|
3288
|
+
if (!target || typeof target !== 'object') {
|
3289
|
+
return [target].concat(source);
|
3290
|
+
}
|
3291
|
+
|
3292
|
+
var mergeTarget = target;
|
3293
|
+
if (isArray$2(target) && !isArray$2(source)) {
|
3294
|
+
mergeTarget = arrayToObject(target, options);
|
3295
|
+
}
|
3296
|
+
|
3297
|
+
if (isArray$2(target) && isArray$2(source)) {
|
3298
|
+
source.forEach(function (item, i) {
|
3299
|
+
if (has$2.call(target, i)) {
|
3300
|
+
var targetItem = target[i];
|
3301
|
+
if (targetItem && typeof targetItem === 'object' && item && typeof item === 'object') {
|
3302
|
+
target[i] = merge(targetItem, item, options);
|
3303
|
+
} else {
|
3304
|
+
target.push(item);
|
3305
|
+
}
|
3306
|
+
} else {
|
3307
|
+
target[i] = item;
|
3308
|
+
}
|
3309
|
+
});
|
3310
|
+
return target;
|
3311
|
+
}
|
3312
|
+
|
3313
|
+
return Object.keys(source).reduce(function (acc, key) {
|
3314
|
+
var value = source[key];
|
3315
|
+
|
3316
|
+
if (has$2.call(acc, key)) {
|
3317
|
+
acc[key] = merge(acc[key], value, options);
|
3318
|
+
} else {
|
3319
|
+
acc[key] = value;
|
3320
|
+
}
|
3321
|
+
return acc;
|
3322
|
+
}, mergeTarget);
|
3323
|
+
};
|
3324
|
+
|
3325
|
+
var assign = function assignSingleSource(target, source) {
|
3326
|
+
return Object.keys(source).reduce(function (acc, key) {
|
3327
|
+
acc[key] = source[key];
|
3328
|
+
return acc;
|
3329
|
+
}, target);
|
3330
|
+
};
|
3331
|
+
|
3332
|
+
var decode = function (str, decoder, charset) {
|
3333
|
+
var strWithoutPlus = str.replace(/\+/g, ' ');
|
3334
|
+
if (charset === 'iso-8859-1') {
|
3335
|
+
// unescape never throws, no try...catch needed:
|
3336
|
+
return strWithoutPlus.replace(/%[0-9a-f]{2}/gi, unescape);
|
3337
|
+
}
|
3338
|
+
// utf-8
|
3339
|
+
try {
|
3340
|
+
return decodeURIComponent(strWithoutPlus);
|
3341
|
+
} catch (e) {
|
3342
|
+
return strWithoutPlus;
|
3343
|
+
}
|
3344
|
+
};
|
3345
|
+
|
3346
|
+
var encode = function encode(str, defaultEncoder, charset, kind, format) {
|
3347
|
+
// This code was originally written by Brian White (mscdex) for the io.js core querystring library.
|
3348
|
+
// It has been adapted here for stricter adherence to RFC 3986
|
3349
|
+
if (str.length === 0) {
|
3350
|
+
return str;
|
3351
|
+
}
|
3352
|
+
|
3353
|
+
var string = str;
|
3354
|
+
if (typeof str === 'symbol') {
|
3355
|
+
string = Symbol.prototype.toString.call(str);
|
3356
|
+
} else if (typeof str !== 'string') {
|
3357
|
+
string = String(str);
|
3358
|
+
}
|
3359
|
+
|
3360
|
+
if (charset === 'iso-8859-1') {
|
3361
|
+
return escape(string).replace(/%u[0-9a-f]{4}/gi, function ($0) {
|
3362
|
+
return '%26%23' + parseInt($0.slice(2), 16) + '%3B';
|
3363
|
+
});
|
3364
|
+
}
|
3365
|
+
|
3366
|
+
var out = '';
|
3367
|
+
for (var i = 0; i < string.length; ++i) {
|
3368
|
+
var c = string.charCodeAt(i);
|
3369
|
+
|
3370
|
+
if (
|
3371
|
+
c === 0x2D // -
|
3372
|
+
|| c === 0x2E // .
|
3373
|
+
|| c === 0x5F // _
|
3374
|
+
|| c === 0x7E // ~
|
3375
|
+
|| (c >= 0x30 && c <= 0x39) // 0-9
|
3376
|
+
|| (c >= 0x41 && c <= 0x5A) // a-z
|
3377
|
+
|| (c >= 0x61 && c <= 0x7A) // A-Z
|
3378
|
+
|| (format === formats.RFC1738 && (c === 0x28 || c === 0x29)) // ( )
|
3379
|
+
) {
|
3380
|
+
out += string.charAt(i);
|
3381
|
+
continue;
|
3382
|
+
}
|
3383
|
+
|
3384
|
+
if (c < 0x80) {
|
3385
|
+
out = out + hexTable[c];
|
3386
|
+
continue;
|
3387
|
+
}
|
3388
|
+
|
3389
|
+
if (c < 0x800) {
|
3390
|
+
out = out + (hexTable[0xC0 | (c >> 6)] + hexTable[0x80 | (c & 0x3F)]);
|
3391
|
+
continue;
|
3392
|
+
}
|
3393
|
+
|
3394
|
+
if (c < 0xD800 || c >= 0xE000) {
|
3395
|
+
out = out + (hexTable[0xE0 | (c >> 12)] + hexTable[0x80 | ((c >> 6) & 0x3F)] + hexTable[0x80 | (c & 0x3F)]);
|
3396
|
+
continue;
|
3397
|
+
}
|
3398
|
+
|
3399
|
+
i += 1;
|
3400
|
+
c = 0x10000 + (((c & 0x3FF) << 10) | (string.charCodeAt(i) & 0x3FF));
|
3401
|
+
/* eslint operator-linebreak: [2, "before"] */
|
3402
|
+
out += hexTable[0xF0 | (c >> 18)]
|
3403
|
+
+ hexTable[0x80 | ((c >> 12) & 0x3F)]
|
3404
|
+
+ hexTable[0x80 | ((c >> 6) & 0x3F)]
|
3405
|
+
+ hexTable[0x80 | (c & 0x3F)];
|
3406
|
+
}
|
3407
|
+
|
3408
|
+
return out;
|
3409
|
+
};
|
3410
|
+
|
3411
|
+
var compact = function compact(value) {
|
3412
|
+
var queue = [{ obj: { o: value }, prop: 'o' }];
|
3413
|
+
var refs = [];
|
3414
|
+
|
3415
|
+
for (var i = 0; i < queue.length; ++i) {
|
3416
|
+
var item = queue[i];
|
3417
|
+
var obj = item.obj[item.prop];
|
3418
|
+
|
3419
|
+
var keys = Object.keys(obj);
|
3420
|
+
for (var j = 0; j < keys.length; ++j) {
|
3421
|
+
var key = keys[j];
|
3422
|
+
var val = obj[key];
|
3423
|
+
if (typeof val === 'object' && val !== null && refs.indexOf(val) === -1) {
|
3424
|
+
queue.push({ obj: obj, prop: key });
|
3425
|
+
refs.push(val);
|
3426
|
+
}
|
3427
|
+
}
|
3428
|
+
}
|
3429
|
+
|
3430
|
+
compactQueue(queue);
|
3431
|
+
|
3432
|
+
return value;
|
3433
|
+
};
|
3434
|
+
|
3435
|
+
var isRegExp = function isRegExp(obj) {
|
3436
|
+
return Object.prototype.toString.call(obj) === '[object RegExp]';
|
3437
|
+
};
|
3438
|
+
|
3439
|
+
var isBuffer = function isBuffer(obj) {
|
3440
|
+
if (!obj || typeof obj !== 'object') {
|
3441
|
+
return false;
|
3442
|
+
}
|
3443
|
+
|
3444
|
+
return !!(obj.constructor && obj.constructor.isBuffer && obj.constructor.isBuffer(obj));
|
3445
|
+
};
|
3446
|
+
|
3447
|
+
var combine = function combine(a, b) {
|
3448
|
+
return [].concat(a, b);
|
3449
|
+
};
|
3450
|
+
|
3451
|
+
var maybeMap = function maybeMap(val, fn) {
|
3452
|
+
if (isArray$2(val)) {
|
3453
|
+
var mapped = [];
|
3454
|
+
for (var i = 0; i < val.length; i += 1) {
|
3455
|
+
mapped.push(fn(val[i]));
|
3456
|
+
}
|
3457
|
+
return mapped;
|
3458
|
+
}
|
3459
|
+
return fn(val);
|
3460
|
+
};
|
3461
|
+
|
3462
|
+
var utils = {
|
3463
|
+
arrayToObject: arrayToObject,
|
3464
|
+
assign: assign,
|
3465
|
+
combine: combine,
|
3466
|
+
compact: compact,
|
3467
|
+
decode: decode,
|
3468
|
+
encode: encode,
|
3469
|
+
isBuffer: isBuffer,
|
3470
|
+
isRegExp: isRegExp,
|
3471
|
+
maybeMap: maybeMap,
|
3472
|
+
merge: merge
|
3473
|
+
};
|
3474
|
+
|
3475
|
+
'use strict';
|
3476
|
+
|
3477
|
+
|
3478
|
+
|
3479
|
+
|
3480
|
+
var has$1 = Object.prototype.hasOwnProperty;
|
3481
|
+
|
3482
|
+
var arrayPrefixGenerators = {
|
3483
|
+
brackets: function brackets(prefix) {
|
3484
|
+
return prefix + '[]';
|
3485
|
+
},
|
3486
|
+
comma: 'comma',
|
3487
|
+
indices: function indices(prefix, key) {
|
3488
|
+
return prefix + '[' + key + ']';
|
3489
|
+
},
|
3490
|
+
repeat: function repeat(prefix) {
|
3491
|
+
return prefix;
|
3492
|
+
}
|
3493
|
+
};
|
3494
|
+
|
3495
|
+
var isArray$1 = Array.isArray;
|
3496
|
+
var split = String.prototype.split;
|
3497
|
+
var push = Array.prototype.push;
|
3498
|
+
var pushToArray = function (arr, valueOrArray) {
|
3499
|
+
push.apply(arr, isArray$1(valueOrArray) ? valueOrArray : [valueOrArray]);
|
3500
|
+
};
|
3501
|
+
|
3502
|
+
var toISO = Date.prototype.toISOString;
|
3503
|
+
|
3504
|
+
var defaultFormat = formats['default'];
|
3505
|
+
var defaults$1 = {
|
3506
|
+
addQueryPrefix: false,
|
3507
|
+
allowDots: false,
|
3508
|
+
charset: 'utf-8',
|
3509
|
+
charsetSentinel: false,
|
3510
|
+
delimiter: '&',
|
3511
|
+
encode: true,
|
3512
|
+
encoder: utils.encode,
|
3513
|
+
encodeValuesOnly: false,
|
3514
|
+
format: defaultFormat,
|
3515
|
+
formatter: formats.formatters[defaultFormat],
|
3516
|
+
// deprecated
|
3517
|
+
indices: false,
|
3518
|
+
serializeDate: function serializeDate(date) {
|
3519
|
+
return toISO.call(date);
|
3520
|
+
},
|
3521
|
+
skipNulls: false,
|
3522
|
+
strictNullHandling: false
|
3523
|
+
};
|
3524
|
+
|
3525
|
+
var isNonNullishPrimitive = function isNonNullishPrimitive(v) {
|
3526
|
+
return typeof v === 'string'
|
3527
|
+
|| typeof v === 'number'
|
3528
|
+
|| typeof v === 'boolean'
|
3529
|
+
|| typeof v === 'symbol'
|
3530
|
+
|| typeof v === 'bigint';
|
3531
|
+
};
|
3532
|
+
|
3533
|
+
var sentinel = {};
|
3534
|
+
|
3535
|
+
var stringify = function stringify(
|
3536
|
+
object,
|
3537
|
+
prefix,
|
3538
|
+
generateArrayPrefix,
|
3539
|
+
strictNullHandling,
|
3540
|
+
skipNulls,
|
3541
|
+
encoder,
|
3542
|
+
filter,
|
3543
|
+
sort,
|
3544
|
+
allowDots,
|
3545
|
+
serializeDate,
|
3546
|
+
format,
|
3547
|
+
formatter,
|
3548
|
+
encodeValuesOnly,
|
3549
|
+
charset,
|
3550
|
+
sideChannel$1
|
3551
|
+
) {
|
3552
|
+
var obj = object;
|
3553
|
+
|
3554
|
+
var tmpSc = sideChannel$1;
|
3555
|
+
var step = 0;
|
3556
|
+
var findFlag = false;
|
3557
|
+
while ((tmpSc = tmpSc.get(sentinel)) !== void undefined && !findFlag) {
|
3558
|
+
// Where object last appeared in the ref tree
|
3559
|
+
var pos = tmpSc.get(object);
|
3560
|
+
step += 1;
|
3561
|
+
if (typeof pos !== 'undefined') {
|
3562
|
+
if (pos === step) {
|
3563
|
+
throw new RangeError('Cyclic object value');
|
3564
|
+
} else {
|
3565
|
+
findFlag = true; // Break while
|
3566
|
+
}
|
3567
|
+
}
|
3568
|
+
if (typeof tmpSc.get(sentinel) === 'undefined') {
|
3569
|
+
step = 0;
|
3570
|
+
}
|
3571
|
+
}
|
3572
|
+
|
3573
|
+
if (typeof filter === 'function') {
|
3574
|
+
obj = filter(prefix, obj);
|
3575
|
+
} else if (obj instanceof Date) {
|
3576
|
+
obj = serializeDate(obj);
|
3577
|
+
} else if (generateArrayPrefix === 'comma' && isArray$1(obj)) {
|
3578
|
+
obj = utils.maybeMap(obj, function (value) {
|
3579
|
+
if (value instanceof Date) {
|
3580
|
+
return serializeDate(value);
|
3581
|
+
}
|
3582
|
+
return value;
|
3583
|
+
});
|
3584
|
+
}
|
3585
|
+
|
3586
|
+
if (obj === null) {
|
3587
|
+
if (strictNullHandling) {
|
3588
|
+
return encoder && !encodeValuesOnly ? encoder(prefix, defaults$1.encoder, charset, 'key', format) : prefix;
|
3589
|
+
}
|
3590
|
+
|
3591
|
+
obj = '';
|
3592
|
+
}
|
3593
|
+
|
3594
|
+
if (isNonNullishPrimitive(obj) || utils.isBuffer(obj)) {
|
3595
|
+
if (encoder) {
|
3596
|
+
var keyValue = encodeValuesOnly ? prefix : encoder(prefix, defaults$1.encoder, charset, 'key', format);
|
3597
|
+
if (generateArrayPrefix === 'comma' && encodeValuesOnly) {
|
3598
|
+
var valuesArray = split.call(String(obj), ',');
|
3599
|
+
var valuesJoined = '';
|
3600
|
+
for (var i = 0; i < valuesArray.length; ++i) {
|
3601
|
+
valuesJoined += (i === 0 ? '' : ',') + formatter(encoder(valuesArray[i], defaults$1.encoder, charset, 'value', format));
|
3602
|
+
}
|
3603
|
+
return [formatter(keyValue) + '=' + valuesJoined];
|
3604
|
+
}
|
3605
|
+
return [formatter(keyValue) + '=' + formatter(encoder(obj, defaults$1.encoder, charset, 'value', format))];
|
3606
|
+
}
|
3607
|
+
return [formatter(prefix) + '=' + formatter(String(obj))];
|
3608
|
+
}
|
3609
|
+
|
3610
|
+
var values = [];
|
3611
|
+
|
3612
|
+
if (typeof obj === 'undefined') {
|
3613
|
+
return values;
|
3614
|
+
}
|
3615
|
+
|
3616
|
+
var objKeys;
|
3617
|
+
if (generateArrayPrefix === 'comma' && isArray$1(obj)) {
|
3618
|
+
// we need to join elements in
|
3619
|
+
objKeys = [{ value: obj.length > 0 ? obj.join(',') || null : void undefined }];
|
3620
|
+
} else if (isArray$1(filter)) {
|
3621
|
+
objKeys = filter;
|
3622
|
+
} else {
|
3623
|
+
var keys = Object.keys(obj);
|
3624
|
+
objKeys = sort ? keys.sort(sort) : keys;
|
3625
|
+
}
|
3626
|
+
|
3627
|
+
for (var j = 0; j < objKeys.length; ++j) {
|
3628
|
+
var key = objKeys[j];
|
3629
|
+
var value = typeof key === 'object' && typeof key.value !== 'undefined' ? key.value : obj[key];
|
3630
|
+
|
3631
|
+
if (skipNulls && value === null) {
|
3632
|
+
continue;
|
3633
|
+
}
|
3634
|
+
|
3635
|
+
var keyPrefix = isArray$1(obj)
|
3636
|
+
? typeof generateArrayPrefix === 'function' ? generateArrayPrefix(prefix, key) : prefix
|
3637
|
+
: prefix + (allowDots ? '.' + key : '[' + key + ']');
|
3638
|
+
|
3639
|
+
sideChannel$1.set(object, step);
|
3640
|
+
var valueSideChannel = sideChannel();
|
3641
|
+
valueSideChannel.set(sentinel, sideChannel$1);
|
3642
|
+
pushToArray(values, stringify(
|
3643
|
+
value,
|
3644
|
+
keyPrefix,
|
3645
|
+
generateArrayPrefix,
|
3646
|
+
strictNullHandling,
|
3647
|
+
skipNulls,
|
3648
|
+
encoder,
|
3649
|
+
filter,
|
3650
|
+
sort,
|
3651
|
+
allowDots,
|
3652
|
+
serializeDate,
|
3653
|
+
format,
|
3654
|
+
formatter,
|
3655
|
+
encodeValuesOnly,
|
3656
|
+
charset,
|
3657
|
+
valueSideChannel
|
3658
|
+
));
|
3659
|
+
}
|
3660
|
+
|
3661
|
+
return values;
|
3662
|
+
};
|
3663
|
+
|
3664
|
+
var normalizeStringifyOptions = function normalizeStringifyOptions(opts) {
|
3665
|
+
if (!opts) {
|
3666
|
+
return defaults$1;
|
3667
|
+
}
|
3668
|
+
|
3669
|
+
if (opts.encoder !== null && typeof opts.encoder !== 'undefined' && typeof opts.encoder !== 'function') {
|
3670
|
+
throw new TypeError('Encoder has to be a function.');
|
3671
|
+
}
|
3672
|
+
|
3673
|
+
var charset = opts.charset || defaults$1.charset;
|
3674
|
+
if (typeof opts.charset !== 'undefined' && opts.charset !== 'utf-8' && opts.charset !== 'iso-8859-1') {
|
3675
|
+
throw new TypeError('The charset option must be either utf-8, iso-8859-1, or undefined');
|
3676
|
+
}
|
3677
|
+
|
3678
|
+
var format = formats['default'];
|
3679
|
+
if (typeof opts.format !== 'undefined') {
|
3680
|
+
if (!has$1.call(formats.formatters, opts.format)) {
|
3681
|
+
throw new TypeError('Unknown format option provided.');
|
3682
|
+
}
|
3683
|
+
format = opts.format;
|
3684
|
+
}
|
3685
|
+
var formatter = formats.formatters[format];
|
3686
|
+
|
3687
|
+
var filter = defaults$1.filter;
|
3688
|
+
if (typeof opts.filter === 'function' || isArray$1(opts.filter)) {
|
3689
|
+
filter = opts.filter;
|
3690
|
+
}
|
3691
|
+
|
3692
|
+
return {
|
3693
|
+
addQueryPrefix: typeof opts.addQueryPrefix === 'boolean' ? opts.addQueryPrefix : defaults$1.addQueryPrefix,
|
3694
|
+
allowDots: typeof opts.allowDots === 'undefined' ? defaults$1.allowDots : !!opts.allowDots,
|
3695
|
+
charset: charset,
|
3696
|
+
charsetSentinel: typeof opts.charsetSentinel === 'boolean' ? opts.charsetSentinel : defaults$1.charsetSentinel,
|
3697
|
+
delimiter: typeof opts.delimiter === 'undefined' ? defaults$1.delimiter : opts.delimiter,
|
3698
|
+
encode: typeof opts.encode === 'boolean' ? opts.encode : defaults$1.encode,
|
3699
|
+
encoder: typeof opts.encoder === 'function' ? opts.encoder : defaults$1.encoder,
|
3700
|
+
encodeValuesOnly: typeof opts.encodeValuesOnly === 'boolean' ? opts.encodeValuesOnly : defaults$1.encodeValuesOnly,
|
3701
|
+
filter: filter,
|
3702
|
+
format: format,
|
3703
|
+
formatter: formatter,
|
3704
|
+
serializeDate: typeof opts.serializeDate === 'function' ? opts.serializeDate : defaults$1.serializeDate,
|
3705
|
+
skipNulls: typeof opts.skipNulls === 'boolean' ? opts.skipNulls : defaults$1.skipNulls,
|
3706
|
+
sort: typeof opts.sort === 'function' ? opts.sort : null,
|
3707
|
+
strictNullHandling: typeof opts.strictNullHandling === 'boolean' ? opts.strictNullHandling : defaults$1.strictNullHandling
|
3708
|
+
};
|
3709
|
+
};
|
3710
|
+
|
3711
|
+
var stringify_1 = function (object, opts) {
|
3712
|
+
var obj = object;
|
3713
|
+
var options = normalizeStringifyOptions(opts);
|
3714
|
+
|
3715
|
+
var objKeys;
|
3716
|
+
var filter;
|
3717
|
+
|
3718
|
+
if (typeof options.filter === 'function') {
|
3719
|
+
filter = options.filter;
|
3720
|
+
obj = filter('', obj);
|
3721
|
+
} else if (isArray$1(options.filter)) {
|
3722
|
+
filter = options.filter;
|
3723
|
+
objKeys = filter;
|
3724
|
+
}
|
3725
|
+
|
3726
|
+
var keys = [];
|
3727
|
+
|
3728
|
+
if (typeof obj !== 'object' || obj === null) {
|
3729
|
+
return '';
|
3730
|
+
}
|
3731
|
+
|
3732
|
+
var arrayFormat;
|
3733
|
+
if (opts && opts.arrayFormat in arrayPrefixGenerators) {
|
3734
|
+
arrayFormat = opts.arrayFormat;
|
3735
|
+
} else if (opts && 'indices' in opts) {
|
3736
|
+
arrayFormat = opts.indices ? 'indices' : 'repeat';
|
3737
|
+
} else {
|
3738
|
+
arrayFormat = 'indices';
|
3739
|
+
}
|
3740
|
+
|
3741
|
+
var generateArrayPrefix = arrayPrefixGenerators[arrayFormat];
|
3742
|
+
|
3743
|
+
if (!objKeys) {
|
3744
|
+
objKeys = Object.keys(obj);
|
3745
|
+
}
|
3746
|
+
|
3747
|
+
if (options.sort) {
|
3748
|
+
objKeys.sort(options.sort);
|
3749
|
+
}
|
3750
|
+
|
3751
|
+
var sideChannel$1 = sideChannel();
|
3752
|
+
for (var i = 0; i < objKeys.length; ++i) {
|
3753
|
+
var key = objKeys[i];
|
3754
|
+
|
3755
|
+
if (options.skipNulls && obj[key] === null) {
|
3756
|
+
continue;
|
3757
|
+
}
|
3758
|
+
pushToArray(keys, stringify(
|
3759
|
+
obj[key],
|
3760
|
+
key,
|
3761
|
+
generateArrayPrefix,
|
3762
|
+
options.strictNullHandling,
|
3763
|
+
options.skipNulls,
|
3764
|
+
options.encode ? options.encoder : null,
|
3765
|
+
options.filter,
|
3766
|
+
options.sort,
|
3767
|
+
options.allowDots,
|
3768
|
+
options.serializeDate,
|
3769
|
+
options.format,
|
3770
|
+
options.formatter,
|
3771
|
+
options.encodeValuesOnly,
|
3772
|
+
options.charset,
|
3773
|
+
sideChannel$1
|
3774
|
+
));
|
3775
|
+
}
|
3776
|
+
|
3777
|
+
var joined = keys.join(options.delimiter);
|
3778
|
+
var prefix = options.addQueryPrefix === true ? '?' : '';
|
3779
|
+
|
3780
|
+
if (options.charsetSentinel) {
|
3781
|
+
if (options.charset === 'iso-8859-1') {
|
3782
|
+
// encodeURIComponent('✓'), the "numeric entity" representation of a checkmark
|
3783
|
+
prefix += 'utf8=%26%2310003%3B&';
|
3784
|
+
} else {
|
3785
|
+
// encodeURIComponent('✓')
|
3786
|
+
prefix += 'utf8=%E2%9C%93&';
|
3787
|
+
}
|
3788
|
+
}
|
3789
|
+
|
3790
|
+
return joined.length > 0 ? prefix + joined : '';
|
3791
|
+
};
|
3792
|
+
|
3793
|
+
'use strict';
|
3794
|
+
|
3795
|
+
|
3796
|
+
|
3797
|
+
var has = Object.prototype.hasOwnProperty;
|
3798
|
+
var isArray = Array.isArray;
|
3799
|
+
|
3800
|
+
var defaults = {
|
3801
|
+
allowDots: false,
|
3802
|
+
allowPrototypes: false,
|
3803
|
+
allowSparse: false,
|
3804
|
+
arrayLimit: 20,
|
3805
|
+
charset: 'utf-8',
|
3806
|
+
charsetSentinel: false,
|
3807
|
+
comma: false,
|
3808
|
+
decoder: utils.decode,
|
3809
|
+
delimiter: '&',
|
3810
|
+
depth: 5,
|
3811
|
+
ignoreQueryPrefix: false,
|
3812
|
+
interpretNumericEntities: false,
|
3813
|
+
parameterLimit: 1000,
|
3814
|
+
parseArrays: true,
|
3815
|
+
plainObjects: false,
|
3816
|
+
strictNullHandling: false
|
3817
|
+
};
|
3818
|
+
|
3819
|
+
var interpretNumericEntities = function (str) {
|
3820
|
+
return str.replace(/&#(\d+);/g, function ($0, numberStr) {
|
3821
|
+
return String.fromCharCode(parseInt(numberStr, 10));
|
3822
|
+
});
|
3823
|
+
};
|
3824
|
+
|
3825
|
+
var parseArrayValue = function (val, options) {
|
3826
|
+
if (val && typeof val === 'string' && options.comma && val.indexOf(',') > -1) {
|
3827
|
+
return val.split(',');
|
3828
|
+
}
|
3829
|
+
|
3830
|
+
return val;
|
3831
|
+
};
|
3832
|
+
|
3833
|
+
// This is what browsers will submit when the ✓ character occurs in an
|
3834
|
+
// application/x-www-form-urlencoded body and the encoding of the page containing
|
3835
|
+
// the form is iso-8859-1, or when the submitted form has an accept-charset
|
3836
|
+
// attribute of iso-8859-1. Presumably also with other charsets that do not contain
|
3837
|
+
// the ✓ character, such as us-ascii.
|
3838
|
+
var isoSentinel = 'utf8=%26%2310003%3B'; // encodeURIComponent('✓')
|
3839
|
+
|
3840
|
+
// These are the percent-encoded utf-8 octets representing a checkmark, indicating that the request actually is utf-8 encoded.
|
3841
|
+
var charsetSentinel = 'utf8=%E2%9C%93'; // encodeURIComponent('✓')
|
3842
|
+
|
3843
|
+
var parseValues = function parseQueryStringValues(str, options) {
|
3844
|
+
var obj = {};
|
3845
|
+
var cleanStr = options.ignoreQueryPrefix ? str.replace(/^\?/, '') : str;
|
3846
|
+
var limit = options.parameterLimit === Infinity ? undefined : options.parameterLimit;
|
3847
|
+
var parts = cleanStr.split(options.delimiter, limit);
|
3848
|
+
var skipIndex = -1; // Keep track of where the utf8 sentinel was found
|
3849
|
+
var i;
|
3850
|
+
|
3851
|
+
var charset = options.charset;
|
3852
|
+
if (options.charsetSentinel) {
|
3853
|
+
for (i = 0; i < parts.length; ++i) {
|
3854
|
+
if (parts[i].indexOf('utf8=') === 0) {
|
3855
|
+
if (parts[i] === charsetSentinel) {
|
3856
|
+
charset = 'utf-8';
|
3857
|
+
} else if (parts[i] === isoSentinel) {
|
3858
|
+
charset = 'iso-8859-1';
|
3859
|
+
}
|
3860
|
+
skipIndex = i;
|
3861
|
+
i = parts.length; // The eslint settings do not allow break;
|
3862
|
+
}
|
3863
|
+
}
|
3864
|
+
}
|
3865
|
+
|
3866
|
+
for (i = 0; i < parts.length; ++i) {
|
3867
|
+
if (i === skipIndex) {
|
3868
|
+
continue;
|
3869
|
+
}
|
3870
|
+
var part = parts[i];
|
3871
|
+
|
3872
|
+
var bracketEqualsPos = part.indexOf(']=');
|
3873
|
+
var pos = bracketEqualsPos === -1 ? part.indexOf('=') : bracketEqualsPos + 1;
|
3874
|
+
|
3875
|
+
var key, val;
|
3876
|
+
if (pos === -1) {
|
3877
|
+
key = options.decoder(part, defaults.decoder, charset, 'key');
|
3878
|
+
val = options.strictNullHandling ? null : '';
|
3879
|
+
} else {
|
3880
|
+
key = options.decoder(part.slice(0, pos), defaults.decoder, charset, 'key');
|
3881
|
+
val = utils.maybeMap(
|
3882
|
+
parseArrayValue(part.slice(pos + 1), options),
|
3883
|
+
function (encodedVal) {
|
3884
|
+
return options.decoder(encodedVal, defaults.decoder, charset, 'value');
|
3885
|
+
}
|
3886
|
+
);
|
3887
|
+
}
|
3888
|
+
|
3889
|
+
if (val && options.interpretNumericEntities && charset === 'iso-8859-1') {
|
3890
|
+
val = interpretNumericEntities(val);
|
3891
|
+
}
|
3892
|
+
|
3893
|
+
if (part.indexOf('[]=') > -1) {
|
3894
|
+
val = isArray(val) ? [val] : val;
|
3895
|
+
}
|
3896
|
+
|
3897
|
+
if (has.call(obj, key)) {
|
3898
|
+
obj[key] = utils.combine(obj[key], val);
|
3899
|
+
} else {
|
3900
|
+
obj[key] = val;
|
3901
|
+
}
|
3902
|
+
}
|
3903
|
+
|
3904
|
+
return obj;
|
3905
|
+
};
|
3906
|
+
|
3907
|
+
var parseObject = function (chain, val, options, valuesParsed) {
|
3908
|
+
var leaf = valuesParsed ? val : parseArrayValue(val, options);
|
3909
|
+
|
3910
|
+
for (var i = chain.length - 1; i >= 0; --i) {
|
3911
|
+
var obj;
|
3912
|
+
var root = chain[i];
|
3913
|
+
|
3914
|
+
if (root === '[]' && options.parseArrays) {
|
3915
|
+
obj = [].concat(leaf);
|
3916
|
+
} else {
|
3917
|
+
obj = options.plainObjects ? Object.create(null) : {};
|
3918
|
+
var cleanRoot = root.charAt(0) === '[' && root.charAt(root.length - 1) === ']' ? root.slice(1, -1) : root;
|
3919
|
+
var index = parseInt(cleanRoot, 10);
|
3920
|
+
if (!options.parseArrays && cleanRoot === '') {
|
3921
|
+
obj = { 0: leaf };
|
3922
|
+
} else if (
|
3923
|
+
!isNaN(index)
|
3924
|
+
&& root !== cleanRoot
|
3925
|
+
&& String(index) === cleanRoot
|
3926
|
+
&& index >= 0
|
3927
|
+
&& (options.parseArrays && index <= options.arrayLimit)
|
3928
|
+
) {
|
3929
|
+
obj = [];
|
3930
|
+
obj[index] = leaf;
|
3931
|
+
} else if (cleanRoot !== '__proto__') {
|
3932
|
+
obj[cleanRoot] = leaf;
|
3933
|
+
}
|
3934
|
+
}
|
3935
|
+
|
3936
|
+
leaf = obj;
|
3937
|
+
}
|
3938
|
+
|
3939
|
+
return leaf;
|
3940
|
+
};
|
3941
|
+
|
3942
|
+
var parseKeys = function parseQueryStringKeys(givenKey, val, options, valuesParsed) {
|
3943
|
+
if (!givenKey) {
|
3944
|
+
return;
|
3945
|
+
}
|
3946
|
+
|
3947
|
+
// Transform dot notation to bracket notation
|
3948
|
+
var key = options.allowDots ? givenKey.replace(/\.([^.[]+)/g, '[$1]') : givenKey;
|
3949
|
+
|
3950
|
+
// The regex chunks
|
3951
|
+
|
3952
|
+
var brackets = /(\[[^[\]]*])/;
|
3953
|
+
var child = /(\[[^[\]]*])/g;
|
3954
|
+
|
3955
|
+
// Get the parent
|
3956
|
+
|
3957
|
+
var segment = options.depth > 0 && brackets.exec(key);
|
3958
|
+
var parent = segment ? key.slice(0, segment.index) : key;
|
3959
|
+
|
3960
|
+
// Stash the parent if it exists
|
3961
|
+
|
3962
|
+
var keys = [];
|
3963
|
+
if (parent) {
|
3964
|
+
// If we aren't using plain objects, optionally prefix keys that would overwrite object prototype properties
|
3965
|
+
if (!options.plainObjects && has.call(Object.prototype, parent)) {
|
3966
|
+
if (!options.allowPrototypes) {
|
3967
|
+
return;
|
3968
|
+
}
|
3969
|
+
}
|
3970
|
+
|
3971
|
+
keys.push(parent);
|
3972
|
+
}
|
3973
|
+
|
3974
|
+
// Loop through children appending to the array until we hit depth
|
3975
|
+
|
3976
|
+
var i = 0;
|
3977
|
+
while (options.depth > 0 && (segment = child.exec(key)) !== null && i < options.depth) {
|
3978
|
+
i += 1;
|
3979
|
+
if (!options.plainObjects && has.call(Object.prototype, segment[1].slice(1, -1))) {
|
3980
|
+
if (!options.allowPrototypes) {
|
3981
|
+
return;
|
3982
|
+
}
|
3983
|
+
}
|
3984
|
+
keys.push(segment[1]);
|
3985
|
+
}
|
3986
|
+
|
3987
|
+
// If there's a remainder, just add whatever is left
|
3988
|
+
|
3989
|
+
if (segment) {
|
3990
|
+
keys.push('[' + key.slice(segment.index) + ']');
|
3991
|
+
}
|
3992
|
+
|
3993
|
+
return parseObject(keys, val, options, valuesParsed);
|
3994
|
+
};
|
3995
|
+
|
3996
|
+
var normalizeParseOptions = function normalizeParseOptions(opts) {
|
3997
|
+
if (!opts) {
|
3998
|
+
return defaults;
|
3999
|
+
}
|
4000
|
+
|
4001
|
+
if (opts.decoder !== null && opts.decoder !== undefined && typeof opts.decoder !== 'function') {
|
4002
|
+
throw new TypeError('Decoder has to be a function.');
|
4003
|
+
}
|
4004
|
+
|
4005
|
+
if (typeof opts.charset !== 'undefined' && opts.charset !== 'utf-8' && opts.charset !== 'iso-8859-1') {
|
4006
|
+
throw new TypeError('The charset option must be either utf-8, iso-8859-1, or undefined');
|
4007
|
+
}
|
4008
|
+
var charset = typeof opts.charset === 'undefined' ? defaults.charset : opts.charset;
|
4009
|
+
|
4010
|
+
return {
|
4011
|
+
allowDots: typeof opts.allowDots === 'undefined' ? defaults.allowDots : !!opts.allowDots,
|
4012
|
+
allowPrototypes: typeof opts.allowPrototypes === 'boolean' ? opts.allowPrototypes : defaults.allowPrototypes,
|
4013
|
+
allowSparse: typeof opts.allowSparse === 'boolean' ? opts.allowSparse : defaults.allowSparse,
|
4014
|
+
arrayLimit: typeof opts.arrayLimit === 'number' ? opts.arrayLimit : defaults.arrayLimit,
|
4015
|
+
charset: charset,
|
4016
|
+
charsetSentinel: typeof opts.charsetSentinel === 'boolean' ? opts.charsetSentinel : defaults.charsetSentinel,
|
4017
|
+
comma: typeof opts.comma === 'boolean' ? opts.comma : defaults.comma,
|
4018
|
+
decoder: typeof opts.decoder === 'function' ? opts.decoder : defaults.decoder,
|
4019
|
+
delimiter: typeof opts.delimiter === 'string' || utils.isRegExp(opts.delimiter) ? opts.delimiter : defaults.delimiter,
|
4020
|
+
// eslint-disable-next-line no-implicit-coercion, no-extra-parens
|
4021
|
+
depth: (typeof opts.depth === 'number' || opts.depth === false) ? +opts.depth : defaults.depth,
|
4022
|
+
ignoreQueryPrefix: opts.ignoreQueryPrefix === true,
|
4023
|
+
interpretNumericEntities: typeof opts.interpretNumericEntities === 'boolean' ? opts.interpretNumericEntities : defaults.interpretNumericEntities,
|
4024
|
+
parameterLimit: typeof opts.parameterLimit === 'number' ? opts.parameterLimit : defaults.parameterLimit,
|
4025
|
+
parseArrays: opts.parseArrays !== false,
|
4026
|
+
plainObjects: typeof opts.plainObjects === 'boolean' ? opts.plainObjects : defaults.plainObjects,
|
4027
|
+
strictNullHandling: typeof opts.strictNullHandling === 'boolean' ? opts.strictNullHandling : defaults.strictNullHandling
|
4028
|
+
};
|
4029
|
+
};
|
4030
|
+
|
4031
|
+
var parse = function (str, opts) {
|
4032
|
+
var options = normalizeParseOptions(opts);
|
4033
|
+
|
4034
|
+
if (str === '' || str === null || typeof str === 'undefined') {
|
4035
|
+
return options.plainObjects ? Object.create(null) : {};
|
4036
|
+
}
|
4037
|
+
|
4038
|
+
var tempObj = typeof str === 'string' ? parseValues(str, options) : str;
|
4039
|
+
var obj = options.plainObjects ? Object.create(null) : {};
|
4040
|
+
|
4041
|
+
// Iterate over the keys and setup the new object
|
4042
|
+
|
4043
|
+
var keys = Object.keys(tempObj);
|
4044
|
+
for (var i = 0; i < keys.length; ++i) {
|
4045
|
+
var key = keys[i];
|
4046
|
+
var newObj = parseKeys(key, tempObj[key], options, typeof str === 'string');
|
4047
|
+
obj = utils.merge(obj, newObj, options);
|
4048
|
+
}
|
4049
|
+
|
4050
|
+
if (options.allowSparse === true) {
|
4051
|
+
return obj;
|
4052
|
+
}
|
4053
|
+
|
4054
|
+
return utils.compact(obj);
|
4055
|
+
};
|
4056
|
+
|
4057
|
+
'use strict';
|
4058
|
+
|
4059
|
+
|
4060
|
+
|
4061
|
+
|
4062
|
+
|
4063
|
+
var lib = {
|
4064
|
+
formats: formats,
|
4065
|
+
parse: parse,
|
4066
|
+
stringify: stringify_1
|
4067
|
+
};
|
4068
|
+
|
4069
|
+
const appendToMap = (map, propName, value) => {
|
4070
|
+
const items = map.get(propName);
|
4071
|
+
if (!items) {
|
4072
|
+
map.set(propName, [value]);
|
4073
|
+
}
|
4074
|
+
else if (!items.includes(value)) {
|
4075
|
+
items.push(value);
|
4076
|
+
}
|
4077
|
+
};
|
4078
|
+
const debounce = (fn, ms) => {
|
4079
|
+
let timeoutId;
|
4080
|
+
return (...args) => {
|
4081
|
+
if (timeoutId) {
|
4082
|
+
clearTimeout(timeoutId);
|
4083
|
+
}
|
4084
|
+
timeoutId = setTimeout(() => {
|
4085
|
+
timeoutId = 0;
|
4086
|
+
fn(...args);
|
4087
|
+
}, ms);
|
4088
|
+
};
|
4089
|
+
};
|
4090
|
+
|
4091
|
+
/**
|
4092
|
+
* Check if a possible element isConnected.
|
4093
|
+
* The property might not be there, so we check for it.
|
4094
|
+
*
|
4095
|
+
* We want it to return true if isConnected is not a property,
|
4096
|
+
* otherwise we would remove these elements and would not update.
|
4097
|
+
*
|
4098
|
+
* Better leak in Edge than to be useless.
|
4099
|
+
*/
|
4100
|
+
const isConnected = (maybeElement) => !('isConnected' in maybeElement) || maybeElement.isConnected;
|
4101
|
+
const cleanupElements = debounce((map) => {
|
4102
|
+
for (let key of map.keys()) {
|
4103
|
+
map.set(key, map.get(key).filter(isConnected));
|
4104
|
+
}
|
4105
|
+
}, 2000);
|
4106
|
+
const stencilSubscription = () => {
|
4107
|
+
if (typeof getRenderingRef !== 'function') {
|
4108
|
+
// If we are not in a stencil project, we do nothing.
|
4109
|
+
// This function is not really exported by @stencil/core.
|
4110
|
+
return {};
|
4111
|
+
}
|
4112
|
+
const elmsToUpdate = new Map();
|
4113
|
+
return {
|
4114
|
+
dispose: () => elmsToUpdate.clear(),
|
4115
|
+
get: (propName) => {
|
4116
|
+
const elm = getRenderingRef();
|
4117
|
+
if (elm) {
|
4118
|
+
appendToMap(elmsToUpdate, propName, elm);
|
4119
|
+
}
|
4120
|
+
},
|
4121
|
+
set: (propName) => {
|
4122
|
+
const elements = elmsToUpdate.get(propName);
|
4123
|
+
if (elements) {
|
4124
|
+
elmsToUpdate.set(propName, elements.filter(forceUpdate));
|
4125
|
+
}
|
4126
|
+
cleanupElements(elmsToUpdate);
|
4127
|
+
},
|
4128
|
+
reset: () => {
|
4129
|
+
elmsToUpdate.forEach((elms) => elms.forEach(forceUpdate));
|
4130
|
+
cleanupElements(elmsToUpdate);
|
4131
|
+
},
|
4132
|
+
};
|
4133
|
+
};
|
4134
|
+
|
4135
|
+
const createObservableMap = (defaultState, shouldUpdate = (a, b) => a !== b) => {
|
4136
|
+
let states = new Map(Object.entries(defaultState !== null && defaultState !== void 0 ? defaultState : {}));
|
4137
|
+
const handlers = {
|
4138
|
+
dispose: [],
|
4139
|
+
get: [],
|
4140
|
+
set: [],
|
4141
|
+
reset: [],
|
4142
|
+
};
|
4143
|
+
const reset = () => {
|
4144
|
+
states = new Map(Object.entries(defaultState !== null && defaultState !== void 0 ? defaultState : {}));
|
4145
|
+
handlers.reset.forEach((cb) => cb());
|
4146
|
+
};
|
4147
|
+
const dispose = () => {
|
4148
|
+
// Call first dispose as resetting the state would
|
4149
|
+
// cause less updates ;)
|
4150
|
+
handlers.dispose.forEach((cb) => cb());
|
4151
|
+
reset();
|
4152
|
+
};
|
4153
|
+
const get = (propName) => {
|
4154
|
+
handlers.get.forEach((cb) => cb(propName));
|
4155
|
+
return states.get(propName);
|
4156
|
+
};
|
4157
|
+
const set = (propName, value) => {
|
4158
|
+
const oldValue = states.get(propName);
|
4159
|
+
if (shouldUpdate(value, oldValue, propName)) {
|
4160
|
+
states.set(propName, value);
|
4161
|
+
handlers.set.forEach((cb) => cb(propName, value, oldValue));
|
4162
|
+
}
|
4163
|
+
};
|
4164
|
+
const state = (typeof Proxy === 'undefined'
|
4165
|
+
? {}
|
4166
|
+
: new Proxy(defaultState, {
|
4167
|
+
get(_, propName) {
|
4168
|
+
return get(propName);
|
4169
|
+
},
|
4170
|
+
ownKeys(_) {
|
4171
|
+
return Array.from(states.keys());
|
4172
|
+
},
|
4173
|
+
getOwnPropertyDescriptor() {
|
4174
|
+
return {
|
4175
|
+
enumerable: true,
|
4176
|
+
configurable: true,
|
4177
|
+
};
|
4178
|
+
},
|
4179
|
+
has(_, propName) {
|
4180
|
+
return states.has(propName);
|
4181
|
+
},
|
4182
|
+
set(_, propName, value) {
|
4183
|
+
set(propName, value);
|
4184
|
+
return true;
|
4185
|
+
},
|
4186
|
+
}));
|
4187
|
+
const on = (eventName, callback) => {
|
4188
|
+
handlers[eventName].push(callback);
|
4189
|
+
return () => {
|
4190
|
+
removeFromArray(handlers[eventName], callback);
|
4191
|
+
};
|
4192
|
+
};
|
4193
|
+
const onChange = (propName, cb) => {
|
4194
|
+
const unSet = on('set', (key, newValue) => {
|
4195
|
+
if (key === propName) {
|
4196
|
+
cb(newValue);
|
4197
|
+
}
|
4198
|
+
});
|
4199
|
+
const unReset = on('reset', () => cb(defaultState[propName]));
|
4200
|
+
return () => {
|
4201
|
+
unSet();
|
4202
|
+
unReset();
|
4203
|
+
};
|
4204
|
+
};
|
4205
|
+
const use = (...subscriptions) => {
|
4206
|
+
const unsubs = subscriptions.reduce((unsubs, subscription) => {
|
4207
|
+
if (subscription.set) {
|
4208
|
+
unsubs.push(on('set', subscription.set));
|
4209
|
+
}
|
4210
|
+
if (subscription.get) {
|
4211
|
+
unsubs.push(on('get', subscription.get));
|
4212
|
+
}
|
4213
|
+
if (subscription.reset) {
|
4214
|
+
unsubs.push(on('reset', subscription.reset));
|
4215
|
+
}
|
4216
|
+
if (subscription.dispose) {
|
4217
|
+
unsubs.push(on('dispose', subscription.dispose));
|
4218
|
+
}
|
4219
|
+
return unsubs;
|
4220
|
+
}, []);
|
4221
|
+
return () => unsubs.forEach((unsub) => unsub());
|
4222
|
+
};
|
4223
|
+
const forceUpdate = (key) => {
|
4224
|
+
const oldValue = states.get(key);
|
4225
|
+
handlers.set.forEach((cb) => cb(key, oldValue, oldValue));
|
4226
|
+
};
|
4227
|
+
return {
|
4228
|
+
state,
|
4229
|
+
get,
|
4230
|
+
set,
|
4231
|
+
on,
|
4232
|
+
onChange,
|
4233
|
+
use,
|
4234
|
+
dispose,
|
4235
|
+
reset,
|
4236
|
+
forceUpdate,
|
4237
|
+
};
|
4238
|
+
};
|
4239
|
+
const removeFromArray = (array, item) => {
|
4240
|
+
const index = array.indexOf(item);
|
4241
|
+
if (index >= 0) {
|
4242
|
+
array[index] = array[array.length - 1];
|
4243
|
+
array.length--;
|
4244
|
+
}
|
4245
|
+
};
|
4246
|
+
|
4247
|
+
const createStore = (defaultState, shouldUpdate) => {
|
4248
|
+
const map = createObservableMap(defaultState, shouldUpdate);
|
4249
|
+
map.use(stencilSubscription());
|
4250
|
+
return map;
|
4251
|
+
};
|
4252
|
+
|
4253
|
+
const { state: state$1, onChange: onChange$1, reset: reset$1 } = createStore({
|
4254
|
+
toc: undefined,
|
4255
|
+
});
|
4256
|
+
const TocStore = { state: state$1, onChange: onChange$1, reset: reset$1 };
|
4257
|
+
|
4258
|
+
const AppConsts = {
|
4259
|
+
AUTH_USER_LOCALSTORAGE: "CurrentUser",
|
4260
|
+
userManagement: {
|
4261
|
+
defaultAdminUserName: 'admin',
|
4262
|
+
},
|
4263
|
+
localization: {
|
4264
|
+
defaultLocalizationSourceName: 'Test',
|
4265
|
+
},
|
4266
|
+
authorization: {
|
4267
|
+
encrptedAuthTokenName: 'enc_auth_token',
|
4268
|
+
}
|
4269
|
+
};
|
4270
|
+
|
4271
|
+
const { state, onChange, reset } = createStore({
|
4272
|
+
authUser: null,
|
4273
|
+
bearer: 'Bearer ',
|
4274
|
+
isAuthenticated: false,
|
4275
|
+
loading: false
|
4276
|
+
});
|
4277
|
+
onChange('authUser', (authUser) => {
|
4278
|
+
state.bearer = `Bearer ${authUser ? authUser.JWToken : ''}`;
|
4279
|
+
state.isAuthenticated = authUser && !!authUser.Id;
|
4280
|
+
});
|
4281
|
+
const AuthStore = { state, onChange, reset };
|
4282
|
+
|
4283
|
+
class TokenService {
|
4284
|
+
static getInstance() {
|
4285
|
+
if (!TokenService.instance) {
|
4286
|
+
TokenService.instance = new TokenService();
|
4287
|
+
}
|
4288
|
+
return TokenService.instance;
|
4289
|
+
}
|
4290
|
+
async getToken() {
|
4291
|
+
let authUser = await get(AppConsts.AUTH_USER_LOCALSTORAGE);
|
4292
|
+
if (authUser && authUser.JWToken) {
|
4293
|
+
if (new Date(authUser.ExpiresOn).getTime() > new Date().getTime()) {
|
4294
|
+
return authUser.JWToken;
|
4295
|
+
}
|
4296
|
+
}
|
4297
|
+
return null;
|
4298
|
+
}
|
4299
|
+
async getAuthUser() {
|
4300
|
+
let authUser = await get(AppConsts.AUTH_USER_LOCALSTORAGE);
|
4301
|
+
if (authUser && authUser.JWToken) {
|
4302
|
+
if (new Date(authUser.ExpiresOn).getTime() > new Date().getTime()) {
|
4303
|
+
return authUser;
|
4304
|
+
}
|
4305
|
+
}
|
4306
|
+
return null;
|
4307
|
+
}
|
4308
|
+
getAuthUserSync() {
|
4309
|
+
let authUser = JSON.parse(localStorage.getItem(AppConsts.AUTH_USER_LOCALSTORAGE));
|
4310
|
+
if (authUser && authUser.JWToken) {
|
4311
|
+
if (new Date(authUser.ExpiresOn).getTime() > new Date().getTime()) {
|
4312
|
+
return authUser;
|
4313
|
+
}
|
4314
|
+
}
|
4315
|
+
return null;
|
4316
|
+
}
|
4317
|
+
getTokenSync() {
|
4318
|
+
let authUser = JSON.parse(localStorage.getItem(AppConsts.AUTH_USER_LOCALSTORAGE));
|
4319
|
+
if (authUser && authUser.JWToken) {
|
4320
|
+
if (new Date(authUser.ExpiresOn).getTime() > new Date().getTime()) {
|
4321
|
+
return authUser.JWToken;
|
4322
|
+
}
|
4323
|
+
}
|
4324
|
+
return null;
|
4325
|
+
}
|
4326
|
+
isAuthenticated() {
|
4327
|
+
try {
|
4328
|
+
let token = this.getTokenSync();
|
4329
|
+
if (!!token) {
|
4330
|
+
return true;
|
4331
|
+
}
|
4332
|
+
}
|
4333
|
+
catch (_a) {
|
4334
|
+
return false;
|
4335
|
+
}
|
4336
|
+
}
|
4337
|
+
async getTokenExpiry() {
|
4338
|
+
let authUser = await get(AppConsts.AUTH_USER_LOCALSTORAGE);
|
4339
|
+
if (!authUser) {
|
4340
|
+
return 0;
|
4341
|
+
}
|
4342
|
+
let timeDiff = 0;
|
4343
|
+
if (authUser.ExpiresOn) {
|
4344
|
+
timeDiff = new Date(authUser.ExpiresOn).getTime() - new Date().getTime();
|
4345
|
+
}
|
4346
|
+
return Math.max(0, timeDiff);
|
4347
|
+
}
|
4348
|
+
async saveAuthUser(authUser) {
|
4349
|
+
AuthStore.state.authUser = Object.assign({}, authUser);
|
4350
|
+
AuthStore.state.isAuthenticated = true;
|
4351
|
+
await set(AppConsts.AUTH_USER_LOCALSTORAGE, authUser);
|
4352
|
+
}
|
4353
|
+
async removeAuthUser() {
|
4354
|
+
AuthStore.state.authUser = null;
|
4355
|
+
AuthStore.state.isAuthenticated = false;
|
4356
|
+
await remove(AppConsts.AUTH_USER_LOCALSTORAGE);
|
4357
|
+
}
|
4358
|
+
}
|
4359
|
+
|
4360
|
+
class HttpService {
|
4361
|
+
constructor() { }
|
4362
|
+
static getInstance() {
|
4363
|
+
if (!HttpService.instance) {
|
4364
|
+
HttpService.instance = new HttpService();
|
4365
|
+
}
|
4366
|
+
return HttpService.instance;
|
4367
|
+
}
|
4368
|
+
static init() {
|
4369
|
+
var sparkleConfig = EnvironmentConfigService.getInstance().get('sparkle');
|
4370
|
+
this.http = axios.create({
|
4371
|
+
baseURL: sparkleConfig.apiUrl,
|
4372
|
+
headers: {
|
4373
|
+
'Content-Type': 'application/json',
|
4374
|
+
},
|
4375
|
+
timeout: 30000,
|
4376
|
+
paramsSerializer: function (params) {
|
4377
|
+
return lib.stringify(params, {
|
4378
|
+
encode: false,
|
4379
|
+
});
|
4380
|
+
},
|
4381
|
+
});
|
4382
|
+
this.http.interceptors.request.use(async function (config) {
|
4383
|
+
let token = await TokenService.getInstance().getToken();
|
4384
|
+
if (token) {
|
4385
|
+
config.headers.common['Authorization'] = 'Bearer ' + token;
|
4386
|
+
}
|
4387
|
+
// //config.headers.common['.AspNetCore.Culture'] = sparkle.utils.getCookieValue('Sparkle.Localization.CultureName');
|
4388
|
+
config.headers.common['Sparkle.CourseId'] = sparkleConfig.courseId;
|
4389
|
+
console.log(TocStore.state.pageInfo);
|
4390
|
+
if (TocStore.state.pageInfo) {
|
4391
|
+
config.headers.common['Sparkle.CourseModuleId'] = TocStore.state.pageInfo.courseModuleId;
|
4392
|
+
config.headers.common['Sparkle.SessionId'] = TocStore.state.pageInfo.sessionId;
|
4393
|
+
config.headers.common['Sparkle.PageId'] = TocStore.state.pageInfo.pageId;
|
4394
|
+
}
|
4395
|
+
return config;
|
4396
|
+
}, function (error) {
|
4397
|
+
return Promise.reject(error);
|
4398
|
+
});
|
4399
|
+
this.http.interceptors.response.use(async (response) => {
|
4400
|
+
if (response.data.Message) {
|
4401
|
+
const toast = await toastController.create({
|
4402
|
+
message: response.data.Message,
|
4403
|
+
duration: 3000,
|
4404
|
+
});
|
4405
|
+
toast.present();
|
4406
|
+
}
|
4407
|
+
return response.data.Failed ? null : response.data;
|
4408
|
+
}, async (error) => {
|
4409
|
+
if (error.response && error.response.data && error.response.data.ErrorMessage) {
|
4410
|
+
// The request was made and the server responded with a status code
|
4411
|
+
// that falls out of the range of 2xx
|
4412
|
+
const toast = await toastController.create({
|
4413
|
+
message: error.response.data.ErrorMessage,
|
4414
|
+
duration: 3000,
|
4415
|
+
});
|
4416
|
+
toast.present();
|
4417
|
+
return Promise.reject(error);
|
4418
|
+
}
|
4419
|
+
else if (error.response && error.response.data && error.response.status == 400) {
|
4420
|
+
// The request was made and the server responded with a status code
|
4421
|
+
// that falls out of the range of 2xx
|
4422
|
+
const toast = await toastController.create({
|
4423
|
+
message: error.response.data.Message,
|
4424
|
+
duration: 3000,
|
4425
|
+
});
|
4426
|
+
toast.present();
|
4427
|
+
return Promise.reject(error.response.data);
|
4428
|
+
}
|
4429
|
+
else if (error.response && error.response.data && error.response.data.Message) {
|
4430
|
+
// The request was made and the server responded with a status code
|
4431
|
+
// that falls out of the range of 2xx
|
4432
|
+
const toast = await toastController.create({
|
4433
|
+
message: error.response.data.Message,
|
4434
|
+
duration: 3000,
|
4435
|
+
});
|
4436
|
+
toast.present();
|
4437
|
+
return Promise.reject(error);
|
4438
|
+
}
|
4439
|
+
else if (error.request) {
|
4440
|
+
// The request was made but no response was received
|
4441
|
+
// `error.request` is an instance of XMLHttpRequest in the browser and an instance of
|
4442
|
+
// http.ClientRequest in node.js
|
4443
|
+
console.log(error.request);
|
4444
|
+
}
|
4445
|
+
else {
|
4446
|
+
const toast = await toastController.create({
|
4447
|
+
message: 'Unknown Error',
|
4448
|
+
duration: 3000,
|
4449
|
+
});
|
4450
|
+
toast.present();
|
4451
|
+
}
|
4452
|
+
setTimeout(() => { }, 1000);
|
4453
|
+
return Promise.reject(error);
|
4454
|
+
});
|
4455
|
+
}
|
4456
|
+
}
|
4457
|
+
|
4458
|
+
class AuthService {
|
4459
|
+
constructor() { }
|
4460
|
+
static getInstance() {
|
4461
|
+
if (!AuthService.instance) {
|
4462
|
+
AuthService.instance = new AuthService();
|
4463
|
+
}
|
4464
|
+
return AuthService.instance;
|
4465
|
+
}
|
4466
|
+
async authenticate(authenticationInput) {
|
4467
|
+
const headers = {
|
4468
|
+
'Content-Type': 'application/json',
|
4469
|
+
};
|
4470
|
+
AuthStore.state.loading = true;
|
4471
|
+
let result;
|
4472
|
+
try {
|
4473
|
+
result = await HttpService.http.post('api/Account/Authenticate', authenticationInput, {
|
4474
|
+
headers: headers,
|
4475
|
+
});
|
4476
|
+
if (result) {
|
4477
|
+
const authData = result.Data;
|
4478
|
+
const authUser = {
|
4479
|
+
Id: authData.Id,
|
4480
|
+
UserName: authData.UserName,
|
4481
|
+
Email: authData.Email,
|
4482
|
+
Roles: authData.Roles,
|
4483
|
+
IsVerified: authData.IsVerified,
|
4484
|
+
JWToken: authData.JWToken,
|
4485
|
+
IssuedOn: authData.IssuedOn,
|
4486
|
+
ExpiresOn: authData.ExpiresOn,
|
4487
|
+
RefreshToken: authData.RefreshToken,
|
4488
|
+
PhotoUrl: '',
|
4489
|
+
IsFacilitator: authData.Roles.indexOf('Facilitator') > 0,
|
4490
|
+
};
|
4491
|
+
//const expireDate = authenticationInput.RememberClient ? new Date(authUser.ExpiresOn) : undefined;
|
4492
|
+
// let authObj: EnvironmentAuthConfig = {
|
4493
|
+
// token: authUser.JWToken,
|
4494
|
+
// expiryDate: expireDate,
|
4495
|
+
// };
|
4496
|
+
// EnvironmentConfigService.getInstance().setupAuth(authObj);
|
4497
|
+
//sparkle.utils.setCookieValue(AppConsts.authorization.encrptedAuthTokenName, authUser.JWToken, expireDate, sparkle.appPath);
|
4498
|
+
await TokenService.getInstance().saveAuthUser(authUser);
|
4499
|
+
AuthStore.state.loading = false;
|
4500
|
+
return authUser;
|
4501
|
+
}
|
4502
|
+
}
|
4503
|
+
catch (e) {
|
4504
|
+
AuthStore.state.loading = false;
|
4505
|
+
return e;
|
4506
|
+
}
|
4507
|
+
}
|
4508
|
+
async signOut() {
|
4509
|
+
await remove(AppConsts.AUTH_USER_LOCALSTORAGE);
|
4510
|
+
await TokenService.getInstance().removeAuthUser();
|
4511
|
+
sessionStorage.clear();
|
4512
|
+
}
|
4513
|
+
async getLocalAuthUser() {
|
4514
|
+
return get(AppConsts.AUTH_USER_LOCALSTORAGE);
|
4515
|
+
}
|
4516
|
+
}
|
4517
|
+
|
4518
|
+
export { AuthService as A, HttpService as H, TokenService as T, AuthStore as a, AppConsts as b, createStore as c, TocStore as d, createCommonjsModule as e, commonjsGlobal as f, getDefaultExportFromCjs as g, initSetupConfig as i, setupConfig as s };
|