| @@ -1,142 +1,7 @@ | ||
| 1 | -(self["webpackChunkelementorFrontend"] = self["webpackChunkelementorFrontend"] || []).push([["frontend-modules"],{ | |
| 1 | +/*! elementor - v3.24.0 - 28-10-2024 */ | |
| 2 | +(self["webpackChunkelementor"] = self["webpackChunkelementor"] || []).push([["frontend-modules"],{ | |
| 2 | 3 | |
| 3 | -/***/ "../app/modules/import-export-customization/assets/js/shared/registry/base.js": | |
| 4 | -/*!************************************************************************************!*\ | |
| 5 | - !*** ../app/modules/import-export-customization/assets/js/shared/registry/base.js ***! | |
| 6 | - \************************************************************************************/ | |
| 7 | -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 8 | - | |
| 9 | -"use strict"; | |
| 10 | - | |
| 11 | - | |
| 12 | -Object.defineProperty(exports, "__esModule", ({ | |
| 13 | - value: true | |
| 14 | -})); | |
| 15 | -exports.BaseRegistry = void 0; | |
| 16 | -__webpack_require__(/*! core-js/modules/esnext.iterator.constructor.js */ "../node_modules/core-js/modules/esnext.iterator.constructor.js"); | |
| 17 | -__webpack_require__(/*! core-js/modules/esnext.iterator.filter.js */ "../node_modules/core-js/modules/esnext.iterator.filter.js"); | |
| 18 | -__webpack_require__(/*! core-js/modules/esnext.iterator.for-each.js */ "../node_modules/core-js/modules/esnext.iterator.for-each.js"); | |
| 19 | -__webpack_require__(/*! core-js/modules/esnext.iterator.map.js */ "../node_modules/core-js/modules/esnext.iterator.map.js"); | |
| 20 | -class BaseRegistry { | |
| 21 | - constructor() { | |
| 22 | - this.sections = new Map(); | |
| 23 | - } | |
| 24 | - register(section) { | |
| 25 | - if (!section.key || !section.title) { | |
| 26 | - throw new Error('Template type must have key and title'); | |
| 27 | - } | |
| 28 | - const existingSection = this.get(section.key); | |
| 29 | - const formattedSection = existingSection || this.formatSection(section); | |
| 30 | - if (section.children) { | |
| 31 | - // If existing section has children, merge them with new children | |
| 32 | - if (formattedSection.children) { | |
| 33 | - const existingChildrenMap = new Map(formattedSection.children.map(child => [child.key, child])); | |
| 34 | - | |
| 35 | - // Override existing children with new ones and add new children | |
| 36 | - section.children.forEach(childSection => { | |
| 37 | - const formattedChild = this.formatSection(childSection); | |
| 38 | - existingChildrenMap.set(childSection.key, formattedChild); | |
| 39 | - }); | |
| 40 | - formattedSection.children = Array.from(existingChildrenMap.values()); | |
| 41 | - } else { | |
| 42 | - formattedSection.children = section.children.map(childSection => this.formatSection(childSection)); | |
| 43 | - } | |
| 44 | - } | |
| 45 | - this.sections.set(section.key, formattedSection); | |
| 46 | - } | |
| 47 | - formatSection({ | |
| 48 | - children, | |
| 49 | - ...section | |
| 50 | - }) { | |
| 51 | - return { | |
| 52 | - key: section.key, | |
| 53 | - title: section.title, | |
| 54 | - description: section.description || '', | |
| 55 | - useParentDefault: section.useParentDefault !== false, | |
| 56 | - getInitialState: section.getInitialState || null, | |
| 57 | - component: section.component || null, | |
| 58 | - order: section.order || 10, | |
| 59 | - isAvailable: section.isAvailable || (() => true), | |
| 60 | - ...section | |
| 61 | - }; | |
| 62 | - } | |
| 63 | - getAll() { | |
| 64 | - return Array.from(this.sections.values()).filter(type => type.isAvailable()).map(type => { | |
| 65 | - if (type.children) { | |
| 66 | - return { | |
| 67 | - ...type, | |
| 68 | - children: [...type.children].sort((a, b) => a.order - b.order) | |
| 69 | - }; | |
| 70 | - } | |
| 71 | - return type; | |
| 72 | - }).sort((a, b) => a.order - b.order); | |
| 73 | - } | |
| 74 | - get(key) { | |
| 75 | - return this.sections.get(key); | |
| 76 | - } | |
| 77 | -} | |
| 78 | -exports.BaseRegistry = BaseRegistry; | |
| 79 | - | |
| 80 | -/***/ }), | |
| 81 | - | |
| 82 | -/***/ "../app/modules/import-export-customization/assets/js/shared/registry/customization-dialogs.js": | |
| 83 | -/*!*****************************************************************************************************!*\ | |
| 84 | - !*** ../app/modules/import-export-customization/assets/js/shared/registry/customization-dialogs.js ***! | |
| 85 | - \*****************************************************************************************************/ | |
| 86 | -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 87 | - | |
| 88 | -"use strict"; | |
| 89 | - | |
| 90 | - | |
| 91 | -Object.defineProperty(exports, "__esModule", ({ | |
| 92 | - value: true | |
| 93 | -})); | |
| 94 | -exports.customizationDialogsRegistry = void 0; | |
| 95 | -var _base = __webpack_require__(/*! ./base */ "../app/modules/import-export-customization/assets/js/shared/registry/base.js"); | |
| 96 | -const customizationDialogsRegistry = exports.customizationDialogsRegistry = new _base.BaseRegistry(); | |
| 97 | - | |
| 98 | -/***/ }), | |
| 99 | - | |
| 100 | -/***/ "../app/modules/import-export-customization/assets/js/shared/utils/template-registry-helpers.js": | |
| 101 | -/*!******************************************************************************************************!*\ | |
| 102 | - !*** ../app/modules/import-export-customization/assets/js/shared/utils/template-registry-helpers.js ***! | |
| 103 | - \******************************************************************************************************/ | |
| 104 | -/***/ ((__unused_webpack_module, exports) => { | |
| 105 | - | |
| 106 | -"use strict"; | |
| 107 | - | |
| 108 | - | |
| 109 | -Object.defineProperty(exports, "__esModule", ({ | |
| 110 | - value: true | |
| 111 | -})); | |
| 112 | -exports.createGetInitialState = createGetInitialState; | |
| 113 | -function createGetInitialState(exportGroup, additionalProps = {}) { | |
| 114 | - return (data, parentInitialState) => { | |
| 115 | - let isEnabled = parentInitialState; | |
| 116 | - const isImport = data.hasOwnProperty('uploadedData'); | |
| 117 | - if (isImport) { | |
| 118 | - isEnabled = false; | |
| 119 | - const templates = data.uploadedData.manifest.templates; | |
| 120 | - const exportGroups = elementorAppConfig?.['import-export-customization']?.exportGroups || {}; | |
| 121 | - for (const templateId in templates) { | |
| 122 | - const template = templates[templateId]; | |
| 123 | - const templateExportGroup = exportGroups[template.doc_type]; | |
| 124 | - if (templateExportGroup === exportGroup) { | |
| 125 | - isEnabled = true; | |
| 126 | - break; | |
| 127 | - } | |
| 128 | - } | |
| 129 | - } | |
| 130 | - return { | |
| 131 | - enabled: isEnabled, | |
| 132 | - ...additionalProps | |
| 133 | - }; | |
| 134 | - }; | |
| 135 | -} | |
| 136 | - | |
| 137 | -/***/ }), | |
| 138 | - | |
| 139 | 4 | /***/ "../assets/dev/js/editor/utils/is-instanceof.js": |
| 140 | 5 | /*!******************************************************!*\ |
| 141 | 6 | !*** ../assets/dev/js/editor/utils/is-instanceof.js ***! |
| 142 | 7 | \******************************************************/ |
| @@ -174,9 +39,9 @@ | ||
| 174 | 39 | /***/ "../assets/dev/js/frontend/document.js": |
| 175 | 40 | /*!*********************************************!*\ |
| 176 | 41 | !*** ../assets/dev/js/frontend/document.js ***! |
| 177 | 42 | \*********************************************/ |
| 178 | -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 43 | +/***/ ((__unused_webpack_module, exports) => { | |
| 179 | 44 | |
| 180 | 45 | "use strict"; |
| 181 | 46 | |
| 182 | 47 | |
| @@ -183,10 +48,8 @@ | ||
| 183 | 48 | Object.defineProperty(exports, "__esModule", ({ |
| 184 | 49 | value: true |
| 185 | 50 | })); |
| 186 | 51 | exports["default"] = void 0; |
| 187 | -__webpack_require__(/*! core-js/modules/esnext.iterator.constructor.js */ "../node_modules/core-js/modules/esnext.iterator.constructor.js"); | |
| 188 | -__webpack_require__(/*! core-js/modules/esnext.iterator.find.js */ "../node_modules/core-js/modules/esnext.iterator.find.js"); | |
| 189 | 52 | class _default extends elementorModules.ViewModule { |
| 190 | 53 | getDefaultSettings() { |
| 191 | 54 | return { |
| 192 | 55 | selectors: { |
| @@ -237,8 +100,208 @@ | ||
| 237 | 100 | exports["default"] = _default; |
| 238 | 101 | |
| 239 | 102 | /***/ }), |
| 240 | 103 | |
| 104 | +/***/ "../assets/dev/js/frontend/handlers/accessibility/nested-title-keyboard-handler.js": | |
| 105 | +/*!*****************************************************************************************!*\ | |
| 106 | + !*** ../assets/dev/js/frontend/handlers/accessibility/nested-title-keyboard-handler.js ***! | |
| 107 | + \*****************************************************************************************/ | |
| 108 | +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 109 | + | |
| 110 | +"use strict"; | |
| 111 | + | |
| 112 | + | |
| 113 | +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); | |
| 114 | +Object.defineProperty(exports, "__esModule", ({ | |
| 115 | + value: true | |
| 116 | +})); | |
| 117 | +exports["default"] = void 0; | |
| 118 | +var _base = _interopRequireDefault(__webpack_require__(/*! ../base */ "../assets/dev/js/frontend/handlers/base.js")); | |
| 119 | +class NestedTitleKeyboardHandler extends _base.default { | |
| 120 | + __construct(settings) { | |
| 121 | + super.__construct(settings); | |
| 122 | + this.directionNext = 'next'; | |
| 123 | + this.directionPrevious = 'previous'; | |
| 124 | + this.focusableElementSelector = 'audio, button, canvas, details, iframe, input, select, summary, textarea, video, [accesskey], [contenteditable], [href], [tabindex]:not([tabindex="-1"])'; | |
| 125 | + } | |
| 126 | + getWidgetNumber() { | |
| 127 | + return this.$element.find('> .elementor-widget-container > .e-n-tabs, > .e-n-tabs').attr('data-widget-number'); | |
| 128 | + } | |
| 129 | + getDefaultSettings() { | |
| 130 | + return { | |
| 131 | + selectors: { | |
| 132 | + itemTitle: `[id*="e-n-tab-title-${this.getWidgetNumber()}"]`, | |
| 133 | + itemContainer: `[id*="e-n-tab-content-${this.getWidgetNumber()}"]` | |
| 134 | + }, | |
| 135 | + ariaAttributes: { | |
| 136 | + titleStateAttribute: 'aria-selected', | |
| 137 | + activeTitleSelector: '[aria-selected="true"]' | |
| 138 | + }, | |
| 139 | + datasets: { | |
| 140 | + titleIndex: 'data-tab-index' | |
| 141 | + }, | |
| 142 | + keyDirection: { | |
| 143 | + ArrowLeft: elementorFrontendConfig.is_rtl ? this.directionNext : this.directionPrevious, | |
| 144 | + ArrowUp: this.directionPrevious, | |
| 145 | + ArrowRight: elementorFrontendConfig.is_rtl ? this.directionPrevious : this.directionNext, | |
| 146 | + ArrowDown: this.directionNext | |
| 147 | + } | |
| 148 | + }; | |
| 149 | + } | |
| 150 | + getDefaultElements() { | |
| 151 | + const selectors = this.getSettings('selectors'); | |
| 152 | + return { | |
| 153 | + $itemTitles: this.findElement(selectors.itemTitle), | |
| 154 | + $itemContainers: this.findElement(selectors.itemContainer), | |
| 155 | + $focusableContainerElements: this.getFocusableElements(this.findElement(selectors.itemContainer)) | |
| 156 | + }; | |
| 157 | + } | |
| 158 | + getFocusableElements($elements) { | |
| 159 | + return $elements.find(this.focusableElementSelector).not('[disabled], [inert]'); | |
| 160 | + } | |
| 161 | + getKeyDirectionValue(event) { | |
| 162 | + const direction = this.getSettings('keyDirection')[event.key]; | |
| 163 | + return this.directionNext === direction ? 1 : -1; | |
| 164 | + } | |
| 165 | + | |
| 166 | + /** | |
| 167 | + * @param {HTMLElement} itemTitleElement | |
| 168 | + * | |
| 169 | + * @return {string} | |
| 170 | + */ | |
| 171 | + getTitleIndex(itemTitleElement) { | |
| 172 | + const { | |
| 173 | + titleIndex: indexAttribute | |
| 174 | + } = this.getSettings('datasets'); | |
| 175 | + return itemTitleElement.getAttribute(indexAttribute); | |
| 176 | + } | |
| 177 | + | |
| 178 | + /** | |
| 179 | + * @param {string|number} titleIndex | |
| 180 | + * | |
| 181 | + * @return {string} | |
| 182 | + */ | |
| 183 | + getTitleFilterSelector(titleIndex) { | |
| 184 | + const { | |
| 185 | + titleIndex: indexAttribute | |
| 186 | + } = this.getSettings('datasets'); | |
| 187 | + return `[${indexAttribute}="${titleIndex}"]`; | |
| 188 | + } | |
| 189 | + getActiveTitleElement() { | |
| 190 | + const activeTitleFilter = this.getSettings('ariaAttributes').activeTitleSelector; | |
| 191 | + return this.elements.$itemTitles.filter(activeTitleFilter); | |
| 192 | + } | |
| 193 | + onInit() { | |
| 194 | + super.onInit(...arguments); | |
| 195 | + } | |
| 196 | + bindEvents() { | |
| 197 | + this.elements.$itemTitles.on(this.getTitleEvents()); | |
| 198 | + this.elements.$focusableContainerElements.on(this.getContentElementEvents()); | |
| 199 | + } | |
| 200 | + unbindEvents() { | |
| 201 | + this.elements.$itemTitles.off(this.getTitleEvents()); | |
| 202 | + this.elements.$focusableContainerElements.children().off(this.getContentElementEvents()); | |
| 203 | + } | |
| 204 | + getTitleEvents() { | |
| 205 | + return { | |
| 206 | + keydown: this.handleTitleKeyboardNavigation.bind(this) | |
| 207 | + }; | |
| 208 | + } | |
| 209 | + getContentElementEvents() { | |
| 210 | + return { | |
| 211 | + keydown: this.handleContentElementKeyboardNavigation.bind(this) | |
| 212 | + }; | |
| 213 | + } | |
| 214 | + isDirectionKey(event) { | |
| 215 | + const directionKeys = ['ArrowLeft', 'ArrowRight', 'ArrowUp', 'ArrowDown', 'Home', 'End']; | |
| 216 | + return directionKeys.includes(event.key); | |
| 217 | + } | |
| 218 | + isActivationKey(event) { | |
| 219 | + const activationKeys = ['Enter', ' ']; | |
| 220 | + return activationKeys.includes(event.key); | |
| 221 | + } | |
| 222 | + handleTitleKeyboardNavigation(event) { | |
| 223 | + if (this.isDirectionKey(event)) { | |
| 224 | + event.preventDefault(); | |
| 225 | + const currentTitleIndex = parseInt(this.getTitleIndex(event.currentTarget)) || 1, | |
| 226 | + numberOfTitles = this.elements.$itemTitles.length, | |
| 227 | + titleIndexUpdated = this.getTitleIndexFocusUpdated(event, currentTitleIndex, numberOfTitles); | |
| 228 | + this.changeTitleFocus(titleIndexUpdated); | |
| 229 | + event.stopPropagation(); | |
| 230 | + } else if (this.isActivationKey(event)) { | |
| 231 | + event.preventDefault(); | |
| 232 | + if (this.handeTitleLinkEnterOrSpaceEvent(event)) { | |
| 233 | + return; | |
| 234 | + } | |
| 235 | + const titleIndex = this.getTitleIndex(event.currentTarget); | |
| 236 | + elementorFrontend.elements.$window.trigger('elementor/nested-elements/activate-by-keyboard', { | |
| 237 | + widgetId: this.getID(), | |
| 238 | + titleIndex | |
| 239 | + }); | |
| 240 | + } else if ('Escape' === event.key) { | |
| 241 | + this.handleTitleEscapeKeyEvents(event); | |
| 242 | + } | |
| 243 | + } | |
| 244 | + handeTitleLinkEnterOrSpaceEvent(event) { | |
| 245 | + const isLinkElement = 'a' === event?.currentTarget?.tagName?.toLowerCase(); | |
| 246 | + if (!elementorFrontend.isEditMode() && isLinkElement) { | |
| 247 | + event?.currentTarget?.click(); | |
| 248 | + event.stopPropagation(); | |
| 249 | + } | |
| 250 | + return isLinkElement; | |
| 251 | + } | |
| 252 | + getTitleIndexFocusUpdated(event, currentTitleIndex, numberOfTitles) { | |
| 253 | + let titleIndexUpdated = 0; | |
| 254 | + switch (event.key) { | |
| 255 | + case 'Home': | |
| 256 | + titleIndexUpdated = 1; | |
| 257 | + break; | |
| 258 | + case 'End': | |
| 259 | + titleIndexUpdated = numberOfTitles; | |
| 260 | + break; | |
| 261 | + default: | |
| 262 | + const directionValue = this.getKeyDirectionValue(event), | |
| 263 | + isEndReached = numberOfTitles < currentTitleIndex + directionValue, | |
| 264 | + isStartReached = 0 === currentTitleIndex + directionValue; | |
| 265 | + if (isEndReached) { | |
| 266 | + titleIndexUpdated = 1; | |
| 267 | + } else if (isStartReached) { | |
| 268 | + titleIndexUpdated = numberOfTitles; | |
| 269 | + } else { | |
| 270 | + titleIndexUpdated = currentTitleIndex + directionValue; | |
| 271 | + } | |
| 272 | + } | |
| 273 | + return titleIndexUpdated; | |
| 274 | + } | |
| 275 | + changeTitleFocus(titleIndexUpdated) { | |
| 276 | + const $newTitle = this.elements.$itemTitles.filter(this.getTitleFilterSelector(titleIndexUpdated)); | |
| 277 | + this.setTitleTabindex(titleIndexUpdated); | |
| 278 | + $newTitle.trigger('focus'); | |
| 279 | + } | |
| 280 | + setTitleTabindex(titleIndex) { | |
| 281 | + this.elements.$itemTitles.attr('tabindex', '-1'); | |
| 282 | + const $newTitle = this.elements.$itemTitles.filter(this.getTitleFilterSelector(titleIndex)); | |
| 283 | + $newTitle.attr('tabindex', '0'); | |
| 284 | + } | |
| 285 | + handleTitleEscapeKeyEvents() {} | |
| 286 | + handleContentElementKeyboardNavigation(event) { | |
| 287 | + if ('Tab' === event.key && !event.shiftKey) { | |
| 288 | + this.handleContentElementTabEvents(event); | |
| 289 | + } else if ('Escape' === event.key) { | |
| 290 | + event.preventDefault(); | |
| 291 | + event.stopPropagation(); | |
| 292 | + this.handleContentElementEscapeEvents(event); | |
| 293 | + } | |
| 294 | + } | |
| 295 | + handleContentElementEscapeEvents() { | |
| 296 | + this.getActiveTitleElement().trigger('focus'); | |
| 297 | + } | |
| 298 | + handleContentElementTabEvents() {} | |
| 299 | +} | |
| 300 | +exports["default"] = NestedTitleKeyboardHandler; | |
| 301 | + | |
| 302 | +/***/ }), | |
| 303 | + | |
| 241 | 304 | /***/ "../assets/dev/js/frontend/handlers/base-carousel.js": |
| 242 | 305 | /*!***********************************************************!*\ |
| 243 | 306 | !*** ../assets/dev/js/frontend/handlers/base-carousel.js ***! |
| 244 | 307 | \***********************************************************/ |
| @@ -251,17 +314,14 @@ | ||
| 251 | 314 | Object.defineProperty(exports, "__esModule", ({ |
| 252 | 315 | value: true |
| 253 | 316 | })); |
| 254 | 317 | exports["default"] = void 0; |
| 255 | -__webpack_require__(/*! core-js/modules/esnext.iterator.constructor.js */ "../node_modules/core-js/modules/esnext.iterator.constructor.js"); | |
| 256 | -__webpack_require__(/*! core-js/modules/esnext.iterator.find.js */ "../node_modules/core-js/modules/esnext.iterator.find.js"); | |
| 257 | -__webpack_require__(/*! core-js/modules/esnext.iterator.for-each.js */ "../node_modules/core-js/modules/esnext.iterator.for-each.js"); | |
| 258 | 318 | var _baseSwiper = _interopRequireDefault(__webpack_require__(/*! ./base-swiper */ "../assets/dev/js/frontend/handlers/base-swiper.js")); |
| 259 | 319 | class CarouselHandlerBase extends _baseSwiper.default { |
| 260 | 320 | getDefaultSettings() { |
| 261 | 321 | return { |
| 262 | 322 | selectors: { |
| 263 | - carousel: '.swiper', | |
| 323 | + carousel: `.${elementorFrontend.config.swiperClass}`, | |
| 264 | 324 | swiperWrapper: '.swiper-wrapper', |
| 265 | 325 | slideContent: '.swiper-slide', |
| 266 | 326 | swiperArrow: '.elementor-swiper-button', |
| 267 | 327 | paginationWrapper: '.swiper-pagination', |
| @@ -344,9 +404,9 @@ | ||
| 344 | 404 | el: `.elementor-element-${this.getID()} .swiper-pagination`, |
| 345 | 405 | type: !!elementSettings.pagination ? elementSettings.pagination : 'bullets', |
| 346 | 406 | clickable: true, |
| 347 | 407 | renderBullet: (index, classname) => { |
| 348 | - return `<span class="${classname}" role="button" tabindex="0" data-bullet-index="${index}" aria-label="${elementorFrontend.config.i18n.a11yCarouselPaginationBulletMessage} ${index + 1}"></span>`; | |
| 408 | + return `<span class="${classname}" data-bullet-index="${index}" aria-label="${elementorFrontend.config.i18n.a11yCarouselPaginationBulletMessage} ${index + 1}"></span>`; | |
| 349 | 409 | } |
| 350 | 410 | }; |
| 351 | 411 | } |
| 352 | 412 | if ('yes' === elementSettings.lazyload) { |
| @@ -362,14 +422,17 @@ | ||
| 362 | 422 | firstSlideMessage: elementorFrontend.config.i18n.a11yCarouselFirstSlideMessage, |
| 363 | 423 | lastSlideMessage: elementorFrontend.config.i18n.a11yCarouselLastSlideMessage |
| 364 | 424 | }; |
| 365 | 425 | swiperOptions.on = { |
| 426 | + slideChangeTransitionEnd: () => { | |
| 427 | + this.a11ySetSlideAriaHidden(); | |
| 428 | + }, | |
| 366 | 429 | slideChange: () => { |
| 367 | 430 | this.a11ySetPaginationTabindex(); |
| 368 | 431 | this.handleElementHandlers(); |
| 369 | - this.a11ySetSlideAriaHidden(); | |
| 370 | 432 | }, |
| 371 | 433 | init: () => { |
| 434 | + this.a11ySetWidgetAriaDetails(); | |
| 372 | 435 | this.a11ySetPaginationTabindex(); |
| 373 | 436 | this.a11ySetSlideAriaHidden('initialisation'); |
| 374 | 437 | } |
| 375 | 438 | }; |
| @@ -405,10 +468,10 @@ | ||
| 405 | 468 | } |
| 406 | 469 | addClassToSwiperContainer(className) { |
| 407 | 470 | this.getDefaultElements().$swiperContainer[0].classList.add(className); |
| 408 | 471 | } |
| 409 | - async onInit(...args) { | |
| 410 | - super.onInit(...args); | |
| 472 | + async onInit() { | |
| 473 | + super.onInit(...arguments); | |
| 411 | 474 | if (!this.elements.$swiperContainer.length || 2 > this.elements.$slides.length) { |
| 412 | 475 | return; |
| 413 | 476 | } |
| 414 | 477 | await this.initSwiper(); |
| @@ -479,8 +542,9 @@ | ||
| 479 | 542 | speed: 'speed', |
| 480 | 543 | arrows_position: 'arrows_position' // Not a Swiper setting. |
| 481 | 544 | }; |
| 482 | 545 | } |
| 546 | + | |
| 483 | 547 | onElementChange(propertyName) { |
| 484 | 548 | if (0 === propertyName.indexOf('image_spacing_custom')) { |
| 485 | 549 | this.updateSpaceBetween(propertyName); |
| 486 | 550 | return; |
| @@ -500,11 +564,11 @@ | ||
| 500 | 564 | if ('activeItemIndex' === propertyName) { |
| 501 | 565 | this.swiper.slideToLoop(this.getEditSettings('activeItemIndex') - 1); |
| 502 | 566 | } |
| 503 | 567 | } |
| 504 | - getSpaceBetween(device = null) { | |
| 505 | - const responsiveControlValue = elementorFrontend.utils.controls.getResponsiveControlValue(this.getElementSettings(), 'image_spacing_custom', 'size', device); | |
| 506 | - return Number(responsiveControlValue) || 0; | |
| 568 | + getSpaceBetween() { | |
| 569 | + let device = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null; | |
| 570 | + return elementorFrontend.utils.controls.getResponsiveControlValue(this.getElementSettings(), 'image_spacing_custom', 'size', device) || 0; | |
| 507 | 571 | } |
| 508 | 572 | updateSpaceBetween(propertyName) { |
| 509 | 573 | const deviceMatch = propertyName.match('image_spacing_custom_(.*)'), |
| 510 | 574 | device = deviceMatch ? deviceMatch[1] : 'desktop', |
| @@ -514,12 +578,18 @@ | ||
| 514 | 578 | } |
| 515 | 579 | this.swiper.params.spaceBetween = newSpaceBetween; |
| 516 | 580 | this.swiper.update(); |
| 517 | 581 | } |
| 518 | - getPaginationBullets(type = 'array') { | |
| 582 | + getPaginationBullets() { | |
| 583 | + let type = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'array'; | |
| 519 | 584 | const paginationBullets = this.$element.find(this.getSettings('selectors').paginationBullet); |
| 520 | 585 | return 'array' === type ? Array.from(paginationBullets) : paginationBullets; |
| 521 | 586 | } |
| 587 | + a11ySetWidgetAriaDetails() { | |
| 588 | + const $widget = this.$element; | |
| 589 | + $widget.attr('aria-roledescription', 'carousel'); | |
| 590 | + $widget.attr('aria-label', elementorFrontend.config.i18n.a11yCarouselWrapperAriaLabel); | |
| 591 | + } | |
| 522 | 592 | a11ySetPaginationTabindex() { |
| 523 | 593 | const bulletClass = this.swiper?.params?.pagination.bulletClass, |
| 524 | 594 | activeBulletClass = this.swiper?.params?.pagination.bulletActiveClass; |
| 525 | 595 | this.getPaginationBullets().forEach(bullet => { |
| @@ -538,9 +608,10 @@ | ||
| 538 | 608 | transformValue = transformValue.split(','); |
| 539 | 609 | transformValue = parseInt(transformValue[0].replace('px', '')); |
| 540 | 610 | return !!transformValue ? transformValue : 0; |
| 541 | 611 | } |
| 542 | - a11ySetSlideAriaHidden(status = '') { | |
| 612 | + a11ySetSlideAriaHidden() { | |
| 613 | + let status = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : ''; | |
| 543 | 614 | const currentIndex = 'initialisation' === status ? 0 : this.swiper?.activeIndex; |
| 544 | 615 | if ('number' !== typeof currentIndex) { |
| 545 | 616 | return; |
| 546 | 617 | } |
| @@ -626,18 +697,13 @@ | ||
| 626 | 697 | /***/ "../assets/dev/js/frontend/handlers/base.js": |
| 627 | 698 | /*!**************************************************!*\ |
| 628 | 699 | !*** ../assets/dev/js/frontend/handlers/base.js ***! |
| 629 | 700 | \**************************************************/ |
| 630 | -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 701 | +/***/ ((module) => { | |
| 631 | 702 | |
| 632 | 703 | "use strict"; |
| 633 | 704 | |
| 634 | 705 | |
| 635 | -__webpack_require__(/*! core-js/modules/es.array.push.js */ "../node_modules/core-js/modules/es.array.push.js"); | |
| 636 | -__webpack_require__(/*! core-js/modules/esnext.iterator.constructor.js */ "../node_modules/core-js/modules/esnext.iterator.constructor.js"); | |
| 637 | -__webpack_require__(/*! core-js/modules/esnext.iterator.filter.js */ "../node_modules/core-js/modules/esnext.iterator.filter.js"); | |
| 638 | -__webpack_require__(/*! core-js/modules/esnext.iterator.find.js */ "../node_modules/core-js/modules/esnext.iterator.find.js"); | |
| 639 | -__webpack_require__(/*! core-js/modules/esnext.iterator.for-each.js */ "../node_modules/core-js/modules/esnext.iterator.for-each.js"); | |
| 640 | 706 | module.exports = elementorModules.ViewModule.extend({ |
| 641 | 707 | $element: null, |
| 642 | 708 | editorListeners: null, |
| 643 | 709 | onElementChange: null, |
| @@ -842,10 +908,8 @@ | ||
| 842 | 908 | Object.defineProperty(exports, "__esModule", ({ |
| 843 | 909 | value: true |
| 844 | 910 | })); |
| 845 | 911 | exports["default"] = void 0; |
| 846 | -__webpack_require__(/*! core-js/modules/esnext.iterator.constructor.js */ "../node_modules/core-js/modules/esnext.iterator.constructor.js"); | |
| 847 | -__webpack_require__(/*! core-js/modules/esnext.iterator.find.js */ "../node_modules/core-js/modules/esnext.iterator.find.js"); | |
| 848 | 912 | var _base = _interopRequireDefault(__webpack_require__(/*! ./base */ "../assets/dev/js/frontend/handlers/base.js")); |
| 849 | 913 | class StretchedElement extends _base.default { |
| 850 | 914 | getStretchedClass() { |
| 851 | 915 | return 'e-stretched'; |
| @@ -874,9 +938,10 @@ | ||
| 874 | 938 | } |
| 875 | 939 | isActive(settings) { |
| 876 | 940 | return elementorFrontend.isEditMode() || settings.$element.hasClass(this.getStretchedClass()); |
| 877 | 941 | } |
| 878 | - getStretchElementForConfig(childSelector = null) { | |
| 942 | + getStretchElementForConfig() { | |
| 943 | + let childSelector = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null; | |
| 879 | 944 | if (childSelector) { |
| 880 | 945 | return this.$element.find(childSelector); |
| 881 | 946 | } |
| 882 | 947 | return this.$element; |
| @@ -905,14 +970,14 @@ | ||
| 905 | 970 | return; |
| 906 | 971 | } |
| 907 | 972 | this.stretchElement.stretch(); |
| 908 | 973 | } |
| 909 | - onInit(...args) { | |
| 974 | + onInit() { | |
| 910 | 975 | if (!this.isActive(this.getSettings())) { |
| 911 | 976 | return; |
| 912 | 977 | } |
| 913 | 978 | this.initStretch(); |
| 914 | - super.onInit(...args); | |
| 979 | + super.onInit(...arguments); | |
| 915 | 980 | this.stretch(); |
| 916 | 981 | } |
| 917 | 982 | onElementChange(propertyName) { |
| 918 | 983 | const stretchSettingName = this.getStretchSettingName(); |
| @@ -949,8 +1014,13 @@ | ||
| 949 | 1014 | var _stretchedElement = _interopRequireDefault(__webpack_require__(/*! ./handlers/stretched-element */ "../assets/dev/js/frontend/handlers/stretched-element.js")); |
| 950 | 1015 | var _base = _interopRequireDefault(__webpack_require__(/*! ./handlers/base */ "../assets/dev/js/frontend/handlers/base.js")); |
| 951 | 1016 | var _baseSwiper = _interopRequireDefault(__webpack_require__(/*! ./handlers/base-swiper */ "../assets/dev/js/frontend/handlers/base-swiper.js")); |
| 952 | 1017 | var _baseCarousel = _interopRequireDefault(__webpack_require__(/*! ./handlers/base-carousel */ "../assets/dev/js/frontend/handlers/base-carousel.js")); |
| 1018 | +var _nestedTabs = _interopRequireDefault(__webpack_require__(/*! elementor/modules/nested-tabs/assets/js/frontend/handlers/nested-tabs */ "../modules/nested-tabs/assets/js/frontend/handlers/nested-tabs.js")); | |
| 1019 | +var _nestedAccordion = _interopRequireDefault(__webpack_require__(/*! elementor/modules/nested-accordion/assets/js/frontend/handlers/nested-accordion */ "../modules/nested-accordion/assets/js/frontend/handlers/nested-accordion.js")); | |
| 1020 | +var _contactButtons = _interopRequireDefault(__webpack_require__(/*! elementor/modules/floating-buttons/assets/js/floating-buttons/frontend/handlers/contact-buttons */ "../modules/floating-buttons/assets/js/floating-buttons/frontend/handlers/contact-buttons.js")); | |
| 1021 | +var _floatingBars = _interopRequireDefault(__webpack_require__(/*! elementor/modules/floating-buttons/assets/js/floating-bars/frontend/handlers/floating-bars */ "../modules/floating-buttons/assets/js/floating-bars/frontend/handlers/floating-bars.js")); | |
| 1022 | +var _nestedTitleKeyboardHandler = _interopRequireDefault(__webpack_require__(/*! ./handlers/accessibility/nested-title-keyboard-handler */ "../assets/dev/js/frontend/handlers/accessibility/nested-title-keyboard-handler.js")); | |
| 953 | 1023 | _modules.default.frontend = { |
| 954 | 1024 | Document: _document.default, |
| 955 | 1025 | tools: { |
| 956 | 1026 | StretchElement: _stretchElement.default |
| @@ -958,9 +1028,14 @@ | ||
| 958 | 1028 | handlers: { |
| 959 | 1029 | Base: _base.default, |
| 960 | 1030 | StretchedElement: _stretchedElement.default, |
| 961 | 1031 | SwiperBase: _baseSwiper.default, |
| 962 | - CarouselBase: _baseCarousel.default | |
| 1032 | + CarouselBase: _baseCarousel.default, | |
| 1033 | + NestedTabs: _nestedTabs.default, | |
| 1034 | + NestedAccordion: _nestedAccordion.default, | |
| 1035 | + NestedTitleKeyboardHandler: _nestedTitleKeyboardHandler.default, | |
| 1036 | + ContactButtonsHandler: _contactButtons.default, | |
| 1037 | + FloatingBarsHandler: _floatingBars.default | |
| 963 | 1038 | } |
| 964 | 1039 | }; |
| 965 | 1040 | |
| 966 | 1041 | /***/ }), |
| @@ -1075,8 +1150,102 @@ | ||
| 1075 | 1150 | }); |
| 1076 | 1151 | |
| 1077 | 1152 | /***/ }), |
| 1078 | 1153 | |
| 1154 | +/***/ "../assets/dev/js/frontend/utils/flex-horizontal-scroll.js": | |
| 1155 | +/*!*****************************************************************!*\ | |
| 1156 | + !*** ../assets/dev/js/frontend/utils/flex-horizontal-scroll.js ***! | |
| 1157 | + \*****************************************************************/ | |
| 1158 | +/***/ ((__unused_webpack_module, exports) => { | |
| 1159 | + | |
| 1160 | +"use strict"; | |
| 1161 | + | |
| 1162 | + | |
| 1163 | +Object.defineProperty(exports, "__esModule", ({ | |
| 1164 | + value: true | |
| 1165 | +})); | |
| 1166 | +exports.changeScrollStatus = changeScrollStatus; | |
| 1167 | +exports.setHorizontalScrollAlignment = setHorizontalScrollAlignment; | |
| 1168 | +exports.setHorizontalTitleScrollValues = setHorizontalTitleScrollValues; | |
| 1169 | +function changeScrollStatus(element, event) { | |
| 1170 | + if ('mousedown' === event.type) { | |
| 1171 | + element.classList.add('e-scroll'); | |
| 1172 | + element.dataset.pageX = event.pageX; | |
| 1173 | + } else { | |
| 1174 | + element.classList.remove('e-scroll', 'e-scroll-active'); | |
| 1175 | + element.dataset.pageX = ''; | |
| 1176 | + } | |
| 1177 | +} | |
| 1178 | + | |
| 1179 | +// This function was written using this example https://codepen.io/thenutz/pen/VwYeYEE. | |
| 1180 | +function setHorizontalTitleScrollValues(element, horizontalScrollStatus, event) { | |
| 1181 | + const isActiveScroll = element.classList.contains('e-scroll'), | |
| 1182 | + isHorizontalScrollActive = 'enable' === horizontalScrollStatus, | |
| 1183 | + headingContentIsWiderThanWrapper = element.scrollWidth > element.clientWidth; | |
| 1184 | + if (!isActiveScroll || !isHorizontalScrollActive || !headingContentIsWiderThanWrapper) { | |
| 1185 | + return; | |
| 1186 | + } | |
| 1187 | + event.preventDefault(); | |
| 1188 | + const previousPositionX = parseFloat(element.dataset.pageX), | |
| 1189 | + mouseMoveX = event.pageX - previousPositionX, | |
| 1190 | + maximumScrollValue = 5, | |
| 1191 | + stepLimit = 20; | |
| 1192 | + let toScrollDistanceX = 0; | |
| 1193 | + if (stepLimit < mouseMoveX) { | |
| 1194 | + toScrollDistanceX = maximumScrollValue; | |
| 1195 | + } else if (stepLimit * -1 > mouseMoveX) { | |
| 1196 | + toScrollDistanceX = -1 * maximumScrollValue; | |
| 1197 | + } else { | |
| 1198 | + toScrollDistanceX = mouseMoveX; | |
| 1199 | + } | |
| 1200 | + element.scrollLeft = element.scrollLeft - toScrollDistanceX; | |
| 1201 | + element.classList.add('e-scroll-active'); | |
| 1202 | +} | |
| 1203 | +function setHorizontalScrollAlignment(_ref) { | |
| 1204 | + let { | |
| 1205 | + element, | |
| 1206 | + direction, | |
| 1207 | + justifyCSSVariable, | |
| 1208 | + horizontalScrollStatus | |
| 1209 | + } = _ref; | |
| 1210 | + if (!element) { | |
| 1211 | + return; | |
| 1212 | + } | |
| 1213 | + if (isHorizontalScroll(element, horizontalScrollStatus)) { | |
| 1214 | + initialScrollPosition(element, direction, justifyCSSVariable); | |
| 1215 | + } else { | |
| 1216 | + element.style.setProperty(justifyCSSVariable, ''); | |
| 1217 | + } | |
| 1218 | +} | |
| 1219 | +function isHorizontalScroll(element, horizontalScrollStatus) { | |
| 1220 | + return element.clientWidth < getChildrenWidth(element.children) && 'enable' === horizontalScrollStatus; | |
| 1221 | +} | |
| 1222 | +function getChildrenWidth(children) { | |
| 1223 | + let totalWidth = 0; | |
| 1224 | + const parentContainer = children[0].parentNode, | |
| 1225 | + computedStyles = getComputedStyle(parentContainer), | |
| 1226 | + gap = parseFloat(computedStyles.gap) || 0; // Get the gap value or default to 0 if it's not specified | |
| 1227 | + | |
| 1228 | + for (let i = 0; i < children.length; i++) { | |
| 1229 | + totalWidth += children[i].offsetWidth + gap; | |
| 1230 | + } | |
| 1231 | + return totalWidth; | |
| 1232 | +} | |
| 1233 | +function initialScrollPosition(element, direction, justifyCSSVariable) { | |
| 1234 | + const isRTL = elementorFrontend.config.is_rtl; | |
| 1235 | + switch (direction) { | |
| 1236 | + case 'end': | |
| 1237 | + element.style.setProperty(justifyCSSVariable, 'start'); | |
| 1238 | + element.scrollLeft = isRTL ? -1 * getChildrenWidth(element.children) : getChildrenWidth(element.children); | |
| 1239 | + break; | |
| 1240 | + default: | |
| 1241 | + element.style.setProperty(justifyCSSVariable, 'start'); | |
| 1242 | + element.scrollLeft = 0; | |
| 1243 | + } | |
| 1244 | +} | |
| 1245 | + | |
| 1246 | +/***/ }), | |
| 1247 | + | |
| 1079 | 1248 | /***/ "../assets/dev/js/modules/imports/args-object.js": |
| 1080 | 1249 | /*!*******************************************************!*\ |
| 1081 | 1250 | !*** ../assets/dev/js/modules/imports/args-object.js ***! |
| 1082 | 1251 | \*******************************************************/ |
| @@ -1089,8 +1258,9 @@ | ||
| 1089 | 1258 | Object.defineProperty(exports, "__esModule", ({ |
| 1090 | 1259 | value: true |
| 1091 | 1260 | })); |
| 1092 | 1261 | exports["default"] = void 0; |
| 1262 | +__webpack_require__(/*! core-js/modules/es.error.cause.js */ "../node_modules/core-js/modules/es.error.cause.js"); | |
| 1093 | 1263 | var _instanceType = _interopRequireDefault(__webpack_require__(/*! ./instance-type */ "../assets/dev/js/modules/imports/instance-type.js")); |
| 1094 | 1264 | var _isInstanceof = _interopRequireDefault(__webpack_require__(/*! ../../editor/utils/is-instanceof */ "../assets/dev/js/editor/utils/is-instanceof.js")); |
| 1095 | 1265 | class ArgsObject extends _instanceType.default { |
| 1096 | 1266 | static getInstanceType() { |
| @@ -1118,9 +1288,10 @@ | ||
| 1118 | 1288 | * @param {{}} args |
| 1119 | 1289 | * |
| 1120 | 1290 | * @throws {Error} |
| 1121 | 1291 | */ |
| 1122 | - requireArgument(property, args = this.args) { | |
| 1292 | + requireArgument(property) { | |
| 1293 | + let args = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : this.args; | |
| 1123 | 1294 | if (!Object.prototype.hasOwnProperty.call(args, property)) { |
| 1124 | 1295 | throw Error(`${property} is required.`); |
| 1125 | 1296 | } |
| 1126 | 1297 | } |
| @@ -1135,9 +1306,10 @@ | ||
| 1135 | 1306 | * @param {{}} args |
| 1136 | 1307 | * |
| 1137 | 1308 | * @throws {Error} |
| 1138 | 1309 | */ |
| 1139 | - requireArgumentType(property, type, args = this.args) { | |
| 1310 | + requireArgumentType(property, type) { | |
| 1311 | + let args = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : this.args; | |
| 1140 | 1312 | this.requireArgument(property, args); |
| 1141 | 1313 | if (typeof args[property] !== type) { |
| 1142 | 1314 | throw Error(`${property} invalid type: ${type}.`); |
| 1143 | 1315 | } |
| @@ -1153,9 +1325,10 @@ | ||
| 1153 | 1325 | * @param {{}} args |
| 1154 | 1326 | * |
| 1155 | 1327 | * @throws {Error} |
| 1156 | 1328 | */ |
| 1157 | - requireArgumentInstance(property, instance, args = this.args) { | |
| 1329 | + requireArgumentInstance(property, instance) { | |
| 1330 | + let args = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : this.args; | |
| 1158 | 1331 | this.requireArgument(property, args); |
| 1159 | 1332 | if (!(args[property] instanceof instance) && !(0, _isInstanceof.default)(args[property], instance)) { |
| 1160 | 1333 | throw Error(`${property} invalid instance.`); |
| 1161 | 1334 | } |
| @@ -1171,9 +1344,10 @@ | ||
| 1171 | 1344 | * @param {{}} args |
| 1172 | 1345 | * |
| 1173 | 1346 | * @throws {Error} |
| 1174 | 1347 | */ |
| 1175 | - requireArgumentConstructor(property, type, args = this.args) { | |
| 1348 | + requireArgumentConstructor(property, type) { | |
| 1349 | + let args = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : this.args; | |
| 1176 | 1350 | this.requireArgument(property, args); |
| 1177 | 1351 | |
| 1178 | 1352 | // Note: Converting the constructor to string in order to avoid equation issues |
| 1179 | 1353 | // due to different memory addresses between iframes (window.Object !== window.top.Object). |
| @@ -1189,9 +1363,9 @@ | ||
| 1189 | 1363 | /***/ "../assets/dev/js/modules/imports/force-method-implementation.js": |
| 1190 | 1364 | /*!***********************************************************************!*\ |
| 1191 | 1365 | !*** ../assets/dev/js/modules/imports/force-method-implementation.js ***! |
| 1192 | 1366 | \***********************************************************************/ |
| 1193 | -/***/ ((__unused_webpack_module, exports) => { | |
| 1367 | +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 1194 | 1368 | |
| 1195 | 1369 | "use strict"; |
| 1196 | 1370 | |
| 1197 | 1371 | |
| @@ -1198,12 +1372,15 @@ | ||
| 1198 | 1372 | Object.defineProperty(exports, "__esModule", ({ |
| 1199 | 1373 | value: true |
| 1200 | 1374 | })); |
| 1201 | 1375 | exports["default"] = exports.ForceMethodImplementation = void 0; |
| 1376 | +__webpack_require__(/*! core-js/modules/es.error.cause.js */ "../node_modules/core-js/modules/es.error.cause.js"); | |
| 1202 | 1377 | // TODO: Wrong location used as `elementorModules.ForceMethodImplementation(); should be` `elementorUtils.forceMethodImplementation()`; |
| 1203 | 1378 | |
| 1204 | 1379 | class ForceMethodImplementation extends Error { |
| 1205 | - constructor(info = {}, args = {}) { | |
| 1380 | + constructor() { | |
| 1381 | + let info = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; | |
| 1382 | + let args = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; | |
| 1206 | 1383 | super(`${info.isStatic ? 'static ' : ''}${info.fullName}() should be implemented, please provide '${info.functionName || info.fullName}' functionality.`, args); |
| 1207 | 1384 | |
| 1208 | 1385 | // Allow to pass custom properties to the error. |
| 1209 | 1386 | if (Object.keys(args).length) { |
| @@ -1237,9 +1414,9 @@ | ||
| 1237 | 1414 | /***/ "../assets/dev/js/modules/imports/instance-type.js": |
| 1238 | 1415 | /*!*********************************************************!*\ |
| 1239 | 1416 | !*** ../assets/dev/js/modules/imports/instance-type.js ***! |
| 1240 | 1417 | \*********************************************************/ |
| 1241 | -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 1418 | +/***/ ((__unused_webpack_module, exports) => { | |
| 1242 | 1419 | |
| 1243 | 1420 | "use strict"; |
| 1244 | 1421 | |
| 1245 | 1422 | |
| @@ -1246,11 +1423,8 @@ | ||
| 1246 | 1423 | Object.defineProperty(exports, "__esModule", ({ |
| 1247 | 1424 | value: true |
| 1248 | 1425 | })); |
| 1249 | 1426 | exports["default"] = void 0; |
| 1250 | -__webpack_require__(/*! core-js/modules/es.array.push.js */ "../node_modules/core-js/modules/es.array.push.js"); | |
| 1251 | -__webpack_require__(/*! core-js/modules/esnext.iterator.constructor.js */ "../node_modules/core-js/modules/esnext.iterator.constructor.js"); | |
| 1252 | -__webpack_require__(/*! core-js/modules/esnext.iterator.for-each.js */ "../node_modules/core-js/modules/esnext.iterator.for-each.js"); | |
| 1253 | 1427 | class InstanceType { |
| 1254 | 1428 | static [Symbol.hasInstance](target) { |
| 1255 | 1429 | /** |
| 1256 | 1430 | * This is function extending being called each time JS uses instanceOf, since babel use it each time it create new class |
| @@ -1311,12 +1485,9 @@ | ||
| 1311 | 1485 | |
| 1312 | 1486 | "use strict"; |
| 1313 | 1487 | |
| 1314 | 1488 | |
| 1315 | -__webpack_require__(/*! core-js/modules/es.array.push.js */ "../node_modules/core-js/modules/es.array.push.js"); | |
| 1316 | -__webpack_require__(/*! core-js/modules/esnext.iterator.constructor.js */ "../node_modules/core-js/modules/esnext.iterator.constructor.js"); | |
| 1317 | -__webpack_require__(/*! core-js/modules/esnext.iterator.filter.js */ "../node_modules/core-js/modules/esnext.iterator.filter.js"); | |
| 1318 | -__webpack_require__(/*! core-js/modules/esnext.iterator.for-each.js */ "../node_modules/core-js/modules/esnext.iterator.for-each.js"); | |
| 1489 | +__webpack_require__(/*! core-js/modules/es.error.cause.js */ "../node_modules/core-js/modules/es.error.cause.js"); | |
| 1319 | 1490 | const Module = function () { |
| 1320 | 1491 | const $ = jQuery, |
| 1321 | 1492 | instanceParams = arguments, |
| 1322 | 1493 | self = this, |
| @@ -1484,11 +1655,10 @@ | ||
| 1484 | 1655 | Object.defineProperty(exports, "__esModule", ({ |
| 1485 | 1656 | value: true |
| 1486 | 1657 | })); |
| 1487 | 1658 | exports["default"] = void 0; |
| 1488 | -__webpack_require__(/*! core-js/modules/es.array.push.js */ "../node_modules/core-js/modules/es.array.push.js"); | |
| 1489 | 1659 | var _viewModule = _interopRequireDefault(__webpack_require__(/*! ../view-module */ "../assets/dev/js/modules/imports/view-module.js")); |
| 1490 | -var _default = exports["default"] = _viewModule.default.extend({ | |
| 1660 | +var _default = _viewModule.default.extend({ | |
| 1491 | 1661 | getDefaultSettings() { |
| 1492 | 1662 | return { |
| 1493 | 1663 | container: null, |
| 1494 | 1664 | items: null, |
| @@ -1525,8 +1695,9 @@ | ||
| 1525 | 1695 | } |
| 1526 | 1696 | }); |
| 1527 | 1697 | } |
| 1528 | 1698 | }); |
| 1699 | +exports["default"] = _default; | |
| 1529 | 1700 | |
| 1530 | 1701 | /***/ }), |
| 1531 | 1702 | |
| 1532 | 1703 | /***/ "../assets/dev/js/modules/imports/utils/scroll.js": |
| @@ -1532,9 +1703,9 @@ | ||
| 1532 | 1703 | /***/ "../assets/dev/js/modules/imports/utils/scroll.js": |
| 1533 | 1704 | /*!********************************************************!*\ |
| 1534 | 1705 | !*** ../assets/dev/js/modules/imports/utils/scroll.js ***! |
| 1535 | 1706 | \********************************************************/ |
| 1536 | -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 1707 | +/***/ ((__unused_webpack_module, exports) => { | |
| 1537 | 1708 | |
| 1538 | 1709 | "use strict"; |
| 1539 | 1710 | |
| 1540 | 1711 | |
| @@ -1541,9 +1712,8 @@ | ||
| 1541 | 1712 | Object.defineProperty(exports, "__esModule", ({ |
| 1542 | 1713 | value: true |
| 1543 | 1714 | })); |
| 1544 | 1715 | exports["default"] = void 0; |
| 1545 | -__webpack_require__(/*! core-js/modules/es.array.push.js */ "../node_modules/core-js/modules/es.array.push.js"); | |
| 1546 | 1716 | // Moved from elementor pro: 'assets/dev/js/frontend/utils' |
| 1547 | 1717 | class Scroll { |
| 1548 | 1718 | /** |
| 1549 | 1719 | * @param {Object} obj |
| @@ -1556,9 +1726,10 @@ | ||
| 1556 | 1726 | let lastScrollY = 0; |
| 1557 | 1727 | |
| 1558 | 1728 | // Generating thresholds points along the animation height |
| 1559 | 1729 | // More thresholds points = more trigger points of the callback |
| 1560 | - const buildThresholds = (sensitivityPercentage = 0) => { | |
| 1730 | + const buildThresholds = function () { | |
| 1731 | + let sensitivityPercentage = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0; | |
| 1561 | 1732 | const thresholds = []; |
| 1562 | 1733 | if (sensitivityPercentage > 0 && sensitivityPercentage <= 100) { |
| 1563 | 1734 | const increment = 100 / sensitivityPercentage; |
| 1564 | 1735 | for (let i = 0; i <= 100; i += increment) { |
| @@ -1595,9 +1766,10 @@ | ||
| 1595 | 1766 | * @param {Object} offsetObj |
| 1596 | 1767 | * @param {number} offsetObj.start - Offset start value in percentages |
| 1597 | 1768 | * @param {number} offsetObj.end - Offset end value in percentages |
| 1598 | 1769 | */ |
| 1599 | - static getElementViewportPercentage($element, offsetObj = {}) { | |
| 1770 | + static getElementViewportPercentage($element) { | |
| 1771 | + let offsetObj = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; | |
| 1600 | 1772 | const elementOffset = $element[0].getBoundingClientRect(), |
| 1601 | 1773 | offsetStart = offsetObj.start || 0, |
| 1602 | 1774 | offsetEnd = offsetObj.end || 0, |
| 1603 | 1775 | windowStartOffset = window.innerHeight * offsetStart / 100, |
| @@ -1615,9 +1787,11 @@ | ||
| 1615 | 1787 | * @param {number} offsetObj.start - Offset start value in percentages |
| 1616 | 1788 | * @param {number} offsetObj.end - Offset end value in percentages |
| 1617 | 1789 | * @param {number} limitPageHeight - Will limit the page height calculation |
| 1618 | 1790 | */ |
| 1619 | - static getPageScrollPercentage(offsetObj = {}, limitPageHeight) { | |
| 1791 | + static getPageScrollPercentage() { | |
| 1792 | + let offsetObj = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; | |
| 1793 | + let limitPageHeight = arguments.length > 1 ? arguments[1] : undefined; | |
| 1620 | 1794 | const offsetStart = offsetObj.start || 0, |
| 1621 | 1795 | offsetEnd = offsetObj.end || 0, |
| 1622 | 1796 | initialPageHeight = limitPageHeight || document.documentElement.scrollHeight - document.documentElement.clientHeight, |
| 1623 | 1797 | heightOffset = initialPageHeight * offsetStart / 100, |
| @@ -1644,9 +1818,9 @@ | ||
| 1644 | 1818 | value: true |
| 1645 | 1819 | })); |
| 1646 | 1820 | exports["default"] = void 0; |
| 1647 | 1821 | var _module = _interopRequireDefault(__webpack_require__(/*! ./module */ "../assets/dev/js/modules/imports/module.js")); |
| 1648 | -var _default = exports["default"] = _module.default.extend({ | |
| 1822 | +var _default = _module.default.extend({ | |
| 1649 | 1823 | elements: null, |
| 1650 | 1824 | getDefaultElements() { |
| 1651 | 1825 | return {}; |
| 1652 | 1826 | }, |
| @@ -1658,8 +1832,9 @@ | ||
| 1658 | 1832 | initElements() { |
| 1659 | 1833 | this.elements = this.getDefaultElements(); |
| 1660 | 1834 | } |
| 1661 | 1835 | }); |
| 1836 | +exports["default"] = _default; | |
| 1662 | 1837 | |
| 1663 | 1838 | /***/ }), |
| 1664 | 1839 | |
| 1665 | 1840 | /***/ "../assets/dev/js/modules/modules.js": |
| @@ -1681,11 +1856,9 @@ | ||
| 1681 | 1856 | var _argsObject = _interopRequireDefault(__webpack_require__(/*! ./imports/args-object */ "../assets/dev/js/modules/imports/args-object.js")); |
| 1682 | 1857 | var _masonry = _interopRequireDefault(__webpack_require__(/*! ./imports/utils/masonry */ "../assets/dev/js/modules/imports/utils/masonry.js")); |
| 1683 | 1858 | var _scroll = _interopRequireDefault(__webpack_require__(/*! ./imports/utils/scroll */ "../assets/dev/js/modules/imports/utils/scroll.js")); |
| 1684 | 1859 | var _forceMethodImplementation = _interopRequireDefault(__webpack_require__(/*! ./imports/force-method-implementation */ "../assets/dev/js/modules/imports/force-method-implementation.js")); |
| 1685 | -var _templateRegistryHelpers = __webpack_require__(/*! ../../../../app/modules/import-export-customization/assets/js/shared/utils/template-registry-helpers */ "../app/modules/import-export-customization/assets/js/shared/utils/template-registry-helpers.js"); | |
| 1686 | -var _customizationDialogs = __webpack_require__(/*! ../../../../app/modules/import-export-customization/assets/js/shared/registry/customization-dialogs */ "../app/modules/import-export-customization/assets/js/shared/registry/customization-dialogs.js"); | |
| 1687 | -const baseModules = { | |
| 1860 | +var _default = window.elementorModules = { | |
| 1688 | 1861 | Module: _module.default, |
| 1689 | 1862 | ViewModule: _viewModule.default, |
| 1690 | 1863 | ArgsObject: _argsObject.default, |
| 1691 | 1864 | ForceMethodImplementation: _forceMethodImplementation.default, |
| @@ -1691,38 +1864,1370 @@ | ||
| 1691 | 1864 | ForceMethodImplementation: _forceMethodImplementation.default, |
| 1692 | 1865 | utils: { |
| 1693 | 1866 | Masonry: _masonry.default, |
| 1694 | 1867 | Scroll: _scroll.default |
| 1695 | - }, | |
| 1696 | - importExport: { | |
| 1697 | - createGetInitialState: _templateRegistryHelpers.createGetInitialState, | |
| 1698 | - customizationDialogsRegistry: _customizationDialogs.customizationDialogsRegistry | |
| 1699 | 1868 | } |
| 1700 | 1869 | }; |
| 1701 | -if (!window.elementorModules) { | |
| 1702 | - window.elementorModules = baseModules; | |
| 1703 | -} else { | |
| 1704 | - Object.assign(window.elementorModules, baseModules); | |
| 1870 | +exports["default"] = _default; | |
| 1871 | + | |
| 1872 | +/***/ }), | |
| 1873 | + | |
| 1874 | +/***/ "../modules/floating-buttons/assets/js/floating-bars/frontend/classes/floatin-bar-dom.js": | |
| 1875 | +/*!***********************************************************************************************!*\ | |
| 1876 | + !*** ../modules/floating-buttons/assets/js/floating-bars/frontend/classes/floatin-bar-dom.js ***! | |
| 1877 | + \***********************************************************************************************/ | |
| 1878 | +/***/ ((__unused_webpack_module, exports) => { | |
| 1879 | + | |
| 1880 | +"use strict"; | |
| 1881 | + | |
| 1882 | + | |
| 1883 | +Object.defineProperty(exports, "__esModule", ({ | |
| 1884 | + value: true | |
| 1885 | +})); | |
| 1886 | +exports["default"] = void 0; | |
| 1887 | +class FloatingBarDomHelper { | |
| 1888 | + constructor($element) { | |
| 1889 | + this.$element = $element; | |
| 1890 | + } | |
| 1891 | + maybeMoveToTop() { | |
| 1892 | + const el = this.$element[0]; | |
| 1893 | + const widget = el.querySelector('.e-floating-bars'); | |
| 1894 | + if (elementorFrontend.isEditMode()) { | |
| 1895 | + widget.classList.add('is-sticky'); | |
| 1896 | + return; | |
| 1897 | + } | |
| 1898 | + if (el.dataset.widget_type.startsWith('floating-bars') && widget.classList.contains('has-vertical-position-top') && !widget.classList.contains('is-sticky')) { | |
| 1899 | + const wpAdminBar = document.getElementById('wpadminbar'); | |
| 1900 | + const elementToInsert = el.closest('.elementor'); | |
| 1901 | + if (wpAdminBar) { | |
| 1902 | + wpAdminBar.after(elementToInsert); | |
| 1903 | + } else { | |
| 1904 | + document.body.prepend(elementToInsert); | |
| 1905 | + } | |
| 1906 | + } | |
| 1907 | + } | |
| 1705 | 1908 | } |
| 1706 | -var _default = exports["default"] = window.elementorModules; | |
| 1909 | +exports["default"] = FloatingBarDomHelper; | |
| 1707 | 1910 | |
| 1708 | 1911 | /***/ }), |
| 1709 | 1912 | |
| 1710 | -/***/ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js": | |
| 1711 | -/*!***********************************************************************!*\ | |
| 1712 | - !*** ../node_modules/@babel/runtime/helpers/interopRequireDefault.js ***! | |
| 1713 | - \***********************************************************************/ | |
| 1714 | -/***/ ((module) => { | |
| 1913 | +/***/ "../modules/floating-buttons/assets/js/floating-bars/frontend/handlers/floating-bars.js": | |
| 1914 | +/*!**********************************************************************************************!*\ | |
| 1915 | + !*** ../modules/floating-buttons/assets/js/floating-bars/frontend/handlers/floating-bars.js ***! | |
| 1916 | + \**********************************************************************************************/ | |
| 1917 | +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 1715 | 1918 | |
| 1716 | -function _interopRequireDefault(e) { | |
| 1717 | - return e && e.__esModule ? e : { | |
| 1718 | - "default": e | |
| 1719 | - }; | |
| 1919 | +"use strict"; | |
| 1920 | + | |
| 1921 | + | |
| 1922 | +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); | |
| 1923 | +Object.defineProperty(exports, "__esModule", ({ | |
| 1924 | + value: true | |
| 1925 | +})); | |
| 1926 | +exports["default"] = void 0; | |
| 1927 | +var _base = _interopRequireDefault(__webpack_require__(/*! elementor-frontend/handlers/base */ "../assets/dev/js/frontend/handlers/base.js")); | |
| 1928 | +var _floatinBarDom = _interopRequireDefault(__webpack_require__(/*! ../classes/floatin-bar-dom */ "../modules/floating-buttons/assets/js/floating-bars/frontend/classes/floatin-bar-dom.js")); | |
| 1929 | +var _clickTracking = _interopRequireDefault(__webpack_require__(/*! ../../../shared/frontend/handlers/click-tracking */ "../modules/floating-buttons/assets/js/shared/frontend/handlers/click-tracking.js")); | |
| 1930 | +class FloatingBarsHandler extends _base.default { | |
| 1931 | + getDefaultSettings() { | |
| 1932 | + return { | |
| 1933 | + selectors: { | |
| 1934 | + main: '.e-floating-bars', | |
| 1935 | + closeButton: '.e-floating-bars__close-button', | |
| 1936 | + ctaButton: '.e-floating-bars__cta-button' | |
| 1937 | + }, | |
| 1938 | + constants: { | |
| 1939 | + ctaEntranceAnimation: 'style_cta_button_animation', | |
| 1940 | + ctaEntranceAnimationDelay: 'style_cta_button_animation_delay', | |
| 1941 | + hasEntranceAnimation: 'has-entrance-animation', | |
| 1942 | + visible: 'visible', | |
| 1943 | + isSticky: 'is-sticky', | |
| 1944 | + hasVerticalPositionTop: 'has-vertical-position-top', | |
| 1945 | + hasVerticalPositionBottom: 'has-vertical-position-bottom', | |
| 1946 | + isHidden: 'is-hidden', | |
| 1947 | + animated: 'animated' | |
| 1948 | + } | |
| 1949 | + }; | |
| 1950 | + } | |
| 1951 | + getDefaultElements() { | |
| 1952 | + const selectors = this.getSettings('selectors'); | |
| 1953 | + return { | |
| 1954 | + main: this.$element[0].querySelector(selectors.main), | |
| 1955 | + mainAll: this.$element[0].querySelectorAll(selectors.main), | |
| 1956 | + closeButton: this.$element[0].querySelector(selectors.closeButton), | |
| 1957 | + ctaButton: this.$element[0].querySelector(selectors.ctaButton) | |
| 1958 | + }; | |
| 1959 | + } | |
| 1960 | + onElementChange(property) { | |
| 1961 | + const changedProperties = ['advanced_vertical_position']; | |
| 1962 | + if (changedProperties.includes(property)) { | |
| 1963 | + this.initDefaultState(); | |
| 1964 | + } | |
| 1965 | + } | |
| 1966 | + getResponsiveSetting(controlName) { | |
| 1967 | + const currentDevice = elementorFrontend.getCurrentDeviceMode(); | |
| 1968 | + return elementorFrontend.utils.controls.getResponsiveControlValue(this.getElementSettings(), controlName, '', currentDevice); | |
| 1969 | + } | |
| 1970 | + bindEvents() { | |
| 1971 | + if (this.elements.closeButton) { | |
| 1972 | + this.elements.closeButton.addEventListener('click', this.closeFloatingBar.bind(this)); | |
| 1973 | + } | |
| 1974 | + if (this.elements.ctaButton) { | |
| 1975 | + this.elements.ctaButton.addEventListener('animationend', this.handleAnimationEnd.bind(this)); | |
| 1976 | + } | |
| 1977 | + if (this.elements.main) { | |
| 1978 | + window.addEventListener('keyup', this.onDocumentKeyup.bind(this)); | |
| 1979 | + } | |
| 1980 | + if (this.hasStickyElements()) { | |
| 1981 | + window.addEventListener('resize', this.handleStickyElements.bind(this)); | |
| 1982 | + } | |
| 1983 | + } | |
| 1984 | + isStickyTop() { | |
| 1985 | + const { | |
| 1986 | + isSticky, | |
| 1987 | + hasVerticalPositionTop | |
| 1988 | + } = this.getSettings('constants'); | |
| 1989 | + return this.elements.main.classList.contains(isSticky) && this.elements.main.classList.contains(hasVerticalPositionTop); | |
| 1990 | + } | |
| 1991 | + isStickyBottom() { | |
| 1992 | + const { | |
| 1993 | + isSticky, | |
| 1994 | + hasVerticalPositionBottom | |
| 1995 | + } = this.getSettings('constants'); | |
| 1996 | + return this.elements.main.classList.contains(isSticky) && this.elements.main.classList.contains(hasVerticalPositionBottom); | |
| 1997 | + } | |
| 1998 | + hasStickyElements() { | |
| 1999 | + const stickyElements = document.querySelectorAll('.elementor-sticky'); | |
| 2000 | + return stickyElements.length > 0; | |
| 2001 | + } | |
| 2002 | + focusOnLoad() { | |
| 2003 | + this.elements.main.setAttribute('tabindex', '0'); | |
| 2004 | + this.elements.main.focus({ | |
| 2005 | + focusVisible: true | |
| 2006 | + }); | |
| 2007 | + } | |
| 2008 | + applyBodyPadding() { | |
| 2009 | + const mainHeight = this.elements.main.offsetHeight; | |
| 2010 | + document.body.style.paddingTop = `${mainHeight}px`; | |
| 2011 | + } | |
| 2012 | + removeBodyPadding() { | |
| 2013 | + document.body.style.paddingTop = '0'; | |
| 2014 | + } | |
| 2015 | + handleWPAdminBar() { | |
| 2016 | + const wpAdminBar = elementorFrontend.elements.$wpAdminBar; | |
| 2017 | + if (wpAdminBar.length) { | |
| 2018 | + this.elements.main.style.top = `${wpAdminBar.height()}px`; | |
| 2019 | + } | |
| 2020 | + } | |
| 2021 | + handleStickyElements() { | |
| 2022 | + const mainHeight = this.elements.main.offsetHeight; | |
| 2023 | + const wpAdminBar = elementorFrontend.elements.$wpAdminBar; | |
| 2024 | + const stickyElements = document.querySelectorAll('.elementor-sticky:not(.elementor-sticky__spacer)'); | |
| 2025 | + if (0 === stickyElements.length) { | |
| 2026 | + return; | |
| 2027 | + } | |
| 2028 | + stickyElements.forEach(stickyElement => { | |
| 2029 | + const dataSettings = stickyElement.getAttribute('data-settings'); | |
| 2030 | + const stickyPosition = JSON.parse(dataSettings)?.sticky; | |
| 2031 | + const isTop = '0px' === stickyElement.style.top || 'top' === stickyPosition; | |
| 2032 | + const isBottom = '0px' === stickyElement.style.bottom || 'bottom' === stickyPosition; | |
| 2033 | + if (this.isStickyTop() && isTop) { | |
| 2034 | + if (wpAdminBar.length) { | |
| 2035 | + stickyElement.style.top = `${mainHeight + wpAdminBar.height()}px`; | |
| 2036 | + } else { | |
| 2037 | + stickyElement.style.top = `${mainHeight}px`; | |
| 2038 | + } | |
| 2039 | + } else if (this.isStickyBottom() && isBottom) { | |
| 2040 | + stickyElement.style.bottom = `${mainHeight}px`; | |
| 2041 | + } | |
| 2042 | + if (elementorFrontend.isEditMode()) { | |
| 2043 | + if (isTop) { | |
| 2044 | + stickyElement.style.top = this.isStickyTop() ? `${mainHeight}px` : '0px'; | |
| 2045 | + } else if (isBottom) { | |
| 2046 | + stickyElement.style.bottom = this.isStickyBottom() ? `${mainHeight}px` : '0px'; | |
| 2047 | + } | |
| 2048 | + } | |
| 2049 | + }); | |
| 2050 | + document.querySelectorAll('.elementor-sticky__spacer').forEach(stickySpacer => { | |
| 2051 | + const dataSettings = stickySpacer.getAttribute('data-settings'); | |
| 2052 | + const stickyPosition = JSON.parse(dataSettings)?.sticky; | |
| 2053 | + const isTop = '0px' === stickySpacer.style.top || 'top' === stickyPosition; | |
| 2054 | + if (this.isStickyTop() && isTop) { | |
| 2055 | + stickySpacer.style.marginBottom = `${mainHeight}px`; | |
| 2056 | + } | |
| 2057 | + }); | |
| 2058 | + } | |
| 2059 | + closeFloatingBar() { | |
| 2060 | + const { | |
| 2061 | + isHidden | |
| 2062 | + } = this.getSettings('constants'); | |
| 2063 | + if (!elementorFrontend.isEditMode()) { | |
| 2064 | + this.elements.main.classList.add(isHidden); | |
| 2065 | + if (this.hasStickyElements()) { | |
| 2066 | + this.handleStickyElements(); | |
| 2067 | + } else if (this.isStickyTop()) { | |
| 2068 | + this.removeBodyPadding(); | |
| 2069 | + } | |
| 2070 | + } | |
| 2071 | + } | |
| 2072 | + initEntranceAnimation() { | |
| 2073 | + const { | |
| 2074 | + animated, | |
| 2075 | + ctaEntranceAnimation, | |
| 2076 | + ctaEntranceAnimationDelay, | |
| 2077 | + hasEntranceAnimation | |
| 2078 | + } = this.getSettings('constants'); | |
| 2079 | + const entranceAnimationClass = this.getResponsiveSetting(ctaEntranceAnimation); | |
| 2080 | + const entranceAnimationDelay = this.getResponsiveSetting(ctaEntranceAnimationDelay) || 0; | |
| 2081 | + const setTimeoutDelay = entranceAnimationDelay + 500; | |
| 2082 | + this.elements.ctaButton.classList.add(animated); | |
| 2083 | + this.elements.ctaButton.classList.add(entranceAnimationClass); | |
| 2084 | + setTimeout(() => { | |
| 2085 | + this.elements.ctaButton.classList.remove(hasEntranceAnimation); | |
| 2086 | + }, setTimeoutDelay); | |
| 2087 | + } | |
| 2088 | + handleAnimationEnd() { | |
| 2089 | + this.removeEntranceAnimationClasses(); | |
| 2090 | + this.focusOnLoad(); | |
| 2091 | + } | |
| 2092 | + removeEntranceAnimationClasses() { | |
| 2093 | + if (!this.elements.ctaButton) { | |
| 2094 | + return; | |
| 2095 | + } | |
| 2096 | + const { | |
| 2097 | + animated, | |
| 2098 | + ctaEntranceAnimation, | |
| 2099 | + visible | |
| 2100 | + } = this.getSettings('constants'); | |
| 2101 | + const entranceAnimationClass = this.getResponsiveSetting(ctaEntranceAnimation); | |
| 2102 | + this.elements.ctaButton.classList.remove(animated); | |
| 2103 | + this.elements.ctaButton.classList.remove(entranceAnimationClass); | |
| 2104 | + this.elements.ctaButton.classList.add(visible); | |
| 2105 | + } | |
| 2106 | + onDocumentKeyup(event) { | |
| 2107 | + // Bail if not ESC key | |
| 2108 | + if (event.keyCode !== 27 || !this.elements.main) { | |
| 2109 | + return; | |
| 2110 | + } | |
| 2111 | + | |
| 2112 | + /* eslint-disable @wordpress/no-global-active-element */ | |
| 2113 | + if (this.elements.main.contains(document.activeElement)) { | |
| 2114 | + this.closeFloatingBar(); | |
| 2115 | + } | |
| 2116 | + /* eslint-enable @wordpress/no-global-active-element */ | |
| 2117 | + } | |
| 2118 | + | |
| 2119 | + initDefaultState() { | |
| 2120 | + const { | |
| 2121 | + hasEntranceAnimation | |
| 2122 | + } = this.getSettings('constants'); | |
| 2123 | + if (this.isStickyTop()) { | |
| 2124 | + this.handleWPAdminBar(); | |
| 2125 | + } | |
| 2126 | + if (this.hasStickyElements()) { | |
| 2127 | + this.handleStickyElements(); | |
| 2128 | + } else if (this.isStickyTop()) { | |
| 2129 | + this.applyBodyPadding(); | |
| 2130 | + } | |
| 2131 | + if (this.elements.main && !this.elements.ctaButton.classList.contains(hasEntranceAnimation) && !elementorFrontend.isEditMode()) { | |
| 2132 | + this.focusOnLoad(); | |
| 2133 | + } | |
| 2134 | + } | |
| 2135 | + setupInnerContainer() { | |
| 2136 | + this.elements.main.closest('.e-con-inner').classList.add('e-con-inner--floating-bars'); | |
| 2137 | + this.elements.main.closest('.e-con').classList.add('e-con--floating-bars'); | |
| 2138 | + } | |
| 2139 | + onInit() { | |
| 2140 | + const { | |
| 2141 | + hasEntranceAnimation | |
| 2142 | + } = this.getSettings('constants'); | |
| 2143 | + super.onInit(...arguments); | |
| 2144 | + this.clickTrackingHandler = new _clickTracking.default({ | |
| 2145 | + $element: this.$element | |
| 2146 | + }); | |
| 2147 | + const domHelper = new _floatinBarDom.default(this.$element); | |
| 2148 | + domHelper.maybeMoveToTop(); | |
| 2149 | + if (this.elements.ctaButton && this.elements.ctaButton.classList.contains(hasEntranceAnimation)) { | |
| 2150 | + this.initEntranceAnimation(); | |
| 2151 | + } | |
| 2152 | + this.initDefaultState(); | |
| 2153 | + this.setupInnerContainer(); | |
| 2154 | + } | |
| 1720 | 2155 | } |
| 1721 | -module.exports = _interopRequireDefault, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 2156 | +exports["default"] = FloatingBarsHandler; | |
| 1722 | 2157 | |
| 1723 | 2158 | /***/ }), |
| 1724 | 2159 | |
| 2160 | +/***/ "../modules/floating-buttons/assets/js/floating-buttons/frontend/handlers/contact-buttons.js": | |
| 2161 | +/*!***************************************************************************************************!*\ | |
| 2162 | + !*** ../modules/floating-buttons/assets/js/floating-buttons/frontend/handlers/contact-buttons.js ***! | |
| 2163 | + \***************************************************************************************************/ | |
| 2164 | +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 2165 | + | |
| 2166 | +"use strict"; | |
| 2167 | + | |
| 2168 | + | |
| 2169 | +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); | |
| 2170 | +Object.defineProperty(exports, "__esModule", ({ | |
| 2171 | + value: true | |
| 2172 | +})); | |
| 2173 | +exports["default"] = void 0; | |
| 2174 | +var _base = _interopRequireDefault(__webpack_require__(/*! elementor-frontend/handlers/base */ "../assets/dev/js/frontend/handlers/base.js")); | |
| 2175 | +var _clickTracking = _interopRequireDefault(__webpack_require__(/*! ../../../shared/frontend/handlers/click-tracking */ "../modules/floating-buttons/assets/js/shared/frontend/handlers/click-tracking.js")); | |
| 2176 | +class ContactButtonsHandler extends _base.default { | |
| 2177 | + getDefaultSettings() { | |
| 2178 | + return { | |
| 2179 | + selectors: { | |
| 2180 | + main: '.e-contact-buttons', | |
| 2181 | + content: '.e-contact-buttons__content', | |
| 2182 | + contentWrapper: '.e-contact-buttons__content-wrapper', | |
| 2183 | + chatButton: '.e-contact-buttons__chat-button', | |
| 2184 | + closeButton: '.e-contact-buttons__close-button', | |
| 2185 | + messageBubbleTime: '.e-contact-buttons__message-bubble-time' | |
| 2186 | + }, | |
| 2187 | + constants: { | |
| 2188 | + entranceAnimation: 'style_chat_box_entrance_animation', | |
| 2189 | + exitAnimation: 'style_chat_box_exit_animation', | |
| 2190 | + chatButtonAnimation: 'style_chat_button_animation', | |
| 2191 | + animated: 'animated', | |
| 2192 | + animatedWrapper: 'animated-wrapper', | |
| 2193 | + visible: 'visible', | |
| 2194 | + reverse: 'reverse', | |
| 2195 | + hidden: 'hidden', | |
| 2196 | + hasAnimations: 'has-animations', | |
| 2197 | + hasEntranceAnimation: 'has-entrance-animation', | |
| 2198 | + none: 'none' | |
| 2199 | + } | |
| 2200 | + }; | |
| 2201 | + } | |
| 2202 | + getDefaultElements() { | |
| 2203 | + const selectors = this.getSettings('selectors'); | |
| 2204 | + return { | |
| 2205 | + main: this.$element[0].querySelector(selectors.main), | |
| 2206 | + content: this.$element[0].querySelector(selectors.content), | |
| 2207 | + contentWrapper: this.$element[0].querySelector(selectors.contentWrapper), | |
| 2208 | + chatButton: this.$element[0].querySelector(selectors.chatButton), | |
| 2209 | + closeButton: this.$element[0].querySelector(selectors.closeButton), | |
| 2210 | + messageBubbleTime: this.$element[0].querySelector(selectors.messageBubbleTime) | |
| 2211 | + }; | |
| 2212 | + } | |
| 2213 | + getResponsiveSetting(controlName) { | |
| 2214 | + const currentDevice = elementorFrontend.getCurrentDeviceMode(); | |
| 2215 | + return elementorFrontend.utils.controls.getResponsiveControlValue(this.getElementSettings(), controlName, '', currentDevice); | |
| 2216 | + } | |
| 2217 | + bindEvents() { | |
| 2218 | + if (this.elements.closeButton) { | |
| 2219 | + this.elements.closeButton.addEventListener('click', this.closeChatBox.bind(this)); | |
| 2220 | + } | |
| 2221 | + if (this.elements.chatButton) { | |
| 2222 | + this.elements.chatButton.addEventListener('click', this.onChatButtonClick.bind(this)); | |
| 2223 | + this.elements.chatButton.addEventListener('animationend', this.removeChatButtonAnimationClasses.bind(this)); | |
| 2224 | + } | |
| 2225 | + if (this.elements.content) { | |
| 2226 | + this.elements.content.addEventListener('animationend', this.removeAnimationClasses.bind(this)); | |
| 2227 | + } | |
| 2228 | + if (this.elements.contentWrapper) { | |
| 2229 | + window.addEventListener('keyup', this.onDocumentKeyup.bind(this)); | |
| 2230 | + } | |
| 2231 | + } | |
| 2232 | + contentWrapperIsHidden(hide) { | |
| 2233 | + if (!this.elements.contentWrapper) { | |
| 2234 | + return false; | |
| 2235 | + } | |
| 2236 | + const { | |
| 2237 | + hidden | |
| 2238 | + } = this.getSettings('constants'); | |
| 2239 | + | |
| 2240 | + // Set current state | |
| 2241 | + if (true === hide) { | |
| 2242 | + this.elements.contentWrapper.classList.add(hidden); | |
| 2243 | + this.elements.contentWrapper.setAttribute('aria-hidden', 'true'); | |
| 2244 | + return; | |
| 2245 | + } | |
| 2246 | + if (false === hide) { | |
| 2247 | + this.elements.contentWrapper.classList.remove(hidden); | |
| 2248 | + this.elements.contentWrapper.setAttribute('aria-hidden', 'false'); | |
| 2249 | + return; | |
| 2250 | + } | |
| 2251 | + | |
| 2252 | + // Get current state | |
| 2253 | + return this.elements.contentWrapper.classList.contains(hidden); | |
| 2254 | + } | |
| 2255 | + onDocumentKeyup(event) { | |
| 2256 | + // Bail if not ESC key | |
| 2257 | + if (event.keyCode !== 27 || !this.elements.main) { | |
| 2258 | + return; | |
| 2259 | + } | |
| 2260 | + | |
| 2261 | + /* eslint-disable @wordpress/no-global-active-element */ | |
| 2262 | + if (!this.contentWrapperIsHidden() && this.elements.main.contains(document.activeElement)) { | |
| 2263 | + this.closeChatBox(); | |
| 2264 | + } | |
| 2265 | + /* eslint-enable @wordpress/no-global-active-element */ | |
| 2266 | + } | |
| 2267 | + | |
| 2268 | + removeAnimationClasses() { | |
| 2269 | + if (!this.elements.content) { | |
| 2270 | + return; | |
| 2271 | + } | |
| 2272 | + const { | |
| 2273 | + reverse, | |
| 2274 | + entranceAnimation, | |
| 2275 | + exitAnimation, | |
| 2276 | + animated, | |
| 2277 | + visible | |
| 2278 | + } = this.getSettings('constants'); | |
| 2279 | + const isExitAnimation = this.elements.content.classList.contains(reverse), | |
| 2280 | + openAnimationClass = this.getResponsiveSetting(entranceAnimation), | |
| 2281 | + exitAnimationClass = this.getResponsiveSetting(exitAnimation); | |
| 2282 | + if (isExitAnimation) { | |
| 2283 | + this.elements.content.classList.remove(animated); | |
| 2284 | + this.elements.content.classList.remove(reverse); | |
| 2285 | + if (exitAnimationClass) { | |
| 2286 | + this.elements.content.classList.remove(exitAnimationClass); | |
| 2287 | + } | |
| 2288 | + this.elements.content.classList.remove(visible); | |
| 2289 | + } else { | |
| 2290 | + this.elements.content.classList.remove(animated); | |
| 2291 | + if (openAnimationClass) { | |
| 2292 | + this.elements.content.classList.remove(openAnimationClass); | |
| 2293 | + } | |
| 2294 | + this.elements.content.classList.add(visible); | |
| 2295 | + } | |
| 2296 | + } | |
| 2297 | + chatBoxEntranceAnimation() { | |
| 2298 | + const { | |
| 2299 | + entranceAnimation, | |
| 2300 | + animated, | |
| 2301 | + animatedWrapper, | |
| 2302 | + none | |
| 2303 | + } = this.getSettings('constants'); | |
| 2304 | + const entranceAnimationControl = this.getResponsiveSetting(entranceAnimation); | |
| 2305 | + if (!entranceAnimationControl || none === entranceAnimationControl) { | |
| 2306 | + return; | |
| 2307 | + } | |
| 2308 | + if (this.elements.content) { | |
| 2309 | + this.elements.content.classList.add(animated); | |
| 2310 | + this.elements.content.classList.add(entranceAnimationControl); | |
| 2311 | + } | |
| 2312 | + if (this.elements.contentWrapper) { | |
| 2313 | + this.elements.contentWrapper.classList.remove(animatedWrapper); | |
| 2314 | + } | |
| 2315 | + } | |
| 2316 | + chatBoxExitAnimation() { | |
| 2317 | + const { | |
| 2318 | + reverse, | |
| 2319 | + exitAnimation, | |
| 2320 | + animated, | |
| 2321 | + animatedWrapper, | |
| 2322 | + none | |
| 2323 | + } = this.getSettings('constants'); | |
| 2324 | + const exitAnimationControl = this.getResponsiveSetting(exitAnimation); | |
| 2325 | + if (!exitAnimationControl || none === exitAnimationControl) { | |
| 2326 | + return; | |
| 2327 | + } | |
| 2328 | + if (this.elements.content) { | |
| 2329 | + this.elements.content.classList.add(animated); | |
| 2330 | + this.elements.content.classList.add(reverse); | |
| 2331 | + this.elements.content.classList.add(exitAnimationControl); | |
| 2332 | + } | |
| 2333 | + if (this.elements.contentWrapper) { | |
| 2334 | + this.elements.contentWrapper.classList.add(animatedWrapper); | |
| 2335 | + } | |
| 2336 | + } | |
| 2337 | + openChatBox() { | |
| 2338 | + const { | |
| 2339 | + hasAnimations, | |
| 2340 | + visible | |
| 2341 | + } = this.getSettings('constants'); | |
| 2342 | + if (this.elements.main && this.elements.main.classList.contains(hasAnimations)) { | |
| 2343 | + this.chatBoxEntranceAnimation(); | |
| 2344 | + } else if (this.elements.content) { | |
| 2345 | + this.elements.content.classList.add(visible); | |
| 2346 | + } | |
| 2347 | + if (this.elements.contentWrapper) { | |
| 2348 | + this.contentWrapperIsHidden(false); | |
| 2349 | + if (!elementorFrontend.isEditMode()) { | |
| 2350 | + this.elements.contentWrapper.setAttribute('tabindex', '0'); | |
| 2351 | + this.elements.contentWrapper.focus({ | |
| 2352 | + focusVisible: true | |
| 2353 | + }); | |
| 2354 | + } | |
| 2355 | + } | |
| 2356 | + if (this.elements.chatButton) { | |
| 2357 | + this.elements.chatButton.setAttribute('aria-expanded', 'true'); | |
| 2358 | + } | |
| 2359 | + if (this.elements.closeButton) { | |
| 2360 | + this.elements.closeButton.setAttribute('aria-expanded', 'true'); | |
| 2361 | + } | |
| 2362 | + } | |
| 2363 | + closeChatBox() { | |
| 2364 | + const { | |
| 2365 | + hasAnimations, | |
| 2366 | + visible | |
| 2367 | + } = this.getSettings('constants'); | |
| 2368 | + if (this.elements.main && this.elements.main.classList.contains(hasAnimations)) { | |
| 2369 | + this.chatBoxExitAnimation(); | |
| 2370 | + } else if (this.elements.content) { | |
| 2371 | + this.elements.content.classList.remove(visible); | |
| 2372 | + } | |
| 2373 | + if (this.elements.contentWrapper) { | |
| 2374 | + this.contentWrapperIsHidden(true); | |
| 2375 | + } | |
| 2376 | + if (this.elements.chatButton) { | |
| 2377 | + this.elements.chatButton.setAttribute('aria-expanded', 'false'); | |
| 2378 | + this.elements.chatButton.focus({ | |
| 2379 | + focusVisible: true | |
| 2380 | + }); | |
| 2381 | + } | |
| 2382 | + if (this.elements.closeButton) { | |
| 2383 | + this.elements.closeButton.setAttribute('aria-expanded', 'false'); | |
| 2384 | + } | |
| 2385 | + } | |
| 2386 | + onChatButtonClick() { | |
| 2387 | + if (this.elements.contentWrapper && this.contentWrapperIsHidden()) { | |
| 2388 | + this.openChatBox(); | |
| 2389 | + } else { | |
| 2390 | + this.closeChatBox(); | |
| 2391 | + } | |
| 2392 | + } | |
| 2393 | + initMessageBubbleTime() { | |
| 2394 | + if (!this.elements.messageBubbleTime) { | |
| 2395 | + return; | |
| 2396 | + } | |
| 2397 | + const messageBubbleTimeFormat = this.elements.messageBubbleTime.dataset.timeFormat; | |
| 2398 | + const is12hFormat = '12h' === messageBubbleTimeFormat; | |
| 2399 | + this.elements.messageBubbleTime.innerHTML = new Intl.DateTimeFormat('default', { | |
| 2400 | + hour12: is12hFormat, | |
| 2401 | + hour: 'numeric', | |
| 2402 | + minute: 'numeric' | |
| 2403 | + }).format(new Date()); | |
| 2404 | + } | |
| 2405 | + removeChatButtonAnimationClasses() { | |
| 2406 | + if (!this.elements.chatButton) { | |
| 2407 | + return; | |
| 2408 | + } | |
| 2409 | + const { | |
| 2410 | + chatButtonAnimation, | |
| 2411 | + visible | |
| 2412 | + } = this.getSettings('constants'); | |
| 2413 | + this.elements.chatButton.classList.remove(chatButtonAnimation); | |
| 2414 | + this.elements.chatButton.classList.add(visible); | |
| 2415 | + } | |
| 2416 | + initChatButtonEntranceAnimation() { | |
| 2417 | + const { | |
| 2418 | + none, | |
| 2419 | + chatButtonAnimation | |
| 2420 | + } = this.getSettings('constants'); | |
| 2421 | + const entranceAnimationControl = this.getResponsiveSetting(chatButtonAnimation); | |
| 2422 | + if (!entranceAnimationControl || none === entranceAnimationControl) { | |
| 2423 | + return; | |
| 2424 | + } | |
| 2425 | + this.elements.chatButton.classList.add(entranceAnimationControl); | |
| 2426 | + } | |
| 2427 | + initDefaultState() { | |
| 2428 | + // Manage accessibility | |
| 2429 | + if (this.elements.contentWrapper) { | |
| 2430 | + const isHidden = this.contentWrapperIsHidden(); | |
| 2431 | + if (this.elements.chatButton) { | |
| 2432 | + this.elements.chatButton.setAttribute('aria-expanded', !isHidden); | |
| 2433 | + } | |
| 2434 | + if (this.elements.closeButton) { | |
| 2435 | + this.elements.closeButton.setAttribute('aria-expanded', !isHidden); | |
| 2436 | + } | |
| 2437 | + } | |
| 2438 | + if (elementorFrontend.isEditMode() && 'floating-buttons' === elementor?.config?.document?.type) { | |
| 2439 | + this.openChatBox(); | |
| 2440 | + } | |
| 2441 | + } | |
| 2442 | + setupInnerContainer() { | |
| 2443 | + this.elements.main.closest('.e-con-inner').classList.add('e-con-inner--floating-buttons'); | |
| 2444 | + } | |
| 2445 | + onInit() { | |
| 2446 | + const { | |
| 2447 | + hasEntranceAnimation | |
| 2448 | + } = this.getSettings('constants'); | |
| 2449 | + super.onInit(...arguments); | |
| 2450 | + this.clickTrackingHandler = new _clickTracking.default({ | |
| 2451 | + $element: this.$element | |
| 2452 | + }); | |
| 2453 | + if (this.elements.messageBubbleTime) { | |
| 2454 | + this.initMessageBubbleTime(); | |
| 2455 | + } | |
| 2456 | + this.initDefaultState(); | |
| 2457 | + if (this.elements.chatButton) { | |
| 2458 | + if (this.elements.chatButton.classList.contains(hasEntranceAnimation)) { | |
| 2459 | + this.initChatButtonEntranceAnimation(); | |
| 2460 | + } | |
| 2461 | + } | |
| 2462 | + this.setupInnerContainer(); | |
| 2463 | + } | |
| 2464 | +} | |
| 2465 | +exports["default"] = ContactButtonsHandler; | |
| 2466 | + | |
| 2467 | +/***/ }), | |
| 2468 | + | |
| 2469 | +/***/ "../modules/floating-buttons/assets/js/shared/frontend/handlers/click-tracking.js": | |
| 2470 | +/*!****************************************************************************************!*\ | |
| 2471 | + !*** ../modules/floating-buttons/assets/js/shared/frontend/handlers/click-tracking.js ***! | |
| 2472 | + \****************************************************************************************/ | |
| 2473 | +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 2474 | + | |
| 2475 | +"use strict"; | |
| 2476 | + | |
| 2477 | + | |
| 2478 | +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); | |
| 2479 | +Object.defineProperty(exports, "__esModule", ({ | |
| 2480 | + value: true | |
| 2481 | +})); | |
| 2482 | +exports["default"] = void 0; | |
| 2483 | +var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ "../node_modules/@babel/runtime/helpers/defineProperty.js")); | |
| 2484 | +var _base = _interopRequireDefault(__webpack_require__(/*! elementor-frontend/handlers/base */ "../assets/dev/js/frontend/handlers/base.js")); | |
| 2485 | +class ClickTrackingHandler extends _base.default { | |
| 2486 | + constructor() { | |
| 2487 | + super(...arguments); | |
| 2488 | + (0, _defineProperty2.default)(this, "clicks", []); | |
| 2489 | + } | |
| 2490 | + getDefaultSettings() { | |
| 2491 | + return { | |
| 2492 | + selectors: { | |
| 2493 | + contentWrapper: '.e-contact-buttons__content-wrapper', | |
| 2494 | + contactButtonCore: '.e-contact-buttons__send-button', | |
| 2495 | + contentWrapperFloatingBars: '.e-floating-bars', | |
| 2496 | + floatingBarCTAButton: '.e-floating-bars__cta-button', | |
| 2497 | + elementorWrapper: '[data-elementor-type="floating-buttons"]' | |
| 2498 | + } | |
| 2499 | + }; | |
| 2500 | + } | |
| 2501 | + getDefaultElements() { | |
| 2502 | + const selectors = this.getSettings('selectors'); | |
| 2503 | + return { | |
| 2504 | + contentWrapper: this.$element[0].querySelector(selectors.contentWrapper), | |
| 2505 | + contentWrapperFloatingBars: this.$element[0].querySelector(selectors.contentWrapperFloatingBars) | |
| 2506 | + }; | |
| 2507 | + } | |
| 2508 | + bindEvents() { | |
| 2509 | + if (this.elements.contentWrapper) { | |
| 2510 | + this.elements.contentWrapper.addEventListener('click', this.onChatButtonTrackClick.bind(this)); | |
| 2511 | + } | |
| 2512 | + if (this.elements.contentWrapperFloatingBars) { | |
| 2513 | + this.elements.contentWrapperFloatingBars.addEventListener('click', this.onChatButtonTrackClick.bind(this)); | |
| 2514 | + } | |
| 2515 | + window.addEventListener('beforeunload', () => { | |
| 2516 | + if (this.clicks.length > 0) { | |
| 2517 | + this.sendClicks(); | |
| 2518 | + } | |
| 2519 | + }); | |
| 2520 | + } | |
| 2521 | + onChatButtonTrackClick(event) { | |
| 2522 | + const targetElement = event.target || event.srcElement; | |
| 2523 | + const selectors = this.getSettings('selectors'); | |
| 2524 | + if (targetElement.matches(selectors.contactButtonCore) || targetElement.closest(selectors.contactButtonCore) || targetElement.matches(selectors.floatingBarCTAButton) || targetElement.closest(selectors.floatingBarCTAButton)) { | |
| 2525 | + this.getDocumentIdAndTrack(targetElement, selectors); | |
| 2526 | + } | |
| 2527 | + } | |
| 2528 | + getDocumentIdAndTrack(targetElement, selectors) { | |
| 2529 | + const documentId = targetElement.closest(selectors.elementorWrapper).dataset.elementorId; | |
| 2530 | + this.trackClick(documentId); | |
| 2531 | + } | |
| 2532 | + trackClick(documentId) { | |
| 2533 | + if (!documentId) { | |
| 2534 | + return; | |
| 2535 | + } | |
| 2536 | + this.clicks.push(documentId); | |
| 2537 | + if (this.clicks.length >= 10) { | |
| 2538 | + this.sendClicks(); | |
| 2539 | + } | |
| 2540 | + } | |
| 2541 | + sendClicks() { | |
| 2542 | + const formData = new FormData(); | |
| 2543 | + formData.append('action', 'elementor_send_clicks'); | |
| 2544 | + formData.append('_nonce', elementorFrontendConfig?.nonces?.floatingButtonsClickTracking); | |
| 2545 | + this.clicks.forEach(documentId => formData.append('clicks[]', documentId)); | |
| 2546 | + fetch(elementorFrontendConfig?.urls?.ajaxurl, { | |
| 2547 | + method: 'POST', | |
| 2548 | + body: formData | |
| 2549 | + }).then(() => { | |
| 2550 | + this.clicks = []; | |
| 2551 | + }); | |
| 2552 | + } | |
| 2553 | +} | |
| 2554 | +exports["default"] = ClickTrackingHandler; | |
| 2555 | + | |
| 2556 | +/***/ }), | |
| 2557 | + | |
| 2558 | +/***/ "../modules/nested-accordion/assets/js/frontend/handlers/nested-accordion-title-keyboard-handler.js": | |
| 2559 | +/*!**********************************************************************************************************!*\ | |
| 2560 | + !*** ../modules/nested-accordion/assets/js/frontend/handlers/nested-accordion-title-keyboard-handler.js ***! | |
| 2561 | + \**********************************************************************************************************/ | |
| 2562 | +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 2563 | + | |
| 2564 | +"use strict"; | |
| 2565 | + | |
| 2566 | + | |
| 2567 | +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); | |
| 2568 | +Object.defineProperty(exports, "__esModule", ({ | |
| 2569 | + value: true | |
| 2570 | +})); | |
| 2571 | +exports["default"] = void 0; | |
| 2572 | +var _nestedTitleKeyboardHandler = _interopRequireDefault(__webpack_require__(/*! elementor-assets-js/frontend/handlers/accessibility/nested-title-keyboard-handler */ "../assets/dev/js/frontend/handlers/accessibility/nested-title-keyboard-handler.js")); | |
| 2573 | +class NestedAccordionTitleKeyboardHandler extends _nestedTitleKeyboardHandler.default { | |
| 2574 | + __construct() { | |
| 2575 | + super.__construct(...arguments); | |
| 2576 | + const config = arguments.length <= 0 ? undefined : arguments[0]; | |
| 2577 | + this.toggleTitle = config.toggleTitle; | |
| 2578 | + } | |
| 2579 | + getDefaultSettings() { | |
| 2580 | + const parentSettings = super.getDefaultSettings(); | |
| 2581 | + return { | |
| 2582 | + ...parentSettings, | |
| 2583 | + selectors: { | |
| 2584 | + itemTitle: '.e-n-accordion-item-title', | |
| 2585 | + itemContainer: '.e-n-accordion-item > .e-con' | |
| 2586 | + }, | |
| 2587 | + ariaAttributes: { | |
| 2588 | + titleStateAttribute: 'aria-expanded', | |
| 2589 | + activeTitleSelector: '[aria-expanded="true"]' | |
| 2590 | + }, | |
| 2591 | + datasets: { | |
| 2592 | + titleIndex: 'data-accordion-index' | |
| 2593 | + } | |
| 2594 | + }; | |
| 2595 | + } | |
| 2596 | + handeTitleLinkEnterOrSpaceEvent(event) { | |
| 2597 | + this.toggleTitle(event); | |
| 2598 | + } | |
| 2599 | + handleContentElementEscapeEvents(event) { | |
| 2600 | + this.getActiveTitleElement().trigger('focus'); | |
| 2601 | + this.toggleTitle(event); | |
| 2602 | + } | |
| 2603 | + handleTitleEscapeKeyEvents(event) { | |
| 2604 | + const detailsNode = event?.currentTarget?.parentElement, | |
| 2605 | + isOpen = detailsNode?.open; | |
| 2606 | + if (isOpen) { | |
| 2607 | + this.toggleTitle(event); | |
| 2608 | + } | |
| 2609 | + } | |
| 2610 | +} | |
| 2611 | +exports["default"] = NestedAccordionTitleKeyboardHandler; | |
| 2612 | + | |
| 2613 | +/***/ }), | |
| 2614 | + | |
| 2615 | +/***/ "../modules/nested-accordion/assets/js/frontend/handlers/nested-accordion.js": | |
| 2616 | +/*!***********************************************************************************!*\ | |
| 2617 | + !*** ../modules/nested-accordion/assets/js/frontend/handlers/nested-accordion.js ***! | |
| 2618 | + \***********************************************************************************/ | |
| 2619 | +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 2620 | + | |
| 2621 | +"use strict"; | |
| 2622 | + | |
| 2623 | + | |
| 2624 | +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); | |
| 2625 | +Object.defineProperty(exports, "__esModule", ({ | |
| 2626 | + value: true | |
| 2627 | +})); | |
| 2628 | +exports["default"] = void 0; | |
| 2629 | +var _base = _interopRequireDefault(__webpack_require__(/*! elementor-frontend/handlers/base */ "../assets/dev/js/frontend/handlers/base.js")); | |
| 2630 | +var _nestedAccordionTitleKeyboardHandler = _interopRequireDefault(__webpack_require__(/*! ./nested-accordion-title-keyboard-handler */ "../modules/nested-accordion/assets/js/frontend/handlers/nested-accordion-title-keyboard-handler.js")); | |
| 2631 | +class NestedAccordion extends _base.default { | |
| 2632 | + constructor() { | |
| 2633 | + super(...arguments); | |
| 2634 | + this.animations = new Map(); | |
| 2635 | + } | |
| 2636 | + getDefaultSettings() { | |
| 2637 | + return { | |
| 2638 | + selectors: { | |
| 2639 | + accordion: '.e-n-accordion', | |
| 2640 | + accordionContentContainers: '.e-n-accordion > .e-con', | |
| 2641 | + accordionItems: '.e-n-accordion-item', | |
| 2642 | + accordionItemTitles: '.e-n-accordion-item-title', | |
| 2643 | + accordionItemTitlesText: '.e-n-accordion-item-title-text', | |
| 2644 | + accordionContent: '.e-n-accordion-item > .e-con', | |
| 2645 | + directAccordionItems: ':scope > .e-n-accordion-item', | |
| 2646 | + directAccordionItemTitles: ':scope > .e-n-accordion-item > .e-n-accordion-item-title' | |
| 2647 | + }, | |
| 2648 | + default_state: 'expanded', | |
| 2649 | + attributes: { | |
| 2650 | + index: 'data-accordion-index', | |
| 2651 | + ariaLabelledBy: 'aria-labelledby' | |
| 2652 | + } | |
| 2653 | + }; | |
| 2654 | + } | |
| 2655 | + getDefaultElements() { | |
| 2656 | + const selectors = this.getSettings('selectors'); | |
| 2657 | + return { | |
| 2658 | + $accordion: this.findElement(selectors.accordion), | |
| 2659 | + $contentContainers: this.findElement(selectors.accordionContentContainers), | |
| 2660 | + $accordionItems: this.findElement(selectors.accordionItems), | |
| 2661 | + $accordionTitles: this.findElement(selectors.accordionItemTitles), | |
| 2662 | + $accordionContent: this.findElement(selectors.accordionContent) | |
| 2663 | + }; | |
| 2664 | + } | |
| 2665 | + onInit() { | |
| 2666 | + super.onInit(...arguments); | |
| 2667 | + if (elementorFrontend.isEditMode() && !elementorCommon.config.experimentalFeatures.e_nested_atomic_repeaters) { | |
| 2668 | + this.interlaceContainers(); | |
| 2669 | + } | |
| 2670 | + this.injectKeyboardHandler(); | |
| 2671 | + } | |
| 2672 | + injectKeyboardHandler() { | |
| 2673 | + if ('nested-accordion.default' === this.getSettings('elementName')) { | |
| 2674 | + new _nestedAccordionTitleKeyboardHandler.default({ | |
| 2675 | + $element: this.$element, | |
| 2676 | + toggleTitle: this.clickListener.bind(this) | |
| 2677 | + }); | |
| 2678 | + } | |
| 2679 | + } | |
| 2680 | + interlaceContainers() { | |
| 2681 | + const { | |
| 2682 | + $contentContainers, | |
| 2683 | + $accordionItems | |
| 2684 | + } = this.getDefaultElements(); | |
| 2685 | + $contentContainers.each((index, element) => { | |
| 2686 | + $accordionItems[index].appendChild(element); | |
| 2687 | + }); | |
| 2688 | + } | |
| 2689 | + linkContainer(event) { | |
| 2690 | + const { | |
| 2691 | + container, | |
| 2692 | + index, | |
| 2693 | + targetContainer, | |
| 2694 | + action: { | |
| 2695 | + type | |
| 2696 | + } | |
| 2697 | + } = event.detail, | |
| 2698 | + view = container.view.$el, | |
| 2699 | + id = container.model.get('id'), | |
| 2700 | + currentId = this.$element.data('id'); | |
| 2701 | + if (id === currentId) { | |
| 2702 | + const { | |
| 2703 | + $accordionItems | |
| 2704 | + } = this.getDefaultElements(); | |
| 2705 | + let accordionItem, contentContainer; | |
| 2706 | + switch (type) { | |
| 2707 | + case 'move': | |
| 2708 | + [accordionItem, contentContainer] = this.move(view, index, targetContainer, $accordionItems); | |
| 2709 | + break; | |
| 2710 | + case 'duplicate': | |
| 2711 | + [accordionItem, contentContainer] = this.duplicate(view, index, targetContainer, $accordionItems); | |
| 2712 | + break; | |
| 2713 | + default: | |
| 2714 | + break; | |
| 2715 | + } | |
| 2716 | + if (undefined !== accordionItem) { | |
| 2717 | + accordionItem.appendChild(contentContainer); | |
| 2718 | + } | |
| 2719 | + this.updateIndexValues(); | |
| 2720 | + this.updateListeners(view); | |
| 2721 | + elementor.$preview[0].contentWindow.dispatchEvent(new CustomEvent('elementor/elements/link-data-bindings')); | |
| 2722 | + } | |
| 2723 | + } | |
| 2724 | + move(view, index, targetContainer, accordionItems) { | |
| 2725 | + return [accordionItems[index], targetContainer.view.$el[0]]; | |
| 2726 | + } | |
| 2727 | + duplicate(view, index, targetContainer, accordionItems) { | |
| 2728 | + return [accordionItems[index + 1], targetContainer.view.$el[0]]; | |
| 2729 | + } | |
| 2730 | + updateIndexValues() { | |
| 2731 | + const { | |
| 2732 | + $accordionContent, | |
| 2733 | + $accordionItems | |
| 2734 | + } = this.getDefaultElements(), | |
| 2735 | + settings = this.getSettings(), | |
| 2736 | + itemIdBase = $accordionItems[0].getAttribute('id').slice(0, -1); | |
| 2737 | + $accordionItems.each((index, element) => { | |
| 2738 | + element.setAttribute('id', `${itemIdBase}${index}`); | |
| 2739 | + element.querySelector(settings.selectors.accordionItemTitles).setAttribute(settings.attributes.index, index + 1); | |
| 2740 | + element.querySelector(settings.selectors.accordionItemTitles).setAttribute('aria-controls', `${itemIdBase}${index}`); | |
| 2741 | + element.querySelector(settings.selectors.accordionItemTitlesText).setAttribute('data-binding-index', index + 1); | |
| 2742 | + $accordionContent[index].setAttribute(settings.attributes.ariaLabelledBy, `${itemIdBase}${index}`); | |
| 2743 | + }); | |
| 2744 | + } | |
| 2745 | + updateListeners(view) { | |
| 2746 | + this.elements.$accordionTitles = view.find(this.getSettings('selectors.accordionItemTitles')); | |
| 2747 | + this.elements.$accordionItems = view.find(this.getSettings('selectors.accordionItems')); | |
| 2748 | + this.elements.$accordionTitles.on('click', this.clickListener.bind(this)); | |
| 2749 | + } | |
| 2750 | + bindEvents() { | |
| 2751 | + this.elements.$accordionTitles.on('click', this.clickListener.bind(this)); | |
| 2752 | + elementorFrontend.elements.$window.on('elementor/nested-container/atomic-repeater', this.linkContainer.bind(this)); | |
| 2753 | + } | |
| 2754 | + unbindEvents() { | |
| 2755 | + this.elements.$accordionTitles.off(); | |
| 2756 | + } | |
| 2757 | + clickListener(event) { | |
| 2758 | + event.preventDefault(); | |
| 2759 | + this.elements = this.getDefaultElements(); | |
| 2760 | + const settings = this.getSettings(), | |
| 2761 | + accordionItem = event?.currentTarget?.closest(settings.selectors.accordionItems), | |
| 2762 | + accordion = event?.currentTarget?.closest(settings.selectors.accordion), | |
| 2763 | + itemSummary = accordionItem.querySelector(settings.selectors.accordionItemTitles), | |
| 2764 | + accordionContent = accordionItem.querySelector(settings.selectors.accordionContent), | |
| 2765 | + { | |
| 2766 | + max_items_expended: maxItemsExpended | |
| 2767 | + } = this.getElementSettings(), | |
| 2768 | + directAccordionItems = accordion.querySelectorAll(settings.selectors.directAccordionItems), | |
| 2769 | + directAccordionItemTitles = accordion.querySelectorAll(settings.selectors.directAccordionItemTitles); | |
| 2770 | + if ('one' === maxItemsExpended) { | |
| 2771 | + this.closeAllItems(directAccordionItems, directAccordionItemTitles); | |
| 2772 | + } | |
| 2773 | + if (!accordionItem.open) { | |
| 2774 | + this.prepareOpenAnimation(accordionItem, itemSummary, accordionContent); | |
| 2775 | + } else { | |
| 2776 | + this.closeAccordionItem(accordionItem, itemSummary); | |
| 2777 | + } | |
| 2778 | + } | |
| 2779 | + animateItem(accordionItem, startHeight, endHeight, isOpen) { | |
| 2780 | + accordionItem.style.overflow = 'hidden'; | |
| 2781 | + let animation = this.animations.get(accordionItem); | |
| 2782 | + if (animation) { | |
| 2783 | + animation.cancel(); | |
| 2784 | + } | |
| 2785 | + animation = accordionItem.animate({ | |
| 2786 | + height: [startHeight, endHeight] | |
| 2787 | + }, { | |
| 2788 | + duration: this.getAnimationDuration() | |
| 2789 | + }); | |
| 2790 | + animation.onfinish = () => this.onAnimationFinish(accordionItem, isOpen); | |
| 2791 | + this.animations.set(accordionItem, animation); | |
| 2792 | + accordionItem.querySelector('summary')?.setAttribute('aria-expanded', isOpen); | |
| 2793 | + } | |
| 2794 | + closeAccordionItem(accordionItem, accordionItemTitle) { | |
| 2795 | + const startHeight = `${accordionItem.offsetHeight}px`, | |
| 2796 | + endHeight = `${accordionItemTitle.offsetHeight}px`; | |
| 2797 | + this.animateItem(accordionItem, startHeight, endHeight, false); | |
| 2798 | + } | |
| 2799 | + prepareOpenAnimation(accordionItem, accordionItemTitle, accordionItemContent) { | |
| 2800 | + accordionItem.style.overflow = 'hidden'; | |
| 2801 | + accordionItem.style.height = `${accordionItem.offsetHeight}px`; | |
| 2802 | + accordionItem.open = true; | |
| 2803 | + window.requestAnimationFrame(() => this.openAccordionItem(accordionItem, accordionItemTitle, accordionItemContent)); | |
| 2804 | + } | |
| 2805 | + openAccordionItem(accordionItem, accordionItemTitle, accordionItemContent) { | |
| 2806 | + const startHeight = `${accordionItem.offsetHeight}px`, | |
| 2807 | + endHeight = `${accordionItemTitle.offsetHeight + accordionItemContent.offsetHeight}px`; | |
| 2808 | + this.animateItem(accordionItem, startHeight, endHeight, true); | |
| 2809 | + } | |
| 2810 | + onAnimationFinish(accordionItem, isOpen) { | |
| 2811 | + accordionItem.open = isOpen; | |
| 2812 | + this.animations.set(accordionItem, null); | |
| 2813 | + accordionItem.style.height = accordionItem.style.overflow = ''; | |
| 2814 | + } | |
| 2815 | + closeAllItems(items, titles) { | |
| 2816 | + titles.forEach((title, index) => { | |
| 2817 | + this.closeAccordionItem(items[index], title); | |
| 2818 | + }); | |
| 2819 | + } | |
| 2820 | + getAnimationDuration() { | |
| 2821 | + const { | |
| 2822 | + size, | |
| 2823 | + unit | |
| 2824 | + } = this.getElementSettings('n_accordion_animation_duration'); | |
| 2825 | + return size * ('ms' === unit ? 1 : 1000); | |
| 2826 | + } | |
| 2827 | +} | |
| 2828 | +exports["default"] = NestedAccordion; | |
| 2829 | + | |
| 2830 | +/***/ }), | |
| 2831 | + | |
| 2832 | +/***/ "../modules/nested-tabs/assets/js/frontend/handlers/nested-tabs.js": | |
| 2833 | +/*!*************************************************************************!*\ | |
| 2834 | + !*** ../modules/nested-tabs/assets/js/frontend/handlers/nested-tabs.js ***! | |
| 2835 | + \*************************************************************************/ | |
| 2836 | +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 2837 | + | |
| 2838 | +"use strict"; | |
| 2839 | + | |
| 2840 | + | |
| 2841 | +var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js"); | |
| 2842 | +Object.defineProperty(exports, "__esModule", ({ | |
| 2843 | + value: true | |
| 2844 | +})); | |
| 2845 | +exports["default"] = void 0; | |
| 2846 | +var _base = _interopRequireDefault(__webpack_require__(/*! elementor-frontend/handlers/base */ "../assets/dev/js/frontend/handlers/base.js")); | |
| 2847 | +var _flexHorizontalScroll = __webpack_require__(/*! elementor-frontend-utils/flex-horizontal-scroll */ "../assets/dev/js/frontend/utils/flex-horizontal-scroll.js"); | |
| 2848 | +class NestedTabs extends _base.default { | |
| 2849 | + /** | |
| 2850 | + * @param {string|number} tabIndex | |
| 2851 | + * | |
| 2852 | + * @return {string} | |
| 2853 | + */ | |
| 2854 | + getTabTitleFilterSelector(tabIndex) { | |
| 2855 | + return `[${this.getSettings('dataAttributes').tabIndex}="${tabIndex}"]`; | |
| 2856 | + } | |
| 2857 | + | |
| 2858 | + /** | |
| 2859 | + * @param {string|number} tabIndex | |
| 2860 | + * | |
| 2861 | + * @return {string} | |
| 2862 | + */ | |
| 2863 | + getTabContentFilterSelector(tabIndex) { | |
| 2864 | + return `*:nth-child(${tabIndex})`; | |
| 2865 | + } | |
| 2866 | + | |
| 2867 | + /** | |
| 2868 | + * @param {HTMLElement} tabTitleElement | |
| 2869 | + * | |
| 2870 | + * @return {string} | |
| 2871 | + */ | |
| 2872 | + getTabIndex(tabTitleElement) { | |
| 2873 | + return tabTitleElement.getAttribute(this.getSettings('dataAttributes').tabIndex); | |
| 2874 | + } | |
| 2875 | + getActiveTabIndex() { | |
| 2876 | + const settings = this.getSettings(), | |
| 2877 | + activeTitleFilter = settings.ariaAttributes.activeTitleSelector, | |
| 2878 | + tabIndexSelector = settings.dataAttributes.tabIndex, | |
| 2879 | + $activeTitle = this.elements.$tabTitles.filter(activeTitleFilter); | |
| 2880 | + return $activeTitle.attr(tabIndexSelector) || null; | |
| 2881 | + } | |
| 2882 | + getWidgetNumber() { | |
| 2883 | + return this.$element.find('> .elementor-widget-container > .e-n-tabs, > .e-n-tabs').attr('data-widget-number'); | |
| 2884 | + } | |
| 2885 | + getDefaultSettings() { | |
| 2886 | + const widgetNumber = this.getWidgetNumber(); | |
| 2887 | + return { | |
| 2888 | + selectors: { | |
| 2889 | + widgetContainer: `[data-widget-number="${widgetNumber}"]`, | |
| 2890 | + tabTitle: `[aria-controls*="e-n-tab-content-${widgetNumber}"]`, | |
| 2891 | + tabTitleIcon: `[id*="e-n-tab-title-${widgetNumber}"] > .e-n-tab-icon`, | |
| 2892 | + tabTitleText: `[id*="e-n-tab-title-${widgetNumber}"] > .e-n-tab-title-text`, | |
| 2893 | + tabContent: `[data-widget-number="${widgetNumber}"] > .e-n-tabs-content > .e-con`, | |
| 2894 | + headingContainer: `[data-widget-number="${widgetNumber}"] > .e-n-tabs-heading`, | |
| 2895 | + activeTabContentContainers: `[id*="e-n-tab-content-${widgetNumber}"].e-active` | |
| 2896 | + }, | |
| 2897 | + classes: { | |
| 2898 | + active: 'e-active' | |
| 2899 | + }, | |
| 2900 | + dataAttributes: { | |
| 2901 | + tabIndex: 'data-tab-index' | |
| 2902 | + }, | |
| 2903 | + ariaAttributes: { | |
| 2904 | + titleStateAttribute: 'aria-selected', | |
| 2905 | + activeTitleSelector: '[aria-selected="true"]' | |
| 2906 | + }, | |
| 2907 | + showTabFn: 'show', | |
| 2908 | + hideTabFn: 'hide', | |
| 2909 | + toggleSelf: false, | |
| 2910 | + hidePrevious: true, | |
| 2911 | + autoExpand: true | |
| 2912 | + }; | |
| 2913 | + } | |
| 2914 | + getDefaultElements() { | |
| 2915 | + const selectors = this.getSettings('selectors'); | |
| 2916 | + return { | |
| 2917 | + $widgetContainer: this.findElement(selectors.widgetContainer), | |
| 2918 | + $tabTitles: this.findElement(selectors.tabTitle), | |
| 2919 | + $tabContents: this.findElement(selectors.tabContent), | |
| 2920 | + $headingContainer: this.findElement(selectors.headingContainer) | |
| 2921 | + }; | |
| 2922 | + } | |
| 2923 | + getKeyboardNavigationSettings() { | |
| 2924 | + return this.getSettings(); | |
| 2925 | + } | |
| 2926 | + activateDefaultTab() { | |
| 2927 | + const settings = this.getSettings(); | |
| 2928 | + const defaultActiveTab = this.getEditSettings('activeItemIndex') || 1, | |
| 2929 | + originalToggleMethods = { | |
| 2930 | + showTabFn: settings.showTabFn, | |
| 2931 | + hideTabFn: settings.hideTabFn | |
| 2932 | + }; | |
| 2933 | + | |
| 2934 | + // Toggle tabs without animation to avoid jumping | |
| 2935 | + this.setSettings({ | |
| 2936 | + showTabFn: 'show', | |
| 2937 | + hideTabFn: 'hide' | |
| 2938 | + }); | |
| 2939 | + this.changeActiveTab(defaultActiveTab); | |
| 2940 | + | |
| 2941 | + // Return back original toggle effects | |
| 2942 | + this.setSettings(originalToggleMethods); | |
| 2943 | + this.elements.$widgetContainer.addClass('e-activated'); | |
| 2944 | + } | |
| 2945 | + deactivateActiveTab(newTabIndex) { | |
| 2946 | + const settings = this.getSettings(), | |
| 2947 | + activeClass = settings.classes.active, | |
| 2948 | + activeTitleFilter = settings.ariaAttributes.activeTitleSelector, | |
| 2949 | + activeContentFilter = '.' + activeClass, | |
| 2950 | + $activeTitle = this.elements.$tabTitles.filter(activeTitleFilter), | |
| 2951 | + $activeContent = this.elements.$tabContents.filter(activeContentFilter); | |
| 2952 | + this.setTabDeactivationAttributes($activeTitle, newTabIndex); | |
| 2953 | + $activeContent.removeClass(activeClass); | |
| 2954 | + $activeContent[settings.hideTabFn](0, () => this.onHideTabContent($activeContent)); | |
| 2955 | + return $activeContent; | |
| 2956 | + } | |
| 2957 | + getTitleActivationAttributes() { | |
| 2958 | + const titleStateAttribute = this.getSettings('ariaAttributes').titleStateAttribute; | |
| 2959 | + return { | |
| 2960 | + tabindex: '0', | |
| 2961 | + [titleStateAttribute]: 'true' | |
| 2962 | + }; | |
| 2963 | + } | |
| 2964 | + setTabDeactivationAttributes($activeTitle) { | |
| 2965 | + const titleStateAttribute = this.getSettings('ariaAttributes').titleStateAttribute; | |
| 2966 | + $activeTitle.attr({ | |
| 2967 | + tabindex: '-1', | |
| 2968 | + [titleStateAttribute]: 'false' | |
| 2969 | + }); | |
| 2970 | + } | |
| 2971 | + onHideTabContent() {} | |
| 2972 | + activateTab(tabIndex) { | |
| 2973 | + const settings = this.getSettings(), | |
| 2974 | + activeClass = settings.classes.active, | |
| 2975 | + animationDuration = 'show' === settings.showTabFn ? 0 : 400; | |
| 2976 | + let $requestedTitle = this.elements.$tabTitles.filter(this.getTabTitleFilterSelector(tabIndex)), | |
| 2977 | + $requestedContent = this.elements.$tabContents.filter(this.getTabContentFilterSelector(tabIndex)); | |
| 2978 | + | |
| 2979 | + // Check if the tabIndex exists. | |
| 2980 | + if (!$requestedTitle.length) { | |
| 2981 | + // Activate the previous tab and ensure that the tab index is not less than 1. | |
| 2982 | + const previousTabIndex = Math.max(tabIndex - 1, 1); | |
| 2983 | + $requestedTitle = this.elements.$tabTitles.filter(this.getTabTitleFilterSelector(previousTabIndex)); | |
| 2984 | + $requestedContent = this.elements.$tabContents.filter(this.getTabContentFilterSelector(previousTabIndex)); | |
| 2985 | + } | |
| 2986 | + $requestedTitle.attr(this.getTitleActivationAttributes()); | |
| 2987 | + $requestedContent.addClass(activeClass); | |
| 2988 | + $requestedContent[settings.showTabFn](animationDuration, () => this.onShowTabContent($requestedContent)); | |
| 2989 | + } | |
| 2990 | + onShowTabContent($requestedContent) { | |
| 2991 | + elementorFrontend.elements.$window.trigger('elementor-pro/motion-fx/recalc'); | |
| 2992 | + elementorFrontend.elements.$window.trigger('elementor/nested-tabs/activate', $requestedContent); | |
| 2993 | + elementorFrontend.elements.$window.trigger('elementor/bg-video/recalc'); | |
| 2994 | + } | |
| 2995 | + isActiveTab(tabIndex) { | |
| 2996 | + const settings = this.getSettings(), | |
| 2997 | + isActiveTabTitle = 'true' === this.elements.$tabTitles.filter(`[${settings.dataAttributes.tabIndex}="${tabIndex}"]`).attr(settings.ariaAttributes.titleStateAttribute), | |
| 2998 | + isActiveTabContent = this.elements.$tabContents.filter(this.getTabContentFilterSelector(tabIndex)).hasClass(this.getActiveClass()); | |
| 2999 | + return isActiveTabTitle && isActiveTabContent; | |
| 3000 | + } | |
| 3001 | + onTabClick(event) { | |
| 3002 | + event.preventDefault(); | |
| 3003 | + this.changeActiveTab(event.currentTarget?.getAttribute(this.getSettings('dataAttributes').tabIndex), true); | |
| 3004 | + } | |
| 3005 | + getTabEvents() { | |
| 3006 | + return { | |
| 3007 | + click: this.onTabClick.bind(this) | |
| 3008 | + }; | |
| 3009 | + } | |
| 3010 | + getHeadingEvents() { | |
| 3011 | + const navigationWrapper = this.elements.$headingContainer[0]; | |
| 3012 | + return { | |
| 3013 | + mousedown: _flexHorizontalScroll.changeScrollStatus.bind(this, navigationWrapper), | |
| 3014 | + mouseup: _flexHorizontalScroll.changeScrollStatus.bind(this, navigationWrapper), | |
| 3015 | + mouseleave: _flexHorizontalScroll.changeScrollStatus.bind(this, navigationWrapper), | |
| 3016 | + mousemove: _flexHorizontalScroll.setHorizontalTitleScrollValues.bind(this, navigationWrapper, this.getHorizontalScrollSetting()) | |
| 3017 | + }; | |
| 3018 | + } | |
| 3019 | + bindEvents() { | |
| 3020 | + this.elements.$tabTitles.on(this.getTabEvents()); | |
| 3021 | + this.elements.$headingContainer.on(this.getHeadingEvents()); | |
| 3022 | + elementorFrontend.elements.$window.on('resize', this.onResizeUpdateHorizontalScrolling.bind(this)); | |
| 3023 | + elementorFrontend.elements.$window.on('resize', this.setTouchMode.bind(this)); | |
| 3024 | + elementorFrontend.elements.$window.on('elementor/nested-tabs/activate', this.reInitSwipers); | |
| 3025 | + elementorFrontend.elements.$window.on('elementor/nested-elements/activate-by-keyboard', this.changeActiveTabByKeyboard.bind(this)); | |
| 3026 | + elementorFrontend.elements.$window.on('elementor/nested-container/atomic-repeater', this.linkContainer.bind(this)); | |
| 3027 | + } | |
| 3028 | + unbindEvents() { | |
| 3029 | + this.elements.$tabTitles.off(); | |
| 3030 | + this.elements.$headingContainer.off(); | |
| 3031 | + this.elements.$tabContents.children().off(); | |
| 3032 | + elementorFrontend.elements.$window.off('resize', this.onResizeUpdateHorizontalScrolling.bind(this)); | |
| 3033 | + elementorFrontend.elements.$window.off('resize', this.setTouchMode.bind(this)); | |
| 3034 | + elementorFrontend.elements.$window.off('elementor/nested-tabs/activate', this.reInitSwipers); | |
| 3035 | + elementorFrontend.elements.$window.off('elementor/nested-elements/activate-by-keyboard', this.changeActiveTabByKeyboard.bind(this)); | |
| 3036 | + elementorFrontend.elements.$window.off('elementor/nested-container/atomic-repeater', this.linkContainer.bind(this)); | |
| 3037 | + } | |
| 3038 | + | |
| 3039 | + /** | |
| 3040 | + * Fixes issues where Swipers that have been initialized while a tab is not visible are not properly rendered | |
| 3041 | + * and when switching to the tab the swiper will not respect any of the chosen `autoplay` related settings. | |
| 3042 | + * | |
| 3043 | + * This is triggered when switching to a nested tab, looks for Swipers in the tab content and reinitializes them. | |
| 3044 | + * | |
| 3045 | + * @param {Object} event - Incoming event. | |
| 3046 | + * @param {Object} content - Active nested tab dom element. | |
| 3047 | + */ | |
| 3048 | + reInitSwipers(event, content) { | |
| 3049 | + const swiperElements = content.querySelectorAll(`.${elementorFrontend.config.swiperClass}`); | |
| 3050 | + for (const element of swiperElements) { | |
| 3051 | + if (!element.swiper) { | |
| 3052 | + return; | |
| 3053 | + } | |
| 3054 | + element.swiper.initialized = false; | |
| 3055 | + element.swiper.init(); | |
| 3056 | + } | |
| 3057 | + } | |
| 3058 | + onInit() { | |
| 3059 | + super.onInit(...arguments); | |
| 3060 | + if (this.getSettings('autoExpand')) { | |
| 3061 | + this.activateDefaultTab(); | |
| 3062 | + } | |
| 3063 | + (0, _flexHorizontalScroll.setHorizontalScrollAlignment)(this.getHorizontalScrollingSettings()); | |
| 3064 | + this.setTouchMode(); | |
| 3065 | + if ('nested-tabs.default' === this.getSettings('elementName')) { | |
| 3066 | + new elementorModules.frontend.handlers.NestedTitleKeyboardHandler(this.getKeyboardNavigationSettings()); | |
| 3067 | + } | |
| 3068 | + } | |
| 3069 | + onEditSettingsChange(propertyName, value) { | |
| 3070 | + if ('activeItemIndex' === propertyName) { | |
| 3071 | + this.changeActiveTab(value, false); | |
| 3072 | + } | |
| 3073 | + } | |
| 3074 | + onElementChange(propertyName) { | |
| 3075 | + if (this.checkSliderPropsToWatch(propertyName)) { | |
| 3076 | + (0, _flexHorizontalScroll.setHorizontalScrollAlignment)(this.getHorizontalScrollingSettings()); | |
| 3077 | + } | |
| 3078 | + } | |
| 3079 | + checkSliderPropsToWatch(propertyName) { | |
| 3080 | + return 0 === propertyName.indexOf('horizontal_scroll') || 'breakpoint_selector' === propertyName || 0 === propertyName.indexOf('tabs_justify_horizontal') || 0 === propertyName.indexOf('tabs_title_space_between'); | |
| 3081 | + } | |
| 3082 | + | |
| 3083 | + /** | |
| 3084 | + * @param {string} tabIndex | |
| 3085 | + * @param {boolean} fromUser - Whether the call is caused by the user or internal. | |
| 3086 | + */ | |
| 3087 | + changeActiveTab(tabIndex) { | |
| 3088 | + let fromUser = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false; | |
| 3089 | + // `document/repeater/select` is used only in the editor, only when the element | |
| 3090 | + // is in the currently-edited document, and only when its not internal call, | |
| 3091 | + if (fromUser && this.isEdit && this.isElementInTheCurrentDocument()) { | |
| 3092 | + return window.top.$e.run('document/repeater/select', { | |
| 3093 | + container: elementor.getContainer(this.$element.attr('data-id')), | |
| 3094 | + index: parseInt(tabIndex) | |
| 3095 | + }); | |
| 3096 | + } | |
| 3097 | + const isActiveTab = this.isActiveTab(tabIndex), | |
| 3098 | + settings = this.getSettings(); | |
| 3099 | + if ((settings.toggleSelf || !isActiveTab) && settings.hidePrevious) { | |
| 3100 | + this.deactivateActiveTab(tabIndex); | |
| 3101 | + } | |
| 3102 | + if (!settings.hidePrevious && isActiveTab) { | |
| 3103 | + this.deactivateActiveTab(tabIndex); | |
| 3104 | + } | |
| 3105 | + if (!isActiveTab) { | |
| 3106 | + if (this.isAccordionVersion()) { | |
| 3107 | + this.activateMobileTab(tabIndex); | |
| 3108 | + return; | |
| 3109 | + } | |
| 3110 | + this.activateTab(tabIndex); | |
| 3111 | + } | |
| 3112 | + } | |
| 3113 | + changeActiveTabByKeyboard(event, settings) { | |
| 3114 | + if (settings.widgetId.toString() !== this.getID().toString()) { | |
| 3115 | + return; | |
| 3116 | + } | |
| 3117 | + this.changeActiveTab(settings.titleIndex, true); | |
| 3118 | + } | |
| 3119 | + activateMobileTab(tabIndex) { | |
| 3120 | + // Timeout time added to ensure that opening of the active tab starts after closing the other tab on Apple devices. | |
| 3121 | + setTimeout(() => { | |
| 3122 | + this.activateTab(tabIndex); | |
| 3123 | + this.forceActiveTabToBeInViewport(tabIndex); | |
| 3124 | + }, 10); | |
| 3125 | + } | |
| 3126 | + forceActiveTabToBeInViewport(tabIndex) { | |
| 3127 | + if (!elementorFrontend.isEditMode()) { | |
| 3128 | + return; | |
| 3129 | + } | |
| 3130 | + const $activeTabTitle = this.elements.$tabTitles.filter(this.getTabTitleFilterSelector(tabIndex)); | |
| 3131 | + if (!elementor.helpers.isInViewport($activeTabTitle[0])) { | |
| 3132 | + $activeTabTitle[0].scrollIntoView({ | |
| 3133 | + block: 'center' | |
| 3134 | + }); | |
| 3135 | + } | |
| 3136 | + } | |
| 3137 | + getActiveClass() { | |
| 3138 | + const settings = this.getSettings(); | |
| 3139 | + return settings.classes.active; | |
| 3140 | + } | |
| 3141 | + getTabsDirection() { | |
| 3142 | + const currentDevice = elementorFrontend.getCurrentDeviceMode(); | |
| 3143 | + return elementorFrontend.utils.controls.getResponsiveControlValue(this.getElementSettings(), 'tabs_justify_horizontal', '', currentDevice); | |
| 3144 | + } | |
| 3145 | + getHorizontalScrollSetting() { | |
| 3146 | + const currentDevice = elementorFrontend.getCurrentDeviceMode(); | |
| 3147 | + return elementorFrontend.utils.controls.getResponsiveControlValue(this.getElementSettings(), 'horizontal_scroll', '', currentDevice); | |
| 3148 | + } | |
| 3149 | + isAccordionVersion() { | |
| 3150 | + return 'contents' === this.elements.$headingContainer.css('display'); | |
| 3151 | + } | |
| 3152 | + setTouchMode() { | |
| 3153 | + const widgetSelector = this.getSettings('selectors').widgetContainer; | |
| 3154 | + if (elementorFrontend.isEditMode() || 'resize' === event?.type) { | |
| 3155 | + const responsiveDevices = ['mobile', 'mobile_extra', 'tablet', 'tablet_extra'], | |
| 3156 | + currentDevice = elementorFrontend.getCurrentDeviceMode(); | |
| 3157 | + if (-1 !== responsiveDevices.indexOf(currentDevice)) { | |
| 3158 | + this.$element.find(widgetSelector).attr('data-touch-mode', 'true'); | |
| 3159 | + return; | |
| 3160 | + } | |
| 3161 | + } else if ('ontouchstart' in window) { | |
| 3162 | + this.$element.find(widgetSelector).attr('data-touch-mode', 'true'); | |
| 3163 | + return; | |
| 3164 | + } | |
| 3165 | + this.$element.find(widgetSelector).attr('data-touch-mode', 'false'); | |
| 3166 | + } | |
| 3167 | + linkContainer(event) { | |
| 3168 | + const { | |
| 3169 | + container | |
| 3170 | + } = event.detail, | |
| 3171 | + id = container.model.get('id'), | |
| 3172 | + currentId = this.$element.data('id'), | |
| 3173 | + view = container.view.$el; | |
| 3174 | + if (id === currentId) { | |
| 3175 | + this.updateIndexValues(); | |
| 3176 | + this.updateListeners(view); | |
| 3177 | + elementor.$preview[0].contentWindow.dispatchEvent(new CustomEvent('elementor/elements/link-data-bindings')); | |
| 3178 | + } | |
| 3179 | + if (!this.getActiveTabIndex()) { | |
| 3180 | + const targetIndex = event.detail.index + 1 || 1; | |
| 3181 | + this.changeActiveTab(targetIndex); | |
| 3182 | + } | |
| 3183 | + } | |
| 3184 | + updateListeners(view) { | |
| 3185 | + this.elements.$tabContents = view.find(this.getSettings('selectors.tabContent')); | |
| 3186 | + this.elements.$tabTitles = view.find(this.getSettings('selectors.tabTitle')); | |
| 3187 | + this.elements.$tabTitles.on(this.getTabEvents()); | |
| 3188 | + } | |
| 3189 | + updateIndexValues() { | |
| 3190 | + const { | |
| 3191 | + $widgetContainer, | |
| 3192 | + $tabContents, | |
| 3193 | + $tabTitles | |
| 3194 | + } = this.getDefaultElements(), | |
| 3195 | + settings = this.getSettings(), | |
| 3196 | + dataTabIndex = settings.dataAttributes.tabIndex, | |
| 3197 | + widgetNumber = $widgetContainer.data('widgetNumber'); | |
| 3198 | + $tabTitles.each((index, element) => { | |
| 3199 | + const newIndex = index + 1, | |
| 3200 | + updatedTabID = `e-n-tab-title-${widgetNumber}${newIndex}`, | |
| 3201 | + updatedContainerID = `e-n-tab-content-${widgetNumber}${newIndex}`; | |
| 3202 | + element.setAttribute('id', updatedTabID); | |
| 3203 | + element.setAttribute('style', `--n-tabs-title-order: ${newIndex}`); | |
| 3204 | + element.setAttribute(dataTabIndex, newIndex); | |
| 3205 | + element.setAttribute('aria-controls', updatedContainerID); | |
| 3206 | + element.querySelector(settings.selectors.tabTitleIcon)?.setAttribute('data-binding-index', newIndex); | |
| 3207 | + element.querySelector(settings.selectors.tabTitleText).setAttribute('data-binding-index', newIndex); | |
| 3208 | + $tabContents[index].setAttribute('aria-labelledby', updatedTabID); | |
| 3209 | + $tabContents[index].setAttribute(dataTabIndex, newIndex); | |
| 3210 | + $tabContents[index].setAttribute('id', updatedContainerID); | |
| 3211 | + $tabContents[index].setAttribute('style', `--n-tabs-title-order: ${newIndex}`); | |
| 3212 | + }); | |
| 3213 | + } | |
| 3214 | + onResizeUpdateHorizontalScrolling() { | |
| 3215 | + (0, _flexHorizontalScroll.setHorizontalScrollAlignment)(this.getHorizontalScrollingSettings()); | |
| 3216 | + } | |
| 3217 | + getHorizontalScrollingSettings() { | |
| 3218 | + return { | |
| 3219 | + element: this.elements.$headingContainer[0], | |
| 3220 | + direction: this.getTabsDirection(), | |
| 3221 | + justifyCSSVariable: '--n-tabs-heading-justify-content', | |
| 3222 | + horizontalScrollStatus: this.getHorizontalScrollSetting() | |
| 3223 | + }; | |
| 3224 | + } | |
| 3225 | +} | |
| 3226 | +exports["default"] = NestedTabs; | |
| 3227 | + | |
| 3228 | +/***/ }), | |
| 3229 | + | |
| 1725 | 3230 | /***/ "../node_modules/core-js/internals/a-callable.js": |
| 1726 | 3231 | /*!*******************************************************!*\ |
| 1727 | 3232 | !*** ../node_modules/core-js/internals/a-callable.js ***! |
| 1728 | 3233 | \*******************************************************/ |
| @@ -1737,29 +3242,30 @@ | ||
| 1737 | 3242 | |
| 1738 | 3243 | // `Assert: IsCallable(argument) is true` |
| 1739 | 3244 | module.exports = function (argument) { |
| 1740 | 3245 | if (isCallable(argument)) return argument; |
| 1741 | - throw new $TypeError(tryToString(argument) + ' is not a function'); | |
| 3246 | + throw $TypeError(tryToString(argument) + ' is not a function'); | |
| 1742 | 3247 | }; |
| 1743 | 3248 | |
| 1744 | 3249 | |
| 1745 | 3250 | /***/ }), |
| 1746 | 3251 | |
| 1747 | -/***/ "../node_modules/core-js/internals/an-instance.js": | |
| 1748 | -/*!********************************************************!*\ | |
| 1749 | - !*** ../node_modules/core-js/internals/an-instance.js ***! | |
| 1750 | - \********************************************************/ | |
| 3252 | +/***/ "../node_modules/core-js/internals/a-possible-prototype.js": | |
| 3253 | +/*!*****************************************************************!*\ | |
| 3254 | + !*** ../node_modules/core-js/internals/a-possible-prototype.js ***! | |
| 3255 | + \*****************************************************************/ | |
| 1751 | 3256 | /***/ ((module, __unused_webpack_exports, __webpack_require__) => { |
| 1752 | 3257 | |
| 1753 | 3258 | "use strict"; |
| 1754 | 3259 | |
| 1755 | -var isPrototypeOf = __webpack_require__(/*! ../internals/object-is-prototype-of */ "../node_modules/core-js/internals/object-is-prototype-of.js"); | |
| 3260 | +var isCallable = __webpack_require__(/*! ../internals/is-callable */ "../node_modules/core-js/internals/is-callable.js"); | |
| 1756 | 3261 | |
| 3262 | +var $String = String; | |
| 1757 | 3263 | var $TypeError = TypeError; |
| 1758 | 3264 | |
| 1759 | -module.exports = function (it, Prototype) { | |
| 1760 | - if (isPrototypeOf(Prototype, it)) return it; | |
| 1761 | - throw new $TypeError('Incorrect invocation'); | |
| 3265 | +module.exports = function (argument) { | |
| 3266 | + if (typeof argument == 'object' || isCallable(argument)) return argument; | |
| 3267 | + throw $TypeError("Can't set " + $String(argument) + ' as a prototype'); | |
| 1762 | 3268 | }; |
| 1763 | 3269 | |
| 1764 | 3270 | |
| 1765 | 3271 | /***/ }), |
| @@ -1779,9 +3285,9 @@ | ||
| 1779 | 3285 | |
| 1780 | 3286 | // `Assert: Type(argument) is Object` |
| 1781 | 3287 | module.exports = function (argument) { |
| 1782 | 3288 | if (isObject(argument)) return argument; |
| 1783 | - throw new $TypeError($String(argument) + ' is not an object'); | |
| 3289 | + throw $TypeError($String(argument) + ' is not an object'); | |
| 1784 | 3290 | }; |
| 1785 | 3291 | |
| 1786 | 3292 | |
| 1787 | 3293 | /***/ }), |
| @@ -1802,17 +3308,16 @@ | ||
| 1802 | 3308 | var createMethod = function (IS_INCLUDES) { |
| 1803 | 3309 | return function ($this, el, fromIndex) { |
| 1804 | 3310 | var O = toIndexedObject($this); |
| 1805 | 3311 | var length = lengthOfArrayLike(O); |
| 1806 | - if (length === 0) return !IS_INCLUDES && -1; | |
| 1807 | 3312 | var index = toAbsoluteIndex(fromIndex, length); |
| 1808 | 3313 | var value; |
| 1809 | 3314 | // Array#includes uses SameValueZero equality algorithm |
| 1810 | 3315 | // eslint-disable-next-line no-self-compare -- NaN check |
| 1811 | - if (IS_INCLUDES && el !== el) while (length > index) { | |
| 3316 | + if (IS_INCLUDES && el != el) while (length > index) { | |
| 1812 | 3317 | value = O[index++]; |
| 1813 | 3318 | // eslint-disable-next-line no-self-compare -- NaN check |
| 1814 | - if (value !== value) return true; | |
| 3319 | + if (value != value) return true; | |
| 1815 | 3320 | // Array#indexOf ignores holes, Array#includes - not |
| 1816 | 3321 | } else for (;length > index; index++) { |
| 1817 | 3322 | if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0; |
| 1818 | 3323 | } return !IS_INCLUDES && -1; |
| @@ -1830,69 +3335,8 @@ | ||
| 1830 | 3335 | |
| 1831 | 3336 | |
| 1832 | 3337 | /***/ }), |
| 1833 | 3338 | |
| 1834 | -/***/ "../node_modules/core-js/internals/array-set-length.js": | |
| 1835 | -/*!*************************************************************!*\ | |
| 1836 | - !*** ../node_modules/core-js/internals/array-set-length.js ***! | |
| 1837 | - \*************************************************************/ | |
| 1838 | -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 1839 | - | |
| 1840 | -"use strict"; | |
| 1841 | - | |
| 1842 | -var DESCRIPTORS = __webpack_require__(/*! ../internals/descriptors */ "../node_modules/core-js/internals/descriptors.js"); | |
| 1843 | -var isArray = __webpack_require__(/*! ../internals/is-array */ "../node_modules/core-js/internals/is-array.js"); | |
| 1844 | - | |
| 1845 | -var $TypeError = TypeError; | |
| 1846 | -// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe | |
| 1847 | -var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor; | |
| 1848 | - | |
| 1849 | -// Safari < 13 does not throw an error in this case | |
| 1850 | -var SILENT_ON_NON_WRITABLE_LENGTH_SET = DESCRIPTORS && !function () { | |
| 1851 | - // makes no sense without proper strict mode support | |
| 1852 | - if (this !== undefined) return true; | |
| 1853 | - try { | |
| 1854 | - // eslint-disable-next-line es/no-object-defineproperty -- safe | |
| 1855 | - Object.defineProperty([], 'length', { writable: false }).length = 1; | |
| 1856 | - } catch (error) { | |
| 1857 | - return error instanceof TypeError; | |
| 1858 | - } | |
| 1859 | -}(); | |
| 1860 | - | |
| 1861 | -module.exports = SILENT_ON_NON_WRITABLE_LENGTH_SET ? function (O, length) { | |
| 1862 | - if (isArray(O) && !getOwnPropertyDescriptor(O, 'length').writable) { | |
| 1863 | - throw new $TypeError('Cannot set read only .length'); | |
| 1864 | - } return O.length = length; | |
| 1865 | -} : function (O, length) { | |
| 1866 | - return O.length = length; | |
| 1867 | -}; | |
| 1868 | - | |
| 1869 | - | |
| 1870 | -/***/ }), | |
| 1871 | - | |
| 1872 | -/***/ "../node_modules/core-js/internals/call-with-safe-iteration-closing.js": | |
| 1873 | -/*!*****************************************************************************!*\ | |
| 1874 | - !*** ../node_modules/core-js/internals/call-with-safe-iteration-closing.js ***! | |
| 1875 | - \*****************************************************************************/ | |
| 1876 | -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 1877 | - | |
| 1878 | -"use strict"; | |
| 1879 | - | |
| 1880 | -var anObject = __webpack_require__(/*! ../internals/an-object */ "../node_modules/core-js/internals/an-object.js"); | |
| 1881 | -var iteratorClose = __webpack_require__(/*! ../internals/iterator-close */ "../node_modules/core-js/internals/iterator-close.js"); | |
| 1882 | - | |
| 1883 | -// call something on iterator step with safe closing on error | |
| 1884 | -module.exports = function (iterator, fn, value, ENTRIES) { | |
| 1885 | - try { | |
| 1886 | - return ENTRIES ? fn(anObject(value)[0], value[1]) : fn(value); | |
| 1887 | - } catch (error) { | |
| 1888 | - iteratorClose(iterator, 'throw', error); | |
| 1889 | - } | |
| 1890 | -}; | |
| 1891 | - | |
| 1892 | - | |
| 1893 | -/***/ }), | |
| 1894 | - | |
| 1895 | 3339 | /***/ "../node_modules/core-js/internals/classof-raw.js": |
| 1896 | 3340 | /*!********************************************************!*\ |
| 1897 | 3341 | !*** ../node_modules/core-js/internals/classof-raw.js ***! |
| 1898 | 3342 | \********************************************************/ |
| @@ -1928,9 +3372,9 @@ | ||
| 1928 | 3372 | var TO_STRING_TAG = wellKnownSymbol('toStringTag'); |
| 1929 | 3373 | var $Object = Object; |
| 1930 | 3374 | |
| 1931 | 3375 | // ES3 wrong here |
| 1932 | -var CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) === 'Arguments'; | |
| 3376 | +var CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) == 'Arguments'; | |
| 1933 | 3377 | |
| 1934 | 3378 | // fallback for IE11 Script Access Denied error |
| 1935 | 3379 | var tryGet = function (it, key) { |
| 1936 | 3380 | try { |
| @@ -1946,9 +3390,9 @@ | ||
| 1946 | 3390 | : typeof (tag = tryGet(O = $Object(it), TO_STRING_TAG)) == 'string' ? tag |
| 1947 | 3391 | // builtinTag case |
| 1948 | 3392 | : CORRECT_ARGUMENTS ? classofRaw(O) |
| 1949 | 3393 | // ES3 arguments fallback |
| 1950 | - : (result = classofRaw(O)) === 'Object' && isCallable(O.callee) ? 'Arguments' : result; | |
| 3394 | + : (result = classofRaw(O)) == 'Object' && isCallable(O.callee) ? 'Arguments' : result; | |
| 1951 | 3395 | }; |
| 1952 | 3396 | |
| 1953 | 3397 | |
| 1954 | 3398 | /***/ }), |
| @@ -1980,45 +3424,8 @@ | ||
| 1980 | 3424 | |
| 1981 | 3425 | |
| 1982 | 3426 | /***/ }), |
| 1983 | 3427 | |
| 1984 | -/***/ "../node_modules/core-js/internals/correct-prototype-getter.js": | |
| 1985 | -/*!*********************************************************************!*\ | |
| 1986 | - !*** ../node_modules/core-js/internals/correct-prototype-getter.js ***! | |
| 1987 | - \*********************************************************************/ | |
| 1988 | -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 1989 | - | |
| 1990 | -"use strict"; | |
| 1991 | - | |
| 1992 | -var fails = __webpack_require__(/*! ../internals/fails */ "../node_modules/core-js/internals/fails.js"); | |
| 1993 | - | |
| 1994 | -module.exports = !fails(function () { | |
| 1995 | - function F() { /* empty */ } | |
| 1996 | - F.prototype.constructor = null; | |
| 1997 | - // eslint-disable-next-line es/no-object-getprototypeof -- required for testing | |
| 1998 | - return Object.getPrototypeOf(new F()) !== F.prototype; | |
| 1999 | -}); | |
| 2000 | - | |
| 2001 | - | |
| 2002 | -/***/ }), | |
| 2003 | - | |
| 2004 | -/***/ "../node_modules/core-js/internals/create-iter-result-object.js": | |
| 2005 | -/*!**********************************************************************!*\ | |
| 2006 | - !*** ../node_modules/core-js/internals/create-iter-result-object.js ***! | |
| 2007 | - \**********************************************************************/ | |
| 2008 | -/***/ ((module) => { | |
| 2009 | - | |
| 2010 | -"use strict"; | |
| 2011 | - | |
| 2012 | -// `CreateIterResultObject` abstract operation | |
| 2013 | -// https://tc39.es/ecma262/#sec-createiterresultobject | |
| 2014 | -module.exports = function (value, done) { | |
| 2015 | - return { value: value, done: done }; | |
| 2016 | -}; | |
| 2017 | - | |
| 2018 | - | |
| 2019 | -/***/ }), | |
| 2020 | - | |
| 2021 | 3428 | /***/ "../node_modules/core-js/internals/create-non-enumerable-property.js": |
| 2022 | 3429 | /*!***************************************************************************!*\ |
| 2023 | 3430 | !*** ../node_modules/core-js/internals/create-non-enumerable-property.js ***! |
| 2024 | 3431 | \***************************************************************************/ |
| @@ -2059,48 +3466,8 @@ | ||
| 2059 | 3466 | |
| 2060 | 3467 | |
| 2061 | 3468 | /***/ }), |
| 2062 | 3469 | |
| 2063 | -/***/ "../node_modules/core-js/internals/create-property.js": | |
| 2064 | -/*!************************************************************!*\ | |
| 2065 | - !*** ../node_modules/core-js/internals/create-property.js ***! | |
| 2066 | - \************************************************************/ | |
| 2067 | -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 2068 | - | |
| 2069 | -"use strict"; | |
| 2070 | - | |
| 2071 | -var DESCRIPTORS = __webpack_require__(/*! ../internals/descriptors */ "../node_modules/core-js/internals/descriptors.js"); | |
| 2072 | -var definePropertyModule = __webpack_require__(/*! ../internals/object-define-property */ "../node_modules/core-js/internals/object-define-property.js"); | |
| 2073 | -var createPropertyDescriptor = __webpack_require__(/*! ../internals/create-property-descriptor */ "../node_modules/core-js/internals/create-property-descriptor.js"); | |
| 2074 | - | |
| 2075 | -module.exports = function (object, key, value) { | |
| 2076 | - if (DESCRIPTORS) definePropertyModule.f(object, key, createPropertyDescriptor(0, value)); | |
| 2077 | - else object[key] = value; | |
| 2078 | -}; | |
| 2079 | - | |
| 2080 | - | |
| 2081 | -/***/ }), | |
| 2082 | - | |
| 2083 | -/***/ "../node_modules/core-js/internals/define-built-in-accessor.js": | |
| 2084 | -/*!*********************************************************************!*\ | |
| 2085 | - !*** ../node_modules/core-js/internals/define-built-in-accessor.js ***! | |
| 2086 | - \*********************************************************************/ | |
| 2087 | -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 2088 | - | |
| 2089 | -"use strict"; | |
| 2090 | - | |
| 2091 | -var makeBuiltIn = __webpack_require__(/*! ../internals/make-built-in */ "../node_modules/core-js/internals/make-built-in.js"); | |
| 2092 | -var defineProperty = __webpack_require__(/*! ../internals/object-define-property */ "../node_modules/core-js/internals/object-define-property.js"); | |
| 2093 | - | |
| 2094 | -module.exports = function (target, name, descriptor) { | |
| 2095 | - if (descriptor.get) makeBuiltIn(descriptor.get, name, { getter: true }); | |
| 2096 | - if (descriptor.set) makeBuiltIn(descriptor.set, name, { setter: true }); | |
| 2097 | - return defineProperty.f(target, name, descriptor); | |
| 2098 | -}; | |
| 2099 | - | |
| 2100 | - | |
| 2101 | -/***/ }), | |
| 2102 | - | |
| 2103 | 3470 | /***/ "../node_modules/core-js/internals/define-built-in.js": |
| 2104 | 3471 | /*!************************************************************!*\ |
| 2105 | 3472 | !*** ../node_modules/core-js/internals/define-built-in.js ***! |
| 2106 | 3473 | \************************************************************/ |
| @@ -2138,26 +3505,8 @@ | ||
| 2138 | 3505 | |
| 2139 | 3506 | |
| 2140 | 3507 | /***/ }), |
| 2141 | 3508 | |
| 2142 | -/***/ "../node_modules/core-js/internals/define-built-ins.js": | |
| 2143 | -/*!*************************************************************!*\ | |
| 2144 | - !*** ../node_modules/core-js/internals/define-built-ins.js ***! | |
| 2145 | - \*************************************************************/ | |
| 2146 | -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 2147 | - | |
| 2148 | -"use strict"; | |
| 2149 | - | |
| 2150 | -var defineBuiltIn = __webpack_require__(/*! ../internals/define-built-in */ "../node_modules/core-js/internals/define-built-in.js"); | |
| 2151 | - | |
| 2152 | -module.exports = function (target, src, options) { | |
| 2153 | - for (var key in src) defineBuiltIn(target, key, src[key], options); | |
| 2154 | - return target; | |
| 2155 | -}; | |
| 2156 | - | |
| 2157 | - | |
| 2158 | -/***/ }), | |
| 2159 | - | |
| 2160 | 3509 | /***/ "../node_modules/core-js/internals/define-global-property.js": |
| 2161 | 3510 | /*!*******************************************************************!*\ |
| 2162 | 3511 | !*** ../node_modules/core-js/internals/define-global-property.js ***! |
| 2163 | 3512 | \*******************************************************************/ |
| @@ -2164,9 +3513,9 @@ | ||
| 2164 | 3513 | /***/ ((module, __unused_webpack_exports, __webpack_require__) => { |
| 2165 | 3514 | |
| 2166 | 3515 | "use strict"; |
| 2167 | 3516 | |
| 2168 | -var globalThis = __webpack_require__(/*! ../internals/global-this */ "../node_modules/core-js/internals/global-this.js"); | |
| 3517 | +var global = __webpack_require__(/*! ../internals/global */ "../node_modules/core-js/internals/global.js"); | |
| 2169 | 3518 | |
| 2170 | 3519 | // eslint-disable-next-line es/no-object-defineproperty -- safe |
| 2171 | 3520 | var defineProperty = Object.defineProperty; |
| 2172 | 3521 | |
| @@ -2171,11 +3520,11 @@ | ||
| 2171 | 3520 | var defineProperty = Object.defineProperty; |
| 2172 | 3521 | |
| 2173 | 3522 | module.exports = function (key, value) { |
| 2174 | 3523 | try { |
| 2175 | - defineProperty(globalThis, key, { value: value, configurable: true, writable: true }); | |
| 3524 | + defineProperty(global, key, { value: value, configurable: true, writable: true }); | |
| 2176 | 3525 | } catch (error) { |
| 2177 | - globalThis[key] = value; | |
| 3526 | + global[key] = value; | |
| 2178 | 3527 | } return value; |
| 2179 | 3528 | }; |
| 2180 | 3529 | |
| 2181 | 3530 | |
| @@ -2193,14 +3542,36 @@ | ||
| 2193 | 3542 | |
| 2194 | 3543 | // Detect IE8's incomplete defineProperty implementation |
| 2195 | 3544 | module.exports = !fails(function () { |
| 2196 | 3545 | // eslint-disable-next-line es/no-object-defineproperty -- required for testing |
| 2197 | - return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] !== 7; | |
| 3546 | + return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7; | |
| 2198 | 3547 | }); |
| 2199 | 3548 | |
| 2200 | 3549 | |
| 2201 | 3550 | /***/ }), |
| 2202 | 3551 | |
| 3552 | +/***/ "../node_modules/core-js/internals/document-all.js": | |
| 3553 | +/*!*********************************************************!*\ | |
| 3554 | + !*** ../node_modules/core-js/internals/document-all.js ***! | |
| 3555 | + \*********************************************************/ | |
| 3556 | +/***/ ((module) => { | |
| 3557 | + | |
| 3558 | +"use strict"; | |
| 3559 | + | |
| 3560 | +var documentAll = typeof document == 'object' && document.all; | |
| 3561 | + | |
| 3562 | +// https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot | |
| 3563 | +// eslint-disable-next-line unicorn/no-typeof-undefined -- required for testing | |
| 3564 | +var IS_HTMLDDA = typeof documentAll == 'undefined' && documentAll !== undefined; | |
| 3565 | + | |
| 3566 | +module.exports = { | |
| 3567 | + all: documentAll, | |
| 3568 | + IS_HTMLDDA: IS_HTMLDDA | |
| 3569 | +}; | |
| 3570 | + | |
| 3571 | + | |
| 3572 | +/***/ }), | |
| 3573 | + | |
| 2203 | 3574 | /***/ "../node_modules/core-js/internals/document-create-element.js": |
| 2204 | 3575 | /*!********************************************************************!*\ |
| 2205 | 3576 | !*** ../node_modules/core-js/internals/document-create-element.js ***! |
| 2206 | 3577 | \********************************************************************/ |
| @@ -2207,12 +3578,12 @@ | ||
| 2207 | 3578 | /***/ ((module, __unused_webpack_exports, __webpack_require__) => { |
| 2208 | 3579 | |
| 2209 | 3580 | "use strict"; |
| 2210 | 3581 | |
| 2211 | -var globalThis = __webpack_require__(/*! ../internals/global-this */ "../node_modules/core-js/internals/global-this.js"); | |
| 3582 | +var global = __webpack_require__(/*! ../internals/global */ "../node_modules/core-js/internals/global.js"); | |
| 2212 | 3583 | var isObject = __webpack_require__(/*! ../internals/is-object */ "../node_modules/core-js/internals/is-object.js"); |
| 2213 | 3584 | |
| 2214 | -var document = globalThis.document; | |
| 3585 | +var document = global.document; | |
| 2215 | 3586 | // typeof document.createElement is 'object' in old IE |
| 2216 | 3587 | var EXISTS = isObject(document) && isObject(document.createElement); |
| 2217 | 3588 | |
| 2218 | 3589 | module.exports = function (it) { |
| @@ -2221,25 +3592,58 @@ | ||
| 2221 | 3592 | |
| 2222 | 3593 | |
| 2223 | 3594 | /***/ }), |
| 2224 | 3595 | |
| 2225 | -/***/ "../node_modules/core-js/internals/does-not-exceed-safe-integer.js": | |
| 2226 | -/*!*************************************************************************!*\ | |
| 2227 | - !*** ../node_modules/core-js/internals/does-not-exceed-safe-integer.js ***! | |
| 2228 | - \*************************************************************************/ | |
| 3596 | +/***/ "../node_modules/core-js/internals/engine-user-agent.js": | |
| 3597 | +/*!**************************************************************!*\ | |
| 3598 | + !*** ../node_modules/core-js/internals/engine-user-agent.js ***! | |
| 3599 | + \**************************************************************/ | |
| 2229 | 3600 | /***/ ((module) => { |
| 2230 | 3601 | |
| 2231 | 3602 | "use strict"; |
| 2232 | 3603 | |
| 2233 | -var $TypeError = TypeError; | |
| 2234 | -var MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF; // 2 ** 53 - 1 == 9007199254740991 | |
| 3604 | +module.exports = typeof navigator != 'undefined' && String(navigator.userAgent) || ''; | |
| 2235 | 3605 | |
| 2236 | -module.exports = function (it) { | |
| 2237 | - if (it > MAX_SAFE_INTEGER) throw $TypeError('Maximum allowed index exceeded'); | |
| 2238 | - return it; | |
| 2239 | -}; | |
| 2240 | 3606 | |
| 3607 | +/***/ }), | |
| 2241 | 3608 | |
| 3609 | +/***/ "../node_modules/core-js/internals/engine-v8-version.js": | |
| 3610 | +/*!**************************************************************!*\ | |
| 3611 | + !*** ../node_modules/core-js/internals/engine-v8-version.js ***! | |
| 3612 | + \**************************************************************/ | |
| 3613 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 3614 | + | |
| 3615 | +"use strict"; | |
| 3616 | + | |
| 3617 | +var global = __webpack_require__(/*! ../internals/global */ "../node_modules/core-js/internals/global.js"); | |
| 3618 | +var userAgent = __webpack_require__(/*! ../internals/engine-user-agent */ "../node_modules/core-js/internals/engine-user-agent.js"); | |
| 3619 | + | |
| 3620 | +var process = global.process; | |
| 3621 | +var Deno = global.Deno; | |
| 3622 | +var versions = process && process.versions || Deno && Deno.version; | |
| 3623 | +var v8 = versions && versions.v8; | |
| 3624 | +var match, version; | |
| 3625 | + | |
| 3626 | +if (v8) { | |
| 3627 | + match = v8.split('.'); | |
| 3628 | + // in old Chrome, versions of V8 isn't V8 = Chrome / 10 | |
| 3629 | + // but their correct versions are not interesting for us | |
| 3630 | + version = match[0] > 0 && match[0] < 4 ? 1 : +(match[0] + match[1]); | |
| 3631 | +} | |
| 3632 | + | |
| 3633 | +// BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0` | |
| 3634 | +// so check `userAgent` even if `.v8` exists, but 0 | |
| 3635 | +if (!version && userAgent) { | |
| 3636 | + match = userAgent.match(/Edge\/(\d+)/); | |
| 3637 | + if (!match || match[1] >= 74) { | |
| 3638 | + match = userAgent.match(/Chrome\/(\d+)/); | |
| 3639 | + if (match) version = +match[1]; | |
| 3640 | + } | |
| 3641 | +} | |
| 3642 | + | |
| 3643 | +module.exports = version; | |
| 3644 | + | |
| 3645 | + | |
| 2242 | 3646 | /***/ }), |
| 2243 | 3647 | |
| 2244 | 3648 | /***/ "../node_modules/core-js/internals/enum-bug-keys.js": |
| 2245 | 3649 | /*!**********************************************************!*\ |
| @@ -2262,63 +3666,80 @@ | ||
| 2262 | 3666 | |
| 2263 | 3667 | |
| 2264 | 3668 | /***/ }), |
| 2265 | 3669 | |
| 2266 | -/***/ "../node_modules/core-js/internals/environment-user-agent.js": | |
| 2267 | -/*!*******************************************************************!*\ | |
| 2268 | - !*** ../node_modules/core-js/internals/environment-user-agent.js ***! | |
| 2269 | - \*******************************************************************/ | |
| 3670 | +/***/ "../node_modules/core-js/internals/error-stack-clear.js": | |
| 3671 | +/*!**************************************************************!*\ | |
| 3672 | + !*** ../node_modules/core-js/internals/error-stack-clear.js ***! | |
| 3673 | + \**************************************************************/ | |
| 2270 | 3674 | /***/ ((module, __unused_webpack_exports, __webpack_require__) => { |
| 2271 | 3675 | |
| 2272 | 3676 | "use strict"; |
| 2273 | 3677 | |
| 2274 | -var globalThis = __webpack_require__(/*! ../internals/global-this */ "../node_modules/core-js/internals/global-this.js"); | |
| 3678 | +var uncurryThis = __webpack_require__(/*! ../internals/function-uncurry-this */ "../node_modules/core-js/internals/function-uncurry-this.js"); | |
| 2275 | 3679 | |
| 2276 | -var navigator = globalThis.navigator; | |
| 2277 | -var userAgent = navigator && navigator.userAgent; | |
| 3680 | +var $Error = Error; | |
| 3681 | +var replace = uncurryThis(''.replace); | |
| 2278 | 3682 | |
| 2279 | -module.exports = userAgent ? String(userAgent) : ''; | |
| 3683 | +var TEST = (function (arg) { return String($Error(arg).stack); })('zxcasd'); | |
| 3684 | +// eslint-disable-next-line redos/no-vulnerable -- safe | |
| 3685 | +var V8_OR_CHAKRA_STACK_ENTRY = /\n\s*at [^:]*:[^\n]*/; | |
| 3686 | +var IS_V8_OR_CHAKRA_STACK = V8_OR_CHAKRA_STACK_ENTRY.test(TEST); | |
| 2280 | 3687 | |
| 3688 | +module.exports = function (stack, dropEntries) { | |
| 3689 | + if (IS_V8_OR_CHAKRA_STACK && typeof stack == 'string' && !$Error.prepareStackTrace) { | |
| 3690 | + while (dropEntries--) stack = replace(stack, V8_OR_CHAKRA_STACK_ENTRY, ''); | |
| 3691 | + } return stack; | |
| 3692 | +}; | |
| 2281 | 3693 | |
| 3694 | + | |
| 2282 | 3695 | /***/ }), |
| 2283 | 3696 | |
| 2284 | -/***/ "../node_modules/core-js/internals/environment-v8-version.js": | |
| 2285 | -/*!*******************************************************************!*\ | |
| 2286 | - !*** ../node_modules/core-js/internals/environment-v8-version.js ***! | |
| 2287 | - \*******************************************************************/ | |
| 3697 | +/***/ "../node_modules/core-js/internals/error-stack-install.js": | |
| 3698 | +/*!****************************************************************!*\ | |
| 3699 | + !*** ../node_modules/core-js/internals/error-stack-install.js ***! | |
| 3700 | + \****************************************************************/ | |
| 2288 | 3701 | /***/ ((module, __unused_webpack_exports, __webpack_require__) => { |
| 2289 | 3702 | |
| 2290 | 3703 | "use strict"; |
| 2291 | 3704 | |
| 2292 | -var globalThis = __webpack_require__(/*! ../internals/global-this */ "../node_modules/core-js/internals/global-this.js"); | |
| 2293 | -var userAgent = __webpack_require__(/*! ../internals/environment-user-agent */ "../node_modules/core-js/internals/environment-user-agent.js"); | |
| 3705 | +var createNonEnumerableProperty = __webpack_require__(/*! ../internals/create-non-enumerable-property */ "../node_modules/core-js/internals/create-non-enumerable-property.js"); | |
| 3706 | +var clearErrorStack = __webpack_require__(/*! ../internals/error-stack-clear */ "../node_modules/core-js/internals/error-stack-clear.js"); | |
| 3707 | +var ERROR_STACK_INSTALLABLE = __webpack_require__(/*! ../internals/error-stack-installable */ "../node_modules/core-js/internals/error-stack-installable.js"); | |
| 2294 | 3708 | |
| 2295 | -var process = globalThis.process; | |
| 2296 | -var Deno = globalThis.Deno; | |
| 2297 | -var versions = process && process.versions || Deno && Deno.version; | |
| 2298 | -var v8 = versions && versions.v8; | |
| 2299 | -var match, version; | |
| 3709 | +// non-standard V8 | |
| 3710 | +var captureStackTrace = Error.captureStackTrace; | |
| 2300 | 3711 | |
| 2301 | -if (v8) { | |
| 2302 | - match = v8.split('.'); | |
| 2303 | - // in old Chrome, versions of V8 isn't V8 = Chrome / 10 | |
| 2304 | - // but their correct versions are not interesting for us | |
| 2305 | - version = match[0] > 0 && match[0] < 4 ? 1 : +(match[0] + match[1]); | |
| 2306 | -} | |
| 3712 | +module.exports = function (error, C, stack, dropEntries) { | |
| 3713 | + if (ERROR_STACK_INSTALLABLE) { | |
| 3714 | + if (captureStackTrace) captureStackTrace(error, C); | |
| 3715 | + else createNonEnumerableProperty(error, 'stack', clearErrorStack(stack, dropEntries)); | |
| 3716 | + } | |
| 3717 | +}; | |
| 2307 | 3718 | |
| 2308 | -// BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0` | |
| 2309 | -// so check `userAgent` even if `.v8` exists, but 0 | |
| 2310 | -if (!version && userAgent) { | |
| 2311 | - match = userAgent.match(/Edge\/(\d+)/); | |
| 2312 | - if (!match || match[1] >= 74) { | |
| 2313 | - match = userAgent.match(/Chrome\/(\d+)/); | |
| 2314 | - if (match) version = +match[1]; | |
| 2315 | - } | |
| 2316 | -} | |
| 2317 | 3719 | |
| 2318 | -module.exports = version; | |
| 3720 | +/***/ }), | |
| 2319 | 3721 | |
| 3722 | +/***/ "../node_modules/core-js/internals/error-stack-installable.js": | |
| 3723 | +/*!********************************************************************!*\ | |
| 3724 | + !*** ../node_modules/core-js/internals/error-stack-installable.js ***! | |
| 3725 | + \********************************************************************/ | |
| 3726 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 2320 | 3727 | |
| 3728 | +"use strict"; | |
| 3729 | + | |
| 3730 | +var fails = __webpack_require__(/*! ../internals/fails */ "../node_modules/core-js/internals/fails.js"); | |
| 3731 | +var createPropertyDescriptor = __webpack_require__(/*! ../internals/create-property-descriptor */ "../node_modules/core-js/internals/create-property-descriptor.js"); | |
| 3732 | + | |
| 3733 | +module.exports = !fails(function () { | |
| 3734 | + var error = Error('a'); | |
| 3735 | + if (!('stack' in error)) return true; | |
| 3736 | + // eslint-disable-next-line es/no-object-defineproperty -- safe | |
| 3737 | + Object.defineProperty(error, 'stack', createPropertyDescriptor(1, 7)); | |
| 3738 | + return error.stack !== 7; | |
| 3739 | +}); | |
| 3740 | + | |
| 3741 | + | |
| 2321 | 3742 | /***/ }), |
| 2322 | 3743 | |
| 2323 | 3744 | /***/ "../node_modules/core-js/internals/export.js": |
| 2324 | 3745 | /*!***************************************************!*\ |
| @@ -2327,9 +3748,9 @@ | ||
| 2327 | 3748 | /***/ ((module, __unused_webpack_exports, __webpack_require__) => { |
| 2328 | 3749 | |
| 2329 | 3750 | "use strict"; |
| 2330 | 3751 | |
| 2331 | -var globalThis = __webpack_require__(/*! ../internals/global-this */ "../node_modules/core-js/internals/global-this.js"); | |
| 3752 | +var global = __webpack_require__(/*! ../internals/global */ "../node_modules/core-js/internals/global.js"); | |
| 2332 | 3753 | var getOwnPropertyDescriptor = (__webpack_require__(/*! ../internals/object-get-own-property-descriptor */ "../node_modules/core-js/internals/object-get-own-property-descriptor.js").f); |
| 2333 | 3754 | var createNonEnumerableProperty = __webpack_require__(/*! ../internals/create-non-enumerable-property */ "../node_modules/core-js/internals/create-non-enumerable-property.js"); |
| 2334 | 3755 | var defineBuiltIn = __webpack_require__(/*! ../internals/define-built-in */ "../node_modules/core-js/internals/define-built-in.js"); |
| 2335 | 3756 | var defineGlobalProperty = __webpack_require__(/*! ../internals/define-global-property */ "../node_modules/core-js/internals/define-global-property.js"); |
| @@ -2356,13 +3777,13 @@ | ||
| 2356 | 3777 | var GLOBAL = options.global; |
| 2357 | 3778 | var STATIC = options.stat; |
| 2358 | 3779 | var FORCED, target, key, targetProperty, sourceProperty, descriptor; |
| 2359 | 3780 | if (GLOBAL) { |
| 2360 | - target = globalThis; | |
| 3781 | + target = global; | |
| 2361 | 3782 | } else if (STATIC) { |
| 2362 | - target = globalThis[TARGET] || defineGlobalProperty(TARGET, {}); | |
| 3783 | + target = global[TARGET] || defineGlobalProperty(TARGET, {}); | |
| 2363 | 3784 | } else { |
| 2364 | - target = globalThis[TARGET] && globalThis[TARGET].prototype; | |
| 3785 | + target = (global[TARGET] || {}).prototype; | |
| 2365 | 3786 | } |
| 2366 | 3787 | if (target) for (key in source) { |
| 2367 | 3788 | sourceProperty = source[key]; |
| 2368 | 3789 | if (options.dontCallGetSet) { |
| @@ -2404,29 +3825,26 @@ | ||
| 2404 | 3825 | |
| 2405 | 3826 | |
| 2406 | 3827 | /***/ }), |
| 2407 | 3828 | |
| 2408 | -/***/ "../node_modules/core-js/internals/function-bind-context.js": | |
| 2409 | -/*!******************************************************************!*\ | |
| 2410 | - !*** ../node_modules/core-js/internals/function-bind-context.js ***! | |
| 2411 | - \******************************************************************/ | |
| 3829 | +/***/ "../node_modules/core-js/internals/function-apply.js": | |
| 3830 | +/*!***********************************************************!*\ | |
| 3831 | + !*** ../node_modules/core-js/internals/function-apply.js ***! | |
| 3832 | + \***********************************************************/ | |
| 2412 | 3833 | /***/ ((module, __unused_webpack_exports, __webpack_require__) => { |
| 2413 | 3834 | |
| 2414 | 3835 | "use strict"; |
| 2415 | 3836 | |
| 2416 | -var uncurryThis = __webpack_require__(/*! ../internals/function-uncurry-this-clause */ "../node_modules/core-js/internals/function-uncurry-this-clause.js"); | |
| 2417 | -var aCallable = __webpack_require__(/*! ../internals/a-callable */ "../node_modules/core-js/internals/a-callable.js"); | |
| 2418 | 3837 | var NATIVE_BIND = __webpack_require__(/*! ../internals/function-bind-native */ "../node_modules/core-js/internals/function-bind-native.js"); |
| 2419 | 3838 | |
| 2420 | -var bind = uncurryThis(uncurryThis.bind); | |
| 3839 | +var FunctionPrototype = Function.prototype; | |
| 3840 | +var apply = FunctionPrototype.apply; | |
| 3841 | +var call = FunctionPrototype.call; | |
| 2421 | 3842 | |
| 2422 | -// optional / simple context binding | |
| 2423 | -module.exports = function (fn, that) { | |
| 2424 | - aCallable(fn); | |
| 2425 | - return that === undefined ? fn : NATIVE_BIND ? bind(fn, that) : function (/* ...args */) { | |
| 2426 | - return fn.apply(that, arguments); | |
| 2427 | - }; | |
| 2428 | -}; | |
| 3843 | +// eslint-disable-next-line es/no-reflect -- safe | |
| 3844 | +module.exports = typeof Reflect == 'object' && Reflect.apply || (NATIVE_BIND ? call.bind(apply) : function () { | |
| 3845 | + return call.apply(apply, arguments); | |
| 3846 | +}); | |
| 2429 | 3847 | |
| 2430 | 3848 | |
| 2431 | 3849 | /***/ }), |
| 2432 | 3850 | |
| @@ -2460,9 +3878,9 @@ | ||
| 2460 | 3878 | |
| 2461 | 3879 | var NATIVE_BIND = __webpack_require__(/*! ../internals/function-bind-native */ "../node_modules/core-js/internals/function-bind-native.js"); |
| 2462 | 3880 | |
| 2463 | 3881 | var call = Function.prototype.call; |
| 2464 | -// eslint-disable-next-line es/no-function-prototype-bind -- safe | |
| 3882 | + | |
| 2465 | 3883 | module.exports = NATIVE_BIND ? call.bind(call) : function () { |
| 2466 | 3884 | return call.apply(call, arguments); |
| 2467 | 3885 | }; |
| 2468 | 3886 | |
| @@ -2497,24 +3915,24 @@ | ||
| 2497 | 3915 | |
| 2498 | 3916 | |
| 2499 | 3917 | /***/ }), |
| 2500 | 3918 | |
| 2501 | -/***/ "../node_modules/core-js/internals/function-uncurry-this-clause.js": | |
| 2502 | -/*!*************************************************************************!*\ | |
| 2503 | - !*** ../node_modules/core-js/internals/function-uncurry-this-clause.js ***! | |
| 2504 | - \*************************************************************************/ | |
| 3919 | +/***/ "../node_modules/core-js/internals/function-uncurry-this-accessor.js": | |
| 3920 | +/*!***************************************************************************!*\ | |
| 3921 | + !*** ../node_modules/core-js/internals/function-uncurry-this-accessor.js ***! | |
| 3922 | + \***************************************************************************/ | |
| 2505 | 3923 | /***/ ((module, __unused_webpack_exports, __webpack_require__) => { |
| 2506 | 3924 | |
| 2507 | 3925 | "use strict"; |
| 2508 | 3926 | |
| 2509 | -var classofRaw = __webpack_require__(/*! ../internals/classof-raw */ "../node_modules/core-js/internals/classof-raw.js"); | |
| 2510 | 3927 | var uncurryThis = __webpack_require__(/*! ../internals/function-uncurry-this */ "../node_modules/core-js/internals/function-uncurry-this.js"); |
| 3928 | +var aCallable = __webpack_require__(/*! ../internals/a-callable */ "../node_modules/core-js/internals/a-callable.js"); | |
| 2511 | 3929 | |
| 2512 | -module.exports = function (fn) { | |
| 2513 | - // Nashorn bug: | |
| 2514 | - // https://github.com/zloirock/core-js/issues/1128 | |
| 2515 | - // https://github.com/zloirock/core-js/issues/1130 | |
| 2516 | - if (classofRaw(fn) === 'Function') return uncurryThis(fn); | |
| 3930 | +module.exports = function (object, key, method) { | |
| 3931 | + try { | |
| 3932 | + // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe | |
| 3933 | + return uncurryThis(aCallable(Object.getOwnPropertyDescriptor(object, key)[method])); | |
| 3934 | + } catch (error) { /* empty */ } | |
| 2517 | 3935 | }; |
| 2518 | 3936 | |
| 2519 | 3937 | |
| 2520 | 3938 | /***/ }), |
| @@ -2530,9 +3948,8 @@ | ||
| 2530 | 3948 | var NATIVE_BIND = __webpack_require__(/*! ../internals/function-bind-native */ "../node_modules/core-js/internals/function-bind-native.js"); |
| 2531 | 3949 | |
| 2532 | 3950 | var FunctionPrototype = Function.prototype; |
| 2533 | 3951 | var call = FunctionPrototype.call; |
| 2534 | -// eslint-disable-next-line es/no-function-prototype-bind -- safe | |
| 2535 | 3952 | var uncurryThisWithBind = NATIVE_BIND && FunctionPrototype.bind.bind(call, call); |
| 2536 | 3953 | |
| 2537 | 3954 | module.exports = NATIVE_BIND ? uncurryThisWithBind : function (fn) { |
| 2538 | 3955 | return function () { |
| @@ -2550,9 +3967,9 @@ | ||
| 2550 | 3967 | /***/ ((module, __unused_webpack_exports, __webpack_require__) => { |
| 2551 | 3968 | |
| 2552 | 3969 | "use strict"; |
| 2553 | 3970 | |
| 2554 | -var globalThis = __webpack_require__(/*! ../internals/global-this */ "../node_modules/core-js/internals/global-this.js"); | |
| 3971 | +var global = __webpack_require__(/*! ../internals/global */ "../node_modules/core-js/internals/global.js"); | |
| 2555 | 3972 | var isCallable = __webpack_require__(/*! ../internals/is-callable */ "../node_modules/core-js/internals/is-callable.js"); |
| 2556 | 3973 | |
| 2557 | 3974 | var aFunction = function (argument) { |
| 2558 | 3975 | return isCallable(argument) ? argument : undefined; |
| @@ -2558,85 +3975,14 @@ | ||
| 2558 | 3975 | return isCallable(argument) ? argument : undefined; |
| 2559 | 3976 | }; |
| 2560 | 3977 | |
| 2561 | 3978 | module.exports = function (namespace, method) { |
| 2562 | - return arguments.length < 2 ? aFunction(globalThis[namespace]) : globalThis[namespace] && globalThis[namespace][method]; | |
| 3979 | + return arguments.length < 2 ? aFunction(global[namespace]) : global[namespace] && global[namespace][method]; | |
| 2563 | 3980 | }; |
| 2564 | 3981 | |
| 2565 | 3982 | |
| 2566 | 3983 | /***/ }), |
| 2567 | 3984 | |
| 2568 | -/***/ "../node_modules/core-js/internals/get-iterator-direct.js": | |
| 2569 | -/*!****************************************************************!*\ | |
| 2570 | - !*** ../node_modules/core-js/internals/get-iterator-direct.js ***! | |
| 2571 | - \****************************************************************/ | |
| 2572 | -/***/ ((module) => { | |
| 2573 | - | |
| 2574 | -"use strict"; | |
| 2575 | - | |
| 2576 | -// `GetIteratorDirect(obj)` abstract operation | |
| 2577 | -// https://tc39.es/ecma262/#sec-getiteratordirect | |
| 2578 | -module.exports = function (obj) { | |
| 2579 | - return { | |
| 2580 | - iterator: obj, | |
| 2581 | - next: obj.next, | |
| 2582 | - done: false | |
| 2583 | - }; | |
| 2584 | -}; | |
| 2585 | - | |
| 2586 | - | |
| 2587 | -/***/ }), | |
| 2588 | - | |
| 2589 | -/***/ "../node_modules/core-js/internals/get-iterator-method.js": | |
| 2590 | -/*!****************************************************************!*\ | |
| 2591 | - !*** ../node_modules/core-js/internals/get-iterator-method.js ***! | |
| 2592 | - \****************************************************************/ | |
| 2593 | -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 2594 | - | |
| 2595 | -"use strict"; | |
| 2596 | - | |
| 2597 | -var classof = __webpack_require__(/*! ../internals/classof */ "../node_modules/core-js/internals/classof.js"); | |
| 2598 | -var getMethod = __webpack_require__(/*! ../internals/get-method */ "../node_modules/core-js/internals/get-method.js"); | |
| 2599 | -var isNullOrUndefined = __webpack_require__(/*! ../internals/is-null-or-undefined */ "../node_modules/core-js/internals/is-null-or-undefined.js"); | |
| 2600 | -var Iterators = __webpack_require__(/*! ../internals/iterators */ "../node_modules/core-js/internals/iterators.js"); | |
| 2601 | -var wellKnownSymbol = __webpack_require__(/*! ../internals/well-known-symbol */ "../node_modules/core-js/internals/well-known-symbol.js"); | |
| 2602 | - | |
| 2603 | -var ITERATOR = wellKnownSymbol('iterator'); | |
| 2604 | - | |
| 2605 | -module.exports = function (it) { | |
| 2606 | - if (!isNullOrUndefined(it)) return getMethod(it, ITERATOR) | |
| 2607 | - || getMethod(it, '@@iterator') | |
| 2608 | - || Iterators[classof(it)]; | |
| 2609 | -}; | |
| 2610 | - | |
| 2611 | - | |
| 2612 | -/***/ }), | |
| 2613 | - | |
| 2614 | -/***/ "../node_modules/core-js/internals/get-iterator.js": | |
| 2615 | -/*!*********************************************************!*\ | |
| 2616 | - !*** ../node_modules/core-js/internals/get-iterator.js ***! | |
| 2617 | - \*********************************************************/ | |
| 2618 | -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 2619 | - | |
| 2620 | -"use strict"; | |
| 2621 | - | |
| 2622 | -var call = __webpack_require__(/*! ../internals/function-call */ "../node_modules/core-js/internals/function-call.js"); | |
| 2623 | -var aCallable = __webpack_require__(/*! ../internals/a-callable */ "../node_modules/core-js/internals/a-callable.js"); | |
| 2624 | -var anObject = __webpack_require__(/*! ../internals/an-object */ "../node_modules/core-js/internals/an-object.js"); | |
| 2625 | -var tryToString = __webpack_require__(/*! ../internals/try-to-string */ "../node_modules/core-js/internals/try-to-string.js"); | |
| 2626 | -var getIteratorMethod = __webpack_require__(/*! ../internals/get-iterator-method */ "../node_modules/core-js/internals/get-iterator-method.js"); | |
| 2627 | - | |
| 2628 | -var $TypeError = TypeError; | |
| 2629 | - | |
| 2630 | -module.exports = function (argument, usingIterator) { | |
| 2631 | - var iteratorMethod = arguments.length < 2 ? getIteratorMethod(argument) : usingIterator; | |
| 2632 | - if (aCallable(iteratorMethod)) return anObject(call(iteratorMethod, argument)); | |
| 2633 | - throw new $TypeError(tryToString(argument) + ' is not iterable'); | |
| 2634 | -}; | |
| 2635 | - | |
| 2636 | - | |
| 2637 | -/***/ }), | |
| 2638 | - | |
| 2639 | 3985 | /***/ "../node_modules/core-js/internals/get-method.js": |
| 2640 | 3986 | /*!*******************************************************!*\ |
| 2641 | 3987 | !*** ../node_modules/core-js/internals/get-method.js ***! |
| 2642 | 3988 | \*******************************************************/ |
| @@ -2656,18 +4002,18 @@ | ||
| 2656 | 4002 | |
| 2657 | 4003 | |
| 2658 | 4004 | /***/ }), |
| 2659 | 4005 | |
| 2660 | -/***/ "../node_modules/core-js/internals/global-this.js": | |
| 2661 | -/*!********************************************************!*\ | |
| 2662 | - !*** ../node_modules/core-js/internals/global-this.js ***! | |
| 2663 | - \********************************************************/ | |
| 4006 | +/***/ "../node_modules/core-js/internals/global.js": | |
| 4007 | +/*!***************************************************!*\ | |
| 4008 | + !*** ../node_modules/core-js/internals/global.js ***! | |
| 4009 | + \***************************************************/ | |
| 2664 | 4010 | /***/ (function(module, __unused_webpack_exports, __webpack_require__) { |
| 2665 | 4011 | |
| 2666 | 4012 | "use strict"; |
| 2667 | 4013 | |
| 2668 | 4014 | var check = function (it) { |
| 2669 | - return it && it.Math === Math && it; | |
| 4015 | + return it && it.Math == Math && it; | |
| 2670 | 4016 | }; |
| 2671 | 4017 | |
| 2672 | 4018 | // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028 |
| 2673 | 4019 | module.exports = |
| @@ -2676,11 +4022,10 @@ | ||
| 2676 | 4022 | check(typeof window == 'object' && window) || |
| 2677 | 4023 | // eslint-disable-next-line no-restricted-globals -- safe |
| 2678 | 4024 | check(typeof self == 'object' && self) || |
| 2679 | 4025 | check(typeof __webpack_require__.g == 'object' && __webpack_require__.g) || |
| 2680 | - check(typeof this == 'object' && this) || | |
| 2681 | 4026 | // eslint-disable-next-line no-new-func -- fallback |
| 2682 | - (function () { return this; })() || Function('return this')(); | |
| 4027 | + (function () { return this; })() || this || Function('return this')(); | |
| 2683 | 4028 | |
| 2684 | 4029 | |
| 2685 | 4030 | /***/ }), |
| 2686 | 4031 | |
| @@ -2719,23 +4064,8 @@ | ||
| 2719 | 4064 | |
| 2720 | 4065 | |
| 2721 | 4066 | /***/ }), |
| 2722 | 4067 | |
| 2723 | -/***/ "../node_modules/core-js/internals/html.js": | |
| 2724 | -/*!*************************************************!*\ | |
| 2725 | - !*** ../node_modules/core-js/internals/html.js ***! | |
| 2726 | - \*************************************************/ | |
| 2727 | -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 2728 | - | |
| 2729 | -"use strict"; | |
| 2730 | - | |
| 2731 | -var getBuiltIn = __webpack_require__(/*! ../internals/get-built-in */ "../node_modules/core-js/internals/get-built-in.js"); | |
| 2732 | - | |
| 2733 | -module.exports = getBuiltIn('document', 'documentElement'); | |
| 2734 | - | |
| 2735 | - | |
| 2736 | -/***/ }), | |
| 2737 | - | |
| 2738 | 4068 | /***/ "../node_modules/core-js/internals/ie8-dom-define.js": |
| 2739 | 4069 | /*!***********************************************************!*\ |
| 2740 | 4070 | !*** ../node_modules/core-js/internals/ie8-dom-define.js ***! |
| 2741 | 4071 | \***********************************************************/ |
| @@ -2751,9 +4081,9 @@ | ||
| 2751 | 4081 | module.exports = !DESCRIPTORS && !fails(function () { |
| 2752 | 4082 | // eslint-disable-next-line es/no-object-defineproperty -- required for testing |
| 2753 | 4083 | return Object.defineProperty(createElement('div'), 'a', { |
| 2754 | 4084 | get: function () { return 7; } |
| 2755 | - }).a !== 7; | |
| 4085 | + }).a != 7; | |
| 2756 | 4086 | }); |
| 2757 | 4087 | |
| 2758 | 4088 | |
| 2759 | 4089 | /***/ }), |
| @@ -2778,14 +4108,44 @@ | ||
| 2778 | 4108 | // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346 |
| 2779 | 4109 | // eslint-disable-next-line no-prototype-builtins -- safe |
| 2780 | 4110 | return !$Object('z').propertyIsEnumerable(0); |
| 2781 | 4111 | }) ? function (it) { |
| 2782 | - return classof(it) === 'String' ? split(it, '') : $Object(it); | |
| 4112 | + return classof(it) == 'String' ? split(it, '') : $Object(it); | |
| 2783 | 4113 | } : $Object; |
| 2784 | 4114 | |
| 2785 | 4115 | |
| 2786 | 4116 | /***/ }), |
| 2787 | 4117 | |
| 4118 | +/***/ "../node_modules/core-js/internals/inherit-if-required.js": | |
| 4119 | +/*!****************************************************************!*\ | |
| 4120 | + !*** ../node_modules/core-js/internals/inherit-if-required.js ***! | |
| 4121 | + \****************************************************************/ | |
| 4122 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 4123 | + | |
| 4124 | +"use strict"; | |
| 4125 | + | |
| 4126 | +var isCallable = __webpack_require__(/*! ../internals/is-callable */ "../node_modules/core-js/internals/is-callable.js"); | |
| 4127 | +var isObject = __webpack_require__(/*! ../internals/is-object */ "../node_modules/core-js/internals/is-object.js"); | |
| 4128 | +var setPrototypeOf = __webpack_require__(/*! ../internals/object-set-prototype-of */ "../node_modules/core-js/internals/object-set-prototype-of.js"); | |
| 4129 | + | |
| 4130 | +// makes subclassing work correct for wrapped built-ins | |
| 4131 | +module.exports = function ($this, dummy, Wrapper) { | |
| 4132 | + var NewTarget, NewTargetPrototype; | |
| 4133 | + if ( | |
| 4134 | + // it can work only with native `setPrototypeOf` | |
| 4135 | + setPrototypeOf && | |
| 4136 | + // we haven't completely correct pre-ES6 way for getting `new.target`, so use this | |
| 4137 | + isCallable(NewTarget = dummy.constructor) && | |
| 4138 | + NewTarget !== Wrapper && | |
| 4139 | + isObject(NewTargetPrototype = NewTarget.prototype) && | |
| 4140 | + NewTargetPrototype !== Wrapper.prototype | |
| 4141 | + ) setPrototypeOf($this, NewTargetPrototype); | |
| 4142 | + return $this; | |
| 4143 | +}; | |
| 4144 | + | |
| 4145 | + | |
| 4146 | +/***/ }), | |
| 4147 | + | |
| 2788 | 4148 | /***/ "../node_modules/core-js/internals/inspect-source.js": |
| 2789 | 4149 | /*!***********************************************************!*\ |
| 2790 | 4150 | !*** ../node_modules/core-js/internals/inspect-source.js ***! |
| 2791 | 4151 | \***********************************************************/ |
| @@ -2810,8 +4170,30 @@ | ||
| 2810 | 4170 | |
| 2811 | 4171 | |
| 2812 | 4172 | /***/ }), |
| 2813 | 4173 | |
| 4174 | +/***/ "../node_modules/core-js/internals/install-error-cause.js": | |
| 4175 | +/*!****************************************************************!*\ | |
| 4176 | + !*** ../node_modules/core-js/internals/install-error-cause.js ***! | |
| 4177 | + \****************************************************************/ | |
| 4178 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 4179 | + | |
| 4180 | +"use strict"; | |
| 4181 | + | |
| 4182 | +var isObject = __webpack_require__(/*! ../internals/is-object */ "../node_modules/core-js/internals/is-object.js"); | |
| 4183 | +var createNonEnumerableProperty = __webpack_require__(/*! ../internals/create-non-enumerable-property */ "../node_modules/core-js/internals/create-non-enumerable-property.js"); | |
| 4184 | + | |
| 4185 | +// `InstallErrorCause` abstract operation | |
| 4186 | +// https://tc39.es/proposal-error-cause/#sec-errorobjects-install-error-cause | |
| 4187 | +module.exports = function (O, options) { | |
| 4188 | + if (isObject(options) && 'cause' in options) { | |
| 4189 | + createNonEnumerableProperty(O, 'cause', options.cause); | |
| 4190 | + } | |
| 4191 | +}; | |
| 4192 | + | |
| 4193 | + | |
| 4194 | +/***/ }), | |
| 4195 | + | |
| 2814 | 4196 | /***/ "../node_modules/core-js/internals/internal-state.js": |
| 2815 | 4197 | /*!***********************************************************!*\ |
| 2816 | 4198 | !*** ../node_modules/core-js/internals/internal-state.js ***! |
| 2817 | 4199 | \***********************************************************/ |
| @@ -2819,9 +4201,9 @@ | ||
| 2819 | 4201 | |
| 2820 | 4202 | "use strict"; |
| 2821 | 4203 | |
| 2822 | 4204 | var NATIVE_WEAK_MAP = __webpack_require__(/*! ../internals/weak-map-basic-detection */ "../node_modules/core-js/internals/weak-map-basic-detection.js"); |
| 2823 | -var globalThis = __webpack_require__(/*! ../internals/global-this */ "../node_modules/core-js/internals/global-this.js"); | |
| 4205 | +var global = __webpack_require__(/*! ../internals/global */ "../node_modules/core-js/internals/global.js"); | |
| 2824 | 4206 | var isObject = __webpack_require__(/*! ../internals/is-object */ "../node_modules/core-js/internals/is-object.js"); |
| 2825 | 4207 | var createNonEnumerableProperty = __webpack_require__(/*! ../internals/create-non-enumerable-property */ "../node_modules/core-js/internals/create-non-enumerable-property.js"); |
| 2826 | 4208 | var hasOwn = __webpack_require__(/*! ../internals/has-own-property */ "../node_modules/core-js/internals/has-own-property.js"); |
| 2827 | 4209 | var shared = __webpack_require__(/*! ../internals/shared-store */ "../node_modules/core-js/internals/shared-store.js"); |
| @@ -2828,10 +4210,10 @@ | ||
| 2828 | 4210 | var sharedKey = __webpack_require__(/*! ../internals/shared-key */ "../node_modules/core-js/internals/shared-key.js"); |
| 2829 | 4211 | var hiddenKeys = __webpack_require__(/*! ../internals/hidden-keys */ "../node_modules/core-js/internals/hidden-keys.js"); |
| 2830 | 4212 | |
| 2831 | 4213 | var OBJECT_ALREADY_INITIALIZED = 'Object already initialized'; |
| 2832 | -var TypeError = globalThis.TypeError; | |
| 2833 | -var WeakMap = globalThis.WeakMap; | |
| 4214 | +var TypeError = global.TypeError; | |
| 4215 | +var WeakMap = global.WeakMap; | |
| 2834 | 4216 | var set, get, has; |
| 2835 | 4217 | |
| 2836 | 4218 | var enforce = function (it) { |
| 2837 | 4219 | return has(it) ? get(it) : set(it, {}); |
| @@ -2840,9 +4222,9 @@ | ||
| 2840 | 4222 | var getterFor = function (TYPE) { |
| 2841 | 4223 | return function (it) { |
| 2842 | 4224 | var state; |
| 2843 | 4225 | if (!isObject(it) || (state = get(it)).type !== TYPE) { |
| 2844 | - throw new TypeError('Incompatible receiver, ' + TYPE + ' required'); | |
| 4226 | + throw TypeError('Incompatible receiver, ' + TYPE + ' required'); | |
| 2845 | 4227 | } return state; |
| 2846 | 4228 | }; |
| 2847 | 4229 | }; |
| 2848 | 4230 | |
| @@ -2853,9 +4235,9 @@ | ||
| 2853 | 4235 | store.has = store.has; |
| 2854 | 4236 | store.set = store.set; |
| 2855 | 4237 | /* eslint-enable no-self-assign -- prototype methods protection */ |
| 2856 | 4238 | set = function (it, metadata) { |
| 2857 | - if (store.has(it)) throw new TypeError(OBJECT_ALREADY_INITIALIZED); | |
| 4239 | + if (store.has(it)) throw TypeError(OBJECT_ALREADY_INITIALIZED); | |
| 2858 | 4240 | metadata.facade = it; |
| 2859 | 4241 | store.set(it, metadata); |
| 2860 | 4242 | return metadata; |
| 2861 | 4243 | }; |
| @@ -2868,9 +4250,9 @@ | ||
| 2868 | 4250 | } else { |
| 2869 | 4251 | var STATE = sharedKey('state'); |
| 2870 | 4252 | hiddenKeys[STATE] = true; |
| 2871 | 4253 | set = function (it, metadata) { |
| 2872 | - if (hasOwn(it, STATE)) throw new TypeError(OBJECT_ALREADY_INITIALIZED); | |
| 4254 | + if (hasOwn(it, STATE)) throw TypeError(OBJECT_ALREADY_INITIALIZED); | |
| 2873 | 4255 | metadata.facade = it; |
| 2874 | 4256 | createNonEnumerableProperty(it, STATE, metadata); |
| 2875 | 4257 | return metadata; |
| 2876 | 4258 | }; |
| @@ -2892,65 +4274,23 @@ | ||
| 2892 | 4274 | |
| 2893 | 4275 | |
| 2894 | 4276 | /***/ }), |
| 2895 | 4277 | |
| 2896 | -/***/ "../node_modules/core-js/internals/is-array-iterator-method.js": | |
| 2897 | -/*!*********************************************************************!*\ | |
| 2898 | - !*** ../node_modules/core-js/internals/is-array-iterator-method.js ***! | |
| 2899 | - \*********************************************************************/ | |
| 2900 | -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 2901 | - | |
| 2902 | -"use strict"; | |
| 2903 | - | |
| 2904 | -var wellKnownSymbol = __webpack_require__(/*! ../internals/well-known-symbol */ "../node_modules/core-js/internals/well-known-symbol.js"); | |
| 2905 | -var Iterators = __webpack_require__(/*! ../internals/iterators */ "../node_modules/core-js/internals/iterators.js"); | |
| 2906 | - | |
| 2907 | -var ITERATOR = wellKnownSymbol('iterator'); | |
| 2908 | -var ArrayPrototype = Array.prototype; | |
| 2909 | - | |
| 2910 | -// check on default Array iterator | |
| 2911 | -module.exports = function (it) { | |
| 2912 | - return it !== undefined && (Iterators.Array === it || ArrayPrototype[ITERATOR] === it); | |
| 2913 | -}; | |
| 2914 | - | |
| 2915 | - | |
| 2916 | -/***/ }), | |
| 2917 | - | |
| 2918 | -/***/ "../node_modules/core-js/internals/is-array.js": | |
| 2919 | -/*!*****************************************************!*\ | |
| 2920 | - !*** ../node_modules/core-js/internals/is-array.js ***! | |
| 2921 | - \*****************************************************/ | |
| 2922 | -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 2923 | - | |
| 2924 | -"use strict"; | |
| 2925 | - | |
| 2926 | -var classof = __webpack_require__(/*! ../internals/classof-raw */ "../node_modules/core-js/internals/classof-raw.js"); | |
| 2927 | - | |
| 2928 | -// `IsArray` abstract operation | |
| 2929 | -// https://tc39.es/ecma262/#sec-isarray | |
| 2930 | -// eslint-disable-next-line es/no-array-isarray -- safe | |
| 2931 | -module.exports = Array.isArray || function isArray(argument) { | |
| 2932 | - return classof(argument) === 'Array'; | |
| 2933 | -}; | |
| 2934 | - | |
| 2935 | - | |
| 2936 | -/***/ }), | |
| 2937 | - | |
| 2938 | 4278 | /***/ "../node_modules/core-js/internals/is-callable.js": |
| 2939 | 4279 | /*!********************************************************!*\ |
| 2940 | 4280 | !*** ../node_modules/core-js/internals/is-callable.js ***! |
| 2941 | 4281 | \********************************************************/ |
| 2942 | -/***/ ((module) => { | |
| 4282 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 2943 | 4283 | |
| 2944 | 4284 | "use strict"; |
| 2945 | 4285 | |
| 2946 | -// https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot | |
| 2947 | -var documentAll = typeof document == 'object' && document.all; | |
| 4286 | +var $documentAll = __webpack_require__(/*! ../internals/document-all */ "../node_modules/core-js/internals/document-all.js"); | |
| 2948 | 4287 | |
| 4288 | +var documentAll = $documentAll.all; | |
| 4289 | + | |
| 2949 | 4290 | // `IsCallable` abstract operation |
| 2950 | 4291 | // https://tc39.es/ecma262/#sec-iscallable |
| 2951 | -// eslint-disable-next-line unicorn/no-typeof-undefined -- required for testing | |
| 2952 | -module.exports = typeof documentAll == 'undefined' && documentAll !== undefined ? function (argument) { | |
| 4292 | +module.exports = $documentAll.IS_HTMLDDA ? function (argument) { | |
| 2953 | 4293 | return typeof argument == 'function' || argument === documentAll; |
| 2954 | 4294 | } : function (argument) { |
| 2955 | 4295 | return typeof argument == 'function'; |
| 2956 | 4296 | }; |
| @@ -2972,10 +4312,10 @@ | ||
| 2972 | 4312 | var replacement = /#|\.prototype\./; |
| 2973 | 4313 | |
| 2974 | 4314 | var isForced = function (feature, detection) { |
| 2975 | 4315 | var value = data[normalize(feature)]; |
| 2976 | - return value === POLYFILL ? true | |
| 2977 | - : value === NATIVE ? false | |
| 4316 | + return value == POLYFILL ? true | |
| 4317 | + : value == NATIVE ? false | |
| 2978 | 4318 | : isCallable(detection) ? fails(detection) |
| 2979 | 4319 | : !!detection; |
| 2980 | 4320 | }; |
| 2981 | 4321 | |
| @@ -3017,10 +4357,15 @@ | ||
| 3017 | 4357 | |
| 3018 | 4358 | "use strict"; |
| 3019 | 4359 | |
| 3020 | 4360 | var isCallable = __webpack_require__(/*! ../internals/is-callable */ "../node_modules/core-js/internals/is-callable.js"); |
| 4361 | +var $documentAll = __webpack_require__(/*! ../internals/document-all */ "../node_modules/core-js/internals/document-all.js"); | |
| 3021 | 4362 | |
| 3022 | -module.exports = function (it) { | |
| 4363 | +var documentAll = $documentAll.all; | |
| 4364 | + | |
| 4365 | +module.exports = $documentAll.IS_HTMLDDA ? function (it) { | |
| 4366 | + return typeof it == 'object' ? it !== null : isCallable(it) || it === documentAll; | |
| 4367 | +} : function (it) { | |
| 3023 | 4368 | return typeof it == 'object' ? it !== null : isCallable(it); |
| 3024 | 4369 | }; |
| 3025 | 4370 | |
| 3026 | 4371 | |
| @@ -3063,377 +4408,8 @@ | ||
| 3063 | 4408 | |
| 3064 | 4409 | |
| 3065 | 4410 | /***/ }), |
| 3066 | 4411 | |
| 3067 | -/***/ "../node_modules/core-js/internals/iterate.js": | |
| 3068 | -/*!****************************************************!*\ | |
| 3069 | - !*** ../node_modules/core-js/internals/iterate.js ***! | |
| 3070 | - \****************************************************/ | |
| 3071 | -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 3072 | - | |
| 3073 | -"use strict"; | |
| 3074 | - | |
| 3075 | -var bind = __webpack_require__(/*! ../internals/function-bind-context */ "../node_modules/core-js/internals/function-bind-context.js"); | |
| 3076 | -var call = __webpack_require__(/*! ../internals/function-call */ "../node_modules/core-js/internals/function-call.js"); | |
| 3077 | -var anObject = __webpack_require__(/*! ../internals/an-object */ "../node_modules/core-js/internals/an-object.js"); | |
| 3078 | -var tryToString = __webpack_require__(/*! ../internals/try-to-string */ "../node_modules/core-js/internals/try-to-string.js"); | |
| 3079 | -var isArrayIteratorMethod = __webpack_require__(/*! ../internals/is-array-iterator-method */ "../node_modules/core-js/internals/is-array-iterator-method.js"); | |
| 3080 | -var lengthOfArrayLike = __webpack_require__(/*! ../internals/length-of-array-like */ "../node_modules/core-js/internals/length-of-array-like.js"); | |
| 3081 | -var isPrototypeOf = __webpack_require__(/*! ../internals/object-is-prototype-of */ "../node_modules/core-js/internals/object-is-prototype-of.js"); | |
| 3082 | -var getIterator = __webpack_require__(/*! ../internals/get-iterator */ "../node_modules/core-js/internals/get-iterator.js"); | |
| 3083 | -var getIteratorMethod = __webpack_require__(/*! ../internals/get-iterator-method */ "../node_modules/core-js/internals/get-iterator-method.js"); | |
| 3084 | -var iteratorClose = __webpack_require__(/*! ../internals/iterator-close */ "../node_modules/core-js/internals/iterator-close.js"); | |
| 3085 | - | |
| 3086 | -var $TypeError = TypeError; | |
| 3087 | - | |
| 3088 | -var Result = function (stopped, result) { | |
| 3089 | - this.stopped = stopped; | |
| 3090 | - this.result = result; | |
| 3091 | -}; | |
| 3092 | - | |
| 3093 | -var ResultPrototype = Result.prototype; | |
| 3094 | - | |
| 3095 | -module.exports = function (iterable, unboundFunction, options) { | |
| 3096 | - var that = options && options.that; | |
| 3097 | - var AS_ENTRIES = !!(options && options.AS_ENTRIES); | |
| 3098 | - var IS_RECORD = !!(options && options.IS_RECORD); | |
| 3099 | - var IS_ITERATOR = !!(options && options.IS_ITERATOR); | |
| 3100 | - var INTERRUPTED = !!(options && options.INTERRUPTED); | |
| 3101 | - var fn = bind(unboundFunction, that); | |
| 3102 | - var iterator, iterFn, index, length, result, next, step; | |
| 3103 | - | |
| 3104 | - var stop = function (condition) { | |
| 3105 | - if (iterator) iteratorClose(iterator, 'normal'); | |
| 3106 | - return new Result(true, condition); | |
| 3107 | - }; | |
| 3108 | - | |
| 3109 | - var callFn = function (value) { | |
| 3110 | - if (AS_ENTRIES) { | |
| 3111 | - anObject(value); | |
| 3112 | - return INTERRUPTED ? fn(value[0], value[1], stop) : fn(value[0], value[1]); | |
| 3113 | - } return INTERRUPTED ? fn(value, stop) : fn(value); | |
| 3114 | - }; | |
| 3115 | - | |
| 3116 | - if (IS_RECORD) { | |
| 3117 | - iterator = iterable.iterator; | |
| 3118 | - } else if (IS_ITERATOR) { | |
| 3119 | - iterator = iterable; | |
| 3120 | - } else { | |
| 3121 | - iterFn = getIteratorMethod(iterable); | |
| 3122 | - if (!iterFn) throw new $TypeError(tryToString(iterable) + ' is not iterable'); | |
| 3123 | - // optimisation for array iterators | |
| 3124 | - if (isArrayIteratorMethod(iterFn)) { | |
| 3125 | - for (index = 0, length = lengthOfArrayLike(iterable); length > index; index++) { | |
| 3126 | - result = callFn(iterable[index]); | |
| 3127 | - if (result && isPrototypeOf(ResultPrototype, result)) return result; | |
| 3128 | - } return new Result(false); | |
| 3129 | - } | |
| 3130 | - iterator = getIterator(iterable, iterFn); | |
| 3131 | - } | |
| 3132 | - | |
| 3133 | - next = IS_RECORD ? iterable.next : iterator.next; | |
| 3134 | - while (!(step = call(next, iterator)).done) { | |
| 3135 | - try { | |
| 3136 | - result = callFn(step.value); | |
| 3137 | - } catch (error) { | |
| 3138 | - iteratorClose(iterator, 'throw', error); | |
| 3139 | - } | |
| 3140 | - if (typeof result == 'object' && result && isPrototypeOf(ResultPrototype, result)) return result; | |
| 3141 | - } return new Result(false); | |
| 3142 | -}; | |
| 3143 | - | |
| 3144 | - | |
| 3145 | -/***/ }), | |
| 3146 | - | |
| 3147 | -/***/ "../node_modules/core-js/internals/iterator-close-all.js": | |
| 3148 | -/*!***************************************************************!*\ | |
| 3149 | - !*** ../node_modules/core-js/internals/iterator-close-all.js ***! | |
| 3150 | - \***************************************************************/ | |
| 3151 | -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 3152 | - | |
| 3153 | -"use strict"; | |
| 3154 | - | |
| 3155 | -var iteratorClose = __webpack_require__(/*! ../internals/iterator-close */ "../node_modules/core-js/internals/iterator-close.js"); | |
| 3156 | - | |
| 3157 | -module.exports = function (iters, kind, value) { | |
| 3158 | - for (var i = iters.length - 1; i >= 0; i--) { | |
| 3159 | - if (iters[i] === undefined) continue; | |
| 3160 | - try { | |
| 3161 | - value = iteratorClose(iters[i].iterator, kind, value); | |
| 3162 | - } catch (error) { | |
| 3163 | - kind = 'throw'; | |
| 3164 | - value = error; | |
| 3165 | - } | |
| 3166 | - } | |
| 3167 | - if (kind === 'throw') throw value; | |
| 3168 | - return value; | |
| 3169 | -}; | |
| 3170 | - | |
| 3171 | - | |
| 3172 | -/***/ }), | |
| 3173 | - | |
| 3174 | -/***/ "../node_modules/core-js/internals/iterator-close.js": | |
| 3175 | -/*!***********************************************************!*\ | |
| 3176 | - !*** ../node_modules/core-js/internals/iterator-close.js ***! | |
| 3177 | - \***********************************************************/ | |
| 3178 | -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 3179 | - | |
| 3180 | -"use strict"; | |
| 3181 | - | |
| 3182 | -var call = __webpack_require__(/*! ../internals/function-call */ "../node_modules/core-js/internals/function-call.js"); | |
| 3183 | -var anObject = __webpack_require__(/*! ../internals/an-object */ "../node_modules/core-js/internals/an-object.js"); | |
| 3184 | -var getMethod = __webpack_require__(/*! ../internals/get-method */ "../node_modules/core-js/internals/get-method.js"); | |
| 3185 | - | |
| 3186 | -module.exports = function (iterator, kind, value) { | |
| 3187 | - var innerResult, innerError; | |
| 3188 | - anObject(iterator); | |
| 3189 | - try { | |
| 3190 | - innerResult = getMethod(iterator, 'return'); | |
| 3191 | - if (!innerResult) { | |
| 3192 | - if (kind === 'throw') throw value; | |
| 3193 | - return value; | |
| 3194 | - } | |
| 3195 | - innerResult = call(innerResult, iterator); | |
| 3196 | - } catch (error) { | |
| 3197 | - innerError = true; | |
| 3198 | - innerResult = error; | |
| 3199 | - } | |
| 3200 | - if (kind === 'throw') throw value; | |
| 3201 | - if (innerError) throw innerResult; | |
| 3202 | - anObject(innerResult); | |
| 3203 | - return value; | |
| 3204 | -}; | |
| 3205 | - | |
| 3206 | - | |
| 3207 | -/***/ }), | |
| 3208 | - | |
| 3209 | -/***/ "../node_modules/core-js/internals/iterator-create-proxy.js": | |
| 3210 | -/*!******************************************************************!*\ | |
| 3211 | - !*** ../node_modules/core-js/internals/iterator-create-proxy.js ***! | |
| 3212 | - \******************************************************************/ | |
| 3213 | -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 3214 | - | |
| 3215 | -"use strict"; | |
| 3216 | - | |
| 3217 | -var call = __webpack_require__(/*! ../internals/function-call */ "../node_modules/core-js/internals/function-call.js"); | |
| 3218 | -var create = __webpack_require__(/*! ../internals/object-create */ "../node_modules/core-js/internals/object-create.js"); | |
| 3219 | -var createNonEnumerableProperty = __webpack_require__(/*! ../internals/create-non-enumerable-property */ "../node_modules/core-js/internals/create-non-enumerable-property.js"); | |
| 3220 | -var defineBuiltIns = __webpack_require__(/*! ../internals/define-built-ins */ "../node_modules/core-js/internals/define-built-ins.js"); | |
| 3221 | -var wellKnownSymbol = __webpack_require__(/*! ../internals/well-known-symbol */ "../node_modules/core-js/internals/well-known-symbol.js"); | |
| 3222 | -var InternalStateModule = __webpack_require__(/*! ../internals/internal-state */ "../node_modules/core-js/internals/internal-state.js"); | |
| 3223 | -var getMethod = __webpack_require__(/*! ../internals/get-method */ "../node_modules/core-js/internals/get-method.js"); | |
| 3224 | -var IteratorPrototype = (__webpack_require__(/*! ../internals/iterators-core */ "../node_modules/core-js/internals/iterators-core.js").IteratorPrototype); | |
| 3225 | -var createIterResultObject = __webpack_require__(/*! ../internals/create-iter-result-object */ "../node_modules/core-js/internals/create-iter-result-object.js"); | |
| 3226 | -var iteratorClose = __webpack_require__(/*! ../internals/iterator-close */ "../node_modules/core-js/internals/iterator-close.js"); | |
| 3227 | -var iteratorCloseAll = __webpack_require__(/*! ../internals/iterator-close-all */ "../node_modules/core-js/internals/iterator-close-all.js"); | |
| 3228 | - | |
| 3229 | -var TO_STRING_TAG = wellKnownSymbol('toStringTag'); | |
| 3230 | -var ITERATOR_HELPER = 'IteratorHelper'; | |
| 3231 | -var WRAP_FOR_VALID_ITERATOR = 'WrapForValidIterator'; | |
| 3232 | -var NORMAL = 'normal'; | |
| 3233 | -var THROW = 'throw'; | |
| 3234 | -var setInternalState = InternalStateModule.set; | |
| 3235 | - | |
| 3236 | -var createIteratorProxyPrototype = function (IS_ITERATOR) { | |
| 3237 | - var getInternalState = InternalStateModule.getterFor(IS_ITERATOR ? WRAP_FOR_VALID_ITERATOR : ITERATOR_HELPER); | |
| 3238 | - | |
| 3239 | - return defineBuiltIns(create(IteratorPrototype), { | |
| 3240 | - next: function next() { | |
| 3241 | - var state = getInternalState(this); | |
| 3242 | - // for simplification: | |
| 3243 | - // for `%WrapForValidIteratorPrototype%.next` or with `state.returnHandlerResult` our `nextHandler` returns `IterResultObject` | |
| 3244 | - // for `%IteratorHelperPrototype%.next` - just a value | |
| 3245 | - if (IS_ITERATOR) return state.nextHandler(); | |
| 3246 | - if (state.done) return createIterResultObject(undefined, true); | |
| 3247 | - try { | |
| 3248 | - var result = state.nextHandler(); | |
| 3249 | - return state.returnHandlerResult ? result : createIterResultObject(result, state.done); | |
| 3250 | - } catch (error) { | |
| 3251 | - state.done = true; | |
| 3252 | - throw error; | |
| 3253 | - } | |
| 3254 | - }, | |
| 3255 | - 'return': function () { | |
| 3256 | - var state = getInternalState(this); | |
| 3257 | - var iterator = state.iterator; | |
| 3258 | - state.done = true; | |
| 3259 | - if (IS_ITERATOR) { | |
| 3260 | - var returnMethod = getMethod(iterator, 'return'); | |
| 3261 | - return returnMethod ? call(returnMethod, iterator) : createIterResultObject(undefined, true); | |
| 3262 | - } | |
| 3263 | - if (state.inner) try { | |
| 3264 | - iteratorClose(state.inner.iterator, NORMAL); | |
| 3265 | - } catch (error) { | |
| 3266 | - return iteratorClose(iterator, THROW, error); | |
| 3267 | - } | |
| 3268 | - if (state.openIters) try { | |
| 3269 | - iteratorCloseAll(state.openIters, NORMAL); | |
| 3270 | - } catch (error) { | |
| 3271 | - return iteratorClose(iterator, THROW, error); | |
| 3272 | - } | |
| 3273 | - if (iterator) iteratorClose(iterator, NORMAL); | |
| 3274 | - return createIterResultObject(undefined, true); | |
| 3275 | - } | |
| 3276 | - }); | |
| 3277 | -}; | |
| 3278 | - | |
| 3279 | -var WrapForValidIteratorPrototype = createIteratorProxyPrototype(true); | |
| 3280 | -var IteratorHelperPrototype = createIteratorProxyPrototype(false); | |
| 3281 | - | |
| 3282 | -createNonEnumerableProperty(IteratorHelperPrototype, TO_STRING_TAG, 'Iterator Helper'); | |
| 3283 | - | |
| 3284 | -module.exports = function (nextHandler, IS_ITERATOR, RETURN_HANDLER_RESULT) { | |
| 3285 | - var IteratorProxy = function Iterator(record, state) { | |
| 3286 | - if (state) { | |
| 3287 | - state.iterator = record.iterator; | |
| 3288 | - state.next = record.next; | |
| 3289 | - } else state = record; | |
| 3290 | - state.type = IS_ITERATOR ? WRAP_FOR_VALID_ITERATOR : ITERATOR_HELPER; | |
| 3291 | - state.returnHandlerResult = !!RETURN_HANDLER_RESULT; | |
| 3292 | - state.nextHandler = nextHandler; | |
| 3293 | - state.counter = 0; | |
| 3294 | - state.done = false; | |
| 3295 | - setInternalState(this, state); | |
| 3296 | - }; | |
| 3297 | - | |
| 3298 | - IteratorProxy.prototype = IS_ITERATOR ? WrapForValidIteratorPrototype : IteratorHelperPrototype; | |
| 3299 | - | |
| 3300 | - return IteratorProxy; | |
| 3301 | -}; | |
| 3302 | - | |
| 3303 | - | |
| 3304 | -/***/ }), | |
| 3305 | - | |
| 3306 | -/***/ "../node_modules/core-js/internals/iterator-helper-throws-on-invalid-iterator.js": | |
| 3307 | -/*!***************************************************************************************!*\ | |
| 3308 | - !*** ../node_modules/core-js/internals/iterator-helper-throws-on-invalid-iterator.js ***! | |
| 3309 | - \***************************************************************************************/ | |
| 3310 | -/***/ ((module) => { | |
| 3311 | - | |
| 3312 | -"use strict"; | |
| 3313 | - | |
| 3314 | -// Should throw an error on invalid iterator | |
| 3315 | -// https://issues.chromium.org/issues/336839115 | |
| 3316 | -module.exports = function (methodName, argument) { | |
| 3317 | - // eslint-disable-next-line es/no-iterator -- required for testing | |
| 3318 | - var method = typeof Iterator == 'function' && Iterator.prototype[methodName]; | |
| 3319 | - if (method) try { | |
| 3320 | - method.call({ next: null }, argument).next(); | |
| 3321 | - } catch (error) { | |
| 3322 | - return true; | |
| 3323 | - } | |
| 3324 | -}; | |
| 3325 | - | |
| 3326 | - | |
| 3327 | -/***/ }), | |
| 3328 | - | |
| 3329 | -/***/ "../node_modules/core-js/internals/iterator-helper-without-closing-on-early-error.js": | |
| 3330 | -/*!*******************************************************************************************!*\ | |
| 3331 | - !*** ../node_modules/core-js/internals/iterator-helper-without-closing-on-early-error.js ***! | |
| 3332 | - \*******************************************************************************************/ | |
| 3333 | -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 3334 | - | |
| 3335 | -"use strict"; | |
| 3336 | - | |
| 3337 | -var globalThis = __webpack_require__(/*! ../internals/global-this */ "../node_modules/core-js/internals/global-this.js"); | |
| 3338 | - | |
| 3339 | -// https://github.com/tc39/ecma262/pull/3467 | |
| 3340 | -module.exports = function (METHOD_NAME, ExpectedError) { | |
| 3341 | - var Iterator = globalThis.Iterator; | |
| 3342 | - var IteratorPrototype = Iterator && Iterator.prototype; | |
| 3343 | - var method = IteratorPrototype && IteratorPrototype[METHOD_NAME]; | |
| 3344 | - | |
| 3345 | - var CLOSED = false; | |
| 3346 | - | |
| 3347 | - if (method) try { | |
| 3348 | - method.call({ | |
| 3349 | - next: function () { return { done: true }; }, | |
| 3350 | - 'return': function () { CLOSED = true; } | |
| 3351 | - }, -1); | |
| 3352 | - } catch (error) { | |
| 3353 | - // https://bugs.webkit.org/show_bug.cgi?id=291195 | |
| 3354 | - if (!(error instanceof ExpectedError)) CLOSED = false; | |
| 3355 | - } | |
| 3356 | - | |
| 3357 | - if (!CLOSED) return method; | |
| 3358 | -}; | |
| 3359 | - | |
| 3360 | - | |
| 3361 | -/***/ }), | |
| 3362 | - | |
| 3363 | -/***/ "../node_modules/core-js/internals/iterators-core.js": | |
| 3364 | -/*!***********************************************************!*\ | |
| 3365 | - !*** ../node_modules/core-js/internals/iterators-core.js ***! | |
| 3366 | - \***********************************************************/ | |
| 3367 | -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 3368 | - | |
| 3369 | -"use strict"; | |
| 3370 | - | |
| 3371 | -var fails = __webpack_require__(/*! ../internals/fails */ "../node_modules/core-js/internals/fails.js"); | |
| 3372 | -var isCallable = __webpack_require__(/*! ../internals/is-callable */ "../node_modules/core-js/internals/is-callable.js"); | |
| 3373 | -var isObject = __webpack_require__(/*! ../internals/is-object */ "../node_modules/core-js/internals/is-object.js"); | |
| 3374 | -var create = __webpack_require__(/*! ../internals/object-create */ "../node_modules/core-js/internals/object-create.js"); | |
| 3375 | -var getPrototypeOf = __webpack_require__(/*! ../internals/object-get-prototype-of */ "../node_modules/core-js/internals/object-get-prototype-of.js"); | |
| 3376 | -var defineBuiltIn = __webpack_require__(/*! ../internals/define-built-in */ "../node_modules/core-js/internals/define-built-in.js"); | |
| 3377 | -var wellKnownSymbol = __webpack_require__(/*! ../internals/well-known-symbol */ "../node_modules/core-js/internals/well-known-symbol.js"); | |
| 3378 | -var IS_PURE = __webpack_require__(/*! ../internals/is-pure */ "../node_modules/core-js/internals/is-pure.js"); | |
| 3379 | - | |
| 3380 | -var ITERATOR = wellKnownSymbol('iterator'); | |
| 3381 | -var BUGGY_SAFARI_ITERATORS = false; | |
| 3382 | - | |
| 3383 | -// `%IteratorPrototype%` object | |
| 3384 | -// https://tc39.es/ecma262/#sec-%iteratorprototype%-object | |
| 3385 | -var IteratorPrototype, PrototypeOfArrayIteratorPrototype, arrayIterator; | |
| 3386 | - | |
| 3387 | -/* eslint-disable es/no-array-prototype-keys -- safe */ | |
| 3388 | -if ([].keys) { | |
| 3389 | - arrayIterator = [].keys(); | |
| 3390 | - // Safari 8 has buggy iterators w/o `next` | |
| 3391 | - if (!('next' in arrayIterator)) BUGGY_SAFARI_ITERATORS = true; | |
| 3392 | - else { | |
| 3393 | - PrototypeOfArrayIteratorPrototype = getPrototypeOf(getPrototypeOf(arrayIterator)); | |
| 3394 | - if (PrototypeOfArrayIteratorPrototype !== Object.prototype) IteratorPrototype = PrototypeOfArrayIteratorPrototype; | |
| 3395 | - } | |
| 3396 | -} | |
| 3397 | - | |
| 3398 | -var NEW_ITERATOR_PROTOTYPE = !isObject(IteratorPrototype) || fails(function () { | |
| 3399 | - var test = {}; | |
| 3400 | - // FF44- legacy iterators case | |
| 3401 | - return IteratorPrototype[ITERATOR].call(test) !== test; | |
| 3402 | -}); | |
| 3403 | - | |
| 3404 | -if (NEW_ITERATOR_PROTOTYPE) IteratorPrototype = {}; | |
| 3405 | -else if (IS_PURE) IteratorPrototype = create(IteratorPrototype); | |
| 3406 | - | |
| 3407 | -// `%IteratorPrototype%[@@iterator]()` method | |
| 3408 | -// https://tc39.es/ecma262/#sec-%iteratorprototype%-@@iterator | |
| 3409 | -if (!isCallable(IteratorPrototype[ITERATOR])) { | |
| 3410 | - defineBuiltIn(IteratorPrototype, ITERATOR, function () { | |
| 3411 | - return this; | |
| 3412 | - }); | |
| 3413 | -} | |
| 3414 | - | |
| 3415 | -module.exports = { | |
| 3416 | - IteratorPrototype: IteratorPrototype, | |
| 3417 | - BUGGY_SAFARI_ITERATORS: BUGGY_SAFARI_ITERATORS | |
| 3418 | -}; | |
| 3419 | - | |
| 3420 | - | |
| 3421 | -/***/ }), | |
| 3422 | - | |
| 3423 | -/***/ "../node_modules/core-js/internals/iterators.js": | |
| 3424 | -/*!******************************************************!*\ | |
| 3425 | - !*** ../node_modules/core-js/internals/iterators.js ***! | |
| 3426 | - \******************************************************/ | |
| 3427 | -/***/ ((module) => { | |
| 3428 | - | |
| 3429 | -"use strict"; | |
| 3430 | - | |
| 3431 | -module.exports = {}; | |
| 3432 | - | |
| 3433 | - | |
| 3434 | -/***/ }), | |
| 3435 | - | |
| 3436 | 4412 | /***/ "../node_modules/core-js/internals/length-of-array-like.js": |
| 3437 | 4413 | /*!*****************************************************************!*\ |
| 3438 | 4414 | !*** ../node_modules/core-js/internals/length-of-array-like.js ***! |
| 3439 | 4415 | \*****************************************************************/ |
| @@ -3485,9 +4461,9 @@ | ||
| 3485 | 4461 | var TEMPLATE = String(String).split('String'); |
| 3486 | 4462 | |
| 3487 | 4463 | var makeBuiltIn = module.exports = function (value, name, options) { |
| 3488 | 4464 | if (stringSlice($String(name), 0, 7) === 'Symbol(') { |
| 3489 | - name = '[' + replace($String(name), /^Symbol\(([^)]*)\).*$/, '$1') + ']'; | |
| 4465 | + name = '[' + replace($String(name), /^Symbol\(([^)]*)\)/, '$1') + ']'; | |
| 3490 | 4466 | } |
| 3491 | 4467 | if (options && options.getter) name = 'get ' + name; |
| 3492 | 4468 | if (options && options.setter) name = 'set ' + name; |
| 3493 | 4469 | if (!hasOwn(value, 'name') || (CONFIGURABLE_FUNCTION_NAME && value.name !== name)) { |
| @@ -3539,136 +4515,25 @@ | ||
| 3539 | 4515 | |
| 3540 | 4516 | |
| 3541 | 4517 | /***/ }), |
| 3542 | 4518 | |
| 3543 | -/***/ "../node_modules/core-js/internals/object-create.js": | |
| 3544 | -/*!**********************************************************!*\ | |
| 3545 | - !*** ../node_modules/core-js/internals/object-create.js ***! | |
| 3546 | - \**********************************************************/ | |
| 4519 | +/***/ "../node_modules/core-js/internals/normalize-string-argument.js": | |
| 4520 | +/*!**********************************************************************!*\ | |
| 4521 | + !*** ../node_modules/core-js/internals/normalize-string-argument.js ***! | |
| 4522 | + \**********************************************************************/ | |
| 3547 | 4523 | /***/ ((module, __unused_webpack_exports, __webpack_require__) => { |
| 3548 | 4524 | |
| 3549 | 4525 | "use strict"; |
| 3550 | 4526 | |
| 3551 | -/* global ActiveXObject -- old IE, WSH */ | |
| 3552 | -var anObject = __webpack_require__(/*! ../internals/an-object */ "../node_modules/core-js/internals/an-object.js"); | |
| 3553 | -var definePropertiesModule = __webpack_require__(/*! ../internals/object-define-properties */ "../node_modules/core-js/internals/object-define-properties.js"); | |
| 3554 | -var enumBugKeys = __webpack_require__(/*! ../internals/enum-bug-keys */ "../node_modules/core-js/internals/enum-bug-keys.js"); | |
| 3555 | -var hiddenKeys = __webpack_require__(/*! ../internals/hidden-keys */ "../node_modules/core-js/internals/hidden-keys.js"); | |
| 3556 | -var html = __webpack_require__(/*! ../internals/html */ "../node_modules/core-js/internals/html.js"); | |
| 3557 | -var documentCreateElement = __webpack_require__(/*! ../internals/document-create-element */ "../node_modules/core-js/internals/document-create-element.js"); | |
| 3558 | -var sharedKey = __webpack_require__(/*! ../internals/shared-key */ "../node_modules/core-js/internals/shared-key.js"); | |
| 4527 | +var toString = __webpack_require__(/*! ../internals/to-string */ "../node_modules/core-js/internals/to-string.js"); | |
| 3559 | 4528 | |
| 3560 | -var GT = '>'; | |
| 3561 | -var LT = '<'; | |
| 3562 | -var PROTOTYPE = 'prototype'; | |
| 3563 | -var SCRIPT = 'script'; | |
| 3564 | -var IE_PROTO = sharedKey('IE_PROTO'); | |
| 3565 | - | |
| 3566 | -var EmptyConstructor = function () { /* empty */ }; | |
| 3567 | - | |
| 3568 | -var scriptTag = function (content) { | |
| 3569 | - return LT + SCRIPT + GT + content + LT + '/' + SCRIPT + GT; | |
| 4529 | +module.exports = function (argument, $default) { | |
| 4530 | + return argument === undefined ? arguments.length < 2 ? '' : $default : toString(argument); | |
| 3570 | 4531 | }; |
| 3571 | 4532 | |
| 3572 | -// Create object with fake `null` prototype: use ActiveX Object with cleared prototype | |
| 3573 | -var NullProtoObjectViaActiveX = function (activeXDocument) { | |
| 3574 | - activeXDocument.write(scriptTag('')); | |
| 3575 | - activeXDocument.close(); | |
| 3576 | - var temp = activeXDocument.parentWindow.Object; | |
| 3577 | - // eslint-disable-next-line no-useless-assignment -- avoid memory leak | |
| 3578 | - activeXDocument = null; | |
| 3579 | - return temp; | |
| 3580 | -}; | |
| 3581 | 4533 | |
| 3582 | -// Create object with fake `null` prototype: use iframe Object with cleared prototype | |
| 3583 | -var NullProtoObjectViaIFrame = function () { | |
| 3584 | - // Thrash, waste and sodomy: IE GC bug | |
| 3585 | - var iframe = documentCreateElement('iframe'); | |
| 3586 | - var JS = 'java' + SCRIPT + ':'; | |
| 3587 | - var iframeDocument; | |
| 3588 | - iframe.style.display = 'none'; | |
| 3589 | - html.appendChild(iframe); | |
| 3590 | - // https://github.com/zloirock/core-js/issues/475 | |
| 3591 | - iframe.src = String(JS); | |
| 3592 | - iframeDocument = iframe.contentWindow.document; | |
| 3593 | - iframeDocument.open(); | |
| 3594 | - iframeDocument.write(scriptTag('document.F=Object')); | |
| 3595 | - iframeDocument.close(); | |
| 3596 | - return iframeDocument.F; | |
| 3597 | -}; | |
| 3598 | - | |
| 3599 | -// Check for document.domain and active x support | |
| 3600 | -// No need to use active x approach when document.domain is not set | |
| 3601 | -// see https://github.com/es-shims/es5-shim/issues/150 | |
| 3602 | -// variation of https://github.com/kitcambridge/es5-shim/commit/4f738ac066346 | |
| 3603 | -// avoid IE GC bug | |
| 3604 | -var activeXDocument; | |
| 3605 | -var NullProtoObject = function () { | |
| 3606 | - try { | |
| 3607 | - activeXDocument = new ActiveXObject('htmlfile'); | |
| 3608 | - } catch (error) { /* ignore */ } | |
| 3609 | - NullProtoObject = typeof document != 'undefined' | |
| 3610 | - ? document.domain && activeXDocument | |
| 3611 | - ? NullProtoObjectViaActiveX(activeXDocument) // old IE | |
| 3612 | - : NullProtoObjectViaIFrame() | |
| 3613 | - : NullProtoObjectViaActiveX(activeXDocument); // WSH | |
| 3614 | - var length = enumBugKeys.length; | |
| 3615 | - while (length--) delete NullProtoObject[PROTOTYPE][enumBugKeys[length]]; | |
| 3616 | - return NullProtoObject(); | |
| 3617 | -}; | |
| 3618 | - | |
| 3619 | -hiddenKeys[IE_PROTO] = true; | |
| 3620 | - | |
| 3621 | -// `Object.create` method | |
| 3622 | -// https://tc39.es/ecma262/#sec-object.create | |
| 3623 | -// eslint-disable-next-line es/no-object-create -- safe | |
| 3624 | -module.exports = Object.create || function create(O, Properties) { | |
| 3625 | - var result; | |
| 3626 | - if (O !== null) { | |
| 3627 | - EmptyConstructor[PROTOTYPE] = anObject(O); | |
| 3628 | - result = new EmptyConstructor(); | |
| 3629 | - EmptyConstructor[PROTOTYPE] = null; | |
| 3630 | - // add "__proto__" for Object.getPrototypeOf polyfill | |
| 3631 | - result[IE_PROTO] = O; | |
| 3632 | - } else result = NullProtoObject(); | |
| 3633 | - return Properties === undefined ? result : definePropertiesModule.f(result, Properties); | |
| 3634 | -}; | |
| 3635 | - | |
| 3636 | - | |
| 3637 | 4534 | /***/ }), |
| 3638 | 4535 | |
| 3639 | -/***/ "../node_modules/core-js/internals/object-define-properties.js": | |
| 3640 | -/*!*********************************************************************!*\ | |
| 3641 | - !*** ../node_modules/core-js/internals/object-define-properties.js ***! | |
| 3642 | - \*********************************************************************/ | |
| 3643 | -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { | |
| 3644 | - | |
| 3645 | -"use strict"; | |
| 3646 | - | |
| 3647 | -var DESCRIPTORS = __webpack_require__(/*! ../internals/descriptors */ "../node_modules/core-js/internals/descriptors.js"); | |
| 3648 | -var V8_PROTOTYPE_DEFINE_BUG = __webpack_require__(/*! ../internals/v8-prototype-define-bug */ "../node_modules/core-js/internals/v8-prototype-define-bug.js"); | |
| 3649 | -var definePropertyModule = __webpack_require__(/*! ../internals/object-define-property */ "../node_modules/core-js/internals/object-define-property.js"); | |
| 3650 | -var anObject = __webpack_require__(/*! ../internals/an-object */ "../node_modules/core-js/internals/an-object.js"); | |
| 3651 | -var toIndexedObject = __webpack_require__(/*! ../internals/to-indexed-object */ "../node_modules/core-js/internals/to-indexed-object.js"); | |
| 3652 | -var objectKeys = __webpack_require__(/*! ../internals/object-keys */ "../node_modules/core-js/internals/object-keys.js"); | |
| 3653 | - | |
| 3654 | -// `Object.defineProperties` method | |
| 3655 | -// https://tc39.es/ecma262/#sec-object.defineproperties | |
| 3656 | -// eslint-disable-next-line es/no-object-defineproperties -- safe | |
| 3657 | -exports.f = DESCRIPTORS && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) { | |
| 3658 | - anObject(O); | |
| 3659 | - var props = toIndexedObject(Properties); | |
| 3660 | - var keys = objectKeys(Properties); | |
| 3661 | - var length = keys.length; | |
| 3662 | - var index = 0; | |
| 3663 | - var key; | |
| 3664 | - while (length > index) definePropertyModule.f(O, key = keys[index++], props[key]); | |
| 3665 | - return O; | |
| 3666 | -}; | |
| 3667 | - | |
| 3668 | - | |
| 3669 | -/***/ }), | |
| 3670 | - | |
| 3671 | 4536 | /***/ "../node_modules/core-js/internals/object-define-property.js": |
| 3672 | 4537 | /*!*******************************************************************!*\ |
| 3673 | 4538 | !*** ../node_modules/core-js/internals/object-define-property.js ***! |
| 3674 | 4539 | \*******************************************************************/ |
| @@ -3714,9 +4579,9 @@ | ||
| 3714 | 4579 | anObject(Attributes); |
| 3715 | 4580 | if (IE8_DOM_DEFINE) try { |
| 3716 | 4581 | return $defineProperty(O, P, Attributes); |
| 3717 | 4582 | } catch (error) { /* empty */ } |
| 3718 | - if ('get' in Attributes || 'set' in Attributes) throw new $TypeError('Accessors not supported'); | |
| 4583 | + if ('get' in Attributes || 'set' in Attributes) throw $TypeError('Accessors not supported'); | |
| 3719 | 4584 | if ('value' in Attributes) O[P] = Attributes.value; |
| 3720 | 4585 | return O; |
| 3721 | 4586 | }; |
| 3722 | 4587 | |
| @@ -3793,41 +4658,8 @@ | ||
| 3793 | 4658 | |
| 3794 | 4659 | |
| 3795 | 4660 | /***/ }), |
| 3796 | 4661 | |
| 3797 | -/***/ "../node_modules/core-js/internals/object-get-prototype-of.js": | |
| 3798 | -/*!********************************************************************!*\ | |
| 3799 | - !*** ../node_modules/core-js/internals/object-get-prototype-of.js ***! | |
| 3800 | - \********************************************************************/ | |
| 3801 | -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 3802 | - | |
| 3803 | -"use strict"; | |
| 3804 | - | |
| 3805 | -var hasOwn = __webpack_require__(/*! ../internals/has-own-property */ "../node_modules/core-js/internals/has-own-property.js"); | |
| 3806 | -var isCallable = __webpack_require__(/*! ../internals/is-callable */ "../node_modules/core-js/internals/is-callable.js"); | |
| 3807 | -var toObject = __webpack_require__(/*! ../internals/to-object */ "../node_modules/core-js/internals/to-object.js"); | |
| 3808 | -var sharedKey = __webpack_require__(/*! ../internals/shared-key */ "../node_modules/core-js/internals/shared-key.js"); | |
| 3809 | -var CORRECT_PROTOTYPE_GETTER = __webpack_require__(/*! ../internals/correct-prototype-getter */ "../node_modules/core-js/internals/correct-prototype-getter.js"); | |
| 3810 | - | |
| 3811 | -var IE_PROTO = sharedKey('IE_PROTO'); | |
| 3812 | -var $Object = Object; | |
| 3813 | -var ObjectPrototype = $Object.prototype; | |
| 3814 | - | |
| 3815 | -// `Object.getPrototypeOf` method | |
| 3816 | -// https://tc39.es/ecma262/#sec-object.getprototypeof | |
| 3817 | -// eslint-disable-next-line es/no-object-getprototypeof -- safe | |
| 3818 | -module.exports = CORRECT_PROTOTYPE_GETTER ? $Object.getPrototypeOf : function (O) { | |
| 3819 | - var object = toObject(O); | |
| 3820 | - if (hasOwn(object, IE_PROTO)) return object[IE_PROTO]; | |
| 3821 | - var constructor = object.constructor; | |
| 3822 | - if (isCallable(constructor) && object instanceof constructor) { | |
| 3823 | - return constructor.prototype; | |
| 3824 | - } return object instanceof $Object ? ObjectPrototype : null; | |
| 3825 | -}; | |
| 3826 | - | |
| 3827 | - | |
| 3828 | -/***/ }), | |
| 3829 | - | |
| 3830 | 4662 | /***/ "../node_modules/core-js/internals/object-is-prototype-of.js": |
| 3831 | 4663 | /*!*******************************************************************!*\ |
| 3832 | 4664 | !*** ../node_modules/core-js/internals/object-is-prototype-of.js ***! |
| 3833 | 4665 | \*******************************************************************/ |
| @@ -3873,29 +4705,8 @@ | ||
| 3873 | 4705 | |
| 3874 | 4706 | |
| 3875 | 4707 | /***/ }), |
| 3876 | 4708 | |
| 3877 | -/***/ "../node_modules/core-js/internals/object-keys.js": | |
| 3878 | -/*!********************************************************!*\ | |
| 3879 | - !*** ../node_modules/core-js/internals/object-keys.js ***! | |
| 3880 | - \********************************************************/ | |
| 3881 | -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 3882 | - | |
| 3883 | -"use strict"; | |
| 3884 | - | |
| 3885 | -var internalObjectKeys = __webpack_require__(/*! ../internals/object-keys-internal */ "../node_modules/core-js/internals/object-keys-internal.js"); | |
| 3886 | -var enumBugKeys = __webpack_require__(/*! ../internals/enum-bug-keys */ "../node_modules/core-js/internals/enum-bug-keys.js"); | |
| 3887 | - | |
| 3888 | -// `Object.keys` method | |
| 3889 | -// https://tc39.es/ecma262/#sec-object.keys | |
| 3890 | -// eslint-disable-next-line es/no-object-keys -- safe | |
| 3891 | -module.exports = Object.keys || function keys(O) { | |
| 3892 | - return internalObjectKeys(O, enumBugKeys); | |
| 3893 | -}; | |
| 3894 | - | |
| 3895 | - | |
| 3896 | -/***/ }), | |
| 3897 | - | |
| 3898 | 4709 | /***/ "../node_modules/core-js/internals/object-property-is-enumerable.js": |
| 3899 | 4710 | /*!**************************************************************************!*\ |
| 3900 | 4711 | !*** ../node_modules/core-js/internals/object-property-is-enumerable.js ***! |
| 3901 | 4712 | \**************************************************************************/ |
| @@ -3919,8 +4730,46 @@ | ||
| 3919 | 4730 | |
| 3920 | 4731 | |
| 3921 | 4732 | /***/ }), |
| 3922 | 4733 | |
| 4734 | +/***/ "../node_modules/core-js/internals/object-set-prototype-of.js": | |
| 4735 | +/*!********************************************************************!*\ | |
| 4736 | + !*** ../node_modules/core-js/internals/object-set-prototype-of.js ***! | |
| 4737 | + \********************************************************************/ | |
| 4738 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 4739 | + | |
| 4740 | +"use strict"; | |
| 4741 | + | |
| 4742 | +/* eslint-disable no-proto -- safe */ | |
| 4743 | +var uncurryThisAccessor = __webpack_require__(/*! ../internals/function-uncurry-this-accessor */ "../node_modules/core-js/internals/function-uncurry-this-accessor.js"); | |
| 4744 | +var anObject = __webpack_require__(/*! ../internals/an-object */ "../node_modules/core-js/internals/an-object.js"); | |
| 4745 | +var aPossiblePrototype = __webpack_require__(/*! ../internals/a-possible-prototype */ "../node_modules/core-js/internals/a-possible-prototype.js"); | |
| 4746 | + | |
| 4747 | +// `Object.setPrototypeOf` method | |
| 4748 | +// https://tc39.es/ecma262/#sec-object.setprototypeof | |
| 4749 | +// Works with __proto__ only. Old v8 can't work with null proto objects. | |
| 4750 | +// eslint-disable-next-line es/no-object-setprototypeof -- safe | |
| 4751 | +module.exports = Object.setPrototypeOf || ('__proto__' in {} ? function () { | |
| 4752 | + var CORRECT_SETTER = false; | |
| 4753 | + var test = {}; | |
| 4754 | + var setter; | |
| 4755 | + try { | |
| 4756 | + setter = uncurryThisAccessor(Object.prototype, '__proto__', 'set'); | |
| 4757 | + setter(test, []); | |
| 4758 | + CORRECT_SETTER = test instanceof Array; | |
| 4759 | + } catch (error) { /* empty */ } | |
| 4760 | + return function setPrototypeOf(O, proto) { | |
| 4761 | + anObject(O); | |
| 4762 | + aPossiblePrototype(proto); | |
| 4763 | + if (CORRECT_SETTER) setter(O, proto); | |
| 4764 | + else O.__proto__ = proto; | |
| 4765 | + return O; | |
| 4766 | + }; | |
| 4767 | +}() : undefined); | |
| 4768 | + | |
| 4769 | + | |
| 4770 | +/***/ }), | |
| 4771 | + | |
| 3923 | 4772 | /***/ "../node_modules/core-js/internals/ordinary-to-primitive.js": |
| 3924 | 4773 | /*!******************************************************************!*\ |
| 3925 | 4774 | !*** ../node_modules/core-js/internals/ordinary-to-primitive.js ***! |
| 3926 | 4775 | \******************************************************************/ |
| @@ -3940,9 +4789,9 @@ | ||
| 3940 | 4789 | var fn, val; |
| 3941 | 4790 | if (pref === 'string' && isCallable(fn = input.toString) && !isObject(val = call(fn, input))) return val; |
| 3942 | 4791 | if (isCallable(fn = input.valueOf) && !isObject(val = call(fn, input))) return val; |
| 3943 | 4792 | if (pref !== 'string' && isCallable(fn = input.toString) && !isObject(val = call(fn, input))) return val; |
| 3944 | - throw new $TypeError("Can't convert object to primitive value"); | |
| 4793 | + throw $TypeError("Can't convert object to primitive value"); | |
| 3945 | 4794 | }; |
| 3946 | 4795 | |
| 3947 | 4796 | |
| 3948 | 4797 | /***/ }), |
| @@ -3972,8 +4821,29 @@ | ||
| 3972 | 4821 | |
| 3973 | 4822 | |
| 3974 | 4823 | /***/ }), |
| 3975 | 4824 | |
| 4825 | +/***/ "../node_modules/core-js/internals/proxy-accessor.js": | |
| 4826 | +/*!***********************************************************!*\ | |
| 4827 | + !*** ../node_modules/core-js/internals/proxy-accessor.js ***! | |
| 4828 | + \***********************************************************/ | |
| 4829 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 4830 | + | |
| 4831 | +"use strict"; | |
| 4832 | + | |
| 4833 | +var defineProperty = (__webpack_require__(/*! ../internals/object-define-property */ "../node_modules/core-js/internals/object-define-property.js").f); | |
| 4834 | + | |
| 4835 | +module.exports = function (Target, Source, key) { | |
| 4836 | + key in Target || defineProperty(Target, key, { | |
| 4837 | + configurable: true, | |
| 4838 | + get: function () { return Source[key]; }, | |
| 4839 | + set: function (it) { Source[key] = it; } | |
| 4840 | + }); | |
| 4841 | +}; | |
| 4842 | + | |
| 4843 | + | |
| 4844 | +/***/ }), | |
| 4845 | + | |
| 3976 | 4846 | /***/ "../node_modules/core-js/internals/require-object-coercible.js": |
| 3977 | 4847 | /*!*********************************************************************!*\ |
| 3978 | 4848 | !*** ../node_modules/core-js/internals/require-object-coercible.js ***! |
| 3979 | 4849 | \*********************************************************************/ |
| @@ -3987,9 +4857,9 @@ | ||
| 3987 | 4857 | |
| 3988 | 4858 | // `RequireObjectCoercible` abstract operation |
| 3989 | 4859 | // https://tc39.es/ecma262/#sec-requireobjectcoercible |
| 3990 | 4860 | module.exports = function (it) { |
| 3991 | - if (isNullOrUndefined(it)) throw new $TypeError("Can't call method on " + it); | |
| 4861 | + if (isNullOrUndefined(it)) throw $TypeError("Can't call method on " + it); | |
| 3992 | 4862 | return it; |
| 3993 | 4863 | }; |
| 3994 | 4864 | |
| 3995 | 4865 | |
| @@ -4022,22 +4892,15 @@ | ||
| 4022 | 4892 | /***/ ((module, __unused_webpack_exports, __webpack_require__) => { |
| 4023 | 4893 | |
| 4024 | 4894 | "use strict"; |
| 4025 | 4895 | |
| 4026 | -var IS_PURE = __webpack_require__(/*! ../internals/is-pure */ "../node_modules/core-js/internals/is-pure.js"); | |
| 4027 | -var globalThis = __webpack_require__(/*! ../internals/global-this */ "../node_modules/core-js/internals/global-this.js"); | |
| 4896 | +var global = __webpack_require__(/*! ../internals/global */ "../node_modules/core-js/internals/global.js"); | |
| 4028 | 4897 | var defineGlobalProperty = __webpack_require__(/*! ../internals/define-global-property */ "../node_modules/core-js/internals/define-global-property.js"); |
| 4029 | 4898 | |
| 4030 | 4899 | var SHARED = '__core-js_shared__'; |
| 4031 | -var store = module.exports = globalThis[SHARED] || defineGlobalProperty(SHARED, {}); | |
| 4900 | +var store = global[SHARED] || defineGlobalProperty(SHARED, {}); | |
| 4032 | 4901 | |
| 4033 | -(store.versions || (store.versions = [])).push({ | |
| 4034 | - version: '3.46.0', | |
| 4035 | - mode: IS_PURE ? 'pure' : 'global', | |
| 4036 | - copyright: '© 2014-2025 Denis Pushkarev (zloirock.ru), 2025 CoreJS Company (core-js.io)', | |
| 4037 | - license: 'https://github.com/zloirock/core-js/blob/v3.46.0/LICENSE', | |
| 4038 | - source: 'https://github.com/zloirock/core-js' | |
| 4039 | -}); | |
| 4902 | +module.exports = store; | |
| 4040 | 4903 | |
| 4041 | 4904 | |
| 4042 | 4905 | /***/ }), |
| 4043 | 4906 | |
| @@ -4048,13 +4911,20 @@ | ||
| 4048 | 4911 | /***/ ((module, __unused_webpack_exports, __webpack_require__) => { |
| 4049 | 4912 | |
| 4050 | 4913 | "use strict"; |
| 4051 | 4914 | |
| 4915 | +var IS_PURE = __webpack_require__(/*! ../internals/is-pure */ "../node_modules/core-js/internals/is-pure.js"); | |
| 4052 | 4916 | var store = __webpack_require__(/*! ../internals/shared-store */ "../node_modules/core-js/internals/shared-store.js"); |
| 4053 | 4917 | |
| 4054 | -module.exports = function (key, value) { | |
| 4055 | - return store[key] || (store[key] = value || {}); | |
| 4056 | -}; | |
| 4918 | +(module.exports = function (key, value) { | |
| 4919 | + return store[key] || (store[key] = value !== undefined ? value : {}); | |
| 4920 | +})('versions', []).push({ | |
| 4921 | + version: '3.32.0', | |
| 4922 | + mode: IS_PURE ? 'pure' : 'global', | |
| 4923 | + copyright: '© 2014-2023 Denis Pushkarev (zloirock.ru)', | |
| 4924 | + license: 'https://github.com/zloirock/core-js/blob/v3.32.0/LICENSE', | |
| 4925 | + source: 'https://github.com/zloirock/core-js' | |
| 4926 | +}); | |
| 4057 | 4927 | |
| 4058 | 4928 | |
| 4059 | 4929 | /***/ }), |
| 4060 | 4930 | |
| @@ -4066,17 +4936,17 @@ | ||
| 4066 | 4936 | |
| 4067 | 4937 | "use strict"; |
| 4068 | 4938 | |
| 4069 | 4939 | /* eslint-disable es/no-symbol -- required for testing */ |
| 4070 | -var V8_VERSION = __webpack_require__(/*! ../internals/environment-v8-version */ "../node_modules/core-js/internals/environment-v8-version.js"); | |
| 4940 | +var V8_VERSION = __webpack_require__(/*! ../internals/engine-v8-version */ "../node_modules/core-js/internals/engine-v8-version.js"); | |
| 4071 | 4941 | var fails = __webpack_require__(/*! ../internals/fails */ "../node_modules/core-js/internals/fails.js"); |
| 4072 | -var globalThis = __webpack_require__(/*! ../internals/global-this */ "../node_modules/core-js/internals/global-this.js"); | |
| 4942 | +var global = __webpack_require__(/*! ../internals/global */ "../node_modules/core-js/internals/global.js"); | |
| 4073 | 4943 | |
| 4074 | -var $String = globalThis.String; | |
| 4944 | +var $String = global.String; | |
| 4075 | 4945 | |
| 4076 | 4946 | // eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing |
| 4077 | 4947 | module.exports = !!Object.getOwnPropertySymbols && !fails(function () { |
| 4078 | - var symbol = Symbol('symbol detection'); | |
| 4948 | + var symbol = Symbol(); | |
| 4079 | 4949 | // Chrome 38 Symbol has incorrect toString conversion |
| 4080 | 4950 | // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances |
| 4081 | 4951 | // nb: Do not call `String` directly to avoid this being optimized out to `symbol+''` which will, |
| 4082 | 4952 | // of course, fail. |
| @@ -4166,10 +5036,9 @@ | ||
| 4166 | 5036 | |
| 4167 | 5037 | // `ToLength` abstract operation |
| 4168 | 5038 | // https://tc39.es/ecma262/#sec-tolength |
| 4169 | 5039 | module.exports = function (argument) { |
| 4170 | - var len = toIntegerOrInfinity(argument); | |
| 4171 | - return len > 0 ? min(len, 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991 | |
| 5040 | + return argument > 0 ? min(toIntegerOrInfinity(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991 | |
| 4172 | 5041 | }; |
| 4173 | 5042 | |
| 4174 | 5043 | |
| 4175 | 5044 | /***/ }), |
| @@ -4222,9 +5091,9 @@ | ||
| 4222 | 5091 | if (exoticToPrim) { |
| 4223 | 5092 | if (pref === undefined) pref = 'default'; |
| 4224 | 5093 | result = call(exoticToPrim, input, pref); |
| 4225 | 5094 | if (!isObject(result) || isSymbol(result)) return result; |
| 4226 | - throw new $TypeError("Can't convert object to primitive value"); | |
| 5095 | + throw $TypeError("Can't convert object to primitive value"); | |
| 4227 | 5096 | } |
| 4228 | 5097 | if (pref === undefined) pref = 'number'; |
| 4229 | 5098 | return ordinaryToPrimitive(input, pref); |
| 4230 | 5099 | }; |
| @@ -4272,8 +5141,28 @@ | ||
| 4272 | 5141 | |
| 4273 | 5142 | |
| 4274 | 5143 | /***/ }), |
| 4275 | 5144 | |
| 5145 | +/***/ "../node_modules/core-js/internals/to-string.js": | |
| 5146 | +/*!******************************************************!*\ | |
| 5147 | + !*** ../node_modules/core-js/internals/to-string.js ***! | |
| 5148 | + \******************************************************/ | |
| 5149 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 5150 | + | |
| 5151 | +"use strict"; | |
| 5152 | + | |
| 5153 | +var classof = __webpack_require__(/*! ../internals/classof */ "../node_modules/core-js/internals/classof.js"); | |
| 5154 | + | |
| 5155 | +var $String = String; | |
| 5156 | + | |
| 5157 | +module.exports = function (argument) { | |
| 5158 | + if (classof(argument) === 'Symbol') throw TypeError('Cannot convert a Symbol value to a string'); | |
| 5159 | + return $String(argument); | |
| 5160 | +}; | |
| 5161 | + | |
| 5162 | + | |
| 5163 | +/***/ }), | |
| 5164 | + | |
| 4276 | 5165 | /***/ "../node_modules/core-js/internals/try-to-string.js": |
| 4277 | 5166 | /*!**********************************************************!*\ |
| 4278 | 5167 | !*** ../node_modules/core-js/internals/try-to-string.js ***! |
| 4279 | 5168 | \**********************************************************/ |
| @@ -4305,9 +5194,9 @@ | ||
| 4305 | 5194 | var uncurryThis = __webpack_require__(/*! ../internals/function-uncurry-this */ "../node_modules/core-js/internals/function-uncurry-this.js"); |
| 4306 | 5195 | |
| 4307 | 5196 | var id = 0; |
| 4308 | 5197 | var postfix = Math.random(); |
| 4309 | -var toString = uncurryThis(1.1.toString); | |
| 5198 | +var toString = uncurryThis(1.0.toString); | |
| 4310 | 5199 | |
| 4311 | 5200 | module.exports = function (key) { |
| 4312 | 5201 | return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString(++id + postfix, 36); |
| 4313 | 5202 | }; |
| @@ -4325,11 +5214,11 @@ | ||
| 4325 | 5214 | |
| 4326 | 5215 | /* eslint-disable es/no-symbol -- required for testing */ |
| 4327 | 5216 | var NATIVE_SYMBOL = __webpack_require__(/*! ../internals/symbol-constructor-detection */ "../node_modules/core-js/internals/symbol-constructor-detection.js"); |
| 4328 | 5217 | |
| 4329 | -module.exports = NATIVE_SYMBOL && | |
| 4330 | - !Symbol.sham && | |
| 4331 | - typeof Symbol.iterator == 'symbol'; | |
| 5218 | +module.exports = NATIVE_SYMBOL | |
| 5219 | + && !Symbol.sham | |
| 5220 | + && typeof Symbol.iterator == 'symbol'; | |
| 4332 | 5221 | |
| 4333 | 5222 | |
| 4334 | 5223 | /***/ }), |
| 4335 | 5224 | |
| @@ -4350,9 +5239,9 @@ | ||
| 4350 | 5239 | // eslint-disable-next-line es/no-object-defineproperty -- required for testing |
| 4351 | 5240 | return Object.defineProperty(function () { /* empty */ }, 'prototype', { |
| 4352 | 5241 | value: 42, |
| 4353 | 5242 | writable: false |
| 4354 | - }).prototype !== 42; | |
| 5243 | + }).prototype != 42; | |
| 4355 | 5244 | }); |
| 4356 | 5245 | |
| 4357 | 5246 | |
| 4358 | 5247 | /***/ }), |
| @@ -4364,12 +5253,12 @@ | ||
| 4364 | 5253 | /***/ ((module, __unused_webpack_exports, __webpack_require__) => { |
| 4365 | 5254 | |
| 4366 | 5255 | "use strict"; |
| 4367 | 5256 | |
| 4368 | -var globalThis = __webpack_require__(/*! ../internals/global-this */ "../node_modules/core-js/internals/global-this.js"); | |
| 5257 | +var global = __webpack_require__(/*! ../internals/global */ "../node_modules/core-js/internals/global.js"); | |
| 4369 | 5258 | var isCallable = __webpack_require__(/*! ../internals/is-callable */ "../node_modules/core-js/internals/is-callable.js"); |
| 4370 | 5259 | |
| 4371 | -var WeakMap = globalThis.WeakMap; | |
| 5260 | +var WeakMap = global.WeakMap; | |
| 4372 | 5261 | |
| 4373 | 5262 | module.exports = isCallable(WeakMap) && /native code/.test(String(WeakMap)); |
| 4374 | 5263 | |
| 4375 | 5264 | |
| @@ -4382,9 +5271,9 @@ | ||
| 4382 | 5271 | /***/ ((module, __unused_webpack_exports, __webpack_require__) => { |
| 4383 | 5272 | |
| 4384 | 5273 | "use strict"; |
| 4385 | 5274 | |
| 4386 | -var globalThis = __webpack_require__(/*! ../internals/global-this */ "../node_modules/core-js/internals/global-this.js"); | |
| 5275 | +var global = __webpack_require__(/*! ../internals/global */ "../node_modules/core-js/internals/global.js"); | |
| 4387 | 5276 | var shared = __webpack_require__(/*! ../internals/shared */ "../node_modules/core-js/internals/shared.js"); |
| 4388 | 5277 | var hasOwn = __webpack_require__(/*! ../internals/has-own-property */ "../node_modules/core-js/internals/has-own-property.js"); |
| 4389 | 5278 | var uid = __webpack_require__(/*! ../internals/uid */ "../node_modules/core-js/internals/uid.js"); |
| 4390 | 5279 | var NATIVE_SYMBOL = __webpack_require__(/*! ../internals/symbol-constructor-detection */ "../node_modules/core-js/internals/symbol-constructor-detection.js"); |
| @@ -4389,9 +5278,9 @@ | ||
| 4389 | 5278 | var uid = __webpack_require__(/*! ../internals/uid */ "../node_modules/core-js/internals/uid.js"); |
| 4390 | 5279 | var NATIVE_SYMBOL = __webpack_require__(/*! ../internals/symbol-constructor-detection */ "../node_modules/core-js/internals/symbol-constructor-detection.js"); |
| 4391 | 5280 | var USE_SYMBOL_AS_UID = __webpack_require__(/*! ../internals/use-symbol-as-uid */ "../node_modules/core-js/internals/use-symbol-as-uid.js"); |
| 4392 | 5281 | |
| 4393 | -var Symbol = globalThis.Symbol; | |
| 5282 | +var Symbol = global.Symbol; | |
| 4394 | 5283 | var WellKnownSymbolsStore = shared('wks'); |
| 4395 | 5284 | var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol['for'] || Symbol : Symbol && Symbol.withoutSetter || uid; |
| 4396 | 5285 | |
| 4397 | 5286 | module.exports = function (name) { |
| @@ -4404,407 +5293,245 @@ | ||
| 4404 | 5293 | |
| 4405 | 5294 | |
| 4406 | 5295 | /***/ }), |
| 4407 | 5296 | |
| 4408 | -/***/ "../node_modules/core-js/modules/es.array.push.js": | |
| 4409 | -/*!********************************************************!*\ | |
| 4410 | - !*** ../node_modules/core-js/modules/es.array.push.js ***! | |
| 4411 | - \********************************************************/ | |
| 4412 | -/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => { | |
| 5297 | +/***/ "../node_modules/core-js/internals/wrap-error-constructor-with-cause.js": | |
| 5298 | +/*!******************************************************************************!*\ | |
| 5299 | + !*** ../node_modules/core-js/internals/wrap-error-constructor-with-cause.js ***! | |
| 5300 | + \******************************************************************************/ | |
| 5301 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 4413 | 5302 | |
| 4414 | 5303 | "use strict"; |
| 4415 | 5304 | |
| 4416 | -var $ = __webpack_require__(/*! ../internals/export */ "../node_modules/core-js/internals/export.js"); | |
| 4417 | -var toObject = __webpack_require__(/*! ../internals/to-object */ "../node_modules/core-js/internals/to-object.js"); | |
| 4418 | -var lengthOfArrayLike = __webpack_require__(/*! ../internals/length-of-array-like */ "../node_modules/core-js/internals/length-of-array-like.js"); | |
| 4419 | -var setArrayLength = __webpack_require__(/*! ../internals/array-set-length */ "../node_modules/core-js/internals/array-set-length.js"); | |
| 4420 | -var doesNotExceedSafeInteger = __webpack_require__(/*! ../internals/does-not-exceed-safe-integer */ "../node_modules/core-js/internals/does-not-exceed-safe-integer.js"); | |
| 4421 | -var fails = __webpack_require__(/*! ../internals/fails */ "../node_modules/core-js/internals/fails.js"); | |
| 4422 | - | |
| 4423 | -var INCORRECT_TO_LENGTH = fails(function () { | |
| 4424 | - return [].push.call({ length: 0x100000000 }, 1) !== 4294967297; | |
| 4425 | -}); | |
| 4426 | - | |
| 4427 | -// V8 <= 121 and Safari <= 15.4; FF < 23 throws InternalError | |
| 4428 | -// https://bugs.chromium.org/p/v8/issues/detail?id=12681 | |
| 4429 | -var properErrorOnNonWritableLength = function () { | |
| 4430 | - try { | |
| 4431 | - // eslint-disable-next-line es/no-object-defineproperty -- safe | |
| 4432 | - Object.defineProperty([], 'length', { writable: false }).push(); | |
| 4433 | - } catch (error) { | |
| 4434 | - return error instanceof TypeError; | |
| 4435 | - } | |
| 4436 | -}; | |
| 4437 | - | |
| 4438 | -var FORCED = INCORRECT_TO_LENGTH || !properErrorOnNonWritableLength(); | |
| 4439 | - | |
| 4440 | -// `Array.prototype.push` method | |
| 4441 | -// https://tc39.es/ecma262/#sec-array.prototype.push | |
| 4442 | -$({ target: 'Array', proto: true, arity: 1, forced: FORCED }, { | |
| 4443 | - // eslint-disable-next-line no-unused-vars -- required for `.length` | |
| 4444 | - push: function push(item) { | |
| 4445 | - var O = toObject(this); | |
| 4446 | - var len = lengthOfArrayLike(O); | |
| 4447 | - var argCount = arguments.length; | |
| 4448 | - doesNotExceedSafeInteger(len + argCount); | |
| 4449 | - for (var i = 0; i < argCount; i++) { | |
| 4450 | - O[len] = arguments[i]; | |
| 4451 | - len++; | |
| 4452 | - } | |
| 4453 | - setArrayLength(O, len); | |
| 4454 | - return len; | |
| 4455 | - } | |
| 4456 | -}); | |
| 4457 | - | |
| 4458 | - | |
| 4459 | -/***/ }), | |
| 4460 | - | |
| 4461 | -/***/ "../node_modules/core-js/modules/es.iterator.constructor.js": | |
| 4462 | -/*!******************************************************************!*\ | |
| 4463 | - !*** ../node_modules/core-js/modules/es.iterator.constructor.js ***! | |
| 4464 | - \******************************************************************/ | |
| 4465 | -/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => { | |
| 4466 | - | |
| 4467 | -"use strict"; | |
| 4468 | - | |
| 4469 | -var $ = __webpack_require__(/*! ../internals/export */ "../node_modules/core-js/internals/export.js"); | |
| 4470 | -var globalThis = __webpack_require__(/*! ../internals/global-this */ "../node_modules/core-js/internals/global-this.js"); | |
| 4471 | -var anInstance = __webpack_require__(/*! ../internals/an-instance */ "../node_modules/core-js/internals/an-instance.js"); | |
| 4472 | -var anObject = __webpack_require__(/*! ../internals/an-object */ "../node_modules/core-js/internals/an-object.js"); | |
| 4473 | -var isCallable = __webpack_require__(/*! ../internals/is-callable */ "../node_modules/core-js/internals/is-callable.js"); | |
| 4474 | -var getPrototypeOf = __webpack_require__(/*! ../internals/object-get-prototype-of */ "../node_modules/core-js/internals/object-get-prototype-of.js"); | |
| 4475 | -var defineBuiltInAccessor = __webpack_require__(/*! ../internals/define-built-in-accessor */ "../node_modules/core-js/internals/define-built-in-accessor.js"); | |
| 4476 | -var createProperty = __webpack_require__(/*! ../internals/create-property */ "../node_modules/core-js/internals/create-property.js"); | |
| 4477 | -var fails = __webpack_require__(/*! ../internals/fails */ "../node_modules/core-js/internals/fails.js"); | |
| 5305 | +var getBuiltIn = __webpack_require__(/*! ../internals/get-built-in */ "../node_modules/core-js/internals/get-built-in.js"); | |
| 4478 | 5306 | var hasOwn = __webpack_require__(/*! ../internals/has-own-property */ "../node_modules/core-js/internals/has-own-property.js"); |
| 4479 | -var wellKnownSymbol = __webpack_require__(/*! ../internals/well-known-symbol */ "../node_modules/core-js/internals/well-known-symbol.js"); | |
| 4480 | -var IteratorPrototype = (__webpack_require__(/*! ../internals/iterators-core */ "../node_modules/core-js/internals/iterators-core.js").IteratorPrototype); | |
| 5307 | +var createNonEnumerableProperty = __webpack_require__(/*! ../internals/create-non-enumerable-property */ "../node_modules/core-js/internals/create-non-enumerable-property.js"); | |
| 5308 | +var isPrototypeOf = __webpack_require__(/*! ../internals/object-is-prototype-of */ "../node_modules/core-js/internals/object-is-prototype-of.js"); | |
| 5309 | +var setPrototypeOf = __webpack_require__(/*! ../internals/object-set-prototype-of */ "../node_modules/core-js/internals/object-set-prototype-of.js"); | |
| 5310 | +var copyConstructorProperties = __webpack_require__(/*! ../internals/copy-constructor-properties */ "../node_modules/core-js/internals/copy-constructor-properties.js"); | |
| 5311 | +var proxyAccessor = __webpack_require__(/*! ../internals/proxy-accessor */ "../node_modules/core-js/internals/proxy-accessor.js"); | |
| 5312 | +var inheritIfRequired = __webpack_require__(/*! ../internals/inherit-if-required */ "../node_modules/core-js/internals/inherit-if-required.js"); | |
| 5313 | +var normalizeStringArgument = __webpack_require__(/*! ../internals/normalize-string-argument */ "../node_modules/core-js/internals/normalize-string-argument.js"); | |
| 5314 | +var installErrorCause = __webpack_require__(/*! ../internals/install-error-cause */ "../node_modules/core-js/internals/install-error-cause.js"); | |
| 5315 | +var installErrorStack = __webpack_require__(/*! ../internals/error-stack-install */ "../node_modules/core-js/internals/error-stack-install.js"); | |
| 4481 | 5316 | var DESCRIPTORS = __webpack_require__(/*! ../internals/descriptors */ "../node_modules/core-js/internals/descriptors.js"); |
| 4482 | 5317 | var IS_PURE = __webpack_require__(/*! ../internals/is-pure */ "../node_modules/core-js/internals/is-pure.js"); |
| 4483 | 5318 | |
| 4484 | -var CONSTRUCTOR = 'constructor'; | |
| 4485 | -var ITERATOR = 'Iterator'; | |
| 4486 | -var TO_STRING_TAG = wellKnownSymbol('toStringTag'); | |
| 5319 | +module.exports = function (FULL_NAME, wrapper, FORCED, IS_AGGREGATE_ERROR) { | |
| 5320 | + var STACK_TRACE_LIMIT = 'stackTraceLimit'; | |
| 5321 | + var OPTIONS_POSITION = IS_AGGREGATE_ERROR ? 2 : 1; | |
| 5322 | + var path = FULL_NAME.split('.'); | |
| 5323 | + var ERROR_NAME = path[path.length - 1]; | |
| 5324 | + var OriginalError = getBuiltIn.apply(null, path); | |
| 4487 | 5325 | |
| 4488 | -var $TypeError = TypeError; | |
| 4489 | -var NativeIterator = globalThis[ITERATOR]; | |
| 5326 | + if (!OriginalError) return; | |
| 4490 | 5327 | |
| 4491 | -// FF56- have non-standard global helper `Iterator` | |
| 4492 | -var FORCED = IS_PURE | |
| 4493 | - || !isCallable(NativeIterator) | |
| 4494 | - || NativeIterator.prototype !== IteratorPrototype | |
| 4495 | - // FF44- non-standard `Iterator` passes previous tests | |
| 4496 | - || !fails(function () { NativeIterator({}); }); | |
| 5328 | + var OriginalErrorPrototype = OriginalError.prototype; | |
| 4497 | 5329 | |
| 4498 | -var IteratorConstructor = function Iterator() { | |
| 4499 | - anInstance(this, IteratorPrototype); | |
| 4500 | - if (getPrototypeOf(this) === IteratorPrototype) throw new $TypeError('Abstract class Iterator not directly constructable'); | |
| 4501 | -}; | |
| 5330 | + // V8 9.3- bug https://bugs.chromium.org/p/v8/issues/detail?id=12006 | |
| 5331 | + if (!IS_PURE && hasOwn(OriginalErrorPrototype, 'cause')) delete OriginalErrorPrototype.cause; | |
| 4502 | 5332 | |
| 4503 | -var defineIteratorPrototypeAccessor = function (key, value) { | |
| 4504 | - if (DESCRIPTORS) { | |
| 4505 | - defineBuiltInAccessor(IteratorPrototype, key, { | |
| 4506 | - configurable: true, | |
| 4507 | - get: function () { | |
| 4508 | - return value; | |
| 4509 | - }, | |
| 4510 | - set: function (replacement) { | |
| 4511 | - anObject(this); | |
| 4512 | - if (this === IteratorPrototype) throw new $TypeError("You can't redefine this property"); | |
| 4513 | - if (hasOwn(this, key)) this[key] = replacement; | |
| 4514 | - else createProperty(this, key, replacement); | |
| 4515 | - } | |
| 4516 | - }); | |
| 4517 | - } else IteratorPrototype[key] = value; | |
| 4518 | -}; | |
| 5333 | + if (!FORCED) return OriginalError; | |
| 4519 | 5334 | |
| 4520 | -if (!hasOwn(IteratorPrototype, TO_STRING_TAG)) defineIteratorPrototypeAccessor(TO_STRING_TAG, ITERATOR); | |
| 5335 | + var BaseError = getBuiltIn('Error'); | |
| 4521 | 5336 | |
| 4522 | -if (FORCED || !hasOwn(IteratorPrototype, CONSTRUCTOR) || IteratorPrototype[CONSTRUCTOR] === Object) { | |
| 4523 | - defineIteratorPrototypeAccessor(CONSTRUCTOR, IteratorConstructor); | |
| 4524 | -} | |
| 5337 | + var WrappedError = wrapper(function (a, b) { | |
| 5338 | + var message = normalizeStringArgument(IS_AGGREGATE_ERROR ? b : a, undefined); | |
| 5339 | + var result = IS_AGGREGATE_ERROR ? new OriginalError(a) : new OriginalError(); | |
| 5340 | + if (message !== undefined) createNonEnumerableProperty(result, 'message', message); | |
| 5341 | + installErrorStack(result, WrappedError, result.stack, 2); | |
| 5342 | + if (this && isPrototypeOf(OriginalErrorPrototype, this)) inheritIfRequired(result, this, WrappedError); | |
| 5343 | + if (arguments.length > OPTIONS_POSITION) installErrorCause(result, arguments[OPTIONS_POSITION]); | |
| 5344 | + return result; | |
| 5345 | + }); | |
| 4525 | 5346 | |
| 4526 | -IteratorConstructor.prototype = IteratorPrototype; | |
| 5347 | + WrappedError.prototype = OriginalErrorPrototype; | |
| 4527 | 5348 | |
| 4528 | -// `Iterator` constructor | |
| 4529 | -// https://tc39.es/ecma262/#sec-iterator | |
| 4530 | -$({ global: true, constructor: true, forced: FORCED }, { | |
| 4531 | - Iterator: IteratorConstructor | |
| 4532 | -}); | |
| 5349 | + if (ERROR_NAME !== 'Error') { | |
| 5350 | + if (setPrototypeOf) setPrototypeOf(WrappedError, BaseError); | |
| 5351 | + else copyConstructorProperties(WrappedError, BaseError, { name: true }); | |
| 5352 | + } else if (DESCRIPTORS && STACK_TRACE_LIMIT in OriginalError) { | |
| 5353 | + proxyAccessor(WrappedError, OriginalError, STACK_TRACE_LIMIT); | |
| 5354 | + proxyAccessor(WrappedError, OriginalError, 'prepareStackTrace'); | |
| 5355 | + } | |
| 4533 | 5356 | |
| 5357 | + copyConstructorProperties(WrappedError, OriginalError); | |
| 4534 | 5358 | |
| 4535 | -/***/ }), | |
| 4536 | - | |
| 4537 | -/***/ "../node_modules/core-js/modules/es.iterator.filter.js": | |
| 4538 | -/*!*************************************************************!*\ | |
| 4539 | - !*** ../node_modules/core-js/modules/es.iterator.filter.js ***! | |
| 4540 | - \*************************************************************/ | |
| 4541 | -/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => { | |
| 4542 | - | |
| 4543 | -"use strict"; | |
| 4544 | - | |
| 4545 | -var $ = __webpack_require__(/*! ../internals/export */ "../node_modules/core-js/internals/export.js"); | |
| 4546 | -var call = __webpack_require__(/*! ../internals/function-call */ "../node_modules/core-js/internals/function-call.js"); | |
| 4547 | -var aCallable = __webpack_require__(/*! ../internals/a-callable */ "../node_modules/core-js/internals/a-callable.js"); | |
| 4548 | -var anObject = __webpack_require__(/*! ../internals/an-object */ "../node_modules/core-js/internals/an-object.js"); | |
| 4549 | -var getIteratorDirect = __webpack_require__(/*! ../internals/get-iterator-direct */ "../node_modules/core-js/internals/get-iterator-direct.js"); | |
| 4550 | -var createIteratorProxy = __webpack_require__(/*! ../internals/iterator-create-proxy */ "../node_modules/core-js/internals/iterator-create-proxy.js"); | |
| 4551 | -var callWithSafeIterationClosing = __webpack_require__(/*! ../internals/call-with-safe-iteration-closing */ "../node_modules/core-js/internals/call-with-safe-iteration-closing.js"); | |
| 4552 | -var IS_PURE = __webpack_require__(/*! ../internals/is-pure */ "../node_modules/core-js/internals/is-pure.js"); | |
| 4553 | -var iteratorClose = __webpack_require__(/*! ../internals/iterator-close */ "../node_modules/core-js/internals/iterator-close.js"); | |
| 4554 | -var iteratorHelperThrowsOnInvalidIterator = __webpack_require__(/*! ../internals/iterator-helper-throws-on-invalid-iterator */ "../node_modules/core-js/internals/iterator-helper-throws-on-invalid-iterator.js"); | |
| 4555 | -var iteratorHelperWithoutClosingOnEarlyError = __webpack_require__(/*! ../internals/iterator-helper-without-closing-on-early-error */ "../node_modules/core-js/internals/iterator-helper-without-closing-on-early-error.js"); | |
| 4556 | - | |
| 4557 | -var FILTER_WITHOUT_THROWING_ON_INVALID_ITERATOR = !IS_PURE && !iteratorHelperThrowsOnInvalidIterator('filter', function () { /* empty */ }); | |
| 4558 | -var filterWithoutClosingOnEarlyError = !IS_PURE && !FILTER_WITHOUT_THROWING_ON_INVALID_ITERATOR | |
| 4559 | - && iteratorHelperWithoutClosingOnEarlyError('filter', TypeError); | |
| 4560 | - | |
| 4561 | -var FORCED = IS_PURE || FILTER_WITHOUT_THROWING_ON_INVALID_ITERATOR || filterWithoutClosingOnEarlyError; | |
| 4562 | - | |
| 4563 | -var IteratorProxy = createIteratorProxy(function () { | |
| 4564 | - var iterator = this.iterator; | |
| 4565 | - var predicate = this.predicate; | |
| 4566 | - var next = this.next; | |
| 4567 | - var result, done, value; | |
| 4568 | - while (true) { | |
| 4569 | - result = anObject(call(next, iterator)); | |
| 4570 | - done = this.done = !!result.done; | |
| 4571 | - if (done) return; | |
| 4572 | - value = result.value; | |
| 4573 | - if (callWithSafeIterationClosing(iterator, predicate, [value, this.counter++], true)) return value; | |
| 4574 | - } | |
| 4575 | -}); | |
| 4576 | - | |
| 4577 | -// `Iterator.prototype.filter` method | |
| 4578 | -// https://tc39.es/ecma262/#sec-iterator.prototype.filter | |
| 4579 | -$({ target: 'Iterator', proto: true, real: true, forced: FORCED }, { | |
| 4580 | - filter: function filter(predicate) { | |
| 4581 | - anObject(this); | |
| 4582 | - try { | |
| 4583 | - aCallable(predicate); | |
| 4584 | - } catch (error) { | |
| 4585 | - iteratorClose(this, 'throw', error); | |
| 5359 | + if (!IS_PURE) try { | |
| 5360 | + // Safari 13- bug: WebAssembly errors does not have a proper `.name` | |
| 5361 | + if (OriginalErrorPrototype.name !== ERROR_NAME) { | |
| 5362 | + createNonEnumerableProperty(OriginalErrorPrototype, 'name', ERROR_NAME); | |
| 4586 | 5363 | } |
| 5364 | + OriginalErrorPrototype.constructor = WrappedError; | |
| 5365 | + } catch (error) { /* empty */ } | |
| 4587 | 5366 | |
| 4588 | - if (filterWithoutClosingOnEarlyError) return call(filterWithoutClosingOnEarlyError, this, predicate); | |
| 5367 | + return WrappedError; | |
| 5368 | +}; | |
| 4589 | 5369 | |
| 4590 | - return new IteratorProxy(getIteratorDirect(this), { | |
| 4591 | - predicate: predicate | |
| 4592 | - }); | |
| 4593 | - } | |
| 4594 | -}); | |
| 4595 | 5370 | |
| 4596 | - | |
| 4597 | 5371 | /***/ }), |
| 4598 | 5372 | |
| 4599 | -/***/ "../node_modules/core-js/modules/es.iterator.find.js": | |
| 4600 | -/*!***********************************************************!*\ | |
| 4601 | - !*** ../node_modules/core-js/modules/es.iterator.find.js ***! | |
| 4602 | - \***********************************************************/ | |
| 5373 | +/***/ "../node_modules/core-js/modules/es.error.cause.js": | |
| 5374 | +/*!*********************************************************!*\ | |
| 5375 | + !*** ../node_modules/core-js/modules/es.error.cause.js ***! | |
| 5376 | + \*********************************************************/ | |
| 4603 | 5377 | /***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => { |
| 4604 | 5378 | |
| 4605 | 5379 | "use strict"; |
| 4606 | 5380 | |
| 5381 | +/* eslint-disable no-unused-vars -- required for functions `.length` */ | |
| 4607 | 5382 | var $ = __webpack_require__(/*! ../internals/export */ "../node_modules/core-js/internals/export.js"); |
| 4608 | -var call = __webpack_require__(/*! ../internals/function-call */ "../node_modules/core-js/internals/function-call.js"); | |
| 4609 | -var iterate = __webpack_require__(/*! ../internals/iterate */ "../node_modules/core-js/internals/iterate.js"); | |
| 4610 | -var aCallable = __webpack_require__(/*! ../internals/a-callable */ "../node_modules/core-js/internals/a-callable.js"); | |
| 4611 | -var anObject = __webpack_require__(/*! ../internals/an-object */ "../node_modules/core-js/internals/an-object.js"); | |
| 4612 | -var getIteratorDirect = __webpack_require__(/*! ../internals/get-iterator-direct */ "../node_modules/core-js/internals/get-iterator-direct.js"); | |
| 4613 | -var iteratorClose = __webpack_require__(/*! ../internals/iterator-close */ "../node_modules/core-js/internals/iterator-close.js"); | |
| 4614 | -var iteratorHelperWithoutClosingOnEarlyError = __webpack_require__(/*! ../internals/iterator-helper-without-closing-on-early-error */ "../node_modules/core-js/internals/iterator-helper-without-closing-on-early-error.js"); | |
| 5383 | +var global = __webpack_require__(/*! ../internals/global */ "../node_modules/core-js/internals/global.js"); | |
| 5384 | +var apply = __webpack_require__(/*! ../internals/function-apply */ "../node_modules/core-js/internals/function-apply.js"); | |
| 5385 | +var wrapErrorConstructorWithCause = __webpack_require__(/*! ../internals/wrap-error-constructor-with-cause */ "../node_modules/core-js/internals/wrap-error-constructor-with-cause.js"); | |
| 4615 | 5386 | |
| 4616 | -var findWithoutClosingOnEarlyError = iteratorHelperWithoutClosingOnEarlyError('find', TypeError); | |
| 5387 | +var WEB_ASSEMBLY = 'WebAssembly'; | |
| 5388 | +var WebAssembly = global[WEB_ASSEMBLY]; | |
| 4617 | 5389 | |
| 4618 | -// `Iterator.prototype.find` method | |
| 4619 | -// https://tc39.es/ecma262/#sec-iterator.prototype.find | |
| 4620 | -$({ target: 'Iterator', proto: true, real: true, forced: findWithoutClosingOnEarlyError }, { | |
| 4621 | - find: function find(predicate) { | |
| 4622 | - anObject(this); | |
| 4623 | - try { | |
| 4624 | - aCallable(predicate); | |
| 4625 | - } catch (error) { | |
| 4626 | - iteratorClose(this, 'throw', error); | |
| 4627 | - } | |
| 5390 | +var FORCED = Error('e', { cause: 7 }).cause !== 7; | |
| 4628 | 5391 | |
| 4629 | - if (findWithoutClosingOnEarlyError) return call(findWithoutClosingOnEarlyError, this, predicate); | |
| 5392 | +var exportGlobalErrorCauseWrapper = function (ERROR_NAME, wrapper) { | |
| 5393 | + var O = {}; | |
| 5394 | + O[ERROR_NAME] = wrapErrorConstructorWithCause(ERROR_NAME, wrapper, FORCED); | |
| 5395 | + $({ global: true, constructor: true, arity: 1, forced: FORCED }, O); | |
| 5396 | +}; | |
| 4630 | 5397 | |
| 4631 | - var record = getIteratorDirect(this); | |
| 4632 | - var counter = 0; | |
| 4633 | - return iterate(record, function (value, stop) { | |
| 4634 | - if (predicate(value, counter++)) return stop(value); | |
| 4635 | - }, { IS_RECORD: true, INTERRUPTED: true }).result; | |
| 5398 | +var exportWebAssemblyErrorCauseWrapper = function (ERROR_NAME, wrapper) { | |
| 5399 | + if (WebAssembly && WebAssembly[ERROR_NAME]) { | |
| 5400 | + var O = {}; | |
| 5401 | + O[ERROR_NAME] = wrapErrorConstructorWithCause(WEB_ASSEMBLY + '.' + ERROR_NAME, wrapper, FORCED); | |
| 5402 | + $({ target: WEB_ASSEMBLY, stat: true, constructor: true, arity: 1, forced: FORCED }, O); | |
| 4636 | 5403 | } |
| 5404 | +}; | |
| 5405 | + | |
| 5406 | +// https://tc39.es/ecma262/#sec-nativeerror | |
| 5407 | +exportGlobalErrorCauseWrapper('Error', function (init) { | |
| 5408 | + return function Error(message) { return apply(init, this, arguments); }; | |
| 4637 | 5409 | }); |
| 4638 | - | |
| 4639 | - | |
| 4640 | -/***/ }), | |
| 4641 | - | |
| 4642 | -/***/ "../node_modules/core-js/modules/es.iterator.for-each.js": | |
| 4643 | -/*!***************************************************************!*\ | |
| 4644 | - !*** ../node_modules/core-js/modules/es.iterator.for-each.js ***! | |
| 4645 | - \***************************************************************/ | |
| 4646 | -/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => { | |
| 4647 | - | |
| 4648 | -"use strict"; | |
| 4649 | - | |
| 4650 | -var $ = __webpack_require__(/*! ../internals/export */ "../node_modules/core-js/internals/export.js"); | |
| 4651 | -var call = __webpack_require__(/*! ../internals/function-call */ "../node_modules/core-js/internals/function-call.js"); | |
| 4652 | -var iterate = __webpack_require__(/*! ../internals/iterate */ "../node_modules/core-js/internals/iterate.js"); | |
| 4653 | -var aCallable = __webpack_require__(/*! ../internals/a-callable */ "../node_modules/core-js/internals/a-callable.js"); | |
| 4654 | -var anObject = __webpack_require__(/*! ../internals/an-object */ "../node_modules/core-js/internals/an-object.js"); | |
| 4655 | -var getIteratorDirect = __webpack_require__(/*! ../internals/get-iterator-direct */ "../node_modules/core-js/internals/get-iterator-direct.js"); | |
| 4656 | -var iteratorClose = __webpack_require__(/*! ../internals/iterator-close */ "../node_modules/core-js/internals/iterator-close.js"); | |
| 4657 | -var iteratorHelperWithoutClosingOnEarlyError = __webpack_require__(/*! ../internals/iterator-helper-without-closing-on-early-error */ "../node_modules/core-js/internals/iterator-helper-without-closing-on-early-error.js"); | |
| 4658 | - | |
| 4659 | -var forEachWithoutClosingOnEarlyError = iteratorHelperWithoutClosingOnEarlyError('forEach', TypeError); | |
| 4660 | - | |
| 4661 | -// `Iterator.prototype.forEach` method | |
| 4662 | -// https://tc39.es/ecma262/#sec-iterator.prototype.foreach | |
| 4663 | -$({ target: 'Iterator', proto: true, real: true, forced: forEachWithoutClosingOnEarlyError }, { | |
| 4664 | - forEach: function forEach(fn) { | |
| 4665 | - anObject(this); | |
| 4666 | - try { | |
| 4667 | - aCallable(fn); | |
| 4668 | - } catch (error) { | |
| 4669 | - iteratorClose(this, 'throw', error); | |
| 4670 | - } | |
| 4671 | - | |
| 4672 | - if (forEachWithoutClosingOnEarlyError) return call(forEachWithoutClosingOnEarlyError, this, fn); | |
| 4673 | - | |
| 4674 | - var record = getIteratorDirect(this); | |
| 4675 | - var counter = 0; | |
| 4676 | - iterate(record, function (value) { | |
| 4677 | - fn(value, counter++); | |
| 4678 | - }, { IS_RECORD: true }); | |
| 4679 | - } | |
| 5410 | +exportGlobalErrorCauseWrapper('EvalError', function (init) { | |
| 5411 | + return function EvalError(message) { return apply(init, this, arguments); }; | |
| 4680 | 5412 | }); |
| 5413 | +exportGlobalErrorCauseWrapper('RangeError', function (init) { | |
| 5414 | + return function RangeError(message) { return apply(init, this, arguments); }; | |
| 5415 | +}); | |
| 5416 | +exportGlobalErrorCauseWrapper('ReferenceError', function (init) { | |
| 5417 | + return function ReferenceError(message) { return apply(init, this, arguments); }; | |
| 5418 | +}); | |
| 5419 | +exportGlobalErrorCauseWrapper('SyntaxError', function (init) { | |
| 5420 | + return function SyntaxError(message) { return apply(init, this, arguments); }; | |
| 5421 | +}); | |
| 5422 | +exportGlobalErrorCauseWrapper('TypeError', function (init) { | |
| 5423 | + return function TypeError(message) { return apply(init, this, arguments); }; | |
| 5424 | +}); | |
| 5425 | +exportGlobalErrorCauseWrapper('URIError', function (init) { | |
| 5426 | + return function URIError(message) { return apply(init, this, arguments); }; | |
| 5427 | +}); | |
| 5428 | +exportWebAssemblyErrorCauseWrapper('CompileError', function (init) { | |
| 5429 | + return function CompileError(message) { return apply(init, this, arguments); }; | |
| 5430 | +}); | |
| 5431 | +exportWebAssemblyErrorCauseWrapper('LinkError', function (init) { | |
| 5432 | + return function LinkError(message) { return apply(init, this, arguments); }; | |
| 5433 | +}); | |
| 5434 | +exportWebAssemblyErrorCauseWrapper('RuntimeError', function (init) { | |
| 5435 | + return function RuntimeError(message) { return apply(init, this, arguments); }; | |
| 5436 | +}); | |
| 4681 | 5437 | |
| 4682 | 5438 | |
| 4683 | 5439 | /***/ }), |
| 4684 | 5440 | |
| 4685 | -/***/ "../node_modules/core-js/modules/es.iterator.map.js": | |
| 4686 | -/*!**********************************************************!*\ | |
| 4687 | - !*** ../node_modules/core-js/modules/es.iterator.map.js ***! | |
| 4688 | - \**********************************************************/ | |
| 4689 | -/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => { | |
| 5441 | +/***/ "../node_modules/@babel/runtime/helpers/defineProperty.js": | |
| 5442 | +/*!****************************************************************!*\ | |
| 5443 | + !*** ../node_modules/@babel/runtime/helpers/defineProperty.js ***! | |
| 5444 | + \****************************************************************/ | |
| 5445 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 4690 | 5446 | |
| 4691 | -"use strict"; | |
| 4692 | - | |
| 4693 | -var $ = __webpack_require__(/*! ../internals/export */ "../node_modules/core-js/internals/export.js"); | |
| 4694 | -var call = __webpack_require__(/*! ../internals/function-call */ "../node_modules/core-js/internals/function-call.js"); | |
| 4695 | -var aCallable = __webpack_require__(/*! ../internals/a-callable */ "../node_modules/core-js/internals/a-callable.js"); | |
| 4696 | -var anObject = __webpack_require__(/*! ../internals/an-object */ "../node_modules/core-js/internals/an-object.js"); | |
| 4697 | -var getIteratorDirect = __webpack_require__(/*! ../internals/get-iterator-direct */ "../node_modules/core-js/internals/get-iterator-direct.js"); | |
| 4698 | -var createIteratorProxy = __webpack_require__(/*! ../internals/iterator-create-proxy */ "../node_modules/core-js/internals/iterator-create-proxy.js"); | |
| 4699 | -var callWithSafeIterationClosing = __webpack_require__(/*! ../internals/call-with-safe-iteration-closing */ "../node_modules/core-js/internals/call-with-safe-iteration-closing.js"); | |
| 4700 | -var iteratorClose = __webpack_require__(/*! ../internals/iterator-close */ "../node_modules/core-js/internals/iterator-close.js"); | |
| 4701 | -var iteratorHelperThrowsOnInvalidIterator = __webpack_require__(/*! ../internals/iterator-helper-throws-on-invalid-iterator */ "../node_modules/core-js/internals/iterator-helper-throws-on-invalid-iterator.js"); | |
| 4702 | -var iteratorHelperWithoutClosingOnEarlyError = __webpack_require__(/*! ../internals/iterator-helper-without-closing-on-early-error */ "../node_modules/core-js/internals/iterator-helper-without-closing-on-early-error.js"); | |
| 4703 | -var IS_PURE = __webpack_require__(/*! ../internals/is-pure */ "../node_modules/core-js/internals/is-pure.js"); | |
| 4704 | - | |
| 4705 | -var MAP_WITHOUT_THROWING_ON_INVALID_ITERATOR = !IS_PURE && !iteratorHelperThrowsOnInvalidIterator('map', function () { /* empty */ }); | |
| 4706 | -var mapWithoutClosingOnEarlyError = !IS_PURE && !MAP_WITHOUT_THROWING_ON_INVALID_ITERATOR | |
| 4707 | - && iteratorHelperWithoutClosingOnEarlyError('map', TypeError); | |
| 4708 | - | |
| 4709 | -var FORCED = IS_PURE || MAP_WITHOUT_THROWING_ON_INVALID_ITERATOR || mapWithoutClosingOnEarlyError; | |
| 4710 | - | |
| 4711 | -var IteratorProxy = createIteratorProxy(function () { | |
| 4712 | - var iterator = this.iterator; | |
| 4713 | - var result = anObject(call(this.next, iterator)); | |
| 4714 | - var done = this.done = !!result.done; | |
| 4715 | - if (!done) return callWithSafeIterationClosing(iterator, this.mapper, [result.value, this.counter++], true); | |
| 4716 | -}); | |
| 4717 | - | |
| 4718 | -// `Iterator.prototype.map` method | |
| 4719 | -// https://tc39.es/ecma262/#sec-iterator.prototype.map | |
| 4720 | -$({ target: 'Iterator', proto: true, real: true, forced: FORCED }, { | |
| 4721 | - map: function map(mapper) { | |
| 4722 | - anObject(this); | |
| 4723 | - try { | |
| 4724 | - aCallable(mapper); | |
| 4725 | - } catch (error) { | |
| 4726 | - iteratorClose(this, 'throw', error); | |
| 4727 | - } | |
| 4728 | - | |
| 4729 | - if (mapWithoutClosingOnEarlyError) return call(mapWithoutClosingOnEarlyError, this, mapper); | |
| 4730 | - | |
| 4731 | - return new IteratorProxy(getIteratorDirect(this), { | |
| 4732 | - mapper: mapper | |
| 5447 | +var toPropertyKey = __webpack_require__(/*! ./toPropertyKey.js */ "../node_modules/@babel/runtime/helpers/toPropertyKey.js"); | |
| 5448 | +function _defineProperty(obj, key, value) { | |
| 5449 | + key = toPropertyKey(key); | |
| 5450 | + if (key in obj) { | |
| 5451 | + Object.defineProperty(obj, key, { | |
| 5452 | + value: value, | |
| 5453 | + enumerable: true, | |
| 5454 | + configurable: true, | |
| 5455 | + writable: true | |
| 4733 | 5456 | }); |
| 5457 | + } else { | |
| 5458 | + obj[key] = value; | |
| 4734 | 5459 | } |
| 4735 | -}); | |
| 5460 | + return obj; | |
| 5461 | +} | |
| 5462 | +module.exports = _defineProperty, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 4736 | 5463 | |
| 4737 | - | |
| 4738 | 5464 | /***/ }), |
| 4739 | 5465 | |
| 4740 | -/***/ "../node_modules/core-js/modules/esnext.iterator.constructor.js": | |
| 4741 | -/*!**********************************************************************!*\ | |
| 4742 | - !*** ../node_modules/core-js/modules/esnext.iterator.constructor.js ***! | |
| 4743 | - \**********************************************************************/ | |
| 4744 | -/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => { | |
| 5466 | +/***/ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js": | |
| 5467 | +/*!***********************************************************************!*\ | |
| 5468 | + !*** ../node_modules/@babel/runtime/helpers/interopRequireDefault.js ***! | |
| 5469 | + \***********************************************************************/ | |
| 5470 | +/***/ ((module) => { | |
| 4745 | 5471 | |
| 4746 | -"use strict"; | |
| 5472 | +function _interopRequireDefault(obj) { | |
| 5473 | + return obj && obj.__esModule ? obj : { | |
| 5474 | + "default": obj | |
| 5475 | + }; | |
| 5476 | +} | |
| 5477 | +module.exports = _interopRequireDefault, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 4747 | 5478 | |
| 4748 | -// TODO: Remove from `core-js@4` | |
| 4749 | -__webpack_require__(/*! ../modules/es.iterator.constructor */ "../node_modules/core-js/modules/es.iterator.constructor.js"); | |
| 4750 | - | |
| 4751 | - | |
| 4752 | 5479 | /***/ }), |
| 4753 | 5480 | |
| 4754 | -/***/ "../node_modules/core-js/modules/esnext.iterator.filter.js": | |
| 4755 | -/*!*****************************************************************!*\ | |
| 4756 | - !*** ../node_modules/core-js/modules/esnext.iterator.filter.js ***! | |
| 4757 | - \*****************************************************************/ | |
| 4758 | -/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => { | |
| 5481 | +/***/ "../node_modules/@babel/runtime/helpers/toPrimitive.js": | |
| 5482 | +/*!*************************************************************!*\ | |
| 5483 | + !*** ../node_modules/@babel/runtime/helpers/toPrimitive.js ***! | |
| 5484 | + \*************************************************************/ | |
| 5485 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 4759 | 5486 | |
| 4760 | -"use strict"; | |
| 5487 | +var _typeof = (__webpack_require__(/*! ./typeof.js */ "../node_modules/@babel/runtime/helpers/typeof.js")["default"]); | |
| 5488 | +function toPrimitive(t, r) { | |
| 5489 | + if ("object" != _typeof(t) || !t) return t; | |
| 5490 | + var e = t[Symbol.toPrimitive]; | |
| 5491 | + if (void 0 !== e) { | |
| 5492 | + var i = e.call(t, r || "default"); | |
| 5493 | + if ("object" != _typeof(i)) return i; | |
| 5494 | + throw new TypeError("@@toPrimitive must return a primitive value."); | |
| 5495 | + } | |
| 5496 | + return ("string" === r ? String : Number)(t); | |
| 5497 | +} | |
| 5498 | +module.exports = toPrimitive, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 4761 | 5499 | |
| 4762 | -// TODO: Remove from `core-js@4` | |
| 4763 | -__webpack_require__(/*! ../modules/es.iterator.filter */ "../node_modules/core-js/modules/es.iterator.filter.js"); | |
| 4764 | - | |
| 4765 | - | |
| 4766 | 5500 | /***/ }), |
| 4767 | 5501 | |
| 4768 | -/***/ "../node_modules/core-js/modules/esnext.iterator.find.js": | |
| 5502 | +/***/ "../node_modules/@babel/runtime/helpers/toPropertyKey.js": | |
| 4769 | 5503 | /*!***************************************************************!*\ |
| 4770 | - !*** ../node_modules/core-js/modules/esnext.iterator.find.js ***! | |
| 5504 | + !*** ../node_modules/@babel/runtime/helpers/toPropertyKey.js ***! | |
| 4771 | 5505 | \***************************************************************/ |
| 4772 | -/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => { | |
| 5506 | +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { | |
| 4773 | 5507 | |
| 4774 | -"use strict"; | |
| 5508 | +var _typeof = (__webpack_require__(/*! ./typeof.js */ "../node_modules/@babel/runtime/helpers/typeof.js")["default"]); | |
| 5509 | +var toPrimitive = __webpack_require__(/*! ./toPrimitive.js */ "../node_modules/@babel/runtime/helpers/toPrimitive.js"); | |
| 5510 | +function toPropertyKey(t) { | |
| 5511 | + var i = toPrimitive(t, "string"); | |
| 5512 | + return "symbol" == _typeof(i) ? i : String(i); | |
| 5513 | +} | |
| 5514 | +module.exports = toPropertyKey, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 4775 | 5515 | |
| 4776 | -// TODO: Remove from `core-js@4` | |
| 4777 | -__webpack_require__(/*! ../modules/es.iterator.find */ "../node_modules/core-js/modules/es.iterator.find.js"); | |
| 4778 | - | |
| 4779 | - | |
| 4780 | 5516 | /***/ }), |
| 4781 | 5517 | |
| 4782 | -/***/ "../node_modules/core-js/modules/esnext.iterator.for-each.js": | |
| 4783 | -/*!*******************************************************************!*\ | |
| 4784 | - !*** ../node_modules/core-js/modules/esnext.iterator.for-each.js ***! | |
| 4785 | - \*******************************************************************/ | |
| 4786 | -/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => { | |
| 5518 | +/***/ "../node_modules/@babel/runtime/helpers/typeof.js": | |
| 5519 | +/*!********************************************************!*\ | |
| 5520 | + !*** ../node_modules/@babel/runtime/helpers/typeof.js ***! | |
| 5521 | + \********************************************************/ | |
| 5522 | +/***/ ((module) => { | |
| 4787 | 5523 | |
| 4788 | -"use strict"; | |
| 5524 | +function _typeof(o) { | |
| 5525 | + "@babel/helpers - typeof"; | |
| 4789 | 5526 | |
| 4790 | -// TODO: Remove from `core-js@4` | |
| 4791 | -__webpack_require__(/*! ../modules/es.iterator.for-each */ "../node_modules/core-js/modules/es.iterator.for-each.js"); | |
| 4792 | - | |
| 4793 | - | |
| 4794 | -/***/ }), | |
| 4795 | - | |
| 4796 | -/***/ "../node_modules/core-js/modules/esnext.iterator.map.js": | |
| 4797 | -/*!**************************************************************!*\ | |
| 4798 | - !*** ../node_modules/core-js/modules/esnext.iterator.map.js ***! | |
| 4799 | - \**************************************************************/ | |
| 4800 | -/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => { | |
| 4801 | - | |
| 4802 | -"use strict"; | |
| 4803 | - | |
| 4804 | -// TODO: Remove from `core-js@4` | |
| 4805 | -__webpack_require__(/*! ../modules/es.iterator.map */ "../node_modules/core-js/modules/es.iterator.map.js"); | |
| 4806 | - | |
| 5527 | + return (module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { | |
| 5528 | + return typeof o; | |
| 5529 | + } : function (o) { | |
| 5530 | + return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; | |
| 5531 | + }, module.exports.__esModule = true, module.exports["default"] = module.exports), _typeof(o); | |
| 5532 | +} | |
| 5533 | +module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports; | |
| 4807 | 5534 | |
| 4808 | 5535 | /***/ }) |
| 4809 | 5536 | |
| 4810 | 5537 | }, |