Version Description
Download this release
Release Info
Developer | mreishus |
Plugin | Full Site Editing |
Version | 3.38019 |
Comparing to | |
See all releases |
Code changes from version 3.38015 to 3.38019
- build_meta.txt +3 -3
- dotcom-fse/lib/seller-celebration-modal/use-has-selected-payment-block-once.js +63 -0
- full-site-editing-plugin.php +2 -2
- readme.txt +1 -1
- wpcom-block-editor-nux/dist/wpcom-block-editor-nux.asset.php +1 -1
- wpcom-block-editor-nux/dist/wpcom-block-editor-nux.js +103 -19
- wpcom-block-editor-nux/dist/wpcom-block-editor-nux.min.js +3 -3
- wpcom-block-editor-nux/dist/wpcom-block-editor-nux.min.js.map +1 -1
build_meta.txt
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
-
commit_hash=
|
2 |
-
commit_url=https://github.com/Automattic/wp-calypso/commit/
|
3 |
-
build_number=3.
|
1 |
+
commit_hash=80afae6419222e0f61dd0c2829272873e08c0a6a
|
2 |
+
commit_url=https://github.com/Automattic/wp-calypso/commit/80afae6419222e0f61dd0c2829272873e08c0a6a
|
3 |
+
build_number=3.38019
|
dotcom-fse/lib/seller-celebration-modal/use-has-selected-payment-block-once.js
ADDED
@@ -0,0 +1,63 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import { useSelect } from '@wordpress/data';
|
2 |
+
import { useState, useEffect } from '@wordpress/element';
|
3 |
+
|
4 |
+
/**
|
5 |
+
* Watch the user's block selection and keep a note if they ever select a payments
|
6 |
+
* block.
|
7 |
+
* A payments block is any block with 'payments' in the name, like jetpack/simple-payments
|
8 |
+
* or jetpack/recurring-payments.
|
9 |
+
* Selecting a block whose direct parent has 'payments' in the name also counts.
|
10 |
+
* This is to account for clicking inside the button in a payments block, for example.
|
11 |
+
*
|
12 |
+
* @returns {boolean} Has the user selected a payments block (or a direct descendant) at least once?
|
13 |
+
*/
|
14 |
+
const useHasSelectedPaymentBlockOnce = () => {
|
15 |
+
const [ hasSelectedPaymentsOnce, setHasSelectedPaymentsOnce ] = useState( false );
|
16 |
+
|
17 |
+
// Get the name of the currently selected block
|
18 |
+
const selectedBlockName = useSelect( ( select ) => {
|
19 |
+
// Special case: We know we're returning true, so we don't need to find block names.
|
20 |
+
if ( hasSelectedPaymentsOnce ) {
|
21 |
+
return '';
|
22 |
+
}
|
23 |
+
|
24 |
+
const selectedBlock = select( 'core/block-editor' ).getSelectedBlock();
|
25 |
+
return selectedBlock?.name ?? '';
|
26 |
+
} );
|
27 |
+
|
28 |
+
// Get the name of the currently selected block's direct parent, if one exists
|
29 |
+
const parentSelectedBlockName = useSelect( ( select ) => {
|
30 |
+
// Special case: We know we're returning true, so we don't need to find block names.
|
31 |
+
if ( hasSelectedPaymentsOnce ) {
|
32 |
+
return '';
|
33 |
+
}
|
34 |
+
|
35 |
+
const selectedBlock = select( 'core/block-editor' ).getSelectedBlock();
|
36 |
+
if ( selectedBlock?.clientId ) {
|
37 |
+
const parentIds = select( 'core/block-editor' ).getBlockParents( selectedBlock?.clientId );
|
38 |
+
if ( parentIds && parentIds.length ) {
|
39 |
+
const parent = select( 'core/block-editor' ).getBlock( parentIds[ parentIds.length - 1 ] );
|
40 |
+
return parent?.name ?? '';
|
41 |
+
}
|
42 |
+
}
|
43 |
+
return '';
|
44 |
+
} );
|
45 |
+
|
46 |
+
// On selection change, set hasSelectedPaymentsOnce=true if block name or parent's block name contains 'payments'
|
47 |
+
useEffect( () => {
|
48 |
+
if (
|
49 |
+
! hasSelectedPaymentsOnce &&
|
50 |
+
( selectedBlockName.includes( 'payments' ) || parentSelectedBlockName.includes( 'payments' ) )
|
51 |
+
) {
|
52 |
+
setHasSelectedPaymentsOnce( true );
|
53 |
+
}
|
54 |
+
}, [
|
55 |
+
selectedBlockName,
|
56 |
+
parentSelectedBlockName,
|
57 |
+
hasSelectedPaymentsOnce,
|
58 |
+
setHasSelectedPaymentsOnce,
|
59 |
+
] );
|
60 |
+
|
61 |
+
return hasSelectedPaymentsOnce;
|
62 |
+
};
|
63 |
+
export default useHasSelectedPaymentBlockOnce;
|
full-site-editing-plugin.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
/**
|
3 |
* Plugin Name: WordPress.com Editing Toolkit
|
4 |
* Description: Enhances your page creation workflow within the Block Editor.
|
5 |
-
* Version: 3.
|
6 |
* Author: Automattic
|
7 |
* Author URI: https://automattic.com/wordpress-plugins/
|
8 |
* License: GPLv2 or later
|
@@ -42,7 +42,7 @@ namespace A8C\FSE;
|
|
42 |
*
|
43 |
* @var string
|
44 |
*/
|
45 |
-
define( 'A8C_ETK_PLUGIN_VERSION', '3.
|
46 |
|
47 |
// Always include these helper files for dotcom FSE.
|
48 |
require_once __DIR__ . '/dotcom-fse/helpers.php';
|
2 |
/**
|
3 |
* Plugin Name: WordPress.com Editing Toolkit
|
4 |
* Description: Enhances your page creation workflow within the Block Editor.
|
5 |
+
* Version: 3.38019
|
6 |
* Author: Automattic
|
7 |
* Author URI: https://automattic.com/wordpress-plugins/
|
8 |
* License: GPLv2 or later
|
42 |
*
|
43 |
* @var string
|
44 |
*/
|
45 |
+
define( 'A8C_ETK_PLUGIN_VERSION', '3.38019' );
|
46 |
|
47 |
// Always include these helper files for dotcom FSE.
|
48 |
require_once __DIR__ . '/dotcom-fse/helpers.php';
|
readme.txt
CHANGED
@@ -3,7 +3,7 @@ Contributors: automattic
|
|
3 |
Tags: block, blocks, editor, gutenberg, page
|
4 |
Requires at least: 5.5
|
5 |
Tested up to: 6.0
|
6 |
-
Stable tag: 3.
|
7 |
Requires PHP: 5.6.20
|
8 |
License: GPLv2 or later
|
9 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
3 |
Tags: block, blocks, editor, gutenberg, page
|
4 |
Requires at least: 5.5
|
5 |
Tested up to: 6.0
|
6 |
+
Stable tag: 3.38019
|
7 |
Requires PHP: 5.6.20
|
8 |
License: GPLv2 or later
|
9 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
wpcom-block-editor-nux/dist/wpcom-block-editor-nux.asset.php
CHANGED
@@ -1 +1 @@
|
|
1 |
-
<?php return array('dependencies' => array('a8c-fse-common-data-stores', 'lodash', 'react', 'wp-api-fetch', 'wp-components', 'wp-compose', 'wp-data', 'wp-data-controls', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-notices', 'wp-nux', 'wp-plugins', 'wp-polyfill', 'wp-primitives', 'wp-url'), 'version' => '
|
1 |
+
<?php return array('dependencies' => array('a8c-fse-common-data-stores', 'lodash', 'react', 'wp-api-fetch', 'wp-components', 'wp-compose', 'wp-data', 'wp-data-controls', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-notices', 'wp-nux', 'wp-plugins', 'wp-polyfill', 'wp-primitives', 'wp-url'), 'version' => '9bc9648ebf823b62632e');
|
wpcom-block-editor-nux/dist/wpcom-block-editor-nux.js
CHANGED
@@ -5810,6 +5810,72 @@ const useHasSeenSellerCelebrationModal = () => {
|
|
5810 |
|
5811 |
/***/ }),
|
5812 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5813 |
/***/ 5262:
|
5814 |
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
5815 |
|
@@ -6349,10 +6415,11 @@ function PurchaseNotice() {
|
|
6349 |
/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(5736);
|
6350 |
/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__);
|
6351 |
/* harmony import */ var _dotcom_fse_lib_seller_celebration_modal_use_has_seen_seller_celebration_modal__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(3133);
|
6352 |
-
/* harmony import */ var
|
6353 |
-
/* harmony import */ var
|
6354 |
-
/* harmony import */ var
|
6355 |
-
/* harmony import */ var
|
|
|
6356 |
|
6357 |
|
6358 |
|
@@ -6365,6 +6432,7 @@ const __ = _wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__.__;
|
|
6365 |
|
6366 |
|
6367 |
|
|
|
6368 |
/**
|
6369 |
* Show the seller celebration modal
|
6370 |
*/
|
@@ -6389,26 +6457,40 @@ const SellerCelebrationModalInner = () => {
|
|
6389 |
// - editor has not yet displayed modal once (check)
|
6390 |
// - user is a seller (check)
|
6391 |
// - user has not saved site before
|
6392 |
-
// - content includes product block (check)
|
6393 |
|
6394 |
const [isModalOpen, setIsModalOpen] = (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.useState)(false);
|
6395 |
const [hasDisplayedModal, setHasDisplayedModal] = (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.useState)(false);
|
6396 |
const isSiteEditor = (0,_wordpress_data__WEBPACK_IMPORTED_MODULE_3__.useSelect)(select => !!select('core/edit-site'));
|
6397 |
const previousIsEditorSaving = (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.useRef)(false);
|
|
|
|
|
|
|
|
|
|
|
6398 |
const {
|
6399 |
isEditorSaving,
|
6400 |
hasPaymentsBlock,
|
6401 |
linkUrl
|
6402 |
} = (0,_wordpress_data__WEBPACK_IMPORTED_MODULE_3__.useSelect)(select => {
|
6403 |
if (isSiteEditor) {
|
6404 |
-
var _page$context
|
6405 |
|
6406 |
const isSavingSite = select('core').isSavingEntityRecord('root', 'site') && !select('core').isAutosavingEntityRecord('root', 'site');
|
6407 |
const page = select('core/edit-site').getPage();
|
6408 |
const pageId = parseInt(page === null || page === void 0 ? void 0 : (_page$context = page.context) === null || _page$context === void 0 ? void 0 : _page$context.postId);
|
6409 |
const isSavingEntity = select('core').isSavingEntityRecord('postType', 'page', pageId) && !select('core').isAutosavingEntityRecord('postType', 'page', pageId);
|
6410 |
const pageEntity = select('core').getEntityRecord('postType', 'page', pageId);
|
6411 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
6412 |
return {
|
6413 |
isEditorSaving: isSavingSite || isSavingEntity,
|
6414 |
hasPaymentsBlock: paymentsBlock,
|
@@ -6418,38 +6500,40 @@ const SellerCelebrationModalInner = () => {
|
|
6418 |
|
6419 |
const currentPost = select('core/editor').getCurrentPost();
|
6420 |
const isSavingEntity = select('core').isSavingEntityRecord('postType', currentPost === null || currentPost === void 0 ? void 0 : currentPost.type, currentPost === null || currentPost === void 0 ? void 0 : currentPost.id) && !select('core').isAutosavingEntityRecord('postType', currentPost === null || currentPost === void 0 ? void 0 : currentPost.type, currentPost === null || currentPost === void 0 ? void 0 : currentPost.id);
|
6421 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
6422 |
return {
|
6423 |
isEditorSaving: isSavingEntity,
|
6424 |
-
hasPaymentsBlock:
|
6425 |
linkUrl: currentPost.link
|
6426 |
};
|
6427 |
});
|
6428 |
-
const intent = (0,
|
6429 |
-
const {
|
6430 |
-
hasSeenSellerCelebrationModal,
|
6431 |
-
updateHasSeenSellerCelebrationModal
|
6432 |
-
} = (0,_dotcom_fse_lib_seller_celebration_modal_use_has_seen_seller_celebration_modal__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z)();
|
6433 |
(0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.useEffect)(() => {
|
6434 |
-
if (!isEditorSaving && previousIsEditorSaving.current && !hasDisplayedModal && intent === 'sell' && hasPaymentsBlock && !hasSeenSellerCelebrationModal) {
|
6435 |
setIsModalOpen(true);
|
6436 |
setHasDisplayedModal(true);
|
6437 |
updateHasSeenSellerCelebrationModal(true);
|
6438 |
}
|
6439 |
|
6440 |
previousIsEditorSaving.current = isEditorSaving;
|
6441 |
-
}, [isEditorSaving, hasDisplayedModal, intent, hasPaymentsBlock, hasSeenSellerCelebrationModal, updateHasSeenSellerCelebrationModal]); // if save state has changed and was saving on last render
|
6442 |
// then it has finished saving
|
6443 |
// open modal if content has sell block,
|
6444 |
|
6445 |
const closeModal = () => setIsModalOpen(false);
|
6446 |
|
6447 |
-
return (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(
|
6448 |
isOpen: isModalOpen,
|
6449 |
className: "wpcom-site-editor-seller-celebration-modal",
|
6450 |
title: __("You've added your first product!", 'full-site-editing'),
|
6451 |
description: __('Preview your product on your site before launching and sharing with others.', 'full-site-editing'),
|
6452 |
-
imageSrc:
|
6453 |
actionButtons: (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__.Button, {
|
6454 |
onClick: closeModal
|
6455 |
}, __('Continue editing', 'full-site-editing')), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__.Button, {
|
@@ -6464,7 +6548,7 @@ const SellerCelebrationModalInner = () => {
|
|
6464 |
};
|
6465 |
|
6466 |
const SellerCelebrationModal = () => {
|
6467 |
-
const intent = (0,
|
6468 |
|
6469 |
if (intent === 'sell') {
|
6470 |
return (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(SellerCelebrationModalInner, null);
|
5810 |
|
5811 |
/***/ }),
|
5812 |
|
5813 |
+
/***/ 8941:
|
5814 |
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
5815 |
+
|
5816 |
+
"use strict";
|
5817 |
+
/* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9818);
|
5818 |
+
/* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_data__WEBPACK_IMPORTED_MODULE_0__);
|
5819 |
+
/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(9307);
|
5820 |
+
/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__);
|
5821 |
+
|
5822 |
+
|
5823 |
+
/**
|
5824 |
+
* Watch the user's block selection and keep a note if they ever select a payments
|
5825 |
+
* block.
|
5826 |
+
* A payments block is any block with 'payments' in the name, like jetpack/simple-payments
|
5827 |
+
* or jetpack/recurring-payments.
|
5828 |
+
* Selecting a block whose direct parent has 'payments' in the name also counts.
|
5829 |
+
* This is to account for clicking inside the button in a payments block, for example.
|
5830 |
+
*
|
5831 |
+
* @returns {boolean} Has the user selected a payments block (or a direct descendant) at least once?
|
5832 |
+
*/
|
5833 |
+
|
5834 |
+
const useHasSelectedPaymentBlockOnce = () => {
|
5835 |
+
const [hasSelectedPaymentsOnce, setHasSelectedPaymentsOnce] = (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_1__.useState)(false); // Get the name of the currently selected block
|
5836 |
+
|
5837 |
+
const selectedBlockName = (0,_wordpress_data__WEBPACK_IMPORTED_MODULE_0__.useSelect)(select => {
|
5838 |
+
// Special case: We know we're returning true, so we don't need to find block names.
|
5839 |
+
if (hasSelectedPaymentsOnce) {
|
5840 |
+
return '';
|
5841 |
+
}
|
5842 |
+
|
5843 |
+
const selectedBlock = select('core/block-editor').getSelectedBlock();
|
5844 |
+
return (selectedBlock === null || selectedBlock === void 0 ? void 0 : selectedBlock.name) ?? '';
|
5845 |
+
}); // Get the name of the currently selected block's direct parent, if one exists
|
5846 |
+
|
5847 |
+
const parentSelectedBlockName = (0,_wordpress_data__WEBPACK_IMPORTED_MODULE_0__.useSelect)(select => {
|
5848 |
+
// Special case: We know we're returning true, so we don't need to find block names.
|
5849 |
+
if (hasSelectedPaymentsOnce) {
|
5850 |
+
return '';
|
5851 |
+
}
|
5852 |
+
|
5853 |
+
const selectedBlock = select('core/block-editor').getSelectedBlock();
|
5854 |
+
|
5855 |
+
if (selectedBlock !== null && selectedBlock !== void 0 && selectedBlock.clientId) {
|
5856 |
+
const parentIds = select('core/block-editor').getBlockParents(selectedBlock === null || selectedBlock === void 0 ? void 0 : selectedBlock.clientId);
|
5857 |
+
|
5858 |
+
if (parentIds && parentIds.length) {
|
5859 |
+
const parent = select('core/block-editor').getBlock(parentIds[parentIds.length - 1]);
|
5860 |
+
return (parent === null || parent === void 0 ? void 0 : parent.name) ?? '';
|
5861 |
+
}
|
5862 |
+
}
|
5863 |
+
|
5864 |
+
return '';
|
5865 |
+
}); // On selection change, set hasSelectedPaymentsOnce=true if block name or parent's block name contains 'payments'
|
5866 |
+
|
5867 |
+
(0,_wordpress_element__WEBPACK_IMPORTED_MODULE_1__.useEffect)(() => {
|
5868 |
+
if (!hasSelectedPaymentsOnce && (selectedBlockName.includes('payments') || parentSelectedBlockName.includes('payments'))) {
|
5869 |
+
setHasSelectedPaymentsOnce(true);
|
5870 |
+
}
|
5871 |
+
}, [selectedBlockName, parentSelectedBlockName, hasSelectedPaymentsOnce, setHasSelectedPaymentsOnce]);
|
5872 |
+
return hasSelectedPaymentsOnce;
|
5873 |
+
};
|
5874 |
+
|
5875 |
+
/* harmony default export */ __webpack_exports__["Z"] = (useHasSelectedPaymentBlockOnce);
|
5876 |
+
|
5877 |
+
/***/ }),
|
5878 |
+
|
5879 |
/***/ 5262:
|
5880 |
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
5881 |
|
6415 |
/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(5736);
|
6416 |
/* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__);
|
6417 |
/* harmony import */ var _dotcom_fse_lib_seller_celebration_modal_use_has_seen_seller_celebration_modal__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(3133);
|
6418 |
+
/* harmony import */ var _dotcom_fse_lib_seller_celebration_modal_use_has_selected_payment_block_once__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(8941);
|
6419 |
+
/* harmony import */ var _dotcom_fse_lib_site_intent_use_site_intent__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(5262);
|
6420 |
+
/* harmony import */ var _nux_modal__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(3634);
|
6421 |
+
/* harmony import */ var _images_product_published_svg__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(4242);
|
6422 |
+
/* harmony import */ var _style_scss__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(4373);
|
6423 |
|
6424 |
|
6425 |
|
6432 |
|
6433 |
|
6434 |
|
6435 |
+
|
6436 |
/**
|
6437 |
* Show the seller celebration modal
|
6438 |
*/
|
6457 |
// - editor has not yet displayed modal once (check)
|
6458 |
// - user is a seller (check)
|
6459 |
// - user has not saved site before
|
6460 |
+
// - content includes product block, and a user has selected it at least once (check)
|
6461 |
|
6462 |
const [isModalOpen, setIsModalOpen] = (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.useState)(false);
|
6463 |
const [hasDisplayedModal, setHasDisplayedModal] = (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.useState)(false);
|
6464 |
const isSiteEditor = (0,_wordpress_data__WEBPACK_IMPORTED_MODULE_3__.useSelect)(select => !!select('core/edit-site'));
|
6465 |
const previousIsEditorSaving = (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.useRef)(false);
|
6466 |
+
const hasSelectedPaymentsOnce = (0,_dotcom_fse_lib_seller_celebration_modal_use_has_selected_payment_block_once__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z)();
|
6467 |
+
const {
|
6468 |
+
hasSeenSellerCelebrationModal,
|
6469 |
+
updateHasSeenSellerCelebrationModal
|
6470 |
+
} = (0,_dotcom_fse_lib_seller_celebration_modal_use_has_seen_seller_celebration_modal__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z)();
|
6471 |
const {
|
6472 |
isEditorSaving,
|
6473 |
hasPaymentsBlock,
|
6474 |
linkUrl
|
6475 |
} = (0,_wordpress_data__WEBPACK_IMPORTED_MODULE_3__.useSelect)(select => {
|
6476 |
if (isSiteEditor) {
|
6477 |
+
var _page$context;
|
6478 |
|
6479 |
const isSavingSite = select('core').isSavingEntityRecord('root', 'site') && !select('core').isAutosavingEntityRecord('root', 'site');
|
6480 |
const page = select('core/edit-site').getPage();
|
6481 |
const pageId = parseInt(page === null || page === void 0 ? void 0 : (_page$context = page.context) === null || _page$context === void 0 ? void 0 : _page$context.postId);
|
6482 |
const isSavingEntity = select('core').isSavingEntityRecord('postType', 'page', pageId) && !select('core').isAutosavingEntityRecord('postType', 'page', pageId);
|
6483 |
const pageEntity = select('core').getEntityRecord('postType', 'page', pageId);
|
6484 |
+
let paymentsBlock = false; // Only check for payment blocks if we haven't seen the celebration modal text yet
|
6485 |
+
|
6486 |
+
if (!hasSeenSellerCelebrationModal) {
|
6487 |
+
var _pageEntity$content, _pageEntity$content$r, _pageEntity$content2, _pageEntity$content2$;
|
6488 |
+
|
6489 |
+
const didCountRecurringPayments = select('core/block-editor').getGlobalBlockCount('jetpack/recurring-payments') > 0;
|
6490 |
+
const didCountSimplePayments = select('core/block-editor').getGlobalBlockCount('jetpack/simple-payments') > 0;
|
6491 |
+
paymentsBlock = ((pageEntity === null || pageEntity === void 0 ? void 0 : (_pageEntity$content = pageEntity.content) === null || _pageEntity$content === void 0 ? void 0 : (_pageEntity$content$r = _pageEntity$content.raw) === null || _pageEntity$content$r === void 0 ? void 0 : _pageEntity$content$r.includes('<!-- wp:jetpack/recurring-payments -->')) || (pageEntity === null || pageEntity === void 0 ? void 0 : (_pageEntity$content2 = pageEntity.content) === null || _pageEntity$content2 === void 0 ? void 0 : (_pageEntity$content2$ = _pageEntity$content2.raw) === null || _pageEntity$content2$ === void 0 ? void 0 : _pageEntity$content2$.includes('<!-- wp:jetpack/simple-payments -->')) || didCountRecurringPayments || didCountSimplePayments) ?? false;
|
6492 |
+
}
|
6493 |
+
|
6494 |
return {
|
6495 |
isEditorSaving: isSavingSite || isSavingEntity,
|
6496 |
hasPaymentsBlock: paymentsBlock,
|
6500 |
|
6501 |
const currentPost = select('core/editor').getCurrentPost();
|
6502 |
const isSavingEntity = select('core').isSavingEntityRecord('postType', currentPost === null || currentPost === void 0 ? void 0 : currentPost.type, currentPost === null || currentPost === void 0 ? void 0 : currentPost.id) && !select('core').isAutosavingEntityRecord('postType', currentPost === null || currentPost === void 0 ? void 0 : currentPost.type, currentPost === null || currentPost === void 0 ? void 0 : currentPost.id);
|
6503 |
+
let paymentBlockCount = 0; // Only check for payment blocks if we haven't seen the celebration modal yet
|
6504 |
+
|
6505 |
+
if (!hasSeenSellerCelebrationModal) {
|
6506 |
+
paymentBlockCount += select('core/block-editor').getGlobalBlockCount('jetpack/recurring-payments');
|
6507 |
+
paymentBlockCount += select('core/block-editor').getGlobalBlockCount('jetpack/simple-payments');
|
6508 |
+
}
|
6509 |
+
|
6510 |
return {
|
6511 |
isEditorSaving: isSavingEntity,
|
6512 |
+
hasPaymentsBlock: paymentBlockCount > 0,
|
6513 |
linkUrl: currentPost.link
|
6514 |
};
|
6515 |
});
|
6516 |
+
const intent = (0,_dotcom_fse_lib_site_intent_use_site_intent__WEBPACK_IMPORTED_MODULE_7__/* ["default"] */ .Z)();
|
|
|
|
|
|
|
|
|
6517 |
(0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.useEffect)(() => {
|
6518 |
+
if (!isEditorSaving && previousIsEditorSaving.current && !hasDisplayedModal && intent === 'sell' && hasPaymentsBlock && hasSelectedPaymentsOnce && !hasSeenSellerCelebrationModal) {
|
6519 |
setIsModalOpen(true);
|
6520 |
setHasDisplayedModal(true);
|
6521 |
updateHasSeenSellerCelebrationModal(true);
|
6522 |
}
|
6523 |
|
6524 |
previousIsEditorSaving.current = isEditorSaving;
|
6525 |
+
}, [isEditorSaving, hasDisplayedModal, intent, hasPaymentsBlock, hasSelectedPaymentsOnce, hasSeenSellerCelebrationModal, updateHasSeenSellerCelebrationModal]); // if save state has changed and was saving on last render
|
6526 |
// then it has finished saving
|
6527 |
// open modal if content has sell block,
|
6528 |
|
6529 |
const closeModal = () => setIsModalOpen(false);
|
6530 |
|
6531 |
+
return (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_nux_modal__WEBPACK_IMPORTED_MODULE_8__/* ["default"] */ .Z, {
|
6532 |
isOpen: isModalOpen,
|
6533 |
className: "wpcom-site-editor-seller-celebration-modal",
|
6534 |
title: __("You've added your first product!", 'full-site-editing'),
|
6535 |
description: __('Preview your product on your site before launching and sharing with others.', 'full-site-editing'),
|
6536 |
+
imageSrc: _images_product_published_svg__WEBPACK_IMPORTED_MODULE_9__,
|
6537 |
actionButtons: (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__.Button, {
|
6538 |
onClick: closeModal
|
6539 |
}, __('Continue editing', 'full-site-editing')), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__.Button, {
|
6548 |
};
|
6549 |
|
6550 |
const SellerCelebrationModal = () => {
|
6551 |
+
const intent = (0,_dotcom_fse_lib_site_intent_use_site_intent__WEBPACK_IMPORTED_MODULE_7__/* ["default"] */ .Z)();
|
6552 |
|
6553 |
if (intent === 'sell') {
|
6554 |
return (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(SellerCelebrationModalInner, null);
|
wpcom-block-editor-nux/dist/wpcom-block-editor-nux.min.js
CHANGED
@@ -1,9 +1,9 @@
|
|
1 |
-
!function(){var e={7566:function(e,t,n){"use strict";n.d(t,{kZ:function(){return f}});var o=n(2140),r=n(6249),i=n(1119),s=n(7936),a=n(421),c=n(4806),u=n(3352),l=n(8555),d={placement:"bottom",modifiers:[],strategy:"absolute"};function p(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some((function(e){return!(e&&"function"==typeof e.getBoundingClientRect)}))}function f(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,f=void 0===n?[]:n,m=t.defaultOptions,h=void 0===m?d:m;return function(e,t,n){void 0===n&&(n=h);var m={placement:"bottom",orderedModifiers:[],options:Object.assign({},d,h),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},g=[],v=!1,w={state:m,setOptions:function(n){var o="function"==typeof n?n(m.options):n;y(),m.options=Object.assign({},h,m.options,o),m.scrollParents={reference:(0,l.kK)(e)?(0,i.Z)(e):e.contextElement?(0,i.Z)(e.contextElement):[],popper:(0,i.Z)(t)};var r=(0,a.Z)((0,u.Z)([].concat(f,m.options.modifiers)));return m.orderedModifiers=r.filter((function(e){return e.enabled})),m.orderedModifiers.forEach((function(e){var t=e.name,n=e.options,o=void 0===n?{}:n,r=e.effect;if("function"==typeof r){var i=r({state:m,name:t,instance:w,options:o}),s=function(){};g.push(i||s)}})),w.update()},forceUpdate:function(){if(!v){var e=m.elements,t=e.reference,n=e.popper;if(p(t,n)){m.rects={reference:(0,o.Z)(t,(0,s.Z)(n),"fixed"===m.options.strategy),popper:(0,r.Z)(n)},m.reset=!1,m.placement=m.options.placement,m.orderedModifiers.forEach((function(e){return m.modifiersData[e.name]=Object.assign({},e.data)}));for(var i=0;i<m.orderedModifiers.length;i++)if(!0!==m.reset){var a=m.orderedModifiers[i],c=a.fn,u=a.options,l=void 0===u?{}:u,d=a.name;"function"==typeof c&&(m=c({state:m,options:l,name:d,instance:w})||m)}else m.reset=!1,i=-1}}},update:(0,c.Z)((function(){return new Promise((function(e){w.forceUpdate(),e(m)}))})),destroy:function(){y(),v=!0}};if(!p(e,t))return w;function y(){g.forEach((function(e){return e()})),g=[]}return w.setOptions(n).then((function(e){!v&&n.onFirstUpdate&&n.onFirstUpdate(e)})),w}}},5350:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});var o=n(8555);function r(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&(0,o.Zq)(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}},2881:function(e,t,n){"use strict";function o(e,t){void 0===t&&(t=!1);var n=e.getBoundingClientRect();return{width:n.width/1,height:n.height/1,top:n.top/1,right:n.right/1,bottom:n.bottom/1,left:n.left/1,x:n.left/1,y:n.top/1}}n.d(t,{Z:function(){return o}})},889:function(e,t,n){"use strict";n.d(t,{Z:function(){return w}});var o=n(6166),r=n(4691),i=n(6764),s=n(1119),a=n(7936),c=n(2021),u=n(9546),l=n(8555),d=n(2881),p=n(2882),f=n(5350),m=n(98),h=n(7365),g=n(8072);function v(e,t){return t===o.Pj?(0,h.Z)((0,r.Z)(e)):(0,l.Re)(t)?function(e){var t=(0,d.Z)(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}(t):(0,h.Z)((0,i.Z)((0,c.Z)(e)))}function w(e,t,n){var o="clippingParents"===t?function(e){var t=(0,s.Z)((0,p.Z)(e)),n=["absolute","fixed"].indexOf((0,u.Z)(e).position)>=0&&(0,l.Re)(e)?(0,a.Z)(e):e;return(0,l.kK)(n)?t.filter((function(e){return(0,l.kK)(e)&&(0,f.Z)(e,n)&&"body"!==(0,m.Z)(e)})):[]}(e):[].concat(t),r=[].concat(o,[n]),i=r[0],c=r.reduce((function(t,n){var o=v(e,n);return t.top=(0,g.Fp)(o.top,t.top),t.right=(0,g.VV)(o.right,t.right),t.bottom=(0,g.VV)(o.bottom,t.bottom),t.left=(0,g.Fp)(o.left,t.left),t}),v(e,i));return c.width=c.right-c.left,c.height=c.bottom-c.top,c.x=c.left,c.y=c.top,c}},2140:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var o=n(2881),r=n(6637),i=n(98),s=n(8555),a=n(1051),c=n(2021),u=n(8519);function l(e,t,n){void 0===n&&(n=!1);var l=(0,s.Re)(t),d=(0,s.Re)(t)&&function(e){var t=e.getBoundingClientRect(),n=t.width/e.offsetWidth||1,o=t.height/e.offsetHeight||1;return 1!==n||1!==o}(t),p=(0,c.Z)(t),f=(0,o.Z)(e,d),m={scrollLeft:0,scrollTop:0},h={x:0,y:0};return(l||!l&&!n)&&(("body"!==(0,i.Z)(t)||(0,u.Z)(p))&&(m=(0,r.Z)(t)),(0,s.Re)(t)?((h=(0,o.Z)(t,!0)).x+=t.clientLeft,h.y+=t.clientTop):p&&(h.x=(0,a.Z)(p))),{x:f.left+m.scrollLeft-h.x,y:f.top+m.scrollTop-h.y,width:f.width,height:f.height}}},9546:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});var o=n(3189);function r(e){return(0,o.Z)(e).getComputedStyle(e)}},2021:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});var o=n(8555);function r(e){return(((0,o.kK)(e)?e.ownerDocument:e.document)||window.document).documentElement}},6764:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var o=n(2021),r=n(9546),i=n(1051),s=n(5392),a=n(8072);function c(e){var t,n=(0,o.Z)(e),c=(0,s.Z)(e),u=null==(t=e.ownerDocument)?void 0:t.body,l=(0,a.Fp)(n.scrollWidth,n.clientWidth,u?u.scrollWidth:0,u?u.clientWidth:0),d=(0,a.Fp)(n.scrollHeight,n.clientHeight,u?u.scrollHeight:0,u?u.clientHeight:0),p=-c.scrollLeft+(0,i.Z)(e),f=-c.scrollTop;return"rtl"===(0,r.Z)(u||n).direction&&(p+=(0,a.Fp)(n.clientWidth,u?u.clientWidth:0)-l),{width:l,height:d,x:p,y:f}}},812:function(e,t,n){"use strict";function o(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}n.d(t,{Z:function(){return o}})},6249:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});var o=n(2881);function r(e){var t=(0,o.Z)(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}},98:function(e,t,n){"use strict";function o(e){return e?(e.nodeName||"").toLowerCase():null}n.d(t,{Z:function(){return o}})},6637:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var o=n(5392),r=n(3189),i=n(8555),s=n(812);function a(e){return e!==(0,r.Z)(e)&&(0,i.Re)(e)?(0,s.Z)(e):(0,o.Z)(e)}},7936:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var o=n(3189),r=n(98),i=n(9546),s=n(8555),a=n(1725),c=n(2882);function u(e){return(0,s.Re)(e)&&"fixed"!==(0,i.Z)(e).position?e.offsetParent:null}function l(e){for(var t=(0,o.Z)(e),n=u(e);n&&(0,a.Z)(n)&&"static"===(0,i.Z)(n).position;)n=u(n);return n&&("html"===(0,r.Z)(n)||"body"===(0,r.Z)(n)&&"static"===(0,i.Z)(n).position)?t:n||function(e){var t=-1!==navigator.userAgent.toLowerCase().indexOf("firefox");if(-1!==navigator.userAgent.indexOf("Trident")&&(0,s.Re)(e)&&"fixed"===(0,i.Z)(e).position)return null;for(var n=(0,c.Z)(e);(0,s.Re)(n)&&["html","body"].indexOf((0,r.Z)(n))<0;){var o=(0,i.Z)(n);if("none"!==o.transform||"none"!==o.perspective||"paint"===o.contain||-1!==["transform","perspective"].indexOf(o.willChange)||t&&"filter"===o.willChange||t&&o.filter&&"none"!==o.filter)return n;n=n.parentNode}return null}(e)||t}},2882:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var o=n(98),r=n(2021),i=n(8555);function s(e){return"html"===(0,o.Z)(e)?e:e.assignedSlot||e.parentNode||((0,i.Zq)(e)?e.host:null)||(0,r.Z)(e)}},7915:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var o=n(2882),r=n(8519),i=n(98),s=n(8555);function a(e){return["html","body","#document"].indexOf((0,i.Z)(e))>=0?e.ownerDocument.body:(0,s.Re)(e)&&(0,r.Z)(e)?e:a((0,o.Z)(e))}},4691:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var o=n(3189),r=n(2021),i=n(1051);function s(e){var t=(0,o.Z)(e),n=(0,r.Z)(e),s=t.visualViewport,a=n.clientWidth,c=n.clientHeight,u=0,l=0;return s&&(a=s.width,c=s.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(u=s.offsetLeft,l=s.offsetTop)),{width:a,height:c,x:u+(0,i.Z)(e),y:l}}},3189:function(e,t,n){"use strict";function o(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}n.d(t,{Z:function(){return o}})},5392:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});var o=n(3189);function r(e){var t=(0,o.Z)(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}},1051:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var o=n(2881),r=n(2021),i=n(5392);function s(e){return(0,o.Z)((0,r.Z)(e)).left+(0,i.Z)(e).scrollLeft}},8555:function(e,t,n){"use strict";n.d(t,{kK:function(){return r},Re:function(){return i},Zq:function(){return s}});var o=n(3189);function r(e){return e instanceof(0,o.Z)(e).Element||e instanceof Element}function i(e){return e instanceof(0,o.Z)(e).HTMLElement||e instanceof HTMLElement}function s(e){return"undefined"!=typeof ShadowRoot&&(e instanceof(0,o.Z)(e).ShadowRoot||e instanceof ShadowRoot)}},8519:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});var o=n(9546);function r(e){var t=(0,o.Z)(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}},1725:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});var o=n(98);function r(e){return["table","td","th"].indexOf((0,o.Z)(e))>=0}},1119:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var o=n(7915),r=n(2882),i=n(3189),s=n(8519);function a(e,t){var n;void 0===t&&(t=[]);var c=(0,o.Z)(e),u=c===(null==(n=e.ownerDocument)?void 0:n.body),l=(0,i.Z)(c),d=u?[l].concat(l.visualViewport||[],(0,s.Z)(c)?c:[]):c,p=t.concat(d);return u?p:p.concat(a((0,r.Z)(d)))}},6166:function(e,t,n){"use strict";n.d(t,{we:function(){return o},I:function(){return r},F2:function(){return i},t$:function(){return s},d7:function(){return a},mv:function(){return c},BL:function(){return u},ut:function(){return l},zV:function(){return d},Pj:function(){return p},k5:function(){return f},YP:function(){return m},bw:function(){return h},Ct:function(){return g},xs:function(){return v}});var o="top",r="bottom",i="right",s="left",a="auto",c=[o,r,i,s],u="start",l="end",d="clippingParents",p="viewport",f="popper",m="reference",h=c.reduce((function(e,t){return e.concat([t+"-"+u,t+"-"+l])}),[]),g=[].concat(c,[a]).reduce((function(e,t){return e.concat([t,t+"-"+u,t+"-"+l])}),[]),v=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"]},1414:function(e,t,n){"use strict";var o=n(98),r=n(8555);t.Z={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},i=t.attributes[e]||{},s=t.elements[e];(0,r.Re)(s)&&(0,o.Z)(s)&&(Object.assign(s.style,n),Object.keys(i).forEach((function(e){var t=i[e];!1===t?s.removeAttribute(e):s.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var i=t.elements[e],s=t.attributes[e]||{},a=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});(0,r.Re)(i)&&(0,o.Z)(i)&&(Object.assign(i.style,a),Object.keys(s).forEach((function(e){i.removeAttribute(e)})))}))}},requires:["computeStyles"]}},335:function(e,t,n){"use strict";var o=n(7677),r=n(6249),i=n(5350),s=n(7936),a=n(1505),c=n(964),u=n(6713),l=n(315),d=n(6166);t.Z={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,i=e.name,p=e.options,f=n.elements.arrow,m=n.modifiersData.popperOffsets,h=(0,o.Z)(n.placement),g=(0,a.Z)(h),v=[d.t$,d.F2].indexOf(h)>=0?"height":"width";if(f&&m){var w=function(e,t){return e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e,(0,u.Z)("number"!=typeof e?e:(0,l.Z)(e,d.mv))}(p.padding,n),y=(0,r.Z)(f),b="y"===g?d.we:d.t$,_="y"===g?d.I:d.F2,E=n.rects.reference[v]+n.rects.reference[g]-m[g]-n.rects.popper[v],x=m[g]-n.rects.reference[g],k=(0,s.Z)(f),S=k?"y"===g?k.clientHeight||0:k.clientWidth||0:0,Z=E/2-x/2,C=w[b],O=S-y[v]-w[_],P=S/2-y[v]/2+Z,M=(0,c.Z)(C,P,O),L=g;n.modifiersData[i]=((t={})[L]=M,t.centerOffset=M-P,t)}},effect:function(e){var t=e.state,n=e.options.element,o=void 0===n?"[data-popper-arrow]":n;null!=o&&("string"!=typeof o||(o=t.elements.popper.querySelector(o)))&&(0,i.Z)(t.elements.popper,o)&&(t.elements.arrow=o)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]}},917:function(e,t,n){"use strict";var o=n(6166),r=n(7936),i=n(3189),s=n(2021),a=n(9546),c=n(7677),u=n(4531),l=n(8072),d={top:"auto",right:"auto",bottom:"auto",left:"auto"};function p(e){var t,n=e.popper,c=e.popperRect,u=e.placement,p=e.variation,f=e.offsets,m=e.position,h=e.gpuAcceleration,g=e.adaptive,v=e.roundOffsets,w=!0===v?function(e){var t=e.x,n=e.y,o=window.devicePixelRatio||1;return{x:(0,l.NM)((0,l.NM)(t*o)/o)||0,y:(0,l.NM)((0,l.NM)(n*o)/o)||0}}(f):"function"==typeof v?v(f):f,y=w.x,b=void 0===y?0:y,_=w.y,E=void 0===_?0:_,x=f.hasOwnProperty("x"),k=f.hasOwnProperty("y"),S=o.t$,Z=o.we,C=window;if(g){var O=(0,r.Z)(n),P="clientHeight",M="clientWidth";O===(0,i.Z)(n)&&(O=(0,s.Z)(n),"static"!==(0,a.Z)(O).position&&"absolute"===m&&(P="scrollHeight",M="scrollWidth")),O=O,u!==o.we&&(u!==o.t$&&u!==o.F2||p!==o.ut)||(Z=o.I,E-=O[P]-c.height,E*=h?1:-1),u!==o.t$&&(u!==o.we&&u!==o.I||p!==o.ut)||(S=o.F2,b-=O[M]-c.width,b*=h?1:-1)}var L,F=Object.assign({position:m},g&&d);return h?Object.assign({},F,((L={})[Z]=k?"0":"",L[S]=x?"0":"",L.transform=(C.devicePixelRatio||1)<=1?"translate("+b+"px, "+E+"px)":"translate3d("+b+"px, "+E+"px, 0)",L)):Object.assign({},F,((t={})[Z]=k?E+"px":"",t[S]=x?b+"px":"",t.transform="",t))}t.Z={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,o=n.gpuAcceleration,r=void 0===o||o,i=n.adaptive,s=void 0===i||i,a=n.roundOffsets,l=void 0===a||a,d={placement:(0,c.Z)(t.placement),variation:(0,u.Z)(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:r};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,p(Object.assign({},d,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,p(Object.assign({},d,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}}},3191:function(e,t,n){"use strict";var o=n(3189),r={passive:!0};t.Z={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,i=e.options,s=i.scroll,a=void 0===s||s,c=i.resize,u=void 0===c||c,l=(0,o.Z)(t.elements.popper),d=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&d.forEach((function(e){e.addEventListener("scroll",n.update,r)})),u&&l.addEventListener("resize",n.update,r),function(){a&&d.forEach((function(e){e.removeEventListener("scroll",n.update,r)})),u&&l.removeEventListener("resize",n.update,r)}},data:{}}},5207:function(e,t,n){"use strict";var o=n(942),r=n(7677),i=n(12),s=n(9356),a=n(7826),c=n(6166),u=n(4531);t.Z={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,l=e.name;if(!t.modifiersData[l]._skip){for(var d=n.mainAxis,p=void 0===d||d,f=n.altAxis,m=void 0===f||f,h=n.fallbackPlacements,g=n.padding,v=n.boundary,w=n.rootBoundary,y=n.altBoundary,b=n.flipVariations,_=void 0===b||b,E=n.allowedAutoPlacements,x=t.options.placement,k=(0,r.Z)(x),S=h||(k===x||!_?[(0,o.Z)(x)]:function(e){if((0,r.Z)(e)===c.d7)return[];var t=(0,o.Z)(e);return[(0,i.Z)(e),t,(0,i.Z)(t)]}(x)),Z=[x].concat(S).reduce((function(e,n){return e.concat((0,r.Z)(n)===c.d7?(0,a.Z)(t,{placement:n,boundary:v,rootBoundary:w,padding:g,flipVariations:_,allowedAutoPlacements:E}):n)}),[]),C=t.rects.reference,O=t.rects.popper,P=new Map,M=!0,L=Z[0],F=0;F<Z.length;F++){var R=Z[F],T=(0,r.Z)(R),j=(0,u.Z)(R)===c.BL,N=[c.we,c.I].indexOf(T)>=0,A=N?"width":"height",z=(0,s.Z)(t,{placement:R,boundary:v,rootBoundary:w,altBoundary:y,padding:g}),I=N?j?c.F2:c.t$:j?c.I:c.we;C[A]>O[A]&&(I=(0,o.Z)(I));var D=(0,o.Z)(I),W=[];if(p&&W.push(z[T]<=0),m&&W.push(z[I]<=0,z[D]<=0),W.every((function(e){return e}))){L=R,M=!1;break}P.set(R,W)}if(M)for(var G=function(e){var t=Z.find((function(t){var n=P.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return L=t,"break"},B=_?3:1;B>0;B--){if("break"===G(B))break}t.placement!==L&&(t.modifiersData[l]._skip=!0,t.placement=L,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}}},2883:function(e,t,n){"use strict";var o=n(6166),r=n(9356);function i(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function s(e){return[o.we,o.F2,o.I,o.t$].some((function(t){return e[t]>=0}))}t.Z={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,o=t.rects.reference,a=t.rects.popper,c=t.modifiersData.preventOverflow,u=(0,r.Z)(t,{elementContext:"reference"}),l=(0,r.Z)(t,{altBoundary:!0}),d=i(u,o),p=i(l,a,c),f=s(d),m=s(p);t.modifiersData[n]={referenceClippingOffsets:d,popperEscapeOffsets:p,isReferenceHidden:f,hasPopperEscaped:m},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":f,"data-popper-escaped":m})}}},3108:function(e,t,n){"use strict";var o=n(7677),r=n(6166);t.Z={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,i=e.name,s=n.offset,a=void 0===s?[0,0]:s,c=r.Ct.reduce((function(e,n){return e[n]=function(e,t,n){var i=(0,o.Z)(e),s=[r.t$,r.we].indexOf(i)>=0?-1:1,a="function"==typeof n?n(Object.assign({},t,{placement:e})):n,c=a[0],u=a[1];return c=c||0,u=(u||0)*s,[r.t$,r.F2].indexOf(i)>=0?{x:u,y:c}:{x:c,y:u}}(n,t.rects,a),e}),{}),u=c[t.placement],l=u.x,d=u.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=d),t.modifiersData[i]=c}}},5435:function(e,t,n){"use strict";var o=n(6919);t.Z={name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=(0,o.Z)({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}}},6998:function(e,t,n){"use strict";var o=n(6166),r=n(7677),i=n(1505),s=n(5754),a=n(964),c=n(6249),u=n(7936),l=n(9356),d=n(4531),p=n(3046),f=n(8072);t.Z={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,m=e.name,h=n.mainAxis,g=void 0===h||h,v=n.altAxis,w=void 0!==v&&v,y=n.boundary,b=n.rootBoundary,_=n.altBoundary,E=n.padding,x=n.tether,k=void 0===x||x,S=n.tetherOffset,Z=void 0===S?0:S,C=(0,l.Z)(t,{boundary:y,rootBoundary:b,padding:E,altBoundary:_}),O=(0,r.Z)(t.placement),P=(0,d.Z)(t.placement),M=!P,L=(0,i.Z)(O),F=(0,s.Z)(L),R=t.modifiersData.popperOffsets,T=t.rects.reference,j=t.rects.popper,N="function"==typeof Z?Z(Object.assign({},t.rects,{placement:t.placement})):Z,A={x:0,y:0};if(R){if(g||w){var z="y"===L?o.we:o.t$,I="y"===L?o.I:o.F2,D="y"===L?"height":"width",W=R[L],G=R[L]+C[z],B=R[L]-C[I],U=k?-j[D]/2:0,$=P===o.BL?T[D]:j[D],H=P===o.BL?-j[D]:-T[D],V=t.elements.arrow,q=k&&V?(0,c.Z)(V):{width:0,height:0},Y=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:(0,p.Z)(),K=Y[z],Q=Y[I],X=(0,a.Z)(0,T[D],q[D]),J=M?T[D]/2-U-X-K-N:$-X-K-N,ee=M?-T[D]/2+U+X+Q+N:H+X+Q+N,te=t.elements.arrow&&(0,u.Z)(t.elements.arrow),ne=te?"y"===L?te.clientTop||0:te.clientLeft||0:0,oe=t.modifiersData.offset?t.modifiersData.offset[t.placement][L]:0,re=R[L]+J-oe-ne,ie=R[L]+ee-oe;if(g){var se=(0,a.Z)(k?(0,f.VV)(G,re):G,W,k?(0,f.Fp)(B,ie):B);R[L]=se,A[L]=se-W}if(w){var ae="x"===L?o.we:o.t$,ce="x"===L?o.I:o.F2,ue=R[F],le=ue+C[ae],de=ue-C[ce],pe=(0,a.Z)(k?(0,f.VV)(le,re):le,ue,k?(0,f.Fp)(de,ie):de);R[F]=pe,A[F]=pe-ue}}t.modifiersData[m]=A}},requiresIfExists:["offset"]}},7295:function(e,t,n){"use strict";n.d(t,{fi:function(){return m}});var o=n(7566),r=n(3191),i=n(5435),s=n(917),a=n(1414),c=n(3108),u=n(5207),l=n(6998),d=n(335),p=n(2883),f=[r.Z,i.Z,s.Z,a.Z,c.Z,u.Z,l.Z,d.Z,p.Z],m=(0,o.kZ)({defaultModifiers:f})},7826:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var o=n(4531),r=n(6166),i=n(9356),s=n(7677);function a(e,t){void 0===t&&(t={});var n=t,a=n.placement,c=n.boundary,u=n.rootBoundary,l=n.padding,d=n.flipVariations,p=n.allowedAutoPlacements,f=void 0===p?r.Ct:p,m=(0,o.Z)(a),h=m?d?r.bw:r.bw.filter((function(e){return(0,o.Z)(e)===m})):r.mv,g=h.filter((function(e){return f.indexOf(e)>=0}));0===g.length&&(g=h);var v=g.reduce((function(t,n){return t[n]=(0,i.Z)(e,{placement:n,boundary:c,rootBoundary:u,padding:l})[(0,s.Z)(n)],t}),{});return Object.keys(v).sort((function(e,t){return v[e]-v[t]}))}},6919:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var o=n(7677),r=n(4531),i=n(1505),s=n(6166);function a(e){var t,n=e.reference,a=e.element,c=e.placement,u=c?(0,o.Z)(c):null,l=c?(0,r.Z)(c):null,d=n.x+n.width/2-a.width/2,p=n.y+n.height/2-a.height/2;switch(u){case s.we:t={x:d,y:n.y-a.height};break;case s.I:t={x:d,y:n.y+n.height};break;case s.F2:t={x:n.x+n.width,y:p};break;case s.t$:t={x:n.x-a.width,y:p};break;default:t={x:n.x,y:n.y}}var f=u?(0,i.Z)(u):null;if(null!=f){var m="y"===f?"height":"width";switch(l){case s.BL:t[f]=t[f]-(n[m]/2-a[m]/2);break;case s.ut:t[f]=t[f]+(n[m]/2-a[m]/2)}}return t}},4806:function(e,t,n){"use strict";function o(e){var t;return function(){return t||(t=new Promise((function(n){Promise.resolve().then((function(){t=void 0,n(e())}))}))),t}}n.d(t,{Z:function(){return o}})},9356:function(e,t,n){"use strict";n.d(t,{Z:function(){return p}});var o=n(889),r=n(2021),i=n(2881),s=n(6919),a=n(7365),c=n(6166),u=n(8555),l=n(6713),d=n(315);function p(e,t){void 0===t&&(t={});var n=t,p=n.placement,f=void 0===p?e.placement:p,m=n.boundary,h=void 0===m?c.zV:m,g=n.rootBoundary,v=void 0===g?c.Pj:g,w=n.elementContext,y=void 0===w?c.k5:w,b=n.altBoundary,_=void 0!==b&&b,E=n.padding,x=void 0===E?0:E,k=(0,l.Z)("number"!=typeof x?x:(0,d.Z)(x,c.mv)),S=y===c.k5?c.YP:c.k5,Z=e.rects.popper,C=e.elements[_?S:y],O=(0,o.Z)((0,u.kK)(C)?C:C.contextElement||(0,r.Z)(e.elements.popper),h,v),P=(0,i.Z)(e.elements.reference),M=(0,s.Z)({reference:P,element:Z,strategy:"absolute",placement:f}),L=(0,a.Z)(Object.assign({},Z,M)),F=y===c.k5?L:P,R={top:O.top-F.top+k.top,bottom:F.bottom-O.bottom+k.bottom,left:O.left-F.left+k.left,right:F.right-O.right+k.right},T=e.modifiersData.offset;if(y===c.k5&&T){var j=T[f];Object.keys(R).forEach((function(e){var t=[c.F2,c.I].indexOf(e)>=0?1:-1,n=[c.we,c.I].indexOf(e)>=0?"y":"x";R[e]+=j[n]*t}))}return R}},315:function(e,t,n){"use strict";function o(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}n.d(t,{Z:function(){return o}})},5754:function(e,t,n){"use strict";function o(e){return"x"===e?"y":"x"}n.d(t,{Z:function(){return o}})},7677:function(e,t,n){"use strict";function o(e){return e.split("-")[0]}n.d(t,{Z:function(){return o}})},3046:function(e,t,n){"use strict";function o(){return{top:0,right:0,bottom:0,left:0}}n.d(t,{Z:function(){return o}})},1505:function(e,t,n){"use strict";function o(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}n.d(t,{Z:function(){return o}})},942:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});var o={left:"right",right:"left",bottom:"top",top:"bottom"};function r(e){return e.replace(/left|right|bottom|top/g,(function(e){return o[e]}))}},12:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});var o={start:"end",end:"start"};function r(e){return e.replace(/start|end/g,(function(e){return o[e]}))}},4531:function(e,t,n){"use strict";function o(e){return e.split("-")[1]}n.d(t,{Z:function(){return o}})},8072:function(e,t,n){"use strict";n.d(t,{Fp:function(){return o},VV:function(){return r},NM:function(){return i}});var o=Math.max,r=Math.min,i=Math.round},3352:function(e,t,n){"use strict";function o(e){var t=e.reduce((function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e}),{});return Object.keys(t).map((function(e){return t[e]}))}n.d(t,{Z:function(){return o}})},6713:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});var o=n(3046);function r(e){return Object.assign({},(0,o.Z)(),e)}},421:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var o=n(6166);function r(e){var t=new Map,n=new Set,o=[];function r(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var o=t.get(e);o&&r(o)}})),o.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||r(e)})),o}function i(e){var t=r(e);return o.xs.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}},7365:function(e,t,n){"use strict";function o(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}n.d(t,{Z:function(){return o}})},964:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});var o=n(8072);function r(e,t,n){return(0,o.Fp)(e,(0,o.VV)(t,n))}},7266:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var o=n(5854),r=n(730);function i(e){var t=(0,o.Z)(e);return function(e){return(0,r.Z)(t,e)}}},730:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});var o={"!":function(e){return!e},"*":function(e,t){return e*t},"/":function(e,t){return e/t},"%":function(e,t){return e%t},"+":function(e,t){return e+t},"-":function(e,t){return e-t},"<":function(e,t){return e<t},"<=":function(e,t){return e<=t},">":function(e,t){return e>t},">=":function(e,t){return e>=t},"==":function(e,t){return e===t},"!=":function(e,t){return e!==t},"&&":function(e,t){return e&&t},"||":function(e,t){return e||t},"?:":function(e,t,n){if(e)throw t;return n}};function r(e,t){var n,r,i,s,a,c,u=[];for(n=0;n<e.length;n++){if(a=e[n],s=o[a]){for(r=s.length,i=Array(r);r--;)i[r]=u.pop();try{c=s.apply(null,i)}catch(l){return l}}else c=t.hasOwnProperty(a)?t[a]:+a;u.push(c)}return u[0]}},1184:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});var o=n(7266);function r(e){var t=(0,o.Z)(e);return function(e){return+t({n:e})}}},5854:function(e,t,n){"use strict";var o,r,i,s;function a(e){for(var t,n,a,c,u=[],l=[];t=e.match(s);){for(n=t[0],(a=e.substr(0,t.index).trim())&&u.push(a);c=l.pop();){if(i[n]){if(i[n][0]===c){n=i[n][1]||n;break}}else if(r.indexOf(c)>=0||o[c]<o[n]){l.push(c);break}u.push(c)}i[n]||l.push(n),e=e.substr(t.index+n.length)}return(e=e.trim())&&u.push(e),u.concat(l.reverse())}n.d(t,{Z:function(){return a}}),o={"(":9,"!":8,"*":7,"/":7,"%":7,"+":6,"-":6,"<":5,"<=":5,">":5,">=":5,"==":4,"!=":4,"&&":3,"||":2,"?":1,"?:":1},r=["(","?"],i={")":["("],":":["?","?:"]},s=/<=|>=|==|!=|&&|\|\||\?:|\(|!|\*|\/|%|\+|-|<|>|\?|\)|:/},6668:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});var o=/%(((\d+)\$)|(\(([$_a-zA-Z][$_a-zA-Z0-9]*)\)))?[ +0#-]*\d*(\.(\d+|\*))?(ll|[lhqL])?([cduxXefgsp%])/g;function r(e,t){var n;if(!Array.isArray(t))for(t=new Array(arguments.length-1),n=1;n<arguments.length;n++)t[n-1]=arguments[n];return n=1,e.replace(o,(function(){var e,o,r,i,s;return e=arguments[3],o=arguments[5],"%"===(i=arguments[9])?"%":("*"===(r=arguments[7])&&(r=t[n-1],n++),void 0!==o?t[0]&&"object"==typeof t[0]&&t[0].hasOwnProperty(o)&&(s=t[0][o]):(void 0===e&&(e=n),n++,s=t[e-1]),"f"===i?s=parseFloat(s)||0:"d"===i&&(s=parseInt(s)||0),void 0!==r&&("f"===i?s=s.toFixed(r):"s"===i&&(s=s.substr(0,r))),null!=s?s:"")}))}},5869:function(e,t,n){"use strict";var o=n(9307);t.Z=function(e){let{icon:t,size:n=24,...r}=e;return(0,o.cloneElement)(t,{width:n,height:n,...r})}},8565:function(e,t,n){"use strict";var o=n(9307),r=n(444);const i=(0,o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,o.createElement)(r.Path,{d:"M13 11.8l6.1-6.3-1-1-6.1 6.2-6.1-6.2-1 1 6.1 6.3-6.5 6.7 1 1 6.5-6.6 6.5 6.6 1-1z"}));t.Z=i},5885:function(e,t,n){"use strict";n.d(t,{QT:function(){return a}});var o=n(9307),r=n(5736);function i(e){return{__:e.__.bind(e),_x:e._x.bind(e),_n:e._n.bind(e),_nx:e._nx.bind(e),isRTL:e.isRTL.bind(e),hasTranslation:e.hasTranslation.bind(e)}}const s=(0,o.createContext)(i(r.defaultI18n));const a=()=>(0,o.useContext)(s)},6744:function(e){e.exports={100:"Continue",101:"Switching Protocols",102:"Processing",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",207:"Multi-Status",208:"Already Reported",226:"IM Used",300:"Multiple Choices",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",308:"Permanent Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Range Not Satisfiable",417:"Expectation Failed",418:"I'm a teapot",421:"Misdirected Request",422:"Unprocessable Entity",423:"Locked",424:"Failed Dependency",425:"Unordered Collection",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",508:"Loop Detected",509:"Bandwidth Limit Exceeded",510:"Not Extended",511:"Network Authentication Required"}},2779:function(e,t){var n;
|
2 |
/*!
|
3 |
Copyright (c) 2018 Jed Watson.
|
4 |
Licensed under the MIT License (MIT), see
|
5 |
http://jedwatson.github.io/classnames
|
6 |
-
*/!function(){"use strict";var o={}.hasOwnProperty;function r(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var i=typeof n;if("string"===i||"number"===i)e.push(n);else if(Array.isArray(n)){if(n.length){var s=r.apply(null,n);s&&e.push(s)}}else if("object"===i)if(n.toString===Object.prototype.toString)for(var a in n)o.call(n,a)&&n[a]&&e.push(a);else e.push(n.toString())}}return e.join(" ")}e.exports?(r.default=r,e.exports=r):void 0===(n=function(){return r}.apply(t,[]))||(e.exports=n)}()},3421:function(e,t){"use strict";var n=decodeURIComponent,o=encodeURIComponent,r=/; */,i=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;function s(e,t){try{return t(e)}catch(n){return e}}},5881:function(e){var t=1e3,n=60*t,o=60*n,r=24*o,i=7*r,s=365.25*r;function a(e,t,n,o){var r=t>=1.5*n;return Math.round(e/n)+" "+o+(r?"s":"")}e.exports=function(e,c){c=c||{};var u=typeof e;if("string"===u&&e.length>0)return function(e){if((e=String(e)).length>100)return;var a=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(!a)return;var c=parseFloat(a[1]);switch((a[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return c*s;case"weeks":case"week":case"w":return c*i;case"days":case"day":case"d":return c*r;case"hours":case"hour":case"hrs":case"hr":case"h":return c*o;case"minutes":case"minute":case"mins":case"min":case"m":return c*n;case"seconds":case"second":case"secs":case"sec":case"s":return c*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return c;default:return}}(e);if("number"===u&&isFinite(e))return c.long?function(e){var i=Math.abs(e);if(i>=r)return a(e,i,r,"day");if(i>=o)return a(e,i,o,"hour");if(i>=n)return a(e,i,n,"minute");if(i>=t)return a(e,i,t,"second");return e+" ms"}(e):function(e){var i=Math.abs(e);if(i>=r)return Math.round(e/r)+"d";if(i>=o)return Math.round(e/o)+"h";if(i>=n)return Math.round(e/n)+"m";if(i>=t)return Math.round(e/t)+"s";return e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},2699:function(e){"use strict";var t,n="object"==typeof Reflect?Reflect:null,o=n&&"function"==typeof n.apply?n.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};t=n&&"function"==typeof n.ownKeys?n.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var r=Number.isNaN||function(e){return e!=e};function i(){i.init.call(this)}e.exports=i,e.exports.once=function(e,t){return new Promise((function(n,o){function r(n){e.removeListener(t,i),o(n)}function i(){"function"==typeof e.removeListener&&e.removeListener("error",r),n([].slice.call(arguments))}h(e,t,i,{once:!0}),"error"!==t&&function(e,t,n){"function"==typeof e.on&&h(e,"error",t,n)}(e,r,{once:!0})}))},i.EventEmitter=i,i.prototype._events=void 0,i.prototype._eventsCount=0,i.prototype._maxListeners=void 0;var s=10;function a(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function c(e){return void 0===e._maxListeners?i.defaultMaxListeners:e._maxListeners}function u(e,t,n,o){var r,i,s,u;if(a(n),void 0===(i=e._events)?(i=e._events=Object.create(null),e._eventsCount=0):(void 0!==i.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),i=e._events),s=i[t]),void 0===s)s=i[t]=n,++e._eventsCount;else if("function"==typeof s?s=i[t]=o?[n,s]:[s,n]:o?s.unshift(n):s.push(n),(r=c(e))>0&&s.length>r&&!s.warned){s.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=e,l.type=t,l.count=s.length,u=l,console&&console.warn&&console.warn(u)}return e}function l(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function d(e,t,n){var o={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},r=l.bind(o);return r.listener=n,o.wrapFn=r,r}function p(e,t,n){var o=e._events;if(void 0===o)return[];var r=o[t];return void 0===r?[]:"function"==typeof r?n?[r.listener||r]:[r]:n?function(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}(r):m(r,r.length)}function f(e){var t=this._events;if(void 0!==t){var n=t[e];if("function"==typeof n)return 1;if(void 0!==n)return n.length}return 0}function m(e,t){for(var n=new Array(t),o=0;o<t;++o)n[o]=e[o];return n}function h(e,t,n,o){if("function"==typeof e.on)o.once?e.once(t,n):e.on(t,n);else{if("function"!=typeof e.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e);e.addEventListener(t,(function r(i){o.once&&e.removeEventListener(t,r),n(i)}))}}Object.defineProperty(i,"defaultMaxListeners",{enumerable:!0,get:function(){return s},set:function(e){if("number"!=typeof e||e<0||r(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");s=e}}),i.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},i.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||r(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},i.prototype.getMaxListeners=function(){return c(this)},i.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var r="error"===e,i=this._events;if(void 0!==i)r=r&&void 0===i.error;else if(!r)return!1;if(r){var s;if(t.length>0&&(s=t[0]),s instanceof Error)throw s;var a=new Error("Unhandled error."+(s?" ("+s.message+")":""));throw a.context=s,a}var c=i[e];if(void 0===c)return!1;if("function"==typeof c)o(c,this,t);else{var u=c.length,l=m(c,u);for(n=0;n<u;++n)o(l[n],this,t)}return!0},i.prototype.addListener=function(e,t){return u(this,e,t,!1)},i.prototype.on=i.prototype.addListener,i.prototype.prependListener=function(e,t){return u(this,e,t,!0)},i.prototype.once=function(e,t){return a(t),this.on(e,d(this,e,t)),this},i.prototype.prependOnceListener=function(e,t){return a(t),this.prependListener(e,d(this,e,t)),this},i.prototype.removeListener=function(e,t){var n,o,r,i,s;if(a(t),void 0===(o=this._events))return this;if(void 0===(n=o[e]))return this;if(n===t||n.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete o[e],o.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!=typeof n){for(r=-1,i=n.length-1;i>=0;i--)if(n[i]===t||n[i].listener===t){s=n[i].listener,r=i;break}if(r<0)return this;0===r?n.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(n,r),1===n.length&&(o[e]=n[0]),void 0!==o.removeListener&&this.emit("removeListener",e,s||t)}return this},i.prototype.off=i.prototype.removeListener,i.prototype.removeAllListeners=function(e){var t,n,o;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete n[e]),this;if(0===arguments.length){var r,i=Object.keys(n);for(o=0;o<i.length;++o)"removeListener"!==(r=i[o])&&this.removeAllListeners(r);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=n[e]))this.removeListener(e,t);else if(void 0!==t)for(o=t.length-1;o>=0;o--)this.removeListener(e,t[o]);return this},i.prototype.listeners=function(e){return p(this,e,!0)},i.prototype.rawListeners=function(e){return p(this,e,!1)},i.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):f.call(e,t)},i.prototype.listenerCount=f,i.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},4495:function(e,t,n){"use strict";var o=n(212),r=n(9561);function i(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}t.BlockHash=i,i.prototype.update=function(e,t){if(e=o.toArray(e,t),this.pending?this.pending=this.pending.concat(e):this.pending=e,this.pendingTotal+=e.length,this.pending.length>=this._delta8){var n=(e=this.pending).length%this._delta8;this.pending=e.slice(e.length-n,e.length),0===this.pending.length&&(this.pending=null),e=o.join32(e,0,e.length-n,this.endian);for(var r=0;r<e.length;r+=this._delta32)this._update(e,r,r+this._delta32)}return this},i.prototype.digest=function(e){return this.update(this._pad()),r(null===this.pending),this._digest(e)},i.prototype._pad=function(){var e=this.pendingTotal,t=this._delta8,n=t-(e+this.padLength)%t,o=new Array(n+this.padLength);o[0]=128;for(var r=1;r<n;r++)o[r]=0;if(e<<=3,"big"===this.endian){for(var i=8;i<this.padLength;i++)o[r++]=0;o[r++]=0,o[r++]=0,o[r++]=0,o[r++]=0,o[r++]=e>>>24&255,o[r++]=e>>>16&255,o[r++]=e>>>8&255,o[r++]=255&e}else for(o[r++]=255&e,o[r++]=e>>>8&255,o[r++]=e>>>16&255,o[r++]=e>>>24&255,o[r++]=0,o[r++]=0,o[r++]=0,o[r++]=0,i=8;i<this.padLength;i++)o[r++]=0;return o}},5079:function(e,t,n){"use strict";var o=n(212),r=n(4495),i=n(713),s=o.rotl32,a=o.sum32,c=o.sum32_5,u=i.ft_1,l=r.BlockHash,d=[1518500249,1859775393,2400959708,3395469782];function p(){if(!(this instanceof p))return new p;l.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}o.inherits(p,l),e.exports=p,p.blockSize=512,p.outSize=160,p.hmacStrength=80,p.padLength=64,p.prototype._update=function(e,t){for(var n=this.W,o=0;o<16;o++)n[o]=e[t+o];for(;o<n.length;o++)n[o]=s(n[o-3]^n[o-8]^n[o-14]^n[o-16],1);var r=this.h[0],i=this.h[1],l=this.h[2],p=this.h[3],f=this.h[4];for(o=0;o<n.length;o++){var m=~~(o/20),h=c(s(r,5),u(m,i,l,p),f,n[o],d[m]);f=p,p=l,l=s(i,30),i=r,r=h}this.h[0]=a(this.h[0],r),this.h[1]=a(this.h[1],i),this.h[2]=a(this.h[2],l),this.h[3]=a(this.h[3],p),this.h[4]=a(this.h[4],f)},p.prototype._digest=function(e){return"hex"===e?o.toHex32(this.h,"big"):o.split32(this.h,"big")}},8032:function(e,t,n){"use strict";var o=n(212),r=n(4495),i=n(713),s=n(9561),a=o.sum32,c=o.sum32_4,u=o.sum32_5,l=i.ch32,d=i.maj32,p=i.s0_256,f=i.s1_256,m=i.g0_256,h=i.g1_256,g=r.BlockHash,v=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function w(){if(!(this instanceof w))return new w;g.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=v,this.W=new Array(64)}o.inherits(w,g),e.exports=w,w.blockSize=512,w.outSize=256,w.hmacStrength=192,w.padLength=64,w.prototype._update=function(e,t){for(var n=this.W,o=0;o<16;o++)n[o]=e[t+o];for(;o<n.length;o++)n[o]=c(h(n[o-2]),n[o-7],m(n[o-15]),n[o-16]);var r=this.h[0],i=this.h[1],g=this.h[2],v=this.h[3],w=this.h[4],y=this.h[5],b=this.h[6],_=this.h[7];for(s(this.k.length===n.length),o=0;o<n.length;o++){var E=u(_,f(w),l(w,y,b),this.k[o],n[o]),x=a(p(r),d(r,i,g));_=b,b=y,y=w,w=a(v,E),v=g,g=i,i=r,r=a(E,x)}this.h[0]=a(this.h[0],r),this.h[1]=a(this.h[1],i),this.h[2]=a(this.h[2],g),this.h[3]=a(this.h[3],v),this.h[4]=a(this.h[4],w),this.h[5]=a(this.h[5],y),this.h[6]=a(this.h[6],b),this.h[7]=a(this.h[7],_)},w.prototype._digest=function(e){return"hex"===e?o.toHex32(this.h,"big"):o.split32(this.h,"big")}},713:function(e,t,n){"use strict";var o=n(212).rotr32;function r(e,t,n){return e&t^~e&n}function i(e,t,n){return e&t^e&n^t&n}function s(e,t,n){return e^t^n}t.ft_1=function(e,t,n,o){return 0===e?r(t,n,o):1===e||3===e?s(t,n,o):2===e?i(t,n,o):void 0},t.ch32=r,t.maj32=i,t.p32=s,t.s0_256=function(e){return o(e,2)^o(e,13)^o(e,22)},t.s1_256=function(e){return o(e,6)^o(e,11)^o(e,25)},t.g0_256=function(e){return o(e,7)^o(e,18)^e>>>3},t.g1_256=function(e){return o(e,17)^o(e,19)^e>>>10}},212:function(e,t,n){"use strict";var o=n(9561),r=n(1285);function i(e,t){return 55296==(64512&e.charCodeAt(t))&&(!(t<0||t+1>=e.length)&&56320==(64512&e.charCodeAt(t+1)))}function s(e){return(e>>>24|e>>>8&65280|e<<8&16711680|(255&e)<<24)>>>0}function a(e){return 1===e.length?"0"+e:e}function c(e){return 7===e.length?"0"+e:6===e.length?"00"+e:5===e.length?"000"+e:4===e.length?"0000"+e:3===e.length?"00000"+e:2===e.length?"000000"+e:1===e.length?"0000000"+e:e}t.inherits=r,t.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var n=[];if("string"==typeof e)if(t){if("hex"===t)for((e=e.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(e="0"+e),r=0;r<e.length;r+=2)n.push(parseInt(e[r]+e[r+1],16))}else for(var o=0,r=0;r<e.length;r++){var s=e.charCodeAt(r);s<128?n[o++]=s:s<2048?(n[o++]=s>>6|192,n[o++]=63&s|128):i(e,r)?(s=65536+((1023&s)<<10)+(1023&e.charCodeAt(++r)),n[o++]=s>>18|240,n[o++]=s>>12&63|128,n[o++]=s>>6&63|128,n[o++]=63&s|128):(n[o++]=s>>12|224,n[o++]=s>>6&63|128,n[o++]=63&s|128)}else for(r=0;r<e.length;r++)n[r]=0|e[r];return n},t.toHex=function(e){for(var t="",n=0;n<e.length;n++)t+=a(e[n].toString(16));return t},t.htonl=s,t.toHex32=function(e,t){for(var n="",o=0;o<e.length;o++){var r=e[o];"little"===t&&(r=s(r)),n+=c(r.toString(16))}return n},t.zero2=a,t.zero8=c,t.join32=function(e,t,n,r){var i=n-t;o(i%4==0);for(var s=new Array(i/4),a=0,c=t;a<s.length;a++,c+=4){var u;u="big"===r?e[c]<<24|e[c+1]<<16|e[c+2]<<8|e[c+3]:e[c+3]<<24|e[c+2]<<16|e[c+1]<<8|e[c],s[a]=u>>>0}return s},t.split32=function(e,t){for(var n=new Array(4*e.length),o=0,r=0;o<e.length;o++,r+=4){var i=e[o];"big"===t?(n[r]=i>>>24,n[r+1]=i>>>16&255,n[r+2]=i>>>8&255,n[r+3]=255&i):(n[r+3]=i>>>24,n[r+2]=i>>>16&255,n[r+1]=i>>>8&255,n[r]=255&i)}return n},t.rotr32=function(e,t){return e>>>t|e<<32-t},t.rotl32=function(e,t){return e<<t|e>>>32-t},t.sum32=function(e,t){return e+t>>>0},t.sum32_3=function(e,t,n){return e+t+n>>>0},t.sum32_4=function(e,t,n,o){return e+t+n+o>>>0},t.sum32_5=function(e,t,n,o,r){return e+t+n+o+r>>>0},t.sum64=function(e,t,n,o){var r=e[t],i=o+e[t+1]>>>0,s=(i<o?1:0)+n+r;e[t]=s>>>0,e[t+1]=i},t.sum64_hi=function(e,t,n,o){return(t+o>>>0<t?1:0)+e+n>>>0},t.sum64_lo=function(e,t,n,o){return t+o>>>0},t.sum64_4_hi=function(e,t,n,o,r,i,s,a){var c=0,u=t;return c+=(u=u+o>>>0)<t?1:0,c+=(u=u+i>>>0)<i?1:0,e+n+r+s+(c+=(u=u+a>>>0)<a?1:0)>>>0},t.sum64_4_lo=function(e,t,n,o,r,i,s,a){return t+o+i+a>>>0},t.sum64_5_hi=function(e,t,n,o,r,i,s,a,c,u){var l=0,d=t;return l+=(d=d+o>>>0)<t?1:0,l+=(d=d+i>>>0)<i?1:0,l+=(d=d+a>>>0)<a?1:0,e+n+r+s+c+(l+=(d=d+u>>>0)<u?1:0)>>>0},t.sum64_5_lo=function(e,t,n,o,r,i,s,a,c,u){return t+o+i+a+u>>>0},t.rotr64_hi=function(e,t,n){return(t<<32-n|e>>>n)>>>0},t.rotr64_lo=function(e,t,n){return(e<<32-n|t>>>n)>>>0},t.shr64_hi=function(e,t,n){return e>>>n},t.shr64_lo=function(e,t,n){return(e<<32-n|t>>>n)>>>0}},1285:function(e){"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}},7839:function(e,t,n){var o=n(2699),r=n(1285);function i(e){if(!(this instanceof i))return new i(e);"number"==typeof e&&(e={max:e}),e||(e={}),o.EventEmitter.call(this),this.cache={},this.head=this.tail=null,this.length=0,this.max=e.max||1e3,this.maxAge=e.maxAge||0}e.exports=i,r(i,o.EventEmitter),Object.defineProperty(i.prototype,"keys",{get:function(){return Object.keys(this.cache)}}),i.prototype.clear=function(){this.cache={},this.head=this.tail=null,this.length=0},i.prototype.remove=function(e){if("string"!=typeof e&&(e=""+e),this.cache.hasOwnProperty(e)){var t=this.cache[e];return delete this.cache[e],this._unlink(e,t.prev,t.next),t.value}},i.prototype._unlink=function(e,t,n){this.length--,0===this.length?this.head=this.tail=null:this.head===e?(this.head=t,this.cache[this.head].next=null):this.tail===e?(this.tail=n,this.cache[this.tail].prev=null):(this.cache[t].next=n,this.cache[n].prev=t)},i.prototype.peek=function(e){if(this.cache.hasOwnProperty(e)){var t=this.cache[e];if(this._checkAge(e,t))return t.value}},i.prototype.set=function(e,t){var n;if("string"!=typeof e&&(e=""+e),this.cache.hasOwnProperty(e)){if((n=this.cache[e]).value=t,this.maxAge&&(n.modified=Date.now()),e===this.head)return t;this._unlink(e,n.prev,n.next)}else n={value:t,modified:0,next:null,prev:null},this.maxAge&&(n.modified=Date.now()),this.cache[e]=n,this.length===this.max&&this.evict();return this.length++,n.next=null,n.prev=this.head,this.head&&(this.cache[this.head].next=e),this.head=e,this.tail||(this.tail=e),t},i.prototype._checkAge=function(e,t){return!(this.maxAge&&Date.now()-t.modified>this.maxAge)||(this.remove(e),this.emit("evict",{key:e,value:t.value}),!1)},i.prototype.get=function(e){if("string"!=typeof e&&(e=""+e),this.cache.hasOwnProperty(e)){var t=this.cache[e];if(this._checkAge(e,t))return this.head!==e&&(e===this.tail?(this.tail=t.next,this.cache[this.tail].prev=null):this.cache[t.prev].next=t.next,this.cache[t.next].prev=t.prev,this.cache[this.head].next=e,t.prev=this.head,t.next=null,this.head=e),t.value}},i.prototype.evict=function(){if(this.tail){var e=this.tail,t=this.remove(this.tail);this.emit("evict",{key:e,value:t})}}},3186:function(){},8005:function(){},5773:function(){},5670:function(){},4373:function(){},7777:function(){},7710:function(){},2014:function(){},6372:function(){},4422:function(){},9561:function(e){function t(e,t){if(!e)throw new Error(t||"Assertion failed")}e.exports=t,t.equal=function(e,t,n){if(e!=t)throw new Error(n||"Assertion failed: "+e+" != "+t)}},8650:function(e){var t,n=window.ProgressEvent,o=!!n;try{t=new n("loaded"),o="loaded"===t.type,t=null}catch(r){o=!1}e.exports=o?n:"function"==typeof document.createEvent?function(e,t){var n=document.createEvent("Event");return n.initEvent(e,!1,!1),t?(n.lengthComputable=Boolean(t.lengthComputable),n.loaded=Number(t.loaded)||0,n.total=Number(t.total)||0):(n.lengthComputable=!1,n.loaded=n.total=0),n}:function(e,t){var n=document.createEventObject();return n.type=e,t?(n.lengthComputable=Boolean(t.lengthComputable),n.loaded=Number(t.loaded)||0,n.total=Number(t.total)||0):(n.lengthComputable=!1,n.loaded=n.total=0),n}},8435:function(e){var t="undefined"!=typeof Element,n="function"==typeof Map,o="function"==typeof Set,r="function"==typeof ArrayBuffer&&!!ArrayBuffer.isView;function i(e,s){if(e===s)return!0;if(e&&s&&"object"==typeof e&&"object"==typeof s){if(e.constructor!==s.constructor)return!1;var a,c,u,l;if(Array.isArray(e)){if((a=e.length)!=s.length)return!1;for(c=a;0!=c--;)if(!i(e[c],s[c]))return!1;return!0}if(n&&e instanceof Map&&s instanceof Map){if(e.size!==s.size)return!1;for(l=e.entries();!(c=l.next()).done;)if(!s.has(c.value[0]))return!1;for(l=e.entries();!(c=l.next()).done;)if(!i(c.value[1],s.get(c.value[0])))return!1;return!0}if(o&&e instanceof Set&&s instanceof Set){if(e.size!==s.size)return!1;for(l=e.entries();!(c=l.next()).done;)if(!s.has(c.value[0]))return!1;return!0}if(r&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(s)){if((a=e.length)!=s.length)return!1;for(c=a;0!=c--;)if(e[c]!==s[c])return!1;return!0}if(e.constructor===RegExp)return e.source===s.source&&e.flags===s.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===s.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===s.toString();if((a=(u=Object.keys(e)).length)!==Object.keys(s).length)return!1;for(c=a;0!=c--;)if(!Object.prototype.hasOwnProperty.call(s,u[c]))return!1;if(t&&e instanceof Element)return!1;for(c=a;0!=c--;)if(("_owner"!==u[c]&&"__v"!==u[c]&&"__o"!==u[c]||!e.$$typeof)&&!i(e[u[c]],s[u[c]]))return!1;return!0}return e!=e&&s!=s}e.exports=function(e,t){try{return i(e,t)}catch(n){if((n.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw n}}},6194:function(e,t,n){"use strict";n.d(t,{D:function(){return u}});var o=n(9196),r=n(7295),i=n(8435),s=n.n(i),a=n(855),c=[],u=function(e,t,n){void 0===n&&(n={});var i=o.useRef(null),u={onFirstUpdate:n.onFirstUpdate,placement:n.placement||"bottom",strategy:n.strategy||"absolute",modifiers:n.modifiers||c},l=o.useState({styles:{popper:{position:u.strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),d=l[0],p=l[1],f=o.useMemo((function(){return{name:"updateState",enabled:!0,phase:"write",fn:function(e){var t=e.state,n=Object.keys(t.elements);p({styles:(0,a.sq)(n.map((function(e){return[e,t.styles[e]||{}]}))),attributes:(0,a.sq)(n.map((function(e){return[e,t.attributes[e]]})))})},requires:["computeStyles"]}}),[]),m=o.useMemo((function(){var e={onFirstUpdate:u.onFirstUpdate,placement:u.placement,strategy:u.strategy,modifiers:[].concat(u.modifiers,[f,{name:"applyStyles",enabled:!1}])};return s()(i.current,e)?i.current||e:(i.current=e,e)}),[u.onFirstUpdate,u.placement,u.strategy,u.modifiers,f]),h=o.useRef();return(0,a.LI)((function(){h.current&&h.current.setOptions(m)}),[m]),(0,a.LI)((function(){if(null!=e&&null!=t){var o=(n.createPopper||r.fi)(e,t,m);return h.current=o,function(){o.destroy(),h.current=null}}}),[e,t,n.createPopper]),{state:h.current?h.current.state:null,styles:d.styles,attributes:d.attributes,update:h.current?h.current.update:null,forceUpdate:h.current?h.current.forceUpdate:null}}},855:function(e,t,n){"use strict";n.d(t,{sq:function(){return r},LI:function(){return i}});var o=n(9196),r=function(e){return e.reduce((function(e,t){var n=t[0],o=t[1];return e[n]=o,e}),{})},i="undefined"!=typeof window&&window.document&&window.document.createElement?o.useLayoutEffect:o.useEffect},9830:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var o=n(1184),r={contextDelimiter:"",onMissingKey:null};function i(e,t){var n;for(n in this.data=e,this.pluralForms={},this.options={},r)this.options[n]=void 0!==t&&n in t?t[n]:r[n]}i.prototype.getPluralForm=function(e,t){var n,r,i,s=this.pluralForms[e];return s||("function"!=typeof(i=(n=this.data[e][""])["Plural-Forms"]||n["plural-forms"]||n.plural_forms)&&(r=function(e){var t,n,o;for(t=e.split(";"),n=0;n<t.length;n++)if(0===(o=t[n].trim()).indexOf("plural="))return o.substr(7)}(n["Plural-Forms"]||n["plural-forms"]||n.plural_forms),i=(0,o.Z)(r)),s=this.pluralForms[e]=i),s(t)},i.prototype.dcnpgettext=function(e,t,n,o,r){var i,s,a;return i=void 0===r?0:this.getPluralForm(e,r),s=n,t&&(s=t+this.options.contextDelimiter+n),(a=this.data[e][s])&&a[i]?a[i]:(this.options.onMissingKey&&this.options.onMissingKey(n,e),0===i?n:o)}},3133:function(e,t,n){"use strict";var o=n(6989),r=n.n(o),i=n(9307);t.Z=()=>{const[e,t]=(0,i.useState)("");return(0,i.useEffect)((()=>{r()({path:"/wpcom/v2/block-editor/has-seen-seller-celebration-modal"}).then((e=>t(e.has_seen_seller_celebration_modal))).catch((()=>t(!1)))}),[]),{hasSeenSellerCelebrationModal:e,updateHasSeenSellerCelebrationModal:function(e){r()({method:"PUT",path:"/wpcom/v2/block-editor/has-seen-seller-celebration-modal",data:{has_seen_seller_celebration_modal:e}}).finally((()=>{t(e)}))}}}},5262:function(e,t,n){"use strict";var o=n(6989),r=n.n(o),i=n(9307);t.Z=()=>{const[e,t]=(0,i.useState)(""),n=(0,i.useCallback)((()=>{r()({path:"/wpcom/v2/site-intent"}).then((e=>t(e.site_intent))).catch((()=>t("")))}),[]);return(0,i.useEffect)((()=>{n()}),[n]),e}},7542:function(e,t,n){"use strict";var o=n(9307),r=n(9196),i=n(8552);t.Z=e=>{const[t,n]=(0,o.useState)({}),s=(0,r.useCallback)((async()=>{const t=await(0,i.ZP)({path:`/sites/${e}?http_envelope=1`,apiVersion:"1.1"});null!=t&&t.plan&&n(t.plan)}),[e]);return(0,o.useEffect)((()=>{s()}),[s]),t}},7869:function(e,t,n){"use strict";var o=n(9307),r=(n(3945),n(849)),i=n(4655),s=n(5609),a=n(9818),c=n(8817),u=n(6483),l=n(3867),d=n(9935),p=n(6011),f=n(1258),m=n(1970),h=n(374),g=n(7203);function v(){var e;const[t]=(0,o.useState)((0,u.getQueryArg)(window.location.href,"showDraftPostModal")),{show:n,isLoaded:c,variant:d,isManuallyOpened:p,isNewPageLayoutModalOpen:f}=(0,a.useSelect)((e=>{const t=e("automattic/wpcom-welcome-guide"),n=e("automattic/starter-page-layouts");return{show:t.isWelcomeGuideShown(),isLoaded:t.isWelcomeGuideStatusLoaded(),variant:t.getWelcomeGuideVariant(),isManuallyOpened:t.isWelcomeGuideManuallyOpened(),isNewPageLayoutModalOpen:null==n?void 0:n.isOpen()}}),[]),v=null===(e=(0,a.useDispatch)("automattic/starter-page-layouts"))||void 0===e?void 0:e.setOpenState,{fetchWelcomeGuideStatus:w}=(0,a.useDispatch)("automattic/wpcom-welcome-guide");return(0,o.useEffect)((()=>{c||w()}),[w,c]),!n||f?null:d===m.yn&&!p&&v?(v("OPEN_FOR_BLANK_CANVAS"),null):d===m.Sz?(0,o.createElement)(r.Iw,{localeSlug:window.wpcomBlockEditorNuxLocale??i.OP},t?(0,o.createElement)(l.Z,null):(0,o.createElement)(g.Z,null)):"modal"===d&&s.Guide&&s.GuidePage?(0,o.createElement)(h.Z,null):null}(0,c.registerPlugin)("wpcom-block-editor-nux",{render:()=>(0,o.createElement)(o.Fragment,null,(0,o.createElement)(v,null),(0,o.createElement)(d.Z,null),(0,o.createElement)(f.Z,null),(0,o.createElement)(p.Z,null))})},1568:function(e,t,n){"use strict";var o=n(9818);n(462);const r=(0,o.subscribe)((()=>{var e,t;(0,o.dispatch)("core/nux").disableTips(),null!==(e=(0,o.select)("core/edit-post"))&&void 0!==e&&e.isFeatureActive("welcomeGuide")&&((0,o.dispatch)("core/edit-post").toggleFeature("welcomeGuide"),r()),null!==(t=(0,o.select)("core/edit-site"))&&void 0!==t&&t.isFeatureActive("welcomeGuide")&&((0,o.dispatch)("core/edit-site").toggleFeature("welcomeGuide"),r())}));(0,o.subscribe)((()=>{var e,t;(0,o.select)("core/nux").areTipsEnabled()&&((0,o.dispatch)("core/nux").disableTips(),(0,o.dispatch)("automattic/wpcom-welcome-guide").setShowWelcomeGuide(!0)),null!==(e=(0,o.select)("core/edit-post"))&&void 0!==e&&e.isFeatureActive("welcomeGuide")&&((0,o.dispatch)("core/edit-post").toggleFeature("welcomeGuide"),(0,o.select)("automattic/wpcom-welcome-guide").isWelcomeGuideStatusLoaded()&&(0,o.dispatch)("automattic/wpcom-welcome-guide").setShowWelcomeGuide(!0,{openedManually:!0})),null!==(t=(0,o.select)("core/edit-site"))&&void 0!==t&&t.isFeatureActive("welcomeGuide")&&((0,o.dispatch)("core/edit-site").toggleFeature("welcomeGuide"),(0,o.select)("automattic/wpcom-welcome-guide").isWelcomeGuideStatusLoaded()&&(0,o.dispatch)("automattic/wpcom-welcome-guide").setShowWelcomeGuide(!0,{openedManually:!0}))}))},3867:function(e,t,n){"use strict";var o=n(9307),r=n(6115),i=n(5609),s=n(9818),a=n(2694),c=n(5736),u=n(3634),l=n(3790);n(3186);const __=c.__,d="a8c.wpcom-block-editor.closeEditor";t.Z=()=>{const e=window._currentSiteId,t=(0,s.useSelect)((t=>t("automattic/site").getPrimarySiteDomain(e))),n=`/home/${(null==t?void 0:t.domain)||window.location.hostname}`,[c,p]=(0,o.useState)(!0),f=()=>p(!1);return(0,o.createElement)(u.Z,{isOpen:c,className:"wpcom-block-editor-draft-post-modal",title:__("Write your first post","full-site-editing"),description:__("It’s time to flex those writing muscles and start drafting your first post!","full-site-editing"),imageSrc:l,actionButtons:(0,o.createElement)(o.Fragment,null,(0,o.createElement)(i.Button,{isPrimary:!0,onClick:f},__("Start writing","full-site-editing")),(0,o.createElement)(i.Button,{isSecondary:!0,onClick:()=>{(0,a.hasAction)(d)?(0,a.doAction)(d,n):window.location.href=`https://wordpress.com${n}`}},__("I'm not ready","full-site-editing"))),onRequestClose:f,onOpen:()=>(0,r.jN)("calypso_editor_wpcom_draft_post_modal_show")})}},3634:function(e,t,n){"use strict";var o=n(9307),r=n(5609),i=n(2779),s=n.n(i);n(9196),n(8005);t.Z=e=>{let{isOpen:t,className:n,title:i,description:a,imageSrc:c,actionButtons:u,onRequestClose:l,onOpen:d}=e;const p=(0,o.useRef)(null);return(0,o.useEffect)((()=>{!p.current&&t&&(null==d||d()),p.current=t}),[p,t,d]),t?(0,o.createElement)(r.Modal,{className:s()("wpcom-block-editor-nux-modal",n),open:t,title:"",onRequestClose:l},(0,o.createElement)("div",{className:"wpcom-block-editor-nux-modal__image-container"},(0,o.createElement)("img",{src:c,alt:i})),(0,o.createElement)("h1",{className:"wpcom-block-editor-nux-modal__title"},i),(0,o.createElement)("p",{className:"wpcom-block-editor-nux-modal__description"},a),(0,o.createElement)("div",{className:"wpcom-block-editor-nux-modal__buttons"},u)):null}},9935:function(e,t,n){"use strict";var o=n(9307),r=n(6115),i=n(5609),s=n(9818),a=n(5736),c=(n(9196),n(3634)),u=n(5275);n(5773);const __=a.__;t.Z=()=>{const{link:e}=(0,s.useSelect)((e=>e("core/editor").getCurrentPost())),t=(0,s.useSelect)((e=>e("core/editor").getCurrentPostType())),n=(0,s.useSelect)((e=>e("core/editor").isCurrentPostPublished())),a=(0,o.useRef)(n),l=(0,s.useSelect)((e=>e("automattic/wpcom-welcome-guide").getShouldShowFirstPostPublishedModal())),[d,p]=(0,o.useState)(!1),{fetchShouldShowFirstPostPublishedModal:f,setShouldShowFirstPostPublishedModal:m}=(0,s.useDispatch)("automattic/wpcom-welcome-guide");(0,o.useEffect)((()=>{f()}),[f]),(0,o.useEffect)((()=>{l&&!a.current&&n&&"post"===t&&(a.current=n,m(!1),window.setTimeout((()=>{p(!0)})))}),[t,l,n,m]);return(0,o.createElement)(c.Z,{isOpen:d,className:"wpcom-block-editor-post-published-modal",title:__("Your first post is published!","full-site-editing"),description:__("Congratulations! You did it. View your post to see how it will look on your site.","full-site-editing"),imageSrc:u,actionButtons:(0,o.createElement)(i.Button,{isPrimary:!0,onClick:t=>{t.preventDefault(),window.top.location.href=e}},__("View Post","full-site-editing")),onRequestClose:()=>p(!1),onOpen:()=>(0,r.jN)("calypso_editor_wpcom_first_post_published_modal_show")})}},3945:function(e,t,n){"object"==typeof window&&window.wpcomBlockEditorNuxAssetsUrl&&(n.p=window.wpcomBlockEditorNuxAssetsUrl)},6011:function(e,t,n){"use strict";var o=n(9818),r=n(5736),i=n(3961),s=n(9196);n(5670);const __=r.__;t.Z=function(){const[e,t]=(0,s.useState)(!1),{createNotice:n}=(0,o.useDispatch)(i.store);return(0,s.useEffect)((()=>{const o=/[&?]notice=([\w_-]+)/.exec(document.location.search);"purchase-success"===(o&&o[1])&&!1===e&&(t(!0),n("info",__("Welcome to the Pro plan! Premium blocks are now available to use.","full-site-editing"),{isDismissible:!0,type:"snackbar"}))})),null}},1258:function(e,t,n){"use strict";var o=n(9307),r=n(6115),i=n(5609),s=n(9818),a=n(5736),c=n(3133),u=n(5262),l=n(3634),d=n(4242);n(4373);const __=a.__,p=()=>{const{addEntities:e}=(0,s.useDispatch)("core");(0,o.useEffect)((()=>{e([{baseURL:"/wp/v2/statuses",key:"slug",kind:"root",name:"status",plural:"statuses"}])}),[]);const[t,n]=(0,o.useState)(!1),[a,p]=(0,o.useState)(!1),f=(0,s.useSelect)((e=>!!e("core/edit-site"))),m=(0,o.useRef)(!1),{isEditorSaving:h,hasPaymentsBlock:g,linkUrl:v}=(0,s.useSelect)((e=>{if(f){var t,n,o;const r=e("core").isSavingEntityRecord("root","site")&&!e("core").isAutosavingEntityRecord("root","site"),i=e("core/edit-site").getPage(),s=parseInt(null==i||null===(t=i.context)||void 0===t?void 0:t.postId),a=e("core").isSavingEntityRecord("postType","page",s)&&!e("core").isAutosavingEntityRecord("postType","page",s),c=e("core").getEntityRecord("postType","page",s);return{isEditorSaving:r||a,hasPaymentsBlock:(null==c||null===(n=c.content)||void 0===n||null===(o=n.raw)||void 0===o?void 0:o.includes("\x3c!-- wp:jetpack/recurring-payments --\x3e"))??!1,linkUrl:null==c?void 0:c.link}}const r=e("core/editor").getCurrentPost();return{isEditorSaving:e("core").isSavingEntityRecord("postType",null==r?void 0:r.type,null==r?void 0:r.id)&&!e("core").isAutosavingEntityRecord("postType",null==r?void 0:r.type,null==r?void 0:r.id),hasPaymentsBlock:e("core/block-editor").getGlobalBlockCount("jetpack/recurring-payments")>0,linkUrl:r.link}})),w=(0,u.Z)(),{hasSeenSellerCelebrationModal:y,updateHasSeenSellerCelebrationModal:b}=(0,c.Z)();(0,o.useEffect)((()=>{h||!m.current||a||"sell"!==w||!g||y||(n(!0),p(!0),b(!0)),m.current=h}),[h,a,w,g,y,b]);const _=()=>n(!1);return(0,o.createElement)(l.Z,{isOpen:t,className:"wpcom-site-editor-seller-celebration-modal",title:__("You've added your first product!","full-site-editing"),description:__("Preview your product on your site before launching and sharing with others.","full-site-editing"),imageSrc:d,actionButtons:(0,o.createElement)(o.Fragment,null,(0,o.createElement)(i.Button,{onClick:_},__("Continue editing","full-site-editing")),(0,o.createElement)(i.Button,{isPrimary:!0,href:v,target:"__blank",rel:"noopener noreferrer"},__("View your product","full-site-editing"))),onRequestClose:_,onOpen:()=>(0,r.jN)("calypso_editor_wpcom_seller_celebration_modal_show")})};t.Z=()=>"sell"===(0,u.Z)()?(0,o.createElement)(p,null):null},1970:function(e,t,n){"use strict";n.d(t,{Sz:function(){return a},yn:function(){return c},z2:function(){return p}});var o=n(6989),r=n.n(o),i=n(9818),s=n(3418);n(3288);const a="tour",c="blank-canvas-tour",u=(0,i.combineReducers)({welcomeGuideManuallyOpened:function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"WPCOM_WELCOME_GUIDE_SHOW_SET":return void 0!==t.openedManually?t.openedManually:e;case"WPCOM_WELCOME_GUIDE_RESET_STORE":return!1;default:return e}},showWelcomeGuide:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"WPCOM_WELCOME_GUIDE_FETCH_STATUS_SUCCESS":return t.response.show_welcome_guide;case"WPCOM_WELCOME_GUIDE_SHOW_SET":return t.show;case"WPCOM_WELCOME_GUIDE_RESET_STORE":return;default:return e}},tourRating:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"WPCOM_WELCOME_GUIDE_TOUR_RATING_SET":return t.tourRating;case"WPCOM_WELCOME_GUIDE_RESET_STORE":return;default:return e}},welcomeGuideVariant:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"WPCOM_WELCOME_GUIDE_FETCH_STATUS_SUCCESS":return t.response.variant;case"WPCOM_HAS_USED_PATTERNS_MODAL":return e===c?a:e;case"WPCOM_WELCOME_GUIDE_RESET_STORE":return a;default:return e}},shouldShowFirstPostPublishedModal:function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"WPCOM_SET_SHOULD_SHOW_FIRST_POST_PUBLISHED_MODAL":return t.value;case"WPCOM_WELCOME_GUIDE_RESET_STORE":return!1;default:return e}}}),l={*fetchWelcomeGuideStatus(){return{type:"WPCOM_WELCOME_GUIDE_FETCH_STATUS_SUCCESS",response:yield(0,s.apiFetch)({path:"/wpcom/v2/block-editor/nux"})}},*fetchShouldShowFirstPostPublishedModal(){return{type:"WPCOM_SET_SHOULD_SHOW_FIRST_POST_PUBLISHED_MODAL",value:(yield(0,s.apiFetch)({path:"/wpcom/v2/block-editor/should-show-first-post-published-modal"})).should_show_first_post_published_modal}},setShowWelcomeGuide:function(e){let{openedManually:t,onlyLocal:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return n||r()({path:"/wpcom/v2/block-editor/nux",method:"POST",data:{show_welcome_guide:e}}),{type:"WPCOM_WELCOME_GUIDE_SHOW_SET",show:e,openedManually:t}},setTourRating:e=>({type:"WPCOM_WELCOME_GUIDE_TOUR_RATING_SET",tourRating:e}),setUsedPageOrPatternsModal:()=>({type:"WPCOM_HAS_USED_PATTERNS_MODAL"}),setShouldShowFirstPostPublishedModal:e=>({type:"WPCOM_SET_SHOULD_SHOW_FIRST_POST_PUBLISHED_MODAL",value:e}),resetStore:()=>({type:"WPCOM_WELCOME_GUIDE_RESET_STORE"})},d={isWelcomeGuideManuallyOpened:e=>e.welcomeGuideManuallyOpened,isWelcomeGuideShown:e=>!!e.showWelcomeGuide,isWelcomeGuideStatusLoaded:e=>void 0!==e.showWelcomeGuide,getTourRating:e=>e.tourRating,getWelcomeGuideVariant:e=>"modal"===e.welcomeGuideVariant?a:e.welcomeGuideVariant,getShouldShowFirstPostPublishedModal:e=>e.shouldShowFirstPostPublishedModal};function p(){return(0,i.registerStore)("automattic/wpcom-welcome-guide",{reducer:u,actions:l,selectors:d,controls:s.controls,persist:!0})}},374:function(e,t,n){"use strict";var o=n(7896),r=n(9307),i=n(6115),s=n(5609),a=n(9818),c=n(5736),u=n(9711),l=n(6595),d=n(5486),p=n(7821);n(7777);const __=c.__;function f(e){let{pageNumber:t,isLastPage:n,alignBottom:o=!1,heading:a,description:c,imgSrc:u}=e;return(0,r.useEffect)((()=>{var e;(0,i.jN)("calypso_editor_wpcom_nux_slide_view",{slide_number:t,is_last_slide:n,is_gutenboarding:null===(e=window.calypsoifyGutenberg)||void 0===e?void 0:e.isGutenboarding})}),[]),(0,r.createElement)(s.GuidePage,{className:"wpcom-block-editor-nux__page"},(0,r.createElement)("div",{className:"wpcom-block-editor-nux__text"},(0,r.createElement)("h1",{className:"wpcom-block-editor-nux__heading"},a),(0,r.createElement)("div",{className:"wpcom-block-editor-nux__description"},c)),(0,r.createElement)("div",{className:"wpcom-block-editor-nux__visual"},(0,r.createElement)("img",{key:u,src:u,alt:"","aria-hidden":"true",className:"wpcom-block-editor-nux__image"+(o?" align-bottom":"")})))}t.Z=function(){const{show:e,isNewPageLayoutModalOpen:t,isManuallyOpened:n}=(0,a.useSelect)((e=>({show:e("automattic/wpcom-welcome-guide").isWelcomeGuideShown(),isNewPageLayoutModalOpen:e("automattic/starter-page-layouts")&&e("automattic/starter-page-layouts").isOpen(),isManuallyOpened:e("automattic/wpcom-welcome-guide").isWelcomeGuideManuallyOpened()}))),{setShowWelcomeGuide:c}=(0,a.useDispatch)("automattic/wpcom-welcome-guide");if((0,r.useEffect)((()=>{var o;e&&!t&&(0,i.jN)("calypso_editor_wpcom_nux_open",{is_gutenboarding:null===(o=window.calypsoifyGutenberg)||void 0===o?void 0:o.isGutenboarding,is_manually_opened:n})}),[n,t,e]),!e||t)return null;const m=[{heading:__("Welcome to your website","full-site-editing"),description:__("Edit your homepage, add the pages you need, and change your site’s look and feel.","full-site-editing"),imgSrc:l,alignBottom:!0},{heading:__("Add or edit your content","full-site-editing"),description:__("Edit the placeholder content we’ve started you off with, or click the plus sign to add more content.","full-site-editing"),imgSrc:u},{heading:__("Preview your site as you go","full-site-editing"),description:__("As you edit your site content, click “Preview” to see your site the way your visitors will.","full-site-editing"),imgSrc:d,alignBottom:!0},{heading:__("Hidden until you’re ready","full-site-editing"),description:__("Your site will remain hidden until launched. Click “Launch” in the toolbar to share it with the world.","full-site-editing"),imgSrc:p,alignBottom:!0}];return(0,r.createElement)(s.Guide,{className:"wpcom-block-editor-nux",contentLabel:__("Welcome to your website","full-site-editing"),finishButtonText:__("Get started","full-site-editing"),onFinish:()=>{var e;(0,i.jN)("calypso_editor_wpcom_nux_dismiss",{is_gutenboarding:null===(e=window.calypsoifyGutenberg)||void 0===e?void 0:e.isGutenboarding}),c(!1,{openedManually:!1})}},m.map(((e,t)=>(0,r.createElement)(f,(0,o.Z)({key:e.heading,pageNumber:t+1,isLastPage:t===m.length-1},e)))))}},7203:function(e,t,n){"use strict";var o=n(9307),r=n(6115),i=n(849),s=n(5585),a=n(8038),c=n(9321),u=n(9818),l=n(5262),d=n(7542),p=n(6505);n(7710);function f(){var e;const t=(0,d.Z)(window._currentSiteId),n=(0,l.Z)(),s=(0,i.bU)(),{setShowWelcomeGuide:f}=(0,u.useDispatch)("automattic/wpcom-welcome-guide"),m=null===(e=window.calypsoifyGutenberg)||void 0===e?void 0:e.isGutenboarding,h=()=>new URLSearchParams(document.location.search).has("welcome-tour-next"),g=(0,u.useSelect)((e=>!!e("core/edit-site"))),v=(0,p.Z)(s,h(),g);if("sell"!==n||!t||"ecommerce-bundle"===t.product_slug){const e=v.findIndex((e=>"payment-block"===e.slug));v.splice(e,1)}const{isInserterOpened:w,isSidebarOpened:y,isSettingsOpened:b}=(0,u.useSelect)((e=>{var t;return{isInserterOpened:e("core/edit-post").isInserterOpened(),isSidebarOpened:(null===(t=e("automattic/block-editor-nav-sidebar"))||void 0===t?void 0:t.isSidebarOpened())??!1,isSettingsOpened:"edit-post/document"===e("core/interface").getActiveComplementaryArea("core/edit-post")}})),_=y||(0,c.kV)("<782px")&&(w||b),E={steps:v,closeHandler:(e,t,n)=>{(0,r.jN)("calypso_editor_wpcom_tour_dismiss",{is_gutenboarding:m,slide_number:t+1,action:n}),f(!1,{openedManually:!1})},isMinimized:_,options:{tourRating:{enabled:!0,useTourRating:()=>(0,u.useSelect)((e=>e("automattic/wpcom-welcome-guide").getTourRating())),onTourRate:e=>{(0,u.dispatch)("automattic/wpcom-welcome-guide").setTourRating(e),(0,r.jN)("calypso_editor_wpcom_tour_rate",{thumbs_up:"thumbs-up"===e,is_gutenboarding:!1})}},callbacks:{onMinimize:e=>{(0,r.jN)("calypso_editor_wpcom_tour_minimize",{is_gutenboarding:m,slide_number:e+1})},onMaximize:e=>{(0,r.jN)("calypso_editor_wpcom_tour_maximize",{is_gutenboarding:m,slide_number:e+1})},onStepViewOnce:e=>{const t=v.length-1,{heading:n}=v[e].meta;(0,r.jN)("calypso_editor_wpcom_tour_slide_view",{slide_number:e+1,is_last_slide:e===t,slide_heading:n,is_gutenboarding:m})}},effects:{spotlight:h()?{styles:{minWidth:"50px",minHeight:"50px",borderRadius:"2px"}}:void 0,arrowIndicator:!1},popperModifiers:[(0,o.useMemo)((()=>({name:"offset",options:{offset:e=>{let{placement:t,reference:n}=e;if("bottom"===t){const e=document.querySelector(".edit-post-header");if(!e)return;const t=e.getBoundingClientRect();return[0,t.height+t.y-(n.height+n.y)+16]}return[0,0]}}})),[])],classNames:"wpcom-editor-welcome-tour",portalParentElement:document.getElementById("wpwrap")}};return(0,o.createElement)(a.Z,{config:E})}t.Z=function(){const{show:e,isNewPageLayoutModalOpen:t,isManuallyOpened:n}=(0,u.useSelect)((e=>({show:e("automattic/wpcom-welcome-guide").isWelcomeGuideShown(),isNewPageLayoutModalOpen:e("automattic/starter-page-layouts")&&e("automattic/starter-page-layouts").isOpen(),isManuallyOpened:e("automattic/wpcom-welcome-guide").isWelcomeGuideManuallyOpened()}))),a=(0,i.bU)();return(0,s.Z)([(0,p.Z)(a,!1)[0]]),(0,o.useEffect)((()=>{var o;(e||t)&&(0,r.jN)("calypso_editor_wpcom_tour_open",{is_gutenboarding:null===(o=window.calypsoifyGutenberg)||void 0===o?void 0:o.isGutenboarding,is_manually_opened:n})}),[t,n,e]),!e||t?null:(0,o.createElement)(f,null)}},6505:function(e,t,n){"use strict";var o=n(9307),r=n(7498),i=n(9321),s=n(5609),a=n(5736);const __=a.__;function c(e){const t="https://s0.wp.com/i/editor-welcome-tour";return{addBlock:{desktop:{src:`${t}/slide-add-block.gif`,type:"image/gif"},mobile:{src:`${t}/slide-add-block_mobile.gif`,type:"image/gif"}},allBlocks:{desktop:{src:`${t}/slide-all-blocks.gif`,type:"image/gif"}},finish:{desktop:{src:`${t}/slide-finish.png`,type:"image/gif"}},makeBold:{desktop:{src:`${t}/slide-make-bold.gif`,type:"image/gif"}},moreOptions:{desktop:{src:`${t}/slide-more-options.gif`,type:"image/gif"},mobile:{src:`${t}/slide-more-options_mobile.gif`,type:"image/gif"}},moveBlock:{desktop:{src:`${t}/slide-move-block.gif`,type:"image/gif"},mobile:{src:`${t}/slide-move-block_mobile.gif`,type:"image/gif"}},findYourWay:{desktop:{src:`${t}/slide-find-your-way.gif`,type:"image/gif"}},undo:{desktop:{src:`${t}/slide-undo.gif`,type:"image/gif"}},welcome:{desktop:{src:`${t}/slide-welcome.png`,type:"image/png"},mobile:{src:`${t}/slide-welcome_mobile.jpg`,type:"image/jpeg"}},editYourSite:{desktop:{src:"https://s.w.org/images/block-editor/edit-your-site.gif?1",type:"image/gif"},mobile:{src:"https://s.w.org/images/block-editor/edit-your-site.gif?1",type:"image/gif"}}}[e]}t.Z=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return[{slug:"welcome",meta:{heading:__("Welcome to WordPress!","full-site-editing"),descriptions:{desktop:__("Take this short, interactive tour to learn the fundamentals of the WordPress editor.","full-site-editing"),mobile:null},imgSrc:c("welcome")},options:{classNames:{desktop:"wpcom-editor-welcome-tour__step",mobile:["is-with-extra-padding","wpcom-editor-welcome-tour__step"]}}},{slug:"everything-is-a-block",meta:{heading:__("Everything is a block","full-site-editing"),descriptions:{desktop:__("In the WordPress Editor, paragraphs, images, and videos are all blocks.","full-site-editing"),mobile:null},imgSrc:c("allBlocks")},options:{classNames:{desktop:"wpcom-editor-welcome-tour__step",mobile:"wpcom-editor-welcome-tour__step"}}},{slug:"add-block",...t&&{referenceElements:{mobile:".edit-post-header .edit-post-header__toolbar .components-button.edit-post-header-toolbar__inserter-toggle",desktop:".edit-post-header .edit-post-header__toolbar .components-button.edit-post-header-toolbar__inserter-toggle"}},meta:{heading:__("Adding a new block","full-site-editing"),descriptions:{desktop:__("Click + to open the inserter. Then click the block you want to add.","full-site-editing"),mobile:__("Tap + to open the inserter. Then tap the block you want to add.","full-site-editing")},imgSrc:c("addBlock")},options:{classNames:{desktop:"wpcom-editor-welcome-tour__step",mobile:["is-with-extra-padding","wpcom-editor-welcome-tour__step"]}}},{slug:"edit-block",meta:{heading:__("Click a block to change it","full-site-editing"),descriptions:{desktop:__("Use the toolbar to change the appearance of a selected block. Try making it bold.","full-site-editing"),mobile:null},imgSrc:c("makeBold")},options:{classNames:{desktop:"wpcom-editor-welcome-tour__step",mobile:"wpcom-editor-welcome-tour__step"}}},{slug:"settings",...t&&{referenceElements:{mobile:".edit-post-header .edit-post-header__settings .interface-pinned-items > button:nth-child(1)",desktop:".edit-post-header .edit-post-header__settings .interface-pinned-items > button:nth-child(1)"}},meta:{heading:__("More Options","full-site-editing"),descriptions:{desktop:__("Click the settings icon to see even more options.","full-site-editing"),mobile:__("Tap the settings icon to see even more options.","full-site-editing")},imgSrc:c("moreOptions")},options:{classNames:{desktop:"wpcom-editor-welcome-tour__step",mobile:["is-with-extra-padding","wpcom-editor-welcome-tour__step"]}}},...(0,i.tq)()?[]:[{slug:"find-your-way",meta:{heading:__("Find your way","full-site-editing"),descriptions:{desktop:__("Use List View to see all the blocks you've added. Click and drag any block to move it around.","full-site-editing"),mobile:null},imgSrc:c("findYourWay")},options:{classNames:{desktop:["is-with-extra-padding","wpcom-editor-welcome-tour__step"],mobile:"wpcom-editor-welcome-tour__step"}}}],...(0,i.tq)()?[]:[{slug:"undo",...t&&{referenceElements:{desktop:".edit-post-header .edit-post-header__toolbar .components-button.editor-history__undo"}},meta:{heading:__("Undo any mistake","full-site-editing"),descriptions:{desktop:__("Click the Undo button if you've made a mistake.","full-site-editing"),mobile:null},imgSrc:c("undo")},options:{classNames:{desktop:"wpcom-editor-welcome-tour__step",mobile:"wpcom-editor-welcome-tour__step"}}}],{slug:"drag-drop",meta:{heading:__("Drag & drop","full-site-editing"),descriptions:{desktop:__("To move blocks around, click and drag the handle.","full-site-editing"),mobile:__("To move blocks around, tap the up and down arrows.","full-site-editing")},imgSrc:c("moveBlock")},options:{classNames:{desktop:"wpcom-editor-welcome-tour__step",mobile:["is-with-extra-padding","wpcom-editor-welcome-tour__step"]}}},{slug:"payment-block",meta:{heading:__("The Payments block","full-site-editing"),descriptions:{desktop:(0,o.createElement)(o.Fragment,null,__("The Payments block allows you to accept payments for one-time, monthly recurring, or annual payments on your website","full-site-editing"),(0,o.createElement)("br",null),(0,o.createElement)(s.ExternalLink,{href:(0,r.aq)("https://wordpress.com/support/video-tutorials-add-payments-features-to-your-site-with-our-guides/#how-to-use-the-payments-block-video",e),target:"_blank",rel:"noopener noreferrer"},__("Learn more","full-site-editing"))),mobile:null},imgSrc:c("welcome")},options:{classNames:{desktop:"wpcom-editor-welcome-tour__step",mobile:"wpcom-editor-welcome-tour__step"}}},...n?[{slug:"edit-your-site",meta:{heading:__("Edit your site","full-site-editing"),descriptions:{desktop:__("Design everything on your site - from the header right down to the footer - using blocks.","full-site-editing"),mobile:__("Design everything on your site - from the header right down to the footer - using blocks.","full-site-editing")},imgSrc:c("editYourSite")},options:{classNames:{desktop:"wpcom-editor-welcome-tour__step",mobile:["is-with-extra-padding","wpcom-editor-welcome-tour__step"]}}}]:[],{slug:"congratulations",meta:{heading:__("Congratulations!","full-site-editing"),descriptions:{desktop:(0,o.createInterpolateElement)(__("You've learned the basics. Remember, your site is private until you <link_to_launch_site_docs>decide to launch</link_to_launch_site_docs>. View the <link_to_editor_docs>block editing docs</link_to_editor_docs> to learn more.","full-site-editing"),{link_to_launch_site_docs:(0,o.createElement)(s.ExternalLink,{href:(0,r.aq)("https://wordpress.com/support/settings/privacy-settings/#launch-your-site",e)}),link_to_editor_docs:(0,o.createElement)(s.ExternalLink,{href:(0,r.aq)("https://wordpress.com/support/wordpress-editor/",e)})}),mobile:null},imgSrc:c("finish")},options:{classNames:{desktop:"wpcom-editor-welcome-tour__step",mobile:"wpcom-editor-welcome-tour__step"}}}]}},6115:function(e,t,n){"use strict";n.d(t,{jN:function(){return o.jN}});n(1694),n(6209),n(9377);var o=n(9792);n(3722)},9377:function(e,t,n){"use strict";let o=null;"undefined"!=typeof window&&window.addEventListener("popstate",(function(){o=null}))},9792:function(e,t,n){"use strict";n.d(t,{jN:function(){return p}});var o=n(2699),r=n(4898),i=(n(3421),n(2819)),s=(n(9377),n(6209),n(9358));n(1694);const a=["a8c_cookie_banner_ok","wcadmin_storeprofiler_create_jetpack_account","wcadmin_storeprofiler_connect_store","wcadmin_storeprofiler_login_jetpack_account","wcadmin_storeprofiler_payment_login","wcadmin_storeprofiler_payment_create_account","calypso_checkout_switch_to_p_24","calypso_checkout_composite_p24_submit_clicked"];let c,u=Promise.resolve();function l(e){"undefined"!=typeof window&&(window._tkq=window._tkq||[],window._tkq.push(e))}"undefined"!=typeof document&&(u=(0,r.ve)("//stats.wp.com/w.js?63"));const d=new o.EventEmitter;function p(e,t){if(t=t||{},(0,s.Z)('Record event "%s" called with props %o',e,t),e.startsWith("calypso_")||(0,i.includes)(a,e)){if(c){const e=c(t);t={...t,...e}}t=(0,i.omitBy)(t,(e=>void 0===e)),(0,s.Z)('Recording event "%s" with actual props %o',e,t),l(["recordEvent",e,t]),d.emit("record-event",e,t)}else(0,s.Z)('- Event name must be prefixed by "calypso_" or added to `EVENT_NAME_EXCEPTIONS`')}},3722:function(e,t,n){"use strict";n(9792)},6209:function(e,t,n){"use strict";n(4)},9358:function(e,t,n){"use strict";var o=n(8049),r=n.n(o);t.Z=r()("calypso:analytics")},1694:function(e,t,n){"use strict";n(9358)},4:function(e,t,n){"use strict";n(8032)},3668:function(e,t,n){"use strict";var o=n(9307),r=n(5736),i=n(2779),s=n.n(i),a=n(2819);n(2014);const __=r.__;t.Z=e=>{let{activePageIndex:t,numberOfPages:n,onChange:i,classNames:c,children:u}=e;const l=s()("pagination-control",c);return(0,o.createElement)("ul",{className:l,"aria-label":__("Pagination control")},(0,a.times)(n,(e=>(0,o.createElement)("li",{key:`${n}-${e}`,"aria-current":e===t?"page":void 0},(0,o.createElement)("button",{className:s()("pagination-control__page",{"is-current":e===t}),disabled:e===t,"aria-label":(0,r.sprintf)(__("Page %1$d of %2$d"),e+1,n),onClick:()=>i(e)})))),u&&(0,o.createElement)("li",{className:"pagination-control__last-item"},u))}},4724:function(e,t,n){"use strict";var o=n(914);t.Z=new o.Z},914:function(e,t,n){"use strict";var o=n(2699),r=n(2594),i=n(6668),s=n(8049),a=n.n(s),c=n(5079),u=n.n(c),l=n(7839),d=n.n(l),p=n(9830),f=n(3);const m=a()("i18n-calypso"),h="number_format_decimals",g="number_format_thousands_sep",v="messages",w=[function(e){return e}],y={};function b(){S.throwErrors&&"undefined"!=typeof window&&window.console&&window.console.warn&&window.console.warn.apply(window.console,arguments)}function _(e){return Array.prototype.slice.call(e)}function E(e){const t=e[0];("string"!=typeof t||e.length>3||e.length>2&&"object"==typeof e[1]&&"object"==typeof e[2])&&b("Deprecated Invocation: `translate()` accepts ( string, [string], [object] ). These arguments passed:",_(e),". See https://github.com/Automattic/i18n-calypso#translate-method"),2===e.length&&"string"==typeof t&&"string"==typeof e[1]&&b("Invalid Invocation: `translate()` requires an options object for plural translations, but passed:",_(e));let n={};for(let o=0;o<e.length;o++)"object"==typeof e[o]&&(n=e[o]);if("string"==typeof t?n.original=t:"object"==typeof n.original&&(n.plural=n.original.plural,n.count=n.original.count,n.original=n.original.single),"string"==typeof e[1]&&(n.plural=e[1]),void 0===n.original)throw new Error("Translate called without a `string` value as first argument.");return n}function x(e,t){return e.dcnpgettext(v,t.context,t.original,t.plural,t.count)}function k(e,t){for(let n=w.length-1;n>=0;n--){const o=w[n](Object.assign({},t)),r=o.context?o.context+""+o.original:o.original;if(e.state.locale[r])return x(e.state.tannin,o)}return null}function S(){if(!(this instanceof S))return new S;this.defaultLocaleSlug="en",this.defaultPluralForms=e=>1===e?0:1,this.state={numberFormatSettings:{},tannin:void 0,locale:void 0,localeSlug:void 0,localeVariant:void 0,textDirection:void 0,translations:d()({max:100})},this.componentUpdateHooks=[],this.translateHooks=[],this.stateObserver=new o.EventEmitter,this.stateObserver.setMaxListeners(0),this.configure()}S.throwErrors=!1,S.prototype.on=function(){this.stateObserver.on(...arguments)},S.prototype.off=function(){this.stateObserver.off(...arguments)},S.prototype.emit=function(){this.stateObserver.emit(...arguments)},S.prototype.numberFormat=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n="number"==typeof t?t:t.decimals||0,o=t.decPoint||this.state.numberFormatSettings.decimal_point||".",r=t.thousandsSep||this.state.numberFormatSettings.thousands_sep||",";return(0,f.Z)(e,n,o,r)},S.prototype.configure=function(e){Object.assign(this,e||{}),this.setLocale()},S.prototype.setLocale=function(e){var t,n,o;if(e&&e[""]&&e[""]["key-hash"]){const t=e[""]["key-hash"],n=function(e,t){const n=!1===t?"":String(t);if(void 0!==y[n+e])return y[n+e];const o=u()().update(e).digest("hex");return y[n+e]=t?o.substr(0,t):o},o=function(e){return function(t){return t.context?(t.original=n(t.context+String.fromCharCode(4)+t.original,e),delete t.context):t.original=n(t.original,e),t}};if("sha1"===t.substr(0,4))if(4===t.length)w.push(o(!1));else{const e=t.substr(5).indexOf("-");if(e<0){const e=Number(t.substr(5));w.push(o(e))}else{const n=Number(t.substr(5,e)),r=Number(t.substr(6+e));for(let e=n;e<=r;e++)w.push(o(e))}}}if(e&&e[""].localeSlug)if(e[""].localeSlug===this.state.localeSlug){if(e===this.state.locale)return;Object.assign(this.state.locale,e)}else this.state.locale=Object.assign({},e);else this.state.locale={"":{localeSlug:this.defaultLocaleSlug,plural_forms:this.defaultPluralForms}};this.state.localeSlug=this.state.locale[""].localeSlug,this.state.localeVariant=this.state.locale[""].localeVariant,this.state.textDirection=(null===(t=this.state.locale["text directionltr"])||void 0===t?void 0:t[0])||(null===(n=this.state.locale[""])||void 0===n||null===(o=n.momentjs_locale)||void 0===o?void 0:o.textDirection),this.state.tannin=new p.Z({[v]:this.state.locale}),this.state.numberFormatSettings.decimal_point=x(this.state.tannin,E([h])),this.state.numberFormatSettings.thousands_sep=x(this.state.tannin,E([g])),this.state.numberFormatSettings.decimal_point===h&&(this.state.numberFormatSettings.decimal_point="."),this.state.numberFormatSettings.thousands_sep===g&&(this.state.numberFormatSettings.thousands_sep=","),this.stateObserver.emit("change")},S.prototype.getLocale=function(){return this.state.locale},S.prototype.getLocaleSlug=function(){return this.state.localeSlug},S.prototype.getLocaleVariant=function(){return this.state.localeVariant},S.prototype.isRtl=function(){return"rtl"===this.state.textDirection},S.prototype.addTranslations=function(e){for(const t in e)""!==t&&(this.state.tannin.data.messages[t]=e[t]);this.stateObserver.emit("change")},S.prototype.hasTranslation=function(){return!!k(this,E(arguments))},S.prototype.translate=function(){const e=E(arguments);let t=k(this,e);if(t||(t=x(this.state.tannin,e)),e.args){const o=Array.isArray(e.args)?e.args.slice(0):[e.args];o.unshift(t);try{t=(0,i.Z)(...o)}catch(n){if(!window||!window.console)return;const e=this.throwErrors?"error":"warn";"string"!=typeof n?window.console[e](n):window.console[e]("i18n sprintf error:",o)}}return e.components&&(t=(0,r.Z)({mixedString:t,components:e.components,throwErrors:this.throwErrors})),this.translateHooks.forEach((function(n){t=n(t,e)})),t},S.prototype.reRenderTranslations=function(){m("Re-rendering all translations due to external request"),this.stateObserver.emit("change")},S.prototype.registerComponentUpdateHook=function(e){this.componentUpdateHooks.push(e)},S.prototype.registerTranslateHook=function(e){this.translateHooks.push(e)},t.Z=S},1481:function(e,t,n){"use strict";n.d(t,{Yj:function(){return r}});var o=n(4724);o.Z.numberFormat.bind(o.Z),o.Z.translate.bind(o.Z),o.Z.configure.bind(o.Z),o.Z.setLocale.bind(o.Z),o.Z.getLocale.bind(o.Z);const r=o.Z.getLocaleSlug.bind(o.Z);o.Z.getLocaleVariant.bind(o.Z),o.Z.isRtl.bind(o.Z),o.Z.addTranslations.bind(o.Z),o.Z.reRenderTranslations.bind(o.Z),o.Z.registerComponentUpdateHook.bind(o.Z),o.Z.registerTranslateHook.bind(o.Z),o.Z.state,o.Z.stateObserver,o.Z.on.bind(o.Z),o.Z.off.bind(o.Z),o.Z.emit.bind(o.Z)},3:function(e,t,n){"use strict";function o(e,t,n,o){e=(e+"").replace(/[^0-9+\-Ee.]/g,"");const r=isFinite(+e)?+e:0,i=isFinite(+t)?Math.abs(t):0,s=void 0===o?",":o,a=void 0===n?".":n;let c="";return c=(i?
|
7 |
/*
|
8 |
* Exposes number format capability
|
9 |
*
|
@@ -11,5 +11,5 @@
|
|
11 |
* @license See CREDITS.md
|
12 |
* @see https://github.com/kvz/phpjs/blob/ffe1356af23a6f2512c84c954dd4e828e92579fa/functions/strings/number_format.js
|
13 |
*/
|
14 |
-
function(e,t){const n=Math.pow(10,t);return""+(Math.round(e*n)/n).toFixed(t)}(r,i):""+Math.round(r)).split("."),c[0].length>3&&(c[0]=c[0].replace(/\B(?=(?:\d{3})+(?!\d))/g,s)),(c[1]||"").length<i&&(c[1]=c[1]||"",c[1]+=new Array(i-c[1].length+1).join("0")),c.join(a)}n.d(t,{Z:function(){return o}})},849:function(e,t,n){"use strict";n.d(t,{Iw:function(){return c},bU:function(){return l}});var o=n(9307),r=n(4333),i=n(5736),s=n(9196);const a=(0,s.createContext)(null),c=e=>{let{children:t,localeSlug:n}=e;return(0,o.createElement)(a.Provider,{value:n},t)};function u(){var e,t;return function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";if(!e)return"";const t=["pt_br","pt-br","zh_tw","zh-tw","zh_cn","zh-cn","zh_sg","zh-sg"],n=e.toLowerCase();return(t.includes(n)?n.replace("_","-"):n.replace(/([-_].*)$/i,""))||"en"}(i.getLocaleData?null===(e=i.getLocaleData())||void 0===e||null===(t=e[""])||void 0===t?void 0:t.language:"")}function l(){var e;const t=(0,s.useContext)(a),n=!!t,[o,r]=(0,s.useState)(u());return(0,s.useEffect)((()=>{if(!n)return r(u()),i.subscribe((()=>{r(u())}))}),[n]),t||o||(null===(e=window)||void 0===e?void 0:e._currentUserLocale)||"en"}(0,r.createHigherOrderComponent)((e=>t=>{const n={...t,locale:l()};return(0,o.createElement)(e,n)}),"withLocale")},4655:function(e,t,n){"use strict";n.d(t,{OP:function(){return o},GG:function(){return r},iT:function(){return i},xn:function(){return s},Xb:function(){return a},hI:function(){return c},mL:function(){return u},vS:function(){return l},_r:function(){return d}});const o="en",r=["en","ja","es","pt","fr","pt-br"],i=["en","fr","de","es"],s=["en","fr","de","es"],a={"pt-br":"br",br:"bre",zh:"zh-cn","zh-hk":"zh-tw","zh-sg":"zh-cn",kr:"ko"},c=["ar","de","en","es","fr","he","id","it","ja","ko","nl","pt-br","ru","sv","tr","zh-cn","zh-tw"],u=["ar","de","el","en","es","fa","fi","fr","id","it","ja","nl","pt","pt-br","ru","sv","th","tl","tr"],l=["es","pt-br","de","fr","he","ja","it","nl","ru","tr","id","zh-cn","zh-tw","ko","ar","sv"],d=["en","ar","de","es","fr","he","id","it","ja","ko","nl","pt-br","ro","ru","sv","tr","zh-cn","zh-tw"]},7498:function(e,t,n){"use strict";n.d(t,{aq:function(){return g}});var o=n(9307),r=n(4333),i=n(1481),s=n(9196),a=n(849),c=n(4655);const u="http://__domain__.invalid";function l(){return(null===i.Yj||void 0===i.Yj?void 0:(0,i.Yj)())??"en"}const d=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return(n,o)=>(t.includes(o)&&"en"!==o&&n.pathname.substr(0,o.length+2)!=="/"+o+"/"&&(n.host=`${c.Xb[o]||o}.${e}`),n)},p=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return(o,r)=>(o.host="wordpress.com","object"==typeof n&&n instanceof RegExp&&!n.test(o.pathname)&&(t=[]),o.pathname=e+o.pathname,t.includes(r)&&"en"!==r&&(o.pathname=r+o.pathname),o)},f=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2?arguments[2]:void 0;return(o,r)=>"object"==typeof t&&t instanceof RegExp&&!t.test(o.pathname)?o:e.includes(r)&&"en"!==r?("prefix"===n?o.pathname=r+o.pathname:"suffix"===n&&(o.pathname.endsWith("/")?o.pathname+=r+"/":o.pathname+="/"+r),o):o},m=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return(n,o)=>f(e,t,"prefix")(n,o)},h={"wordpress.com/support/":m(c.hI),"wordpress.com/forums/":m(c.mL),"wordpress.com/blog/":m(c.GG,/^\/blog\/?$/),"wordpress.com/tos/":m(c.vS),"wordpress.com/wp-admin/":d("wordpress.com",c.vS),"wordpress.com/wp-login.php":d("wordpress.com",c.vS),"jetpack.com":d("jetpack.com",c._r),"en.support.wordpress.com":p("/support",c.hI),"en.blog.wordpress.com":p("/blog",c.GG,/^\/$/),"apps.wordpress.com":m(c.vS),"en.forums.wordpress.com":p("/forums",c.mL),"automattic.com/privacy/":m(c.iT),"automattic.com/cookies/":m(c.xn),"wordpress.com/help/contact/":(e,t,n)=>n?e:(e.pathname=e.pathname.replace(/\/help\//,"/support/"),m(c.hI)(e,t)),"wordpress.com":(e,t)=>/^\/(checkout|me)(\/|$)/.test(e.pathname)||/\/([a-z0-9-]+\.)+[a-z]{2,}\/?$/.test(e.pathname)?e:m(c.vS)(e,t),"wordpress.com/theme/":(e,t,n)=>n?e:m(c.vS)(e,t),"wordpress.com/themes/":(e,t,n)=>n?e:m(c.vS)(e,t),"wordpress.com/log-in/":(e,t,n)=>n?e:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return(n,o)=>f(e,t,"suffix")(n,o)}(c.vS)(e,t)};function g(e){let t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l(),o=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];try{t=new URL(String(e),u)}catch(s){return e}if(t.origin===u)return e;t.protocol="https:",t.hostname="",t.pathname.endsWith(".php")||(t.pathname=(t.pathname+"/").replace(/\/+$/,"/"));const r=t.pathname.substr(0,1+t.pathname.indexOf("/",1));if("en.wordpress.com"===t.host&&(t.host="wordpress.com"),"/"+n+"/"===r)return e;const i=[t.host,t.host+r,t.host+t.pathname];for(let a=i.length-1;a>=0;a--)if(i[a]in h)return h[i[a]](t,n,o).href;return e}function v(){const e=(0,a.bU)();return(0,s.useCallback)(((t,n,o)=>g(t,n||e,o)),[e])}(0,r.createHigherOrderComponent)((e=>t=>{const n={...t,localizeUrl:v()};return(0,o.createElement)(e,n)}),"withLocalizeUrl")},2594:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var o=n(9196),r=n(1310);function i(e,t){let n,r,s=[];for(let o=0;o<e.length;o++){const i=e[o];if("string"!==i.type){if(void 0===t[i.value])throw new Error(`Invalid interpolation, missing component node: \`${i.value}\``);if("object"!=typeof t[i.value])throw new Error(`Invalid interpolation, component node must be a ReactElement or null: \`${i.value}\``);if("componentClose"===i.type)throw new Error(`Missing opening component token: \`${i.value}\``);if("componentOpen"===i.type){n=t[i.value],r=o;break}s.push(t[i.value])}else s.push(i.value)}if(n){const a=function(e,t){const n=t[e];let o=0;for(let r=e+1;r<t.length;r++){const e=t[r];if(e.value===n.value){if("componentOpen"===e.type){o++;continue}if("componentClose"===e.type){if(0===o)return r;o--}}}throw new Error("Missing closing component token `"+n.value+"`")}(r,e),c=i(e.slice(r+1,a),t),u=(0,o.cloneElement)(n,{},c);if(s.push(u),a<e.length-1){const n=i(e.slice(a+1),t);s=s.concat(n)}}return s=s.filter(Boolean),0===s.length?null:1===s.length?s[0]:(0,o.createElement)(o.Fragment,null,...s)}function s(e){const{mixedString:t,components:n,throwErrors:o}=e;if(!n)return t;if("object"!=typeof n){if(o)throw new Error(`Interpolation Error: unable to process \`${t}\` because components is not an object`);return t}const s=(0,r.Z)(t);try{return i(s,n)}catch(a){if(o)throw new Error(`Interpolation Error: unable to process \`${t}\` because of error \`${a.message}\``);return t}}},1310:function(e,t,n){"use strict";function o(e){return e.startsWith("{{/")?{type:"componentClose",value:e.replace(/\W/g,"")}:e.endsWith("/}}")?{type:"componentSelfClosing",value:e.replace(/\W/g,"")}:e.startsWith("{{")?{type:"componentOpen",value:e.replace(/\W/g,"")}:{type:"string",value:e}}function r(e){return e.split(/(\{\{\/?\s*\w+\s*\/?\}\})/g).map(o)}n.d(t,{Z:function(){return r}})},3340:function(e,t,n){"use strict";n.d(t,{hg:function(){return a},lZ:function(){return c},_W:function(){return l},Yt:function(){return d}});var o=n(8049);const r=n.n(o)()("lib/load-script/callback-handler"),i=new Map;function s(){return i}function a(e){return s().has(e)}function c(e,t){const n=s();a(e)?(r(`Adding a callback for an existing script from "${e}"`),n.get(e).add(t)):(r(`Adding a callback for a new script from "${e}"`),n.set(e,new Set([t])))}function u(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;const n=s(),o=n.get(e);if(o){r(`Executing callbacks for "${e}"`+(null===t?" with success":` with error "${t}"`)),o.forEach((e=>{"function"==typeof e&&e(t)})),n.delete(e)}}function l(){const e=this.getAttribute("src");r(`Handling successful request for "${e}"`),u(e),this.onload=null}function d(){const e=this.getAttribute("src");r(`Handling failed request for "${e}"`),u(e,new Error(`Failed to load script "${e}"`)),this.onerror=null}},5606:function(e,t,n){"use strict";n.d(t,{C:function(){return a},k:function(){return c}});var o=n(8049),r=n.n(o),i=n(3340);const s=r()("lib/load-script/dom-operations");function a(e){s(`Creating script element for "${e}"`);const t=document.createElement("script");return t.src=e,t.type="text/javascript",t.async=!0,t.onload=i._W,t.onerror=i.Yt,t}function c(e){s("Attaching element to head"),document.head.appendChild(e)}},4898:function(e,t,n){"use strict";n.d(t,{ve:function(){return a}});var o=n(8049),r=n.n(o),i=n(3340),s=n(5606);r()("package/load-script");function a(e,t){if(!(0,i.hg)(e)&&(0,s.k)((0,s.C)(e)),"function"!=typeof t)return new Promise(((t,n)=>{(0,i.lZ)(e,(e=>{null===e?t():n(e)}))}));(0,i.lZ)(e,t)}},8626:function(e,t,n){"use strict";var o=n(9307),r=(n(9196),n(7474)),i=n(5386),s=n(9946);t.Z=e=>{let{onMinimize:t,onDismiss:n,onNextStepProgression:a,onPreviousStepProgression:c,tourContainerRef:u,isMinimized:l}=e;return(0,r.Z)(u)?l?(0,o.createElement)((function(){return(0,s.Z)({onEscape:n("esc-key-minimized")}),null}),null):(0,o.createElement)((function(){return(0,s.Z)({onEscape:t,onArrowRight:a,onArrowLeft:c}),(0,i.Z)(u),null}),null):null}},9549:function(e,t,n){"use strict";n.d(t,{S:function(){return i}});var o=n(9307);const r=(0,o.createContext)({}),i=()=>(0,o.useContext)(r);t.Z=e=>{let{config:t,children:n}=e;return(0,o.createElement)(r.Provider,{value:{config:t}},n)}},4065:function(e,t,n){"use strict";var o=n(7896),r=n(9307),i=n(6951),s=n(2779),a=n.n(s),c=n(6194),u=n(9207),l=n(2036),d=n(9351),p=n(8626),f=n(6165),m=n(7858),h=n(8074),g=n(301);const v=(e,t)=>{"function"==typeof t&&t(e)};t.Z=e=>{var t,n,s,w,y,b,_,E,x,k,S,Z,C,O,P,M,L,F,R,T,j,N,A,z,I,D,W,G,B;let{config:U}=e;const[$,H]=(0,r.useState)(0),[V,q]=(0,r.useState)(null),[Y,K]=(0,r.useState)(U.isMinimized??!1),[Q,X]=(0,r.useState)(null),[J,ee]=(0,r.useState)(!1),te=(0,r.useRef)(null),ne=(0,i._z)(),oe=U.steps.length-1,re=(null===(t=U.steps[$].referenceElements)||void 0===t?void 0:t[ne?"mobile":"desktop"])||null,ie=re?document.querySelector(re):null;(0,r.useEffect)((()=>{U.isMinimized&&K(!0)}),[U.isMinimized]);const se=(0,r.useCallback)((()=>{var e,t;return!1!==(null===(e=U.options)||void 0===e||null===(t=e.effects)||void 0===t?void 0:t.arrowIndicator)&&!(!ie||Y||!J)}),[null===(n=U.options)||void 0===n||null===(s=n.effects)||void 0===s?void 0:s.arrowIndicator,Y,ie,J]),ae=(0,r.useCallback)((()=>{var e,t;return!(null===(e=U.options)||void 0===e||null===(t=e.effects)||void 0===t||!t.spotlight)&&!Y}),[null===(w=U.options)||void 0===w||null===(y=w.effects)||void 0===y?void 0:y.spotlight,Y]),ce=(0,r.useCallback)((()=>{var e,t;return!(ae()||null===(e=U.options)||void 0===e||null===(t=e.effects)||void 0===t||!t.overlay)&&!Y}),[null===(b=U.options)||void 0===b||null===(_=b.effects)||void 0===_?void 0:_.overlay,Y,ae]),ue=(0,r.useCallback)((e=>()=>{U.closeHandler(U.steps,$,e)}),[U,$]),le=(0,r.useCallback)((()=>{var e,t;oe>$&&H($+1),v($,null===(e=U.options)||void 0===e||null===(t=e.callbacks)||void 0===t?void 0:t.onNextStep)}),[null===(E=U.options)||void 0===E||null===(x=E.callbacks)||void 0===x?void 0:x.onNextStep,$,oe]),de=(0,r.useCallback)((()=>{var e,t;$&&H($-1),v($,null===(e=U.options)||void 0===e||null===(t=e.callbacks)||void 0===t?void 0:t.onPreviousStep)}),[null===(k=U.options)||void 0===k||null===(S=k.callbacks)||void 0===S?void 0:S.onPreviousStep,$]),pe=(0,r.useCallback)((e=>{var t,n;H(e),v($,null===(t=U.options)||void 0===t||null===(n=t.callbacks)||void 0===n?void 0:n.onGoToStep)}),[null===(Z=U.options)||void 0===Z||null===(C=Z.callbacks)||void 0===C?void 0:C.onGoToStep,$]),fe=(0,r.useCallback)((()=>{var e,t;K(!0),v($,null===(e=U.options)||void 0===e||null===(t=e.callbacks)||void 0===t?void 0:t.onMinimize)}),[null===(O=U.options)||void 0===O||null===(P=O.callbacks)||void 0===P?void 0:P.onMinimize,$]),me=(0,r.useCallback)((()=>{var e,t;K(!1),v($,null===(e=U.options)||void 0===e||null===(t=e.callbacks)||void 0===t?void 0:t.onMaximize)}),[null===(M=U.options)||void 0===M||null===(L=M.callbacks)||void 0===L?void 0:L.onMaximize,$]),{styles:he,attributes:ge,update:ve}=(0,c.D)(ie,Q,{strategy:"fixed",placement:(null==U?void 0:U.placement)??"bottom",modifiers:[{name:"preventOverflow",options:{rootBoundary:"document",padding:16}},{name:"arrow",options:{padding:12}},{name:"offset",options:{offset:[0,se()?12:10]}},{name:"flip",options:{fallbackPlacements:["top","left","right"]}},(0,r.useMemo)((()=>{var e,t;return(0,d._)(null===(e=U.options)||void 0===e||null===(t=e.effects)||void 0===t?void 0:t.liveResize)}),[null===(F=U.options)||void 0===F||null===(R=F.effects)||void 0===R?void 0:R.liveResize]),...(null===(T=U.options)||void 0===T?void 0:T.popperModifiers)||[]]}),we=!Y&&ie&&J?{style:null==he?void 0:he.popper,...null==ge?void 0:ge.popper}:null,ye=!Y&&ie&&J?{style:null==he?void 0:he.arrow,...null==ge?void 0:ge.arrow}:null;(0,r.useEffect)((()=>{setTimeout((()=>null==V?void 0:V.focus()))}),[V]),(0,r.useEffect)((()=>{ie?(ee(!1),ve&&ve().then((()=>ee(!0))).catch((()=>ee(!0)))):ee(!0)}),[ve,ie]),(0,r.useEffect)((()=>{var e,t;ie&&null!==(e=U.options)&&void 0!==e&&null!==(t=e.effects)&&void 0!==t&&t.autoScroll&&ie.scrollIntoView(U.options.effects.autoScroll)}),[null===(j=U.options)||void 0===j||null===(N=j.effects)||void 0===N?void 0:N.autoScroll,ie]);const be=a()("tour-kit-frame",ne?"is-mobile":"is-desktop",{"is-visible":J},(0,l.s)(null===(A=U.options)||void 0===A?void 0:A.classNames));return(0,u.Z)($,null===(z=U.options)||void 0===z||null===(I=z.callbacks)||void 0===I?void 0:I.onStepViewOnce),(0,r.createElement)(r.Fragment,null,(0,r.createElement)(p.Z,{onMinimize:fe,onDismiss:ue,onNextStepProgression:le,onPreviousStepProgression:de,tourContainerRef:te,isMinimized:Y}),(0,r.createElement)("div",{className:be,ref:te},ce()&&(0,r.createElement)(m.Z,{visible:!0}),ae()&&(0,r.createElement)(h.Z,(0,o.Z)({referenceElement:ie,liveResize:(null===(D=U.options)||void 0===D||null===(W=D.effects)||void 0===W?void 0:W.liveResize)||{}},(null===(G=U.options)||void 0===G||null===(B=G.effects)||void 0===B?void 0:B.spotlight)||{})),(0,r.createElement)("div",(0,o.Z)({className:"tour-kit-frame__container",ref:X},we),se()&&(0,r.createElement)("div",(0,o.Z)({className:"tour-kit-frame__arrow","data-popper-arrow":!0},ye)),Y?(0,r.createElement)(f.Z,{config:U,steps:U.steps,currentStepIndex:$,onMaximize:me,onDismiss:ue}):(0,r.createElement)(g.Z,{config:U,steps:U.steps,currentStepIndex:$,onMinimize:fe,onDismiss:ue,onNextStep:le,onPreviousStep:de,onGoToStep:pe,setInitialFocusedElement:q}))))}},6165:function(e,t,n){"use strict";var o=n(9307);t.Z=e=>{let{config:t,steps:n,currentStepIndex:r,onMaximize:i,onDismiss:s}=e;return(0,o.createElement)("div",{className:"tour-kit-minimized"},(0,o.createElement)(t.renderers.tourMinimized,{steps:n,currentStepIndex:r,onMaximize:i,onDismiss:s}))}},7858:function(e,t,n){"use strict";var o=n(9307),r=n(2779),i=n.n(r);t.Z=e=>{let{visible:t}=e;return(0,o.createElement)("div",{className:i()("tour-kit-overlay",{"is-visible":t})})}},9915:function(e,t,n){"use strict";n.d(t,{l:function(){return i}});var o=n(9307),r=n(8074);const i=e=>{let{enabled:t=!1,rootElementSelector:n="#wpwrap"}=e;return t?(0,o.createElement)("style",null,`\n .${r.u}, .${r.u} * {\n pointer-events: auto;\n }\n .tour-kit-frame__container button {\n pointer-events: auto;\n }\n .tour-kit-spotlight, .tour-kit-overlay {\n pointer-events: none;\n }\n ${n} :not(.${r.u}, .${r.u} *) {\n pointer-events: none;\n }\n `):null}},8074:function(e,t,n){"use strict";n.d(t,{u:function(){return d}});var o=n(7896),r=n(9307),i=n(2779),s=n.n(i),a=n(6194),c=n(9351),u=n(7858),l=n(9915);const d="wp-tour-kit-spotlit";t.Z=e=>{let{referenceElement:t,styles:n,interactivity:i,liveResize:p}=e;const[f,m]=(0,r.useState)(null),h=null==t?void 0:t.getBoundingClientRect(),g=[{name:"flip",enabled:!1},{name:"preventOverflow",options:{mainAxis:!1}},(0,r.useMemo)((()=>({name:"offset",options:{offset:e=>{let{placement:t,reference:n,popper:o}=e;return"bottom"===t?[0,-(n.height+(o.height-n.height)/2)]:[0,0]}}})),[]),(0,r.useMemo)((()=>(0,c._)(p)),[p])],{styles:v,attributes:w}=(0,a.D)(t,f,{strategy:"fixed",placement:"bottom",modifiers:g}),y=h?{width:`${h.width}px`,height:`${h.height}px`}:null,b=t?{style:{...y&&y,...null==v?void 0:v.popper,...n&&n},...null==w?void 0:w.popper}:null;return(0,r.useEffect)((()=>(null==t||t.classList.add(d),()=>{null==t||t.classList.remove(d)})),[t]),(0,r.createElement)(r.Fragment,null,(0,r.createElement)(l.l,i),(0,r.createElement)(u.Z,{visible:!b}),(0,r.createElement)("div",(0,o.Z)({className:s()("tour-kit-spotlight",{"is-visible":!!b}),ref:m},b)))}},301:function(e,t,n){"use strict";var o=n(9307),r=n(6951),i=n(2779),s=n.n(i),a=n(2036);t.Z=e=>{var t,n;let{config:i,steps:c,currentStepIndex:u,onMinimize:l,onDismiss:d,onNextStep:p,onPreviousStep:f,setInitialFocusedElement:m,onGoToStep:h}=e;const g=(0,r._z)(),v=s()("tour-kit-step",`is-step-${u}`,(0,a.s)(null===(t=i.steps[u].options)||void 0===t||null===(n=t.classNames)||void 0===n?void 0:n[g?"mobile":"desktop"]));return(0,o.createElement)("div",{className:v},(0,o.createElement)(i.renderers.tourStep,{steps:c,currentStepIndex:u,onDismiss:d,onNextStep:p,onPreviousStep:f,onMinimize:l,setInitialFocusedElement:m,onGoToStep:h}))}},2313:function(e,t,n){"use strict";var o=n(9307),r=(n(9196),n(1415)),i=n(9549),s=n(4065);n(6372);t.Z=e=>{var t;let{config:n,__temp__className:a}=e;const c=(0,o.useRef)(document.createElement("div")).current;return(0,o.useEffect)((()=>{var e;const t=["tour-kit",...a?[a]:[]];c.classList.add(...t);const o=(null===(e=n.options)||void 0===e?void 0:e.portalParentElement)||document.body;return o.appendChild(c),()=>{o.removeChild(c)}}),[a,c,null===(t=n.options)||void 0===t?void 0:t.portalParentElement]),(0,o.createElement)(r.Z,null,(0,o.createElement)(i.Z,{config:n},(0,o.createElement)("div",null,(0,o.createPortal)((0,o.createElement)(s.Z,{config:n}),c))))}},1415:function(e,t,n){"use strict";var o=n(6666),r=n(9307),i=n(9196),s=n.n(i);class a extends s().Component{constructor(){super(...arguments),(0,o.Z)(this,"state",{hasError:!1})}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(e,t){console.error(e,t)}render(){return this.state.hasError?(0,r.createElement)("h1",null,"Something went wrong."):this.props.children}}t.Z=a},7474:function(e,t,n){"use strict";var o=n(9307);t.Z=e=>{const[t,n]=(0,o.useState)(!1),r=(0,o.useCallback)((()=>{var t;document.hasFocus()&&null!==(t=e.current)&&void 0!==t&&t.contains(document.activeElement)?n(!0):n(!1)}),[e]),i=(0,o.useCallback)((t=>{var o;null!==(o=e.current)&&void 0!==o&&o.contains(t.target)?n(!0):n(!1)}),[e]),s=(0,o.useCallback)((t=>{var o;"Tab"===t.key&&(null!==(o=e.current)&&void 0!==o&&o.contains(t.target)?n(!0):n(!1))}),[e]);return(0,o.useEffect)((()=>(document.addEventListener("focusin",r),document.addEventListener("mousedown",i),document.addEventListener("keyup",s),()=>{document.removeEventListener("focusin",r),document.removeEventListener("mousedown",i),document.removeEventListener("keyup",s)})),[e,r,s,i]),t}},5386:function(e,t,n){"use strict";var o=n(5904),r=n(9307);t.Z=e=>{const[t,n]=(0,r.useState)(),[i,s]=(0,r.useState)(),a=(0,r.useCallback)((e=>{let n=!1;"Tab"===e.key&&(e.shiftKey?document.activeElement===t&&(null==i||i.focus(),n=!0):document.activeElement===i&&(null==t||t.focus(),n=!0)),n&&(e.preventDefault(),e.stopPropagation())}),[t,i]);(0,r.useEffect)((()=>{const t=e.current?o.focus.focusable.find(e.current):[];return t&&t.length&&(n(t[0]),s(t[t.length-1])),document.addEventListener("keydown",a),()=>{document.removeEventListener("keydown",a)}}),[e,a])}},9946:function(e,t,n){"use strict";var o=n(9307);t.Z=e=>{let{onEscape:t,onArrowRight:n,onArrowLeft:r}=e;const i=(0,o.useCallback)((e=>{let o=!1;switch(e.key){case"Escape":t&&(t(),o=!0);break;case"ArrowRight":n&&(n(),o=!0);break;case"ArrowLeft":r&&(r(),o=!0)}o&&(e.preventDefault(),e.stopPropagation())}),[t,n,r]);(0,o.useEffect)((()=>(document.addEventListener("keydown",i),()=>{document.removeEventListener("keydown",i)})),[i])}},9207:function(e,t,n){"use strict";var o=n(9307);t.Z=(e,t)=>{const[n,r]=(0,o.useState)([]);(0,o.useEffect)((()=>{n.includes(e)||(r((t=>[...t,e])),null==t||t(e))}),[e,t,n])}},2036:function(e,t,n){"use strict";n.d(t,{s:function(){return r},f:function(){return i}});var o=n(8049);function r(e){return null!=e&&e.length?e.toString().split(","):null}const i=n.n(o)()("tour-kit")},9351:function(e,t,n){"use strict";n.d(t,{_:function(){return r}});var o=n(2036);const r=function(){let{rootElementSelector:e,mutation:t=!1,resize:n=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{mutation:!1,resize:!1};return{name:"liveResizeModifier",enabled:!0,phase:"main",fn:()=>{},effect:r=>{try{const{state:i,instance:s}=r,a=Symbol(),{reference:c}=i.elements;if(c[a]={resizeObserver:new ResizeObserver((()=>{s.update()})),mutationObserver:new MutationObserver((()=>{s.update()}))},n&&(c instanceof Element?c[a].resizeObserver.observe(c):(0,o.f)("Error: ResizeObserver does not work with virtual elements, Tour Kit will not resize automatically if the size of the referenced element changes.")),t){const t=document.querySelector(e||"#wpwrap");t instanceof Element?c[a].mutationObserver.observe(t,{attributes:!0,characterData:!0,childList:!0,subtree:!0}):(0,o.f)(`Error: ${e} selector did not find a valid DOM element, Tour Kit will not update automatically if the DOM layout changes.`)}return()=>{c[a].resizeObserver.disconnect(),c[a].mutationObserver.disconnect(),delete c[a]}}catch(i){(0,o.f)("Error: Tour Kit live resize modifier failed unexpectedly:",i)}}}}},2639:function(e,t,n){"use strict";var o=n(9307),r=n(5609),i=n(5736),s=n(5869),a=n(8565),c=n(5885),u=n(9045);t.Z=e=>{let{steps:t,onMaximize:n,onDismiss:l,currentStepIndex:d}=e;const{__:__}=(0,c.QT)(),p=d+1,f=t.length-1+1;return(0,o.createElement)(r.Flex,{gap:0,className:"wpcom-tour-kit-minimized"},(0,o.createElement)(r.Button,{onClick:n,"aria-label":__("Resume Tour","full-site-editing")},(0,o.createElement)(r.Flex,{gap:13},(0,o.createElement)("p",null,(0,o.createInterpolateElement)((0,i.sprintf)(__("Resume tour <span>(%1$d/%2$d)</span>","full-site-editing"),p,f),{span:(0,o.createElement)("span",{className:"wpcom-tour-kit-minimized__tour-index"})})),(0,o.createElement)(s.Z,{icon:u.Z,size:24}))),(0,o.createElement)(r.Button,{onClick:l("close-btn-minimized"),"aria-label":__("Close Tour","full-site-editing")},(0,o.createElement)(s.Z,{icon:a.Z,size:24})))}},8428:function(e,t,n){"use strict";var o=n(9307),r=n(5609),i=n(5885),s=n(2779),a=n.n(s),c=n(9549),u=n(658),l=n(5168);t.Z=()=>{var e,t,n,s,d;const[p,f]=(0,o.useState)(),m=(0,c.S)().config,h=(null===(e=m.options)||void 0===e||null===(t=e.tourRating)||void 0===t||null===(n=t.useTourRating)||void 0===n?void 0:n.call(t))??p,{__:__}=(0,i.QT)();let g=!1;if(null===(s=m.options)||void 0===s||null===(d=s.tourRating)||void 0===d||!d.enabled)return null;g||void 0===p||(g=!0);const v=e=>{if(g)return;const t=e?"thumbs-up":"thumbs-down";var n,o,r;t!==h&&(g=!0,f(t),null===(n=m.options)||void 0===n||null===(o=n.tourRating)||void 0===o||null===(r=o.onTourRate)||void 0===r||r.call(o,t))};return(0,o.createElement)(o.Fragment,null,(0,o.createElement)("p",{className:"wpcom-tour-kit-rating__end-text"},__("Did you find this guide helpful?","full-site-editing")),(0,o.createElement)("div",null,(0,o.createElement)(r.Button,{"aria-label":__("Rate thumbs up","full-site-editing"),className:a()("wpcom-tour-kit-rating__end-icon",{active:"thumbs-up"===h}),disabled:g,icon:l.Z,onClick:()=>v(!0),iconSize:24}),(0,o.createElement)(r.Button,{"aria-label":__("Rate thumbs down","full-site-editing"),className:a()("wpcom-tour-kit-rating__end-icon",{active:"thumbs-down"===h}),disabled:g,icon:u.Z,onClick:()=>v(!1),iconSize:24})))}},6827:function(e,t,n){"use strict";var o=n(9307),r=n(3668),i=n(5609),s=n(5885);t.Z=e=>{let{currentStepIndex:t,onDismiss:n,onGoToStep:a,onNextStep:c,onPreviousStep:u,setInitialFocusedElement:l,steps:d}=e;const{__:__}=(0,s.QT)(),p=0===t,f=d.length-1;return(0,o.createElement)(o.Fragment,null,(0,o.createElement)(r.Z,{activePageIndex:t,numberOfPages:f+1,onChange:a},p?(0,o.createElement)("div",null,(0,o.createElement)(i.Button,{isTertiary:!0,onClick:n("no-thanks-btn")},__("Skip","full-site-editing")),(0,o.createElement)(i.Button,{className:"wpcom-tour-kit-step-card-navigation__next-btn",isPrimary:!0,onClick:c,ref:l},__("Try it out!","full-site-editing"))):(0,o.createElement)("div",null,(0,o.createElement)(i.Button,{isTertiary:!0,onClick:u},__("Back","full-site-editing")),(0,o.createElement)(i.Button,{className:"wpcom-tour-kit-step-card-navigation__next-btn",isPrimary:!0,onClick:c,ref:l},__("Next","full-site-editing")))))}},7208:function(e,t,n){"use strict";var o=n(9307),r=n(5609),i=n(8565),s=n(5885),a=n(6920);t.Z=e=>{let{onMinimize:t,onDismiss:n}=e;const{__:__}=(0,s.QT)();return(0,o.createElement)("div",{className:"wpcom-tour-kit-step-card-overlay-controls"},(0,o.createElement)(r.Flex,null,(0,o.createElement)(r.Button,{label:__("Minimize Tour","full-site-editing"),isPrimary:!0,className:"wpcom-tour-kit-step-card-overlay-controls__minimize-icon",icon:a.Z,iconSize:24,onClick:t}),(0,o.createElement)(r.Button,{label:__("Close Tour","full-site-editing"),isPrimary:!0,icon:i.Z,iconSize:24,onClick:n("close-btn")})))}},809:function(e,t,n){"use strict";var o=n(9307),r=n(9321),i=n(5609),s=n(5885),a=n(8428),c=n(6827),u=n(7208);t.Z=e=>{var t;let{steps:n,currentStepIndex:l,onMinimize:d,onDismiss:p,onGoToStep:f,onNextStep:m,onPreviousStep:h,setInitialFocusedElement:g}=e;const{__:__}=(0,s.QT)(),v=n.length-1,{descriptions:w,heading:y,imgSrc:b}=n[l].meta,_=l===v,E=w[(0,r.tq)()?"mobile":"desktop"]??w.desktop,x=(0,r.O9)(r.Gh);return(0,o.createElement)(i.Card,{className:"wpcom-tour-kit-step-card",isElevated:!0},(0,o.createElement)(u.Z,{onDismiss:p,onMinimize:d}),b&&(0,o.createElement)(i.CardMedia,{className:"wpcom-tour-kit-step-card__media"},(0,o.createElement)("picture",null,b.mobile&&(0,o.createElement)("source",{srcSet:b.mobile.src,type:b.mobile.type,media:null==x?void 0:x.media}),(0,o.createElement)("img",{alt:__("Tour Media","full-site-editing"),src:null===(t=b.desktop)||void 0===t?void 0:t.src}))),(0,o.createElement)(i.CardBody,null,(0,o.createElement)("h2",{className:"wpcom-tour-kit-step-card__heading"},y),(0,o.createElement)("p",{className:"wpcom-tour-kit-step-card__description"},E,_?(0,o.createElement)(i.Button,{className:"wpcom-tour-kit-step-card__description",isTertiary:!0,onClick:()=>f(0),ref:g},__("Restart tour","full-site-editing")):null)),(0,o.createElement)(i.CardFooter,null,_?(0,o.createElement)(a.Z,null):(0,o.createElement)(c.Z,{currentStepIndex:l,onDismiss:p,onGoToStep:f,onNextStep:m,onPreviousStep:h,setInitialFocusedElement:g,steps:n})))}},825:function(e,t,n){"use strict";var o=n(9307),r=n(809);t.Z=e=>{let{steps:t,currentStepIndex:n,onDismiss:i,onNextStep:s,onPreviousStep:a,onMinimize:c,setInitialFocusedElement:u,onGoToStep:l}=e;return(0,o.createElement)(r.Z,{steps:t,currentStepIndex:n,onDismiss:i,onMinimize:c,onGoToStep:l,onNextStep:s,onPreviousStep:a,setInitialFocusedElement:u})}},8038:function(e,t,n){"use strict";var o=n(9307),r=n(2313),i=n(5585),s=n(2639),a=n(825);n(4422);t.Z=e=>{let{config:t}=e;return(0,i.Z)(t.steps),(0,o.createElement)(r.Z,{__temp__className:"wpcom-tour-kit",config:{...t,renderers:{tourStep:a.Z,tourMinimized:s.Z}}})}},5585:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});var o=n(9307);function r(e){(0,o.useEffect)((()=>{e.forEach((e=>{var t,n;(null===(t=e.meta.imgSrc)||void 0===t?void 0:t.mobile)&&((new window.Image).src=e.meta.imgSrc.mobile.src),(null===(n=e.meta.imgSrc)||void 0===n?void 0:n.desktop)&&((new window.Image).src=e.meta.imgSrc.desktop.src)}))}),[e])}},9045:function(e,t,n){"use strict";var o=n(9307),r=n(444);const i=(0,o.createElement)(r.SVG,{width:"24",height:"24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,o.createElement)(r.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M14.086 5.412l3.476-.015c-.627.625-1.225 1.22-1.82 1.81l-.03.031c-.977.971-1.944 1.934-3.015 3.004l1.06 1.061c1.07-1.07 2.036-2.03 3.013-3.002l.03-.03 1.817-1.808-.03 3.448 1.5.013.046-5.28.007-.759-.76.003-5.301.024.007 1.5zM9.914 18.587l-3.476.016c.627-.625 1.225-1.22 1.82-1.81l.03-.031c.977-.971 1.944-1.934 3.015-3.004l-1.06-1.061c-1.07 1.069-2.036 2.03-3.012 3.001l-.001.001-.03.03-1.817 1.808.03-3.448-1.5-.013-.046 5.279-.007.76.76-.003 5.301-.024-.007-1.5z"}));t.Z=i},6920:function(e,t,n){"use strict";var o=n(9307),r=n(444);const i=(0,o.createElement)(r.SVG,{width:"24",height:"24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,o.createElement)(r.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M18.514 9.988l-3.476.016c.627-.626 1.225-1.22 1.82-1.811l.03-.03v-.001c.977-.971 1.944-1.933 3.015-3.004l-1.06-1.06c-1.07 1.069-2.037 2.03-3.013 3.001l-.03.03-1.818 1.809.03-3.449-1.5-.013-.045 5.28-.007.76.76-.004 5.301-.024-.007-1.5zM5.486 14.012l3.477-.016-1.82 1.811-.03.03c-.977.972-1.945 1.934-3.015 3.005l1.06 1.06c1.07-1.068 2.035-2.03 3.012-3V16.9l.03-.03 1.818-1.809-.03 3.449 1.5.013.046-5.28.006-.76-.76.004-5.3.024.006 1.5z",fill:"#fff"}));t.Z=i},658:function(e,t,n){"use strict";var o=n(9307),r=n(444);const i=(0,o.createElement)(r.SVG,{width:"24",height:"24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,o.createElement)(r.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M13.131 19.12a.667.667 0 001.227-.417l-.436-4.989h3.88c.954 0 1.64-.916 1.37-1.831L17.42 5.919a.286.286 0 00-.274-.205H9.429v7.588l3.702 5.818zm-5.417-5.977V5.714h-2v7.429h2zm5.98 8a2.381 2.381 0 01-2.01-1.103l-3.297-5.183H4V4h13.145a2 2 0 011.919 1.436l1.753 5.963a3.143 3.143 0 01-3.015 4.03h-2.01l.274 3.125a2.381 2.381 0 01-2.372 2.589z",fill:"#000"}));t.Z=i},5168:function(e,t,n){"use strict";var o=n(9307),r=n(444);const i=(0,o.createElement)(r.SVG,{width:"24",height:"24",fill:"none",xmlns:"http://www.w3.org/2000/SVG"},(0,o.createElement)(r.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M13.131 4.023a.667.667 0 011.227.416l-.436 4.99h3.88c.954 0 1.64.916 1.37 1.831l-1.753 5.963a.286.286 0 01-.274.206H9.429V9.84l3.702-5.818zM7.714 10v7.428h-2V10h2zm5.98-8c-.814 0-1.572.416-2.01 1.103L8.388 8.286H4v10.857h13.145a2 2 0 001.919-1.436l1.753-5.963a3.143 3.143 0 00-3.015-4.03h-2.01l.274-3.125A2.381 2.381 0 0013.694 2z",fill:"#000"}));t.Z=i},6951:function(e,t,n){"use strict";n.d(t,{_z:function(){return u}});var o=n(7896),r=n(9307),i=n(9321),s=n(4333),a=n(9196);function c(e){const[t,n]=(0,a.useState)((()=>({isActive:(0,i.kV)(e),breakpoint:e})));return(0,a.useEffect)((()=>(0,i.Sp)(e,(function(t){n((n=>n.isActive===t&&n.breakpoint===e?n:{isActive:t,breakpoint:e}))}))),[e]),e===t.breakpoint?t.isActive:(0,i.kV)(e)}function u(){return c(i.Gh)}(0,s.createHigherOrderComponent)((e=>(0,a.forwardRef)(((t,n)=>{const s=c(i.Gh);return(0,r.createElement)(e,(0,o.Z)({},t,{isBreakpointActive:s,ref:n}))}))),"WithMobileBreakpoint"),(0,s.createHigherOrderComponent)((e=>(0,a.forwardRef)(((t,n)=>{const s=c(i.oh);return(0,r.createElement)(e,(0,o.Z)({},t,{isBreakpointActive:s,ref:n}))}))),"WithDesktopBreakpoint")},9321:function(e,t,n){"use strict";n.d(t,{Gh:function(){return r},oh:function(){return i},O9:function(){return d},kV:function(){return p},Sp:function(){return f},tq:function(){return m}});const o=769,r="<480px",i=">960px",s="undefined"==typeof window||!window.matchMedia,a=()=>null;function c(e){return{addListener:()=>{},removeListener:()=>{},...e}}function u(e){const{min:t,max:n}=e??{};return void 0!==t&&void 0!==n?s?c({matches:o>t&&o<=n}):window.matchMedia(`(min-width: ${t+1}px) and (max-width: ${n}px)`):void 0!==t?s?c({matches:o>t}):window.matchMedia(`(min-width: ${t+1}px)`):void 0!==n&&(s?c({matches:o<=n}):window.matchMedia(`(max-width: ${n}px)`))}const l={"<480px":u({max:480}),"<660px":u({max:660}),"<782px":u({max:782}),"<800px":u({max:800}),"<960px":u({max:960}),"<1040px":u({max:1040}),"<1280px":u({max:1280}),"<1400px":u({max:1400}),">480px":u({min:480}),">660px":u({min:660}),">782px":u({min:782}),">800px":u({min:800}),">960px":u({min:960}),">1040px":u({min:1040}),">1280px":u({min:1280}),">1400px":u({min:1400}),"480px-660px":u({min:480,max:660}),"660px-960px":u({min:660,max:960}),"480px-960px":u({min:480,max:960})};function d(e){if(l.hasOwnProperty(e))return l[e];try{console.warn("Undefined breakpoint used in `mobile-first-breakpoint`",e)}catch(t){}}function p(e){const t=d(e);return t?t.matches:void 0}function f(e,t){if(!t)return a;const n=d(e);if(n&&!s){const e=e=>t(e.matches);return n.addListener(e),()=>n.removeListener(e)}return a}function m(){return p(r)}},8552:function(e,t,n){"use strict";var o=n(8049),r=n.n(o),i=n(8650),s=n.n(i),a=n(8767),c=n(2884),u=n.n(c);const l=r()("wpcom-proxy-request"),d="https://public-api.wordpress.com",p=window.location.protocol+"//"+window.location.host;let f=null;const m=(()=>{let e=!1;try{window.postMessage({toString:function(){e=!0}},"*")}catch(t){}return e})(),h=(()=>{try{return new window.File(["a"],"test.jpg",{type:"image/jpeg"}),!0}catch(e){return!1}})();let g,v=null,w=!1;const y={},b=!!window.ProgressEvent&&!!window.FormData;l('using "origin": %o',p);const _=(e,t)=>{const n=Object.assign({},e);l("request(%o)",n),v||Z();const o=(0,a.Z)();n.callback=o,n.supports_args=!0,n.supports_error_obj=!0,n.supports_progress=b,n.method=String(n.method||"GET").toUpperCase(),l("params object: %o",n);const r=new window.XMLHttpRequest;if(r.params=n,y[o]=r,"function"==typeof t){let e=!1;const n=n=>{if(e)return;e=!0;const o=n.response||r.response;l("body: ",o),l("headers: ",n.headers),t(null,o,n.headers)},o=n=>{if(e)return;e=!0;const o=n.error||n.err||n;l("error: ",o),l("headers: ",n.headers),t(o,null,n.headers)};r.addEventListener("load",n),r.addEventListener("abort",o),r.addEventListener("error",o)}return"function"==typeof n.onStreamRecord&&(f=n.onStreamRecord,delete n.onStreamRecord),w?x(n):(l("buffering API request since proxying <iframe> is not yet loaded"),g.push(n)),r},E=(e,t)=>"function"==typeof t?_(e,t):new Promise(((t,n)=>{_(e,((e,o)=>{e?n(e):t(o)}))}));function x(e){l("sending API request to proxy <iframe> %o",e),e.formData&&function(e){if(!window.chrome||!h)return;for(let t=0;t<e.length;t++){const n=S(e[t][1]);n&&(e[t][1]=new window.File([n],n.name,{type:n.type}))}}(e.formData),v.contentWindow.postMessage(m?JSON.stringify(e):e,d)}function k(e){return e&&"[object File]"===Object.prototype.toString.call(e)}function S(e){return k(e)?e:"object"==typeof e&&k(e.fileContents)?e.fileContents:null}function Z(){l("install()"),v&&(l("uninstall()"),window.removeEventListener("message",C),document.body.removeChild(v),w=!1,v=null),g=[],window.addEventListener("message",C),v=document.createElement("iframe"),v.src=d+"/wp-admin/rest-proxy/?v=2.0#"+p,v.style.display="none",document.body.appendChild(v)}function C(e){if(l("onmessage"),e.origin!==d)return void l("ignoring message... %o !== %o",e.origin,d);if(e.source!==v.contentWindow)return void l("ignoring message... iframe elements do not match");let{data:t}=e;if(!t)return l("no `data`, bailing");if("ready"===t)return void function(){if(l('proxy <iframe> "load" event'),w=!0,g){for(let e=0;e<g.length;e++)x(g[e]);g=null}}();if(m&&"string"==typeof t&&(t=JSON.parse(t)),t.upload||t.download)return function(e){l('got "progress" event: %o',e);const t=y[e.callbackId];if(t){const n=new(s())("progress",e);(e.upload?t.upload:t).dispatchEvent(n)}}(t);if(!t.length)return l("`e.data` doesn't appear to be an Array, bailing...");const n=t[t.length-1];if(!(n in y))return l("bailing, no matching request with callback: %o",n);const o=y[n],{params:r}=o,i=t[0];let a=t[1];const c=t[2];var p;if(207===a||delete y[n],r.metaAPI?a="metaAPIupdated"===i?200:500:l("got %o status code for URL: %o",a,r.path),"object"==typeof c&&(c.status=a,p=c["Content-Type"],/^application[/]x-ndjson($|;)/.test(p)&&207===a))f(i);else if(a&&2===Math.floor(a/100))!function(e,t,n){const o=new(s())("load");o.data=o.body=o.response=t,o.headers=n,e.dispatchEvent(o)}(o,i,c);else{!function(e,t,n){const o=new(s())("error");o.error=o.err=t,o.headers=n,e.dispatchEvent(o)}(o,u()(r,a,i),c)}}t.ZP=E},8049:function(e,t,n){t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const n="color: "+this.color;t.splice(1,0,n,"color: inherit");let o=0,r=0;t[0].replace(/%[a-zA-Z%]/g,(e=>{"%%"!==e&&(o++,"%c"===e&&(r=o))})),t.splice(r,0,n)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(n){}},t.load=function(){let e;try{e=t.storage.getItem("debug")}catch(n){}!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG);return e},t.useColors=function(){if("undefined"!=typeof window&&window.process&&("renderer"===window.process.type||window.process.__nwjs))return!0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage=function(){try{return localStorage}catch(e){}}(),t.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||(()=>{}),e.exports=n(2632)(t);const{formatters:o}=e.exports;o.j=function(e){try{return JSON.stringify(e)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}}},2632:function(e,t,n){e.exports=function(e){function t(e){let n,r,i,s=null;function a(){for(var e=arguments.length,o=new Array(e),r=0;r<e;r++)o[r]=arguments[r];if(!a.enabled)return;const i=a,s=Number(new Date),c=s-(n||s);i.diff=c,i.prev=n,i.curr=s,n=s,o[0]=t.coerce(o[0]),"string"!=typeof o[0]&&o.unshift("%O");let u=0;o[0]=o[0].replace(/%([a-zA-Z%])/g,((e,n)=>{if("%%"===e)return"%";u++;const r=t.formatters[n];if("function"==typeof r){const t=o[u];e=r.call(i,t),o.splice(u,1),u--}return e})),t.formatArgs.call(i,o);const l=i.log||t.log;l.apply(i,o)}return a.namespace=e,a.useColors=t.useColors(),a.color=t.selectColor(e),a.extend=o,a.destroy=t.destroy,Object.defineProperty(a,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==s?s:(r!==t.namespaces&&(r=t.namespaces,i=t.enabled(e)),i),set:e=>{s=e}}),"function"==typeof t.init&&t.init(a),a}function o(e,n){const o=t(this.namespace+(void 0===n?":":n)+e);return o.log=this.log,o}function r(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return t.debug=t,t.default=t,t.coerce=function(e){if(e instanceof Error)return e.stack||e.message;return e},t.disable=function(){const e=[...t.names.map(r),...t.skips.map(r).map((e=>"-"+e))].join(",");return t.enable(""),e},t.enable=function(e){let n;t.save(e),t.namespaces=e,t.names=[],t.skips=[];const o=("string"==typeof e?e:"").split(/[\s,]+/),r=o.length;for(n=0;n<r;n++)o[n]&&("-"===(e=o[n].replace(/\*/g,".*?"))[0]?t.skips.push(new RegExp("^"+e.slice(1)+"$")):t.names.push(new RegExp("^"+e+"$")))},t.enabled=function(e){if("*"===e[e.length-1])return!0;let n,o;for(n=0,o=t.skips.length;n<o;n++)if(t.skips[n].test(e))return!1;for(n=0,o=t.names.length;n<o;n++)if(t.names[n].test(e))return!0;return!1},t.humanize=n(5881),t.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(e).forEach((n=>{t[n]=e[n]})),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let n=0;for(let t=0;t<e.length;t++)n=(n<<5)-n+e.charCodeAt(t),n|=0;return t.colors[Math.abs(n)%t.colors.length]},t.enable(t.load()),t}},3830:function(e,t,n){"use strict";var o=n(956);e.exports=function(){var e=o.apply(o,arguments);return e.charAt(0).toUpperCase()+e.slice(1)}},956:function(e){"use strict";e.exports=function(){var e=[].map.call(arguments,(function(e){return e.trim()})).filter((function(e){return e.length})).join("-");return e.length?1!==e.length&&/[_.\- ]+/.test(e)?e.replace(/^[_.\- ]+/,"").toLowerCase().replace(/[_.\- ]+(\w|$)/g,(function(e,t){return t.toUpperCase()})):e[0]===e[0].toLowerCase()&&e.slice(1)!==e.slice(1).toLowerCase()?e:e.toLowerCase():""}},2686:function(e,t){"use strict";t.Z=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i},5302:function(e,t,n){"use strict";var o;n.d(t,{Z:function(){return i}});var r=new Uint8Array(16);function i(){if(!o&&!(o="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return o(r)}},708:function(e,t,n){"use strict";for(var o=n(6525),r=[],i=0;i<256;++i)r.push((i+256).toString(16).substr(1));t.Z=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(r[e[t+0]]+r[e[t+1]]+r[e[t+2]]+r[e[t+3]]+"-"+r[e[t+4]]+r[e[t+5]]+"-"+r[e[t+6]]+r[e[t+7]]+"-"+r[e[t+8]]+r[e[t+9]]+"-"+r[e[t+10]]+r[e[t+11]]+r[e[t+12]]+r[e[t+13]]+r[e[t+14]]+r[e[t+15]]).toLowerCase();if(!(0,o.Z)(n))throw TypeError("Stringified UUID is invalid");return n}},8767:function(e,t,n){"use strict";var o=n(5302),r=n(708);t.Z=function(e,t,n){var i=(e=e||{}).random||(e.rng||o.Z)();if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,t){n=n||0;for(var s=0;s<16;++s)t[n+s]=i[s];return t}return(0,r.Z)(i)}},6525:function(e,t,n){"use strict";var o=n(2686);t.Z=function(e){return"string"==typeof e&&o.Z.test(e)}},2884:function(e,t,n){var o=n(3830),r=n(6744);function i(e,t){if(t)if("number"==typeof t)s(e,t);else{t.status_code&&s(e,t.status_code),t.error&&(e.name=c(t.error)),t.error_description&&(e.message=t.error_description);var n=t.errors;if(n)i(e,n.length?n[0]:n);for(var o in t)e[o]=t[o];e.status&&(t.method||t.path)&&a(e)}}function s(e,t){e.name=c(r[t]),e.status=e.statusCode=t,a(e)}function a(e){var t=e.status,n=e.method,o=e.path,r=t+" status code",i=n||o;i&&(r+=' for "'),n&&(r+=n),i&&(r+=" "),o&&(r+=o),i&&(r+='"'),e.message=r}function c(e){return o(String(e).replace(/error$/i,""),"error")}e.exports=function e(){for(var t=new Error,n=0;n<arguments.length;n++)i(t,arguments[n]);"function"==typeof Error.captureStackTrace&&Error.captureStackTrace(t,e);return t}},3790:function(e,t,n){"use strict";e.exports=n.p+"images/draft-post-19715e868be3c82bb350.svg"},5275:function(e,t,n){"use strict";e.exports=n.p+"images/post-published-ca9ddfc04a7c889a72d2.svg"},4242:function(e,t,n){"use strict";e.exports=n.p+"images/product-published-f8461fe85ee7eb5713c8.svg"},9711:function(e,t,n){"use strict";e.exports=n.p+"images/block-picker-baad989c3eaa6c60cc56.svg"},6595:function(e,t,n){"use strict";e.exports=n.p+"images/editor-a1965f46cfb792664a14.svg"},5486:function(e,t,n){"use strict";e.exports=n.p+"images/preview-a3fa241fd59995b1fc42.svg"},7821:function(e,t,n){"use strict";e.exports=n.p+"images/private-761a5407869f32039248.svg"},9196:function(e){"use strict";e.exports=window.React},3288:function(e){"use strict";e.exports=window["a8c-fse-common-data-stores"]},2819:function(e){"use strict";e.exports=window.lodash},6989:function(e){"use strict";e.exports=window.wp.apiFetch},5609:function(e){"use strict";e.exports=window.wp.components},4333:function(e){"use strict";e.exports=window.wp.compose},9818:function(e){"use strict";e.exports=window.wp.data},3418:function(e){"use strict";e.exports=window.wp.dataControls},5904:function(e){"use strict";e.exports=window.wp.dom},9307:function(e){"use strict";e.exports=window.wp.element},2694:function(e){"use strict";e.exports=window.wp.hooks},5736:function(e){"use strict";e.exports=window.wp.i18n},3961:function(e){"use strict";e.exports=window.wp.notices},462:function(e){"use strict";e.exports=window.wp.nux},8817:function(e){"use strict";e.exports=window.wp.plugins},444:function(e){"use strict";e.exports=window.wp.primitives},6483:function(e){"use strict";e.exports=window.wp.url},6666:function(e,t,n){"use strict";function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,{Z:function(){return o}})},7896:function(e,t,n){"use strict";function o(){return o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},o.apply(this,arguments)}n.d(t,{Z:function(){return o}})}},t={};function n(o){var r=t[o];if(void 0!==r)return r.exports;var i=t[o]={exports:{}};return e[o](i,i.exports,n),i.exports}n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},function(){var e;n.g.importScripts&&(e=n.g.location+"");var t=n.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var o=t.getElementsByTagName("script");o.length&&(e=o[o.length-1].src)}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),n.p=e}();var o={};!function(){"use strict";n.r(o);var e=n(1970);n(1568),n(7869);(0,e.z2)()}(),window.EditingToolkit=o}();
|
15 |
//# sourceMappingURL=wpcom-block-editor-nux.min.js.map
|
1 |
+
!function(){var e={7566:function(e,t,n){"use strict";n.d(t,{kZ:function(){return f}});var o=n(2140),r=n(6249),i=n(1119),s=n(7936),a=n(421),c=n(4806),u=n(3352),l=n(8555),d={placement:"bottom",modifiers:[],strategy:"absolute"};function p(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some((function(e){return!(e&&"function"==typeof e.getBoundingClientRect)}))}function f(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,f=void 0===n?[]:n,m=t.defaultOptions,h=void 0===m?d:m;return function(e,t,n){void 0===n&&(n=h);var m={placement:"bottom",orderedModifiers:[],options:Object.assign({},d,h),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},g=[],v=!1,w={state:m,setOptions:function(n){var o="function"==typeof n?n(m.options):n;y(),m.options=Object.assign({},h,m.options,o),m.scrollParents={reference:(0,l.kK)(e)?(0,i.Z)(e):e.contextElement?(0,i.Z)(e.contextElement):[],popper:(0,i.Z)(t)};var r=(0,a.Z)((0,u.Z)([].concat(f,m.options.modifiers)));return m.orderedModifiers=r.filter((function(e){return e.enabled})),m.orderedModifiers.forEach((function(e){var t=e.name,n=e.options,o=void 0===n?{}:n,r=e.effect;if("function"==typeof r){var i=r({state:m,name:t,instance:w,options:o}),s=function(){};g.push(i||s)}})),w.update()},forceUpdate:function(){if(!v){var e=m.elements,t=e.reference,n=e.popper;if(p(t,n)){m.rects={reference:(0,o.Z)(t,(0,s.Z)(n),"fixed"===m.options.strategy),popper:(0,r.Z)(n)},m.reset=!1,m.placement=m.options.placement,m.orderedModifiers.forEach((function(e){return m.modifiersData[e.name]=Object.assign({},e.data)}));for(var i=0;i<m.orderedModifiers.length;i++)if(!0!==m.reset){var a=m.orderedModifiers[i],c=a.fn,u=a.options,l=void 0===u?{}:u,d=a.name;"function"==typeof c&&(m=c({state:m,options:l,name:d,instance:w})||m)}else m.reset=!1,i=-1}}},update:(0,c.Z)((function(){return new Promise((function(e){w.forceUpdate(),e(m)}))})),destroy:function(){y(),v=!0}};if(!p(e,t))return w;function y(){g.forEach((function(e){return e()})),g=[]}return w.setOptions(n).then((function(e){!v&&n.onFirstUpdate&&n.onFirstUpdate(e)})),w}}},5350:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});var o=n(8555);function r(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&(0,o.Zq)(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}},2881:function(e,t,n){"use strict";function o(e,t){void 0===t&&(t=!1);var n=e.getBoundingClientRect();return{width:n.width/1,height:n.height/1,top:n.top/1,right:n.right/1,bottom:n.bottom/1,left:n.left/1,x:n.left/1,y:n.top/1}}n.d(t,{Z:function(){return o}})},889:function(e,t,n){"use strict";n.d(t,{Z:function(){return w}});var o=n(6166),r=n(4691),i=n(6764),s=n(1119),a=n(7936),c=n(2021),u=n(9546),l=n(8555),d=n(2881),p=n(2882),f=n(5350),m=n(98),h=n(7365),g=n(8072);function v(e,t){return t===o.Pj?(0,h.Z)((0,r.Z)(e)):(0,l.Re)(t)?function(e){var t=(0,d.Z)(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}(t):(0,h.Z)((0,i.Z)((0,c.Z)(e)))}function w(e,t,n){var o="clippingParents"===t?function(e){var t=(0,s.Z)((0,p.Z)(e)),n=["absolute","fixed"].indexOf((0,u.Z)(e).position)>=0&&(0,l.Re)(e)?(0,a.Z)(e):e;return(0,l.kK)(n)?t.filter((function(e){return(0,l.kK)(e)&&(0,f.Z)(e,n)&&"body"!==(0,m.Z)(e)})):[]}(e):[].concat(t),r=[].concat(o,[n]),i=r[0],c=r.reduce((function(t,n){var o=v(e,n);return t.top=(0,g.Fp)(o.top,t.top),t.right=(0,g.VV)(o.right,t.right),t.bottom=(0,g.VV)(o.bottom,t.bottom),t.left=(0,g.Fp)(o.left,t.left),t}),v(e,i));return c.width=c.right-c.left,c.height=c.bottom-c.top,c.x=c.left,c.y=c.top,c}},2140:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var o=n(2881),r=n(6637),i=n(98),s=n(8555),a=n(1051),c=n(2021),u=n(8519);function l(e,t,n){void 0===n&&(n=!1);var l=(0,s.Re)(t),d=(0,s.Re)(t)&&function(e){var t=e.getBoundingClientRect(),n=t.width/e.offsetWidth||1,o=t.height/e.offsetHeight||1;return 1!==n||1!==o}(t),p=(0,c.Z)(t),f=(0,o.Z)(e,d),m={scrollLeft:0,scrollTop:0},h={x:0,y:0};return(l||!l&&!n)&&(("body"!==(0,i.Z)(t)||(0,u.Z)(p))&&(m=(0,r.Z)(t)),(0,s.Re)(t)?((h=(0,o.Z)(t,!0)).x+=t.clientLeft,h.y+=t.clientTop):p&&(h.x=(0,a.Z)(p))),{x:f.left+m.scrollLeft-h.x,y:f.top+m.scrollTop-h.y,width:f.width,height:f.height}}},9546:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});var o=n(3189);function r(e){return(0,o.Z)(e).getComputedStyle(e)}},2021:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});var o=n(8555);function r(e){return(((0,o.kK)(e)?e.ownerDocument:e.document)||window.document).documentElement}},6764:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var o=n(2021),r=n(9546),i=n(1051),s=n(5392),a=n(8072);function c(e){var t,n=(0,o.Z)(e),c=(0,s.Z)(e),u=null==(t=e.ownerDocument)?void 0:t.body,l=(0,a.Fp)(n.scrollWidth,n.clientWidth,u?u.scrollWidth:0,u?u.clientWidth:0),d=(0,a.Fp)(n.scrollHeight,n.clientHeight,u?u.scrollHeight:0,u?u.clientHeight:0),p=-c.scrollLeft+(0,i.Z)(e),f=-c.scrollTop;return"rtl"===(0,r.Z)(u||n).direction&&(p+=(0,a.Fp)(n.clientWidth,u?u.clientWidth:0)-l),{width:l,height:d,x:p,y:f}}},812:function(e,t,n){"use strict";function o(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}n.d(t,{Z:function(){return o}})},6249:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});var o=n(2881);function r(e){var t=(0,o.Z)(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}},98:function(e,t,n){"use strict";function o(e){return e?(e.nodeName||"").toLowerCase():null}n.d(t,{Z:function(){return o}})},6637:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var o=n(5392),r=n(3189),i=n(8555),s=n(812);function a(e){return e!==(0,r.Z)(e)&&(0,i.Re)(e)?(0,s.Z)(e):(0,o.Z)(e)}},7936:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var o=n(3189),r=n(98),i=n(9546),s=n(8555),a=n(1725),c=n(2882);function u(e){return(0,s.Re)(e)&&"fixed"!==(0,i.Z)(e).position?e.offsetParent:null}function l(e){for(var t=(0,o.Z)(e),n=u(e);n&&(0,a.Z)(n)&&"static"===(0,i.Z)(n).position;)n=u(n);return n&&("html"===(0,r.Z)(n)||"body"===(0,r.Z)(n)&&"static"===(0,i.Z)(n).position)?t:n||function(e){var t=-1!==navigator.userAgent.toLowerCase().indexOf("firefox");if(-1!==navigator.userAgent.indexOf("Trident")&&(0,s.Re)(e)&&"fixed"===(0,i.Z)(e).position)return null;for(var n=(0,c.Z)(e);(0,s.Re)(n)&&["html","body"].indexOf((0,r.Z)(n))<0;){var o=(0,i.Z)(n);if("none"!==o.transform||"none"!==o.perspective||"paint"===o.contain||-1!==["transform","perspective"].indexOf(o.willChange)||t&&"filter"===o.willChange||t&&o.filter&&"none"!==o.filter)return n;n=n.parentNode}return null}(e)||t}},2882:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var o=n(98),r=n(2021),i=n(8555);function s(e){return"html"===(0,o.Z)(e)?e:e.assignedSlot||e.parentNode||((0,i.Zq)(e)?e.host:null)||(0,r.Z)(e)}},7915:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var o=n(2882),r=n(8519),i=n(98),s=n(8555);function a(e){return["html","body","#document"].indexOf((0,i.Z)(e))>=0?e.ownerDocument.body:(0,s.Re)(e)&&(0,r.Z)(e)?e:a((0,o.Z)(e))}},4691:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var o=n(3189),r=n(2021),i=n(1051);function s(e){var t=(0,o.Z)(e),n=(0,r.Z)(e),s=t.visualViewport,a=n.clientWidth,c=n.clientHeight,u=0,l=0;return s&&(a=s.width,c=s.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(u=s.offsetLeft,l=s.offsetTop)),{width:a,height:c,x:u+(0,i.Z)(e),y:l}}},3189:function(e,t,n){"use strict";function o(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}n.d(t,{Z:function(){return o}})},5392:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});var o=n(3189);function r(e){var t=(0,o.Z)(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}},1051:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var o=n(2881),r=n(2021),i=n(5392);function s(e){return(0,o.Z)((0,r.Z)(e)).left+(0,i.Z)(e).scrollLeft}},8555:function(e,t,n){"use strict";n.d(t,{kK:function(){return r},Re:function(){return i},Zq:function(){return s}});var o=n(3189);function r(e){return e instanceof(0,o.Z)(e).Element||e instanceof Element}function i(e){return e instanceof(0,o.Z)(e).HTMLElement||e instanceof HTMLElement}function s(e){return"undefined"!=typeof ShadowRoot&&(e instanceof(0,o.Z)(e).ShadowRoot||e instanceof ShadowRoot)}},8519:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});var o=n(9546);function r(e){var t=(0,o.Z)(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}},1725:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});var o=n(98);function r(e){return["table","td","th"].indexOf((0,o.Z)(e))>=0}},1119:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var o=n(7915),r=n(2882),i=n(3189),s=n(8519);function a(e,t){var n;void 0===t&&(t=[]);var c=(0,o.Z)(e),u=c===(null==(n=e.ownerDocument)?void 0:n.body),l=(0,i.Z)(c),d=u?[l].concat(l.visualViewport||[],(0,s.Z)(c)?c:[]):c,p=t.concat(d);return u?p:p.concat(a((0,r.Z)(d)))}},6166:function(e,t,n){"use strict";n.d(t,{we:function(){return o},I:function(){return r},F2:function(){return i},t$:function(){return s},d7:function(){return a},mv:function(){return c},BL:function(){return u},ut:function(){return l},zV:function(){return d},Pj:function(){return p},k5:function(){return f},YP:function(){return m},bw:function(){return h},Ct:function(){return g},xs:function(){return v}});var o="top",r="bottom",i="right",s="left",a="auto",c=[o,r,i,s],u="start",l="end",d="clippingParents",p="viewport",f="popper",m="reference",h=c.reduce((function(e,t){return e.concat([t+"-"+u,t+"-"+l])}),[]),g=[].concat(c,[a]).reduce((function(e,t){return e.concat([t,t+"-"+u,t+"-"+l])}),[]),v=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"]},1414:function(e,t,n){"use strict";var o=n(98),r=n(8555);t.Z={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},i=t.attributes[e]||{},s=t.elements[e];(0,r.Re)(s)&&(0,o.Z)(s)&&(Object.assign(s.style,n),Object.keys(i).forEach((function(e){var t=i[e];!1===t?s.removeAttribute(e):s.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var i=t.elements[e],s=t.attributes[e]||{},a=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});(0,r.Re)(i)&&(0,o.Z)(i)&&(Object.assign(i.style,a),Object.keys(s).forEach((function(e){i.removeAttribute(e)})))}))}},requires:["computeStyles"]}},335:function(e,t,n){"use strict";var o=n(7677),r=n(6249),i=n(5350),s=n(7936),a=n(1505),c=n(964),u=n(6713),l=n(315),d=n(6166);t.Z={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,i=e.name,p=e.options,f=n.elements.arrow,m=n.modifiersData.popperOffsets,h=(0,o.Z)(n.placement),g=(0,a.Z)(h),v=[d.t$,d.F2].indexOf(h)>=0?"height":"width";if(f&&m){var w=function(e,t){return e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e,(0,u.Z)("number"!=typeof e?e:(0,l.Z)(e,d.mv))}(p.padding,n),y=(0,r.Z)(f),b="y"===g?d.we:d.t$,_="y"===g?d.I:d.F2,E=n.rects.reference[v]+n.rects.reference[g]-m[g]-n.rects.popper[v],k=m[g]-n.rects.reference[g],x=(0,s.Z)(f),S=x?"y"===g?x.clientHeight||0:x.clientWidth||0:0,Z=E/2-k/2,C=w[b],O=S-y[v]-w[_],P=S/2-y[v]/2+Z,M=(0,c.Z)(C,P,O),L=g;n.modifiersData[i]=((t={})[L]=M,t.centerOffset=M-P,t)}},effect:function(e){var t=e.state,n=e.options.element,o=void 0===n?"[data-popper-arrow]":n;null!=o&&("string"!=typeof o||(o=t.elements.popper.querySelector(o)))&&(0,i.Z)(t.elements.popper,o)&&(t.elements.arrow=o)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]}},917:function(e,t,n){"use strict";var o=n(6166),r=n(7936),i=n(3189),s=n(2021),a=n(9546),c=n(7677),u=n(4531),l=n(8072),d={top:"auto",right:"auto",bottom:"auto",left:"auto"};function p(e){var t,n=e.popper,c=e.popperRect,u=e.placement,p=e.variation,f=e.offsets,m=e.position,h=e.gpuAcceleration,g=e.adaptive,v=e.roundOffsets,w=!0===v?function(e){var t=e.x,n=e.y,o=window.devicePixelRatio||1;return{x:(0,l.NM)((0,l.NM)(t*o)/o)||0,y:(0,l.NM)((0,l.NM)(n*o)/o)||0}}(f):"function"==typeof v?v(f):f,y=w.x,b=void 0===y?0:y,_=w.y,E=void 0===_?0:_,k=f.hasOwnProperty("x"),x=f.hasOwnProperty("y"),S=o.t$,Z=o.we,C=window;if(g){var O=(0,r.Z)(n),P="clientHeight",M="clientWidth";O===(0,i.Z)(n)&&(O=(0,s.Z)(n),"static"!==(0,a.Z)(O).position&&"absolute"===m&&(P="scrollHeight",M="scrollWidth")),O=O,u!==o.we&&(u!==o.t$&&u!==o.F2||p!==o.ut)||(Z=o.I,E-=O[P]-c.height,E*=h?1:-1),u!==o.t$&&(u!==o.we&&u!==o.I||p!==o.ut)||(S=o.F2,b-=O[M]-c.width,b*=h?1:-1)}var L,F=Object.assign({position:m},g&&d);return h?Object.assign({},F,((L={})[Z]=x?"0":"",L[S]=k?"0":"",L.transform=(C.devicePixelRatio||1)<=1?"translate("+b+"px, "+E+"px)":"translate3d("+b+"px, "+E+"px, 0)",L)):Object.assign({},F,((t={})[Z]=x?E+"px":"",t[S]=k?b+"px":"",t.transform="",t))}t.Z={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,o=n.gpuAcceleration,r=void 0===o||o,i=n.adaptive,s=void 0===i||i,a=n.roundOffsets,l=void 0===a||a,d={placement:(0,c.Z)(t.placement),variation:(0,u.Z)(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:r};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,p(Object.assign({},d,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,p(Object.assign({},d,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}}},3191:function(e,t,n){"use strict";var o=n(3189),r={passive:!0};t.Z={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,i=e.options,s=i.scroll,a=void 0===s||s,c=i.resize,u=void 0===c||c,l=(0,o.Z)(t.elements.popper),d=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&d.forEach((function(e){e.addEventListener("scroll",n.update,r)})),u&&l.addEventListener("resize",n.update,r),function(){a&&d.forEach((function(e){e.removeEventListener("scroll",n.update,r)})),u&&l.removeEventListener("resize",n.update,r)}},data:{}}},5207:function(e,t,n){"use strict";var o=n(942),r=n(7677),i=n(12),s=n(9356),a=n(7826),c=n(6166),u=n(4531);t.Z={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,l=e.name;if(!t.modifiersData[l]._skip){for(var d=n.mainAxis,p=void 0===d||d,f=n.altAxis,m=void 0===f||f,h=n.fallbackPlacements,g=n.padding,v=n.boundary,w=n.rootBoundary,y=n.altBoundary,b=n.flipVariations,_=void 0===b||b,E=n.allowedAutoPlacements,k=t.options.placement,x=(0,r.Z)(k),S=h||(x===k||!_?[(0,o.Z)(k)]:function(e){if((0,r.Z)(e)===c.d7)return[];var t=(0,o.Z)(e);return[(0,i.Z)(e),t,(0,i.Z)(t)]}(k)),Z=[k].concat(S).reduce((function(e,n){return e.concat((0,r.Z)(n)===c.d7?(0,a.Z)(t,{placement:n,boundary:v,rootBoundary:w,padding:g,flipVariations:_,allowedAutoPlacements:E}):n)}),[]),C=t.rects.reference,O=t.rects.popper,P=new Map,M=!0,L=Z[0],F=0;F<Z.length;F++){var R=Z[F],T=(0,r.Z)(R),j=(0,u.Z)(R)===c.BL,N=[c.we,c.I].indexOf(T)>=0,A=N?"width":"height",z=(0,s.Z)(t,{placement:R,boundary:v,rootBoundary:w,altBoundary:y,padding:g}),I=N?j?c.F2:c.t$:j?c.I:c.we;C[A]>O[A]&&(I=(0,o.Z)(I));var D=(0,o.Z)(I),W=[];if(p&&W.push(z[T]<=0),m&&W.push(z[I]<=0,z[D]<=0),W.every((function(e){return e}))){L=R,M=!1;break}P.set(R,W)}if(M)for(var G=function(e){var t=Z.find((function(t){var n=P.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return L=t,"break"},B=_?3:1;B>0;B--){if("break"===G(B))break}t.placement!==L&&(t.modifiersData[l]._skip=!0,t.placement=L,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}}},2883:function(e,t,n){"use strict";var o=n(6166),r=n(9356);function i(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function s(e){return[o.we,o.F2,o.I,o.t$].some((function(t){return e[t]>=0}))}t.Z={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,o=t.rects.reference,a=t.rects.popper,c=t.modifiersData.preventOverflow,u=(0,r.Z)(t,{elementContext:"reference"}),l=(0,r.Z)(t,{altBoundary:!0}),d=i(u,o),p=i(l,a,c),f=s(d),m=s(p);t.modifiersData[n]={referenceClippingOffsets:d,popperEscapeOffsets:p,isReferenceHidden:f,hasPopperEscaped:m},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":f,"data-popper-escaped":m})}}},3108:function(e,t,n){"use strict";var o=n(7677),r=n(6166);t.Z={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,i=e.name,s=n.offset,a=void 0===s?[0,0]:s,c=r.Ct.reduce((function(e,n){return e[n]=function(e,t,n){var i=(0,o.Z)(e),s=[r.t$,r.we].indexOf(i)>=0?-1:1,a="function"==typeof n?n(Object.assign({},t,{placement:e})):n,c=a[0],u=a[1];return c=c||0,u=(u||0)*s,[r.t$,r.F2].indexOf(i)>=0?{x:u,y:c}:{x:c,y:u}}(n,t.rects,a),e}),{}),u=c[t.placement],l=u.x,d=u.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=d),t.modifiersData[i]=c}}},5435:function(e,t,n){"use strict";var o=n(6919);t.Z={name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=(0,o.Z)({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}}},6998:function(e,t,n){"use strict";var o=n(6166),r=n(7677),i=n(1505),s=n(5754),a=n(964),c=n(6249),u=n(7936),l=n(9356),d=n(4531),p=n(3046),f=n(8072);t.Z={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,m=e.name,h=n.mainAxis,g=void 0===h||h,v=n.altAxis,w=void 0!==v&&v,y=n.boundary,b=n.rootBoundary,_=n.altBoundary,E=n.padding,k=n.tether,x=void 0===k||k,S=n.tetherOffset,Z=void 0===S?0:S,C=(0,l.Z)(t,{boundary:y,rootBoundary:b,padding:E,altBoundary:_}),O=(0,r.Z)(t.placement),P=(0,d.Z)(t.placement),M=!P,L=(0,i.Z)(O),F=(0,s.Z)(L),R=t.modifiersData.popperOffsets,T=t.rects.reference,j=t.rects.popper,N="function"==typeof Z?Z(Object.assign({},t.rects,{placement:t.placement})):Z,A={x:0,y:0};if(R){if(g||w){var z="y"===L?o.we:o.t$,I="y"===L?o.I:o.F2,D="y"===L?"height":"width",W=R[L],G=R[L]+C[z],B=R[L]-C[I],U=x?-j[D]/2:0,$=P===o.BL?T[D]:j[D],H=P===o.BL?-j[D]:-T[D],V=t.elements.arrow,q=x&&V?(0,c.Z)(V):{width:0,height:0},Y=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:(0,p.Z)(),K=Y[z],Q=Y[I],X=(0,a.Z)(0,T[D],q[D]),J=M?T[D]/2-U-X-K-N:$-X-K-N,ee=M?-T[D]/2+U+X+Q+N:H+X+Q+N,te=t.elements.arrow&&(0,u.Z)(t.elements.arrow),ne=te?"y"===L?te.clientTop||0:te.clientLeft||0:0,oe=t.modifiersData.offset?t.modifiersData.offset[t.placement][L]:0,re=R[L]+J-oe-ne,ie=R[L]+ee-oe;if(g){var se=(0,a.Z)(x?(0,f.VV)(G,re):G,W,x?(0,f.Fp)(B,ie):B);R[L]=se,A[L]=se-W}if(w){var ae="x"===L?o.we:o.t$,ce="x"===L?o.I:o.F2,ue=R[F],le=ue+C[ae],de=ue-C[ce],pe=(0,a.Z)(x?(0,f.VV)(le,re):le,ue,x?(0,f.Fp)(de,ie):de);R[F]=pe,A[F]=pe-ue}}t.modifiersData[m]=A}},requiresIfExists:["offset"]}},7295:function(e,t,n){"use strict";n.d(t,{fi:function(){return m}});var o=n(7566),r=n(3191),i=n(5435),s=n(917),a=n(1414),c=n(3108),u=n(5207),l=n(6998),d=n(335),p=n(2883),f=[r.Z,i.Z,s.Z,a.Z,c.Z,u.Z,l.Z,d.Z,p.Z],m=(0,o.kZ)({defaultModifiers:f})},7826:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var o=n(4531),r=n(6166),i=n(9356),s=n(7677);function a(e,t){void 0===t&&(t={});var n=t,a=n.placement,c=n.boundary,u=n.rootBoundary,l=n.padding,d=n.flipVariations,p=n.allowedAutoPlacements,f=void 0===p?r.Ct:p,m=(0,o.Z)(a),h=m?d?r.bw:r.bw.filter((function(e){return(0,o.Z)(e)===m})):r.mv,g=h.filter((function(e){return f.indexOf(e)>=0}));0===g.length&&(g=h);var v=g.reduce((function(t,n){return t[n]=(0,i.Z)(e,{placement:n,boundary:c,rootBoundary:u,padding:l})[(0,s.Z)(n)],t}),{});return Object.keys(v).sort((function(e,t){return v[e]-v[t]}))}},6919:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var o=n(7677),r=n(4531),i=n(1505),s=n(6166);function a(e){var t,n=e.reference,a=e.element,c=e.placement,u=c?(0,o.Z)(c):null,l=c?(0,r.Z)(c):null,d=n.x+n.width/2-a.width/2,p=n.y+n.height/2-a.height/2;switch(u){case s.we:t={x:d,y:n.y-a.height};break;case s.I:t={x:d,y:n.y+n.height};break;case s.F2:t={x:n.x+n.width,y:p};break;case s.t$:t={x:n.x-a.width,y:p};break;default:t={x:n.x,y:n.y}}var f=u?(0,i.Z)(u):null;if(null!=f){var m="y"===f?"height":"width";switch(l){case s.BL:t[f]=t[f]-(n[m]/2-a[m]/2);break;case s.ut:t[f]=t[f]+(n[m]/2-a[m]/2)}}return t}},4806:function(e,t,n){"use strict";function o(e){var t;return function(){return t||(t=new Promise((function(n){Promise.resolve().then((function(){t=void 0,n(e())}))}))),t}}n.d(t,{Z:function(){return o}})},9356:function(e,t,n){"use strict";n.d(t,{Z:function(){return p}});var o=n(889),r=n(2021),i=n(2881),s=n(6919),a=n(7365),c=n(6166),u=n(8555),l=n(6713),d=n(315);function p(e,t){void 0===t&&(t={});var n=t,p=n.placement,f=void 0===p?e.placement:p,m=n.boundary,h=void 0===m?c.zV:m,g=n.rootBoundary,v=void 0===g?c.Pj:g,w=n.elementContext,y=void 0===w?c.k5:w,b=n.altBoundary,_=void 0!==b&&b,E=n.padding,k=void 0===E?0:E,x=(0,l.Z)("number"!=typeof k?k:(0,d.Z)(k,c.mv)),S=y===c.k5?c.YP:c.k5,Z=e.rects.popper,C=e.elements[_?S:y],O=(0,o.Z)((0,u.kK)(C)?C:C.contextElement||(0,r.Z)(e.elements.popper),h,v),P=(0,i.Z)(e.elements.reference),M=(0,s.Z)({reference:P,element:Z,strategy:"absolute",placement:f}),L=(0,a.Z)(Object.assign({},Z,M)),F=y===c.k5?L:P,R={top:O.top-F.top+x.top,bottom:F.bottom-O.bottom+x.bottom,left:O.left-F.left+x.left,right:F.right-O.right+x.right},T=e.modifiersData.offset;if(y===c.k5&&T){var j=T[f];Object.keys(R).forEach((function(e){var t=[c.F2,c.I].indexOf(e)>=0?1:-1,n=[c.we,c.I].indexOf(e)>=0?"y":"x";R[e]+=j[n]*t}))}return R}},315:function(e,t,n){"use strict";function o(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}n.d(t,{Z:function(){return o}})},5754:function(e,t,n){"use strict";function o(e){return"x"===e?"y":"x"}n.d(t,{Z:function(){return o}})},7677:function(e,t,n){"use strict";function o(e){return e.split("-")[0]}n.d(t,{Z:function(){return o}})},3046:function(e,t,n){"use strict";function o(){return{top:0,right:0,bottom:0,left:0}}n.d(t,{Z:function(){return o}})},1505:function(e,t,n){"use strict";function o(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}n.d(t,{Z:function(){return o}})},942:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});var o={left:"right",right:"left",bottom:"top",top:"bottom"};function r(e){return e.replace(/left|right|bottom|top/g,(function(e){return o[e]}))}},12:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});var o={start:"end",end:"start"};function r(e){return e.replace(/start|end/g,(function(e){return o[e]}))}},4531:function(e,t,n){"use strict";function o(e){return e.split("-")[1]}n.d(t,{Z:function(){return o}})},8072:function(e,t,n){"use strict";n.d(t,{Fp:function(){return o},VV:function(){return r},NM:function(){return i}});var o=Math.max,r=Math.min,i=Math.round},3352:function(e,t,n){"use strict";function o(e){var t=e.reduce((function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e}),{});return Object.keys(t).map((function(e){return t[e]}))}n.d(t,{Z:function(){return o}})},6713:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});var o=n(3046);function r(e){return Object.assign({},(0,o.Z)(),e)}},421:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var o=n(6166);function r(e){var t=new Map,n=new Set,o=[];function r(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var o=t.get(e);o&&r(o)}})),o.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||r(e)})),o}function i(e){var t=r(e);return o.xs.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}},7365:function(e,t,n){"use strict";function o(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}n.d(t,{Z:function(){return o}})},964:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});var o=n(8072);function r(e,t,n){return(0,o.Fp)(e,(0,o.VV)(t,n))}},7266:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var o=n(5854),r=n(730);function i(e){var t=(0,o.Z)(e);return function(e){return(0,r.Z)(t,e)}}},730:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});var o={"!":function(e){return!e},"*":function(e,t){return e*t},"/":function(e,t){return e/t},"%":function(e,t){return e%t},"+":function(e,t){return e+t},"-":function(e,t){return e-t},"<":function(e,t){return e<t},"<=":function(e,t){return e<=t},">":function(e,t){return e>t},">=":function(e,t){return e>=t},"==":function(e,t){return e===t},"!=":function(e,t){return e!==t},"&&":function(e,t){return e&&t},"||":function(e,t){return e||t},"?:":function(e,t,n){if(e)throw t;return n}};function r(e,t){var n,r,i,s,a,c,u=[];for(n=0;n<e.length;n++){if(a=e[n],s=o[a]){for(r=s.length,i=Array(r);r--;)i[r]=u.pop();try{c=s.apply(null,i)}catch(l){return l}}else c=t.hasOwnProperty(a)?t[a]:+a;u.push(c)}return u[0]}},1184:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});var o=n(7266);function r(e){var t=(0,o.Z)(e);return function(e){return+t({n:e})}}},5854:function(e,t,n){"use strict";var o,r,i,s;function a(e){for(var t,n,a,c,u=[],l=[];t=e.match(s);){for(n=t[0],(a=e.substr(0,t.index).trim())&&u.push(a);c=l.pop();){if(i[n]){if(i[n][0]===c){n=i[n][1]||n;break}}else if(r.indexOf(c)>=0||o[c]<o[n]){l.push(c);break}u.push(c)}i[n]||l.push(n),e=e.substr(t.index+n.length)}return(e=e.trim())&&u.push(e),u.concat(l.reverse())}n.d(t,{Z:function(){return a}}),o={"(":9,"!":8,"*":7,"/":7,"%":7,"+":6,"-":6,"<":5,"<=":5,">":5,">=":5,"==":4,"!=":4,"&&":3,"||":2,"?":1,"?:":1},r=["(","?"],i={")":["("],":":["?","?:"]},s=/<=|>=|==|!=|&&|\|\||\?:|\(|!|\*|\/|%|\+|-|<|>|\?|\)|:/},6668:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});var o=/%(((\d+)\$)|(\(([$_a-zA-Z][$_a-zA-Z0-9]*)\)))?[ +0#-]*\d*(\.(\d+|\*))?(ll|[lhqL])?([cduxXefgsp%])/g;function r(e,t){var n;if(!Array.isArray(t))for(t=new Array(arguments.length-1),n=1;n<arguments.length;n++)t[n-1]=arguments[n];return n=1,e.replace(o,(function(){var e,o,r,i,s;return e=arguments[3],o=arguments[5],"%"===(i=arguments[9])?"%":("*"===(r=arguments[7])&&(r=t[n-1],n++),void 0!==o?t[0]&&"object"==typeof t[0]&&t[0].hasOwnProperty(o)&&(s=t[0][o]):(void 0===e&&(e=n),n++,s=t[e-1]),"f"===i?s=parseFloat(s)||0:"d"===i&&(s=parseInt(s)||0),void 0!==r&&("f"===i?s=s.toFixed(r):"s"===i&&(s=s.substr(0,r))),null!=s?s:"")}))}},5869:function(e,t,n){"use strict";var o=n(9307);t.Z=function(e){let{icon:t,size:n=24,...r}=e;return(0,o.cloneElement)(t,{width:n,height:n,...r})}},8565:function(e,t,n){"use strict";var o=n(9307),r=n(444);const i=(0,o.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,o.createElement)(r.Path,{d:"M13 11.8l6.1-6.3-1-1-6.1 6.2-6.1-6.2-1 1 6.1 6.3-6.5 6.7 1 1 6.5-6.6 6.5 6.6 1-1z"}));t.Z=i},5885:function(e,t,n){"use strict";n.d(t,{QT:function(){return a}});var o=n(9307),r=n(5736);function i(e){return{__:e.__.bind(e),_x:e._x.bind(e),_n:e._n.bind(e),_nx:e._nx.bind(e),isRTL:e.isRTL.bind(e),hasTranslation:e.hasTranslation.bind(e)}}const s=(0,o.createContext)(i(r.defaultI18n));const a=()=>(0,o.useContext)(s)},6744:function(e){e.exports={100:"Continue",101:"Switching Protocols",102:"Processing",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",207:"Multi-Status",208:"Already Reported",226:"IM Used",300:"Multiple Choices",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",308:"Permanent Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Range Not Satisfiable",417:"Expectation Failed",418:"I'm a teapot",421:"Misdirected Request",422:"Unprocessable Entity",423:"Locked",424:"Failed Dependency",425:"Unordered Collection",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",508:"Loop Detected",509:"Bandwidth Limit Exceeded",510:"Not Extended",511:"Network Authentication Required"}},2779:function(e,t){var n;
|
2 |
/*!
|
3 |
Copyright (c) 2018 Jed Watson.
|
4 |
Licensed under the MIT License (MIT), see
|
5 |
http://jedwatson.github.io/classnames
|
6 |
+
*/!function(){"use strict";var o={}.hasOwnProperty;function r(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var i=typeof n;if("string"===i||"number"===i)e.push(n);else if(Array.isArray(n)){if(n.length){var s=r.apply(null,n);s&&e.push(s)}}else if("object"===i)if(n.toString===Object.prototype.toString)for(var a in n)o.call(n,a)&&n[a]&&e.push(a);else e.push(n.toString())}}return e.join(" ")}e.exports?(r.default=r,e.exports=r):void 0===(n=function(){return r}.apply(t,[]))||(e.exports=n)}()},3421:function(e,t){"use strict";var n=decodeURIComponent,o=encodeURIComponent,r=/; */,i=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;function s(e,t){try{return t(e)}catch(n){return e}}},5881:function(e){var t=1e3,n=60*t,o=60*n,r=24*o,i=7*r,s=365.25*r;function a(e,t,n,o){var r=t>=1.5*n;return Math.round(e/n)+" "+o+(r?"s":"")}e.exports=function(e,c){c=c||{};var u=typeof e;if("string"===u&&e.length>0)return function(e){if((e=String(e)).length>100)return;var a=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(!a)return;var c=parseFloat(a[1]);switch((a[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return c*s;case"weeks":case"week":case"w":return c*i;case"days":case"day":case"d":return c*r;case"hours":case"hour":case"hrs":case"hr":case"h":return c*o;case"minutes":case"minute":case"mins":case"min":case"m":return c*n;case"seconds":case"second":case"secs":case"sec":case"s":return c*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return c;default:return}}(e);if("number"===u&&isFinite(e))return c.long?function(e){var i=Math.abs(e);if(i>=r)return a(e,i,r,"day");if(i>=o)return a(e,i,o,"hour");if(i>=n)return a(e,i,n,"minute");if(i>=t)return a(e,i,t,"second");return e+" ms"}(e):function(e){var i=Math.abs(e);if(i>=r)return Math.round(e/r)+"d";if(i>=o)return Math.round(e/o)+"h";if(i>=n)return Math.round(e/n)+"m";if(i>=t)return Math.round(e/t)+"s";return e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},2699:function(e){"use strict";var t,n="object"==typeof Reflect?Reflect:null,o=n&&"function"==typeof n.apply?n.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};t=n&&"function"==typeof n.ownKeys?n.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var r=Number.isNaN||function(e){return e!=e};function i(){i.init.call(this)}e.exports=i,e.exports.once=function(e,t){return new Promise((function(n,o){function r(n){e.removeListener(t,i),o(n)}function i(){"function"==typeof e.removeListener&&e.removeListener("error",r),n([].slice.call(arguments))}h(e,t,i,{once:!0}),"error"!==t&&function(e,t,n){"function"==typeof e.on&&h(e,"error",t,n)}(e,r,{once:!0})}))},i.EventEmitter=i,i.prototype._events=void 0,i.prototype._eventsCount=0,i.prototype._maxListeners=void 0;var s=10;function a(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function c(e){return void 0===e._maxListeners?i.defaultMaxListeners:e._maxListeners}function u(e,t,n,o){var r,i,s,u;if(a(n),void 0===(i=e._events)?(i=e._events=Object.create(null),e._eventsCount=0):(void 0!==i.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),i=e._events),s=i[t]),void 0===s)s=i[t]=n,++e._eventsCount;else if("function"==typeof s?s=i[t]=o?[n,s]:[s,n]:o?s.unshift(n):s.push(n),(r=c(e))>0&&s.length>r&&!s.warned){s.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=e,l.type=t,l.count=s.length,u=l,console&&console.warn&&console.warn(u)}return e}function l(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function d(e,t,n){var o={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},r=l.bind(o);return r.listener=n,o.wrapFn=r,r}function p(e,t,n){var o=e._events;if(void 0===o)return[];var r=o[t];return void 0===r?[]:"function"==typeof r?n?[r.listener||r]:[r]:n?function(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}(r):m(r,r.length)}function f(e){var t=this._events;if(void 0!==t){var n=t[e];if("function"==typeof n)return 1;if(void 0!==n)return n.length}return 0}function m(e,t){for(var n=new Array(t),o=0;o<t;++o)n[o]=e[o];return n}function h(e,t,n,o){if("function"==typeof e.on)o.once?e.once(t,n):e.on(t,n);else{if("function"!=typeof e.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e);e.addEventListener(t,(function r(i){o.once&&e.removeEventListener(t,r),n(i)}))}}Object.defineProperty(i,"defaultMaxListeners",{enumerable:!0,get:function(){return s},set:function(e){if("number"!=typeof e||e<0||r(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");s=e}}),i.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},i.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||r(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},i.prototype.getMaxListeners=function(){return c(this)},i.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var r="error"===e,i=this._events;if(void 0!==i)r=r&&void 0===i.error;else if(!r)return!1;if(r){var s;if(t.length>0&&(s=t[0]),s instanceof Error)throw s;var a=new Error("Unhandled error."+(s?" ("+s.message+")":""));throw a.context=s,a}var c=i[e];if(void 0===c)return!1;if("function"==typeof c)o(c,this,t);else{var u=c.length,l=m(c,u);for(n=0;n<u;++n)o(l[n],this,t)}return!0},i.prototype.addListener=function(e,t){return u(this,e,t,!1)},i.prototype.on=i.prototype.addListener,i.prototype.prependListener=function(e,t){return u(this,e,t,!0)},i.prototype.once=function(e,t){return a(t),this.on(e,d(this,e,t)),this},i.prototype.prependOnceListener=function(e,t){return a(t),this.prependListener(e,d(this,e,t)),this},i.prototype.removeListener=function(e,t){var n,o,r,i,s;if(a(t),void 0===(o=this._events))return this;if(void 0===(n=o[e]))return this;if(n===t||n.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete o[e],o.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!=typeof n){for(r=-1,i=n.length-1;i>=0;i--)if(n[i]===t||n[i].listener===t){s=n[i].listener,r=i;break}if(r<0)return this;0===r?n.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(n,r),1===n.length&&(o[e]=n[0]),void 0!==o.removeListener&&this.emit("removeListener",e,s||t)}return this},i.prototype.off=i.prototype.removeListener,i.prototype.removeAllListeners=function(e){var t,n,o;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete n[e]),this;if(0===arguments.length){var r,i=Object.keys(n);for(o=0;o<i.length;++o)"removeListener"!==(r=i[o])&&this.removeAllListeners(r);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=n[e]))this.removeListener(e,t);else if(void 0!==t)for(o=t.length-1;o>=0;o--)this.removeListener(e,t[o]);return this},i.prototype.listeners=function(e){return p(this,e,!0)},i.prototype.rawListeners=function(e){return p(this,e,!1)},i.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):f.call(e,t)},i.prototype.listenerCount=f,i.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},4495:function(e,t,n){"use strict";var o=n(212),r=n(9561);function i(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}t.BlockHash=i,i.prototype.update=function(e,t){if(e=o.toArray(e,t),this.pending?this.pending=this.pending.concat(e):this.pending=e,this.pendingTotal+=e.length,this.pending.length>=this._delta8){var n=(e=this.pending).length%this._delta8;this.pending=e.slice(e.length-n,e.length),0===this.pending.length&&(this.pending=null),e=o.join32(e,0,e.length-n,this.endian);for(var r=0;r<e.length;r+=this._delta32)this._update(e,r,r+this._delta32)}return this},i.prototype.digest=function(e){return this.update(this._pad()),r(null===this.pending),this._digest(e)},i.prototype._pad=function(){var e=this.pendingTotal,t=this._delta8,n=t-(e+this.padLength)%t,o=new Array(n+this.padLength);o[0]=128;for(var r=1;r<n;r++)o[r]=0;if(e<<=3,"big"===this.endian){for(var i=8;i<this.padLength;i++)o[r++]=0;o[r++]=0,o[r++]=0,o[r++]=0,o[r++]=0,o[r++]=e>>>24&255,o[r++]=e>>>16&255,o[r++]=e>>>8&255,o[r++]=255&e}else for(o[r++]=255&e,o[r++]=e>>>8&255,o[r++]=e>>>16&255,o[r++]=e>>>24&255,o[r++]=0,o[r++]=0,o[r++]=0,o[r++]=0,i=8;i<this.padLength;i++)o[r++]=0;return o}},5079:function(e,t,n){"use strict";var o=n(212),r=n(4495),i=n(713),s=o.rotl32,a=o.sum32,c=o.sum32_5,u=i.ft_1,l=r.BlockHash,d=[1518500249,1859775393,2400959708,3395469782];function p(){if(!(this instanceof p))return new p;l.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}o.inherits(p,l),e.exports=p,p.blockSize=512,p.outSize=160,p.hmacStrength=80,p.padLength=64,p.prototype._update=function(e,t){for(var n=this.W,o=0;o<16;o++)n[o]=e[t+o];for(;o<n.length;o++)n[o]=s(n[o-3]^n[o-8]^n[o-14]^n[o-16],1);var r=this.h[0],i=this.h[1],l=this.h[2],p=this.h[3],f=this.h[4];for(o=0;o<n.length;o++){var m=~~(o/20),h=c(s(r,5),u(m,i,l,p),f,n[o],d[m]);f=p,p=l,l=s(i,30),i=r,r=h}this.h[0]=a(this.h[0],r),this.h[1]=a(this.h[1],i),this.h[2]=a(this.h[2],l),this.h[3]=a(this.h[3],p),this.h[4]=a(this.h[4],f)},p.prototype._digest=function(e){return"hex"===e?o.toHex32(this.h,"big"):o.split32(this.h,"big")}},8032:function(e,t,n){"use strict";var o=n(212),r=n(4495),i=n(713),s=n(9561),a=o.sum32,c=o.sum32_4,u=o.sum32_5,l=i.ch32,d=i.maj32,p=i.s0_256,f=i.s1_256,m=i.g0_256,h=i.g1_256,g=r.BlockHash,v=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function w(){if(!(this instanceof w))return new w;g.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=v,this.W=new Array(64)}o.inherits(w,g),e.exports=w,w.blockSize=512,w.outSize=256,w.hmacStrength=192,w.padLength=64,w.prototype._update=function(e,t){for(var n=this.W,o=0;o<16;o++)n[o]=e[t+o];for(;o<n.length;o++)n[o]=c(h(n[o-2]),n[o-7],m(n[o-15]),n[o-16]);var r=this.h[0],i=this.h[1],g=this.h[2],v=this.h[3],w=this.h[4],y=this.h[5],b=this.h[6],_=this.h[7];for(s(this.k.length===n.length),o=0;o<n.length;o++){var E=u(_,f(w),l(w,y,b),this.k[o],n[o]),k=a(p(r),d(r,i,g));_=b,b=y,y=w,w=a(v,E),v=g,g=i,i=r,r=a(E,k)}this.h[0]=a(this.h[0],r),this.h[1]=a(this.h[1],i),this.h[2]=a(this.h[2],g),this.h[3]=a(this.h[3],v),this.h[4]=a(this.h[4],w),this.h[5]=a(this.h[5],y),this.h[6]=a(this.h[6],b),this.h[7]=a(this.h[7],_)},w.prototype._digest=function(e){return"hex"===e?o.toHex32(this.h,"big"):o.split32(this.h,"big")}},713:function(e,t,n){"use strict";var o=n(212).rotr32;function r(e,t,n){return e&t^~e&n}function i(e,t,n){return e&t^e&n^t&n}function s(e,t,n){return e^t^n}t.ft_1=function(e,t,n,o){return 0===e?r(t,n,o):1===e||3===e?s(t,n,o):2===e?i(t,n,o):void 0},t.ch32=r,t.maj32=i,t.p32=s,t.s0_256=function(e){return o(e,2)^o(e,13)^o(e,22)},t.s1_256=function(e){return o(e,6)^o(e,11)^o(e,25)},t.g0_256=function(e){return o(e,7)^o(e,18)^e>>>3},t.g1_256=function(e){return o(e,17)^o(e,19)^e>>>10}},212:function(e,t,n){"use strict";var o=n(9561),r=n(1285);function i(e,t){return 55296==(64512&e.charCodeAt(t))&&(!(t<0||t+1>=e.length)&&56320==(64512&e.charCodeAt(t+1)))}function s(e){return(e>>>24|e>>>8&65280|e<<8&16711680|(255&e)<<24)>>>0}function a(e){return 1===e.length?"0"+e:e}function c(e){return 7===e.length?"0"+e:6===e.length?"00"+e:5===e.length?"000"+e:4===e.length?"0000"+e:3===e.length?"00000"+e:2===e.length?"000000"+e:1===e.length?"0000000"+e:e}t.inherits=r,t.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var n=[];if("string"==typeof e)if(t){if("hex"===t)for((e=e.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(e="0"+e),r=0;r<e.length;r+=2)n.push(parseInt(e[r]+e[r+1],16))}else for(var o=0,r=0;r<e.length;r++){var s=e.charCodeAt(r);s<128?n[o++]=s:s<2048?(n[o++]=s>>6|192,n[o++]=63&s|128):i(e,r)?(s=65536+((1023&s)<<10)+(1023&e.charCodeAt(++r)),n[o++]=s>>18|240,n[o++]=s>>12&63|128,n[o++]=s>>6&63|128,n[o++]=63&s|128):(n[o++]=s>>12|224,n[o++]=s>>6&63|128,n[o++]=63&s|128)}else for(r=0;r<e.length;r++)n[r]=0|e[r];return n},t.toHex=function(e){for(var t="",n=0;n<e.length;n++)t+=a(e[n].toString(16));return t},t.htonl=s,t.toHex32=function(e,t){for(var n="",o=0;o<e.length;o++){var r=e[o];"little"===t&&(r=s(r)),n+=c(r.toString(16))}return n},t.zero2=a,t.zero8=c,t.join32=function(e,t,n,r){var i=n-t;o(i%4==0);for(var s=new Array(i/4),a=0,c=t;a<s.length;a++,c+=4){var u;u="big"===r?e[c]<<24|e[c+1]<<16|e[c+2]<<8|e[c+3]:e[c+3]<<24|e[c+2]<<16|e[c+1]<<8|e[c],s[a]=u>>>0}return s},t.split32=function(e,t){for(var n=new Array(4*e.length),o=0,r=0;o<e.length;o++,r+=4){var i=e[o];"big"===t?(n[r]=i>>>24,n[r+1]=i>>>16&255,n[r+2]=i>>>8&255,n[r+3]=255&i):(n[r+3]=i>>>24,n[r+2]=i>>>16&255,n[r+1]=i>>>8&255,n[r]=255&i)}return n},t.rotr32=function(e,t){return e>>>t|e<<32-t},t.rotl32=function(e,t){return e<<t|e>>>32-t},t.sum32=function(e,t){return e+t>>>0},t.sum32_3=function(e,t,n){return e+t+n>>>0},t.sum32_4=function(e,t,n,o){return e+t+n+o>>>0},t.sum32_5=function(e,t,n,o,r){return e+t+n+o+r>>>0},t.sum64=function(e,t,n,o){var r=e[t],i=o+e[t+1]>>>0,s=(i<o?1:0)+n+r;e[t]=s>>>0,e[t+1]=i},t.sum64_hi=function(e,t,n,o){return(t+o>>>0<t?1:0)+e+n>>>0},t.sum64_lo=function(e,t,n,o){return t+o>>>0},t.sum64_4_hi=function(e,t,n,o,r,i,s,a){var c=0,u=t;return c+=(u=u+o>>>0)<t?1:0,c+=(u=u+i>>>0)<i?1:0,e+n+r+s+(c+=(u=u+a>>>0)<a?1:0)>>>0},t.sum64_4_lo=function(e,t,n,o,r,i,s,a){return t+o+i+a>>>0},t.sum64_5_hi=function(e,t,n,o,r,i,s,a,c,u){var l=0,d=t;return l+=(d=d+o>>>0)<t?1:0,l+=(d=d+i>>>0)<i?1:0,l+=(d=d+a>>>0)<a?1:0,e+n+r+s+c+(l+=(d=d+u>>>0)<u?1:0)>>>0},t.sum64_5_lo=function(e,t,n,o,r,i,s,a,c,u){return t+o+i+a+u>>>0},t.rotr64_hi=function(e,t,n){return(t<<32-n|e>>>n)>>>0},t.rotr64_lo=function(e,t,n){return(e<<32-n|t>>>n)>>>0},t.shr64_hi=function(e,t,n){return e>>>n},t.shr64_lo=function(e,t,n){return(e<<32-n|t>>>n)>>>0}},1285:function(e){"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}},7839:function(e,t,n){var o=n(2699),r=n(1285);function i(e){if(!(this instanceof i))return new i(e);"number"==typeof e&&(e={max:e}),e||(e={}),o.EventEmitter.call(this),this.cache={},this.head=this.tail=null,this.length=0,this.max=e.max||1e3,this.maxAge=e.maxAge||0}e.exports=i,r(i,o.EventEmitter),Object.defineProperty(i.prototype,"keys",{get:function(){return Object.keys(this.cache)}}),i.prototype.clear=function(){this.cache={},this.head=this.tail=null,this.length=0},i.prototype.remove=function(e){if("string"!=typeof e&&(e=""+e),this.cache.hasOwnProperty(e)){var t=this.cache[e];return delete this.cache[e],this._unlink(e,t.prev,t.next),t.value}},i.prototype._unlink=function(e,t,n){this.length--,0===this.length?this.head=this.tail=null:this.head===e?(this.head=t,this.cache[this.head].next=null):this.tail===e?(this.tail=n,this.cache[this.tail].prev=null):(this.cache[t].next=n,this.cache[n].prev=t)},i.prototype.peek=function(e){if(this.cache.hasOwnProperty(e)){var t=this.cache[e];if(this._checkAge(e,t))return t.value}},i.prototype.set=function(e,t){var n;if("string"!=typeof e&&(e=""+e),this.cache.hasOwnProperty(e)){if((n=this.cache[e]).value=t,this.maxAge&&(n.modified=Date.now()),e===this.head)return t;this._unlink(e,n.prev,n.next)}else n={value:t,modified:0,next:null,prev:null},this.maxAge&&(n.modified=Date.now()),this.cache[e]=n,this.length===this.max&&this.evict();return this.length++,n.next=null,n.prev=this.head,this.head&&(this.cache[this.head].next=e),this.head=e,this.tail||(this.tail=e),t},i.prototype._checkAge=function(e,t){return!(this.maxAge&&Date.now()-t.modified>this.maxAge)||(this.remove(e),this.emit("evict",{key:e,value:t.value}),!1)},i.prototype.get=function(e){if("string"!=typeof e&&(e=""+e),this.cache.hasOwnProperty(e)){var t=this.cache[e];if(this._checkAge(e,t))return this.head!==e&&(e===this.tail?(this.tail=t.next,this.cache[this.tail].prev=null):this.cache[t.prev].next=t.next,this.cache[t.next].prev=t.prev,this.cache[this.head].next=e,t.prev=this.head,t.next=null,this.head=e),t.value}},i.prototype.evict=function(){if(this.tail){var e=this.tail,t=this.remove(this.tail);this.emit("evict",{key:e,value:t})}}},3186:function(){},8005:function(){},5773:function(){},5670:function(){},4373:function(){},7777:function(){},7710:function(){},2014:function(){},6372:function(){},4422:function(){},9561:function(e){function t(e,t){if(!e)throw new Error(t||"Assertion failed")}e.exports=t,t.equal=function(e,t,n){if(e!=t)throw new Error(n||"Assertion failed: "+e+" != "+t)}},8650:function(e){var t,n=window.ProgressEvent,o=!!n;try{t=new n("loaded"),o="loaded"===t.type,t=null}catch(r){o=!1}e.exports=o?n:"function"==typeof document.createEvent?function(e,t){var n=document.createEvent("Event");return n.initEvent(e,!1,!1),t?(n.lengthComputable=Boolean(t.lengthComputable),n.loaded=Number(t.loaded)||0,n.total=Number(t.total)||0):(n.lengthComputable=!1,n.loaded=n.total=0),n}:function(e,t){var n=document.createEventObject();return n.type=e,t?(n.lengthComputable=Boolean(t.lengthComputable),n.loaded=Number(t.loaded)||0,n.total=Number(t.total)||0):(n.lengthComputable=!1,n.loaded=n.total=0),n}},8435:function(e){var t="undefined"!=typeof Element,n="function"==typeof Map,o="function"==typeof Set,r="function"==typeof ArrayBuffer&&!!ArrayBuffer.isView;function i(e,s){if(e===s)return!0;if(e&&s&&"object"==typeof e&&"object"==typeof s){if(e.constructor!==s.constructor)return!1;var a,c,u,l;if(Array.isArray(e)){if((a=e.length)!=s.length)return!1;for(c=a;0!=c--;)if(!i(e[c],s[c]))return!1;return!0}if(n&&e instanceof Map&&s instanceof Map){if(e.size!==s.size)return!1;for(l=e.entries();!(c=l.next()).done;)if(!s.has(c.value[0]))return!1;for(l=e.entries();!(c=l.next()).done;)if(!i(c.value[1],s.get(c.value[0])))return!1;return!0}if(o&&e instanceof Set&&s instanceof Set){if(e.size!==s.size)return!1;for(l=e.entries();!(c=l.next()).done;)if(!s.has(c.value[0]))return!1;return!0}if(r&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(s)){if((a=e.length)!=s.length)return!1;for(c=a;0!=c--;)if(e[c]!==s[c])return!1;return!0}if(e.constructor===RegExp)return e.source===s.source&&e.flags===s.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===s.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===s.toString();if((a=(u=Object.keys(e)).length)!==Object.keys(s).length)return!1;for(c=a;0!=c--;)if(!Object.prototype.hasOwnProperty.call(s,u[c]))return!1;if(t&&e instanceof Element)return!1;for(c=a;0!=c--;)if(("_owner"!==u[c]&&"__v"!==u[c]&&"__o"!==u[c]||!e.$$typeof)&&!i(e[u[c]],s[u[c]]))return!1;return!0}return e!=e&&s!=s}e.exports=function(e,t){try{return i(e,t)}catch(n){if((n.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw n}}},6194:function(e,t,n){"use strict";n.d(t,{D:function(){return u}});var o=n(9196),r=n(7295),i=n(8435),s=n.n(i),a=n(855),c=[],u=function(e,t,n){void 0===n&&(n={});var i=o.useRef(null),u={onFirstUpdate:n.onFirstUpdate,placement:n.placement||"bottom",strategy:n.strategy||"absolute",modifiers:n.modifiers||c},l=o.useState({styles:{popper:{position:u.strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),d=l[0],p=l[1],f=o.useMemo((function(){return{name:"updateState",enabled:!0,phase:"write",fn:function(e){var t=e.state,n=Object.keys(t.elements);p({styles:(0,a.sq)(n.map((function(e){return[e,t.styles[e]||{}]}))),attributes:(0,a.sq)(n.map((function(e){return[e,t.attributes[e]]})))})},requires:["computeStyles"]}}),[]),m=o.useMemo((function(){var e={onFirstUpdate:u.onFirstUpdate,placement:u.placement,strategy:u.strategy,modifiers:[].concat(u.modifiers,[f,{name:"applyStyles",enabled:!1}])};return s()(i.current,e)?i.current||e:(i.current=e,e)}),[u.onFirstUpdate,u.placement,u.strategy,u.modifiers,f]),h=o.useRef();return(0,a.LI)((function(){h.current&&h.current.setOptions(m)}),[m]),(0,a.LI)((function(){if(null!=e&&null!=t){var o=(n.createPopper||r.fi)(e,t,m);return h.current=o,function(){o.destroy(),h.current=null}}}),[e,t,n.createPopper]),{state:h.current?h.current.state:null,styles:d.styles,attributes:d.attributes,update:h.current?h.current.update:null,forceUpdate:h.current?h.current.forceUpdate:null}}},855:function(e,t,n){"use strict";n.d(t,{sq:function(){return r},LI:function(){return i}});var o=n(9196),r=function(e){return e.reduce((function(e,t){var n=t[0],o=t[1];return e[n]=o,e}),{})},i="undefined"!=typeof window&&window.document&&window.document.createElement?o.useLayoutEffect:o.useEffect},9830:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var o=n(1184),r={contextDelimiter:"",onMissingKey:null};function i(e,t){var n;for(n in this.data=e,this.pluralForms={},this.options={},r)this.options[n]=void 0!==t&&n in t?t[n]:r[n]}i.prototype.getPluralForm=function(e,t){var n,r,i,s=this.pluralForms[e];return s||("function"!=typeof(i=(n=this.data[e][""])["Plural-Forms"]||n["plural-forms"]||n.plural_forms)&&(r=function(e){var t,n,o;for(t=e.split(";"),n=0;n<t.length;n++)if(0===(o=t[n].trim()).indexOf("plural="))return o.substr(7)}(n["Plural-Forms"]||n["plural-forms"]||n.plural_forms),i=(0,o.Z)(r)),s=this.pluralForms[e]=i),s(t)},i.prototype.dcnpgettext=function(e,t,n,o,r){var i,s,a;return i=void 0===r?0:this.getPluralForm(e,r),s=n,t&&(s=t+this.options.contextDelimiter+n),(a=this.data[e][s])&&a[i]?a[i]:(this.options.onMissingKey&&this.options.onMissingKey(n,e),0===i?n:o)}},3133:function(e,t,n){"use strict";var o=n(6989),r=n.n(o),i=n(9307);t.Z=()=>{const[e,t]=(0,i.useState)("");return(0,i.useEffect)((()=>{r()({path:"/wpcom/v2/block-editor/has-seen-seller-celebration-modal"}).then((e=>t(e.has_seen_seller_celebration_modal))).catch((()=>t(!1)))}),[]),{hasSeenSellerCelebrationModal:e,updateHasSeenSellerCelebrationModal:function(e){r()({method:"PUT",path:"/wpcom/v2/block-editor/has-seen-seller-celebration-modal",data:{has_seen_seller_celebration_modal:e}}).finally((()=>{t(e)}))}}}},8941:function(e,t,n){"use strict";var o=n(9818),r=n(9307);t.Z=()=>{const[e,t]=(0,r.useState)(!1),n=(0,o.useSelect)((t=>{if(e)return"";const n=t("core/block-editor").getSelectedBlock();return(null==n?void 0:n.name)??""})),i=(0,o.useSelect)((t=>{if(e)return"";const n=t("core/block-editor").getSelectedBlock();if(null!=n&&n.clientId){const e=t("core/block-editor").getBlockParents(null==n?void 0:n.clientId);if(e&&e.length){const n=t("core/block-editor").getBlock(e[e.length-1]);return(null==n?void 0:n.name)??""}}return""}));return(0,r.useEffect)((()=>{e||!n.includes("payments")&&!i.includes("payments")||t(!0)}),[n,i,e,t]),e}},5262:function(e,t,n){"use strict";var o=n(6989),r=n.n(o),i=n(9307);t.Z=()=>{const[e,t]=(0,i.useState)(""),n=(0,i.useCallback)((()=>{r()({path:"/wpcom/v2/site-intent"}).then((e=>t(e.site_intent))).catch((()=>t("")))}),[]);return(0,i.useEffect)((()=>{n()}),[n]),e}},7542:function(e,t,n){"use strict";var o=n(9307),r=n(9196),i=n(8552);t.Z=e=>{const[t,n]=(0,o.useState)({}),s=(0,r.useCallback)((async()=>{const t=await(0,i.ZP)({path:`/sites/${e}?http_envelope=1`,apiVersion:"1.1"});null!=t&&t.plan&&n(t.plan)}),[e]);return(0,o.useEffect)((()=>{s()}),[s]),t}},7869:function(e,t,n){"use strict";var o=n(9307),r=(n(3945),n(849)),i=n(4655),s=n(5609),a=n(9818),c=n(8817),u=n(6483),l=n(3867),d=n(9935),p=n(6011),f=n(1258),m=n(1970),h=n(374),g=n(7203);function v(){var e;const[t]=(0,o.useState)((0,u.getQueryArg)(window.location.href,"showDraftPostModal")),{show:n,isLoaded:c,variant:d,isManuallyOpened:p,isNewPageLayoutModalOpen:f}=(0,a.useSelect)((e=>{const t=e("automattic/wpcom-welcome-guide"),n=e("automattic/starter-page-layouts");return{show:t.isWelcomeGuideShown(),isLoaded:t.isWelcomeGuideStatusLoaded(),variant:t.getWelcomeGuideVariant(),isManuallyOpened:t.isWelcomeGuideManuallyOpened(),isNewPageLayoutModalOpen:null==n?void 0:n.isOpen()}}),[]),v=null===(e=(0,a.useDispatch)("automattic/starter-page-layouts"))||void 0===e?void 0:e.setOpenState,{fetchWelcomeGuideStatus:w}=(0,a.useDispatch)("automattic/wpcom-welcome-guide");return(0,o.useEffect)((()=>{c||w()}),[w,c]),!n||f?null:d===m.yn&&!p&&v?(v("OPEN_FOR_BLANK_CANVAS"),null):d===m.Sz?(0,o.createElement)(r.Iw,{localeSlug:window.wpcomBlockEditorNuxLocale??i.OP},t?(0,o.createElement)(l.Z,null):(0,o.createElement)(g.Z,null)):"modal"===d&&s.Guide&&s.GuidePage?(0,o.createElement)(h.Z,null):null}(0,c.registerPlugin)("wpcom-block-editor-nux",{render:()=>(0,o.createElement)(o.Fragment,null,(0,o.createElement)(v,null),(0,o.createElement)(d.Z,null),(0,o.createElement)(f.Z,null),(0,o.createElement)(p.Z,null))})},1568:function(e,t,n){"use strict";var o=n(9818);n(462);const r=(0,o.subscribe)((()=>{var e,t;(0,o.dispatch)("core/nux").disableTips(),null!==(e=(0,o.select)("core/edit-post"))&&void 0!==e&&e.isFeatureActive("welcomeGuide")&&((0,o.dispatch)("core/edit-post").toggleFeature("welcomeGuide"),r()),null!==(t=(0,o.select)("core/edit-site"))&&void 0!==t&&t.isFeatureActive("welcomeGuide")&&((0,o.dispatch)("core/edit-site").toggleFeature("welcomeGuide"),r())}));(0,o.subscribe)((()=>{var e,t;(0,o.select)("core/nux").areTipsEnabled()&&((0,o.dispatch)("core/nux").disableTips(),(0,o.dispatch)("automattic/wpcom-welcome-guide").setShowWelcomeGuide(!0)),null!==(e=(0,o.select)("core/edit-post"))&&void 0!==e&&e.isFeatureActive("welcomeGuide")&&((0,o.dispatch)("core/edit-post").toggleFeature("welcomeGuide"),(0,o.select)("automattic/wpcom-welcome-guide").isWelcomeGuideStatusLoaded()&&(0,o.dispatch)("automattic/wpcom-welcome-guide").setShowWelcomeGuide(!0,{openedManually:!0})),null!==(t=(0,o.select)("core/edit-site"))&&void 0!==t&&t.isFeatureActive("welcomeGuide")&&((0,o.dispatch)("core/edit-site").toggleFeature("welcomeGuide"),(0,o.select)("automattic/wpcom-welcome-guide").isWelcomeGuideStatusLoaded()&&(0,o.dispatch)("automattic/wpcom-welcome-guide").setShowWelcomeGuide(!0,{openedManually:!0}))}))},3867:function(e,t,n){"use strict";var o=n(9307),r=n(6115),i=n(5609),s=n(9818),a=n(2694),c=n(5736),u=n(3634),l=n(3790);n(3186);const __=c.__,d="a8c.wpcom-block-editor.closeEditor";t.Z=()=>{const e=window._currentSiteId,t=(0,s.useSelect)((t=>t("automattic/site").getPrimarySiteDomain(e))),n=`/home/${(null==t?void 0:t.domain)||window.location.hostname}`,[c,p]=(0,o.useState)(!0),f=()=>p(!1);return(0,o.createElement)(u.Z,{isOpen:c,className:"wpcom-block-editor-draft-post-modal",title:__("Write your first post","full-site-editing"),description:__("It’s time to flex those writing muscles and start drafting your first post!","full-site-editing"),imageSrc:l,actionButtons:(0,o.createElement)(o.Fragment,null,(0,o.createElement)(i.Button,{isPrimary:!0,onClick:f},__("Start writing","full-site-editing")),(0,o.createElement)(i.Button,{isSecondary:!0,onClick:()=>{(0,a.hasAction)(d)?(0,a.doAction)(d,n):window.location.href=`https://wordpress.com${n}`}},__("I'm not ready","full-site-editing"))),onRequestClose:f,onOpen:()=>(0,r.jN)("calypso_editor_wpcom_draft_post_modal_show")})}},3634:function(e,t,n){"use strict";var o=n(9307),r=n(5609),i=n(2779),s=n.n(i);n(9196),n(8005);t.Z=e=>{let{isOpen:t,className:n,title:i,description:a,imageSrc:c,actionButtons:u,onRequestClose:l,onOpen:d}=e;const p=(0,o.useRef)(null);return(0,o.useEffect)((()=>{!p.current&&t&&(null==d||d()),p.current=t}),[p,t,d]),t?(0,o.createElement)(r.Modal,{className:s()("wpcom-block-editor-nux-modal",n),open:t,title:"",onRequestClose:l},(0,o.createElement)("div",{className:"wpcom-block-editor-nux-modal__image-container"},(0,o.createElement)("img",{src:c,alt:i})),(0,o.createElement)("h1",{className:"wpcom-block-editor-nux-modal__title"},i),(0,o.createElement)("p",{className:"wpcom-block-editor-nux-modal__description"},a),(0,o.createElement)("div",{className:"wpcom-block-editor-nux-modal__buttons"},u)):null}},9935:function(e,t,n){"use strict";var o=n(9307),r=n(6115),i=n(5609),s=n(9818),a=n(5736),c=(n(9196),n(3634)),u=n(5275);n(5773);const __=a.__;t.Z=()=>{const{link:e}=(0,s.useSelect)((e=>e("core/editor").getCurrentPost())),t=(0,s.useSelect)((e=>e("core/editor").getCurrentPostType())),n=(0,s.useSelect)((e=>e("core/editor").isCurrentPostPublished())),a=(0,o.useRef)(n),l=(0,s.useSelect)((e=>e("automattic/wpcom-welcome-guide").getShouldShowFirstPostPublishedModal())),[d,p]=(0,o.useState)(!1),{fetchShouldShowFirstPostPublishedModal:f,setShouldShowFirstPostPublishedModal:m}=(0,s.useDispatch)("automattic/wpcom-welcome-guide");(0,o.useEffect)((()=>{f()}),[f]),(0,o.useEffect)((()=>{l&&!a.current&&n&&"post"===t&&(a.current=n,m(!1),window.setTimeout((()=>{p(!0)})))}),[t,l,n,m]);return(0,o.createElement)(c.Z,{isOpen:d,className:"wpcom-block-editor-post-published-modal",title:__("Your first post is published!","full-site-editing"),description:__("Congratulations! You did it. View your post to see how it will look on your site.","full-site-editing"),imageSrc:u,actionButtons:(0,o.createElement)(i.Button,{isPrimary:!0,onClick:t=>{t.preventDefault(),window.top.location.href=e}},__("View Post","full-site-editing")),onRequestClose:()=>p(!1),onOpen:()=>(0,r.jN)("calypso_editor_wpcom_first_post_published_modal_show")})}},3945:function(e,t,n){"object"==typeof window&&window.wpcomBlockEditorNuxAssetsUrl&&(n.p=window.wpcomBlockEditorNuxAssetsUrl)},6011:function(e,t,n){"use strict";var o=n(9818),r=n(5736),i=n(3961),s=n(9196);n(5670);const __=r.__;t.Z=function(){const[e,t]=(0,s.useState)(!1),{createNotice:n}=(0,o.useDispatch)(i.store);return(0,s.useEffect)((()=>{const o=/[&?]notice=([\w_-]+)/.exec(document.location.search);"purchase-success"===(o&&o[1])&&!1===e&&(t(!0),n("info",__("Welcome to the Pro plan! Premium blocks are now available to use.","full-site-editing"),{isDismissible:!0,type:"snackbar"}))})),null}},1258:function(e,t,n){"use strict";var o=n(9307),r=n(6115),i=n(5609),s=n(9818),a=n(5736),c=n(3133),u=n(8941),l=n(5262),d=n(3634),p=n(4242);n(4373);const __=a.__,f=()=>{const{addEntities:e}=(0,s.useDispatch)("core");(0,o.useEffect)((()=>{e([{baseURL:"/wp/v2/statuses",key:"slug",kind:"root",name:"status",plural:"statuses"}])}),[]);const[t,n]=(0,o.useState)(!1),[a,f]=(0,o.useState)(!1),m=(0,s.useSelect)((e=>!!e("core/edit-site"))),h=(0,o.useRef)(!1),g=(0,u.Z)(),{hasSeenSellerCelebrationModal:v,updateHasSeenSellerCelebrationModal:w}=(0,c.Z)(),{isEditorSaving:y,hasPaymentsBlock:b,linkUrl:_}=(0,s.useSelect)((e=>{if(m){var t;const s=e("core").isSavingEntityRecord("root","site")&&!e("core").isAutosavingEntityRecord("root","site"),a=e("core/edit-site").getPage(),c=parseInt(null==a||null===(t=a.context)||void 0===t?void 0:t.postId),u=e("core").isSavingEntityRecord("postType","page",c)&&!e("core").isAutosavingEntityRecord("postType","page",c),l=e("core").getEntityRecord("postType","page",c);let d=!1;if(!v){var n,o,r,i;const t=e("core/block-editor").getGlobalBlockCount("jetpack/recurring-payments")>0,s=e("core/block-editor").getGlobalBlockCount("jetpack/simple-payments")>0;d=((null==l||null===(n=l.content)||void 0===n||null===(o=n.raw)||void 0===o?void 0:o.includes("\x3c!-- wp:jetpack/recurring-payments --\x3e"))||(null==l||null===(r=l.content)||void 0===r||null===(i=r.raw)||void 0===i?void 0:i.includes("\x3c!-- wp:jetpack/simple-payments --\x3e"))||t||s)??!1}return{isEditorSaving:s||u,hasPaymentsBlock:d,linkUrl:null==l?void 0:l.link}}const s=e("core/editor").getCurrentPost(),a=e("core").isSavingEntityRecord("postType",null==s?void 0:s.type,null==s?void 0:s.id)&&!e("core").isAutosavingEntityRecord("postType",null==s?void 0:s.type,null==s?void 0:s.id);let c=0;return v||(c+=e("core/block-editor").getGlobalBlockCount("jetpack/recurring-payments"),c+=e("core/block-editor").getGlobalBlockCount("jetpack/simple-payments")),{isEditorSaving:a,hasPaymentsBlock:c>0,linkUrl:s.link}})),E=(0,l.Z)();(0,o.useEffect)((()=>{!y&&h.current&&!a&&"sell"===E&&b&&g&&!v&&(n(!0),f(!0),w(!0)),h.current=y}),[y,a,E,b,g,v,w]);const k=()=>n(!1);return(0,o.createElement)(d.Z,{isOpen:t,className:"wpcom-site-editor-seller-celebration-modal",title:__("You've added your first product!","full-site-editing"),description:__("Preview your product on your site before launching and sharing with others.","full-site-editing"),imageSrc:p,actionButtons:(0,o.createElement)(o.Fragment,null,(0,o.createElement)(i.Button,{onClick:k},__("Continue editing","full-site-editing")),(0,o.createElement)(i.Button,{isPrimary:!0,href:_,target:"__blank",rel:"noopener noreferrer"},__("View your product","full-site-editing"))),onRequestClose:k,onOpen:()=>(0,r.jN)("calypso_editor_wpcom_seller_celebration_modal_show")})};t.Z=()=>"sell"===(0,l.Z)()?(0,o.createElement)(f,null):null},1970:function(e,t,n){"use strict";n.d(t,{Sz:function(){return a},yn:function(){return c},z2:function(){return p}});var o=n(6989),r=n.n(o),i=n(9818),s=n(3418);n(3288);const a="tour",c="blank-canvas-tour",u=(0,i.combineReducers)({welcomeGuideManuallyOpened:function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"WPCOM_WELCOME_GUIDE_SHOW_SET":return void 0!==t.openedManually?t.openedManually:e;case"WPCOM_WELCOME_GUIDE_RESET_STORE":return!1;default:return e}},showWelcomeGuide:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"WPCOM_WELCOME_GUIDE_FETCH_STATUS_SUCCESS":return t.response.show_welcome_guide;case"WPCOM_WELCOME_GUIDE_SHOW_SET":return t.show;case"WPCOM_WELCOME_GUIDE_RESET_STORE":return;default:return e}},tourRating:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"WPCOM_WELCOME_GUIDE_TOUR_RATING_SET":return t.tourRating;case"WPCOM_WELCOME_GUIDE_RESET_STORE":return;default:return e}},welcomeGuideVariant:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"WPCOM_WELCOME_GUIDE_FETCH_STATUS_SUCCESS":return t.response.variant;case"WPCOM_HAS_USED_PATTERNS_MODAL":return e===c?a:e;case"WPCOM_WELCOME_GUIDE_RESET_STORE":return a;default:return e}},shouldShowFirstPostPublishedModal:function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"WPCOM_SET_SHOULD_SHOW_FIRST_POST_PUBLISHED_MODAL":return t.value;case"WPCOM_WELCOME_GUIDE_RESET_STORE":return!1;default:return e}}}),l={*fetchWelcomeGuideStatus(){return{type:"WPCOM_WELCOME_GUIDE_FETCH_STATUS_SUCCESS",response:yield(0,s.apiFetch)({path:"/wpcom/v2/block-editor/nux"})}},*fetchShouldShowFirstPostPublishedModal(){return{type:"WPCOM_SET_SHOULD_SHOW_FIRST_POST_PUBLISHED_MODAL",value:(yield(0,s.apiFetch)({path:"/wpcom/v2/block-editor/should-show-first-post-published-modal"})).should_show_first_post_published_modal}},setShowWelcomeGuide:function(e){let{openedManually:t,onlyLocal:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return n||r()({path:"/wpcom/v2/block-editor/nux",method:"POST",data:{show_welcome_guide:e}}),{type:"WPCOM_WELCOME_GUIDE_SHOW_SET",show:e,openedManually:t}},setTourRating:e=>({type:"WPCOM_WELCOME_GUIDE_TOUR_RATING_SET",tourRating:e}),setUsedPageOrPatternsModal:()=>({type:"WPCOM_HAS_USED_PATTERNS_MODAL"}),setShouldShowFirstPostPublishedModal:e=>({type:"WPCOM_SET_SHOULD_SHOW_FIRST_POST_PUBLISHED_MODAL",value:e}),resetStore:()=>({type:"WPCOM_WELCOME_GUIDE_RESET_STORE"})},d={isWelcomeGuideManuallyOpened:e=>e.welcomeGuideManuallyOpened,isWelcomeGuideShown:e=>!!e.showWelcomeGuide,isWelcomeGuideStatusLoaded:e=>void 0!==e.showWelcomeGuide,getTourRating:e=>e.tourRating,getWelcomeGuideVariant:e=>"modal"===e.welcomeGuideVariant?a:e.welcomeGuideVariant,getShouldShowFirstPostPublishedModal:e=>e.shouldShowFirstPostPublishedModal};function p(){return(0,i.registerStore)("automattic/wpcom-welcome-guide",{reducer:u,actions:l,selectors:d,controls:s.controls,persist:!0})}},374:function(e,t,n){"use strict";var o=n(7896),r=n(9307),i=n(6115),s=n(5609),a=n(9818),c=n(5736),u=n(9711),l=n(6595),d=n(5486),p=n(7821);n(7777);const __=c.__;function f(e){let{pageNumber:t,isLastPage:n,alignBottom:o=!1,heading:a,description:c,imgSrc:u}=e;return(0,r.useEffect)((()=>{var e;(0,i.jN)("calypso_editor_wpcom_nux_slide_view",{slide_number:t,is_last_slide:n,is_gutenboarding:null===(e=window.calypsoifyGutenberg)||void 0===e?void 0:e.isGutenboarding})}),[]),(0,r.createElement)(s.GuidePage,{className:"wpcom-block-editor-nux__page"},(0,r.createElement)("div",{className:"wpcom-block-editor-nux__text"},(0,r.createElement)("h1",{className:"wpcom-block-editor-nux__heading"},a),(0,r.createElement)("div",{className:"wpcom-block-editor-nux__description"},c)),(0,r.createElement)("div",{className:"wpcom-block-editor-nux__visual"},(0,r.createElement)("img",{key:u,src:u,alt:"","aria-hidden":"true",className:"wpcom-block-editor-nux__image"+(o?" align-bottom":"")})))}t.Z=function(){const{show:e,isNewPageLayoutModalOpen:t,isManuallyOpened:n}=(0,a.useSelect)((e=>({show:e("automattic/wpcom-welcome-guide").isWelcomeGuideShown(),isNewPageLayoutModalOpen:e("automattic/starter-page-layouts")&&e("automattic/starter-page-layouts").isOpen(),isManuallyOpened:e("automattic/wpcom-welcome-guide").isWelcomeGuideManuallyOpened()}))),{setShowWelcomeGuide:c}=(0,a.useDispatch)("automattic/wpcom-welcome-guide");if((0,r.useEffect)((()=>{var o;e&&!t&&(0,i.jN)("calypso_editor_wpcom_nux_open",{is_gutenboarding:null===(o=window.calypsoifyGutenberg)||void 0===o?void 0:o.isGutenboarding,is_manually_opened:n})}),[n,t,e]),!e||t)return null;const m=[{heading:__("Welcome to your website","full-site-editing"),description:__("Edit your homepage, add the pages you need, and change your site’s look and feel.","full-site-editing"),imgSrc:l,alignBottom:!0},{heading:__("Add or edit your content","full-site-editing"),description:__("Edit the placeholder content we’ve started you off with, or click the plus sign to add more content.","full-site-editing"),imgSrc:u},{heading:__("Preview your site as you go","full-site-editing"),description:__("As you edit your site content, click “Preview” to see your site the way your visitors will.","full-site-editing"),imgSrc:d,alignBottom:!0},{heading:__("Hidden until you’re ready","full-site-editing"),description:__("Your site will remain hidden until launched. Click “Launch” in the toolbar to share it with the world.","full-site-editing"),imgSrc:p,alignBottom:!0}];return(0,r.createElement)(s.Guide,{className:"wpcom-block-editor-nux",contentLabel:__("Welcome to your website","full-site-editing"),finishButtonText:__("Get started","full-site-editing"),onFinish:()=>{var e;(0,i.jN)("calypso_editor_wpcom_nux_dismiss",{is_gutenboarding:null===(e=window.calypsoifyGutenberg)||void 0===e?void 0:e.isGutenboarding}),c(!1,{openedManually:!1})}},m.map(((e,t)=>(0,r.createElement)(f,(0,o.Z)({key:e.heading,pageNumber:t+1,isLastPage:t===m.length-1},e)))))}},7203:function(e,t,n){"use strict";var o=n(9307),r=n(6115),i=n(849),s=n(5585),a=n(8038),c=n(9321),u=n(9818),l=n(5262),d=n(7542),p=n(6505);n(7710);function f(){var e;const t=(0,d.Z)(window._currentSiteId),n=(0,l.Z)(),s=(0,i.bU)(),{setShowWelcomeGuide:f}=(0,u.useDispatch)("automattic/wpcom-welcome-guide"),m=null===(e=window.calypsoifyGutenberg)||void 0===e?void 0:e.isGutenboarding,h=()=>new URLSearchParams(document.location.search).has("welcome-tour-next"),g=(0,u.useSelect)((e=>!!e("core/edit-site"))),v=(0,p.Z)(s,h(),g);if("sell"!==n||!t||"ecommerce-bundle"===t.product_slug){const e=v.findIndex((e=>"payment-block"===e.slug));v.splice(e,1)}const{isInserterOpened:w,isSidebarOpened:y,isSettingsOpened:b}=(0,u.useSelect)((e=>{var t;return{isInserterOpened:e("core/edit-post").isInserterOpened(),isSidebarOpened:(null===(t=e("automattic/block-editor-nav-sidebar"))||void 0===t?void 0:t.isSidebarOpened())??!1,isSettingsOpened:"edit-post/document"===e("core/interface").getActiveComplementaryArea("core/edit-post")}})),_=y||(0,c.kV)("<782px")&&(w||b),E={steps:v,closeHandler:(e,t,n)=>{(0,r.jN)("calypso_editor_wpcom_tour_dismiss",{is_gutenboarding:m,slide_number:t+1,action:n}),f(!1,{openedManually:!1})},isMinimized:_,options:{tourRating:{enabled:!0,useTourRating:()=>(0,u.useSelect)((e=>e("automattic/wpcom-welcome-guide").getTourRating())),onTourRate:e=>{(0,u.dispatch)("automattic/wpcom-welcome-guide").setTourRating(e),(0,r.jN)("calypso_editor_wpcom_tour_rate",{thumbs_up:"thumbs-up"===e,is_gutenboarding:!1})}},callbacks:{onMinimize:e=>{(0,r.jN)("calypso_editor_wpcom_tour_minimize",{is_gutenboarding:m,slide_number:e+1})},onMaximize:e=>{(0,r.jN)("calypso_editor_wpcom_tour_maximize",{is_gutenboarding:m,slide_number:e+1})},onStepViewOnce:e=>{const t=v.length-1,{heading:n}=v[e].meta;(0,r.jN)("calypso_editor_wpcom_tour_slide_view",{slide_number:e+1,is_last_slide:e===t,slide_heading:n,is_gutenboarding:m})}},effects:{spotlight:h()?{styles:{minWidth:"50px",minHeight:"50px",borderRadius:"2px"}}:void 0,arrowIndicator:!1},popperModifiers:[(0,o.useMemo)((()=>({name:"offset",options:{offset:e=>{let{placement:t,reference:n}=e;if("bottom"===t){const e=document.querySelector(".edit-post-header");if(!e)return;const t=e.getBoundingClientRect();return[0,t.height+t.y-(n.height+n.y)+16]}return[0,0]}}})),[])],classNames:"wpcom-editor-welcome-tour",portalParentElement:document.getElementById("wpwrap")}};return(0,o.createElement)(a.Z,{config:E})}t.Z=function(){const{show:e,isNewPageLayoutModalOpen:t,isManuallyOpened:n}=(0,u.useSelect)((e=>({show:e("automattic/wpcom-welcome-guide").isWelcomeGuideShown(),isNewPageLayoutModalOpen:e("automattic/starter-page-layouts")&&e("automattic/starter-page-layouts").isOpen(),isManuallyOpened:e("automattic/wpcom-welcome-guide").isWelcomeGuideManuallyOpened()}))),a=(0,i.bU)();return(0,s.Z)([(0,p.Z)(a,!1)[0]]),(0,o.useEffect)((()=>{var o;(e||t)&&(0,r.jN)("calypso_editor_wpcom_tour_open",{is_gutenboarding:null===(o=window.calypsoifyGutenberg)||void 0===o?void 0:o.isGutenboarding,is_manually_opened:n})}),[t,n,e]),!e||t?null:(0,o.createElement)(f,null)}},6505:function(e,t,n){"use strict";var o=n(9307),r=n(7498),i=n(9321),s=n(5609),a=n(5736);const __=a.__;function c(e){const t="https://s0.wp.com/i/editor-welcome-tour";return{addBlock:{desktop:{src:`${t}/slide-add-block.gif`,type:"image/gif"},mobile:{src:`${t}/slide-add-block_mobile.gif`,type:"image/gif"}},allBlocks:{desktop:{src:`${t}/slide-all-blocks.gif`,type:"image/gif"}},finish:{desktop:{src:`${t}/slide-finish.png`,type:"image/gif"}},makeBold:{desktop:{src:`${t}/slide-make-bold.gif`,type:"image/gif"}},moreOptions:{desktop:{src:`${t}/slide-more-options.gif`,type:"image/gif"},mobile:{src:`${t}/slide-more-options_mobile.gif`,type:"image/gif"}},moveBlock:{desktop:{src:`${t}/slide-move-block.gif`,type:"image/gif"},mobile:{src:`${t}/slide-move-block_mobile.gif`,type:"image/gif"}},findYourWay:{desktop:{src:`${t}/slide-find-your-way.gif`,type:"image/gif"}},undo:{desktop:{src:`${t}/slide-undo.gif`,type:"image/gif"}},welcome:{desktop:{src:`${t}/slide-welcome.png`,type:"image/png"},mobile:{src:`${t}/slide-welcome_mobile.jpg`,type:"image/jpeg"}},editYourSite:{desktop:{src:"https://s.w.org/images/block-editor/edit-your-site.gif?1",type:"image/gif"},mobile:{src:"https://s.w.org/images/block-editor/edit-your-site.gif?1",type:"image/gif"}}}[e]}t.Z=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return[{slug:"welcome",meta:{heading:__("Welcome to WordPress!","full-site-editing"),descriptions:{desktop:__("Take this short, interactive tour to learn the fundamentals of the WordPress editor.","full-site-editing"),mobile:null},imgSrc:c("welcome")},options:{classNames:{desktop:"wpcom-editor-welcome-tour__step",mobile:["is-with-extra-padding","wpcom-editor-welcome-tour__step"]}}},{slug:"everything-is-a-block",meta:{heading:__("Everything is a block","full-site-editing"),descriptions:{desktop:__("In the WordPress Editor, paragraphs, images, and videos are all blocks.","full-site-editing"),mobile:null},imgSrc:c("allBlocks")},options:{classNames:{desktop:"wpcom-editor-welcome-tour__step",mobile:"wpcom-editor-welcome-tour__step"}}},{slug:"add-block",...t&&{referenceElements:{mobile:".edit-post-header .edit-post-header__toolbar .components-button.edit-post-header-toolbar__inserter-toggle",desktop:".edit-post-header .edit-post-header__toolbar .components-button.edit-post-header-toolbar__inserter-toggle"}},meta:{heading:__("Adding a new block","full-site-editing"),descriptions:{desktop:__("Click + to open the inserter. Then click the block you want to add.","full-site-editing"),mobile:__("Tap + to open the inserter. Then tap the block you want to add.","full-site-editing")},imgSrc:c("addBlock")},options:{classNames:{desktop:"wpcom-editor-welcome-tour__step",mobile:["is-with-extra-padding","wpcom-editor-welcome-tour__step"]}}},{slug:"edit-block",meta:{heading:__("Click a block to change it","full-site-editing"),descriptions:{desktop:__("Use the toolbar to change the appearance of a selected block. Try making it bold.","full-site-editing"),mobile:null},imgSrc:c("makeBold")},options:{classNames:{desktop:"wpcom-editor-welcome-tour__step",mobile:"wpcom-editor-welcome-tour__step"}}},{slug:"settings",...t&&{referenceElements:{mobile:".edit-post-header .edit-post-header__settings .interface-pinned-items > button:nth-child(1)",desktop:".edit-post-header .edit-post-header__settings .interface-pinned-items > button:nth-child(1)"}},meta:{heading:__("More Options","full-site-editing"),descriptions:{desktop:__("Click the settings icon to see even more options.","full-site-editing"),mobile:__("Tap the settings icon to see even more options.","full-site-editing")},imgSrc:c("moreOptions")},options:{classNames:{desktop:"wpcom-editor-welcome-tour__step",mobile:["is-with-extra-padding","wpcom-editor-welcome-tour__step"]}}},...(0,i.tq)()?[]:[{slug:"find-your-way",meta:{heading:__("Find your way","full-site-editing"),descriptions:{desktop:__("Use List View to see all the blocks you've added. Click and drag any block to move it around.","full-site-editing"),mobile:null},imgSrc:c("findYourWay")},options:{classNames:{desktop:["is-with-extra-padding","wpcom-editor-welcome-tour__step"],mobile:"wpcom-editor-welcome-tour__step"}}}],...(0,i.tq)()?[]:[{slug:"undo",...t&&{referenceElements:{desktop:".edit-post-header .edit-post-header__toolbar .components-button.editor-history__undo"}},meta:{heading:__("Undo any mistake","full-site-editing"),descriptions:{desktop:__("Click the Undo button if you've made a mistake.","full-site-editing"),mobile:null},imgSrc:c("undo")},options:{classNames:{desktop:"wpcom-editor-welcome-tour__step",mobile:"wpcom-editor-welcome-tour__step"}}}],{slug:"drag-drop",meta:{heading:__("Drag & drop","full-site-editing"),descriptions:{desktop:__("To move blocks around, click and drag the handle.","full-site-editing"),mobile:__("To move blocks around, tap the up and down arrows.","full-site-editing")},imgSrc:c("moveBlock")},options:{classNames:{desktop:"wpcom-editor-welcome-tour__step",mobile:["is-with-extra-padding","wpcom-editor-welcome-tour__step"]}}},{slug:"payment-block",meta:{heading:__("The Payments block","full-site-editing"),descriptions:{desktop:(0,o.createElement)(o.Fragment,null,__("The Payments block allows you to accept payments for one-time, monthly recurring, or annual payments on your website","full-site-editing"),(0,o.createElement)("br",null),(0,o.createElement)(s.ExternalLink,{href:(0,r.aq)("https://wordpress.com/support/video-tutorials-add-payments-features-to-your-site-with-our-guides/#how-to-use-the-payments-block-video",e),target:"_blank",rel:"noopener noreferrer"},__("Learn more","full-site-editing"))),mobile:null},imgSrc:c("welcome")},options:{classNames:{desktop:"wpcom-editor-welcome-tour__step",mobile:"wpcom-editor-welcome-tour__step"}}},...n?[{slug:"edit-your-site",meta:{heading:__("Edit your site","full-site-editing"),descriptions:{desktop:__("Design everything on your site - from the header right down to the footer - using blocks.","full-site-editing"),mobile:__("Design everything on your site - from the header right down to the footer - using blocks.","full-site-editing")},imgSrc:c("editYourSite")},options:{classNames:{desktop:"wpcom-editor-welcome-tour__step",mobile:["is-with-extra-padding","wpcom-editor-welcome-tour__step"]}}}]:[],{slug:"congratulations",meta:{heading:__("Congratulations!","full-site-editing"),descriptions:{desktop:(0,o.createInterpolateElement)(__("You've learned the basics. Remember, your site is private until you <link_to_launch_site_docs>decide to launch</link_to_launch_site_docs>. View the <link_to_editor_docs>block editing docs</link_to_editor_docs> to learn more.","full-site-editing"),{link_to_launch_site_docs:(0,o.createElement)(s.ExternalLink,{href:(0,r.aq)("https://wordpress.com/support/settings/privacy-settings/#launch-your-site",e)}),link_to_editor_docs:(0,o.createElement)(s.ExternalLink,{href:(0,r.aq)("https://wordpress.com/support/wordpress-editor/",e)})}),mobile:null},imgSrc:c("finish")},options:{classNames:{desktop:"wpcom-editor-welcome-tour__step",mobile:"wpcom-editor-welcome-tour__step"}}}]}},6115:function(e,t,n){"use strict";n.d(t,{jN:function(){return o.jN}});n(1694),n(6209),n(9377);var o=n(9792);n(3722)},9377:function(e,t,n){"use strict";let o=null;"undefined"!=typeof window&&window.addEventListener("popstate",(function(){o=null}))},9792:function(e,t,n){"use strict";n.d(t,{jN:function(){return p}});var o=n(2699),r=n(4898),i=(n(3421),n(2819)),s=(n(9377),n(6209),n(9358));n(1694);const a=["a8c_cookie_banner_ok","wcadmin_storeprofiler_create_jetpack_account","wcadmin_storeprofiler_connect_store","wcadmin_storeprofiler_login_jetpack_account","wcadmin_storeprofiler_payment_login","wcadmin_storeprofiler_payment_create_account","calypso_checkout_switch_to_p_24","calypso_checkout_composite_p24_submit_clicked"];let c,u=Promise.resolve();function l(e){"undefined"!=typeof window&&(window._tkq=window._tkq||[],window._tkq.push(e))}"undefined"!=typeof document&&(u=(0,r.ve)("//stats.wp.com/w.js?63"));const d=new o.EventEmitter;function p(e,t){if(t=t||{},(0,s.Z)('Record event "%s" called with props %o',e,t),e.startsWith("calypso_")||(0,i.includes)(a,e)){if(c){const e=c(t);t={...t,...e}}t=(0,i.omitBy)(t,(e=>void 0===e)),(0,s.Z)('Recording event "%s" with actual props %o',e,t),l(["recordEvent",e,t]),d.emit("record-event",e,t)}else(0,s.Z)('- Event name must be prefixed by "calypso_" or added to `EVENT_NAME_EXCEPTIONS`')}},3722:function(e,t,n){"use strict";n(9792)},6209:function(e,t,n){"use strict";n(4)},9358:function(e,t,n){"use strict";var o=n(8049),r=n.n(o);t.Z=r()("calypso:analytics")},1694:function(e,t,n){"use strict";n(9358)},4:function(e,t,n){"use strict";n(8032)},3668:function(e,t,n){"use strict";var o=n(9307),r=n(5736),i=n(2779),s=n.n(i),a=n(2819);n(2014);const __=r.__;t.Z=e=>{let{activePageIndex:t,numberOfPages:n,onChange:i,classNames:c,children:u}=e;const l=s()("pagination-control",c);return(0,o.createElement)("ul",{className:l,"aria-label":__("Pagination control")},(0,a.times)(n,(e=>(0,o.createElement)("li",{key:`${n}-${e}`,"aria-current":e===t?"page":void 0},(0,o.createElement)("button",{className:s()("pagination-control__page",{"is-current":e===t}),disabled:e===t,"aria-label":(0,r.sprintf)(__("Page %1$d of %2$d"),e+1,n),onClick:()=>i(e)})))),u&&(0,o.createElement)("li",{className:"pagination-control__last-item"},u))}},4724:function(e,t,n){"use strict";var o=n(914);t.Z=new o.Z},914:function(e,t,n){"use strict";var o=n(2699),r=n(2594),i=n(6668),s=n(8049),a=n.n(s),c=n(5079),u=n.n(c),l=n(7839),d=n.n(l),p=n(9830),f=n(3);const m=a()("i18n-calypso"),h="number_format_decimals",g="number_format_thousands_sep",v="messages",w=[function(e){return e}],y={};function b(){S.throwErrors&&"undefined"!=typeof window&&window.console&&window.console.warn&&window.console.warn.apply(window.console,arguments)}function _(e){return Array.prototype.slice.call(e)}function E(e){const t=e[0];("string"!=typeof t||e.length>3||e.length>2&&"object"==typeof e[1]&&"object"==typeof e[2])&&b("Deprecated Invocation: `translate()` accepts ( string, [string], [object] ). These arguments passed:",_(e),". See https://github.com/Automattic/i18n-calypso#translate-method"),2===e.length&&"string"==typeof t&&"string"==typeof e[1]&&b("Invalid Invocation: `translate()` requires an options object for plural translations, but passed:",_(e));let n={};for(let o=0;o<e.length;o++)"object"==typeof e[o]&&(n=e[o]);if("string"==typeof t?n.original=t:"object"==typeof n.original&&(n.plural=n.original.plural,n.count=n.original.count,n.original=n.original.single),"string"==typeof e[1]&&(n.plural=e[1]),void 0===n.original)throw new Error("Translate called without a `string` value as first argument.");return n}function k(e,t){return e.dcnpgettext(v,t.context,t.original,t.plural,t.count)}function x(e,t){for(let n=w.length-1;n>=0;n--){const o=w[n](Object.assign({},t)),r=o.context?o.context+""+o.original:o.original;if(e.state.locale[r])return k(e.state.tannin,o)}return null}function S(){if(!(this instanceof S))return new S;this.defaultLocaleSlug="en",this.defaultPluralForms=e=>1===e?0:1,this.state={numberFormatSettings:{},tannin:void 0,locale:void 0,localeSlug:void 0,localeVariant:void 0,textDirection:void 0,translations:d()({max:100})},this.componentUpdateHooks=[],this.translateHooks=[],this.stateObserver=new o.EventEmitter,this.stateObserver.setMaxListeners(0),this.configure()}S.throwErrors=!1,S.prototype.on=function(){this.stateObserver.on(...arguments)},S.prototype.off=function(){this.stateObserver.off(...arguments)},S.prototype.emit=function(){this.stateObserver.emit(...arguments)},S.prototype.numberFormat=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n="number"==typeof t?t:t.decimals||0,o=t.decPoint||this.state.numberFormatSettings.decimal_point||".",r=t.thousandsSep||this.state.numberFormatSettings.thousands_sep||",";return(0,f.Z)(e,n,o,r)},S.prototype.configure=function(e){Object.assign(this,e||{}),this.setLocale()},S.prototype.setLocale=function(e){var t,n,o;if(e&&e[""]&&e[""]["key-hash"]){const t=e[""]["key-hash"],n=function(e,t){const n=!1===t?"":String(t);if(void 0!==y[n+e])return y[n+e];const o=u()().update(e).digest("hex");return y[n+e]=t?o.substr(0,t):o},o=function(e){return function(t){return t.context?(t.original=n(t.context+String.fromCharCode(4)+t.original,e),delete t.context):t.original=n(t.original,e),t}};if("sha1"===t.substr(0,4))if(4===t.length)w.push(o(!1));else{const e=t.substr(5).indexOf("-");if(e<0){const e=Number(t.substr(5));w.push(o(e))}else{const n=Number(t.substr(5,e)),r=Number(t.substr(6+e));for(let e=n;e<=r;e++)w.push(o(e))}}}if(e&&e[""].localeSlug)if(e[""].localeSlug===this.state.localeSlug){if(e===this.state.locale)return;Object.assign(this.state.locale,e)}else this.state.locale=Object.assign({},e);else this.state.locale={"":{localeSlug:this.defaultLocaleSlug,plural_forms:this.defaultPluralForms}};this.state.localeSlug=this.state.locale[""].localeSlug,this.state.localeVariant=this.state.locale[""].localeVariant,this.state.textDirection=(null===(t=this.state.locale["text directionltr"])||void 0===t?void 0:t[0])||(null===(n=this.state.locale[""])||void 0===n||null===(o=n.momentjs_locale)||void 0===o?void 0:o.textDirection),this.state.tannin=new p.Z({[v]:this.state.locale}),this.state.numberFormatSettings.decimal_point=k(this.state.tannin,E([h])),this.state.numberFormatSettings.thousands_sep=k(this.state.tannin,E([g])),this.state.numberFormatSettings.decimal_point===h&&(this.state.numberFormatSettings.decimal_point="."),this.state.numberFormatSettings.thousands_sep===g&&(this.state.numberFormatSettings.thousands_sep=","),this.stateObserver.emit("change")},S.prototype.getLocale=function(){return this.state.locale},S.prototype.getLocaleSlug=function(){return this.state.localeSlug},S.prototype.getLocaleVariant=function(){return this.state.localeVariant},S.prototype.isRtl=function(){return"rtl"===this.state.textDirection},S.prototype.addTranslations=function(e){for(const t in e)""!==t&&(this.state.tannin.data.messages[t]=e[t]);this.stateObserver.emit("change")},S.prototype.hasTranslation=function(){return!!x(this,E(arguments))},S.prototype.translate=function(){const e=E(arguments);let t=x(this,e);if(t||(t=k(this.state.tannin,e)),e.args){const o=Array.isArray(e.args)?e.args.slice(0):[e.args];o.unshift(t);try{t=(0,i.Z)(...o)}catch(n){if(!window||!window.console)return;const e=this.throwErrors?"error":"warn";"string"!=typeof n?window.console[e](n):window.console[e]("i18n sprintf error:",o)}}return e.components&&(t=(0,r.Z)({mixedString:t,components:e.components,throwErrors:this.throwErrors})),this.translateHooks.forEach((function(n){t=n(t,e)})),t},S.prototype.reRenderTranslations=function(){m("Re-rendering all translations due to external request"),this.stateObserver.emit("change")},S.prototype.registerComponentUpdateHook=function(e){this.componentUpdateHooks.push(e)},S.prototype.registerTranslateHook=function(e){this.translateHooks.push(e)},t.Z=S},1481:function(e,t,n){"use strict";n.d(t,{Yj:function(){return r}});var o=n(4724);o.Z.numberFormat.bind(o.Z),o.Z.translate.bind(o.Z),o.Z.configure.bind(o.Z),o.Z.setLocale.bind(o.Z),o.Z.getLocale.bind(o.Z);const r=o.Z.getLocaleSlug.bind(o.Z);o.Z.getLocaleVariant.bind(o.Z),o.Z.isRtl.bind(o.Z),o.Z.addTranslations.bind(o.Z),o.Z.reRenderTranslations.bind(o.Z),o.Z.registerComponentUpdateHook.bind(o.Z),o.Z.registerTranslateHook.bind(o.Z),o.Z.state,o.Z.stateObserver,o.Z.on.bind(o.Z),o.Z.off.bind(o.Z),o.Z.emit.bind(o.Z)},3:function(e,t,n){"use strict";function o(e,t,n,o){e=(e+"").replace(/[^0-9+\-Ee.]/g,"");const r=isFinite(+e)?+e:0,i=isFinite(+t)?Math.abs(t):0,s=void 0===o?",":o,a=void 0===n?".":n;let c="";return c=(i?
|
7 |
/*
|
8 |
* Exposes number format capability
|
9 |
*
|
11 |
* @license See CREDITS.md
|
12 |
* @see https://github.com/kvz/phpjs/blob/ffe1356af23a6f2512c84c954dd4e828e92579fa/functions/strings/number_format.js
|
13 |
*/
|
14 |
+
function(e,t){const n=Math.pow(10,t);return""+(Math.round(e*n)/n).toFixed(t)}(r,i):""+Math.round(r)).split("."),c[0].length>3&&(c[0]=c[0].replace(/\B(?=(?:\d{3})+(?!\d))/g,s)),(c[1]||"").length<i&&(c[1]=c[1]||"",c[1]+=new Array(i-c[1].length+1).join("0")),c.join(a)}n.d(t,{Z:function(){return o}})},849:function(e,t,n){"use strict";n.d(t,{Iw:function(){return c},bU:function(){return l}});var o=n(9307),r=n(4333),i=n(5736),s=n(9196);const a=(0,s.createContext)(null),c=e=>{let{children:t,localeSlug:n}=e;return(0,o.createElement)(a.Provider,{value:n},t)};function u(){var e,t;return function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";if(!e)return"";const t=["pt_br","pt-br","zh_tw","zh-tw","zh_cn","zh-cn","zh_sg","zh-sg"],n=e.toLowerCase();return(t.includes(n)?n.replace("_","-"):n.replace(/([-_].*)$/i,""))||"en"}(i.getLocaleData?null===(e=i.getLocaleData())||void 0===e||null===(t=e[""])||void 0===t?void 0:t.language:"")}function l(){var e;const t=(0,s.useContext)(a),n=!!t,[o,r]=(0,s.useState)(u());return(0,s.useEffect)((()=>{if(!n)return r(u()),i.subscribe((()=>{r(u())}))}),[n]),t||o||(null===(e=window)||void 0===e?void 0:e._currentUserLocale)||"en"}(0,r.createHigherOrderComponent)((e=>t=>{const n={...t,locale:l()};return(0,o.createElement)(e,n)}),"withLocale")},4655:function(e,t,n){"use strict";n.d(t,{OP:function(){return o},GG:function(){return r},iT:function(){return i},xn:function(){return s},Xb:function(){return a},hI:function(){return c},mL:function(){return u},vS:function(){return l},_r:function(){return d}});const o="en",r=["en","ja","es","pt","fr","pt-br"],i=["en","fr","de","es"],s=["en","fr","de","es"],a={"pt-br":"br",br:"bre",zh:"zh-cn","zh-hk":"zh-tw","zh-sg":"zh-cn",kr:"ko"},c=["ar","de","en","es","fr","he","id","it","ja","ko","nl","pt-br","ru","sv","tr","zh-cn","zh-tw"],u=["ar","de","el","en","es","fa","fi","fr","id","it","ja","nl","pt","pt-br","ru","sv","th","tl","tr"],l=["es","pt-br","de","fr","he","ja","it","nl","ru","tr","id","zh-cn","zh-tw","ko","ar","sv"],d=["en","ar","de","es","fr","he","id","it","ja","ko","nl","pt-br","ro","ru","sv","tr","zh-cn","zh-tw"]},7498:function(e,t,n){"use strict";n.d(t,{aq:function(){return g}});var o=n(9307),r=n(4333),i=n(1481),s=n(9196),a=n(849),c=n(4655);const u="http://__domain__.invalid";function l(){return(null===i.Yj||void 0===i.Yj?void 0:(0,i.Yj)())??"en"}const d=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return(n,o)=>(t.includes(o)&&"en"!==o&&n.pathname.substr(0,o.length+2)!=="/"+o+"/"&&(n.host=`${c.Xb[o]||o}.${e}`),n)},p=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return(o,r)=>(o.host="wordpress.com","object"==typeof n&&n instanceof RegExp&&!n.test(o.pathname)&&(t=[]),o.pathname=e+o.pathname,t.includes(r)&&"en"!==r&&(o.pathname=r+o.pathname),o)},f=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2?arguments[2]:void 0;return(o,r)=>"object"==typeof t&&t instanceof RegExp&&!t.test(o.pathname)?o:e.includes(r)&&"en"!==r?("prefix"===n?o.pathname=r+o.pathname:"suffix"===n&&(o.pathname.endsWith("/")?o.pathname+=r+"/":o.pathname+="/"+r),o):o},m=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return(n,o)=>f(e,t,"prefix")(n,o)},h={"wordpress.com/support/":m(c.hI),"wordpress.com/forums/":m(c.mL),"wordpress.com/blog/":m(c.GG,/^\/blog\/?$/),"wordpress.com/tos/":m(c.vS),"wordpress.com/wp-admin/":d("wordpress.com",c.vS),"wordpress.com/wp-login.php":d("wordpress.com",c.vS),"jetpack.com":d("jetpack.com",c._r),"en.support.wordpress.com":p("/support",c.hI),"en.blog.wordpress.com":p("/blog",c.GG,/^\/$/),"apps.wordpress.com":m(c.vS),"en.forums.wordpress.com":p("/forums",c.mL),"automattic.com/privacy/":m(c.iT),"automattic.com/cookies/":m(c.xn),"wordpress.com/help/contact/":(e,t,n)=>n?e:(e.pathname=e.pathname.replace(/\/help\//,"/support/"),m(c.hI)(e,t)),"wordpress.com":(e,t)=>/^\/(checkout|me)(\/|$)/.test(e.pathname)||/\/([a-z0-9-]+\.)+[a-z]{2,}\/?$/.test(e.pathname)?e:m(c.vS)(e,t),"wordpress.com/theme/":(e,t,n)=>n?e:m(c.vS)(e,t),"wordpress.com/themes/":(e,t,n)=>n?e:m(c.vS)(e,t),"wordpress.com/log-in/":(e,t,n)=>n?e:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return(n,o)=>f(e,t,"suffix")(n,o)}(c.vS)(e,t)};function g(e){let t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l(),o=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];try{t=new URL(String(e),u)}catch(s){return e}if(t.origin===u)return e;t.protocol="https:",t.hostname="",t.pathname.endsWith(".php")||(t.pathname=(t.pathname+"/").replace(/\/+$/,"/"));const r=t.pathname.substr(0,1+t.pathname.indexOf("/",1));if("en.wordpress.com"===t.host&&(t.host="wordpress.com"),"/"+n+"/"===r)return e;const i=[t.host,t.host+r,t.host+t.pathname];for(let a=i.length-1;a>=0;a--)if(i[a]in h)return h[i[a]](t,n,o).href;return e}function v(){const e=(0,a.bU)();return(0,s.useCallback)(((t,n,o)=>g(t,n||e,o)),[e])}(0,r.createHigherOrderComponent)((e=>t=>{const n={...t,localizeUrl:v()};return(0,o.createElement)(e,n)}),"withLocalizeUrl")},2594:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var o=n(9196),r=n(1310);function i(e,t){let n,r,s=[];for(let o=0;o<e.length;o++){const i=e[o];if("string"!==i.type){if(void 0===t[i.value])throw new Error(`Invalid interpolation, missing component node: \`${i.value}\``);if("object"!=typeof t[i.value])throw new Error(`Invalid interpolation, component node must be a ReactElement or null: \`${i.value}\``);if("componentClose"===i.type)throw new Error(`Missing opening component token: \`${i.value}\``);if("componentOpen"===i.type){n=t[i.value],r=o;break}s.push(t[i.value])}else s.push(i.value)}if(n){const a=function(e,t){const n=t[e];let o=0;for(let r=e+1;r<t.length;r++){const e=t[r];if(e.value===n.value){if("componentOpen"===e.type){o++;continue}if("componentClose"===e.type){if(0===o)return r;o--}}}throw new Error("Missing closing component token `"+n.value+"`")}(r,e),c=i(e.slice(r+1,a),t),u=(0,o.cloneElement)(n,{},c);if(s.push(u),a<e.length-1){const n=i(e.slice(a+1),t);s=s.concat(n)}}return s=s.filter(Boolean),0===s.length?null:1===s.length?s[0]:(0,o.createElement)(o.Fragment,null,...s)}function s(e){const{mixedString:t,components:n,throwErrors:o}=e;if(!n)return t;if("object"!=typeof n){if(o)throw new Error(`Interpolation Error: unable to process \`${t}\` because components is not an object`);return t}const s=(0,r.Z)(t);try{return i(s,n)}catch(a){if(o)throw new Error(`Interpolation Error: unable to process \`${t}\` because of error \`${a.message}\``);return t}}},1310:function(e,t,n){"use strict";function o(e){return e.startsWith("{{/")?{type:"componentClose",value:e.replace(/\W/g,"")}:e.endsWith("/}}")?{type:"componentSelfClosing",value:e.replace(/\W/g,"")}:e.startsWith("{{")?{type:"componentOpen",value:e.replace(/\W/g,"")}:{type:"string",value:e}}function r(e){return e.split(/(\{\{\/?\s*\w+\s*\/?\}\})/g).map(o)}n.d(t,{Z:function(){return r}})},3340:function(e,t,n){"use strict";n.d(t,{hg:function(){return a},lZ:function(){return c},_W:function(){return l},Yt:function(){return d}});var o=n(8049);const r=n.n(o)()("lib/load-script/callback-handler"),i=new Map;function s(){return i}function a(e){return s().has(e)}function c(e,t){const n=s();a(e)?(r(`Adding a callback for an existing script from "${e}"`),n.get(e).add(t)):(r(`Adding a callback for a new script from "${e}"`),n.set(e,new Set([t])))}function u(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;const n=s(),o=n.get(e);if(o){r(`Executing callbacks for "${e}"`+(null===t?" with success":` with error "${t}"`)),o.forEach((e=>{"function"==typeof e&&e(t)})),n.delete(e)}}function l(){const e=this.getAttribute("src");r(`Handling successful request for "${e}"`),u(e),this.onload=null}function d(){const e=this.getAttribute("src");r(`Handling failed request for "${e}"`),u(e,new Error(`Failed to load script "${e}"`)),this.onerror=null}},5606:function(e,t,n){"use strict";n.d(t,{C:function(){return a},k:function(){return c}});var o=n(8049),r=n.n(o),i=n(3340);const s=r()("lib/load-script/dom-operations");function a(e){s(`Creating script element for "${e}"`);const t=document.createElement("script");return t.src=e,t.type="text/javascript",t.async=!0,t.onload=i._W,t.onerror=i.Yt,t}function c(e){s("Attaching element to head"),document.head.appendChild(e)}},4898:function(e,t,n){"use strict";n.d(t,{ve:function(){return a}});var o=n(8049),r=n.n(o),i=n(3340),s=n(5606);r()("package/load-script");function a(e,t){if(!(0,i.hg)(e)&&(0,s.k)((0,s.C)(e)),"function"!=typeof t)return new Promise(((t,n)=>{(0,i.lZ)(e,(e=>{null===e?t():n(e)}))}));(0,i.lZ)(e,t)}},8626:function(e,t,n){"use strict";var o=n(9307),r=(n(9196),n(7474)),i=n(5386),s=n(9946);t.Z=e=>{let{onMinimize:t,onDismiss:n,onNextStepProgression:a,onPreviousStepProgression:c,tourContainerRef:u,isMinimized:l}=e;return(0,r.Z)(u)?l?(0,o.createElement)((function(){return(0,s.Z)({onEscape:n("esc-key-minimized")}),null}),null):(0,o.createElement)((function(){return(0,s.Z)({onEscape:t,onArrowRight:a,onArrowLeft:c}),(0,i.Z)(u),null}),null):null}},9549:function(e,t,n){"use strict";n.d(t,{S:function(){return i}});var o=n(9307);const r=(0,o.createContext)({}),i=()=>(0,o.useContext)(r);t.Z=e=>{let{config:t,children:n}=e;return(0,o.createElement)(r.Provider,{value:{config:t}},n)}},4065:function(e,t,n){"use strict";var o=n(7896),r=n(9307),i=n(6951),s=n(2779),a=n.n(s),c=n(6194),u=n(9207),l=n(2036),d=n(9351),p=n(8626),f=n(6165),m=n(7858),h=n(8074),g=n(301);const v=(e,t)=>{"function"==typeof t&&t(e)};t.Z=e=>{var t,n,s,w,y,b,_,E,k,x,S,Z,C,O,P,M,L,F,R,T,j,N,A,z,I,D,W,G,B;let{config:U}=e;const[$,H]=(0,r.useState)(0),[V,q]=(0,r.useState)(null),[Y,K]=(0,r.useState)(U.isMinimized??!1),[Q,X]=(0,r.useState)(null),[J,ee]=(0,r.useState)(!1),te=(0,r.useRef)(null),ne=(0,i._z)(),oe=U.steps.length-1,re=(null===(t=U.steps[$].referenceElements)||void 0===t?void 0:t[ne?"mobile":"desktop"])||null,ie=re?document.querySelector(re):null;(0,r.useEffect)((()=>{U.isMinimized&&K(!0)}),[U.isMinimized]);const se=(0,r.useCallback)((()=>{var e,t;return!1!==(null===(e=U.options)||void 0===e||null===(t=e.effects)||void 0===t?void 0:t.arrowIndicator)&&!(!ie||Y||!J)}),[null===(n=U.options)||void 0===n||null===(s=n.effects)||void 0===s?void 0:s.arrowIndicator,Y,ie,J]),ae=(0,r.useCallback)((()=>{var e,t;return!(null===(e=U.options)||void 0===e||null===(t=e.effects)||void 0===t||!t.spotlight)&&!Y}),[null===(w=U.options)||void 0===w||null===(y=w.effects)||void 0===y?void 0:y.spotlight,Y]),ce=(0,r.useCallback)((()=>{var e,t;return!(ae()||null===(e=U.options)||void 0===e||null===(t=e.effects)||void 0===t||!t.overlay)&&!Y}),[null===(b=U.options)||void 0===b||null===(_=b.effects)||void 0===_?void 0:_.overlay,Y,ae]),ue=(0,r.useCallback)((e=>()=>{U.closeHandler(U.steps,$,e)}),[U,$]),le=(0,r.useCallback)((()=>{var e,t;oe>$&&H($+1),v($,null===(e=U.options)||void 0===e||null===(t=e.callbacks)||void 0===t?void 0:t.onNextStep)}),[null===(E=U.options)||void 0===E||null===(k=E.callbacks)||void 0===k?void 0:k.onNextStep,$,oe]),de=(0,r.useCallback)((()=>{var e,t;$&&H($-1),v($,null===(e=U.options)||void 0===e||null===(t=e.callbacks)||void 0===t?void 0:t.onPreviousStep)}),[null===(x=U.options)||void 0===x||null===(S=x.callbacks)||void 0===S?void 0:S.onPreviousStep,$]),pe=(0,r.useCallback)((e=>{var t,n;H(e),v($,null===(t=U.options)||void 0===t||null===(n=t.callbacks)||void 0===n?void 0:n.onGoToStep)}),[null===(Z=U.options)||void 0===Z||null===(C=Z.callbacks)||void 0===C?void 0:C.onGoToStep,$]),fe=(0,r.useCallback)((()=>{var e,t;K(!0),v($,null===(e=U.options)||void 0===e||null===(t=e.callbacks)||void 0===t?void 0:t.onMinimize)}),[null===(O=U.options)||void 0===O||null===(P=O.callbacks)||void 0===P?void 0:P.onMinimize,$]),me=(0,r.useCallback)((()=>{var e,t;K(!1),v($,null===(e=U.options)||void 0===e||null===(t=e.callbacks)||void 0===t?void 0:t.onMaximize)}),[null===(M=U.options)||void 0===M||null===(L=M.callbacks)||void 0===L?void 0:L.onMaximize,$]),{styles:he,attributes:ge,update:ve}=(0,c.D)(ie,Q,{strategy:"fixed",placement:(null==U?void 0:U.placement)??"bottom",modifiers:[{name:"preventOverflow",options:{rootBoundary:"document",padding:16}},{name:"arrow",options:{padding:12}},{name:"offset",options:{offset:[0,se()?12:10]}},{name:"flip",options:{fallbackPlacements:["top","left","right"]}},(0,r.useMemo)((()=>{var e,t;return(0,d._)(null===(e=U.options)||void 0===e||null===(t=e.effects)||void 0===t?void 0:t.liveResize)}),[null===(F=U.options)||void 0===F||null===(R=F.effects)||void 0===R?void 0:R.liveResize]),...(null===(T=U.options)||void 0===T?void 0:T.popperModifiers)||[]]}),we=!Y&&ie&&J?{style:null==he?void 0:he.popper,...null==ge?void 0:ge.popper}:null,ye=!Y&&ie&&J?{style:null==he?void 0:he.arrow,...null==ge?void 0:ge.arrow}:null;(0,r.useEffect)((()=>{setTimeout((()=>null==V?void 0:V.focus()))}),[V]),(0,r.useEffect)((()=>{ie?(ee(!1),ve&&ve().then((()=>ee(!0))).catch((()=>ee(!0)))):ee(!0)}),[ve,ie]),(0,r.useEffect)((()=>{var e,t;ie&&null!==(e=U.options)&&void 0!==e&&null!==(t=e.effects)&&void 0!==t&&t.autoScroll&&ie.scrollIntoView(U.options.effects.autoScroll)}),[null===(j=U.options)||void 0===j||null===(N=j.effects)||void 0===N?void 0:N.autoScroll,ie]);const be=a()("tour-kit-frame",ne?"is-mobile":"is-desktop",{"is-visible":J},(0,l.s)(null===(A=U.options)||void 0===A?void 0:A.classNames));return(0,u.Z)($,null===(z=U.options)||void 0===z||null===(I=z.callbacks)||void 0===I?void 0:I.onStepViewOnce),(0,r.createElement)(r.Fragment,null,(0,r.createElement)(p.Z,{onMinimize:fe,onDismiss:ue,onNextStepProgression:le,onPreviousStepProgression:de,tourContainerRef:te,isMinimized:Y}),(0,r.createElement)("div",{className:be,ref:te},ce()&&(0,r.createElement)(m.Z,{visible:!0}),ae()&&(0,r.createElement)(h.Z,(0,o.Z)({referenceElement:ie,liveResize:(null===(D=U.options)||void 0===D||null===(W=D.effects)||void 0===W?void 0:W.liveResize)||{}},(null===(G=U.options)||void 0===G||null===(B=G.effects)||void 0===B?void 0:B.spotlight)||{})),(0,r.createElement)("div",(0,o.Z)({className:"tour-kit-frame__container",ref:X},we),se()&&(0,r.createElement)("div",(0,o.Z)({className:"tour-kit-frame__arrow","data-popper-arrow":!0},ye)),Y?(0,r.createElement)(f.Z,{config:U,steps:U.steps,currentStepIndex:$,onMaximize:me,onDismiss:ue}):(0,r.createElement)(g.Z,{config:U,steps:U.steps,currentStepIndex:$,onMinimize:fe,onDismiss:ue,onNextStep:le,onPreviousStep:de,onGoToStep:pe,setInitialFocusedElement:q}))))}},6165:function(e,t,n){"use strict";var o=n(9307);t.Z=e=>{let{config:t,steps:n,currentStepIndex:r,onMaximize:i,onDismiss:s}=e;return(0,o.createElement)("div",{className:"tour-kit-minimized"},(0,o.createElement)(t.renderers.tourMinimized,{steps:n,currentStepIndex:r,onMaximize:i,onDismiss:s}))}},7858:function(e,t,n){"use strict";var o=n(9307),r=n(2779),i=n.n(r);t.Z=e=>{let{visible:t}=e;return(0,o.createElement)("div",{className:i()("tour-kit-overlay",{"is-visible":t})})}},9915:function(e,t,n){"use strict";n.d(t,{l:function(){return i}});var o=n(9307),r=n(8074);const i=e=>{let{enabled:t=!1,rootElementSelector:n="#wpwrap"}=e;return t?(0,o.createElement)("style",null,`\n .${r.u}, .${r.u} * {\n pointer-events: auto;\n }\n .tour-kit-frame__container button {\n pointer-events: auto;\n }\n .tour-kit-spotlight, .tour-kit-overlay {\n pointer-events: none;\n }\n ${n} :not(.${r.u}, .${r.u} *) {\n pointer-events: none;\n }\n `):null}},8074:function(e,t,n){"use strict";n.d(t,{u:function(){return d}});var o=n(7896),r=n(9307),i=n(2779),s=n.n(i),a=n(6194),c=n(9351),u=n(7858),l=n(9915);const d="wp-tour-kit-spotlit";t.Z=e=>{let{referenceElement:t,styles:n,interactivity:i,liveResize:p}=e;const[f,m]=(0,r.useState)(null),h=null==t?void 0:t.getBoundingClientRect(),g=[{name:"flip",enabled:!1},{name:"preventOverflow",options:{mainAxis:!1}},(0,r.useMemo)((()=>({name:"offset",options:{offset:e=>{let{placement:t,reference:n,popper:o}=e;return"bottom"===t?[0,-(n.height+(o.height-n.height)/2)]:[0,0]}}})),[]),(0,r.useMemo)((()=>(0,c._)(p)),[p])],{styles:v,attributes:w}=(0,a.D)(t,f,{strategy:"fixed",placement:"bottom",modifiers:g}),y=h?{width:`${h.width}px`,height:`${h.height}px`}:null,b=t?{style:{...y&&y,...null==v?void 0:v.popper,...n&&n},...null==w?void 0:w.popper}:null;return(0,r.useEffect)((()=>(null==t||t.classList.add(d),()=>{null==t||t.classList.remove(d)})),[t]),(0,r.createElement)(r.Fragment,null,(0,r.createElement)(l.l,i),(0,r.createElement)(u.Z,{visible:!b}),(0,r.createElement)("div",(0,o.Z)({className:s()("tour-kit-spotlight",{"is-visible":!!b}),ref:m},b)))}},301:function(e,t,n){"use strict";var o=n(9307),r=n(6951),i=n(2779),s=n.n(i),a=n(2036);t.Z=e=>{var t,n;let{config:i,steps:c,currentStepIndex:u,onMinimize:l,onDismiss:d,onNextStep:p,onPreviousStep:f,setInitialFocusedElement:m,onGoToStep:h}=e;const g=(0,r._z)(),v=s()("tour-kit-step",`is-step-${u}`,(0,a.s)(null===(t=i.steps[u].options)||void 0===t||null===(n=t.classNames)||void 0===n?void 0:n[g?"mobile":"desktop"]));return(0,o.createElement)("div",{className:v},(0,o.createElement)(i.renderers.tourStep,{steps:c,currentStepIndex:u,onDismiss:d,onNextStep:p,onPreviousStep:f,onMinimize:l,setInitialFocusedElement:m,onGoToStep:h}))}},2313:function(e,t,n){"use strict";var o=n(9307),r=(n(9196),n(1415)),i=n(9549),s=n(4065);n(6372);t.Z=e=>{var t;let{config:n,__temp__className:a}=e;const c=(0,o.useRef)(document.createElement("div")).current;return(0,o.useEffect)((()=>{var e;const t=["tour-kit",...a?[a]:[]];c.classList.add(...t);const o=(null===(e=n.options)||void 0===e?void 0:e.portalParentElement)||document.body;return o.appendChild(c),()=>{o.removeChild(c)}}),[a,c,null===(t=n.options)||void 0===t?void 0:t.portalParentElement]),(0,o.createElement)(r.Z,null,(0,o.createElement)(i.Z,{config:n},(0,o.createElement)("div",null,(0,o.createPortal)((0,o.createElement)(s.Z,{config:n}),c))))}},1415:function(e,t,n){"use strict";var o=n(6666),r=n(9307),i=n(9196),s=n.n(i);class a extends s().Component{constructor(){super(...arguments),(0,o.Z)(this,"state",{hasError:!1})}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(e,t){console.error(e,t)}render(){return this.state.hasError?(0,r.createElement)("h1",null,"Something went wrong."):this.props.children}}t.Z=a},7474:function(e,t,n){"use strict";var o=n(9307);t.Z=e=>{const[t,n]=(0,o.useState)(!1),r=(0,o.useCallback)((()=>{var t;document.hasFocus()&&null!==(t=e.current)&&void 0!==t&&t.contains(document.activeElement)?n(!0):n(!1)}),[e]),i=(0,o.useCallback)((t=>{var o;null!==(o=e.current)&&void 0!==o&&o.contains(t.target)?n(!0):n(!1)}),[e]),s=(0,o.useCallback)((t=>{var o;"Tab"===t.key&&(null!==(o=e.current)&&void 0!==o&&o.contains(t.target)?n(!0):n(!1))}),[e]);return(0,o.useEffect)((()=>(document.addEventListener("focusin",r),document.addEventListener("mousedown",i),document.addEventListener("keyup",s),()=>{document.removeEventListener("focusin",r),document.removeEventListener("mousedown",i),document.removeEventListener("keyup",s)})),[e,r,s,i]),t}},5386:function(e,t,n){"use strict";var o=n(5904),r=n(9307);t.Z=e=>{const[t,n]=(0,r.useState)(),[i,s]=(0,r.useState)(),a=(0,r.useCallback)((e=>{let n=!1;"Tab"===e.key&&(e.shiftKey?document.activeElement===t&&(null==i||i.focus(),n=!0):document.activeElement===i&&(null==t||t.focus(),n=!0)),n&&(e.preventDefault(),e.stopPropagation())}),[t,i]);(0,r.useEffect)((()=>{const t=e.current?o.focus.focusable.find(e.current):[];return t&&t.length&&(n(t[0]),s(t[t.length-1])),document.addEventListener("keydown",a),()=>{document.removeEventListener("keydown",a)}}),[e,a])}},9946:function(e,t,n){"use strict";var o=n(9307);t.Z=e=>{let{onEscape:t,onArrowRight:n,onArrowLeft:r}=e;const i=(0,o.useCallback)((e=>{let o=!1;switch(e.key){case"Escape":t&&(t(),o=!0);break;case"ArrowRight":n&&(n(),o=!0);break;case"ArrowLeft":r&&(r(),o=!0)}o&&(e.preventDefault(),e.stopPropagation())}),[t,n,r]);(0,o.useEffect)((()=>(document.addEventListener("keydown",i),()=>{document.removeEventListener("keydown",i)})),[i])}},9207:function(e,t,n){"use strict";var o=n(9307);t.Z=(e,t)=>{const[n,r]=(0,o.useState)([]);(0,o.useEffect)((()=>{n.includes(e)||(r((t=>[...t,e])),null==t||t(e))}),[e,t,n])}},2036:function(e,t,n){"use strict";n.d(t,{s:function(){return r},f:function(){return i}});var o=n(8049);function r(e){return null!=e&&e.length?e.toString().split(","):null}const i=n.n(o)()("tour-kit")},9351:function(e,t,n){"use strict";n.d(t,{_:function(){return r}});var o=n(2036);const r=function(){let{rootElementSelector:e,mutation:t=!1,resize:n=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{mutation:!1,resize:!1};return{name:"liveResizeModifier",enabled:!0,phase:"main",fn:()=>{},effect:r=>{try{const{state:i,instance:s}=r,a=Symbol(),{reference:c}=i.elements;if(c[a]={resizeObserver:new ResizeObserver((()=>{s.update()})),mutationObserver:new MutationObserver((()=>{s.update()}))},n&&(c instanceof Element?c[a].resizeObserver.observe(c):(0,o.f)("Error: ResizeObserver does not work with virtual elements, Tour Kit will not resize automatically if the size of the referenced element changes.")),t){const t=document.querySelector(e||"#wpwrap");t instanceof Element?c[a].mutationObserver.observe(t,{attributes:!0,characterData:!0,childList:!0,subtree:!0}):(0,o.f)(`Error: ${e} selector did not find a valid DOM element, Tour Kit will not update automatically if the DOM layout changes.`)}return()=>{c[a].resizeObserver.disconnect(),c[a].mutationObserver.disconnect(),delete c[a]}}catch(i){(0,o.f)("Error: Tour Kit live resize modifier failed unexpectedly:",i)}}}}},2639:function(e,t,n){"use strict";var o=n(9307),r=n(5609),i=n(5736),s=n(5869),a=n(8565),c=n(5885),u=n(9045);t.Z=e=>{let{steps:t,onMaximize:n,onDismiss:l,currentStepIndex:d}=e;const{__:__}=(0,c.QT)(),p=d+1,f=t.length-1+1;return(0,o.createElement)(r.Flex,{gap:0,className:"wpcom-tour-kit-minimized"},(0,o.createElement)(r.Button,{onClick:n,"aria-label":__("Resume Tour","full-site-editing")},(0,o.createElement)(r.Flex,{gap:13},(0,o.createElement)("p",null,(0,o.createInterpolateElement)((0,i.sprintf)(__("Resume tour <span>(%1$d/%2$d)</span>","full-site-editing"),p,f),{span:(0,o.createElement)("span",{className:"wpcom-tour-kit-minimized__tour-index"})})),(0,o.createElement)(s.Z,{icon:u.Z,size:24}))),(0,o.createElement)(r.Button,{onClick:l("close-btn-minimized"),"aria-label":__("Close Tour","full-site-editing")},(0,o.createElement)(s.Z,{icon:a.Z,size:24})))}},8428:function(e,t,n){"use strict";var o=n(9307),r=n(5609),i=n(5885),s=n(2779),a=n.n(s),c=n(9549),u=n(658),l=n(5168);t.Z=()=>{var e,t,n,s,d;const[p,f]=(0,o.useState)(),m=(0,c.S)().config,h=(null===(e=m.options)||void 0===e||null===(t=e.tourRating)||void 0===t||null===(n=t.useTourRating)||void 0===n?void 0:n.call(t))??p,{__:__}=(0,i.QT)();let g=!1;if(null===(s=m.options)||void 0===s||null===(d=s.tourRating)||void 0===d||!d.enabled)return null;g||void 0===p||(g=!0);const v=e=>{if(g)return;const t=e?"thumbs-up":"thumbs-down";var n,o,r;t!==h&&(g=!0,f(t),null===(n=m.options)||void 0===n||null===(o=n.tourRating)||void 0===o||null===(r=o.onTourRate)||void 0===r||r.call(o,t))};return(0,o.createElement)(o.Fragment,null,(0,o.createElement)("p",{className:"wpcom-tour-kit-rating__end-text"},__("Did you find this guide helpful?","full-site-editing")),(0,o.createElement)("div",null,(0,o.createElement)(r.Button,{"aria-label":__("Rate thumbs up","full-site-editing"),className:a()("wpcom-tour-kit-rating__end-icon",{active:"thumbs-up"===h}),disabled:g,icon:l.Z,onClick:()=>v(!0),iconSize:24}),(0,o.createElement)(r.Button,{"aria-label":__("Rate thumbs down","full-site-editing"),className:a()("wpcom-tour-kit-rating__end-icon",{active:"thumbs-down"===h}),disabled:g,icon:u.Z,onClick:()=>v(!1),iconSize:24})))}},6827:function(e,t,n){"use strict";var o=n(9307),r=n(3668),i=n(5609),s=n(5885);t.Z=e=>{let{currentStepIndex:t,onDismiss:n,onGoToStep:a,onNextStep:c,onPreviousStep:u,setInitialFocusedElement:l,steps:d}=e;const{__:__}=(0,s.QT)(),p=0===t,f=d.length-1;return(0,o.createElement)(o.Fragment,null,(0,o.createElement)(r.Z,{activePageIndex:t,numberOfPages:f+1,onChange:a},p?(0,o.createElement)("div",null,(0,o.createElement)(i.Button,{isTertiary:!0,onClick:n("no-thanks-btn")},__("Skip","full-site-editing")),(0,o.createElement)(i.Button,{className:"wpcom-tour-kit-step-card-navigation__next-btn",isPrimary:!0,onClick:c,ref:l},__("Try it out!","full-site-editing"))):(0,o.createElement)("div",null,(0,o.createElement)(i.Button,{isTertiary:!0,onClick:u},__("Back","full-site-editing")),(0,o.createElement)(i.Button,{className:"wpcom-tour-kit-step-card-navigation__next-btn",isPrimary:!0,onClick:c,ref:l},__("Next","full-site-editing")))))}},7208:function(e,t,n){"use strict";var o=n(9307),r=n(5609),i=n(8565),s=n(5885),a=n(6920);t.Z=e=>{let{onMinimize:t,onDismiss:n}=e;const{__:__}=(0,s.QT)();return(0,o.createElement)("div",{className:"wpcom-tour-kit-step-card-overlay-controls"},(0,o.createElement)(r.Flex,null,(0,o.createElement)(r.Button,{label:__("Minimize Tour","full-site-editing"),isPrimary:!0,className:"wpcom-tour-kit-step-card-overlay-controls__minimize-icon",icon:a.Z,iconSize:24,onClick:t}),(0,o.createElement)(r.Button,{label:__("Close Tour","full-site-editing"),isPrimary:!0,icon:i.Z,iconSize:24,onClick:n("close-btn")})))}},809:function(e,t,n){"use strict";var o=n(9307),r=n(9321),i=n(5609),s=n(5885),a=n(8428),c=n(6827),u=n(7208);t.Z=e=>{var t;let{steps:n,currentStepIndex:l,onMinimize:d,onDismiss:p,onGoToStep:f,onNextStep:m,onPreviousStep:h,setInitialFocusedElement:g}=e;const{__:__}=(0,s.QT)(),v=n.length-1,{descriptions:w,heading:y,imgSrc:b}=n[l].meta,_=l===v,E=w[(0,r.tq)()?"mobile":"desktop"]??w.desktop,k=(0,r.O9)(r.Gh);return(0,o.createElement)(i.Card,{className:"wpcom-tour-kit-step-card",isElevated:!0},(0,o.createElement)(u.Z,{onDismiss:p,onMinimize:d}),b&&(0,o.createElement)(i.CardMedia,{className:"wpcom-tour-kit-step-card__media"},(0,o.createElement)("picture",null,b.mobile&&(0,o.createElement)("source",{srcSet:b.mobile.src,type:b.mobile.type,media:null==k?void 0:k.media}),(0,o.createElement)("img",{alt:__("Tour Media","full-site-editing"),src:null===(t=b.desktop)||void 0===t?void 0:t.src}))),(0,o.createElement)(i.CardBody,null,(0,o.createElement)("h2",{className:"wpcom-tour-kit-step-card__heading"},y),(0,o.createElement)("p",{className:"wpcom-tour-kit-step-card__description"},E,_?(0,o.createElement)(i.Button,{className:"wpcom-tour-kit-step-card__description",isTertiary:!0,onClick:()=>f(0),ref:g},__("Restart tour","full-site-editing")):null)),(0,o.createElement)(i.CardFooter,null,_?(0,o.createElement)(a.Z,null):(0,o.createElement)(c.Z,{currentStepIndex:l,onDismiss:p,onGoToStep:f,onNextStep:m,onPreviousStep:h,setInitialFocusedElement:g,steps:n})))}},825:function(e,t,n){"use strict";var o=n(9307),r=n(809);t.Z=e=>{let{steps:t,currentStepIndex:n,onDismiss:i,onNextStep:s,onPreviousStep:a,onMinimize:c,setInitialFocusedElement:u,onGoToStep:l}=e;return(0,o.createElement)(r.Z,{steps:t,currentStepIndex:n,onDismiss:i,onMinimize:c,onGoToStep:l,onNextStep:s,onPreviousStep:a,setInitialFocusedElement:u})}},8038:function(e,t,n){"use strict";var o=n(9307),r=n(2313),i=n(5585),s=n(2639),a=n(825);n(4422);t.Z=e=>{let{config:t}=e;return(0,i.Z)(t.steps),(0,o.createElement)(r.Z,{__temp__className:"wpcom-tour-kit",config:{...t,renderers:{tourStep:a.Z,tourMinimized:s.Z}}})}},5585:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});var o=n(9307);function r(e){(0,o.useEffect)((()=>{e.forEach((e=>{var t,n;(null===(t=e.meta.imgSrc)||void 0===t?void 0:t.mobile)&&((new window.Image).src=e.meta.imgSrc.mobile.src),(null===(n=e.meta.imgSrc)||void 0===n?void 0:n.desktop)&&((new window.Image).src=e.meta.imgSrc.desktop.src)}))}),[e])}},9045:function(e,t,n){"use strict";var o=n(9307),r=n(444);const i=(0,o.createElement)(r.SVG,{width:"24",height:"24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,o.createElement)(r.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M14.086 5.412l3.476-.015c-.627.625-1.225 1.22-1.82 1.81l-.03.031c-.977.971-1.944 1.934-3.015 3.004l1.06 1.061c1.07-1.07 2.036-2.03 3.013-3.002l.03-.03 1.817-1.808-.03 3.448 1.5.013.046-5.28.007-.759-.76.003-5.301.024.007 1.5zM9.914 18.587l-3.476.016c.627-.625 1.225-1.22 1.82-1.81l.03-.031c.977-.971 1.944-1.934 3.015-3.004l-1.06-1.061c-1.07 1.069-2.036 2.03-3.012 3.001l-.001.001-.03.03-1.817 1.808.03-3.448-1.5-.013-.046 5.279-.007.76.76-.003 5.301-.024-.007-1.5z"}));t.Z=i},6920:function(e,t,n){"use strict";var o=n(9307),r=n(444);const i=(0,o.createElement)(r.SVG,{width:"24",height:"24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,o.createElement)(r.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M18.514 9.988l-3.476.016c.627-.626 1.225-1.22 1.82-1.811l.03-.03v-.001c.977-.971 1.944-1.933 3.015-3.004l-1.06-1.06c-1.07 1.069-2.037 2.03-3.013 3.001l-.03.03-1.818 1.809.03-3.449-1.5-.013-.045 5.28-.007.76.76-.004 5.301-.024-.007-1.5zM5.486 14.012l3.477-.016-1.82 1.811-.03.03c-.977.972-1.945 1.934-3.015 3.005l1.06 1.06c1.07-1.068 2.035-2.03 3.012-3V16.9l.03-.03 1.818-1.809-.03 3.449 1.5.013.046-5.28.006-.76-.76.004-5.3.024.006 1.5z",fill:"#fff"}));t.Z=i},658:function(e,t,n){"use strict";var o=n(9307),r=n(444);const i=(0,o.createElement)(r.SVG,{width:"24",height:"24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,o.createElement)(r.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M13.131 19.12a.667.667 0 001.227-.417l-.436-4.989h3.88c.954 0 1.64-.916 1.37-1.831L17.42 5.919a.286.286 0 00-.274-.205H9.429v7.588l3.702 5.818zm-5.417-5.977V5.714h-2v7.429h2zm5.98 8a2.381 2.381 0 01-2.01-1.103l-3.297-5.183H4V4h13.145a2 2 0 011.919 1.436l1.753 5.963a3.143 3.143 0 01-3.015 4.03h-2.01l.274 3.125a2.381 2.381 0 01-2.372 2.589z",fill:"#000"}));t.Z=i},5168:function(e,t,n){"use strict";var o=n(9307),r=n(444);const i=(0,o.createElement)(r.SVG,{width:"24",height:"24",fill:"none",xmlns:"http://www.w3.org/2000/SVG"},(0,o.createElement)(r.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M13.131 4.023a.667.667 0 011.227.416l-.436 4.99h3.88c.954 0 1.64.916 1.37 1.831l-1.753 5.963a.286.286 0 01-.274.206H9.429V9.84l3.702-5.818zM7.714 10v7.428h-2V10h2zm5.98-8c-.814 0-1.572.416-2.01 1.103L8.388 8.286H4v10.857h13.145a2 2 0 001.919-1.436l1.753-5.963a3.143 3.143 0 00-3.015-4.03h-2.01l.274-3.125A2.381 2.381 0 0013.694 2z",fill:"#000"}));t.Z=i},6951:function(e,t,n){"use strict";n.d(t,{_z:function(){return u}});var o=n(7896),r=n(9307),i=n(9321),s=n(4333),a=n(9196);function c(e){const[t,n]=(0,a.useState)((()=>({isActive:(0,i.kV)(e),breakpoint:e})));return(0,a.useEffect)((()=>(0,i.Sp)(e,(function(t){n((n=>n.isActive===t&&n.breakpoint===e?n:{isActive:t,breakpoint:e}))}))),[e]),e===t.breakpoint?t.isActive:(0,i.kV)(e)}function u(){return c(i.Gh)}(0,s.createHigherOrderComponent)((e=>(0,a.forwardRef)(((t,n)=>{const s=c(i.Gh);return(0,r.createElement)(e,(0,o.Z)({},t,{isBreakpointActive:s,ref:n}))}))),"WithMobileBreakpoint"),(0,s.createHigherOrderComponent)((e=>(0,a.forwardRef)(((t,n)=>{const s=c(i.oh);return(0,r.createElement)(e,(0,o.Z)({},t,{isBreakpointActive:s,ref:n}))}))),"WithDesktopBreakpoint")},9321:function(e,t,n){"use strict";n.d(t,{Gh:function(){return r},oh:function(){return i},O9:function(){return d},kV:function(){return p},Sp:function(){return f},tq:function(){return m}});const o=769,r="<480px",i=">960px",s="undefined"==typeof window||!window.matchMedia,a=()=>null;function c(e){return{addListener:()=>{},removeListener:()=>{},...e}}function u(e){const{min:t,max:n}=e??{};return void 0!==t&&void 0!==n?s?c({matches:o>t&&o<=n}):window.matchMedia(`(min-width: ${t+1}px) and (max-width: ${n}px)`):void 0!==t?s?c({matches:o>t}):window.matchMedia(`(min-width: ${t+1}px)`):void 0!==n&&(s?c({matches:o<=n}):window.matchMedia(`(max-width: ${n}px)`))}const l={"<480px":u({max:480}),"<660px":u({max:660}),"<782px":u({max:782}),"<800px":u({max:800}),"<960px":u({max:960}),"<1040px":u({max:1040}),"<1280px":u({max:1280}),"<1400px":u({max:1400}),">480px":u({min:480}),">660px":u({min:660}),">782px":u({min:782}),">800px":u({min:800}),">960px":u({min:960}),">1040px":u({min:1040}),">1280px":u({min:1280}),">1400px":u({min:1400}),"480px-660px":u({min:480,max:660}),"660px-960px":u({min:660,max:960}),"480px-960px":u({min:480,max:960})};function d(e){if(l.hasOwnProperty(e))return l[e];try{console.warn("Undefined breakpoint used in `mobile-first-breakpoint`",e)}catch(t){}}function p(e){const t=d(e);return t?t.matches:void 0}function f(e,t){if(!t)return a;const n=d(e);if(n&&!s){const e=e=>t(e.matches);return n.addListener(e),()=>n.removeListener(e)}return a}function m(){return p(r)}},8552:function(e,t,n){"use strict";var o=n(8049),r=n.n(o),i=n(8650),s=n.n(i),a=n(8767),c=n(2884),u=n.n(c);const l=r()("wpcom-proxy-request"),d="https://public-api.wordpress.com",p=window.location.protocol+"//"+window.location.host;let f=null;const m=(()=>{let e=!1;try{window.postMessage({toString:function(){e=!0}},"*")}catch(t){}return e})(),h=(()=>{try{return new window.File(["a"],"test.jpg",{type:"image/jpeg"}),!0}catch(e){return!1}})();let g,v=null,w=!1;const y={},b=!!window.ProgressEvent&&!!window.FormData;l('using "origin": %o',p);const _=(e,t)=>{const n=Object.assign({},e);l("request(%o)",n),v||Z();const o=(0,a.Z)();n.callback=o,n.supports_args=!0,n.supports_error_obj=!0,n.supports_progress=b,n.method=String(n.method||"GET").toUpperCase(),l("params object: %o",n);const r=new window.XMLHttpRequest;if(r.params=n,y[o]=r,"function"==typeof t){let e=!1;const n=n=>{if(e)return;e=!0;const o=n.response||r.response;l("body: ",o),l("headers: ",n.headers),t(null,o,n.headers)},o=n=>{if(e)return;e=!0;const o=n.error||n.err||n;l("error: ",o),l("headers: ",n.headers),t(o,null,n.headers)};r.addEventListener("load",n),r.addEventListener("abort",o),r.addEventListener("error",o)}return"function"==typeof n.onStreamRecord&&(f=n.onStreamRecord,delete n.onStreamRecord),w?k(n):(l("buffering API request since proxying <iframe> is not yet loaded"),g.push(n)),r},E=(e,t)=>"function"==typeof t?_(e,t):new Promise(((t,n)=>{_(e,((e,o)=>{e?n(e):t(o)}))}));function k(e){l("sending API request to proxy <iframe> %o",e),e.formData&&function(e){if(!window.chrome||!h)return;for(let t=0;t<e.length;t++){const n=S(e[t][1]);n&&(e[t][1]=new window.File([n],n.name,{type:n.type}))}}(e.formData),v.contentWindow.postMessage(m?JSON.stringify(e):e,d)}function x(e){return e&&"[object File]"===Object.prototype.toString.call(e)}function S(e){return x(e)?e:"object"==typeof e&&x(e.fileContents)?e.fileContents:null}function Z(){l("install()"),v&&(l("uninstall()"),window.removeEventListener("message",C),document.body.removeChild(v),w=!1,v=null),g=[],window.addEventListener("message",C),v=document.createElement("iframe"),v.src=d+"/wp-admin/rest-proxy/?v=2.0#"+p,v.style.display="none",document.body.appendChild(v)}function C(e){if(l("onmessage"),e.origin!==d)return void l("ignoring message... %o !== %o",e.origin,d);if(e.source!==v.contentWindow)return void l("ignoring message... iframe elements do not match");let{data:t}=e;if(!t)return l("no `data`, bailing");if("ready"===t)return void function(){if(l('proxy <iframe> "load" event'),w=!0,g){for(let e=0;e<g.length;e++)k(g[e]);g=null}}();if(m&&"string"==typeof t&&(t=JSON.parse(t)),t.upload||t.download)return function(e){l('got "progress" event: %o',e);const t=y[e.callbackId];if(t){const n=new(s())("progress",e);(e.upload?t.upload:t).dispatchEvent(n)}}(t);if(!t.length)return l("`e.data` doesn't appear to be an Array, bailing...");const n=t[t.length-1];if(!(n in y))return l("bailing, no matching request with callback: %o",n);const o=y[n],{params:r}=o,i=t[0];let a=t[1];const c=t[2];var p;if(207===a||delete y[n],r.metaAPI?a="metaAPIupdated"===i?200:500:l("got %o status code for URL: %o",a,r.path),"object"==typeof c&&(c.status=a,p=c["Content-Type"],/^application[/]x-ndjson($|;)/.test(p)&&207===a))f(i);else if(a&&2===Math.floor(a/100))!function(e,t,n){const o=new(s())("load");o.data=o.body=o.response=t,o.headers=n,e.dispatchEvent(o)}(o,i,c);else{!function(e,t,n){const o=new(s())("error");o.error=o.err=t,o.headers=n,e.dispatchEvent(o)}(o,u()(r,a,i),c)}}t.ZP=E},8049:function(e,t,n){t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const n="color: "+this.color;t.splice(1,0,n,"color: inherit");let o=0,r=0;t[0].replace(/%[a-zA-Z%]/g,(e=>{"%%"!==e&&(o++,"%c"===e&&(r=o))})),t.splice(r,0,n)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(n){}},t.load=function(){let e;try{e=t.storage.getItem("debug")}catch(n){}!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG);return e},t.useColors=function(){if("undefined"!=typeof window&&window.process&&("renderer"===window.process.type||window.process.__nwjs))return!0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage=function(){try{return localStorage}catch(e){}}(),t.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||(()=>{}),e.exports=n(2632)(t);const{formatters:o}=e.exports;o.j=function(e){try{return JSON.stringify(e)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}}},2632:function(e,t,n){e.exports=function(e){function t(e){let n,r,i,s=null;function a(){for(var e=arguments.length,o=new Array(e),r=0;r<e;r++)o[r]=arguments[r];if(!a.enabled)return;const i=a,s=Number(new Date),c=s-(n||s);i.diff=c,i.prev=n,i.curr=s,n=s,o[0]=t.coerce(o[0]),"string"!=typeof o[0]&&o.unshift("%O");let u=0;o[0]=o[0].replace(/%([a-zA-Z%])/g,((e,n)=>{if("%%"===e)return"%";u++;const r=t.formatters[n];if("function"==typeof r){const t=o[u];e=r.call(i,t),o.splice(u,1),u--}return e})),t.formatArgs.call(i,o);const l=i.log||t.log;l.apply(i,o)}return a.namespace=e,a.useColors=t.useColors(),a.color=t.selectColor(e),a.extend=o,a.destroy=t.destroy,Object.defineProperty(a,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==s?s:(r!==t.namespaces&&(r=t.namespaces,i=t.enabled(e)),i),set:e=>{s=e}}),"function"==typeof t.init&&t.init(a),a}function o(e,n){const o=t(this.namespace+(void 0===n?":":n)+e);return o.log=this.log,o}function r(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return t.debug=t,t.default=t,t.coerce=function(e){if(e instanceof Error)return e.stack||e.message;return e},t.disable=function(){const e=[...t.names.map(r),...t.skips.map(r).map((e=>"-"+e))].join(",");return t.enable(""),e},t.enable=function(e){let n;t.save(e),t.namespaces=e,t.names=[],t.skips=[];const o=("string"==typeof e?e:"").split(/[\s,]+/),r=o.length;for(n=0;n<r;n++)o[n]&&("-"===(e=o[n].replace(/\*/g,".*?"))[0]?t.skips.push(new RegExp("^"+e.slice(1)+"$")):t.names.push(new RegExp("^"+e+"$")))},t.enabled=function(e){if("*"===e[e.length-1])return!0;let n,o;for(n=0,o=t.skips.length;n<o;n++)if(t.skips[n].test(e))return!1;for(n=0,o=t.names.length;n<o;n++)if(t.names[n].test(e))return!0;return!1},t.humanize=n(5881),t.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(e).forEach((n=>{t[n]=e[n]})),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let n=0;for(let t=0;t<e.length;t++)n=(n<<5)-n+e.charCodeAt(t),n|=0;return t.colors[Math.abs(n)%t.colors.length]},t.enable(t.load()),t}},3830:function(e,t,n){"use strict";var o=n(956);e.exports=function(){var e=o.apply(o,arguments);return e.charAt(0).toUpperCase()+e.slice(1)}},956:function(e){"use strict";e.exports=function(){var e=[].map.call(arguments,(function(e){return e.trim()})).filter((function(e){return e.length})).join("-");return e.length?1!==e.length&&/[_.\- ]+/.test(e)?e.replace(/^[_.\- ]+/,"").toLowerCase().replace(/[_.\- ]+(\w|$)/g,(function(e,t){return t.toUpperCase()})):e[0]===e[0].toLowerCase()&&e.slice(1)!==e.slice(1).toLowerCase()?e:e.toLowerCase():""}},2686:function(e,t){"use strict";t.Z=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i},5302:function(e,t,n){"use strict";var o;n.d(t,{Z:function(){return i}});var r=new Uint8Array(16);function i(){if(!o&&!(o="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return o(r)}},708:function(e,t,n){"use strict";for(var o=n(6525),r=[],i=0;i<256;++i)r.push((i+256).toString(16).substr(1));t.Z=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(r[e[t+0]]+r[e[t+1]]+r[e[t+2]]+r[e[t+3]]+"-"+r[e[t+4]]+r[e[t+5]]+"-"+r[e[t+6]]+r[e[t+7]]+"-"+r[e[t+8]]+r[e[t+9]]+"-"+r[e[t+10]]+r[e[t+11]]+r[e[t+12]]+r[e[t+13]]+r[e[t+14]]+r[e[t+15]]).toLowerCase();if(!(0,o.Z)(n))throw TypeError("Stringified UUID is invalid");return n}},8767:function(e,t,n){"use strict";var o=n(5302),r=n(708);t.Z=function(e,t,n){var i=(e=e||{}).random||(e.rng||o.Z)();if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,t){n=n||0;for(var s=0;s<16;++s)t[n+s]=i[s];return t}return(0,r.Z)(i)}},6525:function(e,t,n){"use strict";var o=n(2686);t.Z=function(e){return"string"==typeof e&&o.Z.test(e)}},2884:function(e,t,n){var o=n(3830),r=n(6744);function i(e,t){if(t)if("number"==typeof t)s(e,t);else{t.status_code&&s(e,t.status_code),t.error&&(e.name=c(t.error)),t.error_description&&(e.message=t.error_description);var n=t.errors;if(n)i(e,n.length?n[0]:n);for(var o in t)e[o]=t[o];e.status&&(t.method||t.path)&&a(e)}}function s(e,t){e.name=c(r[t]),e.status=e.statusCode=t,a(e)}function a(e){var t=e.status,n=e.method,o=e.path,r=t+" status code",i=n||o;i&&(r+=' for "'),n&&(r+=n),i&&(r+=" "),o&&(r+=o),i&&(r+='"'),e.message=r}function c(e){return o(String(e).replace(/error$/i,""),"error")}e.exports=function e(){for(var t=new Error,n=0;n<arguments.length;n++)i(t,arguments[n]);"function"==typeof Error.captureStackTrace&&Error.captureStackTrace(t,e);return t}},3790:function(e,t,n){"use strict";e.exports=n.p+"images/draft-post-19715e868be3c82bb350.svg"},5275:function(e,t,n){"use strict";e.exports=n.p+"images/post-published-ca9ddfc04a7c889a72d2.svg"},4242:function(e,t,n){"use strict";e.exports=n.p+"images/product-published-f8461fe85ee7eb5713c8.svg"},9711:function(e,t,n){"use strict";e.exports=n.p+"images/block-picker-baad989c3eaa6c60cc56.svg"},6595:function(e,t,n){"use strict";e.exports=n.p+"images/editor-a1965f46cfb792664a14.svg"},5486:function(e,t,n){"use strict";e.exports=n.p+"images/preview-a3fa241fd59995b1fc42.svg"},7821:function(e,t,n){"use strict";e.exports=n.p+"images/private-761a5407869f32039248.svg"},9196:function(e){"use strict";e.exports=window.React},3288:function(e){"use strict";e.exports=window["a8c-fse-common-data-stores"]},2819:function(e){"use strict";e.exports=window.lodash},6989:function(e){"use strict";e.exports=window.wp.apiFetch},5609:function(e){"use strict";e.exports=window.wp.components},4333:function(e){"use strict";e.exports=window.wp.compose},9818:function(e){"use strict";e.exports=window.wp.data},3418:function(e){"use strict";e.exports=window.wp.dataControls},5904:function(e){"use strict";e.exports=window.wp.dom},9307:function(e){"use strict";e.exports=window.wp.element},2694:function(e){"use strict";e.exports=window.wp.hooks},5736:function(e){"use strict";e.exports=window.wp.i18n},3961:function(e){"use strict";e.exports=window.wp.notices},462:function(e){"use strict";e.exports=window.wp.nux},8817:function(e){"use strict";e.exports=window.wp.plugins},444:function(e){"use strict";e.exports=window.wp.primitives},6483:function(e){"use strict";e.exports=window.wp.url},6666:function(e,t,n){"use strict";function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,{Z:function(){return o}})},7896:function(e,t,n){"use strict";function o(){return o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},o.apply(this,arguments)}n.d(t,{Z:function(){return o}})}},t={};function n(o){var r=t[o];if(void 0!==r)return r.exports;var i=t[o]={exports:{}};return e[o](i,i.exports,n),i.exports}n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},function(){var e;n.g.importScripts&&(e=n.g.location+"");var t=n.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var o=t.getElementsByTagName("script");o.length&&(e=o[o.length-1].src)}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),n.p=e}();var o={};!function(){"use strict";n.r(o);var e=n(1970);n(1568),n(7869);(0,e.z2)()}(),window.EditingToolkit=o}();
|
15 |
//# sourceMappingURL=wpcom-block-editor-nux.min.js.map
|
wpcom-block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oB90B,EAAEkJ,SAAW,IACtF,IAAI3pB,EAAWu1C,EAAoB90B,EAAEzgB,SACrC,IAAKi2C,GAAaj2C,IACbA,EAASm2C,gBACZF,EAAYj2C,EAASm2C,cAActoB,MAC/BooB,GAAW,CACf,IAAIG,EAAUp2C,EAASq2C,qBAAqB,UACzCD,EAAQ59C,SAAQy9C,EAAYG,EAAQA,EAAQ59C,OAAS,GAAGq1B,KAK7D,IAAKooB,EAAW,MAAM,IAAI/9B,MAAM,yDAChC+9B,EAAYA,EAAUplC,QAAQ,OAAQ,IAAIA,QAAQ,QAAS,IAAIA,QAAQ,YAAa,KACpF0kC,EAAoBl0B,EAAI40B,E,2ECVxBxjB,EAAAA,EAAAA,M","sources":["webpack://EditingToolkit/../../node_modules/@popperjs/core/lib/createPopper.js","webpack://EditingToolkit/../../node_modules/@popperjs/core/lib/dom-utils/contains.js","webpack://EditingToolkit/../../node_modules/@popperjs/core/lib/dom-utils/getBoundingClientRect.js","webpack://EditingToolkit/../../node_modules/@popperjs/core/lib/dom-utils/getClippingRect.js","webpack://EditingToolkit/../../node_modules/@popperjs/core/lib/dom-utils/getCompositeRect.js","webpack://EditingToolkit/../../node_modules/@popperjs/core/lib/dom-utils/getComputedStyle.js","webpack://EditingToolkit/../../node_modules/@popperjs/core/lib/dom-utils/getDocumentElement.js","webpack://EditingToolkit/../../node_modules/@popperjs/core/lib/dom-utils/getDocumentRect.js","webpack://EditingToolkit/../../node_modules/@popperjs/core/lib/dom-utils/getHTMLElementScroll.js","webpack://EditingToolkit/../../node_modules/@popperjs/core/lib/dom-utils/getLayoutRect.js","webpack://EditingToolkit/../../node_modules/@popperjs/core/lib/dom-utils/getNodeName.js","webpack://EditingToolkit/../../node_modules/@popperjs/core/lib/dom-utils/getNodeScroll.js","webpack://EditingToolkit/../../node_modules/@popperjs/core/lib/dom-utils/getOffsetParent.js","webpack://EditingToolkit/../../node_modules/@popperjs/core/lib/dom-utils/getParentNode.js","webpack://EditingToolkit/../../node_modules/@popperjs/core/lib/dom-utils/getScrollParent.js","webpack://EditingToolkit/../../node_modules/@popperjs/core/lib/dom-utils/getViewportRect.js","webpack://EditingToolkit/../../node_modules/@popperjs/core/lib/dom-utils/getWindow.js","webpack://EditingToolkit/../../node_modules/@popperjs/core/lib/dom-utils/getWindowScroll.js","webpack://EditingToolkit/../../node_modules/@popperjs/core/lib/dom-utils/getWindowScrollBarX.js","webpack://EditingToolkit/../../node_modules/@popperjs/core/lib/dom-utils/instanceOf.js","webpack://EditingToolkit/../../node_modules/@popperjs/core/lib/dom-utils/isScrollParent.js","webpack://EditingToolkit/../../node_modules/@popperjs/core/lib/dom-utils/isTableElement.js","webpack://EditingToolkit/../../node_modules/@popperjs/core/lib/dom-utils/listScrollParents.js","webpack://EditingToolkit/../../node_modules/@popperjs/core/lib/enums.js","webpack://EditingToolkit/../../node_modules/@popperjs/core/lib/modifiers/applyStyles.js","webpack://EditingToolkit/../../node_modules/@popperjs/core/lib/modifiers/arrow.js","webpack://EditingToolkit/../../node_modules/@popperjs/core/lib/modifiers/computeStyles.js","webpack://EditingToolkit/../../node_modules/@popperjs/core/lib/modifiers/eventListeners.js","webpack://EditingToolkit/../../node_modules/@popperjs/core/lib/modifiers/flip.js","webpack://EditingToolkit/../../node_modules/@popperjs/core/lib/modifiers/hide.js","webpack://EditingToolkit/../../node_modules/@popperjs/core/lib/modifiers/offset.js","webpack://EditingToolkit/../../node_modules/@popperjs/core/lib/modifiers/popperOffsets.js","webpack://EditingToolkit/../../node_modules/@popperjs/core/lib/modifiers/preventOverflow.js","webpack://EditingToolkit/../../node_modules/@popperjs/core/lib/popper.js","webpack://EditingToolkit/../../node_modules/@popperjs/core/lib/utils/computeAutoPlacement.js","webpack://EditingToolkit/../../node_modules/@popperjs/core/lib/utils/computeOffsets.js","webpack://EditingToolkit/../../node_modules/@popperjs/core/lib/utils/debounce.js","webpack://EditingToolkit/../../node_modules/@popperjs/core/lib/utils/detectOverflow.js","webpack://EditingToolkit/../../node_modules/@popperjs/core/lib/utils/expandToHashMap.js","webpack://EditingToolkit/../../node_modules/@popperjs/core/lib/utils/getAltAxis.js","webpack://EditingToolkit/../../node_modules/@popperjs/core/lib/utils/getBasePlacement.js","webpack://EditingToolkit/../../node_modules/@popperjs/core/lib/utils/getFreshSideObject.js","webpack://EditingToolkit/../../node_modules/@popperjs/core/lib/utils/getMainAxisFromPlacement.js","webpack://EditingToolkit/../../node_modules/@popperjs/core/lib/utils/getOppositePlacement.js","webpack://EditingToolkit/../../node_modules/@popperjs/core/lib/utils/getOppositeVariationPlacement.js","webpack://EditingToolkit/../../node_modules/@popperjs/core/lib/utils/getVariation.js","webpack://EditingToolkit/../../node_modules/@popperjs/core/lib/utils/math.js","webpack://EditingToolkit/../../node_modules/@popperjs/core/lib/utils/mergeByName.js","webpack://EditingToolkit/../../node_modules/@popperjs/core/lib/utils/mergePaddingObject.js","webpack://EditingToolkit/../../node_modules/@popperjs/core/lib/utils/orderModifiers.js","webpack://EditingToolkit/../../node_modules/@popperjs/core/lib/utils/rectToClientRect.js","webpack://EditingToolkit/../../node_modules/@popperjs/core/lib/utils/within.js","webpack://EditingToolkit/../../node_modules/@tannin/compile/index.js","webpack://EditingToolkit/../../node_modules/@tannin/evaluate/index.js","webpack://EditingToolkit/../../node_modules/@tannin/plural-forms/index.js","webpack://EditingToolkit/../../node_modules/@tannin/postfix/index.js","webpack://EditingToolkit/../../node_modules/@tannin/sprintf/index.js","webpack://EditingToolkit/../../node_modules/@wordpress/icons/build-module/icon/index.js","webpack://EditingToolkit/../../node_modules/@wordpress/icons/build-module/library/close.js","webpack://EditingToolkit/../../node_modules/@wordpress/react-i18n/build-module/index.js","webpack://EditingToolkit/../../node_modules/builtin-status-codes/browser.js","webpack://EditingToolkit/../../node_modules/classnames/index.js","webpack://EditingToolkit/../../node_modules/cookie/index.js","webpack://EditingToolkit/../../node_modules/debug/node_modules/ms/index.js","webpack://EditingToolkit/../../node_modules/events/events.js","webpack://EditingToolkit/../../node_modules/hash.js/lib/hash/common.js","webpack://EditingToolkit/../../node_modules/hash.js/lib/hash/sha/1.js","webpack://EditingToolkit/../../node_modules/hash.js/lib/hash/sha/256.js","webpack://EditingToolkit/../../node_modules/hash.js/lib/hash/sha/common.js","webpack://EditingToolkit/../../node_modules/hash.js/lib/hash/utils.js","webpack://EditingToolkit/../../node_modules/inherits/inherits_browser.js","webpack://EditingToolkit/../../node_modules/lru/index.js","webpack://EditingToolkit/../../node_modules/minimalistic-assert/index.js","webpack://EditingToolkit/../../node_modules/progress-event/index.js","webpack://EditingToolkit/../../node_modules/react-fast-compare/index.js","webpack://EditingToolkit/../../node_modules/react-popper/lib/esm/usePopper.js","webpack://EditingToolkit/../../node_modules/react-popper/lib/esm/utils.js","webpack://EditingToolkit/../../node_modules/tannin/index.js","webpack://EditingToolkit/./editing-toolkit-plugin/dotcom-fse/lib/seller-celebration-modal/use-has-seen-seller-celebration-modal.js","webpack://EditingToolkit/./editing-toolkit-plugin/dotcom-fse/lib/site-intent/use-site-intent.js","webpack://EditingToolkit/./editing-toolkit-plugin/dotcom-fse/lib/site-plan/use-site-plan.ts","webpack://EditingToolkit/./editing-toolkit-plugin/wpcom-block-editor-nux/src/block-editor-nux.js","webpack://EditingToolkit/./editing-toolkit-plugin/wpcom-block-editor-nux/src/disable-core-nux.js","webpack://EditingToolkit/./editing-toolkit-plugin/wpcom-block-editor-nux/src/draft-post-modal/index.js","webpack://EditingToolkit/./editing-toolkit-plugin/wpcom-block-editor-nux/src/nux-modal/index.tsx","webpack://EditingToolkit/./editing-toolkit-plugin/wpcom-block-editor-nux/src/post-published-modal/index.tsx","webpack://EditingToolkit/./editing-toolkit-plugin/wpcom-block-editor-nux/src/public-path.js","webpack://EditingToolkit/./editing-toolkit-plugin/wpcom-block-editor-nux/src/purchase-notice/index.jsx","webpack://EditingToolkit/./editing-toolkit-plugin/wpcom-block-editor-nux/src/seller-celebration-modal/index.jsx","webpack://EditingToolkit/./editing-toolkit-plugin/wpcom-block-editor-nux/src/store.js","webpack://EditingToolkit/./editing-toolkit-plugin/wpcom-block-editor-nux/src/welcome-modal/wpcom-nux.js","webpack://EditingToolkit/./editing-toolkit-plugin/wpcom-block-editor-nux/src/welcome-tour/tour-launch.tsx","webpack://EditingToolkit/./editing-toolkit-plugin/wpcom-block-editor-nux/src/welcome-tour/tour-steps.tsx","webpack://EditingToolkit/../../packages/calypso-analytics/src/page-view-params.ts","webpack://EditingToolkit/../../packages/calypso-analytics/src/tracks.ts","webpack://EditingToolkit/../../packages/calypso-analytics/src/utils/debug.ts","webpack://EditingToolkit/../../packages/components/src/pagination-control/index.tsx","webpack://EditingToolkit/../../packages/i18n-calypso/src/default-i18n.js","webpack://EditingToolkit/../../packages/i18n-calypso/src/i18n.js","webpack://EditingToolkit/../../packages/i18n-calypso/src/index.js","webpack://EditingToolkit/../../packages/i18n-calypso/src/number-format.js","webpack://EditingToolkit/../../packages/i18n-utils/src/locale-context.tsx","webpack://EditingToolkit/../../packages/i18n-utils/src/locales.ts","webpack://EditingToolkit/../../packages/i18n-utils/src/localize-url.tsx","webpack://EditingToolkit/../../packages/interpolate-components/src/index.js","webpack://EditingToolkit/../../packages/interpolate-components/src/tokenize.js","webpack://EditingToolkit/../../packages/load-script/src/callback-handler.js","webpack://EditingToolkit/../../packages/load-script/src/dom-operations.js","webpack://EditingToolkit/../../packages/load-script/src/index.js","webpack://EditingToolkit/../../packages/tour-kit/src/components/keyboard-navigation.tsx","webpack://EditingToolkit/../../packages/tour-kit/src/components/tour-kit-context.tsx","webpack://EditingToolkit/../../packages/tour-kit/src/components/tour-kit-frame.tsx","webpack://EditingToolkit/../../packages/tour-kit/src/components/tour-kit-minimized.tsx","webpack://EditingToolkit/../../packages/tour-kit/src/components/tour-kit-overlay.tsx","webpack://EditingToolkit/../../packages/tour-kit/src/components/tour-kit-spotlight-interactivity.tsx","webpack://EditingToolkit/../../packages/tour-kit/src/components/tour-kit-spotlight.tsx","webpack://EditingToolkit/../../packages/tour-kit/src/components/tour-kit-step.tsx","webpack://EditingToolkit/../../packages/tour-kit/src/components/tour-kit.tsx","webpack://EditingToolkit/../../packages/tour-kit/src/error-boundary.tsx","webpack://EditingToolkit/../../packages/tour-kit/src/hooks/use-focus-handler.ts","webpack://EditingToolkit/../../packages/tour-kit/src/hooks/use-focus-trap.ts","webpack://EditingToolkit/../../packages/tour-kit/src/hooks/use-keydown-handler.ts","webpack://EditingToolkit/../../packages/tour-kit/src/hooks/use-step-tracking.ts","webpack://EditingToolkit/../../packages/tour-kit/src/utils/index.ts","webpack://EditingToolkit/../../packages/tour-kit/src/utils/live-resize-modifier.tsx","webpack://EditingToolkit/../../packages/tour-kit/src/variants/wpcom/components/wpcom-tour-kit-minimized.tsx","webpack://EditingToolkit/../../packages/tour-kit/src/variants/wpcom/components/wpcom-tour-kit-rating.tsx","webpack://EditingToolkit/../../packages/tour-kit/src/variants/wpcom/components/wpcom-tour-kit-step-card-navigation.tsx","webpack://EditingToolkit/../../packages/tour-kit/src/variants/wpcom/components/wpcom-tour-kit-step-card-overlay-controls.tsx","webpack://EditingToolkit/../../packages/tour-kit/src/variants/wpcom/components/wpcom-tour-kit-step-card.tsx","webpack://EditingToolkit/../../packages/tour-kit/src/variants/wpcom/components/wpcom-tour-kit-step.tsx","webpack://EditingToolkit/../../packages/tour-kit/src/variants/wpcom/components/wpcom-tour-kit.tsx","webpack://EditingToolkit/../../packages/tour-kit/src/variants/wpcom/hooks/use-prefetch-tour-assets.tsx","webpack://EditingToolkit/../../packages/tour-kit/src/variants/wpcom/icons/maximize.tsx","webpack://EditingToolkit/../../packages/tour-kit/src/variants/wpcom/icons/minimize.tsx","webpack://EditingToolkit/../../packages/tour-kit/src/variants/wpcom/icons/thumbs_down.tsx","webpack://EditingToolkit/../../packages/tour-kit/src/variants/wpcom/icons/thumbs_up.tsx","webpack://EditingToolkit/../../packages/viewport-react/src/index.js","webpack://EditingToolkit/../../packages/viewport/src/index.ts","webpack://EditingToolkit/../../packages/wpcom-proxy-request/src/index.js","webpack://EditingToolkit/../../node_modules/debug/src/browser.js","webpack://EditingToolkit/../../node_modules/debug/src/common.js","webpack://EditingToolkit/../../node_modules/uppercamelcase/index.js","webpack://EditingToolkit/../../node_modules/uppercamelcase/node_modules/camelcase/index.js","webpack://EditingToolkit/../../node_modules/uuid/dist/esm-browser/regex.js","webpack://EditingToolkit/../../node_modules/uuid/dist/esm-browser/rng.js","webpack://EditingToolkit/../../node_modules/uuid/dist/esm-browser/stringify.js","webpack://EditingToolkit/../../node_modules/uuid/dist/esm-browser/v4.js","webpack://EditingToolkit/../../node_modules/uuid/dist/esm-browser/validate.js","webpack://EditingToolkit/../../node_modules/wp-error/index.js","webpack://EditingToolkit/external window \"React\"","webpack://EditingToolkit/external window \"a8c-fse-common-data-stores\"","webpack://EditingToolkit/external window \"lodash\"","webpack://EditingToolkit/external window [\"wp\",\"apiFetch\"]","webpack://EditingToolkit/external window [\"wp\",\"components\"]","webpack://EditingToolkit/external window [\"wp\",\"compose\"]","webpack://EditingToolkit/external window [\"wp\",\"data\"]","webpack://EditingToolkit/external window [\"wp\",\"dataControls\"]","webpack://EditingToolkit/external window [\"wp\",\"dom\"]","webpack://EditingToolkit/external window [\"wp\",\"element\"]","webpack://EditingToolkit/external window [\"wp\",\"hooks\"]","webpack://EditingToolkit/external window [\"wp\",\"i18n\"]","webpack://EditingToolkit/external window [\"wp\",\"notices\"]","webpack://EditingToolkit/external window [\"wp\",\"nux\"]","webpack://EditingToolkit/external window [\"wp\",\"plugins\"]","webpack://EditingToolkit/external window [\"wp\",\"primitives\"]","webpack://EditingToolkit/external window [\"wp\",\"url\"]","webpack://EditingToolkit/../../node_modules/@babel/runtime/helpers/esm/defineProperty.js","webpack://EditingToolkit/../../node_modules/@babel/runtime/helpers/esm/extends.js","webpack://EditingToolkit/webpack/bootstrap","webpack://EditingToolkit/webpack/runtime/compat get default export","webpack://EditingToolkit/webpack/runtime/define property getters","webpack://EditingToolkit/webpack/runtime/global","webpack://EditingToolkit/webpack/runtime/hasOwnProperty shorthand","webpack://EditingToolkit/webpack/runtime/make namespace object","webpack://EditingToolkit/webpack/runtime/publicPath","webpack://EditingToolkit/./editing-toolkit-plugin/wpcom-block-editor-nux/index.js"],"sourcesContent":["import getCompositeRect from \"./dom-utils/getCompositeRect.js\";\nimport getLayoutRect from \"./dom-utils/getLayoutRect.js\";\nimport listScrollParents from \"./dom-utils/listScrollParents.js\";\nimport getOffsetParent from \"./dom-utils/getOffsetParent.js\";\nimport getComputedStyle from \"./dom-utils/getComputedStyle.js\";\nimport orderModifiers from \"./utils/orderModifiers.js\";\nimport debounce from \"./utils/debounce.js\";\nimport validateModifiers from \"./utils/validateModifiers.js\";\nimport uniqueBy from \"./utils/uniqueBy.js\";\nimport getBasePlacement from \"./utils/getBasePlacement.js\";\nimport mergeByName from \"./utils/mergeByName.js\";\nimport detectOverflow from \"./utils/detectOverflow.js\";\nimport { isElement } from \"./dom-utils/instanceOf.js\";\nimport { auto } from \"./enums.js\";\nvar INVALID_ELEMENT_ERROR = 'Popper: Invalid reference or popper argument provided. They must be either a DOM element or virtual element.';\nvar INFINITE_LOOP_ERROR = 'Popper: An infinite loop in the modifiers cycle has been detected! The cycle has been interrupted to prevent a browser crash.';\nvar DEFAULT_OPTIONS = {\n placement: 'bottom',\n modifiers: [],\n strategy: 'absolute'\n};\n\nfunction areValidElements() {\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n return !args.some(function (element) {\n return !(element && typeof element.getBoundingClientRect === 'function');\n });\n}\n\nexport function popperGenerator(generatorOptions) {\n if (generatorOptions === void 0) {\n generatorOptions = {};\n }\n\n var _generatorOptions = generatorOptions,\n _generatorOptions$def = _generatorOptions.defaultModifiers,\n defaultModifiers = _generatorOptions$def === void 0 ? [] : _generatorOptions$def,\n _generatorOptions$def2 = _generatorOptions.defaultOptions,\n defaultOptions = _generatorOptions$def2 === void 0 ? DEFAULT_OPTIONS : _generatorOptions$def2;\n return function createPopper(reference, popper, options) {\n if (options === void 0) {\n options = defaultOptions;\n }\n\n var state = {\n placement: 'bottom',\n orderedModifiers: [],\n options: Object.assign({}, DEFAULT_OPTIONS, defaultOptions),\n modifiersData: {},\n elements: {\n reference: reference,\n popper: popper\n },\n attributes: {},\n styles: {}\n };\n var effectCleanupFns = [];\n var isDestroyed = false;\n var instance = {\n state: state,\n setOptions: function setOptions(setOptionsAction) {\n var options = typeof setOptionsAction === 'function' ? setOptionsAction(state.options) : setOptionsAction;\n cleanupModifierEffects();\n state.options = Object.assign({}, defaultOptions, state.options, options);\n state.scrollParents = {\n reference: isElement(reference) ? listScrollParents(reference) : reference.contextElement ? listScrollParents(reference.contextElement) : [],\n popper: listScrollParents(popper)\n }; // Orders the modifiers based on their dependencies and `phase`\n // properties\n\n var orderedModifiers = orderModifiers(mergeByName([].concat(defaultModifiers, state.options.modifiers))); // Strip out disabled modifiers\n\n state.orderedModifiers = orderedModifiers.filter(function (m) {\n return m.enabled;\n }); // Validate the provided modifiers so that the consumer will get warned\n // if one of the modifiers is invalid for any reason\n\n if (process.env.NODE_ENV !== \"production\") {\n var modifiers = uniqueBy([].concat(orderedModifiers, state.options.modifiers), function (_ref) {\n var name = _ref.name;\n return name;\n });\n validateModifiers(modifiers);\n\n if (getBasePlacement(state.options.placement) === auto) {\n var flipModifier = state.orderedModifiers.find(function (_ref2) {\n var name = _ref2.name;\n return name === 'flip';\n });\n\n if (!flipModifier) {\n console.error(['Popper: \"auto\" placements require the \"flip\" modifier be', 'present and enabled to work.'].join(' '));\n }\n }\n\n var _getComputedStyle = getComputedStyle(popper),\n marginTop = _getComputedStyle.marginTop,\n marginRight = _getComputedStyle.marginRight,\n marginBottom = _getComputedStyle.marginBottom,\n marginLeft = _getComputedStyle.marginLeft; // We no longer take into account `margins` on the popper, and it can\n // cause bugs with positioning, so we'll warn the consumer\n\n\n if ([marginTop, marginRight, marginBottom, marginLeft].some(function (margin) {\n return parseFloat(margin);\n })) {\n console.warn(['Popper: CSS \"margin\" styles cannot be used to apply padding', 'between the popper and its reference element or boundary.', 'To replicate margin, use the `offset` modifier, as well as', 'the `padding` option in the `preventOverflow` and `flip`', 'modifiers.'].join(' '));\n }\n }\n\n runModifierEffects();\n return instance.update();\n },\n // Sync update – it will always be executed, even if not necessary. This\n // is useful for low frequency updates where sync behavior simplifies the\n // logic.\n // For high frequency updates (e.g. `resize` and `scroll` events), always\n // prefer the async Popper#update method\n forceUpdate: function forceUpdate() {\n if (isDestroyed) {\n return;\n }\n\n var _state$elements = state.elements,\n reference = _state$elements.reference,\n popper = _state$elements.popper; // Don't proceed if `reference` or `popper` are not valid elements\n // anymore\n\n if (!areValidElements(reference, popper)) {\n if (process.env.NODE_ENV !== \"production\") {\n console.error(INVALID_ELEMENT_ERROR);\n }\n\n return;\n } // Store the reference and popper rects to be read by modifiers\n\n\n state.rects = {\n reference: getCompositeRect(reference, getOffsetParent(popper), state.options.strategy === 'fixed'),\n popper: getLayoutRect(popper)\n }; // Modifiers have the ability to reset the current update cycle. The\n // most common use case for this is the `flip` modifier changing the\n // placement, which then needs to re-run all the modifiers, because the\n // logic was previously ran for the previous placement and is therefore\n // stale/incorrect\n\n state.reset = false;\n state.placement = state.options.placement; // On each update cycle, the `modifiersData` property for each modifier\n // is filled with the initial data specified by the modifier. This means\n // it doesn't persist and is fresh on each update.\n // To ensure persistent data, use `${name}#persistent`\n\n state.orderedModifiers.forEach(function (modifier) {\n return state.modifiersData[modifier.name] = Object.assign({}, modifier.data);\n });\n var __debug_loops__ = 0;\n\n for (var index = 0; index < state.orderedModifiers.length; index++) {\n if (process.env.NODE_ENV !== \"production\") {\n __debug_loops__ += 1;\n\n if (__debug_loops__ > 100) {\n console.error(INFINITE_LOOP_ERROR);\n break;\n }\n }\n\n if (state.reset === true) {\n state.reset = false;\n index = -1;\n continue;\n }\n\n var _state$orderedModifie = state.orderedModifiers[index],\n fn = _state$orderedModifie.fn,\n _state$orderedModifie2 = _state$orderedModifie.options,\n _options = _state$orderedModifie2 === void 0 ? {} : _state$orderedModifie2,\n name = _state$orderedModifie.name;\n\n if (typeof fn === 'function') {\n state = fn({\n state: state,\n options: _options,\n name: name,\n instance: instance\n }) || state;\n }\n }\n },\n // Async and optimistically optimized update – it will not be executed if\n // not necessary (debounced to run at most once-per-tick)\n update: debounce(function () {\n return new Promise(function (resolve) {\n instance.forceUpdate();\n resolve(state);\n });\n }),\n destroy: function destroy() {\n cleanupModifierEffects();\n isDestroyed = true;\n }\n };\n\n if (!areValidElements(reference, popper)) {\n if (process.env.NODE_ENV !== \"production\") {\n console.error(INVALID_ELEMENT_ERROR);\n }\n\n return instance;\n }\n\n instance.setOptions(options).then(function (state) {\n if (!isDestroyed && options.onFirstUpdate) {\n options.onFirstUpdate(state);\n }\n }); // Modifiers have the ability to execute arbitrary code before the first\n // update cycle runs. They will be executed in the same order as the update\n // cycle. This is useful when a modifier adds some persistent data that\n // other modifiers need to use, but the modifier is run after the dependent\n // one.\n\n function runModifierEffects() {\n state.orderedModifiers.forEach(function (_ref3) {\n var name = _ref3.name,\n _ref3$options = _ref3.options,\n options = _ref3$options === void 0 ? {} : _ref3$options,\n effect = _ref3.effect;\n\n if (typeof effect === 'function') {\n var cleanupFn = effect({\n state: state,\n name: name,\n instance: instance,\n options: options\n });\n\n var noopFn = function noopFn() {};\n\n effectCleanupFns.push(cleanupFn || noopFn);\n }\n });\n }\n\n function cleanupModifierEffects() {\n effectCleanupFns.forEach(function (fn) {\n return fn();\n });\n effectCleanupFns = [];\n }\n\n return instance;\n };\n}\nexport var createPopper = /*#__PURE__*/popperGenerator(); // eslint-disable-next-line import/no-unused-modules\n\nexport { detectOverflow };","import { isShadowRoot } from \"./instanceOf.js\";\nexport default function contains(parent, child) {\n var rootNode = child.getRootNode && child.getRootNode(); // First, attempt with faster native method\n\n if (parent.contains(child)) {\n return true;\n } // then fallback to custom implementation with Shadow DOM support\n else if (rootNode && isShadowRoot(rootNode)) {\n var next = child;\n\n do {\n if (next && parent.isSameNode(next)) {\n return true;\n } // $FlowFixMe[prop-missing]: need a better way to handle this...\n\n\n next = next.parentNode || next.host;\n } while (next);\n } // Give up, the result is false\n\n\n return false;\n}","// import { isHTMLElement } from './instanceOf';\nexport default function getBoundingClientRect(element, // eslint-disable-next-line unused-imports/no-unused-vars\nincludeScale) {\n if (includeScale === void 0) {\n includeScale = false;\n }\n\n var rect = element.getBoundingClientRect();\n var scaleX = 1;\n var scaleY = 1; // FIXME:\n // `offsetWidth` returns an integer while `getBoundingClientRect`\n // returns a float. This results in `scaleX` or `scaleY` being\n // non-1 when it should be for elements that aren't a full pixel in\n // width or height.\n // if (isHTMLElement(element) && includeScale) {\n // const offsetHeight = element.offsetHeight;\n // const offsetWidth = element.offsetWidth;\n // // Do not attempt to divide by 0, otherwise we get `Infinity` as scale\n // // Fallback to 1 in case both values are `0`\n // if (offsetWidth > 0) {\n // scaleX = rect.width / offsetWidth || 1;\n // }\n // if (offsetHeight > 0) {\n // scaleY = rect.height / offsetHeight || 1;\n // }\n // }\n\n return {\n width: rect.width / scaleX,\n height: rect.height / scaleY,\n top: rect.top / scaleY,\n right: rect.right / scaleX,\n bottom: rect.bottom / scaleY,\n left: rect.left / scaleX,\n x: rect.left / scaleX,\n y: rect.top / scaleY\n };\n}","import { viewport } from \"../enums.js\";\nimport getViewportRect from \"./getViewportRect.js\";\nimport getDocumentRect from \"./getDocumentRect.js\";\nimport listScrollParents from \"./listScrollParents.js\";\nimport getOffsetParent from \"./getOffsetParent.js\";\nimport getDocumentElement from \"./getDocumentElement.js\";\nimport getComputedStyle from \"./getComputedStyle.js\";\nimport { isElement, isHTMLElement } from \"./instanceOf.js\";\nimport getBoundingClientRect from \"./getBoundingClientRect.js\";\nimport getParentNode from \"./getParentNode.js\";\nimport contains from \"./contains.js\";\nimport getNodeName from \"./getNodeName.js\";\nimport rectToClientRect from \"../utils/rectToClientRect.js\";\nimport { max, min } from \"../utils/math.js\";\n\nfunction getInnerBoundingClientRect(element) {\n var rect = getBoundingClientRect(element);\n rect.top = rect.top + element.clientTop;\n rect.left = rect.left + element.clientLeft;\n rect.bottom = rect.top + element.clientHeight;\n rect.right = rect.left + element.clientWidth;\n rect.width = element.clientWidth;\n rect.height = element.clientHeight;\n rect.x = rect.left;\n rect.y = rect.top;\n return rect;\n}\n\nfunction getClientRectFromMixedType(element, clippingParent) {\n return clippingParent === viewport ? rectToClientRect(getViewportRect(element)) : isHTMLElement(clippingParent) ? getInnerBoundingClientRect(clippingParent) : rectToClientRect(getDocumentRect(getDocumentElement(element)));\n} // A \"clipping parent\" is an overflowable container with the characteristic of\n// clipping (or hiding) overflowing elements with a position different from\n// `initial`\n\n\nfunction getClippingParents(element) {\n var clippingParents = listScrollParents(getParentNode(element));\n var canEscapeClipping = ['absolute', 'fixed'].indexOf(getComputedStyle(element).position) >= 0;\n var clipperElement = canEscapeClipping && isHTMLElement(element) ? getOffsetParent(element) : element;\n\n if (!isElement(clipperElement)) {\n return [];\n } // $FlowFixMe[incompatible-return]: https://github.com/facebook/flow/issues/1414\n\n\n return clippingParents.filter(function (clippingParent) {\n return isElement(clippingParent) && contains(clippingParent, clipperElement) && getNodeName(clippingParent) !== 'body';\n });\n} // Gets the maximum area that the element is visible in due to any number of\n// clipping parents\n\n\nexport default function getClippingRect(element, boundary, rootBoundary) {\n var mainClippingParents = boundary === 'clippingParents' ? getClippingParents(element) : [].concat(boundary);\n var clippingParents = [].concat(mainClippingParents, [rootBoundary]);\n var firstClippingParent = clippingParents[0];\n var clippingRect = clippingParents.reduce(function (accRect, clippingParent) {\n var rect = getClientRectFromMixedType(element, clippingParent);\n accRect.top = max(rect.top, accRect.top);\n accRect.right = min(rect.right, accRect.right);\n accRect.bottom = min(rect.bottom, accRect.bottom);\n accRect.left = max(rect.left, accRect.left);\n return accRect;\n }, getClientRectFromMixedType(element, firstClippingParent));\n clippingRect.width = clippingRect.right - clippingRect.left;\n clippingRect.height = clippingRect.bottom - clippingRect.top;\n clippingRect.x = clippingRect.left;\n clippingRect.y = clippingRect.top;\n return clippingRect;\n}","import getBoundingClientRect from \"./getBoundingClientRect.js\";\nimport getNodeScroll from \"./getNodeScroll.js\";\nimport getNodeName from \"./getNodeName.js\";\nimport { isHTMLElement } from \"./instanceOf.js\";\nimport getWindowScrollBarX from \"./getWindowScrollBarX.js\";\nimport getDocumentElement from \"./getDocumentElement.js\";\nimport isScrollParent from \"./isScrollParent.js\";\n\nfunction isElementScaled(element) {\n var rect = element.getBoundingClientRect();\n var scaleX = rect.width / element.offsetWidth || 1;\n var scaleY = rect.height / element.offsetHeight || 1;\n return scaleX !== 1 || scaleY !== 1;\n} // Returns the composite rect of an element relative to its offsetParent.\n// Composite means it takes into account transforms as well as layout.\n\n\nexport default function getCompositeRect(elementOrVirtualElement, offsetParent, isFixed) {\n if (isFixed === void 0) {\n isFixed = false;\n }\n\n var isOffsetParentAnElement = isHTMLElement(offsetParent);\n var offsetParentIsScaled = isHTMLElement(offsetParent) && isElementScaled(offsetParent);\n var documentElement = getDocumentElement(offsetParent);\n var rect = getBoundingClientRect(elementOrVirtualElement, offsetParentIsScaled);\n var scroll = {\n scrollLeft: 0,\n scrollTop: 0\n };\n var offsets = {\n x: 0,\n y: 0\n };\n\n if (isOffsetParentAnElement || !isOffsetParentAnElement && !isFixed) {\n if (getNodeName(offsetParent) !== 'body' || // https://github.com/popperjs/popper-core/issues/1078\n isScrollParent(documentElement)) {\n scroll = getNodeScroll(offsetParent);\n }\n\n if (isHTMLElement(offsetParent)) {\n offsets = getBoundingClientRect(offsetParent, true);\n offsets.x += offsetParent.clientLeft;\n offsets.y += offsetParent.clientTop;\n } else if (documentElement) {\n offsets.x = getWindowScrollBarX(documentElement);\n }\n }\n\n return {\n x: rect.left + scroll.scrollLeft - offsets.x,\n y: rect.top + scroll.scrollTop - offsets.y,\n width: rect.width,\n height: rect.height\n };\n}","import getWindow from \"./getWindow.js\";\nexport default function getComputedStyle(element) {\n return getWindow(element).getComputedStyle(element);\n}","import { isElement } from \"./instanceOf.js\";\nexport default function getDocumentElement(element) {\n // $FlowFixMe[incompatible-return]: assume body is always available\n return ((isElement(element) ? element.ownerDocument : // $FlowFixMe[prop-missing]\n element.document) || window.document).documentElement;\n}","import getDocumentElement from \"./getDocumentElement.js\";\nimport getComputedStyle from \"./getComputedStyle.js\";\nimport getWindowScrollBarX from \"./getWindowScrollBarX.js\";\nimport getWindowScroll from \"./getWindowScroll.js\";\nimport { max } from \"../utils/math.js\"; // Gets the entire size of the scrollable document area, even extending outside\n// of the `<html>` and `<body>` rect bounds if horizontally scrollable\n\nexport default function getDocumentRect(element) {\n var _element$ownerDocumen;\n\n var html = getDocumentElement(element);\n var winScroll = getWindowScroll(element);\n var body = (_element$ownerDocumen = element.ownerDocument) == null ? void 0 : _element$ownerDocumen.body;\n var width = max(html.scrollWidth, html.clientWidth, body ? body.scrollWidth : 0, body ? body.clientWidth : 0);\n var height = max(html.scrollHeight, html.clientHeight, body ? body.scrollHeight : 0, body ? body.clientHeight : 0);\n var x = -winScroll.scrollLeft + getWindowScrollBarX(element);\n var y = -winScroll.scrollTop;\n\n if (getComputedStyle(body || html).direction === 'rtl') {\n x += max(html.clientWidth, body ? body.clientWidth : 0) - width;\n }\n\n return {\n width: width,\n height: height,\n x: x,\n y: y\n };\n}","export default function getHTMLElementScroll(element) {\n return {\n scrollLeft: element.scrollLeft,\n scrollTop: element.scrollTop\n };\n}","import getBoundingClientRect from \"./getBoundingClientRect.js\"; // Returns the layout rect of an element relative to its offsetParent. Layout\n// means it doesn't take into account transforms.\n\nexport default function getLayoutRect(element) {\n var clientRect = getBoundingClientRect(element); // Use the clientRect sizes if it's not been transformed.\n // Fixes https://github.com/popperjs/popper-core/issues/1223\n\n var width = element.offsetWidth;\n var height = element.offsetHeight;\n\n if (Math.abs(clientRect.width - width) <= 1) {\n width = clientRect.width;\n }\n\n if (Math.abs(clientRect.height - height) <= 1) {\n height = clientRect.height;\n }\n\n return {\n x: element.offsetLeft,\n y: element.offsetTop,\n width: width,\n height: height\n };\n}","export default function getNodeName(element) {\n return element ? (element.nodeName || '').toLowerCase() : null;\n}","import getWindowScroll from \"./getWindowScroll.js\";\nimport getWindow from \"./getWindow.js\";\nimport { isHTMLElement } from \"./instanceOf.js\";\nimport getHTMLElementScroll from \"./getHTMLElementScroll.js\";\nexport default function getNodeScroll(node) {\n if (node === getWindow(node) || !isHTMLElement(node)) {\n return getWindowScroll(node);\n } else {\n return getHTMLElementScroll(node);\n }\n}","import getWindow from \"./getWindow.js\";\nimport getNodeName from \"./getNodeName.js\";\nimport getComputedStyle from \"./getComputedStyle.js\";\nimport { isHTMLElement } from \"./instanceOf.js\";\nimport isTableElement from \"./isTableElement.js\";\nimport getParentNode from \"./getParentNode.js\";\n\nfunction getTrueOffsetParent(element) {\n if (!isHTMLElement(element) || // https://github.com/popperjs/popper-core/issues/837\n getComputedStyle(element).position === 'fixed') {\n return null;\n }\n\n return element.offsetParent;\n} // `.offsetParent` reports `null` for fixed elements, while absolute elements\n// return the containing block\n\n\nfunction getContainingBlock(element) {\n var isFirefox = navigator.userAgent.toLowerCase().indexOf('firefox') !== -1;\n var isIE = navigator.userAgent.indexOf('Trident') !== -1;\n\n if (isIE && isHTMLElement(element)) {\n // In IE 9, 10 and 11 fixed elements containing block is always established by the viewport\n var elementCss = getComputedStyle(element);\n\n if (elementCss.position === 'fixed') {\n return null;\n }\n }\n\n var currentNode = getParentNode(element);\n\n while (isHTMLElement(currentNode) && ['html', 'body'].indexOf(getNodeName(currentNode)) < 0) {\n var css = getComputedStyle(currentNode); // This is non-exhaustive but covers the most common CSS properties that\n // create a containing block.\n // https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block\n\n if (css.transform !== 'none' || css.perspective !== 'none' || css.contain === 'paint' || ['transform', 'perspective'].indexOf(css.willChange) !== -1 || isFirefox && css.willChange === 'filter' || isFirefox && css.filter && css.filter !== 'none') {\n return currentNode;\n } else {\n currentNode = currentNode.parentNode;\n }\n }\n\n return null;\n} // Gets the closest ancestor positioned element. Handles some edge cases,\n// such as table ancestors and cross browser bugs.\n\n\nexport default function getOffsetParent(element) {\n var window = getWindow(element);\n var offsetParent = getTrueOffsetParent(element);\n\n while (offsetParent && isTableElement(offsetParent) && getComputedStyle(offsetParent).position === 'static') {\n offsetParent = getTrueOffsetParent(offsetParent);\n }\n\n if (offsetParent && (getNodeName(offsetParent) === 'html' || getNodeName(offsetParent) === 'body' && getComputedStyle(offsetParent).position === 'static')) {\n return window;\n }\n\n return offsetParent || getContainingBlock(element) || window;\n}","import getNodeName from \"./getNodeName.js\";\nimport getDocumentElement from \"./getDocumentElement.js\";\nimport { isShadowRoot } from \"./instanceOf.js\";\nexport default function getParentNode(element) {\n if (getNodeName(element) === 'html') {\n return element;\n }\n\n return (// this is a quicker (but less type safe) way to save quite some bytes from the bundle\n // $FlowFixMe[incompatible-return]\n // $FlowFixMe[prop-missing]\n element.assignedSlot || // step into the shadow DOM of the parent of a slotted node\n element.parentNode || ( // DOM Element detected\n isShadowRoot(element) ? element.host : null) || // ShadowRoot detected\n // $FlowFixMe[incompatible-call]: HTMLElement is a Node\n getDocumentElement(element) // fallback\n\n );\n}","import getParentNode from \"./getParentNode.js\";\nimport isScrollParent from \"./isScrollParent.js\";\nimport getNodeName from \"./getNodeName.js\";\nimport { isHTMLElement } from \"./instanceOf.js\";\nexport default function getScrollParent(node) {\n if (['html', 'body', '#document'].indexOf(getNodeName(node)) >= 0) {\n // $FlowFixMe[incompatible-return]: assume body is always available\n return node.ownerDocument.body;\n }\n\n if (isHTMLElement(node) && isScrollParent(node)) {\n return node;\n }\n\n return getScrollParent(getParentNode(node));\n}","import getWindow from \"./getWindow.js\";\nimport getDocumentElement from \"./getDocumentElement.js\";\nimport getWindowScrollBarX from \"./getWindowScrollBarX.js\";\nexport default function getViewportRect(element) {\n var win = getWindow(element);\n var html = getDocumentElement(element);\n var visualViewport = win.visualViewport;\n var width = html.clientWidth;\n var height = html.clientHeight;\n var x = 0;\n var y = 0; // NB: This isn't supported on iOS <= 12. If the keyboard is open, the popper\n // can be obscured underneath it.\n // Also, `html.clientHeight` adds the bottom bar height in Safari iOS, even\n // if it isn't open, so if this isn't available, the popper will be detected\n // to overflow the bottom of the screen too early.\n\n if (visualViewport) {\n width = visualViewport.width;\n height = visualViewport.height; // Uses Layout Viewport (like Chrome; Safari does not currently)\n // In Chrome, it returns a value very close to 0 (+/-) but contains rounding\n // errors due to floating point numbers, so we need to check precision.\n // Safari returns a number <= 0, usually < -1 when pinch-zoomed\n // Feature detection fails in mobile emulation mode in Chrome.\n // Math.abs(win.innerWidth / visualViewport.scale - visualViewport.width) <\n // 0.001\n // Fallback here: \"Not Safari\" userAgent\n\n if (!/^((?!chrome|android).)*safari/i.test(navigator.userAgent)) {\n x = visualViewport.offsetLeft;\n y = visualViewport.offsetTop;\n }\n }\n\n return {\n width: width,\n height: height,\n x: x + getWindowScrollBarX(element),\n y: y\n };\n}","export default function getWindow(node) {\n if (node == null) {\n return window;\n }\n\n if (node.toString() !== '[object Window]') {\n var ownerDocument = node.ownerDocument;\n return ownerDocument ? ownerDocument.defaultView || window : window;\n }\n\n return node;\n}","import getWindow from \"./getWindow.js\";\nexport default function getWindowScroll(node) {\n var win = getWindow(node);\n var scrollLeft = win.pageXOffset;\n var scrollTop = win.pageYOffset;\n return {\n scrollLeft: scrollLeft,\n scrollTop: scrollTop\n };\n}","import getBoundingClientRect from \"./getBoundingClientRect.js\";\nimport getDocumentElement from \"./getDocumentElement.js\";\nimport getWindowScroll from \"./getWindowScroll.js\";\nexport default function getWindowScrollBarX(element) {\n // If <html> has a CSS width greater than the viewport, then this will be\n // incorrect for RTL.\n // Popper 1 is broken in this case and never had a bug report so let's assume\n // it's not an issue. I don't think anyone ever specifies width on <html>\n // anyway.\n // Browsers where the left scrollbar doesn't cause an issue report `0` for\n // this (e.g. Edge 2019, IE11, Safari)\n return getBoundingClientRect(getDocumentElement(element)).left + getWindowScroll(element).scrollLeft;\n}","import getWindow from \"./getWindow.js\";\n\nfunction isElement(node) {\n var OwnElement = getWindow(node).Element;\n return node instanceof OwnElement || node instanceof Element;\n}\n\nfunction isHTMLElement(node) {\n var OwnElement = getWindow(node).HTMLElement;\n return node instanceof OwnElement || node instanceof HTMLElement;\n}\n\nfunction isShadowRoot(node) {\n // IE 11 has no ShadowRoot\n if (typeof ShadowRoot === 'undefined') {\n return false;\n }\n\n var OwnElement = getWindow(node).ShadowRoot;\n return node instanceof OwnElement || node instanceof ShadowRoot;\n}\n\nexport { isElement, isHTMLElement, isShadowRoot };","import getComputedStyle from \"./getComputedStyle.js\";\nexport default function isScrollParent(element) {\n // Firefox wants us to check `-x` and `-y` variations as well\n var _getComputedStyle = getComputedStyle(element),\n overflow = _getComputedStyle.overflow,\n overflowX = _getComputedStyle.overflowX,\n overflowY = _getComputedStyle.overflowY;\n\n return /auto|scroll|overlay|hidden/.test(overflow + overflowY + overflowX);\n}","import getNodeName from \"./getNodeName.js\";\nexport default function isTableElement(element) {\n return ['table', 'td', 'th'].indexOf(getNodeName(element)) >= 0;\n}","import getScrollParent from \"./getScrollParent.js\";\nimport getParentNode from \"./getParentNode.js\";\nimport getWindow from \"./getWindow.js\";\nimport isScrollParent from \"./isScrollParent.js\";\n/*\ngiven a DOM element, return the list of all scroll parents, up the list of ancesors\nuntil we get to the top window object. This list is what we attach scroll listeners\nto, because if any of these parent elements scroll, we'll need to re-calculate the\nreference element's position.\n*/\n\nexport default function listScrollParents(element, list) {\n var _element$ownerDocumen;\n\n if (list === void 0) {\n list = [];\n }\n\n var scrollParent = getScrollParent(element);\n var isBody = scrollParent === ((_element$ownerDocumen = element.ownerDocument) == null ? void 0 : _element$ownerDocumen.body);\n var win = getWindow(scrollParent);\n var target = isBody ? [win].concat(win.visualViewport || [], isScrollParent(scrollParent) ? scrollParent : []) : scrollParent;\n var updatedList = list.concat(target);\n return isBody ? updatedList : // $FlowFixMe[incompatible-call]: isBody tells us target will be an HTMLElement here\n updatedList.concat(listScrollParents(getParentNode(target)));\n}","export var top = 'top';\nexport var bottom = 'bottom';\nexport var right = 'right';\nexport var left = 'left';\nexport var auto = 'auto';\nexport var basePlacements = [top, bottom, right, left];\nexport var start = 'start';\nexport var end = 'end';\nexport var clippingParents = 'clippingParents';\nexport var viewport = 'viewport';\nexport var popper = 'popper';\nexport var reference = 'reference';\nexport var variationPlacements = /*#__PURE__*/basePlacements.reduce(function (acc, placement) {\n return acc.concat([placement + \"-\" + start, placement + \"-\" + end]);\n}, []);\nexport var placements = /*#__PURE__*/[].concat(basePlacements, [auto]).reduce(function (acc, placement) {\n return acc.concat([placement, placement + \"-\" + start, placement + \"-\" + end]);\n}, []); // modifiers that need to read the DOM\n\nexport var beforeRead = 'beforeRead';\nexport var read = 'read';\nexport var afterRead = 'afterRead'; // pure-logic modifiers\n\nexport var beforeMain = 'beforeMain';\nexport var main = 'main';\nexport var afterMain = 'afterMain'; // modifier with the purpose to write to the DOM (or write into a framework state)\n\nexport var beforeWrite = 'beforeWrite';\nexport var write = 'write';\nexport var afterWrite = 'afterWrite';\nexport var modifierPhases = [beforeRead, read, afterRead, beforeMain, main, afterMain, beforeWrite, write, afterWrite];","import getNodeName from \"../dom-utils/getNodeName.js\";\nimport { isHTMLElement } from \"../dom-utils/instanceOf.js\"; // This modifier takes the styles prepared by the `computeStyles` modifier\n// and applies them to the HTMLElements such as popper and arrow\n\nfunction applyStyles(_ref) {\n var state = _ref.state;\n Object.keys(state.elements).forEach(function (name) {\n var style = state.styles[name] || {};\n var attributes = state.attributes[name] || {};\n var element = state.elements[name]; // arrow is optional + virtual elements\n\n if (!isHTMLElement(element) || !getNodeName(element)) {\n return;\n } // Flow doesn't support to extend this property, but it's the most\n // effective way to apply styles to an HTMLElement\n // $FlowFixMe[cannot-write]\n\n\n Object.assign(element.style, style);\n Object.keys(attributes).forEach(function (name) {\n var value = attributes[name];\n\n if (value === false) {\n element.removeAttribute(name);\n } else {\n element.setAttribute(name, value === true ? '' : value);\n }\n });\n });\n}\n\nfunction effect(_ref2) {\n var state = _ref2.state;\n var initialStyles = {\n popper: {\n position: state.options.strategy,\n left: '0',\n top: '0',\n margin: '0'\n },\n arrow: {\n position: 'absolute'\n },\n reference: {}\n };\n Object.assign(state.elements.popper.style, initialStyles.popper);\n state.styles = initialStyles;\n\n if (state.elements.arrow) {\n Object.assign(state.elements.arrow.style, initialStyles.arrow);\n }\n\n return function () {\n Object.keys(state.elements).forEach(function (name) {\n var element = state.elements[name];\n var attributes = state.attributes[name] || {};\n var styleProperties = Object.keys(state.styles.hasOwnProperty(name) ? state.styles[name] : initialStyles[name]); // Set all values to an empty string to unset them\n\n var style = styleProperties.reduce(function (style, property) {\n style[property] = '';\n return style;\n }, {}); // arrow is optional + virtual elements\n\n if (!isHTMLElement(element) || !getNodeName(element)) {\n return;\n }\n\n Object.assign(element.style, style);\n Object.keys(attributes).forEach(function (attribute) {\n element.removeAttribute(attribute);\n });\n });\n };\n} // eslint-disable-next-line import/no-unused-modules\n\n\nexport default {\n name: 'applyStyles',\n enabled: true,\n phase: 'write',\n fn: applyStyles,\n effect: effect,\n requires: ['computeStyles']\n};","import getBasePlacement from \"../utils/getBasePlacement.js\";\nimport getLayoutRect from \"../dom-utils/getLayoutRect.js\";\nimport contains from \"../dom-utils/contains.js\";\nimport getOffsetParent from \"../dom-utils/getOffsetParent.js\";\nimport getMainAxisFromPlacement from \"../utils/getMainAxisFromPlacement.js\";\nimport within from \"../utils/within.js\";\nimport mergePaddingObject from \"../utils/mergePaddingObject.js\";\nimport expandToHashMap from \"../utils/expandToHashMap.js\";\nimport { left, right, basePlacements, top, bottom } from \"../enums.js\";\nimport { isHTMLElement } from \"../dom-utils/instanceOf.js\"; // eslint-disable-next-line import/no-unused-modules\n\nvar toPaddingObject = function toPaddingObject(padding, state) {\n padding = typeof padding === 'function' ? padding(Object.assign({}, state.rects, {\n placement: state.placement\n })) : padding;\n return mergePaddingObject(typeof padding !== 'number' ? padding : expandToHashMap(padding, basePlacements));\n};\n\nfunction arrow(_ref) {\n var _state$modifiersData$;\n\n var state = _ref.state,\n name = _ref.name,\n options = _ref.options;\n var arrowElement = state.elements.arrow;\n var popperOffsets = state.modifiersData.popperOffsets;\n var basePlacement = getBasePlacement(state.placement);\n var axis = getMainAxisFromPlacement(basePlacement);\n var isVertical = [left, right].indexOf(basePlacement) >= 0;\n var len = isVertical ? 'height' : 'width';\n\n if (!arrowElement || !popperOffsets) {\n return;\n }\n\n var paddingObject = toPaddingObject(options.padding, state);\n var arrowRect = getLayoutRect(arrowElement);\n var minProp = axis === 'y' ? top : left;\n var maxProp = axis === 'y' ? bottom : right;\n var endDiff = state.rects.reference[len] + state.rects.reference[axis] - popperOffsets[axis] - state.rects.popper[len];\n var startDiff = popperOffsets[axis] - state.rects.reference[axis];\n var arrowOffsetParent = getOffsetParent(arrowElement);\n var clientSize = arrowOffsetParent ? axis === 'y' ? arrowOffsetParent.clientHeight || 0 : arrowOffsetParent.clientWidth || 0 : 0;\n var centerToReference = endDiff / 2 - startDiff / 2; // Make sure the arrow doesn't overflow the popper if the center point is\n // outside of the popper bounds\n\n var min = paddingObject[minProp];\n var max = clientSize - arrowRect[len] - paddingObject[maxProp];\n var center = clientSize / 2 - arrowRect[len] / 2 + centerToReference;\n var offset = within(min, center, max); // Prevents breaking syntax highlighting...\n\n var axisProp = axis;\n state.modifiersData[name] = (_state$modifiersData$ = {}, _state$modifiersData$[axisProp] = offset, _state$modifiersData$.centerOffset = offset - center, _state$modifiersData$);\n}\n\nfunction effect(_ref2) {\n var state = _ref2.state,\n options = _ref2.options;\n var _options$element = options.element,\n arrowElement = _options$element === void 0 ? '[data-popper-arrow]' : _options$element;\n\n if (arrowElement == null) {\n return;\n } // CSS selector\n\n\n if (typeof arrowElement === 'string') {\n arrowElement = state.elements.popper.querySelector(arrowElement);\n\n if (!arrowElement) {\n return;\n }\n }\n\n if (process.env.NODE_ENV !== \"production\") {\n if (!isHTMLElement(arrowElement)) {\n console.error(['Popper: \"arrow\" element must be an HTMLElement (not an SVGElement).', 'To use an SVG arrow, wrap it in an HTMLElement that will be used as', 'the arrow.'].join(' '));\n }\n }\n\n if (!contains(state.elements.popper, arrowElement)) {\n if (process.env.NODE_ENV !== \"production\") {\n console.error(['Popper: \"arrow\" modifier\\'s `element` must be a child of the popper', 'element.'].join(' '));\n }\n\n return;\n }\n\n state.elements.arrow = arrowElement;\n} // eslint-disable-next-line import/no-unused-modules\n\n\nexport default {\n name: 'arrow',\n enabled: true,\n phase: 'main',\n fn: arrow,\n effect: effect,\n requires: ['popperOffsets'],\n requiresIfExists: ['preventOverflow']\n};","import { top, left, right, bottom, end } from \"../enums.js\";\nimport getOffsetParent from \"../dom-utils/getOffsetParent.js\";\nimport getWindow from \"../dom-utils/getWindow.js\";\nimport getDocumentElement from \"../dom-utils/getDocumentElement.js\";\nimport getComputedStyle from \"../dom-utils/getComputedStyle.js\";\nimport getBasePlacement from \"../utils/getBasePlacement.js\";\nimport getVariation from \"../utils/getVariation.js\";\nimport { round } from \"../utils/math.js\"; // eslint-disable-next-line import/no-unused-modules\n\nvar unsetSides = {\n top: 'auto',\n right: 'auto',\n bottom: 'auto',\n left: 'auto'\n}; // Round the offsets to the nearest suitable subpixel based on the DPR.\n// Zooming can change the DPR, but it seems to report a value that will\n// cleanly divide the values into the appropriate subpixels.\n\nfunction roundOffsetsByDPR(_ref) {\n var x = _ref.x,\n y = _ref.y;\n var win = window;\n var dpr = win.devicePixelRatio || 1;\n return {\n x: round(round(x * dpr) / dpr) || 0,\n y: round(round(y * dpr) / dpr) || 0\n };\n}\n\nexport function mapToStyles(_ref2) {\n var _Object$assign2;\n\n var popper = _ref2.popper,\n popperRect = _ref2.popperRect,\n placement = _ref2.placement,\n variation = _ref2.variation,\n offsets = _ref2.offsets,\n position = _ref2.position,\n gpuAcceleration = _ref2.gpuAcceleration,\n adaptive = _ref2.adaptive,\n roundOffsets = _ref2.roundOffsets;\n\n var _ref3 = roundOffsets === true ? roundOffsetsByDPR(offsets) : typeof roundOffsets === 'function' ? roundOffsets(offsets) : offsets,\n _ref3$x = _ref3.x,\n x = _ref3$x === void 0 ? 0 : _ref3$x,\n _ref3$y = _ref3.y,\n y = _ref3$y === void 0 ? 0 : _ref3$y;\n\n var hasX = offsets.hasOwnProperty('x');\n var hasY = offsets.hasOwnProperty('y');\n var sideX = left;\n var sideY = top;\n var win = window;\n\n if (adaptive) {\n var offsetParent = getOffsetParent(popper);\n var heightProp = 'clientHeight';\n var widthProp = 'clientWidth';\n\n if (offsetParent === getWindow(popper)) {\n offsetParent = getDocumentElement(popper);\n\n if (getComputedStyle(offsetParent).position !== 'static' && position === 'absolute') {\n heightProp = 'scrollHeight';\n widthProp = 'scrollWidth';\n }\n } // $FlowFixMe[incompatible-cast]: force type refinement, we compare offsetParent with window above, but Flow doesn't detect it\n\n\n offsetParent = offsetParent;\n\n if (placement === top || (placement === left || placement === right) && variation === end) {\n sideY = bottom; // $FlowFixMe[prop-missing]\n\n y -= offsetParent[heightProp] - popperRect.height;\n y *= gpuAcceleration ? 1 : -1;\n }\n\n if (placement === left || (placement === top || placement === bottom) && variation === end) {\n sideX = right; // $FlowFixMe[prop-missing]\n\n x -= offsetParent[widthProp] - popperRect.width;\n x *= gpuAcceleration ? 1 : -1;\n }\n }\n\n var commonStyles = Object.assign({\n position: position\n }, adaptive && unsetSides);\n\n if (gpuAcceleration) {\n var _Object$assign;\n\n return Object.assign({}, commonStyles, (_Object$assign = {}, _Object$assign[sideY] = hasY ? '0' : '', _Object$assign[sideX] = hasX ? '0' : '', _Object$assign.transform = (win.devicePixelRatio || 1) <= 1 ? \"translate(\" + x + \"px, \" + y + \"px)\" : \"translate3d(\" + x + \"px, \" + y + \"px, 0)\", _Object$assign));\n }\n\n return Object.assign({}, commonStyles, (_Object$assign2 = {}, _Object$assign2[sideY] = hasY ? y + \"px\" : '', _Object$assign2[sideX] = hasX ? x + \"px\" : '', _Object$assign2.transform = '', _Object$assign2));\n}\n\nfunction computeStyles(_ref4) {\n var state = _ref4.state,\n options = _ref4.options;\n var _options$gpuAccelerat = options.gpuAcceleration,\n gpuAcceleration = _options$gpuAccelerat === void 0 ? true : _options$gpuAccelerat,\n _options$adaptive = options.adaptive,\n adaptive = _options$adaptive === void 0 ? true : _options$adaptive,\n _options$roundOffsets = options.roundOffsets,\n roundOffsets = _options$roundOffsets === void 0 ? true : _options$roundOffsets;\n\n if (process.env.NODE_ENV !== \"production\") {\n var transitionProperty = getComputedStyle(state.elements.popper).transitionProperty || '';\n\n if (adaptive && ['transform', 'top', 'right', 'bottom', 'left'].some(function (property) {\n return transitionProperty.indexOf(property) >= 0;\n })) {\n console.warn(['Popper: Detected CSS transitions on at least one of the following', 'CSS properties: \"transform\", \"top\", \"right\", \"bottom\", \"left\".', '\\n\\n', 'Disable the \"computeStyles\" modifier\\'s `adaptive` option to allow', 'for smooth transitions, or remove these properties from the CSS', 'transition declaration on the popper element if only transitioning', 'opacity or background-color for example.', '\\n\\n', 'We recommend using the popper element as a wrapper around an inner', 'element that can have any CSS property transitioned for animations.'].join(' '));\n }\n }\n\n var commonStyles = {\n placement: getBasePlacement(state.placement),\n variation: getVariation(state.placement),\n popper: state.elements.popper,\n popperRect: state.rects.popper,\n gpuAcceleration: gpuAcceleration\n };\n\n if (state.modifiersData.popperOffsets != null) {\n state.styles.popper = Object.assign({}, state.styles.popper, mapToStyles(Object.assign({}, commonStyles, {\n offsets: state.modifiersData.popperOffsets,\n position: state.options.strategy,\n adaptive: adaptive,\n roundOffsets: roundOffsets\n })));\n }\n\n if (state.modifiersData.arrow != null) {\n state.styles.arrow = Object.assign({}, state.styles.arrow, mapToStyles(Object.assign({}, commonStyles, {\n offsets: state.modifiersData.arrow,\n position: 'absolute',\n adaptive: false,\n roundOffsets: roundOffsets\n })));\n }\n\n state.attributes.popper = Object.assign({}, state.attributes.popper, {\n 'data-popper-placement': state.placement\n });\n} // eslint-disable-next-line import/no-unused-modules\n\n\nexport default {\n name: 'computeStyles',\n enabled: true,\n phase: 'beforeWrite',\n fn: computeStyles,\n data: {}\n};","import getWindow from \"../dom-utils/getWindow.js\"; // eslint-disable-next-line import/no-unused-modules\n\nvar passive = {\n passive: true\n};\n\nfunction effect(_ref) {\n var state = _ref.state,\n instance = _ref.instance,\n options = _ref.options;\n var _options$scroll = options.scroll,\n scroll = _options$scroll === void 0 ? true : _options$scroll,\n _options$resize = options.resize,\n resize = _options$resize === void 0 ? true : _options$resize;\n var window = getWindow(state.elements.popper);\n var scrollParents = [].concat(state.scrollParents.reference, state.scrollParents.popper);\n\n if (scroll) {\n scrollParents.forEach(function (scrollParent) {\n scrollParent.addEventListener('scroll', instance.update, passive);\n });\n }\n\n if (resize) {\n window.addEventListener('resize', instance.update, passive);\n }\n\n return function () {\n if (scroll) {\n scrollParents.forEach(function (scrollParent) {\n scrollParent.removeEventListener('scroll', instance.update, passive);\n });\n }\n\n if (resize) {\n window.removeEventListener('resize', instance.update, passive);\n }\n };\n} // eslint-disable-next-line import/no-unused-modules\n\n\nexport default {\n name: 'eventListeners',\n enabled: true,\n phase: 'write',\n fn: function fn() {},\n effect: effect,\n data: {}\n};","import getOppositePlacement from \"../utils/getOppositePlacement.js\";\nimport getBasePlacement from \"../utils/getBasePlacement.js\";\nimport getOppositeVariationPlacement from \"../utils/getOppositeVariationPlacement.js\";\nimport detectOverflow from \"../utils/detectOverflow.js\";\nimport computeAutoPlacement from \"../utils/computeAutoPlacement.js\";\nimport { bottom, top, start, right, left, auto } from \"../enums.js\";\nimport getVariation from \"../utils/getVariation.js\"; // eslint-disable-next-line import/no-unused-modules\n\nfunction getExpandedFallbackPlacements(placement) {\n if (getBasePlacement(placement) === auto) {\n return [];\n }\n\n var oppositePlacement = getOppositePlacement(placement);\n return [getOppositeVariationPlacement(placement), oppositePlacement, getOppositeVariationPlacement(oppositePlacement)];\n}\n\nfunction flip(_ref) {\n var state = _ref.state,\n options = _ref.options,\n name = _ref.name;\n\n if (state.modifiersData[name]._skip) {\n return;\n }\n\n var _options$mainAxis = options.mainAxis,\n checkMainAxis = _options$mainAxis === void 0 ? true : _options$mainAxis,\n _options$altAxis = options.altAxis,\n checkAltAxis = _options$altAxis === void 0 ? true : _options$altAxis,\n specifiedFallbackPlacements = options.fallbackPlacements,\n padding = options.padding,\n boundary = options.boundary,\n rootBoundary = options.rootBoundary,\n altBoundary = options.altBoundary,\n _options$flipVariatio = options.flipVariations,\n flipVariations = _options$flipVariatio === void 0 ? true : _options$flipVariatio,\n allowedAutoPlacements = options.allowedAutoPlacements;\n var preferredPlacement = state.options.placement;\n var basePlacement = getBasePlacement(preferredPlacement);\n var isBasePlacement = basePlacement === preferredPlacement;\n var fallbackPlacements = specifiedFallbackPlacements || (isBasePlacement || !flipVariations ? [getOppositePlacement(preferredPlacement)] : getExpandedFallbackPlacements(preferredPlacement));\n var placements = [preferredPlacement].concat(fallbackPlacements).reduce(function (acc, placement) {\n return acc.concat(getBasePlacement(placement) === auto ? computeAutoPlacement(state, {\n placement: placement,\n boundary: boundary,\n rootBoundary: rootBoundary,\n padding: padding,\n flipVariations: flipVariations,\n allowedAutoPlacements: allowedAutoPlacements\n }) : placement);\n }, []);\n var referenceRect = state.rects.reference;\n var popperRect = state.rects.popper;\n var checksMap = new Map();\n var makeFallbackChecks = true;\n var firstFittingPlacement = placements[0];\n\n for (var i = 0; i < placements.length; i++) {\n var placement = placements[i];\n\n var _basePlacement = getBasePlacement(placement);\n\n var isStartVariation = getVariation(placement) === start;\n var isVertical = [top, bottom].indexOf(_basePlacement) >= 0;\n var len = isVertical ? 'width' : 'height';\n var overflow = detectOverflow(state, {\n placement: placement,\n boundary: boundary,\n rootBoundary: rootBoundary,\n altBoundary: altBoundary,\n padding: padding\n });\n var mainVariationSide = isVertical ? isStartVariation ? right : left : isStartVariation ? bottom : top;\n\n if (referenceRect[len] > popperRect[len]) {\n mainVariationSide = getOppositePlacement(mainVariationSide);\n }\n\n var altVariationSide = getOppositePlacement(mainVariationSide);\n var checks = [];\n\n if (checkMainAxis) {\n checks.push(overflow[_basePlacement] <= 0);\n }\n\n if (checkAltAxis) {\n checks.push(overflow[mainVariationSide] <= 0, overflow[altVariationSide] <= 0);\n }\n\n if (checks.every(function (check) {\n return check;\n })) {\n firstFittingPlacement = placement;\n makeFallbackChecks = false;\n break;\n }\n\n checksMap.set(placement, checks);\n }\n\n if (makeFallbackChecks) {\n // `2` may be desired in some cases – research later\n var numberOfChecks = flipVariations ? 3 : 1;\n\n var _loop = function _loop(_i) {\n var fittingPlacement = placements.find(function (placement) {\n var checks = checksMap.get(placement);\n\n if (checks) {\n return checks.slice(0, _i).every(function (check) {\n return check;\n });\n }\n });\n\n if (fittingPlacement) {\n firstFittingPlacement = fittingPlacement;\n return \"break\";\n }\n };\n\n for (var _i = numberOfChecks; _i > 0; _i--) {\n var _ret = _loop(_i);\n\n if (_ret === \"break\") break;\n }\n }\n\n if (state.placement !== firstFittingPlacement) {\n state.modifiersData[name]._skip = true;\n state.placement = firstFittingPlacement;\n state.reset = true;\n }\n} // eslint-disable-next-line import/no-unused-modules\n\n\nexport default {\n name: 'flip',\n enabled: true,\n phase: 'main',\n fn: flip,\n requiresIfExists: ['offset'],\n data: {\n _skip: false\n }\n};","import { top, bottom, left, right } from \"../enums.js\";\nimport detectOverflow from \"../utils/detectOverflow.js\";\n\nfunction getSideOffsets(overflow, rect, preventedOffsets) {\n if (preventedOffsets === void 0) {\n preventedOffsets = {\n x: 0,\n y: 0\n };\n }\n\n return {\n top: overflow.top - rect.height - preventedOffsets.y,\n right: overflow.right - rect.width + preventedOffsets.x,\n bottom: overflow.bottom - rect.height + preventedOffsets.y,\n left: overflow.left - rect.width - preventedOffsets.x\n };\n}\n\nfunction isAnySideFullyClipped(overflow) {\n return [top, right, bottom, left].some(function (side) {\n return overflow[side] >= 0;\n });\n}\n\nfunction hide(_ref) {\n var state = _ref.state,\n name = _ref.name;\n var referenceRect = state.rects.reference;\n var popperRect = state.rects.popper;\n var preventedOffsets = state.modifiersData.preventOverflow;\n var referenceOverflow = detectOverflow(state, {\n elementContext: 'reference'\n });\n var popperAltOverflow = detectOverflow(state, {\n altBoundary: true\n });\n var referenceClippingOffsets = getSideOffsets(referenceOverflow, referenceRect);\n var popperEscapeOffsets = getSideOffsets(popperAltOverflow, popperRect, preventedOffsets);\n var isReferenceHidden = isAnySideFullyClipped(referenceClippingOffsets);\n var hasPopperEscaped = isAnySideFullyClipped(popperEscapeOffsets);\n state.modifiersData[name] = {\n referenceClippingOffsets: referenceClippingOffsets,\n popperEscapeOffsets: popperEscapeOffsets,\n isReferenceHidden: isReferenceHidden,\n hasPopperEscaped: hasPopperEscaped\n };\n state.attributes.popper = Object.assign({}, state.attributes.popper, {\n 'data-popper-reference-hidden': isReferenceHidden,\n 'data-popper-escaped': hasPopperEscaped\n });\n} // eslint-disable-next-line import/no-unused-modules\n\n\nexport default {\n name: 'hide',\n enabled: true,\n phase: 'main',\n requiresIfExists: ['preventOverflow'],\n fn: hide\n};","import getBasePlacement from \"../utils/getBasePlacement.js\";\nimport { top, left, right, placements } from \"../enums.js\";\nexport function distanceAndSkiddingToXY(placement, rects, offset) {\n var basePlacement = getBasePlacement(placement);\n var invertDistance = [left, top].indexOf(basePlacement) >= 0 ? -1 : 1;\n\n var _ref = typeof offset === 'function' ? offset(Object.assign({}, rects, {\n placement: placement\n })) : offset,\n skidding = _ref[0],\n distance = _ref[1];\n\n skidding = skidding || 0;\n distance = (distance || 0) * invertDistance;\n return [left, right].indexOf(basePlacement) >= 0 ? {\n x: distance,\n y: skidding\n } : {\n x: skidding,\n y: distance\n };\n}\n\nfunction offset(_ref2) {\n var state = _ref2.state,\n options = _ref2.options,\n name = _ref2.name;\n var _options$offset = options.offset,\n offset = _options$offset === void 0 ? [0, 0] : _options$offset;\n var data = placements.reduce(function (acc, placement) {\n acc[placement] = distanceAndSkiddingToXY(placement, state.rects, offset);\n return acc;\n }, {});\n var _data$state$placement = data[state.placement],\n x = _data$state$placement.x,\n y = _data$state$placement.y;\n\n if (state.modifiersData.popperOffsets != null) {\n state.modifiersData.popperOffsets.x += x;\n state.modifiersData.popperOffsets.y += y;\n }\n\n state.modifiersData[name] = data;\n} // eslint-disable-next-line import/no-unused-modules\n\n\nexport default {\n name: 'offset',\n enabled: true,\n phase: 'main',\n requires: ['popperOffsets'],\n fn: offset\n};","import computeOffsets from \"../utils/computeOffsets.js\";\n\nfunction popperOffsets(_ref) {\n var state = _ref.state,\n name = _ref.name;\n // Offsets are the actual position the popper needs to have to be\n // properly positioned near its reference element\n // This is the most basic placement, and will be adjusted by\n // the modifiers in the next step\n state.modifiersData[name] = computeOffsets({\n reference: state.rects.reference,\n element: state.rects.popper,\n strategy: 'absolute',\n placement: state.placement\n });\n} // eslint-disable-next-line import/no-unused-modules\n\n\nexport default {\n name: 'popperOffsets',\n enabled: true,\n phase: 'read',\n fn: popperOffsets,\n data: {}\n};","import { top, left, right, bottom, start } from \"../enums.js\";\nimport getBasePlacement from \"../utils/getBasePlacement.js\";\nimport getMainAxisFromPlacement from \"../utils/getMainAxisFromPlacement.js\";\nimport getAltAxis from \"../utils/getAltAxis.js\";\nimport within from \"../utils/within.js\";\nimport getLayoutRect from \"../dom-utils/getLayoutRect.js\";\nimport getOffsetParent from \"../dom-utils/getOffsetParent.js\";\nimport detectOverflow from \"../utils/detectOverflow.js\";\nimport getVariation from \"../utils/getVariation.js\";\nimport getFreshSideObject from \"../utils/getFreshSideObject.js\";\nimport { max as mathMax, min as mathMin } from \"../utils/math.js\";\n\nfunction preventOverflow(_ref) {\n var state = _ref.state,\n options = _ref.options,\n name = _ref.name;\n var _options$mainAxis = options.mainAxis,\n checkMainAxis = _options$mainAxis === void 0 ? true : _options$mainAxis,\n _options$altAxis = options.altAxis,\n checkAltAxis = _options$altAxis === void 0 ? false : _options$altAxis,\n boundary = options.boundary,\n rootBoundary = options.rootBoundary,\n altBoundary = options.altBoundary,\n padding = options.padding,\n _options$tether = options.tether,\n tether = _options$tether === void 0 ? true : _options$tether,\n _options$tetherOffset = options.tetherOffset,\n tetherOffset = _options$tetherOffset === void 0 ? 0 : _options$tetherOffset;\n var overflow = detectOverflow(state, {\n boundary: boundary,\n rootBoundary: rootBoundary,\n padding: padding,\n altBoundary: altBoundary\n });\n var basePlacement = getBasePlacement(state.placement);\n var variation = getVariation(state.placement);\n var isBasePlacement = !variation;\n var mainAxis = getMainAxisFromPlacement(basePlacement);\n var altAxis = getAltAxis(mainAxis);\n var popperOffsets = state.modifiersData.popperOffsets;\n var referenceRect = state.rects.reference;\n var popperRect = state.rects.popper;\n var tetherOffsetValue = typeof tetherOffset === 'function' ? tetherOffset(Object.assign({}, state.rects, {\n placement: state.placement\n })) : tetherOffset;\n var data = {\n x: 0,\n y: 0\n };\n\n if (!popperOffsets) {\n return;\n }\n\n if (checkMainAxis || checkAltAxis) {\n var mainSide = mainAxis === 'y' ? top : left;\n var altSide = mainAxis === 'y' ? bottom : right;\n var len = mainAxis === 'y' ? 'height' : 'width';\n var offset = popperOffsets[mainAxis];\n var min = popperOffsets[mainAxis] + overflow[mainSide];\n var max = popperOffsets[mainAxis] - overflow[altSide];\n var additive = tether ? -popperRect[len] / 2 : 0;\n var minLen = variation === start ? referenceRect[len] : popperRect[len];\n var maxLen = variation === start ? -popperRect[len] : -referenceRect[len]; // We need to include the arrow in the calculation so the arrow doesn't go\n // outside the reference bounds\n\n var arrowElement = state.elements.arrow;\n var arrowRect = tether && arrowElement ? getLayoutRect(arrowElement) : {\n width: 0,\n height: 0\n };\n var arrowPaddingObject = state.modifiersData['arrow#persistent'] ? state.modifiersData['arrow#persistent'].padding : getFreshSideObject();\n var arrowPaddingMin = arrowPaddingObject[mainSide];\n var arrowPaddingMax = arrowPaddingObject[altSide]; // If the reference length is smaller than the arrow length, we don't want\n // to include its full size in the calculation. If the reference is small\n // and near the edge of a boundary, the popper can overflow even if the\n // reference is not overflowing as well (e.g. virtual elements with no\n // width or height)\n\n var arrowLen = within(0, referenceRect[len], arrowRect[len]);\n var minOffset = isBasePlacement ? referenceRect[len] / 2 - additive - arrowLen - arrowPaddingMin - tetherOffsetValue : minLen - arrowLen - arrowPaddingMin - tetherOffsetValue;\n var maxOffset = isBasePlacement ? -referenceRect[len] / 2 + additive + arrowLen + arrowPaddingMax + tetherOffsetValue : maxLen + arrowLen + arrowPaddingMax + tetherOffsetValue;\n var arrowOffsetParent = state.elements.arrow && getOffsetParent(state.elements.arrow);\n var clientOffset = arrowOffsetParent ? mainAxis === 'y' ? arrowOffsetParent.clientTop || 0 : arrowOffsetParent.clientLeft || 0 : 0;\n var offsetModifierValue = state.modifiersData.offset ? state.modifiersData.offset[state.placement][mainAxis] : 0;\n var tetherMin = popperOffsets[mainAxis] + minOffset - offsetModifierValue - clientOffset;\n var tetherMax = popperOffsets[mainAxis] + maxOffset - offsetModifierValue;\n\n if (checkMainAxis) {\n var preventedOffset = within(tether ? mathMin(min, tetherMin) : min, offset, tether ? mathMax(max, tetherMax) : max);\n popperOffsets[mainAxis] = preventedOffset;\n data[mainAxis] = preventedOffset - offset;\n }\n\n if (checkAltAxis) {\n var _mainSide = mainAxis === 'x' ? top : left;\n\n var _altSide = mainAxis === 'x' ? bottom : right;\n\n var _offset = popperOffsets[altAxis];\n\n var _min = _offset + overflow[_mainSide];\n\n var _max = _offset - overflow[_altSide];\n\n var _preventedOffset = within(tether ? mathMin(_min, tetherMin) : _min, _offset, tether ? mathMax(_max, tetherMax) : _max);\n\n popperOffsets[altAxis] = _preventedOffset;\n data[altAxis] = _preventedOffset - _offset;\n }\n }\n\n state.modifiersData[name] = data;\n} // eslint-disable-next-line import/no-unused-modules\n\n\nexport default {\n name: 'preventOverflow',\n enabled: true,\n phase: 'main',\n fn: preventOverflow,\n requiresIfExists: ['offset']\n};","import { popperGenerator, detectOverflow } from \"./createPopper.js\";\nimport eventListeners from \"./modifiers/eventListeners.js\";\nimport popperOffsets from \"./modifiers/popperOffsets.js\";\nimport computeStyles from \"./modifiers/computeStyles.js\";\nimport applyStyles from \"./modifiers/applyStyles.js\";\nimport offset from \"./modifiers/offset.js\";\nimport flip from \"./modifiers/flip.js\";\nimport preventOverflow from \"./modifiers/preventOverflow.js\";\nimport arrow from \"./modifiers/arrow.js\";\nimport hide from \"./modifiers/hide.js\";\nvar defaultModifiers = [eventListeners, popperOffsets, computeStyles, applyStyles, offset, flip, preventOverflow, arrow, hide];\nvar createPopper = /*#__PURE__*/popperGenerator({\n defaultModifiers: defaultModifiers\n}); // eslint-disable-next-line import/no-unused-modules\n\nexport { createPopper, popperGenerator, defaultModifiers, detectOverflow }; // eslint-disable-next-line import/no-unused-modules\n\nexport { createPopper as createPopperLite } from \"./popper-lite.js\"; // eslint-disable-next-line import/no-unused-modules\n\nexport * from \"./modifiers/index.js\";","import getVariation from \"./getVariation.js\";\nimport { variationPlacements, basePlacements, placements as allPlacements } from \"../enums.js\";\nimport detectOverflow from \"./detectOverflow.js\";\nimport getBasePlacement from \"./getBasePlacement.js\";\nexport default function computeAutoPlacement(state, options) {\n if (options === void 0) {\n options = {};\n }\n\n var _options = options,\n placement = _options.placement,\n boundary = _options.boundary,\n rootBoundary = _options.rootBoundary,\n padding = _options.padding,\n flipVariations = _options.flipVariations,\n _options$allowedAutoP = _options.allowedAutoPlacements,\n allowedAutoPlacements = _options$allowedAutoP === void 0 ? allPlacements : _options$allowedAutoP;\n var variation = getVariation(placement);\n var placements = variation ? flipVariations ? variationPlacements : variationPlacements.filter(function (placement) {\n return getVariation(placement) === variation;\n }) : basePlacements;\n var allowedPlacements = placements.filter(function (placement) {\n return allowedAutoPlacements.indexOf(placement) >= 0;\n });\n\n if (allowedPlacements.length === 0) {\n allowedPlacements = placements;\n\n if (process.env.NODE_ENV !== \"production\") {\n console.error(['Popper: The `allowedAutoPlacements` option did not allow any', 'placements. Ensure the `placement` option matches the variation', 'of the allowed placements.', 'For example, \"auto\" cannot be used to allow \"bottom-start\".', 'Use \"auto-start\" instead.'].join(' '));\n }\n } // $FlowFixMe[incompatible-type]: Flow seems to have problems with two array unions...\n\n\n var overflows = allowedPlacements.reduce(function (acc, placement) {\n acc[placement] = detectOverflow(state, {\n placement: placement,\n boundary: boundary,\n rootBoundary: rootBoundary,\n padding: padding\n })[getBasePlacement(placement)];\n return acc;\n }, {});\n return Object.keys(overflows).sort(function (a, b) {\n return overflows[a] - overflows[b];\n });\n}","import getBasePlacement from \"./getBasePlacement.js\";\nimport getVariation from \"./getVariation.js\";\nimport getMainAxisFromPlacement from \"./getMainAxisFromPlacement.js\";\nimport { top, right, bottom, left, start, end } from \"../enums.js\";\nexport default function computeOffsets(_ref) {\n var reference = _ref.reference,\n element = _ref.element,\n placement = _ref.placement;\n var basePlacement = placement ? getBasePlacement(placement) : null;\n var variation = placement ? getVariation(placement) : null;\n var commonX = reference.x + reference.width / 2 - element.width / 2;\n var commonY = reference.y + reference.height / 2 - element.height / 2;\n var offsets;\n\n switch (basePlacement) {\n case top:\n offsets = {\n x: commonX,\n y: reference.y - element.height\n };\n break;\n\n case bottom:\n offsets = {\n x: commonX,\n y: reference.y + reference.height\n };\n break;\n\n case right:\n offsets = {\n x: reference.x + reference.width,\n y: commonY\n };\n break;\n\n case left:\n offsets = {\n x: reference.x - element.width,\n y: commonY\n };\n break;\n\n default:\n offsets = {\n x: reference.x,\n y: reference.y\n };\n }\n\n var mainAxis = basePlacement ? getMainAxisFromPlacement(basePlacement) : null;\n\n if (mainAxis != null) {\n var len = mainAxis === 'y' ? 'height' : 'width';\n\n switch (variation) {\n case start:\n offsets[mainAxis] = offsets[mainAxis] - (reference[len] / 2 - element[len] / 2);\n break;\n\n case end:\n offsets[mainAxis] = offsets[mainAxis] + (reference[len] / 2 - element[len] / 2);\n break;\n\n default:\n }\n }\n\n return offsets;\n}","export default function debounce(fn) {\n var pending;\n return function () {\n if (!pending) {\n pending = new Promise(function (resolve) {\n Promise.resolve().then(function () {\n pending = undefined;\n resolve(fn());\n });\n });\n }\n\n return pending;\n };\n}","import getClippingRect from \"../dom-utils/getClippingRect.js\";\nimport getDocumentElement from \"../dom-utils/getDocumentElement.js\";\nimport getBoundingClientRect from \"../dom-utils/getBoundingClientRect.js\";\nimport computeOffsets from \"./computeOffsets.js\";\nimport rectToClientRect from \"./rectToClientRect.js\";\nimport { clippingParents, reference, popper, bottom, top, right, basePlacements, viewport } from \"../enums.js\";\nimport { isElement } from \"../dom-utils/instanceOf.js\";\nimport mergePaddingObject from \"./mergePaddingObject.js\";\nimport expandToHashMap from \"./expandToHashMap.js\"; // eslint-disable-next-line import/no-unused-modules\n\nexport default function detectOverflow(state, options) {\n if (options === void 0) {\n options = {};\n }\n\n var _options = options,\n _options$placement = _options.placement,\n placement = _options$placement === void 0 ? state.placement : _options$placement,\n _options$boundary = _options.boundary,\n boundary = _options$boundary === void 0 ? clippingParents : _options$boundary,\n _options$rootBoundary = _options.rootBoundary,\n rootBoundary = _options$rootBoundary === void 0 ? viewport : _options$rootBoundary,\n _options$elementConte = _options.elementContext,\n elementContext = _options$elementConte === void 0 ? popper : _options$elementConte,\n _options$altBoundary = _options.altBoundary,\n altBoundary = _options$altBoundary === void 0 ? false : _options$altBoundary,\n _options$padding = _options.padding,\n padding = _options$padding === void 0 ? 0 : _options$padding;\n var paddingObject = mergePaddingObject(typeof padding !== 'number' ? padding : expandToHashMap(padding, basePlacements));\n var altContext = elementContext === popper ? reference : popper;\n var popperRect = state.rects.popper;\n var element = state.elements[altBoundary ? altContext : elementContext];\n var clippingClientRect = getClippingRect(isElement(element) ? element : element.contextElement || getDocumentElement(state.elements.popper), boundary, rootBoundary);\n var referenceClientRect = getBoundingClientRect(state.elements.reference);\n var popperOffsets = computeOffsets({\n reference: referenceClientRect,\n element: popperRect,\n strategy: 'absolute',\n placement: placement\n });\n var popperClientRect = rectToClientRect(Object.assign({}, popperRect, popperOffsets));\n var elementClientRect = elementContext === popper ? popperClientRect : referenceClientRect; // positive = overflowing the clipping rect\n // 0 or negative = within the clipping rect\n\n var overflowOffsets = {\n top: clippingClientRect.top - elementClientRect.top + paddingObject.top,\n bottom: elementClientRect.bottom - clippingClientRect.bottom + paddingObject.bottom,\n left: clippingClientRect.left - elementClientRect.left + paddingObject.left,\n right: elementClientRect.right - clippingClientRect.right + paddingObject.right\n };\n var offsetData = state.modifiersData.offset; // Offsets can be applied only to the popper element\n\n if (elementContext === popper && offsetData) {\n var offset = offsetData[placement];\n Object.keys(overflowOffsets).forEach(function (key) {\n var multiply = [right, bottom].indexOf(key) >= 0 ? 1 : -1;\n var axis = [top, bottom].indexOf(key) >= 0 ? 'y' : 'x';\n overflowOffsets[key] += offset[axis] * multiply;\n });\n }\n\n return overflowOffsets;\n}","export default function expandToHashMap(value, keys) {\n return keys.reduce(function (hashMap, key) {\n hashMap[key] = value;\n return hashMap;\n }, {});\n}","export default function getAltAxis(axis) {\n return axis === 'x' ? 'y' : 'x';\n}","import { auto } from \"../enums.js\";\nexport default function getBasePlacement(placement) {\n return placement.split('-')[0];\n}","export default function getFreshSideObject() {\n return {\n top: 0,\n right: 0,\n bottom: 0,\n left: 0\n };\n}","export default function getMainAxisFromPlacement(placement) {\n return ['top', 'bottom'].indexOf(placement) >= 0 ? 'x' : 'y';\n}","var hash = {\n left: 'right',\n right: 'left',\n bottom: 'top',\n top: 'bottom'\n};\nexport default function getOppositePlacement(placement) {\n return placement.replace(/left|right|bottom|top/g, function (matched) {\n return hash[matched];\n });\n}","var hash = {\n start: 'end',\n end: 'start'\n};\nexport default function getOppositeVariationPlacement(placement) {\n return placement.replace(/start|end/g, function (matched) {\n return hash[matched];\n });\n}","export default function getVariation(placement) {\n return placement.split('-')[1];\n}","export var max = Math.max;\nexport var min = Math.min;\nexport var round = Math.round;","export default function mergeByName(modifiers) {\n var merged = modifiers.reduce(function (merged, current) {\n var existing = merged[current.name];\n merged[current.name] = existing ? Object.assign({}, existing, current, {\n options: Object.assign({}, existing.options, current.options),\n data: Object.assign({}, existing.data, current.data)\n }) : current;\n return merged;\n }, {}); // IE11 does not support Object.values\n\n return Object.keys(merged).map(function (key) {\n return merged[key];\n });\n}","import getFreshSideObject from \"./getFreshSideObject.js\";\nexport default function mergePaddingObject(paddingObject) {\n return Object.assign({}, getFreshSideObject(), paddingObject);\n}","import { modifierPhases } from \"../enums.js\"; // source: https://stackoverflow.com/questions/49875255\n\nfunction order(modifiers) {\n var map = new Map();\n var visited = new Set();\n var result = [];\n modifiers.forEach(function (modifier) {\n map.set(modifier.name, modifier);\n }); // On visiting object, check for its dependencies and visit them recursively\n\n function sort(modifier) {\n visited.add(modifier.name);\n var requires = [].concat(modifier.requires || [], modifier.requiresIfExists || []);\n requires.forEach(function (dep) {\n if (!visited.has(dep)) {\n var depModifier = map.get(dep);\n\n if (depModifier) {\n sort(depModifier);\n }\n }\n });\n result.push(modifier);\n }\n\n modifiers.forEach(function (modifier) {\n if (!visited.has(modifier.name)) {\n // check for visited object\n sort(modifier);\n }\n });\n return result;\n}\n\nexport default function orderModifiers(modifiers) {\n // order based on dependencies\n var orderedModifiers = order(modifiers); // order based on phase\n\n return modifierPhases.reduce(function (acc, phase) {\n return acc.concat(orderedModifiers.filter(function (modifier) {\n return modifier.phase === phase;\n }));\n }, []);\n}","export default function rectToClientRect(rect) {\n return Object.assign({}, rect, {\n left: rect.x,\n top: rect.y,\n right: rect.x + rect.width,\n bottom: rect.y + rect.height\n });\n}","import { max as mathMax, min as mathMin } from \"./math.js\";\nexport default function within(min, value, max) {\n return mathMax(min, mathMin(value, max));\n}","import postfix from '@tannin/postfix';\nimport evaluate from '@tannin/evaluate';\n\n/**\n * Given a C expression, returns a function which can be called to evaluate its\n * result.\n *\n * @example\n *\n * ```js\n * import compile from '@tannin/compile';\n *\n * const evaluate = compile( 'n > 1' );\n *\n * evaluate( { n: 2 } );\n * // ⇒ true\n * ```\n *\n * @param {string} expression C expression.\n *\n * @return {(variables?:{[variable:string]:*})=>*} Compiled evaluator.\n */\nexport default function compile( expression ) {\n\tvar terms = postfix( expression );\n\n\treturn function( variables ) {\n\t\treturn evaluate( terms, variables );\n\t};\n}\n","/**\n * Operator callback functions.\n *\n * @type {Object}\n */\nvar OPERATORS = {\n\t'!': function( a ) {\n\t\treturn ! a;\n\t},\n\t'*': function( a, b ) {\n\t\treturn a * b;\n\t},\n\t'/': function( a, b ) {\n\t\treturn a / b;\n\t},\n\t'%': function( a, b ) {\n\t\treturn a % b;\n\t},\n\t'+': function( a, b ) {\n\t\treturn a + b;\n\t},\n\t'-': function( a, b ) {\n\t\treturn a - b;\n\t},\n\t'<': function( a, b ) {\n\t\treturn a < b;\n\t},\n\t'<=': function( a, b ) {\n\t\treturn a <= b;\n\t},\n\t'>': function( a, b ) {\n\t\treturn a > b;\n\t},\n\t'>=': function( a, b ) {\n\t\treturn a >= b;\n\t},\n\t'==': function( a, b ) {\n\t\treturn a === b;\n\t},\n\t'!=': function( a, b ) {\n\t\treturn a !== b;\n\t},\n\t'&&': function( a, b ) {\n\t\treturn a && b;\n\t},\n\t'||': function( a, b ) {\n\t\treturn a || b;\n\t},\n\t'?:': function( a, b, c ) {\n\t\tif ( a ) {\n\t\t\tthrow b;\n\t\t}\n\n\t\treturn c;\n\t},\n};\n\n/**\n * Given an array of postfix terms and operand variables, returns the result of\n * the postfix evaluation.\n *\n * @example\n *\n * ```js\n * import evaluate from '@tannin/evaluate';\n *\n * // 3 + 4 * 5 / 6 ⇒ '3 4 5 * 6 / +'\n * const terms = [ '3', '4', '5', '*', '6', '/', '+' ];\n *\n * evaluate( terms, {} );\n * // ⇒ 6.333333333333334\n * ```\n *\n * @param {string[]} postfix Postfix terms.\n * @param {Object} variables Operand variables.\n *\n * @return {*} Result of evaluation.\n */\nexport default function evaluate( postfix, variables ) {\n\tvar stack = [],\n\t\ti, j, args, getOperatorResult, term, value;\n\n\tfor ( i = 0; i < postfix.length; i++ ) {\n\t\tterm = postfix[ i ];\n\n\t\tgetOperatorResult = OPERATORS[ term ];\n\t\tif ( getOperatorResult ) {\n\t\t\t// Pop from stack by number of function arguments.\n\t\t\tj = getOperatorResult.length;\n\t\t\targs = Array( j );\n\t\t\twhile ( j-- ) {\n\t\t\t\targs[ j ] = stack.pop();\n\t\t\t}\n\n\t\t\ttry {\n\t\t\t\tvalue = getOperatorResult.apply( null, args );\n\t\t\t} catch ( earlyReturn ) {\n\t\t\t\treturn earlyReturn;\n\t\t\t}\n\t\t} else if ( variables.hasOwnProperty( term ) ) {\n\t\t\tvalue = variables[ term ];\n\t\t} else {\n\t\t\tvalue = +term;\n\t\t}\n\n\t\tstack.push( value );\n\t}\n\n\treturn stack[ 0 ];\n}\n","import compile from '@tannin/compile';\n\n/**\n * Given a C expression, returns a function which, when called with a value,\n * evaluates the result with the value assumed to be the \"n\" variable of the\n * expression. The result will be coerced to its numeric equivalent.\n *\n * @param {string} expression C expression.\n *\n * @return {Function} Evaluator function.\n */\nexport default function pluralForms( expression ) {\n\tvar evaluate = compile( expression );\n\n\treturn function( n ) {\n\t\treturn +evaluate( { n: n } );\n\t};\n}\n","var PRECEDENCE, OPENERS, TERMINATORS, PATTERN;\n\n/**\n * Operator precedence mapping.\n *\n * @type {Object}\n */\nPRECEDENCE = {\n\t'(': 9,\n\t'!': 8,\n\t'*': 7,\n\t'/': 7,\n\t'%': 7,\n\t'+': 6,\n\t'-': 6,\n\t'<': 5,\n\t'<=': 5,\n\t'>': 5,\n\t'>=': 5,\n\t'==': 4,\n\t'!=': 4,\n\t'&&': 3,\n\t'||': 2,\n\t'?': 1,\n\t'?:': 1,\n};\n\n/**\n * Characters which signal pair opening, to be terminated by terminators.\n *\n * @type {string[]}\n */\nOPENERS = [ '(', '?' ];\n\n/**\n * Characters which signal pair termination, the value an array with the\n * opener as its first member. The second member is an optional operator\n * replacement to push to the stack.\n *\n * @type {string[]}\n */\nTERMINATORS = {\n\t')': [ '(' ],\n\t':': [ '?', '?:' ],\n};\n\n/**\n * Pattern matching operators and openers.\n *\n * @type {RegExp}\n */\nPATTERN = /<=|>=|==|!=|&&|\\|\\||\\?:|\\(|!|\\*|\\/|%|\\+|-|<|>|\\?|\\)|:/;\n\n/**\n * Given a C expression, returns the equivalent postfix (Reverse Polish)\n * notation terms as an array.\n *\n * If a postfix string is desired, simply `.join( ' ' )` the result.\n *\n * @example\n *\n * ```js\n * import postfix from '@tannin/postfix';\n *\n * postfix( 'n > 1' );\n * // ⇒ [ 'n', '1', '>' ]\n * ```\n *\n * @param {string} expression C expression.\n *\n * @return {string[]} Postfix terms.\n */\nexport default function postfix( expression ) {\n\tvar terms = [],\n\t\tstack = [],\n\t\tmatch, operator, term, element;\n\n\twhile ( ( match = expression.match( PATTERN ) ) ) {\n\t\toperator = match[ 0 ];\n\n\t\t// Term is the string preceding the operator match. It may contain\n\t\t// whitespace, and may be empty (if operator is at beginning).\n\t\tterm = expression.substr( 0, match.index ).trim();\n\t\tif ( term ) {\n\t\t\tterms.push( term );\n\t\t}\n\n\t\twhile ( ( element = stack.pop() ) ) {\n\t\t\tif ( TERMINATORS[ operator ] ) {\n\t\t\t\tif ( TERMINATORS[ operator ][ 0 ] === element ) {\n\t\t\t\t\t// Substitution works here under assumption that because\n\t\t\t\t\t// the assigned operator will no longer be a terminator, it\n\t\t\t\t\t// will be pushed to the stack during the condition below.\n\t\t\t\t\toperator = TERMINATORS[ operator ][ 1 ] || operator;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t} else if ( OPENERS.indexOf( element ) >= 0 || PRECEDENCE[ element ] < PRECEDENCE[ operator ] ) {\n\t\t\t\t// Push to stack if either an opener or when pop reveals an\n\t\t\t\t// element of lower precedence.\n\t\t\t\tstack.push( element );\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\t// For each popped from stack, push to terms.\n\t\t\tterms.push( element );\n\t\t}\n\n\t\tif ( ! TERMINATORS[ operator ] ) {\n\t\t\tstack.push( operator );\n\t\t}\n\n\t\t// Slice matched fragment from expression to continue match.\n\t\texpression = expression.substr( match.index + operator.length );\n\t}\n\n\t// Push remainder of operand, if exists, to terms.\n\texpression = expression.trim();\n\tif ( expression ) {\n\t\tterms.push( expression );\n\t}\n\n\t// Pop remaining items from stack into terms.\n\treturn terms.concat( stack.reverse() );\n}\n","/**\n * Regular expression matching format placeholder syntax.\n *\n * The pattern for matching named arguments is a naive and incomplete matcher\n * against valid JavaScript identifier names.\n *\n * via Mathias Bynens:\n *\n * >An identifier must start with $, _, or any character in the Unicode\n * >categories “Uppercase letter (Lu)”, “Lowercase letter (Ll)”, “Titlecase\n * >letter (Lt)”, “Modifier letter (Lm)”, “Other letter (Lo)”, or “Letter\n * >number (Nl)”.\n * >\n * >The rest of the string can contain the same characters, plus any U+200C zero\n * >width non-joiner characters, U+200D zero width joiner characters, and\n * >characters in the Unicode categories “Non-spacing mark (Mn)”, “Spacing\n * >combining mark (Mc)”, “Decimal digit number (Nd)”, or “Connector\n * >punctuation (Pc)”.\n *\n * If browser support is constrained to those supporting ES2015, this could be\n * made more accurate using the `u` flag:\n *\n * ```\n * /^[$_\\p{L}\\p{Nl}][$_\\p{L}\\p{Nl}\\u200C\\u200D\\p{Mn}\\p{Mc}\\p{Nd}\\p{Pc}]*$/u;\n * ```\n *\n * @see http://www.pixelbeat.org/programming/gcc/format_specs.html\n * @see https://mathiasbynens.be/notes/javascript-identifiers#valid-identifier-names\n *\n * @type {RegExp}\n */\nvar PATTERN = /%(((\\d+)\\$)|(\\(([$_a-zA-Z][$_a-zA-Z0-9]*)\\)))?[ +0#-]*\\d*(\\.(\\d+|\\*))?(ll|[lhqL])?([cduxXefgsp%])/g;\n// ▲ ▲ ▲ ▲ ▲ ▲ ▲ type\n// │ │ │ │ │ └ Length (unsupported)\n// │ │ │ │ └ Precision / max width\n// │ │ │ └ Min width (unsupported)\n// │ │ └ Flags (unsupported)\n// └ Index └ Name (for named arguments)\n\n/**\n * Given a format string, returns string with arguments interpolatation.\n * Arguments can either be provided directly via function arguments spread, or\n * with an array as the second argument.\n *\n * @see https://en.wikipedia.org/wiki/Printf_format_string\n *\n * @example\n *\n * ```js\n * import sprintf from '@tannin/sprintf';\n *\n * sprintf( 'Hello %s!', 'world' );\n * // ⇒ 'Hello world!'\n * ```\n *\n * @param {string} string printf format string\n * @param {Array} [args] String arguments.\n *\n * @return {string} Formatted string.\n */\nexport default function sprintf( string, args ) {\n\tvar i;\n\n\tif ( ! Array.isArray( args ) ) {\n\t\t// Construct a copy of arguments from index one, used for replace\n\t\t// function placeholder substitution.\n\t\targs = new Array( arguments.length - 1 );\n\t\tfor ( i = 1; i < arguments.length; i++ ) {\n\t\t\targs[ i - 1 ] = arguments[ i ];\n\t\t}\n\t}\n\n\ti = 1;\n\n\treturn string.replace( PATTERN, function() {\n\t\tvar index, name, precision, type, value;\n\n\t\tindex = arguments[ 3 ];\n\t\tname = arguments[ 5 ];\n\t\tprecision = arguments[ 7 ];\n\t\ttype = arguments[ 9 ];\n\n\t\t// There's no placeholder substitution in the explicit \"%\", meaning it\n\t\t// is not necessary to increment argument index.\n\t\tif ( type === '%' ) {\n\t\t\treturn '%';\n\t\t}\n\n\t\t// Asterisk precision determined by peeking / shifting next argument.\n\t\tif ( precision === '*' ) {\n\t\t\tprecision = args[ i - 1 ];\n\t\t\ti++;\n\t\t}\n\n\t\tif ( name !== undefined ) {\n\t\t\t// If it's a named argument, use name.\n\t\t\tif ( args[ 0 ] && typeof args[ 0 ] === 'object' &&\n\t\t\t\t\targs[ 0 ].hasOwnProperty( name ) ) {\n\t\t\t\tvalue = args[ 0 ][ name ];\n\t\t\t}\n\t\t} else {\n\t\t\t// If not a positional argument, use counter value.\n\t\t\tif ( index === undefined ) {\n\t\t\t\tindex = i;\n\t\t\t}\n\n\t\t\ti++;\n\n\t\t\t// Positional argument.\n\t\t\tvalue = args[ index - 1 ];\n\t\t}\n\n\t\t// Parse as type.\n\t\tif ( type === 'f' ) {\n\t\t\tvalue = parseFloat( value ) || 0;\n\t\t} else if ( type === 'd' ) {\n\t\t\tvalue = parseInt( value ) || 0;\n\t\t}\n\n\t\t// Apply precision.\n\t\tif ( precision !== undefined ) {\n\t\t\tif ( type === 'f' ) {\n\t\t\t\tvalue = value.toFixed( precision );\n\t\t\t} else if ( type === 's' ) {\n\t\t\t\tvalue = value.substr( 0, precision );\n\t\t\t}\n\t\t}\n\n\t\t// To avoid \"undefined\" concatenation, return empty string if no\n\t\t// placeholder substitution can be performed.\n\t\treturn value !== undefined && value !== null ? value : '';\n\t} );\n}\n","/**\n * WordPress dependencies\n */\nimport { cloneElement } from '@wordpress/element';\n/** @typedef {{icon: JSX.Element, size?: number} & import('@wordpress/primitives').SVGProps} IconProps */\n\n/**\n * Return an SVG icon.\n *\n * @param {IconProps} props icon is the SVG component to render\n * size is a number specifiying the icon size in pixels\n * Other props will be passed to wrapped SVG component\n *\n * @return {JSX.Element} Icon component\n */\n\nfunction Icon(_ref) {\n let {\n icon,\n size = 24,\n ...props\n } = _ref;\n return cloneElement(icon, {\n width: size,\n height: size,\n ...props\n });\n}\n\nexport default Icon;\n//# sourceMappingURL=index.js.map","import { createElement } from \"@wordpress/element\";\n\n/**\n * WordPress dependencies\n */\nimport { SVG, Path } from '@wordpress/primitives';\nconst close = createElement(SVG, {\n xmlns: \"http://www.w3.org/2000/svg\",\n viewBox: \"0 0 24 24\"\n}, createElement(Path, {\n d: \"M13 11.8l6.1-6.3-1-1-6.1 6.2-6.1-6.2-1 1 6.1 6.3-6.5 6.7 1 1 6.5-6.6 6.5 6.6 1-1z\"\n}));\nexport default close;\n//# sourceMappingURL=close.js.map","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport { createElement } from \"@wordpress/element\";\n\n/**\n * External dependencies\n */\n\n/**\n * WordPress dependencies\n */\nimport { createContext, useContext, useEffect, useMemo, useReducer } from '@wordpress/element';\nimport { defaultI18n } from '@wordpress/i18n';\n\n/**\n * Utility to make a new context value\n *\n * @param i18n\n */\nfunction makeContextValue(i18n) {\n return {\n __: i18n.__.bind(i18n),\n _x: i18n._x.bind(i18n),\n _n: i18n._n.bind(i18n),\n _nx: i18n._nx.bind(i18n),\n isRTL: i18n.isRTL.bind(i18n),\n hasTranslation: i18n.hasTranslation.bind(i18n)\n };\n}\n\nconst I18nContext = createContext(makeContextValue(defaultI18n));\n\n/**\n * The `I18nProvider` should be mounted above any localized components:\n *\n * @example\n * ```js\n * import { createI18n } from '@wordpress/react-i18n';\n * import { I18nProvider } from '@wordpress/react-i18n';\n * const i18n = createI18n();\n *\n * ReactDom.render(\n * \t<I18nProvider i18n={ i18n }>\n * \t\t<App />\n * \t</I18nProvider>,\n * \tel\n * );\n * ```\n *\n * You can also instantiate the provider without the `i18n` prop. In that case it will use the\n * default `I18n` instance exported from `@wordpress/i18n`.\n *\n * @param props i18n provider props.\n * @return Children wrapped in the I18nProvider.\n */\nexport function I18nProvider(props) {\n const {\n children,\n i18n = defaultI18n\n } = props;\n const [update, forceUpdate] = useReducer(() => [], []); // Rerender translations whenever the i18n instance fires a change event.\n\n useEffect(() => i18n.subscribe(forceUpdate), [i18n]);\n const value = useMemo(() => makeContextValue(i18n), [i18n, update]);\n return createElement(I18nContext.Provider, {\n value: value\n }, children);\n}\n/**\n * React hook providing access to i18n functions. It exposes the `__`, `_x`, `_n`, `_nx`,\n * `isRTL` and `hasTranslation` functions from [`@wordpress/i18n`](../i18n).\n * Refer to their documentation there.\n *\n * @example\n * ```js\n * import { useI18n } from '@wordpress/react-i18n';\n *\n * function MyComponent() {\n * \tconst { __ } = useI18n();\n * \treturn __( 'Hello, world!' );\n * }\n * ```\n */\n\nexport const useI18n = () => useContext(I18nContext);\n\n/**\n * React higher-order component that passes the i18n translate functions (the same set\n * as exposed by the `useI18n` hook) to the wrapped component as props.\n *\n * @example\n * ```js\n * import { withI18n } from '@wordpress/react-i18n';\n *\n * function MyComponent( { __ } ) {\n * \treturn __( 'Hello, world!' );\n * }\n *\n * export default withI18n( MyComponent );\n * ```\n *\n * @param InnerComponent React component to be wrapped and receive the i18n functions like `__`\n * @return The wrapped component\n */\nexport function withI18n(InnerComponent) {\n const EnhancedComponent = props => {\n const i18nProps = useI18n();\n return createElement(InnerComponent, _extends({}, props, i18nProps));\n };\n\n const innerComponentName = InnerComponent.displayName || InnerComponent.name || 'Component';\n EnhancedComponent.displayName = `WithI18n(${innerComponentName})`;\n return EnhancedComponent;\n}\n//# sourceMappingURL=index.js.map","module.exports = {\n \"100\": \"Continue\",\n \"101\": \"Switching Protocols\",\n \"102\": \"Processing\",\n \"200\": \"OK\",\n \"201\": \"Created\",\n \"202\": \"Accepted\",\n \"203\": \"Non-Authoritative Information\",\n \"204\": \"No Content\",\n \"205\": \"Reset Content\",\n \"206\": \"Partial Content\",\n \"207\": \"Multi-Status\",\n \"208\": \"Already Reported\",\n \"226\": \"IM Used\",\n \"300\": \"Multiple Choices\",\n \"301\": \"Moved Permanently\",\n \"302\": \"Found\",\n \"303\": \"See Other\",\n \"304\": \"Not Modified\",\n \"305\": \"Use Proxy\",\n \"307\": \"Temporary Redirect\",\n \"308\": \"Permanent Redirect\",\n \"400\": \"Bad Request\",\n \"401\": \"Unauthorized\",\n \"402\": \"Payment Required\",\n \"403\": \"Forbidden\",\n \"404\": \"Not Found\",\n \"405\": \"Method Not Allowed\",\n \"406\": \"Not Acceptable\",\n \"407\": \"Proxy Authentication Required\",\n \"408\": \"Request Timeout\",\n \"409\": \"Conflict\",\n \"410\": \"Gone\",\n \"411\": \"Length Required\",\n \"412\": \"Precondition Failed\",\n \"413\": \"Payload Too Large\",\n \"414\": \"URI Too Long\",\n \"415\": \"Unsupported Media Type\",\n \"416\": \"Range Not Satisfiable\",\n \"417\": \"Expectation Failed\",\n \"418\": \"I'm a teapot\",\n \"421\": \"Misdirected Request\",\n \"422\": \"Unprocessable Entity\",\n \"423\": \"Locked\",\n \"424\": \"Failed Dependency\",\n \"425\": \"Unordered Collection\",\n \"426\": \"Upgrade Required\",\n \"428\": \"Precondition Required\",\n \"429\": \"Too Many Requests\",\n \"431\": \"Request Header Fields Too Large\",\n \"500\": \"Internal Server Error\",\n \"501\": \"Not Implemented\",\n \"502\": \"Bad Gateway\",\n \"503\": \"Service Unavailable\",\n \"504\": \"Gateway Timeout\",\n \"505\": \"HTTP Version Not Supported\",\n \"506\": \"Variant Also Negotiates\",\n \"507\": \"Insufficient Storage\",\n \"508\": \"Loop Detected\",\n \"509\": \"Bandwidth Limit Exceeded\",\n \"510\": \"Not Extended\",\n \"511\": \"Network Authentication Required\"\n}\n","/*!\n Copyright (c) 2018 Jed Watson.\n Licensed under the MIT License (MIT), see\n http://jedwatson.github.io/classnames\n*/\n/* global define */\n\n(function () {\n\t'use strict';\n\n\tvar hasOwn = {}.hasOwnProperty;\n\n\tfunction classNames() {\n\t\tvar classes = [];\n\n\t\tfor (var i = 0; i < arguments.length; i++) {\n\t\t\tvar arg = arguments[i];\n\t\t\tif (!arg) continue;\n\n\t\t\tvar argType = typeof arg;\n\n\t\t\tif (argType === 'string' || argType === 'number') {\n\t\t\t\tclasses.push(arg);\n\t\t\t} else if (Array.isArray(arg)) {\n\t\t\t\tif (arg.length) {\n\t\t\t\t\tvar inner = classNames.apply(null, arg);\n\t\t\t\t\tif (inner) {\n\t\t\t\t\t\tclasses.push(inner);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else if (argType === 'object') {\n\t\t\t\tif (arg.toString === Object.prototype.toString) {\n\t\t\t\t\tfor (var key in arg) {\n\t\t\t\t\t\tif (hasOwn.call(arg, key) && arg[key]) {\n\t\t\t\t\t\t\tclasses.push(key);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tclasses.push(arg.toString());\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn classes.join(' ');\n\t}\n\n\tif (typeof module !== 'undefined' && module.exports) {\n\t\tclassNames.default = classNames;\n\t\tmodule.exports = classNames;\n\t} else if (typeof define === 'function' && typeof define.amd === 'object' && define.amd) {\n\t\t// register as 'classnames', consistent with npm package name\n\t\tdefine('classnames', [], function () {\n\t\t\treturn classNames;\n\t\t});\n\t} else {\n\t\twindow.classNames = classNames;\n\t}\n}());\n","/*!\n * cookie\n * Copyright(c) 2012-2014 Roman Shtylman\n * Copyright(c) 2015 Douglas Christopher Wilson\n * MIT Licensed\n */\n\n'use strict';\n\n/**\n * Module exports.\n * @public\n */\n\nexports.parse = parse;\nexports.serialize = serialize;\n\n/**\n * Module variables.\n * @private\n */\n\nvar decode = decodeURIComponent;\nvar encode = encodeURIComponent;\nvar pairSplitRegExp = /; */;\n\n/**\n * RegExp to match field-content in RFC 7230 sec 3.2\n *\n * field-content = field-vchar [ 1*( SP / HTAB ) field-vchar ]\n * field-vchar = VCHAR / obs-text\n * obs-text = %x80-FF\n */\n\nvar fieldContentRegExp = /^[\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+$/;\n\n/**\n * Parse a cookie header.\n *\n * Parse the given cookie header string into an object\n * The object has the various cookies as keys(names) => values\n *\n * @param {string} str\n * @param {object} [options]\n * @return {object}\n * @public\n */\n\nfunction parse(str, options) {\n if (typeof str !== 'string') {\n throw new TypeError('argument str must be a string');\n }\n\n var obj = {}\n var opt = options || {};\n var pairs = str.split(pairSplitRegExp);\n var dec = opt.decode || decode;\n\n for (var i = 0; i < pairs.length; i++) {\n var pair = pairs[i];\n var eq_idx = pair.indexOf('=');\n\n // skip things that don't look like key=value\n if (eq_idx < 0) {\n continue;\n }\n\n var key = pair.substr(0, eq_idx).trim()\n var val = pair.substr(++eq_idx, pair.length).trim();\n\n // quoted values\n if ('\"' == val[0]) {\n val = val.slice(1, -1);\n }\n\n // only assign once\n if (undefined == obj[key]) {\n obj[key] = tryDecode(val, dec);\n }\n }\n\n return obj;\n}\n\n/**\n * Serialize data into a cookie header.\n *\n * Serialize the a name value pair into a cookie string suitable for\n * http headers. An optional options object specified cookie parameters.\n *\n * serialize('foo', 'bar', { httpOnly: true })\n * => \"foo=bar; httpOnly\"\n *\n * @param {string} name\n * @param {string} val\n * @param {object} [options]\n * @return {string}\n * @public\n */\n\nfunction serialize(name, val, options) {\n var opt = options || {};\n var enc = opt.encode || encode;\n\n if (typeof enc !== 'function') {\n throw new TypeError('option encode is invalid');\n }\n\n if (!fieldContentRegExp.test(name)) {\n throw new TypeError('argument name is invalid');\n }\n\n var value = enc(val);\n\n if (value && !fieldContentRegExp.test(value)) {\n throw new TypeError('argument val is invalid');\n }\n\n var str = name + '=' + value;\n\n if (null != opt.maxAge) {\n var maxAge = opt.maxAge - 0;\n\n if (isNaN(maxAge) || !isFinite(maxAge)) {\n throw new TypeError('option maxAge is invalid')\n }\n\n str += '; Max-Age=' + Math.floor(maxAge);\n }\n\n if (opt.domain) {\n if (!fieldContentRegExp.test(opt.domain)) {\n throw new TypeError('option domain is invalid');\n }\n\n str += '; Domain=' + opt.domain;\n }\n\n if (opt.path) {\n if (!fieldContentRegExp.test(opt.path)) {\n throw new TypeError('option path is invalid');\n }\n\n str += '; Path=' + opt.path;\n }\n\n if (opt.expires) {\n if (typeof opt.expires.toUTCString !== 'function') {\n throw new TypeError('option expires is invalid');\n }\n\n str += '; Expires=' + opt.expires.toUTCString();\n }\n\n if (opt.httpOnly) {\n str += '; HttpOnly';\n }\n\n if (opt.secure) {\n str += '; Secure';\n }\n\n if (opt.sameSite) {\n var sameSite = typeof opt.sameSite === 'string'\n ? opt.sameSite.toLowerCase() : opt.sameSite;\n\n switch (sameSite) {\n case true:\n str += '; SameSite=Strict';\n break;\n case 'lax':\n str += '; SameSite=Lax';\n break;\n case 'strict':\n str += '; SameSite=Strict';\n break;\n case 'none':\n str += '; SameSite=None';\n break;\n default:\n throw new TypeError('option sameSite is invalid');\n }\n }\n\n return str;\n}\n\n/**\n * Try decoding a string using a decoding function.\n *\n * @param {string} str\n * @param {function} decode\n * @private\n */\n\nfunction tryDecode(str, decode) {\n try {\n return decode(str);\n } catch (e) {\n return str;\n }\n}\n","/**\n * Helpers.\n */\n\nvar s = 1000;\nvar m = s * 60;\nvar h = m * 60;\nvar d = h * 24;\nvar w = d * 7;\nvar y = d * 365.25;\n\n/**\n * Parse or format the given `val`.\n *\n * Options:\n *\n * - `long` verbose formatting [false]\n *\n * @param {String|Number} val\n * @param {Object} [options]\n * @throws {Error} throw an error if val is not a non-empty string or a number\n * @return {String|Number}\n * @api public\n */\n\nmodule.exports = function(val, options) {\n options = options || {};\n var type = typeof val;\n if (type === 'string' && val.length > 0) {\n return parse(val);\n } else if (type === 'number' && isFinite(val)) {\n return options.long ? fmtLong(val) : fmtShort(val);\n }\n throw new Error(\n 'val is not a non-empty string or a valid number. val=' +\n JSON.stringify(val)\n );\n};\n\n/**\n * Parse the given `str` and return milliseconds.\n *\n * @param {String} str\n * @return {Number}\n * @api private\n */\n\nfunction parse(str) {\n str = String(str);\n if (str.length > 100) {\n return;\n }\n var match = /^(-?(?:\\d+)?\\.?\\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(\n str\n );\n if (!match) {\n return;\n }\n var n = parseFloat(match[1]);\n var type = (match[2] || 'ms').toLowerCase();\n switch (type) {\n case 'years':\n case 'year':\n case 'yrs':\n case 'yr':\n case 'y':\n return n * y;\n case 'weeks':\n case 'week':\n case 'w':\n return n * w;\n case 'days':\n case 'day':\n case 'd':\n return n * d;\n case 'hours':\n case 'hour':\n case 'hrs':\n case 'hr':\n case 'h':\n return n * h;\n case 'minutes':\n case 'minute':\n case 'mins':\n case 'min':\n case 'm':\n return n * m;\n case 'seconds':\n case 'second':\n case 'secs':\n case 'sec':\n case 's':\n return n * s;\n case 'milliseconds':\n case 'millisecond':\n case 'msecs':\n case 'msec':\n case 'ms':\n return n;\n default:\n return undefined;\n }\n}\n\n/**\n * Short format for `ms`.\n *\n * @param {Number} ms\n * @return {String}\n * @api private\n */\n\nfunction fmtShort(ms) {\n var msAbs = Math.abs(ms);\n if (msAbs >= d) {\n return Math.round(ms / d) + 'd';\n }\n if (msAbs >= h) {\n return Math.round(ms / h) + 'h';\n }\n if (msAbs >= m) {\n return Math.round(ms / m) + 'm';\n }\n if (msAbs >= s) {\n return Math.round(ms / s) + 's';\n }\n return ms + 'ms';\n}\n\n/**\n * Long format for `ms`.\n *\n * @param {Number} ms\n * @return {String}\n * @api private\n */\n\nfunction fmtLong(ms) {\n var msAbs = Math.abs(ms);\n if (msAbs >= d) {\n return plural(ms, msAbs, d, 'day');\n }\n if (msAbs >= h) {\n return plural(ms, msAbs, h, 'hour');\n }\n if (msAbs >= m) {\n return plural(ms, msAbs, m, 'minute');\n }\n if (msAbs >= s) {\n return plural(ms, msAbs, s, 'second');\n }\n return ms + ' ms';\n}\n\n/**\n * Pluralization helper.\n */\n\nfunction plural(ms, msAbs, n, name) {\n var isPlural = msAbs >= n * 1.5;\n return Math.round(ms / n) + ' ' + name + (isPlural ? 's' : '');\n}\n","// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n'use strict';\n\nvar R = typeof Reflect === 'object' ? Reflect : null\nvar ReflectApply = R && typeof R.apply === 'function'\n ? R.apply\n : function ReflectApply(target, receiver, args) {\n return Function.prototype.apply.call(target, receiver, args);\n }\n\nvar ReflectOwnKeys\nif (R && typeof R.ownKeys === 'function') {\n ReflectOwnKeys = R.ownKeys\n} else if (Object.getOwnPropertySymbols) {\n ReflectOwnKeys = function ReflectOwnKeys(target) {\n return Object.getOwnPropertyNames(target)\n .concat(Object.getOwnPropertySymbols(target));\n };\n} else {\n ReflectOwnKeys = function ReflectOwnKeys(target) {\n return Object.getOwnPropertyNames(target);\n };\n}\n\nfunction ProcessEmitWarning(warning) {\n if (console && console.warn) console.warn(warning);\n}\n\nvar NumberIsNaN = Number.isNaN || function NumberIsNaN(value) {\n return value !== value;\n}\n\nfunction EventEmitter() {\n EventEmitter.init.call(this);\n}\nmodule.exports = EventEmitter;\nmodule.exports.once = once;\n\n// Backwards-compat with node 0.10.x\nEventEmitter.EventEmitter = EventEmitter;\n\nEventEmitter.prototype._events = undefined;\nEventEmitter.prototype._eventsCount = 0;\nEventEmitter.prototype._maxListeners = undefined;\n\n// By default EventEmitters will print a warning if more than 10 listeners are\n// added to it. This is a useful default which helps finding memory leaks.\nvar defaultMaxListeners = 10;\n\nfunction checkListener(listener) {\n if (typeof listener !== 'function') {\n throw new TypeError('The \"listener\" argument must be of type Function. Received type ' + typeof listener);\n }\n}\n\nObject.defineProperty(EventEmitter, 'defaultMaxListeners', {\n enumerable: true,\n get: function() {\n return defaultMaxListeners;\n },\n set: function(arg) {\n if (typeof arg !== 'number' || arg < 0 || NumberIsNaN(arg)) {\n throw new RangeError('The value of \"defaultMaxListeners\" is out of range. It must be a non-negative number. Received ' + arg + '.');\n }\n defaultMaxListeners = arg;\n }\n});\n\nEventEmitter.init = function() {\n\n if (this._events === undefined ||\n this._events === Object.getPrototypeOf(this)._events) {\n this._events = Object.create(null);\n this._eventsCount = 0;\n }\n\n this._maxListeners = this._maxListeners || undefined;\n};\n\n// Obviously not all Emitters should be limited to 10. This function allows\n// that to be increased. Set to zero for unlimited.\nEventEmitter.prototype.setMaxListeners = function setMaxListeners(n) {\n if (typeof n !== 'number' || n < 0 || NumberIsNaN(n)) {\n throw new RangeError('The value of \"n\" is out of range. It must be a non-negative number. Received ' + n + '.');\n }\n this._maxListeners = n;\n return this;\n};\n\nfunction _getMaxListeners(that) {\n if (that._maxListeners === undefined)\n return EventEmitter.defaultMaxListeners;\n return that._maxListeners;\n}\n\nEventEmitter.prototype.getMaxListeners = function getMaxListeners() {\n return _getMaxListeners(this);\n};\n\nEventEmitter.prototype.emit = function emit(type) {\n var args = [];\n for (var i = 1; i < arguments.length; i++) args.push(arguments[i]);\n var doError = (type === 'error');\n\n var events = this._events;\n if (events !== undefined)\n doError = (doError && events.error === undefined);\n else if (!doError)\n return false;\n\n // If there is no 'error' event listener then throw.\n if (doError) {\n var er;\n if (args.length > 0)\n er = args[0];\n if (er instanceof Error) {\n // Note: The comments on the `throw` lines are intentional, they show\n // up in Node's output if this results in an unhandled exception.\n throw er; // Unhandled 'error' event\n }\n // At least give some kind of context to the user\n var err = new Error('Unhandled error.' + (er ? ' (' + er.message + ')' : ''));\n err.context = er;\n throw err; // Unhandled 'error' event\n }\n\n var handler = events[type];\n\n if (handler === undefined)\n return false;\n\n if (typeof handler === 'function') {\n ReflectApply(handler, this, args);\n } else {\n var len = handler.length;\n var listeners = arrayClone(handler, len);\n for (var i = 0; i < len; ++i)\n ReflectApply(listeners[i], this, args);\n }\n\n return true;\n};\n\nfunction _addListener(target, type, listener, prepend) {\n var m;\n var events;\n var existing;\n\n checkListener(listener);\n\n events = target._events;\n if (events === undefined) {\n events = target._events = Object.create(null);\n target._eventsCount = 0;\n } else {\n // To avoid recursion in the case that type === \"newListener\"! Before\n // adding it to the listeners, first emit \"newListener\".\n if (events.newListener !== undefined) {\n target.emit('newListener', type,\n listener.listener ? listener.listener : listener);\n\n // Re-assign `events` because a newListener handler could have caused the\n // this._events to be assigned to a new object\n events = target._events;\n }\n existing = events[type];\n }\n\n if (existing === undefined) {\n // Optimize the case of one listener. Don't need the extra array object.\n existing = events[type] = listener;\n ++target._eventsCount;\n } else {\n if (typeof existing === 'function') {\n // Adding the second element, need to change to array.\n existing = events[type] =\n prepend ? [listener, existing] : [existing, listener];\n // If we've already got an array, just append.\n } else if (prepend) {\n existing.unshift(listener);\n } else {\n existing.push(listener);\n }\n\n // Check for listener leak\n m = _getMaxListeners(target);\n if (m > 0 && existing.length > m && !existing.warned) {\n existing.warned = true;\n // No error code for this since it is a Warning\n // eslint-disable-next-line no-restricted-syntax\n var w = new Error('Possible EventEmitter memory leak detected. ' +\n existing.length + ' ' + String(type) + ' listeners ' +\n 'added. Use emitter.setMaxListeners() to ' +\n 'increase limit');\n w.name = 'MaxListenersExceededWarning';\n w.emitter = target;\n w.type = type;\n w.count = existing.length;\n ProcessEmitWarning(w);\n }\n }\n\n return target;\n}\n\nEventEmitter.prototype.addListener = function addListener(type, listener) {\n return _addListener(this, type, listener, false);\n};\n\nEventEmitter.prototype.on = EventEmitter.prototype.addListener;\n\nEventEmitter.prototype.prependListener =\n function prependListener(type, listener) {\n return _addListener(this, type, listener, true);\n };\n\nfunction onceWrapper() {\n if (!this.fired) {\n this.target.removeListener(this.type, this.wrapFn);\n this.fired = true;\n if (arguments.length === 0)\n return this.listener.call(this.target);\n return this.listener.apply(this.target, arguments);\n }\n}\n\nfunction _onceWrap(target, type, listener) {\n var state = { fired: false, wrapFn: undefined, target: target, type: type, listener: listener };\n var wrapped = onceWrapper.bind(state);\n wrapped.listener = listener;\n state.wrapFn = wrapped;\n return wrapped;\n}\n\nEventEmitter.prototype.once = function once(type, listener) {\n checkListener(listener);\n this.on(type, _onceWrap(this, type, listener));\n return this;\n};\n\nEventEmitter.prototype.prependOnceListener =\n function prependOnceListener(type, listener) {\n checkListener(listener);\n this.prependListener(type, _onceWrap(this, type, listener));\n return this;\n };\n\n// Emits a 'removeListener' event if and only if the listener was removed.\nEventEmitter.prototype.removeListener =\n function removeListener(type, listener) {\n var list, events, position, i, originalListener;\n\n checkListener(listener);\n\n events = this._events;\n if (events === undefined)\n return this;\n\n list = events[type];\n if (list === undefined)\n return this;\n\n if (list === listener || list.listener === listener) {\n if (--this._eventsCount === 0)\n this._events = Object.create(null);\n else {\n delete events[type];\n if (events.removeListener)\n this.emit('removeListener', type, list.listener || listener);\n }\n } else if (typeof list !== 'function') {\n position = -1;\n\n for (i = list.length - 1; i >= 0; i--) {\n if (list[i] === listener || list[i].listener === listener) {\n originalListener = list[i].listener;\n position = i;\n break;\n }\n }\n\n if (position < 0)\n return this;\n\n if (position === 0)\n list.shift();\n else {\n spliceOne(list, position);\n }\n\n if (list.length === 1)\n events[type] = list[0];\n\n if (events.removeListener !== undefined)\n this.emit('removeListener', type, originalListener || listener);\n }\n\n return this;\n };\n\nEventEmitter.prototype.off = EventEmitter.prototype.removeListener;\n\nEventEmitter.prototype.removeAllListeners =\n function removeAllListeners(type) {\n var listeners, events, i;\n\n events = this._events;\n if (events === undefined)\n return this;\n\n // not listening for removeListener, no need to emit\n if (events.removeListener === undefined) {\n if (arguments.length === 0) {\n this._events = Object.create(null);\n this._eventsCount = 0;\n } else if (events[type] !== undefined) {\n if (--this._eventsCount === 0)\n this._events = Object.create(null);\n else\n delete events[type];\n }\n return this;\n }\n\n // emit removeListener for all listeners on all events\n if (arguments.length === 0) {\n var keys = Object.keys(events);\n var key;\n for (i = 0; i < keys.length; ++i) {\n key = keys[i];\n if (key === 'removeListener') continue;\n this.removeAllListeners(key);\n }\n this.removeAllListeners('removeListener');\n this._events = Object.create(null);\n this._eventsCount = 0;\n return this;\n }\n\n listeners = events[type];\n\n if (typeof listeners === 'function') {\n this.removeListener(type, listeners);\n } else if (listeners !== undefined) {\n // LIFO order\n for (i = listeners.length - 1; i >= 0; i--) {\n this.removeListener(type, listeners[i]);\n }\n }\n\n return this;\n };\n\nfunction _listeners(target, type, unwrap) {\n var events = target._events;\n\n if (events === undefined)\n return [];\n\n var evlistener = events[type];\n if (evlistener === undefined)\n return [];\n\n if (typeof evlistener === 'function')\n return unwrap ? [evlistener.listener || evlistener] : [evlistener];\n\n return unwrap ?\n unwrapListeners(evlistener) : arrayClone(evlistener, evlistener.length);\n}\n\nEventEmitter.prototype.listeners = function listeners(type) {\n return _listeners(this, type, true);\n};\n\nEventEmitter.prototype.rawListeners = function rawListeners(type) {\n return _listeners(this, type, false);\n};\n\nEventEmitter.listenerCount = function(emitter, type) {\n if (typeof emitter.listenerCount === 'function') {\n return emitter.listenerCount(type);\n } else {\n return listenerCount.call(emitter, type);\n }\n};\n\nEventEmitter.prototype.listenerCount = listenerCount;\nfunction listenerCount(type) {\n var events = this._events;\n\n if (events !== undefined) {\n var evlistener = events[type];\n\n if (typeof evlistener === 'function') {\n return 1;\n } else if (evlistener !== undefined) {\n return evlistener.length;\n }\n }\n\n return 0;\n}\n\nEventEmitter.prototype.eventNames = function eventNames() {\n return this._eventsCount > 0 ? ReflectOwnKeys(this._events) : [];\n};\n\nfunction arrayClone(arr, n) {\n var copy = new Array(n);\n for (var i = 0; i < n; ++i)\n copy[i] = arr[i];\n return copy;\n}\n\nfunction spliceOne(list, index) {\n for (; index + 1 < list.length; index++)\n list[index] = list[index + 1];\n list.pop();\n}\n\nfunction unwrapListeners(arr) {\n var ret = new Array(arr.length);\n for (var i = 0; i < ret.length; ++i) {\n ret[i] = arr[i].listener || arr[i];\n }\n return ret;\n}\n\nfunction once(emitter, name) {\n return new Promise(function (resolve, reject) {\n function errorListener(err) {\n emitter.removeListener(name, resolver);\n reject(err);\n }\n\n function resolver() {\n if (typeof emitter.removeListener === 'function') {\n emitter.removeListener('error', errorListener);\n }\n resolve([].slice.call(arguments));\n };\n\n eventTargetAgnosticAddListener(emitter, name, resolver, { once: true });\n if (name !== 'error') {\n addErrorHandlerIfEventEmitter(emitter, errorListener, { once: true });\n }\n });\n}\n\nfunction addErrorHandlerIfEventEmitter(emitter, handler, flags) {\n if (typeof emitter.on === 'function') {\n eventTargetAgnosticAddListener(emitter, 'error', handler, flags);\n }\n}\n\nfunction eventTargetAgnosticAddListener(emitter, name, listener, flags) {\n if (typeof emitter.on === 'function') {\n if (flags.once) {\n emitter.once(name, listener);\n } else {\n emitter.on(name, listener);\n }\n } else if (typeof emitter.addEventListener === 'function') {\n // EventTarget does not have `error` event semantics like Node\n // EventEmitters, we do not listen for `error` events here.\n emitter.addEventListener(name, function wrapListener(arg) {\n // IE does not have builtin `{ once: true }` support so we\n // have to do it manually.\n if (flags.once) {\n emitter.removeEventListener(name, wrapListener);\n }\n listener(arg);\n });\n } else {\n throw new TypeError('The \"emitter\" argument must be of type EventEmitter. Received type ' + typeof emitter);\n }\n}\n","'use strict';\n\nvar utils = require('./utils');\nvar assert = require('minimalistic-assert');\n\nfunction BlockHash() {\n this.pending = null;\n this.pendingTotal = 0;\n this.blockSize = this.constructor.blockSize;\n this.outSize = this.constructor.outSize;\n this.hmacStrength = this.constructor.hmacStrength;\n this.padLength = this.constructor.padLength / 8;\n this.endian = 'big';\n\n this._delta8 = this.blockSize / 8;\n this._delta32 = this.blockSize / 32;\n}\nexports.BlockHash = BlockHash;\n\nBlockHash.prototype.update = function update(msg, enc) {\n // Convert message to array, pad it, and join into 32bit blocks\n msg = utils.toArray(msg, enc);\n if (!this.pending)\n this.pending = msg;\n else\n this.pending = this.pending.concat(msg);\n this.pendingTotal += msg.length;\n\n // Enough data, try updating\n if (this.pending.length >= this._delta8) {\n msg = this.pending;\n\n // Process pending data in blocks\n var r = msg.length % this._delta8;\n this.pending = msg.slice(msg.length - r, msg.length);\n if (this.pending.length === 0)\n this.pending = null;\n\n msg = utils.join32(msg, 0, msg.length - r, this.endian);\n for (var i = 0; i < msg.length; i += this._delta32)\n this._update(msg, i, i + this._delta32);\n }\n\n return this;\n};\n\nBlockHash.prototype.digest = function digest(enc) {\n this.update(this._pad());\n assert(this.pending === null);\n\n return this._digest(enc);\n};\n\nBlockHash.prototype._pad = function pad() {\n var len = this.pendingTotal;\n var bytes = this._delta8;\n var k = bytes - ((len + this.padLength) % bytes);\n var res = new Array(k + this.padLength);\n res[0] = 0x80;\n for (var i = 1; i < k; i++)\n res[i] = 0;\n\n // Append length\n len <<= 3;\n if (this.endian === 'big') {\n for (var t = 8; t < this.padLength; t++)\n res[i++] = 0;\n\n res[i++] = 0;\n res[i++] = 0;\n res[i++] = 0;\n res[i++] = 0;\n res[i++] = (len >>> 24) & 0xff;\n res[i++] = (len >>> 16) & 0xff;\n res[i++] = (len >>> 8) & 0xff;\n res[i++] = len & 0xff;\n } else {\n res[i++] = len & 0xff;\n res[i++] = (len >>> 8) & 0xff;\n res[i++] = (len >>> 16) & 0xff;\n res[i++] = (len >>> 24) & 0xff;\n res[i++] = 0;\n res[i++] = 0;\n res[i++] = 0;\n res[i++] = 0;\n\n for (t = 8; t < this.padLength; t++)\n res[i++] = 0;\n }\n\n return res;\n};\n","'use strict';\n\nvar utils = require('../utils');\nvar common = require('../common');\nvar shaCommon = require('./common');\n\nvar rotl32 = utils.rotl32;\nvar sum32 = utils.sum32;\nvar sum32_5 = utils.sum32_5;\nvar ft_1 = shaCommon.ft_1;\nvar BlockHash = common.BlockHash;\n\nvar sha1_K = [\n 0x5A827999, 0x6ED9EBA1,\n 0x8F1BBCDC, 0xCA62C1D6\n];\n\nfunction SHA1() {\n if (!(this instanceof SHA1))\n return new SHA1();\n\n BlockHash.call(this);\n this.h = [\n 0x67452301, 0xefcdab89, 0x98badcfe,\n 0x10325476, 0xc3d2e1f0 ];\n this.W = new Array(80);\n}\n\nutils.inherits(SHA1, BlockHash);\nmodule.exports = SHA1;\n\nSHA1.blockSize = 512;\nSHA1.outSize = 160;\nSHA1.hmacStrength = 80;\nSHA1.padLength = 64;\n\nSHA1.prototype._update = function _update(msg, start) {\n var W = this.W;\n\n for (var i = 0; i < 16; i++)\n W[i] = msg[start + i];\n\n for(; i < W.length; i++)\n W[i] = rotl32(W[i - 3] ^ W[i - 8] ^ W[i - 14] ^ W[i - 16], 1);\n\n var a = this.h[0];\n var b = this.h[1];\n var c = this.h[2];\n var d = this.h[3];\n var e = this.h[4];\n\n for (i = 0; i < W.length; i++) {\n var s = ~~(i / 20);\n var t = sum32_5(rotl32(a, 5), ft_1(s, b, c, d), e, W[i], sha1_K[s]);\n e = d;\n d = c;\n c = rotl32(b, 30);\n b = a;\n a = t;\n }\n\n this.h[0] = sum32(this.h[0], a);\n this.h[1] = sum32(this.h[1], b);\n this.h[2] = sum32(this.h[2], c);\n this.h[3] = sum32(this.h[3], d);\n this.h[4] = sum32(this.h[4], e);\n};\n\nSHA1.prototype._digest = function digest(enc) {\n if (enc === 'hex')\n return utils.toHex32(this.h, 'big');\n else\n return utils.split32(this.h, 'big');\n};\n","'use strict';\n\nvar utils = require('../utils');\nvar common = require('../common');\nvar shaCommon = require('./common');\nvar assert = require('minimalistic-assert');\n\nvar sum32 = utils.sum32;\nvar sum32_4 = utils.sum32_4;\nvar sum32_5 = utils.sum32_5;\nvar ch32 = shaCommon.ch32;\nvar maj32 = shaCommon.maj32;\nvar s0_256 = shaCommon.s0_256;\nvar s1_256 = shaCommon.s1_256;\nvar g0_256 = shaCommon.g0_256;\nvar g1_256 = shaCommon.g1_256;\n\nvar BlockHash = common.BlockHash;\n\nvar sha256_K = [\n 0x428a2f98, 0x71374491, 0xb5c0fbcf, 0xe9b5dba5,\n 0x3956c25b, 0x59f111f1, 0x923f82a4, 0xab1c5ed5,\n 0xd807aa98, 0x12835b01, 0x243185be, 0x550c7dc3,\n 0x72be5d74, 0x80deb1fe, 0x9bdc06a7, 0xc19bf174,\n 0xe49b69c1, 0xefbe4786, 0x0fc19dc6, 0x240ca1cc,\n 0x2de92c6f, 0x4a7484aa, 0x5cb0a9dc, 0x76f988da,\n 0x983e5152, 0xa831c66d, 0xb00327c8, 0xbf597fc7,\n 0xc6e00bf3, 0xd5a79147, 0x06ca6351, 0x14292967,\n 0x27b70a85, 0x2e1b2138, 0x4d2c6dfc, 0x53380d13,\n 0x650a7354, 0x766a0abb, 0x81c2c92e, 0x92722c85,\n 0xa2bfe8a1, 0xa81a664b, 0xc24b8b70, 0xc76c51a3,\n 0xd192e819, 0xd6990624, 0xf40e3585, 0x106aa070,\n 0x19a4c116, 0x1e376c08, 0x2748774c, 0x34b0bcb5,\n 0x391c0cb3, 0x4ed8aa4a, 0x5b9cca4f, 0x682e6ff3,\n 0x748f82ee, 0x78a5636f, 0x84c87814, 0x8cc70208,\n 0x90befffa, 0xa4506ceb, 0xbef9a3f7, 0xc67178f2\n];\n\nfunction SHA256() {\n if (!(this instanceof SHA256))\n return new SHA256();\n\n BlockHash.call(this);\n this.h = [\n 0x6a09e667, 0xbb67ae85, 0x3c6ef372, 0xa54ff53a,\n 0x510e527f, 0x9b05688c, 0x1f83d9ab, 0x5be0cd19\n ];\n this.k = sha256_K;\n this.W = new Array(64);\n}\nutils.inherits(SHA256, BlockHash);\nmodule.exports = SHA256;\n\nSHA256.blockSize = 512;\nSHA256.outSize = 256;\nSHA256.hmacStrength = 192;\nSHA256.padLength = 64;\n\nSHA256.prototype._update = function _update(msg, start) {\n var W = this.W;\n\n for (var i = 0; i < 16; i++)\n W[i] = msg[start + i];\n for (; i < W.length; i++)\n W[i] = sum32_4(g1_256(W[i - 2]), W[i - 7], g0_256(W[i - 15]), W[i - 16]);\n\n var a = this.h[0];\n var b = this.h[1];\n var c = this.h[2];\n var d = this.h[3];\n var e = this.h[4];\n var f = this.h[5];\n var g = this.h[6];\n var h = this.h[7];\n\n assert(this.k.length === W.length);\n for (i = 0; i < W.length; i++) {\n var T1 = sum32_5(h, s1_256(e), ch32(e, f, g), this.k[i], W[i]);\n var T2 = sum32(s0_256(a), maj32(a, b, c));\n h = g;\n g = f;\n f = e;\n e = sum32(d, T1);\n d = c;\n c = b;\n b = a;\n a = sum32(T1, T2);\n }\n\n this.h[0] = sum32(this.h[0], a);\n this.h[1] = sum32(this.h[1], b);\n this.h[2] = sum32(this.h[2], c);\n this.h[3] = sum32(this.h[3], d);\n this.h[4] = sum32(this.h[4], e);\n this.h[5] = sum32(this.h[5], f);\n this.h[6] = sum32(this.h[6], g);\n this.h[7] = sum32(this.h[7], h);\n};\n\nSHA256.prototype._digest = function digest(enc) {\n if (enc === 'hex')\n return utils.toHex32(this.h, 'big');\n else\n return utils.split32(this.h, 'big');\n};\n","'use strict';\n\nvar utils = require('../utils');\nvar rotr32 = utils.rotr32;\n\nfunction ft_1(s, x, y, z) {\n if (s === 0)\n return ch32(x, y, z);\n if (s === 1 || s === 3)\n return p32(x, y, z);\n if (s === 2)\n return maj32(x, y, z);\n}\nexports.ft_1 = ft_1;\n\nfunction ch32(x, y, z) {\n return (x & y) ^ ((~x) & z);\n}\nexports.ch32 = ch32;\n\nfunction maj32(x, y, z) {\n return (x & y) ^ (x & z) ^ (y & z);\n}\nexports.maj32 = maj32;\n\nfunction p32(x, y, z) {\n return x ^ y ^ z;\n}\nexports.p32 = p32;\n\nfunction s0_256(x) {\n return rotr32(x, 2) ^ rotr32(x, 13) ^ rotr32(x, 22);\n}\nexports.s0_256 = s0_256;\n\nfunction s1_256(x) {\n return rotr32(x, 6) ^ rotr32(x, 11) ^ rotr32(x, 25);\n}\nexports.s1_256 = s1_256;\n\nfunction g0_256(x) {\n return rotr32(x, 7) ^ rotr32(x, 18) ^ (x >>> 3);\n}\nexports.g0_256 = g0_256;\n\nfunction g1_256(x) {\n return rotr32(x, 17) ^ rotr32(x, 19) ^ (x >>> 10);\n}\nexports.g1_256 = g1_256;\n","'use strict';\n\nvar assert = require('minimalistic-assert');\nvar inherits = require('inherits');\n\nexports.inherits = inherits;\n\nfunction isSurrogatePair(msg, i) {\n if ((msg.charCodeAt(i) & 0xFC00) !== 0xD800) {\n return false;\n }\n if (i < 0 || i + 1 >= msg.length) {\n return false;\n }\n return (msg.charCodeAt(i + 1) & 0xFC00) === 0xDC00;\n}\n\nfunction toArray(msg, enc) {\n if (Array.isArray(msg))\n return msg.slice();\n if (!msg)\n return [];\n var res = [];\n if (typeof msg === 'string') {\n if (!enc) {\n // Inspired by stringToUtf8ByteArray() in closure-library by Google\n // https://github.com/google/closure-library/blob/8598d87242af59aac233270742c8984e2b2bdbe0/closure/goog/crypt/crypt.js#L117-L143\n // Apache License 2.0\n // https://github.com/google/closure-library/blob/master/LICENSE\n var p = 0;\n for (var i = 0; i < msg.length; i++) {\n var c = msg.charCodeAt(i);\n if (c < 128) {\n res[p++] = c;\n } else if (c < 2048) {\n res[p++] = (c >> 6) | 192;\n res[p++] = (c & 63) | 128;\n } else if (isSurrogatePair(msg, i)) {\n c = 0x10000 + ((c & 0x03FF) << 10) + (msg.charCodeAt(++i) & 0x03FF);\n res[p++] = (c >> 18) | 240;\n res[p++] = ((c >> 12) & 63) | 128;\n res[p++] = ((c >> 6) & 63) | 128;\n res[p++] = (c & 63) | 128;\n } else {\n res[p++] = (c >> 12) | 224;\n res[p++] = ((c >> 6) & 63) | 128;\n res[p++] = (c & 63) | 128;\n }\n }\n } else if (enc === 'hex') {\n msg = msg.replace(/[^a-z0-9]+/ig, '');\n if (msg.length % 2 !== 0)\n msg = '0' + msg;\n for (i = 0; i < msg.length; i += 2)\n res.push(parseInt(msg[i] + msg[i + 1], 16));\n }\n } else {\n for (i = 0; i < msg.length; i++)\n res[i] = msg[i] | 0;\n }\n return res;\n}\nexports.toArray = toArray;\n\nfunction toHex(msg) {\n var res = '';\n for (var i = 0; i < msg.length; i++)\n res += zero2(msg[i].toString(16));\n return res;\n}\nexports.toHex = toHex;\n\nfunction htonl(w) {\n var res = (w >>> 24) |\n ((w >>> 8) & 0xff00) |\n ((w << 8) & 0xff0000) |\n ((w & 0xff) << 24);\n return res >>> 0;\n}\nexports.htonl = htonl;\n\nfunction toHex32(msg, endian) {\n var res = '';\n for (var i = 0; i < msg.length; i++) {\n var w = msg[i];\n if (endian === 'little')\n w = htonl(w);\n res += zero8(w.toString(16));\n }\n return res;\n}\nexports.toHex32 = toHex32;\n\nfunction zero2(word) {\n if (word.length === 1)\n return '0' + word;\n else\n return word;\n}\nexports.zero2 = zero2;\n\nfunction zero8(word) {\n if (word.length === 7)\n return '0' + word;\n else if (word.length === 6)\n return '00' + word;\n else if (word.length === 5)\n return '000' + word;\n else if (word.length === 4)\n return '0000' + word;\n else if (word.length === 3)\n return '00000' + word;\n else if (word.length === 2)\n return '000000' + word;\n else if (word.length === 1)\n return '0000000' + word;\n else\n return word;\n}\nexports.zero8 = zero8;\n\nfunction join32(msg, start, end, endian) {\n var len = end - start;\n assert(len % 4 === 0);\n var res = new Array(len / 4);\n for (var i = 0, k = start; i < res.length; i++, k += 4) {\n var w;\n if (endian === 'big')\n w = (msg[k] << 24) | (msg[k + 1] << 16) | (msg[k + 2] << 8) | msg[k + 3];\n else\n w = (msg[k + 3] << 24) | (msg[k + 2] << 16) | (msg[k + 1] << 8) | msg[k];\n res[i] = w >>> 0;\n }\n return res;\n}\nexports.join32 = join32;\n\nfunction split32(msg, endian) {\n var res = new Array(msg.length * 4);\n for (var i = 0, k = 0; i < msg.length; i++, k += 4) {\n var m = msg[i];\n if (endian === 'big') {\n res[k] = m >>> 24;\n res[k + 1] = (m >>> 16) & 0xff;\n res[k + 2] = (m >>> 8) & 0xff;\n res[k + 3] = m & 0xff;\n } else {\n res[k + 3] = m >>> 24;\n res[k + 2] = (m >>> 16) & 0xff;\n res[k + 1] = (m >>> 8) & 0xff;\n res[k] = m & 0xff;\n }\n }\n return res;\n}\nexports.split32 = split32;\n\nfunction rotr32(w, b) {\n return (w >>> b) | (w << (32 - b));\n}\nexports.rotr32 = rotr32;\n\nfunction rotl32(w, b) {\n return (w << b) | (w >>> (32 - b));\n}\nexports.rotl32 = rotl32;\n\nfunction sum32(a, b) {\n return (a + b) >>> 0;\n}\nexports.sum32 = sum32;\n\nfunction sum32_3(a, b, c) {\n return (a + b + c) >>> 0;\n}\nexports.sum32_3 = sum32_3;\n\nfunction sum32_4(a, b, c, d) {\n return (a + b + c + d) >>> 0;\n}\nexports.sum32_4 = sum32_4;\n\nfunction sum32_5(a, b, c, d, e) {\n return (a + b + c + d + e) >>> 0;\n}\nexports.sum32_5 = sum32_5;\n\nfunction sum64(buf, pos, ah, al) {\n var bh = buf[pos];\n var bl = buf[pos + 1];\n\n var lo = (al + bl) >>> 0;\n var hi = (lo < al ? 1 : 0) + ah + bh;\n buf[pos] = hi >>> 0;\n buf[pos + 1] = lo;\n}\nexports.sum64 = sum64;\n\nfunction sum64_hi(ah, al, bh, bl) {\n var lo = (al + bl) >>> 0;\n var hi = (lo < al ? 1 : 0) + ah + bh;\n return hi >>> 0;\n}\nexports.sum64_hi = sum64_hi;\n\nfunction sum64_lo(ah, al, bh, bl) {\n var lo = al + bl;\n return lo >>> 0;\n}\nexports.sum64_lo = sum64_lo;\n\nfunction sum64_4_hi(ah, al, bh, bl, ch, cl, dh, dl) {\n var carry = 0;\n var lo = al;\n lo = (lo + bl) >>> 0;\n carry += lo < al ? 1 : 0;\n lo = (lo + cl) >>> 0;\n carry += lo < cl ? 1 : 0;\n lo = (lo + dl) >>> 0;\n carry += lo < dl ? 1 : 0;\n\n var hi = ah + bh + ch + dh + carry;\n return hi >>> 0;\n}\nexports.sum64_4_hi = sum64_4_hi;\n\nfunction sum64_4_lo(ah, al, bh, bl, ch, cl, dh, dl) {\n var lo = al + bl + cl + dl;\n return lo >>> 0;\n}\nexports.sum64_4_lo = sum64_4_lo;\n\nfunction sum64_5_hi(ah, al, bh, bl, ch, cl, dh, dl, eh, el) {\n var carry = 0;\n var lo = al;\n lo = (lo + bl) >>> 0;\n carry += lo < al ? 1 : 0;\n lo = (lo + cl) >>> 0;\n carry += lo < cl ? 1 : 0;\n lo = (lo + dl) >>> 0;\n carry += lo < dl ? 1 : 0;\n lo = (lo + el) >>> 0;\n carry += lo < el ? 1 : 0;\n\n var hi = ah + bh + ch + dh + eh + carry;\n return hi >>> 0;\n}\nexports.sum64_5_hi = sum64_5_hi;\n\nfunction sum64_5_lo(ah, al, bh, bl, ch, cl, dh, dl, eh, el) {\n var lo = al + bl + cl + dl + el;\n\n return lo >>> 0;\n}\nexports.sum64_5_lo = sum64_5_lo;\n\nfunction rotr64_hi(ah, al, num) {\n var r = (al << (32 - num)) | (ah >>> num);\n return r >>> 0;\n}\nexports.rotr64_hi = rotr64_hi;\n\nfunction rotr64_lo(ah, al, num) {\n var r = (ah << (32 - num)) | (al >>> num);\n return r >>> 0;\n}\nexports.rotr64_lo = rotr64_lo;\n\nfunction shr64_hi(ah, al, num) {\n return ah >>> num;\n}\nexports.shr64_hi = shr64_hi;\n\nfunction shr64_lo(ah, al, num) {\n var r = (ah << (32 - num)) | (al >>> num);\n return r >>> 0;\n}\nexports.shr64_lo = shr64_lo;\n","if (typeof Object.create === 'function') {\n // implementation from standard node.js 'util' module\n module.exports = function inherits(ctor, superCtor) {\n if (superCtor) {\n ctor.super_ = superCtor\n ctor.prototype = Object.create(superCtor.prototype, {\n constructor: {\n value: ctor,\n enumerable: false,\n writable: true,\n configurable: true\n }\n })\n }\n };\n} else {\n // old school shim for old browsers\n module.exports = function inherits(ctor, superCtor) {\n if (superCtor) {\n ctor.super_ = superCtor\n var TempCtor = function () {}\n TempCtor.prototype = superCtor.prototype\n ctor.prototype = new TempCtor()\n ctor.prototype.constructor = ctor\n }\n }\n}\n","var events = require('events')\nvar inherits = require('inherits')\n\nmodule.exports = LRU\n\nfunction LRU (opts) {\n if (!(this instanceof LRU)) return new LRU(opts)\n if (typeof opts === 'number') opts = {max: opts}\n if (!opts) opts = {}\n events.EventEmitter.call(this)\n this.cache = {}\n this.head = this.tail = null\n this.length = 0\n this.max = opts.max || 1000\n this.maxAge = opts.maxAge || 0\n}\n\ninherits(LRU, events.EventEmitter)\n\nObject.defineProperty(LRU.prototype, 'keys', {\n get: function () { return Object.keys(this.cache) }\n})\n\nLRU.prototype.clear = function () {\n this.cache = {}\n this.head = this.tail = null\n this.length = 0\n}\n\nLRU.prototype.remove = function (key) {\n if (typeof key !== 'string') key = '' + key\n if (!this.cache.hasOwnProperty(key)) return\n\n var element = this.cache[key]\n delete this.cache[key]\n this._unlink(key, element.prev, element.next)\n return element.value\n}\n\nLRU.prototype._unlink = function (key, prev, next) {\n this.length--\n\n if (this.length === 0) {\n this.head = this.tail = null\n } else {\n if (this.head === key) {\n this.head = prev\n this.cache[this.head].next = null\n } else if (this.tail === key) {\n this.tail = next\n this.cache[this.tail].prev = null\n } else {\n this.cache[prev].next = next\n this.cache[next].prev = prev\n }\n }\n}\n\nLRU.prototype.peek = function (key) {\n if (!this.cache.hasOwnProperty(key)) return\n\n var element = this.cache[key]\n\n if (!this._checkAge(key, element)) return\n return element.value\n}\n\nLRU.prototype.set = function (key, value) {\n if (typeof key !== 'string') key = '' + key\n\n var element\n\n if (this.cache.hasOwnProperty(key)) {\n element = this.cache[key]\n element.value = value\n if (this.maxAge) element.modified = Date.now()\n\n // If it's already the head, there's nothing more to do:\n if (key === this.head) return value\n this._unlink(key, element.prev, element.next)\n } else {\n element = {value: value, modified: 0, next: null, prev: null}\n if (this.maxAge) element.modified = Date.now()\n this.cache[key] = element\n\n // Eviction is only possible if the key didn't already exist:\n if (this.length === this.max) this.evict()\n }\n\n this.length++\n element.next = null\n element.prev = this.head\n\n if (this.head) this.cache[this.head].next = key\n this.head = key\n\n if (!this.tail) this.tail = key\n return value\n}\n\nLRU.prototype._checkAge = function (key, element) {\n if (this.maxAge && (Date.now() - element.modified) > this.maxAge) {\n this.remove(key)\n this.emit('evict', {key: key, value: element.value})\n return false\n }\n return true\n}\n\nLRU.prototype.get = function (key) {\n if (typeof key !== 'string') key = '' + key\n if (!this.cache.hasOwnProperty(key)) return\n\n var element = this.cache[key]\n\n if (!this._checkAge(key, element)) return\n\n if (this.head !== key) {\n if (key === this.tail) {\n this.tail = element.next\n this.cache[this.tail].prev = null\n } else {\n // Set prev.next -> element.next:\n this.cache[element.prev].next = element.next\n }\n\n // Set element.next.prev -> element.prev:\n this.cache[element.next].prev = element.prev\n\n // Element is the new head\n this.cache[this.head].next = key\n element.prev = this.head\n element.next = null\n this.head = key\n }\n\n return element.value\n}\n\nLRU.prototype.evict = function () {\n if (!this.tail) return\n var key = this.tail\n var value = this.remove(this.tail)\n this.emit('evict', {key: key, value: value})\n}\n","module.exports = assert;\n\nfunction assert(val, msg) {\n if (!val)\n throw new Error(msg || 'Assertion failed');\n}\n\nassert.equal = function assertEqual(l, r, msg) {\n if (l != r)\n throw new Error(msg || ('Assertion failed: ' + l + ' != ' + r));\n};\n","\nvar NativeProgressEvent = global.ProgressEvent;\nvar useNative = !!NativeProgressEvent;\n\ntry {\n (function () {\n var p = new NativeProgressEvent('loaded');\n useNative = 'loaded' === p.type;\n p = null;\n })();\n} catch (e) {\n useNative = false;\n}\n\n/**\n * Cross-browser `ProgressEvent` constructor.\n *\n * https://developer.mozilla.org/en-US/docs/Web/API/ProgressEvent.ProgressEvent\n *\n * @public\n */\n\nmodule.exports = useNative ? NativeProgressEvent :\n\n// IE >= 9\n'function' === typeof document.createEvent ? function ProgressEvent (type, props) {\n var e = document.createEvent('Event');\n e.initEvent(type, false, false);\n if (props) {\n e.lengthComputable = Boolean(props.lengthComputable);\n e.loaded = Number(props.loaded) || 0;\n e.total = Number(props.total) || 0;\n } else {\n e.lengthComputable = false;\n e.loaded = e.total = 0;\n }\n return e;\n} :\n\n// IE <= 8\nfunction ProgressEvent (type, props) {\n var e = document.createEventObject();\n e.type = type;\n if (props) {\n e.lengthComputable = Boolean(props.lengthComputable);\n e.loaded = Number(props.loaded) || 0;\n e.total = Number(props.total) || 0;\n } else {\n e.lengthComputable = false;\n e.loaded = e.total = 0;\n }\n return e;\n}\n","/* global Map:readonly, Set:readonly, ArrayBuffer:readonly */\n\nvar hasElementType = typeof Element !== 'undefined';\nvar hasMap = typeof Map === 'function';\nvar hasSet = typeof Set === 'function';\nvar hasArrayBuffer = typeof ArrayBuffer === 'function' && !!ArrayBuffer.isView;\n\n// Note: We **don't** need `envHasBigInt64Array` in fde es6/index.js\n\nfunction equal(a, b) {\n // START: fast-deep-equal es6/index.js 3.1.1\n if (a === b) return true;\n\n if (a && b && typeof a == 'object' && typeof b == 'object') {\n if (a.constructor !== b.constructor) return false;\n\n var length, i, keys;\n if (Array.isArray(a)) {\n length = a.length;\n if (length != b.length) return false;\n for (i = length; i-- !== 0;)\n if (!equal(a[i], b[i])) return false;\n return true;\n }\n\n // START: Modifications:\n // 1. Extra `has<Type> &&` helpers in initial condition allow es6 code\n // to co-exist with es5.\n // 2. Replace `for of` with es5 compliant iteration using `for`.\n // Basically, take:\n //\n // ```js\n // for (i of a.entries())\n // if (!b.has(i[0])) return false;\n // ```\n //\n // ... and convert to:\n //\n // ```js\n // it = a.entries();\n // while (!(i = it.next()).done)\n // if (!b.has(i.value[0])) return false;\n // ```\n //\n // **Note**: `i` access switches to `i.value`.\n var it;\n if (hasMap && (a instanceof Map) && (b instanceof Map)) {\n if (a.size !== b.size) return false;\n it = a.entries();\n while (!(i = it.next()).done)\n if (!b.has(i.value[0])) return false;\n it = a.entries();\n while (!(i = it.next()).done)\n if (!equal(i.value[1], b.get(i.value[0]))) return false;\n return true;\n }\n\n if (hasSet && (a instanceof Set) && (b instanceof Set)) {\n if (a.size !== b.size) return false;\n it = a.entries();\n while (!(i = it.next()).done)\n if (!b.has(i.value[0])) return false;\n return true;\n }\n // END: Modifications\n\n if (hasArrayBuffer && ArrayBuffer.isView(a) && ArrayBuffer.isView(b)) {\n length = a.length;\n if (length != b.length) return false;\n for (i = length; i-- !== 0;)\n if (a[i] !== b[i]) return false;\n return true;\n }\n\n if (a.constructor === RegExp) return a.source === b.source && a.flags === b.flags;\n if (a.valueOf !== Object.prototype.valueOf) return a.valueOf() === b.valueOf();\n if (a.toString !== Object.prototype.toString) return a.toString() === b.toString();\n\n keys = Object.keys(a);\n length = keys.length;\n if (length !== Object.keys(b).length) return false;\n\n for (i = length; i-- !== 0;)\n if (!Object.prototype.hasOwnProperty.call(b, keys[i])) return false;\n // END: fast-deep-equal\n\n // START: react-fast-compare\n // custom handling for DOM elements\n if (hasElementType && a instanceof Element) return false;\n\n // custom handling for React/Preact\n for (i = length; i-- !== 0;) {\n if ((keys[i] === '_owner' || keys[i] === '__v' || keys[i] === '__o') && a.$$typeof) {\n // React-specific: avoid traversing React elements' _owner\n // Preact-specific: avoid traversing Preact elements' __v and __o\n // __v = $_original / $_vnode\n // __o = $_owner\n // These properties contain circular references and are not needed when\n // comparing the actual elements (and not their owners)\n // .$$typeof and ._store on just reasonable markers of elements\n\n continue;\n }\n\n // all other properties should be traversed as usual\n if (!equal(a[keys[i]], b[keys[i]])) return false;\n }\n // END: react-fast-compare\n\n // START: fast-deep-equal\n return true;\n }\n\n return a !== a && b !== b;\n}\n// end fast-deep-equal\n\nmodule.exports = function isEqual(a, b) {\n try {\n return equal(a, b);\n } catch (error) {\n if (((error.message || '').match(/stack|recursion/i))) {\n // warn on circular references, don't crash\n // browsers give this different errors name and messages:\n // chrome/safari: \"RangeError\", \"Maximum call stack size exceeded\"\n // firefox: \"InternalError\", too much recursion\"\n // edge: \"Error\", \"Out of stack space\"\n console.warn('react-fast-compare cannot handle circular refs');\n return false;\n }\n // some other error. we should definitely know about these\n throw error;\n }\n};\n","import * as React from 'react';\nimport { createPopper as defaultCreatePopper } from '@popperjs/core';\nimport isEqual from 'react-fast-compare';\nimport { fromEntries, useIsomorphicLayoutEffect } from './utils';\nvar EMPTY_MODIFIERS = [];\nexport var usePopper = function usePopper(referenceElement, popperElement, options) {\n if (options === void 0) {\n options = {};\n }\n\n var prevOptions = React.useRef(null);\n var optionsWithDefaults = {\n onFirstUpdate: options.onFirstUpdate,\n placement: options.placement || 'bottom',\n strategy: options.strategy || 'absolute',\n modifiers: options.modifiers || EMPTY_MODIFIERS\n };\n\n var _React$useState = React.useState({\n styles: {\n popper: {\n position: optionsWithDefaults.strategy,\n left: '0',\n top: '0'\n },\n arrow: {\n position: 'absolute'\n }\n },\n attributes: {}\n }),\n state = _React$useState[0],\n setState = _React$useState[1];\n\n var updateStateModifier = React.useMemo(function () {\n return {\n name: 'updateState',\n enabled: true,\n phase: 'write',\n fn: function fn(_ref) {\n var state = _ref.state;\n var elements = Object.keys(state.elements);\n setState({\n styles: fromEntries(elements.map(function (element) {\n return [element, state.styles[element] || {}];\n })),\n attributes: fromEntries(elements.map(function (element) {\n return [element, state.attributes[element]];\n }))\n });\n },\n requires: ['computeStyles']\n };\n }, []);\n var popperOptions = React.useMemo(function () {\n var newOptions = {\n onFirstUpdate: optionsWithDefaults.onFirstUpdate,\n placement: optionsWithDefaults.placement,\n strategy: optionsWithDefaults.strategy,\n modifiers: [].concat(optionsWithDefaults.modifiers, [updateStateModifier, {\n name: 'applyStyles',\n enabled: false\n }])\n };\n\n if (isEqual(prevOptions.current, newOptions)) {\n return prevOptions.current || newOptions;\n } else {\n prevOptions.current = newOptions;\n return newOptions;\n }\n }, [optionsWithDefaults.onFirstUpdate, optionsWithDefaults.placement, optionsWithDefaults.strategy, optionsWithDefaults.modifiers, updateStateModifier]);\n var popperInstanceRef = React.useRef();\n useIsomorphicLayoutEffect(function () {\n if (popperInstanceRef.current) {\n popperInstanceRef.current.setOptions(popperOptions);\n }\n }, [popperOptions]);\n useIsomorphicLayoutEffect(function () {\n if (referenceElement == null || popperElement == null) {\n return;\n }\n\n var createPopper = options.createPopper || defaultCreatePopper;\n var popperInstance = createPopper(referenceElement, popperElement, popperOptions);\n popperInstanceRef.current = popperInstance;\n return function () {\n popperInstance.destroy();\n popperInstanceRef.current = null;\n };\n }, [referenceElement, popperElement, options.createPopper]);\n return {\n state: popperInstanceRef.current ? popperInstanceRef.current.state : null,\n styles: state.styles,\n attributes: state.attributes,\n update: popperInstanceRef.current ? popperInstanceRef.current.update : null,\n forceUpdate: popperInstanceRef.current ? popperInstanceRef.current.forceUpdate : null\n };\n};","import * as React from 'react';\n\n/**\n * Takes an argument and if it's an array, returns the first item in the array,\n * otherwise returns the argument. Used for Preact compatibility.\n */\nexport var unwrapArray = function unwrapArray(arg) {\n return Array.isArray(arg) ? arg[0] : arg;\n};\n/**\n * Takes a maybe-undefined function and arbitrary args and invokes the function\n * only if it is defined.\n */\n\nexport var safeInvoke = function safeInvoke(fn) {\n if (typeof fn === 'function') {\n for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n args[_key - 1] = arguments[_key];\n }\n\n return fn.apply(void 0, args);\n }\n};\n/**\n * Sets a ref using either a ref callback or a ref object\n */\n\nexport var setRef = function setRef(ref, node) {\n // if its a function call it\n if (typeof ref === 'function') {\n return safeInvoke(ref, node);\n } // otherwise we should treat it as a ref object\n else if (ref != null) {\n ref.current = node;\n }\n};\n/**\n * Simple ponyfill for Object.fromEntries\n */\n\nexport var fromEntries = function fromEntries(entries) {\n return entries.reduce(function (acc, _ref) {\n var key = _ref[0],\n value = _ref[1];\n acc[key] = value;\n return acc;\n }, {});\n};\n/**\n * Small wrapper around `useLayoutEffect` to get rid of the warning on SSR envs\n */\n\nexport var useIsomorphicLayoutEffect = typeof window !== 'undefined' && window.document && window.document.createElement ? React.useLayoutEffect : React.useEffect;","import pluralForms from '@tannin/plural-forms';\n\n/**\n * Tannin constructor options.\n *\n * @typedef {Object} TanninOptions\n *\n * @property {string} [contextDelimiter] Joiner in string lookup with context.\n * @property {Function} [onMissingKey] Callback to invoke when key missing.\n */\n\n/**\n * Domain metadata.\n *\n * @typedef {Object} TanninDomainMetadata\n *\n * @property {string} [domain] Domain name.\n * @property {string} [lang] Language code.\n * @property {(string|Function)} [plural_forms] Plural forms expression or\n * function evaluator.\n */\n\n/**\n * Domain translation pair respectively representing the singular and plural\n * translation.\n *\n * @typedef {[string,string]} TanninTranslation\n */\n\n/**\n * Locale data domain. The key is used as reference for lookup, the value an\n * array of two string entries respectively representing the singular and plural\n * translation.\n *\n * @typedef {{[key:string]:TanninDomainMetadata|TanninTranslation,'':TanninDomainMetadata|TanninTranslation}} TanninLocaleDomain\n */\n\n/**\n * Jed-formatted locale data.\n *\n * @see http://messageformat.github.io/Jed/\n *\n * @typedef {{[domain:string]:TanninLocaleDomain}} TanninLocaleData\n */\n\n/**\n * Default Tannin constructor options.\n *\n * @type {TanninOptions}\n */\nvar DEFAULT_OPTIONS = {\n\tcontextDelimiter: '\\u0004',\n\tonMissingKey: null,\n};\n\n/**\n * Given a specific locale data's config `plural_forms` value, returns the\n * expression.\n *\n * @example\n *\n * ```\n * getPluralExpression( 'nplurals=2; plural=(n != 1);' ) === '(n != 1)'\n * ```\n *\n * @param {string} pf Locale data plural forms.\n *\n * @return {string} Plural forms expression.\n */\nfunction getPluralExpression( pf ) {\n\tvar parts, i, part;\n\n\tparts = pf.split( ';' );\n\n\tfor ( i = 0; i < parts.length; i++ ) {\n\t\tpart = parts[ i ].trim();\n\t\tif ( part.indexOf( 'plural=' ) === 0 ) {\n\t\t\treturn part.substr( 7 );\n\t\t}\n\t}\n}\n\n/**\n * Tannin constructor.\n *\n * @class\n *\n * @param {TanninLocaleData} data Jed-formatted locale data.\n * @param {TanninOptions} [options] Tannin options.\n */\nexport default function Tannin( data, options ) {\n\tvar key;\n\n\t/**\n\t * Jed-formatted locale data.\n\t *\n\t * @name Tannin#data\n\t * @type {TanninLocaleData}\n\t */\n\tthis.data = data;\n\n\t/**\n\t * Plural forms function cache, keyed by plural forms string.\n\t *\n\t * @name Tannin#pluralForms\n\t * @type {Object<string,Function>}\n\t */\n\tthis.pluralForms = {};\n\n\t/**\n\t * Effective options for instance, including defaults.\n\t *\n\t * @name Tannin#options\n\t * @type {TanninOptions}\n\t */\n\tthis.options = {};\n\n\tfor ( key in DEFAULT_OPTIONS ) {\n\t\tthis.options[ key ] = options !== undefined && key in options\n\t\t\t? options[ key ]\n\t\t\t: DEFAULT_OPTIONS[ key ];\n\t}\n}\n\n/**\n * Returns the plural form index for the given domain and value.\n *\n * @param {string} domain Domain on which to calculate plural form.\n * @param {number} n Value for which plural form is to be calculated.\n *\n * @return {number} Plural form index.\n */\nTannin.prototype.getPluralForm = function( domain, n ) {\n\tvar getPluralForm = this.pluralForms[ domain ],\n\t\tconfig, plural, pf;\n\n\tif ( ! getPluralForm ) {\n\t\tconfig = this.data[ domain ][ '' ];\n\n\t\tpf = (\n\t\t\tconfig[ 'Plural-Forms' ] ||\n\t\t\tconfig[ 'plural-forms' ] ||\n\t\t\t// Ignore reason: As known, there's no way to document the empty\n\t\t\t// string property on a key to guarantee this as metadata.\n\t\t\t// @ts-ignore\n\t\t\tconfig.plural_forms\n\t\t);\n\n\t\tif ( typeof pf !== 'function' ) {\n\t\t\tplural = getPluralExpression(\n\t\t\t\tconfig[ 'Plural-Forms' ] ||\n\t\t\t\tconfig[ 'plural-forms' ] ||\n\t\t\t\t// Ignore reason: As known, there's no way to document the empty\n\t\t\t\t// string property on a key to guarantee this as metadata.\n\t\t\t\t// @ts-ignore\n\t\t\t\tconfig.plural_forms\n\t\t\t);\n\n\t\t\tpf = pluralForms( plural );\n\t\t}\n\n\t\tgetPluralForm = this.pluralForms[ domain ] = pf;\n\t}\n\n\treturn getPluralForm( n );\n};\n\n/**\n * Translate a string.\n *\n * @param {string} domain Translation domain.\n * @param {string|void} context Context distinguishing terms of the same name.\n * @param {string} singular Primary key for translation lookup.\n * @param {string=} plural Fallback value used for non-zero plural\n * form index.\n * @param {number=} n Value to use in calculating plural form.\n *\n * @return {string} Translated string.\n */\nTannin.prototype.dcnpgettext = function( domain, context, singular, plural, n ) {\n\tvar index, key, entry;\n\n\tif ( n === undefined ) {\n\t\t// Default to singular.\n\t\tindex = 0;\n\t} else {\n\t\t// Find index by evaluating plural form for value.\n\t\tindex = this.getPluralForm( domain, n );\n\t}\n\n\tkey = singular;\n\n\t// If provided, context is prepended to key with delimiter.\n\tif ( context ) {\n\t\tkey = context + this.options.contextDelimiter + singular;\n\t}\n\n\tentry = this.data[ domain ][ key ];\n\n\t// Verify not only that entry exists, but that the intended index is within\n\t// range and non-empty.\n\tif ( entry && entry[ index ] ) {\n\t\treturn entry[ index ];\n\t}\n\n\tif ( this.options.onMissingKey ) {\n\t\tthis.options.onMissingKey( singular, domain );\n\t}\n\n\t// If entry not found, fall back to singular vs. plural with zero index\n\t// representing the singular value.\n\treturn index === 0 ? singular : plural;\n};\n","import apiFetch from '@wordpress/api-fetch';\nimport { useState, useEffect } from '@wordpress/element';\n\nconst useHasSeenSellerCelebrationModal = () => {\n\tconst [ hasSeenSellerCelebrationModal, setHasSeenSellerCelebrationModal ] = useState( '' );\n\n\tuseEffect( () => {\n\t\tfetchHasSeenSellerCelebrationModal();\n\t}, [] );\n\n\tfunction fetchHasSeenSellerCelebrationModal() {\n\t\tapiFetch( { path: '/wpcom/v2/block-editor/has-seen-seller-celebration-modal' } )\n\t\t\t.then( ( result ) =>\n\t\t\t\tsetHasSeenSellerCelebrationModal( result.has_seen_seller_celebration_modal )\n\t\t\t)\n\t\t\t.catch( () => setHasSeenSellerCelebrationModal( false ) );\n\t}\n\n\tfunction updateHasSeenSellerCelebrationModal( value ) {\n\t\tapiFetch( {\n\t\t\tmethod: 'PUT',\n\t\t\tpath: '/wpcom/v2/block-editor/has-seen-seller-celebration-modal',\n\t\t\tdata: { has_seen_seller_celebration_modal: value },\n\t\t} ).finally( () => {\n\t\t\tsetHasSeenSellerCelebrationModal( value );\n\t\t} );\n\t}\n\n\treturn { hasSeenSellerCelebrationModal, updateHasSeenSellerCelebrationModal };\n};\nexport default useHasSeenSellerCelebrationModal;\n","import apiFetch from '@wordpress/api-fetch';\nimport { useState, useEffect, useCallback } from '@wordpress/element';\n\nconst useSiteIntent = () => {\n\tconst [ siteIntent, setSiteIntent ] = useState( '' );\n\n\tconst fetchSiteIntent = useCallback( () => {\n\t\tapiFetch( { path: '/wpcom/v2/site-intent' } )\n\t\t\t.then( ( result ) => setSiteIntent( result.site_intent ) )\n\t\t\t.catch( () => setSiteIntent( '' ) );\n\t}, [] );\n\n\tuseEffect( () => {\n\t\tfetchSiteIntent();\n\t}, [ fetchSiteIntent ] );\n\treturn siteIntent;\n};\nexport default useSiteIntent;\n","import { SiteDetails } from '@automattic/data-stores/src/site';\nimport { SiteDetailsPlan } from '@automattic/launch/src/stores';\nimport { useState, useEffect } from '@wordpress/element';\nimport { useCallback } from 'react';\nimport request from 'wpcom-proxy-request';\n\nconst useSitePlan = ( siteIdOrSlug: string | number ) => {\n\tconst [ sitePlan, setSitePlan ] = useState( {} as SiteDetailsPlan );\n\n\tconst fetchSite = useCallback( async () => {\n\t\tconst siteObj: SiteDetails = await request( {\n\t\t\tpath: `/sites/${ siteIdOrSlug }?http_envelope=1`,\n\t\t\tapiVersion: '1.1',\n\t\t} );\n\t\tif ( siteObj?.plan ) {\n\t\t\tsetSitePlan( siteObj.plan );\n\t\t}\n\t}, [ siteIdOrSlug ] );\n\n\tuseEffect( () => {\n\t\tfetchSite();\n\t}, [ fetchSite ] );\n\n\treturn sitePlan;\n};\nexport default useSitePlan;\n","/*** THIS MUST BE THE FIRST THING EVALUATED IN THIS SCRIPT *****/\nimport './public-path';\n\n/* eslint-disable wpcalypso/jsx-classname-namespace */\n\nimport { LocaleProvider, i18nDefaultLocaleSlug } from '@automattic/i18n-utils';\nimport { Guide, GuidePage } from '@wordpress/components';\nimport { useDispatch, useSelect } from '@wordpress/data';\nimport { useEffect, useState } from '@wordpress/element';\nimport { registerPlugin } from '@wordpress/plugins';\nimport { getQueryArg } from '@wordpress/url';\nimport DraftPostModal from './draft-post-modal';\nimport PostPublishedModal from './post-published-modal';\nimport PurchaseNotice from './purchase-notice';\nimport SellerCelebrationModal from './seller-celebration-modal';\nimport { DEFAULT_VARIANT, BLANK_CANVAS_VARIANT } from './store';\nimport WpcomNux from './welcome-modal/wpcom-nux';\nimport LaunchWpcomWelcomeTour from './welcome-tour/tour-launch';\n\nfunction WelcomeTour() {\n\tconst [ showDraftPostModal ] = useState(\n\t\tgetQueryArg( window.location.href, 'showDraftPostModal' )\n\t);\n\n\tconst { show, isLoaded, variant, isManuallyOpened, isNewPageLayoutModalOpen } = useSelect(\n\t\t( select ) => {\n\t\t\tconst welcomeGuideStoreSelect = select( 'automattic/wpcom-welcome-guide' );\n\t\t\tconst starterPageLayoutsStoreSelect = select( 'automattic/starter-page-layouts' );\n\t\t\treturn {\n\t\t\t\tshow: welcomeGuideStoreSelect.isWelcomeGuideShown(),\n\t\t\t\tisLoaded: welcomeGuideStoreSelect.isWelcomeGuideStatusLoaded(),\n\t\t\t\tvariant: welcomeGuideStoreSelect.getWelcomeGuideVariant(),\n\t\t\t\tisManuallyOpened: welcomeGuideStoreSelect.isWelcomeGuideManuallyOpened(),\n\t\t\t\tisNewPageLayoutModalOpen: starterPageLayoutsStoreSelect?.isOpen(), // Handle the case where SPT is not initalized.\n\t\t\t};\n\t\t},\n\t\t[]\n\t);\n\n\tconst setOpenState = useDispatch( 'automattic/starter-page-layouts' )?.setOpenState;\n\n\tconst { fetchWelcomeGuideStatus } = useDispatch( 'automattic/wpcom-welcome-guide' );\n\n\t// On mount check if the WPCOM welcome guide status exists in state (from local storage), otherwise fetch it from the API.\n\tuseEffect( () => {\n\t\tif ( ! isLoaded ) {\n\t\t\tfetchWelcomeGuideStatus();\n\t\t}\n\t}, [ fetchWelcomeGuideStatus, isLoaded ] );\n\n\tif ( ! show || isNewPageLayoutModalOpen ) {\n\t\treturn null;\n\t}\n\n\t// Open patterns panel before Welcome Tour if necessary (e.g. when using Blank Canvas theme)\n\t// Do this only when Welcome Tour is not manually opened.\n\t// NOTE: at the moment, 'starter-page-templates' assets are not loaded on /site-editor/ page so 'setOpenState' may be undefined\n\tif ( variant === BLANK_CANVAS_VARIANT && ! isManuallyOpened && setOpenState ) {\n\t\tsetOpenState( 'OPEN_FOR_BLANK_CANVAS' );\n\t\treturn null;\n\t}\n\n\tif ( variant === DEFAULT_VARIANT ) {\n\t\treturn (\n\t\t\t<LocaleProvider localeSlug={ window.wpcomBlockEditorNuxLocale ?? i18nDefaultLocaleSlug }>\n\t\t\t\t{ showDraftPostModal ? <DraftPostModal /> : <LaunchWpcomWelcomeTour /> }\n\t\t\t</LocaleProvider>\n\t\t);\n\t}\n\n\t// This case is redundant now and it will be cleaned up in a follow-up PR\n\tif ( variant === 'modal' && Guide && GuidePage ) {\n\t\treturn <WpcomNux />;\n\t}\n\n\treturn null;\n}\n\nregisterPlugin( 'wpcom-block-editor-nux', {\n\trender: () => (\n\t\t<>\n\t\t\t<WelcomeTour />\n\t\t\t<PostPublishedModal />\n\t\t\t<SellerCelebrationModal />\n\t\t\t<PurchaseNotice />\n\t\t</>\n\t),\n} );\n","import { select, dispatch, subscribe } from '@wordpress/data';\n\nimport '@wordpress/nux'; //ensure nux store loads\n\n// Disable nux and welcome guide features from core.\nconst unsubscribe = subscribe( () => {\n\tdispatch( 'core/nux' ).disableTips();\n\tif ( select( 'core/edit-post' )?.isFeatureActive( 'welcomeGuide' ) ) {\n\t\tdispatch( 'core/edit-post' ).toggleFeature( 'welcomeGuide' );\n\t\tunsubscribe();\n\t}\n\tif ( select( 'core/edit-site' )?.isFeatureActive( 'welcomeGuide' ) ) {\n\t\tdispatch( 'core/edit-site' ).toggleFeature( 'welcomeGuide' );\n\t\tunsubscribe();\n\t}\n} );\n\n// Listen for these features being triggered to call dotcom welcome guide instead.\n// Note migration of areTipsEnabled: https://github.com/WordPress/gutenberg/blob/5c3a32dabe4393c45f7fe6ac5e4d78aebd5ee274/packages/data/src/plugins/persistence/index.js#L269\nsubscribe( () => {\n\tif ( select( 'core/nux' ).areTipsEnabled() ) {\n\t\tdispatch( 'core/nux' ).disableTips();\n\t\tdispatch( 'automattic/wpcom-welcome-guide' ).setShowWelcomeGuide( true );\n\t}\n\tif ( select( 'core/edit-post' )?.isFeatureActive( 'welcomeGuide' ) ) {\n\t\tdispatch( 'core/edit-post' ).toggleFeature( 'welcomeGuide' );\n\t\t// On mounting, the welcomeGuide feature is turned on by default. This opens the welcome guide despite `welcomeGuideStatus` value.\n\t\t// This check ensures that we only listen to `welcomeGuide` changes if the welcomeGuideStatus value is loaded and respected\n\t\tif ( select( 'automattic/wpcom-welcome-guide' ).isWelcomeGuideStatusLoaded() ) {\n\t\t\tdispatch( 'automattic/wpcom-welcome-guide' ).setShowWelcomeGuide( true, {\n\t\t\t\topenedManually: true,\n\t\t\t} );\n\t\t}\n\t}\n\tif ( select( 'core/edit-site' )?.isFeatureActive( 'welcomeGuide' ) ) {\n\t\tdispatch( 'core/edit-site' ).toggleFeature( 'welcomeGuide' );\n\t\tif ( select( 'automattic/wpcom-welcome-guide' ).isWelcomeGuideStatusLoaded() ) {\n\t\t\tdispatch( 'automattic/wpcom-welcome-guide' ).setShowWelcomeGuide( true, {\n\t\t\t\topenedManually: true,\n\t\t\t} );\n\t\t}\n\t}\n} );\n","import { recordTracksEvent } from '@automattic/calypso-analytics';\nimport { Button } from '@wordpress/components';\nimport { useSelect } from '@wordpress/data';\nimport { useState } from '@wordpress/element';\nimport { doAction, hasAction } from '@wordpress/hooks';\nimport { __ } from '@wordpress/i18n';\nimport NuxModal from '../nux-modal';\nimport draftPostImage from './images/draft-post.svg';\nimport './style.scss';\n\nconst CLOSE_EDITOR_ACTION = 'a8c.wpcom-block-editor.closeEditor';\n\nconst DraftPostModal = () => {\n\tconst siteId = window._currentSiteId;\n\tconst primaryDomain = useSelect( ( select ) =>\n\t\tselect( 'automattic/site' ).getPrimarySiteDomain( siteId )\n\t);\n\n\tconst homeUrl = `/home/${ primaryDomain?.domain || window.location.hostname }`;\n\tconst [ isOpen, setIsOpen ] = useState( true );\n\tconst closeModal = () => setIsOpen( false );\n\tconst closeEditor = () => {\n\t\tif ( hasAction( CLOSE_EDITOR_ACTION ) ) {\n\t\t\tdoAction( CLOSE_EDITOR_ACTION, homeUrl );\n\t\t} else {\n\t\t\twindow.location.href = `https://wordpress.com${ homeUrl }`;\n\t\t}\n\t};\n\n\treturn (\n\t\t<NuxModal\n\t\t\tisOpen={ isOpen }\n\t\t\tclassName=\"wpcom-block-editor-draft-post-modal\"\n\t\t\ttitle={ __( 'Write your first post', 'full-site-editing' ) }\n\t\t\tdescription={ __(\n\t\t\t\t'It’s time to flex those writing muscles and start drafting your first post!',\n\t\t\t\t'full-site-editing'\n\t\t\t) }\n\t\t\timageSrc={ draftPostImage }\n\t\t\tactionButtons={\n\t\t\t\t<>\n\t\t\t\t\t<Button isPrimary onClick={ closeModal }>\n\t\t\t\t\t\t{ __( 'Start writing', 'full-site-editing' ) }\n\t\t\t\t\t</Button>\n\t\t\t\t\t<Button isSecondary onClick={ closeEditor }>\n\t\t\t\t\t\t{ __( \"I'm not ready\", 'full-site-editing' ) }\n\t\t\t\t\t</Button>\n\t\t\t\t</>\n\t\t\t}\n\t\t\tonRequestClose={ closeModal }\n\t\t\tonOpen={ () => recordTracksEvent( 'calypso_editor_wpcom_draft_post_modal_show' ) }\n\t\t/>\n\t);\n};\n\nexport default DraftPostModal;\n","import { Modal } from '@wordpress/components';\nimport { useEffect, useRef } from '@wordpress/element';\nimport classnames from 'classnames';\nimport React from 'react';\nimport './style.scss';\n\ninterface Props {\n\tisOpen: boolean;\n\tclassName?: string;\n\ttitle: string;\n\tdescription: string;\n\timageSrc: string;\n\tactionButtons: React.ReactElement;\n\tonRequestClose: () => void;\n\tonOpen?: () => void;\n}\n\nconst NuxModal: React.FC< Props > = ( {\n\tisOpen,\n\tclassName,\n\ttitle,\n\tdescription,\n\timageSrc,\n\tactionButtons,\n\tonRequestClose,\n\tonOpen,\n} ) => {\n\tconst prevIsOpen = useRef< boolean | null >( null );\n\n\tuseEffect( () => {\n\t\tif ( ! prevIsOpen.current && isOpen ) {\n\t\t\tonOpen?.();\n\t\t}\n\n\t\tprevIsOpen.current = isOpen;\n\t}, [ prevIsOpen, isOpen, onOpen ] );\n\n\tif ( ! isOpen ) {\n\t\treturn null;\n\t}\n\n\treturn (\n\t\t<Modal\n\t\t\tclassName={ classnames( 'wpcom-block-editor-nux-modal', className ) }\n\t\t\topen={ isOpen }\n\t\t\ttitle=\"\"\n\t\t\tonRequestClose={ onRequestClose }\n\t\t>\n\t\t\t<div className=\"wpcom-block-editor-nux-modal__image-container\">\n\t\t\t\t<img src={ imageSrc } alt={ title } />\n\t\t\t</div>\n\t\t\t<h1 className=\"wpcom-block-editor-nux-modal__title\">{ title }</h1>\n\t\t\t<p className=\"wpcom-block-editor-nux-modal__description\">{ description }</p>\n\t\t\t<div className=\"wpcom-block-editor-nux-modal__buttons\">{ actionButtons }</div>\n\t\t</Modal>\n\t);\n};\n\nexport default NuxModal;\n","import { recordTracksEvent } from '@automattic/calypso-analytics';\nimport { Button } from '@wordpress/components';\nimport { useDispatch, useSelect } from '@wordpress/data';\nimport { useEffect, useRef, useState } from '@wordpress/element';\nimport { __ } from '@wordpress/i18n';\nimport React from 'react';\nimport NuxModal from '../nux-modal';\nimport postPublishedImage from './images/post-published.svg';\n\nimport './style.scss';\n\n/**\n * Show the first post publish modal\n */\nconst PostPublishedModal: React.FC = () => {\n\tconst { link } = useSelect( ( select ) => select( 'core/editor' ).getCurrentPost() );\n\tconst postType = useSelect( ( select ) => select( 'core/editor' ).getCurrentPostType() );\n\n\tconst isCurrentPostPublished = useSelect( ( select ) =>\n\t\tselect( 'core/editor' ).isCurrentPostPublished()\n\t);\n\tconst previousIsCurrentPostPublished = useRef( isCurrentPostPublished );\n\tconst shouldShowFirstPostPublishedModal = useSelect( ( select ) =>\n\t\tselect( 'automattic/wpcom-welcome-guide' ).getShouldShowFirstPostPublishedModal()\n\t);\n\tconst [ isOpen, setIsOpen ] = useState( false );\n\tconst closeModal = () => setIsOpen( false );\n\tconst { fetchShouldShowFirstPostPublishedModal, setShouldShowFirstPostPublishedModal } =\n\t\tuseDispatch( 'automattic/wpcom-welcome-guide' );\n\n\tuseEffect( () => {\n\t\tfetchShouldShowFirstPostPublishedModal();\n\t}, [ fetchShouldShowFirstPostPublishedModal ] );\n\tuseEffect( () => {\n\t\t// If the user is set to see the first post modal and current post status changes to publish,\n\t\t// open the post publish modal\n\t\tif (\n\t\t\tshouldShowFirstPostPublishedModal &&\n\t\t\t! previousIsCurrentPostPublished.current &&\n\t\t\tisCurrentPostPublished &&\n\t\t\tpostType === 'post'\n\t\t) {\n\t\t\tpreviousIsCurrentPostPublished.current = isCurrentPostPublished;\n\t\t\tsetShouldShowFirstPostPublishedModal( false );\n\n\t\t\t// When the post published panel shows, it is focused automatically.\n\t\t\t// Thus, we need to delay open the modal so that the modal would not be close immediately\n\t\t\t// because the outside of modal is focused\n\t\t\twindow.setTimeout( () => {\n\t\t\t\tsetIsOpen( true );\n\t\t\t} );\n\t\t}\n\t}, [\n\t\tpostType,\n\t\tshouldShowFirstPostPublishedModal,\n\t\tisCurrentPostPublished,\n\t\tsetShouldShowFirstPostPublishedModal,\n\t] );\n\n\tconst handleClick = ( event: React.MouseEvent ) => {\n\t\tevent.preventDefault();\n\t\t( window.top as Window ).location.href = link;\n\t};\n\n\treturn (\n\t\t<NuxModal\n\t\t\tisOpen={ isOpen }\n\t\t\tclassName=\"wpcom-block-editor-post-published-modal\"\n\t\t\ttitle={ __( 'Your first post is published!', 'full-site-editing' ) }\n\t\t\tdescription={ __(\n\t\t\t\t'Congratulations! You did it. View your post to see how it will look on your site.',\n\t\t\t\t'full-site-editing'\n\t\t\t) }\n\t\t\timageSrc={ postPublishedImage }\n\t\t\tactionButtons={\n\t\t\t\t<Button isPrimary onClick={ handleClick }>\n\t\t\t\t\t{ __( 'View Post', 'full-site-editing' ) }\n\t\t\t\t</Button>\n\t\t\t}\n\t\t\tonRequestClose={ closeModal }\n\t\t\tonOpen={ () => recordTracksEvent( 'calypso_editor_wpcom_first_post_published_modal_show' ) }\n\t\t/>\n\t);\n};\n\nexport default PostPublishedModal;\n","/* exported __webpack_public_path__ */\n/* global __webpack_public_path__ */\n\n/**\n * Dynamically set WebPack's publicPath so that split assets can be found.\n *\n * @see https://webpack.js.org/guides/public-path/#on-the-fly\n */\nif ( typeof window === 'object' && window.wpcomBlockEditorNuxAssetsUrl ) {\n\t// eslint-disable-next-line no-global-assign\n\t__webpack_public_path__ = window.wpcomBlockEditorNuxAssetsUrl;\n}\n","import { useDispatch } from '@wordpress/data';\nimport { __ } from '@wordpress/i18n';\nimport { store as noticesStore } from '@wordpress/notices';\nimport { useEffect, useState } from 'react';\nimport './style.scss';\n\nfunction PurchaseNotice() {\n\tconst [ hasPaymentNotice, setHasPaymentNotice ] = useState( false );\n\tconst { createNotice } = useDispatch( noticesStore );\n\n\tuseEffect( () => {\n\t\tconst noticePattern = /[&?]notice=([\\w_-]+)/;\n\t\tconst match = noticePattern.exec( document.location.search );\n\t\tconst notice = match && match[ 1 ];\n\t\tif ( 'purchase-success' === notice && hasPaymentNotice === false ) {\n\t\t\tsetHasPaymentNotice( true );\n\t\t\tcreateNotice(\n\t\t\t\t'info',\n\t\t\t\t__(\n\t\t\t\t\t'Welcome to the Pro plan! Premium blocks are now available to use.',\n\t\t\t\t\t'full-site-editing'\n\t\t\t\t),\n\t\t\t\t{\n\t\t\t\t\tisDismissible: true,\n\t\t\t\t\ttype: 'snackbar',\n\t\t\t\t}\n\t\t\t);\n\t\t}\n\t} );\n\n\treturn null;\n}\n\nexport default PurchaseNotice;\n","import { recordTracksEvent } from '@automattic/calypso-analytics';\nimport { Button } from '@wordpress/components';\nimport { useSelect, useDispatch } from '@wordpress/data';\nimport { useState, useRef, useEffect } from '@wordpress/element';\nimport { __ } from '@wordpress/i18n';\nimport useHasSeenSellerCelebrationModal from '../../../dotcom-fse/lib/seller-celebration-modal/use-has-seen-seller-celebration-modal';\nimport useSiteIntent from '../../../dotcom-fse/lib/site-intent/use-site-intent';\nimport NuxModal from '../nux-modal';\nimport contentSubmittedImage from './images/product-published.svg';\nimport './style.scss';\n\n/**\n * Show the seller celebration modal\n */\nconst SellerCelebrationModalInner = () => {\n\tconst { addEntities } = useDispatch( 'core' );\n\n\tuseEffect( () => {\n\t\t// @TODO - not sure if I actually need this; need to test with it removed.\n\t\t// Teach core data about the status entity so we can use selectors like `getEntityRecords()`\n\t\taddEntities( [\n\t\t\t{\n\t\t\t\tbaseURL: '/wp/v2/statuses',\n\t\t\t\tkey: 'slug',\n\t\t\t\tkind: 'root',\n\t\t\t\tname: 'status',\n\t\t\t\tplural: 'statuses',\n\t\t\t},\n\t\t] );\n\t\t// Only register entity once\n\t\t// eslint-disable-next-line react-hooks/exhaustive-deps\n\t}, [] );\n\t// conditions to show:\n\t// - user just finished saving (check)\n\t// - editor has not yet displayed modal once (check)\n\t// - user is a seller (check)\n\t// - user has not saved site before\n\t// - content includes product block (check)\n\tconst [ isModalOpen, setIsModalOpen ] = useState( false );\n\tconst [ hasDisplayedModal, setHasDisplayedModal ] = useState( false );\n\tconst isSiteEditor = useSelect( ( select ) => !! select( 'core/edit-site' ) );\n\tconst previousIsEditorSaving = useRef( false );\n\tconst { isEditorSaving, hasPaymentsBlock, linkUrl } = useSelect( ( select ) => {\n\t\tif ( isSiteEditor ) {\n\t\t\tconst isSavingSite =\n\t\t\t\tselect( 'core' ).isSavingEntityRecord( 'root', 'site' ) &&\n\t\t\t\t! select( 'core' ).isAutosavingEntityRecord( 'root', 'site' );\n\t\t\tconst page = select( 'core/edit-site' ).getPage();\n\t\t\tconst pageId = parseInt( page?.context?.postId );\n\t\t\tconst isSavingEntity =\n\t\t\t\tselect( 'core' ).isSavingEntityRecord( 'postType', 'page', pageId ) &&\n\t\t\t\t! select( 'core' ).isAutosavingEntityRecord( 'postType', 'page', pageId );\n\t\t\tconst pageEntity = select( 'core' ).getEntityRecord( 'postType', 'page', pageId );\n\t\t\tconst paymentsBlock =\n\t\t\t\tpageEntity?.content?.raw?.includes( '<!-- wp:jetpack/recurring-payments -->' ) ?? false;\n\t\t\treturn {\n\t\t\t\tisEditorSaving: isSavingSite || isSavingEntity,\n\t\t\t\thasPaymentsBlock: paymentsBlock,\n\t\t\t\tlinkUrl: pageEntity?.link,\n\t\t\t};\n\t\t}\n\t\tconst currentPost = select( 'core/editor' ).getCurrentPost();\n\t\tconst isSavingEntity =\n\t\t\tselect( 'core' ).isSavingEntityRecord( 'postType', currentPost?.type, currentPost?.id ) &&\n\t\t\t! select( 'core' ).isAutosavingEntityRecord( 'postType', currentPost?.type, currentPost?.id );\n\t\tconst globalBlockCount = select( 'core/block-editor' ).getGlobalBlockCount(\n\t\t\t'jetpack/recurring-payments'\n\t\t);\n\t\treturn {\n\t\t\tisEditorSaving: isSavingEntity,\n\t\t\thasPaymentsBlock: globalBlockCount > 0,\n\t\t\tlinkUrl: currentPost.link,\n\t\t};\n\t} );\n\tconst intent = useSiteIntent();\n\tconst { hasSeenSellerCelebrationModal, updateHasSeenSellerCelebrationModal } =\n\t\tuseHasSeenSellerCelebrationModal();\n\n\tuseEffect( () => {\n\t\tif (\n\t\t\t! isEditorSaving &&\n\t\t\tpreviousIsEditorSaving.current &&\n\t\t\t! hasDisplayedModal &&\n\t\t\tintent === 'sell' &&\n\t\t\thasPaymentsBlock &&\n\t\t\t! hasSeenSellerCelebrationModal\n\t\t) {\n\t\t\tsetIsModalOpen( true );\n\t\t\tsetHasDisplayedModal( true );\n\t\t\tupdateHasSeenSellerCelebrationModal( true );\n\t\t}\n\t\tpreviousIsEditorSaving.current = isEditorSaving;\n\t}, [\n\t\tisEditorSaving,\n\t\thasDisplayedModal,\n\t\tintent,\n\t\thasPaymentsBlock,\n\t\thasSeenSellerCelebrationModal,\n\t\tupdateHasSeenSellerCelebrationModal,\n\t] );\n\n\t// if save state has changed and was saving on last render\n\t// then it has finished saving\n\t// open modal if content has sell block,\n\n\tconst closeModal = () => setIsModalOpen( false );\n\treturn (\n\t\t<NuxModal\n\t\t\tisOpen={ isModalOpen }\n\t\t\tclassName=\"wpcom-site-editor-seller-celebration-modal\"\n\t\t\ttitle={ __( \"You've added your first product!\", 'full-site-editing' ) }\n\t\t\tdescription={ __(\n\t\t\t\t'Preview your product on your site before launching and sharing with others.',\n\t\t\t\t'full-site-editing'\n\t\t\t) }\n\t\t\timageSrc={ contentSubmittedImage }\n\t\t\tactionButtons={\n\t\t\t\t<>\n\t\t\t\t\t<Button onClick={ closeModal }>{ __( 'Continue editing', 'full-site-editing' ) }</Button>\n\t\t\t\t\t<Button isPrimary href={ linkUrl } target=\"__blank\" rel=\"noopener noreferrer\">\n\t\t\t\t\t\t{ __( 'View your product', 'full-site-editing' ) }\n\t\t\t\t\t</Button>\n\t\t\t\t</>\n\t\t\t}\n\t\t\tonRequestClose={ closeModal }\n\t\t\tonOpen={ () => recordTracksEvent( 'calypso_editor_wpcom_seller_celebration_modal_show' ) }\n\t\t/>\n\t);\n};\n\nconst SellerCelebrationModal = () => {\n\tconst intent = useSiteIntent();\n\tif ( intent === 'sell' ) {\n\t\treturn <SellerCelebrationModalInner />;\n\t}\n\treturn null;\n};\n\nexport default SellerCelebrationModal;\n","import apiFetch from '@wordpress/api-fetch';\nimport { combineReducers, registerStore } from '@wordpress/data';\nimport { apiFetch as apiFetchControls, controls } from '@wordpress/data-controls';\n\nimport 'a8c-fse-common-data-stores';\n\nexport const DEFAULT_VARIANT = 'tour';\nexport const BLANK_CANVAS_VARIANT = 'blank-canvas-tour';\n\nconst showWelcomeGuideReducer = ( state = undefined, action ) => {\n\tswitch ( action.type ) {\n\t\tcase 'WPCOM_WELCOME_GUIDE_FETCH_STATUS_SUCCESS':\n\t\t\treturn action.response.show_welcome_guide;\n\t\tcase 'WPCOM_WELCOME_GUIDE_SHOW_SET':\n\t\t\treturn action.show;\n\t\tcase 'WPCOM_WELCOME_GUIDE_RESET_STORE':\n\t\t\treturn undefined;\n\t\tdefault:\n\t\t\treturn state;\n\t}\n};\n\nconst welcomeGuideManuallyOpenedReducer = ( state = false, action ) => {\n\tswitch ( action.type ) {\n\t\tcase 'WPCOM_WELCOME_GUIDE_SHOW_SET':\n\t\t\tif ( typeof action.openedManually !== 'undefined' ) {\n\t\t\t\treturn action.openedManually;\n\t\t\t}\n\t\t\treturn state;\n\n\t\tcase 'WPCOM_WELCOME_GUIDE_RESET_STORE':\n\t\t\treturn false;\n\n\t\tdefault:\n\t\t\treturn state;\n\t}\n};\n\n// TODO: next PR convert file to Typescript to ensure control of tourRating values: null, 'thumbs-up' 'thumbs-down'\nconst tourRatingReducer = ( state = undefined, action ) => {\n\tswitch ( action.type ) {\n\t\tcase 'WPCOM_WELCOME_GUIDE_TOUR_RATING_SET':\n\t\t\treturn action.tourRating;\n\t\tcase 'WPCOM_WELCOME_GUIDE_RESET_STORE':\n\t\t\treturn undefined;\n\t\tdefault:\n\t\t\treturn state;\n\t}\n};\n\nconst welcomeGuideVariantReducer = ( state = DEFAULT_VARIANT, action ) => {\n\tswitch ( action.type ) {\n\t\tcase 'WPCOM_WELCOME_GUIDE_FETCH_STATUS_SUCCESS':\n\t\t\treturn action.response.variant;\n\t\tcase 'WPCOM_HAS_USED_PATTERNS_MODAL':\n\t\t\treturn state === BLANK_CANVAS_VARIANT ? DEFAULT_VARIANT : state;\n\t\tcase 'WPCOM_WELCOME_GUIDE_RESET_STORE':\n\t\t\treturn DEFAULT_VARIANT;\n\t\tdefault:\n\t\t\treturn state;\n\t}\n};\n\nconst shouldShowFirstPostPublishedModalReducer = ( state = false, action ) => {\n\tswitch ( action.type ) {\n\t\tcase 'WPCOM_SET_SHOULD_SHOW_FIRST_POST_PUBLISHED_MODAL':\n\t\t\treturn action.value;\n\t\tcase 'WPCOM_WELCOME_GUIDE_RESET_STORE':\n\t\t\treturn false;\n\t\tdefault:\n\t\t\treturn state;\n\t}\n};\n\nconst reducer = combineReducers( {\n\twelcomeGuideManuallyOpened: welcomeGuideManuallyOpenedReducer,\n\tshowWelcomeGuide: showWelcomeGuideReducer,\n\ttourRating: tourRatingReducer,\n\twelcomeGuideVariant: welcomeGuideVariantReducer,\n\tshouldShowFirstPostPublishedModal: shouldShowFirstPostPublishedModalReducer,\n} );\n\nconst actions = {\n\t*fetchWelcomeGuideStatus() {\n\t\tconst response = yield apiFetchControls( { path: '/wpcom/v2/block-editor/nux' } );\n\n\t\treturn {\n\t\t\ttype: 'WPCOM_WELCOME_GUIDE_FETCH_STATUS_SUCCESS',\n\t\t\tresponse,\n\t\t};\n\t},\n\t*fetchShouldShowFirstPostPublishedModal() {\n\t\tconst response = yield apiFetchControls( {\n\t\t\tpath: '/wpcom/v2/block-editor/should-show-first-post-published-modal',\n\t\t} );\n\n\t\treturn {\n\t\t\ttype: 'WPCOM_SET_SHOULD_SHOW_FIRST_POST_PUBLISHED_MODAL',\n\t\t\tvalue: response.should_show_first_post_published_modal,\n\t\t};\n\t},\n\tsetShowWelcomeGuide: ( show, { openedManually, onlyLocal } = {} ) => {\n\t\tif ( ! onlyLocal ) {\n\t\t\tapiFetch( {\n\t\t\t\tpath: '/wpcom/v2/block-editor/nux',\n\t\t\t\tmethod: 'POST',\n\t\t\t\tdata: { show_welcome_guide: show },\n\t\t\t} );\n\t\t}\n\n\t\treturn {\n\t\t\ttype: 'WPCOM_WELCOME_GUIDE_SHOW_SET',\n\t\t\tshow,\n\t\t\topenedManually,\n\t\t};\n\t},\n\tsetTourRating: ( tourRating ) => {\n\t\treturn { type: 'WPCOM_WELCOME_GUIDE_TOUR_RATING_SET', tourRating };\n\t},\n\tsetUsedPageOrPatternsModal: () => {\n\t\treturn { type: 'WPCOM_HAS_USED_PATTERNS_MODAL' };\n\t},\n\tsetShouldShowFirstPostPublishedModal: ( value ) => {\n\t\treturn { type: 'WPCOM_SET_SHOULD_SHOW_FIRST_POST_PUBLISHED_MODAL', value };\n\t},\n\t// The `resetStore` action is only used for testing to reset the\n\t// store inbetween tests.\n\tresetStore: () => ( {\n\t\ttype: 'WPCOM_WELCOME_GUIDE_RESET_STORE',\n\t} ),\n};\n\nconst selectors = {\n\tisWelcomeGuideManuallyOpened: ( state ) => state.welcomeGuideManuallyOpened,\n\tisWelcomeGuideShown: ( state ) => !! state.showWelcomeGuide,\n\tisWelcomeGuideStatusLoaded: ( state ) => typeof state.showWelcomeGuide !== 'undefined',\n\tgetTourRating: ( state ) => state.tourRating,\n\t// the 'modal' variant previously used for mobile has been removed but its slug may still be persisted in local storage\n\tgetWelcomeGuideVariant: ( state ) =>\n\t\tstate.welcomeGuideVariant === 'modal' ? DEFAULT_VARIANT : state.welcomeGuideVariant,\n\tgetShouldShowFirstPostPublishedModal: ( state ) => state.shouldShowFirstPostPublishedModal,\n};\n\nexport function register() {\n\treturn registerStore( 'automattic/wpcom-welcome-guide', {\n\t\treducer,\n\t\tactions,\n\t\tselectors,\n\t\tcontrols,\n\t\tpersist: true,\n\t} );\n}\n","/* eslint-disable wpcalypso/jsx-classname-namespace */\n\nimport { recordTracksEvent } from '@automattic/calypso-analytics';\nimport { Guide, GuidePage } from '@wordpress/components';\nimport { useDispatch, useSelect } from '@wordpress/data';\nimport { useEffect } from '@wordpress/element';\nimport { __ } from '@wordpress/i18n';\nimport blockPickerImage from './images/block-picker.svg';\nimport editorImage from './images/editor.svg';\nimport previewImage from './images/preview.svg';\nimport privateImage from './images/private.svg';\n\nimport './style.scss';\n\nfunction WpcomNux() {\n\tconst { show, isNewPageLayoutModalOpen, isManuallyOpened } = useSelect( ( select ) => ( {\n\t\tshow: select( 'automattic/wpcom-welcome-guide' ).isWelcomeGuideShown(),\n\t\tisNewPageLayoutModalOpen:\n\t\t\tselect( 'automattic/starter-page-layouts' ) && // Handle the case where SPT is not initalized.\n\t\t\tselect( 'automattic/starter-page-layouts' ).isOpen(),\n\t\tisManuallyOpened: select( 'automattic/wpcom-welcome-guide' ).isWelcomeGuideManuallyOpened(),\n\t} ) );\n\n\tconst { setShowWelcomeGuide } = useDispatch( 'automattic/wpcom-welcome-guide' );\n\n\t// Track opening of the welcome guide\n\tuseEffect( () => {\n\t\tif ( show && ! isNewPageLayoutModalOpen ) {\n\t\t\trecordTracksEvent( 'calypso_editor_wpcom_nux_open', {\n\t\t\t\tis_gutenboarding: window.calypsoifyGutenberg?.isGutenboarding,\n\t\t\t\tis_manually_opened: isManuallyOpened,\n\t\t\t} );\n\t\t}\n\t}, [ isManuallyOpened, isNewPageLayoutModalOpen, show ] );\n\n\tif ( ! show || isNewPageLayoutModalOpen ) {\n\t\treturn null;\n\t}\n\n\tconst dismissWpcomNux = () => {\n\t\trecordTracksEvent( 'calypso_editor_wpcom_nux_dismiss', {\n\t\t\tis_gutenboarding: window.calypsoifyGutenberg?.isGutenboarding,\n\t\t} );\n\t\tsetShowWelcomeGuide( false, { openedManually: false } );\n\t};\n\n\tconst nuxPages = getWpcomNuxPages();\n\n\treturn (\n\t\t<Guide\n\t\t\tclassName=\"wpcom-block-editor-nux\"\n\t\t\tcontentLabel={ __( 'Welcome to your website', 'full-site-editing' ) }\n\t\t\tfinishButtonText={ __( 'Get started', 'full-site-editing' ) }\n\t\t\tonFinish={ dismissWpcomNux }\n\t\t>\n\t\t\t{ nuxPages.map( ( nuxPage, index ) => (\n\t\t\t\t<NuxPage\n\t\t\t\t\tkey={ nuxPage.heading }\n\t\t\t\t\tpageNumber={ index + 1 }\n\t\t\t\t\tisLastPage={ index === nuxPages.length - 1 }\n\t\t\t\t\t{ ...nuxPage }\n\t\t\t\t/>\n\t\t\t) ) }\n\t\t</Guide>\n\t);\n}\n\n/**\n * This function returns a collection of NUX slide data\n *\n * @returns { Array } a collection of <NuxPage /> props\n */\nfunction getWpcomNuxPages() {\n\treturn [\n\t\t{\n\t\t\theading: __( 'Welcome to your website', 'full-site-editing' ),\n\t\t\tdescription: __(\n\t\t\t\t'Edit your homepage, add the pages you need, and change your site’s look and feel.',\n\t\t\t\t'full-site-editing'\n\t\t\t),\n\t\t\timgSrc: editorImage,\n\t\t\talignBottom: true,\n\t\t},\n\t\t{\n\t\t\theading: __( 'Add or edit your content', 'full-site-editing' ),\n\t\t\tdescription: __(\n\t\t\t\t'Edit the placeholder content we’ve started you off with, or click the plus sign to add more content.',\n\t\t\t\t'full-site-editing'\n\t\t\t),\n\t\t\timgSrc: blockPickerImage,\n\t\t},\n\t\t{\n\t\t\theading: __( 'Preview your site as you go', 'full-site-editing' ),\n\t\t\tdescription: __(\n\t\t\t\t'As you edit your site content, click “Preview” to see your site the way your visitors will.',\n\t\t\t\t'full-site-editing'\n\t\t\t),\n\t\t\timgSrc: previewImage,\n\t\t\talignBottom: true,\n\t\t},\n\t\t{\n\t\t\theading: __( 'Hidden until you’re ready', 'full-site-editing' ),\n\t\t\tdescription: __(\n\t\t\t\t'Your site will remain hidden until launched. Click “Launch” in the toolbar to share it with the world.',\n\t\t\t\t'full-site-editing'\n\t\t\t),\n\t\t\timgSrc: privateImage,\n\t\t\talignBottom: true,\n\t\t},\n\t];\n}\n\nfunction NuxPage( { pageNumber, isLastPage, alignBottom = false, heading, description, imgSrc } ) {\n\tuseEffect( () => {\n\t\trecordTracksEvent( 'calypso_editor_wpcom_nux_slide_view', {\n\t\t\tslide_number: pageNumber,\n\t\t\tis_last_slide: isLastPage,\n\t\t\tis_gutenboarding: window.calypsoifyGutenberg?.isGutenboarding,\n\t\t} );\n\t\t// eslint-disable-next-line react-hooks/exhaustive-deps\n\t}, [] );\n\treturn (\n\t\t<GuidePage className=\"wpcom-block-editor-nux__page\">\n\t\t\t<div className=\"wpcom-block-editor-nux__text\">\n\t\t\t\t<h1 className=\"wpcom-block-editor-nux__heading\">{ heading }</h1>\n\t\t\t\t<div className=\"wpcom-block-editor-nux__description\">{ description }</div>\n\t\t\t</div>\n\t\t\t<div className=\"wpcom-block-editor-nux__visual\">\n\t\t\t\t<img\n\t\t\t\t\t// Force remount so the stale image doesn't remain while new image is fetched\n\t\t\t\t\tkey={ imgSrc }\n\t\t\t\t\tsrc={ imgSrc }\n\t\t\t\t\talt=\"\"\n\t\t\t\t\taria-hidden=\"true\"\n\t\t\t\t\tclassName={ 'wpcom-block-editor-nux__image' + ( alignBottom ? ' align-bottom' : '' ) }\n\t\t\t\t/>\n\t\t\t</div>\n\t\t</GuidePage>\n\t);\n}\n\nexport default WpcomNux;\n","import { recordTracksEvent } from '@automattic/calypso-analytics';\nimport { useLocale } from '@automattic/i18n-utils';\nimport { WpcomTourKit, usePrefetchTourAssets } from '@automattic/tour-kit';\nimport { isWithinBreakpoint } from '@automattic/viewport';\nimport { useDispatch, useSelect, dispatch } from '@wordpress/data';\nimport { useEffect, useMemo } from '@wordpress/element';\nimport useSiteIntent from '../../../dotcom-fse/lib/site-intent/use-site-intent';\nimport useSitePlan from '../../../dotcom-fse/lib/site-plan/use-site-plan';\nimport getTourSteps from './tour-steps';\nimport './style-tour.scss';\nimport type { WpcomConfig } from '@automattic/tour-kit';\nimport type { Rect, Placement } from '@popperjs/core';\n\nfunction LaunchWpcomWelcomeTour() {\n\tconst { show, isNewPageLayoutModalOpen, isManuallyOpened } = useSelect( ( select ) => ( {\n\t\tshow: select( 'automattic/wpcom-welcome-guide' ).isWelcomeGuideShown(),\n\t\t// Handle the case where the new page pattern modal is initialized and open\n\t\tisNewPageLayoutModalOpen:\n\t\t\tselect( 'automattic/starter-page-layouts' ) &&\n\t\t\tselect( 'automattic/starter-page-layouts' ).isOpen(),\n\t\tisManuallyOpened: select( 'automattic/wpcom-welcome-guide' ).isWelcomeGuideManuallyOpened(),\n\t} ) );\n\tconst localeSlug = useLocale();\n\n\t// Preload first card image (others preloaded after open state confirmed)\n\tusePrefetchTourAssets( [ getTourSteps( localeSlug, false )[ 0 ] ] );\n\n\tuseEffect( () => {\n\t\tif ( ! show && ! isNewPageLayoutModalOpen ) {\n\t\t\treturn;\n\t\t}\n\n\t\t// Track opening of the Welcome Guide\n\t\trecordTracksEvent( 'calypso_editor_wpcom_tour_open', {\n\t\t\tis_gutenboarding: window.calypsoifyGutenberg?.isGutenboarding,\n\t\t\tis_manually_opened: isManuallyOpened,\n\t\t} );\n\t}, [ isNewPageLayoutModalOpen, isManuallyOpened, show ] );\n\n\tif ( ! show || isNewPageLayoutModalOpen ) {\n\t\treturn null;\n\t}\n\n\treturn <WelcomeTour />;\n}\n\nfunction WelcomeTour() {\n\tconst sitePlan = useSitePlan( window._currentSiteId );\n\tconst intent = useSiteIntent();\n\tconst localeSlug = useLocale();\n\tconst { setShowWelcomeGuide } = useDispatch( 'automattic/wpcom-welcome-guide' );\n\tconst isGutenboarding = window.calypsoifyGutenberg?.isGutenboarding;\n\tconst isWelcomeTourNext = () => {\n\t\treturn new URLSearchParams( document.location.search ).has( 'welcome-tour-next' );\n\t};\n\tconst isSiteEditor = useSelect( ( select ) => !! select( 'core/edit-site' ) );\n\n\tconst tourSteps = getTourSteps( localeSlug, isWelcomeTourNext(), isSiteEditor );\n\n\t// Only keep Payment block step if user comes from seller simple flow\n\tif ( ! ( 'sell' === intent && sitePlan && 'ecommerce-bundle' !== sitePlan.product_slug ) ) {\n\t\tconst paymentBlockIndex = tourSteps.findIndex( ( step ) => step.slug === 'payment-block' );\n\t\ttourSteps.splice( paymentBlockIndex, 1 );\n\t}\n\tconst { isInserterOpened, isSidebarOpened, isSettingsOpened } = useSelect( ( select ) => ( {\n\t\tisInserterOpened: select( 'core/edit-post' ).isInserterOpened(),\n\t\tisSidebarOpened: select( 'automattic/block-editor-nav-sidebar' )?.isSidebarOpened() ?? false, // The sidebar store may not always be loaded.\n\t\tisSettingsOpened:\n\t\t\tselect( 'core/interface' ).getActiveComplementaryArea( 'core/edit-post' ) ===\n\t\t\t'edit-post/document',\n\t} ) );\n\n\tconst isTourMinimized =\n\t\tisSidebarOpened ||\n\t\t( isWithinBreakpoint( '<782px' ) && ( isInserterOpened || isSettingsOpened ) );\n\n\tconst tourConfig: WpcomConfig = {\n\t\tsteps: tourSteps,\n\t\tcloseHandler: ( _steps, currentStepIndex, source ) => {\n\t\t\trecordTracksEvent( 'calypso_editor_wpcom_tour_dismiss', {\n\t\t\t\tis_gutenboarding: isGutenboarding,\n\t\t\t\tslide_number: currentStepIndex + 1,\n\t\t\t\taction: source,\n\t\t\t} );\n\t\t\tsetShowWelcomeGuide( false, { openedManually: false } );\n\t\t},\n\t\tisMinimized: isTourMinimized,\n\t\toptions: {\n\t\t\ttourRating: {\n\t\t\t\tenabled: true,\n\t\t\t\tuseTourRating: () => {\n\t\t\t\t\treturn useSelect( ( select ) =>\n\t\t\t\t\t\tselect( 'automattic/wpcom-welcome-guide' ).getTourRating()\n\t\t\t\t\t);\n\t\t\t\t},\n\t\t\t\tonTourRate: ( rating ) => {\n\t\t\t\t\tdispatch( 'automattic/wpcom-welcome-guide' ).setTourRating( rating );\n\t\t\t\t\trecordTracksEvent( 'calypso_editor_wpcom_tour_rate', {\n\t\t\t\t\t\tthumbs_up: rating === 'thumbs-up',\n\t\t\t\t\t\tis_gutenboarding: false,\n\t\t\t\t\t} );\n\t\t\t\t},\n\t\t\t},\n\t\t\tcallbacks: {\n\t\t\t\tonMinimize: ( currentStepIndex ) => {\n\t\t\t\t\trecordTracksEvent( 'calypso_editor_wpcom_tour_minimize', {\n\t\t\t\t\t\tis_gutenboarding: isGutenboarding,\n\t\t\t\t\t\tslide_number: currentStepIndex + 1,\n\t\t\t\t\t} );\n\t\t\t\t},\n\t\t\t\tonMaximize: ( currentStepIndex ) => {\n\t\t\t\t\trecordTracksEvent( 'calypso_editor_wpcom_tour_maximize', {\n\t\t\t\t\t\tis_gutenboarding: isGutenboarding,\n\t\t\t\t\t\tslide_number: currentStepIndex + 1,\n\t\t\t\t\t} );\n\t\t\t\t},\n\t\t\t\tonStepViewOnce: ( currentStepIndex ) => {\n\t\t\t\t\tconst lastStepIndex = tourSteps.length - 1;\n\t\t\t\t\tconst { heading } = tourSteps[ currentStepIndex ].meta;\n\n\t\t\t\t\trecordTracksEvent( 'calypso_editor_wpcom_tour_slide_view', {\n\t\t\t\t\t\tslide_number: currentStepIndex + 1,\n\t\t\t\t\t\tis_last_slide: currentStepIndex === lastStepIndex,\n\t\t\t\t\t\tslide_heading: heading,\n\t\t\t\t\t\tis_gutenboarding: isGutenboarding,\n\t\t\t\t\t} );\n\t\t\t\t},\n\t\t\t},\n\t\t\teffects: {\n\t\t\t\tspotlight: isWelcomeTourNext()\n\t\t\t\t\t? {\n\t\t\t\t\t\t\tstyles: {\n\t\t\t\t\t\t\t\tminWidth: '50px',\n\t\t\t\t\t\t\t\tminHeight: '50px',\n\t\t\t\t\t\t\t\tborderRadius: '2px',\n\t\t\t\t\t\t\t},\n\t\t\t\t\t }\n\t\t\t\t\t: undefined,\n\t\t\t\tarrowIndicator: false,\n\t\t\t},\n\t\t\tpopperModifiers: [\n\t\t\t\tuseMemo(\n\t\t\t\t\t() => ( {\n\t\t\t\t\t\tname: 'offset',\n\t\t\t\t\t\toptions: {\n\t\t\t\t\t\t\toffset: ( { placement, reference }: { placement: Placement; reference: Rect } ) => {\n\t\t\t\t\t\t\t\tif ( placement === 'bottom' ) {\n\t\t\t\t\t\t\t\t\tconst boundary = document.querySelector( '.edit-post-header' );\n\n\t\t\t\t\t\t\t\t\tif ( ! boundary ) {\n\t\t\t\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\tconst boundaryRect = boundary.getBoundingClientRect();\n\t\t\t\t\t\t\t\t\tconst boundaryBottomY = boundaryRect.height + boundaryRect.y;\n\t\t\t\t\t\t\t\t\tconst referenceBottomY = reference.height + reference.y;\n\n\t\t\t\t\t\t\t\t\treturn [ 0, boundaryBottomY - referenceBottomY + 16 ];\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\treturn [ 0, 0 ];\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t},\n\t\t\t\t\t} ),\n\t\t\t\t\t[]\n\t\t\t\t),\n\t\t\t],\n\t\t\tclassNames: 'wpcom-editor-welcome-tour',\n\t\t\tportalParentElement: document.getElementById( 'wpwrap' ),\n\t\t},\n\t};\n\n\treturn <WpcomTourKit config={ tourConfig } />;\n}\n\nexport default LaunchWpcomWelcomeTour;\n","import { localizeUrl } from '@automattic/i18n-utils';\nimport { isMobile } from '@automattic/viewport';\nimport { ExternalLink } from '@wordpress/components';\nimport { createInterpolateElement } from '@wordpress/element';\nimport { __ } from '@wordpress/i18n';\nimport type { WpcomStep } from '@automattic/tour-kit';\n\ninterface TourAsset {\n\tdesktop?: { src: string; type: string };\n\tmobile?: { src: string; type: string };\n}\n\nfunction getTourAssets( key: string ): TourAsset | undefined {\n\tconst CDN_PREFIX = 'https://s0.wp.com/i/editor-welcome-tour';\n\tconst tourAssets = {\n\t\taddBlock: {\n\t\t\tdesktop: { src: `${ CDN_PREFIX }/slide-add-block.gif`, type: 'image/gif' },\n\t\t\tmobile: { src: `${ CDN_PREFIX }/slide-add-block_mobile.gif`, type: 'image/gif' },\n\t\t},\n\t\tallBlocks: { desktop: { src: `${ CDN_PREFIX }/slide-all-blocks.gif`, type: 'image/gif' } },\n\t\tfinish: { desktop: { src: `${ CDN_PREFIX }/slide-finish.png`, type: 'image/gif' } },\n\t\tmakeBold: { desktop: { src: `${ CDN_PREFIX }/slide-make-bold.gif`, type: 'image/gif' } },\n\t\tmoreOptions: {\n\t\t\tdesktop: { src: `${ CDN_PREFIX }/slide-more-options.gif`, type: 'image/gif' },\n\t\t\tmobile: { src: `${ CDN_PREFIX }/slide-more-options_mobile.gif`, type: 'image/gif' },\n\t\t},\n\t\tmoveBlock: {\n\t\t\tdesktop: { src: `${ CDN_PREFIX }/slide-move-block.gif`, type: 'image/gif' },\n\t\t\tmobile: { src: `${ CDN_PREFIX }/slide-move-block_mobile.gif`, type: 'image/gif' },\n\t\t},\n\t\tfindYourWay: {\n\t\t\tdesktop: { src: `${ CDN_PREFIX }/slide-find-your-way.gif`, type: 'image/gif' },\n\t\t},\n\t\tundo: { desktop: { src: `${ CDN_PREFIX }/slide-undo.gif`, type: 'image/gif' } },\n\t\twelcome: {\n\t\t\tdesktop: { src: `${ CDN_PREFIX }/slide-welcome.png`, type: 'image/png' },\n\t\t\tmobile: { src: `${ CDN_PREFIX }/slide-welcome_mobile.jpg`, type: 'image/jpeg' },\n\t\t},\n\t\teditYourSite: {\n\t\t\tdesktop: {\n\t\t\t\tsrc: `https://s.w.org/images/block-editor/edit-your-site.gif?1`,\n\t\t\t\ttype: 'image/gif',\n\t\t\t},\n\t\t\tmobile: {\n\t\t\t\tsrc: `https://s.w.org/images/block-editor/edit-your-site.gif?1`,\n\t\t\t\ttype: 'image/gif',\n\t\t\t},\n\t\t},\n\t} as { [ key: string ]: TourAsset };\n\n\treturn tourAssets[ key ];\n}\n\nfunction getTourSteps(\n\tlocaleSlug: string,\n\treferencePositioning = false,\n\tisSiteEditor = false\n): WpcomStep[] {\n\treturn [\n\t\t{\n\t\t\tslug: 'welcome',\n\t\t\tmeta: {\n\t\t\t\theading: __( 'Welcome to WordPress!', 'full-site-editing' ),\n\t\t\t\tdescriptions: {\n\t\t\t\t\tdesktop: __(\n\t\t\t\t\t\t'Take this short, interactive tour to learn the fundamentals of the WordPress editor.',\n\t\t\t\t\t\t'full-site-editing'\n\t\t\t\t\t),\n\t\t\t\t\tmobile: null,\n\t\t\t\t},\n\t\t\t\timgSrc: getTourAssets( 'welcome' ),\n\t\t\t},\n\t\t\toptions: {\n\t\t\t\tclassNames: {\n\t\t\t\t\tdesktop: 'wpcom-editor-welcome-tour__step',\n\t\t\t\t\tmobile: [ 'is-with-extra-padding', 'wpcom-editor-welcome-tour__step' ],\n\t\t\t\t},\n\t\t\t},\n\t\t},\n\t\t{\n\t\t\tslug: 'everything-is-a-block',\n\t\t\tmeta: {\n\t\t\t\theading: __( 'Everything is a block', 'full-site-editing' ),\n\t\t\t\tdescriptions: {\n\t\t\t\t\tdesktop: __(\n\t\t\t\t\t\t'In the WordPress Editor, paragraphs, images, and videos are all blocks.',\n\t\t\t\t\t\t'full-site-editing'\n\t\t\t\t\t),\n\t\t\t\t\tmobile: null,\n\t\t\t\t},\n\t\t\t\timgSrc: getTourAssets( 'allBlocks' ),\n\t\t\t},\n\t\t\toptions: {\n\t\t\t\tclassNames: {\n\t\t\t\t\tdesktop: 'wpcom-editor-welcome-tour__step',\n\t\t\t\t\tmobile: 'wpcom-editor-welcome-tour__step',\n\t\t\t\t},\n\t\t\t},\n\t\t},\n\t\t{\n\t\t\tslug: 'add-block',\n\t\t\t...( referencePositioning && {\n\t\t\t\treferenceElements: {\n\t\t\t\t\tmobile:\n\t\t\t\t\t\t'.edit-post-header .edit-post-header__toolbar .components-button.edit-post-header-toolbar__inserter-toggle',\n\t\t\t\t\tdesktop:\n\t\t\t\t\t\t'.edit-post-header .edit-post-header__toolbar .components-button.edit-post-header-toolbar__inserter-toggle',\n\t\t\t\t},\n\t\t\t} ),\n\t\t\tmeta: {\n\t\t\t\theading: __( 'Adding a new block', 'full-site-editing' ),\n\t\t\t\tdescriptions: {\n\t\t\t\t\tdesktop: __(\n\t\t\t\t\t\t'Click + to open the inserter. Then click the block you want to add.',\n\t\t\t\t\t\t'full-site-editing'\n\t\t\t\t\t),\n\t\t\t\t\tmobile: __(\n\t\t\t\t\t\t'Tap + to open the inserter. Then tap the block you want to add.',\n\t\t\t\t\t\t'full-site-editing'\n\t\t\t\t\t),\n\t\t\t\t},\n\t\t\t\timgSrc: getTourAssets( 'addBlock' ),\n\t\t\t},\n\t\t\toptions: {\n\t\t\t\tclassNames: {\n\t\t\t\t\tdesktop: 'wpcom-editor-welcome-tour__step',\n\t\t\t\t\tmobile: [ 'is-with-extra-padding', 'wpcom-editor-welcome-tour__step' ],\n\t\t\t\t},\n\t\t\t},\n\t\t},\n\t\t{\n\t\t\tslug: 'edit-block',\n\t\t\tmeta: {\n\t\t\t\theading: __( 'Click a block to change it', 'full-site-editing' ),\n\t\t\t\tdescriptions: {\n\t\t\t\t\tdesktop: __(\n\t\t\t\t\t\t'Use the toolbar to change the appearance of a selected block. Try making it bold.',\n\t\t\t\t\t\t'full-site-editing'\n\t\t\t\t\t),\n\t\t\t\t\tmobile: null,\n\t\t\t\t},\n\t\t\t\timgSrc: getTourAssets( 'makeBold' ),\n\t\t\t},\n\t\t\toptions: {\n\t\t\t\tclassNames: {\n\t\t\t\t\tdesktop: 'wpcom-editor-welcome-tour__step',\n\t\t\t\t\tmobile: 'wpcom-editor-welcome-tour__step',\n\t\t\t\t},\n\t\t\t},\n\t\t},\n\t\t{\n\t\t\tslug: 'settings',\n\t\t\t...( referencePositioning && {\n\t\t\t\treferenceElements: {\n\t\t\t\t\tmobile:\n\t\t\t\t\t\t'.edit-post-header .edit-post-header__settings .interface-pinned-items > button:nth-child(1)',\n\t\t\t\t\tdesktop:\n\t\t\t\t\t\t'.edit-post-header .edit-post-header__settings .interface-pinned-items > button:nth-child(1)',\n\t\t\t\t},\n\t\t\t} ),\n\t\t\tmeta: {\n\t\t\t\theading: __( 'More Options', 'full-site-editing' ),\n\t\t\t\tdescriptions: {\n\t\t\t\t\tdesktop: __( 'Click the settings icon to see even more options.', 'full-site-editing' ),\n\t\t\t\t\tmobile: __( 'Tap the settings icon to see even more options.', 'full-site-editing' ),\n\t\t\t\t},\n\t\t\t\timgSrc: getTourAssets( 'moreOptions' ),\n\t\t\t},\n\t\t\toptions: {\n\t\t\t\tclassNames: {\n\t\t\t\t\tdesktop: 'wpcom-editor-welcome-tour__step',\n\t\t\t\t\tmobile: [ 'is-with-extra-padding', 'wpcom-editor-welcome-tour__step' ],\n\t\t\t\t},\n\t\t\t},\n\t\t},\n\t\t...( ! isMobile()\n\t\t\t? [\n\t\t\t\t\t{\n\t\t\t\t\t\tslug: 'find-your-way',\n\t\t\t\t\t\tmeta: {\n\t\t\t\t\t\t\theading: __( 'Find your way', 'full-site-editing' ),\n\t\t\t\t\t\t\tdescriptions: {\n\t\t\t\t\t\t\t\tdesktop: __(\n\t\t\t\t\t\t\t\t\t\"Use List View to see all the blocks you've added. Click and drag any block to move it around.\",\n\t\t\t\t\t\t\t\t\t'full-site-editing'\n\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\tmobile: null,\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\timgSrc: getTourAssets( 'findYourWay' ),\n\t\t\t\t\t\t},\n\t\t\t\t\t\toptions: {\n\t\t\t\t\t\t\tclassNames: {\n\t\t\t\t\t\t\t\tdesktop: [ 'is-with-extra-padding', 'wpcom-editor-welcome-tour__step' ],\n\t\t\t\t\t\t\t\tmobile: 'wpcom-editor-welcome-tour__step',\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t ]\n\t\t\t: [] ),\n\t\t...( ! isMobile()\n\t\t\t? [\n\t\t\t\t\t{\n\t\t\t\t\t\tslug: 'undo',\n\t\t\t\t\t\t...( referencePositioning && {\n\t\t\t\t\t\t\treferenceElements: {\n\t\t\t\t\t\t\t\tdesktop:\n\t\t\t\t\t\t\t\t\t'.edit-post-header .edit-post-header__toolbar .components-button.editor-history__undo',\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t} ),\n\t\t\t\t\t\tmeta: {\n\t\t\t\t\t\t\theading: __( 'Undo any mistake', 'full-site-editing' ),\n\t\t\t\t\t\t\tdescriptions: {\n\t\t\t\t\t\t\t\tdesktop: __(\n\t\t\t\t\t\t\t\t\t\"Click the Undo button if you've made a mistake.\",\n\t\t\t\t\t\t\t\t\t'full-site-editing'\n\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\tmobile: null,\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\timgSrc: getTourAssets( 'undo' ),\n\t\t\t\t\t\t},\n\t\t\t\t\t\toptions: {\n\t\t\t\t\t\t\tclassNames: {\n\t\t\t\t\t\t\t\tdesktop: 'wpcom-editor-welcome-tour__step',\n\t\t\t\t\t\t\t\tmobile: 'wpcom-editor-welcome-tour__step',\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t ]\n\t\t\t: [] ),\n\t\t{\n\t\t\tslug: 'drag-drop',\n\t\t\tmeta: {\n\t\t\t\theading: __( 'Drag & drop', 'full-site-editing' ),\n\t\t\t\tdescriptions: {\n\t\t\t\t\tdesktop: __( 'To move blocks around, click and drag the handle.', 'full-site-editing' ),\n\t\t\t\t\tmobile: __( 'To move blocks around, tap the up and down arrows.', 'full-site-editing' ),\n\t\t\t\t},\n\t\t\t\timgSrc: getTourAssets( 'moveBlock' ),\n\t\t\t},\n\t\t\toptions: {\n\t\t\t\tclassNames: {\n\t\t\t\t\tdesktop: 'wpcom-editor-welcome-tour__step',\n\t\t\t\t\tmobile: [ 'is-with-extra-padding', 'wpcom-editor-welcome-tour__step' ],\n\t\t\t\t},\n\t\t\t},\n\t\t},\n\t\t{\n\t\t\tslug: 'payment-block',\n\t\t\tmeta: {\n\t\t\t\theading: __( 'The Payments block', 'full-site-editing' ),\n\t\t\t\tdescriptions: {\n\t\t\t\t\tdesktop: (\n\t\t\t\t\t\t<>\n\t\t\t\t\t\t\t{ __(\n\t\t\t\t\t\t\t\t'The Payments block allows you to accept payments for one-time, monthly recurring, or annual payments on your website',\n\t\t\t\t\t\t\t\t'full-site-editing'\n\t\t\t\t\t\t\t) }\n\t\t\t\t\t\t\t<br />\n\t\t\t\t\t\t\t<ExternalLink\n\t\t\t\t\t\t\t\thref={ localizeUrl(\n\t\t\t\t\t\t\t\t\t'https://wordpress.com/support/video-tutorials-add-payments-features-to-your-site-with-our-guides/#how-to-use-the-payments-block-video',\n\t\t\t\t\t\t\t\t\tlocaleSlug\n\t\t\t\t\t\t\t\t) }\n\t\t\t\t\t\t\t\ttarget=\"_blank\"\n\t\t\t\t\t\t\t\trel=\"noopener noreferrer\"\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t{ __( 'Learn more', 'full-site-editing' ) }\n\t\t\t\t\t\t\t</ExternalLink>\n\t\t\t\t\t\t</>\n\t\t\t\t\t),\n\t\t\t\t\tmobile: null,\n\t\t\t\t},\n\t\t\t\timgSrc: getTourAssets( 'welcome' ),\n\t\t\t},\n\t\t\toptions: {\n\t\t\t\tclassNames: {\n\t\t\t\t\tdesktop: 'wpcom-editor-welcome-tour__step',\n\t\t\t\t\tmobile: 'wpcom-editor-welcome-tour__step',\n\t\t\t\t},\n\t\t\t},\n\t\t},\n\t\t...( isSiteEditor\n\t\t\t? [\n\t\t\t\t\t{\n\t\t\t\t\t\tslug: 'edit-your-site',\n\t\t\t\t\t\tmeta: {\n\t\t\t\t\t\t\theading: __( 'Edit your site', 'full-site-editing' ),\n\t\t\t\t\t\t\tdescriptions: {\n\t\t\t\t\t\t\t\tdesktop: __(\n\t\t\t\t\t\t\t\t\t'Design everything on your site - from the header right down to the footer - using blocks.',\n\t\t\t\t\t\t\t\t\t'full-site-editing'\n\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\tmobile: __(\n\t\t\t\t\t\t\t\t\t'Design everything on your site - from the header right down to the footer - using blocks.',\n\t\t\t\t\t\t\t\t\t'full-site-editing'\n\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\timgSrc: getTourAssets( 'editYourSite' ),\n\t\t\t\t\t\t},\n\t\t\t\t\t\toptions: {\n\t\t\t\t\t\t\tclassNames: {\n\t\t\t\t\t\t\t\tdesktop: 'wpcom-editor-welcome-tour__step',\n\t\t\t\t\t\t\t\tmobile: [ 'is-with-extra-padding', 'wpcom-editor-welcome-tour__step' ],\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t ]\n\t\t\t: [] ),\n\t\t{\n\t\t\tslug: 'congratulations',\n\t\t\tmeta: {\n\t\t\t\theading: __( 'Congratulations!', 'full-site-editing' ),\n\t\t\t\tdescriptions: {\n\t\t\t\t\tdesktop: createInterpolateElement(\n\t\t\t\t\t\t__(\n\t\t\t\t\t\t\t\"You've learned the basics. Remember, your site is private until you <link_to_launch_site_docs>decide to launch</link_to_launch_site_docs>. View the <link_to_editor_docs>block editing docs</link_to_editor_docs> to learn more.\",\n\t\t\t\t\t\t\t'full-site-editing'\n\t\t\t\t\t\t),\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tlink_to_launch_site_docs: (\n\t\t\t\t\t\t\t\t<ExternalLink\n\t\t\t\t\t\t\t\t\thref={ localizeUrl(\n\t\t\t\t\t\t\t\t\t\t'https://wordpress.com/support/settings/privacy-settings/#launch-your-site',\n\t\t\t\t\t\t\t\t\t\tlocaleSlug\n\t\t\t\t\t\t\t\t\t) }\n\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\tlink_to_editor_docs: (\n\t\t\t\t\t\t\t\t<ExternalLink\n\t\t\t\t\t\t\t\t\thref={ localizeUrl(\n\t\t\t\t\t\t\t\t\t\t'https://wordpress.com/support/wordpress-editor/',\n\t\t\t\t\t\t\t\t\t\tlocaleSlug\n\t\t\t\t\t\t\t\t\t) }\n\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t),\n\t\t\t\t\t\t}\n\t\t\t\t\t),\n\t\t\t\t\tmobile: null,\n\t\t\t\t},\n\t\t\t\timgSrc: getTourAssets( 'finish' ),\n\t\t\t},\n\t\t\toptions: {\n\t\t\t\tclassNames: {\n\t\t\t\t\tdesktop: 'wpcom-editor-welcome-tour__step',\n\t\t\t\t\tmobile: 'wpcom-editor-welcome-tour__step',\n\t\t\t\t},\n\t\t\t},\n\t\t},\n\t];\n}\n\nexport default getTourSteps;\n","// We use this module state to track url paths submitted to recordTracksPageView\n// `lib/analytics/index.js` also reuses it for timing.record\nlet mostRecentUrlPath: string | null = null;\n\n// pathCounter is used to keep track of the order of calypso_page_view Tracks events.\nlet pathCounter = 0;\n\nif ( typeof window !== 'undefined' ) {\n\twindow.addEventListener( 'popstate', function () {\n\t\t// throw away our URL value if the user used the back/forward buttons\n\t\tmostRecentUrlPath = null;\n\t} );\n}\n\ninterface PageViewParams {\n\tlast_pageview_path_with_count: string;\n\tthis_pageview_path_with_count: string;\n}\n\nexport function getPageViewParams( urlPath: string ): PageViewParams {\n\tconst params = {\n\t\tlast_pageview_path_with_count: `${ mostRecentUrlPath }(${ pathCounter.toString() })`,\n\t\tthis_pageview_path_with_count: `${ urlPath }(${ pathCounter + 1 })`,\n\t};\n\t// Record this path.\n\tmostRecentUrlPath = urlPath;\n\tpathCounter++;\n\treturn params;\n}\n\n/**\n * Gets the url path which was set on the last call to getPageViewParams() and stored in module state\n * mostRecentUrlPath will be null if the page was refreshed or getPageViewParams() has not been called\n */\nexport function getMostRecentUrlPath(): string | null {\n\treturn mostRecentUrlPath;\n}\n","/* eslint-disable @typescript-eslint/no-explicit-any */\n\nimport { EventEmitter } from 'events';\nimport { loadScript } from '@automattic/load-script';\nimport cookie from 'cookie';\nimport { includes, omitBy, times } from 'lodash';\nimport { getPageViewParams } from './page-view-params';\nimport { getCurrentUser, setCurrentUser } from './utils/current-user';\nimport debug from './utils/debug';\nimport getDoNotTrack from './utils/do-not-track';\n\ndeclare global {\n\tinterface Window {\n\t\t_tkq: Array< Array< any > >;\n\t}\n}\ndeclare const window: undefined | ( Window & { BUILD_TIMESTAMP?: number } );\n\n/**\n * Tracks uses a bunch of special query params that should not be used as property name\n * See internal Nosara repo?\n */\nconst TRACKS_SPECIAL_PROPS_NAMES = [ 'geo', 'message', 'request', 'geocity', 'ip' ];\nconst EVENT_NAME_EXCEPTIONS = [\n\t'a8c_cookie_banner_ok',\n\t// WooCommerce Onboarding / Connection Flow.\n\t'wcadmin_storeprofiler_create_jetpack_account',\n\t'wcadmin_storeprofiler_connect_store',\n\t'wcadmin_storeprofiler_login_jetpack_account',\n\t'wcadmin_storeprofiler_payment_login',\n\t'wcadmin_storeprofiler_payment_create_account',\n\t// Checkout\n\t'calypso_checkout_switch_to_p_24',\n\t'calypso_checkout_composite_p24_submit_clicked',\n];\nlet _superProps: any; // Added to all Tracks events.\nlet _loadTracksResult = Promise.resolve(); // default value for non-BOM environments.\n\nif ( typeof document !== 'undefined' ) {\n\t_loadTracksResult = loadScript( '//stats.wp.com/w.js?63' );\n}\n\nfunction createRandomId( randomBytesLength = 9 ): string {\n\tif ( typeof window === 'undefined' ) {\n\t\treturn '';\n\t}\n\t// 9 * 4/3 = 12\n\t// this is to avoid getting padding of a random byte string when it is base64 encoded\n\tlet randomBytes: any;\n\n\tif ( window.crypto && window.crypto.getRandomValues ) {\n\t\trandomBytes = new Uint8Array( randomBytesLength );\n\t\twindow.crypto.getRandomValues( randomBytes );\n\t} else {\n\t\trandomBytes = times( randomBytesLength, () => Math.floor( Math.random() * 256 ) );\n\t}\n\n\treturn window.btoa( String.fromCharCode( ...randomBytes ) );\n}\n\nfunction getUrlParameter( name: string ): string {\n\tif ( typeof window === 'undefined' ) {\n\t\treturn '';\n\t}\n\tname = name.replace( /[[]/g, '\\\\[' ).replace( /[\\]]/g, '\\\\]' );\n\tconst regex = new RegExp( '[\\\\?&]' + name + '=([^&#]*)' );\n\tconst results = regex.exec( window.location.search );\n\treturn results === null ? '' : decodeURIComponent( results[ 1 ].replace( /\\+/g, ' ' ) );\n}\n\nfunction checkForBlockedTracks(): Promise< void > {\n\t// Proceed only after the tracks script load finished and failed.\n\t// Calling this function from `initialize` ensures current user is set.\n\t// This detects stats blocking, and identifies by `getCurrentUser()`, URL, or cookie.\n\treturn _loadTracksResult.catch( () => {\n\t\tlet _ut;\n\t\tlet _ui;\n\t\tconst currentUser = getCurrentUser();\n\t\tif ( currentUser && currentUser.ID ) {\n\t\t\t_ut = 'wpcom:user_id';\n\t\t\t_ui = currentUser.ID;\n\t\t} else {\n\t\t\t_ut = getUrlParameter( '_ut' ) || 'anon';\n\t\t\t_ui = getUrlParameter( '_ui' );\n\t\t\tif ( ! _ui ) {\n\t\t\t\tconst cookies = cookie.parse( document.cookie );\n\t\t\t\tif ( cookies.tk_ai ) {\n\t\t\t\t\t_ui = cookies.tk_ai;\n\t\t\t\t} else {\n\t\t\t\t\tconst randomIdLength = 18; // 18 * 4/3 = 24 (base64 encoded chars).\n\t\t\t\t\t_ui = createRandomId( randomIdLength );\n\t\t\t\t\tdocument.cookie = cookie.serialize( 'tk_ai', _ui );\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tdebug( 'Loading /nostats.js', { _ut, _ui } );\n\t\treturn loadScript(\n\t\t\t'/nostats.js?_ut=' + encodeURIComponent( _ut ) + '&_ui=' + encodeURIComponent( _ui )\n\t\t);\n\t} );\n}\n\n/**\n * Returns a promise that marks whether and when the external Tracks script loads.\n */\nexport function getTracksLoadPromise() {\n\treturn _loadTracksResult;\n}\n\nexport function pushEventToTracksQueue( args: Array< any > ) {\n\tif ( typeof window !== 'undefined' ) {\n\t\twindow._tkq = window._tkq || [];\n\t\twindow._tkq.push( args );\n\t}\n}\n\nexport const analyticsEvents: EventEmitter = new EventEmitter();\n\n/**\n * Returns the anoymous id stored in the `tk_ai` cookie\n *\n * @returns The Tracks anonymous user id\n */\nexport function getTracksAnonymousUserId(): string {\n\tconst cookies = cookie.parse( document.cookie );\n\n\treturn cookies.tk_ai;\n}\n\nexport function initializeAnalytics(\n\tcurrentUser: any | undefined,\n\tsuperProps: any\n): Promise< void > {\n\t// Update super props.\n\tif ( 'function' === typeof superProps ) {\n\t\tdebug( 'superProps', superProps );\n\t\t_superProps = superProps;\n\t}\n\n\t// Identify current user.\n\tif ( 'object' === typeof currentUser ) {\n\t\tdebug( 'identifyUser', currentUser );\n\t\tidentifyUser( currentUser );\n\t}\n\n\t// Tracks blocked?\n\tdebug( 'checkForBlockedTracks' );\n\treturn checkForBlockedTracks();\n}\n\nexport function identifyUser( userData: any ): any {\n\t// Ensure object.\n\tif ( 'object' !== typeof userData ) {\n\t\tdebug( 'Invalid userData.', userData );\n\t\treturn; // Not possible.\n\t}\n\n\t// Set current user.\n\tconst currentUser = setCurrentUser( userData );\n\tif ( ! currentUser ) {\n\t\tdebug( 'Insufficient userData.', userData );\n\t\treturn; // Not possible.\n\t}\n\n\t// Tracks user identification.\n\tdebug( 'Tracks identifyUser.', currentUser );\n\tpushEventToTracksQueue( [ 'identifyUser', currentUser.ID, currentUser.username ] );\n}\n\nexport function recordTracksEvent( eventName: string, eventProperties?: any ) {\n\teventProperties = eventProperties || {};\n\n\tif ( process.env.NODE_ENV !== 'production' && typeof console !== 'undefined' ) {\n\t\tif (\n\t\t\t! /^calypso(?:_[a-z0-9]+){2,}$/.test( eventName ) &&\n\t\t\t! includes( EVENT_NAME_EXCEPTIONS, eventName )\n\t\t) {\n\t\t\t// eslint-disable-next-line no-console\n\t\t\tconsole.error(\n\t\t\t\t'Tracks: Event `%s` will be ignored because it does not match /^calypso(?:_[a-z0-9]+){2,}$/ and is ' +\n\t\t\t\t\t'not a listed exception. Please use a compliant event name.',\n\t\t\t\teventName\n\t\t\t);\n\t\t}\n\n\t\tfor ( const key in eventProperties ) {\n\t\t\tif ( eventProperties[ key ] !== null && typeof eventProperties[ key ] === 'object' ) {\n\t\t\t\tconst errorMessage =\n\t\t\t\t\t`Tracks: Unable to record event \"${ eventName }\" because nested ` +\n\t\t\t\t\t`properties are not supported by Tracks. Check '${ key }' on`;\n\t\t\t\t// eslint-disable-next-line no-console\n\t\t\t\tconsole.error( errorMessage, eventProperties );\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tif ( ! /^[a-z_][a-z0-9_]*$/.test( key ) ) {\n\t\t\t\t// eslint-disable-next-line no-console\n\t\t\t\tconsole.error(\n\t\t\t\t\t'Tracks: Event `%s` will be rejected because property name `%s` does not match /^[a-z_][a-z0-9_]*$/. ' +\n\t\t\t\t\t\t'Please use a compliant property name.',\n\t\t\t\t\teventName,\n\t\t\t\t\tkey\n\t\t\t\t);\n\t\t\t}\n\n\t\t\tif ( TRACKS_SPECIAL_PROPS_NAMES.indexOf( key ) !== -1 ) {\n\t\t\t\t// eslint-disable-next-line no-console\n\t\t\t\tconsole.error(\n\t\t\t\t\t\"Tracks: Event property `%s` will be overwritten because it uses one of Tracks' internal prop name: %s. \" +\n\t\t\t\t\t\t'Please use another property name.',\n\t\t\t\t\tkey,\n\t\t\t\t\tTRACKS_SPECIAL_PROPS_NAMES.join( ', ' )\n\t\t\t\t);\n\t\t\t}\n\t\t}\n\t}\n\n\tdebug( 'Record event \"%s\" called with props %o', eventName, eventProperties );\n\n\tif ( ! eventName.startsWith( 'calypso_' ) && ! includes( EVENT_NAME_EXCEPTIONS, eventName ) ) {\n\t\tdebug( '- Event name must be prefixed by \"calypso_\" or added to `EVENT_NAME_EXCEPTIONS`' );\n\t\treturn;\n\t}\n\n\tif ( _superProps ) {\n\t\tconst superProperties = _superProps( eventProperties );\n\t\teventProperties = { ...eventProperties, ...superProperties }; // assign to a new object so we don't modify the argument\n\t}\n\n\t// Remove properties that have an undefined value\n\t// This allows a caller to easily remove properties from the recorded set by setting them to undefined\n\teventProperties = omitBy( eventProperties, ( prop ) => typeof prop === 'undefined' );\n\n\tdebug( 'Recording event \"%s\" with actual props %o', eventName, eventProperties );\n\n\tpushEventToTracksQueue( [ 'recordEvent', eventName, eventProperties ] );\n\tanalyticsEvents.emit( 'record-event', eventName, eventProperties );\n}\n\nexport function recordTracksPageView( urlPath: string, params: any ) {\n\tdebug( 'Recording pageview in tracks.', urlPath, params );\n\n\tlet eventProperties = {\n\t\tdo_not_track: getDoNotTrack() ? 1 : 0,\n\t\tpath: urlPath,\n\t};\n\n\t// Add calypso build timestamp if set\n\tconst build_timestamp = typeof window !== 'undefined' && window.BUILD_TIMESTAMP;\n\tif ( build_timestamp ) {\n\t\teventProperties = Object.assign( eventProperties, { build_timestamp } );\n\t}\n\n\t// add optional path params\n\tif ( params ) {\n\t\teventProperties = Object.assign( eventProperties, params );\n\t}\n\n\t// Record all `utm` marketing parameters as event properties on the page view event\n\t// so we can analyze their performance with our analytics tools\n\tif ( typeof window !== 'undefined' && window.location ) {\n\t\tconst urlParams = new URL( window.location.href ).searchParams;\n\t\tconst utmParamEntries =\n\t\t\turlParams &&\n\t\t\tArray.from( urlParams.entries() ).filter( ( [ key ] ) => key.startsWith( 'utm_' ) );\n\t\tconst utmParams = utmParamEntries ? Object.fromEntries( utmParamEntries ) : {};\n\n\t\teventProperties = Object.assign( eventProperties, utmParams );\n\t}\n\n\trecordTracksEvent( 'calypso_page_view', eventProperties );\n}\n\nexport function recordTracksPageViewWithPageParams( urlPath: string, params?: any ) {\n\tconst pageViewParams = getPageViewParams( urlPath );\n\trecordTracksPageView( urlPath, Object.assign( params || {}, pageViewParams ) );\n}\n","import debugFactory from 'debug';\n\n/**\n * Module variables\n */\nexport default debugFactory( 'calypso:analytics' );\n","import { __, sprintf } from '@wordpress/i18n';\nimport classnames from 'classnames';\nimport { times } from 'lodash';\nimport './style.scss';\n\ninterface Props {\n\tonChange: ( page: number ) => void;\n\tactivePageIndex: number;\n\tnumberOfPages: number;\n\tclassNames?: string | string[];\n}\n\nconst PaginationControl: React.FunctionComponent< Props > = ( {\n\tactivePageIndex,\n\tnumberOfPages,\n\tonChange,\n\tclassNames,\n\tchildren,\n} ) => {\n\tconst classes = classnames( 'pagination-control', classNames );\n\n\treturn (\n\t\t<ul className={ classes } aria-label={ __( 'Pagination control' ) }>\n\t\t\t{ times( numberOfPages, ( index ) => (\n\t\t\t\t<li\n\t\t\t\t\tkey={ `${ numberOfPages }-${ index }` }\n\t\t\t\t\taria-current={ index === activePageIndex ? 'page' : undefined }\n\t\t\t\t>\n\t\t\t\t\t<button\n\t\t\t\t\t\tclassName={ classnames( 'pagination-control__page', {\n\t\t\t\t\t\t\t'is-current': index === activePageIndex,\n\t\t\t\t\t\t} ) }\n\t\t\t\t\t\tdisabled={ index === activePageIndex }\n\t\t\t\t\t\taria-label={ sprintf(\n\t\t\t\t\t\t\t/* translators: 1: current page number 2: total number of pages */\n\t\t\t\t\t\t\t__( 'Page %1$d of %2$d' ),\n\t\t\t\t\t\t\tindex + 1,\n\t\t\t\t\t\t\tnumberOfPages\n\t\t\t\t\t\t) }\n\t\t\t\t\t\tonClick={ () => onChange( index ) }\n\t\t\t\t\t/>\n\t\t\t\t</li>\n\t\t\t) ) }\n\t\t\t{ children && <li className=\"pagination-control__last-item\">{ children }</li> }\n\t\t</ul>\n\t);\n};\n\nexport default PaginationControl;\n","import I18N from './i18n';\n\nexport default new I18N();\n","import { EventEmitter } from 'events';\nimport interpolateComponents from '@automattic/interpolate-components';\nimport sprintf from '@tannin/sprintf';\nimport debugFactory from 'debug';\nimport sha1 from 'hash.js/lib/hash/sha/1';\nimport LRU from 'lru';\nimport Tannin from 'tannin';\nimport numberFormat from './number-format';\n\n/**\n * Module variables\n */\nconst debug = debugFactory( 'i18n-calypso' );\n\n/**\n * Constants\n */\nconst decimal_point_translation_key = 'number_format_decimals';\nconst thousands_sep_translation_key = 'number_format_thousands_sep';\nconst domain_key = 'messages';\n\nconst translationLookup = [\n\t// By default don't modify the options when looking up translations.\n\tfunction ( options ) {\n\t\treturn options;\n\t},\n];\n\nconst hashCache = {};\n\n// raise a console warning\nfunction warn() {\n\tif ( ! I18N.throwErrors ) {\n\t\treturn;\n\t}\n\tif ( 'undefined' !== typeof window && window.console && window.console.warn ) {\n\t\twindow.console.warn.apply( window.console, arguments );\n\t}\n}\n\n// turns Function.arguments into an array\nfunction simpleArguments( args ) {\n\treturn Array.prototype.slice.call( args );\n}\n\n/**\n * Coerce the possible arguments and normalize to a single object.\n *\n * @param {any} args - arguments passed in from `translate()`\n * @returns {object} - a single object describing translation needs\n */\nfunction normalizeTranslateArguments( args ) {\n\tconst original = args[ 0 ];\n\n\t// warn about older deprecated syntax\n\tif (\n\t\ttypeof original !== 'string' ||\n\t\targs.length > 3 ||\n\t\t( args.length > 2 && typeof args[ 1 ] === 'object' && typeof args[ 2 ] === 'object' )\n\t) {\n\t\twarn(\n\t\t\t'Deprecated Invocation: `translate()` accepts ( string, [string], [object] ). These arguments passed:',\n\t\t\tsimpleArguments( args ),\n\t\t\t'. See https://github.com/Automattic/i18n-calypso#translate-method'\n\t\t);\n\t}\n\tif ( args.length === 2 && typeof original === 'string' && typeof args[ 1 ] === 'string' ) {\n\t\twarn(\n\t\t\t'Invalid Invocation: `translate()` requires an options object for plural translations, but passed:',\n\t\t\tsimpleArguments( args )\n\t\t);\n\t}\n\n\t// options could be in position 0, 1, or 2\n\t// sending options as the first object is deprecated and will raise a warning\n\tlet options = {};\n\tfor ( let i = 0; i < args.length; i++ ) {\n\t\tif ( typeof args[ i ] === 'object' ) {\n\t\t\toptions = args[ i ];\n\t\t}\n\t}\n\n\t// `original` can be passed as first parameter or as part of the options object\n\t// though passing original as part of the options is a deprecated approach and will be removed\n\tif ( typeof original === 'string' ) {\n\t\toptions.original = original;\n\t} else if ( typeof options.original === 'object' ) {\n\t\toptions.plural = options.original.plural;\n\t\toptions.count = options.original.count;\n\t\toptions.original = options.original.single;\n\t}\n\tif ( typeof args[ 1 ] === 'string' ) {\n\t\toptions.plural = args[ 1 ];\n\t}\n\n\tif ( typeof options.original === 'undefined' ) {\n\t\tthrow new Error( 'Translate called without a `string` value as first argument.' );\n\t}\n\n\treturn options;\n}\n\n/**\n * Takes translate options object and coerces to a Tannin request to retrieve translation.\n *\n * @param {object} tannin - tannin data object\n * @param {object} options - object describing translation\n * @returns {string} - the returned translation from Tannin\n */\nfunction getTranslationFromTannin( tannin, options ) {\n\treturn tannin.dcnpgettext(\n\t\tdomain_key,\n\t\toptions.context,\n\t\toptions.original,\n\t\toptions.plural,\n\t\toptions.count\n\t);\n}\n\nfunction getTranslation( i18n, options ) {\n\tfor ( let i = translationLookup.length - 1; i >= 0; i-- ) {\n\t\tconst lookup = translationLookup[ i ]( Object.assign( {}, options ) );\n\t\tconst key = lookup.context ? lookup.context + '\\u0004' + lookup.original : lookup.original;\n\n\t\t// Only get the translation from tannin if it exists.\n\t\tif ( i18n.state.locale[ key ] ) {\n\t\t\treturn getTranslationFromTannin( i18n.state.tannin, lookup );\n\t\t}\n\t}\n\n\treturn null;\n}\n\nfunction I18N() {\n\tif ( ! ( this instanceof I18N ) ) {\n\t\treturn new I18N();\n\t}\n\tthis.defaultLocaleSlug = 'en';\n\t// Tannin always needs a plural form definition, or it fails when dealing with plurals.\n\tthis.defaultPluralForms = ( n ) => ( n === 1 ? 0 : 1 );\n\tthis.state = {\n\t\tnumberFormatSettings: {},\n\t\ttannin: undefined,\n\t\tlocale: undefined,\n\t\tlocaleSlug: undefined,\n\t\tlocaleVariant: undefined,\n\t\ttextDirection: undefined,\n\t\ttranslations: LRU( { max: 100 } ),\n\t};\n\tthis.componentUpdateHooks = [];\n\tthis.translateHooks = [];\n\tthis.stateObserver = new EventEmitter();\n\t// Because the higher-order component can wrap a ton of React components,\n\t// we need to bump the number of listeners to infinity and beyond\n\t// FIXME: still valid?\n\tthis.stateObserver.setMaxListeners( 0 );\n\t// default configuration\n\tthis.configure();\n}\n\nI18N.throwErrors = false;\n\nI18N.prototype.on = function ( ...args ) {\n\tthis.stateObserver.on( ...args );\n};\n\nI18N.prototype.off = function ( ...args ) {\n\tthis.stateObserver.off( ...args );\n};\n\nI18N.prototype.emit = function ( ...args ) {\n\tthis.stateObserver.emit( ...args );\n};\n\n/**\n * Formats numbers using locale settings and/or passed options.\n *\n * @param {string|number} number to format (required)\n * @param {number|object} options Number of decimal places or options object (optional)\n * @returns {string} Formatted number as string\n */\nI18N.prototype.numberFormat = function ( number, options = {} ) {\n\tconst decimals = typeof options === 'number' ? options : options.decimals || 0;\n\tconst decPoint = options.decPoint || this.state.numberFormatSettings.decimal_point || '.';\n\tconst thousandsSep = options.thousandsSep || this.state.numberFormatSettings.thousands_sep || ',';\n\n\treturn numberFormat( number, decimals, decPoint, thousandsSep );\n};\n\nI18N.prototype.configure = function ( options ) {\n\tObject.assign( this, options || {} );\n\tthis.setLocale();\n};\n\nI18N.prototype.setLocale = function ( localeData ) {\n\tif ( localeData && localeData[ '' ] && localeData[ '' ][ 'key-hash' ] ) {\n\t\tconst keyHash = localeData[ '' ][ 'key-hash' ];\n\n\t\tconst transform = function ( string, hashLength ) {\n\t\t\tconst lookupPrefix = hashLength === false ? '' : String( hashLength );\n\t\t\tif ( typeof hashCache[ lookupPrefix + string ] !== 'undefined' ) {\n\t\t\t\treturn hashCache[ lookupPrefix + string ];\n\t\t\t}\n\t\t\tconst hash = sha1().update( string ).digest( 'hex' );\n\n\t\t\tif ( hashLength ) {\n\t\t\t\treturn ( hashCache[ lookupPrefix + string ] = hash.substr( 0, hashLength ) );\n\t\t\t}\n\n\t\t\treturn ( hashCache[ lookupPrefix + string ] = hash );\n\t\t};\n\n\t\tconst generateLookup = function ( hashLength ) {\n\t\t\treturn function ( options ) {\n\t\t\t\tif ( options.context ) {\n\t\t\t\t\toptions.original = transform(\n\t\t\t\t\t\toptions.context + String.fromCharCode( 4 ) + options.original,\n\t\t\t\t\t\thashLength\n\t\t\t\t\t);\n\t\t\t\t\tdelete options.context;\n\t\t\t\t} else {\n\t\t\t\t\toptions.original = transform( options.original, hashLength );\n\t\t\t\t}\n\n\t\t\t\treturn options;\n\t\t\t};\n\t\t};\n\n\t\tif ( keyHash.substr( 0, 4 ) === 'sha1' ) {\n\t\t\tif ( keyHash.length === 4 ) {\n\t\t\t\ttranslationLookup.push( generateLookup( false ) );\n\t\t\t} else {\n\t\t\t\tconst variableHashLengthPos = keyHash.substr( 5 ).indexOf( '-' );\n\t\t\t\tif ( variableHashLengthPos < 0 ) {\n\t\t\t\t\tconst hashLength = Number( keyHash.substr( 5 ) );\n\t\t\t\t\ttranslationLookup.push( generateLookup( hashLength ) );\n\t\t\t\t} else {\n\t\t\t\t\tconst minHashLength = Number( keyHash.substr( 5, variableHashLengthPos ) );\n\t\t\t\t\tconst maxHashLength = Number( keyHash.substr( 6 + variableHashLengthPos ) );\n\n\t\t\t\t\tfor ( let hashLength = minHashLength; hashLength <= maxHashLength; hashLength++ ) {\n\t\t\t\t\t\ttranslationLookup.push( generateLookup( hashLength ) );\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\t// if localeData is not given, assumes default locale and reset\n\tif ( ! localeData || ! localeData[ '' ].localeSlug ) {\n\t\tthis.state.locale = {\n\t\t\t'': { localeSlug: this.defaultLocaleSlug, plural_forms: this.defaultPluralForms },\n\t\t};\n\t} else if ( localeData[ '' ].localeSlug === this.state.localeSlug ) {\n\t\t// Exit if same data as current (comparing references only)\n\t\tif ( localeData === this.state.locale ) {\n\t\t\treturn;\n\t\t}\n\n\t\t// merge new data into existing one\n\t\tObject.assign( this.state.locale, localeData );\n\t} else {\n\t\tthis.state.locale = Object.assign( {}, localeData );\n\t}\n\n\tthis.state.localeSlug = this.state.locale[ '' ].localeSlug;\n\tthis.state.localeVariant = this.state.locale[ '' ].localeVariant;\n\n\t// extract the `textDirection` info (LTR or RTL) from either:\n\t// - the translation for the special string \"ltr\" (standard in Core, not present in Calypso)\n\t// - or the `momentjs_locale.textDirection` property present in Calypso translation files\n\tthis.state.textDirection =\n\t\tthis.state.locale[ 'text direction\\u0004ltr' ]?.[ 0 ] ||\n\t\tthis.state.locale[ '' ]?.momentjs_locale?.textDirection;\n\n\tthis.state.tannin = new Tannin( { [ domain_key ]: this.state.locale } );\n\n\t// Updates numberFormat preferences with settings from translations\n\tthis.state.numberFormatSettings.decimal_point = getTranslationFromTannin(\n\t\tthis.state.tannin,\n\t\tnormalizeTranslateArguments( [ decimal_point_translation_key ] )\n\t);\n\tthis.state.numberFormatSettings.thousands_sep = getTranslationFromTannin(\n\t\tthis.state.tannin,\n\t\tnormalizeTranslateArguments( [ thousands_sep_translation_key ] )\n\t);\n\n\t// If translation isn't set, define defaults.\n\tif ( this.state.numberFormatSettings.decimal_point === decimal_point_translation_key ) {\n\t\tthis.state.numberFormatSettings.decimal_point = '.';\n\t}\n\n\tif ( this.state.numberFormatSettings.thousands_sep === thousands_sep_translation_key ) {\n\t\tthis.state.numberFormatSettings.thousands_sep = ',';\n\t}\n\n\tthis.stateObserver.emit( 'change' );\n};\n\nI18N.prototype.getLocale = function () {\n\treturn this.state.locale;\n};\n\n/**\n * Get the current locale slug.\n *\n * @returns {string} The string representing the currently loaded locale\n */\nI18N.prototype.getLocaleSlug = function () {\n\treturn this.state.localeSlug;\n};\n\n/**\n * Get the current locale variant. That's set for some special locales that don't have a\n * standard ISO code, like `de_formal` or `sr_latin`.\n *\n * @returns {string|undefined} The string representing the currently loaded locale's variant\n */\nI18N.prototype.getLocaleVariant = function () {\n\treturn this.state.localeVariant;\n};\n\n/**\n * Get the current text direction, left-to-right (LTR) or right-to-left (RTL).\n *\n * @returns {boolean} `true` in case the current locale has RTL text direction\n */\nI18N.prototype.isRtl = function () {\n\treturn this.state.textDirection === 'rtl';\n};\n\n/**\n * Adds new translations to the locale data, overwriting any existing translations with a matching key.\n *\n * @param {object} localeData Locale data\n */\nI18N.prototype.addTranslations = function ( localeData ) {\n\tfor ( const prop in localeData ) {\n\t\tif ( prop !== '' ) {\n\t\t\tthis.state.tannin.data.messages[ prop ] = localeData[ prop ];\n\t\t}\n\t}\n\n\tthis.stateObserver.emit( 'change' );\n};\n\n/**\n * Checks whether the given original has a translation.\n *\n * @returns {boolean} whether a translation exists\n */\nI18N.prototype.hasTranslation = function () {\n\treturn !! getTranslation( this, normalizeTranslateArguments( arguments ) );\n};\n\n/**\n * Exposes single translation method.\n * See sibling README\n *\n * @returns {string|object} translated text or an object containing React children that can be inserted into a parent component\n */\nI18N.prototype.translate = function () {\n\tconst options = normalizeTranslateArguments( arguments );\n\n\tlet translation = getTranslation( this, options );\n\tif ( ! translation ) {\n\t\t// This purposefully calls tannin for a case where there is no translation,\n\t\t// so that tannin gives us the expected object with English text.\n\t\ttranslation = getTranslationFromTannin( this.state.tannin, options );\n\t}\n\n\t// handle any string substitution\n\tif ( options.args ) {\n\t\tconst sprintfArgs = Array.isArray( options.args ) ? options.args.slice( 0 ) : [ options.args ];\n\t\tsprintfArgs.unshift( translation );\n\t\ttry {\n\t\t\ttranslation = sprintf( ...sprintfArgs );\n\t\t} catch ( error ) {\n\t\t\tif ( ! window || ! window.console ) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tconst errorMethod = this.throwErrors ? 'error' : 'warn';\n\t\t\tif ( typeof error !== 'string' ) {\n\t\t\t\twindow.console[ errorMethod ]( error );\n\t\t\t} else {\n\t\t\t\twindow.console[ errorMethod ]( 'i18n sprintf error:', sprintfArgs );\n\t\t\t}\n\t\t}\n\t}\n\n\t// interpolate any components\n\tif ( options.components ) {\n\t\ttranslation = interpolateComponents( {\n\t\t\tmixedString: translation,\n\t\t\tcomponents: options.components,\n\t\t\tthrowErrors: this.throwErrors,\n\t\t} );\n\t}\n\n\t// run any necessary hooks\n\tthis.translateHooks.forEach( function ( hook ) {\n\t\ttranslation = hook( translation, options );\n\t} );\n\n\treturn translation;\n};\n\n/**\n * Causes i18n to re-render all translations.\n *\n * This can be necessary if an extension makes changes that i18n is unaware of\n * and needs those changes manifested immediately (e.g. adding an important\n * translation hook, or modifying the behaviour of an existing hook).\n *\n * If at all possible, react components should try to use the more local\n * updateTranslation() function inherited from the mixin.\n */\nI18N.prototype.reRenderTranslations = function () {\n\tdebug( 'Re-rendering all translations due to external request' );\n\tthis.stateObserver.emit( 'change' );\n};\n\nI18N.prototype.registerComponentUpdateHook = function ( callback ) {\n\tthis.componentUpdateHooks.push( callback );\n};\n\nI18N.prototype.registerTranslateHook = function ( callback ) {\n\tthis.translateHooks.push( callback );\n};\n\nexport default I18N;\n","import I18NContext from './context';\nimport i18n from './default-i18n';\nimport I18N from './i18n';\nimport localize from './localize';\nimport { useRtl, withRtl } from './rtl';\nimport useTranslate from './use-translate';\n\nexport { I18N, I18NContext, localize, useRtl, withRtl, useTranslate };\nexport default i18n;\n\n// Export the default instance's properties and bound methods for convenience\n// These should be deprecated eventually, exposing only the default `i18n` instance\nexport const numberFormat = i18n.numberFormat.bind( i18n );\nexport const translate = i18n.translate.bind( i18n );\nexport const configure = i18n.configure.bind( i18n );\nexport const setLocale = i18n.setLocale.bind( i18n );\nexport const getLocale = i18n.getLocale.bind( i18n );\nexport const getLocaleSlug = i18n.getLocaleSlug.bind( i18n );\nexport const getLocaleVariant = i18n.getLocaleVariant.bind( i18n );\nexport const isRtl = i18n.isRtl.bind( i18n );\nexport const addTranslations = i18n.addTranslations.bind( i18n );\nexport const reRenderTranslations = i18n.reRenderTranslations.bind( i18n );\nexport const registerComponentUpdateHook = i18n.registerComponentUpdateHook.bind( i18n );\nexport const registerTranslateHook = i18n.registerTranslateHook.bind( i18n );\nexport const state = i18n.state;\nexport const stateObserver = i18n.stateObserver;\nexport const on = i18n.on.bind( i18n );\nexport const off = i18n.off.bind( i18n );\nexport const emit = i18n.emit.bind( i18n );\n","/*\n * Exposes number format capability\n *\n * @copyright Copyright (c) 2013 Kevin van Zonneveld (http://kvz.io) and Contributors (http://phpjs.org/authors).\n * @license See CREDITS.md\n * @see https://github.com/kvz/phpjs/blob/ffe1356af23a6f2512c84c954dd4e828e92579fa/functions/strings/number_format.js\n */\nfunction toFixedFix( n, prec ) {\n\tconst k = Math.pow( 10, prec );\n\treturn '' + ( Math.round( n * k ) / k ).toFixed( prec );\n}\n\nexport default function number_format( number, decimals, dec_point, thousands_sep ) {\n\tnumber = ( number + '' ).replace( /[^0-9+\\-Ee.]/g, '' );\n\tconst n = ! isFinite( +number ) ? 0 : +number;\n\tconst prec = ! isFinite( +decimals ) ? 0 : Math.abs( decimals );\n\tconst sep = typeof thousands_sep === 'undefined' ? ',' : thousands_sep;\n\tconst dec = typeof dec_point === 'undefined' ? '.' : dec_point;\n\tlet s = '';\n\t// Fix for IE parseFloat(0.55).toFixed(0) = 0;\n\ts = ( prec ? toFixedFix( n, prec ) : '' + Math.round( n ) ).split( '.' );\n\tif ( s[ 0 ].length > 3 ) {\n\t\ts[ 0 ] = s[ 0 ].replace( /\\B(?=(?:\\d{3})+(?!\\d))/g, sep );\n\t}\n\tif ( ( s[ 1 ] || '' ).length < prec ) {\n\t\ts[ 1 ] = s[ 1 ] || '';\n\t\ts[ 1 ] += new Array( prec - s[ 1 ].length + 1 ).join( '0' );\n\t}\n\treturn s.join( dec );\n}\n","import { createHigherOrderComponent } from '@wordpress/compose';\nimport * as i18n from '@wordpress/i18n';\nimport { createContext, useContext, useEffect, useState } from 'react';\nimport * as React from 'react';\nimport { englishLocales } from './locales';\nimport type { Locale } from './locales';\n\nexport const localeContext = createContext< string | null >( null );\n\ninterface Props {\n\tlocaleSlug: string;\n}\n\nexport const LocaleProvider: React.FC< Props > = ( { children, localeSlug } ) => (\n\t<localeContext.Provider value={ localeSlug }>{ children }</localeContext.Provider>\n);\n\n/**\n * Returns locale slug\n *\n * @param {string} locale locale to be converted e.g. \"en_US\".\n * @returns locale string e.g. \"en\"\n */\nfunction mapWpI18nLangToLocaleSlug( locale: Locale = '' ): Locale {\n\tif ( ! locale ) {\n\t\treturn '';\n\t}\n\n\tconst TARGET_LOCALES = [ 'pt_br', 'pt-br', 'zh_tw', 'zh-tw', 'zh_cn', 'zh-cn', 'zh_sg', 'zh-sg' ];\n\tconst lowerCaseLocale = locale.toLowerCase();\n\tconst formattedLocale = TARGET_LOCALES.includes( lowerCaseLocale )\n\t\t? lowerCaseLocale.replace( '_', '-' )\n\t\t: lowerCaseLocale.replace( /([-_].*)$/i, '' );\n\n\treturn formattedLocale || 'en';\n}\n\n/**\n * Get the current locale slug from the @wordpress/i18n locale data\n */\nfunction getWpI18nLocaleSlug(): string | undefined {\n\tconst language = i18n.getLocaleData ? i18n.getLocaleData()?.[ '' ]?.language : '';\n\n\treturn mapWpI18nLangToLocaleSlug( language );\n}\n\n/**\n * React hook providing the current locale slug. If `<LocaleProvider>` hasn't\n * been defined in the component tree then it will fall back to using the\n * data from `@wordpress/i18n` to determine the current locale slug.\n *\n * @example\n *\n * import { useLocale } from '@automattic/i18n-utils';\n * function MyComponent() {\n * const locale = useLocale();\n * return <div>The current locale is: { locale }</div>;\n * }\n */\nexport function useLocale(): string {\n\tconst fromProvider = useContext( localeContext );\n\tconst providerHasLocale = !! fromProvider;\n\n\tconst [ fromWpI18n, setWpLocale ] = useState( getWpI18nLocaleSlug() );\n\n\tuseEffect( () => {\n\t\t// If the <LocaleProvider> has been used further up the component tree\n\t\t// then we don't want to subscribe to any defaultI18n changes.\n\t\tif ( providerHasLocale ) {\n\t\t\treturn;\n\t\t}\n\n\t\tsetWpLocale( getWpI18nLocaleSlug() );\n\n\t\treturn i18n.subscribe( () => {\n\t\t\tsetWpLocale( getWpI18nLocaleSlug() );\n\t\t} );\n\t}, [ providerHasLocale ] );\n\n\treturn fromProvider || fromWpI18n || window?._currentUserLocale || 'en';\n}\n\n/**\n * HoC providing the current locale slug supplied to `<LocaleProvider>`.\n *\n * @param InnerComponent Component that will receive `locale` as a prop\n * @returns Component enhanced with locale\n * @example\n *\n * import { withLocale } from '@automattic/i18n-utils';\n * function MyComponent( { locale } ) {\n * return <div>The current locale is: { locale }</div>;\n * }\n * export default withLocale( MyComponent );\n */\nexport const withLocale = createHigherOrderComponent(\n\t< OuterProps, >( InnerComponent: React.ComponentType< OuterProps & { locale: string } > ) => {\n\t\treturn ( props: OuterProps ) => {\n\t\t\tconst locale = useLocale();\n\t\t\tconst innerProps = { ...props, locale };\n\t\t\treturn <InnerComponent { ...innerProps } />;\n\t\t};\n\t},\n\t'withLocale'\n);\n\n/**\n * React hook providing whether the current locale slug belongs to English or not\n *\n * @example\n *\n * import { useIsEnglishLocale } from '@automattic/i18n-utils';\n * function MyComponent() {\n * const isEnglishLocale = useIsEnglishLocale();\n * return <div>The current locale is English: { isEnglishLocale }</div>;\n * }\n */\nexport function useIsEnglishLocale(): boolean {\n\tconst locale = useLocale();\n\treturn englishLocales.includes( locale );\n}\n","/**\n * The locale sets here map roughly to those found in locales.php\n *\n * todo: move these into @automattic/languages as another downloaded resource\n * todo: cleanup _shared.json - replace references to the below config options with imports from here\n */\nexport type Locale = string;\nexport const i18nDefaultLocaleSlug: Locale = 'en';\nexport const localesWithBlog: Locale[] = [ 'en', 'ja', 'es', 'pt', 'fr', 'pt-br' ];\nexport const localesWithPrivacyPolicy: Locale[] = [ 'en', 'fr', 'de', 'es' ];\nexport const localesWithCookiePolicy: Locale[] = [ 'en', 'fr', 'de', 'es' ];\n\ntype LocaleSubdomain = string;\n\nexport const localesToSubdomains: Record< string, LocaleSubdomain > = {\n\t'pt-br': 'br',\n\tbr: 'bre',\n\tzh: 'zh-cn',\n\t'zh-hk': 'zh-tw',\n\t'zh-sg': 'zh-cn',\n\tkr: 'ko',\n};\n\n// replaces config( 'english_locales' )\nexport const englishLocales: Locale[] = [ 'en', 'en-gb' ];\n\n// replaces config( 'livechat_support_locales' )\nexport const livechatSupportLocales: Locale[] = [ 'en' ];\n\n// replaces config( 'support_site_locales' )\nexport const supportSiteLocales: Locale[] = [\n\t'ar',\n\t'de',\n\t'en',\n\t'es',\n\t'fr',\n\t'he',\n\t'id',\n\t'it',\n\t'ja',\n\t'ko',\n\t'nl',\n\t'pt-br',\n\t'ru',\n\t'sv',\n\t'tr',\n\t'zh-cn',\n\t'zh-tw',\n];\n\n// replaces config( 'forum_locales')\nexport const forumLocales: Locale[] = [\n\t'ar',\n\t'de',\n\t'el',\n\t'en',\n\t'es',\n\t'fa',\n\t'fi',\n\t'fr',\n\t'id',\n\t'it',\n\t'ja',\n\t'nl',\n\t'pt',\n\t'pt-br',\n\t'ru',\n\t'sv',\n\t'th',\n\t'tl',\n\t'tr',\n];\n\n// replaces config( 'magnificent_non_en_locales')\nexport const magnificentNonEnLocales: Locale[] = [\n\t'es',\n\t'pt-br',\n\t'de',\n\t'fr',\n\t'he',\n\t'ja',\n\t'it',\n\t'nl',\n\t'ru',\n\t'tr',\n\t'id',\n\t'zh-cn',\n\t'zh-tw',\n\t'ko',\n\t'ar',\n\t'sv',\n];\n\n// replaces config( 'jetpack_com_locales')\nexport const jetpackComLocales: Locale[] = [\n\t'en',\n\t'ar',\n\t'de',\n\t'es',\n\t'fr',\n\t'he',\n\t'id',\n\t'it',\n\t'ja',\n\t'ko',\n\t'nl',\n\t'pt-br',\n\t'ro',\n\t'ru',\n\t'sv',\n\t'tr',\n\t'zh-cn',\n\t'zh-tw',\n];\n","import { createHigherOrderComponent } from '@wordpress/compose';\nimport { getLocaleSlug } from 'i18n-calypso';\nimport { useCallback, ComponentType } from 'react';\nimport { useLocale } from './locale-context';\nimport {\n\tlocalesWithBlog,\n\tlocalesWithPrivacyPolicy,\n\tlocalesWithCookiePolicy,\n\tlocalesToSubdomains,\n\tsupportSiteLocales,\n\tforumLocales,\n\tmagnificentNonEnLocales,\n\tjetpackComLocales,\n\tLocale,\n} from './locales';\n\nconst INVALID_URL = `http://__domain__.invalid`;\n\nfunction getDefaultLocale(): Locale {\n\treturn getLocaleSlug?.() ?? 'en';\n}\n\nconst setLocalizedUrlHost =\n\t( hostname: string, validLocales: Locale[] = [] ) =>\n\t( url: URL, locale: Locale ) => {\n\t\tif ( validLocales.includes( locale ) && locale !== 'en' ) {\n\t\t\t// Avoid changing the hostname when the locale is set via the path.\n\t\t\tif ( url.pathname.substr( 0, locale.length + 2 ) !== '/' + locale + '/' ) {\n\t\t\t\turl.host = `${ localesToSubdomains[ locale ] || locale }.${ hostname }`;\n\t\t\t}\n\t\t}\n\t\treturn url;\n\t};\n\nconst setLocalizedWpComPath =\n\t( prefix: string, validLocales: Locale[] = [], limitPathMatch: RegExp | null = null ) =>\n\t( url: URL, localeSlug: Locale ) => {\n\t\turl.host = 'wordpress.com';\n\t\tif (\n\t\t\ttypeof limitPathMatch === 'object' &&\n\t\t\tlimitPathMatch instanceof RegExp &&\n\t\t\t! limitPathMatch.test( url.pathname )\n\t\t) {\n\t\t\tvalidLocales = []; // only rewrite to English.\n\t\t}\n\t\turl.pathname = prefix + url.pathname;\n\n\t\tif ( validLocales.includes( localeSlug ) && localeSlug !== 'en' ) {\n\t\t\turl.pathname = localeSlug + url.pathname;\n\t\t}\n\t\treturn url;\n\t};\n\ntype PrefixOrSuffix = 'prefix' | 'suffix';\n\nconst prefixOrSuffixLocalizedUrlPath =\n\t(\n\t\tvalidLocales: Locale[] = [],\n\t\tlimitPathMatch: RegExp | null = null,\n\t\tprefixOrSuffix: PrefixOrSuffix\n\t) =>\n\t( url: URL, localeSlug: Locale ): URL => {\n\t\tif ( typeof limitPathMatch === 'object' && limitPathMatch instanceof RegExp ) {\n\t\t\tif ( ! limitPathMatch.test( url.pathname ) ) {\n\t\t\t\treturn url; // No rewriting if not matches the path.\n\t\t\t}\n\t\t}\n\n\t\tif ( ! validLocales.includes( localeSlug ) || localeSlug === 'en' ) {\n\t\t\treturn url;\n\t\t}\n\n\t\tif ( prefixOrSuffix === 'prefix' ) {\n\t\t\turl.pathname = localeSlug + url.pathname;\n\t\t} else if ( prefixOrSuffix === 'suffix' ) {\n\t\t\t// Make sure there's a slash between the path and the locale. Plus, if\n\t\t\t// the path has a trailing slash, add one after the suffix too.\n\t\t\tif ( url.pathname.endsWith( '/' ) ) {\n\t\t\t\turl.pathname += localeSlug + '/';\n\t\t\t} else {\n\t\t\t\turl.pathname += '/' + localeSlug;\n\t\t\t}\n\t\t}\n\t\treturn url;\n\t};\n\nconst prefixLocalizedUrlPath =\n\t( validLocales: Locale[] = [], limitPathMatch: RegExp | null = null ) =>\n\t( url: URL, localeSlug: Locale ): URL => {\n\t\treturn prefixOrSuffixLocalizedUrlPath(\n\t\t\tvalidLocales,\n\t\t\tlimitPathMatch,\n\t\t\t'prefix'\n\t\t)( url, localeSlug );\n\t};\n\nconst suffixLocalizedUrlPath =\n\t( validLocales: Locale[] = [], limitPathMatch: RegExp | null = null ) =>\n\t( url: URL, localeSlug: Locale ): URL => {\n\t\treturn prefixOrSuffixLocalizedUrlPath(\n\t\t\tvalidLocales,\n\t\t\tlimitPathMatch,\n\t\t\t'suffix'\n\t\t)( url, localeSlug );\n\t};\n\ntype LinkLocalizer = ( url: URL, localeSlug: string, isLoggedIn: boolean ) => URL;\n\ninterface UrlLocalizationMapping {\n\t[ key: string ]: LinkLocalizer;\n}\n\nconst urlLocalizationMapping: UrlLocalizationMapping = {\n\t'wordpress.com/support/': prefixLocalizedUrlPath( supportSiteLocales ),\n\t'wordpress.com/forums/': prefixLocalizedUrlPath( forumLocales ),\n\t'wordpress.com/blog/': prefixLocalizedUrlPath( localesWithBlog, /^\\/blog\\/?$/ ),\n\t'wordpress.com/tos/': prefixLocalizedUrlPath( magnificentNonEnLocales ),\n\t'wordpress.com/wp-admin/': setLocalizedUrlHost( 'wordpress.com', magnificentNonEnLocales ),\n\t'wordpress.com/wp-login.php': setLocalizedUrlHost( 'wordpress.com', magnificentNonEnLocales ),\n\t'jetpack.com': setLocalizedUrlHost( 'jetpack.com', jetpackComLocales ),\n\t'en.support.wordpress.com': setLocalizedWpComPath( '/support', supportSiteLocales ),\n\t'en.blog.wordpress.com': setLocalizedWpComPath( '/blog', localesWithBlog, /^\\/$/ ),\n\t'apps.wordpress.com': prefixLocalizedUrlPath( magnificentNonEnLocales ),\n\t'en.forums.wordpress.com': setLocalizedWpComPath( '/forums', forumLocales ),\n\t'automattic.com/privacy/': prefixLocalizedUrlPath( localesWithPrivacyPolicy ),\n\t'automattic.com/cookies/': prefixLocalizedUrlPath( localesWithCookiePolicy ),\n\t'wordpress.com/help/contact/': ( url: URL, localeSlug: Locale, isLoggedIn: boolean ) => {\n\t\tif ( isLoggedIn ) {\n\t\t\treturn url;\n\t\t}\n\t\turl.pathname = url.pathname.replace( /\\/help\\//, '/support/' );\n\t\treturn prefixLocalizedUrlPath( supportSiteLocales )( url, localeSlug );\n\t},\n\t'wordpress.com': ( url: URL, localeSlug: Locale ) => {\n\t\t// Don't rewrite checkout and me URLs.\n\t\tif ( /^\\/(checkout|me)(\\/|$)/.test( url.pathname ) ) {\n\t\t\treturn url;\n\t\t}\n\t\t// Don't rewrite Calypso URLs that have the URL at the end.\n\t\tif ( /\\/([a-z0-9-]+\\.)+[a-z]{2,}\\/?$/.test( url.pathname ) ) {\n\t\t\treturn url;\n\t\t}\n\t\treturn prefixLocalizedUrlPath( magnificentNonEnLocales )( url, localeSlug );\n\t},\n\t'wordpress.com/theme/': ( url: URL, localeSlug: Locale, isLoggedIn: boolean ) => {\n\t\treturn isLoggedIn ? url : prefixLocalizedUrlPath( magnificentNonEnLocales )( url, localeSlug );\n\t},\n\t'wordpress.com/themes/': ( url: URL, localeSlug: Locale, isLoggedIn: boolean ) => {\n\t\treturn isLoggedIn ? url : prefixLocalizedUrlPath( magnificentNonEnLocales )( url, localeSlug );\n\t},\n\t'wordpress.com/log-in/': ( url: URL, localeSlug: Locale, isLoggedIn: boolean ) => {\n\t\treturn isLoggedIn ? url : suffixLocalizedUrlPath( magnificentNonEnLocales )( url, localeSlug );\n\t},\n};\n\nexport function localizeUrl(\n\tfullUrl: string,\n\tlocale: Locale = getDefaultLocale(),\n\tisLoggedIn = true\n): string {\n\tlet url;\n\ttry {\n\t\turl = new URL( String( fullUrl ), INVALID_URL );\n\t} catch ( e ) {\n\t\treturn fullUrl;\n\t}\n\n\t// Ignore and passthrough /relative/urls that have no host specified\n\tif ( url.origin === INVALID_URL ) {\n\t\treturn fullUrl;\n\t}\n\n\t// Let's unify the URL.\n\turl.protocol = 'https:';\n\t// Let's use `host` for everything.\n\turl.hostname = '';\n\n\tif ( ! url.pathname.endsWith( '.php' ) ) {\n\t\t// Essentially a trailingslashit.\n\t\turl.pathname = ( url.pathname + '/' ).replace( /\\/+$/, '/' );\n\t}\n\n\tconst firstPathSegment = url.pathname.substr( 0, 1 + url.pathname.indexOf( '/', 1 ) );\n\n\tif ( 'en.wordpress.com' === url.host ) {\n\t\turl.host = 'wordpress.com';\n\t}\n\n\tif ( '/' + locale + '/' === firstPathSegment ) {\n\t\treturn fullUrl;\n\t}\n\n\t// Lookup is checked back to front.\n\tconst lookup = [ url.host, url.host + firstPathSegment, url.host + url.pathname ];\n\n\tfor ( let i = lookup.length - 1; i >= 0; i-- ) {\n\t\tif ( lookup[ i ] in urlLocalizationMapping ) {\n\t\t\treturn urlLocalizationMapping[ lookup[ i ] ]( url, locale, isLoggedIn ).href;\n\t\t}\n\t}\n\n\t// Nothing needed to be changed, just return it unmodified.\n\treturn fullUrl;\n}\n\nexport function useLocalizeUrl() {\n\tconst providerLocale = useLocale();\n\n\treturn useCallback(\n\t\t( fullUrl: string, locale?: Locale, isLoggedIn?: boolean ) => {\n\t\t\tif ( locale ) {\n\t\t\t\treturn localizeUrl( fullUrl, locale, isLoggedIn );\n\t\t\t}\n\t\t\treturn localizeUrl( fullUrl, providerLocale, isLoggedIn );\n\t\t},\n\t\t[ providerLocale ]\n\t);\n}\n\nexport const withLocalizeUrl = createHigherOrderComponent(\n\t< OuterProps, >(\n\t\tInnerComponent: ComponentType<\n\t\t\tOuterProps & { localizeUrl: ReturnType< typeof useLocalizeUrl > }\n\t\t>\n\t) => {\n\t\treturn ( props: OuterProps ) => {\n\t\t\tconst localizeUrl = useLocalizeUrl();\n\t\t\tconst innerProps = { ...props, localizeUrl };\n\t\t\treturn <InnerComponent { ...innerProps } />;\n\t\t};\n\t},\n\t'withLocalizeUrl'\n);\n","import { cloneElement, createElement, Fragment } from 'react';\nimport tokenize from './tokenize';\n\nfunction getCloseIndex( openIndex, tokens ) {\n\tconst openToken = tokens[ openIndex ];\n\tlet nestLevel = 0;\n\tfor ( let i = openIndex + 1; i < tokens.length; i++ ) {\n\t\tconst token = tokens[ i ];\n\t\tif ( token.value === openToken.value ) {\n\t\t\tif ( token.type === 'componentOpen' ) {\n\t\t\t\tnestLevel++;\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tif ( token.type === 'componentClose' ) {\n\t\t\t\tif ( nestLevel === 0 ) {\n\t\t\t\t\treturn i;\n\t\t\t\t}\n\t\t\t\tnestLevel--;\n\t\t\t}\n\t\t}\n\t}\n\t// if we get this far, there was no matching close token\n\tthrow new Error( 'Missing closing component token `' + openToken.value + '`' );\n}\n\nfunction buildChildren( tokens, components ) {\n\tlet children = [];\n\tlet openComponent;\n\tlet openIndex;\n\n\tfor ( let i = 0; i < tokens.length; i++ ) {\n\t\tconst token = tokens[ i ];\n\t\tif ( token.type === 'string' ) {\n\t\t\tchildren.push( token.value );\n\t\t\tcontinue;\n\t\t}\n\t\t// component node should at least be set\n\t\tif ( components[ token.value ] === undefined ) {\n\t\t\tthrow new Error( `Invalid interpolation, missing component node: \\`${ token.value }\\`` );\n\t\t}\n\t\t// should be either ReactElement or null (both type \"object\"), all other types deprecated\n\t\tif ( typeof components[ token.value ] !== 'object' ) {\n\t\t\tthrow new Error(\n\t\t\t\t`Invalid interpolation, component node must be a ReactElement or null: \\`${ token.value }\\``\n\t\t\t);\n\t\t}\n\t\t// we should never see a componentClose token in this loop\n\t\tif ( token.type === 'componentClose' ) {\n\t\t\tthrow new Error( `Missing opening component token: \\`${ token.value }\\`` );\n\t\t}\n\t\tif ( token.type === 'componentOpen' ) {\n\t\t\topenComponent = components[ token.value ];\n\t\t\topenIndex = i;\n\t\t\tbreak;\n\t\t}\n\t\t// componentSelfClosing token\n\t\tchildren.push( components[ token.value ] );\n\t\tcontinue;\n\t}\n\n\tif ( openComponent ) {\n\t\tconst closeIndex = getCloseIndex( openIndex, tokens );\n\t\tconst grandChildTokens = tokens.slice( openIndex + 1, closeIndex );\n\t\tconst grandChildren = buildChildren( grandChildTokens, components );\n\t\tconst clonedOpenComponent = cloneElement( openComponent, {}, grandChildren );\n\t\tchildren.push( clonedOpenComponent );\n\n\t\tif ( closeIndex < tokens.length - 1 ) {\n\t\t\tconst siblingTokens = tokens.slice( closeIndex + 1 );\n\t\t\tconst siblings = buildChildren( siblingTokens, components );\n\t\t\tchildren = children.concat( siblings );\n\t\t}\n\t}\n\n\tchildren = children.filter( Boolean );\n\n\tif ( children.length === 0 ) {\n\t\treturn null;\n\t}\n\n\tif ( children.length === 1 ) {\n\t\treturn children[ 0 ];\n\t}\n\n\treturn createElement( Fragment, null, ...children );\n}\n\nexport default function interpolate( options ) {\n\tconst { mixedString, components, throwErrors } = options;\n\n\tif ( ! components ) {\n\t\treturn mixedString;\n\t}\n\n\tif ( typeof components !== 'object' ) {\n\t\tif ( throwErrors ) {\n\t\t\tthrow new Error(\n\t\t\t\t`Interpolation Error: unable to process \\`${ mixedString }\\` because components is not an object`\n\t\t\t);\n\t\t}\n\n\t\treturn mixedString;\n\t}\n\n\tconst tokens = tokenize( mixedString );\n\n\ttry {\n\t\treturn buildChildren( tokens, components );\n\t} catch ( error ) {\n\t\tif ( throwErrors ) {\n\t\t\tthrow new Error(\n\t\t\t\t`Interpolation Error: unable to process \\`${ mixedString }\\` because of error \\`${ error.message }\\``\n\t\t\t);\n\t\t}\n\n\t\treturn mixedString;\n\t}\n}\n","function identifyToken( item ) {\n\t// {{/example}}\n\tif ( item.startsWith( '{{/' ) ) {\n\t\treturn {\n\t\t\ttype: 'componentClose',\n\t\t\tvalue: item.replace( /\\W/g, '' ),\n\t\t};\n\t}\n\t// {{example /}}\n\tif ( item.endsWith( '/}}' ) ) {\n\t\treturn {\n\t\t\ttype: 'componentSelfClosing',\n\t\t\tvalue: item.replace( /\\W/g, '' ),\n\t\t};\n\t}\n\t// {{example}}\n\tif ( item.startsWith( '{{' ) ) {\n\t\treturn {\n\t\t\ttype: 'componentOpen',\n\t\t\tvalue: item.replace( /\\W/g, '' ),\n\t\t};\n\t}\n\treturn {\n\t\ttype: 'string',\n\t\tvalue: item,\n\t};\n}\n\nexport default function tokenize( mixedString ) {\n\tconst tokenStrings = mixedString.split( /(\\{\\{\\/?\\s*\\w+\\s*\\/?\\}\\})/g ); // split to components and strings\n\treturn tokenStrings.map( identifyToken );\n}\n","import debugFactory from 'debug';\nconst debug = debugFactory( 'lib/load-script/callback-handler' );\n\n/**\n * Module variables\n */\nconst callbacksForURLsInProgress = new Map();\n\nexport function getCallbacksMap() {\n\treturn callbacksForURLsInProgress;\n}\n\nexport function isLoading( url ) {\n\treturn getCallbacksMap().has( url );\n}\n\nexport function addScriptCallback( url, callback ) {\n\tconst callbacksMap = getCallbacksMap();\n\tif ( isLoading( url ) ) {\n\t\tdebug( `Adding a callback for an existing script from \"${ url }\"` );\n\t\tcallbacksMap.get( url ).add( callback );\n\t} else {\n\t\tdebug( `Adding a callback for a new script from \"${ url }\"` );\n\t\tcallbacksMap.set( url, new Set( [ callback ] ) );\n\t}\n}\n\nexport function removeScriptCallback( url, callback ) {\n\tdebug( `Removing a known callback for a script from \"${ url }\"` );\n\n\tif ( ! isLoading( url ) ) {\n\t\treturn;\n\t}\n\n\tconst callbacksMap = getCallbacksMap();\n\tconst callbacksAtUrl = callbacksMap.get( url );\n\tcallbacksAtUrl.delete( callback );\n\n\tif ( callbacksAtUrl.size === 0 ) {\n\t\tcallbacksMap.delete( url );\n\t}\n}\n\nexport function removeScriptCallbacks( url ) {\n\tdebug( `Removing all callbacks for a script from \"${ url }\"` );\n\tgetCallbacksMap().delete( url );\n}\n\nexport function removeAllScriptCallbacks() {\n\tdebug( 'Removing all callbacks for scripts from all URLs' );\n\tgetCallbacksMap().clear();\n}\n\nexport function executeCallbacks( url, error = null ) {\n\tconst callbacksMap = getCallbacksMap();\n\tconst callbacksForUrl = callbacksMap.get( url );\n\n\tif ( callbacksForUrl ) {\n\t\tconst debugMessage =\n\t\t\t`Executing callbacks for \"${ url }\"` +\n\t\t\t( error === null ? ' with success' : ` with error \"${ error }\"` );\n\t\tdebug( debugMessage );\n\n\t\tcallbacksForUrl.forEach( ( cb ) => {\n\t\t\tif ( typeof cb === 'function' ) {\n\t\t\t\tcb( error );\n\t\t\t}\n\t\t} );\n\n\t\tcallbacksMap.delete( url );\n\t}\n}\n\nexport function handleRequestSuccess() {\n\tconst url = this.getAttribute( 'src' );\n\tdebug( `Handling successful request for \"${ url }\"` );\n\texecuteCallbacks( url );\n\tthis.onload = null;\n}\n\nexport function handleRequestError() {\n\tconst url = this.getAttribute( 'src' );\n\tdebug( `Handling failed request for \"${ url }\"` );\n\texecuteCallbacks( url, new Error( `Failed to load script \"${ url }\"` ) );\n\tthis.onerror = null;\n}\n","import debugFactory from 'debug';\nimport { handleRequestError, handleRequestSuccess } from './callback-handler';\n\nconst debug = debugFactory( 'lib/load-script/dom-operations' );\n\nexport function createScriptElement( url ) {\n\tdebug( `Creating script element for \"${ url }\"` );\n\tconst script = document.createElement( 'script' );\n\tscript.src = url;\n\tscript.type = 'text/javascript';\n\tscript.async = true;\n\tscript.onload = handleRequestSuccess;\n\tscript.onerror = handleRequestError;\n\treturn script;\n}\n\nexport function attachToHead( element ) {\n\tdebug( 'Attaching element to head' );\n\tdocument.head.appendChild( element );\n}\n","/**\n * A little module for loading a external script\n *\n */\n\nimport debugFactory from 'debug';\nimport { addScriptCallback, isLoading } from './callback-handler';\nimport { createScriptElement, attachToHead } from './dom-operations';\n\nconst debug = debugFactory( 'package/load-script' );\n\n// NOTE: This exists for compatibility.\nexport { removeScriptCallback } from './callback-handler';\n\n/**\n * Module variables\n */\nexport const JQUERY_URL = 'https://s0.wp.com/wp-includes/js/jquery/jquery.js';\n\n//\n// loadScript and loadjQueryDependentScript\n//\n\nexport function loadScript( url, callback ) {\n\t// If this script is not currently being loaded, create a script element and attach to document head.\n\tconst shouldLoadScript = ! isLoading( url );\n\tif ( shouldLoadScript ) {\n\t\t// the onload/onerror callbacks are guaranteed to be called asynchronously, so it's ok to first\n\t\t// add the element and only then attach callbacks, as long as it happens in one event loop tick.\n\t\tattachToHead( createScriptElement( url ) );\n\t}\n\n\t// if callback is provided, behave traditionally\n\tif ( typeof callback === 'function' ) {\n\t\taddScriptCallback( url, callback );\n\t\treturn;\n\t}\n\n\t// but if not, return a Promise\n\treturn new Promise( ( resolve, reject ) => {\n\t\taddScriptCallback( url, ( error ) => {\n\t\t\tif ( error === null ) {\n\t\t\t\tresolve();\n\t\t\t} else {\n\t\t\t\treject( error );\n\t\t\t}\n\t\t} );\n\t} );\n}\n\nexport function loadjQueryDependentScript( url, callback ) {\n\tdebug( `Loading a jQuery dependent script from \"${ url }\"` );\n\n\tif ( window.jQuery ) {\n\t\tdebug( `jQuery found on window, skipping jQuery script loading for \"${ url }\"` );\n\t\treturn loadScript( url, callback );\n\t}\n\n\tconst loadPromise = loadScript( JQUERY_URL ).then( () => loadScript( url ) );\n\n\t// if callback is provided, call it on resolution\n\tif ( typeof callback === 'function' ) {\n\t\tloadPromise.then(\n\t\t\t() => callback( null ),\n\t\t\t( error ) => callback( error )\n\t\t);\n\t\treturn;\n\t}\n\n\t// if not, return the Promise\n\treturn loadPromise;\n}\n","/**\n * External dependencies\n */\nimport * as React from 'react';\n/**\n * Internal dependencies\n */\nimport useFocusHandler from '../hooks/use-focus-handler';\nimport useFocusTrap from '../hooks/use-focus-trap';\nimport useKeydownHandler from '../hooks/use-keydown-handler';\n\ninterface Props {\n\tonMinimize: () => void;\n\tonDismiss: ( target: string ) => () => void;\n\tonNextStepProgression: () => void;\n\tonPreviousStepProgression: () => void;\n\ttourContainerRef: React.MutableRefObject< null | HTMLElement >;\n\tisMinimized: boolean;\n}\n\nconst KeyboardNavigation: React.FunctionComponent< Props > = ( {\n\tonMinimize,\n\tonDismiss,\n\tonNextStepProgression,\n\tonPreviousStepProgression,\n\ttourContainerRef,\n\tisMinimized,\n} ) => {\n\tfunction ExpandedTourNav() {\n\t\tuseKeydownHandler( {\n\t\t\tonEscape: onMinimize,\n\t\t\tonArrowRight: onNextStepProgression,\n\t\t\tonArrowLeft: onPreviousStepProgression,\n\t\t} );\n\t\tuseFocusTrap( tourContainerRef );\n\n\t\treturn null;\n\t}\n\n\tfunction MinimizedTourNav() {\n\t\tuseKeydownHandler( { onEscape: onDismiss( 'esc-key-minimized' ) } );\n\n\t\treturn null;\n\t}\n\n\tconst isTourFocused = useFocusHandler( tourContainerRef );\n\n\tif ( ! isTourFocused ) {\n\t\treturn null;\n\t}\n\n\treturn isMinimized ? <MinimizedTourNav /> : <ExpandedTourNav />;\n};\n\nexport default KeyboardNavigation;\n","import { createContext, useContext } from '@wordpress/element';\nimport type { Config } from '../types';\n\ninterface TourKitContext {\n\tconfig: Config;\n}\n\nconst TourKitContext = createContext< TourKitContext >( {} as TourKitContext );\n\nconst TourKitContextProvider: React.FunctionComponent< TourKitContext > = ( {\n\tconfig,\n\tchildren,\n} ) => {\n\treturn <TourKitContext.Provider value={ { config } }>{ children }</TourKitContext.Provider>;\n};\n\nexport const useTourKitContext = (): TourKitContext => useContext( TourKitContext );\n\nexport default TourKitContextProvider;\n","/**\n * External Dependencies\n */\nimport { useMobileBreakpoint } from '@automattic/viewport-react';\nimport { useEffect, useState, useCallback, useMemo, useRef } from '@wordpress/element';\nimport classnames from 'classnames';\nimport { usePopper } from 'react-popper';\n/**\n * Internal Dependencies\n */\nimport useStepTracking from '../hooks/use-step-tracking';\nimport { classParser } from '../utils';\nimport { liveResizeModifier } from '../utils/live-resize-modifier';\nimport KeyboardNavigation from './keyboard-navigation';\nimport TourKitMinimized from './tour-kit-minimized';\nimport Overlay from './tour-kit-overlay';\nimport Spotlight from './tour-kit-spotlight';\nimport TourKitStep from './tour-kit-step';\nimport type { Callback, Config } from '../types';\n\nconst handleCallback = ( currentStepIndex: number, callback?: Callback ) => {\n\ttypeof callback === 'function' && callback( currentStepIndex );\n};\n\ninterface Props {\n\tconfig: Config;\n}\n\nconst TourKitFrame: React.FunctionComponent< Props > = ( { config } ) => {\n\tconst [ currentStepIndex, setCurrentStepIndex ] = useState( 0 );\n\tconst [ initialFocusedElement, setInitialFocusedElement ] = useState< HTMLElement | null >(\n\t\tnull\n\t);\n\tconst [ isMinimized, setIsMinimized ] = useState( config.isMinimized ?? false );\n\n\tconst [ popperElement, setPopperElement ] = useState< HTMLElement | null >( null );\n\tconst [ tourReady, setTourReady ] = useState( false );\n\tconst tourContainerRef = useRef( null );\n\tconst isMobile = useMobileBreakpoint();\n\tconst lastStepIndex = config.steps.length - 1;\n\tconst referenceElementSelector =\n\t\tconfig.steps[ currentStepIndex ].referenceElements?.[ isMobile ? 'mobile' : 'desktop' ] || null;\n\tconst referenceElement = referenceElementSelector\n\t\t? document.querySelector< HTMLElement >( referenceElementSelector )\n\t\t: null;\n\n\tuseEffect( () => {\n\t\tif ( config.isMinimized ) {\n\t\t\tsetIsMinimized( true );\n\t\t}\n\t}, [ config.isMinimized ] );\n\n\tconst showArrowIndicator = useCallback( () => {\n\t\tif ( config.options?.effects?.arrowIndicator === false ) {\n\t\t\treturn false;\n\t\t}\n\n\t\treturn !! ( referenceElement && ! isMinimized && tourReady );\n\t}, [ config.options?.effects?.arrowIndicator, isMinimized, referenceElement, tourReady ] );\n\n\tconst showSpotlight = useCallback( () => {\n\t\tif ( ! config.options?.effects?.spotlight ) {\n\t\t\treturn false;\n\t\t}\n\n\t\treturn ! isMinimized;\n\t}, [ config.options?.effects?.spotlight, isMinimized ] );\n\n\tconst showOverlay = useCallback( () => {\n\t\tif ( showSpotlight() || ! config.options?.effects?.overlay ) {\n\t\t\treturn false;\n\t\t}\n\n\t\treturn ! isMinimized;\n\t}, [ config.options?.effects?.overlay, isMinimized, showSpotlight ] );\n\n\tconst handleDismiss = useCallback(\n\t\t( source: string ) => {\n\t\t\treturn () => {\n\t\t\t\tconfig.closeHandler( config.steps, currentStepIndex, source );\n\t\t\t};\n\t\t},\n\t\t[ config, currentStepIndex ]\n\t);\n\n\tconst handleNextStepProgression = useCallback( () => {\n\t\tif ( lastStepIndex > currentStepIndex ) {\n\t\t\tsetCurrentStepIndex( currentStepIndex + 1 );\n\t\t}\n\t\thandleCallback( currentStepIndex, config.options?.callbacks?.onNextStep );\n\t}, [ config.options?.callbacks?.onNextStep, currentStepIndex, lastStepIndex ] );\n\n\tconst handlePreviousStepProgression = useCallback( () => {\n\t\tcurrentStepIndex && setCurrentStepIndex( currentStepIndex - 1 );\n\t\thandleCallback( currentStepIndex, config.options?.callbacks?.onPreviousStep );\n\t}, [ config.options?.callbacks?.onPreviousStep, currentStepIndex ] );\n\n\tconst handleGoToStep = useCallback(\n\t\t( stepIndex: number ) => {\n\t\t\tsetCurrentStepIndex( stepIndex );\n\t\t\thandleCallback( currentStepIndex, config.options?.callbacks?.onGoToStep );\n\t\t},\n\t\t[ config.options?.callbacks?.onGoToStep, currentStepIndex ]\n\t);\n\n\tconst handleMinimize = useCallback( () => {\n\t\tsetIsMinimized( true );\n\t\thandleCallback( currentStepIndex, config.options?.callbacks?.onMinimize );\n\t}, [ config.options?.callbacks?.onMinimize, currentStepIndex ] );\n\n\tconst handleMaximize = useCallback( () => {\n\t\tsetIsMinimized( false );\n\t\thandleCallback( currentStepIndex, config.options?.callbacks?.onMaximize );\n\t}, [ config.options?.callbacks?.onMaximize, currentStepIndex ] );\n\n\tconst {\n\t\tstyles: popperStyles,\n\t\tattributes: popperAttributes,\n\t\tupdate: popperUpdate,\n\t} = usePopper( referenceElement, popperElement, {\n\t\tstrategy: 'fixed',\n\t\tplacement: config?.placement ?? 'bottom',\n\t\tmodifiers: [\n\t\t\t{\n\t\t\t\tname: 'preventOverflow',\n\t\t\t\toptions: {\n\t\t\t\t\trootBoundary: 'document',\n\t\t\t\t\tpadding: 16, // same as the left/margin of the tour frame\n\t\t\t\t},\n\t\t\t},\n\t\t\t{\n\t\t\t\tname: 'arrow',\n\t\t\t\toptions: {\n\t\t\t\t\tpadding: 12,\n\t\t\t\t},\n\t\t\t},\n\t\t\t{\n\t\t\t\tname: 'offset',\n\t\t\t\toptions: {\n\t\t\t\t\toffset: [ 0, showArrowIndicator() ? 12 : 10 ],\n\t\t\t\t},\n\t\t\t},\n\t\t\t{\n\t\t\t\tname: 'flip',\n\t\t\t\toptions: {\n\t\t\t\t\tfallbackPlacements: [ 'top', 'left', 'right' ],\n\t\t\t\t},\n\t\t\t},\n\t\t\tuseMemo(\n\t\t\t\t() => liveResizeModifier( config.options?.effects?.liveResize ),\n\t\t\t\t[ config.options?.effects?.liveResize ]\n\t\t\t),\n\t\t\t...( config.options?.popperModifiers || [] ),\n\t\t],\n\t} );\n\n\tconst stepRepositionProps =\n\t\t! isMinimized && referenceElement && tourReady\n\t\t\t? {\n\t\t\t\t\tstyle: popperStyles?.popper,\n\t\t\t\t\t...popperAttributes?.popper,\n\t\t\t }\n\t\t\t: null;\n\n\tconst arrowPositionProps =\n\t\t! isMinimized && referenceElement && tourReady\n\t\t\t? {\n\t\t\t\t\tstyle: popperStyles?.arrow,\n\t\t\t\t\t...popperAttributes?.arrow,\n\t\t\t }\n\t\t\t: null;\n\n\t/*\n\t * Focus first interactive element when step renders.\n\t */\n\tuseEffect( () => {\n\t\tsetTimeout( () => initialFocusedElement?.focus() );\n\t}, [ initialFocusedElement ] );\n\n\t/*\n\t * Fixes issue with Popper misplacing the instance on mount\n\t * See: https://stackoverflow.com/questions/65585859/react-popper-incorrect-position-on-mount\n\t */\n\tuseEffect( () => {\n\t\t// If no reference element to position step near\n\t\tif ( ! referenceElement ) {\n\t\t\tsetTourReady( true );\n\t\t\treturn;\n\t\t}\n\n\t\tsetTourReady( false );\n\n\t\tif ( popperUpdate ) {\n\t\t\tpopperUpdate()\n\t\t\t\t.then( () => setTourReady( true ) )\n\t\t\t\t.catch( () => setTourReady( true ) );\n\t\t}\n\t}, [ popperUpdate, referenceElement ] );\n\n\tuseEffect( () => {\n\t\tif ( referenceElement && config.options?.effects?.autoScroll ) {\n\t\t\treferenceElement.scrollIntoView( config.options.effects.autoScroll );\n\t\t}\n\t}, [ config.options?.effects?.autoScroll, referenceElement ] );\n\n\tconst classes = classnames(\n\t\t'tour-kit-frame',\n\t\tisMobile ? 'is-mobile' : 'is-desktop',\n\t\t{ 'is-visible': tourReady },\n\t\tclassParser( config.options?.classNames )\n\t);\n\n\tuseStepTracking( currentStepIndex, config.options?.callbacks?.onStepViewOnce );\n\n\treturn (\n\t\t<>\n\t\t\t<KeyboardNavigation\n\t\t\t\tonMinimize={ handleMinimize }\n\t\t\t\tonDismiss={ handleDismiss }\n\t\t\t\tonNextStepProgression={ handleNextStepProgression }\n\t\t\t\tonPreviousStepProgression={ handlePreviousStepProgression }\n\t\t\t\ttourContainerRef={ tourContainerRef }\n\t\t\t\tisMinimized={ isMinimized }\n\t\t\t/>\n\t\t\t<div className={ classes } ref={ tourContainerRef }>\n\t\t\t\t{ showOverlay() && <Overlay visible={ true } /> }\n\t\t\t\t{ showSpotlight() && (\n\t\t\t\t\t<Spotlight\n\t\t\t\t\t\treferenceElement={ referenceElement }\n\t\t\t\t\t\tliveResize={ config.options?.effects?.liveResize || {} }\n\t\t\t\t\t\t{ ...( config.options?.effects?.spotlight || {} ) }\n\t\t\t\t\t/>\n\t\t\t\t) }\n\t\t\t\t<div\n\t\t\t\t\tclassName=\"tour-kit-frame__container\"\n\t\t\t\t\tref={ setPopperElement }\n\t\t\t\t\t{ ...( stepRepositionProps as React.HTMLAttributes< HTMLDivElement > ) }\n\t\t\t\t>\n\t\t\t\t\t{ showArrowIndicator() && (\n\t\t\t\t\t\t<div\n\t\t\t\t\t\t\tclassName=\"tour-kit-frame__arrow\"\n\t\t\t\t\t\t\tdata-popper-arrow\n\t\t\t\t\t\t\t{ ...( arrowPositionProps as React.HTMLAttributes< HTMLDivElement > ) }\n\t\t\t\t\t\t/>\n\t\t\t\t\t) }\n\t\t\t\t\t{ ! isMinimized ? (\n\t\t\t\t\t\t<TourKitStep\n\t\t\t\t\t\t\tconfig={ config }\n\t\t\t\t\t\t\tsteps={ config.steps }\n\t\t\t\t\t\t\tcurrentStepIndex={ currentStepIndex }\n\t\t\t\t\t\t\tonMinimize={ handleMinimize }\n\t\t\t\t\t\t\tonDismiss={ handleDismiss }\n\t\t\t\t\t\t\tonNextStep={ handleNextStepProgression }\n\t\t\t\t\t\t\tonPreviousStep={ handlePreviousStepProgression }\n\t\t\t\t\t\t\tonGoToStep={ handleGoToStep }\n\t\t\t\t\t\t\tsetInitialFocusedElement={ setInitialFocusedElement }\n\t\t\t\t\t\t/>\n\t\t\t\t\t) : (\n\t\t\t\t\t\t<TourKitMinimized\n\t\t\t\t\t\t\tconfig={ config }\n\t\t\t\t\t\t\tsteps={ config.steps }\n\t\t\t\t\t\t\tcurrentStepIndex={ currentStepIndex }\n\t\t\t\t\t\t\tonMaximize={ handleMaximize }\n\t\t\t\t\t\t\tonDismiss={ handleDismiss }\n\t\t\t\t\t\t/>\n\t\t\t\t\t) }\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</>\n\t);\n};\n\nexport default TourKitFrame;\n","/**\n * Internal Dependencies\n */\nimport { MinimizedTourRendererProps } from '../types';\nimport type { Config } from '../types';\n\ninterface Props extends MinimizedTourRendererProps {\n\tconfig: Config;\n}\n\nconst TourKitMinimized: React.FunctionComponent< Props > = ( {\n\tconfig,\n\tsteps,\n\tcurrentStepIndex,\n\tonMaximize,\n\tonDismiss,\n} ) => {\n\treturn (\n\t\t<div className={ 'tour-kit-minimized' }>\n\t\t\t<config.renderers.tourMinimized\n\t\t\t\tsteps={ steps }\n\t\t\t\tcurrentStepIndex={ currentStepIndex }\n\t\t\t\tonMaximize={ onMaximize }\n\t\t\t\tonDismiss={ onDismiss }\n\t\t\t/>\n\t\t</div>\n\t);\n};\n\nexport default TourKitMinimized;\n","/**\n * External Dependencies\n */\nimport classnames from 'classnames';\n\ninterface Props {\n\tvisible: boolean;\n}\n\nconst TourKitOverlay: React.FunctionComponent< Props > = ( { visible } ) => {\n\treturn (\n\t\t<div\n\t\t\tclassName={ classnames( 'tour-kit-overlay', {\n\t\t\t\t'is-visible': visible,\n\t\t\t} ) }\n\t\t/>\n\t);\n};\n\nexport default TourKitOverlay;\n","import { SPOTLIT_ELEMENT_CLASS } from './tour-kit-spotlight';\n\nexport interface SpotlightInteractivityConfiguration {\n\t/** If true, the user will be allowed to interact with the spotlit element. Defaults to false. */\n\tenabled?: boolean;\n\t/** This element is the root element within which all children will have\n\t * pointer-events disabled during the tour. Defaults to '#wpwrap'\n\t */\n\trootElementSelector?: string;\n}\n\nexport const SpotlightInteractivity: React.VFC< SpotlightInteractivityConfiguration > = ( {\n\tenabled = false,\n\trootElementSelector = '#wpwrap',\n}: SpotlightInteractivityConfiguration ) => {\n\tif ( ! enabled ) {\n\t\treturn null;\n\t}\n\treturn (\n\t\t<style>\n\t\t\t{ `\n .${ SPOTLIT_ELEMENT_CLASS }, .${ SPOTLIT_ELEMENT_CLASS } * {\n pointer-events: auto;\n }\n .tour-kit-frame__container button {\n pointer-events: auto;\n }\n .tour-kit-spotlight, .tour-kit-overlay {\n pointer-events: none;\n }\n ${ rootElementSelector } :not(.${ SPOTLIT_ELEMENT_CLASS }, .${ SPOTLIT_ELEMENT_CLASS } *) {\n pointer-events: none;\n }\n ` }\n\t\t</style>\n\t);\n};\n","import { useMemo, useState, useEffect } from '@wordpress/element';\nimport classnames from 'classnames';\nimport { usePopper } from 'react-popper';\nimport { LiveResizeConfiguration, liveResizeModifier } from '../utils/live-resize-modifier';\nimport Overlay from './tour-kit-overlay';\nimport {\n\tSpotlightInteractivity,\n\tSpotlightInteractivityConfiguration,\n} from './tour-kit-spotlight-interactivity';\nimport type { Rect, Placement } from '@popperjs/core';\n\nexport const SPOTLIT_ELEMENT_CLASS = 'wp-tour-kit-spotlit';\ninterface Props {\n\treferenceElement: HTMLElement | null;\n\tstyles?: React.CSSProperties;\n\tinteractivity?: SpotlightInteractivityConfiguration;\n\tliveResize?: LiveResizeConfiguration;\n}\n\nconst TourKitSpotlight: React.FunctionComponent< Props > = ( {\n\treferenceElement,\n\tstyles,\n\tinteractivity,\n\tliveResize,\n} ) => {\n\tconst [ popperElement, sePopperElement ] = useState< HTMLElement | null >( null );\n\tconst referenceRect = referenceElement?.getBoundingClientRect();\n\n\tconst modifiers = [\n\t\t{\n\t\t\tname: 'flip',\n\t\t\tenabled: false,\n\t\t},\n\t\t{\n\t\t\tname: 'preventOverflow',\n\t\t\toptions: {\n\t\t\t\tmainAxis: false, // true by default\n\t\t\t},\n\t\t},\n\t\tuseMemo(\n\t\t\t() => ( {\n\t\t\t\tname: 'offset',\n\t\t\t\toptions: {\n\t\t\t\t\toffset: ( {\n\t\t\t\t\t\tplacement,\n\t\t\t\t\t\treference,\n\t\t\t\t\t\tpopper,\n\t\t\t\t\t}: {\n\t\t\t\t\t\tplacement: Placement;\n\t\t\t\t\t\treference: Rect;\n\t\t\t\t\t\tpopper: Rect;\n\t\t\t\t\t} ): [ number, number ] => {\n\t\t\t\t\t\tif ( placement === 'bottom' ) {\n\t\t\t\t\t\t\treturn [ 0, -( reference.height + ( popper.height - reference.height ) / 2 ) ];\n\t\t\t\t\t\t}\n\t\t\t\t\t\treturn [ 0, 0 ];\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t} ),\n\t\t\t[]\n\t\t),\n\t\t// useMemo because https://popper.js.org/react-popper/v2/faq/#why-i-get-render-loop-whenever-i-put-a-function-inside-the-popper-configuration\n\t\tuseMemo( () => {\n\t\t\treturn liveResizeModifier( liveResize );\n\t\t}, [ liveResize ] ),\n\t];\n\n\tconst { styles: popperStyles, attributes: popperAttributes } = usePopper(\n\t\treferenceElement,\n\t\tpopperElement,\n\t\t{\n\t\t\tstrategy: 'fixed',\n\t\t\tplacement: 'bottom',\n\t\t\tmodifiers,\n\t\t}\n\t);\n\n\tconst clipDimensions = referenceRect\n\t\t? {\n\t\t\t\twidth: `${ referenceRect.width }px`,\n\t\t\t\theight: `${ referenceRect.height }px`,\n\t\t }\n\t\t: null;\n\n\tconst clipRepositionProps = referenceElement\n\t\t? {\n\t\t\t\tstyle: {\n\t\t\t\t\t...( clipDimensions && clipDimensions ),\n\t\t\t\t\t...popperStyles?.popper,\n\t\t\t\t\t...( styles && styles ),\n\t\t\t\t},\n\t\t\t\t...popperAttributes?.popper,\n\t\t }\n\t\t: null;\n\n\t/**\n\t * Add a .wp-spotlit class to the referenced element so that we can\n\t * apply CSS styles to it, for whatever purposes such as interactivity\n\t */\n\tuseEffect( () => {\n\t\treferenceElement?.classList.add( SPOTLIT_ELEMENT_CLASS );\n\t\treturn () => {\n\t\t\treferenceElement?.classList.remove( SPOTLIT_ELEMENT_CLASS );\n\t\t};\n\t}, [ referenceElement ] );\n\n\treturn (\n\t\t<>\n\t\t\t<SpotlightInteractivity { ...interactivity } />\n\t\t\t<Overlay visible={ ! clipRepositionProps } />\n\t\t\t<div\n\t\t\t\tclassName={ classnames( 'tour-kit-spotlight', {\n\t\t\t\t\t'is-visible': !! clipRepositionProps,\n\t\t\t\t} ) }\n\t\t\t\tref={ sePopperElement }\n\t\t\t\t{ ...( clipRepositionProps as React.HTMLAttributes< HTMLDivElement > ) }\n\t\t\t/>\n\t\t</>\n\t);\n};\n\nexport default TourKitSpotlight;\n","/**\n * External Dependencies\n */\nimport { useMobileBreakpoint } from '@automattic/viewport-react';\nimport classnames from 'classnames';\n/**\n * Internal Dependencies\n */\nimport { classParser } from '../utils';\nimport type { Config, TourStepRendererProps } from '../types';\n\ninterface Props extends TourStepRendererProps {\n\tconfig: Config;\n}\n\nconst TourKitStep: React.FunctionComponent< Props > = ( {\n\tconfig,\n\tsteps,\n\tcurrentStepIndex,\n\tonMinimize,\n\tonDismiss,\n\tonNextStep,\n\tonPreviousStep,\n\tsetInitialFocusedElement,\n\tonGoToStep,\n} ) => {\n\tconst isMobile = useMobileBreakpoint();\n\tconst classes = classnames(\n\t\t'tour-kit-step',\n\t\t`is-step-${ currentStepIndex }`,\n\t\tclassParser(\n\t\t\tconfig.steps[ currentStepIndex ].options?.classNames?.[ isMobile ? 'mobile' : 'desktop' ]\n\t\t)\n\t);\n\n\treturn (\n\t\t<div className={ classes }>\n\t\t\t<config.renderers.tourStep\n\t\t\t\tsteps={ steps }\n\t\t\t\tcurrentStepIndex={ currentStepIndex }\n\t\t\t\tonDismiss={ onDismiss }\n\t\t\t\tonNextStep={ onNextStep }\n\t\t\t\tonPreviousStep={ onPreviousStep }\n\t\t\t\tonMinimize={ onMinimize }\n\t\t\t\tsetInitialFocusedElement={ setInitialFocusedElement }\n\t\t\t\tonGoToStep={ onGoToStep }\n\t\t\t/>\n\t\t</div>\n\t);\n};\n\nexport default TourKitStep;\n","// import { TourKitContextProvider } from './tour-kit-context';\nimport { createPortal, useEffect, useRef } from '@wordpress/element';\nimport React from 'react';\nimport ErrorBoundary from '../error-boundary';\nimport TourKitContextProvider from './tour-kit-context';\nimport TourKitFrame from './tour-kit-frame';\nimport type { Config } from '../types';\n\nimport '../styles.scss';\n\ninterface Props {\n\tconfig: Config;\n\t__temp__className?: string;\n}\n\nconst TourKit: React.FunctionComponent< Props > = ( { config, __temp__className } ) => {\n\tconst portalParent = useRef( document.createElement( 'div' ) ).current;\n\n\tuseEffect( () => {\n\t\tconst classes = [ 'tour-kit', ...( __temp__className ? [ __temp__className ] : [] ) ];\n\n\t\tportalParent.classList.add( ...classes );\n\n\t\tconst portalParentElement = config.options?.portalParentElement || document.body;\n\t\tportalParentElement.appendChild( portalParent );\n\n\t\treturn () => {\n\t\t\tportalParentElement.removeChild( portalParent );\n\t\t};\n\t}, [ __temp__className, portalParent, config.options?.portalParentElement ] );\n\n\treturn (\n\t\t<ErrorBoundary>\n\t\t\t<TourKitContextProvider config={ config }>\n\t\t\t\t<div>{ createPortal( <TourKitFrame config={ config } />, portalParent ) }</div>\n\t\t\t</TourKitContextProvider>\n\t\t</ErrorBoundary>\n\t);\n};\n\nexport default TourKit;\n","import React, { ErrorInfo } from 'react';\n\ntype State = {\n\thasError: boolean;\n};\n\nclass ErrorBoundary extends React.Component< { children: React.ReactNode }, State > {\n\tstate = {\n\t\thasError: false,\n\t};\n\n\tstatic getDerivedStateFromError() {\n\t\t// Update state so the next render will show the fallback UI.\n\t\treturn { hasError: true };\n\t}\n\n\tcomponentDidCatch( error: Error, errorInfo: ErrorInfo ) {\n\t\t// You can also log the error to an error reporting service\n\t\t// eslint-disable-next-line no-console\n\t\tconsole.error( error, errorInfo );\n\t}\n\n\trender() {\n\t\tif ( this.state.hasError ) {\n\t\t\t// You can render any custom fallback UI\n\t\t\treturn <h1>Something went wrong.</h1>;\n\t\t}\n\n\t\treturn this.props.children;\n\t}\n}\n\nexport default ErrorBoundary;\n","/**\n * External Dependencies\n */\nimport { useEffect, useCallback, useState } from '@wordpress/element';\n\n/**\n * A hook that returns true/false if ref node receives focus by either tabbing or clicking into any of its children.\n *\n * @param ref React.MutableRefObject< null | HTMLElement >\n */\nconst useFocusHandler = ( ref: React.MutableRefObject< null | HTMLElement > ): boolean => {\n\tconst [ hasFocus, setHasFocus ] = useState( false );\n\n\tconst handleFocus = useCallback( () => {\n\t\tif ( document.hasFocus() && ref.current?.contains( document.activeElement ) ) {\n\t\t\tsetHasFocus( true );\n\t\t} else {\n\t\t\tsetHasFocus( false );\n\t\t}\n\t}, [ ref ] );\n\n\tconst handleMousedown = useCallback(\n\t\t( event ) => {\n\t\t\tif ( ref.current?.contains( event.target ) ) {\n\t\t\t\tsetHasFocus( true );\n\t\t\t} else {\n\t\t\t\tsetHasFocus( false );\n\t\t\t}\n\t\t},\n\t\t[ ref ]\n\t);\n\n\tconst handleKeyup = useCallback(\n\t\t( event ) => {\n\t\t\tif ( event.key === 'Tab' ) {\n\t\t\t\tif ( ref.current?.contains( event.target ) ) {\n\t\t\t\t\tsetHasFocus( true );\n\t\t\t\t} else {\n\t\t\t\t\tsetHasFocus( false );\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t\t[ ref ]\n\t);\n\n\tuseEffect( () => {\n\t\tdocument.addEventListener( 'focusin', handleFocus );\n\t\tdocument.addEventListener( 'mousedown', handleMousedown );\n\t\tdocument.addEventListener( 'keyup', handleKeyup );\n\n\t\treturn () => {\n\t\t\tdocument.removeEventListener( 'focusin', handleFocus );\n\t\t\tdocument.removeEventListener( 'mousedown', handleMousedown );\n\t\t\tdocument.removeEventListener( 'keyup', handleKeyup );\n\t\t};\n\t}, [ ref, handleFocus, handleKeyup, handleMousedown ] );\n\n\treturn hasFocus;\n};\n\nexport default useFocusHandler;\n","/**\n * External Dependencies\n */\nimport { focus } from '@wordpress/dom';\nimport { useEffect, useCallback, useState } from '@wordpress/element';\n/**\n * A hook that constraints tabbing/focus on focuable elements in the given element ref.\n *\n * @param ref React.MutableRefObject< null | HTMLElement >\n */\nconst useFocusTrap = ( ref: React.MutableRefObject< null | HTMLElement > ): void => {\n\tconst [ firstFocusableElement, setFirstFocusableElement ] = useState< HTMLElement | undefined >();\n\tconst [ lastFocusableElement, setLastFocusableElement ] = useState< HTMLElement | undefined >();\n\n\tconst handleTrapFocus = useCallback(\n\t\t( event ) => {\n\t\t\tlet handled = false;\n\n\t\t\tif ( event.key === 'Tab' ) {\n\t\t\t\tif ( event.shiftKey ) {\n\t\t\t\t\t// Shift + Tab\n\t\t\t\t\tif ( document.activeElement === firstFocusableElement ) {\n\t\t\t\t\t\tlastFocusableElement?.focus();\n\t\t\t\t\t\thandled = true;\n\t\t\t\t\t}\n\t\t\t\t} else if ( document.activeElement === lastFocusableElement ) {\n\t\t\t\t\t// Tab\n\t\t\t\t\tfirstFocusableElement?.focus();\n\t\t\t\t\thandled = true;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif ( handled ) {\n\t\t\t\tevent.preventDefault();\n\t\t\t\tevent.stopPropagation();\n\t\t\t}\n\t\t},\n\t\t[ firstFocusableElement, lastFocusableElement ]\n\t);\n\n\tuseEffect( () => {\n\t\tconst focusableElements = ref.current ? focus.focusable.find( ref.current as HTMLElement ) : [];\n\n\t\tif ( focusableElements && focusableElements.length ) {\n\t\t\tsetFirstFocusableElement( focusableElements[ 0 ] as HTMLElement );\n\t\t\tsetLastFocusableElement( focusableElements[ focusableElements.length - 1 ] as HTMLElement );\n\t\t}\n\n\t\tdocument.addEventListener( 'keydown', handleTrapFocus );\n\n\t\treturn () => {\n\t\t\tdocument.removeEventListener( 'keydown', handleTrapFocus );\n\t\t};\n\t}, [ ref, handleTrapFocus ] );\n};\n\nexport default useFocusTrap;\n","/* eslint-disable jsdoc/require-param */\n/**\n * External Dependencies\n */\nimport { useEffect, useCallback } from '@wordpress/element';\n\ninterface Props {\n\tonEscape?: () => void;\n\tonArrowRight?: () => void;\n\tonArrowLeft?: () => void;\n}\n\n/**\n * A hook the applies the respective callbacks in response to keydown events.\n */\nconst useKeydownHandler = ( { onEscape, onArrowRight, onArrowLeft }: Props ): void => {\n\tconst handleKeydown = useCallback(\n\t\t( event: KeyboardEvent ) => {\n\t\t\tlet handled = false;\n\n\t\t\tswitch ( event.key ) {\n\t\t\t\tcase 'Escape':\n\t\t\t\t\tonEscape && ( onEscape(), ( handled = true ) );\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'ArrowRight':\n\t\t\t\t\tonArrowRight && ( onArrowRight(), ( handled = true ) );\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'ArrowLeft':\n\t\t\t\t\tonArrowLeft && ( onArrowLeft(), ( handled = true ) );\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tif ( handled ) {\n\t\t\t\tevent.preventDefault();\n\t\t\t\tevent.stopPropagation();\n\t\t\t}\n\t\t},\n\t\t[ onEscape, onArrowRight, onArrowLeft ]\n\t);\n\n\tuseEffect( () => {\n\t\tdocument.addEventListener( 'keydown', handleKeydown );\n\n\t\treturn () => {\n\t\t\tdocument.removeEventListener( 'keydown', handleKeydown );\n\t\t};\n\t}, [ handleKeydown ] );\n};\n\nexport default useKeydownHandler;\n","/**\n * External Dependencies\n */\nimport { useState, useEffect } from '@wordpress/element';\n/**\n * Internal Dependencies\n */\nimport { Callback } from '../types';\n\nconst useStepTracking = (\n\tcurrentStepIndex: number,\n\tonStepViewOnce: Callback | undefined\n): void => {\n\tconst [ stepsViewed, setStepsViewed ] = useState< number[] >( [] );\n\n\tuseEffect( () => {\n\t\tif ( stepsViewed.includes( currentStepIndex ) ) {\n\t\t\treturn;\n\t\t}\n\n\t\tsetStepsViewed( ( prev ) => [ ...prev, currentStepIndex ] );\n\t\tonStepViewOnce?.( currentStepIndex );\n\t}, [ currentStepIndex, onStepViewOnce, stepsViewed ] );\n};\n\nexport default useStepTracking;\n","import debugFactory from 'debug';\n\n/**\n * Helper to convert CSV of `classes` to an array.\n *\n * @param classes String or array of classes to format.\n * @returns Array of classes\n */\nexport function classParser( classes?: string | string[] ): string[] | null {\n\tif ( classes?.length ) {\n\t\treturn classes.toString().split( ',' );\n\t}\n\n\treturn null;\n}\n\nexport const debug = debugFactory( 'tour-kit' );\n","import { debug } from '../utils';\nimport type { ModifierArguments, Options, State } from '@popperjs/core';\nimport type { Modifier } from 'react-popper';\n\n// Adds the resizeObserver and mutationObserver properties to the popper effect function argument\ntype ModifierArgumentsWithObserversProp = ModifierArguments< Options > & {\n\tstate: State & {\n\t\telements: State[ 'elements' ] & {\n\t\t\treference: State[ 'elements' ][ 'reference' ] & {\n\t\t\t\t[ key: symbol ]: {\n\t\t\t\t\tresizeObserver: ResizeObserver;\n\t\t\t\t\tmutationObserver: MutationObserver;\n\t\t\t\t};\n\t\t\t};\n\t\t};\n\t};\n};\n\nexport interface LiveResizeConfiguration {\n\t/** CSS Selector for the the DOM node (and children) to observe for mutations */\n\trootElementSelector?: string;\n\t/** True to enable update on reference element resize, defaults to false */\n\tresize?: boolean;\n\t/** True to enable update on node and subtree mutation, defaults to false. May be performance intensive */\n\tmutation?: boolean;\n}\n\ntype liveResizeModifierFactory = (\n\tparams: LiveResizeConfiguration | undefined\n) => Modifier< 'liveResizeModifier', Record< string, unknown > >;\n\n/**\n * Function that returns a Popper modifier that observes the specified root element as well as\n * reference element for any changes. The reason for being a currying function is so that\n * we can customise the root element selector, otherwise observing at a higher than necessary\n * level might cause unnecessary performance penalties.\n *\n * The Popper modifier queues an asynchronous update on the Popper instance whenever either of the\n * Observers trigger its callback.\n *\n * @returns custom Popper modifier\n */\nexport const liveResizeModifier: liveResizeModifierFactory = (\n\t{ rootElementSelector, mutation = false, resize = false }: LiveResizeConfiguration = {\n\t\tmutation: false,\n\t\tresize: false,\n\t}\n) => ( {\n\tname: 'liveResizeModifier',\n\tenabled: true,\n\tphase: 'main',\n\tfn: () => {\n\t\treturn;\n\t},\n\teffect: ( arg0 ) => {\n\t\ttry {\n\t\t\tconst { state, instance } = arg0 as ModifierArgumentsWithObserversProp; // augment types here because we are mutating the properties on the argument that is passed in\n\n\t\t\tconst ObserversProp = Symbol(); // use a symbol here so that we don't clash with multiple poppers using this modifier on the same reference node\n\t\t\tconst { reference } = state.elements;\n\n\t\t\treference[ ObserversProp ] = {\n\t\t\t\tresizeObserver: new ResizeObserver( () => {\n\t\t\t\t\tinstance.update();\n\t\t\t\t} ),\n\n\t\t\t\tmutationObserver: new MutationObserver( () => {\n\t\t\t\t\tinstance.update();\n\t\t\t\t} ),\n\t\t\t};\n\n\t\t\tif ( resize ) {\n\t\t\t\tif ( reference instanceof Element ) {\n\t\t\t\t\treference[ ObserversProp ].resizeObserver.observe( reference );\n\t\t\t\t} else {\n\t\t\t\t\tdebug(\n\t\t\t\t\t\t'Error: ResizeObserver does not work with virtual elements, Tour Kit will not resize automatically if the size of the referenced element changes.'\n\t\t\t\t\t);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif ( mutation ) {\n\t\t\t\tconst rootElementNode = document.querySelector( rootElementSelector || '#wpwrap' );\n\t\t\t\tif ( rootElementNode instanceof Element ) {\n\t\t\t\t\treference[ ObserversProp ].mutationObserver.observe( rootElementNode, {\n\t\t\t\t\t\tattributes: true,\n\t\t\t\t\t\tcharacterData: true,\n\t\t\t\t\t\tchildList: true,\n\t\t\t\t\t\tsubtree: true,\n\t\t\t\t\t} );\n\t\t\t\t} else {\n\t\t\t\t\tdebug(\n\t\t\t\t\t\t`Error: ${ rootElementSelector } selector did not find a valid DOM element, Tour Kit will not update automatically if the DOM layout changes.`\n\t\t\t\t\t);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn () => {\n\t\t\t\treference[ ObserversProp ].resizeObserver.disconnect();\n\t\t\t\treference[ ObserversProp ].mutationObserver.disconnect();\n\t\t\t\tdelete reference[ ObserversProp ];\n\t\t\t};\n\t\t} catch ( error ) {\n\t\t\tdebug( 'Error: Tour Kit live resize modifier failed unexpectedly:', error );\n\t\t}\n\t},\n} );\n","import { Button, Flex } from '@wordpress/components';\nimport { createInterpolateElement } from '@wordpress/element';\nimport { sprintf } from '@wordpress/i18n';\nimport { Icon, close } from '@wordpress/icons';\nimport { useI18n } from '@wordpress/react-i18n';\nimport maximize from '../icons/maximize';\nimport type { MinimizedTourRendererProps } from '../../../types';\n\nconst WpcomTourKitMinimized: React.FunctionComponent< MinimizedTourRendererProps > = ( {\n\tsteps,\n\tonMaximize,\n\tonDismiss,\n\tcurrentStepIndex,\n} ) => {\n\tconst { __ } = useI18n();\n\tconst lastStepIndex = steps.length - 1;\n\tconst page = currentStepIndex + 1;\n\tconst numberOfPages = lastStepIndex + 1;\n\n\treturn (\n\t\t<Flex gap={ 0 } className=\"wpcom-tour-kit-minimized\">\n\t\t\t<Button onClick={ onMaximize } aria-label={ __( 'Resume Tour', __i18n_text_domain__ ) }>\n\t\t\t\t<Flex gap={ 13 }>\n\t\t\t\t\t<p>\n\t\t\t\t\t\t{ createInterpolateElement(\n\t\t\t\t\t\t\tsprintf(\n\t\t\t\t\t\t\t\t/* translators: 1: current page number, 2: total number of pages */\n\t\t\t\t\t\t\t\t__( 'Resume tour <span>(%1$d/%2$d)</span>', __i18n_text_domain__ ),\n\t\t\t\t\t\t\t\tpage,\n\t\t\t\t\t\t\t\tnumberOfPages\n\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tspan: <span className=\"wpcom-tour-kit-minimized__tour-index\" />,\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t) }\n\t\t\t\t\t</p>\n\t\t\t\t\t<Icon icon={ maximize } size={ 24 } />\n\t\t\t\t</Flex>\n\t\t\t</Button>\n\t\t\t<Button\n\t\t\t\tonClick={ onDismiss( 'close-btn-minimized' ) }\n\t\t\t\taria-label={ __( 'Close Tour', __i18n_text_domain__ ) }\n\t\t\t>\n\t\t\t\t<Icon icon={ close } size={ 24 } />\n\t\t\t</Button>\n\t\t</Flex>\n\t);\n};\n\nexport default WpcomTourKitMinimized;\n","import { Button } from '@wordpress/components';\nimport { useState } from '@wordpress/element';\nimport { useI18n } from '@wordpress/react-i18n';\nimport classNames from 'classnames';\nimport { useTourKitContext } from '../../../index';\nimport thumbsDown from '../icons/thumbs_down';\nimport thumbsUp from '../icons/thumbs_up';\nimport type { WpcomConfig } from '../../../index';\n\nconst WpcomTourKitRating: React.FunctionComponent = () => {\n\tconst [ tempRating, setTempRating ] = useState< 'thumbs-up' | 'thumbs-down' >();\n\tconst context = useTourKitContext();\n\tconst config = context.config as unknown as WpcomConfig;\n\tconst tourRating = config.options?.tourRating?.useTourRating?.() ?? tempRating;\n\tconst { __ } = useI18n();\n\n\tlet isDisabled = false;\n\n\tif ( ! config.options?.tourRating?.enabled ) {\n\t\treturn null;\n\t}\n\n\t// check is on tempRating to allow rerating in a restarted tour\n\tif ( ! isDisabled && tempRating !== undefined ) {\n\t\tisDisabled = true;\n\t}\n\n\tconst rateTour = ( isThumbsUp: boolean ) => {\n\t\tif ( isDisabled ) {\n\t\t\treturn;\n\t\t}\n\n\t\tconst rating = isThumbsUp ? 'thumbs-up' : 'thumbs-down';\n\n\t\tif ( rating !== tourRating ) {\n\t\t\tisDisabled = true;\n\t\t\tsetTempRating( rating );\n\t\t\tconfig.options?.tourRating?.onTourRate?.( rating );\n\t\t}\n\t};\n\n\treturn (\n\t\t<>\n\t\t\t<p className=\"wpcom-tour-kit-rating__end-text\">\n\t\t\t\t{ __( 'Did you find this guide helpful?', __i18n_text_domain__ ) }\n\t\t\t</p>\n\t\t\t<div>\n\t\t\t\t<Button\n\t\t\t\t\taria-label={ __( 'Rate thumbs up', __i18n_text_domain__ ) }\n\t\t\t\t\tclassName={ classNames( 'wpcom-tour-kit-rating__end-icon', {\n\t\t\t\t\t\tactive: tourRating === 'thumbs-up',\n\t\t\t\t\t} ) }\n\t\t\t\t\tdisabled={ isDisabled }\n\t\t\t\t\ticon={ thumbsUp }\n\t\t\t\t\tonClick={ () => rateTour( true ) }\n\t\t\t\t\ticonSize={ 24 }\n\t\t\t\t/>\n\t\t\t\t<Button\n\t\t\t\t\taria-label={ __( 'Rate thumbs down', __i18n_text_domain__ ) }\n\t\t\t\t\tclassName={ classNames( 'wpcom-tour-kit-rating__end-icon', {\n\t\t\t\t\t\tactive: tourRating === 'thumbs-down',\n\t\t\t\t\t} ) }\n\t\t\t\t\tdisabled={ isDisabled }\n\t\t\t\t\ticon={ thumbsDown }\n\t\t\t\t\tonClick={ () => rateTour( false ) }\n\t\t\t\t\ticonSize={ 24 }\n\t\t\t\t/>\n\t\t\t</div>\n\t\t</>\n\t);\n};\n\nexport default WpcomTourKitRating;\n","import { PaginationControl } from '@automattic/components';\nimport { Button } from '@wordpress/components';\nimport { useI18n } from '@wordpress/react-i18n';\nimport type { WpcomTourStepRendererProps } from '../../../types';\n\ntype Props = Omit< WpcomTourStepRendererProps, 'onMinimize' >;\n\nconst WpcomTourKitStepCardNavigation: React.FunctionComponent< Props > = ( {\n\tcurrentStepIndex,\n\tonDismiss,\n\tonGoToStep,\n\tonNextStep,\n\tonPreviousStep,\n\tsetInitialFocusedElement,\n\tsteps,\n} ) => {\n\tconst { __ } = useI18n();\n\tconst isFirstStep = currentStepIndex === 0;\n\tconst lastStepIndex = steps.length - 1;\n\n\treturn (\n\t\t<>\n\t\t\t<PaginationControl\n\t\t\t\tactivePageIndex={ currentStepIndex }\n\t\t\t\tnumberOfPages={ lastStepIndex + 1 }\n\t\t\t\tonChange={ onGoToStep }\n\t\t\t>\n\t\t\t\t{ isFirstStep ? (\n\t\t\t\t\t<div>\n\t\t\t\t\t\t<Button isTertiary onClick={ onDismiss( 'no-thanks-btn' ) }>\n\t\t\t\t\t\t\t{ __( 'Skip', __i18n_text_domain__ ) }\n\t\t\t\t\t\t</Button>\n\t\t\t\t\t\t<Button\n\t\t\t\t\t\t\tclassName=\"wpcom-tour-kit-step-card-navigation__next-btn\"\n\t\t\t\t\t\t\tisPrimary\n\t\t\t\t\t\t\tonClick={ onNextStep }\n\t\t\t\t\t\t\tref={ setInitialFocusedElement }\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t{ __( 'Try it out!', __i18n_text_domain__ ) }\n\t\t\t\t\t\t</Button>\n\t\t\t\t\t</div>\n\t\t\t\t) : (\n\t\t\t\t\t<div>\n\t\t\t\t\t\t<Button isTertiary onClick={ onPreviousStep }>\n\t\t\t\t\t\t\t{ __( 'Back', __i18n_text_domain__ ) }\n\t\t\t\t\t\t</Button>\n\t\t\t\t\t\t<Button\n\t\t\t\t\t\t\tclassName=\"wpcom-tour-kit-step-card-navigation__next-btn\"\n\t\t\t\t\t\t\tisPrimary\n\t\t\t\t\t\t\tonClick={ onNextStep }\n\t\t\t\t\t\t\tref={ setInitialFocusedElement }\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t{ __( 'Next', __i18n_text_domain__ ) }\n\t\t\t\t\t\t</Button>\n\t\t\t\t\t</div>\n\t\t\t\t) }\n\t\t\t</PaginationControl>\n\t\t</>\n\t);\n};\n\nexport default WpcomTourKitStepCardNavigation;\n","import { Button, Flex } from '@wordpress/components';\nimport { close } from '@wordpress/icons';\nimport { useI18n } from '@wordpress/react-i18n';\nimport minimize from '../icons/minimize';\nimport type { TourStepRendererProps } from '../../../types';\n\ninterface Props {\n\tonMinimize: TourStepRendererProps[ 'onMinimize' ];\n\tonDismiss: TourStepRendererProps[ 'onDismiss' ];\n}\n\nconst WpcomTourKitStepCardOverlayControls: React.FunctionComponent< Props > = ( {\n\tonMinimize,\n\tonDismiss,\n} ) => {\n\tconst { __ } = useI18n();\n\n\treturn (\n\t\t<div className=\"wpcom-tour-kit-step-card-overlay-controls\">\n\t\t\t<Flex>\n\t\t\t\t<Button\n\t\t\t\t\tlabel={ __( 'Minimize Tour', __i18n_text_domain__ ) }\n\t\t\t\t\tisPrimary\n\t\t\t\t\tclassName=\"wpcom-tour-kit-step-card-overlay-controls__minimize-icon\"\n\t\t\t\t\ticon={ minimize }\n\t\t\t\t\ticonSize={ 24 }\n\t\t\t\t\tonClick={ onMinimize }\n\t\t\t\t></Button>\n\t\t\t\t<Button\n\t\t\t\t\tlabel={ __( 'Close Tour', __i18n_text_domain__ ) }\n\t\t\t\t\tisPrimary\n\t\t\t\t\ticon={ close }\n\t\t\t\t\ticonSize={ 24 }\n\t\t\t\t\tonClick={ onDismiss( 'close-btn' ) }\n\t\t\t\t></Button>\n\t\t\t</Flex>\n\t\t</div>\n\t);\n};\n\nexport default WpcomTourKitStepCardOverlayControls;\n","import { getMediaQueryList, isMobile, MOBILE_BREAKPOINT } from '@automattic/viewport';\nimport { Button, Card, CardBody, CardFooter, CardMedia } from '@wordpress/components';\nimport { useI18n } from '@wordpress/react-i18n';\nimport WpcomTourKitRating from './wpcom-tour-kit-rating';\nimport WpcomTourKitStepCardNavigation from './wpcom-tour-kit-step-card-navigation';\nimport WpcomTourKitStepCardOverlayControls from './wpcom-tour-kit-step-card-overlay-controls';\nimport type { WpcomTourStepRendererProps } from '../../../types';\n\nconst WpcomTourKitStepCard: React.FunctionComponent< WpcomTourStepRendererProps > = ( {\n\tsteps,\n\tcurrentStepIndex,\n\tonMinimize,\n\tonDismiss,\n\tonGoToStep,\n\tonNextStep,\n\tonPreviousStep,\n\tsetInitialFocusedElement,\n} ) => {\n\tconst { __ } = useI18n();\n\tconst lastStepIndex = steps.length - 1;\n\tconst { descriptions, heading, imgSrc } = steps[ currentStepIndex ].meta;\n\tconst isLastStep = currentStepIndex === lastStepIndex;\n\n\tconst description = descriptions[ isMobile() ? 'mobile' : 'desktop' ] ?? descriptions.desktop;\n\n\t// @todo check why the assertion is needed here to pass TS\n\tconst mediaQueryList = getMediaQueryList( MOBILE_BREAKPOINT ) as MediaQueryList | undefined;\n\n\treturn (\n\t\t<Card className=\"wpcom-tour-kit-step-card\" isElevated>\n\t\t\t<WpcomTourKitStepCardOverlayControls onDismiss={ onDismiss } onMinimize={ onMinimize } />\n\t\t\t{ imgSrc && (\n\t\t\t\t<CardMedia className=\"wpcom-tour-kit-step-card__media\">\n\t\t\t\t\t<picture>\n\t\t\t\t\t\t{ imgSrc.mobile && (\n\t\t\t\t\t\t\t<source\n\t\t\t\t\t\t\t\tsrcSet={ imgSrc.mobile.src }\n\t\t\t\t\t\t\t\ttype={ imgSrc.mobile.type }\n\t\t\t\t\t\t\t\tmedia={ mediaQueryList?.media }\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t) }\n\t\t\t\t\t\t<img alt={ __( 'Tour Media', __i18n_text_domain__ ) } src={ imgSrc.desktop?.src } />\n\t\t\t\t\t</picture>\n\t\t\t\t</CardMedia>\n\t\t\t) }\n\t\t\t<CardBody>\n\t\t\t\t<h2 className=\"wpcom-tour-kit-step-card__heading\">{ heading }</h2>\n\t\t\t\t<p className=\"wpcom-tour-kit-step-card__description\">\n\t\t\t\t\t{ description }\n\t\t\t\t\t{ isLastStep ? (\n\t\t\t\t\t\t<Button\n\t\t\t\t\t\t\tclassName=\"wpcom-tour-kit-step-card__description\"\n\t\t\t\t\t\t\tisTertiary\n\t\t\t\t\t\t\tonClick={ () => onGoToStep( 0 ) }\n\t\t\t\t\t\t\tref={ setInitialFocusedElement }\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t{ __( 'Restart tour', __i18n_text_domain__ ) }\n\t\t\t\t\t\t</Button>\n\t\t\t\t\t) : null }\n\t\t\t\t</p>\n\t\t\t</CardBody>\n\t\t\t<CardFooter>\n\t\t\t\t{ isLastStep ? (\n\t\t\t\t\t<WpcomTourKitRating />\n\t\t\t\t) : (\n\t\t\t\t\t<WpcomTourKitStepCardNavigation\n\t\t\t\t\t\tcurrentStepIndex={ currentStepIndex }\n\t\t\t\t\t\tonDismiss={ onDismiss }\n\t\t\t\t\t\tonGoToStep={ onGoToStep }\n\t\t\t\t\t\tonNextStep={ onNextStep }\n\t\t\t\t\t\tonPreviousStep={ onPreviousStep }\n\t\t\t\t\t\tsetInitialFocusedElement={ setInitialFocusedElement }\n\t\t\t\t\t\tsteps={ steps }\n\t\t\t\t\t></WpcomTourKitStepCardNavigation>\n\t\t\t\t) }\n\t\t\t</CardFooter>\n\t\t</Card>\n\t);\n};\n\nexport default WpcomTourKitStepCard;\n","import WpcomTourKitStepCard from './wpcom-tour-kit-step-card';\nimport type { WpcomTourStepRendererProps } from '../../../types';\n\nconst WpcomTourKitStep: React.FunctionComponent< WpcomTourStepRendererProps > = ( {\n\tsteps,\n\tcurrentStepIndex,\n\tonDismiss,\n\tonNextStep,\n\tonPreviousStep,\n\tonMinimize,\n\tsetInitialFocusedElement,\n\tonGoToStep,\n} ) => {\n\treturn (\n\t\t<WpcomTourKitStepCard\n\t\t\tsteps={ steps }\n\t\t\tcurrentStepIndex={ currentStepIndex }\n\t\t\tonDismiss={ onDismiss }\n\t\t\tonMinimize={ onMinimize }\n\t\t\tonGoToStep={ onGoToStep }\n\t\t\tonNextStep={ onNextStep }\n\t\t\tonPreviousStep={ onPreviousStep }\n\t\t\tsetInitialFocusedElement={ setInitialFocusedElement }\n\t\t/>\n\t);\n};\n\nexport default WpcomTourKitStep;\n","import TourKit from '../../../components/tour-kit';\nimport usePrefetchTourAssets from '../hooks/use-prefetch-tour-assets';\nimport WpcomTourKitMinimized from './wpcom-tour-kit-minimized';\nimport WpcomTourKitStep from './wpcom-tour-kit-step';\nimport '../styles.scss';\nimport type { WpcomConfig, TourStepRenderer } from '../../../types';\n\ninterface Props {\n\tconfig: WpcomConfig;\n}\n\nconst WpcomTourKit: React.FunctionComponent< Props > = ( { config } ) => {\n\tusePrefetchTourAssets( config.steps );\n\n\treturn (\n\t\t<TourKit\n\t\t\t__temp__className={ 'wpcom-tour-kit' }\n\t\t\tconfig={ {\n\t\t\t\t...config,\n\t\t\t\trenderers: {\n\t\t\t\t\ttourStep: WpcomTourKitStep as TourStepRenderer,\n\t\t\t\t\ttourMinimized: WpcomTourKitMinimized,\n\t\t\t\t},\n\t\t\t} }\n\t\t/>\n\t);\n};\n\nexport default WpcomTourKit;\n","import { useEffect } from '@wordpress/element';\nimport type { WpcomStep } from '../../../types';\n\nexport default function usePrefetchTourAssets( steps: WpcomStep[] ): void {\n\tuseEffect( () => {\n\t\tsteps.forEach( ( step ) => {\n\t\t\tstep.meta.imgSrc?.mobile && ( new window.Image().src = step.meta.imgSrc.mobile.src );\n\t\t\tstep.meta.imgSrc?.desktop && ( new window.Image().src = step.meta.imgSrc.desktop.src );\n\t\t} );\n\t}, [ steps ] );\n}\n","import { SVG, Path } from '@wordpress/primitives';\n\nconst minimize = (\n\t<SVG width=\"24\" height=\"24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n\t\t<Path\n\t\t\tfillRule=\"evenodd\"\n\t\t\tclipRule=\"evenodd\"\n\t\t\td=\"M14.086 5.412l3.476-.015c-.627.625-1.225 1.22-1.82 1.81l-.03.031c-.977.971-1.944 1.934-3.015 3.004l1.06 1.061c1.07-1.07 2.036-2.03 3.013-3.002l.03-.03 1.817-1.808-.03 3.448 1.5.013.046-5.28.007-.759-.76.003-5.301.024.007 1.5zM9.914 18.587l-3.476.016c.627-.625 1.225-1.22 1.82-1.81l.03-.031c.977-.971 1.944-1.934 3.015-3.004l-1.06-1.061c-1.07 1.069-2.036 2.03-3.012 3.001l-.001.001-.03.03-1.817 1.808.03-3.448-1.5-.013-.046 5.279-.007.76.76-.003 5.301-.024-.007-1.5z\"\n\t\t/>\n\t</SVG>\n);\n\nexport default minimize;\n","import { SVG, Path } from '@wordpress/primitives';\n\nconst minimize = (\n\t<SVG width=\"24\" height=\"24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n\t\t<Path\n\t\t\tfillRule=\"evenodd\"\n\t\t\tclipRule=\"evenodd\"\n\t\t\td=\"M18.514 9.988l-3.476.016c.627-.626 1.225-1.22 1.82-1.811l.03-.03v-.001c.977-.971 1.944-1.933 3.015-3.004l-1.06-1.06c-1.07 1.069-2.037 2.03-3.013 3.001l-.03.03-1.818 1.809.03-3.449-1.5-.013-.045 5.28-.007.76.76-.004 5.301-.024-.007-1.5zM5.486 14.012l3.477-.016-1.82 1.811-.03.03c-.977.972-1.945 1.934-3.015 3.005l1.06 1.06c1.07-1.068 2.035-2.03 3.012-3V16.9l.03-.03 1.818-1.809-.03 3.449 1.5.013.046-5.28.006-.76-.76.004-5.3.024.006 1.5z\"\n\t\t\tfill=\"#fff\"\n\t\t/>\n\t</SVG>\n);\n\nexport default minimize;\n","import { SVG, Path } from '@wordpress/primitives';\n\nconst thumbsDown = (\n\t<SVG width=\"24\" height=\"24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n\t\t<Path\n\t\t\tfillRule=\"evenodd\"\n\t\t\tclipRule=\"evenodd\"\n\t\t\td=\"M13.131 19.12a.667.667 0 001.227-.417l-.436-4.989h3.88c.954 0 1.64-.916 1.37-1.831L17.42 5.919a.286.286 0 00-.274-.205H9.429v7.588l3.702 5.818zm-5.417-5.977V5.714h-2v7.429h2zm5.98 8a2.381 2.381 0 01-2.01-1.103l-3.297-5.183H4V4h13.145a2 2 0 011.919 1.436l1.753 5.963a3.143 3.143 0 01-3.015 4.03h-2.01l.274 3.125a2.381 2.381 0 01-2.372 2.589z\"\n\t\t\tfill=\"#000\"\n\t\t/>\n\t</SVG>\n);\n\nexport default thumbsDown;\n","import { SVG, Path } from '@wordpress/primitives';\n\nconst thumbsUp = (\n\t<SVG width=\"24\" height=\"24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/SVG\">\n\t\t<Path\n\t\t\tfillRule=\"evenodd\"\n\t\t\tclipRule=\"evenodd\"\n\t\t\td=\"M13.131 4.023a.667.667 0 011.227.416l-.436 4.99h3.88c.954 0 1.64.916 1.37 1.831l-1.753 5.963a.286.286 0 01-.274.206H9.429V9.84l3.702-5.818zM7.714 10v7.428h-2V10h2zm5.98-8c-.814 0-1.572.416-2.01 1.103L8.388 8.286H4v10.857h13.145a2 2 0 001.919-1.436l1.753-5.963a3.143 3.143 0 00-3.015-4.03h-2.01l.274-3.125A2.381 2.381 0 0013.694 2z\"\n\t\t\tfill=\"#000\"\n\t\t/>\n\t</SVG>\n);\n\nexport default thumbsUp;\n","import {\n\tisWithinBreakpoint,\n\tsubscribeIsWithinBreakpoint,\n\tMOBILE_BREAKPOINT,\n\tDESKTOP_BREAKPOINT,\n} from '@automattic/viewport';\nimport { createHigherOrderComponent } from '@wordpress/compose';\nimport { forwardRef, useState, useEffect } from 'react';\n\n/**\n * React hook for getting the status for a breakpoint and keeping it updated.\n *\n * @param {string} breakpoint The breakpoint to consider.\n * @returns {boolean} The current status for the breakpoint.\n */\nexport function useBreakpoint( breakpoint ) {\n\tconst [ state, setState ] = useState( () => ( {\n\t\tisActive: isWithinBreakpoint( breakpoint ),\n\t\tbreakpoint,\n\t} ) );\n\n\tuseEffect( () => {\n\t\tfunction handleBreakpointChange( isActive ) {\n\t\t\tsetState( ( prevState ) => {\n\t\t\t\t// Ensure we bail out without rendering if nothing changes, by preserving state.\n\t\t\t\tif ( prevState.isActive === isActive && prevState.breakpoint === breakpoint ) {\n\t\t\t\t\treturn prevState;\n\t\t\t\t}\n\t\t\t\treturn { isActive, breakpoint };\n\t\t\t} );\n\t\t}\n\n\t\tconst unsubscribe = subscribeIsWithinBreakpoint( breakpoint, handleBreakpointChange );\n\t\t// The unsubscribe function is the entire cleanup for the effect.\n\t\treturn unsubscribe;\n\t}, [ breakpoint ] );\n\n\treturn breakpoint === state.breakpoint ? state.isActive : isWithinBreakpoint( breakpoint );\n}\n\n/**\n * React hook for getting the status for the mobile breakpoint and keeping it\n * updated.\n *\n * @returns {boolean} The current status for the breakpoint.\n */\nexport function useMobileBreakpoint() {\n\treturn useBreakpoint( MOBILE_BREAKPOINT );\n}\n\n/**\n * React hook for getting the status for the desktop breakpoint and keeping it\n * updated.\n *\n * @returns {boolean} The current status for the breakpoint.\n */\nexport function useDesktopBreakpoint() {\n\treturn useBreakpoint( DESKTOP_BREAKPOINT );\n}\n\n/**\n * React higher order component for getting the status for a breakpoint and\n * keeping it updated.\n *\n * @param {string} breakpoint The breakpoint to consider.\n * @returns {Function} A function that given a component returns the\n * wrapped component.\n */\nexport const withBreakpoint = ( breakpoint ) =>\n\tcreateHigherOrderComponent(\n\t\t( WrappedComponent ) =>\n\t\t\tforwardRef( ( props, ref ) => {\n\t\t\t\tconst isActive = useBreakpoint( breakpoint );\n\t\t\t\treturn <WrappedComponent { ...props } isBreakpointActive={ isActive } ref={ ref } />;\n\t\t\t} ),\n\t\t'WithBreakpoint'\n\t);\n\n/**\n * React higher order component for getting the status for the mobile\n * breakpoint and keeping it updated.\n *\n * @param {import('react').Component|Function} Wrapped The component to wrap.\n * @returns {Function} The wrapped component.\n */\nexport const withMobileBreakpoint = createHigherOrderComponent(\n\t( WrappedComponent ) =>\n\t\tforwardRef( ( props, ref ) => {\n\t\t\tconst isActive = useBreakpoint( MOBILE_BREAKPOINT );\n\t\t\treturn <WrappedComponent { ...props } isBreakpointActive={ isActive } ref={ ref } />;\n\t\t} ),\n\t'WithMobileBreakpoint'\n);\n\n/**\n * React higher order component for getting the status for the desktop\n * breakpoint and keeping it updated.\n *\n * @param {import('react').Component|Function} Wrapped The component to wrap.\n * @returns {Function} The wrapped component.\n */\nexport const withDesktopBreakpoint = createHigherOrderComponent(\n\t( WrappedComponent ) =>\n\t\tforwardRef( ( props, ref ) => {\n\t\t\tconst isActive = useBreakpoint( DESKTOP_BREAKPOINT );\n\t\t\treturn <WrappedComponent { ...props } isBreakpointActive={ isActive } ref={ ref } />;\n\t\t} ),\n\t'WithDesktopBreakpoint'\n);\n","// Determine whether a user is viewing calypso from a device within a\n// particular mobile-first responsive breakpoint, matching our existing media\n// queries. [1]\n//\n// This function takes a string matching one of our mobile-first breakpoints\n// and returns a boolean based on whether the current `window.innerWidth`\n// matches. This is used to segment behavior based on device or browser size,\n// but should not be used in place of css for design.\n//\n// Valid breakpoints include:\n// - '<480px'\n// - '<660px'\n// - '<800px'\n// - '<960px'\n// - '<1040px'\n// - '<1280px'\n// - '<1400px'\n// - '>480px'\n// - '>660px'\n// - '>800px'\n// - '>960px'\n// - '>1040px'\n// - '>1280px'\n// - '>1400px'\n// - '480px-660px'\n// - '480px-960px'\n// - '660px-960px'\n//\n// As implemented in our sass media query mixins, minimums are exclusive, while\n// maximums are inclusive. i.e.,\n//\n// - '>480px' is equivalent to `@media (min-width: 481px)`\n// - '<960px' is equivalent to `@media (max-width: 960px)`\n// - '480px-960px' is equivalent to `@media (max-width: 960px) and (min-width: 481px)`\n//\n// [1] https://github.com/Automattic/wp-calypso/blob/HEAD/docs/coding-guidelines/css.md#media-queries\n//\n\n// FIXME: We can't detect window size on the server, so until we have more intelligent detection,\n// use 769, which is just above the general maximum mobile screen width.\nconst SERVER_WIDTH = 769;\n\nexport const MOBILE_BREAKPOINT = '<480px';\nexport const DESKTOP_BREAKPOINT = '>960px';\n\nconst isServer = typeof window === 'undefined' || ! window.matchMedia;\n\nconst noop = () => null;\n\nexport type QueryItem = false | MinimalMediaQueryList | MediaQueryList;\nexport type ListenerCallback = ( matches: boolean ) => void;\nexport type UnsubcribeCallback = () => void;\nexport type MinimalMediaQueryList = {\n\tmatches: boolean;\n\taddListener: MediaQueryList[ 'addListener' ];\n\tremoveListener: MediaQueryList[ 'removeListener' ];\n};\n\nfunction addListenerFunctions(\n\tobj: Pick< MinimalMediaQueryList, 'matches' >\n): MinimalMediaQueryList {\n\treturn {\n\t\taddListener: () => undefined,\n\t\tremoveListener: () => undefined,\n\t\t...obj,\n\t};\n}\n\nfunction createMediaQueryList( args?: { min?: number; max?: number } ): QueryItem {\n\tconst { min, max } = args ?? {};\n\tif ( min !== undefined && max !== undefined ) {\n\t\treturn isServer\n\t\t\t? addListenerFunctions( { matches: SERVER_WIDTH > min && SERVER_WIDTH <= max } )\n\t\t\t: window.matchMedia( `(min-width: ${ min + 1 }px) and (max-width: ${ max }px)` );\n\t}\n\n\tif ( min !== undefined ) {\n\t\treturn isServer\n\t\t\t? addListenerFunctions( { matches: SERVER_WIDTH > min } )\n\t\t\t: window.matchMedia( `(min-width: ${ min + 1 }px)` );\n\t}\n\n\tif ( max !== undefined ) {\n\t\treturn isServer\n\t\t\t? addListenerFunctions( { matches: SERVER_WIDTH <= max } )\n\t\t\t: window.matchMedia( `(max-width: ${ max }px)` );\n\t}\n\n\treturn false;\n}\n\nconst mediaQueryLists: Record< string, QueryItem > = {\n\t'<480px': createMediaQueryList( { max: 480 } ),\n\t'<660px': createMediaQueryList( { max: 660 } ),\n\t'<782px': createMediaQueryList( { max: 782 } ),\n\t'<800px': createMediaQueryList( { max: 800 } ),\n\t'<960px': createMediaQueryList( { max: 960 } ),\n\t'<1040px': createMediaQueryList( { max: 1040 } ),\n\t'<1280px': createMediaQueryList( { max: 1280 } ),\n\t'<1400px': createMediaQueryList( { max: 1400 } ),\n\t'>480px': createMediaQueryList( { min: 480 } ),\n\t'>660px': createMediaQueryList( { min: 660 } ),\n\t'>782px': createMediaQueryList( { min: 782 } ),\n\t'>800px': createMediaQueryList( { min: 800 } ),\n\t'>960px': createMediaQueryList( { min: 960 } ),\n\t'>1040px': createMediaQueryList( { min: 1040 } ),\n\t'>1280px': createMediaQueryList( { min: 1280 } ),\n\t'>1400px': createMediaQueryList( { min: 1400 } ),\n\t'480px-660px': createMediaQueryList( { min: 480, max: 660 } ),\n\t'660px-960px': createMediaQueryList( { min: 660, max: 960 } ),\n\t'480px-960px': createMediaQueryList( { min: 480, max: 960 } ),\n};\n\nexport function getMediaQueryList( breakpoint: string ): undefined | QueryItem {\n\tif ( ! mediaQueryLists.hasOwnProperty( breakpoint ) ) {\n\t\ttry {\n\t\t\t// eslint-disable-next-line no-console\n\t\t\tconsole.warn( 'Undefined breakpoint used in `mobile-first-breakpoint`', breakpoint );\n\t\t} catch ( e ) {}\n\t\treturn undefined;\n\t}\n\n\treturn mediaQueryLists[ breakpoint ];\n}\n\n/**\n * Returns whether the current window width matches a breakpoint.\n *\n * @param {string} breakpoint The breakpoint to consider.\n * @returns {boolean|undefined} Whether the provided breakpoint is matched.\n */\nexport function isWithinBreakpoint( breakpoint: string ): boolean | undefined {\n\tconst mediaQueryList = getMediaQueryList( breakpoint );\n\treturn mediaQueryList ? mediaQueryList.matches : undefined;\n}\n\n/**\n * Registers a listener to be notified of changes to breakpoint matching status.\n *\n * @param {string} breakpoint The breakpoint to consider.\n * @param {Function} listener The listener to be called on change.\n * @returns {Function} The function to be called when unsubscribing.\n */\nexport function subscribeIsWithinBreakpoint(\n\tbreakpoint: string,\n\tlistener: ListenerCallback\n): UnsubcribeCallback {\n\tif ( ! listener ) {\n\t\treturn noop;\n\t}\n\n\tconst mediaQueryList = getMediaQueryList( breakpoint );\n\n\tif ( mediaQueryList && ! isServer ) {\n\t\tconst wrappedListener = ( evt: { matches: boolean } ) => listener( evt.matches );\n\t\tmediaQueryList.addListener( wrappedListener );\n\t\t// Return unsubscribe function.\n\t\treturn () => mediaQueryList.removeListener( wrappedListener );\n\t}\n\n\treturn noop;\n}\n\n/**\n * Returns whether the current window width matches the mobile breakpoint.\n *\n * @returns {boolean|undefined} Whether the mobile breakpoint is matched.\n */\nexport function isMobile(): boolean | undefined {\n\treturn isWithinBreakpoint( MOBILE_BREAKPOINT );\n}\n\n/**\n * Registers a listener to be notified of changes to mobile breakpoint matching status.\n *\n * @param {Function} listener The listener to be called on change.\n * @returns {Function} The registered subscription; undefined if none.\n */\nexport function subscribeIsMobile( listener: ListenerCallback ): UnsubcribeCallback {\n\treturn subscribeIsWithinBreakpoint( MOBILE_BREAKPOINT, listener );\n}\n\n/**\n * Returns whether the current window width matches the desktop breakpoint.\n *\n * @returns {boolean|undefined} Whether the desktop breakpoint is matched.\n */\nexport function isDesktop(): boolean | undefined {\n\treturn isWithinBreakpoint( DESKTOP_BREAKPOINT );\n}\n\n/**\n * Registers a listener to be notified of changes to desktop breakpoint matching status.\n *\n * @param {Function} listener The listener to be called on change.\n * @returns {Function} The registered subscription; undefined if none.\n */\nexport function subscribeIsDesktop( listener: ListenerCallback ): UnsubcribeCallback {\n\treturn subscribeIsWithinBreakpoint( DESKTOP_BREAKPOINT, listener );\n}\n\n/**\n * Returns the current window width.\n * Avoid using this method, as it triggers a layout recalc.\n *\n * @returns {number} The current window width, in pixels.\n */\nexport function getWindowInnerWidth(): number {\n\treturn isServer ? SERVER_WIDTH : window.innerWidth;\n}\n\n/******************************************/\n/* Vertical Scroll Experiment */\n/* \t pcbrnV-XN-p2 */\n/******************************************/\n\n//TODO: To be refactored using above using the DESKTOP_BREAKPOINT constant\nexport function isTabletResolution(): boolean {\n\tif ( ! isServer ) {\n\t\treturn window.innerWidth < 1040;\n\t}\n\treturn false;\n}\n\nexport const DEVICE_MOBILE = 'mobile';\nexport const DEVICE_TABLET = 'tablet';\nexport const DEVICE_DESKTOP = 'desktop';\n\nexport function resolveDeviceTypeByViewPort(): string {\n\tif ( isMobile() ) {\n\t\treturn DEVICE_MOBILE;\n\t} else if ( isTabletResolution() ) {\n\t\treturn DEVICE_TABLET;\n\t}\n\treturn DEVICE_DESKTOP;\n}\n\n/******************************************/\n","import debugFactory from 'debug';\nimport ProgressEvent from 'progress-event';\nimport { v4 as uuidv4 } from 'uuid';\nimport WPError from 'wp-error';\n\n/**\n * debug instance\n */\nconst debug = debugFactory( 'wpcom-proxy-request' );\n\n/**\n * WordPress.com REST API base endpoint.\n */\nconst proxyOrigin = 'https://public-api.wordpress.com';\n\n/**\n * \"Origin\" of the current HTML page.\n */\nconst origin = window.location.protocol + '//' + window.location.host;\n\nlet onStreamRecord = null;\n\n/**\n * Detecting support for the structured clone algorithm. IE8 and 9, and Firefox\n * 6.0 and below only support strings as postMessage's message. This browsers\n * will try to use the toString method.\n *\n * https://developer.mozilla.org/en-US/docs/Web/API/Window/postMessage\n * https://developer.mozilla.org/en-US/docs/Web/Guide/API/DOM/The_structured_clone_algorithm\n * https://github.com/Modernizr/Modernizr/issues/388#issuecomment-31127462\n */\nconst postStrings = ( () => {\n\tlet r = false;\n\ttry {\n\t\twindow.postMessage(\n\t\t\t{\n\t\t\t\ttoString: function () {\n\t\t\t\t\tr = true;\n\t\t\t\t},\n\t\t\t},\n\t\t\t'*'\n\t\t);\n\t} catch ( e ) {\n\t\t/* empty */\n\t}\n\treturn r;\n} )();\n\n/**\n * Test if the browser supports constructing a new `File` object. Not present on Edge and IE.\n */\nconst supportsFileConstructor = ( () => {\n\ttry {\n\t\t// eslint-disable-next-line no-new\n\t\tnew window.File( [ 'a' ], 'test.jpg', { type: 'image/jpeg' } );\n\t\treturn true;\n\t} catch ( e ) {\n\t\treturn false;\n\t}\n} )();\n\n/**\n * Reference to the <iframe> DOM element.\n * Gets set in the install() function.\n */\nlet iframe = null;\n\n/**\n * Set to `true` upon the iframe's \"load\" event.\n */\nlet loaded = false;\n\n/**\n * Array of buffered API requests. Added to when API requests are done before the\n * proxy <iframe> is \"loaded\", and fulfilled once the \"load\" DOM event on the\n * iframe occurs.\n */\nlet buffered;\n\n/**\n * In-flight API request XMLHttpRequest dummy \"proxy\" instances.\n */\nconst requests = {};\n\n/**\n * Are HTML5 XMLHttpRequest2 \"progress\" events supported?\n * See: http://goo.gl/xxYf6D\n */\nconst supportsProgress = !! window.ProgressEvent && !! window.FormData;\n\ndebug( 'using \"origin\": %o', origin );\n\n/**\n * Performs a \"proxied REST API request\". This happens by calling\n * `iframe.postMessage()` on the proxy iframe instance, which from there\n * takes care of WordPress.com user authentication (via the currently\n * logged-in user's cookies).\n *\n * @param {object} originalParams - request parameters\n * @param {Function} [fn] - callback response\n * @returns {window.XMLHttpRequest} XMLHttpRequest instance\n */\nconst makeRequest = ( originalParams, fn ) => {\n\tconst params = Object.assign( {}, originalParams );\n\n\tdebug( 'request(%o)', params );\n\n\t// inject the <iframe> upon the first proxied API request\n\tif ( ! iframe ) {\n\t\tinstall();\n\t}\n\n\t// generate a uuid for this API request\n\tconst id = uuidv4();\n\tparams.callback = id;\n\tparams.supports_args = true; // supports receiving variable amount of arguments\n\tparams.supports_error_obj = true; // better Error object info\n\tparams.supports_progress = supportsProgress; // supports receiving XHR \"progress\" events\n\n\t// force uppercase \"method\" since that's what the <iframe> is expecting\n\tparams.method = String( params.method || 'GET' ).toUpperCase();\n\n\tdebug( 'params object: %o', params );\n\n\tconst xhr = new window.XMLHttpRequest();\n\txhr.params = params;\n\n\t// store the `XMLHttpRequest` instance so that \"onmessage\" can access it again\n\trequests[ id ] = xhr;\n\n\tif ( 'function' === typeof fn ) {\n\t\t// a callback function was provided\n\t\tlet called = false;\n\t\tconst xhrOnLoad = ( e ) => {\n\t\t\tif ( called ) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tcalled = true;\n\t\t\tconst body = e.response || xhr.response;\n\t\t\tdebug( 'body: ', body );\n\t\t\tdebug( 'headers: ', e.headers );\n\t\t\tfn( null, body, e.headers );\n\t\t};\n\t\tconst xhrOnError = ( e ) => {\n\t\t\tif ( called ) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tcalled = true;\n\t\t\tconst error = e.error || e.err || e;\n\t\t\tdebug( 'error: ', error );\n\t\t\tdebug( 'headers: ', e.headers );\n\t\t\tfn( error, null, e.headers );\n\t\t};\n\n\t\txhr.addEventListener( 'load', xhrOnLoad );\n\t\txhr.addEventListener( 'abort', xhrOnError );\n\t\txhr.addEventListener( 'error', xhrOnError );\n\t}\n\n\tif ( 'function' === typeof params.onStreamRecord ) {\n\t\t// remove onStreamRecord param, which can’t be cloned\n\t\tonStreamRecord = params.onStreamRecord;\n\t\tdelete params.onStreamRecord;\n\n\t\t// FIXME @azabani implement stream mode processing\n\t\t// Hint: port the algorithm from wpcom-xhr-request@1.2.0 to /public.api/rest-proxy/provider-\n\t\t// v2.0.js in rWP, then plumb stream records from onmessage below to onStreamRecord (or add\n\t\t// the XMLHttpRequest#response to ondownloadprogress there, then parse the chunks here).\n\t}\n\n\tif ( loaded ) {\n\t\tsubmitRequest( params );\n\t} else {\n\t\tdebug( 'buffering API request since proxying <iframe> is not yet loaded' );\n\t\tbuffered.push( params );\n\t}\n\n\treturn xhr;\n};\n\n/**\n * Performs a \"proxied REST API request\". This happens by calling\n * `iframe.postMessage()` on the proxy iframe instance, which from there\n * takes care of WordPress.com user authentication (via the currently\n * logged-in user's cookies).\n *\n * If no function is specified as second parameter, a promise is returned.\n *\n * @param {object} originalParams - request parameters\n * @param {Function} [fn] - callback response\n * @returns {window.XMLHttpRequest|Promise} XMLHttpRequest instance or Promise\n */\nconst request = ( originalParams, fn ) => {\n\t// if callback is provided, behave traditionally\n\tif ( 'function' === typeof fn ) {\n\t\t// request method\n\t\treturn makeRequest( originalParams, fn );\n\t}\n\n\t// but if not, return a Promise\n\treturn new Promise( ( res, rej ) => {\n\t\tmakeRequest( originalParams, ( err, response ) => {\n\t\t\terr ? rej( err ) : res( response );\n\t\t} );\n\t} );\n};\n\n/**\n * Set proxy to \"access all users' blogs\" mode.\n */\nexport function requestAllBlogsAccess() {\n\treturn request( { metaAPI: { accessAllUsersBlogs: true } } );\n}\n\n/**\n * Calls the `postMessage()` function on the <iframe>.\n *\n * @param {object} params\n */\n\nfunction submitRequest( params ) {\n\tdebug( 'sending API request to proxy <iframe> %o', params );\n\n\t// `formData` needs to be patched if it contains `File` objects to work around\n\t// a Chrome bug. See `patchFileObjects` description for more details.\n\tif ( params.formData ) {\n\t\tpatchFileObjects( params.formData );\n\t}\n\n\tiframe.contentWindow.postMessage( postStrings ? JSON.stringify( params ) : params, proxyOrigin );\n}\n\n/**\n * Returns `true` if `v` is a DOM File instance, `false` otherwise.\n *\n * @param {any} v - instance to analyze\n * @returns {boolean} `true` if `v` is a DOM File instance\n */\nfunction isFile( v ) {\n\treturn v && Object.prototype.toString.call( v ) === '[object File]';\n}\n\n/*\n * Find a `File` object in a form data value. It can be either the value itself, or\n * in a `fileContents` property of the value.\n */\nfunction getFileValue( v ) {\n\tif ( isFile( v ) ) {\n\t\treturn v;\n\t}\n\n\tif ( typeof v === 'object' && isFile( v.fileContents ) ) {\n\t\treturn v.fileContents;\n\t}\n\n\treturn null;\n}\n\n/**\n * Finds all `File` instances in `formData` and creates a new `File` instance whose storage is\n * forced to be a `Blob` instead of being backed by a file on disk. That works around a bug in\n * Chrome where `File` instances with `has_backing_file` flag cannot be sent over a process\n * boundary when site isolation is on.\n *\n * @see https://bugs.chromium.org/p/chromium/issues/detail?id=866805\n * @see https://bugs.chromium.org/p/chromium/issues/detail?id=631877\n * @param {Array} formData Form data to patch\n */\nfunction patchFileObjects( formData ) {\n\t// There are several landmines to avoid when making file uploads work on all browsers:\n\t// - the `new File()` constructor trick breaks file uploads on Safari 10 in a way that's\n\t// impossible to detect: it will send empty files in the multipart/form-data body.\n\t// Therefore we need to detect Chrome.\n\t// - IE11 and Edge don't support the `new File()` constructor at all. It will throw exception,\n\t// so it's detectable by the `supportsFileConstructor` code.\n\t// - `window.chrome` exists also on Edge (!), `window.chrome.webstore` is only in Chrome and\n\t// not in other Chromium based browsers (which have the site isolation bug, too).\n\tif ( ! window.chrome || ! supportsFileConstructor ) {\n\t\treturn;\n\t}\n\n\tfor ( let i = 0; i < formData.length; i++ ) {\n\t\tconst val = getFileValue( formData[ i ][ 1 ] );\n\t\tif ( val ) {\n\t\t\tformData[ i ][ 1 ] = new window.File( [ val ], val.name, { type: val.type } );\n\t\t}\n\t}\n}\n\n/**\n * Injects the proxy <iframe> instance in the <body> of the current\n * HTML page.\n */\n\nfunction install() {\n\tdebug( 'install()' );\n\tif ( iframe ) {\n\t\tuninstall();\n\t}\n\n\tbuffered = [];\n\n\t// listen to messages sent to `window`\n\twindow.addEventListener( 'message', onmessage );\n\n\t// create the <iframe>\n\tiframe = document.createElement( 'iframe' );\n\n\t// set `src` and hide the iframe\n\tiframe.src = proxyOrigin + '/wp-admin/rest-proxy/?v=2.0#' + origin;\n\tiframe.style.display = 'none';\n\n\t// inject the <iframe> into the <body>\n\tdocument.body.appendChild( iframe );\n}\n\n/**\n * Reloads the proxy iframe.\n */\nconst reloadProxy = () => {\n\tinstall();\n};\n\n/**\n * Removes the <iframe> proxy instance from the <body> of the page.\n */\nfunction uninstall() {\n\tdebug( 'uninstall()' );\n\twindow.removeEventListener( 'message', onmessage );\n\tdocument.body.removeChild( iframe );\n\tloaded = false;\n\tiframe = null;\n}\n\n/**\n * The proxy <iframe> instance's \"load\" event callback function.\n */\n\nfunction onload() {\n\tdebug( 'proxy <iframe> \"load\" event' );\n\tloaded = true;\n\n\t// flush any buffered API calls\n\tif ( buffered ) {\n\t\tfor ( let i = 0; i < buffered.length; i++ ) {\n\t\t\tsubmitRequest( buffered[ i ] );\n\t\t}\n\t\tbuffered = null;\n\t}\n}\n\n/**\n * The main `window` object's \"message\" event callback function.\n *\n * @param {window.Event} e\n */\n\nfunction onmessage( e ) {\n\tdebug( 'onmessage' );\n\n\t// Filter out messages from different origins\n\tif ( e.origin !== proxyOrigin ) {\n\t\tdebug( 'ignoring message... %o !== %o', e.origin, proxyOrigin );\n\t\treturn;\n\t}\n\n\t// Filter out messages from different iframes\n\tif ( e.source !== iframe.contentWindow ) {\n\t\tdebug( 'ignoring message... iframe elements do not match' );\n\t\treturn;\n\t}\n\n\tlet { data } = e;\n\tif ( ! data ) {\n\t\treturn debug( 'no `data`, bailing' );\n\t}\n\n\t// Once the iframe is loaded, we can start using it.\n\tif ( data === 'ready' ) {\n\t\tonload();\n\t\treturn;\n\t}\n\n\tif ( postStrings && 'string' === typeof data ) {\n\t\tdata = JSON.parse( data );\n\t}\n\n\t// check if we're receiving a \"progress\" event\n\tif ( data.upload || data.download ) {\n\t\treturn onprogress( data );\n\t}\n\n\tif ( ! data.length ) {\n\t\treturn debug( \"`e.data` doesn't appear to be an Array, bailing...\" );\n\t}\n\n\t// first get the `xhr` instance that we're interested in\n\tconst id = data[ data.length - 1 ];\n\tif ( ! ( id in requests ) ) {\n\t\treturn debug( 'bailing, no matching request with callback: %o', id );\n\t}\n\n\tconst xhr = requests[ id ];\n\n\t// Build `error` and `body` object from the `data` object\n\tconst { params } = xhr;\n\n\tconst body = data[ 0 ];\n\tlet statusCode = data[ 1 ];\n\tconst headers = data[ 2 ];\n\n\t// We don't want to delete requests while we're processing stream messages\n\tif ( statusCode === 207 ) {\n\t\t// 207 is a signal from rest-proxy. It means, \"this isn't the final\n\t\t// response to the query.\" The proxy supports WebSocket connections\n\t\t// by invoking the original success callback for each message received.\n\t} else {\n\t\t// this is the final response to this query\n\t\tdelete requests[ id ];\n\t}\n\n\tif ( ! params.metaAPI ) {\n\t\tdebug( 'got %o status code for URL: %o', statusCode, params.path );\n\t} else {\n\t\tstatusCode = body === 'metaAPIupdated' ? 200 : 500;\n\t}\n\n\tif ( typeof headers === 'object' ) {\n\t\t// add statusCode into headers object\n\t\theaders.status = statusCode;\n\n\t\tif ( shouldProcessInStreamMode( headers[ 'Content-Type' ] ) ) {\n\t\t\tif ( statusCode === 207 ) {\n\t\t\t\tonStreamRecord( body );\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t}\n\n\tif ( statusCode && 2 === Math.floor( statusCode / 100 ) ) {\n\t\t// 2xx status code, success\n\t\tresolve( xhr, body, headers );\n\t} else {\n\t\t// any other status code is a failure\n\t\tconst wpe = WPError( params, statusCode, body );\n\t\treject( xhr, wpe, headers );\n\t}\n}\n\n/**\n * Returns true iff stream mode processing is required (see wpcom-xhr-request@1.2.0).\n *\n * @param {string} contentType response Content-Type header value\n */\nfunction shouldProcessInStreamMode( contentType ) {\n\treturn /^application[/]x-ndjson($|;)/.test( contentType );\n}\n\n/**\n * Handles a \"progress\" event being proxied back from the iframe page.\n *\n * @param {object} data\n */\n\nfunction onprogress( data ) {\n\tdebug( 'got \"progress\" event: %o', data );\n\tconst xhr = requests[ data.callbackId ];\n\tif ( xhr ) {\n\t\tconst prog = new ProgressEvent( 'progress', data );\n\t\tconst target = data.upload ? xhr.upload : xhr;\n\t\ttarget.dispatchEvent( prog );\n\t}\n}\n\n/**\n * Emits the \"load\" event on the `xhr`.\n *\n * @param {window.XMLHttpRequest} xhr\n * @param {object} body\n */\n\nfunction resolve( xhr, body, headers ) {\n\tconst e = new ProgressEvent( 'load' );\n\te.data = e.body = e.response = body;\n\te.headers = headers;\n\txhr.dispatchEvent( e );\n}\n\n/**\n * Emits the \"error\" event on the `xhr`.\n *\n * @param {window.XMLHttpRequest} xhr\n * @param {Error} err\n */\n\nfunction reject( xhr, err, headers ) {\n\tconst e = new ProgressEvent( 'error' );\n\te.error = e.err = err;\n\te.headers = headers;\n\txhr.dispatchEvent( e );\n}\n\n/**\n * Export `request` function.\n */\nexport default request;\nexport { reloadProxy };\n","/* eslint-env browser */\n\n/**\n * This is the web browser implementation of `debug()`.\n */\n\nexports.formatArgs = formatArgs;\nexports.save = save;\nexports.load = load;\nexports.useColors = useColors;\nexports.storage = localstorage();\nexports.destroy = (() => {\n\tlet warned = false;\n\n\treturn () => {\n\t\tif (!warned) {\n\t\t\twarned = true;\n\t\t\tconsole.warn('Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.');\n\t\t}\n\t};\n})();\n\n/**\n * Colors.\n */\n\nexports.colors = [\n\t'#0000CC',\n\t'#0000FF',\n\t'#0033CC',\n\t'#0033FF',\n\t'#0066CC',\n\t'#0066FF',\n\t'#0099CC',\n\t'#0099FF',\n\t'#00CC00',\n\t'#00CC33',\n\t'#00CC66',\n\t'#00CC99',\n\t'#00CCCC',\n\t'#00CCFF',\n\t'#3300CC',\n\t'#3300FF',\n\t'#3333CC',\n\t'#3333FF',\n\t'#3366CC',\n\t'#3366FF',\n\t'#3399CC',\n\t'#3399FF',\n\t'#33CC00',\n\t'#33CC33',\n\t'#33CC66',\n\t'#33CC99',\n\t'#33CCCC',\n\t'#33CCFF',\n\t'#6600CC',\n\t'#6600FF',\n\t'#6633CC',\n\t'#6633FF',\n\t'#66CC00',\n\t'#66CC33',\n\t'#9900CC',\n\t'#9900FF',\n\t'#9933CC',\n\t'#9933FF',\n\t'#99CC00',\n\t'#99CC33',\n\t'#CC0000',\n\t'#CC0033',\n\t'#CC0066',\n\t'#CC0099',\n\t'#CC00CC',\n\t'#CC00FF',\n\t'#CC3300',\n\t'#CC3333',\n\t'#CC3366',\n\t'#CC3399',\n\t'#CC33CC',\n\t'#CC33FF',\n\t'#CC6600',\n\t'#CC6633',\n\t'#CC9900',\n\t'#CC9933',\n\t'#CCCC00',\n\t'#CCCC33',\n\t'#FF0000',\n\t'#FF0033',\n\t'#FF0066',\n\t'#FF0099',\n\t'#FF00CC',\n\t'#FF00FF',\n\t'#FF3300',\n\t'#FF3333',\n\t'#FF3366',\n\t'#FF3399',\n\t'#FF33CC',\n\t'#FF33FF',\n\t'#FF6600',\n\t'#FF6633',\n\t'#FF9900',\n\t'#FF9933',\n\t'#FFCC00',\n\t'#FFCC33'\n];\n\n/**\n * Currently only WebKit-based Web Inspectors, Firefox >= v31,\n * and the Firebug extension (any Firefox version) are known\n * to support \"%c\" CSS customizations.\n *\n * TODO: add a `localStorage` variable to explicitly enable/disable colors\n */\n\n// eslint-disable-next-line complexity\nfunction useColors() {\n\t// NB: In an Electron preload script, document will be defined but not fully\n\t// initialized. Since we know we're in Chrome, we'll just detect this case\n\t// explicitly\n\tif (typeof window !== 'undefined' && window.process && (window.process.type === 'renderer' || window.process.__nwjs)) {\n\t\treturn true;\n\t}\n\n\t// Internet Explorer and Edge do not support colors.\n\tif (typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/(edge|trident)\\/(\\d+)/)) {\n\t\treturn false;\n\t}\n\n\t// Is webkit? http://stackoverflow.com/a/16459606/376773\n\t// document is undefined in react-native: https://github.com/facebook/react-native/pull/1632\n\treturn (typeof document !== 'undefined' && document.documentElement && document.documentElement.style && document.documentElement.style.WebkitAppearance) ||\n\t\t// Is firebug? http://stackoverflow.com/a/398120/376773\n\t\t(typeof window !== 'undefined' && window.console && (window.console.firebug || (window.console.exception && window.console.table))) ||\n\t\t// Is firefox >= v31?\n\t\t// https://developer.mozilla.org/en-US/docs/Tools/Web_Console#Styling_messages\n\t\t(typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/firefox\\/(\\d+)/) && parseInt(RegExp.$1, 10) >= 31) ||\n\t\t// Double check webkit in userAgent just in case we are in a worker\n\t\t(typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/applewebkit\\/(\\d+)/));\n}\n\n/**\n * Colorize log arguments if enabled.\n *\n * @api public\n */\n\nfunction formatArgs(args) {\n\targs[0] = (this.useColors ? '%c' : '') +\n\t\tthis.namespace +\n\t\t(this.useColors ? ' %c' : ' ') +\n\t\targs[0] +\n\t\t(this.useColors ? '%c ' : ' ') +\n\t\t'+' + module.exports.humanize(this.diff);\n\n\tif (!this.useColors) {\n\t\treturn;\n\t}\n\n\tconst c = 'color: ' + this.color;\n\targs.splice(1, 0, c, 'color: inherit');\n\n\t// The final \"%c\" is somewhat tricky, because there could be other\n\t// arguments passed either before or after the %c, so we need to\n\t// figure out the correct index to insert the CSS into\n\tlet index = 0;\n\tlet lastC = 0;\n\targs[0].replace(/%[a-zA-Z%]/g, match => {\n\t\tif (match === '%%') {\n\t\t\treturn;\n\t\t}\n\t\tindex++;\n\t\tif (match === '%c') {\n\t\t\t// We only are interested in the *last* %c\n\t\t\t// (the user may have provided their own)\n\t\t\tlastC = index;\n\t\t}\n\t});\n\n\targs.splice(lastC, 0, c);\n}\n\n/**\n * Invokes `console.debug()` when available.\n * No-op when `console.debug` is not a \"function\".\n * If `console.debug` is not available, falls back\n * to `console.log`.\n *\n * @api public\n */\nexports.log = console.debug || console.log || (() => {});\n\n/**\n * Save `namespaces`.\n *\n * @param {String} namespaces\n * @api private\n */\nfunction save(namespaces) {\n\ttry {\n\t\tif (namespaces) {\n\t\t\texports.storage.setItem('debug', namespaces);\n\t\t} else {\n\t\t\texports.storage.removeItem('debug');\n\t\t}\n\t} catch (error) {\n\t\t// Swallow\n\t\t// XXX (@Qix-) should we be logging these?\n\t}\n}\n\n/**\n * Load `namespaces`.\n *\n * @return {String} returns the previously persisted debug modes\n * @api private\n */\nfunction load() {\n\tlet r;\n\ttry {\n\t\tr = exports.storage.getItem('debug');\n\t} catch (error) {\n\t\t// Swallow\n\t\t// XXX (@Qix-) should we be logging these?\n\t}\n\n\t// If debug isn't set in LS, and we're in Electron, try to load $DEBUG\n\tif (!r && typeof process !== 'undefined' && 'env' in process) {\n\t\tr = process.env.DEBUG;\n\t}\n\n\treturn r;\n}\n\n/**\n * Localstorage attempts to return the localstorage.\n *\n * This is necessary because safari throws\n * when a user disables cookies/localstorage\n * and you attempt to access it.\n *\n * @return {LocalStorage}\n * @api private\n */\n\nfunction localstorage() {\n\ttry {\n\t\t// TVMLKit (Apple TV JS Runtime) does not have a window object, just localStorage in the global context\n\t\t// The Browser also has localStorage in the global context.\n\t\treturn localStorage;\n\t} catch (error) {\n\t\t// Swallow\n\t\t// XXX (@Qix-) should we be logging these?\n\t}\n}\n\nmodule.exports = require('./common')(exports);\n\nconst {formatters} = module.exports;\n\n/**\n * Map %j to `JSON.stringify()`, since no Web Inspectors do that by default.\n */\n\nformatters.j = function (v) {\n\ttry {\n\t\treturn JSON.stringify(v);\n\t} catch (error) {\n\t\treturn '[UnexpectedJSONParseError]: ' + error.message;\n\t}\n};\n","\n/**\n * This is the common logic for both the Node.js and web browser\n * implementations of `debug()`.\n */\n\nfunction setup(env) {\n\tcreateDebug.debug = createDebug;\n\tcreateDebug.default = createDebug;\n\tcreateDebug.coerce = coerce;\n\tcreateDebug.disable = disable;\n\tcreateDebug.enable = enable;\n\tcreateDebug.enabled = enabled;\n\tcreateDebug.humanize = require('ms');\n\tcreateDebug.destroy = destroy;\n\n\tObject.keys(env).forEach(key => {\n\t\tcreateDebug[key] = env[key];\n\t});\n\n\t/**\n\t* The currently active debug mode names, and names to skip.\n\t*/\n\n\tcreateDebug.names = [];\n\tcreateDebug.skips = [];\n\n\t/**\n\t* Map of special \"%n\" handling functions, for the debug \"format\" argument.\n\t*\n\t* Valid key names are a single, lower or upper-case letter, i.e. \"n\" and \"N\".\n\t*/\n\tcreateDebug.formatters = {};\n\n\t/**\n\t* Selects a color for a debug namespace\n\t* @param {String} namespace The namespace string for the debug instance to be colored\n\t* @return {Number|String} An ANSI color code for the given namespace\n\t* @api private\n\t*/\n\tfunction selectColor(namespace) {\n\t\tlet hash = 0;\n\n\t\tfor (let i = 0; i < namespace.length; i++) {\n\t\t\thash = ((hash << 5) - hash) + namespace.charCodeAt(i);\n\t\t\thash |= 0; // Convert to 32bit integer\n\t\t}\n\n\t\treturn createDebug.colors[Math.abs(hash) % createDebug.colors.length];\n\t}\n\tcreateDebug.selectColor = selectColor;\n\n\t/**\n\t* Create a debugger with the given `namespace`.\n\t*\n\t* @param {String} namespace\n\t* @return {Function}\n\t* @api public\n\t*/\n\tfunction createDebug(namespace) {\n\t\tlet prevTime;\n\t\tlet enableOverride = null;\n\t\tlet namespacesCache;\n\t\tlet enabledCache;\n\n\t\tfunction debug(...args) {\n\t\t\t// Disabled?\n\t\t\tif (!debug.enabled) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tconst self = debug;\n\n\t\t\t// Set `diff` timestamp\n\t\t\tconst curr = Number(new Date());\n\t\t\tconst ms = curr - (prevTime || curr);\n\t\t\tself.diff = ms;\n\t\t\tself.prev = prevTime;\n\t\t\tself.curr = curr;\n\t\t\tprevTime = curr;\n\n\t\t\targs[0] = createDebug.coerce(args[0]);\n\n\t\t\tif (typeof args[0] !== 'string') {\n\t\t\t\t// Anything else let's inspect with %O\n\t\t\t\targs.unshift('%O');\n\t\t\t}\n\n\t\t\t// Apply any `formatters` transformations\n\t\t\tlet index = 0;\n\t\t\targs[0] = args[0].replace(/%([a-zA-Z%])/g, (match, format) => {\n\t\t\t\t// If we encounter an escaped % then don't increase the array index\n\t\t\t\tif (match === '%%') {\n\t\t\t\t\treturn '%';\n\t\t\t\t}\n\t\t\t\tindex++;\n\t\t\t\tconst formatter = createDebug.formatters[format];\n\t\t\t\tif (typeof formatter === 'function') {\n\t\t\t\t\tconst val = args[index];\n\t\t\t\t\tmatch = formatter.call(self, val);\n\n\t\t\t\t\t// Now we need to remove `args[index]` since it's inlined in the `format`\n\t\t\t\t\targs.splice(index, 1);\n\t\t\t\t\tindex--;\n\t\t\t\t}\n\t\t\t\treturn match;\n\t\t\t});\n\n\t\t\t// Apply env-specific formatting (colors, etc.)\n\t\t\tcreateDebug.formatArgs.call(self, args);\n\n\t\t\tconst logFn = self.log || createDebug.log;\n\t\t\tlogFn.apply(self, args);\n\t\t}\n\n\t\tdebug.namespace = namespace;\n\t\tdebug.useColors = createDebug.useColors();\n\t\tdebug.color = createDebug.selectColor(namespace);\n\t\tdebug.extend = extend;\n\t\tdebug.destroy = createDebug.destroy; // XXX Temporary. Will be removed in the next major release.\n\n\t\tObject.defineProperty(debug, 'enabled', {\n\t\t\tenumerable: true,\n\t\t\tconfigurable: false,\n\t\t\tget: () => {\n\t\t\t\tif (enableOverride !== null) {\n\t\t\t\t\treturn enableOverride;\n\t\t\t\t}\n\t\t\t\tif (namespacesCache !== createDebug.namespaces) {\n\t\t\t\t\tnamespacesCache = createDebug.namespaces;\n\t\t\t\t\tenabledCache = createDebug.enabled(namespace);\n\t\t\t\t}\n\n\t\t\t\treturn enabledCache;\n\t\t\t},\n\t\t\tset: v => {\n\t\t\t\tenableOverride = v;\n\t\t\t}\n\t\t});\n\n\t\t// Env-specific initialization logic for debug instances\n\t\tif (typeof createDebug.init === 'function') {\n\t\t\tcreateDebug.init(debug);\n\t\t}\n\n\t\treturn debug;\n\t}\n\n\tfunction extend(namespace, delimiter) {\n\t\tconst newDebug = createDebug(this.namespace + (typeof delimiter === 'undefined' ? ':' : delimiter) + namespace);\n\t\tnewDebug.log = this.log;\n\t\treturn newDebug;\n\t}\n\n\t/**\n\t* Enables a debug mode by namespaces. This can include modes\n\t* separated by a colon and wildcards.\n\t*\n\t* @param {String} namespaces\n\t* @api public\n\t*/\n\tfunction enable(namespaces) {\n\t\tcreateDebug.save(namespaces);\n\t\tcreateDebug.namespaces = namespaces;\n\n\t\tcreateDebug.names = [];\n\t\tcreateDebug.skips = [];\n\n\t\tlet i;\n\t\tconst split = (typeof namespaces === 'string' ? namespaces : '').split(/[\\s,]+/);\n\t\tconst len = split.length;\n\n\t\tfor (i = 0; i < len; i++) {\n\t\t\tif (!split[i]) {\n\t\t\t\t// ignore empty strings\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tnamespaces = split[i].replace(/\\*/g, '.*?');\n\n\t\t\tif (namespaces[0] === '-') {\n\t\t\t\tcreateDebug.skips.push(new RegExp('^' + namespaces.slice(1) + '$'));\n\t\t\t} else {\n\t\t\t\tcreateDebug.names.push(new RegExp('^' + namespaces + '$'));\n\t\t\t}\n\t\t}\n\t}\n\n\t/**\n\t* Disable debug output.\n\t*\n\t* @return {String} namespaces\n\t* @api public\n\t*/\n\tfunction disable() {\n\t\tconst namespaces = [\n\t\t\t...createDebug.names.map(toNamespace),\n\t\t\t...createDebug.skips.map(toNamespace).map(namespace => '-' + namespace)\n\t\t].join(',');\n\t\tcreateDebug.enable('');\n\t\treturn namespaces;\n\t}\n\n\t/**\n\t* Returns true if the given mode name is enabled, false otherwise.\n\t*\n\t* @param {String} name\n\t* @return {Boolean}\n\t* @api public\n\t*/\n\tfunction enabled(name) {\n\t\tif (name[name.length - 1] === '*') {\n\t\t\treturn true;\n\t\t}\n\n\t\tlet i;\n\t\tlet len;\n\n\t\tfor (i = 0, len = createDebug.skips.length; i < len; i++) {\n\t\t\tif (createDebug.skips[i].test(name)) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\n\t\tfor (i = 0, len = createDebug.names.length; i < len; i++) {\n\t\t\tif (createDebug.names[i].test(name)) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\n\t\treturn false;\n\t}\n\n\t/**\n\t* Convert regexp to namespace\n\t*\n\t* @param {RegExp} regxep\n\t* @return {String} namespace\n\t* @api private\n\t*/\n\tfunction toNamespace(regexp) {\n\t\treturn regexp.toString()\n\t\t\t.substring(2, regexp.toString().length - 2)\n\t\t\t.replace(/\\.\\*\\?$/, '*');\n\t}\n\n\t/**\n\t* Coerce `val`.\n\t*\n\t* @param {Mixed} val\n\t* @return {Mixed}\n\t* @api private\n\t*/\n\tfunction coerce(val) {\n\t\tif (val instanceof Error) {\n\t\t\treturn val.stack || val.message;\n\t\t}\n\t\treturn val;\n\t}\n\n\t/**\n\t* XXX DO NOT USE. This is a temporary stub function.\n\t* XXX It WILL be removed in the next major release.\n\t*/\n\tfunction destroy() {\n\t\tconsole.warn('Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.');\n\t}\n\n\tcreateDebug.enable(createDebug.load());\n\n\treturn createDebug;\n}\n\nmodule.exports = setup;\n","'use strict';\nvar camelCase = require('camelcase');\n\nmodule.exports = function () {\n\tvar cased = camelCase.apply(camelCase, arguments);\n\treturn cased.charAt(0).toUpperCase() + cased.slice(1);\n};\n","'use strict';\nmodule.exports = function () {\n\tvar str = [].map.call(arguments, function (str) {\n\t\treturn str.trim();\n\t}).filter(function (str) {\n\t\treturn str.length;\n\t}).join('-');\n\n\tif (!str.length) {\n\t\treturn '';\n\t}\n\n\tif (str.length === 1 || !(/[_.\\- ]+/).test(str) ) {\n\t\tif (str[0] === str[0].toLowerCase() && str.slice(1) !== str.slice(1).toLowerCase()) {\n\t\t\treturn str;\n\t\t}\n\n\t\treturn str.toLowerCase();\n\t}\n\n\treturn str\n\t.replace(/^[_.\\- ]+/, '')\n\t.toLowerCase()\n\t.replace(/[_.\\- ]+(\\w|$)/g, function (m, p1) {\n\t\treturn p1.toUpperCase();\n\t});\n};\n","export default /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;","// Unique ID creation requires a high quality random # generator. In the browser we therefore\n// require the crypto API and do not support built-in fallback to lower quality random number\n// generators (like Math.random()).\nvar getRandomValues;\nvar rnds8 = new Uint8Array(16);\nexport default function rng() {\n // lazy load so that environments that need to polyfill have a chance to do so\n if (!getRandomValues) {\n // getRandomValues needs to be invoked in a context where \"this\" is a Crypto implementation. Also,\n // find the complete implementation of crypto (msCrypto) on IE11.\n getRandomValues = typeof crypto !== 'undefined' && crypto.getRandomValues && crypto.getRandomValues.bind(crypto) || typeof msCrypto !== 'undefined' && typeof msCrypto.getRandomValues === 'function' && msCrypto.getRandomValues.bind(msCrypto);\n\n if (!getRandomValues) {\n throw new Error('crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported');\n }\n }\n\n return getRandomValues(rnds8);\n}","import validate from './validate.js';\n/**\n * Convert array of 16 byte values to UUID string format of the form:\n * XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX\n */\n\nvar byteToHex = [];\n\nfor (var i = 0; i < 256; ++i) {\n byteToHex.push((i + 0x100).toString(16).substr(1));\n}\n\nfunction stringify(arr) {\n var offset = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;\n // Note: Be careful editing this code! It's been tuned for performance\n // and works in ways you may not expect. See https://github.com/uuidjs/uuid/pull/434\n var uuid = (byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + '-' + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + '-' + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + '-' + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + '-' + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]]).toLowerCase(); // Consistency check for valid UUID. If this throws, it's likely due to one\n // of the following:\n // - One or more input array values don't map to a hex octet (leading to\n // \"undefined\" in the uuid)\n // - Invalid input values for the RFC `version` or `variant` fields\n\n if (!validate(uuid)) {\n throw TypeError('Stringified UUID is invalid');\n }\n\n return uuid;\n}\n\nexport default stringify;","import rng from './rng.js';\nimport stringify from './stringify.js';\n\nfunction v4(options, buf, offset) {\n options = options || {};\n var rnds = options.random || (options.rng || rng)(); // Per 4.4, set bits for version and `clock_seq_hi_and_reserved`\n\n rnds[6] = rnds[6] & 0x0f | 0x40;\n rnds[8] = rnds[8] & 0x3f | 0x80; // Copy bytes to buffer, if provided\n\n if (buf) {\n offset = offset || 0;\n\n for (var i = 0; i < 16; ++i) {\n buf[offset + i] = rnds[i];\n }\n\n return buf;\n }\n\n return stringify(rnds);\n}\n\nexport default v4;","import REGEX from './regex.js';\n\nfunction validate(uuid) {\n return typeof uuid === 'string' && REGEX.test(uuid);\n}\n\nexport default validate;","var uppercamelcase = require('uppercamelcase');\nvar statusCodes = require('builtin-status-codes');\n\nmodule.exports = WPError;\n\nfunction WPError () {\n var self = new Error();\n\n for (var i = 0; i < arguments.length; i++) {\n process(self, arguments[i]);\n }\n\n if (typeof Error.captureStackTrace === 'function') {\n Error.captureStackTrace(self, WPError);\n }\n\n return self;\n}\n\nfunction process ( self, data ) {\n if ( ! data ) { \n return;\n }\n \n if (typeof data === 'number') {\n setStatusCode( self, data );\n\n } else {\n // assume it's a plain 'ol Object with some props to copy over\n if ( data.status_code ) {\n setStatusCode( self, data.status_code );\n }\n\n if ( data.error ) {\n self.name = toName( data.error );\n }\n\n if ( data.error_description ) {\n self.message = data.error_description;\n }\n\n var errors = data.errors;\n if ( errors ) {\n var first = errors.length ? errors[0] : errors;\n process( self, first );\n }\n\n for ( var i in data ) {\n self[i] = data[i];\n }\n\n if ( self.status && ( data.method || data.path ) ) {\n setStatusCodeMessage( self );\n }\n }\n}\n\nfunction setStatusCode ( self, code ) {\n self.name = toName( statusCodes[ code ] );\n self.status = self.statusCode = code;\n setStatusCodeMessage( self );\n}\n\nfunction setStatusCodeMessage ( self ) {\n var code = self.status;\n var method = self.method;\n var path = self.path;\n\n var m = code + ' status code';\n var extended = method || path;\n\n if ( extended ) m += ' for \"';\n if ( method ) m += method;\n if ( extended ) m += ' ';\n if ( path ) m += path;\n if ( extended ) m += '\"';\n\n self.message = m;\n}\n\nfunction toName ( str ) {\n return uppercamelcase( String(str).replace(/error$/i, ''), 'error' );\n}\n","module.exports = window[\"React\"];","module.exports = window[\"a8c-fse-common-data-stores\"];","module.exports = window[\"lodash\"];","module.exports = window[\"wp\"][\"apiFetch\"];","module.exports = window[\"wp\"][\"components\"];","module.exports = window[\"wp\"][\"compose\"];","module.exports = window[\"wp\"][\"data\"];","module.exports = window[\"wp\"][\"dataControls\"];","module.exports = window[\"wp\"][\"dom\"];","module.exports = window[\"wp\"][\"element\"];","module.exports = window[\"wp\"][\"hooks\"];","module.exports = window[\"wp\"][\"i18n\"];","module.exports = window[\"wp\"][\"notices\"];","module.exports = window[\"wp\"][\"nux\"];","module.exports = window[\"wp\"][\"plugins\"];","module.exports = window[\"wp\"][\"primitives\"];","module.exports = window[\"wp\"][\"url\"];","export default function _defineProperty(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n\n return obj;\n}","export default function _extends() {\n _extends = Object.assign || function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n\n return target;\n };\n\n return _extends.apply(this, arguments);\n}","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = function(module) {\n\tvar getter = module && module.__esModule ?\n\t\tfunction() { return module['default']; } :\n\t\tfunction() { return module; };\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = function(exports, definition) {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.g = (function() {\n\tif (typeof globalThis === 'object') return globalThis;\n\ttry {\n\t\treturn this || new Function('return this')();\n\t} catch (e) {\n\t\tif (typeof window === 'object') return window;\n\t}\n})();","__webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }","// define __esModule on exports\n__webpack_require__.r = function(exports) {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","var scriptUrl;\nif (__webpack_require__.g.importScripts) scriptUrl = __webpack_require__.g.location + \"\";\nvar document = __webpack_require__.g.document;\nif (!scriptUrl && document) {\n\tif (document.currentScript)\n\t\tscriptUrl = document.currentScript.src\n\tif (!scriptUrl) {\n\t\tvar scripts = document.getElementsByTagName(\"script\");\n\t\tif(scripts.length) scriptUrl = scripts[scripts.length - 1].src\n\t}\n}\n// When supporting browsers where an automatic publicPath is not supported you must specify an output.publicPath manually via configuration\n// or pass an empty string (\"\") and set the __webpack_public_path__ variable from your code to use your own logic.\nif (!scriptUrl) throw new Error(\"Automatic publicPath is not supported in this browser\");\nscriptUrl = scriptUrl.replace(/#.*$/, \"\").replace(/\\?.*$/, \"\").replace(/\\/[^\\/]+$/, \"/\");\n__webpack_require__.p = scriptUrl;","import { register } from './src/store';\n\nimport './src/disable-core-nux';\nimport './src/block-editor-nux';\n\nregister();\n"],"names":["DEFAULT_OPTIONS","placement","modifiers","strategy","areValidElements","_len","arguments","length","args","Array","_key","some","element","getBoundingClientRect","popperGenerator","generatorOptions","_generatorOptions","_generatorOptions$def","defaultModifiers","_generatorOptions$def2","defaultOptions","reference","popper","options","state","orderedModifiers","Object","assign","modifiersData","elements","attributes","styles","effectCleanupFns","isDestroyed","instance","setOptions","setOptionsAction","cleanupModifierEffects","scrollParents","contextElement","concat","filter","m","enabled","forEach","_ref3","name","_ref3$options","effect","cleanupFn","noopFn","push","update","forceUpdate","_state$elements","rects","reset","modifier","data","index","_state$orderedModifie","fn","_state$orderedModifie2","_options","Promise","resolve","destroy","then","onFirstUpdate","contains","parent","child","rootNode","getRootNode","next","isSameNode","parentNode","host","includeScale","rect","width","height","top","right","bottom","left","x","y","getClientRectFromMixedType","clippingParent","clientTop","clientLeft","clientHeight","clientWidth","getInnerBoundingClientRect","getClippingRect","boundary","rootBoundary","mainClippingParents","clippingParents","clipperElement","indexOf","position","getClippingParents","firstClippingParent","clippingRect","reduce","accRect","getCompositeRect","elementOrVirtualElement","offsetParent","isFixed","isOffsetParentAnElement","offsetParentIsScaled","scaleX","offsetWidth","scaleY","offsetHeight","isElementScaled","documentElement","scroll","scrollLeft","scrollTop","offsets","getComputedStyle","getDocumentElement","ownerDocument","document","window","getDocumentRect","_element$ownerDocumen","html","winScroll","body","scrollWidth","scrollHeight","direction","getHTMLElementScroll","getLayoutRect","clientRect","Math","abs","offsetLeft","offsetTop","getNodeName","nodeName","toLowerCase","getNodeScroll","node","getTrueOffsetParent","getOffsetParent","isFirefox","navigator","userAgent","currentNode","css","transform","perspective","contain","willChange","getContainingBlock","getParentNode","assignedSlot","getScrollParent","getViewportRect","win","visualViewport","test","getWindow","toString","defaultView","getWindowScroll","pageXOffset","pageYOffset","getWindowScrollBarX","isElement","Element","isHTMLElement","HTMLElement","isShadowRoot","ShadowRoot","isScrollParent","_getComputedStyle","overflow","overflowX","overflowY","isTableElement","listScrollParents","list","scrollParent","isBody","target","updatedList","auto","basePlacements","start","end","viewport","variationPlacements","acc","placements","modifierPhases","phase","_ref","keys","style","value","removeAttribute","setAttribute","_ref2","initialStyles","margin","arrow","hasOwnProperty","property","attribute","requires","_state$modifiersData$","arrowElement","popperOffsets","basePlacement","axis","len","paddingObject","padding","toPaddingObject","arrowRect","minProp","maxProp","endDiff","startDiff","arrowOffsetParent","clientSize","centerToReference","min","max","center","offset","axisProp","centerOffset","_options$element","querySelector","requiresIfExists","unsetSides","mapToStyles","_Object$assign2","popperRect","variation","gpuAcceleration","adaptive","roundOffsets","dpr","devicePixelRatio","roundOffsetsByDPR","_ref3$x","_ref3$y","hasX","hasY","sideX","sideY","heightProp","widthProp","_Object$assign","commonStyles","_ref4","_options$gpuAccelerat","_options$adaptive","_options$roundOffsets","passive","_options$scroll","_options$resize","resize","addEventListener","removeEventListener","_skip","_options$mainAxis","mainAxis","checkMainAxis","_options$altAxis","altAxis","checkAltAxis","specifiedFallbackPlacements","fallbackPlacements","altBoundary","_options$flipVariatio","flipVariations","allowedAutoPlacements","preferredPlacement","oppositePlacement","getExpandedFallbackPlacements","referenceRect","checksMap","Map","makeFallbackChecks","firstFittingPlacement","i","_basePlacement","isStartVariation","isVertical","mainVariationSide","altVariationSide","checks","every","check","set","_loop","_i","fittingPlacement","find","get","slice","getSideOffsets","preventedOffsets","isAnySideFullyClipped","side","preventOverflow","referenceOverflow","elementContext","popperAltOverflow","referenceClippingOffsets","popperEscapeOffsets","isReferenceHidden","hasPopperEscaped","_options$offset","invertDistance","skidding","distance","distanceAndSkiddingToXY","_data$state$placement","_options$tether","tether","_options$tetherOffset","tetherOffset","isBasePlacement","tetherOffsetValue","mainSide","altSide","additive","minLen","maxLen","arrowPaddingObject","arrowPaddingMin","arrowPaddingMax","arrowLen","minOffset","maxOffset","clientOffset","offsetModifierValue","tetherMin","tetherMax","preventedOffset","_mainSide","_altSide","_offset","_min","_max","_preventedOffset","createPopper","computeAutoPlacement","_options$allowedAutoP","allowedPlacements","overflows","sort","a","b","computeOffsets","commonX","commonY","debounce","pending","undefined","detectOverflow","_options$placement","_options$boundary","_options$rootBoundary","_options$elementConte","_options$altBoundary","_options$padding","altContext","clippingClientRect","referenceClientRect","popperClientRect","elementClientRect","overflowOffsets","offsetData","key","multiply","expandToHashMap","hashMap","getAltAxis","getBasePlacement","split","getFreshSideObject","getMainAxisFromPlacement","hash","getOppositePlacement","replace","matched","getOppositeVariationPlacement","getVariation","round","mergeByName","merged","current","existing","map","mergePaddingObject","order","visited","Set","result","add","dep","has","depModifier","orderModifiers","rectToClientRect","within","compile","expression","terms","variables","OPERATORS","c","evaluate","postfix","j","getOperatorResult","term","stack","pop","apply","earlyReturn","pluralForms","n","PRECEDENCE","OPENERS","TERMINATORS","PATTERN","match","operator","substr","trim","reverse","sprintf","string","isArray","precision","type","parseFloat","parseInt","toFixed","icon","size","props","cloneElement","close","createElement","SVG","xmlns","viewBox","Path","d","makeContextValue","i18n","__","bind","_x","_n","_nx","isRTL","hasTranslation","I18nContext","createContext","defaultI18n","useI18n","useContext","module","exports","hasOwn","classNames","classes","arg","argType","inner","prototype","call","join","default","decode","decodeURIComponent","encode","encodeURIComponent","pairSplitRegExp","fieldContentRegExp","tryDecode","str","e","s","h","w","plural","ms","msAbs","isPlural","val","String","exec","parse","isFinite","long","fmtLong","fmtShort","Error","JSON","stringify","ReflectOwnKeys","R","Reflect","ReflectApply","receiver","Function","ownKeys","getOwnPropertySymbols","getOwnPropertyNames","NumberIsNaN","Number","isNaN","EventEmitter","init","this","once","emitter","reject","errorListener","err","removeListener","resolver","eventTargetAgnosticAddListener","handler","flags","on","addErrorHandlerIfEventEmitter","_events","_eventsCount","_maxListeners","defaultMaxListeners","checkListener","listener","TypeError","_getMaxListeners","that","_addListener","prepend","events","warning","create","newListener","emit","unshift","warned","count","console","warn","onceWrapper","fired","wrapFn","_onceWrap","wrapped","_listeners","unwrap","evlistener","arr","ret","unwrapListeners","arrayClone","listenerCount","copy","wrapListener","defineProperty","enumerable","RangeError","getPrototypeOf","setMaxListeners","getMaxListeners","doError","error","er","message","context","listeners","addListener","prependListener","prependOnceListener","originalListener","shift","spliceOne","off","removeAllListeners","rawListeners","eventNames","utils","assert","BlockHash","pendingTotal","blockSize","constructor","outSize","hmacStrength","padLength","endian","_delta8","_delta32","msg","enc","toArray","r","join32","_update","digest","_pad","_digest","bytes","k","res","t","common","shaCommon","rotl32","sum32","sum32_5","ft_1","sha1_K","SHA1","W","inherits","toHex32","split32","sum32_4","ch32","maj32","s0_256","s1_256","g0_256","g1_256","sha256_K","SHA256","f","g","T1","T2","rotr32","z","p32","isSurrogatePair","charCodeAt","htonl","zero2","word","zero8","p","toHex","sum32_3","sum64","buf","pos","ah","al","bh","lo","hi","sum64_hi","bl","sum64_lo","sum64_4_hi","ch","cl","dh","dl","carry","sum64_4_lo","sum64_5_hi","eh","el","sum64_5_lo","rotr64_hi","num","rotr64_lo","shr64_hi","shr64_lo","ctor","superCtor","super_","writable","configurable","TempCtor","LRU","opts","cache","head","tail","maxAge","clear","remove","_unlink","prev","peek","_checkAge","modified","Date","now","evict","equal","l","NativeProgressEvent","ProgressEvent","useNative","createEvent","initEvent","lengthComputable","Boolean","loaded","total","createEventObject","hasElementType","hasMap","hasSet","hasArrayBuffer","ArrayBuffer","isView","it","entries","done","RegExp","source","valueOf","$$typeof","EMPTY_MODIFIERS","usePopper","referenceElement","popperElement","prevOptions","optionsWithDefaults","_React$useState","setState","updateStateModifier","popperOptions","newOptions","popperInstanceRef","popperInstance","fromEntries","useIsomorphicLayoutEffect","contextDelimiter","onMissingKey","Tannin","getPluralForm","domain","config","pf","plural_forms","parts","part","getPluralExpression","dcnpgettext","singular","entry","hasSeenSellerCelebrationModal","setHasSeenSellerCelebrationModal","useState","useEffect","apiFetch","path","has_seen_seller_celebration_modal","catch","updateHasSeenSellerCelebrationModal","method","finally","siteIntent","setSiteIntent","fetchSiteIntent","useCallback","site_intent","siteIdOrSlug","sitePlan","setSitePlan","fetchSite","async","siteObj","request","apiVersion","plan","WelcomeTour","showDraftPostModal","getQueryArg","location","href","show","isLoaded","variant","isManuallyOpened","isNewPageLayoutModalOpen","useSelect","select","welcomeGuideStoreSelect","starterPageLayoutsStoreSelect","isWelcomeGuideShown","isWelcomeGuideStatusLoaded","getWelcomeGuideVariant","isWelcomeGuideManuallyOpened","isOpen","setOpenState","useDispatch","fetchWelcomeGuideStatus","BLANK_CANVAS_VARIANT","DEFAULT_VARIANT","localeSlug","wpcomBlockEditorNuxLocale","i18nDefaultLocaleSlug","Guide","GuidePage","registerPlugin","render","unsubscribe","subscribe","dispatch","disableTips","isFeatureActive","toggleFeature","areTipsEnabled","setShowWelcomeGuide","openedManually","CLOSE_EDITOR_ACTION","siteId","_currentSiteId","primaryDomain","getPrimarySiteDomain","homeUrl","hostname","setIsOpen","closeModal","className","title","description","imageSrc","draftPostImage","actionButtons","Button","isPrimary","onClick","isSecondary","hasAction","doAction","onRequestClose","onOpen","recordTracksEvent","prevIsOpen","useRef","Modal","classnames","open","src","alt","link","getCurrentPost","postType","getCurrentPostType","isCurrentPostPublished","previousIsCurrentPostPublished","shouldShowFirstPostPublishedModal","getShouldShowFirstPostPublishedModal","fetchShouldShowFirstPostPublishedModal","setShouldShowFirstPostPublishedModal","setTimeout","postPublishedImage","event","preventDefault","wpcomBlockEditorNuxAssetsUrl","__webpack_public_path__","hasPaymentNotice","setHasPaymentNotice","createNotice","noticesStore","search","isDismissible","SellerCelebrationModalInner","addEntities","baseURL","kind","isModalOpen","setIsModalOpen","hasDisplayedModal","setHasDisplayedModal","isSiteEditor","previousIsEditorSaving","isEditorSaving","hasPaymentsBlock","linkUrl","isSavingSite","isSavingEntityRecord","isAutosavingEntityRecord","page","getPage","pageId","postId","isSavingEntity","pageEntity","getEntityRecord","content","raw","includes","currentPost","id","getGlobalBlockCount","intent","useSiteIntent","useHasSeenSellerCelebrationModal","contentSubmittedImage","rel","reducer","combineReducers","welcomeGuideManuallyOpened","action","showWelcomeGuide","response","show_welcome_guide","tourRating","welcomeGuideVariant","actions","apiFetchControls","should_show_first_post_published_modal","onlyLocal","setTourRating","setUsedPageOrPatternsModal","resetStore","selectors","getTourRating","register","registerStore","controls","persist","NuxPage","pageNumber","isLastPage","alignBottom","heading","imgSrc","slide_number","is_last_slide","is_gutenboarding","calypsoifyGutenberg","isGutenboarding","is_manually_opened","nuxPages","editorImage","blockPickerImage","previewImage","privateImage","contentLabel","finishButtonText","onFinish","nuxPage","useSitePlan","useLocale","isWelcomeTourNext","URLSearchParams","tourSteps","getTourSteps","product_slug","paymentBlockIndex","findIndex","step","slug","splice","isInserterOpened","isSidebarOpened","isSettingsOpened","getActiveComplementaryArea","isTourMinimized","isWithinBreakpoint","tourConfig","steps","closeHandler","_steps","currentStepIndex","isMinimized","useTourRating","onTourRate","rating","thumbs_up","callbacks","onMinimize","onMaximize","onStepViewOnce","lastStepIndex","meta","slide_heading","effects","spotlight","minWidth","minHeight","borderRadius","arrowIndicator","popperModifiers","useMemo","boundaryRect","portalParentElement","getElementById","usePrefetchTourAssets","getTourAssets","CDN_PREFIX","addBlock","desktop","mobile","allBlocks","finish","makeBold","moreOptions","moveBlock","findYourWay","undo","welcome","editYourSite","referencePositioning","descriptions","referenceElements","isMobile","ExternalLink","localizeUrl","createInterpolateElement","link_to_launch_site_docs","link_to_editor_docs","mostRecentUrlPath","EVENT_NAME_EXCEPTIONS","_superProps","_loadTracksResult","pushEventToTracksQueue","_tkq","loadScript","analyticsEvents","eventName","eventProperties","debug","startsWith","superProperties","omitBy","prop","debugFactory","activePageIndex","numberOfPages","onChange","children","times","disabled","I18N","decimal_point_translation_key","thousands_sep_translation_key","domain_key","translationLookup","hashCache","throwErrors","simpleArguments","normalizeTranslateArguments","original","single","getTranslationFromTannin","tannin","getTranslation","lookup","locale","defaultLocaleSlug","defaultPluralForms","numberFormatSettings","localeVariant","textDirection","translations","componentUpdateHooks","translateHooks","stateObserver","configure","numberFormat","number","decimals","decPoint","decimal_point","thousandsSep","thousands_sep","setLocale","localeData","keyHash","hashLength","lookupPrefix","sha1","generateLookup","fromCharCode","variableHashLengthPos","minHashLength","maxHashLength","momentjs_locale","getLocale","getLocaleSlug","getLocaleVariant","isRtl","addTranslations","messages","translate","translation","sprintfArgs","errorMethod","components","interpolateComponents","mixedString","hook","reRenderTranslations","registerComponentUpdateHook","callback","registerTranslateHook","number_format","dec_point","prec","sep","dec","pow","toFixedFix","localeContext","LocaleProvider","Provider","getWpI18nLocaleSlug","TARGET_LOCALES","lowerCaseLocale","mapWpI18nLangToLocaleSlug","language","fromProvider","providerHasLocale","fromWpI18n","setWpLocale","_currentUserLocale","createHigherOrderComponent","InnerComponent","innerProps","localesWithBlog","localesWithPrivacyPolicy","localesWithCookiePolicy","localesToSubdomains","br","zh","kr","supportSiteLocales","forumLocales","magnificentNonEnLocales","jetpackComLocales","INVALID_URL","getDefaultLocale","setLocalizedUrlHost","validLocales","url","pathname","setLocalizedWpComPath","prefix","limitPathMatch","prefixOrSuffixLocalizedUrlPath","prefixOrSuffix","endsWith","prefixLocalizedUrlPath","urlLocalizationMapping","isLoggedIn","suffixLocalizedUrlPath","fullUrl","URL","origin","protocol","firstPathSegment","useLocalizeUrl","providerLocale","buildChildren","tokens","openComponent","openIndex","token","closeIndex","openToken","nestLevel","getCloseIndex","grandChildren","clonedOpenComponent","siblings","Fragment","interpolate","tokenize","identifyToken","item","callbacksForURLsInProgress","getCallbacksMap","isLoading","addScriptCallback","callbacksMap","executeCallbacks","callbacksForUrl","cb","delete","handleRequestSuccess","getAttribute","onload","handleRequestError","onerror","createScriptElement","script","attachToHead","appendChild","onDismiss","onNextStepProgression","onPreviousStepProgression","tourContainerRef","useFocusHandler","useKeydownHandler","onEscape","onArrowRight","onArrowLeft","useFocusTrap","TourKitContext","useTourKitContext","handleCallback","setCurrentStepIndex","initialFocusedElement","setInitialFocusedElement","setIsMinimized","setPopperElement","tourReady","setTourReady","useMobileBreakpoint","referenceElementSelector","showArrowIndicator","showSpotlight","showOverlay","overlay","handleDismiss","handleNextStepProgression","onNextStep","handlePreviousStepProgression","onPreviousStep","handleGoToStep","stepIndex","onGoToStep","handleMinimize","handleMaximize","popperStyles","popperAttributes","popperUpdate","liveResizeModifier","liveResize","stepRepositionProps","arrowPositionProps","focus","autoScroll","scrollIntoView","classParser","useStepTracking","ref","visible","renderers","tourMinimized","SpotlightInteractivity","rootElementSelector","SPOTLIT_ELEMENT_CLASS","interactivity","sePopperElement","clipDimensions","clipRepositionProps","classList","tourStep","__temp__className","portalParent","removeChild","createPortal","ErrorBoundary","React","hasError","componentDidCatch","errorInfo","hasFocus","setHasFocus","handleFocus","activeElement","handleMousedown","handleKeyup","firstFocusableElement","setFirstFocusableElement","lastFocusableElement","setLastFocusableElement","handleTrapFocus","handled","shiftKey","stopPropagation","focusableElements","handleKeydown","stepsViewed","setStepsViewed","mutation","arg0","ObserversProp","Symbol","resizeObserver","ResizeObserver","mutationObserver","MutationObserver","observe","rootElementNode","characterData","childList","subtree","disconnect","Flex","gap","__i18n_text_domain__","span","maximize","tempRating","setTempRating","isDisabled","rateTour","isThumbsUp","active","thumbsUp","iconSize","thumbsDown","isFirstStep","isTertiary","label","minimize","isLastStep","mediaQueryList","getMediaQueryList","MOBILE_BREAKPOINT","Card","isElevated","CardMedia","srcSet","media","CardBody","CardFooter","WpcomTourKitStep","WpcomTourKitMinimized","Image","fill","fillRule","clipRule","useBreakpoint","breakpoint","isActive","subscribeIsWithinBreakpoint","prevState","WrappedComponent","forwardRef","isBreakpointActive","DESKTOP_BREAKPOINT","SERVER_WIDTH","isServer","matchMedia","noop","addListenerFunctions","obj","createMediaQueryList","matches","mediaQueryLists","wrappedListener","evt","proxyOrigin","onStreamRecord","postStrings","postMessage","supportsFileConstructor","File","buffered","iframe","requests","supportsProgress","FormData","makeRequest","originalParams","params","install","uuidv4","supports_args","supports_error_obj","supports_progress","toUpperCase","xhr","XMLHttpRequest","called","xhrOnLoad","headers","xhrOnError","submitRequest","rej","formData","chrome","getFileValue","patchFileObjects","contentWindow","isFile","v","fileContents","onmessage","display","upload","download","callbackId","prog","dispatchEvent","onprogress","statusCode","contentType","metaAPI","status","floor","WPError","formatArgs","useColors","namespace","humanize","diff","color","lastC","save","namespaces","storage","setItem","removeItem","load","getItem","process","env","DEBUG","__nwjs","WebkitAppearance","firebug","exception","table","$1","localStorage","localstorage","colors","log","require","formatters","createDebug","prevTime","namespacesCache","enabledCache","enableOverride","self","curr","coerce","format","formatter","logFn","selectColor","extend","delimiter","newDebug","toNamespace","regexp","substring","disable","names","skips","enable","camelCase","cased","charAt","p1","getRandomValues","rnds8","Uint8Array","rng","crypto","msCrypto","byteToHex","uuid","rnds","random","uppercamelcase","statusCodes","setStatusCode","status_code","toName","error_description","errors","setStatusCodeMessage","code","extended","captureStackTrace","_defineProperty","_extends","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","__webpack_modules__","getter","__esModule","definition","o","globalThis","toStringTag","scriptUrl","importScripts","currentScript","scripts","getElementsByTagName"],"sourceRoot":""}
|
1 |
+
{"version":3,"file":"wpcom-block-editor-nux.min.js","mappings":"yKAgBIA,EAAkB,CACpBC,UAAW,SACXC,UAAW,GACXC,SAAU,YAGZ,SAASC,IACP,IAAK,IAAIC,EAAOC,UAAUC,OAAQC,EAAO,IAAIC,MAAMJ,GAAOK,EAAO,EAAGA,EAAOL,EAAMK,IAC/EF,EAAKE,GAAQJ,UAAUI,GAGzB,OAAQF,EAAKG,MAAK,SAAUC,GAC1B,QAASA,GAAoD,mBAAlCA,EAAQC,0BAIhC,SAASC,EAAgBC,QACL,IAArBA,IACFA,EAAmB,IAGrB,IAAIC,EAAoBD,EACpBE,EAAwBD,EAAkBE,iBAC1CA,OAA6C,IAA1BD,EAAmC,GAAKA,EAC3DE,EAAyBH,EAAkBI,eAC3CA,OAA4C,IAA3BD,EAAoCnB,EAAkBmB,EAC3E,OAAO,SAAsBE,EAAWC,EAAQC,QAC9B,IAAZA,IACFA,EAAUH,GAGZ,IAAII,EAAQ,CACVvB,UAAW,SACXwB,iBAAkB,GAClBF,QAASG,OAAOC,OAAO,GAAI3B,EAAiBoB,GAC5CQ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AA0B,iBAAfq2B,WAAyB,OAAOA,WAC3C,IACC,OAAO39B,MAAQ,IAAIT,SAAS,cAAb,GACd,MAAOxB,GACR,GAAsB,iBAAXjX,OAAqB,OAAOA,QALjB,GCAxBq2C,EAAoBO,EAAI,SAAS9I,EAAK1T,GAAQ,OAAO1gC,OAAO2c,UAAUhR,eAAeiR,KAAKw3B,EAAK1T,ICC/Fic,EAAoB73B,EAAI,SAAS1I,GACX,oBAAXo0B,QAA0BA,OAAO4M,aAC1Cp9C,OAAOyiB,eAAerG,EAASo0B,OAAO4M,YAAa,CAAEhyC,MAAO,WAE7DpL,OAAOyiB,eAAerG,EAAS,aAAc,CAAEhR,OAAO,K,WCLvD,IAAIiyC,EACAV,EAAoB71B,EAAEw2B,gBAAeD,EAAYV,EAAoB71B,EAAE+J,SAAW,IACtF,IAAIxqB,EAAWs2C,EAAoB71B,EAAEzgB,SACrC,IAAKg3C,GAAah3C,IACbA,EAASk3C,gBACZF,EAAYh3C,EAASk3C,cAAc1oB,MAC/BwoB,GAAW,CACf,IAAIG,EAAUn3C,EAASo3C,qBAAqB,UACzCD,EAAQ3+C,SAAQw+C,EAAYG,EAAQA,EAAQ3+C,OAAS,GAAGg2B,KAK7D,IAAKwoB,EAAW,MAAM,IAAI9+B,MAAM,yDAChC8+B,EAAYA,EAAUnmC,QAAQ,OAAQ,IAAIA,QAAQ,QAAS,IAAIA,QAAQ,YAAa,KACpFylC,EAAoBj1B,EAAI21B,E,2ECVxBxjB,EAAAA,EAAAA,M","sources":["webpack://EditingToolkit/../../node_modules/@popperjs/core/lib/createPopper.js","webpack://EditingToolkit/../../node_modules/@popperjs/core/lib/dom-utils/contains.js","webpack://EditingToolkit/../../node_modules/@popperjs/core/lib/dom-utils/getBoundingClientRect.js","webpack://EditingToolkit/../../node_modules/@popperjs/core/lib/dom-utils/getClippingRect.js","webpack://EditingToolkit/../../node_modules/@popperjs/core/lib/dom-utils/getCompositeRect.js","webpack://EditingToolkit/../../node_modules/@popperjs/core/lib/dom-utils/getComputedStyle.js","webpack://EditingToolkit/../../node_modules/@popperjs/core/lib/dom-utils/getDocumentElement.js","webpack://EditingToolkit/../../node_modules/@popperjs/core/lib/dom-utils/getDocumentRect.js","webpack://EditingToolkit/../../node_modules/@popperjs/core/lib/dom-utils/getHTMLElementScroll.js","webpack://EditingToolkit/../../node_modules/@popperjs/core/lib/dom-utils/getLayoutRect.js","webpack://EditingToolkit/../../node_modules/@popperjs/core/lib/dom-utils/getNodeName.js","webpack://EditingToolkit/../../node_modules/@popperjs/core/lib/dom-utils/getNodeScroll.js","webpack://EditingToolkit/../../node_modules/@popperjs/core/lib/dom-utils/getOffsetParent.js","webpack://EditingToolkit/../../node_modules/@popperjs/core/lib/dom-utils/getParentNode.js","webpack://EditingToolkit/../../node_modules/@popperjs/core/lib/dom-utils/getScrollParent.js","webpack://EditingToolkit/../../node_modules/@popperjs/core/lib/dom-utils/getViewportRect.js","webpack://EditingToolkit/../../node_modules/@popperjs/core/lib/dom-utils/getWindow.js","webpack://EditingToolkit/../../node_modules/@popperjs/core/lib/dom-utils/getWindowScroll.js","webpack://EditingToolkit/../../node_modules/@popperjs/core/lib/dom-utils/getWindowScrollBarX.js","webpack://EditingToolkit/../../node_modules/@popperjs/core/lib/dom-utils/instanceOf.js","webpack://EditingToolkit/../../node_modules/@popperjs/core/lib/dom-utils/isScrollParent.js","webpack://EditingToolkit/../../node_modules/@popperjs/core/lib/dom-utils/isTableElement.js","webpack://EditingToolkit/../../node_modules/@popperjs/core/lib/dom-utils/listScrollParents.js","webpack://EditingToolkit/../../node_modules/@popperjs/core/lib/enums.js","webpack://EditingToolkit/../../node_modules/@popperjs/core/lib/modifiers/applyStyles.js","webpack://EditingToolkit/../../node_modules/@popperjs/core/lib/modifiers/arrow.js","webpack://EditingToolkit/../../node_modules/@popperjs/core/lib/modifiers/computeStyles.js","webpack://EditingToolkit/../../node_modules/@popperjs/core/lib/modifiers/eventListeners.js","webpack://EditingToolkit/../../node_modules/@popperjs/core/lib/modifiers/flip.js","webpack://EditingToolkit/../../node_modules/@popperjs/core/lib/modifiers/hide.js","webpack://EditingToolkit/../../node_modules/@popperjs/core/lib/modifiers/offset.js","webpack://EditingToolkit/../../node_modules/@popperjs/core/lib/modifiers/popperOffsets.js","webpack://EditingToolkit/../../node_modules/@popperjs/core/lib/modifiers/preventOverflow.js","webpack://EditingToolkit/../../node_modules/@popperjs/core/lib/popper.js","webpack://EditingToolkit/../../node_modules/@popperjs/core/lib/utils/computeAutoPlacement.js","webpack://EditingToolkit/../../node_modules/@popperjs/core/lib/utils/computeOffsets.js","webpack://EditingToolkit/../../node_modules/@popperjs/core/lib/utils/debounce.js","webpack://EditingToolkit/../../node_modules/@popperjs/core/lib/utils/detectOverflow.js","webpack://EditingToolkit/../../node_modules/@popperjs/core/lib/utils/expandToHashMap.js","webpack://EditingToolkit/../../node_modules/@popperjs/core/lib/utils/getAltAxis.js","webpack://EditingToolkit/../../node_modules/@popperjs/core/lib/utils/getBasePlacement.js","webpack://EditingToolkit/../../node_modules/@popperjs/core/lib/utils/getFreshSideObject.js","webpack://EditingToolkit/../../node_modules/@popperjs/core/lib/utils/getMainAxisFromPlacement.js","webpack://EditingToolkit/../../node_modules/@popperjs/core/lib/utils/getOppositePlacement.js","webpack://EditingToolkit/../../node_modules/@popperjs/core/lib/utils/getOppositeVariationPlacement.js","webpack://EditingToolkit/../../node_modules/@popperjs/core/lib/utils/getVariation.js","webpack://EditingToolkit/../../node_modules/@popperjs/core/lib/utils/math.js","webpack://EditingToolkit/../../node_modules/@popperjs/core/lib/utils/mergeByName.js","webpack://EditingToolkit/../../node_modules/@popperjs/core/lib/utils/mergePaddingObject.js","webpack://EditingToolkit/../../node_modules/@popperjs/core/lib/utils/orderModifiers.js","webpack://EditingToolkit/../../node_modules/@popperjs/core/lib/utils/rectToClientRect.js","webpack://EditingToolkit/../../node_modules/@popperjs/core/lib/utils/within.js","webpack://EditingToolkit/../../node_modules/@tannin/compile/index.js","webpack://EditingToolkit/../../node_modules/@tannin/evaluate/index.js","webpack://EditingToolkit/../../node_modules/@tannin/plural-forms/index.js","webpack://EditingToolkit/../../node_modules/@tannin/postfix/index.js","webpack://EditingToolkit/../../node_modules/@tannin/sprintf/index.js","webpack://EditingToolkit/../../node_modules/@wordpress/icons/build-module/icon/index.js","webpack://EditingToolkit/../../node_modules/@wordpress/icons/build-module/library/close.js","webpack://EditingToolkit/../../node_modules/@wordpress/react-i18n/build-module/index.js","webpack://EditingToolkit/../../node_modules/builtin-status-codes/browser.js","webpack://EditingToolkit/../../node_modules/classnames/index.js","webpack://EditingToolkit/../../node_modules/cookie/index.js","webpack://EditingToolkit/../../node_modules/debug/node_modules/ms/index.js","webpack://EditingToolkit/../../node_modules/events/events.js","webpack://EditingToolkit/../../node_modules/hash.js/lib/hash/common.js","webpack://EditingToolkit/../../node_modules/hash.js/lib/hash/sha/1.js","webpack://EditingToolkit/../../node_modules/hash.js/lib/hash/sha/256.js","webpack://EditingToolkit/../../node_modules/hash.js/lib/hash/sha/common.js","webpack://EditingToolkit/../../node_modules/hash.js/lib/hash/utils.js","webpack://EditingToolkit/../../node_modules/inherits/inherits_browser.js","webpack://EditingToolkit/../../node_modules/lru/index.js","webpack://EditingToolkit/../../node_modules/minimalistic-assert/index.js","webpack://EditingToolkit/../../node_modules/progress-event/index.js","webpack://EditingToolkit/../../node_modules/react-fast-compare/index.js","webpack://EditingToolkit/../../node_modules/react-popper/lib/esm/usePopper.js","webpack://EditingToolkit/../../node_modules/react-popper/lib/esm/utils.js","webpack://EditingToolkit/../../node_modules/tannin/index.js","webpack://EditingToolkit/./editing-toolkit-plugin/dotcom-fse/lib/seller-celebration-modal/use-has-seen-seller-celebration-modal.js","webpack://EditingToolkit/./editing-toolkit-plugin/dotcom-fse/lib/seller-celebration-modal/use-has-selected-payment-block-once.js","webpack://EditingToolkit/./editing-toolkit-plugin/dotcom-fse/lib/site-intent/use-site-intent.js","webpack://EditingToolkit/./editing-toolkit-plugin/dotcom-fse/lib/site-plan/use-site-plan.ts","webpack://EditingToolkit/./editing-toolkit-plugin/wpcom-block-editor-nux/src/block-editor-nux.js","webpack://EditingToolkit/./editing-toolkit-plugin/wpcom-block-editor-nux/src/disable-core-nux.js","webpack://EditingToolkit/./editing-toolkit-plugin/wpcom-block-editor-nux/src/draft-post-modal/index.js","webpack://EditingToolkit/./editing-toolkit-plugin/wpcom-block-editor-nux/src/nux-modal/index.tsx","webpack://EditingToolkit/./editing-toolkit-plugin/wpcom-block-editor-nux/src/post-published-modal/index.tsx","webpack://EditingToolkit/./editing-toolkit-plugin/wpcom-block-editor-nux/src/public-path.js","webpack://EditingToolkit/./editing-toolkit-plugin/wpcom-block-editor-nux/src/purchase-notice/index.jsx","webpack://EditingToolkit/./editing-toolkit-plugin/wpcom-block-editor-nux/src/seller-celebration-modal/index.jsx","webpack://EditingToolkit/./editing-toolkit-plugin/wpcom-block-editor-nux/src/store.js","webpack://EditingToolkit/./editing-toolkit-plugin/wpcom-block-editor-nux/src/welcome-modal/wpcom-nux.js","webpack://EditingToolkit/./editing-toolkit-plugin/wpcom-block-editor-nux/src/welcome-tour/tour-launch.tsx","webpack://EditingToolkit/./editing-toolkit-plugin/wpcom-block-editor-nux/src/welcome-tour/tour-steps.tsx","webpack://EditingToolkit/../../packages/calypso-analytics/src/page-view-params.ts","webpack://EditingToolkit/../../packages/calypso-analytics/src/tracks.ts","webpack://EditingToolkit/../../packages/calypso-analytics/src/utils/debug.ts","webpack://EditingToolkit/../../packages/components/src/pagination-control/index.tsx","webpack://EditingToolkit/../../packages/i18n-calypso/src/default-i18n.js","webpack://EditingToolkit/../../packages/i18n-calypso/src/i18n.js","webpack://EditingToolkit/../../packages/i18n-calypso/src/index.js","webpack://EditingToolkit/../../packages/i18n-calypso/src/number-format.js","webpack://EditingToolkit/../../packages/i18n-utils/src/locale-context.tsx","webpack://EditingToolkit/../../packages/i18n-utils/src/locales.ts","webpack://EditingToolkit/../../packages/i18n-utils/src/localize-url.tsx","webpack://EditingToolkit/../../packages/interpolate-components/src/index.js","webpack://EditingToolkit/../../packages/interpolate-components/src/tokenize.js","webpack://EditingToolkit/../../packages/load-script/src/callback-handler.js","webpack://EditingToolkit/../../packages/load-script/src/dom-operations.js","webpack://EditingToolkit/../../packages/load-script/src/index.js","webpack://EditingToolkit/../../packages/tour-kit/src/components/keyboard-navigation.tsx","webpack://EditingToolkit/../../packages/tour-kit/src/components/tour-kit-context.tsx","webpack://EditingToolkit/../../packages/tour-kit/src/components/tour-kit-frame.tsx","webpack://EditingToolkit/../../packages/tour-kit/src/components/tour-kit-minimized.tsx","webpack://EditingToolkit/../../packages/tour-kit/src/components/tour-kit-overlay.tsx","webpack://EditingToolkit/../../packages/tour-kit/src/components/tour-kit-spotlight-interactivity.tsx","webpack://EditingToolkit/../../packages/tour-kit/src/components/tour-kit-spotlight.tsx","webpack://EditingToolkit/../../packages/tour-kit/src/components/tour-kit-step.tsx","webpack://EditingToolkit/../../packages/tour-kit/src/components/tour-kit.tsx","webpack://EditingToolkit/../../packages/tour-kit/src/error-boundary.tsx","webpack://EditingToolkit/../../packages/tour-kit/src/hooks/use-focus-handler.ts","webpack://EditingToolkit/../../packages/tour-kit/src/hooks/use-focus-trap.ts","webpack://EditingToolkit/../../packages/tour-kit/src/hooks/use-keydown-handler.ts","webpack://EditingToolkit/../../packages/tour-kit/src/hooks/use-step-tracking.ts","webpack://EditingToolkit/../../packages/tour-kit/src/utils/index.ts","webpack://EditingToolkit/../../packages/tour-kit/src/utils/live-resize-modifier.tsx","webpack://EditingToolkit/../../packages/tour-kit/src/variants/wpcom/components/wpcom-tour-kit-minimized.tsx","webpack://EditingToolkit/../../packages/tour-kit/src/variants/wpcom/components/wpcom-tour-kit-rating.tsx","webpack://EditingToolkit/../../packages/tour-kit/src/variants/wpcom/components/wpcom-tour-kit-step-card-navigation.tsx","webpack://EditingToolkit/../../packages/tour-kit/src/variants/wpcom/components/wpcom-tour-kit-step-card-overlay-controls.tsx","webpack://EditingToolkit/../../packages/tour-kit/src/variants/wpcom/components/wpcom-tour-kit-step-card.tsx","webpack://EditingToolkit/../../packages/tour-kit/src/variants/wpcom/components/wpcom-tour-kit-step.tsx","webpack://EditingToolkit/../../packages/tour-kit/src/variants/wpcom/components/wpcom-tour-kit.tsx","webpack://EditingToolkit/../../packages/tour-kit/src/variants/wpcom/hooks/use-prefetch-tour-assets.tsx","webpack://EditingToolkit/../../packages/tour-kit/src/variants/wpcom/icons/maximize.tsx","webpack://EditingToolkit/../../packages/tour-kit/src/variants/wpcom/icons/minimize.tsx","webpack://EditingToolkit/../../packages/tour-kit/src/variants/wpcom/icons/thumbs_down.tsx","webpack://EditingToolkit/../../packages/tour-kit/src/variants/wpcom/icons/thumbs_up.tsx","webpack://EditingToolkit/../../packages/viewport-react/src/index.js","webpack://EditingToolkit/../../packages/viewport/src/index.ts","webpack://EditingToolkit/../../packages/wpcom-proxy-request/src/index.js","webpack://EditingToolkit/../../node_modules/debug/src/browser.js","webpack://EditingToolkit/../../node_modules/debug/src/common.js","webpack://EditingToolkit/../../node_modules/uppercamelcase/index.js","webpack://EditingToolkit/../../node_modules/uppercamelcase/node_modules/camelcase/index.js","webpack://EditingToolkit/../../node_modules/uuid/dist/esm-browser/regex.js","webpack://EditingToolkit/../../node_modules/uuid/dist/esm-browser/rng.js","webpack://EditingToolkit/../../node_modules/uuid/dist/esm-browser/stringify.js","webpack://EditingToolkit/../../node_modules/uuid/dist/esm-browser/v4.js","webpack://EditingToolkit/../../node_modules/uuid/dist/esm-browser/validate.js","webpack://EditingToolkit/../../node_modules/wp-error/index.js","webpack://EditingToolkit/external window \"React\"","webpack://EditingToolkit/external window \"a8c-fse-common-data-stores\"","webpack://EditingToolkit/external window \"lodash\"","webpack://EditingToolkit/external window [\"wp\",\"apiFetch\"]","webpack://EditingToolkit/external window [\"wp\",\"components\"]","webpack://EditingToolkit/external window [\"wp\",\"compose\"]","webpack://EditingToolkit/external window [\"wp\",\"data\"]","webpack://EditingToolkit/external window [\"wp\",\"dataControls\"]","webpack://EditingToolkit/external window [\"wp\",\"dom\"]","webpack://EditingToolkit/external window [\"wp\",\"element\"]","webpack://EditingToolkit/external window [\"wp\",\"hooks\"]","webpack://EditingToolkit/external window [\"wp\",\"i18n\"]","webpack://EditingToolkit/external window [\"wp\",\"notices\"]","webpack://EditingToolkit/external window [\"wp\",\"nux\"]","webpack://EditingToolkit/external window [\"wp\",\"plugins\"]","webpack://EditingToolkit/external window [\"wp\",\"primitives\"]","webpack://EditingToolkit/external window [\"wp\",\"url\"]","webpack://EditingToolkit/../../node_modules/@babel/runtime/helpers/esm/defineProperty.js","webpack://EditingToolkit/../../node_modules/@babel/runtime/helpers/esm/extends.js","webpack://EditingToolkit/webpack/bootstrap","webpack://EditingToolkit/webpack/runtime/compat get default export","webpack://EditingToolkit/webpack/runtime/define property getters","webpack://EditingToolkit/webpack/runtime/global","webpack://EditingToolkit/webpack/runtime/hasOwnProperty shorthand","webpack://EditingToolkit/webpack/runtime/make namespace object","webpack://EditingToolkit/webpack/runtime/publicPath","webpack://EditingToolkit/./editing-toolkit-plugin/wpcom-block-editor-nux/index.js"],"sourcesContent":["import getCompositeRect from \"./dom-utils/getCompositeRect.js\";\nimport getLayoutRect from \"./dom-utils/getLayoutRect.js\";\nimport listScrollParents from \"./dom-utils/listScrollParents.js\";\nimport getOffsetParent from \"./dom-utils/getOffsetParent.js\";\nimport getComputedStyle from \"./dom-utils/getComputedStyle.js\";\nimport orderModifiers from \"./utils/orderModifiers.js\";\nimport debounce from \"./utils/debounce.js\";\nimport validateModifiers from \"./utils/validateModifiers.js\";\nimport uniqueBy from \"./utils/uniqueBy.js\";\nimport getBasePlacement from \"./utils/getBasePlacement.js\";\nimport mergeByName from \"./utils/mergeByName.js\";\nimport detectOverflow from \"./utils/detectOverflow.js\";\nimport { isElement } from \"./dom-utils/instanceOf.js\";\nimport { auto } from \"./enums.js\";\nvar INVALID_ELEMENT_ERROR = 'Popper: Invalid reference or popper argument provided. They must be either a DOM element or virtual element.';\nvar INFINITE_LOOP_ERROR = 'Popper: An infinite loop in the modifiers cycle has been detected! The cycle has been interrupted to prevent a browser crash.';\nvar DEFAULT_OPTIONS = {\n placement: 'bottom',\n modifiers: [],\n strategy: 'absolute'\n};\n\nfunction areValidElements() {\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n return !args.some(function (element) {\n return !(element && typeof element.getBoundingClientRect === 'function');\n });\n}\n\nexport function popperGenerator(generatorOptions) {\n if (generatorOptions === void 0) {\n generatorOptions = {};\n }\n\n var _generatorOptions = generatorOptions,\n _generatorOptions$def = _generatorOptions.defaultModifiers,\n defaultModifiers = _generatorOptions$def === void 0 ? [] : _generatorOptions$def,\n _generatorOptions$def2 = _generatorOptions.defaultOptions,\n defaultOptions = _generatorOptions$def2 === void 0 ? DEFAULT_OPTIONS : _generatorOptions$def2;\n return function createPopper(reference, popper, options) {\n if (options === void 0) {\n options = defaultOptions;\n }\n\n var state = {\n placement: 'bottom',\n orderedModifiers: [],\n options: Object.assign({}, DEFAULT_OPTIONS, defaultOptions),\n modifiersData: {},\n elements: {\n reference: reference,\n popper: popper\n },\n attributes: {},\n styles: {}\n };\n var effectCleanupFns = [];\n var isDestroyed = false;\n var instance = {\n state: state,\n setOptions: function setOptions(setOptionsAction) {\n var options = typeof setOptionsAction === 'function' ? setOptionsAction(state.options) : setOptionsAction;\n cleanupModifierEffects();\n state.options = Object.assign({}, defaultOptions, state.options, options);\n state.scrollParents = {\n reference: isElement(reference) ? listScrollParents(reference) : reference.contextElement ? listScrollParents(reference.contextElement) : [],\n popper: listScrollParents(popper)\n }; // Orders the modifiers based on their dependencies and `phase`\n // properties\n\n var orderedModifiers = orderModifiers(mergeByName([].concat(defaultModifiers, state.options.modifiers))); // Strip out disabled modifiers\n\n state.orderedModifiers = orderedModifiers.filter(function (m) {\n return m.enabled;\n }); // Validate the provided modifiers so that the consumer will get warned\n // if one of the modifiers is invalid for any reason\n\n if (process.env.NODE_ENV !== \"production\") {\n var modifiers = uniqueBy([].concat(orderedModifiers, state.options.modifiers), function (_ref) {\n var name = _ref.name;\n return name;\n });\n validateModifiers(modifiers);\n\n if (getBasePlacement(state.options.placement) === auto) {\n var flipModifier = state.orderedModifiers.find(function (_ref2) {\n var name = _ref2.name;\n return name === 'flip';\n });\n\n if (!flipModifier) {\n console.error(['Popper: \"auto\" placements require the \"flip\" modifier be', 'present and enabled to work.'].join(' '));\n }\n }\n\n var _getComputedStyle = getComputedStyle(popper),\n marginTop = _getComputedStyle.marginTop,\n marginRight = _getComputedStyle.marginRight,\n marginBottom = _getComputedStyle.marginBottom,\n marginLeft = _getComputedStyle.marginLeft; // We no longer take into account `margins` on the popper, and it can\n // cause bugs with positioning, so we'll warn the consumer\n\n\n if ([marginTop, marginRight, marginBottom, marginLeft].some(function (margin) {\n return parseFloat(margin);\n })) {\n console.warn(['Popper: CSS \"margin\" styles cannot be used to apply padding', 'between the popper and its reference element or boundary.', 'To replicate margin, use the `offset` modifier, as well as', 'the `padding` option in the `preventOverflow` and `flip`', 'modifiers.'].join(' '));\n }\n }\n\n runModifierEffects();\n return instance.update();\n },\n // Sync update – it will always be executed, even if not necessary. This\n // is useful for low frequency updates where sync behavior simplifies the\n // logic.\n // For high frequency updates (e.g. `resize` and `scroll` events), always\n // prefer the async Popper#update method\n forceUpdate: function forceUpdate() {\n if (isDestroyed) {\n return;\n }\n\n var _state$elements = state.elements,\n reference = _state$elements.reference,\n popper = _state$elements.popper; // Don't proceed if `reference` or `popper` are not valid elements\n // anymore\n\n if (!areValidElements(reference, popper)) {\n if (process.env.NODE_ENV !== \"production\") {\n console.error(INVALID_ELEMENT_ERROR);\n }\n\n return;\n } // Store the reference and popper rects to be read by modifiers\n\n\n state.rects = {\n reference: getCompositeRect(reference, getOffsetParent(popper), state.options.strategy === 'fixed'),\n popper: getLayoutRect(popper)\n }; // Modifiers have the ability to reset the current update cycle. The\n // most common use case for this is the `flip` modifier changing the\n // placement, which then needs to re-run all the modifiers, because the\n // logic was previously ran for the previous placement and is therefore\n // stale/incorrect\n\n state.reset = false;\n state.placement = state.options.placement; // On each update cycle, the `modifiersData` property for each modifier\n // is filled with the initial data specified by the modifier. This means\n // it doesn't persist and is fresh on each update.\n // To ensure persistent data, use `${name}#persistent`\n\n state.orderedModifiers.forEach(function (modifier) {\n return state.modifiersData[modifier.name] = Object.assign({}, modifier.data);\n });\n var __debug_loops__ = 0;\n\n for (var index = 0; index < state.orderedModifiers.length; index++) {\n if (process.env.NODE_ENV !== \"production\") {\n __debug_loops__ += 1;\n\n if (__debug_loops__ > 100) {\n console.error(INFINITE_LOOP_ERROR);\n break;\n }\n }\n\n if (state.reset === true) {\n state.reset = false;\n index = -1;\n continue;\n }\n\n var _state$orderedModifie = state.orderedModifiers[index],\n fn = _state$orderedModifie.fn,\n _state$orderedModifie2 = _state$orderedModifie.options,\n _options = _state$orderedModifie2 === void 0 ? {} : _state$orderedModifie2,\n name = _state$orderedModifie.name;\n\n if (typeof fn === 'function') {\n state = fn({\n state: state,\n options: _options,\n name: name,\n instance: instance\n }) || state;\n }\n }\n },\n // Async and optimistically optimized update – it will not be executed if\n // not necessary (debounced to run at most once-per-tick)\n update: debounce(function () {\n return new Promise(function (resolve) {\n instance.forceUpdate();\n resolve(state);\n });\n }),\n destroy: function destroy() {\n cleanupModifierEffects();\n isDestroyed = true;\n }\n };\n\n if (!areValidElements(reference, popper)) {\n if (process.env.NODE_ENV !== \"production\") {\n console.error(INVALID_ELEMENT_ERROR);\n }\n\n return instance;\n }\n\n instance.setOptions(options).then(function (state) {\n if (!isDestroyed && options.onFirstUpdate) {\n options.onFirstUpdate(state);\n }\n }); // Modifiers have the ability to execute arbitrary code before the first\n // update cycle runs. They will be executed in the same order as the update\n // cycle. This is useful when a modifier adds some persistent data that\n // other modifiers need to use, but the modifier is run after the dependent\n // one.\n\n function runModifierEffects() {\n state.orderedModifiers.forEach(function (_ref3) {\n var name = _ref3.name,\n _ref3$options = _ref3.options,\n options = _ref3$options === void 0 ? {} : _ref3$options,\n effect = _ref3.effect;\n\n if (typeof effect === 'function') {\n var cleanupFn = effect({\n state: state,\n name: name,\n instance: instance,\n options: options\n });\n\n var noopFn = function noopFn() {};\n\n effectCleanupFns.push(cleanupFn || noopFn);\n }\n });\n }\n\n function cleanupModifierEffects() {\n effectCleanupFns.forEach(function (fn) {\n return fn();\n });\n effectCleanupFns = [];\n }\n\n return instance;\n };\n}\nexport var createPopper = /*#__PURE__*/popperGenerator(); // eslint-disable-next-line import/no-unused-modules\n\nexport { detectOverflow };","import { isShadowRoot } from \"./instanceOf.js\";\nexport default function contains(parent, child) {\n var rootNode = child.getRootNode && child.getRootNode(); // First, attempt with faster native method\n\n if (parent.contains(child)) {\n return true;\n } // then fallback to custom implementation with Shadow DOM support\n else if (rootNode && isShadowRoot(rootNode)) {\n var next = child;\n\n do {\n if (next && parent.isSameNode(next)) {\n return true;\n } // $FlowFixMe[prop-missing]: need a better way to handle this...\n\n\n next = next.parentNode || next.host;\n } while (next);\n } // Give up, the result is false\n\n\n return false;\n}","// import { isHTMLElement } from './instanceOf';\nexport default function getBoundingClientRect(element, // eslint-disable-next-line unused-imports/no-unused-vars\nincludeScale) {\n if (includeScale === void 0) {\n includeScale = false;\n }\n\n var rect = element.getBoundingClientRect();\n var scaleX = 1;\n var scaleY = 1; // FIXME:\n // `offsetWidth` returns an integer while `getBoundingClientRect`\n // returns a float. This results in `scaleX` or `scaleY` being\n // non-1 when it should be for elements that aren't a full pixel in\n // width or height.\n // if (isHTMLElement(element) && includeScale) {\n // const offsetHeight = element.offsetHeight;\n // const offsetWidth = element.offsetWidth;\n // // Do not attempt to divide by 0, otherwise we get `Infinity` as scale\n // // Fallback to 1 in case both values are `0`\n // if (offsetWidth > 0) {\n // scaleX = rect.width / offsetWidth || 1;\n // }\n // if (offsetHeight > 0) {\n // scaleY = rect.height / offsetHeight || 1;\n // }\n // }\n\n return {\n width: rect.width / scaleX,\n height: rect.height / scaleY,\n top: rect.top / scaleY,\n right: rect.right / scaleX,\n bottom: rect.bottom / scaleY,\n left: rect.left / scaleX,\n x: rect.left / scaleX,\n y: rect.top / scaleY\n };\n}","import { viewport } from \"../enums.js\";\nimport getViewportRect from \"./getViewportRect.js\";\nimport getDocumentRect from \"./getDocumentRect.js\";\nimport listScrollParents from \"./listScrollParents.js\";\nimport getOffsetParent from \"./getOffsetParent.js\";\nimport getDocumentElement from \"./getDocumentElement.js\";\nimport getComputedStyle from \"./getComputedStyle.js\";\nimport { isElement, isHTMLElement } from \"./instanceOf.js\";\nimport getBoundingClientRect from \"./getBoundingClientRect.js\";\nimport getParentNode from \"./getParentNode.js\";\nimport contains from \"./contains.js\";\nimport getNodeName from \"./getNodeName.js\";\nimport rectToClientRect from \"../utils/rectToClientRect.js\";\nimport { max, min } from \"../utils/math.js\";\n\nfunction getInnerBoundingClientRect(element) {\n var rect = getBoundingClientRect(element);\n rect.top = rect.top + element.clientTop;\n rect.left = rect.left + element.clientLeft;\n rect.bottom = rect.top + element.clientHeight;\n rect.right = rect.left + element.clientWidth;\n rect.width = element.clientWidth;\n rect.height = element.clientHeight;\n rect.x = rect.left;\n rect.y = rect.top;\n return rect;\n}\n\nfunction getClientRectFromMixedType(element, clippingParent) {\n return clippingParent === viewport ? rectToClientRect(getViewportRect(element)) : isHTMLElement(clippingParent) ? getInnerBoundingClientRect(clippingParent) : rectToClientRect(getDocumentRect(getDocumentElement(element)));\n} // A \"clipping parent\" is an overflowable container with the characteristic of\n// clipping (or hiding) overflowing elements with a position different from\n// `initial`\n\n\nfunction getClippingParents(element) {\n var clippingParents = listScrollParents(getParentNode(element));\n var canEscapeClipping = ['absolute', 'fixed'].indexOf(getComputedStyle(element).position) >= 0;\n var clipperElement = canEscapeClipping && isHTMLElement(element) ? getOffsetParent(element) : element;\n\n if (!isElement(clipperElement)) {\n return [];\n } // $FlowFixMe[incompatible-return]: https://github.com/facebook/flow/issues/1414\n\n\n return clippingParents.filter(function (clippingParent) {\n return isElement(clippingParent) && contains(clippingParent, clipperElement) && getNodeName(clippingParent) !== 'body';\n });\n} // Gets the maximum area that the element is visible in due to any number of\n// clipping parents\n\n\nexport default function getClippingRect(element, boundary, rootBoundary) {\n var mainClippingParents = boundary === 'clippingParents' ? getClippingParents(element) : [].concat(boundary);\n var clippingParents = [].concat(mainClippingParents, [rootBoundary]);\n var firstClippingParent = clippingParents[0];\n var clippingRect = clippingParents.reduce(function (accRect, clippingParent) {\n var rect = getClientRectFromMixedType(element, clippingParent);\n accRect.top = max(rect.top, accRect.top);\n accRect.right = min(rect.right, accRect.right);\n accRect.bottom = min(rect.bottom, accRect.bottom);\n accRect.left = max(rect.left, accRect.left);\n return accRect;\n }, getClientRectFromMixedType(element, firstClippingParent));\n clippingRect.width = clippingRect.right - clippingRect.left;\n clippingRect.height = clippingRect.bottom - clippingRect.top;\n clippingRect.x = clippingRect.left;\n clippingRect.y = clippingRect.top;\n return clippingRect;\n}","import getBoundingClientRect from \"./getBoundingClientRect.js\";\nimport getNodeScroll from \"./getNodeScroll.js\";\nimport getNodeName from \"./getNodeName.js\";\nimport { isHTMLElement } from \"./instanceOf.js\";\nimport getWindowScrollBarX from \"./getWindowScrollBarX.js\";\nimport getDocumentElement from \"./getDocumentElement.js\";\nimport isScrollParent from \"./isScrollParent.js\";\n\nfunction isElementScaled(element) {\n var rect = element.getBoundingClientRect();\n var scaleX = rect.width / element.offsetWidth || 1;\n var scaleY = rect.height / element.offsetHeight || 1;\n return scaleX !== 1 || scaleY !== 1;\n} // Returns the composite rect of an element relative to its offsetParent.\n// Composite means it takes into account transforms as well as layout.\n\n\nexport default function getCompositeRect(elementOrVirtualElement, offsetParent, isFixed) {\n if (isFixed === void 0) {\n isFixed = false;\n }\n\n var isOffsetParentAnElement = isHTMLElement(offsetParent);\n var offsetParentIsScaled = isHTMLElement(offsetParent) && isElementScaled(offsetParent);\n var documentElement = getDocumentElement(offsetParent);\n var rect = getBoundingClientRect(elementOrVirtualElement, offsetParentIsScaled);\n var scroll = {\n scrollLeft: 0,\n scrollTop: 0\n };\n var offsets = {\n x: 0,\n y: 0\n };\n\n if (isOffsetParentAnElement || !isOffsetParentAnElement && !isFixed) {\n if (getNodeName(offsetParent) !== 'body' || // https://github.com/popperjs/popper-core/issues/1078\n isScrollParent(documentElement)) {\n scroll = getNodeScroll(offsetParent);\n }\n\n if (isHTMLElement(offsetParent)) {\n offsets = getBoundingClientRect(offsetParent, true);\n offsets.x += offsetParent.clientLeft;\n offsets.y += offsetParent.clientTop;\n } else if (documentElement) {\n offsets.x = getWindowScrollBarX(documentElement);\n }\n }\n\n return {\n x: rect.left + scroll.scrollLeft - offsets.x,\n y: rect.top + scroll.scrollTop - offsets.y,\n width: rect.width,\n height: rect.height\n };\n}","import getWindow from \"./getWindow.js\";\nexport default function getComputedStyle(element) {\n return getWindow(element).getComputedStyle(element);\n}","import { isElement } from \"./instanceOf.js\";\nexport default function getDocumentElement(element) {\n // $FlowFixMe[incompatible-return]: assume body is always available\n return ((isElement(element) ? element.ownerDocument : // $FlowFixMe[prop-missing]\n element.document) || window.document).documentElement;\n}","import getDocumentElement from \"./getDocumentElement.js\";\nimport getComputedStyle from \"./getComputedStyle.js\";\nimport getWindowScrollBarX from \"./getWindowScrollBarX.js\";\nimport getWindowScroll from \"./getWindowScroll.js\";\nimport { max } from \"../utils/math.js\"; // Gets the entire size of the scrollable document area, even extending outside\n// of the `<html>` and `<body>` rect bounds if horizontally scrollable\n\nexport default function getDocumentRect(element) {\n var _element$ownerDocumen;\n\n var html = getDocumentElement(element);\n var winScroll = getWindowScroll(element);\n var body = (_element$ownerDocumen = element.ownerDocument) == null ? void 0 : _element$ownerDocumen.body;\n var width = max(html.scrollWidth, html.clientWidth, body ? body.scrollWidth : 0, body ? body.clientWidth : 0);\n var height = max(html.scrollHeight, html.clientHeight, body ? body.scrollHeight : 0, body ? body.clientHeight : 0);\n var x = -winScroll.scrollLeft + getWindowScrollBarX(element);\n var y = -winScroll.scrollTop;\n\n if (getComputedStyle(body || html).direction === 'rtl') {\n x += max(html.clientWidth, body ? body.clientWidth : 0) - width;\n }\n\n return {\n width: width,\n height: height,\n x: x,\n y: y\n };\n}","export default function getHTMLElementScroll(element) {\n return {\n scrollLeft: element.scrollLeft,\n scrollTop: element.scrollTop\n };\n}","import getBoundingClientRect from \"./getBoundingClientRect.js\"; // Returns the layout rect of an element relative to its offsetParent. Layout\n// means it doesn't take into account transforms.\n\nexport default function getLayoutRect(element) {\n var clientRect = getBoundingClientRect(element); // Use the clientRect sizes if it's not been transformed.\n // Fixes https://github.com/popperjs/popper-core/issues/1223\n\n var width = element.offsetWidth;\n var height = element.offsetHeight;\n\n if (Math.abs(clientRect.width - width) <= 1) {\n width = clientRect.width;\n }\n\n if (Math.abs(clientRect.height - height) <= 1) {\n height = clientRect.height;\n }\n\n return {\n x: element.offsetLeft,\n y: element.offsetTop,\n width: width,\n height: height\n };\n}","export default function getNodeName(element) {\n return element ? (element.nodeName || '').toLowerCase() : null;\n}","import getWindowScroll from \"./getWindowScroll.js\";\nimport getWindow from \"./getWindow.js\";\nimport { isHTMLElement } from \"./instanceOf.js\";\nimport getHTMLElementScroll from \"./getHTMLElementScroll.js\";\nexport default function getNodeScroll(node) {\n if (node === getWindow(node) || !isHTMLElement(node)) {\n return getWindowScroll(node);\n } else {\n return getHTMLElementScroll(node);\n }\n}","import getWindow from \"./getWindow.js\";\nimport getNodeName from \"./getNodeName.js\";\nimport getComputedStyle from \"./getComputedStyle.js\";\nimport { isHTMLElement } from \"./instanceOf.js\";\nimport isTableElement from \"./isTableElement.js\";\nimport getParentNode from \"./getParentNode.js\";\n\nfunction getTrueOffsetParent(element) {\n if (!isHTMLElement(element) || // https://github.com/popperjs/popper-core/issues/837\n getComputedStyle(element).position === 'fixed') {\n return null;\n }\n\n return element.offsetParent;\n} // `.offsetParent` reports `null` for fixed elements, while absolute elements\n// return the containing block\n\n\nfunction getContainingBlock(element) {\n var isFirefox = navigator.userAgent.toLowerCase().indexOf('firefox') !== -1;\n var isIE = navigator.userAgent.indexOf('Trident') !== -1;\n\n if (isIE && isHTMLElement(element)) {\n // In IE 9, 10 and 11 fixed elements containing block is always established by the viewport\n var elementCss = getComputedStyle(element);\n\n if (elementCss.position === 'fixed') {\n return null;\n }\n }\n\n var currentNode = getParentNode(element);\n\n while (isHTMLElement(currentNode) && ['html', 'body'].indexOf(getNodeName(currentNode)) < 0) {\n var css = getComputedStyle(currentNode); // This is non-exhaustive but covers the most common CSS properties that\n // create a containing block.\n // https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block\n\n if (css.transform !== 'none' || css.perspective !== 'none' || css.contain === 'paint' || ['transform', 'perspective'].indexOf(css.willChange) !== -1 || isFirefox && css.willChange === 'filter' || isFirefox && css.filter && css.filter !== 'none') {\n return currentNode;\n } else {\n currentNode = currentNode.parentNode;\n }\n }\n\n return null;\n} // Gets the closest ancestor positioned element. Handles some edge cases,\n// such as table ancestors and cross browser bugs.\n\n\nexport default function getOffsetParent(element) {\n var window = getWindow(element);\n var offsetParent = getTrueOffsetParent(element);\n\n while (offsetParent && isTableElement(offsetParent) && getComputedStyle(offsetParent).position === 'static') {\n offsetParent = getTrueOffsetParent(offsetParent);\n }\n\n if (offsetParent && (getNodeName(offsetParent) === 'html' || getNodeName(offsetParent) === 'body' && getComputedStyle(offsetParent).position === 'static')) {\n return window;\n }\n\n return offsetParent || getContainingBlock(element) || window;\n}","import getNodeName from \"./getNodeName.js\";\nimport getDocumentElement from \"./getDocumentElement.js\";\nimport { isShadowRoot } from \"./instanceOf.js\";\nexport default function getParentNode(element) {\n if (getNodeName(element) === 'html') {\n return element;\n }\n\n return (// this is a quicker (but less type safe) way to save quite some bytes from the bundle\n // $FlowFixMe[incompatible-return]\n // $FlowFixMe[prop-missing]\n element.assignedSlot || // step into the shadow DOM of the parent of a slotted node\n element.parentNode || ( // DOM Element detected\n isShadowRoot(element) ? element.host : null) || // ShadowRoot detected\n // $FlowFixMe[incompatible-call]: HTMLElement is a Node\n getDocumentElement(element) // fallback\n\n );\n}","import getParentNode from \"./getParentNode.js\";\nimport isScrollParent from \"./isScrollParent.js\";\nimport getNodeName from \"./getNodeName.js\";\nimport { isHTMLElement } from \"./instanceOf.js\";\nexport default function getScrollParent(node) {\n if (['html', 'body', '#document'].indexOf(getNodeName(node)) >= 0) {\n // $FlowFixMe[incompatible-return]: assume body is always available\n return node.ownerDocument.body;\n }\n\n if (isHTMLElement(node) && isScrollParent(node)) {\n return node;\n }\n\n return getScrollParent(getParentNode(node));\n}","import getWindow from \"./getWindow.js\";\nimport getDocumentElement from \"./getDocumentElement.js\";\nimport getWindowScrollBarX from \"./getWindowScrollBarX.js\";\nexport default function getViewportRect(element) {\n var win = getWindow(element);\n var html = getDocumentElement(element);\n var visualViewport = win.visualViewport;\n var width = html.clientWidth;\n var height = html.clientHeight;\n var x = 0;\n var y = 0; // NB: This isn't supported on iOS <= 12. If the keyboard is open, the popper\n // can be obscured underneath it.\n // Also, `html.clientHeight` adds the bottom bar height in Safari iOS, even\n // if it isn't open, so if this isn't available, the popper will be detected\n // to overflow the bottom of the screen too early.\n\n if (visualViewport) {\n width = visualViewport.width;\n height = visualViewport.height; // Uses Layout Viewport (like Chrome; Safari does not currently)\n // In Chrome, it returns a value very close to 0 (+/-) but contains rounding\n // errors due to floating point numbers, so we need to check precision.\n // Safari returns a number <= 0, usually < -1 when pinch-zoomed\n // Feature detection fails in mobile emulation mode in Chrome.\n // Math.abs(win.innerWidth / visualViewport.scale - visualViewport.width) <\n // 0.001\n // Fallback here: \"Not Safari\" userAgent\n\n if (!/^((?!chrome|android).)*safari/i.test(navigator.userAgent)) {\n x = visualViewport.offsetLeft;\n y = visualViewport.offsetTop;\n }\n }\n\n return {\n width: width,\n height: height,\n x: x + getWindowScrollBarX(element),\n y: y\n };\n}","export default function getWindow(node) {\n if (node == null) {\n return window;\n }\n\n if (node.toString() !== '[object Window]') {\n var ownerDocument = node.ownerDocument;\n return ownerDocument ? ownerDocument.defaultView || window : window;\n }\n\n return node;\n}","import getWindow from \"./getWindow.js\";\nexport default function getWindowScroll(node) {\n var win = getWindow(node);\n var scrollLeft = win.pageXOffset;\n var scrollTop = win.pageYOffset;\n return {\n scrollLeft: scrollLeft,\n scrollTop: scrollTop\n };\n}","import getBoundingClientRect from \"./getBoundingClientRect.js\";\nimport getDocumentElement from \"./getDocumentElement.js\";\nimport getWindowScroll from \"./getWindowScroll.js\";\nexport default function getWindowScrollBarX(element) {\n // If <html> has a CSS width greater than the viewport, then this will be\n // incorrect for RTL.\n // Popper 1 is broken in this case and never had a bug report so let's assume\n // it's not an issue. I don't think anyone ever specifies width on <html>\n // anyway.\n // Browsers where the left scrollbar doesn't cause an issue report `0` for\n // this (e.g. Edge 2019, IE11, Safari)\n return getBoundingClientRect(getDocumentElement(element)).left + getWindowScroll(element).scrollLeft;\n}","import getWindow from \"./getWindow.js\";\n\nfunction isElement(node) {\n var OwnElement = getWindow(node).Element;\n return node instanceof OwnElement || node instanceof Element;\n}\n\nfunction isHTMLElement(node) {\n var OwnElement = getWindow(node).HTMLElement;\n return node instanceof OwnElement || node instanceof HTMLElement;\n}\n\nfunction isShadowRoot(node) {\n // IE 11 has no ShadowRoot\n if (typeof ShadowRoot === 'undefined') {\n return false;\n }\n\n var OwnElement = getWindow(node).ShadowRoot;\n return node instanceof OwnElement || node instanceof ShadowRoot;\n}\n\nexport { isElement, isHTMLElement, isShadowRoot };","import getComputedStyle from \"./getComputedStyle.js\";\nexport default function isScrollParent(element) {\n // Firefox wants us to check `-x` and `-y` variations as well\n var _getComputedStyle = getComputedStyle(element),\n overflow = _getComputedStyle.overflow,\n overflowX = _getComputedStyle.overflowX,\n overflowY = _getComputedStyle.overflowY;\n\n return /auto|scroll|overlay|hidden/.test(overflow + overflowY + overflowX);\n}","import getNodeName from \"./getNodeName.js\";\nexport default function isTableElement(element) {\n return ['table', 'td', 'th'].indexOf(getNodeName(element)) >= 0;\n}","import getScrollParent from \"./getScrollParent.js\";\nimport getParentNode from \"./getParentNode.js\";\nimport getWindow from \"./getWindow.js\";\nimport isScrollParent from \"./isScrollParent.js\";\n/*\ngiven a DOM element, return the list of all scroll parents, up the list of ancesors\nuntil we get to the top window object. This list is what we attach scroll listeners\nto, because if any of these parent elements scroll, we'll need to re-calculate the\nreference element's position.\n*/\n\nexport default function listScrollParents(element, list) {\n var _element$ownerDocumen;\n\n if (list === void 0) {\n list = [];\n }\n\n var scrollParent = getScrollParent(element);\n var isBody = scrollParent === ((_element$ownerDocumen = element.ownerDocument) == null ? void 0 : _element$ownerDocumen.body);\n var win = getWindow(scrollParent);\n var target = isBody ? [win].concat(win.visualViewport || [], isScrollParent(scrollParent) ? scrollParent : []) : scrollParent;\n var updatedList = list.concat(target);\n return isBody ? updatedList : // $FlowFixMe[incompatible-call]: isBody tells us target will be an HTMLElement here\n updatedList.concat(listScrollParents(getParentNode(target)));\n}","export var top = 'top';\nexport var bottom = 'bottom';\nexport var right = 'right';\nexport var left = 'left';\nexport var auto = 'auto';\nexport var basePlacements = [top, bottom, right, left];\nexport var start = 'start';\nexport var end = 'end';\nexport var clippingParents = 'clippingParents';\nexport var viewport = 'viewport';\nexport var popper = 'popper';\nexport var reference = 'reference';\nexport var variationPlacements = /*#__PURE__*/basePlacements.reduce(function (acc, placement) {\n return acc.concat([placement + \"-\" + start, placement + \"-\" + end]);\n}, []);\nexport var placements = /*#__PURE__*/[].concat(basePlacements, [auto]).reduce(function (acc, placement) {\n return acc.concat([placement, placement + \"-\" + start, placement + \"-\" + end]);\n}, []); // modifiers that need to read the DOM\n\nexport var beforeRead = 'beforeRead';\nexport var read = 'read';\nexport var afterRead = 'afterRead'; // pure-logic modifiers\n\nexport var beforeMain = 'beforeMain';\nexport var main = 'main';\nexport var afterMain = 'afterMain'; // modifier with the purpose to write to the DOM (or write into a framework state)\n\nexport var beforeWrite = 'beforeWrite';\nexport var write = 'write';\nexport var afterWrite = 'afterWrite';\nexport var modifierPhases = [beforeRead, read, afterRead, beforeMain, main, afterMain, beforeWrite, write, afterWrite];","import getNodeName from \"../dom-utils/getNodeName.js\";\nimport { isHTMLElement } from \"../dom-utils/instanceOf.js\"; // This modifier takes the styles prepared by the `computeStyles` modifier\n// and applies them to the HTMLElements such as popper and arrow\n\nfunction applyStyles(_ref) {\n var state = _ref.state;\n Object.keys(state.elements).forEach(function (name) {\n var style = state.styles[name] || {};\n var attributes = state.attributes[name] || {};\n var element = state.elements[name]; // arrow is optional + virtual elements\n\n if (!isHTMLElement(element) || !getNodeName(element)) {\n return;\n } // Flow doesn't support to extend this property, but it's the most\n // effective way to apply styles to an HTMLElement\n // $FlowFixMe[cannot-write]\n\n\n Object.assign(element.style, style);\n Object.keys(attributes).forEach(function (name) {\n var value = attributes[name];\n\n if (value === false) {\n element.removeAttribute(name);\n } else {\n element.setAttribute(name, value === true ? '' : value);\n }\n });\n });\n}\n\nfunction effect(_ref2) {\n var state = _ref2.state;\n var initialStyles = {\n popper: {\n position: state.options.strategy,\n left: '0',\n top: '0',\n margin: '0'\n },\n arrow: {\n position: 'absolute'\n },\n reference: {}\n };\n Object.assign(state.elements.popper.style, initialStyles.popper);\n state.styles = initialStyles;\n\n if (state.elements.arrow) {\n Object.assign(state.elements.arrow.style, initialStyles.arrow);\n }\n\n return function () {\n Object.keys(state.elements).forEach(function (name) {\n var element = state.elements[name];\n var attributes = state.attributes[name] || {};\n var styleProperties = Object.keys(state.styles.hasOwnProperty(name) ? state.styles[name] : initialStyles[name]); // Set all values to an empty string to unset them\n\n var style = styleProperties.reduce(function (style, property) {\n style[property] = '';\n return style;\n }, {}); // arrow is optional + virtual elements\n\n if (!isHTMLElement(element) || !getNodeName(element)) {\n return;\n }\n\n Object.assign(element.style, style);\n Object.keys(attributes).forEach(function (attribute) {\n element.removeAttribute(attribute);\n });\n });\n };\n} // eslint-disable-next-line import/no-unused-modules\n\n\nexport default {\n name: 'applyStyles',\n enabled: true,\n phase: 'write',\n fn: applyStyles,\n effect: effect,\n requires: ['computeStyles']\n};","import getBasePlacement from \"../utils/getBasePlacement.js\";\nimport getLayoutRect from \"../dom-utils/getLayoutRect.js\";\nimport contains from \"../dom-utils/contains.js\";\nimport getOffsetParent from \"../dom-utils/getOffsetParent.js\";\nimport getMainAxisFromPlacement from \"../utils/getMainAxisFromPlacement.js\";\nimport within from \"../utils/within.js\";\nimport mergePaddingObject from \"../utils/mergePaddingObject.js\";\nimport expandToHashMap from \"../utils/expandToHashMap.js\";\nimport { left, right, basePlacements, top, bottom } from \"../enums.js\";\nimport { isHTMLElement } from \"../dom-utils/instanceOf.js\"; // eslint-disable-next-line import/no-unused-modules\n\nvar toPaddingObject = function toPaddingObject(padding, state) {\n padding = typeof padding === 'function' ? padding(Object.assign({}, state.rects, {\n placement: state.placement\n })) : padding;\n return mergePaddingObject(typeof padding !== 'number' ? padding : expandToHashMap(padding, basePlacements));\n};\n\nfunction arrow(_ref) {\n var _state$modifiersData$;\n\n var state = _ref.state,\n name = _ref.name,\n options = _ref.options;\n var arrowElement = state.elements.arrow;\n var popperOffsets = state.modifiersData.popperOffsets;\n var basePlacement = getBasePlacement(state.placement);\n var axis = getMainAxisFromPlacement(basePlacement);\n var isVertical = [left, right].indexOf(basePlacement) >= 0;\n var len = isVertical ? 'height' : 'width';\n\n if (!arrowElement || !popperOffsets) {\n return;\n }\n\n var paddingObject = toPaddingObject(options.padding, state);\n var arrowRect = getLayoutRect(arrowElement);\n var minProp = axis === 'y' ? top : left;\n var maxProp = axis === 'y' ? bottom : right;\n var endDiff = state.rects.reference[len] + state.rects.reference[axis] - popperOffsets[axis] - state.rects.popper[len];\n var startDiff = popperOffsets[axis] - state.rects.reference[axis];\n var arrowOffsetParent = getOffsetParent(arrowElement);\n var clientSize = arrowOffsetParent ? axis === 'y' ? arrowOffsetParent.clientHeight || 0 : arrowOffsetParent.clientWidth || 0 : 0;\n var centerToReference = endDiff / 2 - startDiff / 2; // Make sure the arrow doesn't overflow the popper if the center point is\n // outside of the popper bounds\n\n var min = paddingObject[minProp];\n var max = clientSize - arrowRect[len] - paddingObject[maxProp];\n var center = clientSize / 2 - arrowRect[len] / 2 + centerToReference;\n var offset = within(min, center, max); // Prevents breaking syntax highlighting...\n\n var axisProp = axis;\n state.modifiersData[name] = (_state$modifiersData$ = {}, _state$modifiersData$[axisProp] = offset, _state$modifiersData$.centerOffset = offset - center, _state$modifiersData$);\n}\n\nfunction effect(_ref2) {\n var state = _ref2.state,\n options = _ref2.options;\n var _options$element = options.element,\n arrowElement = _options$element === void 0 ? '[data-popper-arrow]' : _options$element;\n\n if (arrowElement == null) {\n return;\n } // CSS selector\n\n\n if (typeof arrowElement === 'string') {\n arrowElement = state.elements.popper.querySelector(arrowElement);\n\n if (!arrowElement) {\n return;\n }\n }\n\n if (process.env.NODE_ENV !== \"production\") {\n if (!isHTMLElement(arrowElement)) {\n console.error(['Popper: \"arrow\" element must be an HTMLElement (not an SVGElement).', 'To use an SVG arrow, wrap it in an HTMLElement that will be used as', 'the arrow.'].join(' '));\n }\n }\n\n if (!contains(state.elements.popper, arrowElement)) {\n if (process.env.NODE_ENV !== \"production\") {\n console.error(['Popper: \"arrow\" modifier\\'s `element` must be a child of the popper', 'element.'].join(' '));\n }\n\n return;\n }\n\n state.elements.arrow = arrowElement;\n} // eslint-disable-next-line import/no-unused-modules\n\n\nexport default {\n name: 'arrow',\n enabled: true,\n phase: 'main',\n fn: arrow,\n effect: effect,\n requires: ['popperOffsets'],\n requiresIfExists: ['preventOverflow']\n};","import { top, left, right, bottom, end } from \"../enums.js\";\nimport getOffsetParent from \"../dom-utils/getOffsetParent.js\";\nimport getWindow from \"../dom-utils/getWindow.js\";\nimport getDocumentElement from \"../dom-utils/getDocumentElement.js\";\nimport getComputedStyle from \"../dom-utils/getComputedStyle.js\";\nimport getBasePlacement from \"../utils/getBasePlacement.js\";\nimport getVariation from \"../utils/getVariation.js\";\nimport { round } from \"../utils/math.js\"; // eslint-disable-next-line import/no-unused-modules\n\nvar unsetSides = {\n top: 'auto',\n right: 'auto',\n bottom: 'auto',\n left: 'auto'\n}; // Round the offsets to the nearest suitable subpixel based on the DPR.\n// Zooming can change the DPR, but it seems to report a value that will\n// cleanly divide the values into the appropriate subpixels.\n\nfunction roundOffsetsByDPR(_ref) {\n var x = _ref.x,\n y = _ref.y;\n var win = window;\n var dpr = win.devicePixelRatio || 1;\n return {\n x: round(round(x * dpr) / dpr) || 0,\n y: round(round(y * dpr) / dpr) || 0\n };\n}\n\nexport function mapToStyles(_ref2) {\n var _Object$assign2;\n\n var popper = _ref2.popper,\n popperRect = _ref2.popperRect,\n placement = _ref2.placement,\n variation = _ref2.variation,\n offsets = _ref2.offsets,\n position = _ref2.position,\n gpuAcceleration = _ref2.gpuAcceleration,\n adaptive = _ref2.adaptive,\n roundOffsets = _ref2.roundOffsets;\n\n var _ref3 = roundOffsets === true ? roundOffsetsByDPR(offsets) : typeof roundOffsets === 'function' ? roundOffsets(offsets) : offsets,\n _ref3$x = _ref3.x,\n x = _ref3$x === void 0 ? 0 : _ref3$x,\n _ref3$y = _ref3.y,\n y = _ref3$y === void 0 ? 0 : _ref3$y;\n\n var hasX = offsets.hasOwnProperty('x');\n var hasY = offsets.hasOwnProperty('y');\n var sideX = left;\n var sideY = top;\n var win = window;\n\n if (adaptive) {\n var offsetParent = getOffsetParent(popper);\n var heightProp = 'clientHeight';\n var widthProp = 'clientWidth';\n\n if (offsetParent === getWindow(popper)) {\n offsetParent = getDocumentElement(popper);\n\n if (getComputedStyle(offsetParent).position !== 'static' && position === 'absolute') {\n heightProp = 'scrollHeight';\n widthProp = 'scrollWidth';\n }\n } // $FlowFixMe[incompatible-cast]: force type refinement, we compare offsetParent with window above, but Flow doesn't detect it\n\n\n offsetParent = offsetParent;\n\n if (placement === top || (placement === left || placement === right) && variation === end) {\n sideY = bottom; // $FlowFixMe[prop-missing]\n\n y -= offsetParent[heightProp] - popperRect.height;\n y *= gpuAcceleration ? 1 : -1;\n }\n\n if (placement === left || (placement === top || placement === bottom) && variation === end) {\n sideX = right; // $FlowFixMe[prop-missing]\n\n x -= offsetParent[widthProp] - popperRect.width;\n x *= gpuAcceleration ? 1 : -1;\n }\n }\n\n var commonStyles = Object.assign({\n position: position\n }, adaptive && unsetSides);\n\n if (gpuAcceleration) {\n var _Object$assign;\n\n return Object.assign({}, commonStyles, (_Object$assign = {}, _Object$assign[sideY] = hasY ? '0' : '', _Object$assign[sideX] = hasX ? '0' : '', _Object$assign.transform = (win.devicePixelRatio || 1) <= 1 ? \"translate(\" + x + \"px, \" + y + \"px)\" : \"translate3d(\" + x + \"px, \" + y + \"px, 0)\", _Object$assign));\n }\n\n return Object.assign({}, commonStyles, (_Object$assign2 = {}, _Object$assign2[sideY] = hasY ? y + \"px\" : '', _Object$assign2[sideX] = hasX ? x + \"px\" : '', _Object$assign2.transform = '', _Object$assign2));\n}\n\nfunction computeStyles(_ref4) {\n var state = _ref4.state,\n options = _ref4.options;\n var _options$gpuAccelerat = options.gpuAcceleration,\n gpuAcceleration = _options$gpuAccelerat === void 0 ? true : _options$gpuAccelerat,\n _options$adaptive = options.adaptive,\n adaptive = _options$adaptive === void 0 ? true : _options$adaptive,\n _options$roundOffsets = options.roundOffsets,\n roundOffsets = _options$roundOffsets === void 0 ? true : _options$roundOffsets;\n\n if (process.env.NODE_ENV !== \"production\") {\n var transitionProperty = getComputedStyle(state.elements.popper).transitionProperty || '';\n\n if (adaptive && ['transform', 'top', 'right', 'bottom', 'left'].some(function (property) {\n return transitionProperty.indexOf(property) >= 0;\n })) {\n console.warn(['Popper: Detected CSS transitions on at least one of the following', 'CSS properties: \"transform\", \"top\", \"right\", \"bottom\", \"left\".', '\\n\\n', 'Disable the \"computeStyles\" modifier\\'s `adaptive` option to allow', 'for smooth transitions, or remove these properties from the CSS', 'transition declaration on the popper element if only transitioning', 'opacity or background-color for example.', '\\n\\n', 'We recommend using the popper element as a wrapper around an inner', 'element that can have any CSS property transitioned for animations.'].join(' '));\n }\n }\n\n var commonStyles = {\n placement: getBasePlacement(state.placement),\n variation: getVariation(state.placement),\n popper: state.elements.popper,\n popperRect: state.rects.popper,\n gpuAcceleration: gpuAcceleration\n };\n\n if (state.modifiersData.popperOffsets != null) {\n state.styles.popper = Object.assign({}, state.styles.popper, mapToStyles(Object.assign({}, commonStyles, {\n offsets: state.modifiersData.popperOffsets,\n position: state.options.strategy,\n adaptive: adaptive,\n roundOffsets: roundOffsets\n })));\n }\n\n if (state.modifiersData.arrow != null) {\n state.styles.arrow = Object.assign({}, state.styles.arrow, mapToStyles(Object.assign({}, commonStyles, {\n offsets: state.modifiersData.arrow,\n position: 'absolute',\n adaptive: false,\n roundOffsets: roundOffsets\n })));\n }\n\n state.attributes.popper = Object.assign({}, state.attributes.popper, {\n 'data-popper-placement': state.placement\n });\n} // eslint-disable-next-line import/no-unused-modules\n\n\nexport default {\n name: 'computeStyles',\n enabled: true,\n phase: 'beforeWrite',\n fn: computeStyles,\n data: {}\n};","import getWindow from \"../dom-utils/getWindow.js\"; // eslint-disable-next-line import/no-unused-modules\n\nvar passive = {\n passive: true\n};\n\nfunction effect(_ref) {\n var state = _ref.state,\n instance = _ref.instance,\n options = _ref.options;\n var _options$scroll = options.scroll,\n scroll = _options$scroll === void 0 ? true : _options$scroll,\n _options$resize = options.resize,\n resize = _options$resize === void 0 ? true : _options$resize;\n var window = getWindow(state.elements.popper);\n var scrollParents = [].concat(state.scrollParents.reference, state.scrollParents.popper);\n\n if (scroll) {\n scrollParents.forEach(function (scrollParent) {\n scrollParent.addEventListener('scroll', instance.update, passive);\n });\n }\n\n if (resize) {\n window.addEventListener('resize', instance.update, passive);\n }\n\n return function () {\n if (scroll) {\n scrollParents.forEach(function (scrollParent) {\n scrollParent.removeEventListener('scroll', instance.update, passive);\n });\n }\n\n if (resize) {\n window.removeEventListener('resize', instance.update, passive);\n }\n };\n} // eslint-disable-next-line import/no-unused-modules\n\n\nexport default {\n name: 'eventListeners',\n enabled: true,\n phase: 'write',\n fn: function fn() {},\n effect: effect,\n data: {}\n};","import getOppositePlacement from \"../utils/getOppositePlacement.js\";\nimport getBasePlacement from \"../utils/getBasePlacement.js\";\nimport getOppositeVariationPlacement from \"../utils/getOppositeVariationPlacement.js\";\nimport detectOverflow from \"../utils/detectOverflow.js\";\nimport computeAutoPlacement from \"../utils/computeAutoPlacement.js\";\nimport { bottom, top, start, right, left, auto } from \"../enums.js\";\nimport getVariation from \"../utils/getVariation.js\"; // eslint-disable-next-line import/no-unused-modules\n\nfunction getExpandedFallbackPlacements(placement) {\n if (getBasePlacement(placement) === auto) {\n return [];\n }\n\n var oppositePlacement = getOppositePlacement(placement);\n return [getOppositeVariationPlacement(placement), oppositePlacement, getOppositeVariationPlacement(oppositePlacement)];\n}\n\nfunction flip(_ref) {\n var state = _ref.state,\n options = _ref.options,\n name = _ref.name;\n\n if (state.modifiersData[name]._skip) {\n return;\n }\n\n var _options$mainAxis = options.mainAxis,\n checkMainAxis = _options$mainAxis === void 0 ? true : _options$mainAxis,\n _options$altAxis = options.altAxis,\n checkAltAxis = _options$altAxis === void 0 ? true : _options$altAxis,\n specifiedFallbackPlacements = options.fallbackPlacements,\n padding = options.padding,\n boundary = options.boundary,\n rootBoundary = options.rootBoundary,\n altBoundary = options.altBoundary,\n _options$flipVariatio = options.flipVariations,\n flipVariations = _options$flipVariatio === void 0 ? true : _options$flipVariatio,\n allowedAutoPlacements = options.allowedAutoPlacements;\n var preferredPlacement = state.options.placement;\n var basePlacement = getBasePlacement(preferredPlacement);\n var isBasePlacement = basePlacement === preferredPlacement;\n var fallbackPlacements = specifiedFallbackPlacements || (isBasePlacement || !flipVariations ? [getOppositePlacement(preferredPlacement)] : getExpandedFallbackPlacements(preferredPlacement));\n var placements = [preferredPlacement].concat(fallbackPlacements).reduce(function (acc, placement) {\n return acc.concat(getBasePlacement(placement) === auto ? computeAutoPlacement(state, {\n placement: placement,\n boundary: boundary,\n rootBoundary: rootBoundary,\n padding: padding,\n flipVariations: flipVariations,\n allowedAutoPlacements: allowedAutoPlacements\n }) : placement);\n }, []);\n var referenceRect = state.rects.reference;\n var popperRect = state.rects.popper;\n var checksMap = new Map();\n var makeFallbackChecks = true;\n var firstFittingPlacement = placements[0];\n\n for (var i = 0; i < placements.length; i++) {\n var placement = placements[i];\n\n var _basePlacement = getBasePlacement(placement);\n\n var isStartVariation = getVariation(placement) === start;\n var isVertical = [top, bottom].indexOf(_basePlacement) >= 0;\n var len = isVertical ? 'width' : 'height';\n var overflow = detectOverflow(state, {\n placement: placement,\n boundary: boundary,\n rootBoundary: rootBoundary,\n altBoundary: altBoundary,\n padding: padding\n });\n var mainVariationSide = isVertical ? isStartVariation ? right : left : isStartVariation ? bottom : top;\n\n if (referenceRect[len] > popperRect[len]) {\n mainVariationSide = getOppositePlacement(mainVariationSide);\n }\n\n var altVariationSide = getOppositePlacement(mainVariationSide);\n var checks = [];\n\n if (checkMainAxis) {\n checks.push(overflow[_basePlacement] <= 0);\n }\n\n if (checkAltAxis) {\n checks.push(overflow[mainVariationSide] <= 0, overflow[altVariationSide] <= 0);\n }\n\n if (checks.every(function (check) {\n return check;\n })) {\n firstFittingPlacement = placement;\n makeFallbackChecks = false;\n break;\n }\n\n checksMap.set(placement, checks);\n }\n\n if (makeFallbackChecks) {\n // `2` may be desired in some cases – research later\n var numberOfChecks = flipVariations ? 3 : 1;\n\n var _loop = function _loop(_i) {\n var fittingPlacement = placements.find(function (placement) {\n var checks = checksMap.get(placement);\n\n if (checks) {\n return checks.slice(0, _i).every(function (check) {\n return check;\n });\n }\n });\n\n if (fittingPlacement) {\n firstFittingPlacement = fittingPlacement;\n return \"break\";\n }\n };\n\n for (var _i = numberOfChecks; _i > 0; _i--) {\n var _ret = _loop(_i);\n\n if (_ret === \"break\") break;\n }\n }\n\n if (state.placement !== firstFittingPlacement) {\n state.modifiersData[name]._skip = true;\n state.placement = firstFittingPlacement;\n state.reset = true;\n }\n} // eslint-disable-next-line import/no-unused-modules\n\n\nexport default {\n name: 'flip',\n enabled: true,\n phase: 'main',\n fn: flip,\n requiresIfExists: ['offset'],\n data: {\n _skip: false\n }\n};","import { top, bottom, left, right } from \"../enums.js\";\nimport detectOverflow from \"../utils/detectOverflow.js\";\n\nfunction getSideOffsets(overflow, rect, preventedOffsets) {\n if (preventedOffsets === void 0) {\n preventedOffsets = {\n x: 0,\n y: 0\n };\n }\n\n return {\n top: overflow.top - rect.height - preventedOffsets.y,\n right: overflow.right - rect.width + preventedOffsets.x,\n bottom: overflow.bottom - rect.height + preventedOffsets.y,\n left: overflow.left - rect.width - preventedOffsets.x\n };\n}\n\nfunction isAnySideFullyClipped(overflow) {\n return [top, right, bottom, left].some(function (side) {\n return overflow[side] >= 0;\n });\n}\n\nfunction hide(_ref) {\n var state = _ref.state,\n name = _ref.name;\n var referenceRect = state.rects.reference;\n var popperRect = state.rects.popper;\n var preventedOffsets = state.modifiersData.preventOverflow;\n var referenceOverflow = detectOverflow(state, {\n elementContext: 'reference'\n });\n var popperAltOverflow = detectOverflow(state, {\n altBoundary: true\n });\n var referenceClippingOffsets = getSideOffsets(referenceOverflow, referenceRect);\n var popperEscapeOffsets = getSideOffsets(popperAltOverflow, popperRect, preventedOffsets);\n var isReferenceHidden = isAnySideFullyClipped(referenceClippingOffsets);\n var hasPopperEscaped = isAnySideFullyClipped(popperEscapeOffsets);\n state.modifiersData[name] = {\n referenceClippingOffsets: referenceClippingOffsets,\n popperEscapeOffsets: popperEscapeOffsets,\n isReferenceHidden: isReferenceHidden,\n hasPopperEscaped: hasPopperEscaped\n };\n state.attributes.popper = Object.assign({}, state.attributes.popper, {\n 'data-popper-reference-hidden': isReferenceHidden,\n 'data-popper-escaped': hasPopperEscaped\n });\n} // eslint-disable-next-line import/no-unused-modules\n\n\nexport default {\n name: 'hide',\n enabled: true,\n phase: 'main',\n requiresIfExists: ['preventOverflow'],\n fn: hide\n};","import getBasePlacement from \"../utils/getBasePlacement.js\";\nimport { top, left, right, placements } from \"../enums.js\";\nexport function distanceAndSkiddingToXY(placement, rects, offset) {\n var basePlacement = getBasePlacement(placement);\n var invertDistance = [left, top].indexOf(basePlacement) >= 0 ? -1 : 1;\n\n var _ref = typeof offset === 'function' ? offset(Object.assign({}, rects, {\n placement: placement\n })) : offset,\n skidding = _ref[0],\n distance = _ref[1];\n\n skidding = skidding || 0;\n distance = (distance || 0) * invertDistance;\n return [left, right].indexOf(basePlacement) >= 0 ? {\n x: distance,\n y: skidding\n } : {\n x: skidding,\n y: distance\n };\n}\n\nfunction offset(_ref2) {\n var state = _ref2.state,\n options = _ref2.options,\n name = _ref2.name;\n var _options$offset = options.offset,\n offset = _options$offset === void 0 ? [0, 0] : _options$offset;\n var data = placements.reduce(function (acc, placement) {\n acc[placement] = distanceAndSkiddingToXY(placement, state.rects, offset);\n return acc;\n }, {});\n var _data$state$placement = data[state.placement],\n x = _data$state$placement.x,\n y = _data$state$placement.y;\n\n if (state.modifiersData.popperOffsets != null) {\n state.modifiersData.popperOffsets.x += x;\n state.modifiersData.popperOffsets.y += y;\n }\n\n state.modifiersData[name] = data;\n} // eslint-disable-next-line import/no-unused-modules\n\n\nexport default {\n name: 'offset',\n enabled: true,\n phase: 'main',\n requires: ['popperOffsets'],\n fn: offset\n};","import computeOffsets from \"../utils/computeOffsets.js\";\n\nfunction popperOffsets(_ref) {\n var state = _ref.state,\n name = _ref.name;\n // Offsets are the actual position the popper needs to have to be\n // properly positioned near its reference element\n // This is the most basic placement, and will be adjusted by\n // the modifiers in the next step\n state.modifiersData[name] = computeOffsets({\n reference: state.rects.reference,\n element: state.rects.popper,\n strategy: 'absolute',\n placement: state.placement\n });\n} // eslint-disable-next-line import/no-unused-modules\n\n\nexport default {\n name: 'popperOffsets',\n enabled: true,\n phase: 'read',\n fn: popperOffsets,\n data: {}\n};","import { top, left, right, bottom, start } from \"../enums.js\";\nimport getBasePlacement from \"../utils/getBasePlacement.js\";\nimport getMainAxisFromPlacement from \"../utils/getMainAxisFromPlacement.js\";\nimport getAltAxis from \"../utils/getAltAxis.js\";\nimport within from \"../utils/within.js\";\nimport getLayoutRect from \"../dom-utils/getLayoutRect.js\";\nimport getOffsetParent from \"../dom-utils/getOffsetParent.js\";\nimport detectOverflow from \"../utils/detectOverflow.js\";\nimport getVariation from \"../utils/getVariation.js\";\nimport getFreshSideObject from \"../utils/getFreshSideObject.js\";\nimport { max as mathMax, min as mathMin } from \"../utils/math.js\";\n\nfunction preventOverflow(_ref) {\n var state = _ref.state,\n options = _ref.options,\n name = _ref.name;\n var _options$mainAxis = options.mainAxis,\n checkMainAxis = _options$mainAxis === void 0 ? true : _options$mainAxis,\n _options$altAxis = options.altAxis,\n checkAltAxis = _options$altAxis === void 0 ? false : _options$altAxis,\n boundary = options.boundary,\n rootBoundary = options.rootBoundary,\n altBoundary = options.altBoundary,\n padding = options.padding,\n _options$tether = options.tether,\n tether = _options$tether === void 0 ? true : _options$tether,\n _options$tetherOffset = options.tetherOffset,\n tetherOffset = _options$tetherOffset === void 0 ? 0 : _options$tetherOffset;\n var overflow = detectOverflow(state, {\n boundary: boundary,\n rootBoundary: rootBoundary,\n padding: padding,\n altBoundary: altBoundary\n });\n var basePlacement = getBasePlacement(state.placement);\n var variation = getVariation(state.placement);\n var isBasePlacement = !variation;\n var mainAxis = getMainAxisFromPlacement(basePlacement);\n var altAxis = getAltAxis(mainAxis);\n var popperOffsets = state.modifiersData.popperOffsets;\n var referenceRect = state.rects.reference;\n var popperRect = state.rects.popper;\n var tetherOffsetValue = typeof tetherOffset === 'function' ? tetherOffset(Object.assign({}, state.rects, {\n placement: state.placement\n })) : tetherOffset;\n var data = {\n x: 0,\n y: 0\n };\n\n if (!popperOffsets) {\n return;\n }\n\n if (checkMainAxis || checkAltAxis) {\n var mainSide = mainAxis === 'y' ? top : left;\n var altSide = mainAxis === 'y' ? bottom : right;\n var len = mainAxis === 'y' ? 'height' : 'width';\n var offset = popperOffsets[mainAxis];\n var min = popperOffsets[mainAxis] + overflow[mainSide];\n var max = popperOffsets[mainAxis] - overflow[altSide];\n var additive = tether ? -popperRect[len] / 2 : 0;\n var minLen = variation === start ? referenceRect[len] : popperRect[len];\n var maxLen = variation === start ? -popperRect[len] : -referenceRect[len]; // We need to include the arrow in the calculation so the arrow doesn't go\n // outside the reference bounds\n\n var arrowElement = state.elements.arrow;\n var arrowRect = tether && arrowElement ? getLayoutRect(arrowElement) : {\n width: 0,\n height: 0\n };\n var arrowPaddingObject = state.modifiersData['arrow#persistent'] ? state.modifiersData['arrow#persistent'].padding : getFreshSideObject();\n var arrowPaddingMin = arrowPaddingObject[mainSide];\n var arrowPaddingMax = arrowPaddingObject[altSide]; // If the reference length is smaller than the arrow length, we don't want\n // to include its full size in the calculation. If the reference is small\n // and near the edge of a boundary, the popper can overflow even if the\n // reference is not overflowing as well (e.g. virtual elements with no\n // width or height)\n\n var arrowLen = within(0, referenceRect[len], arrowRect[len]);\n var minOffset = isBasePlacement ? referenceRect[len] / 2 - additive - arrowLen - arrowPaddingMin - tetherOffsetValue : minLen - arrowLen - arrowPaddingMin - tetherOffsetValue;\n var maxOffset = isBasePlacement ? -referenceRect[len] / 2 + additive + arrowLen + arrowPaddingMax + tetherOffsetValue : maxLen + arrowLen + arrowPaddingMax + tetherOffsetValue;\n var arrowOffsetParent = state.elements.arrow && getOffsetParent(state.elements.arrow);\n var clientOffset = arrowOffsetParent ? mainAxis === 'y' ? arrowOffsetParent.clientTop || 0 : arrowOffsetParent.clientLeft || 0 : 0;\n var offsetModifierValue = state.modifiersData.offset ? state.modifiersData.offset[state.placement][mainAxis] : 0;\n var tetherMin = popperOffsets[mainAxis] + minOffset - offsetModifierValue - clientOffset;\n var tetherMax = popperOffsets[mainAxis] + maxOffset - offsetModifierValue;\n\n if (checkMainAxis) {\n var preventedOffset = within(tether ? mathMin(min, tetherMin) : min, offset, tether ? mathMax(max, tetherMax) : max);\n popperOffsets[mainAxis] = preventedOffset;\n data[mainAxis] = preventedOffset - offset;\n }\n\n if (checkAltAxis) {\n var _mainSide = mainAxis === 'x' ? top : left;\n\n var _altSide = mainAxis === 'x' ? bottom : right;\n\n var _offset = popperOffsets[altAxis];\n\n var _min = _offset + overflow[_mainSide];\n\n var _max = _offset - overflow[_altSide];\n\n var _preventedOffset = within(tether ? mathMin(_min, tetherMin) : _min, _offset, tether ? mathMax(_max, tetherMax) : _max);\n\n popperOffsets[altAxis] = _preventedOffset;\n data[altAxis] = _preventedOffset - _offset;\n }\n }\n\n state.modifiersData[name] = data;\n} // eslint-disable-next-line import/no-unused-modules\n\n\nexport default {\n name: 'preventOverflow',\n enabled: true,\n phase: 'main',\n fn: preventOverflow,\n requiresIfExists: ['offset']\n};","import { popperGenerator, detectOverflow } from \"./createPopper.js\";\nimport eventListeners from \"./modifiers/eventListeners.js\";\nimport popperOffsets from \"./modifiers/popperOffsets.js\";\nimport computeStyles from \"./modifiers/computeStyles.js\";\nimport applyStyles from \"./modifiers/applyStyles.js\";\nimport offset from \"./modifiers/offset.js\";\nimport flip from \"./modifiers/flip.js\";\nimport preventOverflow from \"./modifiers/preventOverflow.js\";\nimport arrow from \"./modifiers/arrow.js\";\nimport hide from \"./modifiers/hide.js\";\nvar defaultModifiers = [eventListeners, popperOffsets, computeStyles, applyStyles, offset, flip, preventOverflow, arrow, hide];\nvar createPopper = /*#__PURE__*/popperGenerator({\n defaultModifiers: defaultModifiers\n}); // eslint-disable-next-line import/no-unused-modules\n\nexport { createPopper, popperGenerator, defaultModifiers, detectOverflow }; // eslint-disable-next-line import/no-unused-modules\n\nexport { createPopper as createPopperLite } from \"./popper-lite.js\"; // eslint-disable-next-line import/no-unused-modules\n\nexport * from \"./modifiers/index.js\";","import getVariation from \"./getVariation.js\";\nimport { variationPlacements, basePlacements, placements as allPlacements } from \"../enums.js\";\nimport detectOverflow from \"./detectOverflow.js\";\nimport getBasePlacement from \"./getBasePlacement.js\";\nexport default function computeAutoPlacement(state, options) {\n if (options === void 0) {\n options = {};\n }\n\n var _options = options,\n placement = _options.placement,\n boundary = _options.boundary,\n rootBoundary = _options.rootBoundary,\n padding = _options.padding,\n flipVariations = _options.flipVariations,\n _options$allowedAutoP = _options.allowedAutoPlacements,\n allowedAutoPlacements = _options$allowedAutoP === void 0 ? allPlacements : _options$allowedAutoP;\n var variation = getVariation(placement);\n var placements = variation ? flipVariations ? variationPlacements : variationPlacements.filter(function (placement) {\n return getVariation(placement) === variation;\n }) : basePlacements;\n var allowedPlacements = placements.filter(function (placement) {\n return allowedAutoPlacements.indexOf(placement) >= 0;\n });\n\n if (allowedPlacements.length === 0) {\n allowedPlacements = placements;\n\n if (process.env.NODE_ENV !== \"production\") {\n console.error(['Popper: The `allowedAutoPlacements` option did not allow any', 'placements. Ensure the `placement` option matches the variation', 'of the allowed placements.', 'For example, \"auto\" cannot be used to allow \"bottom-start\".', 'Use \"auto-start\" instead.'].join(' '));\n }\n } // $FlowFixMe[incompatible-type]: Flow seems to have problems with two array unions...\n\n\n var overflows = allowedPlacements.reduce(function (acc, placement) {\n acc[placement] = detectOverflow(state, {\n placement: placement,\n boundary: boundary,\n rootBoundary: rootBoundary,\n padding: padding\n })[getBasePlacement(placement)];\n return acc;\n }, {});\n return Object.keys(overflows).sort(function (a, b) {\n return overflows[a] - overflows[b];\n });\n}","import getBasePlacement from \"./getBasePlacement.js\";\nimport getVariation from \"./getVariation.js\";\nimport getMainAxisFromPlacement from \"./getMainAxisFromPlacement.js\";\nimport { top, right, bottom, left, start, end } from \"../enums.js\";\nexport default function computeOffsets(_ref) {\n var reference = _ref.reference,\n element = _ref.element,\n placement = _ref.placement;\n var basePlacement = placement ? getBasePlacement(placement) : null;\n var variation = placement ? getVariation(placement) : null;\n var commonX = reference.x + reference.width / 2 - element.width / 2;\n var commonY = reference.y + reference.height / 2 - element.height / 2;\n var offsets;\n\n switch (basePlacement) {\n case top:\n offsets = {\n x: commonX,\n y: reference.y - element.height\n };\n break;\n\n case bottom:\n offsets = {\n x: commonX,\n y: reference.y + reference.height\n };\n break;\n\n case right:\n offsets = {\n x: reference.x + reference.width,\n y: commonY\n };\n break;\n\n case left:\n offsets = {\n x: reference.x - element.width,\n y: commonY\n };\n break;\n\n default:\n offsets = {\n x: reference.x,\n y: reference.y\n };\n }\n\n var mainAxis = basePlacement ? getMainAxisFromPlacement(basePlacement) : null;\n\n if (mainAxis != null) {\n var len = mainAxis === 'y' ? 'height' : 'width';\n\n switch (variation) {\n case start:\n offsets[mainAxis] = offsets[mainAxis] - (reference[len] / 2 - element[len] / 2);\n break;\n\n case end:\n offsets[mainAxis] = offsets[mainAxis] + (reference[len] / 2 - element[len] / 2);\n break;\n\n default:\n }\n }\n\n return offsets;\n}","export default function debounce(fn) {\n var pending;\n return function () {\n if (!pending) {\n pending = new Promise(function (resolve) {\n Promise.resolve().then(function () {\n pending = undefined;\n resolve(fn());\n });\n });\n }\n\n return pending;\n };\n}","import getClippingRect from \"../dom-utils/getClippingRect.js\";\nimport getDocumentElement from \"../dom-utils/getDocumentElement.js\";\nimport getBoundingClientRect from \"../dom-utils/getBoundingClientRect.js\";\nimport computeOffsets from \"./computeOffsets.js\";\nimport rectToClientRect from \"./rectToClientRect.js\";\nimport { clippingParents, reference, popper, bottom, top, right, basePlacements, viewport } from \"../enums.js\";\nimport { isElement } from \"../dom-utils/instanceOf.js\";\nimport mergePaddingObject from \"./mergePaddingObject.js\";\nimport expandToHashMap from \"./expandToHashMap.js\"; // eslint-disable-next-line import/no-unused-modules\n\nexport default function detectOverflow(state, options) {\n if (options === void 0) {\n options = {};\n }\n\n var _options = options,\n _options$placement = _options.placement,\n placement = _options$placement === void 0 ? state.placement : _options$placement,\n _options$boundary = _options.boundary,\n boundary = _options$boundary === void 0 ? clippingParents : _options$boundary,\n _options$rootBoundary = _options.rootBoundary,\n rootBoundary = _options$rootBoundary === void 0 ? viewport : _options$rootBoundary,\n _options$elementConte = _options.elementContext,\n elementContext = _options$elementConte === void 0 ? popper : _options$elementConte,\n _options$altBoundary = _options.altBoundary,\n altBoundary = _options$altBoundary === void 0 ? false : _options$altBoundary,\n _options$padding = _options.padding,\n padding = _options$padding === void 0 ? 0 : _options$padding;\n var paddingObject = mergePaddingObject(typeof padding !== 'number' ? padding : expandToHashMap(padding, basePlacements));\n var altContext = elementContext === popper ? reference : popper;\n var popperRect = state.rects.popper;\n var element = state.elements[altBoundary ? altContext : elementContext];\n var clippingClientRect = getClippingRect(isElement(element) ? element : element.contextElement || getDocumentElement(state.elements.popper), boundary, rootBoundary);\n var referenceClientRect = getBoundingClientRect(state.elements.reference);\n var popperOffsets = computeOffsets({\n reference: referenceClientRect,\n element: popperRect,\n strategy: 'absolute',\n placement: placement\n });\n var popperClientRect = rectToClientRect(Object.assign({}, popperRect, popperOffsets));\n var elementClientRect = elementContext === popper ? popperClientRect : referenceClientRect; // positive = overflowing the clipping rect\n // 0 or negative = within the clipping rect\n\n var overflowOffsets = {\n top: clippingClientRect.top - elementClientRect.top + paddingObject.top,\n bottom: elementClientRect.bottom - clippingClientRect.bottom + paddingObject.bottom,\n left: clippingClientRect.left - elementClientRect.left + paddingObject.left,\n right: elementClientRect.right - clippingClientRect.right + paddingObject.right\n };\n var offsetData = state.modifiersData.offset; // Offsets can be applied only to the popper element\n\n if (elementContext === popper && offsetData) {\n var offset = offsetData[placement];\n Object.keys(overflowOffsets).forEach(function (key) {\n var multiply = [right, bottom].indexOf(key) >= 0 ? 1 : -1;\n var axis = [top, bottom].indexOf(key) >= 0 ? 'y' : 'x';\n overflowOffsets[key] += offset[axis] * multiply;\n });\n }\n\n return overflowOffsets;\n}","export default function expandToHashMap(value, keys) {\n return keys.reduce(function (hashMap, key) {\n hashMap[key] = value;\n return hashMap;\n }, {});\n}","export default function getAltAxis(axis) {\n return axis === 'x' ? 'y' : 'x';\n}","import { auto } from \"../enums.js\";\nexport default function getBasePlacement(placement) {\n return placement.split('-')[0];\n}","export default function getFreshSideObject() {\n return {\n top: 0,\n right: 0,\n bottom: 0,\n left: 0\n };\n}","export default function getMainAxisFromPlacement(placement) {\n return ['top', 'bottom'].indexOf(placement) >= 0 ? 'x' : 'y';\n}","var hash = {\n left: 'right',\n right: 'left',\n bottom: 'top',\n top: 'bottom'\n};\nexport default function getOppositePlacement(placement) {\n return placement.replace(/left|right|bottom|top/g, function (matched) {\n return hash[matched];\n });\n}","var hash = {\n start: 'end',\n end: 'start'\n};\nexport default function getOppositeVariationPlacement(placement) {\n return placement.replace(/start|end/g, function (matched) {\n return hash[matched];\n });\n}","export default function getVariation(placement) {\n return placement.split('-')[1];\n}","export var max = Math.max;\nexport var min = Math.min;\nexport var round = Math.round;","export default function mergeByName(modifiers) {\n var merged = modifiers.reduce(function (merged, current) {\n var existing = merged[current.name];\n merged[current.name] = existing ? Object.assign({}, existing, current, {\n options: Object.assign({}, existing.options, current.options),\n data: Object.assign({}, existing.data, current.data)\n }) : current;\n return merged;\n }, {}); // IE11 does not support Object.values\n\n return Object.keys(merged).map(function (key) {\n return merged[key];\n });\n}","import getFreshSideObject from \"./getFreshSideObject.js\";\nexport default function mergePaddingObject(paddingObject) {\n return Object.assign({}, getFreshSideObject(), paddingObject);\n}","import { modifierPhases } from \"../enums.js\"; // source: https://stackoverflow.com/questions/49875255\n\nfunction order(modifiers) {\n var map = new Map();\n var visited = new Set();\n var result = [];\n modifiers.forEach(function (modifier) {\n map.set(modifier.name, modifier);\n }); // On visiting object, check for its dependencies and visit them recursively\n\n function sort(modifier) {\n visited.add(modifier.name);\n var requires = [].concat(modifier.requires || [], modifier.requiresIfExists || []);\n requires.forEach(function (dep) {\n if (!visited.has(dep)) {\n var depModifier = map.get(dep);\n\n if (depModifier) {\n sort(depModifier);\n }\n }\n });\n result.push(modifier);\n }\n\n modifiers.forEach(function (modifier) {\n if (!visited.has(modifier.name)) {\n // check for visited object\n sort(modifier);\n }\n });\n return result;\n}\n\nexport default function orderModifiers(modifiers) {\n // order based on dependencies\n var orderedModifiers = order(modifiers); // order based on phase\n\n return modifierPhases.reduce(function (acc, phase) {\n return acc.concat(orderedModifiers.filter(function (modifier) {\n return modifier.phase === phase;\n }));\n }, []);\n}","export default function rectToClientRect(rect) {\n return Object.assign({}, rect, {\n left: rect.x,\n top: rect.y,\n right: rect.x + rect.width,\n bottom: rect.y + rect.height\n });\n}","import { max as mathMax, min as mathMin } from \"./math.js\";\nexport default function within(min, value, max) {\n return mathMax(min, mathMin(value, max));\n}","import postfix from '@tannin/postfix';\nimport evaluate from '@tannin/evaluate';\n\n/**\n * Given a C expression, returns a function which can be called to evaluate its\n * result.\n *\n * @example\n *\n * ```js\n * import compile from '@tannin/compile';\n *\n * const evaluate = compile( 'n > 1' );\n *\n * evaluate( { n: 2 } );\n * // ⇒ true\n * ```\n *\n * @param {string} expression C expression.\n *\n * @return {(variables?:{[variable:string]:*})=>*} Compiled evaluator.\n */\nexport default function compile( expression ) {\n\tvar terms = postfix( expression );\n\n\treturn function( variables ) {\n\t\treturn evaluate( terms, variables );\n\t};\n}\n","/**\n * Operator callback functions.\n *\n * @type {Object}\n */\nvar OPERATORS = {\n\t'!': function( a ) {\n\t\treturn ! a;\n\t},\n\t'*': function( a, b ) {\n\t\treturn a * b;\n\t},\n\t'/': function( a, b ) {\n\t\treturn a / b;\n\t},\n\t'%': function( a, b ) {\n\t\treturn a % b;\n\t},\n\t'+': function( a, b ) {\n\t\treturn a + b;\n\t},\n\t'-': function( a, b ) {\n\t\treturn a - b;\n\t},\n\t'<': function( a, b ) {\n\t\treturn a < b;\n\t},\n\t'<=': function( a, b ) {\n\t\treturn a <= b;\n\t},\n\t'>': function( a, b ) {\n\t\treturn a > b;\n\t},\n\t'>=': function( a, b ) {\n\t\treturn a >= b;\n\t},\n\t'==': function( a, b ) {\n\t\treturn a === b;\n\t},\n\t'!=': function( a, b ) {\n\t\treturn a !== b;\n\t},\n\t'&&': function( a, b ) {\n\t\treturn a && b;\n\t},\n\t'||': function( a, b ) {\n\t\treturn a || b;\n\t},\n\t'?:': function( a, b, c ) {\n\t\tif ( a ) {\n\t\t\tthrow b;\n\t\t}\n\n\t\treturn c;\n\t},\n};\n\n/**\n * Given an array of postfix terms and operand variables, returns the result of\n * the postfix evaluation.\n *\n * @example\n *\n * ```js\n * import evaluate from '@tannin/evaluate';\n *\n * // 3 + 4 * 5 / 6 ⇒ '3 4 5 * 6 / +'\n * const terms = [ '3', '4', '5', '*', '6', '/', '+' ];\n *\n * evaluate( terms, {} );\n * // ⇒ 6.333333333333334\n * ```\n *\n * @param {string[]} postfix Postfix terms.\n * @param {Object} variables Operand variables.\n *\n * @return {*} Result of evaluation.\n */\nexport default function evaluate( postfix, variables ) {\n\tvar stack = [],\n\t\ti, j, args, getOperatorResult, term, value;\n\n\tfor ( i = 0; i < postfix.length; i++ ) {\n\t\tterm = postfix[ i ];\n\n\t\tgetOperatorResult = OPERATORS[ term ];\n\t\tif ( getOperatorResult ) {\n\t\t\t// Pop from stack by number of function arguments.\n\t\t\tj = getOperatorResult.length;\n\t\t\targs = Array( j );\n\t\t\twhile ( j-- ) {\n\t\t\t\targs[ j ] = stack.pop();\n\t\t\t}\n\n\t\t\ttry {\n\t\t\t\tvalue = getOperatorResult.apply( null, args );\n\t\t\t} catch ( earlyReturn ) {\n\t\t\t\treturn earlyReturn;\n\t\t\t}\n\t\t} else if ( variables.hasOwnProperty( term ) ) {\n\t\t\tvalue = variables[ term ];\n\t\t} else {\n\t\t\tvalue = +term;\n\t\t}\n\n\t\tstack.push( value );\n\t}\n\n\treturn stack[ 0 ];\n}\n","import compile from '@tannin/compile';\n\n/**\n * Given a C expression, returns a function which, when called with a value,\n * evaluates the result with the value assumed to be the \"n\" variable of the\n * expression. The result will be coerced to its numeric equivalent.\n *\n * @param {string} expression C expression.\n *\n * @return {Function} Evaluator function.\n */\nexport default function pluralForms( expression ) {\n\tvar evaluate = compile( expression );\n\n\treturn function( n ) {\n\t\treturn +evaluate( { n: n } );\n\t};\n}\n","var PRECEDENCE, OPENERS, TERMINATORS, PATTERN;\n\n/**\n * Operator precedence mapping.\n *\n * @type {Object}\n */\nPRECEDENCE = {\n\t'(': 9,\n\t'!': 8,\n\t'*': 7,\n\t'/': 7,\n\t'%': 7,\n\t'+': 6,\n\t'-': 6,\n\t'<': 5,\n\t'<=': 5,\n\t'>': 5,\n\t'>=': 5,\n\t'==': 4,\n\t'!=': 4,\n\t'&&': 3,\n\t'||': 2,\n\t'?': 1,\n\t'?:': 1,\n};\n\n/**\n * Characters which signal pair opening, to be terminated by terminators.\n *\n * @type {string[]}\n */\nOPENERS = [ '(', '?' ];\n\n/**\n * Characters which signal pair termination, the value an array with the\n * opener as its first member. The second member is an optional operator\n * replacement to push to the stack.\n *\n * @type {string[]}\n */\nTERMINATORS = {\n\t')': [ '(' ],\n\t':': [ '?', '?:' ],\n};\n\n/**\n * Pattern matching operators and openers.\n *\n * @type {RegExp}\n */\nPATTERN = /<=|>=|==|!=|&&|\\|\\||\\?:|\\(|!|\\*|\\/|%|\\+|-|<|>|\\?|\\)|:/;\n\n/**\n * Given a C expression, returns the equivalent postfix (Reverse Polish)\n * notation terms as an array.\n *\n * If a postfix string is desired, simply `.join( ' ' )` the result.\n *\n * @example\n *\n * ```js\n * import postfix from '@tannin/postfix';\n *\n * postfix( 'n > 1' );\n * // ⇒ [ 'n', '1', '>' ]\n * ```\n *\n * @param {string} expression C expression.\n *\n * @return {string[]} Postfix terms.\n */\nexport default function postfix( expression ) {\n\tvar terms = [],\n\t\tstack = [],\n\t\tmatch, operator, term, element;\n\n\twhile ( ( match = expression.match( PATTERN ) ) ) {\n\t\toperator = match[ 0 ];\n\n\t\t// Term is the string preceding the operator match. It may contain\n\t\t// whitespace, and may be empty (if operator is at beginning).\n\t\tterm = expression.substr( 0, match.index ).trim();\n\t\tif ( term ) {\n\t\t\tterms.push( term );\n\t\t}\n\n\t\twhile ( ( element = stack.pop() ) ) {\n\t\t\tif ( TERMINATORS[ operator ] ) {\n\t\t\t\tif ( TERMINATORS[ operator ][ 0 ] === element ) {\n\t\t\t\t\t// Substitution works here under assumption that because\n\t\t\t\t\t// the assigned operator will no longer be a terminator, it\n\t\t\t\t\t// will be pushed to the stack during the condition below.\n\t\t\t\t\toperator = TERMINATORS[ operator ][ 1 ] || operator;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t} else if ( OPENERS.indexOf( element ) >= 0 || PRECEDENCE[ element ] < PRECEDENCE[ operator ] ) {\n\t\t\t\t// Push to stack if either an opener or when pop reveals an\n\t\t\t\t// element of lower precedence.\n\t\t\t\tstack.push( element );\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\t// For each popped from stack, push to terms.\n\t\t\tterms.push( element );\n\t\t}\n\n\t\tif ( ! TERMINATORS[ operator ] ) {\n\t\t\tstack.push( operator );\n\t\t}\n\n\t\t// Slice matched fragment from expression to continue match.\n\t\texpression = expression.substr( match.index + operator.length );\n\t}\n\n\t// Push remainder of operand, if exists, to terms.\n\texpression = expression.trim();\n\tif ( expression ) {\n\t\tterms.push( expression );\n\t}\n\n\t// Pop remaining items from stack into terms.\n\treturn terms.concat( stack.reverse() );\n}\n","/**\n * Regular expression matching format placeholder syntax.\n *\n * The pattern for matching named arguments is a naive and incomplete matcher\n * against valid JavaScript identifier names.\n *\n * via Mathias Bynens:\n *\n * >An identifier must start with $, _, or any character in the Unicode\n * >categories “Uppercase letter (Lu)”, “Lowercase letter (Ll)”, “Titlecase\n * >letter (Lt)”, “Modifier letter (Lm)”, “Other letter (Lo)”, or “Letter\n * >number (Nl)”.\n * >\n * >The rest of the string can contain the same characters, plus any U+200C zero\n * >width non-joiner characters, U+200D zero width joiner characters, and\n * >characters in the Unicode categories “Non-spacing mark (Mn)”, “Spacing\n * >combining mark (Mc)”, “Decimal digit number (Nd)”, or “Connector\n * >punctuation (Pc)”.\n *\n * If browser support is constrained to those supporting ES2015, this could be\n * made more accurate using the `u` flag:\n *\n * ```\n * /^[$_\\p{L}\\p{Nl}][$_\\p{L}\\p{Nl}\\u200C\\u200D\\p{Mn}\\p{Mc}\\p{Nd}\\p{Pc}]*$/u;\n * ```\n *\n * @see http://www.pixelbeat.org/programming/gcc/format_specs.html\n * @see https://mathiasbynens.be/notes/javascript-identifiers#valid-identifier-names\n *\n * @type {RegExp}\n */\nvar PATTERN = /%(((\\d+)\\$)|(\\(([$_a-zA-Z][$_a-zA-Z0-9]*)\\)))?[ +0#-]*\\d*(\\.(\\d+|\\*))?(ll|[lhqL])?([cduxXefgsp%])/g;\n// ▲ ▲ ▲ ▲ ▲ ▲ ▲ type\n// │ │ │ │ │ └ Length (unsupported)\n// │ │ │ │ └ Precision / max width\n// │ │ │ └ Min width (unsupported)\n// │ │ └ Flags (unsupported)\n// └ Index └ Name (for named arguments)\n\n/**\n * Given a format string, returns string with arguments interpolatation.\n * Arguments can either be provided directly via function arguments spread, or\n * with an array as the second argument.\n *\n * @see https://en.wikipedia.org/wiki/Printf_format_string\n *\n * @example\n *\n * ```js\n * import sprintf from '@tannin/sprintf';\n *\n * sprintf( 'Hello %s!', 'world' );\n * // ⇒ 'Hello world!'\n * ```\n *\n * @param {string} string printf format string\n * @param {Array} [args] String arguments.\n *\n * @return {string} Formatted string.\n */\nexport default function sprintf( string, args ) {\n\tvar i;\n\n\tif ( ! Array.isArray( args ) ) {\n\t\t// Construct a copy of arguments from index one, used for replace\n\t\t// function placeholder substitution.\n\t\targs = new Array( arguments.length - 1 );\n\t\tfor ( i = 1; i < arguments.length; i++ ) {\n\t\t\targs[ i - 1 ] = arguments[ i ];\n\t\t}\n\t}\n\n\ti = 1;\n\n\treturn string.replace( PATTERN, function() {\n\t\tvar index, name, precision, type, value;\n\n\t\tindex = arguments[ 3 ];\n\t\tname = arguments[ 5 ];\n\t\tprecision = arguments[ 7 ];\n\t\ttype = arguments[ 9 ];\n\n\t\t// There's no placeholder substitution in the explicit \"%\", meaning it\n\t\t// is not necessary to increment argument index.\n\t\tif ( type === '%' ) {\n\t\t\treturn '%';\n\t\t}\n\n\t\t// Asterisk precision determined by peeking / shifting next argument.\n\t\tif ( precision === '*' ) {\n\t\t\tprecision = args[ i - 1 ];\n\t\t\ti++;\n\t\t}\n\n\t\tif ( name !== undefined ) {\n\t\t\t// If it's a named argument, use name.\n\t\t\tif ( args[ 0 ] && typeof args[ 0 ] === 'object' &&\n\t\t\t\t\targs[ 0 ].hasOwnProperty( name ) ) {\n\t\t\t\tvalue = args[ 0 ][ name ];\n\t\t\t}\n\t\t} else {\n\t\t\t// If not a positional argument, use counter value.\n\t\t\tif ( index === undefined ) {\n\t\t\t\tindex = i;\n\t\t\t}\n\n\t\t\ti++;\n\n\t\t\t// Positional argument.\n\t\t\tvalue = args[ index - 1 ];\n\t\t}\n\n\t\t// Parse as type.\n\t\tif ( type === 'f' ) {\n\t\t\tvalue = parseFloat( value ) || 0;\n\t\t} else if ( type === 'd' ) {\n\t\t\tvalue = parseInt( value ) || 0;\n\t\t}\n\n\t\t// Apply precision.\n\t\tif ( precision !== undefined ) {\n\t\t\tif ( type === 'f' ) {\n\t\t\t\tvalue = value.toFixed( precision );\n\t\t\t} else if ( type === 's' ) {\n\t\t\t\tvalue = value.substr( 0, precision );\n\t\t\t}\n\t\t}\n\n\t\t// To avoid \"undefined\" concatenation, return empty string if no\n\t\t// placeholder substitution can be performed.\n\t\treturn value !== undefined && value !== null ? value : '';\n\t} );\n}\n","/**\n * WordPress dependencies\n */\nimport { cloneElement } from '@wordpress/element';\n/** @typedef {{icon: JSX.Element, size?: number} & import('@wordpress/primitives').SVGProps} IconProps */\n\n/**\n * Return an SVG icon.\n *\n * @param {IconProps} props icon is the SVG component to render\n * size is a number specifiying the icon size in pixels\n * Other props will be passed to wrapped SVG component\n *\n * @return {JSX.Element} Icon component\n */\n\nfunction Icon(_ref) {\n let {\n icon,\n size = 24,\n ...props\n } = _ref;\n return cloneElement(icon, {\n width: size,\n height: size,\n ...props\n });\n}\n\nexport default Icon;\n//# sourceMappingURL=index.js.map","import { createElement } from \"@wordpress/element\";\n\n/**\n * WordPress dependencies\n */\nimport { SVG, Path } from '@wordpress/primitives';\nconst close = createElement(SVG, {\n xmlns: \"http://www.w3.org/2000/svg\",\n viewBox: \"0 0 24 24\"\n}, createElement(Path, {\n d: \"M13 11.8l6.1-6.3-1-1-6.1 6.2-6.1-6.2-1 1 6.1 6.3-6.5 6.7 1 1 6.5-6.6 6.5 6.6 1-1z\"\n}));\nexport default close;\n//# sourceMappingURL=close.js.map","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport { createElement } from \"@wordpress/element\";\n\n/**\n * External dependencies\n */\n\n/**\n * WordPress dependencies\n */\nimport { createContext, useContext, useEffect, useMemo, useReducer } from '@wordpress/element';\nimport { defaultI18n } from '@wordpress/i18n';\n\n/**\n * Utility to make a new context value\n *\n * @param i18n\n */\nfunction makeContextValue(i18n) {\n return {\n __: i18n.__.bind(i18n),\n _x: i18n._x.bind(i18n),\n _n: i18n._n.bind(i18n),\n _nx: i18n._nx.bind(i18n),\n isRTL: i18n.isRTL.bind(i18n),\n hasTranslation: i18n.hasTranslation.bind(i18n)\n };\n}\n\nconst I18nContext = createContext(makeContextValue(defaultI18n));\n\n/**\n * The `I18nProvider` should be mounted above any localized components:\n *\n * @example\n * ```js\n * import { createI18n } from '@wordpress/react-i18n';\n * import { I18nProvider } from '@wordpress/react-i18n';\n * const i18n = createI18n();\n *\n * ReactDom.render(\n * \t<I18nProvider i18n={ i18n }>\n * \t\t<App />\n * \t</I18nProvider>,\n * \tel\n * );\n * ```\n *\n * You can also instantiate the provider without the `i18n` prop. In that case it will use the\n * default `I18n` instance exported from `@wordpress/i18n`.\n *\n * @param props i18n provider props.\n * @return Children wrapped in the I18nProvider.\n */\nexport function I18nProvider(props) {\n const {\n children,\n i18n = defaultI18n\n } = props;\n const [update, forceUpdate] = useReducer(() => [], []); // Rerender translations whenever the i18n instance fires a change event.\n\n useEffect(() => i18n.subscribe(forceUpdate), [i18n]);\n const value = useMemo(() => makeContextValue(i18n), [i18n, update]);\n return createElement(I18nContext.Provider, {\n value: value\n }, children);\n}\n/**\n * React hook providing access to i18n functions. It exposes the `__`, `_x`, `_n`, `_nx`,\n * `isRTL` and `hasTranslation` functions from [`@wordpress/i18n`](../i18n).\n * Refer to their documentation there.\n *\n * @example\n * ```js\n * import { useI18n } from '@wordpress/react-i18n';\n *\n * function MyComponent() {\n * \tconst { __ } = useI18n();\n * \treturn __( 'Hello, world!' );\n * }\n * ```\n */\n\nexport const useI18n = () => useContext(I18nContext);\n\n/**\n * React higher-order component that passes the i18n translate functions (the same set\n * as exposed by the `useI18n` hook) to the wrapped component as props.\n *\n * @example\n * ```js\n * import { withI18n } from '@wordpress/react-i18n';\n *\n * function MyComponent( { __ } ) {\n * \treturn __( 'Hello, world!' );\n * }\n *\n * export default withI18n( MyComponent );\n * ```\n *\n * @param InnerComponent React component to be wrapped and receive the i18n functions like `__`\n * @return The wrapped component\n */\nexport function withI18n(InnerComponent) {\n const EnhancedComponent = props => {\n const i18nProps = useI18n();\n return createElement(InnerComponent, _extends({}, props, i18nProps));\n };\n\n const innerComponentName = InnerComponent.displayName || InnerComponent.name || 'Component';\n EnhancedComponent.displayName = `WithI18n(${innerComponentName})`;\n return EnhancedComponent;\n}\n//# sourceMappingURL=index.js.map","module.exports = {\n \"100\": \"Continue\",\n \"101\": \"Switching Protocols\",\n \"102\": \"Processing\",\n \"200\": \"OK\",\n \"201\": \"Created\",\n \"202\": \"Accepted\",\n \"203\": \"Non-Authoritative Information\",\n \"204\": \"No Content\",\n \"205\": \"Reset Content\",\n \"206\": \"Partial Content\",\n \"207\": \"Multi-Status\",\n \"208\": \"Already Reported\",\n \"226\": \"IM Used\",\n \"300\": \"Multiple Choices\",\n \"301\": \"Moved Permanently\",\n \"302\": \"Found\",\n \"303\": \"See Other\",\n \"304\": \"Not Modified\",\n \"305\": \"Use Proxy\",\n \"307\": \"Temporary Redirect\",\n \"308\": \"Permanent Redirect\",\n \"400\": \"Bad Request\",\n \"401\": \"Unauthorized\",\n \"402\": \"Payment Required\",\n \"403\": \"Forbidden\",\n \"404\": \"Not Found\",\n \"405\": \"Method Not Allowed\",\n \"406\": \"Not Acceptable\",\n \"407\": \"Proxy Authentication Required\",\n \"408\": \"Request Timeout\",\n \"409\": \"Conflict\",\n \"410\": \"Gone\",\n \"411\": \"Length Required\",\n \"412\": \"Precondition Failed\",\n \"413\": \"Payload Too Large\",\n \"414\": \"URI Too Long\",\n \"415\": \"Unsupported Media Type\",\n \"416\": \"Range Not Satisfiable\",\n \"417\": \"Expectation Failed\",\n \"418\": \"I'm a teapot\",\n \"421\": \"Misdirected Request\",\n \"422\": \"Unprocessable Entity\",\n \"423\": \"Locked\",\n \"424\": \"Failed Dependency\",\n \"425\": \"Unordered Collection\",\n \"426\": \"Upgrade Required\",\n \"428\": \"Precondition Required\",\n \"429\": \"Too Many Requests\",\n \"431\": \"Request Header Fields Too Large\",\n \"500\": \"Internal Server Error\",\n \"501\": \"Not Implemented\",\n \"502\": \"Bad Gateway\",\n \"503\": \"Service Unavailable\",\n \"504\": \"Gateway Timeout\",\n \"505\": \"HTTP Version Not Supported\",\n \"506\": \"Variant Also Negotiates\",\n \"507\": \"Insufficient Storage\",\n \"508\": \"Loop Detected\",\n \"509\": \"Bandwidth Limit Exceeded\",\n \"510\": \"Not Extended\",\n \"511\": \"Network Authentication Required\"\n}\n","/*!\n Copyright (c) 2018 Jed Watson.\n Licensed under the MIT License (MIT), see\n http://jedwatson.github.io/classnames\n*/\n/* global define */\n\n(function () {\n\t'use strict';\n\n\tvar hasOwn = {}.hasOwnProperty;\n\n\tfunction classNames() {\n\t\tvar classes = [];\n\n\t\tfor (var i = 0; i < arguments.length; i++) {\n\t\t\tvar arg = arguments[i];\n\t\t\tif (!arg) continue;\n\n\t\t\tvar argType = typeof arg;\n\n\t\t\tif (argType === 'string' || argType === 'number') {\n\t\t\t\tclasses.push(arg);\n\t\t\t} else if (Array.isArray(arg)) {\n\t\t\t\tif (arg.length) {\n\t\t\t\t\tvar inner = classNames.apply(null, arg);\n\t\t\t\t\tif (inner) {\n\t\t\t\t\t\tclasses.push(inner);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else if (argType === 'object') {\n\t\t\t\tif (arg.toString === Object.prototype.toString) {\n\t\t\t\t\tfor (var key in arg) {\n\t\t\t\t\t\tif (hasOwn.call(arg, key) && arg[key]) {\n\t\t\t\t\t\t\tclasses.push(key);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tclasses.push(arg.toString());\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn classes.join(' ');\n\t}\n\n\tif (typeof module !== 'undefined' && module.exports) {\n\t\tclassNames.default = classNames;\n\t\tmodule.exports = classNames;\n\t} else if (typeof define === 'function' && typeof define.amd === 'object' && define.amd) {\n\t\t// register as 'classnames', consistent with npm package name\n\t\tdefine('classnames', [], function () {\n\t\t\treturn classNames;\n\t\t});\n\t} else {\n\t\twindow.classNames = classNames;\n\t}\n}());\n","/*!\n * cookie\n * Copyright(c) 2012-2014 Roman Shtylman\n * Copyright(c) 2015 Douglas Christopher Wilson\n * MIT Licensed\n */\n\n'use strict';\n\n/**\n * Module exports.\n * @public\n */\n\nexports.parse = parse;\nexports.serialize = serialize;\n\n/**\n * Module variables.\n * @private\n */\n\nvar decode = decodeURIComponent;\nvar encode = encodeURIComponent;\nvar pairSplitRegExp = /; */;\n\n/**\n * RegExp to match field-content in RFC 7230 sec 3.2\n *\n * field-content = field-vchar [ 1*( SP / HTAB ) field-vchar ]\n * field-vchar = VCHAR / obs-text\n * obs-text = %x80-FF\n */\n\nvar fieldContentRegExp = /^[\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+$/;\n\n/**\n * Parse a cookie header.\n *\n * Parse the given cookie header string into an object\n * The object has the various cookies as keys(names) => values\n *\n * @param {string} str\n * @param {object} [options]\n * @return {object}\n * @public\n */\n\nfunction parse(str, options) {\n if (typeof str !== 'string') {\n throw new TypeError('argument str must be a string');\n }\n\n var obj = {}\n var opt = options || {};\n var pairs = str.split(pairSplitRegExp);\n var dec = opt.decode || decode;\n\n for (var i = 0; i < pairs.length; i++) {\n var pair = pairs[i];\n var eq_idx = pair.indexOf('=');\n\n // skip things that don't look like key=value\n if (eq_idx < 0) {\n continue;\n }\n\n var key = pair.substr(0, eq_idx).trim()\n var val = pair.substr(++eq_idx, pair.length).trim();\n\n // quoted values\n if ('\"' == val[0]) {\n val = val.slice(1, -1);\n }\n\n // only assign once\n if (undefined == obj[key]) {\n obj[key] = tryDecode(val, dec);\n }\n }\n\n return obj;\n}\n\n/**\n * Serialize data into a cookie header.\n *\n * Serialize the a name value pair into a cookie string suitable for\n * http headers. An optional options object specified cookie parameters.\n *\n * serialize('foo', 'bar', { httpOnly: true })\n * => \"foo=bar; httpOnly\"\n *\n * @param {string} name\n * @param {string} val\n * @param {object} [options]\n * @return {string}\n * @public\n */\n\nfunction serialize(name, val, options) {\n var opt = options || {};\n var enc = opt.encode || encode;\n\n if (typeof enc !== 'function') {\n throw new TypeError('option encode is invalid');\n }\n\n if (!fieldContentRegExp.test(name)) {\n throw new TypeError('argument name is invalid');\n }\n\n var value = enc(val);\n\n if (value && !fieldContentRegExp.test(value)) {\n throw new TypeError('argument val is invalid');\n }\n\n var str = name + '=' + value;\n\n if (null != opt.maxAge) {\n var maxAge = opt.maxAge - 0;\n\n if (isNaN(maxAge) || !isFinite(maxAge)) {\n throw new TypeError('option maxAge is invalid')\n }\n\n str += '; Max-Age=' + Math.floor(maxAge);\n }\n\n if (opt.domain) {\n if (!fieldContentRegExp.test(opt.domain)) {\n throw new TypeError('option domain is invalid');\n }\n\n str += '; Domain=' + opt.domain;\n }\n\n if (opt.path) {\n if (!fieldContentRegExp.test(opt.path)) {\n throw new TypeError('option path is invalid');\n }\n\n str += '; Path=' + opt.path;\n }\n\n if (opt.expires) {\n if (typeof opt.expires.toUTCString !== 'function') {\n throw new TypeError('option expires is invalid');\n }\n\n str += '; Expires=' + opt.expires.toUTCString();\n }\n\n if (opt.httpOnly) {\n str += '; HttpOnly';\n }\n\n if (opt.secure) {\n str += '; Secure';\n }\n\n if (opt.sameSite) {\n var sameSite = typeof opt.sameSite === 'string'\n ? opt.sameSite.toLowerCase() : opt.sameSite;\n\n switch (sameSite) {\n case true:\n str += '; SameSite=Strict';\n break;\n case 'lax':\n str += '; SameSite=Lax';\n break;\n case 'strict':\n str += '; SameSite=Strict';\n break;\n case 'none':\n str += '; SameSite=None';\n break;\n default:\n throw new TypeError('option sameSite is invalid');\n }\n }\n\n return str;\n}\n\n/**\n * Try decoding a string using a decoding function.\n *\n * @param {string} str\n * @param {function} decode\n * @private\n */\n\nfunction tryDecode(str, decode) {\n try {\n return decode(str);\n } catch (e) {\n return str;\n }\n}\n","/**\n * Helpers.\n */\n\nvar s = 1000;\nvar m = s * 60;\nvar h = m * 60;\nvar d = h * 24;\nvar w = d * 7;\nvar y = d * 365.25;\n\n/**\n * Parse or format the given `val`.\n *\n * Options:\n *\n * - `long` verbose formatting [false]\n *\n * @param {String|Number} val\n * @param {Object} [options]\n * @throws {Error} throw an error if val is not a non-empty string or a number\n * @return {String|Number}\n * @api public\n */\n\nmodule.exports = function(val, options) {\n options = options || {};\n var type = typeof val;\n if (type === 'string' && val.length > 0) {\n return parse(val);\n } else if (type === 'number' && isFinite(val)) {\n return options.long ? fmtLong(val) : fmtShort(val);\n }\n throw new Error(\n 'val is not a non-empty string or a valid number. val=' +\n JSON.stringify(val)\n );\n};\n\n/**\n * Parse the given `str` and return milliseconds.\n *\n * @param {String} str\n * @return {Number}\n * @api private\n */\n\nfunction parse(str) {\n str = String(str);\n if (str.length > 100) {\n return;\n }\n var match = /^(-?(?:\\d+)?\\.?\\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(\n str\n );\n if (!match) {\n return;\n }\n var n = parseFloat(match[1]);\n var type = (match[2] || 'ms').toLowerCase();\n switch (type) {\n case 'years':\n case 'year':\n case 'yrs':\n case 'yr':\n case 'y':\n return n * y;\n case 'weeks':\n case 'week':\n case 'w':\n return n * w;\n case 'days':\n case 'day':\n case 'd':\n return n * d;\n case 'hours':\n case 'hour':\n case 'hrs':\n case 'hr':\n case 'h':\n return n * h;\n case 'minutes':\n case 'minute':\n case 'mins':\n case 'min':\n case 'm':\n return n * m;\n case 'seconds':\n case 'second':\n case 'secs':\n case 'sec':\n case 's':\n return n * s;\n case 'milliseconds':\n case 'millisecond':\n case 'msecs':\n case 'msec':\n case 'ms':\n return n;\n default:\n return undefined;\n }\n}\n\n/**\n * Short format for `ms`.\n *\n * @param {Number} ms\n * @return {String}\n * @api private\n */\n\nfunction fmtShort(ms) {\n var msAbs = Math.abs(ms);\n if (msAbs >= d) {\n return Math.round(ms / d) + 'd';\n }\n if (msAbs >= h) {\n return Math.round(ms / h) + 'h';\n }\n if (msAbs >= m) {\n return Math.round(ms / m) + 'm';\n }\n if (msAbs >= s) {\n return Math.round(ms / s) + 's';\n }\n return ms + 'ms';\n}\n\n/**\n * Long format for `ms`.\n *\n * @param {Number} ms\n * @return {String}\n * @api private\n */\n\nfunction fmtLong(ms) {\n var msAbs = Math.abs(ms);\n if (msAbs >= d) {\n return plural(ms, msAbs, d, 'day');\n }\n if (msAbs >= h) {\n return plural(ms, msAbs, h, 'hour');\n }\n if (msAbs >= m) {\n return plural(ms, msAbs, m, 'minute');\n }\n if (msAbs >= s) {\n return plural(ms, msAbs, s, 'second');\n }\n return ms + ' ms';\n}\n\n/**\n * Pluralization helper.\n */\n\nfunction plural(ms, msAbs, n, name) {\n var isPlural = msAbs >= n * 1.5;\n return Math.round(ms / n) + ' ' + name + (isPlural ? 's' : '');\n}\n","// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n'use strict';\n\nvar R = typeof Reflect === 'object' ? Reflect : null\nvar ReflectApply = R && typeof R.apply === 'function'\n ? R.apply\n : function ReflectApply(target, receiver, args) {\n return Function.prototype.apply.call(target, receiver, args);\n }\n\nvar ReflectOwnKeys\nif (R && typeof R.ownKeys === 'function') {\n ReflectOwnKeys = R.ownKeys\n} else if (Object.getOwnPropertySymbols) {\n ReflectOwnKeys = function ReflectOwnKeys(target) {\n return Object.getOwnPropertyNames(target)\n .concat(Object.getOwnPropertySymbols(target));\n };\n} else {\n ReflectOwnKeys = function ReflectOwnKeys(target) {\n return Object.getOwnPropertyNames(target);\n };\n}\n\nfunction ProcessEmitWarning(warning) {\n if (console && console.warn) console.warn(warning);\n}\n\nvar NumberIsNaN = Number.isNaN || function NumberIsNaN(value) {\n return value !== value;\n}\n\nfunction EventEmitter() {\n EventEmitter.init.call(this);\n}\nmodule.exports = EventEmitter;\nmodule.exports.once = once;\n\n// Backwards-compat with node 0.10.x\nEventEmitter.EventEmitter = EventEmitter;\n\nEventEmitter.prototype._events = undefined;\nEventEmitter.prototype._eventsCount = 0;\nEventEmitter.prototype._maxListeners = undefined;\n\n// By default EventEmitters will print a warning if more than 10 listeners are\n// added to it. This is a useful default which helps finding memory leaks.\nvar defaultMaxListeners = 10;\n\nfunction checkListener(listener) {\n if (typeof listener !== 'function') {\n throw new TypeError('The \"listener\" argument must be of type Function. Received type ' + typeof listener);\n }\n}\n\nObject.defineProperty(EventEmitter, 'defaultMaxListeners', {\n enumerable: true,\n get: function() {\n return defaultMaxListeners;\n },\n set: function(arg) {\n if (typeof arg !== 'number' || arg < 0 || NumberIsNaN(arg)) {\n throw new RangeError('The value of \"defaultMaxListeners\" is out of range. It must be a non-negative number. Received ' + arg + '.');\n }\n defaultMaxListeners = arg;\n }\n});\n\nEventEmitter.init = function() {\n\n if (this._events === undefined ||\n this._events === Object.getPrototypeOf(this)._events) {\n this._events = Object.create(null);\n this._eventsCount = 0;\n }\n\n this._maxListeners = this._maxListeners || undefined;\n};\n\n// Obviously not all Emitters should be limited to 10. This function allows\n// that to be increased. Set to zero for unlimited.\nEventEmitter.prototype.setMaxListeners = function setMaxListeners(n) {\n if (typeof n !== 'number' || n < 0 || NumberIsNaN(n)) {\n throw new RangeError('The value of \"n\" is out of range. It must be a non-negative number. Received ' + n + '.');\n }\n this._maxListeners = n;\n return this;\n};\n\nfunction _getMaxListeners(that) {\n if (that._maxListeners === undefined)\n return EventEmitter.defaultMaxListeners;\n return that._maxListeners;\n}\n\nEventEmitter.prototype.getMaxListeners = function getMaxListeners() {\n return _getMaxListeners(this);\n};\n\nEventEmitter.prototype.emit = function emit(type) {\n var args = [];\n for (var i = 1; i < arguments.length; i++) args.push(arguments[i]);\n var doError = (type === 'error');\n\n var events = this._events;\n if (events !== undefined)\n doError = (doError && events.error === undefined);\n else if (!doError)\n return false;\n\n // If there is no 'error' event listener then throw.\n if (doError) {\n var er;\n if (args.length > 0)\n er = args[0];\n if (er instanceof Error) {\n // Note: The comments on the `throw` lines are intentional, they show\n // up in Node's output if this results in an unhandled exception.\n throw er; // Unhandled 'error' event\n }\n // At least give some kind of context to the user\n var err = new Error('Unhandled error.' + (er ? ' (' + er.message + ')' : ''));\n err.context = er;\n throw err; // Unhandled 'error' event\n }\n\n var handler = events[type];\n\n if (handler === undefined)\n return false;\n\n if (typeof handler === 'function') {\n ReflectApply(handler, this, args);\n } else {\n var len = handler.length;\n var listeners = arrayClone(handler, len);\n for (var i = 0; i < len; ++i)\n ReflectApply(listeners[i], this, args);\n }\n\n return true;\n};\n\nfunction _addListener(target, type, listener, prepend) {\n var m;\n var events;\n var existing;\n\n checkListener(listener);\n\n events = target._events;\n if (events === undefined) {\n events = target._events = Object.create(null);\n target._eventsCount = 0;\n } else {\n // To avoid recursion in the case that type === \"newListener\"! Before\n // adding it to the listeners, first emit \"newListener\".\n if (events.newListener !== undefined) {\n target.emit('newListener', type,\n listener.listener ? listener.listener : listener);\n\n // Re-assign `events` because a newListener handler could have caused the\n // this._events to be assigned to a new object\n events = target._events;\n }\n existing = events[type];\n }\n\n if (existing === undefined) {\n // Optimize the case of one listener. Don't need the extra array object.\n existing = events[type] = listener;\n ++target._eventsCount;\n } else {\n if (typeof existing === 'function') {\n // Adding the second element, need to change to array.\n existing = events[type] =\n prepend ? [listener, existing] : [existing, listener];\n // If we've already got an array, just append.\n } else if (prepend) {\n existing.unshift(listener);\n } else {\n existing.push(listener);\n }\n\n // Check for listener leak\n m = _getMaxListeners(target);\n if (m > 0 && existing.length > m && !existing.warned) {\n existing.warned = true;\n // No error code for this since it is a Warning\n // eslint-disable-next-line no-restricted-syntax\n var w = new Error('Possible EventEmitter memory leak detected. ' +\n existing.length + ' ' + String(type) + ' listeners ' +\n 'added. Use emitter.setMaxListeners() to ' +\n 'increase limit');\n w.name = 'MaxListenersExceededWarning';\n w.emitter = target;\n w.type = type;\n w.count = existing.length;\n ProcessEmitWarning(w);\n }\n }\n\n return target;\n}\n\nEventEmitter.prototype.addListener = function addListener(type, listener) {\n return _addListener(this, type, listener, false);\n};\n\nEventEmitter.prototype.on = EventEmitter.prototype.addListener;\n\nEventEmitter.prototype.prependListener =\n function prependListener(type, listener) {\n return _addListener(this, type, listener, true);\n };\n\nfunction onceWrapper() {\n if (!this.fired) {\n this.target.removeListener(this.type, this.wrapFn);\n this.fired = true;\n if (arguments.length === 0)\n return this.listener.call(this.target);\n return this.listener.apply(this.target, arguments);\n }\n}\n\nfunction _onceWrap(target, type, listener) {\n var state = { fired: false, wrapFn: undefined, target: target, type: type, listener: listener };\n var wrapped = onceWrapper.bind(state);\n wrapped.listener = listener;\n state.wrapFn = wrapped;\n return wrapped;\n}\n\nEventEmitter.prototype.once = function once(type, listener) {\n checkListener(listener);\n this.on(type, _onceWrap(this, type, listener));\n return this;\n};\n\nEventEmitter.prototype.prependOnceListener =\n function prependOnceListener(type, listener) {\n checkListener(listener);\n this.prependListener(type, _onceWrap(this, type, listener));\n return this;\n };\n\n// Emits a 'removeListener' event if and only if the listener was removed.\nEventEmitter.prototype.removeListener =\n function removeListener(type, listener) {\n var list, events, position, i, originalListener;\n\n checkListener(listener);\n\n events = this._events;\n if (events === undefined)\n return this;\n\n list = events[type];\n if (list === undefined)\n return this;\n\n if (list === listener || list.listener === listener) {\n if (--this._eventsCount === 0)\n this._events = Object.create(null);\n else {\n delete events[type];\n if (events.removeListener)\n this.emit('removeListener', type, list.listener || listener);\n }\n } else if (typeof list !== 'function') {\n position = -1;\n\n for (i = list.length - 1; i >= 0; i--) {\n if (list[i] === listener || list[i].listener === listener) {\n originalListener = list[i].listener;\n position = i;\n break;\n }\n }\n\n if (position < 0)\n return this;\n\n if (position === 0)\n list.shift();\n else {\n spliceOne(list, position);\n }\n\n if (list.length === 1)\n events[type] = list[0];\n\n if (events.removeListener !== undefined)\n this.emit('removeListener', type, originalListener || listener);\n }\n\n return this;\n };\n\nEventEmitter.prototype.off = EventEmitter.prototype.removeListener;\n\nEventEmitter.prototype.removeAllListeners =\n function removeAllListeners(type) {\n var listeners, events, i;\n\n events = this._events;\n if (events === undefined)\n return this;\n\n // not listening for removeListener, no need to emit\n if (events.removeListener === undefined) {\n if (arguments.length === 0) {\n this._events = Object.create(null);\n this._eventsCount = 0;\n } else if (events[type] !== undefined) {\n if (--this._eventsCount === 0)\n this._events = Object.create(null);\n else\n delete events[type];\n }\n return this;\n }\n\n // emit removeListener for all listeners on all events\n if (arguments.length === 0) {\n var keys = Object.keys(events);\n var key;\n for (i = 0; i < keys.length; ++i) {\n key = keys[i];\n if (key === 'removeListener') continue;\n this.removeAllListeners(key);\n }\n this.removeAllListeners('removeListener');\n this._events = Object.create(null);\n this._eventsCount = 0;\n return this;\n }\n\n listeners = events[type];\n\n if (typeof listeners === 'function') {\n this.removeListener(type, listeners);\n } else if (listeners !== undefined) {\n // LIFO order\n for (i = listeners.length - 1; i >= 0; i--) {\n this.removeListener(type, listeners[i]);\n }\n }\n\n return this;\n };\n\nfunction _listeners(target, type, unwrap) {\n var events = target._events;\n\n if (events === undefined)\n return [];\n\n var evlistener = events[type];\n if (evlistener === undefined)\n return [];\n\n if (typeof evlistener === 'function')\n return unwrap ? [evlistener.listener || evlistener] : [evlistener];\n\n return unwrap ?\n unwrapListeners(evlistener) : arrayClone(evlistener, evlistener.length);\n}\n\nEventEmitter.prototype.listeners = function listeners(type) {\n return _listeners(this, type, true);\n};\n\nEventEmitter.prototype.rawListeners = function rawListeners(type) {\n return _listeners(this, type, false);\n};\n\nEventEmitter.listenerCount = function(emitter, type) {\n if (typeof emitter.listenerCount === 'function') {\n return emitter.listenerCount(type);\n } else {\n return listenerCount.call(emitter, type);\n }\n};\n\nEventEmitter.prototype.listenerCount = listenerCount;\nfunction listenerCount(type) {\n var events = this._events;\n\n if (events !== undefined) {\n var evlistener = events[type];\n\n if (typeof evlistener === 'function') {\n return 1;\n } else if (evlistener !== undefined) {\n return evlistener.length;\n }\n }\n\n return 0;\n}\n\nEventEmitter.prototype.eventNames = function eventNames() {\n return this._eventsCount > 0 ? ReflectOwnKeys(this._events) : [];\n};\n\nfunction arrayClone(arr, n) {\n var copy = new Array(n);\n for (var i = 0; i < n; ++i)\n copy[i] = arr[i];\n return copy;\n}\n\nfunction spliceOne(list, index) {\n for (; index + 1 < list.length; index++)\n list[index] = list[index + 1];\n list.pop();\n}\n\nfunction unwrapListeners(arr) {\n var ret = new Array(arr.length);\n for (var i = 0; i < ret.length; ++i) {\n ret[i] = arr[i].listener || arr[i];\n }\n return ret;\n}\n\nfunction once(emitter, name) {\n return new Promise(function (resolve, reject) {\n function errorListener(err) {\n emitter.removeListener(name, resolver);\n reject(err);\n }\n\n function resolver() {\n if (typeof emitter.removeListener === 'function') {\n emitter.removeListener('error', errorListener);\n }\n resolve([].slice.call(arguments));\n };\n\n eventTargetAgnosticAddListener(emitter, name, resolver, { once: true });\n if (name !== 'error') {\n addErrorHandlerIfEventEmitter(emitter, errorListener, { once: true });\n }\n });\n}\n\nfunction addErrorHandlerIfEventEmitter(emitter, handler, flags) {\n if (typeof emitter.on === 'function') {\n eventTargetAgnosticAddListener(emitter, 'error', handler, flags);\n }\n}\n\nfunction eventTargetAgnosticAddListener(emitter, name, listener, flags) {\n if (typeof emitter.on === 'function') {\n if (flags.once) {\n emitter.once(name, listener);\n } else {\n emitter.on(name, listener);\n }\n } else if (typeof emitter.addEventListener === 'function') {\n // EventTarget does not have `error` event semantics like Node\n // EventEmitters, we do not listen for `error` events here.\n emitter.addEventListener(name, function wrapListener(arg) {\n // IE does not have builtin `{ once: true }` support so we\n // have to do it manually.\n if (flags.once) {\n emitter.removeEventListener(name, wrapListener);\n }\n listener(arg);\n });\n } else {\n throw new TypeError('The \"emitter\" argument must be of type EventEmitter. Received type ' + typeof emitter);\n }\n}\n","'use strict';\n\nvar utils = require('./utils');\nvar assert = require('minimalistic-assert');\n\nfunction BlockHash() {\n this.pending = null;\n this.pendingTotal = 0;\n this.blockSize = this.constructor.blockSize;\n this.outSize = this.constructor.outSize;\n this.hmacStrength = this.constructor.hmacStrength;\n this.padLength = this.constructor.padLength / 8;\n this.endian = 'big';\n\n this._delta8 = this.blockSize / 8;\n this._delta32 = this.blockSize / 32;\n}\nexports.BlockHash = BlockHash;\n\nBlockHash.prototype.update = function update(msg, enc) {\n // Convert message to array, pad it, and join into 32bit blocks\n msg = utils.toArray(msg, enc);\n if (!this.pending)\n this.pending = msg;\n else\n this.pending = this.pending.concat(msg);
|