diff --git a/wp-includes/assets/script-loader-packages.php b/wp-includes/assets/script-loader-packages.php index a58a55a6b0..db8fba9d98 100644 --- a/wp-includes/assets/script-loader-packages.php +++ b/wp-includes/assets/script-loader-packages.php @@ -1 +1 @@ - array('dependencies' => array('wp-dom-ready', 'wp-i18n', 'wp-polyfill'), 'version' => 'a7dc4c94ca05d79fe1926acd3be57f4f'), 'annotations.js' => array('dependencies' => array('lodash', 'wp-data', 'wp-hooks', 'wp-i18n', 'wp-polyfill', 'wp-rich-text'), 'version' => '149b1a9ddc0dad7edd163ba36569e99f'), 'api-fetch.js' => array('dependencies' => array('wp-i18n', 'wp-polyfill', 'wp-url'), 'version' => '2e680d133997ddee3990cee57593574d'), 'autop.js' => array('dependencies' => array('wp-polyfill'), 'version' => 'f1aaaaf09a81a335587420534e0091f2'), 'blob.js' => array('dependencies' => array('wp-polyfill'), 'version' => '9ee6dca7fc448e120c3452ade58163b5'), 'block-directory.js' => array('dependencies' => array('lodash', 'wp-a11y', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-data-controls', 'wp-edit-post', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-notices', 'wp-plugins', 'wp-polyfill', 'wp-primitives'), 'version' => '3e49d1ff149e63374db50130bf7f79dd'), 'block-editor.js' => array('dependencies' => array('lodash', 'react', 'react-dom', 'wp-a11y', 'wp-blob', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-is-shallow-equal', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-notices', 'wp-polyfill', 'wp-primitives', 'wp-rich-text', 'wp-shortcode', 'wp-token-list', 'wp-url', 'wp-viewport', 'wp-warning', 'wp-wordcount'), 'version' => '5befd6d7cf5109ee556d96f8d6bd5ad7'), 'block-library.js' => array('dependencies' => array('lodash', 'moment', 'react', 'wp-api-fetch', 'wp-autop', 'wp-blob', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-date', 'wp-deprecated', 'wp-element', 'wp-i18n', 'wp-keycodes', 'wp-notices', 'wp-polyfill', 'wp-primitives', 'wp-reusable-blocks', 'wp-rich-text', 'wp-server-side-render', 'wp-url', 'wp-viewport'), 'version' => '2ba884f25ae6d5f4ad409e2fce7b3aa2'), 'block-serialization-default-parser.js' => array('dependencies' => array('wp-polyfill'), 'version' => '1abfc8d462c772b64e508388ef1a8082'), 'blocks.js' => array('dependencies' => array('lodash', 'wp-autop', 'wp-blob', 'wp-block-serialization-default-parser', 'wp-compose', 'wp-data', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-is-shallow-equal', 'wp-polyfill', 'wp-primitives', 'wp-shortcode'), 'version' => '77560276719916c9e3ab8196e5cc526f'), 'components.js' => array('dependencies' => array('lodash', 'moment', 'react', 'wp-a11y', 'wp-compose', 'wp-date', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-is-shallow-equal', 'wp-keycodes', 'wp-polyfill', 'wp-primitives', 'wp-rich-text', 'wp-warning'), 'version' => '7b2eb7033cd3c6d2b4ea663e7d4774a7'), 'compose.js' => array('dependencies' => array('lodash', 'react', 'wp-element', 'wp-is-shallow-equal', 'wp-polyfill', 'wp-priority-queue'), 'version' => '828e876b3f53e60811d31f81b5d5ba9e'), 'core-data.js' => array('dependencies' => array('lodash', 'wp-blocks', 'wp-data', 'wp-data-controls', 'wp-deprecated', 'wp-element', 'wp-i18n', 'wp-is-shallow-equal', 'wp-polyfill', 'wp-url'), 'version' => 'a4f3840d1f73f78c49ff61b5a38f9e11'), 'data.js' => array('dependencies' => array('lodash', 'react', 'wp-compose', 'wp-deprecated', 'wp-element', 'wp-is-shallow-equal', 'wp-polyfill', 'wp-priority-queue', 'wp-redux-routine'), 'version' => '0808b7ad7e7d1d20447fc8603e23420f'), 'data-controls.js' => array('dependencies' => array('wp-api-fetch', 'wp-data', 'wp-polyfill'), 'version' => '71c8a675e946cb9ba2a5d5b7d6a2c993'), 'date.js' => array('dependencies' => array('moment', 'wp-polyfill'), 'version' => '42b42b091266c90fc2ff5edd2f4305f6'), 'deprecated.js' => array('dependencies' => array('wp-hooks', 'wp-polyfill'), 'version' => '5480dd7574d6b15f781387ca82f38c98'), 'dom.js' => array('dependencies' => array('lodash', 'wp-polyfill'), 'version' => '658b42390dd73c64306c372f824bb538'), 'dom-ready.js' => array('dependencies' => array('wp-polyfill'), 'version' => '0673a12cd64681bf831177bdbbc8c17c'), 'edit-post.js' => array('dependencies' => array('lodash', 'wp-a11y', 'wp-api-fetch', 'wp-block-editor', 'wp-block-library', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-data-controls', 'wp-editor', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-media-utils', 'wp-notices', 'wp-plugins', 'wp-polyfill', 'wp-primitives', 'wp-reusable-blocks', 'wp-url', 'wp-viewport', 'wp-warning'), 'version' => '89421b1ea093f84a885a064f4c3cb5f6'), 'editor.js' => array('dependencies' => array('lodash', 'react', 'wp-api-fetch', 'wp-autop', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-data-controls', 'wp-date', 'wp-deprecated', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-media-utils', 'wp-notices', 'wp-polyfill', 'wp-primitives', 'wp-reusable-blocks', 'wp-rich-text', 'wp-server-side-render', 'wp-url', 'wp-viewport', 'wp-wordcount'), 'version' => '0a5ce3aa6bc8dc076e8999f472ceea66'), 'element.js' => array('dependencies' => array('lodash', 'react', 'react-dom', 'wp-escape-html', 'wp-polyfill'), 'version' => '7caee54159b10aa3a8b304e27d13dedc'), 'escape-html.js' => array('dependencies' => array('wp-polyfill'), 'version' => 'b8bd7b8863ae9d136fdd9ee31e2e7402'), 'format-library.js' => array('dependencies' => array('lodash', 'wp-block-editor', 'wp-components', 'wp-data', 'wp-dom', 'wp-element', 'wp-html-entities', 'wp-i18n', 'wp-keycodes', 'wp-polyfill', 'wp-primitives', 'wp-rich-text', 'wp-url'), 'version' => '66cdc122bcc84911f124f148684472a6'), 'hooks.js' => array('dependencies' => array('wp-polyfill'), 'version' => 'b783a2a0953a194d17495044d1ea2841'), 'html-entities.js' => array('dependencies' => array('wp-polyfill'), 'version' => '8e8652a4cc634a7a5b32f2d664c0e0cc'), 'i18n.js' => array('dependencies' => array('wp-polyfill'), 'version' => '74259306f29940dfc0d175b259792d2c'), 'is-shallow-equal.js' => array('dependencies' => array('wp-polyfill'), 'version' => 'e7be680b2f3d7a7149e5b8686fd3949b'), 'keyboard-shortcuts.js' => array('dependencies' => array('lodash', 'wp-compose', 'wp-data', 'wp-keycodes', 'wp-polyfill'), 'version' => 'db79136251f4b07716ce0ebc5dbd2246'), 'keycodes.js' => array('dependencies' => array('lodash', 'wp-i18n', 'wp-polyfill'), 'version' => 'f5594c24df93002b70578608f5e2aa49'), 'list-reusable-blocks.js' => array('dependencies' => array('lodash', 'wp-api-fetch', 'wp-components', 'wp-compose', 'wp-element', 'wp-i18n', 'wp-polyfill'), 'version' => 'b782fb31ccf39b90f0cdcb61bd958de7'), 'media-utils.js' => array('dependencies' => array('lodash', 'wp-api-fetch', 'wp-blob', 'wp-element', 'wp-i18n', 'wp-polyfill'), 'version' => 'a61d362408c34c2e6e2adc41b401249f'), 'notices.js' => array('dependencies' => array('lodash', 'wp-data', 'wp-polyfill'), 'version' => '8aca84285da7c1abf9879a5f0a42e555'), 'nux.js' => array('dependencies' => array('lodash', 'wp-components', 'wp-compose', 'wp-data', 'wp-deprecated', 'wp-element', 'wp-i18n', 'wp-polyfill', 'wp-primitives'), 'version' => '3e3e25468bdcf9b0a194d3ebabea7476'), 'plugins.js' => array('dependencies' => array('lodash', 'wp-compose', 'wp-element', 'wp-hooks', 'wp-polyfill', 'wp-primitives'), 'version' => '3bdbae7eaf798a4c8d11e0c1371e35c2'), 'primitives.js' => array('dependencies' => array('wp-element', 'wp-polyfill'), 'version' => 'd4bfd3c4e5607296b1887c116a5ec44e'), 'priority-queue.js' => array('dependencies' => array('wp-polyfill'), 'version' => '59111ff6019a7401dba22121e795e543'), 'redux-routine.js' => array('dependencies' => array('lodash', 'wp-polyfill'), 'version' => '0ef717bd356b15e8374f96c2602af0dc'), 'reusable-blocks.js' => array('dependencies' => array('wp-block-editor', 'wp-blocks', 'wp-components', 'wp-core-data', 'wp-data', 'wp-element', 'wp-i18n', 'wp-notices', 'wp-polyfill', 'wp-primitives'), 'version' => '7675569cdeea817fb322bd60bb0532a2'), 'rich-text.js' => array('dependencies' => array('lodash', 'wp-data', 'wp-deprecated', 'wp-element', 'wp-escape-html', 'wp-keycodes', 'wp-polyfill'), 'version' => '8f7bfb6af29e95a3ac4670bc343a338b'), 'server-side-render.js' => array('dependencies' => array('lodash', 'wp-api-fetch', 'wp-components', 'wp-data', 'wp-deprecated', 'wp-element', 'wp-i18n', 'wp-polyfill', 'wp-url'), 'version' => 'ebe061fddf27eda476d0aad8a784e767'), 'shortcode.js' => array('dependencies' => array('lodash', 'wp-polyfill'), 'version' => '760ef1dc15a1da975ce384ac38245584'), 'token-list.js' => array('dependencies' => array('lodash', 'wp-polyfill'), 'version' => '9c3b2205ac79cc76094def2dd76a5cfa'), 'url.js' => array('dependencies' => array('lodash', 'wp-polyfill'), 'version' => '76613c4e7c046883554d789ee1af3c7a'), 'viewport.js' => array('dependencies' => array('lodash', 'wp-compose', 'wp-data', 'wp-element', 'wp-polyfill'), 'version' => '1bb3ba9bc5a1f5839acbae8b006b0b3f'), 'warning.js' => array('dependencies' => array('wp-polyfill'), 'version' => 'e93e31a3954c2b1e23e96280b27d3715'), 'wordcount.js' => array('dependencies' => array('lodash', 'wp-polyfill'), 'version' => '5808f9da0ba314c3e34b085ac6194a69')); \ No newline at end of file + array('dependencies' => array('wp-dom-ready', 'wp-i18n', 'wp-polyfill'), 'version' => '693bc76804871970d5d4bf16475f9010'), 'annotations.js' => array('dependencies' => array('lodash', 'wp-data', 'wp-hooks', 'wp-i18n', 'wp-polyfill', 'wp-rich-text'), 'version' => 'e77540b3100598a1bc69dd324f450e63'), 'api-fetch.js' => array('dependencies' => array('wp-i18n', 'wp-polyfill', 'wp-url'), 'version' => '5f98b08f212ba8fa8b4685ad2e1b1378'), 'autop.js' => array('dependencies' => array('wp-polyfill'), 'version' => 'c709537b5bc1b5b444314f00a181edaa'), 'blob.js' => array('dependencies' => array('wp-polyfill'), 'version' => '80dcacae9bad11e669450bce81a6847a'), 'block-directory.js' => array('dependencies' => array('lodash', 'wp-a11y', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-data-controls', 'wp-edit-post', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-notices', 'wp-plugins', 'wp-polyfill', 'wp-primitives'), 'version' => 'c070f8d7fd81df3470356e0c86dcf684'), 'block-editor.js' => array('dependencies' => array('lodash', 'react', 'react-dom', 'wp-a11y', 'wp-blob', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-is-shallow-equal', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-notices', 'wp-polyfill', 'wp-primitives', 'wp-rich-text', 'wp-shortcode', 'wp-token-list', 'wp-url', 'wp-viewport', 'wp-warning', 'wp-wordcount'), 'version' => '5f6a75cdc59f1a900e9d4bcfb43bddba'), 'block-library.js' => array('dependencies' => array('lodash', 'moment', 'react', 'wp-api-fetch', 'wp-autop', 'wp-blob', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-date', 'wp-deprecated', 'wp-element', 'wp-i18n', 'wp-keycodes', 'wp-notices', 'wp-polyfill', 'wp-primitives', 'wp-reusable-blocks', 'wp-rich-text', 'wp-server-side-render', 'wp-url', 'wp-viewport'), 'version' => 'f57ef2e7b4eafc2e0c68f14376de3b1f'), 'block-serialization-default-parser.js' => array('dependencies' => array('wp-polyfill'), 'version' => '1768ef183a4597932a52df4c355129c1'), 'blocks.js' => array('dependencies' => array('lodash', 'wp-autop', 'wp-blob', 'wp-block-serialization-default-parser', 'wp-compose', 'wp-data', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-is-shallow-equal', 'wp-polyfill', 'wp-primitives', 'wp-shortcode'), 'version' => '65abb57f00d1d2ab3d3b16331cbbf560'), 'components.js' => array('dependencies' => array('lodash', 'moment', 'react', 'wp-a11y', 'wp-compose', 'wp-date', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-is-shallow-equal', 'wp-keycodes', 'wp-polyfill', 'wp-primitives', 'wp-rich-text', 'wp-warning'), 'version' => '8f40000e0ebc9526803ba451c75bdcdb'), 'compose.js' => array('dependencies' => array('lodash', 'react', 'wp-element', 'wp-is-shallow-equal', 'wp-polyfill', 'wp-priority-queue'), 'version' => 'f0c73fe1bb32f10ff822ceff1c83d80c'), 'core-data.js' => array('dependencies' => array('lodash', 'wp-blocks', 'wp-data', 'wp-data-controls', 'wp-deprecated', 'wp-element', 'wp-i18n', 'wp-is-shallow-equal', 'wp-polyfill', 'wp-url'), 'version' => '5162385fe45761d4fa774d75f162fafa'), 'data.js' => array('dependencies' => array('lodash', 'react', 'wp-compose', 'wp-deprecated', 'wp-element', 'wp-is-shallow-equal', 'wp-polyfill', 'wp-priority-queue', 'wp-redux-routine'), 'version' => '777f925bfe1a2aea2a86b7b9ae6aed25'), 'data-controls.js' => array('dependencies' => array('wp-api-fetch', 'wp-data', 'wp-polyfill'), 'version' => '2c5b1ed26e384d4b72c8d569bb4f999b'), 'date.js' => array('dependencies' => array('moment', 'wp-polyfill'), 'version' => '3bcd711eb6f1f4a012bf025c0d4ee014'), 'deprecated.js' => array('dependencies' => array('wp-hooks', 'wp-polyfill'), 'version' => '7eeae75ecca445767bf663bbc025ee2e'), 'dom.js' => array('dependencies' => array('lodash', 'wp-polyfill'), 'version' => '37fc0d15d159b14d0a9c0883214ab108'), 'dom-ready.js' => array('dependencies' => array('wp-polyfill'), 'version' => '5316a69cb8a665ca6252926589751f9a'), 'edit-post.js' => array('dependencies' => array('lodash', 'wp-a11y', 'wp-api-fetch', 'wp-block-editor', 'wp-block-library', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-data-controls', 'wp-editor', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-media-utils', 'wp-notices', 'wp-plugins', 'wp-polyfill', 'wp-primitives', 'wp-reusable-blocks', 'wp-url', 'wp-viewport', 'wp-warning'), 'version' => 'f03e57452d64a3c73916cb7f8470bf5c'), 'editor.js' => array('dependencies' => array('lodash', 'react', 'wp-api-fetch', 'wp-autop', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-data-controls', 'wp-date', 'wp-deprecated', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-media-utils', 'wp-notices', 'wp-polyfill', 'wp-primitives', 'wp-reusable-blocks', 'wp-rich-text', 'wp-server-side-render', 'wp-url', 'wp-viewport', 'wp-wordcount'), 'version' => '9b146115779a076ab6e0e4e40008c555'), 'element.js' => array('dependencies' => array('lodash', 'react', 'react-dom', 'wp-escape-html', 'wp-polyfill'), 'version' => '79c184d653b205e146d35d83429a25c6'), 'escape-html.js' => array('dependencies' => array('wp-polyfill'), 'version' => '5241b8bf5a5db2d44897e649c1e253ef'), 'format-library.js' => array('dependencies' => array('lodash', 'wp-block-editor', 'wp-components', 'wp-data', 'wp-dom', 'wp-element', 'wp-html-entities', 'wp-i18n', 'wp-keycodes', 'wp-polyfill', 'wp-primitives', 'wp-rich-text', 'wp-url'), 'version' => '2040e5edeb44b63f7331c75483d40c23'), 'hooks.js' => array('dependencies' => array('wp-polyfill'), 'version' => '54e7683a4c0aafac0448bb95dc8d53ba'), 'html-entities.js' => array('dependencies' => array('wp-polyfill'), 'version' => '269aad1f788b9313a0c8f191b029c6f6'), 'i18n.js' => array('dependencies' => array('wp-polyfill'), 'version' => '326fe7fbfdb407b6edbcfba7e17f3909'), 'is-shallow-equal.js' => array('dependencies' => array('wp-polyfill'), 'version' => '4cb27f4ffc609cc60a3f5d108fc14e67'), 'keyboard-shortcuts.js' => array('dependencies' => array('lodash', 'wp-compose', 'wp-data', 'wp-keycodes', 'wp-polyfill'), 'version' => 'aa03b4f0823990c56cb128040fad222b'), 'keycodes.js' => array('dependencies' => array('lodash', 'wp-i18n', 'wp-polyfill'), 'version' => '82e457c50e5f5a6c4da4c9e380f03441'), 'list-reusable-blocks.js' => array('dependencies' => array('lodash', 'wp-api-fetch', 'wp-components', 'wp-compose', 'wp-element', 'wp-i18n', 'wp-polyfill'), 'version' => '8918f1b5159b1b52118d19776f622310'), 'media-utils.js' => array('dependencies' => array('lodash', 'wp-api-fetch', 'wp-blob', 'wp-element', 'wp-i18n', 'wp-polyfill'), 'version' => 'e604b5a9da1f2272b4e49964c2bec65b'), 'notices.js' => array('dependencies' => array('lodash', 'wp-data', 'wp-polyfill'), 'version' => 'd345bde0caee972c2b285a0b742937ea'), 'nux.js' => array('dependencies' => array('lodash', 'wp-components', 'wp-compose', 'wp-data', 'wp-deprecated', 'wp-element', 'wp-i18n', 'wp-polyfill', 'wp-primitives'), 'version' => '2385eeb0b9e29e2fe366fb2441b679bd'), 'plugins.js' => array('dependencies' => array('lodash', 'wp-compose', 'wp-element', 'wp-hooks', 'wp-polyfill', 'wp-primitives'), 'version' => '059f0dcc13951e81b2362c73cb99d023'), 'primitives.js' => array('dependencies' => array('wp-element', 'wp-polyfill'), 'version' => '3ec9526df929c5f4e9100eec771bf4aa'), 'priority-queue.js' => array('dependencies' => array('wp-polyfill'), 'version' => '1ec20c9550edd665031b2872eeb15f6a'), 'redux-routine.js' => array('dependencies' => array('lodash', 'wp-polyfill'), 'version' => '8ec41c688c5daad1d264d85374a1c8b0'), 'reusable-blocks.js' => array('dependencies' => array('wp-block-editor', 'wp-blocks', 'wp-components', 'wp-core-data', 'wp-data', 'wp-element', 'wp-i18n', 'wp-notices', 'wp-polyfill', 'wp-primitives'), 'version' => 'd969baba471ea99a0d94fb9fd94d284c'), 'rich-text.js' => array('dependencies' => array('lodash', 'wp-data', 'wp-deprecated', 'wp-element', 'wp-escape-html', 'wp-keycodes', 'wp-polyfill'), 'version' => '76d3f16d07ab8284bd57ef3bc1ac3898'), 'server-side-render.js' => array('dependencies' => array('lodash', 'wp-api-fetch', 'wp-components', 'wp-data', 'wp-deprecated', 'wp-element', 'wp-i18n', 'wp-polyfill', 'wp-url'), 'version' => '2b482d48a293e9097251e6f6af18f702'), 'shortcode.js' => array('dependencies' => array('lodash', 'wp-polyfill'), 'version' => '4e2b84bed0512594114771ab10e049a4'), 'token-list.js' => array('dependencies' => array('lodash', 'wp-polyfill'), 'version' => '1a199755f6f8d400bd18c7f59f207424'), 'url.js' => array('dependencies' => array('lodash', 'wp-polyfill'), 'version' => '546985423132a4810813187ac344bd3e'), 'viewport.js' => array('dependencies' => array('lodash', 'wp-compose', 'wp-data', 'wp-element', 'wp-polyfill'), 'version' => '80e7e30dbcec1ce9400925a64d0dd0b5'), 'warning.js' => array('dependencies' => array('wp-polyfill'), 'version' => '10a247cfe08865dfbda5c0d037134e27'), 'wordcount.js' => array('dependencies' => array('lodash', 'wp-polyfill'), 'version' => '1700034c424e867198c058e8cb78b37f')); \ No newline at end of file diff --git a/wp-includes/css/dist/block-library/editor-rtl.css b/wp-includes/css/dist/block-library/editor-rtl.css index 9669e7b3ff..b1236ac388 100644 --- a/wp-includes/css/dist/block-library/editor-rtl.css +++ b/wp-includes/css/dist/block-library/editor-rtl.css @@ -159,7 +159,9 @@ div[data-type="core/button"] { display: block; } .wp-block-columns .wp-block { - max-width: none; } + max-width: none; + margin-right: 0; + margin-left: 0; } @media (min-width: 600px) { .editor-styles-wrapper @@ -1187,9 +1189,6 @@ ul.has-background.has-background { .block-editor-block-list__block[data-type="core/separator"] { padding-top: 0.1px; padding-bottom: 0.1px; } - .block-editor-block-list__block[data-type="core/separator"].block-editor-block-list__block { - margin-top: 0; - margin-bottom: 0; } .wp-block-shortcode { display: flex; diff --git a/wp-includes/css/dist/block-library/editor-rtl.min.css b/wp-includes/css/dist/block-library/editor-rtl.min.css index 631e405b98..1f4e5b6d33 100644 --- a/wp-includes/css/dist/block-library/editor-rtl.min.css +++ b/wp-includes/css/dist/block-library/editor-rtl.min.css @@ -1 +1 @@ -:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-20:#005a87}#start-resizable-editor-section{display:none}.block-editor ul.wp-block-archives{padding-right:2.5em}.wp-block-audio{margin-right:0;margin-left:0}.edit-post-visual-editor .block-library-block__reusable-block-container .block-editor-writing-flow__click-redirect{min-height:auto}.edit-post-visual-editor .block-library-block__reusable-block-container .is-root-container{padding-right:0;padding-left:0}.edit-post-visual-editor .block-library-block__reusable-block-container .block-editor-writing-flow{display:block}.edit-post-visual-editor .block-library-block__reusable-block-container .components-disabled .block-list-appender{display:none}.wp-block[data-align=center]>.wp-block-button{text-align:center;margin-right:auto;margin-left:auto}.wp-block[data-align=right]>.wp-block-button{text-align:right}.wp-block-button{position:relative;cursor:text}.wp-block-button:not(.has-text-color):not(.is-style-outline) [data-rich-text-placeholder]:after{color:#fff}.wp-block-button:focus{box-shadow:0 0 0 1px #fff,0 0 0 3px #007cba;box-shadow:0 0 0 1px #fff,0 0 0 3px var(--wp-admin-theme-color);outline:2px solid transparent;outline-offset:-2px}.wp-block-button[data-rich-text-placeholder]:after{opacity:.8}.wp-block-button__inline-link{color:#757575;height:0;overflow:hidden;max-width:290px}.wp-block-button__inline-link-input__suggestions{max-width:290px}@media (min-width:782px){.wp-block-button__inline-link,.wp-block-button__inline-link-input__suggestions{max-width:260px}}@media (min-width:960px){.wp-block-button__inline-link,.wp-block-button__inline-link-input__suggestions{max-width:290px}}.is-selected .wp-block-button__inline-link{height:auto;overflow:visible;margin-top:16px}div[data-type="core/button"]{display:table}.wp-block-buttons>.wp-block{margin-right:0}.wp-block[data-align=center]>.wp-block-buttons{display:flex;align-items:center;flex-wrap:wrap;justify-content:center}.wp-block[data-align=right]>.wp-block-buttons{display:flex;justify-content:flex-end}.wp-block-buttons>.block-list-appender{display:inline-block}.block-editor .wp-block-categories ul{padding-right:2.5em}.block-editor .wp-block-categories ul ul{margin-top:6px}.wp-block-code>code{display:block}.wp-block-columns .wp-block{max-width:none}@media (min-width:600px){.editor-styles-wrapper .block-editor-block-list__block.wp-block-column:nth-child(2n){margin-right:32px}}@media (min-width:782px){.editor-styles-wrapper .block-editor-block-list__block.wp-block-column:not(:first-child){margin-right:32px}}.block-editor-block-list__block.wp-block-column.wp-block-column{margin-top:0;margin-bottom:0}.wp-block-cover{position:relative}.wp-block-cover.is-placeholder{min-height:auto!important;padding:0!important}.wp-block-cover.components-placeholder h2{color:inherit}.wp-block-cover.is-transient:before{background-color:#fff;opacity:.3}.wp-block-cover .components-spinner{position:absolute;z-index:1;top:50%;right:50%;transform:translate(50%,-50%);margin:0}.wp-block-cover .block-editor-block-list__layout{width:100%}.wp-block-cover .wp-block-cover__inner-container{text-align:right;margin-right:0;margin-left:0}.wp-block-cover .wp-block-cover__placeholder-background-options{width:100%}[data-align=left]>.wp-block-cover,[data-align=right]>.wp-block-cover{max-width:290px;width:100%}.block-library-cover__reset-button{margin-right:auto}.block-library-cover__resize-container{position:absolute!important;top:0;right:0;left:0;bottom:0}.block-library-cover__resize-container:not(.is-resizing){height:auto!important}.wp-block-embed{margin-right:0;margin-left:0;clear:both}.wp-block-embed.is-loading{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:1em;min-height:200px;text-align:center;border-radius:2px;background-color:#fff;box-shadow:inset 0 0 0 1px #1e1e1e}.wp-block-embed.is-loading p{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px}.wp-block-embed .components-placeholder__error{word-break:break-word}.wp-block-embed .components-placeholder__learn-more{margin-top:1em}.block-library-embed__interactive-overlay{position:absolute;top:0;right:0;left:0;bottom:0;opacity:0}.wp-block-file{display:flex;justify-content:space-between;align-items:center;margin-bottom:0}.wp-block-file .wp-block-file__content-wrapper{flex-grow:1}.wp-block-file .wp-block-file__textlink{display:inline-block;min-width:1em}.wp-block-file .wp-block-file__textlink:focus{box-shadow:none}.wp-block-file .wp-block-file__button-richtext-wrapper{display:inline-block;margin-right:.75em}.wp-block-file .wp-block-file__copy-url-button{margin-right:1em}.wp-block-freeform.block-library-rich-text__tinymce{height:auto}.wp-block-freeform.block-library-rich-text__tinymce li,.wp-block-freeform.block-library-rich-text__tinymce p{line-height:1.8}.wp-block-freeform.block-library-rich-text__tinymce ol,.wp-block-freeform.block-library-rich-text__tinymce ul{padding-right:2.5em;margin-right:0}.wp-block-freeform.block-library-rich-text__tinymce blockquote{margin:0;box-shadow:inset 0 0 0 0 #ddd;border-right:4px solid #000;padding-right:1em}.wp-block-freeform.block-library-rich-text__tinymce pre{white-space:pre-wrap;font-family:Menlo,Consolas,monaco,monospace;font-size:15px;color:#1e1e1e}.wp-block-freeform.block-library-rich-text__tinymce>:first-child{margin-top:0}.wp-block-freeform.block-library-rich-text__tinymce>:last-child{margin-bottom:0}.wp-block-freeform.block-library-rich-text__tinymce.mce-edit-focus{outline:none}.wp-block-freeform.block-library-rich-text__tinymce a{color:#007cba;color:var(--wp-admin-theme-color)}.wp-block-freeform.block-library-rich-text__tinymce:focus a[data-mce-selected]{padding:0 2px;margin:0 -2px;border-radius:2px;box-shadow:0 0 0 1px #e5f5fa;background:#e5f5fa}.wp-block-freeform.block-library-rich-text__tinymce code{padding:2px;border-radius:2px;color:#1e1e1e;background:#f0f0f0;font-family:Menlo,Consolas,monaco,monospace;font-size:14px}.wp-block-freeform.block-library-rich-text__tinymce:focus code[data-mce-selected]{background:#ddd}.wp-block-freeform.block-library-rich-text__tinymce .alignright{float:right;margin:.5em 0 .5em 1em}.wp-block-freeform.block-library-rich-text__tinymce .alignleft{float:left;margin:.5em 1em .5em 0}.wp-block-freeform.block-library-rich-text__tinymce .aligncenter{display:block;margin-right:auto;margin-left:auto}.wp-block-freeform.block-library-rich-text__tinymce .wp-more-tag{width:96%;height:20px;display:block;margin:15px auto;outline:0;cursor:default;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAADtgAAAAoBAMAAAA86gLBAAAAJFBMVEVMaXG7u7vBwcHDw8POzs68vLzGxsbMzMy+vr7AwMDQ0NDGxsYKLGzpAAAADHRSTlMA///zWf+/f///TMxNVGuqAAABwklEQVR4Ae3dMXLaQBTH4bfj8UCpx8hq0vgKvgFNemhT6Qo6gg6R+0ZahM2QLmyBJ99XWP9V5+o3jIUcLQEAAAAAAAAAAAAAAAAAAAAAAABQ8j0WL9lfTtlt18uNXAUA8O/KVtfa1tdcrOdSh9gCQAMlh1hMNbZZ1bsrsQWABsrhLRbz7z5in/32UbfUMUbkMQCAh5RfGYv82UdMdZ6HS2wjT2ILAI8r3XmM2B3WvM59vfO2xXYW2yYAENuPU8S+X/N67mKxzy225yaxBQCxLV392UdcvwV0jPVUj98ntkBWT7C7+9u2/V/vGtvXIWJ6/4rtbottWa6Ri0NUT/u72LYttrb97LHdvUXMxxrb8TO2W2TF1rYbbLG1bbGNjMi4+2Sbi1FsbbvNFlvbFtt5fDnE3d9sP1/XeIyV2Nr2U2/guZUuptNrH/dPI9eLB6SaAEBs6wPJf3/PNk9tYgsAYrv/8TFuzx/fvkFqGtrEFgDEdpcZUb7ejXy6ntrEFgDENvL6gsas4vbdyKt4DACI7TxElJv/Z7udpqFNbAFAbKduy2uU2trttM/x28UWAAAAAAAAAAAAAAAAAAAAAAAAAADgDyPwGmGTCZp7AAAAAElFTkSuQmCC);background-size:1900px 20px;background-repeat:no-repeat;background-position:50%}.wp-block-freeform.block-library-rich-text__tinymce img::selection{background-color:transparent}.wp-block-freeform.block-library-rich-text__tinymce div.mceTemp{-ms-user-select:element}.wp-block-freeform.block-library-rich-text__tinymce dl.wp-caption{margin:0;max-width:100%}.wp-block-freeform.block-library-rich-text__tinymce dl.wp-caption a,.wp-block-freeform.block-library-rich-text__tinymce dl.wp-caption img{display:block}.wp-block-freeform.block-library-rich-text__tinymce dl.wp-caption,.wp-block-freeform.block-library-rich-text__tinymce dl.wp-caption *{-webkit-user-drag:none}.wp-block-freeform.block-library-rich-text__tinymce dl.wp-caption .wp-caption-dd{padding-top:.5em;margin:0}.wp-block-freeform.block-library-rich-text__tinymce .wpview{width:99.99%;position:relative;clear:both;margin-bottom:16px;border:1px solid transparent}.wp-block-freeform.block-library-rich-text__tinymce .wpview iframe{display:block;max-width:100%;background:transparent}.wp-block-freeform.block-library-rich-text__tinymce .wpview .mce-shim{position:absolute;top:0;left:0;bottom:0;right:0}.wp-block-freeform.block-library-rich-text__tinymce .wpview[data-mce-selected="2"] .mce-shim{display:none}.wp-block-freeform.block-library-rich-text__tinymce .wpview .loading-placeholder{border:1px dashed #ddd;padding:10px}.wp-block-freeform.block-library-rich-text__tinymce .wpview .wpview-error{border:1px solid #ddd;padding:1em 0;margin:0;word-wrap:break-word}.wp-block-freeform.block-library-rich-text__tinymce .wpview .wpview-error p{margin:0;text-align:center}.wp-block-freeform.block-library-rich-text__tinymce .wpview[data-mce-selected] .loading-placeholder,.wp-block-freeform.block-library-rich-text__tinymce .wpview[data-mce-selected] .wpview-error{border-color:transparent}.wp-block-freeform.block-library-rich-text__tinymce .wpview .dashicons{display:block;margin:0 auto;width:32px;height:32px;font-size:32px}.wp-block-freeform.block-library-rich-text__tinymce .wpview.wpview-type-gallery:after{content:"";display:table;clear:both}.wp-block-freeform.block-library-rich-text__tinymce .gallery img[data-mce-selected]:focus{outline:none}.wp-block-freeform.block-library-rich-text__tinymce .gallery a{cursor:default}.wp-block-freeform.block-library-rich-text__tinymce .gallery{margin:auto -6px;padding:6px 0;line-height:1;overflow-x:hidden}.wp-block-freeform.block-library-rich-text__tinymce .gallery .gallery-item{float:right;margin:0;text-align:center;padding:6px;box-sizing:border-box}.wp-block-freeform.block-library-rich-text__tinymce .gallery .gallery-caption,.wp-block-freeform.block-library-rich-text__tinymce .gallery .gallery-icon{margin:0}.wp-block-freeform.block-library-rich-text__tinymce .gallery .gallery-caption{font-size:13px;margin:4px 0}.wp-block-freeform.block-library-rich-text__tinymce .gallery-columns-1 .gallery-item{width:100%}.wp-block-freeform.block-library-rich-text__tinymce .gallery-columns-2 .gallery-item{width:50%}.wp-block-freeform.block-library-rich-text__tinymce .gallery-columns-3 .gallery-item{width:33.33333%}.wp-block-freeform.block-library-rich-text__tinymce .gallery-columns-4 .gallery-item{width:25%}.wp-block-freeform.block-library-rich-text__tinymce .gallery-columns-5 .gallery-item{width:20%}.wp-block-freeform.block-library-rich-text__tinymce .gallery-columns-6 .gallery-item{width:16.66667%}.wp-block-freeform.block-library-rich-text__tinymce .gallery-columns-7 .gallery-item{width:14.28571%}.wp-block-freeform.block-library-rich-text__tinymce .gallery-columns-8 .gallery-item{width:12.5%}.wp-block-freeform.block-library-rich-text__tinymce .gallery-columns-9 .gallery-item{width:11.11111%}.wp-block-freeform.block-library-rich-text__tinymce .gallery img{max-width:100%;height:auto;border:none;padding:0}div[data-type="core/freeform"]:before{transition:border-color .1s linear,box-shadow .1s linear;border:1px solid #ddd;outline:1px solid transparent}@media (prefers-reduced-motion:reduce){div[data-type="core/freeform"]:before{transition-duration:0s}}div[data-type="core/freeform"].is-selected:before{border-color:#1e1e1e}div[data-type="core/freeform"] .block-editor-block-contextual-toolbar+div{margin-top:0;padding-top:0}div[data-type="core/freeform"].is-selected .block-library-rich-text__tinymce:after{content:"";display:table;clear:both}.mce-toolbar-grp .mce-btn.mce-active:hover button,.mce-toolbar-grp .mce-btn.mce-active:hover i,.mce-toolbar-grp .mce-btn.mce-active button,.mce-toolbar-grp .mce-btn.mce-active i{color:#1e1e1e}.mce-toolbar-grp .mce-rtl .mce-flow-layout-item.mce-last{margin-left:0;margin-right:8px}.mce-toolbar-grp .mce-btn i{font-style:normal}.block-library-classic__toolbar{display:none;width:auto;position:-webkit-sticky;position:sticky;z-index:31;top:0;border:1px solid #ddd;border-bottom:none;border-radius:2px;margin:0 0 8px;padding:0}div[data-type="core/freeform"].is-selected .block-library-classic__toolbar,div[data-type="core/freeform"].is-typing .block-library-classic__toolbar{display:block;border-color:#1e1e1e}.block-library-classic__toolbar .mce-tinymce{box-shadow:none}@media (min-width:600px){.block-library-classic__toolbar{padding:0}}.block-library-classic__toolbar:empty{display:block;background:#f5f5f5;border-bottom:1px solid #e2e4e7}.block-library-classic__toolbar:empty:before{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;content:attr(data-placeholder);color:#555d66;line-height:37px;padding:14px}.block-library-classic__toolbar div.mce-toolbar-grp{border-bottom:1px solid #1e1e1e}.block-library-classic__toolbar .mce-menubar,.block-library-classic__toolbar .mce-menubar>div,.block-library-classic__toolbar .mce-tinymce-inline,.block-library-classic__toolbar .mce-tinymce-inline>div,.block-library-classic__toolbar div.mce-toolbar-grp,.block-library-classic__toolbar div.mce-toolbar-grp>div{height:auto!important;width:100%!important}.block-library-classic__toolbar .mce-container-body.mce-abs-layout{overflow:visible}.block-library-classic__toolbar .mce-menubar,.block-library-classic__toolbar div.mce-toolbar-grp{position:static}.block-library-classic__toolbar .mce-toolbar-grp>div{padding:1px 3px}.block-library-classic__toolbar .mce-toolbar-grp .mce-toolbar:not(:first-child){display:none}.block-library-classic__toolbar.has-advanced-toolbar .mce-toolbar-grp .mce-toolbar{display:block}.wp-block-gallery li{list-style-type:none}.wp-block-gallery .block-editor-media-placeholder{margin-bottom:12px;padding:12px}.wp-block-gallery .block-editor-media-placeholder .components-placeholder__label{display:none}.wp-block-gallery .block-editor-media-placeholder .components-button{margin-bottom:0}figure.wp-block-gallery{display:block;margin:0}.blocks-gallery-grid.blocks-gallery-grid{padding-right:0;margin-right:0;margin-bottom:0}.blocks-gallery-item figure:not(.is-selected):focus,.blocks-gallery-item img:focus{outline:none}.blocks-gallery-item figure.is-selected{box-shadow:0 0 0 1px #fff,0 0 0 3px #007cba;box-shadow:0 0 0 1px #fff,0 0 0 3px var(--wp-admin-theme-color);border-radius:2px;outline:2px solid transparent}.blocks-gallery-item figure.is-selected img{border-radius:2px}.blocks-gallery-item figure.is-transient img{opacity:.3}.blocks-gallery-item .is-selected .block-library-gallery-item__inline-menu{display:inline-flex}.blocks-gallery-item .block-editor-media-placeholder{margin:0;height:100%}.blocks-gallery-item .block-editor-media-placeholder .components-placeholder__label{display:flex}.block-library-gallery-item__inline-menu{display:none;position:absolute;top:-2px;margin:8px;z-index:20;transition:box-shadow .2s ease-out;border-radius:2px;background:#fff;border:1px solid #1e1e1e}@media (prefers-reduced-motion:reduce){.block-library-gallery-item__inline-menu{transition-duration:0s}}.block-library-gallery-item__inline-menu:hover{box-shadow:0 2px 6px rgba(0,0,0,.05)}@media (min-width:600px){.columns-7 .block-library-gallery-item__inline-menu,.columns-8 .block-library-gallery-item__inline-menu{padding:2px}}.block-library-gallery-item__inline-menu .components-button.has-icon:not(:focus){border:none;box-shadow:none}@media (min-width:600px){.columns-7 .block-library-gallery-item__inline-menu .components-button.has-icon,.columns-8 .block-library-gallery-item__inline-menu .components-button.has-icon{padding:0;width:inherit;height:inherit}}.block-library-gallery-item__inline-menu.is-left{right:-2px}.block-library-gallery-item__inline-menu.is-right{left:-2px}.blocks-gallery-item .components-spinner{position:absolute;top:50%;right:50%;margin-top:-9px;margin-right:-9px}.wp-block-group .block-editor-block-list__insertion-point{right:0;left:0}.wp-block-group>.wp-block-group__inner-container>[data-align=full]{margin-right:auto;margin-left:auto}.wp-block-group.has-background>.wp-block-group__inner-container>[data-align=full]{margin-right:-30px;width:calc(100% + 60px)}[data-align=full] .wp-block-group>.wp-block-group__inner-container>.wp-block{padding-right:14px;padding-left:14px}@media (min-width:600px){[data-align=full] .wp-block-group>.wp-block-group__inner-container>.wp-block{padding-right:0;padding-left:0}}[data-align=full] .wp-block-group>.wp-block-group__inner-container>[data-align=full]{padding-left:0;padding-right:0;right:0;width:100%;max-width:none}[data-align=full] .wp-block-group.has-background>.wp-block-group__inner-container>[data-align=full]{width:calc(100% + 60px)}[data-type="core/group"].is-selected .block-list-appender{margin-right:0;margin-left:0}[data-type="core/group"].is-selected .has-background .block-list-appender{margin-top:18px;margin-bottom:18px}.block-library-heading-level-dropdown .components-popover__content{min-width:230px}.block-library-heading-level-dropdown .components-popover__content>div{padding:0}.block-library-heading-level-toolbar{border:none}.wp-block-html{margin-bottom:28px}.wp-block-html .block-library-html__preview-overlay{position:absolute;width:100%;height:100%;top:0;right:0}.wp-block-html .block-editor-plain-text{font-family:Menlo,Consolas,monaco,monospace;color:#1e1e1e;padding:.8em 1em;border:1px solid #ddd;border-radius:4px;max-height:250px;font-size:16px}@media (min-width:600px){.wp-block-html .block-editor-plain-text{font-size:13px}}.wp-block-html .block-editor-plain-text:focus{box-shadow:none}figure.wp-block-image:not(.wp-block){margin:0}.wp-block-image{position:relative}.wp-block-image .is-applying img,.wp-block-image.is-transient img{opacity:.3}.wp-block-image figcaption img{display:inline}.wp-block-image .components-spinner{position:absolute;top:50%;right:50%;margin-top:-9px;margin-right:-9px}.wp-block-image .components-resizable-box__container{display:inline-block}.wp-block-image .components-resizable-box__container img{display:block;width:inherit;height:inherit}.block-editor-block-list__block[data-type="core/image"] .block-editor-block-toolbar .block-editor-url-input__button-modal{position:absolute;right:0;left:0;margin:-1px 0}@media (min-width:600px){.block-editor-block-list__block[data-type="core/image"] .block-editor-block-toolbar .block-editor-url-input__button-modal{margin:-1px}}[data-align=full]>.wp-block-image img,[data-align=wide]>.wp-block-image img{width:100%}.wp-block[data-align=center]>.wp-block-image,.wp-block[data-align=left]>.wp-block-image,.wp-block[data-align=right]>.wp-block-image{display:table}.wp-block[data-align=center]>.wp-block-image>figcaption,.wp-block[data-align=left]>.wp-block-image>figcaption,.wp-block[data-align=right]>.wp-block-image>figcaption{display:table-caption;caption-side:bottom}.wp-block[data-align=left]>.wp-block-image{margin:.5em 0 .5em 1em}.wp-block[data-align=right]>.wp-block-image{margin:.5em 1em .5em 0}.wp-block[data-align=center]>.wp-block-image{margin-right:auto;margin-left:auto;text-align:center}.wp-block-image__crop-area{position:relative;max-width:100%;width:100%}.wp-block-image__crop-icon{padding:0 8px;min-width:48px;display:flex;justify-content:center;align-items:center}.wp-block-image__crop-icon svg{fill:currentColor}.wp-block-image__zoom .components-popover__content{overflow:visible}.wp-block-image__zoom .components-range-control{flex:1}.wp-block-image__zoom .components-base-control__field{display:flex;margin-bottom:0}.wp-block-image__aspect-ratio{height:46px;margin-bottom:-8px;display:flex;align-items:center}.wp-block-image__aspect-ratio .components-button{width:36px;padding-right:0;padding-left:0}.wp-block-latest-comments.has-avatars .avatar{margin-left:10px}.wp-block-latest-comments__comment-excerpt p{font-size:14px;line-height:1.8;margin:5px 0 20px;padding-top:0}.wp-block-latest-comments.has-avatars .wp-block-latest-comments__comment{min-height:36px}.block-editor .wp-block-latest-posts{padding-right:2.5em}.block-editor .wp-block-latest-posts.is-grid{padding-right:0}.wp-block-latest-posts li a>div{display:inline}.edit-post-visual-editor .wp-block-latest-posts.is-grid li{margin-bottom:20px}ol.has-background.has-background,ul.has-background.has-background{padding:1.25em 2.375em}.wp-block-media-text .__resizable_base__{-ms-grid-column:1;-ms-grid-column-span:2;grid-column:1/span 2;-ms-grid-row:2;grid-row:2}.wp-block-media-text .editor-media-container__resizer{width:100%!important}.wp-block-media-text.is-image-fill .editor-media-container__resizer{height:100%!important}.wp-block-media-text>.block-editor-block-list__layout>.block-editor-block-list__block{max-width:unset}.block-editor-block-list__block[data-type="core/more"]{max-width:100%;text-align:center;margin-top:28px;margin-bottom:28px}.block-editor .wp-block-more{display:block;text-align:center;white-space:nowrap}.block-editor .wp-block-more input[type=text]{position:relative;font-size:13px;text-transform:uppercase;font-weight:600;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;color:#757575;border:none;box-shadow:none;white-space:nowrap;text-align:center;margin:0;border-radius:4px;background:#fff;padding:6px 8px;height:24px;max-width:100%}.block-editor .wp-block-more input[type=text]:focus{box-shadow:none}.block-editor .wp-block-more:before{content:"";position:absolute;top:50%;right:0;left:0;border-top:3px dashed #ccc}.editor-styles-wrapper .wp-block-navigation ol,.editor-styles-wrapper .wp-block-navigation ul{margin-bottom:0;margin-right:0;padding-right:0}.editor-styles-wrapper .wp-block-navigation .block-editor-block-list__block{margin:0}.wp-block-navigation .block-list-appender{margin:0;display:flex;align-items:center}.wp-block-navigation.is-vertical .block-list-appender{margin:8px}.wp-block-navigation__inserter-content{padding:16px}.wp-block-navigation__container{min-height:46px}.wp-block-navigation__container.is-parent-of-selected-block{visibility:visible;opacity:1}.has-child:hover>.wp-block-navigation__container,.has-child>.wp-block-navigation__container{opacity:0;visibility:hidden}.has-child.has-child-selected>.wp-block-navigation__container,.has-child.is-selected>.wp-block-navigation__container,.is-dragging-components-draggable .has-child.is-dragging-within>.wp-block-navigation__container{opacity:1;visibility:visible}.is-dragging-components-draggable .wp-block-navigation-link>.wp-block-navigation__container{opacity:1;visibility:hidden}.is-dragging-components-draggable .wp-block-navigation-link>.wp-block-navigation__container .block-editor-block-draggable-chip-wrapper{visibility:visible}.block-library-colors-selector{width:auto}.block-library-colors-selector .block-library-colors-selector__toggle{display:block;margin:0 auto;padding:3px;width:auto}.block-library-colors-selector .block-library-colors-selector__icon-container{height:30px;position:relative;margin:0 auto;padding:3px;display:flex;align-items:center;border-radius:4px}.block-library-colors-selector .block-library-colors-selector__state-selection{margin-right:auto;margin-left:auto;border-radius:11px;box-shadow:inset 0 0 0 1px rgba(0,0,0,.2);width:22px;min-width:22px;height:22px;min-height:22px;line-height:20px;padding:2px}.block-library-colors-selector .block-library-colors-selector__state-selection>svg{min-width:auto!important}.block-library-colors-selector .block-library-colors-selector__state-selection.has-text-color>svg,.block-library-colors-selector .block-library-colors-selector__state-selection.has-text-color>svg path{color:inherit}.block-library-colors-selector__popover .color-palette-controller-container{padding:16px}.block-library-colors-selector__popover .components-base-control__label{height:20px;line-height:20px}.block-library-colors-selector__popover .component-color-indicator{float:left;margin-top:2px}.block-library-colors-selector__popover .components-panel__body-title{display:none}.is-editing>.wp-block-navigation__container{visibility:visible;opacity:1;display:flex;flex-direction:column}.wp-block-navigation-placeholder .components-spinner{margin-top:-4px;margin-right:4px;vertical-align:middle;margin-left:7px}.wp-block-navigation-placeholder .components-custom-select-control__button{height:auto;padding:.375rem 1.5rem .375rem .75rem;min-width:13.75rem}.wp-block-navigation-placeholder .components-custom-select-control.has-menus .components-custom-select-control__item.is-create-empty-option{position:relative;margin-top:20px}.wp-block-navigation-placeholder .components-custom-select-control.has-menus .components-custom-select-control__item.is-create-empty-option:before{content:"";position:absolute;top:-10px;right:25px;left:25px;height:15px;border-top:1px solid #757575}.wp-block-navigation-placeholder .components-custom-select-control__label{margin-bottom:1rem;font-size:13px;font-weight:400}.wp-block-navigation-placeholder .components-custom-select-control__menu{margin:0;max-height:none;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px}.wp-block-navigation .block-editor-button-block-appender{justify-content:flex-start}.wp-block-navigation-link__container,.wp-block-navigation-link__field .components-text-control__input.components-text-control__input{border-radius:0;line-height:36px;min-height:36px}.wp-block-navigation-link .block-editor-block-list__layout{display:block}.wp-block-navigation-link.is-editing,.wp-block-navigation-link.is-selected{min-width:20px}.wp-block-navigation-link .block-editor-rich-text__editable.is-selected:not(.keep-placeholder-on-focus):not(:focus)[data-rich-text-placeholder]:after{display:inline-block}.wp-block-navigation-link .block-list-appender{margin:10px 10px 16px 16px}.wp-block-navigation-link__separator{margin:8px 0;border-top:1px solid #ddd}.components-popover.wp-block-navigation-link__dropdown-content{margin-top:-1px;margin-right:-4px}.wp-block-navigation-link__dropdown-content .components-popover__content>div{padding:8px 0}.wp-block-navigation .block-editor-block-list__block[data-type="core/navigation-link"]>.block-editor-block-list__insertion-point{display:none}.block-editor-block-list__block[data-type="core/nextpage"]{max-width:100%;margin-top:28px;margin-bottom:28px}.wp-block-nextpage{display:block;text-align:center;white-space:nowrap}.wp-block-nextpage>span{font-size:13px;position:relative;display:inline-block;text-transform:uppercase;font-weight:600;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;color:#757575;border-radius:4px;background:#fff;padding:6px 8px;height:24px}.wp-block-nextpage:before{content:"";position:absolute;top:50%;right:0;left:0;border-top:3px dashed #ccc}.block-editor-block-list__block[data-type="core/paragraph"].has-drop-cap:focus{min-height:auto!important}.wp-block-post-content__placeholder{height:100px;border:1px dashed;display:flex;justify-content:center;align-items:center}.wp-block-post-content__placeholder span{font-style:italic}.wp-block-post-excerpt .wp-block-post-excerpt__excerpt.is-inline{display:inline-block}.wp-block-post-author{display:flex;flex-wrap:wrap}.wp-block-post-author .wp-block-post-author__byline{font-size:.5em;margin-top:0;position:relative;font-style:normal}.wp-block-post-author .wp-block-post-author__content{flex-grow:1;flex-basis:0}.wp-block-post-author .wp-block-post-author__avatar img{margin:0}.wp-block-post-author .wp-block-post-author__avatar{margin-bottom:-8px}.wp-block-post-author .wp-block-post-author__name{margin:0;font-weight:700}.wp-block-post-author .wp-block-post-author__bio{margin:0 0 8px;font-size:.7em}.wp-block[data-align=left]>.wp-block-pullquote p,.wp-block[data-align=right]>.wp-block-pullquote p{font-size:20px}.wp-block-pullquote blockquote p{font-size:28px;line-height:1.6}.wp-block-pullquote.is-style-solid-color blockquote p{font-size:32px}.wp-block-pullquote.is-style-solid-color .wp-block-pullquote__citation{text-transform:none;font-style:normal}.wp-block-pullquote .wp-block-pullquote__citation{color:inherit}.wp-block-quote__citation{font-size:13px}.block-editor .wp-block-rss{padding-right:2.5em}.block-editor .wp-block-rss.is-grid{padding-right:0}.wp-block-rss li a>div{display:inline}.wp-block-rss__placeholder-form{display:flex;align-items:stretch}.wp-block-rss__placeholder-form>*{margin-bottom:8px}@media (min-width:782px){.wp-block-rss__placeholder-form>*{margin-bottom:0}}.wp-block-rss__placeholder-input{display:flex;align-items:stretch;flex-grow:1}.wp-block-rss__placeholder-input .components-base-control__field{display:flex;align-items:stretch;flex-grow:1;margin:0 0 0 8px}.wp-block-search .wp-block-search__input{padding:8px}.wp-block-search.wp-block-search__button-inside .wp-block-search__inside-wrapper{padding:4px}.wp-block-search.wp-block-search__button-inside .wp-block-search__inside-wrapper,.wp-block-search .wp-block-search__input{border-radius:2px;border:1px solid #949494;color:rgba(30,30,30,.62);font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;background-color:#fff}.wp-block-search.wp-block-search__button-inside .wp-block-search__inside-wrapper:focus,.wp-block-search .wp-block-search__input:focus{outline:none}.wp-block-search .wp-block-search__button{background:#f7f7f7;border-radius:2px;border:1px solid #ccc;box-shadow:inset 0 -1px 0 #ccc;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;padding:6px 10px;color:#32373c}.wp-block-search__components-button-group{margin-top:10px}.block-editor-block-list__block[data-type="core/separator"]{padding-top:.1px;padding-bottom:.1px}.block-editor-block-list__block[data-type="core/separator"].block-editor-block-list__block{margin-top:0;margin-bottom:0}.wp-block-shortcode{display:flex;flex-direction:column;padding:14px;font-size:13px;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;margin-bottom:28px}.wp-block-shortcode label{display:flex;align-items:center;white-space:nowrap;font-weight:600;flex-shrink:0}.wp-block-shortcode .block-editor-plain-text{max-height:250px}.wp-block-shortcode .dashicon{margin-left:8px}.block-editor .blocks-shortcode__textarea,.blocks-shortcode__textarea{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;padding:6px 8px;box-shadow:0 0 0 transparent;transition:box-shadow .1s linear;border-radius:2px;border:1px solid #757575;font-size:16px;line-height:normal}@media (prefers-reduced-motion:reduce){.block-editor .blocks-shortcode__textarea,.blocks-shortcode__textarea{transition-duration:0s}}@media (min-width:600px){.block-editor .blocks-shortcode__textarea,.blocks-shortcode__textarea{font-size:13px;line-height:normal}}.block-editor .blocks-shortcode__textarea:focus,.blocks-shortcode__textarea:focus{border-color:#007cba;border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 .5px #007cba;box-shadow:0 0 0 .5px var(--wp-admin-theme-color);outline:2px solid transparent}.block-editor .blocks-shortcode__textarea::-webkit-input-placeholder,.blocks-shortcode__textarea::-webkit-input-placeholder{color:rgba(30,30,30,.62)}.block-editor .blocks-shortcode__textarea::-moz-placeholder,.blocks-shortcode__textarea::-moz-placeholder{opacity:1;color:rgba(30,30,30,.62)}.block-editor .blocks-shortcode__textarea:-ms-input-placeholder,.blocks-shortcode__textarea:-ms-input-placeholder{color:rgba(30,30,30,.62)}.is-dark-theme .block-editor .blocks-shortcode__textarea::-webkit-input-placeholder,.is-dark-theme .blocks-shortcode__textarea::-webkit-input-placeholder{color:hsla(0,0%,100%,.65)}.is-dark-theme .block-editor .blocks-shortcode__textarea::-moz-placeholder,.is-dark-theme .blocks-shortcode__textarea::-moz-placeholder{opacity:1;color:hsla(0,0%,100%,.65)}.is-dark-theme .block-editor .blocks-shortcode__textarea:-ms-input-placeholder,.is-dark-theme .blocks-shortcode__textarea:-ms-input-placeholder{color:hsla(0,0%,100%,.65)}.wp-block[data-align=center]>.wp-block-site-logo{margin-right:auto;margin-left:auto;text-align:center}.wp-block-site-logo.is-resized{display:table}.wp-block-site-logo .custom-logo-link{cursor:inherit}.wp-block-site-logo .custom-logo-link:focus{box-shadow:none}.wp-block-site-logo .custom-logo-link.is-transient img{opacity:.3}.wp-block-site-logo img{display:block;max-width:100%}.wp-block-social-links .wp-social-link button{color:currentColor;padding:6px}.wp-block-social-links.is-style-pill-shape .wp-social-link button{padding-right:16px;padding-left:16px}.wp-block-social-links div.block-editor-url-input{display:inline-block;margin-right:8px}.editor-styles-wrapper .wp-block-social-link{margin:0 0 8px 8px}.editor-styles-wrapper .wp-block-social-link.is-hovered,.editor-styles-wrapper .wp-block-social-link.is-selected{transform:none}.editor-styles-wrapper .wp-block-social-links{padding:0}.wp-block-social-links__social-placeholder{display:flex}.wp-block-social-links__social-placeholder .wp-block-social-link{display:inline-flex;align-items:center;justify-content:center;margin:0 0 8px 8px;width:36px;height:36px;border-radius:50%;opacity:.8}.is-style-logos-only .wp-block-social-links__social-placeholder .wp-block-social-link:before{content:"";display:block;width:18px;height:18px;border-radius:50%;opacity:.8;background:currentColor}.is-style-pill-shape .wp-block-social-links__social-placeholder .wp-block-social-link{border-radius:9999px;padding-right:28px;padding-left:28px}.wp-block-social-links .block-list-appender{margin:0 0 8px;display:flex;align-items:center}.wp-block[data-align=center]>.wp-block-social-links{justify-content:center}.block-editor-block-preview__content .wp-social-link:disabled{opacity:1}[data-type="core/social-links"]:not(.is-selected):not(.has-child-selected) .wp-block-social-links{min-height:36px}.wp-social-link.wp-social-link__is-incomplete{opacity:.5}@media (prefers-reduced-motion:reduce){.wp-social-link.wp-social-link__is-incomplete{transition-duration:0s}}.wp-block-social-links .is-selected .wp-social-link__is-incomplete,.wp-social-link.wp-social-link__is-incomplete:focus,.wp-social-link.wp-social-link__is-incomplete:hover{opacity:1}[data-type="core/social-links"] .wp-social-link:focus{opacity:1;box-shadow:0 0 0 2px #fff,0 0 0 4px #007cba;box-shadow:0 0 0 2px #fff,0 0 0 4px var(--wp-admin-theme-color);outline:2px solid transparent}.block-editor-block-list__layout .block-editor-block-list__block[data-type="core/social-link"]:not([contenteditable]):focus:after,.is-navigate-mode .block-editor-block-list__layout .block-editor-block-list__block[data-type="core/social-link"].is-selected:after{left:8px}.block-editor-block-list__block[data-type="core/spacer"]:before{content:"";display:block;position:absolute;width:100%;height:24px;transform:translateY(-12px)}.block-library-spacer__resize-container.has-show-handle{background:#f0f0f0}.is-dark-theme .block-library-spacer__resize-container.has-show-handle{background:hsla(0,0%,100%,.15)}.block-library-spacer__resize-container{clear:both;margin-bottom:28px}.block-library-spacer__resize-container .components-resizable-box__handle:before{content:none}.edit-post-visual-editor p.wp-block-subhead{color:#555;font-size:1.1em;font-style:italic}.wp-block-table{margin:0}.wp-block[data-align=center]>.wp-block-table,.wp-block[data-align=left]>.wp-block-table,.wp-block[data-align=right]>.wp-block-table{height:auto}.wp-block[data-align=center]>.wp-block-table table,.wp-block[data-align=left]>.wp-block-table table,.wp-block[data-align=right]>.wp-block-table table{width:auto}.wp-block[data-align=center]>.wp-block-table td,.wp-block[data-align=center]>.wp-block-table th,.wp-block[data-align=left]>.wp-block-table td,.wp-block[data-align=left]>.wp-block-table th,.wp-block[data-align=right]>.wp-block-table td,.wp-block[data-align=right]>.wp-block-table th{word-break:break-word}.wp-block[data-align=center]>.wp-block-table{text-align:initial}.wp-block[data-align=center]>.wp-block-table table{margin:0 auto}.wp-block-table table{border-collapse:collapse}.wp-block-table td,.wp-block-table th{border:1px solid}.wp-block-table td.is-selected,.wp-block-table th.is-selected{border-color:#007cba;border-color:var(--wp-admin-theme-color);box-shadow:inset 0 0 0 1px #007cba;box-shadow:inset 0 0 0 1px var(--wp-admin-theme-color);border-style:double}.wp-block-table figcaption{color:#555;font-size:13px;text-align:center}.blocks-table__placeholder-form.blocks-table__placeholder-form{display:flex;flex-direction:column;align-items:flex-start}.blocks-table__placeholder-form.blocks-table__placeholder-form>*{margin-bottom:8px}@media (min-width:782px){.blocks-table__placeholder-form.blocks-table__placeholder-form{flex-direction:row;align-items:flex-end}.blocks-table__placeholder-form.blocks-table__placeholder-form>*{margin-bottom:0}}.blocks-table__placeholder-input{width:112px;margin-left:8px;margin-bottom:0}.blocks-table__placeholder-input input{height:36px}.blocks-table__placeholder-input .components-base-control__field{margin-bottom:0}.block-editor .wp-block-tag-cloud a{display:inline-block;margin-left:5px}.block-editor .wp-block-tag-cloud span{display:inline-block;margin-right:5px;color:#757575;text-decoration:none}.wp-block-template-part__placeholder-preview-dropdown-content .components-popover__content,.wp-block-template-part__preview-dropdown-content .components-popover__content{min-width:320px;padding:0}.wp-block-template-part__selection-preview-search-form{border-bottom:1px solid #ddd}.wp-block-template-part__selection-preview-container{background:#fff;padding-bottom:16px}.wp-block-template-part__selection-preview-container .wp-block-template-part__selection-preview-item{border-radius:2px;cursor:pointer;margin-top:16px;transition:all .05s ease-in-out;border:1px solid transparent;width:100%;background-color:#fff}.wp-block-template-part__selection-preview-container .wp-block-template-part__selection-preview-item:hover{border:1px solid #007cba;border:1px solid var(--wp-admin-theme-color)}.wp-block-template-part__selection-preview-container .wp-block-template-part__selection-preview-item:focus{box-shadow:inset 0 0 0 1px #fff,0 0 0 1.5px #007cba;box-shadow:inset 0 0 0 1px #fff,0 0 0 1.5px var(--wp-admin-theme-color);outline:2px solid transparent}.wp-block-template-part__selection-preview-container .wp-block-template-part__selection-preview-item.is-placeholder{min-height:100px}.wp-block-template-part__selection-preview-container .wp-block-template-part__selection-preview-item-title{padding:4px;font-size:12px;text-align:right}.wp-block-template-part__selection-preview-container .wp-block-template-part__selection-panel-group-header{padding:16px 16px 0}.wp-block-template-part__selection-preview-container .wp-block-template-part__selection-panel-group-content{padding:0 16px}.wp-block-template-part__selection-preview-container .wp-block-template-part__selection-panel-group-title{color:#007cba;color:var(--wp-admin-theme-color);text-transform:uppercase;font-size:11px;font-weight:500}.wp-block-template-part__block-control-group{display:flex}.wp-block-template-part__block-control-group .wp-block-template-part__name-panel{outline:1px solid transparent;padding:8px 12px 8px 0}.wp-block-template-part__block-control-group .wp-block-template-part__name-panel .components-base-control__field{align-items:center;display:flex;margin-bottom:0}.wp-block-template-part__block-control-group .wp-block-template-part__name-panel .components-base-control__label{margin-bottom:0;margin-left:8px}.is-dark-theme .is-navigate-mode .is-selected .wp-block-template-part__name-panel,.is-navigate-mode .is-selected .wp-block-template-part__name-panel{box-shadow:0 0 0 1px #007cba;box-shadow:0 0 0 1px var(--wp-admin-theme-color)}.block-editor-block-list__block[data-type="core/template-part"].has-child-selected:after,.block-editor-block-list__block[data-type="core/template-part"].is-selected:after{top:1px;bottom:1px;right:1px;left:1px;border-radius:1px}.block-editor-block-list__block[data-type="core/template-part"].is-selected:after{box-shadow:0 0 0 1.5px #007cba;box-shadow:0 0 0 1.5px var(--wp-admin-theme-color)}.is-dark-theme .block-editor-block-list__block[data-type="core/template-part"].is-selected:after{box-shadow:0 0 0 1.5px #fff}.block-editor-block-list__block[data-type="core/template-part"].has-child-selected:after{box-shadow:0 0 0 1px #ddd}.is-dark-theme .block-editor-block-list__block[data-type="core/template-part"].has-child-selected:after{box-shadow:0 0 0 1.5px #757575}.wp-block-text-columns .block-editor-rich-text__editable:focus{outline:1px solid #ddd}pre.wp-block-verse{color:#1e1e1e;white-space:nowrap;font-family:inherit;font-size:inherit;padding:1em;overflow:auto}.wp-block[data-align=center]>.wp-block-video{text-align:center}.editor-video-poster-control .components-base-control__label{display:block}.editor-video-poster-control .components-button{margin-left:8px}.block-library-video-tracks-editor{z-index:159990}.block-library-video-tracks-editor>.components-popover__content{width:360px}.block-library-video-tracks-editor__track-list-track{display:flex;place-content:space-between;align-items:baseline;padding-right:12px}.block-library-video-tracks-editor__single-track-editor-label-language{display:flex;margin-top:12px}.block-library-video-tracks-editor__single-track-editor-label-language>.components-base-control{width:50%}.block-library-video-tracks-editor__single-track-editor-label-language>.components-base-control:first-child{margin-left:16px}.block-library-video-tracks-editor__single-track-editor-kind-select{max-width:240px}.block-library-video-tracks-editor__single-track-editor-buttons-container{display:flex;place-content:space-between;margin-top:32px}.block-library-video-tracks-editor__single-track-editor-edit-track-label{margin-top:4px;margin-bottom:12px;color:#757575;text-transform:uppercase;font-size:11px;font-weight:500;display:block}.block-library-video-tracks-editor>.components-popover__content>div{padding:0}.block-library-video-tracks-editor__add-tracks-container .components-menu-group__label,.block-library-video-tracks-editor__track-list .components-menu-group__label{padding:0}.block-library-video-tracks-editor__add-tracks-container,.block-library-video-tracks-editor__single-track-editor,.block-library-video-tracks-editor__track-list{padding:12px}.block-library-video-tracks-editor__single-track-editor .components-base-control .components-base-control__label{margin-bottom:4px}.block-library-video-tracks-editor__single-track-editor .components-base-control .components-base-control__field{margin-bottom:12px}.block-library-video-tracks-editor__single-track-editor .components-base-control .components-text-control__input{margin-right:0}.block-library-video-tracks-editor__single-track-editor .components-base-control .components-input-control__label{margin-bottom:4px}.editor-styles-wrapper .wp-block.wp-block-query,.editor-styles-wrapper .wp-block.wp-block-query-loop{max-width:100%}div[data-type="core/post-featured-image"] .post-featured-image_placeholder{display:flex;flex-direction:row;align-items:flex-start;border-radius:2px;background-color:#fff;box-shadow:inset 0 0 0 1px #1e1e1e;padding:12px}div[data-type="core/post-featured-image"] .post-featured-image_placeholder svg{margin-left:12px}div[data-type="core/post-featured-image"] .post-featured-image_placeholder p{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;margin:0}div[data-type="core/post-featured-image"] img{max-width:100%;height:auto;display:block}.block-editor-block-list__layout .reusable-block-edit-panel{align-items:center;display:flex;flex-wrap:wrap;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;padding:6px 12px;border-radius:2px;background-color:#fff;box-shadow:0 0 0 1px #1e1e1e;outline:1px solid transparent}.block-editor-block-list__layout .reusable-block-edit-panel .reusable-block-edit-panel__info{margin-left:auto}.block-editor-block-list__layout .reusable-block-edit-panel .reusable-block-edit-panel__label{margin-left:8px;white-space:nowrap;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px}.block-editor-block-list__layout .reusable-block-edit-panel .reusable-block-edit-panel__title{flex:1 1 100%}.block-editor-block-list__layout .reusable-block-edit-panel .components-button.reusable-block-edit-panel__button{flex-shrink:0}@media (min-width:960px){.block-editor-block-list__layout .reusable-block-edit-panel{flex-wrap:nowrap}.block-editor-block-list__layout .reusable-block-edit-panel .reusable-block-edit-panel__title{margin:0}.block-editor-block-list__layout .reusable-block-edit-panel .components-button.reusable-block-edit-panel__button{margin:0 8px 0 0}}.reusable-block-edit-panel__title[type=text]{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;padding:6px 8px;box-shadow:0 0 0 transparent;transition:box-shadow .1s linear;border-radius:2px;border:1px solid #757575;font-size:16px;line-height:normal}@media (prefers-reduced-motion:reduce){.reusable-block-edit-panel__title[type=text]{transition-duration:0s}}@media (min-width:600px){.reusable-block-edit-panel__title[type=text]{font-size:13px;line-height:normal}}.reusable-block-edit-panel__title[type=text]:focus{border-color:#007cba;border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 .5px #007cba;box-shadow:0 0 0 .5px var(--wp-admin-theme-color);outline:2px solid transparent}.reusable-block-edit-panel__title[type=text]::-webkit-input-placeholder{color:rgba(30,30,30,.62)}.reusable-block-edit-panel__title[type=text]::-moz-placeholder{opacity:1;color:rgba(30,30,30,.62)}.reusable-block-edit-panel__title[type=text]:-ms-input-placeholder{color:rgba(30,30,30,.62)}.is-dark-theme .reusable-block-edit-panel__title[type=text]::-webkit-input-placeholder{color:hsla(0,0%,100%,.65)}.is-dark-theme .reusable-block-edit-panel__title[type=text]::-moz-placeholder{opacity:1;color:hsla(0,0%,100%,.65)}.is-dark-theme .reusable-block-edit-panel__title[type=text]:-ms-input-placeholder{color:hsla(0,0%,100%,.65)}.is-dark-theme .is-navigate-mode .is-selected .reusable-block-edit-panel,.is-navigate-mode .is-selected .reusable-block-edit-panel{box-shadow:0 0 0 1px #007cba;box-shadow:0 0 0 1px var(--wp-admin-theme-color)}:root .editor-styles-wrapper .has-pale-pink-background-color{background-color:#f78da7}:root .editor-styles-wrapper .has-vivid-red-background-color{background-color:#cf2e2e}:root .editor-styles-wrapper .has-luminous-vivid-orange-background-color{background-color:#ff6900}:root .editor-styles-wrapper .has-luminous-vivid-amber-background-color{background-color:#fcb900}:root .editor-styles-wrapper .has-light-green-cyan-background-color{background-color:#7bdcb5}:root .editor-styles-wrapper .has-vivid-green-cyan-background-color{background-color:#00d084}:root .editor-styles-wrapper .has-pale-cyan-blue-background-color{background-color:#8ed1fc}:root .editor-styles-wrapper .has-vivid-cyan-blue-background-color{background-color:#0693e3}:root .editor-styles-wrapper .has-vivid-purple-background-color{background-color:#9b51e0}:root .editor-styles-wrapper .has-white-background-color{background-color:#fff}:root .editor-styles-wrapper .has-very-light-gray-background-color{background-color:#eee}:root .editor-styles-wrapper .has-cyan-bluish-gray-background-color{background-color:#abb8c3}:root .editor-styles-wrapper .has-very-dark-gray-background-color{background-color:#313131}:root .editor-styles-wrapper .has-black-background-color{background-color:#000}:root .editor-styles-wrapper .has-pale-pink-color{color:#f78da7}:root .editor-styles-wrapper .has-vivid-red-color{color:#cf2e2e}:root .editor-styles-wrapper .has-luminous-vivid-orange-color{color:#ff6900}:root .editor-styles-wrapper .has-luminous-vivid-amber-color{color:#fcb900}:root .editor-styles-wrapper .has-light-green-cyan-color{color:#7bdcb5}:root .editor-styles-wrapper .has-vivid-green-cyan-color{color:#00d084}:root .editor-styles-wrapper .has-pale-cyan-blue-color{color:#8ed1fc}:root .editor-styles-wrapper .has-vivid-cyan-blue-color{color:#0693e3}:root .editor-styles-wrapper .has-vivid-purple-color{color:#9b51e0}:root .editor-styles-wrapper .has-white-color{color:#fff}:root .editor-styles-wrapper .has-very-light-gray-color{color:#eee}:root .editor-styles-wrapper .has-cyan-bluish-gray-color{color:#abb8c3}:root .editor-styles-wrapper .has-very-dark-gray-color{color:#313131}:root .editor-styles-wrapper .has-black-color{color:#000}:root .editor-styles-wrapper .has-vivid-cyan-blue-to-vivid-purple-gradient-background{background:linear-gradient(-135deg,#0693e3,#9b51e0)}:root .editor-styles-wrapper .has-vivid-green-cyan-to-vivid-cyan-blue-gradient-background{background:linear-gradient(-135deg,#00d084,#0693e3)}:root .editor-styles-wrapper .has-light-green-cyan-to-vivid-green-cyan-gradient-background{background:linear-gradient(-135deg,#7adcb4,#00d082)}:root .editor-styles-wrapper .has-luminous-vivid-amber-to-luminous-vivid-orange-gradient-background{background:linear-gradient(-135deg,#fcb900,#ff6900)}:root .editor-styles-wrapper .has-luminous-vivid-orange-to-vivid-red-gradient-background{background:linear-gradient(-135deg,#ff6900,#cf2e2e)}:root .editor-styles-wrapper .has-very-light-gray-to-cyan-bluish-gray-gradient-background{background:linear-gradient(-135deg,#eee,#a9b8c3)}:root .editor-styles-wrapper .has-cool-to-warm-spectrum-gradient-background{background:linear-gradient(-135deg,#4aeadc,#9778d1 20%,#cf2aba 40%,#ee2c82 60%,#fb6962 80%,#fef84c)}:root .editor-styles-wrapper .has-blush-light-purple-gradient-background{background:linear-gradient(-135deg,#ffceec,#9896f0)}:root .editor-styles-wrapper .has-blush-bordeaux-gradient-background{background:linear-gradient(-135deg,#fecda5,#fe2d2d 50%,#6b003e)}:root .editor-styles-wrapper .has-purple-crush-gradient-background{background:linear-gradient(-135deg,#34e2e4,#4721fb 50%,#ab1dfe)}:root .editor-styles-wrapper .has-luminous-dusk-gradient-background{background:linear-gradient(-135deg,#ffcb70,#c751c0 50%,#4158d0)}:root .editor-styles-wrapper .has-hazy-dawn-gradient-background{background:linear-gradient(-135deg,#faaca8,#dad0ec)}:root .editor-styles-wrapper .has-pale-ocean-gradient-background{background:linear-gradient(-135deg,#fff5cb,#b6e3d4 50%,#33a7b5)}:root .editor-styles-wrapper .has-electric-grass-gradient-background{background:linear-gradient(-135deg,#caf880,#71ce7e)}:root .editor-styles-wrapper .has-subdued-olive-gradient-background{background:linear-gradient(-135deg,#fafae1,#67a671)}:root .editor-styles-wrapper .has-atomic-cream-gradient-background{background:linear-gradient(-135deg,#fdd79a,#004a59)}:root .editor-styles-wrapper .has-nightshade-gradient-background{background:linear-gradient(-135deg,#330968,#31cdcf)}:root .editor-styles-wrapper .has-midnight-gradient-background{background:linear-gradient(-135deg,#020381,#2874fc)}.editor-styles-wrapper .has-small-font-size{font-size:13px}.editor-styles-wrapper .has-normal-font-size,.editor-styles-wrapper .has-regular-font-size{font-size:16px}.editor-styles-wrapper .has-medium-font-size{font-size:20px}.editor-styles-wrapper .has-large-font-size{font-size:36px}.editor-styles-wrapper .has-huge-font-size,.editor-styles-wrapper .has-larger-font-size{font-size:42px}.block-editor-block-list__block{margin-top:28px;margin-bottom:28px}#end-resizable-editor-section{display:none} \ No newline at end of file +:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-20:#005a87}#start-resizable-editor-section{display:none}.block-editor ul.wp-block-archives{padding-right:2.5em}.wp-block-audio{margin-right:0;margin-left:0}.edit-post-visual-editor .block-library-block__reusable-block-container .block-editor-writing-flow__click-redirect{min-height:auto}.edit-post-visual-editor .block-library-block__reusable-block-container .is-root-container{padding-right:0;padding-left:0}.edit-post-visual-editor .block-library-block__reusable-block-container .block-editor-writing-flow{display:block}.edit-post-visual-editor .block-library-block__reusable-block-container .components-disabled .block-list-appender{display:none}.wp-block[data-align=center]>.wp-block-button{text-align:center;margin-right:auto;margin-left:auto}.wp-block[data-align=right]>.wp-block-button{text-align:right}.wp-block-button{position:relative;cursor:text}.wp-block-button:not(.has-text-color):not(.is-style-outline) [data-rich-text-placeholder]:after{color:#fff}.wp-block-button:focus{box-shadow:0 0 0 1px #fff,0 0 0 3px #007cba;box-shadow:0 0 0 1px #fff,0 0 0 3px var(--wp-admin-theme-color);outline:2px solid transparent;outline-offset:-2px}.wp-block-button[data-rich-text-placeholder]:after{opacity:.8}.wp-block-button__inline-link{color:#757575;height:0;overflow:hidden;max-width:290px}.wp-block-button__inline-link-input__suggestions{max-width:290px}@media (min-width:782px){.wp-block-button__inline-link,.wp-block-button__inline-link-input__suggestions{max-width:260px}}@media (min-width:960px){.wp-block-button__inline-link,.wp-block-button__inline-link-input__suggestions{max-width:290px}}.is-selected .wp-block-button__inline-link{height:auto;overflow:visible;margin-top:16px}div[data-type="core/button"]{display:table}.wp-block-buttons>.wp-block{margin-right:0}.wp-block[data-align=center]>.wp-block-buttons{display:flex;align-items:center;flex-wrap:wrap;justify-content:center}.wp-block[data-align=right]>.wp-block-buttons{display:flex;justify-content:flex-end}.wp-block-buttons>.block-list-appender{display:inline-block}.block-editor .wp-block-categories ul{padding-right:2.5em}.block-editor .wp-block-categories ul ul{margin-top:6px}.wp-block-code>code{display:block}.wp-block-columns .wp-block{max-width:none;margin-right:0;margin-left:0}@media (min-width:600px){.editor-styles-wrapper .block-editor-block-list__block.wp-block-column:nth-child(2n){margin-right:32px}}@media (min-width:782px){.editor-styles-wrapper .block-editor-block-list__block.wp-block-column:not(:first-child){margin-right:32px}}.block-editor-block-list__block.wp-block-column.wp-block-column{margin-top:0;margin-bottom:0}.wp-block-cover{position:relative}.wp-block-cover.is-placeholder{min-height:auto!important;padding:0!important}.wp-block-cover.components-placeholder h2{color:inherit}.wp-block-cover.is-transient:before{background-color:#fff;opacity:.3}.wp-block-cover .components-spinner{position:absolute;z-index:1;top:50%;right:50%;transform:translate(50%,-50%);margin:0}.wp-block-cover .block-editor-block-list__layout{width:100%}.wp-block-cover .wp-block-cover__inner-container{text-align:right;margin-right:0;margin-left:0}.wp-block-cover .wp-block-cover__placeholder-background-options{width:100%}[data-align=left]>.wp-block-cover,[data-align=right]>.wp-block-cover{max-width:290px;width:100%}.block-library-cover__reset-button{margin-right:auto}.block-library-cover__resize-container{position:absolute!important;top:0;right:0;left:0;bottom:0}.block-library-cover__resize-container:not(.is-resizing){height:auto!important}.wp-block-embed{margin-right:0;margin-left:0;clear:both}.wp-block-embed.is-loading{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:1em;min-height:200px;text-align:center;border-radius:2px;background-color:#fff;box-shadow:inset 0 0 0 1px #1e1e1e}.wp-block-embed.is-loading p{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px}.wp-block-embed .components-placeholder__error{word-break:break-word}.wp-block-embed .components-placeholder__learn-more{margin-top:1em}.block-library-embed__interactive-overlay{position:absolute;top:0;right:0;left:0;bottom:0;opacity:0}.wp-block-file{display:flex;justify-content:space-between;align-items:center;margin-bottom:0}.wp-block-file .wp-block-file__content-wrapper{flex-grow:1}.wp-block-file .wp-block-file__textlink{display:inline-block;min-width:1em}.wp-block-file .wp-block-file__textlink:focus{box-shadow:none}.wp-block-file .wp-block-file__button-richtext-wrapper{display:inline-block;margin-right:.75em}.wp-block-file .wp-block-file__copy-url-button{margin-right:1em}.wp-block-freeform.block-library-rich-text__tinymce{height:auto}.wp-block-freeform.block-library-rich-text__tinymce li,.wp-block-freeform.block-library-rich-text__tinymce p{line-height:1.8}.wp-block-freeform.block-library-rich-text__tinymce ol,.wp-block-freeform.block-library-rich-text__tinymce ul{padding-right:2.5em;margin-right:0}.wp-block-freeform.block-library-rich-text__tinymce blockquote{margin:0;box-shadow:inset 0 0 0 0 #ddd;border-right:4px solid #000;padding-right:1em}.wp-block-freeform.block-library-rich-text__tinymce pre{white-space:pre-wrap;font-family:Menlo,Consolas,monaco,monospace;font-size:15px;color:#1e1e1e}.wp-block-freeform.block-library-rich-text__tinymce>:first-child{margin-top:0}.wp-block-freeform.block-library-rich-text__tinymce>:last-child{margin-bottom:0}.wp-block-freeform.block-library-rich-text__tinymce.mce-edit-focus{outline:none}.wp-block-freeform.block-library-rich-text__tinymce a{color:#007cba;color:var(--wp-admin-theme-color)}.wp-block-freeform.block-library-rich-text__tinymce:focus a[data-mce-selected]{padding:0 2px;margin:0 -2px;border-radius:2px;box-shadow:0 0 0 1px #e5f5fa;background:#e5f5fa}.wp-block-freeform.block-library-rich-text__tinymce code{padding:2px;border-radius:2px;color:#1e1e1e;background:#f0f0f0;font-family:Menlo,Consolas,monaco,monospace;font-size:14px}.wp-block-freeform.block-library-rich-text__tinymce:focus code[data-mce-selected]{background:#ddd}.wp-block-freeform.block-library-rich-text__tinymce .alignright{float:right;margin:.5em 0 .5em 1em}.wp-block-freeform.block-library-rich-text__tinymce .alignleft{float:left;margin:.5em 1em .5em 0}.wp-block-freeform.block-library-rich-text__tinymce .aligncenter{display:block;margin-right:auto;margin-left:auto}.wp-block-freeform.block-library-rich-text__tinymce .wp-more-tag{width:96%;height:20px;display:block;margin:15px auto;outline:0;cursor:default;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAADtgAAAAoBAMAAAA86gLBAAAAJFBMVEVMaXG7u7vBwcHDw8POzs68vLzGxsbMzMy+vr7AwMDQ0NDGxsYKLGzpAAAADHRSTlMA///zWf+/f///TMxNVGuqAAABwklEQVR4Ae3dMXLaQBTH4bfj8UCpx8hq0vgKvgFNemhT6Qo6gg6R+0ZahM2QLmyBJ99XWP9V5+o3jIUcLQEAAAAAAAAAAAAAAAAAAAAAAABQ8j0WL9lfTtlt18uNXAUA8O/KVtfa1tdcrOdSh9gCQAMlh1hMNbZZ1bsrsQWABsrhLRbz7z5in/32UbfUMUbkMQCAh5RfGYv82UdMdZ6HS2wjT2ILAI8r3XmM2B3WvM59vfO2xXYW2yYAENuPU8S+X/N67mKxzy225yaxBQCxLV392UdcvwV0jPVUj98ntkBWT7C7+9u2/V/vGtvXIWJ6/4rtbottWa6Ri0NUT/u72LYttrb97LHdvUXMxxrb8TO2W2TF1rYbbLG1bbGNjMi4+2Sbi1FsbbvNFlvbFtt5fDnE3d9sP1/XeIyV2Nr2U2/guZUuptNrH/dPI9eLB6SaAEBs6wPJf3/PNk9tYgsAYrv/8TFuzx/fvkFqGtrEFgDEdpcZUb7ejXy6ntrEFgDENvL6gsas4vbdyKt4DACI7TxElJv/Z7udpqFNbAFAbKduy2uU2trttM/x28UWAAAAAAAAAAAAAAAAAAAAAAAAAADgDyPwGmGTCZp7AAAAAElFTkSuQmCC);background-size:1900px 20px;background-repeat:no-repeat;background-position:50%}.wp-block-freeform.block-library-rich-text__tinymce img::selection{background-color:transparent}.wp-block-freeform.block-library-rich-text__tinymce div.mceTemp{-ms-user-select:element}.wp-block-freeform.block-library-rich-text__tinymce dl.wp-caption{margin:0;max-width:100%}.wp-block-freeform.block-library-rich-text__tinymce dl.wp-caption a,.wp-block-freeform.block-library-rich-text__tinymce dl.wp-caption img{display:block}.wp-block-freeform.block-library-rich-text__tinymce dl.wp-caption,.wp-block-freeform.block-library-rich-text__tinymce dl.wp-caption *{-webkit-user-drag:none}.wp-block-freeform.block-library-rich-text__tinymce dl.wp-caption .wp-caption-dd{padding-top:.5em;margin:0}.wp-block-freeform.block-library-rich-text__tinymce .wpview{width:99.99%;position:relative;clear:both;margin-bottom:16px;border:1px solid transparent}.wp-block-freeform.block-library-rich-text__tinymce .wpview iframe{display:block;max-width:100%;background:transparent}.wp-block-freeform.block-library-rich-text__tinymce .wpview .mce-shim{position:absolute;top:0;left:0;bottom:0;right:0}.wp-block-freeform.block-library-rich-text__tinymce .wpview[data-mce-selected="2"] .mce-shim{display:none}.wp-block-freeform.block-library-rich-text__tinymce .wpview .loading-placeholder{border:1px dashed #ddd;padding:10px}.wp-block-freeform.block-library-rich-text__tinymce .wpview .wpview-error{border:1px solid #ddd;padding:1em 0;margin:0;word-wrap:break-word}.wp-block-freeform.block-library-rich-text__tinymce .wpview .wpview-error p{margin:0;text-align:center}.wp-block-freeform.block-library-rich-text__tinymce .wpview[data-mce-selected] .loading-placeholder,.wp-block-freeform.block-library-rich-text__tinymce .wpview[data-mce-selected] .wpview-error{border-color:transparent}.wp-block-freeform.block-library-rich-text__tinymce .wpview .dashicons{display:block;margin:0 auto;width:32px;height:32px;font-size:32px}.wp-block-freeform.block-library-rich-text__tinymce .wpview.wpview-type-gallery:after{content:"";display:table;clear:both}.wp-block-freeform.block-library-rich-text__tinymce .gallery img[data-mce-selected]:focus{outline:none}.wp-block-freeform.block-library-rich-text__tinymce .gallery a{cursor:default}.wp-block-freeform.block-library-rich-text__tinymce .gallery{margin:auto -6px;padding:6px 0;line-height:1;overflow-x:hidden}.wp-block-freeform.block-library-rich-text__tinymce .gallery .gallery-item{float:right;margin:0;text-align:center;padding:6px;box-sizing:border-box}.wp-block-freeform.block-library-rich-text__tinymce .gallery .gallery-caption,.wp-block-freeform.block-library-rich-text__tinymce .gallery .gallery-icon{margin:0}.wp-block-freeform.block-library-rich-text__tinymce .gallery .gallery-caption{font-size:13px;margin:4px 0}.wp-block-freeform.block-library-rich-text__tinymce .gallery-columns-1 .gallery-item{width:100%}.wp-block-freeform.block-library-rich-text__tinymce .gallery-columns-2 .gallery-item{width:50%}.wp-block-freeform.block-library-rich-text__tinymce .gallery-columns-3 .gallery-item{width:33.33333%}.wp-block-freeform.block-library-rich-text__tinymce .gallery-columns-4 .gallery-item{width:25%}.wp-block-freeform.block-library-rich-text__tinymce .gallery-columns-5 .gallery-item{width:20%}.wp-block-freeform.block-library-rich-text__tinymce .gallery-columns-6 .gallery-item{width:16.66667%}.wp-block-freeform.block-library-rich-text__tinymce .gallery-columns-7 .gallery-item{width:14.28571%}.wp-block-freeform.block-library-rich-text__tinymce .gallery-columns-8 .gallery-item{width:12.5%}.wp-block-freeform.block-library-rich-text__tinymce .gallery-columns-9 .gallery-item{width:11.11111%}.wp-block-freeform.block-library-rich-text__tinymce .gallery img{max-width:100%;height:auto;border:none;padding:0}div[data-type="core/freeform"]:before{transition:border-color .1s linear,box-shadow .1s linear;border:1px solid #ddd;outline:1px solid transparent}@media (prefers-reduced-motion:reduce){div[data-type="core/freeform"]:before{transition-duration:0s}}div[data-type="core/freeform"].is-selected:before{border-color:#1e1e1e}div[data-type="core/freeform"] .block-editor-block-contextual-toolbar+div{margin-top:0;padding-top:0}div[data-type="core/freeform"].is-selected .block-library-rich-text__tinymce:after{content:"";display:table;clear:both}.mce-toolbar-grp .mce-btn.mce-active:hover button,.mce-toolbar-grp .mce-btn.mce-active:hover i,.mce-toolbar-grp .mce-btn.mce-active button,.mce-toolbar-grp .mce-btn.mce-active i{color:#1e1e1e}.mce-toolbar-grp .mce-rtl .mce-flow-layout-item.mce-last{margin-left:0;margin-right:8px}.mce-toolbar-grp .mce-btn i{font-style:normal}.block-library-classic__toolbar{display:none;width:auto;position:-webkit-sticky;position:sticky;z-index:31;top:0;border:1px solid #ddd;border-bottom:none;border-radius:2px;margin:0 0 8px;padding:0}div[data-type="core/freeform"].is-selected .block-library-classic__toolbar,div[data-type="core/freeform"].is-typing .block-library-classic__toolbar{display:block;border-color:#1e1e1e}.block-library-classic__toolbar .mce-tinymce{box-shadow:none}@media (min-width:600px){.block-library-classic__toolbar{padding:0}}.block-library-classic__toolbar:empty{display:block;background:#f5f5f5;border-bottom:1px solid #e2e4e7}.block-library-classic__toolbar:empty:before{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;content:attr(data-placeholder);color:#555d66;line-height:37px;padding:14px}.block-library-classic__toolbar div.mce-toolbar-grp{border-bottom:1px solid #1e1e1e}.block-library-classic__toolbar .mce-menubar,.block-library-classic__toolbar .mce-menubar>div,.block-library-classic__toolbar .mce-tinymce-inline,.block-library-classic__toolbar .mce-tinymce-inline>div,.block-library-classic__toolbar div.mce-toolbar-grp,.block-library-classic__toolbar div.mce-toolbar-grp>div{height:auto!important;width:100%!important}.block-library-classic__toolbar .mce-container-body.mce-abs-layout{overflow:visible}.block-library-classic__toolbar .mce-menubar,.block-library-classic__toolbar div.mce-toolbar-grp{position:static}.block-library-classic__toolbar .mce-toolbar-grp>div{padding:1px 3px}.block-library-classic__toolbar .mce-toolbar-grp .mce-toolbar:not(:first-child){display:none}.block-library-classic__toolbar.has-advanced-toolbar .mce-toolbar-grp .mce-toolbar{display:block}.wp-block-gallery li{list-style-type:none}.wp-block-gallery .block-editor-media-placeholder{margin-bottom:12px;padding:12px}.wp-block-gallery .block-editor-media-placeholder .components-placeholder__label{display:none}.wp-block-gallery .block-editor-media-placeholder .components-button{margin-bottom:0}figure.wp-block-gallery{display:block;margin:0}.blocks-gallery-grid.blocks-gallery-grid{padding-right:0;margin-right:0;margin-bottom:0}.blocks-gallery-item figure:not(.is-selected):focus,.blocks-gallery-item img:focus{outline:none}.blocks-gallery-item figure.is-selected{box-shadow:0 0 0 1px #fff,0 0 0 3px #007cba;box-shadow:0 0 0 1px #fff,0 0 0 3px var(--wp-admin-theme-color);border-radius:2px;outline:2px solid transparent}.blocks-gallery-item figure.is-selected img{border-radius:2px}.blocks-gallery-item figure.is-transient img{opacity:.3}.blocks-gallery-item .is-selected .block-library-gallery-item__inline-menu{display:inline-flex}.blocks-gallery-item .block-editor-media-placeholder{margin:0;height:100%}.blocks-gallery-item .block-editor-media-placeholder .components-placeholder__label{display:flex}.block-library-gallery-item__inline-menu{display:none;position:absolute;top:-2px;margin:8px;z-index:20;transition:box-shadow .2s ease-out;border-radius:2px;background:#fff;border:1px solid #1e1e1e}@media (prefers-reduced-motion:reduce){.block-library-gallery-item__inline-menu{transition-duration:0s}}.block-library-gallery-item__inline-menu:hover{box-shadow:0 2px 6px rgba(0,0,0,.05)}@media (min-width:600px){.columns-7 .block-library-gallery-item__inline-menu,.columns-8 .block-library-gallery-item__inline-menu{padding:2px}}.block-library-gallery-item__inline-menu .components-button.has-icon:not(:focus){border:none;box-shadow:none}@media (min-width:600px){.columns-7 .block-library-gallery-item__inline-menu .components-button.has-icon,.columns-8 .block-library-gallery-item__inline-menu .components-button.has-icon{padding:0;width:inherit;height:inherit}}.block-library-gallery-item__inline-menu.is-left{right:-2px}.block-library-gallery-item__inline-menu.is-right{left:-2px}.blocks-gallery-item .components-spinner{position:absolute;top:50%;right:50%;margin-top:-9px;margin-right:-9px}.wp-block-group .block-editor-block-list__insertion-point{right:0;left:0}.wp-block-group>.wp-block-group__inner-container>[data-align=full]{margin-right:auto;margin-left:auto}.wp-block-group.has-background>.wp-block-group__inner-container>[data-align=full]{margin-right:-30px;width:calc(100% + 60px)}[data-align=full] .wp-block-group>.wp-block-group__inner-container>.wp-block{padding-right:14px;padding-left:14px}@media (min-width:600px){[data-align=full] .wp-block-group>.wp-block-group__inner-container>.wp-block{padding-right:0;padding-left:0}}[data-align=full] .wp-block-group>.wp-block-group__inner-container>[data-align=full]{padding-left:0;padding-right:0;right:0;width:100%;max-width:none}[data-align=full] .wp-block-group.has-background>.wp-block-group__inner-container>[data-align=full]{width:calc(100% + 60px)}[data-type="core/group"].is-selected .block-list-appender{margin-right:0;margin-left:0}[data-type="core/group"].is-selected .has-background .block-list-appender{margin-top:18px;margin-bottom:18px}.block-library-heading-level-dropdown .components-popover__content{min-width:230px}.block-library-heading-level-dropdown .components-popover__content>div{padding:0}.block-library-heading-level-toolbar{border:none}.wp-block-html{margin-bottom:28px}.wp-block-html .block-library-html__preview-overlay{position:absolute;width:100%;height:100%;top:0;right:0}.wp-block-html .block-editor-plain-text{font-family:Menlo,Consolas,monaco,monospace;color:#1e1e1e;padding:.8em 1em;border:1px solid #ddd;border-radius:4px;max-height:250px;font-size:16px}@media (min-width:600px){.wp-block-html .block-editor-plain-text{font-size:13px}}.wp-block-html .block-editor-plain-text:focus{box-shadow:none}figure.wp-block-image:not(.wp-block){margin:0}.wp-block-image{position:relative}.wp-block-image .is-applying img,.wp-block-image.is-transient img{opacity:.3}.wp-block-image figcaption img{display:inline}.wp-block-image .components-spinner{position:absolute;top:50%;right:50%;margin-top:-9px;margin-right:-9px}.wp-block-image .components-resizable-box__container{display:inline-block}.wp-block-image .components-resizable-box__container img{display:block;width:inherit;height:inherit}.block-editor-block-list__block[data-type="core/image"] .block-editor-block-toolbar .block-editor-url-input__button-modal{position:absolute;right:0;left:0;margin:-1px 0}@media (min-width:600px){.block-editor-block-list__block[data-type="core/image"] .block-editor-block-toolbar .block-editor-url-input__button-modal{margin:-1px}}[data-align=full]>.wp-block-image img,[data-align=wide]>.wp-block-image img{width:100%}.wp-block[data-align=center]>.wp-block-image,.wp-block[data-align=left]>.wp-block-image,.wp-block[data-align=right]>.wp-block-image{display:table}.wp-block[data-align=center]>.wp-block-image>figcaption,.wp-block[data-align=left]>.wp-block-image>figcaption,.wp-block[data-align=right]>.wp-block-image>figcaption{display:table-caption;caption-side:bottom}.wp-block[data-align=left]>.wp-block-image{margin:.5em 0 .5em 1em}.wp-block[data-align=right]>.wp-block-image{margin:.5em 1em .5em 0}.wp-block[data-align=center]>.wp-block-image{margin-right:auto;margin-left:auto;text-align:center}.wp-block-image__crop-area{position:relative;max-width:100%;width:100%}.wp-block-image__crop-icon{padding:0 8px;min-width:48px;display:flex;justify-content:center;align-items:center}.wp-block-image__crop-icon svg{fill:currentColor}.wp-block-image__zoom .components-popover__content{overflow:visible}.wp-block-image__zoom .components-range-control{flex:1}.wp-block-image__zoom .components-base-control__field{display:flex;margin-bottom:0}.wp-block-image__aspect-ratio{height:46px;margin-bottom:-8px;display:flex;align-items:center}.wp-block-image__aspect-ratio .components-button{width:36px;padding-right:0;padding-left:0}.wp-block-latest-comments.has-avatars .avatar{margin-left:10px}.wp-block-latest-comments__comment-excerpt p{font-size:14px;line-height:1.8;margin:5px 0 20px;padding-top:0}.wp-block-latest-comments.has-avatars .wp-block-latest-comments__comment{min-height:36px}.block-editor .wp-block-latest-posts{padding-right:2.5em}.block-editor .wp-block-latest-posts.is-grid{padding-right:0}.wp-block-latest-posts li a>div{display:inline}.edit-post-visual-editor .wp-block-latest-posts.is-grid li{margin-bottom:20px}ol.has-background.has-background,ul.has-background.has-background{padding:1.25em 2.375em}.wp-block-media-text .__resizable_base__{-ms-grid-column:1;-ms-grid-column-span:2;grid-column:1/span 2;-ms-grid-row:2;grid-row:2}.wp-block-media-text .editor-media-container__resizer{width:100%!important}.wp-block-media-text.is-image-fill .editor-media-container__resizer{height:100%!important}.wp-block-media-text>.block-editor-block-list__layout>.block-editor-block-list__block{max-width:unset}.block-editor-block-list__block[data-type="core/more"]{max-width:100%;text-align:center;margin-top:28px;margin-bottom:28px}.block-editor .wp-block-more{display:block;text-align:center;white-space:nowrap}.block-editor .wp-block-more input[type=text]{position:relative;font-size:13px;text-transform:uppercase;font-weight:600;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;color:#757575;border:none;box-shadow:none;white-space:nowrap;text-align:center;margin:0;border-radius:4px;background:#fff;padding:6px 8px;height:24px;max-width:100%}.block-editor .wp-block-more input[type=text]:focus{box-shadow:none}.block-editor .wp-block-more:before{content:"";position:absolute;top:50%;right:0;left:0;border-top:3px dashed #ccc}.editor-styles-wrapper .wp-block-navigation ol,.editor-styles-wrapper .wp-block-navigation ul{margin-bottom:0;margin-right:0;padding-right:0}.editor-styles-wrapper .wp-block-navigation .block-editor-block-list__block{margin:0}.wp-block-navigation .block-list-appender{margin:0;display:flex;align-items:center}.wp-block-navigation.is-vertical .block-list-appender{margin:8px}.wp-block-navigation__inserter-content{padding:16px}.wp-block-navigation__container{min-height:46px}.wp-block-navigation__container.is-parent-of-selected-block{visibility:visible;opacity:1}.has-child:hover>.wp-block-navigation__container,.has-child>.wp-block-navigation__container{opacity:0;visibility:hidden}.has-child.has-child-selected>.wp-block-navigation__container,.has-child.is-selected>.wp-block-navigation__container,.is-dragging-components-draggable .has-child.is-dragging-within>.wp-block-navigation__container{opacity:1;visibility:visible}.is-dragging-components-draggable .wp-block-navigation-link>.wp-block-navigation__container{opacity:1;visibility:hidden}.is-dragging-components-draggable .wp-block-navigation-link>.wp-block-navigation__container .block-editor-block-draggable-chip-wrapper{visibility:visible}.block-library-colors-selector{width:auto}.block-library-colors-selector .block-library-colors-selector__toggle{display:block;margin:0 auto;padding:3px;width:auto}.block-library-colors-selector .block-library-colors-selector__icon-container{height:30px;position:relative;margin:0 auto;padding:3px;display:flex;align-items:center;border-radius:4px}.block-library-colors-selector .block-library-colors-selector__state-selection{margin-right:auto;margin-left:auto;border-radius:11px;box-shadow:inset 0 0 0 1px rgba(0,0,0,.2);width:22px;min-width:22px;height:22px;min-height:22px;line-height:20px;padding:2px}.block-library-colors-selector .block-library-colors-selector__state-selection>svg{min-width:auto!important}.block-library-colors-selector .block-library-colors-selector__state-selection.has-text-color>svg,.block-library-colors-selector .block-library-colors-selector__state-selection.has-text-color>svg path{color:inherit}.block-library-colors-selector__popover .color-palette-controller-container{padding:16px}.block-library-colors-selector__popover .components-base-control__label{height:20px;line-height:20px}.block-library-colors-selector__popover .component-color-indicator{float:left;margin-top:2px}.block-library-colors-selector__popover .components-panel__body-title{display:none}.is-editing>.wp-block-navigation__container{visibility:visible;opacity:1;display:flex;flex-direction:column}.wp-block-navigation-placeholder .components-spinner{margin-top:-4px;margin-right:4px;vertical-align:middle;margin-left:7px}.wp-block-navigation-placeholder .components-custom-select-control__button{height:auto;padding:.375rem 1.5rem .375rem .75rem;min-width:13.75rem}.wp-block-navigation-placeholder .components-custom-select-control.has-menus .components-custom-select-control__item.is-create-empty-option{position:relative;margin-top:20px}.wp-block-navigation-placeholder .components-custom-select-control.has-menus .components-custom-select-control__item.is-create-empty-option:before{content:"";position:absolute;top:-10px;right:25px;left:25px;height:15px;border-top:1px solid #757575}.wp-block-navigation-placeholder .components-custom-select-control__label{margin-bottom:1rem;font-size:13px;font-weight:400}.wp-block-navigation-placeholder .components-custom-select-control__menu{margin:0;max-height:none;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px}.wp-block-navigation .block-editor-button-block-appender{justify-content:flex-start}.wp-block-navigation-link__container,.wp-block-navigation-link__field .components-text-control__input.components-text-control__input{border-radius:0;line-height:36px;min-height:36px}.wp-block-navigation-link .block-editor-block-list__layout{display:block}.wp-block-navigation-link.is-editing,.wp-block-navigation-link.is-selected{min-width:20px}.wp-block-navigation-link .block-editor-rich-text__editable.is-selected:not(.keep-placeholder-on-focus):not(:focus)[data-rich-text-placeholder]:after{display:inline-block}.wp-block-navigation-link .block-list-appender{margin:10px 10px 16px 16px}.wp-block-navigation-link__separator{margin:8px 0;border-top:1px solid #ddd}.components-popover.wp-block-navigation-link__dropdown-content{margin-top:-1px;margin-right:-4px}.wp-block-navigation-link__dropdown-content .components-popover__content>div{padding:8px 0}.wp-block-navigation .block-editor-block-list__block[data-type="core/navigation-link"]>.block-editor-block-list__insertion-point{display:none}.block-editor-block-list__block[data-type="core/nextpage"]{max-width:100%;margin-top:28px;margin-bottom:28px}.wp-block-nextpage{display:block;text-align:center;white-space:nowrap}.wp-block-nextpage>span{font-size:13px;position:relative;display:inline-block;text-transform:uppercase;font-weight:600;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;color:#757575;border-radius:4px;background:#fff;padding:6px 8px;height:24px}.wp-block-nextpage:before{content:"";position:absolute;top:50%;right:0;left:0;border-top:3px dashed #ccc}.block-editor-block-list__block[data-type="core/paragraph"].has-drop-cap:focus{min-height:auto!important}.wp-block-post-content__placeholder{height:100px;border:1px dashed;display:flex;justify-content:center;align-items:center}.wp-block-post-content__placeholder span{font-style:italic}.wp-block-post-excerpt .wp-block-post-excerpt__excerpt.is-inline{display:inline-block}.wp-block-post-author{display:flex;flex-wrap:wrap}.wp-block-post-author .wp-block-post-author__byline{font-size:.5em;margin-top:0;position:relative;font-style:normal}.wp-block-post-author .wp-block-post-author__content{flex-grow:1;flex-basis:0}.wp-block-post-author .wp-block-post-author__avatar img{margin:0}.wp-block-post-author .wp-block-post-author__avatar{margin-bottom:-8px}.wp-block-post-author .wp-block-post-author__name{margin:0;font-weight:700}.wp-block-post-author .wp-block-post-author__bio{margin:0 0 8px;font-size:.7em}.wp-block[data-align=left]>.wp-block-pullquote p,.wp-block[data-align=right]>.wp-block-pullquote p{font-size:20px}.wp-block-pullquote blockquote p{font-size:28px;line-height:1.6}.wp-block-pullquote.is-style-solid-color blockquote p{font-size:32px}.wp-block-pullquote.is-style-solid-color .wp-block-pullquote__citation{text-transform:none;font-style:normal}.wp-block-pullquote .wp-block-pullquote__citation{color:inherit}.wp-block-quote__citation{font-size:13px}.block-editor .wp-block-rss{padding-right:2.5em}.block-editor .wp-block-rss.is-grid{padding-right:0}.wp-block-rss li a>div{display:inline}.wp-block-rss__placeholder-form{display:flex;align-items:stretch}.wp-block-rss__placeholder-form>*{margin-bottom:8px}@media (min-width:782px){.wp-block-rss__placeholder-form>*{margin-bottom:0}}.wp-block-rss__placeholder-input{display:flex;align-items:stretch;flex-grow:1}.wp-block-rss__placeholder-input .components-base-control__field{display:flex;align-items:stretch;flex-grow:1;margin:0 0 0 8px}.wp-block-search .wp-block-search__input{padding:8px}.wp-block-search.wp-block-search__button-inside .wp-block-search__inside-wrapper{padding:4px}.wp-block-search.wp-block-search__button-inside .wp-block-search__inside-wrapper,.wp-block-search .wp-block-search__input{border-radius:2px;border:1px solid #949494;color:rgba(30,30,30,.62);font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;background-color:#fff}.wp-block-search.wp-block-search__button-inside .wp-block-search__inside-wrapper:focus,.wp-block-search .wp-block-search__input:focus{outline:none}.wp-block-search .wp-block-search__button{background:#f7f7f7;border-radius:2px;border:1px solid #ccc;box-shadow:inset 0 -1px 0 #ccc;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;padding:6px 10px;color:#32373c}.wp-block-search__components-button-group{margin-top:10px}.block-editor-block-list__block[data-type="core/separator"]{padding-top:.1px;padding-bottom:.1px}.wp-block-shortcode{display:flex;flex-direction:column;padding:14px;font-size:13px;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;margin-bottom:28px}.wp-block-shortcode label{display:flex;align-items:center;white-space:nowrap;font-weight:600;flex-shrink:0}.wp-block-shortcode .block-editor-plain-text{max-height:250px}.wp-block-shortcode .dashicon{margin-left:8px}.block-editor .blocks-shortcode__textarea,.blocks-shortcode__textarea{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;padding:6px 8px;box-shadow:0 0 0 transparent;transition:box-shadow .1s linear;border-radius:2px;border:1px solid #757575;font-size:16px;line-height:normal}@media (prefers-reduced-motion:reduce){.block-editor .blocks-shortcode__textarea,.blocks-shortcode__textarea{transition-duration:0s}}@media (min-width:600px){.block-editor .blocks-shortcode__textarea,.blocks-shortcode__textarea{font-size:13px;line-height:normal}}.block-editor .blocks-shortcode__textarea:focus,.blocks-shortcode__textarea:focus{border-color:#007cba;border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 .5px #007cba;box-shadow:0 0 0 .5px var(--wp-admin-theme-color);outline:2px solid transparent}.block-editor .blocks-shortcode__textarea::-webkit-input-placeholder,.blocks-shortcode__textarea::-webkit-input-placeholder{color:rgba(30,30,30,.62)}.block-editor .blocks-shortcode__textarea::-moz-placeholder,.blocks-shortcode__textarea::-moz-placeholder{opacity:1;color:rgba(30,30,30,.62)}.block-editor .blocks-shortcode__textarea:-ms-input-placeholder,.blocks-shortcode__textarea:-ms-input-placeholder{color:rgba(30,30,30,.62)}.is-dark-theme .block-editor .blocks-shortcode__textarea::-webkit-input-placeholder,.is-dark-theme .blocks-shortcode__textarea::-webkit-input-placeholder{color:hsla(0,0%,100%,.65)}.is-dark-theme .block-editor .blocks-shortcode__textarea::-moz-placeholder,.is-dark-theme .blocks-shortcode__textarea::-moz-placeholder{opacity:1;color:hsla(0,0%,100%,.65)}.is-dark-theme .block-editor .blocks-shortcode__textarea:-ms-input-placeholder,.is-dark-theme .blocks-shortcode__textarea:-ms-input-placeholder{color:hsla(0,0%,100%,.65)}.wp-block[data-align=center]>.wp-block-site-logo{margin-right:auto;margin-left:auto;text-align:center}.wp-block-site-logo.is-resized{display:table}.wp-block-site-logo .custom-logo-link{cursor:inherit}.wp-block-site-logo .custom-logo-link:focus{box-shadow:none}.wp-block-site-logo .custom-logo-link.is-transient img{opacity:.3}.wp-block-site-logo img{display:block;max-width:100%}.wp-block-social-links .wp-social-link button{color:currentColor;padding:6px}.wp-block-social-links.is-style-pill-shape .wp-social-link button{padding-right:16px;padding-left:16px}.wp-block-social-links div.block-editor-url-input{display:inline-block;margin-right:8px}.editor-styles-wrapper .wp-block-social-link{margin:0 0 8px 8px}.editor-styles-wrapper .wp-block-social-link.is-hovered,.editor-styles-wrapper .wp-block-social-link.is-selected{transform:none}.editor-styles-wrapper .wp-block-social-links{padding:0}.wp-block-social-links__social-placeholder{display:flex}.wp-block-social-links__social-placeholder .wp-block-social-link{display:inline-flex;align-items:center;justify-content:center;margin:0 0 8px 8px;width:36px;height:36px;border-radius:50%;opacity:.8}.is-style-logos-only .wp-block-social-links__social-placeholder .wp-block-social-link:before{content:"";display:block;width:18px;height:18px;border-radius:50%;opacity:.8;background:currentColor}.is-style-pill-shape .wp-block-social-links__social-placeholder .wp-block-social-link{border-radius:9999px;padding-right:28px;padding-left:28px}.wp-block-social-links .block-list-appender{margin:0 0 8px;display:flex;align-items:center}.wp-block[data-align=center]>.wp-block-social-links{justify-content:center}.block-editor-block-preview__content .wp-social-link:disabled{opacity:1}[data-type="core/social-links"]:not(.is-selected):not(.has-child-selected) .wp-block-social-links{min-height:36px}.wp-social-link.wp-social-link__is-incomplete{opacity:.5}@media (prefers-reduced-motion:reduce){.wp-social-link.wp-social-link__is-incomplete{transition-duration:0s}}.wp-block-social-links .is-selected .wp-social-link__is-incomplete,.wp-social-link.wp-social-link__is-incomplete:focus,.wp-social-link.wp-social-link__is-incomplete:hover{opacity:1}[data-type="core/social-links"] .wp-social-link:focus{opacity:1;box-shadow:0 0 0 2px #fff,0 0 0 4px #007cba;box-shadow:0 0 0 2px #fff,0 0 0 4px var(--wp-admin-theme-color);outline:2px solid transparent}.block-editor-block-list__layout .block-editor-block-list__block[data-type="core/social-link"]:not([contenteditable]):focus:after,.is-navigate-mode .block-editor-block-list__layout .block-editor-block-list__block[data-type="core/social-link"].is-selected:after{left:8px}.block-editor-block-list__block[data-type="core/spacer"]:before{content:"";display:block;position:absolute;width:100%;height:24px;transform:translateY(-12px)}.block-library-spacer__resize-container.has-show-handle{background:#f0f0f0}.is-dark-theme .block-library-spacer__resize-container.has-show-handle{background:hsla(0,0%,100%,.15)}.block-library-spacer__resize-container{clear:both;margin-bottom:28px}.block-library-spacer__resize-container .components-resizable-box__handle:before{content:none}.edit-post-visual-editor p.wp-block-subhead{color:#555;font-size:1.1em;font-style:italic}.wp-block-table{margin:0}.wp-block[data-align=center]>.wp-block-table,.wp-block[data-align=left]>.wp-block-table,.wp-block[data-align=right]>.wp-block-table{height:auto}.wp-block[data-align=center]>.wp-block-table table,.wp-block[data-align=left]>.wp-block-table table,.wp-block[data-align=right]>.wp-block-table table{width:auto}.wp-block[data-align=center]>.wp-block-table td,.wp-block[data-align=center]>.wp-block-table th,.wp-block[data-align=left]>.wp-block-table td,.wp-block[data-align=left]>.wp-block-table th,.wp-block[data-align=right]>.wp-block-table td,.wp-block[data-align=right]>.wp-block-table th{word-break:break-word}.wp-block[data-align=center]>.wp-block-table{text-align:initial}.wp-block[data-align=center]>.wp-block-table table{margin:0 auto}.wp-block-table table{border-collapse:collapse}.wp-block-table td,.wp-block-table th{border:1px solid}.wp-block-table td.is-selected,.wp-block-table th.is-selected{border-color:#007cba;border-color:var(--wp-admin-theme-color);box-shadow:inset 0 0 0 1px #007cba;box-shadow:inset 0 0 0 1px var(--wp-admin-theme-color);border-style:double}.wp-block-table figcaption{color:#555;font-size:13px;text-align:center}.blocks-table__placeholder-form.blocks-table__placeholder-form{display:flex;flex-direction:column;align-items:flex-start}.blocks-table__placeholder-form.blocks-table__placeholder-form>*{margin-bottom:8px}@media (min-width:782px){.blocks-table__placeholder-form.blocks-table__placeholder-form{flex-direction:row;align-items:flex-end}.blocks-table__placeholder-form.blocks-table__placeholder-form>*{margin-bottom:0}}.blocks-table__placeholder-input{width:112px;margin-left:8px;margin-bottom:0}.blocks-table__placeholder-input input{height:36px}.blocks-table__placeholder-input .components-base-control__field{margin-bottom:0}.block-editor .wp-block-tag-cloud a{display:inline-block;margin-left:5px}.block-editor .wp-block-tag-cloud span{display:inline-block;margin-right:5px;color:#757575;text-decoration:none}.wp-block-template-part__placeholder-preview-dropdown-content .components-popover__content,.wp-block-template-part__preview-dropdown-content .components-popover__content{min-width:320px;padding:0}.wp-block-template-part__selection-preview-search-form{border-bottom:1px solid #ddd}.wp-block-template-part__selection-preview-container{background:#fff;padding-bottom:16px}.wp-block-template-part__selection-preview-container .wp-block-template-part__selection-preview-item{border-radius:2px;cursor:pointer;margin-top:16px;transition:all .05s ease-in-out;border:1px solid transparent;width:100%;background-color:#fff}.wp-block-template-part__selection-preview-container .wp-block-template-part__selection-preview-item:hover{border:1px solid #007cba;border:1px solid var(--wp-admin-theme-color)}.wp-block-template-part__selection-preview-container .wp-block-template-part__selection-preview-item:focus{box-shadow:inset 0 0 0 1px #fff,0 0 0 1.5px #007cba;box-shadow:inset 0 0 0 1px #fff,0 0 0 1.5px var(--wp-admin-theme-color);outline:2px solid transparent}.wp-block-template-part__selection-preview-container .wp-block-template-part__selection-preview-item.is-placeholder{min-height:100px}.wp-block-template-part__selection-preview-container .wp-block-template-part__selection-preview-item-title{padding:4px;font-size:12px;text-align:right}.wp-block-template-part__selection-preview-container .wp-block-template-part__selection-panel-group-header{padding:16px 16px 0}.wp-block-template-part__selection-preview-container .wp-block-template-part__selection-panel-group-content{padding:0 16px}.wp-block-template-part__selection-preview-container .wp-block-template-part__selection-panel-group-title{color:#007cba;color:var(--wp-admin-theme-color);text-transform:uppercase;font-size:11px;font-weight:500}.wp-block-template-part__block-control-group{display:flex}.wp-block-template-part__block-control-group .wp-block-template-part__name-panel{outline:1px solid transparent;padding:8px 12px 8px 0}.wp-block-template-part__block-control-group .wp-block-template-part__name-panel .components-base-control__field{align-items:center;display:flex;margin-bottom:0}.wp-block-template-part__block-control-group .wp-block-template-part__name-panel .components-base-control__label{margin-bottom:0;margin-left:8px}.is-dark-theme .is-navigate-mode .is-selected .wp-block-template-part__name-panel,.is-navigate-mode .is-selected .wp-block-template-part__name-panel{box-shadow:0 0 0 1px #007cba;box-shadow:0 0 0 1px var(--wp-admin-theme-color)}.block-editor-block-list__block[data-type="core/template-part"].has-child-selected:after,.block-editor-block-list__block[data-type="core/template-part"].is-selected:after{top:1px;bottom:1px;right:1px;left:1px;border-radius:1px}.block-editor-block-list__block[data-type="core/template-part"].is-selected:after{box-shadow:0 0 0 1.5px #007cba;box-shadow:0 0 0 1.5px var(--wp-admin-theme-color)}.is-dark-theme .block-editor-block-list__block[data-type="core/template-part"].is-selected:after{box-shadow:0 0 0 1.5px #fff}.block-editor-block-list__block[data-type="core/template-part"].has-child-selected:after{box-shadow:0 0 0 1px #ddd}.is-dark-theme .block-editor-block-list__block[data-type="core/template-part"].has-child-selected:after{box-shadow:0 0 0 1.5px #757575}.wp-block-text-columns .block-editor-rich-text__editable:focus{outline:1px solid #ddd}pre.wp-block-verse{color:#1e1e1e;white-space:nowrap;font-family:inherit;font-size:inherit;padding:1em;overflow:auto}.wp-block[data-align=center]>.wp-block-video{text-align:center}.editor-video-poster-control .components-base-control__label{display:block}.editor-video-poster-control .components-button{margin-left:8px}.block-library-video-tracks-editor{z-index:159990}.block-library-video-tracks-editor>.components-popover__content{width:360px}.block-library-video-tracks-editor__track-list-track{display:flex;place-content:space-between;align-items:baseline;padding-right:12px}.block-library-video-tracks-editor__single-track-editor-label-language{display:flex;margin-top:12px}.block-library-video-tracks-editor__single-track-editor-label-language>.components-base-control{width:50%}.block-library-video-tracks-editor__single-track-editor-label-language>.components-base-control:first-child{margin-left:16px}.block-library-video-tracks-editor__single-track-editor-kind-select{max-width:240px}.block-library-video-tracks-editor__single-track-editor-buttons-container{display:flex;place-content:space-between;margin-top:32px}.block-library-video-tracks-editor__single-track-editor-edit-track-label{margin-top:4px;margin-bottom:12px;color:#757575;text-transform:uppercase;font-size:11px;font-weight:500;display:block}.block-library-video-tracks-editor>.components-popover__content>div{padding:0}.block-library-video-tracks-editor__add-tracks-container .components-menu-group__label,.block-library-video-tracks-editor__track-list .components-menu-group__label{padding:0}.block-library-video-tracks-editor__add-tracks-container,.block-library-video-tracks-editor__single-track-editor,.block-library-video-tracks-editor__track-list{padding:12px}.block-library-video-tracks-editor__single-track-editor .components-base-control .components-base-control__label{margin-bottom:4px}.block-library-video-tracks-editor__single-track-editor .components-base-control .components-base-control__field{margin-bottom:12px}.block-library-video-tracks-editor__single-track-editor .components-base-control .components-text-control__input{margin-right:0}.block-library-video-tracks-editor__single-track-editor .components-base-control .components-input-control__label{margin-bottom:4px}.editor-styles-wrapper .wp-block.wp-block-query,.editor-styles-wrapper .wp-block.wp-block-query-loop{max-width:100%}div[data-type="core/post-featured-image"] .post-featured-image_placeholder{display:flex;flex-direction:row;align-items:flex-start;border-radius:2px;background-color:#fff;box-shadow:inset 0 0 0 1px #1e1e1e;padding:12px}div[data-type="core/post-featured-image"] .post-featured-image_placeholder svg{margin-left:12px}div[data-type="core/post-featured-image"] .post-featured-image_placeholder p{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;margin:0}div[data-type="core/post-featured-image"] img{max-width:100%;height:auto;display:block}.block-editor-block-list__layout .reusable-block-edit-panel{align-items:center;display:flex;flex-wrap:wrap;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;padding:6px 12px;border-radius:2px;background-color:#fff;box-shadow:0 0 0 1px #1e1e1e;outline:1px solid transparent}.block-editor-block-list__layout .reusable-block-edit-panel .reusable-block-edit-panel__info{margin-left:auto}.block-editor-block-list__layout .reusable-block-edit-panel .reusable-block-edit-panel__label{margin-left:8px;white-space:nowrap;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px}.block-editor-block-list__layout .reusable-block-edit-panel .reusable-block-edit-panel__title{flex:1 1 100%}.block-editor-block-list__layout .reusable-block-edit-panel .components-button.reusable-block-edit-panel__button{flex-shrink:0}@media (min-width:960px){.block-editor-block-list__layout .reusable-block-edit-panel{flex-wrap:nowrap}.block-editor-block-list__layout .reusable-block-edit-panel .reusable-block-edit-panel__title{margin:0}.block-editor-block-list__layout .reusable-block-edit-panel .components-button.reusable-block-edit-panel__button{margin:0 8px 0 0}}.reusable-block-edit-panel__title[type=text]{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;padding:6px 8px;box-shadow:0 0 0 transparent;transition:box-shadow .1s linear;border-radius:2px;border:1px solid #757575;font-size:16px;line-height:normal}@media (prefers-reduced-motion:reduce){.reusable-block-edit-panel__title[type=text]{transition-duration:0s}}@media (min-width:600px){.reusable-block-edit-panel__title[type=text]{font-size:13px;line-height:normal}}.reusable-block-edit-panel__title[type=text]:focus{border-color:#007cba;border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 .5px #007cba;box-shadow:0 0 0 .5px var(--wp-admin-theme-color);outline:2px solid transparent}.reusable-block-edit-panel__title[type=text]::-webkit-input-placeholder{color:rgba(30,30,30,.62)}.reusable-block-edit-panel__title[type=text]::-moz-placeholder{opacity:1;color:rgba(30,30,30,.62)}.reusable-block-edit-panel__title[type=text]:-ms-input-placeholder{color:rgba(30,30,30,.62)}.is-dark-theme .reusable-block-edit-panel__title[type=text]::-webkit-input-placeholder{color:hsla(0,0%,100%,.65)}.is-dark-theme .reusable-block-edit-panel__title[type=text]::-moz-placeholder{opacity:1;color:hsla(0,0%,100%,.65)}.is-dark-theme .reusable-block-edit-panel__title[type=text]:-ms-input-placeholder{color:hsla(0,0%,100%,.65)}.is-dark-theme .is-navigate-mode .is-selected .reusable-block-edit-panel,.is-navigate-mode .is-selected .reusable-block-edit-panel{box-shadow:0 0 0 1px #007cba;box-shadow:0 0 0 1px var(--wp-admin-theme-color)}:root .editor-styles-wrapper .has-pale-pink-background-color{background-color:#f78da7}:root .editor-styles-wrapper .has-vivid-red-background-color{background-color:#cf2e2e}:root .editor-styles-wrapper .has-luminous-vivid-orange-background-color{background-color:#ff6900}:root .editor-styles-wrapper .has-luminous-vivid-amber-background-color{background-color:#fcb900}:root .editor-styles-wrapper .has-light-green-cyan-background-color{background-color:#7bdcb5}:root .editor-styles-wrapper .has-vivid-green-cyan-background-color{background-color:#00d084}:root .editor-styles-wrapper .has-pale-cyan-blue-background-color{background-color:#8ed1fc}:root .editor-styles-wrapper .has-vivid-cyan-blue-background-color{background-color:#0693e3}:root .editor-styles-wrapper .has-vivid-purple-background-color{background-color:#9b51e0}:root .editor-styles-wrapper .has-white-background-color{background-color:#fff}:root .editor-styles-wrapper .has-very-light-gray-background-color{background-color:#eee}:root .editor-styles-wrapper .has-cyan-bluish-gray-background-color{background-color:#abb8c3}:root .editor-styles-wrapper .has-very-dark-gray-background-color{background-color:#313131}:root .editor-styles-wrapper .has-black-background-color{background-color:#000}:root .editor-styles-wrapper .has-pale-pink-color{color:#f78da7}:root .editor-styles-wrapper .has-vivid-red-color{color:#cf2e2e}:root .editor-styles-wrapper .has-luminous-vivid-orange-color{color:#ff6900}:root .editor-styles-wrapper .has-luminous-vivid-amber-color{color:#fcb900}:root .editor-styles-wrapper .has-light-green-cyan-color{color:#7bdcb5}:root .editor-styles-wrapper .has-vivid-green-cyan-color{color:#00d084}:root .editor-styles-wrapper .has-pale-cyan-blue-color{color:#8ed1fc}:root .editor-styles-wrapper .has-vivid-cyan-blue-color{color:#0693e3}:root .editor-styles-wrapper .has-vivid-purple-color{color:#9b51e0}:root .editor-styles-wrapper .has-white-color{color:#fff}:root .editor-styles-wrapper .has-very-light-gray-color{color:#eee}:root .editor-styles-wrapper .has-cyan-bluish-gray-color{color:#abb8c3}:root .editor-styles-wrapper .has-very-dark-gray-color{color:#313131}:root .editor-styles-wrapper .has-black-color{color:#000}:root .editor-styles-wrapper .has-vivid-cyan-blue-to-vivid-purple-gradient-background{background:linear-gradient(-135deg,#0693e3,#9b51e0)}:root .editor-styles-wrapper .has-vivid-green-cyan-to-vivid-cyan-blue-gradient-background{background:linear-gradient(-135deg,#00d084,#0693e3)}:root .editor-styles-wrapper .has-light-green-cyan-to-vivid-green-cyan-gradient-background{background:linear-gradient(-135deg,#7adcb4,#00d082)}:root .editor-styles-wrapper .has-luminous-vivid-amber-to-luminous-vivid-orange-gradient-background{background:linear-gradient(-135deg,#fcb900,#ff6900)}:root .editor-styles-wrapper .has-luminous-vivid-orange-to-vivid-red-gradient-background{background:linear-gradient(-135deg,#ff6900,#cf2e2e)}:root .editor-styles-wrapper .has-very-light-gray-to-cyan-bluish-gray-gradient-background{background:linear-gradient(-135deg,#eee,#a9b8c3)}:root .editor-styles-wrapper .has-cool-to-warm-spectrum-gradient-background{background:linear-gradient(-135deg,#4aeadc,#9778d1 20%,#cf2aba 40%,#ee2c82 60%,#fb6962 80%,#fef84c)}:root .editor-styles-wrapper .has-blush-light-purple-gradient-background{background:linear-gradient(-135deg,#ffceec,#9896f0)}:root .editor-styles-wrapper .has-blush-bordeaux-gradient-background{background:linear-gradient(-135deg,#fecda5,#fe2d2d 50%,#6b003e)}:root .editor-styles-wrapper .has-purple-crush-gradient-background{background:linear-gradient(-135deg,#34e2e4,#4721fb 50%,#ab1dfe)}:root .editor-styles-wrapper .has-luminous-dusk-gradient-background{background:linear-gradient(-135deg,#ffcb70,#c751c0 50%,#4158d0)}:root .editor-styles-wrapper .has-hazy-dawn-gradient-background{background:linear-gradient(-135deg,#faaca8,#dad0ec)}:root .editor-styles-wrapper .has-pale-ocean-gradient-background{background:linear-gradient(-135deg,#fff5cb,#b6e3d4 50%,#33a7b5)}:root .editor-styles-wrapper .has-electric-grass-gradient-background{background:linear-gradient(-135deg,#caf880,#71ce7e)}:root .editor-styles-wrapper .has-subdued-olive-gradient-background{background:linear-gradient(-135deg,#fafae1,#67a671)}:root .editor-styles-wrapper .has-atomic-cream-gradient-background{background:linear-gradient(-135deg,#fdd79a,#004a59)}:root .editor-styles-wrapper .has-nightshade-gradient-background{background:linear-gradient(-135deg,#330968,#31cdcf)}:root .editor-styles-wrapper .has-midnight-gradient-background{background:linear-gradient(-135deg,#020381,#2874fc)}.editor-styles-wrapper .has-small-font-size{font-size:13px}.editor-styles-wrapper .has-normal-font-size,.editor-styles-wrapper .has-regular-font-size{font-size:16px}.editor-styles-wrapper .has-medium-font-size{font-size:20px}.editor-styles-wrapper .has-large-font-size{font-size:36px}.editor-styles-wrapper .has-huge-font-size,.editor-styles-wrapper .has-larger-font-size{font-size:42px}.block-editor-block-list__block{margin-top:28px;margin-bottom:28px}#end-resizable-editor-section{display:none} \ No newline at end of file diff --git a/wp-includes/css/dist/block-library/editor.css b/wp-includes/css/dist/block-library/editor.css index 04c7b0333f..7d0ef867f0 100644 --- a/wp-includes/css/dist/block-library/editor.css +++ b/wp-includes/css/dist/block-library/editor.css @@ -160,7 +160,9 @@ div[data-type="core/button"] { display: block; } .wp-block-columns .wp-block { - max-width: none; } + max-width: none; + margin-left: 0; + margin-right: 0; } @media (min-width: 600px) { .editor-styles-wrapper @@ -1192,9 +1194,6 @@ ul.has-background.has-background { .block-editor-block-list__block[data-type="core/separator"] { padding-top: 0.1px; padding-bottom: 0.1px; } - .block-editor-block-list__block[data-type="core/separator"].block-editor-block-list__block { - margin-top: 0; - margin-bottom: 0; } .wp-block-shortcode { display: flex; diff --git a/wp-includes/css/dist/block-library/editor.min.css b/wp-includes/css/dist/block-library/editor.min.css index d3e2f048b0..4e7735ccd6 100644 --- a/wp-includes/css/dist/block-library/editor.min.css +++ b/wp-includes/css/dist/block-library/editor.min.css @@ -1,2 +1,2 @@ :root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-20:#005a87}#start-resizable-editor-section{display:none}.block-editor ul.wp-block-archives{padding-left:2.5em}.wp-block-audio{margin-left:0;margin-right:0}.edit-post-visual-editor .block-library-block__reusable-block-container .block-editor-writing-flow__click-redirect{min-height:auto}.edit-post-visual-editor .block-library-block__reusable-block-container .is-root-container{padding-left:0;padding-right:0}.edit-post-visual-editor .block-library-block__reusable-block-container .block-editor-writing-flow{display:block}.edit-post-visual-editor .block-library-block__reusable-block-container .components-disabled .block-list-appender{display:none}.wp-block[data-align=center]>.wp-block-button{text-align:center;margin-left:auto;margin-right:auto}.wp-block[data-align=right]>.wp-block-button{ - /*!rtl:ignore*/text-align:right}.wp-block-button{position:relative;cursor:text}.wp-block-button:not(.has-text-color):not(.is-style-outline) [data-rich-text-placeholder]:after{color:#fff}.wp-block-button:focus{box-shadow:0 0 0 1px #fff,0 0 0 3px #007cba;box-shadow:0 0 0 1px #fff,0 0 0 3px var(--wp-admin-theme-color);outline:2px solid transparent;outline-offset:-2px}.wp-block-button[data-rich-text-placeholder]:after{opacity:.8}.wp-block-button__inline-link{color:#757575;height:0;overflow:hidden;max-width:290px}.wp-block-button__inline-link-input__suggestions{max-width:290px}@media (min-width:782px){.wp-block-button__inline-link,.wp-block-button__inline-link-input__suggestions{max-width:260px}}@media (min-width:960px){.wp-block-button__inline-link,.wp-block-button__inline-link-input__suggestions{max-width:290px}}.is-selected .wp-block-button__inline-link{height:auto;overflow:visible;margin-top:16px}div[data-type="core/button"]{display:table}.wp-block-buttons>.wp-block{margin-left:0}.wp-block[data-align=center]>.wp-block-buttons{display:flex;align-items:center;flex-wrap:wrap;justify-content:center}.wp-block[data-align=right]>.wp-block-buttons{display:flex;justify-content:flex-end}.wp-block-buttons>.block-list-appender{display:inline-block}.block-editor .wp-block-categories ul{padding-left:2.5em}.block-editor .wp-block-categories ul ul{margin-top:6px}.wp-block-code>code{display:block}.wp-block-columns .wp-block{max-width:none}@media (min-width:600px){.editor-styles-wrapper .block-editor-block-list__block.wp-block-column:nth-child(2n){margin-left:32px}}@media (min-width:782px){.editor-styles-wrapper .block-editor-block-list__block.wp-block-column:not(:first-child){margin-left:32px}}.block-editor-block-list__block.wp-block-column.wp-block-column{margin-top:0;margin-bottom:0}.wp-block-cover{position:relative}.wp-block-cover.is-placeholder{min-height:auto!important;padding:0!important}.wp-block-cover.components-placeholder h2{color:inherit}.wp-block-cover.is-transient:before{background-color:#fff;opacity:.3}.wp-block-cover .components-spinner{position:absolute;z-index:1;top:50%;left:50%;transform:translate(-50%,-50%);margin:0}.wp-block-cover .block-editor-block-list__layout{width:100%}.wp-block-cover .wp-block-cover__inner-container{text-align:left;margin-left:0;margin-right:0}.wp-block-cover .wp-block-cover__placeholder-background-options{width:100%}[data-align=left]>.wp-block-cover,[data-align=right]>.wp-block-cover{max-width:290px;width:100%}.block-library-cover__reset-button{margin-left:auto}.block-library-cover__resize-container{position:absolute!important;top:0;left:0;right:0;bottom:0}.block-library-cover__resize-container:not(.is-resizing){height:auto!important}.wp-block-embed{margin-left:0;margin-right:0;clear:both}.wp-block-embed.is-loading{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:1em;min-height:200px;text-align:center;border-radius:2px;background-color:#fff;box-shadow:inset 0 0 0 1px #1e1e1e}.wp-block-embed.is-loading p{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px}.wp-block-embed .components-placeholder__error{word-break:break-word}.wp-block-embed .components-placeholder__learn-more{margin-top:1em}.block-library-embed__interactive-overlay{position:absolute;top:0;left:0;right:0;bottom:0;opacity:0}.wp-block-file{display:flex;justify-content:space-between;align-items:center;margin-bottom:0}.wp-block-file .wp-block-file__content-wrapper{flex-grow:1}.wp-block-file .wp-block-file__textlink{display:inline-block;min-width:1em}.wp-block-file .wp-block-file__textlink:focus{box-shadow:none}.wp-block-file .wp-block-file__button-richtext-wrapper{display:inline-block;margin-left:.75em}.wp-block-file .wp-block-file__copy-url-button{margin-left:1em}.wp-block-freeform.block-library-rich-text__tinymce{height:auto}.wp-block-freeform.block-library-rich-text__tinymce li,.wp-block-freeform.block-library-rich-text__tinymce p{line-height:1.8}.wp-block-freeform.block-library-rich-text__tinymce ol,.wp-block-freeform.block-library-rich-text__tinymce ul{padding-left:2.5em;margin-left:0}.wp-block-freeform.block-library-rich-text__tinymce blockquote{margin:0;box-shadow:inset 0 0 0 0 #ddd;border-left:4px solid #000;padding-left:1em}.wp-block-freeform.block-library-rich-text__tinymce pre{white-space:pre-wrap;font-family:Menlo,Consolas,monaco,monospace;font-size:15px;color:#1e1e1e}.wp-block-freeform.block-library-rich-text__tinymce>:first-child{margin-top:0}.wp-block-freeform.block-library-rich-text__tinymce>:last-child{margin-bottom:0}.wp-block-freeform.block-library-rich-text__tinymce.mce-edit-focus{outline:none}.wp-block-freeform.block-library-rich-text__tinymce a{color:#007cba;color:var(--wp-admin-theme-color)}.wp-block-freeform.block-library-rich-text__tinymce:focus a[data-mce-selected]{padding:0 2px;margin:0 -2px;border-radius:2px;box-shadow:0 0 0 1px #e5f5fa;background:#e5f5fa}.wp-block-freeform.block-library-rich-text__tinymce code{padding:2px;border-radius:2px;color:#1e1e1e;background:#f0f0f0;font-family:Menlo,Consolas,monaco,monospace;font-size:14px}.wp-block-freeform.block-library-rich-text__tinymce:focus code[data-mce-selected]{background:#ddd}.wp-block-freeform.block-library-rich-text__tinymce .alignright{float:right;margin:.5em 0 .5em 1em}.wp-block-freeform.block-library-rich-text__tinymce .alignleft{float:left;margin:.5em 1em .5em 0}.wp-block-freeform.block-library-rich-text__tinymce .aligncenter{display:block;margin-left:auto;margin-right:auto}.wp-block-freeform.block-library-rich-text__tinymce .wp-more-tag{width:96%;height:20px;display:block;margin:15px auto;outline:0;cursor:default;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAADtgAAAAoBAMAAAA86gLBAAAAJFBMVEVMaXG7u7vBwcHDw8POzs68vLzGxsbMzMy+vr7AwMDQ0NDGxsYKLGzpAAAADHRSTlMA///zWf+/f///TMxNVGuqAAABwklEQVR4Ae3dMXLaQBTH4bfj8UCpx8hq0vgKvgFNemhT6Qo6gg6R+0ZahM2QLmyBJ99XWP9V5+o3jIUcLQEAAAAAAAAAAAAAAAAAAAAAAABQ8j0WL9lfTtlt18uNXAUA8O/KVtfa1tdcrOdSh9gCQAMlh1hMNbZZ1bsrsQWABsrhLRbz7z5in/32UbfUMUbkMQCAh5RfGYv82UdMdZ6HS2wjT2ILAI8r3XmM2B3WvM59vfO2xXYW2yYAENuPU8S+X/N67mKxzy225yaxBQCxLV392UdcvwV0jPVUj98ntkBWT7C7+9u2/V/vGtvXIWJ6/4rtbottWa6Ri0NUT/u72LYttrb97LHdvUXMxxrb8TO2W2TF1rYbbLG1bbGNjMi4+2Sbi1FsbbvNFlvbFtt5fDnE3d9sP1/XeIyV2Nr2U2/guZUuptNrH/dPI9eLB6SaAEBs6wPJf3/PNk9tYgsAYrv/8TFuzx/fvkFqGtrEFgDEdpcZUb7ejXy6ntrEFgDENvL6gsas4vbdyKt4DACI7TxElJv/Z7udpqFNbAFAbKduy2uU2trttM/x28UWAAAAAAAAAAAAAAAAAAAAAAAAAADgDyPwGmGTCZp7AAAAAElFTkSuQmCC);background-size:1900px 20px;background-repeat:no-repeat;background-position:50%}.wp-block-freeform.block-library-rich-text__tinymce img::selection{background-color:transparent}.wp-block-freeform.block-library-rich-text__tinymce div.mceTemp{-ms-user-select:element}.wp-block-freeform.block-library-rich-text__tinymce dl.wp-caption{margin:0;max-width:100%}.wp-block-freeform.block-library-rich-text__tinymce dl.wp-caption a,.wp-block-freeform.block-library-rich-text__tinymce dl.wp-caption img{display:block}.wp-block-freeform.block-library-rich-text__tinymce dl.wp-caption,.wp-block-freeform.block-library-rich-text__tinymce dl.wp-caption *{-webkit-user-drag:none}.wp-block-freeform.block-library-rich-text__tinymce dl.wp-caption .wp-caption-dd{padding-top:.5em;margin:0}.wp-block-freeform.block-library-rich-text__tinymce .wpview{width:99.99%;position:relative;clear:both;margin-bottom:16px;border:1px solid transparent}.wp-block-freeform.block-library-rich-text__tinymce .wpview iframe{display:block;max-width:100%;background:transparent}.wp-block-freeform.block-library-rich-text__tinymce .wpview .mce-shim{position:absolute;top:0;right:0;bottom:0;left:0}.wp-block-freeform.block-library-rich-text__tinymce .wpview[data-mce-selected="2"] .mce-shim{display:none}.wp-block-freeform.block-library-rich-text__tinymce .wpview .loading-placeholder{border:1px dashed #ddd;padding:10px}.wp-block-freeform.block-library-rich-text__tinymce .wpview .wpview-error{border:1px solid #ddd;padding:1em 0;margin:0;word-wrap:break-word}.wp-block-freeform.block-library-rich-text__tinymce .wpview .wpview-error p{margin:0;text-align:center}.wp-block-freeform.block-library-rich-text__tinymce .wpview[data-mce-selected] .loading-placeholder,.wp-block-freeform.block-library-rich-text__tinymce .wpview[data-mce-selected] .wpview-error{border-color:transparent}.wp-block-freeform.block-library-rich-text__tinymce .wpview .dashicons{display:block;margin:0 auto;width:32px;height:32px;font-size:32px}.wp-block-freeform.block-library-rich-text__tinymce .wpview.wpview-type-gallery:after{content:"";display:table;clear:both}.wp-block-freeform.block-library-rich-text__tinymce .gallery img[data-mce-selected]:focus{outline:none}.wp-block-freeform.block-library-rich-text__tinymce .gallery a{cursor:default}.wp-block-freeform.block-library-rich-text__tinymce .gallery{margin:auto -6px;padding:6px 0;line-height:1;overflow-x:hidden}.wp-block-freeform.block-library-rich-text__tinymce .gallery .gallery-item{float:left;margin:0;text-align:center;padding:6px;box-sizing:border-box}.wp-block-freeform.block-library-rich-text__tinymce .gallery .gallery-caption,.wp-block-freeform.block-library-rich-text__tinymce .gallery .gallery-icon{margin:0}.wp-block-freeform.block-library-rich-text__tinymce .gallery .gallery-caption{font-size:13px;margin:4px 0}.wp-block-freeform.block-library-rich-text__tinymce .gallery-columns-1 .gallery-item{width:100%}.wp-block-freeform.block-library-rich-text__tinymce .gallery-columns-2 .gallery-item{width:50%}.wp-block-freeform.block-library-rich-text__tinymce .gallery-columns-3 .gallery-item{width:33.33333%}.wp-block-freeform.block-library-rich-text__tinymce .gallery-columns-4 .gallery-item{width:25%}.wp-block-freeform.block-library-rich-text__tinymce .gallery-columns-5 .gallery-item{width:20%}.wp-block-freeform.block-library-rich-text__tinymce .gallery-columns-6 .gallery-item{width:16.66667%}.wp-block-freeform.block-library-rich-text__tinymce .gallery-columns-7 .gallery-item{width:14.28571%}.wp-block-freeform.block-library-rich-text__tinymce .gallery-columns-8 .gallery-item{width:12.5%}.wp-block-freeform.block-library-rich-text__tinymce .gallery-columns-9 .gallery-item{width:11.11111%}.wp-block-freeform.block-library-rich-text__tinymce .gallery img{max-width:100%;height:auto;border:none;padding:0}div[data-type="core/freeform"]:before{transition:border-color .1s linear,box-shadow .1s linear;border:1px solid #ddd;outline:1px solid transparent}@media (prefers-reduced-motion:reduce){div[data-type="core/freeform"]:before{transition-duration:0s}}div[data-type="core/freeform"].is-selected:before{border-color:#1e1e1e}div[data-type="core/freeform"] .block-editor-block-contextual-toolbar+div{margin-top:0;padding-top:0}div[data-type="core/freeform"].is-selected .block-library-rich-text__tinymce:after{content:"";display:table;clear:both}.mce-toolbar-grp .mce-btn.mce-active:hover button,.mce-toolbar-grp .mce-btn.mce-active:hover i,.mce-toolbar-grp .mce-btn.mce-active button,.mce-toolbar-grp .mce-btn.mce-active i{color:#1e1e1e}.mce-toolbar-grp .mce-rtl .mce-flow-layout-item.mce-last{margin-right:0;margin-left:8px}.mce-toolbar-grp .mce-btn i{font-style:normal}.block-library-classic__toolbar{display:none;width:auto;position:-webkit-sticky;position:sticky;z-index:31;top:0;border:1px solid #ddd;border-bottom:none;border-radius:2px;margin:0 0 8px;padding:0}div[data-type="core/freeform"].is-selected .block-library-classic__toolbar,div[data-type="core/freeform"].is-typing .block-library-classic__toolbar{display:block;border-color:#1e1e1e}.block-library-classic__toolbar .mce-tinymce{box-shadow:none}@media (min-width:600px){.block-library-classic__toolbar{padding:0}}.block-library-classic__toolbar:empty{display:block;background:#f5f5f5;border-bottom:1px solid #e2e4e7}.block-library-classic__toolbar:empty:before{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;content:attr(data-placeholder);color:#555d66;line-height:37px;padding:14px}.block-library-classic__toolbar div.mce-toolbar-grp{border-bottom:1px solid #1e1e1e}.block-library-classic__toolbar .mce-menubar,.block-library-classic__toolbar .mce-menubar>div,.block-library-classic__toolbar .mce-tinymce-inline,.block-library-classic__toolbar .mce-tinymce-inline>div,.block-library-classic__toolbar div.mce-toolbar-grp,.block-library-classic__toolbar div.mce-toolbar-grp>div{height:auto!important;width:100%!important}.block-library-classic__toolbar .mce-container-body.mce-abs-layout{overflow:visible}.block-library-classic__toolbar .mce-menubar,.block-library-classic__toolbar div.mce-toolbar-grp{position:static}.block-library-classic__toolbar .mce-toolbar-grp>div{padding:1px 3px}.block-library-classic__toolbar .mce-toolbar-grp .mce-toolbar:not(:first-child){display:none}.block-library-classic__toolbar.has-advanced-toolbar .mce-toolbar-grp .mce-toolbar{display:block}.wp-block-gallery li{list-style-type:none}.wp-block-gallery .block-editor-media-placeholder{margin-bottom:12px;padding:12px}.wp-block-gallery .block-editor-media-placeholder .components-placeholder__label{display:none}.wp-block-gallery .block-editor-media-placeholder .components-button{margin-bottom:0}figure.wp-block-gallery{display:block;margin:0}.blocks-gallery-grid.blocks-gallery-grid{padding-left:0;margin-left:0;margin-bottom:0}.blocks-gallery-item figure:not(.is-selected):focus,.blocks-gallery-item img:focus{outline:none}.blocks-gallery-item figure.is-selected{box-shadow:0 0 0 1px #fff,0 0 0 3px #007cba;box-shadow:0 0 0 1px #fff,0 0 0 3px var(--wp-admin-theme-color);border-radius:2px;outline:2px solid transparent}.blocks-gallery-item figure.is-selected img{border-radius:2px}.blocks-gallery-item figure.is-transient img{opacity:.3}.blocks-gallery-item .is-selected .block-library-gallery-item__inline-menu{display:inline-flex}.blocks-gallery-item .block-editor-media-placeholder{margin:0;height:100%}.blocks-gallery-item .block-editor-media-placeholder .components-placeholder__label{display:flex}.block-library-gallery-item__inline-menu{display:none;position:absolute;top:-2px;margin:8px;z-index:20;transition:box-shadow .2s ease-out;border-radius:2px;background:#fff;border:1px solid #1e1e1e}@media (prefers-reduced-motion:reduce){.block-library-gallery-item__inline-menu{transition-duration:0s}}.block-library-gallery-item__inline-menu:hover{box-shadow:0 2px 6px rgba(0,0,0,.05)}@media (min-width:600px){.columns-7 .block-library-gallery-item__inline-menu,.columns-8 .block-library-gallery-item__inline-menu{padding:2px}}.block-library-gallery-item__inline-menu .components-button.has-icon:not(:focus){border:none;box-shadow:none}@media (min-width:600px){.columns-7 .block-library-gallery-item__inline-menu .components-button.has-icon,.columns-8 .block-library-gallery-item__inline-menu .components-button.has-icon{padding:0;width:inherit;height:inherit}}.block-library-gallery-item__inline-menu.is-left{left:-2px}.block-library-gallery-item__inline-menu.is-right{right:-2px}.blocks-gallery-item .components-spinner{position:absolute;top:50%;left:50%;margin-top:-9px;margin-left:-9px}.wp-block-group .block-editor-block-list__insertion-point{left:0;right:0}.wp-block-group>.wp-block-group__inner-container>[data-align=full]{margin-left:auto;margin-right:auto}.wp-block-group.has-background>.wp-block-group__inner-container>[data-align=full]{margin-left:-30px;width:calc(100% + 60px)}[data-align=full] .wp-block-group>.wp-block-group__inner-container>.wp-block{padding-left:14px;padding-right:14px}@media (min-width:600px){[data-align=full] .wp-block-group>.wp-block-group__inner-container>.wp-block{padding-left:0;padding-right:0}}[data-align=full] .wp-block-group>.wp-block-group__inner-container>[data-align=full]{padding-right:0;padding-left:0;left:0;width:100%;max-width:none}[data-align=full] .wp-block-group.has-background>.wp-block-group__inner-container>[data-align=full]{width:calc(100% + 60px)}[data-type="core/group"].is-selected .block-list-appender{margin-left:0;margin-right:0}[data-type="core/group"].is-selected .has-background .block-list-appender{margin-top:18px;margin-bottom:18px}.block-library-heading-level-dropdown .components-popover__content{min-width:230px}.block-library-heading-level-dropdown .components-popover__content>div{padding:0}.block-library-heading-level-toolbar{border:none}.wp-block-html{margin-bottom:28px}.wp-block-html .block-library-html__preview-overlay{position:absolute;width:100%;height:100%;top:0;left:0}.wp-block-html .block-editor-plain-text{font-family:Menlo,Consolas,monaco,monospace;color:#1e1e1e;padding:.8em 1em;border:1px solid #ddd;border-radius:4px;max-height:250px;font-size:16px}@media (min-width:600px){.wp-block-html .block-editor-plain-text{font-size:13px}}.wp-block-html .block-editor-plain-text:focus{box-shadow:none}figure.wp-block-image:not(.wp-block){margin:0}.wp-block-image{position:relative}.wp-block-image .is-applying img,.wp-block-image.is-transient img{opacity:.3}.wp-block-image figcaption img{display:inline}.wp-block-image .components-spinner{position:absolute;top:50%;left:50%;margin-top:-9px;margin-left:-9px}.wp-block-image .components-resizable-box__container{display:inline-block}.wp-block-image .components-resizable-box__container img{display:block;width:inherit;height:inherit}.block-editor-block-list__block[data-type="core/image"] .block-editor-block-toolbar .block-editor-url-input__button-modal{position:absolute;left:0;right:0;margin:-1px 0}@media (min-width:600px){.block-editor-block-list__block[data-type="core/image"] .block-editor-block-toolbar .block-editor-url-input__button-modal{margin:-1px}}[data-align=full]>.wp-block-image img,[data-align=wide]>.wp-block-image img{width:100%}.wp-block[data-align=center]>.wp-block-image,.wp-block[data-align=left]>.wp-block-image,.wp-block[data-align=right]>.wp-block-image{display:table}.wp-block[data-align=center]>.wp-block-image>figcaption,.wp-block[data-align=left]>.wp-block-image>figcaption,.wp-block[data-align=right]>.wp-block-image>figcaption{display:table-caption;caption-side:bottom}.wp-block[data-align=left]>.wp-block-image{margin:.5em 1em .5em 0}.wp-block[data-align=right]>.wp-block-image{margin:.5em 0 .5em 1em}.wp-block[data-align=center]>.wp-block-image{margin-left:auto;margin-right:auto;text-align:center}.wp-block-image__crop-area{position:relative;max-width:100%;width:100%}.wp-block-image__crop-icon{padding:0 8px;min-width:48px;display:flex;justify-content:center;align-items:center}.wp-block-image__crop-icon svg{fill:currentColor}.wp-block-image__zoom .components-popover__content{overflow:visible}.wp-block-image__zoom .components-range-control{flex:1}.wp-block-image__zoom .components-base-control__field{display:flex;margin-bottom:0}.wp-block-image__aspect-ratio{height:46px;margin-bottom:-8px;display:flex;align-items:center}.wp-block-image__aspect-ratio .components-button{width:36px;padding-left:0;padding-right:0}.wp-block-latest-comments.has-avatars .avatar{margin-right:10px}.wp-block-latest-comments__comment-excerpt p{font-size:14px;line-height:1.8;margin:5px 0 20px;padding-top:0}.wp-block-latest-comments.has-avatars .wp-block-latest-comments__comment{min-height:36px}.block-editor .wp-block-latest-posts{padding-left:2.5em}.block-editor .wp-block-latest-posts.is-grid{padding-left:0}.wp-block-latest-posts li a>div{display:inline}.edit-post-visual-editor .wp-block-latest-posts.is-grid li{margin-bottom:20px}ol.has-background.has-background,ul.has-background.has-background{padding:1.25em 2.375em}.wp-block-media-text .__resizable_base__{-ms-grid-column:1;-ms-grid-column-span:2;grid-column:1/span 2;-ms-grid-row:2;grid-row:2}.wp-block-media-text .editor-media-container__resizer{width:100%!important}.wp-block-media-text.is-image-fill .editor-media-container__resizer{height:100%!important}.wp-block-media-text>.block-editor-block-list__layout>.block-editor-block-list__block{max-width:unset}.block-editor-block-list__block[data-type="core/more"]{max-width:100%;text-align:center;margin-top:28px;margin-bottom:28px}.block-editor .wp-block-more{display:block;text-align:center;white-space:nowrap}.block-editor .wp-block-more input[type=text]{position:relative;font-size:13px;text-transform:uppercase;font-weight:600;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;color:#757575;border:none;box-shadow:none;white-space:nowrap;text-align:center;margin:0;border-radius:4px;background:#fff;padding:6px 8px;height:24px;max-width:100%}.block-editor .wp-block-more input[type=text]:focus{box-shadow:none}.block-editor .wp-block-more:before{content:"";position:absolute;top:50%;left:0;right:0;border-top:3px dashed #ccc}.editor-styles-wrapper .wp-block-navigation ol,.editor-styles-wrapper .wp-block-navigation ul{margin-bottom:0;margin-left:0;padding-left:0}.editor-styles-wrapper .wp-block-navigation .block-editor-block-list__block{margin:0}.wp-block-navigation .block-list-appender{margin:0;display:flex;align-items:center}.wp-block-navigation.is-vertical .block-list-appender{margin:8px}.wp-block-navigation__inserter-content{padding:16px}.wp-block-navigation__container{min-height:46px}.wp-block-navigation__container.is-parent-of-selected-block{visibility:visible;opacity:1}.has-child:hover>.wp-block-navigation__container,.has-child>.wp-block-navigation__container{opacity:0;visibility:hidden}.has-child.has-child-selected>.wp-block-navigation__container,.has-child.is-selected>.wp-block-navigation__container,.is-dragging-components-draggable .has-child.is-dragging-within>.wp-block-navigation__container{opacity:1;visibility:visible}.is-dragging-components-draggable .wp-block-navigation-link>.wp-block-navigation__container{opacity:1;visibility:hidden}.is-dragging-components-draggable .wp-block-navigation-link>.wp-block-navigation__container .block-editor-block-draggable-chip-wrapper{visibility:visible}.block-library-colors-selector{width:auto}.block-library-colors-selector .block-library-colors-selector__toggle{display:block;margin:0 auto;padding:3px;width:auto}.block-library-colors-selector .block-library-colors-selector__icon-container{height:30px;position:relative;margin:0 auto;padding:3px;display:flex;align-items:center;border-radius:4px}.block-library-colors-selector .block-library-colors-selector__state-selection{margin-left:auto;margin-right:auto;border-radius:11px;box-shadow:inset 0 0 0 1px rgba(0,0,0,.2);width:22px;min-width:22px;height:22px;min-height:22px;line-height:20px;padding:2px}.block-library-colors-selector .block-library-colors-selector__state-selection>svg{min-width:auto!important}.block-library-colors-selector .block-library-colors-selector__state-selection.has-text-color>svg,.block-library-colors-selector .block-library-colors-selector__state-selection.has-text-color>svg path{color:inherit}.block-library-colors-selector__popover .color-palette-controller-container{padding:16px}.block-library-colors-selector__popover .components-base-control__label{height:20px;line-height:20px}.block-library-colors-selector__popover .component-color-indicator{float:right;margin-top:2px}.block-library-colors-selector__popover .components-panel__body-title{display:none}.is-editing>.wp-block-navigation__container{visibility:visible;opacity:1;display:flex;flex-direction:column}.wp-block-navigation-placeholder .components-spinner{margin-top:-4px;margin-left:4px;vertical-align:middle;margin-right:7px}.wp-block-navigation-placeholder .components-custom-select-control__button{height:auto;padding:.375rem .75rem .375rem 1.5rem;min-width:13.75rem}.wp-block-navigation-placeholder .components-custom-select-control.has-menus .components-custom-select-control__item.is-create-empty-option{position:relative;margin-top:20px}.wp-block-navigation-placeholder .components-custom-select-control.has-menus .components-custom-select-control__item.is-create-empty-option:before{content:"";position:absolute;top:-10px;left:25px;right:25px;height:15px;border-top:1px solid #757575}.wp-block-navigation-placeholder .components-custom-select-control__label{margin-bottom:1rem;font-size:13px;font-weight:400}.wp-block-navigation-placeholder .components-custom-select-control__menu{margin:0;max-height:none;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px}.wp-block-navigation .block-editor-button-block-appender{justify-content:flex-start}.wp-block-navigation-link__container,.wp-block-navigation-link__field .components-text-control__input.components-text-control__input{border-radius:0;line-height:36px;min-height:36px}.wp-block-navigation-link .block-editor-block-list__layout{display:block}.wp-block-navigation-link.is-editing,.wp-block-navigation-link.is-selected{min-width:20px}.wp-block-navigation-link .block-editor-rich-text__editable.is-selected:not(.keep-placeholder-on-focus):not(:focus)[data-rich-text-placeholder]:after{display:inline-block}.wp-block-navigation-link .block-list-appender{margin:10px 16px 16px 10px}.wp-block-navigation-link__separator{margin:8px 0;border-top:1px solid #ddd}.components-popover.wp-block-navigation-link__dropdown-content{margin-top:-1px;margin-left:-4px}.wp-block-navigation-link__dropdown-content .components-popover__content>div{padding:8px 0}.wp-block-navigation .block-editor-block-list__block[data-type="core/navigation-link"]>.block-editor-block-list__insertion-point{display:none}.block-editor-block-list__block[data-type="core/nextpage"]{max-width:100%;margin-top:28px;margin-bottom:28px}.wp-block-nextpage{display:block;text-align:center;white-space:nowrap}.wp-block-nextpage>span{font-size:13px;position:relative;display:inline-block;text-transform:uppercase;font-weight:600;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;color:#757575;border-radius:4px;background:#fff;padding:6px 8px;height:24px}.wp-block-nextpage:before{content:"";position:absolute;top:50%;left:0;right:0;border-top:3px dashed #ccc}.block-editor-block-list__block[data-type="core/paragraph"].has-drop-cap:focus{min-height:auto!important}.wp-block-post-content__placeholder{height:100px;border:1px dashed;display:flex;justify-content:center;align-items:center}.wp-block-post-content__placeholder span{font-style:italic}.wp-block-post-excerpt .wp-block-post-excerpt__excerpt.is-inline{display:inline-block}.wp-block-post-author{display:flex;flex-wrap:wrap}.wp-block-post-author .wp-block-post-author__byline{font-size:.5em;margin-top:0;position:relative;font-style:normal}.wp-block-post-author .wp-block-post-author__content{flex-grow:1;flex-basis:0}.wp-block-post-author .wp-block-post-author__avatar img{margin:0}.wp-block-post-author .wp-block-post-author__avatar{margin-bottom:-8px}.wp-block-post-author .wp-block-post-author__name{margin:0;font-weight:700}.wp-block-post-author .wp-block-post-author__bio{margin:0 0 8px;font-size:.7em}.wp-block[data-align=left]>.wp-block-pullquote p,.wp-block[data-align=right]>.wp-block-pullquote p{font-size:20px}.wp-block-pullquote blockquote p{font-size:28px;line-height:1.6}.wp-block-pullquote.is-style-solid-color blockquote p{font-size:32px}.wp-block-pullquote.is-style-solid-color .wp-block-pullquote__citation{text-transform:none;font-style:normal}.wp-block-pullquote .wp-block-pullquote__citation{color:inherit}.wp-block-quote__citation{font-size:13px}.block-editor .wp-block-rss{padding-left:2.5em}.block-editor .wp-block-rss.is-grid{padding-left:0}.wp-block-rss li a>div{display:inline}.wp-block-rss__placeholder-form{display:flex;align-items:stretch}.wp-block-rss__placeholder-form>*{margin-bottom:8px}@media (min-width:782px){.wp-block-rss__placeholder-form>*{margin-bottom:0}}.wp-block-rss__placeholder-input{display:flex;align-items:stretch;flex-grow:1}.wp-block-rss__placeholder-input .components-base-control__field{display:flex;align-items:stretch;flex-grow:1;margin:0 8px 0 0}.wp-block-search .wp-block-search__input{padding:8px}.wp-block-search.wp-block-search__button-inside .wp-block-search__inside-wrapper{padding:4px}.wp-block-search.wp-block-search__button-inside .wp-block-search__inside-wrapper,.wp-block-search .wp-block-search__input{border-radius:2px;border:1px solid #949494;color:rgba(30,30,30,.62);font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;background-color:#fff}.wp-block-search.wp-block-search__button-inside .wp-block-search__inside-wrapper:focus,.wp-block-search .wp-block-search__input:focus{outline:none}.wp-block-search .wp-block-search__button{background:#f7f7f7;border-radius:2px;border:1px solid #ccc;box-shadow:inset 0 -1px 0 #ccc;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;padding:6px 10px;color:#32373c}.wp-block-search__components-button-group{margin-top:10px}.block-editor-block-list__block[data-type="core/separator"]{padding-top:.1px;padding-bottom:.1px}.block-editor-block-list__block[data-type="core/separator"].block-editor-block-list__block{margin-top:0;margin-bottom:0}.wp-block-shortcode{display:flex;flex-direction:column;padding:14px;font-size:13px;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;margin-bottom:28px}.wp-block-shortcode label{display:flex;align-items:center;white-space:nowrap;font-weight:600;flex-shrink:0}.wp-block-shortcode .block-editor-plain-text{max-height:250px}.wp-block-shortcode .dashicon{margin-right:8px}.block-editor .blocks-shortcode__textarea,.blocks-shortcode__textarea{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;padding:6px 8px;box-shadow:0 0 0 transparent;transition:box-shadow .1s linear;border-radius:2px;border:1px solid #757575;font-size:16px;line-height:normal}@media (prefers-reduced-motion:reduce){.block-editor .blocks-shortcode__textarea,.blocks-shortcode__textarea{transition-duration:0s}}@media (min-width:600px){.block-editor .blocks-shortcode__textarea,.blocks-shortcode__textarea{font-size:13px;line-height:normal}}.block-editor .blocks-shortcode__textarea:focus,.blocks-shortcode__textarea:focus{border-color:#007cba;border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 .5px #007cba;box-shadow:0 0 0 .5px var(--wp-admin-theme-color);outline:2px solid transparent}.block-editor .blocks-shortcode__textarea::-webkit-input-placeholder,.blocks-shortcode__textarea::-webkit-input-placeholder{color:rgba(30,30,30,.62)}.block-editor .blocks-shortcode__textarea::-moz-placeholder,.blocks-shortcode__textarea::-moz-placeholder{opacity:1;color:rgba(30,30,30,.62)}.block-editor .blocks-shortcode__textarea:-ms-input-placeholder,.blocks-shortcode__textarea:-ms-input-placeholder{color:rgba(30,30,30,.62)}.is-dark-theme .block-editor .blocks-shortcode__textarea::-webkit-input-placeholder,.is-dark-theme .blocks-shortcode__textarea::-webkit-input-placeholder{color:hsla(0,0%,100%,.65)}.is-dark-theme .block-editor .blocks-shortcode__textarea::-moz-placeholder,.is-dark-theme .blocks-shortcode__textarea::-moz-placeholder{opacity:1;color:hsla(0,0%,100%,.65)}.is-dark-theme .block-editor .blocks-shortcode__textarea:-ms-input-placeholder,.is-dark-theme .blocks-shortcode__textarea:-ms-input-placeholder{color:hsla(0,0%,100%,.65)}.wp-block[data-align=center]>.wp-block-site-logo{margin-left:auto;margin-right:auto;text-align:center}.wp-block-site-logo.is-resized{display:table}.wp-block-site-logo .custom-logo-link{cursor:inherit}.wp-block-site-logo .custom-logo-link:focus{box-shadow:none}.wp-block-site-logo .custom-logo-link.is-transient img{opacity:.3}.wp-block-site-logo img{display:block;max-width:100%}.wp-block-social-links .wp-social-link button{color:currentColor;padding:6px}.wp-block-social-links.is-style-pill-shape .wp-social-link button{padding-left:16px;padding-right:16px}.wp-block-social-links div.block-editor-url-input{display:inline-block;margin-left:8px}.editor-styles-wrapper .wp-block-social-link{margin:0 8px 8px 0}.editor-styles-wrapper .wp-block-social-link.is-hovered,.editor-styles-wrapper .wp-block-social-link.is-selected{transform:none}.editor-styles-wrapper .wp-block-social-links{padding:0}.wp-block-social-links__social-placeholder{display:flex}.wp-block-social-links__social-placeholder .wp-block-social-link{display:inline-flex;align-items:center;justify-content:center;margin:0 8px 8px 0;width:36px;height:36px;border-radius:50%;opacity:.8}.is-style-logos-only .wp-block-social-links__social-placeholder .wp-block-social-link:before{content:"";display:block;width:18px;height:18px;border-radius:50%;opacity:.8;background:currentColor}.is-style-pill-shape .wp-block-social-links__social-placeholder .wp-block-social-link{border-radius:9999px;padding-left:28px;padding-right:28px}.wp-block-social-links .block-list-appender{margin:0 0 8px;display:flex;align-items:center}.wp-block[data-align=center]>.wp-block-social-links{justify-content:center}.block-editor-block-preview__content .wp-social-link:disabled{opacity:1}[data-type="core/social-links"]:not(.is-selected):not(.has-child-selected) .wp-block-social-links{min-height:36px}.wp-social-link.wp-social-link__is-incomplete{opacity:.5}@media (prefers-reduced-motion:reduce){.wp-social-link.wp-social-link__is-incomplete{transition-duration:0s}}.wp-block-social-links .is-selected .wp-social-link__is-incomplete,.wp-social-link.wp-social-link__is-incomplete:focus,.wp-social-link.wp-social-link__is-incomplete:hover{opacity:1}[data-type="core/social-links"] .wp-social-link:focus{opacity:1;box-shadow:0 0 0 2px #fff,0 0 0 4px #007cba;box-shadow:0 0 0 2px #fff,0 0 0 4px var(--wp-admin-theme-color);outline:2px solid transparent}.block-editor-block-list__layout .block-editor-block-list__block[data-type="core/social-link"]:not([contenteditable]):focus:after,.is-navigate-mode .block-editor-block-list__layout .block-editor-block-list__block[data-type="core/social-link"].is-selected:after{right:8px}.block-editor-block-list__block[data-type="core/spacer"]:before{content:"";display:block;position:absolute;width:100%;height:24px;transform:translateY(-12px)}.block-library-spacer__resize-container.has-show-handle{background:#f0f0f0}.is-dark-theme .block-library-spacer__resize-container.has-show-handle{background:hsla(0,0%,100%,.15)}.block-library-spacer__resize-container{clear:both;margin-bottom:28px}.block-library-spacer__resize-container .components-resizable-box__handle:before{content:none}.edit-post-visual-editor p.wp-block-subhead{color:#555;font-size:1.1em;font-style:italic}.wp-block-table{margin:0}.wp-block[data-align=center]>.wp-block-table,.wp-block[data-align=left]>.wp-block-table,.wp-block[data-align=right]>.wp-block-table{height:auto}.wp-block[data-align=center]>.wp-block-table table,.wp-block[data-align=left]>.wp-block-table table,.wp-block[data-align=right]>.wp-block-table table{width:auto}.wp-block[data-align=center]>.wp-block-table td,.wp-block[data-align=center]>.wp-block-table th,.wp-block[data-align=left]>.wp-block-table td,.wp-block[data-align=left]>.wp-block-table th,.wp-block[data-align=right]>.wp-block-table td,.wp-block[data-align=right]>.wp-block-table th{word-break:break-word}.wp-block[data-align=center]>.wp-block-table{text-align:initial}.wp-block[data-align=center]>.wp-block-table table{margin:0 auto}.wp-block-table table{border-collapse:collapse}.wp-block-table td,.wp-block-table th{border:1px solid}.wp-block-table td.is-selected,.wp-block-table th.is-selected{border-color:#007cba;border-color:var(--wp-admin-theme-color);box-shadow:inset 0 0 0 1px #007cba;box-shadow:inset 0 0 0 1px var(--wp-admin-theme-color);border-style:double}.wp-block-table figcaption{color:#555;font-size:13px;text-align:center}.blocks-table__placeholder-form.blocks-table__placeholder-form{display:flex;flex-direction:column;align-items:flex-start}.blocks-table__placeholder-form.blocks-table__placeholder-form>*{margin-bottom:8px}@media (min-width:782px){.blocks-table__placeholder-form.blocks-table__placeholder-form{flex-direction:row;align-items:flex-end}.blocks-table__placeholder-form.blocks-table__placeholder-form>*{margin-bottom:0}}.blocks-table__placeholder-input{width:112px;margin-right:8px;margin-bottom:0}.blocks-table__placeholder-input input{height:36px}.blocks-table__placeholder-input .components-base-control__field{margin-bottom:0}.block-editor .wp-block-tag-cloud a{display:inline-block;margin-right:5px}.block-editor .wp-block-tag-cloud span{display:inline-block;margin-left:5px;color:#757575;text-decoration:none}.wp-block-template-part__placeholder-preview-dropdown-content .components-popover__content,.wp-block-template-part__preview-dropdown-content .components-popover__content{min-width:320px;padding:0}.wp-block-template-part__selection-preview-search-form{border-bottom:1px solid #ddd}.wp-block-template-part__selection-preview-container{background:#fff;padding-bottom:16px}.wp-block-template-part__selection-preview-container .wp-block-template-part__selection-preview-item{border-radius:2px;cursor:pointer;margin-top:16px;transition:all .05s ease-in-out;border:1px solid transparent;width:100%;background-color:#fff}.wp-block-template-part__selection-preview-container .wp-block-template-part__selection-preview-item:hover{border:1px solid #007cba;border:1px solid var(--wp-admin-theme-color)}.wp-block-template-part__selection-preview-container .wp-block-template-part__selection-preview-item:focus{box-shadow:inset 0 0 0 1px #fff,0 0 0 1.5px #007cba;box-shadow:inset 0 0 0 1px #fff,0 0 0 1.5px var(--wp-admin-theme-color);outline:2px solid transparent}.wp-block-template-part__selection-preview-container .wp-block-template-part__selection-preview-item.is-placeholder{min-height:100px}.wp-block-template-part__selection-preview-container .wp-block-template-part__selection-preview-item-title{padding:4px;font-size:12px;text-align:left}.wp-block-template-part__selection-preview-container .wp-block-template-part__selection-panel-group-header{padding:16px 16px 0}.wp-block-template-part__selection-preview-container .wp-block-template-part__selection-panel-group-content{padding:0 16px}.wp-block-template-part__selection-preview-container .wp-block-template-part__selection-panel-group-title{color:#007cba;color:var(--wp-admin-theme-color);text-transform:uppercase;font-size:11px;font-weight:500}.wp-block-template-part__block-control-group{display:flex}.wp-block-template-part__block-control-group .wp-block-template-part__name-panel{outline:1px solid transparent;padding:8px 0 8px 12px}.wp-block-template-part__block-control-group .wp-block-template-part__name-panel .components-base-control__field{align-items:center;display:flex;margin-bottom:0}.wp-block-template-part__block-control-group .wp-block-template-part__name-panel .components-base-control__label{margin-bottom:0;margin-right:8px}.is-dark-theme .is-navigate-mode .is-selected .wp-block-template-part__name-panel,.is-navigate-mode .is-selected .wp-block-template-part__name-panel{box-shadow:0 0 0 1px #007cba;box-shadow:0 0 0 1px var(--wp-admin-theme-color)}.block-editor-block-list__block[data-type="core/template-part"].has-child-selected:after,.block-editor-block-list__block[data-type="core/template-part"].is-selected:after{top:1px;bottom:1px;left:1px;right:1px;border-radius:1px}.block-editor-block-list__block[data-type="core/template-part"].is-selected:after{box-shadow:0 0 0 1.5px #007cba;box-shadow:0 0 0 1.5px var(--wp-admin-theme-color)}.is-dark-theme .block-editor-block-list__block[data-type="core/template-part"].is-selected:after{box-shadow:0 0 0 1.5px #fff}.block-editor-block-list__block[data-type="core/template-part"].has-child-selected:after{box-shadow:0 0 0 1px #ddd}.is-dark-theme .block-editor-block-list__block[data-type="core/template-part"].has-child-selected:after{box-shadow:0 0 0 1.5px #757575}.wp-block-text-columns .block-editor-rich-text__editable:focus{outline:1px solid #ddd}pre.wp-block-verse{color:#1e1e1e;white-space:nowrap;font-family:inherit;font-size:inherit;padding:1em;overflow:auto}.wp-block[data-align=center]>.wp-block-video{text-align:center}.editor-video-poster-control .components-base-control__label{display:block}.editor-video-poster-control .components-button{margin-right:8px}.block-library-video-tracks-editor{z-index:159990}.block-library-video-tracks-editor>.components-popover__content{width:360px}.block-library-video-tracks-editor__track-list-track{display:flex;place-content:space-between;align-items:baseline;padding-left:12px}.block-library-video-tracks-editor__single-track-editor-label-language{display:flex;margin-top:12px}.block-library-video-tracks-editor__single-track-editor-label-language>.components-base-control{width:50%}.block-library-video-tracks-editor__single-track-editor-label-language>.components-base-control:first-child{margin-right:16px}.block-library-video-tracks-editor__single-track-editor-kind-select{max-width:240px}.block-library-video-tracks-editor__single-track-editor-buttons-container{display:flex;place-content:space-between;margin-top:32px}.block-library-video-tracks-editor__single-track-editor-edit-track-label{margin-top:4px;margin-bottom:12px;color:#757575;text-transform:uppercase;font-size:11px;font-weight:500;display:block}.block-library-video-tracks-editor>.components-popover__content>div{padding:0}.block-library-video-tracks-editor__add-tracks-container .components-menu-group__label,.block-library-video-tracks-editor__track-list .components-menu-group__label{padding:0}.block-library-video-tracks-editor__add-tracks-container,.block-library-video-tracks-editor__single-track-editor,.block-library-video-tracks-editor__track-list{padding:12px}.block-library-video-tracks-editor__single-track-editor .components-base-control .components-base-control__label{margin-bottom:4px}.block-library-video-tracks-editor__single-track-editor .components-base-control .components-base-control__field{margin-bottom:12px}.block-library-video-tracks-editor__single-track-editor .components-base-control .components-text-control__input{margin-left:0}.block-library-video-tracks-editor__single-track-editor .components-base-control .components-input-control__label{margin-bottom:4px}.editor-styles-wrapper .wp-block.wp-block-query,.editor-styles-wrapper .wp-block.wp-block-query-loop{max-width:100%}div[data-type="core/post-featured-image"] .post-featured-image_placeholder{display:flex;flex-direction:row;align-items:flex-start;border-radius:2px;background-color:#fff;box-shadow:inset 0 0 0 1px #1e1e1e;padding:12px}div[data-type="core/post-featured-image"] .post-featured-image_placeholder svg{margin-right:12px}div[data-type="core/post-featured-image"] .post-featured-image_placeholder p{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;margin:0}div[data-type="core/post-featured-image"] img{max-width:100%;height:auto;display:block}.block-editor-block-list__layout .reusable-block-edit-panel{align-items:center;display:flex;flex-wrap:wrap;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;padding:6px 12px;border-radius:2px;background-color:#fff;box-shadow:0 0 0 1px #1e1e1e;outline:1px solid transparent}.block-editor-block-list__layout .reusable-block-edit-panel .reusable-block-edit-panel__info{margin-right:auto}.block-editor-block-list__layout .reusable-block-edit-panel .reusable-block-edit-panel__label{margin-right:8px;white-space:nowrap;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px}.block-editor-block-list__layout .reusable-block-edit-panel .reusable-block-edit-panel__title{flex:1 1 100%}.block-editor-block-list__layout .reusable-block-edit-panel .components-button.reusable-block-edit-panel__button{flex-shrink:0}@media (min-width:960px){.block-editor-block-list__layout .reusable-block-edit-panel{flex-wrap:nowrap}.block-editor-block-list__layout .reusable-block-edit-panel .reusable-block-edit-panel__title{margin:0}.block-editor-block-list__layout .reusable-block-edit-panel .components-button.reusable-block-edit-panel__button{margin:0 0 0 8px}}.reusable-block-edit-panel__title[type=text]{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;padding:6px 8px;box-shadow:0 0 0 transparent;transition:box-shadow .1s linear;border-radius:2px;border:1px solid #757575;font-size:16px;line-height:normal}@media (prefers-reduced-motion:reduce){.reusable-block-edit-panel__title[type=text]{transition-duration:0s}}@media (min-width:600px){.reusable-block-edit-panel__title[type=text]{font-size:13px;line-height:normal}}.reusable-block-edit-panel__title[type=text]:focus{border-color:#007cba;border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 .5px #007cba;box-shadow:0 0 0 .5px var(--wp-admin-theme-color);outline:2px solid transparent}.reusable-block-edit-panel__title[type=text]::-webkit-input-placeholder{color:rgba(30,30,30,.62)}.reusable-block-edit-panel__title[type=text]::-moz-placeholder{opacity:1;color:rgba(30,30,30,.62)}.reusable-block-edit-panel__title[type=text]:-ms-input-placeholder{color:rgba(30,30,30,.62)}.is-dark-theme .reusable-block-edit-panel__title[type=text]::-webkit-input-placeholder{color:hsla(0,0%,100%,.65)}.is-dark-theme .reusable-block-edit-panel__title[type=text]::-moz-placeholder{opacity:1;color:hsla(0,0%,100%,.65)}.is-dark-theme .reusable-block-edit-panel__title[type=text]:-ms-input-placeholder{color:hsla(0,0%,100%,.65)}.is-dark-theme .is-navigate-mode .is-selected .reusable-block-edit-panel,.is-navigate-mode .is-selected .reusable-block-edit-panel{box-shadow:0 0 0 1px #007cba;box-shadow:0 0 0 1px var(--wp-admin-theme-color)}:root .editor-styles-wrapper .has-pale-pink-background-color{background-color:#f78da7}:root .editor-styles-wrapper .has-vivid-red-background-color{background-color:#cf2e2e}:root .editor-styles-wrapper .has-luminous-vivid-orange-background-color{background-color:#ff6900}:root .editor-styles-wrapper .has-luminous-vivid-amber-background-color{background-color:#fcb900}:root .editor-styles-wrapper .has-light-green-cyan-background-color{background-color:#7bdcb5}:root .editor-styles-wrapper .has-vivid-green-cyan-background-color{background-color:#00d084}:root .editor-styles-wrapper .has-pale-cyan-blue-background-color{background-color:#8ed1fc}:root .editor-styles-wrapper .has-vivid-cyan-blue-background-color{background-color:#0693e3}:root .editor-styles-wrapper .has-vivid-purple-background-color{background-color:#9b51e0}:root .editor-styles-wrapper .has-white-background-color{background-color:#fff}:root .editor-styles-wrapper .has-very-light-gray-background-color{background-color:#eee}:root .editor-styles-wrapper .has-cyan-bluish-gray-background-color{background-color:#abb8c3}:root .editor-styles-wrapper .has-very-dark-gray-background-color{background-color:#313131}:root .editor-styles-wrapper .has-black-background-color{background-color:#000}:root .editor-styles-wrapper .has-pale-pink-color{color:#f78da7}:root .editor-styles-wrapper .has-vivid-red-color{color:#cf2e2e}:root .editor-styles-wrapper .has-luminous-vivid-orange-color{color:#ff6900}:root .editor-styles-wrapper .has-luminous-vivid-amber-color{color:#fcb900}:root .editor-styles-wrapper .has-light-green-cyan-color{color:#7bdcb5}:root .editor-styles-wrapper .has-vivid-green-cyan-color{color:#00d084}:root .editor-styles-wrapper .has-pale-cyan-blue-color{color:#8ed1fc}:root .editor-styles-wrapper .has-vivid-cyan-blue-color{color:#0693e3}:root .editor-styles-wrapper .has-vivid-purple-color{color:#9b51e0}:root .editor-styles-wrapper .has-white-color{color:#fff}:root .editor-styles-wrapper .has-very-light-gray-color{color:#eee}:root .editor-styles-wrapper .has-cyan-bluish-gray-color{color:#abb8c3}:root .editor-styles-wrapper .has-very-dark-gray-color{color:#313131}:root .editor-styles-wrapper .has-black-color{color:#000}:root .editor-styles-wrapper .has-vivid-cyan-blue-to-vivid-purple-gradient-background{background:linear-gradient(135deg,#0693e3,#9b51e0)}:root .editor-styles-wrapper .has-vivid-green-cyan-to-vivid-cyan-blue-gradient-background{background:linear-gradient(135deg,#00d084,#0693e3)}:root .editor-styles-wrapper .has-light-green-cyan-to-vivid-green-cyan-gradient-background{background:linear-gradient(135deg,#7adcb4,#00d082)}:root .editor-styles-wrapper .has-luminous-vivid-amber-to-luminous-vivid-orange-gradient-background{background:linear-gradient(135deg,#fcb900,#ff6900)}:root .editor-styles-wrapper .has-luminous-vivid-orange-to-vivid-red-gradient-background{background:linear-gradient(135deg,#ff6900,#cf2e2e)}:root .editor-styles-wrapper .has-very-light-gray-to-cyan-bluish-gray-gradient-background{background:linear-gradient(135deg,#eee,#a9b8c3)}:root .editor-styles-wrapper .has-cool-to-warm-spectrum-gradient-background{background:linear-gradient(135deg,#4aeadc,#9778d1 20%,#cf2aba 40%,#ee2c82 60%,#fb6962 80%,#fef84c)}:root .editor-styles-wrapper .has-blush-light-purple-gradient-background{background:linear-gradient(135deg,#ffceec,#9896f0)}:root .editor-styles-wrapper .has-blush-bordeaux-gradient-background{background:linear-gradient(135deg,#fecda5,#fe2d2d 50%,#6b003e)}:root .editor-styles-wrapper .has-purple-crush-gradient-background{background:linear-gradient(135deg,#34e2e4,#4721fb 50%,#ab1dfe)}:root .editor-styles-wrapper .has-luminous-dusk-gradient-background{background:linear-gradient(135deg,#ffcb70,#c751c0 50%,#4158d0)}:root .editor-styles-wrapper .has-hazy-dawn-gradient-background{background:linear-gradient(135deg,#faaca8,#dad0ec)}:root .editor-styles-wrapper .has-pale-ocean-gradient-background{background:linear-gradient(135deg,#fff5cb,#b6e3d4 50%,#33a7b5)}:root .editor-styles-wrapper .has-electric-grass-gradient-background{background:linear-gradient(135deg,#caf880,#71ce7e)}:root .editor-styles-wrapper .has-subdued-olive-gradient-background{background:linear-gradient(135deg,#fafae1,#67a671)}:root .editor-styles-wrapper .has-atomic-cream-gradient-background{background:linear-gradient(135deg,#fdd79a,#004a59)}:root .editor-styles-wrapper .has-nightshade-gradient-background{background:linear-gradient(135deg,#330968,#31cdcf)}:root .editor-styles-wrapper .has-midnight-gradient-background{background:linear-gradient(135deg,#020381,#2874fc)}.editor-styles-wrapper .has-small-font-size{font-size:13px}.editor-styles-wrapper .has-normal-font-size,.editor-styles-wrapper .has-regular-font-size{font-size:16px}.editor-styles-wrapper .has-medium-font-size{font-size:20px}.editor-styles-wrapper .has-large-font-size{font-size:36px}.editor-styles-wrapper .has-huge-font-size,.editor-styles-wrapper .has-larger-font-size{font-size:42px}.block-editor-block-list__block{margin-top:28px;margin-bottom:28px}#end-resizable-editor-section{display:none} \ No newline at end of file + /*!rtl:ignore*/text-align:right}.wp-block-button{position:relative;cursor:text}.wp-block-button:not(.has-text-color):not(.is-style-outline) [data-rich-text-placeholder]:after{color:#fff}.wp-block-button:focus{box-shadow:0 0 0 1px #fff,0 0 0 3px #007cba;box-shadow:0 0 0 1px #fff,0 0 0 3px var(--wp-admin-theme-color);outline:2px solid transparent;outline-offset:-2px}.wp-block-button[data-rich-text-placeholder]:after{opacity:.8}.wp-block-button__inline-link{color:#757575;height:0;overflow:hidden;max-width:290px}.wp-block-button__inline-link-input__suggestions{max-width:290px}@media (min-width:782px){.wp-block-button__inline-link,.wp-block-button__inline-link-input__suggestions{max-width:260px}}@media (min-width:960px){.wp-block-button__inline-link,.wp-block-button__inline-link-input__suggestions{max-width:290px}}.is-selected .wp-block-button__inline-link{height:auto;overflow:visible;margin-top:16px}div[data-type="core/button"]{display:table}.wp-block-buttons>.wp-block{margin-left:0}.wp-block[data-align=center]>.wp-block-buttons{display:flex;align-items:center;flex-wrap:wrap;justify-content:center}.wp-block[data-align=right]>.wp-block-buttons{display:flex;justify-content:flex-end}.wp-block-buttons>.block-list-appender{display:inline-block}.block-editor .wp-block-categories ul{padding-left:2.5em}.block-editor .wp-block-categories ul ul{margin-top:6px}.wp-block-code>code{display:block}.wp-block-columns .wp-block{max-width:none;margin-left:0;margin-right:0}@media (min-width:600px){.editor-styles-wrapper .block-editor-block-list__block.wp-block-column:nth-child(2n){margin-left:32px}}@media (min-width:782px){.editor-styles-wrapper .block-editor-block-list__block.wp-block-column:not(:first-child){margin-left:32px}}.block-editor-block-list__block.wp-block-column.wp-block-column{margin-top:0;margin-bottom:0}.wp-block-cover{position:relative}.wp-block-cover.is-placeholder{min-height:auto!important;padding:0!important}.wp-block-cover.components-placeholder h2{color:inherit}.wp-block-cover.is-transient:before{background-color:#fff;opacity:.3}.wp-block-cover .components-spinner{position:absolute;z-index:1;top:50%;left:50%;transform:translate(-50%,-50%);margin:0}.wp-block-cover .block-editor-block-list__layout{width:100%}.wp-block-cover .wp-block-cover__inner-container{text-align:left;margin-left:0;margin-right:0}.wp-block-cover .wp-block-cover__placeholder-background-options{width:100%}[data-align=left]>.wp-block-cover,[data-align=right]>.wp-block-cover{max-width:290px;width:100%}.block-library-cover__reset-button{margin-left:auto}.block-library-cover__resize-container{position:absolute!important;top:0;left:0;right:0;bottom:0}.block-library-cover__resize-container:not(.is-resizing){height:auto!important}.wp-block-embed{margin-left:0;margin-right:0;clear:both}.wp-block-embed.is-loading{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:1em;min-height:200px;text-align:center;border-radius:2px;background-color:#fff;box-shadow:inset 0 0 0 1px #1e1e1e}.wp-block-embed.is-loading p{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px}.wp-block-embed .components-placeholder__error{word-break:break-word}.wp-block-embed .components-placeholder__learn-more{margin-top:1em}.block-library-embed__interactive-overlay{position:absolute;top:0;left:0;right:0;bottom:0;opacity:0}.wp-block-file{display:flex;justify-content:space-between;align-items:center;margin-bottom:0}.wp-block-file .wp-block-file__content-wrapper{flex-grow:1}.wp-block-file .wp-block-file__textlink{display:inline-block;min-width:1em}.wp-block-file .wp-block-file__textlink:focus{box-shadow:none}.wp-block-file .wp-block-file__button-richtext-wrapper{display:inline-block;margin-left:.75em}.wp-block-file .wp-block-file__copy-url-button{margin-left:1em}.wp-block-freeform.block-library-rich-text__tinymce{height:auto}.wp-block-freeform.block-library-rich-text__tinymce li,.wp-block-freeform.block-library-rich-text__tinymce p{line-height:1.8}.wp-block-freeform.block-library-rich-text__tinymce ol,.wp-block-freeform.block-library-rich-text__tinymce ul{padding-left:2.5em;margin-left:0}.wp-block-freeform.block-library-rich-text__tinymce blockquote{margin:0;box-shadow:inset 0 0 0 0 #ddd;border-left:4px solid #000;padding-left:1em}.wp-block-freeform.block-library-rich-text__tinymce pre{white-space:pre-wrap;font-family:Menlo,Consolas,monaco,monospace;font-size:15px;color:#1e1e1e}.wp-block-freeform.block-library-rich-text__tinymce>:first-child{margin-top:0}.wp-block-freeform.block-library-rich-text__tinymce>:last-child{margin-bottom:0}.wp-block-freeform.block-library-rich-text__tinymce.mce-edit-focus{outline:none}.wp-block-freeform.block-library-rich-text__tinymce a{color:#007cba;color:var(--wp-admin-theme-color)}.wp-block-freeform.block-library-rich-text__tinymce:focus a[data-mce-selected]{padding:0 2px;margin:0 -2px;border-radius:2px;box-shadow:0 0 0 1px #e5f5fa;background:#e5f5fa}.wp-block-freeform.block-library-rich-text__tinymce code{padding:2px;border-radius:2px;color:#1e1e1e;background:#f0f0f0;font-family:Menlo,Consolas,monaco,monospace;font-size:14px}.wp-block-freeform.block-library-rich-text__tinymce:focus code[data-mce-selected]{background:#ddd}.wp-block-freeform.block-library-rich-text__tinymce .alignright{float:right;margin:.5em 0 .5em 1em}.wp-block-freeform.block-library-rich-text__tinymce .alignleft{float:left;margin:.5em 1em .5em 0}.wp-block-freeform.block-library-rich-text__tinymce .aligncenter{display:block;margin-left:auto;margin-right:auto}.wp-block-freeform.block-library-rich-text__tinymce .wp-more-tag{width:96%;height:20px;display:block;margin:15px auto;outline:0;cursor:default;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAADtgAAAAoBAMAAAA86gLBAAAAJFBMVEVMaXG7u7vBwcHDw8POzs68vLzGxsbMzMy+vr7AwMDQ0NDGxsYKLGzpAAAADHRSTlMA///zWf+/f///TMxNVGuqAAABwklEQVR4Ae3dMXLaQBTH4bfj8UCpx8hq0vgKvgFNemhT6Qo6gg6R+0ZahM2QLmyBJ99XWP9V5+o3jIUcLQEAAAAAAAAAAAAAAAAAAAAAAABQ8j0WL9lfTtlt18uNXAUA8O/KVtfa1tdcrOdSh9gCQAMlh1hMNbZZ1bsrsQWABsrhLRbz7z5in/32UbfUMUbkMQCAh5RfGYv82UdMdZ6HS2wjT2ILAI8r3XmM2B3WvM59vfO2xXYW2yYAENuPU8S+X/N67mKxzy225yaxBQCxLV392UdcvwV0jPVUj98ntkBWT7C7+9u2/V/vGtvXIWJ6/4rtbottWa6Ri0NUT/u72LYttrb97LHdvUXMxxrb8TO2W2TF1rYbbLG1bbGNjMi4+2Sbi1FsbbvNFlvbFtt5fDnE3d9sP1/XeIyV2Nr2U2/guZUuptNrH/dPI9eLB6SaAEBs6wPJf3/PNk9tYgsAYrv/8TFuzx/fvkFqGtrEFgDEdpcZUb7ejXy6ntrEFgDENvL6gsas4vbdyKt4DACI7TxElJv/Z7udpqFNbAFAbKduy2uU2trttM/x28UWAAAAAAAAAAAAAAAAAAAAAAAAAADgDyPwGmGTCZp7AAAAAElFTkSuQmCC);background-size:1900px 20px;background-repeat:no-repeat;background-position:50%}.wp-block-freeform.block-library-rich-text__tinymce img::selection{background-color:transparent}.wp-block-freeform.block-library-rich-text__tinymce div.mceTemp{-ms-user-select:element}.wp-block-freeform.block-library-rich-text__tinymce dl.wp-caption{margin:0;max-width:100%}.wp-block-freeform.block-library-rich-text__tinymce dl.wp-caption a,.wp-block-freeform.block-library-rich-text__tinymce dl.wp-caption img{display:block}.wp-block-freeform.block-library-rich-text__tinymce dl.wp-caption,.wp-block-freeform.block-library-rich-text__tinymce dl.wp-caption *{-webkit-user-drag:none}.wp-block-freeform.block-library-rich-text__tinymce dl.wp-caption .wp-caption-dd{padding-top:.5em;margin:0}.wp-block-freeform.block-library-rich-text__tinymce .wpview{width:99.99%;position:relative;clear:both;margin-bottom:16px;border:1px solid transparent}.wp-block-freeform.block-library-rich-text__tinymce .wpview iframe{display:block;max-width:100%;background:transparent}.wp-block-freeform.block-library-rich-text__tinymce .wpview .mce-shim{position:absolute;top:0;right:0;bottom:0;left:0}.wp-block-freeform.block-library-rich-text__tinymce .wpview[data-mce-selected="2"] .mce-shim{display:none}.wp-block-freeform.block-library-rich-text__tinymce .wpview .loading-placeholder{border:1px dashed #ddd;padding:10px}.wp-block-freeform.block-library-rich-text__tinymce .wpview .wpview-error{border:1px solid #ddd;padding:1em 0;margin:0;word-wrap:break-word}.wp-block-freeform.block-library-rich-text__tinymce .wpview .wpview-error p{margin:0;text-align:center}.wp-block-freeform.block-library-rich-text__tinymce .wpview[data-mce-selected] .loading-placeholder,.wp-block-freeform.block-library-rich-text__tinymce .wpview[data-mce-selected] .wpview-error{border-color:transparent}.wp-block-freeform.block-library-rich-text__tinymce .wpview .dashicons{display:block;margin:0 auto;width:32px;height:32px;font-size:32px}.wp-block-freeform.block-library-rich-text__tinymce .wpview.wpview-type-gallery:after{content:"";display:table;clear:both}.wp-block-freeform.block-library-rich-text__tinymce .gallery img[data-mce-selected]:focus{outline:none}.wp-block-freeform.block-library-rich-text__tinymce .gallery a{cursor:default}.wp-block-freeform.block-library-rich-text__tinymce .gallery{margin:auto -6px;padding:6px 0;line-height:1;overflow-x:hidden}.wp-block-freeform.block-library-rich-text__tinymce .gallery .gallery-item{float:left;margin:0;text-align:center;padding:6px;box-sizing:border-box}.wp-block-freeform.block-library-rich-text__tinymce .gallery .gallery-caption,.wp-block-freeform.block-library-rich-text__tinymce .gallery .gallery-icon{margin:0}.wp-block-freeform.block-library-rich-text__tinymce .gallery .gallery-caption{font-size:13px;margin:4px 0}.wp-block-freeform.block-library-rich-text__tinymce .gallery-columns-1 .gallery-item{width:100%}.wp-block-freeform.block-library-rich-text__tinymce .gallery-columns-2 .gallery-item{width:50%}.wp-block-freeform.block-library-rich-text__tinymce .gallery-columns-3 .gallery-item{width:33.33333%}.wp-block-freeform.block-library-rich-text__tinymce .gallery-columns-4 .gallery-item{width:25%}.wp-block-freeform.block-library-rich-text__tinymce .gallery-columns-5 .gallery-item{width:20%}.wp-block-freeform.block-library-rich-text__tinymce .gallery-columns-6 .gallery-item{width:16.66667%}.wp-block-freeform.block-library-rich-text__tinymce .gallery-columns-7 .gallery-item{width:14.28571%}.wp-block-freeform.block-library-rich-text__tinymce .gallery-columns-8 .gallery-item{width:12.5%}.wp-block-freeform.block-library-rich-text__tinymce .gallery-columns-9 .gallery-item{width:11.11111%}.wp-block-freeform.block-library-rich-text__tinymce .gallery img{max-width:100%;height:auto;border:none;padding:0}div[data-type="core/freeform"]:before{transition:border-color .1s linear,box-shadow .1s linear;border:1px solid #ddd;outline:1px solid transparent}@media (prefers-reduced-motion:reduce){div[data-type="core/freeform"]:before{transition-duration:0s}}div[data-type="core/freeform"].is-selected:before{border-color:#1e1e1e}div[data-type="core/freeform"] .block-editor-block-contextual-toolbar+div{margin-top:0;padding-top:0}div[data-type="core/freeform"].is-selected .block-library-rich-text__tinymce:after{content:"";display:table;clear:both}.mce-toolbar-grp .mce-btn.mce-active:hover button,.mce-toolbar-grp .mce-btn.mce-active:hover i,.mce-toolbar-grp .mce-btn.mce-active button,.mce-toolbar-grp .mce-btn.mce-active i{color:#1e1e1e}.mce-toolbar-grp .mce-rtl .mce-flow-layout-item.mce-last{margin-right:0;margin-left:8px}.mce-toolbar-grp .mce-btn i{font-style:normal}.block-library-classic__toolbar{display:none;width:auto;position:-webkit-sticky;position:sticky;z-index:31;top:0;border:1px solid #ddd;border-bottom:none;border-radius:2px;margin:0 0 8px;padding:0}div[data-type="core/freeform"].is-selected .block-library-classic__toolbar,div[data-type="core/freeform"].is-typing .block-library-classic__toolbar{display:block;border-color:#1e1e1e}.block-library-classic__toolbar .mce-tinymce{box-shadow:none}@media (min-width:600px){.block-library-classic__toolbar{padding:0}}.block-library-classic__toolbar:empty{display:block;background:#f5f5f5;border-bottom:1px solid #e2e4e7}.block-library-classic__toolbar:empty:before{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;content:attr(data-placeholder);color:#555d66;line-height:37px;padding:14px}.block-library-classic__toolbar div.mce-toolbar-grp{border-bottom:1px solid #1e1e1e}.block-library-classic__toolbar .mce-menubar,.block-library-classic__toolbar .mce-menubar>div,.block-library-classic__toolbar .mce-tinymce-inline,.block-library-classic__toolbar .mce-tinymce-inline>div,.block-library-classic__toolbar div.mce-toolbar-grp,.block-library-classic__toolbar div.mce-toolbar-grp>div{height:auto!important;width:100%!important}.block-library-classic__toolbar .mce-container-body.mce-abs-layout{overflow:visible}.block-library-classic__toolbar .mce-menubar,.block-library-classic__toolbar div.mce-toolbar-grp{position:static}.block-library-classic__toolbar .mce-toolbar-grp>div{padding:1px 3px}.block-library-classic__toolbar .mce-toolbar-grp .mce-toolbar:not(:first-child){display:none}.block-library-classic__toolbar.has-advanced-toolbar .mce-toolbar-grp .mce-toolbar{display:block}.wp-block-gallery li{list-style-type:none}.wp-block-gallery .block-editor-media-placeholder{margin-bottom:12px;padding:12px}.wp-block-gallery .block-editor-media-placeholder .components-placeholder__label{display:none}.wp-block-gallery .block-editor-media-placeholder .components-button{margin-bottom:0}figure.wp-block-gallery{display:block;margin:0}.blocks-gallery-grid.blocks-gallery-grid{padding-left:0;margin-left:0;margin-bottom:0}.blocks-gallery-item figure:not(.is-selected):focus,.blocks-gallery-item img:focus{outline:none}.blocks-gallery-item figure.is-selected{box-shadow:0 0 0 1px #fff,0 0 0 3px #007cba;box-shadow:0 0 0 1px #fff,0 0 0 3px var(--wp-admin-theme-color);border-radius:2px;outline:2px solid transparent}.blocks-gallery-item figure.is-selected img{border-radius:2px}.blocks-gallery-item figure.is-transient img{opacity:.3}.blocks-gallery-item .is-selected .block-library-gallery-item__inline-menu{display:inline-flex}.blocks-gallery-item .block-editor-media-placeholder{margin:0;height:100%}.blocks-gallery-item .block-editor-media-placeholder .components-placeholder__label{display:flex}.block-library-gallery-item__inline-menu{display:none;position:absolute;top:-2px;margin:8px;z-index:20;transition:box-shadow .2s ease-out;border-radius:2px;background:#fff;border:1px solid #1e1e1e}@media (prefers-reduced-motion:reduce){.block-library-gallery-item__inline-menu{transition-duration:0s}}.block-library-gallery-item__inline-menu:hover{box-shadow:0 2px 6px rgba(0,0,0,.05)}@media (min-width:600px){.columns-7 .block-library-gallery-item__inline-menu,.columns-8 .block-library-gallery-item__inline-menu{padding:2px}}.block-library-gallery-item__inline-menu .components-button.has-icon:not(:focus){border:none;box-shadow:none}@media (min-width:600px){.columns-7 .block-library-gallery-item__inline-menu .components-button.has-icon,.columns-8 .block-library-gallery-item__inline-menu .components-button.has-icon{padding:0;width:inherit;height:inherit}}.block-library-gallery-item__inline-menu.is-left{left:-2px}.block-library-gallery-item__inline-menu.is-right{right:-2px}.blocks-gallery-item .components-spinner{position:absolute;top:50%;left:50%;margin-top:-9px;margin-left:-9px}.wp-block-group .block-editor-block-list__insertion-point{left:0;right:0}.wp-block-group>.wp-block-group__inner-container>[data-align=full]{margin-left:auto;margin-right:auto}.wp-block-group.has-background>.wp-block-group__inner-container>[data-align=full]{margin-left:-30px;width:calc(100% + 60px)}[data-align=full] .wp-block-group>.wp-block-group__inner-container>.wp-block{padding-left:14px;padding-right:14px}@media (min-width:600px){[data-align=full] .wp-block-group>.wp-block-group__inner-container>.wp-block{padding-left:0;padding-right:0}}[data-align=full] .wp-block-group>.wp-block-group__inner-container>[data-align=full]{padding-right:0;padding-left:0;left:0;width:100%;max-width:none}[data-align=full] .wp-block-group.has-background>.wp-block-group__inner-container>[data-align=full]{width:calc(100% + 60px)}[data-type="core/group"].is-selected .block-list-appender{margin-left:0;margin-right:0}[data-type="core/group"].is-selected .has-background .block-list-appender{margin-top:18px;margin-bottom:18px}.block-library-heading-level-dropdown .components-popover__content{min-width:230px}.block-library-heading-level-dropdown .components-popover__content>div{padding:0}.block-library-heading-level-toolbar{border:none}.wp-block-html{margin-bottom:28px}.wp-block-html .block-library-html__preview-overlay{position:absolute;width:100%;height:100%;top:0;left:0}.wp-block-html .block-editor-plain-text{font-family:Menlo,Consolas,monaco,monospace;color:#1e1e1e;padding:.8em 1em;border:1px solid #ddd;border-radius:4px;max-height:250px;font-size:16px}@media (min-width:600px){.wp-block-html .block-editor-plain-text{font-size:13px}}.wp-block-html .block-editor-plain-text:focus{box-shadow:none}figure.wp-block-image:not(.wp-block){margin:0}.wp-block-image{position:relative}.wp-block-image .is-applying img,.wp-block-image.is-transient img{opacity:.3}.wp-block-image figcaption img{display:inline}.wp-block-image .components-spinner{position:absolute;top:50%;left:50%;margin-top:-9px;margin-left:-9px}.wp-block-image .components-resizable-box__container{display:inline-block}.wp-block-image .components-resizable-box__container img{display:block;width:inherit;height:inherit}.block-editor-block-list__block[data-type="core/image"] .block-editor-block-toolbar .block-editor-url-input__button-modal{position:absolute;left:0;right:0;margin:-1px 0}@media (min-width:600px){.block-editor-block-list__block[data-type="core/image"] .block-editor-block-toolbar .block-editor-url-input__button-modal{margin:-1px}}[data-align=full]>.wp-block-image img,[data-align=wide]>.wp-block-image img{width:100%}.wp-block[data-align=center]>.wp-block-image,.wp-block[data-align=left]>.wp-block-image,.wp-block[data-align=right]>.wp-block-image{display:table}.wp-block[data-align=center]>.wp-block-image>figcaption,.wp-block[data-align=left]>.wp-block-image>figcaption,.wp-block[data-align=right]>.wp-block-image>figcaption{display:table-caption;caption-side:bottom}.wp-block[data-align=left]>.wp-block-image{margin:.5em 1em .5em 0}.wp-block[data-align=right]>.wp-block-image{margin:.5em 0 .5em 1em}.wp-block[data-align=center]>.wp-block-image{margin-left:auto;margin-right:auto;text-align:center}.wp-block-image__crop-area{position:relative;max-width:100%;width:100%}.wp-block-image__crop-icon{padding:0 8px;min-width:48px;display:flex;justify-content:center;align-items:center}.wp-block-image__crop-icon svg{fill:currentColor}.wp-block-image__zoom .components-popover__content{overflow:visible}.wp-block-image__zoom .components-range-control{flex:1}.wp-block-image__zoom .components-base-control__field{display:flex;margin-bottom:0}.wp-block-image__aspect-ratio{height:46px;margin-bottom:-8px;display:flex;align-items:center}.wp-block-image__aspect-ratio .components-button{width:36px;padding-left:0;padding-right:0}.wp-block-latest-comments.has-avatars .avatar{margin-right:10px}.wp-block-latest-comments__comment-excerpt p{font-size:14px;line-height:1.8;margin:5px 0 20px;padding-top:0}.wp-block-latest-comments.has-avatars .wp-block-latest-comments__comment{min-height:36px}.block-editor .wp-block-latest-posts{padding-left:2.5em}.block-editor .wp-block-latest-posts.is-grid{padding-left:0}.wp-block-latest-posts li a>div{display:inline}.edit-post-visual-editor .wp-block-latest-posts.is-grid li{margin-bottom:20px}ol.has-background.has-background,ul.has-background.has-background{padding:1.25em 2.375em}.wp-block-media-text .__resizable_base__{-ms-grid-column:1;-ms-grid-column-span:2;grid-column:1/span 2;-ms-grid-row:2;grid-row:2}.wp-block-media-text .editor-media-container__resizer{width:100%!important}.wp-block-media-text.is-image-fill .editor-media-container__resizer{height:100%!important}.wp-block-media-text>.block-editor-block-list__layout>.block-editor-block-list__block{max-width:unset}.block-editor-block-list__block[data-type="core/more"]{max-width:100%;text-align:center;margin-top:28px;margin-bottom:28px}.block-editor .wp-block-more{display:block;text-align:center;white-space:nowrap}.block-editor .wp-block-more input[type=text]{position:relative;font-size:13px;text-transform:uppercase;font-weight:600;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;color:#757575;border:none;box-shadow:none;white-space:nowrap;text-align:center;margin:0;border-radius:4px;background:#fff;padding:6px 8px;height:24px;max-width:100%}.block-editor .wp-block-more input[type=text]:focus{box-shadow:none}.block-editor .wp-block-more:before{content:"";position:absolute;top:50%;left:0;right:0;border-top:3px dashed #ccc}.editor-styles-wrapper .wp-block-navigation ol,.editor-styles-wrapper .wp-block-navigation ul{margin-bottom:0;margin-left:0;padding-left:0}.editor-styles-wrapper .wp-block-navigation .block-editor-block-list__block{margin:0}.wp-block-navigation .block-list-appender{margin:0;display:flex;align-items:center}.wp-block-navigation.is-vertical .block-list-appender{margin:8px}.wp-block-navigation__inserter-content{padding:16px}.wp-block-navigation__container{min-height:46px}.wp-block-navigation__container.is-parent-of-selected-block{visibility:visible;opacity:1}.has-child:hover>.wp-block-navigation__container,.has-child>.wp-block-navigation__container{opacity:0;visibility:hidden}.has-child.has-child-selected>.wp-block-navigation__container,.has-child.is-selected>.wp-block-navigation__container,.is-dragging-components-draggable .has-child.is-dragging-within>.wp-block-navigation__container{opacity:1;visibility:visible}.is-dragging-components-draggable .wp-block-navigation-link>.wp-block-navigation__container{opacity:1;visibility:hidden}.is-dragging-components-draggable .wp-block-navigation-link>.wp-block-navigation__container .block-editor-block-draggable-chip-wrapper{visibility:visible}.block-library-colors-selector{width:auto}.block-library-colors-selector .block-library-colors-selector__toggle{display:block;margin:0 auto;padding:3px;width:auto}.block-library-colors-selector .block-library-colors-selector__icon-container{height:30px;position:relative;margin:0 auto;padding:3px;display:flex;align-items:center;border-radius:4px}.block-library-colors-selector .block-library-colors-selector__state-selection{margin-left:auto;margin-right:auto;border-radius:11px;box-shadow:inset 0 0 0 1px rgba(0,0,0,.2);width:22px;min-width:22px;height:22px;min-height:22px;line-height:20px;padding:2px}.block-library-colors-selector .block-library-colors-selector__state-selection>svg{min-width:auto!important}.block-library-colors-selector .block-library-colors-selector__state-selection.has-text-color>svg,.block-library-colors-selector .block-library-colors-selector__state-selection.has-text-color>svg path{color:inherit}.block-library-colors-selector__popover .color-palette-controller-container{padding:16px}.block-library-colors-selector__popover .components-base-control__label{height:20px;line-height:20px}.block-library-colors-selector__popover .component-color-indicator{float:right;margin-top:2px}.block-library-colors-selector__popover .components-panel__body-title{display:none}.is-editing>.wp-block-navigation__container{visibility:visible;opacity:1;display:flex;flex-direction:column}.wp-block-navigation-placeholder .components-spinner{margin-top:-4px;margin-left:4px;vertical-align:middle;margin-right:7px}.wp-block-navigation-placeholder .components-custom-select-control__button{height:auto;padding:.375rem .75rem .375rem 1.5rem;min-width:13.75rem}.wp-block-navigation-placeholder .components-custom-select-control.has-menus .components-custom-select-control__item.is-create-empty-option{position:relative;margin-top:20px}.wp-block-navigation-placeholder .components-custom-select-control.has-menus .components-custom-select-control__item.is-create-empty-option:before{content:"";position:absolute;top:-10px;left:25px;right:25px;height:15px;border-top:1px solid #757575}.wp-block-navigation-placeholder .components-custom-select-control__label{margin-bottom:1rem;font-size:13px;font-weight:400}.wp-block-navigation-placeholder .components-custom-select-control__menu{margin:0;max-height:none;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px}.wp-block-navigation .block-editor-button-block-appender{justify-content:flex-start}.wp-block-navigation-link__container,.wp-block-navigation-link__field .components-text-control__input.components-text-control__input{border-radius:0;line-height:36px;min-height:36px}.wp-block-navigation-link .block-editor-block-list__layout{display:block}.wp-block-navigation-link.is-editing,.wp-block-navigation-link.is-selected{min-width:20px}.wp-block-navigation-link .block-editor-rich-text__editable.is-selected:not(.keep-placeholder-on-focus):not(:focus)[data-rich-text-placeholder]:after{display:inline-block}.wp-block-navigation-link .block-list-appender{margin:10px 16px 16px 10px}.wp-block-navigation-link__separator{margin:8px 0;border-top:1px solid #ddd}.components-popover.wp-block-navigation-link__dropdown-content{margin-top:-1px;margin-left:-4px}.wp-block-navigation-link__dropdown-content .components-popover__content>div{padding:8px 0}.wp-block-navigation .block-editor-block-list__block[data-type="core/navigation-link"]>.block-editor-block-list__insertion-point{display:none}.block-editor-block-list__block[data-type="core/nextpage"]{max-width:100%;margin-top:28px;margin-bottom:28px}.wp-block-nextpage{display:block;text-align:center;white-space:nowrap}.wp-block-nextpage>span{font-size:13px;position:relative;display:inline-block;text-transform:uppercase;font-weight:600;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;color:#757575;border-radius:4px;background:#fff;padding:6px 8px;height:24px}.wp-block-nextpage:before{content:"";position:absolute;top:50%;left:0;right:0;border-top:3px dashed #ccc}.block-editor-block-list__block[data-type="core/paragraph"].has-drop-cap:focus{min-height:auto!important}.wp-block-post-content__placeholder{height:100px;border:1px dashed;display:flex;justify-content:center;align-items:center}.wp-block-post-content__placeholder span{font-style:italic}.wp-block-post-excerpt .wp-block-post-excerpt__excerpt.is-inline{display:inline-block}.wp-block-post-author{display:flex;flex-wrap:wrap}.wp-block-post-author .wp-block-post-author__byline{font-size:.5em;margin-top:0;position:relative;font-style:normal}.wp-block-post-author .wp-block-post-author__content{flex-grow:1;flex-basis:0}.wp-block-post-author .wp-block-post-author__avatar img{margin:0}.wp-block-post-author .wp-block-post-author__avatar{margin-bottom:-8px}.wp-block-post-author .wp-block-post-author__name{margin:0;font-weight:700}.wp-block-post-author .wp-block-post-author__bio{margin:0 0 8px;font-size:.7em}.wp-block[data-align=left]>.wp-block-pullquote p,.wp-block[data-align=right]>.wp-block-pullquote p{font-size:20px}.wp-block-pullquote blockquote p{font-size:28px;line-height:1.6}.wp-block-pullquote.is-style-solid-color blockquote p{font-size:32px}.wp-block-pullquote.is-style-solid-color .wp-block-pullquote__citation{text-transform:none;font-style:normal}.wp-block-pullquote .wp-block-pullquote__citation{color:inherit}.wp-block-quote__citation{font-size:13px}.block-editor .wp-block-rss{padding-left:2.5em}.block-editor .wp-block-rss.is-grid{padding-left:0}.wp-block-rss li a>div{display:inline}.wp-block-rss__placeholder-form{display:flex;align-items:stretch}.wp-block-rss__placeholder-form>*{margin-bottom:8px}@media (min-width:782px){.wp-block-rss__placeholder-form>*{margin-bottom:0}}.wp-block-rss__placeholder-input{display:flex;align-items:stretch;flex-grow:1}.wp-block-rss__placeholder-input .components-base-control__field{display:flex;align-items:stretch;flex-grow:1;margin:0 8px 0 0}.wp-block-search .wp-block-search__input{padding:8px}.wp-block-search.wp-block-search__button-inside .wp-block-search__inside-wrapper{padding:4px}.wp-block-search.wp-block-search__button-inside .wp-block-search__inside-wrapper,.wp-block-search .wp-block-search__input{border-radius:2px;border:1px solid #949494;color:rgba(30,30,30,.62);font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;background-color:#fff}.wp-block-search.wp-block-search__button-inside .wp-block-search__inside-wrapper:focus,.wp-block-search .wp-block-search__input:focus{outline:none}.wp-block-search .wp-block-search__button{background:#f7f7f7;border-radius:2px;border:1px solid #ccc;box-shadow:inset 0 -1px 0 #ccc;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;padding:6px 10px;color:#32373c}.wp-block-search__components-button-group{margin-top:10px}.block-editor-block-list__block[data-type="core/separator"]{padding-top:.1px;padding-bottom:.1px}.wp-block-shortcode{display:flex;flex-direction:column;padding:14px;font-size:13px;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;margin-bottom:28px}.wp-block-shortcode label{display:flex;align-items:center;white-space:nowrap;font-weight:600;flex-shrink:0}.wp-block-shortcode .block-editor-plain-text{max-height:250px}.wp-block-shortcode .dashicon{margin-right:8px}.block-editor .blocks-shortcode__textarea,.blocks-shortcode__textarea{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;padding:6px 8px;box-shadow:0 0 0 transparent;transition:box-shadow .1s linear;border-radius:2px;border:1px solid #757575;font-size:16px;line-height:normal}@media (prefers-reduced-motion:reduce){.block-editor .blocks-shortcode__textarea,.blocks-shortcode__textarea{transition-duration:0s}}@media (min-width:600px){.block-editor .blocks-shortcode__textarea,.blocks-shortcode__textarea{font-size:13px;line-height:normal}}.block-editor .blocks-shortcode__textarea:focus,.blocks-shortcode__textarea:focus{border-color:#007cba;border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 .5px #007cba;box-shadow:0 0 0 .5px var(--wp-admin-theme-color);outline:2px solid transparent}.block-editor .blocks-shortcode__textarea::-webkit-input-placeholder,.blocks-shortcode__textarea::-webkit-input-placeholder{color:rgba(30,30,30,.62)}.block-editor .blocks-shortcode__textarea::-moz-placeholder,.blocks-shortcode__textarea::-moz-placeholder{opacity:1;color:rgba(30,30,30,.62)}.block-editor .blocks-shortcode__textarea:-ms-input-placeholder,.blocks-shortcode__textarea:-ms-input-placeholder{color:rgba(30,30,30,.62)}.is-dark-theme .block-editor .blocks-shortcode__textarea::-webkit-input-placeholder,.is-dark-theme .blocks-shortcode__textarea::-webkit-input-placeholder{color:hsla(0,0%,100%,.65)}.is-dark-theme .block-editor .blocks-shortcode__textarea::-moz-placeholder,.is-dark-theme .blocks-shortcode__textarea::-moz-placeholder{opacity:1;color:hsla(0,0%,100%,.65)}.is-dark-theme .block-editor .blocks-shortcode__textarea:-ms-input-placeholder,.is-dark-theme .blocks-shortcode__textarea:-ms-input-placeholder{color:hsla(0,0%,100%,.65)}.wp-block[data-align=center]>.wp-block-site-logo{margin-left:auto;margin-right:auto;text-align:center}.wp-block-site-logo.is-resized{display:table}.wp-block-site-logo .custom-logo-link{cursor:inherit}.wp-block-site-logo .custom-logo-link:focus{box-shadow:none}.wp-block-site-logo .custom-logo-link.is-transient img{opacity:.3}.wp-block-site-logo img{display:block;max-width:100%}.wp-block-social-links .wp-social-link button{color:currentColor;padding:6px}.wp-block-social-links.is-style-pill-shape .wp-social-link button{padding-left:16px;padding-right:16px}.wp-block-social-links div.block-editor-url-input{display:inline-block;margin-left:8px}.editor-styles-wrapper .wp-block-social-link{margin:0 8px 8px 0}.editor-styles-wrapper .wp-block-social-link.is-hovered,.editor-styles-wrapper .wp-block-social-link.is-selected{transform:none}.editor-styles-wrapper .wp-block-social-links{padding:0}.wp-block-social-links__social-placeholder{display:flex}.wp-block-social-links__social-placeholder .wp-block-social-link{display:inline-flex;align-items:center;justify-content:center;margin:0 8px 8px 0;width:36px;height:36px;border-radius:50%;opacity:.8}.is-style-logos-only .wp-block-social-links__social-placeholder .wp-block-social-link:before{content:"";display:block;width:18px;height:18px;border-radius:50%;opacity:.8;background:currentColor}.is-style-pill-shape .wp-block-social-links__social-placeholder .wp-block-social-link{border-radius:9999px;padding-left:28px;padding-right:28px}.wp-block-social-links .block-list-appender{margin:0 0 8px;display:flex;align-items:center}.wp-block[data-align=center]>.wp-block-social-links{justify-content:center}.block-editor-block-preview__content .wp-social-link:disabled{opacity:1}[data-type="core/social-links"]:not(.is-selected):not(.has-child-selected) .wp-block-social-links{min-height:36px}.wp-social-link.wp-social-link__is-incomplete{opacity:.5}@media (prefers-reduced-motion:reduce){.wp-social-link.wp-social-link__is-incomplete{transition-duration:0s}}.wp-block-social-links .is-selected .wp-social-link__is-incomplete,.wp-social-link.wp-social-link__is-incomplete:focus,.wp-social-link.wp-social-link__is-incomplete:hover{opacity:1}[data-type="core/social-links"] .wp-social-link:focus{opacity:1;box-shadow:0 0 0 2px #fff,0 0 0 4px #007cba;box-shadow:0 0 0 2px #fff,0 0 0 4px var(--wp-admin-theme-color);outline:2px solid transparent}.block-editor-block-list__layout .block-editor-block-list__block[data-type="core/social-link"]:not([contenteditable]):focus:after,.is-navigate-mode .block-editor-block-list__layout .block-editor-block-list__block[data-type="core/social-link"].is-selected:after{right:8px}.block-editor-block-list__block[data-type="core/spacer"]:before{content:"";display:block;position:absolute;width:100%;height:24px;transform:translateY(-12px)}.block-library-spacer__resize-container.has-show-handle{background:#f0f0f0}.is-dark-theme .block-library-spacer__resize-container.has-show-handle{background:hsla(0,0%,100%,.15)}.block-library-spacer__resize-container{clear:both;margin-bottom:28px}.block-library-spacer__resize-container .components-resizable-box__handle:before{content:none}.edit-post-visual-editor p.wp-block-subhead{color:#555;font-size:1.1em;font-style:italic}.wp-block-table{margin:0}.wp-block[data-align=center]>.wp-block-table,.wp-block[data-align=left]>.wp-block-table,.wp-block[data-align=right]>.wp-block-table{height:auto}.wp-block[data-align=center]>.wp-block-table table,.wp-block[data-align=left]>.wp-block-table table,.wp-block[data-align=right]>.wp-block-table table{width:auto}.wp-block[data-align=center]>.wp-block-table td,.wp-block[data-align=center]>.wp-block-table th,.wp-block[data-align=left]>.wp-block-table td,.wp-block[data-align=left]>.wp-block-table th,.wp-block[data-align=right]>.wp-block-table td,.wp-block[data-align=right]>.wp-block-table th{word-break:break-word}.wp-block[data-align=center]>.wp-block-table{text-align:initial}.wp-block[data-align=center]>.wp-block-table table{margin:0 auto}.wp-block-table table{border-collapse:collapse}.wp-block-table td,.wp-block-table th{border:1px solid}.wp-block-table td.is-selected,.wp-block-table th.is-selected{border-color:#007cba;border-color:var(--wp-admin-theme-color);box-shadow:inset 0 0 0 1px #007cba;box-shadow:inset 0 0 0 1px var(--wp-admin-theme-color);border-style:double}.wp-block-table figcaption{color:#555;font-size:13px;text-align:center}.blocks-table__placeholder-form.blocks-table__placeholder-form{display:flex;flex-direction:column;align-items:flex-start}.blocks-table__placeholder-form.blocks-table__placeholder-form>*{margin-bottom:8px}@media (min-width:782px){.blocks-table__placeholder-form.blocks-table__placeholder-form{flex-direction:row;align-items:flex-end}.blocks-table__placeholder-form.blocks-table__placeholder-form>*{margin-bottom:0}}.blocks-table__placeholder-input{width:112px;margin-right:8px;margin-bottom:0}.blocks-table__placeholder-input input{height:36px}.blocks-table__placeholder-input .components-base-control__field{margin-bottom:0}.block-editor .wp-block-tag-cloud a{display:inline-block;margin-right:5px}.block-editor .wp-block-tag-cloud span{display:inline-block;margin-left:5px;color:#757575;text-decoration:none}.wp-block-template-part__placeholder-preview-dropdown-content .components-popover__content,.wp-block-template-part__preview-dropdown-content .components-popover__content{min-width:320px;padding:0}.wp-block-template-part__selection-preview-search-form{border-bottom:1px solid #ddd}.wp-block-template-part__selection-preview-container{background:#fff;padding-bottom:16px}.wp-block-template-part__selection-preview-container .wp-block-template-part__selection-preview-item{border-radius:2px;cursor:pointer;margin-top:16px;transition:all .05s ease-in-out;border:1px solid transparent;width:100%;background-color:#fff}.wp-block-template-part__selection-preview-container .wp-block-template-part__selection-preview-item:hover{border:1px solid #007cba;border:1px solid var(--wp-admin-theme-color)}.wp-block-template-part__selection-preview-container .wp-block-template-part__selection-preview-item:focus{box-shadow:inset 0 0 0 1px #fff,0 0 0 1.5px #007cba;box-shadow:inset 0 0 0 1px #fff,0 0 0 1.5px var(--wp-admin-theme-color);outline:2px solid transparent}.wp-block-template-part__selection-preview-container .wp-block-template-part__selection-preview-item.is-placeholder{min-height:100px}.wp-block-template-part__selection-preview-container .wp-block-template-part__selection-preview-item-title{padding:4px;font-size:12px;text-align:left}.wp-block-template-part__selection-preview-container .wp-block-template-part__selection-panel-group-header{padding:16px 16px 0}.wp-block-template-part__selection-preview-container .wp-block-template-part__selection-panel-group-content{padding:0 16px}.wp-block-template-part__selection-preview-container .wp-block-template-part__selection-panel-group-title{color:#007cba;color:var(--wp-admin-theme-color);text-transform:uppercase;font-size:11px;font-weight:500}.wp-block-template-part__block-control-group{display:flex}.wp-block-template-part__block-control-group .wp-block-template-part__name-panel{outline:1px solid transparent;padding:8px 0 8px 12px}.wp-block-template-part__block-control-group .wp-block-template-part__name-panel .components-base-control__field{align-items:center;display:flex;margin-bottom:0}.wp-block-template-part__block-control-group .wp-block-template-part__name-panel .components-base-control__label{margin-bottom:0;margin-right:8px}.is-dark-theme .is-navigate-mode .is-selected .wp-block-template-part__name-panel,.is-navigate-mode .is-selected .wp-block-template-part__name-panel{box-shadow:0 0 0 1px #007cba;box-shadow:0 0 0 1px var(--wp-admin-theme-color)}.block-editor-block-list__block[data-type="core/template-part"].has-child-selected:after,.block-editor-block-list__block[data-type="core/template-part"].is-selected:after{top:1px;bottom:1px;left:1px;right:1px;border-radius:1px}.block-editor-block-list__block[data-type="core/template-part"].is-selected:after{box-shadow:0 0 0 1.5px #007cba;box-shadow:0 0 0 1.5px var(--wp-admin-theme-color)}.is-dark-theme .block-editor-block-list__block[data-type="core/template-part"].is-selected:after{box-shadow:0 0 0 1.5px #fff}.block-editor-block-list__block[data-type="core/template-part"].has-child-selected:after{box-shadow:0 0 0 1px #ddd}.is-dark-theme .block-editor-block-list__block[data-type="core/template-part"].has-child-selected:after{box-shadow:0 0 0 1.5px #757575}.wp-block-text-columns .block-editor-rich-text__editable:focus{outline:1px solid #ddd}pre.wp-block-verse{color:#1e1e1e;white-space:nowrap;font-family:inherit;font-size:inherit;padding:1em;overflow:auto}.wp-block[data-align=center]>.wp-block-video{text-align:center}.editor-video-poster-control .components-base-control__label{display:block}.editor-video-poster-control .components-button{margin-right:8px}.block-library-video-tracks-editor{z-index:159990}.block-library-video-tracks-editor>.components-popover__content{width:360px}.block-library-video-tracks-editor__track-list-track{display:flex;place-content:space-between;align-items:baseline;padding-left:12px}.block-library-video-tracks-editor__single-track-editor-label-language{display:flex;margin-top:12px}.block-library-video-tracks-editor__single-track-editor-label-language>.components-base-control{width:50%}.block-library-video-tracks-editor__single-track-editor-label-language>.components-base-control:first-child{margin-right:16px}.block-library-video-tracks-editor__single-track-editor-kind-select{max-width:240px}.block-library-video-tracks-editor__single-track-editor-buttons-container{display:flex;place-content:space-between;margin-top:32px}.block-library-video-tracks-editor__single-track-editor-edit-track-label{margin-top:4px;margin-bottom:12px;color:#757575;text-transform:uppercase;font-size:11px;font-weight:500;display:block}.block-library-video-tracks-editor>.components-popover__content>div{padding:0}.block-library-video-tracks-editor__add-tracks-container .components-menu-group__label,.block-library-video-tracks-editor__track-list .components-menu-group__label{padding:0}.block-library-video-tracks-editor__add-tracks-container,.block-library-video-tracks-editor__single-track-editor,.block-library-video-tracks-editor__track-list{padding:12px}.block-library-video-tracks-editor__single-track-editor .components-base-control .components-base-control__label{margin-bottom:4px}.block-library-video-tracks-editor__single-track-editor .components-base-control .components-base-control__field{margin-bottom:12px}.block-library-video-tracks-editor__single-track-editor .components-base-control .components-text-control__input{margin-left:0}.block-library-video-tracks-editor__single-track-editor .components-base-control .components-input-control__label{margin-bottom:4px}.editor-styles-wrapper .wp-block.wp-block-query,.editor-styles-wrapper .wp-block.wp-block-query-loop{max-width:100%}div[data-type="core/post-featured-image"] .post-featured-image_placeholder{display:flex;flex-direction:row;align-items:flex-start;border-radius:2px;background-color:#fff;box-shadow:inset 0 0 0 1px #1e1e1e;padding:12px}div[data-type="core/post-featured-image"] .post-featured-image_placeholder svg{margin-right:12px}div[data-type="core/post-featured-image"] .post-featured-image_placeholder p{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;margin:0}div[data-type="core/post-featured-image"] img{max-width:100%;height:auto;display:block}.block-editor-block-list__layout .reusable-block-edit-panel{align-items:center;display:flex;flex-wrap:wrap;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;padding:6px 12px;border-radius:2px;background-color:#fff;box-shadow:0 0 0 1px #1e1e1e;outline:1px solid transparent}.block-editor-block-list__layout .reusable-block-edit-panel .reusable-block-edit-panel__info{margin-right:auto}.block-editor-block-list__layout .reusable-block-edit-panel .reusable-block-edit-panel__label{margin-right:8px;white-space:nowrap;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px}.block-editor-block-list__layout .reusable-block-edit-panel .reusable-block-edit-panel__title{flex:1 1 100%}.block-editor-block-list__layout .reusable-block-edit-panel .components-button.reusable-block-edit-panel__button{flex-shrink:0}@media (min-width:960px){.block-editor-block-list__layout .reusable-block-edit-panel{flex-wrap:nowrap}.block-editor-block-list__layout .reusable-block-edit-panel .reusable-block-edit-panel__title{margin:0}.block-editor-block-list__layout .reusable-block-edit-panel .components-button.reusable-block-edit-panel__button{margin:0 0 0 8px}}.reusable-block-edit-panel__title[type=text]{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;padding:6px 8px;box-shadow:0 0 0 transparent;transition:box-shadow .1s linear;border-radius:2px;border:1px solid #757575;font-size:16px;line-height:normal}@media (prefers-reduced-motion:reduce){.reusable-block-edit-panel__title[type=text]{transition-duration:0s}}@media (min-width:600px){.reusable-block-edit-panel__title[type=text]{font-size:13px;line-height:normal}}.reusable-block-edit-panel__title[type=text]:focus{border-color:#007cba;border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 .5px #007cba;box-shadow:0 0 0 .5px var(--wp-admin-theme-color);outline:2px solid transparent}.reusable-block-edit-panel__title[type=text]::-webkit-input-placeholder{color:rgba(30,30,30,.62)}.reusable-block-edit-panel__title[type=text]::-moz-placeholder{opacity:1;color:rgba(30,30,30,.62)}.reusable-block-edit-panel__title[type=text]:-ms-input-placeholder{color:rgba(30,30,30,.62)}.is-dark-theme .reusable-block-edit-panel__title[type=text]::-webkit-input-placeholder{color:hsla(0,0%,100%,.65)}.is-dark-theme .reusable-block-edit-panel__title[type=text]::-moz-placeholder{opacity:1;color:hsla(0,0%,100%,.65)}.is-dark-theme .reusable-block-edit-panel__title[type=text]:-ms-input-placeholder{color:hsla(0,0%,100%,.65)}.is-dark-theme .is-navigate-mode .is-selected .reusable-block-edit-panel,.is-navigate-mode .is-selected .reusable-block-edit-panel{box-shadow:0 0 0 1px #007cba;box-shadow:0 0 0 1px var(--wp-admin-theme-color)}:root .editor-styles-wrapper .has-pale-pink-background-color{background-color:#f78da7}:root .editor-styles-wrapper .has-vivid-red-background-color{background-color:#cf2e2e}:root .editor-styles-wrapper .has-luminous-vivid-orange-background-color{background-color:#ff6900}:root .editor-styles-wrapper .has-luminous-vivid-amber-background-color{background-color:#fcb900}:root .editor-styles-wrapper .has-light-green-cyan-background-color{background-color:#7bdcb5}:root .editor-styles-wrapper .has-vivid-green-cyan-background-color{background-color:#00d084}:root .editor-styles-wrapper .has-pale-cyan-blue-background-color{background-color:#8ed1fc}:root .editor-styles-wrapper .has-vivid-cyan-blue-background-color{background-color:#0693e3}:root .editor-styles-wrapper .has-vivid-purple-background-color{background-color:#9b51e0}:root .editor-styles-wrapper .has-white-background-color{background-color:#fff}:root .editor-styles-wrapper .has-very-light-gray-background-color{background-color:#eee}:root .editor-styles-wrapper .has-cyan-bluish-gray-background-color{background-color:#abb8c3}:root .editor-styles-wrapper .has-very-dark-gray-background-color{background-color:#313131}:root .editor-styles-wrapper .has-black-background-color{background-color:#000}:root .editor-styles-wrapper .has-pale-pink-color{color:#f78da7}:root .editor-styles-wrapper .has-vivid-red-color{color:#cf2e2e}:root .editor-styles-wrapper .has-luminous-vivid-orange-color{color:#ff6900}:root .editor-styles-wrapper .has-luminous-vivid-amber-color{color:#fcb900}:root .editor-styles-wrapper .has-light-green-cyan-color{color:#7bdcb5}:root .editor-styles-wrapper .has-vivid-green-cyan-color{color:#00d084}:root .editor-styles-wrapper .has-pale-cyan-blue-color{color:#8ed1fc}:root .editor-styles-wrapper .has-vivid-cyan-blue-color{color:#0693e3}:root .editor-styles-wrapper .has-vivid-purple-color{color:#9b51e0}:root .editor-styles-wrapper .has-white-color{color:#fff}:root .editor-styles-wrapper .has-very-light-gray-color{color:#eee}:root .editor-styles-wrapper .has-cyan-bluish-gray-color{color:#abb8c3}:root .editor-styles-wrapper .has-very-dark-gray-color{color:#313131}:root .editor-styles-wrapper .has-black-color{color:#000}:root .editor-styles-wrapper .has-vivid-cyan-blue-to-vivid-purple-gradient-background{background:linear-gradient(135deg,#0693e3,#9b51e0)}:root .editor-styles-wrapper .has-vivid-green-cyan-to-vivid-cyan-blue-gradient-background{background:linear-gradient(135deg,#00d084,#0693e3)}:root .editor-styles-wrapper .has-light-green-cyan-to-vivid-green-cyan-gradient-background{background:linear-gradient(135deg,#7adcb4,#00d082)}:root .editor-styles-wrapper .has-luminous-vivid-amber-to-luminous-vivid-orange-gradient-background{background:linear-gradient(135deg,#fcb900,#ff6900)}:root .editor-styles-wrapper .has-luminous-vivid-orange-to-vivid-red-gradient-background{background:linear-gradient(135deg,#ff6900,#cf2e2e)}:root .editor-styles-wrapper .has-very-light-gray-to-cyan-bluish-gray-gradient-background{background:linear-gradient(135deg,#eee,#a9b8c3)}:root .editor-styles-wrapper .has-cool-to-warm-spectrum-gradient-background{background:linear-gradient(135deg,#4aeadc,#9778d1 20%,#cf2aba 40%,#ee2c82 60%,#fb6962 80%,#fef84c)}:root .editor-styles-wrapper .has-blush-light-purple-gradient-background{background:linear-gradient(135deg,#ffceec,#9896f0)}:root .editor-styles-wrapper .has-blush-bordeaux-gradient-background{background:linear-gradient(135deg,#fecda5,#fe2d2d 50%,#6b003e)}:root .editor-styles-wrapper .has-purple-crush-gradient-background{background:linear-gradient(135deg,#34e2e4,#4721fb 50%,#ab1dfe)}:root .editor-styles-wrapper .has-luminous-dusk-gradient-background{background:linear-gradient(135deg,#ffcb70,#c751c0 50%,#4158d0)}:root .editor-styles-wrapper .has-hazy-dawn-gradient-background{background:linear-gradient(135deg,#faaca8,#dad0ec)}:root .editor-styles-wrapper .has-pale-ocean-gradient-background{background:linear-gradient(135deg,#fff5cb,#b6e3d4 50%,#33a7b5)}:root .editor-styles-wrapper .has-electric-grass-gradient-background{background:linear-gradient(135deg,#caf880,#71ce7e)}:root .editor-styles-wrapper .has-subdued-olive-gradient-background{background:linear-gradient(135deg,#fafae1,#67a671)}:root .editor-styles-wrapper .has-atomic-cream-gradient-background{background:linear-gradient(135deg,#fdd79a,#004a59)}:root .editor-styles-wrapper .has-nightshade-gradient-background{background:linear-gradient(135deg,#330968,#31cdcf)}:root .editor-styles-wrapper .has-midnight-gradient-background{background:linear-gradient(135deg,#020381,#2874fc)}.editor-styles-wrapper .has-small-font-size{font-size:13px}.editor-styles-wrapper .has-normal-font-size,.editor-styles-wrapper .has-regular-font-size{font-size:16px}.editor-styles-wrapper .has-medium-font-size{font-size:20px}.editor-styles-wrapper .has-large-font-size{font-size:36px}.editor-styles-wrapper .has-huge-font-size,.editor-styles-wrapper .has-larger-font-size{font-size:42px}.block-editor-block-list__block{margin-top:28px;margin-bottom:28px}#end-resizable-editor-section{display:none} \ No newline at end of file diff --git a/wp-includes/css/dist/block-library/style-rtl.css b/wp-includes/css/dist/block-library/style-rtl.css index 396b8dd08a..8956988af3 100644 --- a/wp-includes/css/dist/block-library/style-rtl.css +++ b/wp-includes/css/dist/block-library/style-rtl.css @@ -165,6 +165,10 @@ .wp-block-categories.alignright { margin-left: 2em; } +.wp-block-code code { + white-space: pre-wrap; + overflow-wrap: break-word; } + .wp-block-columns { display: flex; margin-bottom: 1.75em; diff --git a/wp-includes/css/dist/block-library/style-rtl.min.css b/wp-includes/css/dist/block-library/style-rtl.min.css index 4becdbd8eb..bda112a93c 100644 --- a/wp-includes/css/dist/block-library/style-rtl.min.css +++ b/wp-includes/css/dist/block-library/style-rtl.min.css @@ -1 +1 @@ -:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-20:#005a87}#start-resizable-editor-section{display:none}.wp-block-audio figcaption{margin-top:.5em;margin-bottom:1em}.wp-block-audio audio{width:100%;min-width:300px}.wp-block-button__link{color:#fff;background-color:#32373c;border:none;border-radius:1.55em;box-shadow:none;cursor:pointer;display:inline-block;font-size:1.125em;padding:.667em 1.333em;text-align:center;text-decoration:none;overflow-wrap:break-word}.wp-block-button__link:active,.wp-block-button__link:focus,.wp-block-button__link:hover,.wp-block-button__link:visited{color:#fff}.wp-block-button__link.aligncenter{text-align:center}.wp-block-button__link.alignright{text-align:right}.wp-block-button.is-style-squared,.wp-block-button__link.wp-block-button.is-style-squared{border-radius:0}.wp-block-button.no-border-radius,.wp-block-button__link.no-border-radius{border-radius:0!important}.is-style-outline>.wp-block-button__link,.wp-block-button__link.is-style-outline{border:2px solid}.is-style-outline>.wp-block-button__link:not(.has-text-color),.wp-block-button__link.is-style-outline:not(.has-text-color){color:#32373c}.is-style-outline>.wp-block-button__link:not(.has-background),.wp-block-button__link.is-style-outline:not(.has-background){background-color:transparent}.wp-block-buttons .wp-block-button{display:inline-block;margin-left:.5em;margin-bottom:.5em}.wp-block-buttons .wp-block-button:last-child{margin-left:0}.wp-block-buttons.alignright .wp-block-button{margin-right:0;margin-left:.5em}.wp-block-buttons.alignright .wp-block-button:first-child{margin-right:0}.wp-block-buttons.alignleft .wp-block-button{margin-left:0;margin-right:.5em}.wp-block-buttons.alignleft .wp-block-button:last-child{margin-left:0}.wp-block-button.aligncenter,.wp-block-buttons.aligncenter,.wp-block-calendar{text-align:center}.wp-block-calendar tbody td,.wp-block-calendar th{padding:.25em;border:1px solid #ddd}.wp-block-calendar tfoot td{border:none}.wp-block-calendar table{width:100%;border-collapse:collapse}.wp-block-calendar table th{font-weight:400;background:#ddd}.wp-block-calendar a{text-decoration:underline}.wp-block-calendar table caption,.wp-block-calendar table tbody{color:#40464d}.wp-block-categories.alignleft{margin-right:2em}.wp-block-categories.alignright{margin-left:2em}.wp-block-columns{display:flex;margin-bottom:1.75em;flex-wrap:wrap}@media (min-width:782px){.wp-block-columns{flex-wrap:nowrap}}.wp-block-columns.has-background{padding:1.25em 2.375em}.wp-block-columns.are-vertically-aligned-top{align-items:flex-start}.wp-block-columns.are-vertically-aligned-center{align-items:center}.wp-block-columns.are-vertically-aligned-bottom{align-items:flex-end}.wp-block-column{flex-grow:1;min-width:0;word-break:break-word;overflow-wrap:break-word}@media (max-width:599px){.wp-block-column{flex-basis:100%!important}}@media (min-width:600px) and (max-width:781px){.wp-block-column:not(:only-child){flex-basis:calc(50% - 1em)!important;flex-grow:0}.wp-block-column:nth-child(2n){margin-right:2em}}@media (min-width:782px){.wp-block-column{flex-basis:0;flex-grow:1}.wp-block-column[style*=flex-basis]{flex-grow:0}.wp-block-column:not(:first-child){margin-right:2em}}.wp-block-column.is-vertically-aligned-top{align-self:flex-start}.wp-block-column.is-vertically-aligned-center{-ms-grid-row-align:center;align-self:center}.wp-block-column.is-vertically-aligned-bottom{align-self:flex-end}.wp-block-column.is-vertically-aligned-bottom,.wp-block-column.is-vertically-aligned-center,.wp-block-column.is-vertically-aligned-top{width:100%}.wp-block-cover,.wp-block-cover-image{position:relative;background-size:cover;background-position:50%;min-height:430px;height:100%;width:100%;display:flex;justify-content:center;align-items:center;padding:1em;box-sizing:border-box}.wp-block-cover-image.has-parallax,.wp-block-cover.has-parallax{background-attachment:fixed}@supports (-webkit-overflow-scrolling:touch){.wp-block-cover-image.has-parallax,.wp-block-cover.has-parallax{background-attachment:scroll}}@media (prefers-reduced-motion:reduce){.wp-block-cover-image.has-parallax,.wp-block-cover.has-parallax{background-attachment:scroll}}.wp-block-cover-image.is-repeated,.wp-block-cover.is-repeated{background-repeat:repeat;background-size:auto}.wp-block-cover-image.has-background-dim:not([class*=-background-color]),.wp-block-cover.has-background-dim:not([class*=-background-color]){background-color:#000}.wp-block-cover-image.has-background-dim:before,.wp-block-cover.has-background-dim:before{content:"";background-color:inherit}.wp-block-cover-image.has-background-dim:not(.has-background-gradient):before,.wp-block-cover-image .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim:not(.has-background-gradient):before,.wp-block-cover .wp-block-cover__gradient-background{position:absolute;top:0;right:0;bottom:0;left:0;z-index:1;opacity:.5}.wp-block-cover-image.has-background-dim.has-background-dim-10 .wp-block-cover__gradient-background,.wp-block-cover-image.has-background-dim.has-background-dim-10:not(.has-background-gradient):before,.wp-block-cover.has-background-dim.has-background-dim-10 .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim.has-background-dim-10:not(.has-background-gradient):before{opacity:.1}.wp-block-cover-image.has-background-dim.has-background-dim-20 .wp-block-cover__gradient-background,.wp-block-cover-image.has-background-dim.has-background-dim-20:not(.has-background-gradient):before,.wp-block-cover.has-background-dim.has-background-dim-20 .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim.has-background-dim-20:not(.has-background-gradient):before{opacity:.2}.wp-block-cover-image.has-background-dim.has-background-dim-30 .wp-block-cover__gradient-background,.wp-block-cover-image.has-background-dim.has-background-dim-30:not(.has-background-gradient):before,.wp-block-cover.has-background-dim.has-background-dim-30 .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim.has-background-dim-30:not(.has-background-gradient):before{opacity:.3}.wp-block-cover-image.has-background-dim.has-background-dim-40 .wp-block-cover__gradient-background,.wp-block-cover-image.has-background-dim.has-background-dim-40:not(.has-background-gradient):before,.wp-block-cover.has-background-dim.has-background-dim-40 .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim.has-background-dim-40:not(.has-background-gradient):before{opacity:.4}.wp-block-cover-image.has-background-dim.has-background-dim-50 .wp-block-cover__gradient-background,.wp-block-cover-image.has-background-dim.has-background-dim-50:not(.has-background-gradient):before,.wp-block-cover.has-background-dim.has-background-dim-50 .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim.has-background-dim-50:not(.has-background-gradient):before{opacity:.5}.wp-block-cover-image.has-background-dim.has-background-dim-60 .wp-block-cover__gradient-background,.wp-block-cover-image.has-background-dim.has-background-dim-60:not(.has-background-gradient):before,.wp-block-cover.has-background-dim.has-background-dim-60 .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim.has-background-dim-60:not(.has-background-gradient):before{opacity:.6}.wp-block-cover-image.has-background-dim.has-background-dim-70 .wp-block-cover__gradient-background,.wp-block-cover-image.has-background-dim.has-background-dim-70:not(.has-background-gradient):before,.wp-block-cover.has-background-dim.has-background-dim-70 .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim.has-background-dim-70:not(.has-background-gradient):before{opacity:.7}.wp-block-cover-image.has-background-dim.has-background-dim-80 .wp-block-cover__gradient-background,.wp-block-cover-image.has-background-dim.has-background-dim-80:not(.has-background-gradient):before,.wp-block-cover.has-background-dim.has-background-dim-80 .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim.has-background-dim-80:not(.has-background-gradient):before{opacity:.8}.wp-block-cover-image.has-background-dim.has-background-dim-90 .wp-block-cover__gradient-background,.wp-block-cover-image.has-background-dim.has-background-dim-90:not(.has-background-gradient):before,.wp-block-cover.has-background-dim.has-background-dim-90 .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim.has-background-dim-90:not(.has-background-gradient):before{opacity:.9}.wp-block-cover-image.has-background-dim.has-background-dim-100 .wp-block-cover__gradient-background,.wp-block-cover-image.has-background-dim.has-background-dim-100:not(.has-background-gradient):before,.wp-block-cover.has-background-dim.has-background-dim-100 .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim.has-background-dim-100:not(.has-background-gradient):before{opacity:1}.wp-block-cover-image.alignleft,.wp-block-cover-image.alignright,.wp-block-cover.alignleft,.wp-block-cover.alignright{max-width:290px;width:100%}.wp-block-cover-image:after,.wp-block-cover:after{display:block;content:"";font-size:0;min-height:inherit}@supports ((position:-webkit-sticky) or (position:sticky)){.wp-block-cover-image:after,.wp-block-cover:after{content:none}}.wp-block-cover-image.aligncenter,.wp-block-cover-image.alignleft,.wp-block-cover-image.alignright,.wp-block-cover.aligncenter,.wp-block-cover.alignleft,.wp-block-cover.alignright{display:flex}.wp-block-cover-image .wp-block-cover__inner-container,.wp-block-cover .wp-block-cover__inner-container{width:100%;z-index:1;color:#fff}.wp-block-cover-image .wp-block-subhead:not(.has-text-color),.wp-block-cover-image h1:not(.has-text-color),.wp-block-cover-image h2:not(.has-text-color),.wp-block-cover-image h3:not(.has-text-color),.wp-block-cover-image h4:not(.has-text-color),.wp-block-cover-image h5:not(.has-text-color),.wp-block-cover-image h6:not(.has-text-color),.wp-block-cover-image p:not(.has-text-color),.wp-block-cover .wp-block-subhead:not(.has-text-color),.wp-block-cover h1:not(.has-text-color),.wp-block-cover h2:not(.has-text-color),.wp-block-cover h3:not(.has-text-color),.wp-block-cover h4:not(.has-text-color),.wp-block-cover h5:not(.has-text-color),.wp-block-cover h6:not(.has-text-color),.wp-block-cover p:not(.has-text-color){color:inherit}.wp-block-cover-image.is-position-top-left,.wp-block-cover.is-position-top-left{align-items:flex-start;justify-content:flex-start}.wp-block-cover-image.is-position-top-center,.wp-block-cover.is-position-top-center{align-items:flex-start;justify-content:center}.wp-block-cover-image.is-position-top-right,.wp-block-cover.is-position-top-right{align-items:flex-start;justify-content:flex-end}.wp-block-cover-image.is-position-center-left,.wp-block-cover.is-position-center-left{align-items:center;justify-content:flex-start}.wp-block-cover-image.is-position-center-center,.wp-block-cover.is-position-center-center{align-items:center;justify-content:center}.wp-block-cover-image.is-position-center-right,.wp-block-cover.is-position-center-right{align-items:center;justify-content:flex-end}.wp-block-cover-image.is-position-bottom-left,.wp-block-cover.is-position-bottom-left{align-items:flex-end;justify-content:flex-start}.wp-block-cover-image.is-position-bottom-center,.wp-block-cover.is-position-bottom-center{align-items:flex-end;justify-content:center}.wp-block-cover-image.is-position-bottom-right,.wp-block-cover.is-position-bottom-right{align-items:flex-end;justify-content:flex-end}.wp-block-cover-image.has-custom-content-position.has-custom-content-position .wp-block-cover__inner-container,.wp-block-cover.has-custom-content-position.has-custom-content-position .wp-block-cover__inner-container{margin:0;width:auto}.wp-block-cover__video-background{position:absolute;top:50%;right:50%;transform:translateX(50%) translateY(-50%);width:100%;height:100%;z-index:0;object-fit:cover}.wp-block-cover-image-text,.wp-block-cover-text,section.wp-block-cover-image h2{color:#fff}.wp-block-cover-image-text a,.wp-block-cover-image-text a:active,.wp-block-cover-image-text a:focus,.wp-block-cover-image-text a:hover,.wp-block-cover-text a,.wp-block-cover-text a:active,.wp-block-cover-text a:focus,.wp-block-cover-text a:hover,section.wp-block-cover-image h2 a,section.wp-block-cover-image h2 a:active,section.wp-block-cover-image h2 a:focus,section.wp-block-cover-image h2 a:hover{color:#fff}.wp-block-cover-image .wp-block-cover.has-left-content{justify-content:flex-start}.wp-block-cover-image .wp-block-cover.has-right-content{justify-content:flex-end}.wp-block-cover-image.has-left-content .wp-block-cover-image-text,.wp-block-cover.has-left-content .wp-block-cover-text,section.wp-block-cover-image.has-left-content>h2{margin-right:0;text-align:right}.wp-block-cover-image.has-right-content .wp-block-cover-image-text,.wp-block-cover.has-right-content .wp-block-cover-text,section.wp-block-cover-image.has-right-content>h2{margin-left:0;text-align:left}.wp-block-cover-image .wp-block-cover-image-text,.wp-block-cover .wp-block-cover-text,section.wp-block-cover-image>h2{font-size:2em;line-height:1.25;z-index:1;margin-bottom:0;max-width:580px;padding:.44em;text-align:center}.wp-block-embed.alignleft,.wp-block-embed.alignright,.wp-block[data-align=left]>[data-type="core/embed"],.wp-block[data-align=right]>[data-type="core/embed"]{max-width:360px;width:100%}.wp-block-embed.alignleft .wp-block-embed__wrapper,.wp-block-embed.alignright .wp-block-embed__wrapper,.wp-block[data-align=left]>[data-type="core/embed"] .wp-block-embed__wrapper,.wp-block[data-align=right]>[data-type="core/embed"] .wp-block-embed__wrapper{min-width:280px}.wp-block-embed{margin-bottom:1em}.wp-block-embed figcaption{margin-top:.5em;margin-bottom:1em}.wp-block-embed iframe{max-width:100%}.wp-block-embed__wrapper{position:relative}.wp-embed-responsive .wp-has-aspect-ratio .wp-block-embed__wrapper:before{content:"";display:block;padding-top:50%}.wp-embed-responsive .wp-has-aspect-ratio iframe{position:absolute;top:0;left:0;bottom:0;right:0;height:100%;width:100%}.wp-embed-responsive .wp-embed-aspect-21-9 .wp-block-embed__wrapper:before{padding-top:42.85%}.wp-embed-responsive .wp-embed-aspect-18-9 .wp-block-embed__wrapper:before{padding-top:50%}.wp-embed-responsive .wp-embed-aspect-16-9 .wp-block-embed__wrapper:before{padding-top:56.25%}.wp-embed-responsive .wp-embed-aspect-4-3 .wp-block-embed__wrapper:before{padding-top:75%}.wp-embed-responsive .wp-embed-aspect-1-1 .wp-block-embed__wrapper:before{padding-top:100%}.wp-embed-responsive .wp-embed-aspect-9-16 .wp-block-embed__wrapper:before{padding-top:177.77%}.wp-embed-responsive .wp-embed-aspect-1-2 .wp-block-embed__wrapper:before{padding-top:200%}.wp-block-file{margin-bottom:1.5em}.wp-block-file.aligncenter{text-align:center}.wp-block-file.alignright{text-align:right}.wp-block-file .wp-block-file__button{background:#32373c;border-radius:2em;color:#fff;font-size:.8em;padding:.5em 1em}.wp-block-file a.wp-block-file__button{text-decoration:none}.wp-block-file a.wp-block-file__button:active,.wp-block-file a.wp-block-file__button:focus,.wp-block-file a.wp-block-file__button:hover,.wp-block-file a.wp-block-file__button:visited{box-shadow:none;color:#fff;opacity:.85;text-decoration:none}.wp-block-file *+.wp-block-file__button{margin-right:.75em}.blocks-gallery-grid,.wp-block-gallery{display:flex;flex-wrap:wrap;list-style-type:none;padding:0;margin:0}.blocks-gallery-grid .blocks-gallery-image,.blocks-gallery-grid .blocks-gallery-item,.wp-block-gallery .blocks-gallery-image,.wp-block-gallery .blocks-gallery-item{margin:0 0 1em 1em;display:flex;flex-grow:1;flex-direction:column;justify-content:center;position:relative;width:calc(50% - 1em)}.blocks-gallery-grid .blocks-gallery-image:nth-of-type(2n),.blocks-gallery-grid .blocks-gallery-item:nth-of-type(2n),.wp-block-gallery .blocks-gallery-image:nth-of-type(2n),.wp-block-gallery .blocks-gallery-item:nth-of-type(2n){margin-left:0}.blocks-gallery-grid .blocks-gallery-image figure,.blocks-gallery-grid .blocks-gallery-item figure,.wp-block-gallery .blocks-gallery-image figure,.wp-block-gallery .blocks-gallery-item figure{margin:0;height:100%}@supports ((position:-webkit-sticky) or (position:sticky)){.blocks-gallery-grid .blocks-gallery-image figure,.blocks-gallery-grid .blocks-gallery-item figure,.wp-block-gallery .blocks-gallery-image figure,.wp-block-gallery .blocks-gallery-item figure{display:flex;align-items:flex-end;justify-content:flex-start}}.blocks-gallery-grid .blocks-gallery-image img,.blocks-gallery-grid .blocks-gallery-item img,.wp-block-gallery .blocks-gallery-image img,.wp-block-gallery .blocks-gallery-item img{display:block;max-width:100%;height:auto;width:100%}@supports ((position:-webkit-sticky) or (position:sticky)){.blocks-gallery-grid .blocks-gallery-image img,.blocks-gallery-grid .blocks-gallery-item img,.wp-block-gallery .blocks-gallery-image img,.wp-block-gallery .blocks-gallery-item img{width:auto}}.blocks-gallery-grid .blocks-gallery-image figcaption,.blocks-gallery-grid .blocks-gallery-item figcaption,.wp-block-gallery .blocks-gallery-image figcaption,.wp-block-gallery .blocks-gallery-item figcaption{position:absolute;bottom:0;width:100%;max-height:100%;overflow:auto;padding:3em .77em .7em;color:#fff;text-align:center;font-size:.8em;background:linear-gradient(0deg,rgba(0,0,0,.7),rgba(0,0,0,.3) 70%,transparent);box-sizing:border-box;margin:0}.blocks-gallery-grid .blocks-gallery-image figcaption img,.blocks-gallery-grid .blocks-gallery-item figcaption img,.wp-block-gallery .blocks-gallery-image figcaption img,.wp-block-gallery .blocks-gallery-item figcaption img{display:inline}.blocks-gallery-grid figcaption,.wp-block-gallery figcaption{flex-grow:1}.blocks-gallery-grid.is-cropped .blocks-gallery-image a,.blocks-gallery-grid.is-cropped .blocks-gallery-image img,.blocks-gallery-grid.is-cropped .blocks-gallery-item a,.blocks-gallery-grid.is-cropped .blocks-gallery-item img,.wp-block-gallery.is-cropped .blocks-gallery-image a,.wp-block-gallery.is-cropped .blocks-gallery-image img,.wp-block-gallery.is-cropped .blocks-gallery-item a,.wp-block-gallery.is-cropped .blocks-gallery-item img{width:100%}@supports ((position:-webkit-sticky) or (position:sticky)){.blocks-gallery-grid.is-cropped .blocks-gallery-image a,.blocks-gallery-grid.is-cropped .blocks-gallery-image img,.blocks-gallery-grid.is-cropped .blocks-gallery-item a,.blocks-gallery-grid.is-cropped .blocks-gallery-item img,.wp-block-gallery.is-cropped .blocks-gallery-image a,.wp-block-gallery.is-cropped .blocks-gallery-image img,.wp-block-gallery.is-cropped .blocks-gallery-item a,.wp-block-gallery.is-cropped .blocks-gallery-item img{height:100%;flex:1;object-fit:cover}}.blocks-gallery-grid.columns-1 .blocks-gallery-image,.blocks-gallery-grid.columns-1 .blocks-gallery-item,.wp-block-gallery.columns-1 .blocks-gallery-image,.wp-block-gallery.columns-1 .blocks-gallery-item{width:100%;margin-left:0}@media (min-width:600px){.blocks-gallery-grid.columns-3 .blocks-gallery-image,.blocks-gallery-grid.columns-3 .blocks-gallery-item,.wp-block-gallery.columns-3 .blocks-gallery-image,.wp-block-gallery.columns-3 .blocks-gallery-item{width:calc(33.33333% - .66667em);margin-left:1em}.blocks-gallery-grid.columns-4 .blocks-gallery-image,.blocks-gallery-grid.columns-4 .blocks-gallery-item,.wp-block-gallery.columns-4 .blocks-gallery-image,.wp-block-gallery.columns-4 .blocks-gallery-item{width:calc(25% - .75em);margin-left:1em}.blocks-gallery-grid.columns-5 .blocks-gallery-image,.blocks-gallery-grid.columns-5 .blocks-gallery-item,.wp-block-gallery.columns-5 .blocks-gallery-image,.wp-block-gallery.columns-5 .blocks-gallery-item{width:calc(20% - .8em);margin-left:1em}.blocks-gallery-grid.columns-6 .blocks-gallery-image,.blocks-gallery-grid.columns-6 .blocks-gallery-item,.wp-block-gallery.columns-6 .blocks-gallery-image,.wp-block-gallery.columns-6 .blocks-gallery-item{width:calc(16.66667% - .83333em);margin-left:1em}.blocks-gallery-grid.columns-7 .blocks-gallery-image,.blocks-gallery-grid.columns-7 .blocks-gallery-item,.wp-block-gallery.columns-7 .blocks-gallery-image,.wp-block-gallery.columns-7 .blocks-gallery-item{width:calc(14.28571% - .85714em);margin-left:1em}.blocks-gallery-grid.columns-8 .blocks-gallery-image,.blocks-gallery-grid.columns-8 .blocks-gallery-item,.wp-block-gallery.columns-8 .blocks-gallery-image,.wp-block-gallery.columns-8 .blocks-gallery-item{width:calc(12.5% - .875em);margin-left:1em}.blocks-gallery-grid.columns-1 .blocks-gallery-image:nth-of-type(1n),.blocks-gallery-grid.columns-1 .blocks-gallery-item:nth-of-type(1n),.wp-block-gallery.columns-1 .blocks-gallery-image:nth-of-type(1n),.wp-block-gallery.columns-1 .blocks-gallery-item:nth-of-type(1n){margin-left:0}.blocks-gallery-grid.columns-2 .blocks-gallery-image:nth-of-type(2n),.blocks-gallery-grid.columns-2 .blocks-gallery-item:nth-of-type(2n),.wp-block-gallery.columns-2 .blocks-gallery-image:nth-of-type(2n),.wp-block-gallery.columns-2 .blocks-gallery-item:nth-of-type(2n){margin-left:0}.blocks-gallery-grid.columns-3 .blocks-gallery-image:nth-of-type(3n),.blocks-gallery-grid.columns-3 .blocks-gallery-item:nth-of-type(3n),.wp-block-gallery.columns-3 .blocks-gallery-image:nth-of-type(3n),.wp-block-gallery.columns-3 .blocks-gallery-item:nth-of-type(3n){margin-left:0}.blocks-gallery-grid.columns-4 .blocks-gallery-image:nth-of-type(4n),.blocks-gallery-grid.columns-4 .blocks-gallery-item:nth-of-type(4n),.wp-block-gallery.columns-4 .blocks-gallery-image:nth-of-type(4n),.wp-block-gallery.columns-4 .blocks-gallery-item:nth-of-type(4n){margin-left:0}.blocks-gallery-grid.columns-5 .blocks-gallery-image:nth-of-type(5n),.blocks-gallery-grid.columns-5 .blocks-gallery-item:nth-of-type(5n),.wp-block-gallery.columns-5 .blocks-gallery-image:nth-of-type(5n),.wp-block-gallery.columns-5 .blocks-gallery-item:nth-of-type(5n){margin-left:0}.blocks-gallery-grid.columns-6 .blocks-gallery-image:nth-of-type(6n),.blocks-gallery-grid.columns-6 .blocks-gallery-item:nth-of-type(6n),.wp-block-gallery.columns-6 .blocks-gallery-image:nth-of-type(6n),.wp-block-gallery.columns-6 .blocks-gallery-item:nth-of-type(6n){margin-left:0}.blocks-gallery-grid.columns-7 .blocks-gallery-image:nth-of-type(7n),.blocks-gallery-grid.columns-7 .blocks-gallery-item:nth-of-type(7n),.wp-block-gallery.columns-7 .blocks-gallery-image:nth-of-type(7n),.wp-block-gallery.columns-7 .blocks-gallery-item:nth-of-type(7n){margin-left:0}.blocks-gallery-grid.columns-8 .blocks-gallery-image:nth-of-type(8n),.blocks-gallery-grid.columns-8 .blocks-gallery-item:nth-of-type(8n),.wp-block-gallery.columns-8 .blocks-gallery-image:nth-of-type(8n),.wp-block-gallery.columns-8 .blocks-gallery-item:nth-of-type(8n){margin-left:0}}.blocks-gallery-grid .blocks-gallery-image:last-child,.blocks-gallery-grid .blocks-gallery-item:last-child,.wp-block-gallery .blocks-gallery-image:last-child,.wp-block-gallery .blocks-gallery-item:last-child{margin-left:0}.blocks-gallery-grid.alignleft,.blocks-gallery-grid.alignright,.wp-block-gallery.alignleft,.wp-block-gallery.alignright{max-width:290px;width:100%}.blocks-gallery-grid.aligncenter .blocks-gallery-item figure,.wp-block-gallery.aligncenter .blocks-gallery-item figure{justify-content:center}.wp-block-group{box-sizing:border-box}h1.has-background,h2.has-background,h3.has-background,h4.has-background,h5.has-background,h6.has-background{padding:1.25em 2.375em}.wp-block-image{margin-bottom:1em}.wp-block-image img{max-width:100%}.wp-block-image.aligncenter{text-align:center}.wp-block-image.alignfull img,.wp-block-image.alignwide img{width:100%}.wp-block-image .aligncenter,.wp-block-image .alignleft,.wp-block-image .alignright{display:table}.wp-block-image .aligncenter>figcaption,.wp-block-image .alignleft>figcaption,.wp-block-image .alignright>figcaption{display:table-caption;caption-side:bottom}.wp-block-image .alignleft{float:left;margin-left:1em;margin-top:.5em;margin-bottom:.5em}.wp-block-image .alignright{float:right;margin-right:1em;margin-top:.5em;margin-bottom:.5em}.wp-block-image .aligncenter{margin-right:auto;margin-left:auto}.wp-block-image figcaption{margin-top:.5em;margin-bottom:1em}.is-style-circle-mask img,.is-style-rounded img{border-radius:9999px}@supports ((-webkit-mask-image:none) or (mask-image:none)) or (-webkit-mask-image:none){.is-style-circle-mask img{-webkit-mask-image:url('data:image/svg+xml;utf8,');mask-image:url('data:image/svg+xml;utf8,');mask-mode:alpha;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:contain;mask-size:contain;-webkit-mask-position:center;mask-position:center;border-radius:0}}.wp-block-latest-comments__comment{line-height:1.1;list-style:none;margin-bottom:1em}.has-avatars .wp-block-latest-comments__comment{min-height:2.25em;list-style:none}.has-avatars .wp-block-latest-comments__comment .wp-block-latest-comments__comment-excerpt,.has-avatars .wp-block-latest-comments__comment .wp-block-latest-comments__comment-meta{margin-right:3.25em}.has-dates .wp-block-latest-comments__comment,.has-excerpts .wp-block-latest-comments__comment{line-height:1.5}.wp-block-latest-comments__comment-excerpt p{font-size:.875em;line-height:1.8;margin:.36em 0 1.4em}.wp-block-latest-comments__comment-date{display:block;font-size:.75em}.wp-block-latest-comments .avatar,.wp-block-latest-comments__comment-avatar{border-radius:1.5em;display:block;float:right;height:2.5em;margin-left:.75em;width:2.5em}.wp-block-latest-posts.alignleft{margin-right:2em}.wp-block-latest-posts.alignright{margin-left:2em}.wp-block-latest-posts.wp-block-latest-posts__list{list-style:none}.wp-block-latest-posts.wp-block-latest-posts__list li{clear:both}.wp-block-latest-posts.is-grid{display:flex;flex-wrap:wrap;padding:0}.wp-block-latest-posts.is-grid li{margin:0 0 1.25em 1.25em;width:100%}@media (min-width:600px){.wp-block-latest-posts.columns-2 li{width:calc(50% - .625em)}.wp-block-latest-posts.columns-2 li:nth-child(2n){margin-left:0}.wp-block-latest-posts.columns-3 li{width:calc(33.33333% - .83333em)}.wp-block-latest-posts.columns-3 li:nth-child(3n){margin-left:0}.wp-block-latest-posts.columns-4 li{width:calc(25% - .9375em)}.wp-block-latest-posts.columns-4 li:nth-child(4n){margin-left:0}.wp-block-latest-posts.columns-5 li{width:calc(20% - 1em)}.wp-block-latest-posts.columns-5 li:nth-child(5n){margin-left:0}.wp-block-latest-posts.columns-6 li{width:calc(16.66667% - 1.04167em)}.wp-block-latest-posts.columns-6 li:nth-child(6n){margin-left:0}}.wp-block-latest-posts__post-author,.wp-block-latest-posts__post-date{display:block;color:#555;font-size:.8125em}.wp-block-latest-posts__post-excerpt{margin-top:.5em;margin-bottom:1em}.wp-block-latest-posts__featured-image a{display:inline-block}.wp-block-latest-posts__featured-image img{height:auto;width:auto}.wp-block-latest-posts__featured-image.alignleft{margin-right:1em}.wp-block-latest-posts__featured-image.alignright{margin-left:1em}.wp-block-latest-posts__featured-image.aligncenter{margin-bottom:1em;text-align:center}.block-editor-image-alignment-control__row .components-base-control__field{display:flex;justify-content:space-between;align-items:center}.block-editor-image-alignment-control__row .components-base-control__field .components-base-control__label{margin-bottom:0}ol.has-background,ul.has-background{padding:1.25em 2.375em}.wp-block-media-text{direction:ltr;display:-ms-grid;display:grid;-ms-grid-columns:50% 1fr;grid-template-columns:50% 1fr;-ms-grid-rows:auto;grid-template-rows:auto}.wp-block-media-text.has-media-on-the-right{-ms-grid-columns:1fr 50%;grid-template-columns:1fr 50%}.wp-block-media-text.is-vertically-aligned-top .wp-block-media-text__content,.wp-block-media-text.is-vertically-aligned-top .wp-block-media-text__media{-ms-grid-row-align:start;align-self:start}.wp-block-media-text.is-vertically-aligned-center .wp-block-media-text__content,.wp-block-media-text.is-vertically-aligned-center .wp-block-media-text__media,.wp-block-media-text .wp-block-media-text__content,.wp-block-media-text .wp-block-media-text__media{-ms-grid-row-align:center;align-self:center}.wp-block-media-text.is-vertically-aligned-bottom .wp-block-media-text__content,.wp-block-media-text.is-vertically-aligned-bottom .wp-block-media-text__media{-ms-grid-row-align:end;align-self:end}.wp-block-media-text .wp-block-media-text__media{-ms-grid-column:1;grid-column:1;-ms-grid-row:1;grid-row:1;margin:0}.wp-block-media-text .wp-block-media-text__content{direction:rtl;padding:0 8%;word-break:break-word}.wp-block-media-text.has-media-on-the-right .wp-block-media-text__media,.wp-block-media-text .wp-block-media-text__content{-ms-grid-column:2;grid-column:2;-ms-grid-row:1;grid-row:1}.wp-block-media-text.has-media-on-the-right .wp-block-media-text__content{-ms-grid-column:1;grid-column:1;-ms-grid-row:1;grid-row:1}.wp-block-media-text__media img,.wp-block-media-text__media video{max-width:unset;width:100%;vertical-align:middle}.wp-block-media-text.is-image-fill figure.wp-block-media-text__media{height:100%;min-height:250px;background-size:cover}.wp-block-media-text.is-image-fill figure.wp-block-media-text__media>img{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}@media (max-width:600px){.wp-block-media-text.is-stacked-on-mobile{-ms-grid-columns:100%!important;grid-template-columns:100%!important}.wp-block-media-text.is-stacked-on-mobile .wp-block-media-text__media{-ms-grid-column:1;grid-column:1;-ms-grid-row:1;grid-row:1}.wp-block-media-text.is-stacked-on-mobile .wp-block-media-text__content{-ms-grid-column:1;grid-column:1;-ms-grid-row:2;grid-row:2}}.wp-block-navigation:not(.has-background) .wp-block-navigation__container .wp-block-navigation-link:not(.has-text-color){color:#1e1e1e}.wp-block-navigation:not(.has-background) .wp-block-navigation__container .wp-block-navigation__container{background-color:#fff}.items-justified-left>ul{justify-content:flex-start}.items-justified-center>ul{justify-content:center}.items-justified-right>ul{justify-content:flex-end}.wp-block-navigation-link{display:flex;align-items:center;position:relative;margin:0}.wp-block-navigation-link .wp-block-navigation__container:empty{display:none}.wp-block-navigation__container{list-style:none;margin:0;padding-right:0;display:flex;flex-wrap:wrap}.is-vertical .wp-block-navigation__container{display:block}.has-child>.wp-block-navigation-link__content{padding-left:.5em}.has-child .wp-block-navigation__container{border:1px solid rgba(0,0,0,.15);background-color:inherit;color:inherit;position:absolute;right:0;top:100%;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;z-index:2;opacity:0;transition:opacity .1s linear;visibility:hidden}.has-child .wp-block-navigation__container>.wp-block-navigation-link>.wp-block-navigation-link__content{flex-grow:1}.has-child .wp-block-navigation__container>.wp-block-navigation-link>.wp-block-navigation-link__submenu-icon{padding-left:.5em}@media (min-width:782px){.has-child .wp-block-navigation__container{right:1.5em}.has-child .wp-block-navigation__container .wp-block-navigation__container{right:100%;top:-1px}.has-child .wp-block-navigation__container .wp-block-navigation__container:before{content:"";position:absolute;left:100%;height:100%;display:block;width:.5em;background:transparent}.has-child .wp-block-navigation__container .wp-block-navigation-link__submenu-icon svg{transform:rotate(0)}}.has-child:hover{cursor:pointer}.has-child:hover>.wp-block-navigation__container{visibility:visible;opacity:1;display:flex;flex-direction:column}.has-child:focus-within{cursor:pointer}.has-child:focus-within>.wp-block-navigation__container{visibility:visible;opacity:1;display:flex;flex-direction:column}.wp-block-navigation-link__content{color:inherit;text-decoration:none;padding:.5em 1em}.wp-block-navigation-link__content+.wp-block-navigation-link__content{padding-top:0}.has-text-color .wp-block-navigation-link__content{color:inherit}.wp-block-navigation-link__label{word-break:normal;overflow-wrap:break-word}.wp-block-navigation-link__submenu-icon{height:inherit;padding:.375em 0 .375em 1em}.wp-block-navigation-link__submenu-icon svg{fill:currentColor}@media (min-width:782px){.wp-block-navigation-link__submenu-icon svg{transform:rotate(-90deg)}}.is-small-text{font-size:.875em}.is-regular-text{font-size:1em}.is-large-text{font-size:2.25em}.is-larger-text{font-size:3em}.has-drop-cap:not(:focus):first-letter{float:right;font-size:8.4em;line-height:.68;font-weight:100;margin:.05em 0 0 .1em;text-transform:uppercase;font-style:normal}p.has-background{padding:1.25em 2.375em}p.has-text-color a{color:inherit}.wp-block-post-author{display:flex;flex-wrap:wrap}.wp-block-post-author__byline{width:100%;margin-top:0;margin-bottom:0;font-size:.5em}.wp-block-post-author__avatar{margin-left:1em}.wp-block-post-author__bio{margin-bottom:.7em;font-size:.7em}.wp-block-post-author__content{flex-grow:1;flex-basis:0}.wp-block-post-author__name{font-weight:700;margin:0}.wp-block-pullquote{padding:3em 0;margin-right:0;margin-left:0;text-align:center}.wp-block-pullquote.alignleft,.wp-block-pullquote.alignright{max-width:290px}.wp-block-pullquote.alignleft p,.wp-block-pullquote.alignright p{font-size:1.25em}.wp-block-pullquote p{font-size:1.75em;line-height:1.6}.wp-block-pullquote cite,.wp-block-pullquote footer{position:relative}.wp-block-pullquote .has-text-color a{color:inherit}.wp-block-pullquote:not(.is-style-solid-color){background:none}.wp-block-pullquote.is-style-solid-color{border:none}.wp-block-pullquote.is-style-solid-color blockquote{margin-right:auto;margin-left:auto;text-align:right;max-width:60%}.wp-block-pullquote.is-style-solid-color blockquote p{margin-top:0;margin-bottom:0;font-size:2em}.wp-block-pullquote.is-style-solid-color blockquote cite{text-transform:none;font-style:normal}.wp-block-pullquote cite{color:inherit}.wp-block-quote.is-large,.wp-block-quote.is-style-large{margin-bottom:1em;padding:0 1em}.wp-block-quote.is-large p,.wp-block-quote.is-style-large p{font-size:1.5em;font-style:italic;line-height:1.6}.wp-block-quote.is-large cite,.wp-block-quote.is-large footer,.wp-block-quote.is-style-large cite,.wp-block-quote.is-style-large footer{font-size:1.125em;text-align:left}.wp-block-rss.alignleft{margin-right:2em}.wp-block-rss.alignright{margin-left:2em}.wp-block-rss.is-grid{display:flex;flex-wrap:wrap;padding:0;list-style:none}.wp-block-rss.is-grid li{margin:0 0 1em 1em;width:100%}@media (min-width:600px){.wp-block-rss.columns-2 li{width:calc(50% - 1em)}.wp-block-rss.columns-3 li{width:calc(33.33333% - 1em)}.wp-block-rss.columns-4 li{width:calc(25% - 1em)}.wp-block-rss.columns-5 li{width:calc(20% - 1em)}.wp-block-rss.columns-6 li{width:calc(16.66667% - 1em)}}.wp-block-rss__item-author,.wp-block-rss__item-publish-date{display:block;color:#555;font-size:.8125em}.wp-block-search .wp-block-search__inside-wrapper{display:flex;flex:auto;flex-wrap:nowrap;max-width:100%}.wp-block-search .wp-block-search__label{width:100%}.wp-block-search .wp-block-search__input{flex-grow:1;min-width:3em;border:1px solid #949494}.wp-block-search .wp-block-search__button{margin-right:.625em;word-break:normal}.wp-block-search .wp-block-search__button svg{min-width:1.5em;min-height:1.5em}.wp-block-search.wp-block-search__button-only .wp-block-search__button{margin-right:0}.wp-block-search.wp-block-search__button-inside .wp-block-search__inside-wrapper{padding:4px;border:1px solid #949494}.wp-block-search.wp-block-search__button-inside .wp-block-search__inside-wrapper .wp-block-search__input{border-radius:0;border:none;padding:0 .25em 0 0}.wp-block-search.wp-block-search__button-inside .wp-block-search__inside-wrapper .wp-block-search__input:focus{outline:none}.wp-block-search.wp-block-search__button-inside .wp-block-search__inside-wrapper .wp-block-search__button{padding:.125em .5em}.wp-block-separator.is-style-wide{border-bottom-width:1px}.wp-block-separator.is-style-dots{background:none!important;border:none;text-align:center;max-width:none;line-height:1;height:auto}.wp-block-separator.is-style-dots:before{content:"\00b7 \00b7 \00b7";color:currentColor;font-size:1.5em;letter-spacing:2em;padding-left:2em;font-family:serif}.wp-block-custom-logo .aligncenter{display:table}.wp-block-social-links{display:flex;flex-wrap:wrap;justify-content:flex-start;padding-right:0;padding-left:0;text-indent:0;margin-right:0}.wp-block-social-links .wp-social-link a,.wp-block-social-links .wp-social-link a:hover{text-decoration:none;border-bottom:0;box-shadow:none}.wp-social-link{display:block;width:36px;height:36px;border-radius:9999px;margin:0 0 8px 8px;transition:transform .1s ease}@media (prefers-reduced-motion:reduce){.wp-social-link{transition-duration:0s}}.wp-social-link a{padding:6px;display:block;line-height:0;transition:transform .1s ease}.wp-social-link a,.wp-social-link a:active,.wp-social-link a:hover,.wp-social-link a:visited,.wp-social-link svg{color:currentColor;fill:currentColor}.wp-social-link:hover{transform:scale(1.1)}.wp-block-social-links.aligncenter{justify-content:center;display:flex}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link{background-color:#f0f0f0;color:#444}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-amazon{background-color:#f90;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-bandcamp{background-color:#1ea0c3;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-behance{background-color:#0757fe;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-codepen{background-color:#1e1f26;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-deviantart{background-color:#02e49b;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-dribbble{background-color:#e94c89;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-dropbox{background-color:#4280ff;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-etsy{background-color:#f45800;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-facebook{background-color:#1778f2;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-fivehundredpx{background-color:#000;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-flickr{background-color:#0461dd;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-foursquare{background-color:#e65678;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-github{background-color:#24292d;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-goodreads{background-color:#eceadd;color:#382110}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-google{background-color:#ea4434;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-instagram{background-color:#f00075;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-lastfm{background-color:#e21b24;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-linkedin{background-color:#0d66c2;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-mastodon{background-color:#3288d4;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-medium{background-color:#02ab6c;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-meetup{background-color:#f6405f;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-pinterest{background-color:#e60122;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-pocket{background-color:#ef4155;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-reddit{background-color:#fe4500;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-skype{background-color:#0478d7;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-snapchat{background-color:#fefc00;color:#fff;stroke:#000}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-soundcloud{background-color:#ff5600;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-spotify{background-color:#1bd760;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-tumblr{background-color:#011835;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-twitch{background-color:#6440a4;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-twitter{background-color:#1da1f2;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-vimeo{background-color:#1eb7ea;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-vk{background-color:#4680c2;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-wordpress{background-color:#3499cd;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-yelp{background-color:#d32422;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-youtube{background-color:red;color:#fff}.wp-block-social-links.is-style-logos-only .wp-social-link{background:none;padding:4px}.wp-block-social-links.is-style-logos-only .wp-social-link svg{width:28px;height:28px}.wp-block-social-links.is-style-logos-only .wp-social-link-amazon{color:#f90}.wp-block-social-links.is-style-logos-only .wp-social-link-bandcamp{color:#1ea0c3}.wp-block-social-links.is-style-logos-only .wp-social-link-behance{color:#0757fe}.wp-block-social-links.is-style-logos-only .wp-social-link-codepen{color:#1e1f26}.wp-block-social-links.is-style-logos-only .wp-social-link-deviantart{color:#02e49b}.wp-block-social-links.is-style-logos-only .wp-social-link-dribbble{color:#e94c89}.wp-block-social-links.is-style-logos-only .wp-social-link-dropbox{color:#4280ff}.wp-block-social-links.is-style-logos-only .wp-social-link-etsy{color:#f45800}.wp-block-social-links.is-style-logos-only .wp-social-link-facebook{color:#1778f2}.wp-block-social-links.is-style-logos-only .wp-social-link-fivehundredpx{color:#000}.wp-block-social-links.is-style-logos-only .wp-social-link-flickr{color:#0461dd}.wp-block-social-links.is-style-logos-only .wp-social-link-foursquare{color:#e65678}.wp-block-social-links.is-style-logos-only .wp-social-link-github{color:#24292d}.wp-block-social-links.is-style-logos-only .wp-social-link-goodreads{color:#382110}.wp-block-social-links.is-style-logos-only .wp-social-link-google{color:#ea4434}.wp-block-social-links.is-style-logos-only .wp-social-link-instagram{color:#f00075}.wp-block-social-links.is-style-logos-only .wp-social-link-lastfm{color:#e21b24}.wp-block-social-links.is-style-logos-only .wp-social-link-linkedin{color:#0d66c2}.wp-block-social-links.is-style-logos-only .wp-social-link-mastodon{color:#3288d4}.wp-block-social-links.is-style-logos-only .wp-social-link-medium{color:#02ab6c}.wp-block-social-links.is-style-logos-only .wp-social-link-meetup{color:#f6405f}.wp-block-social-links.is-style-logos-only .wp-social-link-pinterest{color:#e60122}.wp-block-social-links.is-style-logos-only .wp-social-link-pocket{color:#ef4155}.wp-block-social-links.is-style-logos-only .wp-social-link-reddit{color:#fe4500}.wp-block-social-links.is-style-logos-only .wp-social-link-skype{color:#0478d7}.wp-block-social-links.is-style-logos-only .wp-social-link-snapchat{color:#fff;stroke:#000}.wp-block-social-links.is-style-logos-only .wp-social-link-soundcloud{color:#ff5600}.wp-block-social-links.is-style-logos-only .wp-social-link-spotify{color:#1bd760}.wp-block-social-links.is-style-logos-only .wp-social-link-tumblr{color:#011835}.wp-block-social-links.is-style-logos-only .wp-social-link-twitch{color:#6440a4}.wp-block-social-links.is-style-logos-only .wp-social-link-twitter{color:#1da1f2}.wp-block-social-links.is-style-logos-only .wp-social-link-vimeo{color:#1eb7ea}.wp-block-social-links.is-style-logos-only .wp-social-link-vk{color:#4680c2}.wp-block-social-links.is-style-logos-only .wp-social-link-wordpress{color:#3499cd}.wp-block-social-links.is-style-logos-only .wp-social-link-yelp{background-color:#d32422;color:#fff}.wp-block-social-links.is-style-logos-only .wp-social-link-youtube{color:red}.wp-block-social-links.is-style-pill-shape .wp-social-link{width:auto}.wp-block-social-links.is-style-pill-shape .wp-social-link a{padding-right:16px;padding-left:16px}.wp-block-spacer{clear:both}p.wp-block-subhead{font-size:1.1em;font-style:italic;opacity:.75}.wp-block-table{overflow-x:auto}.wp-block-table table{width:100%}.wp-block-table .has-fixed-layout{table-layout:fixed;width:100%}.wp-block-table .has-fixed-layout td,.wp-block-table .has-fixed-layout th{word-break:break-word}.wp-block-table.aligncenter,.wp-block-table.alignleft,.wp-block-table.alignright{display:table;width:auto}.wp-block-table.aligncenter td,.wp-block-table.aligncenter th,.wp-block-table.alignleft td,.wp-block-table.alignleft th,.wp-block-table.alignright td,.wp-block-table.alignright th{word-break:break-word}.wp-block-table .has-subtle-light-gray-background-color{background-color:#f3f4f5}.wp-block-table .has-subtle-pale-green-background-color{background-color:#e9fbe5}.wp-block-table .has-subtle-pale-blue-background-color{background-color:#e7f5fe}.wp-block-table .has-subtle-pale-pink-background-color{background-color:#fcf0ef}.wp-block-table.is-style-stripes{border-spacing:0;border-collapse:inherit;background-color:transparent;border-bottom:1px solid #f0f0f0}.wp-block-table.is-style-stripes tbody tr:nth-child(odd){background-color:#f0f0f0}.wp-block-table.is-style-stripes.has-subtle-light-gray-background-color tbody tr:nth-child(odd){background-color:#f3f4f5}.wp-block-table.is-style-stripes.has-subtle-pale-green-background-color tbody tr:nth-child(odd){background-color:#e9fbe5}.wp-block-table.is-style-stripes.has-subtle-pale-blue-background-color tbody tr:nth-child(odd){background-color:#e7f5fe}.wp-block-table.is-style-stripes.has-subtle-pale-pink-background-color tbody tr:nth-child(odd){background-color:#fcf0ef}.wp-block-table.is-style-stripes td,.wp-block-table.is-style-stripes th{border-color:transparent}.wp-block-text-columns,.wp-block-text-columns.aligncenter{display:flex}.wp-block-text-columns .wp-block-column{margin:0 1em;padding:0}.wp-block-text-columns .wp-block-column:first-child{margin-right:0}.wp-block-text-columns .wp-block-column:last-child{margin-left:0}.wp-block-text-columns.columns-2 .wp-block-column{width:50%}.wp-block-text-columns.columns-3 .wp-block-column{width:33.33333%}.wp-block-text-columns.columns-4 .wp-block-column{width:25%}.wp-block-video{margin-right:0;margin-left:0}.wp-block-video video{max-width:100%}@supports ((position:-webkit-sticky) or (position:sticky)){.wp-block-video [poster]{object-fit:cover}}.wp-block-video.aligncenter{text-align:center}.wp-block-video figcaption{margin-top:.5em;margin-bottom:1em}.wp-block-post-featured-image a{display:inline-block}:root .has-pale-pink-background-color{background-color:#f78da7}:root .has-vivid-red-background-color{background-color:#cf2e2e}:root .has-luminous-vivid-orange-background-color{background-color:#ff6900}:root .has-luminous-vivid-amber-background-color{background-color:#fcb900}:root .has-light-green-cyan-background-color{background-color:#7bdcb5}:root .has-vivid-green-cyan-background-color{background-color:#00d084}:root .has-pale-cyan-blue-background-color{background-color:#8ed1fc}:root .has-vivid-cyan-blue-background-color{background-color:#0693e3}:root .has-vivid-purple-background-color{background-color:#9b51e0}:root .has-white-background-color{background-color:#fff}:root .has-very-light-gray-background-color{background-color:#eee}:root .has-cyan-bluish-gray-background-color{background-color:#abb8c3}:root .has-very-dark-gray-background-color{background-color:#313131}:root .has-black-background-color{background-color:#000}:root .has-pale-pink-color{color:#f78da7}:root .has-vivid-red-color{color:#cf2e2e}:root .has-luminous-vivid-orange-color{color:#ff6900}:root .has-luminous-vivid-amber-color{color:#fcb900}:root .has-light-green-cyan-color{color:#7bdcb5}:root .has-vivid-green-cyan-color{color:#00d084}:root .has-pale-cyan-blue-color{color:#8ed1fc}:root .has-vivid-cyan-blue-color{color:#0693e3}:root .has-vivid-purple-color{color:#9b51e0}:root .has-white-color{color:#fff}:root .has-very-light-gray-color{color:#eee}:root .has-cyan-bluish-gray-color{color:#abb8c3}:root .has-very-dark-gray-color{color:#313131}:root .has-black-color{color:#000}:root .has-vivid-cyan-blue-to-vivid-purple-gradient-background{background:linear-gradient(-135deg,#0693e3,#9b51e0)}:root .has-vivid-green-cyan-to-vivid-cyan-blue-gradient-background{background:linear-gradient(-135deg,#00d084,#0693e3)}:root .has-light-green-cyan-to-vivid-green-cyan-gradient-background{background:linear-gradient(-135deg,#7adcb4,#00d082)}:root .has-luminous-vivid-amber-to-luminous-vivid-orange-gradient-background{background:linear-gradient(-135deg,#fcb900,#ff6900)}:root .has-luminous-vivid-orange-to-vivid-red-gradient-background{background:linear-gradient(-135deg,#ff6900,#cf2e2e)}:root .has-very-light-gray-to-cyan-bluish-gray-gradient-background{background:linear-gradient(-135deg,#eee,#a9b8c3)}:root .has-cool-to-warm-spectrum-gradient-background{background:linear-gradient(-135deg,#4aeadc,#9778d1 20%,#cf2aba 40%,#ee2c82 60%,#fb6962 80%,#fef84c)}:root .has-blush-light-purple-gradient-background{background:linear-gradient(-135deg,#ffceec,#9896f0)}:root .has-blush-bordeaux-gradient-background{background:linear-gradient(-135deg,#fecda5,#fe2d2d 50%,#6b003e)}:root .has-purple-crush-gradient-background{background:linear-gradient(-135deg,#34e2e4,#4721fb 50%,#ab1dfe)}:root .has-luminous-dusk-gradient-background{background:linear-gradient(-135deg,#ffcb70,#c751c0 50%,#4158d0)}:root .has-hazy-dawn-gradient-background{background:linear-gradient(-135deg,#faaca8,#dad0ec)}:root .has-pale-ocean-gradient-background{background:linear-gradient(-135deg,#fff5cb,#b6e3d4 50%,#33a7b5)}:root .has-electric-grass-gradient-background{background:linear-gradient(-135deg,#caf880,#71ce7e)}:root .has-subdued-olive-gradient-background{background:linear-gradient(-135deg,#fafae1,#67a671)}:root .has-atomic-cream-gradient-background{background:linear-gradient(-135deg,#fdd79a,#004a59)}:root .has-nightshade-gradient-background{background:linear-gradient(-135deg,#330968,#31cdcf)}:root .has-midnight-gradient-background{background:linear-gradient(-135deg,#020381,#2874fc)}:root .has-link-color a{color:#00e;color:var(--wp--style--color--link,#00e)}.has-small-font-size{font-size:.8125em}.has-normal-font-size,.has-regular-font-size{font-size:1em}.has-medium-font-size{font-size:1.25em}.has-large-font-size{font-size:2.25em}.has-huge-font-size,.has-larger-font-size{font-size:2.625em}.has-text-align-center{text-align:center}.has-text-align-left{text-align:left}.has-text-align-right{text-align:right}#end-resizable-editor-section{display:none}.aligncenter{clear:both} \ No newline at end of file +:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-20:#005a87}#start-resizable-editor-section{display:none}.wp-block-audio figcaption{margin-top:.5em;margin-bottom:1em}.wp-block-audio audio{width:100%;min-width:300px}.wp-block-button__link{color:#fff;background-color:#32373c;border:none;border-radius:1.55em;box-shadow:none;cursor:pointer;display:inline-block;font-size:1.125em;padding:.667em 1.333em;text-align:center;text-decoration:none;overflow-wrap:break-word}.wp-block-button__link:active,.wp-block-button__link:focus,.wp-block-button__link:hover,.wp-block-button__link:visited{color:#fff}.wp-block-button__link.aligncenter{text-align:center}.wp-block-button__link.alignright{text-align:right}.wp-block-button.is-style-squared,.wp-block-button__link.wp-block-button.is-style-squared{border-radius:0}.wp-block-button.no-border-radius,.wp-block-button__link.no-border-radius{border-radius:0!important}.is-style-outline>.wp-block-button__link,.wp-block-button__link.is-style-outline{border:2px solid}.is-style-outline>.wp-block-button__link:not(.has-text-color),.wp-block-button__link.is-style-outline:not(.has-text-color){color:#32373c}.is-style-outline>.wp-block-button__link:not(.has-background),.wp-block-button__link.is-style-outline:not(.has-background){background-color:transparent}.wp-block-buttons .wp-block-button{display:inline-block;margin-left:.5em;margin-bottom:.5em}.wp-block-buttons .wp-block-button:last-child{margin-left:0}.wp-block-buttons.alignright .wp-block-button{margin-right:0;margin-left:.5em}.wp-block-buttons.alignright .wp-block-button:first-child{margin-right:0}.wp-block-buttons.alignleft .wp-block-button{margin-left:0;margin-right:.5em}.wp-block-buttons.alignleft .wp-block-button:last-child{margin-left:0}.wp-block-button.aligncenter,.wp-block-buttons.aligncenter,.wp-block-calendar{text-align:center}.wp-block-calendar tbody td,.wp-block-calendar th{padding:.25em;border:1px solid #ddd}.wp-block-calendar tfoot td{border:none}.wp-block-calendar table{width:100%;border-collapse:collapse}.wp-block-calendar table th{font-weight:400;background:#ddd}.wp-block-calendar a{text-decoration:underline}.wp-block-calendar table caption,.wp-block-calendar table tbody{color:#40464d}.wp-block-categories.alignleft{margin-right:2em}.wp-block-categories.alignright{margin-left:2em}.wp-block-code code{white-space:pre-wrap;overflow-wrap:break-word}.wp-block-columns{display:flex;margin-bottom:1.75em;flex-wrap:wrap}@media (min-width:782px){.wp-block-columns{flex-wrap:nowrap}}.wp-block-columns.has-background{padding:1.25em 2.375em}.wp-block-columns.are-vertically-aligned-top{align-items:flex-start}.wp-block-columns.are-vertically-aligned-center{align-items:center}.wp-block-columns.are-vertically-aligned-bottom{align-items:flex-end}.wp-block-column{flex-grow:1;min-width:0;word-break:break-word;overflow-wrap:break-word}@media (max-width:599px){.wp-block-column{flex-basis:100%!important}}@media (min-width:600px) and (max-width:781px){.wp-block-column:not(:only-child){flex-basis:calc(50% - 1em)!important;flex-grow:0}.wp-block-column:nth-child(2n){margin-right:2em}}@media (min-width:782px){.wp-block-column{flex-basis:0;flex-grow:1}.wp-block-column[style*=flex-basis]{flex-grow:0}.wp-block-column:not(:first-child){margin-right:2em}}.wp-block-column.is-vertically-aligned-top{align-self:flex-start}.wp-block-column.is-vertically-aligned-center{-ms-grid-row-align:center;align-self:center}.wp-block-column.is-vertically-aligned-bottom{align-self:flex-end}.wp-block-column.is-vertically-aligned-bottom,.wp-block-column.is-vertically-aligned-center,.wp-block-column.is-vertically-aligned-top{width:100%}.wp-block-cover,.wp-block-cover-image{position:relative;background-size:cover;background-position:50%;min-height:430px;height:100%;width:100%;display:flex;justify-content:center;align-items:center;padding:1em;box-sizing:border-box}.wp-block-cover-image.has-parallax,.wp-block-cover.has-parallax{background-attachment:fixed}@supports (-webkit-overflow-scrolling:touch){.wp-block-cover-image.has-parallax,.wp-block-cover.has-parallax{background-attachment:scroll}}@media (prefers-reduced-motion:reduce){.wp-block-cover-image.has-parallax,.wp-block-cover.has-parallax{background-attachment:scroll}}.wp-block-cover-image.is-repeated,.wp-block-cover.is-repeated{background-repeat:repeat;background-size:auto}.wp-block-cover-image.has-background-dim:not([class*=-background-color]),.wp-block-cover.has-background-dim:not([class*=-background-color]){background-color:#000}.wp-block-cover-image.has-background-dim:before,.wp-block-cover.has-background-dim:before{content:"";background-color:inherit}.wp-block-cover-image.has-background-dim:not(.has-background-gradient):before,.wp-block-cover-image .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim:not(.has-background-gradient):before,.wp-block-cover .wp-block-cover__gradient-background{position:absolute;top:0;right:0;bottom:0;left:0;z-index:1;opacity:.5}.wp-block-cover-image.has-background-dim.has-background-dim-10 .wp-block-cover__gradient-background,.wp-block-cover-image.has-background-dim.has-background-dim-10:not(.has-background-gradient):before,.wp-block-cover.has-background-dim.has-background-dim-10 .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim.has-background-dim-10:not(.has-background-gradient):before{opacity:.1}.wp-block-cover-image.has-background-dim.has-background-dim-20 .wp-block-cover__gradient-background,.wp-block-cover-image.has-background-dim.has-background-dim-20:not(.has-background-gradient):before,.wp-block-cover.has-background-dim.has-background-dim-20 .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim.has-background-dim-20:not(.has-background-gradient):before{opacity:.2}.wp-block-cover-image.has-background-dim.has-background-dim-30 .wp-block-cover__gradient-background,.wp-block-cover-image.has-background-dim.has-background-dim-30:not(.has-background-gradient):before,.wp-block-cover.has-background-dim.has-background-dim-30 .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim.has-background-dim-30:not(.has-background-gradient):before{opacity:.3}.wp-block-cover-image.has-background-dim.has-background-dim-40 .wp-block-cover__gradient-background,.wp-block-cover-image.has-background-dim.has-background-dim-40:not(.has-background-gradient):before,.wp-block-cover.has-background-dim.has-background-dim-40 .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim.has-background-dim-40:not(.has-background-gradient):before{opacity:.4}.wp-block-cover-image.has-background-dim.has-background-dim-50 .wp-block-cover__gradient-background,.wp-block-cover-image.has-background-dim.has-background-dim-50:not(.has-background-gradient):before,.wp-block-cover.has-background-dim.has-background-dim-50 .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim.has-background-dim-50:not(.has-background-gradient):before{opacity:.5}.wp-block-cover-image.has-background-dim.has-background-dim-60 .wp-block-cover__gradient-background,.wp-block-cover-image.has-background-dim.has-background-dim-60:not(.has-background-gradient):before,.wp-block-cover.has-background-dim.has-background-dim-60 .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim.has-background-dim-60:not(.has-background-gradient):before{opacity:.6}.wp-block-cover-image.has-background-dim.has-background-dim-70 .wp-block-cover__gradient-background,.wp-block-cover-image.has-background-dim.has-background-dim-70:not(.has-background-gradient):before,.wp-block-cover.has-background-dim.has-background-dim-70 .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim.has-background-dim-70:not(.has-background-gradient):before{opacity:.7}.wp-block-cover-image.has-background-dim.has-background-dim-80 .wp-block-cover__gradient-background,.wp-block-cover-image.has-background-dim.has-background-dim-80:not(.has-background-gradient):before,.wp-block-cover.has-background-dim.has-background-dim-80 .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim.has-background-dim-80:not(.has-background-gradient):before{opacity:.8}.wp-block-cover-image.has-background-dim.has-background-dim-90 .wp-block-cover__gradient-background,.wp-block-cover-image.has-background-dim.has-background-dim-90:not(.has-background-gradient):before,.wp-block-cover.has-background-dim.has-background-dim-90 .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim.has-background-dim-90:not(.has-background-gradient):before{opacity:.9}.wp-block-cover-image.has-background-dim.has-background-dim-100 .wp-block-cover__gradient-background,.wp-block-cover-image.has-background-dim.has-background-dim-100:not(.has-background-gradient):before,.wp-block-cover.has-background-dim.has-background-dim-100 .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim.has-background-dim-100:not(.has-background-gradient):before{opacity:1}.wp-block-cover-image.alignleft,.wp-block-cover-image.alignright,.wp-block-cover.alignleft,.wp-block-cover.alignright{max-width:290px;width:100%}.wp-block-cover-image:after,.wp-block-cover:after{display:block;content:"";font-size:0;min-height:inherit}@supports ((position:-webkit-sticky) or (position:sticky)){.wp-block-cover-image:after,.wp-block-cover:after{content:none}}.wp-block-cover-image.aligncenter,.wp-block-cover-image.alignleft,.wp-block-cover-image.alignright,.wp-block-cover.aligncenter,.wp-block-cover.alignleft,.wp-block-cover.alignright{display:flex}.wp-block-cover-image .wp-block-cover__inner-container,.wp-block-cover .wp-block-cover__inner-container{width:100%;z-index:1;color:#fff}.wp-block-cover-image .wp-block-subhead:not(.has-text-color),.wp-block-cover-image h1:not(.has-text-color),.wp-block-cover-image h2:not(.has-text-color),.wp-block-cover-image h3:not(.has-text-color),.wp-block-cover-image h4:not(.has-text-color),.wp-block-cover-image h5:not(.has-text-color),.wp-block-cover-image h6:not(.has-text-color),.wp-block-cover-image p:not(.has-text-color),.wp-block-cover .wp-block-subhead:not(.has-text-color),.wp-block-cover h1:not(.has-text-color),.wp-block-cover h2:not(.has-text-color),.wp-block-cover h3:not(.has-text-color),.wp-block-cover h4:not(.has-text-color),.wp-block-cover h5:not(.has-text-color),.wp-block-cover h6:not(.has-text-color),.wp-block-cover p:not(.has-text-color){color:inherit}.wp-block-cover-image.is-position-top-left,.wp-block-cover.is-position-top-left{align-items:flex-start;justify-content:flex-start}.wp-block-cover-image.is-position-top-center,.wp-block-cover.is-position-top-center{align-items:flex-start;justify-content:center}.wp-block-cover-image.is-position-top-right,.wp-block-cover.is-position-top-right{align-items:flex-start;justify-content:flex-end}.wp-block-cover-image.is-position-center-left,.wp-block-cover.is-position-center-left{align-items:center;justify-content:flex-start}.wp-block-cover-image.is-position-center-center,.wp-block-cover.is-position-center-center{align-items:center;justify-content:center}.wp-block-cover-image.is-position-center-right,.wp-block-cover.is-position-center-right{align-items:center;justify-content:flex-end}.wp-block-cover-image.is-position-bottom-left,.wp-block-cover.is-position-bottom-left{align-items:flex-end;justify-content:flex-start}.wp-block-cover-image.is-position-bottom-center,.wp-block-cover.is-position-bottom-center{align-items:flex-end;justify-content:center}.wp-block-cover-image.is-position-bottom-right,.wp-block-cover.is-position-bottom-right{align-items:flex-end;justify-content:flex-end}.wp-block-cover-image.has-custom-content-position.has-custom-content-position .wp-block-cover__inner-container,.wp-block-cover.has-custom-content-position.has-custom-content-position .wp-block-cover__inner-container{margin:0;width:auto}.wp-block-cover__video-background{position:absolute;top:50%;right:50%;transform:translateX(50%) translateY(-50%);width:100%;height:100%;z-index:0;object-fit:cover}.wp-block-cover-image-text,.wp-block-cover-text,section.wp-block-cover-image h2{color:#fff}.wp-block-cover-image-text a,.wp-block-cover-image-text a:active,.wp-block-cover-image-text a:focus,.wp-block-cover-image-text a:hover,.wp-block-cover-text a,.wp-block-cover-text a:active,.wp-block-cover-text a:focus,.wp-block-cover-text a:hover,section.wp-block-cover-image h2 a,section.wp-block-cover-image h2 a:active,section.wp-block-cover-image h2 a:focus,section.wp-block-cover-image h2 a:hover{color:#fff}.wp-block-cover-image .wp-block-cover.has-left-content{justify-content:flex-start}.wp-block-cover-image .wp-block-cover.has-right-content{justify-content:flex-end}.wp-block-cover-image.has-left-content .wp-block-cover-image-text,.wp-block-cover.has-left-content .wp-block-cover-text,section.wp-block-cover-image.has-left-content>h2{margin-right:0;text-align:right}.wp-block-cover-image.has-right-content .wp-block-cover-image-text,.wp-block-cover.has-right-content .wp-block-cover-text,section.wp-block-cover-image.has-right-content>h2{margin-left:0;text-align:left}.wp-block-cover-image .wp-block-cover-image-text,.wp-block-cover .wp-block-cover-text,section.wp-block-cover-image>h2{font-size:2em;line-height:1.25;z-index:1;margin-bottom:0;max-width:580px;padding:.44em;text-align:center}.wp-block-embed.alignleft,.wp-block-embed.alignright,.wp-block[data-align=left]>[data-type="core/embed"],.wp-block[data-align=right]>[data-type="core/embed"]{max-width:360px;width:100%}.wp-block-embed.alignleft .wp-block-embed__wrapper,.wp-block-embed.alignright .wp-block-embed__wrapper,.wp-block[data-align=left]>[data-type="core/embed"] .wp-block-embed__wrapper,.wp-block[data-align=right]>[data-type="core/embed"] .wp-block-embed__wrapper{min-width:280px}.wp-block-embed{margin-bottom:1em}.wp-block-embed figcaption{margin-top:.5em;margin-bottom:1em}.wp-block-embed iframe{max-width:100%}.wp-block-embed__wrapper{position:relative}.wp-embed-responsive .wp-has-aspect-ratio .wp-block-embed__wrapper:before{content:"";display:block;padding-top:50%}.wp-embed-responsive .wp-has-aspect-ratio iframe{position:absolute;top:0;left:0;bottom:0;right:0;height:100%;width:100%}.wp-embed-responsive .wp-embed-aspect-21-9 .wp-block-embed__wrapper:before{padding-top:42.85%}.wp-embed-responsive .wp-embed-aspect-18-9 .wp-block-embed__wrapper:before{padding-top:50%}.wp-embed-responsive .wp-embed-aspect-16-9 .wp-block-embed__wrapper:before{padding-top:56.25%}.wp-embed-responsive .wp-embed-aspect-4-3 .wp-block-embed__wrapper:before{padding-top:75%}.wp-embed-responsive .wp-embed-aspect-1-1 .wp-block-embed__wrapper:before{padding-top:100%}.wp-embed-responsive .wp-embed-aspect-9-16 .wp-block-embed__wrapper:before{padding-top:177.77%}.wp-embed-responsive .wp-embed-aspect-1-2 .wp-block-embed__wrapper:before{padding-top:200%}.wp-block-file{margin-bottom:1.5em}.wp-block-file.aligncenter{text-align:center}.wp-block-file.alignright{text-align:right}.wp-block-file .wp-block-file__button{background:#32373c;border-radius:2em;color:#fff;font-size:.8em;padding:.5em 1em}.wp-block-file a.wp-block-file__button{text-decoration:none}.wp-block-file a.wp-block-file__button:active,.wp-block-file a.wp-block-file__button:focus,.wp-block-file a.wp-block-file__button:hover,.wp-block-file a.wp-block-file__button:visited{box-shadow:none;color:#fff;opacity:.85;text-decoration:none}.wp-block-file *+.wp-block-file__button{margin-right:.75em}.blocks-gallery-grid,.wp-block-gallery{display:flex;flex-wrap:wrap;list-style-type:none;padding:0;margin:0}.blocks-gallery-grid .blocks-gallery-image,.blocks-gallery-grid .blocks-gallery-item,.wp-block-gallery .blocks-gallery-image,.wp-block-gallery .blocks-gallery-item{margin:0 0 1em 1em;display:flex;flex-grow:1;flex-direction:column;justify-content:center;position:relative;width:calc(50% - 1em)}.blocks-gallery-grid .blocks-gallery-image:nth-of-type(2n),.blocks-gallery-grid .blocks-gallery-item:nth-of-type(2n),.wp-block-gallery .blocks-gallery-image:nth-of-type(2n),.wp-block-gallery .blocks-gallery-item:nth-of-type(2n){margin-left:0}.blocks-gallery-grid .blocks-gallery-image figure,.blocks-gallery-grid .blocks-gallery-item figure,.wp-block-gallery .blocks-gallery-image figure,.wp-block-gallery .blocks-gallery-item figure{margin:0;height:100%}@supports ((position:-webkit-sticky) or (position:sticky)){.blocks-gallery-grid .blocks-gallery-image figure,.blocks-gallery-grid .blocks-gallery-item figure,.wp-block-gallery .blocks-gallery-image figure,.wp-block-gallery .blocks-gallery-item figure{display:flex;align-items:flex-end;justify-content:flex-start}}.blocks-gallery-grid .blocks-gallery-image img,.blocks-gallery-grid .blocks-gallery-item img,.wp-block-gallery .blocks-gallery-image img,.wp-block-gallery .blocks-gallery-item img{display:block;max-width:100%;height:auto;width:100%}@supports ((position:-webkit-sticky) or (position:sticky)){.blocks-gallery-grid .blocks-gallery-image img,.blocks-gallery-grid .blocks-gallery-item img,.wp-block-gallery .blocks-gallery-image img,.wp-block-gallery .blocks-gallery-item img{width:auto}}.blocks-gallery-grid .blocks-gallery-image figcaption,.blocks-gallery-grid .blocks-gallery-item figcaption,.wp-block-gallery .blocks-gallery-image figcaption,.wp-block-gallery .blocks-gallery-item figcaption{position:absolute;bottom:0;width:100%;max-height:100%;overflow:auto;padding:3em .77em .7em;color:#fff;text-align:center;font-size:.8em;background:linear-gradient(0deg,rgba(0,0,0,.7),rgba(0,0,0,.3) 70%,transparent);box-sizing:border-box;margin:0}.blocks-gallery-grid .blocks-gallery-image figcaption img,.blocks-gallery-grid .blocks-gallery-item figcaption img,.wp-block-gallery .blocks-gallery-image figcaption img,.wp-block-gallery .blocks-gallery-item figcaption img{display:inline}.blocks-gallery-grid figcaption,.wp-block-gallery figcaption{flex-grow:1}.blocks-gallery-grid.is-cropped .blocks-gallery-image a,.blocks-gallery-grid.is-cropped .blocks-gallery-image img,.blocks-gallery-grid.is-cropped .blocks-gallery-item a,.blocks-gallery-grid.is-cropped .blocks-gallery-item img,.wp-block-gallery.is-cropped .blocks-gallery-image a,.wp-block-gallery.is-cropped .blocks-gallery-image img,.wp-block-gallery.is-cropped .blocks-gallery-item a,.wp-block-gallery.is-cropped .blocks-gallery-item img{width:100%}@supports ((position:-webkit-sticky) or (position:sticky)){.blocks-gallery-grid.is-cropped .blocks-gallery-image a,.blocks-gallery-grid.is-cropped .blocks-gallery-image img,.blocks-gallery-grid.is-cropped .blocks-gallery-item a,.blocks-gallery-grid.is-cropped .blocks-gallery-item img,.wp-block-gallery.is-cropped .blocks-gallery-image a,.wp-block-gallery.is-cropped .blocks-gallery-image img,.wp-block-gallery.is-cropped .blocks-gallery-item a,.wp-block-gallery.is-cropped .blocks-gallery-item img{height:100%;flex:1;object-fit:cover}}.blocks-gallery-grid.columns-1 .blocks-gallery-image,.blocks-gallery-grid.columns-1 .blocks-gallery-item,.wp-block-gallery.columns-1 .blocks-gallery-image,.wp-block-gallery.columns-1 .blocks-gallery-item{width:100%;margin-left:0}@media (min-width:600px){.blocks-gallery-grid.columns-3 .blocks-gallery-image,.blocks-gallery-grid.columns-3 .blocks-gallery-item,.wp-block-gallery.columns-3 .blocks-gallery-image,.wp-block-gallery.columns-3 .blocks-gallery-item{width:calc(33.33333% - .66667em);margin-left:1em}.blocks-gallery-grid.columns-4 .blocks-gallery-image,.blocks-gallery-grid.columns-4 .blocks-gallery-item,.wp-block-gallery.columns-4 .blocks-gallery-image,.wp-block-gallery.columns-4 .blocks-gallery-item{width:calc(25% - .75em);margin-left:1em}.blocks-gallery-grid.columns-5 .blocks-gallery-image,.blocks-gallery-grid.columns-5 .blocks-gallery-item,.wp-block-gallery.columns-5 .blocks-gallery-image,.wp-block-gallery.columns-5 .blocks-gallery-item{width:calc(20% - .8em);margin-left:1em}.blocks-gallery-grid.columns-6 .blocks-gallery-image,.blocks-gallery-grid.columns-6 .blocks-gallery-item,.wp-block-gallery.columns-6 .blocks-gallery-image,.wp-block-gallery.columns-6 .blocks-gallery-item{width:calc(16.66667% - .83333em);margin-left:1em}.blocks-gallery-grid.columns-7 .blocks-gallery-image,.blocks-gallery-grid.columns-7 .blocks-gallery-item,.wp-block-gallery.columns-7 .blocks-gallery-image,.wp-block-gallery.columns-7 .blocks-gallery-item{width:calc(14.28571% - .85714em);margin-left:1em}.blocks-gallery-grid.columns-8 .blocks-gallery-image,.blocks-gallery-grid.columns-8 .blocks-gallery-item,.wp-block-gallery.columns-8 .blocks-gallery-image,.wp-block-gallery.columns-8 .blocks-gallery-item{width:calc(12.5% - .875em);margin-left:1em}.blocks-gallery-grid.columns-1 .blocks-gallery-image:nth-of-type(1n),.blocks-gallery-grid.columns-1 .blocks-gallery-item:nth-of-type(1n),.wp-block-gallery.columns-1 .blocks-gallery-image:nth-of-type(1n),.wp-block-gallery.columns-1 .blocks-gallery-item:nth-of-type(1n){margin-left:0}.blocks-gallery-grid.columns-2 .blocks-gallery-image:nth-of-type(2n),.blocks-gallery-grid.columns-2 .blocks-gallery-item:nth-of-type(2n),.wp-block-gallery.columns-2 .blocks-gallery-image:nth-of-type(2n),.wp-block-gallery.columns-2 .blocks-gallery-item:nth-of-type(2n){margin-left:0}.blocks-gallery-grid.columns-3 .blocks-gallery-image:nth-of-type(3n),.blocks-gallery-grid.columns-3 .blocks-gallery-item:nth-of-type(3n),.wp-block-gallery.columns-3 .blocks-gallery-image:nth-of-type(3n),.wp-block-gallery.columns-3 .blocks-gallery-item:nth-of-type(3n){margin-left:0}.blocks-gallery-grid.columns-4 .blocks-gallery-image:nth-of-type(4n),.blocks-gallery-grid.columns-4 .blocks-gallery-item:nth-of-type(4n),.wp-block-gallery.columns-4 .blocks-gallery-image:nth-of-type(4n),.wp-block-gallery.columns-4 .blocks-gallery-item:nth-of-type(4n){margin-left:0}.blocks-gallery-grid.columns-5 .blocks-gallery-image:nth-of-type(5n),.blocks-gallery-grid.columns-5 .blocks-gallery-item:nth-of-type(5n),.wp-block-gallery.columns-5 .blocks-gallery-image:nth-of-type(5n),.wp-block-gallery.columns-5 .blocks-gallery-item:nth-of-type(5n){margin-left:0}.blocks-gallery-grid.columns-6 .blocks-gallery-image:nth-of-type(6n),.blocks-gallery-grid.columns-6 .blocks-gallery-item:nth-of-type(6n),.wp-block-gallery.columns-6 .blocks-gallery-image:nth-of-type(6n),.wp-block-gallery.columns-6 .blocks-gallery-item:nth-of-type(6n){margin-left:0}.blocks-gallery-grid.columns-7 .blocks-gallery-image:nth-of-type(7n),.blocks-gallery-grid.columns-7 .blocks-gallery-item:nth-of-type(7n),.wp-block-gallery.columns-7 .blocks-gallery-image:nth-of-type(7n),.wp-block-gallery.columns-7 .blocks-gallery-item:nth-of-type(7n){margin-left:0}.blocks-gallery-grid.columns-8 .blocks-gallery-image:nth-of-type(8n),.blocks-gallery-grid.columns-8 .blocks-gallery-item:nth-of-type(8n),.wp-block-gallery.columns-8 .blocks-gallery-image:nth-of-type(8n),.wp-block-gallery.columns-8 .blocks-gallery-item:nth-of-type(8n){margin-left:0}}.blocks-gallery-grid .blocks-gallery-image:last-child,.blocks-gallery-grid .blocks-gallery-item:last-child,.wp-block-gallery .blocks-gallery-image:last-child,.wp-block-gallery .blocks-gallery-item:last-child{margin-left:0}.blocks-gallery-grid.alignleft,.blocks-gallery-grid.alignright,.wp-block-gallery.alignleft,.wp-block-gallery.alignright{max-width:290px;width:100%}.blocks-gallery-grid.aligncenter .blocks-gallery-item figure,.wp-block-gallery.aligncenter .blocks-gallery-item figure{justify-content:center}.wp-block-group{box-sizing:border-box}h1.has-background,h2.has-background,h3.has-background,h4.has-background,h5.has-background,h6.has-background{padding:1.25em 2.375em}.wp-block-image{margin-bottom:1em}.wp-block-image img{max-width:100%}.wp-block-image.aligncenter{text-align:center}.wp-block-image.alignfull img,.wp-block-image.alignwide img{width:100%}.wp-block-image .aligncenter,.wp-block-image .alignleft,.wp-block-image .alignright{display:table}.wp-block-image .aligncenter>figcaption,.wp-block-image .alignleft>figcaption,.wp-block-image .alignright>figcaption{display:table-caption;caption-side:bottom}.wp-block-image .alignleft{float:left;margin-left:1em;margin-top:.5em;margin-bottom:.5em}.wp-block-image .alignright{float:right;margin-right:1em;margin-top:.5em;margin-bottom:.5em}.wp-block-image .aligncenter{margin-right:auto;margin-left:auto}.wp-block-image figcaption{margin-top:.5em;margin-bottom:1em}.is-style-circle-mask img,.is-style-rounded img{border-radius:9999px}@supports ((-webkit-mask-image:none) or (mask-image:none)) or (-webkit-mask-image:none){.is-style-circle-mask img{-webkit-mask-image:url('data:image/svg+xml;utf8,');mask-image:url('data:image/svg+xml;utf8,');mask-mode:alpha;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:contain;mask-size:contain;-webkit-mask-position:center;mask-position:center;border-radius:0}}.wp-block-latest-comments__comment{line-height:1.1;list-style:none;margin-bottom:1em}.has-avatars .wp-block-latest-comments__comment{min-height:2.25em;list-style:none}.has-avatars .wp-block-latest-comments__comment .wp-block-latest-comments__comment-excerpt,.has-avatars .wp-block-latest-comments__comment .wp-block-latest-comments__comment-meta{margin-right:3.25em}.has-dates .wp-block-latest-comments__comment,.has-excerpts .wp-block-latest-comments__comment{line-height:1.5}.wp-block-latest-comments__comment-excerpt p{font-size:.875em;line-height:1.8;margin:.36em 0 1.4em}.wp-block-latest-comments__comment-date{display:block;font-size:.75em}.wp-block-latest-comments .avatar,.wp-block-latest-comments__comment-avatar{border-radius:1.5em;display:block;float:right;height:2.5em;margin-left:.75em;width:2.5em}.wp-block-latest-posts.alignleft{margin-right:2em}.wp-block-latest-posts.alignright{margin-left:2em}.wp-block-latest-posts.wp-block-latest-posts__list{list-style:none}.wp-block-latest-posts.wp-block-latest-posts__list li{clear:both}.wp-block-latest-posts.is-grid{display:flex;flex-wrap:wrap;padding:0}.wp-block-latest-posts.is-grid li{margin:0 0 1.25em 1.25em;width:100%}@media (min-width:600px){.wp-block-latest-posts.columns-2 li{width:calc(50% - .625em)}.wp-block-latest-posts.columns-2 li:nth-child(2n){margin-left:0}.wp-block-latest-posts.columns-3 li{width:calc(33.33333% - .83333em)}.wp-block-latest-posts.columns-3 li:nth-child(3n){margin-left:0}.wp-block-latest-posts.columns-4 li{width:calc(25% - .9375em)}.wp-block-latest-posts.columns-4 li:nth-child(4n){margin-left:0}.wp-block-latest-posts.columns-5 li{width:calc(20% - 1em)}.wp-block-latest-posts.columns-5 li:nth-child(5n){margin-left:0}.wp-block-latest-posts.columns-6 li{width:calc(16.66667% - 1.04167em)}.wp-block-latest-posts.columns-6 li:nth-child(6n){margin-left:0}}.wp-block-latest-posts__post-author,.wp-block-latest-posts__post-date{display:block;color:#555;font-size:.8125em}.wp-block-latest-posts__post-excerpt{margin-top:.5em;margin-bottom:1em}.wp-block-latest-posts__featured-image a{display:inline-block}.wp-block-latest-posts__featured-image img{height:auto;width:auto}.wp-block-latest-posts__featured-image.alignleft{margin-right:1em}.wp-block-latest-posts__featured-image.alignright{margin-left:1em}.wp-block-latest-posts__featured-image.aligncenter{margin-bottom:1em;text-align:center}.block-editor-image-alignment-control__row .components-base-control__field{display:flex;justify-content:space-between;align-items:center}.block-editor-image-alignment-control__row .components-base-control__field .components-base-control__label{margin-bottom:0}ol.has-background,ul.has-background{padding:1.25em 2.375em}.wp-block-media-text{direction:ltr;display:-ms-grid;display:grid;-ms-grid-columns:50% 1fr;grid-template-columns:50% 1fr;-ms-grid-rows:auto;grid-template-rows:auto}.wp-block-media-text.has-media-on-the-right{-ms-grid-columns:1fr 50%;grid-template-columns:1fr 50%}.wp-block-media-text.is-vertically-aligned-top .wp-block-media-text__content,.wp-block-media-text.is-vertically-aligned-top .wp-block-media-text__media{-ms-grid-row-align:start;align-self:start}.wp-block-media-text.is-vertically-aligned-center .wp-block-media-text__content,.wp-block-media-text.is-vertically-aligned-center .wp-block-media-text__media,.wp-block-media-text .wp-block-media-text__content,.wp-block-media-text .wp-block-media-text__media{-ms-grid-row-align:center;align-self:center}.wp-block-media-text.is-vertically-aligned-bottom .wp-block-media-text__content,.wp-block-media-text.is-vertically-aligned-bottom .wp-block-media-text__media{-ms-grid-row-align:end;align-self:end}.wp-block-media-text .wp-block-media-text__media{-ms-grid-column:1;grid-column:1;-ms-grid-row:1;grid-row:1;margin:0}.wp-block-media-text .wp-block-media-text__content{direction:rtl;padding:0 8%;word-break:break-word}.wp-block-media-text.has-media-on-the-right .wp-block-media-text__media,.wp-block-media-text .wp-block-media-text__content{-ms-grid-column:2;grid-column:2;-ms-grid-row:1;grid-row:1}.wp-block-media-text.has-media-on-the-right .wp-block-media-text__content{-ms-grid-column:1;grid-column:1;-ms-grid-row:1;grid-row:1}.wp-block-media-text__media img,.wp-block-media-text__media video{max-width:unset;width:100%;vertical-align:middle}.wp-block-media-text.is-image-fill figure.wp-block-media-text__media{height:100%;min-height:250px;background-size:cover}.wp-block-media-text.is-image-fill figure.wp-block-media-text__media>img{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}@media (max-width:600px){.wp-block-media-text.is-stacked-on-mobile{-ms-grid-columns:100%!important;grid-template-columns:100%!important}.wp-block-media-text.is-stacked-on-mobile .wp-block-media-text__media{-ms-grid-column:1;grid-column:1;-ms-grid-row:1;grid-row:1}.wp-block-media-text.is-stacked-on-mobile .wp-block-media-text__content{-ms-grid-column:1;grid-column:1;-ms-grid-row:2;grid-row:2}}.wp-block-navigation:not(.has-background) .wp-block-navigation__container .wp-block-navigation-link:not(.has-text-color){color:#1e1e1e}.wp-block-navigation:not(.has-background) .wp-block-navigation__container .wp-block-navigation__container{background-color:#fff}.items-justified-left>ul{justify-content:flex-start}.items-justified-center>ul{justify-content:center}.items-justified-right>ul{justify-content:flex-end}.wp-block-navigation-link{display:flex;align-items:center;position:relative;margin:0}.wp-block-navigation-link .wp-block-navigation__container:empty{display:none}.wp-block-navigation__container{list-style:none;margin:0;padding-right:0;display:flex;flex-wrap:wrap}.is-vertical .wp-block-navigation__container{display:block}.has-child>.wp-block-navigation-link__content{padding-left:.5em}.has-child .wp-block-navigation__container{border:1px solid rgba(0,0,0,.15);background-color:inherit;color:inherit;position:absolute;right:0;top:100%;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;z-index:2;opacity:0;transition:opacity .1s linear;visibility:hidden}.has-child .wp-block-navigation__container>.wp-block-navigation-link>.wp-block-navigation-link__content{flex-grow:1}.has-child .wp-block-navigation__container>.wp-block-navigation-link>.wp-block-navigation-link__submenu-icon{padding-left:.5em}@media (min-width:782px){.has-child .wp-block-navigation__container{right:1.5em}.has-child .wp-block-navigation__container .wp-block-navigation__container{right:100%;top:-1px}.has-child .wp-block-navigation__container .wp-block-navigation__container:before{content:"";position:absolute;left:100%;height:100%;display:block;width:.5em;background:transparent}.has-child .wp-block-navigation__container .wp-block-navigation-link__submenu-icon svg{transform:rotate(0)}}.has-child:hover{cursor:pointer}.has-child:hover>.wp-block-navigation__container{visibility:visible;opacity:1;display:flex;flex-direction:column}.has-child:focus-within{cursor:pointer}.has-child:focus-within>.wp-block-navigation__container{visibility:visible;opacity:1;display:flex;flex-direction:column}.wp-block-navigation-link__content{color:inherit;text-decoration:none;padding:.5em 1em}.wp-block-navigation-link__content+.wp-block-navigation-link__content{padding-top:0}.has-text-color .wp-block-navigation-link__content{color:inherit}.wp-block-navigation-link__label{word-break:normal;overflow-wrap:break-word}.wp-block-navigation-link__submenu-icon{height:inherit;padding:.375em 0 .375em 1em}.wp-block-navigation-link__submenu-icon svg{fill:currentColor}@media (min-width:782px){.wp-block-navigation-link__submenu-icon svg{transform:rotate(-90deg)}}.is-small-text{font-size:.875em}.is-regular-text{font-size:1em}.is-large-text{font-size:2.25em}.is-larger-text{font-size:3em}.has-drop-cap:not(:focus):first-letter{float:right;font-size:8.4em;line-height:.68;font-weight:100;margin:.05em 0 0 .1em;text-transform:uppercase;font-style:normal}p.has-background{padding:1.25em 2.375em}p.has-text-color a{color:inherit}.wp-block-post-author{display:flex;flex-wrap:wrap}.wp-block-post-author__byline{width:100%;margin-top:0;margin-bottom:0;font-size:.5em}.wp-block-post-author__avatar{margin-left:1em}.wp-block-post-author__bio{margin-bottom:.7em;font-size:.7em}.wp-block-post-author__content{flex-grow:1;flex-basis:0}.wp-block-post-author__name{font-weight:700;margin:0}.wp-block-pullquote{padding:3em 0;margin-right:0;margin-left:0;text-align:center}.wp-block-pullquote.alignleft,.wp-block-pullquote.alignright{max-width:290px}.wp-block-pullquote.alignleft p,.wp-block-pullquote.alignright p{font-size:1.25em}.wp-block-pullquote p{font-size:1.75em;line-height:1.6}.wp-block-pullquote cite,.wp-block-pullquote footer{position:relative}.wp-block-pullquote .has-text-color a{color:inherit}.wp-block-pullquote:not(.is-style-solid-color){background:none}.wp-block-pullquote.is-style-solid-color{border:none}.wp-block-pullquote.is-style-solid-color blockquote{margin-right:auto;margin-left:auto;text-align:right;max-width:60%}.wp-block-pullquote.is-style-solid-color blockquote p{margin-top:0;margin-bottom:0;font-size:2em}.wp-block-pullquote.is-style-solid-color blockquote cite{text-transform:none;font-style:normal}.wp-block-pullquote cite{color:inherit}.wp-block-quote.is-large,.wp-block-quote.is-style-large{margin-bottom:1em;padding:0 1em}.wp-block-quote.is-large p,.wp-block-quote.is-style-large p{font-size:1.5em;font-style:italic;line-height:1.6}.wp-block-quote.is-large cite,.wp-block-quote.is-large footer,.wp-block-quote.is-style-large cite,.wp-block-quote.is-style-large footer{font-size:1.125em;text-align:left}.wp-block-rss.alignleft{margin-right:2em}.wp-block-rss.alignright{margin-left:2em}.wp-block-rss.is-grid{display:flex;flex-wrap:wrap;padding:0;list-style:none}.wp-block-rss.is-grid li{margin:0 0 1em 1em;width:100%}@media (min-width:600px){.wp-block-rss.columns-2 li{width:calc(50% - 1em)}.wp-block-rss.columns-3 li{width:calc(33.33333% - 1em)}.wp-block-rss.columns-4 li{width:calc(25% - 1em)}.wp-block-rss.columns-5 li{width:calc(20% - 1em)}.wp-block-rss.columns-6 li{width:calc(16.66667% - 1em)}}.wp-block-rss__item-author,.wp-block-rss__item-publish-date{display:block;color:#555;font-size:.8125em}.wp-block-search .wp-block-search__inside-wrapper{display:flex;flex:auto;flex-wrap:nowrap;max-width:100%}.wp-block-search .wp-block-search__label{width:100%}.wp-block-search .wp-block-search__input{flex-grow:1;min-width:3em;border:1px solid #949494}.wp-block-search .wp-block-search__button{margin-right:.625em;word-break:normal}.wp-block-search .wp-block-search__button svg{min-width:1.5em;min-height:1.5em}.wp-block-search.wp-block-search__button-only .wp-block-search__button{margin-right:0}.wp-block-search.wp-block-search__button-inside .wp-block-search__inside-wrapper{padding:4px;border:1px solid #949494}.wp-block-search.wp-block-search__button-inside .wp-block-search__inside-wrapper .wp-block-search__input{border-radius:0;border:none;padding:0 .25em 0 0}.wp-block-search.wp-block-search__button-inside .wp-block-search__inside-wrapper .wp-block-search__input:focus{outline:none}.wp-block-search.wp-block-search__button-inside .wp-block-search__inside-wrapper .wp-block-search__button{padding:.125em .5em}.wp-block-separator.is-style-wide{border-bottom-width:1px}.wp-block-separator.is-style-dots{background:none!important;border:none;text-align:center;max-width:none;line-height:1;height:auto}.wp-block-separator.is-style-dots:before{content:"\00b7 \00b7 \00b7";color:currentColor;font-size:1.5em;letter-spacing:2em;padding-left:2em;font-family:serif}.wp-block-custom-logo .aligncenter{display:table}.wp-block-social-links{display:flex;flex-wrap:wrap;justify-content:flex-start;padding-right:0;padding-left:0;text-indent:0;margin-right:0}.wp-block-social-links .wp-social-link a,.wp-block-social-links .wp-social-link a:hover{text-decoration:none;border-bottom:0;box-shadow:none}.wp-social-link{display:block;width:36px;height:36px;border-radius:9999px;margin:0 0 8px 8px;transition:transform .1s ease}@media (prefers-reduced-motion:reduce){.wp-social-link{transition-duration:0s}}.wp-social-link a{padding:6px;display:block;line-height:0;transition:transform .1s ease}.wp-social-link a,.wp-social-link a:active,.wp-social-link a:hover,.wp-social-link a:visited,.wp-social-link svg{color:currentColor;fill:currentColor}.wp-social-link:hover{transform:scale(1.1)}.wp-block-social-links.aligncenter{justify-content:center;display:flex}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link{background-color:#f0f0f0;color:#444}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-amazon{background-color:#f90;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-bandcamp{background-color:#1ea0c3;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-behance{background-color:#0757fe;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-codepen{background-color:#1e1f26;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-deviantart{background-color:#02e49b;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-dribbble{background-color:#e94c89;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-dropbox{background-color:#4280ff;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-etsy{background-color:#f45800;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-facebook{background-color:#1778f2;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-fivehundredpx{background-color:#000;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-flickr{background-color:#0461dd;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-foursquare{background-color:#e65678;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-github{background-color:#24292d;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-goodreads{background-color:#eceadd;color:#382110}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-google{background-color:#ea4434;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-instagram{background-color:#f00075;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-lastfm{background-color:#e21b24;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-linkedin{background-color:#0d66c2;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-mastodon{background-color:#3288d4;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-medium{background-color:#02ab6c;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-meetup{background-color:#f6405f;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-pinterest{background-color:#e60122;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-pocket{background-color:#ef4155;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-reddit{background-color:#fe4500;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-skype{background-color:#0478d7;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-snapchat{background-color:#fefc00;color:#fff;stroke:#000}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-soundcloud{background-color:#ff5600;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-spotify{background-color:#1bd760;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-tumblr{background-color:#011835;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-twitch{background-color:#6440a4;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-twitter{background-color:#1da1f2;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-vimeo{background-color:#1eb7ea;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-vk{background-color:#4680c2;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-wordpress{background-color:#3499cd;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-yelp{background-color:#d32422;color:#fff}.wp-block-social-links:not(.is-style-logos-only) .wp-social-link-youtube{background-color:red;color:#fff}.wp-block-social-links.is-style-logos-only .wp-social-link{background:none;padding:4px}.wp-block-social-links.is-style-logos-only .wp-social-link svg{width:28px;height:28px}.wp-block-social-links.is-style-logos-only .wp-social-link-amazon{color:#f90}.wp-block-social-links.is-style-logos-only .wp-social-link-bandcamp{color:#1ea0c3}.wp-block-social-links.is-style-logos-only .wp-social-link-behance{color:#0757fe}.wp-block-social-links.is-style-logos-only .wp-social-link-codepen{color:#1e1f26}.wp-block-social-links.is-style-logos-only .wp-social-link-deviantart{color:#02e49b}.wp-block-social-links.is-style-logos-only .wp-social-link-dribbble{color:#e94c89}.wp-block-social-links.is-style-logos-only .wp-social-link-dropbox{color:#4280ff}.wp-block-social-links.is-style-logos-only .wp-social-link-etsy{color:#f45800}.wp-block-social-links.is-style-logos-only .wp-social-link-facebook{color:#1778f2}.wp-block-social-links.is-style-logos-only .wp-social-link-fivehundredpx{color:#000}.wp-block-social-links.is-style-logos-only .wp-social-link-flickr{color:#0461dd}.wp-block-social-links.is-style-logos-only .wp-social-link-foursquare{color:#e65678}.wp-block-social-links.is-style-logos-only .wp-social-link-github{color:#24292d}.wp-block-social-links.is-style-logos-only .wp-social-link-goodreads{color:#382110}.wp-block-social-links.is-style-logos-only .wp-social-link-google{color:#ea4434}.wp-block-social-links.is-style-logos-only .wp-social-link-instagram{color:#f00075}.wp-block-social-links.is-style-logos-only .wp-social-link-lastfm{color:#e21b24}.wp-block-social-links.is-style-logos-only .wp-social-link-linkedin{color:#0d66c2}.wp-block-social-links.is-style-logos-only .wp-social-link-mastodon{color:#3288d4}.wp-block-social-links.is-style-logos-only .wp-social-link-medium{color:#02ab6c}.wp-block-social-links.is-style-logos-only .wp-social-link-meetup{color:#f6405f}.wp-block-social-links.is-style-logos-only .wp-social-link-pinterest{color:#e60122}.wp-block-social-links.is-style-logos-only .wp-social-link-pocket{color:#ef4155}.wp-block-social-links.is-style-logos-only .wp-social-link-reddit{color:#fe4500}.wp-block-social-links.is-style-logos-only .wp-social-link-skype{color:#0478d7}.wp-block-social-links.is-style-logos-only .wp-social-link-snapchat{color:#fff;stroke:#000}.wp-block-social-links.is-style-logos-only .wp-social-link-soundcloud{color:#ff5600}.wp-block-social-links.is-style-logos-only .wp-social-link-spotify{color:#1bd760}.wp-block-social-links.is-style-logos-only .wp-social-link-tumblr{color:#011835}.wp-block-social-links.is-style-logos-only .wp-social-link-twitch{color:#6440a4}.wp-block-social-links.is-style-logos-only .wp-social-link-twitter{color:#1da1f2}.wp-block-social-links.is-style-logos-only .wp-social-link-vimeo{color:#1eb7ea}.wp-block-social-links.is-style-logos-only .wp-social-link-vk{color:#4680c2}.wp-block-social-links.is-style-logos-only .wp-social-link-wordpress{color:#3499cd}.wp-block-social-links.is-style-logos-only .wp-social-link-yelp{background-color:#d32422;color:#fff}.wp-block-social-links.is-style-logos-only .wp-social-link-youtube{color:red}.wp-block-social-links.is-style-pill-shape .wp-social-link{width:auto}.wp-block-social-links.is-style-pill-shape .wp-social-link a{padding-right:16px;padding-left:16px}.wp-block-spacer{clear:both}p.wp-block-subhead{font-size:1.1em;font-style:italic;opacity:.75}.wp-block-table{overflow-x:auto}.wp-block-table table{width:100%}.wp-block-table .has-fixed-layout{table-layout:fixed;width:100%}.wp-block-table .has-fixed-layout td,.wp-block-table .has-fixed-layout th{word-break:break-word}.wp-block-table.aligncenter,.wp-block-table.alignleft,.wp-block-table.alignright{display:table;width:auto}.wp-block-table.aligncenter td,.wp-block-table.aligncenter th,.wp-block-table.alignleft td,.wp-block-table.alignleft th,.wp-block-table.alignright td,.wp-block-table.alignright th{word-break:break-word}.wp-block-table .has-subtle-light-gray-background-color{background-color:#f3f4f5}.wp-block-table .has-subtle-pale-green-background-color{background-color:#e9fbe5}.wp-block-table .has-subtle-pale-blue-background-color{background-color:#e7f5fe}.wp-block-table .has-subtle-pale-pink-background-color{background-color:#fcf0ef}.wp-block-table.is-style-stripes{border-spacing:0;border-collapse:inherit;background-color:transparent;border-bottom:1px solid #f0f0f0}.wp-block-table.is-style-stripes tbody tr:nth-child(odd){background-color:#f0f0f0}.wp-block-table.is-style-stripes.has-subtle-light-gray-background-color tbody tr:nth-child(odd){background-color:#f3f4f5}.wp-block-table.is-style-stripes.has-subtle-pale-green-background-color tbody tr:nth-child(odd){background-color:#e9fbe5}.wp-block-table.is-style-stripes.has-subtle-pale-blue-background-color tbody tr:nth-child(odd){background-color:#e7f5fe}.wp-block-table.is-style-stripes.has-subtle-pale-pink-background-color tbody tr:nth-child(odd){background-color:#fcf0ef}.wp-block-table.is-style-stripes td,.wp-block-table.is-style-stripes th{border-color:transparent}.wp-block-text-columns,.wp-block-text-columns.aligncenter{display:flex}.wp-block-text-columns .wp-block-column{margin:0 1em;padding:0}.wp-block-text-columns .wp-block-column:first-child{margin-right:0}.wp-block-text-columns .wp-block-column:last-child{margin-left:0}.wp-block-text-columns.columns-2 .wp-block-column{width:50%}.wp-block-text-columns.columns-3 .wp-block-column{width:33.33333%}.wp-block-text-columns.columns-4 .wp-block-column{width:25%}.wp-block-video{margin-right:0;margin-left:0}.wp-block-video video{max-width:100%}@supports ((position:-webkit-sticky) or (position:sticky)){.wp-block-video [poster]{object-fit:cover}}.wp-block-video.aligncenter{text-align:center}.wp-block-video figcaption{margin-top:.5em;margin-bottom:1em}.wp-block-post-featured-image a{display:inline-block}:root .has-pale-pink-background-color{background-color:#f78da7}:root .has-vivid-red-background-color{background-color:#cf2e2e}:root .has-luminous-vivid-orange-background-color{background-color:#ff6900}:root .has-luminous-vivid-amber-background-color{background-color:#fcb900}:root .has-light-green-cyan-background-color{background-color:#7bdcb5}:root .has-vivid-green-cyan-background-color{background-color:#00d084}:root .has-pale-cyan-blue-background-color{background-color:#8ed1fc}:root .has-vivid-cyan-blue-background-color{background-color:#0693e3}:root .has-vivid-purple-background-color{background-color:#9b51e0}:root .has-white-background-color{background-color:#fff}:root .has-very-light-gray-background-color{background-color:#eee}:root .has-cyan-bluish-gray-background-color{background-color:#abb8c3}:root .has-very-dark-gray-background-color{background-color:#313131}:root .has-black-background-color{background-color:#000}:root .has-pale-pink-color{color:#f78da7}:root .has-vivid-red-color{color:#cf2e2e}:root .has-luminous-vivid-orange-color{color:#ff6900}:root .has-luminous-vivid-amber-color{color:#fcb900}:root .has-light-green-cyan-color{color:#7bdcb5}:root .has-vivid-green-cyan-color{color:#00d084}:root .has-pale-cyan-blue-color{color:#8ed1fc}:root .has-vivid-cyan-blue-color{color:#0693e3}:root .has-vivid-purple-color{color:#9b51e0}:root .has-white-color{color:#fff}:root .has-very-light-gray-color{color:#eee}:root .has-cyan-bluish-gray-color{color:#abb8c3}:root .has-very-dark-gray-color{color:#313131}:root .has-black-color{color:#000}:root .has-vivid-cyan-blue-to-vivid-purple-gradient-background{background:linear-gradient(-135deg,#0693e3,#9b51e0)}:root .has-vivid-green-cyan-to-vivid-cyan-blue-gradient-background{background:linear-gradient(-135deg,#00d084,#0693e3)}:root .has-light-green-cyan-to-vivid-green-cyan-gradient-background{background:linear-gradient(-135deg,#7adcb4,#00d082)}:root .has-luminous-vivid-amber-to-luminous-vivid-orange-gradient-background{background:linear-gradient(-135deg,#fcb900,#ff6900)}:root .has-luminous-vivid-orange-to-vivid-red-gradient-background{background:linear-gradient(-135deg,#ff6900,#cf2e2e)}:root .has-very-light-gray-to-cyan-bluish-gray-gradient-background{background:linear-gradient(-135deg,#eee,#a9b8c3)}:root .has-cool-to-warm-spectrum-gradient-background{background:linear-gradient(-135deg,#4aeadc,#9778d1 20%,#cf2aba 40%,#ee2c82 60%,#fb6962 80%,#fef84c)}:root .has-blush-light-purple-gradient-background{background:linear-gradient(-135deg,#ffceec,#9896f0)}:root .has-blush-bordeaux-gradient-background{background:linear-gradient(-135deg,#fecda5,#fe2d2d 50%,#6b003e)}:root .has-purple-crush-gradient-background{background:linear-gradient(-135deg,#34e2e4,#4721fb 50%,#ab1dfe)}:root .has-luminous-dusk-gradient-background{background:linear-gradient(-135deg,#ffcb70,#c751c0 50%,#4158d0)}:root .has-hazy-dawn-gradient-background{background:linear-gradient(-135deg,#faaca8,#dad0ec)}:root .has-pale-ocean-gradient-background{background:linear-gradient(-135deg,#fff5cb,#b6e3d4 50%,#33a7b5)}:root .has-electric-grass-gradient-background{background:linear-gradient(-135deg,#caf880,#71ce7e)}:root .has-subdued-olive-gradient-background{background:linear-gradient(-135deg,#fafae1,#67a671)}:root .has-atomic-cream-gradient-background{background:linear-gradient(-135deg,#fdd79a,#004a59)}:root .has-nightshade-gradient-background{background:linear-gradient(-135deg,#330968,#31cdcf)}:root .has-midnight-gradient-background{background:linear-gradient(-135deg,#020381,#2874fc)}:root .has-link-color a{color:#00e;color:var(--wp--style--color--link,#00e)}.has-small-font-size{font-size:.8125em}.has-normal-font-size,.has-regular-font-size{font-size:1em}.has-medium-font-size{font-size:1.25em}.has-large-font-size{font-size:2.25em}.has-huge-font-size,.has-larger-font-size{font-size:2.625em}.has-text-align-center{text-align:center}.has-text-align-left{text-align:left}.has-text-align-right{text-align:right}#end-resizable-editor-section{display:none}.aligncenter{clear:both} \ No newline at end of file diff --git a/wp-includes/css/dist/block-library/style.css b/wp-includes/css/dist/block-library/style.css index 3b02b3034d..3be7eafc6c 100644 --- a/wp-includes/css/dist/block-library/style.css +++ b/wp-includes/css/dist/block-library/style.css @@ -172,6 +172,10 @@ /*rtl:ignore*/ margin-left: 2em; } +.wp-block-code code { + white-space: pre-wrap; + overflow-wrap: break-word; } + .wp-block-columns { display: flex; margin-bottom: 1.75em; diff --git a/wp-includes/css/dist/block-library/style.min.css b/wp-includes/css/dist/block-library/style.min.css index 7a0727580e..39268a972f 100644 --- a/wp-includes/css/dist/block-library/style.min.css +++ b/wp-includes/css/dist/block-library/style.min.css @@ -1,4 +1,4 @@ -:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-20:#005a87}#start-resizable-editor-section{display:none}.wp-block-audio figcaption{margin-top:.5em;margin-bottom:1em}.wp-block-audio audio{width:100%;min-width:300px}.wp-block-button__link{color:#fff;background-color:#32373c;border:none;border-radius:1.55em;box-shadow:none;cursor:pointer;display:inline-block;font-size:1.125em;padding:.667em 1.333em;text-align:center;text-decoration:none;overflow-wrap:break-word}.wp-block-button__link:active,.wp-block-button__link:focus,.wp-block-button__link:hover,.wp-block-button__link:visited{color:#fff}.wp-block-button__link.aligncenter{text-align:center}.wp-block-button__link.alignright{text-align:right}.wp-block-button.is-style-squared,.wp-block-button__link.wp-block-button.is-style-squared{border-radius:0}.wp-block-button.no-border-radius,.wp-block-button__link.no-border-radius{border-radius:0!important}.is-style-outline>.wp-block-button__link,.wp-block-button__link.is-style-outline{border:2px solid}.is-style-outline>.wp-block-button__link:not(.has-text-color),.wp-block-button__link.is-style-outline:not(.has-text-color){color:#32373c}.is-style-outline>.wp-block-button__link:not(.has-background),.wp-block-button__link.is-style-outline:not(.has-background){background-color:transparent}.wp-block-buttons .wp-block-button{display:inline-block;margin-right:.5em;margin-bottom:.5em}.wp-block-buttons .wp-block-button:last-child{margin-right:0}.wp-block-buttons.alignright .wp-block-button{margin-right:0;margin-left:.5em}.wp-block-buttons.alignright .wp-block-button:first-child{margin-left:0}.wp-block-buttons.alignleft .wp-block-button{margin-left:0;margin-right:.5em}.wp-block-buttons.alignleft .wp-block-button:last-child{margin-right:0}.wp-block-button.aligncenter,.wp-block-buttons.aligncenter,.wp-block-calendar{text-align:center}.wp-block-calendar tbody td,.wp-block-calendar th{padding:.25em;border:1px solid #ddd}.wp-block-calendar tfoot td{border:none}.wp-block-calendar table{width:100%;border-collapse:collapse}.wp-block-calendar table th{font-weight:400;background:#ddd}.wp-block-calendar a{text-decoration:underline}.wp-block-calendar table caption,.wp-block-calendar table tbody{color:#40464d}.wp-block-categories.alignleft{margin-right:2em}.wp-block-categories.alignright{margin-left:2em}.wp-block-columns{display:flex;margin-bottom:1.75em;flex-wrap:wrap}@media (min-width:782px){.wp-block-columns{flex-wrap:nowrap}}.wp-block-columns.has-background{padding:1.25em 2.375em}.wp-block-columns.are-vertically-aligned-top{align-items:flex-start}.wp-block-columns.are-vertically-aligned-center{align-items:center}.wp-block-columns.are-vertically-aligned-bottom{align-items:flex-end}.wp-block-column{flex-grow:1;min-width:0;word-break:break-word;overflow-wrap:break-word}@media (max-width:599px){.wp-block-column{flex-basis:100%!important}}@media (min-width:600px) and (max-width:781px){.wp-block-column:not(:only-child){flex-basis:calc(50% - 1em)!important;flex-grow:0}.wp-block-column:nth-child(2n){margin-left:2em}}@media (min-width:782px){.wp-block-column{flex-basis:0;flex-grow:1}.wp-block-column[style*=flex-basis]{flex-grow:0}.wp-block-column:not(:first-child){margin-left:2em}}.wp-block-column.is-vertically-aligned-top{align-self:flex-start}.wp-block-column.is-vertically-aligned-center{-ms-grid-row-align:center;align-self:center}.wp-block-column.is-vertically-aligned-bottom{align-self:flex-end}.wp-block-column.is-vertically-aligned-bottom,.wp-block-column.is-vertically-aligned-center,.wp-block-column.is-vertically-aligned-top{width:100%}.wp-block-cover,.wp-block-cover-image{position:relative;background-size:cover;background-position:50%;min-height:430px;height:100%;width:100%;display:flex;justify-content:center;align-items:center;padding:1em;box-sizing:border-box}.wp-block-cover-image.has-parallax,.wp-block-cover.has-parallax{background-attachment:fixed}@supports (-webkit-overflow-scrolling:touch){.wp-block-cover-image.has-parallax,.wp-block-cover.has-parallax{background-attachment:scroll}}@media (prefers-reduced-motion:reduce){.wp-block-cover-image.has-parallax,.wp-block-cover.has-parallax{background-attachment:scroll}}.wp-block-cover-image.is-repeated,.wp-block-cover.is-repeated{background-repeat:repeat;background-size:auto}.wp-block-cover-image.has-background-dim:not([class*=-background-color]),.wp-block-cover.has-background-dim:not([class*=-background-color]){background-color:#000}.wp-block-cover-image.has-background-dim:before,.wp-block-cover.has-background-dim:before{content:"";background-color:inherit}.wp-block-cover-image.has-background-dim:not(.has-background-gradient):before,.wp-block-cover-image .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim:not(.has-background-gradient):before,.wp-block-cover .wp-block-cover__gradient-background{position:absolute;top:0;left:0;bottom:0;right:0;z-index:1;opacity:.5}.wp-block-cover-image.has-background-dim.has-background-dim-10 .wp-block-cover__gradient-background,.wp-block-cover-image.has-background-dim.has-background-dim-10:not(.has-background-gradient):before,.wp-block-cover.has-background-dim.has-background-dim-10 .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim.has-background-dim-10:not(.has-background-gradient):before{opacity:.1}.wp-block-cover-image.has-background-dim.has-background-dim-20 .wp-block-cover__gradient-background,.wp-block-cover-image.has-background-dim.has-background-dim-20:not(.has-background-gradient):before,.wp-block-cover.has-background-dim.has-background-dim-20 .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim.has-background-dim-20:not(.has-background-gradient):before{opacity:.2}.wp-block-cover-image.has-background-dim.has-background-dim-30 .wp-block-cover__gradient-background,.wp-block-cover-image.has-background-dim.has-background-dim-30:not(.has-background-gradient):before,.wp-block-cover.has-background-dim.has-background-dim-30 .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim.has-background-dim-30:not(.has-background-gradient):before{opacity:.3}.wp-block-cover-image.has-background-dim.has-background-dim-40 .wp-block-cover__gradient-background,.wp-block-cover-image.has-background-dim.has-background-dim-40:not(.has-background-gradient):before,.wp-block-cover.has-background-dim.has-background-dim-40 .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim.has-background-dim-40:not(.has-background-gradient):before{opacity:.4}.wp-block-cover-image.has-background-dim.has-background-dim-50 .wp-block-cover__gradient-background,.wp-block-cover-image.has-background-dim.has-background-dim-50:not(.has-background-gradient):before,.wp-block-cover.has-background-dim.has-background-dim-50 .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim.has-background-dim-50:not(.has-background-gradient):before{opacity:.5}.wp-block-cover-image.has-background-dim.has-background-dim-60 .wp-block-cover__gradient-background,.wp-block-cover-image.has-background-dim.has-background-dim-60:not(.has-background-gradient):before,.wp-block-cover.has-background-dim.has-background-dim-60 .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim.has-background-dim-60:not(.has-background-gradient):before{opacity:.6}.wp-block-cover-image.has-background-dim.has-background-dim-70 .wp-block-cover__gradient-background,.wp-block-cover-image.has-background-dim.has-background-dim-70:not(.has-background-gradient):before,.wp-block-cover.has-background-dim.has-background-dim-70 .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim.has-background-dim-70:not(.has-background-gradient):before{opacity:.7}.wp-block-cover-image.has-background-dim.has-background-dim-80 .wp-block-cover__gradient-background,.wp-block-cover-image.has-background-dim.has-background-dim-80:not(.has-background-gradient):before,.wp-block-cover.has-background-dim.has-background-dim-80 .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim.has-background-dim-80:not(.has-background-gradient):before{opacity:.8}.wp-block-cover-image.has-background-dim.has-background-dim-90 .wp-block-cover__gradient-background,.wp-block-cover-image.has-background-dim.has-background-dim-90:not(.has-background-gradient):before,.wp-block-cover.has-background-dim.has-background-dim-90 .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim.has-background-dim-90:not(.has-background-gradient):before{opacity:.9}.wp-block-cover-image.has-background-dim.has-background-dim-100 .wp-block-cover__gradient-background,.wp-block-cover-image.has-background-dim.has-background-dim-100:not(.has-background-gradient):before,.wp-block-cover.has-background-dim.has-background-dim-100 .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim.has-background-dim-100:not(.has-background-gradient):before{opacity:1}.wp-block-cover-image.alignleft,.wp-block-cover-image.alignright,.wp-block-cover.alignleft,.wp-block-cover.alignright{max-width:290px;width:100%}.wp-block-cover-image:after,.wp-block-cover:after{display:block;content:"";font-size:0;min-height:inherit}@supports ((position:-webkit-sticky) or (position:sticky)){.wp-block-cover-image:after,.wp-block-cover:after{content:none}}.wp-block-cover-image.aligncenter,.wp-block-cover-image.alignleft,.wp-block-cover-image.alignright,.wp-block-cover.aligncenter,.wp-block-cover.alignleft,.wp-block-cover.alignright{display:flex}.wp-block-cover-image .wp-block-cover__inner-container,.wp-block-cover .wp-block-cover__inner-container{width:100%;z-index:1;color:#fff}.wp-block-cover-image .wp-block-subhead:not(.has-text-color),.wp-block-cover-image h1:not(.has-text-color),.wp-block-cover-image h2:not(.has-text-color),.wp-block-cover-image h3:not(.has-text-color),.wp-block-cover-image h4:not(.has-text-color),.wp-block-cover-image h5:not(.has-text-color),.wp-block-cover-image h6:not(.has-text-color),.wp-block-cover-image p:not(.has-text-color),.wp-block-cover .wp-block-subhead:not(.has-text-color),.wp-block-cover h1:not(.has-text-color),.wp-block-cover h2:not(.has-text-color),.wp-block-cover h3:not(.has-text-color),.wp-block-cover h4:not(.has-text-color),.wp-block-cover h5:not(.has-text-color),.wp-block-cover h6:not(.has-text-color),.wp-block-cover p:not(.has-text-color){color:inherit}.wp-block-cover-image.is-position-top-left,.wp-block-cover.is-position-top-left{align-items:flex-start;justify-content:flex-start}.wp-block-cover-image.is-position-top-center,.wp-block-cover.is-position-top-center{align-items:flex-start;justify-content:center}.wp-block-cover-image.is-position-top-right,.wp-block-cover.is-position-top-right{align-items:flex-start;justify-content:flex-end}.wp-block-cover-image.is-position-center-left,.wp-block-cover.is-position-center-left{align-items:center;justify-content:flex-start}.wp-block-cover-image.is-position-center-center,.wp-block-cover.is-position-center-center{align-items:center;justify-content:center}.wp-block-cover-image.is-position-center-right,.wp-block-cover.is-position-center-right{align-items:center;justify-content:flex-end}.wp-block-cover-image.is-position-bottom-left,.wp-block-cover.is-position-bottom-left{align-items:flex-end;justify-content:flex-start}.wp-block-cover-image.is-position-bottom-center,.wp-block-cover.is-position-bottom-center{align-items:flex-end;justify-content:center}.wp-block-cover-image.is-position-bottom-right,.wp-block-cover.is-position-bottom-right{align-items:flex-end;justify-content:flex-end}.wp-block-cover-image.has-custom-content-position.has-custom-content-position .wp-block-cover__inner-container,.wp-block-cover.has-custom-content-position.has-custom-content-position .wp-block-cover__inner-container{margin:0;width:auto}.wp-block-cover__video-background{position:absolute;top:50%;left:50%;transform:translateX(-50%) translateY(-50%);width:100%;height:100%;z-index:0;object-fit:cover}.wp-block-cover-image-text,.wp-block-cover-text,section.wp-block-cover-image h2{color:#fff}.wp-block-cover-image-text a,.wp-block-cover-image-text a:active,.wp-block-cover-image-text a:focus,.wp-block-cover-image-text a:hover,.wp-block-cover-text a,.wp-block-cover-text a:active,.wp-block-cover-text a:focus,.wp-block-cover-text a:hover,section.wp-block-cover-image h2 a,section.wp-block-cover-image h2 a:active,section.wp-block-cover-image h2 a:focus,section.wp-block-cover-image h2 a:hover{color:#fff}.wp-block-cover-image .wp-block-cover.has-left-content{justify-content:flex-start}.wp-block-cover-image .wp-block-cover.has-right-content{justify-content:flex-end}.wp-block-cover-image.has-left-content .wp-block-cover-image-text,.wp-block-cover.has-left-content .wp-block-cover-text,section.wp-block-cover-image.has-left-content>h2{margin-left:0;text-align:left}.wp-block-cover-image.has-right-content .wp-block-cover-image-text,.wp-block-cover.has-right-content .wp-block-cover-text,section.wp-block-cover-image.has-right-content>h2{margin-right:0;text-align:right}.wp-block-cover-image .wp-block-cover-image-text,.wp-block-cover .wp-block-cover-text,section.wp-block-cover-image>h2{font-size:2em;line-height:1.25;z-index:1;margin-bottom:0;max-width:580px;padding:.44em;text-align:center}.wp-block-embed.alignleft,.wp-block-embed.alignright,.wp-block[data-align=left]>[data-type="core/embed"],.wp-block[data-align=right]>[data-type="core/embed"]{max-width:360px;width:100%}.wp-block-embed.alignleft .wp-block-embed__wrapper,.wp-block-embed.alignright .wp-block-embed__wrapper,.wp-block[data-align=left]>[data-type="core/embed"] .wp-block-embed__wrapper,.wp-block[data-align=right]>[data-type="core/embed"] .wp-block-embed__wrapper{min-width:280px}.wp-block-embed{margin-bottom:1em}.wp-block-embed figcaption{margin-top:.5em;margin-bottom:1em}.wp-block-embed iframe{max-width:100%}.wp-block-embed__wrapper{position:relative}.wp-embed-responsive .wp-has-aspect-ratio .wp-block-embed__wrapper:before{content:"";display:block;padding-top:50%}.wp-embed-responsive .wp-has-aspect-ratio iframe{position:absolute;top:0;right:0;bottom:0;left:0;height:100%;width:100%}.wp-embed-responsive .wp-embed-aspect-21-9 .wp-block-embed__wrapper:before{padding-top:42.85%}.wp-embed-responsive .wp-embed-aspect-18-9 .wp-block-embed__wrapper:before{padding-top:50%}.wp-embed-responsive .wp-embed-aspect-16-9 .wp-block-embed__wrapper:before{padding-top:56.25%}.wp-embed-responsive .wp-embed-aspect-4-3 .wp-block-embed__wrapper:before{padding-top:75%}.wp-embed-responsive .wp-embed-aspect-1-1 .wp-block-embed__wrapper:before{padding-top:100%}.wp-embed-responsive .wp-embed-aspect-9-16 .wp-block-embed__wrapper:before{padding-top:177.77%}.wp-embed-responsive .wp-embed-aspect-1-2 .wp-block-embed__wrapper:before{padding-top:200%}.wp-block-file{margin-bottom:1.5em}.wp-block-file.aligncenter{text-align:center}.wp-block-file.alignright{text-align:right}.wp-block-file .wp-block-file__button{background:#32373c;border-radius:2em;color:#fff;font-size:.8em;padding:.5em 1em}.wp-block-file a.wp-block-file__button{text-decoration:none}.wp-block-file a.wp-block-file__button:active,.wp-block-file a.wp-block-file__button:focus,.wp-block-file a.wp-block-file__button:hover,.wp-block-file a.wp-block-file__button:visited{box-shadow:none;color:#fff;opacity:.85;text-decoration:none}.wp-block-file *+.wp-block-file__button{margin-left:.75em}.blocks-gallery-grid,.wp-block-gallery{display:flex;flex-wrap:wrap;list-style-type:none;padding:0;margin:0}.blocks-gallery-grid .blocks-gallery-image,.blocks-gallery-grid .blocks-gallery-item,.wp-block-gallery .blocks-gallery-image,.wp-block-gallery .blocks-gallery-item{margin:0 1em 1em 0;display:flex;flex-grow:1;flex-direction:column;justify-content:center;position:relative;width:calc(50% - 1em)}.blocks-gallery-grid .blocks-gallery-image:nth-of-type(2n),.blocks-gallery-grid .blocks-gallery-item:nth-of-type(2n),.wp-block-gallery .blocks-gallery-image:nth-of-type(2n),.wp-block-gallery .blocks-gallery-item:nth-of-type(2n){margin-right:0}.blocks-gallery-grid .blocks-gallery-image figure,.blocks-gallery-grid .blocks-gallery-item figure,.wp-block-gallery .blocks-gallery-image figure,.wp-block-gallery .blocks-gallery-item figure{margin:0;height:100%}@supports ((position:-webkit-sticky) or (position:sticky)){.blocks-gallery-grid .blocks-gallery-image figure,.blocks-gallery-grid .blocks-gallery-item figure,.wp-block-gallery .blocks-gallery-image figure,.wp-block-gallery .blocks-gallery-item figure{display:flex;align-items:flex-end;justify-content:flex-start}}.blocks-gallery-grid .blocks-gallery-image img,.blocks-gallery-grid .blocks-gallery-item img,.wp-block-gallery .blocks-gallery-image img,.wp-block-gallery .blocks-gallery-item img{display:block;max-width:100%;height:auto;width:100%}@supports ((position:-webkit-sticky) or (position:sticky)){.blocks-gallery-grid .blocks-gallery-image img,.blocks-gallery-grid .blocks-gallery-item img,.wp-block-gallery .blocks-gallery-image img,.wp-block-gallery .blocks-gallery-item img{width:auto}}.blocks-gallery-grid .blocks-gallery-image figcaption,.blocks-gallery-grid .blocks-gallery-item figcaption,.wp-block-gallery .blocks-gallery-image figcaption,.wp-block-gallery .blocks-gallery-item figcaption{position:absolute;bottom:0;width:100%;max-height:100%;overflow:auto;padding:3em .77em .7em;color:#fff;text-align:center;font-size:.8em;background:linear-gradient(0deg,rgba(0,0,0,.7),rgba(0,0,0,.3) 70%,transparent);box-sizing:border-box;margin:0}.blocks-gallery-grid .blocks-gallery-image figcaption img,.blocks-gallery-grid .blocks-gallery-item figcaption img,.wp-block-gallery .blocks-gallery-image figcaption img,.wp-block-gallery .blocks-gallery-item figcaption img{display:inline}.blocks-gallery-grid figcaption,.wp-block-gallery figcaption{flex-grow:1}.blocks-gallery-grid.is-cropped .blocks-gallery-image a,.blocks-gallery-grid.is-cropped .blocks-gallery-image img,.blocks-gallery-grid.is-cropped .blocks-gallery-item a,.blocks-gallery-grid.is-cropped .blocks-gallery-item img,.wp-block-gallery.is-cropped .blocks-gallery-image a,.wp-block-gallery.is-cropped .blocks-gallery-image img,.wp-block-gallery.is-cropped .blocks-gallery-item a,.wp-block-gallery.is-cropped .blocks-gallery-item img{width:100%}@supports ((position:-webkit-sticky) or (position:sticky)){.blocks-gallery-grid.is-cropped .blocks-gallery-image a,.blocks-gallery-grid.is-cropped .blocks-gallery-image img,.blocks-gallery-grid.is-cropped .blocks-gallery-item a,.blocks-gallery-grid.is-cropped .blocks-gallery-item img,.wp-block-gallery.is-cropped .blocks-gallery-image a,.wp-block-gallery.is-cropped .blocks-gallery-image img,.wp-block-gallery.is-cropped .blocks-gallery-item a,.wp-block-gallery.is-cropped .blocks-gallery-item img{height:100%;flex:1;object-fit:cover}}.blocks-gallery-grid.columns-1 .blocks-gallery-image,.blocks-gallery-grid.columns-1 .blocks-gallery-item,.wp-block-gallery.columns-1 .blocks-gallery-image,.wp-block-gallery.columns-1 .blocks-gallery-item{width:100%;margin-right:0}@media (min-width:600px){.blocks-gallery-grid.columns-3 .blocks-gallery-image,.blocks-gallery-grid.columns-3 .blocks-gallery-item,.wp-block-gallery.columns-3 .blocks-gallery-image,.wp-block-gallery.columns-3 .blocks-gallery-item{width:calc(33.33333% - .66667em);margin-right:1em}.blocks-gallery-grid.columns-4 .blocks-gallery-image,.blocks-gallery-grid.columns-4 .blocks-gallery-item,.wp-block-gallery.columns-4 .blocks-gallery-image,.wp-block-gallery.columns-4 .blocks-gallery-item{width:calc(25% - .75em);margin-right:1em}.blocks-gallery-grid.columns-5 .blocks-gallery-image,.blocks-gallery-grid.columns-5 .blocks-gallery-item,.wp-block-gallery.columns-5 .blocks-gallery-image,.wp-block-gallery.columns-5 .blocks-gallery-item{width:calc(20% - .8em);margin-right:1em}.blocks-gallery-grid.columns-6 .blocks-gallery-image,.blocks-gallery-grid.columns-6 .blocks-gallery-item,.wp-block-gallery.columns-6 .blocks-gallery-image,.wp-block-gallery.columns-6 .blocks-gallery-item{width:calc(16.66667% - .83333em);margin-right:1em}.blocks-gallery-grid.columns-7 .blocks-gallery-image,.blocks-gallery-grid.columns-7 .blocks-gallery-item,.wp-block-gallery.columns-7 .blocks-gallery-image,.wp-block-gallery.columns-7 .blocks-gallery-item{width:calc(14.28571% - .85714em);margin-right:1em}.blocks-gallery-grid.columns-8 .blocks-gallery-image,.blocks-gallery-grid.columns-8 .blocks-gallery-item,.wp-block-gallery.columns-8 .blocks-gallery-image,.wp-block-gallery.columns-8 .blocks-gallery-item{width:calc(12.5% - .875em);margin-right:1em}.blocks-gallery-grid.columns-1 .blocks-gallery-image:nth-of-type(1n),.blocks-gallery-grid.columns-1 .blocks-gallery-item:nth-of-type(1n),.wp-block-gallery.columns-1 .blocks-gallery-image:nth-of-type(1n),.wp-block-gallery.columns-1 .blocks-gallery-item:nth-of-type(1n){margin-right:0}.blocks-gallery-grid.columns-2 .blocks-gallery-image:nth-of-type(2n),.blocks-gallery-grid.columns-2 .blocks-gallery-item:nth-of-type(2n),.wp-block-gallery.columns-2 .blocks-gallery-image:nth-of-type(2n),.wp-block-gallery.columns-2 .blocks-gallery-item:nth-of-type(2n){margin-right:0}.blocks-gallery-grid.columns-3 .blocks-gallery-image:nth-of-type(3n),.blocks-gallery-grid.columns-3 .blocks-gallery-item:nth-of-type(3n),.wp-block-gallery.columns-3 .blocks-gallery-image:nth-of-type(3n),.wp-block-gallery.columns-3 .blocks-gallery-item:nth-of-type(3n){margin-right:0}.blocks-gallery-grid.columns-4 .blocks-gallery-image:nth-of-type(4n),.blocks-gallery-grid.columns-4 .blocks-gallery-item:nth-of-type(4n),.wp-block-gallery.columns-4 .blocks-gallery-image:nth-of-type(4n),.wp-block-gallery.columns-4 .blocks-gallery-item:nth-of-type(4n){margin-right:0}.blocks-gallery-grid.columns-5 .blocks-gallery-image:nth-of-type(5n),.blocks-gallery-grid.columns-5 .blocks-gallery-item:nth-of-type(5n),.wp-block-gallery.columns-5 .blocks-gallery-image:nth-of-type(5n),.wp-block-gallery.columns-5 .blocks-gallery-item:nth-of-type(5n){margin-right:0}.blocks-gallery-grid.columns-6 .blocks-gallery-image:nth-of-type(6n),.blocks-gallery-grid.columns-6 .blocks-gallery-item:nth-of-type(6n),.wp-block-gallery.columns-6 .blocks-gallery-image:nth-of-type(6n),.wp-block-gallery.columns-6 .blocks-gallery-item:nth-of-type(6n){margin-right:0}.blocks-gallery-grid.columns-7 .blocks-gallery-image:nth-of-type(7n),.blocks-gallery-grid.columns-7 .blocks-gallery-item:nth-of-type(7n),.wp-block-gallery.columns-7 .blocks-gallery-image:nth-of-type(7n),.wp-block-gallery.columns-7 .blocks-gallery-item:nth-of-type(7n){margin-right:0}.blocks-gallery-grid.columns-8 .blocks-gallery-image:nth-of-type(8n),.blocks-gallery-grid.columns-8 .blocks-gallery-item:nth-of-type(8n),.wp-block-gallery.columns-8 .blocks-gallery-image:nth-of-type(8n),.wp-block-gallery.columns-8 .blocks-gallery-item:nth-of-type(8n){margin-right:0}}.blocks-gallery-grid .blocks-gallery-image:last-child,.blocks-gallery-grid .blocks-gallery-item:last-child,.wp-block-gallery .blocks-gallery-image:last-child,.wp-block-gallery .blocks-gallery-item:last-child{margin-right:0}.blocks-gallery-grid.alignleft,.blocks-gallery-grid.alignright,.wp-block-gallery.alignleft,.wp-block-gallery.alignright{max-width:290px;width:100%}.blocks-gallery-grid.aligncenter .blocks-gallery-item figure,.wp-block-gallery.aligncenter .blocks-gallery-item figure{justify-content:center}.wp-block-group{box-sizing:border-box}h1.has-background,h2.has-background,h3.has-background,h4.has-background,h5.has-background,h6.has-background{padding:1.25em 2.375em}.wp-block-image{margin-bottom:1em}.wp-block-image img{max-width:100%}.wp-block-image.aligncenter{text-align:center}.wp-block-image.alignfull img,.wp-block-image.alignwide img{width:100%}.wp-block-image .aligncenter,.wp-block-image .alignleft,.wp-block-image .alignright{display:table}.wp-block-image .aligncenter>figcaption,.wp-block-image .alignleft>figcaption,.wp-block-image .alignright>figcaption{display:table-caption;caption-side:bottom}.wp-block-image .alignleft{float:left;margin:.5em 1em .5em 0}.wp-block-image .alignright{float:right;margin:.5em 0 .5em 1em}.wp-block-image .aligncenter{margin-left:auto;margin-right:auto}.wp-block-image figcaption{margin-top:.5em;margin-bottom:1em}.is-style-circle-mask img,.is-style-rounded img{border-radius:9999px}@supports ((-webkit-mask-image:none) or (mask-image:none)) or (-webkit-mask-image:none){.is-style-circle-mask img{-webkit-mask-image:url('data:image/svg+xml;utf8,');mask-image:url('data:image/svg+xml;utf8,');mask-mode:alpha;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:contain;mask-size:contain;-webkit-mask-position:center;mask-position:center;border-radius:0}}.wp-block-latest-comments__comment{line-height:1.1;list-style:none;margin-bottom:1em}.has-avatars .wp-block-latest-comments__comment{min-height:2.25em;list-style:none}.has-avatars .wp-block-latest-comments__comment .wp-block-latest-comments__comment-excerpt,.has-avatars .wp-block-latest-comments__comment .wp-block-latest-comments__comment-meta{margin-left:3.25em}.has-dates .wp-block-latest-comments__comment,.has-excerpts .wp-block-latest-comments__comment{line-height:1.5}.wp-block-latest-comments__comment-excerpt p{font-size:.875em;line-height:1.8;margin:.36em 0 1.4em}.wp-block-latest-comments__comment-date{display:block;font-size:.75em}.wp-block-latest-comments .avatar,.wp-block-latest-comments__comment-avatar{border-radius:1.5em;display:block;float:left;height:2.5em;margin-right:.75em;width:2.5em}.wp-block-latest-posts.alignleft{margin-right:2em}.wp-block-latest-posts.alignright{margin-left:2em}.wp-block-latest-posts.wp-block-latest-posts__list{list-style:none}.wp-block-latest-posts.wp-block-latest-posts__list li{clear:both}.wp-block-latest-posts.is-grid{display:flex;flex-wrap:wrap;padding:0}.wp-block-latest-posts.is-grid li{margin:0 1.25em 1.25em 0;width:100%}@media (min-width:600px){.wp-block-latest-posts.columns-2 li{width:calc(50% - .625em)}.wp-block-latest-posts.columns-2 li:nth-child(2n){margin-right:0}.wp-block-latest-posts.columns-3 li{width:calc(33.33333% - .83333em)}.wp-block-latest-posts.columns-3 li:nth-child(3n){margin-right:0}.wp-block-latest-posts.columns-4 li{width:calc(25% - .9375em)}.wp-block-latest-posts.columns-4 li:nth-child(4n){margin-right:0}.wp-block-latest-posts.columns-5 li{width:calc(20% - 1em)}.wp-block-latest-posts.columns-5 li:nth-child(5n){margin-right:0}.wp-block-latest-posts.columns-6 li{width:calc(16.66667% - 1.04167em)}.wp-block-latest-posts.columns-6 li:nth-child(6n){margin-right:0}}.wp-block-latest-posts__post-author,.wp-block-latest-posts__post-date{display:block;color:#555;font-size:.8125em}.wp-block-latest-posts__post-excerpt{margin-top:.5em;margin-bottom:1em}.wp-block-latest-posts__featured-image a{display:inline-block}.wp-block-latest-posts__featured-image img{height:auto;width:auto}.wp-block-latest-posts__featured-image.alignleft{margin-right:1em}.wp-block-latest-posts__featured-image.alignright{margin-left:1em}.wp-block-latest-posts__featured-image.aligncenter{margin-bottom:1em;text-align:center}.block-editor-image-alignment-control__row .components-base-control__field{display:flex;justify-content:space-between;align-items:center}.block-editor-image-alignment-control__row .components-base-control__field .components-base-control__label{margin-bottom:0}ol.has-background,ul.has-background{padding:1.25em 2.375em}.wp-block-media-text{ +:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-20:#005a87}#start-resizable-editor-section{display:none}.wp-block-audio figcaption{margin-top:.5em;margin-bottom:1em}.wp-block-audio audio{width:100%;min-width:300px}.wp-block-button__link{color:#fff;background-color:#32373c;border:none;border-radius:1.55em;box-shadow:none;cursor:pointer;display:inline-block;font-size:1.125em;padding:.667em 1.333em;text-align:center;text-decoration:none;overflow-wrap:break-word}.wp-block-button__link:active,.wp-block-button__link:focus,.wp-block-button__link:hover,.wp-block-button__link:visited{color:#fff}.wp-block-button__link.aligncenter{text-align:center}.wp-block-button__link.alignright{text-align:right}.wp-block-button.is-style-squared,.wp-block-button__link.wp-block-button.is-style-squared{border-radius:0}.wp-block-button.no-border-radius,.wp-block-button__link.no-border-radius{border-radius:0!important}.is-style-outline>.wp-block-button__link,.wp-block-button__link.is-style-outline{border:2px solid}.is-style-outline>.wp-block-button__link:not(.has-text-color),.wp-block-button__link.is-style-outline:not(.has-text-color){color:#32373c}.is-style-outline>.wp-block-button__link:not(.has-background),.wp-block-button__link.is-style-outline:not(.has-background){background-color:transparent}.wp-block-buttons .wp-block-button{display:inline-block;margin-right:.5em;margin-bottom:.5em}.wp-block-buttons .wp-block-button:last-child{margin-right:0}.wp-block-buttons.alignright .wp-block-button{margin-right:0;margin-left:.5em}.wp-block-buttons.alignright .wp-block-button:first-child{margin-left:0}.wp-block-buttons.alignleft .wp-block-button{margin-left:0;margin-right:.5em}.wp-block-buttons.alignleft .wp-block-button:last-child{margin-right:0}.wp-block-button.aligncenter,.wp-block-buttons.aligncenter,.wp-block-calendar{text-align:center}.wp-block-calendar tbody td,.wp-block-calendar th{padding:.25em;border:1px solid #ddd}.wp-block-calendar tfoot td{border:none}.wp-block-calendar table{width:100%;border-collapse:collapse}.wp-block-calendar table th{font-weight:400;background:#ddd}.wp-block-calendar a{text-decoration:underline}.wp-block-calendar table caption,.wp-block-calendar table tbody{color:#40464d}.wp-block-categories.alignleft{margin-right:2em}.wp-block-categories.alignright{margin-left:2em}.wp-block-code code{white-space:pre-wrap;overflow-wrap:break-word}.wp-block-columns{display:flex;margin-bottom:1.75em;flex-wrap:wrap}@media (min-width:782px){.wp-block-columns{flex-wrap:nowrap}}.wp-block-columns.has-background{padding:1.25em 2.375em}.wp-block-columns.are-vertically-aligned-top{align-items:flex-start}.wp-block-columns.are-vertically-aligned-center{align-items:center}.wp-block-columns.are-vertically-aligned-bottom{align-items:flex-end}.wp-block-column{flex-grow:1;min-width:0;word-break:break-word;overflow-wrap:break-word}@media (max-width:599px){.wp-block-column{flex-basis:100%!important}}@media (min-width:600px) and (max-width:781px){.wp-block-column:not(:only-child){flex-basis:calc(50% - 1em)!important;flex-grow:0}.wp-block-column:nth-child(2n){margin-left:2em}}@media (min-width:782px){.wp-block-column{flex-basis:0;flex-grow:1}.wp-block-column[style*=flex-basis]{flex-grow:0}.wp-block-column:not(:first-child){margin-left:2em}}.wp-block-column.is-vertically-aligned-top{align-self:flex-start}.wp-block-column.is-vertically-aligned-center{-ms-grid-row-align:center;align-self:center}.wp-block-column.is-vertically-aligned-bottom{align-self:flex-end}.wp-block-column.is-vertically-aligned-bottom,.wp-block-column.is-vertically-aligned-center,.wp-block-column.is-vertically-aligned-top{width:100%}.wp-block-cover,.wp-block-cover-image{position:relative;background-size:cover;background-position:50%;min-height:430px;height:100%;width:100%;display:flex;justify-content:center;align-items:center;padding:1em;box-sizing:border-box}.wp-block-cover-image.has-parallax,.wp-block-cover.has-parallax{background-attachment:fixed}@supports (-webkit-overflow-scrolling:touch){.wp-block-cover-image.has-parallax,.wp-block-cover.has-parallax{background-attachment:scroll}}@media (prefers-reduced-motion:reduce){.wp-block-cover-image.has-parallax,.wp-block-cover.has-parallax{background-attachment:scroll}}.wp-block-cover-image.is-repeated,.wp-block-cover.is-repeated{background-repeat:repeat;background-size:auto}.wp-block-cover-image.has-background-dim:not([class*=-background-color]),.wp-block-cover.has-background-dim:not([class*=-background-color]){background-color:#000}.wp-block-cover-image.has-background-dim:before,.wp-block-cover.has-background-dim:before{content:"";background-color:inherit}.wp-block-cover-image.has-background-dim:not(.has-background-gradient):before,.wp-block-cover-image .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim:not(.has-background-gradient):before,.wp-block-cover .wp-block-cover__gradient-background{position:absolute;top:0;left:0;bottom:0;right:0;z-index:1;opacity:.5}.wp-block-cover-image.has-background-dim.has-background-dim-10 .wp-block-cover__gradient-background,.wp-block-cover-image.has-background-dim.has-background-dim-10:not(.has-background-gradient):before,.wp-block-cover.has-background-dim.has-background-dim-10 .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim.has-background-dim-10:not(.has-background-gradient):before{opacity:.1}.wp-block-cover-image.has-background-dim.has-background-dim-20 .wp-block-cover__gradient-background,.wp-block-cover-image.has-background-dim.has-background-dim-20:not(.has-background-gradient):before,.wp-block-cover.has-background-dim.has-background-dim-20 .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim.has-background-dim-20:not(.has-background-gradient):before{opacity:.2}.wp-block-cover-image.has-background-dim.has-background-dim-30 .wp-block-cover__gradient-background,.wp-block-cover-image.has-background-dim.has-background-dim-30:not(.has-background-gradient):before,.wp-block-cover.has-background-dim.has-background-dim-30 .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim.has-background-dim-30:not(.has-background-gradient):before{opacity:.3}.wp-block-cover-image.has-background-dim.has-background-dim-40 .wp-block-cover__gradient-background,.wp-block-cover-image.has-background-dim.has-background-dim-40:not(.has-background-gradient):before,.wp-block-cover.has-background-dim.has-background-dim-40 .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim.has-background-dim-40:not(.has-background-gradient):before{opacity:.4}.wp-block-cover-image.has-background-dim.has-background-dim-50 .wp-block-cover__gradient-background,.wp-block-cover-image.has-background-dim.has-background-dim-50:not(.has-background-gradient):before,.wp-block-cover.has-background-dim.has-background-dim-50 .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim.has-background-dim-50:not(.has-background-gradient):before{opacity:.5}.wp-block-cover-image.has-background-dim.has-background-dim-60 .wp-block-cover__gradient-background,.wp-block-cover-image.has-background-dim.has-background-dim-60:not(.has-background-gradient):before,.wp-block-cover.has-background-dim.has-background-dim-60 .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim.has-background-dim-60:not(.has-background-gradient):before{opacity:.6}.wp-block-cover-image.has-background-dim.has-background-dim-70 .wp-block-cover__gradient-background,.wp-block-cover-image.has-background-dim.has-background-dim-70:not(.has-background-gradient):before,.wp-block-cover.has-background-dim.has-background-dim-70 .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim.has-background-dim-70:not(.has-background-gradient):before{opacity:.7}.wp-block-cover-image.has-background-dim.has-background-dim-80 .wp-block-cover__gradient-background,.wp-block-cover-image.has-background-dim.has-background-dim-80:not(.has-background-gradient):before,.wp-block-cover.has-background-dim.has-background-dim-80 .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim.has-background-dim-80:not(.has-background-gradient):before{opacity:.8}.wp-block-cover-image.has-background-dim.has-background-dim-90 .wp-block-cover__gradient-background,.wp-block-cover-image.has-background-dim.has-background-dim-90:not(.has-background-gradient):before,.wp-block-cover.has-background-dim.has-background-dim-90 .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim.has-background-dim-90:not(.has-background-gradient):before{opacity:.9}.wp-block-cover-image.has-background-dim.has-background-dim-100 .wp-block-cover__gradient-background,.wp-block-cover-image.has-background-dim.has-background-dim-100:not(.has-background-gradient):before,.wp-block-cover.has-background-dim.has-background-dim-100 .wp-block-cover__gradient-background,.wp-block-cover.has-background-dim.has-background-dim-100:not(.has-background-gradient):before{opacity:1}.wp-block-cover-image.alignleft,.wp-block-cover-image.alignright,.wp-block-cover.alignleft,.wp-block-cover.alignright{max-width:290px;width:100%}.wp-block-cover-image:after,.wp-block-cover:after{display:block;content:"";font-size:0;min-height:inherit}@supports ((position:-webkit-sticky) or (position:sticky)){.wp-block-cover-image:after,.wp-block-cover:after{content:none}}.wp-block-cover-image.aligncenter,.wp-block-cover-image.alignleft,.wp-block-cover-image.alignright,.wp-block-cover.aligncenter,.wp-block-cover.alignleft,.wp-block-cover.alignright{display:flex}.wp-block-cover-image .wp-block-cover__inner-container,.wp-block-cover .wp-block-cover__inner-container{width:100%;z-index:1;color:#fff}.wp-block-cover-image .wp-block-subhead:not(.has-text-color),.wp-block-cover-image h1:not(.has-text-color),.wp-block-cover-image h2:not(.has-text-color),.wp-block-cover-image h3:not(.has-text-color),.wp-block-cover-image h4:not(.has-text-color),.wp-block-cover-image h5:not(.has-text-color),.wp-block-cover-image h6:not(.has-text-color),.wp-block-cover-image p:not(.has-text-color),.wp-block-cover .wp-block-subhead:not(.has-text-color),.wp-block-cover h1:not(.has-text-color),.wp-block-cover h2:not(.has-text-color),.wp-block-cover h3:not(.has-text-color),.wp-block-cover h4:not(.has-text-color),.wp-block-cover h5:not(.has-text-color),.wp-block-cover h6:not(.has-text-color),.wp-block-cover p:not(.has-text-color){color:inherit}.wp-block-cover-image.is-position-top-left,.wp-block-cover.is-position-top-left{align-items:flex-start;justify-content:flex-start}.wp-block-cover-image.is-position-top-center,.wp-block-cover.is-position-top-center{align-items:flex-start;justify-content:center}.wp-block-cover-image.is-position-top-right,.wp-block-cover.is-position-top-right{align-items:flex-start;justify-content:flex-end}.wp-block-cover-image.is-position-center-left,.wp-block-cover.is-position-center-left{align-items:center;justify-content:flex-start}.wp-block-cover-image.is-position-center-center,.wp-block-cover.is-position-center-center{align-items:center;justify-content:center}.wp-block-cover-image.is-position-center-right,.wp-block-cover.is-position-center-right{align-items:center;justify-content:flex-end}.wp-block-cover-image.is-position-bottom-left,.wp-block-cover.is-position-bottom-left{align-items:flex-end;justify-content:flex-start}.wp-block-cover-image.is-position-bottom-center,.wp-block-cover.is-position-bottom-center{align-items:flex-end;justify-content:center}.wp-block-cover-image.is-position-bottom-right,.wp-block-cover.is-position-bottom-right{align-items:flex-end;justify-content:flex-end}.wp-block-cover-image.has-custom-content-position.has-custom-content-position .wp-block-cover__inner-container,.wp-block-cover.has-custom-content-position.has-custom-content-position .wp-block-cover__inner-container{margin:0;width:auto}.wp-block-cover__video-background{position:absolute;top:50%;left:50%;transform:translateX(-50%) translateY(-50%);width:100%;height:100%;z-index:0;object-fit:cover}.wp-block-cover-image-text,.wp-block-cover-text,section.wp-block-cover-image h2{color:#fff}.wp-block-cover-image-text a,.wp-block-cover-image-text a:active,.wp-block-cover-image-text a:focus,.wp-block-cover-image-text a:hover,.wp-block-cover-text a,.wp-block-cover-text a:active,.wp-block-cover-text a:focus,.wp-block-cover-text a:hover,section.wp-block-cover-image h2 a,section.wp-block-cover-image h2 a:active,section.wp-block-cover-image h2 a:focus,section.wp-block-cover-image h2 a:hover{color:#fff}.wp-block-cover-image .wp-block-cover.has-left-content{justify-content:flex-start}.wp-block-cover-image .wp-block-cover.has-right-content{justify-content:flex-end}.wp-block-cover-image.has-left-content .wp-block-cover-image-text,.wp-block-cover.has-left-content .wp-block-cover-text,section.wp-block-cover-image.has-left-content>h2{margin-left:0;text-align:left}.wp-block-cover-image.has-right-content .wp-block-cover-image-text,.wp-block-cover.has-right-content .wp-block-cover-text,section.wp-block-cover-image.has-right-content>h2{margin-right:0;text-align:right}.wp-block-cover-image .wp-block-cover-image-text,.wp-block-cover .wp-block-cover-text,section.wp-block-cover-image>h2{font-size:2em;line-height:1.25;z-index:1;margin-bottom:0;max-width:580px;padding:.44em;text-align:center}.wp-block-embed.alignleft,.wp-block-embed.alignright,.wp-block[data-align=left]>[data-type="core/embed"],.wp-block[data-align=right]>[data-type="core/embed"]{max-width:360px;width:100%}.wp-block-embed.alignleft .wp-block-embed__wrapper,.wp-block-embed.alignright .wp-block-embed__wrapper,.wp-block[data-align=left]>[data-type="core/embed"] .wp-block-embed__wrapper,.wp-block[data-align=right]>[data-type="core/embed"] .wp-block-embed__wrapper{min-width:280px}.wp-block-embed{margin-bottom:1em}.wp-block-embed figcaption{margin-top:.5em;margin-bottom:1em}.wp-block-embed iframe{max-width:100%}.wp-block-embed__wrapper{position:relative}.wp-embed-responsive .wp-has-aspect-ratio .wp-block-embed__wrapper:before{content:"";display:block;padding-top:50%}.wp-embed-responsive .wp-has-aspect-ratio iframe{position:absolute;top:0;right:0;bottom:0;left:0;height:100%;width:100%}.wp-embed-responsive .wp-embed-aspect-21-9 .wp-block-embed__wrapper:before{padding-top:42.85%}.wp-embed-responsive .wp-embed-aspect-18-9 .wp-block-embed__wrapper:before{padding-top:50%}.wp-embed-responsive .wp-embed-aspect-16-9 .wp-block-embed__wrapper:before{padding-top:56.25%}.wp-embed-responsive .wp-embed-aspect-4-3 .wp-block-embed__wrapper:before{padding-top:75%}.wp-embed-responsive .wp-embed-aspect-1-1 .wp-block-embed__wrapper:before{padding-top:100%}.wp-embed-responsive .wp-embed-aspect-9-16 .wp-block-embed__wrapper:before{padding-top:177.77%}.wp-embed-responsive .wp-embed-aspect-1-2 .wp-block-embed__wrapper:before{padding-top:200%}.wp-block-file{margin-bottom:1.5em}.wp-block-file.aligncenter{text-align:center}.wp-block-file.alignright{text-align:right}.wp-block-file .wp-block-file__button{background:#32373c;border-radius:2em;color:#fff;font-size:.8em;padding:.5em 1em}.wp-block-file a.wp-block-file__button{text-decoration:none}.wp-block-file a.wp-block-file__button:active,.wp-block-file a.wp-block-file__button:focus,.wp-block-file a.wp-block-file__button:hover,.wp-block-file a.wp-block-file__button:visited{box-shadow:none;color:#fff;opacity:.85;text-decoration:none}.wp-block-file *+.wp-block-file__button{margin-left:.75em}.blocks-gallery-grid,.wp-block-gallery{display:flex;flex-wrap:wrap;list-style-type:none;padding:0;margin:0}.blocks-gallery-grid .blocks-gallery-image,.blocks-gallery-grid .blocks-gallery-item,.wp-block-gallery .blocks-gallery-image,.wp-block-gallery .blocks-gallery-item{margin:0 1em 1em 0;display:flex;flex-grow:1;flex-direction:column;justify-content:center;position:relative;width:calc(50% - 1em)}.blocks-gallery-grid .blocks-gallery-image:nth-of-type(2n),.blocks-gallery-grid .blocks-gallery-item:nth-of-type(2n),.wp-block-gallery .blocks-gallery-image:nth-of-type(2n),.wp-block-gallery .blocks-gallery-item:nth-of-type(2n){margin-right:0}.blocks-gallery-grid .blocks-gallery-image figure,.blocks-gallery-grid .blocks-gallery-item figure,.wp-block-gallery .blocks-gallery-image figure,.wp-block-gallery .blocks-gallery-item figure{margin:0;height:100%}@supports ((position:-webkit-sticky) or (position:sticky)){.blocks-gallery-grid .blocks-gallery-image figure,.blocks-gallery-grid .blocks-gallery-item figure,.wp-block-gallery .blocks-gallery-image figure,.wp-block-gallery .blocks-gallery-item figure{display:flex;align-items:flex-end;justify-content:flex-start}}.blocks-gallery-grid .blocks-gallery-image img,.blocks-gallery-grid .blocks-gallery-item img,.wp-block-gallery .blocks-gallery-image img,.wp-block-gallery .blocks-gallery-item img{display:block;max-width:100%;height:auto;width:100%}@supports ((position:-webkit-sticky) or (position:sticky)){.blocks-gallery-grid .blocks-gallery-image img,.blocks-gallery-grid .blocks-gallery-item img,.wp-block-gallery .blocks-gallery-image img,.wp-block-gallery .blocks-gallery-item img{width:auto}}.blocks-gallery-grid .blocks-gallery-image figcaption,.blocks-gallery-grid .blocks-gallery-item figcaption,.wp-block-gallery .blocks-gallery-image figcaption,.wp-block-gallery .blocks-gallery-item figcaption{position:absolute;bottom:0;width:100%;max-height:100%;overflow:auto;padding:3em .77em .7em;color:#fff;text-align:center;font-size:.8em;background:linear-gradient(0deg,rgba(0,0,0,.7),rgba(0,0,0,.3) 70%,transparent);box-sizing:border-box;margin:0}.blocks-gallery-grid .blocks-gallery-image figcaption img,.blocks-gallery-grid .blocks-gallery-item figcaption img,.wp-block-gallery .blocks-gallery-image figcaption img,.wp-block-gallery .blocks-gallery-item figcaption img{display:inline}.blocks-gallery-grid figcaption,.wp-block-gallery figcaption{flex-grow:1}.blocks-gallery-grid.is-cropped .blocks-gallery-image a,.blocks-gallery-grid.is-cropped .blocks-gallery-image img,.blocks-gallery-grid.is-cropped .blocks-gallery-item a,.blocks-gallery-grid.is-cropped .blocks-gallery-item img,.wp-block-gallery.is-cropped .blocks-gallery-image a,.wp-block-gallery.is-cropped .blocks-gallery-image img,.wp-block-gallery.is-cropped .blocks-gallery-item a,.wp-block-gallery.is-cropped .blocks-gallery-item img{width:100%}@supports ((position:-webkit-sticky) or (position:sticky)){.blocks-gallery-grid.is-cropped .blocks-gallery-image a,.blocks-gallery-grid.is-cropped .blocks-gallery-image img,.blocks-gallery-grid.is-cropped .blocks-gallery-item a,.blocks-gallery-grid.is-cropped .blocks-gallery-item img,.wp-block-gallery.is-cropped .blocks-gallery-image a,.wp-block-gallery.is-cropped .blocks-gallery-image img,.wp-block-gallery.is-cropped .blocks-gallery-item a,.wp-block-gallery.is-cropped .blocks-gallery-item img{height:100%;flex:1;object-fit:cover}}.blocks-gallery-grid.columns-1 .blocks-gallery-image,.blocks-gallery-grid.columns-1 .blocks-gallery-item,.wp-block-gallery.columns-1 .blocks-gallery-image,.wp-block-gallery.columns-1 .blocks-gallery-item{width:100%;margin-right:0}@media (min-width:600px){.blocks-gallery-grid.columns-3 .blocks-gallery-image,.blocks-gallery-grid.columns-3 .blocks-gallery-item,.wp-block-gallery.columns-3 .blocks-gallery-image,.wp-block-gallery.columns-3 .blocks-gallery-item{width:calc(33.33333% - .66667em);margin-right:1em}.blocks-gallery-grid.columns-4 .blocks-gallery-image,.blocks-gallery-grid.columns-4 .blocks-gallery-item,.wp-block-gallery.columns-4 .blocks-gallery-image,.wp-block-gallery.columns-4 .blocks-gallery-item{width:calc(25% - .75em);margin-right:1em}.blocks-gallery-grid.columns-5 .blocks-gallery-image,.blocks-gallery-grid.columns-5 .blocks-gallery-item,.wp-block-gallery.columns-5 .blocks-gallery-image,.wp-block-gallery.columns-5 .blocks-gallery-item{width:calc(20% - .8em);margin-right:1em}.blocks-gallery-grid.columns-6 .blocks-gallery-image,.blocks-gallery-grid.columns-6 .blocks-gallery-item,.wp-block-gallery.columns-6 .blocks-gallery-image,.wp-block-gallery.columns-6 .blocks-gallery-item{width:calc(16.66667% - .83333em);margin-right:1em}.blocks-gallery-grid.columns-7 .blocks-gallery-image,.blocks-gallery-grid.columns-7 .blocks-gallery-item,.wp-block-gallery.columns-7 .blocks-gallery-image,.wp-block-gallery.columns-7 .blocks-gallery-item{width:calc(14.28571% - .85714em);margin-right:1em}.blocks-gallery-grid.columns-8 .blocks-gallery-image,.blocks-gallery-grid.columns-8 .blocks-gallery-item,.wp-block-gallery.columns-8 .blocks-gallery-image,.wp-block-gallery.columns-8 .blocks-gallery-item{width:calc(12.5% - .875em);margin-right:1em}.blocks-gallery-grid.columns-1 .blocks-gallery-image:nth-of-type(1n),.blocks-gallery-grid.columns-1 .blocks-gallery-item:nth-of-type(1n),.wp-block-gallery.columns-1 .blocks-gallery-image:nth-of-type(1n),.wp-block-gallery.columns-1 .blocks-gallery-item:nth-of-type(1n){margin-right:0}.blocks-gallery-grid.columns-2 .blocks-gallery-image:nth-of-type(2n),.blocks-gallery-grid.columns-2 .blocks-gallery-item:nth-of-type(2n),.wp-block-gallery.columns-2 .blocks-gallery-image:nth-of-type(2n),.wp-block-gallery.columns-2 .blocks-gallery-item:nth-of-type(2n){margin-right:0}.blocks-gallery-grid.columns-3 .blocks-gallery-image:nth-of-type(3n),.blocks-gallery-grid.columns-3 .blocks-gallery-item:nth-of-type(3n),.wp-block-gallery.columns-3 .blocks-gallery-image:nth-of-type(3n),.wp-block-gallery.columns-3 .blocks-gallery-item:nth-of-type(3n){margin-right:0}.blocks-gallery-grid.columns-4 .blocks-gallery-image:nth-of-type(4n),.blocks-gallery-grid.columns-4 .blocks-gallery-item:nth-of-type(4n),.wp-block-gallery.columns-4 .blocks-gallery-image:nth-of-type(4n),.wp-block-gallery.columns-4 .blocks-gallery-item:nth-of-type(4n){margin-right:0}.blocks-gallery-grid.columns-5 .blocks-gallery-image:nth-of-type(5n),.blocks-gallery-grid.columns-5 .blocks-gallery-item:nth-of-type(5n),.wp-block-gallery.columns-5 .blocks-gallery-image:nth-of-type(5n),.wp-block-gallery.columns-5 .blocks-gallery-item:nth-of-type(5n){margin-right:0}.blocks-gallery-grid.columns-6 .blocks-gallery-image:nth-of-type(6n),.blocks-gallery-grid.columns-6 .blocks-gallery-item:nth-of-type(6n),.wp-block-gallery.columns-6 .blocks-gallery-image:nth-of-type(6n),.wp-block-gallery.columns-6 .blocks-gallery-item:nth-of-type(6n){margin-right:0}.blocks-gallery-grid.columns-7 .blocks-gallery-image:nth-of-type(7n),.blocks-gallery-grid.columns-7 .blocks-gallery-item:nth-of-type(7n),.wp-block-gallery.columns-7 .blocks-gallery-image:nth-of-type(7n),.wp-block-gallery.columns-7 .blocks-gallery-item:nth-of-type(7n){margin-right:0}.blocks-gallery-grid.columns-8 .blocks-gallery-image:nth-of-type(8n),.blocks-gallery-grid.columns-8 .blocks-gallery-item:nth-of-type(8n),.wp-block-gallery.columns-8 .blocks-gallery-image:nth-of-type(8n),.wp-block-gallery.columns-8 .blocks-gallery-item:nth-of-type(8n){margin-right:0}}.blocks-gallery-grid .blocks-gallery-image:last-child,.blocks-gallery-grid .blocks-gallery-item:last-child,.wp-block-gallery .blocks-gallery-image:last-child,.wp-block-gallery .blocks-gallery-item:last-child{margin-right:0}.blocks-gallery-grid.alignleft,.blocks-gallery-grid.alignright,.wp-block-gallery.alignleft,.wp-block-gallery.alignright{max-width:290px;width:100%}.blocks-gallery-grid.aligncenter .blocks-gallery-item figure,.wp-block-gallery.aligncenter .blocks-gallery-item figure{justify-content:center}.wp-block-group{box-sizing:border-box}h1.has-background,h2.has-background,h3.has-background,h4.has-background,h5.has-background,h6.has-background{padding:1.25em 2.375em}.wp-block-image{margin-bottom:1em}.wp-block-image img{max-width:100%}.wp-block-image.aligncenter{text-align:center}.wp-block-image.alignfull img,.wp-block-image.alignwide img{width:100%}.wp-block-image .aligncenter,.wp-block-image .alignleft,.wp-block-image .alignright{display:table}.wp-block-image .aligncenter>figcaption,.wp-block-image .alignleft>figcaption,.wp-block-image .alignright>figcaption{display:table-caption;caption-side:bottom}.wp-block-image .alignleft{float:left;margin:.5em 1em .5em 0}.wp-block-image .alignright{float:right;margin:.5em 0 .5em 1em}.wp-block-image .aligncenter{margin-left:auto;margin-right:auto}.wp-block-image figcaption{margin-top:.5em;margin-bottom:1em}.is-style-circle-mask img,.is-style-rounded img{border-radius:9999px}@supports ((-webkit-mask-image:none) or (mask-image:none)) or (-webkit-mask-image:none){.is-style-circle-mask img{-webkit-mask-image:url('data:image/svg+xml;utf8,');mask-image:url('data:image/svg+xml;utf8,');mask-mode:alpha;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:contain;mask-size:contain;-webkit-mask-position:center;mask-position:center;border-radius:0}}.wp-block-latest-comments__comment{line-height:1.1;list-style:none;margin-bottom:1em}.has-avatars .wp-block-latest-comments__comment{min-height:2.25em;list-style:none}.has-avatars .wp-block-latest-comments__comment .wp-block-latest-comments__comment-excerpt,.has-avatars .wp-block-latest-comments__comment .wp-block-latest-comments__comment-meta{margin-left:3.25em}.has-dates .wp-block-latest-comments__comment,.has-excerpts .wp-block-latest-comments__comment{line-height:1.5}.wp-block-latest-comments__comment-excerpt p{font-size:.875em;line-height:1.8;margin:.36em 0 1.4em}.wp-block-latest-comments__comment-date{display:block;font-size:.75em}.wp-block-latest-comments .avatar,.wp-block-latest-comments__comment-avatar{border-radius:1.5em;display:block;float:left;height:2.5em;margin-right:.75em;width:2.5em}.wp-block-latest-posts.alignleft{margin-right:2em}.wp-block-latest-posts.alignright{margin-left:2em}.wp-block-latest-posts.wp-block-latest-posts__list{list-style:none}.wp-block-latest-posts.wp-block-latest-posts__list li{clear:both}.wp-block-latest-posts.is-grid{display:flex;flex-wrap:wrap;padding:0}.wp-block-latest-posts.is-grid li{margin:0 1.25em 1.25em 0;width:100%}@media (min-width:600px){.wp-block-latest-posts.columns-2 li{width:calc(50% - .625em)}.wp-block-latest-posts.columns-2 li:nth-child(2n){margin-right:0}.wp-block-latest-posts.columns-3 li{width:calc(33.33333% - .83333em)}.wp-block-latest-posts.columns-3 li:nth-child(3n){margin-right:0}.wp-block-latest-posts.columns-4 li{width:calc(25% - .9375em)}.wp-block-latest-posts.columns-4 li:nth-child(4n){margin-right:0}.wp-block-latest-posts.columns-5 li{width:calc(20% - 1em)}.wp-block-latest-posts.columns-5 li:nth-child(5n){margin-right:0}.wp-block-latest-posts.columns-6 li{width:calc(16.66667% - 1.04167em)}.wp-block-latest-posts.columns-6 li:nth-child(6n){margin-right:0}}.wp-block-latest-posts__post-author,.wp-block-latest-posts__post-date{display:block;color:#555;font-size:.8125em}.wp-block-latest-posts__post-excerpt{margin-top:.5em;margin-bottom:1em}.wp-block-latest-posts__featured-image a{display:inline-block}.wp-block-latest-posts__featured-image img{height:auto;width:auto}.wp-block-latest-posts__featured-image.alignleft{margin-right:1em}.wp-block-latest-posts__featured-image.alignright{margin-left:1em}.wp-block-latest-posts__featured-image.aligncenter{margin-bottom:1em;text-align:center}.block-editor-image-alignment-control__row .components-base-control__field{display:flex;justify-content:space-between;align-items:center}.block-editor-image-alignment-control__row .components-base-control__field .components-base-control__label{margin-bottom:0}ol.has-background,ul.has-background{padding:1.25em 2.375em}.wp-block-media-text{ /*!rtl:begin:ignore*/direction:ltr; /*!rtl:end:ignore*/display:-ms-grid;display:grid;-ms-grid-columns:50% 1fr;grid-template-columns:50% 1fr;-ms-grid-rows:auto;grid-template-rows:auto}.wp-block-media-text.has-media-on-the-right{-ms-grid-columns:1fr 50%;grid-template-columns:1fr 50%}.wp-block-media-text.is-vertically-aligned-top .wp-block-media-text__content,.wp-block-media-text.is-vertically-aligned-top .wp-block-media-text__media{-ms-grid-row-align:start;align-self:start}.wp-block-media-text.is-vertically-aligned-center .wp-block-media-text__content,.wp-block-media-text.is-vertically-aligned-center .wp-block-media-text__media,.wp-block-media-text .wp-block-media-text__content,.wp-block-media-text .wp-block-media-text__media{-ms-grid-row-align:center;align-self:center}.wp-block-media-text.is-vertically-aligned-bottom .wp-block-media-text__content,.wp-block-media-text.is-vertically-aligned-bottom .wp-block-media-text__media{-ms-grid-row-align:end;align-self:end}.wp-block-media-text .wp-block-media-text__media{ /*!rtl:begin:ignore*/-ms-grid-column:1;grid-column:1;-ms-grid-row:1;grid-row:1; diff --git a/wp-includes/js/dist/a11y.js b/wp-includes/js/dist/a11y.js index 7d963d459c..f9a37f0c9d 100644 --- a/wp-includes/js/dist/a11y.js +++ b/wp-includes/js/dist/a11y.js @@ -82,7 +82,7 @@ this["wp"] = this["wp"] || {}; this["wp"]["a11y"] = /******/ /******/ /******/ // Load entry module and return exports -/******/ return __webpack_require__(__webpack_require__.s = 478); +/******/ return __webpack_require__(__webpack_require__.s = 492); /******/ }) /************************************************************************/ /******/ ({ @@ -101,7 +101,7 @@ this["wp"] = this["wp"] || {}; this["wp"]["a11y"] = /***/ }), -/***/ 478: +/***/ 492: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; diff --git a/wp-includes/js/dist/a11y.min.js b/wp-includes/js/dist/a11y.min.js index e0a3713959..a1e2b52801 100644 --- a/wp-includes/js/dist/a11y.min.js +++ b/wp-includes/js/dist/a11y.min.js @@ -1,2 +1,2 @@ /*! This file is auto-generated */ -this.wp=this.wp||{},this.wp.a11y=function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=478)}({1:function(t,e){!function(){t.exports=this.wp.i18n}()},275:function(t,e){!function(){t.exports=this.wp.domReady}()},478:function(t,e,n){"use strict";n.r(e),n.d(e,"setup",(function(){return p})),n.d(e,"speak",(function(){return d}));var r=n(275),i=n.n(r),o=n(1);function a(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"polite",e=document.createElement("div");e.id="a11y-speak-".concat(t),e.className="a11y-speak-region",e.setAttribute("style","position: absolute;margin: -1px;padding: 0;height: 1px;width: 1px;overflow: hidden;clip: rect(1px, 1px, 1px, 1px);-webkit-clip-path: inset(50%);clip-path: inset(50%);border: 0;word-wrap: normal !important;"),e.setAttribute("aria-live",t),e.setAttribute("aria-relevant","additions text"),e.setAttribute("aria-atomic","true");var n=document,r=n.body;return r&&r.appendChild(e),e}var u="";function p(){var t=document.getElementById("a11y-speak-intro-text"),e=document.getElementById("a11y-speak-assertive"),n=document.getElementById("a11y-speak-polite");null===t&&function(){var t=document.createElement("p");t.id="a11y-speak-intro-text",t.className="a11y-speak-intro-text",t.textContent=Object(o.__)("Notifications"),t.setAttribute("style","position: absolute;margin: -1px;padding: 0;height: 1px;width: 1px;overflow: hidden;clip: rect(1px, 1px, 1px, 1px);-webkit-clip-path: inset(50%);clip-path: inset(50%);border: 0;word-wrap: normal !important;"),t.setAttribute("hidden","hidden");var e=document.body;e&&e.appendChild(t)}(),null===e&&a("assertive"),null===n&&a("polite")}function d(t,e){!function(){for(var t=document.getElementsByClassName("a11y-speak-region"),e=document.getElementById("a11y-speak-intro-text"),n=0;n]+>/g," "),u===t&&(t+=" "),u=t,t}(t);var n=document.getElementById("a11y-speak-intro-text"),r=document.getElementById("a11y-speak-assertive"),i=document.getElementById("a11y-speak-polite");r&&"assertive"===e?r.textContent=t:i&&(i.textContent=t),n&&n.removeAttribute("hidden")}i()(p)}}); \ No newline at end of file +this.wp=this.wp||{},this.wp.a11y=function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=492)}({1:function(t,e){!function(){t.exports=this.wp.i18n}()},275:function(t,e){!function(){t.exports=this.wp.domReady}()},492:function(t,e,n){"use strict";n.r(e),n.d(e,"setup",(function(){return p})),n.d(e,"speak",(function(){return d}));var r=n(275),i=n.n(r),o=n(1);function a(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"polite",e=document.createElement("div");e.id="a11y-speak-".concat(t),e.className="a11y-speak-region",e.setAttribute("style","position: absolute;margin: -1px;padding: 0;height: 1px;width: 1px;overflow: hidden;clip: rect(1px, 1px, 1px, 1px);-webkit-clip-path: inset(50%);clip-path: inset(50%);border: 0;word-wrap: normal !important;"),e.setAttribute("aria-live",t),e.setAttribute("aria-relevant","additions text"),e.setAttribute("aria-atomic","true");var n=document,r=n.body;return r&&r.appendChild(e),e}var u="";function p(){var t=document.getElementById("a11y-speak-intro-text"),e=document.getElementById("a11y-speak-assertive"),n=document.getElementById("a11y-speak-polite");null===t&&function(){var t=document.createElement("p");t.id="a11y-speak-intro-text",t.className="a11y-speak-intro-text",t.textContent=Object(o.__)("Notifications"),t.setAttribute("style","position: absolute;margin: -1px;padding: 0;height: 1px;width: 1px;overflow: hidden;clip: rect(1px, 1px, 1px, 1px);-webkit-clip-path: inset(50%);clip-path: inset(50%);border: 0;word-wrap: normal !important;"),t.setAttribute("hidden","hidden");var e=document.body;e&&e.appendChild(t)}(),null===e&&a("assertive"),null===n&&a("polite")}function d(t,e){!function(){for(var t=document.getElementsByClassName("a11y-speak-region"),e=document.getElementById("a11y-speak-intro-text"),n=0;n]+>/g," "),u===t&&(t+=" "),u=t,t}(t);var n=document.getElementById("a11y-speak-intro-text"),r=document.getElementById("a11y-speak-assertive"),i=document.getElementById("a11y-speak-polite");r&&"assertive"===e?r.textContent=t:i&&(i.textContent=t),n&&n.removeAttribute("hidden")}i()(p)}}); \ No newline at end of file diff --git a/wp-includes/js/dist/annotations.js b/wp-includes/js/dist/annotations.js index ad610efae3..fd9ab9c84e 100644 --- a/wp-includes/js/dist/annotations.js +++ b/wp-includes/js/dist/annotations.js @@ -82,7 +82,7 @@ this["wp"] = this["wp"] || {}; this["wp"]["annotations"] = /******/ /******/ /******/ // Load entry module and return exports -/******/ return __webpack_require__(__webpack_require__.s = 467); +/******/ return __webpack_require__(__webpack_require__.s = 481); /******/ }) /************************************************************************/ /******/ ({ @@ -142,7 +142,7 @@ function _arrayWithoutHoles(arr) { var iterableToArray = __webpack_require__(37); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js -var unsupportedIterableToArray = __webpack_require__(30); +var unsupportedIterableToArray = __webpack_require__(31); // CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js function _nonIterableSpread() { @@ -190,7 +190,7 @@ function _arrayLikeToArray(arr, len) { /***/ }), -/***/ 30: +/***/ 31: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -537,7 +537,7 @@ function _objectWithoutPropertiesLoose(source, excluded) { /***/ }), -/***/ 467: +/***/ 481: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; diff --git a/wp-includes/js/dist/annotations.min.js b/wp-includes/js/dist/annotations.min.js index 9a690d12d4..6a321a5227 100644 --- a/wp-includes/js/dist/annotations.min.js +++ b/wp-includes/js/dist/annotations.min.js @@ -1,2 +1,2 @@ /*! This file is auto-generated */ -this.wp=this.wp||{},this.wp.annotations=function(t){var n={};function e(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,e),o.l=!0,o.exports}return e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:r})},e.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},e.t=function(t,n){if(1&n&&(t=e(t)),8&n)return t;if(4&n&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(e.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&n&&"string"!=typeof t)for(var o in t)e.d(r,o,function(n){return t[n]}.bind(null,o));return r},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},e.p="",e(e.s=467)}({1:function(t,n){!function(){t.exports=this.wp.i18n}()},14:function(t,n,e){"use strict";e.d(n,"a",(function(){return o}));var r=e(43);function o(t,n){if(null==t)return{};var e,o,a=Object(r.a)(t,n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(o=0;o=0||Object.prototype.propertyIsEnumerable.call(t,e)&&(a[e]=t[e])}return a}},17:function(t,n,e){"use strict";e.d(n,"a",(function(){return i}));var r=e(27);var o=e(37),a=e(30);function i(t){return function(t){if(Array.isArray(t))return Object(r.a)(t)}(t)||Object(o.a)(t)||Object(a.a)(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},2:function(t,n){!function(){t.exports=this.lodash}()},25:function(t,n){!function(){t.exports=this.wp.richText}()},27:function(t,n,e){"use strict";function r(t,n){(null==n||n>t.length)&&(n=t.length);for(var e=0,r=new Array(n);e=0||(o[e]=t[e]);return o}e.d(n,"a",(function(){return r}))},467:function(t,n,e){"use strict";e.r(n);var r={};e.r(r),e.d(r,"__experimentalGetAnnotationsForBlock",(function(){return g})),e.d(r,"__experimentalGetAllAnnotationsForBlock",(function(){return h})),e.d(r,"__experimentalGetAnnotationsForRichText",(function(){return j})),e.d(r,"__experimentalGetAnnotations",(function(){return A}));var o={};e.r(o),e.d(o,"__experimentalAddAnnotation",(function(){return I})),e.d(o,"__experimentalRemoveAnnotation",(function(){return R})),e.d(o,"__experimentalUpdateAnnotationRange",(function(){return S})),e.d(o,"__experimentalRemoveAnnotationsBySource",(function(){return k}));var a=e(4),i=e(17),u=e(5),c=e(2);function l(t,n){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable}))),e.push.apply(e,r)}return e}function f(t){for(var n=1;n0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;switch(e.type){case"ANNOTATION_ADD":var r=e.blockClientId,o={id:e.id,blockClientId:r,richTextIdentifier:e.richTextIdentifier,source:e.source,selector:e.selector,range:e.range};if("range"===o.selector&&!d(o.range))return n;var a=null!==(t=null==n?void 0:n[r])&&void 0!==t?t:[];return f(f({},n),{},Object(u.a)({},r,[].concat(Object(i.a)(a),[o])));case"ANNOTATION_REMOVE":return Object(c.mapValues)(n,(function(t){return s(t,(function(t){return t.id!==e.annotationId}))}));case"ANNOTATION_UPDATE_RANGE":return Object(c.mapValues)(n,(function(t){var n=!1,r=t.map((function(t){return t.id===e.annotationId?(n=!0,f(f({},t),{},{range:{start:e.start,end:e.end}})):t}));return n?r:t}));case"ANNOTATION_REMOVE_SOURCE":return Object(c.mapValues)(n,(function(t){return s(t,(function(t){return t.source!==e.source}))}))}return n},v=e(14),b=e(42);function O(t,n){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable}))),e.push.apply(e,r)}return e}function y(t){for(var n=1;n1&&void 0!==arguments[1]?arguments[1]:[];return n.forEach((function(n){var e=n.start,r=n.end;e>t.text.length&&(e=t.text.length),r>t.text.length&&(r=t.text.length);var o="annotation-text-"+n.source,a="annotation-text-"+n.id;t=Object(D.applyFormat)(t,{type:"core/annotation",attributes:{className:o,id:a}},e,r)})),t}(r,n)).formats}},__experimentalGetPropsForEditableTreeChangeHandler:function(t){return{removeAnnotation:t("core/annotations").__experimentalRemoveAnnotation,updateAnnotationRange:t("core/annotations").__experimentalUpdateAnnotationRange}},__experimentalCreateOnChangeEditableValue:function(t){return function(n){var e=function(t){var n={};return t.forEach((function(t,e){(t=(t=t||[]).filter((function(t){return"core/annotation"===t.type}))).forEach((function(t){var r=t.attributes.id;r=r.replace("annotation-text-",""),n.hasOwnProperty(r)||(n[r]={start:e}),n[r].end=e+1}))})),n}(n),r=t.removeAnnotation,o=t.updateAnnotationRange;!function(t,n,e){var r=e.removeAnnotation,o=e.updateAnnotationRange;t.forEach((function(t){var e=n[t.id];if(e){var a=t.start,i=t.end;a===e.start&&i===e.end||o(t.id,e.start,e.end)}else r(t.id)}))}(t.annotations,e,{removeAnnotation:r,updateAnnotationRange:o})}}},V=M.name,F=Object(v.a)(M,["name"]);Object(D.registerFormatType)(V,F);var G=e(33);Object(G.addFilter)("editor.BlockListBlock","core/annotations",(function(t){return Object(a.withSelect)((function(t,n){var e=n.clientId,r=n.className;return{className:t("core/annotations").__experimentalGetAnnotationsForBlock(e).map((function(t){return"is-annotated-by-"+t.source})).concat(r).filter(Boolean).join(" ")}}))(t)}))},5:function(t,n,e){"use strict";function r(t,n,e){return n in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t}e.d(n,"a",(function(){return r}))}}); \ No newline at end of file +this.wp=this.wp||{},this.wp.annotations=function(t){var n={};function e(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,e),o.l=!0,o.exports}return e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:r})},e.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},e.t=function(t,n){if(1&n&&(t=e(t)),8&n)return t;if(4&n&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(e.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&n&&"string"!=typeof t)for(var o in t)e.d(r,o,function(n){return t[n]}.bind(null,o));return r},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},e.p="",e(e.s=481)}({1:function(t,n){!function(){t.exports=this.wp.i18n}()},14:function(t,n,e){"use strict";e.d(n,"a",(function(){return o}));var r=e(43);function o(t,n){if(null==t)return{};var e,o,a=Object(r.a)(t,n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(o=0;o=0||Object.prototype.propertyIsEnumerable.call(t,e)&&(a[e]=t[e])}return a}},17:function(t,n,e){"use strict";e.d(n,"a",(function(){return i}));var r=e(27);var o=e(37),a=e(31);function i(t){return function(t){if(Array.isArray(t))return Object(r.a)(t)}(t)||Object(o.a)(t)||Object(a.a)(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},2:function(t,n){!function(){t.exports=this.lodash}()},25:function(t,n){!function(){t.exports=this.wp.richText}()},27:function(t,n,e){"use strict";function r(t,n){(null==n||n>t.length)&&(n=t.length);for(var e=0,r=new Array(n);e=0||(o[e]=t[e]);return o}e.d(n,"a",(function(){return r}))},481:function(t,n,e){"use strict";e.r(n);var r={};e.r(r),e.d(r,"__experimentalGetAnnotationsForBlock",(function(){return g})),e.d(r,"__experimentalGetAllAnnotationsForBlock",(function(){return h})),e.d(r,"__experimentalGetAnnotationsForRichText",(function(){return j})),e.d(r,"__experimentalGetAnnotations",(function(){return A}));var o={};e.r(o),e.d(o,"__experimentalAddAnnotation",(function(){return I})),e.d(o,"__experimentalRemoveAnnotation",(function(){return R})),e.d(o,"__experimentalUpdateAnnotationRange",(function(){return S})),e.d(o,"__experimentalRemoveAnnotationsBySource",(function(){return k}));var a=e(4),i=e(17),u=e(5),c=e(2);function l(t,n){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable}))),e.push.apply(e,r)}return e}function f(t){for(var n=1;n0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;switch(e.type){case"ANNOTATION_ADD":var r=e.blockClientId,o={id:e.id,blockClientId:r,richTextIdentifier:e.richTextIdentifier,source:e.source,selector:e.selector,range:e.range};if("range"===o.selector&&!d(o.range))return n;var a=null!==(t=null==n?void 0:n[r])&&void 0!==t?t:[];return f(f({},n),{},Object(u.a)({},r,[].concat(Object(i.a)(a),[o])));case"ANNOTATION_REMOVE":return Object(c.mapValues)(n,(function(t){return s(t,(function(t){return t.id!==e.annotationId}))}));case"ANNOTATION_UPDATE_RANGE":return Object(c.mapValues)(n,(function(t){var n=!1,r=t.map((function(t){return t.id===e.annotationId?(n=!0,f(f({},t),{},{range:{start:e.start,end:e.end}})):t}));return n?r:t}));case"ANNOTATION_REMOVE_SOURCE":return Object(c.mapValues)(n,(function(t){return s(t,(function(t){return t.source!==e.source}))}))}return n},v=e(14),b=e(42);function O(t,n){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable}))),e.push.apply(e,r)}return e}function y(t){for(var n=1;n1&&void 0!==arguments[1]?arguments[1]:[];return n.forEach((function(n){var e=n.start,r=n.end;e>t.text.length&&(e=t.text.length),r>t.text.length&&(r=t.text.length);var o="annotation-text-"+n.source,a="annotation-text-"+n.id;t=Object(D.applyFormat)(t,{type:"core/annotation",attributes:{className:o,id:a}},e,r)})),t}(r,n)).formats}},__experimentalGetPropsForEditableTreeChangeHandler:function(t){return{removeAnnotation:t("core/annotations").__experimentalRemoveAnnotation,updateAnnotationRange:t("core/annotations").__experimentalUpdateAnnotationRange}},__experimentalCreateOnChangeEditableValue:function(t){return function(n){var e=function(t){var n={};return t.forEach((function(t,e){(t=(t=t||[]).filter((function(t){return"core/annotation"===t.type}))).forEach((function(t){var r=t.attributes.id;r=r.replace("annotation-text-",""),n.hasOwnProperty(r)||(n[r]={start:e}),n[r].end=e+1}))})),n}(n),r=t.removeAnnotation,o=t.updateAnnotationRange;!function(t,n,e){var r=e.removeAnnotation,o=e.updateAnnotationRange;t.forEach((function(t){var e=n[t.id];if(e){var a=t.start,i=t.end;a===e.start&&i===e.end||o(t.id,e.start,e.end)}else r(t.id)}))}(t.annotations,e,{removeAnnotation:r,updateAnnotationRange:o})}}},V=M.name,F=Object(v.a)(M,["name"]);Object(D.registerFormatType)(V,F);var G=e(33);Object(G.addFilter)("editor.BlockListBlock","core/annotations",(function(t){return Object(a.withSelect)((function(t,n){var e=n.clientId,r=n.className;return{className:t("core/annotations").__experimentalGetAnnotationsForBlock(e).map((function(t){return"is-annotated-by-"+t.source})).concat(r).filter(Boolean).join(" ")}}))(t)}))},5:function(t,n,e){"use strict";function r(t,n,e){return n in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t}e.d(n,"a",(function(){return r}))}}); \ No newline at end of file diff --git a/wp-includes/js/dist/api-fetch.js b/wp-includes/js/dist/api-fetch.js index 21224c85d2..a0a85c4ed8 100644 --- a/wp-includes/js/dist/api-fetch.js +++ b/wp-includes/js/dist/api-fetch.js @@ -82,7 +82,7 @@ this["wp"] = this["wp"] || {}; this["wp"]["apiFetch"] = /******/ /******/ /******/ // Load entry module and return exports -/******/ return __webpack_require__(__webpack_require__.s = 470); +/******/ return __webpack_require__(__webpack_require__.s = 484); /******/ }) /************************************************************************/ /******/ ({ @@ -129,7 +129,7 @@ function _objectWithoutProperties(source, excluded) { /***/ }), -/***/ 31: +/***/ 30: /***/ (function(module, exports) { (function() { module.exports = this["wp"]["url"]; }()); @@ -201,7 +201,7 @@ function _asyncToGenerator(fn) { /***/ }), -/***/ 470: +/***/ 484: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -400,7 +400,7 @@ var external_this_regeneratorRuntime_default = /*#__PURE__*/__webpack_require__. var asyncToGenerator = __webpack_require__(45); // EXTERNAL MODULE: external {"this":["wp","url"]} -var external_this_wp_url_ = __webpack_require__(31); +var external_this_wp_url_ = __webpack_require__(30); // CONCATENATED MODULE: ./node_modules/@wordpress/api-fetch/build-module/middlewares/fetch-all-middleware.js diff --git a/wp-includes/js/dist/api-fetch.min.js b/wp-includes/js/dist/api-fetch.min.js index 11f2889dbe..7a9c016800 100644 --- a/wp-includes/js/dist/api-fetch.min.js +++ b/wp-includes/js/dist/api-fetch.min.js @@ -1,2 +1,2 @@ /*! This file is auto-generated */ -this.wp=this.wp||{},this.wp.apiFetch=function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=470)}({1:function(e,t){!function(){e.exports=this.wp.i18n}()},14:function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var n=r(43);function o(e,t){if(null==e)return{};var r,o,c=Object(n.a)(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(c[r]=e[r])}return c}},20:function(e,t){!function(){e.exports=this.regeneratorRuntime}()},31:function(e,t){!function(){e.exports=this.wp.url}()},43:function(e,t,r){"use strict";function n(e,t){if(null==e)return{};var r,n,o={},c=Object.keys(e);for(n=0;n=0||(o[r]=e[r]);return o}r.d(t,"a",(function(){return n}))},45:function(e,t,r){"use strict";function n(e,t,r,n,o,c,i){try{var u=e[c](i),a=u.value}catch(e){return void r(e)}u.done?t(a):Promise.resolve(a).then(n,o)}function o(e){return function(){var t=this,r=arguments;return new Promise((function(o,c){var i=e.apply(t,r);function u(e){n(i,o,c,u,a,"next",e)}function a(e){n(i,o,c,u,a,"throw",e)}u(void 0)}))}}r.d(t,"a",(function(){return o}))},470:function(e,t,r){"use strict";r.r(t);var n=r(5),o=r(14),c=r(1);function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function u(e){for(var t=1;t]+)>; rel="next"/);return t?{next:t[1]}:{}}(e.headers.get("link")).next},D=function(e){var t=e.path&&-1!==e.path.indexOf("per_page=-1"),r=e.url&&-1!==e.url.indexOf("per_page=-1");return t||r},S=function(){var e=Object(v.a)(h.a.mark((function e(t,r){var n,c,i,u,a,s;return h.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!1!==t.parse){e.next=2;break}return e.abrupt("return",r(t));case 2:if(D(t)){e.next=4;break}return e.abrupt("return",r(t));case 4:return e.next=6,q(P(P({},(f={per_page:100},l=void 0,O=void 0,l=(p=t).path,O=p.url,P(P({},Object(o.a)(p,["path","url"])),{},{url:O&&Object(g.addQueryArgs)(O,f),path:l&&Object(g.addQueryArgs)(l,f)}))),{},{parse:!1}));case 6:return n=e.sent,e.next=9,m(n);case 9:if(c=e.sent,Array.isArray(c)){e.next=12;break}return e.abrupt("return",c);case 12:if(i=x(n)){e.next=15;break}return e.abrupt("return",c);case 15:u=[].concat(c);case 16:if(!i){e.next=27;break}return e.next=19,q(P(P({},t),{},{path:void 0,url:i,parse:!1}));case 19:return a=e.sent,e.next=22,m(a);case 22:s=e.sent,u=u.concat(s),i=x(a),e.next=16;break;case 27:return e.abrupt("return",u);case 28:case"end":return e.stop()}var p,f,l,O}),e)})));return function(t,r){return e.apply(this,arguments)}}();function _(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function E(e){for(var t=1;t1&&void 0!==arguments[1])||arguments[1];return t?204===e.status?null:e.json?e.json():Promise.reject(e):e},A=function(e){var t={code:"invalid_json",message:Object(c.__)("The response is not a valid JSON response.")};if(!e||!e.json)throw t;return e.json().catch((function(){throw t}))},M=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return Promise.resolve(T(e,t)).catch((function(e){return C(e,t)}))};function C(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(!t)throw e;return A(e).then((function(e){var t={code:"unknown_error",message:Object(c.__)("An unknown error occurred.")};throw e||t}))}function N(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Q(e){for(var t=1;t=500&&n.status<600&&o?function e(n){return r++,t({path:"/wp/v2/media/".concat(n,"/post-process"),method:"POST",data:{action:"create-image-subsizes"},parse:!1}).catch((function(){return r<5?e(n):(t({path:"/wp/v2/media/".concat(n,"?force=true"),method:"DELETE"}),Promise.reject())}))}(o).catch((function(){return!1!==e.parse?Promise.reject({code:"post_process",message:Object(c.__)("Media upload failed. If this is a photo or a large image, please scale it down and try again.")}):Promise.reject(n)})):C(n,e.parse)})).then((function(t){return M(t,e.parse)}))};function L(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function U(e){for(var t=1;t=200&&e.status<300)return e;throw e},F=function(e){var t=e.url,r=e.path,n=e.data,i=e.parse,u=void 0===i||i,a=Object(o.a)(e,["url","path","data","parse"]),s=e.body,p=e.headers;return p=U(U({},G),p),n&&(s=JSON.stringify(n),p["Content-Type"]="application/json"),window.fetch(t||r,U(U(U({},H),a),{},{body:s,headers:p})).then((function(e){return Promise.resolve(e).then(J).catch((function(e){return C(e,u)})).then((function(e){return M(e,u)}))}),(function(){throw{code:"fetch_error",message:Object(c.__)("You are probably offline.")}}))};function X(e){return I.reduceRight((function(e,t){return function(r){return t(r,e)}}),F)(e).catch((function(t){return"rest_cookie_invalid_nonce"!==t.code?Promise.reject(t):window.fetch(X.nonceEndpoint).then(J).then((function(e){return e.text()})).then((function(t){return X.nonceMiddleware.nonce=t,X(e)}))}))}X.use=function(e){I.unshift(e)},X.setFetchHandler=function(e){F=e},X.createNonceMiddleware=a,X.createPreloadingMiddleware=j,X.createRootURLMiddleware=b,X.fetchAllMiddleware=S,X.mediaUploadMiddleware=R;var q=t.default=X},5:function(e,t,r){"use strict";function n(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}r.d(t,"a",(function(){return n}))}}).default; \ No newline at end of file +this.wp=this.wp||{},this.wp.apiFetch=function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=484)}({1:function(e,t){!function(){e.exports=this.wp.i18n}()},14:function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var n=r(43);function o(e,t){if(null==e)return{};var r,o,c=Object(n.a)(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(c[r]=e[r])}return c}},20:function(e,t){!function(){e.exports=this.regeneratorRuntime}()},30:function(e,t){!function(){e.exports=this.wp.url}()},43:function(e,t,r){"use strict";function n(e,t){if(null==e)return{};var r,n,o={},c=Object.keys(e);for(n=0;n=0||(o[r]=e[r]);return o}r.d(t,"a",(function(){return n}))},45:function(e,t,r){"use strict";function n(e,t,r,n,o,c,i){try{var u=e[c](i),a=u.value}catch(e){return void r(e)}u.done?t(a):Promise.resolve(a).then(n,o)}function o(e){return function(){var t=this,r=arguments;return new Promise((function(o,c){var i=e.apply(t,r);function u(e){n(i,o,c,u,a,"next",e)}function a(e){n(i,o,c,u,a,"throw",e)}u(void 0)}))}}r.d(t,"a",(function(){return o}))},484:function(e,t,r){"use strict";r.r(t);var n=r(5),o=r(14),c=r(1);function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function u(e){for(var t=1;t]+)>; rel="next"/);return t?{next:t[1]}:{}}(e.headers.get("link")).next},D=function(e){var t=e.path&&-1!==e.path.indexOf("per_page=-1"),r=e.url&&-1!==e.url.indexOf("per_page=-1");return t||r},S=function(){var e=Object(v.a)(h.a.mark((function e(t,r){var n,c,i,u,a,s;return h.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!1!==t.parse){e.next=2;break}return e.abrupt("return",r(t));case 2:if(D(t)){e.next=4;break}return e.abrupt("return",r(t));case 4:return e.next=6,q(P(P({},(f={per_page:100},l=void 0,O=void 0,l=(p=t).path,O=p.url,P(P({},Object(o.a)(p,["path","url"])),{},{url:O&&Object(g.addQueryArgs)(O,f),path:l&&Object(g.addQueryArgs)(l,f)}))),{},{parse:!1}));case 6:return n=e.sent,e.next=9,m(n);case 9:if(c=e.sent,Array.isArray(c)){e.next=12;break}return e.abrupt("return",c);case 12:if(i=x(n)){e.next=15;break}return e.abrupt("return",c);case 15:u=[].concat(c);case 16:if(!i){e.next=27;break}return e.next=19,q(P(P({},t),{},{path:void 0,url:i,parse:!1}));case 19:return a=e.sent,e.next=22,m(a);case 22:s=e.sent,u=u.concat(s),i=x(a),e.next=16;break;case 27:return e.abrupt("return",u);case 28:case"end":return e.stop()}var p,f,l,O}),e)})));return function(t,r){return e.apply(this,arguments)}}();function _(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function E(e){for(var t=1;t1&&void 0!==arguments[1])||arguments[1];return t?204===e.status?null:e.json?e.json():Promise.reject(e):e},A=function(e){var t={code:"invalid_json",message:Object(c.__)("The response is not a valid JSON response.")};if(!e||!e.json)throw t;return e.json().catch((function(){throw t}))},M=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return Promise.resolve(T(e,t)).catch((function(e){return C(e,t)}))};function C(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(!t)throw e;return A(e).then((function(e){var t={code:"unknown_error",message:Object(c.__)("An unknown error occurred.")};throw e||t}))}function N(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Q(e){for(var t=1;t=500&&n.status<600&&o?function e(n){return r++,t({path:"/wp/v2/media/".concat(n,"/post-process"),method:"POST",data:{action:"create-image-subsizes"},parse:!1}).catch((function(){return r<5?e(n):(t({path:"/wp/v2/media/".concat(n,"?force=true"),method:"DELETE"}),Promise.reject())}))}(o).catch((function(){return!1!==e.parse?Promise.reject({code:"post_process",message:Object(c.__)("Media upload failed. If this is a photo or a large image, please scale it down and try again.")}):Promise.reject(n)})):C(n,e.parse)})).then((function(t){return M(t,e.parse)}))};function L(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function U(e){for(var t=1;t=200&&e.status<300)return e;throw e},F=function(e){var t=e.url,r=e.path,n=e.data,i=e.parse,u=void 0===i||i,a=Object(o.a)(e,["url","path","data","parse"]),s=e.body,p=e.headers;return p=U(U({},G),p),n&&(s=JSON.stringify(n),p["Content-Type"]="application/json"),window.fetch(t||r,U(U(U({},H),a),{},{body:s,headers:p})).then((function(e){return Promise.resolve(e).then(J).catch((function(e){return C(e,u)})).then((function(e){return M(e,u)}))}),(function(){throw{code:"fetch_error",message:Object(c.__)("You are probably offline.")}}))};function X(e){return I.reduceRight((function(e,t){return function(r){return t(r,e)}}),F)(e).catch((function(t){return"rest_cookie_invalid_nonce"!==t.code?Promise.reject(t):window.fetch(X.nonceEndpoint).then(J).then((function(e){return e.text()})).then((function(t){return X.nonceMiddleware.nonce=t,X(e)}))}))}X.use=function(e){I.unshift(e)},X.setFetchHandler=function(e){F=e},X.createNonceMiddleware=a,X.createPreloadingMiddleware=j,X.createRootURLMiddleware=b,X.fetchAllMiddleware=S,X.mediaUploadMiddleware=R;var q=t.default=X},5:function(e,t,r){"use strict";function n(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}r.d(t,"a",(function(){return n}))}}).default; \ No newline at end of file diff --git a/wp-includes/js/dist/autop.js b/wp-includes/js/dist/autop.js index c8aad3a2d8..5ebfff44b0 100644 --- a/wp-includes/js/dist/autop.js +++ b/wp-includes/js/dist/autop.js @@ -82,7 +82,7 @@ this["wp"] = this["wp"] || {}; this["wp"]["autop"] = /******/ /******/ /******/ // Load entry module and return exports -/******/ return __webpack_require__(__webpack_require__.s = 299); +/******/ return __webpack_require__(__webpack_require__.s = 300); /******/ }) /************************************************************************/ /******/ ({ @@ -126,7 +126,7 @@ function _iterableToArrayLimit(arr, i) { return _arr; } // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js -var unsupportedIterableToArray = __webpack_require__(30); +var unsupportedIterableToArray = __webpack_require__(31); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/nonIterableRest.js var nonIterableRest = __webpack_require__(39); @@ -159,7 +159,7 @@ function _arrayLikeToArray(arr, len) { /***/ }), -/***/ 299: +/***/ 300: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -575,7 +575,7 @@ function removep(html) { /***/ }), -/***/ 30: +/***/ 31: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; diff --git a/wp-includes/js/dist/autop.min.js b/wp-includes/js/dist/autop.min.js index d710de5226..e230b5e0f3 100644 --- a/wp-includes/js/dist/autop.min.js +++ b/wp-includes/js/dist/autop.min.js @@ -1,2 +1,2 @@ /*! This file is auto-generated */ -this.wp=this.wp||{},this.wp.autop=function(e){var r={};function n(t){if(r[t])return r[t].exports;var p=r[t]={i:t,l:!1,exports:{}};return e[t].call(p.exports,p,p.exports,n),p.l=!0,p.exports}return n.m=e,n.c=r,n.d=function(e,r,t){n.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:t})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,r){if(1&r&&(e=n(e)),8&r)return e;if(4&r&&"object"==typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(n.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var p in e)n.d(t,p,function(r){return e[r]}.bind(null,p));return t},n.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(r,"a",r),r},n.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},n.p="",n(n.s=299)}({12:function(e,r,n){"use strict";n.d(r,"a",(function(){return a}));var t=n(38);var p=n(30),c=n(39);function a(e,r){return Object(t.a)(e)||function(e,r){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],t=!0,p=!1,c=void 0;try{for(var a,i=e[Symbol.iterator]();!(t=(a=i.next()).done)&&(n.push(a.value),!r||n.length!==r);t=!0);}catch(e){p=!0,c=e}finally{try{t||null==i.return||i.return()}finally{if(p)throw c}}return n}}(e,r)||Object(p.a)(e,r)||Object(c.a)()}},27:function(e,r,n){"use strict";function t(e,r){(null==r||r>e.length)&&(r=e.length);for(var n=0,t=new Array(r);n)[^\\-]*)*(?:--\x3e)?|!\\[CDATA\\[[^\\]]*(?:](?!]>)[^\\]]*)*?(?:]]>)?)|[^>]*>?))");function c(e,r){for(var n=function(e){for(var r,n=[],t=e;r=t.match(p);){var c=r.index;n.push(t.slice(0,c)),n.push(r[0]),t=t.slice(c+r[0].length)}return t.length&&n.push(t),n}(e),t=!1,c=Object.keys(r),a=1;a1&&void 0!==arguments[1])||arguments[1],n=[];if(""===e.trim())return"";if(-1!==(e+="\n").indexOf(""),a=p.pop();e="";for(var i=0;i";n.push([u,o.substr(l)+""]),e+=o.substr(0,l)+u}else e+=o}e+=a}var s="(?:table|thead|tfoot|caption|col|colgroup|tbody|tr|td|th|div|dl|dd|dt|ul|ol|li|pre|form|map|area|blockquote|address|math|style|p|h[1-6]|hr|fieldset|legend|section|article|aside|hgroup|header|footer|nav|figure|figcaption|details|menu|summary)";-1!==(e=c(e=(e=(e=(e=e.replace(/\s*/g,"\n\n")).replace(new RegExp("(<"+s+"[\\s/>])","g"),"\n\n$1")).replace(new RegExp("()","g"),"$1\n\n")).replace(/\r\n|\r/g,"\n"),{"\n":" \x3c!-- wpnl --\x3e "})).indexOf("\s*/g,"")),-1!==e.indexOf("")&&(e=(e=(e=e.replace(/(]*>)\s*/g,"$1")).replace(/\s*<\/object>/g,"")).replace(/\s*(<\/?(?:param|embed)[^>]*>)\s*/g,"$1")),-1===e.indexOf("\]]*[>\]])\s*/g,"$1")).replace(/\s*([<\[]\/(?:audio|video)[>\]])/g,"$1")).replace(/\s*(<(?:source|track)[^>]*>)\s*/g,"$1")),-1!==e.indexOf("]*>)/,"$1")).replace(/<\/figcaption>\s*/,""));var f=(e=e.replace(/\n\n+/g,"\n\n")).split(/\n\s*\n/).filter(Boolean);return e="",f.forEach((function(r){e+="

"+r.replace(/^\n*|\n*$/g,"")+"

\n"})),e=(e=(e=(e=(e=(e=(e=(e=e.replace(/

\s*<\/p>/g,"")).replace(/

([^<]+)<\/(div|address|form)>/g,"

$1

")).replace(new RegExp("

\\s*(]*>)\\s*

","g"),"$1")).replace(/

(/g,"$1")).replace(/

]*)>/gi,"

")).replace(/<\/blockquote><\/p>/g,"

")).replace(new RegExp("

\\s*(]*>)","g"),"$1")).replace(new RegExp("(]*>)\\s*

","g"),"$1"),r&&(e=(e=(e=(e=e.replace(/<(script|style).*?<\/\\1>/g,(function(e){return e[0].replace(/\n/g,"")}))).replace(/
|/g,"
")).replace(/(
)?\s*\n/g,(function(e,r){return r?e:"
\n"}))).replace(//g,"\n")),e=(e=(e=e.replace(new RegExp("(]*>)\\s*
","g"),"$1")).replace(/
(\s*<\/?(?:p|li|div|dl|dd|dt|th|pre|td|ul|ol)[^>]*>)/g,"$1")).replace(/\n<\/p>$/g,"

"),n.forEach((function(r){var n=Object(t.a)(r,2),p=n[0],c=n[1];e=e.replace(p,c)})),-1!==e.indexOf("\x3c!-- wpnl --\x3e")&&(e=e.replace(/\s?\s?/g,"\n")),e}function i(e){var r="blockquote|ul|ol|li|dl|dt|dd|table|thead|tbody|tfoot|tr|th|td|h[1-6]|fieldset|figure",n=r+"|div|p",t=r+"|pre",p=[],c=!1,a=!1;return e?(-1===e.indexOf("]*>[\s\S]*?<\/\1>/g,(function(e){return p.push(e),""}))),-1!==e.indexOf("]*>[\s\S]+?<\/pre>/g,(function(e){return(e=(e=e.replace(/
(\r\n|\n)?/g,"")).replace(/<\/?p( [^>]*)?>(\r\n|\n)?/g,"")).replace(/\r?\n/g,"")}))),-1!==e.indexOf("[caption")&&(a=!0,e=e.replace(/\[caption[\s\S]+?\[\/caption\]/g,(function(e){return e.replace(/]*)>/g,"").replace(/[\r\n\t]+/,"")}))),-1!==(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=e.replace(new RegExp("\\s*\\s*","g"),"\n")).replace(new RegExp("\\s*<((?:"+n+")(?: [^>]*)?)>","g"),"\n<$1>")).replace(/(

]+>[\s\S]*?)<\/p>/g,"$1")).replace(/]*)?>\s*

/gi,"\n\n")).replace(/\s*

/gi,"")).replace(/\s*<\/p>\s*/gi,"\n\n")).replace(/\n[\s\u00a0]+\n/g,"\n\n")).replace(/(\s*)
\s*/gi,(function(e,r){return r&&-1!==r.indexOf("\n")?"\n\n":"\n"}))).replace(/\s*

\s*/g,"
\n")).replace(/\s*\[caption([^\[]+)\[\/caption\]\s*/gi,"\n\n[caption$1[/caption]\n\n")).replace(/caption\]\n\n+\[caption/g,"caption]\n\n[caption")).replace(new RegExp("\\s*<((?:"+t+")(?: [^>]*)?)\\s*>","g"),"\n<$1>")).replace(new RegExp("\\s*\\s*","g"),"\n")).replace(/<((li|dt|dd)[^>]*)>/g," \t<$1>")).indexOf("/g,"\n")),-1!==e.indexOf("]*)?>\s*/g,"\n\n\n\n")),-1!==e.indexOf("/g,(function(e){return e.replace(/[\r\n]+/g,"")}))),e=(e=(e=(e=e.replace(/<\/p#>/g,"

\n")).replace(/\s*(

]+>[\s\S]*?<\/p>)/g,"\n$1")).replace(/^\s+/,"")).replace(/[\s\u00a0]+$/,""),c&&(e=e.replace(//g,"\n")),a&&(e=e.replace(/]*)>/g,"")),p.length&&(e=e.replace(//g,(function(){return p.shift()}))),e):""}},30:function(e,r,n){"use strict";n.d(r,"a",(function(){return p}));var t=n(27);function p(e,r){if(e){if("string"==typeof e)return Object(t.a)(e,r);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Object(t.a)(e,r):void 0}}},38:function(e,r,n){"use strict";function t(e){if(Array.isArray(e))return e}n.d(r,"a",(function(){return t}))},39:function(e,r,n){"use strict";function t(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n.d(r,"a",(function(){return t}))}}); \ No newline at end of file +this.wp=this.wp||{},this.wp.autop=function(e){var r={};function n(t){if(r[t])return r[t].exports;var p=r[t]={i:t,l:!1,exports:{}};return e[t].call(p.exports,p,p.exports,n),p.l=!0,p.exports}return n.m=e,n.c=r,n.d=function(e,r,t){n.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:t})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,r){if(1&r&&(e=n(e)),8&r)return e;if(4&r&&"object"==typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(n.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var p in e)n.d(t,p,function(r){return e[r]}.bind(null,p));return t},n.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(r,"a",r),r},n.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},n.p="",n(n.s=300)}({12:function(e,r,n){"use strict";n.d(r,"a",(function(){return a}));var t=n(38);var p=n(31),c=n(39);function a(e,r){return Object(t.a)(e)||function(e,r){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],t=!0,p=!1,c=void 0;try{for(var a,i=e[Symbol.iterator]();!(t=(a=i.next()).done)&&(n.push(a.value),!r||n.length!==r);t=!0);}catch(e){p=!0,c=e}finally{try{t||null==i.return||i.return()}finally{if(p)throw c}}return n}}(e,r)||Object(p.a)(e,r)||Object(c.a)()}},27:function(e,r,n){"use strict";function t(e,r){(null==r||r>e.length)&&(r=e.length);for(var n=0,t=new Array(r);n)[^\\-]*)*(?:--\x3e)?|!\\[CDATA\\[[^\\]]*(?:](?!]>)[^\\]]*)*?(?:]]>)?)|[^>]*>?))");function c(e,r){for(var n=function(e){for(var r,n=[],t=e;r=t.match(p);){var c=r.index;n.push(t.slice(0,c)),n.push(r[0]),t=t.slice(c+r[0].length)}return t.length&&n.push(t),n}(e),t=!1,c=Object.keys(r),a=1;a1&&void 0!==arguments[1])||arguments[1],n=[];if(""===e.trim())return"";if(-1!==(e+="\n").indexOf(""),a=p.pop();e="";for(var i=0;i";n.push([u,o.substr(l)+""]),e+=o.substr(0,l)+u}else e+=o}e+=a}var s="(?:table|thead|tfoot|caption|col|colgroup|tbody|tr|td|th|div|dl|dd|dt|ul|ol|li|pre|form|map|area|blockquote|address|math|style|p|h[1-6]|hr|fieldset|legend|section|article|aside|hgroup|header|footer|nav|figure|figcaption|details|menu|summary)";-1!==(e=c(e=(e=(e=(e=e.replace(/\s*/g,"\n\n")).replace(new RegExp("(<"+s+"[\\s/>])","g"),"\n\n$1")).replace(new RegExp("()","g"),"$1\n\n")).replace(/\r\n|\r/g,"\n"),{"\n":" \x3c!-- wpnl --\x3e "})).indexOf("\s*/g,"")),-1!==e.indexOf("")&&(e=(e=(e=e.replace(/(]*>)\s*/g,"$1")).replace(/\s*<\/object>/g,"")).replace(/\s*(<\/?(?:param|embed)[^>]*>)\s*/g,"$1")),-1===e.indexOf("\]]*[>\]])\s*/g,"$1")).replace(/\s*([<\[]\/(?:audio|video)[>\]])/g,"$1")).replace(/\s*(<(?:source|track)[^>]*>)\s*/g,"$1")),-1!==e.indexOf("]*>)/,"$1")).replace(/<\/figcaption>\s*/,""));var f=(e=e.replace(/\n\n+/g,"\n\n")).split(/\n\s*\n/).filter(Boolean);return e="",f.forEach((function(r){e+="

"+r.replace(/^\n*|\n*$/g,"")+"

\n"})),e=(e=(e=(e=(e=(e=(e=(e=e.replace(/

\s*<\/p>/g,"")).replace(/

([^<]+)<\/(div|address|form)>/g,"

$1

")).replace(new RegExp("

\\s*(]*>)\\s*

","g"),"$1")).replace(/

(/g,"$1")).replace(/

]*)>/gi,"

")).replace(/<\/blockquote><\/p>/g,"

")).replace(new RegExp("

\\s*(]*>)","g"),"$1")).replace(new RegExp("(]*>)\\s*

","g"),"$1"),r&&(e=(e=(e=(e=e.replace(/<(script|style).*?<\/\\1>/g,(function(e){return e[0].replace(/\n/g,"")}))).replace(/
|/g,"
")).replace(/(
)?\s*\n/g,(function(e,r){return r?e:"
\n"}))).replace(//g,"\n")),e=(e=(e=e.replace(new RegExp("(]*>)\\s*
","g"),"$1")).replace(/
(\s*<\/?(?:p|li|div|dl|dd|dt|th|pre|td|ul|ol)[^>]*>)/g,"$1")).replace(/\n<\/p>$/g,"

"),n.forEach((function(r){var n=Object(t.a)(r,2),p=n[0],c=n[1];e=e.replace(p,c)})),-1!==e.indexOf("\x3c!-- wpnl --\x3e")&&(e=e.replace(/\s?\s?/g,"\n")),e}function i(e){var r="blockquote|ul|ol|li|dl|dt|dd|table|thead|tbody|tfoot|tr|th|td|h[1-6]|fieldset|figure",n=r+"|div|p",t=r+"|pre",p=[],c=!1,a=!1;return e?(-1===e.indexOf("]*>[\s\S]*?<\/\1>/g,(function(e){return p.push(e),""}))),-1!==e.indexOf("]*>[\s\S]+?<\/pre>/g,(function(e){return(e=(e=e.replace(/
(\r\n|\n)?/g,"")).replace(/<\/?p( [^>]*)?>(\r\n|\n)?/g,"")).replace(/\r?\n/g,"")}))),-1!==e.indexOf("[caption")&&(a=!0,e=e.replace(/\[caption[\s\S]+?\[\/caption\]/g,(function(e){return e.replace(/]*)>/g,"").replace(/[\r\n\t]+/,"")}))),-1!==(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=e.replace(new RegExp("\\s*\\s*","g"),"\n")).replace(new RegExp("\\s*<((?:"+n+")(?: [^>]*)?)>","g"),"\n<$1>")).replace(/(

]+>[\s\S]*?)<\/p>/g,"$1")).replace(/]*)?>\s*

/gi,"\n\n")).replace(/\s*

/gi,"")).replace(/\s*<\/p>\s*/gi,"\n\n")).replace(/\n[\s\u00a0]+\n/g,"\n\n")).replace(/(\s*)
\s*/gi,(function(e,r){return r&&-1!==r.indexOf("\n")?"\n\n":"\n"}))).replace(/\s*

\s*/g,"
\n")).replace(/\s*\[caption([^\[]+)\[\/caption\]\s*/gi,"\n\n[caption$1[/caption]\n\n")).replace(/caption\]\n\n+\[caption/g,"caption]\n\n[caption")).replace(new RegExp("\\s*<((?:"+t+")(?: [^>]*)?)\\s*>","g"),"\n<$1>")).replace(new RegExp("\\s*\\s*","g"),"\n")).replace(/<((li|dt|dd)[^>]*)>/g," \t<$1>")).indexOf("/g,"\n")),-1!==e.indexOf("]*)?>\s*/g,"\n\n\n\n")),-1!==e.indexOf("/g,(function(e){return e.replace(/[\r\n]+/g,"")}))),e=(e=(e=(e=e.replace(/<\/p#>/g,"

\n")).replace(/\s*(

]+>[\s\S]*?<\/p>)/g,"\n$1")).replace(/^\s+/,"")).replace(/[\s\u00a0]+$/,""),c&&(e=e.replace(//g,"\n")),a&&(e=e.replace(/]*)>/g,"")),p.length&&(e=e.replace(//g,(function(){return p.shift()}))),e):""}},31:function(e,r,n){"use strict";n.d(r,"a",(function(){return p}));var t=n(27);function p(e,r){if(e){if("string"==typeof e)return Object(t.a)(e,r);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Object(t.a)(e,r):void 0}}},38:function(e,r,n){"use strict";function t(e){if(Array.isArray(e))return e}n.d(r,"a",(function(){return t}))},39:function(e,r,n){"use strict";function t(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n.d(r,"a",(function(){return t}))}}); \ No newline at end of file diff --git a/wp-includes/js/dist/blob.js b/wp-includes/js/dist/blob.js index b338206a14..60d2884a2a 100644 --- a/wp-includes/js/dist/blob.js +++ b/wp-includes/js/dist/blob.js @@ -82,12 +82,12 @@ this["wp"] = this["wp"] || {}; this["wp"]["blob"] = /******/ /******/ /******/ // Load entry module and return exports -/******/ return __webpack_require__(__webpack_require__.s = 300); +/******/ return __webpack_require__(__webpack_require__.s = 301); /******/ }) /************************************************************************/ /******/ ({ -/***/ 300: +/***/ 301: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; diff --git a/wp-includes/js/dist/blob.min.js b/wp-includes/js/dist/blob.min.js index 736262c821..1f0a7c96d9 100644 --- a/wp-includes/js/dist/blob.min.js +++ b/wp-includes/js/dist/blob.min.js @@ -1,2 +1,2 @@ /*! This file is auto-generated */ -this.wp=this.wp||{},this.wp.blob=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=300)}({300:function(e,t,n){"use strict";n.r(t),n.d(t,"createBlobURL",(function(){return f})),n.d(t,"getBlobByURL",(function(){return c})),n.d(t,"getBlobTypeByURL",(function(){return l})),n.d(t,"revokeBlobURL",(function(){return d})),n.d(t,"isBlobURL",(function(){return a}));var r=window.URL,o=r.createObjectURL,u=r.revokeObjectURL,i={};function f(e){var t=o(e);return i[t]=e,t}function c(e){return i[e]}function l(e){var t;return null===(t=c(e))||void 0===t?void 0:t.type.split("/")[0]}function d(e){i[e]&&u(e),delete i[e]}function a(e){return!(!e||!e.indexOf)&&0===e.indexOf("blob:")}}}); \ No newline at end of file +this.wp=this.wp||{},this.wp.blob=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=301)}({301:function(e,t,n){"use strict";n.r(t),n.d(t,"createBlobURL",(function(){return f})),n.d(t,"getBlobByURL",(function(){return c})),n.d(t,"getBlobTypeByURL",(function(){return l})),n.d(t,"revokeBlobURL",(function(){return d})),n.d(t,"isBlobURL",(function(){return a}));var r=window.URL,o=r.createObjectURL,u=r.revokeObjectURL,i={};function f(e){var t=o(e);return i[t]=e,t}function c(e){return i[e]}function l(e){var t;return null===(t=c(e))||void 0===t?void 0:t.type.split("/")[0]}function d(e){i[e]&&u(e),delete i[e]}function a(e){return!(!e||!e.indexOf)&&0===e.indexOf("blob:")}}}); \ No newline at end of file diff --git a/wp-includes/js/dist/block-directory.js b/wp-includes/js/dist/block-directory.js index 175687faec..d0fbd5e437 100644 --- a/wp-includes/js/dist/block-directory.js +++ b/wp-includes/js/dist/block-directory.js @@ -82,7 +82,7 @@ this["wp"] = this["wp"] || {}; this["wp"]["blockDirectory"] = /******/ /******/ /******/ // Load entry module and return exports -/******/ return __webpack_require__(__webpack_require__.s = 460); +/******/ return __webpack_require__(__webpack_require__.s = 474); /******/ }) /************************************************************************/ /******/ ({ @@ -154,7 +154,7 @@ function _iterableToArrayLimit(arr, i) { return _arr; } // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js -var unsupportedIterableToArray = __webpack_require__(30); +var unsupportedIterableToArray = __webpack_require__(31); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/nonIterableRest.js var nonIterableRest = __webpack_require__(39); @@ -266,7 +266,7 @@ function _arrayWithoutHoles(arr) { var iterableToArray = __webpack_require__(37); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js -var unsupportedIterableToArray = __webpack_require__(30); +var unsupportedIterableToArray = __webpack_require__(31); // CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js function _nonIterableSpread() { @@ -297,7 +297,7 @@ function _toConsumableArray(arr) { /***/ }), -/***/ 208: +/***/ 207: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -353,25 +353,7 @@ function _arrayLikeToArray(arr, len) { /***/ }), -/***/ 30: -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _unsupportedIterableToArray; }); -/* harmony import */ var _babel_runtime_helpers_esm_arrayLikeToArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(27); - -function _unsupportedIterableToArray(o, minLen) { - if (!o) return; - if (typeof o === "string") return Object(_babel_runtime_helpers_esm_arrayLikeToArray__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(o, minLen); - var n = Object.prototype.toString.call(o).slice(8, -1); - if (n === "Object" && o.constructor) n = o.constructor.name; - if (n === "Map" || n === "Set") return Array.from(o); - if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return Object(_babel_runtime_helpers_esm_arrayLikeToArray__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(o, minLen); -} - -/***/ }), - -/***/ 301: +/***/ 302: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -396,7 +378,7 @@ var starFilled = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createE /***/ }), -/***/ 302: +/***/ 303: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -421,6 +403,24 @@ var starEmpty = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createEl /* harmony default export */ __webpack_exports__["a"] = (starEmpty); +/***/ }), + +/***/ 31: +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _unsupportedIterableToArray; }); +/* harmony import */ var _babel_runtime_helpers_esm_arrayLikeToArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(27); + +function _unsupportedIterableToArray(o, minLen) { + if (!o) return; + if (typeof o === "string") return Object(_babel_runtime_helpers_esm_arrayLikeToArray__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(o, minLen); + var n = Object.prototype.toString.call(o).slice(8, -1); + if (n === "Object" && o.constructor) n = o.constructor.name; + if (n === "Map" || n === "Set") return Array.from(o); + if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return Object(_babel_runtime_helpers_esm_arrayLikeToArray__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(o, minLen); +} + /***/ }), /***/ 32: @@ -549,7 +549,14 @@ function _asyncToGenerator(fn) { /***/ }), -/***/ 460: +/***/ 47: +/***/ (function(module, exports) { + +(function() { module.exports = this["wp"]["apiFetch"]; }()); + +/***/ }), + +/***/ 474: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -582,7 +589,7 @@ __webpack_require__.d(actions_namespaceObject, "setErrorNotice", function() { re __webpack_require__.d(actions_namespaceObject, "clearErrorNotice", function() { return clearErrorNotice; }); // EXTERNAL MODULE: external {"this":["wp","notices"]} -var external_this_wp_notices_ = __webpack_require__(92); +var external_this_wp_notices_ = __webpack_require__(94); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js var defineProperty = __webpack_require__(5); @@ -1563,7 +1570,7 @@ var external_this_wp_htmlEntities_ = __webpack_require__(69); var build_module_icon = __webpack_require__(141); // EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/star-filled.js -var star_filled = __webpack_require__(301); +var star_filled = __webpack_require__(302); // EXTERNAL MODULE: external {"this":["wp","primitives"]} var external_this_wp_primitives_ = __webpack_require__(7); @@ -1584,7 +1591,7 @@ var starHalf = Object(external_this_wp_element_["createElement"])(external_this_ /* harmony default export */ var star_half = (starHalf); // EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/star-empty.js -var star_empty = __webpack_require__(302); +var star_empty = __webpack_require__(303); // CONCATENATED MODULE: ./node_modules/@wordpress/block-directory/build-module/components/block-ratings/stars.js @@ -2132,7 +2139,7 @@ function InserterMenuDownloadableBlocksPanel() { var external_this_wp_editPost_ = __webpack_require__(276); // EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/block-default.js -var block_default = __webpack_require__(208); +var block_default = __webpack_require__(207); // CONCATENATED MODULE: ./node_modules/@wordpress/block-directory/build-module/components/compact-list/index.js @@ -2391,13 +2398,6 @@ Object(external_this_wp_hooks_["addFilter"])('blocks.registerBlockType', 'block- -/***/ }), - -/***/ 47: -/***/ (function(module, exports) { - -(function() { module.exports = this["wp"]["apiFetch"]; }()); - /***/ }), /***/ 5: @@ -2450,7 +2450,7 @@ function _defineProperty(obj, key, value) { /***/ }), -/***/ 92: +/***/ 94: /***/ (function(module, exports) { (function() { module.exports = this["wp"]["notices"]; }()); diff --git a/wp-includes/js/dist/block-directory.min.js b/wp-includes/js/dist/block-directory.min.js index 2e298c7214..fe02f9fd4d 100644 --- a/wp-includes/js/dist/block-directory.min.js +++ b/wp-includes/js/dist/block-directory.min.js @@ -1,2 +1,2 @@ /*! This file is auto-generated */ -this.wp=this.wp||{},this.wp.blockDirectory=function(e){var t={};function n(r){if(t[r])return t[r].exports;var c=t[r]={i:r,l:!1,exports:{}};return e[r].call(c.exports,c,c.exports,n),c.l=!0,c.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var c in e)n.d(r,c,function(t){return e[t]}.bind(null,c));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=460)}({0:function(e,t){!function(){e.exports=this.wp.element}()},1:function(e,t){!function(){e.exports=this.wp.i18n}()},10:function(e,t){!function(){e.exports=this.wp.compose}()},11:function(e,t){!function(){e.exports=this.wp.blocks}()},12:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(38);var c=n(30),o=n(39);function a(e,t){return Object(r.a)(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,c=!1,o=void 0;try{for(var a,i=e[Symbol.iterator]();!(r=(a=i.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){c=!0,o=e}finally{try{r||null==i.return||i.return()}finally{if(c)throw o}}return n}}(e,t)||Object(c.a)(e,t)||Object(o.a)()}},14:function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(43);function c(e,t){if(null==e)return{};var n,c,o=Object(r.a)(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(c=0;c=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}},141:function(e,t,n){"use strict";var r=n(5),c=n(14),o=n(0);function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}t.a=function(e){var t=e.icon,n=e.size,i=void 0===n?24:n,l=Object(c.a)(e,["icon","size"]);return Object(o.cloneElement)(t,function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||(c[n]=e[n]);return c}n.d(t,"a",(function(){return r}))},45:function(e,t,n){"use strict";function r(e,t,n,r,c,o,a){try{var i=e[o](a),l=i.value}catch(e){return void n(e)}i.done?t(l):Promise.resolve(l).then(r,c)}function c(e){return function(){var t=this,n=arguments;return new Promise((function(c,o){var a=e.apply(t,n);function i(e){r(a,c,o,i,l,"next",e)}function l(e){r(a,c,o,i,l,"throw",e)}i(void 0)}))}}n.d(t,"a",(function(){return c}))},46:function(e,t){!function(){e.exports=this.wp.a11y}()},460:function(e,t,n){"use strict";n.r(t);var r={};n.r(r),n.d(r,"isRequestingDownloadableBlocks",(function(){return O})),n.d(r,"getDownloadableBlocks",(function(){return p})),n.d(r,"getInstalledBlockTypes",(function(){return m})),n.d(r,"getNewBlockTypes",(function(){return j})),n.d(r,"getUnusedBlockTypes",(function(){return k})),n.d(r,"isInstalling",(function(){return h})),n.d(r,"getErrorNotices",(function(){return y})),n.d(r,"getErrorNoticeForBlock",(function(){return v}));var c={};n.r(c),n.d(c,"fetchDownloadableBlocks",(function(){return A})),n.d(c,"receiveDownloadableBlocks",(function(){return R})),n.d(c,"installBlockType",(function(){return M})),n.d(c,"uninstallBlockType",(function(){return F})),n.d(c,"addInstalledBlockType",(function(){return V})),n.d(c,"removeInstalledBlockType",(function(){return z})),n.d(c,"setIsInstalling",(function(){return H})),n.d(c,"setErrorNotice",(function(){return K})),n.d(c,"clearErrorNotice",(function(){return U}));n(92);var o=n(5),a=n(4),i=n(32),l=n(17),s=n(2);function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function b(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"FETCH_DOWNLOADABLE_BLOCKS":return b(b({},e),{},Object(o.a)({},t.filterValue,{isRequesting:!0}));case"RECEIVE_DOWNLOADABLE_BLOCKS":return b(b({},e),{},Object(o.a)({},t.filterValue,{results:t.downloadableBlocks,isRequesting:!1}))}return e},blockManagement:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{installedBlockTypes:[],isInstalling:{}},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"ADD_INSTALLED_BLOCK_TYPE":return b(b({},e),{},{installedBlockTypes:[].concat(Object(l.a)(e.installedBlockTypes),[t.item])});case"REMOVE_INSTALLED_BLOCK_TYPE":return b(b({},e),{},{installedBlockTypes:e.installedBlockTypes.filter((function(e){return e.name!==t.item.name}))});case"SET_INSTALLING_BLOCK":return b(b({},e),{},{isInstalling:b(b({},e.isInstalling),{},Object(o.a)({},t.blockId,t.isInstalling))})}return e},errorNotices:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SET_ERROR_NOTICE":return b(b({},e),{},Object(o.a)({},t.blockId,{message:t.message,isFatal:t.isFatal}));case"CLEAR_ERROR_NOTICE":return Object(s.omit)(e,t.blockId)}return e}});function f(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(!t.length)return!1;if(t.some((function(t){return t.name===e.name})))return!0;for(var n=0;n2&&void 0!==arguments[2]&&arguments[2];return{type:"SET_ERROR_NOTICE",blockId:e,message:t,isFatal:n}}function U(e){return{type:"CLEAR_ERROR_NOTICE",blockId:e}}var W={getDownloadableBlocks:w.a.mark((function e(t){var n,r;return w.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t){e.next=2;break}return e.abrupt("return");case 2:return e.prev=2,e.next=5,A(t);case 5:return e.next=7,Object(i.apiFetch)({path:"wp/v2/block-directory/search?term=".concat(t)});case 7:return n=e.sent,r=n.map((function(e){return Object(s.mapKeys)(e,(function(e,t){return Object(s.camelCase)(t)}))})),e.next=11,R(r,t);case 11:e.next=15;break;case 13:e.prev=13,e.t0=e.catch(2);case 15:case"end":return e.stop()}}),e,null,[[2,13]])}))};function Y(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function G(e){for(var t=1;t0?Object(_.sprintf)(Object(_._n)("This author has %1$d block, with an average rating of %2$.1f.","This author has %1$d blocks, with an average rating of %2$.1f.",n),n,r):Object(_.sprintf)(Object(_._n)("This author has %1$d block.","This author has %1$d blocks.",n),n)))},ae=n(69),ie=n(141),le=n(301),se=n(7),ue=Object(q.createElement)(se.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(q.createElement)(se.Path,{d:"M9.518 8.783a.25.25 0 00.188-.137l2.069-4.192a.25.25 0 01.448 0l2.07 4.192a.25.25 0 00.187.137l4.626.672a.25.25 0 01.139.427l-3.347 3.262a.25.25 0 00-.072.222l.79 4.607a.25.25 0 01-.363.264l-4.137-2.176a.25.25 0 00-.233 0l-4.138 2.175a.25.25 0 01-.362-.263l.79-4.607a.25.25 0 00-.072-.222L4.753 9.882a.25.25 0 01.14-.427l4.625-.672zM12 14.533c.28 0 .559.067.814.2l1.895.997-.362-2.11a1.75 1.75 0 01.504-1.55l1.533-1.495-2.12-.308a1.75 1.75 0 01-1.317-.957L12 7.39v7.143z"})),be=n(302);var de=function(e){var t=e.rating,n=.5*Math.round(t/.5),r=Math.floor(t),c=Math.ceil(t-r),o=5-(r+c);return Object(q.createElement)("div",{"aria-label":Object(_.sprintf)(Object(_.__)("%s out of 5 stars"),n)},Object(s.times)(r,(function(e){return Object(q.createElement)(ie.a,{key:"full_stars_".concat(e),icon:le.a,size:16})})),Object(s.times)(c,(function(e){return Object(q.createElement)(ie.a,{key:"half_stars_".concat(e),icon:ue,size:16})})),Object(s.times)(o,(function(e){return Object(q.createElement)(ie.a,{key:"empty_stars_".concat(e),icon:be.a,size:16})})))},fe=function(e){var t=e.rating,n=e.ratingCount;return Object(q.createElement)("div",{className:"block-directory-block-ratings"},Object(q.createElement)(de,{rating:t}),Object(q.createElement)("span",{className:"block-directory-block-ratings__rating-count","aria-label":Object(_.sprintf)(Object(_._n)("%d total rating","%d total ratings",n),n)},"(",n,")"))};var Oe=function(e){var t=e.icon,n=e.title;return Object(q.createElement)("div",{className:"block-directory-downloadable-block-icon"},null!==t.match(/\.(jpeg|jpg|gif|png|svg)(?:\?.*)?$/)?Object(q.createElement)("img",{src:t,alt:Object(_.sprintf)(Object(_.__)("%s block icon"),n)}):Object(q.createElement)(te.BlockIcon,{icon:t,showColors:!0}))};var pe=function(e){var t=e.icon,n=e.title,r=e.rating,c=e.ratingCount,o=e.isLoading,a=void 0!==o&&o,i=e.isInstallable,l=void 0===i||i,s=e.onClick;return Object(q.createElement)("div",{className:"block-directory-downloadable-block-header__row"},Object(q.createElement)(Oe,{icon:t,title:n}),Object(q.createElement)("div",{className:"block-directory-downloadable-block-header__column"},Object(q.createElement)("h2",{className:"block-directory-downloadable-block-header__title"},Object(ae.decodeEntities)(n)),Object(q.createElement)(fe,{rating:r,ratingCount:c})),Object(q.createElement)(re.Button,{isSecondary:!0,isBusy:a,disabled:a||!l,onClick:function(e){e.preventDefault(),!a&&l&&s()}},a?Object(_.__)("Adding…"):Object(_.__)("Add block")))},me=Object(q.createElement)(se.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(q.createElement)(se.Path,{d:"M18 3.5c0 .62-.38 1.16-.92 1.38v13.11H1.99l4.22-6.73c-.13-.23-.21-.48-.21-.76C6 9.67 6.67 9 7.5 9S9 9.67 9 10.5c0 .13-.02.25-.05.37l1.44.63c.27-.3.67-.5 1.11-.5.18 0 .35.04.51.09l3.58-6.41c-.36-.27-.59-.7-.59-1.18 0-.83.67-1.5 1.5-1.5.19 0 .36.04.53.1l.05-.09v.11c.54.22.92.76.92 1.38zm-1.92 13.49V5.85l-3.29 5.89c.13.23.21.48.21.76 0 .83-.67 1.5-1.5 1.5s-1.5-.67-1.5-1.5l.01-.07-1.63-.72c-.25.18-.55.29-.88.29-.18 0-.35-.04-.51-.1l-3.2 5.09h12.29z"})),je=Object(q.createElement)(se.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(q.createElement)(se.Path,{d:"M10.2 3.28c3.53 0 6.43 2.61 6.92 6h2.08l-3.5 4-3.5-4h2.32c-.45-1.97-2.21-3.45-4.32-3.45-1.45 0-2.73.71-3.54 1.78L4.95 5.66C6.23 4.2 8.11 3.28 10.2 3.28zm-.4 13.44c-3.52 0-6.43-2.61-6.92-6H.8l3.5-4c1.17 1.33 2.33 2.67 3.5 4H5.48c.45 1.97 2.21 3.45 4.32 3.45 1.45 0 2.73-.71 3.54-1.78l1.71 1.95c-1.28 1.46-3.15 2.38-5.25 2.38z"}));var ke=function(e){var t,n=e.activeInstalls,r=e.description,c=e.humanizedUpdated;return t=n>1e6?Object(_.sprintf)(Object(_.__)("%d+ Million active installations"),Math.floor(n/1e6)):0===n?Object(_.__)("Less than 10 active installations"):Object(_.sprintf)(Object(_.__)("%d+ active installations"),n),Object(q.createElement)(q.Fragment,null,Object(q.createElement)("p",{className:"block-directory-downloadable-block-info__content"},Object(ae.decodeEntities)(r)),Object(q.createElement)("div",{className:"block-directory-downloadable-block-info__meta"},Object(q.createElement)(ie.a,{className:"block-directory-downloadable-block-info__icon",icon:me}),t),Object(q.createElement)("div",{className:"block-directory-downloadable-block-info__meta"},Object(q.createElement)(ie.a,{className:"block-directory-downloadable-block-info__icon",icon:je}),Object(_.sprintf)(Object(_.__)("Updated %s"),c)))},he=function(e){var t=e.block,n=e.onClick,r=Object(a.useSelect)((function(e){return e("core/block-directory").getErrorNoticeForBlock(t.id)}),[t]);return r?Object(q.createElement)(re.Notice,{status:"error",isDismissible:!1,className:"block-directory-downloadable-block-notice"},Object(q.createElement)("div",{className:"block-directory-downloadable-block-notice__content"},r.message),Object(q.createElement)(re.Button,{isSmall:!0,isPrimary:!0,onClick:function(){if(r.isFatal)return window.location.reload(),!1;n(t)}},r.isFatal?Object(_.__)("Reload"):Object(_.__)("Retry"))):null};function ye(e){var t=e.item,n=e.onClick,r=Object(a.useSelect)((function(e){var n=e("core/block-directory"),r=n.isInstalling,c=(0,n.getErrorNoticeForBlock)(t.id),o=c&&c.isFatal;return{isLoading:r(t.id),isInstallable:!o}}),[t]),c=r.isLoading,o=r.isInstallable,i=t.icon,l=t.title,s=t.description,u=t.rating,b=t.activeInstalls,d=t.ratingCount,f=t.author,O=t.humanizedUpdated,p=t.authorBlockCount,m=t.authorBlockRating;return Object(q.createElement)("li",{className:"block-directory-downloadable-block-list-item"},Object(q.createElement)("article",{className:"block-directory-downloadable-block-list-item__panel"},Object(q.createElement)("header",{className:"block-directory-downloadable-block-list-item__header"},Object(q.createElement)(pe,{icon:i,onClick:n,title:l,rating:u,ratingCount:d,isLoading:c,isInstallable:o})),Object(q.createElement)("section",{className:"block-directory-downloadable-block-list-item__body"},Object(q.createElement)(he,{onClick:n,block:t}),Object(q.createElement)(ke,{activeInstalls:b,description:s,humanizedUpdated:O})),Object(q.createElement)("footer",{className:"block-directory-downloadable-block-list-item__footer"},Object(q.createElement)(oe,{author:f,authorBlockCount:p,authorBlockRating:m}))))}var ve=function(e){var t=e.items,n=e.onHover,r=void 0===n?s.noop:n,c=e.onSelect,o=Object(a.useDispatch)("core/block-directory").installBlockType,i=Object(a.useDispatch)("core/edit-post").setIsInserterOpened;return t.length?Object(q.createElement)("ul",{role:"list",className:"block-directory-downloadable-blocks-list"},t.map((function(e){return Object(q.createElement)(ye,{key:e.id,onClick:function(){o(e).then((function(t){t&&(c(e),i(!1))})),r(null)},item:e})}))):null};var ge=Object(ne.compose)([Object(a.withSelect)((function(e,t){var n=t.filterValue,r=e("core/block-directory"),c=r.getDownloadableBlocks,o=r.isRequestingDownloadableBlocks,a=e("core").canUser("read","block-directory/search");return{downloadableItems:a?c(n):[],hasPermission:a,isLoading:o(n)}}))])((function(e){var t=e.downloadableItems,n=e.onSelect,r=e.onHover,c=e.hasPermission,o=e.isLoading,a=e.isWaiting,i=Object(ne.useDebounce)(ce.speak,500);return!1===c?(i(Object(_.__)("No blocks found in your library.")),Object(q.createElement)("p",{className:"block-directory-downloadable-blocks-panel__description has-no-results"},Object(_.__)("No blocks found in your library."))):void 0===c||o||a?Object(q.createElement)("p",{className:"block-directory-downloadable-blocks-panel__description has-no-results"},Object(q.createElement)(re.Spinner,null)):t.length?(i(Object(_.sprintf)(Object(_._n)("No blocks found in your library. We did find %d block available for download.","No blocks found in your library. We did find %d blocks available for download.",t.length),t.length)),Object(q.createElement)(q.Fragment,null,Object(q.createElement)("p",{className:"block-directory-downloadable-blocks-panel__description"},Object(_.__)("No blocks found in your library. These blocks can be downloaded and installed:")),Object(q.createElement)(ve,{items:t,onSelect:n,onHover:r}))):Object(q.createElement)("p",{className:"block-directory-downloadable-blocks-panel__description has-no-results"},Object(_.__)("No blocks found in your library."))}));var we=function(){var e=Object(q.useState)(""),t=Object(ee.a)(e,2),n=t[0],r=t[1],c=Object(s.debounce)(r,400);return Object(q.createElement)(te.__experimentalInserterMenuExtension,null,(function(e){var t=e.onSelect,r=e.onHover,o=e.filterValue;return e.hasItems||!o?null:(n!==o&&c(o),Object(q.createElement)(ge,{onSelect:t,onHover:r,filterValue:n,isWaiting:o!==n}))}))},_e=n(276),Ee=n(208);function Be(e){var t=e.items;return t.length?Object(q.createElement)("ul",{className:"block-directory-compact-list"},t.map((function(e){var t=e.icon,n=e.id,r=e.title,c=e.author;return Object(q.createElement)("li",{key:n,className:"block-directory-compact-list__item"},Object(q.createElement)(Oe,{icon:t,title:r}),Object(q.createElement)("div",{className:"block-directory-compact-list__item-details"},Object(q.createElement)("div",{className:"block-directory-compact-list__item-title"},r),Object(q.createElement)("div",{className:"block-directory-compact-list__item-author"},Object(_.sprintf)(Object(_.__)("By %s"),c))))}))):null}function xe(){var e=Object(a.useSelect)((function(e){return e("core/block-directory").getNewBlockTypes()}),[]);return e.length?Object(q.createElement)(_e.PluginPrePublishPanel,{icon:Ee.a,title:Object(_.sprintf)(Object(_._n)("Added: %d block","Added: %d blocks",e.length),e.length),initialOpen:!0},Object(q.createElement)("p",{className:"installed-blocks-pre-publish-panel__copy"},Object(_._n)("The following block has been added to your site.","The following blocks have been added to your site.",e.length)),Object(q.createElement)(Be,{items:e})):null}function Se(e){var t=e.attributes,n=e.block,r=e.clientId,c=Object(a.useSelect)((function(e){return e("core/block-directory").isInstalling(n.id)})),o=Object(a.useDispatch)("core/block-directory").installBlockType,i=Object(a.useDispatch)("core/block-editor").replaceBlock;return Object(q.createElement)(re.Button,{onClick:function(){return o(n).then((function(e){if(e){var c=Object(X.getBlockType)(n.name),o=Object(X.parse)(t.originalContent),a=Object(ee.a)(o,1)[0];a&&i(r,Object(X.createBlock)(c.name,a.attributes,a.innerBlocks))}}))},disabled:c,isBusy:c,isPrimary:!0},Object(_.sprintf)(Object(_.__)("Install %s"),n.title))}var Pe=function(e){return function(t){var n=t.attributes,r=n.originalName,c=n.originalUndelimitedContent,o=Object(a.useSelect)((function(e){var t=(0,e("core/block-directory").getDownloadableBlocks)("block:"+r).filter((function(e){var t=e.name;return r===t}));return{hasPermission:e("core").canUser("read","block-directory/search"),block:t.length&&t[0]}}),[r]),i=o.block,l=o.hasPermission,s=Object(a.useDispatch)("core/block-editor").replaceBlock;if(!l||!i)return Object(q.createElement)(e,t);var u=!!c,b=Object(X.getBlockType)("core/html"),d=Object(_.sprintf)(Object(_.__)("Your site doesn’t include support for the %s block. You can try installing the block or remove it entirely."),i.title||r),f=[Object(q.createElement)(Se,{key:"install",block:i,attributes:t.attributes,clientId:t.clientId})];return u&&b&&(d=Object(_.sprintf)(Object(_.__)("Your site doesn’t include support for the %s block. You can try installing the block, convert it to a Custom HTML block, or remove it entirely."),i.title||r),f.push(Object(q.createElement)(re.Button,{key:"convert",onClick:function(){s(t.clientId,Object(X.createBlock)("core/html",{content:c}))},isLink:!0},Object(_.__)("Keep as HTML")))),Object(q.createElement)(q.Fragment,null,Object(q.createElement)(te.Warning,{actions:f},d),Object(q.createElement)(q.RawHTML,null,c))}};Object(J.registerPlugin)("block-directory",{render:function(){return Object(q.createElement)(q.Fragment,null,Object(q.createElement)(Z,null),Object(q.createElement)(we,null),Object(q.createElement)(xe,null))}}),Object(Q.addFilter)("blocks.registerBlockType","block-directory/fallback",(function(e,t){return"core/missing"!==t||(e.edit=Pe(e.edit)),e}))},47:function(e,t){!function(){e.exports=this.wp.apiFetch}()},5:function(e,t,n){"use strict";function r(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,"a",(function(){return r}))},6:function(e,t){!function(){e.exports=this.wp.blockEditor}()},69:function(e,t){!function(){e.exports=this.wp.htmlEntities}()},7:function(e,t){!function(){e.exports=this.wp.primitives}()},77:function(e,t){!function(){e.exports=this.wp.plugins}()},92:function(e,t){!function(){e.exports=this.wp.notices}()}}); \ No newline at end of file +this.wp=this.wp||{},this.wp.blockDirectory=function(e){var t={};function n(r){if(t[r])return t[r].exports;var c=t[r]={i:r,l:!1,exports:{}};return e[r].call(c.exports,c,c.exports,n),c.l=!0,c.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var c in e)n.d(r,c,function(t){return e[t]}.bind(null,c));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=474)}({0:function(e,t){!function(){e.exports=this.wp.element}()},1:function(e,t){!function(){e.exports=this.wp.i18n}()},10:function(e,t){!function(){e.exports=this.wp.compose}()},11:function(e,t){!function(){e.exports=this.wp.blocks}()},12:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(38);var c=n(31),o=n(39);function a(e,t){return Object(r.a)(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,c=!1,o=void 0;try{for(var a,i=e[Symbol.iterator]();!(r=(a=i.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){c=!0,o=e}finally{try{r||null==i.return||i.return()}finally{if(c)throw o}}return n}}(e,t)||Object(c.a)(e,t)||Object(o.a)()}},14:function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(43);function c(e,t){if(null==e)return{};var n,c,o=Object(r.a)(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(c=0;c=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}},141:function(e,t,n){"use strict";var r=n(5),c=n(14),o=n(0);function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}t.a=function(e){var t=e.icon,n=e.size,i=void 0===n?24:n,l=Object(c.a)(e,["icon","size"]);return Object(o.cloneElement)(t,function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||(c[n]=e[n]);return c}n.d(t,"a",(function(){return r}))},45:function(e,t,n){"use strict";function r(e,t,n,r,c,o,a){try{var i=e[o](a),l=i.value}catch(e){return void n(e)}i.done?t(l):Promise.resolve(l).then(r,c)}function c(e){return function(){var t=this,n=arguments;return new Promise((function(c,o){var a=e.apply(t,n);function i(e){r(a,c,o,i,l,"next",e)}function l(e){r(a,c,o,i,l,"throw",e)}i(void 0)}))}}n.d(t,"a",(function(){return c}))},46:function(e,t){!function(){e.exports=this.wp.a11y}()},47:function(e,t){!function(){e.exports=this.wp.apiFetch}()},474:function(e,t,n){"use strict";n.r(t);var r={};n.r(r),n.d(r,"isRequestingDownloadableBlocks",(function(){return O})),n.d(r,"getDownloadableBlocks",(function(){return p})),n.d(r,"getInstalledBlockTypes",(function(){return m})),n.d(r,"getNewBlockTypes",(function(){return j})),n.d(r,"getUnusedBlockTypes",(function(){return k})),n.d(r,"isInstalling",(function(){return h})),n.d(r,"getErrorNotices",(function(){return y})),n.d(r,"getErrorNoticeForBlock",(function(){return v}));var c={};n.r(c),n.d(c,"fetchDownloadableBlocks",(function(){return A})),n.d(c,"receiveDownloadableBlocks",(function(){return R})),n.d(c,"installBlockType",(function(){return M})),n.d(c,"uninstallBlockType",(function(){return F})),n.d(c,"addInstalledBlockType",(function(){return V})),n.d(c,"removeInstalledBlockType",(function(){return z})),n.d(c,"setIsInstalling",(function(){return H})),n.d(c,"setErrorNotice",(function(){return K})),n.d(c,"clearErrorNotice",(function(){return U}));n(94);var o=n(5),a=n(4),i=n(32),l=n(17),s=n(2);function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function b(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"FETCH_DOWNLOADABLE_BLOCKS":return b(b({},e),{},Object(o.a)({},t.filterValue,{isRequesting:!0}));case"RECEIVE_DOWNLOADABLE_BLOCKS":return b(b({},e),{},Object(o.a)({},t.filterValue,{results:t.downloadableBlocks,isRequesting:!1}))}return e},blockManagement:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{installedBlockTypes:[],isInstalling:{}},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"ADD_INSTALLED_BLOCK_TYPE":return b(b({},e),{},{installedBlockTypes:[].concat(Object(l.a)(e.installedBlockTypes),[t.item])});case"REMOVE_INSTALLED_BLOCK_TYPE":return b(b({},e),{},{installedBlockTypes:e.installedBlockTypes.filter((function(e){return e.name!==t.item.name}))});case"SET_INSTALLING_BLOCK":return b(b({},e),{},{isInstalling:b(b({},e.isInstalling),{},Object(o.a)({},t.blockId,t.isInstalling))})}return e},errorNotices:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SET_ERROR_NOTICE":return b(b({},e),{},Object(o.a)({},t.blockId,{message:t.message,isFatal:t.isFatal}));case"CLEAR_ERROR_NOTICE":return Object(s.omit)(e,t.blockId)}return e}});function f(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(!t.length)return!1;if(t.some((function(t){return t.name===e.name})))return!0;for(var n=0;n2&&void 0!==arguments[2]&&arguments[2];return{type:"SET_ERROR_NOTICE",blockId:e,message:t,isFatal:n}}function U(e){return{type:"CLEAR_ERROR_NOTICE",blockId:e}}var W={getDownloadableBlocks:w.a.mark((function e(t){var n,r;return w.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t){e.next=2;break}return e.abrupt("return");case 2:return e.prev=2,e.next=5,A(t);case 5:return e.next=7,Object(i.apiFetch)({path:"wp/v2/block-directory/search?term=".concat(t)});case 7:return n=e.sent,r=n.map((function(e){return Object(s.mapKeys)(e,(function(e,t){return Object(s.camelCase)(t)}))})),e.next=11,R(r,t);case 11:e.next=15;break;case 13:e.prev=13,e.t0=e.catch(2);case 15:case"end":return e.stop()}}),e,null,[[2,13]])}))};function Y(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function G(e){for(var t=1;t0?Object(_.sprintf)(Object(_._n)("This author has %1$d block, with an average rating of %2$.1f.","This author has %1$d blocks, with an average rating of %2$.1f.",n),n,r):Object(_.sprintf)(Object(_._n)("This author has %1$d block.","This author has %1$d blocks.",n),n)))},ae=n(69),ie=n(141),le=n(302),se=n(7),ue=Object(q.createElement)(se.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(q.createElement)(se.Path,{d:"M9.518 8.783a.25.25 0 00.188-.137l2.069-4.192a.25.25 0 01.448 0l2.07 4.192a.25.25 0 00.187.137l4.626.672a.25.25 0 01.139.427l-3.347 3.262a.25.25 0 00-.072.222l.79 4.607a.25.25 0 01-.363.264l-4.137-2.176a.25.25 0 00-.233 0l-4.138 2.175a.25.25 0 01-.362-.263l.79-4.607a.25.25 0 00-.072-.222L4.753 9.882a.25.25 0 01.14-.427l4.625-.672zM12 14.533c.28 0 .559.067.814.2l1.895.997-.362-2.11a1.75 1.75 0 01.504-1.55l1.533-1.495-2.12-.308a1.75 1.75 0 01-1.317-.957L12 7.39v7.143z"})),be=n(303);var de=function(e){var t=e.rating,n=.5*Math.round(t/.5),r=Math.floor(t),c=Math.ceil(t-r),o=5-(r+c);return Object(q.createElement)("div",{"aria-label":Object(_.sprintf)(Object(_.__)("%s out of 5 stars"),n)},Object(s.times)(r,(function(e){return Object(q.createElement)(ie.a,{key:"full_stars_".concat(e),icon:le.a,size:16})})),Object(s.times)(c,(function(e){return Object(q.createElement)(ie.a,{key:"half_stars_".concat(e),icon:ue,size:16})})),Object(s.times)(o,(function(e){return Object(q.createElement)(ie.a,{key:"empty_stars_".concat(e),icon:be.a,size:16})})))},fe=function(e){var t=e.rating,n=e.ratingCount;return Object(q.createElement)("div",{className:"block-directory-block-ratings"},Object(q.createElement)(de,{rating:t}),Object(q.createElement)("span",{className:"block-directory-block-ratings__rating-count","aria-label":Object(_.sprintf)(Object(_._n)("%d total rating","%d total ratings",n),n)},"(",n,")"))};var Oe=function(e){var t=e.icon,n=e.title;return Object(q.createElement)("div",{className:"block-directory-downloadable-block-icon"},null!==t.match(/\.(jpeg|jpg|gif|png|svg)(?:\?.*)?$/)?Object(q.createElement)("img",{src:t,alt:Object(_.sprintf)(Object(_.__)("%s block icon"),n)}):Object(q.createElement)(te.BlockIcon,{icon:t,showColors:!0}))};var pe=function(e){var t=e.icon,n=e.title,r=e.rating,c=e.ratingCount,o=e.isLoading,a=void 0!==o&&o,i=e.isInstallable,l=void 0===i||i,s=e.onClick;return Object(q.createElement)("div",{className:"block-directory-downloadable-block-header__row"},Object(q.createElement)(Oe,{icon:t,title:n}),Object(q.createElement)("div",{className:"block-directory-downloadable-block-header__column"},Object(q.createElement)("h2",{className:"block-directory-downloadable-block-header__title"},Object(ae.decodeEntities)(n)),Object(q.createElement)(fe,{rating:r,ratingCount:c})),Object(q.createElement)(re.Button,{isSecondary:!0,isBusy:a,disabled:a||!l,onClick:function(e){e.preventDefault(),!a&&l&&s()}},a?Object(_.__)("Adding…"):Object(_.__)("Add block")))},me=Object(q.createElement)(se.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(q.createElement)(se.Path,{d:"M18 3.5c0 .62-.38 1.16-.92 1.38v13.11H1.99l4.22-6.73c-.13-.23-.21-.48-.21-.76C6 9.67 6.67 9 7.5 9S9 9.67 9 10.5c0 .13-.02.25-.05.37l1.44.63c.27-.3.67-.5 1.11-.5.18 0 .35.04.51.09l3.58-6.41c-.36-.27-.59-.7-.59-1.18 0-.83.67-1.5 1.5-1.5.19 0 .36.04.53.1l.05-.09v.11c.54.22.92.76.92 1.38zm-1.92 13.49V5.85l-3.29 5.89c.13.23.21.48.21.76 0 .83-.67 1.5-1.5 1.5s-1.5-.67-1.5-1.5l.01-.07-1.63-.72c-.25.18-.55.29-.88.29-.18 0-.35-.04-.51-.1l-3.2 5.09h12.29z"})),je=Object(q.createElement)(se.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(q.createElement)(se.Path,{d:"M10.2 3.28c3.53 0 6.43 2.61 6.92 6h2.08l-3.5 4-3.5-4h2.32c-.45-1.97-2.21-3.45-4.32-3.45-1.45 0-2.73.71-3.54 1.78L4.95 5.66C6.23 4.2 8.11 3.28 10.2 3.28zm-.4 13.44c-3.52 0-6.43-2.61-6.92-6H.8l3.5-4c1.17 1.33 2.33 2.67 3.5 4H5.48c.45 1.97 2.21 3.45 4.32 3.45 1.45 0 2.73-.71 3.54-1.78l1.71 1.95c-1.28 1.46-3.15 2.38-5.25 2.38z"}));var ke=function(e){var t,n=e.activeInstalls,r=e.description,c=e.humanizedUpdated;return t=n>1e6?Object(_.sprintf)(Object(_.__)("%d+ Million active installations"),Math.floor(n/1e6)):0===n?Object(_.__)("Less than 10 active installations"):Object(_.sprintf)(Object(_.__)("%d+ active installations"),n),Object(q.createElement)(q.Fragment,null,Object(q.createElement)("p",{className:"block-directory-downloadable-block-info__content"},Object(ae.decodeEntities)(r)),Object(q.createElement)("div",{className:"block-directory-downloadable-block-info__meta"},Object(q.createElement)(ie.a,{className:"block-directory-downloadable-block-info__icon",icon:me}),t),Object(q.createElement)("div",{className:"block-directory-downloadable-block-info__meta"},Object(q.createElement)(ie.a,{className:"block-directory-downloadable-block-info__icon",icon:je}),Object(_.sprintf)(Object(_.__)("Updated %s"),c)))},he=function(e){var t=e.block,n=e.onClick,r=Object(a.useSelect)((function(e){return e("core/block-directory").getErrorNoticeForBlock(t.id)}),[t]);return r?Object(q.createElement)(re.Notice,{status:"error",isDismissible:!1,className:"block-directory-downloadable-block-notice"},Object(q.createElement)("div",{className:"block-directory-downloadable-block-notice__content"},r.message),Object(q.createElement)(re.Button,{isSmall:!0,isPrimary:!0,onClick:function(){if(r.isFatal)return window.location.reload(),!1;n(t)}},r.isFatal?Object(_.__)("Reload"):Object(_.__)("Retry"))):null};function ye(e){var t=e.item,n=e.onClick,r=Object(a.useSelect)((function(e){var n=e("core/block-directory"),r=n.isInstalling,c=(0,n.getErrorNoticeForBlock)(t.id),o=c&&c.isFatal;return{isLoading:r(t.id),isInstallable:!o}}),[t]),c=r.isLoading,o=r.isInstallable,i=t.icon,l=t.title,s=t.description,u=t.rating,b=t.activeInstalls,d=t.ratingCount,f=t.author,O=t.humanizedUpdated,p=t.authorBlockCount,m=t.authorBlockRating;return Object(q.createElement)("li",{className:"block-directory-downloadable-block-list-item"},Object(q.createElement)("article",{className:"block-directory-downloadable-block-list-item__panel"},Object(q.createElement)("header",{className:"block-directory-downloadable-block-list-item__header"},Object(q.createElement)(pe,{icon:i,onClick:n,title:l,rating:u,ratingCount:d,isLoading:c,isInstallable:o})),Object(q.createElement)("section",{className:"block-directory-downloadable-block-list-item__body"},Object(q.createElement)(he,{onClick:n,block:t}),Object(q.createElement)(ke,{activeInstalls:b,description:s,humanizedUpdated:O})),Object(q.createElement)("footer",{className:"block-directory-downloadable-block-list-item__footer"},Object(q.createElement)(oe,{author:f,authorBlockCount:p,authorBlockRating:m}))))}var ve=function(e){var t=e.items,n=e.onHover,r=void 0===n?s.noop:n,c=e.onSelect,o=Object(a.useDispatch)("core/block-directory").installBlockType,i=Object(a.useDispatch)("core/edit-post").setIsInserterOpened;return t.length?Object(q.createElement)("ul",{role:"list",className:"block-directory-downloadable-blocks-list"},t.map((function(e){return Object(q.createElement)(ye,{key:e.id,onClick:function(){o(e).then((function(t){t&&(c(e),i(!1))})),r(null)},item:e})}))):null};var ge=Object(ne.compose)([Object(a.withSelect)((function(e,t){var n=t.filterValue,r=e("core/block-directory"),c=r.getDownloadableBlocks,o=r.isRequestingDownloadableBlocks,a=e("core").canUser("read","block-directory/search");return{downloadableItems:a?c(n):[],hasPermission:a,isLoading:o(n)}}))])((function(e){var t=e.downloadableItems,n=e.onSelect,r=e.onHover,c=e.hasPermission,o=e.isLoading,a=e.isWaiting,i=Object(ne.useDebounce)(ce.speak,500);return!1===c?(i(Object(_.__)("No blocks found in your library.")),Object(q.createElement)("p",{className:"block-directory-downloadable-blocks-panel__description has-no-results"},Object(_.__)("No blocks found in your library."))):void 0===c||o||a?Object(q.createElement)("p",{className:"block-directory-downloadable-blocks-panel__description has-no-results"},Object(q.createElement)(re.Spinner,null)):t.length?(i(Object(_.sprintf)(Object(_._n)("No blocks found in your library. We did find %d block available for download.","No blocks found in your library. We did find %d blocks available for download.",t.length),t.length)),Object(q.createElement)(q.Fragment,null,Object(q.createElement)("p",{className:"block-directory-downloadable-blocks-panel__description"},Object(_.__)("No blocks found in your library. These blocks can be downloaded and installed:")),Object(q.createElement)(ve,{items:t,onSelect:n,onHover:r}))):Object(q.createElement)("p",{className:"block-directory-downloadable-blocks-panel__description has-no-results"},Object(_.__)("No blocks found in your library."))}));var we=function(){var e=Object(q.useState)(""),t=Object(ee.a)(e,2),n=t[0],r=t[1],c=Object(s.debounce)(r,400);return Object(q.createElement)(te.__experimentalInserterMenuExtension,null,(function(e){var t=e.onSelect,r=e.onHover,o=e.filterValue;return e.hasItems||!o?null:(n!==o&&c(o),Object(q.createElement)(ge,{onSelect:t,onHover:r,filterValue:n,isWaiting:o!==n}))}))},_e=n(276),Ee=n(207);function Be(e){var t=e.items;return t.length?Object(q.createElement)("ul",{className:"block-directory-compact-list"},t.map((function(e){var t=e.icon,n=e.id,r=e.title,c=e.author;return Object(q.createElement)("li",{key:n,className:"block-directory-compact-list__item"},Object(q.createElement)(Oe,{icon:t,title:r}),Object(q.createElement)("div",{className:"block-directory-compact-list__item-details"},Object(q.createElement)("div",{className:"block-directory-compact-list__item-title"},r),Object(q.createElement)("div",{className:"block-directory-compact-list__item-author"},Object(_.sprintf)(Object(_.__)("By %s"),c))))}))):null}function xe(){var e=Object(a.useSelect)((function(e){return e("core/block-directory").getNewBlockTypes()}),[]);return e.length?Object(q.createElement)(_e.PluginPrePublishPanel,{icon:Ee.a,title:Object(_.sprintf)(Object(_._n)("Added: %d block","Added: %d blocks",e.length),e.length),initialOpen:!0},Object(q.createElement)("p",{className:"installed-blocks-pre-publish-panel__copy"},Object(_._n)("The following block has been added to your site.","The following blocks have been added to your site.",e.length)),Object(q.createElement)(Be,{items:e})):null}function Se(e){var t=e.attributes,n=e.block,r=e.clientId,c=Object(a.useSelect)((function(e){return e("core/block-directory").isInstalling(n.id)})),o=Object(a.useDispatch)("core/block-directory").installBlockType,i=Object(a.useDispatch)("core/block-editor").replaceBlock;return Object(q.createElement)(re.Button,{onClick:function(){return o(n).then((function(e){if(e){var c=Object(X.getBlockType)(n.name),o=Object(X.parse)(t.originalContent),a=Object(ee.a)(o,1)[0];a&&i(r,Object(X.createBlock)(c.name,a.attributes,a.innerBlocks))}}))},disabled:c,isBusy:c,isPrimary:!0},Object(_.sprintf)(Object(_.__)("Install %s"),n.title))}var Pe=function(e){return function(t){var n=t.attributes,r=n.originalName,c=n.originalUndelimitedContent,o=Object(a.useSelect)((function(e){var t=(0,e("core/block-directory").getDownloadableBlocks)("block:"+r).filter((function(e){var t=e.name;return r===t}));return{hasPermission:e("core").canUser("read","block-directory/search"),block:t.length&&t[0]}}),[r]),i=o.block,l=o.hasPermission,s=Object(a.useDispatch)("core/block-editor").replaceBlock;if(!l||!i)return Object(q.createElement)(e,t);var u=!!c,b=Object(X.getBlockType)("core/html"),d=Object(_.sprintf)(Object(_.__)("Your site doesn’t include support for the %s block. You can try installing the block or remove it entirely."),i.title||r),f=[Object(q.createElement)(Se,{key:"install",block:i,attributes:t.attributes,clientId:t.clientId})];return u&&b&&(d=Object(_.sprintf)(Object(_.__)("Your site doesn’t include support for the %s block. You can try installing the block, convert it to a Custom HTML block, or remove it entirely."),i.title||r),f.push(Object(q.createElement)(re.Button,{key:"convert",onClick:function(){s(t.clientId,Object(X.createBlock)("core/html",{content:c}))},isLink:!0},Object(_.__)("Keep as HTML")))),Object(q.createElement)(q.Fragment,null,Object(q.createElement)(te.Warning,{actions:f},d),Object(q.createElement)(q.RawHTML,null,c))}};Object(J.registerPlugin)("block-directory",{render:function(){return Object(q.createElement)(q.Fragment,null,Object(q.createElement)(Z,null),Object(q.createElement)(we,null),Object(q.createElement)(xe,null))}}),Object(Q.addFilter)("blocks.registerBlockType","block-directory/fallback",(function(e,t){return"core/missing"!==t||(e.edit=Pe(e.edit)),e}))},5:function(e,t,n){"use strict";function r(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,"a",(function(){return r}))},6:function(e,t){!function(){e.exports=this.wp.blockEditor}()},69:function(e,t){!function(){e.exports=this.wp.htmlEntities}()},7:function(e,t){!function(){e.exports=this.wp.primitives}()},77:function(e,t){!function(){e.exports=this.wp.plugins}()},94:function(e,t){!function(){e.exports=this.wp.notices}()}}); \ No newline at end of file diff --git a/wp-includes/js/dist/block-editor.js b/wp-includes/js/dist/block-editor.js index 74c218b1bc..45921f4977 100644 --- a/wp-includes/js/dist/block-editor.js +++ b/wp-includes/js/dist/block-editor.js @@ -82,7 +82,7 @@ this["wp"] = this["wp"] || {}; this["wp"]["blockEditor"] = /******/ /******/ /******/ // Load entry module and return exports -/******/ return __webpack_require__(__webpack_require__.s = 455); +/******/ return __webpack_require__(__webpack_require__.s = 469); /******/ }) /************************************************************************/ /******/ ([ @@ -276,7 +276,7 @@ function _iterableToArrayLimit(arr, i) { return _arr; } // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js -var unsupportedIterableToArray = __webpack_require__(30); +var unsupportedIterableToArray = __webpack_require__(31); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/nonIterableRest.js var nonIterableRest = __webpack_require__(39); @@ -475,7 +475,7 @@ function _arrayWithoutHoles(arr) { var iterableToArray = __webpack_require__(37); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js -var unsupportedIterableToArray = __webpack_require__(30); +var unsupportedIterableToArray = __webpack_require__(31); // CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js function _nonIterableSpread() { @@ -651,6 +651,12 @@ if (false) { var throwOnDirectAccess, ReactIs; } else { /***/ }), /* 30 */ +/***/ (function(module, exports) { + +(function() { module.exports = this["wp"]["url"]; }()); + +/***/ }), +/* 31 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -666,12 +672,6 @@ function _unsupportedIterableToArray(o, minLen) { if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return Object(_babel_runtime_helpers_esm_arrayLikeToArray__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(o, minLen); } -/***/ }), -/* 31 */ -/***/ (function(module, exports) { - -(function() { module.exports = this["wp"]["url"]; }()); - /***/ }), /* 32 */, /* 33 */ @@ -5051,7 +5051,7 @@ function useBlockEditContext() { // UNUSED EXPORTS: warning, useWarning // EXTERNAL MODULE: ./node_modules/reakit-warning/es/warning.js -var warning = __webpack_require__(108); +var warning = __webpack_require__(110); // EXTERNAL MODULE: external {"this":"React"} var external_this_React_ = __webpack_require__(13); @@ -5163,7 +5163,8 @@ function createOnKeyDown(_temp) { /* 85 */, /* 86 */, /* 87 */, -/* 88 */ +/* 88 */, +/* 89 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -5284,22 +5285,21 @@ var Clickable = Object(reakit_system_createComponent__WEBPACK_IMPORTED_MODULE_1_ /***/ }), -/* 89 */, -/* 90 */ +/* 90 */, +/* 91 */, +/* 92 */ /***/ (function(module, exports) { (function() { module.exports = this["wp"]["warning"]; }()); /***/ }), -/* 91 */, -/* 92 */ +/* 93 */, +/* 94 */ /***/ (function(module, exports) { (function() { module.exports = this["wp"]["notices"]; }()); /***/ }), -/* 93 */, -/* 94 */, /* 95 */, /* 96 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { @@ -5377,7 +5377,7 @@ var unstable_Id = Object(reakit_system_createComponent__WEBPACK_IMPORTED_MODULE_ "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return fireEvent; }); -/* harmony import */ var _createEvent_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(126); +/* harmony import */ var _createEvent_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(127); @@ -5452,7 +5452,7 @@ function setTextFieldValue(element, value) { "use strict"; exports.__esModule = true; -var TextareaAutosize_1 = __webpack_require__(180); +var TextareaAutosize_1 = __webpack_require__(181); exports["default"] = TextareaAutosize_1["default"]; @@ -5463,7 +5463,8 @@ exports["default"] = TextareaAutosize_1["default"]; (function() { module.exports = this["wp"]["viewport"]; }()); /***/ }), -/* 102 */ +/* 102 */, +/* 103 */ /***/ (function(module, exports) { // shim for using process in browser @@ -5653,8 +5654,9 @@ process.umask = function() { return 0; }; /***/ }), -/* 103 */, -/* 104 */ +/* 104 */, +/* 105 */, +/* 106 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -5734,10 +5736,10 @@ function fireKeyboardEvent(element, type, eventInit) { /***/ }), -/* 105 */, -/* 106 */, /* 107 */, -/* 108 */ +/* 108 */, +/* 109 */, +/* 110 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -5762,18 +5764,17 @@ function warning(condition) { /***/ }), -/* 109 */ +/* 111 */ /***/ (function(module, exports) { (function() { module.exports = this["ReactDOM"]; }()); /***/ }), -/* 110 */, -/* 111 */, /* 112 */, /* 113 */, /* 114 */, -/* 115 */ +/* 115 */, +/* 116 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -5783,12 +5784,12 @@ Object.defineProperty(exports, '__esModule', { value: true }); function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; } -var _extends = _interopDefault(__webpack_require__(177)); -var _objectWithoutPropertiesLoose = _interopDefault(__webpack_require__(178)); +var _extends = _interopDefault(__webpack_require__(178)); +var _objectWithoutPropertiesLoose = _interopDefault(__webpack_require__(179)); var React = __webpack_require__(13); var React__default = _interopDefault(React); var _inheritsLoose = _interopDefault(__webpack_require__(158)); -var _assertThisInitialized = _interopDefault(__webpack_require__(179)); +var _assertThisInitialized = _interopDefault(__webpack_require__(180)); var is = { arr: Array.isArray, @@ -8103,13 +8104,13 @@ exports.useSprings = useSprings; /***/ }), -/* 116 */, /* 117 */, /* 118 */, /* 119 */, /* 120 */, /* 121 */, -/* 122 */ +/* 122 */, +/* 123 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -8131,7 +8132,7 @@ exports.useSprings = useSprings; /* harmony import */ var reakit_utils_createOnKeyDown__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(82); /* harmony import */ var reakit_utils_getDocument__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(49); /* harmony import */ var reakit_utils_fireEvent__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(97); -/* harmony import */ var reakit_utils_fireKeyboardEvent__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(104); +/* harmony import */ var reakit_utils_fireKeyboardEvent__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(106); /* harmony import */ var _CompositeState_3a25dcee_js__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(52); @@ -8469,7 +8470,7 @@ var Composite = Object(reakit_system_createComponent__WEBPACK_IMPORTED_MODULE_1_ /***/ }), -/* 123 */ +/* 124 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -8487,7 +8488,7 @@ var Composite = Object(reakit_system_createComponent__WEBPACK_IMPORTED_MODULE_1_ /* harmony import */ var reakit_utils_hasFocusWithin__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(70); /* harmony import */ var reakit_utils_isPortalEvent__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(73); /* harmony import */ var reakit_utils_tabbable__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(72); -/* harmony import */ var _Clickable_Clickable_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(88); +/* harmony import */ var _Clickable_Clickable_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(89); /* harmony import */ var reakit_utils_createOnKeyDown__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(82); /* harmony import */ var reakit_utils_getDocument__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(49); /* harmony import */ var _CompositeState_3a25dcee_js__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(52); @@ -8832,9 +8833,9 @@ var CompositeItem = Object(reakit_system_createComponent__WEBPACK_IMPORTED_MODUL /***/ }), -/* 124 */, /* 125 */, -/* 126 */ +/* 126 */, +/* 127 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -8873,29 +8874,28 @@ function createEvent(element, type, eventInit) { /***/ }), -/* 127 */ +/* 128 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -module.exports = __webpack_require__(184); +module.exports = __webpack_require__(185); /***/ }), -/* 128 */ +/* 129 */ /***/ (function(module, exports) { (function() { module.exports = this["wp"]["wordcount"]; }()); /***/ }), -/* 129 */, -/* 130 */ +/* 130 */, +/* 131 */ /***/ (function(module, exports) { (function() { module.exports = this["wp"]["shortcode"]; }()); /***/ }), -/* 131 */, /* 132 */, /* 133 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { @@ -8909,7 +8909,7 @@ module.exports = __webpack_require__(184); /* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_3__); /* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(3); /* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_wordpress_components__WEBPACK_IMPORTED_MODULE_4__); -/* harmony import */ var _use_display_block_controls__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(170); +/* harmony import */ var _use_display_block_controls__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(171); @@ -9136,7 +9136,7 @@ module.exports = ReactPropTypesSecret; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _toArray; }); /* harmony import */ var _babel_runtime_helpers_esm_arrayWithHoles__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(38); /* harmony import */ var _babel_runtime_helpers_esm_iterableToArray__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(37); -/* harmony import */ var _babel_runtime_helpers_esm_unsupportedIterableToArray__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(30); +/* harmony import */ var _babel_runtime_helpers_esm_unsupportedIterableToArray__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(31); /* harmony import */ var _babel_runtime_helpers_esm_nonIterableRest__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(39); @@ -9307,7 +9307,8 @@ var check = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElemen /* 167 */, /* 168 */, /* 169 */, -/* 170 */ +/* 170 */, +/* 171 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -9354,7 +9355,7 @@ function useDisplayBlockControls() { /***/ }), -/* 171 */ +/* 172 */ /***/ (function(module, exports) { if (typeof Object.create === 'function') { @@ -9387,21 +9388,21 @@ if (typeof Object.create === 'function') { /***/ }), -/* 172 */, /* 173 */, -/* 174 */ +/* 174 */, +/* 175 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var _CSSTransition = _interopRequireDefault(__webpack_require__(307)); +var _CSSTransition = _interopRequireDefault(__webpack_require__(308)); -var _ReplaceTransition = _interopRequireDefault(__webpack_require__(312)); +var _ReplaceTransition = _interopRequireDefault(__webpack_require__(313)); -var _TransitionGroup = _interopRequireDefault(__webpack_require__(213)); +var _TransitionGroup = _interopRequireDefault(__webpack_require__(212)); -var _Transition = _interopRequireDefault(__webpack_require__(210)); +var _Transition = _interopRequireDefault(__webpack_require__(209)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } @@ -9413,9 +9414,9 @@ module.exports = { }; /***/ }), -/* 175 */, /* 176 */, -/* 177 */ +/* 177 */, +/* 178 */ /***/ (function(module, exports) { function _extends() { @@ -9439,7 +9440,7 @@ function _extends() { module.exports = _extends; /***/ }), -/* 178 */ +/* 179 */ /***/ (function(module, exports) { function _objectWithoutPropertiesLoose(source, excluded) { @@ -9460,7 +9461,7 @@ function _objectWithoutPropertiesLoose(source, excluded) { module.exports = _objectWithoutPropertiesLoose; /***/ }), -/* 179 */ +/* 180 */ /***/ (function(module, exports) { function _assertThisInitialized(self) { @@ -9474,7 +9475,7 @@ function _assertThisInitialized(self) { module.exports = _assertThisInitialized; /***/ }), -/* 180 */ +/* 181 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -9509,8 +9510,8 @@ var __rest = (this && this.__rest) || function (s, e) { exports.__esModule = true; var React = __webpack_require__(13); var PropTypes = __webpack_require__(28); -var autosize = __webpack_require__(181); -var _getLineHeight = __webpack_require__(182); +var autosize = __webpack_require__(182); +var _getLineHeight = __webpack_require__(183); var getLineHeight = _getLineHeight; var UPDATE = 'autosize:update'; var DESTROY = 'autosize:destroy'; @@ -9602,7 +9603,7 @@ exports["default"] = TextareaAutosize; /***/ }), -/* 181 */ +/* 182 */ /***/ (function(module, exports, __webpack_require__) { var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*! @@ -9890,11 +9891,11 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_ }); /***/ }), -/* 182 */ +/* 183 */ /***/ (function(module, exports, __webpack_require__) { // Load in dependencies -var computedStyle = __webpack_require__(183); +var computedStyle = __webpack_require__(184); /** * Calculate the `line-height` of a given node @@ -9993,7 +9994,7 @@ module.exports = lineHeight; /***/ }), -/* 183 */ +/* 184 */ /***/ (function(module, exports) { // This code has been refactored for 140 bytes @@ -10026,13 +10027,13 @@ module.exports = computedStyle; /***/ }), -/* 184 */ +/* 185 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var util = __webpack_require__(185); +var util = __webpack_require__(186); function scrollIntoView(elem, container, config) { config = config || {}; @@ -10161,7 +10162,7 @@ function scrollIntoView(elem, container, config) { module.exports = scrollIntoView; /***/ }), -/* 185 */ +/* 186 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -10606,7 +10607,7 @@ module.exports = _extends({ }, domUtils); /***/ }), -/* 186 */ +/* 187 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -10630,7 +10631,6 @@ var link = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement /***/ }), -/* 187 */, /* 188 */, /* 189 */, /* 190 */, @@ -10650,8 +10650,7 @@ var link = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement /* 204 */, /* 205 */, /* 206 */, -/* 207 */, -/* 208 */ +/* 207 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -10675,7 +10674,7 @@ var blockDefault = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["creat /***/ }), -/* 209 */ +/* 208 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -10699,7 +10698,7 @@ var plus = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement /***/ }), -/* 210 */ +/* 209 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -10712,11 +10711,11 @@ var PropTypes = _interopRequireWildcard(__webpack_require__(28)); var _react = _interopRequireDefault(__webpack_require__(13)); -var _reactDom = _interopRequireDefault(__webpack_require__(109)); +var _reactDom = _interopRequireDefault(__webpack_require__(111)); -var _reactLifecyclesCompat = __webpack_require__(211); +var _reactLifecyclesCompat = __webpack_require__(210); -var _PropTypes = __webpack_require__(212); +var _PropTypes = __webpack_require__(211); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } @@ -11163,7 +11162,7 @@ var _default = (0, _reactLifecyclesCompat.polyfill)(Transition); exports.default = _default; /***/ }), -/* 211 */ +/* 210 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -11330,7 +11329,7 @@ function polyfill(Component) { /***/ }), -/* 212 */ +/* 211 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -11349,7 +11348,7 @@ var classNamesShape = false ? undefined : null; exports.classNamesShape = classNamesShape; /***/ }), -/* 213 */ +/* 212 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -11362,9 +11361,9 @@ var _propTypes = _interopRequireDefault(__webpack_require__(28)); var _react = _interopRequireDefault(__webpack_require__(13)); -var _reactLifecyclesCompat = __webpack_require__(211); +var _reactLifecyclesCompat = __webpack_require__(210); -var _ChildMapping = __webpack_require__(313); +var _ChildMapping = __webpack_require__(314); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } @@ -11506,7 +11505,7 @@ exports.default = _default; module.exports = exports["default"]; /***/ }), -/* 214 */ +/* 213 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -11530,7 +11529,7 @@ var chevronRight = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["creat /***/ }), -/* 215 */ +/* 214 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -11554,7 +11553,7 @@ var chevronLeft = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["create /***/ }), -/* 216 */ +/* 215 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -11578,7 +11577,7 @@ var keyboardReturn = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["cre /***/ }), -/* 217 */ +/* 216 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -11602,6 +11601,7 @@ var upload = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createEleme /***/ }), +/* 217 */, /* 218 */, /* 219 */, /* 220 */, @@ -11733,11 +11733,11 @@ exports.default = multi; /* harmony import */ var _babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(12); /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(0); /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var react_transition_group__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(174); +/* harmony import */ var react_transition_group__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(175); /* harmony import */ var react_transition_group__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react_transition_group__WEBPACK_IMPORTED_MODULE_2__); /* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(2); /* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var _wordpress_warning__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(90); +/* harmony import */ var _wordpress_warning__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(92); /* harmony import */ var _wordpress_warning__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_wordpress_warning__WEBPACK_IMPORTED_MODULE_4__); /* harmony import */ var _block_controls__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(133); @@ -11856,7 +11856,7 @@ function ExpandedBlockControlsHandler(_ref2) { }, children)))); } -/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(102))) +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(103))) /***/ }), /* 279 */ @@ -11875,7 +11875,7 @@ exports.characterDiff = void 0; /*istanbul ignore end*/ var /*istanbul ignore start*/ -_base = _interopRequireDefault(__webpack_require__(317)) +_base = _interopRequireDefault(__webpack_require__(318)) /*istanbul ignore end*/ ; @@ -12407,7 +12407,8 @@ var hasOwnProperty = Object.hasOwnProperty || function (obj, key) { /* 300 */, /* 301 */, /* 302 */, -/* 303 */ +/* 303 */, +/* 304 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -12431,7 +12432,7 @@ var alignLeft = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createEl /***/ }), -/* 304 */ +/* 305 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -12455,7 +12456,7 @@ var alignCenter = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["create /***/ }), -/* 305 */ +/* 306 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -12479,7 +12480,7 @@ var alignRight = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createE /***/ }), -/* 306 */ +/* 307 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -12503,7 +12504,7 @@ var search = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createEleme /***/ }), -/* 307 */ +/* 308 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -12514,15 +12515,15 @@ exports.default = void 0; var PropTypes = _interopRequireWildcard(__webpack_require__(28)); -var _addClass = _interopRequireDefault(__webpack_require__(308)); +var _addClass = _interopRequireDefault(__webpack_require__(309)); -var _removeClass = _interopRequireDefault(__webpack_require__(311)); +var _removeClass = _interopRequireDefault(__webpack_require__(312)); var _react = _interopRequireDefault(__webpack_require__(13)); -var _Transition = _interopRequireDefault(__webpack_require__(210)); +var _Transition = _interopRequireDefault(__webpack_require__(209)); -var _PropTypes = __webpack_require__(212); +var _PropTypes = __webpack_require__(211); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } @@ -12766,18 +12767,18 @@ exports.default = _default; module.exports = exports["default"]; /***/ }), -/* 308 */ +/* 309 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var _interopRequireDefault = __webpack_require__(309); +var _interopRequireDefault = __webpack_require__(310); exports.__esModule = true; exports.default = addClass; -var _hasClass = _interopRequireDefault(__webpack_require__(310)); +var _hasClass = _interopRequireDefault(__webpack_require__(311)); function addClass(element, className) { if (element.classList) element.classList.add(className);else if (!(0, _hasClass.default)(element, className)) if (typeof element.className === 'string') element.className = element.className + ' ' + className;else element.setAttribute('class', (element.className && element.className.baseVal || '') + ' ' + className); @@ -12786,7 +12787,7 @@ function addClass(element, className) { module.exports = exports["default"]; /***/ }), -/* 309 */ +/* 310 */ /***/ (function(module, exports) { function _interopRequireDefault(obj) { @@ -12798,7 +12799,7 @@ function _interopRequireDefault(obj) { module.exports = _interopRequireDefault; /***/ }), -/* 310 */ +/* 311 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -12814,7 +12815,7 @@ function hasClass(element, className) { module.exports = exports["default"]; /***/ }), -/* 311 */ +/* 312 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -12829,7 +12830,7 @@ module.exports = function removeClass(element, className) { }; /***/ }), -/* 312 */ +/* 313 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -12842,9 +12843,9 @@ var _propTypes = _interopRequireDefault(__webpack_require__(28)); var _react = _interopRequireDefault(__webpack_require__(13)); -var _reactDom = __webpack_require__(109); +var _reactDom = __webpack_require__(111); -var _TransitionGroup = _interopRequireDefault(__webpack_require__(213)); +var _TransitionGroup = _interopRequireDefault(__webpack_require__(212)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } @@ -12979,7 +12980,7 @@ exports.default = _default; module.exports = exports["default"]; /***/ }), -/* 313 */ +/* 314 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -13135,7 +13136,7 @@ function getNextChildMapping(nextProps, prevChildMapping, onExited) { } /***/ }), -/* 314 */ +/* 315 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -13159,7 +13160,7 @@ var chevronUp = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createEl /***/ }), -/* 315 */ +/* 316 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -13183,7 +13184,7 @@ var chevronDown = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["create /***/ }), -/* 316 */ +/* 317 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -13207,7 +13208,7 @@ var moreVertical = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["creat /***/ }), -/* 317 */ +/* 318 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -13517,7 +13518,7 @@ function clonePath(path) { /***/ }), -/* 318 */ +/* 319 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -13541,7 +13542,7 @@ var layout = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createEleme /***/ }), -/* 319 */ +/* 320 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -13565,7 +13566,6 @@ var media = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElemen /***/ }), -/* 320 */, /* 321 */, /* 322 */, /* 323 */, @@ -13700,7 +13700,21 @@ var media = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElemen /* 452 */, /* 453 */, /* 454 */, -/* 455 */ +/* 455 */, +/* 456 */, +/* 457 */, +/* 458 */, +/* 459 */, +/* 460 */, +/* 461 */, +/* 462 */, +/* 463 */, +/* 464 */, +/* 465 */, +/* 466 */, +/* 467 */, +/* 468 */, +/* 469 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -13971,7 +13985,7 @@ var external_this_wp_viewport_ = __webpack_require__(101); var external_this_wp_keyboardShortcuts_ = __webpack_require__(53); // EXTERNAL MODULE: external {"this":["wp","notices"]} -var external_this_wp_notices_ = __webpack_require__(92); +var external_this_wp_notices_ = __webpack_require__(94); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js var esm_extends = __webpack_require__(8); @@ -15447,7 +15461,7 @@ function ContrastChecker(_ref2) { /* harmony default export */ var contrast_checker = (ContrastChecker); // EXTERNAL MODULE: ./node_modules/@wordpress/block-editor/build-module/components/use-display-block-controls/index.js -var use_display_block_controls = __webpack_require__(170); +var use_display_block_controls = __webpack_require__(171); // CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/inspector-controls/index.js @@ -17723,13 +17737,13 @@ var DEFAULT_FONT_SIZES = []; // EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/align-left.js -var align_left = __webpack_require__(303); +var align_left = __webpack_require__(304); // EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/align-center.js -var align_center = __webpack_require__(304); +var align_center = __webpack_require__(305); // EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/align-right.js -var align_right = __webpack_require__(305); +var align_right = __webpack_require__(306); // CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/alignment-toolbar/index.js @@ -18065,7 +18079,7 @@ var use_block_types_state_useBlockTypesState = function useBlockTypesState(rootC /* harmony default export */ var use_block_types_state = (use_block_types_state_useBlockTypesState); // EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/block-default.js -var block_default = __webpack_require__(208); +var block_default = __webpack_require__(207); // CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-icon/index.js @@ -18818,10 +18832,10 @@ var external_this_regeneratorRuntime_default = /*#__PURE__*/__webpack_require__. var asyncToGenerator = __webpack_require__(45); // EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/more-vertical.js -var more_vertical = __webpack_require__(316); +var more_vertical = __webpack_require__(317); // EXTERNAL MODULE: ./node_modules/react-spring/web.cjs.js -var web_cjs = __webpack_require__(115); +var web_cjs = __webpack_require__(116); // EXTERNAL MODULE: external {"this":["wp","dom"]} var external_this_wp_dom_ = __webpack_require__(29); @@ -19053,16 +19067,16 @@ function BlockNavigationLeaf(_ref) { } // EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/chevron-right.js -var chevron_right = __webpack_require__(214); +var chevron_right = __webpack_require__(213); // EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/chevron-left.js -var chevron_left = __webpack_require__(215); +var chevron_left = __webpack_require__(214); // EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/chevron-up.js -var chevron_up = __webpack_require__(314); +var chevron_up = __webpack_require__(315); // EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/chevron-down.js -var chevron_down = __webpack_require__(315); +var chevron_down = __webpack_require__(316); // CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-mover/mover-description.js /** @@ -20144,7 +20158,7 @@ function useMultiSelection(ref) { } // EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/plus.js -var plus = __webpack_require__(209); +var plus = __webpack_require__(208); // CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/inserter/tips.js @@ -20183,7 +20197,7 @@ var close_small = __webpack_require__(159); var build_module_icon = __webpack_require__(141); // EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/search.js -var search = __webpack_require__(306); +var search = __webpack_require__(307); // CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/inserter/search-form.js @@ -27034,10 +27048,10 @@ function InserterPreviewPanel(_ref) { var CompositeState_3a25dcee = __webpack_require__(52); // EXTERNAL MODULE: ./node_modules/reakit/es/Composite/Composite.js -var Composite = __webpack_require__(122); +var Composite = __webpack_require__(123); // EXTERNAL MODULE: ./node_modules/reakit/es/Composite/CompositeItem.js -var CompositeItem = __webpack_require__(123); +var CompositeItem = __webpack_require__(124); // CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/inserter-list-item/index.js @@ -27805,7 +27819,7 @@ function BlockPatternsTabs(_ref4) { /* harmony default export */ var block_patterns_tab = (BlockPatternsTabs); // EXTERNAL MODULE: external {"this":["wp","url"]} -var external_this_wp_url_ = __webpack_require__(31); +var external_this_wp_url_ = __webpack_require__(30); // CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/inserter/reusable-blocks-tab.js @@ -34316,7 +34330,7 @@ function BlockNavigationDropdown(_ref2, ref) { /* harmony default export */ var dropdown = (Object(external_this_wp_element_["forwardRef"])(BlockNavigationDropdown)); // EXTERNAL MODULE: external {"this":["wp","shortcode"]} -var external_this_wp_shortcode_ = __webpack_require__(130); +var external_this_wp_shortcode_ = __webpack_require__(131); // CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/rich-text/remove-browser-shortcuts.js @@ -34574,6 +34588,7 @@ function RichTextWrapper(_ref2, forwardedRef) { onSplitMiddle = _ref2.__unstableOnSplitMiddle, identifier = _ref2.identifier, preserveWhiteSpace = _ref2.preserveWhiteSpace, + pastePlainText = _ref2.__unstablePastePlainText, __unstableEmbedURLOnPaste = _ref2.__unstableEmbedURLOnPaste, disableFormats = _ref2.__unstableDisableFormats, disableLineBreaks = _ref2.disableLineBreaks, @@ -34596,7 +34611,7 @@ function RichTextWrapper(_ref2, forwardedRef) { maxWidth = _ref2.maxWidth, onBlur = _ref2.onBlur, setRef = _ref2.setRef, - props = Object(objectWithoutProperties["a" /* default */])(_ref2, ["children", "tagName", "value", "onChange", "isSelected", "multiline", "inlineToolbar", "wrapperClassName", "autocompleters", "onReplace", "placeholder", "keepPlaceholderOnFocus", "allowedFormats", "formattingControls", "withoutInteractiveFormatting", "onRemove", "onMerge", "onSplit", "__unstableOnSplitAtEnd", "__unstableOnSplitMiddle", "identifier", "preserveWhiteSpace", "__unstableEmbedURLOnPaste", "__unstableDisableFormats", "disableLineBreaks", "unstableOnFocus", "__unstableAllowPrefixTransformations", "__unstableMultilineRootTag", "__unstableMobileNoFocusOnMount", "deleteEnter", "placeholderTextColor", "textAlign", "selectionColor", "tagsToEliminate", "rootTagsToEliminate", "disableEditingMenu", "fontSize", "fontFamily", "fontWeight", "fontStyle", "minWidth", "maxWidth", "onBlur", "setRef"]); + props = Object(objectWithoutProperties["a" /* default */])(_ref2, ["children", "tagName", "value", "onChange", "isSelected", "multiline", "inlineToolbar", "wrapperClassName", "autocompleters", "onReplace", "placeholder", "keepPlaceholderOnFocus", "allowedFormats", "formattingControls", "withoutInteractiveFormatting", "onRemove", "onMerge", "onSplit", "__unstableOnSplitAtEnd", "__unstableOnSplitMiddle", "identifier", "preserveWhiteSpace", "__unstablePastePlainText", "__unstableEmbedURLOnPaste", "__unstableDisableFormats", "disableLineBreaks", "unstableOnFocus", "__unstableAllowPrefixTransformations", "__unstableMultilineRootTag", "__unstableMobileNoFocusOnMount", "deleteEnter", "placeholderTextColor", "textAlign", "selectionColor", "tagsToEliminate", "rootTagsToEliminate", "disableEditingMenu", "fontSize", "fontFamily", "fontWeight", "fontStyle", "minWidth", "maxWidth", "onBlur", "setRef"]); var instanceId = Object(external_this_wp_compose_["useInstanceId"])(RichTextWrapper); identifier = identifier || instanceId; @@ -34839,8 +34854,15 @@ function RichTextWrapper(_ref2, forwardedRef) { files = _ref6.files, activeFormats = _ref6.activeFormats; - // Only process file if no HTML is present. + if (pastePlainText) { + onChange(Object(external_this_wp_richText_["insert"])(value, Object(external_this_wp_richText_["create"])({ + text: plainText + }))); + return; + } // Only process file if no HTML is present. // Note: a pasted file may have the URL as plain text. + + if (files && files.length && !html) { var _content = Object(external_this_wp_blocks_["pasteHandler"])({ HTML: filePasteHandler(files), @@ -34910,7 +34932,7 @@ function RichTextWrapper(_ref2, forwardedRef) { splitValue(value, content); } } - }, [tagName, onReplace, onSplit, splitValue, __unstableEmbedURLOnPaste, multiline, preserveWhiteSpace]); + }, [tagName, onReplace, onSplit, splitValue, __unstableEmbedURLOnPaste, multiline, preserveWhiteSpace, pastePlainText]); var inputRule = Object(external_this_wp_element_["useCallback"])(function (value, valueToFormat) { if (!onReplace) { return; @@ -35126,7 +35148,7 @@ function BlockNavigationEditor(_ref) { } // EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/layout.js -var layout = __webpack_require__(318); +var layout = __webpack_require__(319); // CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-variation-picker/index.js @@ -35983,7 +36005,7 @@ ForwardedInnerBlocks.Content = Object(external_this_wp_blocks_["withBlockContent /* harmony default export */ var inner_blocks = (ForwardedInnerBlocks); // EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/keyboard-return.js -var keyboard_return = __webpack_require__(216); +var keyboard_return = __webpack_require__(215); // CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/link-control/settings-drawer.js @@ -36044,7 +36066,7 @@ var settings_drawer_LinkControlSettingsDrawer = function LinkControlSettingsDraw /* harmony default export */ var settings_drawer = (settings_drawer_LinkControlSettingsDrawer); // EXTERNAL MODULE: ./node_modules/dom-scroll-into-view/lib/index.js -var dom_scroll_into_view_lib = __webpack_require__(127); +var dom_scroll_into_view_lib = __webpack_require__(128); var dom_scroll_into_view_lib_default = /*#__PURE__*/__webpack_require__.n(dom_scroll_into_view_lib); // CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/url-input/index.js @@ -37582,10 +37604,10 @@ LinkControl.ViewerFill = ViewerFill; /* harmony default export */ var link_control = (LinkControl); // EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/media.js -var library_media = __webpack_require__(319); +var library_media = __webpack_require__(320); // EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/upload.js -var upload = __webpack_require__(217); +var upload = __webpack_require__(216); // CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/media-upload/index.js /** @@ -38793,7 +38815,7 @@ function ToolSelector(props, ref) { /* harmony default export */ var tool_selector = (Object(external_this_wp_element_["forwardRef"])(ToolSelector)); // EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/link.js -var library_link = __webpack_require__(186); +var library_link = __webpack_require__(187); // CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/arrow-left.js @@ -39545,7 +39567,7 @@ var skip_to_selected_block_SkipToSelectedBlock = function SkipToSelectedBlock(_r })(skip_to_selected_block_SkipToSelectedBlock)); // EXTERNAL MODULE: external {"this":["wp","wordcount"]} -var external_this_wp_wordcount_ = __webpack_require__(128); +var external_this_wp_wordcount_ = __webpack_require__(129); // CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/multi-selection-inspector/index.js @@ -40502,7 +40524,7 @@ function addParent(obj, parent) { /* eslint-enable @wordpress/no-unused-vars-before-return */ // EXTERNAL MODULE: ./node_modules/inherits/inherits_browser.js -var inherits_browser = __webpack_require__(171); +var inherits_browser = __webpack_require__(172); var inherits_browser_default = /*#__PURE__*/__webpack_require__.n(inherits_browser); // CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/utils/transform-styles/ast/stringify/compiler.js diff --git a/wp-includes/js/dist/block-editor.min.js b/wp-includes/js/dist/block-editor.min.js index 7c42f578d4..3ac408323a 100644 --- a/wp-includes/js/dist/block-editor.min.js +++ b/wp-includes/js/dist/block-editor.min.js @@ -1,12 +1,12 @@ /*! This file is auto-generated */ -this.wp=this.wp||{},this.wp.blockEditor=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=455)}([function(e,t){!function(){e.exports=this.wp.element}()},function(e,t){!function(){e.exports=this.wp.i18n}()},function(e,t){!function(){e.exports=this.lodash}()},function(e,t){!function(){e.exports=this.wp.components}()},function(e,t){!function(){e.exports=this.wp.data}()},function(e,t,n){"use strict";function r(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,"a",(function(){return r}))},,function(e,t){!function(){e.exports=this.wp.primitives}()},function(e,t,n){"use strict";function r(){return(r=Object.assign||function(e){for(var t=1;t=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(c[n]=e[n])}return c}},function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t=0||(o[n]=e[n]);return o}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(n=e[Symbol.iterator]()).next.bind(n)}n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return c})),n.d(t,"c",(function(){return l}))},function(e,t,n){"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(27);var o=n(37),c=n(30);function i(e){return function(e){if(Array.isArray(e))return Object(r.a)(e)}(e)||Object(o.a)(e)||Object(c.a)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},function(e,t){!function(){e.exports=this.wp.keycodes}()},function(e,t,n){"use strict";function r(e){return(r=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n.d(t,"a",(function(){return r}))},function(e,t){!function(){e.exports=this.regeneratorRuntime}()},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function r(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||(o[n]=e[n]);return o}n.d(t,"a",(function(){return r}))},,function(e,t,n){"use strict";function r(e,t,n,r,o,c,i){try{var a=e[c](i),l=a.value}catch(e){return void n(e)}a.done?t(l):Promise.resolve(l).then(r,o)}function o(e){return function(){var t=this,n=arguments;return new Promise((function(o,c){var i=e.apply(t,n);function a(e){r(i,o,c,a,l,"next",e)}function l(e){r(i,o,c,a,l,"throw",e)}a(void 0)}))}}n.d(t,"a",(function(){return o}))},function(e,t){!function(){e.exports=this.wp.a11y}()},,function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(13),o=n(59);function c(e){var t=Object(r.useRef)(e);return Object(o.a)((function(){t.current=e})),t}},function(e,t,n){"use strict";function r(e){return e?e.ownerDocument||e:window.document}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var r=n(13),o=n(76);function c(e,t){Object(r.useDebugValue)(e);var n=Object(r.useContext)(o.a);return null!=n[e]?n[e]:t}var i=n(55);var a=n(56);function l(e){var t,n,o,l=(o=e.compose,Array.isArray(o)?o:void 0!==o?[o]:[]),s=function(t,n){if(e.useOptions&&(t=e.useOptions(t,n)),e.name&&(t=function(e,t,n){void 0===t&&(t={}),void 0===n&&(n={});var o="use"+e+"Options";Object(r.useDebugValue)(o);var a=c(o);return a?Object(i.a)(Object(i.a)({},t),a(t,n)):t}(e.name,t,n)),e.compose)for(var o,a=Object(i.c)(l);!(o=a()).done;){t=o.value.__useOptions(t,n)}return t},u=function(t,n,o){if(void 0===t&&(t={}),void 0===n&&(n={}),void 0===o&&(o=!1),o||(t=s(t,n)),e.useProps&&(n=e.useProps(t,n)),e.name&&(n=function(e,t,n){void 0===t&&(t={}),void 0===n&&(n={});var o="use"+e+"Props";Object(r.useDebugValue)(o);var i=c(o);return i?i(t,n):n}(e.name,t,n)),e.compose)if(e.useComposeOptions&&(t=e.useComposeOptions(t,n)),e.useComposeProps)n=e.useComposeProps(t,n);else for(var a,u=Object(i.c)(l);!(a=u()).done;){n=(0,a.value)(t,n,!0)}var d={},b=n||{};for(var f in b)void 0!==b[f]&&(d[f]=b[f]);return d};u.__useOptions=s;var d=l.reduce((function(e,t){return e.push.apply(e,t.__keys||[]),e}),[]);return u.__keys=[].concat(d,(null===(t=e.useState)||void 0===t?void 0:t.__keys)||[],e.keys||[]),u.unstable_propsAreEqual=e.propsAreEqual||(null===(n=l[0])||void 0===n?void 0:n.unstable_propsAreEqual)||a.a,u}},function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var r=n(13),o=n(55),c=n(79);function i(e,t){for(var n={},r={},o=0,c=Object.keys(e);o=0?n[i]=e[i]:r[i]=e[i]}return[n,r]}var a=n(56);function l(e){var t,n=e.as,l=e.useHook,s=e.memo,u=e.propsAreEqual,d=void 0===u?null==l?void 0:l.unstable_propsAreEqual:u,b=e.keys,f=void 0===b?(null==l?void 0:l.__keys)||[]:b,p=e.useCreateElement,m=void 0===p?c.a:p,v=function(e,t){var r=e.as,c=void 0===r?n:r,a=Object(o.b)(e,["as"]);if(l){var s,u=i(a,f),d=u[0],b=u[1],p=l(d,Object(o.a)({ref:t},b)),v=p.wrapElement,O=Object(o.b)(p,["wrapElement"]),g=(null===(s=c.render)||void 0===s?void 0:s.__keys)||c.__keys,h=g&&i(a,g)[0],j=h?Object(o.a)(Object(o.a)({},O),h):O,k=m(c,j);return v?v(k):k}return m(c,Object(o.a)({ref:t},a))};return t=v,v=Object(r.forwardRef)(t),s&&(v=function(e,t){return Object(r.memo)(e,t)}(v,d)),v.__keys=f,v.unstable_propsAreEqual=d||a.a,v}},function(e,t,n){"use strict";n.d(t,"a",(function(){return b})),n.d(t,"b",(function(){return O})),n.d(t,"c",(function(){return p})),n.d(t,"d",(function(){return f})),n.d(t,"e",(function(){return h})),n.d(t,"f",(function(){return s})),n.d(t,"g",(function(){return w}));var r=n(15),o=n(13),c=n(59),i=n(62),a=n(61),l=n(65);function s(e){return e.slice().reverse()}function u(e,t){return Boolean(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_PRECEDING)}function d(e,t){return e.findIndex((function(e){return!(!e.ref.current||!t.ref.current)&&u(t.ref.current,e.ref.current)}))}function b(e,t){return t?e.find((function(e){return!e.disabled&&e.id!==t})):e.find((function(e){return!e.disabled}))}function f(e,t){if(t)return null==e?void 0:e.find((function(e){return e.id===t&&!e.disabled}))}function p(e){for(var t,n=[[]],o=function(){var e=t.value,r=n.find((function(t){return!t[0]||t[0].groupId===e.groupId}));r?r.push(e):n.push([e])},c=Object(r.c)(e);!(t=c()).done;)o();return n}function m(e){for(var t,n=0,o=Object(r.c)(e);!(t=o()).done;){var c=t.value.length;c>n&&(n=c)}return n}function v(e){for(var t=p(e),n=m(t),o=[],c=0;c=0||(o[n]=e[n]);return o}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(n=e[Symbol.iterator]()).next.bind(n)}n.d(t,"a",(function(){return c})),n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return l}))},function(e,t,n){"use strict";function r(e,t){if(e===t)return!0;if(!e)return!1;if(!t)return!1;if("object"!=typeof e)return!1;if("object"!=typeof t)return!1;var n=Object.keys(e),r=Object.keys(t),o=n.length;if(r.length!==o)return!1;for(var c=0,i=n;c1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}if(e=N(e,360),t=N(t,100),n=N(n,100),0===t)r=o=c=n;else{var a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;r=i(l,a,e+1/3),o=i(l,a,e),c=i(l,a,e-1/3)}return{r:255*r,g:255*o,b:255*c}}(e.h,r,l),d=!0,b="hsl"),e.hasOwnProperty("a")&&(n=e.a));var f,p,m;return n=T(n),{ok:d,format:e.format||b,r:s(255,u(t.r,0)),g:s(255,u(t.g,0)),b:s(255,u(t.b,0)),a:n}}(e);this._originalInput=e,this._r=n.r,this._g=n.g,this._b=n.b,this._a=n.a,this._roundA=l(100*this._a)/100,this._format=t.format||n.format,this._gradientType=t.gradientType,this._r<1&&(this._r=l(this._r)),this._g<1&&(this._g=l(this._g)),this._b<1&&(this._b=l(this._b)),this._ok=n.ok,this._tc_id=a++}function f(e,t,n){e=N(e,255),t=N(t,255),n=N(n,255);var r,o,c=u(e,t,n),i=s(e,t,n),a=(c+i)/2;if(c==i)r=o=0;else{var l=c-i;switch(o=a>.5?l/(2-c-i):l/(c+i),c){case e:r=(t-n)/l+(t>1)+720)%360;--t;)r.h=(r.h+o)%360,c.push(b(r));return c}function B(e,t){t=t||6;for(var n=b(e).toHsv(),r=n.h,o=n.s,c=n.v,i=[],a=1/t;t--;)i.push(b({h:r,s:o,v:c})),c=(c+a)%1;return i}b.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},getLuminance:function(){var e,t,n,r=this.toRgb();return e=r.r/255,t=r.g/255,n=r.b/255,.2126*(e<=.03928?e/12.92:o.pow((e+.055)/1.055,2.4))+.7152*(t<=.03928?t/12.92:o.pow((t+.055)/1.055,2.4))+.0722*(n<=.03928?n/12.92:o.pow((n+.055)/1.055,2.4))},setAlpha:function(e){return this._a=T(e),this._roundA=l(100*this._a)/100,this},toHsv:function(){var e=p(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=p(this._r,this._g,this._b),t=l(360*e.h),n=l(100*e.s),r=l(100*e.v);return 1==this._a?"hsv("+t+", "+n+"%, "+r+"%)":"hsva("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHsl:function(){var e=f(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=f(this._r,this._g,this._b),t=l(360*e.h),n=l(100*e.s),r=l(100*e.l);return 1==this._a?"hsl("+t+", "+n+"%, "+r+"%)":"hsla("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHex:function(e){return m(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return function(e,t,n,r,o){var c=[A(l(e).toString(16)),A(l(t).toString(16)),A(l(n).toString(16)),A(L(r))];if(o&&c[0].charAt(0)==c[0].charAt(1)&&c[1].charAt(0)==c[1].charAt(1)&&c[2].charAt(0)==c[2].charAt(1)&&c[3].charAt(0)==c[3].charAt(1))return c[0].charAt(0)+c[1].charAt(0)+c[2].charAt(0)+c[3].charAt(0);return c.join("")}(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:l(this._r),g:l(this._g),b:l(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+l(this._r)+", "+l(this._g)+", "+l(this._b)+")":"rgba("+l(this._r)+", "+l(this._g)+", "+l(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:l(100*N(this._r,255))+"%",g:l(100*N(this._g,255))+"%",b:l(100*N(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+l(100*N(this._r,255))+"%, "+l(100*N(this._g,255))+"%, "+l(100*N(this._b,255))+"%)":"rgba("+l(100*N(this._r,255))+"%, "+l(100*N(this._g,255))+"%, "+l(100*N(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(P[m(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var t="#"+v(this._r,this._g,this._b,this._a),n=t,r=this._gradientType?"GradientType = 1, ":"";if(e){var o=b(e);n="#"+v(o._r,o._g,o._b,o._a)}return"progid:DXImageTransform.Microsoft.gradient("+r+"startColorstr="+t+",endColorstr="+n+")"},toString:function(e){var t=!!e;e=e||this._format;var n=!1,r=this._a<1&&this._a>=0;return t||!r||"hex"!==e&&"hex6"!==e&&"hex3"!==e&&"hex4"!==e&&"hex8"!==e&&"name"!==e?("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),n||this.toHexString()):"name"===e&&0===this._a?this.toName():this.toRgbString()},clone:function(){return b(this.toString())},_applyModification:function(e,t){var n=e.apply(null,[this].concat([].slice.call(t)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(j,arguments)},brighten:function(){return this._applyModification(k,arguments)},darken:function(){return this._applyModification(y,arguments)},desaturate:function(){return this._applyModification(O,arguments)},saturate:function(){return this._applyModification(g,arguments)},greyscale:function(){return this._applyModification(h,arguments)},spin:function(){return this._applyModification(_,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(I,arguments)},complement:function(){return this._applyCombination(E,arguments)},monochromatic:function(){return this._applyCombination(B,arguments)},splitcomplement:function(){return this._applyCombination(w,arguments)},triad:function(){return this._applyCombination(C,arguments)},tetrad:function(){return this._applyCombination(S,arguments)}},b.fromRatio=function(e,t){if("object"==typeof e){var n={};for(var r in e)e.hasOwnProperty(r)&&(n[r]="a"===r?e[r]:M(e[r]));e=n}return b(e,t)},b.equals=function(e,t){return!(!e||!t)&&b(e).toRgbString()==b(t).toRgbString()},b.random=function(){return b.fromRatio({r:d(),g:d(),b:d()})},b.mix=function(e,t,n){n=0===n?0:n||50;var r=b(e).toRgb(),o=b(t).toRgb(),c=n/100;return b({r:(o.r-r.r)*c+r.r,g:(o.g-r.g)*c+r.g,b:(o.b-r.b)*c+r.b,a:(o.a-r.a)*c+r.a})},b.readability=function(e,t){var n=b(e),r=b(t);return(o.max(n.getLuminance(),r.getLuminance())+.05)/(o.min(n.getLuminance(),r.getLuminance())+.05)},b.isReadable=function(e,t,n){var r,o,c=b.readability(e,t);switch(o=!1,(r=function(e){var t,n;t=((e=e||{level:"AA",size:"small"}).level||"AA").toUpperCase(),n=(e.size||"small").toLowerCase(),"AA"!==t&&"AAA"!==t&&(t="AA");"small"!==n&&"large"!==n&&(n="small");return{level:t,size:n}}(n)).level+r.size){case"AAsmall":case"AAAlarge":o=c>=4.5;break;case"AAlarge":o=c>=3;break;case"AAAsmall":o=c>=7}return o},b.mostReadable=function(e,t,n){var r,o,c,i,a=null,l=0;o=(n=n||{}).includeFallbackColors,c=n.level,i=n.size;for(var s=0;sl&&(l=r,a=b(t[s]));return b.isReadable(e,a,{level:c,size:i})||!o?a:(n.includeFallbackColors=!1,b.mostReadable(e,["#fff","#000"],n))};var x=b.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},P=b.hexNames=function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}(x);function T(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function N(e,t){(function(e){return"string"==typeof e&&-1!=e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var n=function(e){return"string"==typeof e&&-1!=e.indexOf("%")}(e);return e=s(t,u(0,parseFloat(e))),n&&(e=parseInt(e*t,10)/100),o.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function D(e){return s(1,u(0,e))}function R(e){return parseInt(e,16)}function A(e){return 1==e.length?"0"+e:""+e}function M(e){return e<=1&&(e=100*e+"%"),e}function L(e){return o.round(255*parseFloat(e)).toString(16)}function F(e){return R(e)/255}var V,H,z,U=(H="[\\s|\\(]+("+(V="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+V+")[,|\\s]+("+V+")\\s*\\)?",z="[\\s|\\(]+("+V+")[,|\\s]+("+V+")[,|\\s]+("+V+")[,|\\s]+("+V+")\\s*\\)?",{CSS_UNIT:new RegExp(V),rgb:new RegExp("rgb"+H),rgba:new RegExp("rgba"+z),hsl:new RegExp("hsl"+H),hsla:new RegExp("hsla"+z),hsv:new RegExp("hsv"+H),hsva:new RegExp("hsva"+z),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function G(e){return!!U.CSS_UNIT.exec(e)}e.exports?e.exports=b:void 0===(r=function(){return b}.call(t,n,t,e))||(e.exports=r)}(Math)},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(15),o=n(51),c=n(50),i=n(56),a=Object(c.a)({name:"Box",keys:["unstable_system"],propsAreEqual:function(e,t){var n=e.unstable_system,o=Object(r.a)(e,["unstable_system"]),c=t.unstable_system,a=Object(r.a)(t,["unstable_system"]);return!(n!==c&&!Object(i.a)(n,c))&&Object(i.a)(o,a)}});Object(o.a)({as:"div",useHook:a})},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(13);var o=Object(r.createContext)((function(e){return void 0===e&&(e="id"),(e?e+"-":"")+Math.random().toString(32).substr(2,6)}))},function(e,t){!function(){e.exports=this.wp.htmlEntities}()},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(57);function o(e){var t=Object(r.a)(e);if(!t)return!1;if(e.contains(t))return!0;var n=t.getAttribute("aria-activedescendant");return!!n&&(n===e.id||!!e.querySelector("#"+n))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=["button","color","file","image","reset","submit"];function o(e){if("BUTTON"===e.tagName)return!0;if("INPUT"===e.tagName){var t=e;return-1!==r.indexOf(t.type)}return!1}},function(e,t,n){"use strict";function r(e,t){return"matches"in e?e.matches(t):"msMatchesSelector"in e?e.msMatchesSelector(t):e.webkitMatchesSelector(t)}function o(e,t){if("closest"in e)return e.closest(t);do{if(r(e,t))return e;e=e.parentElement||e.parentNode}while(null!==e&&1===e.nodeType);return null}n.d(t,"a",(function(){return u})),n.d(t,"b",(function(){return l}));var c=n(57),i="input:not([type='hidden']):not([disabled]), select:not([disabled]), textarea:not([disabled]), a[href], button:not([disabled]), [tabindex], iframe, object, embed, area[href], audio[controls], video[controls], [contenteditable]:not([contenteditable='false'])";function a(e){return r(e,i)&&function(e){return e.offsetWidth>0||e.offsetHeight>0||e.getClientRects().length>0}(e)}function l(e){for(;e&&!a(e);)e=o(e,i);return e}function s(e){return Object(c.a)(e)===e}function u(e,t){var n=void 0===t?{}:t,r=n.isActive,o=void 0===r?s:r,c=n.preventScroll;return o(e)?-1:(e.focus({preventScroll:c}),o(e)?-1:requestAnimationFrame((function(){e.focus({preventScroll:c})})))}},function(e,t,n){"use strict";function r(e){return t=e.currentTarget,n=e.target,!(t===n||t.contains(n));var t,n}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return h}));var r=n(15),o=n(51),c=n(50),i=n(67),a=n(13),l=n(63),s=n(71),u=(n(81),n(48)),d=n(59),b=n(70),f=n(73),p=n(57),m=n(72);function v(e){return"undefined"!=typeof window&&-1!==window.navigator.userAgent.indexOf(e)}var O=v("Mac")&&!v("Chrome")&&(v("Safari")||v("Firefox"));function g(e){Object(b.a)(e)||e.focus()}var h=Object(c.a)({name:"Tabbable",compose:i.a,keys:["disabled","focusable"],useOptions:function(e,t){var n=t.disabled;return Object(r.b)({disabled:n},e)},useProps:function(e,t){var n=t.ref,o=t.tabIndex,c=t.onClick,i=t.onMouseDown,b=t.style,v=Object(r.a)(t,["ref","tabIndex","onClick","onMouseDown","style"]),h=Object(a.useRef)(null),j=Object(u.a)(c),k=Object(u.a)(i),y=e.disabled&&!e.focusable,_=Object(a.useState)(!0),E=_[0],C=_[1],S=E?o:o||0,w=e.disabled?Object(r.b)({pointerEvents:"none"},b):b,I=function(){if(O){var e=Object(a.useState)(null),t=e[0],n=e[1];return Object(a.useEffect)((function(){t&&(g(t),n(null))}),[t]),Object(a.useCallback)((function(e){var t=e.currentTarget;if(!Object(f.a)(e)&&Object(s.a)(t)){var r=Object(p.a)(t);if(r){var o="BODY"===r.tagName,c=Object(m.b)(t.parentElement);if(r===c||o&&!c)n(t);else if(c){c.addEventListener("focusin",(function(){return n(t)}),{once:!0})}else{r.addEventListener("blur",(function(){return g(t)}),{once:!0})}}}}),[])}}();Object(d.a)((function(){var e,t=h.current;t&&("BUTTON"!==(e=t).tagName&&"INPUT"!==e.tagName&&"SELECT"!==e.tagName&&"TEXTAREA"!==e.tagName&&"A"!==e.tagName&&"AUDIO"!==e.tagName&&"VIDEO"!==e.tagName&&C(!1))}),[]);var B=Object(a.useCallback)((function(t){var n;if(e.disabled)return t.stopPropagation(),void t.preventDefault();null===(n=j.current)||void 0===n||n.call(j,t)}),[e.disabled]),x=Object(a.useCallback)((function(t){var n;if(e.disabled)return t.stopPropagation(),void t.preventDefault();null===(n=k.current)||void 0===n||n.call(k,t),t.defaultPrevented||null==I||I(t)}),[e.disabled,I]);return Object(r.b)({ref:Object(l.a)(h,n),style:w,tabIndex:y?void 0:S,disabled:!(!y||!E)||void 0,"aria-disabled":!!e.disabled||void 0,onClick:B,onMouseDown:x},v)}});Object(o.a)({as:"div",useHook:h})},,function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(13),o=Object(r.createContext)({})},,,function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(13),o=n(76),c=n(55);var i=function(e,t,n){void 0===n&&(n=t.children);var i=Object(r.useContext)(o.a);if(i.useCreateElement)return i.useCreateElement(e,t,n);if("string"==typeof e&&function(e){return"function"==typeof e}(n)){t.children;return n(Object(c.b)(t,["children"]))}return Object(r.createElement)(e,t,n)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return a}));var r=n(2),o=n(0),c=Object(o.createContext)({name:"",isSelected:!1,focusedElement:null,setFocusedElement:r.noop,clientId:null}),i=c.Provider;function a(){return Object(o.useContext)(c)}},function(e,t,n){"use strict";n(108),n(13)},function(e,t,n){"use strict";function r(e){var t=void 0===e?{}:e,n=t.keyMap,r=t.onKey,o=t.stopPropagation,c=t.onKeyDown,i=t.shouldKeyDown,a=void 0===i?function(){return!0}:i,l=t.preventDefault,s=void 0===l||l;return function(e){if(n){var t,i="function"==typeof n?n(e):n,l="function"==typeof s?s(e):s,u="function"==typeof o?o(e):o;if(e.key in i){var d=i[e.key];if("function"==typeof d&&a(e))return l&&e.preventDefault(),u&&e.stopPropagation(),r&&r(e),void d(e)}if(c&&"current"in c)null===(t=c.current)||void 0===t||t.call(c,e);else null==c||c(e)}}}n.d(t,"a",(function(){return r}))},,,,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var r=n(15),o=n(51),c=n(50),i=n(13),a=n(71),l=(n(81),n(48)),s=n(54),u=n(74);var d=Object(c.a)({name:"Clickable",compose:u.a,keys:["unstable_clickOnEnter","unstable_clickOnSpace"],useOptions:function(e){var t=e.unstable_clickOnEnter,n=void 0===t||t,o=e.unstable_clickOnSpace,c=void 0===o||o,i=Object(r.a)(e,["unstable_clickOnEnter","unstable_clickOnSpace"]);return Object(r.b)({unstable_clickOnEnter:n,unstable_clickOnSpace:c},i)},useProps:function(e,t){var n=t.onKeyDown,o=t.onKeyUp,c=Object(r.a)(t,["onKeyDown","onKeyUp"]),u=Object(i.useState)(!1),d=u[0],b=u[1],f=Object(l.a)(n),p=Object(l.a)(o),m=Object(i.useCallback)((function(t){var n;if(null===(n=f.current)||void 0===n||n.call(f,t),!t.defaultPrevented&&!e.disabled&&!t.metaKey&&Object(s.a)(t)){var r=e.unstable_clickOnEnter&&"Enter"===t.key,o=e.unstable_clickOnSpace&&" "===t.key;if(r||o){if(function(e){var t=e.currentTarget;return!!e.isTrusted&&(Object(a.a)(t)||"INPUT"===t.tagName||"TEXTAREA"===t.tagName||"A"===t.tagName||"SELECT"===t.tagName)}(t))return;t.preventDefault(),r?t.currentTarget.click():o&&b(!0)}}}),[e.disabled,e.unstable_clickOnEnter,e.unstable_clickOnSpace]),v=Object(i.useCallback)((function(t){var n;if(null===(n=p.current)||void 0===n||n.call(p,t),!t.defaultPrevented&&!e.disabled&&!t.metaKey){var r=e.unstable_clickOnSpace&&" "===t.key;d&&r&&(b(!1),t.currentTarget.click())}}),[e.disabled,e.unstable_clickOnSpace,d]);return Object(r.b)({"data-active":d||void 0,onKeyDown:m,onKeyUp:v},c)}});Object(o.a)({as:"button",memo:!0,useHook:d})},,function(e,t){!function(){e.exports=this.wp.warning}()},,function(e,t){!function(){e.exports=this.wp.notices}()},,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n(15),o=n(51),c=n(50),i=n(13),a=n(68),l=n(65),s=Object(c.a)({useState:l.a,keys:["id"],useOptions:function(e,t){var n=Object(i.useContext)(a.a),o=Object(i.useState)((function(){return e.unstable_idCountRef?(e.unstable_idCountRef.current+=1,"-"+e.unstable_idCountRef.current):e.baseId?"-"+n(""):""}))[0],c=Object(i.useMemo)((function(){return e.baseId||n()}),[e.baseId,n]),l=t.id||e.id||""+c+o;return Object(r.b)(Object(r.b)({},e),{},{id:l})},useProps:function(e,t){return Object(r.b)({id:e.id},t)}});Object(o.a)({as:"div",useHook:s})},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(126);function o(e,t,n){return e.dispatchEvent(Object(r.a)(e,t,n))}},function(e,t,n){"use strict";function r(e){try{var t=e instanceof HTMLInputElement&&null!==e.selectionStart,n="TEXTAREA"===e.tagName,r="true"===e.contentEditable;return t||n||r||!1}catch(e){return!1}}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function r(e,t){e.value=t}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";t.__esModule=!0;var r=n(180);t.default=r.default},function(e,t){!function(){e.exports=this.wp.viewport}()},function(e,t){var n,r,o=e.exports={};function c(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function a(e){if(n===setTimeout)return setTimeout(e,0);if((n===c||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:c}catch(e){n=c}try{r="function"==typeof clearTimeout?clearTimeout:i}catch(e){r=i}}();var l,s=[],u=!1,d=-1;function b(){u&&l&&(u=!1,l.length?s=l.concat(s):d=-1,s.length&&f())}function f(){if(!u){var e=a(b);u=!0;for(var t=s.length;t;){for(l=s,s=[];++d1)for(var n=1;n1?t-1:0),r=1;r=n.length)break;c=n[o++]}else{if((o=n.next()).done)break;c=o.value}for(var i=c,a=!1,l=0;l=f.startTime+s.duration;else if(s.decay)v=p+h/(1-.998)*(1-Math.exp(-(1-.998)*(t-f.startTime))),(u=Math.abs(f.lastPosition-v)<.1)&&(m=v);else{d=void 0!==f.lastTime?f.lastTime:t,h=void 0!==f.lastVelocity?f.lastVelocity:s.initialVelocity,t>d+64&&(d=t);for(var j=Math.floor(t-d),k=0;km:v=e);++n);return n-1}(e,c);return function(e,t,n,r,o,c,i,a,l){var s=l?l(e):e;if(sn){if("identity"===a)return s;"clamp"===a&&(s=n)}if(r===o)return r;if(t===n)return e<=t?r:o;t===-1/0?s=-s:n===1/0?s-=t:s=(s-t)/(n-t);s=c(s),r===-1/0?s=-s:o===1/0?s+=r:s=s*(o-r)+r;return s}(e,c[t],c[t+1],o[t],o[t+1],l,i,a,r.map)}}var V=function(e){function t(n,r,o,c){var i;return(i=e.call(this)||this).calc=void 0,i.payload=n instanceof h&&!(n instanceof t)?n.getPayload():Array.isArray(n)?n:[n],i.calc=F(r,o,c),i}l(t,e);var n=t.prototype;return n.getValue=function(){return this.calc.apply(this,this.payload.map((function(e){return e.getValue()})))},n.updateConfig=function(e,t,n){this.calc=F(e,t,n)},n.interpolate=function(e,n,r){return new t(this,e,n,r)},t}(h);var H=function(e){function t(t){var n;return(n=e.call(this)||this).animatedStyles=new Set,n.value=void 0,n.startPosition=void 0,n.lastPosition=void 0,n.lastVelocity=void 0,n.startTime=void 0,n.lastTime=void 0,n.done=!1,n.setValue=function(e,t){void 0===t&&(t=!0),n.value=e,t&&n.flush()},n.value=t,n.startPosition=t,n.lastPosition=t,n}l(t,e);var n=t.prototype;return n.flush=function(){0===this.animatedStyles.size&&function e(t,n){"update"in t?n.add(t):t.getChildren().forEach((function(t){return e(t,n)}))}(this,this.animatedStyles),this.animatedStyles.forEach((function(e){return e.update()}))},n.clearStyles=function(){this.animatedStyles.clear()},n.getValue=function(){return this.value},n.interpolate=function(e,t,n){return new V(this,e,t,n)},t}(g),z=function(e){function t(t){var n;return(n=e.call(this)||this).payload=t.map((function(e){return new H(e)})),n}l(t,e);var n=t.prototype;return n.setValue=function(e,t){var n=this;void 0===t&&(t=!0),Array.isArray(e)?e.length===this.payload.length&&e.forEach((function(e,r){return n.payload[r].setValue(e,t)})):this.payload.forEach((function(n){return n.setValue(e,t)}))},n.getValue=function(){return this.payload.map((function(e){return e.getValue()}))},n.interpolate=function(e,t){return new V(this,e,t)},t}(h),U=0,G=function(){function e(){var e=this;this.id=void 0,this.idle=!0,this.hasChanged=!1,this.guid=0,this.local=0,this.props={},this.merged={},this.animations={},this.interpolations={},this.values={},this.configs=[],this.listeners=[],this.queue=[],this.localQueue=void 0,this.getValues=function(){return e.interpolations},this.id=U++}var t=e.prototype;return t.update=function(e){if(!e)return this;var t=m(e),n=t.delay,r=void 0===n?0:n,i=t.to,a=c(t,["delay","to"]);if(u.arr(i)||u.fun(i))this.queue.push(o({},a,{delay:r,to:i}));else if(i){var l={};Object.entries(i).forEach((function(e){var t,n=e[0],c=e[1],i=o({to:(t={},t[n]=c,t),delay:p(r,n)},a),s=l[i.delay]&&l[i.delay].to;l[i.delay]=o({},l[i.delay],i,{to:o({},s,i.to)})})),this.queue=Object.values(l)}return this.queue=this.queue.sort((function(e,t){return e.delay-t.delay})),this.diff(a),this},t.start=function(e){var t,n=this;if(this.queue.length){this.idle=!1,this.localQueue&&this.localQueue.forEach((function(e){var t=e.from,r=void 0===t?{}:t,c=e.to,i=void 0===c?{}:c;u.obj(r)&&(n.merged=o({},r,n.merged)),u.obj(i)&&(n.merged=o({},n.merged,i))}));var r=this.local=++this.guid,i=this.localQueue=this.queue;this.queue=[],i.forEach((function(t,o){var a=t.delay,l=c(t,["delay"]),s=function(t){o===i.length-1&&r===n.guid&&t&&(n.idle=!0,n.props.onRest&&n.props.onRest(n.merged)),e&&e()},d=u.arr(l.to)||u.fun(l.to);a?setTimeout((function(){r===n.guid&&(d?n.runAsync(l,s):n.diff(l).start(s))}),a):d?n.runAsync(l,s):n.diff(l).start(s)}))}else u.fun(e)&&this.listeners.push(e),this.props.onStart&&this.props.onStart(),t=this,M.has(t)||M.add(t),A||(A=!0,E(P||L));return this},t.stop=function(e){return this.listeners.forEach((function(t){return t(e)})),this.listeners=[],this},t.pause=function(e){var t;return this.stop(!0),e&&(t=this,M.has(t)&&M.delete(t)),this},t.runAsync=function(e,t){var n=this,r=(e.delay,c(e,["delay"])),i=this.local,a=Promise.resolve(void 0);if(u.arr(r.to))for(var l=function(e){var t=e,c=o({},r,m(r.to[t]));u.arr(c.config)&&(c.config=c.config[t]),a=a.then((function(){if(i===n.guid)return new Promise((function(e){return n.diff(c).start(e)}))}))},s=0;s=r.length)return"break";i=r[c++]}else{if((c=r.next()).done)return"break";i=c.value}var n=i.key,a=function(e){return e.key!==n};(u.und(t)||t===n)&&(e.current.instances.delete(n),e.current.transitions=e.current.transitions.filter(a),e.current.deleted=e.current.deleted.filter(a))},r=e.current.deleted,o=Array.isArray(r),c=0;for(r=o?r:r[Symbol.iterator]();;){var i;if("break"===n())break}e.current.forceUpdate()}var X=function(e){function t(t){var n;return void 0===t&&(t={}),n=e.call(this)||this,!t.transform||t.transform instanceof g||(t=v.transform(t)),n.payload=t,n}return l(t,e),t}(j),Q={transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199},Z="[-+]?\\d*\\.?\\d+";function J(){for(var e=arguments.length,t=new Array(e),n=0;n1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function se(e,t,n){var r=n<.5?n*(1+t):n+t-n*t,o=2*n-r,c=le(o,r,e+1/3),i=le(o,r,e),a=le(o,r,e-1/3);return Math.round(255*c)<<24|Math.round(255*i)<<16|Math.round(255*a)<<8}function ue(e){var t=parseInt(e,10);return t<0?0:t>255?255:t}function de(e){return(parseFloat(e)%360+360)%360/360}function be(e){var t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function fe(e){var t=parseFloat(e);return t<0?0:t>100?1:t/100}function pe(e){var t,n,r="number"==typeof(t=e)?t>>>0===t&&t>=0&&t<=4294967295?t:null:(n=ie.exec(t))?parseInt(n[1]+"ff",16)>>>0:Q.hasOwnProperty(t)?Q[t]:(n=ee.exec(t))?(ue(n[1])<<24|ue(n[2])<<16|ue(n[3])<<8|255)>>>0:(n=te.exec(t))?(ue(n[1])<<24|ue(n[2])<<16|ue(n[3])<<8|be(n[4]))>>>0:(n=oe.exec(t))?parseInt(n[1]+n[1]+n[2]+n[2]+n[3]+n[3]+"ff",16)>>>0:(n=ae.exec(t))?parseInt(n[1],16)>>>0:(n=ce.exec(t))?parseInt(n[1]+n[1]+n[2]+n[2]+n[3]+n[3]+n[4]+n[4],16)>>>0:(n=ne.exec(t))?(255|se(de(n[1]),fe(n[2]),fe(n[3])))>>>0:(n=re.exec(t))?(se(de(n[1]),fe(n[2]),fe(n[3]))|be(n[4]))>>>0:null;return null===r?e:"rgba("+((4278190080&(r=r||0))>>>24)+", "+((16711680&r)>>>16)+", "+((65280&r)>>>8)+", "+(255&r)/255+")"}var me=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,ve=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,Oe=new RegExp("("+Object.keys(Q).join("|")+")","g"),ge={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},he=["Webkit","Ms","Moz","O"];function je(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||ge.hasOwnProperty(e)&&ge[e]?(""+t).trim():t+"px"}ge=Object.keys(ge).reduce((function(e,t){return he.forEach((function(n){return e[function(e,t){return e+t.charAt(0).toUpperCase()+t.substring(1)}(n,t)]=e[t]})),e}),ge);var ke={};N((function(e){return new X(e)})),B("div"),S((function(e){var t=e.output.map((function(e){return e.replace(ve,pe)})).map((function(e){return e.replace(Oe,pe)})),n=t[0].match(me).map((function(){return[]}));t.forEach((function(e){e.match(me).forEach((function(e,t){return n[t].push(+e)}))}));var r=t[0].match(me).map((function(t,r){return F(o({},e,{output:n[r]}))}));return function(e){var n=0;return t[0].replace(me,(function(){return r[n++](e)})).replace(/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,(function(e,t,n,r,o){return"rgba("+Math.round(t)+", "+Math.round(n)+", "+Math.round(r)+", "+o+")"}))}})),y(Q),k((function(e,t){if(!e.nodeType||void 0===e.setAttribute)return!1;var n=t.style,r=t.children,o=t.scrollTop,i=t.scrollLeft,a=c(t,["style","children","scrollTop","scrollLeft"]),l="filter"===e.nodeName||e.parentNode&&"filter"===e.parentNode.nodeName;for(var s in void 0!==o&&(e.scrollTop=o),void 0!==i&&(e.scrollLeft=i),void 0!==r&&(e.textContent=r),n)if(n.hasOwnProperty(s)){var u=0===s.indexOf("--"),d=je(s,n[s],u);"float"===s&&(s="cssFloat"),u?e.style.setProperty(s,d):e.style[s]=d}for(var b in a){var f=l?b:ke[b]||(ke[b]=b.replace(/([A-Z])/g,(function(e){return"-"+e.toLowerCase()})));void 0!==e.getAttribute(f)&&e.setAttribute(f,a[b])}}),(function(e){return e}));var ye,_e,Ee=(ye=function(e){return i.forwardRef((function(t,n){var r=d(),l=i.useRef(!0),s=i.useRef(null),b=i.useRef(null),f=i.useCallback((function(e){var t=s.current;s.current=new R(e,(function(){var e=!1;b.current&&(e=v.fn(b.current,s.current.getAnimatedValue())),b.current&&!1!==e||r()})),t&&t.detach()}),[]);i.useEffect((function(){return function(){l.current=!1,s.current&&s.current.detach()}}),[]),i.useImperativeHandle(n,(function(){return T(b,l,r)})),f(t);var p,m=s.current.getValue(),O=(m.scrollTop,m.scrollLeft,c(m,["scrollTop","scrollLeft"])),g=(p=e,!u.fun(p)||p.prototype instanceof a.Component?function(e){return b.current=function(e,t){return t&&(u.fun(t)?t(e):u.obj(t)&&(t.current=e)),e}(e,n)}:void 0);return a.createElement(e,o({},O,{ref:g}))}))},void 0===(_e=!1)&&(_e=!0),function(e){return(u.arr(e)?e:Object.keys(e)).reduce((function(e,t){var n=_e?t[0].toLowerCase()+t.substring(1):t;return e[n]=ye(n),e}),ye)}),Ce=Ee(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]);t.apply=Ee,t.config={default:{tension:170,friction:26},gentle:{tension:120,friction:14},wobbly:{tension:180,friction:12},stiff:{tension:210,friction:20},slow:{tension:280,friction:60},molasses:{tension:280,friction:120}},t.update=L,t.animated=Ce,t.a=Ce,t.interpolate=function(e,t,n){return e&&new V(e,t,n)},t.Globals=D,t.useSpring=function(e){var t=u.fun(e),n=K(1,t?e:[e]),r=n[0],o=n[1],c=n[2];return t?[r[0],o,c]:r},t.useTrail=function(e,t){var n=i.useRef(!1),r=u.fun(t),c=p(t),a=i.useRef(),l=K(e,(function(e,t){return 0===e&&(a.current=[]),a.current.push(t),o({},c,{config:p(c.config,e),attach:e>0&&function(){return a.current[e-1]}})})),s=l[0],d=l[1],b=l[2],f=i.useMemo((function(){return function(e){return d((function(t,n){e.reverse;var r=e.reverse?t+1:t-1,i=a.current[r];return o({},e,{config:p(e.config||c.config,t),attach:i&&function(){return i}})}))}}),[e,c.reverse]);return i.useEffect((function(){n.current&&!r&&f(t)})),i.useEffect((function(){n.current=!0}),[]),r?[s,f,b]:s},t.useTransition=function(e,t,n){var r=o({items:e,keys:t||function(e){return e}},n),a=$(r),l=a.lazy,s=void 0!==l&&l,u=(a.unique,a.reset),b=void 0!==u&&u,f=(a.enter,a.leave,a.update,a.onDestroyed),m=(a.keys,a.items,a.onFrame),v=a.onRest,O=a.onStart,g=a.ref,h=c(a,["lazy","unique","reset","enter","leave","update","onDestroyed","keys","items","onFrame","onRest","onStart","ref"]),j=d(),k=i.useRef(!1),y=i.useRef({mounted:!1,first:!0,deleted:[],current:{},transitions:[],prevProps:{},paused:!!r.ref,instances:!k.current&&new Map,forceUpdate:j});return i.useImperativeHandle(r.ref,(function(){return{start:function(){return Promise.all(Array.from(y.current.instances).map((function(e){var t=e[1];return new Promise((function(e){return t.start(e)}))})))},stop:function(e){return Array.from(y.current.instances).forEach((function(t){return t[1].stop(e)}))},get controllers(){return Array.from(y.current.instances).map((function(e){return e[1]}))}}})),y.current=function(e,t){var n=e.first,r=e.prevProps,i=c(e,["first","prevProps"]),a=$(t),l=a.items,s=a.keys,u=a.initial,d=a.from,b=a.enter,f=a.leave,m=a.update,v=a.trail,O=void 0===v?0:v,g=a.unique,h=a.config,j=a.order,k=void 0===j?["enter","leave","update"]:j,y=$(r),_=y.keys,E=y.items,C=o({},i.current),S=[].concat(i.deleted),w=Object.keys(C),I=new Set(w),B=new Set(s),x=s.filter((function(e){return!I.has(e)})),P=i.transitions.filter((function(e){return!e.destroyed&&!B.has(e.originalKey)})).map((function(e){return e.originalKey})),T=s.filter((function(e){return I.has(e)})),N=-O;for(;k.length;){switch(k.shift()){case"enter":x.forEach((function(e,t){g&&S.find((function(t){return t.originalKey===e}))&&(S=S.filter((function(t){return t.originalKey!==e})));var r=s.indexOf(e),o=l[r],c=n&&void 0!==u?"initial":"enter";C[e]={slot:c,originalKey:e,key:g?String(e):W++,item:o,trail:N+=O,config:p(h,o,c),from:p(n&&void 0!==u?u||{}:d,o),to:p(b,o)}}));break;case"leave":P.forEach((function(e){var t=_.indexOf(e),n=E[t];S.unshift(o({},C[e],{slot:"leave",destroyed:!0,left:_[Math.max(0,t-1)],right:_[Math.min(_.length,t+1)],trail:N+=O,config:p(h,n,"leave"),to:p(f,n)})),delete C[e]}));break;case"update":T.forEach((function(e){var t=s.indexOf(e),n=l[t];C[e]=o({},C[e],{item:n,slot:"update",trail:N+=O,config:p(h,n,"update"),to:p(m,n)})}))}}var D=s.map((function(e){return C[e]}));return S.forEach((function(e){var t,n=e.left,r=(e.right,c(e,["left","right"]));-1!==(t=D.findIndex((function(e){return e.originalKey===n})))&&(t+=1),t=Math.max(0,t),D=[].concat(D.slice(0,t),[r],D.slice(t))})),o({},i,{changed:x.length||P.length||T.length,first:n&&0===x.length,transitions:D,current:C,deleted:S,prevProps:t})}(y.current,r),y.current.changed&&y.current.transitions.forEach((function(e){var t=e.slot,n=e.from,r=e.to,c=e.config,i=e.trail,a=e.key,l=e.item;y.current.instances.has(a)||y.current.instances.set(a,new G);var u=y.current.instances.get(a),d=o({},h,{to:r,from:n,config:c,ref:g,onRest:function(n){y.current.mounted&&(e.destroyed&&(g||s||Y(y,a),f&&f(l)),!Array.from(y.current.instances).some((function(e){return!e[1].idle}))&&(g||s)&&y.current.deleted.length>0&&Y(y),v&&v(l,t,n))},onStart:O&&function(){return O(l,t)},onFrame:m&&function(e){return m(l,t,e)},delay:i,reset:b&&"enter"===t});u.update(d),y.current.paused||u.start()})),i.useEffect((function(){return y.current.mounted=k.current=!0,function(){y.current.mounted=k.current=!1,Array.from(y.current.instances).map((function(e){return e[1].destroy()})),y.current.instances.clear()}}),[]),y.current.transitions.map((function(e){var t=e.item,n=e.slot,r=e.key;return{item:t,key:r,state:n,props:y.current.instances.get(r).getValues()}}))},t.useChain=function(e,t,n){void 0===n&&(n=1e3);var r=i.useRef();i.useEffect((function(){u.equ(e,r.current)?e.forEach((function(e){var t=e.current;return t&&t.start()})):t?e.forEach((function(e,r){var c=e.current;if(c){var i=c.controllers;if(i.length){var a=n*t[r];i.forEach((function(e){e.queue=e.queue.map((function(e){return o({},e,{delay:e.delay+a})})),e.start()}))}}})):e.reduce((function(e,t,n){var r=t.current;return e.then((function(){return r.start()}))}),Promise.resolve()),r.current=e}))},t.useSprings=K},,,,,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return E})),n.d(t,"b",(function(){return _}));var r=n(15),o=n(51),c=n(50),i=n(67),a=n(13),l=n(63),s=(n(81),n(48)),u=n(54),d=n(57),b=n(74),f=n(79),p=n(82),m=n(49),v=n(97),O=n(104),g=n(52),h="undefined"!=typeof window&&"msCrypto"in window;var j="undefined"!=typeof window&&"msCrypto"in window;function k(e,t,n){var r=Object(s.a)(n);return Object(a.useCallback)((function(n){var o;if(e&&function(e){return!!Object(u.a)(e)&&(!e.metaKey&&"Tab"!==e.key)}(n)){var c=null==t?void 0:t.ref.current;if(c&&(Object(O.a)(c,n.type,n),n.currentTarget.contains(c)))return n.stopPropagation(),void n.preventDefault()}null===(o=r.current)||void 0===o||o.call(r,n)}),[e,t])}function y(e,t){return null==e?void 0:e.some((function(e){return!!t&&e.ref.current===t}))}var _=Object(c.a)({name:"Composite",compose:[b.a],useState:g.g,useOptions:function(e){return Object(r.b)(Object(r.b)({},e),{},{currentId:Object(g.e)(e)})},useProps:function(e,t){var n=t.ref,o=t.onFocus,c=t.onBlur,i=t.onKeyDown,b=t.onKeyUp,f=Object(r.a)(t,["ref","onFocus","onBlur","onKeyDown","onKeyUp"]),O=Object(a.useRef)(null),_=Object(g.d)(e.items,e.currentId),E=Object(a.useRef)(void 0),C=Object(s.a)(o),S=Object(s.a)(c),w=j?function(e){var t=Object(a.useRef)(null);return Object(a.useEffect)((function(){var n=Object(m.a)(e.current),r=function(e){var n=e.target;t.current=n};return n.addEventListener("focus",r,!0),function(){n.removeEventListener("focus",r,!0)}}),[]),t}(O):void 0;Object(a.useEffect)((function(){var t=O.current;t&&e.unstable_moves&&!_&&t.focus()}),[e.unstable_moves,_]);var I=k(e.unstable_virtual,_,i),B=k(e.unstable_virtual,_,b),x=Object(a.useCallback)((function(t){var n;if(e.unstable_virtual){var r,o,c=(null==w?void 0:w.current)||t.relatedTarget,i=y(e.items,c);if(Object(u.a)(t)&&!i)return null===(r=C.current)||void 0===r||r.call(C,t),void(null==_||null===(o=_.ref.current)||void 0===o||o.focus());if(i)return void t.stopPropagation()}else if(Object(u.a)(t)){var a;null===(a=e.setCurrentId)||void 0===a||a.call(e,null)}null===(n=C.current)||void 0===n||n.call(C,t)}),[e.unstable_virtual,e.items,_,e.setCurrentId]),P=Object(a.useCallback)((function(t){var n;if(e.unstable_virtual){var r,o=y(e.items,t.target),c=function(e){return h?Object(d.a)(e.target):e.relatedTarget}(t),i=y(e.items,c);if(Object(u.a)(t)&&i)return(null===(r=E.current)||void 0===r?void 0:r.ref.current)&&Object(v.a)(E.current.ref.current,"blur",t),E.current=_,void t.stopPropagation();o?E.current=_:((null==_?void 0:_.ref.current)&&Object(v.a)(_.ref.current,"blur",t),E.current=void 0)}null===(n=S.current)||void 0===n||n.call(S,t)}),[e.unstable_virtual,e.items,_]),T=Object(a.useMemo)((function(){return Object(p.a)({onKeyDown:I,stopPropagation:!0,shouldKeyDown:function(t){return Object(u.a)(t)&&null===e.currentId},keyMap:function(){var t,n="horizontal"!==e.orientation,r="vertical"!==e.orientation,o=!!(null===(t=e.groups)||void 0===t?void 0:t.length),c=e.first&&function(){return e.first()},i=e.last&&function(){return e.last()};return{ArrowUp:(o||n)&&function(){if(o){var t,n=(c=e.items,Object(g.a)(Object(g.b)(Object(g.f)(Object(g.c)(c)))));if(null==n?void 0:n.id)null===(t=e.move)||void 0===t||t.call(e,n.id)}else{var r;null===(r=e.last)||void 0===r||r.call(e)}var c},ArrowRight:(o||r)&&c,ArrowDown:(o||n)&&c,ArrowLeft:(o||r)&&i,Home:c,End:i,PageUp:c,PageDown:i}}})}),[I,e.currentId,e.orientation,e.groups,e.items,e.move,e.last,e.first]);return Object(r.b)({ref:Object(l.a)(O,n),id:e.baseId,onFocus:x,onBlur:P,onKeyDown:T,onKeyUp:B,"aria-activedescendant":e.unstable_virtual&&(null==_?void 0:_.id)||void 0},f)},useComposeProps:function(e,t){t=Object(i.a)(e,t,!0);var n=Object(b.a)(e,t,!0);return e.unstable_virtual||null===e.currentId?n:Object(r.b)(Object(r.b)({},t),{},{ref:n.ref})}}),E=Object(o.a)({as:"div",useHook:_,useCreateElement:function(e,t,n){return Object(f.a)(e,t,n)}})},function(e,t,n){"use strict";n.d(t,"a",(function(){return y})),n.d(t,"b",(function(){return k}));var r=n(15),o=n(51),c=n(50),i=n(13),a=n(63),l=(n(81),n(48)),s=n(54),u=n(70),d=n(73),b=n(72),f=n(88),p=n(82),m=n(49),v=n(52),O=n(96),g=n(98),h=n(99);function j(e){return e.querySelector("[data-composite-item-widget]")}var k=Object(c.a)({name:"CompositeItem",compose:[f.a,O.a],useState:v.g,propsAreEqual:function(e,t){if(!t.id||e.id!==t.id)return f.a.unstable_propsAreEqual(e,t);var n=e.currentId,o=e.unstable_moves,c=Object(r.a)(e,["currentId","unstable_moves"]),i=t.currentId,a=t.unstable_moves,l=Object(r.a)(t,["currentId","unstable_moves"]);if(i!==n){if(t.id===i||t.id===n)return!1}else if(o!==a)return!1;return f.a.unstable_propsAreEqual(c,l)},useOptions:function(e){return Object(r.b)(Object(r.b)({},e),{},{id:e.id,currentId:Object(v.e)(e),unstable_clickOnSpace:!e.unstable_hasActiveWidget&&e.unstable_clickOnSpace})},useProps:function(e,t){var n,o=t.ref,c=t.tabIndex,f=void 0===c?0:c,v=t.onFocus,O=t.onBlur,k=t.onKeyDown,y=t.onClick,_=Object(r.a)(t,["ref","tabIndex","onFocus","onBlur","onKeyDown","onClick"]),E=Object(i.useRef)(null),C=e.id,S=e.disabled&&!e.focusable,w=e.currentId===C,I=Object(l.a)(w),B=Object(i.useRef)(!1),x=function(e){return Object(i.useMemo)((function(){var t;return null===(t=e.items)||void 0===t?void 0:t.find((function(t){return e.id&&t.id===e.id}))}),[e.items,e.id])}(e),P=Object(l.a)(v),T=Object(l.a)(O),N=Object(l.a)(k),D=Object(l.a)(y),R=!e.unstable_virtual&&!e.unstable_hasActiveWidget&&w||!(null===(n=e.items)||void 0===n?void 0:n.length);Object(i.useEffect)((function(){var t;if(C)return null===(t=e.registerItem)||void 0===t||t.call(e,{id:C,ref:E,disabled:!!S}),function(){var t;null===(t=e.unregisterItem)||void 0===t||t.call(e,C)}}),[C,S,e.registerItem,e.unregisterItem]),Object(i.useEffect)((function(){var t=E.current;t&&e.unstable_moves&&I.current&&t.focus()}),[e.unstable_moves]);var A=Object(i.useCallback)((function(t){var n,o;if(null===(n=P.current)||void 0===n||n.call(P,t),!t.defaultPrevented&&!Object(d.a)(t)&&C&&!function(e,t){if(Object(s.a)(e))return!1;for(var n,o=Object(r.c)(t);!(n=o()).done;){if(n.value.ref.current===e.target)return!0}return!1}(t,e.items)&&(null===(o=e.setCurrentId)||void 0===o||o.call(e,C),e.unstable_virtual&&e.baseId&&Object(s.a)(t))){var c=t.target,i=Object(m.a)(c).getElementById(e.baseId);i&&(B.current=!0,Object(b.a)(i))}}),[C,e.items,e.setCurrentId,e.unstable_virtual,e.baseId]),M=Object(i.useCallback)((function(t){var n;if(e.unstable_virtual&&B.current)return B.current=!1,t.preventDefault(),void t.stopPropagation();null===(n=T.current)||void 0===n||n.call(T,t)}),[e.unstable_virtual]),L=Object(i.useCallback)((function(e){var t;if(null===(t=N.current)||void 0===t||t.call(N,e),Object(s.a)(e)&&1===e.key.length&&" "!==e.key){var n=j(e.currentTarget);if(n&&Object(g.a)(n)){n.focus();var r=e.key;window.requestAnimationFrame((function(){Object(h.a)(n,r)}))}}}),[]),F=Object(i.useMemo)((function(){return Object(p.a)({onKeyDown:L,stopPropagation:!0,shouldKeyDown:s.a,keyMap:function(){var t="horizontal"!==e.orientation,n="vertical"!==e.orientation,r=!!(null==x?void 0:x.groupId),o=function(e){var t=j(e.currentTarget);t&&Object(g.a)(t)&&Object(h.a)(t,"")},c=e.up&&function(){return e.up()},i=e.next&&function(){return e.next()},a=e.down&&function(){return e.down()},l=e.previous&&function(){return e.previous()};return{Delete:o,Backspace:o,ArrowUp:(r||t)&&c,ArrowRight:(r||n)&&i,ArrowDown:(r||t)&&a,ArrowLeft:(r||n)&&l,Home:function(t){var n,o;!r||t.ctrlKey?null===(n=e.first)||void 0===n||n.call(e):null===(o=e.previous)||void 0===o||o.call(e,!0)},End:function(t){var n,o;!r||t.ctrlKey?null===(n=e.last)||void 0===n||n.call(e):null===(o=e.next)||void 0===o||o.call(e,!0)},PageUp:function(){var t,n;r?null===(t=e.up)||void 0===t||t.call(e,!0):null===(n=e.first)||void 0===n||n.call(e)},PageDown:function(){var t,n;r?null===(t=e.down)||void 0===t||t.call(e,!0):null===(n=e.last)||void 0===n||n.call(e)}}}})}),[L,e.orientation,x,e.up,e.next,e.down,e.previous,e.first,e.last]),V=Object(i.useCallback)((function(e){var t;if(null===(t=D.current)||void 0===t||t.call(D,e),!e.defaultPrevented){var n=j(e.currentTarget);n&&!Object(u.a)(n)&&n.focus()}}),[]);return Object(r.b)({ref:Object(a.a)(E,o),id:C,tabIndex:R?f:-1,"aria-selected":!(!e.unstable_virtual||!w)||void 0,onFocus:A,onBlur:M,onKeyDown:F,onClick:V},_)}}),y=Object(o.a)({as:"button",memo:!0,useHook:k})},,,function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(49);function o(e,t,n){var o,c;if(void 0===n&&(n={}),"function"==typeof Event)return new Event(t,n);var i=Object(r.a)(e).createEvent("Event");return i.initEvent(t,null===(o=n)||void 0===o?void 0:o.bubbles,null===(c=n)||void 0===c?void 0:c.cancelable),i}},function(e,t,n){"use strict";e.exports=n(184)},function(e,t){!function(){e.exports=this.wp.wordcount}()},,function(e,t){!function(){e.exports=this.wp.shortcode}()},,,function(e,t,n){"use strict";var r=n(8),o=n(14),c=n(0),i=n(2),a=n(3),l=n(170),s=Object(a.createSlotFill)("BlockControls"),u=s.Fill,d=s.Slot;var b=function(e){return"BlockControls".concat(e?"-expanded":"")},f=function(e){var t=e.controls,n=e.__experimentalIsExpanded,r=e.children;return Object(l.a)()?Object(c.createElement)(u,{name:b(n)},(function(e){var n=Object(i.isEmpty)(e)?null:e;return Object(c.createElement)(a.__experimentalToolbarContext.Provider,{value:n},Object(c.createElement)(a.ToolbarGroup,{controls:t}),r)})):null};f.Slot=function(e){var t=e.__experimentalIsExpanded,n=void 0!==t&&t,i=Object(o.a)(e,["__experimentalIsExpanded"]),l=Object(c.useContext)(a.__experimentalToolbarContext);return Object(c.createElement)(d,Object(r.a)({name:b(n)},i,{fillProps:l}))},t.a=f},,,,,,,,function(e,t,n){"use strict";var r=n(5),o=n(14),c=n(0);function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}t.a=function(e){var t=e.icon,n=e.size,a=void 0===n?24:n,l=Object(o.a)(e,["icon","size"]);return Object(c.cloneElement)(t,function(e){for(var t=1;t=0||(o[n]=e[n]);return o}},function(e,t){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c=this&&this.__assign||Object.assign||function(e){for(var t,n=1,r=arguments.length;n=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(c[n]=e[n])}return c}},function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t=0||(o[n]=e[n]);return o}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(n=e[Symbol.iterator]()).next.bind(n)}n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return c})),n.d(t,"c",(function(){return l}))},function(e,t,n){"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(27);var o=n(37),c=n(31);function i(e){return function(e){if(Array.isArray(e))return Object(r.a)(e)}(e)||Object(o.a)(e)||Object(c.a)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},function(e,t){!function(){e.exports=this.wp.keycodes}()},function(e,t,n){"use strict";function r(e){return(r=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n.d(t,"a",(function(){return r}))},function(e,t){!function(){e.exports=this.regeneratorRuntime}()},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function r(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||(o[n]=e[n]);return o}n.d(t,"a",(function(){return r}))},,function(e,t,n){"use strict";function r(e,t,n,r,o,c,i){try{var a=e[c](i),l=a.value}catch(e){return void n(e)}a.done?t(l):Promise.resolve(l).then(r,o)}function o(e){return function(){var t=this,n=arguments;return new Promise((function(o,c){var i=e.apply(t,n);function a(e){r(i,o,c,a,l,"next",e)}function l(e){r(i,o,c,a,l,"throw",e)}a(void 0)}))}}n.d(t,"a",(function(){return o}))},function(e,t){!function(){e.exports=this.wp.a11y}()},,function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(13),o=n(59);function c(e){var t=Object(r.useRef)(e);return Object(o.a)((function(){t.current=e})),t}},function(e,t,n){"use strict";function r(e){return e?e.ownerDocument||e:window.document}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var r=n(13),o=n(76);function c(e,t){Object(r.useDebugValue)(e);var n=Object(r.useContext)(o.a);return null!=n[e]?n[e]:t}var i=n(55);var a=n(56);function l(e){var t,n,o,l=(o=e.compose,Array.isArray(o)?o:void 0!==o?[o]:[]),s=function(t,n){if(e.useOptions&&(t=e.useOptions(t,n)),e.name&&(t=function(e,t,n){void 0===t&&(t={}),void 0===n&&(n={});var o="use"+e+"Options";Object(r.useDebugValue)(o);var a=c(o);return a?Object(i.a)(Object(i.a)({},t),a(t,n)):t}(e.name,t,n)),e.compose)for(var o,a=Object(i.c)(l);!(o=a()).done;){t=o.value.__useOptions(t,n)}return t},u=function(t,n,o){if(void 0===t&&(t={}),void 0===n&&(n={}),void 0===o&&(o=!1),o||(t=s(t,n)),e.useProps&&(n=e.useProps(t,n)),e.name&&(n=function(e,t,n){void 0===t&&(t={}),void 0===n&&(n={});var o="use"+e+"Props";Object(r.useDebugValue)(o);var i=c(o);return i?i(t,n):n}(e.name,t,n)),e.compose)if(e.useComposeOptions&&(t=e.useComposeOptions(t,n)),e.useComposeProps)n=e.useComposeProps(t,n);else for(var a,u=Object(i.c)(l);!(a=u()).done;){n=(0,a.value)(t,n,!0)}var d={},b=n||{};for(var f in b)void 0!==b[f]&&(d[f]=b[f]);return d};u.__useOptions=s;var d=l.reduce((function(e,t){return e.push.apply(e,t.__keys||[]),e}),[]);return u.__keys=[].concat(d,(null===(t=e.useState)||void 0===t?void 0:t.__keys)||[],e.keys||[]),u.unstable_propsAreEqual=e.propsAreEqual||(null===(n=l[0])||void 0===n?void 0:n.unstable_propsAreEqual)||a.a,u}},function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var r=n(13),o=n(55),c=n(79);function i(e,t){for(var n={},r={},o=0,c=Object.keys(e);o=0?n[i]=e[i]:r[i]=e[i]}return[n,r]}var a=n(56);function l(e){var t,n=e.as,l=e.useHook,s=e.memo,u=e.propsAreEqual,d=void 0===u?null==l?void 0:l.unstable_propsAreEqual:u,b=e.keys,f=void 0===b?(null==l?void 0:l.__keys)||[]:b,p=e.useCreateElement,m=void 0===p?c.a:p,v=function(e,t){var r=e.as,c=void 0===r?n:r,a=Object(o.b)(e,["as"]);if(l){var s,u=i(a,f),d=u[0],b=u[1],p=l(d,Object(o.a)({ref:t},b)),v=p.wrapElement,O=Object(o.b)(p,["wrapElement"]),g=(null===(s=c.render)||void 0===s?void 0:s.__keys)||c.__keys,h=g&&i(a,g)[0],j=h?Object(o.a)(Object(o.a)({},O),h):O,k=m(c,j);return v?v(k):k}return m(c,Object(o.a)({ref:t},a))};return t=v,v=Object(r.forwardRef)(t),s&&(v=function(e,t){return Object(r.memo)(e,t)}(v,d)),v.__keys=f,v.unstable_propsAreEqual=d||a.a,v}},function(e,t,n){"use strict";n.d(t,"a",(function(){return b})),n.d(t,"b",(function(){return O})),n.d(t,"c",(function(){return p})),n.d(t,"d",(function(){return f})),n.d(t,"e",(function(){return h})),n.d(t,"f",(function(){return s})),n.d(t,"g",(function(){return w}));var r=n(15),o=n(13),c=n(59),i=n(62),a=n(61),l=n(65);function s(e){return e.slice().reverse()}function u(e,t){return Boolean(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_PRECEDING)}function d(e,t){return e.findIndex((function(e){return!(!e.ref.current||!t.ref.current)&&u(t.ref.current,e.ref.current)}))}function b(e,t){return t?e.find((function(e){return!e.disabled&&e.id!==t})):e.find((function(e){return!e.disabled}))}function f(e,t){if(t)return null==e?void 0:e.find((function(e){return e.id===t&&!e.disabled}))}function p(e){for(var t,n=[[]],o=function(){var e=t.value,r=n.find((function(t){return!t[0]||t[0].groupId===e.groupId}));r?r.push(e):n.push([e])},c=Object(r.c)(e);!(t=c()).done;)o();return n}function m(e){for(var t,n=0,o=Object(r.c)(e);!(t=o()).done;){var c=t.value.length;c>n&&(n=c)}return n}function v(e){for(var t=p(e),n=m(t),o=[],c=0;c=0||(o[n]=e[n]);return o}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(n=e[Symbol.iterator]()).next.bind(n)}n.d(t,"a",(function(){return c})),n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return l}))},function(e,t,n){"use strict";function r(e,t){if(e===t)return!0;if(!e)return!1;if(!t)return!1;if("object"!=typeof e)return!1;if("object"!=typeof t)return!1;var n=Object.keys(e),r=Object.keys(t),o=n.length;if(r.length!==o)return!1;for(var c=0,i=n;c1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}if(e=N(e,360),t=N(t,100),n=N(n,100),0===t)r=o=c=n;else{var a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;r=i(l,a,e+1/3),o=i(l,a,e),c=i(l,a,e-1/3)}return{r:255*r,g:255*o,b:255*c}}(e.h,r,l),d=!0,b="hsl"),e.hasOwnProperty("a")&&(n=e.a));var f,p,m;return n=T(n),{ok:d,format:e.format||b,r:s(255,u(t.r,0)),g:s(255,u(t.g,0)),b:s(255,u(t.b,0)),a:n}}(e);this._originalInput=e,this._r=n.r,this._g=n.g,this._b=n.b,this._a=n.a,this._roundA=l(100*this._a)/100,this._format=t.format||n.format,this._gradientType=t.gradientType,this._r<1&&(this._r=l(this._r)),this._g<1&&(this._g=l(this._g)),this._b<1&&(this._b=l(this._b)),this._ok=n.ok,this._tc_id=a++}function f(e,t,n){e=N(e,255),t=N(t,255),n=N(n,255);var r,o,c=u(e,t,n),i=s(e,t,n),a=(c+i)/2;if(c==i)r=o=0;else{var l=c-i;switch(o=a>.5?l/(2-c-i):l/(c+i),c){case e:r=(t-n)/l+(t>1)+720)%360;--t;)r.h=(r.h+o)%360,c.push(b(r));return c}function B(e,t){t=t||6;for(var n=b(e).toHsv(),r=n.h,o=n.s,c=n.v,i=[],a=1/t;t--;)i.push(b({h:r,s:o,v:c})),c=(c+a)%1;return i}b.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},getLuminance:function(){var e,t,n,r=this.toRgb();return e=r.r/255,t=r.g/255,n=r.b/255,.2126*(e<=.03928?e/12.92:o.pow((e+.055)/1.055,2.4))+.7152*(t<=.03928?t/12.92:o.pow((t+.055)/1.055,2.4))+.0722*(n<=.03928?n/12.92:o.pow((n+.055)/1.055,2.4))},setAlpha:function(e){return this._a=T(e),this._roundA=l(100*this._a)/100,this},toHsv:function(){var e=p(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=p(this._r,this._g,this._b),t=l(360*e.h),n=l(100*e.s),r=l(100*e.v);return 1==this._a?"hsv("+t+", "+n+"%, "+r+"%)":"hsva("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHsl:function(){var e=f(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=f(this._r,this._g,this._b),t=l(360*e.h),n=l(100*e.s),r=l(100*e.l);return 1==this._a?"hsl("+t+", "+n+"%, "+r+"%)":"hsla("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHex:function(e){return m(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return function(e,t,n,r,o){var c=[A(l(e).toString(16)),A(l(t).toString(16)),A(l(n).toString(16)),A(L(r))];if(o&&c[0].charAt(0)==c[0].charAt(1)&&c[1].charAt(0)==c[1].charAt(1)&&c[2].charAt(0)==c[2].charAt(1)&&c[3].charAt(0)==c[3].charAt(1))return c[0].charAt(0)+c[1].charAt(0)+c[2].charAt(0)+c[3].charAt(0);return c.join("")}(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:l(this._r),g:l(this._g),b:l(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+l(this._r)+", "+l(this._g)+", "+l(this._b)+")":"rgba("+l(this._r)+", "+l(this._g)+", "+l(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:l(100*N(this._r,255))+"%",g:l(100*N(this._g,255))+"%",b:l(100*N(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+l(100*N(this._r,255))+"%, "+l(100*N(this._g,255))+"%, "+l(100*N(this._b,255))+"%)":"rgba("+l(100*N(this._r,255))+"%, "+l(100*N(this._g,255))+"%, "+l(100*N(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(P[m(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var t="#"+v(this._r,this._g,this._b,this._a),n=t,r=this._gradientType?"GradientType = 1, ":"";if(e){var o=b(e);n="#"+v(o._r,o._g,o._b,o._a)}return"progid:DXImageTransform.Microsoft.gradient("+r+"startColorstr="+t+",endColorstr="+n+")"},toString:function(e){var t=!!e;e=e||this._format;var n=!1,r=this._a<1&&this._a>=0;return t||!r||"hex"!==e&&"hex6"!==e&&"hex3"!==e&&"hex4"!==e&&"hex8"!==e&&"name"!==e?("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),n||this.toHexString()):"name"===e&&0===this._a?this.toName():this.toRgbString()},clone:function(){return b(this.toString())},_applyModification:function(e,t){var n=e.apply(null,[this].concat([].slice.call(t)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(j,arguments)},brighten:function(){return this._applyModification(k,arguments)},darken:function(){return this._applyModification(y,arguments)},desaturate:function(){return this._applyModification(O,arguments)},saturate:function(){return this._applyModification(g,arguments)},greyscale:function(){return this._applyModification(h,arguments)},spin:function(){return this._applyModification(_,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(I,arguments)},complement:function(){return this._applyCombination(E,arguments)},monochromatic:function(){return this._applyCombination(B,arguments)},splitcomplement:function(){return this._applyCombination(w,arguments)},triad:function(){return this._applyCombination(C,arguments)},tetrad:function(){return this._applyCombination(S,arguments)}},b.fromRatio=function(e,t){if("object"==typeof e){var n={};for(var r in e)e.hasOwnProperty(r)&&(n[r]="a"===r?e[r]:M(e[r]));e=n}return b(e,t)},b.equals=function(e,t){return!(!e||!t)&&b(e).toRgbString()==b(t).toRgbString()},b.random=function(){return b.fromRatio({r:d(),g:d(),b:d()})},b.mix=function(e,t,n){n=0===n?0:n||50;var r=b(e).toRgb(),o=b(t).toRgb(),c=n/100;return b({r:(o.r-r.r)*c+r.r,g:(o.g-r.g)*c+r.g,b:(o.b-r.b)*c+r.b,a:(o.a-r.a)*c+r.a})},b.readability=function(e,t){var n=b(e),r=b(t);return(o.max(n.getLuminance(),r.getLuminance())+.05)/(o.min(n.getLuminance(),r.getLuminance())+.05)},b.isReadable=function(e,t,n){var r,o,c=b.readability(e,t);switch(o=!1,(r=function(e){var t,n;t=((e=e||{level:"AA",size:"small"}).level||"AA").toUpperCase(),n=(e.size||"small").toLowerCase(),"AA"!==t&&"AAA"!==t&&(t="AA");"small"!==n&&"large"!==n&&(n="small");return{level:t,size:n}}(n)).level+r.size){case"AAsmall":case"AAAlarge":o=c>=4.5;break;case"AAlarge":o=c>=3;break;case"AAAsmall":o=c>=7}return o},b.mostReadable=function(e,t,n){var r,o,c,i,a=null,l=0;o=(n=n||{}).includeFallbackColors,c=n.level,i=n.size;for(var s=0;sl&&(l=r,a=b(t[s]));return b.isReadable(e,a,{level:c,size:i})||!o?a:(n.includeFallbackColors=!1,b.mostReadable(e,["#fff","#000"],n))};var x=b.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},P=b.hexNames=function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}(x);function T(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function N(e,t){(function(e){return"string"==typeof e&&-1!=e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var n=function(e){return"string"==typeof e&&-1!=e.indexOf("%")}(e);return e=s(t,u(0,parseFloat(e))),n&&(e=parseInt(e*t,10)/100),o.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function D(e){return s(1,u(0,e))}function R(e){return parseInt(e,16)}function A(e){return 1==e.length?"0"+e:""+e}function M(e){return e<=1&&(e=100*e+"%"),e}function L(e){return o.round(255*parseFloat(e)).toString(16)}function F(e){return R(e)/255}var V,H,z,U=(H="[\\s|\\(]+("+(V="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+V+")[,|\\s]+("+V+")\\s*\\)?",z="[\\s|\\(]+("+V+")[,|\\s]+("+V+")[,|\\s]+("+V+")[,|\\s]+("+V+")\\s*\\)?",{CSS_UNIT:new RegExp(V),rgb:new RegExp("rgb"+H),rgba:new RegExp("rgba"+z),hsl:new RegExp("hsl"+H),hsla:new RegExp("hsla"+z),hsv:new RegExp("hsv"+H),hsva:new RegExp("hsva"+z),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function G(e){return!!U.CSS_UNIT.exec(e)}e.exports?e.exports=b:void 0===(r=function(){return b}.call(t,n,t,e))||(e.exports=r)}(Math)},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(15),o=n(51),c=n(50),i=n(56),a=Object(c.a)({name:"Box",keys:["unstable_system"],propsAreEqual:function(e,t){var n=e.unstable_system,o=Object(r.a)(e,["unstable_system"]),c=t.unstable_system,a=Object(r.a)(t,["unstable_system"]);return!(n!==c&&!Object(i.a)(n,c))&&Object(i.a)(o,a)}});Object(o.a)({as:"div",useHook:a})},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(13);var o=Object(r.createContext)((function(e){return void 0===e&&(e="id"),(e?e+"-":"")+Math.random().toString(32).substr(2,6)}))},function(e,t){!function(){e.exports=this.wp.htmlEntities}()},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(57);function o(e){var t=Object(r.a)(e);if(!t)return!1;if(e.contains(t))return!0;var n=t.getAttribute("aria-activedescendant");return!!n&&(n===e.id||!!e.querySelector("#"+n))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=["button","color","file","image","reset","submit"];function o(e){if("BUTTON"===e.tagName)return!0;if("INPUT"===e.tagName){var t=e;return-1!==r.indexOf(t.type)}return!1}},function(e,t,n){"use strict";function r(e,t){return"matches"in e?e.matches(t):"msMatchesSelector"in e?e.msMatchesSelector(t):e.webkitMatchesSelector(t)}function o(e,t){if("closest"in e)return e.closest(t);do{if(r(e,t))return e;e=e.parentElement||e.parentNode}while(null!==e&&1===e.nodeType);return null}n.d(t,"a",(function(){return u})),n.d(t,"b",(function(){return l}));var c=n(57),i="input:not([type='hidden']):not([disabled]), select:not([disabled]), textarea:not([disabled]), a[href], button:not([disabled]), [tabindex], iframe, object, embed, area[href], audio[controls], video[controls], [contenteditable]:not([contenteditable='false'])";function a(e){return r(e,i)&&function(e){return e.offsetWidth>0||e.offsetHeight>0||e.getClientRects().length>0}(e)}function l(e){for(;e&&!a(e);)e=o(e,i);return e}function s(e){return Object(c.a)(e)===e}function u(e,t){var n=void 0===t?{}:t,r=n.isActive,o=void 0===r?s:r,c=n.preventScroll;return o(e)?-1:(e.focus({preventScroll:c}),o(e)?-1:requestAnimationFrame((function(){e.focus({preventScroll:c})})))}},function(e,t,n){"use strict";function r(e){return t=e.currentTarget,n=e.target,!(t===n||t.contains(n));var t,n}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return h}));var r=n(15),o=n(51),c=n(50),i=n(67),a=n(13),l=n(63),s=n(71),u=(n(81),n(48)),d=n(59),b=n(70),f=n(73),p=n(57),m=n(72);function v(e){return"undefined"!=typeof window&&-1!==window.navigator.userAgent.indexOf(e)}var O=v("Mac")&&!v("Chrome")&&(v("Safari")||v("Firefox"));function g(e){Object(b.a)(e)||e.focus()}var h=Object(c.a)({name:"Tabbable",compose:i.a,keys:["disabled","focusable"],useOptions:function(e,t){var n=t.disabled;return Object(r.b)({disabled:n},e)},useProps:function(e,t){var n=t.ref,o=t.tabIndex,c=t.onClick,i=t.onMouseDown,b=t.style,v=Object(r.a)(t,["ref","tabIndex","onClick","onMouseDown","style"]),h=Object(a.useRef)(null),j=Object(u.a)(c),k=Object(u.a)(i),y=e.disabled&&!e.focusable,_=Object(a.useState)(!0),E=_[0],C=_[1],S=E?o:o||0,w=e.disabled?Object(r.b)({pointerEvents:"none"},b):b,I=function(){if(O){var e=Object(a.useState)(null),t=e[0],n=e[1];return Object(a.useEffect)((function(){t&&(g(t),n(null))}),[t]),Object(a.useCallback)((function(e){var t=e.currentTarget;if(!Object(f.a)(e)&&Object(s.a)(t)){var r=Object(p.a)(t);if(r){var o="BODY"===r.tagName,c=Object(m.b)(t.parentElement);if(r===c||o&&!c)n(t);else if(c){c.addEventListener("focusin",(function(){return n(t)}),{once:!0})}else{r.addEventListener("blur",(function(){return g(t)}),{once:!0})}}}}),[])}}();Object(d.a)((function(){var e,t=h.current;t&&("BUTTON"!==(e=t).tagName&&"INPUT"!==e.tagName&&"SELECT"!==e.tagName&&"TEXTAREA"!==e.tagName&&"A"!==e.tagName&&"AUDIO"!==e.tagName&&"VIDEO"!==e.tagName&&C(!1))}),[]);var B=Object(a.useCallback)((function(t){var n;if(e.disabled)return t.stopPropagation(),void t.preventDefault();null===(n=j.current)||void 0===n||n.call(j,t)}),[e.disabled]),x=Object(a.useCallback)((function(t){var n;if(e.disabled)return t.stopPropagation(),void t.preventDefault();null===(n=k.current)||void 0===n||n.call(k,t),t.defaultPrevented||null==I||I(t)}),[e.disabled,I]);return Object(r.b)({ref:Object(l.a)(h,n),style:w,tabIndex:y?void 0:S,disabled:!(!y||!E)||void 0,"aria-disabled":!!e.disabled||void 0,onClick:B,onMouseDown:x},v)}});Object(o.a)({as:"div",useHook:h})},,function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(13),o=Object(r.createContext)({})},,,function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(13),o=n(76),c=n(55);var i=function(e,t,n){void 0===n&&(n=t.children);var i=Object(r.useContext)(o.a);if(i.useCreateElement)return i.useCreateElement(e,t,n);if("string"==typeof e&&function(e){return"function"==typeof e}(n)){t.children;return n(Object(c.b)(t,["children"]))}return Object(r.createElement)(e,t,n)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return a}));var r=n(2),o=n(0),c=Object(o.createContext)({name:"",isSelected:!1,focusedElement:null,setFocusedElement:r.noop,clientId:null}),i=c.Provider;function a(){return Object(o.useContext)(c)}},function(e,t,n){"use strict";n(110),n(13)},function(e,t,n){"use strict";function r(e){var t=void 0===e?{}:e,n=t.keyMap,r=t.onKey,o=t.stopPropagation,c=t.onKeyDown,i=t.shouldKeyDown,a=void 0===i?function(){return!0}:i,l=t.preventDefault,s=void 0===l||l;return function(e){if(n){var t,i="function"==typeof n?n(e):n,l="function"==typeof s?s(e):s,u="function"==typeof o?o(e):o;if(e.key in i){var d=i[e.key];if("function"==typeof d&&a(e))return l&&e.preventDefault(),u&&e.stopPropagation(),r&&r(e),void d(e)}if(c&&"current"in c)null===(t=c.current)||void 0===t||t.call(c,e);else null==c||c(e)}}}n.d(t,"a",(function(){return r}))},,,,,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var r=n(15),o=n(51),c=n(50),i=n(13),a=n(71),l=(n(81),n(48)),s=n(54),u=n(74);var d=Object(c.a)({name:"Clickable",compose:u.a,keys:["unstable_clickOnEnter","unstable_clickOnSpace"],useOptions:function(e){var t=e.unstable_clickOnEnter,n=void 0===t||t,o=e.unstable_clickOnSpace,c=void 0===o||o,i=Object(r.a)(e,["unstable_clickOnEnter","unstable_clickOnSpace"]);return Object(r.b)({unstable_clickOnEnter:n,unstable_clickOnSpace:c},i)},useProps:function(e,t){var n=t.onKeyDown,o=t.onKeyUp,c=Object(r.a)(t,["onKeyDown","onKeyUp"]),u=Object(i.useState)(!1),d=u[0],b=u[1],f=Object(l.a)(n),p=Object(l.a)(o),m=Object(i.useCallback)((function(t){var n;if(null===(n=f.current)||void 0===n||n.call(f,t),!t.defaultPrevented&&!e.disabled&&!t.metaKey&&Object(s.a)(t)){var r=e.unstable_clickOnEnter&&"Enter"===t.key,o=e.unstable_clickOnSpace&&" "===t.key;if(r||o){if(function(e){var t=e.currentTarget;return!!e.isTrusted&&(Object(a.a)(t)||"INPUT"===t.tagName||"TEXTAREA"===t.tagName||"A"===t.tagName||"SELECT"===t.tagName)}(t))return;t.preventDefault(),r?t.currentTarget.click():o&&b(!0)}}}),[e.disabled,e.unstable_clickOnEnter,e.unstable_clickOnSpace]),v=Object(i.useCallback)((function(t){var n;if(null===(n=p.current)||void 0===n||n.call(p,t),!t.defaultPrevented&&!e.disabled&&!t.metaKey){var r=e.unstable_clickOnSpace&&" "===t.key;d&&r&&(b(!1),t.currentTarget.click())}}),[e.disabled,e.unstable_clickOnSpace,d]);return Object(r.b)({"data-active":d||void 0,onKeyDown:m,onKeyUp:v},c)}});Object(o.a)({as:"button",memo:!0,useHook:d})},,,function(e,t){!function(){e.exports=this.wp.warning}()},,function(e,t){!function(){e.exports=this.wp.notices}()},,function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n(15),o=n(51),c=n(50),i=n(13),a=n(68),l=n(65),s=Object(c.a)({useState:l.a,keys:["id"],useOptions:function(e,t){var n=Object(i.useContext)(a.a),o=Object(i.useState)((function(){return e.unstable_idCountRef?(e.unstable_idCountRef.current+=1,"-"+e.unstable_idCountRef.current):e.baseId?"-"+n(""):""}))[0],c=Object(i.useMemo)((function(){return e.baseId||n()}),[e.baseId,n]),l=t.id||e.id||""+c+o;return Object(r.b)(Object(r.b)({},e),{},{id:l})},useProps:function(e,t){return Object(r.b)({id:e.id},t)}});Object(o.a)({as:"div",useHook:s})},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(127);function o(e,t,n){return e.dispatchEvent(Object(r.a)(e,t,n))}},function(e,t,n){"use strict";function r(e){try{var t=e instanceof HTMLInputElement&&null!==e.selectionStart,n="TEXTAREA"===e.tagName,r="true"===e.contentEditable;return t||n||r||!1}catch(e){return!1}}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function r(e,t){e.value=t}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";t.__esModule=!0;var r=n(181);t.default=r.default},function(e,t){!function(){e.exports=this.wp.viewport}()},,function(e,t){var n,r,o=e.exports={};function c(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function a(e){if(n===setTimeout)return setTimeout(e,0);if((n===c||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:c}catch(e){n=c}try{r="function"==typeof clearTimeout?clearTimeout:i}catch(e){r=i}}();var l,s=[],u=!1,d=-1;function b(){u&&l&&(u=!1,l.length?s=l.concat(s):d=-1,s.length&&f())}function f(){if(!u){var e=a(b);u=!0;for(var t=s.length;t;){for(l=s,s=[];++d1)for(var n=1;n1?t-1:0),r=1;r=n.length)break;c=n[o++]}else{if((o=n.next()).done)break;c=o.value}for(var i=c,a=!1,l=0;l=f.startTime+s.duration;else if(s.decay)v=p+h/(1-.998)*(1-Math.exp(-(1-.998)*(t-f.startTime))),(u=Math.abs(f.lastPosition-v)<.1)&&(m=v);else{d=void 0!==f.lastTime?f.lastTime:t,h=void 0!==f.lastVelocity?f.lastVelocity:s.initialVelocity,t>d+64&&(d=t);for(var j=Math.floor(t-d),k=0;km:v=e);++n);return n-1}(e,c);return function(e,t,n,r,o,c,i,a,l){var s=l?l(e):e;if(sn){if("identity"===a)return s;"clamp"===a&&(s=n)}if(r===o)return r;if(t===n)return e<=t?r:o;t===-1/0?s=-s:n===1/0?s-=t:s=(s-t)/(n-t);s=c(s),r===-1/0?s=-s:o===1/0?s+=r:s=s*(o-r)+r;return s}(e,c[t],c[t+1],o[t],o[t+1],l,i,a,r.map)}}var V=function(e){function t(n,r,o,c){var i;return(i=e.call(this)||this).calc=void 0,i.payload=n instanceof h&&!(n instanceof t)?n.getPayload():Array.isArray(n)?n:[n],i.calc=F(r,o,c),i}l(t,e);var n=t.prototype;return n.getValue=function(){return this.calc.apply(this,this.payload.map((function(e){return e.getValue()})))},n.updateConfig=function(e,t,n){this.calc=F(e,t,n)},n.interpolate=function(e,n,r){return new t(this,e,n,r)},t}(h);var H=function(e){function t(t){var n;return(n=e.call(this)||this).animatedStyles=new Set,n.value=void 0,n.startPosition=void 0,n.lastPosition=void 0,n.lastVelocity=void 0,n.startTime=void 0,n.lastTime=void 0,n.done=!1,n.setValue=function(e,t){void 0===t&&(t=!0),n.value=e,t&&n.flush()},n.value=t,n.startPosition=t,n.lastPosition=t,n}l(t,e);var n=t.prototype;return n.flush=function(){0===this.animatedStyles.size&&function e(t,n){"update"in t?n.add(t):t.getChildren().forEach((function(t){return e(t,n)}))}(this,this.animatedStyles),this.animatedStyles.forEach((function(e){return e.update()}))},n.clearStyles=function(){this.animatedStyles.clear()},n.getValue=function(){return this.value},n.interpolate=function(e,t,n){return new V(this,e,t,n)},t}(g),z=function(e){function t(t){var n;return(n=e.call(this)||this).payload=t.map((function(e){return new H(e)})),n}l(t,e);var n=t.prototype;return n.setValue=function(e,t){var n=this;void 0===t&&(t=!0),Array.isArray(e)?e.length===this.payload.length&&e.forEach((function(e,r){return n.payload[r].setValue(e,t)})):this.payload.forEach((function(n){return n.setValue(e,t)}))},n.getValue=function(){return this.payload.map((function(e){return e.getValue()}))},n.interpolate=function(e,t){return new V(this,e,t)},t}(h),U=0,G=function(){function e(){var e=this;this.id=void 0,this.idle=!0,this.hasChanged=!1,this.guid=0,this.local=0,this.props={},this.merged={},this.animations={},this.interpolations={},this.values={},this.configs=[],this.listeners=[],this.queue=[],this.localQueue=void 0,this.getValues=function(){return e.interpolations},this.id=U++}var t=e.prototype;return t.update=function(e){if(!e)return this;var t=m(e),n=t.delay,r=void 0===n?0:n,i=t.to,a=c(t,["delay","to"]);if(u.arr(i)||u.fun(i))this.queue.push(o({},a,{delay:r,to:i}));else if(i){var l={};Object.entries(i).forEach((function(e){var t,n=e[0],c=e[1],i=o({to:(t={},t[n]=c,t),delay:p(r,n)},a),s=l[i.delay]&&l[i.delay].to;l[i.delay]=o({},l[i.delay],i,{to:o({},s,i.to)})})),this.queue=Object.values(l)}return this.queue=this.queue.sort((function(e,t){return e.delay-t.delay})),this.diff(a),this},t.start=function(e){var t,n=this;if(this.queue.length){this.idle=!1,this.localQueue&&this.localQueue.forEach((function(e){var t=e.from,r=void 0===t?{}:t,c=e.to,i=void 0===c?{}:c;u.obj(r)&&(n.merged=o({},r,n.merged)),u.obj(i)&&(n.merged=o({},n.merged,i))}));var r=this.local=++this.guid,i=this.localQueue=this.queue;this.queue=[],i.forEach((function(t,o){var a=t.delay,l=c(t,["delay"]),s=function(t){o===i.length-1&&r===n.guid&&t&&(n.idle=!0,n.props.onRest&&n.props.onRest(n.merged)),e&&e()},d=u.arr(l.to)||u.fun(l.to);a?setTimeout((function(){r===n.guid&&(d?n.runAsync(l,s):n.diff(l).start(s))}),a):d?n.runAsync(l,s):n.diff(l).start(s)}))}else u.fun(e)&&this.listeners.push(e),this.props.onStart&&this.props.onStart(),t=this,M.has(t)||M.add(t),A||(A=!0,E(P||L));return this},t.stop=function(e){return this.listeners.forEach((function(t){return t(e)})),this.listeners=[],this},t.pause=function(e){var t;return this.stop(!0),e&&(t=this,M.has(t)&&M.delete(t)),this},t.runAsync=function(e,t){var n=this,r=(e.delay,c(e,["delay"])),i=this.local,a=Promise.resolve(void 0);if(u.arr(r.to))for(var l=function(e){var t=e,c=o({},r,m(r.to[t]));u.arr(c.config)&&(c.config=c.config[t]),a=a.then((function(){if(i===n.guid)return new Promise((function(e){return n.diff(c).start(e)}))}))},s=0;s=r.length)return"break";i=r[c++]}else{if((c=r.next()).done)return"break";i=c.value}var n=i.key,a=function(e){return e.key!==n};(u.und(t)||t===n)&&(e.current.instances.delete(n),e.current.transitions=e.current.transitions.filter(a),e.current.deleted=e.current.deleted.filter(a))},r=e.current.deleted,o=Array.isArray(r),c=0;for(r=o?r:r[Symbol.iterator]();;){var i;if("break"===n())break}e.current.forceUpdate()}var X=function(e){function t(t){var n;return void 0===t&&(t={}),n=e.call(this)||this,!t.transform||t.transform instanceof g||(t=v.transform(t)),n.payload=t,n}return l(t,e),t}(j),Q={transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199},Z="[-+]?\\d*\\.?\\d+";function J(){for(var e=arguments.length,t=new Array(e),n=0;n1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function se(e,t,n){var r=n<.5?n*(1+t):n+t-n*t,o=2*n-r,c=le(o,r,e+1/3),i=le(o,r,e),a=le(o,r,e-1/3);return Math.round(255*c)<<24|Math.round(255*i)<<16|Math.round(255*a)<<8}function ue(e){var t=parseInt(e,10);return t<0?0:t>255?255:t}function de(e){return(parseFloat(e)%360+360)%360/360}function be(e){var t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function fe(e){var t=parseFloat(e);return t<0?0:t>100?1:t/100}function pe(e){var t,n,r="number"==typeof(t=e)?t>>>0===t&&t>=0&&t<=4294967295?t:null:(n=ie.exec(t))?parseInt(n[1]+"ff",16)>>>0:Q.hasOwnProperty(t)?Q[t]:(n=ee.exec(t))?(ue(n[1])<<24|ue(n[2])<<16|ue(n[3])<<8|255)>>>0:(n=te.exec(t))?(ue(n[1])<<24|ue(n[2])<<16|ue(n[3])<<8|be(n[4]))>>>0:(n=oe.exec(t))?parseInt(n[1]+n[1]+n[2]+n[2]+n[3]+n[3]+"ff",16)>>>0:(n=ae.exec(t))?parseInt(n[1],16)>>>0:(n=ce.exec(t))?parseInt(n[1]+n[1]+n[2]+n[2]+n[3]+n[3]+n[4]+n[4],16)>>>0:(n=ne.exec(t))?(255|se(de(n[1]),fe(n[2]),fe(n[3])))>>>0:(n=re.exec(t))?(se(de(n[1]),fe(n[2]),fe(n[3]))|be(n[4]))>>>0:null;return null===r?e:"rgba("+((4278190080&(r=r||0))>>>24)+", "+((16711680&r)>>>16)+", "+((65280&r)>>>8)+", "+(255&r)/255+")"}var me=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,ve=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,Oe=new RegExp("("+Object.keys(Q).join("|")+")","g"),ge={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},he=["Webkit","Ms","Moz","O"];function je(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||ge.hasOwnProperty(e)&&ge[e]?(""+t).trim():t+"px"}ge=Object.keys(ge).reduce((function(e,t){return he.forEach((function(n){return e[function(e,t){return e+t.charAt(0).toUpperCase()+t.substring(1)}(n,t)]=e[t]})),e}),ge);var ke={};N((function(e){return new X(e)})),B("div"),S((function(e){var t=e.output.map((function(e){return e.replace(ve,pe)})).map((function(e){return e.replace(Oe,pe)})),n=t[0].match(me).map((function(){return[]}));t.forEach((function(e){e.match(me).forEach((function(e,t){return n[t].push(+e)}))}));var r=t[0].match(me).map((function(t,r){return F(o({},e,{output:n[r]}))}));return function(e){var n=0;return t[0].replace(me,(function(){return r[n++](e)})).replace(/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,(function(e,t,n,r,o){return"rgba("+Math.round(t)+", "+Math.round(n)+", "+Math.round(r)+", "+o+")"}))}})),y(Q),k((function(e,t){if(!e.nodeType||void 0===e.setAttribute)return!1;var n=t.style,r=t.children,o=t.scrollTop,i=t.scrollLeft,a=c(t,["style","children","scrollTop","scrollLeft"]),l="filter"===e.nodeName||e.parentNode&&"filter"===e.parentNode.nodeName;for(var s in void 0!==o&&(e.scrollTop=o),void 0!==i&&(e.scrollLeft=i),void 0!==r&&(e.textContent=r),n)if(n.hasOwnProperty(s)){var u=0===s.indexOf("--"),d=je(s,n[s],u);"float"===s&&(s="cssFloat"),u?e.style.setProperty(s,d):e.style[s]=d}for(var b in a){var f=l?b:ke[b]||(ke[b]=b.replace(/([A-Z])/g,(function(e){return"-"+e.toLowerCase()})));void 0!==e.getAttribute(f)&&e.setAttribute(f,a[b])}}),(function(e){return e}));var ye,_e,Ee=(ye=function(e){return i.forwardRef((function(t,n){var r=d(),l=i.useRef(!0),s=i.useRef(null),b=i.useRef(null),f=i.useCallback((function(e){var t=s.current;s.current=new R(e,(function(){var e=!1;b.current&&(e=v.fn(b.current,s.current.getAnimatedValue())),b.current&&!1!==e||r()})),t&&t.detach()}),[]);i.useEffect((function(){return function(){l.current=!1,s.current&&s.current.detach()}}),[]),i.useImperativeHandle(n,(function(){return T(b,l,r)})),f(t);var p,m=s.current.getValue(),O=(m.scrollTop,m.scrollLeft,c(m,["scrollTop","scrollLeft"])),g=(p=e,!u.fun(p)||p.prototype instanceof a.Component?function(e){return b.current=function(e,t){return t&&(u.fun(t)?t(e):u.obj(t)&&(t.current=e)),e}(e,n)}:void 0);return a.createElement(e,o({},O,{ref:g}))}))},void 0===(_e=!1)&&(_e=!0),function(e){return(u.arr(e)?e:Object.keys(e)).reduce((function(e,t){var n=_e?t[0].toLowerCase()+t.substring(1):t;return e[n]=ye(n),e}),ye)}),Ce=Ee(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]);t.apply=Ee,t.config={default:{tension:170,friction:26},gentle:{tension:120,friction:14},wobbly:{tension:180,friction:12},stiff:{tension:210,friction:20},slow:{tension:280,friction:60},molasses:{tension:280,friction:120}},t.update=L,t.animated=Ce,t.a=Ce,t.interpolate=function(e,t,n){return e&&new V(e,t,n)},t.Globals=D,t.useSpring=function(e){var t=u.fun(e),n=K(1,t?e:[e]),r=n[0],o=n[1],c=n[2];return t?[r[0],o,c]:r},t.useTrail=function(e,t){var n=i.useRef(!1),r=u.fun(t),c=p(t),a=i.useRef(),l=K(e,(function(e,t){return 0===e&&(a.current=[]),a.current.push(t),o({},c,{config:p(c.config,e),attach:e>0&&function(){return a.current[e-1]}})})),s=l[0],d=l[1],b=l[2],f=i.useMemo((function(){return function(e){return d((function(t,n){e.reverse;var r=e.reverse?t+1:t-1,i=a.current[r];return o({},e,{config:p(e.config||c.config,t),attach:i&&function(){return i}})}))}}),[e,c.reverse]);return i.useEffect((function(){n.current&&!r&&f(t)})),i.useEffect((function(){n.current=!0}),[]),r?[s,f,b]:s},t.useTransition=function(e,t,n){var r=o({items:e,keys:t||function(e){return e}},n),a=$(r),l=a.lazy,s=void 0!==l&&l,u=(a.unique,a.reset),b=void 0!==u&&u,f=(a.enter,a.leave,a.update,a.onDestroyed),m=(a.keys,a.items,a.onFrame),v=a.onRest,O=a.onStart,g=a.ref,h=c(a,["lazy","unique","reset","enter","leave","update","onDestroyed","keys","items","onFrame","onRest","onStart","ref"]),j=d(),k=i.useRef(!1),y=i.useRef({mounted:!1,first:!0,deleted:[],current:{},transitions:[],prevProps:{},paused:!!r.ref,instances:!k.current&&new Map,forceUpdate:j});return i.useImperativeHandle(r.ref,(function(){return{start:function(){return Promise.all(Array.from(y.current.instances).map((function(e){var t=e[1];return new Promise((function(e){return t.start(e)}))})))},stop:function(e){return Array.from(y.current.instances).forEach((function(t){return t[1].stop(e)}))},get controllers(){return Array.from(y.current.instances).map((function(e){return e[1]}))}}})),y.current=function(e,t){var n=e.first,r=e.prevProps,i=c(e,["first","prevProps"]),a=$(t),l=a.items,s=a.keys,u=a.initial,d=a.from,b=a.enter,f=a.leave,m=a.update,v=a.trail,O=void 0===v?0:v,g=a.unique,h=a.config,j=a.order,k=void 0===j?["enter","leave","update"]:j,y=$(r),_=y.keys,E=y.items,C=o({},i.current),S=[].concat(i.deleted),w=Object.keys(C),I=new Set(w),B=new Set(s),x=s.filter((function(e){return!I.has(e)})),P=i.transitions.filter((function(e){return!e.destroyed&&!B.has(e.originalKey)})).map((function(e){return e.originalKey})),T=s.filter((function(e){return I.has(e)})),N=-O;for(;k.length;){switch(k.shift()){case"enter":x.forEach((function(e,t){g&&S.find((function(t){return t.originalKey===e}))&&(S=S.filter((function(t){return t.originalKey!==e})));var r=s.indexOf(e),o=l[r],c=n&&void 0!==u?"initial":"enter";C[e]={slot:c,originalKey:e,key:g?String(e):W++,item:o,trail:N+=O,config:p(h,o,c),from:p(n&&void 0!==u?u||{}:d,o),to:p(b,o)}}));break;case"leave":P.forEach((function(e){var t=_.indexOf(e),n=E[t];S.unshift(o({},C[e],{slot:"leave",destroyed:!0,left:_[Math.max(0,t-1)],right:_[Math.min(_.length,t+1)],trail:N+=O,config:p(h,n,"leave"),to:p(f,n)})),delete C[e]}));break;case"update":T.forEach((function(e){var t=s.indexOf(e),n=l[t];C[e]=o({},C[e],{item:n,slot:"update",trail:N+=O,config:p(h,n,"update"),to:p(m,n)})}))}}var D=s.map((function(e){return C[e]}));return S.forEach((function(e){var t,n=e.left,r=(e.right,c(e,["left","right"]));-1!==(t=D.findIndex((function(e){return e.originalKey===n})))&&(t+=1),t=Math.max(0,t),D=[].concat(D.slice(0,t),[r],D.slice(t))})),o({},i,{changed:x.length||P.length||T.length,first:n&&0===x.length,transitions:D,current:C,deleted:S,prevProps:t})}(y.current,r),y.current.changed&&y.current.transitions.forEach((function(e){var t=e.slot,n=e.from,r=e.to,c=e.config,i=e.trail,a=e.key,l=e.item;y.current.instances.has(a)||y.current.instances.set(a,new G);var u=y.current.instances.get(a),d=o({},h,{to:r,from:n,config:c,ref:g,onRest:function(n){y.current.mounted&&(e.destroyed&&(g||s||Y(y,a),f&&f(l)),!Array.from(y.current.instances).some((function(e){return!e[1].idle}))&&(g||s)&&y.current.deleted.length>0&&Y(y),v&&v(l,t,n))},onStart:O&&function(){return O(l,t)},onFrame:m&&function(e){return m(l,t,e)},delay:i,reset:b&&"enter"===t});u.update(d),y.current.paused||u.start()})),i.useEffect((function(){return y.current.mounted=k.current=!0,function(){y.current.mounted=k.current=!1,Array.from(y.current.instances).map((function(e){return e[1].destroy()})),y.current.instances.clear()}}),[]),y.current.transitions.map((function(e){var t=e.item,n=e.slot,r=e.key;return{item:t,key:r,state:n,props:y.current.instances.get(r).getValues()}}))},t.useChain=function(e,t,n){void 0===n&&(n=1e3);var r=i.useRef();i.useEffect((function(){u.equ(e,r.current)?e.forEach((function(e){var t=e.current;return t&&t.start()})):t?e.forEach((function(e,r){var c=e.current;if(c){var i=c.controllers;if(i.length){var a=n*t[r];i.forEach((function(e){e.queue=e.queue.map((function(e){return o({},e,{delay:e.delay+a})})),e.start()}))}}})):e.reduce((function(e,t,n){var r=t.current;return e.then((function(){return r.start()}))}),Promise.resolve()),r.current=e}))},t.useSprings=K},,,,,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return E})),n.d(t,"b",(function(){return _}));var r=n(15),o=n(51),c=n(50),i=n(67),a=n(13),l=n(63),s=(n(81),n(48)),u=n(54),d=n(57),b=n(74),f=n(79),p=n(82),m=n(49),v=n(97),O=n(106),g=n(52),h="undefined"!=typeof window&&"msCrypto"in window;var j="undefined"!=typeof window&&"msCrypto"in window;function k(e,t,n){var r=Object(s.a)(n);return Object(a.useCallback)((function(n){var o;if(e&&function(e){return!!Object(u.a)(e)&&(!e.metaKey&&"Tab"!==e.key)}(n)){var c=null==t?void 0:t.ref.current;if(c&&(Object(O.a)(c,n.type,n),n.currentTarget.contains(c)))return n.stopPropagation(),void n.preventDefault()}null===(o=r.current)||void 0===o||o.call(r,n)}),[e,t])}function y(e,t){return null==e?void 0:e.some((function(e){return!!t&&e.ref.current===t}))}var _=Object(c.a)({name:"Composite",compose:[b.a],useState:g.g,useOptions:function(e){return Object(r.b)(Object(r.b)({},e),{},{currentId:Object(g.e)(e)})},useProps:function(e,t){var n=t.ref,o=t.onFocus,c=t.onBlur,i=t.onKeyDown,b=t.onKeyUp,f=Object(r.a)(t,["ref","onFocus","onBlur","onKeyDown","onKeyUp"]),O=Object(a.useRef)(null),_=Object(g.d)(e.items,e.currentId),E=Object(a.useRef)(void 0),C=Object(s.a)(o),S=Object(s.a)(c),w=j?function(e){var t=Object(a.useRef)(null);return Object(a.useEffect)((function(){var n=Object(m.a)(e.current),r=function(e){var n=e.target;t.current=n};return n.addEventListener("focus",r,!0),function(){n.removeEventListener("focus",r,!0)}}),[]),t}(O):void 0;Object(a.useEffect)((function(){var t=O.current;t&&e.unstable_moves&&!_&&t.focus()}),[e.unstable_moves,_]);var I=k(e.unstable_virtual,_,i),B=k(e.unstable_virtual,_,b),x=Object(a.useCallback)((function(t){var n;if(e.unstable_virtual){var r,o,c=(null==w?void 0:w.current)||t.relatedTarget,i=y(e.items,c);if(Object(u.a)(t)&&!i)return null===(r=C.current)||void 0===r||r.call(C,t),void(null==_||null===(o=_.ref.current)||void 0===o||o.focus());if(i)return void t.stopPropagation()}else if(Object(u.a)(t)){var a;null===(a=e.setCurrentId)||void 0===a||a.call(e,null)}null===(n=C.current)||void 0===n||n.call(C,t)}),[e.unstable_virtual,e.items,_,e.setCurrentId]),P=Object(a.useCallback)((function(t){var n;if(e.unstable_virtual){var r,o=y(e.items,t.target),c=function(e){return h?Object(d.a)(e.target):e.relatedTarget}(t),i=y(e.items,c);if(Object(u.a)(t)&&i)return(null===(r=E.current)||void 0===r?void 0:r.ref.current)&&Object(v.a)(E.current.ref.current,"blur",t),E.current=_,void t.stopPropagation();o?E.current=_:((null==_?void 0:_.ref.current)&&Object(v.a)(_.ref.current,"blur",t),E.current=void 0)}null===(n=S.current)||void 0===n||n.call(S,t)}),[e.unstable_virtual,e.items,_]),T=Object(a.useMemo)((function(){return Object(p.a)({onKeyDown:I,stopPropagation:!0,shouldKeyDown:function(t){return Object(u.a)(t)&&null===e.currentId},keyMap:function(){var t,n="horizontal"!==e.orientation,r="vertical"!==e.orientation,o=!!(null===(t=e.groups)||void 0===t?void 0:t.length),c=e.first&&function(){return e.first()},i=e.last&&function(){return e.last()};return{ArrowUp:(o||n)&&function(){if(o){var t,n=(c=e.items,Object(g.a)(Object(g.b)(Object(g.f)(Object(g.c)(c)))));if(null==n?void 0:n.id)null===(t=e.move)||void 0===t||t.call(e,n.id)}else{var r;null===(r=e.last)||void 0===r||r.call(e)}var c},ArrowRight:(o||r)&&c,ArrowDown:(o||n)&&c,ArrowLeft:(o||r)&&i,Home:c,End:i,PageUp:c,PageDown:i}}})}),[I,e.currentId,e.orientation,e.groups,e.items,e.move,e.last,e.first]);return Object(r.b)({ref:Object(l.a)(O,n),id:e.baseId,onFocus:x,onBlur:P,onKeyDown:T,onKeyUp:B,"aria-activedescendant":e.unstable_virtual&&(null==_?void 0:_.id)||void 0},f)},useComposeProps:function(e,t){t=Object(i.a)(e,t,!0);var n=Object(b.a)(e,t,!0);return e.unstable_virtual||null===e.currentId?n:Object(r.b)(Object(r.b)({},t),{},{ref:n.ref})}}),E=Object(o.a)({as:"div",useHook:_,useCreateElement:function(e,t,n){return Object(f.a)(e,t,n)}})},function(e,t,n){"use strict";n.d(t,"a",(function(){return y})),n.d(t,"b",(function(){return k}));var r=n(15),o=n(51),c=n(50),i=n(13),a=n(63),l=(n(81),n(48)),s=n(54),u=n(70),d=n(73),b=n(72),f=n(89),p=n(82),m=n(49),v=n(52),O=n(96),g=n(98),h=n(99);function j(e){return e.querySelector("[data-composite-item-widget]")}var k=Object(c.a)({name:"CompositeItem",compose:[f.a,O.a],useState:v.g,propsAreEqual:function(e,t){if(!t.id||e.id!==t.id)return f.a.unstable_propsAreEqual(e,t);var n=e.currentId,o=e.unstable_moves,c=Object(r.a)(e,["currentId","unstable_moves"]),i=t.currentId,a=t.unstable_moves,l=Object(r.a)(t,["currentId","unstable_moves"]);if(i!==n){if(t.id===i||t.id===n)return!1}else if(o!==a)return!1;return f.a.unstable_propsAreEqual(c,l)},useOptions:function(e){return Object(r.b)(Object(r.b)({},e),{},{id:e.id,currentId:Object(v.e)(e),unstable_clickOnSpace:!e.unstable_hasActiveWidget&&e.unstable_clickOnSpace})},useProps:function(e,t){var n,o=t.ref,c=t.tabIndex,f=void 0===c?0:c,v=t.onFocus,O=t.onBlur,k=t.onKeyDown,y=t.onClick,_=Object(r.a)(t,["ref","tabIndex","onFocus","onBlur","onKeyDown","onClick"]),E=Object(i.useRef)(null),C=e.id,S=e.disabled&&!e.focusable,w=e.currentId===C,I=Object(l.a)(w),B=Object(i.useRef)(!1),x=function(e){return Object(i.useMemo)((function(){var t;return null===(t=e.items)||void 0===t?void 0:t.find((function(t){return e.id&&t.id===e.id}))}),[e.items,e.id])}(e),P=Object(l.a)(v),T=Object(l.a)(O),N=Object(l.a)(k),D=Object(l.a)(y),R=!e.unstable_virtual&&!e.unstable_hasActiveWidget&&w||!(null===(n=e.items)||void 0===n?void 0:n.length);Object(i.useEffect)((function(){var t;if(C)return null===(t=e.registerItem)||void 0===t||t.call(e,{id:C,ref:E,disabled:!!S}),function(){var t;null===(t=e.unregisterItem)||void 0===t||t.call(e,C)}}),[C,S,e.registerItem,e.unregisterItem]),Object(i.useEffect)((function(){var t=E.current;t&&e.unstable_moves&&I.current&&t.focus()}),[e.unstable_moves]);var A=Object(i.useCallback)((function(t){var n,o;if(null===(n=P.current)||void 0===n||n.call(P,t),!t.defaultPrevented&&!Object(d.a)(t)&&C&&!function(e,t){if(Object(s.a)(e))return!1;for(var n,o=Object(r.c)(t);!(n=o()).done;){if(n.value.ref.current===e.target)return!0}return!1}(t,e.items)&&(null===(o=e.setCurrentId)||void 0===o||o.call(e,C),e.unstable_virtual&&e.baseId&&Object(s.a)(t))){var c=t.target,i=Object(m.a)(c).getElementById(e.baseId);i&&(B.current=!0,Object(b.a)(i))}}),[C,e.items,e.setCurrentId,e.unstable_virtual,e.baseId]),M=Object(i.useCallback)((function(t){var n;if(e.unstable_virtual&&B.current)return B.current=!1,t.preventDefault(),void t.stopPropagation();null===(n=T.current)||void 0===n||n.call(T,t)}),[e.unstable_virtual]),L=Object(i.useCallback)((function(e){var t;if(null===(t=N.current)||void 0===t||t.call(N,e),Object(s.a)(e)&&1===e.key.length&&" "!==e.key){var n=j(e.currentTarget);if(n&&Object(g.a)(n)){n.focus();var r=e.key;window.requestAnimationFrame((function(){Object(h.a)(n,r)}))}}}),[]),F=Object(i.useMemo)((function(){return Object(p.a)({onKeyDown:L,stopPropagation:!0,shouldKeyDown:s.a,keyMap:function(){var t="horizontal"!==e.orientation,n="vertical"!==e.orientation,r=!!(null==x?void 0:x.groupId),o=function(e){var t=j(e.currentTarget);t&&Object(g.a)(t)&&Object(h.a)(t,"")},c=e.up&&function(){return e.up()},i=e.next&&function(){return e.next()},a=e.down&&function(){return e.down()},l=e.previous&&function(){return e.previous()};return{Delete:o,Backspace:o,ArrowUp:(r||t)&&c,ArrowRight:(r||n)&&i,ArrowDown:(r||t)&&a,ArrowLeft:(r||n)&&l,Home:function(t){var n,o;!r||t.ctrlKey?null===(n=e.first)||void 0===n||n.call(e):null===(o=e.previous)||void 0===o||o.call(e,!0)},End:function(t){var n,o;!r||t.ctrlKey?null===(n=e.last)||void 0===n||n.call(e):null===(o=e.next)||void 0===o||o.call(e,!0)},PageUp:function(){var t,n;r?null===(t=e.up)||void 0===t||t.call(e,!0):null===(n=e.first)||void 0===n||n.call(e)},PageDown:function(){var t,n;r?null===(t=e.down)||void 0===t||t.call(e,!0):null===(n=e.last)||void 0===n||n.call(e)}}}})}),[L,e.orientation,x,e.up,e.next,e.down,e.previous,e.first,e.last]),V=Object(i.useCallback)((function(e){var t;if(null===(t=D.current)||void 0===t||t.call(D,e),!e.defaultPrevented){var n=j(e.currentTarget);n&&!Object(u.a)(n)&&n.focus()}}),[]);return Object(r.b)({ref:Object(a.a)(E,o),id:C,tabIndex:R?f:-1,"aria-selected":!(!e.unstable_virtual||!w)||void 0,onFocus:A,onBlur:M,onKeyDown:F,onClick:V},_)}}),y=Object(o.a)({as:"button",memo:!0,useHook:k})},,,function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(49);function o(e,t,n){var o,c;if(void 0===n&&(n={}),"function"==typeof Event)return new Event(t,n);var i=Object(r.a)(e).createEvent("Event");return i.initEvent(t,null===(o=n)||void 0===o?void 0:o.bubbles,null===(c=n)||void 0===c?void 0:c.cancelable),i}},function(e,t,n){"use strict";e.exports=n(185)},function(e,t){!function(){e.exports=this.wp.wordcount}()},,function(e,t){!function(){e.exports=this.wp.shortcode}()},,function(e,t,n){"use strict";var r=n(8),o=n(14),c=n(0),i=n(2),a=n(3),l=n(171),s=Object(a.createSlotFill)("BlockControls"),u=s.Fill,d=s.Slot;var b=function(e){return"BlockControls".concat(e?"-expanded":"")},f=function(e){var t=e.controls,n=e.__experimentalIsExpanded,r=e.children;return Object(l.a)()?Object(c.createElement)(u,{name:b(n)},(function(e){var n=Object(i.isEmpty)(e)?null:e;return Object(c.createElement)(a.__experimentalToolbarContext.Provider,{value:n},Object(c.createElement)(a.ToolbarGroup,{controls:t}),r)})):null};f.Slot=function(e){var t=e.__experimentalIsExpanded,n=void 0!==t&&t,i=Object(o.a)(e,["__experimentalIsExpanded"]),l=Object(c.useContext)(a.__experimentalToolbarContext);return Object(c.createElement)(d,Object(r.a)({name:b(n)},i,{fillProps:l}))},t.a=f},,,,,,,,function(e,t,n){"use strict";var r=n(5),o=n(14),c=n(0);function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}t.a=function(e){var t=e.icon,n=e.size,a=void 0===n?24:n,l=Object(o.a)(e,["icon","size"]);return Object(c.cloneElement)(t,function(e){for(var t=1;t=0||(o[n]=e[n]);return o}},function(e,t){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c=this&&this.__assign||Object.assign||function(e){for(var t,n=1,r=arguments.length;n-1},get:function(e){return r[n.indexOf(e)]},set:function(e,t){-1===n.indexOf(e)&&(n.push(e),r.push(t))},delete:function(e){var t=n.indexOf(e);t>-1&&(n.splice(t,1),r.splice(t,1))}}),c=function(e){return new Event(e,{bubbles:!0})};try{new Event("test")}catch(e){c=function(e){var t=document.createEvent("Event");return t.initEvent(e,!0,!1),t}}function i(e){if(e&&e.nodeName&&"TEXTAREA"===e.nodeName&&!o.has(e)){var t,n=null,r=null,i=null,a=function(){e.clientWidth!==r&&d()},l=function(t){window.removeEventListener("resize",a,!1),e.removeEventListener("input",d,!1),e.removeEventListener("keyup",d,!1),e.removeEventListener("autosize:destroy",l,!1),e.removeEventListener("autosize:update",d,!1),Object.keys(t).forEach((function(n){e.style[n]=t[n]})),o.delete(e)}.bind(e,{height:e.style.height,resize:e.style.resize,overflowY:e.style.overflowY,overflowX:e.style.overflowX,wordWrap:e.style.wordWrap});e.addEventListener("autosize:destroy",l,!1),"onpropertychange"in e&&"oninput"in e&&e.addEventListener("keyup",d,!1),window.addEventListener("resize",a,!1),e.addEventListener("input",d,!1),e.addEventListener("autosize:update",d,!1),e.style.overflowX="hidden",e.style.wordWrap="break-word",o.set(e,{destroy:l,update:d}),"vertical"===(t=window.getComputedStyle(e,null)).resize?e.style.resize="none":"both"===t.resize&&(e.style.resize="horizontal"),n="content-box"===t.boxSizing?-(parseFloat(t.paddingTop)+parseFloat(t.paddingBottom)):parseFloat(t.borderTopWidth)+parseFloat(t.borderBottomWidth),isNaN(n)&&(n=0),d()}function s(t){var n=e.style.width;e.style.width="0px",e.offsetWidth,e.style.width=n,e.style.overflowY=t}function u(){if(0!==e.scrollHeight){var t=function(e){for(var t=[];e&&e.parentNode&&e.parentNode instanceof Element;)e.parentNode.scrollTop&&t.push({node:e.parentNode,scrollTop:e.parentNode.scrollTop}),e=e.parentNode;return t}(e),o=document.documentElement&&document.documentElement.scrollTop;e.style.height="",e.style.height=e.scrollHeight+n+"px",r=e.clientWidth,t.forEach((function(e){e.node.scrollTop=e.scrollTop})),o&&(document.documentElement.scrollTop=o)}}function d(){u();var t=Math.round(parseFloat(e.style.height)),n=window.getComputedStyle(e,null),r="content-box"===n.boxSizing?Math.round(parseFloat(n.height)):e.offsetHeight;if(r0?!0===i?r.scrollTop(t,h.top+j.top):!1===i?r.scrollTop(t,h.top+k.top):j.top<0?r.scrollTop(t,h.top+j.top):r.scrollTop(t,h.top+k.top):c||((i=void 0===i||!!i)?r.scrollTop(t,h.top+j.top):r.scrollTop(t,h.top+k.top)),o&&(j.left<0||k.left>0?!0===a?r.scrollLeft(t,h.left+j.left):!1===a?r.scrollLeft(t,h.left+k.left):j.left<0?r.scrollLeft(t,h.left+j.left):r.scrollLeft(t,h.left+k.left):c||((a=void 0===a||!!a)?r.scrollLeft(t,h.left+j.left):r.scrollLeft(t,h.left+k.left)))}},function(e,t,n){"use strict";var r=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(t,["children"]);if(delete r.in,delete r.mountOnEnter,delete r.unmountOnExit,delete r.appear,delete r.enter,delete r.exit,delete r.timeout,delete r.addEndListener,delete r.onEnter,delete r.onEntering,delete r.onEntered,delete r.onExit,delete r.onExiting,delete r.onExited,"function"==typeof n)return n(e,r);var c=o.default.Children.only(n);return o.default.cloneElement(c,r)},r}(o.default.Component);function s(){}l.contextTypes={transitionGroup:r.object},l.childContextTypes={transitionGroup:function(){}},l.propTypes={},l.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:s,onEntering:s,onEntered:s,onExit:s,onExiting:s,onExited:s},l.UNMOUNTED=0,l.EXITED=1,l.ENTERING=2,l.ENTERED=3,l.EXITING=4;var u=(0,i.polyfill)(l);t.default=u},function(e,t,n){"use strict";function r(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);null!=e&&this.setState(e)}function o(e){this.setState(function(t){var n=this.constructor.getDerivedStateFromProps(e,t);return null!=n?n:null}.bind(this))}function c(e,t){try{var n=this.props,r=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(n,r)}finally{this.props=n,this.state=r}}function i(e){var t=e.prototype;if(!t||!t.isReactComponent)throw new Error("Can only polyfill class components");if("function"!=typeof e.getDerivedStateFromProps&&"function"!=typeof t.getSnapshotBeforeUpdate)return e;var n=null,i=null,a=null;if("function"==typeof t.componentWillMount?n="componentWillMount":"function"==typeof t.UNSAFE_componentWillMount&&(n="UNSAFE_componentWillMount"),"function"==typeof t.componentWillReceiveProps?i="componentWillReceiveProps":"function"==typeof t.UNSAFE_componentWillReceiveProps&&(i="UNSAFE_componentWillReceiveProps"),"function"==typeof t.componentWillUpdate?a="componentWillUpdate":"function"==typeof t.UNSAFE_componentWillUpdate&&(a="UNSAFE_componentWillUpdate"),null!==n||null!==i||null!==a){var l=e.displayName||e.name,s="function"==typeof e.getDerivedStateFromProps?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n"+l+" uses "+s+" but also contains the following legacy lifecycles:"+(null!==n?"\n "+n:"")+(null!==i?"\n "+i:"")+(null!==a?"\n "+a:"")+"\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://fb.me/react-async-component-lifecycle-hooks")}if("function"==typeof e.getDerivedStateFromProps&&(t.componentWillMount=r,t.componentWillReceiveProps=o),"function"==typeof t.getSnapshotBeforeUpdate){if("function"!=typeof t.componentDidUpdate)throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");t.componentWillUpdate=c;var u=t.componentDidUpdate;t.componentDidUpdate=function(e,t,n){var r=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:n;u.call(this,e,t,r)}}return e}n.r(t),n.d(t,"polyfill",(function(){return i})),r.__suppressDeprecationWarning=!0,o.__suppressDeprecationWarning=!0,c.__suppressDeprecationWarning=!0},function(e,t,n){"use strict";t.__esModule=!0,t.classNamesShape=t.timeoutsShape=void 0;var r;(r=n(28))&&r.__esModule;t.timeoutsShape=null;t.classNamesShape=null},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r=a(n(28)),o=a(n(13)),c=n(211),i=n(313);function a(e){return e&&e.__esModule?e:{default:e}}function l(){return(l=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,["component","childFactory"]),c=u(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?c:o.default.createElement(t,r,c)},r}(o.default.Component);d.childContextTypes={transitionGroup:r.default.object.isRequired},d.propTypes={},d.defaultProps={component:"div",childFactory:function(e){return e}};var b=(0,c.polyfill)(d);t.default=b,e.exports=t.default},function(e,t,n){"use strict";var r=n(0),o=n(7),c=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M10.6 6L9.4 7l4.6 5-4.6 5 1.2 1 5.4-6z"}));t.a=c},function(e,t,n){"use strict";var r=n(0),o=n(7),c=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M14.6 7l-1.2-1L8 12l5.4 6 1.2-1-4.6-5z"}));t.a=c},function(e,t,n){"use strict";var r=n(0),o=n(7),c=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(r.createElement)(o.Path,{d:"M16 4h2v9H7v3l-5-4 5-4v3h9V4z"}));t.a=c},function(e,t,n){"use strict";var r=n(0),o=n(7),c=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M18.5 15v3.5H13V6.7l4.5 4.1 1-1.1-6.2-5.8-5.8 5.8 1 1.1 4-4v11.7h-6V15H4v5h16v-5z"}));t.a=c},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";var r=n(0),o=n(7),c=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M20.1 5.1L16.9 2 6.2 12.7l-1.3 4.4 4.5-1.3L20.1 5.1zM4 20.8h8v-1.5H4v1.5z"}));t.a=c},,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.dispatch;return function(e){return function(n){return Array.isArray(n)?n.filter(Boolean).map(t):e(n)}}}},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return l}));var r=n(12),o=n(0),c=n(174),i=n(2),a=(n(90),n(133));function l(e){var t=e.children,n=e.className;return Object(o.createElement)(a.a.Slot,{__experimentalIsExpanded:!0},(function(e){return Object(o.createElement)(s,{className:n,fills:e},t)}))}function s(t){var n=t.fills,a=t.className,l=void 0===a?"":a,s=t.children,u=Object(o.useRef)(),d=Object(o.useRef)(),b=Object(o.useRef)(),f=Object(o.useState)({}),p=Object(r.a)(f,2),m=p[0],v=p[1],O=Object(o.useRef)();O.current=n;var g=Object(o.useCallback)(Object(i.throttle)((function(){var e=O.current.length?d.current:b.current;if(e){e.style.position="absolute",e.style.width="auto";var t,n=(t=e).ownerDocument.defaultView.getComputedStyle(t);v({width:n.getPropertyValue("width"),height:n.getPropertyValue("height")}),e.style.position="",e.style.width=""}}),100),[]);Object(o.useEffect)((function(){var e=new window.MutationObserver((function(e){e.find((function(e){return"childList"===e.type}))&&g()}));return e.observe(u.current,{childList:!0,subtree:!0}),function(){return e.disconnect()}}),[]),Object(o.useEffect)((function(){n.length>1&&void 0!==e&&e.env}),[n.length]);var h=n[0];return Object(o.createElement)("div",{className:"block-editor-block-toolbar-animated-width-container",ref:u,style:m},Object(o.createElement)(c.TransitionGroup,null,h?Object(o.createElement)(c.CSSTransition,{key:"fills",timeout:300,classNames:"block-editor-block-toolbar-content"},Object(o.createElement)("div",{className:l,ref:d},h)):Object(o.createElement)(c.CSSTransition,{key:"default",timeout:300,classNames:"block-editor-block-toolbar-content"},Object(o.createElement)("div",{className:l,ref:b},s))))}}).call(this,n(102))},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.diffChars=function(e,t,n){return o.diff(e,t,n)},t.characterDiff=void 0;var o=new(((r=n(317))&&r.__esModule?r:{default:r}).default);t.characterDiff=o},function(e,t,n){"use strict";t.match=function(e,t){return l(e).some((function(e){var n=e.inverse,r="all"===e.type||t.type===e.type;if(r&&n||!r&&!n)return!1;var o=e.expressions.every((function(e){var n=e.feature,r=e.modifier,o=e.value,c=t[n];if(!c)return!1;switch(n){case"orientation":case"scan":return c.toLowerCase()===o.toLowerCase();case"width":case"height":case"device-width":case"device-height":o=d(o),c=d(c);break;case"resolution":o=u(o),c=u(c);break;case"aspect-ratio":case"device-aspect-ratio":case"device-pixel-ratio":o=s(o),c=s(c);break;case"grid":case"color":case"color-index":case"monochrome":o=parseInt(o,10)||1,c=parseInt(c,10)||0}switch(r){case"min":return c>=o;case"max":return c<=o;default:return c===o}}));return o&&!n||!o&&n}))},t.parse=l;var r=/(?:(only|not)?\s*([^\s\(\)]+)(?:\s*and)?\s*)?(.+)?/i,o=/\(\s*([^\s\:\)]+)\s*(?:\:\s*([^\s\)]+))?\s*\)/,c=/^(?:(min|max)-)?(.+)/,i=/(em|rem|px|cm|mm|in|pt|pc)?$/,a=/(dpi|dpcm|dppx)?$/;function l(e){return e.split(",").map((function(e){var t=(e=e.trim()).match(r),n=t[1],i=t[2],a=t[3]||"",l={};return l.inverse=!!n&&"not"===n.toLowerCase(),l.type=i?i.toLowerCase():"all",a=a.match(/\([^\)]+\)/g)||[],l.expressions=a.map((function(e){var t=e.match(o),n=t[1].toLowerCase().match(c);return{modifier:n[1],feature:n[2],value:t[2]}})),l}))}function s(e){var t,n=Number(e);return n||(n=(t=e.match(/^(\d+)\s*\/\s*(\d+)$/))[1]/t[2]),n}function u(e){var t=parseFloat(e);switch(String(e).match(a)[1]){case"dpcm":return t/2.54;case"dppx":return 96*t;default:return t}}function d(e){var t=parseFloat(e);switch(String(e).match(i)[1]){case"em":case"rem":return 16*t;case"cm":return 96*t/2.54;case"mm":return 96*t/2.54/10;case"in":return 96*t;case"pt":return 72*t;case"pc":return 72*t/12;default:return t}}},function(e,t){var n=e.exports=function(e){return new r(e)};function r(e){this.value=e}function o(e,t,n){var r=[],o=[],a=!0;return function e(d){var b=n?c(d):d,f={},p=!0,m={node:b,node_:d,path:[].concat(r),parent:o[o.length-1],parents:o,key:r.slice(-1)[0],isRoot:0===r.length,level:r.length,circular:null,update:function(e,t){m.isRoot||(m.parent.node[m.key]=e),m.node=e,t&&(p=!1)},delete:function(e){delete m.parent.node[m.key],e&&(p=!1)},remove:function(e){l(m.parent.node)?m.parent.node.splice(m.key,1):delete m.parent.node[m.key],e&&(p=!1)},keys:null,before:function(e){f.before=e},after:function(e){f.after=e},pre:function(e){f.pre=e},post:function(e){f.post=e},stop:function(){a=!1},block:function(){p=!1}};if(!a)return m;function v(){if("object"==typeof m.node&&null!==m.node){m.keys&&m.node_===m.node||(m.keys=i(m.node)),m.isLeaf=0==m.keys.length;for(var e=0;e=0||(o[n]=e[n]);return o}(e,["children","in"]),i=r.default.Children.toArray(t),a=i[0],l=i[1];return delete o.onEnter,delete o.onEntering,delete o.onEntered,delete o.onExit,delete o.onExiting,delete o.onExited,r.default.createElement(c.default,o,n?r.default.cloneElement(a,{key:"first",onEnter:this.handleEnter,onEntering:this.handleEntering,onEntered:this.handleEntered}):r.default.cloneElement(l,{key:"second",onEnter:this.handleExit,onEntering:this.handleExiting,onEntered:this.handleExited}))},i}(r.default.Component);a.propTypes={};var l=a;t.default=l,e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.getChildMapping=o,t.mergeChildMappings=c,t.getInitialChildMapping=function(e,t){return o(e.children,(function(n){return(0,r.cloneElement)(n,{onExited:t.bind(null,n),in:!0,appear:i(n,"appear",e),enter:i(n,"enter",e),exit:i(n,"exit",e)})}))},t.getNextChildMapping=function(e,t,n){var a=o(e.children),l=c(t,a);return Object.keys(l).forEach((function(o){var c=l[o];if((0,r.isValidElement)(c)){var s=o in t,u=o in a,d=t[o],b=(0,r.isValidElement)(d)&&!d.props.in;!u||s&&!b?u||!s||b?u&&s&&(0,r.isValidElement)(d)&&(l[o]=(0,r.cloneElement)(c,{onExited:n.bind(null,c),in:d.props.in,exit:i(c,"exit",e),enter:i(c,"enter",e)})):l[o]=(0,r.cloneElement)(c,{in:!1}):l[o]=(0,r.cloneElement)(c,{onExited:n.bind(null,c),in:!0,exit:i(c,"exit",e),enter:i(c,"enter",e)})}})),l};var r=n(13);function o(e,t){var n=Object.create(null);return e&&r.Children.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&(0,r.isValidElement)(e)?t(e):e}(e)})),n}function c(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,o=Object.create(null),c=[];for(var i in e)i in t?c.length&&(o[i]=c,c=[]):c.push(i);var a={};for(var l in t){if(o[l])for(r=0;re.length?n:e})),s.value=e.join(d)}else s.value=e.join(n.slice(a,a+s.count));a+=s.count,s.added||(l+=s.count)}}var b=t[i-1];return i>1&&"string"==typeof b.value&&(b.added||b.removed)&&e.equals("",b.value)&&(t[i-2].value+=b.value,t.pop()),t}function c(e){return{newPos:e.newPos,components:e.components.slice(0)}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r,r.prototype={diff:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.callback;"function"==typeof n&&(r=n,n={}),this.options=n;var i=this;function a(e){return r?(setTimeout((function(){r(void 0,e)}),0),!0):e}e=this.castInput(e),t=this.castInput(t),e=this.removeEmpty(this.tokenize(e));var l=(t=this.removeEmpty(this.tokenize(t))).length,s=e.length,u=1,d=l+s,b=[{newPos:-1,components:[]}],f=this.extractCommon(b[0],t,e,0);if(b[0].newPos+1>=l&&f+1>=s)return a([{value:this.join(t),count:t.length}]);function p(){for(var n=-1*u;n<=u;n+=2){var r=void 0,d=b[n-1],f=b[n+1],p=(f?f.newPos:0)-n;d&&(b[n-1]=void 0);var m=d&&d.newPos+1=l&&p+1>=s)return a(o(i,r.components,t,e,i.useLongestToken));b[n]=r}else b[n]=void 0}u++}if(r)!function e(){setTimeout((function(){if(u>d)return r();p()||e()}),0)}();else for(;u<=d;){var m=p();if(m)return m}},pushComponent:function(e,t,n){var r=e[e.length-1];r&&r.added===t&&r.removed===n?e[e.length-1]={count:r.count+1,added:t,removed:n}:e.push({count:1,added:t,removed:n})},extractCommon:function(e,t,n,r){for(var o=t.length,c=n.length,i=e.newPos,a=i-r,l=0;i+11&&void 0!==arguments[1])||arguments[1],r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return t=Array.isArray(e)?e:!0===e?R:[],!r||!0===e&&!n?f.without.apply(void 0,[t].concat(A)):t}var L=Object(u.createContext)({}),F=L.Provider,V=Object(p.createHigherOrderComponent)((function(e){return function(t){var n=Object(u.useContext)(L).isEmbedButton,r=t.name,o=n?[]:M(Object(c.getBlockSupport)(r,"align"),Object(c.hasBlockSupport)(r,"alignWide",!0));return[o.length>0&&t.isSelected&&Object(u.createElement)(O.a,{key:"align-controls"},Object(u.createElement)(T,{value:t.attributes.align,onChange:function(e){var n,r;e||(null===(n=Object(c.getBlockType)(t.name).attributes)||void 0===n||null===(r=n.align)||void 0===r?void 0:r.default)&&(e="");t.setAttributes({align:e})},controls:o})),Object(u.createElement)(e,Object(l.a)({key:"edit"},t))]}}),"withToolbarControls"),H=Object(p.createHigherOrderComponent)((function(e){return function(t){var n=t.name,r=t.attributes.align,o=Object(v.useSelect)((function(e){return!!e("core/block-editor").getSettings().alignWide}),[]);if(void 0===r)return Object(u.createElement)(e,t);var i=M(Object(c.getBlockSupport)(n,"align"),Object(c.hasBlockSupport)(n,"alignWide",!0),o),a=t.wrapperProps;return i.includes(r)&&(a=D(D({},a),{},{"data-align":r})),Object(u.createElement)(e,Object(l.a)({},t,{wrapperProps:a}))}}));Object(m.addFilter)("blocks.registerBlockType","core/align/addAttribute",(function(e){return Object(f.has)(e.attributes,["align","type"])||Object(c.hasBlockSupport)(e,"align")&&(e.attributes=D(D({},e.attributes),{},{align:{type:"string",enum:[].concat(R,[""])}})),e})),Object(m.addFilter)("editor.BlockListBlock","core/editor/align/with-data-align",H),Object(m.addFilter)("editor.BlockEdit","core/editor/align/with-toolbar-controls",V),Object(m.addFilter)("blocks.getSaveContent.extraProps","core/align/addAssignedAlign",(function(e,t,n){var r=n.align;return M(Object(c.getBlockSupport)(t,"align"),Object(c.hasBlockSupport)(t,"alignWide",!0)).includes(r)&&(e.className=b()("align".concat(r),e.className)),e}));var z=n(80),U=Object(h.createSlotFill)("InspectorAdvancedControls"),G=U.Fill,K=U.Slot;function W(e){var t=e.children;return Object(z.b)().isSelected?Object(u.createElement)(G,null,t):null}W.slotName="InspectorAdvancedControls",W.Slot=K;var q=W;function $(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Y(e){for(var t=1;t");var t=Object(c.parseWithAttributeSchema)(e,{type:"string",source:"attribute",selector:"[data-custom-class-name] > *",attribute:"class"});return t?t.trim().split(/\s+/):[]}Object(m.addFilter)("blocks.registerBlockType","core/custom-class-name/attribute",(function(e){return Object(c.hasBlockSupport)(e,"customClassName",!0)&&(e.attributes=J(J({},e.attributes),{},{className:{type:"string"}})),e})),Object(m.addFilter)("editor.BlockEdit","core/editor/custom-class-name/with-inspector-control",ee),Object(m.addFilter)("blocks.getSaveContent.extraProps","core/custom-class-name/save-props",(function(e,t,n){return Object(c.hasBlockSupport)(t,"customClassName",!0)&&n.className&&(e.className=b()(e.className,n.className)),e})),Object(m.addFilter)("blocks.getBlockAttributes","core/custom-class-name/addParsedDifference",(function(e,t,n){if(Object(c.hasBlockSupport)(t,"customClassName",!0)){var r=Object(f.omit)(e,["className"]),o=Object(c.getSaveContent)(t,r),i=te(o),a=te(n),l=Object(f.difference)(a,i);l.length?e.className=l.join(" "):o&&delete e.className}return e}));var ne=n(17);Object(m.addFilter)("blocks.getSaveContent.extraProps","core/generated-class-name/save-props",(function(e,t){return Object(c.hasBlockSupport)(t,"className",!0)&&("string"==typeof e.className?e.className=Object(f.uniq)([Object(c.getBlockDefaultClassName)(t.name)].concat(Object(ne.a)(e.className.split(" ")))).join(" ").trim():e.className=Object(c.getBlockDefaultClassName)(t.name)),e}));var re=n(12),oe=n(148),ce=n(66),ie=n.n(ce),ae=function(e,t,n){if(t){var r=Object(f.find)(e,{slug:t});if(r)return r}return{color:n}},le=function(e,t){return Object(f.find)(e,{color:t})};function se(e,t){if(e&&t)return"has-".concat(Object(f.kebabCase)(t),"-").concat(e)}var ue={"color.palette":function(e){return void 0===e.colors?void 0:e.colors},"color.gradients":function(e){return void 0===e.gradients?void 0:e.gradients},"color.custom":function(e){return void 0===e.disableCustomColors?void 0:!e.disableCustomColors},"color.customGradient":function(e){return void 0===e.disableCustomGradients?void 0:!e.disableCustomGradients},"typography.fontSizes":function(e){return void 0===e.fontSizes?void 0:e.fontSizes},"typography.customFontSize":function(e){return void 0===e.disableCustomFontSizes?void 0:!e.disableCustomFontSizes},"typography.customLineHeight":function(e){return e.enableCustomLineHeight},"spacing.units":function(e){if(void 0!==e.enableCustomUnits)return!0===e.enableCustomUnits?["px","em","rem","vh","vw"]:e.enableCustomUnits}};function de(e){var t=Object(z.b)().name;return Object(v.useSelect)((function(n){var r,o=n("core/block-editor").getSettings(),c="__experimentalFeatures.global.".concat(e),i="__experimentalFeatures.".concat(t,".").concat(e),a=null!==(r=Object(f.get)(o,i))&&void 0!==r?r:Object(f.get)(o,c);if(void 0!==a)return a;var l=ue[e]?ue[e](o):void 0;return void 0!==l?l:"typography.dropCap"===e||void 0}),[t,e])}var be=[];function fe(e){if(e)return"has-".concat(e,"-gradient-background")}function pe(e,t){var n=Object(f.find)(e,["slug",t]);return n&&n.gradient}function me(e,t){return Object(f.find)(e,["gradient",t])}function ve(e,t){var n=me(e,t);return n&&n.slug}function Oe(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.gradientAttribute,n=void 0===t?"gradient":t,r=e.customGradientAttribute,o=void 0===r?"customGradient":r,c=Object(z.b)(),i=c.clientId,a=de("color.gradients")||be,l=Object(v.useSelect)((function(e){var t=(0,e("core/block-editor").getBlockAttributes)(i);return{customGradient:t[o],gradient:t[n]}}),[i,n,o]),d=l.gradient,b=l.customGradient,f=Object(v.useDispatch)("core/block-editor"),p=f.updateBlockAttributes,m=Object(u.useCallback)((function(e){var t,r,c=ve(a,e);c?p(i,(r={},Object(s.a)(r,n,c),Object(s.a)(r,o,void 0),r)):p(i,(t={},Object(s.a)(t,n,void 0),Object(s.a)(t,o,e),t))}),[a,i,p]),O=fe(d);return{gradientClass:O,gradientValue:d?pe(a,d):b,setGradient:m}}var ge=function e(t){if(!Object(f.isObject)(t))return t;var n=Object(f.pickBy)(Object(f.mapValues)(t,e),f.identity);return Object(f.isEqual)(n,{})?void 0:n},he=n(14);function je(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ke(e){for(var t=1;t=24?"large":"small"})?null:Object(u.createElement)(Fe,{backgroundColor:t,textColor:i,tinyBackgroundColor:a,tinyTextColor:l})},He=n(170),ze=Object(h.createSlotFill)("InspectorControls"),Ue=ze.Fill,Ge=ze.Slot;function Ke(e){var t=e.children;return Object(He.a)()?Object(u.createElement)(Ue,null,t):null}Ke.Slot=Ge;var We=Ke;function qe(e){return document.getElementById("block-"+e)}function $e(e,t){return t.closest(".block-editor-block-list__block")===e}function Ye(e){for(;e&&e.nodeType!==e.ELEMENT_NODE;)e=e.parentNode;if(e){var t=e.closest(".block-editor-block-list__block");if(t)return t.id.slice("block-".length)}}function Xe(e){return e.ownerDocument.defaultView.getComputedStyle(e)}function Qe(e){var t=e.settings,n=e.clientId,r=e.enableContrastChecking,o=void 0===r||r,c=Object(u.useState)(),i=Object(re.a)(c,2),a=i[0],l=i[1],s=Object(u.useState)(),d=Object(re.a)(s,2),b=d[0],f=d[1];return Object(u.useEffect)((function(){if(o){var e=qe(n);if(e){f(Xe(e).color);for(var t=e,r=Xe(t).backgroundColor;"rgba(0, 0, 0, 0)"===r&&t.parentNode&&t.parentNode.nodeType===t.parentNode.ELEMENT_NODE;)r=Xe(t=t.parentNode).backgroundColor;l(r)}}})),Object(u.createElement)(We,null,Object(u.createElement)(Me,{title:Object(g.__)("Color settings"),initialOpen:!1,settings:t},o&&Object(u.createElement)(Ve,{backgroundColor:a,textColor:b})))}function Ze(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Je(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.name,n=!de("typography.customLineHeight");return!Object(c.hasBlockSupport)(t,"lineHeight")||n}var mt=n(156),vt=n.n(mt),Ot=function(e,t,n){if(t){var r=Object(f.find)(e,{slug:t});if(r)return r}return{size:n}};function gt(e,t){var n=Object(f.find)(e,{size:t});return n||{size:t}}function ht(e){if(e)return"has-".concat(Object(f.kebabCase)(e),"-font-size")}var jt=function(e){var t=de("typography.fontSizes"),n=!de("typography.customFontSize");return Object(u.createElement)(h.FontSizePicker,Object(l.a)({},e,{fontSizes:t,disableCustomFontSizes:n}))};function kt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function yt(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.name,n=de("typography.fontSizes"),r=!!(null==n?void 0:n.length);return!Object(c.hasBlockSupport)(t,"fontSize")||!r}var St=Object(p.createHigherOrderComponent)((function(e){return function(t){var n,r=de("typography.fontSizes"),o=t.name,i=t.attributes,a=i.fontSize,l=i.style,s=t.wrapperProps,d=yt({},t);if(Object(c.hasBlockSupport)(o,"fontSize")&&a&&!(null==l||null===(n=l.typography)||void 0===n?void 0:n.fontSize)){var b,f=Ot(r,a,null==l||null===(b=l.typography)||void 0===b?void 0:b.fontSize).size;d.wrapperProps=yt(yt({},s),{},{style:yt({fontSize:f},null==s?void 0:s.style)})}return Object(u.createElement)(e,d)}}),"withFontSizeInlineStyles");Object(m.addFilter)("blocks.registerBlockType","core/font/addAttribute",(function(e){return Object(c.hasBlockSupport)(e,"fontSize")?(e.attributes.fontSize||Object.assign(e.attributes,{fontSize:{type:"string"}}),e):e})),Object(m.addFilter)("blocks.getSaveContent.extraProps","core/font/addSaveProps",_t),Object(m.addFilter)("blocks.registerBlockType","core/font/addEditProps",(function(e){if(!Object(c.hasBlockSupport)(e,"fontSize"))return e;var t=e.getEditWrapperProps;return e.getEditWrapperProps=function(n){var r={};return t&&(r=t(n)),_t(r,e,n)},e})),Object(m.addFilter)("editor.BlockListBlock","core/font-size/with-font-size-inline-styles",St);var wt=["lineHeight","fontSize"];function It(e){var t=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=[Ct(e),pt(e)];return t.filter(Boolean).length===t.length}(e),n=Bt(e.name);return t||!n?null:Object(u.createElement)(We,null,Object(u.createElement)(h.PanelBody,{title:Object(g.__)("Typography")},Object(u.createElement)(Et,e),Object(u.createElement)(ft,e)))}var Bt=function(e){return"web"===u.Platform.OS&&wt.some((function(t){return Object(c.hasBlockSupport)(e,t)}))};function xt(e){var t=e.units,n=Object(he.a)(e,["units"]),r=Pt(t);return Object(u.createElement)(h.__experimentalUnitControl,Object(l.a)({units:r},n))}function Pt(e){var t=de("spacing.units"),n=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return t.filter((function(t){return e.includes(t.value)}))}(t||[],e);return 0!==n.length&&n}function Tt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Nt(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t={};return Object.entries(c.__EXPERIMENTAL_STYLE_PROPERTY).forEach((function(n){var r=Object(oe.a)(n),o=r[0],c=r.slice(1),i=Object(re.a)(c,1)[0];Object(f.has)(e,i)&&(t[o]=Vt(Object(f.get)(e,i)))})),t}(r)),e.style),e}var zt=Object(p.createHigherOrderComponent)((function(e){return function(t){var n=t.name,r=Object(c.hasBlockSupport)(n,"spacing");return[Object(u.createElement)(It,Object(l.a)({key:"typography"},t)),Object(u.createElement)(at,Object(l.a)({key:"colors"},t)),Object(u.createElement)(e,Object(l.a)({key:"edit"},t)),r&&Object(u.createElement)(Rt,{key:"spacing"},Object(u.createElement)(Dt,t))]}}),"withToolbarControls");Object(m.addFilter)("blocks.registerBlockType","core/style/addAttribute",(function(e){return Ft(e)?(e.attributes.style||Object.assign(e.attributes,{style:{type:"object"}}),e):e})),Object(m.addFilter)("blocks.getSaveContent.extraProps","core/style/addSaveProps",Ht),Object(m.addFilter)("blocks.registerBlockType","core/style/addEditProps",(function(e){if(!Ft(e))return e;var t=e.getEditWrapperProps;return e.getEditWrapperProps=function(n){var r={};return t&&(r=t(n)),Ht(r,e,n)},e})),Object(m.addFilter)("editor.BlockEdit","core/style/with-block-controls",zt);var Ut=n(21),Gt=n(22),Kt=n(16),Wt=n(23),qt=n(24),$t=n(19);function Yt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object($t.a)(e);if(t){var o=Object($t.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(qt.a)(this,n)}}function Xt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Qt(e){for(var t=1;t=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var c,i=!0,a=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return i=e.done,e},e:function(e){a=!0,c=e},f:function(){try{i||null==n.return||n.return()}finally{if(a)throw c}}}}function fn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&void 0!==arguments[1]?arguments[1]:{panelTitle:Object(g.__)("Color settings")},n=t.panelTitle,r=void 0===n?Object(g.__)("Color settings"):n,o=t.colorPanelProps,c=t.contrastCheckers,i=t.panelChildren,a=t.colorDetector,l=(a=void 0===a?{}:a).targetRef,d=a.backgroundColorTargetRef,p=void 0===d?l:d,m=a.textColorTargetRef,O=void 0===m?l:m,h=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],j=Object(z.b)(),k=j.clientId,y=de("color.palette")||On,_=Object(v.useSelect)((function(e){return{attributes:(0,e("core/block-editor").getBlockAttributes)(k)}}),[k]),E=_.attributes,C=Object(v.useDispatch)("core/block-editor"),S=C.updateBlockAttributes,w=Object(u.useCallback)((function(e){return S(k,e)}),[S,k]),I=Object(u.useMemo)((function(){return cn()((function(e,t,n,r,o,c){return function(i){var a,l=i.children,d=i.className,p=void 0===d?"":d,m=i.style,v=void 0===m?{}:m,O={};r?O=Object(s.a)({},t,o):c&&(O=Object(s.a)({},t,c));var g={className:b()(p,(a={},Object(s.a)(a,"has-".concat(Object(f.kebabCase)(r),"-").concat(Object(f.kebabCase)(t)),r),Object(s.a)(a,n||"has-".concat(Object(f.kebabCase)(e)),r||c),a)),style:mn(mn({},O),v)};return Object(f.isFunction)(l)?l(g):u.Children.map(l,(function(e){return Object(u.cloneElement)(e,{className:b()(e.props.className,g.className),style:mn(mn({},g.style),e.props.style||{})})}))}}),{maxSize:e.length})}),[e.length]),B=Object(u.useMemo)((function(){return cn()((function(e,t){return function(n){var r=t.find((function(e){return e.color===n}));w(Object(s.a)({},r?Object(f.camelCase)("custom ".concat(e)):e,void 0)),w(Object(s.a)({},r?e:Object(f.camelCase)("custom ".concat(e)),r?r.slug:n))}}),{maxSize:e.length})}),[w,e.length]),x=Object(u.useState)(),P=Object(re.a)(x,2),T=P[0],N=P[1],D=Object(u.useState)(),R=Object(re.a)(D,2),A=R[0],M=R[1];return Object(u.useEffect)((function(){if(c){var e,t=!1,n=!1,r=bn(Object(f.castArray)(c));try{for(r.s();!(e=r.n()).done;){var o=e.value,i=o.backgroundColor,a=o.textColor;if(t||(t=!0===i),n||(n=!0===a),t&&n)break}}catch(e){r.e(e)}finally{r.f()}if(n&&M(vn(O.current).color),t){for(var l=p.current,s=vn(l).backgroundColor;"rgba(0, 0, 0, 0)"===s&&l.parentNode&&l.parentNode.nodeType===l.parentNode.ELEMENT_NODE;)s=vn(l=l.parentNode).backgroundColor;N(s)}}}),[e.reduce((function(e,t){return"".concat(e," | ").concat(E[t.name]," | ").concat(E[Object(f.camelCase)("custom ".concat(t.name))])}),"")].concat(Object(ne.a)(h))),Object(u.useMemo)((function(){var t={},n=e.reduce((function(e,n){"string"==typeof n&&(n={name:n});var r=mn(mn({},n),{},{color:E[n.name]}),o=r.name,c=r.property,i=void 0===c?o:c,a=r.className,l=r.panelLabel,s=void 0===l?n.label||gn[o]||Object(f.startCase)(o):l,u=r.componentName,d=void 0===u?Object(f.startCase)(o).replace(/\s/g,""):u,b=r.color,p=void 0===b?n.color:b,m=r.colors,v=void 0===m?y:m,O=E[Object(f.camelCase)("custom ".concat(o))],g=O?void 0:v.find((function(e){return e.slug===p}));return e[d]=I(o,i,a,p,g&&g.color,O),e[d].displayName=d,e[d].color=O||g&&g.color,e[d].slug=p,e[d].setColor=B(o,v),t[d]={value:g?g.color:E[Object(f.camelCase)("custom ".concat(o))],onChange:e[d].setColor,label:s,colors:v},v||delete t[d].colors,e}),{}),a={title:r,initialOpen:!1,colorSettings:t,colorPanelProps:o,contrastCheckers:c,detectedBackgroundColor:T,detectedColor:A,panelChildren:i};return mn(mn({},n),{},{ColorPanel:Object(u.createElement)(dn,a),InspectorControlsColorPanel:Object(u.createElement)(hn,a)})}),[E,w,A,T].concat(Object(ne.a)(h)))}function kn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function yn(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:"";return e=(e=(e=Object(f.deburr)(e)).replace(/^\//,"")).toLowerCase()}var Vn=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return Object(f.words)(Fn(e))},Hn=function(e,t){return Object(f.differenceWith)(e,Vn(t),(function(e,t){return t.includes(e)}))},zn=function(e,t,n,r){return 0===Vn(r).length?e:Un(e,r,{getCategory:function(e){var n;return null===(n=Object(f.find)(t,{slug:e.category}))||void 0===n?void 0:n.title},getCollection:function(e){var t;return null===(t=n[e.name.split("/")[0]])||void 0===t?void 0:t.title},getVariations:function(e){var t=e.variations,n=void 0===t?[]:t;return Array.from(n.reduce((function(e,t){var n=t.title,r=t.keywords,o=void 0===r?[]:r;return e.add(n),o.forEach((function(t){return e.add(t)})),e}),new Set))}})},Un=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=Vn(t);if(0===r.length)return e;var o=e.map((function(e){return[e,Gn(e,t,n)]})).filter((function(e){return Object(re.a)(e,2)[1]>0}));return o.sort((function(e,t){var n=Object(re.a)(e,2)[1];return Object(re.a)(t,2)[1]-n})),o.map((function(e){return Object(re.a)(e,1)[0]}))};function Gn(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.getName,o=void 0===r?Dn:r,c=n.getTitle,i=void 0===c?Rn:c,a=n.getKeywords,l=void 0===a?An:a,s=n.getCategory,u=void 0===s?Mn:s,d=n.getCollection,b=void 0===d?Ln:d,p=o(e),m=i(e),v=l(e),O=u(e),g=b(e),h=Fn(t),j=Fn(m),k=0;if(h===j)k+=30;else if(j.startsWith(h))k+=20;else{var y=[p,m].concat(Object(ne.a)(v),[O,g]).join(" "),_=Object(f.words)(h),E=Hn(_,y);0===E.length&&(k+=10)}return 0!==k&&p.startsWith("core/")&&k++,k}var Kn=function(e,t){var n=Object(v.useSelect)((function(t){var n=t("core/block-editor").getInserterItems,r=t("core/blocks"),o=r.getCategories,c=r.getCollections;return{categories:o(),collections:c(),items:n(e)}}),[e]),r=n.categories,o=n.collections;return[n.items,r,o,function(e){var n=e.name,r=e.initialAttributes,o=e.innerBlocks,i=Object(c.createBlock)(n,r,Object(c.createBlocksFromInnerBlocksTemplate)(o));t(i)}]},Wn=n(208);function qn(e){var t,n=e.icon,r=e.showColors,o=void 0!==r&&r,c=e.className;"block-default"===(null===(t=n)||void 0===t?void 0:t.src)&&(n={src:Wn.a});var i=Object(u.createElement)(h.Icon,{icon:n&&n.src?n.src:n}),a=o?{backgroundColor:n&&n.background,color:n&&n.foreground}:{};return Object(u.createElement)("span",{style:a,className:b()("block-editor-block-icon",c,{"has-colors":o})},i)}var $n={name:"blocks",className:"block-editor-autocompleters__block",triggerPrefix:"/",useItems:function(e){var t=Object(v.useSelect)((function(e){var t=e("core/block-editor"),n=t.getSelectedBlockClientId,r=t.getBlockName,o=t.getBlockInsertionPoint,c=n();return{selectedBlockName:c?r(c):null,rootClientId:o().rootClientId}}),[]),n=t.rootClientId,r=t.selectedBlockName,o=Kn(n,f.noop),c=Object(re.a)(o,3),i=c[0],a=c[1],l=c[2],s=Object(u.useMemo)((function(){return(e.trim()?zn(i,a,l,e):Object(f.orderBy)(i,["frecency"],["desc"])).filter((function(e){return e.name!==r})).slice(0,9)}),[e,r,i,a,l]);return[Object(u.useMemo)((function(){return s.map((function(e){var t=e.title,n=e.icon,r=e.isDisabled;return{key:"block-".concat(e.id),value:e,label:Object(u.createElement)(u.Fragment,null,Object(u.createElement)(qn,{key:"icon",icon:n,showColors:!0}),t),isDisabled:r}}))}),[s])]},allowContext:function(e,t){return!(/\S/.test(e)||/\S/.test(t))},getOptionCompletion:function(e){var t=e.name,n=e.initialAttributes,r=e.innerBlocks;return{action:"replace",value:Object(c.createBlock)(t,n,Object(c.createBlocksFromInnerBlocksTemplate)(r))}}},Yn=[];var Xn=function(e){var t=Object(z.b)().name,n=e.completers,r=void 0===n?Yn:n;return r=Object(u.useMemo)((function(){var e=r;return t===Object(c.getDefaultBlockName)()&&(e=e.concat([$n])),Object(m.hasFilter)("editor.Autocomplete.completers")&&(e===r&&(e=e.map(f.clone)),e=Object(m.applyFilters)("editor.Autocomplete.completers",e,t)),e}),[r,t]),Object(u.createElement)(h.Autocomplete,Object(l.a)({},e,{completers:r}))};var Qn=function(e){var t=e.label,n=void 0===t?Object(g.__)("Change matrix alignment"):t,r=e.onChange,o=void 0===r?f.noop:r,c=e.value,i=void 0===c?"center":c,a=Object(u.createElement)(h.__experimentalAlignmentMatrixControl.Icon,{value:i}),l="block-editor-block-alignment-matrix-toolbar",s="".concat(l,"__popover");return Object(u.createElement)(h.Dropdown,{position:"bottom right",className:l,popoverProps:{className:s,isAlternate:!0},renderToggle:function(e){var t=e.onToggle,r=e.isOpen;return Object(u.createElement)(h.ToolbarGroup,null,Object(u.createElement)(h.ToolbarButton,{onClick:t,"aria-haspopup":"true","aria-expanded":r,onKeyDown:function(e){r||e.keyCode!==st.DOWN||(e.preventDefault(),e.stopPropagation(),t())},label:n,icon:a,showTooltip:!0}))},renderContent:function(){return Object(u.createElement)(h.__experimentalAlignmentMatrixControl,{hasFocusBorder:!1,onChange:o,value:i})}})};function Zn(e){var t=e.clientId,n=Object(v.useSelect)((function(e){if(!t)return{};var n=e("core/block-editor"),r=n.getBlockName;return{attributes:(0,n.getBlockAttributes)(t),name:r(t)}}),[t]),r=n.attributes,o=n.name;if(!o)return null;var i=Object(c.getBlockType)(o);if(!i)return null;var a=i.title,l=Object(c.__experimentalGetBlockLabel)(i,r);return l!==a?"".concat(a,": ").concat(Object(f.truncate)(l,{length:15})):a}var Jn=function(){var e=Object(v.useDispatch)("core/block-editor"),t=e.selectBlock,n=e.clearSelectedBlock,r=Object(v.useSelect)((function(e){var t=e("core/block-editor"),n=t.getSelectionStart,r=t.getSelectedBlockClientId,o=t.getBlockParents,c=r();return{parents:o(c),clientId:c,hasSelection:!!n().clientId}}),[]),o=r.clientId,c=r.parents,i=r.hasSelection;return Object(u.createElement)("ul",{className:"block-editor-block-breadcrumb",role:"list","aria-label":Object(g.__)("Block breadcrumb")},Object(u.createElement)("li",{className:i?void 0:"block-editor-block-breadcrumb__current","aria-current":i?void 0:"true"},i&&Object(u.createElement)(h.Button,{className:"block-editor-block-breadcrumb__button",isTertiary:!0,onClick:n},Object(g.__)("Document")),!i&&Object(g.__)("Document")),c.map((function(e){return Object(u.createElement)("li",{key:e},Object(u.createElement)(h.Button,{className:"block-editor-block-breadcrumb__button",isTertiary:!0,onClick:function(){return t(e)}},Object(u.createElement)(Zn,{clientId:e})))})),!!o&&Object(u.createElement)("li",{className:"block-editor-block-breadcrumb__current","aria-current":"true"},Object(u.createElement)(Zn,{clientId:o})))};function er(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function tr(e){for(var t=1;t1||Object(c.hasBlockSupport)(o,"lightBlockWrapper",!1))return Object(u.createElement)(s,Object(l.a)({},e,{context:a}));var d=Object(c.hasBlockSupport)(o,"className",!0)?Object(c.getBlockDefaultClassName)(r):null,p=b()(d,n.className);return Object(u.createElement)(s,Object(l.a)({},e,{context:a,className:p}))}));function ur(e){var t={name:e.name,isSelected:e.isSelected,clientId:e.clientId,onFocus:e.onFocus,onCaretVerticalPositionChange:e.onCaretVerticalPositionChange};return Object(u.createElement)(z.a,{value:Object(u.useMemo)((function(){return t}),Object.values(t))},Object(u.createElement)(sr,e))}var dr=Object(h.createSlotFill)("BlockFormatControls"),br=dr.Fill,fr=dr.Slot;var pr=function(e){return Object(z.b)().isSelected?Object(u.createElement)(br,null,(function(t){var n=Object(f.isEmpty)(t)?null:t;return Object(u.createElement)(h.__experimentalToolbarContext.Provider,{value:n},e.children)})):null};pr.Slot=function(e){var t=Object(u.useContext)(h.__experimentalToolbarContext);return Object(u.createElement)(fr,Object(l.a)({},e,{fillProps:t}))};var mr=pr,vr=n(20),Or=n.n(vr),gr=n(45),hr=n(316),jr=n(115),kr=n(29),yr=function(e){return e+1},_r=function(e){return{top:e.offsetTop,left:e.offsetLeft}};var Er=function(e,t,n,r,o){var c=Object(p.useReducedMotion)()||!r,i=Object(u.useReducer)(yr,0),a=Object(re.a)(i,2),l=a[0],s=a[1],d=Object(u.useReducer)(yr,0),b=Object(re.a)(d,2),f=b[0],m=b[1],v=Object(u.useState)({x:0,y:0}),O=Object(re.a)(v,2),g=O[0],h=O[1],j=Object(u.useMemo)((function(){return e.current?_r(e.current):null}),[o]),k=Object(u.useMemo)((function(){if(!n||!e.current)return function(){};var t=Object(kr.getScrollContainer)(e.current);if(!t)return function(){};var r=e.current.getBoundingClientRect();return function(){var n=e.current.getBoundingClientRect().top-r.top;n&&(t.scrollTop+=n)}}),[o,n]);function y(n){var r=n.x,o=n.y;r=Math.round(r),o=Math.round(o),r===y.x&&o===y.y||(!function(n){var r=n.x,o=n.y;if(e.current){var c=0===r&&0===o;e.current.style.transformOrigin=c?"":"center",e.current.style.transform=c?"":"translate3d(".concat(r,"px,").concat(o,"px,0)"),e.current.style.zIndex=!t||c?"":"1",k()}}({x:r,y:o}),y.x=r,y.y=o)}Object(u.useLayoutEffect)((function(){l&&m()}),[l]),Object(u.useLayoutEffect)((function(){if(j)if(c)k();else{e.current.style.transform="";var t=_r(e.current);s(),h({x:Math.round(j.left-t.left),y:Math.round(j.top-t.top)})}}),[o]),y.x=0,y.y=0,Object(jr.useSpring)({from:{x:g.x,y:g.y},to:{x:0,y:0},reset:l!==f,config:{mass:5,tension:2e3,friction:200},immediate:c,onFrame:y})},Cr=Object(jr.animated)(h.__experimentalTreeGridRow);function Sr(e){var t=e.isSelected,n=e.position,r=e.level,o=e.rowCount,c=e.children,i=e.className,a=e.path,s=Object(he.a)(e,["isSelected","position","level","rowCount","children","className","path"]),d=Object(u.useRef)(null),f=a.join("_"),p=Er(d,t,!1,!0,f);return Object(u.createElement)(Cr,Object(l.a)({ref:d,style:p,className:b()("block-editor-block-navigation-leaf",i),level:r,positionInSet:n,setSize:o},s),c)}var wr=n(214),Ir=n(215),Br=n(314),xr=n(315);function Pr(e,t,n,r,o,c,i,a){var l=n+1,s=function(e){return"up"===e?"horizontal"===i?a?"right":"left":"up":"down"===e?"horizontal"===i?a?"left":"right":"down":null};if(e>1)return function(e,t,n,r,o){var c=t+1;if(o<0&&n)return Object(g.__)("Blocks cannot be moved up as they are already at the top");if(o>0&&r)return Object(g.__)("Blocks cannot be moved down as they are already at the bottom");if(o<0&&!n)return Object(g.sprintf)(Object(g._n)("Move %1$d block from position %2$d up by one place","Move %1$d blocks from position %2$d up by one place",e),e,c);if(o>0&&!r)return Object(g.sprintf)(Object(g._n)("Move %1$d block from position %2$d down by one place","Move %1$d blocks from position %2$d down by one place",e),e,c)}(e,n,r,o,c);if(r&&o)return Object(g.sprintf)(Object(g.__)("Block %s is the only block, and cannot be moved"),t);if(c>0&&!o){var u=s("down");if("down"===u)return Object(g.sprintf)(Object(g.__)("Move %1$s block from position %2$d down to position %3$d"),t,l,l+1);if("left"===u)return Object(g.sprintf)(Object(g.__)("Move %1$s block from position %2$d left to position %3$d"),t,l,l+1);if("right"===u)return Object(g.sprintf)(Object(g.__)("Move %1$s block from position %2$d right to position %3$d"),t,l,l+1)}if(c>0&&o){var d=s("down");if("down"===d)return Object(g.sprintf)(Object(g.__)("Block %1$s is at the end of the content and can’t be moved down"),t);if("left"===d)return Object(g.sprintf)(Object(g.__)("Block %1$s is at the end of the content and can’t be moved left"),t);if("right"===d)return Object(g.sprintf)(Object(g.__)("Block %1$s is at the end of the content and can’t be moved right"),t)}if(c<0&&!r){var b=s("up");if("up"===b)return Object(g.sprintf)(Object(g.__)("Move %1$s block from position %2$d up to position %3$d"),t,l,l-1);if("left"===b)return Object(g.sprintf)(Object(g.__)("Move %1$s block from position %2$d left to position %3$d"),t,l,l-1);if("right"===b)return Object(g.sprintf)(Object(g.__)("Move %1$s block from position %2$d right to position %3$d"),t,l,l-1)}if(c<0&&r){var f=s("up");if("up"===f)return Object(g.sprintf)(Object(g.__)("Block %1$s is at the beginning of the content and can’t be moved up"),t);if("left"===f)return Object(g.sprintf)(Object(g.__)("Block %1$s is at the beginning of the content and can’t be moved left"),t);if("right"===f)return Object(g.sprintf)(Object(g.__)("Block %1$s is at the beginning of the content and can’t be moved right"),t)}}var Tr=function(e,t,n){return"up"===e?"horizontal"===t?n?wr.a:Ir.a:Br.a:"down"===e?"horizontal"===t?n?Ir.a:wr.a:xr.a:null},Nr=function(e,t,n){return"up"===e?"horizontal"===t?n?Object(g.__)("Move right"):Object(g.__)("Move left"):Object(g.__)("Move up"):"down"===e?"horizontal"===t?n?Object(g.__)("Move left"):Object(g.__)("Move right"):Object(g.__)("Move down"):null},Dr=Object(u.forwardRef)((function(e,t){var n=e.clientIds,r=e.direction,o=e.orientation,i=Object(he.a)(e,["clientIds","direction","orientation"]),a=Object(p.useInstanceId)(Dr),s=Object(f.castArray)(n).length,d=Object(v.useSelect)((function(e){var t=e("core/block-editor"),i=t.getBlockIndex,a=t.getBlockRootClientId,l=t.getBlockOrder,s=t.getBlock,u=t.getSettings,d=t.getBlockListSettings,b=Object(f.castArray)(n),p=Object(f.first)(b),m=a(p),v=i(p,m),O=i(Object(f.last)(b),m),g=l(m),h=s(p),j=0===v,k=O===g.length-1,y=(d(m)||{}).orientation;return{blockType:h?Object(c.getBlockType)(h.name):null,isDisabled:"up"===r?j:k,rootClientId:m,firstIndex:v,isFirst:j,isLast:k,isRTL:u().isRTL,orientation:o||y}}),[n,r]),m=d.blockType,O=d.isDisabled,g=d.rootClientId,j=d.isFirst,k=d.isLast,y=d.firstIndex,_=d.isRTL,E=d.orientation,C=void 0===E?"vertical":E,S=Object(v.useDispatch)("core/block-editor"),w=S.moveBlocksDown,I=S.moveBlocksUp,B="up"===r?I:w,x="block-editor-block-mover-button__description-".concat(a);return Object(u.createElement)(u.Fragment,null,Object(u.createElement)(h.Button,Object(l.a)({ref:t,className:b()("block-editor-block-mover-button","is-".concat(r,"-button")),icon:Tr(r,C,_),label:Nr(r,C,_),"aria-describedby":x},i,{onClick:O?null:function(e){B(n,g),i.onClick&&i.onClick(e)},"aria-disabled":O})),Object(u.createElement)("span",{id:x,className:"block-editor-block-mover-button__description"},Pr(s,m&&m.title,y,j,k,"up"===r?-1:1,C,_)))})),Rr=Object(u.forwardRef)((function(e,t){return Object(u.createElement)(Dr,Object(l.a)({direction:"up",ref:t},e))})),Ar=Object(u.forwardRef)((function(e,t){return Object(u.createElement)(Dr,Object(l.a)({direction:"down",ref:t},e))}));function Mr(e){var t=e.level,n=e.isLastRow,r=e.terminatedLevels;return Object(f.times)(t-1,(function(e){var o=e+2,c=o===t;return Object(u.createElement)("div",{key:e,"aria-hidden":"true",className:b()("block-editor-block-navigator-descender-line",{"has-item":c,"is-last-row":n,"is-terminated":r.includes(o)})})}))}var Lr=Object(u.createContext)({__experimentalFeatures:!1}),Fr=function(){return Object(u.useContext)(Lr)},Vr=Object(u.createElement)(j.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(u.createElement)(j.Path,{d:"M11 13h2v-2h-2v2zm-6 0h2v-2H5v2zm12-2v2h2v-2h-2z"}));var Hr=function(e){var t=e.className,n=e.actions,r=e.children,o=e.secondaryActions;return Object(u.createElement)("div",{className:b()(t,"block-editor-warning")},Object(u.createElement)("div",{className:"block-editor-warning__contents"},Object(u.createElement)("p",{className:"block-editor-warning__message"},r),(u.Children.count(n)>0||o)&&Object(u.createElement)("div",{className:"block-editor-warning__actions"},u.Children.count(n)>0&&u.Children.map(n,(function(e,t){return Object(u.createElement)("span",{key:t,className:"block-editor-warning__action"},e)})),o&&Object(u.createElement)(h.DropdownMenu,{className:"block-editor-warning__secondary",icon:Vr,label:Object(g.__)("More options"),popoverProps:{position:"bottom left",className:"block-editor-warning__dropdown"},noIcons:!0},(function(){return Object(u.createElement)(h.MenuGroup,null,o.map((function(e,t){return Object(u.createElement)(h.MenuItem,{onClick:e.onClick,key:t},e.title)})))})))))},zr=n(279),Ur=function(e){var t=e.title,n=e.rawContent,r=e.renderedContent,o=e.action,c=e.actionText,i=e.className;return Object(u.createElement)("div",{className:i},Object(u.createElement)("div",{className:"block-editor-block-compare__content"},Object(u.createElement)("h2",{className:"block-editor-block-compare__heading"},t),Object(u.createElement)("div",{className:"block-editor-block-compare__html"},n),Object(u.createElement)("div",{className:"block-editor-block-compare__preview edit-post-visual-editor"},r)),Object(u.createElement)("div",{className:"block-editor-block-compare__action"},Object(u.createElement)(h.Button,{isSecondary:!0,tabIndex:"0",onClick:o},c)))};var Gr=function(e){var t,n,r,o,i=e.block,a=e.onKeep,l=e.onConvert,s=e.convertor,d=e.convertButtonText,p={rawContent:i.originalContent,renderedContent:Object(c.getSaveElement)(i.name,i.attributes)},m=(t=s(i),n=Object(f.castArray)(t),r=n.map((function(e){return Object(c.getSaveContent)(e.name,e.attributes,e.innerBlocks)})),o=n.map((function(e){return Object(c.getSaveElement)(e.name,e.attributes,e.innerBlocks)})),{rawContent:r.join(""),renderedContent:o}),v=function(e,t){return Object(zr.diffChars)(e,t).map((function(e,t){var n=b()({"block-editor-block-compare__added":e.added,"block-editor-block-compare__removed":e.removed});return Object(u.createElement)("span",{key:t,className:n},e.value)}))}(p.rawContent,m.rawContent);return Object(u.createElement)("div",{className:"block-editor-block-compare__wrapper"},Object(u.createElement)(Ur,{title:Object(g.__)("Current"),className:"block-editor-block-compare__current",action:a,actionText:Object(g.__)("Convert to HTML"),rawContent:p.rawContent,renderedContent:p.renderedContent}),Object(u.createElement)(Ur,{title:Object(g.__)("After Conversion"),className:"block-editor-block-compare__converted",action:l,actionText:d,rawContent:v,renderedContent:m.renderedContent}))};var Kr=function(e){return Object(c.rawHandler)({HTML:e.originalContent})},Wr=Object(p.compose)([Object(v.withSelect)((function(e,t){var n=t.clientId;return{block:e("core/block-editor").getBlock(n)}})),Object(v.withDispatch)((function(e,t){var n=t.block,r=e("core/block-editor").replaceBlock;return{convertToClassic:function(){r(n.clientId,function(e){return Object(c.createBlock)("core/freeform",{content:e.originalContent})}(n))},convertToHTML:function(){r(n.clientId,function(e){return Object(c.createBlock)("core/html",{content:e.originalContent})}(n))},convertToBlocks:function(){r(n.clientId,Kr(n))},attemptBlockRecovery:function(){var e,t,o,i;r(n.clientId,(t=(e=n).name,o=e.attributes,i=e.innerBlocks,Object(c.createBlock)(t,o,i)))}}}))])((function(e){var t=e.convertToHTML,n=e.convertToBlocks,r=e.convertToClassic,o=e.attemptBlockRecovery,i=e.block,a=!!Object(c.getBlockType)("core/html"),l=Object(u.useState)(!1),s=Object(re.a)(l,2),d=s[0],b=s[1],f=Object(u.useCallback)((function(){return b(!0)}),[]),p=Object(u.useCallback)((function(){return b(!1)}),[]),m=Object(u.useMemo)((function(){return[{title:Object(g._x)("Resolve","imperative verb"),onClick:f},a&&{title:Object(g.__)("Convert to HTML"),onClick:t},{title:Object(g.__)("Convert to Classic Block"),onClick:r}].filter(Boolean)}),[f,t,r]);return Object(u.createElement)(u.Fragment,null,Object(u.createElement)(Hr,{actions:[Object(u.createElement)(h.Button,{key:"recover",onClick:o,isPrimary:!0},Object(g.__)("Attempt Block Recovery"))],secondaryActions:m},Object(g.__)("This block contains unexpected or invalid content.")),d&&Object(u.createElement)(h.Modal,{title:Object(g.__)("Resolve Block"),onRequestClose:p,className:"block-editor-block-compare"},Object(u.createElement)(Gr,{block:i,onKeep:t,onConvert:n,convertor:Kr,convertButtonText:Object(g.__)("Convert to Blocks")})))})),qr=Object(u.createElement)(Hr,{className:"block-editor-block-list__block-crash-warning"},Object(g.__)("This block has encountered an error and cannot be previewed.")),$r=function(){return qr};function Yr(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object($t.a)(e);if(t){var o=Object($t.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(qt.a)(this,n)}}var Xr=function(e){Object(Wt.a)(n,e);var t=Yr(n);function n(){var e;return Object(Ut.a)(this,n),(e=t.apply(this,arguments)).state={hasError:!1},e}return Object(Gt.a)(n,[{key:"componentDidCatch",value:function(e){this.props.onError(e),this.setState({hasError:!0})}},{key:"render",value:function(){return this.state.hasError?null:this.props.children}}]),n}(u.Component),Qr=n(100),Zr=n.n(Qr);var Jr=function(e){var t=e.clientId,n=Object(u.useState)(""),r=Object(re.a)(n,2),o=r[0],i=r[1],a=Object(v.useSelect)((function(e){return e("core/block-editor").getBlock(t)}),[t]),l=Object(v.useDispatch)("core/block-editor").updateBlock;return Object(u.useEffect)((function(){i(Object(c.getBlockContent)(a))}),[a]),Object(u.createElement)(Zr.a,{className:"block-editor-block-list__block-html-textarea",value:o,onBlur:function(){var e=Object(c.getBlockType)(a.name),n=Object(c.getBlockAttributes)(e,o,a.attributes),r=o||Object(c.getSaveContent)(e,n),s=!o||Object(c.isValidBlockContent)(e,n,r);l(t,{attributes:n,originalContent:r,isValid:s}),o||i({content:r})},onChange:function(e){return i(e.target.value)}})},eo=n(36),to=n.n(eo);function no(e,t){for(var n="start"===t?"firstChild":"lastChild",r="start"===t?"nextSibling":"previousSibling";e[n];)for(e=e[n];e.nodeType===e.TEXT_NODE&&/^[ \t\n]*$/.test(e.data)&&e[r];)e=e[r];return e}function ro(e){var t=e("core/block-editor"),n=t.isSelectionEnabled,r=t.isMultiSelecting,o=t.getMultiSelectedBlockClientIds,c=t.hasMultiSelection,i=t.getBlockParents,a=t.getSelectedBlockClientId;return{isSelectionEnabled:n(),isMultiSelecting:r(),multiSelectedBlockClientIds:o(),hasMultiSelection:c(),getBlockParents:i,selectedBlockClientId:a()}}function oo(e,t){Array.from(e.querySelectorAll(".rich-text")).forEach((function(e){t?e.setAttribute("contenteditable",!0):e.removeAttribute("contenteditable")}))}var co=n(209),io=[Object(u.createInterpolateElement)(Object(g.__)("While writing, you can press / to quickly insert new blocks."),{kbd:Object(u.createElement)("kbd",null)}),Object(u.createInterpolateElement)(Object(g.__)("Indent a list by pressing space at the beginning of a line."),{kbd:Object(u.createElement)("kbd",null)}),Object(u.createInterpolateElement)(Object(g.__)("Outdent a list by pressing backspace at the beginning of a line."),{kbd:Object(u.createElement)("kbd",null)}),Object(g.__)("Drag files into the editor to automatically insert media blocks."),Object(g.__)("Change a block's type by pressing the block icon on the toolbar.")];var ao=function(){var e=Object(u.useState)(Math.floor(Math.random()*io.length)),t=Object(re.a)(e,1)[0];return Object(u.createElement)(h.Tip,null,io[t])},lo=n(159),so=n(141),uo=n(306);var bo=function e(t){var n=t.className,r=t.onChange,o=t.value,c=t.placeholder,i=Object(p.useInstanceId)(e),a=Object(u.useRef)();return Object(u.createElement)("div",{className:b()("block-editor-inserter__search",n)},Object(u.createElement)(h.VisuallyHidden,{as:"label",htmlFor:"block-editor-inserter__search-".concat(i)},c),Object(u.createElement)("input",{ref:a,className:"block-editor-inserter__search-input",id:"block-editor-inserter__search-".concat(i),type:"search",placeholder:c,autoFocus:!0,onChange:function(e){return r(e.target.value)},autoComplete:"off",value:o||""}),Object(u.createElement)("div",{className:"block-editor-inserter__search-icon"},!!o&&Object(u.createElement)(h.Button,{icon:lo.a,label:Object(g.__)("Reset search"),onClick:function(){r(""),a.current.focus()}}),!o&&Object(u.createElement)(so.a,{icon:uo.a})))};var fo=function(e){var t=e.blockType;return Object(u.createElement)("div",{className:"block-editor-block-card"},Object(u.createElement)(qn,{icon:t.icon,showColors:!0}),Object(u.createElement)("div",{className:"block-editor-block-card__content"},Object(u.createElement)("h2",{className:"block-editor-block-card__title"},t.title),Object(u.createElement)("span",{className:"block-editor-block-card__description"},t.description)))},po={insertUsage:{}},mo={alignWide:!1,colors:[{name:Object(g.__)("Black"),slug:"black",color:"#000000"},{name:Object(g.__)("Cyan bluish gray"),slug:"cyan-bluish-gray",color:"#abb8c3"},{name:Object(g.__)("White"),slug:"white",color:"#ffffff"},{name:Object(g.__)("Pale pink"),slug:"pale-pink",color:"#f78da7"},{name:Object(g.__)("Vivid red"),slug:"vivid-red",color:"#cf2e2e"},{name:Object(g.__)("Luminous vivid orange"),slug:"luminous-vivid-orange",color:"#ff6900"},{name:Object(g.__)("Luminous vivid amber"),slug:"luminous-vivid-amber",color:"#fcb900"},{name:Object(g.__)("Light green cyan"),slug:"light-green-cyan",color:"#7bdcb5"},{name:Object(g.__)("Vivid green cyan"),slug:"vivid-green-cyan",color:"#00d084"},{name:Object(g.__)("Pale cyan blue"),slug:"pale-cyan-blue",color:"#8ed1fc"},{name:Object(g.__)("Vivid cyan blue"),slug:"vivid-cyan-blue",color:"#0693e3"},{name:Object(g.__)("Vivid purple"),slug:"vivid-purple",color:"#9b51e0"}],fontSizes:[{name:Object(g._x)("Small","font size name"),size:13,slug:"small"},{name:Object(g._x)("Normal","font size name"),size:16,slug:"normal"},{name:Object(g._x)("Medium","font size name"),size:20,slug:"medium"},{name:Object(g._x)("Large","font size name"),size:36,slug:"large"},{name:Object(g._x)("Huge","font size name"),size:42,slug:"huge"}],imageSizes:[{slug:"thumbnail",name:Object(g.__)("Thumbnail")},{slug:"medium",name:Object(g.__)("Medium")},{slug:"large",name:Object(g.__)("Large")},{slug:"full",name:Object(g.__)("Full Size")}],imageEditing:!0,maxWidth:580,allowedBlockTypes:!0,maxUploadFileSize:0,allowedMimeTypes:null,availableLegacyWidgets:{},__experimentalCanUserUseUnfilteredHTML:!1,__experimentalBlockDirectory:!1,__experimentalEnableFullSiteEditing:!1,__experimentalEnableFullSiteEditingDemo:!1,__mobileEnablePageTemplates:!1,__experimentalBlockPatterns:[],__experimentalBlockPatternCategories:[],__experimentalSpotlightEntityBlocks:[],gradients:[{name:Object(g.__)("Vivid cyan blue to vivid purple"),gradient:"linear-gradient(135deg,rgba(6,147,227,1) 0%,rgb(155,81,224) 100%)",slug:"vivid-cyan-blue-to-vivid-purple"},{name:Object(g.__)("Light green cyan to vivid green cyan"),gradient:"linear-gradient(135deg,rgb(122,220,180) 0%,rgb(0,208,130) 100%)",slug:"light-green-cyan-to-vivid-green-cyan"},{name:Object(g.__)("Luminous vivid amber to luminous vivid orange"),gradient:"linear-gradient(135deg,rgba(252,185,0,1) 0%,rgba(255,105,0,1) 100%)",slug:"luminous-vivid-amber-to-luminous-vivid-orange"},{name:Object(g.__)("Luminous vivid orange to vivid red"),gradient:"linear-gradient(135deg,rgba(255,105,0,1) 0%,rgb(207,46,46) 100%)",slug:"luminous-vivid-orange-to-vivid-red"},{name:Object(g.__)("Very light gray to cyan bluish gray"),gradient:"linear-gradient(135deg,rgb(238,238,238) 0%,rgb(169,184,195) 100%)",slug:"very-light-gray-to-cyan-bluish-gray"},{name:Object(g.__)("Cool to warm spectrum"),gradient:"linear-gradient(135deg,rgb(74,234,220) 0%,rgb(151,120,209) 20%,rgb(207,42,186) 40%,rgb(238,44,130) 60%,rgb(251,105,98) 80%,rgb(254,248,76) 100%)",slug:"cool-to-warm-spectrum"},{name:Object(g.__)("Blush light purple"),gradient:"linear-gradient(135deg,rgb(255,206,236) 0%,rgb(152,150,240) 100%)",slug:"blush-light-purple"},{name:Object(g.__)("Blush bordeaux"),gradient:"linear-gradient(135deg,rgb(254,205,165) 0%,rgb(254,45,45) 50%,rgb(107,0,62) 100%)",slug:"blush-bordeaux"},{name:Object(g.__)("Luminous dusk"),gradient:"linear-gradient(135deg,rgb(255,203,112) 0%,rgb(199,81,192) 50%,rgb(65,88,208) 100%)",slug:"luminous-dusk"},{name:Object(g.__)("Pale ocean"),gradient:"linear-gradient(135deg,rgb(255,245,203) 0%,rgb(182,227,212) 50%,rgb(51,167,181) 100%)",slug:"pale-ocean"},{name:Object(g.__)("Electric grass"),gradient:"linear-gradient(135deg,rgb(202,248,128) 0%,rgb(113,206,126) 100%)",slug:"electric-grass"},{name:Object(g.__)("Midnight"),gradient:"linear-gradient(135deg,rgb(2,3,129) 0%,rgb(40,116,252) 100%)",slug:"midnight"}]};function vo(e,t,n){return[].concat(Object(ne.a)(e.slice(0,n)),Object(ne.a)(Object(f.castArray)(t)),Object(ne.a)(e.slice(n)))}function Oo(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,o=Object(ne.a)(e);return o.splice(t,r),vo(o,e.slice(t,t+r),n)}function go(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ho(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:"",n=Object(s.a)({},t,[]);return e.forEach((function(e){var r=e.clientId,o=e.innerBlocks;n[t].push(r),Object.assign(n,jo(o,r))})),n}function ko(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return e.reduce((function(e,n){return Object.assign(e,Object(s.a)({},n.clientId,t),ko(n.innerBlocks,n.clientId))}),{})}function yo(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:f.identity,n={},r=Object(ne.a)(e);r.length;){var o=r.shift(),c=o.innerBlocks,i=Object(he.a)(o,["innerBlocks"]);r.push.apply(r,Object(ne.a)(c)),n[i.clientId]=t(i)}return n}function _o(e){return yo(e,(function(e){return Object(f.omit)(e,"attributes")}))}function Eo(e){return yo(e,(function(e){return e.attributes}))}function Co(e,t){return e===t?ho({},e):t}function So(e,t){return"UPDATE_BLOCK_ATTRIBUTES"===e.type&&void 0!==t&&"UPDATE_BLOCK_ATTRIBUTES"===t.type&&Object(f.isEqual)(e.clientIds,t.clientIds)&&(n=e.attributes,r=t.attributes,Object(f.isEqual)(Object(f.keys)(n),Object(f.keys)(r)));var n,r}var wo=function(e){return e.reduce((function(e,t){return e[t]={},e}),{})};var Io=Object(f.flow)(v.combineReducers,(function(e){return function(t,n){if(t&&"SAVE_REUSABLE_BLOCK_SUCCESS"===n.type){var r=n.id,o=n.updatedId;if(r===o)return t;(t=ho({},t)).attributes=Object(f.mapValues)(t.attributes,(function(e,n){return"core/block"===t.byClientId[n].name&&e.ref===r?ho(ho({},e),{},{ref:o}):e}))}return e(t,n)}}),(function(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0,r=e(t,n);if(r===t)return t;r.cache=t.cache?t.cache:{};var o=function(e){return e.reduce((function(e,n){var r=n;do{e.push(r),r=t.parents[r]}while(r&&!t.controlledInnerBlocks[r]);return e}),[])};switch(n.type){case"RESET_BLOCKS":r.cache=Object(f.mapValues)(yo(n.blocks),(function(){return{}}));break;case"RECEIVE_BLOCKS":case"INSERT_BLOCKS":var c=Object(f.keys)(yo(n.blocks));n.rootClientId&&!t.controlledInnerBlocks[n.rootClientId]&&c.push(n.rootClientId),r.cache=ho(ho({},r.cache),wo(o(c)));break;case"UPDATE_BLOCK":r.cache=ho(ho({},r.cache),wo(o([n.clientId])));break;case"UPDATE_BLOCK_ATTRIBUTES":r.cache=ho(ho({},r.cache),wo(o(n.clientIds)));break;case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":var i=wo(o(n.replacedClientIds));r.cache=ho(ho(ho({},Object(f.omit)(r.cache,n.replacedClientIds)),Object(f.omit)(i,n.replacedClientIds)),wo(Object(f.keys)(yo(n.blocks))));break;case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":r.cache=ho(ho({},Object(f.omit)(r.cache,n.removedClientIds)),wo(Object(f.difference)(o(n.clientIds),n.clientIds)));break;case"MOVE_BLOCKS_TO_POSITION":var a=Object(ne.a)(n.clientIds);n.fromRootClientId&&a.push(n.fromRootClientId),n.toRootClientId&&a.push(n.toRootClientId),r.cache=ho(ho({},r.cache),wo(o(a)));break;case"MOVE_BLOCKS_UP":case"MOVE_BLOCKS_DOWN":var l=[];n.rootClientId&&l.push(n.rootClientId),r.cache=ho(ho({},r.cache),wo(o(l)));break;case"SAVE_REUSABLE_BLOCK_SUCCESS":var s=Object(f.keys)(Object(f.omitBy)(r.attributes,(function(e,t){return"core/block"!==r.byClientId[t].name||e.ref!==n.updatedId})));r.cache=ho(ho({},r.cache),wo(o(s)))}return r}}),(function(e){return function(t,n){var r=function(e){for(var r=e,o=0;o1&&void 0!==arguments[1]?arguments[1]:"",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Object(f.reduce)(t[n],(function(n,o){return r[o]?n:[].concat(Object(ne.a)(n),[o],Object(ne.a)(e(t,o)))}),[])}(t.order,"",t.controlledInnerBlocks),o=Object.keys(Object(f.pickBy)(t.controlledInnerBlocks));return ho(ho({},t),{},{byClientId:ho(ho({},Object(f.omit)(t.byClientId,r)),_o(n.blocks)),attributes:ho(ho({},Object(f.omit)(t.attributes,r)),Eo(n.blocks)),order:ho(ho({},Object(f.omit)(t.order,r)),Object(f.omit)(jo(n.blocks),o)),parents:ho(ho({},Object(f.omit)(t.parents,r)),ko(n.blocks)),cache:ho(ho({},Object(f.omit)(t.cache,r)),Object(f.omit)(Object(f.mapValues)(yo(n.blocks),(function(){return{}})),o))})}return e(t,n)}}),(function(e){var t,n=!1;return function(r,o){var c=e(r,o),i="MARK_LAST_CHANGE_AS_PERSISTENT"===o.type||n;if(r===c&&!i){var a;n="MARK_NEXT_CHANGE_AS_NOT_PERSISTENT"===o.type;var l=null===(a=null==r?void 0:r.isPersistentChange)||void 0===a||a;return r.isPersistentChange===l?r:ho(ho({},c),{},{isPersistentChange:l})}return c=ho(ho({},c),{},{isPersistentChange:i?!n:!So(o,t)}),t=o,n="MARK_NEXT_CHANGE_AS_NOT_PERSISTENT"===o.type,c}}),(function(e){var t=new Set(["RECEIVE_BLOCKS"]);return function(n,r){var o=e(n,r);return o!==n&&(o.isIgnoredChange=t.has(r.type)),o}}))({byClientId:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RESET_BLOCKS":return _o(t.blocks);case"RECEIVE_BLOCKS":case"INSERT_BLOCKS":return ho(ho({},e),_o(t.blocks));case"UPDATE_BLOCK":if(!e[t.clientId])return e;var n=Object(f.omit)(t.updates,"attributes");return Object(f.isEmpty)(n)?e:ho(ho({},e),{},Object(s.a)({},t.clientId,ho(ho({},e[t.clientId]),n)));case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":return t.blocks?ho(ho({},Object(f.omit)(e,t.replacedClientIds)),_o(t.blocks)):e;case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":return Object(f.omit)(e,t.removedClientIds)}return e},attributes:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RESET_BLOCKS":return Eo(t.blocks);case"RECEIVE_BLOCKS":case"INSERT_BLOCKS":return ho(ho({},e),Eo(t.blocks));case"UPDATE_BLOCK":return e[t.clientId]&&t.updates.attributes?ho(ho({},e),{},Object(s.a)({},t.clientId,ho(ho({},e[t.clientId]),t.updates.attributes))):e;case"UPDATE_BLOCK_ATTRIBUTES":if(t.clientIds.every((function(t){return!e[t]})))return e;var n=t.clientIds.reduce((function(n,r){return ho(ho({},n),{},Object(s.a)({},r,Object(f.reduce)(t.attributes,(function(t,n,o){return n!==t[o]&&((t=Co(e[r],t))[o]=n),t}),e[r])))}),{});return t.clientIds.every((function(t){return n[t]===e[t]}))?e:ho(ho({},e),n);case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":return t.blocks?ho(ho({},Object(f.omit)(e,t.replacedClientIds)),Eo(t.blocks)):e;case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":return Object(f.omit)(e,t.removedClientIds)}return e},order:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RESET_BLOCKS":return jo(t.blocks);case"RECEIVE_BLOCKS":return ho(ho({},e),Object(f.omit)(jo(t.blocks),""));case"INSERT_BLOCKS":var n=t.rootClientId,r=void 0===n?"":n,o=e[r]||[],c=jo(t.blocks,r),i=t.index,a=void 0===i?o.length:i;return ho(ho(ho({},e),c),{},Object(s.a)({},r,vo(o,c[r],a)));case"MOVE_BLOCKS_TO_POSITION":var l,u=t.fromRootClientId,d=void 0===u?"":u,b=t.toRootClientId,p=void 0===b?"":b,m=t.clientIds,v=t.index,O=void 0===v?e[p].length:v;if(d===p){var g=e[p],h=g.indexOf(m[0]);return ho(ho({},e),{},Object(s.a)({},p,Oo(e[p],h,O,m.length)))}return ho(ho({},e),{},(l={},Object(s.a)(l,d,f.without.apply(void 0,[e[d]].concat(Object(ne.a)(m)))),Object(s.a)(l,p,vo(e[p],m,O)),l));case"MOVE_BLOCKS_UP":var j=t.clientIds,k=t.rootClientId,y=void 0===k?"":k,_=Object(f.first)(j),E=e[y];if(!E.length||_===Object(f.first)(E))return e;var C=E.indexOf(_);return ho(ho({},e),{},Object(s.a)({},y,Oo(E,C,C-1,j.length)));case"MOVE_BLOCKS_DOWN":var S=t.clientIds,w=t.rootClientId,I=void 0===w?"":w,B=Object(f.first)(S),x=Object(f.last)(S),P=e[I];if(!P.length||x===Object(f.last)(P))return e;var T=P.indexOf(B);return ho(ho({},e),{},Object(s.a)({},I,Oo(P,T,T+1,S.length)));case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":var N=t.clientIds;if(!t.blocks)return e;var D=jo(t.blocks);return Object(f.flow)([function(e){return Object(f.omit)(e,t.replacedClientIds)},function(e){return ho(ho({},e),Object(f.omit)(D,""))},function(e){return Object(f.mapValues)(e,(function(e){return Object(f.reduce)(e,(function(e,t){return t===N[0]?[].concat(Object(ne.a)(e),Object(ne.a)(D[""])):(-1===N.indexOf(t)&&e.push(t),e)}),[])}))}])(e);case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":return Object(f.flow)([function(e){return Object(f.omit)(e,t.removedClientIds)},function(e){return Object(f.mapValues)(e,(function(e){return f.without.apply(void 0,[e].concat(Object(ne.a)(t.removedClientIds)))}))}])(e)}return e},parents:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RESET_BLOCKS":return ko(t.blocks);case"RECEIVE_BLOCKS":return ho(ho({},e),ko(t.blocks));case"INSERT_BLOCKS":return ho(ho({},e),ko(t.blocks,t.rootClientId||""));case"MOVE_BLOCKS_TO_POSITION":return ho(ho({},e),t.clientIds.reduce((function(e,n){return e[n]=t.toRootClientId||"",e}),{}));case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":return ho(ho({},Object(f.omit)(e,t.replacedClientIds)),ko(t.blocks,e[t.clientIds[0]]));case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":return Object(f.omit)(e,t.removedClientIds)}return e},controlledInnerBlocks:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=t.type,r=t.clientId,o=t.hasControlledInnerBlocks;return"SET_HAS_CONTROLLED_INNER_BLOCKS"===n?ho(ho({},e),{},Object(s.a)({},r,o)):e}});function Bo(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"CLEAR_SELECTED_BLOCK":return e.clientId?{}:e;case"SELECT_BLOCK":return t.clientId===e.clientId?e:{clientId:t.clientId};case"REPLACE_INNER_BLOCKS":case"INSERT_BLOCKS":return t.updateSelection&&t.blocks.length?{clientId:t.blocks[0].clientId}:e;case"REMOVE_BLOCKS":return t.clientIds&&t.clientIds.length&&-1!==t.clientIds.indexOf(e.clientId)?{}:e;case"REPLACE_BLOCKS":if(-1===t.clientIds.indexOf(e.clientId))return e;var n=t.indexToSelect||t.blocks.length-1,r=t.blocks[n];if(!r)return{};if(r.clientId===e.clientId)return e;var o={clientId:r.clientId};return"number"==typeof t.initialPosition&&(o.initialPosition=t.initialPosition),o}return e}function xo(e,t,n){switch(t.type){case"CLEAR_SELECTED_BLOCK":case"SELECT_BLOCK":case"REPLACE_INNER_BLOCKS":case"INSERT_BLOCKS":case"REMOVE_BLOCKS":case"REPLACE_BLOCKS":return n}return e}var Po=Object(v.combineReducers)({blocks:Io,isTyping:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"START_TYPING":return!0;case"STOP_TYPING":return!1}return e},draggedBlocks:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"START_DRAGGING_BLOCKS":return t.clientIds;case"STOP_DRAGGING_BLOCKS":return[]}return e},isCaretWithinFormattedText:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"ENTER_FORMATTED_TEXT":return!0;case"EXIT_FORMATTED_TEXT":return!1}return e},selectionStart:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SELECTION_CHANGE":return{clientId:t.clientId,attributeKey:t.attributeKey,offset:t.startOffset};case"RESET_SELECTION":return t.selectionStart;case"MULTI_SELECT":return{clientId:t.start}}return Bo(e,t)},selectionEnd:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SELECTION_CHANGE":return{clientId:t.clientId,attributeKey:t.attributeKey,offset:t.endOffset};case"RESET_SELECTION":return t.selectionEnd;case"MULTI_SELECT":return{clientId:t.end}}return Bo(e,t)},isMultiSelecting:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"START_MULTI_SELECT":return!0;case"STOP_MULTI_SELECT":return!1}return e},isSelectionEnabled:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"TOGGLE_SELECTION":return t.isSelectionEnabled}return e},initialPosition:function(e,t){return"REPLACE_BLOCKS"===t.type&&"number"==typeof t.initialPosition||"SELECT_BLOCK"===t.type?t.initialPosition:"REMOVE_BLOCKS"===t.type||"START_TYPING"===t.type?e:void 0},blocksMode:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;if("TOGGLE_BLOCK_MODE"===t.type){var n=t.clientId;return ho(ho({},e),{},Object(s.a)({},n,e[n]&&"html"===e[n]?"visual":"html"))}return e},blockListSettings:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"REPLACE_BLOCKS":case"REMOVE_BLOCKS":return Object(f.omit)(e,t.clientIds);case"UPDATE_BLOCK_LIST_SETTINGS":var n=t.clientId;return t.settings?Object(f.isEqual)(e[n],t.settings)?e:ho(ho({},e),{},Object(s.a)({},n,t.settings)):e.hasOwnProperty(n)?Object(f.omit)(e,n):e}return e},insertionPoint:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SET_INSERTION_POINT":case"SHOW_INSERTION_POINT":var n=t.rootClientId,r=t.index;return{rootClientId:n,index:r}}return xo(e,t,null)},insertionPointVisibility:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SHOW_INSERTION_POINT":return!0;case"HIDE_INSERTION_POINT":return!1}return xo(e,t,!1)},template:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{isValid:!0},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SET_TEMPLATE_VALIDITY":return ho(ho({},e),{},{isValid:t.isValid})}return e},settings:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:mo,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"UPDATE_SETTINGS":return ho(ho({},e),t.settings)}return e},preferences:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:po,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"INSERT_BLOCKS":case"REPLACE_BLOCKS":return t.blocks.reduce((function(e,n){var r=n.name,o={name:n.name};return Object(c.isReusableBlock)(n)&&(o.ref=n.attributes.ref,r+="/"+n.attributes.ref),ho(ho({},e),{},{insertUsage:ho(ho({},e.insertUsage),{},Object(s.a)({},r,{time:t.time,count:e.insertUsage[r]?e.insertUsage[r].count+1:1,insert:o}))})}),e)}return e},lastBlockAttributesChange:function(e,t){switch(t.type){case"UPDATE_BLOCK":if(!t.updates.attributes)break;return Object(s.a)({},t.clientId,t.updates.attributes);case"UPDATE_BLOCK_ATTRIBUTES":return t.clientIds.reduce((function(e,n){return ho(ho({},e),{},Object(s.a)({},n,t.attributes))}),{})}return null},isNavigationMode:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;return"INSERT_BLOCKS"!==t.type&&("SET_NAVIGATION_MODE"===t.type?t.isNavigationMode:e)},hasBlockMovingClientId:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0;return"SET_BLOCK_MOVING_MODE"===t.type?t.hasBlockMovingClientId:e},automaticChangeStatus:function(e,t){switch(t.type){case"MARK_AUTOMATIC_CHANGE":return"pending";case"MARK_AUTOMATIC_CHANGE_FINAL":return"pending"===e?"final":void 0;case"SELECTION_CHANGE":return"final"!==e?e:void 0;case"STOP_TYPING":return e}},highlightedBlock:function(e,t){switch(t.type){case"TOGGLE_BLOCK_HIGHLIGHT":var n=t.clientId;return t.isHighlighted?n:e===n?null:e;case"SELECT_BLOCK":if(t.clientId!==e)return null}return e}}),To=n(149),No=n.n(To),Do=n(277),Ro=n.n(Do),Ao=n(40);function Mo(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return Lo(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Lo(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var c,i=!0,a=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return i=e.done,e},e:function(e){a=!0,c=e},f:function(){try{i||null==n.return||n.return()}finally{if(a)throw c}}}}function Lo(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&void 0!==arguments[1]?arguments[1]:null;return{type:"SELECT_BLOCK",initialPosition:t,clientId:e}}function lc(e){var t;return Or.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,v.controls.select("core/block-editor","getPreviousBlockClientId",e);case 2:if(!(t=n.sent)){n.next=7;break}return n.next=6,ac(t,-1);case 6:return n.abrupt("return",[t]);case 7:case"end":return n.stop()}}),zo)}function sc(e){var t;return Or.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,v.controls.select("core/block-editor","getNextBlockClientId",e);case 2:if(!(t=n.sent)){n.next=7;break}return n.next=6,ac(t);case 6:return n.abrupt("return",[t]);case 7:case"end":return n.stop()}}),Uo)}function uc(){return{type:"START_MULTI_SELECT"}}function dc(){return{type:"STOP_MULTI_SELECT"}}function bc(e,t){return{type:"MULTI_SELECT",start:e,end:t}}function fc(){return{type:"CLEAR_SELECTED_BLOCK"}}function pc(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return{type:"TOGGLE_SELECTION",isSelectionEnabled:e}}function mc(e,t){var n,r,o=null!==(n=null==t||null===(r=t.__experimentalPreferredStyleVariations)||void 0===r?void 0:r.value)&&void 0!==n?n:{};return e.map((function(e){var t,n=e.name;if(!Object(c.hasBlockSupport)(n,"defaultStylePicker",!0))return e;if(!o[n])return e;var r=null===(t=e.attributes)||void 0===t?void 0:t.className;if(null==r?void 0:r.includes("is-style-"))return e;var i=e.attributes,a=void 0===i?{}:i,l=o[n];return Vo(Vo({},e),{},{attributes:Vo(Vo({},a),{},{className:"".concat(r||""," is-style-").concat(l).trim()})})}))}function vc(e,t,n,r,o){var c,i,a;return Or.a.wrap((function(l){for(;;)switch(l.prev=l.next){case 0:return e=Object(f.castArray)(e),l.t0=mc,l.t1=Object(f.castArray)(t),l.next=5,v.controls.select("core/block-editor","getSettings");case 5:return l.t2=l.sent,t=(0,l.t0)(l.t1,l.t2),l.next=9,v.controls.select("core/block-editor","getBlockRootClientId",Object(f.first)(e));case 9:c=l.sent,i=0;case 11:if(!(i1&&void 0!==i[1]?i[1]:"",n=i.length>2&&void 0!==i[2]?i[2]:"",r=i.length>3?i[3]:void 0,a.next=5,v.controls.select("core/block-editor","getTemplateLock",t);case 5:if("all"!==(o=a.sent)){a.next=8;break}return a.abrupt("return");case 8:if(c={type:"MOVE_BLOCKS_TO_POSITION",fromRootClientId:t,toRootClientId:n,clientIds:e,index:r},t!==n){a.next=13;break}return a.next=12,c;case 12:return a.abrupt("return");case 13:if("insert"!==o){a.next=15;break}return a.abrupt("return");case 15:return a.next=17,v.controls.select("core/block-editor","canInsertBlocks",e,n);case 17:if(!a.sent){a.next=21;break}return a.next=21,c;case 21:case"end":return a.stop()}}),Ko)}function yc(e){var t,n,r,o=arguments;return Or.a.wrap((function(c){for(;;)switch(c.prev=c.next){case 0:return t=o.length>1&&void 0!==o[1]?o[1]:"",n=o.length>2&&void 0!==o[2]?o[2]:"",r=o.length>3?o[3]:void 0,c.next=5,kc([e],t,n,r);case 5:case"end":return c.stop()}}),Wo)}function _c(e,t,n){var r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];return Ec([e],t,n,r)}function Ec(e,t,n){var r,o,c,i,a,l,s=arguments;return Or.a.wrap((function(u){for(;;)switch(u.prev=u.next){case 0:return r=!(s.length>3&&void 0!==s[3])||s[3],o=s.length>4?s[4]:void 0,u.t0=mc,u.t1=Object(f.castArray)(e),u.next=6,v.controls.select("core/block-editor","getSettings");case 6:u.t2=u.sent,e=(0,u.t0)(u.t1,u.t2),c=[],i=Mo(e),u.prev=10,i.s();case 12:if((a=i.n()).done){u.next=20;break}return l=a.value,u.next=16,v.controls.select("core/block-editor","canInsertBlockType",l.name,n);case 16:u.sent&&c.push(l);case 18:u.next=12;break;case 20:u.next=25;break;case 22:u.prev=22,u.t3=u.catch(10),i.e(u.t3);case 25:return u.prev=25,i.f(),u.finish(25);case 28:if(!c.length){u.next=30;break}return u.abrupt("return",{type:"INSERT_BLOCKS",blocks:c,index:t,rootClientId:n,time:Date.now(),updateSelection:r,meta:o});case 30:case"end":return u.stop()}}),qo,null,[[10,22,25,28]])}function Cc(e,t){return{type:"SET_INSERTION_POINT",rootClientId:e,index:t}}function Sc(e,t){return{type:"SHOW_INSERTION_POINT",rootClientId:e,index:t}}function wc(){return{type:"HIDE_INSERTION_POINT"}}function Ic(e){return{type:"SET_TEMPLATE_VALIDITY",isValid:e}}function Bc(){return{type:"SYNCHRONIZE_TEMPLATE"}}function xc(e,t){return{type:"MERGE_BLOCKS",blocks:[e,t]}}function Pc(e){var t,n,r,o,c=arguments;return Or.a.wrap((function(i){for(;;)switch(i.prev=i.next){case 0:if(t=!(c.length>1&&void 0!==c[1])||c[1],e&&e.length){i.next=3;break}return i.abrupt("return");case 3:return e=Object(f.castArray)(e),i.next=6,v.controls.select("core/block-editor","getBlockRootClientId",e[0]);case 6:return n=i.sent,i.next=9,v.controls.select("core/block-editor","getTemplateLock",n);case 9:if(!i.sent){i.next=12;break}return i.abrupt("return");case 12:if(!t){i.next=18;break}return i.next=15,lc(e[0]);case 15:r=i.sent,i.next=21;break;case 18:return i.next=20,v.controls.select("core/block-editor","getPreviousBlockClientId",e[0]);case 20:r=i.sent;case 21:return i.next=23,{type:"REMOVE_BLOCKS",clientIds:e};case 23:return i.delegateYield(tc(),"t0",24);case 24:return o=i.t0,i.abrupt("return",[r||o]);case 26:case"end":return i.stop()}}),$o)}function Tc(e,t){return Pc([e],t)}function Nc(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return{type:"REPLACE_INNER_BLOCKS",rootClientId:e,blocks:t,updateSelection:n,time:Date.now()}}function Dc(e){return{type:"TOGGLE_BLOCK_MODE",clientId:e}}function Rc(){return{type:"START_TYPING"}}function Ac(){return{type:"STOP_TYPING"}}function Mc(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return{type:"START_DRAGGING_BLOCKS",clientIds:e}}function Lc(){return{type:"STOP_DRAGGING_BLOCKS"}}function Fc(){return{type:"ENTER_FORMATTED_TEXT"}}function Vc(){return{type:"EXIT_FORMATTED_TEXT"}}function Hc(e,t,n,r){return{type:"SELECTION_CHANGE",clientId:e,attributeKey:t,startOffset:n,endOffset:r}}function zc(e,t,n){var r=Object(c.getDefaultBlockName)();if(r)return _c(Object(c.createBlock)(r,e),n,t)}function Uc(e,t){return{type:"UPDATE_BLOCK_LIST_SETTINGS",clientId:e,settings:t}}function Gc(e){return{type:"UPDATE_SETTINGS",settings:e}}function Kc(e,t){return{type:"SAVE_REUSABLE_BLOCK_SUCCESS",id:e,updatedId:t}}function Wc(){return{type:"MARK_LAST_CHANGE_AS_PERSISTENT"}}function qc(){return{type:"MARK_NEXT_CHANGE_AS_NOT_PERSISTENT"}}function $c(){return{type:"MARK_AUTOMATIC_CHANGE"}}function Yc(){var e,t=arguments;return Or.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return e=!(t.length>0&&void 0!==t[0])||t[0],n.next=3,{type:"SET_NAVIGATION_MODE",isNavigationMode:e};case 3:e?Object(Le.speak)(Object(g.__)("You are currently in navigation mode. Navigate blocks using the Tab key and Arrow keys. Use Left and Right Arrow keys to move between nesting levels. To exit navigation mode and edit the selected block, press Enter.")):Object(Le.speak)(Object(g.__)("You are currently in edit mode. To return to the navigation mode, press Escape."));case 4:case"end":return n.stop()}}),Yo)}function Xc(){var e,t=arguments;return Or.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return e=t.length>0&&void 0!==t[0]?t[0]:null,n.next=3,{type:"SET_BLOCK_MOVING_MODE",hasBlockMovingClientId:e};case 3:e&&Object(Le.speak)(Object(g.__)("Use the Tab key and Arrow keys to choose new block location. Use Left and Right Arrow keys to move between nesting levels. Once location is selected press Enter or Space to move the block."));case 4:case"end":return n.stop()}}),Xo)}function Qc(e){var t,n,r,o,i,a,l=arguments;return Or.a.wrap((function(s){for(;;)switch(s.prev=s.next){case 0:if(t=!(l.length>1&&void 0!==l[1])||l[1],e||e.length){s.next=3;break}return s.abrupt("return");case 3:return s.next=5,v.controls.select("core/block-editor","getBlocksByClientId",e);case 5:return n=s.sent,s.next=8,v.controls.select("core/block-editor","getBlockRootClientId",e[0]);case 8:if(r=s.sent,!Object(f.some)(n,(function(e){return!e}))){s.next=11;break}return s.abrupt("return");case 11:if(o=n.map((function(e){return e.name})),!Object(f.some)(o,(function(e){return!Object(c.hasBlockSupport)(e,"multiple",!0)}))){s.next=14;break}return s.abrupt("return");case 14:return s.next=16,v.controls.select("core/block-editor","getBlockIndex",Object(f.last)(Object(f.castArray)(e)),r);case 16:return i=s.sent,a=n.map((function(e){return Object(c.cloneBlock)(e)})),s.next=20,Ec(a,i+1,r,t);case 20:if(!(a.length>1&&t)){s.next=23;break}return s.next=23,bc(Object(f.first)(a).clientId,Object(f.last)(a).clientId);case 23:return s.abrupt("return",a.map((function(e){return e.clientId})));case 24:case"end":return s.stop()}}),Qo)}function Zc(e){var t,n;return Or.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(e){r.next=2;break}return r.abrupt("return");case 2:return r.next=4,v.controls.select("core/block-editor","getBlockRootClientId",e);case 4:return t=r.sent,r.next=7,v.controls.select("core/block-editor","getTemplateLock",t);case 7:if(!r.sent){r.next=10;break}return r.abrupt("return");case 10:return r.next=12,v.controls.select("core/block-editor","getBlockIndex",e,t);case 12:return n=r.sent,r.next=15,zc({},t,n);case 15:return r.abrupt("return",r.sent);case 16:case"end":return r.stop()}}),Zo)}function Jc(e){var t,n;return Or.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(e){r.next=2;break}return r.abrupt("return");case 2:return r.next=4,v.controls.select("core/block-editor","getBlockRootClientId",e);case 4:return t=r.sent,r.next=7,v.controls.select("core/block-editor","getTemplateLock",t);case 7:if(!r.sent){r.next=10;break}return r.abrupt("return");case 10:return r.next=12,v.controls.select("core/block-editor","getBlockIndex",e,t);case 12:return n=r.sent,r.next=15,zc({},t,n+1);case 15:return r.abrupt("return",r.sent);case 16:case"end":return r.stop()}}),Jo)}function ei(e,t){return{type:"TOGGLE_BLOCK_HIGHLIGHT",clientId:e,isHighlighted:t}}function ti(e){return Or.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,ei(e,!0);case 2:return t.next=4,{type:"SLEEP",duration:150};case 4:return t.next=6,ei(e,!1);case 6:case"end":return t.stop()}}),ec)}function ni(e,t){return{type:"SET_HAS_CONTROLLED_INNER_BLOCKS",hasControlledInnerBlocks:t,clientId:e}}var ri=n(42);function oi(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return ci(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ci(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var c,i=!0,a=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return i=e.done,e},e:function(e){a=!0,c=e},f:function(){try{i||null==n.return||n.return()}finally{if(a)throw c}}}}function ci(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&void 0!==arguments[1]?arguments[1]:"";return Object(f.map)(Xi(e,t),(function(t){return vi(e,t)}))}),(function(e){return[e.blocks.byClientId,e.blocks.order,e.blocks.attributes]})),gi=function e(t,n){return Object(f.flatMap)(n,(function(n){var r=Xi(t,n);return[].concat(Object(ne.a)(r),Object(ne.a)(e(t,r)))}))},hi=Object(ri.a)((function(e){var t=Xi(e);return[].concat(Object(ne.a)(t),Object(ne.a)(gi(e,t)))}),(function(e){return[e.blocks.order]})),ji=Object(ri.a)((function(e,t){var n=hi(e);return t?Object(f.reduce)(n,(function(n,r){return e.blocks.byClientId[r].name===t?n+1:n}),0):n.length}),(function(e){return[e.blocks.order,e.blocks.byClientId]})),ki=Object(ri.a)((function(e,t){return Object(f.map)(Object(f.castArray)(t),(function(t){return fi(e,t)}))}),(function(e){return[e.blocks.byClientId,e.blocks.order,e.blocks.attributes]}));function yi(e,t){return Xi(e,t).length}function _i(e){return e.selectionStart}function Ei(e){return e.selectionEnd}function Ci(e){return e.selectionStart.clientId}function Si(e){return e.selectionEnd.clientId}function wi(e){var t=Hi(e).length;return t||(e.selectionStart.clientId?1:0)}function Ii(e){var t=e.selectionStart,n=e.selectionEnd;return!!t.clientId&&t.clientId===n.clientId}function Bi(e){var t=e.selectionStart,n=e.selectionEnd,r=t.clientId;return r&&r===n.clientId?r:null}function xi(e){var t=Bi(e);return t?fi(e,t):null}function Pi(e,t){return void 0!==e.blocks.parents[t]?e.blocks.parents[t]:null}var Ti=Object(ri.a)((function(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=[],o=t;e.blocks.parents[o];)o=e.blocks.parents[o],r.push(o);return n?r:r.reverse()}),(function(e){return[e.blocks.parents]})),Ni=Object(ri.a)((function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=Ti(e,t,r);return Object(f.map)(Object(f.filter)(Object(f.map)(o,(function(t){return{id:t,name:ui(e,t)}})),(function(e){var t=e.name;return Array.isArray(n)?n.includes(t):t===n})),(function(e){return e.id}))}),(function(e){return[e.blocks.parents]}));function Di(e,t){var n,r=t;do{n=r,r=e.blocks.parents[r]}while(r);return n}function Ri(e,t){for(var n,r=Bi(e),o=[].concat(Object(ne.a)(Ti(e,t)),[t]),c=[].concat(Object(ne.a)(Ti(e,r)),[r]),i=Math.min(o.length,c.length),a=0;a2&&void 0!==arguments[2]?arguments[2]:1;if(void 0===t&&(t=Bi(e)),void 0===t&&(t=n<0?Ui(e):Gi(e)),!t)return null;var r=Pi(e,t);if(null===r)return null;var o=e.blocks.order,c=o[r],i=c.indexOf(t),a=i+1*n;return a<0||a===c.length?null:c[a]}function Mi(e,t){return Ai(e,t,-1)}function Li(e,t){return Ai(e,t,1)}function Fi(e){return e.initialPosition}var Vi=Object(ri.a)((function(e){var t=e.selectionStart,n=e.selectionEnd;if(void 0===t.clientId||void 0===n.clientId)return si;if(t.clientId===n.clientId)return[t.clientId];var r=Pi(e,t.clientId);if(null===r)return si;var o=Xi(e,r),c=o.indexOf(t.clientId),i=o.indexOf(n.clientId);return c>i?o.slice(i,c+1):o.slice(c,i+1)}),(function(e){return[e.blocks.order,e.selectionStart.clientId,e.selectionEnd.clientId]}));function Hi(e){var t=e.selectionStart,n=e.selectionEnd;return t.clientId===n.clientId?si:Vi(e)}var zi=Object(ri.a)((function(e){var t=Hi(e);return t.length?t.map((function(t){return fi(e,t)})):si}),(function(e){return[].concat(Object(ne.a)(Vi.getDependants(e)),[e.blocks.byClientId,e.blocks.order,e.blocks.attributes])}));function Ui(e){return Object(f.first)(Hi(e))||null}function Gi(e){return Object(f.last)(Hi(e))||null}function Ki(e,t){return Ui(e)===t}function Wi(e,t){return-1!==Hi(e).indexOf(t)}var qi=Object(ri.a)((function(e,t){for(var n=t,r=!1;n&&!r;)r=Wi(e,n=Pi(e,n));return r}),(function(e){return[e.blocks.order,e.selectionStart.clientId,e.selectionEnd.clientId]}));function $i(e){var t=e.selectionStart,n=e.selectionEnd;return t.clientId===n.clientId?null:t.clientId||null}function Yi(e){var t=e.selectionStart,n=e.selectionEnd;return t.clientId===n.clientId?null:n.clientId||null}function Xi(e,t){return e.blocks.order[t||""]||si}function Qi(e,t,n){return Xi(e,n).indexOf(t)}function Zi(e,t){var n=e.selectionStart,r=e.selectionEnd;return n.clientId===r.clientId&&n.clientId===t}function Ji(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return Object(f.some)(Xi(e,t),(function(t){return Zi(e,t)||Wi(e,t)||n&&Ji(e,t,n)}))}function ea(e,t){if(!t)return!1;var n=Hi(e),r=n.indexOf(t);return r>-1&&r2&&void 0!==arguments[2]?arguments[2]:null,r=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return Object(f.isBoolean)(e)?e:Object(f.isArray)(e)?!(!e.includes("core/post-content")||null!==t)||e.includes(t):n},o=Object(c.getBlockType)(t);if(!o)return!1;var i=Sa(e),a=i.allowedBlockTypes,l=r(a,t,!0);if(!l)return!1;var s=!!ma(e,n);if(s)return!1;var u=Ca(e,n);if(n&&void 0===u)return!1;var d=null==u?void 0:u.allowedBlocks,b=r(d,t),p=o.parent,m=ui(e,n),v=r(p,m);return null!==b&&null!==v?b||v:null!==b?b:null===v||v},Oa=Object(ri.a)(va,(function(e,t,n){return[e.blockListSettings[n],e.blocks.byClientId[n],e.settings.allowedBlockTypes,e.settings.templateLock]}));function ga(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return t.every((function(t){return Oa(e,ui(e,t),n)}))}function ha(e,t){var n,r;return null!==(n=null===(r=e.preferences.insertUsage)||void 0===r?void 0:r[t])&&void 0!==n?n:null}var ja=function(e,t,n){return!!Object(c.hasBlockSupport)(t,"inserter",!0)&&va(e,t.name,n)},ka=function(e){return function(t){return ai(ai({},e),{},{id:"".concat(e.id,"-").concat(t.name),icon:t.icon||e.icon,title:t.title||e.title,description:t.description||e.description,example:t.hasOwnProperty("example")?t.example:e.example,initialAttributes:ai(ai({},e.initialAttributes),t.attributes),innerBlocks:t.innerBlocks,keywords:t.keywords||e.keywords})}},ya=Object(ri.a)((function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=function(e,t){if(!e)return t;var n=Date.now()-e;switch(!0){case n<36e5:return 4*t;case n<864e5:return 2*t;case n<6048e5:return t/2;default:return t/4}},o=function(t){var n=t.name,o=!1;Object(c.hasBlockSupport)(t.name,"multiple",!0)||(o=Object(f.some)(ki(e,hi(e)),{name:t.name}));var i=ha(e,n)||{},a=i.time,l=i.count,s=void 0===l?0:l,u=t.variations.filter((function(e){var t=e.scope;return!t||t.includes("inserter")}));return{id:n,name:t.name,initialAttributes:{},title:t.title,description:t.description,icon:t.icon,category:t.category,keywords:t.keywords,variations:u,example:t.example,isDisabled:o,utility:1,frecency:r(a,s)}},i=function(t){var n,o="core/block/".concat(t.id),i=Ba(e,t.id);1===i.length&&(n=Object(c.getBlockType)(i[0].name));var a=ha(e,o)||{},l=a.time,s=a.count,u=r(l,void 0===s?0:s);return{id:o,name:"core/block",initialAttributes:{ref:t.id},title:t.title.raw,icon:n?n.icon:li,category:"reusable",keywords:[],isDisabled:!1,utility:1,frecency:u}},a=Object(c.getBlockTypes)().filter((function(t){return ja(e,t,n)})).map(o),l=va(e,"core/block",n)?Ta(e).map(i):[],s=a.filter((function(e){var t=e.variations;return!(void 0===t?[]:t).some((function(e){return e.isDefault}))})),u=[],d=oi(a);try{for(d.s();!(t=d.n()).done;){var b=t.value,p=b.variations,m=void 0===p?[]:p;if(m.length){var v=ka(b);u.push.apply(u,Object(ne.a)(m.map(v)))}}}catch(e){d.e(e)}finally{d.f()}return[].concat(Object(ne.a)(s),u,Object(ne.a)(l))}),(function(e,t){return[e.blockListSettings[t],e.blocks.byClientId,e.blocks.order,e.preferences.insertUsage,e.settings.allowedBlockTypes,e.settings.templateLock,Ta(e),Object(c.getBlockTypes)()]})),_a=Object(ri.a)((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=Object(f.some)(Object(c.getBlockTypes)(),(function(n){return ja(e,n,t)}));if(n)return!0;var r=va(e,"core/block",t)&&Ta(e).length>0;return r}),(function(e,t){return[e.blockListSettings[t],e.blocks.byClientId,e.settings.allowedBlockTypes,e.settings.templateLock,Ta(e),Object(c.getBlockTypes)()]})),Ea=Object(ri.a)((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(t)return Object(f.filter)(Object(c.getBlockTypes)(),(function(n){return ja(e,n,t)}))}),(function(e,t){return[e.blockListSettings[t],e.blocks.byClientId,e.settings.allowedBlockTypes,e.settings.templateLock,Object(c.getBlockTypes)()]}));function Ca(e,t){return e.blockListSettings[t]}function Sa(e){return e.settings}function wa(e){return e.blocks.isPersistentChange}var Ia=Object(ri.a)((function(e,t){return Object(f.filter)(e.blockListSettings,(function(e,n){return t.includes(n)}))}),(function(e){return[e.blockListSettings]})),Ba=Object(ri.a)((function(e,t){var n=Object(f.find)(Ta(e),(function(e){return e.id===t}));return n?Object(c.parse)("string"==typeof n.content.raw?n.content.raw:n.content):null}),(function(e){return[Ta(e)]}));function xa(e){return e.blocks.isIgnoredChange}function Pa(e){return e.lastBlockAttributesChange}function Ta(e){var t,n;return null!==(t=null==e||null===(n=e.settings)||void 0===n?void 0:n.__experimentalReusableBlocks)&&void 0!==t?t:si}function Na(e){return e.isNavigationMode}function Da(e){return e.hasBlockMovingClientId}function Ra(e){return!!e.automaticChangeStatus}function Aa(e,t){return e.highlightedBlock===t}function Ma(e,t){return!!e.blocks.controlledInnerBlocks[t]}var La=Object(ri.a)((function(e,t){if(!t.length)return null;var n=Bi(e);if(t.includes(ui(e,n)))return n;var r=Hi(e),o=Ni(e,n||r[0],t);return o?Object(f.last)(o):null}),(function(e,t){return[e.selectionStart.clientId,e.selectionEnd.clientId,t]}));function Fa(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Va(e){for(var t=1;t=s&&a<=u?a:a2&&void 0!==arguments[2]?arguments[2]:["top","bottom","left","right"];return o.forEach((function(o){var c=cl(e,t,o);(void 0===n||c6||E.length>6,D=Object(u.useMemo)((function(){return zn(E,C,S,s)}),[s,E,C,S]),R=Object(u.useMemo)((function(){return Un(x,s)}),[s,x]),A=Object(v.useSelect)((function(e){var t=e("core/block-editor"),o=t.getSettings,c=t.getBlockIndex;return{setInserterIsOpened:o().__experimentalSetIsInserterOpened,blockIndex:c(r,n)}}),[r,n]),M=A.setInserterIsOpened,L=A.blockIndex;Object(u.useEffect)((function(){M&&M(!1)}),[M]);var F=Object(v.useDispatch)("core/block-editor").__unstableSetInsertionPoint;Object(u.useEffect)((function(){if(s){var e=D.length+R.length,t=Object(g.sprintf)(Object(g._n)("%d result found.","%d results found.",e),e);i(t)}}),[s,i]);return Object(u.createElement)("div",{className:b()("block-editor-inserter__quick-inserter",{"has-search":N,"has-expand":M}),onKeyPress:Jl,onKeyDown:Zl},N&&Object(u.createElement)(bo,{value:s,onChange:function(e){d(e)},placeholder:Object(g.__)("Search for a block")}),Object(u.createElement)(es,{blockTypes:D,blockPatterns:T?R:[],onSelectBlockPattern:P,onSelectBlockType:w,onHover:k}),M&&Object(u.createElement)(h.Button,{className:"block-editor-inserter__quick-inserter-expand",onClick:function(){F(n,L),M(!0)},"aria-label":Object(g.__)("Browse all. This will open the main inserter panel in the editor toolbar.")},Object(g.__)("Browse all")))}function ns(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object($t.a)(e);if(t){var o=Object($t.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(qt.a)(this,n)}}var rs=function(e){var t,n=e.onToggle,r=e.disabled,o=e.isOpen,c=e.blockTitle,i=e.hasSingleBlockType,a=e.toggleProps,s=void 0===a?{}:a;t=i?Object(g.sprintf)(Object(g._x)("Add %s","directly add the only allowed block"),c):Object(g._x)("Add block","Generic label for block inserter button");var d=s.onClick,b=Object(he.a)(s,["onClick"]);return Object(u.createElement)(h.Button,Object(l.a)({icon:co.a,label:t,tooltipPosition:"bottom",onClick:function(e){n&&n(e),d&&d(e)},className:"block-editor-inserter__toggle","aria-haspopup":!i&&"true","aria-expanded":!i&&o,disabled:r},b))},os=function(e){Object(Wt.a)(n,e);var t=ns(n);function n(){var e;return Object(Ut.a)(this,n),(e=t.apply(this,arguments)).onToggle=e.onToggle.bind(Object(Kt.a)(e)),e.renderToggle=e.renderToggle.bind(Object(Kt.a)(e)),e.renderContent=e.renderContent.bind(Object(Kt.a)(e)),e}return Object(Gt.a)(n,[{key:"onToggle",value:function(e){var t=this.props.onToggle;t&&t(e)}},{key:"renderToggle",value:function(e){var t=e.onToggle,n=e.isOpen,r=this.props,o=r.disabled,c=r.blockTitle,i=r.hasSingleBlockType,a=r.toggleProps,l=r.hasItems,s=r.renderToggle,u=void 0===s?rs:s;return u({onToggle:t,isOpen:n,disabled:o||!l,blockTitle:c,hasSingleBlockType:i,toggleProps:a})}},{key:"renderContent",value:function(e){var t=e.onClose,n=this.props,r=n.rootClientId,o=n.clientId,c=n.isAppender,i=n.showInserterHelpPanel,a=n.__experimentalSelectBlockOnInsert;return n.__experimentalIsQuick?Object(u.createElement)(ts,{onSelect:t,rootClientId:r,clientId:o,isAppender:c,selectBlockOnInsert:a}):Object(u.createElement)(Ql,{onSelect:t,rootClientId:r,clientId:o,isAppender:c,showInserterHelpPanel:i,__experimentalSelectBlockOnInsert:a})}},{key:"render",value:function(){var e=this.props,t=e.position,n=e.hasSingleBlockType,r=e.insertOnlyAllowedBlock,o=e.__experimentalIsQuick;return n?this.renderToggle({onToggle:r}):Object(u.createElement)(h.Dropdown,{className:"block-editor-inserter",contentClassName:b()("block-editor-inserter__popover",{"is-quick":o}),position:t,onToggle:this.onToggle,expandOnMobile:!0,headerTitle:Object(g.__)("Add a block"),renderToggle:this.renderToggle,renderContent:this.renderContent})}}]),n}(u.Component),cs=Object(p.compose)([Object(v.withSelect)((function(e,t){var n=t.clientId,r=t.rootClientId,o=e("core/block-editor"),c=o.getBlockRootClientId,i=o.hasInserterItems,a=o.__experimentalGetAllowedBlocks,l=e("core/blocks").getBlockVariations,s=a(r=r||c(n)||void 0),u=1===Object(f.size)(s)&&0===Object(f.size)(l(s[0].name,"inserter")),d=!1;return u&&(d=s[0]),{hasItems:i(r),hasSingleBlockType:u,blockTitle:d?d.title:"",allowedBlockType:d,rootClientId:r}})),Object(v.withDispatch)((function(e,t,n){var r=n.select;return{insertOnlyAllowedBlock:function(){var n=t.rootClientId,o=t.clientId,i=t.isAppender,a=t.hasSingleBlockType,l=t.allowedBlockType,s=t.__experimentalSelectBlockOnInsert;if(a&&((0,e("core/block-editor").insertBlock)(Object(c.createBlock)(l.name),function(){var e=r("core/block-editor"),t=e.getBlockIndex,c=e.getBlockSelectionEnd,a=e.getBlockOrder;if(o)return t(o,n);var l=c();return!i&&l?t(l,n)+1:a(n).length}(),n,s),!s)){var u=Object(g.sprintf)(Object(g.__)("%s block added"),l.title);Object(Le.speak)(u)}}}})),Object(p.ifCondition)((function(e){var t=e.hasItems,n=e.isAppender,r=e.rootClientId,o=e.clientId;return t||!n&&!r&&!o}))])(os),is=Object(u.forwardRef)((function(e,t){var n=e.selectedClientId,r=e.isReverse,o=e.containerRef,c=e.noCapture,i=e.hasMultiSelection,a=e.multiSelectionContainer,l=Object(v.useSelect)((function(e){return e("core/block-editor").isNavigationMode()})),s=Object(v.useDispatch)("core/block-editor").setNavigationMode;return Object(u.createElement)("div",{ref:t,tabIndex:l?void 0:"0",onFocus:function(){if(c.current)c.current=null;else if(n){var e=qe(n);if(r){var t=kr.focus.tabbable.find(e);(Object(f.last)(t)||e).focus()}else e.focus()}else{if(i)return void a.current.focus();s(!0);var l=kr.focus.tabbable.find(o.current);l.length&&(r?Object(f.last)(l).focus():Object(f.first)(l).focus())}},style:{position:"fixed"}})}));var as=Object(f.overEvery)([kr.isTextField,kr.focus.tabbable.isTabbableIndex]);function ls(e,t,n,r){var o,c=kr.focus.focusable.find(n);return t&&(c=Object(f.reverse)(c)),c=c.slice(c.indexOf(e)+1),r&&(o=e.getBoundingClientRect()),Object(f.find)(c,(function t(n,c,i){if(!kr.focus.tabbable.isTabbableIndex(n))return!1;if(r){var a=n.getBoundingClientRect();if(a.left>=o.right||a.right<=o.left)return!1}if(Object(kr.isTextField)(n))return!0;if(!n.classList.contains("block-editor-block-list__block"))return!1;if(function(e){return e.classList.contains("block-editor-block-list__layout")||!!e.querySelector(".block-editor-block-list__layout")}(n))return!0;if(n.contains(e))return!1;for(var l,s=1;(l=i[c+s])&&n.contains(l);s++)if(t(l,c+s,i))return!1;return!0}))}function ss(e){var t=e("core/block-editor"),n=t.getSelectedBlockClientId,r=t.getMultiSelectedBlocksStartClientId,o=t.getMultiSelectedBlocksEndClientId,c=t.getPreviousBlockClientId,i=t.getNextBlockClientId,a=t.getFirstMultiSelectedBlockClientId,l=t.getLastMultiSelectedBlockClientId,s=t.hasMultiSelection,u=t.getBlockOrder,d=t.isNavigationMode,b=t.hasBlockMovingClientId,f=t.getBlockIndex,p=t.getBlockRootClientId,m=t.getClientIdsOfDescendants,v=t.canInsertBlockType,O=t.getBlockName,g=t.isSelectionEnabled,h=t.getBlockSelectionStart,j=t.isMultiSelecting,k=t.getSettings,y=n(),_=r(),E=o();return{selectedBlockClientId:y,selectionStartClientId:_,selectionBeforeEndClientId:c(E||y),selectionAfterEndClientId:i(E||y),selectedFirstClientId:a(),selectedLastClientId:l(),hasMultiSelection:s(),blocks:u(),isNavigationMode:d(),hasBlockMovingClientId:b,getBlockIndex:f,getBlockRootClientId:p,getClientIdsOfDescendants:m,canInsertBlockType:v,getBlockName:O,isSelectionEnabled:g(),blockSelectionStart:h(),isMultiSelecting:j(),keepCaretInsideBlock:k().keepCaretInsideBlock}}function us(e){var t=e.children,n=Object(u.useRef)(),r=Object(u.useRef)(),o=Object(u.useRef)(),c=Object(u.useRef)(),i=Object(u.useRef)(),a=Object(u.useRef)(),l=Object(u.useRef)(),s=Object(v.useSelect)(ss,[]),d=s.selectedBlockClientId,p=s.selectionStartClientId,m=s.selectionBeforeEndClientId,O=s.selectionAfterEndClientId,h=s.selectedFirstClientId,j=s.selectedLastClientId,k=s.hasMultiSelection,y=s.blocks,_=s.isNavigationMode,E=s.hasBlockMovingClientId,C=s.isSelectionEnabled,S=s.blockSelectionStart,w=s.isMultiSelecting,I=s.getBlockIndex,B=s.getBlockRootClientId,x=s.getClientIdsOfDescendants,P=s.canInsertBlockType,T=s.getBlockName,N=s.keepCaretInsideBlock,D=Object(v.useDispatch)("core/block-editor"),R=D.multiSelect,A=D.selectBlock,M=D.clearSelectedBlock,L=D.setNavigationMode,F=D.setBlockMovingClientId,V=D.moveBlockToPosition,H=Object(u.useState)(!1),z=Object(re.a)(H,2),U=z[0],G=z[1];Object(u.useEffect)((function(){k&&!w&&c.current.focus()}),[k,w]);var K=b()("block-editor-writing-flow",{"is-navigate-mode":_,"is-block-moving-mode":!!E(),"can-insert-moving-block":U});return Object(u.createElement)("div",{className:K},Object(u.createElement)(is,{ref:r,selectedClientId:d,containerRef:n,noCapture:a,hasMultiSelection:k,multiSelectionContainer:c}),Object(u.createElement)("div",{ref:n,onKeyDown:function(e){var t=e.keyCode,s=e.target,u=t===st.UP,b=t===st.DOWN,v=t===st.LEFT,g=t===st.RIGHT,C=t===st.TAB,S=t===st.ESCAPE,w=t===st.ENTER,D=t===st.SPACE,H=u||v,z=v||g,U=u||b,K=z||U,W=e.shiftKey,q=W||e.ctrlKey||e.altKey||e.metaKey,$=U?kr.isVerticalEdge:kr.isHorizontalEdge;if(_){var Y,X=C&&W||u,Q=C&&!W||b,Z=v,J=g;if(X)Y=m;else if(Q)Y=O;else if(Z){var ee;Y=null!==(ee=B(d))&&void 0!==ee?ee:d}else if(J){var te;Y=null!==(te=x([d])[0])&&void 0!==te?te:d}var ne=E();if(ne&&Y&&G(P(T(ne),B(Y))),S&&ne&&(F(null),G(!1)),(w||D)&&ne){var re=B(ne),oe=B(d),ce=I(ne,re),ie=I(d,oe);cen}));if(r&&(r.id||(r=r.firstElementChild))){var o=r.id.slice("block-".length);if(o){var a=r.getBoundingClientRect();e.clientX>a.right||e.clientX-1&&Object(Le.speak)(k)}),[]);var j=Object(c.getBlockType)(a),k=Object(c.__experimentalGetAccessibleBlockLabel)(j,s,i+1,f),y=b()("block-editor-block-list__block-selection-button",{"is-block-moving-mode":!!d});return Object(u.createElement)("div",Object(l.a)({className:y},r),Object(u.createElement)(h.Button,{ref:g,onClick:function(){return m(!1)},onKeyDown:function(e){var n=e.keyCode;n!==st.BACKSPACE&&n!==st.DELETE||(O(t),e.preventDefault())},label:k},Object(u.createElement)(Zn,{clientId:t})))};function ms(e,t,n){var r=Object(u.useState)(t),o=Object(re.a)(r,1)[0],c=Object(u.useCallback)((function(){var t,n,r;t=e.current,n=kr.focus.tabbable.find(t),(r=Object(re.a)(n,1)[0])&&r.focus()}),[]);Object(a.useShortcut)("core/block-editor/focus-toolbar",c,{bindGlobal:!0,eventName:"keydown"}),Object(u.useEffect)((function(){o&&c()}),[n,o,c])}var vs=function(e){var t=e.children,n=e.focusOnMount,r=Object(he.a)(e,["children","focusOnMount"]),o=Object(u.useRef)(),c=function(e){var t=Object(u.useState)(!0),n=Object(re.a)(t,2),r=n[0],o=n[1],c=Object(u.useCallback)((function(){var t=kr.focus.tabbable.find(e.current),n=!t.some((function(e){return!("toolbarItem"in e.dataset)}));n||to()("Using custom components as toolbar controls",{alternative:"ToolbarItem or ToolbarButton components",link:"https://developer.wordpress.org/block-editor/components/toolbar-button/#inside-blockcontrols"}),o(n)}),[]);return Object(u.useLayoutEffect)((function(){var t=new window.MutationObserver(c);return t.observe(e.current,{childList:!0,subtree:!0}),function(){return t.disconnect()}}),[r]),r}(o);return ms(o,n,c),c?Object(u.createElement)(h.Toolbar,Object(l.a)({label:r["aria-label"],ref:o},r),t):Object(u.createElement)(h.NavigableMenu,Object(l.a)({orientation:"horizontal",role:"toolbar",ref:o},r),t)},Os=Object(u.createElement)(j.SVG,{width:"18",height:"18",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 18 18"},Object(u.createElement)(j.Path,{d:"M5 4h2V2H5v2zm6-2v2h2V2h-2zm-6 8h2V8H5v2zm6 0h2V8h-2v2zm-6 6h2v-2H5v2zm6 0h2v-2h-2v2z"}));function gs(e){var t=e.clientIds,n=Object(v.useSelect)((function(e){var n;if(1===t.length){var r=(0,e("core/block-editor").getBlockName)(Object(re.a)(t,1)[0]);return null===(n=Object(c.getBlockType)(r))||void 0===n?void 0:n.icon}}),[t]);return Object(u.createElement)("div",{className:"block-editor-block-draggable-chip-wrapper"},Object(u.createElement)("div",{className:"block-editor-block-draggable-chip"},Object(u.createElement)(h.Flex,{justify:"center",className:"block-editor-block-draggable-chip__content"},Object(u.createElement)(h.FlexItem,null,n?Object(u.createElement)(qn,{icon:n}):Object(g.sprintf)(Object(g._n)("%d block","%d blocks",t.length),t.length)),Object(u.createElement)(h.FlexItem,null,Object(u.createElement)(qn,{icon:Os})))))}var hs=function(e){var t,n,r,o,c=e.children,i=e.clientIds,a=e.cloneClassname,l=e.onDragStart,s=e.onDragEnd,d=e.elementId,b=Object(v.useSelect)((function(e){var t=e("core/block-editor"),n=t.getBlockRootClientId,r=t.getTemplateLock,o=n(i[0]);return{srcRootClientId:o,isDraggable:"all"!==(o?r(o):null)}}),[i]),f=b.srcRootClientId,p=b.isDraggable,m=Object(u.useRef)(!1),O=(t=Object(u.useRef)(null),n=Object(u.useRef)(null),r=Object(u.useRef)(null),o=Object(u.useRef)(null),Object(u.useEffect)((function(){return function(){o.current&&(clearInterval(o.current),o.current=null)}}),[]),[Object(u.useCallback)((function(e){t.current=e.clientY,r.current=Object(kr.getScrollContainer)(e.target),o.current=setInterval((function(){if(r.current&&n.current){var e=r.current.scrollTop+n.current;r.current.scroll({top:e})}}),25)}),[]),Object(u.useCallback)((function(e){if(r.current){var o=r.current.offsetHeight,c=t.current-r.current.offsetTop,i=e.clientY-r.current.offsetTop;if(e.clientY>c){var a=Math.max(o-c-50,0),l=Math.max(i-c-50,0)/a;n.current=25*l}else if(e.clientY=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var c,i=!0,a=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return i=e.done,e},e:function(e){a=!0,c=e},f:function(){try{i||null==n.return||n.return()}finally{if(a)throw c}}}}function Es(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0}})),Object(v.withDispatch)((function(e,t){return{onTransform:function(n,r){e("core/block-editor").replaceBlocks(t.clientIds,Object(c.switchToBlockType)(n,r))}}})))(Ds),As=n(41);function Ms(){var e=Object(v.useSelect)((function(e){return e("core/block-editor")}),[]).getBlockName,t=Object(v.useSelect)((function(e){return e("core/blocks")}),[]).getBlockType,n=Object(v.useDispatch)("core/notices").createSuccessNotice;return Object(u.useCallback)((function(r,o){var c="";if(1===o.length){var i=o[0],a=t(e(i)).title;c="copy"===r?Object(g.sprintf)(Object(g.__)('Copied "%s" to clipboard.'),a):Object(g.sprintf)(Object(g.__)('Moved "%s" to clipboard.'),a)}else c="copy"===r?Object(g.sprintf)(Object(g._n)("Copied %d block to clipboard.","Copied %d blocks to clipboard.",o.length),o.length):Object(g.sprintf)(Object(g._n)("Moved %d block to clipboard.","Moved %d blocks to clipboard.",o.length),o.length);n(c,{type:"snackbar"})}),[])}var Ls=function(e){var t=e.children,n=Object(u.useRef)(),r=Object(v.useSelect)((function(e){return e("core/block-editor")}),[]),o=r.getBlocksByClientId,i=r.getSelectedBlockClientIds,a=r.hasMultiSelection,l=r.getSettings,s=Object(v.useDispatch)("core/block-editor"),d=s.flashBlock,b=s.removeBlocks,p=s.replaceBlocks,m=Ms(),O=l().__experimentalCanUserUseUnfilteredHTML,g=function(e){var t=i();if(0!==t.length){if(!a()){var r=e.target.ownerDocument;if("copy"===e.type||"cut"===e.type?Object(kr.documentHasUncollapsedSelection)(r):Object(kr.documentHasSelection)(r))return}if(n.current.contains(e.target)){if(e.preventDefault(),"copy"===e.type||"cut"===e.type){1===t.length&&d(t[0]),m(e.type,t);var l=o(t),s=Object(c.serialize)(l);e.clipboardData.setData("text/plain",s),e.clipboardData.setData("text/html",s)}if("cut"===e.type)b(t);else if("paste"===e.type){var u=function(e){var t=e.clipboardData,n=t.items,r=t.files;n=Object(f.isNil)(n)?[]:n,r=Object(f.isNil)(r)?[]:r;var o="",c="";try{o=t.getData("text/plain"),c=t.getData("text/html")}catch(e){try{c=t.getData("Text")}catch(e){return}}return r=Array.from(r),Array.from(n).forEach((function(e){if(e.getAsFile){var t=e.getAsFile();if(t){var n=t.name,o=t.type,c=t.size;Object(f.find)(r,{name:n,type:o,size:c})||r.push(t)}}})),(r=r.filter((function(e){var t=e.type;return/^image\/(?:jpe?g|png|gif)$/.test(t)}))).length&&!c&&(c=r.map((function(e){return'')})).join(""),o=""),{html:c,plainText:o}}(e),v=u.plainText,g=u.html,h=Object(c.pasteHandler)({HTML:g,plainText:v,mode:"BLOCKS",canUserUseUnfilteredHTML:O});p(t,h,h.length-1,-1)}}}};return Object(u.createElement)("div",{ref:n,onCopy:g,onCut:g,onPaste:g},t)};function Fs(e){var t=e.clientIds,n=e.children,r=e.__experimentalUpdateSelection,o=Object(v.useSelect)((function(e){return e("core/block-editor")}),[]),i=o.canInsertBlockType,a=o.getBlockRootClientId,l=o.getBlocksByClientId,s=o.getTemplateLock,u=Object(v.useSelect)((function(e){return e("core/blocks")}),[]),d=u.getDefaultBlockName,b=u.getGroupingBlockName,p=l(t),m=a(t[0]),O=Object(f.every)(p,(function(e){return!!e&&Object(c.hasBlockSupport)(e.name,"multiple",!0)&&i(e.name,m)})),g=i(d(),m),h=Object(v.useDispatch)("core/block-editor"),j=h.removeBlocks,k=h.replaceBlocks,y=h.duplicateBlocks,_=h.insertAfterBlock,E=h.insertBeforeBlock,C=h.flashBlock,S=h.setBlockMovingClientId,w=h.setNavigationMode,I=h.selectBlock,B=Ms();return n({canDuplicate:O,canInsertDefaultBlock:g,isLocked:!!s(m),rootClientId:m,blocks:p,onDuplicate:function(){return y(t,r)},onRemove:function(){return j(t,r)},onInsertBefore:function(){E(Object(f.first)(Object(f.castArray)(t)))},onInsertAfter:function(){_(Object(f.last)(Object(f.castArray)(t)))},onMoveTo:function(){w(!0),I(t[0]),S(t[0])},onGroup:function(){if(p.length){var e=b(),n=Object(c.switchToBlockType)(p,e);n&&k(t,n)}},onUngroup:function(){if(p.length){var e=p[0].innerBlocks;e.length&&k(t,e)}},onCopy:function(){var e=p.map((function(e){return e.clientId}));1===p.length&&C(e[0]),B("copy",e)}})}var Vs=Object(p.compose)([Object(v.withSelect)((function(e,t){var n=t.clientId,r=e("core/block-editor"),o=r.getBlock,i=r.getBlockMode,a=r.getSettings,l=o(n),s=a().codeEditingEnabled;return{mode:i(n),blockType:l?Object(c.getBlockType)(l.name):null,isCodeEditingEnabled:s}})),Object(v.withDispatch)((function(e,t){var n=t.onToggle,r=void 0===n?f.noop:n,o=t.clientId;return{onToggleMode:function(){e("core/block-editor").toggleBlockMode(o),r()}}}))])((function(e){var t=e.blockType,n=e.mode,r=e.onToggleMode,o=e.small,i=void 0!==o&&o,a=e.isCodeEditingEnabled,l=void 0===a||a;if(!Object(c.hasBlockSupport)(t,"html",!0)||!l)return null;var s="visual"===n?Object(g.__)("Edit as HTML"):Object(g.__)("Edit visually");return Object(u.createElement)(h.MenuItem,{onClick:r},!i&&s)}));var Hs=Object(p.compose)(Object(v.withSelect)((function(e,t){var n=t.clientId,r=e("core/block-editor").getBlock(n);return{block:r,shouldRender:r&&"core/html"===r.name}})),Object(v.withDispatch)((function(e,t){var n=t.block;return{onClick:function(){return e("core/block-editor").replaceBlocks(n.clientId,Object(c.rawHandler)({HTML:Object(c.getBlockContent)(n)}))}}})))((function(e){var t=e.shouldRender,n=e.onClick,r=e.small;if(!t)return null;var o=Object(g.__)("Convert to Blocks");return Object(u.createElement)(h.MenuItem,{onClick:n},!r&&o)})),zs=Object(h.createSlotFill)("__experimentalBlockSettingsMenuFirstItem"),Us=zs.Fill,Gs=zs.Slot;Us.Slot=Gs;var Ks=Us;function Ws(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function qs(e){for(var t=1;t1,x=b()("block-editor-block-toolbar",w&&"is-showing-movers"),P=r?cu.a:"div";return Object(u.createElement)(P,{className:x},Object(u.createElement)("div",Object(l.a)({ref:y},C),!B&&Object(u.createElement)("div",{className:"block-editor-block-toolbar__block-parent-selector-wrapper"},Object(u.createElement)(ks,{clientIds:i})),(I||B)&&Object(u.createElement)(h.ToolbarGroup,{className:"block-editor-block-toolbar__block-controls"},Object(u.createElement)(Rs,{clientIds:i}),Object(u.createElement)(js,{clientIds:i,hideDragHandle:t||m}))),I&&Object(u.createElement)(u.Fragment,null,Object(u.createElement)(O.a.Slot,{bubblesVirtually:!0,className:"block-editor-block-toolbar__slot"}),Object(u.createElement)(mr.Slot,{bubblesVirtually:!0,className:"block-editor-block-toolbar__slot"})),Object(u.createElement)(eu,{clientIds:i}))}var au=function(e){var t=e.focusOnMount,n=Object(he.a)(e,["focusOnMount"]),r=Object(v.useSelect)((function(e){var t=e("core/block-editor"),n=t.getBlockName,r=t.getSelectedBlockClientIds,o=e("core/blocks").getBlockType,c=r()[0];return{blockType:c&&o(n(c))}}),[]).blockType;return r&&!Object(c.hasBlockSupport)(r,"__experimentalToolbar",!0)?null:Object(u.createElement)("div",{className:"block-editor-block-contextual-toolbar-wrapper"},Object(u.createElement)(vs,Object(l.a)({focusOnMount:t,className:"block-editor-block-contextual-toolbar","aria-label":Object(g.__)("Block tools")},n),Object(u.createElement)(iu,null)))};function lu(e){var t=e("core/block-editor"),n=t.isNavigationMode,r=t.isMultiSelecting,o=t.hasMultiSelection,c=t.isTyping,i=t.isCaretWithinFormattedText,a=t.getSettings,l=t.getLastMultiSelectedBlockClientId;return{isNavigationMode:n(),isMultiSelecting:r(),isTyping:c(),isCaretWithinFormattedText:i(),hasMultiSelection:o(),hasFixedToolbar:a().hasFixedToolbar,lastClientId:l()}}function su(e){var t=e.clientId,n=e.rootClientId,r=e.isValid,o=e.isEmptyDefaultBlock,c=e.capturingClientId,i=Object(v.useSelect)(lu,[]),l=i.isNavigationMode,s=i.isMultiSelecting,d=i.isTyping,f=i.isCaretWithinFormattedText,m=i.hasMultiSelection,O=i.hasFixedToolbar,g=i.lastClientId,j=Object(p.useViewportMatch)("medium"),k=Object(u.useState)(!1),y=Object(re.a)(k,2),_=y[0],E=y[1],C=Object(u.useState)(!1),S=Object(re.a)(C,2),w=S[0],I=S[1],B=Object(u.useContext)(fu),x=!d&&!l&&o&&r,P=l,T=!l&&!O&&j&&!x&&!s&&(!d||f),N=!(l||T||O||o);if(Object(a.useShortcut)("core/block-editor/focus-toolbar",Object(u.useCallback)((function(){return E(!0)}),[]),{bindGlobal:!0,eventName:"keydown",isDisabled:!N}),!(P||T||_||x))return null;var D=B[t];if(c&&(D=document.getElementById("block-"+c)),!D)return null;var R=D;if(m){var A=B[g];if(!A)return null;R={top:D,bottom:A}}var M=x?"top left right":"top right left";return Object(u.createElement)(h.Popover,{noArrow:!0,animate:!1,position:M,focusOnMount:!1,anchorRef:R,className:"block-editor-block-list__block-popover",__unstableSticky:!x,__unstableSlotName:"block-toolbar",__unstableBoundaryParent:!0,__unstableObserveElement:D,onBlur:function(){return E(!1)},shouldAnchorIncludePadding:!0},(T||_)&&Object(u.createElement)("div",{onFocus:function(){I(!0)},onBlur:function(){I(!1)},tabIndex:-1,className:b()("block-editor-block-list__block-popover-inserter",{"is-visible":w})},Object(u.createElement)(cs,{clientId:t,rootClientId:n,__experimentalIsQuick:!0})),(T||_)&&Object(u.createElement)(au,{focusOnMount:_}),P&&Object(u.createElement)(ps,{clientId:t,rootClientId:n}),x&&Object(u.createElement)("div",{className:"block-editor-block-list__empty-block-inserter"},Object(u.createElement)(cs,{position:"bottom right",rootClientId:n,clientId:t,__experimentalIsQuick:!0})))}function uu(e){var t=e("core/block-editor"),n=t.getSelectedBlockClientId,r=t.getFirstMultiSelectedBlockClientId,o=t.getBlockRootClientId,i=t.__unstableGetBlockWithoutInnerBlocks,a=t.getBlockParents,l=t.__experimentalGetBlockListSettingsForBlocks,s=n()||r();if(s){var u,d=i(s)||{},b=d.name,p=d.attributes,m=void 0===p?{}:p,v=d.isValid,O=a(s),g=l(O),h=Object(f.findIndex)(g,["__experimentalCaptureToolbars",!0]);return-1!==h&&(u=O[h]),{clientId:s,rootClientId:o(s),name:b,isValid:v,isEmptyDefaultBlock:b&&Object(c.isUnmodifiedDefaultBlock)({name:b,attributes:m}),capturingClientId:u}}}function du(){var e=Object(v.useSelect)(uu,[]);if(!e)return null;var t=e.clientId,n=e.rootClientId,r=e.name,o=e.isValid,c=e.isEmptyDefaultBlock,i=e.capturingClientId;return r?Object(u.createElement)(su,{clientId:t,rootClientId:n,isValid:o,isEmptyDefaultBlock:c,capturingClientId:i}):null}var bu=Object(u.createContext)(),fu=Object(u.createContext)(),pu=Object(u.createContext)();function mu(e){var t=e("core/block-editor"),n=t.getSelectedBlockClientId,r=t.hasMultiSelection;return{selectedBlockClientId:n(),hasMultiSelection:r()}}function vu(e){Ye(e.target)&&e.preventDefault()}var Ou=Object(u.forwardRef)((function(e,t){var n=e.children,r=e.className,o=Object(v.useSelect)(mu,[]),c=o.selectedBlockClientId,i=o.hasMultiSelection,a=Object(v.useDispatch)("core/block-editor").selectBlock,l=function(e){var t=Object(v.useSelect)(ro,[]),n=t.isSelectionEnabled,r=t.isMultiSelecting,o=t.multiSelectedBlockClientIds,c=t.hasMultiSelection,i=t.getBlockParents,a=t.selectedBlockClientId,l=Object(v.useDispatch)("core/block-editor"),s=l.startMultiSelect,d=l.stopMultiSelect,b=l.multiSelect,f=l.selectBlock,p=Object(u.useRef)(),m=Object(u.useRef)(),O=Object(u.useRef)();Object(u.useEffect)((function(){var t=e.current.ownerDocument,n=t.defaultView;if(c&&!r){var i=o.length;if(!(i<2)){var l=o[0],s=o[i-1],u=qe(l),d=qe(s),b=n.getSelection(),f=t.createRange();u=no(u,"start"),d=no(d,"end"),f.setStartBefore(u),f.setEndAfter(d),b.removeAllRanges(),b.addRange(f)}}else{if(!a||r)return;var p=n.getSelection();if(p.rangeCount&&!p.isCollapsed){var m=qe(a),v=p.getRangeAt(0),O=v.startContainer,g=v.endContainer;!m||m.contains(O)&&m.contains(g)||p.removeAllRanges()}}}),[c,r,o,f,a]);var g=Object(u.useCallback)((function(t){var n=t.isSelectionEnd,r=e.current.ownerDocument.defaultView.getSelection();if(r.rangeCount&&!r.isCollapsed){var o=Ye(r.focusNode);if(m.current===o){if(f(o),n&&(oo(e.current,!0),r.rangeCount)){var c=r.getRangeAt(0).commonAncestorContainer;O.current.contains(c)&&O.current.focus()}}else{var a=[].concat(Object(ne.a)(i(m.current)),[m.current]),l=[].concat(Object(ne.a)(i(o)),[o]),s=Math.min(a.length,l.length)-1;b(a[s],l[s])}}else oo(e.current,!0)}),[f,i,b]),h=Object(u.useCallback)((function(){var t=e.current.ownerDocument,n=t.defaultView;t.removeEventListener("selectionchange",g),n.removeEventListener("mouseup",h),p.current=n.requestAnimationFrame((function(){g({isSelectionEnd:!0}),d()}))}),[g,d]);return Object(u.useEffect)((function(){var t=e.current.ownerDocument,n=t.defaultView;return function(){t.removeEventListener("selectionchange",g),n.removeEventListener("mouseup",h),n.cancelAnimationFrame(p.current)}}),[g,h]),Object(u.useCallback)((function(t){if(n){var r=e.current.ownerDocument,o=r.defaultView;m.current=t,O.current=r.activeElement,s(),r.addEventListener("selectionchange",g),o.addEventListener("mouseup",h),oo(e.current,!1)}}),[n,s,h])}(t),s=Object(u.useState)({}),d=Object(re.a)(s,2),f=d[0],p=d[1];return Object(u.createElement)(fs,{containerRef:t},Object(u.createElement)(fu.Provider,{value:f},Object(u.createElement)(du,null),Object(u.createElement)("div",{ref:t,className:b()(r,"is-root-container"),onFocus:function(e){if(!i){var t=Ye(e.target);t&&t!==c&&a(t)}},onDragStart:vu},Object(u.createElement)(pu.Provider,{value:p},Object(u.createElement)(bu.Provider,{value:l},n)))))})),gu=["p","div","h1","h2","h3","h4","h5","h6","ol","ul","li","figure","nav","pre","header","section","aside","footer","main"];function hu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ju(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.__unstableIsHtml,r=Object(u.useRef)(),o=e.ref||r,c=Object(u.useContext)(bu),i=Object(u.useContext)(pu),a=Object(u.useContext)(Su),l=a.clientId,d=a.rootClientId,p=a.isSelected,m=a.isFirstMultiSelected,O=a.isLastMultiSelected,h=a.isPartOfMultiSelection,j=a.enableAnimation,k=a.index,y=a.className,_=a.name,E=a.mode,C=a.blockTitle,S=a.wrapperProps,w=void 0===S?{}:S,I=Object(v.useSelect)((function(e){var t=e("core/block-editor"),n=t.getSelectedBlocksInitialCaretPosition,r=t.isMultiSelecting,o=t.isNavigationMode;return{shouldFocusFirstElement:p&&!r()&&!o(),initialPosition:p?n():void 0,isNavigationMode:o}}),[p]),B=I.initialPosition,x=I.shouldFocusFirstElement,P=I.isNavigationMode,T=Object(v.useDispatch)("core/block-editor"),N=T.insertDefaultBlock,D=T.removeBlock,R=Object(u.useState)(!1),A=Object(re.a)(R,2),M=A[0],L=A[1];Object(u.useEffect)((function(){if(p||m||O){var e=o.current;return i((function(t){return ju(ju({},t),{},Object(s.a)({},l,e))})),function(){i((function(e){return Object(f.omit)(e,l)}))}}}),[p,m,O]),Object(u.useEffect)((function(){var e=o.current;i((function(t){return t[l]&&t[l]!==e?ju(ju({},t),{},Object(s.a)({},l,e)):t}))}));var F=Object(g.sprintf)(Object(g.__)("Block: %s"),C),V=function(){var e=o.current.ownerDocument;if(!e.activeElement||!$e(o.current,e.activeElement)){var t=kr.focus.tabbable.find(o.current).filter((function(e){return Object(kr.isTextField)(e)&&$e(o.current,e)&&!e.closest(".block-list-appender")})),n=-1===B,r=(n?f.last:f.first)(t)||o.current;Object(kr.placeCaretAtHorizontalEdge)(r,n)}};Object(u.useEffect)((function(){x&&V()}),[x]),Er(o,p||h,p||m,j,k),Object(u.useEffect)((function(){if(p)return o.current.addEventListener("keydown",e),o.current.addEventListener("mouseleave",t),function(){o.current.removeEventListener("mouseleave",t),o.current.removeEventListener("keydown",e)};function e(e){var t=e.keyCode,n=e.target;t!==st.ENTER&&t!==st.BACKSPACE&&t!==st.DELETE||n!==o.current||Object(kr.isTextField)(n)||(e.preventDefault(),t===st.ENTER?N({},d,k+1):D(l))}function t(e){1===e.buttons&&c(l)}}),[p,c,N,D]),Object(u.useEffect)((function(){if(P)return o.current.addEventListener("mouseover",e),o.current.addEventListener("mouseout",t),function(){o.current.removeEventListener("mouseover",e),o.current.removeEventListener("mouseout",t)};function e(e){e.defaultPrevented||(e.preventDefault(),M||L(!0))}function t(e){e.defaultPrevented||(e.preventDefault(),M&&L(!1))}}),[P,M,L]);var H="html"!==E||n?"":"-visual";return ju(ju(ju({},w),e),{},{ref:o,id:"block-".concat(l).concat(H),tabIndex:0,role:"group","aria-label":F,"data-block":l,"data-type":_,"data-title":C,className:b()(y,e.className,w.className,{"is-hovered":M}),style:ju(ju({},w.style),e.style)})}ku.save=c.__unstableGetBlockProps;var yu=Object(u.forwardRef)((function(e,t){var n=e.children,r=e.tagName,o=void 0===r?"div":r,c=Object(he.a)(e,["children","tagName"]);to()("wp.blockEditor.__experimentalBlock",{alternative:"wp.blockEditor.useBlockProps"});var i=ku(ju(ju({},c),{},{ref:t}));return Object(u.createElement)(o,i,n)})),_u=gu.reduce((function(e,t){return e[t]=Object(u.forwardRef)((function(e,n){return Object(u.createElement)(yu,Object(l.a)({},e,{ref:n,tagName:t}))})),e}),yu);function Eu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Cu(e){for(var t=1;t1||Object(c.hasBlockSupport)(q,"lightBlockWrapper",!1),Y=E===Object(c.getUnregisteredTypeHandlerName)();q.getEditWrapperProps&&(t=w,n=q.getEditWrapperProps(S),r=Cu(Cu({},t),n),t&&n&&t.className&&n.className&&(r.className=b()(t.className,n.className)),t&&n&&t.style&&n.style&&(r.style=Cu(Cu({},t.style),n.style)),w=r);var X=$&&Object(c.hasBlockSupport)(q,"className",!0)?Object(c.getBlockDefaultClassName)(E):null,Q=$?S.className:null,Z=w&&!!w["data-align"],J=b()(X,Q,"block-editor-block-list__block",{"wp-block":!Z,"has-warning":!C||!!K||Y,"is-selected":d&&!L,"is-highlighted":F,"is-multi-selected":m,"is-reusable":Object(c.isReusableBlock)(q),"is-dragging":L,"is-typing":j,"is-focused":V&&A&&(d||k),"is-focus-mode":V&&A,"has-child-selected":k&&!L,"is-active-entity":R===a},_),ee=Object(u.createElement)(ur,{name:E,isSelected:d,attributes:S,setAttributes:I,insertBlocksAfter:i?void 0:x,onReplace:i?void 0:B,onRemove:i?void 0:z,mergeBlocks:i?void 0:P,clientId:a,isSelectionEnabled:y,toggleSelection:T});if(Z){var te={"data-align":w["data-align"]};ee=Object(u.createElement)("div",Object(l.a)({className:"wp-block"},te),ee)}var ne,oe={clientId:a,rootClientId:s,isSelected:d,isFirstMultiSelected:g,isLastMultiSelected:h,isPartOfMultiSelection:O,enableAnimation:D,index:N,className:J,isLocked:i,name:E,mode:o,blockTitle:q.title,wrapperProps:Object(f.omit)(w,["data-align"])},ce=Object(u.useMemo)((function(){return oe}),Object.values(oe));return ne=C?"html"===o?Object(u.createElement)(u.Fragment,null,Object(u.createElement)("div",{style:{display:"none"}},ee),Object(u.createElement)(wu,{isHtml:!0},Object(u.createElement)(Jr,{clientId:a}))):$?ee:Object(u.createElement)(wu,w,ee):Object(u.createElement)(wu,null,Object(u.createElement)(Wr,{clientId:a}),Object(u.createElement)("div",null,Object(c.getSaveElement)(q,S))),Object(u.createElement)(Su.Provider,{value:ce},Object(u.createElement)(Xr,{onError:function(){return W(!0)}},ne),!!K&&Object(u.createElement)(wu,null,Object(u.createElement)($r,null)))})),Pu=function(e,t,n){return Object(g.sprintf)(Object(g.__)("Block %1$d of %2$d, Level %3$d"),e,t,n)};var Tu=Object(u.forwardRef)((function e(t,n){var r=t.className,o=t.block,i=t.isSelected,a=t.onClick,l=t.position,s=t.siblingBlockCount,d=t.level,f=t.tabIndex,m=t.onFocus,v=t.onDragStart,O=t.onDragEnd,j=t.draggable,k=o.name,y=o.attributes,_=Object(c.getBlockType)(k),E=Object(c.__experimentalGetBlockLabel)(_,y),C=Object(p.useInstanceId)(e),S="block-navigation-block-select-button__".concat(C),w=Pu(l,s,d);return Object(u.createElement)(u.Fragment,null,Object(u.createElement)(h.Button,{className:b()("block-editor-block-navigation-block-select-button",r),onClick:a,"aria-describedby":S,ref:n,tabIndex:f,onFocus:m,onDragStart:v,onDragEnd:O,draggable:j},Object(u.createElement)(qn,{icon:_.icon,showColors:!0}),E,i&&Object(u.createElement)(h.VisuallyHidden,null,Object(g.__)("(selected block)"))),Object(u.createElement)("div",{className:"block-editor-block-navigation-block-select-button__description",id:S},w))}));function Nu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Du(e){for(var t=1;t0,B=O||_,x=b()("block-editor-block-navigation-block__mover-cell",{"is-visible":B}),P=Fr().__experimentalFeatures,T=b()("block-editor-block-navigation-block__menu-cell",{"is-visible":B});return Object(u.useEffect)((function(){P&&n&&f.current.focus()}),[P,n]),Object(u.createElement)(Sr,{className:b()({"is-selected":n,"is-dragging":S}),onMouseEnter:function(){return j(!0)},onMouseLeave:function(){return j(!1)},onFocus:function(){return E(!0)},onBlur:function(){return E(!1)},level:c,position:o,rowCount:i,path:d,id:"block-navigation-block-".concat(C),"data-block":C},Object(u.createElement)(h.__experimentalTreeGridCell,{className:"block-editor-block-navigation-block__contents-cell",colSpan:I?void 0:2,ref:f},(function(e){var l=e.ref,d=e.tabIndex,b=e.onFocus;return Object(u.createElement)("div",{className:"block-editor-block-navigation-block__contents-container"},Object(u.createElement)(Mr,{level:c,isLastRow:o===i,terminatedLevels:s}),Object(u.createElement)(Lu,{block:t,onClick:function(){return r(t.clientId)},isSelected:n,position:o,siblingBlockCount:a,level:c,ref:l,tabIndex:d,onFocus:b}))})),I&&Object(u.createElement)(u.Fragment,null,Object(u.createElement)(h.__experimentalTreeGridCell,{className:x,withoutGridItem:!0},Object(u.createElement)(h.__experimentalTreeGridItem,null,(function(e){var t=e.ref,n=e.tabIndex,r=e.onFocus;return Object(u.createElement)(Rr,{orientation:"vertical",clientIds:[C],ref:t,tabIndex:n,onFocus:r})})),Object(u.createElement)(h.__experimentalTreeGridItem,null,(function(e){var t=e.ref,n=e.tabIndex,r=e.onFocus;return Object(u.createElement)(Ar,{orientation:"vertical",clientIds:[C],ref:t,tabIndex:n,onFocus:r})})))),P&&Object(u.createElement)(h.__experimentalTreeGridCell,{className:T},(function(e){var t=e.ref,n=e.tabIndex,o=e.onFocus;return Object(u.createElement)(Js,{clientIds:[C],icon:hr.a,toggleProps:{ref:t,tabIndex:n,onFocus:o},disableOpenOnArrowDown:!0,__experimentalSelectBlock:r},(function(e){var t=e.onClose;return Object(u.createElement)(h.MenuGroup,null,Object(u.createElement)(h.MenuItem,{onClick:Object(gr.a)(Or.a.mark((function e(){return Or.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,w(null);case 2:return e.next=4,w(C);case 4:t();case 5:case"end":return e.stop()}}),e)})))},Object(g.__)("Go to block")))}))})))}function Vu(e){var t=e.parentBlockClientId,n=e.position,r=e.level,o=e.rowCount,c=e.terminatedLevels,i=e.path,a=Object(v.useSelect)((function(e){var n=e("core/block-editor"),r=n.isBlockBeingDragged,o=n.isAncestorBeingDragged;return r(t)||o(t)}),[t]),l=Object(p.useInstanceId)(Vu),s="block-navigation-appender-row__description_".concat(l),d=Object(g.sprintf)(Object(g.__)("Add block at position %1$d, Level %2$d"),n,r);return Object(u.createElement)(Sr,{className:b()({"is-dragging":a}),level:r,position:n,rowCount:o,path:i},Object(u.createElement)(h.__experimentalTreeGridCell,{className:"block-editor-block-navigation-appender__cell",colSpan:"3"},(function(e){var i=e.ref,a=e.tabIndex,l=e.onFocus;return Object(u.createElement)("div",{className:"block-editor-block-navigation-appender__container"},Object(u.createElement)(Mr,{level:r,isLastRow:n===o,terminatedLevels:c}),Object(u.createElement)(cs,{rootClientId:t,__experimentalIsQuick:!0,__experimentalSelectBlockOnInsert:!1,"aria-describedby":s,toggleProps:{ref:i,tabIndex:a,onFocus:l}}),Object(u.createElement)("div",{className:"block-editor-block-navigation-appender__description",id:s},d))})))}function Hu(e){var t=e.blocks,n=e.selectBlock,r=e.selectedBlockClientId,o=e.showAppender,c=e.showBlockMovers,i=e.showNestedBlocks,a=e.parentBlockClientId,l=e.level,s=void 0===l?1:l,d=e.terminatedLevels,b=void 0===d?[]:d,p=e.path,m=void 0===p?[]:p,v=!a,O=Object(f.compact)(t),g=function(e){return o&&!v&&r===e},h=g(a),j=O.length,k=h?j+1:j,y=k;return Object(u.createElement)(u.Fragment,null,Object(f.map)(O,(function(e,t){var a=e.clientId,l=e.innerBlocks,d=t+1,f=k===d?[].concat(Object(ne.a)(b),[s]):b,p=[].concat(Object(ne.a)(m),[d]),v=i&&!!l&&!!l.length,O=g(a);return Object(u.createElement)(u.Fragment,{key:a},Object(u.createElement)(Fu,{block:e,onClick:n,isSelected:r===a,level:s,position:d,rowCount:k,siblingBlockCount:j,showBlockMovers:c,terminatedLevels:b,path:p}),(v||O)&&Object(u.createElement)(Hu,{blocks:l,selectedBlockClientId:r,selectBlock:n,showAppender:o,showBlockMovers:c,showNestedBlocks:i,parentBlockClientId:a,level:s+1,terminatedLevels:f,path:p}))})),h&&Object(u.createElement)(Vu,{parentBlockClientId:a,position:k,rowCount:y,level:s,terminatedLevels:b,path:[].concat(Object(ne.a)(m),[y])}))}function zu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Uu(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return Gu(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Gu(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var c,i=!0,a=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return i=e.done,e},e:function(e){a=!0,c=e},f:function(){try{i||null==n.return||n.return()}finally{if(a)throw c}}}}function Gu(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.x&&t.top<=e.y&&t.bottom>=e.y}Hu.defaultProps={selectBlock:function(){}};var Wu=["top","bottom"];function qu(e){var t=Object(u.useState)(),n=Object(re.a)(t,2),r=n[0],o=void 0===r?{}:r,c=n[1],i=ol(o.rootClientId,o.blockIndex),a=Object(h.__unstableUseDropZone)(function(e){for(var t=1;t0||function(e,t){var n=t.left+t.width/2;return e.x>n}(t,c)))return{rootClientId:r.clientId,blockIndex:0,dropPosition:"inside"};if(r.canInsertDraggedBlocksAsSibling){var g=O?1:0;return{rootClientId:r.rootClientId,clientId:r.clientId,blockIndex:r.blockIndex+g,dropPosition:n}}}}(b.current,l);e&&c(e)}}),[b,l]),l)return o}function $u(e){var t=e.__experimentalFeatures,n=Object(he.a)(e,["__experimentalFeatures"]),r=Object(u.useRef)(),o=qu(r);t||(o=void 0);var c=Object(u.useMemo)((function(){return{__experimentalFeatures:t,blockDropTarget:o}}),[t,o]);return Object(u.createElement)(h.__experimentalTreeGrid,{className:"block-editor-block-navigation-tree","aria-label":Object(g.__)("Block navigation structure"),ref:r},Object(u.createElement)(Lr.Provider,{value:c},Object(u.createElement)(Hu,n)))}var Yu=Object(p.compose)(Object(v.withSelect)((function(e){var t=e("core/block-editor"),n=t.getSelectedBlockClientId,r=t.getBlockHierarchyRootClientId,o=t.__unstableGetBlockWithBlockTree,c=t.__unstableGetBlockTree,i=n();return{rootBlocks:c(),rootBlock:i?o(r(i)):null,selectedBlockClientId:i}})),Object(v.withDispatch)((function(e,t){var n=t.onSelect,r=void 0===n?f.noop:n;return{selectBlock:function(t){e("core/block-editor").selectBlock(t),r(t)}}})))((function(e){var t=e.rootBlock,n=e.rootBlocks,r=e.selectedBlockClientId,o=e.selectBlock,c=e.__experimentalFeatures;if(!n||0===n.length)return null;var i=t&&(t.clientId!==r||t.innerBlocks&&0!==t.innerBlocks.length);return Object(u.createElement)("div",{className:"block-editor-block-navigation__container"},Object(u.createElement)("p",{className:"block-editor-block-navigation__label"},Object(g.__)("List view")),i&&Object(u.createElement)($u,{blocks:[t],selectedBlockClientId:r,selectBlock:o,__experimentalFeatures:c,showNestedBlocks:!0}),!i&&Object(u.createElement)($u,{blocks:n,selectedBlockClientId:r,selectBlock:o,__experimentalFeatures:c}))})),Xu=Object(u.createElement)(h.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24"},Object(u.createElement)(h.Path,{d:"M13.8 5.2H3v1.5h10.8V5.2zm-3.6 12v1.5H21v-1.5H10.2zm7.2-6H6.6v1.5h10.8v-1.5z"}));function Qu(e){var t=e.isEnabled,n=e.onToggle,r=e.isOpen,o=e.innerRef,c=Object(he.a)(e,["isEnabled","onToggle","isOpen","innerRef"]);Object(a.useShortcut)("core/edit-post/toggle-block-navigation",Object(u.useCallback)(n,[n]),{bindGlobal:!0,isDisabled:!t});var i=Object(v.useSelect)((function(e){return e("core/keyboard-shortcuts").getShortcutRepresentation("core/edit-post/toggle-block-navigation")}),[]);return Object(u.createElement)(h.Button,Object(l.a)({},c,{ref:o,icon:Xu,"aria-expanded":r,"aria-haspopup":"true",onClick:t?n:void 0,label:Object(g.__)("Outline"),className:"block-editor-block-navigation",shortcut:i,"aria-disabled":!t}))}var Zu=Object(u.forwardRef)((function(e,t){var n=e.isDisabled,r=e.__experimentalFeatures,o=Object(he.a)(e,["isDisabled","__experimentalFeatures"]),c=Object(v.useSelect)((function(e){return!!e("core/block-editor").getBlockCount()}),[])&&!n;return Object(u.createElement)(h.Dropdown,{contentClassName:"block-editor-block-navigation__popover",position:"bottom right",renderToggle:function(e){var n=e.isOpen,r=e.onToggle;return Object(u.createElement)(Qu,Object(l.a)({},o,{innerRef:t,isOpen:n,onToggle:r,isEnabled:c}))},renderContent:function(e){var t=e.onClose;return Object(u.createElement)(Yu,{onSelect:t,__experimentalFeatures:r})}})})),Ju=n(130),ed=[st.rawShortcut.primary("z"),st.rawShortcut.primaryShift("z"),st.rawShortcut.primary("y")],td=Object(u.createElement)(h.KeyboardShortcuts,{bindGlobal:!0,shortcuts:Object(f.fromPairs)(ed.map((function(e){return[e,function(e){return e.preventDefault()}]})))}),nd=function(){return td};function rd(e){return e.filter((function(e){var t=e.type;return/^image\/(?:jpe?g|png|gif)$/.test(t)})).map((function(e){return'')})).join("")}var od={position:"bottom right",isAlternate:!0},cd=function(){return Object(u.createElement)("div",{className:"block-editor-format-toolbar"},Object(u.createElement)(h.ToolbarGroup,null,["bold","italic","link","text-color"].map((function(e){return Object(u.createElement)(h.Slot,{name:"RichText.ToolbarControls.".concat(e),key:e})})),Object(u.createElement)(h.Slot,{name:"RichText.ToolbarControls"},(function(e){return 0!==e.length&&Object(u.createElement)(h.ToolbarItem,null,(function(t){return Object(u.createElement)(h.DropdownMenu,{icon:xr.a,label:Object(g.__)("More rich text controls"),toggleProps:t,controls:Object(f.orderBy)(e.map((function(e){return Object(re.a)(e,1)[0].props})),"title"),popoverProps:od})}))}))))},id=function(e){var t=e.inline,n=e.anchorRef;return t?Object(u.createElement)(h.Popover,{noArrow:!0,position:"top center",focusOnMount:!1,anchorRef:n,className:"block-editor-rich-text__inline-format-toolbar"},Object(u.createElement)(cd,null)):Object(u.createElement)(mr,null,Object(u.createElement)(cd,null))};function ad(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ld(e){for(var t=1;t0,xe=a,Pe=s;Array.isArray(a)&&(xe=c.children.toHTML(a),Pe=function(e){return s(c.children.fromDOM(Object(i.__unstableCreateElement)(document,e).childNodes))});var Te=Object(u.useCallback)((function(e,t){Ce(le,x,e,t)}),[le,x]),Ne=Object(u.useCallback)((function(e){var t=e.value,n=e.isReverse;S&&S(!n),C&&Object(i.isEmpty)(t)&&n&&C(!n)}),[S,C]),De=Object(u.useCallback)((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(h&&w){var n=[],r=Object(i.split)(e),o=Object(re.a)(r,2),c=o[0],a=o[1],l=t.length>0,s=-1;l&&Object(i.isEmpty)(c)||(n.push(w(Object(i.toHTMLString)({value:c,multilineTag:we}))),s+=1),l?(n.push.apply(n,Object(ne.a)(t)),s+=t.length):B&&n.push(B()),(l||B)&&Object(i.isEmpty)(a)||n.push(w(Object(i.toHTMLString)({value:a,multilineTag:we})));var u=l?s:1,d=l?-1:null;h(n,u,d)}}),[h,w,we,B]),Re=Object(u.useCallback)((function(e){var t=e.value,n=e.onChange,r=e.shiftKey,o=h&&w;if(h){var a=Object(c.getBlockTransforms)("from").filter((function(e){return"enter"===e.type})),l=Object(c.findTransform)(a,(function(e){return e.regExp.test(t.text)}));l&&(h([l.transform({content:t.text})]),Se())}if(f)r?D||n(Object(i.insert)(t,"\n")):o&&Object(i.__unstableIsEmptyLine)(t)?De(t):n(Object(i.__unstableInsertLineSeparator)(t));else{var s=t.text,u=t.start,d=t.end,b=I&&u===d&&d===s.length;r||!o&&!b?D||n(Object(i.insert)(t,"\n")):!o&&b?I():o&&De(t)}}),[h,w,Se,f,De,I]),Ae=Object(u.useCallback)((function(e){var t=e.value,n=e.onChange,r=e.html,a=e.plainText,l=e.files,s=e.activeFormats;if(l&&l.length&&!r){var u=Object(c.pasteHandler)({HTML:rd(l),mode:"BLOCKS",tagName:o,preserveWhiteSpace:P});return window.console.log("Received items:\n\n",l),void(h&&Object(i.isEmpty)(t)?h(u):De(t,u))}var d,b=h&&w?"AUTO":"INLINE";"AUTO"===b&&Object(i.isEmpty)(t)&&(d=a,Object(Ju.regexp)(".*").test(d))&&(b="BLOCKS"),T&&Object(i.isEmpty)(t)&&Object(zl.isURL)(a.trim())&&(b="BLOCKS");var p=Object(c.pasteHandler)({HTML:r,plainText:a,mode:b,tagName:o,preserveWhiteSpace:P});if("string"==typeof p){var m=Object(i.create)({html:p});if(s.length)for(var v=m.formats.length;v--;)m.formats[v]=[].concat(Object(ne.a)(s),Object(ne.a)(m.formats[v]||[]));f&&(m=Object(i.replace)(m,/\n+/g,i.__UNSTABLE_LINE_SEPARATOR)),n(Object(i.insert)(t,m))}else p.length>0&&(h&&Object(i.isEmpty)(t)?h(p,p.length-1,-1):De(t,p))}),[o,h,w,De,T,f,P]),Me=Object(u.useCallback)((function(e,t){if(h){var n=e.start,r=e.text;if(" "===r.slice(n-1,n)){var o=r.slice(0,n).trim(),a=Object(c.getBlockTransforms)("from").filter((function(e){return"prefix"===e.type})),l=Object(c.findTransform)(a,(function(e){var t=e.prefix;return o===t}));if(l){var s=t(Object(i.slice)(e,n,r.length)),u=l.transform(s);h([u]),Se()}}}}),[h,Se]),Le=Object(u.createElement)(i.__experimentalRichText,{clientId:le,identifier:x,ref:ie,value:xe,onChange:Pe,selectionStart:fe,selectionEnd:pe,onSelectionChange:Te,tagName:o,placeholder:j,allowedFormats:Ie,withoutInteractiveFormatting:E,onEnter:Re,onDelete:Ne,onPaste:Ae,__unstableIsSelected:me,__unstableInputRule:Me,__unstableMultilineTag:we,__unstableIsCaretWithinFormattedText:be,__unstableOnEnterFormattedText:_e,__unstableOnExitFormattedText:Ee,__unstableOnCreateUndoLevel:ye,__unstableMarkAutomaticChange:Se,__unstableDidAutomaticChange:ve,__unstableUndo:ge,__unstableDisableFormats:N,preserveWhiteSpace:P,disabled:Oe,unstableOnFocus:R,__unstableAllowPrefixTransformations:A,__unstableMultilineRootTag:M,onCaretVerticalPositionChange:se,blockIsSelected:void 0!==d?d:ue,shouldBlurOnUnmount:je,__unstableMobileNoFocusOnMount:L,deleteEnter:F,placeholderTextColor:V,textAlign:H,selectionColor:U,tagsToEliminate:G,rootTagsToEliminate:K,disableEditingMenu:W,fontSize:q,fontFamily:$,fontWeight:Y,fontStyle:X,minWidth:Q,maxWidth:Z,onBlur:J,setRef:ee,id:te.id,style:te.style},(function(e){var t=e.isSelected,n=e.value,o=e.onChange,c=e.onFocus,i=e.editableProps,a=e.editableTagName;return Object(u.createElement)(u.Fragment,null,r&&r({value:n,onChange:o,onFocus:c}),t&&Be&&Object(u.createElement)(id,{inline:m,anchorRef:ie.current}),t&&Object(u.createElement)(nd,null),Object(u.createElement)(Xn,{onReplace:h,completers:g,record:n,onChange:o,isSelected:t},(function(e){var t=e.listBoxId,n=e.activeId,r=e.onKeyDown;return Object(u.createElement)(a,Object(l.a)({},i,te,{style:te.style?ld(ld({},te.style),i.style):i.style,className:b()("block-editor-rich-text__editable",te.className,i.className,{"keep-placeholder-on-focus":k}),"aria-autocomplete":t?"list":void 0,"aria-owns":t,"aria-activedescendant":n,onKeyDown:function(e){r(e),i.onKeyDown(e)}}))})))}));return O?(to()("wp.blockEditor.RichText wrapperClassName prop",{alternative:"className prop or create your own wrapper div"}),Object(u.createElement)("div",{className:b()("block-editor-rich-text",O)},Le)):Le}));dd.Content=function(e){var t=e.value,n=e.tagName,r=e.multiline,o=Object(he.a)(e,["value","tagName","multiline"]);Array.isArray(t)&&(t=c.children.toHTML(t));var i=sd(r);!t&&i&&(t="<".concat(i,">"));var a=Object(u.createElement)(u.RawHTML,null,t);return n?Object(u.createElement)(n,Object(f.omit)(o,["format"]),a):a},dd.isEmpty=function(e){return!e||0===e.length},dd.Content.defaultProps={format:"string",value:""};var bd=dd;function fd(e){var t=e.value,n=e.onChange;return Object(u.createElement)(Mu,null,Object(u.createElement)(bd,{value:t,onChange:n,placeholder:Object(g.__)("Navigation item"),keepPlaceholderOnFocus:!0,withoutInteractiveFormatting:!0,allowedFormats:["core/bold","core/italic","core/image","core/strikethrough"]}))}var pd=n(318);var md=function(e){var t=e.icon,n=void 0===t?pd.a:t,r=e.label,o=void 0===r?Object(g.__)("Choose variation"):r,c=e.instructions,i=void 0===c?Object(g.__)("Select a variation to start with."):c,a=e.variations,l=e.onSelect,s=e.allowSkip,d=b()("block-editor-block-variation-picker",{"has-many-variations":a.length>4});return Object(u.createElement)(h.Placeholder,{icon:n,label:o,instructions:i,className:d},Object(u.createElement)("ul",{className:"block-editor-block-variation-picker__variations",role:"list","aria-label":Object(g.__)("Block variations")},a.map((function(e){return Object(u.createElement)("li",{key:e.name},Object(u.createElement)(h.Button,{isSecondary:!0,icon:e.icon,iconSize:48,onClick:function(){return l(e)},className:"block-editor-block-variation-picker__variation",label:e.description||e.title}),Object(u.createElement)("span",{className:"block-editor-block-variation-picker__variation-label",role:"presentation"},e.title))}))),s&&Object(u.createElement)("div",{className:"block-editor-block-variation-picker__skip"},Object(u.createElement)(h.Button,{isLink:!0,onClick:function(){return l()}},Object(g.__)("Skip"))))},vd=Object(u.createElement)(h.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(u.createElement)(h.Path,{d:"M15 4H9v11h6V4zM4 18.5V20h16v-1.5H4z"})),Od=Object(u.createElement)(h.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(u.createElement)(h.Path,{d:"M20 11h-5V4H9v7H4v1.5h5V20h6v-7.5h5z"}));function gd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function hd(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Object(u.useRef)(),r=Object(z.b)(),o=r.clientId,c=Object(p.useViewportMatch)("medium","<"),i=Object(v.useSelect)((function(e){var t=e("core/block-editor"),n=t.getBlockName,r=t.isBlockSelected,i=t.hasSelectedInnerBlock,a=(0,t.isNavigationMode)()||c;return"core/template"!==n(o)&&!r(o)&&!i(o,!0)&&a}),[o,c]),a=e.ref||n,s=t.value&&t.onChange?Kd:Gd;return Ud(Ud({},e),{},{ref:a,className:b()(e.className,"block-editor-block-list__layout",{"has-overlay":i}),children:Object(u.createElement)(s,Object(l.a)({},t,{clientId:o,wrapperRef:a}))})}Wd.DefaultBlockAppender=Ld,Wd.ButtonBlockAppender=Md,Wd.Content=Object(c.withBlockContentContext)((function(e){var t=e.BlockContent;return Object(u.createElement)(t,null)}));var $d=Wd,Yd=n(216);function Xd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Qd(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:"",n=this.props,r=n.__experimentalFetchLinkSuggestions,o=n.__experimentalHandleURLSuggestions;if(r){var c=!(t&&t.length);if(c||!(t.length<2||!o&&Object(zl.isURL)(t))){this.isUpdatingSuggestions=!0,this.setState({selectedSuggestion:null,loading:!0});var i=r(t,{isInitialSuggestions:c});i.then((function(t){e.suggestionsRequest===i&&(e.setState({suggestions:t,loading:!1,showSuggestions:!!t.length}),t.length?e.props.debouncedSpeak(Object(g.sprintf)(Object(g._n)("%d result found, use up and down arrow keys to navigate.","%d results found, use up and down arrow keys to navigate.",t.length),t.length),"assertive"):e.props.debouncedSpeak(Object(g.__)("No results."),"assertive"),e.isUpdatingSuggestions=!1)})).catch((function(){e.suggestionsRequest===i&&(e.setState({loading:!1}),e.isUpdatingSuggestions=!1)})),this.suggestionsRequest=i}else this.setState({showSuggestions:!1,selectedSuggestion:null,loading:!1})}}},{key:"onChange",value:function(e){var t=e.target.value;this.props.onChange(t),this.props.disableSuggestions||this.updateSuggestions(t.trim())}},{key:"onFocus",value:function(){var e=this.state.suggestions,t=this.props,n=t.disableSuggestions,r=t.value;!r||n||this.isUpdatingSuggestions||e&&e.length||this.updateSuggestions(r.trim())}},{key:"onKeyDown",value:function(e){var t=this.state,n=t.showSuggestions,r=t.selectedSuggestion,o=t.suggestions,c=t.loading;if(n&&o.length&&!c){var i=this.state.suggestions[this.state.selectedSuggestion];switch(e.keyCode){case st.UP:e.stopPropagation(),e.preventDefault();var a=r?r-1:o.length-1;this.setState({selectedSuggestion:a});break;case st.DOWN:e.stopPropagation(),e.preventDefault();var l=null===r||r===o.length-1?0:r+1;this.setState({selectedSuggestion:l});break;case st.TAB:null!==this.state.selectedSuggestion&&(this.selectLink(i),this.props.speak(Object(g.__)("Link selected.")));break;case st.ENTER:null!==this.state.selectedSuggestion&&(e.stopPropagation(),this.selectLink(i))}}else switch(e.keyCode){case st.UP:0!==e.target.selectionStart&&(e.stopPropagation(),e.preventDefault(),e.target.setSelectionRange(0,0));break;case st.DOWN:this.props.value.length!==e.target.selectionStart&&(e.stopPropagation(),e.preventDefault(),e.target.setSelectionRange(this.props.value.length,this.props.value.length))}}},{key:"selectLink",value:function(e){this.props.onChange(e.url,e),this.setState({selectedSuggestion:null,showSuggestions:!1})}},{key:"handleOnClick",value:function(e){this.selectLink(e),this.inputRef.current.focus()}},{key:"render",value:function(){return Object(u.createElement)(u.Fragment,null,this.renderControl(),this.renderSuggestions())}},{key:"renderControl",value:function(){var e=this.props,t=e.label,n=e.className,r=e.isFullWidth,o=e.instanceId,c=e.placeholder,i=void 0===c?Object(g.__)("Paste URL or type to search"):c,a=e.__experimentalRenderControl,l=e.value,s=void 0===l?"":l,d=e.autoFocus,f=void 0===d||d,p=this.state,m=p.loading,v=p.showSuggestions,O=p.selectedSuggestion,j=p.suggestionsListboxId,k=p.suggestionOptionIdPrefix,y={id:"url-input-control-".concat(o),label:t,className:b()("block-editor-url-input",n,{"is-full-width":r})},_={value:s,required:!0,autoFocus:f,className:"block-editor-url-input__input",type:"text",onChange:this.onChange,onFocus:this.onFocus,onInput:rb,placeholder:i,onKeyDown:this.onKeyDown,role:"combobox","aria-label":Object(g.__)("URL"),"aria-expanded":v,"aria-autocomplete":"list","aria-owns":j,"aria-activedescendant":null!==O?"".concat(k,"-").concat(O):void 0,ref:this.inputRef};return a?a(y,_,m):Object(u.createElement)(h.BaseControl,y,Object(u.createElement)("input",_),m&&Object(u.createElement)(h.Spinner,null))}},{key:"renderSuggestions",value:function(){var e=this,t=this.props,n=t.className,r=t.__experimentalRenderSuggestions,o=t.value,c=void 0===o?"":o,i=t.__experimentalShowInitialSuggestions,a=void 0!==i&&i,s=this.state,d=s.showSuggestions,p=s.suggestions,m=s.selectedSuggestion,v=s.suggestionsListboxId,O=s.suggestionOptionIdPrefix,g=s.loading,j={id:v,ref:this.autocompleteRef,role:"listbox"},k=function(t,n){return{role:"option",tabIndex:"-1",id:"".concat(O,"-").concat(n),ref:e.bindSuggestionNode(n),"aria-selected":n===m}};return Object(f.isFunction)(r)&&d&&p.length?r({suggestions:p,selectedSuggestion:m,suggestionsListProps:j,buildSuggestionItemProps:k,isLoading:g,handleSuggestionClick:this.handleOnClick,isInitialSuggestions:a&&!(c&&c.length)}):!Object(f.isFunction)(r)&&d&&p.length?Object(u.createElement)(h.Popover,{position:"bottom",noArrow:!0,focusOnMount:!1},Object(u.createElement)("div",Object(l.a)({},j,{className:b()("block-editor-url-input__suggestions","".concat(n,"__suggestions"))}),p.map((function(t,n){return Object(u.createElement)(h.Button,Object(l.a)({},k(0,n),{key:t.id,className:b()("block-editor-url-input__suggestion",{"is-selected":n===m}),onClick:function(){return e.handleOnClick(t)}}),t.title)})))):null}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.value,r=e.instanceId,o=e.disableSuggestions,c=e.__experimentalShowInitialSuggestions,i=void 0!==c&&c,a=t.showSuggestions,l=n&&n.length;return i||l||(a=!1),!0===o&&(a=!1),{showSuggestions:a,suggestionsListboxId:"block-editor-url-input-suggestions-".concat(r),suggestionOptionIdPrefix:"block-editor-url-input-suggestion-".concat(r)}}}]),n}(u.Component),cb=Object(p.compose)(p.withSafeTimeout,h.withSpokenMessages,p.withInstanceId,Object(v.withSelect)((function(e,t){if(!Object(f.isFunction)(t.__experimentalFetchLinkSuggestions))return{__experimentalFetchLinkSuggestions:(0,e("core/block-editor").getSettings)().__experimentalFetchLinkSuggestions}})))(ob),ib=Object(u.createElement)(j.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(u.createElement)(j.Path,{d:"M10 1c-5 0-9 4-9 9s4 9 9 9 9-4 9-9-4-9-9-9zm0 16c-3.9 0-7-3.1-7-7s3.1-7 7-7 7 3.1 7 7-3.1 7-7 7zm1-11H9v3H6v2h3v3h2v-3h3V9h-3V6zM10 1c-5 0-9 4-9 9s4 9 9 9 9-4 9-9-4-9-9-9zm0 16c-3.9 0-7-3.1-7-7s3.1-7 7-7 7 3.1 7 7-3.1 7-7 7zm1-11H9v3H6v2h3v3h2v-3h3V9h-3V6z"})),ab=function(e){var t,n=e.searchTerm,r=e.onClick,o=e.itemProps,c=e.isSelected,i=e.buttonText;return n?(t=i?Object(f.isFunction)(i)?i(n):i:Object(u.createInterpolateElement)(Object(g.sprintf)(Object(g.__)("Create: %s"),n),{mark:Object(u.createElement)("mark",null)}),Object(u.createElement)(h.Button,Object(l.a)({},o,{className:b()("block-editor-link-control__search-create block-editor-link-control__search-item",{"is-selected":c}),onClick:r}),Object(u.createElement)(so.a,{className:"block-editor-link-control__search-item-icon",icon:ib}),Object(u.createElement)("span",{className:"block-editor-link-control__search-item-header"},Object(u.createElement)("span",{className:"block-editor-link-control__search-item-title"},t)))):null},lb=Object(u.createElement)(j.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(u.createElement)(j.Path,{d:"M9 0C4.03 0 0 4.03 0 9s4.03 9 9 9 9-4.03 9-9-4.03-9-9-9zM1.11 9.68h2.51c.04.91.167 1.814.38 2.7H1.84c-.403-.85-.65-1.764-.73-2.7zm8.57-5.4V1.19c.964.366 1.756 1.08 2.22 2 .205.347.386.708.54 1.08l-2.76.01zm3.22 1.35c.232.883.37 1.788.41 2.7H9.68v-2.7h3.22zM8.32 1.19v3.09H5.56c.154-.372.335-.733.54-1.08.462-.924 1.255-1.64 2.22-2.01zm0 4.44v2.7H4.7c.04-.912.178-1.817.41-2.7h3.21zm-4.7 2.69H1.11c.08-.936.327-1.85.73-2.7H4c-.213.886-.34 1.79-.38 2.7zM4.7 9.68h3.62v2.7H5.11c-.232-.883-.37-1.788-.41-2.7zm3.63 4v3.09c-.964-.366-1.756-1.08-2.22-2-.205-.347-.386-.708-.54-1.08l2.76-.01zm1.35 3.09v-3.04h2.76c-.154.372-.335.733-.54 1.08-.464.92-1.256 1.634-2.22 2v-.04zm0-4.44v-2.7h3.62c-.04.912-.178 1.817-.41 2.7H9.68zm4.71-2.7h2.51c-.08.936-.327 1.85-.73 2.7H14c.21-.87.337-1.757.38-2.65l.01-.05zm0-1.35c-.046-.894-.176-1.78-.39-2.65h2.16c.403.85.65 1.764.73 2.7l-2.5-.05zm1-4H13.6c-.324-.91-.793-1.76-1.39-2.52 1.244.56 2.325 1.426 3.14 2.52h.04zm-9.6-2.52c-.597.76-1.066 1.61-1.39 2.52H2.65c.815-1.094 1.896-1.96 3.14-2.52zm-3.15 12H4.4c.324.91.793 1.76 1.39 2.52-1.248-.567-2.33-1.445-3.14-2.55l-.01.03zm9.56 2.52c.597-.76 1.066-1.61 1.39-2.52h1.76c-.82 1.08-1.9 1.933-3.14 2.48l-.01.04z"})),sb=function(e){var t=e.itemProps,n=e.suggestion,r=e.isSelected,o=void 0!==r&&r,c=e.onClick,i=e.isURL,a=void 0!==i&&i,s=e.searchTerm,d=void 0===s?"":s,f=e.shouldShowType,p=void 0!==f&&f;return Object(u.createElement)(h.Button,Object(l.a)({},t,{onClick:c,className:b()("block-editor-link-control__search-item",{"is-selected":o,"is-url":a,"is-entity":!a})}),a&&Object(u.createElement)(so.a,{className:"block-editor-link-control__search-item-icon",icon:lb}),Object(u.createElement)("span",{className:"block-editor-link-control__search-item-header"},Object(u.createElement)("span",{className:"block-editor-link-control__search-item-title"},Object(u.createElement)(h.TextHighlight,{text:n.title,highlight:d})),Object(u.createElement)("span",{"aria-hidden":!a,className:"block-editor-link-control__search-item-info"},!a&&(Object(zl.filterURLForDisplay)(Object(zl.safeDecodeURI)(n.url))||""),a&&Object(g.__)("Press ENTER to add this link"))),p&&n.type&&Object(u.createElement)("span",{className:"block-editor-link-control__search-item-type"},"post_tag"===n.type?"tag":n.type))};function ub(e){var t=e.instanceId,n=e.withCreateSuggestion,r=e.currentInputValue,o=e.handleSuggestionClick,c=e.suggestionsListProps,i=e.buildSuggestionItemProps,a=e.suggestions,s=e.selectedSuggestion,d=e.isLoading,f=e.isInitialSuggestions,p=e.createSuggestionButtonText,m=e.suggestionsQuery,v=b()("block-editor-link-control__search-results",{"is-loading":d}),O=["url","mailto","tel","internal"],j=1===a.length&&O.includes(a[0].type.toLowerCase()),k=n&&!j&&!f,y=!(null==m?void 0:m.type),_="block-editor-link-control-search-results-label-".concat(t),E=f?Object(g.__)("Recently updated"):Object(g.sprintf)(Object(g.__)('Search results for "%s"'),r),C=Object(u.createElement)(f?u.Fragment:h.VisuallyHidden,{},Object(u.createElement)("span",{className:"block-editor-link-control__search-results-label",id:_},E));return Object(u.createElement)("div",{className:"block-editor-link-control__search-results-wrapper"},C,Object(u.createElement)("div",Object(l.a)({},c,{className:v,"aria-labelledby":_}),a.map((function(e,t){return k&&"__CREATE__"===e.type?Object(u.createElement)(ab,{searchTerm:r,buttonText:p,onClick:function(){return o(e)},key:e.type,itemProps:i(e,t),isSelected:t===s}):"__CREATE__"===e.type?null:Object(u.createElement)(sb,{key:"".concat(e.id,"-").concat(e.type),itemProps:i(e,t),suggestion:e,index:t,onClick:function(){o(e)},isSelected:t===s,isURL:O.includes(e.type.toLowerCase()),searchTerm:r,shouldShowType:y})}))))}function db(e){var t=Object(f.startsWith)(e,"#");return Object(zl.isURL)(e)||e&&e.includes("www.")||t}function bb(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function fb(e){for(var t=1;t=1)&&y(gb(gb({},Object(f.omit)(c,"id","url")),n),n);case 13:case"end":return e.stop()}}),e,null,[[2,9]])})));return function(t){return e.apply(this,arguments)}}();return Object(u.createElement)("form",{onSubmit:function(e){e.preventDefault(),K(U||{url:n})}},Object(u.createElement)(cb,{className:a,value:n,onChange:function(e,t){j(e),G(t)},placeholder:null!=s?s:Object(g.__)("Search or type url"),__experimentalRenderSuggestions:E?function(e){return S(gb(gb({},e),{},{instanceId:V,withCreateSuggestion:b,currentInputValue:n,createSuggestionButtonText:M,suggestionsQuery:D,handleSuggestionClick:function(t){e.handleSuggestionClick&&e.handleSuggestionClick(t),K(t)}}))}:null,__experimentalFetchLinkSuggestions:F,__experimentalHandleURLSuggestions:!0,__experimentalShowInitialSuggestions:T,ref:t}),r)})),kb=jb,yb=Object(h.createSlotFill)("BlockEditorLinkControlViewer"),_b=yb.Slot,Eb=yb.Fill;function Cb(e){var t=e.value,n=e.onEditClick,r=t&&Object(zl.filterURLForDisplay)(Object(zl.safeDecodeURI)(t.url))||"";return Object(u.createElement)("div",{"aria-label":Object(g.__)("Currently selected"),"aria-selected":"true",className:b()("block-editor-link-control__search-item",{"is-current":!0})},Object(u.createElement)("span",{className:"block-editor-link-control__search-item-header"},Object(u.createElement)(h.ExternalLink,{className:"block-editor-link-control__search-item-title",href:t.url},t&&t.title||r),t&&t.title&&Object(u.createElement)("span",{className:"block-editor-link-control__search-item-info"},r)),Object(u.createElement)(h.Button,{isSecondary:!0,onClick:function(){return n()},className:"block-editor-link-control__search-item-action"},Object(g.__)("Edit")),Object(u.createElement)(_b,{fillProps:t}))}var Sb=function(e){var t=!1;return{promise:new Promise((function(n,r){e.then((function(e){return t?r({isCanceled:!0}):n(e)}),(function(e){return r(t?{isCanceled:!0}:e)}))})),cancel:function(){t=!0}}};function wb(e){var t=e.searchInputPlaceholder,n=e.value,r=e.settings,o=e.onChange,c=void 0===o?f.noop:o,i=e.noDirectEntry,a=void 0!==i&&i,l=e.showSuggestions,s=void 0===l||l,d=e.showInitialSuggestions,b=e.forceIsEditingLink,p=e.createSuggestion,m=e.withCreateSuggestion,v=e.inputValue,O=void 0===v?"":v,j=e.suggestionsQuery,k=void 0===j?{}:j,y=e.noURLSuggestion,_=void 0!==y&&y,E=e.createSuggestionButtonText;void 0===m&&p&&(m=!0);var C=Object(u.useRef)(),S=Object(u.useState)(n&&n.url||""),w=Object(re.a)(S,2),I=w[0],B=w[1],x=O||I,P=Object(u.useState)(void 0!==b?b:!n||!n.url),T=Object(re.a)(P,2),N=T[0],D=T[1],R=Object(u.useRef)(!1);Object(u.useEffect)((function(){void 0!==b&&b!==N&&D(b)}),[b]),Object(u.useEffect)((function(){R.current&&C.current&&!C.current.contains(C.current.ownerDocument.activeElement)&&(kr.focus.focusable.find(C.current)[0]||C.current).focus();R.current=!1}),[N]);var A=function(e){var t=Object(u.useRef)(),n=Object(u.useState)(!1),r=Object(re.a)(n,2),o=r[0],c=r[1],i=Object(u.useState)(null),a=Object(re.a)(i,2),l=a[0],s=a[1],d=function(){var n=Object(gr.a)(Or.a.mark((function n(r){return Or.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return c(!0),s(null),n.prev=2,t.current=Sb(Promise.resolve(e(r))),n.next=6,t.current.promise;case 6:return n.abrupt("return",n.sent);case 9:if(n.prev=9,n.t0=n.catch(2),!n.t0||!n.t0.isCanceled){n.next=13;break}return n.abrupt("return");case 13:throw s(n.t0.message||Object(g.__)("An unknown error occurred during creation. Please try again.")),n.t0;case 15:return n.prev=15,c(!1),n.finish(15);case 18:case"end":return n.stop()}}),n,null,[[2,9,15,18]])})));return function(e){return n.apply(this,arguments)}}();return Object(u.useEffect)((function(){return function(){t.current&&t.current.cancel()}}),[]),{createPage:d,isCreatingPage:o,errorMessage:l}}(p),M=A.createPage,L=A.isCreatingPage,F=A.errorMessage;return Object(u.createElement)("div",{tabIndex:-1,ref:C,className:"block-editor-link-control"},L&&Object(u.createElement)("div",{className:"block-editor-link-control__loading"},Object(u.createElement)(h.Spinner,null)," ",Object(g.__)("Creating"),"…"),(N||!n)&&!L&&Object(u.createElement)(u.Fragment,null,Object(u.createElement)("div",{className:"block-editor-link-control__search-input-wrapper"},Object(u.createElement)(kb,{currentLink:n,className:"block-editor-link-control__search-input",placeholder:t,value:x,withCreateSuggestion:m,onCreateSuggestion:M,onChange:B,onSelect:function(e){var t;c(e),R.current=!!(null===(t=C.current)||void 0===t?void 0:t.contains(C.current.ownerDocument.activeElement)),D(!1)},showInitialSuggestions:d,allowDirectEntry:!a,showSuggestions:s,suggestionsQuery:k,withURLSuggestion:!_,createSuggestionButtonText:E},Object(u.createElement)("div",{className:"block-editor-link-control__search-actions"},Object(u.createElement)(h.Button,{type:"submit",label:Object(g.__)("Submit"),icon:Yd.a,className:"block-editor-link-control__search-submit"})))),F&&Object(u.createElement)(h.Notice,{className:"block-editor-link-control__search-error",status:"error",isDismissible:!1},F)),n&&!N&&!L&&Object(u.createElement)(Cb,{value:n,onEditClick:function(){return D(!0)}}),Object(u.createElement)(Jd,{value:n,settings:r,onChange:c}))}wb.ViewerFill=Eb;var Ib=wb,Bb=n(319),xb=n(217),Pb=Object(h.withFilters)("editor.MediaUpload")((function(){return null}));var Tb=function(e){var t=e.fallback,n=void 0===t?null:t,r=e.children;return Object(v.useSelect)((function(e){return!!(0,e("core/block-editor").getSettings)().mediaUpload}),[])?r:n},Nb=Object(p.compose)([Object(v.withDispatch)((function(e){var t=e("core/notices");return{createNotice:t.createNotice,removeNotice:t.removeNotice}})),Object(h.withFilters)("editor.MediaReplaceFlow")])((function(e){var t=e.mediaURL,n=e.mediaId,r=e.allowedTypes,o=e.accept,c=e.onSelect,i=e.onSelectURL,a=e.onFilesUpload,l=void 0===a?f.noop:a,s=e.name,d=void 0===s?Object(g.__)("Replace"):s,b=e.createNotice,p=e.removeNotice,m=Object(u.useState)(t),O=Object(re.a)(m,2),j=O[0],k=O[1],y=Object(v.useSelect)((function(e){return e("core/block-editor").getSettings().mediaUpload}),[]),_=Object(u.createRef)(),E=Object(f.uniqueId)("block-editor/media-replace-flow/error-notice/"),C=function(e){var t=document.createElement("div");t.innerHTML=Object(u.renderToString)(e);var n=t.textContent||t.innerText||"";setTimeout((function(){b("error",n,{speak:!0,id:E,isDismissible:!0})}),1e3)},S=function(e){c(e),k(e.url),Object(Le.speak)(Object(g.__)("The media file has been replaced")),p(E)},w=function(e){e.keyCode===st.DOWN&&(e.preventDefault(),e.stopPropagation(),e.target.click())};return Object(u.createElement)(h.Dropdown,{popoverProps:{isAlternate:!0},contentClassName:"block-editor-media-replace-flow__options",renderToggle:function(e){var t=e.isOpen,n=e.onToggle;return Object(u.createElement)(h.ToolbarGroup,{className:"media-replace-flow"},Object(u.createElement)(h.ToolbarButton,{ref:_,"aria-expanded":t,"aria-haspopup":"true",onClick:n,onKeyDown:w},d))},renderContent:function(e){e.onClose;return Object(u.createElement)(u.Fragment,null,Object(u.createElement)(h.NavigableMenu,{className:"block-editor-media-replace-flow__media-upload-menu"},Object(u.createElement)(Pb,{value:n,onSelect:function(e){return S(e)},allowedTypes:r,render:function(e){var t=e.open;return Object(u.createElement)(h.MenuItem,{icon:Bb.a,onClick:t},Object(g.__)("Open Media Library"))}}),Object(u.createElement)(Tb,null,Object(u.createElement)(h.FormFileUpload,{onChange:function(e){!function(e){var t=e.target.files;l(t);y({allowedTypes:r,filesList:t,onFileChange:function(e){var t=Object(re.a)(e,1)[0];S(t)},onError:C})}(e)},accept:o,render:function(e){var t=e.openFileDialog;return Object(u.createElement)(h.MenuItem,{icon:xb.a,onClick:function(){t()}},Object(g.__)("Upload"))}}))),i&&Object(u.createElement)("form",{className:"block-editor-media-flow__url-input",onKeyDown:function(e){e.stopPropagation()},onKeyPress:function(e){e.stopPropagation()}},Object(u.createElement)("span",{className:"block-editor-media-replace-flow__image-url-label"},Object(g.__)("Current media URL:")),Object(u.createElement)(Ib,{value:{url:j},settings:[],showSuggestions:!1,onChange:function(e){var t=e.url;k(t),i(t),_.current.focus()}})))}})})),Db=n(274);function Rb(e){var t=e.url,n=e.urlLabel,r=e.className,o=b()(r,"block-editor-url-popover__link-viewer-url");return t?Object(u.createElement)(h.ExternalLink,{className:o,href:t},n||Object(zl.filterURLForDisplay)(Object(zl.safeDecodeURI)(t))):Object(u.createElement)("span",{className:o})}function Ab(e){var t=e.additionalControls,n=e.children,r=e.renderSettings,o=e.position,c=void 0===o?"bottom center":o,i=e.focusOnMount,a=void 0===i?"firstElement":i,s=Object(he.a)(e,["additionalControls","children","renderSettings","position","focusOnMount"]),d=Object(u.useState)(!1),b=Object(re.a)(d,2),f=b[0],p=b[1],m=!!r&&f;return Object(u.createElement)(h.Popover,Object(l.a)({className:"block-editor-url-popover",focusOnMount:a,position:c},s),Object(u.createElement)("div",{className:"block-editor-url-popover__input-container"},Object(u.createElement)("div",{className:"block-editor-url-popover__row"},n,!!r&&Object(u.createElement)(h.Button,{className:"block-editor-url-popover__settings-toggle",icon:xr.a,label:Object(g.__)("Link settings"),onClick:function(){p(!f)},"aria-expanded":f})),m&&Object(u.createElement)("div",{className:"block-editor-url-popover__row block-editor-url-popover__settings"},r())),t&&!m&&Object(u.createElement)("div",{className:"block-editor-url-popover__additional-controls"},t))}Ab.LinkEditor=function(e){var t=e.autocompleteRef,n=e.className,r=e.onChangeInputValue,o=e.value,c=Object(he.a)(e,["autocompleteRef","className","onChangeInputValue","value"]);return Object(u.createElement)("form",Object(l.a)({className:b()("block-editor-url-popover__link-editor",n)},c),Object(u.createElement)(cb,{value:o,onChange:r,autocompleteRef:t}),Object(u.createElement)(h.Button,{icon:Yd.a,label:Object(g.__)("Apply"),type:"submit"}))},Ab.LinkViewer=function(e){var t=e.className,n=e.linkClassName,r=e.onEditLinkClick,o=e.url,c=e.urlLabel,i=Object(he.a)(e,["className","linkClassName","onEditLinkClick","url","urlLabel"]);return Object(u.createElement)("div",Object(l.a)({className:b()("block-editor-url-popover__link-viewer",t)},i),Object(u.createElement)(Rb,{url:o,urlLabel:c,className:n}),r&&Object(u.createElement)(h.Button,{icon:Db.a,label:Object(g.__)("Edit"),onClick:r}))};var Mb=Ab,Lb=function(e){var t=e.src,n=e.onChange,r=e.onSubmit,o=e.onClose;return Object(u.createElement)(Mb,{onClose:o},Object(u.createElement)("form",{className:"block-editor-media-placeholder__url-input-form",onSubmit:r},Object(u.createElement)("input",{className:"block-editor-media-placeholder__url-input-field",type:"url","aria-label":Object(g.__)("URL"),placeholder:Object(g.__)("Paste or type URL"),onChange:n,value:t}),Object(u.createElement)(h.Button,{className:"block-editor-media-placeholder__url-input-submit-button",icon:Yd.a,label:Object(g.__)("Apply"),type:"submit"})))};var Fb=Object(h.withFilters)("editor.MediaPlaceholder")((function(e){var t=e.value,n=void 0===t?{}:t,r=e.allowedTypes,o=e.className,c=e.icon,i=e.labels,a=void 0===i?{}:i,l=e.mediaPreview,s=e.notices,d=e.isAppender,p=e.accept,m=e.addToGallery,O=e.multiple,j=void 0!==O&&O,k=e.dropZoneUIOnly,y=e.disableDropZone,_=e.disableMediaButtons,E=e.onError,C=e.onSelect,S=e.onCancel,w=e.onSelectURL,I=e.onDoubleClick,B=e.onFilesPreUpload,x=void 0===B?f.noop:B,P=e.onHTMLDrop,T=void 0===P?f.noop:P,N=e.children,D=Object(v.useSelect)((function(e){return(0,e("core/block-editor").getSettings)().mediaUpload}),[]),R=Object(u.useState)(""),A=Object(re.a)(R,2),M=A[0],L=A[1],F=Object(u.useState)(!1),V=Object(re.a)(F,2),H=V[0],z=V[1];Object(u.useEffect)((function(){var e;L(null!==(e=null==n?void 0:n.src)&&void 0!==e?e:"")}),[null==n?void 0:n.src]);var U=function(e){L(e.target.value)},G=function(){z(!0)},K=function(){z(!1)},W=function(e){e.preventDefault(),M&&w&&(w(M),K())},q=function(e){var t;if(x(e),j)if(m){var o=[];t=function(e){var t=(null!=n?n:[]).filter((function(e){return e.id?!o.some((function(t){var n=t.id;return Number(n)===Number(e.id)})):!o.some((function(t){var n=t.urlSlug;return e.url.includes(n)}))}));C(t.concat(e)),o=e.map((function(e){var t=e.url.lastIndexOf("."),n=e.url.slice(0,t);return{id:e.id,urlSlug:n}}))}}else t=C;else t=function(e){var t=Object(re.a)(e,1)[0];return C(t)};D({allowedTypes:r,filesList:e,onFileChange:t,onError:E})},$=function(e){q(e.target.files)},Y=function(e,t){var n=a.instructions,i=a.title;if(D||w||(n=Object(g.__)("To edit this block, you need permission to upload media.")),void 0===n||void 0===i){var f=null!=r?r:[],p=Object(re.a)(f,1)[0],m=1===f.length,v=m&&"audio"===p,O=m&&"image"===p,j=m&&"video"===p;void 0===n&&D&&(n=Object(g.__)("Upload a media file or pick one from your media library."),v?n=Object(g.__)("Upload an audio file, pick one from your media library, or add one with a URL."):O?n=Object(g.__)("Upload an image file, pick one from your media library, or add one with a URL."):j&&(n=Object(g.__)("Upload a video file, pick one from your media library, or add one with a URL."))),void 0===i&&(i=Object(g.__)("Media"),v?i=Object(g.__)("Audio"):O?i=Object(g.__)("Image"):j&&(i=Object(g.__)("Video")))}var k=b()("block-editor-media-placeholder",o,{"is-appender":d});return Object(u.createElement)(h.Placeholder,{icon:c,label:i,instructions:n,className:k,notices:s,onClick:t,onDoubleClick:I,preview:l},e,N)},X=function(){return y?null:Object(u.createElement)(h.DropZone,{onFilesDrop:q,onHTMLDrop:T})},Q=function(){return S&&Object(u.createElement)(h.Button,{className:"block-editor-media-placeholder__cancel-button",title:Object(g.__)("Cancel"),isLink:!0,onClick:S},Object(g.__)("Cancel"))},Z=function(){return w&&Object(u.createElement)("div",{className:"block-editor-media-placeholder__url-input-container"},Object(u.createElement)(h.Button,{className:"block-editor-media-placeholder__button",onClick:G,isPressed:H,isTertiary:!0},Object(g.__)("Insert from URL")),H&&Object(u.createElement)(Lb,{src:M,onChange:U,onSubmit:W,onClose:K}))};return k||_?(k&&to()("wp.blockEditor.MediaPlaceholder dropZoneUIOnly prop",{alternative:"disableMediaButtons"}),Object(u.createElement)(Tb,null,X())):Object(u.createElement)(Tb,{fallback:Y(Z())},function(){var e=Object(u.createElement)(Pb,{addToGallery:m,gallery:j&&!(!r||0===r.length)&&r.every((function(e){return"image"===e||e.startsWith("image/")})),multiple:j,onSelect:C,allowedTypes:r,value:Array.isArray(n)?n.map((function(e){return e.id})):n.id,render:function(e){var t=e.open;return Object(u.createElement)(h.Button,{isTertiary:!0,onClick:function(e){e.stopPropagation(),t()}},Object(g.__)("Media Library"))}});if(D&&d)return Object(u.createElement)(u.Fragment,null,X(),Object(u.createElement)(h.FormFileUpload,{onChange:$,accept:p,multiple:j,render:function(t){var n=t.openFileDialog,r=Object(u.createElement)(u.Fragment,null,Object(u.createElement)(h.Button,{isPrimary:!0,className:b()("block-editor-media-placeholder__button","block-editor-media-placeholder__upload-button")},Object(g.__)("Upload")),e,Z(),Q());return Y(r,n)}}));if(D){var t=Object(u.createElement)(u.Fragment,null,X(),Object(u.createElement)(h.FormFileUpload,{isPrimary:!0,className:b()("block-editor-media-placeholder__button","block-editor-media-placeholder__upload-button"),onChange:$,accept:p,multiple:j},Object(g.__)("Upload")),e,Z(),Q());return Y(t)}return Y(e)}())})),Vb=Object(u.forwardRef)((function(e,t){return Object(u.createElement)(bd,Object(l.a)({ref:t},e,{__unstableDisableFormats:!0,preserveWhiteSpace:!0}))}));Vb.Content=function(e){var t=e.value,n=void 0===t?"":t,r=e.tagName,o=void 0===r?"div":r,c=Object(he.a)(e,["value","tagName"]);return Object(u.createElement)(o,c,n)};var Hb=Vb,zb=Object(u.forwardRef)((function(e,t){var n=e.__experimentalVersion,r=Object(he.a)(e,["__experimentalVersion"]);if(2===n)return Object(u.createElement)(Hb,Object(l.a)({ref:t},r));var o=r.className,c=r.onChange,i=Object(he.a)(r,["className","onChange"]);return Object(u.createElement)(Zr.a,Object(l.a)({ref:t,className:b()("block-editor-plain-text",o),onChange:function(e){return c(e.target.value)}},i))}));function Ub(e){var t=e.property,n=e.viewport,r=e.desc,o=Object(p.useInstanceId)(Ub),c=r||Object(g.sprintf)(Object(g._x)("Controls the %1$s property for %2$s viewports.","Text labelling a interface as controlling a given layout property (eg: margin) for a given screen size."),t,n.label);return Object(u.createElement)(u.Fragment,null,Object(u.createElement)("span",{"aria-describedby":"rbc-desc-".concat(o)},n.label),Object(u.createElement)(h.VisuallyHidden,{as:"span",id:"rbc-desc-".concat(o)},c))}var Gb=function(e){var t=e.title,n=e.property,r=e.toggleLabel,o=e.onIsResponsiveChange,c=e.renderDefaultControl,i=e.renderResponsiveControls,a=e.isResponsive,l=void 0!==a&&a,s=e.defaultLabel,d=void 0===s?{id:"all",label:Object(g.__)("All")}:s,f=e.viewports,p=void 0===f?[{id:"small",label:Object(g.__)("Small screens")},{id:"medium",label:Object(g.__)("Medium screens")},{id:"large",label:Object(g.__)("Large screens")}]:f;if(!t||!n||!c)return null;var m=r||Object(g.sprintf)(Object(g.__)("Use the same %s on all screensizes."),n),v=Object(g.__)("Toggle between using the same value for all screen sizes or using a unique value per screen size."),O=c(Object(u.createElement)(Ub,{property:n,viewport:d}),d);return Object(u.createElement)("fieldset",{className:"block-editor-responsive-block-control"},Object(u.createElement)("legend",{className:"block-editor-responsive-block-control__title"},t),Object(u.createElement)("div",{className:"block-editor-responsive-block-control__inner"},Object(u.createElement)(h.ToggleControl,{className:"block-editor-responsive-block-control__toggle",label:m,checked:!l,onChange:o,help:v}),Object(u.createElement)("div",{className:b()("block-editor-responsive-block-control__group",{"is-responsive":l})},!l&&O,l&&(i?i(p):p.map((function(e){return Object(u.createElement)(u.Fragment,{key:e.id},c(Object(u.createElement)(Ub,{property:n,viewport:e}),e))}))))))};function Kb(e){var t=e.character,n=e.type,r=e.onUse;return Object(p.useKeyboardShortcut)(st.rawShortcut[n](t),(function(){return r(),!1}),{bindGlobal:!0}),null}function Wb(e){var t,n=e.name,r=e.shortcutType,o=e.shortcutCharacter,c=Object(he.a)(e,["name","shortcutType","shortcutCharacter"]),i="RichText.ToolbarControls";return n&&(i+=".".concat(n)),r&&o&&(t=st.displayShortcut[r](o)),Object(u.createElement)(h.Fill,{name:i},Object(u.createElement)(h.ToolbarButton,Object(l.a)({},c,{shortcut:t})))}function qb(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object($t.a)(e);if(t){var o=Object($t.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(qt.a)(this,n)}}var $b=function(e){Object(Wt.a)(n,e);var t=qb(n);function n(){var e;return Object(Ut.a)(this,n),(e=t.apply(this,arguments)).onInput=e.onInput.bind(Object(Kt.a)(e)),e}return Object(Gt.a)(n,[{key:"onInput",value:function(e){e.inputType===this.props.inputType&&this.props.onInput()}},{key:"componentDidMount",value:function(){document.addEventListener("input",this.onInput,!0)}},{key:"componentWillUnmount",value:function(){document.removeEventListener("input",this.onInput,!0)}},{key:"render",value:function(){return null}}]),n}(u.Component),Yb=Object(u.createElement)(h.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},Object(u.createElement)(h.Path,{d:"M9.4 20.5L5.2 3.8l14.6 9-2 .3c-.2 0-.4.1-.7.1-.9.2-1.6.3-2.2.5-.8.3-1.4.5-1.8.8-.4.3-.8.8-1.3 1.5-.4.5-.8 1.2-1.2 2l-.3.6-.9 1.9zM7.6 7.1l2.4 9.3c.2-.4.5-.8.7-1.1.6-.8 1.1-1.4 1.6-1.8.5-.4 1.3-.8 2.2-1.1l1.2-.3-8.1-5z"}));var Xb=Object(u.forwardRef)((function(e,t){var n=Object(v.useSelect)((function(e){return e("core/block-editor").isNavigationMode()}),[]),r=Object(v.useDispatch)("core/block-editor").setNavigationMode,o=function(e){r("edit"!==e)};return Object(u.createElement)(h.Dropdown,{renderToggle:function(r){var o=r.isOpen,c=r.onToggle;return Object(u.createElement)(h.Button,Object(l.a)({},e,{ref:t,icon:n?Yb:Db.a,"aria-expanded":o,"aria-haspopup":"true",onClick:c,label:Object(g.__)("Modes")}))},position:"bottom right",renderContent:function(){return Object(u.createElement)(u.Fragment,null,Object(u.createElement)(h.NavigableMenu,{role:"menu","aria-label":Object(g.__)("Modes")},Object(u.createElement)(h.MenuItemsChoice,{value:n?"select":"edit",onSelect:o,choices:[{value:"edit",label:Object(u.createElement)(u.Fragment,null,Object(u.createElement)(so.a,{icon:Db.a}),Object(g.__)("Edit"))},{value:"select",label:Object(u.createElement)(u.Fragment,null,Yb,Object(g.__)("Select"))}]})),Object(u.createElement)("div",{className:"block-editor-tool-selector__help"},Object(g.__)("Tools offer different interactions for block selection & editing. To select, press Escape, to go back to editing, press Enter.")))}})})),Qb=n(186),Zb=Object(u.createElement)(j.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(u.createElement)(j.Path,{d:"M9.737 18.011L3.98 12.255l5.734-6.28 1.107 1.012-4.103 4.494h13.3v1.5H6.828l3.97 3.97-1.06 1.06z"}));function Jb(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object($t.a)(e);if(t){var o=Object($t.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(qt.a)(this,n)}}var ef=function(e){Object(Wt.a)(n,e);var t=Jb(n);function n(){var e;return Object(Ut.a)(this,n),(e=t.apply(this,arguments)).toggle=e.toggle.bind(Object(Kt.a)(e)),e.submitLink=e.submitLink.bind(Object(Kt.a)(e)),e.state={expanded:!1},e}return Object(Gt.a)(n,[{key:"toggle",value:function(){this.setState({expanded:!this.state.expanded})}},{key:"submitLink",value:function(e){e.preventDefault(),this.toggle()}},{key:"render",value:function(){var e=this.props,t=e.url,n=e.onChange,r=this.state.expanded,o=t?Object(g.__)("Edit link"):Object(g.__)("Insert link");return Object(u.createElement)("div",{className:"block-editor-url-input__button"},Object(u.createElement)(h.Button,{icon:Qb.a,label:o,onClick:this.toggle,className:"components-toolbar__control",isPressed:!!t}),r&&Object(u.createElement)("form",{className:"block-editor-url-input__button-modal",onSubmit:this.submitLink},Object(u.createElement)("div",{className:"block-editor-url-input__button-modal-line"},Object(u.createElement)(h.Button,{className:"block-editor-url-input__back",icon:Zb,label:Object(g.__)("Close"),onClick:this.toggle}),Object(u.createElement)(cb,{value:t||"",onChange:n}),Object(u.createElement)(h.Button,{icon:Yd.a,label:Object(g.__)("Submit"),type:"submit"}))))}}]),n}(u.Component),tf=n(160),nf=["noreferrer","noopener"],rf=Object(u.createElement)(h.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(u.createElement)(h.Path,{d:"M0,0h24v24H0V0z",fill:"none"}),Object(u.createElement)(h.Path,{d:"m19 5v14h-14v-14h14m0-2h-14c-1.1 0-2 0.9-2 2v14c0 1.1 0.9 2 2 2h14c1.1 0 2-0.9 2-2v-14c0-1.1-0.9-2-2-2z"}),Object(u.createElement)(h.Path,{d:"m14.14 11.86l-3 3.87-2.14-2.59-3 3.86h12l-3.86-5.14z"})),of=function(e){var t=e.linkDestination,n=e.onChangeUrl,r=e.url,o=e.mediaType,c=void 0===o?"image":o,i=e.mediaUrl,a=e.mediaLink,l=e.linkTarget,s=e.linkClass,d=e.rel,b=Object(u.useState)(!1),p=Object(re.a)(b,2),m=p[0],v=p[1],O=Object(u.useCallback)((function(){v(!0)})),j=Object(u.useState)(!1),k=Object(re.a)(j,2),y=k[0],_=k[1],E=Object(u.useState)(null),C=Object(re.a)(E,2),S=C[0],w=C[1],I=Object(u.useRef)(null),B=function(e){e.stopPropagation()},x=function(e){[st.LEFT,st.DOWN,st.RIGHT,st.UP,st.BACKSPACE,st.ENTER].indexOf(e.keyCode)>-1&&e.stopPropagation()},P=Object(u.useCallback)((function(){"media"!==t&&"attachment"!==t||w(""),_(!0)})),T=Object(u.useCallback)((function(){_(!1)})),N=Object(u.useCallback)((function(){w(null),T(),v(!1)})),D=function(e){var t=e;return void 0===e||Object(f.isEmpty)(t)||Object(f.isEmpty)(t)||(Object(f.each)(nf,(function(e){var n=new RegExp("\\b"+e+"\\b","gi");t=t.replace(n,"")})),t!==e&&(t=t.trim()),Object(f.isEmpty)(t)&&(t=void 0)),t},R=Object(u.useCallback)((function(){return function(e){var t=I.current;t&&t.contains(e.target)||(v(!1),w(null),T())}})),A=Object(u.useCallback)((function(){return function(e){S&&n({href:S}),T(),w(null),e.preventDefault()}})),M=Object(u.useCallback)((function(){n({linkDestination:"none",href:""})})),L=function(){var e=[{linkDestination:"media",title:Object(g.__)("Media File"),url:"image"===c?i:void 0,icon:rf}];return"image"===c&&a&&e.push({linkDestination:"attachment",title:Object(g.__)("Attachment Page"),url:"image"===c?a:void 0,icon:Object(u.createElement)(h.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(u.createElement)(h.Path,{d:"M0 0h24v24H0V0z",fill:"none"}),Object(u.createElement)(h.Path,{d:"M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zM6 20V4h7v5h5v11H6z"}))}),e},F=Object(u.createElement)(u.Fragment,null,Object(u.createElement)(h.ToggleControl,{label:Object(g.__)("Open in new tab"),onChange:function(e){var t=function(e){var t=e?"_blank":void 0;return{linkTarget:t,rel:t||d?D(d):void 0}}(e);n(t)},checked:"_blank"===l}),Object(u.createElement)(h.TextControl,{label:Object(g.__)("Link Rel"),value:D(d)||"",onChange:function(e){n({rel:e})},onKeyPress:B,onKeyDown:x}),Object(u.createElement)(h.TextControl,{label:Object(g.__)("Link CSS Class"),value:s||"",onKeyPress:B,onKeyDown:x,onChange:function(e){n({linkClass:e})}})),V=null!==S?S:r,H=(Object(f.find)(L(),["linkDestination",t])||{}).title;return Object(u.createElement)(u.Fragment,null,Object(u.createElement)(h.ToolbarButton,{icon:Qb.a,className:"components-toolbar__control",label:r?Object(g.__)("Edit link"):Object(g.__)("Insert link"),"aria-expanded":m,onClick:O}),m&&Object(u.createElement)(Mb,{onFocusOutside:R(),onClose:N,renderSettings:function(){return F},additionalControls:!V&&Object(u.createElement)(h.NavigableMenu,null,Object(f.map)(L(),(function(e){return Object(u.createElement)(h.MenuItem,{key:e.linkDestination,icon:e.icon,onClick:function(){var t,r,o;w(null),t=e.url,o=L(),r=t?(Object(f.find)(o,(function(e){return e.url===t}))||{linkDestination:"custom"}).linkDestination:"none",n({linkDestination:r,href:t}),T()}},e.title)})))},(!r||y)&&Object(u.createElement)(Mb.LinkEditor,{className:"block-editor-format-toolbar__link-container-content",value:V,onChangeInputValue:w,onKeyDown:x,onKeyPress:B,onSubmit:A(),autocompleteRef:I}),r&&!y&&Object(u.createElement)(u.Fragment,null,Object(u.createElement)(Mb.LinkViewer,{className:"block-editor-format-toolbar__link-container-content",onKeyPress:B,url:r,onEditLinkClick:P,urlLabel:H}),Object(u.createElement)(h.Button,{icon:tf.a,label:Object(g.__)("Remove link"),onClick:M}))))},cf=n(161);function af(e){var t=e.children,n=e.className,r=e.isEnabled,o=void 0===r||r,c=e.deviceType,i=e.setDeviceType;if(Object(p.useViewportMatch)("small","<"))return null;var a={className:b()(n,"block-editor-post-preview__dropdown-content"),position:"bottom left"},l={isTertiary:!0,className:"block-editor-post-preview__button-toggle",disabled:!o,children:Object(g.__)("Preview")};return Object(u.createElement)(h.DropdownMenu,{className:"block-editor-post-preview__dropdown",popoverProps:a,toggleProps:l,icon:null},(function(){return Object(u.createElement)(u.Fragment,null,Object(u.createElement)(h.MenuGroup,null,Object(u.createElement)(h.MenuItem,{className:"block-editor-post-preview__button-resize",onClick:function(){return i("Desktop")},icon:"Desktop"===c&&cf.a},Object(g.__)("Desktop")),Object(u.createElement)(h.MenuItem,{className:"block-editor-post-preview__button-resize",onClick:function(){return i("Tablet")},icon:"Tablet"===c&&cf.a},Object(g.__)("Tablet")),Object(u.createElement)(h.MenuItem,{className:"block-editor-post-preview__button-resize",onClick:function(){return i("Mobile")},icon:"Mobile"===c&&cf.a},Object(g.__)("Mobile"))),t)}))}var lf=n(280),sf=/\((min|max)-width:[^\(]*?\)/g;function uf(e){return!!e.media&&!!e.media.mediaText.match(sf)}function df(e,t,n){e.deleteRule(n),e.insertRule(t,n)}function bf(e,t){return e.replace(sf,(function(e){return Object(lf.match)(e,{type:"screen",width:t})?"(min-width:0px)":"(min-width:999999px)"}))}function ff(e,t){Object(u.useEffect)((function(){if(t){var n,r,o,c="undefined"==typeof window?[]:Object(f.filter)(null!==(n=null===(r=window)||void 0===r||null===(o=r.document)||void 0===o?void 0:o.styleSheets)&&void 0!==n?n:[],(function(e){return!!e.href&&Object(zl.getProtocol)(e.href)===window.location.protocol&&Object(zl.getAuthority)(e.href)===window.location.host})),i=[];return c.forEach((function(n,r){for(var o=!1,c=0;c0,selectedBlockName:l,selectedBlockClientId:a,blockType:s}}))((function(e){var t=e.blockType,n=e.count,r=e.hasBlockStyles,o=e.selectedBlockClientId,i=e.selectedBlockName,a=e.showNoBlockSelectedMessage,l=void 0===a||a,s=e.bubblesVirtually,d=void 0===s||s;if(n>1)return Object(u.createElement)("div",{className:"block-editor-block-inspector"},Object(u.createElement)(Of,null),Object(u.createElement)(We.Slot,{bubblesVirtually:d}));var b=i===Object(c.getUnregisteredTypeHandlerName)();return t&&o&&!b?Object(u.createElement)("div",{className:"block-editor-block-inspector"},Object(u.createElement)(fo,{blockType:t}),r&&Object(u.createElement)("div",null,Object(u.createElement)(h.PanelBody,{title:Object(g.__)("Styles")},Object(u.createElement)(Is,{clientId:o}),Object(c.hasBlockSupport)(t.name,"defaultStylePicker",!0)&&Object(u.createElement)(gf,{blockName:t.name}))),Object(u.createElement)(We.Slot,{bubblesVirtually:d}),Object(u.createElement)("div",null,Object(u.createElement)(hf,{slotName:q.slotName,bubblesVirtually:d})),Object(u.createElement)(mf,{key:"back"})):l?Object(u.createElement)("span",{className:"block-editor-block-inspector__no-blocks"},Object(g.__)("No block selected.")):null}));function kf(e){var t,n,r=(t=Object(v.useSelect)((function(e){var t=e("core/block-editor"),n=t.hasSelectedBlock,r=t.hasMultiSelection;return n()||r()})),n=Object(v.useDispatch)("core/block-editor").clearSelectedBlock,function(e){e.target===e.currentTarget&&t&&n()});return Object(u.createElement)("div",Object(l.a)({tabIndex:-1,onFocus:r},e))}var yf=n(281),_f=n.n(yf),Ef=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,Cf=function(e,t){t=t||{};var n=1,r=1;function o(e){var t=e.match(/\n/g);t&&(n+=t.length);var o=e.lastIndexOf("\n");r=~o?e.length-o:r+e.length}function c(){var e={line:n,column:r};return function(t){return t.position=new i(e),f(),t}}function i(e){this.start=e,this.end={line:n,column:r},this.source=t.source}i.prototype.content=e;var a=[];function l(o){var c=new Error(t.source+":"+n+":"+r+": "+o);if(c.reason=o,c.filename=t.source,c.line=n,c.column=r,c.source=e,!t.silent)throw c;a.push(c)}function s(){return b(/^{\s*/)}function u(){return b(/^}/)}function d(){var t,n=[];for(f(),p(n);e.length&&"}"!==e.charAt(0)&&(t=C()||S());)!1!==t&&(n.push(t),p(n));return n}function b(t){var n=t.exec(e);if(n){var r=n[0];return o(r),e=e.slice(r.length),n}}function f(){b(/^\s*/)}function p(e){var t;for(e=e||[];t=m();)!1!==t&&e.push(t);return e}function m(){var t=c();if("/"===e.charAt(0)&&"*"===e.charAt(1)){for(var n=2;""!==e.charAt(n)&&("*"!==e.charAt(n)||"/"!==e.charAt(n+1));)++n;if(n+=2,""===e.charAt(n-1))return l("End of comment missing");var i=e.slice(2,n-2);return r+=2,o(i),e=e.slice(n),r+=2,t({type:"comment",comment:i})}}function v(){var e=b(/^([^{]+)/);if(e)return Sf(e[0]).replace(/\/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*\/+/g,"").replace(/"(?:\\"|[^"])*"|'(?:\\'|[^'])*'/g,(function(e){return e.replace(/,/g,"‌")})).split(/\s*(?![^(]*\)),\s*/).map((function(e){return e.replace(/\u200C/g,",")}))}function O(){var e=c(),t=b(/^(\*?[-#\/\*\\\w]+(\[[0-9a-z_-]+\])?)\s*/);if(t){if(t=Sf(t[0]),!b(/^:\s*/))return l("property missing ':'");var n=b(/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^\)]*?\)|[^};])+)/),r=e({type:"declaration",property:t.replace(Ef,""),value:n?Sf(n[0]).replace(Ef,""):""});return b(/^[;\s]*/),r}}function g(){var e,t=[];if(!s())return l("missing '{'");for(p(t);e=O();)!1!==e&&(t.push(e),p(t));return u()?t:l("missing '}'")}function h(){for(var e,t=[],n=c();e=b(/^((\d+\.\d+|\.\d+|\d+)%?|[a-z]+)\s*/);)t.push(e[1]),b(/^,\s*/);if(t.length)return n({type:"keyframe",values:t,declarations:g()})}var j,k=E("import"),y=E("charset"),_=E("namespace");function E(e){var t=new RegExp("^@"+e+"\\s*([^;]+);");return function(){var n=c(),r=b(t);if(r){var o={type:e};return o[e]=r[1].trim(),n(o)}}}function C(){if("@"===e[0])return function(){var e=c(),t=b(/^@([-\w]+)?keyframes\s*/);if(t){var n=t[1];if(!(t=b(/^([-\w]+)\s*/)))return l("@keyframes missing name");var r,o=t[1];if(!s())return l("@keyframes missing '{'");for(var i=p();r=h();)i.push(r),i=i.concat(p());return u()?e({type:"keyframes",name:o,vendor:n,keyframes:i}):l("@keyframes missing '}'")}}()||function(){var e=c(),t=b(/^@media *([^{]+)/);if(t){var n=Sf(t[1]);if(!s())return l("@media missing '{'");var r=p().concat(d());return u()?e({type:"media",media:n,rules:r}):l("@media missing '}'")}}()||function(){var e=c(),t=b(/^@custom-media\s+(--[^\s]+)\s*([^{;]+);/);if(t)return e({type:"custom-media",name:Sf(t[1]),media:Sf(t[2])})}()||function(){var e=c(),t=b(/^@supports *([^{]+)/);if(t){var n=Sf(t[1]);if(!s())return l("@supports missing '{'");var r=p().concat(d());return u()?e({type:"supports",supports:n,rules:r}):l("@supports missing '}'")}}()||k()||y()||_()||function(){var e=c(),t=b(/^@([-\w]+)?document *([^{]+)/);if(t){var n=Sf(t[1]),r=Sf(t[2]);if(!s())return l("@document missing '{'");var o=p().concat(d());return u()?e({type:"document",document:r,vendor:n,rules:o}):l("@document missing '}'")}}()||function(){var e=c();if(b(/^@page */)){var t=v()||[];if(!s())return l("@page missing '{'");for(var n,r=p();n=O();)r.push(n),r=r.concat(p());return u()?e({type:"page",selectors:t,declarations:r}):l("@page missing '}'")}}()||function(){var e=c();if(b(/^@host\s*/)){if(!s())return l("@host missing '{'");var t=p().concat(d());return u()?e({type:"host",rules:t}):l("@host missing '}'")}}()||function(){var e=c();if(b(/^@font-face\s*/)){if(!s())return l("@font-face missing '{'");for(var t,n=p();t=O();)n.push(t),n=n.concat(p());return u()?e({type:"font-face",declarations:n}):l("@font-face missing '}'")}}()}function S(){var e=c(),t=v();return t?(p(),e({type:"rule",selectors:t,declarations:g()})):l("selector missing")}return function e(t,n){var r=t&&"string"==typeof t.type,o=r?t:n;for(var c in t){var i=t[c];Array.isArray(i)?i.forEach((function(t){e(t,o)})):i&&"object"===Object(Ao.a)(i)&&e(i,o)}r&&Object.defineProperty(t,"parent",{configurable:!0,writable:!0,enumerable:!1,value:n||null});return t}((j=d(),{type:"stylesheet",stylesheet:{source:t.source,rules:j,parsingErrors:a}}))};function Sf(e){return e?e.replace(/^\s+|\s+$/g,""):""}var wf=n(171),If=n.n(wf),Bf=xf;function xf(e){this.options=e||{}}xf.prototype.emit=function(e){return e},xf.prototype.visit=function(e){return this[e.type](e)},xf.prototype.mapVisit=function(e,t){var n="";t=t||"";for(var r=0,o=e.length;r1&&void 0!==arguments[1]?arguments[1]:[];return function(n){return"rule"===n.type?zf(zf({},n),{},{selectors:n.selectors.map((function(n){return t.includes(n.trim())?n:n.match(Uf)?n.replace(/^(body|html|:root)/,e):e+" "+n}))}):n}},Kf=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return Object(f.map)(e,(function(e){var n=e.css,r=e.baseURL,o=[];return t&&o.push(Gf(t)),r&&o.push(Vf(r)),o.length?Rf(n,Object(p.compose)(o)):n}))};var Wf=function(e){var t=e.styles;return Object(u.useEffect)((function(){var e=Kf(t,".editor-styles-wrapper"),n=Object(f.map)(Object(f.compact)(e),(function(e){var t=document.createElement("style");return t.innerHTML=e,document.body.appendChild(t),t}));return function(){return n.forEach((function(e){return document.body.removeChild(e)}))}}),[t]),null};var qf=function(e){var t=e.rootClientId,n=e.clientId,r=e.isAppender,o=e.showInserterHelpPanel,c=e.showMostUsedBlocks,i=void 0!==c&&c,a=e.__experimentalSelectBlockOnInsert,l=e.__experimentalInsertionIndex,s=e.onSelect,d=void 0===s?f.noop:s,b=Object(v.useSelect)((function(e){var r=e("core/block-editor").getBlockRootClientId;return t||r(n)||void 0}),[n,t]);return Object(u.createElement)(Ql,{onSelect:d,rootClientId:b,clientId:n,isAppender:r,showInserterHelpPanel:o,showMostUsedBlocks:i,__experimentalSelectBlockOnInsert:a,__experimentalInsertionIndex:l})};function $f(){var e=Object(v.useSelect)((function(e){var t=e("core/block-editor"),n=t.getSelectedBlockClientIds,r=t.getBlockOrder,o=t.getBlockRootClientId,c=n(),i=Object(re.a)(c,1)[0];return{clientIds:c,rootBlocksClientIds:r(),rootClientId:o(i)}}),[]),t=e.clientIds,n=e.rootBlocksClientIds,r=e.rootClientId,o=Object(v.useDispatch)("core/block-editor"),c=o.duplicateBlocks,i=o.removeBlocks,l=o.insertAfterBlock,s=o.insertBeforeBlock,d=o.multiSelect,b=o.clearSelectedBlock,p=o.moveBlocksUp,m=o.moveBlocksDown;return Object(a.useShortcut)("core/block-editor/move-up",Object(u.useCallback)((function(e){e.preventDefault(),p(t,r)}),[t,p]),{bindGlobal:!0,isDisabled:0===t.length}),Object(a.useShortcut)("core/block-editor/move-down",Object(u.useCallback)((function(e){e.preventDefault(),m(t,r)}),[t,m]),{bindGlobal:!0,isDisabled:0===t.length}),Object(a.useShortcut)("core/block-editor/duplicate",Object(u.useCallback)((function(e){e.preventDefault(),c(t)}),[t,c]),{bindGlobal:!0,isDisabled:0===t.length}),Object(a.useShortcut)("core/block-editor/remove",Object(u.useCallback)((function(e){e.preventDefault(),i(t)}),[t,i]),{bindGlobal:!0,isDisabled:0===t.length}),Object(a.useShortcut)("core/block-editor/insert-after",Object(u.useCallback)((function(e){e.preventDefault(),l(Object(f.last)(t))}),[t,l]),{bindGlobal:!0,isDisabled:0===t.length}),Object(a.useShortcut)("core/block-editor/insert-before",Object(u.useCallback)((function(e){e.preventDefault(),s(Object(f.first)(t))}),[t,s]),{bindGlobal:!0,isDisabled:0===t.length}),Object(a.useShortcut)("core/block-editor/delete-multi-selection",Object(u.useCallback)((function(e){e.preventDefault(),i(t)}),[t,i]),{isDisabled:t.length<2}),Object(a.useShortcut)("core/block-editor/select-all",Object(u.useCallback)((function(e){e.preventDefault(),d(Object(f.first)(n),Object(f.last)(n))}),[n,d])),Object(a.useShortcut)("core/block-editor/unselect",Object(u.useCallback)((function(e){e.preventDefault(),b(),e.target.ownerDocument.defaultView.getSelection().removeAllRanges()}),[t,b]),{isDisabled:t.length<2}),null}$f.Register=function(){var e=Object(v.useDispatch)("core/keyboard-shortcuts").registerShortcut;return Object(u.useEffect)((function(){e({name:"core/block-editor/duplicate",category:"block",description:Object(g.__)("Duplicate the selected block(s)."),keyCombination:{modifier:"primaryShift",character:"d"}}),e({name:"core/block-editor/remove",category:"block",description:Object(g.__)("Remove the selected block(s)."),keyCombination:{modifier:"access",character:"z"}}),e({name:"core/block-editor/insert-before",category:"block",description:Object(g.__)("Insert a new block before the selected block(s)."),keyCombination:{modifier:"primaryAlt",character:"t"}}),e({name:"core/block-editor/insert-after",category:"block",description:Object(g.__)("Insert a new block after the selected block(s)."),keyCombination:{modifier:"primaryAlt",character:"y"}}),e({name:"core/block-editor/delete-multi-selection",category:"block",description:Object(g.__)("Remove multiple selected blocks."),keyCombination:{character:"del"},aliases:[{character:"backspace"}]}),e({name:"core/block-editor/select-all",category:"selection",description:Object(g.__)("Select all text when typing. Press again to select all blocks."),keyCombination:{modifier:"primary",character:"a"}}),e({name:"core/block-editor/unselect",category:"selection",description:Object(g.__)("Clear selection."),keyCombination:{character:"escape"}}),e({name:"core/block-editor/focus-toolbar",category:"global",description:Object(g.__)("Navigate to the nearest toolbar."),keyCombination:{modifier:"alt",character:"F10"}}),e({name:"core/block-editor/move-up",category:"block",description:Object(g.__)("Move the selected block(s) up."),keyCombination:{modifier:"secondary",character:"t"}}),e({name:"core/block-editor/move-down",category:"block",description:Object(g.__)("Move the selected block(s) down."),keyCombination:{modifier:"secondary",character:"y"}})}),[e]),null};var Yf=$f;function Xf(){var e=Object(v.useSelect)((function(e){var t=e("core/block-editor"),n=t.getBlockSelectionEnd,r=t.hasMultiSelection,o=t.isMultiSelecting;return{selectionEnd:n(),isMultiSelection:r(),isMultiSelecting:o()}}),[]),t=e.isMultiSelection,n=e.selectionEnd,r=e.isMultiSelecting;return Object(u.useEffect)((function(){if(n&&!r&&t){var e=qe(n);if(e){var o=Object(kr.getScrollContainer)(e);o&&tb()(e,o,{onlyScrollIfNeeded:!0})}}}),[t,n,r]),null}var Qf=[st.UP,st.RIGHT,st.DOWN,st.LEFT,st.ENTER,st.BACKSPACE];var Zf=Object(p.withSafeTimeout)((function(e){var t=e.children,n=e.setTimeout,r=Object(u.useRef)(),o=Object(u.useRef)(),c=Object(v.useSelect)((function(e){return e("core/block-editor").isTyping()})),i=Object(v.useDispatch)("core/block-editor"),a=i.startTyping,l=i.stopTyping;function s(e){var t=e?"addEventListener":"removeEventListener";r.current.ownerDocument[t]("selectionchange",b),r.current.ownerDocument[t]("mousemove",d),document[t]("mousemove",d)}function d(e){var t=e.clientX,n=e.clientY;if(o.current){var r=o.current,c=r.clientX,i=r.clientY;c===t&&i===n||l()}o.current={clientX:t,clientY:n}}function b(e){var t=e.target.defaultView.getSelection();t.rangeCount>0&&t.getRangeAt(0).collapsed||l()}function p(e){var t=e.type,n=e.target;!c&&Object(kr.isTextField)(n)&&r.current.contains(n)&&("keydown"!==t||function(e){var t=e.keyCode;return!e.shiftKey&&Qf.includes(t)}(e))&&a()}return Object(u.useEffect)((function(){return s(c),function(){return s(!1)}}),[c]),Object(u.createElement)("div",{ref:r,onFocus:function(e){var t=e.target;n((function(){c&&!Object(kr.isTextField)(t)&&l()}))},onKeyPress:p,onKeyDown:Object(f.over)([p,function(e){!c||e.keyCode!==st.ESCAPE&&e.keyCode!==st.TAB||l()}])},t)}));function Jf(){return to()("PreserveScrollInReorder component",{hint:"This behavior is now built-in the block list"}),null}function ep(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object($t.a)(e);if(t){var o=Object($t.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(qt.a)(this,n)}}var tp=-1!==window.navigator.userAgent.indexOf("Trident"),np=new Set([st.UP,st.DOWN,st.LEFT,st.RIGHT]),rp=function(e){Object(Wt.a)(n,e);var t=ep(n);function n(){var e;return Object(Ut.a)(this,n),(e=t.apply(this,arguments)).ref=Object(u.createRef)(),e.onKeyDown=e.onKeyDown.bind(Object(Kt.a)(e)),e.addSelectionChangeListener=e.addSelectionChangeListener.bind(Object(Kt.a)(e)),e.computeCaretRectOnSelectionChange=e.computeCaretRectOnSelectionChange.bind(Object(Kt.a)(e)),e.maintainCaretPosition=e.maintainCaretPosition.bind(Object(Kt.a)(e)),e.computeCaretRect=e.computeCaretRect.bind(Object(Kt.a)(e)),e.onScrollResize=e.onScrollResize.bind(Object(Kt.a)(e)),e.isSelectionEligibleForScroll=e.isSelectionEligibleForScroll.bind(Object(Kt.a)(e)),e.getDocument=e.getDocument.bind(Object(Kt.a)(e)),e.getWindow=e.getWindow.bind(Object(Kt.a)(e)),e}return Object(Gt.a)(n,[{key:"componentDidMount",value:function(){this.getWindow().addEventListener("scroll",this.onScrollResize,!0),this.getWindow().addEventListener("resize",this.onScrollResize,!0)}},{key:"componentWillUnmount",value:function(){this.getWindow().removeEventListener("scroll",this.onScrollResize,!0),this.getWindow().removeEventListener("resize",this.onScrollResize,!0),this.getDocument().removeEventListener("selectionchange",this.computeCaretRectOnSelectionChange),this.onScrollResize.rafId&&this.getWindow().cancelAnimationFrame(this.onScrollResize.rafId),this.onKeyDown.rafId&&this.getWindow().cancelAnimationFrame(this.onKeyDown.rafId)}},{key:"getDocument",value:function(){return this.ref.current.ownerDocument}},{key:"getWindow",value:function(){return this.getDocument().defaultView}},{key:"computeCaretRect",value:function(){this.isSelectionEligibleForScroll()&&(this.caretRect=Object(kr.computeCaretRect)(this.getWindow()))}},{key:"computeCaretRectOnSelectionChange",value:function(){this.getDocument().removeEventListener("selectionchange",this.computeCaretRectOnSelectionChange),this.computeCaretRect()}},{key:"onScrollResize",value:function(){var e=this;this.onScrollResize.rafId||(this.onScrollResize.rafId=this.getWindow().requestAnimationFrame((function(){e.computeCaretRect(),delete e.onScrollResize.rafId})))}},{key:"isSelectionEligibleForScroll",value:function(){return this.props.selectedBlockClientId&&this.ref.current.contains(this.getDocument().activeElement)&&this.getDocument().activeElement.isContentEditable}},{key:"isLastEditableNode",value:function(){var e=this.ref.current.querySelectorAll('[contenteditable="true"]');return e[e.length-1]===this.getDocument().activeElement}},{key:"maintainCaretPosition",value:function(e){var t=e.keyCode;if(this.isSelectionEligibleForScroll()){var n=Object(kr.computeCaretRect)(this.getWindow());if(n)if(this.caretRect)if(np.has(t))this.caretRect=n;else{var r=n.top-this.caretRect.top;if(0!==r){var o=Object(kr.getScrollContainer)(this.ref.current);if(o){var c=o===this.getDocument().body,i=c?this.getWindow().scrollY:o.scrollTop,a=c?0:o.getBoundingClientRect().top,l=c?this.caretRect.top/this.getWindow().innerHeight:(this.caretRect.top-a)/(this.getWindow().innerHeight-a);if(0===i&&l<.75&&this.isLastEditableNode())this.caretRect=n;else{var s=c?this.getWindow().innerHeight:o.clientHeight;this.caretRect.top+this.caretRect.height>a+s||this.caretRect.top-1},get:function(e){return r[n.indexOf(e)]},set:function(e,t){-1===n.indexOf(e)&&(n.push(e),r.push(t))},delete:function(e){var t=n.indexOf(e);t>-1&&(n.splice(t,1),r.splice(t,1))}}),c=function(e){return new Event(e,{bubbles:!0})};try{new Event("test")}catch(e){c=function(e){var t=document.createEvent("Event");return t.initEvent(e,!0,!1),t}}function i(e){if(e&&e.nodeName&&"TEXTAREA"===e.nodeName&&!o.has(e)){var t,n=null,r=null,i=null,a=function(){e.clientWidth!==r&&d()},l=function(t){window.removeEventListener("resize",a,!1),e.removeEventListener("input",d,!1),e.removeEventListener("keyup",d,!1),e.removeEventListener("autosize:destroy",l,!1),e.removeEventListener("autosize:update",d,!1),Object.keys(t).forEach((function(n){e.style[n]=t[n]})),o.delete(e)}.bind(e,{height:e.style.height,resize:e.style.resize,overflowY:e.style.overflowY,overflowX:e.style.overflowX,wordWrap:e.style.wordWrap});e.addEventListener("autosize:destroy",l,!1),"onpropertychange"in e&&"oninput"in e&&e.addEventListener("keyup",d,!1),window.addEventListener("resize",a,!1),e.addEventListener("input",d,!1),e.addEventListener("autosize:update",d,!1),e.style.overflowX="hidden",e.style.wordWrap="break-word",o.set(e,{destroy:l,update:d}),"vertical"===(t=window.getComputedStyle(e,null)).resize?e.style.resize="none":"both"===t.resize&&(e.style.resize="horizontal"),n="content-box"===t.boxSizing?-(parseFloat(t.paddingTop)+parseFloat(t.paddingBottom)):parseFloat(t.borderTopWidth)+parseFloat(t.borderBottomWidth),isNaN(n)&&(n=0),d()}function s(t){var n=e.style.width;e.style.width="0px",e.offsetWidth,e.style.width=n,e.style.overflowY=t}function u(){if(0!==e.scrollHeight){var t=function(e){for(var t=[];e&&e.parentNode&&e.parentNode instanceof Element;)e.parentNode.scrollTop&&t.push({node:e.parentNode,scrollTop:e.parentNode.scrollTop}),e=e.parentNode;return t}(e),o=document.documentElement&&document.documentElement.scrollTop;e.style.height="",e.style.height=e.scrollHeight+n+"px",r=e.clientWidth,t.forEach((function(e){e.node.scrollTop=e.scrollTop})),o&&(document.documentElement.scrollTop=o)}}function d(){u();var t=Math.round(parseFloat(e.style.height)),n=window.getComputedStyle(e,null),r="content-box"===n.boxSizing?Math.round(parseFloat(n.height)):e.offsetHeight;if(r0?!0===i?r.scrollTop(t,h.top+j.top):!1===i?r.scrollTop(t,h.top+k.top):j.top<0?r.scrollTop(t,h.top+j.top):r.scrollTop(t,h.top+k.top):c||((i=void 0===i||!!i)?r.scrollTop(t,h.top+j.top):r.scrollTop(t,h.top+k.top)),o&&(j.left<0||k.left>0?!0===a?r.scrollLeft(t,h.left+j.left):!1===a?r.scrollLeft(t,h.left+k.left):j.left<0?r.scrollLeft(t,h.left+j.left):r.scrollLeft(t,h.left+k.left):c||((a=void 0===a||!!a)?r.scrollLeft(t,h.left+j.left):r.scrollLeft(t,h.left+k.left)))}},function(e,t,n){"use strict";var r=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(t,["children"]);if(delete r.in,delete r.mountOnEnter,delete r.unmountOnExit,delete r.appear,delete r.enter,delete r.exit,delete r.timeout,delete r.addEndListener,delete r.onEnter,delete r.onEntering,delete r.onEntered,delete r.onExit,delete r.onExiting,delete r.onExited,"function"==typeof n)return n(e,r);var c=o.default.Children.only(n);return o.default.cloneElement(c,r)},r}(o.default.Component);function s(){}l.contextTypes={transitionGroup:r.object},l.childContextTypes={transitionGroup:function(){}},l.propTypes={},l.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:s,onEntering:s,onEntered:s,onExit:s,onExiting:s,onExited:s},l.UNMOUNTED=0,l.EXITED=1,l.ENTERING=2,l.ENTERED=3,l.EXITING=4;var u=(0,i.polyfill)(l);t.default=u},function(e,t,n){"use strict";function r(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);null!=e&&this.setState(e)}function o(e){this.setState(function(t){var n=this.constructor.getDerivedStateFromProps(e,t);return null!=n?n:null}.bind(this))}function c(e,t){try{var n=this.props,r=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(n,r)}finally{this.props=n,this.state=r}}function i(e){var t=e.prototype;if(!t||!t.isReactComponent)throw new Error("Can only polyfill class components");if("function"!=typeof e.getDerivedStateFromProps&&"function"!=typeof t.getSnapshotBeforeUpdate)return e;var n=null,i=null,a=null;if("function"==typeof t.componentWillMount?n="componentWillMount":"function"==typeof t.UNSAFE_componentWillMount&&(n="UNSAFE_componentWillMount"),"function"==typeof t.componentWillReceiveProps?i="componentWillReceiveProps":"function"==typeof t.UNSAFE_componentWillReceiveProps&&(i="UNSAFE_componentWillReceiveProps"),"function"==typeof t.componentWillUpdate?a="componentWillUpdate":"function"==typeof t.UNSAFE_componentWillUpdate&&(a="UNSAFE_componentWillUpdate"),null!==n||null!==i||null!==a){var l=e.displayName||e.name,s="function"==typeof e.getDerivedStateFromProps?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n"+l+" uses "+s+" but also contains the following legacy lifecycles:"+(null!==n?"\n "+n:"")+(null!==i?"\n "+i:"")+(null!==a?"\n "+a:"")+"\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://fb.me/react-async-component-lifecycle-hooks")}if("function"==typeof e.getDerivedStateFromProps&&(t.componentWillMount=r,t.componentWillReceiveProps=o),"function"==typeof t.getSnapshotBeforeUpdate){if("function"!=typeof t.componentDidUpdate)throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");t.componentWillUpdate=c;var u=t.componentDidUpdate;t.componentDidUpdate=function(e,t,n){var r=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:n;u.call(this,e,t,r)}}return e}n.r(t),n.d(t,"polyfill",(function(){return i})),r.__suppressDeprecationWarning=!0,o.__suppressDeprecationWarning=!0,c.__suppressDeprecationWarning=!0},function(e,t,n){"use strict";t.__esModule=!0,t.classNamesShape=t.timeoutsShape=void 0;var r;(r=n(28))&&r.__esModule;t.timeoutsShape=null;t.classNamesShape=null},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r=a(n(28)),o=a(n(13)),c=n(210),i=n(314);function a(e){return e&&e.__esModule?e:{default:e}}function l(){return(l=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,["component","childFactory"]),c=u(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?c:o.default.createElement(t,r,c)},r}(o.default.Component);d.childContextTypes={transitionGroup:r.default.object.isRequired},d.propTypes={},d.defaultProps={component:"div",childFactory:function(e){return e}};var b=(0,c.polyfill)(d);t.default=b,e.exports=t.default},function(e,t,n){"use strict";var r=n(0),o=n(7),c=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M10.6 6L9.4 7l4.6 5-4.6 5 1.2 1 5.4-6z"}));t.a=c},function(e,t,n){"use strict";var r=n(0),o=n(7),c=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M14.6 7l-1.2-1L8 12l5.4 6 1.2-1-4.6-5z"}));t.a=c},function(e,t,n){"use strict";var r=n(0),o=n(7),c=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(r.createElement)(o.Path,{d:"M16 4h2v9H7v3l-5-4 5-4v3h9V4z"}));t.a=c},function(e,t,n){"use strict";var r=n(0),o=n(7),c=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M18.5 15v3.5H13V6.7l4.5 4.1 1-1.1-6.2-5.8-5.8 5.8 1 1.1 4-4v11.7h-6V15H4v5h16v-5z"}));t.a=c},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";var r=n(0),o=n(7),c=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M20.1 5.1L16.9 2 6.2 12.7l-1.3 4.4 4.5-1.3L20.1 5.1zM4 20.8h8v-1.5H4v1.5z"}));t.a=c},,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.dispatch;return function(e){return function(n){return Array.isArray(n)?n.filter(Boolean).map(t):e(n)}}}},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return l}));var r=n(12),o=n(0),c=n(175),i=n(2),a=(n(92),n(133));function l(e){var t=e.children,n=e.className;return Object(o.createElement)(a.a.Slot,{__experimentalIsExpanded:!0},(function(e){return Object(o.createElement)(s,{className:n,fills:e},t)}))}function s(t){var n=t.fills,a=t.className,l=void 0===a?"":a,s=t.children,u=Object(o.useRef)(),d=Object(o.useRef)(),b=Object(o.useRef)(),f=Object(o.useState)({}),p=Object(r.a)(f,2),m=p[0],v=p[1],O=Object(o.useRef)();O.current=n;var g=Object(o.useCallback)(Object(i.throttle)((function(){var e=O.current.length?d.current:b.current;if(e){e.style.position="absolute",e.style.width="auto";var t,n=(t=e).ownerDocument.defaultView.getComputedStyle(t);v({width:n.getPropertyValue("width"),height:n.getPropertyValue("height")}),e.style.position="",e.style.width=""}}),100),[]);Object(o.useEffect)((function(){var e=new window.MutationObserver((function(e){e.find((function(e){return"childList"===e.type}))&&g()}));return e.observe(u.current,{childList:!0,subtree:!0}),function(){return e.disconnect()}}),[]),Object(o.useEffect)((function(){n.length>1&&void 0!==e&&e.env}),[n.length]);var h=n[0];return Object(o.createElement)("div",{className:"block-editor-block-toolbar-animated-width-container",ref:u,style:m},Object(o.createElement)(c.TransitionGroup,null,h?Object(o.createElement)(c.CSSTransition,{key:"fills",timeout:300,classNames:"block-editor-block-toolbar-content"},Object(o.createElement)("div",{className:l,ref:d},h)):Object(o.createElement)(c.CSSTransition,{key:"default",timeout:300,classNames:"block-editor-block-toolbar-content"},Object(o.createElement)("div",{className:l,ref:b},s))))}}).call(this,n(103))},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.diffChars=function(e,t,n){return o.diff(e,t,n)},t.characterDiff=void 0;var o=new(((r=n(318))&&r.__esModule?r:{default:r}).default);t.characterDiff=o},function(e,t,n){"use strict";t.match=function(e,t){return l(e).some((function(e){var n=e.inverse,r="all"===e.type||t.type===e.type;if(r&&n||!r&&!n)return!1;var o=e.expressions.every((function(e){var n=e.feature,r=e.modifier,o=e.value,c=t[n];if(!c)return!1;switch(n){case"orientation":case"scan":return c.toLowerCase()===o.toLowerCase();case"width":case"height":case"device-width":case"device-height":o=d(o),c=d(c);break;case"resolution":o=u(o),c=u(c);break;case"aspect-ratio":case"device-aspect-ratio":case"device-pixel-ratio":o=s(o),c=s(c);break;case"grid":case"color":case"color-index":case"monochrome":o=parseInt(o,10)||1,c=parseInt(c,10)||0}switch(r){case"min":return c>=o;case"max":return c<=o;default:return c===o}}));return o&&!n||!o&&n}))},t.parse=l;var r=/(?:(only|not)?\s*([^\s\(\)]+)(?:\s*and)?\s*)?(.+)?/i,o=/\(\s*([^\s\:\)]+)\s*(?:\:\s*([^\s\)]+))?\s*\)/,c=/^(?:(min|max)-)?(.+)/,i=/(em|rem|px|cm|mm|in|pt|pc)?$/,a=/(dpi|dpcm|dppx)?$/;function l(e){return e.split(",").map((function(e){var t=(e=e.trim()).match(r),n=t[1],i=t[2],a=t[3]||"",l={};return l.inverse=!!n&&"not"===n.toLowerCase(),l.type=i?i.toLowerCase():"all",a=a.match(/\([^\)]+\)/g)||[],l.expressions=a.map((function(e){var t=e.match(o),n=t[1].toLowerCase().match(c);return{modifier:n[1],feature:n[2],value:t[2]}})),l}))}function s(e){var t,n=Number(e);return n||(n=(t=e.match(/^(\d+)\s*\/\s*(\d+)$/))[1]/t[2]),n}function u(e){var t=parseFloat(e);switch(String(e).match(a)[1]){case"dpcm":return t/2.54;case"dppx":return 96*t;default:return t}}function d(e){var t=parseFloat(e);switch(String(e).match(i)[1]){case"em":case"rem":return 16*t;case"cm":return 96*t/2.54;case"mm":return 96*t/2.54/10;case"in":return 96*t;case"pt":return 72*t;case"pc":return 72*t/12;default:return t}}},function(e,t){var n=e.exports=function(e){return new r(e)};function r(e){this.value=e}function o(e,t,n){var r=[],o=[],a=!0;return function e(d){var b=n?c(d):d,f={},p=!0,m={node:b,node_:d,path:[].concat(r),parent:o[o.length-1],parents:o,key:r.slice(-1)[0],isRoot:0===r.length,level:r.length,circular:null,update:function(e,t){m.isRoot||(m.parent.node[m.key]=e),m.node=e,t&&(p=!1)},delete:function(e){delete m.parent.node[m.key],e&&(p=!1)},remove:function(e){l(m.parent.node)?m.parent.node.splice(m.key,1):delete m.parent.node[m.key],e&&(p=!1)},keys:null,before:function(e){f.before=e},after:function(e){f.after=e},pre:function(e){f.pre=e},post:function(e){f.post=e},stop:function(){a=!1},block:function(){p=!1}};if(!a)return m;function v(){if("object"==typeof m.node&&null!==m.node){m.keys&&m.node_===m.node||(m.keys=i(m.node)),m.isLeaf=0==m.keys.length;for(var e=0;e=0||(o[n]=e[n]);return o}(e,["children","in"]),i=r.default.Children.toArray(t),a=i[0],l=i[1];return delete o.onEnter,delete o.onEntering,delete o.onEntered,delete o.onExit,delete o.onExiting,delete o.onExited,r.default.createElement(c.default,o,n?r.default.cloneElement(a,{key:"first",onEnter:this.handleEnter,onEntering:this.handleEntering,onEntered:this.handleEntered}):r.default.cloneElement(l,{key:"second",onEnter:this.handleExit,onEntering:this.handleExiting,onEntered:this.handleExited}))},i}(r.default.Component);a.propTypes={};var l=a;t.default=l,e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.getChildMapping=o,t.mergeChildMappings=c,t.getInitialChildMapping=function(e,t){return o(e.children,(function(n){return(0,r.cloneElement)(n,{onExited:t.bind(null,n),in:!0,appear:i(n,"appear",e),enter:i(n,"enter",e),exit:i(n,"exit",e)})}))},t.getNextChildMapping=function(e,t,n){var a=o(e.children),l=c(t,a);return Object.keys(l).forEach((function(o){var c=l[o];if((0,r.isValidElement)(c)){var s=o in t,u=o in a,d=t[o],b=(0,r.isValidElement)(d)&&!d.props.in;!u||s&&!b?u||!s||b?u&&s&&(0,r.isValidElement)(d)&&(l[o]=(0,r.cloneElement)(c,{onExited:n.bind(null,c),in:d.props.in,exit:i(c,"exit",e),enter:i(c,"enter",e)})):l[o]=(0,r.cloneElement)(c,{in:!1}):l[o]=(0,r.cloneElement)(c,{onExited:n.bind(null,c),in:!0,exit:i(c,"exit",e),enter:i(c,"enter",e)})}})),l};var r=n(13);function o(e,t){var n=Object.create(null);return e&&r.Children.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&(0,r.isValidElement)(e)?t(e):e}(e)})),n}function c(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,o=Object.create(null),c=[];for(var i in e)i in t?c.length&&(o[i]=c,c=[]):c.push(i);var a={};for(var l in t){if(o[l])for(r=0;re.length?n:e})),s.value=e.join(d)}else s.value=e.join(n.slice(a,a+s.count));a+=s.count,s.added||(l+=s.count)}}var b=t[i-1];return i>1&&"string"==typeof b.value&&(b.added||b.removed)&&e.equals("",b.value)&&(t[i-2].value+=b.value,t.pop()),t}function c(e){return{newPos:e.newPos,components:e.components.slice(0)}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r,r.prototype={diff:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.callback;"function"==typeof n&&(r=n,n={}),this.options=n;var i=this;function a(e){return r?(setTimeout((function(){r(void 0,e)}),0),!0):e}e=this.castInput(e),t=this.castInput(t),e=this.removeEmpty(this.tokenize(e));var l=(t=this.removeEmpty(this.tokenize(t))).length,s=e.length,u=1,d=l+s,b=[{newPos:-1,components:[]}],f=this.extractCommon(b[0],t,e,0);if(b[0].newPos+1>=l&&f+1>=s)return a([{value:this.join(t),count:t.length}]);function p(){for(var n=-1*u;n<=u;n+=2){var r=void 0,d=b[n-1],f=b[n+1],p=(f?f.newPos:0)-n;d&&(b[n-1]=void 0);var m=d&&d.newPos+1=l&&p+1>=s)return a(o(i,r.components,t,e,i.useLongestToken));b[n]=r}else b[n]=void 0}u++}if(r)!function e(){setTimeout((function(){if(u>d)return r();p()||e()}),0)}();else for(;u<=d;){var m=p();if(m)return m}},pushComponent:function(e,t,n){var r=e[e.length-1];r&&r.added===t&&r.removed===n?e[e.length-1]={count:r.count+1,added:t,removed:n}:e.push({count:1,added:t,removed:n})},extractCommon:function(e,t,n,r){for(var o=t.length,c=n.length,i=e.newPos,a=i-r,l=0;i+11&&void 0!==arguments[1])||arguments[1],r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return t=Array.isArray(e)?e:!0===e?R:[],!r||!0===e&&!n?f.without.apply(void 0,[t].concat(A)):t}var L=Object(u.createContext)({}),F=L.Provider,V=Object(p.createHigherOrderComponent)((function(e){return function(t){var n=Object(u.useContext)(L).isEmbedButton,r=t.name,o=n?[]:M(Object(c.getBlockSupport)(r,"align"),Object(c.hasBlockSupport)(r,"alignWide",!0));return[o.length>0&&t.isSelected&&Object(u.createElement)(O.a,{key:"align-controls"},Object(u.createElement)(T,{value:t.attributes.align,onChange:function(e){var n,r;e||(null===(n=Object(c.getBlockType)(t.name).attributes)||void 0===n||null===(r=n.align)||void 0===r?void 0:r.default)&&(e="");t.setAttributes({align:e})},controls:o})),Object(u.createElement)(e,Object(l.a)({key:"edit"},t))]}}),"withToolbarControls"),H=Object(p.createHigherOrderComponent)((function(e){return function(t){var n=t.name,r=t.attributes.align,o=Object(v.useSelect)((function(e){return!!e("core/block-editor").getSettings().alignWide}),[]);if(void 0===r)return Object(u.createElement)(e,t);var i=M(Object(c.getBlockSupport)(n,"align"),Object(c.hasBlockSupport)(n,"alignWide",!0),o),a=t.wrapperProps;return i.includes(r)&&(a=D(D({},a),{},{"data-align":r})),Object(u.createElement)(e,Object(l.a)({},t,{wrapperProps:a}))}}));Object(m.addFilter)("blocks.registerBlockType","core/align/addAttribute",(function(e){return Object(f.has)(e.attributes,["align","type"])||Object(c.hasBlockSupport)(e,"align")&&(e.attributes=D(D({},e.attributes),{},{align:{type:"string",enum:[].concat(R,[""])}})),e})),Object(m.addFilter)("editor.BlockListBlock","core/editor/align/with-data-align",H),Object(m.addFilter)("editor.BlockEdit","core/editor/align/with-toolbar-controls",V),Object(m.addFilter)("blocks.getSaveContent.extraProps","core/align/addAssignedAlign",(function(e,t,n){var r=n.align;return M(Object(c.getBlockSupport)(t,"align"),Object(c.hasBlockSupport)(t,"alignWide",!0)).includes(r)&&(e.className=b()("align".concat(r),e.className)),e}));var z=n(80),U=Object(h.createSlotFill)("InspectorAdvancedControls"),G=U.Fill,K=U.Slot;function W(e){var t=e.children;return Object(z.b)().isSelected?Object(u.createElement)(G,null,t):null}W.slotName="InspectorAdvancedControls",W.Slot=K;var q=W;function $(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Y(e){for(var t=1;t");var t=Object(c.parseWithAttributeSchema)(e,{type:"string",source:"attribute",selector:"[data-custom-class-name] > *",attribute:"class"});return t?t.trim().split(/\s+/):[]}Object(m.addFilter)("blocks.registerBlockType","core/custom-class-name/attribute",(function(e){return Object(c.hasBlockSupport)(e,"customClassName",!0)&&(e.attributes=J(J({},e.attributes),{},{className:{type:"string"}})),e})),Object(m.addFilter)("editor.BlockEdit","core/editor/custom-class-name/with-inspector-control",ee),Object(m.addFilter)("blocks.getSaveContent.extraProps","core/custom-class-name/save-props",(function(e,t,n){return Object(c.hasBlockSupport)(t,"customClassName",!0)&&n.className&&(e.className=b()(e.className,n.className)),e})),Object(m.addFilter)("blocks.getBlockAttributes","core/custom-class-name/addParsedDifference",(function(e,t,n){if(Object(c.hasBlockSupport)(t,"customClassName",!0)){var r=Object(f.omit)(e,["className"]),o=Object(c.getSaveContent)(t,r),i=te(o),a=te(n),l=Object(f.difference)(a,i);l.length?e.className=l.join(" "):o&&delete e.className}return e}));var ne=n(17);Object(m.addFilter)("blocks.getSaveContent.extraProps","core/generated-class-name/save-props",(function(e,t){return Object(c.hasBlockSupport)(t,"className",!0)&&("string"==typeof e.className?e.className=Object(f.uniq)([Object(c.getBlockDefaultClassName)(t.name)].concat(Object(ne.a)(e.className.split(" ")))).join(" ").trim():e.className=Object(c.getBlockDefaultClassName)(t.name)),e}));var re=n(12),oe=n(148),ce=n(66),ie=n.n(ce),ae=function(e,t,n){if(t){var r=Object(f.find)(e,{slug:t});if(r)return r}return{color:n}},le=function(e,t){return Object(f.find)(e,{color:t})};function se(e,t){if(e&&t)return"has-".concat(Object(f.kebabCase)(t),"-").concat(e)}var ue={"color.palette":function(e){return void 0===e.colors?void 0:e.colors},"color.gradients":function(e){return void 0===e.gradients?void 0:e.gradients},"color.custom":function(e){return void 0===e.disableCustomColors?void 0:!e.disableCustomColors},"color.customGradient":function(e){return void 0===e.disableCustomGradients?void 0:!e.disableCustomGradients},"typography.fontSizes":function(e){return void 0===e.fontSizes?void 0:e.fontSizes},"typography.customFontSize":function(e){return void 0===e.disableCustomFontSizes?void 0:!e.disableCustomFontSizes},"typography.customLineHeight":function(e){return e.enableCustomLineHeight},"spacing.units":function(e){if(void 0!==e.enableCustomUnits)return!0===e.enableCustomUnits?["px","em","rem","vh","vw"]:e.enableCustomUnits}};function de(e){var t=Object(z.b)().name;return Object(v.useSelect)((function(n){var r,o=n("core/block-editor").getSettings(),c="__experimentalFeatures.global.".concat(e),i="__experimentalFeatures.".concat(t,".").concat(e),a=null!==(r=Object(f.get)(o,i))&&void 0!==r?r:Object(f.get)(o,c);if(void 0!==a)return a;var l=ue[e]?ue[e](o):void 0;return void 0!==l?l:"typography.dropCap"===e||void 0}),[t,e])}var be=[];function fe(e){if(e)return"has-".concat(e,"-gradient-background")}function pe(e,t){var n=Object(f.find)(e,["slug",t]);return n&&n.gradient}function me(e,t){return Object(f.find)(e,["gradient",t])}function ve(e,t){var n=me(e,t);return n&&n.slug}function Oe(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.gradientAttribute,n=void 0===t?"gradient":t,r=e.customGradientAttribute,o=void 0===r?"customGradient":r,c=Object(z.b)(),i=c.clientId,a=de("color.gradients")||be,l=Object(v.useSelect)((function(e){var t=(0,e("core/block-editor").getBlockAttributes)(i);return{customGradient:t[o],gradient:t[n]}}),[i,n,o]),d=l.gradient,b=l.customGradient,f=Object(v.useDispatch)("core/block-editor"),p=f.updateBlockAttributes,m=Object(u.useCallback)((function(e){var t,r,c=ve(a,e);c?p(i,(r={},Object(s.a)(r,n,c),Object(s.a)(r,o,void 0),r)):p(i,(t={},Object(s.a)(t,n,void 0),Object(s.a)(t,o,e),t))}),[a,i,p]),O=fe(d);return{gradientClass:O,gradientValue:d?pe(a,d):b,setGradient:m}}var ge=function e(t){if(!Object(f.isObject)(t))return t;var n=Object(f.pickBy)(Object(f.mapValues)(t,e),f.identity);return Object(f.isEqual)(n,{})?void 0:n},he=n(14);function je(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ke(e){for(var t=1;t=24?"large":"small"})?null:Object(u.createElement)(Fe,{backgroundColor:t,textColor:i,tinyBackgroundColor:a,tinyTextColor:l})},He=n(171),ze=Object(h.createSlotFill)("InspectorControls"),Ue=ze.Fill,Ge=ze.Slot;function Ke(e){var t=e.children;return Object(He.a)()?Object(u.createElement)(Ue,null,t):null}Ke.Slot=Ge;var We=Ke;function qe(e){return document.getElementById("block-"+e)}function $e(e,t){return t.closest(".block-editor-block-list__block")===e}function Ye(e){for(;e&&e.nodeType!==e.ELEMENT_NODE;)e=e.parentNode;if(e){var t=e.closest(".block-editor-block-list__block");if(t)return t.id.slice("block-".length)}}function Xe(e){return e.ownerDocument.defaultView.getComputedStyle(e)}function Qe(e){var t=e.settings,n=e.clientId,r=e.enableContrastChecking,o=void 0===r||r,c=Object(u.useState)(),i=Object(re.a)(c,2),a=i[0],l=i[1],s=Object(u.useState)(),d=Object(re.a)(s,2),b=d[0],f=d[1];return Object(u.useEffect)((function(){if(o){var e=qe(n);if(e){f(Xe(e).color);for(var t=e,r=Xe(t).backgroundColor;"rgba(0, 0, 0, 0)"===r&&t.parentNode&&t.parentNode.nodeType===t.parentNode.ELEMENT_NODE;)r=Xe(t=t.parentNode).backgroundColor;l(r)}}})),Object(u.createElement)(We,null,Object(u.createElement)(Me,{title:Object(g.__)("Color settings"),initialOpen:!1,settings:t},o&&Object(u.createElement)(Ve,{backgroundColor:a,textColor:b})))}function Ze(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Je(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.name,n=!de("typography.customLineHeight");return!Object(c.hasBlockSupport)(t,"lineHeight")||n}var mt=n(156),vt=n.n(mt),Ot=function(e,t,n){if(t){var r=Object(f.find)(e,{slug:t});if(r)return r}return{size:n}};function gt(e,t){var n=Object(f.find)(e,{size:t});return n||{size:t}}function ht(e){if(e)return"has-".concat(Object(f.kebabCase)(e),"-font-size")}var jt=function(e){var t=de("typography.fontSizes"),n=!de("typography.customFontSize");return Object(u.createElement)(h.FontSizePicker,Object(l.a)({},e,{fontSizes:t,disableCustomFontSizes:n}))};function kt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function yt(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.name,n=de("typography.fontSizes"),r=!!(null==n?void 0:n.length);return!Object(c.hasBlockSupport)(t,"fontSize")||!r}var St=Object(p.createHigherOrderComponent)((function(e){return function(t){var n,r=de("typography.fontSizes"),o=t.name,i=t.attributes,a=i.fontSize,l=i.style,s=t.wrapperProps,d=yt({},t);if(Object(c.hasBlockSupport)(o,"fontSize")&&a&&!(null==l||null===(n=l.typography)||void 0===n?void 0:n.fontSize)){var b,f=Ot(r,a,null==l||null===(b=l.typography)||void 0===b?void 0:b.fontSize).size;d.wrapperProps=yt(yt({},s),{},{style:yt({fontSize:f},null==s?void 0:s.style)})}return Object(u.createElement)(e,d)}}),"withFontSizeInlineStyles");Object(m.addFilter)("blocks.registerBlockType","core/font/addAttribute",(function(e){return Object(c.hasBlockSupport)(e,"fontSize")?(e.attributes.fontSize||Object.assign(e.attributes,{fontSize:{type:"string"}}),e):e})),Object(m.addFilter)("blocks.getSaveContent.extraProps","core/font/addSaveProps",_t),Object(m.addFilter)("blocks.registerBlockType","core/font/addEditProps",(function(e){if(!Object(c.hasBlockSupport)(e,"fontSize"))return e;var t=e.getEditWrapperProps;return e.getEditWrapperProps=function(n){var r={};return t&&(r=t(n)),_t(r,e,n)},e})),Object(m.addFilter)("editor.BlockListBlock","core/font-size/with-font-size-inline-styles",St);var wt=["lineHeight","fontSize"];function It(e){var t=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=[Ct(e),pt(e)];return t.filter(Boolean).length===t.length}(e),n=Bt(e.name);return t||!n?null:Object(u.createElement)(We,null,Object(u.createElement)(h.PanelBody,{title:Object(g.__)("Typography")},Object(u.createElement)(Et,e),Object(u.createElement)(ft,e)))}var Bt=function(e){return"web"===u.Platform.OS&&wt.some((function(t){return Object(c.hasBlockSupport)(e,t)}))};function xt(e){var t=e.units,n=Object(he.a)(e,["units"]),r=Pt(t);return Object(u.createElement)(h.__experimentalUnitControl,Object(l.a)({units:r},n))}function Pt(e){var t=de("spacing.units"),n=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return t.filter((function(t){return e.includes(t.value)}))}(t||[],e);return 0!==n.length&&n}function Tt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Nt(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t={};return Object.entries(c.__EXPERIMENTAL_STYLE_PROPERTY).forEach((function(n){var r=Object(oe.a)(n),o=r[0],c=r.slice(1),i=Object(re.a)(c,1)[0];Object(f.has)(e,i)&&(t[o]=Vt(Object(f.get)(e,i)))})),t}(r)),e.style),e}var zt=Object(p.createHigherOrderComponent)((function(e){return function(t){var n=t.name,r=Object(c.hasBlockSupport)(n,"spacing");return[Object(u.createElement)(It,Object(l.a)({key:"typography"},t)),Object(u.createElement)(at,Object(l.a)({key:"colors"},t)),Object(u.createElement)(e,Object(l.a)({key:"edit"},t)),r&&Object(u.createElement)(Rt,{key:"spacing"},Object(u.createElement)(Dt,t))]}}),"withToolbarControls");Object(m.addFilter)("blocks.registerBlockType","core/style/addAttribute",(function(e){return Ft(e)?(e.attributes.style||Object.assign(e.attributes,{style:{type:"object"}}),e):e})),Object(m.addFilter)("blocks.getSaveContent.extraProps","core/style/addSaveProps",Ht),Object(m.addFilter)("blocks.registerBlockType","core/style/addEditProps",(function(e){if(!Ft(e))return e;var t=e.getEditWrapperProps;return e.getEditWrapperProps=function(n){var r={};return t&&(r=t(n)),Ht(r,e,n)},e})),Object(m.addFilter)("editor.BlockEdit","core/style/with-block-controls",zt);var Ut=n(21),Gt=n(22),Kt=n(16),Wt=n(23),qt=n(24),$t=n(19);function Yt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object($t.a)(e);if(t){var o=Object($t.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(qt.a)(this,n)}}function Xt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Qt(e){for(var t=1;t=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var c,i=!0,a=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return i=e.done,e},e:function(e){a=!0,c=e},f:function(){try{i||null==n.return||n.return()}finally{if(a)throw c}}}}function fn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&void 0!==arguments[1]?arguments[1]:{panelTitle:Object(g.__)("Color settings")},n=t.panelTitle,r=void 0===n?Object(g.__)("Color settings"):n,o=t.colorPanelProps,c=t.contrastCheckers,i=t.panelChildren,a=t.colorDetector,l=(a=void 0===a?{}:a).targetRef,d=a.backgroundColorTargetRef,p=void 0===d?l:d,m=a.textColorTargetRef,O=void 0===m?l:m,h=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],j=Object(z.b)(),k=j.clientId,y=de("color.palette")||On,_=Object(v.useSelect)((function(e){return{attributes:(0,e("core/block-editor").getBlockAttributes)(k)}}),[k]),E=_.attributes,C=Object(v.useDispatch)("core/block-editor"),S=C.updateBlockAttributes,w=Object(u.useCallback)((function(e){return S(k,e)}),[S,k]),I=Object(u.useMemo)((function(){return cn()((function(e,t,n,r,o,c){return function(i){var a,l=i.children,d=i.className,p=void 0===d?"":d,m=i.style,v=void 0===m?{}:m,O={};r?O=Object(s.a)({},t,o):c&&(O=Object(s.a)({},t,c));var g={className:b()(p,(a={},Object(s.a)(a,"has-".concat(Object(f.kebabCase)(r),"-").concat(Object(f.kebabCase)(t)),r),Object(s.a)(a,n||"has-".concat(Object(f.kebabCase)(e)),r||c),a)),style:mn(mn({},O),v)};return Object(f.isFunction)(l)?l(g):u.Children.map(l,(function(e){return Object(u.cloneElement)(e,{className:b()(e.props.className,g.className),style:mn(mn({},g.style),e.props.style||{})})}))}}),{maxSize:e.length})}),[e.length]),B=Object(u.useMemo)((function(){return cn()((function(e,t){return function(n){var r=t.find((function(e){return e.color===n}));w(Object(s.a)({},r?Object(f.camelCase)("custom ".concat(e)):e,void 0)),w(Object(s.a)({},r?e:Object(f.camelCase)("custom ".concat(e)),r?r.slug:n))}}),{maxSize:e.length})}),[w,e.length]),x=Object(u.useState)(),P=Object(re.a)(x,2),T=P[0],N=P[1],D=Object(u.useState)(),R=Object(re.a)(D,2),A=R[0],M=R[1];return Object(u.useEffect)((function(){if(c){var e,t=!1,n=!1,r=bn(Object(f.castArray)(c));try{for(r.s();!(e=r.n()).done;){var o=e.value,i=o.backgroundColor,a=o.textColor;if(t||(t=!0===i),n||(n=!0===a),t&&n)break}}catch(e){r.e(e)}finally{r.f()}if(n&&M(vn(O.current).color),t){for(var l=p.current,s=vn(l).backgroundColor;"rgba(0, 0, 0, 0)"===s&&l.parentNode&&l.parentNode.nodeType===l.parentNode.ELEMENT_NODE;)s=vn(l=l.parentNode).backgroundColor;N(s)}}}),[e.reduce((function(e,t){return"".concat(e," | ").concat(E[t.name]," | ").concat(E[Object(f.camelCase)("custom ".concat(t.name))])}),"")].concat(Object(ne.a)(h))),Object(u.useMemo)((function(){var t={},n=e.reduce((function(e,n){"string"==typeof n&&(n={name:n});var r=mn(mn({},n),{},{color:E[n.name]}),o=r.name,c=r.property,i=void 0===c?o:c,a=r.className,l=r.panelLabel,s=void 0===l?n.label||gn[o]||Object(f.startCase)(o):l,u=r.componentName,d=void 0===u?Object(f.startCase)(o).replace(/\s/g,""):u,b=r.color,p=void 0===b?n.color:b,m=r.colors,v=void 0===m?y:m,O=E[Object(f.camelCase)("custom ".concat(o))],g=O?void 0:v.find((function(e){return e.slug===p}));return e[d]=I(o,i,a,p,g&&g.color,O),e[d].displayName=d,e[d].color=O||g&&g.color,e[d].slug=p,e[d].setColor=B(o,v),t[d]={value:g?g.color:E[Object(f.camelCase)("custom ".concat(o))],onChange:e[d].setColor,label:s,colors:v},v||delete t[d].colors,e}),{}),a={title:r,initialOpen:!1,colorSettings:t,colorPanelProps:o,contrastCheckers:c,detectedBackgroundColor:T,detectedColor:A,panelChildren:i};return mn(mn({},n),{},{ColorPanel:Object(u.createElement)(dn,a),InspectorControlsColorPanel:Object(u.createElement)(hn,a)})}),[E,w,A,T].concat(Object(ne.a)(h)))}function kn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function yn(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:"";return e=(e=(e=Object(f.deburr)(e)).replace(/^\//,"")).toLowerCase()}var Vn=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return Object(f.words)(Fn(e))},Hn=function(e,t){return Object(f.differenceWith)(e,Vn(t),(function(e,t){return t.includes(e)}))},zn=function(e,t,n,r){return 0===Vn(r).length?e:Un(e,r,{getCategory:function(e){var n;return null===(n=Object(f.find)(t,{slug:e.category}))||void 0===n?void 0:n.title},getCollection:function(e){var t;return null===(t=n[e.name.split("/")[0]])||void 0===t?void 0:t.title},getVariations:function(e){var t=e.variations,n=void 0===t?[]:t;return Array.from(n.reduce((function(e,t){var n=t.title,r=t.keywords,o=void 0===r?[]:r;return e.add(n),o.forEach((function(t){return e.add(t)})),e}),new Set))}})},Un=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=Vn(t);if(0===r.length)return e;var o=e.map((function(e){return[e,Gn(e,t,n)]})).filter((function(e){return Object(re.a)(e,2)[1]>0}));return o.sort((function(e,t){var n=Object(re.a)(e,2)[1];return Object(re.a)(t,2)[1]-n})),o.map((function(e){return Object(re.a)(e,1)[0]}))};function Gn(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.getName,o=void 0===r?Dn:r,c=n.getTitle,i=void 0===c?Rn:c,a=n.getKeywords,l=void 0===a?An:a,s=n.getCategory,u=void 0===s?Mn:s,d=n.getCollection,b=void 0===d?Ln:d,p=o(e),m=i(e),v=l(e),O=u(e),g=b(e),h=Fn(t),j=Fn(m),k=0;if(h===j)k+=30;else if(j.startsWith(h))k+=20;else{var y=[p,m].concat(Object(ne.a)(v),[O,g]).join(" "),_=Object(f.words)(h),E=Hn(_,y);0===E.length&&(k+=10)}return 0!==k&&p.startsWith("core/")&&k++,k}var Kn=function(e,t){var n=Object(v.useSelect)((function(t){var n=t("core/block-editor").getInserterItems,r=t("core/blocks"),o=r.getCategories,c=r.getCollections;return{categories:o(),collections:c(),items:n(e)}}),[e]),r=n.categories,o=n.collections;return[n.items,r,o,function(e){var n=e.name,r=e.initialAttributes,o=e.innerBlocks,i=Object(c.createBlock)(n,r,Object(c.createBlocksFromInnerBlocksTemplate)(o));t(i)}]},Wn=n(207);function qn(e){var t,n=e.icon,r=e.showColors,o=void 0!==r&&r,c=e.className;"block-default"===(null===(t=n)||void 0===t?void 0:t.src)&&(n={src:Wn.a});var i=Object(u.createElement)(h.Icon,{icon:n&&n.src?n.src:n}),a=o?{backgroundColor:n&&n.background,color:n&&n.foreground}:{};return Object(u.createElement)("span",{style:a,className:b()("block-editor-block-icon",c,{"has-colors":o})},i)}var $n={name:"blocks",className:"block-editor-autocompleters__block",triggerPrefix:"/",useItems:function(e){var t=Object(v.useSelect)((function(e){var t=e("core/block-editor"),n=t.getSelectedBlockClientId,r=t.getBlockName,o=t.getBlockInsertionPoint,c=n();return{selectedBlockName:c?r(c):null,rootClientId:o().rootClientId}}),[]),n=t.rootClientId,r=t.selectedBlockName,o=Kn(n,f.noop),c=Object(re.a)(o,3),i=c[0],a=c[1],l=c[2],s=Object(u.useMemo)((function(){return(e.trim()?zn(i,a,l,e):Object(f.orderBy)(i,["frecency"],["desc"])).filter((function(e){return e.name!==r})).slice(0,9)}),[e,r,i,a,l]);return[Object(u.useMemo)((function(){return s.map((function(e){var t=e.title,n=e.icon,r=e.isDisabled;return{key:"block-".concat(e.id),value:e,label:Object(u.createElement)(u.Fragment,null,Object(u.createElement)(qn,{key:"icon",icon:n,showColors:!0}),t),isDisabled:r}}))}),[s])]},allowContext:function(e,t){return!(/\S/.test(e)||/\S/.test(t))},getOptionCompletion:function(e){var t=e.name,n=e.initialAttributes,r=e.innerBlocks;return{action:"replace",value:Object(c.createBlock)(t,n,Object(c.createBlocksFromInnerBlocksTemplate)(r))}}},Yn=[];var Xn=function(e){var t=Object(z.b)().name,n=e.completers,r=void 0===n?Yn:n;return r=Object(u.useMemo)((function(){var e=r;return t===Object(c.getDefaultBlockName)()&&(e=e.concat([$n])),Object(m.hasFilter)("editor.Autocomplete.completers")&&(e===r&&(e=e.map(f.clone)),e=Object(m.applyFilters)("editor.Autocomplete.completers",e,t)),e}),[r,t]),Object(u.createElement)(h.Autocomplete,Object(l.a)({},e,{completers:r}))};var Qn=function(e){var t=e.label,n=void 0===t?Object(g.__)("Change matrix alignment"):t,r=e.onChange,o=void 0===r?f.noop:r,c=e.value,i=void 0===c?"center":c,a=Object(u.createElement)(h.__experimentalAlignmentMatrixControl.Icon,{value:i}),l="block-editor-block-alignment-matrix-toolbar",s="".concat(l,"__popover");return Object(u.createElement)(h.Dropdown,{position:"bottom right",className:l,popoverProps:{className:s,isAlternate:!0},renderToggle:function(e){var t=e.onToggle,r=e.isOpen;return Object(u.createElement)(h.ToolbarGroup,null,Object(u.createElement)(h.ToolbarButton,{onClick:t,"aria-haspopup":"true","aria-expanded":r,onKeyDown:function(e){r||e.keyCode!==st.DOWN||(e.preventDefault(),e.stopPropagation(),t())},label:n,icon:a,showTooltip:!0}))},renderContent:function(){return Object(u.createElement)(h.__experimentalAlignmentMatrixControl,{hasFocusBorder:!1,onChange:o,value:i})}})};function Zn(e){var t=e.clientId,n=Object(v.useSelect)((function(e){if(!t)return{};var n=e("core/block-editor"),r=n.getBlockName;return{attributes:(0,n.getBlockAttributes)(t),name:r(t)}}),[t]),r=n.attributes,o=n.name;if(!o)return null;var i=Object(c.getBlockType)(o);if(!i)return null;var a=i.title,l=Object(c.__experimentalGetBlockLabel)(i,r);return l!==a?"".concat(a,": ").concat(Object(f.truncate)(l,{length:15})):a}var Jn=function(){var e=Object(v.useDispatch)("core/block-editor"),t=e.selectBlock,n=e.clearSelectedBlock,r=Object(v.useSelect)((function(e){var t=e("core/block-editor"),n=t.getSelectionStart,r=t.getSelectedBlockClientId,o=t.getBlockParents,c=r();return{parents:o(c),clientId:c,hasSelection:!!n().clientId}}),[]),o=r.clientId,c=r.parents,i=r.hasSelection;return Object(u.createElement)("ul",{className:"block-editor-block-breadcrumb",role:"list","aria-label":Object(g.__)("Block breadcrumb")},Object(u.createElement)("li",{className:i?void 0:"block-editor-block-breadcrumb__current","aria-current":i?void 0:"true"},i&&Object(u.createElement)(h.Button,{className:"block-editor-block-breadcrumb__button",isTertiary:!0,onClick:n},Object(g.__)("Document")),!i&&Object(g.__)("Document")),c.map((function(e){return Object(u.createElement)("li",{key:e},Object(u.createElement)(h.Button,{className:"block-editor-block-breadcrumb__button",isTertiary:!0,onClick:function(){return t(e)}},Object(u.createElement)(Zn,{clientId:e})))})),!!o&&Object(u.createElement)("li",{className:"block-editor-block-breadcrumb__current","aria-current":"true"},Object(u.createElement)(Zn,{clientId:o})))};function er(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function tr(e){for(var t=1;t1||Object(c.hasBlockSupport)(o,"lightBlockWrapper",!1))return Object(u.createElement)(s,Object(l.a)({},e,{context:a}));var d=Object(c.hasBlockSupport)(o,"className",!0)?Object(c.getBlockDefaultClassName)(r):null,p=b()(d,n.className);return Object(u.createElement)(s,Object(l.a)({},e,{context:a,className:p}))}));function ur(e){var t={name:e.name,isSelected:e.isSelected,clientId:e.clientId,onFocus:e.onFocus,onCaretVerticalPositionChange:e.onCaretVerticalPositionChange};return Object(u.createElement)(z.a,{value:Object(u.useMemo)((function(){return t}),Object.values(t))},Object(u.createElement)(sr,e))}var dr=Object(h.createSlotFill)("BlockFormatControls"),br=dr.Fill,fr=dr.Slot;var pr=function(e){return Object(z.b)().isSelected?Object(u.createElement)(br,null,(function(t){var n=Object(f.isEmpty)(t)?null:t;return Object(u.createElement)(h.__experimentalToolbarContext.Provider,{value:n},e.children)})):null};pr.Slot=function(e){var t=Object(u.useContext)(h.__experimentalToolbarContext);return Object(u.createElement)(fr,Object(l.a)({},e,{fillProps:t}))};var mr=pr,vr=n(20),Or=n.n(vr),gr=n(45),hr=n(317),jr=n(116),kr=n(29),yr=function(e){return e+1},_r=function(e){return{top:e.offsetTop,left:e.offsetLeft}};var Er=function(e,t,n,r,o){var c=Object(p.useReducedMotion)()||!r,i=Object(u.useReducer)(yr,0),a=Object(re.a)(i,2),l=a[0],s=a[1],d=Object(u.useReducer)(yr,0),b=Object(re.a)(d,2),f=b[0],m=b[1],v=Object(u.useState)({x:0,y:0}),O=Object(re.a)(v,2),g=O[0],h=O[1],j=Object(u.useMemo)((function(){return e.current?_r(e.current):null}),[o]),k=Object(u.useMemo)((function(){if(!n||!e.current)return function(){};var t=Object(kr.getScrollContainer)(e.current);if(!t)return function(){};var r=e.current.getBoundingClientRect();return function(){var n=e.current.getBoundingClientRect().top-r.top;n&&(t.scrollTop+=n)}}),[o,n]);function y(n){var r=n.x,o=n.y;r=Math.round(r),o=Math.round(o),r===y.x&&o===y.y||(!function(n){var r=n.x,o=n.y;if(e.current){var c=0===r&&0===o;e.current.style.transformOrigin=c?"":"center",e.current.style.transform=c?"":"translate3d(".concat(r,"px,").concat(o,"px,0)"),e.current.style.zIndex=!t||c?"":"1",k()}}({x:r,y:o}),y.x=r,y.y=o)}Object(u.useLayoutEffect)((function(){l&&m()}),[l]),Object(u.useLayoutEffect)((function(){if(j)if(c)k();else{e.current.style.transform="";var t=_r(e.current);s(),h({x:Math.round(j.left-t.left),y:Math.round(j.top-t.top)})}}),[o]),y.x=0,y.y=0,Object(jr.useSpring)({from:{x:g.x,y:g.y},to:{x:0,y:0},reset:l!==f,config:{mass:5,tension:2e3,friction:200},immediate:c,onFrame:y})},Cr=Object(jr.animated)(h.__experimentalTreeGridRow);function Sr(e){var t=e.isSelected,n=e.position,r=e.level,o=e.rowCount,c=e.children,i=e.className,a=e.path,s=Object(he.a)(e,["isSelected","position","level","rowCount","children","className","path"]),d=Object(u.useRef)(null),f=a.join("_"),p=Er(d,t,!1,!0,f);return Object(u.createElement)(Cr,Object(l.a)({ref:d,style:p,className:b()("block-editor-block-navigation-leaf",i),level:r,positionInSet:n,setSize:o},s),c)}var wr=n(213),Ir=n(214),Br=n(315),xr=n(316);function Pr(e,t,n,r,o,c,i,a){var l=n+1,s=function(e){return"up"===e?"horizontal"===i?a?"right":"left":"up":"down"===e?"horizontal"===i?a?"left":"right":"down":null};if(e>1)return function(e,t,n,r,o){var c=t+1;if(o<0&&n)return Object(g.__)("Blocks cannot be moved up as they are already at the top");if(o>0&&r)return Object(g.__)("Blocks cannot be moved down as they are already at the bottom");if(o<0&&!n)return Object(g.sprintf)(Object(g._n)("Move %1$d block from position %2$d up by one place","Move %1$d blocks from position %2$d up by one place",e),e,c);if(o>0&&!r)return Object(g.sprintf)(Object(g._n)("Move %1$d block from position %2$d down by one place","Move %1$d blocks from position %2$d down by one place",e),e,c)}(e,n,r,o,c);if(r&&o)return Object(g.sprintf)(Object(g.__)("Block %s is the only block, and cannot be moved"),t);if(c>0&&!o){var u=s("down");if("down"===u)return Object(g.sprintf)(Object(g.__)("Move %1$s block from position %2$d down to position %3$d"),t,l,l+1);if("left"===u)return Object(g.sprintf)(Object(g.__)("Move %1$s block from position %2$d left to position %3$d"),t,l,l+1);if("right"===u)return Object(g.sprintf)(Object(g.__)("Move %1$s block from position %2$d right to position %3$d"),t,l,l+1)}if(c>0&&o){var d=s("down");if("down"===d)return Object(g.sprintf)(Object(g.__)("Block %1$s is at the end of the content and can’t be moved down"),t);if("left"===d)return Object(g.sprintf)(Object(g.__)("Block %1$s is at the end of the content and can’t be moved left"),t);if("right"===d)return Object(g.sprintf)(Object(g.__)("Block %1$s is at the end of the content and can’t be moved right"),t)}if(c<0&&!r){var b=s("up");if("up"===b)return Object(g.sprintf)(Object(g.__)("Move %1$s block from position %2$d up to position %3$d"),t,l,l-1);if("left"===b)return Object(g.sprintf)(Object(g.__)("Move %1$s block from position %2$d left to position %3$d"),t,l,l-1);if("right"===b)return Object(g.sprintf)(Object(g.__)("Move %1$s block from position %2$d right to position %3$d"),t,l,l-1)}if(c<0&&r){var f=s("up");if("up"===f)return Object(g.sprintf)(Object(g.__)("Block %1$s is at the beginning of the content and can’t be moved up"),t);if("left"===f)return Object(g.sprintf)(Object(g.__)("Block %1$s is at the beginning of the content and can’t be moved left"),t);if("right"===f)return Object(g.sprintf)(Object(g.__)("Block %1$s is at the beginning of the content and can’t be moved right"),t)}}var Tr=function(e,t,n){return"up"===e?"horizontal"===t?n?wr.a:Ir.a:Br.a:"down"===e?"horizontal"===t?n?Ir.a:wr.a:xr.a:null},Nr=function(e,t,n){return"up"===e?"horizontal"===t?n?Object(g.__)("Move right"):Object(g.__)("Move left"):Object(g.__)("Move up"):"down"===e?"horizontal"===t?n?Object(g.__)("Move left"):Object(g.__)("Move right"):Object(g.__)("Move down"):null},Dr=Object(u.forwardRef)((function(e,t){var n=e.clientIds,r=e.direction,o=e.orientation,i=Object(he.a)(e,["clientIds","direction","orientation"]),a=Object(p.useInstanceId)(Dr),s=Object(f.castArray)(n).length,d=Object(v.useSelect)((function(e){var t=e("core/block-editor"),i=t.getBlockIndex,a=t.getBlockRootClientId,l=t.getBlockOrder,s=t.getBlock,u=t.getSettings,d=t.getBlockListSettings,b=Object(f.castArray)(n),p=Object(f.first)(b),m=a(p),v=i(p,m),O=i(Object(f.last)(b),m),g=l(m),h=s(p),j=0===v,k=O===g.length-1,y=(d(m)||{}).orientation;return{blockType:h?Object(c.getBlockType)(h.name):null,isDisabled:"up"===r?j:k,rootClientId:m,firstIndex:v,isFirst:j,isLast:k,isRTL:u().isRTL,orientation:o||y}}),[n,r]),m=d.blockType,O=d.isDisabled,g=d.rootClientId,j=d.isFirst,k=d.isLast,y=d.firstIndex,_=d.isRTL,E=d.orientation,C=void 0===E?"vertical":E,S=Object(v.useDispatch)("core/block-editor"),w=S.moveBlocksDown,I=S.moveBlocksUp,B="up"===r?I:w,x="block-editor-block-mover-button__description-".concat(a);return Object(u.createElement)(u.Fragment,null,Object(u.createElement)(h.Button,Object(l.a)({ref:t,className:b()("block-editor-block-mover-button","is-".concat(r,"-button")),icon:Tr(r,C,_),label:Nr(r,C,_),"aria-describedby":x},i,{onClick:O?null:function(e){B(n,g),i.onClick&&i.onClick(e)},"aria-disabled":O})),Object(u.createElement)("span",{id:x,className:"block-editor-block-mover-button__description"},Pr(s,m&&m.title,y,j,k,"up"===r?-1:1,C,_)))})),Rr=Object(u.forwardRef)((function(e,t){return Object(u.createElement)(Dr,Object(l.a)({direction:"up",ref:t},e))})),Ar=Object(u.forwardRef)((function(e,t){return Object(u.createElement)(Dr,Object(l.a)({direction:"down",ref:t},e))}));function Mr(e){var t=e.level,n=e.isLastRow,r=e.terminatedLevels;return Object(f.times)(t-1,(function(e){var o=e+2,c=o===t;return Object(u.createElement)("div",{key:e,"aria-hidden":"true",className:b()("block-editor-block-navigator-descender-line",{"has-item":c,"is-last-row":n,"is-terminated":r.includes(o)})})}))}var Lr=Object(u.createContext)({__experimentalFeatures:!1}),Fr=function(){return Object(u.useContext)(Lr)},Vr=Object(u.createElement)(j.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(u.createElement)(j.Path,{d:"M11 13h2v-2h-2v2zm-6 0h2v-2H5v2zm12-2v2h2v-2h-2z"}));var Hr=function(e){var t=e.className,n=e.actions,r=e.children,o=e.secondaryActions;return Object(u.createElement)("div",{className:b()(t,"block-editor-warning")},Object(u.createElement)("div",{className:"block-editor-warning__contents"},Object(u.createElement)("p",{className:"block-editor-warning__message"},r),(u.Children.count(n)>0||o)&&Object(u.createElement)("div",{className:"block-editor-warning__actions"},u.Children.count(n)>0&&u.Children.map(n,(function(e,t){return Object(u.createElement)("span",{key:t,className:"block-editor-warning__action"},e)})),o&&Object(u.createElement)(h.DropdownMenu,{className:"block-editor-warning__secondary",icon:Vr,label:Object(g.__)("More options"),popoverProps:{position:"bottom left",className:"block-editor-warning__dropdown"},noIcons:!0},(function(){return Object(u.createElement)(h.MenuGroup,null,o.map((function(e,t){return Object(u.createElement)(h.MenuItem,{onClick:e.onClick,key:t},e.title)})))})))))},zr=n(279),Ur=function(e){var t=e.title,n=e.rawContent,r=e.renderedContent,o=e.action,c=e.actionText,i=e.className;return Object(u.createElement)("div",{className:i},Object(u.createElement)("div",{className:"block-editor-block-compare__content"},Object(u.createElement)("h2",{className:"block-editor-block-compare__heading"},t),Object(u.createElement)("div",{className:"block-editor-block-compare__html"},n),Object(u.createElement)("div",{className:"block-editor-block-compare__preview edit-post-visual-editor"},r)),Object(u.createElement)("div",{className:"block-editor-block-compare__action"},Object(u.createElement)(h.Button,{isSecondary:!0,tabIndex:"0",onClick:o},c)))};var Gr=function(e){var t,n,r,o,i=e.block,a=e.onKeep,l=e.onConvert,s=e.convertor,d=e.convertButtonText,p={rawContent:i.originalContent,renderedContent:Object(c.getSaveElement)(i.name,i.attributes)},m=(t=s(i),n=Object(f.castArray)(t),r=n.map((function(e){return Object(c.getSaveContent)(e.name,e.attributes,e.innerBlocks)})),o=n.map((function(e){return Object(c.getSaveElement)(e.name,e.attributes,e.innerBlocks)})),{rawContent:r.join(""),renderedContent:o}),v=function(e,t){return Object(zr.diffChars)(e,t).map((function(e,t){var n=b()({"block-editor-block-compare__added":e.added,"block-editor-block-compare__removed":e.removed});return Object(u.createElement)("span",{key:t,className:n},e.value)}))}(p.rawContent,m.rawContent);return Object(u.createElement)("div",{className:"block-editor-block-compare__wrapper"},Object(u.createElement)(Ur,{title:Object(g.__)("Current"),className:"block-editor-block-compare__current",action:a,actionText:Object(g.__)("Convert to HTML"),rawContent:p.rawContent,renderedContent:p.renderedContent}),Object(u.createElement)(Ur,{title:Object(g.__)("After Conversion"),className:"block-editor-block-compare__converted",action:l,actionText:d,rawContent:v,renderedContent:m.renderedContent}))};var Kr=function(e){return Object(c.rawHandler)({HTML:e.originalContent})},Wr=Object(p.compose)([Object(v.withSelect)((function(e,t){var n=t.clientId;return{block:e("core/block-editor").getBlock(n)}})),Object(v.withDispatch)((function(e,t){var n=t.block,r=e("core/block-editor").replaceBlock;return{convertToClassic:function(){r(n.clientId,function(e){return Object(c.createBlock)("core/freeform",{content:e.originalContent})}(n))},convertToHTML:function(){r(n.clientId,function(e){return Object(c.createBlock)("core/html",{content:e.originalContent})}(n))},convertToBlocks:function(){r(n.clientId,Kr(n))},attemptBlockRecovery:function(){var e,t,o,i;r(n.clientId,(t=(e=n).name,o=e.attributes,i=e.innerBlocks,Object(c.createBlock)(t,o,i)))}}}))])((function(e){var t=e.convertToHTML,n=e.convertToBlocks,r=e.convertToClassic,o=e.attemptBlockRecovery,i=e.block,a=!!Object(c.getBlockType)("core/html"),l=Object(u.useState)(!1),s=Object(re.a)(l,2),d=s[0],b=s[1],f=Object(u.useCallback)((function(){return b(!0)}),[]),p=Object(u.useCallback)((function(){return b(!1)}),[]),m=Object(u.useMemo)((function(){return[{title:Object(g._x)("Resolve","imperative verb"),onClick:f},a&&{title:Object(g.__)("Convert to HTML"),onClick:t},{title:Object(g.__)("Convert to Classic Block"),onClick:r}].filter(Boolean)}),[f,t,r]);return Object(u.createElement)(u.Fragment,null,Object(u.createElement)(Hr,{actions:[Object(u.createElement)(h.Button,{key:"recover",onClick:o,isPrimary:!0},Object(g.__)("Attempt Block Recovery"))],secondaryActions:m},Object(g.__)("This block contains unexpected or invalid content.")),d&&Object(u.createElement)(h.Modal,{title:Object(g.__)("Resolve Block"),onRequestClose:p,className:"block-editor-block-compare"},Object(u.createElement)(Gr,{block:i,onKeep:t,onConvert:n,convertor:Kr,convertButtonText:Object(g.__)("Convert to Blocks")})))})),qr=Object(u.createElement)(Hr,{className:"block-editor-block-list__block-crash-warning"},Object(g.__)("This block has encountered an error and cannot be previewed.")),$r=function(){return qr};function Yr(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object($t.a)(e);if(t){var o=Object($t.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(qt.a)(this,n)}}var Xr=function(e){Object(Wt.a)(n,e);var t=Yr(n);function n(){var e;return Object(Ut.a)(this,n),(e=t.apply(this,arguments)).state={hasError:!1},e}return Object(Gt.a)(n,[{key:"componentDidCatch",value:function(e){this.props.onError(e),this.setState({hasError:!0})}},{key:"render",value:function(){return this.state.hasError?null:this.props.children}}]),n}(u.Component),Qr=n(100),Zr=n.n(Qr);var Jr=function(e){var t=e.clientId,n=Object(u.useState)(""),r=Object(re.a)(n,2),o=r[0],i=r[1],a=Object(v.useSelect)((function(e){return e("core/block-editor").getBlock(t)}),[t]),l=Object(v.useDispatch)("core/block-editor").updateBlock;return Object(u.useEffect)((function(){i(Object(c.getBlockContent)(a))}),[a]),Object(u.createElement)(Zr.a,{className:"block-editor-block-list__block-html-textarea",value:o,onBlur:function(){var e=Object(c.getBlockType)(a.name),n=Object(c.getBlockAttributes)(e,o,a.attributes),r=o||Object(c.getSaveContent)(e,n),s=!o||Object(c.isValidBlockContent)(e,n,r);l(t,{attributes:n,originalContent:r,isValid:s}),o||i({content:r})},onChange:function(e){return i(e.target.value)}})},eo=n(36),to=n.n(eo);function no(e,t){for(var n="start"===t?"firstChild":"lastChild",r="start"===t?"nextSibling":"previousSibling";e[n];)for(e=e[n];e.nodeType===e.TEXT_NODE&&/^[ \t\n]*$/.test(e.data)&&e[r];)e=e[r];return e}function ro(e){var t=e("core/block-editor"),n=t.isSelectionEnabled,r=t.isMultiSelecting,o=t.getMultiSelectedBlockClientIds,c=t.hasMultiSelection,i=t.getBlockParents,a=t.getSelectedBlockClientId;return{isSelectionEnabled:n(),isMultiSelecting:r(),multiSelectedBlockClientIds:o(),hasMultiSelection:c(),getBlockParents:i,selectedBlockClientId:a()}}function oo(e,t){Array.from(e.querySelectorAll(".rich-text")).forEach((function(e){t?e.setAttribute("contenteditable",!0):e.removeAttribute("contenteditable")}))}var co=n(208),io=[Object(u.createInterpolateElement)(Object(g.__)("While writing, you can press / to quickly insert new blocks."),{kbd:Object(u.createElement)("kbd",null)}),Object(u.createInterpolateElement)(Object(g.__)("Indent a list by pressing space at the beginning of a line."),{kbd:Object(u.createElement)("kbd",null)}),Object(u.createInterpolateElement)(Object(g.__)("Outdent a list by pressing backspace at the beginning of a line."),{kbd:Object(u.createElement)("kbd",null)}),Object(g.__)("Drag files into the editor to automatically insert media blocks."),Object(g.__)("Change a block's type by pressing the block icon on the toolbar.")];var ao=function(){var e=Object(u.useState)(Math.floor(Math.random()*io.length)),t=Object(re.a)(e,1)[0];return Object(u.createElement)(h.Tip,null,io[t])},lo=n(159),so=n(141),uo=n(307);var bo=function e(t){var n=t.className,r=t.onChange,o=t.value,c=t.placeholder,i=Object(p.useInstanceId)(e),a=Object(u.useRef)();return Object(u.createElement)("div",{className:b()("block-editor-inserter__search",n)},Object(u.createElement)(h.VisuallyHidden,{as:"label",htmlFor:"block-editor-inserter__search-".concat(i)},c),Object(u.createElement)("input",{ref:a,className:"block-editor-inserter__search-input",id:"block-editor-inserter__search-".concat(i),type:"search",placeholder:c,autoFocus:!0,onChange:function(e){return r(e.target.value)},autoComplete:"off",value:o||""}),Object(u.createElement)("div",{className:"block-editor-inserter__search-icon"},!!o&&Object(u.createElement)(h.Button,{icon:lo.a,label:Object(g.__)("Reset search"),onClick:function(){r(""),a.current.focus()}}),!o&&Object(u.createElement)(so.a,{icon:uo.a})))};var fo=function(e){var t=e.blockType;return Object(u.createElement)("div",{className:"block-editor-block-card"},Object(u.createElement)(qn,{icon:t.icon,showColors:!0}),Object(u.createElement)("div",{className:"block-editor-block-card__content"},Object(u.createElement)("h2",{className:"block-editor-block-card__title"},t.title),Object(u.createElement)("span",{className:"block-editor-block-card__description"},t.description)))},po={insertUsage:{}},mo={alignWide:!1,colors:[{name:Object(g.__)("Black"),slug:"black",color:"#000000"},{name:Object(g.__)("Cyan bluish gray"),slug:"cyan-bluish-gray",color:"#abb8c3"},{name:Object(g.__)("White"),slug:"white",color:"#ffffff"},{name:Object(g.__)("Pale pink"),slug:"pale-pink",color:"#f78da7"},{name:Object(g.__)("Vivid red"),slug:"vivid-red",color:"#cf2e2e"},{name:Object(g.__)("Luminous vivid orange"),slug:"luminous-vivid-orange",color:"#ff6900"},{name:Object(g.__)("Luminous vivid amber"),slug:"luminous-vivid-amber",color:"#fcb900"},{name:Object(g.__)("Light green cyan"),slug:"light-green-cyan",color:"#7bdcb5"},{name:Object(g.__)("Vivid green cyan"),slug:"vivid-green-cyan",color:"#00d084"},{name:Object(g.__)("Pale cyan blue"),slug:"pale-cyan-blue",color:"#8ed1fc"},{name:Object(g.__)("Vivid cyan blue"),slug:"vivid-cyan-blue",color:"#0693e3"},{name:Object(g.__)("Vivid purple"),slug:"vivid-purple",color:"#9b51e0"}],fontSizes:[{name:Object(g._x)("Small","font size name"),size:13,slug:"small"},{name:Object(g._x)("Normal","font size name"),size:16,slug:"normal"},{name:Object(g._x)("Medium","font size name"),size:20,slug:"medium"},{name:Object(g._x)("Large","font size name"),size:36,slug:"large"},{name:Object(g._x)("Huge","font size name"),size:42,slug:"huge"}],imageSizes:[{slug:"thumbnail",name:Object(g.__)("Thumbnail")},{slug:"medium",name:Object(g.__)("Medium")},{slug:"large",name:Object(g.__)("Large")},{slug:"full",name:Object(g.__)("Full Size")}],imageEditing:!0,maxWidth:580,allowedBlockTypes:!0,maxUploadFileSize:0,allowedMimeTypes:null,availableLegacyWidgets:{},__experimentalCanUserUseUnfilteredHTML:!1,__experimentalBlockDirectory:!1,__experimentalEnableFullSiteEditing:!1,__experimentalEnableFullSiteEditingDemo:!1,__mobileEnablePageTemplates:!1,__experimentalBlockPatterns:[],__experimentalBlockPatternCategories:[],__experimentalSpotlightEntityBlocks:[],gradients:[{name:Object(g.__)("Vivid cyan blue to vivid purple"),gradient:"linear-gradient(135deg,rgba(6,147,227,1) 0%,rgb(155,81,224) 100%)",slug:"vivid-cyan-blue-to-vivid-purple"},{name:Object(g.__)("Light green cyan to vivid green cyan"),gradient:"linear-gradient(135deg,rgb(122,220,180) 0%,rgb(0,208,130) 100%)",slug:"light-green-cyan-to-vivid-green-cyan"},{name:Object(g.__)("Luminous vivid amber to luminous vivid orange"),gradient:"linear-gradient(135deg,rgba(252,185,0,1) 0%,rgba(255,105,0,1) 100%)",slug:"luminous-vivid-amber-to-luminous-vivid-orange"},{name:Object(g.__)("Luminous vivid orange to vivid red"),gradient:"linear-gradient(135deg,rgba(255,105,0,1) 0%,rgb(207,46,46) 100%)",slug:"luminous-vivid-orange-to-vivid-red"},{name:Object(g.__)("Very light gray to cyan bluish gray"),gradient:"linear-gradient(135deg,rgb(238,238,238) 0%,rgb(169,184,195) 100%)",slug:"very-light-gray-to-cyan-bluish-gray"},{name:Object(g.__)("Cool to warm spectrum"),gradient:"linear-gradient(135deg,rgb(74,234,220) 0%,rgb(151,120,209) 20%,rgb(207,42,186) 40%,rgb(238,44,130) 60%,rgb(251,105,98) 80%,rgb(254,248,76) 100%)",slug:"cool-to-warm-spectrum"},{name:Object(g.__)("Blush light purple"),gradient:"linear-gradient(135deg,rgb(255,206,236) 0%,rgb(152,150,240) 100%)",slug:"blush-light-purple"},{name:Object(g.__)("Blush bordeaux"),gradient:"linear-gradient(135deg,rgb(254,205,165) 0%,rgb(254,45,45) 50%,rgb(107,0,62) 100%)",slug:"blush-bordeaux"},{name:Object(g.__)("Luminous dusk"),gradient:"linear-gradient(135deg,rgb(255,203,112) 0%,rgb(199,81,192) 50%,rgb(65,88,208) 100%)",slug:"luminous-dusk"},{name:Object(g.__)("Pale ocean"),gradient:"linear-gradient(135deg,rgb(255,245,203) 0%,rgb(182,227,212) 50%,rgb(51,167,181) 100%)",slug:"pale-ocean"},{name:Object(g.__)("Electric grass"),gradient:"linear-gradient(135deg,rgb(202,248,128) 0%,rgb(113,206,126) 100%)",slug:"electric-grass"},{name:Object(g.__)("Midnight"),gradient:"linear-gradient(135deg,rgb(2,3,129) 0%,rgb(40,116,252) 100%)",slug:"midnight"}]};function vo(e,t,n){return[].concat(Object(ne.a)(e.slice(0,n)),Object(ne.a)(Object(f.castArray)(t)),Object(ne.a)(e.slice(n)))}function Oo(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,o=Object(ne.a)(e);return o.splice(t,r),vo(o,e.slice(t,t+r),n)}function go(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ho(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:"",n=Object(s.a)({},t,[]);return e.forEach((function(e){var r=e.clientId,o=e.innerBlocks;n[t].push(r),Object.assign(n,jo(o,r))})),n}function ko(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return e.reduce((function(e,n){return Object.assign(e,Object(s.a)({},n.clientId,t),ko(n.innerBlocks,n.clientId))}),{})}function yo(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:f.identity,n={},r=Object(ne.a)(e);r.length;){var o=r.shift(),c=o.innerBlocks,i=Object(he.a)(o,["innerBlocks"]);r.push.apply(r,Object(ne.a)(c)),n[i.clientId]=t(i)}return n}function _o(e){return yo(e,(function(e){return Object(f.omit)(e,"attributes")}))}function Eo(e){return yo(e,(function(e){return e.attributes}))}function Co(e,t){return e===t?ho({},e):t}function So(e,t){return"UPDATE_BLOCK_ATTRIBUTES"===e.type&&void 0!==t&&"UPDATE_BLOCK_ATTRIBUTES"===t.type&&Object(f.isEqual)(e.clientIds,t.clientIds)&&(n=e.attributes,r=t.attributes,Object(f.isEqual)(Object(f.keys)(n),Object(f.keys)(r)));var n,r}var wo=function(e){return e.reduce((function(e,t){return e[t]={},e}),{})};var Io=Object(f.flow)(v.combineReducers,(function(e){return function(t,n){if(t&&"SAVE_REUSABLE_BLOCK_SUCCESS"===n.type){var r=n.id,o=n.updatedId;if(r===o)return t;(t=ho({},t)).attributes=Object(f.mapValues)(t.attributes,(function(e,n){return"core/block"===t.byClientId[n].name&&e.ref===r?ho(ho({},e),{},{ref:o}):e}))}return e(t,n)}}),(function(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0,r=e(t,n);if(r===t)return t;r.cache=t.cache?t.cache:{};var o=function(e){return e.reduce((function(e,n){var r=n;do{e.push(r),r=t.parents[r]}while(r&&!t.controlledInnerBlocks[r]);return e}),[])};switch(n.type){case"RESET_BLOCKS":r.cache=Object(f.mapValues)(yo(n.blocks),(function(){return{}}));break;case"RECEIVE_BLOCKS":case"INSERT_BLOCKS":var c=Object(f.keys)(yo(n.blocks));n.rootClientId&&!t.controlledInnerBlocks[n.rootClientId]&&c.push(n.rootClientId),r.cache=ho(ho({},r.cache),wo(o(c)));break;case"UPDATE_BLOCK":r.cache=ho(ho({},r.cache),wo(o([n.clientId])));break;case"UPDATE_BLOCK_ATTRIBUTES":r.cache=ho(ho({},r.cache),wo(o(n.clientIds)));break;case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":var i=wo(o(n.replacedClientIds));r.cache=ho(ho(ho({},Object(f.omit)(r.cache,n.replacedClientIds)),Object(f.omit)(i,n.replacedClientIds)),wo(Object(f.keys)(yo(n.blocks))));break;case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":r.cache=ho(ho({},Object(f.omit)(r.cache,n.removedClientIds)),wo(Object(f.difference)(o(n.clientIds),n.clientIds)));break;case"MOVE_BLOCKS_TO_POSITION":var a=Object(ne.a)(n.clientIds);n.fromRootClientId&&a.push(n.fromRootClientId),n.toRootClientId&&a.push(n.toRootClientId),r.cache=ho(ho({},r.cache),wo(o(a)));break;case"MOVE_BLOCKS_UP":case"MOVE_BLOCKS_DOWN":var l=[];n.rootClientId&&l.push(n.rootClientId),r.cache=ho(ho({},r.cache),wo(o(l)));break;case"SAVE_REUSABLE_BLOCK_SUCCESS":var s=Object(f.keys)(Object(f.omitBy)(r.attributes,(function(e,t){return"core/block"!==r.byClientId[t].name||e.ref!==n.updatedId})));r.cache=ho(ho({},r.cache),wo(o(s)))}return r}}),(function(e){return function(t,n){var r=function(e){for(var r=e,o=0;o1&&void 0!==arguments[1]?arguments[1]:"",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Object(f.reduce)(t[n],(function(n,o){return r[o]?n:[].concat(Object(ne.a)(n),[o],Object(ne.a)(e(t,o)))}),[])}(t.order,"",t.controlledInnerBlocks),o=Object.keys(Object(f.pickBy)(t.controlledInnerBlocks));return ho(ho({},t),{},{byClientId:ho(ho({},Object(f.omit)(t.byClientId,r)),_o(n.blocks)),attributes:ho(ho({},Object(f.omit)(t.attributes,r)),Eo(n.blocks)),order:ho(ho({},Object(f.omit)(t.order,r)),Object(f.omit)(jo(n.blocks),o)),parents:ho(ho({},Object(f.omit)(t.parents,r)),ko(n.blocks)),cache:ho(ho({},Object(f.omit)(t.cache,r)),Object(f.omit)(Object(f.mapValues)(yo(n.blocks),(function(){return{}})),o))})}return e(t,n)}}),(function(e){var t,n=!1;return function(r,o){var c=e(r,o),i="MARK_LAST_CHANGE_AS_PERSISTENT"===o.type||n;if(r===c&&!i){var a;n="MARK_NEXT_CHANGE_AS_NOT_PERSISTENT"===o.type;var l=null===(a=null==r?void 0:r.isPersistentChange)||void 0===a||a;return r.isPersistentChange===l?r:ho(ho({},c),{},{isPersistentChange:l})}return c=ho(ho({},c),{},{isPersistentChange:i?!n:!So(o,t)}),t=o,n="MARK_NEXT_CHANGE_AS_NOT_PERSISTENT"===o.type,c}}),(function(e){var t=new Set(["RECEIVE_BLOCKS"]);return function(n,r){var o=e(n,r);return o!==n&&(o.isIgnoredChange=t.has(r.type)),o}}))({byClientId:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RESET_BLOCKS":return _o(t.blocks);case"RECEIVE_BLOCKS":case"INSERT_BLOCKS":return ho(ho({},e),_o(t.blocks));case"UPDATE_BLOCK":if(!e[t.clientId])return e;var n=Object(f.omit)(t.updates,"attributes");return Object(f.isEmpty)(n)?e:ho(ho({},e),{},Object(s.a)({},t.clientId,ho(ho({},e[t.clientId]),n)));case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":return t.blocks?ho(ho({},Object(f.omit)(e,t.replacedClientIds)),_o(t.blocks)):e;case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":return Object(f.omit)(e,t.removedClientIds)}return e},attributes:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RESET_BLOCKS":return Eo(t.blocks);case"RECEIVE_BLOCKS":case"INSERT_BLOCKS":return ho(ho({},e),Eo(t.blocks));case"UPDATE_BLOCK":return e[t.clientId]&&t.updates.attributes?ho(ho({},e),{},Object(s.a)({},t.clientId,ho(ho({},e[t.clientId]),t.updates.attributes))):e;case"UPDATE_BLOCK_ATTRIBUTES":if(t.clientIds.every((function(t){return!e[t]})))return e;var n=t.clientIds.reduce((function(n,r){return ho(ho({},n),{},Object(s.a)({},r,Object(f.reduce)(t.attributes,(function(t,n,o){return n!==t[o]&&((t=Co(e[r],t))[o]=n),t}),e[r])))}),{});return t.clientIds.every((function(t){return n[t]===e[t]}))?e:ho(ho({},e),n);case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":return t.blocks?ho(ho({},Object(f.omit)(e,t.replacedClientIds)),Eo(t.blocks)):e;case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":return Object(f.omit)(e,t.removedClientIds)}return e},order:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RESET_BLOCKS":return jo(t.blocks);case"RECEIVE_BLOCKS":return ho(ho({},e),Object(f.omit)(jo(t.blocks),""));case"INSERT_BLOCKS":var n=t.rootClientId,r=void 0===n?"":n,o=e[r]||[],c=jo(t.blocks,r),i=t.index,a=void 0===i?o.length:i;return ho(ho(ho({},e),c),{},Object(s.a)({},r,vo(o,c[r],a)));case"MOVE_BLOCKS_TO_POSITION":var l,u=t.fromRootClientId,d=void 0===u?"":u,b=t.toRootClientId,p=void 0===b?"":b,m=t.clientIds,v=t.index,O=void 0===v?e[p].length:v;if(d===p){var g=e[p],h=g.indexOf(m[0]);return ho(ho({},e),{},Object(s.a)({},p,Oo(e[p],h,O,m.length)))}return ho(ho({},e),{},(l={},Object(s.a)(l,d,f.without.apply(void 0,[e[d]].concat(Object(ne.a)(m)))),Object(s.a)(l,p,vo(e[p],m,O)),l));case"MOVE_BLOCKS_UP":var j=t.clientIds,k=t.rootClientId,y=void 0===k?"":k,_=Object(f.first)(j),E=e[y];if(!E.length||_===Object(f.first)(E))return e;var C=E.indexOf(_);return ho(ho({},e),{},Object(s.a)({},y,Oo(E,C,C-1,j.length)));case"MOVE_BLOCKS_DOWN":var S=t.clientIds,w=t.rootClientId,I=void 0===w?"":w,B=Object(f.first)(S),x=Object(f.last)(S),P=e[I];if(!P.length||x===Object(f.last)(P))return e;var T=P.indexOf(B);return ho(ho({},e),{},Object(s.a)({},I,Oo(P,T,T+1,S.length)));case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":var N=t.clientIds;if(!t.blocks)return e;var D=jo(t.blocks);return Object(f.flow)([function(e){return Object(f.omit)(e,t.replacedClientIds)},function(e){return ho(ho({},e),Object(f.omit)(D,""))},function(e){return Object(f.mapValues)(e,(function(e){return Object(f.reduce)(e,(function(e,t){return t===N[0]?[].concat(Object(ne.a)(e),Object(ne.a)(D[""])):(-1===N.indexOf(t)&&e.push(t),e)}),[])}))}])(e);case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":return Object(f.flow)([function(e){return Object(f.omit)(e,t.removedClientIds)},function(e){return Object(f.mapValues)(e,(function(e){return f.without.apply(void 0,[e].concat(Object(ne.a)(t.removedClientIds)))}))}])(e)}return e},parents:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RESET_BLOCKS":return ko(t.blocks);case"RECEIVE_BLOCKS":return ho(ho({},e),ko(t.blocks));case"INSERT_BLOCKS":return ho(ho({},e),ko(t.blocks,t.rootClientId||""));case"MOVE_BLOCKS_TO_POSITION":return ho(ho({},e),t.clientIds.reduce((function(e,n){return e[n]=t.toRootClientId||"",e}),{}));case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":return ho(ho({},Object(f.omit)(e,t.replacedClientIds)),ko(t.blocks,e[t.clientIds[0]]));case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":return Object(f.omit)(e,t.removedClientIds)}return e},controlledInnerBlocks:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=t.type,r=t.clientId,o=t.hasControlledInnerBlocks;return"SET_HAS_CONTROLLED_INNER_BLOCKS"===n?ho(ho({},e),{},Object(s.a)({},r,o)):e}});function Bo(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"CLEAR_SELECTED_BLOCK":return e.clientId?{}:e;case"SELECT_BLOCK":return t.clientId===e.clientId?e:{clientId:t.clientId};case"REPLACE_INNER_BLOCKS":case"INSERT_BLOCKS":return t.updateSelection&&t.blocks.length?{clientId:t.blocks[0].clientId}:e;case"REMOVE_BLOCKS":return t.clientIds&&t.clientIds.length&&-1!==t.clientIds.indexOf(e.clientId)?{}:e;case"REPLACE_BLOCKS":if(-1===t.clientIds.indexOf(e.clientId))return e;var n=t.indexToSelect||t.blocks.length-1,r=t.blocks[n];if(!r)return{};if(r.clientId===e.clientId)return e;var o={clientId:r.clientId};return"number"==typeof t.initialPosition&&(o.initialPosition=t.initialPosition),o}return e}function xo(e,t,n){switch(t.type){case"CLEAR_SELECTED_BLOCK":case"SELECT_BLOCK":case"REPLACE_INNER_BLOCKS":case"INSERT_BLOCKS":case"REMOVE_BLOCKS":case"REPLACE_BLOCKS":return n}return e}var Po=Object(v.combineReducers)({blocks:Io,isTyping:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"START_TYPING":return!0;case"STOP_TYPING":return!1}return e},draggedBlocks:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"START_DRAGGING_BLOCKS":return t.clientIds;case"STOP_DRAGGING_BLOCKS":return[]}return e},isCaretWithinFormattedText:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"ENTER_FORMATTED_TEXT":return!0;case"EXIT_FORMATTED_TEXT":return!1}return e},selectionStart:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SELECTION_CHANGE":return{clientId:t.clientId,attributeKey:t.attributeKey,offset:t.startOffset};case"RESET_SELECTION":return t.selectionStart;case"MULTI_SELECT":return{clientId:t.start}}return Bo(e,t)},selectionEnd:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SELECTION_CHANGE":return{clientId:t.clientId,attributeKey:t.attributeKey,offset:t.endOffset};case"RESET_SELECTION":return t.selectionEnd;case"MULTI_SELECT":return{clientId:t.end}}return Bo(e,t)},isMultiSelecting:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"START_MULTI_SELECT":return!0;case"STOP_MULTI_SELECT":return!1}return e},isSelectionEnabled:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"TOGGLE_SELECTION":return t.isSelectionEnabled}return e},initialPosition:function(e,t){return"REPLACE_BLOCKS"===t.type&&"number"==typeof t.initialPosition||"SELECT_BLOCK"===t.type?t.initialPosition:"REMOVE_BLOCKS"===t.type||"START_TYPING"===t.type?e:void 0},blocksMode:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;if("TOGGLE_BLOCK_MODE"===t.type){var n=t.clientId;return ho(ho({},e),{},Object(s.a)({},n,e[n]&&"html"===e[n]?"visual":"html"))}return e},blockListSettings:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"REPLACE_BLOCKS":case"REMOVE_BLOCKS":return Object(f.omit)(e,t.clientIds);case"UPDATE_BLOCK_LIST_SETTINGS":var n=t.clientId;return t.settings?Object(f.isEqual)(e[n],t.settings)?e:ho(ho({},e),{},Object(s.a)({},n,t.settings)):e.hasOwnProperty(n)?Object(f.omit)(e,n):e}return e},insertionPoint:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SET_INSERTION_POINT":case"SHOW_INSERTION_POINT":var n=t.rootClientId,r=t.index;return{rootClientId:n,index:r}}return xo(e,t,null)},insertionPointVisibility:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SHOW_INSERTION_POINT":return!0;case"HIDE_INSERTION_POINT":return!1}return xo(e,t,!1)},template:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{isValid:!0},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SET_TEMPLATE_VALIDITY":return ho(ho({},e),{},{isValid:t.isValid})}return e},settings:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:mo,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"UPDATE_SETTINGS":return ho(ho({},e),t.settings)}return e},preferences:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:po,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"INSERT_BLOCKS":case"REPLACE_BLOCKS":return t.blocks.reduce((function(e,n){var r=n.name,o={name:n.name};return Object(c.isReusableBlock)(n)&&(o.ref=n.attributes.ref,r+="/"+n.attributes.ref),ho(ho({},e),{},{insertUsage:ho(ho({},e.insertUsage),{},Object(s.a)({},r,{time:t.time,count:e.insertUsage[r]?e.insertUsage[r].count+1:1,insert:o}))})}),e)}return e},lastBlockAttributesChange:function(e,t){switch(t.type){case"UPDATE_BLOCK":if(!t.updates.attributes)break;return Object(s.a)({},t.clientId,t.updates.attributes);case"UPDATE_BLOCK_ATTRIBUTES":return t.clientIds.reduce((function(e,n){return ho(ho({},e),{},Object(s.a)({},n,t.attributes))}),{})}return null},isNavigationMode:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;return"INSERT_BLOCKS"!==t.type&&("SET_NAVIGATION_MODE"===t.type?t.isNavigationMode:e)},hasBlockMovingClientId:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0;return"SET_BLOCK_MOVING_MODE"===t.type?t.hasBlockMovingClientId:e},automaticChangeStatus:function(e,t){switch(t.type){case"MARK_AUTOMATIC_CHANGE":return"pending";case"MARK_AUTOMATIC_CHANGE_FINAL":return"pending"===e?"final":void 0;case"SELECTION_CHANGE":return"final"!==e?e:void 0;case"STOP_TYPING":return e}},highlightedBlock:function(e,t){switch(t.type){case"TOGGLE_BLOCK_HIGHLIGHT":var n=t.clientId;return t.isHighlighted?n:e===n?null:e;case"SELECT_BLOCK":if(t.clientId!==e)return null}return e}}),To=n(149),No=n.n(To),Do=n(277),Ro=n.n(Do),Ao=n(40);function Mo(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return Lo(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Lo(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var c,i=!0,a=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return i=e.done,e},e:function(e){a=!0,c=e},f:function(){try{i||null==n.return||n.return()}finally{if(a)throw c}}}}function Lo(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&void 0!==arguments[1]?arguments[1]:null;return{type:"SELECT_BLOCK",initialPosition:t,clientId:e}}function lc(e){var t;return Or.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,v.controls.select("core/block-editor","getPreviousBlockClientId",e);case 2:if(!(t=n.sent)){n.next=7;break}return n.next=6,ac(t,-1);case 6:return n.abrupt("return",[t]);case 7:case"end":return n.stop()}}),zo)}function sc(e){var t;return Or.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,v.controls.select("core/block-editor","getNextBlockClientId",e);case 2:if(!(t=n.sent)){n.next=7;break}return n.next=6,ac(t);case 6:return n.abrupt("return",[t]);case 7:case"end":return n.stop()}}),Uo)}function uc(){return{type:"START_MULTI_SELECT"}}function dc(){return{type:"STOP_MULTI_SELECT"}}function bc(e,t){return{type:"MULTI_SELECT",start:e,end:t}}function fc(){return{type:"CLEAR_SELECTED_BLOCK"}}function pc(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return{type:"TOGGLE_SELECTION",isSelectionEnabled:e}}function mc(e,t){var n,r,o=null!==(n=null==t||null===(r=t.__experimentalPreferredStyleVariations)||void 0===r?void 0:r.value)&&void 0!==n?n:{};return e.map((function(e){var t,n=e.name;if(!Object(c.hasBlockSupport)(n,"defaultStylePicker",!0))return e;if(!o[n])return e;var r=null===(t=e.attributes)||void 0===t?void 0:t.className;if(null==r?void 0:r.includes("is-style-"))return e;var i=e.attributes,a=void 0===i?{}:i,l=o[n];return Vo(Vo({},e),{},{attributes:Vo(Vo({},a),{},{className:"".concat(r||""," is-style-").concat(l).trim()})})}))}function vc(e,t,n,r,o){var c,i,a;return Or.a.wrap((function(l){for(;;)switch(l.prev=l.next){case 0:return e=Object(f.castArray)(e),l.t0=mc,l.t1=Object(f.castArray)(t),l.next=5,v.controls.select("core/block-editor","getSettings");case 5:return l.t2=l.sent,t=(0,l.t0)(l.t1,l.t2),l.next=9,v.controls.select("core/block-editor","getBlockRootClientId",Object(f.first)(e));case 9:c=l.sent,i=0;case 11:if(!(i1&&void 0!==i[1]?i[1]:"",n=i.length>2&&void 0!==i[2]?i[2]:"",r=i.length>3?i[3]:void 0,a.next=5,v.controls.select("core/block-editor","getTemplateLock",t);case 5:if("all"!==(o=a.sent)){a.next=8;break}return a.abrupt("return");case 8:if(c={type:"MOVE_BLOCKS_TO_POSITION",fromRootClientId:t,toRootClientId:n,clientIds:e,index:r},t!==n){a.next=13;break}return a.next=12,c;case 12:return a.abrupt("return");case 13:if("insert"!==o){a.next=15;break}return a.abrupt("return");case 15:return a.next=17,v.controls.select("core/block-editor","canInsertBlocks",e,n);case 17:if(!a.sent){a.next=21;break}return a.next=21,c;case 21:case"end":return a.stop()}}),Ko)}function yc(e){var t,n,r,o=arguments;return Or.a.wrap((function(c){for(;;)switch(c.prev=c.next){case 0:return t=o.length>1&&void 0!==o[1]?o[1]:"",n=o.length>2&&void 0!==o[2]?o[2]:"",r=o.length>3?o[3]:void 0,c.next=5,kc([e],t,n,r);case 5:case"end":return c.stop()}}),Wo)}function _c(e,t,n){var r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];return Ec([e],t,n,r)}function Ec(e,t,n){var r,o,c,i,a,l,s=arguments;return Or.a.wrap((function(u){for(;;)switch(u.prev=u.next){case 0:return r=!(s.length>3&&void 0!==s[3])||s[3],o=s.length>4?s[4]:void 0,u.t0=mc,u.t1=Object(f.castArray)(e),u.next=6,v.controls.select("core/block-editor","getSettings");case 6:u.t2=u.sent,e=(0,u.t0)(u.t1,u.t2),c=[],i=Mo(e),u.prev=10,i.s();case 12:if((a=i.n()).done){u.next=20;break}return l=a.value,u.next=16,v.controls.select("core/block-editor","canInsertBlockType",l.name,n);case 16:u.sent&&c.push(l);case 18:u.next=12;break;case 20:u.next=25;break;case 22:u.prev=22,u.t3=u.catch(10),i.e(u.t3);case 25:return u.prev=25,i.f(),u.finish(25);case 28:if(!c.length){u.next=30;break}return u.abrupt("return",{type:"INSERT_BLOCKS",blocks:c,index:t,rootClientId:n,time:Date.now(),updateSelection:r,meta:o});case 30:case"end":return u.stop()}}),qo,null,[[10,22,25,28]])}function Cc(e,t){return{type:"SET_INSERTION_POINT",rootClientId:e,index:t}}function Sc(e,t){return{type:"SHOW_INSERTION_POINT",rootClientId:e,index:t}}function wc(){return{type:"HIDE_INSERTION_POINT"}}function Ic(e){return{type:"SET_TEMPLATE_VALIDITY",isValid:e}}function Bc(){return{type:"SYNCHRONIZE_TEMPLATE"}}function xc(e,t){return{type:"MERGE_BLOCKS",blocks:[e,t]}}function Pc(e){var t,n,r,o,c=arguments;return Or.a.wrap((function(i){for(;;)switch(i.prev=i.next){case 0:if(t=!(c.length>1&&void 0!==c[1])||c[1],e&&e.length){i.next=3;break}return i.abrupt("return");case 3:return e=Object(f.castArray)(e),i.next=6,v.controls.select("core/block-editor","getBlockRootClientId",e[0]);case 6:return n=i.sent,i.next=9,v.controls.select("core/block-editor","getTemplateLock",n);case 9:if(!i.sent){i.next=12;break}return i.abrupt("return");case 12:if(!t){i.next=18;break}return i.next=15,lc(e[0]);case 15:r=i.sent,i.next=21;break;case 18:return i.next=20,v.controls.select("core/block-editor","getPreviousBlockClientId",e[0]);case 20:r=i.sent;case 21:return i.next=23,{type:"REMOVE_BLOCKS",clientIds:e};case 23:return i.delegateYield(tc(),"t0",24);case 24:return o=i.t0,i.abrupt("return",[r||o]);case 26:case"end":return i.stop()}}),$o)}function Tc(e,t){return Pc([e],t)}function Nc(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return{type:"REPLACE_INNER_BLOCKS",rootClientId:e,blocks:t,updateSelection:n,time:Date.now()}}function Dc(e){return{type:"TOGGLE_BLOCK_MODE",clientId:e}}function Rc(){return{type:"START_TYPING"}}function Ac(){return{type:"STOP_TYPING"}}function Mc(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return{type:"START_DRAGGING_BLOCKS",clientIds:e}}function Lc(){return{type:"STOP_DRAGGING_BLOCKS"}}function Fc(){return{type:"ENTER_FORMATTED_TEXT"}}function Vc(){return{type:"EXIT_FORMATTED_TEXT"}}function Hc(e,t,n,r){return{type:"SELECTION_CHANGE",clientId:e,attributeKey:t,startOffset:n,endOffset:r}}function zc(e,t,n){var r=Object(c.getDefaultBlockName)();if(r)return _c(Object(c.createBlock)(r,e),n,t)}function Uc(e,t){return{type:"UPDATE_BLOCK_LIST_SETTINGS",clientId:e,settings:t}}function Gc(e){return{type:"UPDATE_SETTINGS",settings:e}}function Kc(e,t){return{type:"SAVE_REUSABLE_BLOCK_SUCCESS",id:e,updatedId:t}}function Wc(){return{type:"MARK_LAST_CHANGE_AS_PERSISTENT"}}function qc(){return{type:"MARK_NEXT_CHANGE_AS_NOT_PERSISTENT"}}function $c(){return{type:"MARK_AUTOMATIC_CHANGE"}}function Yc(){var e,t=arguments;return Or.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return e=!(t.length>0&&void 0!==t[0])||t[0],n.next=3,{type:"SET_NAVIGATION_MODE",isNavigationMode:e};case 3:e?Object(Le.speak)(Object(g.__)("You are currently in navigation mode. Navigate blocks using the Tab key and Arrow keys. Use Left and Right Arrow keys to move between nesting levels. To exit navigation mode and edit the selected block, press Enter.")):Object(Le.speak)(Object(g.__)("You are currently in edit mode. To return to the navigation mode, press Escape."));case 4:case"end":return n.stop()}}),Yo)}function Xc(){var e,t=arguments;return Or.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return e=t.length>0&&void 0!==t[0]?t[0]:null,n.next=3,{type:"SET_BLOCK_MOVING_MODE",hasBlockMovingClientId:e};case 3:e&&Object(Le.speak)(Object(g.__)("Use the Tab key and Arrow keys to choose new block location. Use Left and Right Arrow keys to move between nesting levels. Once location is selected press Enter or Space to move the block."));case 4:case"end":return n.stop()}}),Xo)}function Qc(e){var t,n,r,o,i,a,l=arguments;return Or.a.wrap((function(s){for(;;)switch(s.prev=s.next){case 0:if(t=!(l.length>1&&void 0!==l[1])||l[1],e||e.length){s.next=3;break}return s.abrupt("return");case 3:return s.next=5,v.controls.select("core/block-editor","getBlocksByClientId",e);case 5:return n=s.sent,s.next=8,v.controls.select("core/block-editor","getBlockRootClientId",e[0]);case 8:if(r=s.sent,!Object(f.some)(n,(function(e){return!e}))){s.next=11;break}return s.abrupt("return");case 11:if(o=n.map((function(e){return e.name})),!Object(f.some)(o,(function(e){return!Object(c.hasBlockSupport)(e,"multiple",!0)}))){s.next=14;break}return s.abrupt("return");case 14:return s.next=16,v.controls.select("core/block-editor","getBlockIndex",Object(f.last)(Object(f.castArray)(e)),r);case 16:return i=s.sent,a=n.map((function(e){return Object(c.cloneBlock)(e)})),s.next=20,Ec(a,i+1,r,t);case 20:if(!(a.length>1&&t)){s.next=23;break}return s.next=23,bc(Object(f.first)(a).clientId,Object(f.last)(a).clientId);case 23:return s.abrupt("return",a.map((function(e){return e.clientId})));case 24:case"end":return s.stop()}}),Qo)}function Zc(e){var t,n;return Or.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(e){r.next=2;break}return r.abrupt("return");case 2:return r.next=4,v.controls.select("core/block-editor","getBlockRootClientId",e);case 4:return t=r.sent,r.next=7,v.controls.select("core/block-editor","getTemplateLock",t);case 7:if(!r.sent){r.next=10;break}return r.abrupt("return");case 10:return r.next=12,v.controls.select("core/block-editor","getBlockIndex",e,t);case 12:return n=r.sent,r.next=15,zc({},t,n);case 15:return r.abrupt("return",r.sent);case 16:case"end":return r.stop()}}),Zo)}function Jc(e){var t,n;return Or.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(e){r.next=2;break}return r.abrupt("return");case 2:return r.next=4,v.controls.select("core/block-editor","getBlockRootClientId",e);case 4:return t=r.sent,r.next=7,v.controls.select("core/block-editor","getTemplateLock",t);case 7:if(!r.sent){r.next=10;break}return r.abrupt("return");case 10:return r.next=12,v.controls.select("core/block-editor","getBlockIndex",e,t);case 12:return n=r.sent,r.next=15,zc({},t,n+1);case 15:return r.abrupt("return",r.sent);case 16:case"end":return r.stop()}}),Jo)}function ei(e,t){return{type:"TOGGLE_BLOCK_HIGHLIGHT",clientId:e,isHighlighted:t}}function ti(e){return Or.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,ei(e,!0);case 2:return t.next=4,{type:"SLEEP",duration:150};case 4:return t.next=6,ei(e,!1);case 6:case"end":return t.stop()}}),ec)}function ni(e,t){return{type:"SET_HAS_CONTROLLED_INNER_BLOCKS",hasControlledInnerBlocks:t,clientId:e}}var ri=n(42);function oi(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return ci(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ci(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var c,i=!0,a=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return i=e.done,e},e:function(e){a=!0,c=e},f:function(){try{i||null==n.return||n.return()}finally{if(a)throw c}}}}function ci(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&void 0!==arguments[1]?arguments[1]:"";return Object(f.map)(Xi(e,t),(function(t){return vi(e,t)}))}),(function(e){return[e.blocks.byClientId,e.blocks.order,e.blocks.attributes]})),gi=function e(t,n){return Object(f.flatMap)(n,(function(n){var r=Xi(t,n);return[].concat(Object(ne.a)(r),Object(ne.a)(e(t,r)))}))},hi=Object(ri.a)((function(e){var t=Xi(e);return[].concat(Object(ne.a)(t),Object(ne.a)(gi(e,t)))}),(function(e){return[e.blocks.order]})),ji=Object(ri.a)((function(e,t){var n=hi(e);return t?Object(f.reduce)(n,(function(n,r){return e.blocks.byClientId[r].name===t?n+1:n}),0):n.length}),(function(e){return[e.blocks.order,e.blocks.byClientId]})),ki=Object(ri.a)((function(e,t){return Object(f.map)(Object(f.castArray)(t),(function(t){return fi(e,t)}))}),(function(e){return[e.blocks.byClientId,e.blocks.order,e.blocks.attributes]}));function yi(e,t){return Xi(e,t).length}function _i(e){return e.selectionStart}function Ei(e){return e.selectionEnd}function Ci(e){return e.selectionStart.clientId}function Si(e){return e.selectionEnd.clientId}function wi(e){var t=Hi(e).length;return t||(e.selectionStart.clientId?1:0)}function Ii(e){var t=e.selectionStart,n=e.selectionEnd;return!!t.clientId&&t.clientId===n.clientId}function Bi(e){var t=e.selectionStart,n=e.selectionEnd,r=t.clientId;return r&&r===n.clientId?r:null}function xi(e){var t=Bi(e);return t?fi(e,t):null}function Pi(e,t){return void 0!==e.blocks.parents[t]?e.blocks.parents[t]:null}var Ti=Object(ri.a)((function(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=[],o=t;e.blocks.parents[o];)o=e.blocks.parents[o],r.push(o);return n?r:r.reverse()}),(function(e){return[e.blocks.parents]})),Ni=Object(ri.a)((function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=Ti(e,t,r);return Object(f.map)(Object(f.filter)(Object(f.map)(o,(function(t){return{id:t,name:ui(e,t)}})),(function(e){var t=e.name;return Array.isArray(n)?n.includes(t):t===n})),(function(e){return e.id}))}),(function(e){return[e.blocks.parents]}));function Di(e,t){var n,r=t;do{n=r,r=e.blocks.parents[r]}while(r);return n}function Ri(e,t){for(var n,r=Bi(e),o=[].concat(Object(ne.a)(Ti(e,t)),[t]),c=[].concat(Object(ne.a)(Ti(e,r)),[r]),i=Math.min(o.length,c.length),a=0;a2&&void 0!==arguments[2]?arguments[2]:1;if(void 0===t&&(t=Bi(e)),void 0===t&&(t=n<0?Ui(e):Gi(e)),!t)return null;var r=Pi(e,t);if(null===r)return null;var o=e.blocks.order,c=o[r],i=c.indexOf(t),a=i+1*n;return a<0||a===c.length?null:c[a]}function Mi(e,t){return Ai(e,t,-1)}function Li(e,t){return Ai(e,t,1)}function Fi(e){return e.initialPosition}var Vi=Object(ri.a)((function(e){var t=e.selectionStart,n=e.selectionEnd;if(void 0===t.clientId||void 0===n.clientId)return si;if(t.clientId===n.clientId)return[t.clientId];var r=Pi(e,t.clientId);if(null===r)return si;var o=Xi(e,r),c=o.indexOf(t.clientId),i=o.indexOf(n.clientId);return c>i?o.slice(i,c+1):o.slice(c,i+1)}),(function(e){return[e.blocks.order,e.selectionStart.clientId,e.selectionEnd.clientId]}));function Hi(e){var t=e.selectionStart,n=e.selectionEnd;return t.clientId===n.clientId?si:Vi(e)}var zi=Object(ri.a)((function(e){var t=Hi(e);return t.length?t.map((function(t){return fi(e,t)})):si}),(function(e){return[].concat(Object(ne.a)(Vi.getDependants(e)),[e.blocks.byClientId,e.blocks.order,e.blocks.attributes])}));function Ui(e){return Object(f.first)(Hi(e))||null}function Gi(e){return Object(f.last)(Hi(e))||null}function Ki(e,t){return Ui(e)===t}function Wi(e,t){return-1!==Hi(e).indexOf(t)}var qi=Object(ri.a)((function(e,t){for(var n=t,r=!1;n&&!r;)r=Wi(e,n=Pi(e,n));return r}),(function(e){return[e.blocks.order,e.selectionStart.clientId,e.selectionEnd.clientId]}));function $i(e){var t=e.selectionStart,n=e.selectionEnd;return t.clientId===n.clientId?null:t.clientId||null}function Yi(e){var t=e.selectionStart,n=e.selectionEnd;return t.clientId===n.clientId?null:n.clientId||null}function Xi(e,t){return e.blocks.order[t||""]||si}function Qi(e,t,n){return Xi(e,n).indexOf(t)}function Zi(e,t){var n=e.selectionStart,r=e.selectionEnd;return n.clientId===r.clientId&&n.clientId===t}function Ji(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return Object(f.some)(Xi(e,t),(function(t){return Zi(e,t)||Wi(e,t)||n&&Ji(e,t,n)}))}function ea(e,t){if(!t)return!1;var n=Hi(e),r=n.indexOf(t);return r>-1&&r2&&void 0!==arguments[2]?arguments[2]:null,r=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return Object(f.isBoolean)(e)?e:Object(f.isArray)(e)?!(!e.includes("core/post-content")||null!==t)||e.includes(t):n},o=Object(c.getBlockType)(t);if(!o)return!1;var i=Sa(e),a=i.allowedBlockTypes,l=r(a,t,!0);if(!l)return!1;var s=!!ma(e,n);if(s)return!1;var u=Ca(e,n);if(n&&void 0===u)return!1;var d=null==u?void 0:u.allowedBlocks,b=r(d,t),p=o.parent,m=ui(e,n),v=r(p,m);return null!==b&&null!==v?b||v:null!==b?b:null===v||v},Oa=Object(ri.a)(va,(function(e,t,n){return[e.blockListSettings[n],e.blocks.byClientId[n],e.settings.allowedBlockTypes,e.settings.templateLock]}));function ga(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return t.every((function(t){return Oa(e,ui(e,t),n)}))}function ha(e,t){var n,r;return null!==(n=null===(r=e.preferences.insertUsage)||void 0===r?void 0:r[t])&&void 0!==n?n:null}var ja=function(e,t,n){return!!Object(c.hasBlockSupport)(t,"inserter",!0)&&va(e,t.name,n)},ka=function(e){return function(t){return ai(ai({},e),{},{id:"".concat(e.id,"-").concat(t.name),icon:t.icon||e.icon,title:t.title||e.title,description:t.description||e.description,example:t.hasOwnProperty("example")?t.example:e.example,initialAttributes:ai(ai({},e.initialAttributes),t.attributes),innerBlocks:t.innerBlocks,keywords:t.keywords||e.keywords})}},ya=Object(ri.a)((function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=function(e,t){if(!e)return t;var n=Date.now()-e;switch(!0){case n<36e5:return 4*t;case n<864e5:return 2*t;case n<6048e5:return t/2;default:return t/4}},o=function(t){var n=t.name,o=!1;Object(c.hasBlockSupport)(t.name,"multiple",!0)||(o=Object(f.some)(ki(e,hi(e)),{name:t.name}));var i=ha(e,n)||{},a=i.time,l=i.count,s=void 0===l?0:l,u=t.variations.filter((function(e){var t=e.scope;return!t||t.includes("inserter")}));return{id:n,name:t.name,initialAttributes:{},title:t.title,description:t.description,icon:t.icon,category:t.category,keywords:t.keywords,variations:u,example:t.example,isDisabled:o,utility:1,frecency:r(a,s)}},i=function(t){var n,o="core/block/".concat(t.id),i=Ba(e,t.id);1===i.length&&(n=Object(c.getBlockType)(i[0].name));var a=ha(e,o)||{},l=a.time,s=a.count,u=r(l,void 0===s?0:s);return{id:o,name:"core/block",initialAttributes:{ref:t.id},title:t.title.raw,icon:n?n.icon:li,category:"reusable",keywords:[],isDisabled:!1,utility:1,frecency:u}},a=Object(c.getBlockTypes)().filter((function(t){return ja(e,t,n)})).map(o),l=va(e,"core/block",n)?Ta(e).map(i):[],s=a.filter((function(e){var t=e.variations;return!(void 0===t?[]:t).some((function(e){return e.isDefault}))})),u=[],d=oi(a);try{for(d.s();!(t=d.n()).done;){var b=t.value,p=b.variations,m=void 0===p?[]:p;if(m.length){var v=ka(b);u.push.apply(u,Object(ne.a)(m.map(v)))}}}catch(e){d.e(e)}finally{d.f()}return[].concat(Object(ne.a)(s),u,Object(ne.a)(l))}),(function(e,t){return[e.blockListSettings[t],e.blocks.byClientId,e.blocks.order,e.preferences.insertUsage,e.settings.allowedBlockTypes,e.settings.templateLock,Ta(e),Object(c.getBlockTypes)()]})),_a=Object(ri.a)((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=Object(f.some)(Object(c.getBlockTypes)(),(function(n){return ja(e,n,t)}));if(n)return!0;var r=va(e,"core/block",t)&&Ta(e).length>0;return r}),(function(e,t){return[e.blockListSettings[t],e.blocks.byClientId,e.settings.allowedBlockTypes,e.settings.templateLock,Ta(e),Object(c.getBlockTypes)()]})),Ea=Object(ri.a)((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(t)return Object(f.filter)(Object(c.getBlockTypes)(),(function(n){return ja(e,n,t)}))}),(function(e,t){return[e.blockListSettings[t],e.blocks.byClientId,e.settings.allowedBlockTypes,e.settings.templateLock,Object(c.getBlockTypes)()]}));function Ca(e,t){return e.blockListSettings[t]}function Sa(e){return e.settings}function wa(e){return e.blocks.isPersistentChange}var Ia=Object(ri.a)((function(e,t){return Object(f.filter)(e.blockListSettings,(function(e,n){return t.includes(n)}))}),(function(e){return[e.blockListSettings]})),Ba=Object(ri.a)((function(e,t){var n=Object(f.find)(Ta(e),(function(e){return e.id===t}));return n?Object(c.parse)("string"==typeof n.content.raw?n.content.raw:n.content):null}),(function(e){return[Ta(e)]}));function xa(e){return e.blocks.isIgnoredChange}function Pa(e){return e.lastBlockAttributesChange}function Ta(e){var t,n;return null!==(t=null==e||null===(n=e.settings)||void 0===n?void 0:n.__experimentalReusableBlocks)&&void 0!==t?t:si}function Na(e){return e.isNavigationMode}function Da(e){return e.hasBlockMovingClientId}function Ra(e){return!!e.automaticChangeStatus}function Aa(e,t){return e.highlightedBlock===t}function Ma(e,t){return!!e.blocks.controlledInnerBlocks[t]}var La=Object(ri.a)((function(e,t){if(!t.length)return null;var n=Bi(e);if(t.includes(ui(e,n)))return n;var r=Hi(e),o=Ni(e,n||r[0],t);return o?Object(f.last)(o):null}),(function(e,t){return[e.selectionStart.clientId,e.selectionEnd.clientId,t]}));function Fa(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Va(e){for(var t=1;t=s&&a<=u?a:a2&&void 0!==arguments[2]?arguments[2]:["top","bottom","left","right"];return o.forEach((function(o){var c=cl(e,t,o);(void 0===n||c6||E.length>6,D=Object(u.useMemo)((function(){return zn(E,C,S,s)}),[s,E,C,S]),R=Object(u.useMemo)((function(){return Un(x,s)}),[s,x]),A=Object(v.useSelect)((function(e){var t=e("core/block-editor"),o=t.getSettings,c=t.getBlockIndex;return{setInserterIsOpened:o().__experimentalSetIsInserterOpened,blockIndex:c(r,n)}}),[r,n]),M=A.setInserterIsOpened,L=A.blockIndex;Object(u.useEffect)((function(){M&&M(!1)}),[M]);var F=Object(v.useDispatch)("core/block-editor").__unstableSetInsertionPoint;Object(u.useEffect)((function(){if(s){var e=D.length+R.length,t=Object(g.sprintf)(Object(g._n)("%d result found.","%d results found.",e),e);i(t)}}),[s,i]);return Object(u.createElement)("div",{className:b()("block-editor-inserter__quick-inserter",{"has-search":N,"has-expand":M}),onKeyPress:Jl,onKeyDown:Zl},N&&Object(u.createElement)(bo,{value:s,onChange:function(e){d(e)},placeholder:Object(g.__)("Search for a block")}),Object(u.createElement)(es,{blockTypes:D,blockPatterns:T?R:[],onSelectBlockPattern:P,onSelectBlockType:w,onHover:k}),M&&Object(u.createElement)(h.Button,{className:"block-editor-inserter__quick-inserter-expand",onClick:function(){F(n,L),M(!0)},"aria-label":Object(g.__)("Browse all. This will open the main inserter panel in the editor toolbar.")},Object(g.__)("Browse all")))}function ns(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object($t.a)(e);if(t){var o=Object($t.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(qt.a)(this,n)}}var rs=function(e){var t,n=e.onToggle,r=e.disabled,o=e.isOpen,c=e.blockTitle,i=e.hasSingleBlockType,a=e.toggleProps,s=void 0===a?{}:a;t=i?Object(g.sprintf)(Object(g._x)("Add %s","directly add the only allowed block"),c):Object(g._x)("Add block","Generic label for block inserter button");var d=s.onClick,b=Object(he.a)(s,["onClick"]);return Object(u.createElement)(h.Button,Object(l.a)({icon:co.a,label:t,tooltipPosition:"bottom",onClick:function(e){n&&n(e),d&&d(e)},className:"block-editor-inserter__toggle","aria-haspopup":!i&&"true","aria-expanded":!i&&o,disabled:r},b))},os=function(e){Object(Wt.a)(n,e);var t=ns(n);function n(){var e;return Object(Ut.a)(this,n),(e=t.apply(this,arguments)).onToggle=e.onToggle.bind(Object(Kt.a)(e)),e.renderToggle=e.renderToggle.bind(Object(Kt.a)(e)),e.renderContent=e.renderContent.bind(Object(Kt.a)(e)),e}return Object(Gt.a)(n,[{key:"onToggle",value:function(e){var t=this.props.onToggle;t&&t(e)}},{key:"renderToggle",value:function(e){var t=e.onToggle,n=e.isOpen,r=this.props,o=r.disabled,c=r.blockTitle,i=r.hasSingleBlockType,a=r.toggleProps,l=r.hasItems,s=r.renderToggle,u=void 0===s?rs:s;return u({onToggle:t,isOpen:n,disabled:o||!l,blockTitle:c,hasSingleBlockType:i,toggleProps:a})}},{key:"renderContent",value:function(e){var t=e.onClose,n=this.props,r=n.rootClientId,o=n.clientId,c=n.isAppender,i=n.showInserterHelpPanel,a=n.__experimentalSelectBlockOnInsert;return n.__experimentalIsQuick?Object(u.createElement)(ts,{onSelect:t,rootClientId:r,clientId:o,isAppender:c,selectBlockOnInsert:a}):Object(u.createElement)(Ql,{onSelect:t,rootClientId:r,clientId:o,isAppender:c,showInserterHelpPanel:i,__experimentalSelectBlockOnInsert:a})}},{key:"render",value:function(){var e=this.props,t=e.position,n=e.hasSingleBlockType,r=e.insertOnlyAllowedBlock,o=e.__experimentalIsQuick;return n?this.renderToggle({onToggle:r}):Object(u.createElement)(h.Dropdown,{className:"block-editor-inserter",contentClassName:b()("block-editor-inserter__popover",{"is-quick":o}),position:t,onToggle:this.onToggle,expandOnMobile:!0,headerTitle:Object(g.__)("Add a block"),renderToggle:this.renderToggle,renderContent:this.renderContent})}}]),n}(u.Component),cs=Object(p.compose)([Object(v.withSelect)((function(e,t){var n=t.clientId,r=t.rootClientId,o=e("core/block-editor"),c=o.getBlockRootClientId,i=o.hasInserterItems,a=o.__experimentalGetAllowedBlocks,l=e("core/blocks").getBlockVariations,s=a(r=r||c(n)||void 0),u=1===Object(f.size)(s)&&0===Object(f.size)(l(s[0].name,"inserter")),d=!1;return u&&(d=s[0]),{hasItems:i(r),hasSingleBlockType:u,blockTitle:d?d.title:"",allowedBlockType:d,rootClientId:r}})),Object(v.withDispatch)((function(e,t,n){var r=n.select;return{insertOnlyAllowedBlock:function(){var n=t.rootClientId,o=t.clientId,i=t.isAppender,a=t.hasSingleBlockType,l=t.allowedBlockType,s=t.__experimentalSelectBlockOnInsert;if(a&&((0,e("core/block-editor").insertBlock)(Object(c.createBlock)(l.name),function(){var e=r("core/block-editor"),t=e.getBlockIndex,c=e.getBlockSelectionEnd,a=e.getBlockOrder;if(o)return t(o,n);var l=c();return!i&&l?t(l,n)+1:a(n).length}(),n,s),!s)){var u=Object(g.sprintf)(Object(g.__)("%s block added"),l.title);Object(Le.speak)(u)}}}})),Object(p.ifCondition)((function(e){var t=e.hasItems,n=e.isAppender,r=e.rootClientId,o=e.clientId;return t||!n&&!r&&!o}))])(os),is=Object(u.forwardRef)((function(e,t){var n=e.selectedClientId,r=e.isReverse,o=e.containerRef,c=e.noCapture,i=e.hasMultiSelection,a=e.multiSelectionContainer,l=Object(v.useSelect)((function(e){return e("core/block-editor").isNavigationMode()})),s=Object(v.useDispatch)("core/block-editor").setNavigationMode;return Object(u.createElement)("div",{ref:t,tabIndex:l?void 0:"0",onFocus:function(){if(c.current)c.current=null;else if(n){var e=qe(n);if(r){var t=kr.focus.tabbable.find(e);(Object(f.last)(t)||e).focus()}else e.focus()}else{if(i)return void a.current.focus();s(!0);var l=kr.focus.tabbable.find(o.current);l.length&&(r?Object(f.last)(l).focus():Object(f.first)(l).focus())}},style:{position:"fixed"}})}));var as=Object(f.overEvery)([kr.isTextField,kr.focus.tabbable.isTabbableIndex]);function ls(e,t,n,r){var o,c=kr.focus.focusable.find(n);return t&&(c=Object(f.reverse)(c)),c=c.slice(c.indexOf(e)+1),r&&(o=e.getBoundingClientRect()),Object(f.find)(c,(function t(n,c,i){if(!kr.focus.tabbable.isTabbableIndex(n))return!1;if(r){var a=n.getBoundingClientRect();if(a.left>=o.right||a.right<=o.left)return!1}if(Object(kr.isTextField)(n))return!0;if(!n.classList.contains("block-editor-block-list__block"))return!1;if(function(e){return e.classList.contains("block-editor-block-list__layout")||!!e.querySelector(".block-editor-block-list__layout")}(n))return!0;if(n.contains(e))return!1;for(var l,s=1;(l=i[c+s])&&n.contains(l);s++)if(t(l,c+s,i))return!1;return!0}))}function ss(e){var t=e("core/block-editor"),n=t.getSelectedBlockClientId,r=t.getMultiSelectedBlocksStartClientId,o=t.getMultiSelectedBlocksEndClientId,c=t.getPreviousBlockClientId,i=t.getNextBlockClientId,a=t.getFirstMultiSelectedBlockClientId,l=t.getLastMultiSelectedBlockClientId,s=t.hasMultiSelection,u=t.getBlockOrder,d=t.isNavigationMode,b=t.hasBlockMovingClientId,f=t.getBlockIndex,p=t.getBlockRootClientId,m=t.getClientIdsOfDescendants,v=t.canInsertBlockType,O=t.getBlockName,g=t.isSelectionEnabled,h=t.getBlockSelectionStart,j=t.isMultiSelecting,k=t.getSettings,y=n(),_=r(),E=o();return{selectedBlockClientId:y,selectionStartClientId:_,selectionBeforeEndClientId:c(E||y),selectionAfterEndClientId:i(E||y),selectedFirstClientId:a(),selectedLastClientId:l(),hasMultiSelection:s(),blocks:u(),isNavigationMode:d(),hasBlockMovingClientId:b,getBlockIndex:f,getBlockRootClientId:p,getClientIdsOfDescendants:m,canInsertBlockType:v,getBlockName:O,isSelectionEnabled:g(),blockSelectionStart:h(),isMultiSelecting:j(),keepCaretInsideBlock:k().keepCaretInsideBlock}}function us(e){var t=e.children,n=Object(u.useRef)(),r=Object(u.useRef)(),o=Object(u.useRef)(),c=Object(u.useRef)(),i=Object(u.useRef)(),a=Object(u.useRef)(),l=Object(u.useRef)(),s=Object(v.useSelect)(ss,[]),d=s.selectedBlockClientId,p=s.selectionStartClientId,m=s.selectionBeforeEndClientId,O=s.selectionAfterEndClientId,h=s.selectedFirstClientId,j=s.selectedLastClientId,k=s.hasMultiSelection,y=s.blocks,_=s.isNavigationMode,E=s.hasBlockMovingClientId,C=s.isSelectionEnabled,S=s.blockSelectionStart,w=s.isMultiSelecting,I=s.getBlockIndex,B=s.getBlockRootClientId,x=s.getClientIdsOfDescendants,P=s.canInsertBlockType,T=s.getBlockName,N=s.keepCaretInsideBlock,D=Object(v.useDispatch)("core/block-editor"),R=D.multiSelect,A=D.selectBlock,M=D.clearSelectedBlock,L=D.setNavigationMode,F=D.setBlockMovingClientId,V=D.moveBlockToPosition,H=Object(u.useState)(!1),z=Object(re.a)(H,2),U=z[0],G=z[1];Object(u.useEffect)((function(){k&&!w&&c.current.focus()}),[k,w]);var K=b()("block-editor-writing-flow",{"is-navigate-mode":_,"is-block-moving-mode":!!E(),"can-insert-moving-block":U});return Object(u.createElement)("div",{className:K},Object(u.createElement)(is,{ref:r,selectedClientId:d,containerRef:n,noCapture:a,hasMultiSelection:k,multiSelectionContainer:c}),Object(u.createElement)("div",{ref:n,onKeyDown:function(e){var t=e.keyCode,s=e.target,u=t===st.UP,b=t===st.DOWN,v=t===st.LEFT,g=t===st.RIGHT,C=t===st.TAB,S=t===st.ESCAPE,w=t===st.ENTER,D=t===st.SPACE,H=u||v,z=v||g,U=u||b,K=z||U,W=e.shiftKey,q=W||e.ctrlKey||e.altKey||e.metaKey,$=U?kr.isVerticalEdge:kr.isHorizontalEdge;if(_){var Y,X=C&&W||u,Q=C&&!W||b,Z=v,J=g;if(X)Y=m;else if(Q)Y=O;else if(Z){var ee;Y=null!==(ee=B(d))&&void 0!==ee?ee:d}else if(J){var te;Y=null!==(te=x([d])[0])&&void 0!==te?te:d}var ne=E();if(ne&&Y&&G(P(T(ne),B(Y))),S&&ne&&(F(null),G(!1)),(w||D)&&ne){var re=B(ne),oe=B(d),ce=I(ne,re),ie=I(d,oe);cen}));if(r&&(r.id||(r=r.firstElementChild))){var o=r.id.slice("block-".length);if(o){var a=r.getBoundingClientRect();e.clientX>a.right||e.clientX-1&&Object(Le.speak)(k)}),[]);var j=Object(c.getBlockType)(a),k=Object(c.__experimentalGetAccessibleBlockLabel)(j,s,i+1,f),y=b()("block-editor-block-list__block-selection-button",{"is-block-moving-mode":!!d});return Object(u.createElement)("div",Object(l.a)({className:y},r),Object(u.createElement)(h.Button,{ref:g,onClick:function(){return m(!1)},onKeyDown:function(e){var n=e.keyCode;n!==st.BACKSPACE&&n!==st.DELETE||(O(t),e.preventDefault())},label:k},Object(u.createElement)(Zn,{clientId:t})))};function ms(e,t,n){var r=Object(u.useState)(t),o=Object(re.a)(r,1)[0],c=Object(u.useCallback)((function(){var t,n,r;t=e.current,n=kr.focus.tabbable.find(t),(r=Object(re.a)(n,1)[0])&&r.focus()}),[]);Object(a.useShortcut)("core/block-editor/focus-toolbar",c,{bindGlobal:!0,eventName:"keydown"}),Object(u.useEffect)((function(){o&&c()}),[n,o,c])}var vs=function(e){var t=e.children,n=e.focusOnMount,r=Object(he.a)(e,["children","focusOnMount"]),o=Object(u.useRef)(),c=function(e){var t=Object(u.useState)(!0),n=Object(re.a)(t,2),r=n[0],o=n[1],c=Object(u.useCallback)((function(){var t=kr.focus.tabbable.find(e.current),n=!t.some((function(e){return!("toolbarItem"in e.dataset)}));n||to()("Using custom components as toolbar controls",{alternative:"ToolbarItem or ToolbarButton components",link:"https://developer.wordpress.org/block-editor/components/toolbar-button/#inside-blockcontrols"}),o(n)}),[]);return Object(u.useLayoutEffect)((function(){var t=new window.MutationObserver(c);return t.observe(e.current,{childList:!0,subtree:!0}),function(){return t.disconnect()}}),[r]),r}(o);return ms(o,n,c),c?Object(u.createElement)(h.Toolbar,Object(l.a)({label:r["aria-label"],ref:o},r),t):Object(u.createElement)(h.NavigableMenu,Object(l.a)({orientation:"horizontal",role:"toolbar",ref:o},r),t)},Os=Object(u.createElement)(j.SVG,{width:"18",height:"18",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 18 18"},Object(u.createElement)(j.Path,{d:"M5 4h2V2H5v2zm6-2v2h2V2h-2zm-6 8h2V8H5v2zm6 0h2V8h-2v2zm-6 6h2v-2H5v2zm6 0h2v-2h-2v2z"}));function gs(e){var t=e.clientIds,n=Object(v.useSelect)((function(e){var n;if(1===t.length){var r=(0,e("core/block-editor").getBlockName)(Object(re.a)(t,1)[0]);return null===(n=Object(c.getBlockType)(r))||void 0===n?void 0:n.icon}}),[t]);return Object(u.createElement)("div",{className:"block-editor-block-draggable-chip-wrapper"},Object(u.createElement)("div",{className:"block-editor-block-draggable-chip"},Object(u.createElement)(h.Flex,{justify:"center",className:"block-editor-block-draggable-chip__content"},Object(u.createElement)(h.FlexItem,null,n?Object(u.createElement)(qn,{icon:n}):Object(g.sprintf)(Object(g._n)("%d block","%d blocks",t.length),t.length)),Object(u.createElement)(h.FlexItem,null,Object(u.createElement)(qn,{icon:Os})))))}var hs=function(e){var t,n,r,o,c=e.children,i=e.clientIds,a=e.cloneClassname,l=e.onDragStart,s=e.onDragEnd,d=e.elementId,b=Object(v.useSelect)((function(e){var t=e("core/block-editor"),n=t.getBlockRootClientId,r=t.getTemplateLock,o=n(i[0]);return{srcRootClientId:o,isDraggable:"all"!==(o?r(o):null)}}),[i]),f=b.srcRootClientId,p=b.isDraggable,m=Object(u.useRef)(!1),O=(t=Object(u.useRef)(null),n=Object(u.useRef)(null),r=Object(u.useRef)(null),o=Object(u.useRef)(null),Object(u.useEffect)((function(){return function(){o.current&&(clearInterval(o.current),o.current=null)}}),[]),[Object(u.useCallback)((function(e){t.current=e.clientY,r.current=Object(kr.getScrollContainer)(e.target),o.current=setInterval((function(){if(r.current&&n.current){var e=r.current.scrollTop+n.current;r.current.scroll({top:e})}}),25)}),[]),Object(u.useCallback)((function(e){if(r.current){var o=r.current.offsetHeight,c=t.current-r.current.offsetTop,i=e.clientY-r.current.offsetTop;if(e.clientY>c){var a=Math.max(o-c-50,0),l=Math.max(i-c-50,0)/a;n.current=25*l}else if(e.clientY=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var c,i=!0,a=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return i=e.done,e},e:function(e){a=!0,c=e},f:function(){try{i||null==n.return||n.return()}finally{if(a)throw c}}}}function Es(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0}})),Object(v.withDispatch)((function(e,t){return{onTransform:function(n,r){e("core/block-editor").replaceBlocks(t.clientIds,Object(c.switchToBlockType)(n,r))}}})))(Ds),As=n(41);function Ms(){var e=Object(v.useSelect)((function(e){return e("core/block-editor")}),[]).getBlockName,t=Object(v.useSelect)((function(e){return e("core/blocks")}),[]).getBlockType,n=Object(v.useDispatch)("core/notices").createSuccessNotice;return Object(u.useCallback)((function(r,o){var c="";if(1===o.length){var i=o[0],a=t(e(i)).title;c="copy"===r?Object(g.sprintf)(Object(g.__)('Copied "%s" to clipboard.'),a):Object(g.sprintf)(Object(g.__)('Moved "%s" to clipboard.'),a)}else c="copy"===r?Object(g.sprintf)(Object(g._n)("Copied %d block to clipboard.","Copied %d blocks to clipboard.",o.length),o.length):Object(g.sprintf)(Object(g._n)("Moved %d block to clipboard.","Moved %d blocks to clipboard.",o.length),o.length);n(c,{type:"snackbar"})}),[])}var Ls=function(e){var t=e.children,n=Object(u.useRef)(),r=Object(v.useSelect)((function(e){return e("core/block-editor")}),[]),o=r.getBlocksByClientId,i=r.getSelectedBlockClientIds,a=r.hasMultiSelection,l=r.getSettings,s=Object(v.useDispatch)("core/block-editor"),d=s.flashBlock,b=s.removeBlocks,p=s.replaceBlocks,m=Ms(),O=l().__experimentalCanUserUseUnfilteredHTML,g=function(e){var t=i();if(0!==t.length){if(!a()){var r=e.target.ownerDocument;if("copy"===e.type||"cut"===e.type?Object(kr.documentHasUncollapsedSelection)(r):Object(kr.documentHasSelection)(r))return}if(n.current.contains(e.target)){if(e.preventDefault(),"copy"===e.type||"cut"===e.type){1===t.length&&d(t[0]),m(e.type,t);var l=o(t),s=Object(c.serialize)(l);e.clipboardData.setData("text/plain",s),e.clipboardData.setData("text/html",s)}if("cut"===e.type)b(t);else if("paste"===e.type){var u=function(e){var t=e.clipboardData,n=t.items,r=t.files;n=Object(f.isNil)(n)?[]:n,r=Object(f.isNil)(r)?[]:r;var o="",c="";try{o=t.getData("text/plain"),c=t.getData("text/html")}catch(e){try{c=t.getData("Text")}catch(e){return}}return r=Array.from(r),Array.from(n).forEach((function(e){if(e.getAsFile){var t=e.getAsFile();if(t){var n=t.name,o=t.type,c=t.size;Object(f.find)(r,{name:n,type:o,size:c})||r.push(t)}}})),(r=r.filter((function(e){var t=e.type;return/^image\/(?:jpe?g|png|gif)$/.test(t)}))).length&&!c&&(c=r.map((function(e){return'')})).join(""),o=""),{html:c,plainText:o}}(e),v=u.plainText,g=u.html,h=Object(c.pasteHandler)({HTML:g,plainText:v,mode:"BLOCKS",canUserUseUnfilteredHTML:O});p(t,h,h.length-1,-1)}}}};return Object(u.createElement)("div",{ref:n,onCopy:g,onCut:g,onPaste:g},t)};function Fs(e){var t=e.clientIds,n=e.children,r=e.__experimentalUpdateSelection,o=Object(v.useSelect)((function(e){return e("core/block-editor")}),[]),i=o.canInsertBlockType,a=o.getBlockRootClientId,l=o.getBlocksByClientId,s=o.getTemplateLock,u=Object(v.useSelect)((function(e){return e("core/blocks")}),[]),d=u.getDefaultBlockName,b=u.getGroupingBlockName,p=l(t),m=a(t[0]),O=Object(f.every)(p,(function(e){return!!e&&Object(c.hasBlockSupport)(e.name,"multiple",!0)&&i(e.name,m)})),g=i(d(),m),h=Object(v.useDispatch)("core/block-editor"),j=h.removeBlocks,k=h.replaceBlocks,y=h.duplicateBlocks,_=h.insertAfterBlock,E=h.insertBeforeBlock,C=h.flashBlock,S=h.setBlockMovingClientId,w=h.setNavigationMode,I=h.selectBlock,B=Ms();return n({canDuplicate:O,canInsertDefaultBlock:g,isLocked:!!s(m),rootClientId:m,blocks:p,onDuplicate:function(){return y(t,r)},onRemove:function(){return j(t,r)},onInsertBefore:function(){E(Object(f.first)(Object(f.castArray)(t)))},onInsertAfter:function(){_(Object(f.last)(Object(f.castArray)(t)))},onMoveTo:function(){w(!0),I(t[0]),S(t[0])},onGroup:function(){if(p.length){var e=b(),n=Object(c.switchToBlockType)(p,e);n&&k(t,n)}},onUngroup:function(){if(p.length){var e=p[0].innerBlocks;e.length&&k(t,e)}},onCopy:function(){var e=p.map((function(e){return e.clientId}));1===p.length&&C(e[0]),B("copy",e)}})}var Vs=Object(p.compose)([Object(v.withSelect)((function(e,t){var n=t.clientId,r=e("core/block-editor"),o=r.getBlock,i=r.getBlockMode,a=r.getSettings,l=o(n),s=a().codeEditingEnabled;return{mode:i(n),blockType:l?Object(c.getBlockType)(l.name):null,isCodeEditingEnabled:s}})),Object(v.withDispatch)((function(e,t){var n=t.onToggle,r=void 0===n?f.noop:n,o=t.clientId;return{onToggleMode:function(){e("core/block-editor").toggleBlockMode(o),r()}}}))])((function(e){var t=e.blockType,n=e.mode,r=e.onToggleMode,o=e.small,i=void 0!==o&&o,a=e.isCodeEditingEnabled,l=void 0===a||a;if(!Object(c.hasBlockSupport)(t,"html",!0)||!l)return null;var s="visual"===n?Object(g.__)("Edit as HTML"):Object(g.__)("Edit visually");return Object(u.createElement)(h.MenuItem,{onClick:r},!i&&s)}));var Hs=Object(p.compose)(Object(v.withSelect)((function(e,t){var n=t.clientId,r=e("core/block-editor").getBlock(n);return{block:r,shouldRender:r&&"core/html"===r.name}})),Object(v.withDispatch)((function(e,t){var n=t.block;return{onClick:function(){return e("core/block-editor").replaceBlocks(n.clientId,Object(c.rawHandler)({HTML:Object(c.getBlockContent)(n)}))}}})))((function(e){var t=e.shouldRender,n=e.onClick,r=e.small;if(!t)return null;var o=Object(g.__)("Convert to Blocks");return Object(u.createElement)(h.MenuItem,{onClick:n},!r&&o)})),zs=Object(h.createSlotFill)("__experimentalBlockSettingsMenuFirstItem"),Us=zs.Fill,Gs=zs.Slot;Us.Slot=Gs;var Ks=Us;function Ws(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function qs(e){for(var t=1;t1,x=b()("block-editor-block-toolbar",w&&"is-showing-movers"),P=r?cu.a:"div";return Object(u.createElement)(P,{className:x},Object(u.createElement)("div",Object(l.a)({ref:y},C),!B&&Object(u.createElement)("div",{className:"block-editor-block-toolbar__block-parent-selector-wrapper"},Object(u.createElement)(ks,{clientIds:i})),(I||B)&&Object(u.createElement)(h.ToolbarGroup,{className:"block-editor-block-toolbar__block-controls"},Object(u.createElement)(Rs,{clientIds:i}),Object(u.createElement)(js,{clientIds:i,hideDragHandle:t||m}))),I&&Object(u.createElement)(u.Fragment,null,Object(u.createElement)(O.a.Slot,{bubblesVirtually:!0,className:"block-editor-block-toolbar__slot"}),Object(u.createElement)(mr.Slot,{bubblesVirtually:!0,className:"block-editor-block-toolbar__slot"})),Object(u.createElement)(eu,{clientIds:i}))}var au=function(e){var t=e.focusOnMount,n=Object(he.a)(e,["focusOnMount"]),r=Object(v.useSelect)((function(e){var t=e("core/block-editor"),n=t.getBlockName,r=t.getSelectedBlockClientIds,o=e("core/blocks").getBlockType,c=r()[0];return{blockType:c&&o(n(c))}}),[]).blockType;return r&&!Object(c.hasBlockSupport)(r,"__experimentalToolbar",!0)?null:Object(u.createElement)("div",{className:"block-editor-block-contextual-toolbar-wrapper"},Object(u.createElement)(vs,Object(l.a)({focusOnMount:t,className:"block-editor-block-contextual-toolbar","aria-label":Object(g.__)("Block tools")},n),Object(u.createElement)(iu,null)))};function lu(e){var t=e("core/block-editor"),n=t.isNavigationMode,r=t.isMultiSelecting,o=t.hasMultiSelection,c=t.isTyping,i=t.isCaretWithinFormattedText,a=t.getSettings,l=t.getLastMultiSelectedBlockClientId;return{isNavigationMode:n(),isMultiSelecting:r(),isTyping:c(),isCaretWithinFormattedText:i(),hasMultiSelection:o(),hasFixedToolbar:a().hasFixedToolbar,lastClientId:l()}}function su(e){var t=e.clientId,n=e.rootClientId,r=e.isValid,o=e.isEmptyDefaultBlock,c=e.capturingClientId,i=Object(v.useSelect)(lu,[]),l=i.isNavigationMode,s=i.isMultiSelecting,d=i.isTyping,f=i.isCaretWithinFormattedText,m=i.hasMultiSelection,O=i.hasFixedToolbar,g=i.lastClientId,j=Object(p.useViewportMatch)("medium"),k=Object(u.useState)(!1),y=Object(re.a)(k,2),_=y[0],E=y[1],C=Object(u.useState)(!1),S=Object(re.a)(C,2),w=S[0],I=S[1],B=Object(u.useContext)(fu),x=!d&&!l&&o&&r,P=l,T=!l&&!O&&j&&!x&&!s&&(!d||f),N=!(l||T||O||o);if(Object(a.useShortcut)("core/block-editor/focus-toolbar",Object(u.useCallback)((function(){return E(!0)}),[]),{bindGlobal:!0,eventName:"keydown",isDisabled:!N}),!(P||T||_||x))return null;var D=B[t];if(c&&(D=document.getElementById("block-"+c)),!D)return null;var R=D;if(m){var A=B[g];if(!A)return null;R={top:D,bottom:A}}var M=x?"top left right":"top right left";return Object(u.createElement)(h.Popover,{noArrow:!0,animate:!1,position:M,focusOnMount:!1,anchorRef:R,className:"block-editor-block-list__block-popover",__unstableSticky:!x,__unstableSlotName:"block-toolbar",__unstableBoundaryParent:!0,__unstableObserveElement:D,onBlur:function(){return E(!1)},shouldAnchorIncludePadding:!0},(T||_)&&Object(u.createElement)("div",{onFocus:function(){I(!0)},onBlur:function(){I(!1)},tabIndex:-1,className:b()("block-editor-block-list__block-popover-inserter",{"is-visible":w})},Object(u.createElement)(cs,{clientId:t,rootClientId:n,__experimentalIsQuick:!0})),(T||_)&&Object(u.createElement)(au,{focusOnMount:_}),P&&Object(u.createElement)(ps,{clientId:t,rootClientId:n}),x&&Object(u.createElement)("div",{className:"block-editor-block-list__empty-block-inserter"},Object(u.createElement)(cs,{position:"bottom right",rootClientId:n,clientId:t,__experimentalIsQuick:!0})))}function uu(e){var t=e("core/block-editor"),n=t.getSelectedBlockClientId,r=t.getFirstMultiSelectedBlockClientId,o=t.getBlockRootClientId,i=t.__unstableGetBlockWithoutInnerBlocks,a=t.getBlockParents,l=t.__experimentalGetBlockListSettingsForBlocks,s=n()||r();if(s){var u,d=i(s)||{},b=d.name,p=d.attributes,m=void 0===p?{}:p,v=d.isValid,O=a(s),g=l(O),h=Object(f.findIndex)(g,["__experimentalCaptureToolbars",!0]);return-1!==h&&(u=O[h]),{clientId:s,rootClientId:o(s),name:b,isValid:v,isEmptyDefaultBlock:b&&Object(c.isUnmodifiedDefaultBlock)({name:b,attributes:m}),capturingClientId:u}}}function du(){var e=Object(v.useSelect)(uu,[]);if(!e)return null;var t=e.clientId,n=e.rootClientId,r=e.name,o=e.isValid,c=e.isEmptyDefaultBlock,i=e.capturingClientId;return r?Object(u.createElement)(su,{clientId:t,rootClientId:n,isValid:o,isEmptyDefaultBlock:c,capturingClientId:i}):null}var bu=Object(u.createContext)(),fu=Object(u.createContext)(),pu=Object(u.createContext)();function mu(e){var t=e("core/block-editor"),n=t.getSelectedBlockClientId,r=t.hasMultiSelection;return{selectedBlockClientId:n(),hasMultiSelection:r()}}function vu(e){Ye(e.target)&&e.preventDefault()}var Ou=Object(u.forwardRef)((function(e,t){var n=e.children,r=e.className,o=Object(v.useSelect)(mu,[]),c=o.selectedBlockClientId,i=o.hasMultiSelection,a=Object(v.useDispatch)("core/block-editor").selectBlock,l=function(e){var t=Object(v.useSelect)(ro,[]),n=t.isSelectionEnabled,r=t.isMultiSelecting,o=t.multiSelectedBlockClientIds,c=t.hasMultiSelection,i=t.getBlockParents,a=t.selectedBlockClientId,l=Object(v.useDispatch)("core/block-editor"),s=l.startMultiSelect,d=l.stopMultiSelect,b=l.multiSelect,f=l.selectBlock,p=Object(u.useRef)(),m=Object(u.useRef)(),O=Object(u.useRef)();Object(u.useEffect)((function(){var t=e.current.ownerDocument,n=t.defaultView;if(c&&!r){var i=o.length;if(!(i<2)){var l=o[0],s=o[i-1],u=qe(l),d=qe(s),b=n.getSelection(),f=t.createRange();u=no(u,"start"),d=no(d,"end"),f.setStartBefore(u),f.setEndAfter(d),b.removeAllRanges(),b.addRange(f)}}else{if(!a||r)return;var p=n.getSelection();if(p.rangeCount&&!p.isCollapsed){var m=qe(a),v=p.getRangeAt(0),O=v.startContainer,g=v.endContainer;!m||m.contains(O)&&m.contains(g)||p.removeAllRanges()}}}),[c,r,o,f,a]);var g=Object(u.useCallback)((function(t){var n=t.isSelectionEnd,r=e.current.ownerDocument.defaultView.getSelection();if(r.rangeCount&&!r.isCollapsed){var o=Ye(r.focusNode);if(m.current===o){if(f(o),n&&(oo(e.current,!0),r.rangeCount)){var c=r.getRangeAt(0).commonAncestorContainer;O.current.contains(c)&&O.current.focus()}}else{var a=[].concat(Object(ne.a)(i(m.current)),[m.current]),l=[].concat(Object(ne.a)(i(o)),[o]),s=Math.min(a.length,l.length)-1;b(a[s],l[s])}}else oo(e.current,!0)}),[f,i,b]),h=Object(u.useCallback)((function(){var t=e.current.ownerDocument,n=t.defaultView;t.removeEventListener("selectionchange",g),n.removeEventListener("mouseup",h),p.current=n.requestAnimationFrame((function(){g({isSelectionEnd:!0}),d()}))}),[g,d]);return Object(u.useEffect)((function(){var t=e.current.ownerDocument,n=t.defaultView;return function(){t.removeEventListener("selectionchange",g),n.removeEventListener("mouseup",h),n.cancelAnimationFrame(p.current)}}),[g,h]),Object(u.useCallback)((function(t){if(n){var r=e.current.ownerDocument,o=r.defaultView;m.current=t,O.current=r.activeElement,s(),r.addEventListener("selectionchange",g),o.addEventListener("mouseup",h),oo(e.current,!1)}}),[n,s,h])}(t),s=Object(u.useState)({}),d=Object(re.a)(s,2),f=d[0],p=d[1];return Object(u.createElement)(fs,{containerRef:t},Object(u.createElement)(fu.Provider,{value:f},Object(u.createElement)(du,null),Object(u.createElement)("div",{ref:t,className:b()(r,"is-root-container"),onFocus:function(e){if(!i){var t=Ye(e.target);t&&t!==c&&a(t)}},onDragStart:vu},Object(u.createElement)(pu.Provider,{value:p},Object(u.createElement)(bu.Provider,{value:l},n)))))})),gu=["p","div","h1","h2","h3","h4","h5","h6","ol","ul","li","figure","nav","pre","header","section","aside","footer","main"];function hu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ju(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.__unstableIsHtml,r=Object(u.useRef)(),o=e.ref||r,c=Object(u.useContext)(bu),i=Object(u.useContext)(pu),a=Object(u.useContext)(Su),l=a.clientId,d=a.rootClientId,p=a.isSelected,m=a.isFirstMultiSelected,O=a.isLastMultiSelected,h=a.isPartOfMultiSelection,j=a.enableAnimation,k=a.index,y=a.className,_=a.name,E=a.mode,C=a.blockTitle,S=a.wrapperProps,w=void 0===S?{}:S,I=Object(v.useSelect)((function(e){var t=e("core/block-editor"),n=t.getSelectedBlocksInitialCaretPosition,r=t.isMultiSelecting,o=t.isNavigationMode;return{shouldFocusFirstElement:p&&!r()&&!o(),initialPosition:p?n():void 0,isNavigationMode:o}}),[p]),B=I.initialPosition,x=I.shouldFocusFirstElement,P=I.isNavigationMode,T=Object(v.useDispatch)("core/block-editor"),N=T.insertDefaultBlock,D=T.removeBlock,R=Object(u.useState)(!1),A=Object(re.a)(R,2),M=A[0],L=A[1];Object(u.useEffect)((function(){if(p||m||O){var e=o.current;return i((function(t){return ju(ju({},t),{},Object(s.a)({},l,e))})),function(){i((function(e){return Object(f.omit)(e,l)}))}}}),[p,m,O]),Object(u.useEffect)((function(){var e=o.current;i((function(t){return t[l]&&t[l]!==e?ju(ju({},t),{},Object(s.a)({},l,e)):t}))}));var F=Object(g.sprintf)(Object(g.__)("Block: %s"),C),V=function(){var e=o.current.ownerDocument;if(!e.activeElement||!$e(o.current,e.activeElement)){var t=kr.focus.tabbable.find(o.current).filter((function(e){return Object(kr.isTextField)(e)&&$e(o.current,e)&&!e.closest(".block-list-appender")})),n=-1===B,r=(n?f.last:f.first)(t)||o.current;Object(kr.placeCaretAtHorizontalEdge)(r,n)}};Object(u.useEffect)((function(){x&&V()}),[x]),Er(o,p||h,p||m,j,k),Object(u.useEffect)((function(){if(p)return o.current.addEventListener("keydown",e),o.current.addEventListener("mouseleave",t),function(){o.current.removeEventListener("mouseleave",t),o.current.removeEventListener("keydown",e)};function e(e){var t=e.keyCode,n=e.target;t!==st.ENTER&&t!==st.BACKSPACE&&t!==st.DELETE||n!==o.current||Object(kr.isTextField)(n)||(e.preventDefault(),t===st.ENTER?N({},d,k+1):D(l))}function t(e){1===e.buttons&&c(l)}}),[p,c,N,D]),Object(u.useEffect)((function(){if(P)return o.current.addEventListener("mouseover",e),o.current.addEventListener("mouseout",t),function(){o.current.removeEventListener("mouseover",e),o.current.removeEventListener("mouseout",t)};function e(e){e.defaultPrevented||(e.preventDefault(),M||L(!0))}function t(e){e.defaultPrevented||(e.preventDefault(),M&&L(!1))}}),[P,M,L]);var H="html"!==E||n?"":"-visual";return ju(ju(ju({},w),e),{},{ref:o,id:"block-".concat(l).concat(H),tabIndex:0,role:"group","aria-label":F,"data-block":l,"data-type":_,"data-title":C,className:b()(y,e.className,w.className,{"is-hovered":M}),style:ju(ju({},w.style),e.style)})}ku.save=c.__unstableGetBlockProps;var yu=Object(u.forwardRef)((function(e,t){var n=e.children,r=e.tagName,o=void 0===r?"div":r,c=Object(he.a)(e,["children","tagName"]);to()("wp.blockEditor.__experimentalBlock",{alternative:"wp.blockEditor.useBlockProps"});var i=ku(ju(ju({},c),{},{ref:t}));return Object(u.createElement)(o,i,n)})),_u=gu.reduce((function(e,t){return e[t]=Object(u.forwardRef)((function(e,n){return Object(u.createElement)(yu,Object(l.a)({},e,{ref:n,tagName:t}))})),e}),yu);function Eu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Cu(e){for(var t=1;t1||Object(c.hasBlockSupport)(q,"lightBlockWrapper",!1),Y=E===Object(c.getUnregisteredTypeHandlerName)();q.getEditWrapperProps&&(t=w,n=q.getEditWrapperProps(S),r=Cu(Cu({},t),n),t&&n&&t.className&&n.className&&(r.className=b()(t.className,n.className)),t&&n&&t.style&&n.style&&(r.style=Cu(Cu({},t.style),n.style)),w=r);var X=$&&Object(c.hasBlockSupport)(q,"className",!0)?Object(c.getBlockDefaultClassName)(E):null,Q=$?S.className:null,Z=w&&!!w["data-align"],J=b()(X,Q,"block-editor-block-list__block",{"wp-block":!Z,"has-warning":!C||!!K||Y,"is-selected":d&&!L,"is-highlighted":F,"is-multi-selected":m,"is-reusable":Object(c.isReusableBlock)(q),"is-dragging":L,"is-typing":j,"is-focused":V&&A&&(d||k),"is-focus-mode":V&&A,"has-child-selected":k&&!L,"is-active-entity":R===a},_),ee=Object(u.createElement)(ur,{name:E,isSelected:d,attributes:S,setAttributes:I,insertBlocksAfter:i?void 0:x,onReplace:i?void 0:B,onRemove:i?void 0:z,mergeBlocks:i?void 0:P,clientId:a,isSelectionEnabled:y,toggleSelection:T});if(Z){var te={"data-align":w["data-align"]};ee=Object(u.createElement)("div",Object(l.a)({className:"wp-block"},te),ee)}var ne,oe={clientId:a,rootClientId:s,isSelected:d,isFirstMultiSelected:g,isLastMultiSelected:h,isPartOfMultiSelection:O,enableAnimation:D,index:N,className:J,isLocked:i,name:E,mode:o,blockTitle:q.title,wrapperProps:Object(f.omit)(w,["data-align"])},ce=Object(u.useMemo)((function(){return oe}),Object.values(oe));return ne=C?"html"===o?Object(u.createElement)(u.Fragment,null,Object(u.createElement)("div",{style:{display:"none"}},ee),Object(u.createElement)(wu,{isHtml:!0},Object(u.createElement)(Jr,{clientId:a}))):$?ee:Object(u.createElement)(wu,w,ee):Object(u.createElement)(wu,null,Object(u.createElement)(Wr,{clientId:a}),Object(u.createElement)("div",null,Object(c.getSaveElement)(q,S))),Object(u.createElement)(Su.Provider,{value:ce},Object(u.createElement)(Xr,{onError:function(){return W(!0)}},ne),!!K&&Object(u.createElement)(wu,null,Object(u.createElement)($r,null)))})),Pu=function(e,t,n){return Object(g.sprintf)(Object(g.__)("Block %1$d of %2$d, Level %3$d"),e,t,n)};var Tu=Object(u.forwardRef)((function e(t,n){var r=t.className,o=t.block,i=t.isSelected,a=t.onClick,l=t.position,s=t.siblingBlockCount,d=t.level,f=t.tabIndex,m=t.onFocus,v=t.onDragStart,O=t.onDragEnd,j=t.draggable,k=o.name,y=o.attributes,_=Object(c.getBlockType)(k),E=Object(c.__experimentalGetBlockLabel)(_,y),C=Object(p.useInstanceId)(e),S="block-navigation-block-select-button__".concat(C),w=Pu(l,s,d);return Object(u.createElement)(u.Fragment,null,Object(u.createElement)(h.Button,{className:b()("block-editor-block-navigation-block-select-button",r),onClick:a,"aria-describedby":S,ref:n,tabIndex:f,onFocus:m,onDragStart:v,onDragEnd:O,draggable:j},Object(u.createElement)(qn,{icon:_.icon,showColors:!0}),E,i&&Object(u.createElement)(h.VisuallyHidden,null,Object(g.__)("(selected block)"))),Object(u.createElement)("div",{className:"block-editor-block-navigation-block-select-button__description",id:S},w))}));function Nu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Du(e){for(var t=1;t0,B=O||_,x=b()("block-editor-block-navigation-block__mover-cell",{"is-visible":B}),P=Fr().__experimentalFeatures,T=b()("block-editor-block-navigation-block__menu-cell",{"is-visible":B});return Object(u.useEffect)((function(){P&&n&&f.current.focus()}),[P,n]),Object(u.createElement)(Sr,{className:b()({"is-selected":n,"is-dragging":S}),onMouseEnter:function(){return j(!0)},onMouseLeave:function(){return j(!1)},onFocus:function(){return E(!0)},onBlur:function(){return E(!1)},level:c,position:o,rowCount:i,path:d,id:"block-navigation-block-".concat(C),"data-block":C},Object(u.createElement)(h.__experimentalTreeGridCell,{className:"block-editor-block-navigation-block__contents-cell",colSpan:I?void 0:2,ref:f},(function(e){var l=e.ref,d=e.tabIndex,b=e.onFocus;return Object(u.createElement)("div",{className:"block-editor-block-navigation-block__contents-container"},Object(u.createElement)(Mr,{level:c,isLastRow:o===i,terminatedLevels:s}),Object(u.createElement)(Lu,{block:t,onClick:function(){return r(t.clientId)},isSelected:n,position:o,siblingBlockCount:a,level:c,ref:l,tabIndex:d,onFocus:b}))})),I&&Object(u.createElement)(u.Fragment,null,Object(u.createElement)(h.__experimentalTreeGridCell,{className:x,withoutGridItem:!0},Object(u.createElement)(h.__experimentalTreeGridItem,null,(function(e){var t=e.ref,n=e.tabIndex,r=e.onFocus;return Object(u.createElement)(Rr,{orientation:"vertical",clientIds:[C],ref:t,tabIndex:n,onFocus:r})})),Object(u.createElement)(h.__experimentalTreeGridItem,null,(function(e){var t=e.ref,n=e.tabIndex,r=e.onFocus;return Object(u.createElement)(Ar,{orientation:"vertical",clientIds:[C],ref:t,tabIndex:n,onFocus:r})})))),P&&Object(u.createElement)(h.__experimentalTreeGridCell,{className:T},(function(e){var t=e.ref,n=e.tabIndex,o=e.onFocus;return Object(u.createElement)(Js,{clientIds:[C],icon:hr.a,toggleProps:{ref:t,tabIndex:n,onFocus:o},disableOpenOnArrowDown:!0,__experimentalSelectBlock:r},(function(e){var t=e.onClose;return Object(u.createElement)(h.MenuGroup,null,Object(u.createElement)(h.MenuItem,{onClick:Object(gr.a)(Or.a.mark((function e(){return Or.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,w(null);case 2:return e.next=4,w(C);case 4:t();case 5:case"end":return e.stop()}}),e)})))},Object(g.__)("Go to block")))}))})))}function Vu(e){var t=e.parentBlockClientId,n=e.position,r=e.level,o=e.rowCount,c=e.terminatedLevels,i=e.path,a=Object(v.useSelect)((function(e){var n=e("core/block-editor"),r=n.isBlockBeingDragged,o=n.isAncestorBeingDragged;return r(t)||o(t)}),[t]),l=Object(p.useInstanceId)(Vu),s="block-navigation-appender-row__description_".concat(l),d=Object(g.sprintf)(Object(g.__)("Add block at position %1$d, Level %2$d"),n,r);return Object(u.createElement)(Sr,{className:b()({"is-dragging":a}),level:r,position:n,rowCount:o,path:i},Object(u.createElement)(h.__experimentalTreeGridCell,{className:"block-editor-block-navigation-appender__cell",colSpan:"3"},(function(e){var i=e.ref,a=e.tabIndex,l=e.onFocus;return Object(u.createElement)("div",{className:"block-editor-block-navigation-appender__container"},Object(u.createElement)(Mr,{level:r,isLastRow:n===o,terminatedLevels:c}),Object(u.createElement)(cs,{rootClientId:t,__experimentalIsQuick:!0,__experimentalSelectBlockOnInsert:!1,"aria-describedby":s,toggleProps:{ref:i,tabIndex:a,onFocus:l}}),Object(u.createElement)("div",{className:"block-editor-block-navigation-appender__description",id:s},d))})))}function Hu(e){var t=e.blocks,n=e.selectBlock,r=e.selectedBlockClientId,o=e.showAppender,c=e.showBlockMovers,i=e.showNestedBlocks,a=e.parentBlockClientId,l=e.level,s=void 0===l?1:l,d=e.terminatedLevels,b=void 0===d?[]:d,p=e.path,m=void 0===p?[]:p,v=!a,O=Object(f.compact)(t),g=function(e){return o&&!v&&r===e},h=g(a),j=O.length,k=h?j+1:j,y=k;return Object(u.createElement)(u.Fragment,null,Object(f.map)(O,(function(e,t){var a=e.clientId,l=e.innerBlocks,d=t+1,f=k===d?[].concat(Object(ne.a)(b),[s]):b,p=[].concat(Object(ne.a)(m),[d]),v=i&&!!l&&!!l.length,O=g(a);return Object(u.createElement)(u.Fragment,{key:a},Object(u.createElement)(Fu,{block:e,onClick:n,isSelected:r===a,level:s,position:d,rowCount:k,siblingBlockCount:j,showBlockMovers:c,terminatedLevels:b,path:p}),(v||O)&&Object(u.createElement)(Hu,{blocks:l,selectedBlockClientId:r,selectBlock:n,showAppender:o,showBlockMovers:c,showNestedBlocks:i,parentBlockClientId:a,level:s+1,terminatedLevels:f,path:p}))})),h&&Object(u.createElement)(Vu,{parentBlockClientId:a,position:k,rowCount:y,level:s,terminatedLevels:b,path:[].concat(Object(ne.a)(m),[y])}))}function zu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Uu(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return Gu(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Gu(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var c,i=!0,a=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return i=e.done,e},e:function(e){a=!0,c=e},f:function(){try{i||null==n.return||n.return()}finally{if(a)throw c}}}}function Gu(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.x&&t.top<=e.y&&t.bottom>=e.y}Hu.defaultProps={selectBlock:function(){}};var Wu=["top","bottom"];function qu(e){var t=Object(u.useState)(),n=Object(re.a)(t,2),r=n[0],o=void 0===r?{}:r,c=n[1],i=ol(o.rootClientId,o.blockIndex),a=Object(h.__unstableUseDropZone)(function(e){for(var t=1;t0||function(e,t){var n=t.left+t.width/2;return e.x>n}(t,c)))return{rootClientId:r.clientId,blockIndex:0,dropPosition:"inside"};if(r.canInsertDraggedBlocksAsSibling){var g=O?1:0;return{rootClientId:r.rootClientId,clientId:r.clientId,blockIndex:r.blockIndex+g,dropPosition:n}}}}(b.current,l);e&&c(e)}}),[b,l]),l)return o}function $u(e){var t=e.__experimentalFeatures,n=Object(he.a)(e,["__experimentalFeatures"]),r=Object(u.useRef)(),o=qu(r);t||(o=void 0);var c=Object(u.useMemo)((function(){return{__experimentalFeatures:t,blockDropTarget:o}}),[t,o]);return Object(u.createElement)(h.__experimentalTreeGrid,{className:"block-editor-block-navigation-tree","aria-label":Object(g.__)("Block navigation structure"),ref:r},Object(u.createElement)(Lr.Provider,{value:c},Object(u.createElement)(Hu,n)))}var Yu=Object(p.compose)(Object(v.withSelect)((function(e){var t=e("core/block-editor"),n=t.getSelectedBlockClientId,r=t.getBlockHierarchyRootClientId,o=t.__unstableGetBlockWithBlockTree,c=t.__unstableGetBlockTree,i=n();return{rootBlocks:c(),rootBlock:i?o(r(i)):null,selectedBlockClientId:i}})),Object(v.withDispatch)((function(e,t){var n=t.onSelect,r=void 0===n?f.noop:n;return{selectBlock:function(t){e("core/block-editor").selectBlock(t),r(t)}}})))((function(e){var t=e.rootBlock,n=e.rootBlocks,r=e.selectedBlockClientId,o=e.selectBlock,c=e.__experimentalFeatures;if(!n||0===n.length)return null;var i=t&&(t.clientId!==r||t.innerBlocks&&0!==t.innerBlocks.length);return Object(u.createElement)("div",{className:"block-editor-block-navigation__container"},Object(u.createElement)("p",{className:"block-editor-block-navigation__label"},Object(g.__)("List view")),i&&Object(u.createElement)($u,{blocks:[t],selectedBlockClientId:r,selectBlock:o,__experimentalFeatures:c,showNestedBlocks:!0}),!i&&Object(u.createElement)($u,{blocks:n,selectedBlockClientId:r,selectBlock:o,__experimentalFeatures:c}))})),Xu=Object(u.createElement)(h.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24"},Object(u.createElement)(h.Path,{d:"M13.8 5.2H3v1.5h10.8V5.2zm-3.6 12v1.5H21v-1.5H10.2zm7.2-6H6.6v1.5h10.8v-1.5z"}));function Qu(e){var t=e.isEnabled,n=e.onToggle,r=e.isOpen,o=e.innerRef,c=Object(he.a)(e,["isEnabled","onToggle","isOpen","innerRef"]);Object(a.useShortcut)("core/edit-post/toggle-block-navigation",Object(u.useCallback)(n,[n]),{bindGlobal:!0,isDisabled:!t});var i=Object(v.useSelect)((function(e){return e("core/keyboard-shortcuts").getShortcutRepresentation("core/edit-post/toggle-block-navigation")}),[]);return Object(u.createElement)(h.Button,Object(l.a)({},c,{ref:o,icon:Xu,"aria-expanded":r,"aria-haspopup":"true",onClick:t?n:void 0,label:Object(g.__)("Outline"),className:"block-editor-block-navigation",shortcut:i,"aria-disabled":!t}))}var Zu=Object(u.forwardRef)((function(e,t){var n=e.isDisabled,r=e.__experimentalFeatures,o=Object(he.a)(e,["isDisabled","__experimentalFeatures"]),c=Object(v.useSelect)((function(e){return!!e("core/block-editor").getBlockCount()}),[])&&!n;return Object(u.createElement)(h.Dropdown,{contentClassName:"block-editor-block-navigation__popover",position:"bottom right",renderToggle:function(e){var n=e.isOpen,r=e.onToggle;return Object(u.createElement)(Qu,Object(l.a)({},o,{innerRef:t,isOpen:n,onToggle:r,isEnabled:c}))},renderContent:function(e){var t=e.onClose;return Object(u.createElement)(Yu,{onSelect:t,__experimentalFeatures:r})}})})),Ju=n(131),ed=[st.rawShortcut.primary("z"),st.rawShortcut.primaryShift("z"),st.rawShortcut.primary("y")],td=Object(u.createElement)(h.KeyboardShortcuts,{bindGlobal:!0,shortcuts:Object(f.fromPairs)(ed.map((function(e){return[e,function(e){return e.preventDefault()}]})))}),nd=function(){return td};function rd(e){return e.filter((function(e){var t=e.type;return/^image\/(?:jpe?g|png|gif)$/.test(t)})).map((function(e){return'')})).join("")}var od={position:"bottom right",isAlternate:!0},cd=function(){return Object(u.createElement)("div",{className:"block-editor-format-toolbar"},Object(u.createElement)(h.ToolbarGroup,null,["bold","italic","link","text-color"].map((function(e){return Object(u.createElement)(h.Slot,{name:"RichText.ToolbarControls.".concat(e),key:e})})),Object(u.createElement)(h.Slot,{name:"RichText.ToolbarControls"},(function(e){return 0!==e.length&&Object(u.createElement)(h.ToolbarItem,null,(function(t){return Object(u.createElement)(h.DropdownMenu,{icon:xr.a,label:Object(g.__)("More rich text controls"),toggleProps:t,controls:Object(f.orderBy)(e.map((function(e){return Object(re.a)(e,1)[0].props})),"title"),popoverProps:od})}))}))))},id=function(e){var t=e.inline,n=e.anchorRef;return t?Object(u.createElement)(h.Popover,{noArrow:!0,position:"top center",focusOnMount:!1,anchorRef:n,className:"block-editor-rich-text__inline-format-toolbar"},Object(u.createElement)(cd,null)):Object(u.createElement)(mr,null,Object(u.createElement)(cd,null))};function ad(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ld(e){for(var t=1;t0,Pe=a,Te=s;Array.isArray(a)&&(Pe=c.children.toHTML(a),Te=function(e){return s(c.children.fromDOM(Object(i.__unstableCreateElement)(document,e).childNodes))});var Ne=Object(u.useCallback)((function(e,t){Se(se,x,e,t)}),[se,x]),De=Object(u.useCallback)((function(e){var t=e.value,n=e.isReverse;S&&S(!n),C&&Object(i.isEmpty)(t)&&n&&C(!n)}),[S,C]),Re=Object(u.useCallback)((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(h&&w){var n=[],r=Object(i.split)(e),o=Object(re.a)(r,2),c=o[0],a=o[1],l=t.length>0,s=-1;l&&Object(i.isEmpty)(c)||(n.push(w(Object(i.toHTMLString)({value:c,multilineTag:Ie}))),s+=1),l?(n.push.apply(n,Object(ne.a)(t)),s+=t.length):B&&n.push(B()),(l||B)&&Object(i.isEmpty)(a)||n.push(w(Object(i.toHTMLString)({value:a,multilineTag:Ie})));var u=l?s:1,d=l?-1:null;h(n,u,d)}}),[h,w,Ie,B]),Ae=Object(u.useCallback)((function(e){var t=e.value,n=e.onChange,r=e.shiftKey,o=h&&w;if(h){var a=Object(c.getBlockTransforms)("from").filter((function(e){return"enter"===e.type})),l=Object(c.findTransform)(a,(function(e){return e.regExp.test(t.text)}));l&&(h([l.transform({content:t.text})]),we())}if(f)r?R||n(Object(i.insert)(t,"\n")):o&&Object(i.__unstableIsEmptyLine)(t)?Re(t):n(Object(i.__unstableInsertLineSeparator)(t));else{var s=t.text,u=t.start,d=t.end,b=I&&u===d&&d===s.length;r||!o&&!b?R||n(Object(i.insert)(t,"\n")):!o&&b?I():o&&Re(t)}}),[h,w,we,f,Re,I]),Me=Object(u.useCallback)((function(e){var t=e.value,n=e.onChange,r=e.html,a=e.plainText,l=e.files,s=e.activeFormats;if(T)n(Object(i.insert)(t,Object(i.create)({text:a})));else{if(l&&l.length&&!r){var u=Object(c.pasteHandler)({HTML:rd(l),mode:"BLOCKS",tagName:o,preserveWhiteSpace:P});return window.console.log("Received items:\n\n",l),void(h&&Object(i.isEmpty)(t)?h(u):Re(t,u))}var d,b=h&&w?"AUTO":"INLINE";"AUTO"===b&&Object(i.isEmpty)(t)&&(d=a,Object(Ju.regexp)(".*").test(d))&&(b="BLOCKS"),N&&Object(i.isEmpty)(t)&&Object(zl.isURL)(a.trim())&&(b="BLOCKS");var p=Object(c.pasteHandler)({HTML:r,plainText:a,mode:b,tagName:o,preserveWhiteSpace:P});if("string"==typeof p){var m=Object(i.create)({html:p});if(s.length)for(var v=m.formats.length;v--;)m.formats[v]=[].concat(Object(ne.a)(s),Object(ne.a)(m.formats[v]||[]));f&&(m=Object(i.replace)(m,/\n+/g,i.__UNSTABLE_LINE_SEPARATOR)),n(Object(i.insert)(t,m))}else p.length>0&&(h&&Object(i.isEmpty)(t)?h(p,p.length-1,-1):Re(t,p))}}),[o,h,w,Re,N,f,P,T]),Le=Object(u.useCallback)((function(e,t){if(h){var n=e.start,r=e.text;if(" "===r.slice(n-1,n)){var o=r.slice(0,n).trim(),a=Object(c.getBlockTransforms)("from").filter((function(e){return"prefix"===e.type})),l=Object(c.findTransform)(a,(function(e){var t=e.prefix;return o===t}));if(l){var s=t(Object(i.slice)(e,n,r.length)),u=l.transform(s);h([u]),we()}}}}),[h,we]),Fe=Object(u.createElement)(i.__experimentalRichText,{clientId:se,identifier:x,ref:ae,value:Pe,onChange:Te,selectionStart:pe,selectionEnd:me,onSelectionChange:Ne,tagName:o,placeholder:j,allowedFormats:Be,withoutInteractiveFormatting:E,onEnter:Ae,onDelete:De,onPaste:Me,__unstableIsSelected:ve,__unstableInputRule:Le,__unstableMultilineTag:Ie,__unstableIsCaretWithinFormattedText:fe,__unstableOnEnterFormattedText:Ee,__unstableOnExitFormattedText:Ce,__unstableOnCreateUndoLevel:_e,__unstableMarkAutomaticChange:we,__unstableDidAutomaticChange:Oe,__unstableUndo:je,__unstableDisableFormats:D,preserveWhiteSpace:P,disabled:ge,unstableOnFocus:A,__unstableAllowPrefixTransformations:M,__unstableMultilineRootTag:L,onCaretVerticalPositionChange:ue,blockIsSelected:void 0!==d?d:de,shouldBlurOnUnmount:ke,__unstableMobileNoFocusOnMount:F,deleteEnter:V,placeholderTextColor:H,textAlign:U,selectionColor:G,tagsToEliminate:K,rootTagsToEliminate:W,disableEditingMenu:q,fontSize:$,fontFamily:Y,fontWeight:X,fontStyle:Q,minWidth:Z,maxWidth:J,onBlur:ee,setRef:te,id:oe.id,style:oe.style},(function(e){var t=e.isSelected,n=e.value,o=e.onChange,c=e.onFocus,i=e.editableProps,a=e.editableTagName;return Object(u.createElement)(u.Fragment,null,r&&r({value:n,onChange:o,onFocus:c}),t&&xe&&Object(u.createElement)(id,{inline:m,anchorRef:ae.current}),t&&Object(u.createElement)(nd,null),Object(u.createElement)(Xn,{onReplace:h,completers:g,record:n,onChange:o,isSelected:t},(function(e){var t=e.listBoxId,n=e.activeId,r=e.onKeyDown;return Object(u.createElement)(a,Object(l.a)({},i,oe,{style:oe.style?ld(ld({},oe.style),i.style):i.style,className:b()("block-editor-rich-text__editable",oe.className,i.className,{"keep-placeholder-on-focus":k}),"aria-autocomplete":t?"list":void 0,"aria-owns":t,"aria-activedescendant":n,onKeyDown:function(e){r(e),i.onKeyDown(e)}}))})))}));return O?(to()("wp.blockEditor.RichText wrapperClassName prop",{alternative:"className prop or create your own wrapper div"}),Object(u.createElement)("div",{className:b()("block-editor-rich-text",O)},Fe)):Fe}));dd.Content=function(e){var t=e.value,n=e.tagName,r=e.multiline,o=Object(he.a)(e,["value","tagName","multiline"]);Array.isArray(t)&&(t=c.children.toHTML(t));var i=sd(r);!t&&i&&(t="<".concat(i,">"));var a=Object(u.createElement)(u.RawHTML,null,t);return n?Object(u.createElement)(n,Object(f.omit)(o,["format"]),a):a},dd.isEmpty=function(e){return!e||0===e.length},dd.Content.defaultProps={format:"string",value:""};var bd=dd;function fd(e){var t=e.value,n=e.onChange;return Object(u.createElement)(Mu,null,Object(u.createElement)(bd,{value:t,onChange:n,placeholder:Object(g.__)("Navigation item"),keepPlaceholderOnFocus:!0,withoutInteractiveFormatting:!0,allowedFormats:["core/bold","core/italic","core/image","core/strikethrough"]}))}var pd=n(319);var md=function(e){var t=e.icon,n=void 0===t?pd.a:t,r=e.label,o=void 0===r?Object(g.__)("Choose variation"):r,c=e.instructions,i=void 0===c?Object(g.__)("Select a variation to start with."):c,a=e.variations,l=e.onSelect,s=e.allowSkip,d=b()("block-editor-block-variation-picker",{"has-many-variations":a.length>4});return Object(u.createElement)(h.Placeholder,{icon:n,label:o,instructions:i,className:d},Object(u.createElement)("ul",{className:"block-editor-block-variation-picker__variations",role:"list","aria-label":Object(g.__)("Block variations")},a.map((function(e){return Object(u.createElement)("li",{key:e.name},Object(u.createElement)(h.Button,{isSecondary:!0,icon:e.icon,iconSize:48,onClick:function(){return l(e)},className:"block-editor-block-variation-picker__variation",label:e.description||e.title}),Object(u.createElement)("span",{className:"block-editor-block-variation-picker__variation-label",role:"presentation"},e.title))}))),s&&Object(u.createElement)("div",{className:"block-editor-block-variation-picker__skip"},Object(u.createElement)(h.Button,{isLink:!0,onClick:function(){return l()}},Object(g.__)("Skip"))))},vd=Object(u.createElement)(h.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(u.createElement)(h.Path,{d:"M15 4H9v11h6V4zM4 18.5V20h16v-1.5H4z"})),Od=Object(u.createElement)(h.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(u.createElement)(h.Path,{d:"M20 11h-5V4H9v7H4v1.5h5V20h6v-7.5h5z"}));function gd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function hd(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Object(u.useRef)(),r=Object(z.b)(),o=r.clientId,c=Object(p.useViewportMatch)("medium","<"),i=Object(v.useSelect)((function(e){var t=e("core/block-editor"),n=t.getBlockName,r=t.isBlockSelected,i=t.hasSelectedInnerBlock,a=(0,t.isNavigationMode)()||c;return"core/template"!==n(o)&&!r(o)&&!i(o,!0)&&a}),[o,c]),a=e.ref||n,s=t.value&&t.onChange?Kd:Gd;return Ud(Ud({},e),{},{ref:a,className:b()(e.className,"block-editor-block-list__layout",{"has-overlay":i}),children:Object(u.createElement)(s,Object(l.a)({},t,{clientId:o,wrapperRef:a}))})}Wd.DefaultBlockAppender=Ld,Wd.ButtonBlockAppender=Md,Wd.Content=Object(c.withBlockContentContext)((function(e){var t=e.BlockContent;return Object(u.createElement)(t,null)}));var $d=Wd,Yd=n(215);function Xd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Qd(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:"",n=this.props,r=n.__experimentalFetchLinkSuggestions,o=n.__experimentalHandleURLSuggestions;if(r){var c=!(t&&t.length);if(c||!(t.length<2||!o&&Object(zl.isURL)(t))){this.isUpdatingSuggestions=!0,this.setState({selectedSuggestion:null,loading:!0});var i=r(t,{isInitialSuggestions:c});i.then((function(t){e.suggestionsRequest===i&&(e.setState({suggestions:t,loading:!1,showSuggestions:!!t.length}),t.length?e.props.debouncedSpeak(Object(g.sprintf)(Object(g._n)("%d result found, use up and down arrow keys to navigate.","%d results found, use up and down arrow keys to navigate.",t.length),t.length),"assertive"):e.props.debouncedSpeak(Object(g.__)("No results."),"assertive"),e.isUpdatingSuggestions=!1)})).catch((function(){e.suggestionsRequest===i&&(e.setState({loading:!1}),e.isUpdatingSuggestions=!1)})),this.suggestionsRequest=i}else this.setState({showSuggestions:!1,selectedSuggestion:null,loading:!1})}}},{key:"onChange",value:function(e){var t=e.target.value;this.props.onChange(t),this.props.disableSuggestions||this.updateSuggestions(t.trim())}},{key:"onFocus",value:function(){var e=this.state.suggestions,t=this.props,n=t.disableSuggestions,r=t.value;!r||n||this.isUpdatingSuggestions||e&&e.length||this.updateSuggestions(r.trim())}},{key:"onKeyDown",value:function(e){var t=this.state,n=t.showSuggestions,r=t.selectedSuggestion,o=t.suggestions,c=t.loading;if(n&&o.length&&!c){var i=this.state.suggestions[this.state.selectedSuggestion];switch(e.keyCode){case st.UP:e.stopPropagation(),e.preventDefault();var a=r?r-1:o.length-1;this.setState({selectedSuggestion:a});break;case st.DOWN:e.stopPropagation(),e.preventDefault();var l=null===r||r===o.length-1?0:r+1;this.setState({selectedSuggestion:l});break;case st.TAB:null!==this.state.selectedSuggestion&&(this.selectLink(i),this.props.speak(Object(g.__)("Link selected.")));break;case st.ENTER:null!==this.state.selectedSuggestion&&(e.stopPropagation(),this.selectLink(i))}}else switch(e.keyCode){case st.UP:0!==e.target.selectionStart&&(e.stopPropagation(),e.preventDefault(),e.target.setSelectionRange(0,0));break;case st.DOWN:this.props.value.length!==e.target.selectionStart&&(e.stopPropagation(),e.preventDefault(),e.target.setSelectionRange(this.props.value.length,this.props.value.length))}}},{key:"selectLink",value:function(e){this.props.onChange(e.url,e),this.setState({selectedSuggestion:null,showSuggestions:!1})}},{key:"handleOnClick",value:function(e){this.selectLink(e),this.inputRef.current.focus()}},{key:"render",value:function(){return Object(u.createElement)(u.Fragment,null,this.renderControl(),this.renderSuggestions())}},{key:"renderControl",value:function(){var e=this.props,t=e.label,n=e.className,r=e.isFullWidth,o=e.instanceId,c=e.placeholder,i=void 0===c?Object(g.__)("Paste URL or type to search"):c,a=e.__experimentalRenderControl,l=e.value,s=void 0===l?"":l,d=e.autoFocus,f=void 0===d||d,p=this.state,m=p.loading,v=p.showSuggestions,O=p.selectedSuggestion,j=p.suggestionsListboxId,k=p.suggestionOptionIdPrefix,y={id:"url-input-control-".concat(o),label:t,className:b()("block-editor-url-input",n,{"is-full-width":r})},_={value:s,required:!0,autoFocus:f,className:"block-editor-url-input__input",type:"text",onChange:this.onChange,onFocus:this.onFocus,onInput:rb,placeholder:i,onKeyDown:this.onKeyDown,role:"combobox","aria-label":Object(g.__)("URL"),"aria-expanded":v,"aria-autocomplete":"list","aria-owns":j,"aria-activedescendant":null!==O?"".concat(k,"-").concat(O):void 0,ref:this.inputRef};return a?a(y,_,m):Object(u.createElement)(h.BaseControl,y,Object(u.createElement)("input",_),m&&Object(u.createElement)(h.Spinner,null))}},{key:"renderSuggestions",value:function(){var e=this,t=this.props,n=t.className,r=t.__experimentalRenderSuggestions,o=t.value,c=void 0===o?"":o,i=t.__experimentalShowInitialSuggestions,a=void 0!==i&&i,s=this.state,d=s.showSuggestions,p=s.suggestions,m=s.selectedSuggestion,v=s.suggestionsListboxId,O=s.suggestionOptionIdPrefix,g=s.loading,j={id:v,ref:this.autocompleteRef,role:"listbox"},k=function(t,n){return{role:"option",tabIndex:"-1",id:"".concat(O,"-").concat(n),ref:e.bindSuggestionNode(n),"aria-selected":n===m}};return Object(f.isFunction)(r)&&d&&p.length?r({suggestions:p,selectedSuggestion:m,suggestionsListProps:j,buildSuggestionItemProps:k,isLoading:g,handleSuggestionClick:this.handleOnClick,isInitialSuggestions:a&&!(c&&c.length)}):!Object(f.isFunction)(r)&&d&&p.length?Object(u.createElement)(h.Popover,{position:"bottom",noArrow:!0,focusOnMount:!1},Object(u.createElement)("div",Object(l.a)({},j,{className:b()("block-editor-url-input__suggestions","".concat(n,"__suggestions"))}),p.map((function(t,n){return Object(u.createElement)(h.Button,Object(l.a)({},k(0,n),{key:t.id,className:b()("block-editor-url-input__suggestion",{"is-selected":n===m}),onClick:function(){return e.handleOnClick(t)}}),t.title)})))):null}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.value,r=e.instanceId,o=e.disableSuggestions,c=e.__experimentalShowInitialSuggestions,i=void 0!==c&&c,a=t.showSuggestions,l=n&&n.length;return i||l||(a=!1),!0===o&&(a=!1),{showSuggestions:a,suggestionsListboxId:"block-editor-url-input-suggestions-".concat(r),suggestionOptionIdPrefix:"block-editor-url-input-suggestion-".concat(r)}}}]),n}(u.Component),cb=Object(p.compose)(p.withSafeTimeout,h.withSpokenMessages,p.withInstanceId,Object(v.withSelect)((function(e,t){if(!Object(f.isFunction)(t.__experimentalFetchLinkSuggestions))return{__experimentalFetchLinkSuggestions:(0,e("core/block-editor").getSettings)().__experimentalFetchLinkSuggestions}})))(ob),ib=Object(u.createElement)(j.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(u.createElement)(j.Path,{d:"M10 1c-5 0-9 4-9 9s4 9 9 9 9-4 9-9-4-9-9-9zm0 16c-3.9 0-7-3.1-7-7s3.1-7 7-7 7 3.1 7 7-3.1 7-7 7zm1-11H9v3H6v2h3v3h2v-3h3V9h-3V6zM10 1c-5 0-9 4-9 9s4 9 9 9 9-4 9-9-4-9-9-9zm0 16c-3.9 0-7-3.1-7-7s3.1-7 7-7 7 3.1 7 7-3.1 7-7 7zm1-11H9v3H6v2h3v3h2v-3h3V9h-3V6z"})),ab=function(e){var t,n=e.searchTerm,r=e.onClick,o=e.itemProps,c=e.isSelected,i=e.buttonText;return n?(t=i?Object(f.isFunction)(i)?i(n):i:Object(u.createInterpolateElement)(Object(g.sprintf)(Object(g.__)("Create: %s"),n),{mark:Object(u.createElement)("mark",null)}),Object(u.createElement)(h.Button,Object(l.a)({},o,{className:b()("block-editor-link-control__search-create block-editor-link-control__search-item",{"is-selected":c}),onClick:r}),Object(u.createElement)(so.a,{className:"block-editor-link-control__search-item-icon",icon:ib}),Object(u.createElement)("span",{className:"block-editor-link-control__search-item-header"},Object(u.createElement)("span",{className:"block-editor-link-control__search-item-title"},t)))):null},lb=Object(u.createElement)(j.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(u.createElement)(j.Path,{d:"M9 0C4.03 0 0 4.03 0 9s4.03 9 9 9 9-4.03 9-9-4.03-9-9-9zM1.11 9.68h2.51c.04.91.167 1.814.38 2.7H1.84c-.403-.85-.65-1.764-.73-2.7zm8.57-5.4V1.19c.964.366 1.756 1.08 2.22 2 .205.347.386.708.54 1.08l-2.76.01zm3.22 1.35c.232.883.37 1.788.41 2.7H9.68v-2.7h3.22zM8.32 1.19v3.09H5.56c.154-.372.335-.733.54-1.08.462-.924 1.255-1.64 2.22-2.01zm0 4.44v2.7H4.7c.04-.912.178-1.817.41-2.7h3.21zm-4.7 2.69H1.11c.08-.936.327-1.85.73-2.7H4c-.213.886-.34 1.79-.38 2.7zM4.7 9.68h3.62v2.7H5.11c-.232-.883-.37-1.788-.41-2.7zm3.63 4v3.09c-.964-.366-1.756-1.08-2.22-2-.205-.347-.386-.708-.54-1.08l2.76-.01zm1.35 3.09v-3.04h2.76c-.154.372-.335.733-.54 1.08-.464.92-1.256 1.634-2.22 2v-.04zm0-4.44v-2.7h3.62c-.04.912-.178 1.817-.41 2.7H9.68zm4.71-2.7h2.51c-.08.936-.327 1.85-.73 2.7H14c.21-.87.337-1.757.38-2.65l.01-.05zm0-1.35c-.046-.894-.176-1.78-.39-2.65h2.16c.403.85.65 1.764.73 2.7l-2.5-.05zm1-4H13.6c-.324-.91-.793-1.76-1.39-2.52 1.244.56 2.325 1.426 3.14 2.52h.04zm-9.6-2.52c-.597.76-1.066 1.61-1.39 2.52H2.65c.815-1.094 1.896-1.96 3.14-2.52zm-3.15 12H4.4c.324.91.793 1.76 1.39 2.52-1.248-.567-2.33-1.445-3.14-2.55l-.01.03zm9.56 2.52c.597-.76 1.066-1.61 1.39-2.52h1.76c-.82 1.08-1.9 1.933-3.14 2.48l-.01.04z"})),sb=function(e){var t=e.itemProps,n=e.suggestion,r=e.isSelected,o=void 0!==r&&r,c=e.onClick,i=e.isURL,a=void 0!==i&&i,s=e.searchTerm,d=void 0===s?"":s,f=e.shouldShowType,p=void 0!==f&&f;return Object(u.createElement)(h.Button,Object(l.a)({},t,{onClick:c,className:b()("block-editor-link-control__search-item",{"is-selected":o,"is-url":a,"is-entity":!a})}),a&&Object(u.createElement)(so.a,{className:"block-editor-link-control__search-item-icon",icon:lb}),Object(u.createElement)("span",{className:"block-editor-link-control__search-item-header"},Object(u.createElement)("span",{className:"block-editor-link-control__search-item-title"},Object(u.createElement)(h.TextHighlight,{text:n.title,highlight:d})),Object(u.createElement)("span",{"aria-hidden":!a,className:"block-editor-link-control__search-item-info"},!a&&(Object(zl.filterURLForDisplay)(Object(zl.safeDecodeURI)(n.url))||""),a&&Object(g.__)("Press ENTER to add this link"))),p&&n.type&&Object(u.createElement)("span",{className:"block-editor-link-control__search-item-type"},"post_tag"===n.type?"tag":n.type))};function ub(e){var t=e.instanceId,n=e.withCreateSuggestion,r=e.currentInputValue,o=e.handleSuggestionClick,c=e.suggestionsListProps,i=e.buildSuggestionItemProps,a=e.suggestions,s=e.selectedSuggestion,d=e.isLoading,f=e.isInitialSuggestions,p=e.createSuggestionButtonText,m=e.suggestionsQuery,v=b()("block-editor-link-control__search-results",{"is-loading":d}),O=["url","mailto","tel","internal"],j=1===a.length&&O.includes(a[0].type.toLowerCase()),k=n&&!j&&!f,y=!(null==m?void 0:m.type),_="block-editor-link-control-search-results-label-".concat(t),E=f?Object(g.__)("Recently updated"):Object(g.sprintf)(Object(g.__)('Search results for "%s"'),r),C=Object(u.createElement)(f?u.Fragment:h.VisuallyHidden,{},Object(u.createElement)("span",{className:"block-editor-link-control__search-results-label",id:_},E));return Object(u.createElement)("div",{className:"block-editor-link-control__search-results-wrapper"},C,Object(u.createElement)("div",Object(l.a)({},c,{className:v,"aria-labelledby":_}),a.map((function(e,t){return k&&"__CREATE__"===e.type?Object(u.createElement)(ab,{searchTerm:r,buttonText:p,onClick:function(){return o(e)},key:e.type,itemProps:i(e,t),isSelected:t===s}):"__CREATE__"===e.type?null:Object(u.createElement)(sb,{key:"".concat(e.id,"-").concat(e.type),itemProps:i(e,t),suggestion:e,index:t,onClick:function(){o(e)},isSelected:t===s,isURL:O.includes(e.type.toLowerCase()),searchTerm:r,shouldShowType:y})}))))}function db(e){var t=Object(f.startsWith)(e,"#");return Object(zl.isURL)(e)||e&&e.includes("www.")||t}function bb(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function fb(e){for(var t=1;t=1)&&y(gb(gb({},Object(f.omit)(c,"id","url")),n),n);case 13:case"end":return e.stop()}}),e,null,[[2,9]])})));return function(t){return e.apply(this,arguments)}}();return Object(u.createElement)("form",{onSubmit:function(e){e.preventDefault(),K(U||{url:n})}},Object(u.createElement)(cb,{className:a,value:n,onChange:function(e,t){j(e),G(t)},placeholder:null!=s?s:Object(g.__)("Search or type url"),__experimentalRenderSuggestions:E?function(e){return S(gb(gb({},e),{},{instanceId:V,withCreateSuggestion:b,currentInputValue:n,createSuggestionButtonText:M,suggestionsQuery:D,handleSuggestionClick:function(t){e.handleSuggestionClick&&e.handleSuggestionClick(t),K(t)}}))}:null,__experimentalFetchLinkSuggestions:F,__experimentalHandleURLSuggestions:!0,__experimentalShowInitialSuggestions:T,ref:t}),r)})),kb=jb,yb=Object(h.createSlotFill)("BlockEditorLinkControlViewer"),_b=yb.Slot,Eb=yb.Fill;function Cb(e){var t=e.value,n=e.onEditClick,r=t&&Object(zl.filterURLForDisplay)(Object(zl.safeDecodeURI)(t.url))||"";return Object(u.createElement)("div",{"aria-label":Object(g.__)("Currently selected"),"aria-selected":"true",className:b()("block-editor-link-control__search-item",{"is-current":!0})},Object(u.createElement)("span",{className:"block-editor-link-control__search-item-header"},Object(u.createElement)(h.ExternalLink,{className:"block-editor-link-control__search-item-title",href:t.url},t&&t.title||r),t&&t.title&&Object(u.createElement)("span",{className:"block-editor-link-control__search-item-info"},r)),Object(u.createElement)(h.Button,{isSecondary:!0,onClick:function(){return n()},className:"block-editor-link-control__search-item-action"},Object(g.__)("Edit")),Object(u.createElement)(_b,{fillProps:t}))}var Sb=function(e){var t=!1;return{promise:new Promise((function(n,r){e.then((function(e){return t?r({isCanceled:!0}):n(e)}),(function(e){return r(t?{isCanceled:!0}:e)}))})),cancel:function(){t=!0}}};function wb(e){var t=e.searchInputPlaceholder,n=e.value,r=e.settings,o=e.onChange,c=void 0===o?f.noop:o,i=e.noDirectEntry,a=void 0!==i&&i,l=e.showSuggestions,s=void 0===l||l,d=e.showInitialSuggestions,b=e.forceIsEditingLink,p=e.createSuggestion,m=e.withCreateSuggestion,v=e.inputValue,O=void 0===v?"":v,j=e.suggestionsQuery,k=void 0===j?{}:j,y=e.noURLSuggestion,_=void 0!==y&&y,E=e.createSuggestionButtonText;void 0===m&&p&&(m=!0);var C=Object(u.useRef)(),S=Object(u.useState)(n&&n.url||""),w=Object(re.a)(S,2),I=w[0],B=w[1],x=O||I,P=Object(u.useState)(void 0!==b?b:!n||!n.url),T=Object(re.a)(P,2),N=T[0],D=T[1],R=Object(u.useRef)(!1);Object(u.useEffect)((function(){void 0!==b&&b!==N&&D(b)}),[b]),Object(u.useEffect)((function(){R.current&&C.current&&!C.current.contains(C.current.ownerDocument.activeElement)&&(kr.focus.focusable.find(C.current)[0]||C.current).focus();R.current=!1}),[N]);var A=function(e){var t=Object(u.useRef)(),n=Object(u.useState)(!1),r=Object(re.a)(n,2),o=r[0],c=r[1],i=Object(u.useState)(null),a=Object(re.a)(i,2),l=a[0],s=a[1],d=function(){var n=Object(gr.a)(Or.a.mark((function n(r){return Or.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return c(!0),s(null),n.prev=2,t.current=Sb(Promise.resolve(e(r))),n.next=6,t.current.promise;case 6:return n.abrupt("return",n.sent);case 9:if(n.prev=9,n.t0=n.catch(2),!n.t0||!n.t0.isCanceled){n.next=13;break}return n.abrupt("return");case 13:throw s(n.t0.message||Object(g.__)("An unknown error occurred during creation. Please try again.")),n.t0;case 15:return n.prev=15,c(!1),n.finish(15);case 18:case"end":return n.stop()}}),n,null,[[2,9,15,18]])})));return function(e){return n.apply(this,arguments)}}();return Object(u.useEffect)((function(){return function(){t.current&&t.current.cancel()}}),[]),{createPage:d,isCreatingPage:o,errorMessage:l}}(p),M=A.createPage,L=A.isCreatingPage,F=A.errorMessage;return Object(u.createElement)("div",{tabIndex:-1,ref:C,className:"block-editor-link-control"},L&&Object(u.createElement)("div",{className:"block-editor-link-control__loading"},Object(u.createElement)(h.Spinner,null)," ",Object(g.__)("Creating"),"…"),(N||!n)&&!L&&Object(u.createElement)(u.Fragment,null,Object(u.createElement)("div",{className:"block-editor-link-control__search-input-wrapper"},Object(u.createElement)(kb,{currentLink:n,className:"block-editor-link-control__search-input",placeholder:t,value:x,withCreateSuggestion:m,onCreateSuggestion:M,onChange:B,onSelect:function(e){var t;c(e),R.current=!!(null===(t=C.current)||void 0===t?void 0:t.contains(C.current.ownerDocument.activeElement)),D(!1)},showInitialSuggestions:d,allowDirectEntry:!a,showSuggestions:s,suggestionsQuery:k,withURLSuggestion:!_,createSuggestionButtonText:E},Object(u.createElement)("div",{className:"block-editor-link-control__search-actions"},Object(u.createElement)(h.Button,{type:"submit",label:Object(g.__)("Submit"),icon:Yd.a,className:"block-editor-link-control__search-submit"})))),F&&Object(u.createElement)(h.Notice,{className:"block-editor-link-control__search-error",status:"error",isDismissible:!1},F)),n&&!N&&!L&&Object(u.createElement)(Cb,{value:n,onEditClick:function(){return D(!0)}}),Object(u.createElement)(Jd,{value:n,settings:r,onChange:c}))}wb.ViewerFill=Eb;var Ib=wb,Bb=n(320),xb=n(216),Pb=Object(h.withFilters)("editor.MediaUpload")((function(){return null}));var Tb=function(e){var t=e.fallback,n=void 0===t?null:t,r=e.children;return Object(v.useSelect)((function(e){return!!(0,e("core/block-editor").getSettings)().mediaUpload}),[])?r:n},Nb=Object(p.compose)([Object(v.withDispatch)((function(e){var t=e("core/notices");return{createNotice:t.createNotice,removeNotice:t.removeNotice}})),Object(h.withFilters)("editor.MediaReplaceFlow")])((function(e){var t=e.mediaURL,n=e.mediaId,r=e.allowedTypes,o=e.accept,c=e.onSelect,i=e.onSelectURL,a=e.onFilesUpload,l=void 0===a?f.noop:a,s=e.name,d=void 0===s?Object(g.__)("Replace"):s,b=e.createNotice,p=e.removeNotice,m=Object(u.useState)(t),O=Object(re.a)(m,2),j=O[0],k=O[1],y=Object(v.useSelect)((function(e){return e("core/block-editor").getSettings().mediaUpload}),[]),_=Object(u.createRef)(),E=Object(f.uniqueId)("block-editor/media-replace-flow/error-notice/"),C=function(e){var t=document.createElement("div");t.innerHTML=Object(u.renderToString)(e);var n=t.textContent||t.innerText||"";setTimeout((function(){b("error",n,{speak:!0,id:E,isDismissible:!0})}),1e3)},S=function(e){c(e),k(e.url),Object(Le.speak)(Object(g.__)("The media file has been replaced")),p(E)},w=function(e){e.keyCode===st.DOWN&&(e.preventDefault(),e.stopPropagation(),e.target.click())};return Object(u.createElement)(h.Dropdown,{popoverProps:{isAlternate:!0},contentClassName:"block-editor-media-replace-flow__options",renderToggle:function(e){var t=e.isOpen,n=e.onToggle;return Object(u.createElement)(h.ToolbarGroup,{className:"media-replace-flow"},Object(u.createElement)(h.ToolbarButton,{ref:_,"aria-expanded":t,"aria-haspopup":"true",onClick:n,onKeyDown:w},d))},renderContent:function(e){e.onClose;return Object(u.createElement)(u.Fragment,null,Object(u.createElement)(h.NavigableMenu,{className:"block-editor-media-replace-flow__media-upload-menu"},Object(u.createElement)(Pb,{value:n,onSelect:function(e){return S(e)},allowedTypes:r,render:function(e){var t=e.open;return Object(u.createElement)(h.MenuItem,{icon:Bb.a,onClick:t},Object(g.__)("Open Media Library"))}}),Object(u.createElement)(Tb,null,Object(u.createElement)(h.FormFileUpload,{onChange:function(e){!function(e){var t=e.target.files;l(t);y({allowedTypes:r,filesList:t,onFileChange:function(e){var t=Object(re.a)(e,1)[0];S(t)},onError:C})}(e)},accept:o,render:function(e){var t=e.openFileDialog;return Object(u.createElement)(h.MenuItem,{icon:xb.a,onClick:function(){t()}},Object(g.__)("Upload"))}}))),i&&Object(u.createElement)("form",{className:"block-editor-media-flow__url-input",onKeyDown:function(e){e.stopPropagation()},onKeyPress:function(e){e.stopPropagation()}},Object(u.createElement)("span",{className:"block-editor-media-replace-flow__image-url-label"},Object(g.__)("Current media URL:")),Object(u.createElement)(Ib,{value:{url:j},settings:[],showSuggestions:!1,onChange:function(e){var t=e.url;k(t),i(t),_.current.focus()}})))}})})),Db=n(274);function Rb(e){var t=e.url,n=e.urlLabel,r=e.className,o=b()(r,"block-editor-url-popover__link-viewer-url");return t?Object(u.createElement)(h.ExternalLink,{className:o,href:t},n||Object(zl.filterURLForDisplay)(Object(zl.safeDecodeURI)(t))):Object(u.createElement)("span",{className:o})}function Ab(e){var t=e.additionalControls,n=e.children,r=e.renderSettings,o=e.position,c=void 0===o?"bottom center":o,i=e.focusOnMount,a=void 0===i?"firstElement":i,s=Object(he.a)(e,["additionalControls","children","renderSettings","position","focusOnMount"]),d=Object(u.useState)(!1),b=Object(re.a)(d,2),f=b[0],p=b[1],m=!!r&&f;return Object(u.createElement)(h.Popover,Object(l.a)({className:"block-editor-url-popover",focusOnMount:a,position:c},s),Object(u.createElement)("div",{className:"block-editor-url-popover__input-container"},Object(u.createElement)("div",{className:"block-editor-url-popover__row"},n,!!r&&Object(u.createElement)(h.Button,{className:"block-editor-url-popover__settings-toggle",icon:xr.a,label:Object(g.__)("Link settings"),onClick:function(){p(!f)},"aria-expanded":f})),m&&Object(u.createElement)("div",{className:"block-editor-url-popover__row block-editor-url-popover__settings"},r())),t&&!m&&Object(u.createElement)("div",{className:"block-editor-url-popover__additional-controls"},t))}Ab.LinkEditor=function(e){var t=e.autocompleteRef,n=e.className,r=e.onChangeInputValue,o=e.value,c=Object(he.a)(e,["autocompleteRef","className","onChangeInputValue","value"]);return Object(u.createElement)("form",Object(l.a)({className:b()("block-editor-url-popover__link-editor",n)},c),Object(u.createElement)(cb,{value:o,onChange:r,autocompleteRef:t}),Object(u.createElement)(h.Button,{icon:Yd.a,label:Object(g.__)("Apply"),type:"submit"}))},Ab.LinkViewer=function(e){var t=e.className,n=e.linkClassName,r=e.onEditLinkClick,o=e.url,c=e.urlLabel,i=Object(he.a)(e,["className","linkClassName","onEditLinkClick","url","urlLabel"]);return Object(u.createElement)("div",Object(l.a)({className:b()("block-editor-url-popover__link-viewer",t)},i),Object(u.createElement)(Rb,{url:o,urlLabel:c,className:n}),r&&Object(u.createElement)(h.Button,{icon:Db.a,label:Object(g.__)("Edit"),onClick:r}))};var Mb=Ab,Lb=function(e){var t=e.src,n=e.onChange,r=e.onSubmit,o=e.onClose;return Object(u.createElement)(Mb,{onClose:o},Object(u.createElement)("form",{className:"block-editor-media-placeholder__url-input-form",onSubmit:r},Object(u.createElement)("input",{className:"block-editor-media-placeholder__url-input-field",type:"url","aria-label":Object(g.__)("URL"),placeholder:Object(g.__)("Paste or type URL"),onChange:n,value:t}),Object(u.createElement)(h.Button,{className:"block-editor-media-placeholder__url-input-submit-button",icon:Yd.a,label:Object(g.__)("Apply"),type:"submit"})))};var Fb=Object(h.withFilters)("editor.MediaPlaceholder")((function(e){var t=e.value,n=void 0===t?{}:t,r=e.allowedTypes,o=e.className,c=e.icon,i=e.labels,a=void 0===i?{}:i,l=e.mediaPreview,s=e.notices,d=e.isAppender,p=e.accept,m=e.addToGallery,O=e.multiple,j=void 0!==O&&O,k=e.dropZoneUIOnly,y=e.disableDropZone,_=e.disableMediaButtons,E=e.onError,C=e.onSelect,S=e.onCancel,w=e.onSelectURL,I=e.onDoubleClick,B=e.onFilesPreUpload,x=void 0===B?f.noop:B,P=e.onHTMLDrop,T=void 0===P?f.noop:P,N=e.children,D=Object(v.useSelect)((function(e){return(0,e("core/block-editor").getSettings)().mediaUpload}),[]),R=Object(u.useState)(""),A=Object(re.a)(R,2),M=A[0],L=A[1],F=Object(u.useState)(!1),V=Object(re.a)(F,2),H=V[0],z=V[1];Object(u.useEffect)((function(){var e;L(null!==(e=null==n?void 0:n.src)&&void 0!==e?e:"")}),[null==n?void 0:n.src]);var U=function(e){L(e.target.value)},G=function(){z(!0)},K=function(){z(!1)},W=function(e){e.preventDefault(),M&&w&&(w(M),K())},q=function(e){var t;if(x(e),j)if(m){var o=[];t=function(e){var t=(null!=n?n:[]).filter((function(e){return e.id?!o.some((function(t){var n=t.id;return Number(n)===Number(e.id)})):!o.some((function(t){var n=t.urlSlug;return e.url.includes(n)}))}));C(t.concat(e)),o=e.map((function(e){var t=e.url.lastIndexOf("."),n=e.url.slice(0,t);return{id:e.id,urlSlug:n}}))}}else t=C;else t=function(e){var t=Object(re.a)(e,1)[0];return C(t)};D({allowedTypes:r,filesList:e,onFileChange:t,onError:E})},$=function(e){q(e.target.files)},Y=function(e,t){var n=a.instructions,i=a.title;if(D||w||(n=Object(g.__)("To edit this block, you need permission to upload media.")),void 0===n||void 0===i){var f=null!=r?r:[],p=Object(re.a)(f,1)[0],m=1===f.length,v=m&&"audio"===p,O=m&&"image"===p,j=m&&"video"===p;void 0===n&&D&&(n=Object(g.__)("Upload a media file or pick one from your media library."),v?n=Object(g.__)("Upload an audio file, pick one from your media library, or add one with a URL."):O?n=Object(g.__)("Upload an image file, pick one from your media library, or add one with a URL."):j&&(n=Object(g.__)("Upload a video file, pick one from your media library, or add one with a URL."))),void 0===i&&(i=Object(g.__)("Media"),v?i=Object(g.__)("Audio"):O?i=Object(g.__)("Image"):j&&(i=Object(g.__)("Video")))}var k=b()("block-editor-media-placeholder",o,{"is-appender":d});return Object(u.createElement)(h.Placeholder,{icon:c,label:i,instructions:n,className:k,notices:s,onClick:t,onDoubleClick:I,preview:l},e,N)},X=function(){return y?null:Object(u.createElement)(h.DropZone,{onFilesDrop:q,onHTMLDrop:T})},Q=function(){return S&&Object(u.createElement)(h.Button,{className:"block-editor-media-placeholder__cancel-button",title:Object(g.__)("Cancel"),isLink:!0,onClick:S},Object(g.__)("Cancel"))},Z=function(){return w&&Object(u.createElement)("div",{className:"block-editor-media-placeholder__url-input-container"},Object(u.createElement)(h.Button,{className:"block-editor-media-placeholder__button",onClick:G,isPressed:H,isTertiary:!0},Object(g.__)("Insert from URL")),H&&Object(u.createElement)(Lb,{src:M,onChange:U,onSubmit:W,onClose:K}))};return k||_?(k&&to()("wp.blockEditor.MediaPlaceholder dropZoneUIOnly prop",{alternative:"disableMediaButtons"}),Object(u.createElement)(Tb,null,X())):Object(u.createElement)(Tb,{fallback:Y(Z())},function(){var e=Object(u.createElement)(Pb,{addToGallery:m,gallery:j&&!(!r||0===r.length)&&r.every((function(e){return"image"===e||e.startsWith("image/")})),multiple:j,onSelect:C,allowedTypes:r,value:Array.isArray(n)?n.map((function(e){return e.id})):n.id,render:function(e){var t=e.open;return Object(u.createElement)(h.Button,{isTertiary:!0,onClick:function(e){e.stopPropagation(),t()}},Object(g.__)("Media Library"))}});if(D&&d)return Object(u.createElement)(u.Fragment,null,X(),Object(u.createElement)(h.FormFileUpload,{onChange:$,accept:p,multiple:j,render:function(t){var n=t.openFileDialog,r=Object(u.createElement)(u.Fragment,null,Object(u.createElement)(h.Button,{isPrimary:!0,className:b()("block-editor-media-placeholder__button","block-editor-media-placeholder__upload-button")},Object(g.__)("Upload")),e,Z(),Q());return Y(r,n)}}));if(D){var t=Object(u.createElement)(u.Fragment,null,X(),Object(u.createElement)(h.FormFileUpload,{isPrimary:!0,className:b()("block-editor-media-placeholder__button","block-editor-media-placeholder__upload-button"),onChange:$,accept:p,multiple:j},Object(g.__)("Upload")),e,Z(),Q());return Y(t)}return Y(e)}())})),Vb=Object(u.forwardRef)((function(e,t){return Object(u.createElement)(bd,Object(l.a)({ref:t},e,{__unstableDisableFormats:!0,preserveWhiteSpace:!0}))}));Vb.Content=function(e){var t=e.value,n=void 0===t?"":t,r=e.tagName,o=void 0===r?"div":r,c=Object(he.a)(e,["value","tagName"]);return Object(u.createElement)(o,c,n)};var Hb=Vb,zb=Object(u.forwardRef)((function(e,t){var n=e.__experimentalVersion,r=Object(he.a)(e,["__experimentalVersion"]);if(2===n)return Object(u.createElement)(Hb,Object(l.a)({ref:t},r));var o=r.className,c=r.onChange,i=Object(he.a)(r,["className","onChange"]);return Object(u.createElement)(Zr.a,Object(l.a)({ref:t,className:b()("block-editor-plain-text",o),onChange:function(e){return c(e.target.value)}},i))}));function Ub(e){var t=e.property,n=e.viewport,r=e.desc,o=Object(p.useInstanceId)(Ub),c=r||Object(g.sprintf)(Object(g._x)("Controls the %1$s property for %2$s viewports.","Text labelling a interface as controlling a given layout property (eg: margin) for a given screen size."),t,n.label);return Object(u.createElement)(u.Fragment,null,Object(u.createElement)("span",{"aria-describedby":"rbc-desc-".concat(o)},n.label),Object(u.createElement)(h.VisuallyHidden,{as:"span",id:"rbc-desc-".concat(o)},c))}var Gb=function(e){var t=e.title,n=e.property,r=e.toggleLabel,o=e.onIsResponsiveChange,c=e.renderDefaultControl,i=e.renderResponsiveControls,a=e.isResponsive,l=void 0!==a&&a,s=e.defaultLabel,d=void 0===s?{id:"all",label:Object(g.__)("All")}:s,f=e.viewports,p=void 0===f?[{id:"small",label:Object(g.__)("Small screens")},{id:"medium",label:Object(g.__)("Medium screens")},{id:"large",label:Object(g.__)("Large screens")}]:f;if(!t||!n||!c)return null;var m=r||Object(g.sprintf)(Object(g.__)("Use the same %s on all screensizes."),n),v=Object(g.__)("Toggle between using the same value for all screen sizes or using a unique value per screen size."),O=c(Object(u.createElement)(Ub,{property:n,viewport:d}),d);return Object(u.createElement)("fieldset",{className:"block-editor-responsive-block-control"},Object(u.createElement)("legend",{className:"block-editor-responsive-block-control__title"},t),Object(u.createElement)("div",{className:"block-editor-responsive-block-control__inner"},Object(u.createElement)(h.ToggleControl,{className:"block-editor-responsive-block-control__toggle",label:m,checked:!l,onChange:o,help:v}),Object(u.createElement)("div",{className:b()("block-editor-responsive-block-control__group",{"is-responsive":l})},!l&&O,l&&(i?i(p):p.map((function(e){return Object(u.createElement)(u.Fragment,{key:e.id},c(Object(u.createElement)(Ub,{property:n,viewport:e}),e))}))))))};function Kb(e){var t=e.character,n=e.type,r=e.onUse;return Object(p.useKeyboardShortcut)(st.rawShortcut[n](t),(function(){return r(),!1}),{bindGlobal:!0}),null}function Wb(e){var t,n=e.name,r=e.shortcutType,o=e.shortcutCharacter,c=Object(he.a)(e,["name","shortcutType","shortcutCharacter"]),i="RichText.ToolbarControls";return n&&(i+=".".concat(n)),r&&o&&(t=st.displayShortcut[r](o)),Object(u.createElement)(h.Fill,{name:i},Object(u.createElement)(h.ToolbarButton,Object(l.a)({},c,{shortcut:t})))}function qb(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object($t.a)(e);if(t){var o=Object($t.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(qt.a)(this,n)}}var $b=function(e){Object(Wt.a)(n,e);var t=qb(n);function n(){var e;return Object(Ut.a)(this,n),(e=t.apply(this,arguments)).onInput=e.onInput.bind(Object(Kt.a)(e)),e}return Object(Gt.a)(n,[{key:"onInput",value:function(e){e.inputType===this.props.inputType&&this.props.onInput()}},{key:"componentDidMount",value:function(){document.addEventListener("input",this.onInput,!0)}},{key:"componentWillUnmount",value:function(){document.removeEventListener("input",this.onInput,!0)}},{key:"render",value:function(){return null}}]),n}(u.Component),Yb=Object(u.createElement)(h.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},Object(u.createElement)(h.Path,{d:"M9.4 20.5L5.2 3.8l14.6 9-2 .3c-.2 0-.4.1-.7.1-.9.2-1.6.3-2.2.5-.8.3-1.4.5-1.8.8-.4.3-.8.8-1.3 1.5-.4.5-.8 1.2-1.2 2l-.3.6-.9 1.9zM7.6 7.1l2.4 9.3c.2-.4.5-.8.7-1.1.6-.8 1.1-1.4 1.6-1.8.5-.4 1.3-.8 2.2-1.1l1.2-.3-8.1-5z"}));var Xb=Object(u.forwardRef)((function(e,t){var n=Object(v.useSelect)((function(e){return e("core/block-editor").isNavigationMode()}),[]),r=Object(v.useDispatch)("core/block-editor").setNavigationMode,o=function(e){r("edit"!==e)};return Object(u.createElement)(h.Dropdown,{renderToggle:function(r){var o=r.isOpen,c=r.onToggle;return Object(u.createElement)(h.Button,Object(l.a)({},e,{ref:t,icon:n?Yb:Db.a,"aria-expanded":o,"aria-haspopup":"true",onClick:c,label:Object(g.__)("Modes")}))},position:"bottom right",renderContent:function(){return Object(u.createElement)(u.Fragment,null,Object(u.createElement)(h.NavigableMenu,{role:"menu","aria-label":Object(g.__)("Modes")},Object(u.createElement)(h.MenuItemsChoice,{value:n?"select":"edit",onSelect:o,choices:[{value:"edit",label:Object(u.createElement)(u.Fragment,null,Object(u.createElement)(so.a,{icon:Db.a}),Object(g.__)("Edit"))},{value:"select",label:Object(u.createElement)(u.Fragment,null,Yb,Object(g.__)("Select"))}]})),Object(u.createElement)("div",{className:"block-editor-tool-selector__help"},Object(g.__)("Tools offer different interactions for block selection & editing. To select, press Escape, to go back to editing, press Enter.")))}})})),Qb=n(187),Zb=Object(u.createElement)(j.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(u.createElement)(j.Path,{d:"M9.737 18.011L3.98 12.255l5.734-6.28 1.107 1.012-4.103 4.494h13.3v1.5H6.828l3.97 3.97-1.06 1.06z"}));function Jb(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object($t.a)(e);if(t){var o=Object($t.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(qt.a)(this,n)}}var ef=function(e){Object(Wt.a)(n,e);var t=Jb(n);function n(){var e;return Object(Ut.a)(this,n),(e=t.apply(this,arguments)).toggle=e.toggle.bind(Object(Kt.a)(e)),e.submitLink=e.submitLink.bind(Object(Kt.a)(e)),e.state={expanded:!1},e}return Object(Gt.a)(n,[{key:"toggle",value:function(){this.setState({expanded:!this.state.expanded})}},{key:"submitLink",value:function(e){e.preventDefault(),this.toggle()}},{key:"render",value:function(){var e=this.props,t=e.url,n=e.onChange,r=this.state.expanded,o=t?Object(g.__)("Edit link"):Object(g.__)("Insert link");return Object(u.createElement)("div",{className:"block-editor-url-input__button"},Object(u.createElement)(h.Button,{icon:Qb.a,label:o,onClick:this.toggle,className:"components-toolbar__control",isPressed:!!t}),r&&Object(u.createElement)("form",{className:"block-editor-url-input__button-modal",onSubmit:this.submitLink},Object(u.createElement)("div",{className:"block-editor-url-input__button-modal-line"},Object(u.createElement)(h.Button,{className:"block-editor-url-input__back",icon:Zb,label:Object(g.__)("Close"),onClick:this.toggle}),Object(u.createElement)(cb,{value:t||"",onChange:n}),Object(u.createElement)(h.Button,{icon:Yd.a,label:Object(g.__)("Submit"),type:"submit"}))))}}]),n}(u.Component),tf=n(160),nf=["noreferrer","noopener"],rf=Object(u.createElement)(h.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(u.createElement)(h.Path,{d:"M0,0h24v24H0V0z",fill:"none"}),Object(u.createElement)(h.Path,{d:"m19 5v14h-14v-14h14m0-2h-14c-1.1 0-2 0.9-2 2v14c0 1.1 0.9 2 2 2h14c1.1 0 2-0.9 2-2v-14c0-1.1-0.9-2-2-2z"}),Object(u.createElement)(h.Path,{d:"m14.14 11.86l-3 3.87-2.14-2.59-3 3.86h12l-3.86-5.14z"})),of=function(e){var t=e.linkDestination,n=e.onChangeUrl,r=e.url,o=e.mediaType,c=void 0===o?"image":o,i=e.mediaUrl,a=e.mediaLink,l=e.linkTarget,s=e.linkClass,d=e.rel,b=Object(u.useState)(!1),p=Object(re.a)(b,2),m=p[0],v=p[1],O=Object(u.useCallback)((function(){v(!0)})),j=Object(u.useState)(!1),k=Object(re.a)(j,2),y=k[0],_=k[1],E=Object(u.useState)(null),C=Object(re.a)(E,2),S=C[0],w=C[1],I=Object(u.useRef)(null),B=function(e){e.stopPropagation()},x=function(e){[st.LEFT,st.DOWN,st.RIGHT,st.UP,st.BACKSPACE,st.ENTER].indexOf(e.keyCode)>-1&&e.stopPropagation()},P=Object(u.useCallback)((function(){"media"!==t&&"attachment"!==t||w(""),_(!0)})),T=Object(u.useCallback)((function(){_(!1)})),N=Object(u.useCallback)((function(){w(null),T(),v(!1)})),D=function(e){var t=e;return void 0===e||Object(f.isEmpty)(t)||Object(f.isEmpty)(t)||(Object(f.each)(nf,(function(e){var n=new RegExp("\\b"+e+"\\b","gi");t=t.replace(n,"")})),t!==e&&(t=t.trim()),Object(f.isEmpty)(t)&&(t=void 0)),t},R=Object(u.useCallback)((function(){return function(e){var t=I.current;t&&t.contains(e.target)||(v(!1),w(null),T())}})),A=Object(u.useCallback)((function(){return function(e){S&&n({href:S}),T(),w(null),e.preventDefault()}})),M=Object(u.useCallback)((function(){n({linkDestination:"none",href:""})})),L=function(){var e=[{linkDestination:"media",title:Object(g.__)("Media File"),url:"image"===c?i:void 0,icon:rf}];return"image"===c&&a&&e.push({linkDestination:"attachment",title:Object(g.__)("Attachment Page"),url:"image"===c?a:void 0,icon:Object(u.createElement)(h.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(u.createElement)(h.Path,{d:"M0 0h24v24H0V0z",fill:"none"}),Object(u.createElement)(h.Path,{d:"M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zM6 20V4h7v5h5v11H6z"}))}),e},F=Object(u.createElement)(u.Fragment,null,Object(u.createElement)(h.ToggleControl,{label:Object(g.__)("Open in new tab"),onChange:function(e){var t=function(e){var t=e?"_blank":void 0;return{linkTarget:t,rel:t||d?D(d):void 0}}(e);n(t)},checked:"_blank"===l}),Object(u.createElement)(h.TextControl,{label:Object(g.__)("Link Rel"),value:D(d)||"",onChange:function(e){n({rel:e})},onKeyPress:B,onKeyDown:x}),Object(u.createElement)(h.TextControl,{label:Object(g.__)("Link CSS Class"),value:s||"",onKeyPress:B,onKeyDown:x,onChange:function(e){n({linkClass:e})}})),V=null!==S?S:r,H=(Object(f.find)(L(),["linkDestination",t])||{}).title;return Object(u.createElement)(u.Fragment,null,Object(u.createElement)(h.ToolbarButton,{icon:Qb.a,className:"components-toolbar__control",label:r?Object(g.__)("Edit link"):Object(g.__)("Insert link"),"aria-expanded":m,onClick:O}),m&&Object(u.createElement)(Mb,{onFocusOutside:R(),onClose:N,renderSettings:function(){return F},additionalControls:!V&&Object(u.createElement)(h.NavigableMenu,null,Object(f.map)(L(),(function(e){return Object(u.createElement)(h.MenuItem,{key:e.linkDestination,icon:e.icon,onClick:function(){var t,r,o;w(null),t=e.url,o=L(),r=t?(Object(f.find)(o,(function(e){return e.url===t}))||{linkDestination:"custom"}).linkDestination:"none",n({linkDestination:r,href:t}),T()}},e.title)})))},(!r||y)&&Object(u.createElement)(Mb.LinkEditor,{className:"block-editor-format-toolbar__link-container-content",value:V,onChangeInputValue:w,onKeyDown:x,onKeyPress:B,onSubmit:A(),autocompleteRef:I}),r&&!y&&Object(u.createElement)(u.Fragment,null,Object(u.createElement)(Mb.LinkViewer,{className:"block-editor-format-toolbar__link-container-content",onKeyPress:B,url:r,onEditLinkClick:P,urlLabel:H}),Object(u.createElement)(h.Button,{icon:tf.a,label:Object(g.__)("Remove link"),onClick:M}))))},cf=n(161);function af(e){var t=e.children,n=e.className,r=e.isEnabled,o=void 0===r||r,c=e.deviceType,i=e.setDeviceType;if(Object(p.useViewportMatch)("small","<"))return null;var a={className:b()(n,"block-editor-post-preview__dropdown-content"),position:"bottom left"},l={isTertiary:!0,className:"block-editor-post-preview__button-toggle",disabled:!o,children:Object(g.__)("Preview")};return Object(u.createElement)(h.DropdownMenu,{className:"block-editor-post-preview__dropdown",popoverProps:a,toggleProps:l,icon:null},(function(){return Object(u.createElement)(u.Fragment,null,Object(u.createElement)(h.MenuGroup,null,Object(u.createElement)(h.MenuItem,{className:"block-editor-post-preview__button-resize",onClick:function(){return i("Desktop")},icon:"Desktop"===c&&cf.a},Object(g.__)("Desktop")),Object(u.createElement)(h.MenuItem,{className:"block-editor-post-preview__button-resize",onClick:function(){return i("Tablet")},icon:"Tablet"===c&&cf.a},Object(g.__)("Tablet")),Object(u.createElement)(h.MenuItem,{className:"block-editor-post-preview__button-resize",onClick:function(){return i("Mobile")},icon:"Mobile"===c&&cf.a},Object(g.__)("Mobile"))),t)}))}var lf=n(280),sf=/\((min|max)-width:[^\(]*?\)/g;function uf(e){return!!e.media&&!!e.media.mediaText.match(sf)}function df(e,t,n){e.deleteRule(n),e.insertRule(t,n)}function bf(e,t){return e.replace(sf,(function(e){return Object(lf.match)(e,{type:"screen",width:t})?"(min-width:0px)":"(min-width:999999px)"}))}function ff(e,t){Object(u.useEffect)((function(){if(t){var n,r,o,c="undefined"==typeof window?[]:Object(f.filter)(null!==(n=null===(r=window)||void 0===r||null===(o=r.document)||void 0===o?void 0:o.styleSheets)&&void 0!==n?n:[],(function(e){return!!e.href&&Object(zl.getProtocol)(e.href)===window.location.protocol&&Object(zl.getAuthority)(e.href)===window.location.host})),i=[];return c.forEach((function(n,r){for(var o=!1,c=0;c0,selectedBlockName:l,selectedBlockClientId:a,blockType:s}}))((function(e){var t=e.blockType,n=e.count,r=e.hasBlockStyles,o=e.selectedBlockClientId,i=e.selectedBlockName,a=e.showNoBlockSelectedMessage,l=void 0===a||a,s=e.bubblesVirtually,d=void 0===s||s;if(n>1)return Object(u.createElement)("div",{className:"block-editor-block-inspector"},Object(u.createElement)(Of,null),Object(u.createElement)(We.Slot,{bubblesVirtually:d}));var b=i===Object(c.getUnregisteredTypeHandlerName)();return t&&o&&!b?Object(u.createElement)("div",{className:"block-editor-block-inspector"},Object(u.createElement)(fo,{blockType:t}),r&&Object(u.createElement)("div",null,Object(u.createElement)(h.PanelBody,{title:Object(g.__)("Styles")},Object(u.createElement)(Is,{clientId:o}),Object(c.hasBlockSupport)(t.name,"defaultStylePicker",!0)&&Object(u.createElement)(gf,{blockName:t.name}))),Object(u.createElement)(We.Slot,{bubblesVirtually:d}),Object(u.createElement)("div",null,Object(u.createElement)(hf,{slotName:q.slotName,bubblesVirtually:d})),Object(u.createElement)(mf,{key:"back"})):l?Object(u.createElement)("span",{className:"block-editor-block-inspector__no-blocks"},Object(g.__)("No block selected.")):null}));function kf(e){var t,n,r=(t=Object(v.useSelect)((function(e){var t=e("core/block-editor"),n=t.hasSelectedBlock,r=t.hasMultiSelection;return n()||r()})),n=Object(v.useDispatch)("core/block-editor").clearSelectedBlock,function(e){e.target===e.currentTarget&&t&&n()});return Object(u.createElement)("div",Object(l.a)({tabIndex:-1,onFocus:r},e))}var yf=n(281),_f=n.n(yf),Ef=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,Cf=function(e,t){t=t||{};var n=1,r=1;function o(e){var t=e.match(/\n/g);t&&(n+=t.length);var o=e.lastIndexOf("\n");r=~o?e.length-o:r+e.length}function c(){var e={line:n,column:r};return function(t){return t.position=new i(e),f(),t}}function i(e){this.start=e,this.end={line:n,column:r},this.source=t.source}i.prototype.content=e;var a=[];function l(o){var c=new Error(t.source+":"+n+":"+r+": "+o);if(c.reason=o,c.filename=t.source,c.line=n,c.column=r,c.source=e,!t.silent)throw c;a.push(c)}function s(){return b(/^{\s*/)}function u(){return b(/^}/)}function d(){var t,n=[];for(f(),p(n);e.length&&"}"!==e.charAt(0)&&(t=C()||S());)!1!==t&&(n.push(t),p(n));return n}function b(t){var n=t.exec(e);if(n){var r=n[0];return o(r),e=e.slice(r.length),n}}function f(){b(/^\s*/)}function p(e){var t;for(e=e||[];t=m();)!1!==t&&e.push(t);return e}function m(){var t=c();if("/"===e.charAt(0)&&"*"===e.charAt(1)){for(var n=2;""!==e.charAt(n)&&("*"!==e.charAt(n)||"/"!==e.charAt(n+1));)++n;if(n+=2,""===e.charAt(n-1))return l("End of comment missing");var i=e.slice(2,n-2);return r+=2,o(i),e=e.slice(n),r+=2,t({type:"comment",comment:i})}}function v(){var e=b(/^([^{]+)/);if(e)return Sf(e[0]).replace(/\/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*\/+/g,"").replace(/"(?:\\"|[^"])*"|'(?:\\'|[^'])*'/g,(function(e){return e.replace(/,/g,"‌")})).split(/\s*(?![^(]*\)),\s*/).map((function(e){return e.replace(/\u200C/g,",")}))}function O(){var e=c(),t=b(/^(\*?[-#\/\*\\\w]+(\[[0-9a-z_-]+\])?)\s*/);if(t){if(t=Sf(t[0]),!b(/^:\s*/))return l("property missing ':'");var n=b(/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^\)]*?\)|[^};])+)/),r=e({type:"declaration",property:t.replace(Ef,""),value:n?Sf(n[0]).replace(Ef,""):""});return b(/^[;\s]*/),r}}function g(){var e,t=[];if(!s())return l("missing '{'");for(p(t);e=O();)!1!==e&&(t.push(e),p(t));return u()?t:l("missing '}'")}function h(){for(var e,t=[],n=c();e=b(/^((\d+\.\d+|\.\d+|\d+)%?|[a-z]+)\s*/);)t.push(e[1]),b(/^,\s*/);if(t.length)return n({type:"keyframe",values:t,declarations:g()})}var j,k=E("import"),y=E("charset"),_=E("namespace");function E(e){var t=new RegExp("^@"+e+"\\s*([^;]+);");return function(){var n=c(),r=b(t);if(r){var o={type:e};return o[e]=r[1].trim(),n(o)}}}function C(){if("@"===e[0])return function(){var e=c(),t=b(/^@([-\w]+)?keyframes\s*/);if(t){var n=t[1];if(!(t=b(/^([-\w]+)\s*/)))return l("@keyframes missing name");var r,o=t[1];if(!s())return l("@keyframes missing '{'");for(var i=p();r=h();)i.push(r),i=i.concat(p());return u()?e({type:"keyframes",name:o,vendor:n,keyframes:i}):l("@keyframes missing '}'")}}()||function(){var e=c(),t=b(/^@media *([^{]+)/);if(t){var n=Sf(t[1]);if(!s())return l("@media missing '{'");var r=p().concat(d());return u()?e({type:"media",media:n,rules:r}):l("@media missing '}'")}}()||function(){var e=c(),t=b(/^@custom-media\s+(--[^\s]+)\s*([^{;]+);/);if(t)return e({type:"custom-media",name:Sf(t[1]),media:Sf(t[2])})}()||function(){var e=c(),t=b(/^@supports *([^{]+)/);if(t){var n=Sf(t[1]);if(!s())return l("@supports missing '{'");var r=p().concat(d());return u()?e({type:"supports",supports:n,rules:r}):l("@supports missing '}'")}}()||k()||y()||_()||function(){var e=c(),t=b(/^@([-\w]+)?document *([^{]+)/);if(t){var n=Sf(t[1]),r=Sf(t[2]);if(!s())return l("@document missing '{'");var o=p().concat(d());return u()?e({type:"document",document:r,vendor:n,rules:o}):l("@document missing '}'")}}()||function(){var e=c();if(b(/^@page */)){var t=v()||[];if(!s())return l("@page missing '{'");for(var n,r=p();n=O();)r.push(n),r=r.concat(p());return u()?e({type:"page",selectors:t,declarations:r}):l("@page missing '}'")}}()||function(){var e=c();if(b(/^@host\s*/)){if(!s())return l("@host missing '{'");var t=p().concat(d());return u()?e({type:"host",rules:t}):l("@host missing '}'")}}()||function(){var e=c();if(b(/^@font-face\s*/)){if(!s())return l("@font-face missing '{'");for(var t,n=p();t=O();)n.push(t),n=n.concat(p());return u()?e({type:"font-face",declarations:n}):l("@font-face missing '}'")}}()}function S(){var e=c(),t=v();return t?(p(),e({type:"rule",selectors:t,declarations:g()})):l("selector missing")}return function e(t,n){var r=t&&"string"==typeof t.type,o=r?t:n;for(var c in t){var i=t[c];Array.isArray(i)?i.forEach((function(t){e(t,o)})):i&&"object"===Object(Ao.a)(i)&&e(i,o)}r&&Object.defineProperty(t,"parent",{configurable:!0,writable:!0,enumerable:!1,value:n||null});return t}((j=d(),{type:"stylesheet",stylesheet:{source:t.source,rules:j,parsingErrors:a}}))};function Sf(e){return e?e.replace(/^\s+|\s+$/g,""):""}var wf=n(172),If=n.n(wf),Bf=xf;function xf(e){this.options=e||{}}xf.prototype.emit=function(e){return e},xf.prototype.visit=function(e){return this[e.type](e)},xf.prototype.mapVisit=function(e,t){var n="";t=t||"";for(var r=0,o=e.length;r1&&void 0!==arguments[1]?arguments[1]:[];return function(n){return"rule"===n.type?zf(zf({},n),{},{selectors:n.selectors.map((function(n){return t.includes(n.trim())?n:n.match(Uf)?n.replace(/^(body|html|:root)/,e):e+" "+n}))}):n}},Kf=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return Object(f.map)(e,(function(e){var n=e.css,r=e.baseURL,o=[];return t&&o.push(Gf(t)),r&&o.push(Vf(r)),o.length?Rf(n,Object(p.compose)(o)):n}))};var Wf=function(e){var t=e.styles;return Object(u.useEffect)((function(){var e=Kf(t,".editor-styles-wrapper"),n=Object(f.map)(Object(f.compact)(e),(function(e){var t=document.createElement("style");return t.innerHTML=e,document.body.appendChild(t),t}));return function(){return n.forEach((function(e){return document.body.removeChild(e)}))}}),[t]),null};var qf=function(e){var t=e.rootClientId,n=e.clientId,r=e.isAppender,o=e.showInserterHelpPanel,c=e.showMostUsedBlocks,i=void 0!==c&&c,a=e.__experimentalSelectBlockOnInsert,l=e.__experimentalInsertionIndex,s=e.onSelect,d=void 0===s?f.noop:s,b=Object(v.useSelect)((function(e){var r=e("core/block-editor").getBlockRootClientId;return t||r(n)||void 0}),[n,t]);return Object(u.createElement)(Ql,{onSelect:d,rootClientId:b,clientId:n,isAppender:r,showInserterHelpPanel:o,showMostUsedBlocks:i,__experimentalSelectBlockOnInsert:a,__experimentalInsertionIndex:l})};function $f(){var e=Object(v.useSelect)((function(e){var t=e("core/block-editor"),n=t.getSelectedBlockClientIds,r=t.getBlockOrder,o=t.getBlockRootClientId,c=n(),i=Object(re.a)(c,1)[0];return{clientIds:c,rootBlocksClientIds:r(),rootClientId:o(i)}}),[]),t=e.clientIds,n=e.rootBlocksClientIds,r=e.rootClientId,o=Object(v.useDispatch)("core/block-editor"),c=o.duplicateBlocks,i=o.removeBlocks,l=o.insertAfterBlock,s=o.insertBeforeBlock,d=o.multiSelect,b=o.clearSelectedBlock,p=o.moveBlocksUp,m=o.moveBlocksDown;return Object(a.useShortcut)("core/block-editor/move-up",Object(u.useCallback)((function(e){e.preventDefault(),p(t,r)}),[t,p]),{bindGlobal:!0,isDisabled:0===t.length}),Object(a.useShortcut)("core/block-editor/move-down",Object(u.useCallback)((function(e){e.preventDefault(),m(t,r)}),[t,m]),{bindGlobal:!0,isDisabled:0===t.length}),Object(a.useShortcut)("core/block-editor/duplicate",Object(u.useCallback)((function(e){e.preventDefault(),c(t)}),[t,c]),{bindGlobal:!0,isDisabled:0===t.length}),Object(a.useShortcut)("core/block-editor/remove",Object(u.useCallback)((function(e){e.preventDefault(),i(t)}),[t,i]),{bindGlobal:!0,isDisabled:0===t.length}),Object(a.useShortcut)("core/block-editor/insert-after",Object(u.useCallback)((function(e){e.preventDefault(),l(Object(f.last)(t))}),[t,l]),{bindGlobal:!0,isDisabled:0===t.length}),Object(a.useShortcut)("core/block-editor/insert-before",Object(u.useCallback)((function(e){e.preventDefault(),s(Object(f.first)(t))}),[t,s]),{bindGlobal:!0,isDisabled:0===t.length}),Object(a.useShortcut)("core/block-editor/delete-multi-selection",Object(u.useCallback)((function(e){e.preventDefault(),i(t)}),[t,i]),{isDisabled:t.length<2}),Object(a.useShortcut)("core/block-editor/select-all",Object(u.useCallback)((function(e){e.preventDefault(),d(Object(f.first)(n),Object(f.last)(n))}),[n,d])),Object(a.useShortcut)("core/block-editor/unselect",Object(u.useCallback)((function(e){e.preventDefault(),b(),e.target.ownerDocument.defaultView.getSelection().removeAllRanges()}),[t,b]),{isDisabled:t.length<2}),null}$f.Register=function(){var e=Object(v.useDispatch)("core/keyboard-shortcuts").registerShortcut;return Object(u.useEffect)((function(){e({name:"core/block-editor/duplicate",category:"block",description:Object(g.__)("Duplicate the selected block(s)."),keyCombination:{modifier:"primaryShift",character:"d"}}),e({name:"core/block-editor/remove",category:"block",description:Object(g.__)("Remove the selected block(s)."),keyCombination:{modifier:"access",character:"z"}}),e({name:"core/block-editor/insert-before",category:"block",description:Object(g.__)("Insert a new block before the selected block(s)."),keyCombination:{modifier:"primaryAlt",character:"t"}}),e({name:"core/block-editor/insert-after",category:"block",description:Object(g.__)("Insert a new block after the selected block(s)."),keyCombination:{modifier:"primaryAlt",character:"y"}}),e({name:"core/block-editor/delete-multi-selection",category:"block",description:Object(g.__)("Remove multiple selected blocks."),keyCombination:{character:"del"},aliases:[{character:"backspace"}]}),e({name:"core/block-editor/select-all",category:"selection",description:Object(g.__)("Select all text when typing. Press again to select all blocks."),keyCombination:{modifier:"primary",character:"a"}}),e({name:"core/block-editor/unselect",category:"selection",description:Object(g.__)("Clear selection."),keyCombination:{character:"escape"}}),e({name:"core/block-editor/focus-toolbar",category:"global",description:Object(g.__)("Navigate to the nearest toolbar."),keyCombination:{modifier:"alt",character:"F10"}}),e({name:"core/block-editor/move-up",category:"block",description:Object(g.__)("Move the selected block(s) up."),keyCombination:{modifier:"secondary",character:"t"}}),e({name:"core/block-editor/move-down",category:"block",description:Object(g.__)("Move the selected block(s) down."),keyCombination:{modifier:"secondary",character:"y"}})}),[e]),null};var Yf=$f;function Xf(){var e=Object(v.useSelect)((function(e){var t=e("core/block-editor"),n=t.getBlockSelectionEnd,r=t.hasMultiSelection,o=t.isMultiSelecting;return{selectionEnd:n(),isMultiSelection:r(),isMultiSelecting:o()}}),[]),t=e.isMultiSelection,n=e.selectionEnd,r=e.isMultiSelecting;return Object(u.useEffect)((function(){if(n&&!r&&t){var e=qe(n);if(e){var o=Object(kr.getScrollContainer)(e);o&&tb()(e,o,{onlyScrollIfNeeded:!0})}}}),[t,n,r]),null}var Qf=[st.UP,st.RIGHT,st.DOWN,st.LEFT,st.ENTER,st.BACKSPACE];var Zf=Object(p.withSafeTimeout)((function(e){var t=e.children,n=e.setTimeout,r=Object(u.useRef)(),o=Object(u.useRef)(),c=Object(v.useSelect)((function(e){return e("core/block-editor").isTyping()})),i=Object(v.useDispatch)("core/block-editor"),a=i.startTyping,l=i.stopTyping;function s(e){var t=e?"addEventListener":"removeEventListener";r.current.ownerDocument[t]("selectionchange",b),r.current.ownerDocument[t]("mousemove",d),document[t]("mousemove",d)}function d(e){var t=e.clientX,n=e.clientY;if(o.current){var r=o.current,c=r.clientX,i=r.clientY;c===t&&i===n||l()}o.current={clientX:t,clientY:n}}function b(e){var t=e.target.defaultView.getSelection();t.rangeCount>0&&t.getRangeAt(0).collapsed||l()}function p(e){var t=e.type,n=e.target;!c&&Object(kr.isTextField)(n)&&r.current.contains(n)&&("keydown"!==t||function(e){var t=e.keyCode;return!e.shiftKey&&Qf.includes(t)}(e))&&a()}return Object(u.useEffect)((function(){return s(c),function(){return s(!1)}}),[c]),Object(u.createElement)("div",{ref:r,onFocus:function(e){var t=e.target;n((function(){c&&!Object(kr.isTextField)(t)&&l()}))},onKeyPress:p,onKeyDown:Object(f.over)([p,function(e){!c||e.keyCode!==st.ESCAPE&&e.keyCode!==st.TAB||l()}])},t)}));function Jf(){return to()("PreserveScrollInReorder component",{hint:"This behavior is now built-in the block list"}),null}function ep(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object($t.a)(e);if(t){var o=Object($t.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(qt.a)(this,n)}}var tp=-1!==window.navigator.userAgent.indexOf("Trident"),np=new Set([st.UP,st.DOWN,st.LEFT,st.RIGHT]),rp=function(e){Object(Wt.a)(n,e);var t=ep(n);function n(){var e;return Object(Ut.a)(this,n),(e=t.apply(this,arguments)).ref=Object(u.createRef)(),e.onKeyDown=e.onKeyDown.bind(Object(Kt.a)(e)),e.addSelectionChangeListener=e.addSelectionChangeListener.bind(Object(Kt.a)(e)),e.computeCaretRectOnSelectionChange=e.computeCaretRectOnSelectionChange.bind(Object(Kt.a)(e)),e.maintainCaretPosition=e.maintainCaretPosition.bind(Object(Kt.a)(e)),e.computeCaretRect=e.computeCaretRect.bind(Object(Kt.a)(e)),e.onScrollResize=e.onScrollResize.bind(Object(Kt.a)(e)),e.isSelectionEligibleForScroll=e.isSelectionEligibleForScroll.bind(Object(Kt.a)(e)),e.getDocument=e.getDocument.bind(Object(Kt.a)(e)),e.getWindow=e.getWindow.bind(Object(Kt.a)(e)),e}return Object(Gt.a)(n,[{key:"componentDidMount",value:function(){this.getWindow().addEventListener("scroll",this.onScrollResize,!0),this.getWindow().addEventListener("resize",this.onScrollResize,!0)}},{key:"componentWillUnmount",value:function(){this.getWindow().removeEventListener("scroll",this.onScrollResize,!0),this.getWindow().removeEventListener("resize",this.onScrollResize,!0),this.getDocument().removeEventListener("selectionchange",this.computeCaretRectOnSelectionChange),this.onScrollResize.rafId&&this.getWindow().cancelAnimationFrame(this.onScrollResize.rafId),this.onKeyDown.rafId&&this.getWindow().cancelAnimationFrame(this.onKeyDown.rafId)}},{key:"getDocument",value:function(){return this.ref.current.ownerDocument}},{key:"getWindow",value:function(){return this.getDocument().defaultView}},{key:"computeCaretRect",value:function(){this.isSelectionEligibleForScroll()&&(this.caretRect=Object(kr.computeCaretRect)(this.getWindow()))}},{key:"computeCaretRectOnSelectionChange",value:function(){this.getDocument().removeEventListener("selectionchange",this.computeCaretRectOnSelectionChange),this.computeCaretRect()}},{key:"onScrollResize",value:function(){var e=this;this.onScrollResize.rafId||(this.onScrollResize.rafId=this.getWindow().requestAnimationFrame((function(){e.computeCaretRect(),delete e.onScrollResize.rafId})))}},{key:"isSelectionEligibleForScroll",value:function(){return this.props.selectedBlockClientId&&this.ref.current.contains(this.getDocument().activeElement)&&this.getDocument().activeElement.isContentEditable}},{key:"isLastEditableNode",value:function(){var e=this.ref.current.querySelectorAll('[contenteditable="true"]');return e[e.length-1]===this.getDocument().activeElement}},{key:"maintainCaretPosition",value:function(e){var t=e.keyCode;if(this.isSelectionEligibleForScroll()){var n=Object(kr.computeCaretRect)(this.getWindow());if(n)if(this.caretRect)if(np.has(t))this.caretRect=n;else{var r=n.top-this.caretRect.top;if(0!==r){var o=Object(kr.getScrollContainer)(this.ref.current);if(o){var c=o===this.getDocument().body,i=c?this.getWindow().scrollY:o.scrollTop,a=c?0:o.getBoundingClientRect().top,l=c?this.caretRect.top/this.getWindow().innerHeight:(this.caretRect.top-a)/(this.getWindow().innerHeight-a);if(0===i&&l<.75&&this.isLastEditableNode())this.caretRect=n;else{var s=c?this.getWindow().innerHeight:o.clientHeight;this.caretRect.top+this.caretRect.height>a+s||this.caretRect.top= 7) { + * // IE7 or better + * } + * + * The browser functions will return NaN if the browser does not match, so + * you can also do version compares the other way: + * + * if (UserAgent_DEPRECATED.ie() < 7) { + * // IE6 or worse + * } + * + * Note that the version is a float and may include a minor version number, + * so you should always use range operators to perform comparisons, not + * strict equality. + * + * **Note:** You should **strongly** prefer capability detection to browser + * version detection where it's reasonable: + * + * http://www.quirksmode.org/js/support.html + * + * Further, we have a large number of mature wrapper functions and classes + * which abstract away many browser irregularities. Check the documentation, + * grep for things, or ask on javascript@lists.facebook.com before writing yet + * another copy of "event || window.event". + * + */ + +var _populated = false; + +// Browsers +var _ie, _firefox, _opera, _webkit, _chrome; + +// Actual IE browser for compatibility mode +var _ie_real_version; + +// Platforms +var _osx, _windows, _linux, _android; + +// Architectures +var _win64; + +// Devices +var _iphone, _ipad, _native; + +var _mobile; + +function _populate() { + if (_populated) { + return; + } + + _populated = true; + + // To work around buggy JS libraries that can't handle multi-digit + // version numbers, Opera 10's user agent string claims it's Opera + // 9, then later includes a Version/X.Y field: + // + // Opera/9.80 (foo) Presto/2.2.15 Version/10.10 + var uas = navigator.userAgent; + var agent = /(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Iceweasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))|(?:Trident\/\d+\.\d+.*rv:(\d+\.\d+))/.exec(uas); + var os = /(Mac OS X)|(Windows)|(Linux)/.exec(uas); + + _iphone = /\b(iPhone|iP[ao]d)/.exec(uas); + _ipad = /\b(iP[ao]d)/.exec(uas); + _android = /Android/i.exec(uas); + _native = /FBAN\/\w+;/i.exec(uas); + _mobile = /Mobile/i.exec(uas); + + // Note that the IE team blog would have you believe you should be checking + // for 'Win64; x64'. But MSDN then reveals that you can actually be coming + // from either x64 or ia64; so ultimately, you should just check for Win64 + // as in indicator of whether you're in 64-bit IE. 32-bit IE on 64-bit + // Windows will send 'WOW64' instead. + _win64 = !!(/Win64/.exec(uas)); + + if (agent) { + _ie = agent[1] ? parseFloat(agent[1]) : ( + agent[5] ? parseFloat(agent[5]) : NaN); + // IE compatibility mode + if (_ie && document && document.documentMode) { + _ie = document.documentMode; + } + // grab the "true" ie version from the trident token if available + var trident = /(?:Trident\/(\d+.\d+))/.exec(uas); + _ie_real_version = trident ? parseFloat(trident[1]) + 4 : _ie; + + _firefox = agent[2] ? parseFloat(agent[2]) : NaN; + _opera = agent[3] ? parseFloat(agent[3]) : NaN; + _webkit = agent[4] ? parseFloat(agent[4]) : NaN; + if (_webkit) { + // We do not add the regexp to the above test, because it will always + // match 'safari' only since 'AppleWebKit' appears before 'Chrome' in + // the userAgent string. + agent = /(?:Chrome\/(\d+\.\d+))/.exec(uas); + _chrome = agent && agent[1] ? parseFloat(agent[1]) : NaN; + } else { + _chrome = NaN; + } + } else { + _ie = _firefox = _opera = _chrome = _webkit = NaN; + } + + if (os) { + if (os[1]) { + // Detect OS X version. If no version number matches, set _osx to true. + // Version examples: 10, 10_6_1, 10.7 + // Parses version number as a float, taking only first two sets of + // digits. If only one set of digits is found, returns just the major + // version number. + var ver = /(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(uas); + + _osx = ver ? parseFloat(ver[1].replace('_', '.')) : true; + } else { + _osx = false; + } + _windows = !!os[2]; + _linux = !!os[3]; + } else { + _osx = _windows = _linux = false; + } +} + +var UserAgent_DEPRECATED = { + + /** + * Check if the UA is Internet Explorer. + * + * + * @return float|NaN Version number (if match) or NaN. + */ + ie: function() { + return _populate() || _ie; + }, + + /** + * Check if we're in Internet Explorer compatibility mode. + * + * @return bool true if in compatibility mode, false if + * not compatibility mode or not ie + */ + ieCompatibilityMode: function() { + return _populate() || (_ie_real_version > _ie); + }, + + + /** + * Whether the browser is 64-bit IE. Really, this is kind of weak sauce; we + * only need this because Skype can't handle 64-bit IE yet. We need to remove + * this when we don't need it -- tracked by #601957. + */ + ie64: function() { + return UserAgent_DEPRECATED.ie() && _win64; + }, + + /** + * Check if the UA is Firefox. + * + * + * @return float|NaN Version number (if match) or NaN. + */ + firefox: function() { + return _populate() || _firefox; + }, + + + /** + * Check if the UA is Opera. + * + * + * @return float|NaN Version number (if match) or NaN. + */ + opera: function() { + return _populate() || _opera; + }, + + + /** + * Check if the UA is WebKit. + * + * + * @return float|NaN Version number (if match) or NaN. + */ + webkit: function() { + return _populate() || _webkit; + }, + + /** + * For Push + * WILL BE REMOVED VERY SOON. Use UserAgent_DEPRECATED.webkit + */ + safari: function() { + return UserAgent_DEPRECATED.webkit(); + }, + + /** + * Check if the UA is a Chrome browser. + * + * + * @return float|NaN Version number (if match) or NaN. + */ + chrome : function() { + return _populate() || _chrome; + }, + + + /** + * Check if the user is running Windows. + * + * @return bool `true' if the user's OS is Windows. + */ + windows: function() { + return _populate() || _windows; + }, + + + /** + * Check if the user is running Mac OS X. + * + * @return float|bool Returns a float if a version number is detected, + * otherwise true/false. + */ + osx: function() { + return _populate() || _osx; + }, + + /** + * Check if the user is running Linux. + * + * @return bool `true' if the user's OS is some flavor of Linux. + */ + linux: function() { + return _populate() || _linux; + }, + + /** + * Check if the user is running on an iPhone or iPod platform. + * + * @return bool `true' if the user is running some flavor of the + * iPhone OS. + */ + iphone: function() { + return _populate() || _iphone; + }, + + mobile: function() { + return _populate() || (_iphone || _ipad || _android || _mobile); + }, + + nativeApp: function() { + // webviews inside of the native apps + return _populate() || _native; + }, + + android: function() { + return _populate() || _android; + }, + + ipad: function() { + return _populate() || _ipad; + } +}; + +module.exports = UserAgent_DEPRECATED; + + +/***/ }), + +/***/ 323: +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +/** + * Copyright 2013-2015, Facebook, Inc. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. An additional grant + * of patent rights can be found in the PATENTS file in the same directory. + * + * @providesModule isEventSupported + */ + + + +var ExecutionEnvironment = __webpack_require__(324); + +var useHasFeature; +if (ExecutionEnvironment.canUseDOM) { + useHasFeature = + document.implementation && + document.implementation.hasFeature && + // always returns true in newer browsers as per the standard. + // @see http://dom.spec.whatwg.org/#dom-domimplementation-hasfeature + document.implementation.hasFeature('', '') !== true; +} + +/** + * Checks if an event is supported in the current execution environment. + * + * NOTE: This will not work correctly for non-generic events such as `change`, + * `reset`, `load`, `error`, and `select`. + * + * Borrows from Modernizr. + * + * @param {string} eventNameSuffix Event name, e.g. "click". + * @param {?boolean} capture Check if the capture phase is supported. + * @return {boolean} True if the event is supported. + * @internal + * @license Modernizr 3.0.0pre (Custom Build) | MIT + */ +function isEventSupported(eventNameSuffix, capture) { + if (!ExecutionEnvironment.canUseDOM || + capture && !('addEventListener' in document)) { + return false; + } + + var eventName = 'on' + eventNameSuffix; + var isSupported = eventName in document; + + if (!isSupported) { + var element = document.createElement('div'); + element.setAttribute(eventName, 'return;'); + isSupported = typeof element[eventName] === 'function'; + } + + if (!isSupported && useHasFeature && eventNameSuffix === 'wheel') { + // This is the only way to test support for the `wheel` event in IE9+. + isSupported = document.implementation.hasFeature('Events.wheel', '3.0'); + } + + return isSupported; +} + +module.exports = isEventSupported; + + +/***/ }), + +/***/ 324: +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +/** + * Copyright (c) 2015, Facebook, Inc. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. An additional grant + * of patent rights can be found in the PATENTS file in the same directory. + * + * @providesModule ExecutionEnvironment + */ + +/*jslint evil: true */ + + + +var canUseDOM = !!( + typeof window !== 'undefined' && + window.document && + window.document.createElement +); + +/** + * Simple, lightweight module assisting with the detection and context of + * Worker. Helps avoid circular dependencies and allows code to reason about + * whether or not they are in a Worker, even if they never include the main + * `ReactWorker` dependency. + */ +var ExecutionEnvironment = { + + canUseDOM: canUseDOM, + + canUseWorkers: typeof Worker !== 'undefined', + + canUseEventListeners: + canUseDOM && !!(window.addEventListener || window.attachEvent), + + canUseViewport: canUseDOM && !!window.screen, + + isInWorker: !canUseDOM // For now, this is true - might change in the future. + +}; + +module.exports = ExecutionEnvironment; + + +/***/ }), + +/***/ 325: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -1614,7 +2222,7 @@ function _asyncToGenerator(fn) { /***/ }), -/***/ 454: +/***/ 468: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -1937,13 +2545,13 @@ var defineProperty = __webpack_require__(5); var external_this_wp_coreData_ = __webpack_require__(83); // EXTERNAL MODULE: external {"this":["wp","notices"]} -var external_this_wp_notices_ = __webpack_require__(92); +var external_this_wp_notices_ = __webpack_require__(94); // EXTERNAL MODULE: external {"this":["wp","blockEditor"]} var external_this_wp_blockEditor_ = __webpack_require__(6); // EXTERNAL MODULE: external {"this":["wp","reusableBlocks"]} -var external_this_wp_reusableBlocks_ = __webpack_require__(121); +var external_this_wp_reusableBlocks_ = __webpack_require__(122); // EXTERNAL MODULE: external {"this":["wp","blocks"]} var external_this_wp_blocks_ = __webpack_require__(11); @@ -2856,7 +3464,7 @@ var external_this_wp_blob_ = __webpack_require__(41); var external_this_wp_compose_ = __webpack_require__(10); // EXTERNAL MODULE: external {"this":["wp","url"]} -var external_this_wp_url_ = __webpack_require__(31); +var external_this_wp_url_ = __webpack_require__(30); // CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/crop.js @@ -2874,7 +3482,7 @@ var crop_crop = Object(external_this_wp_element_["createElement"])(external_this /* harmony default export */ var library_crop = (crop_crop); // EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/upload.js -var upload = __webpack_require__(217); +var upload = __webpack_require__(216); // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/embed/constants.js var ASPECT_RATIOS = [// Common video resolutions. @@ -2904,7 +3512,7 @@ var ASPECT_RATIOS = [// Common video resolutions. var WP_EMBED_TYPE = 'wp-embed'; // EXTERNAL MODULE: ./node_modules/classnames/dedupe.js -var dedupe = __webpack_require__(117); +var dedupe = __webpack_require__(118); var dedupe_default = /*#__PURE__*/__webpack_require__.n(dedupe); // EXTERNAL MODULE: ./node_modules/memize/index.js @@ -3465,10 +4073,15 @@ function __classPrivateFieldSet(receiver, privateMap, value) { var external_this_React_ = __webpack_require__(13); var external_this_React_default = /*#__PURE__*/__webpack_require__.n(external_this_React_); +// EXTERNAL MODULE: ./node_modules/normalize-wheel/index.js +var normalize_wheel = __webpack_require__(282); +var normalize_wheel_default = /*#__PURE__*/__webpack_require__.n(normalize_wheel); + // CONCATENATED MODULE: ./node_modules/react-easy-crop/index.module.js + /** * Compute the dimension of the crop area based on media size, * aspect ratio and optionally rotation @@ -3893,7 +4506,8 @@ function (_super) { _this.onWheel = function (e) { e.preventDefault(); var point = Cropper.getMousePoint(e); - var newZoom = _this.props.zoom - e.deltaY * _this.props.zoomSpeed / 200; + var pixelY = normalize_wheel_default()(e).pixelY; + var newZoom = _this.props.zoom - pixelY * _this.props.zoomSpeed / 200; _this.setNewZoom(newZoom, point); @@ -4245,7 +4859,7 @@ var aspect_ratio_aspectRatio = Object(external_this_wp_element_["createElement"] /* harmony default export */ var aspect_ratio = (aspect_ratio_aspectRatio); // EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/search.js -var search = __webpack_require__(306); +var search = __webpack_require__(307); // CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/rotate-right.js @@ -7756,10 +8370,10 @@ var possibleConstructorReturn = __webpack_require__(24); var getPrototypeOf = __webpack_require__(19); // EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/chevron-left.js -var chevron_left = __webpack_require__(215); +var chevron_left = __webpack_require__(214); // EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/chevron-right.js -var chevron_right = __webpack_require__(214); +var chevron_right = __webpack_require__(213); // EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/edit.js + 1 modules var library_edit = __webpack_require__(274); @@ -8996,7 +9610,7 @@ var archive = Object(external_this_wp_element_["createElement"])(external_this_w /* harmony default export */ var library_archive = (archive); // EXTERNAL MODULE: external {"this":["wp","serverSideRender"]} -var external_this_wp_serverSideRender_ = __webpack_require__(87); +var external_this_wp_serverSideRender_ = __webpack_require__(88); var external_this_wp_serverSideRender_default = /*#__PURE__*/__webpack_require__.n(external_this_wp_serverSideRender_); // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/archives/edit.js @@ -10020,10 +10634,10 @@ var button_deprecated_deprecated = [{ /* harmony default export */ var button_deprecated = (button_deprecated_deprecated); // EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/link.js -var library_link = __webpack_require__(186); +var library_link = __webpack_require__(187); // EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/link-off.js -var link_off = __webpack_require__(218); +var link_off = __webpack_require__(217); // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/button/color-edit.js @@ -11110,7 +11724,7 @@ var categories_settings = { }; // EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/code.js -var code = __webpack_require__(320); +var code = __webpack_require__(325); // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/code/edit.js @@ -11134,7 +11748,8 @@ function CodeEdit(_ref) { }, placeholder: Object(external_this_wp_i18n_["__"])('Write code…'), "aria-label": Object(external_this_wp_i18n_["__"])('Code'), - preserveWhiteSpace: true + preserveWhiteSpace: true, + __unstablePastePlainText: true })); } @@ -12904,7 +13519,7 @@ var cover_deprecated_deprecated = [{ /* harmony default export */ var cover_deprecated = (cover_deprecated_deprecated); // EXTERNAL MODULE: ./node_modules/fast-average-color/dist/index.js -var dist = __webpack_require__(282); +var dist = __webpack_require__(283); var dist_default = /*#__PURE__*/__webpack_require__.n(dist); // EXTERNAL MODULE: ./node_modules/tinycolor2/tinycolor.js @@ -20677,15 +21292,7 @@ function SearchEdit(_ref) { }); onClose(); } - }, Object(external_this_wp_i18n_["__"])('Button Inside')), Object(external_this_wp_element_["createElement"])(external_this_wp_components_["MenuItem"], { - icon: buttonOnly, - onClick: function onClick() { - setAttributes({ - buttonPosition: 'button-only' - }); - onClose(); - } - }, Object(external_this_wp_i18n_["__"])('Button Only'))); + }, Object(external_this_wp_i18n_["__"])('Button Inside'))); }), 'no-button' !== buttonPosition && Object(external_this_wp_element_["createElement"])(external_this_wp_components_["ToolbarButton"], { title: Object(external_this_wp_i18n_["__"])('Use button with icon'), icon: buttonWithIcon, @@ -21499,7 +22106,7 @@ function shortcode_save_save(_ref) { } // EXTERNAL MODULE: external {"this":["wp","autop"]} -var external_this_wp_autop_ = __webpack_require__(105); +var external_this_wp_autop_ = __webpack_require__(107); // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/shortcode/transforms.js /** @@ -22072,13 +22679,13 @@ var table_deprecated_deprecated = [{ /* harmony default export */ var table_deprecated = (table_deprecated_deprecated); // EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/align-left.js -var align_left = __webpack_require__(303); +var align_left = __webpack_require__(304); // EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/align-center.js -var align_center = __webpack_require__(304); +var align_center = __webpack_require__(305); // EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/align-right.js -var align_right = __webpack_require__(305); +var align_right = __webpack_require__(306); // CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/table-row-before.js @@ -23831,7 +24438,7 @@ function _objectDestructuringEmpty(obj) { if (obj == null) throw new TypeError("Cannot destructure undefined"); } // EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/media.js -var library_media = __webpack_require__(319); +var library_media = __webpack_require__(320); // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/video/tracks-editor.js @@ -25186,7 +25793,7 @@ var social_links_settings = { }; // EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/keyboard-return.js -var keyboard_return = __webpack_require__(216); +var keyboard_return = __webpack_require__(215); // CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/social-link/icons/wordpress.js @@ -27974,7 +28581,7 @@ function _extends() { /***/ }), -/***/ 87: +/***/ 88: /***/ (function(module, exports) { (function() { module.exports = this["wp"]["serverSideRender"]; }()); @@ -28039,7 +28646,7 @@ var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*! /***/ }), -/***/ 92: +/***/ 94: /***/ (function(module, exports) { (function() { module.exports = this["wp"]["notices"]; }()); diff --git a/wp-includes/js/dist/block-library.min.js b/wp-includes/js/dist/block-library.min.js index 0afa073e0d..631dc3e628 100644 --- a/wp-includes/js/dist/block-library.min.js +++ b/wp-includes/js/dist/block-library.min.js @@ -1,12 +1,26 @@ /*! This file is auto-generated */ -this.wp=this.wp||{},this.wp.blockLibrary=function(e){var t={};function r(n){if(t[n])return t[n].exports;var c=t[n]={i:n,l:!1,exports:{}};return e[n].call(c.exports,c,c.exports,r),c.l=!0,c.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var c in e)r.d(n,c,function(t){return e[t]}.bind(null,c));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=454)}({0:function(e,t){!function(){e.exports=this.wp.element}()},1:function(e,t){!function(){e.exports=this.wp.i18n}()},10:function(e,t){!function(){e.exports=this.wp.compose}()},101:function(e,t){!function(){e.exports=this.wp.viewport}()},105:function(e,t){!function(){e.exports=this.wp.autop}()},11:function(e,t){!function(){e.exports=this.wp.blocks}()},117:function(e,t,r){var n; +this.wp=this.wp||{},this.wp.blockLibrary=function(e){var t={};function r(n){if(t[n])return t[n].exports;var c=t[n]={i:n,l:!1,exports:{}};return e[n].call(c.exports,c,c.exports,r),c.l=!0,c.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var c in e)r.d(n,c,function(t){return e[t]}.bind(null,c));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=468)}({0:function(e,t){!function(){e.exports=this.wp.element}()},1:function(e,t){!function(){e.exports=this.wp.i18n}()},10:function(e,t){!function(){e.exports=this.wp.compose}()},101:function(e,t){!function(){e.exports=this.wp.viewport}()},107:function(e,t){!function(){e.exports=this.wp.autop}()},11:function(e,t){!function(){e.exports=this.wp.blocks}()},118:function(e,t,r){var n; /*! Copyright (c) 2017 Jed Watson. Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames -*/!function(){"use strict";var r=function(){function e(){}function t(e,t){for(var r=t.length,n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}},141:function(e,t,r){"use strict";var n=r(5),c=r(14),o=r(0);function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}t.a=function(e){var t=e.icon,r=e.size,i=void 0===r?24:r,l=Object(c.a)(e,["icon","size"]);return Object(o.cloneElement)(t,function(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}},141:function(e,t,r){"use strict";var n=r(5),c=r(14),o=r(0);function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}t.a=function(e){var t=e.icon,r=e.size,i=void 0===r?24:r,l=Object(c.a)(e,["icon","size"]);return Object(o.cloneElement)(t,function(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);ra?(r=o/a,i=100,l=Math.round(i/r)):(r=a/o,l=100,i=Math.round(l/r)),(i>o||l>a||i<10||l<10)&&(i=o,l=a)),{srcLeft:n,srcTop:c,srcWidth:o,srcHeight:a,destWidth:i,destHeight:l}}},{key:"_simpleAlgorithm",value:function(e,t,r){for(var n=0,c=0,o=0,a=0,i=0,l=0;ln?-1:r===n?0:1}))[0],5),m=b[0],d=b[1],p=b[2],g=b[3],h=b[4];return g?[Math.round(m/g),Math.round(d/g),Math.round(p/g),Math.round(g/h)]:[0,0,0,0]}},{key:"_bindImageEvents",value:function(e,t,r){var n=this,c=(r=r||{})&&r.data,o=this._getDefaultColor(r),a=function(){s(),t.call(e,n.getColor(e,r),c)},i=function(){s(),t.call(e,n._prepareResult(o,new Error("Image error")),c)},l=function(){s(),t.call(e,n._prepareResult(o,new Error("Image abort")),c)},s=function(){e.removeEventListener("load",a),e.removeEventListener("error",i),e.removeEventListener("abort",l)};e.addEventListener("load",a),e.addEventListener("error",i),e.addEventListener("abort",l)}},{key:"_prepareResult",value:function(e,t){var r=e.slice(0,3),n=[].concat(r,e[3]/255),c=this._isDark(e);return{error:t,value:e,rgb:"rgb("+r.join(",")+")",rgba:"rgba("+n.join(",")+")",hex:this._arrayToHex(r),hexa:this._arrayToHex(e),isDark:c,isLight:!c}}},{key:"_getOriginalSize",value:function(e){return e instanceof HTMLImageElement?{width:e.naturalWidth,height:e.naturalHeight}:e instanceof HTMLVideoElement?{width:e.videoWidth,height:e.videoHeight}:{width:e.width,height:e.height}}},{key:"_toHex",value:function(e){var t=e.toString(16);return 1===t.length?"0"+t:t}},{key:"_arrayToHex",value:function(e){return"#"+e.map(this._toHex).join("")}},{key:"_isDark",value:function(e){return(299*e[0]+587*e[1]+114*e[2])/1e3<128}},{key:"_makeCanvas",value:function(){return"undefined"==typeof window?new OffscreenCanvas(1,1):document.createElement("canvas")}}])&&e(n.prototype,c),o&&e(n,o),r}()}()},3:function(e,t){!function(){e.exports=this.wp.components}()},30:function(e,t,r){"use strict";r.d(t,"a",(function(){return c}));var n=r(27);function c(e,t){if(e){if("string"==typeof e)return Object(n.a)(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Object(n.a)(e,t):void 0}}},303:function(e,t,r){"use strict";var n=r(0),c=r(7),o=Object(n.createElement)(c.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(n.createElement)(c.Path,{d:"M4 19.8h8.9v-1.5H4v1.5zm8.9-15.6H4v1.5h8.9V4.2zm-8.9 7v1.5h16v-1.5H4z"}));t.a=o},304:function(e,t,r){"use strict";var n=r(0),c=r(7),o=Object(n.createElement)(c.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(n.createElement)(c.Path,{d:"M16.4 4.2H7.6v1.5h8.9V4.2zM4 11.2v1.5h16v-1.5H4zm3.6 8.6h8.9v-1.5H7.6v1.5z"}));t.a=o},305:function(e,t,r){"use strict";var n=r(0),c=r(7),o=Object(n.createElement)(c.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(n.createElement)(c.Path,{d:"M11.1 19.8H20v-1.5h-8.9v1.5zm0-15.6v1.5H20V4.2h-8.9zM4 12.8h16v-1.5H4v1.5z"}));t.a=o},306:function(e,t,r){"use strict";var n=r(0),c=r(7),o=Object(n.createElement)(c.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(n.createElement)(c.Path,{d:"M13.5 6C10.5 6 8 8.5 8 11.5c0 1.1.3 2.1.9 3l-3.4 3 1 1.1 3.4-2.9c1 .9 2.2 1.4 3.6 1.4 3 0 5.5-2.5 5.5-5.5C19 8.5 16.5 6 13.5 6zm0 9.5c-2.2 0-4-1.8-4-4s1.8-4 4-4 4 1.8 4 4-1.8 4-4 4z"}));t.a=o},31:function(e,t){!function(){e.exports=this.wp.url}()},319:function(e,t,r){"use strict";var n=r(0),c=r(7),o=Object(n.createElement)(c.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(n.createElement)(c.Path,{d:"M18.7 3H5.3C4 3 3 4 3 5.3v13.4C3 20 4 21 5.3 21h13.4c1.3 0 2.3-1 2.3-2.3V5.3C21 4 20 3 18.7 3zm.8 15.7c0 .4-.4.8-.8.8H5.3c-.4 0-.8-.4-.8-.8V5.3c0-.4.4-.8.8-.8h13.4c.4 0 .8.4.8.8v13.4zM10 15l5-3-5-3v6z"}));t.a=o},320:function(e,t,r){"use strict";var n=r(0),c=r(7),o=Object(n.createElement)(c.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(n.createElement)(c.Path,{d:"M20.8 10.7l-4.3-4.3-1.1 1.1 4.3 4.3c.1.1.1.3 0 .4l-4.3 4.3 1.1 1.1 4.3-4.3c.7-.8.7-1.9 0-2.6zM4.2 11.8l4.3-4.3-1-1-4.3 4.3c-.7.7-.7 1.8 0 2.5l4.3 4.3 1.1-1.1-4.3-4.3c-.2-.1-.2-.3-.1-.4z"}));t.a=o},36:function(e,t){!function(){e.exports=this.wp.deprecated}()},37:function(e,t,r){"use strict";function n(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}r.d(t,"a",(function(){return n}))},38:function(e,t,r){"use strict";function n(e){if(Array.isArray(e))return e}r.d(t,"a",(function(){return n}))},39:function(e,t,r){"use strict";function n(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}r.d(t,"a",(function(){return n}))},4:function(e,t){!function(){e.exports=this.wp.data}()},40:function(e,t,r){"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}r.d(t,"a",(function(){return n}))},41:function(e,t){!function(){e.exports=this.wp.blob}()},43:function(e,t,r){"use strict";function n(e,t){if(null==e)return{};var r,n,c={},o=Object.keys(e);for(n=0;n=0||(c[r]=e[r]);return c}r.d(t,"a",(function(){return n}))},44:function(e,t){!function(){e.exports=this.moment}()},45:function(e,t,r){"use strict";function n(e,t,r,n,c,o,a){try{var i=e[o](a),l=i.value}catch(e){return void r(e)}i.done?t(l):Promise.resolve(l).then(n,c)}function c(e){return function(){var t=this,r=arguments;return new Promise((function(c,o){var a=e.apply(t,r);function i(e){n(a,c,o,i,l,"next",e)}function l(e){n(a,c,o,i,l,"throw",e)}i(void 0)}))}}r.d(t,"a",(function(){return c}))},454:function(e,t,r){"use strict";r.r(t),r.d(t,"__experimentalGetCoreBlocks",(function(){return Qu})),r.d(t,"registerCoreBlocks",(function(){return Xu})),r.d(t,"__experimentalRegisterExperimentalCoreBlocks",(function(){return eb}));var n={};r.r(n),r.d(n,"metadata",(function(){return je})),r.d(n,"name",(function(){return ye})),r.d(n,"settings",(function(){return _e}));var c={};r.r(c),r.d(c,"metadata",(function(){return Bt})),r.d(c,"name",(function(){return Tt})),r.d(c,"settings",(function(){return zt}));var o={};r.r(o),r.d(o,"metadata",(function(){return Qt})),r.d(o,"name",(function(){return Xt})),r.d(o,"settings",(function(){return er}));var a={};r.r(a),r.d(a,"metadata",(function(){return pr})),r.d(a,"name",(function(){return gr})),r.d(a,"settings",(function(){return hr}));var i={};r.r(i),r.d(i,"metadata",(function(){return Kr})),r.d(i,"name",(function(){return Yr})),r.d(i,"settings",(function(){return Jr}));var l={};r.r(l),r.d(l,"metadata",(function(){return tn})),r.d(l,"name",(function(){return rn})),r.d(l,"settings",(function(){return nn}));var s={};r.r(s),r.d(s,"metadata",(function(){return un})),r.d(s,"name",(function(){return bn})),r.d(s,"settings",(function(){return mn}));var u={};r.r(u),r.d(u,"metadata",(function(){return Dn})),r.d(u,"name",(function(){return Fn})),r.d(u,"settings",(function(){return Gn}));var b={};r.r(b),r.d(b,"metadata",(function(){return $n})),r.d(b,"name",(function(){return Kn})),r.d(b,"settings",(function(){return Yn}));var m={};r.r(m),r.d(m,"metadata",(function(){return nc})),r.d(m,"name",(function(){return cc})),r.d(m,"settings",(function(){return oc}));var d={};r.r(d),r.d(d,"metadata",(function(){return lc})),r.d(d,"name",(function(){return sc})),r.d(d,"settings",(function(){return uc}));var p={};r.r(p),r.d(p,"metadata",(function(){return gc})),r.d(p,"name",(function(){return hc})),r.d(p,"settings",(function(){return fc}));var g={};r.r(g),r.d(g,"metadata",(function(){return Lc})),r.d(g,"name",(function(){return Ic})),r.d(g,"settings",(function(){return Dc}));var h={};r.r(h),r.d(h,"metadata",(function(){return Zc})),r.d(h,"name",(function(){return $c})),r.d(h,"settings",(function(){return Kc}));var f={};r.r(f),r.d(f,"metadata",(function(){return Eo})),r.d(f,"name",(function(){return Co})),r.d(f,"settings",(function(){return xo}));var O={};r.r(O),r.d(O,"metadata",(function(){return sa})),r.d(O,"name",(function(){return ua})),r.d(O,"settings",(function(){return ba}));var v={};r.r(v),r.d(v,"metadata",(function(){return ha})),r.d(v,"name",(function(){return fa})),r.d(v,"settings",(function(){return Oa}));var j={};r.r(j),r.d(j,"metadata",(function(){return ya})),r.d(j,"name",(function(){return _a})),r.d(j,"settings",(function(){return wa}));var y={};r.r(y),r.d(y,"metadata",(function(){return Ua})),r.d(y,"name",(function(){return Wa})),r.d(y,"settings",(function(){return qa}));var _={};r.r(_),r.d(_,"metadata",(function(){return $a})),r.d(_,"name",(function(){return Ka})),r.d(_,"settings",(function(){return Ya}));var w={};r.r(w),r.d(w,"metadata",(function(){return li})),r.d(w,"name",(function(){return si})),r.d(w,"settings",(function(){return ui}));var k={};r.r(k),r.d(k,"metadata",(function(){return Si})),r.d(k,"name",(function(){return Pi})),r.d(k,"settings",(function(){return Bi}));var E={};r.r(E),r.d(E,"metadata",(function(){return zi})),r.d(E,"name",(function(){return Ni})),r.d(E,"settings",(function(){return Mi}));var C={};r.r(C),r.d(C,"metadata",(function(){return Hi})),r.d(C,"name",(function(){return Li})),r.d(C,"settings",(function(){return Ii}));var x={};r.r(x),r.d(x,"metadata",(function(){return Gi})),r.d(x,"name",(function(){return Ui})),r.d(x,"settings",(function(){return Wi}));var S={};r.r(S),r.d(S,"metadata",(function(){return $i})),r.d(S,"name",(function(){return Ki})),r.d(S,"settings",(function(){return Yi}));var P={};r.r(P),r.d(P,"metadata",(function(){return ul})),r.d(P,"name",(function(){return bl})),r.d(P,"settings",(function(){return ml}));var B={};r.r(B),r.d(B,"metadata",(function(){return fl})),r.d(B,"name",(function(){return Ol})),r.d(B,"settings",(function(){return vl}));var T={};r.r(T),r.d(T,"metadata",(function(){return yl})),r.d(T,"name",(function(){return _l})),r.d(T,"settings",(function(){return wl}));var z={};r.r(z),r.d(z,"metadata",(function(){return zl})),r.d(z,"name",(function(){return Nl})),r.d(z,"settings",(function(){return Ml}));var N={};r.r(N),r.d(N,"metadata",(function(){return Fl})),r.d(N,"name",(function(){return Gl})),r.d(N,"settings",(function(){return Ul}));var M={};r.r(M),r.d(M,"metadata",(function(){return Kl})),r.d(M,"name",(function(){return Yl})),r.d(M,"settings",(function(){return Jl}));var R={};r.r(R),r.d(R,"metadata",(function(){return rs})),r.d(R,"name",(function(){return ns})),r.d(R,"settings",(function(){return cs}));var V={};r.r(V),r.d(V,"metadata",(function(){return is})),r.d(V,"name",(function(){return ls})),r.d(V,"settings",(function(){return ss}));var A={};r.r(A),r.d(A,"metadata",(function(){return ds})),r.d(A,"name",(function(){return ps})),r.d(A,"settings",(function(){return gs}));var H={};r.r(H),r.d(H,"metadata",(function(){return Zs})),r.d(H,"name",(function(){return $s})),r.d(H,"settings",(function(){return Ks}));var L={};r.r(L),r.d(L,"metadata",(function(){return Js})),r.d(L,"name",(function(){return Qs})),r.d(L,"settings",(function(){return Xs}));var I={};r.r(I),r.d(I,"metadata",(function(){return nu})),r.d(I,"name",(function(){return cu})),r.d(I,"settings",(function(){return ou}));var D={};r.r(D),r.d(D,"metadata",(function(){return _u})),r.d(D,"name",(function(){return wu})),r.d(D,"settings",(function(){return ku}));var F={};r.r(F),r.d(F,"metadata",(function(){return xu})),r.d(F,"name",(function(){return Su})),r.d(F,"settings",(function(){return Pu}));var G={};r.r(G),r.d(G,"metadata",(function(){return Ru})),r.d(G,"name",(function(){return Vu})),r.d(G,"settings",(function(){return Au}));var U={};r.r(U),r.d(U,"metadata",(function(){return Du})),r.d(U,"name",(function(){return Fu})),r.d(U,"settings",(function(){return Gu}));var W={};r.r(W),r.d(W,"metadata",(function(){return $u})),r.d(W,"name",(function(){return Ku})),r.d(W,"settings",(function(){return Yu}));var q=r(17),Z=r(5),$=r(83),K=(r(92),r(6)),Y=(r(121),r(11)),J=r(2),Q=r(1),X=r(0),ee=r(7),te=Object(X.createElement)(ee.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(X.createElement)(ee.Path,{d:"M18.3 4H9.9v-.1l-.9.2c-2.3.4-4 2.4-4 4.8s1.7 4.4 4 4.8l.7.1V20h1.5V5.5h2.9V20h1.5V5.5h2.7V4z"})),re=r(9),ne=r.n(re);function ce(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function oe(e){for(var t=1;t a",attribute:"href"},rel:{type:"string",source:"attribute",selector:"figure > a",attribute:"rel"},linkClass:{type:"string",source:"attribute",selector:"figure > a",attribute:"class"},id:{type:"number"},width:{type:"number"},height:{type:"number"},linkDestination:{type:"string"},linkTarget:{type:"string",source:"attribute",selector:"figure > a",attribute:"target"}},Ee=[{attributes:ke,save:function(e){var t,r=e.attributes,n=r.url,c=r.alt,o=r.caption,a=r.align,i=r.href,l=r.width,s=r.height,u=r.id,b=ne()((t={},Object(Z.a)(t,"align".concat(a),a),Object(Z.a)(t,"is-resized",l||s),t)),m=Object(X.createElement)("img",{src:n,alt:c,className:u?"wp-image-".concat(u):null,width:l,height:s});return Object(X.createElement)("figure",{className:b},i?Object(X.createElement)("a",{href:i},m):m,!K.RichText.isEmpty(o)&&Object(X.createElement)(K.RichText.Content,{tagName:"figcaption",value:o}))}},{attributes:ke,save:function(e){var t=e.attributes,r=t.url,n=t.alt,c=t.caption,o=t.align,a=t.href,i=t.width,l=t.height,s=t.id,u=Object(X.createElement)("img",{src:r,alt:n,className:s?"wp-image-".concat(s):null,width:i,height:l});return Object(X.createElement)("figure",{className:o?"align".concat(o):null},a?Object(X.createElement)("a",{href:a},u):u,!K.RichText.isEmpty(c)&&Object(X.createElement)(K.RichText.Content,{tagName:"figcaption",value:c}))}},{attributes:ke,save:function(e){var t=e.attributes,r=t.url,n=t.alt,c=t.caption,o=t.align,a=t.href,i=t.width,l=t.height,s=i||l?{width:i,height:l}:{},u=Object(X.createElement)("img",Object(ue.a)({src:r,alt:n},s)),b={};return i?b={width:i}:"left"!==o&&"right"!==o||(b={maxWidth:"50%"}),Object(X.createElement)("figure",{className:o?"align".concat(o):null,style:b},a?Object(X.createElement)("a",{href:a},u):u,!K.RichText.isEmpty(c)&&Object(X.createElement)(K.RichText.Content,{tagName:"figcaption",value:c}))}}],Ce=r(41),xe=r(10),Se=r(31),Pe=Object(X.createElement)(ee.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(X.createElement)(ee.Path,{d:"M17.5 7v8H19V7c0-1.1-.9-2-2-2H9v1.5h8c.3 0 .5.2.5.5zM7 17.5c-.3 0-.5-.2-.5-.5V1H5v4H1v1.5h4V17c0 1.1.9 2 2 2h10.5v4H19v-4h4v-1.5H7z"})),Be=r(217),Te=[{ratio:"2.33",className:"wp-embed-aspect-21-9"},{ratio:"2.00",className:"wp-embed-aspect-18-9"},{ratio:"1.78",className:"wp-embed-aspect-16-9"},{ratio:"1.33",className:"wp-embed-aspect-4-3"},{ratio:"1.00",className:"wp-embed-aspect-1-1"},{ratio:"0.56",className:"wp-embed-aspect-9-16"},{ratio:"0.50",className:"wp-embed-aspect-1-2"}],ze=r(117),Ne=r.n(ze),Me=r(60),Re=r.n(Me);function Ve(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Ae(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:[];return t.some((function(t){return e.match(t)}))}(e,r)}))},Le=function(e){return e&&e.includes('class="wp-embedded-content"')},Ie=function(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.preview,c=e.attributes,o=(c=void 0===c?{}:c).url,a=c.providerNameSlug,i=c.type;if(o&&Object(Y.getBlockType)("core/embed")){var l=He(o),s="wordpress"===a||"wp-embed"===i,u=!s&&l&&(l.attributes.providerNameSlug!==a||!a);if(u)return Object(Y.createBlock)("core/embed",Ae({url:o},l.attributes));var b=null===(t=Object(Y.getBlockVariations)("core/embed"))||void 0===t?void 0:t.find((function(e){return"wordpress"===e.name}));if(b&&n&&Le(n.html)&&!s)return Object(Y.createBlock)("core/embed",Ae(Ae({url:o},b.attributes),r))}},De=function(e){var t=Te.reduce((function(e,t){return e[t.className]=!1,e}),{"wp-has-aspect-ratio":!1});return Ne()(e,t)};function Fe(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!r)return De(t);var n=document.implementation.createHTMLDocument("");n.body.innerHTML=e;var c=n.body.querySelector("iframe");if(c&&c.height&&c.width)for(var o=(c.width/c.height).toFixed(2),a=0;a=i.ratio)return Ne()(De(t),i.className,"wp-has-aspect-ratio")}return t}var Ge=Re()((function(e,t,r,n){var c=!(arguments.length>4&&void 0!==arguments[4])||arguments[4];if(!e)return{};var o={},a=e.type,i=void 0===a?"rich":a,l=e.html,s=e.provider_name,u=Object(J.kebabCase)((s||t).toLowerCase());return Le(l)&&(i="wp-embed"),(l||"photo"===i)&&(o.type=i,o.providerNameSlug=u),o.className=Fe(l,r,n&&c),o})); +e.exports=function(){"use strict";function e(e,t){for(var r=0;ra?(r=o/a,i=100,l=Math.round(i/r)):(r=a/o,l=100,i=Math.round(l/r)),(i>o||l>a||i<10||l<10)&&(i=o,l=a)),{srcLeft:n,srcTop:c,srcWidth:o,srcHeight:a,destWidth:i,destHeight:l}}},{key:"_simpleAlgorithm",value:function(e,t,r){for(var n=0,c=0,o=0,a=0,i=0,l=0;ln?-1:r===n?0:1}))[0],5),m=b[0],d=b[1],p=b[2],g=b[3],h=b[4];return g?[Math.round(m/g),Math.round(d/g),Math.round(p/g),Math.round(g/h)]:[0,0,0,0]}},{key:"_bindImageEvents",value:function(e,t,r){var n=this,c=(r=r||{})&&r.data,o=this._getDefaultColor(r),a=function(){s(),t.call(e,n.getColor(e,r),c)},i=function(){s(),t.call(e,n._prepareResult(o,new Error("Image error")),c)},l=function(){s(),t.call(e,n._prepareResult(o,new Error("Image abort")),c)},s=function(){e.removeEventListener("load",a),e.removeEventListener("error",i),e.removeEventListener("abort",l)};e.addEventListener("load",a),e.addEventListener("error",i),e.addEventListener("abort",l)}},{key:"_prepareResult",value:function(e,t){var r=e.slice(0,3),n=[].concat(r,e[3]/255),c=this._isDark(e);return{error:t,value:e,rgb:"rgb("+r.join(",")+")",rgba:"rgba("+n.join(",")+")",hex:this._arrayToHex(r),hexa:this._arrayToHex(e),isDark:c,isLight:!c}}},{key:"_getOriginalSize",value:function(e){return e instanceof HTMLImageElement?{width:e.naturalWidth,height:e.naturalHeight}:e instanceof HTMLVideoElement?{width:e.videoWidth,height:e.videoHeight}:{width:e.width,height:e.height}}},{key:"_toHex",value:function(e){var t=e.toString(16);return 1===t.length?"0"+t:t}},{key:"_arrayToHex",value:function(e){return"#"+e.map(this._toHex).join("")}},{key:"_isDark",value:function(e){return(299*e[0]+587*e[1]+114*e[2])/1e3<128}},{key:"_makeCanvas",value:function(){return"undefined"==typeof window?new OffscreenCanvas(1,1):document.createElement("canvas")}}])&&e(n.prototype,c),o&&e(n,o),r}()}()},3:function(e,t){!function(){e.exports=this.wp.components}()},30:function(e,t){!function(){e.exports=this.wp.url}()},304:function(e,t,r){"use strict";var n=r(0),c=r(7),o=Object(n.createElement)(c.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(n.createElement)(c.Path,{d:"M4 19.8h8.9v-1.5H4v1.5zm8.9-15.6H4v1.5h8.9V4.2zm-8.9 7v1.5h16v-1.5H4z"}));t.a=o},305:function(e,t,r){"use strict";var n=r(0),c=r(7),o=Object(n.createElement)(c.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(n.createElement)(c.Path,{d:"M16.4 4.2H7.6v1.5h8.9V4.2zM4 11.2v1.5h16v-1.5H4zm3.6 8.6h8.9v-1.5H7.6v1.5z"}));t.a=o},306:function(e,t,r){"use strict";var n=r(0),c=r(7),o=Object(n.createElement)(c.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(n.createElement)(c.Path,{d:"M11.1 19.8H20v-1.5h-8.9v1.5zm0-15.6v1.5H20V4.2h-8.9zM4 12.8h16v-1.5H4v1.5z"}));t.a=o},307:function(e,t,r){"use strict";var n=r(0),c=r(7),o=Object(n.createElement)(c.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(n.createElement)(c.Path,{d:"M13.5 6C10.5 6 8 8.5 8 11.5c0 1.1.3 2.1.9 3l-3.4 3 1 1.1 3.4-2.9c1 .9 2.2 1.4 3.6 1.4 3 0 5.5-2.5 5.5-5.5C19 8.5 16.5 6 13.5 6zm0 9.5c-2.2 0-4-1.8-4-4s1.8-4 4-4 4 1.8 4 4-1.8 4-4 4z"}));t.a=o},31:function(e,t,r){"use strict";r.d(t,"a",(function(){return c}));var n=r(27);function c(e,t){if(e){if("string"==typeof e)return Object(n.a)(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Object(n.a)(e,t):void 0}}},320:function(e,t,r){"use strict";var n=r(0),c=r(7),o=Object(n.createElement)(c.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(n.createElement)(c.Path,{d:"M18.7 3H5.3C4 3 3 4 3 5.3v13.4C3 20 4 21 5.3 21h13.4c1.3 0 2.3-1 2.3-2.3V5.3C21 4 20 3 18.7 3zm.8 15.7c0 .4-.4.8-.8.8H5.3c-.4 0-.8-.4-.8-.8V5.3c0-.4.4-.8.8-.8h13.4c.4 0 .8.4.8.8v13.4zM10 15l5-3-5-3v6z"}));t.a=o},321:function(e,t,r){"use strict";var n=r(322),c=r(323);function o(e){var t=0,r=0,n=0,c=0;return"detail"in e&&(r=e.detail),"wheelDelta"in e&&(r=-e.wheelDelta/120),"wheelDeltaY"in e&&(r=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(t=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(t=r,r=0),n=10*t,c=10*r,"deltaY"in e&&(c=e.deltaY),"deltaX"in e&&(n=e.deltaX),(n||c)&&e.deltaMode&&(1==e.deltaMode?(n*=40,c*=40):(n*=800,c*=800)),n&&!t&&(t=n<1?-1:1),c&&!r&&(r=c<1?-1:1),{spinX:t,spinY:r,pixelX:n,pixelY:c}}o.getEventType=function(){return n.firefox()?"DOMMouseScroll":c("wheel")?"wheel":"mousewheel"},e.exports=o},322:function(e,t){var r,n,c,o,a,i,l,s,u,b,m,d,p,g,h,f=!1;function O(){if(!f){f=!0;var e=navigator.userAgent,t=/(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Iceweasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))|(?:Trident\/\d+\.\d+.*rv:(\d+\.\d+))/.exec(e),O=/(Mac OS X)|(Windows)|(Linux)/.exec(e);if(d=/\b(iPhone|iP[ao]d)/.exec(e),p=/\b(iP[ao]d)/.exec(e),b=/Android/i.exec(e),g=/FBAN\/\w+;/i.exec(e),h=/Mobile/i.exec(e),m=!!/Win64/.exec(e),t){(r=t[1]?parseFloat(t[1]):t[5]?parseFloat(t[5]):NaN)&&document&&document.documentMode&&(r=document.documentMode);var v=/(?:Trident\/(\d+.\d+))/.exec(e);i=v?parseFloat(v[1])+4:r,n=t[2]?parseFloat(t[2]):NaN,c=t[3]?parseFloat(t[3]):NaN,(o=t[4]?parseFloat(t[4]):NaN)?(t=/(?:Chrome\/(\d+\.\d+))/.exec(e),a=t&&t[1]?parseFloat(t[1]):NaN):a=NaN}else r=n=c=a=o=NaN;if(O){if(O[1]){var j=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(e);l=!j||parseFloat(j[1].replace("_","."))}else l=!1;s=!!O[2],u=!!O[3]}else l=s=u=!1}}var v={ie:function(){return O()||r},ieCompatibilityMode:function(){return O()||i>r},ie64:function(){return v.ie()&&m},firefox:function(){return O()||n},opera:function(){return O()||c},webkit:function(){return O()||o},safari:function(){return v.webkit()},chrome:function(){return O()||a},windows:function(){return O()||s},osx:function(){return O()||l},linux:function(){return O()||u},iphone:function(){return O()||d},mobile:function(){return O()||d||p||b||h},nativeApp:function(){return O()||g},android:function(){return O()||b},ipad:function(){return O()||p}};e.exports=v},323:function(e,t,r){"use strict";var n,c=r(324);c.canUseDOM&&(n=document.implementation&&document.implementation.hasFeature&&!0!==document.implementation.hasFeature("","")) +/** + * Checks if an event is supported in the current execution environment. + * + * NOTE: This will not work correctly for non-generic events such as `change`, + * `reset`, `load`, `error`, and `select`. + * + * Borrows from Modernizr. + * + * @param {string} eventNameSuffix Event name, e.g. "click". + * @param {?boolean} capture Check if the capture phase is supported. + * @return {boolean} True if the event is supported. + * @internal + * @license Modernizr 3.0.0pre (Custom Build) | MIT + */,e.exports=function(e,t){if(!c.canUseDOM||t&&!("addEventListener"in document))return!1;var r="on"+e,o=r in document;if(!o){var a=document.createElement("div");a.setAttribute(r,"return;"),o="function"==typeof a[r]}return!o&&n&&"wheel"===e&&(o=document.implementation.hasFeature("Events.wheel","3.0")),o}},324:function(e,t,r){"use strict";var n=!("undefined"==typeof window||!window.document||!window.document.createElement),c={canUseDOM:n,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:n&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:n&&!!window.screen,isInWorker:!n};e.exports=c},325:function(e,t,r){"use strict";var n=r(0),c=r(7),o=Object(n.createElement)(c.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(n.createElement)(c.Path,{d:"M20.8 10.7l-4.3-4.3-1.1 1.1 4.3 4.3c.1.1.1.3 0 .4l-4.3 4.3 1.1 1.1 4.3-4.3c.7-.8.7-1.9 0-2.6zM4.2 11.8l4.3-4.3-1-1-4.3 4.3c-.7.7-.7 1.8 0 2.5l4.3 4.3 1.1-1.1-4.3-4.3c-.2-.1-.2-.3-.1-.4z"}));t.a=o},36:function(e,t){!function(){e.exports=this.wp.deprecated}()},37:function(e,t,r){"use strict";function n(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}r.d(t,"a",(function(){return n}))},38:function(e,t,r){"use strict";function n(e){if(Array.isArray(e))return e}r.d(t,"a",(function(){return n}))},39:function(e,t,r){"use strict";function n(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}r.d(t,"a",(function(){return n}))},4:function(e,t){!function(){e.exports=this.wp.data}()},40:function(e,t,r){"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}r.d(t,"a",(function(){return n}))},41:function(e,t){!function(){e.exports=this.wp.blob}()},43:function(e,t,r){"use strict";function n(e,t){if(null==e)return{};var r,n,c={},o=Object.keys(e);for(n=0;n=0||(c[r]=e[r]);return c}r.d(t,"a",(function(){return n}))},44:function(e,t){!function(){e.exports=this.moment}()},45:function(e,t,r){"use strict";function n(e,t,r,n,c,o,a){try{var i=e[o](a),l=i.value}catch(e){return void r(e)}i.done?t(l):Promise.resolve(l).then(n,c)}function c(e){return function(){var t=this,r=arguments;return new Promise((function(c,o){var a=e.apply(t,r);function i(e){n(a,c,o,i,l,"next",e)}function l(e){n(a,c,o,i,l,"throw",e)}i(void 0)}))}}r.d(t,"a",(function(){return c}))},468:function(e,t,r){"use strict";r.r(t),r.d(t,"__experimentalGetCoreBlocks",(function(){return eb})),r.d(t,"registerCoreBlocks",(function(){return tb})),r.d(t,"__experimentalRegisterExperimentalCoreBlocks",(function(){return rb}));var n={};r.r(n),r.d(n,"metadata",(function(){return je})),r.d(n,"name",(function(){return ye})),r.d(n,"settings",(function(){return we}));var c={};r.r(c),r.d(c,"metadata",(function(){return zt})),r.d(c,"name",(function(){return Nt})),r.d(c,"settings",(function(){return Mt}));var o={};r.r(o),r.d(o,"metadata",(function(){return er})),r.d(o,"name",(function(){return tr})),r.d(o,"settings",(function(){return rr}));var a={};r.r(a),r.d(a,"metadata",(function(){return hr})),r.d(a,"name",(function(){return fr})),r.d(a,"settings",(function(){return Or}));var i={};r.r(i),r.d(i,"metadata",(function(){return Xr})),r.d(i,"name",(function(){return Jr})),r.d(i,"settings",(function(){return Qr}));var l={};r.r(l),r.d(l,"metadata",(function(){return nn})),r.d(l,"name",(function(){return cn})),r.d(l,"settings",(function(){return on}));var s={};r.r(s),r.d(s,"metadata",(function(){return mn})),r.d(s,"name",(function(){return dn})),r.d(s,"settings",(function(){return pn}));var u={};r.r(u),r.d(u,"metadata",(function(){return Gn})),r.d(u,"name",(function(){return Un})),r.d(u,"settings",(function(){return Wn}));var b={};r.r(b),r.d(b,"metadata",(function(){return Kn})),r.d(b,"name",(function(){return Xn})),r.d(b,"settings",(function(){return Jn}));var m={};r.r(m),r.d(m,"metadata",(function(){return oc})),r.d(m,"name",(function(){return ac})),r.d(m,"settings",(function(){return ic}));var d={};r.r(d),r.d(d,"metadata",(function(){return uc})),r.d(d,"name",(function(){return bc})),r.d(d,"settings",(function(){return mc}));var p={};r.r(p),r.d(p,"metadata",(function(){return fc})),r.d(p,"name",(function(){return Oc})),r.d(p,"settings",(function(){return vc}));var g={};r.r(g),r.d(g,"metadata",(function(){return Dc})),r.d(g,"name",(function(){return Fc})),r.d(g,"settings",(function(){return Gc}));var h={};r.r(h),r.d(h,"metadata",(function(){return Yc})),r.d(h,"name",(function(){return Kc})),r.d(h,"settings",(function(){return Xc}));var f={};r.r(f),r.d(f,"metadata",(function(){return xo})),r.d(f,"name",(function(){return So})),r.d(f,"settings",(function(){return Po}));var O={};r.r(O),r.d(O,"metadata",(function(){return ba})),r.d(O,"name",(function(){return ma})),r.d(O,"settings",(function(){return da}));var v={};r.r(v),r.d(v,"metadata",(function(){return Oa})),r.d(v,"name",(function(){return va})),r.d(v,"settings",(function(){return ja}));var j={};r.r(j),r.d(j,"metadata",(function(){return _a})),r.d(j,"name",(function(){return ka})),r.d(j,"settings",(function(){return Ea}));var y={};r.r(y),r.d(y,"metadata",(function(){return qa})),r.d(y,"name",(function(){return Za})),r.d(y,"settings",(function(){return $a}));var w={};r.r(w),r.d(w,"metadata",(function(){return Ka})),r.d(w,"name",(function(){return Xa})),r.d(w,"settings",(function(){return Ja}));var _={};r.r(_),r.d(_,"metadata",(function(){return ui})),r.d(_,"name",(function(){return bi})),r.d(_,"settings",(function(){return mi}));var k={};r.r(k),r.d(k,"metadata",(function(){return Bi})),r.d(k,"name",(function(){return Ti})),r.d(k,"settings",(function(){return zi}));var E={};r.r(E),r.d(E,"metadata",(function(){return Mi})),r.d(E,"name",(function(){return Ri})),r.d(E,"settings",(function(){return Vi}));var C={};r.r(C),r.d(C,"metadata",(function(){return Ii})),r.d(C,"name",(function(){return Di})),r.d(C,"settings",(function(){return Fi}));var x={};r.r(x),r.d(x,"metadata",(function(){return Wi})),r.d(x,"name",(function(){return qi})),r.d(x,"settings",(function(){return Zi}));var S={};r.r(S),r.d(S,"metadata",(function(){return Ki})),r.d(S,"name",(function(){return Xi})),r.d(S,"settings",(function(){return Ji}));var P={};r.r(P),r.d(P,"metadata",(function(){return ml})),r.d(P,"name",(function(){return dl})),r.d(P,"settings",(function(){return pl}));var B={};r.r(B),r.d(B,"metadata",(function(){return vl})),r.d(B,"name",(function(){return jl})),r.d(B,"settings",(function(){return yl}));var T={};r.r(T),r.d(T,"metadata",(function(){return _l})),r.d(T,"name",(function(){return kl})),r.d(T,"settings",(function(){return El}));var z={};r.r(z),r.d(z,"metadata",(function(){return Ml})),r.d(z,"name",(function(){return Rl})),r.d(z,"settings",(function(){return Vl}));var N={};r.r(N),r.d(N,"metadata",(function(){return Ul})),r.d(N,"name",(function(){return Wl})),r.d(N,"settings",(function(){return ql}));var M={};r.r(M),r.d(M,"metadata",(function(){return Xl})),r.d(M,"name",(function(){return Jl})),r.d(M,"settings",(function(){return Ql}));var R={};r.r(R),r.d(R,"metadata",(function(){return cs})),r.d(R,"name",(function(){return os})),r.d(R,"settings",(function(){return as}));var V={};r.r(V),r.d(V,"metadata",(function(){return ss})),r.d(V,"name",(function(){return us})),r.d(V,"settings",(function(){return bs}));var A={};r.r(A),r.d(A,"metadata",(function(){return gs})),r.d(A,"name",(function(){return hs})),r.d(A,"settings",(function(){return fs}));var H={};r.r(H),r.d(H,"metadata",(function(){return Ys})),r.d(H,"name",(function(){return Ks})),r.d(H,"settings",(function(){return Xs}));var L={};r.r(L),r.d(L,"metadata",(function(){return Qs})),r.d(L,"name",(function(){return eu})),r.d(L,"settings",(function(){return tu}));var I={};r.r(I),r.d(I,"metadata",(function(){return ou})),r.d(I,"name",(function(){return au})),r.d(I,"settings",(function(){return iu}));var D={};r.r(D),r.d(D,"metadata",(function(){return ku})),r.d(D,"name",(function(){return Eu})),r.d(D,"settings",(function(){return Cu}));var F={};r.r(F),r.d(F,"metadata",(function(){return Pu})),r.d(F,"name",(function(){return Bu})),r.d(F,"settings",(function(){return Tu}));var G={};r.r(G),r.d(G,"metadata",(function(){return Au})),r.d(G,"name",(function(){return Hu})),r.d(G,"settings",(function(){return Lu}));var U={};r.r(U),r.d(U,"metadata",(function(){return Gu})),r.d(U,"name",(function(){return Uu})),r.d(U,"settings",(function(){return Wu}));var W={};r.r(W),r.d(W,"metadata",(function(){return Ku})),r.d(W,"name",(function(){return Xu})),r.d(W,"settings",(function(){return Ju}));var q=r(17),Z=r(5),$=r(83),Y=(r(94),r(6)),K=(r(122),r(11)),X=r(2),J=r(1),Q=r(0),ee=r(7),te=Object(Q.createElement)(ee.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(Q.createElement)(ee.Path,{d:"M18.3 4H9.9v-.1l-.9.2c-2.3.4-4 2.4-4 4.8s1.7 4.4 4 4.8l.7.1V20h1.5V5.5h2.9V20h1.5V5.5h2.7V4z"})),re=r(9),ne=r.n(re);function ce(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function oe(e){for(var t=1;t a",attribute:"href"},rel:{type:"string",source:"attribute",selector:"figure > a",attribute:"rel"},linkClass:{type:"string",source:"attribute",selector:"figure > a",attribute:"class"},id:{type:"number"},width:{type:"number"},height:{type:"number"},linkDestination:{type:"string"},linkTarget:{type:"string",source:"attribute",selector:"figure > a",attribute:"target"}},Ee=[{attributes:ke,save:function(e){var t,r=e.attributes,n=r.url,c=r.alt,o=r.caption,a=r.align,i=r.href,l=r.width,s=r.height,u=r.id,b=ne()((t={},Object(Z.a)(t,"align".concat(a),a),Object(Z.a)(t,"is-resized",l||s),t)),m=Object(Q.createElement)("img",{src:n,alt:c,className:u?"wp-image-".concat(u):null,width:l,height:s});return Object(Q.createElement)("figure",{className:b},i?Object(Q.createElement)("a",{href:i},m):m,!Y.RichText.isEmpty(o)&&Object(Q.createElement)(Y.RichText.Content,{tagName:"figcaption",value:o}))}},{attributes:ke,save:function(e){var t=e.attributes,r=t.url,n=t.alt,c=t.caption,o=t.align,a=t.href,i=t.width,l=t.height,s=t.id,u=Object(Q.createElement)("img",{src:r,alt:n,className:s?"wp-image-".concat(s):null,width:i,height:l});return Object(Q.createElement)("figure",{className:o?"align".concat(o):null},a?Object(Q.createElement)("a",{href:a},u):u,!Y.RichText.isEmpty(c)&&Object(Q.createElement)(Y.RichText.Content,{tagName:"figcaption",value:c}))}},{attributes:ke,save:function(e){var t=e.attributes,r=t.url,n=t.alt,c=t.caption,o=t.align,a=t.href,i=t.width,l=t.height,s=i||l?{width:i,height:l}:{},u=Object(Q.createElement)("img",Object(ue.a)({src:r,alt:n},s)),b={};return i?b={width:i}:"left"!==o&&"right"!==o||(b={maxWidth:"50%"}),Object(Q.createElement)("figure",{className:o?"align".concat(o):null,style:b},a?Object(Q.createElement)("a",{href:a},u):u,!Y.RichText.isEmpty(c)&&Object(Q.createElement)(Y.RichText.Content,{tagName:"figcaption",value:c}))}}],Ce=r(41),xe=r(10),Se=r(30),Pe=Object(Q.createElement)(ee.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(Q.createElement)(ee.Path,{d:"M17.5 7v8H19V7c0-1.1-.9-2-2-2H9v1.5h8c.3 0 .5.2.5.5zM7 17.5c-.3 0-.5-.2-.5-.5V1H5v4H1v1.5h4V17c0 1.1.9 2 2 2h10.5v4H19v-4h4v-1.5H7z"})),Be=r(216),Te=[{ratio:"2.33",className:"wp-embed-aspect-21-9"},{ratio:"2.00",className:"wp-embed-aspect-18-9"},{ratio:"1.78",className:"wp-embed-aspect-16-9"},{ratio:"1.33",className:"wp-embed-aspect-4-3"},{ratio:"1.00",className:"wp-embed-aspect-1-1"},{ratio:"0.56",className:"wp-embed-aspect-9-16"},{ratio:"0.50",className:"wp-embed-aspect-1-2"}],ze=r(118),Ne=r.n(ze),Me=r(60),Re=r.n(Me);function Ve(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Ae(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:[];return t.some((function(t){return e.match(t)}))}(e,r)}))},Le=function(e){return e&&e.includes('class="wp-embedded-content"')},Ie=function(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.preview,c=e.attributes,o=(c=void 0===c?{}:c).url,a=c.providerNameSlug,i=c.type;if(o&&Object(K.getBlockType)("core/embed")){var l=He(o),s="wordpress"===a||"wp-embed"===i,u=!s&&l&&(l.attributes.providerNameSlug!==a||!a);if(u)return Object(K.createBlock)("core/embed",Ae({url:o},l.attributes));var b=null===(t=Object(K.getBlockVariations)("core/embed"))||void 0===t?void 0:t.find((function(e){return"wordpress"===e.name}));if(b&&n&&Le(n.html)&&!s)return Object(K.createBlock)("core/embed",Ae(Ae({url:o},b.attributes),r))}},De=function(e){var t=Te.reduce((function(e,t){return e[t.className]=!1,e}),{"wp-has-aspect-ratio":!1});return Ne()(e,t)};function Fe(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!r)return De(t);var n=document.implementation.createHTMLDocument("");n.body.innerHTML=e;var c=n.body.querySelector("iframe");if(c&&c.height&&c.width)for(var o=(c.width/c.height).toFixed(2),a=0;a=i.ratio)return Ne()(De(t),i.className,"wp-has-aspect-ratio")}return t}var Ge=Re()((function(e,t,r,n){var c=!(arguments.length>4&&void 0!==arguments[4])||arguments[4];if(!e)return{};var o={},a=e.type,i=void 0===a?"rich":a,l=e.html,s=e.provider_name,u=Object(X.kebabCase)((s||t).toLowerCase());return Le(l)&&(i="wp-embed"),(l||"photo"===i)&&(o.type=i,o.providerNameSlug=u),o.className=Fe(l,r,n&&c),o})); /*! ***************************************************************************** Copyright (c) Microsoft Corporation. @@ -21,9 +35,9 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ***************************************************************************** */ -var Ue=function(e,t){return(Ue=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)};var We=function(){return(We=Object.assign||function(e){for(var t,r=1,n=arguments.length;ru*c?{width:u*c,height:u}:{width:s,height:s/c}}function Ke(e,t,r,n,c){void 0===c&&(c=0);var o=ot(t.width,t.height,c),a=o.width,i=o.height;return{x:Ye(e.x,a,r.width,n),y:Ye(e.y,i,r.height,n)}}function Ye(e,t,r,n){var c=t*n/2-r/2;return Math.min(c,Math.max(e,-c))}function Je(e,t){return Math.sqrt(Math.pow(e.y-t.y,2)+Math.pow(e.x-t.x,2))}function Qe(e,t){return 180*Math.atan2(t.y-e.y,t.x-e.x)/Math.PI}function Xe(e,t,r,n,c,o,a){void 0===o&&(o=0),void 0===a&&(a=!0);var i=a&&0===o?et:tt,l={x:i(100,((t.width-r.width/c)/2-e.x/c)/t.width*100),y:i(100,((t.height-r.height/c)/2-e.y/c)/t.height*100),width:i(100,r.width/t.width*100/c),height:i(100,r.height/t.height*100/c)},s=Math.round(i(t.naturalWidth,l.width*t.naturalWidth/100)),u=Math.round(i(t.naturalHeight,l.height*t.naturalHeight/100)),b=t.naturalWidth>=t.naturalHeight*n?{width:Math.round(u*n),height:u}:{width:s,height:Math.round(s/n)};return{croppedAreaPercentages:l,croppedAreaPixels:We(We({},b),{x:Math.round(i(t.naturalWidth-b.width,l.x*t.naturalWidth/100)),y:Math.round(i(t.naturalHeight-b.height,l.y*t.naturalHeight/100))})}}function et(e,t){return Math.min(e,Math.max(0,t))}function tt(e,t){return t}function rt(e,t,r){var n=t.width/t.naturalWidth,c=function(e,t,r){var n=t.width/t.naturalWidth;if(r)return r.height>r.width?r.height/n/e.height:r.width/n/e.width;var c=e.width/e.height;return t.naturalWidth>=t.naturalHeight*c?t.naturalHeight/e.height:t.naturalWidth/e.width}(e,t,r),o=n*c;return{crop:{x:((t.naturalWidth-e.width)/2-e.x)*o,y:((t.naturalHeight-e.height)/2-e.y)*o},zoom:c}}function nt(e,t){return{x:(t.x+e.x)/2,y:(t.y+e.y)/2}}function ct(e,t,r,n,c){var o=Math.cos,a=Math.sin,i=c*Math.PI/180;return[(e-r)*o(i)-(t-n)*a(i)+r,(e-r)*a(i)+(t-n)*o(i)+n]}function ot(e,t,r){var n=e/2,c=t/2,o=[ct(0,0,n,c,r),ct(e,0,n,c,r),ct(e,t,n,c,r),ct(0,t,n,c,r)],a=Math.min.apply(Math,o.map((function(e){return e[0]}))),i=Math.max.apply(Math,o.map((function(e){return e[0]}))),l=Math.min.apply(Math,o.map((function(e){return e[1]})));return{width:i-a,height:Math.max.apply(Math,o.map((function(e){return e[1]})))-l}}function at(){for(var e=[],t=0;t0})).join(" ").trim()}var it=function(e){function t(){var r=null!==e&&e.apply(this,arguments)||this;return r.imageRef=null,r.videoRef=null,r.containerRef=null,r.styleRef=null,r.containerRect=null,r.mediaSize={width:0,height:0,naturalWidth:0,naturalHeight:0},r.dragStartPosition={x:0,y:0},r.dragStartCrop={x:0,y:0},r.lastPinchDistance=0,r.lastPinchRotation=0,r.rafDragTimeout=null,r.rafPinchTimeout=null,r.wheelTimer=null,r.state={cropSize:null,hasWheelJustStarted:!1},r.preventZoomSafari=function(e){return e.preventDefault()},r.cleanEvents=function(){document.removeEventListener("mousemove",r.onMouseMove),document.removeEventListener("mouseup",r.onDragStopped),document.removeEventListener("touchmove",r.onTouchMove),document.removeEventListener("touchend",r.onDragStopped)},r.clearScrollEvent=function(){r.containerRef&&r.containerRef.removeEventListener("wheel",r.onWheel),r.wheelTimer&&clearTimeout(r.wheelTimer)},r.onMediaLoad=function(){r.computeSizes(),r.emitCropData(),r.setInitialCrop(),r.props.onMediaLoaded&&r.props.onMediaLoaded(r.mediaSize)},r.setInitialCrop=function(){var e=r.props,t=e.initialCroppedAreaPixels,n=e.cropSize;if(t){var c=rt(t,r.mediaSize,n),o=c.crop,a=c.zoom;r.props.onCropChange(o),r.props.onZoomChange&&r.props.onZoomChange(a)}},r.computeSizes=function(){var e,t,n,c,o,a,i=r.imageRef||r.videoRef;if(i&&r.containerRef){r.containerRect=r.containerRef.getBoundingClientRect(),r.mediaSize={width:i.offsetWidth,height:i.offsetHeight,naturalWidth:(null===(e=r.imageRef)||void 0===e?void 0:e.naturalWidth)||(null===(t=r.videoRef)||void 0===t?void 0:t.videoWidth)||0,naturalHeight:(null===(n=r.imageRef)||void 0===n?void 0:n.naturalHeight)||(null===(c=r.videoRef)||void 0===c?void 0:c.videoHeight)||0};var l=r.props.cropSize?r.props.cropSize:$e(i.offsetWidth,i.offsetHeight,r.containerRect.width,r.containerRect.height,r.props.aspect,r.props.rotation);(null===(o=r.state.cropSize)||void 0===o?void 0:o.height)===l.height&&(null===(a=r.state.cropSize)||void 0===a?void 0:a.width)===l.width||r.props.onCropSizeChange&&r.props.onCropSizeChange(l),r.setState({cropSize:l},r.recomputeCropPosition)}},r.onMouseDown=function(e){e.preventDefault(),document.addEventListener("mousemove",r.onMouseMove),document.addEventListener("mouseup",r.onDragStopped),r.onDragStart(t.getMousePoint(e))},r.onMouseMove=function(e){return r.onDrag(t.getMousePoint(e))},r.onTouchStart=function(e){e.preventDefault(),document.addEventListener("touchmove",r.onTouchMove,{passive:!1}),document.addEventListener("touchend",r.onDragStopped),2===e.touches.length?r.onPinchStart(e):1===e.touches.length&&r.onDragStart(t.getTouchPoint(e.touches[0]))},r.onTouchMove=function(e){e.preventDefault(),2===e.touches.length?r.onPinchMove(e):1===e.touches.length&&r.onDrag(t.getTouchPoint(e.touches[0]))},r.onDragStart=function(e){var t,n,c=e.x,o=e.y;r.dragStartPosition={x:c,y:o},r.dragStartCrop=We({},r.props.crop),null===(n=(t=r.props).onInteractionStart)||void 0===n||n.call(t)},r.onDrag=function(e){var t=e.x,n=e.y;r.rafDragTimeout&&window.cancelAnimationFrame(r.rafDragTimeout),r.rafDragTimeout=window.requestAnimationFrame((function(){if(r.state.cropSize&&void 0!==t&&void 0!==n){var e=t-r.dragStartPosition.x,c=n-r.dragStartPosition.y,o={x:r.dragStartCrop.x+e,y:r.dragStartCrop.y+c},a=r.props.restrictPosition?Ke(o,r.mediaSize,r.state.cropSize,r.props.zoom,r.props.rotation):o;r.props.onCropChange(a)}}))},r.onDragStopped=function(){var e,t;r.cleanEvents(),r.emitCropData(),null===(t=(e=r.props).onInteractionEnd)||void 0===t||t.call(e)},r.onWheel=function(e){e.preventDefault();var n=t.getMousePoint(e),c=r.props.zoom-e.deltaY*r.props.zoomSpeed/200;r.setNewZoom(c,n),r.state.hasWheelJustStarted||r.setState({hasWheelJustStarted:!0},(function(){var e,t;return null===(t=(e=r.props).onInteractionStart)||void 0===t?void 0:t.call(e)})),r.wheelTimer&&clearTimeout(r.wheelTimer),r.wheelTimer=window.setTimeout((function(){return r.setState({hasWheelJustStarted:!1},(function(){var e,t;return null===(t=(e=r.props).onInteractionEnd)||void 0===t?void 0:t.call(e)}))}),250)},r.getPointOnContainer=function(e){var t=e.x,n=e.y;if(!r.containerRect)throw new Error("The Cropper is not mounted");return{x:r.containerRect.width/2-(t-r.containerRect.left),y:r.containerRect.height/2-(n-r.containerRect.top)}},r.getPointOnMedia=function(e){var t=e.x,n=e.y,c=r.props,o=c.crop,a=c.zoom;return{x:(t+o.x)/a,y:(n+o.y)/a}},r.setNewZoom=function(e,t){if(r.state.cropSize&&r.props.onZoomChange){var n=r.getPointOnContainer(t),c=r.getPointOnMedia(n),o=Math.min(r.props.maxZoom,Math.max(e,r.props.minZoom)),a={x:c.x*o-n.x,y:c.y*o-n.y},i=r.props.restrictPosition?Ke(a,r.mediaSize,r.state.cropSize,o,r.props.rotation):a;r.props.onCropChange(i),r.props.onZoomChange(o)}},r.getCropData=function(){return r.state.cropSize?Xe(r.props.restrictPosition?Ke(r.props.crop,r.mediaSize,r.state.cropSize,r.props.zoom,r.props.rotation):r.props.crop,r.mediaSize,r.state.cropSize,r.getAspect(),r.props.zoom,r.props.rotation,r.props.restrictPosition):null},r.emitCropData=function(){var e=r.getCropData();if(e){var t=e.croppedAreaPercentages,n=e.croppedAreaPixels;r.props.onCropComplete&&r.props.onCropComplete(t,n),r.props.onCropAreaChange&&r.props.onCropAreaChange(t,n)}},r.emitCropAreaChange=function(){var e=r.getCropData();if(e){var t=e.croppedAreaPercentages,n=e.croppedAreaPixels;r.props.onCropAreaChange&&r.props.onCropAreaChange(t,n)}},r.recomputeCropPosition=function(){if(r.state.cropSize){var e=r.props.restrictPosition?Ke(r.props.crop,r.mediaSize,r.state.cropSize,r.props.zoom,r.props.rotation):r.props.crop;r.props.onCropChange(e),r.emitCropData()}},r}return function(e,t){function r(){this.constructor=e}Ue(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}(t,e),t.prototype.componentDidMount=function(){window.addEventListener("resize",this.computeSizes),this.containerRef&&(this.props.zoomWithScroll&&this.containerRef.addEventListener("wheel",this.onWheel,{passive:!1}),this.containerRef.addEventListener("gesturestart",this.preventZoomSafari),this.containerRef.addEventListener("gesturechange",this.preventZoomSafari)),this.props.disableAutomaticStylesInjection||(this.styleRef=document.createElement("style"),this.styleRef.setAttribute("type","text/css"),this.styleRef.innerHTML=".reactEasyCrop_Container {\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n overflow: hidden;\n user-select: none;\n touch-action: none;\n cursor: move;\n}\n\n.reactEasyCrop_Image,\n.reactEasyCrop_Video {\n max-width: 100%;\n max-height: 100%;\n margin: auto;\n position: absolute;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n will-change: transform; /* this improves performances and prevent painting issues on iOS Chrome */\n}\n\n.reactEasyCrop_CropArea {\n position: absolute;\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n border: 1px solid rgba(255, 255, 255, 0.5);\n box-sizing: border-box;\n box-shadow: 0 0 0 9999em;\n color: rgba(0, 0, 0, 0.5);\n overflow: hidden;\n}\n\n.reactEasyCrop_CropAreaRound {\n border-radius: 50%;\n}\n\n.reactEasyCrop_CropAreaGrid::before {\n content: ' ';\n box-sizing: border-box;\n position: absolute;\n border: 1px solid rgba(255, 255, 255, 0.5);\n top: 0;\n bottom: 0;\n left: 33.33%;\n right: 33.33%;\n border-top: 0;\n border-bottom: 0;\n}\n\n.reactEasyCrop_CropAreaGrid::after {\n content: ' ';\n box-sizing: border-box;\n position: absolute;\n border: 1px solid rgba(255, 255, 255, 0.5);\n top: 33.33%;\n bottom: 33.33%;\n left: 0;\n right: 0;\n border-left: 0;\n border-right: 0;\n}\n",document.head.appendChild(this.styleRef)),this.imageRef&&this.imageRef.complete&&this.onMediaLoad()},t.prototype.componentWillUnmount=function(){window.removeEventListener("resize",this.computeSizes),this.containerRef&&(this.containerRef.removeEventListener("gesturestart",this.preventZoomSafari),this.containerRef.removeEventListener("gesturechange",this.preventZoomSafari)),this.styleRef&&this.styleRef.remove(),this.cleanEvents(),this.props.zoomWithScroll&&this.clearScrollEvent()},t.prototype.componentDidUpdate=function(e){var t,r,n,c,o,a,i,l;e.rotation!==this.props.rotation?(this.computeSizes(),this.recomputeCropPosition()):e.aspect!==this.props.aspect?this.computeSizes():e.zoom!==this.props.zoom?this.recomputeCropPosition():(null===(t=e.cropSize)||void 0===t?void 0:t.height)!==(null===(r=this.props.cropSize)||void 0===r?void 0:r.height)||(null===(n=e.cropSize)||void 0===n?void 0:n.width)!==(null===(c=this.props.cropSize)||void 0===c?void 0:c.width)?this.computeSizes():(null===(o=e.crop)||void 0===o?void 0:o.x)===(null===(a=this.props.crop)||void 0===a?void 0:a.x)&&(null===(i=e.crop)||void 0===i?void 0:i.y)===(null===(l=this.props.crop)||void 0===l?void 0:l.y)||this.emitCropAreaChange(),e.zoomWithScroll!==this.props.zoomWithScroll&&this.containerRef&&(this.props.zoomWithScroll?this.containerRef.addEventListener("wheel",this.onWheel,{passive:!1}):this.clearScrollEvent())},t.prototype.getAspect=function(){var e=this.props,t=e.cropSize,r=e.aspect;return t?t.width/t.height:r},t.prototype.onPinchStart=function(e){var r=t.getTouchPoint(e.touches[0]),n=t.getTouchPoint(e.touches[1]);this.lastPinchDistance=Je(r,n),this.lastPinchRotation=Qe(r,n),this.onDragStart(nt(r,n))},t.prototype.onPinchMove=function(e){var r=this,n=t.getTouchPoint(e.touches[0]),c=t.getTouchPoint(e.touches[1]),o=nt(n,c);this.onDrag(o),this.rafPinchTimeout&&window.cancelAnimationFrame(this.rafPinchTimeout),this.rafPinchTimeout=window.requestAnimationFrame((function(){var e=Je(n,c),t=r.props.zoom*(e/r.lastPinchDistance);r.setNewZoom(t,o),r.lastPinchDistance=e;var a=Qe(n,c),i=r.props.rotation+(a-r.lastPinchRotation);r.props.onRotationChange&&r.props.onRotationChange(i),r.lastPinchRotation=a}))},t.prototype.render=function(){var e=this,t=this.props,r=t.image,n=t.video,c=t.mediaProps,o=t.transform,a=t.crop,i=a.x,l=a.y,s=t.rotation,u=t.zoom,b=t.cropShape,m=t.showGrid,d=t.style,p=d.containerStyle,g=d.cropAreaStyle,h=d.mediaStyle,f=t.classes,O=f.containerClassName,v=f.cropAreaClassName,j=f.mediaClassName;return Ze.a.createElement("div",{onMouseDown:this.onMouseDown,onTouchStart:this.onTouchStart,ref:function(t){return e.containerRef=t},"data-testid":"container",style:p,className:at("reactEasyCrop_Container",O)},r?Ze.a.createElement("img",We({alt:"",className:at("reactEasyCrop_Image",j)},c,{src:r,ref:function(t){return e.imageRef=t},style:We(We({},h),{transform:o||"translate("+i+"px, "+l+"px) rotate("+s+"deg) scale("+u+")"}),onLoad:this.onMediaLoad})):n&&Ze.a.createElement("video",We({autoPlay:!0,loop:!0,muted:!0,className:at("reactEasyCrop_Video",j)},c,{src:n,ref:function(t){return e.videoRef=t},onLoadedMetadata:this.onMediaLoad,style:We(We({},h),{transform:o||"translate("+i+"px, "+l+"px) rotate("+s+"deg) scale("+u+")"}),controls:!1})),this.state.cropSize&&Ze.a.createElement("div",{style:We(We({},g),{width:this.state.cropSize.width,height:this.state.cropSize.height}),"data-testid":"cropper",className:at("reactEasyCrop_CropArea","round"===b&&"reactEasyCrop_CropAreaRound",m&&"reactEasyCrop_CropAreaGrid",v)}))},t.defaultProps={zoom:1,rotation:0,aspect:4/3,maxZoom:3,minZoom:1,cropShape:"rect",showGrid:!0,style:{},classes:{},mediaProps:{},zoomSpeed:1,restrictPosition:!0,zoomWithScroll:!0},t.getMousePoint=function(e){return{x:Number(e.clientX),y:Number(e.clientY)}},t.getTouchPoint=function(e){return{x:Number(e.clientX),y:Number(e.clientY)}},t}(Ze.a.Component),lt=r(161),st=Object(X.createElement)(ee.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(X.createElement)(ee.Path,{d:"M18.5 5.5h-13c-1.1 0-2 .9-2 2v9c0 1.1.9 2 2 2h13c1.1 0 2-.9 2-2v-9c0-1.1-.9-2-2-2zm.5 11c0 .3-.2.5-.5.5h-13c-.3 0-.5-.2-.5-.5v-9c0-.3.2-.5.5-.5h13c.3 0 .5.2.5.5v9zM6.5 12H8v-2h2V8.5H6.5V12zm9.5 2h-2v1.5h3.5V12H16v2z"})),ut=r(306),bt=Object(X.createElement)(ee.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(X.createElement)(ee.Path,{d:"M15.1 4.8l-3-2.5V4c-4.4 0-8 3.6-8 8 0 3.7 2.5 6.9 6 7.7.3.1.6.1 1 .2l.2-1.5c-.4 0-.7-.1-1.1-.2l-.1.2v-.2c-2.6-.8-4.5-3.3-4.5-6.2 0-3.6 2.9-6.5 6.5-6.5v1.8l3-2.5zM20 11c-.2-1.4-.7-2.7-1.6-3.8l-1.2.8c.7.9 1.1 2 1.3 3.1L20 11zm-1.5 1.8c-.1.5-.2 1.1-.4 1.6s-.5 1-.8 1.5l1.2.9c.4-.5.8-1.1 1-1.8s.5-1.3.5-2l-1.5-.2zm-5.6 5.6l.2 1.5c1.4-.2 2.7-.7 3.8-1.6l-.9-1.1c-.9.7-2 1.1-3.1 1.2z"})),mt=r(47),dt=r.n(mt),pt={position:"bottom right",isAlternate:!0};function gt(e){var t=e.aspectRatios,r=e.isDisabled,n=e.label,c=e.onClick,o=e.value;return Object(X.createElement)(me.MenuGroup,{label:n},t.map((function(e){var t=e.title,n=e.aspect;return Object(X.createElement)(me.MenuItem,{key:n,disabled:r,onClick:function(){c(n)},role:"menuitemradio",isSelected:n===o,icon:n===o?lt.a:void 0},t)})))}function ht(e){var t=e.toggleProps,r=e.isDisabled,n=e.onClick,c=e.value,o=e.defaultValue;return Object(X.createElement)(me.DropdownMenu,{icon:st,label:Object(Q.__)("Aspect Ratio"),popoverProps:pt,toggleProps:t,className:"wp-block-image__aspect-ratio"},(function(e){var t=e.onClose;return Object(X.createElement)(X.Fragment,null,Object(X.createElement)(gt,{isDisabled:r,onClick:function(e){n(e),t()},value:c,aspectRatios:[{title:Object(Q.__)("Original"),aspect:o},{title:Object(Q.__)("Square"),aspect:1}]}),Object(X.createElement)(gt,{label:Object(Q.__)("Landscape"),isDisabled:r,onClick:function(e){n(e),t()},value:c,aspectRatios:[{title:Object(Q.__)("16:10"),aspect:1.6},{title:Object(Q.__)("16:9"),aspect:16/9},{title:Object(Q.__)("4:3"),aspect:4/3},{title:Object(Q.__)("3:2"),aspect:1.5}]}),Object(X.createElement)(gt,{label:Object(Q.__)("Portrait"),isDisabled:r,onClick:function(e){n(e),t()},value:c,aspectRatios:[{title:Object(Q.__)("10:16"),aspect:.625},{title:Object(Q.__)("9:16"),aspect:9/16},{title:Object(Q.__)("3:4"),aspect:3/4},{title:Object(Q.__)("2:3"),aspect:2/3}]}))}))}function ft(e){var t=e.id,r=e.url,n=e.setAttributes,c=e.naturalWidth,o=e.naturalHeight,a=e.width,i=e.height,l=e.clientWidth,s=e.setIsEditingImage,u=Object(de.useDispatch)("core/notices").createErrorNotice,b=Object(X.useState)(!1),m=Object(be.a)(b,2),d=m[0],p=m[1],g=Object(X.useState)(null),h=Object(be.a)(g,2),f=h[0],O=h[1],v=Object(X.useState)({x:0,y:0}),j=Object(be.a)(v,2),y=j[0],_=j[1],w=Object(X.useState)(100),k=Object(be.a)(w,2),E=k[0],C=k[1],x=Object(X.useState)(c/o),S=Object(be.a)(x,2),P=S[0],B=S[1],T=Object(X.useState)(0),z=Object(be.a)(T,2),N=z[0],M=z[1],R=Object(X.useState)(),V=Object(be.a)(R,2),A=V[0],H=V[1],L=a,I=i||l*o/c,D=c/o;return N%180==90&&(I=l*c/o,D=o/c),Object(X.createElement)(X.Fragment,null,Object(X.createElement)("div",{className:ne()("wp-block-image__crop-area",{"is-applying":d}),style:{width:L,height:I}},Object(X.createElement)(it,{image:A||r,disabled:d,minZoom:1,maxZoom:3,crop:y,zoom:E/100,aspect:P,onCropChange:_,onCropComplete:function(e){O(e)},onZoomChange:function(e){C(100*e)}}),d&&Object(X.createElement)(me.Spinner,null)),Object(X.createElement)(K.BlockControls,null,Object(X.createElement)(me.ToolbarGroup,null,Object(X.createElement)(me.Dropdown,{contentClassName:"wp-block-image__zoom",popoverProps:pt,renderToggle:function(e){var t=e.isOpen,r=e.onToggle;return Object(X.createElement)(me.ToolbarButton,{icon:ut.a,label:Object(Q.__)("Zoom"),onClick:r,"aria-expanded":t,disabled:d})},renderContent:function(){return Object(X.createElement)(me.RangeControl,{min:100,max:300,value:Math.round(E),onChange:C})}}),Object(X.createElement)(me.ToolbarItem,null,(function(e){return Object(X.createElement)(ht,{toggleProps:e,isDisabled:d,onClick:B,value:P,defaultValue:c/o})}))),Object(X.createElement)(me.ToolbarGroup,null,Object(X.createElement)(me.ToolbarButton,{icon:bt,label:Object(Q.__)("Rotate"),onClick:function(){var e=(N+90)%360;if(0===e)return H(),M(e),B(1/P),void _({x:-y.y*D,y:y.x*D});var t=new window.Image;t.src=r,t.onload=function(t){var r=document.createElement("canvas"),n=0,c=0;e%180?(r.width=t.target.height,r.height=t.target.width):(r.width=t.target.width,r.height=t.target.height),90!==e&&180!==e||(n=r.width),270!==e&&180!==e||(c=r.height);var o=r.getContext("2d");o.translate(n,c),o.rotate(e*Math.PI/180),o.drawImage(t.target,0,0),r.toBlob((function(t){H(URL.createObjectURL(t)),M(e),B(1/P),_({x:-y.y*D,y:y.x*D})}))}},disabled:d})),Object(X.createElement)(me.ToolbarGroup,null,Object(X.createElement)(me.ToolbarButton,{onClick:function(){p(!0);var e={};(f.width<99.9||f.height<99.9)&&(e=f),N>0&&(e.rotation=N),e.src=r,dt()({path:"/wp/v2/media/".concat(t,"/edit"),method:"POST",data:e}).then((function(e){n({id:e.id,url:e.source_url,height:i&&a?a/P:void 0})})).catch((function(e){u(Object(Q.sprintf)(Object(Q.__)("Could not edit image. %s"),e.message),{id:"image-editing-error",type:"snackbar"})})).finally((function(){p(!1),s(!1)}))},disabled:d},Object(Q.__)("Apply")),Object(X.createElement)(me.ToolbarButton,{onClick:function(){return s(!1)}},Object(Q.__)("Cancel")))))}var Ot=["image"];function vt(e){var t=e.attributes,r=t.url,n=void 0===r?"":r,c=t.alt,o=t.caption,a=t.align,i=t.id,l=t.href,s=t.rel,u=t.linkClass,b=t.linkDestination,m=t.title,d=t.width,p=t.height,g=t.linkTarget,h=t.sizeSlug,f=e.setAttributes,O=e.isSelected,v=e.insertBlocksAfter,j=e.onReplace,y=e.onSelectImage,_=e.onSelectURL,w=e.onUploadError,k=e.containerRef,E=Object(X.useRef)(),C=Object(xe.usePrevious)(n),x=Object(de.useSelect)((function(e){var t=e("core").getMedia;return i&&O?t(i):null}),[i,O]),S=Object(de.useSelect)((function(e){var t=e("core/block-editor").getSettings;return Object(J.pick)(t(),["imageEditing","imageSizes","isRTL","maxWidth","mediaUpload"])})),P=S.imageEditing,B=S.imageSizes,T=S.isRTL,z=S.maxWidth,N=S.mediaUpload,M=Object(de.useDispatch)("core/block-editor").toggleSelection,R=Object(de.useDispatch)("core/notices"),V=R.createErrorNotice,A=R.createSuccessNotice,H=Object(xe.useViewportMatch)("medium"),L=Object(X.useState)(!1),I=Object(be.a)(L,2),D=I[0],F=I[1],G=Object(J.includes)(["wide","full"],a),U=Object(X.useState)({}),W=Object(be.a)(U,2),q=W[0],Z=q.naturalWidth,$=q.naturalHeight,ee=W[1],te=Object(X.useState)(!1),re=Object(be.a)(te,2),ne=re[0],ce=re[1],oe=Object(X.useState)(),ae=Object(be.a)(oe,2),ie=ae[0],le=ae[1],se=function(e,t){var r=Object(X.useState)(),n=Object(be.a)(r,2),c=n[0],o=n[1];function a(){o(e.current.clientWidth)}return Object(X.useEffect)(a,t),Object(X.useEffect)((function(){var t=e.current.ownerDocument.defaultView;return t.addEventListener("resize",a),function(){t.removeEventListener("resize",a)}}),[]),c}(k,[a]),ue=!G&&H,pe=Object(J.map)(Object(J.filter)(B,(function(e){var t=e.slug;return Object(J.get)(x,["media_details","sizes",t,"source_url"])})),(function(e){var t=e.name;return{value:e.slug,label:t}}));Object(X.useEffect)((function(){O||F(!1)}),[O]),Object(X.useEffect)((function(){wt(i,n)&&O&&!ie&&window.fetch(n).then((function(e){return e.blob()})).then((function(e){return le(e)}))}),[i,n,O,ie]),Object(X.useEffect)((function(){n&&!C&&O&&E.current.focus()}),[n,C]),Object(X.useEffect)((function(){O||ce(!1)}),[O]);var ge,he=i&&Z&&$&&P,fe=Object(X.createElement)(X.Fragment,null,Object(X.createElement)(K.BlockControls,null,!ne&&Object(X.createElement)(me.ToolbarGroup,null,Object(X.createElement)(K.__experimentalImageURLInputUI,{url:l||"",onChangeUrl:function(e){f(e)},linkDestination:b,mediaUrl:x&&x.source_url||n,mediaLink:x&&x.link,linkTarget:g,linkClass:u,rel:s})),he&&!ne&&Object(X.createElement)(me.ToolbarGroup,null,Object(X.createElement)(me.ToolbarButton,{onClick:function(){return ce(!0)},icon:Pe,label:Object(Q.__)("Crop")})),ie&&Object(X.createElement)(me.ToolbarGroup,null,Object(X.createElement)(me.ToolbarButton,{onClick:function(){N({filesList:[ie],onFileChange:function(e){var t=Object(be.a)(e,1)[0];y(t),Object(Ce.isBlobURL)(t.url)||(le(),A(Object(Q.__)("Image uploaded."),{type:"snackbar"}))},allowedTypes:Ot,onError:function(e){V(e,{type:"snackbar"})}})},icon:Be.a,label:Object(Q.__)("Upload external image")})),!ne&&Object(X.createElement)(K.MediaReplaceFlow,{mediaId:i,mediaURL:n,allowedTypes:Ot,accept:"image/*",onSelect:y,onSelectURL:_,onError:w})),Object(X.createElement)(K.InspectorControls,null,Object(X.createElement)(me.PanelBody,{title:Object(Q.__)("Image settings")},Object(X.createElement)(me.TextareaControl,{label:Object(Q.__)("Alt text (alternative text)"),value:c,onChange:function(e){f({alt:e})},help:Object(X.createElement)(X.Fragment,null,Object(X.createElement)(me.ExternalLink,{href:"https://www.w3.org/WAI/tutorials/images/decision-tree"},Object(Q.__)("Describe the purpose of the image")),Object(Q.__)("Leave empty if the image is purely decorative."))}),Object(X.createElement)(K.__experimentalImageSizeControl,{onChangeImage:function(e){var t=Object(J.get)(x,["media_details","sizes",e,"source_url"]);if(!t)return null;f({url:t,width:void 0,height:void 0,sizeSlug:e})},onChange:function(e){return f(e)},slug:h,width:d,height:p,imageSizeOptions:pe,isResizable:ue,imageWidth:Z,imageHeight:$}))),Object(X.createElement)(K.InspectorAdvancedControls,null,Object(X.createElement)(me.TextControl,{label:Object(Q.__)("Title attribute"),value:m||"",onChange:function(e){f({title:e})},help:Object(X.createElement)(X.Fragment,null,Object(Q.__)("Describe the role of this image on the page."),Object(X.createElement)(me.ExternalLink,{href:"https://www.w3.org/TR/html52/dom.html#the-title-attribute"},Object(Q.__)("(Note: many devices and browsers do not display this text.)")))}))),Oe=function(e){var t=Object(Se.getPath)(e);if(t)return Object(J.last)(t.split("/"))}(n);ge=c||(Oe?Object(Q.sprintf)(Object(Q.__)("This image has an empty alt attribute; its file name is %s"),Oe):Object(Q.__)("This image has an empty alt attribute"));var ve,je,ye=Object(X.createElement)(X.Fragment,null,Object(X.createElement)("img",{src:n,alt:ge,onClick:function(){D&&F(!1)},onError:function(){var e;void 0!==(e=Ie({attributes:{url:n}}))&&j(e)},onLoad:function(e){ee(Object(J.pick)(e.target,["naturalWidth","naturalHeight"]))}}),Object(Ce.isBlobURL)(n)&&Object(X.createElement)(me.Spinner,null));if(se&&Z&&$){var _e=Z>se;ve=_e?se:Z,je=_e?se*($/Z):$}if(he&&ne)ye=Object(X.createElement)(ft,{id:i,url:n,setAttributes:f,naturalWidth:Z,naturalHeight:$,width:d,height:p,clientWidth:se,setIsEditingImage:ce});else if(ue&&ve){var we=d||ve,ke=p||je,Ee=Z/$,Te=Z<$?20:20*Ee,ze=$ a",attribute:"href"},rel:{type:"string",source:"attribute",selector:"figure > a",attribute:"rel"},linkClass:{type:"string",source:"attribute",selector:"figure > a",attribute:"class"},id:{type:"number"},width:{type:"number"},height:{type:"number"},sizeSlug:{type:"string"},linkDestination:{type:"string"},linkTarget:{type:"string",source:"attribute",selector:"figure > a",attribute:"target"}},supports:{anchor:!0}},Tt=Bt.name,zt={title:Object(Q.__)("Image"),description:Object(Q.__)("Insert an image to make a visual statement."),icon:we,keywords:["img",Object(Q.__)("photo"),Object(Q.__)("picture")],example:{attributes:{sizeSlug:"large",url:"https://s.w.org/images/core/5.3/MtBlanc1.jpg",caption:Object(Q.__)("Mont Blanc appears—still, snowy, and serene.")}},styles:[{name:"default",label:Object(Q._x)("Default","block style"),isDefault:!0},{name:"rounded",label:Object(Q._x)("Rounded","block style")}],__experimentalLabel:function(e,t){if("accessibility"===t.context){var r=e.caption,n=e.alt;return e.url?n?n+(r?". "+r:""):r||"":Object(Q.__)("Empty")}},getEditWrapperProps:function(e){return{"data-align":e.align}},transforms:Pt,edit:kt,save:function(e){var t,r=e.attributes,n=r.url,c=r.alt,o=r.caption,a=r.align,i=r.href,l=r.rel,s=r.linkClass,u=r.width,b=r.height,m=r.id,d=r.linkTarget,p=r.sizeSlug,g=r.title,h=Object(J.isEmpty)(l)?void 0:l,f=ne()((t={},Object(Z.a)(t,"align".concat(a),a),Object(Z.a)(t,"size-".concat(p),p),Object(Z.a)(t,"is-resized",u||b),t)),O=Object(X.createElement)("img",{src:n,alt:c,className:m?"wp-image-".concat(m):null,width:u,height:b,title:g}),v=Object(X.createElement)(X.Fragment,null,i?Object(X.createElement)("a",{className:s,href:i,target:d,rel:h},O):O,!K.RichText.isEmpty(o)&&Object(X.createElement)(K.RichText.Content,{tagName:"figcaption",value:o}));return"left"===a||"right"===a||"center"===a?Object(X.createElement)("div",K.useBlockProps.save(),Object(X.createElement)("figure",{className:f},v)):Object(X.createElement)("figure",K.useBlockProps.save({className:f}),v)},deprecated:Ee},Nt=Object(X.createElement)(ee.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(X.createElement)(ee.Path,{d:"M6.2 5.2v13.4l5.8-4.8 5.8 4.8V5.2z"})),Mt=r(14);function Rt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Vt(e){for(var t=1;t".concat(t,"

"),anchor:r})}},{type:"block",blocks:["core/pullquote"],transform:function(e){var t=e.value,r=e.citation,n=e.anchor;return Object(Y.createBlock)("core/quote",{value:t,citation:r,anchor:n})}},{type:"prefix",prefix:">",transform:function(e){return Object(Y.createBlock)("core/quote",{value:"

".concat(e,"

")})}},{type:"raw",isMatch:function(e){var t,r=(t=!1,function(e){return"P"===e.nodeName||(t||"CITE"!==e.nodeName?void 0:(t=!0,!0))});return"BLOCKQUOTE"===e.nodeName&&Array.from(e.childNodes).every(r)},schema:function(e){var t=e.phrasingContentSchema;return{blockquote:{children:{p:{children:t},cite:{children:t}}}}}}],to:[{type:"block",blocks:["core/paragraph"],transform:function(e){var t=e.value,r=e.citation,n=[];return t&&"

"!==t&&n.push.apply(n,Object(q.a)(Object(lr.split)(Object(lr.create)({html:t,multilineTag:"p"}),"\u2028").map((function(e){return Object(Y.createBlock)("core/paragraph",{content:Object(lr.toHTMLString)({value:e})})})))),r&&"

"!==r&&n.push(Object(Y.createBlock)("core/paragraph",{content:r})),0===n.length?Object(Y.createBlock)("core/paragraph",{content:""}):n}},{type:"block",blocks:["core/heading"],transform:function(e){var t=e.value,r=e.citation,n=Object(Mt.a)(e,["value","citation"]);if("

"===t)return Object(Y.createBlock)("core/heading",{content:r});var c=Object(lr.split)(Object(lr.create)({html:t,multilineTag:"p"}),"\u2028"),o=Object(Y.createBlock)("core/heading",{content:Object(lr.toHTMLString)({value:c[0]})});if(!r&&1===c.length)return o;var a=c.slice(1);return[o,Object(Y.createBlock)("core/quote",ur(ur({},n),{},{citation:r,value:Object(lr.toHTMLString)({value:a.length?Object(lr.join)(c.slice(1),"\u2028"):Object(lr.create)(),multilineTag:"p"})}))]}},{type:"block",blocks:["core/pullquote"],transform:function(e){var t=e.value,r=e.citation,n=e.anchor;return Object(Y.createBlock)("core/pullquote",{value:t,citation:r,anchor:n})}}]};function mr(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function dr(e){for(var t=1;t"+Object(Q.__)("In quoting others, we cite ourselves.")+"

",citation:"Julio Cortázar",className:"is-style-large"}},styles:[{name:"default",label:Object(Q._x)("Default","block style"),isDefault:!0},{name:"large",label:Object(Q._x)("Large","block style")}],transforms:br,edit:function(e){var t=e.attributes,r=e.setAttributes,n=e.isSelected,c=e.mergeBlocks,o=e.onReplace,a=e.className,i=e.insertBlocksAfter,l=t.align,s=t.value,u=t.citation,b=Object(K.useBlockProps)({className:ne()(a,Object(Z.a)({},"has-text-align-".concat(l),l))});return Object(X.createElement)(X.Fragment,null,Object(X.createElement)(K.BlockControls,null,Object(X.createElement)(K.AlignmentToolbar,{value:l,onChange:function(e){r({align:e})}})),Object(X.createElement)(me.BlockQuotation,b,Object(X.createElement)(K.RichText,{identifier:"value",multiline:!0,value:s,onChange:function(e){return r({value:e})},onMerge:c,onRemove:function(e){var t=!u||0===u.length;!e&&t&&o([])},placeholder:Object(Q.__)("Write quote…"),onReplace:o,onSplit:function(e){return Object(Y.createBlock)("core/quote",ir(ir({},t),{},{value:e}))},__unstableOnSplitMiddle:function(){return Object(Y.createBlock)("core/paragraph")},textAlign:l}),(!K.RichText.isEmpty(u)||n)&&Object(X.createElement)(K.RichText,{identifier:"citation",value:u,onChange:function(e){return r({citation:e})},__unstableMobileNoFocusOnMount:!0,placeholder:Object(Q.__)("Write citation…"),className:"wp-block-quote__citation",textAlign:l,__unstableOnSplitAtEnd:function(){return i(Object(Y.createBlock)("core/paragraph"))}})))},save:function(e){var t=e.attributes,r=t.align,n=t.value,c=t.citation,o=ne()(Object(Z.a)({},"has-text-align-".concat(r),r));return Object(X.createElement)("blockquote",K.useBlockProps.save({className:o}),Object(X.createElement)(K.RichText.Content,{multiline:!0,value:n}),!K.RichText.isEmpty(c)&&Object(X.createElement)(K.RichText.Content,{tagName:"cite",value:c}))},merge:function(e,t){var r=t.value,n=t.citation;return n||(n=e.citation),dr(dr({},e),{},r&&"

"!==r?{value:e.value+r,citation:n}:{citation:n})},deprecated:or},fr=Object(X.createElement)(ee.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(X.createElement)(ee.Path,{d:"M20.2 8v11c0 .7-.6 1.2-1.2 1.2H6v1.5h13c1.5 0 2.7-1.2 2.7-2.8V8h-1.5zM18 16.4V4.6c0-.9-.7-1.6-1.6-1.6H4.6C3.7 3 3 3.7 3 4.6v11.8c0 .9.7 1.6 1.6 1.6h11.8c.9 0 1.6-.7 1.6-1.6zM4.5 4.6c0-.1.1-.1.1-.1h11.8c.1 0 .1.1.1.1V12l-2.3-1.7c-.3-.2-.6-.2-.9 0l-2.9 2.1L8 11.3c-.2-.1-.5-.1-.7 0l-2.9 1.5V4.6zm0 11.8v-1.8l3.2-1.7 2.4 1.2c.2.1.5.1.8-.1l2.8-2 2.8 2v2.5c0 .1-.1.1-.1.1H4.6c0-.1-.1-.2-.1-.2z"}));function Or(e){return Math.min(3,e.images.length)}var vr=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"large",r=Object(J.pick)(e,["alt","id","link","caption"]);r.url=Object(J.get)(e,["sizes",t,"url"])||Object(J.get)(e,["media_details","sizes",t,"source_url"])||e.url;var n=Object(J.get)(e,["sizes","full","url"])||Object(J.get)(e,["media_details","sizes","full","source_url"]);return n&&(r.fullUrl=n),r};function jr(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function yr(e){for(var t=1;t0&&Object(X.createElement)(K.RichText.Content,{tagName:"figcaption",value:e.caption})))})))}},{attributes:{images:{type:"array",default:[],source:"query",selector:"ul.wp-block-gallery .blocks-gallery-item",query:{url:{source:"attribute",selector:"img",attribute:"src"},alt:{source:"attribute",selector:"img",attribute:"alt",default:""},id:{source:"attribute",selector:"img",attribute:"data-id"},link:{source:"attribute",selector:"img",attribute:"data-link"},caption:{type:"array",source:"children",selector:"figcaption"}}},columns:{type:"number"},imageCrop:{type:"boolean",default:!0},linkTo:{type:"string",default:"none"}},isEligible:function(e){var t=e.images,r=e.ids;return t&&t.length>0&&(!r&&t||r&&t&&r.length!==t.length||Object(J.some)(t,(function(e,t){return!e&&null!==r[t]||parseInt(e,10)!==r[t]})))},migrate:function(e){return yr(yr({},e),{},{ids:Object(J.map)(e.images,(function(e){var t=e.id;return t?parseInt(t,10):null}))})},supports:{align:!0},save:function(e){var t=e.attributes,r=t.images,n=t.columns,c=void 0===n?Or(t):n,o=t.imageCrop,a=t.linkTo;return Object(X.createElement)("ul",{className:"columns-".concat(c," ").concat(o?"is-cropped":"")},r.map((function(e){var t;switch(a){case"media":t=e.url;break;case"attachment":t=e.link}var r=Object(X.createElement)("img",{src:e.url,alt:e.alt,"data-id":e.id,"data-link":e.link,className:e.id?"wp-image-".concat(e.id):null});return Object(X.createElement)("li",{key:e.id||e.url,className:"blocks-gallery-item"},Object(X.createElement)("figure",null,t?Object(X.createElement)("a",{href:t},r):r,e.caption&&e.caption.length>0&&Object(X.createElement)(K.RichText.Content,{tagName:"figcaption",value:e.caption})))})))}},{attributes:{images:{type:"array",default:[],source:"query",selector:"div.wp-block-gallery figure.blocks-gallery-image img",query:{url:{source:"attribute",attribute:"src"},alt:{source:"attribute",attribute:"alt",default:""},id:{source:"attribute",attribute:"data-id"}}},columns:{type:"number"},imageCrop:{type:"boolean",default:!0},linkTo:{type:"string",default:"none"},align:{type:"string",default:"none"}},supports:{align:!0},save:function(e){var t=e.attributes,r=t.images,n=t.columns,c=void 0===n?Or(t):n,o=t.align,a=t.imageCrop,i=t.linkTo,l=ne()("columns-".concat(c),{alignnone:"none"===o,"is-cropped":a});return Object(X.createElement)("div",{className:l},r.map((function(e){var t;switch(i){case"media":t=e.url;break;case"attachment":t=e.link}var r=Object(X.createElement)("img",{src:e.url,alt:e.alt,"data-id":e.id});return Object(X.createElement)("figure",{key:e.id||e.url,className:"blocks-gallery-image"},t?Object(X.createElement)("a",{href:t},r):r)})))}}],wr=r(101),kr=Object(X.createElement)(K.BlockIcon,{icon:fr}),Er=r(21),Cr=r(22),xr=r(16),Sr=r(23),Pr=r(24),Br=r(19),Tr=r(215),zr=r(214),Nr=r(274),Mr=r(159);function Rr(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=Object(Br.a)(e);if(t){var c=Object(Br.a)(this).constructor;r=Reflect.construct(n,arguments,c)}else r=n.apply(this,arguments);return Object(Pr.a)(this,r)}}var Vr=function(e){Object(Sr.a)(r,e);var t=Rr(r);function r(){var e;return Object(Er.a)(this,r),(e=t.apply(this,arguments)).onSelectImage=e.onSelectImage.bind(Object(xr.a)(e)),e.onSelectCaption=e.onSelectCaption.bind(Object(xr.a)(e)),e.onRemoveImage=e.onRemoveImage.bind(Object(xr.a)(e)),e.bindContainer=e.bindContainer.bind(Object(xr.a)(e)),e.onEdit=e.onEdit.bind(Object(xr.a)(e)),e.onSelectImageFromLibrary=e.onSelectImageFromLibrary.bind(Object(xr.a)(e)),e.onSelectCustomURL=e.onSelectCustomURL.bind(Object(xr.a)(e)),e.state={captionSelected:!1,isEditing:!1},e}return Object(Cr.a)(r,[{key:"bindContainer",value:function(e){this.container=e}},{key:"onSelectCaption",value:function(){this.state.captionSelected||this.setState({captionSelected:!0}),this.props.isSelected||this.props.onSelect()}},{key:"onSelectImage",value:function(){this.props.isSelected||this.props.onSelect(),this.state.captionSelected&&this.setState({captionSelected:!1})}},{key:"onRemoveImage",value:function(e){this.container===document.activeElement&&this.props.isSelected&&-1!==[Gt.BACKSPACE,Gt.DELETE].indexOf(e.keyCode)&&(e.stopPropagation(),e.preventDefault(),this.props.onRemove())}},{key:"onEdit",value:function(){this.setState({isEditing:!0})}},{key:"componentDidUpdate",value:function(e){var t=this.props,r=t.isSelected,n=t.image,c=t.url,o=t.__unstableMarkNextChangeAsNotPersistent;n&&!c&&(o(),this.props.setAttributes({url:n.source_url,alt:n.alt_text})),this.state.captionSelected&&!r&&e.isSelected&&this.setState({captionSelected:!1})}},{key:"deselectOnBlur",value:function(){this.props.onDeselect()}},{key:"onSelectImageFromLibrary",value:function(e){var t=this.props,r=t.setAttributes,n=t.id,c=t.url,o=t.alt,a=t.caption,i=t.sizeSlug;if(e&&e.url){var l=vr(e,i);(function(e,t){return!e&&Object(Ce.isBlobURL)(t)})(n,c)&&o&&(l=Object(J.omit)(l,["alt"])),a&&!Object(J.get)(l,["caption"])&&(l=Object(J.omit)(l,["caption"])),r(l),this.setState({isEditing:!1})}}},{key:"onSelectCustomURL",value:function(e){var t=this.props,r=t.setAttributes;e!==t.url&&(r({url:e,id:void 0}),this.setState({isEditing:!1}))}},{key:"render",value:function(){var e,t=this.props,r=t.url,n=t.alt,c=t.id,o=t.linkTo,a=t.link,i=t.isFirstItem,l=t.isLastItem,s=t.isSelected,u=t.caption,b=t.onRemove,m=t.onMoveForward,d=t.onMoveBackward,p=t.setAttributes,g=t["aria-label"],h=this.state.isEditing;switch(o){case"file":e=r;break;case"post":e=a}var f=Object(X.createElement)(X.Fragment,null,Object(X.createElement)("img",{src:r,alt:n,"data-id":c,onClick:this.onSelectImage,onFocus:this.onSelectImage,onKeyDown:this.onRemoveImage,tabIndex:"0","aria-label":g,ref:this.bindContainer}),Object(Ce.isBlobURL)(r)&&Object(X.createElement)(me.Spinner,null)),O=ne()({"is-selected":s,"is-transient":Object(Ce.isBlobURL)(r)});return Object(X.createElement)("figure",{className:O},!h&&(e?Object(X.createElement)("a",{href:e},f):f),h&&Object(X.createElement)(K.MediaPlaceholder,{labels:{title:Object(Q.__)("Edit gallery image")},icon:we,onSelect:this.onSelectImageFromLibrary,onSelectURL:this.onSelectCustomURL,accept:"image/*",allowedTypes:["image"],value:{id:c,src:r}}),Object(X.createElement)(me.ButtonGroup,{className:"block-library-gallery-item__inline-menu is-left"},Object(X.createElement)(me.Button,{icon:Tr.a,onClick:i?void 0:d,label:Object(Q.__)("Move image backward"),"aria-disabled":i,disabled:!s}),Object(X.createElement)(me.Button,{icon:zr.a,onClick:l?void 0:m,label:Object(Q.__)("Move image forward"),"aria-disabled":l,disabled:!s})),Object(X.createElement)(me.ButtonGroup,{className:"block-library-gallery-item__inline-menu is-right"},Object(X.createElement)(me.Button,{icon:Nr.a,onClick:this.onEdit,label:Object(Q.__)("Replace image"),disabled:!s}),Object(X.createElement)(me.Button,{icon:Mr.a,onClick:b,label:Object(Q.__)("Remove image"),disabled:!s})),!h&&(s||u)&&Object(X.createElement)(K.RichText,{tagName:"figcaption",placeholder:s?Object(Q.__)("Write caption…"):null,value:u,isSelected:this.state.captionSelected,onChange:function(e){return p({caption:e})},unstableOnFocus:this.onSelectCaption,inlineToolbar:!0}))}}]),r}(X.Component),Ar=Object(xe.compose)([Object(de.withSelect)((function(e,t){var r=e("core").getMedia,n=t.id;return{image:n?r(parseInt(n,10)):null}})),Object(de.withDispatch)((function(e){return{__unstableMarkNextChangeAsNotPersistent:e("core/block-editor").__unstableMarkNextChangeAsNotPersistent}}))])(Vr);function Hr(e){var t=e.isHidden,r=Object(Mt.a)(e,["isHidden"]);return t?Object(X.createElement)(me.VisuallyHidden,Object(ue.a)({as:K.RichText},r)):Object(X.createElement)(K.RichText,r)}var Lr=function(e){var t,r=e.attributes,n=e.className,c=e.isSelected,o=e.setAttributes,a=e.selectedImage,i=e.mediaPlaceholder,l=e.onMoveBackward,s=e.onMoveForward,u=e.onRemoveImage,b=e.onSelectImage,m=e.onDeselectImage,d=e.onSetImageAttributes,p=e.onFocusGalleryCaption,g=e.insertBlocksAfter,h=r.align,f=r.columns,O=void 0===f?Or(r):f,v=r.caption,j=r.imageCrop,y=r.images;return Object(X.createElement)("figure",{className:ne()(n,(t={},Object(Z.a)(t,"align".concat(h),h),Object(Z.a)(t,"columns-".concat(O),O),Object(Z.a)(t,"is-cropped",j),t))},Object(X.createElement)("ul",{className:"blocks-gallery-grid"},y.map((function(e,t){var n=Object(Q.sprintf)(Object(Q.__)("image %1$d of %2$d in gallery"),t+1,y.length);return Object(X.createElement)("li",{className:"blocks-gallery-item",key:e.id||e.url},Object(X.createElement)(Ar,{url:e.url,alt:e.alt,id:e.id,isFirstItem:0===t,isLastItem:t+1===y.length,isSelected:c&&a===t,onMoveBackward:l(t),onMoveForward:s(t),onRemove:u(t),onSelect:b(t),onDeselect:m(t),setAttributes:function(e){return d(t,e)},caption:e.caption,"aria-label":n,sizeSlug:r.sizeSlug}))}))),i,Object(X.createElement)(Hr,{isHidden:!c&&K.RichText.isEmpty(v),tagName:"figcaption",className:"blocks-gallery-caption",placeholder:Object(Q.__)("Write gallery caption…"),value:v,unstableOnFocus:p,onChange:function(e){return o({caption:e})},inlineToolbar:!0,__unstableOnSplitAtEnd:function(){return g(Object(Y.createBlock)("core/paragraph"))}}))};function Ir(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Dr(e){for(var t=1;t0&&Object(J.every)(d,(function(e){var t=e.url;return Object(Ce.isBlobURL)(t)}))){var e=Object(J.map)(d,(function(e){var t=e.url;return Object(Ce.getBlobByURL)(t)}));Object(J.forEach)(d,(function(e){var t=e.url;return Object(Ce.revokeBlobURL)(t)})),a({filesList:e,onFileChange:S,allowedTypes:["image"]})}}),[]),Object(X.useEffect)((function(){n||v()}),[n]),Object(X.useEffect)((function(){var e,t,r,n,c,o;p||(k(),E({linkTo:(null===(e=window)||void 0===e||null===(t=e.wp)||void 0===t||null===(r=t.media)||void 0===r||null===(n=r.view)||void 0===n||null===(c=n.settings)||void 0===c||null===(o=c.defaultProps)||void 0===o?void 0:o.link)||"none"}))}),[p]);var P=!!d.length,B=Object(X.createElement)(K.MediaPlaceholder,{addToGallery:P,isAppender:P,className:r,disableMediaButtons:P&&!n,icon:!P&&kr,labels:{title:!P&&Object(Q.__)("Gallery"),instructions:!P&&Ur},onSelect:S,accept:"image/*",allowedTypes:Gr,multiple:!0,value:d,onError:function(e){o.removeAllNotices(),o.createErrorNotice(e)},notices:P?void 0:c,onFocus:s});if(!P)return B;var T=Object(J.map)(Object(J.filter)(i,(function(e){var t=e.slug;return Object(J.some)(l,(function(e){return e[t]}))})),(function(e){var t=e.name;return{value:e.slug,label:t}})),z=P&&!Object(J.isEmpty)(T);return Object(X.createElement)(X.Fragment,null,Object(X.createElement)(K.InspectorControls,null,Object(X.createElement)(me.PanelBody,{title:Object(Q.__)("Gallery settings")},d.length>1&&Object(X.createElement)(me.RangeControl,Object(ue.a)({label:Object(Q.__)("Columns"),value:b,onChange:function(e){E({columns:e})},min:1,max:Math.min(8,d.length)},Wr,{required:!0})),Object(X.createElement)(me.ToggleControl,{label:Object(Q.__)("Crop images"),checked:!!m,onChange:function(){E({imageCrop:!m})},help:function(e){return e?Object(Q.__)("Thumbnails are cropped to align."):Object(Q.__)("Thumbnails are not cropped.")}}),Object(X.createElement)(me.SelectControl,{label:Object(Q.__)("Link to"),value:p,onChange:function(e){E({linkTo:e})},options:Fr}),z&&Object(X.createElement)(me.SelectControl,{label:Object(Q.__)("Image size"),value:g,options:T,onChange:function(e){E({images:Object(J.map)(d,(function(t){if(!t.id)return t;var r=Object(J.get)(l,[parseInt(t.id,10),e]);return Dr(Dr({},t),r&&{url:r})})),newSizeSlug:e})}}))),c,Object(X.createElement)(Lr,Object(ue.a)({},e,{selectedImage:O,mediaPlaceholder:B,onMoveBackward:function(e){return function(){0!==e&&C(e,e-1)}},onMoveForward:function(e){return function(){e!==d.length-1&&C(e,e+1)}},onRemoveImage:function(e){return function(){var r=Object(J.filter)(d,(function(t,r){return e!==r}));v(),E({images:r,columns:t.columns?Math.min(r.length,t.columns):t.columns})}},onSelectImage:function(e){return function(){v(e)}},onDeselectImage:function(){return function(){v()}},onSetImageAttributes:function(e,t){d[e]&&E({images:[].concat(Object(q.a)(d.slice(0,e)),[Dr(Dr({},d[e]),t)],Object(q.a)(d.slice(e+1)))})},onFocusGalleryCaption:function(){v()}})))}));var Zr=function(e){return e?e.split(",").map((function(e){return parseInt(e,10)})):[]},$r={from:[{type:"block",isMultiBlock:!0,blocks:["core/image"],transform:function(e){var t=e[0],r=t.align,n=t.sizeSlug;r=Object(J.every)(e,["align",r])?r:void 0,n=Object(J.every)(e,["sizeSlug",n])?n:void 0;var c=Object(J.filter)(e,(function(e){return e.url}));return Object(Y.createBlock)("core/gallery",{images:c.map((function(e){var t=e.id,r=e.url,n=e.alt,c=e.caption;return{id:Object(J.toString)(t),url:r,alt:n,caption:c}})),ids:c.map((function(e){var t=e.id;return parseInt(t,10)})),align:r,sizeSlug:n})}},{type:"shortcode",tag:"gallery",attributes:{images:{type:"array",shortcode:function(e){var t=e.named.ids;return Zr(t).map((function(e){return{id:Object(J.toString)(e)}}))}},ids:{type:"array",shortcode:function(e){var t=e.named.ids;return Zr(t)}},columns:{type:"number",shortcode:function(e){var t=e.named.columns;return parseInt(void 0===t?"3":t,10)}},linkTo:{type:"string",shortcode:function(e){var t=e.named.link;return void 0===t?"post":t}}},isMatch:function(e){return void 0!==e.named.ids}},{type:"files",isMatch:function(e){return 1!==e.length&&Object(J.every)(e,(function(e){return 0===e.type.indexOf("image/")}))},transform:function(e){return Object(Y.createBlock)("core/gallery",{images:e.map((function(e){return vr({url:Object(Ce.createBlobURL)(e)})}))})}}],to:[{type:"block",blocks:["core/image"],transform:function(e){var t=e.images,r=e.align,n=e.sizeSlug,c=e.ids;return t.length>0?t.map((function(e,t){var o=e.url,a=e.alt,i=e.caption;return Object(Y.createBlock)("core/image",{id:c[t],url:o,alt:a,caption:i,align:r,sizeSlug:n})})):Object(Y.createBlock)("core/image",{align:r})}}]},Kr={name:"core/gallery",category:"media",attributes:{images:{type:"array",default:[],source:"query",selector:".blocks-gallery-item",query:{url:{type:"string",source:"attribute",selector:"img",attribute:"src"},fullUrl:{type:"string",source:"attribute",selector:"img",attribute:"data-full-url"},link:{type:"string",source:"attribute",selector:"img",attribute:"data-link"},alt:{type:"string",source:"attribute",selector:"img",attribute:"alt",default:""},id:{type:"string",source:"attribute",selector:"img",attribute:"data-id"},caption:{type:"string",source:"html",selector:".blocks-gallery-item__caption"}}},ids:{type:"array",items:{type:"number"},default:[]},columns:{type:"number",minimum:1,maximum:8},caption:{type:"string",source:"html",selector:".blocks-gallery-caption"},imageCrop:{type:"boolean",default:!0},linkTo:{type:"string"},sizeSlug:{type:"string",default:"large"}},supports:{anchor:!0,align:!0}},Yr=Kr.name,Jr={title:Object(Q.__)("Gallery"),description:Object(Q.__)("Display multiple images in a rich gallery."),icon:fr,keywords:[Object(Q.__)("images"),Object(Q.__)("photos")],example:{attributes:{columns:2,images:[{url:"https://s.w.org/images/core/5.3/Glacial_lakes%2C_Bhutan.jpg"},{url:"https://s.w.org/images/core/5.3/Sediment_off_the_Yucatan_Peninsula.jpg"}]}},transforms:$r,edit:qr,save:function(e){var t=e.attributes,r=t.images,n=t.columns,c=void 0===n?Or(t):n,o=t.imageCrop,a=t.caption,i=t.linkTo;return Object(X.createElement)("figure",{className:"columns-".concat(c," ").concat(o?"is-cropped":"")},Object(X.createElement)("ul",{className:"blocks-gallery-grid"},r.map((function(e){var t;switch(i){case"file":t=e.fullUrl||e.url;break;case"post":t=e.link}var r=Object(X.createElement)("img",{src:e.url,alt:e.alt,"data-id":e.id,"data-full-url":e.fullUrl,"data-link":e.link,className:e.id?"wp-image-".concat(e.id):null});return Object(X.createElement)("li",{key:e.id||e.url,className:"blocks-gallery-item"},Object(X.createElement)("figure",null,t?Object(X.createElement)("a",{href:t},r):r,!K.RichText.isEmpty(e.caption)&&Object(X.createElement)(K.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-item__caption",value:e.caption})))}))),!K.RichText.isEmpty(a)&&Object(X.createElement)(K.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-caption",value:a}))},deprecated:_r},Qr=Object(X.createElement)(ee.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(X.createElement)(ee.Path,{d:"M19 6.2h-5.9l-.6-1.1c-.3-.7-1-1.1-1.8-1.1H5c-1.1 0-2 .9-2 2v11.8c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V8.2c0-1.1-.9-2-2-2zm.5 11.6c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h5.8c.2 0 .4.1.4.3l1 2H19c.3 0 .5.2.5.5v9.5zM8 12.8h8v-1.5H8v1.5zm0 3h8v-1.5H8v1.5z"})),Xr=r(87),en=r.n(Xr);var tn={apiVersion:2,name:"core/archives",category:"widgets",attributes:{displayAsDropdown:{type:"boolean",default:!1},showPostCounts:{type:"boolean",default:!1}},supports:{align:!0,html:!1}},rn=tn.name,nn={title:Object(Q.__)("Archives"),description:Object(Q.__)("Display a monthly archive of your posts."),icon:Qr,example:{},edit:function(e){var t=e.attributes,r=e.setAttributes,n=t.showPostCounts,c=t.displayAsDropdown;return Object(X.createElement)(X.Fragment,null,Object(X.createElement)(K.InspectorControls,null,Object(X.createElement)(me.PanelBody,{title:Object(Q.__)("Archives settings")},Object(X.createElement)(me.ToggleControl,{label:Object(Q.__)("Display as dropdown"),checked:c,onChange:function(){return r({displayAsDropdown:!c})}}),Object(X.createElement)(me.ToggleControl,{label:Object(Q.__)("Show post counts"),checked:n,onChange:function(){return r({showPostCounts:!n})}}))),Object(X.createElement)("div",Object(K.useBlockProps)(),Object(X.createElement)(me.Disabled,null,Object(X.createElement)(en.a,{block:"core/archives",attributes:t}))))}},cn=Object(X.createElement)(ee.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(X.createElement)(ee.Path,{d:"M17.7 4.3c-1.2 0-2.8 0-3.8 1-.6.6-.9 1.5-.9 2.6V14c-.6-.6-1.5-1-2.5-1C8.6 13 7 14.6 7 16.5S8.6 20 10.5 20c1.5 0 2.8-1 3.3-2.3.5-.8.7-1.8.7-2.5V7.9c0-.7.2-1.2.5-1.6.6-.6 1.8-.6 2.8-.6h.3V4.3h-.4z"})),on=[{attributes:{src:{type:"string",source:"attribute",selector:"audio",attribute:"src"},caption:{type:"string",source:"html",selector:"figcaption"},id:{type:"number"},autoplay:{type:"boolean",source:"attribute",selector:"audio",attribute:"autoplay"},loop:{type:"boolean",source:"attribute",selector:"audio",attribute:"loop"},preload:{type:"string",source:"attribute",selector:"audio",attribute:"preload"}},supports:{align:!0},save:function(e){var t=e.attributes,r=t.autoplay,n=t.caption,c=t.loop,o=t.preload,a=t.src;return Object(X.createElement)("figure",null,Object(X.createElement)("audio",{controls:"controls",src:a,autoPlay:r,loop:c,preload:o}),!K.RichText.isEmpty(n)&&Object(X.createElement)(K.RichText.Content,{tagName:"figcaption",value:n}))}}],an=["audio"];var ln=Object(me.withNotices)((function(e){var t=e.attributes,r=e.noticeOperations,n=e.setAttributes,c=e.onReplace,o=e.isSelected,a=e.noticeUI,i=e.insertBlocksAfter,l=t.id,s=t.autoplay,u=t.caption,b=t.loop,m=t.preload,d=t.src,p=Object(K.useBlockProps)(),g=Object(de.useSelect)((function(e){return(0,e("core/block-editor").getSettings)().mediaUpload}),[]);function h(e){return function(t){n(Object(Z.a)({},e,t))}}function f(e){if(e!==d){var t=Ie({attributes:{url:e}});if(void 0!==t)return void c(t);n({src:e,id:void 0})}}function O(e){r.removeAllNotices(),r.createErrorNotice(e)}function v(e){e&&e.url?n({src:e.url,id:e.id}):n({src:void 0,id:void 0})}return Object(X.useEffect)((function(){if(!l&&Object(Ce.isBlobURL)(d)){var e=Object(Ce.getBlobByURL)(d);e&&g({filesList:[e],onFileChange:function(e){var t=Object(be.a)(e,1)[0],r=t.id,c=t.url;n({id:r,src:c})},onError:function(e){n({src:void 0,id:void 0}),r.createErrorNotice(e)},allowedTypes:an})}}),[]),d?Object(X.createElement)(X.Fragment,null,Object(X.createElement)(K.BlockControls,null,Object(X.createElement)(K.MediaReplaceFlow,{mediaId:l,mediaURL:d,allowedTypes:an,accept:"audio/*",onSelect:v,onSelectURL:f,onError:O})),Object(X.createElement)(K.InspectorControls,null,Object(X.createElement)(me.PanelBody,{title:Object(Q.__)("Audio settings")},Object(X.createElement)(me.ToggleControl,{label:Object(Q.__)("Autoplay"),onChange:h("autoplay"),checked:s,help:function(e){return e?Object(Q.__)("Note: Autoplaying audio may cause usability issues for some visitors."):null}}),Object(X.createElement)(me.ToggleControl,{label:Object(Q.__)("Loop"),onChange:h("loop"),checked:b}),Object(X.createElement)(me.SelectControl,{label:Object(Q.__)("Preload"),value:m||"",onChange:function(e){return n({preload:e||void 0})},options:[{value:"",label:Object(Q.__)("Browser default")},{value:"auto",label:Object(Q.__)("Auto")},{value:"metadata",label:Object(Q.__)("Metadata")},{value:"none",label:Object(Q.__)("None")}]}))),Object(X.createElement)("figure",p,Object(X.createElement)(me.Disabled,null,Object(X.createElement)("audio",{controls:"controls",src:d})),(!K.RichText.isEmpty(u)||o)&&Object(X.createElement)(K.RichText,{tagName:"figcaption",placeholder:Object(Q.__)("Write caption…"),value:u,onChange:function(e){return n({caption:e})},inlineToolbar:!0,__unstableOnSplitAtEnd:function(){return i(Object(Y.createBlock)("core/paragraph"))}}))):Object(X.createElement)("div",p,Object(X.createElement)(K.MediaPlaceholder,{icon:Object(X.createElement)(K.BlockIcon,{icon:cn}),onSelect:v,onSelectURL:f,accept:"audio/*",allowedTypes:an,value:t,notices:a,onError:O}))}));var sn={from:[{type:"files",isMatch:function(e){return 1===e.length&&0===e[0].type.indexOf("audio/")},transform:function(e){var t=e[0];return Object(Y.createBlock)("core/audio",{src:Object(Ce.createBlobURL)(t)})}},{type:"shortcode",tag:"audio",attributes:{src:{type:"string",shortcode:function(e){var t=e.named,r=t.src,n=t.mp3,c=t.m4a,o=t.ogg,a=t.wav,i=t.wma;return r||n||c||o||a||i}},loop:{type:"string",shortcode:function(e){return e.named.loop}},autoplay:{type:"string",shortcode:function(e){return e.named.autoplay}},preload:{type:"string",shortcode:function(e){return e.named.preload}}}}]},un={apiVersion:2,name:"core/audio",category:"media",attributes:{src:{type:"string",source:"attribute",selector:"audio",attribute:"src"},caption:{type:"string",source:"html",selector:"figcaption"},id:{type:"number"},autoplay:{type:"boolean",source:"attribute",selector:"audio",attribute:"autoplay"},loop:{type:"boolean",source:"attribute",selector:"audio",attribute:"loop"},preload:{type:"string",source:"attribute",selector:"audio",attribute:"preload"}},supports:{anchor:!0,align:!0}},bn=un.name,mn={title:Object(Q.__)("Audio"),description:Object(Q.__)("Embed a simple audio player."),keywords:[Object(Q.__)("music"),Object(Q.__)("sound"),Object(Q.__)("podcast"),Object(Q.__)("recording")],icon:cn,transforms:sn,deprecated:on,edit:ln,save:function(e){var t=e.attributes,r=t.autoplay,n=t.caption,c=t.loop,o=t.preload,a=t.src;return a&&Object(X.createElement)("figure",K.useBlockProps.save(),Object(X.createElement)("audio",{controls:"controls",src:a,autoPlay:r,loop:c,preload:o}),!K.RichText.isEmpty(n)&&Object(X.createElement)(K.RichText.Content,{tagName:"figcaption",value:n}))}},dn=Object(X.createElement)(ee.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(X.createElement)(ee.Path,{d:"M19 6.5H5c-1.1 0-2 .9-2 2v7c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-7c0-1.1-.9-2-2-2zm.5 9c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5v-7c0-.3.2-.5.5-.5h14c.3 0 .5.2.5.5v7zM8 13h8v-1.5H8V13z"})),pn={from:[{type:"block",isMultiBlock:!0,blocks:["core/button"],transform:function(e){return Object(Y.createBlock)("core/buttons",{},e.map((function(e){return Object(Y.createBlock)("core/button",e)})))}}]};function gn(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function hn(e){for(var t=1;t2&&void 0!==arguments[2]&&arguments[2],p=e.backgroundColor,g=e.textColor,h=e.gradient,f=e.style,O=Object(K.getColorClassName)("background-color",p),v=Object(K.__experimentalGetGradientClass)(h),j=Object(K.getColorClassName)("color",g),y=ne()(j,v,(a={},Object(Z.a)(a,O,!(null==f||null===(r=f.color)||void 0===r?void 0:r.gradient)&&!!O),Object(Z.a)(a,"has-text-color",g||(null==f||null===(n=f.color)||void 0===n?void 0:n.text)),Object(Z.a)(a,"has-background",p||(null==f||null===(c=f.color)||void 0===c?void 0:c.background)||h||(null==f||null===(o=f.color)||void 0===o?void 0:o.gradient)),a)),_=(null==f||null===(i=f.color)||void 0===i?void 0:i.background)||(null==f||null===(l=f.color)||void 0===l?void 0:l.text)||(null==f||null===(s=f.color)||void 0===s?void 0:s.gradient)?{background:(null==f||null===(u=f.color)||void 0===u?void 0:u.gradient)?f.color.gradient:void 0,backgroundColor:(null==f||null===(b=f.color)||void 0===b?void 0:b.background)?f.color.background:void 0,color:(null==f||null===(m=f.color)||void 0===m?void 0:m.text)?f.color.text:void 0}:{};if(d){if(p){var w=Object(K.getColorObjectByAttributeValues)(t,p);_.backgroundColor=w.color}if(g){var k=Object(K.getColorObjectByAttributeValues)(t,g);_.color=k.color}}return{className:y||void 0,style:_}}function zn(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Nn(e){for(var t=1;t a"}},Fn=Dn.name,Gn={title:Object(Q.__)("Button"),description:Object(Q.__)("Prompt visitors to take action with a button-style link."),icon:dn,keywords:[Object(Q.__)("link")],example:{attributes:{className:"is-style-fill",backgroundColor:"vivid-green-cyan",text:Object(Q.__)("Call to Action")}},styles:[{name:"fill",label:Object(Q.__)("Fill"),isDefault:!0},{name:"outline",label:Object(Q.__)("Outline")}],edit:An,save:function(e){var t=e.attributes,r=t.borderRadius,n=t.linkTarget,c=t.rel,o=t.text,a=t.title,i=t.url,l=Tn(t),s=ne()("wp-block-button__link",l.className,{"no-border-radius":0===r}),u=function(e){for(var t=1;t"]+\s*)$/m,"$1//$2")}var pc={from:[{type:"enter",regExp:/^```$/,transform:function(){return Object(Y.createBlock)("core/code")}},{type:"block",blocks:["core/html"],transform:function(e){var t=e.content;return Object(Y.createBlock)("core/code",{content:t})}},{type:"raw",isMatch:function(e){return"PRE"===e.nodeName&&1===e.children.length&&"CODE"===e.firstChild.nodeName},schema:{pre:{children:{code:{children:{"#text":{}}}}}}}]},gc={apiVersion:2,name:"core/code",category:"text",attributes:{content:{type:"string",source:"html",selector:"code"}},supports:{anchor:!0}},hc=gc.name,fc={title:Object(Q.__)("Code"),description:Object(Q.__)("Display code snippets that respect your spacing and tabs."),icon:bc.a,example:{attributes:{content:Object(Q.__)('// A "block" is the abstract term used\n// to describe units of markup that\n// when composed together, form the\n// content or layout of a page.\nregisterBlockType( name, settings );')}},transforms:pc,edit:function(e){var t=e.attributes,r=e.setAttributes,n=Object(K.useBlockProps)();return Object(X.createElement)("pre",n,Object(X.createElement)(K.RichText,{tagName:"code",value:t.content,onChange:function(e){return r({content:e})},placeholder:Object(Q.__)("Write code…"),"aria-label":Object(Q.__)("Code"),preserveWhiteSpace:!0}))},save:function(e){var t,r=e.attributes;return Object(X.createElement)("pre",K.useBlockProps.save(),Object(X.createElement)(K.RichText.Content,{tagName:"code",value:(t=r.content,Object(J.flow)(mc,dc)(t||""))}))}},Oc=Object(X.createElement)(ee.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(X.createElement)(ee.Path,{d:"M19 6H6c-1.1 0-2 .9-2 2v9c0 1.1.9 2 2 2h13c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm-4.1 1.5v10H10v-10h4.9zM5.5 17V8c0-.3.2-.5.5-.5h2.5v10H6c-.3 0-.5-.2-.5-.5zm14 0c0 .3-.2.5-.5.5h-2.6v-10H19c.3 0 .5.2.5.5v9z"}));function vc(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function jc(e){for(var t=1;t=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:c}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,i=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return a=e.done,e},e:function(e){i=!0,o=e},f:function(){try{a||null==r.return||r.return()}finally{if(i)throw o}}}}function _c(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r1&&void 0!==arguments[1]?arguments[1]:e.length;return Object(J.sumBy)(e,(function(e){return Cc(e,t)}))}function Sc(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.length;return e.reduce((function(e,r){var n=Cc(r,t);return Object.assign(e,Object(Z.a)({},r.clientId,n))}),{})}function Pc(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.length,n=xc(e,r),c=t-n,o=c/e.length;return Object(J.mapValues)(Sc(e,r),(function(e){return Ec(e+o)}))}function Bc(e,t){return e.map((function(e){return Object(J.merge)({},e,{attributes:{width:t[e.clientId]}})}))}var Tc=["core/column"];var zc=Object(de.withDispatch)((function(e,t,r){return{updateAlignment:function(n){var c=t.clientId,o=t.setAttributes,a=e("core/block-editor").updateBlockAttributes,i=r.select("core/block-editor").getBlockOrder;o({verticalAlignment:n}),i(c).forEach((function(e){a(e,{verticalAlignment:n})}))},updateColumns:function(n,c){var o=t.clientId,a=e("core/block-editor").replaceInnerBlocks,i=(0,r.select("core/block-editor").getBlocks)(o),l=i.every((function(e){var t,r=e.attributes.width;return Number.isFinite((null==r||null===(t=r.endsWith)||void 0===t?void 0:t.call(r,"%"))?parseFloat(r):r)})),s=c>n;if(s&&l){var u=Ec(100/c),b=Pc(i,100-u);i=[].concat(Object(q.a)(Bc(i,b)),Object(q.a)(Object(J.times)(c-n,(function(){return Object(Y.createBlock)("core/column",{width:u})}))))}else if(s)i=[].concat(Object(q.a)(i),Object(q.a)(Object(J.times)(c-n,(function(){return Object(Y.createBlock)("core/column")}))));else{if(i=Object(J.dropRight)(i,n-c),l)i=Bc(i,Pc(i,100))}a(o,i,!1)}}}))((function(e){var t=e.attributes,r=e.updateAlignment,n=e.updateColumns,c=e.clientId,o=t.verticalAlignment,a=Object(de.useSelect)((function(e){return{count:e("core/block-editor").getBlockCount(c)}}),[c]).count,i=ne()(Object(Z.a)({},"are-vertically-aligned-".concat(o),o)),l=Object(K.useBlockProps)({className:i}),s=Object(K.__experimentalUseInnerBlocksProps)(l,{allowedBlocks:Tc,orientation:"horizontal",renderAppender:!1});return Object(X.createElement)(X.Fragment,null,Object(X.createElement)(K.BlockControls,null,Object(X.createElement)(K.BlockVerticalAlignmentToolbar,{onChange:r,value:o})),Object(X.createElement)(K.InspectorControls,null,Object(X.createElement)(me.PanelBody,null,Object(X.createElement)(me.RangeControl,{label:Object(Q.__)("Columns"),value:a,onChange:function(e){return n(a,e)},min:1,max:Math.max(6,a)}),a>6&&Object(X.createElement)(me.Notice,{status:"warning",isDismissible:!1},Object(Q.__)("This column count exceeds the recommended amount and may cause visual breakage.")))),Object(X.createElement)("div",s))}));function Nc(e){var t=e.clientId,r=e.name,n=e.setAttributes,c=Object(de.useSelect)((function(e){var t=e("core/blocks"),n=t.getBlockVariations,c=t.getBlockType,o=t.getDefaultBlockVariation;return{blockType:c(r),defaultVariation:o(r,"block"),variations:n(r,"block")}}),[r]),o=c.blockType,a=c.defaultVariation,i=c.variations,l=Object(de.useDispatch)("core/block-editor").replaceInnerBlocks,s=Object(K.useBlockProps)();return Object(X.createElement)("div",s,Object(X.createElement)(K.__experimentalBlockVariationPicker,{icon:Object(J.get)(o,["icon","src"]),label:Object(J.get)(o,["title"]),variations:i,onSelect:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a;e.attributes&&n(e.attributes),e.innerBlocks&&l(t,Object(Y.createBlocksFromInnerBlocksTemplate)(e.innerBlocks))},allowSkip:!0}))}var Mc=function(e){var t=e.clientId,r=Object(de.useSelect)((function(e){return e("core/block-editor").getBlocks(t).length>0}),[t])?zc:Nc;return Object(X.createElement)(r,e)};var Rc=[{name:"one-column-full",title:Object(Q.__)("100"),description:Object(Q.__)("One column"),icon:Object(X.createElement)(me.SVG,{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},Object(X.createElement)(me.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"m39.0625 14h-30.0625v20.0938h30.0625zm-30.0625-2c-1.10457 0-2 .8954-2 2v20.0938c0 1.1045.89543 2 2 2h30.0625c1.1046 0 2-.8955 2-2v-20.0938c0-1.1046-.8954-2-2-2z"})),innerBlocks:[["core/column"]],scope:["block"]},{name:"two-columns-equal",title:Object(Q.__)("50 / 50"),description:Object(Q.__)("Two columns; equal split"),icon:Object(X.createElement)(me.SVG,{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},Object(X.createElement)(me.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M39 12C40.1046 12 41 12.8954 41 14V34C41 35.1046 40.1046 36 39 36H9C7.89543 36 7 35.1046 7 34V14C7 12.8954 7.89543 12 9 12H39ZM39 34V14H25V34H39ZM23 34H9V14H23V34Z"})),isDefault:!0,innerBlocks:[["core/column"],["core/column"]],scope:["block"]},{name:"two-columns-one-third-two-thirds",title:Object(Q.__)("30 / 70"),description:Object(Q.__)("Two columns; one-third, two-thirds split"),icon:Object(X.createElement)(me.SVG,{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},Object(X.createElement)(me.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M39 12C40.1046 12 41 12.8954 41 14V34C41 35.1046 40.1046 36 39 36H9C7.89543 36 7 35.1046 7 34V14C7 12.8954 7.89543 12 9 12H39ZM39 34V14H20V34H39ZM18 34H9V14H18V34Z"})),innerBlocks:[["core/column",{width:"33.33%"}],["core/column",{width:"66.66%"}]],scope:["block"]},{name:"two-columns-two-thirds-one-third",title:Object(Q.__)("70 / 30"),description:Object(Q.__)("Two columns; two-thirds, one-third split"),icon:Object(X.createElement)(me.SVG,{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},Object(X.createElement)(me.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M39 12C40.1046 12 41 12.8954 41 14V34C41 35.1046 40.1046 36 39 36H9C7.89543 36 7 35.1046 7 34V14C7 12.8954 7.89543 12 9 12H39ZM39 34V14H30V34H39ZM28 34H9V14H28V34Z"})),innerBlocks:[["core/column",{width:"66.66%"}],["core/column",{width:"33.33%"}]],scope:["block"]},{name:"three-columns-equal",title:Object(Q.__)("33 / 33 / 33"),description:Object(Q.__)("Three columns; equal split"),icon:Object(X.createElement)(me.SVG,{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},Object(X.createElement)(me.Path,{fillRule:"evenodd",d:"M41 14a2 2 0 0 0-2-2H9a2 2 0 0 0-2 2v20a2 2 0 0 0 2 2h30a2 2 0 0 0 2-2V14zM28.5 34h-9V14h9v20zm2 0V14H39v20h-8.5zm-13 0H9V14h8.5v20z"})),innerBlocks:[["core/column"],["core/column"],["core/column"]],scope:["block"]},{name:"three-columns-wider-center",title:Object(Q.__)("25 / 50 / 25"),description:Object(Q.__)("Three columns; wide center column"),icon:Object(X.createElement)(me.SVG,{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},Object(X.createElement)(me.Path,{fillRule:"evenodd",d:"M41 14a2 2 0 0 0-2-2H9a2 2 0 0 0-2 2v20a2 2 0 0 0 2 2h30a2 2 0 0 0 2-2V14zM31 34H17V14h14v20zm2 0V14h6v20h-6zm-18 0H9V14h6v20z"})),innerBlocks:[["core/column",{width:"25%"}],["core/column",{width:"50%"}],["core/column",{width:"25%"}]],scope:["block"]}];function Vc(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Ac(e){for(var t=1;t0,rootClientId:n(i)}}),[i]),u=s.hasChildBlocks,b=s.rootClientId,m=Object(de.useDispatch)("core/block-editor").updateBlockAttributes,d=Number.isFinite(n)?n+"%":n,p=Object(K.useBlockProps)({className:l,style:d?{flexBasis:d}:void 0}),g=Object(K.__experimentalUseInnerBlocksProps)(p,{templateLock:o,renderAppender:u?void 0:K.InnerBlocks.ButtonBlockAppender});return Object(X.createElement)(X.Fragment,null,Object(X.createElement)(K.BlockControls,null,Object(X.createElement)(K.BlockVerticalAlignmentToolbar,{onChange:function(e){a({verticalAlignment:e}),m(b,{verticalAlignment:null})},value:r})),Object(X.createElement)(K.InspectorControls,null,Object(X.createElement)(me.PanelBody,{title:Object(Q.__)("Column settings")},Object(X.createElement)(me.__experimentalUnitControl,{label:Object(Q.__)("Width"),labelPosition:"edge",__unstableInputWidth:"80px",value:n||"",onChange:function(e){e=0>parseFloat(e)?"0":e,a({width:e})},units:[{value:"%",label:"%",default:""},{value:"px",label:"px",default:""},{value:"em",label:"em",default:""},{value:"rem",label:"rem",default:""},{value:"vw",label:"vw",default:""}]}))),Object(X.createElement)("div",g))};var Zc={apiVersion:2,name:"core/column",category:"text",parent:["core/columns"],attributes:{verticalAlignment:{type:"string"},width:{type:"string"},templateLock:{type:"string"}},supports:{anchor:!0,reusable:!1,html:!1}},$c=Zc.name,Kc={title:Object(Q.__)("Column"),icon:Fc,description:Object(Q.__)("A single column within a columns block."),edit:qc,save:function(e){var t,r=e.attributes,n=r.verticalAlignment,c=r.width,o=ne()(Object(Z.a)({},"is-vertically-aligned-".concat(n),n));return c&&(t={flexBasis:Number.isFinite(c)?c+"%":c}),Object(X.createElement)("div",K.useBlockProps.save({className:o,style:t}),Object(X.createElement)(K.InnerBlocks.Content,null))},deprecated:Wc},Yc=Object(X.createElement)(ee.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(X.createElement)(ee.Path,{d:"M18.7 3H5.3C4 3 3 4 3 5.3v13.4C3 20 4 21 5.3 21h13.4c1.3 0 2.3-1 2.3-2.3V5.3C21 4 20 3 18.7 3zm.8 15.7c0 .4-.4.8-.8.8H5.3c-.4 0-.8-.4-.8-.8V5.3c0-.4.4-.8.8-.8h6.2v8.9l2.5-3.1 2.5 3.1V4.5h2.2c.4 0 .8.4.8.8v13.4z"}));function Jc(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}var Qc={"top left":"is-position-top-left","top center":"is-position-top-center","top right":"is-position-top-right","center left":"is-position-center-left","center center":"is-position-center-center",center:"is-position-center-center","center right":"is-position-center-right","bottom left":"is-position-bottom-left","bottom center":"is-position-bottom-center","bottom right":"is-position-bottom-right"};function Xc(e){return e?{backgroundImage:"url(".concat(e,")")}:{}}var eo=[{value:"px",label:"px",default:430},{value:"em",label:"em",default:20},{value:"rem",label:"rem",default:20},{value:"vw",label:"vw",default:20},{value:"vh",label:"vh",default:50}];function to(e){return 0!==e&&50!==e&&e?"has-background-dim-"+10*Math.round(e/10):null}function ro(e){return function(t){if(t&&t.url){var r;if(Object(Ce.isBlobURL)(t.url)&&(t.type=Object(Ce.getBlobTypeByURL)(t.url)),t.media_type)r="image"===t.media_type?"image":"video";else{if("image"!==t.type&&"video"!==t.type)return;r=t.type}e(function(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:50,r=arguments.length>2?arguments[2]:void 0,n=arguments.length>3?arguments[3]:void 0,c=Object(X.useState)(!1),o=Object(be.a)(c,2),a=o[0],i=o[1];return Object(X.useEffect)((function(){e&&t<=50&&n.current&&vo().getColorAsync(n.current,(function(e){i(e.isDark)}))}),[e,e&&t<=50&&n.current,i]),Object(X.useEffect)((function(){if(t>50||!e){if(!r)return void i(!0);i(mo()(r).isDark())}}),[r,t>50||!e,i]),Object(X.useEffect)((function(){e||r||i(!1)}),[!e&&!r,i]),a}(w,h,s.color,B),z="image"===g,N="video"===g,M=Object(X.useState)(null),R=Object(be.a)(M,2),V=R[0],A=R[1],H=m.removeAllNotices,L=m.createErrorNotice,I=y?"".concat(j).concat(y):j,D=go(go({},z?Xc(w):{}),{},{backgroundColor:s.color,minHeight:V||I||void 0});C&&!w&&(D.background=C),f&&(c="".concat(100*f.x,"% ").concat(100*f.y,"%"),z&&(D.backgroundPosition=c));var F=!!(w||s.color||C),G=N||z&&(!O||v),U=Object(X.createElement)(X.Fragment,null,Object(X.createElement)(K.BlockControls,null,F&&Object(X.createElement)(X.Fragment,null,Object(X.createElement)(K.__experimentalBlockAlignmentMatrixToolbar,{label:Object(Q.__)("Change content position"),value:d,onChange:function(e){return a({contentPosition:e})}}),Object(X.createElement)(K.MediaReplaceFlow,{mediaId:p,mediaURL:w,allowedTypes:ho,accept:"image/*,video/*",onSelect:S}))),Object(X.createElement)(K.InspectorControls,null,!!w&&Object(X.createElement)(me.PanelBody,{title:Object(Q.__)("Media settings")},z&&Object(X.createElement)(X.Fragment,null,Object(X.createElement)(me.ToggleControl,{label:Object(Q.__)("Fixed background"),checked:O,onChange:function(){a(go({hasParallax:!O},O?{}:{focalPoint:void 0}))}}),Object(X.createElement)(me.ToggleControl,{label:Object(Q.__)("Repeated background"),checked:v,onChange:function(){a({isRepeated:!v})}})),G&&Object(X.createElement)(me.FocalPointPicker,{label:Object(Q.__)("Focal point picker"),url:w,value:f,onChange:function(e){return a({focalPoint:e})}}),Object(X.createElement)(me.PanelRow,null,Object(X.createElement)(me.Button,{isSecondary:!0,isSmall:!0,className:"block-library-cover__reset-button",onClick:function(){return a({url:void 0,id:void 0,backgroundType:void 0,dimRatio:void 0,focalPoint:void 0,hasParallax:void 0,isRepeated:void 0})}},Object(Q.__)("Clear Media")))),F&&Object(X.createElement)(X.Fragment,null,Object(X.createElement)(me.PanelBody,{title:Object(Q.__)("Dimensions")},Object(X.createElement)(jo,{value:V||j,unit:y,onChange:function(e){return a({minHeight:e})},onUnitChange:function(e){a({minHeightUnit:e})}})),Object(X.createElement)(K.__experimentalPanelColorGradientSettings,{title:Object(Q.__)("Overlay"),initialOpen:!0,settings:[{colorValue:s.color,gradientValue:C,onColorChange:u,onGradientChange:x,label:Object(Q.__)("Color")}]},!!w&&Object(X.createElement)(me.RangeControl,{label:Object(Q.__)("Opacity"),value:h,onChange:function(e){return a({dimRatio:e})},min:0,max:100,step:10,required:!0}))))),W=Object(K.useBlockProps)(),q=Object(K.__experimentalUseInnerBlocksProps)({className:"wp-block-cover__inner-container"},{template:fo});if(!F){var $=Object(X.createElement)(K.BlockIcon,{icon:Yc}),Y=Object(Q.__)("Cover");return Object(X.createElement)(X.Fragment,null,U,Object(X.createElement)("div",Object(ue.a)({},W,{className:ne()("is-placeholder",W.className)}),Object(X.createElement)(K.MediaPlaceholder,{icon:$,labels:{title:Y,instructions:Object(Q.__)("Upload an image or video file, or pick one from your media library.")},onSelect:S,accept:"image/*,video/*",allowedTypes:ho,notices:l,onError:function(e){H(),L(e)}},Object(X.createElement)("div",{className:"wp-block-cover__placeholder-background-options"},Object(X.createElement)(K.ColorPalette,{disableCustomColors:!0,value:s.color,onChange:u,clearable:!1})))))}var J=ne()(to(h),(t={"is-dark-theme":T,"has-background-dim":0!==h,"is-transient":P,"has-parallax":O,"is-repeated":v},Object(Z.a)(t,s.class,s.class),Object(Z.a)(t,"has-background-gradient",C),Object(Z.a)(t,E,!w&&E),Object(Z.a)(t,"has-custom-content-position",!no(d)),t),co(d));return Object(X.createElement)(X.Fragment,null,U,Object(X.createElement)("div",Object(ue.a)({},W,{className:ne()(J,W.className),style:go(go({},D),W.style),"data-url":w}),Object(X.createElement)(Oo,{values:null==_||null===(r=_.spacing)||void 0===r?void 0:r.padding,showValues:null==_||null===(n=_.visualizers)||void 0===n?void 0:n.padding}),Object(X.createElement)(_o,{className:"block-library-cover__resize-container",onResizeStart:function(){a({minHeightUnit:"px"}),b(!1)},onResize:A,onResizeStop:function(e){b(!0),a({minHeight:e}),A(null)},showHandle:i}),z&&Object(X.createElement)("img",{ref:B,"aria-hidden":!0,alt:"",style:{display:"none"},src:w}),w&&C&&0!==h&&Object(X.createElement)("span",{"aria-hidden":"true",className:ne()("wp-block-cover__gradient-background",E),style:{background:C}}),N&&Object(X.createElement)("video",{ref:B,className:"wp-block-cover__video-background",autoPlay:!0,muted:!0,loop:!0,src:w,style:{objectPosition:c}}),P&&Object(X.createElement)(me.Spinner,null),Object(X.createElement)("div",q)))}));var ko={from:[{type:"block",blocks:["core/image"],transform:function(e){var t=e.caption,r=e.url,n=e.align,c=e.id,o=e.anchor;return Object(Y.createBlock)("core/cover",{title:t,url:r,align:n,id:c,anchor:o})}},{type:"block",blocks:["core/video"],transform:function(e){var t=e.caption,r=e.src,n=e.align,c=e.id,o=e.anchor;return Object(Y.createBlock)("core/cover",{title:t,url:r,align:n,id:c,backgroundType:"video",anchor:o})}}],to:[{type:"block",blocks:["core/image"],isMatch:function(e){var t=e.backgroundType,r=e.url,n=e.overlayColor,c=e.customOverlayColor,o=e.gradient,a=e.customGradient;return r?"image"===t:!(n||c||o||a)},transform:function(e){var t=e.title,r=e.url,n=e.align,c=e.id,o=e.anchor;return Object(Y.createBlock)("core/image",{caption:t,url:r,align:n,id:c,anchor:o})}},{type:"block",blocks:["core/video"],isMatch:function(e){var t=e.backgroundType,r=e.url,n=e.overlayColor,c=e.customOverlayColor,o=e.gradient,a=e.customGradient;return r?"video"===t:!(n||c||o||a)},transform:function(e){var t=e.title,r=e.url,n=e.align,c=e.id,o=e.anchor;return Object(Y.createBlock)("core/video",{caption:t,src:r,id:c,align:n,anchor:o})}}]},Eo={apiVersion:2,name:"core/cover",category:"media",attributes:{url:{type:"string"},id:{type:"number"},hasParallax:{type:"boolean",default:!1},isRepeated:{type:"boolean",default:!1},dimRatio:{type:"number",default:50},overlayColor:{type:"string"},customOverlayColor:{type:"string"},backgroundType:{type:"string",default:"image"},focalPoint:{type:"object"},minHeight:{type:"number"},minHeightUnit:{type:"string"},gradient:{type:"string"},customGradient:{type:"string"},contentPosition:{type:"string"}},supports:{anchor:!0,align:!0,html:!1,spacing:{padding:!0}}},Co=Eo.name,xo={title:Object(Q.__)("Cover"),description:Object(Q.__)("Add an image or video with a text overlay — great for headers."),icon:Yc,example:{attributes:{customOverlayColor:"#065174",dimRatio:40,url:"https://s.w.org/images/core/5.3/Windbuchencom.jpg"},innerBlocks:[{name:"core/paragraph",attributes:{customFontSize:48,content:Object(Q.__)("Snow Patrol"),align:"center"}}]},transforms:ko,save:function(e){var t,r,n=e.attributes,c=n.backgroundType,o=n.gradient,a=n.contentPosition,i=n.customGradient,l=n.customOverlayColor,s=n.dimRatio,u=n.focalPoint,b=n.hasParallax,m=n.isRepeated,d=n.overlayColor,p=n.url,g=n.minHeight,h=n.minHeightUnit,f=Object(K.getColorClassName)("background-color",d),O=Object(K.__experimentalGetGradientClass)(o),v=h?"".concat(g).concat(h):g,j="image"===c,y="video"===c,_=j?Xc(p):{},w={};f||(_.backgroundColor=l),i&&!p&&(_.background=i),_.minHeight=v||void 0,u&&(r="".concat(Math.round(100*u.x),"% ").concat(Math.round(100*u.y),"%"),j&&!b&&(_.backgroundPosition=r),y&&(w.objectPosition=r));var k=ne()(to(s),f,(t={"has-background-dim":0!==s,"has-parallax":b,"is-repeated":m,"has-background-gradient":o||i},Object(Z.a)(t,O,!p&&O),Object(Z.a)(t,"has-custom-content-position",!no(a)),t),co(a));return Object(X.createElement)("div",K.useBlockProps.save({className:k,style:_}),p&&(o||i)&&0!==s&&Object(X.createElement)("span",{"aria-hidden":"true",className:ne()("wp-block-cover__gradient-background",O),style:i?{background:i}:void 0}),y&&p&&Object(X.createElement)("video",{className:"wp-block-cover__video-background",autoPlay:!0,muted:!0,loop:!0,playsInline:!0,src:p,style:w}),Object(X.createElement)("div",{className:"wp-block-cover__inner-container"},Object(X.createElement)(K.InnerBlocks.Content,null)))},edit:wo,deprecated:lo},So=function(e){var t=e.blockSupportsResponsive,r=e.showEditButton,n=e.themeSupportsResponsive,c=e.allowResponsive,o=e.getResponsiveHelp,a=e.toggleResponsive,i=e.switchBackToURLInput;return Object(X.createElement)(X.Fragment,null,Object(X.createElement)(K.BlockControls,null,Object(X.createElement)(me.ToolbarGroup,null,r&&Object(X.createElement)(me.ToolbarButton,{className:"components-toolbar__control",label:Object(Q.__)("Edit URL"),icon:Nr.a,onClick:i}))),n&&t&&Object(X.createElement)(K.InspectorControls,null,Object(X.createElement)(me.PanelBody,{title:Object(Q.__)("Media settings"),className:"blocks-responsive"},Object(X.createElement)(me.ToggleControl,{label:Object(Q.__)("Resize for smaller devices"),checked:c,help:o,onChange:a}))))},Po=function(){return Object(X.createElement)("div",{className:"wp-block-embed is-loading"},Object(X.createElement)(me.Spinner,null),Object(X.createElement)("p",null,Object(Q.__)("Embedding…")))},Bo=function(e){var t=e.icon,r=e.label,n=e.value,c=e.onSubmit,o=e.onChange,a=e.cannotEmbed,i=e.fallback,l=e.tryAgain;return Object(X.createElement)(me.Placeholder,{icon:Object(X.createElement)(K.BlockIcon,{icon:t,showColors:!0}),label:r,className:"wp-block-embed",instructions:Object(Q.__)("Paste a link to the content you want to display on your site.")},Object(X.createElement)("form",{onSubmit:c},Object(X.createElement)("input",{type:"url",value:n||"",className:"components-placeholder__input","aria-label":r,placeholder:Object(Q.__)("Enter URL to embed here…"),onChange:o}),Object(X.createElement)(me.Button,{isPrimary:!0,type:"submit"},Object(Q._x)("Embed","button label"))),Object(X.createElement)("div",{className:"components-placeholder__learn-more"},Object(X.createElement)(me.ExternalLink,{href:Object(Q.__)("https://wordpress.org/support/article/embeds/")},Object(Q.__)("Learn more about embeds"))),a&&Object(X.createElement)("div",{className:"components-placeholder__error"},Object(X.createElement)("div",{className:"components-placeholder__instructions"},Object(Q.__)("Sorry, this content could not be embedded.")),Object(X.createElement)(me.Button,{isSecondary:!0,onClick:l},Object(Q._x)("Try again","button label"))," ",Object(X.createElement)(me.Button,{isSecondary:!0,onClick:i},Object(Q._x)("Convert to link","button label"))))};function To(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=Object(Br.a)(e);if(t){var c=Object(Br.a)(this).constructor;r=Reflect.construct(n,arguments,c)}else r=n.apply(this,arguments);return Object(Pr.a)(this,r)}}var zo=window,No=zo.FocusEvent,Mo=zo.DOMParser,Ro=function(e){Object(Sr.a)(r,e);var t=To(r);function r(){var e;return Object(Er.a)(this,r),(e=t.apply(this,arguments)).checkFocus=e.checkFocus.bind(Object(xr.a)(e)),e.node=Object(X.createRef)(),e}return Object(Cr.a)(r,[{key:"componentDidMount",value:function(){window.addEventListener("message",this.resizeWPembeds)}},{key:"componentWillUnmount",value:function(){window.removeEventListener("message",this.resizeWPembeds)}},{key:"resizeWPembeds",value:function(e){var t=e.data,r=(t=void 0===t?{}:t).secret,n=t.message,c=t.value;[r,n,c].some((function(e){return!e}))||"height"!==n||document.querySelectorAll('iframe[data-secret="'.concat(r,'"')).forEach((function(e){+e.height!==c&&(e.height=c)}))}},{key:"checkFocus",value:function(){var e=document.activeElement;if("IFRAME"===e.tagName&&e.parentNode===this.node.current){var t=new No("focus",{bubbles:!0});e.dispatchEvent(t)}}},{key:"render",value:function(){var e=this.props.html,t=(new Mo).parseFromString(e,"text/html"),r=t.querySelector("iframe");r&&r.removeAttribute("style");var n=t.querySelector("blockquote");return n&&(n.style.display="none"),Object(X.createElement)("div",{ref:this.node,className:"wp-block-embed__wrapper",dangerouslySetInnerHTML:{__html:t.body.innerHTML}})}}]),r}(X.Component),Vo=Object(xe.withGlobalEvents)({blur:"checkFocus"})(Ro);function Ao(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=Object(Br.a)(e);if(t){var c=Object(Br.a)(this).constructor;r=Reflect.construct(n,arguments,c)}else r=n.apply(this,arguments);return Object(Pr.a)(this,r)}}var Ho=function(e){Object(Sr.a)(r,e);var t=Ao(r);function r(){var e;return Object(Er.a)(this,r),(e=t.apply(this,arguments)).hideOverlay=e.hideOverlay.bind(Object(xr.a)(e)),e.state={interactive:!1},e}return Object(Cr.a)(r,[{key:"hideOverlay",value:function(){this.setState({interactive:!0})}},{key:"render",value:function(){var e,t,r,n=this.props,c=n.preview,o=n.previewable,a=n.url,i=n.type,l=n.caption,s=n.onCaptionChange,u=n.isSelected,b=n.className,m=n.icon,d=n.label,p=n.insertBlocksAfter,g=c.scripts,h=this.state.interactive,f="photo"===i?(t=(e=c).thumbnail_url||e.url,r=Object(X.createElement)("p",null,Object(X.createElement)("img",{src:t,alt:e.title,width:"100%"})),Object(X.renderToString)(r)):c.html,O=new URL(a).host.split("."),v=O.splice(O.length-2,O.length-1).join("."),j=Object(Q.sprintf)(Object(Q.__)("Embedded content from %s"),v),y=Ne()(i,b,"wp-block-embed__wrapper"),_="wp-embed"===i?Object(X.createElement)(Vo,{html:f}):Object(X.createElement)("div",{className:"wp-block-embed__wrapper"},Object(X.createElement)(me.SandBox,{html:f,scripts:g,title:j,type:y,onFocus:this.hideOverlay}),!h&&Object(X.createElement)("div",{className:"block-library-embed__interactive-overlay",onMouseUp:this.hideOverlay}));return Object(X.createElement)("figure",{className:Ne()(b,"wp-block-embed",{"is-type-video":"video"===i})},o?_:Object(X.createElement)(me.Placeholder,{icon:Object(X.createElement)(K.BlockIcon,{icon:m,showColors:!0}),label:d},Object(X.createElement)("p",{className:"components-placeholder__error"},Object(X.createElement)("a",{href:a},a)),Object(X.createElement)("p",{className:"components-placeholder__error"},Object(Q.sprintf)(Object(Q.__)("Embedded content from %s can't be previewed in the editor."),v))),(!K.RichText.isEmpty(l)||u)&&Object(X.createElement)(K.RichText,{tagName:"figcaption",placeholder:Object(Q.__)("Write caption…"),value:l,onChange:s,inlineToolbar:!0,__unstableOnSplitAtEnd:function(){return p(Object(Y.createBlock)("core/paragraph"))}}))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return!e.isSelected&&t.interactive?{interactive:!1}:null}}]),r}(X.Component);function Lo(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Io(e){for(var t=1;t0},priority:15,transform:function(e){var t=[];return e.forEach((function(e){var r=Object(Ce.createBlobURL)(e);t.push(Object(Y.createBlock)("core/file",{href:r,fileName:e.name,textLinkHref:r}))})),t}},{type:"block",blocks:["core/audio"],transform:function(e){return Object(Y.createBlock)("core/file",{href:e.src,fileName:e.caption,textLinkHref:e.src,id:e.id,anchor:e.anchor})}},{type:"block",blocks:["core/video"],transform:function(e){return Object(Y.createBlock)("core/file",{href:e.src,fileName:e.caption,textLinkHref:e.src,id:e.id,anchor:e.anchor})}},{type:"block",blocks:["core/image"],transform:function(e){return Object(Y.createBlock)("core/file",{href:e.url,fileName:e.caption,textLinkHref:e.url,id:e.id,anchor:e.anchor})}}],to:[{type:"block",blocks:["core/audio"],isMatch:function(e){var t=e.id;if(!t)return!1;var r=(0,Object(de.select)("core").getMedia)(t);return!!r&&Object(J.includes)(r.mime_type,"audio")},transform:function(e){return Object(Y.createBlock)("core/audio",{src:e.href,caption:e.fileName,id:e.id,anchor:e.anchor})}},{type:"block",blocks:["core/video"],isMatch:function(e){var t=e.id;if(!t)return!1;var r=(0,Object(de.select)("core").getMedia)(t);return!!r&&Object(J.includes)(r.mime_type,"video")},transform:function(e){return Object(Y.createBlock)("core/video",{src:e.href,caption:e.fileName,id:e.id,anchor:e.anchor})}},{type:"block",blocks:["core/image"],isMatch:function(e){var t=e.id;if(!t)return!1;var r=(0,Object(de.select)("core").getMedia)(t);return!!r&&Object(J.includes)(r.mime_type,"image")},transform:function(e){return Object(Y.createBlock)("core/image",{url:e.href,caption:e.fileName,id:e.id,anchor:e.anchor})}}]},ha={apiVersion:2,name:"core/file",category:"media",attributes:{id:{type:"number"},href:{type:"string"},fileName:{type:"string",source:"html",selector:"a:not([download])"},textLinkHref:{type:"string",source:"attribute",selector:"a:not([download])",attribute:"href"},textLinkTarget:{type:"string",source:"attribute",selector:"a:not([download])",attribute:"target"},showDownloadButton:{type:"boolean",default:!0},downloadButtonText:{type:"string",source:"html",selector:"a[download]"}},supports:{anchor:!0,align:!0}},fa=ha.name,Oa={title:Object(Q.__)("File"),description:Object(Q.__)("Add a link to a downloadable file."),icon:ma,keywords:[Object(Q.__)("document"),Object(Q.__)("pdf"),Object(Q.__)("download")],transforms:ga,edit:pa,save:function(e){var t=e.attributes,r=t.href,n=t.fileName,c=t.textLinkHref,o=t.textLinkTarget,a=t.showDownloadButton,i=t.downloadButtonText;return r&&Object(X.createElement)("div",K.useBlockProps.save(),!K.RichText.isEmpty(n)&&Object(X.createElement)("a",{href:c,target:o,rel:!!o&&"noreferrer noopener"},Object(X.createElement)(K.RichText.Content,{value:n})),a&&Object(X.createElement)("a",{href:r,className:"wp-block-file__button",download:!0},Object(X.createElement)(K.RichText.Content,{value:i})))}},va=Object(X.createElement)(ee.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(X.createElement)(ee.Path,{d:"M4.8 11.4H2.1V9H1v6h1.1v-2.6h2.7V15h1.1V9H4.8v2.4zm1.9-1.3h1.7V15h1.1v-4.9h1.7V9H6.7v1.1zM16.2 9l-1.5 2.7L13.3 9h-.9l-.8 6h1.1l.5-4 1.5 2.8 1.5-2.8.5 4h1.1L17 9h-.8zm3.8 5V9h-1.1v6h3.6v-1H20z"}));var ja={from:[{type:"block",blocks:["core/code"],transform:function(e){var t=e.content;return Object(Y.createBlock)("core/html",{content:t})}}]},ya={apiVersion:2,name:"core/html",category:"widgets",attributes:{content:{type:"string",source:"html"}},supports:{customClassName:!1,className:!1,html:!1}},_a=ya.name,wa={title:Object(Q.__)("Custom HTML"),description:Object(Q.__)("Add custom HTML code and preview it as you edit."),icon:va,keywords:[Object(Q.__)("embed")],example:{attributes:{content:""+Object(Q.__)("Welcome to the wonderful world of blocks…")+""}},edit:function(e){var t=e.attributes,r=e.setAttributes,n=e.isSelected,c=Object(X.useState)(),o=Object(be.a)(c,2),a=o[0],i=o[1],l=Object(de.useSelect)((function(e){return["\n\t\t\thtml,body,:root {\n\t\t\t\tmargin: 0 !important;\n\t\t\t\tpadding: 0 !important;\n\t\t\t\toverflow: visible !important;\n\t\t\t\tmin-height: auto !important;\n\t\t\t}\n\t\t"].concat(Object(q.a)(Object(K.transformStyles)(e("core/block-editor").getSettings().styles)))}),[]);return Object(X.createElement)("div",Object(K.useBlockProps)(),Object(X.createElement)(K.BlockControls,null,Object(X.createElement)(me.ToolbarGroup,null,Object(X.createElement)(me.ToolbarButton,{className:"components-tab-button",isPressed:!a,onClick:function(){i(!1)}},Object(X.createElement)("span",null,"HTML")),Object(X.createElement)(me.ToolbarButton,{className:"components-tab-button",isPressed:a,onClick:function(){i(!0)}},Object(X.createElement)("span",null,Object(Q.__)("Preview"))))),Object(X.createElement)(me.Disabled.Consumer,null,(function(e){return a||e?Object(X.createElement)(X.Fragment,null,Object(X.createElement)(me.SandBox,{html:t.content,styles:l}),!n&&Object(X.createElement)("div",{className:"block-library-html__preview-overlay"})):Object(X.createElement)(K.PlainText,{value:t.content,onChange:function(e){return r({content:e})},placeholder:Object(Q.__)("Write HTML…"),"aria-label":Object(Q.__)("HTML")})})))},save:function(e){var t=e.attributes;return Object(X.createElement)(X.RawHTML,null,t.content)},transforms:ja},ka=Object(X.createElement)(ee.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(X.createElement)(ee.Path,{d:"M4 17h7V6H4v11zm9-10v1.5h7V7h-7zm0 5.5h7V11h-7v1.5zm0 4h7V15h-7v1.5z"})),Ea=Object(X.createElement)(me.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(X.createElement)(me.Path,{d:"M18 2l2 4h-2l-2-4h-3l2 4h-2l-2-4h-1a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V2zm2 12H10V4.4L11.8 8H20z"}),Object(X.createElement)(me.Path,{d:"M14 20H4V10h3V8H4a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-3h-2z"}),Object(X.createElement)(me.Path,{d:"M5 19h8l-1.59-2H9.24l-.84 1.1L7 16.3 5 19z"})),Ca=["image","video"];function xa(e,t){return e?{backgroundImage:"url(".concat(e,")"),backgroundPosition:t?"".concat(100*t.x,"% ").concat(100*t.y,"%"):"50% 50%"}:{}}function Sa(e){var t=e.isSelected,r=e.isStackedOnMobile,n=Object(Mt.a)(e,["isSelected","isStackedOnMobile"]),c=Object(xe.useViewportMatch)("small","<");return Object(X.createElement)(me.ResizableBox,Object(ue.a)({showHandle:t&&(!c||!r)},n))}function Pa(e){var t=e.mediaId,r=e.mediaUrl,n=e.onSelectMedia;return Object(X.createElement)(K.BlockControls,null,Object(X.createElement)(K.MediaReplaceFlow,{mediaId:t,mediaURL:r,allowedTypes:Ca,accept:"image/*,video/*",onSelect:n}))}function Ba(e){var t=e.className,r=e.noticeOperations,n=e.noticeUI,c=e.onSelectMedia;return Object(X.createElement)(K.MediaPlaceholder,{icon:Object(X.createElement)(K.BlockIcon,{icon:Ea}),labels:{title:Object(Q.__)("Media area")},className:t,onSelect:c,accept:"image/*,video/*",allowedTypes:Ca,notices:n,onError:function(e){r.removeAllNotices(),r.createErrorNotice(e)}})}var Ta=Object(me.withNotices)((function(e){var t=e.className,r=e.commitWidthChange,n=e.focalPoint,c=e.imageFill,o=e.isSelected,a=e.isStackedOnMobile,i=e.mediaAlt,l=e.mediaId,s=e.mediaPosition,u=e.mediaType,b=e.mediaUrl,m=e.mediaWidth,d=e.onSelectMedia,p=e.onWidthChange,g=Object(de.useDispatch)("core/block-editor").toggleSelection;if(u&&b){var h={right:"left"===s,left:"right"===s},f="image"===u&&c?xa(b,n):{},O={image:function(){return Object(X.createElement)("img",{src:b,alt:i})},video:function(){return Object(X.createElement)("video",{controls:!0,src:b})}};return Object(X.createElement)(Sa,{as:"figure",className:ne()(t,"editor-media-container__resizer"),style:f,size:{width:m+"%"},minWidth:"10%",maxWidth:"100%",enable:h,onResizeStart:function(){g(!1)},onResize:function(e,t,r){p(parseInt(r.style.width))},onResizeStop:function(e,t,n){g(!0),r(parseInt(n.style.width))},axis:"x",isSelected:o,isStackedOnMobile:a},Object(X.createElement)(Pa,{onSelectMedia:d,mediaUrl:b,mediaId:l}),(O[u]||J.noop)())}return Object(X.createElement)(Ba,e)}));function za(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Na(e){for(var t=1;tEarns his living
Noiselessly.")}},{name:"core/paragraph",attributes:{content:Object(Q.__)("— Kobayashi Issa (一茶)")}}]},transforms:Ga,edit:Fa,save:function(e){var t,r,n=e.attributes,c=n.isStackedOnMobile,o=n.mediaAlt,a=n.mediaPosition,i=n.mediaType,l=n.mediaUrl,s=n.mediaWidth,u=n.mediaId,b=n.verticalAlignment,m=n.imageFill,d=n.focalPoint,p=n.linkClass,g=n.href,h=n.linkTarget,f=n.rel,O=n.mediaSizeSlug||"full",v=Object(J.isEmpty)(f)?void 0:f,j=ne()((t={},Object(Z.a)(t,"wp-image-".concat(u),u&&"image"===i),Object(Z.a)(t,"size-".concat(O),u&&"image"===i),t)),y=Object(X.createElement)("img",{src:l,alt:o,className:j||null});g&&(y=Object(X.createElement)("a",{className:p,href:g,target:h,rel:v},y));var _,w={image:function(){return y},video:function(){return Object(X.createElement)("video",{controls:!0,src:l})}},k=ne()((r={"has-media-on-the-right":"right"===a,"is-stacked-on-mobile":c},Object(Z.a)(r,"is-vertically-aligned-".concat(b),b),Object(Z.a)(r,"is-image-fill",m),r)),E=m?xa(l,d):{};50!==s&&(_="right"===a?"auto ".concat(s,"%"):"".concat(s,"% auto"));var C={gridTemplateColumns:_};return Object(X.createElement)("div",K.useBlockProps.save({className:k,style:C}),Object(X.createElement)("figure",{className:"wp-block-media-text__media",style:E},(w[i]||J.noop)()),Object(X.createElement)("div",{className:"wp-block-media-text__content"},Object(X.createElement)(K.InnerBlocks.Content,null)))},deprecated:Va},Za=Object(X.createElement)(ee.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(X.createElement)(ee.Path,{d:"M18 4H6c-1.1 0-2 .9-2 2v12.9c0 .6.5 1.1 1.1 1.1.3 0 .5-.1.8-.3L8.5 17H18c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm.5 11c0 .3-.2.5-.5.5H7.9l-2.4 2.4V6c0-.3.2-.5.5-.5h12c.3 0 .5.2.5.5v9z"}));var $a={apiVersion:2,name:"core/latest-comments",category:"widgets",attributes:{commentsToShow:{type:"number",default:5,minimum:1,maximum:100},displayAvatar:{type:"boolean",default:!0},displayDate:{type:"boolean",default:!0},displayExcerpt:{type:"boolean",default:!0}},supports:{align:!0,html:!1}},Ka=$a.name,Ya={title:Object(Q.__)("Latest Comments"),description:Object(Q.__)("Display a list of your most recent comments."),icon:Za,keywords:[Object(Q.__)("recent comments")],example:{},edit:function(e){var t=e.attributes,r=e.setAttributes,n=t.commentsToShow,c=t.displayAvatar,o=t.displayDate,a=t.displayExcerpt;return Object(X.createElement)("div",Object(K.useBlockProps)(),Object(X.createElement)(K.InspectorControls,null,Object(X.createElement)(me.PanelBody,{title:Object(Q.__)("Latest comments settings")},Object(X.createElement)(me.ToggleControl,{label:Object(Q.__)("Display avatar"),checked:c,onChange:function(){return r({displayAvatar:!c})}}),Object(X.createElement)(me.ToggleControl,{label:Object(Q.__)("Display date"),checked:o,onChange:function(){return r({displayDate:!o})}}),Object(X.createElement)(me.ToggleControl,{label:Object(Q.__)("Display excerpt"),checked:a,onChange:function(){return r({displayExcerpt:!a})}}),Object(X.createElement)(me.RangeControl,{label:Object(Q.__)("Number of comments"),value:n,onChange:function(e){return r({commentsToShow:e})},min:1,max:100,required:!0}))),Object(X.createElement)(me.Disabled,null,Object(X.createElement)(en.a,{block:"core/latest-comments",attributes:t})))}},Ja=Object(X.createElement)(ee.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(X.createElement)(ee.Path,{d:"M18 4H6c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm.5 14c0 .3-.2.5-.5.5H6c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h12c.3 0 .5.2.5.5v12zM7 11h2V9H7v2zm0 4h2v-2H7v2zm3-4h7V9h-7v2zm0 4h7v-2h-7v2z"}));function Qa(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Xa(e){for(var t=1;t0?a.map((function(e){return e.id})):[],d=r("postType","post",Object(J.pickBy)({categories:m,author:i,order:c,orderby:o,per_page:n},(function(e){return!Object(J.isUndefined)(e)})));return{defaultImageWidth:Object(J.get)(b,[f,"width"],0),defaultImageHeight:Object(J.get)(b,[f,"height"],0),imageSizeOptions:u.filter((function(e){return"full"!==e.slug})).map((function(e){var t=e.name;return{value:e.slug,label:t}})),latestPosts:Array.isArray(d)?d.map((function(e){if(!e.featured_media)return e;var t=l(e.featured_media),r=Object(J.get)(t,["media_details","sizes",f,"source_url"],null);r||(r=Object(J.get)(t,"source_url",null));var n={url:r,alt:null==t?void 0:t.alt_text};return oi(oi({},e),{},{featuredImageInfo:n})})):d}}),[f,n,c,o,a,i]),_=y.imageSizeOptions,w=y.latestPosts,k=y.defaultImageWidth,E=y.defaultImageHeight,C=Object(X.useState)([]),x=Object(be.a)(C,2),S=x[0],P=x[1],B=Object(X.useState)([]),T=Object(be.a)(B,2),z=T[0],N=T[1],M=S.reduce((function(e,t){return oi(oi({},e),{},Object(Z.a)({},t.name,t))}),{}),R=Object(X.useRef)();Object(X.useEffect)((function(){return R.current=!0,dt()({path:Object(Se.addQueryArgs)("/wp/v2/categories",ai)}).then((function(e){R.current&&P(e)})).catch((function(){R.current&&P([])})),dt()({path:Object(Se.addQueryArgs)("/wp/v2/users",ii)}).then((function(e){R.current&&N(e)})).catch((function(){R.current&&N([])})),function(){R.current=!1}}),[]);var V=Object(X.createElement)(K.InspectorControls,null,Object(X.createElement)(me.PanelBody,{title:Object(Q.__)("Post content settings")},Object(X.createElement)(me.ToggleControl,{label:Object(Q.__)("Post content"),checked:u,onChange:function(e){return r({displayPostContent:e})}}),u&&Object(X.createElement)(me.RadioControl,{label:Object(Q.__)("Show:"),selected:s,options:[{label:Object(Q.__)("Excerpt"),value:"excerpt"},{label:Object(Q.__)("Full post"),value:"full_post"}],onChange:function(e){return r({displayPostContentRadio:e})}}),u&&"excerpt"===s&&Object(X.createElement)(me.RangeControl,{label:Object(Q.__)("Max number of words in excerpt"),value:g,onChange:function(e){return r({excerptLength:e})},min:10,max:100})),Object(X.createElement)(me.PanelBody,{title:Object(Q.__)("Post meta settings")},Object(X.createElement)(me.ToggleControl,{label:Object(Q.__)("Display author name"),checked:m,onChange:function(e){return r({displayAuthor:e})}}),Object(X.createElement)(me.ToggleControl,{label:Object(Q.__)("Display post date"),checked:b,onChange:function(e){return r({displayPostDate:e})}})),Object(X.createElement)(me.PanelBody,{title:Object(Q.__)("Featured image settings")},Object(X.createElement)(me.ToggleControl,{label:Object(Q.__)("Display featured image"),checked:l,onChange:function(e){return r({displayFeaturedImage:e})}}),l&&Object(X.createElement)(X.Fragment,null,Object(X.createElement)(K.__experimentalImageSizeControl,{onChange:function(e){var t={};e.hasOwnProperty("width")&&(t.featuredImageSizeWidth=e.width),e.hasOwnProperty("height")&&(t.featuredImageSizeHeight=e.height),r(t)},slug:f,width:O,height:v,imageWidth:k,imageHeight:E,imageSizeOptions:_,onChangeImage:function(e){return r({featuredImageSizeSlug:e,featuredImageSizeWidth:void 0,featuredImageSizeHeight:void 0})}}),Object(X.createElement)(me.BaseControl,{className:"block-editor-image-alignment-control__row"},Object(X.createElement)(me.BaseControl.VisualLabel,null,Object(Q.__)("Image alignment")),Object(X.createElement)(K.BlockAlignmentToolbar,{value:h,onChange:function(e){return r({featuredImageAlign:e})},controls:["left","center","right"],isCollapsed:!1})),Object(X.createElement)(me.ToggleControl,{label:Object(Q.__)("Add link to featured image"),checked:j,onChange:function(e){return r({addLinkToFeaturedImage:e})}}))),Object(X.createElement)(me.PanelBody,{title:Object(Q.__)("Sorting and filtering")},Object(X.createElement)(me.QueryControls,Object(ue.a)({order:c,orderBy:o},{numberOfItems:n,onOrderChange:function(e){return r({order:e})},onOrderByChange:function(e){return r({orderBy:e})},onNumberOfItemsChange:function(e){return r({postsToShow:e})},categorySuggestions:M,onCategoryChange:function(e){if(!e.some((function(e){return"string"==typeof e&&!M[e]}))){var t=e.map((function(e){return"string"==typeof e?M[e]:e}));if(Object(J.includes)(t,null))return!1;r({categories:t})}},selectedCategories:a,onAuthorChange:function(e){return r({selectedAuthor:""!==e?Number(e):void 0})},authorList:z,selectedAuthorId:i})),"grid"===d&&Object(X.createElement)(me.RangeControl,{label:Object(Q.__)("Columns"),value:p,onChange:function(e){return r({columns:e})},min:2,max:H?Math.min(6,w.length):6,required:!0}))),A=Object(K.useBlockProps)({className:ne()(Object(Z.a)({"wp-block-latest-posts__list":!0,"is-grid":"grid"===d,"has-dates":b,"has-author":m},"columns-".concat(p),"grid"===d))}),H=Array.isArray(w)&&w.length;if(!H)return Object(X.createElement)("div",A,V,Object(X.createElement)(me.Placeholder,{icon:ic,label:Object(Q.__)("Latest Posts")},Array.isArray(w)?Object(Q.__)("No posts found."):Object(X.createElement)(me.Spinner,null)));var L=w.length>n?w.slice(0,n):w,I=[{icon:ri,title:Object(Q.__)("List view"),onClick:function(){return r({postLayout:"list"})},isActive:"list"===d},{icon:ni,title:Object(Q.__)("Grid view"),onClick:function(){return r({postLayout:"grid"})},isActive:"grid"===d}],D=Object(ti.__experimentalGetSettings)().formats.date;return Object(X.createElement)(X.Fragment,null,V,Object(X.createElement)(K.BlockControls,null,Object(X.createElement)(me.ToolbarGroup,{controls:I})),Object(X.createElement)("ul",A,L.map((function(e,t){var r=Object(J.invoke)(e,["title","rendered","trim"]),n=e.excerpt.rendered,c=z.find((function(t){return t.id===e.author})),o=document.createElement("div");o.innerHTML=n,n=o.textContent||o.innerText||"";var a=e.featuredImageInfo,i=(a=void 0===a?{}:a).url,d=a.alt,p=ne()(Object(Z.a)({"wp-block-latest-posts__featured-image":!0},"align".concat(h),!!h)),f=l&&i,y=f&&Object(X.createElement)("img",{src:i,alt:d,style:{maxWidth:O,maxHeight:v}}),_=g1?n:Object(lr.replace)(n,/\n/g,lr.__UNSTABLE_LINE_SEPARATOR)})),lr.__UNSTABLE_LINE_SEPARATOR),multilineTag:"li"}),anchor:e.anchor})}},{type:"block",blocks:["core/quote","core/pullquote"],transform:function(e){var t=e.value,r=e.anchor;return Object(Y.createBlock)("core/list",{values:Object(lr.toHTMLString)({value:Object(lr.create)({html:t,multilineTag:"p"}),multilineTag:"li"}),anchor:r})}},{type:"raw",selector:"ol,ul",schema:function(e){return{ol:ki(e).ol,ul:ki(e).ul}},transform:function(e){var t={ordered:"OL"===e.nodeName,anchor:""===e.id?void 0:e.id};if(t.ordered){var r=e.getAttribute("type");r&&(t.type=r),null!==e.getAttribute("reversed")&&(t.reversed=!0);var n=parseInt(e.getAttribute("start"),10);isNaN(n)||1===n&&!t.reversed||(t.start=n)}return Object(Y.createBlock)("core/list",wi(wi({},Object(Y.getBlockAttributes)("core/list",e.outerHTML)),t))}}].concat(Object(q.a)(["*","-"].map((function(e){return{type:"prefix",prefix:e,transform:function(e){return Object(Y.createBlock)("core/list",{values:"
  • ".concat(e,"
  • ")})}}}))),Object(q.a)(["1.","1)"].map((function(e){return{type:"prefix",prefix:e,transform:function(e){return Object(Y.createBlock)("core/list",{ordered:!0,values:"
  • ".concat(e,"
  • ")})}}})))),to:[{type:"block",blocks:["core/paragraph"],transform:function(e){var t=e.values;return Object(lr.split)(Object(lr.create)({html:t,multilineTag:"li",multilineWrapperTags:["ul","ol"]}),lr.__UNSTABLE_LINE_SEPARATOR).map((function(e){return Object(Y.createBlock)("core/paragraph",{content:Object(lr.toHTMLString)({value:e})})}))}},{type:"block",blocks:["core/heading"],transform:function(e){var t=e.values;return Object(lr.split)(Object(lr.create)({html:t,multilineTag:"li",multilineWrapperTags:["ul","ol"]}),lr.__UNSTABLE_LINE_SEPARATOR).map((function(e){return Object(Y.createBlock)("core/heading",{content:Object(lr.toHTMLString)({value:e})})}))}},{type:"block",blocks:["core/quote"],transform:function(e){var t=e.values,r=e.anchor;return Object(Y.createBlock)("core/quote",{value:Object(lr.toHTMLString)({value:Object(lr.create)({html:t,multilineTag:"li",multilineWrapperTags:["ul","ol"]}),multilineTag:"p"}),anchor:r})}},{type:"block",blocks:["core/pullquote"],transform:function(e){var t=e.values,r=e.anchor;return Object(Y.createBlock)("core/pullquote",{value:Object(lr.toHTMLString)({value:Object(lr.create)({html:t,multilineTag:"li",multilineWrapperTags:["ul","ol"]}),multilineTag:"p"}),anchor:r})}}]};function Ci(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function xi(e){for(var t=1;tAlice.
  • The White Rabbit.
  • The Cheshire Cat.
  • The Mad Hatter.
  • The Queen of Hearts.
  • "}},transforms:Ei,merge:function(e,t){var r=t.values;return r&&"
  • "!==r?xi(xi({},e),{},{values:e.values+r}):e},edit:function(e){var t=e.attributes,r=e.setAttributes,n=e.mergeBlocks,c=e.onReplace,o=e.isSelected,a=t.ordered,i=t.values,l=t.type,s=t.reversed,u=t.start,b=a?"ol":"ul",m=Object(de.useSelect)((function(e){return!!e("core/block-editor").getSettings().isRTL}),[]),d=Object(K.useBlockProps)();return Object(X.createElement)(X.Fragment,null,Object(X.createElement)(K.RichText,Object(ue.a)({identifier:"values",multiline:"li",__unstableMultilineRootTag:b,tagName:b,onChange:function(e){return r({values:e})},value:i,placeholder:Object(Q.__)("Write list…"),onMerge:n,onSplit:function(e){return Object(Y.createBlock)(Pi,yi(yi({},t),{},{values:e}))},__unstableOnSplitMiddle:function(){return Object(Y.createBlock)("core/paragraph")},onReplace:c,onRemove:function(){return c([])},start:u,reversed:s,type:l},d),(function(e){var t=e.value,n=e.onChange,c=e.onFocus;return Object(X.createElement)(X.Fragment,null,o&&Object(X.createElement)(X.Fragment,null,Object(X.createElement)(K.RichTextShortcut,{type:"primary",character:"[",onUse:function(){n(Object(lr.__unstableOutdentListItems)(t))}}),Object(X.createElement)(K.RichTextShortcut,{type:"primary",character:"]",onUse:function(){n(Object(lr.__unstableIndentListItems)(t,{type:b}))}}),Object(X.createElement)(K.RichTextShortcut,{type:"primary",character:"m",onUse:function(){n(Object(lr.__unstableIndentListItems)(t,{type:b}))}}),Object(X.createElement)(K.RichTextShortcut,{type:"primaryShift",character:"m",onUse:function(){n(Object(lr.__unstableOutdentListItems)(t))}})),Object(X.createElement)(K.BlockControls,null,Object(X.createElement)(me.ToolbarGroup,{controls:[{icon:m?bi:mi,title:Object(Q.__)("Convert to unordered list"),isActive:Object(lr.__unstableIsActiveListType)(t,"ul",b),onClick:function(){n(Object(lr.__unstableChangeListType)(t,{type:"ul"})),c(),Object(lr.__unstableIsListRootSelected)(t)&&r({ordered:!1})}},{icon:m?di:pi,title:Object(Q.__)("Convert to ordered list"),isActive:Object(lr.__unstableIsActiveListType)(t,"ol",b),onClick:function(){n(Object(lr.__unstableChangeListType)(t,{type:"ol"})),c(),Object(lr.__unstableIsListRootSelected)(t)&&r({ordered:!0})}},{icon:m?gi:hi,title:Object(Q.__)("Outdent list item"),shortcut:Object(Q._x)("Backspace","keyboard key"),isDisabled:!Object(lr.__unstableCanOutdentListItems)(t),onClick:function(){n(Object(lr.__unstableOutdentListItems)(t)),c()}},{icon:m?fi:Oi,title:Object(Q.__)("Indent list item"),shortcut:Object(Q._x)("Space","keyboard key"),isDisabled:!Object(lr.__unstableCanIndentListItems)(t),onClick:function(){n(Object(lr.__unstableIndentListItems)(t,{type:b})),c()}}]})))})),a&&Object(X.createElement)(vi,{setAttributes:r,ordered:a,reversed:s,start:u}))},save:function(e){var t=e.attributes,r=t.ordered,n=t.values,c=t.type,o=t.reversed,a=t.start,i=r?"ol":"ul";return Object(X.createElement)(i,K.useBlockProps.save({type:c,reversed:o,start:a}),Object(X.createElement)(K.RichText.Content,{value:n,multiline:"li"}))}};var Ti=Object(de.withDispatch)((function(e,t){var r=t.clientId,n=t.attributes,c=e("core/block-editor").replaceBlock;return{convertToHTML:function(){c(r,Object(Y.createBlock)("core/html",{content:n.originalUndelimitedContent}))}}}))((function(e){var t,r=e.attributes,n=e.convertToHTML,c=r.originalName,o=r.originalUndelimitedContent,a=!!o,i=Object(Y.getBlockType)("core/html"),l=[];return a&&i?(t=Object(Q.sprintf)(Object(Q.__)('Your site doesn’t include support for the "%s" block. You can leave this block intact, convert its content to a Custom HTML block, or remove it entirely.'),c),l.push(Object(X.createElement)(me.Button,{key:"convert",onClick:n,isPrimary:!0},Object(Q.__)("Keep as HTML")))):t=Object(Q.sprintf)(Object(Q.__)('Your site doesn’t include support for the "%s" block. You can leave this block intact or remove it entirely.'),c),Object(X.createElement)("div",Object(K.useBlockProps)(),Object(X.createElement)(K.Warning,{actions:l},t),Object(X.createElement)(X.RawHTML,null,o))}));var zi={apiVersion:2,name:"core/missing",category:"text",attributes:{originalName:{type:"string"},originalUndelimitedContent:{type:"string"},originalContent:{type:"string",source:"html"}},supports:{className:!1,customClassName:!1,inserter:!1,html:!1,reusable:!1}},Ni=zi.name,Mi={name:Ni,title:Object(Q.__)("Unsupported"),description:Object(Q.__)("Your site doesn’t include support for this block."),__experimentalLabel:function(e,t){if("accessibility"===t.context){var r=e.originalName,n=r?Object(Y.getBlockType)(r):void 0;return n?n.settings.title||r:""}},edit:Ti,save:function(e){var t=e.attributes;return Object(X.createElement)(X.RawHTML,null,t.originalContent)}},Ri=Object(X.createElement)(ee.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(X.createElement)(ee.Path,{d:"M4 9v1.5h16V9H4zm12 5.5h4V13h-4v1.5zm-6 0h4V13h-4v1.5zm-6 0h4V13H4v1.5z"})),Vi=Object(Q.__)("Read more");var Ai={from:[{type:"raw",schema:{"wp-block":{attributes:["data-block"]}},isMatch:function(e){return e.dataset&&"core/more"===e.dataset.block},transform:function(e){var t=e.dataset,r=t.customText,n=t.noTeaser,c={};return r&&(c.customText=r),""===n&&(c.noTeaser=!0),Object(Y.createBlock)("core/more",c)}}]},Hi={apiVersion:2,name:"core/more",category:"design",attributes:{customText:{type:"string"},noTeaser:{type:"boolean",default:!1}},supports:{customClassName:!1,className:!1,html:!1,multiple:!1}},Li=Hi.name,Ii={title:Object(Q._x)("More","block name"),description:Object(Q.__)("Content before this block will be shown in the excerpt on your archives page."),keywords:[Object(Q.__)("read more")],icon:Ri,example:{},__experimentalLabel:function(e,t){if("accessibility"===t.context)return e.customText},transforms:Ai,edit:function(e){var t=e.attributes,r=t.customText,n=t.noTeaser,c=e.insertBlocksAfter,o=e.setAttributes,a={width:"".concat((r||Vi).length+1.2,"em")};return Object(X.createElement)(X.Fragment,null,Object(X.createElement)(K.InspectorControls,null,Object(X.createElement)(me.PanelBody,null,Object(X.createElement)(me.ToggleControl,{label:Object(Q.__)("Hide the excerpt on the full content page"),checked:!!n,onChange:function(){return o({noTeaser:!n})},help:function(e){return e?Object(Q.__)("The excerpt is hidden."):Object(Q.__)("The excerpt is visible.")}}))),Object(X.createElement)("div",Object(K.useBlockProps)(),Object(X.createElement)("div",{className:"wp-block-more"},Object(X.createElement)("input",{"aria-label":Object(Q.__)("Read more link text"),type:"text",value:r,placeholder:Vi,onChange:function(e){o({customText:""!==e.target.value?e.target.value:void 0})},onKeyDown:function(e){e.keyCode===Gt.ENTER&&c([Object(Y.createBlock)(Object(Y.getDefaultBlockName)())])},style:a}))))},save:function(e){var t=e.attributes,r=t.customText,n=t.noTeaser,c=r?"\x3c!--more ".concat(r,"--\x3e"):"\x3c!--more--\x3e",o=n?"\x3c!--noteaser--\x3e":"";return Object(X.createElement)(X.RawHTML,null,Object(J.compact)([c,o]).join("\n"))}},Di=Object(X.createElement)(ee.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(X.createElement)(ee.Path,{d:"M7.8 6c0-.7.6-1.2 1.2-1.2h6c.7 0 1.2.6 1.2 1.2v3h1.5V6c0-1.5-1.2-2.8-2.8-2.8H9C7.5 3.2 6.2 4.5 6.2 6v3h1.5V6zm8.4 11c0 .7-.6 1.2-1.2 1.2H9c-.7 0-1.2-.6-1.2-1.2v-3H6.2v3c0 1.5 1.2 2.8 2.8 2.8h6c1.5 0 2.8-1.2 2.8-2.8v-3h-1.5v3zM4 11v1h16v-1H4z"}));var Fi={from:[{type:"raw",schema:{"wp-block":{attributes:["data-block"]}},isMatch:function(e){return e.dataset&&"core/nextpage"===e.dataset.block},transform:function(){return Object(Y.createBlock)("core/nextpage",{})}}]},Gi={apiVersion:2,name:"core/nextpage",category:"design",parent:["core/post-content"],supports:{customClassName:!1,className:!1,html:!1}},Ui=Gi.name,Wi={title:Object(Q.__)("Page Break"),description:Object(Q.__)("Separate your content into a multi-page experience."),icon:Di,keywords:[Object(Q.__)("next page"),Object(Q.__)("pagination")],example:{},transforms:Fi,edit:function(){return Object(X.createElement)("div",Object(K.useBlockProps)(),Object(X.createElement)("div",{className:"wp-block-nextpage"},Object(X.createElement)("span",null,Object(Q.__)("Page break"))))},save:function(){return Object(X.createElement)(X.RawHTML,null,"\x3c!--nextpage--\x3e")}},qi=Object(X.createElement)(ee.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(X.createElement)(ee.Path,{d:"M18 4H6c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm.5 14c0 .3-.2.5-.5.5H6c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h12c.3 0 .5.2.5.5v12zM7 16.5h6V15H7v1.5zm4-4h6V11h-6v1.5zM9 11H7v1.5h2V11zm6 5.5h2V15h-2v1.5z"}));var Zi={from:[{type:"block",blocks:["core/code","core/paragraph"],transform:function(e){var t=e.content,r=e.anchor;return Object(Y.createBlock)("core/preformatted",{content:t,anchor:r})}},{type:"raw",isMatch:function(e){return"PRE"===e.nodeName&&!(1===e.children.length&&"CODE"===e.firstChild.nodeName)},schema:function(e){return{pre:{children:e.phrasingContentSchema}}}}],to:[{type:"block",blocks:["core/paragraph"],transform:function(e){return Object(Y.createBlock)("core/paragraph",e)}},{type:"block",blocks:["core/code"],transform:function(e){return Object(Y.createBlock)("core/code",e)}}]},$i={apiVersion:2,name:"core/preformatted",category:"text",attributes:{content:{type:"string",source:"html",selector:"pre",default:"",__unstablePreserveWhiteSpace:!0}},supports:{anchor:!0}},Ki=$i.name,Yi={title:Object(Q.__)("Preformatted"),description:Object(Q.__)("Add text that respects your spacing and tabs, and also allows styling."),icon:qi,example:{attributes:{content:Object(Q.__)("EXT. XANADU - FAINT DAWN - 1940 (MINIATURE)\nWindow, very small in the distance, illuminated.\nAll around this is an almost totally black screen. Now, as the camera moves slowly towards the window which is almost a postage stamp in the frame, other forms appear;")}},transforms:Zi,edit:function(e){var t=e.attributes,r=e.mergeBlocks,n=e.setAttributes,c=t.content,o=Object(K.useBlockProps)();return Object(X.createElement)(K.RichText,Object(ue.a)({tagName:"pre",identifier:"content",preserveWhiteSpace:!0,value:c,onChange:function(e){n({content:e})},placeholder:Object(Q.__)("Write preformatted text…"),onMerge:r},o))},save:function(e){var t=e.attributes.content;return Object(X.createElement)("pre",K.useBlockProps.save(),Object(X.createElement)(K.RichText.Content,{value:t}))},merge:function(e,t){return{content:e.content+t.content}}},Ji=Object(X.createElement)(ee.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(X.createElement)(ee.Path,{d:"M18 8H6c-1.1 0-2 .9-2 2v4c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-4c0-1.1-.9-2-2-2zm.5 6c0 .3-.2.5-.5.5H6c-.3 0-.5-.2-.5-.5v-4c0-.3.2-.5.5-.5h12c.3 0 .5.2.5.5v4zM4 4v1.5h16V4H4zm0 16h16v-1.5H4V20z"})),Qi="is-style-".concat("solid-color");function Xi(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function el(e){for(var t=1;t".concat(t,"

    "),anchor:r})}}],to:[{type:"block",blocks:["core/paragraph"],transform:function(e){var t=e.value,r=e.citation,n=[];return t&&"

    "!==t&&n.push.apply(n,Object(q.a)(Object(lr.split)(Object(lr.create)({html:t,multilineTag:"p"}),"\u2028").map((function(e){return Object(Y.createBlock)("core/paragraph",{content:Object(lr.toHTMLString)({value:e})})})))),r&&"

    "!==r&&n.push(Object(Y.createBlock)("core/paragraph",{content:r})),0===n.length?Object(Y.createBlock)("core/paragraph",{content:""}):n}},{type:"block",blocks:["core/heading"],transform:function(e){var t=e.value,r=e.citation,n=Object(Mt.a)(e,["value","citation"]);if("

    "===t)return Object(Y.createBlock)("core/heading",{content:r});var c=Object(lr.split)(Object(lr.create)({html:t,multilineTag:"p"}),"\u2028"),o=Object(Y.createBlock)("core/heading",{content:Object(lr.toHTMLString)({value:c[0]})});if(!r&&1===c.length)return o;var a=c.slice(1);return[o,Object(Y.createBlock)("core/pullquote",ll(ll({},n),{},{citation:r,value:Object(lr.toHTMLString)({value:a.length?Object(lr.join)(c.slice(1),"\u2028"):Object(lr.create)(),multilineTag:"p"})}))]}}]},ul={apiVersion:2,name:"core/pullquote",category:"text",attributes:{value:{type:"string",source:"html",selector:"blockquote",multiline:"p"},citation:{type:"string",source:"html",selector:"cite",default:""},mainColor:{type:"string"},customMainColor:{type:"string"},textColor:{type:"string"},customTextColor:{type:"string"}},supports:{anchor:!0,align:["left","right","wide","full"]}},bl=ul.name,ml={title:Object(Q.__)("Pullquote"),description:Object(Q.__)("Give special visual emphasis to a quote from your text."),icon:Ji,example:{attributes:{value:"

    "+Object(Q.__)("One of the hardest things to do in technology is disrupt yourself.")+"

    ",citation:Object(Q.__)("Matt Mullenweg")}},styles:[{name:"default",label:Object(Q._x)("Default","block style"),isDefault:!0},{name:"solid-color",label:Object(Q.__)("Solid color")}],transforms:sl,edit:al,save:function(e){var t,r,n=e.attributes,c=n.mainColor,o=n.customMainColor,a=n.textColor,i=n.customTextColor,l=n.value,s=n.citation,u=n.className;if(Object(J.includes)(u,Qi)){var b=Object(K.getColorClassName)("background-color",c);t=ne()(Object(Z.a)({"has-background":b||o},b,b)),r={backgroundColor:b?void 0:o}}else o&&(r={borderColor:o});var m=Object(K.getColorClassName)("color",a),d=(a||i)&&ne()("has-text-color",Object(Z.a)({},m,m)),p=m?void 0:{color:i};return Object(X.createElement)("figure",K.useBlockProps.save({className:t,style:r}),Object(X.createElement)("blockquote",{className:d,style:p},Object(X.createElement)(K.RichText.Content,{value:l,multiline:!0}),!K.RichText.isEmpty(s)&&Object(X.createElement)(K.RichText.Content,{tagName:"cite",value:s})))},deprecated:nl},dl=r(20),pl=r.n(dl),gl=r(45);function hl(e){var t=e.isEditDisabled,r=e.isEditing,n=e.isSaving,c=e.onChangeTitle,o=e.onEdit,a=e.onSave,i=e.title,l=Object(xe.useInstanceId)(hl),s=Object(X.useRef)(),u=Object(X.useRef)(),b=Object(xe.usePrevious)(r),m=Object(xe.usePrevious)(n);return Object(X.useEffect)((function(){!b&&r&&s.current.select()}),[r]),Object(X.useEffect)((function(){!b&&!m||r||n||u.current.focus()}),[r,n]),Object(X.createElement)(X.Fragment,null,!r&&!n&&Object(X.createElement)("div",{className:"reusable-block-edit-panel"},Object(X.createElement)("b",{className:"reusable-block-edit-panel__info"},i),Object(X.createElement)(me.Button,{ref:u,isSecondary:!0,className:"reusable-block-edit-panel__button",disabled:t,onClick:o},Object(Q.__)("Edit"))),(r||n)&&Object(X.createElement)("form",{className:"reusable-block-edit-panel",onSubmit:function(e){e.preventDefault(),a()}},Object(X.createElement)("label",{htmlFor:"reusable-block-edit-panel__title-".concat(l),className:"reusable-block-edit-panel__label"},Object(Q.__)("Name:")),Object(X.createElement)("input",{ref:s,type:"text",disabled:n,className:"reusable-block-edit-panel__title",value:i,onChange:function(e){c(e.target.value)},id:"reusable-block-edit-panel__title-".concat(l)}),Object(X.createElement)(me.Button,{type:"submit",isSecondary:!0,isBusy:n,disabled:!i||n,className:"reusable-block-edit-panel__button"},Object(Q.__)("Save"))))}var fl={apiVersion:2,name:"core/block",category:"reusable",attributes:{ref:{type:"number"}},supports:{customClassName:!1,html:!1,inserter:!1}},Ol=fl.name,vl={title:Object(Q.__)("Reusable Block"),description:Object(Q.__)("Create and save content to reuse across your site. Update the block, and the changes apply everywhere it’s used."),edit:function(e){var t=e.attributes.ref,r=e.clientId,n=e.isSelected,c=["postType","wp_block",t],o=Object(de.useSelect)((function(e){var n,o;return{reusableBlock:(n=e("core")).getEditedEntityRecord.apply(n,c),hasResolved:e("core").hasFinishedResolution("getEditedEntityRecord",c),isSaving:(o=e("core")).isSavingEntityRecord.apply(o,c),canUserUpdate:e("core").canUser("update","blocks",t),isEditing:e("core/reusable-blocks").__experimentalIsEditingReusableBlock(r),settings:e("core/block-editor").getSettings()}}),[t,r]),a=o.reusableBlock,i=o.hasResolved,l=o.isEditing,s=o.isSaving,u=o.canUserUpdate,b=o.settings,m=Object(de.useDispatch)("core"),d=m.editEntityRecord,p=m.saveEditedEntityRecord,g=Object(de.useDispatch)("core/reusable-blocks").__experimentalSetEditingReusableBlock,h=Object(X.useCallback)((function(e){g(r,e)}),[r]),f=Object(de.useDispatch)("core/reusable-blocks").__experimentalConvertBlockToStatic,O=Object(de.useDispatch)("core/notices"),v=O.createSuccessNotice,j=O.createErrorNotice,y=Object(X.useCallback)(Object(gl.a)(pl.a.mark((function e(){return pl.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,p.apply(void 0,c);case 3:v(Object(Q.__)("Block updated."),{type:"snackbar"}),e.next=9;break;case 6:e.prev=6,e.t0=e.catch(0),j(e.t0.message,{type:"snackbar"});case 9:case"end":return e.stop()}}),e,null,[[0,6]])}))),c),_=Object($.useEntityBlockEditor)("postType","wp_block",{id:t}),w=Object(be.a)(_,3),k=w[0],E=w[1],C=w[2],x=Object(K.useBlockProps)();if(!i)return Object(X.createElement)("div",x,Object(X.createElement)(me.Placeholder,null,Object(X.createElement)(me.Spinner,null)));if(!a)return Object(X.createElement)("div",x,Object(X.createElement)(me.Placeholder,null,Object(Q.__)("Block has been deleted or is unavailable.")));var S=Object(X.createElement)(K.BlockEditorProvider,{value:k,onInput:E,onChange:C,settings:b},Object(X.createElement)(K.WritingFlow,null,Object(X.createElement)(K.BlockList,null)));return l||(S=Object(X.createElement)(me.Disabled,null,S)),Object(X.createElement)("div",x,Object(X.createElement)(K.BlockControls,null,Object(X.createElement)(me.ToolbarGroup,null,Object(X.createElement)(me.ToolbarButton,{onClick:function(){return f(r)}},Object(Q.__)("Convert to regular blocks")))),Object(X.createElement)("div",{className:"block-library-block__reusable-block-container"},(n||l)&&Object(X.createElement)(hl,{isEditing:l,title:a.title,isSaving:s,isEditDisabled:!u,onEdit:function(){return h(!0)},onChangeTitle:function(e){return d.apply(void 0,c.concat([{title:e}]))},onSave:function(){y(),h(!1)}}),S))}},jl=Object(X.createElement)(ee.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(X.createElement)(ee.Path,{d:"M5 10.2h-.8v1.5H5c1.9 0 3.8.8 5.1 2.1 1.4 1.4 2.1 3.2 2.1 5.1v.8h1.5V19c0-2.3-.9-4.5-2.6-6.2-1.6-1.6-3.8-2.6-6.1-2.6zm10.4-1.6C12.6 5.8 8.9 4.2 5 4.2h-.8v1.5H5c3.5 0 6.9 1.4 9.4 3.9s3.9 5.8 3.9 9.4v.8h1.5V19c0-3.9-1.6-7.6-4.4-10.4zM4 20h3v-3H4v3z"}));var yl={apiVersion:2,name:"core/rss",category:"widgets",attributes:{columns:{type:"number",default:2},blockLayout:{type:"string",default:"list"},feedURL:{type:"string",default:""},itemsToShow:{type:"number",default:5},displayExcerpt:{type:"boolean",default:!1},displayAuthor:{type:"boolean",default:!1},displayDate:{type:"boolean",default:!1},excerptLength:{type:"number",default:55}},supports:{align:!0,html:!1}},_l=yl.name,wl={title:Object(Q.__)("RSS"),description:Object(Q.__)("Display entries from any RSS or Atom feed."),icon:jl,keywords:[Object(Q.__)("atom"),Object(Q.__)("feed")],example:{attributes:{feedURL:"https://wordpress.org"}},edit:function(e){var t=e.attributes,r=e.setAttributes,n=Object(X.useState)(!t.feedURL),c=Object(be.a)(n,2),o=c[0],a=c[1],i=t.blockLayout,l=t.columns,s=t.displayAuthor,u=t.displayDate,b=t.displayExcerpt,m=t.excerptLength,d=t.feedURL,p=t.itemsToShow;function g(e){return function(){var n=t[e];r(Object(Z.a)({},e,!n))}}var h=Object(K.useBlockProps)();if(o)return Object(X.createElement)("div",h,Object(X.createElement)(me.Placeholder,{icon:jl,label:"RSS"},Object(X.createElement)("form",{onSubmit:function(e){e.preventDefault(),d&&a(!1)},className:"wp-block-rss__placeholder-form"},Object(X.createElement)(me.TextControl,{placeholder:Object(Q.__)("Enter URL here…"),value:d,onChange:function(e){return r({feedURL:e})},className:"wp-block-rss__placeholder-input"}),Object(X.createElement)(me.Button,{isPrimary:!0,type:"submit"},Object(Q.__)("Use URL")))));var f=[{icon:Nr.a,title:Object(Q.__)("Edit RSS URL"),onClick:function(){return a(!0)}},{icon:ri,title:Object(Q.__)("List view"),onClick:function(){return r({blockLayout:"list"})},isActive:"list"===i},{icon:ni,title:Object(Q.__)("Grid view"),onClick:function(){return r({blockLayout:"grid"})},isActive:"grid"===i}];return Object(X.createElement)(X.Fragment,null,Object(X.createElement)(K.BlockControls,null,Object(X.createElement)(me.ToolbarGroup,{controls:f})),Object(X.createElement)(K.InspectorControls,null,Object(X.createElement)(me.PanelBody,{title:Object(Q.__)("RSS settings")},Object(X.createElement)(me.RangeControl,{label:Object(Q.__)("Number of items"),value:p,onChange:function(e){return r({itemsToShow:e})},min:1,max:10,required:!0}),Object(X.createElement)(me.ToggleControl,{label:Object(Q.__)("Display author"),checked:s,onChange:g("displayAuthor")}),Object(X.createElement)(me.ToggleControl,{label:Object(Q.__)("Display date"),checked:u,onChange:g("displayDate")}),Object(X.createElement)(me.ToggleControl,{label:Object(Q.__)("Display excerpt"),checked:b,onChange:g("displayExcerpt")}),b&&Object(X.createElement)(me.RangeControl,{label:Object(Q.__)("Max number of words in excerpt"),value:m,onChange:function(e){return r({excerptLength:e})},min:10,max:100,required:!0}),"grid"===i&&Object(X.createElement)(me.RangeControl,{label:Object(Q.__)("Columns"),value:l,onChange:function(e){return r({columns:e})},min:2,max:6,required:!0}))),Object(X.createElement)("div",h,Object(X.createElement)(me.Disabled,null,Object(X.createElement)(en.a,{block:"core/rss",attributes:t}))))}},kl=Object(X.createElement)(me.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(X.createElement)(me.Rect,{x:"7",y:"10",width:"10",height:"4",rx:"1",fill:"currentColor"})),El=Object(X.createElement)(me.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(X.createElement)(me.Rect,{x:"4.75",y:"15.25",width:"6.5",height:"9.5",transform:"rotate(-90 4.75 15.25)",stroke:"currentColor","stroke-width":"1.5",fill:"none"}),Object(X.createElement)(me.Rect,{x:"16",y:"10",width:"4",height:"4",rx:"1",fill:"currentColor"})),Cl=Object(X.createElement)(me.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(X.createElement)(me.Rect,{x:"4.75",y:"15.25",width:"6.5",height:"14.5",transform:"rotate(-90 4.75 15.25)",stroke:"currentColor","stroke-width":"1.5",fill:"none"}),Object(X.createElement)(me.Rect,{x:"14",y:"10",width:"4",height:"4",rx:"1",fill:"currentColor"})),xl=Object(X.createElement)(me.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(X.createElement)(me.Rect,{x:"4.75",y:"15.25",width:"6.5",height:"14.5",transform:"rotate(-90 4.75 15.25)",stroke:"currentColor",fill:"none","stroke-width":"1.5"})),Sl=Object(X.createElement)(me.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(X.createElement)(me.Rect,{x:"4.75",y:"7.75",width:"14.5",height:"8.5",rx:"1.25",stroke:"currentColor",fill:"none","stroke-width":"1.5"}),Object(X.createElement)(me.Rect,{x:"8",y:"11",width:"8",height:"2",fill:"currentColor"})),Pl=Object(X.createElement)(me.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(X.createElement)(me.Rect,{x:"4.75",y:"17.25",width:"5.5",height:"14.5",transform:"rotate(-90 4.75 17.25)",stroke:"currentColor",fill:"none","stroke-width":"1.5"}),Object(X.createElement)(me.Rect,{x:"4",y:"7",width:"10",height:"2",fill:"currentColor"})),Bl=[{value:"%",label:"%",default:50},{value:"px",label:"px",default:350}];var Tl=[{name:"default",isDefault:!0,attributes:{buttonText:Object(Q.__)("Search"),label:Object(Q.__)("Search")}}],zl={apiVersion:2,name:"core/search",category:"widgets",attributes:{label:{type:"string"},showLabel:{type:"boolean",default:!0},placeholder:{type:"string",default:""},width:{type:"number"},widthUnit:{type:"string"},buttonText:{type:"string"},buttonPosition:{type:"string",default:"button-outside"},buttonUseIcon:{type:"boolean",default:!1}},supports:{align:["left","center","right"],html:!1}},Nl=zl.name,Ml={title:Object(Q.__)("Search"),description:Object(Q.__)("Help visitors find your content."),icon:ut.a,keywords:[Object(Q.__)("find")],example:{},variations:Tl,edit:function(e){var t=e.className,r=e.attributes,n=e.setAttributes,c=e.toggleSelection,o=e.isSelected,a=r.label,i=r.showLabel,l=r.placeholder,s=r.width,u=r.widthUnit,b=r.align,m=r.buttonText,d=r.buttonPosition,p=r.buttonUseIcon,g=Object(xe.useInstanceId)(K.__experimentalUnitControl),h="wp-block-search__width-".concat(g),f=function(){return Object(X.createElement)("input",{className:"wp-block-search__input","aria-label":Object(Q.__)("Optional placeholder text"),placeholder:l?void 0:Object(Q.__)("Optional placeholder…"),value:l,onChange:function(e){return n({placeholder:e.target.value})}})},O=function(){return Object(X.createElement)(X.Fragment,null,p&&Object(X.createElement)(me.Button,{icon:ut.a,className:"wp-block-search__button"}),!p&&Object(X.createElement)(K.RichText,{className:"wp-block-search__button","aria-label":Object(Q.__)("Button text"),placeholder:Object(Q.__)("Add button text…"),withoutInteractiveFormatting:!0,value:m,onChange:function(e){return n({buttonText:e})}}))},v=Object(X.createElement)(X.Fragment,null,Object(X.createElement)(K.BlockControls,null,Object(X.createElement)(me.ToolbarGroup,null,Object(X.createElement)(me.ToolbarButton,{title:Object(Q.__)("Toggle search label"),icon:Pl,onClick:function(){n({showLabel:!i})},className:i?"is-pressed":void 0}),Object(X.createElement)(me.DropdownMenu,{icon:function(){switch(d){case"button-inside":return Cl;case"button-outside":return El;case"no-button":return xl;case"button-only":return kl}}(),label:Object(Q.__)("Change button position")},(function(e){var t=e.onClose;return Object(X.createElement)(me.MenuGroup,{className:"wp-block-search__button-position-menu"},Object(X.createElement)(me.MenuItem,{icon:xl,onClick:function(){n({buttonPosition:"no-button"}),t()}},Object(Q.__)("No Button")),Object(X.createElement)(me.MenuItem,{icon:El,onClick:function(){n({buttonPosition:"button-outside"}),t()}},Object(Q.__)("Button Outside")),Object(X.createElement)(me.MenuItem,{icon:Cl,onClick:function(){n({buttonPosition:"button-inside"}),t()}},Object(Q.__)("Button Inside")),Object(X.createElement)(me.MenuItem,{icon:kl,onClick:function(){n({buttonPosition:"button-only"}),t()}},Object(Q.__)("Button Only")))})),"no-button"!==d&&Object(X.createElement)(me.ToolbarButton,{title:Object(Q.__)("Use button with icon"),icon:Sl,onClick:function(){n({buttonUseIcon:!p})},className:p?"is-pressed":void 0}))),Object(X.createElement)(K.InspectorControls,null,Object(X.createElement)(me.PanelBody,{title:Object(Q.__)("Display Settings")},Object(X.createElement)(me.BaseControl,{label:Object(Q.__)("Width"),id:h},Object(X.createElement)(K.__experimentalUnitControl,{id:h,min:"".concat(220).concat("px"),onChange:function(e){var t="%"===u&&parseInt(e,10)>100?100:e;n({width:parseInt(t,10)})},onUnitChange:function(e){n({width:"%"===e?50:350,widthUnit:e})},style:{maxWidth:80},value:"".concat(s).concat(u),unit:u,units:Bl}),Object(X.createElement)(me.ButtonGroup,{className:"wp-block-search__components-button-group","aria-label":Object(Q.__)("Percentage Width")},[25,50,75,100].map((function(e){return Object(X.createElement)(me.Button,{key:e,isSmall:!0,isPrimary:"".concat(e,"%")==="".concat(s).concat(u),onClick:function(){return n({width:e,widthUnit:"%"})}},e,"%")}))))))),j=Object(K.useBlockProps)({className:ne()(t,"button-inside"===d?"wp-block-search__button-inside":void 0,"button-outside"===d?"wp-block-search__button-outside":void 0,"no-button"===d?"wp-block-search__no-button":void 0,"button-only"===d?"wp-block-search__button-only":void 0,p||"no-button"===d?void 0:"wp-block-search__text-button",p&&"no-button"!==d?"wp-block-search__icon-button":void 0)});return Object(X.createElement)("div",j,v,i&&Object(X.createElement)(K.RichText,{className:"wp-block-search__label","aria-label":Object(Q.__)("Label text"),placeholder:Object(Q.__)("Add label…"),withoutInteractiveFormatting:!0,value:a,onChange:function(e){return n({label:e})}}),Object(X.createElement)(me.ResizableBox,{size:{width:"".concat(s).concat(u)},className:"wp-block-search__inside-wrapper",isResetValueOnUnitChange:!0,minWidth:220,enable:"button-only"===d?{}:{right:"right"!==b,left:"right"===b},onResizeStart:function(e,t,r){n({width:parseInt(r.offsetWidth,10),widthUnit:"px"}),c(!1)},onResizeStop:function(e,t,r,o){n({width:parseInt(s+o.width,10)}),c(!0)},showHandle:o},("button-inside"===d||"button-outside"===d)&&Object(X.createElement)(X.Fragment,null,f(),O()),"button-only"===d&&O(),"no-button"===d&&f()))}},Rl=Object(X.createElement)(ee.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(X.createElement)(ee.Path,{d:"M18 4h-7c-1.1 0-2 .9-2 2v3H6c-1.1 0-2 .9-2 2v7c0 1.1.9 2 2 2h7c1.1 0 2-.9 2-2v-3h3c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm-4.5 14c0 .3-.2.5-.5.5H6c-.3 0-.5-.2-.5-.5v-7c0-.3.2-.5.5-.5h3V13c0 1.1.9 2 2 2h2.5v3zm0-4.5H11c-.3 0-.5-.2-.5-.5v-2.5H13c.3 0 .5.2.5.5v2.5zm5-.5c0 .3-.2.5-.5.5h-3V11c0-1.1-.9-2-2-2h-2.5V6c0-.3.2-.5.5-.5h7c.3 0 .5.2.5.5v7z"}));function Vl(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Al(e){for(var t=1;tt.indexOf(e)?n:e}),void 0),n=e.map((function(e){return Object(Y.createBlock)(e.name,e.attributes,e.innerBlocks)}));return Object(Y.createBlock)("core/group",{align:r},n)}}}]},edit:Dl,save:function(e){var t=e.attributes.tagName;return Object(X.createElement)(t,K.useBlockProps.save(),Object(X.createElement)("div",{className:"wp-block-group__inner-container"},Object(X.createElement)(K.InnerBlocks.Content,null)))},deprecated:Ll},Wl=Object(X.createElement)(ee.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(X.createElement)(ee.Path,{d:"M20.2 7v4H3.8V7H2.2v9h1.6v-3.5h16.4V16h1.6V7z"})),ql=function(e){var t=e.color,r=e.setColor;return Object(X.createElement)(K.InspectorControls,null,Object(X.createElement)(K.PanelColorSettings,{title:Object(Q.__)("Color settings"),colorSettings:[{value:t.color,onChange:r,label:Object(Q.__)("Color")}]}))};var Zl=Object(K.withColors)("color",{textColor:"color"})((function(e){var t=e.color,r=e.setColor,n=e.className;return Object(X.createElement)(X.Fragment,null,Object(X.createElement)(me.HorizontalRule,Object(K.useBlockProps)({className:ne()(n,Object(Z.a)({"has-background":t.color},t.class,t.class)),style:{backgroundColor:t.color,color:t.color}})),Object(X.createElement)(ql,{color:t,setColor:r}))}));var $l={from:[{type:"enter",regExp:/^-{3,}$/,transform:function(){return Object(Y.createBlock)("core/separator")}},{type:"raw",selector:"hr",schema:{hr:{}}}]},Kl={apiVersion:2,name:"core/separator",category:"design",attributes:{color:{type:"string"},customColor:{type:"string"}},supports:{anchor:!0,align:["center","wide","full"]}},Yl=Kl.name,Jl={title:Object(Q.__)("Separator"),description:Object(Q.__)("Create a break between ideas or sections with a horizontal separator."),icon:Wl,keywords:[Object(Q.__)("horizontal-line"),"hr",Object(Q.__)("divider")],example:{attributes:{customColor:"#065174",className:"is-style-wide"}},styles:[{name:"default",label:Object(Q.__)("Default"),isDefault:!0},{name:"wide",label:Object(Q.__)("Wide Line")},{name:"dots",label:Object(Q.__)("Dots")}],transforms:$l,edit:Zl,save:function(e){var t,r=e.attributes,n=r.color,c=r.customColor,o=Object(K.getColorClassName)("background-color",n),a=Object(K.getColorClassName)("color",n),i=ne()((t={"has-text-color has-background":n||c},Object(Z.a)(t,o,o),Object(Z.a)(t,a,a),t)),l={backgroundColor:o?void 0:c,color:a?void 0:c};return Object(X.createElement)("hr",K.useBlockProps.save({className:i,style:l}))}},Ql=Object(X.createElement)(ee.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(X.createElement)(ee.Path,{d:"M16 4.2v1.5h2.5v12.5H16v1.5h4V4.2h-4zM4.2 19.8h4v-1.5H5.8V5.8h2.5V4.2h-4l-.1 15.6zm5.1-3.1l1.4.6 4-10-1.4-.6-4 10z"})),Xl=r(141);var es=r(105),ts={from:[{type:"shortcode",tag:"[a-z][a-z0-9_-]*",attributes:{text:{type:"string",shortcode:function(e,t){var r=t.content;return Object(es.removep)(Object(es.autop)(r))}}},priority:20}]},rs={apiVersion:2,name:"core/shortcode",category:"widgets",attributes:{text:{type:"string",source:"html"}},supports:{className:!1,customClassName:!1,html:!1}},ns=rs.name,cs={title:Object(Q.__)("Shortcode"),description:Object(Q.__)("Insert additional custom elements with a WordPress shortcode."),icon:Ql,transforms:ts,edit:function e(t){var r=t.attributes,n=t.setAttributes,c=Object(xe.useInstanceId)(e),o="blocks-shortcode-input-".concat(c);return Object(X.createElement)("div",Object(K.useBlockProps)({className:"components-placeholder"}),Object(X.createElement)("label",{htmlFor:o,className:"components-placeholder__label"},Object(X.createElement)(Xl.a,{icon:Ql}),Object(Q.__)("Shortcode")),Object(X.createElement)(K.PlainText,{className:"blocks-shortcode__textarea",id:o,value:r.text,placeholder:Object(Q.__)("Write shortcode here…"),onChange:function(e){return n({text:e})}}))},save:function(e){var t=e.attributes;return Object(X.createElement)(X.RawHTML,null,t.text)}},os=Object(X.createElement)(ee.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(X.createElement)(ee.Path,{d:"M12.5 4.2v1.6h4.7L5.8 17.2V12H4.2v7.8H12v-1.6H6.8L18.2 6.8v4.7h1.6V4.2z"})),as=Object(xe.compose)([Object(de.withDispatch)((function(e){var t=e("core/block-editor").toggleSelection;return{onResizeStart:function(){return t(!1)},onResizeStop:function(){return t(!0)}}})),xe.withInstanceId])((function(e){var t=e.attributes,r=e.isSelected,n=e.setAttributes,c=e.onResizeStart,o=e.onResizeStop,a=Object(X.useState)(!1),i=Object(be.a)(a,2),l=i[0],s=i[1],u=t.height,b=function(e){n({height:e})};return Object(X.createElement)(X.Fragment,null,Object(X.createElement)(ee.View,Object(K.useBlockProps)(),Object(X.createElement)(me.ResizableBox,{className:ne()("block-library-spacer__resize-container",{"is-selected":r}),size:{height:u},minHeight:1,enable:{top:!1,right:!1,bottom:!0,left:!1,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1},onResizeStart:function(){c.apply(void 0,arguments),s(!0)},onResizeStop:function(e,t,r,n){o();var c=Math.min(parseInt(u+n.height,10),500);b(c),s(!1)},showHandle:r,__experimentalShowTooltip:!0,__experimentalTooltipProps:{axis:"y",position:"bottom",isVisible:l}})),Object(X.createElement)(K.InspectorControls,null,Object(X.createElement)(me.PanelBody,{title:Object(Q.__)("Spacer settings")},Object(X.createElement)(me.RangeControl,{label:Object(Q.__)("Height in pixels"),min:1,max:Math.max(500,u),value:u,onChange:b}))))}));var is={apiVersion:2,name:"core/spacer",category:"design",attributes:{height:{type:"number",default:100}},supports:{anchor:!0}},ls=is.name,ss={title:Object(Q.__)("Spacer"),description:Object(Q.__)("Add white space between blocks and customize its height."),icon:os,edit:as,save:function(e){var t=e.attributes;return Object(X.createElement)("div",K.useBlockProps.save({style:{height:t.height},"aria-hidden":!0}))}},us=r(36),bs=r.n(us);var ms={to:[{type:"block",blocks:["core/paragraph"],transform:function(e){return Object(Y.createBlock)("core/paragraph",e)}}]},ds={apiVersion:2,name:"core/subhead",category:"text",attributes:{align:{type:"string"},content:{type:"string",source:"html",selector:"p"}},supports:{inserter:!1,multiple:!1}},ps=ds.name,gs={title:Object(Q.__)("Subheading (deprecated)"),description:Object(Q.__)("This block is deprecated. Please use the Paragraph block instead."),icon:Object(X.createElement)(me.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(X.createElement)(me.Path,{d:"M7.1 6l-.5 3h4.5L9.4 19h3l1.8-10h4.5l.5-3H7.1z"})),transforms:ms,edit:function(e){var t=e.attributes,r=e.setAttributes,n=e.className,c=t.align,o=t.content,a=t.placeholder;return bs()("The Subheading block",{alternative:"the Paragraph block",plugin:"Gutenberg"}),Object(X.createElement)(X.Fragment,null,Object(X.createElement)(K.BlockControls,null,Object(X.createElement)(K.AlignmentToolbar,{value:c,onChange:function(e){r({align:e})}})),Object(X.createElement)("div",Object(K.useBlockProps)(),Object(X.createElement)(K.RichText,{tagName:"p",value:o,onChange:function(e){r({content:e})},style:{textAlign:c},className:n,placeholder:a||Object(Q.__)("Write subheading…")})))},save:function(e){var t=e.attributes,r=t.align,n=t.content;return Object(X.createElement)("p",K.useBlockProps.save({style:{textAlign:r}}),Object(X.createElement)(K.RichText.Content,{value:n}))}},hs=Object(X.createElement)(ee.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(X.createElement)(ee.Path,{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zM5 4.5h14c.3 0 .5.2.5.5v3.5h-15V5c0-.3.2-.5.5-.5zm8 5.5h6.5v3.5H13V10zm-1.5 3.5h-7V10h7v3.5zm-7 5.5v-4h7v4.5H5c-.3 0-.5-.2-.5-.5zm14.5.5h-6V15h6.5v4c0 .3-.2.5-.5.5z"})),fs=[{attributes:{hasFixedLayout:{type:"boolean",default:!1},backgroundColor:{type:"string"},head:{type:"array",default:[],source:"query",selector:"thead tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:{content:{type:"string",source:"html"},tag:{type:"string",default:"td",source:"tag"},scope:{type:"string",source:"attribute",attribute:"scope"}}}}},body:{type:"array",default:[],source:"query",selector:"tbody tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:{content:{type:"string",source:"html"},tag:{type:"string",default:"td",source:"tag"},scope:{type:"string",source:"attribute",attribute:"scope"}}}}},foot:{type:"array",default:[],source:"query",selector:"tfoot tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:{content:{type:"string",source:"html"},tag:{type:"string",default:"td",source:"tag"},scope:{type:"string",source:"attribute",attribute:"scope"}}}}}},supports:{align:!0},save:function(e){var t=e.attributes,r=t.hasFixedLayout,n=t.head,c=t.body,o=t.foot,a=t.backgroundColor;if(!n.length&&!c.length&&!o.length)return null;var i=Object(K.getColorClassName)("background-color",a),l=ne()(i,{"has-fixed-layout":r,"has-background":!!i}),s=function(e){var t=e.type,r=e.rows;if(!r.length)return null;var n="t".concat(t);return Object(X.createElement)(n,null,r.map((function(e,t){var r=e.cells;return Object(X.createElement)("tr",{key:t},r.map((function(e,t){var r=e.content,n=e.tag,c=e.scope;return Object(X.createElement)(K.RichText.Content,{tagName:n,value:r,key:t,scope:"th"===n?c:void 0})})))})))};return Object(X.createElement)("table",{className:l},Object(X.createElement)(s,{type:"head",rows:n}),Object(X.createElement)(s,{type:"body",rows:c}),Object(X.createElement)(s,{type:"foot",rows:o}))}}],Os=r(303),vs=r(304),js=r(305),ys=Object(X.createElement)(ee.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(X.createElement)(ee.Path,{d:"M6.656 6.464h2.88v2.88h1.408v-2.88h2.88V5.12h-2.88V2.24H9.536v2.88h-2.88zM0 17.92V0h20.48v17.92H0zm7.68-2.56h5.12v-3.84H7.68v3.84zm-6.4 0H6.4v-3.84H1.28v3.84zM19.2 1.28H1.28v9.024H19.2V1.28zm0 10.24h-5.12v3.84h5.12v-3.84zM6.656 6.464h2.88v2.88h1.408v-2.88h2.88V5.12h-2.88V2.24H9.536v2.88h-2.88zM0 17.92V0h20.48v17.92H0zm7.68-2.56h5.12v-3.84H7.68v3.84zm-6.4 0H6.4v-3.84H1.28v3.84zM19.2 1.28H1.28v9.024H19.2V1.28zm0 10.24h-5.12v3.84h5.12v-3.84z"})),_s=Object(X.createElement)(ee.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(X.createElement)(ee.Path,{d:"M13.824 10.176h-2.88v-2.88H9.536v2.88h-2.88v1.344h2.88v2.88h1.408v-2.88h2.88zM0 17.92V0h20.48v17.92H0zM6.4 1.28H1.28v3.84H6.4V1.28zm6.4 0H7.68v3.84h5.12V1.28zm6.4 0h-5.12v3.84h5.12V1.28zm0 5.056H1.28v9.024H19.2V6.336z"})),ws=Object(X.createElement)(ee.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(X.createElement)(ee.Path,{d:"M17.728 11.456L14.592 8.32l3.2-3.2-1.536-1.536-3.2 3.2L9.92 3.648 8.384 5.12l3.2 3.2-3.264 3.264 1.536 1.536 3.264-3.264 3.136 3.136 1.472-1.536zM0 17.92V0h20.48v17.92H0zm19.2-6.4h-.448l-1.28-1.28H19.2V6.4h-1.792l1.28-1.28h.512V1.28H1.28v3.84h6.208l1.28 1.28H1.28v3.84h7.424l-1.28 1.28H1.28v3.84H19.2v-3.84z"})),ks=Object(X.createElement)(ee.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(X.createElement)(ee.Path,{d:"M6.4 3.776v3.648H2.752v1.792H6.4v3.648h1.728V9.216h3.712V7.424H8.128V3.776zM0 17.92V0h20.48v17.92H0zM12.8 1.28H1.28v14.08H12.8V1.28zm6.4 0h-5.12v3.84h5.12V1.28zm0 5.12h-5.12v3.84h5.12V6.4zm0 5.12h-5.12v3.84h5.12v-3.84z"})),Es=Object(X.createElement)(ee.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(X.createElement)(ee.Path,{d:"M14.08 12.864V9.216h3.648V7.424H14.08V3.776h-1.728v3.648H8.64v1.792h3.712v3.648zM0 17.92V0h20.48v17.92H0zM6.4 1.28H1.28v3.84H6.4V1.28zm0 5.12H1.28v3.84H6.4V6.4zm0 5.12H1.28v3.84H6.4v-3.84zM19.2 1.28H7.68v14.08H19.2V1.28z"})),Cs=Object(X.createElement)(ee.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(X.createElement)(ee.Path,{d:"M6.4 9.98L7.68 8.7v-.256L6.4 7.164V9.98zm6.4-1.532l1.28-1.28V9.92L12.8 8.64v-.192zm7.68 9.472V0H0v17.92h20.48zm-1.28-2.56h-5.12v-1.024l-.256.256-1.024-1.024v1.792H7.68v-1.792l-1.024 1.024-.256-.256v1.024H1.28V1.28H6.4v2.368l.704-.704.576.576V1.216h5.12V3.52l.96-.96.32.32V1.216h5.12V15.36zm-5.76-2.112l-3.136-3.136-3.264 3.264-1.536-1.536 3.264-3.264L5.632 5.44l1.536-1.536 3.136 3.136 3.2-3.2 1.536 1.536-3.2 3.2 3.136 3.136-1.536 1.536z"})),xs=Object(X.createElement)(ee.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(X.createElement)(ee.Path,{d:"M4 6v11.5h16V6H4zm1.5 1.5h6V11h-6V7.5zm0 8.5v-3.5h6V16h-6zm13 0H13v-3.5h5.5V16zM13 11V7.5h5.5V11H13z"}));function Ss(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Ps(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:0;if(y){var r=y.columnIndex,n=r+e;c(Ns(t,{columnIndex:n})),_({rowIndex:0,columnIndex:n,type:"cell"})}}Object(X.useEffect)((function(){a||_()}),[a]);var C=["head","body","foot"].filter((function(e){return!Rs(t[e])})),x=[{icon:ys,title:Object(Q.__)("Insert row before"),isDisabled:!y,onClick:function(){k(0)}},{icon:_s,title:Object(Q.__)("Insert row after"),isDisabled:!y,onClick:function(){k(1)}},{icon:ws,title:Object(Q.__)("Delete row"),isDisabled:!y,onClick:function(){if(y){var e=y.sectionName,r=y.rowIndex;_(),c(function(e,t){var r=t.sectionName,n=t.rowIndex;return Object(Z.a)({},r,e[r].filter((function(e,t){return t!==n})))}(t,{sectionName:e,rowIndex:r}))}}},{icon:ks,title:Object(Q.__)("Insert column before"),isDisabled:!y,onClick:function(){E(0)}},{icon:Es,title:Object(Q.__)("Insert column after"),isDisabled:!y,onClick:function(){E(1)}},{icon:Cs,title:Object(Q.__)("Delete column"),isDisabled:!y,onClick:function(){if(y){var e=y.sectionName,r=y.columnIndex;_(),c(function(e,t){var r=t.columnIndex,n=Object(J.pick)(e,["head","body","foot"]);return Object(J.mapValues)(n,(function(e){return Rs(e)?e:e.map((function(e){return{cells:e.cells.length>=r?e.cells.filter((function(e,t){return t!==r})):e.cells}})).filter((function(e){return e.cells.length}))}))}(t,{sectionName:e,columnIndex:r}))}}}],S=["head","body","foot"].map((function(e){return Object(X.createElement)(Gs,{name:e,key:e},t[e].map((function(t,r){var n=t.cells;return Object(X.createElement)("tr",{key:r},n.map((function(t,n){var c=t.content,o=t.tag,a=t.scope,i=t.align;return Object(X.createElement)(K.RichText,{tagName:o,key:n,className:ne()(Object(Z.a)({},"has-text-align-".concat(i),i),"wp-block-table__cell-content"),scope:"th"===o?a:void 0,value:c,onChange:w,unstableOnFocus:function(){_({sectionName:e,rowIndex:r,columnIndex:n,type:"cell"})},placeholder:Fs[e]})})))})))})),P=!C.length;return Object(X.createElement)("figure",Object(K.useBlockProps)(),!P&&Object(X.createElement)(K.BlockControls,null,Object(X.createElement)(me.ToolbarGroup,null,Object(X.createElement)(me.ToolbarItem,null,(function(e){return Object(X.createElement)(me.DropdownMenu,{hasArrowIndicator:!0,icon:xs,toggleProps:e,label:Object(Q.__)("Edit table"),controls:x})}))),Object(X.createElement)(K.AlignmentToolbar,{label:Object(Q.__)("Change column alignment"),alignmentControls:Is,value:function(){var e,r,n,c,o,a;if(y)return e=t,n="align",c=(r=y).sectionName,o=r.rowIndex,a=r.columnIndex,Object(J.get)(e,[c,o,"cells",a,n])}(),onChange:function(e){return function(e){if(y){var r={type:"column",columnIndex:y.columnIndex},n=Ts(t,r,(function(t){return Hs(Hs({},t),{},{align:e})}));c(n)}}(e)}})),!P&&Object(X.createElement)(K.InspectorControls,null,Object(X.createElement)(me.PanelBody,{title:Object(Q.__)("Table settings"),className:"blocks-table-settings"},Object(X.createElement)(me.ToggleControl,{label:Object(Q.__)("Fixed width table cells"),checked:!!i,onChange:function(){c({hasFixedLayout:!i})}}),Object(X.createElement)(me.ToggleControl,{label:Object(Q.__)("Header section"),checked:!(!s||!s.length),onChange:function(){c(Ms(t,"head"))}}),Object(X.createElement)(me.ToggleControl,{label:Object(Q.__)("Footer section"),checked:!(!u||!u.length),onChange:function(){c(Ms(t,"foot"))}})),Object(X.createElement)(K.PanelColorSettings,{title:Object(Q.__)("Color settings"),initialOpen:!1,colorSettings:[{value:r.color,onChange:n,label:Object(Q.__)("Background color"),disableCustomColors:!0,colors:Ls}]})),!P&&Object(X.createElement)("table",{className:ne()(r.class,{"has-fixed-layout":i,"has-background":!!r.color})},S),!P&&Object(X.createElement)(K.RichText,{tagName:"figcaption",placeholder:Object(Q.__)("Write caption…"),value:l,onChange:function(e){return c({caption:e})},unstableOnFocus:function(){return _()},__unstableOnSplitAtEnd:function(){return o(Object(Y.createBlock)("core/paragraph"))}}),P&&Object(X.createElement)(me.Placeholder,{label:Object(Q.__)("Table"),icon:Object(X.createElement)(K.BlockIcon,{icon:hs,showColors:!0}),instructions:Object(Q.__)("Insert a table for sharing data.")},Object(X.createElement)("form",{className:"blocks-table__placeholder-form",onSubmit:function(e){var t,r,n;e.preventDefault(),c((t={rowCount:parseInt(d,10)||2,columnCount:parseInt(f,10)||2},r=t.rowCount,n=t.columnCount,{body:Object(J.times)(r,(function(){return{cells:Object(J.times)(n,(function(){return{content:"",tag:"td"}}))}}))}))}},Object(X.createElement)(me.TextControl,{type:"number",label:Object(Q.__)("Column count"),value:f,onChange:function(e){O(e)},min:"1",className:"blocks-table__placeholder-input"}),Object(X.createElement)(me.TextControl,{type:"number",label:Object(Q.__)("Row count"),value:d,onChange:function(e){p(e)},min:"1",className:"blocks-table__placeholder-input"}),Object(X.createElement)(me.Button,{className:"blocks-table__placeholder-button",isPrimary:!0,type:"submit"},Object(Q.__)("Create Table")))))}));var Ws=function(e){var t=e.phrasingContentSchema;return{tr:{allowEmpty:!0,children:{th:{allowEmpty:!0,children:t,attributes:["scope"]},td:{allowEmpty:!0,children:t}}}}},qs={from:[{type:"raw",selector:"table",schema:function(e){return{table:{children:{thead:{allowEmpty:!0,children:Ws(e)},tfoot:{allowEmpty:!0,children:Ws(e)},tbody:{allowEmpty:!0,children:Ws(e)}}}}}}]},Zs={apiVersion:2,name:"core/table",category:"text",attributes:{hasFixedLayout:{type:"boolean",default:!1},backgroundColor:{type:"string"},caption:{type:"string",source:"html",selector:"figcaption",default:""},head:{type:"array",default:[],source:"query",selector:"thead tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:{content:{type:"string",source:"html"},tag:{type:"string",default:"td",source:"tag"},scope:{type:"string",source:"attribute",attribute:"scope"},align:{type:"string",source:"attribute",attribute:"data-align"}}}}},body:{type:"array",default:[],source:"query",selector:"tbody tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:{content:{type:"string",source:"html"},tag:{type:"string",default:"td",source:"tag"},scope:{type:"string",source:"attribute",attribute:"scope"},align:{type:"string",source:"attribute",attribute:"data-align"}}}}},foot:{type:"array",default:[],source:"query",selector:"tfoot tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:{content:{type:"string",source:"html"},tag:{type:"string",default:"td",source:"tag"},scope:{type:"string",source:"attribute",attribute:"scope"},align:{type:"string",source:"attribute",attribute:"data-align"}}}}}},supports:{anchor:!0,align:!0,__experimentalSelector:".wp-block-button > table"}},$s=Zs.name,Ks={title:Object(Q.__)("Table"),description:Object(Q.__)("Insert a table — perfect for sharing charts and data."),icon:hs,example:{attributes:{head:[{cells:[{content:Object(Q.__)("Version"),tag:"th"},{content:Object(Q.__)("Jazz Musician"),tag:"th"},{content:Object(Q.__)("Release Date"),tag:"th"}]}],body:[{cells:[{content:"5.2",tag:"td"},{content:"Jaco Pastorius",tag:"td"},{content:Object(Q.__)("May 7, 2019"),tag:"td"}]},{cells:[{content:"5.1",tag:"td"},{content:"Betty Carter",tag:"td"},{content:Object(Q.__)("February 21, 2019"),tag:"td"}]},{cells:[{content:"5.0",tag:"td"},{content:"Bebo Valdés",tag:"td"},{content:Object(Q.__)("December 6, 2018"),tag:"td"}]}]}},styles:[{name:"regular",label:Object(Q._x)("Default","block style"),isDefault:!0},{name:"stripes",label:Object(Q.__)("Stripes")}],transforms:qs,edit:Us,save:function(e){var t=e.attributes,r=t.hasFixedLayout,n=t.head,c=t.body,o=t.foot,a=t.backgroundColor,i=t.caption;if(!n.length&&!c.length&&!o.length)return null;var l=Object(K.getColorClassName)("background-color",a),s=ne()(l,{"has-fixed-layout":r,"has-background":!!l}),u=!K.RichText.isEmpty(i),b=function(e){var t=e.type,r=e.rows;if(!r.length)return null;var n="t".concat(t);return Object(X.createElement)(n,null,r.map((function(e,t){var r=e.cells;return Object(X.createElement)("tr",{key:t},r.map((function(e,t){var r=e.content,n=e.tag,c=e.scope,o=e.align,a=ne()(Object(Z.a)({},"has-text-align-".concat(o),o));return Object(X.createElement)(K.RichText.Content,{className:a||void 0,"data-align":o,tagName:n,value:r,key:t,scope:"th"===n?c:void 0})})))})))};return Object(X.createElement)("figure",K.useBlockProps.save(),Object(X.createElement)("table",{className:""===s?void 0:s},Object(X.createElement)(b,{type:"head",rows:n}),Object(X.createElement)(b,{type:"body",rows:c}),Object(X.createElement)(b,{type:"foot",rows:o})),u&&Object(X.createElement)(K.RichText.Content,{tagName:"figcaption",value:i}))},deprecated:fs};var Ys={to:[{type:"block",blocks:["core/columns"],transform:function(e){var t=e.className,r=e.columns,n=e.content,c=e.width;return Object(Y.createBlock)("core/columns",{align:"wide"===c||"full"===c?c:void 0,className:t,columns:r},n.map((function(e){var t=e.children;return Object(Y.createBlock)("core/column",{},[Object(Y.createBlock)("core/paragraph",{content:t})])})))}}]},Js={apiVersion:2,name:"core/text-columns",icon:"columns",category:"design",attributes:{content:{type:"array",source:"query",selector:"p",query:{children:{type:"string",source:"html"}},default:[{},{}]},columns:{type:"number",default:2},width:{type:"string"}},supports:{inserter:!1}},Qs=Js.name,Xs={title:Object(Q.__)("Text Columns (deprecated)"),description:Object(Q.__)("This block is deprecated. Please use the Columns block instead."),transforms:Ys,getEditWrapperProps:function(e){var t=e.width;if("wide"===t||"full"===t)return{"data-align":t}},edit:function(e){var t=e.attributes,r=e.setAttributes,n=t.width,c=t.content,o=t.columns;return bs()("The Text Columns block",{alternative:"the Columns block",plugin:"Gutenberg"}),Object(X.createElement)(X.Fragment,null,Object(X.createElement)(K.BlockControls,null,Object(X.createElement)(K.BlockAlignmentToolbar,{value:n,onChange:function(e){return r({width:e})},controls:["center","wide","full"]})),Object(X.createElement)(K.InspectorControls,null,Object(X.createElement)(me.PanelBody,null,Object(X.createElement)(me.RangeControl,{label:Object(Q.__)("Columns"),value:o,onChange:function(e){return r({columns:e})},min:2,max:4,required:!0}))),Object(X.createElement)("div",Object(K.useBlockProps)({className:"align".concat(n," columns-").concat(o)}),Object(J.times)(o,(function(e){return Object(X.createElement)("div",{className:"wp-block-column",key:"column-".concat(e)},Object(X.createElement)(K.RichText,{tagName:"p",value:Object(J.get)(c,[e,"children"]),onChange:function(t){r({content:[].concat(Object(q.a)(c.slice(0,e)),[{children:t}],Object(q.a)(c.slice(e+1)))})},placeholder:Object(Q.__)("New Column")}))}))))},save:function(e){var t=e.attributes,r=t.width,n=t.content,c=t.columns;return Object(X.createElement)("div",K.useBlockProps.save({className:"align".concat(r," columns-").concat(c)}),Object(J.times)(c,(function(e){return Object(X.createElement)("div",{className:"wp-block-column",key:"column-".concat(e)},Object(X.createElement)(K.RichText.Content,{tagName:"p",value:Object(J.get)(n,[e,"children"])}))})))}},eu=Object(X.createElement)(ee.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(X.createElement)(ee.Path,{d:"M17.8 2l-.9.3c-.1 0-3.6 1-5.2 2.1C10 5.5 9.3 6.5 8.9 7.1c-.6.9-1.7 4.7-1.7 6.3l-.9 2.3c-.2.4 0 .8.4 1 .1 0 .2.1.3.1.3 0 .6-.2.7-.5l.6-1.5c.3 0 .7-.1 1.2-.2.7-.1 1.4-.3 2.2-.5.8-.2 1.6-.5 2.4-.8.7-.3 1.4-.7 1.9-1.2s.8-1.2 1-1.9c.2-.7.3-1.6.4-2.4.1-.8.1-1.7.2-2.5 0-.8.1-1.5.2-2.1V2zm-1.9 5.6c-.1.8-.2 1.5-.3 2.1-.2.6-.4 1-.6 1.3-.3.3-.8.6-1.4.9-.7.3-1.4.5-2.2.8-.6.2-1.3.3-1.8.4L15 7.5c.3-.3.6-.7 1-1.1 0 .4 0 .8-.1 1.2zM6 20h8v-1.5H6V20z"})),tu=[{attributes:{content:{type:"string",source:"html",selector:"pre",default:""},textAlign:{type:"string"}},save:function(e){var t=e.attributes,r=t.textAlign,n=t.content;return Object(X.createElement)(K.RichText.Content,{tagName:"pre",style:{textAlign:r},value:n})}}];var ru={from:[{type:"block",blocks:["core/paragraph"],transform:function(e){return Object(Y.createBlock)("core/verse",e)}}],to:[{type:"block",blocks:["core/paragraph"],transform:function(e){return Object(Y.createBlock)("core/paragraph",e)}}]},nu={apiVersion:2,name:"core/verse",category:"text",attributes:{content:{type:"string",source:"html",selector:"pre",default:"",__unstablePreserveWhiteSpace:!0},textAlign:{type:"string"}},supports:{anchor:!0}},cu=nu.name,ou={title:Object(Q.__)("Verse"),description:Object(Q.__)("Insert poetry. Use special spacing formats. Or quote song lyrics."),icon:eu,example:{attributes:{content:Object(Q.__)("WHAT was he doing, the great god Pan,\n\tDown in the reeds by the river?\nSpreading ruin and scattering ban,\nSplashing and paddling with hoofs of a goat,\nAnd breaking the golden lilies afloat\n With the dragon-fly on the river.")}},keywords:[Object(Q.__)("poetry"),Object(Q.__)("poem")],transforms:ru,deprecated:tu,merge:function(e,t){return{content:e.content+t.content}},edit:function(e){var t=e.attributes,r=e.setAttributes,n=e.mergeBlocks,c=t.textAlign,o=t.content,a=Object(K.useBlockProps)({className:ne()(Object(Z.a)({},"has-text-align-".concat(c),c))});return Object(X.createElement)(X.Fragment,null,Object(X.createElement)(K.BlockControls,null,Object(X.createElement)(K.AlignmentToolbar,{value:c,onChange:function(e){r({textAlign:e})}})),Object(X.createElement)(K.RichText,Object(ue.a)({tagName:"pre",identifier:"content",preserveWhiteSpace:!0,value:o,onChange:function(e){r({content:e})},placeholder:Object(Q.__)("Write…"),onMerge:n,textAlign:c},a)))},save:function(e){var t=e.attributes,r=t.textAlign,n=t.content,c=ne()(Object(Z.a)({},"has-text-align-".concat(r),r));return Object(X.createElement)("pre",K.useBlockProps.save({className:c}),Object(X.createElement)(K.RichText.Content,{value:n}))}},au=Object(X.createElement)(ee.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(X.createElement)(ee.Path,{d:"M18.7 3H5.3C4 3 3 4 3 5.3v13.4C3 20 4 21 5.3 21h13.4c1.3 0 2.3-1 2.3-2.3V5.3C21 4 20 3 18.7 3zm.8 15.7c0 .4-.4.8-.8.8H5.3c-.4 0-.8-.4-.8-.8V5.3c0-.4.4-.8.8-.8h13.4c.4 0 .8.4.8.8v13.4zM10 15l5-3-5-3v6z"})),iu=function(e){var t=e.setAttributes,r=e.attributes,n=r.autoplay,c=r.controls,o=r.loop,a=r.muted,i=r.playsInline,l=r.preload,s=function(e){return function(r){t(Object(Z.a)({},e,r))}};return Object(X.createElement)(X.Fragment,null,Object(X.createElement)(me.ToggleControl,{label:Object(Q.__)("Autoplay"),onChange:s("autoplay"),checked:n,help:function(e){return e?Object(Q.__)("Note: Autoplaying videos may cause usability issues for some visitors."):null}}),Object(X.createElement)(me.ToggleControl,{label:Object(Q.__)("Loop"),onChange:s("loop"),checked:o}),Object(X.createElement)(me.ToggleControl,{label:Object(Q.__)("Muted"),onChange:s("muted"),checked:a}),Object(X.createElement)(me.ToggleControl,{label:Object(Q.__)("Playback controls"),onChange:s("controls"),checked:c}),Object(X.createElement)(me.ToggleControl,{label:Object(Q.__)("Play inline"),onChange:s("playsInline"),checked:i}),Object(X.createElement)(me.SelectControl,{label:Object(Q.__)("Preload"),value:l,onChange:function(e){return t({preload:e})},options:[{value:"auto",label:Object(Q.__)("Auto")},{value:"metadata",label:Object(Q.__)("Metadata")},{value:"none",label:Object(Q.__)("None")}]}))};var lu=r(319);function su(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function uu(e){for(var t=1;t1)&&(0===t.childNodes.length||!(t.childNodes[0].childNodes.length>1)&&/^\n?$/.test(t.innerText||t.textContent))}(e)||(c([]),t.preventDefault(),t.stopImmediatePropagation()),t.altKey&&t.keyCode===Gt.F10&&t.stopPropagation()})),e.on("init",(function(){var t=e.getBody();t.ownerDocument.activeElement===t&&(t.blur(),e.focus())}))}function s(){var e=window.wpEditorL10n.tinymce.settings;Mu.oldEditor.initialize("editor-".concat(t),{tinymce:Nu(Nu({},e),{},{inline:!0,content_css:!1,fixed_toolbar_container:"#toolbar-".concat(t),setup:l})})}function u(){"complete"===document.readyState&&s()}return o.current=!0,window.tinymce.EditorManager.overrideDefaults({base_url:a,suffix:i}),"complete"===document.readyState?s():document.addEventListener("readystatechange",u),function(){document.removeEventListener("readystatechange",u),Mu.oldEditor.remove("editor-".concat(t))}}),[]),Object(X.createElement)(X.Fragment,null,Object(X.createElement)(K.BlockControls,null,Object(X.createElement)(me.ToolbarGroup,null,Object(X.createElement)(Tu,{clientId:t}))),Object(X.createElement)("div",Object(K.useBlockProps)(),Object(X.createElement)("div",{key:"toolbar",id:"toolbar-".concat(t),className:"block-library-classic__toolbar",onClick:function(){var e=window.tinymce.get("editor-".concat(t));e&&e.focus()},"data-placeholder":Object(Q.__)("Classic"),onKeyDown:function(e){e.stopPropagation(),e.nativeEvent.stopImmediatePropagation()}}),Object(X.createElement)("div",{key:"editor",id:"editor-".concat(t),className:"wp-block-freeform block-library-rich-text__tinymce"})))},save:function(e){var t=e.attributes.content;return Object(X.createElement)(X.RawHTML,null,t)}},Hu=Object(X.createElement)(ee.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(X.createElement)(ee.Path,{d:"M9 11.8l6.1-4.5c.1.4.4.7.9.7h2c.6 0 1-.4 1-1V5c0-.6-.4-1-1-1h-2c-.6 0-1 .4-1 1v.4l-6.4 4.8c-.2-.1-.4-.2-.6-.2H6c-.6 0-1 .4-1 1v2c0 .6.4 1 1 1h2c.2 0 .4-.1.6-.2l6.4 4.8v.4c0 .6.4 1 1 1h2c.6 0 1-.4 1-1v-2c0-.6-.4-1-1-1h-2c-.5 0-.8.3-.9.7L9 12.2v-.4z"})),Lu=["core/social-link"];var Iu=function(e){var t=e.attributes.openInNewTab,r=e.setAttributes,n=Object(X.createElement)("div",{className:"wp-block-social-links__social-placeholder"},Object(X.createElement)("div",{className:"wp-block-social-link wp-social-link-facebook"}),Object(X.createElement)("div",{className:"wp-block-social-link wp-social-link-twitter"}),Object(X.createElement)("div",{className:"wp-block-social-link wp-social-link-instagram"})),c=Object(K.useBlockProps)(),o=Object(K.__experimentalUseInnerBlocksProps)(c,{allowedBlocks:Lu,orientation:"horizontal",placeholder:n,templateLock:!1,__experimentalAppenderTagName:"li"});return Object(X.createElement)(X.Fragment,null,Object(X.createElement)(K.InspectorControls,null,Object(X.createElement)(me.PanelBody,{title:Object(Q.__)("Link settings")},Object(X.createElement)(me.ToggleControl,{label:Object(Q.__)("Open links in new tab"),checked:t,onChange:function(){return r({openInNewTab:!t})}}))),Object(X.createElement)("ul",o))};var Du={apiVersion:2,name:"core/social-links",category:"widgets",attributes:{openInNewTab:{type:"boolean",default:!1}},providesContext:{openInNewTab:"openInNewTab"},supports:{align:["left","center","right"],anchor:!0}},Fu=Du.name,Gu={title:Object(Q.__)("Social Icons"),description:Object(Q.__)("Display icons linking to your social media profiles or websites."),keywords:[Object(Q._x)("links","block keywords")],example:{innerBlocks:[{name:"core/social-link",attributes:{service:"wordpress",url:"https://wordpress.org"}},{name:"core/social-link",attributes:{service:"facebook",url:"https://www.facebook.com/WordPress/"}},{name:"core/social-link",attributes:{service:"twitter",url:"https://twitter.com/WordPress"}}]},styles:[{name:"default",label:Object(Q.__)("Default"),isDefault:!0},{name:"logos-only",label:Object(Q.__)("Logos Only")},{name:"pill-shape",label:Object(Q.__)("Pill Shape")}],icon:Hu,edit:Iu,save:function(){return Object(X.createElement)("ul",K.useBlockProps.save(),Object(X.createElement)(K.InnerBlocks.Content,null))}},Uu=r(216),Wu=function(){return Object(X.createElement)(ee.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(X.createElement)(ee.Path,{d:"M19.647,16.706a1.134,1.134,0,0,0-.343-.833l-2.549-2.549a1.134,1.134,0,0,0-.833-.343,1.168,1.168,0,0,0-.883.392l.233.226q.2.189.264.264a2.922,2.922,0,0,1,.184.233.986.986,0,0,1,.159.312,1.242,1.242,0,0,1,.043.337,1.172,1.172,0,0,1-1.176,1.176,1.237,1.237,0,0,1-.337-.043,1,1,0,0,1-.312-.159,2.76,2.76,0,0,1-.233-.184q-.073-.068-.264-.264l-.226-.233a1.19,1.19,0,0,0-.4.895,1.134,1.134,0,0,0,.343.833L15.837,19.3a1.13,1.13,0,0,0,.833.331,1.18,1.18,0,0,0,.833-.318l1.8-1.789a1.12,1.12,0,0,0,.343-.821Zm-8.615-8.64a1.134,1.134,0,0,0-.343-.833L8.163,4.7a1.134,1.134,0,0,0-.833-.343,1.184,1.184,0,0,0-.833.331L4.7,6.473a1.12,1.12,0,0,0-.343.821,1.134,1.134,0,0,0,.343.833l2.549,2.549a1.13,1.13,0,0,0,.833.331,1.184,1.184,0,0,0,.883-.38L8.728,10.4q-.2-.189-.264-.264A2.922,2.922,0,0,1,8.28,9.9a.986.986,0,0,1-.159-.312,1.242,1.242,0,0,1-.043-.337A1.172,1.172,0,0,1,9.254,8.079a1.237,1.237,0,0,1,.337.043,1,1,0,0,1,.312.159,2.761,2.761,0,0,1,.233.184q.073.068.264.264l.226.233a1.19,1.19,0,0,0,.4-.895ZM22,16.706a3.343,3.343,0,0,1-1.042,2.488l-1.8,1.789a3.536,3.536,0,0,1-4.988-.025l-2.525-2.537a3.384,3.384,0,0,1-1.017-2.488,3.448,3.448,0,0,1,1.078-2.561l-1.078-1.078a3.434,3.434,0,0,1-2.549,1.078,3.4,3.4,0,0,1-2.5-1.029L3.029,9.794A3.4,3.4,0,0,1,2,7.294,3.343,3.343,0,0,1,3.042,4.806l1.8-1.789A3.384,3.384,0,0,1,7.331,2a3.357,3.357,0,0,1,2.5,1.042l2.525,2.537a3.384,3.384,0,0,1,1.017,2.488,3.448,3.448,0,0,1-1.078,2.561l1.078,1.078a3.551,3.551,0,0,1,5.049-.049l2.549,2.549A3.4,3.4,0,0,1,22,16.706Z"}))},qu=[{isDefault:!0,name:"wordpress",attributes:{service:"wordpress"},title:"WordPress",icon:function(){return Object(X.createElement)(ee.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},Object(X.createElement)(ee.Path,{d:"M12.158,12.786L9.46,20.625c0.806,0.237,1.657,0.366,2.54,0.366c1.047,0,2.051-0.181,2.986-0.51 c-0.024-0.038-0.046-0.079-0.065-0.124L12.158,12.786z M3.009,12c0,3.559,2.068,6.634,5.067,8.092L3.788,8.341 C3.289,9.459,3.009,10.696,3.009,12z M18.069,11.546c0-1.112-0.399-1.881-0.741-2.48c-0.456-0.741-0.883-1.368-0.883-2.109 c0-0.826,0.627-1.596,1.51-1.596c0.04,0,0.078,0.005,0.116,0.007C16.472,3.904,14.34,3.009,12,3.009 c-3.141,0-5.904,1.612-7.512,4.052c0.211,0.007,0.41,0.011,0.579,0.011c0.94,0,2.396-0.114,2.396-0.114 C7.947,6.93,8.004,7.642,7.52,7.699c0,0-0.487,0.057-1.029,0.085l3.274,9.739l1.968-5.901l-1.401-3.838 C9.848,7.756,9.389,7.699,9.389,7.699C8.904,7.67,8.961,6.93,9.446,6.958c0,0,1.484,0.114,2.368,0.114 c0.94,0,2.397-0.114,2.397-0.114c0.485-0.028,0.542,0.684,0.057,0.741c0,0-0.488,0.057-1.029,0.085l3.249,9.665l0.897-2.996 C17.841,13.284,18.069,12.316,18.069,11.546z M19.889,7.686c0.039,0.286,0.06,0.593,0.06,0.924c0,0.912-0.171,1.938-0.684,3.22 l-2.746,7.94c2.673-1.558,4.47-4.454,4.47-7.771C20.991,10.436,20.591,8.967,19.889,7.686z M12,22C6.486,22,2,17.514,2,12 C2,6.486,6.486,2,12,2c5.514,0,10,4.486,10,10C22,17.514,17.514,22,12,22z"}))}},{name:"fivehundredpx",attributes:{service:"fivehundredpx"},title:"500px",icon:function(){return Object(X.createElement)(ee.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(X.createElement)(ee.Path,{d:"M6.94026,15.1412c.00437.01213.108.29862.168.44064a6.55008,6.55008,0,1,0,6.03191-9.09557,6.68654,6.68654,0,0,0-2.58357.51467A8.53914,8.53914,0,0,0,8.21268,8.61344L8.209,8.61725V3.22948l9.0504-.00008c.32934-.0036.32934-.46353.32934-.61466s0-.61091-.33035-.61467L7.47248,2a.43.43,0,0,0-.43131.42692v7.58355c0,.24466.30476.42131.58793.4819.553.11812.68074-.05864.81617-.2457l.018-.02481A10.52673,10.52673,0,0,1,9.32258,9.258a5.35268,5.35268,0,1,1,7.58985,7.54976,5.417,5.417,0,0,1-3.80867,1.56365,5.17483,5.17483,0,0,1-2.69822-.74478l.00342-4.61111a2.79372,2.79372,0,0,1,.71372-1.78792,2.61611,2.61611,0,0,1,1.98282-.89477,2.75683,2.75683,0,0,1,1.95525.79477,2.66867,2.66867,0,0,1,.79656,1.909,2.724,2.724,0,0,1-2.75849,2.748,4.94651,4.94651,0,0,1-.86254-.13719c-.31234-.093-.44519.34058-.48892.48349-.16811.54966.08453.65862.13687.67489a3.75751,3.75751,0,0,0,1.25234.18375,3.94634,3.94634,0,1,0-2.82444-6.742,3.67478,3.67478,0,0,0-1.13028,2.584l-.00041.02323c-.0035.11667-.00579,2.881-.00644,3.78811l-.00407-.00451a6.18521,6.18521,0,0,1-1.0851-1.86092c-.10544-.27856-.34358-.22925-.66857-.12917-.14192.04372-.57386.17677-.47833.489Zm4.65165-1.08338a.51346.51346,0,0,0,.19513.31818l.02276.022a.52945.52945,0,0,0,.3517.18416.24242.24242,0,0,0,.16577-.0611c.05473-.05082.67382-.67812.73287-.738l.69041.68819a.28978.28978,0,0,0,.21437.11032.53239.53239,0,0,0,.35708-.19486c.29792-.30419.14885-.46821.07676-.54751l-.69954-.69975.72952-.73469c.16-.17311.01874-.35708-.12218-.498-.20461-.20461-.402-.25742-.52855-.14083l-.7254.72665-.73354-.73375a.20128.20128,0,0,0-.14179-.05695.54135.54135,0,0,0-.34379.19648c-.22561.22555-.274.38149-.15656.5059l.73374.7315-.72942.73072A.26589.26589,0,0,0,11.59191,14.05782Zm1.59866-9.915A8.86081,8.86081,0,0,0,9.854,4.776a.26169.26169,0,0,0-.16938.22759.92978.92978,0,0,0,.08619.42094c.05682.14524.20779.531.50006.41955a8.40969,8.40969,0,0,1,2.91968-.55484,7.87875,7.87875,0,0,1,3.086.62286,8.61817,8.61817,0,0,1,2.30562,1.49315.2781.2781,0,0,0,.18318.07586c.15529,0,.30425-.15253.43167-.29551.21268-.23861.35873-.4369.1492-.63538a8.50425,8.50425,0,0,0-2.62312-1.694A9.0177,9.0177,0,0,0,13.19058,4.14283ZM19.50945,18.6236h0a.93171.93171,0,0,0-.36642-.25406.26589.26589,0,0,0-.27613.06613l-.06943.06929A7.90606,7.90606,0,0,1,7.60639,18.505a7.57284,7.57284,0,0,1-1.696-2.51537,8.58715,8.58715,0,0,1-.5147-1.77754l-.00871-.04864c-.04939-.25873-.28755-.27684-.62981-.22448-.14234.02178-.5755.088-.53426.39969l.001.00712a9.08807,9.08807,0,0,0,15.406,4.99094c.00193-.00192.04753-.04718.0725-.07436C19.79425,19.16234,19.87422,18.98728,19.50945,18.6236Z"}))}},{name:"amazon",attributes:{service:"amazon"},title:"Amazon",icon:function(){return Object(X.createElement)(ee.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(X.createElement)(ee.Path,{d:"M13.582,8.182C11.934,8.367,9.78,8.49,8.238,9.166c-1.781,0.769-3.03,2.337-3.03,4.644 c0,2.953,1.86,4.429,4.253,4.429c2.02,0,3.125-0.477,4.685-2.065c0.516,0.747,0.685,1.109,1.629,1.894 c0.212,0.114,0.483,0.103,0.672-0.066l0.006,0.006c0.567-0.505,1.599-1.401,2.18-1.888c0.231-0.188,0.19-0.496,0.009-0.754 c-0.52-0.718-1.072-1.303-1.072-2.634V8.305c0-1.876,0.133-3.599-1.249-4.891C15.23,2.369,13.422,2,12.04,2 C9.336,2,6.318,3.01,5.686,6.351C5.618,6.706,5.877,6.893,6.109,6.945l2.754,0.298C9.121,7.23,9.308,6.977,9.357,6.72 c0.236-1.151,1.2-1.706,2.284-1.706c0.584,0,1.249,0.215,1.595,0.738c0.398,0.584,0.346,1.384,0.346,2.061V8.182z M13.049,14.088 c-0.451,0.8-1.169,1.291-1.967,1.291c-1.09,0-1.728-0.83-1.728-2.061c0-2.42,2.171-2.86,4.227-2.86v0.615 C13.582,12.181,13.608,13.104,13.049,14.088z M20.683,19.339C18.329,21.076,14.917,22,11.979,22c-4.118,0-7.826-1.522-10.632-4.057 c-0.22-0.199-0.024-0.471,0.241-0.317c3.027,1.762,6.771,2.823,10.639,2.823c2.608,0,5.476-0.541,8.115-1.66 C20.739,18.62,21.072,19.051,20.683,19.339z M21.336,21.043c-0.194,0.163-0.379,0.076-0.293-0.139 c0.284-0.71,0.92-2.298,0.619-2.684c-0.301-0.386-1.99-0.183-2.749-0.092c-0.23,0.027-0.266-0.173-0.059-0.319 c1.348-0.946,3.555-0.673,3.811-0.356C22.925,17.773,22.599,19.986,21.336,21.043z"}))}},{name:"bandcamp",attributes:{service:"bandcamp"},title:"Bandcamp",icon:function(){return Object(X.createElement)(ee.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(X.createElement)(ee.Path,{d:"M15.27 17.289 3 17.289 8.73 6.711 21 6.711 15.27 17.289"}))}},{name:"behance",attributes:{service:"behance"},title:"Behance",icon:function(){return Object(X.createElement)(ee.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(X.createElement)(ee.Path,{d:"M7.799,5.698c0.589,0,1.12,0.051,1.606,0.156c0.482,0.102,0.894,0.273,1.241,0.507c0.344,0.235,0.612,0.546,0.804,0.938 c0.188,0.387,0.281,0.871,0.281,1.443c0,0.619-0.141,1.137-0.421,1.551c-0.284,0.413-0.7,0.751-1.255,1.014 c0.756,0.218,1.317,0.601,1.689,1.146c0.374,0.549,0.557,1.205,0.557,1.975c0,0.623-0.12,1.161-0.359,1.612 c-0.241,0.457-0.569,0.828-0.973,1.114c-0.408,0.288-0.876,0.5-1.399,0.637C9.052,17.931,8.514,18,7.963,18H2V5.698H7.799 M7.449,10.668c0.481,0,0.878-0.114,1.192-0.345c0.311-0.228,0.463-0.603,0.463-1.119c0-0.286-0.051-0.523-0.152-0.707 C8.848,8.315,8.711,8.171,8.536,8.07C8.362,7.966,8.166,7.894,7.94,7.854c-0.224-0.044-0.457-0.06-0.697-0.06H4.709v2.874H7.449z M7.6,15.905c0.267,0,0.521-0.024,0.759-0.077c0.243-0.053,0.457-0.137,0.637-0.261c0.182-0.12,0.332-0.283,0.441-0.491 C9.547,14.87,9.6,14.602,9.6,14.278c0-0.633-0.18-1.084-0.533-1.357c-0.356-0.27-0.83-0.404-1.413-0.404H4.709v3.388L7.6,15.905z M16.162,15.864c0.367,0.358,0.897,0.538,1.583,0.538c0.493,0,0.92-0.125,1.277-0.374c0.354-0.248,0.571-0.514,0.654-0.79h2.155 c-0.347,1.072-0.872,1.838-1.589,2.299C19.534,18,18.67,18.23,17.662,18.23c-0.701,0-1.332-0.113-1.899-0.337 c-0.567-0.227-1.041-0.544-1.439-0.958c-0.389-0.415-0.689-0.907-0.904-1.484c-0.213-0.574-0.32-1.21-0.32-1.899 c0-0.666,0.11-1.288,0.329-1.863c0.222-0.577,0.529-1.075,0.933-1.492c0.406-0.42,0.885-0.751,1.444-0.994 c0.558-0.241,1.175-0.363,1.857-0.363c0.754,0,1.414,0.145,1.98,0.44c0.563,0.291,1.026,0.686,1.389,1.181 c0.363,0.493,0.622,1.057,0.783,1.69c0.16,0.632,0.217,1.292,0.171,1.983h-6.428C15.557,14.84,15.795,15.506,16.162,15.864 M18.973,11.184c-0.291-0.321-0.783-0.496-1.384-0.496c-0.39,0-0.714,0.066-0.973,0.2c-0.254,0.132-0.461,0.297-0.621,0.491 c-0.157,0.197-0.265,0.405-0.328,0.628c-0.063,0.217-0.101,0.413-0.111,0.587h3.98C19.478,11.969,19.265,11.509,18.973,11.184z M15.057,7.738h4.985V6.524h-4.985L15.057,7.738z"}))}},{name:"chain",attributes:{service:"chain"},title:"Link",icon:Wu},{name:"codepen",attributes:{service:"codepen"},title:"CodePen",icon:function(){return Object(X.createElement)(ee.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(X.createElement)(ee.Path,{d:"M22.016,8.84c-0.002-0.013-0.005-0.025-0.007-0.037c-0.005-0.025-0.008-0.048-0.015-0.072 c-0.003-0.015-0.01-0.028-0.013-0.042c-0.008-0.02-0.015-0.04-0.023-0.062c-0.007-0.015-0.013-0.028-0.02-0.042 c-0.008-0.02-0.018-0.037-0.03-0.057c-0.007-0.013-0.017-0.027-0.025-0.038c-0.012-0.018-0.023-0.035-0.035-0.052 c-0.01-0.013-0.02-0.025-0.03-0.037c-0.015-0.017-0.028-0.032-0.043-0.045c-0.01-0.012-0.022-0.023-0.035-0.035 c-0.015-0.015-0.032-0.028-0.048-0.04c-0.012-0.01-0.025-0.02-0.037-0.03c-0.005-0.003-0.01-0.008-0.015-0.012l-9.161-6.096 c-0.289-0.192-0.666-0.192-0.955,0L2.359,8.237C2.354,8.24,2.349,8.245,2.344,8.249L2.306,8.277 c-0.017,0.013-0.033,0.027-0.048,0.04C2.246,8.331,2.234,8.342,2.222,8.352c-0.015,0.015-0.028,0.03-0.042,0.047 c-0.012,0.013-0.022,0.023-0.03,0.037C2.139,8.453,2.125,8.471,2.115,8.488C2.107,8.501,2.099,8.514,2.09,8.526 C2.079,8.548,2.069,8.565,2.06,8.585C2.054,8.6,2.047,8.613,2.04,8.626C2.032,8.648,2.025,8.67,2.019,8.69 c-0.005,0.013-0.01,0.027-0.013,0.042C1.999,8.755,1.995,8.778,1.99,8.803C1.989,8.817,1.985,8.828,1.984,8.84 C1.978,8.879,1.975,8.915,1.975,8.954v6.093c0,0.037,0.003,0.075,0.008,0.112c0.002,0.012,0.005,0.025,0.007,0.038 c0.005,0.023,0.008,0.047,0.015,0.072c0.003,0.015,0.008,0.028,0.013,0.04c0.007,0.022,0.013,0.042,0.022,0.063 c0.007,0.015,0.013,0.028,0.02,0.04c0.008,0.02,0.018,0.038,0.03,0.058c0.007,0.013,0.015,0.027,0.025,0.038 c0.012,0.018,0.023,0.035,0.035,0.052c0.01,0.013,0.02,0.025,0.03,0.037c0.013,0.015,0.028,0.032,0.042,0.045 c0.012,0.012,0.023,0.023,0.035,0.035c0.015,0.013,0.032,0.028,0.048,0.04l0.038,0.03c0.005,0.003,0.01,0.007,0.013,0.01 l9.163,6.095C11.668,21.953,11.833,22,12,22c0.167,0,0.332-0.047,0.478-0.144l9.163-6.095l0.015-0.01 c0.013-0.01,0.027-0.02,0.037-0.03c0.018-0.013,0.035-0.028,0.048-0.04c0.013-0.012,0.025-0.023,0.035-0.035 c0.017-0.015,0.03-0.032,0.043-0.045c0.01-0.013,0.02-0.025,0.03-0.037c0.013-0.018,0.025-0.035,0.035-0.052 c0.008-0.013,0.018-0.027,0.025-0.038c0.012-0.02,0.022-0.038,0.03-0.058c0.007-0.013,0.013-0.027,0.02-0.04 c0.008-0.022,0.015-0.042,0.023-0.063c0.003-0.013,0.01-0.027,0.013-0.04c0.007-0.025,0.01-0.048,0.015-0.072 c0.002-0.013,0.005-0.027,0.007-0.037c0.003-0.042,0.007-0.079,0.007-0.117V8.954C22.025,8.915,22.022,8.879,22.016,8.84z M12.862,4.464l6.751,4.49l-3.016,2.013l-3.735-2.492V4.464z M11.138,4.464v4.009l-3.735,2.494L4.389,8.954L11.138,4.464z M3.699,10.562L5.853,12l-2.155,1.438V10.562z M11.138,19.536l-6.749-4.491l3.015-2.011l3.735,2.492V19.536z M12,14.035L8.953,12 L12,9.966L15.047,12L12,14.035z M12.862,19.536v-4.009l3.735-2.492l3.016,2.011L12.862,19.536z M20.303,13.438L18.147,12 l2.156-1.438L20.303,13.438z"}))}},{name:"deviantart",attributes:{service:"deviantart"},title:"DeviantArt",icon:function(){return Object(X.createElement)(ee.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(X.createElement)(ee.Path,{d:"M 18.19 5.636 18.19 2 18.188 2 14.553 2 14.19 2.366 12.474 5.636 11.935 6 5.81 6 5.81 10.994 9.177 10.994 9.477 11.357 5.81 18.363 5.81 22 5.811 22 9.447 22 9.81 21.634 11.526 18.364 12.065 18 18.19 18 18.19 13.006 14.823 13.006 14.523 12.641 18.19 5.636z"}))}},{name:"dribbble",attributes:{service:"dribbble"},title:"Dribbble",icon:function(){return Object(X.createElement)(ee.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(X.createElement)(ee.Path,{d:"M12,22C6.486,22,2,17.514,2,12S6.486,2,12,2c5.514,0,10,4.486,10,10S17.514,22,12,22z M20.434,13.369 c-0.292-0.092-2.644-0.794-5.32-0.365c1.117,3.07,1.572,5.57,1.659,6.09C18.689,17.798,20.053,15.745,20.434,13.369z M15.336,19.876c-0.127-0.749-0.623-3.361-1.822-6.477c-0.019,0.006-0.038,0.013-0.056,0.019c-4.818,1.679-6.547,5.02-6.701,5.334 c1.448,1.129,3.268,1.803,5.243,1.803C13.183,20.555,14.311,20.313,15.336,19.876z M5.654,17.724 c0.193-0.331,2.538-4.213,6.943-5.637c0.111-0.036,0.224-0.07,0.337-0.102c-0.214-0.485-0.448-0.971-0.692-1.45 c-4.266,1.277-8.405,1.223-8.778,1.216c-0.003,0.087-0.004,0.174-0.004,0.261C3.458,14.207,4.29,16.21,5.654,17.724z M3.639,10.264 c0.382,0.005,3.901,0.02,7.897-1.041c-1.415-2.516-2.942-4.631-3.167-4.94C5.979,5.41,4.193,7.613,3.639,10.264z M9.998,3.709 c0.236,0.316,1.787,2.429,3.187,5c3.037-1.138,4.323-2.867,4.477-3.085C16.154,4.286,14.17,3.471,12,3.471 C11.311,3.471,10.641,3.554,9.998,3.709z M18.612,6.612C18.432,6.855,17,8.69,13.842,9.979c0.199,0.407,0.389,0.821,0.567,1.237 c0.063,0.148,0.124,0.295,0.184,0.441c2.842-0.357,5.666,0.215,5.948,0.275C20.522,9.916,19.801,8.065,18.612,6.612z"}))}},{name:"dropbox",attributes:{service:"dropbox"},title:"Dropbox",icon:function(){return Object(X.createElement)(ee.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(X.createElement)(ee.Path,{d:"M12,6.134L6.069,9.797L2,6.54l5.883-3.843L12,6.134z M2,13.054l5.883,3.843L12,13.459L6.069,9.797L2,13.054z M12,13.459 l4.116,3.439L22,13.054l-4.069-3.257L12,13.459z M22,6.54l-5.884-3.843L12,6.134l5.931,3.663L22,6.54z M12.011,14.2l-4.129,3.426 l-1.767-1.153v1.291l5.896,3.539l5.897-3.539v-1.291l-1.769,1.153L12.011,14.2z"}))}},{name:"etsy",attributes:{service:"etsy"},title:"Etsy",icon:function(){return Object(X.createElement)(ee.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(X.createElement)(ee.Path,{d:"M9.16033,4.038c0-.27174.02717-.43478.48913-.43478h6.22283c1.087,0,1.68478.92391,2.11957,2.663l.35326,1.38587h1.05978C19.59511,3.712,19.75815,2,19.75815,2s-2.663.29891-4.23913.29891h-7.962L3.29076,2.163v1.1413L4.731,3.57609c1.00543.19022,1.25.40761,1.33152,1.33152,0,0,.08152,2.71739.08152,7.20109s-.08152,7.17391-.08152,7.17391c0,.81522-.32609,1.11413-1.33152,1.30435l-1.44022.27174V22l4.2663-.13587h7.11957c1.60326,0,5.32609.13587,5.32609.13587.08152-.97826.625-5.40761.70652-5.89674H19.7038L18.644,18.52174c-.84239,1.90217-2.06522,2.038-3.42391,2.038H11.1712c-1.3587,0-2.01087-.54348-2.01087-1.712V12.65217s3.0163,0,3.99457.08152c.76087.05435,1.22283.27174,1.46739,1.33152l.32609,1.413h1.16848l-.08152-3.55978.163-3.587H15.02989l-.38043,1.57609c-.24457,1.03261-.40761,1.22283-1.46739,1.33152-1.38587.13587-4.02174.1087-4.02174.1087Z"}))}},{name:"facebook",attributes:{service:"facebook"},title:"Facebook",icon:function(){return Object(X.createElement)(ee.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(X.createElement)(ee.Path,{d:"M12 2C6.5 2 2 6.5 2 12c0 5 3.7 9.1 8.4 9.9v-7H7.9V12h2.5V9.8c0-2.5 1.5-3.9 3.8-3.9 1.1 0 2.2.2 2.2.2v2.5h-1.3c-1.2 0-1.6.8-1.6 1.6V12h2.8l-.4 2.9h-2.3v7C18.3 21.1 22 17 22 12c0-5.5-4.5-10-10-10z"}))}},{name:"feed",attributes:{service:"feed"},title:"RSS Feed",icon:function(){return Object(X.createElement)(ee.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(X.createElement)(ee.Path,{d:"M2,8.667V12c5.515,0,10,4.485,10,10h3.333C15.333,14.637,9.363,8.667,2,8.667z M2,2v3.333 c9.19,0,16.667,7.477,16.667,16.667H22C22,10.955,13.045,2,2,2z M4.5,17C3.118,17,2,18.12,2,19.5S3.118,22,4.5,22S7,20.88,7,19.5 S5.882,17,4.5,17z"}))}},{name:"flickr",attributes:{service:"flickr"},title:"Flickr",icon:function(){return Object(X.createElement)(ee.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(X.createElement)(ee.Path,{d:"M6.5,7c-2.75,0-5,2.25-5,5s2.25,5,5,5s5-2.25,5-5S9.25,7,6.5,7z M17.5,7c-2.75,0-5,2.25-5,5s2.25,5,5,5s5-2.25,5-5 S20.25,7,17.5,7z"}))}},{name:"foursquare",attributes:{service:"foursquare"},title:"Foursquare",icon:function(){return Object(X.createElement)(ee.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(X.createElement)(ee.Path,{d:"M17.573,2c0,0-9.197,0-10.668,0S5,3.107,5,3.805s0,16.948,0,16.948c0,0.785,0.422,1.077,0.66,1.172 c0.238,0.097,0.892,0.177,1.285-0.275c0,0,5.035-5.843,5.122-5.93c0.132-0.132,0.132-0.132,0.262-0.132h3.26 c1.368,0,1.588-0.977,1.732-1.552c0.078-0.318,0.692-3.428,1.225-6.122l0.675-3.368C19.56,2.893,19.14,2,17.573,2z M16.495,7.22 c-0.053,0.252-0.372,0.518-0.665,0.518c-0.293,0-4.157,0-4.157,0c-0.467,0-0.802,0.318-0.802,0.787v0.508 c0,0.467,0.337,0.798,0.805,0.798c0,0,3.197,0,3.528,0s0.655,0.362,0.583,0.715c-0.072,0.353-0.407,2.102-0.448,2.295 c-0.04,0.193-0.262,0.523-0.655,0.523c-0.33,0-2.88,0-2.88,0c-0.523,0-0.683,0.068-1.033,0.503 c-0.35,0.437-3.505,4.223-3.505,4.223c-0.032,0.035-0.063,0.027-0.063-0.015V4.852c0-0.298,0.26-0.648,0.648-0.648 c0,0,8.228,0,8.562,0c0.315,0,0.61,0.297,0.528,0.683L16.495,7.22z"}))}},{name:"goodreads",attributes:{service:"goodreads"},title:"Goodreads",icon:function(){return Object(X.createElement)(ee.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(X.createElement)(ee.Path,{d:"M17.3,17.5c-0.2,0.8-0.5,1.4-1,1.9c-0.4,0.5-1,0.9-1.7,1.2C13.9,20.9,13.1,21,12,21c-0.6,0-1.3-0.1-1.9-0.2 c-0.6-0.1-1.1-0.4-1.6-0.7c-0.5-0.3-0.9-0.7-1.2-1.2c-0.3-0.5-0.5-1.1-0.5-1.7h1.5c0.1,0.5,0.2,0.9,0.5,1.2 c0.2,0.3,0.5,0.6,0.9,0.8c0.3,0.2,0.7,0.3,1.1,0.4c0.4,0.1,0.8,0.1,1.2,0.1c1.4,0,2.5-0.4,3.1-1.2c0.6-0.8,1-2,1-3.5v-1.7h0 c-0.4,0.8-0.9,1.4-1.6,1.9c-0.7,0.5-1.5,0.7-2.4,0.7c-1,0-1.9-0.2-2.6-0.5C8.7,15,8.1,14.5,7.7,14c-0.5-0.6-0.8-1.3-1-2.1 c-0.2-0.8-0.3-1.6-0.3-2.5c0-0.9,0.1-1.7,0.4-2.5c0.3-0.8,0.6-1.5,1.1-2c0.5-0.6,1.1-1,1.8-1.4C10.3,3.2,11.1,3,12,3 c0.5,0,0.9,0.1,1.3,0.2c0.4,0.1,0.8,0.3,1.1,0.5c0.3,0.2,0.6,0.5,0.9,0.8c0.3,0.3,0.5,0.6,0.6,1h0V3.4h1.5V15 C17.6,15.9,17.5,16.7,17.3,17.5z M13.8,14.1c0.5-0.3,0.9-0.7,1.3-1.1c0.3-0.5,0.6-1,0.8-1.6c0.2-0.6,0.3-1.2,0.3-1.9 c0-0.6-0.1-1.2-0.2-1.9c-0.1-0.6-0.4-1.2-0.7-1.7c-0.3-0.5-0.7-0.9-1.3-1.2c-0.5-0.3-1.1-0.5-1.9-0.5s-1.4,0.2-1.9,0.5 c-0.5,0.3-1,0.7-1.3,1.2C8.5,6.4,8.3,7,8.1,7.6C8,8.2,7.9,8.9,7.9,9.5c0,0.6,0.1,1.3,0.2,1.9C8.3,12,8.6,12.5,8.9,13 c0.3,0.5,0.8,0.8,1.3,1.1c0.5,0.3,1.1,0.4,1.9,0.4C12.7,14.5,13.3,14.4,13.8,14.1z"}))}},{name:"google",attributes:{service:"google"},title:"Google",icon:function(){return Object(X.createElement)(ee.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(X.createElement)(ee.Path,{d:"M12.02,10.18v3.72v0.01h5.51c-0.26,1.57-1.67,4.22-5.5,4.22c-3.31,0-6.01-2.75-6.01-6.12s2.7-6.12,6.01-6.12 c1.87,0,3.13,0.8,3.85,1.48l2.84-2.76C16.99,2.99,14.73,2,12.03,2c-5.52,0-10,4.48-10,10s4.48,10,10,10c5.77,0,9.6-4.06,9.6-9.77 c0-0.83-0.11-1.42-0.25-2.05H12.02z"}))}},{name:"github",attributes:{service:"github"},title:"GitHub",icon:function(){return Object(X.createElement)(ee.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(X.createElement)(ee.Path,{d:"M12,2C6.477,2,2,6.477,2,12c0,4.419,2.865,8.166,6.839,9.489c0.5,0.09,0.682-0.218,0.682-0.484 c0-0.236-0.009-0.866-0.014-1.699c-2.782,0.602-3.369-1.34-3.369-1.34c-0.455-1.157-1.11-1.465-1.11-1.465 c-0.909-0.62,0.069-0.608,0.069-0.608c1.004,0.071,1.532,1.03,1.532,1.03c0.891,1.529,2.341,1.089,2.91,0.833 c0.091-0.647,0.349-1.086,0.635-1.337c-2.22-0.251-4.555-1.111-4.555-4.943c0-1.091,0.39-1.984,1.03-2.682 C6.546,8.54,6.202,7.524,6.746,6.148c0,0,0.84-0.269,2.75,1.025C10.295,6.95,11.15,6.84,12,6.836 c0.85,0.004,1.705,0.114,2.504,0.336c1.909-1.294,2.748-1.025,2.748-1.025c0.546,1.376,0.202,2.394,0.1,2.646 c0.64,0.699,1.026,1.591,1.026,2.682c0,3.841-2.337,4.687-4.565,4.935c0.359,0.307,0.679,0.917,0.679,1.852 c0,1.335-0.012,2.415-0.012,2.741c0,0.269,0.18,0.579,0.688,0.481C19.138,20.161,22,16.416,22,12C22,6.477,17.523,2,12,2z"}))}},{name:"instagram",attributes:{service:"instagram"},title:"Instagram",icon:function(){return Object(X.createElement)(ee.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(X.createElement)(ee.Path,{d:"M12,4.622c2.403,0,2.688,0.009,3.637,0.052c0.877,0.04,1.354,0.187,1.671,0.31c0.42,0.163,0.72,0.358,1.035,0.673 c0.315,0.315,0.51,0.615,0.673,1.035c0.123,0.317,0.27,0.794,0.31,1.671c0.043,0.949,0.052,1.234,0.052,3.637 s-0.009,2.688-0.052,3.637c-0.04,0.877-0.187,1.354-0.31,1.671c-0.163,0.42-0.358,0.72-0.673,1.035 c-0.315,0.315-0.615,0.51-1.035,0.673c-0.317,0.123-0.794,0.27-1.671,0.31c-0.949,0.043-1.233,0.052-3.637,0.052 s-2.688-0.009-3.637-0.052c-0.877-0.04-1.354-0.187-1.671-0.31c-0.42-0.163-0.72-0.358-1.035-0.673 c-0.315-0.315-0.51-0.615-0.673-1.035c-0.123-0.317-0.27-0.794-0.31-1.671C4.631,14.688,4.622,14.403,4.622,12 s0.009-2.688,0.052-3.637c0.04-0.877,0.187-1.354,0.31-1.671c0.163-0.42,0.358-0.72,0.673-1.035 c0.315-0.315,0.615-0.51,1.035-0.673c0.317-0.123,0.794-0.27,1.671-0.31C9.312,4.631,9.597,4.622,12,4.622 M12,3 C9.556,3,9.249,3.01,8.289,3.054C7.331,3.098,6.677,3.25,6.105,3.472C5.513,3.702,5.011,4.01,4.511,4.511 c-0.5,0.5-0.808,1.002-1.038,1.594C3.25,6.677,3.098,7.331,3.054,8.289C3.01,9.249,3,9.556,3,12c0,2.444,0.01,2.751,0.054,3.711 c0.044,0.958,0.196,1.612,0.418,2.185c0.23,0.592,0.538,1.094,1.038,1.594c0.5,0.5,1.002,0.808,1.594,1.038 c0.572,0.222,1.227,0.375,2.185,0.418C9.249,20.99,9.556,21,12,21s2.751-0.01,3.711-0.054c0.958-0.044,1.612-0.196,2.185-0.418 c0.592-0.23,1.094-0.538,1.594-1.038c0.5-0.5,0.808-1.002,1.038-1.594c0.222-0.572,0.375-1.227,0.418-2.185 C20.99,14.751,21,14.444,21,12s-0.01-2.751-0.054-3.711c-0.044-0.958-0.196-1.612-0.418-2.185c-0.23-0.592-0.538-1.094-1.038-1.594 c-0.5-0.5-1.002-0.808-1.594-1.038c-0.572-0.222-1.227-0.375-2.185-0.418C14.751,3.01,14.444,3,12,3L12,3z M12,7.378 c-2.552,0-4.622,2.069-4.622,4.622S9.448,16.622,12,16.622s4.622-2.069,4.622-4.622S14.552,7.378,12,7.378z M12,15 c-1.657,0-3-1.343-3-3s1.343-3,3-3s3,1.343,3,3S13.657,15,12,15z M16.804,6.116c-0.596,0-1.08,0.484-1.08,1.08 s0.484,1.08,1.08,1.08c0.596,0,1.08-0.484,1.08-1.08S17.401,6.116,16.804,6.116z"}))}},{name:"lastfm",attributes:{service:"lastfm"},title:"Last.fm",icon:function(){return Object(X.createElement)(ee.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(X.createElement)(ee.Path,{d:"M 12.0002 1.5 C 6.2006 1.5 1.5 6.2011 1.5 11.9998 C 1.5 17.799 6.2006 22.5 12.0002 22.5 C 17.799 22.5 22.5 17.799 22.5 11.9998 C 22.5 6.2011 17.799 1.5 12.0002 1.5 Z M 16.1974 16.2204 C 14.8164 16.2152 13.9346 15.587 13.3345 14.1859 L 13.1816 13.8451 L 11.8541 10.8101 C 11.4271 9.7688 10.3526 9.0712 9.1801 9.0712 C 7.5695 9.0712 6.2593 10.3851 6.2593 12.001 C 6.2593 13.6165 7.5695 14.9303 9.1801 14.9303 C 10.272 14.9303 11.2651 14.3275 11.772 13.3567 C 11.7893 13.3235 11.8239 13.302 11.863 13.3038 C 11.9007 13.3054 11.9353 13.3288 11.9504 13.3632 L 12.4865 14.6046 C 12.5016 14.639 12.4956 14.6778 12.4723 14.7069 C 11.6605 15.6995 10.4602 16.2683 9.1801 16.2683 C 6.8331 16.2683 4.9234 14.3536 4.9234 12.001 C 4.9234 9.6468 6.833 7.732 9.1801 7.732 C 10.9572 7.732 12.3909 8.6907 13.1138 10.3636 C 13.1206 10.3802 13.8412 12.0708 14.4744 13.5191 C 14.8486 14.374 15.1462 14.896 16.1288 14.9292 C 17.0663 14.9613 17.7538 14.4122 17.7538 13.6485 C 17.7538 12.9691 17.3321 12.8004 16.3803 12.4822 C 14.7365 11.9398 13.845 11.3861 13.845 10.0182 C 13.845 8.6809 14.7667 7.8162 16.192 7.8162 C 17.1288 7.8162 17.8155 8.2287 18.2921 9.0768 C 18.305 9.1006 18.3079 9.1281 18.3004 9.1542 C 18.2929 9.1803 18.2748 9.2021 18.2507 9.2138 L 17.3614 9.669 C 17.3178 9.692 17.2643 9.6781 17.2356 9.6385 C 16.9329 9.2135 16.5956 9.0251 16.1423 9.0251 C 15.5512 9.0251 15.122 9.429 15.122 9.9865 C 15.122 10.6738 15.6529 10.8414 16.5339 11.1192 C 16.6491 11.1558 16.7696 11.194 16.8939 11.2343 C 18.2763 11.6865 19.0768 12.2311 19.0768 13.6836 C 19.0769 15.1297 17.8389 16.2204 16.1974 16.2204 Z"}))}},{name:"linkedin",attributes:{service:"linkedin"},title:"LinkedIn",icon:function(){return Object(X.createElement)(ee.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(X.createElement)(ee.Path,{d:"M19.7,3H4.3C3.582,3,3,3.582,3,4.3v15.4C3,20.418,3.582,21,4.3,21h15.4c0.718,0,1.3-0.582,1.3-1.3V4.3 C21,3.582,20.418,3,19.7,3z M8.339,18.338H5.667v-8.59h2.672V18.338z M7.004,8.574c-0.857,0-1.549-0.694-1.549-1.548 c0-0.855,0.691-1.548,1.549-1.548c0.854,0,1.547,0.694,1.547,1.548C8.551,7.881,7.858,8.574,7.004,8.574z M18.339,18.338h-2.669 v-4.177c0-0.996-0.017-2.278-1.387-2.278c-1.389,0-1.601,1.086-1.601,2.206v4.249h-2.667v-8.59h2.559v1.174h0.037 c0.356-0.675,1.227-1.387,2.526-1.387c2.703,0,3.203,1.779,3.203,4.092V18.338z"}))}},{name:"mail",attributes:{service:"mail"},title:"Mail",keywords:["email","e-mail"],icon:function(){return Object(X.createElement)(ee.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(X.createElement)(ee.Path,{d:"M20,4H4C2.895,4,2,4.895,2,6v12c0,1.105,0.895,2,2,2h16c1.105,0,2-0.895,2-2V6C22,4.895,21.105,4,20,4z M20,8.236l-8,4.882 L4,8.236V6h16V8.236z"}))}},{name:"mastodon",attributes:{service:"mastodon"},title:"Mastodon",icon:function(){return Object(X.createElement)(ee.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(X.createElement)(ee.Path,{d:"M23.193 7.879c0-5.206-3.411-6.732-3.411-6.732C18.062.357 15.108.025 12.041 0h-.076c-3.068.025-6.02.357-7.74 1.147 0 0-3.411 1.526-3.411 6.732 0 1.192-.023 2.618.015 4.129.124 5.092.934 10.109 5.641 11.355 2.17.574 4.034.695 5.535.612 2.722-.15 4.25-.972 4.25-.972l-.09-1.975s-1.945.613-4.129.539c-2.165-.074-4.449-.233-4.799-2.891a5.499 5.499 0 0 1-.048-.745s2.125.52 4.817.643c1.646.075 3.19-.097 4.758-.283 3.007-.359 5.625-2.212 5.954-3.905.517-2.665.475-6.507.475-6.507zm-4.024 6.709h-2.497V8.469c0-1.29-.543-1.944-1.628-1.944-1.2 0-1.802.776-1.802 2.312v3.349h-2.483v-3.35c0-1.536-.602-2.312-1.802-2.312-1.085 0-1.628.655-1.628 1.944v6.119H4.832V8.284c0-1.289.328-2.313.987-3.07.68-.758 1.569-1.146 2.674-1.146 1.278 0 2.246.491 2.886 1.474L12 6.585l.622-1.043c.64-.983 1.608-1.474 2.886-1.474 1.104 0 1.994.388 2.674 1.146.658.757.986 1.781.986 3.07v6.304z"}))}},{name:"meetup",attributes:{service:"meetup"},title:"Meetup",icon:function(){return Object(X.createElement)(ee.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(X.createElement)(ee.Path,{d:"M19.24775,14.722a3.57032,3.57032,0,0,1-2.94457,3.52073,3.61886,3.61886,0,0,1-.64652.05634c-.07314-.0008-.10187.02846-.12507.09547A2.38881,2.38881,0,0,1,13.49453,20.094a2.33092,2.33092,0,0,1-1.827-.50716.13635.13635,0,0,0-.19878-.00408,3.191,3.191,0,0,1-2.104.60248,3.26309,3.26309,0,0,1-3.00324-2.71993,2.19076,2.19076,0,0,1-.03512-.30865c-.00156-.08579-.03413-.1189-.11608-.13493a2.86421,2.86421,0,0,1-1.23189-.56111,2.945,2.945,0,0,1-1.166-2.05749,2.97484,2.97484,0,0,1,.87524-2.50774.112.112,0,0,0,.02091-.16107,2.7213,2.7213,0,0,1-.36648-1.48A2.81256,2.81256,0,0,1,6.57673,7.58838a.35764.35764,0,0,0,.28869-.22819,4.2208,4.2208,0,0,1,6.02892-1.90111.25161.25161,0,0,0,.22023.0243,3.65608,3.65608,0,0,1,3.76031.90678A3.57244,3.57244,0,0,1,17.95918,8.626a2.97339,2.97339,0,0,1,.01829.57356.10637.10637,0,0,0,.0853.12792,1.97669,1.97669,0,0,1,1.27939,1.33733,2.00266,2.00266,0,0,1-.57112,2.12652c-.05284.05166-.04168.08328-.01173.13489A3.51189,3.51189,0,0,1,19.24775,14.722Zm-6.35959-.27836a1.6984,1.6984,0,0,0,1.14556,1.61113,3.82039,3.82039,0,0,0,1.036.17935,1.46888,1.46888,0,0,0,.73509-.12255.44082.44082,0,0,0,.26057-.44274.45312.45312,0,0,0-.29211-.43375.97191.97191,0,0,0-.20678-.063c-.21326-.03806-.42754-.0701-.63973-.11215a.54787.54787,0,0,1-.50172-.60926,2.75864,2.75864,0,0,1,.1773-.901c.1763-.535.414-1.045.64183-1.55913A12.686,12.686,0,0,0,15.85,10.47863a1.58461,1.58461,0,0,0,.04861-.87208,1.04531,1.04531,0,0,0-.85432-.83981,1.60658,1.60658,0,0,0-1.23654.16594.27593.27593,0,0,1-.36286-.03413c-.085-.0747-.16594-.15379-.24918-.23055a.98682.98682,0,0,0-1.33577-.04933,6.1468,6.1468,0,0,1-.4989.41615.47762.47762,0,0,1-.51535.03566c-.17448-.09307-.35512-.175-.53531-.25665a1.74949,1.74949,0,0,0-.56476-.2016,1.69943,1.69943,0,0,0-1.61654.91787,8.05815,8.05815,0,0,0-.32952.80126c-.45471,1.2557-.82507,2.53825-1.20838,3.81639a1.24151,1.24151,0,0,0,.51532,1.44389,1.42659,1.42659,0,0,0,1.22008.17166,1.09728,1.09728,0,0,0,.66994-.69764c.44145-1.04111.839-2.09989,1.25981-3.14926.11581-.28876.22792-.57874.35078-.86438a.44548.44548,0,0,1,.69189-.19539.50521.50521,0,0,1,.15044.43836,1.75625,1.75625,0,0,1-.14731.50453c-.27379.69219-.55265,1.38236-.82766,2.074a2.0836,2.0836,0,0,0-.14038.42876.50719.50719,0,0,0,.27082.57722.87236.87236,0,0,0,.66145.02739.99137.99137,0,0,0,.53406-.532q.61571-1.20914,1.228-2.42031.28423-.55863.57585-1.1133a.87189.87189,0,0,1,.29055-.35253.34987.34987,0,0,1,.37634-.01265.30291.30291,0,0,1,.12434.31459.56716.56716,0,0,1-.04655.1915c-.05318.12739-.10286.25669-.16183.38156-.34118.71775-.68754,1.43273-1.02568,2.152A2.00213,2.00213,0,0,0,12.88816,14.44366Zm4.78568,5.28972a.88573.88573,0,0,0-1.77139.00465.8857.8857,0,0,0,1.77139-.00465Zm-14.83838-7.296a.84329.84329,0,1,0,.00827-1.68655.8433.8433,0,0,0-.00827,1.68655Zm10.366-9.43673a.83506.83506,0,1,0-.0091,1.67.83505.83505,0,0,0,.0091-1.67Zm6.85014,5.22a.71651.71651,0,0,0-1.433.0093.71656.71656,0,0,0,1.433-.0093ZM5.37528,6.17908A.63823.63823,0,1,0,6.015,5.54483.62292.62292,0,0,0,5.37528,6.17908Zm6.68214,14.80843a.54949.54949,0,1,0-.55052.541A.54556.54556,0,0,0,12.05742,20.98752Zm8.53235-8.49689a.54777.54777,0,0,0-.54027.54023.53327.53327,0,0,0,.532.52293.51548.51548,0,0,0,.53272-.5237A.53187.53187,0,0,0,20.58977,12.49063ZM7.82846,2.4715a.44927.44927,0,1,0,.44484.44766A.43821.43821,0,0,0,7.82846,2.4715Zm13.775,7.60492a.41186.41186,0,0,0-.40065.39623.40178.40178,0,0,0,.40168.40168A.38994.38994,0,0,0,22,10.48172.39946.39946,0,0,0,21.60349,10.07642ZM5.79193,17.96207a.40469.40469,0,0,0-.397-.39646.399.399,0,0,0-.396.405.39234.39234,0,0,0,.39939.389A.39857.39857,0,0,0,5.79193,17.96207Z"}))}},{name:"medium",attributes:{service:"medium"},title:"Medium",icon:function(){return Object(X.createElement)(ee.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(X.createElement)(ee.Path,{d:"M20.962,7.257l-5.457,8.867l-3.923-6.375l3.126-5.08c0.112-0.182,0.319-0.286,0.527-0.286c0.05,0,0.1,0.008,0.149,0.02 c0.039,0.01,0.078,0.023,0.114,0.041l5.43,2.715l0.006,0.003c0.004,0.002,0.007,0.006,0.011,0.008 C20.971,7.191,20.98,7.227,20.962,7.257z M9.86,8.592v5.783l5.14,2.57L9.86,8.592z M15.772,17.331l4.231,2.115 C20.554,19.721,21,19.529,21,19.016V8.835L15.772,17.331z M8.968,7.178L3.665,4.527C3.569,4.479,3.478,4.456,3.395,4.456 C3.163,4.456,3,4.636,3,4.938v11.45c0,0.306,0.224,0.669,0.498,0.806l4.671,2.335c0.12,0.06,0.234,0.088,0.337,0.088 c0.29,0,0.494-0.225,0.494-0.602V7.231C9,7.208,8.988,7.188,8.968,7.178z"}))}},{name:"pinterest",attributes:{service:"pinterest"},title:"Pinterest",icon:function(){return Object(X.createElement)(ee.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(X.createElement)(ee.Path,{d:"M12.289,2C6.617,2,3.606,5.648,3.606,9.622c0,1.846,1.025,4.146,2.666,4.878c0.25,0.111,0.381,0.063,0.439-0.169 c0.044-0.175,0.267-1.029,0.365-1.428c0.032-0.128,0.017-0.237-0.091-0.362C6.445,11.911,6.01,10.75,6.01,9.668 c0-2.777,2.194-5.464,5.933-5.464c3.23,0,5.49,2.108,5.49,5.122c0,3.407-1.794,5.768-4.13,5.768c-1.291,0-2.257-1.021-1.948-2.277 c0.372-1.495,1.089-3.112,1.089-4.191c0-0.967-0.542-1.775-1.663-1.775c-1.319,0-2.379,1.309-2.379,3.059 c0,1.115,0.394,1.869,0.394,1.869s-1.302,5.279-1.54,6.261c-0.405,1.666,0.053,4.368,0.094,4.604 c0.021,0.126,0.167,0.169,0.25,0.063c0.129-0.165,1.699-2.419,2.142-4.051c0.158-0.59,0.817-2.995,0.817-2.995 c0.43,0.784,1.681,1.446,3.013,1.446c3.963,0,6.822-3.494,6.822-7.833C20.394,5.112,16.849,2,12.289,2"}))}},{name:"pocket",attributes:{service:"pocket"},title:"Pocket",icon:function(){return Object(X.createElement)(ee.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(X.createElement)(ee.Path,{d:"M21.927,4.194C21.667,3.48,20.982,3,20.222,3h-0.01h-1.721H3.839C3.092,3,2.411,3.47,2.145,4.17 C2.066,4.378,2.026,4.594,2.026,4.814v6.035l0.069,1.2c0.29,2.73,1.707,5.115,3.899,6.778c0.039,0.03,0.079,0.059,0.119,0.089 l0.025,0.018c1.175,0.859,2.491,1.441,3.91,1.727c0.655,0.132,1.325,0.2,1.991,0.2c0.615,0,1.232-0.057,1.839-0.17 c0.073-0.014,0.145-0.028,0.219-0.044c0.02-0.004,0.042-0.012,0.064-0.023c1.359-0.297,2.621-0.864,3.753-1.691l0.025-0.018 c0.04-0.029,0.08-0.058,0.119-0.089c2.192-1.664,3.609-4.049,3.898-6.778l0.069-1.2V4.814C22.026,4.605,22,4.398,21.927,4.194z M17.692,10.481l-4.704,4.512c-0.266,0.254-0.608,0.382-0.949,0.382c-0.342,0-0.684-0.128-0.949-0.382l-4.705-4.512 C5.838,9.957,5.82,9.089,6.344,8.542c0.524-0.547,1.392-0.565,1.939-0.04l3.756,3.601l3.755-3.601 c0.547-0.524,1.415-0.506,1.939,0.04C18.256,9.089,18.238,9.956,17.692,10.481z"}))}},{name:"reddit",attributes:{service:"reddit"},title:"Reddit",icon:function(){return Object(X.createElement)(ee.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(X.createElement)(ee.Path,{d:"M22,11.816c0-1.256-1.021-2.277-2.277-2.277c-0.593,0-1.122,0.24-1.526,0.614c-1.481-0.965-3.455-1.594-5.647-1.69 l1.171-3.702l3.18,0.748c0.008,1.028,0.846,1.862,1.876,1.862c1.035,0,1.877-0.842,1.877-1.878c0-1.035-0.842-1.877-1.877-1.877 c-0.769,0-1.431,0.466-1.72,1.13l-3.508-0.826c-0.203-0.047-0.399,0.067-0.46,0.261l-1.35,4.268 c-2.316,0.038-4.411,0.67-5.97,1.671C5.368,9.765,4.853,9.539,4.277,9.539C3.021,9.539,2,10.56,2,11.816 c0,0.814,0.433,1.523,1.078,1.925c-0.037,0.221-0.061,0.444-0.061,0.672c0,3.292,4.011,5.97,8.941,5.97s8.941-2.678,8.941-5.97 c0-0.214-0.02-0.424-0.053-0.632C21.533,13.39,22,12.661,22,11.816z M18.776,4.394c0.606,0,1.1,0.493,1.1,1.1s-0.493,1.1-1.1,1.1 s-1.1-0.494-1.1-1.1S18.169,4.394,18.776,4.394z M2.777,11.816c0-0.827,0.672-1.5,1.499-1.5c0.313,0,0.598,0.103,0.838,0.269 c-0.851,0.676-1.477,1.479-1.812,2.36C2.983,12.672,2.777,12.27,2.777,11.816z M11.959,19.606c-4.501,0-8.164-2.329-8.164-5.193 S7.457,9.22,11.959,9.22s8.164,2.329,8.164,5.193S16.46,19.606,11.959,19.606z M20.636,13.001c-0.326-0.89-0.948-1.701-1.797-2.384 c0.248-0.186,0.55-0.301,0.883-0.301c0.827,0,1.5,0.673,1.5,1.5C21.223,12.299,20.992,12.727,20.636,13.001z M8.996,14.704 c-0.76,0-1.397-0.616-1.397-1.376c0-0.76,0.637-1.397,1.397-1.397c0.76,0,1.376,0.637,1.376,1.397 C10.372,14.088,9.756,14.704,8.996,14.704z M16.401,13.328c0,0.76-0.616,1.376-1.376,1.376c-0.76,0-1.399-0.616-1.399-1.376 c0-0.76,0.639-1.397,1.399-1.397C15.785,11.931,16.401,12.568,16.401,13.328z M15.229,16.708c0.152,0.152,0.152,0.398,0,0.55 c-0.674,0.674-1.727,1.002-3.219,1.002c-0.004,0-0.007-0.002-0.011-0.002c-0.004,0-0.007,0.002-0.011,0.002 c-1.492,0-2.544-0.328-3.218-1.002c-0.152-0.152-0.152-0.398,0-0.55c0.152-0.152,0.399-0.151,0.55,0 c0.521,0.521,1.394,0.775,2.669,0.775c0.004,0,0.007,0.002,0.011,0.002c0.004,0,0.007-0.002,0.011-0.002 c1.275,0,2.148-0.253,2.669-0.775C14.831,16.556,15.078,16.556,15.229,16.708z"}))}},{name:"skype",attributes:{service:"skype"},title:"Skype",icon:function(){return Object(X.createElement)(ee.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(X.createElement)(ee.Path,{d:"M10.113,2.699c0.033-0.006,0.067-0.013,0.1-0.02c0.033,0.017,0.066,0.033,0.098,0.051L10.113,2.699z M2.72,10.223 c-0.006,0.034-0.011,0.069-0.017,0.103c0.018,0.032,0.033,0.064,0.051,0.095L2.72,10.223z M21.275,13.771 c0.007-0.035,0.011-0.071,0.018-0.106c-0.018-0.031-0.033-0.064-0.052-0.095L21.275,13.771z M13.563,21.199 c0.032,0.019,0.065,0.035,0.096,0.053c0.036-0.006,0.071-0.011,0.105-0.017L13.563,21.199z M22,16.386 c0,1.494-0.581,2.898-1.637,3.953c-1.056,1.057-2.459,1.637-3.953,1.637c-0.967,0-1.914-0.251-2.75-0.725 c0.036-0.006,0.071-0.011,0.105-0.017l-0.202-0.035c0.032,0.019,0.065,0.035,0.096,0.053c-0.543,0.096-1.099,0.147-1.654,0.147 c-1.275,0-2.512-0.25-3.676-0.743c-1.125-0.474-2.135-1.156-3.002-2.023c-0.867-0.867-1.548-1.877-2.023-3.002 c-0.493-1.164-0.743-2.401-0.743-3.676c0-0.546,0.049-1.093,0.142-1.628c0.018,0.032,0.033,0.064,0.051,0.095L2.72,10.223 c-0.006,0.034-0.011,0.069-0.017,0.103C2.244,9.5,2,8.566,2,7.615c0-1.493,0.582-2.898,1.637-3.953 c1.056-1.056,2.46-1.638,3.953-1.638c0.915,0,1.818,0.228,2.622,0.655c-0.033,0.007-0.067,0.013-0.1,0.02l0.199,0.031 c-0.032-0.018-0.066-0.034-0.098-0.051c0.002,0,0.003-0.001,0.004-0.001c0.586-0.112,1.187-0.169,1.788-0.169 c1.275,0,2.512,0.249,3.676,0.742c1.124,0.476,2.135,1.156,3.002,2.024c0.868,0.867,1.548,1.877,2.024,3.002 c0.493,1.164,0.743,2.401,0.743,3.676c0,0.575-0.054,1.15-0.157,1.712c-0.018-0.031-0.033-0.064-0.052-0.095l0.034,0.201 c0.007-0.035,0.011-0.071,0.018-0.106C21.754,14.494,22,15.432,22,16.386z M16.817,14.138c0-1.331-0.613-2.743-3.033-3.282 l-2.209-0.49c-0.84-0.192-1.807-0.444-1.807-1.237c0-0.794,0.679-1.348,1.903-1.348c2.468,0,2.243,1.696,3.468,1.696 c0.645,0,1.209-0.379,1.209-1.031c0-1.521-2.435-2.663-4.5-2.663c-2.242,0-4.63,0.952-4.63,3.488c0,1.221,0.436,2.521,2.839,3.123 l2.984,0.745c0.903,0.223,1.129,0.731,1.129,1.189c0,0.762-0.758,1.507-2.129,1.507c-2.679,0-2.307-2.062-3.743-2.062 c-0.645,0-1.113,0.444-1.113,1.078c0,1.236,1.501,2.886,4.856,2.886C15.236,17.737,16.817,16.199,16.817,14.138z"}))}},{name:"snapchat",attributes:{service:"snapchat"},title:"Snapchat",icon:function(){return Object(X.createElement)(ee.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(X.createElement)(ee.Path,{d:"M12.065,2a5.526,5.526,0,0,1,3.132.892A5.854,5.854,0,0,1,17.326,5.4a5.821,5.821,0,0,1,.351,2.33q0,.612-.117,2.487a.809.809,0,0,0,.365.091,1.93,1.93,0,0,0,.664-.176,1.93,1.93,0,0,1,.664-.176,1.3,1.3,0,0,1,.729.234.7.7,0,0,1,.351.6.839.839,0,0,1-.41.7,2.732,2.732,0,0,1-.9.41,3.192,3.192,0,0,0-.9.378.728.728,0,0,0-.41.618,1.575,1.575,0,0,0,.156.56,6.9,6.9,0,0,0,1.334,1.953,5.6,5.6,0,0,0,1.881,1.315,5.875,5.875,0,0,0,1.042.3.42.42,0,0,1,.365.456q0,.911-2.852,1.341a1.379,1.379,0,0,0-.143.507,1.8,1.8,0,0,1-.182.605.451.451,0,0,1-.429.241,5.878,5.878,0,0,1-.807-.085,5.917,5.917,0,0,0-.833-.085,4.217,4.217,0,0,0-.807.065,2.42,2.42,0,0,0-.82.293,6.682,6.682,0,0,0-.755.5q-.351.267-.755.527a3.886,3.886,0,0,1-.989.436A4.471,4.471,0,0,1,11.831,22a4.307,4.307,0,0,1-1.256-.176,3.784,3.784,0,0,1-.976-.436q-.4-.26-.749-.527a6.682,6.682,0,0,0-.755-.5,2.422,2.422,0,0,0-.807-.293,4.432,4.432,0,0,0-.82-.065,5.089,5.089,0,0,0-.853.1,5,5,0,0,1-.762.1.474.474,0,0,1-.456-.241,1.819,1.819,0,0,1-.182-.618,1.411,1.411,0,0,0-.143-.521q-2.852-.429-2.852-1.341a.42.42,0,0,1,.365-.456,5.793,5.793,0,0,0,1.042-.3,5.524,5.524,0,0,0,1.881-1.315,6.789,6.789,0,0,0,1.334-1.953A1.575,1.575,0,0,0,6,12.9a.728.728,0,0,0-.41-.618,3.323,3.323,0,0,0-.9-.384,2.912,2.912,0,0,1-.9-.41.814.814,0,0,1-.41-.684.71.71,0,0,1,.338-.593,1.208,1.208,0,0,1,.716-.241,1.976,1.976,0,0,1,.625.169,2.008,2.008,0,0,0,.69.169.919.919,0,0,0,.416-.091q-.117-1.849-.117-2.474A5.861,5.861,0,0,1,6.385,5.4,5.516,5.516,0,0,1,8.625,2.819,7.075,7.075,0,0,1,12.062,2Z"}))}},{name:"soundcloud",attributes:{service:"soundcloud"},title:"SoundCloud",icon:function(){return Object(X.createElement)(ee.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(X.createElement)(ee.Path,{d:"M8.9,16.1L9,14L8.9,9.5c0-0.1,0-0.1-0.1-0.1c0,0-0.1-0.1-0.1-0.1c-0.1,0-0.1,0-0.1,0.1c0,0-0.1,0.1-0.1,0.1L8.3,14l0.1,2.1 c0,0.1,0,0.1,0.1,0.1c0,0,0.1,0.1,0.1,0.1C8.8,16.3,8.9,16.3,8.9,16.1z M11.4,15.9l0.1-1.8L11.4,9c0-0.1,0-0.2-0.1-0.2 c0,0-0.1,0-0.1,0s-0.1,0-0.1,0c-0.1,0-0.1,0.1-0.1,0.2l0,0.1l-0.1,5c0,0,0,0.7,0.1,2v0c0,0.1,0,0.1,0.1,0.1c0.1,0.1,0.1,0.1,0.2,0.1 c0.1,0,0.1,0,0.2-0.1c0.1,0,0.1-0.1,0.1-0.2L11.4,15.9z M2.4,12.9L2.5,14l-0.2,1.1c0,0.1,0,0.1-0.1,0.1c0,0-0.1,0-0.1-0.1L2.1,14 l0.1-1.1C2.2,12.9,2.3,12.9,2.4,12.9C2.3,12.9,2.4,12.9,2.4,12.9z M3.1,12.2L3.3,14l-0.2,1.8c0,0.1,0,0.1-0.1,0.1 c-0.1,0-0.1,0-0.1-0.1L2.8,14L3,12.2C3,12.2,3,12.2,3.1,12.2C3.1,12.2,3.1,12.2,3.1,12.2z M3.9,11.9L4.1,14l-0.2,2.1 c0,0.1,0,0.1-0.1,0.1c-0.1,0-0.1,0-0.1-0.1L3.5,14l0.2-2.1c0-0.1,0-0.1,0.1-0.1C3.9,11.8,3.9,11.8,3.9,11.9z M4.7,11.9L4.9,14 l-0.2,2.1c0,0.1-0.1,0.1-0.1,0.1c-0.1,0-0.1,0-0.1-0.1L4.3,14l0.2-2.2c0-0.1,0-0.1,0.1-0.1C4.7,11.7,4.7,11.8,4.7,11.9z M5.6,12 l0.2,2l-0.2,2.1c0,0.1-0.1,0.1-0.1,0.1c0,0-0.1,0-0.1,0c0,0,0-0.1,0-0.1L5.1,14l0.2-2c0,0,0-0.1,0-0.1s0.1,0,0.1,0 C5.5,11.9,5.5,11.9,5.6,12L5.6,12z M6.4,10.7L6.6,14l-0.2,2.1c0,0,0,0.1,0,0.1c0,0-0.1,0-0.1,0c-0.1,0-0.1-0.1-0.2-0.2L5.9,14 l0.2-3.3c0-0.1,0.1-0.2,0.2-0.2c0,0,0.1,0,0.1,0C6.4,10.7,6.4,10.7,6.4,10.7z M7.2,10l0.2,4.1l-0.2,2.1c0,0,0,0.1,0,0.1 c0,0-0.1,0-0.1,0c-0.1,0-0.2-0.1-0.2-0.2l-0.1-2.1L6.8,10c0-0.1,0.1-0.2,0.2-0.2c0,0,0.1,0,0.1,0S7.2,9.9,7.2,10z M8,9.6L8.2,14 L8,16.1c0,0.1-0.1,0.2-0.2,0.2c-0.1,0-0.2-0.1-0.2-0.2L7.5,14l0.1-4.4c0-0.1,0-0.1,0.1-0.1c0,0,0.1-0.1,0.1-0.1c0.1,0,0.1,0,0.1,0.1 C8,9.6,8,9.6,8,9.6z M11.4,16.1L11.4,16.1L11.4,16.1z M9.7,9.6L9.8,14l-0.1,2.1c0,0.1,0,0.1-0.1,0.2s-0.1,0.1-0.2,0.1 c-0.1,0-0.1,0-0.1-0.1s-0.1-0.1-0.1-0.2L9.2,14l0.1-4.4c0-0.1,0-0.1,0.1-0.2s0.1-0.1,0.2-0.1c0.1,0,0.1,0,0.2,0.1S9.7,9.5,9.7,9.6 L9.7,9.6z M10.6,9.8l0.1,4.3l-0.1,2c0,0.1,0,0.1-0.1,0.2c0,0-0.1,0.1-0.2,0.1c-0.1,0-0.1,0-0.2-0.1c0,0-0.1-0.1-0.1-0.2L10,14 l0.1-4.3c0-0.1,0-0.1,0.1-0.2c0,0,0.1-0.1,0.2-0.1c0.1,0,0.1,0,0.2,0.1S10.6,9.7,10.6,9.8z M12.4,14l-0.1,2c0,0.1,0,0.1-0.1,0.2 c-0.1,0.1-0.1,0.1-0.2,0.1c-0.1,0-0.1,0-0.2-0.1c-0.1-0.1-0.1-0.1-0.1-0.2l-0.1-1l-0.1-1l0.1-5.5v0c0-0.1,0-0.2,0.1-0.2 c0.1,0,0.1-0.1,0.2-0.1c0,0,0.1,0,0.1,0c0.1,0,0.1,0.1,0.1,0.2L12.4,14z M22.1,13.9c0,0.7-0.2,1.3-0.7,1.7c-0.5,0.5-1.1,0.7-1.7,0.7 h-6.8c-0.1,0-0.1,0-0.2-0.1c-0.1-0.1-0.1-0.1-0.1-0.2V8.2c0-0.1,0.1-0.2,0.2-0.3c0.5-0.2,1-0.3,1.6-0.3c1.1,0,2.1,0.4,2.9,1.1 c0.8,0.8,1.3,1.7,1.4,2.8c0.3-0.1,0.6-0.2,1-0.2c0.7,0,1.3,0.2,1.7,0.7C21.8,12.6,22.1,13.2,22.1,13.9L22.1,13.9z"}))}},{name:"spotify",attributes:{service:"spotify"},title:"Spotify",icon:function(){return Object(X.createElement)(ee.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(X.createElement)(ee.Path,{d:"M12,2C6.477,2,2,6.477,2,12c0,5.523,4.477,10,10,10c5.523,0,10-4.477,10-10C22,6.477,17.523,2,12,2 M16.586,16.424 c-0.18,0.295-0.563,0.387-0.857,0.207c-2.348-1.435-5.304-1.76-8.785-0.964c-0.335,0.077-0.67-0.133-0.746-0.469 c-0.077-0.335,0.132-0.67,0.469-0.746c3.809-0.871,7.077-0.496,9.713,1.115C16.673,15.746,16.766,16.13,16.586,16.424 M17.81,13.7 c-0.226,0.367-0.706,0.482-1.072,0.257c-2.687-1.652-6.785-2.131-9.965-1.166C6.36,12.917,5.925,12.684,5.8,12.273 C5.675,11.86,5.908,11.425,6.32,11.3c3.632-1.102,8.147-0.568,11.234,1.328C17.92,12.854,18.035,13.335,17.81,13.7 M17.915,10.865 c-3.223-1.914-8.54-2.09-11.618-1.156C5.804,9.859,5.281,9.58,5.131,9.086C4.982,8.591,5.26,8.069,5.755,7.919 c3.532-1.072,9.404-0.865,13.115,1.338c0.445,0.264,0.59,0.838,0.327,1.282C18.933,10.983,18.359,11.129,17.915,10.865"}))}},{name:"tumblr",attributes:{service:"tumblr"},title:"Tumblr",icon:function(){return Object(X.createElement)(ee.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(X.createElement)(ee.Path,{d:"M17.04 21.28h-3.28c-2.84 0-4.94-1.37-4.94-5.02v-5.67H6.08V7.5c2.93-.73 4.11-3.3 4.3-5.48h3.01v4.93h3.47v3.65H13.4v4.93c0 1.47.73 2.01 1.92 2.01h1.73v3.75z"}))}},{name:"twitch",attributes:{service:"twitch"},title:"Twitch",icon:function(){return Object(X.createElement)(ee.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(X.createElement)(ee.Path,{d:"M16.499,8.089h-1.636v4.91h1.636V8.089z M12,8.089h-1.637v4.91H12V8.089z M4.228,3.178L3,6.451v13.092h4.499V22h2.456 l2.454-2.456h3.681L21,14.636V3.178H4.228z M19.364,13.816l-2.864,2.865H12l-2.453,2.453V16.68H5.863V4.814h13.501V13.816z"}))}},{name:"twitter",attributes:{service:"twitter"},title:"Twitter",icon:function(){return Object(X.createElement)(ee.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(X.createElement)(ee.Path,{d:"M22.23,5.924c-0.736,0.326-1.527,0.547-2.357,0.646c0.847-0.508,1.498-1.312,1.804-2.27 c-0.793,0.47-1.671,0.812-2.606,0.996C18.324,4.498,17.257,4,16.077,4c-2.266,0-4.103,1.837-4.103,4.103 c0,0.322,0.036,0.635,0.106,0.935C8.67,8.867,5.647,7.234,3.623,4.751C3.27,5.357,3.067,6.062,3.067,6.814 c0,1.424,0.724,2.679,1.825,3.415c-0.673-0.021-1.305-0.206-1.859-0.513c0,0.017,0,0.034,0,0.052c0,1.988,1.414,3.647,3.292,4.023 c-0.344,0.094-0.707,0.144-1.081,0.144c-0.264,0-0.521-0.026-0.772-0.074c0.522,1.63,2.038,2.816,3.833,2.85 c-1.404,1.1-3.174,1.756-5.096,1.756c-0.331,0-0.658-0.019-0.979-0.057c1.816,1.164,3.973,1.843,6.29,1.843 c7.547,0,11.675-6.252,11.675-11.675c0-0.178-0.004-0.355-0.012-0.531C20.985,7.47,21.68,6.747,22.23,5.924z"}))}},{name:"vimeo",attributes:{service:"vimeo"},title:"Vimeo",icon:function(){return Object(X.createElement)(ee.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(X.createElement)(ee.Path,{d:"M22.396,7.164c-0.093,2.026-1.507,4.799-4.245,8.32C15.322,19.161,12.928,21,10.97,21c-1.214,0-2.24-1.119-3.079-3.359 c-0.56-2.053-1.119-4.106-1.68-6.159C5.588,9.243,4.921,8.122,4.206,8.122c-0.156,0-0.701,0.328-1.634,0.98L1.594,7.841 c1.027-0.902,2.04-1.805,3.037-2.708C6.001,3.95,7.03,3.327,7.715,3.264c1.619-0.156,2.616,0.951,2.99,3.321 c0.404,2.557,0.685,4.147,0.841,4.769c0.467,2.121,0.981,3.181,1.542,3.181c0.435,0,1.09-0.688,1.963-2.065 c0.871-1.376,1.338-2.422,1.401-3.142c0.125-1.187-0.343-1.782-1.401-1.782c-0.498,0-1.012,0.115-1.541,0.341 c1.023-3.35,2.977-4.977,5.862-4.884C21.511,3.066,22.52,4.453,22.396,7.164z"}))}},{name:"vk",attributes:{service:"vk"},title:"VK",icon:function(){return Object(X.createElement)(ee.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(X.createElement)(ee.Path,{d:"M22,7.1c0.2,0.4-0.4,1.5-1.6,3.1c-0.2,0.2-0.4,0.5-0.7,0.9c-0.5,0.7-0.9,1.1-0.9,1.4c-0.1,0.3-0.1,0.6,0.1,0.8 c0.1,0.1,0.4,0.4,0.8,0.9h0l0,0c1,0.9,1.6,1.7,2,2.3c0,0,0,0.1,0.1,0.1c0,0.1,0,0.1,0.1,0.3c0,0.1,0,0.2,0,0.4 c0,0.1-0.1,0.2-0.3,0.3c-0.1,0.1-0.4,0.1-0.6,0.1l-2.7,0c-0.2,0-0.4,0-0.6-0.1c-0.2-0.1-0.4-0.1-0.5-0.2l-0.2-0.1 c-0.2-0.1-0.5-0.4-0.7-0.7s-0.5-0.6-0.7-0.8c-0.2-0.2-0.4-0.4-0.6-0.6C14.8,15,14.6,15,14.4,15c0,0,0,0-0.1,0c0,0-0.1,0.1-0.2,0.2 c-0.1,0.1-0.2,0.2-0.2,0.3c-0.1,0.1-0.1,0.3-0.2,0.5c-0.1,0.2-0.1,0.5-0.1,0.8c0,0.1,0,0.2,0,0.3c0,0.1-0.1,0.2-0.1,0.2l0,0.1 c-0.1,0.1-0.3,0.2-0.6,0.2h-1.2c-0.5,0-1,0-1.5-0.2c-0.5-0.1-1-0.3-1.4-0.6s-0.7-0.5-1.1-0.7s-0.6-0.4-0.7-0.6l-0.3-0.3 c-0.1-0.1-0.2-0.2-0.3-0.3s-0.4-0.5-0.7-0.9s-0.7-1-1.1-1.6c-0.4-0.6-0.8-1.3-1.3-2.2C2.9,9.4,2.5,8.5,2.1,7.5C2,7.4,2,7.3,2,7.2 c0-0.1,0-0.1,0-0.2l0-0.1c0.1-0.1,0.3-0.2,0.6-0.2l2.9,0c0.1,0,0.2,0,0.2,0.1S5.9,6.9,5.9,7L6,7c0.1,0.1,0.2,0.2,0.3,0.3 C6.4,7.7,6.5,8,6.7,8.4C6.9,8.8,7,9,7.1,9.2l0.2,0.3c0.2,0.4,0.4,0.8,0.6,1.1c0.2,0.3,0.4,0.5,0.5,0.7s0.3,0.3,0.4,0.4 c0.1,0.1,0.3,0.1,0.4,0.1c0.1,0,0.2,0,0.3-0.1c0,0,0,0,0.1-0.1c0,0,0.1-0.1,0.1-0.2c0.1-0.1,0.1-0.3,0.1-0.5c0-0.2,0.1-0.5,0.1-0.8 c0-0.4,0-0.8,0-1.3c0-0.3,0-0.5-0.1-0.8c0-0.2-0.1-0.4-0.1-0.5L9.6,7.6C9.4,7.3,9.1,7.2,8.7,7.1C8.6,7.1,8.6,7,8.7,6.9 C8.9,6.7,9,6.6,9.1,6.5c0.4-0.2,1.2-0.3,2.5-0.3c0.6,0,1,0.1,1.4,0.1c0.1,0,0.3,0.1,0.3,0.1c0.1,0.1,0.2,0.1,0.2,0.3 c0,0.1,0.1,0.2,0.1,0.3s0,0.3,0,0.5c0,0.2,0,0.4,0,0.6c0,0.2,0,0.4,0,0.7c0,0.3,0,0.6,0,0.9c0,0.1,0,0.2,0,0.4c0,0.2,0,0.4,0,0.5 c0,0.1,0,0.3,0,0.4s0.1,0.3,0.1,0.4c0.1,0.1,0.1,0.2,0.2,0.3c0.1,0,0.1,0,0.2,0c0.1,0,0.2,0,0.3-0.1c0.1-0.1,0.2-0.2,0.4-0.4 s0.3-0.4,0.5-0.7c0.2-0.3,0.5-0.7,0.7-1.1c0.4-0.7,0.8-1.5,1.1-2.3c0-0.1,0.1-0.1,0.1-0.2c0-0.1,0.1-0.1,0.1-0.1l0,0l0.1,0 c0,0,0,0,0.1,0s0.2,0,0.2,0l3,0c0.3,0,0.5,0,0.7,0S21.9,7,21.9,7L22,7.1z"}))}},{name:"yelp",attributes:{service:"yelp"},title:"Yelp",icon:function(){return Object(X.createElement)(ee.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(X.createElement)(ee.Path,{d:"M12.271,16.718v1.417q-.011,3.257-.067,3.4a.707.707,0,0,1-.569.446,4.637,4.637,0,0,1-2.024-.424A4.609,4.609,0,0,1,7.8,20.565a.844.844,0,0,1-.19-.4.692.692,0,0,1,.044-.29,3.181,3.181,0,0,1,.379-.524q.335-.412,2.019-2.409.011,0,.669-.781a.757.757,0,0,1,.44-.274.965.965,0,0,1,.552.039.945.945,0,0,1,.418.324.732.732,0,0,1,.139.468Zm-1.662-2.8a.783.783,0,0,1-.58.781l-1.339.435q-3.067.981-3.257.981a.711.711,0,0,1-.6-.4,2.636,2.636,0,0,1-.19-.836,9.134,9.134,0,0,1,.011-1.857,3.559,3.559,0,0,1,.335-1.389.659.659,0,0,1,.625-.357,22.629,22.629,0,0,1,2.253.859q.781.324,1.283.524l.937.379a.771.771,0,0,1,.4.34A.982.982,0,0,1,10.609,13.917Zm9.213,3.313a4.467,4.467,0,0,1-1.021,1.8,4.559,4.559,0,0,1-1.512,1.417.671.671,0,0,1-.7-.078q-.156-.112-2.052-3.2l-.524-.859a.761.761,0,0,1-.128-.513.957.957,0,0,1,.217-.513.774.774,0,0,1,.926-.29q.011.011,1.327.446,2.264.736,2.7.887a2.082,2.082,0,0,1,.524.229.673.673,0,0,1,.245.68Zm-7.5-7.049q.056,1.137-.6,1.361-.647.19-1.272-.792L6.237,4.08a.7.7,0,0,1,.212-.691,5.788,5.788,0,0,1,2.314-1,5.928,5.928,0,0,1,2.5-.352.681.681,0,0,1,.547.5q.034.2.245,3.407T12.327,10.181Zm7.384,1.2a.679.679,0,0,1-.29.658q-.167.112-3.67.959-.747.167-1.015.257l.011-.022a.769.769,0,0,1-.513-.044.914.914,0,0,1-.413-.357.786.786,0,0,1,0-.971q.011-.011.836-1.137,1.394-1.908,1.673-2.275a2.423,2.423,0,0,1,.379-.435A.7.7,0,0,1,17.435,8a4.482,4.482,0,0,1,1.372,1.489,4.81,4.81,0,0,1,.9,1.868v.034Z"}))}},{name:"youtube",attributes:{service:"youtube"},title:"YouTube",icon:function(){return Object(X.createElement)(ee.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(X.createElement)(ee.Path,{d:"M21.8,8.001c0,0-0.195-1.378-0.795-1.985c-0.76-0.797-1.613-0.801-2.004-0.847c-2.799-0.202-6.997-0.202-6.997-0.202 h-0.009c0,0-4.198,0-6.997,0.202C4.608,5.216,3.756,5.22,2.995,6.016C2.395,6.623,2.2,8.001,2.2,8.001S2,9.62,2,11.238v1.517 c0,1.618,0.2,3.237,0.2,3.237s0.195,1.378,0.795,1.985c0.761,0.797,1.76,0.771,2.205,0.855c1.6,0.153,6.8,0.201,6.8,0.201 s4.203-0.006,7.001-0.209c0.391-0.047,1.243-0.051,2.004-0.847c0.6-0.607,0.795-1.985,0.795-1.985s0.2-1.618,0.2-3.237v-1.517 C22,9.62,21.8,8.001,21.8,8.001z M9.935,14.594l-0.001-5.62l5.404,2.82L9.935,14.594z"}))}}],Zu=function(e){var t,r,n=e.attributes,c=e.setAttributes,o=e.isSelected,a=n.url,i=n.service,l=n.label,s=Object(X.useState)(!1),u=Object(be.a)(s,2),b=u[0],m=u[1],d=ne()("wp-social-link","wp-social-link-"+i,{"wp-social-link__is-incomplete":!a}),p=(t=i,(r=Object(J.find)(qu,{name:t}))?r.icon:Wu),g=function(e){var t=Object(J.find)(qu,{name:e});return t?t.title:Object(Q.__)("Social Icon")}(i),h=Object(K.useBlockProps)({className:d});return Object(X.createElement)(X.Fragment,null,Object(X.createElement)(K.InspectorControls,null,Object(X.createElement)(me.PanelBody,{title:Object(Q.sprintf)(Object(Q.__)("%s label"),g),initialOpen:!1},Object(X.createElement)(me.PanelRow,null,Object(X.createElement)(me.TextControl,{label:Object(Q.__)("Link label"),help:Object(Q.__)("Briefly describe the link to help screen reader users."),value:l,onChange:function(e){return c({label:e})}})))),Object(X.createElement)("li",h,Object(X.createElement)(me.Button,{onClick:function(){return m(!0)}},Object(X.createElement)(p,null),o&&b&&Object(X.createElement)(K.URLPopover,{onClose:function(){return m(!1)}},Object(X.createElement)("form",{className:"block-editor-url-popover__link-editor",onSubmit:function(e){e.preventDefault(),m(!1)}},Object(X.createElement)("div",{className:"block-editor-url-input"},Object(X.createElement)(K.URLInput,{value:a,onChange:function(e){return c({url:e})},placeholder:Object(Q.__)("Enter address"),disableSuggestions:!0})),Object(X.createElement)(me.Button,{icon:Uu.a,label:Object(Q.__)("Apply"),type:"submit"}))))))},$u={apiVersion:2,name:"core/social-link",category:"widgets",parent:["core/social-links"],attributes:{url:{type:"string"},service:{type:"string"},label:{type:"string"}},usesContext:["openInNewTab"],supports:{reusable:!1,html:!1}},Ku=$u.name,Yu={title:Object(Q.__)("Social Icon"),icon:Hu,edit:Zu,description:Object(Q.__)("Display an icon linking to a social media profile or website."),variations:qu},Ju=function(e){if(e){var t=e.metadata,r=e.settings,n=e.name;t&&Object(Y.unstable__bootstrapServerSideBlockDefinitions)(Object(Z.a)({},n,t)),Object(Y.registerBlockType)(n,r)}},Qu=function(){return[n,c,o,i,k,a,R,l,s,u,b,m,d,p,g,h,f,O,v,N,window.wp&&window.wp.oldEditor?G:null,j,y,_,w,E,C,x,S,P,T,z,M,B,U,W,V,A,H,F,L,I,D]},Xu=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Qu();e.forEach(Ju),Object(Y.setDefaultBlockName)(ye),window.wp&&window.wp.oldEditor&&Object(Y.setFreeformContentHandlerName)(Vu),Object(Y.setUnregisteredTypeHandlerName)(Ni),Object(Y.setGroupingBlockName)(Gl)},eb=void 0},47:function(e,t){!function(){e.exports=this.wp.apiFetch}()},5:function(e,t,r){"use strict";function n(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}r.d(t,"a",(function(){return n}))},6:function(e,t){!function(){e.exports=this.wp.blockEditor}()},60:function(e,t,r){e.exports=function(e,t){var r,n,c=0;function o(){var o,a,i=r,l=arguments.length;e:for(;i;){if(i.args.length===arguments.length){for(a=0;a1&&(r-=1),r<1/6?e+6*(t-e)*r:r<.5?t:r<2/3?e+(t-e)*(2/3-r)*6:e}if(e=N(e,360),t=N(t,100),r=N(r,100),0===t)n=c=o=r;else{var i=r<.5?r*(1+t):r+t-r*t,l=2*r-i;n=a(l,i,e+1/3),c=a(l,i,e),o=a(l,i,e-1/3)}return{r:255*n,g:255*c,b:255*o}}(e.h,n,l),b=!0,m="hsl"),e.hasOwnProperty("a")&&(r=e.a));var d,p,g;return r=z(r),{ok:b,format:e.format||m,r:s(255,u(t.r,0)),g:s(255,u(t.g,0)),b:s(255,u(t.b,0)),a:r}}(e);this._originalInput=e,this._r=r.r,this._g=r.g,this._b=r.b,this._a=r.a,this._roundA=l(100*this._a)/100,this._format=t.format||r.format,this._gradientType=t.gradientType,this._r<1&&(this._r=l(this._r)),this._g<1&&(this._g=l(this._g)),this._b<1&&(this._b=l(this._b)),this._ok=r.ok,this._tc_id=i++}function d(e,t,r){e=N(e,255),t=N(t,255),r=N(r,255);var n,c,o=u(e,t,r),a=s(e,t,r),i=(o+a)/2;if(o==a)n=c=0;else{var l=o-a;switch(c=i>.5?l/(2-o-a):l/(o+a),o){case e:n=(t-r)/l+(t>1)+720)%360;--t;)n.h=(n.h+c)%360,o.push(m(n));return o}function P(e,t){t=t||6;for(var r=m(e).toHsv(),n=r.h,c=r.s,o=r.v,a=[],i=1/t;t--;)a.push(m({h:n,s:c,v:o})),o=(o+i)%1;return a}m.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},getLuminance:function(){var e,t,r,n=this.toRgb();return e=n.r/255,t=n.g/255,r=n.b/255,.2126*(e<=.03928?e/12.92:c.pow((e+.055)/1.055,2.4))+.7152*(t<=.03928?t/12.92:c.pow((t+.055)/1.055,2.4))+.0722*(r<=.03928?r/12.92:c.pow((r+.055)/1.055,2.4))},setAlpha:function(e){return this._a=z(e),this._roundA=l(100*this._a)/100,this},toHsv:function(){var e=p(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=p(this._r,this._g,this._b),t=l(360*e.h),r=l(100*e.s),n=l(100*e.v);return 1==this._a?"hsv("+t+", "+r+"%, "+n+"%)":"hsva("+t+", "+r+"%, "+n+"%, "+this._roundA+")"},toHsl:function(){var e=d(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=d(this._r,this._g,this._b),t=l(360*e.h),r=l(100*e.s),n=l(100*e.l);return 1==this._a?"hsl("+t+", "+r+"%, "+n+"%)":"hsla("+t+", "+r+"%, "+n+"%, "+this._roundA+")"},toHex:function(e){return g(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return function(e,t,r,n,c){var o=[V(l(e).toString(16)),V(l(t).toString(16)),V(l(r).toString(16)),V(H(n))];if(c&&o[0].charAt(0)==o[0].charAt(1)&&o[1].charAt(0)==o[1].charAt(1)&&o[2].charAt(0)==o[2].charAt(1)&&o[3].charAt(0)==o[3].charAt(1))return o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0)+o[3].charAt(0);return o.join("")}(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:l(this._r),g:l(this._g),b:l(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+l(this._r)+", "+l(this._g)+", "+l(this._b)+")":"rgba("+l(this._r)+", "+l(this._g)+", "+l(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:l(100*N(this._r,255))+"%",g:l(100*N(this._g,255))+"%",b:l(100*N(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+l(100*N(this._r,255))+"%, "+l(100*N(this._g,255))+"%, "+l(100*N(this._b,255))+"%)":"rgba("+l(100*N(this._r,255))+"%, "+l(100*N(this._g,255))+"%, "+l(100*N(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(T[g(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var t="#"+h(this._r,this._g,this._b,this._a),r=t,n=this._gradientType?"GradientType = 1, ":"";if(e){var c=m(e);r="#"+h(c._r,c._g,c._b,c._a)}return"progid:DXImageTransform.Microsoft.gradient("+n+"startColorstr="+t+",endColorstr="+r+")"},toString:function(e){var t=!!e;e=e||this._format;var r=!1,n=this._a<1&&this._a>=0;return t||!n||"hex"!==e&&"hex6"!==e&&"hex3"!==e&&"hex4"!==e&&"hex8"!==e&&"name"!==e?("rgb"===e&&(r=this.toRgbString()),"prgb"===e&&(r=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(r=this.toHexString()),"hex3"===e&&(r=this.toHexString(!0)),"hex4"===e&&(r=this.toHex8String(!0)),"hex8"===e&&(r=this.toHex8String()),"name"===e&&(r=this.toName()),"hsl"===e&&(r=this.toHslString()),"hsv"===e&&(r=this.toHsvString()),r||this.toHexString()):"name"===e&&0===this._a?this.toName():this.toRgbString()},clone:function(){return m(this.toString())},_applyModification:function(e,t){var r=e.apply(null,[this].concat([].slice.call(t)));return this._r=r._r,this._g=r._g,this._b=r._b,this.setAlpha(r._a),this},lighten:function(){return this._applyModification(j,arguments)},brighten:function(){return this._applyModification(y,arguments)},darken:function(){return this._applyModification(_,arguments)},desaturate:function(){return this._applyModification(f,arguments)},saturate:function(){return this._applyModification(O,arguments)},greyscale:function(){return this._applyModification(v,arguments)},spin:function(){return this._applyModification(w,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(S,arguments)},complement:function(){return this._applyCombination(k,arguments)},monochromatic:function(){return this._applyCombination(P,arguments)},splitcomplement:function(){return this._applyCombination(x,arguments)},triad:function(){return this._applyCombination(E,arguments)},tetrad:function(){return this._applyCombination(C,arguments)}},m.fromRatio=function(e,t){if("object"==typeof e){var r={};for(var n in e)e.hasOwnProperty(n)&&(r[n]="a"===n?e[n]:A(e[n]));e=r}return m(e,t)},m.equals=function(e,t){return!(!e||!t)&&m(e).toRgbString()==m(t).toRgbString()},m.random=function(){return m.fromRatio({r:b(),g:b(),b:b()})},m.mix=function(e,t,r){r=0===r?0:r||50;var n=m(e).toRgb(),c=m(t).toRgb(),o=r/100;return m({r:(c.r-n.r)*o+n.r,g:(c.g-n.g)*o+n.g,b:(c.b-n.b)*o+n.b,a:(c.a-n.a)*o+n.a})},m.readability=function(e,t){var r=m(e),n=m(t);return(c.max(r.getLuminance(),n.getLuminance())+.05)/(c.min(r.getLuminance(),n.getLuminance())+.05)},m.isReadable=function(e,t,r){var n,c,o=m.readability(e,t);switch(c=!1,(n=function(e){var t,r;t=((e=e||{level:"AA",size:"small"}).level||"AA").toUpperCase(),r=(e.size||"small").toLowerCase(),"AA"!==t&&"AAA"!==t&&(t="AA");"small"!==r&&"large"!==r&&(r="small");return{level:t,size:r}}(r)).level+n.size){case"AAsmall":case"AAAlarge":c=o>=4.5;break;case"AAlarge":c=o>=3;break;case"AAAsmall":c=o>=7}return c},m.mostReadable=function(e,t,r){var n,c,o,a,i=null,l=0;c=(r=r||{}).includeFallbackColors,o=r.level,a=r.size;for(var s=0;sl&&(l=n,i=m(t[s]));return m.isReadable(e,i,{level:o,size:a})||!c?i:(r.includeFallbackColors=!1,m.mostReadable(e,["#fff","#000"],r))};var B=m.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},T=m.hexNames=function(e){var t={};for(var r in e)e.hasOwnProperty(r)&&(t[e[r]]=r);return t}(B);function z(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function N(e,t){(function(e){return"string"==typeof e&&-1!=e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var r=function(e){return"string"==typeof e&&-1!=e.indexOf("%")}(e);return e=s(t,u(0,parseFloat(e))),r&&(e=parseInt(e*t,10)/100),c.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function M(e){return s(1,u(0,e))}function R(e){return parseInt(e,16)}function V(e){return 1==e.length?"0"+e:""+e}function A(e){return e<=1&&(e=100*e+"%"),e}function H(e){return c.round(255*parseFloat(e)).toString(16)}function L(e){return R(e)/255}var I,D,F,G=(D="[\\s|\\(]+("+(I="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+I+")[,|\\s]+("+I+")\\s*\\)?",F="[\\s|\\(]+("+I+")[,|\\s]+("+I+")[,|\\s]+("+I+")[,|\\s]+("+I+")\\s*\\)?",{CSS_UNIT:new RegExp(I),rgb:new RegExp("rgb"+D),rgba:new RegExp("rgba"+F),hsl:new RegExp("hsl"+D),hsla:new RegExp("hsla"+F),hsv:new RegExp("hsv"+D),hsva:new RegExp("hsva"+F),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function U(e){return!!G.CSS_UNIT.exec(e)}e.exports?e.exports=m:void 0===(n=function(){return m}.call(t,r,t,e))||(e.exports=n)}(Math)},7:function(e,t){!function(){e.exports=this.wp.primitives}()},75:function(e,t){!function(){e.exports=this.wp.date}()},8:function(e,t,r){"use strict";function n(){return(n=Object.assign||function(e){for(var t=1;tu*c?{width:u*c,height:u}:{width:s,height:s/c}}function Xe(e,t,r,n,c){void 0===c&&(c=0);var o=it(t.width,t.height,c),a=o.width,i=o.height;return{x:Je(e.x,a,r.width,n),y:Je(e.y,i,r.height,n)}}function Je(e,t,r,n){var c=t*n/2-r/2;return Math.min(c,Math.max(e,-c))}function Qe(e,t){return Math.sqrt(Math.pow(e.y-t.y,2)+Math.pow(e.x-t.x,2))}function et(e,t){return 180*Math.atan2(t.y-e.y,t.x-e.x)/Math.PI}function tt(e,t,r,n,c,o,a){void 0===o&&(o=0),void 0===a&&(a=!0);var i=a&&0===o?rt:nt,l={x:i(100,((t.width-r.width/c)/2-e.x/c)/t.width*100),y:i(100,((t.height-r.height/c)/2-e.y/c)/t.height*100),width:i(100,r.width/t.width*100/c),height:i(100,r.height/t.height*100/c)},s=Math.round(i(t.naturalWidth,l.width*t.naturalWidth/100)),u=Math.round(i(t.naturalHeight,l.height*t.naturalHeight/100)),b=t.naturalWidth>=t.naturalHeight*n?{width:Math.round(u*n),height:u}:{width:s,height:Math.round(s/n)};return{croppedAreaPercentages:l,croppedAreaPixels:We(We({},b),{x:Math.round(i(t.naturalWidth-b.width,l.x*t.naturalWidth/100)),y:Math.round(i(t.naturalHeight-b.height,l.y*t.naturalHeight/100))})}}function rt(e,t){return Math.min(e,Math.max(0,t))}function nt(e,t){return t}function ct(e,t,r){var n=t.width/t.naturalWidth,c=function(e,t,r){var n=t.width/t.naturalWidth;if(r)return r.height>r.width?r.height/n/e.height:r.width/n/e.width;var c=e.width/e.height;return t.naturalWidth>=t.naturalHeight*c?t.naturalHeight/e.height:t.naturalWidth/e.width}(e,t,r),o=n*c;return{crop:{x:((t.naturalWidth-e.width)/2-e.x)*o,y:((t.naturalHeight-e.height)/2-e.y)*o},zoom:c}}function ot(e,t){return{x:(t.x+e.x)/2,y:(t.y+e.y)/2}}function at(e,t,r,n,c){var o=Math.cos,a=Math.sin,i=c*Math.PI/180;return[(e-r)*o(i)-(t-n)*a(i)+r,(e-r)*a(i)+(t-n)*o(i)+n]}function it(e,t,r){var n=e/2,c=t/2,o=[at(0,0,n,c,r),at(e,0,n,c,r),at(e,t,n,c,r),at(0,t,n,c,r)],a=Math.min.apply(Math,o.map((function(e){return e[0]}))),i=Math.max.apply(Math,o.map((function(e){return e[0]}))),l=Math.min.apply(Math,o.map((function(e){return e[1]})));return{width:i-a,height:Math.max.apply(Math,o.map((function(e){return e[1]})))-l}}function lt(){for(var e=[],t=0;t0})).join(" ").trim()}var st=function(e){function t(){var r=null!==e&&e.apply(this,arguments)||this;return r.imageRef=null,r.videoRef=null,r.containerRef=null,r.styleRef=null,r.containerRect=null,r.mediaSize={width:0,height:0,naturalWidth:0,naturalHeight:0},r.dragStartPosition={x:0,y:0},r.dragStartCrop={x:0,y:0},r.lastPinchDistance=0,r.lastPinchRotation=0,r.rafDragTimeout=null,r.rafPinchTimeout=null,r.wheelTimer=null,r.state={cropSize:null,hasWheelJustStarted:!1},r.preventZoomSafari=function(e){return e.preventDefault()},r.cleanEvents=function(){document.removeEventListener("mousemove",r.onMouseMove),document.removeEventListener("mouseup",r.onDragStopped),document.removeEventListener("touchmove",r.onTouchMove),document.removeEventListener("touchend",r.onDragStopped)},r.clearScrollEvent=function(){r.containerRef&&r.containerRef.removeEventListener("wheel",r.onWheel),r.wheelTimer&&clearTimeout(r.wheelTimer)},r.onMediaLoad=function(){r.computeSizes(),r.emitCropData(),r.setInitialCrop(),r.props.onMediaLoaded&&r.props.onMediaLoaded(r.mediaSize)},r.setInitialCrop=function(){var e=r.props,t=e.initialCroppedAreaPixels,n=e.cropSize;if(t){var c=ct(t,r.mediaSize,n),o=c.crop,a=c.zoom;r.props.onCropChange(o),r.props.onZoomChange&&r.props.onZoomChange(a)}},r.computeSizes=function(){var e,t,n,c,o,a,i=r.imageRef||r.videoRef;if(i&&r.containerRef){r.containerRect=r.containerRef.getBoundingClientRect(),r.mediaSize={width:i.offsetWidth,height:i.offsetHeight,naturalWidth:(null===(e=r.imageRef)||void 0===e?void 0:e.naturalWidth)||(null===(t=r.videoRef)||void 0===t?void 0:t.videoWidth)||0,naturalHeight:(null===(n=r.imageRef)||void 0===n?void 0:n.naturalHeight)||(null===(c=r.videoRef)||void 0===c?void 0:c.videoHeight)||0};var l=r.props.cropSize?r.props.cropSize:Ke(i.offsetWidth,i.offsetHeight,r.containerRect.width,r.containerRect.height,r.props.aspect,r.props.rotation);(null===(o=r.state.cropSize)||void 0===o?void 0:o.height)===l.height&&(null===(a=r.state.cropSize)||void 0===a?void 0:a.width)===l.width||r.props.onCropSizeChange&&r.props.onCropSizeChange(l),r.setState({cropSize:l},r.recomputeCropPosition)}},r.onMouseDown=function(e){e.preventDefault(),document.addEventListener("mousemove",r.onMouseMove),document.addEventListener("mouseup",r.onDragStopped),r.onDragStart(t.getMousePoint(e))},r.onMouseMove=function(e){return r.onDrag(t.getMousePoint(e))},r.onTouchStart=function(e){e.preventDefault(),document.addEventListener("touchmove",r.onTouchMove,{passive:!1}),document.addEventListener("touchend",r.onDragStopped),2===e.touches.length?r.onPinchStart(e):1===e.touches.length&&r.onDragStart(t.getTouchPoint(e.touches[0]))},r.onTouchMove=function(e){e.preventDefault(),2===e.touches.length?r.onPinchMove(e):1===e.touches.length&&r.onDrag(t.getTouchPoint(e.touches[0]))},r.onDragStart=function(e){var t,n,c=e.x,o=e.y;r.dragStartPosition={x:c,y:o},r.dragStartCrop=We({},r.props.crop),null===(n=(t=r.props).onInteractionStart)||void 0===n||n.call(t)},r.onDrag=function(e){var t=e.x,n=e.y;r.rafDragTimeout&&window.cancelAnimationFrame(r.rafDragTimeout),r.rafDragTimeout=window.requestAnimationFrame((function(){if(r.state.cropSize&&void 0!==t&&void 0!==n){var e=t-r.dragStartPosition.x,c=n-r.dragStartPosition.y,o={x:r.dragStartCrop.x+e,y:r.dragStartCrop.y+c},a=r.props.restrictPosition?Xe(o,r.mediaSize,r.state.cropSize,r.props.zoom,r.props.rotation):o;r.props.onCropChange(a)}}))},r.onDragStopped=function(){var e,t;r.cleanEvents(),r.emitCropData(),null===(t=(e=r.props).onInteractionEnd)||void 0===t||t.call(e)},r.onWheel=function(e){e.preventDefault();var n=t.getMousePoint(e),c=Ye()(e).pixelY,o=r.props.zoom-c*r.props.zoomSpeed/200;r.setNewZoom(o,n),r.state.hasWheelJustStarted||r.setState({hasWheelJustStarted:!0},(function(){var e,t;return null===(t=(e=r.props).onInteractionStart)||void 0===t?void 0:t.call(e)})),r.wheelTimer&&clearTimeout(r.wheelTimer),r.wheelTimer=window.setTimeout((function(){return r.setState({hasWheelJustStarted:!1},(function(){var e,t;return null===(t=(e=r.props).onInteractionEnd)||void 0===t?void 0:t.call(e)}))}),250)},r.getPointOnContainer=function(e){var t=e.x,n=e.y;if(!r.containerRect)throw new Error("The Cropper is not mounted");return{x:r.containerRect.width/2-(t-r.containerRect.left),y:r.containerRect.height/2-(n-r.containerRect.top)}},r.getPointOnMedia=function(e){var t=e.x,n=e.y,c=r.props,o=c.crop,a=c.zoom;return{x:(t+o.x)/a,y:(n+o.y)/a}},r.setNewZoom=function(e,t){if(r.state.cropSize&&r.props.onZoomChange){var n=r.getPointOnContainer(t),c=r.getPointOnMedia(n),o=Math.min(r.props.maxZoom,Math.max(e,r.props.minZoom)),a={x:c.x*o-n.x,y:c.y*o-n.y},i=r.props.restrictPosition?Xe(a,r.mediaSize,r.state.cropSize,o,r.props.rotation):a;r.props.onCropChange(i),r.props.onZoomChange(o)}},r.getCropData=function(){return r.state.cropSize?tt(r.props.restrictPosition?Xe(r.props.crop,r.mediaSize,r.state.cropSize,r.props.zoom,r.props.rotation):r.props.crop,r.mediaSize,r.state.cropSize,r.getAspect(),r.props.zoom,r.props.rotation,r.props.restrictPosition):null},r.emitCropData=function(){var e=r.getCropData();if(e){var t=e.croppedAreaPercentages,n=e.croppedAreaPixels;r.props.onCropComplete&&r.props.onCropComplete(t,n),r.props.onCropAreaChange&&r.props.onCropAreaChange(t,n)}},r.emitCropAreaChange=function(){var e=r.getCropData();if(e){var t=e.croppedAreaPercentages,n=e.croppedAreaPixels;r.props.onCropAreaChange&&r.props.onCropAreaChange(t,n)}},r.recomputeCropPosition=function(){if(r.state.cropSize){var e=r.props.restrictPosition?Xe(r.props.crop,r.mediaSize,r.state.cropSize,r.props.zoom,r.props.rotation):r.props.crop;r.props.onCropChange(e),r.emitCropData()}},r}return function(e,t){function r(){this.constructor=e}Ue(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}(t,e),t.prototype.componentDidMount=function(){window.addEventListener("resize",this.computeSizes),this.containerRef&&(this.props.zoomWithScroll&&this.containerRef.addEventListener("wheel",this.onWheel,{passive:!1}),this.containerRef.addEventListener("gesturestart",this.preventZoomSafari),this.containerRef.addEventListener("gesturechange",this.preventZoomSafari)),this.props.disableAutomaticStylesInjection||(this.styleRef=document.createElement("style"),this.styleRef.setAttribute("type","text/css"),this.styleRef.innerHTML=".reactEasyCrop_Container {\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n overflow: hidden;\n user-select: none;\n touch-action: none;\n cursor: move;\n}\n\n.reactEasyCrop_Image,\n.reactEasyCrop_Video {\n max-width: 100%;\n max-height: 100%;\n margin: auto;\n position: absolute;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n will-change: transform; /* this improves performances and prevent painting issues on iOS Chrome */\n}\n\n.reactEasyCrop_CropArea {\n position: absolute;\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n border: 1px solid rgba(255, 255, 255, 0.5);\n box-sizing: border-box;\n box-shadow: 0 0 0 9999em;\n color: rgba(0, 0, 0, 0.5);\n overflow: hidden;\n}\n\n.reactEasyCrop_CropAreaRound {\n border-radius: 50%;\n}\n\n.reactEasyCrop_CropAreaGrid::before {\n content: ' ';\n box-sizing: border-box;\n position: absolute;\n border: 1px solid rgba(255, 255, 255, 0.5);\n top: 0;\n bottom: 0;\n left: 33.33%;\n right: 33.33%;\n border-top: 0;\n border-bottom: 0;\n}\n\n.reactEasyCrop_CropAreaGrid::after {\n content: ' ';\n box-sizing: border-box;\n position: absolute;\n border: 1px solid rgba(255, 255, 255, 0.5);\n top: 33.33%;\n bottom: 33.33%;\n left: 0;\n right: 0;\n border-left: 0;\n border-right: 0;\n}\n",document.head.appendChild(this.styleRef)),this.imageRef&&this.imageRef.complete&&this.onMediaLoad()},t.prototype.componentWillUnmount=function(){window.removeEventListener("resize",this.computeSizes),this.containerRef&&(this.containerRef.removeEventListener("gesturestart",this.preventZoomSafari),this.containerRef.removeEventListener("gesturechange",this.preventZoomSafari)),this.styleRef&&this.styleRef.remove(),this.cleanEvents(),this.props.zoomWithScroll&&this.clearScrollEvent()},t.prototype.componentDidUpdate=function(e){var t,r,n,c,o,a,i,l;e.rotation!==this.props.rotation?(this.computeSizes(),this.recomputeCropPosition()):e.aspect!==this.props.aspect?this.computeSizes():e.zoom!==this.props.zoom?this.recomputeCropPosition():(null===(t=e.cropSize)||void 0===t?void 0:t.height)!==(null===(r=this.props.cropSize)||void 0===r?void 0:r.height)||(null===(n=e.cropSize)||void 0===n?void 0:n.width)!==(null===(c=this.props.cropSize)||void 0===c?void 0:c.width)?this.computeSizes():(null===(o=e.crop)||void 0===o?void 0:o.x)===(null===(a=this.props.crop)||void 0===a?void 0:a.x)&&(null===(i=e.crop)||void 0===i?void 0:i.y)===(null===(l=this.props.crop)||void 0===l?void 0:l.y)||this.emitCropAreaChange(),e.zoomWithScroll!==this.props.zoomWithScroll&&this.containerRef&&(this.props.zoomWithScroll?this.containerRef.addEventListener("wheel",this.onWheel,{passive:!1}):this.clearScrollEvent())},t.prototype.getAspect=function(){var e=this.props,t=e.cropSize,r=e.aspect;return t?t.width/t.height:r},t.prototype.onPinchStart=function(e){var r=t.getTouchPoint(e.touches[0]),n=t.getTouchPoint(e.touches[1]);this.lastPinchDistance=Qe(r,n),this.lastPinchRotation=et(r,n),this.onDragStart(ot(r,n))},t.prototype.onPinchMove=function(e){var r=this,n=t.getTouchPoint(e.touches[0]),c=t.getTouchPoint(e.touches[1]),o=ot(n,c);this.onDrag(o),this.rafPinchTimeout&&window.cancelAnimationFrame(this.rafPinchTimeout),this.rafPinchTimeout=window.requestAnimationFrame((function(){var e=Qe(n,c),t=r.props.zoom*(e/r.lastPinchDistance);r.setNewZoom(t,o),r.lastPinchDistance=e;var a=et(n,c),i=r.props.rotation+(a-r.lastPinchRotation);r.props.onRotationChange&&r.props.onRotationChange(i),r.lastPinchRotation=a}))},t.prototype.render=function(){var e=this,t=this.props,r=t.image,n=t.video,c=t.mediaProps,o=t.transform,a=t.crop,i=a.x,l=a.y,s=t.rotation,u=t.zoom,b=t.cropShape,m=t.showGrid,d=t.style,p=d.containerStyle,g=d.cropAreaStyle,h=d.mediaStyle,f=t.classes,O=f.containerClassName,v=f.cropAreaClassName,j=f.mediaClassName;return Ze.a.createElement("div",{onMouseDown:this.onMouseDown,onTouchStart:this.onTouchStart,ref:function(t){return e.containerRef=t},"data-testid":"container",style:p,className:lt("reactEasyCrop_Container",O)},r?Ze.a.createElement("img",We({alt:"",className:lt("reactEasyCrop_Image",j)},c,{src:r,ref:function(t){return e.imageRef=t},style:We(We({},h),{transform:o||"translate("+i+"px, "+l+"px) rotate("+s+"deg) scale("+u+")"}),onLoad:this.onMediaLoad})):n&&Ze.a.createElement("video",We({autoPlay:!0,loop:!0,muted:!0,className:lt("reactEasyCrop_Video",j)},c,{src:n,ref:function(t){return e.videoRef=t},onLoadedMetadata:this.onMediaLoad,style:We(We({},h),{transform:o||"translate("+i+"px, "+l+"px) rotate("+s+"deg) scale("+u+")"}),controls:!1})),this.state.cropSize&&Ze.a.createElement("div",{style:We(We({},g),{width:this.state.cropSize.width,height:this.state.cropSize.height}),"data-testid":"cropper",className:lt("reactEasyCrop_CropArea","round"===b&&"reactEasyCrop_CropAreaRound",m&&"reactEasyCrop_CropAreaGrid",v)}))},t.defaultProps={zoom:1,rotation:0,aspect:4/3,maxZoom:3,minZoom:1,cropShape:"rect",showGrid:!0,style:{},classes:{},mediaProps:{},zoomSpeed:1,restrictPosition:!0,zoomWithScroll:!0},t.getMousePoint=function(e){return{x:Number(e.clientX),y:Number(e.clientY)}},t.getTouchPoint=function(e){return{x:Number(e.clientX),y:Number(e.clientY)}},t}(Ze.a.Component),ut=r(161),bt=Object(Q.createElement)(ee.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(Q.createElement)(ee.Path,{d:"M18.5 5.5h-13c-1.1 0-2 .9-2 2v9c0 1.1.9 2 2 2h13c1.1 0 2-.9 2-2v-9c0-1.1-.9-2-2-2zm.5 11c0 .3-.2.5-.5.5h-13c-.3 0-.5-.2-.5-.5v-9c0-.3.2-.5.5-.5h13c.3 0 .5.2.5.5v9zM6.5 12H8v-2h2V8.5H6.5V12zm9.5 2h-2v1.5h3.5V12H16v2z"})),mt=r(307),dt=Object(Q.createElement)(ee.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(Q.createElement)(ee.Path,{d:"M15.1 4.8l-3-2.5V4c-4.4 0-8 3.6-8 8 0 3.7 2.5 6.9 6 7.7.3.1.6.1 1 .2l.2-1.5c-.4 0-.7-.1-1.1-.2l-.1.2v-.2c-2.6-.8-4.5-3.3-4.5-6.2 0-3.6 2.9-6.5 6.5-6.5v1.8l3-2.5zM20 11c-.2-1.4-.7-2.7-1.6-3.8l-1.2.8c.7.9 1.1 2 1.3 3.1L20 11zm-1.5 1.8c-.1.5-.2 1.1-.4 1.6s-.5 1-.8 1.5l1.2.9c.4-.5.8-1.1 1-1.8s.5-1.3.5-2l-1.5-.2zm-5.6 5.6l.2 1.5c1.4-.2 2.7-.7 3.8-1.6l-.9-1.1c-.9.7-2 1.1-3.1 1.2z"})),pt=r(47),gt=r.n(pt),ht={position:"bottom right",isAlternate:!0};function ft(e){var t=e.aspectRatios,r=e.isDisabled,n=e.label,c=e.onClick,o=e.value;return Object(Q.createElement)(me.MenuGroup,{label:n},t.map((function(e){var t=e.title,n=e.aspect;return Object(Q.createElement)(me.MenuItem,{key:n,disabled:r,onClick:function(){c(n)},role:"menuitemradio",isSelected:n===o,icon:n===o?ut.a:void 0},t)})))}function Ot(e){var t=e.toggleProps,r=e.isDisabled,n=e.onClick,c=e.value,o=e.defaultValue;return Object(Q.createElement)(me.DropdownMenu,{icon:bt,label:Object(J.__)("Aspect Ratio"),popoverProps:ht,toggleProps:t,className:"wp-block-image__aspect-ratio"},(function(e){var t=e.onClose;return Object(Q.createElement)(Q.Fragment,null,Object(Q.createElement)(ft,{isDisabled:r,onClick:function(e){n(e),t()},value:c,aspectRatios:[{title:Object(J.__)("Original"),aspect:o},{title:Object(J.__)("Square"),aspect:1}]}),Object(Q.createElement)(ft,{label:Object(J.__)("Landscape"),isDisabled:r,onClick:function(e){n(e),t()},value:c,aspectRatios:[{title:Object(J.__)("16:10"),aspect:1.6},{title:Object(J.__)("16:9"),aspect:16/9},{title:Object(J.__)("4:3"),aspect:4/3},{title:Object(J.__)("3:2"),aspect:1.5}]}),Object(Q.createElement)(ft,{label:Object(J.__)("Portrait"),isDisabled:r,onClick:function(e){n(e),t()},value:c,aspectRatios:[{title:Object(J.__)("10:16"),aspect:.625},{title:Object(J.__)("9:16"),aspect:9/16},{title:Object(J.__)("3:4"),aspect:3/4},{title:Object(J.__)("2:3"),aspect:2/3}]}))}))}function vt(e){var t=e.id,r=e.url,n=e.setAttributes,c=e.naturalWidth,o=e.naturalHeight,a=e.width,i=e.height,l=e.clientWidth,s=e.setIsEditingImage,u=Object(de.useDispatch)("core/notices").createErrorNotice,b=Object(Q.useState)(!1),m=Object(be.a)(b,2),d=m[0],p=m[1],g=Object(Q.useState)(null),h=Object(be.a)(g,2),f=h[0],O=h[1],v=Object(Q.useState)({x:0,y:0}),j=Object(be.a)(v,2),y=j[0],w=j[1],_=Object(Q.useState)(100),k=Object(be.a)(_,2),E=k[0],C=k[1],x=Object(Q.useState)(c/o),S=Object(be.a)(x,2),P=S[0],B=S[1],T=Object(Q.useState)(0),z=Object(be.a)(T,2),N=z[0],M=z[1],R=Object(Q.useState)(),V=Object(be.a)(R,2),A=V[0],H=V[1],L=a,I=i||l*o/c,D=c/o;return N%180==90&&(I=l*c/o,D=o/c),Object(Q.createElement)(Q.Fragment,null,Object(Q.createElement)("div",{className:ne()("wp-block-image__crop-area",{"is-applying":d}),style:{width:L,height:I}},Object(Q.createElement)(st,{image:A||r,disabled:d,minZoom:1,maxZoom:3,crop:y,zoom:E/100,aspect:P,onCropChange:w,onCropComplete:function(e){O(e)},onZoomChange:function(e){C(100*e)}}),d&&Object(Q.createElement)(me.Spinner,null)),Object(Q.createElement)(Y.BlockControls,null,Object(Q.createElement)(me.ToolbarGroup,null,Object(Q.createElement)(me.Dropdown,{contentClassName:"wp-block-image__zoom",popoverProps:ht,renderToggle:function(e){var t=e.isOpen,r=e.onToggle;return Object(Q.createElement)(me.ToolbarButton,{icon:mt.a,label:Object(J.__)("Zoom"),onClick:r,"aria-expanded":t,disabled:d})},renderContent:function(){return Object(Q.createElement)(me.RangeControl,{min:100,max:300,value:Math.round(E),onChange:C})}}),Object(Q.createElement)(me.ToolbarItem,null,(function(e){return Object(Q.createElement)(Ot,{toggleProps:e,isDisabled:d,onClick:B,value:P,defaultValue:c/o})}))),Object(Q.createElement)(me.ToolbarGroup,null,Object(Q.createElement)(me.ToolbarButton,{icon:dt,label:Object(J.__)("Rotate"),onClick:function(){var e=(N+90)%360;if(0===e)return H(),M(e),B(1/P),void w({x:-y.y*D,y:y.x*D});var t=new window.Image;t.src=r,t.onload=function(t){var r=document.createElement("canvas"),n=0,c=0;e%180?(r.width=t.target.height,r.height=t.target.width):(r.width=t.target.width,r.height=t.target.height),90!==e&&180!==e||(n=r.width),270!==e&&180!==e||(c=r.height);var o=r.getContext("2d");o.translate(n,c),o.rotate(e*Math.PI/180),o.drawImage(t.target,0,0),r.toBlob((function(t){H(URL.createObjectURL(t)),M(e),B(1/P),w({x:-y.y*D,y:y.x*D})}))}},disabled:d})),Object(Q.createElement)(me.ToolbarGroup,null,Object(Q.createElement)(me.ToolbarButton,{onClick:function(){p(!0);var e={};(f.width<99.9||f.height<99.9)&&(e=f),N>0&&(e.rotation=N),e.src=r,gt()({path:"/wp/v2/media/".concat(t,"/edit"),method:"POST",data:e}).then((function(e){n({id:e.id,url:e.source_url,height:i&&a?a/P:void 0})})).catch((function(e){u(Object(J.sprintf)(Object(J.__)("Could not edit image. %s"),e.message),{id:"image-editing-error",type:"snackbar"})})).finally((function(){p(!1),s(!1)}))},disabled:d},Object(J.__)("Apply")),Object(Q.createElement)(me.ToolbarButton,{onClick:function(){return s(!1)}},Object(J.__)("Cancel")))))}var jt=["image"];function yt(e){var t=e.attributes,r=t.url,n=void 0===r?"":r,c=t.alt,o=t.caption,a=t.align,i=t.id,l=t.href,s=t.rel,u=t.linkClass,b=t.linkDestination,m=t.title,d=t.width,p=t.height,g=t.linkTarget,h=t.sizeSlug,f=e.setAttributes,O=e.isSelected,v=e.insertBlocksAfter,j=e.onReplace,y=e.onSelectImage,w=e.onSelectURL,_=e.onUploadError,k=e.containerRef,E=Object(Q.useRef)(),C=Object(xe.usePrevious)(n),x=Object(de.useSelect)((function(e){var t=e("core").getMedia;return i&&O?t(i):null}),[i,O]),S=Object(de.useSelect)((function(e){var t=e("core/block-editor").getSettings;return Object(X.pick)(t(),["imageEditing","imageSizes","isRTL","maxWidth","mediaUpload"])})),P=S.imageEditing,B=S.imageSizes,T=S.isRTL,z=S.maxWidth,N=S.mediaUpload,M=Object(de.useDispatch)("core/block-editor").toggleSelection,R=Object(de.useDispatch)("core/notices"),V=R.createErrorNotice,A=R.createSuccessNotice,H=Object(xe.useViewportMatch)("medium"),L=Object(Q.useState)(!1),I=Object(be.a)(L,2),D=I[0],F=I[1],G=Object(X.includes)(["wide","full"],a),U=Object(Q.useState)({}),W=Object(be.a)(U,2),q=W[0],Z=q.naturalWidth,$=q.naturalHeight,ee=W[1],te=Object(Q.useState)(!1),re=Object(be.a)(te,2),ne=re[0],ce=re[1],oe=Object(Q.useState)(),ae=Object(be.a)(oe,2),ie=ae[0],le=ae[1],se=function(e,t){var r=Object(Q.useState)(),n=Object(be.a)(r,2),c=n[0],o=n[1];function a(){o(e.current.clientWidth)}return Object(Q.useEffect)(a,t),Object(Q.useEffect)((function(){var t=e.current.ownerDocument.defaultView;return t.addEventListener("resize",a),function(){t.removeEventListener("resize",a)}}),[]),c}(k,[a]),ue=!G&&H,pe=Object(X.map)(Object(X.filter)(B,(function(e){var t=e.slug;return Object(X.get)(x,["media_details","sizes",t,"source_url"])})),(function(e){var t=e.name;return{value:e.slug,label:t}}));Object(Q.useEffect)((function(){O||F(!1)}),[O]),Object(Q.useEffect)((function(){Et(i,n)&&O&&!ie&&window.fetch(n).then((function(e){return e.blob()})).then((function(e){return le(e)}))}),[i,n,O,ie]),Object(Q.useEffect)((function(){n&&!C&&O&&E.current.focus()}),[n,C]),Object(Q.useEffect)((function(){O||ce(!1)}),[O]);var ge,he=i&&Z&&$&&P,fe=Object(Q.createElement)(Q.Fragment,null,Object(Q.createElement)(Y.BlockControls,null,!ne&&Object(Q.createElement)(me.ToolbarGroup,null,Object(Q.createElement)(Y.__experimentalImageURLInputUI,{url:l||"",onChangeUrl:function(e){f(e)},linkDestination:b,mediaUrl:x&&x.source_url||n,mediaLink:x&&x.link,linkTarget:g,linkClass:u,rel:s})),he&&!ne&&Object(Q.createElement)(me.ToolbarGroup,null,Object(Q.createElement)(me.ToolbarButton,{onClick:function(){return ce(!0)},icon:Pe,label:Object(J.__)("Crop")})),ie&&Object(Q.createElement)(me.ToolbarGroup,null,Object(Q.createElement)(me.ToolbarButton,{onClick:function(){N({filesList:[ie],onFileChange:function(e){var t=Object(be.a)(e,1)[0];y(t),Object(Ce.isBlobURL)(t.url)||(le(),A(Object(J.__)("Image uploaded."),{type:"snackbar"}))},allowedTypes:jt,onError:function(e){V(e,{type:"snackbar"})}})},icon:Be.a,label:Object(J.__)("Upload external image")})),!ne&&Object(Q.createElement)(Y.MediaReplaceFlow,{mediaId:i,mediaURL:n,allowedTypes:jt,accept:"image/*",onSelect:y,onSelectURL:w,onError:_})),Object(Q.createElement)(Y.InspectorControls,null,Object(Q.createElement)(me.PanelBody,{title:Object(J.__)("Image settings")},Object(Q.createElement)(me.TextareaControl,{label:Object(J.__)("Alt text (alternative text)"),value:c,onChange:function(e){f({alt:e})},help:Object(Q.createElement)(Q.Fragment,null,Object(Q.createElement)(me.ExternalLink,{href:"https://www.w3.org/WAI/tutorials/images/decision-tree"},Object(J.__)("Describe the purpose of the image")),Object(J.__)("Leave empty if the image is purely decorative."))}),Object(Q.createElement)(Y.__experimentalImageSizeControl,{onChangeImage:function(e){var t=Object(X.get)(x,["media_details","sizes",e,"source_url"]);if(!t)return null;f({url:t,width:void 0,height:void 0,sizeSlug:e})},onChange:function(e){return f(e)},slug:h,width:d,height:p,imageSizeOptions:pe,isResizable:ue,imageWidth:Z,imageHeight:$}))),Object(Q.createElement)(Y.InspectorAdvancedControls,null,Object(Q.createElement)(me.TextControl,{label:Object(J.__)("Title attribute"),value:m||"",onChange:function(e){f({title:e})},help:Object(Q.createElement)(Q.Fragment,null,Object(J.__)("Describe the role of this image on the page."),Object(Q.createElement)(me.ExternalLink,{href:"https://www.w3.org/TR/html52/dom.html#the-title-attribute"},Object(J.__)("(Note: many devices and browsers do not display this text.)")))}))),Oe=function(e){var t=Object(Se.getPath)(e);if(t)return Object(X.last)(t.split("/"))}(n);ge=c||(Oe?Object(J.sprintf)(Object(J.__)("This image has an empty alt attribute; its file name is %s"),Oe):Object(J.__)("This image has an empty alt attribute"));var ve,je,ye=Object(Q.createElement)(Q.Fragment,null,Object(Q.createElement)("img",{src:n,alt:ge,onClick:function(){D&&F(!1)},onError:function(){var e;void 0!==(e=Ie({attributes:{url:n}}))&&j(e)},onLoad:function(e){ee(Object(X.pick)(e.target,["naturalWidth","naturalHeight"]))}}),Object(Ce.isBlobURL)(n)&&Object(Q.createElement)(me.Spinner,null));if(se&&Z&&$){var we=Z>se;ve=we?se:Z,je=we?se*($/Z):$}if(he&&ne)ye=Object(Q.createElement)(vt,{id:i,url:n,setAttributes:f,naturalWidth:Z,naturalHeight:$,width:d,height:p,clientWidth:se,setIsEditingImage:ce});else if(ue&&ve){var _e=d||ve,ke=p||je,Ee=Z/$,Te=Z<$?20:20*Ee,ze=$ a",attribute:"href"},rel:{type:"string",source:"attribute",selector:"figure > a",attribute:"rel"},linkClass:{type:"string",source:"attribute",selector:"figure > a",attribute:"class"},id:{type:"number"},width:{type:"number"},height:{type:"number"},sizeSlug:{type:"string"},linkDestination:{type:"string"},linkTarget:{type:"string",source:"attribute",selector:"figure > a",attribute:"target"}},supports:{anchor:!0}},Nt=zt.name,Mt={title:Object(J.__)("Image"),description:Object(J.__)("Insert an image to make a visual statement."),icon:_e,keywords:["img",Object(J.__)("photo"),Object(J.__)("picture")],example:{attributes:{sizeSlug:"large",url:"https://s.w.org/images/core/5.3/MtBlanc1.jpg",caption:Object(J.__)("Mont Blanc appears—still, snowy, and serene.")}},styles:[{name:"default",label:Object(J._x)("Default","block style"),isDefault:!0},{name:"rounded",label:Object(J._x)("Rounded","block style")}],__experimentalLabel:function(e,t){if("accessibility"===t.context){var r=e.caption,n=e.alt;return e.url?n?n+(r?". "+r:""):r||"":Object(J.__)("Empty")}},getEditWrapperProps:function(e){return{"data-align":e.align}},transforms:Tt,edit:Ct,save:function(e){var t,r=e.attributes,n=r.url,c=r.alt,o=r.caption,a=r.align,i=r.href,l=r.rel,s=r.linkClass,u=r.width,b=r.height,m=r.id,d=r.linkTarget,p=r.sizeSlug,g=r.title,h=Object(X.isEmpty)(l)?void 0:l,f=ne()((t={},Object(Z.a)(t,"align".concat(a),a),Object(Z.a)(t,"size-".concat(p),p),Object(Z.a)(t,"is-resized",u||b),t)),O=Object(Q.createElement)("img",{src:n,alt:c,className:m?"wp-image-".concat(m):null,width:u,height:b,title:g}),v=Object(Q.createElement)(Q.Fragment,null,i?Object(Q.createElement)("a",{className:s,href:i,target:d,rel:h},O):O,!Y.RichText.isEmpty(o)&&Object(Q.createElement)(Y.RichText.Content,{tagName:"figcaption",value:o}));return"left"===a||"right"===a||"center"===a?Object(Q.createElement)("div",Y.useBlockProps.save(),Object(Q.createElement)("figure",{className:f},v)):Object(Q.createElement)("figure",Y.useBlockProps.save({className:f}),v)},deprecated:Ee},Rt=Object(Q.createElement)(ee.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(Q.createElement)(ee.Path,{d:"M6.2 5.2v13.4l5.8-4.8 5.8 4.8V5.2z"})),Vt=r(14);function At(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Ht(e){for(var t=1;t".concat(t,"

    "),anchor:r})}},{type:"block",blocks:["core/pullquote"],transform:function(e){var t=e.value,r=e.citation,n=e.anchor;return Object(K.createBlock)("core/quote",{value:t,citation:r,anchor:n})}},{type:"prefix",prefix:">",transform:function(e){return Object(K.createBlock)("core/quote",{value:"

    ".concat(e,"

    ")})}},{type:"raw",isMatch:function(e){var t,r=(t=!1,function(e){return"P"===e.nodeName||(t||"CITE"!==e.nodeName?void 0:(t=!0,!0))});return"BLOCKQUOTE"===e.nodeName&&Array.from(e.childNodes).every(r)},schema:function(e){var t=e.phrasingContentSchema;return{blockquote:{children:{p:{children:t},cite:{children:t}}}}}}],to:[{type:"block",blocks:["core/paragraph"],transform:function(e){var t=e.value,r=e.citation,n=[];return t&&"

    "!==t&&n.push.apply(n,Object(q.a)(Object(ur.split)(Object(ur.create)({html:t,multilineTag:"p"}),"\u2028").map((function(e){return Object(K.createBlock)("core/paragraph",{content:Object(ur.toHTMLString)({value:e})})})))),r&&"

    "!==r&&n.push(Object(K.createBlock)("core/paragraph",{content:r})),0===n.length?Object(K.createBlock)("core/paragraph",{content:""}):n}},{type:"block",blocks:["core/heading"],transform:function(e){var t=e.value,r=e.citation,n=Object(Vt.a)(e,["value","citation"]);if("

    "===t)return Object(K.createBlock)("core/heading",{content:r});var c=Object(ur.split)(Object(ur.create)({html:t,multilineTag:"p"}),"\u2028"),o=Object(K.createBlock)("core/heading",{content:Object(ur.toHTMLString)({value:c[0]})});if(!r&&1===c.length)return o;var a=c.slice(1);return[o,Object(K.createBlock)("core/quote",mr(mr({},n),{},{citation:r,value:Object(ur.toHTMLString)({value:a.length?Object(ur.join)(c.slice(1),"\u2028"):Object(ur.create)(),multilineTag:"p"})}))]}},{type:"block",blocks:["core/pullquote"],transform:function(e){var t=e.value,r=e.citation,n=e.anchor;return Object(K.createBlock)("core/pullquote",{value:t,citation:r,anchor:n})}}]};function pr(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function gr(e){for(var t=1;t"+Object(J.__)("In quoting others, we cite ourselves.")+"

    ",citation:"Julio Cortázar",className:"is-style-large"}},styles:[{name:"default",label:Object(J._x)("Default","block style"),isDefault:!0},{name:"large",label:Object(J._x)("Large","block style")}],transforms:dr,edit:function(e){var t=e.attributes,r=e.setAttributes,n=e.isSelected,c=e.mergeBlocks,o=e.onReplace,a=e.className,i=e.insertBlocksAfter,l=t.align,s=t.value,u=t.citation,b=Object(Y.useBlockProps)({className:ne()(a,Object(Z.a)({},"has-text-align-".concat(l),l))});return Object(Q.createElement)(Q.Fragment,null,Object(Q.createElement)(Y.BlockControls,null,Object(Q.createElement)(Y.AlignmentToolbar,{value:l,onChange:function(e){r({align:e})}})),Object(Q.createElement)(me.BlockQuotation,b,Object(Q.createElement)(Y.RichText,{identifier:"value",multiline:!0,value:s,onChange:function(e){return r({value:e})},onMerge:c,onRemove:function(e){var t=!u||0===u.length;!e&&t&&o([])},placeholder:Object(J.__)("Write quote…"),onReplace:o,onSplit:function(e){return Object(K.createBlock)("core/quote",sr(sr({},t),{},{value:e}))},__unstableOnSplitMiddle:function(){return Object(K.createBlock)("core/paragraph")},textAlign:l}),(!Y.RichText.isEmpty(u)||n)&&Object(Q.createElement)(Y.RichText,{identifier:"citation",value:u,onChange:function(e){return r({citation:e})},__unstableMobileNoFocusOnMount:!0,placeholder:Object(J.__)("Write citation…"),className:"wp-block-quote__citation",textAlign:l,__unstableOnSplitAtEnd:function(){return i(Object(K.createBlock)("core/paragraph"))}})))},save:function(e){var t=e.attributes,r=t.align,n=t.value,c=t.citation,o=ne()(Object(Z.a)({},"has-text-align-".concat(r),r));return Object(Q.createElement)("blockquote",Y.useBlockProps.save({className:o}),Object(Q.createElement)(Y.RichText.Content,{multiline:!0,value:n}),!Y.RichText.isEmpty(c)&&Object(Q.createElement)(Y.RichText.Content,{tagName:"cite",value:c}))},merge:function(e,t){var r=t.value,n=t.citation;return n||(n=e.citation),gr(gr({},e),{},r&&"

    "!==r?{value:e.value+r,citation:n}:{citation:n})},deprecated:ir},vr=Object(Q.createElement)(ee.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(Q.createElement)(ee.Path,{d:"M20.2 8v11c0 .7-.6 1.2-1.2 1.2H6v1.5h13c1.5 0 2.7-1.2 2.7-2.8V8h-1.5zM18 16.4V4.6c0-.9-.7-1.6-1.6-1.6H4.6C3.7 3 3 3.7 3 4.6v11.8c0 .9.7 1.6 1.6 1.6h11.8c.9 0 1.6-.7 1.6-1.6zM4.5 4.6c0-.1.1-.1.1-.1h11.8c.1 0 .1.1.1.1V12l-2.3-1.7c-.3-.2-.6-.2-.9 0l-2.9 2.1L8 11.3c-.2-.1-.5-.1-.7 0l-2.9 1.5V4.6zm0 11.8v-1.8l3.2-1.7 2.4 1.2c.2.1.5.1.8-.1l2.8-2 2.8 2v2.5c0 .1-.1.1-.1.1H4.6c0-.1-.1-.2-.1-.2z"}));function jr(e){return Math.min(3,e.images.length)}var yr=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"large",r=Object(X.pick)(e,["alt","id","link","caption"]);r.url=Object(X.get)(e,["sizes",t,"url"])||Object(X.get)(e,["media_details","sizes",t,"source_url"])||e.url;var n=Object(X.get)(e,["sizes","full","url"])||Object(X.get)(e,["media_details","sizes","full","source_url"]);return n&&(r.fullUrl=n),r};function wr(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function _r(e){for(var t=1;t0&&Object(Q.createElement)(Y.RichText.Content,{tagName:"figcaption",value:e.caption})))})))}},{attributes:{images:{type:"array",default:[],source:"query",selector:"ul.wp-block-gallery .blocks-gallery-item",query:{url:{source:"attribute",selector:"img",attribute:"src"},alt:{source:"attribute",selector:"img",attribute:"alt",default:""},id:{source:"attribute",selector:"img",attribute:"data-id"},link:{source:"attribute",selector:"img",attribute:"data-link"},caption:{type:"array",source:"children",selector:"figcaption"}}},columns:{type:"number"},imageCrop:{type:"boolean",default:!0},linkTo:{type:"string",default:"none"}},isEligible:function(e){var t=e.images,r=e.ids;return t&&t.length>0&&(!r&&t||r&&t&&r.length!==t.length||Object(X.some)(t,(function(e,t){return!e&&null!==r[t]||parseInt(e,10)!==r[t]})))},migrate:function(e){return _r(_r({},e),{},{ids:Object(X.map)(e.images,(function(e){var t=e.id;return t?parseInt(t,10):null}))})},supports:{align:!0},save:function(e){var t=e.attributes,r=t.images,n=t.columns,c=void 0===n?jr(t):n,o=t.imageCrop,a=t.linkTo;return Object(Q.createElement)("ul",{className:"columns-".concat(c," ").concat(o?"is-cropped":"")},r.map((function(e){var t;switch(a){case"media":t=e.url;break;case"attachment":t=e.link}var r=Object(Q.createElement)("img",{src:e.url,alt:e.alt,"data-id":e.id,"data-link":e.link,className:e.id?"wp-image-".concat(e.id):null});return Object(Q.createElement)("li",{key:e.id||e.url,className:"blocks-gallery-item"},Object(Q.createElement)("figure",null,t?Object(Q.createElement)("a",{href:t},r):r,e.caption&&e.caption.length>0&&Object(Q.createElement)(Y.RichText.Content,{tagName:"figcaption",value:e.caption})))})))}},{attributes:{images:{type:"array",default:[],source:"query",selector:"div.wp-block-gallery figure.blocks-gallery-image img",query:{url:{source:"attribute",attribute:"src"},alt:{source:"attribute",attribute:"alt",default:""},id:{source:"attribute",attribute:"data-id"}}},columns:{type:"number"},imageCrop:{type:"boolean",default:!0},linkTo:{type:"string",default:"none"},align:{type:"string",default:"none"}},supports:{align:!0},save:function(e){var t=e.attributes,r=t.images,n=t.columns,c=void 0===n?jr(t):n,o=t.align,a=t.imageCrop,i=t.linkTo,l=ne()("columns-".concat(c),{alignnone:"none"===o,"is-cropped":a});return Object(Q.createElement)("div",{className:l},r.map((function(e){var t;switch(i){case"media":t=e.url;break;case"attachment":t=e.link}var r=Object(Q.createElement)("img",{src:e.url,alt:e.alt,"data-id":e.id});return Object(Q.createElement)("figure",{key:e.id||e.url,className:"blocks-gallery-image"},t?Object(Q.createElement)("a",{href:t},r):r)})))}}],Er=r(101),Cr=Object(Q.createElement)(Y.BlockIcon,{icon:vr}),xr=r(21),Sr=r(22),Pr=r(16),Br=r(23),Tr=r(24),zr=r(19),Nr=r(214),Mr=r(213),Rr=r(274),Vr=r(159);function Ar(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=Object(zr.a)(e);if(t){var c=Object(zr.a)(this).constructor;r=Reflect.construct(n,arguments,c)}else r=n.apply(this,arguments);return Object(Tr.a)(this,r)}}var Hr=function(e){Object(Br.a)(r,e);var t=Ar(r);function r(){var e;return Object(xr.a)(this,r),(e=t.apply(this,arguments)).onSelectImage=e.onSelectImage.bind(Object(Pr.a)(e)),e.onSelectCaption=e.onSelectCaption.bind(Object(Pr.a)(e)),e.onRemoveImage=e.onRemoveImage.bind(Object(Pr.a)(e)),e.bindContainer=e.bindContainer.bind(Object(Pr.a)(e)),e.onEdit=e.onEdit.bind(Object(Pr.a)(e)),e.onSelectImageFromLibrary=e.onSelectImageFromLibrary.bind(Object(Pr.a)(e)),e.onSelectCustomURL=e.onSelectCustomURL.bind(Object(Pr.a)(e)),e.state={captionSelected:!1,isEditing:!1},e}return Object(Sr.a)(r,[{key:"bindContainer",value:function(e){this.container=e}},{key:"onSelectCaption",value:function(){this.state.captionSelected||this.setState({captionSelected:!0}),this.props.isSelected||this.props.onSelect()}},{key:"onSelectImage",value:function(){this.props.isSelected||this.props.onSelect(),this.state.captionSelected&&this.setState({captionSelected:!1})}},{key:"onRemoveImage",value:function(e){this.container===document.activeElement&&this.props.isSelected&&-1!==[Wt.BACKSPACE,Wt.DELETE].indexOf(e.keyCode)&&(e.stopPropagation(),e.preventDefault(),this.props.onRemove())}},{key:"onEdit",value:function(){this.setState({isEditing:!0})}},{key:"componentDidUpdate",value:function(e){var t=this.props,r=t.isSelected,n=t.image,c=t.url,o=t.__unstableMarkNextChangeAsNotPersistent;n&&!c&&(o(),this.props.setAttributes({url:n.source_url,alt:n.alt_text})),this.state.captionSelected&&!r&&e.isSelected&&this.setState({captionSelected:!1})}},{key:"deselectOnBlur",value:function(){this.props.onDeselect()}},{key:"onSelectImageFromLibrary",value:function(e){var t=this.props,r=t.setAttributes,n=t.id,c=t.url,o=t.alt,a=t.caption,i=t.sizeSlug;if(e&&e.url){var l=yr(e,i);(function(e,t){return!e&&Object(Ce.isBlobURL)(t)})(n,c)&&o&&(l=Object(X.omit)(l,["alt"])),a&&!Object(X.get)(l,["caption"])&&(l=Object(X.omit)(l,["caption"])),r(l),this.setState({isEditing:!1})}}},{key:"onSelectCustomURL",value:function(e){var t=this.props,r=t.setAttributes;e!==t.url&&(r({url:e,id:void 0}),this.setState({isEditing:!1}))}},{key:"render",value:function(){var e,t=this.props,r=t.url,n=t.alt,c=t.id,o=t.linkTo,a=t.link,i=t.isFirstItem,l=t.isLastItem,s=t.isSelected,u=t.caption,b=t.onRemove,m=t.onMoveForward,d=t.onMoveBackward,p=t.setAttributes,g=t["aria-label"],h=this.state.isEditing;switch(o){case"file":e=r;break;case"post":e=a}var f=Object(Q.createElement)(Q.Fragment,null,Object(Q.createElement)("img",{src:r,alt:n,"data-id":c,onClick:this.onSelectImage,onFocus:this.onSelectImage,onKeyDown:this.onRemoveImage,tabIndex:"0","aria-label":g,ref:this.bindContainer}),Object(Ce.isBlobURL)(r)&&Object(Q.createElement)(me.Spinner,null)),O=ne()({"is-selected":s,"is-transient":Object(Ce.isBlobURL)(r)});return Object(Q.createElement)("figure",{className:O},!h&&(e?Object(Q.createElement)("a",{href:e},f):f),h&&Object(Q.createElement)(Y.MediaPlaceholder,{labels:{title:Object(J.__)("Edit gallery image")},icon:_e,onSelect:this.onSelectImageFromLibrary,onSelectURL:this.onSelectCustomURL,accept:"image/*",allowedTypes:["image"],value:{id:c,src:r}}),Object(Q.createElement)(me.ButtonGroup,{className:"block-library-gallery-item__inline-menu is-left"},Object(Q.createElement)(me.Button,{icon:Nr.a,onClick:i?void 0:d,label:Object(J.__)("Move image backward"),"aria-disabled":i,disabled:!s}),Object(Q.createElement)(me.Button,{icon:Mr.a,onClick:l?void 0:m,label:Object(J.__)("Move image forward"),"aria-disabled":l,disabled:!s})),Object(Q.createElement)(me.ButtonGroup,{className:"block-library-gallery-item__inline-menu is-right"},Object(Q.createElement)(me.Button,{icon:Rr.a,onClick:this.onEdit,label:Object(J.__)("Replace image"),disabled:!s}),Object(Q.createElement)(me.Button,{icon:Vr.a,onClick:b,label:Object(J.__)("Remove image"),disabled:!s})),!h&&(s||u)&&Object(Q.createElement)(Y.RichText,{tagName:"figcaption",placeholder:s?Object(J.__)("Write caption…"):null,value:u,isSelected:this.state.captionSelected,onChange:function(e){return p({caption:e})},unstableOnFocus:this.onSelectCaption,inlineToolbar:!0}))}}]),r}(Q.Component),Lr=Object(xe.compose)([Object(de.withSelect)((function(e,t){var r=e("core").getMedia,n=t.id;return{image:n?r(parseInt(n,10)):null}})),Object(de.withDispatch)((function(e){return{__unstableMarkNextChangeAsNotPersistent:e("core/block-editor").__unstableMarkNextChangeAsNotPersistent}}))])(Hr);function Ir(e){var t=e.isHidden,r=Object(Vt.a)(e,["isHidden"]);return t?Object(Q.createElement)(me.VisuallyHidden,Object(ue.a)({as:Y.RichText},r)):Object(Q.createElement)(Y.RichText,r)}var Dr=function(e){var t,r=e.attributes,n=e.className,c=e.isSelected,o=e.setAttributes,a=e.selectedImage,i=e.mediaPlaceholder,l=e.onMoveBackward,s=e.onMoveForward,u=e.onRemoveImage,b=e.onSelectImage,m=e.onDeselectImage,d=e.onSetImageAttributes,p=e.onFocusGalleryCaption,g=e.insertBlocksAfter,h=r.align,f=r.columns,O=void 0===f?jr(r):f,v=r.caption,j=r.imageCrop,y=r.images;return Object(Q.createElement)("figure",{className:ne()(n,(t={},Object(Z.a)(t,"align".concat(h),h),Object(Z.a)(t,"columns-".concat(O),O),Object(Z.a)(t,"is-cropped",j),t))},Object(Q.createElement)("ul",{className:"blocks-gallery-grid"},y.map((function(e,t){var n=Object(J.sprintf)(Object(J.__)("image %1$d of %2$d in gallery"),t+1,y.length);return Object(Q.createElement)("li",{className:"blocks-gallery-item",key:e.id||e.url},Object(Q.createElement)(Lr,{url:e.url,alt:e.alt,id:e.id,isFirstItem:0===t,isLastItem:t+1===y.length,isSelected:c&&a===t,onMoveBackward:l(t),onMoveForward:s(t),onRemove:u(t),onSelect:b(t),onDeselect:m(t),setAttributes:function(e){return d(t,e)},caption:e.caption,"aria-label":n,sizeSlug:r.sizeSlug}))}))),i,Object(Q.createElement)(Ir,{isHidden:!c&&Y.RichText.isEmpty(v),tagName:"figcaption",className:"blocks-gallery-caption",placeholder:Object(J.__)("Write gallery caption…"),value:v,unstableOnFocus:p,onChange:function(e){return o({caption:e})},inlineToolbar:!0,__unstableOnSplitAtEnd:function(){return g(Object(K.createBlock)("core/paragraph"))}}))};function Fr(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Gr(e){for(var t=1;t0&&Object(X.every)(d,(function(e){var t=e.url;return Object(Ce.isBlobURL)(t)}))){var e=Object(X.map)(d,(function(e){var t=e.url;return Object(Ce.getBlobByURL)(t)}));Object(X.forEach)(d,(function(e){var t=e.url;return Object(Ce.revokeBlobURL)(t)})),a({filesList:e,onFileChange:S,allowedTypes:["image"]})}}),[]),Object(Q.useEffect)((function(){n||v()}),[n]),Object(Q.useEffect)((function(){var e,t,r,n,c,o;p||(k(),E({linkTo:(null===(e=window)||void 0===e||null===(t=e.wp)||void 0===t||null===(r=t.media)||void 0===r||null===(n=r.view)||void 0===n||null===(c=n.settings)||void 0===c||null===(o=c.defaultProps)||void 0===o?void 0:o.link)||"none"}))}),[p]);var P=!!d.length,B=Object(Q.createElement)(Y.MediaPlaceholder,{addToGallery:P,isAppender:P,className:r,disableMediaButtons:P&&!n,icon:!P&&Cr,labels:{title:!P&&Object(J.__)("Gallery"),instructions:!P&&qr},onSelect:S,accept:"image/*",allowedTypes:Wr,multiple:!0,value:d,onError:function(e){o.removeAllNotices(),o.createErrorNotice(e)},notices:P?void 0:c,onFocus:s});if(!P)return B;var T=Object(X.map)(Object(X.filter)(i,(function(e){var t=e.slug;return Object(X.some)(l,(function(e){return e[t]}))})),(function(e){var t=e.name;return{value:e.slug,label:t}})),z=P&&!Object(X.isEmpty)(T);return Object(Q.createElement)(Q.Fragment,null,Object(Q.createElement)(Y.InspectorControls,null,Object(Q.createElement)(me.PanelBody,{title:Object(J.__)("Gallery settings")},d.length>1&&Object(Q.createElement)(me.RangeControl,Object(ue.a)({label:Object(J.__)("Columns"),value:b,onChange:function(e){E({columns:e})},min:1,max:Math.min(8,d.length)},Zr,{required:!0})),Object(Q.createElement)(me.ToggleControl,{label:Object(J.__)("Crop images"),checked:!!m,onChange:function(){E({imageCrop:!m})},help:function(e){return e?Object(J.__)("Thumbnails are cropped to align."):Object(J.__)("Thumbnails are not cropped.")}}),Object(Q.createElement)(me.SelectControl,{label:Object(J.__)("Link to"),value:p,onChange:function(e){E({linkTo:e})},options:Ur}),z&&Object(Q.createElement)(me.SelectControl,{label:Object(J.__)("Image size"),value:g,options:T,onChange:function(e){E({images:Object(X.map)(d,(function(t){if(!t.id)return t;var r=Object(X.get)(l,[parseInt(t.id,10),e]);return Gr(Gr({},t),r&&{url:r})})),newSizeSlug:e})}}))),c,Object(Q.createElement)(Dr,Object(ue.a)({},e,{selectedImage:O,mediaPlaceholder:B,onMoveBackward:function(e){return function(){0!==e&&C(e,e-1)}},onMoveForward:function(e){return function(){e!==d.length-1&&C(e,e+1)}},onRemoveImage:function(e){return function(){var r=Object(X.filter)(d,(function(t,r){return e!==r}));v(),E({images:r,columns:t.columns?Math.min(r.length,t.columns):t.columns})}},onSelectImage:function(e){return function(){v(e)}},onDeselectImage:function(){return function(){v()}},onSetImageAttributes:function(e,t){d[e]&&E({images:[].concat(Object(q.a)(d.slice(0,e)),[Gr(Gr({},d[e]),t)],Object(q.a)(d.slice(e+1)))})},onFocusGalleryCaption:function(){v()}})))}));var Yr=function(e){return e?e.split(",").map((function(e){return parseInt(e,10)})):[]},Kr={from:[{type:"block",isMultiBlock:!0,blocks:["core/image"],transform:function(e){var t=e[0],r=t.align,n=t.sizeSlug;r=Object(X.every)(e,["align",r])?r:void 0,n=Object(X.every)(e,["sizeSlug",n])?n:void 0;var c=Object(X.filter)(e,(function(e){return e.url}));return Object(K.createBlock)("core/gallery",{images:c.map((function(e){var t=e.id,r=e.url,n=e.alt,c=e.caption;return{id:Object(X.toString)(t),url:r,alt:n,caption:c}})),ids:c.map((function(e){var t=e.id;return parseInt(t,10)})),align:r,sizeSlug:n})}},{type:"shortcode",tag:"gallery",attributes:{images:{type:"array",shortcode:function(e){var t=e.named.ids;return Yr(t).map((function(e){return{id:Object(X.toString)(e)}}))}},ids:{type:"array",shortcode:function(e){var t=e.named.ids;return Yr(t)}},columns:{type:"number",shortcode:function(e){var t=e.named.columns;return parseInt(void 0===t?"3":t,10)}},linkTo:{type:"string",shortcode:function(e){var t=e.named.link;return void 0===t?"post":t}}},isMatch:function(e){return void 0!==e.named.ids}},{type:"files",isMatch:function(e){return 1!==e.length&&Object(X.every)(e,(function(e){return 0===e.type.indexOf("image/")}))},transform:function(e){return Object(K.createBlock)("core/gallery",{images:e.map((function(e){return yr({url:Object(Ce.createBlobURL)(e)})}))})}}],to:[{type:"block",blocks:["core/image"],transform:function(e){var t=e.images,r=e.align,n=e.sizeSlug,c=e.ids;return t.length>0?t.map((function(e,t){var o=e.url,a=e.alt,i=e.caption;return Object(K.createBlock)("core/image",{id:c[t],url:o,alt:a,caption:i,align:r,sizeSlug:n})})):Object(K.createBlock)("core/image",{align:r})}}]},Xr={name:"core/gallery",category:"media",attributes:{images:{type:"array",default:[],source:"query",selector:".blocks-gallery-item",query:{url:{type:"string",source:"attribute",selector:"img",attribute:"src"},fullUrl:{type:"string",source:"attribute",selector:"img",attribute:"data-full-url"},link:{type:"string",source:"attribute",selector:"img",attribute:"data-link"},alt:{type:"string",source:"attribute",selector:"img",attribute:"alt",default:""},id:{type:"string",source:"attribute",selector:"img",attribute:"data-id"},caption:{type:"string",source:"html",selector:".blocks-gallery-item__caption"}}},ids:{type:"array",items:{type:"number"},default:[]},columns:{type:"number",minimum:1,maximum:8},caption:{type:"string",source:"html",selector:".blocks-gallery-caption"},imageCrop:{type:"boolean",default:!0},linkTo:{type:"string"},sizeSlug:{type:"string",default:"large"}},supports:{anchor:!0,align:!0}},Jr=Xr.name,Qr={title:Object(J.__)("Gallery"),description:Object(J.__)("Display multiple images in a rich gallery."),icon:vr,keywords:[Object(J.__)("images"),Object(J.__)("photos")],example:{attributes:{columns:2,images:[{url:"https://s.w.org/images/core/5.3/Glacial_lakes%2C_Bhutan.jpg"},{url:"https://s.w.org/images/core/5.3/Sediment_off_the_Yucatan_Peninsula.jpg"}]}},transforms:Kr,edit:$r,save:function(e){var t=e.attributes,r=t.images,n=t.columns,c=void 0===n?jr(t):n,o=t.imageCrop,a=t.caption,i=t.linkTo;return Object(Q.createElement)("figure",{className:"columns-".concat(c," ").concat(o?"is-cropped":"")},Object(Q.createElement)("ul",{className:"blocks-gallery-grid"},r.map((function(e){var t;switch(i){case"file":t=e.fullUrl||e.url;break;case"post":t=e.link}var r=Object(Q.createElement)("img",{src:e.url,alt:e.alt,"data-id":e.id,"data-full-url":e.fullUrl,"data-link":e.link,className:e.id?"wp-image-".concat(e.id):null});return Object(Q.createElement)("li",{key:e.id||e.url,className:"blocks-gallery-item"},Object(Q.createElement)("figure",null,t?Object(Q.createElement)("a",{href:t},r):r,!Y.RichText.isEmpty(e.caption)&&Object(Q.createElement)(Y.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-item__caption",value:e.caption})))}))),!Y.RichText.isEmpty(a)&&Object(Q.createElement)(Y.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-caption",value:a}))},deprecated:kr},en=Object(Q.createElement)(ee.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(Q.createElement)(ee.Path,{d:"M19 6.2h-5.9l-.6-1.1c-.3-.7-1-1.1-1.8-1.1H5c-1.1 0-2 .9-2 2v11.8c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V8.2c0-1.1-.9-2-2-2zm.5 11.6c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h5.8c.2 0 .4.1.4.3l1 2H19c.3 0 .5.2.5.5v9.5zM8 12.8h8v-1.5H8v1.5zm0 3h8v-1.5H8v1.5z"})),tn=r(88),rn=r.n(tn);var nn={apiVersion:2,name:"core/archives",category:"widgets",attributes:{displayAsDropdown:{type:"boolean",default:!1},showPostCounts:{type:"boolean",default:!1}},supports:{align:!0,html:!1}},cn=nn.name,on={title:Object(J.__)("Archives"),description:Object(J.__)("Display a monthly archive of your posts."),icon:en,example:{},edit:function(e){var t=e.attributes,r=e.setAttributes,n=t.showPostCounts,c=t.displayAsDropdown;return Object(Q.createElement)(Q.Fragment,null,Object(Q.createElement)(Y.InspectorControls,null,Object(Q.createElement)(me.PanelBody,{title:Object(J.__)("Archives settings")},Object(Q.createElement)(me.ToggleControl,{label:Object(J.__)("Display as dropdown"),checked:c,onChange:function(){return r({displayAsDropdown:!c})}}),Object(Q.createElement)(me.ToggleControl,{label:Object(J.__)("Show post counts"),checked:n,onChange:function(){return r({showPostCounts:!n})}}))),Object(Q.createElement)("div",Object(Y.useBlockProps)(),Object(Q.createElement)(me.Disabled,null,Object(Q.createElement)(rn.a,{block:"core/archives",attributes:t}))))}},an=Object(Q.createElement)(ee.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(Q.createElement)(ee.Path,{d:"M17.7 4.3c-1.2 0-2.8 0-3.8 1-.6.6-.9 1.5-.9 2.6V14c-.6-.6-1.5-1-2.5-1C8.6 13 7 14.6 7 16.5S8.6 20 10.5 20c1.5 0 2.8-1 3.3-2.3.5-.8.7-1.8.7-2.5V7.9c0-.7.2-1.2.5-1.6.6-.6 1.8-.6 2.8-.6h.3V4.3h-.4z"})),ln=[{attributes:{src:{type:"string",source:"attribute",selector:"audio",attribute:"src"},caption:{type:"string",source:"html",selector:"figcaption"},id:{type:"number"},autoplay:{type:"boolean",source:"attribute",selector:"audio",attribute:"autoplay"},loop:{type:"boolean",source:"attribute",selector:"audio",attribute:"loop"},preload:{type:"string",source:"attribute",selector:"audio",attribute:"preload"}},supports:{align:!0},save:function(e){var t=e.attributes,r=t.autoplay,n=t.caption,c=t.loop,o=t.preload,a=t.src;return Object(Q.createElement)("figure",null,Object(Q.createElement)("audio",{controls:"controls",src:a,autoPlay:r,loop:c,preload:o}),!Y.RichText.isEmpty(n)&&Object(Q.createElement)(Y.RichText.Content,{tagName:"figcaption",value:n}))}}],sn=["audio"];var un=Object(me.withNotices)((function(e){var t=e.attributes,r=e.noticeOperations,n=e.setAttributes,c=e.onReplace,o=e.isSelected,a=e.noticeUI,i=e.insertBlocksAfter,l=t.id,s=t.autoplay,u=t.caption,b=t.loop,m=t.preload,d=t.src,p=Object(Y.useBlockProps)(),g=Object(de.useSelect)((function(e){return(0,e("core/block-editor").getSettings)().mediaUpload}),[]);function h(e){return function(t){n(Object(Z.a)({},e,t))}}function f(e){if(e!==d){var t=Ie({attributes:{url:e}});if(void 0!==t)return void c(t);n({src:e,id:void 0})}}function O(e){r.removeAllNotices(),r.createErrorNotice(e)}function v(e){e&&e.url?n({src:e.url,id:e.id}):n({src:void 0,id:void 0})}return Object(Q.useEffect)((function(){if(!l&&Object(Ce.isBlobURL)(d)){var e=Object(Ce.getBlobByURL)(d);e&&g({filesList:[e],onFileChange:function(e){var t=Object(be.a)(e,1)[0],r=t.id,c=t.url;n({id:r,src:c})},onError:function(e){n({src:void 0,id:void 0}),r.createErrorNotice(e)},allowedTypes:sn})}}),[]),d?Object(Q.createElement)(Q.Fragment,null,Object(Q.createElement)(Y.BlockControls,null,Object(Q.createElement)(Y.MediaReplaceFlow,{mediaId:l,mediaURL:d,allowedTypes:sn,accept:"audio/*",onSelect:v,onSelectURL:f,onError:O})),Object(Q.createElement)(Y.InspectorControls,null,Object(Q.createElement)(me.PanelBody,{title:Object(J.__)("Audio settings")},Object(Q.createElement)(me.ToggleControl,{label:Object(J.__)("Autoplay"),onChange:h("autoplay"),checked:s,help:function(e){return e?Object(J.__)("Note: Autoplaying audio may cause usability issues for some visitors."):null}}),Object(Q.createElement)(me.ToggleControl,{label:Object(J.__)("Loop"),onChange:h("loop"),checked:b}),Object(Q.createElement)(me.SelectControl,{label:Object(J.__)("Preload"),value:m||"",onChange:function(e){return n({preload:e||void 0})},options:[{value:"",label:Object(J.__)("Browser default")},{value:"auto",label:Object(J.__)("Auto")},{value:"metadata",label:Object(J.__)("Metadata")},{value:"none",label:Object(J.__)("None")}]}))),Object(Q.createElement)("figure",p,Object(Q.createElement)(me.Disabled,null,Object(Q.createElement)("audio",{controls:"controls",src:d})),(!Y.RichText.isEmpty(u)||o)&&Object(Q.createElement)(Y.RichText,{tagName:"figcaption",placeholder:Object(J.__)("Write caption…"),value:u,onChange:function(e){return n({caption:e})},inlineToolbar:!0,__unstableOnSplitAtEnd:function(){return i(Object(K.createBlock)("core/paragraph"))}}))):Object(Q.createElement)("div",p,Object(Q.createElement)(Y.MediaPlaceholder,{icon:Object(Q.createElement)(Y.BlockIcon,{icon:an}),onSelect:v,onSelectURL:f,accept:"audio/*",allowedTypes:sn,value:t,notices:a,onError:O}))}));var bn={from:[{type:"files",isMatch:function(e){return 1===e.length&&0===e[0].type.indexOf("audio/")},transform:function(e){var t=e[0];return Object(K.createBlock)("core/audio",{src:Object(Ce.createBlobURL)(t)})}},{type:"shortcode",tag:"audio",attributes:{src:{type:"string",shortcode:function(e){var t=e.named,r=t.src,n=t.mp3,c=t.m4a,o=t.ogg,a=t.wav,i=t.wma;return r||n||c||o||a||i}},loop:{type:"string",shortcode:function(e){return e.named.loop}},autoplay:{type:"string",shortcode:function(e){return e.named.autoplay}},preload:{type:"string",shortcode:function(e){return e.named.preload}}}}]},mn={apiVersion:2,name:"core/audio",category:"media",attributes:{src:{type:"string",source:"attribute",selector:"audio",attribute:"src"},caption:{type:"string",source:"html",selector:"figcaption"},id:{type:"number"},autoplay:{type:"boolean",source:"attribute",selector:"audio",attribute:"autoplay"},loop:{type:"boolean",source:"attribute",selector:"audio",attribute:"loop"},preload:{type:"string",source:"attribute",selector:"audio",attribute:"preload"}},supports:{anchor:!0,align:!0}},dn=mn.name,pn={title:Object(J.__)("Audio"),description:Object(J.__)("Embed a simple audio player."),keywords:[Object(J.__)("music"),Object(J.__)("sound"),Object(J.__)("podcast"),Object(J.__)("recording")],icon:an,transforms:bn,deprecated:ln,edit:un,save:function(e){var t=e.attributes,r=t.autoplay,n=t.caption,c=t.loop,o=t.preload,a=t.src;return a&&Object(Q.createElement)("figure",Y.useBlockProps.save(),Object(Q.createElement)("audio",{controls:"controls",src:a,autoPlay:r,loop:c,preload:o}),!Y.RichText.isEmpty(n)&&Object(Q.createElement)(Y.RichText.Content,{tagName:"figcaption",value:n}))}},gn=Object(Q.createElement)(ee.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(Q.createElement)(ee.Path,{d:"M19 6.5H5c-1.1 0-2 .9-2 2v7c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-7c0-1.1-.9-2-2-2zm.5 9c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5v-7c0-.3.2-.5.5-.5h14c.3 0 .5.2.5.5v7zM8 13h8v-1.5H8V13z"})),hn={from:[{type:"block",isMultiBlock:!0,blocks:["core/button"],transform:function(e){return Object(K.createBlock)("core/buttons",{},e.map((function(e){return Object(K.createBlock)("core/button",e)})))}}]};function fn(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function On(e){for(var t=1;t2&&void 0!==arguments[2]&&arguments[2],p=e.backgroundColor,g=e.textColor,h=e.gradient,f=e.style,O=Object(Y.getColorClassName)("background-color",p),v=Object(Y.__experimentalGetGradientClass)(h),j=Object(Y.getColorClassName)("color",g),y=ne()(j,v,(a={},Object(Z.a)(a,O,!(null==f||null===(r=f.color)||void 0===r?void 0:r.gradient)&&!!O),Object(Z.a)(a,"has-text-color",g||(null==f||null===(n=f.color)||void 0===n?void 0:n.text)),Object(Z.a)(a,"has-background",p||(null==f||null===(c=f.color)||void 0===c?void 0:c.background)||h||(null==f||null===(o=f.color)||void 0===o?void 0:o.gradient)),a)),w=(null==f||null===(i=f.color)||void 0===i?void 0:i.background)||(null==f||null===(l=f.color)||void 0===l?void 0:l.text)||(null==f||null===(s=f.color)||void 0===s?void 0:s.gradient)?{background:(null==f||null===(u=f.color)||void 0===u?void 0:u.gradient)?f.color.gradient:void 0,backgroundColor:(null==f||null===(b=f.color)||void 0===b?void 0:b.background)?f.color.background:void 0,color:(null==f||null===(m=f.color)||void 0===m?void 0:m.text)?f.color.text:void 0}:{};if(d){if(p){var _=Object(Y.getColorObjectByAttributeValues)(t,p);w.backgroundColor=_.color}if(g){var k=Object(Y.getColorObjectByAttributeValues)(t,g);w.color=k.color}}return{className:y||void 0,style:w}}function Mn(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Rn(e){for(var t=1;t a"}},Un=Gn.name,Wn={title:Object(J.__)("Button"),description:Object(J.__)("Prompt visitors to take action with a button-style link."),icon:gn,keywords:[Object(J.__)("link")],example:{attributes:{className:"is-style-fill",backgroundColor:"vivid-green-cyan",text:Object(J.__)("Call to Action")}},styles:[{name:"fill",label:Object(J.__)("Fill"),isDefault:!0},{name:"outline",label:Object(J.__)("Outline")}],edit:Ln,save:function(e){var t=e.attributes,r=t.borderRadius,n=t.linkTarget,c=t.rel,o=t.text,a=t.title,i=t.url,l=Nn(t),s=ne()("wp-block-button__link",l.className,{"no-border-radius":0===r}),u=function(e){for(var t=1;t"]+\s*)$/m,"$1//$2")}var hc={from:[{type:"enter",regExp:/^```$/,transform:function(){return Object(K.createBlock)("core/code")}},{type:"block",blocks:["core/html"],transform:function(e){var t=e.content;return Object(K.createBlock)("core/code",{content:t})}},{type:"raw",isMatch:function(e){return"PRE"===e.nodeName&&1===e.children.length&&"CODE"===e.firstChild.nodeName},schema:{pre:{children:{code:{children:{"#text":{}}}}}}}]},fc={apiVersion:2,name:"core/code",category:"text",attributes:{content:{type:"string",source:"html",selector:"code"}},supports:{anchor:!0}},Oc=fc.name,vc={title:Object(J.__)("Code"),description:Object(J.__)("Display code snippets that respect your spacing and tabs."),icon:dc.a,example:{attributes:{content:Object(J.__)('// A "block" is the abstract term used\n// to describe units of markup that\n// when composed together, form the\n// content or layout of a page.\nregisterBlockType( name, settings );')}},transforms:hc,edit:function(e){var t=e.attributes,r=e.setAttributes,n=Object(Y.useBlockProps)();return Object(Q.createElement)("pre",n,Object(Q.createElement)(Y.RichText,{tagName:"code",value:t.content,onChange:function(e){return r({content:e})},placeholder:Object(J.__)("Write code…"),"aria-label":Object(J.__)("Code"),preserveWhiteSpace:!0,__unstablePastePlainText:!0}))},save:function(e){var t,r=e.attributes;return Object(Q.createElement)("pre",Y.useBlockProps.save(),Object(Q.createElement)(Y.RichText.Content,{tagName:"code",value:(t=r.content,Object(X.flow)(pc,gc)(t||""))}))}},jc=Object(Q.createElement)(ee.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(Q.createElement)(ee.Path,{d:"M19 6H6c-1.1 0-2 .9-2 2v9c0 1.1.9 2 2 2h13c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm-4.1 1.5v10H10v-10h4.9zM5.5 17V8c0-.3.2-.5.5-.5h2.5v10H6c-.3 0-.5-.2-.5-.5zm14 0c0 .3-.2.5-.5.5h-2.6v-10H19c.3 0 .5.2.5.5v9z"}));function yc(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function wc(e){for(var t=1;t=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:c}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,i=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return a=e.done,e},e:function(e){i=!0,o=e},f:function(){try{a||null==r.return||r.return()}finally{if(i)throw o}}}}function kc(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r1&&void 0!==arguments[1]?arguments[1]:e.length;return Object(X.sumBy)(e,(function(e){return Sc(e,t)}))}function Bc(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.length;return e.reduce((function(e,r){var n=Sc(r,t);return Object.assign(e,Object(Z.a)({},r.clientId,n))}),{})}function Tc(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.length,n=Pc(e,r),c=t-n,o=c/e.length;return Object(X.mapValues)(Bc(e,r),(function(e){return xc(e+o)}))}function zc(e,t){return e.map((function(e){return Object(X.merge)({},e,{attributes:{width:t[e.clientId]}})}))}var Nc=["core/column"];var Mc=Object(de.withDispatch)((function(e,t,r){return{updateAlignment:function(n){var c=t.clientId,o=t.setAttributes,a=e("core/block-editor").updateBlockAttributes,i=r.select("core/block-editor").getBlockOrder;o({verticalAlignment:n}),i(c).forEach((function(e){a(e,{verticalAlignment:n})}))},updateColumns:function(n,c){var o=t.clientId,a=e("core/block-editor").replaceInnerBlocks,i=(0,r.select("core/block-editor").getBlocks)(o),l=i.every((function(e){var t,r=e.attributes.width;return Number.isFinite((null==r||null===(t=r.endsWith)||void 0===t?void 0:t.call(r,"%"))?parseFloat(r):r)})),s=c>n;if(s&&l){var u=xc(100/c),b=Tc(i,100-u);i=[].concat(Object(q.a)(zc(i,b)),Object(q.a)(Object(X.times)(c-n,(function(){return Object(K.createBlock)("core/column",{width:u})}))))}else if(s)i=[].concat(Object(q.a)(i),Object(q.a)(Object(X.times)(c-n,(function(){return Object(K.createBlock)("core/column")}))));else{if(i=Object(X.dropRight)(i,n-c),l)i=zc(i,Tc(i,100))}a(o,i,!1)}}}))((function(e){var t=e.attributes,r=e.updateAlignment,n=e.updateColumns,c=e.clientId,o=t.verticalAlignment,a=Object(de.useSelect)((function(e){return{count:e("core/block-editor").getBlockCount(c)}}),[c]).count,i=ne()(Object(Z.a)({},"are-vertically-aligned-".concat(o),o)),l=Object(Y.useBlockProps)({className:i}),s=Object(Y.__experimentalUseInnerBlocksProps)(l,{allowedBlocks:Nc,orientation:"horizontal",renderAppender:!1});return Object(Q.createElement)(Q.Fragment,null,Object(Q.createElement)(Y.BlockControls,null,Object(Q.createElement)(Y.BlockVerticalAlignmentToolbar,{onChange:r,value:o})),Object(Q.createElement)(Y.InspectorControls,null,Object(Q.createElement)(me.PanelBody,null,Object(Q.createElement)(me.RangeControl,{label:Object(J.__)("Columns"),value:a,onChange:function(e){return n(a,e)},min:1,max:Math.max(6,a)}),a>6&&Object(Q.createElement)(me.Notice,{status:"warning",isDismissible:!1},Object(J.__)("This column count exceeds the recommended amount and may cause visual breakage.")))),Object(Q.createElement)("div",s))}));function Rc(e){var t=e.clientId,r=e.name,n=e.setAttributes,c=Object(de.useSelect)((function(e){var t=e("core/blocks"),n=t.getBlockVariations,c=t.getBlockType,o=t.getDefaultBlockVariation;return{blockType:c(r),defaultVariation:o(r,"block"),variations:n(r,"block")}}),[r]),o=c.blockType,a=c.defaultVariation,i=c.variations,l=Object(de.useDispatch)("core/block-editor").replaceInnerBlocks,s=Object(Y.useBlockProps)();return Object(Q.createElement)("div",s,Object(Q.createElement)(Y.__experimentalBlockVariationPicker,{icon:Object(X.get)(o,["icon","src"]),label:Object(X.get)(o,["title"]),variations:i,onSelect:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a;e.attributes&&n(e.attributes),e.innerBlocks&&l(t,Object(K.createBlocksFromInnerBlocksTemplate)(e.innerBlocks))},allowSkip:!0}))}var Vc=function(e){var t=e.clientId,r=Object(de.useSelect)((function(e){return e("core/block-editor").getBlocks(t).length>0}),[t])?Mc:Rc;return Object(Q.createElement)(r,e)};var Ac=[{name:"one-column-full",title:Object(J.__)("100"),description:Object(J.__)("One column"),icon:Object(Q.createElement)(me.SVG,{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},Object(Q.createElement)(me.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"m39.0625 14h-30.0625v20.0938h30.0625zm-30.0625-2c-1.10457 0-2 .8954-2 2v20.0938c0 1.1045.89543 2 2 2h30.0625c1.1046 0 2-.8955 2-2v-20.0938c0-1.1046-.8954-2-2-2z"})),innerBlocks:[["core/column"]],scope:["block"]},{name:"two-columns-equal",title:Object(J.__)("50 / 50"),description:Object(J.__)("Two columns; equal split"),icon:Object(Q.createElement)(me.SVG,{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},Object(Q.createElement)(me.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M39 12C40.1046 12 41 12.8954 41 14V34C41 35.1046 40.1046 36 39 36H9C7.89543 36 7 35.1046 7 34V14C7 12.8954 7.89543 12 9 12H39ZM39 34V14H25V34H39ZM23 34H9V14H23V34Z"})),isDefault:!0,innerBlocks:[["core/column"],["core/column"]],scope:["block"]},{name:"two-columns-one-third-two-thirds",title:Object(J.__)("30 / 70"),description:Object(J.__)("Two columns; one-third, two-thirds split"),icon:Object(Q.createElement)(me.SVG,{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},Object(Q.createElement)(me.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M39 12C40.1046 12 41 12.8954 41 14V34C41 35.1046 40.1046 36 39 36H9C7.89543 36 7 35.1046 7 34V14C7 12.8954 7.89543 12 9 12H39ZM39 34V14H20V34H39ZM18 34H9V14H18V34Z"})),innerBlocks:[["core/column",{width:"33.33%"}],["core/column",{width:"66.66%"}]],scope:["block"]},{name:"two-columns-two-thirds-one-third",title:Object(J.__)("70 / 30"),description:Object(J.__)("Two columns; two-thirds, one-third split"),icon:Object(Q.createElement)(me.SVG,{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},Object(Q.createElement)(me.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M39 12C40.1046 12 41 12.8954 41 14V34C41 35.1046 40.1046 36 39 36H9C7.89543 36 7 35.1046 7 34V14C7 12.8954 7.89543 12 9 12H39ZM39 34V14H30V34H39ZM28 34H9V14H28V34Z"})),innerBlocks:[["core/column",{width:"66.66%"}],["core/column",{width:"33.33%"}]],scope:["block"]},{name:"three-columns-equal",title:Object(J.__)("33 / 33 / 33"),description:Object(J.__)("Three columns; equal split"),icon:Object(Q.createElement)(me.SVG,{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},Object(Q.createElement)(me.Path,{fillRule:"evenodd",d:"M41 14a2 2 0 0 0-2-2H9a2 2 0 0 0-2 2v20a2 2 0 0 0 2 2h30a2 2 0 0 0 2-2V14zM28.5 34h-9V14h9v20zm2 0V14H39v20h-8.5zm-13 0H9V14h8.5v20z"})),innerBlocks:[["core/column"],["core/column"],["core/column"]],scope:["block"]},{name:"three-columns-wider-center",title:Object(J.__)("25 / 50 / 25"),description:Object(J.__)("Three columns; wide center column"),icon:Object(Q.createElement)(me.SVG,{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},Object(Q.createElement)(me.Path,{fillRule:"evenodd",d:"M41 14a2 2 0 0 0-2-2H9a2 2 0 0 0-2 2v20a2 2 0 0 0 2 2h30a2 2 0 0 0 2-2V14zM31 34H17V14h14v20zm2 0V14h6v20h-6zm-18 0H9V14h6v20z"})),innerBlocks:[["core/column",{width:"25%"}],["core/column",{width:"50%"}],["core/column",{width:"25%"}]],scope:["block"]}];function Hc(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Lc(e){for(var t=1;t0,rootClientId:n(i)}}),[i]),u=s.hasChildBlocks,b=s.rootClientId,m=Object(de.useDispatch)("core/block-editor").updateBlockAttributes,d=Number.isFinite(n)?n+"%":n,p=Object(Y.useBlockProps)({className:l,style:d?{flexBasis:d}:void 0}),g=Object(Y.__experimentalUseInnerBlocksProps)(p,{templateLock:o,renderAppender:u?void 0:Y.InnerBlocks.ButtonBlockAppender});return Object(Q.createElement)(Q.Fragment,null,Object(Q.createElement)(Y.BlockControls,null,Object(Q.createElement)(Y.BlockVerticalAlignmentToolbar,{onChange:function(e){a({verticalAlignment:e}),m(b,{verticalAlignment:null})},value:r})),Object(Q.createElement)(Y.InspectorControls,null,Object(Q.createElement)(me.PanelBody,{title:Object(J.__)("Column settings")},Object(Q.createElement)(me.__experimentalUnitControl,{label:Object(J.__)("Width"),labelPosition:"edge",__unstableInputWidth:"80px",value:n||"",onChange:function(e){e=0>parseFloat(e)?"0":e,a({width:e})},units:[{value:"%",label:"%",default:""},{value:"px",label:"px",default:""},{value:"em",label:"em",default:""},{value:"rem",label:"rem",default:""},{value:"vw",label:"vw",default:""}]}))),Object(Q.createElement)("div",g))};var Yc={apiVersion:2,name:"core/column",category:"text",parent:["core/columns"],attributes:{verticalAlignment:{type:"string"},width:{type:"string"},templateLock:{type:"string"}},supports:{anchor:!0,reusable:!1,html:!1}},Kc=Yc.name,Xc={title:Object(J.__)("Column"),icon:Uc,description:Object(J.__)("A single column within a columns block."),edit:$c,save:function(e){var t,r=e.attributes,n=r.verticalAlignment,c=r.width,o=ne()(Object(Z.a)({},"is-vertically-aligned-".concat(n),n));return c&&(t={flexBasis:Number.isFinite(c)?c+"%":c}),Object(Q.createElement)("div",Y.useBlockProps.save({className:o,style:t}),Object(Q.createElement)(Y.InnerBlocks.Content,null))},deprecated:Zc},Jc=Object(Q.createElement)(ee.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(Q.createElement)(ee.Path,{d:"M18.7 3H5.3C4 3 3 4 3 5.3v13.4C3 20 4 21 5.3 21h13.4c1.3 0 2.3-1 2.3-2.3V5.3C21 4 20 3 18.7 3zm.8 15.7c0 .4-.4.8-.8.8H5.3c-.4 0-.8-.4-.8-.8V5.3c0-.4.4-.8.8-.8h6.2v8.9l2.5-3.1 2.5 3.1V4.5h2.2c.4 0 .8.4.8.8v13.4z"}));function Qc(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}var eo={"top left":"is-position-top-left","top center":"is-position-top-center","top right":"is-position-top-right","center left":"is-position-center-left","center center":"is-position-center-center",center:"is-position-center-center","center right":"is-position-center-right","bottom left":"is-position-bottom-left","bottom center":"is-position-bottom-center","bottom right":"is-position-bottom-right"};function to(e){return e?{backgroundImage:"url(".concat(e,")")}:{}}var ro=[{value:"px",label:"px",default:430},{value:"em",label:"em",default:20},{value:"rem",label:"rem",default:20},{value:"vw",label:"vw",default:20},{value:"vh",label:"vh",default:50}];function no(e){return 0!==e&&50!==e&&e?"has-background-dim-"+10*Math.round(e/10):null}function co(e){return function(t){if(t&&t.url){var r;if(Object(Ce.isBlobURL)(t.url)&&(t.type=Object(Ce.getBlobTypeByURL)(t.url)),t.media_type)r="image"===t.media_type?"image":"video";else{if("image"!==t.type&&"video"!==t.type)return;r=t.type}e(function(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:50,r=arguments.length>2?arguments[2]:void 0,n=arguments.length>3?arguments[3]:void 0,c=Object(Q.useState)(!1),o=Object(be.a)(c,2),a=o[0],i=o[1];return Object(Q.useEffect)((function(){e&&t<=50&&n.current&&yo().getColorAsync(n.current,(function(e){i(e.isDark)}))}),[e,e&&t<=50&&n.current,i]),Object(Q.useEffect)((function(){if(t>50||!e){if(!r)return void i(!0);i(go()(r).isDark())}}),[r,t>50||!e,i]),Object(Q.useEffect)((function(){e||r||i(!1)}),[!e&&!r,i]),a}(_,h,s.color,B),z="image"===g,N="video"===g,M=Object(Q.useState)(null),R=Object(be.a)(M,2),V=R[0],A=R[1],H=m.removeAllNotices,L=m.createErrorNotice,I=y?"".concat(j).concat(y):j,D=fo(fo({},z?to(_):{}),{},{backgroundColor:s.color,minHeight:V||I||void 0});C&&!_&&(D.background=C),f&&(c="".concat(100*f.x,"% ").concat(100*f.y,"%"),z&&(D.backgroundPosition=c));var F=!!(_||s.color||C),G=N||z&&(!O||v),U=Object(Q.createElement)(Q.Fragment,null,Object(Q.createElement)(Y.BlockControls,null,F&&Object(Q.createElement)(Q.Fragment,null,Object(Q.createElement)(Y.__experimentalBlockAlignmentMatrixToolbar,{label:Object(J.__)("Change content position"),value:d,onChange:function(e){return a({contentPosition:e})}}),Object(Q.createElement)(Y.MediaReplaceFlow,{mediaId:p,mediaURL:_,allowedTypes:Oo,accept:"image/*,video/*",onSelect:S}))),Object(Q.createElement)(Y.InspectorControls,null,!!_&&Object(Q.createElement)(me.PanelBody,{title:Object(J.__)("Media settings")},z&&Object(Q.createElement)(Q.Fragment,null,Object(Q.createElement)(me.ToggleControl,{label:Object(J.__)("Fixed background"),checked:O,onChange:function(){a(fo({hasParallax:!O},O?{}:{focalPoint:void 0}))}}),Object(Q.createElement)(me.ToggleControl,{label:Object(J.__)("Repeated background"),checked:v,onChange:function(){a({isRepeated:!v})}})),G&&Object(Q.createElement)(me.FocalPointPicker,{label:Object(J.__)("Focal point picker"),url:_,value:f,onChange:function(e){return a({focalPoint:e})}}),Object(Q.createElement)(me.PanelRow,null,Object(Q.createElement)(me.Button,{isSecondary:!0,isSmall:!0,className:"block-library-cover__reset-button",onClick:function(){return a({url:void 0,id:void 0,backgroundType:void 0,dimRatio:void 0,focalPoint:void 0,hasParallax:void 0,isRepeated:void 0})}},Object(J.__)("Clear Media")))),F&&Object(Q.createElement)(Q.Fragment,null,Object(Q.createElement)(me.PanelBody,{title:Object(J.__)("Dimensions")},Object(Q.createElement)(wo,{value:V||j,unit:y,onChange:function(e){return a({minHeight:e})},onUnitChange:function(e){a({minHeightUnit:e})}})),Object(Q.createElement)(Y.__experimentalPanelColorGradientSettings,{title:Object(J.__)("Overlay"),initialOpen:!0,settings:[{colorValue:s.color,gradientValue:C,onColorChange:u,onGradientChange:x,label:Object(J.__)("Color")}]},!!_&&Object(Q.createElement)(me.RangeControl,{label:Object(J.__)("Opacity"),value:h,onChange:function(e){return a({dimRatio:e})},min:0,max:100,step:10,required:!0}))))),W=Object(Y.useBlockProps)(),q=Object(Y.__experimentalUseInnerBlocksProps)({className:"wp-block-cover__inner-container"},{template:vo});if(!F){var $=Object(Q.createElement)(Y.BlockIcon,{icon:Jc}),K=Object(J.__)("Cover");return Object(Q.createElement)(Q.Fragment,null,U,Object(Q.createElement)("div",Object(ue.a)({},W,{className:ne()("is-placeholder",W.className)}),Object(Q.createElement)(Y.MediaPlaceholder,{icon:$,labels:{title:K,instructions:Object(J.__)("Upload an image or video file, or pick one from your media library.")},onSelect:S,accept:"image/*,video/*",allowedTypes:Oo,notices:l,onError:function(e){H(),L(e)}},Object(Q.createElement)("div",{className:"wp-block-cover__placeholder-background-options"},Object(Q.createElement)(Y.ColorPalette,{disableCustomColors:!0,value:s.color,onChange:u,clearable:!1})))))}var X=ne()(no(h),(t={"is-dark-theme":T,"has-background-dim":0!==h,"is-transient":P,"has-parallax":O,"is-repeated":v},Object(Z.a)(t,s.class,s.class),Object(Z.a)(t,"has-background-gradient",C),Object(Z.a)(t,E,!_&&E),Object(Z.a)(t,"has-custom-content-position",!oo(d)),t),ao(d));return Object(Q.createElement)(Q.Fragment,null,U,Object(Q.createElement)("div",Object(ue.a)({},W,{className:ne()(X,W.className),style:fo(fo({},D),W.style),"data-url":_}),Object(Q.createElement)(jo,{values:null==w||null===(r=w.spacing)||void 0===r?void 0:r.padding,showValues:null==w||null===(n=w.visualizers)||void 0===n?void 0:n.padding}),Object(Q.createElement)(ko,{className:"block-library-cover__resize-container",onResizeStart:function(){a({minHeightUnit:"px"}),b(!1)},onResize:A,onResizeStop:function(e){b(!0),a({minHeight:e}),A(null)},showHandle:i}),z&&Object(Q.createElement)("img",{ref:B,"aria-hidden":!0,alt:"",style:{display:"none"},src:_}),_&&C&&0!==h&&Object(Q.createElement)("span",{"aria-hidden":"true",className:ne()("wp-block-cover__gradient-background",E),style:{background:C}}),N&&Object(Q.createElement)("video",{ref:B,className:"wp-block-cover__video-background",autoPlay:!0,muted:!0,loop:!0,src:_,style:{objectPosition:c}}),P&&Object(Q.createElement)(me.Spinner,null),Object(Q.createElement)("div",q)))}));var Co={from:[{type:"block",blocks:["core/image"],transform:function(e){var t=e.caption,r=e.url,n=e.align,c=e.id,o=e.anchor;return Object(K.createBlock)("core/cover",{title:t,url:r,align:n,id:c,anchor:o})}},{type:"block",blocks:["core/video"],transform:function(e){var t=e.caption,r=e.src,n=e.align,c=e.id,o=e.anchor;return Object(K.createBlock)("core/cover",{title:t,url:r,align:n,id:c,backgroundType:"video",anchor:o})}}],to:[{type:"block",blocks:["core/image"],isMatch:function(e){var t=e.backgroundType,r=e.url,n=e.overlayColor,c=e.customOverlayColor,o=e.gradient,a=e.customGradient;return r?"image"===t:!(n||c||o||a)},transform:function(e){var t=e.title,r=e.url,n=e.align,c=e.id,o=e.anchor;return Object(K.createBlock)("core/image",{caption:t,url:r,align:n,id:c,anchor:o})}},{type:"block",blocks:["core/video"],isMatch:function(e){var t=e.backgroundType,r=e.url,n=e.overlayColor,c=e.customOverlayColor,o=e.gradient,a=e.customGradient;return r?"video"===t:!(n||c||o||a)},transform:function(e){var t=e.title,r=e.url,n=e.align,c=e.id,o=e.anchor;return Object(K.createBlock)("core/video",{caption:t,src:r,id:c,align:n,anchor:o})}}]},xo={apiVersion:2,name:"core/cover",category:"media",attributes:{url:{type:"string"},id:{type:"number"},hasParallax:{type:"boolean",default:!1},isRepeated:{type:"boolean",default:!1},dimRatio:{type:"number",default:50},overlayColor:{type:"string"},customOverlayColor:{type:"string"},backgroundType:{type:"string",default:"image"},focalPoint:{type:"object"},minHeight:{type:"number"},minHeightUnit:{type:"string"},gradient:{type:"string"},customGradient:{type:"string"},contentPosition:{type:"string"}},supports:{anchor:!0,align:!0,html:!1,spacing:{padding:!0}}},So=xo.name,Po={title:Object(J.__)("Cover"),description:Object(J.__)("Add an image or video with a text overlay — great for headers."),icon:Jc,example:{attributes:{customOverlayColor:"#065174",dimRatio:40,url:"https://s.w.org/images/core/5.3/Windbuchencom.jpg"},innerBlocks:[{name:"core/paragraph",attributes:{customFontSize:48,content:Object(J.__)("Snow Patrol"),align:"center"}}]},transforms:Co,save:function(e){var t,r,n=e.attributes,c=n.backgroundType,o=n.gradient,a=n.contentPosition,i=n.customGradient,l=n.customOverlayColor,s=n.dimRatio,u=n.focalPoint,b=n.hasParallax,m=n.isRepeated,d=n.overlayColor,p=n.url,g=n.minHeight,h=n.minHeightUnit,f=Object(Y.getColorClassName)("background-color",d),O=Object(Y.__experimentalGetGradientClass)(o),v=h?"".concat(g).concat(h):g,j="image"===c,y="video"===c,w=j?to(p):{},_={};f||(w.backgroundColor=l),i&&!p&&(w.background=i),w.minHeight=v||void 0,u&&(r="".concat(Math.round(100*u.x),"% ").concat(Math.round(100*u.y),"%"),j&&!b&&(w.backgroundPosition=r),y&&(_.objectPosition=r));var k=ne()(no(s),f,(t={"has-background-dim":0!==s,"has-parallax":b,"is-repeated":m,"has-background-gradient":o||i},Object(Z.a)(t,O,!p&&O),Object(Z.a)(t,"has-custom-content-position",!oo(a)),t),ao(a));return Object(Q.createElement)("div",Y.useBlockProps.save({className:k,style:w}),p&&(o||i)&&0!==s&&Object(Q.createElement)("span",{"aria-hidden":"true",className:ne()("wp-block-cover__gradient-background",O),style:i?{background:i}:void 0}),y&&p&&Object(Q.createElement)("video",{className:"wp-block-cover__video-background",autoPlay:!0,muted:!0,loop:!0,playsInline:!0,src:p,style:_}),Object(Q.createElement)("div",{className:"wp-block-cover__inner-container"},Object(Q.createElement)(Y.InnerBlocks.Content,null)))},edit:Eo,deprecated:uo},Bo=function(e){var t=e.blockSupportsResponsive,r=e.showEditButton,n=e.themeSupportsResponsive,c=e.allowResponsive,o=e.getResponsiveHelp,a=e.toggleResponsive,i=e.switchBackToURLInput;return Object(Q.createElement)(Q.Fragment,null,Object(Q.createElement)(Y.BlockControls,null,Object(Q.createElement)(me.ToolbarGroup,null,r&&Object(Q.createElement)(me.ToolbarButton,{className:"components-toolbar__control",label:Object(J.__)("Edit URL"),icon:Rr.a,onClick:i}))),n&&t&&Object(Q.createElement)(Y.InspectorControls,null,Object(Q.createElement)(me.PanelBody,{title:Object(J.__)("Media settings"),className:"blocks-responsive"},Object(Q.createElement)(me.ToggleControl,{label:Object(J.__)("Resize for smaller devices"),checked:c,help:o,onChange:a}))))},To=function(){return Object(Q.createElement)("div",{className:"wp-block-embed is-loading"},Object(Q.createElement)(me.Spinner,null),Object(Q.createElement)("p",null,Object(J.__)("Embedding…")))},zo=function(e){var t=e.icon,r=e.label,n=e.value,c=e.onSubmit,o=e.onChange,a=e.cannotEmbed,i=e.fallback,l=e.tryAgain;return Object(Q.createElement)(me.Placeholder,{icon:Object(Q.createElement)(Y.BlockIcon,{icon:t,showColors:!0}),label:r,className:"wp-block-embed",instructions:Object(J.__)("Paste a link to the content you want to display on your site.")},Object(Q.createElement)("form",{onSubmit:c},Object(Q.createElement)("input",{type:"url",value:n||"",className:"components-placeholder__input","aria-label":r,placeholder:Object(J.__)("Enter URL to embed here…"),onChange:o}),Object(Q.createElement)(me.Button,{isPrimary:!0,type:"submit"},Object(J._x)("Embed","button label"))),Object(Q.createElement)("div",{className:"components-placeholder__learn-more"},Object(Q.createElement)(me.ExternalLink,{href:Object(J.__)("https://wordpress.org/support/article/embeds/")},Object(J.__)("Learn more about embeds"))),a&&Object(Q.createElement)("div",{className:"components-placeholder__error"},Object(Q.createElement)("div",{className:"components-placeholder__instructions"},Object(J.__)("Sorry, this content could not be embedded.")),Object(Q.createElement)(me.Button,{isSecondary:!0,onClick:l},Object(J._x)("Try again","button label"))," ",Object(Q.createElement)(me.Button,{isSecondary:!0,onClick:i},Object(J._x)("Convert to link","button label"))))};function No(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=Object(zr.a)(e);if(t){var c=Object(zr.a)(this).constructor;r=Reflect.construct(n,arguments,c)}else r=n.apply(this,arguments);return Object(Tr.a)(this,r)}}var Mo=window,Ro=Mo.FocusEvent,Vo=Mo.DOMParser,Ao=function(e){Object(Br.a)(r,e);var t=No(r);function r(){var e;return Object(xr.a)(this,r),(e=t.apply(this,arguments)).checkFocus=e.checkFocus.bind(Object(Pr.a)(e)),e.node=Object(Q.createRef)(),e}return Object(Sr.a)(r,[{key:"componentDidMount",value:function(){window.addEventListener("message",this.resizeWPembeds)}},{key:"componentWillUnmount",value:function(){window.removeEventListener("message",this.resizeWPembeds)}},{key:"resizeWPembeds",value:function(e){var t=e.data,r=(t=void 0===t?{}:t).secret,n=t.message,c=t.value;[r,n,c].some((function(e){return!e}))||"height"!==n||document.querySelectorAll('iframe[data-secret="'.concat(r,'"')).forEach((function(e){+e.height!==c&&(e.height=c)}))}},{key:"checkFocus",value:function(){var e=document.activeElement;if("IFRAME"===e.tagName&&e.parentNode===this.node.current){var t=new Ro("focus",{bubbles:!0});e.dispatchEvent(t)}}},{key:"render",value:function(){var e=this.props.html,t=(new Vo).parseFromString(e,"text/html"),r=t.querySelector("iframe");r&&r.removeAttribute("style");var n=t.querySelector("blockquote");return n&&(n.style.display="none"),Object(Q.createElement)("div",{ref:this.node,className:"wp-block-embed__wrapper",dangerouslySetInnerHTML:{__html:t.body.innerHTML}})}}]),r}(Q.Component),Ho=Object(xe.withGlobalEvents)({blur:"checkFocus"})(Ao);function Lo(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=Object(zr.a)(e);if(t){var c=Object(zr.a)(this).constructor;r=Reflect.construct(n,arguments,c)}else r=n.apply(this,arguments);return Object(Tr.a)(this,r)}}var Io=function(e){Object(Br.a)(r,e);var t=Lo(r);function r(){var e;return Object(xr.a)(this,r),(e=t.apply(this,arguments)).hideOverlay=e.hideOverlay.bind(Object(Pr.a)(e)),e.state={interactive:!1},e}return Object(Sr.a)(r,[{key:"hideOverlay",value:function(){this.setState({interactive:!0})}},{key:"render",value:function(){var e,t,r,n=this.props,c=n.preview,o=n.previewable,a=n.url,i=n.type,l=n.caption,s=n.onCaptionChange,u=n.isSelected,b=n.className,m=n.icon,d=n.label,p=n.insertBlocksAfter,g=c.scripts,h=this.state.interactive,f="photo"===i?(t=(e=c).thumbnail_url||e.url,r=Object(Q.createElement)("p",null,Object(Q.createElement)("img",{src:t,alt:e.title,width:"100%"})),Object(Q.renderToString)(r)):c.html,O=new URL(a).host.split("."),v=O.splice(O.length-2,O.length-1).join("."),j=Object(J.sprintf)(Object(J.__)("Embedded content from %s"),v),y=Ne()(i,b,"wp-block-embed__wrapper"),w="wp-embed"===i?Object(Q.createElement)(Ho,{html:f}):Object(Q.createElement)("div",{className:"wp-block-embed__wrapper"},Object(Q.createElement)(me.SandBox,{html:f,scripts:g,title:j,type:y,onFocus:this.hideOverlay}),!h&&Object(Q.createElement)("div",{className:"block-library-embed__interactive-overlay",onMouseUp:this.hideOverlay}));return Object(Q.createElement)("figure",{className:Ne()(b,"wp-block-embed",{"is-type-video":"video"===i})},o?w:Object(Q.createElement)(me.Placeholder,{icon:Object(Q.createElement)(Y.BlockIcon,{icon:m,showColors:!0}),label:d},Object(Q.createElement)("p",{className:"components-placeholder__error"},Object(Q.createElement)("a",{href:a},a)),Object(Q.createElement)("p",{className:"components-placeholder__error"},Object(J.sprintf)(Object(J.__)("Embedded content from %s can't be previewed in the editor."),v))),(!Y.RichText.isEmpty(l)||u)&&Object(Q.createElement)(Y.RichText,{tagName:"figcaption",placeholder:Object(J.__)("Write caption…"),value:l,onChange:s,inlineToolbar:!0,__unstableOnSplitAtEnd:function(){return p(Object(K.createBlock)("core/paragraph"))}}))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return!e.isSelected&&t.interactive?{interactive:!1}:null}}]),r}(Q.Component);function Do(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Fo(e){for(var t=1;t0},priority:15,transform:function(e){var t=[];return e.forEach((function(e){var r=Object(Ce.createBlobURL)(e);t.push(Object(K.createBlock)("core/file",{href:r,fileName:e.name,textLinkHref:r}))})),t}},{type:"block",blocks:["core/audio"],transform:function(e){return Object(K.createBlock)("core/file",{href:e.src,fileName:e.caption,textLinkHref:e.src,id:e.id,anchor:e.anchor})}},{type:"block",blocks:["core/video"],transform:function(e){return Object(K.createBlock)("core/file",{href:e.src,fileName:e.caption,textLinkHref:e.src,id:e.id,anchor:e.anchor})}},{type:"block",blocks:["core/image"],transform:function(e){return Object(K.createBlock)("core/file",{href:e.url,fileName:e.caption,textLinkHref:e.url,id:e.id,anchor:e.anchor})}}],to:[{type:"block",blocks:["core/audio"],isMatch:function(e){var t=e.id;if(!t)return!1;var r=(0,Object(de.select)("core").getMedia)(t);return!!r&&Object(X.includes)(r.mime_type,"audio")},transform:function(e){return Object(K.createBlock)("core/audio",{src:e.href,caption:e.fileName,id:e.id,anchor:e.anchor})}},{type:"block",blocks:["core/video"],isMatch:function(e){var t=e.id;if(!t)return!1;var r=(0,Object(de.select)("core").getMedia)(t);return!!r&&Object(X.includes)(r.mime_type,"video")},transform:function(e){return Object(K.createBlock)("core/video",{src:e.href,caption:e.fileName,id:e.id,anchor:e.anchor})}},{type:"block",blocks:["core/image"],isMatch:function(e){var t=e.id;if(!t)return!1;var r=(0,Object(de.select)("core").getMedia)(t);return!!r&&Object(X.includes)(r.mime_type,"image")},transform:function(e){return Object(K.createBlock)("core/image",{url:e.href,caption:e.fileName,id:e.id,anchor:e.anchor})}}]},Oa={apiVersion:2,name:"core/file",category:"media",attributes:{id:{type:"number"},href:{type:"string"},fileName:{type:"string",source:"html",selector:"a:not([download])"},textLinkHref:{type:"string",source:"attribute",selector:"a:not([download])",attribute:"href"},textLinkTarget:{type:"string",source:"attribute",selector:"a:not([download])",attribute:"target"},showDownloadButton:{type:"boolean",default:!0},downloadButtonText:{type:"string",source:"html",selector:"a[download]"}},supports:{anchor:!0,align:!0}},va=Oa.name,ja={title:Object(J.__)("File"),description:Object(J.__)("Add a link to a downloadable file."),icon:pa,keywords:[Object(J.__)("document"),Object(J.__)("pdf"),Object(J.__)("download")],transforms:fa,edit:ha,save:function(e){var t=e.attributes,r=t.href,n=t.fileName,c=t.textLinkHref,o=t.textLinkTarget,a=t.showDownloadButton,i=t.downloadButtonText;return r&&Object(Q.createElement)("div",Y.useBlockProps.save(),!Y.RichText.isEmpty(n)&&Object(Q.createElement)("a",{href:c,target:o,rel:!!o&&"noreferrer noopener"},Object(Q.createElement)(Y.RichText.Content,{value:n})),a&&Object(Q.createElement)("a",{href:r,className:"wp-block-file__button",download:!0},Object(Q.createElement)(Y.RichText.Content,{value:i})))}},ya=Object(Q.createElement)(ee.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(Q.createElement)(ee.Path,{d:"M4.8 11.4H2.1V9H1v6h1.1v-2.6h2.7V15h1.1V9H4.8v2.4zm1.9-1.3h1.7V15h1.1v-4.9h1.7V9H6.7v1.1zM16.2 9l-1.5 2.7L13.3 9h-.9l-.8 6h1.1l.5-4 1.5 2.8 1.5-2.8.5 4h1.1L17 9h-.8zm3.8 5V9h-1.1v6h3.6v-1H20z"}));var wa={from:[{type:"block",blocks:["core/code"],transform:function(e){var t=e.content;return Object(K.createBlock)("core/html",{content:t})}}]},_a={apiVersion:2,name:"core/html",category:"widgets",attributes:{content:{type:"string",source:"html"}},supports:{customClassName:!1,className:!1,html:!1}},ka=_a.name,Ea={title:Object(J.__)("Custom HTML"),description:Object(J.__)("Add custom HTML code and preview it as you edit."),icon:ya,keywords:[Object(J.__)("embed")],example:{attributes:{content:""+Object(J.__)("Welcome to the wonderful world of blocks…")+""}},edit:function(e){var t=e.attributes,r=e.setAttributes,n=e.isSelected,c=Object(Q.useState)(),o=Object(be.a)(c,2),a=o[0],i=o[1],l=Object(de.useSelect)((function(e){return["\n\t\t\thtml,body,:root {\n\t\t\t\tmargin: 0 !important;\n\t\t\t\tpadding: 0 !important;\n\t\t\t\toverflow: visible !important;\n\t\t\t\tmin-height: auto !important;\n\t\t\t}\n\t\t"].concat(Object(q.a)(Object(Y.transformStyles)(e("core/block-editor").getSettings().styles)))}),[]);return Object(Q.createElement)("div",Object(Y.useBlockProps)(),Object(Q.createElement)(Y.BlockControls,null,Object(Q.createElement)(me.ToolbarGroup,null,Object(Q.createElement)(me.ToolbarButton,{className:"components-tab-button",isPressed:!a,onClick:function(){i(!1)}},Object(Q.createElement)("span",null,"HTML")),Object(Q.createElement)(me.ToolbarButton,{className:"components-tab-button",isPressed:a,onClick:function(){i(!0)}},Object(Q.createElement)("span",null,Object(J.__)("Preview"))))),Object(Q.createElement)(me.Disabled.Consumer,null,(function(e){return a||e?Object(Q.createElement)(Q.Fragment,null,Object(Q.createElement)(me.SandBox,{html:t.content,styles:l}),!n&&Object(Q.createElement)("div",{className:"block-library-html__preview-overlay"})):Object(Q.createElement)(Y.PlainText,{value:t.content,onChange:function(e){return r({content:e})},placeholder:Object(J.__)("Write HTML…"),"aria-label":Object(J.__)("HTML")})})))},save:function(e){var t=e.attributes;return Object(Q.createElement)(Q.RawHTML,null,t.content)},transforms:wa},Ca=Object(Q.createElement)(ee.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(Q.createElement)(ee.Path,{d:"M4 17h7V6H4v11zm9-10v1.5h7V7h-7zm0 5.5h7V11h-7v1.5zm0 4h7V15h-7v1.5z"})),xa=Object(Q.createElement)(me.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(Q.createElement)(me.Path,{d:"M18 2l2 4h-2l-2-4h-3l2 4h-2l-2-4h-1a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V2zm2 12H10V4.4L11.8 8H20z"}),Object(Q.createElement)(me.Path,{d:"M14 20H4V10h3V8H4a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-3h-2z"}),Object(Q.createElement)(me.Path,{d:"M5 19h8l-1.59-2H9.24l-.84 1.1L7 16.3 5 19z"})),Sa=["image","video"];function Pa(e,t){return e?{backgroundImage:"url(".concat(e,")"),backgroundPosition:t?"".concat(100*t.x,"% ").concat(100*t.y,"%"):"50% 50%"}:{}}function Ba(e){var t=e.isSelected,r=e.isStackedOnMobile,n=Object(Vt.a)(e,["isSelected","isStackedOnMobile"]),c=Object(xe.useViewportMatch)("small","<");return Object(Q.createElement)(me.ResizableBox,Object(ue.a)({showHandle:t&&(!c||!r)},n))}function Ta(e){var t=e.mediaId,r=e.mediaUrl,n=e.onSelectMedia;return Object(Q.createElement)(Y.BlockControls,null,Object(Q.createElement)(Y.MediaReplaceFlow,{mediaId:t,mediaURL:r,allowedTypes:Sa,accept:"image/*,video/*",onSelect:n}))}function za(e){var t=e.className,r=e.noticeOperations,n=e.noticeUI,c=e.onSelectMedia;return Object(Q.createElement)(Y.MediaPlaceholder,{icon:Object(Q.createElement)(Y.BlockIcon,{icon:xa}),labels:{title:Object(J.__)("Media area")},className:t,onSelect:c,accept:"image/*,video/*",allowedTypes:Sa,notices:n,onError:function(e){r.removeAllNotices(),r.createErrorNotice(e)}})}var Na=Object(me.withNotices)((function(e){var t=e.className,r=e.commitWidthChange,n=e.focalPoint,c=e.imageFill,o=e.isSelected,a=e.isStackedOnMobile,i=e.mediaAlt,l=e.mediaId,s=e.mediaPosition,u=e.mediaType,b=e.mediaUrl,m=e.mediaWidth,d=e.onSelectMedia,p=e.onWidthChange,g=Object(de.useDispatch)("core/block-editor").toggleSelection;if(u&&b){var h={right:"left"===s,left:"right"===s},f="image"===u&&c?Pa(b,n):{},O={image:function(){return Object(Q.createElement)("img",{src:b,alt:i})},video:function(){return Object(Q.createElement)("video",{controls:!0,src:b})}};return Object(Q.createElement)(Ba,{as:"figure",className:ne()(t,"editor-media-container__resizer"),style:f,size:{width:m+"%"},minWidth:"10%",maxWidth:"100%",enable:h,onResizeStart:function(){g(!1)},onResize:function(e,t,r){p(parseInt(r.style.width))},onResizeStop:function(e,t,n){g(!0),r(parseInt(n.style.width))},axis:"x",isSelected:o,isStackedOnMobile:a},Object(Q.createElement)(Ta,{onSelectMedia:d,mediaUrl:b,mediaId:l}),(O[u]||X.noop)())}return Object(Q.createElement)(za,e)}));function Ma(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Ra(e){for(var t=1;tEarns his living
    Noiselessly.")}},{name:"core/paragraph",attributes:{content:Object(J.__)("— Kobayashi Issa (一茶)")}}]},transforms:Wa,edit:Ua,save:function(e){var t,r,n=e.attributes,c=n.isStackedOnMobile,o=n.mediaAlt,a=n.mediaPosition,i=n.mediaType,l=n.mediaUrl,s=n.mediaWidth,u=n.mediaId,b=n.verticalAlignment,m=n.imageFill,d=n.focalPoint,p=n.linkClass,g=n.href,h=n.linkTarget,f=n.rel,O=n.mediaSizeSlug||"full",v=Object(X.isEmpty)(f)?void 0:f,j=ne()((t={},Object(Z.a)(t,"wp-image-".concat(u),u&&"image"===i),Object(Z.a)(t,"size-".concat(O),u&&"image"===i),t)),y=Object(Q.createElement)("img",{src:l,alt:o,className:j||null});g&&(y=Object(Q.createElement)("a",{className:p,href:g,target:h,rel:v},y));var w,_={image:function(){return y},video:function(){return Object(Q.createElement)("video",{controls:!0,src:l})}},k=ne()((r={"has-media-on-the-right":"right"===a,"is-stacked-on-mobile":c},Object(Z.a)(r,"is-vertically-aligned-".concat(b),b),Object(Z.a)(r,"is-image-fill",m),r)),E=m?Pa(l,d):{};50!==s&&(w="right"===a?"auto ".concat(s,"%"):"".concat(s,"% auto"));var C={gridTemplateColumns:w};return Object(Q.createElement)("div",Y.useBlockProps.save({className:k,style:C}),Object(Q.createElement)("figure",{className:"wp-block-media-text__media",style:E},(_[i]||X.noop)()),Object(Q.createElement)("div",{className:"wp-block-media-text__content"},Object(Q.createElement)(Y.InnerBlocks.Content,null)))},deprecated:Ha},Ya=Object(Q.createElement)(ee.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(Q.createElement)(ee.Path,{d:"M18 4H6c-1.1 0-2 .9-2 2v12.9c0 .6.5 1.1 1.1 1.1.3 0 .5-.1.8-.3L8.5 17H18c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm.5 11c0 .3-.2.5-.5.5H7.9l-2.4 2.4V6c0-.3.2-.5.5-.5h12c.3 0 .5.2.5.5v9z"}));var Ka={apiVersion:2,name:"core/latest-comments",category:"widgets",attributes:{commentsToShow:{type:"number",default:5,minimum:1,maximum:100},displayAvatar:{type:"boolean",default:!0},displayDate:{type:"boolean",default:!0},displayExcerpt:{type:"boolean",default:!0}},supports:{align:!0,html:!1}},Xa=Ka.name,Ja={title:Object(J.__)("Latest Comments"),description:Object(J.__)("Display a list of your most recent comments."),icon:Ya,keywords:[Object(J.__)("recent comments")],example:{},edit:function(e){var t=e.attributes,r=e.setAttributes,n=t.commentsToShow,c=t.displayAvatar,o=t.displayDate,a=t.displayExcerpt;return Object(Q.createElement)("div",Object(Y.useBlockProps)(),Object(Q.createElement)(Y.InspectorControls,null,Object(Q.createElement)(me.PanelBody,{title:Object(J.__)("Latest comments settings")},Object(Q.createElement)(me.ToggleControl,{label:Object(J.__)("Display avatar"),checked:c,onChange:function(){return r({displayAvatar:!c})}}),Object(Q.createElement)(me.ToggleControl,{label:Object(J.__)("Display date"),checked:o,onChange:function(){return r({displayDate:!o})}}),Object(Q.createElement)(me.ToggleControl,{label:Object(J.__)("Display excerpt"),checked:a,onChange:function(){return r({displayExcerpt:!a})}}),Object(Q.createElement)(me.RangeControl,{label:Object(J.__)("Number of comments"),value:n,onChange:function(e){return r({commentsToShow:e})},min:1,max:100,required:!0}))),Object(Q.createElement)(me.Disabled,null,Object(Q.createElement)(rn.a,{block:"core/latest-comments",attributes:t})))}},Qa=Object(Q.createElement)(ee.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(Q.createElement)(ee.Path,{d:"M18 4H6c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm.5 14c0 .3-.2.5-.5.5H6c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h12c.3 0 .5.2.5.5v12zM7 11h2V9H7v2zm0 4h2v-2H7v2zm3-4h7V9h-7v2zm0 4h7v-2h-7v2z"}));function ei(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ti(e){for(var t=1;t0?a.map((function(e){return e.id})):[],d=r("postType","post",Object(X.pickBy)({categories:m,author:i,order:c,orderby:o,per_page:n},(function(e){return!Object(X.isUndefined)(e)})));return{defaultImageWidth:Object(X.get)(b,[f,"width"],0),defaultImageHeight:Object(X.get)(b,[f,"height"],0),imageSizeOptions:u.filter((function(e){return"full"!==e.slug})).map((function(e){var t=e.name;return{value:e.slug,label:t}})),latestPosts:Array.isArray(d)?d.map((function(e){if(!e.featured_media)return e;var t=l(e.featured_media),r=Object(X.get)(t,["media_details","sizes",f,"source_url"],null);r||(r=Object(X.get)(t,"source_url",null));var n={url:r,alt:null==t?void 0:t.alt_text};return ii(ii({},e),{},{featuredImageInfo:n})})):d}}),[f,n,c,o,a,i]),w=y.imageSizeOptions,_=y.latestPosts,k=y.defaultImageWidth,E=y.defaultImageHeight,C=Object(Q.useState)([]),x=Object(be.a)(C,2),S=x[0],P=x[1],B=Object(Q.useState)([]),T=Object(be.a)(B,2),z=T[0],N=T[1],M=S.reduce((function(e,t){return ii(ii({},e),{},Object(Z.a)({},t.name,t))}),{}),R=Object(Q.useRef)();Object(Q.useEffect)((function(){return R.current=!0,gt()({path:Object(Se.addQueryArgs)("/wp/v2/categories",li)}).then((function(e){R.current&&P(e)})).catch((function(){R.current&&P([])})),gt()({path:Object(Se.addQueryArgs)("/wp/v2/users",si)}).then((function(e){R.current&&N(e)})).catch((function(){R.current&&N([])})),function(){R.current=!1}}),[]);var V=Object(Q.createElement)(Y.InspectorControls,null,Object(Q.createElement)(me.PanelBody,{title:Object(J.__)("Post content settings")},Object(Q.createElement)(me.ToggleControl,{label:Object(J.__)("Post content"),checked:u,onChange:function(e){return r({displayPostContent:e})}}),u&&Object(Q.createElement)(me.RadioControl,{label:Object(J.__)("Show:"),selected:s,options:[{label:Object(J.__)("Excerpt"),value:"excerpt"},{label:Object(J.__)("Full post"),value:"full_post"}],onChange:function(e){return r({displayPostContentRadio:e})}}),u&&"excerpt"===s&&Object(Q.createElement)(me.RangeControl,{label:Object(J.__)("Max number of words in excerpt"),value:g,onChange:function(e){return r({excerptLength:e})},min:10,max:100})),Object(Q.createElement)(me.PanelBody,{title:Object(J.__)("Post meta settings")},Object(Q.createElement)(me.ToggleControl,{label:Object(J.__)("Display author name"),checked:m,onChange:function(e){return r({displayAuthor:e})}}),Object(Q.createElement)(me.ToggleControl,{label:Object(J.__)("Display post date"),checked:b,onChange:function(e){return r({displayPostDate:e})}})),Object(Q.createElement)(me.PanelBody,{title:Object(J.__)("Featured image settings")},Object(Q.createElement)(me.ToggleControl,{label:Object(J.__)("Display featured image"),checked:l,onChange:function(e){return r({displayFeaturedImage:e})}}),l&&Object(Q.createElement)(Q.Fragment,null,Object(Q.createElement)(Y.__experimentalImageSizeControl,{onChange:function(e){var t={};e.hasOwnProperty("width")&&(t.featuredImageSizeWidth=e.width),e.hasOwnProperty("height")&&(t.featuredImageSizeHeight=e.height),r(t)},slug:f,width:O,height:v,imageWidth:k,imageHeight:E,imageSizeOptions:w,onChangeImage:function(e){return r({featuredImageSizeSlug:e,featuredImageSizeWidth:void 0,featuredImageSizeHeight:void 0})}}),Object(Q.createElement)(me.BaseControl,{className:"block-editor-image-alignment-control__row"},Object(Q.createElement)(me.BaseControl.VisualLabel,null,Object(J.__)("Image alignment")),Object(Q.createElement)(Y.BlockAlignmentToolbar,{value:h,onChange:function(e){return r({featuredImageAlign:e})},controls:["left","center","right"],isCollapsed:!1})),Object(Q.createElement)(me.ToggleControl,{label:Object(J.__)("Add link to featured image"),checked:j,onChange:function(e){return r({addLinkToFeaturedImage:e})}}))),Object(Q.createElement)(me.PanelBody,{title:Object(J.__)("Sorting and filtering")},Object(Q.createElement)(me.QueryControls,Object(ue.a)({order:c,orderBy:o},{numberOfItems:n,onOrderChange:function(e){return r({order:e})},onOrderByChange:function(e){return r({orderBy:e})},onNumberOfItemsChange:function(e){return r({postsToShow:e})},categorySuggestions:M,onCategoryChange:function(e){if(!e.some((function(e){return"string"==typeof e&&!M[e]}))){var t=e.map((function(e){return"string"==typeof e?M[e]:e}));if(Object(X.includes)(t,null))return!1;r({categories:t})}},selectedCategories:a,onAuthorChange:function(e){return r({selectedAuthor:""!==e?Number(e):void 0})},authorList:z,selectedAuthorId:i})),"grid"===d&&Object(Q.createElement)(me.RangeControl,{label:Object(J.__)("Columns"),value:p,onChange:function(e){return r({columns:e})},min:2,max:H?Math.min(6,_.length):6,required:!0}))),A=Object(Y.useBlockProps)({className:ne()(Object(Z.a)({"wp-block-latest-posts__list":!0,"is-grid":"grid"===d,"has-dates":b,"has-author":m},"columns-".concat(p),"grid"===d))}),H=Array.isArray(_)&&_.length;if(!H)return Object(Q.createElement)("div",A,V,Object(Q.createElement)(me.Placeholder,{icon:sc,label:Object(J.__)("Latest Posts")},Array.isArray(_)?Object(J.__)("No posts found."):Object(Q.createElement)(me.Spinner,null)));var L=_.length>n?_.slice(0,n):_,I=[{icon:ci,title:Object(J.__)("List view"),onClick:function(){return r({postLayout:"list"})},isActive:"list"===d},{icon:oi,title:Object(J.__)("Grid view"),onClick:function(){return r({postLayout:"grid"})},isActive:"grid"===d}],D=Object(ni.__experimentalGetSettings)().formats.date;return Object(Q.createElement)(Q.Fragment,null,V,Object(Q.createElement)(Y.BlockControls,null,Object(Q.createElement)(me.ToolbarGroup,{controls:I})),Object(Q.createElement)("ul",A,L.map((function(e,t){var r=Object(X.invoke)(e,["title","rendered","trim"]),n=e.excerpt.rendered,c=z.find((function(t){return t.id===e.author})),o=document.createElement("div");o.innerHTML=n,n=o.textContent||o.innerText||"";var a=e.featuredImageInfo,i=(a=void 0===a?{}:a).url,d=a.alt,p=ne()(Object(Z.a)({"wp-block-latest-posts__featured-image":!0},"align".concat(h),!!h)),f=l&&i,y=f&&Object(Q.createElement)("img",{src:i,alt:d,style:{maxWidth:O,maxHeight:v}}),w=g1?n:Object(ur.replace)(n,/\n/g,ur.__UNSTABLE_LINE_SEPARATOR)})),ur.__UNSTABLE_LINE_SEPARATOR),multilineTag:"li"}),anchor:e.anchor})}},{type:"block",blocks:["core/quote","core/pullquote"],transform:function(e){var t=e.value,r=e.anchor;return Object(K.createBlock)("core/list",{values:Object(ur.toHTMLString)({value:Object(ur.create)({html:t,multilineTag:"p"}),multilineTag:"li"}),anchor:r})}},{type:"raw",selector:"ol,ul",schema:function(e){return{ol:Ci(e).ol,ul:Ci(e).ul}},transform:function(e){var t={ordered:"OL"===e.nodeName,anchor:""===e.id?void 0:e.id};if(t.ordered){var r=e.getAttribute("type");r&&(t.type=r),null!==e.getAttribute("reversed")&&(t.reversed=!0);var n=parseInt(e.getAttribute("start"),10);isNaN(n)||1===n&&!t.reversed||(t.start=n)}return Object(K.createBlock)("core/list",Ei(Ei({},Object(K.getBlockAttributes)("core/list",e.outerHTML)),t))}}].concat(Object(q.a)(["*","-"].map((function(e){return{type:"prefix",prefix:e,transform:function(e){return Object(K.createBlock)("core/list",{values:"
  • ".concat(e,"
  • ")})}}}))),Object(q.a)(["1.","1)"].map((function(e){return{type:"prefix",prefix:e,transform:function(e){return Object(K.createBlock)("core/list",{ordered:!0,values:"
  • ".concat(e,"
  • ")})}}})))),to:[{type:"block",blocks:["core/paragraph"],transform:function(e){var t=e.values;return Object(ur.split)(Object(ur.create)({html:t,multilineTag:"li",multilineWrapperTags:["ul","ol"]}),ur.__UNSTABLE_LINE_SEPARATOR).map((function(e){return Object(K.createBlock)("core/paragraph",{content:Object(ur.toHTMLString)({value:e})})}))}},{type:"block",blocks:["core/heading"],transform:function(e){var t=e.values;return Object(ur.split)(Object(ur.create)({html:t,multilineTag:"li",multilineWrapperTags:["ul","ol"]}),ur.__UNSTABLE_LINE_SEPARATOR).map((function(e){return Object(K.createBlock)("core/heading",{content:Object(ur.toHTMLString)({value:e})})}))}},{type:"block",blocks:["core/quote"],transform:function(e){var t=e.values,r=e.anchor;return Object(K.createBlock)("core/quote",{value:Object(ur.toHTMLString)({value:Object(ur.create)({html:t,multilineTag:"li",multilineWrapperTags:["ul","ol"]}),multilineTag:"p"}),anchor:r})}},{type:"block",blocks:["core/pullquote"],transform:function(e){var t=e.values,r=e.anchor;return Object(K.createBlock)("core/pullquote",{value:Object(ur.toHTMLString)({value:Object(ur.create)({html:t,multilineTag:"li",multilineWrapperTags:["ul","ol"]}),multilineTag:"p"}),anchor:r})}}]};function Si(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Pi(e){for(var t=1;tAlice.
  • The White Rabbit.
  • The Cheshire Cat.
  • The Mad Hatter.
  • The Queen of Hearts.
  • "}},transforms:xi,merge:function(e,t){var r=t.values;return r&&"
  • "!==r?Pi(Pi({},e),{},{values:e.values+r}):e},edit:function(e){var t=e.attributes,r=e.setAttributes,n=e.mergeBlocks,c=e.onReplace,o=e.isSelected,a=t.ordered,i=t.values,l=t.type,s=t.reversed,u=t.start,b=a?"ol":"ul",m=Object(de.useSelect)((function(e){return!!e("core/block-editor").getSettings().isRTL}),[]),d=Object(Y.useBlockProps)();return Object(Q.createElement)(Q.Fragment,null,Object(Q.createElement)(Y.RichText,Object(ue.a)({identifier:"values",multiline:"li",__unstableMultilineRootTag:b,tagName:b,onChange:function(e){return r({values:e})},value:i,placeholder:Object(J.__)("Write list…"),onMerge:n,onSplit:function(e){return Object(K.createBlock)(Ti,_i(_i({},t),{},{values:e}))},__unstableOnSplitMiddle:function(){return Object(K.createBlock)("core/paragraph")},onReplace:c,onRemove:function(){return c([])},start:u,reversed:s,type:l},d),(function(e){var t=e.value,n=e.onChange,c=e.onFocus;return Object(Q.createElement)(Q.Fragment,null,o&&Object(Q.createElement)(Q.Fragment,null,Object(Q.createElement)(Y.RichTextShortcut,{type:"primary",character:"[",onUse:function(){n(Object(ur.__unstableOutdentListItems)(t))}}),Object(Q.createElement)(Y.RichTextShortcut,{type:"primary",character:"]",onUse:function(){n(Object(ur.__unstableIndentListItems)(t,{type:b}))}}),Object(Q.createElement)(Y.RichTextShortcut,{type:"primary",character:"m",onUse:function(){n(Object(ur.__unstableIndentListItems)(t,{type:b}))}}),Object(Q.createElement)(Y.RichTextShortcut,{type:"primaryShift",character:"m",onUse:function(){n(Object(ur.__unstableOutdentListItems)(t))}})),Object(Q.createElement)(Y.BlockControls,null,Object(Q.createElement)(me.ToolbarGroup,{controls:[{icon:m?di:pi,title:Object(J.__)("Convert to unordered list"),isActive:Object(ur.__unstableIsActiveListType)(t,"ul",b),onClick:function(){n(Object(ur.__unstableChangeListType)(t,{type:"ul"})),c(),Object(ur.__unstableIsListRootSelected)(t)&&r({ordered:!1})}},{icon:m?gi:hi,title:Object(J.__)("Convert to ordered list"),isActive:Object(ur.__unstableIsActiveListType)(t,"ol",b),onClick:function(){n(Object(ur.__unstableChangeListType)(t,{type:"ol"})),c(),Object(ur.__unstableIsListRootSelected)(t)&&r({ordered:!0})}},{icon:m?fi:Oi,title:Object(J.__)("Outdent list item"),shortcut:Object(J._x)("Backspace","keyboard key"),isDisabled:!Object(ur.__unstableCanOutdentListItems)(t),onClick:function(){n(Object(ur.__unstableOutdentListItems)(t)),c()}},{icon:m?vi:ji,title:Object(J.__)("Indent list item"),shortcut:Object(J._x)("Space","keyboard key"),isDisabled:!Object(ur.__unstableCanIndentListItems)(t),onClick:function(){n(Object(ur.__unstableIndentListItems)(t,{type:b})),c()}}]})))})),a&&Object(Q.createElement)(yi,{setAttributes:r,ordered:a,reversed:s,start:u}))},save:function(e){var t=e.attributes,r=t.ordered,n=t.values,c=t.type,o=t.reversed,a=t.start,i=r?"ol":"ul";return Object(Q.createElement)(i,Y.useBlockProps.save({type:c,reversed:o,start:a}),Object(Q.createElement)(Y.RichText.Content,{value:n,multiline:"li"}))}};var Ni=Object(de.withDispatch)((function(e,t){var r=t.clientId,n=t.attributes,c=e("core/block-editor").replaceBlock;return{convertToHTML:function(){c(r,Object(K.createBlock)("core/html",{content:n.originalUndelimitedContent}))}}}))((function(e){var t,r=e.attributes,n=e.convertToHTML,c=r.originalName,o=r.originalUndelimitedContent,a=!!o,i=Object(K.getBlockType)("core/html"),l=[];return a&&i?(t=Object(J.sprintf)(Object(J.__)('Your site doesn’t include support for the "%s" block. You can leave this block intact, convert its content to a Custom HTML block, or remove it entirely.'),c),l.push(Object(Q.createElement)(me.Button,{key:"convert",onClick:n,isPrimary:!0},Object(J.__)("Keep as HTML")))):t=Object(J.sprintf)(Object(J.__)('Your site doesn’t include support for the "%s" block. You can leave this block intact or remove it entirely.'),c),Object(Q.createElement)("div",Object(Y.useBlockProps)(),Object(Q.createElement)(Y.Warning,{actions:l},t),Object(Q.createElement)(Q.RawHTML,null,o))}));var Mi={apiVersion:2,name:"core/missing",category:"text",attributes:{originalName:{type:"string"},originalUndelimitedContent:{type:"string"},originalContent:{type:"string",source:"html"}},supports:{className:!1,customClassName:!1,inserter:!1,html:!1,reusable:!1}},Ri=Mi.name,Vi={name:Ri,title:Object(J.__)("Unsupported"),description:Object(J.__)("Your site doesn’t include support for this block."),__experimentalLabel:function(e,t){if("accessibility"===t.context){var r=e.originalName,n=r?Object(K.getBlockType)(r):void 0;return n?n.settings.title||r:""}},edit:Ni,save:function(e){var t=e.attributes;return Object(Q.createElement)(Q.RawHTML,null,t.originalContent)}},Ai=Object(Q.createElement)(ee.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(Q.createElement)(ee.Path,{d:"M4 9v1.5h16V9H4zm12 5.5h4V13h-4v1.5zm-6 0h4V13h-4v1.5zm-6 0h4V13H4v1.5z"})),Hi=Object(J.__)("Read more");var Li={from:[{type:"raw",schema:{"wp-block":{attributes:["data-block"]}},isMatch:function(e){return e.dataset&&"core/more"===e.dataset.block},transform:function(e){var t=e.dataset,r=t.customText,n=t.noTeaser,c={};return r&&(c.customText=r),""===n&&(c.noTeaser=!0),Object(K.createBlock)("core/more",c)}}]},Ii={apiVersion:2,name:"core/more",category:"design",attributes:{customText:{type:"string"},noTeaser:{type:"boolean",default:!1}},supports:{customClassName:!1,className:!1,html:!1,multiple:!1}},Di=Ii.name,Fi={title:Object(J._x)("More","block name"),description:Object(J.__)("Content before this block will be shown in the excerpt on your archives page."),keywords:[Object(J.__)("read more")],icon:Ai,example:{},__experimentalLabel:function(e,t){if("accessibility"===t.context)return e.customText},transforms:Li,edit:function(e){var t=e.attributes,r=t.customText,n=t.noTeaser,c=e.insertBlocksAfter,o=e.setAttributes,a={width:"".concat((r||Hi).length+1.2,"em")};return Object(Q.createElement)(Q.Fragment,null,Object(Q.createElement)(Y.InspectorControls,null,Object(Q.createElement)(me.PanelBody,null,Object(Q.createElement)(me.ToggleControl,{label:Object(J.__)("Hide the excerpt on the full content page"),checked:!!n,onChange:function(){return o({noTeaser:!n})},help:function(e){return e?Object(J.__)("The excerpt is hidden."):Object(J.__)("The excerpt is visible.")}}))),Object(Q.createElement)("div",Object(Y.useBlockProps)(),Object(Q.createElement)("div",{className:"wp-block-more"},Object(Q.createElement)("input",{"aria-label":Object(J.__)("Read more link text"),type:"text",value:r,placeholder:Hi,onChange:function(e){o({customText:""!==e.target.value?e.target.value:void 0})},onKeyDown:function(e){e.keyCode===Wt.ENTER&&c([Object(K.createBlock)(Object(K.getDefaultBlockName)())])},style:a}))))},save:function(e){var t=e.attributes,r=t.customText,n=t.noTeaser,c=r?"\x3c!--more ".concat(r,"--\x3e"):"\x3c!--more--\x3e",o=n?"\x3c!--noteaser--\x3e":"";return Object(Q.createElement)(Q.RawHTML,null,Object(X.compact)([c,o]).join("\n"))}},Gi=Object(Q.createElement)(ee.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(Q.createElement)(ee.Path,{d:"M7.8 6c0-.7.6-1.2 1.2-1.2h6c.7 0 1.2.6 1.2 1.2v3h1.5V6c0-1.5-1.2-2.8-2.8-2.8H9C7.5 3.2 6.2 4.5 6.2 6v3h1.5V6zm8.4 11c0 .7-.6 1.2-1.2 1.2H9c-.7 0-1.2-.6-1.2-1.2v-3H6.2v3c0 1.5 1.2 2.8 2.8 2.8h6c1.5 0 2.8-1.2 2.8-2.8v-3h-1.5v3zM4 11v1h16v-1H4z"}));var Ui={from:[{type:"raw",schema:{"wp-block":{attributes:["data-block"]}},isMatch:function(e){return e.dataset&&"core/nextpage"===e.dataset.block},transform:function(){return Object(K.createBlock)("core/nextpage",{})}}]},Wi={apiVersion:2,name:"core/nextpage",category:"design",parent:["core/post-content"],supports:{customClassName:!1,className:!1,html:!1}},qi=Wi.name,Zi={title:Object(J.__)("Page Break"),description:Object(J.__)("Separate your content into a multi-page experience."),icon:Gi,keywords:[Object(J.__)("next page"),Object(J.__)("pagination")],example:{},transforms:Ui,edit:function(){return Object(Q.createElement)("div",Object(Y.useBlockProps)(),Object(Q.createElement)("div",{className:"wp-block-nextpage"},Object(Q.createElement)("span",null,Object(J.__)("Page break"))))},save:function(){return Object(Q.createElement)(Q.RawHTML,null,"\x3c!--nextpage--\x3e")}},$i=Object(Q.createElement)(ee.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(Q.createElement)(ee.Path,{d:"M18 4H6c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm.5 14c0 .3-.2.5-.5.5H6c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h12c.3 0 .5.2.5.5v12zM7 16.5h6V15H7v1.5zm4-4h6V11h-6v1.5zM9 11H7v1.5h2V11zm6 5.5h2V15h-2v1.5z"}));var Yi={from:[{type:"block",blocks:["core/code","core/paragraph"],transform:function(e){var t=e.content,r=e.anchor;return Object(K.createBlock)("core/preformatted",{content:t,anchor:r})}},{type:"raw",isMatch:function(e){return"PRE"===e.nodeName&&!(1===e.children.length&&"CODE"===e.firstChild.nodeName)},schema:function(e){return{pre:{children:e.phrasingContentSchema}}}}],to:[{type:"block",blocks:["core/paragraph"],transform:function(e){return Object(K.createBlock)("core/paragraph",e)}},{type:"block",blocks:["core/code"],transform:function(e){return Object(K.createBlock)("core/code",e)}}]},Ki={apiVersion:2,name:"core/preformatted",category:"text",attributes:{content:{type:"string",source:"html",selector:"pre",default:"",__unstablePreserveWhiteSpace:!0}},supports:{anchor:!0}},Xi=Ki.name,Ji={title:Object(J.__)("Preformatted"),description:Object(J.__)("Add text that respects your spacing and tabs, and also allows styling."),icon:$i,example:{attributes:{content:Object(J.__)("EXT. XANADU - FAINT DAWN - 1940 (MINIATURE)\nWindow, very small in the distance, illuminated.\nAll around this is an almost totally black screen. Now, as the camera moves slowly towards the window which is almost a postage stamp in the frame, other forms appear;")}},transforms:Yi,edit:function(e){var t=e.attributes,r=e.mergeBlocks,n=e.setAttributes,c=t.content,o=Object(Y.useBlockProps)();return Object(Q.createElement)(Y.RichText,Object(ue.a)({tagName:"pre",identifier:"content",preserveWhiteSpace:!0,value:c,onChange:function(e){n({content:e})},placeholder:Object(J.__)("Write preformatted text…"),onMerge:r},o))},save:function(e){var t=e.attributes.content;return Object(Q.createElement)("pre",Y.useBlockProps.save(),Object(Q.createElement)(Y.RichText.Content,{value:t}))},merge:function(e,t){return{content:e.content+t.content}}},Qi=Object(Q.createElement)(ee.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(Q.createElement)(ee.Path,{d:"M18 8H6c-1.1 0-2 .9-2 2v4c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-4c0-1.1-.9-2-2-2zm.5 6c0 .3-.2.5-.5.5H6c-.3 0-.5-.2-.5-.5v-4c0-.3.2-.5.5-.5h12c.3 0 .5.2.5.5v4zM4 4v1.5h16V4H4zm0 16h16v-1.5H4V20z"})),el="is-style-".concat("solid-color");function tl(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function rl(e){for(var t=1;t".concat(t,"

    "),anchor:r})}}],to:[{type:"block",blocks:["core/paragraph"],transform:function(e){var t=e.value,r=e.citation,n=[];return t&&"

    "!==t&&n.push.apply(n,Object(q.a)(Object(ur.split)(Object(ur.create)({html:t,multilineTag:"p"}),"\u2028").map((function(e){return Object(K.createBlock)("core/paragraph",{content:Object(ur.toHTMLString)({value:e})})})))),r&&"

    "!==r&&n.push(Object(K.createBlock)("core/paragraph",{content:r})),0===n.length?Object(K.createBlock)("core/paragraph",{content:""}):n}},{type:"block",blocks:["core/heading"],transform:function(e){var t=e.value,r=e.citation,n=Object(Vt.a)(e,["value","citation"]);if("

    "===t)return Object(K.createBlock)("core/heading",{content:r});var c=Object(ur.split)(Object(ur.create)({html:t,multilineTag:"p"}),"\u2028"),o=Object(K.createBlock)("core/heading",{content:Object(ur.toHTMLString)({value:c[0]})});if(!r&&1===c.length)return o;var a=c.slice(1);return[o,Object(K.createBlock)("core/pullquote",ul(ul({},n),{},{citation:r,value:Object(ur.toHTMLString)({value:a.length?Object(ur.join)(c.slice(1),"\u2028"):Object(ur.create)(),multilineTag:"p"})}))]}}]},ml={apiVersion:2,name:"core/pullquote",category:"text",attributes:{value:{type:"string",source:"html",selector:"blockquote",multiline:"p"},citation:{type:"string",source:"html",selector:"cite",default:""},mainColor:{type:"string"},customMainColor:{type:"string"},textColor:{type:"string"},customTextColor:{type:"string"}},supports:{anchor:!0,align:["left","right","wide","full"]}},dl=ml.name,pl={title:Object(J.__)("Pullquote"),description:Object(J.__)("Give special visual emphasis to a quote from your text."),icon:Qi,example:{attributes:{value:"

    "+Object(J.__)("One of the hardest things to do in technology is disrupt yourself.")+"

    ",citation:Object(J.__)("Matt Mullenweg")}},styles:[{name:"default",label:Object(J._x)("Default","block style"),isDefault:!0},{name:"solid-color",label:Object(J.__)("Solid color")}],transforms:bl,edit:ll,save:function(e){var t,r,n=e.attributes,c=n.mainColor,o=n.customMainColor,a=n.textColor,i=n.customTextColor,l=n.value,s=n.citation,u=n.className;if(Object(X.includes)(u,el)){var b=Object(Y.getColorClassName)("background-color",c);t=ne()(Object(Z.a)({"has-background":b||o},b,b)),r={backgroundColor:b?void 0:o}}else o&&(r={borderColor:o});var m=Object(Y.getColorClassName)("color",a),d=(a||i)&&ne()("has-text-color",Object(Z.a)({},m,m)),p=m?void 0:{color:i};return Object(Q.createElement)("figure",Y.useBlockProps.save({className:t,style:r}),Object(Q.createElement)("blockquote",{className:d,style:p},Object(Q.createElement)(Y.RichText.Content,{value:l,multiline:!0}),!Y.RichText.isEmpty(s)&&Object(Q.createElement)(Y.RichText.Content,{tagName:"cite",value:s})))},deprecated:ol},gl=r(20),hl=r.n(gl),fl=r(45);function Ol(e){var t=e.isEditDisabled,r=e.isEditing,n=e.isSaving,c=e.onChangeTitle,o=e.onEdit,a=e.onSave,i=e.title,l=Object(xe.useInstanceId)(Ol),s=Object(Q.useRef)(),u=Object(Q.useRef)(),b=Object(xe.usePrevious)(r),m=Object(xe.usePrevious)(n);return Object(Q.useEffect)((function(){!b&&r&&s.current.select()}),[r]),Object(Q.useEffect)((function(){!b&&!m||r||n||u.current.focus()}),[r,n]),Object(Q.createElement)(Q.Fragment,null,!r&&!n&&Object(Q.createElement)("div",{className:"reusable-block-edit-panel"},Object(Q.createElement)("b",{className:"reusable-block-edit-panel__info"},i),Object(Q.createElement)(me.Button,{ref:u,isSecondary:!0,className:"reusable-block-edit-panel__button",disabled:t,onClick:o},Object(J.__)("Edit"))),(r||n)&&Object(Q.createElement)("form",{className:"reusable-block-edit-panel",onSubmit:function(e){e.preventDefault(),a()}},Object(Q.createElement)("label",{htmlFor:"reusable-block-edit-panel__title-".concat(l),className:"reusable-block-edit-panel__label"},Object(J.__)("Name:")),Object(Q.createElement)("input",{ref:s,type:"text",disabled:n,className:"reusable-block-edit-panel__title",value:i,onChange:function(e){c(e.target.value)},id:"reusable-block-edit-panel__title-".concat(l)}),Object(Q.createElement)(me.Button,{type:"submit",isSecondary:!0,isBusy:n,disabled:!i||n,className:"reusable-block-edit-panel__button"},Object(J.__)("Save"))))}var vl={apiVersion:2,name:"core/block",category:"reusable",attributes:{ref:{type:"number"}},supports:{customClassName:!1,html:!1,inserter:!1}},jl=vl.name,yl={title:Object(J.__)("Reusable Block"),description:Object(J.__)("Create and save content to reuse across your site. Update the block, and the changes apply everywhere it’s used."),edit:function(e){var t=e.attributes.ref,r=e.clientId,n=e.isSelected,c=["postType","wp_block",t],o=Object(de.useSelect)((function(e){var n,o;return{reusableBlock:(n=e("core")).getEditedEntityRecord.apply(n,c),hasResolved:e("core").hasFinishedResolution("getEditedEntityRecord",c),isSaving:(o=e("core")).isSavingEntityRecord.apply(o,c),canUserUpdate:e("core").canUser("update","blocks",t),isEditing:e("core/reusable-blocks").__experimentalIsEditingReusableBlock(r),settings:e("core/block-editor").getSettings()}}),[t,r]),a=o.reusableBlock,i=o.hasResolved,l=o.isEditing,s=o.isSaving,u=o.canUserUpdate,b=o.settings,m=Object(de.useDispatch)("core"),d=m.editEntityRecord,p=m.saveEditedEntityRecord,g=Object(de.useDispatch)("core/reusable-blocks").__experimentalSetEditingReusableBlock,h=Object(Q.useCallback)((function(e){g(r,e)}),[r]),f=Object(de.useDispatch)("core/reusable-blocks").__experimentalConvertBlockToStatic,O=Object(de.useDispatch)("core/notices"),v=O.createSuccessNotice,j=O.createErrorNotice,y=Object(Q.useCallback)(Object(fl.a)(hl.a.mark((function e(){return hl.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,p.apply(void 0,c);case 3:v(Object(J.__)("Block updated."),{type:"snackbar"}),e.next=9;break;case 6:e.prev=6,e.t0=e.catch(0),j(e.t0.message,{type:"snackbar"});case 9:case"end":return e.stop()}}),e,null,[[0,6]])}))),c),w=Object($.useEntityBlockEditor)("postType","wp_block",{id:t}),_=Object(be.a)(w,3),k=_[0],E=_[1],C=_[2],x=Object(Y.useBlockProps)();if(!i)return Object(Q.createElement)("div",x,Object(Q.createElement)(me.Placeholder,null,Object(Q.createElement)(me.Spinner,null)));if(!a)return Object(Q.createElement)("div",x,Object(Q.createElement)(me.Placeholder,null,Object(J.__)("Block has been deleted or is unavailable.")));var S=Object(Q.createElement)(Y.BlockEditorProvider,{value:k,onInput:E,onChange:C,settings:b},Object(Q.createElement)(Y.WritingFlow,null,Object(Q.createElement)(Y.BlockList,null)));return l||(S=Object(Q.createElement)(me.Disabled,null,S)),Object(Q.createElement)("div",x,Object(Q.createElement)(Y.BlockControls,null,Object(Q.createElement)(me.ToolbarGroup,null,Object(Q.createElement)(me.ToolbarButton,{onClick:function(){return f(r)}},Object(J.__)("Convert to regular blocks")))),Object(Q.createElement)("div",{className:"block-library-block__reusable-block-container"},(n||l)&&Object(Q.createElement)(Ol,{isEditing:l,title:a.title,isSaving:s,isEditDisabled:!u,onEdit:function(){return h(!0)},onChangeTitle:function(e){return d.apply(void 0,c.concat([{title:e}]))},onSave:function(){y(),h(!1)}}),S))}},wl=Object(Q.createElement)(ee.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(Q.createElement)(ee.Path,{d:"M5 10.2h-.8v1.5H5c1.9 0 3.8.8 5.1 2.1 1.4 1.4 2.1 3.2 2.1 5.1v.8h1.5V19c0-2.3-.9-4.5-2.6-6.2-1.6-1.6-3.8-2.6-6.1-2.6zm10.4-1.6C12.6 5.8 8.9 4.2 5 4.2h-.8v1.5H5c3.5 0 6.9 1.4 9.4 3.9s3.9 5.8 3.9 9.4v.8h1.5V19c0-3.9-1.6-7.6-4.4-10.4zM4 20h3v-3H4v3z"}));var _l={apiVersion:2,name:"core/rss",category:"widgets",attributes:{columns:{type:"number",default:2},blockLayout:{type:"string",default:"list"},feedURL:{type:"string",default:""},itemsToShow:{type:"number",default:5},displayExcerpt:{type:"boolean",default:!1},displayAuthor:{type:"boolean",default:!1},displayDate:{type:"boolean",default:!1},excerptLength:{type:"number",default:55}},supports:{align:!0,html:!1}},kl=_l.name,El={title:Object(J.__)("RSS"),description:Object(J.__)("Display entries from any RSS or Atom feed."),icon:wl,keywords:[Object(J.__)("atom"),Object(J.__)("feed")],example:{attributes:{feedURL:"https://wordpress.org"}},edit:function(e){var t=e.attributes,r=e.setAttributes,n=Object(Q.useState)(!t.feedURL),c=Object(be.a)(n,2),o=c[0],a=c[1],i=t.blockLayout,l=t.columns,s=t.displayAuthor,u=t.displayDate,b=t.displayExcerpt,m=t.excerptLength,d=t.feedURL,p=t.itemsToShow;function g(e){return function(){var n=t[e];r(Object(Z.a)({},e,!n))}}var h=Object(Y.useBlockProps)();if(o)return Object(Q.createElement)("div",h,Object(Q.createElement)(me.Placeholder,{icon:wl,label:"RSS"},Object(Q.createElement)("form",{onSubmit:function(e){e.preventDefault(),d&&a(!1)},className:"wp-block-rss__placeholder-form"},Object(Q.createElement)(me.TextControl,{placeholder:Object(J.__)("Enter URL here…"),value:d,onChange:function(e){return r({feedURL:e})},className:"wp-block-rss__placeholder-input"}),Object(Q.createElement)(me.Button,{isPrimary:!0,type:"submit"},Object(J.__)("Use URL")))));var f=[{icon:Rr.a,title:Object(J.__)("Edit RSS URL"),onClick:function(){return a(!0)}},{icon:ci,title:Object(J.__)("List view"),onClick:function(){return r({blockLayout:"list"})},isActive:"list"===i},{icon:oi,title:Object(J.__)("Grid view"),onClick:function(){return r({blockLayout:"grid"})},isActive:"grid"===i}];return Object(Q.createElement)(Q.Fragment,null,Object(Q.createElement)(Y.BlockControls,null,Object(Q.createElement)(me.ToolbarGroup,{controls:f})),Object(Q.createElement)(Y.InspectorControls,null,Object(Q.createElement)(me.PanelBody,{title:Object(J.__)("RSS settings")},Object(Q.createElement)(me.RangeControl,{label:Object(J.__)("Number of items"),value:p,onChange:function(e){return r({itemsToShow:e})},min:1,max:10,required:!0}),Object(Q.createElement)(me.ToggleControl,{label:Object(J.__)("Display author"),checked:s,onChange:g("displayAuthor")}),Object(Q.createElement)(me.ToggleControl,{label:Object(J.__)("Display date"),checked:u,onChange:g("displayDate")}),Object(Q.createElement)(me.ToggleControl,{label:Object(J.__)("Display excerpt"),checked:b,onChange:g("displayExcerpt")}),b&&Object(Q.createElement)(me.RangeControl,{label:Object(J.__)("Max number of words in excerpt"),value:m,onChange:function(e){return r({excerptLength:e})},min:10,max:100,required:!0}),"grid"===i&&Object(Q.createElement)(me.RangeControl,{label:Object(J.__)("Columns"),value:l,onChange:function(e){return r({columns:e})},min:2,max:6,required:!0}))),Object(Q.createElement)("div",h,Object(Q.createElement)(me.Disabled,null,Object(Q.createElement)(rn.a,{block:"core/rss",attributes:t}))))}},Cl=Object(Q.createElement)(me.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(Q.createElement)(me.Rect,{x:"7",y:"10",width:"10",height:"4",rx:"1",fill:"currentColor"})),xl=Object(Q.createElement)(me.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(Q.createElement)(me.Rect,{x:"4.75",y:"15.25",width:"6.5",height:"9.5",transform:"rotate(-90 4.75 15.25)",stroke:"currentColor","stroke-width":"1.5",fill:"none"}),Object(Q.createElement)(me.Rect,{x:"16",y:"10",width:"4",height:"4",rx:"1",fill:"currentColor"})),Sl=Object(Q.createElement)(me.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(Q.createElement)(me.Rect,{x:"4.75",y:"15.25",width:"6.5",height:"14.5",transform:"rotate(-90 4.75 15.25)",stroke:"currentColor","stroke-width":"1.5",fill:"none"}),Object(Q.createElement)(me.Rect,{x:"14",y:"10",width:"4",height:"4",rx:"1",fill:"currentColor"})),Pl=Object(Q.createElement)(me.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(Q.createElement)(me.Rect,{x:"4.75",y:"15.25",width:"6.5",height:"14.5",transform:"rotate(-90 4.75 15.25)",stroke:"currentColor",fill:"none","stroke-width":"1.5"})),Bl=Object(Q.createElement)(me.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(Q.createElement)(me.Rect,{x:"4.75",y:"7.75",width:"14.5",height:"8.5",rx:"1.25",stroke:"currentColor",fill:"none","stroke-width":"1.5"}),Object(Q.createElement)(me.Rect,{x:"8",y:"11",width:"8",height:"2",fill:"currentColor"})),Tl=Object(Q.createElement)(me.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(Q.createElement)(me.Rect,{x:"4.75",y:"17.25",width:"5.5",height:"14.5",transform:"rotate(-90 4.75 17.25)",stroke:"currentColor",fill:"none","stroke-width":"1.5"}),Object(Q.createElement)(me.Rect,{x:"4",y:"7",width:"10",height:"2",fill:"currentColor"})),zl=[{value:"%",label:"%",default:50},{value:"px",label:"px",default:350}];var Nl=[{name:"default",isDefault:!0,attributes:{buttonText:Object(J.__)("Search"),label:Object(J.__)("Search")}}],Ml={apiVersion:2,name:"core/search",category:"widgets",attributes:{label:{type:"string"},showLabel:{type:"boolean",default:!0},placeholder:{type:"string",default:""},width:{type:"number"},widthUnit:{type:"string"},buttonText:{type:"string"},buttonPosition:{type:"string",default:"button-outside"},buttonUseIcon:{type:"boolean",default:!1}},supports:{align:["left","center","right"],html:!1}},Rl=Ml.name,Vl={title:Object(J.__)("Search"),description:Object(J.__)("Help visitors find your content."),icon:mt.a,keywords:[Object(J.__)("find")],example:{},variations:Nl,edit:function(e){var t=e.className,r=e.attributes,n=e.setAttributes,c=e.toggleSelection,o=e.isSelected,a=r.label,i=r.showLabel,l=r.placeholder,s=r.width,u=r.widthUnit,b=r.align,m=r.buttonText,d=r.buttonPosition,p=r.buttonUseIcon,g=Object(xe.useInstanceId)(Y.__experimentalUnitControl),h="wp-block-search__width-".concat(g),f=function(){return Object(Q.createElement)("input",{className:"wp-block-search__input","aria-label":Object(J.__)("Optional placeholder text"),placeholder:l?void 0:Object(J.__)("Optional placeholder…"),value:l,onChange:function(e){return n({placeholder:e.target.value})}})},O=function(){return Object(Q.createElement)(Q.Fragment,null,p&&Object(Q.createElement)(me.Button,{icon:mt.a,className:"wp-block-search__button"}),!p&&Object(Q.createElement)(Y.RichText,{className:"wp-block-search__button","aria-label":Object(J.__)("Button text"),placeholder:Object(J.__)("Add button text…"),withoutInteractiveFormatting:!0,value:m,onChange:function(e){return n({buttonText:e})}}))},v=Object(Q.createElement)(Q.Fragment,null,Object(Q.createElement)(Y.BlockControls,null,Object(Q.createElement)(me.ToolbarGroup,null,Object(Q.createElement)(me.ToolbarButton,{title:Object(J.__)("Toggle search label"),icon:Tl,onClick:function(){n({showLabel:!i})},className:i?"is-pressed":void 0}),Object(Q.createElement)(me.DropdownMenu,{icon:function(){switch(d){case"button-inside":return Sl;case"button-outside":return xl;case"no-button":return Pl;case"button-only":return Cl}}(),label:Object(J.__)("Change button position")},(function(e){var t=e.onClose;return Object(Q.createElement)(me.MenuGroup,{className:"wp-block-search__button-position-menu"},Object(Q.createElement)(me.MenuItem,{icon:Pl,onClick:function(){n({buttonPosition:"no-button"}),t()}},Object(J.__)("No Button")),Object(Q.createElement)(me.MenuItem,{icon:xl,onClick:function(){n({buttonPosition:"button-outside"}),t()}},Object(J.__)("Button Outside")),Object(Q.createElement)(me.MenuItem,{icon:Sl,onClick:function(){n({buttonPosition:"button-inside"}),t()}},Object(J.__)("Button Inside")))})),"no-button"!==d&&Object(Q.createElement)(me.ToolbarButton,{title:Object(J.__)("Use button with icon"),icon:Bl,onClick:function(){n({buttonUseIcon:!p})},className:p?"is-pressed":void 0}))),Object(Q.createElement)(Y.InspectorControls,null,Object(Q.createElement)(me.PanelBody,{title:Object(J.__)("Display Settings")},Object(Q.createElement)(me.BaseControl,{label:Object(J.__)("Width"),id:h},Object(Q.createElement)(Y.__experimentalUnitControl,{id:h,min:"".concat(220).concat("px"),onChange:function(e){var t="%"===u&&parseInt(e,10)>100?100:e;n({width:parseInt(t,10)})},onUnitChange:function(e){n({width:"%"===e?50:350,widthUnit:e})},style:{maxWidth:80},value:"".concat(s).concat(u),unit:u,units:zl}),Object(Q.createElement)(me.ButtonGroup,{className:"wp-block-search__components-button-group","aria-label":Object(J.__)("Percentage Width")},[25,50,75,100].map((function(e){return Object(Q.createElement)(me.Button,{key:e,isSmall:!0,isPrimary:"".concat(e,"%")==="".concat(s).concat(u),onClick:function(){return n({width:e,widthUnit:"%"})}},e,"%")}))))))),j=Object(Y.useBlockProps)({className:ne()(t,"button-inside"===d?"wp-block-search__button-inside":void 0,"button-outside"===d?"wp-block-search__button-outside":void 0,"no-button"===d?"wp-block-search__no-button":void 0,"button-only"===d?"wp-block-search__button-only":void 0,p||"no-button"===d?void 0:"wp-block-search__text-button",p&&"no-button"!==d?"wp-block-search__icon-button":void 0)});return Object(Q.createElement)("div",j,v,i&&Object(Q.createElement)(Y.RichText,{className:"wp-block-search__label","aria-label":Object(J.__)("Label text"),placeholder:Object(J.__)("Add label…"),withoutInteractiveFormatting:!0,value:a,onChange:function(e){return n({label:e})}}),Object(Q.createElement)(me.ResizableBox,{size:{width:"".concat(s).concat(u)},className:"wp-block-search__inside-wrapper",isResetValueOnUnitChange:!0,minWidth:220,enable:"button-only"===d?{}:{right:"right"!==b,left:"right"===b},onResizeStart:function(e,t,r){n({width:parseInt(r.offsetWidth,10),widthUnit:"px"}),c(!1)},onResizeStop:function(e,t,r,o){n({width:parseInt(s+o.width,10)}),c(!0)},showHandle:o},("button-inside"===d||"button-outside"===d)&&Object(Q.createElement)(Q.Fragment,null,f(),O()),"button-only"===d&&O(),"no-button"===d&&f()))}},Al=Object(Q.createElement)(ee.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(Q.createElement)(ee.Path,{d:"M18 4h-7c-1.1 0-2 .9-2 2v3H6c-1.1 0-2 .9-2 2v7c0 1.1.9 2 2 2h7c1.1 0 2-.9 2-2v-3h3c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm-4.5 14c0 .3-.2.5-.5.5H6c-.3 0-.5-.2-.5-.5v-7c0-.3.2-.5.5-.5h3V13c0 1.1.9 2 2 2h2.5v3zm0-4.5H11c-.3 0-.5-.2-.5-.5v-2.5H13c.3 0 .5.2.5.5v2.5zm5-.5c0 .3-.2.5-.5.5h-3V11c0-1.1-.9-2-2-2h-2.5V6c0-.3.2-.5.5-.5h7c.3 0 .5.2.5.5v7z"}));function Hl(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Ll(e){for(var t=1;tt.indexOf(e)?n:e}),void 0),n=e.map((function(e){return Object(K.createBlock)(e.name,e.attributes,e.innerBlocks)}));return Object(K.createBlock)("core/group",{align:r},n)}}}]},edit:Gl,save:function(e){var t=e.attributes.tagName;return Object(Q.createElement)(t,Y.useBlockProps.save(),Object(Q.createElement)("div",{className:"wp-block-group__inner-container"},Object(Q.createElement)(Y.InnerBlocks.Content,null)))},deprecated:Dl},Zl=Object(Q.createElement)(ee.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(Q.createElement)(ee.Path,{d:"M20.2 7v4H3.8V7H2.2v9h1.6v-3.5h16.4V16h1.6V7z"})),$l=function(e){var t=e.color,r=e.setColor;return Object(Q.createElement)(Y.InspectorControls,null,Object(Q.createElement)(Y.PanelColorSettings,{title:Object(J.__)("Color settings"),colorSettings:[{value:t.color,onChange:r,label:Object(J.__)("Color")}]}))};var Yl=Object(Y.withColors)("color",{textColor:"color"})((function(e){var t=e.color,r=e.setColor,n=e.className;return Object(Q.createElement)(Q.Fragment,null,Object(Q.createElement)(me.HorizontalRule,Object(Y.useBlockProps)({className:ne()(n,Object(Z.a)({"has-background":t.color},t.class,t.class)),style:{backgroundColor:t.color,color:t.color}})),Object(Q.createElement)($l,{color:t,setColor:r}))}));var Kl={from:[{type:"enter",regExp:/^-{3,}$/,transform:function(){return Object(K.createBlock)("core/separator")}},{type:"raw",selector:"hr",schema:{hr:{}}}]},Xl={apiVersion:2,name:"core/separator",category:"design",attributes:{color:{type:"string"},customColor:{type:"string"}},supports:{anchor:!0,align:["center","wide","full"]}},Jl=Xl.name,Ql={title:Object(J.__)("Separator"),description:Object(J.__)("Create a break between ideas or sections with a horizontal separator."),icon:Zl,keywords:[Object(J.__)("horizontal-line"),"hr",Object(J.__)("divider")],example:{attributes:{customColor:"#065174",className:"is-style-wide"}},styles:[{name:"default",label:Object(J.__)("Default"),isDefault:!0},{name:"wide",label:Object(J.__)("Wide Line")},{name:"dots",label:Object(J.__)("Dots")}],transforms:Kl,edit:Yl,save:function(e){var t,r=e.attributes,n=r.color,c=r.customColor,o=Object(Y.getColorClassName)("background-color",n),a=Object(Y.getColorClassName)("color",n),i=ne()((t={"has-text-color has-background":n||c},Object(Z.a)(t,o,o),Object(Z.a)(t,a,a),t)),l={backgroundColor:o?void 0:c,color:a?void 0:c};return Object(Q.createElement)("hr",Y.useBlockProps.save({className:i,style:l}))}},es=Object(Q.createElement)(ee.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(Q.createElement)(ee.Path,{d:"M16 4.2v1.5h2.5v12.5H16v1.5h4V4.2h-4zM4.2 19.8h4v-1.5H5.8V5.8h2.5V4.2h-4l-.1 15.6zm5.1-3.1l1.4.6 4-10-1.4-.6-4 10z"})),ts=r(141);var rs=r(107),ns={from:[{type:"shortcode",tag:"[a-z][a-z0-9_-]*",attributes:{text:{type:"string",shortcode:function(e,t){var r=t.content;return Object(rs.removep)(Object(rs.autop)(r))}}},priority:20}]},cs={apiVersion:2,name:"core/shortcode",category:"widgets",attributes:{text:{type:"string",source:"html"}},supports:{className:!1,customClassName:!1,html:!1}},os=cs.name,as={title:Object(J.__)("Shortcode"),description:Object(J.__)("Insert additional custom elements with a WordPress shortcode."),icon:es,transforms:ns,edit:function e(t){var r=t.attributes,n=t.setAttributes,c=Object(xe.useInstanceId)(e),o="blocks-shortcode-input-".concat(c);return Object(Q.createElement)("div",Object(Y.useBlockProps)({className:"components-placeholder"}),Object(Q.createElement)("label",{htmlFor:o,className:"components-placeholder__label"},Object(Q.createElement)(ts.a,{icon:es}),Object(J.__)("Shortcode")),Object(Q.createElement)(Y.PlainText,{className:"blocks-shortcode__textarea",id:o,value:r.text,placeholder:Object(J.__)("Write shortcode here…"),onChange:function(e){return n({text:e})}}))},save:function(e){var t=e.attributes;return Object(Q.createElement)(Q.RawHTML,null,t.text)}},is=Object(Q.createElement)(ee.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(Q.createElement)(ee.Path,{d:"M12.5 4.2v1.6h4.7L5.8 17.2V12H4.2v7.8H12v-1.6H6.8L18.2 6.8v4.7h1.6V4.2z"})),ls=Object(xe.compose)([Object(de.withDispatch)((function(e){var t=e("core/block-editor").toggleSelection;return{onResizeStart:function(){return t(!1)},onResizeStop:function(){return t(!0)}}})),xe.withInstanceId])((function(e){var t=e.attributes,r=e.isSelected,n=e.setAttributes,c=e.onResizeStart,o=e.onResizeStop,a=Object(Q.useState)(!1),i=Object(be.a)(a,2),l=i[0],s=i[1],u=t.height,b=function(e){n({height:e})};return Object(Q.createElement)(Q.Fragment,null,Object(Q.createElement)(ee.View,Object(Y.useBlockProps)(),Object(Q.createElement)(me.ResizableBox,{className:ne()("block-library-spacer__resize-container",{"is-selected":r}),size:{height:u},minHeight:1,enable:{top:!1,right:!1,bottom:!0,left:!1,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1},onResizeStart:function(){c.apply(void 0,arguments),s(!0)},onResizeStop:function(e,t,r,n){o();var c=Math.min(parseInt(u+n.height,10),500);b(c),s(!1)},showHandle:r,__experimentalShowTooltip:!0,__experimentalTooltipProps:{axis:"y",position:"bottom",isVisible:l}})),Object(Q.createElement)(Y.InspectorControls,null,Object(Q.createElement)(me.PanelBody,{title:Object(J.__)("Spacer settings")},Object(Q.createElement)(me.RangeControl,{label:Object(J.__)("Height in pixels"),min:1,max:Math.max(500,u),value:u,onChange:b}))))}));var ss={apiVersion:2,name:"core/spacer",category:"design",attributes:{height:{type:"number",default:100}},supports:{anchor:!0}},us=ss.name,bs={title:Object(J.__)("Spacer"),description:Object(J.__)("Add white space between blocks and customize its height."),icon:is,edit:ls,save:function(e){var t=e.attributes;return Object(Q.createElement)("div",Y.useBlockProps.save({style:{height:t.height},"aria-hidden":!0}))}},ms=r(36),ds=r.n(ms);var ps={to:[{type:"block",blocks:["core/paragraph"],transform:function(e){return Object(K.createBlock)("core/paragraph",e)}}]},gs={apiVersion:2,name:"core/subhead",category:"text",attributes:{align:{type:"string"},content:{type:"string",source:"html",selector:"p"}},supports:{inserter:!1,multiple:!1}},hs=gs.name,fs={title:Object(J.__)("Subheading (deprecated)"),description:Object(J.__)("This block is deprecated. Please use the Paragraph block instead."),icon:Object(Q.createElement)(me.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(Q.createElement)(me.Path,{d:"M7.1 6l-.5 3h4.5L9.4 19h3l1.8-10h4.5l.5-3H7.1z"})),transforms:ps,edit:function(e){var t=e.attributes,r=e.setAttributes,n=e.className,c=t.align,o=t.content,a=t.placeholder;return ds()("The Subheading block",{alternative:"the Paragraph block",plugin:"Gutenberg"}),Object(Q.createElement)(Q.Fragment,null,Object(Q.createElement)(Y.BlockControls,null,Object(Q.createElement)(Y.AlignmentToolbar,{value:c,onChange:function(e){r({align:e})}})),Object(Q.createElement)("div",Object(Y.useBlockProps)(),Object(Q.createElement)(Y.RichText,{tagName:"p",value:o,onChange:function(e){r({content:e})},style:{textAlign:c},className:n,placeholder:a||Object(J.__)("Write subheading…")})))},save:function(e){var t=e.attributes,r=t.align,n=t.content;return Object(Q.createElement)("p",Y.useBlockProps.save({style:{textAlign:r}}),Object(Q.createElement)(Y.RichText.Content,{value:n}))}},Os=Object(Q.createElement)(ee.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(Q.createElement)(ee.Path,{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zM5 4.5h14c.3 0 .5.2.5.5v3.5h-15V5c0-.3.2-.5.5-.5zm8 5.5h6.5v3.5H13V10zm-1.5 3.5h-7V10h7v3.5zm-7 5.5v-4h7v4.5H5c-.3 0-.5-.2-.5-.5zm14.5.5h-6V15h6.5v4c0 .3-.2.5-.5.5z"})),vs=[{attributes:{hasFixedLayout:{type:"boolean",default:!1},backgroundColor:{type:"string"},head:{type:"array",default:[],source:"query",selector:"thead tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:{content:{type:"string",source:"html"},tag:{type:"string",default:"td",source:"tag"},scope:{type:"string",source:"attribute",attribute:"scope"}}}}},body:{type:"array",default:[],source:"query",selector:"tbody tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:{content:{type:"string",source:"html"},tag:{type:"string",default:"td",source:"tag"},scope:{type:"string",source:"attribute",attribute:"scope"}}}}},foot:{type:"array",default:[],source:"query",selector:"tfoot tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:{content:{type:"string",source:"html"},tag:{type:"string",default:"td",source:"tag"},scope:{type:"string",source:"attribute",attribute:"scope"}}}}}},supports:{align:!0},save:function(e){var t=e.attributes,r=t.hasFixedLayout,n=t.head,c=t.body,o=t.foot,a=t.backgroundColor;if(!n.length&&!c.length&&!o.length)return null;var i=Object(Y.getColorClassName)("background-color",a),l=ne()(i,{"has-fixed-layout":r,"has-background":!!i}),s=function(e){var t=e.type,r=e.rows;if(!r.length)return null;var n="t".concat(t);return Object(Q.createElement)(n,null,r.map((function(e,t){var r=e.cells;return Object(Q.createElement)("tr",{key:t},r.map((function(e,t){var r=e.content,n=e.tag,c=e.scope;return Object(Q.createElement)(Y.RichText.Content,{tagName:n,value:r,key:t,scope:"th"===n?c:void 0})})))})))};return Object(Q.createElement)("table",{className:l},Object(Q.createElement)(s,{type:"head",rows:n}),Object(Q.createElement)(s,{type:"body",rows:c}),Object(Q.createElement)(s,{type:"foot",rows:o}))}}],js=r(304),ys=r(305),ws=r(306),_s=Object(Q.createElement)(ee.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(Q.createElement)(ee.Path,{d:"M6.656 6.464h2.88v2.88h1.408v-2.88h2.88V5.12h-2.88V2.24H9.536v2.88h-2.88zM0 17.92V0h20.48v17.92H0zm7.68-2.56h5.12v-3.84H7.68v3.84zm-6.4 0H6.4v-3.84H1.28v3.84zM19.2 1.28H1.28v9.024H19.2V1.28zm0 10.24h-5.12v3.84h5.12v-3.84zM6.656 6.464h2.88v2.88h1.408v-2.88h2.88V5.12h-2.88V2.24H9.536v2.88h-2.88zM0 17.92V0h20.48v17.92H0zm7.68-2.56h5.12v-3.84H7.68v3.84zm-6.4 0H6.4v-3.84H1.28v3.84zM19.2 1.28H1.28v9.024H19.2V1.28zm0 10.24h-5.12v3.84h5.12v-3.84z"})),ks=Object(Q.createElement)(ee.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(Q.createElement)(ee.Path,{d:"M13.824 10.176h-2.88v-2.88H9.536v2.88h-2.88v1.344h2.88v2.88h1.408v-2.88h2.88zM0 17.92V0h20.48v17.92H0zM6.4 1.28H1.28v3.84H6.4V1.28zm6.4 0H7.68v3.84h5.12V1.28zm6.4 0h-5.12v3.84h5.12V1.28zm0 5.056H1.28v9.024H19.2V6.336z"})),Es=Object(Q.createElement)(ee.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(Q.createElement)(ee.Path,{d:"M17.728 11.456L14.592 8.32l3.2-3.2-1.536-1.536-3.2 3.2L9.92 3.648 8.384 5.12l3.2 3.2-3.264 3.264 1.536 1.536 3.264-3.264 3.136 3.136 1.472-1.536zM0 17.92V0h20.48v17.92H0zm19.2-6.4h-.448l-1.28-1.28H19.2V6.4h-1.792l1.28-1.28h.512V1.28H1.28v3.84h6.208l1.28 1.28H1.28v3.84h7.424l-1.28 1.28H1.28v3.84H19.2v-3.84z"})),Cs=Object(Q.createElement)(ee.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(Q.createElement)(ee.Path,{d:"M6.4 3.776v3.648H2.752v1.792H6.4v3.648h1.728V9.216h3.712V7.424H8.128V3.776zM0 17.92V0h20.48v17.92H0zM12.8 1.28H1.28v14.08H12.8V1.28zm6.4 0h-5.12v3.84h5.12V1.28zm0 5.12h-5.12v3.84h5.12V6.4zm0 5.12h-5.12v3.84h5.12v-3.84z"})),xs=Object(Q.createElement)(ee.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(Q.createElement)(ee.Path,{d:"M14.08 12.864V9.216h3.648V7.424H14.08V3.776h-1.728v3.648H8.64v1.792h3.712v3.648zM0 17.92V0h20.48v17.92H0zM6.4 1.28H1.28v3.84H6.4V1.28zm0 5.12H1.28v3.84H6.4V6.4zm0 5.12H1.28v3.84H6.4v-3.84zM19.2 1.28H7.68v14.08H19.2V1.28z"})),Ss=Object(Q.createElement)(ee.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(Q.createElement)(ee.Path,{d:"M6.4 9.98L7.68 8.7v-.256L6.4 7.164V9.98zm6.4-1.532l1.28-1.28V9.92L12.8 8.64v-.192zm7.68 9.472V0H0v17.92h20.48zm-1.28-2.56h-5.12v-1.024l-.256.256-1.024-1.024v1.792H7.68v-1.792l-1.024 1.024-.256-.256v1.024H1.28V1.28H6.4v2.368l.704-.704.576.576V1.216h5.12V3.52l.96-.96.32.32V1.216h5.12V15.36zm-5.76-2.112l-3.136-3.136-3.264 3.264-1.536-1.536 3.264-3.264L5.632 5.44l1.536-1.536 3.136 3.136 3.2-3.2 1.536 1.536-3.2 3.2 3.136 3.136-1.536 1.536z"})),Ps=Object(Q.createElement)(ee.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(Q.createElement)(ee.Path,{d:"M4 6v11.5h16V6H4zm1.5 1.5h6V11h-6V7.5zm0 8.5v-3.5h6V16h-6zm13 0H13v-3.5h5.5V16zM13 11V7.5h5.5V11H13z"}));function Bs(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Ts(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:0;if(y){var r=y.columnIndex,n=r+e;c(Rs(t,{columnIndex:n})),w({rowIndex:0,columnIndex:n,type:"cell"})}}Object(Q.useEffect)((function(){a||w()}),[a]);var C=["head","body","foot"].filter((function(e){return!As(t[e])})),x=[{icon:_s,title:Object(J.__)("Insert row before"),isDisabled:!y,onClick:function(){k(0)}},{icon:ks,title:Object(J.__)("Insert row after"),isDisabled:!y,onClick:function(){k(1)}},{icon:Es,title:Object(J.__)("Delete row"),isDisabled:!y,onClick:function(){if(y){var e=y.sectionName,r=y.rowIndex;w(),c(function(e,t){var r=t.sectionName,n=t.rowIndex;return Object(Z.a)({},r,e[r].filter((function(e,t){return t!==n})))}(t,{sectionName:e,rowIndex:r}))}}},{icon:Cs,title:Object(J.__)("Insert column before"),isDisabled:!y,onClick:function(){E(0)}},{icon:xs,title:Object(J.__)("Insert column after"),isDisabled:!y,onClick:function(){E(1)}},{icon:Ss,title:Object(J.__)("Delete column"),isDisabled:!y,onClick:function(){if(y){var e=y.sectionName,r=y.columnIndex;w(),c(function(e,t){var r=t.columnIndex,n=Object(X.pick)(e,["head","body","foot"]);return Object(X.mapValues)(n,(function(e){return As(e)?e:e.map((function(e){return{cells:e.cells.length>=r?e.cells.filter((function(e,t){return t!==r})):e.cells}})).filter((function(e){return e.cells.length}))}))}(t,{sectionName:e,columnIndex:r}))}}}],S=["head","body","foot"].map((function(e){return Object(Q.createElement)(Ws,{name:e,key:e},t[e].map((function(t,r){var n=t.cells;return Object(Q.createElement)("tr",{key:r},n.map((function(t,n){var c=t.content,o=t.tag,a=t.scope,i=t.align;return Object(Q.createElement)(Y.RichText,{tagName:o,key:n,className:ne()(Object(Z.a)({},"has-text-align-".concat(i),i),"wp-block-table__cell-content"),scope:"th"===o?a:void 0,value:c,onChange:_,unstableOnFocus:function(){w({sectionName:e,rowIndex:r,columnIndex:n,type:"cell"})},placeholder:Us[e]})})))})))})),P=!C.length;return Object(Q.createElement)("figure",Object(Y.useBlockProps)(),!P&&Object(Q.createElement)(Y.BlockControls,null,Object(Q.createElement)(me.ToolbarGroup,null,Object(Q.createElement)(me.ToolbarItem,null,(function(e){return Object(Q.createElement)(me.DropdownMenu,{hasArrowIndicator:!0,icon:Ps,toggleProps:e,label:Object(J.__)("Edit table"),controls:x})}))),Object(Q.createElement)(Y.AlignmentToolbar,{label:Object(J.__)("Change column alignment"),alignmentControls:Fs,value:function(){var e,r,n,c,o,a;if(y)return e=t,n="align",c=(r=y).sectionName,o=r.rowIndex,a=r.columnIndex,Object(X.get)(e,[c,o,"cells",a,n])}(),onChange:function(e){return function(e){if(y){var r={type:"column",columnIndex:y.columnIndex},n=Ns(t,r,(function(t){return Is(Is({},t),{},{align:e})}));c(n)}}(e)}})),!P&&Object(Q.createElement)(Y.InspectorControls,null,Object(Q.createElement)(me.PanelBody,{title:Object(J.__)("Table settings"),className:"blocks-table-settings"},Object(Q.createElement)(me.ToggleControl,{label:Object(J.__)("Fixed width table cells"),checked:!!i,onChange:function(){c({hasFixedLayout:!i})}}),Object(Q.createElement)(me.ToggleControl,{label:Object(J.__)("Header section"),checked:!(!s||!s.length),onChange:function(){c(Vs(t,"head"))}}),Object(Q.createElement)(me.ToggleControl,{label:Object(J.__)("Footer section"),checked:!(!u||!u.length),onChange:function(){c(Vs(t,"foot"))}})),Object(Q.createElement)(Y.PanelColorSettings,{title:Object(J.__)("Color settings"),initialOpen:!1,colorSettings:[{value:r.color,onChange:n,label:Object(J.__)("Background color"),disableCustomColors:!0,colors:Ds}]})),!P&&Object(Q.createElement)("table",{className:ne()(r.class,{"has-fixed-layout":i,"has-background":!!r.color})},S),!P&&Object(Q.createElement)(Y.RichText,{tagName:"figcaption",placeholder:Object(J.__)("Write caption…"),value:l,onChange:function(e){return c({caption:e})},unstableOnFocus:function(){return w()},__unstableOnSplitAtEnd:function(){return o(Object(K.createBlock)("core/paragraph"))}}),P&&Object(Q.createElement)(me.Placeholder,{label:Object(J.__)("Table"),icon:Object(Q.createElement)(Y.BlockIcon,{icon:Os,showColors:!0}),instructions:Object(J.__)("Insert a table for sharing data.")},Object(Q.createElement)("form",{className:"blocks-table__placeholder-form",onSubmit:function(e){var t,r,n;e.preventDefault(),c((t={rowCount:parseInt(d,10)||2,columnCount:parseInt(f,10)||2},r=t.rowCount,n=t.columnCount,{body:Object(X.times)(r,(function(){return{cells:Object(X.times)(n,(function(){return{content:"",tag:"td"}}))}}))}))}},Object(Q.createElement)(me.TextControl,{type:"number",label:Object(J.__)("Column count"),value:f,onChange:function(e){O(e)},min:"1",className:"blocks-table__placeholder-input"}),Object(Q.createElement)(me.TextControl,{type:"number",label:Object(J.__)("Row count"),value:d,onChange:function(e){p(e)},min:"1",className:"blocks-table__placeholder-input"}),Object(Q.createElement)(me.Button,{className:"blocks-table__placeholder-button",isPrimary:!0,type:"submit"},Object(J.__)("Create Table")))))}));var Zs=function(e){var t=e.phrasingContentSchema;return{tr:{allowEmpty:!0,children:{th:{allowEmpty:!0,children:t,attributes:["scope"]},td:{allowEmpty:!0,children:t}}}}},$s={from:[{type:"raw",selector:"table",schema:function(e){return{table:{children:{thead:{allowEmpty:!0,children:Zs(e)},tfoot:{allowEmpty:!0,children:Zs(e)},tbody:{allowEmpty:!0,children:Zs(e)}}}}}}]},Ys={apiVersion:2,name:"core/table",category:"text",attributes:{hasFixedLayout:{type:"boolean",default:!1},backgroundColor:{type:"string"},caption:{type:"string",source:"html",selector:"figcaption",default:""},head:{type:"array",default:[],source:"query",selector:"thead tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:{content:{type:"string",source:"html"},tag:{type:"string",default:"td",source:"tag"},scope:{type:"string",source:"attribute",attribute:"scope"},align:{type:"string",source:"attribute",attribute:"data-align"}}}}},body:{type:"array",default:[],source:"query",selector:"tbody tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:{content:{type:"string",source:"html"},tag:{type:"string",default:"td",source:"tag"},scope:{type:"string",source:"attribute",attribute:"scope"},align:{type:"string",source:"attribute",attribute:"data-align"}}}}},foot:{type:"array",default:[],source:"query",selector:"tfoot tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:{content:{type:"string",source:"html"},tag:{type:"string",default:"td",source:"tag"},scope:{type:"string",source:"attribute",attribute:"scope"},align:{type:"string",source:"attribute",attribute:"data-align"}}}}}},supports:{anchor:!0,align:!0,__experimentalSelector:".wp-block-button > table"}},Ks=Ys.name,Xs={title:Object(J.__)("Table"),description:Object(J.__)("Insert a table — perfect for sharing charts and data."),icon:Os,example:{attributes:{head:[{cells:[{content:Object(J.__)("Version"),tag:"th"},{content:Object(J.__)("Jazz Musician"),tag:"th"},{content:Object(J.__)("Release Date"),tag:"th"}]}],body:[{cells:[{content:"5.2",tag:"td"},{content:"Jaco Pastorius",tag:"td"},{content:Object(J.__)("May 7, 2019"),tag:"td"}]},{cells:[{content:"5.1",tag:"td"},{content:"Betty Carter",tag:"td"},{content:Object(J.__)("February 21, 2019"),tag:"td"}]},{cells:[{content:"5.0",tag:"td"},{content:"Bebo Valdés",tag:"td"},{content:Object(J.__)("December 6, 2018"),tag:"td"}]}]}},styles:[{name:"regular",label:Object(J._x)("Default","block style"),isDefault:!0},{name:"stripes",label:Object(J.__)("Stripes")}],transforms:$s,edit:qs,save:function(e){var t=e.attributes,r=t.hasFixedLayout,n=t.head,c=t.body,o=t.foot,a=t.backgroundColor,i=t.caption;if(!n.length&&!c.length&&!o.length)return null;var l=Object(Y.getColorClassName)("background-color",a),s=ne()(l,{"has-fixed-layout":r,"has-background":!!l}),u=!Y.RichText.isEmpty(i),b=function(e){var t=e.type,r=e.rows;if(!r.length)return null;var n="t".concat(t);return Object(Q.createElement)(n,null,r.map((function(e,t){var r=e.cells;return Object(Q.createElement)("tr",{key:t},r.map((function(e,t){var r=e.content,n=e.tag,c=e.scope,o=e.align,a=ne()(Object(Z.a)({},"has-text-align-".concat(o),o));return Object(Q.createElement)(Y.RichText.Content,{className:a||void 0,"data-align":o,tagName:n,value:r,key:t,scope:"th"===n?c:void 0})})))})))};return Object(Q.createElement)("figure",Y.useBlockProps.save(),Object(Q.createElement)("table",{className:""===s?void 0:s},Object(Q.createElement)(b,{type:"head",rows:n}),Object(Q.createElement)(b,{type:"body",rows:c}),Object(Q.createElement)(b,{type:"foot",rows:o})),u&&Object(Q.createElement)(Y.RichText.Content,{tagName:"figcaption",value:i}))},deprecated:vs};var Js={to:[{type:"block",blocks:["core/columns"],transform:function(e){var t=e.className,r=e.columns,n=e.content,c=e.width;return Object(K.createBlock)("core/columns",{align:"wide"===c||"full"===c?c:void 0,className:t,columns:r},n.map((function(e){var t=e.children;return Object(K.createBlock)("core/column",{},[Object(K.createBlock)("core/paragraph",{content:t})])})))}}]},Qs={apiVersion:2,name:"core/text-columns",icon:"columns",category:"design",attributes:{content:{type:"array",source:"query",selector:"p",query:{children:{type:"string",source:"html"}},default:[{},{}]},columns:{type:"number",default:2},width:{type:"string"}},supports:{inserter:!1}},eu=Qs.name,tu={title:Object(J.__)("Text Columns (deprecated)"),description:Object(J.__)("This block is deprecated. Please use the Columns block instead."),transforms:Js,getEditWrapperProps:function(e){var t=e.width;if("wide"===t||"full"===t)return{"data-align":t}},edit:function(e){var t=e.attributes,r=e.setAttributes,n=t.width,c=t.content,o=t.columns;return ds()("The Text Columns block",{alternative:"the Columns block",plugin:"Gutenberg"}),Object(Q.createElement)(Q.Fragment,null,Object(Q.createElement)(Y.BlockControls,null,Object(Q.createElement)(Y.BlockAlignmentToolbar,{value:n,onChange:function(e){return r({width:e})},controls:["center","wide","full"]})),Object(Q.createElement)(Y.InspectorControls,null,Object(Q.createElement)(me.PanelBody,null,Object(Q.createElement)(me.RangeControl,{label:Object(J.__)("Columns"),value:o,onChange:function(e){return r({columns:e})},min:2,max:4,required:!0}))),Object(Q.createElement)("div",Object(Y.useBlockProps)({className:"align".concat(n," columns-").concat(o)}),Object(X.times)(o,(function(e){return Object(Q.createElement)("div",{className:"wp-block-column",key:"column-".concat(e)},Object(Q.createElement)(Y.RichText,{tagName:"p",value:Object(X.get)(c,[e,"children"]),onChange:function(t){r({content:[].concat(Object(q.a)(c.slice(0,e)),[{children:t}],Object(q.a)(c.slice(e+1)))})},placeholder:Object(J.__)("New Column")}))}))))},save:function(e){var t=e.attributes,r=t.width,n=t.content,c=t.columns;return Object(Q.createElement)("div",Y.useBlockProps.save({className:"align".concat(r," columns-").concat(c)}),Object(X.times)(c,(function(e){return Object(Q.createElement)("div",{className:"wp-block-column",key:"column-".concat(e)},Object(Q.createElement)(Y.RichText.Content,{tagName:"p",value:Object(X.get)(n,[e,"children"])}))})))}},ru=Object(Q.createElement)(ee.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(Q.createElement)(ee.Path,{d:"M17.8 2l-.9.3c-.1 0-3.6 1-5.2 2.1C10 5.5 9.3 6.5 8.9 7.1c-.6.9-1.7 4.7-1.7 6.3l-.9 2.3c-.2.4 0 .8.4 1 .1 0 .2.1.3.1.3 0 .6-.2.7-.5l.6-1.5c.3 0 .7-.1 1.2-.2.7-.1 1.4-.3 2.2-.5.8-.2 1.6-.5 2.4-.8.7-.3 1.4-.7 1.9-1.2s.8-1.2 1-1.9c.2-.7.3-1.6.4-2.4.1-.8.1-1.7.2-2.5 0-.8.1-1.5.2-2.1V2zm-1.9 5.6c-.1.8-.2 1.5-.3 2.1-.2.6-.4 1-.6 1.3-.3.3-.8.6-1.4.9-.7.3-1.4.5-2.2.8-.6.2-1.3.3-1.8.4L15 7.5c.3-.3.6-.7 1-1.1 0 .4 0 .8-.1 1.2zM6 20h8v-1.5H6V20z"})),nu=[{attributes:{content:{type:"string",source:"html",selector:"pre",default:""},textAlign:{type:"string"}},save:function(e){var t=e.attributes,r=t.textAlign,n=t.content;return Object(Q.createElement)(Y.RichText.Content,{tagName:"pre",style:{textAlign:r},value:n})}}];var cu={from:[{type:"block",blocks:["core/paragraph"],transform:function(e){return Object(K.createBlock)("core/verse",e)}}],to:[{type:"block",blocks:["core/paragraph"],transform:function(e){return Object(K.createBlock)("core/paragraph",e)}}]},ou={apiVersion:2,name:"core/verse",category:"text",attributes:{content:{type:"string",source:"html",selector:"pre",default:"",__unstablePreserveWhiteSpace:!0},textAlign:{type:"string"}},supports:{anchor:!0}},au=ou.name,iu={title:Object(J.__)("Verse"),description:Object(J.__)("Insert poetry. Use special spacing formats. Or quote song lyrics."),icon:ru,example:{attributes:{content:Object(J.__)("WHAT was he doing, the great god Pan,\n\tDown in the reeds by the river?\nSpreading ruin and scattering ban,\nSplashing and paddling with hoofs of a goat,\nAnd breaking the golden lilies afloat\n With the dragon-fly on the river.")}},keywords:[Object(J.__)("poetry"),Object(J.__)("poem")],transforms:cu,deprecated:nu,merge:function(e,t){return{content:e.content+t.content}},edit:function(e){var t=e.attributes,r=e.setAttributes,n=e.mergeBlocks,c=t.textAlign,o=t.content,a=Object(Y.useBlockProps)({className:ne()(Object(Z.a)({},"has-text-align-".concat(c),c))});return Object(Q.createElement)(Q.Fragment,null,Object(Q.createElement)(Y.BlockControls,null,Object(Q.createElement)(Y.AlignmentToolbar,{value:c,onChange:function(e){r({textAlign:e})}})),Object(Q.createElement)(Y.RichText,Object(ue.a)({tagName:"pre",identifier:"content",preserveWhiteSpace:!0,value:o,onChange:function(e){r({content:e})},placeholder:Object(J.__)("Write…"),onMerge:n,textAlign:c},a)))},save:function(e){var t=e.attributes,r=t.textAlign,n=t.content,c=ne()(Object(Z.a)({},"has-text-align-".concat(r),r));return Object(Q.createElement)("pre",Y.useBlockProps.save({className:c}),Object(Q.createElement)(Y.RichText.Content,{value:n}))}},lu=Object(Q.createElement)(ee.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(Q.createElement)(ee.Path,{d:"M18.7 3H5.3C4 3 3 4 3 5.3v13.4C3 20 4 21 5.3 21h13.4c1.3 0 2.3-1 2.3-2.3V5.3C21 4 20 3 18.7 3zm.8 15.7c0 .4-.4.8-.8.8H5.3c-.4 0-.8-.4-.8-.8V5.3c0-.4.4-.8.8-.8h13.4c.4 0 .8.4.8.8v13.4zM10 15l5-3-5-3v6z"})),su=function(e){var t=e.setAttributes,r=e.attributes,n=r.autoplay,c=r.controls,o=r.loop,a=r.muted,i=r.playsInline,l=r.preload,s=function(e){return function(r){t(Object(Z.a)({},e,r))}};return Object(Q.createElement)(Q.Fragment,null,Object(Q.createElement)(me.ToggleControl,{label:Object(J.__)("Autoplay"),onChange:s("autoplay"),checked:n,help:function(e){return e?Object(J.__)("Note: Autoplaying videos may cause usability issues for some visitors."):null}}),Object(Q.createElement)(me.ToggleControl,{label:Object(J.__)("Loop"),onChange:s("loop"),checked:o}),Object(Q.createElement)(me.ToggleControl,{label:Object(J.__)("Muted"),onChange:s("muted"),checked:a}),Object(Q.createElement)(me.ToggleControl,{label:Object(J.__)("Playback controls"),onChange:s("controls"),checked:c}),Object(Q.createElement)(me.ToggleControl,{label:Object(J.__)("Play inline"),onChange:s("playsInline"),checked:i}),Object(Q.createElement)(me.SelectControl,{label:Object(J.__)("Preload"),value:l,onChange:function(e){return t({preload:e})},options:[{value:"auto",label:Object(J.__)("Auto")},{value:"metadata",label:Object(J.__)("Metadata")},{value:"none",label:Object(J.__)("None")}]}))};var uu=r(320);function bu(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function mu(e){for(var t=1;t1)&&(0===t.childNodes.length||!(t.childNodes[0].childNodes.length>1)&&/^\n?$/.test(t.innerText||t.textContent))}(e)||(c([]),t.preventDefault(),t.stopImmediatePropagation()),t.altKey&&t.keyCode===Wt.F10&&t.stopPropagation()})),e.on("init",(function(){var t=e.getBody();t.ownerDocument.activeElement===t&&(t.blur(),e.focus())}))}function s(){var e=window.wpEditorL10n.tinymce.settings;Vu.oldEditor.initialize("editor-".concat(t),{tinymce:Ru(Ru({},e),{},{inline:!0,content_css:!1,fixed_toolbar_container:"#toolbar-".concat(t),setup:l})})}function u(){"complete"===document.readyState&&s()}return o.current=!0,window.tinymce.EditorManager.overrideDefaults({base_url:a,suffix:i}),"complete"===document.readyState?s():document.addEventListener("readystatechange",u),function(){document.removeEventListener("readystatechange",u),Vu.oldEditor.remove("editor-".concat(t))}}),[]),Object(Q.createElement)(Q.Fragment,null,Object(Q.createElement)(Y.BlockControls,null,Object(Q.createElement)(me.ToolbarGroup,null,Object(Q.createElement)(Nu,{clientId:t}))),Object(Q.createElement)("div",Object(Y.useBlockProps)(),Object(Q.createElement)("div",{key:"toolbar",id:"toolbar-".concat(t),className:"block-library-classic__toolbar",onClick:function(){var e=window.tinymce.get("editor-".concat(t));e&&e.focus()},"data-placeholder":Object(J.__)("Classic"),onKeyDown:function(e){e.stopPropagation(),e.nativeEvent.stopImmediatePropagation()}}),Object(Q.createElement)("div",{key:"editor",id:"editor-".concat(t),className:"wp-block-freeform block-library-rich-text__tinymce"})))},save:function(e){var t=e.attributes.content;return Object(Q.createElement)(Q.RawHTML,null,t)}},Iu=Object(Q.createElement)(ee.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(Q.createElement)(ee.Path,{d:"M9 11.8l6.1-4.5c.1.4.4.7.9.7h2c.6 0 1-.4 1-1V5c0-.6-.4-1-1-1h-2c-.6 0-1 .4-1 1v.4l-6.4 4.8c-.2-.1-.4-.2-.6-.2H6c-.6 0-1 .4-1 1v2c0 .6.4 1 1 1h2c.2 0 .4-.1.6-.2l6.4 4.8v.4c0 .6.4 1 1 1h2c.6 0 1-.4 1-1v-2c0-.6-.4-1-1-1h-2c-.5 0-.8.3-.9.7L9 12.2v-.4z"})),Du=["core/social-link"];var Fu=function(e){var t=e.attributes.openInNewTab,r=e.setAttributes,n=Object(Q.createElement)("div",{className:"wp-block-social-links__social-placeholder"},Object(Q.createElement)("div",{className:"wp-block-social-link wp-social-link-facebook"}),Object(Q.createElement)("div",{className:"wp-block-social-link wp-social-link-twitter"}),Object(Q.createElement)("div",{className:"wp-block-social-link wp-social-link-instagram"})),c=Object(Y.useBlockProps)(),o=Object(Y.__experimentalUseInnerBlocksProps)(c,{allowedBlocks:Du,orientation:"horizontal",placeholder:n,templateLock:!1,__experimentalAppenderTagName:"li"});return Object(Q.createElement)(Q.Fragment,null,Object(Q.createElement)(Y.InspectorControls,null,Object(Q.createElement)(me.PanelBody,{title:Object(J.__)("Link settings")},Object(Q.createElement)(me.ToggleControl,{label:Object(J.__)("Open links in new tab"),checked:t,onChange:function(){return r({openInNewTab:!t})}}))),Object(Q.createElement)("ul",o))};var Gu={apiVersion:2,name:"core/social-links",category:"widgets",attributes:{openInNewTab:{type:"boolean",default:!1}},providesContext:{openInNewTab:"openInNewTab"},supports:{align:["left","center","right"],anchor:!0}},Uu=Gu.name,Wu={title:Object(J.__)("Social Icons"),description:Object(J.__)("Display icons linking to your social media profiles or websites."),keywords:[Object(J._x)("links","block keywords")],example:{innerBlocks:[{name:"core/social-link",attributes:{service:"wordpress",url:"https://wordpress.org"}},{name:"core/social-link",attributes:{service:"facebook",url:"https://www.facebook.com/WordPress/"}},{name:"core/social-link",attributes:{service:"twitter",url:"https://twitter.com/WordPress"}}]},styles:[{name:"default",label:Object(J.__)("Default"),isDefault:!0},{name:"logos-only",label:Object(J.__)("Logos Only")},{name:"pill-shape",label:Object(J.__)("Pill Shape")}],icon:Iu,edit:Fu,save:function(){return Object(Q.createElement)("ul",Y.useBlockProps.save(),Object(Q.createElement)(Y.InnerBlocks.Content,null))}},qu=r(215),Zu=function(){return Object(Q.createElement)(ee.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(Q.createElement)(ee.Path,{d:"M19.647,16.706a1.134,1.134,0,0,0-.343-.833l-2.549-2.549a1.134,1.134,0,0,0-.833-.343,1.168,1.168,0,0,0-.883.392l.233.226q.2.189.264.264a2.922,2.922,0,0,1,.184.233.986.986,0,0,1,.159.312,1.242,1.242,0,0,1,.043.337,1.172,1.172,0,0,1-1.176,1.176,1.237,1.237,0,0,1-.337-.043,1,1,0,0,1-.312-.159,2.76,2.76,0,0,1-.233-.184q-.073-.068-.264-.264l-.226-.233a1.19,1.19,0,0,0-.4.895,1.134,1.134,0,0,0,.343.833L15.837,19.3a1.13,1.13,0,0,0,.833.331,1.18,1.18,0,0,0,.833-.318l1.8-1.789a1.12,1.12,0,0,0,.343-.821Zm-8.615-8.64a1.134,1.134,0,0,0-.343-.833L8.163,4.7a1.134,1.134,0,0,0-.833-.343,1.184,1.184,0,0,0-.833.331L4.7,6.473a1.12,1.12,0,0,0-.343.821,1.134,1.134,0,0,0,.343.833l2.549,2.549a1.13,1.13,0,0,0,.833.331,1.184,1.184,0,0,0,.883-.38L8.728,10.4q-.2-.189-.264-.264A2.922,2.922,0,0,1,8.28,9.9a.986.986,0,0,1-.159-.312,1.242,1.242,0,0,1-.043-.337A1.172,1.172,0,0,1,9.254,8.079a1.237,1.237,0,0,1,.337.043,1,1,0,0,1,.312.159,2.761,2.761,0,0,1,.233.184q.073.068.264.264l.226.233a1.19,1.19,0,0,0,.4-.895ZM22,16.706a3.343,3.343,0,0,1-1.042,2.488l-1.8,1.789a3.536,3.536,0,0,1-4.988-.025l-2.525-2.537a3.384,3.384,0,0,1-1.017-2.488,3.448,3.448,0,0,1,1.078-2.561l-1.078-1.078a3.434,3.434,0,0,1-2.549,1.078,3.4,3.4,0,0,1-2.5-1.029L3.029,9.794A3.4,3.4,0,0,1,2,7.294,3.343,3.343,0,0,1,3.042,4.806l1.8-1.789A3.384,3.384,0,0,1,7.331,2a3.357,3.357,0,0,1,2.5,1.042l2.525,2.537a3.384,3.384,0,0,1,1.017,2.488,3.448,3.448,0,0,1-1.078,2.561l1.078,1.078a3.551,3.551,0,0,1,5.049-.049l2.549,2.549A3.4,3.4,0,0,1,22,16.706Z"}))},$u=[{isDefault:!0,name:"wordpress",attributes:{service:"wordpress"},title:"WordPress",icon:function(){return Object(Q.createElement)(ee.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},Object(Q.createElement)(ee.Path,{d:"M12.158,12.786L9.46,20.625c0.806,0.237,1.657,0.366,2.54,0.366c1.047,0,2.051-0.181,2.986-0.51 c-0.024-0.038-0.046-0.079-0.065-0.124L12.158,12.786z M3.009,12c0,3.559,2.068,6.634,5.067,8.092L3.788,8.341 C3.289,9.459,3.009,10.696,3.009,12z M18.069,11.546c0-1.112-0.399-1.881-0.741-2.48c-0.456-0.741-0.883-1.368-0.883-2.109 c0-0.826,0.627-1.596,1.51-1.596c0.04,0,0.078,0.005,0.116,0.007C16.472,3.904,14.34,3.009,12,3.009 c-3.141,0-5.904,1.612-7.512,4.052c0.211,0.007,0.41,0.011,0.579,0.011c0.94,0,2.396-0.114,2.396-0.114 C7.947,6.93,8.004,7.642,7.52,7.699c0,0-0.487,0.057-1.029,0.085l3.274,9.739l1.968-5.901l-1.401-3.838 C9.848,7.756,9.389,7.699,9.389,7.699C8.904,7.67,8.961,6.93,9.446,6.958c0,0,1.484,0.114,2.368,0.114 c0.94,0,2.397-0.114,2.397-0.114c0.485-0.028,0.542,0.684,0.057,0.741c0,0-0.488,0.057-1.029,0.085l3.249,9.665l0.897-2.996 C17.841,13.284,18.069,12.316,18.069,11.546z M19.889,7.686c0.039,0.286,0.06,0.593,0.06,0.924c0,0.912-0.171,1.938-0.684,3.22 l-2.746,7.94c2.673-1.558,4.47-4.454,4.47-7.771C20.991,10.436,20.591,8.967,19.889,7.686z M12,22C6.486,22,2,17.514,2,12 C2,6.486,6.486,2,12,2c5.514,0,10,4.486,10,10C22,17.514,17.514,22,12,22z"}))}},{name:"fivehundredpx",attributes:{service:"fivehundredpx"},title:"500px",icon:function(){return Object(Q.createElement)(ee.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(Q.createElement)(ee.Path,{d:"M6.94026,15.1412c.00437.01213.108.29862.168.44064a6.55008,6.55008,0,1,0,6.03191-9.09557,6.68654,6.68654,0,0,0-2.58357.51467A8.53914,8.53914,0,0,0,8.21268,8.61344L8.209,8.61725V3.22948l9.0504-.00008c.32934-.0036.32934-.46353.32934-.61466s0-.61091-.33035-.61467L7.47248,2a.43.43,0,0,0-.43131.42692v7.58355c0,.24466.30476.42131.58793.4819.553.11812.68074-.05864.81617-.2457l.018-.02481A10.52673,10.52673,0,0,1,9.32258,9.258a5.35268,5.35268,0,1,1,7.58985,7.54976,5.417,5.417,0,0,1-3.80867,1.56365,5.17483,5.17483,0,0,1-2.69822-.74478l.00342-4.61111a2.79372,2.79372,0,0,1,.71372-1.78792,2.61611,2.61611,0,0,1,1.98282-.89477,2.75683,2.75683,0,0,1,1.95525.79477,2.66867,2.66867,0,0,1,.79656,1.909,2.724,2.724,0,0,1-2.75849,2.748,4.94651,4.94651,0,0,1-.86254-.13719c-.31234-.093-.44519.34058-.48892.48349-.16811.54966.08453.65862.13687.67489a3.75751,3.75751,0,0,0,1.25234.18375,3.94634,3.94634,0,1,0-2.82444-6.742,3.67478,3.67478,0,0,0-1.13028,2.584l-.00041.02323c-.0035.11667-.00579,2.881-.00644,3.78811l-.00407-.00451a6.18521,6.18521,0,0,1-1.0851-1.86092c-.10544-.27856-.34358-.22925-.66857-.12917-.14192.04372-.57386.17677-.47833.489Zm4.65165-1.08338a.51346.51346,0,0,0,.19513.31818l.02276.022a.52945.52945,0,0,0,.3517.18416.24242.24242,0,0,0,.16577-.0611c.05473-.05082.67382-.67812.73287-.738l.69041.68819a.28978.28978,0,0,0,.21437.11032.53239.53239,0,0,0,.35708-.19486c.29792-.30419.14885-.46821.07676-.54751l-.69954-.69975.72952-.73469c.16-.17311.01874-.35708-.12218-.498-.20461-.20461-.402-.25742-.52855-.14083l-.7254.72665-.73354-.73375a.20128.20128,0,0,0-.14179-.05695.54135.54135,0,0,0-.34379.19648c-.22561.22555-.274.38149-.15656.5059l.73374.7315-.72942.73072A.26589.26589,0,0,0,11.59191,14.05782Zm1.59866-9.915A8.86081,8.86081,0,0,0,9.854,4.776a.26169.26169,0,0,0-.16938.22759.92978.92978,0,0,0,.08619.42094c.05682.14524.20779.531.50006.41955a8.40969,8.40969,0,0,1,2.91968-.55484,7.87875,7.87875,0,0,1,3.086.62286,8.61817,8.61817,0,0,1,2.30562,1.49315.2781.2781,0,0,0,.18318.07586c.15529,0,.30425-.15253.43167-.29551.21268-.23861.35873-.4369.1492-.63538a8.50425,8.50425,0,0,0-2.62312-1.694A9.0177,9.0177,0,0,0,13.19058,4.14283ZM19.50945,18.6236h0a.93171.93171,0,0,0-.36642-.25406.26589.26589,0,0,0-.27613.06613l-.06943.06929A7.90606,7.90606,0,0,1,7.60639,18.505a7.57284,7.57284,0,0,1-1.696-2.51537,8.58715,8.58715,0,0,1-.5147-1.77754l-.00871-.04864c-.04939-.25873-.28755-.27684-.62981-.22448-.14234.02178-.5755.088-.53426.39969l.001.00712a9.08807,9.08807,0,0,0,15.406,4.99094c.00193-.00192.04753-.04718.0725-.07436C19.79425,19.16234,19.87422,18.98728,19.50945,18.6236Z"}))}},{name:"amazon",attributes:{service:"amazon"},title:"Amazon",icon:function(){return Object(Q.createElement)(ee.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(Q.createElement)(ee.Path,{d:"M13.582,8.182C11.934,8.367,9.78,8.49,8.238,9.166c-1.781,0.769-3.03,2.337-3.03,4.644 c0,2.953,1.86,4.429,4.253,4.429c2.02,0,3.125-0.477,4.685-2.065c0.516,0.747,0.685,1.109,1.629,1.894 c0.212,0.114,0.483,0.103,0.672-0.066l0.006,0.006c0.567-0.505,1.599-1.401,2.18-1.888c0.231-0.188,0.19-0.496,0.009-0.754 c-0.52-0.718-1.072-1.303-1.072-2.634V8.305c0-1.876,0.133-3.599-1.249-4.891C15.23,2.369,13.422,2,12.04,2 C9.336,2,6.318,3.01,5.686,6.351C5.618,6.706,5.877,6.893,6.109,6.945l2.754,0.298C9.121,7.23,9.308,6.977,9.357,6.72 c0.236-1.151,1.2-1.706,2.284-1.706c0.584,0,1.249,0.215,1.595,0.738c0.398,0.584,0.346,1.384,0.346,2.061V8.182z M13.049,14.088 c-0.451,0.8-1.169,1.291-1.967,1.291c-1.09,0-1.728-0.83-1.728-2.061c0-2.42,2.171-2.86,4.227-2.86v0.615 C13.582,12.181,13.608,13.104,13.049,14.088z M20.683,19.339C18.329,21.076,14.917,22,11.979,22c-4.118,0-7.826-1.522-10.632-4.057 c-0.22-0.199-0.024-0.471,0.241-0.317c3.027,1.762,6.771,2.823,10.639,2.823c2.608,0,5.476-0.541,8.115-1.66 C20.739,18.62,21.072,19.051,20.683,19.339z M21.336,21.043c-0.194,0.163-0.379,0.076-0.293-0.139 c0.284-0.71,0.92-2.298,0.619-2.684c-0.301-0.386-1.99-0.183-2.749-0.092c-0.23,0.027-0.266-0.173-0.059-0.319 c1.348-0.946,3.555-0.673,3.811-0.356C22.925,17.773,22.599,19.986,21.336,21.043z"}))}},{name:"bandcamp",attributes:{service:"bandcamp"},title:"Bandcamp",icon:function(){return Object(Q.createElement)(ee.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(Q.createElement)(ee.Path,{d:"M15.27 17.289 3 17.289 8.73 6.711 21 6.711 15.27 17.289"}))}},{name:"behance",attributes:{service:"behance"},title:"Behance",icon:function(){return Object(Q.createElement)(ee.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(Q.createElement)(ee.Path,{d:"M7.799,5.698c0.589,0,1.12,0.051,1.606,0.156c0.482,0.102,0.894,0.273,1.241,0.507c0.344,0.235,0.612,0.546,0.804,0.938 c0.188,0.387,0.281,0.871,0.281,1.443c0,0.619-0.141,1.137-0.421,1.551c-0.284,0.413-0.7,0.751-1.255,1.014 c0.756,0.218,1.317,0.601,1.689,1.146c0.374,0.549,0.557,1.205,0.557,1.975c0,0.623-0.12,1.161-0.359,1.612 c-0.241,0.457-0.569,0.828-0.973,1.114c-0.408,0.288-0.876,0.5-1.399,0.637C9.052,17.931,8.514,18,7.963,18H2V5.698H7.799 M7.449,10.668c0.481,0,0.878-0.114,1.192-0.345c0.311-0.228,0.463-0.603,0.463-1.119c0-0.286-0.051-0.523-0.152-0.707 C8.848,8.315,8.711,8.171,8.536,8.07C8.362,7.966,8.166,7.894,7.94,7.854c-0.224-0.044-0.457-0.06-0.697-0.06H4.709v2.874H7.449z M7.6,15.905c0.267,0,0.521-0.024,0.759-0.077c0.243-0.053,0.457-0.137,0.637-0.261c0.182-0.12,0.332-0.283,0.441-0.491 C9.547,14.87,9.6,14.602,9.6,14.278c0-0.633-0.18-1.084-0.533-1.357c-0.356-0.27-0.83-0.404-1.413-0.404H4.709v3.388L7.6,15.905z M16.162,15.864c0.367,0.358,0.897,0.538,1.583,0.538c0.493,0,0.92-0.125,1.277-0.374c0.354-0.248,0.571-0.514,0.654-0.79h2.155 c-0.347,1.072-0.872,1.838-1.589,2.299C19.534,18,18.67,18.23,17.662,18.23c-0.701,0-1.332-0.113-1.899-0.337 c-0.567-0.227-1.041-0.544-1.439-0.958c-0.389-0.415-0.689-0.907-0.904-1.484c-0.213-0.574-0.32-1.21-0.32-1.899 c0-0.666,0.11-1.288,0.329-1.863c0.222-0.577,0.529-1.075,0.933-1.492c0.406-0.42,0.885-0.751,1.444-0.994 c0.558-0.241,1.175-0.363,1.857-0.363c0.754,0,1.414,0.145,1.98,0.44c0.563,0.291,1.026,0.686,1.389,1.181 c0.363,0.493,0.622,1.057,0.783,1.69c0.16,0.632,0.217,1.292,0.171,1.983h-6.428C15.557,14.84,15.795,15.506,16.162,15.864 M18.973,11.184c-0.291-0.321-0.783-0.496-1.384-0.496c-0.39,0-0.714,0.066-0.973,0.2c-0.254,0.132-0.461,0.297-0.621,0.491 c-0.157,0.197-0.265,0.405-0.328,0.628c-0.063,0.217-0.101,0.413-0.111,0.587h3.98C19.478,11.969,19.265,11.509,18.973,11.184z M15.057,7.738h4.985V6.524h-4.985L15.057,7.738z"}))}},{name:"chain",attributes:{service:"chain"},title:"Link",icon:Zu},{name:"codepen",attributes:{service:"codepen"},title:"CodePen",icon:function(){return Object(Q.createElement)(ee.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(Q.createElement)(ee.Path,{d:"M22.016,8.84c-0.002-0.013-0.005-0.025-0.007-0.037c-0.005-0.025-0.008-0.048-0.015-0.072 c-0.003-0.015-0.01-0.028-0.013-0.042c-0.008-0.02-0.015-0.04-0.023-0.062c-0.007-0.015-0.013-0.028-0.02-0.042 c-0.008-0.02-0.018-0.037-0.03-0.057c-0.007-0.013-0.017-0.027-0.025-0.038c-0.012-0.018-0.023-0.035-0.035-0.052 c-0.01-0.013-0.02-0.025-0.03-0.037c-0.015-0.017-0.028-0.032-0.043-0.045c-0.01-0.012-0.022-0.023-0.035-0.035 c-0.015-0.015-0.032-0.028-0.048-0.04c-0.012-0.01-0.025-0.02-0.037-0.03c-0.005-0.003-0.01-0.008-0.015-0.012l-9.161-6.096 c-0.289-0.192-0.666-0.192-0.955,0L2.359,8.237C2.354,8.24,2.349,8.245,2.344,8.249L2.306,8.277 c-0.017,0.013-0.033,0.027-0.048,0.04C2.246,8.331,2.234,8.342,2.222,8.352c-0.015,0.015-0.028,0.03-0.042,0.047 c-0.012,0.013-0.022,0.023-0.03,0.037C2.139,8.453,2.125,8.471,2.115,8.488C2.107,8.501,2.099,8.514,2.09,8.526 C2.079,8.548,2.069,8.565,2.06,8.585C2.054,8.6,2.047,8.613,2.04,8.626C2.032,8.648,2.025,8.67,2.019,8.69 c-0.005,0.013-0.01,0.027-0.013,0.042C1.999,8.755,1.995,8.778,1.99,8.803C1.989,8.817,1.985,8.828,1.984,8.84 C1.978,8.879,1.975,8.915,1.975,8.954v6.093c0,0.037,0.003,0.075,0.008,0.112c0.002,0.012,0.005,0.025,0.007,0.038 c0.005,0.023,0.008,0.047,0.015,0.072c0.003,0.015,0.008,0.028,0.013,0.04c0.007,0.022,0.013,0.042,0.022,0.063 c0.007,0.015,0.013,0.028,0.02,0.04c0.008,0.02,0.018,0.038,0.03,0.058c0.007,0.013,0.015,0.027,0.025,0.038 c0.012,0.018,0.023,0.035,0.035,0.052c0.01,0.013,0.02,0.025,0.03,0.037c0.013,0.015,0.028,0.032,0.042,0.045 c0.012,0.012,0.023,0.023,0.035,0.035c0.015,0.013,0.032,0.028,0.048,0.04l0.038,0.03c0.005,0.003,0.01,0.007,0.013,0.01 l9.163,6.095C11.668,21.953,11.833,22,12,22c0.167,0,0.332-0.047,0.478-0.144l9.163-6.095l0.015-0.01 c0.013-0.01,0.027-0.02,0.037-0.03c0.018-0.013,0.035-0.028,0.048-0.04c0.013-0.012,0.025-0.023,0.035-0.035 c0.017-0.015,0.03-0.032,0.043-0.045c0.01-0.013,0.02-0.025,0.03-0.037c0.013-0.018,0.025-0.035,0.035-0.052 c0.008-0.013,0.018-0.027,0.025-0.038c0.012-0.02,0.022-0.038,0.03-0.058c0.007-0.013,0.013-0.027,0.02-0.04 c0.008-0.022,0.015-0.042,0.023-0.063c0.003-0.013,0.01-0.027,0.013-0.04c0.007-0.025,0.01-0.048,0.015-0.072 c0.002-0.013,0.005-0.027,0.007-0.037c0.003-0.042,0.007-0.079,0.007-0.117V8.954C22.025,8.915,22.022,8.879,22.016,8.84z M12.862,4.464l6.751,4.49l-3.016,2.013l-3.735-2.492V4.464z M11.138,4.464v4.009l-3.735,2.494L4.389,8.954L11.138,4.464z M3.699,10.562L5.853,12l-2.155,1.438V10.562z M11.138,19.536l-6.749-4.491l3.015-2.011l3.735,2.492V19.536z M12,14.035L8.953,12 L12,9.966L15.047,12L12,14.035z M12.862,19.536v-4.009l3.735-2.492l3.016,2.011L12.862,19.536z M20.303,13.438L18.147,12 l2.156-1.438L20.303,13.438z"}))}},{name:"deviantart",attributes:{service:"deviantart"},title:"DeviantArt",icon:function(){return Object(Q.createElement)(ee.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(Q.createElement)(ee.Path,{d:"M 18.19 5.636 18.19 2 18.188 2 14.553 2 14.19 2.366 12.474 5.636 11.935 6 5.81 6 5.81 10.994 9.177 10.994 9.477 11.357 5.81 18.363 5.81 22 5.811 22 9.447 22 9.81 21.634 11.526 18.364 12.065 18 18.19 18 18.19 13.006 14.823 13.006 14.523 12.641 18.19 5.636z"}))}},{name:"dribbble",attributes:{service:"dribbble"},title:"Dribbble",icon:function(){return Object(Q.createElement)(ee.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(Q.createElement)(ee.Path,{d:"M12,22C6.486,22,2,17.514,2,12S6.486,2,12,2c5.514,0,10,4.486,10,10S17.514,22,12,22z M20.434,13.369 c-0.292-0.092-2.644-0.794-5.32-0.365c1.117,3.07,1.572,5.57,1.659,6.09C18.689,17.798,20.053,15.745,20.434,13.369z M15.336,19.876c-0.127-0.749-0.623-3.361-1.822-6.477c-0.019,0.006-0.038,0.013-0.056,0.019c-4.818,1.679-6.547,5.02-6.701,5.334 c1.448,1.129,3.268,1.803,5.243,1.803C13.183,20.555,14.311,20.313,15.336,19.876z M5.654,17.724 c0.193-0.331,2.538-4.213,6.943-5.637c0.111-0.036,0.224-0.07,0.337-0.102c-0.214-0.485-0.448-0.971-0.692-1.45 c-4.266,1.277-8.405,1.223-8.778,1.216c-0.003,0.087-0.004,0.174-0.004,0.261C3.458,14.207,4.29,16.21,5.654,17.724z M3.639,10.264 c0.382,0.005,3.901,0.02,7.897-1.041c-1.415-2.516-2.942-4.631-3.167-4.94C5.979,5.41,4.193,7.613,3.639,10.264z M9.998,3.709 c0.236,0.316,1.787,2.429,3.187,5c3.037-1.138,4.323-2.867,4.477-3.085C16.154,4.286,14.17,3.471,12,3.471 C11.311,3.471,10.641,3.554,9.998,3.709z M18.612,6.612C18.432,6.855,17,8.69,13.842,9.979c0.199,0.407,0.389,0.821,0.567,1.237 c0.063,0.148,0.124,0.295,0.184,0.441c2.842-0.357,5.666,0.215,5.948,0.275C20.522,9.916,19.801,8.065,18.612,6.612z"}))}},{name:"dropbox",attributes:{service:"dropbox"},title:"Dropbox",icon:function(){return Object(Q.createElement)(ee.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(Q.createElement)(ee.Path,{d:"M12,6.134L6.069,9.797L2,6.54l5.883-3.843L12,6.134z M2,13.054l5.883,3.843L12,13.459L6.069,9.797L2,13.054z M12,13.459 l4.116,3.439L22,13.054l-4.069-3.257L12,13.459z M22,6.54l-5.884-3.843L12,6.134l5.931,3.663L22,6.54z M12.011,14.2l-4.129,3.426 l-1.767-1.153v1.291l5.896,3.539l5.897-3.539v-1.291l-1.769,1.153L12.011,14.2z"}))}},{name:"etsy",attributes:{service:"etsy"},title:"Etsy",icon:function(){return Object(Q.createElement)(ee.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(Q.createElement)(ee.Path,{d:"M9.16033,4.038c0-.27174.02717-.43478.48913-.43478h6.22283c1.087,0,1.68478.92391,2.11957,2.663l.35326,1.38587h1.05978C19.59511,3.712,19.75815,2,19.75815,2s-2.663.29891-4.23913.29891h-7.962L3.29076,2.163v1.1413L4.731,3.57609c1.00543.19022,1.25.40761,1.33152,1.33152,0,0,.08152,2.71739.08152,7.20109s-.08152,7.17391-.08152,7.17391c0,.81522-.32609,1.11413-1.33152,1.30435l-1.44022.27174V22l4.2663-.13587h7.11957c1.60326,0,5.32609.13587,5.32609.13587.08152-.97826.625-5.40761.70652-5.89674H19.7038L18.644,18.52174c-.84239,1.90217-2.06522,2.038-3.42391,2.038H11.1712c-1.3587,0-2.01087-.54348-2.01087-1.712V12.65217s3.0163,0,3.99457.08152c.76087.05435,1.22283.27174,1.46739,1.33152l.32609,1.413h1.16848l-.08152-3.55978.163-3.587H15.02989l-.38043,1.57609c-.24457,1.03261-.40761,1.22283-1.46739,1.33152-1.38587.13587-4.02174.1087-4.02174.1087Z"}))}},{name:"facebook",attributes:{service:"facebook"},title:"Facebook",icon:function(){return Object(Q.createElement)(ee.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(Q.createElement)(ee.Path,{d:"M12 2C6.5 2 2 6.5 2 12c0 5 3.7 9.1 8.4 9.9v-7H7.9V12h2.5V9.8c0-2.5 1.5-3.9 3.8-3.9 1.1 0 2.2.2 2.2.2v2.5h-1.3c-1.2 0-1.6.8-1.6 1.6V12h2.8l-.4 2.9h-2.3v7C18.3 21.1 22 17 22 12c0-5.5-4.5-10-10-10z"}))}},{name:"feed",attributes:{service:"feed"},title:"RSS Feed",icon:function(){return Object(Q.createElement)(ee.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(Q.createElement)(ee.Path,{d:"M2,8.667V12c5.515,0,10,4.485,10,10h3.333C15.333,14.637,9.363,8.667,2,8.667z M2,2v3.333 c9.19,0,16.667,7.477,16.667,16.667H22C22,10.955,13.045,2,2,2z M4.5,17C3.118,17,2,18.12,2,19.5S3.118,22,4.5,22S7,20.88,7,19.5 S5.882,17,4.5,17z"}))}},{name:"flickr",attributes:{service:"flickr"},title:"Flickr",icon:function(){return Object(Q.createElement)(ee.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(Q.createElement)(ee.Path,{d:"M6.5,7c-2.75,0-5,2.25-5,5s2.25,5,5,5s5-2.25,5-5S9.25,7,6.5,7z M17.5,7c-2.75,0-5,2.25-5,5s2.25,5,5,5s5-2.25,5-5 S20.25,7,17.5,7z"}))}},{name:"foursquare",attributes:{service:"foursquare"},title:"Foursquare",icon:function(){return Object(Q.createElement)(ee.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(Q.createElement)(ee.Path,{d:"M17.573,2c0,0-9.197,0-10.668,0S5,3.107,5,3.805s0,16.948,0,16.948c0,0.785,0.422,1.077,0.66,1.172 c0.238,0.097,0.892,0.177,1.285-0.275c0,0,5.035-5.843,5.122-5.93c0.132-0.132,0.132-0.132,0.262-0.132h3.26 c1.368,0,1.588-0.977,1.732-1.552c0.078-0.318,0.692-3.428,1.225-6.122l0.675-3.368C19.56,2.893,19.14,2,17.573,2z M16.495,7.22 c-0.053,0.252-0.372,0.518-0.665,0.518c-0.293,0-4.157,0-4.157,0c-0.467,0-0.802,0.318-0.802,0.787v0.508 c0,0.467,0.337,0.798,0.805,0.798c0,0,3.197,0,3.528,0s0.655,0.362,0.583,0.715c-0.072,0.353-0.407,2.102-0.448,2.295 c-0.04,0.193-0.262,0.523-0.655,0.523c-0.33,0-2.88,0-2.88,0c-0.523,0-0.683,0.068-1.033,0.503 c-0.35,0.437-3.505,4.223-3.505,4.223c-0.032,0.035-0.063,0.027-0.063-0.015V4.852c0-0.298,0.26-0.648,0.648-0.648 c0,0,8.228,0,8.562,0c0.315,0,0.61,0.297,0.528,0.683L16.495,7.22z"}))}},{name:"goodreads",attributes:{service:"goodreads"},title:"Goodreads",icon:function(){return Object(Q.createElement)(ee.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(Q.createElement)(ee.Path,{d:"M17.3,17.5c-0.2,0.8-0.5,1.4-1,1.9c-0.4,0.5-1,0.9-1.7,1.2C13.9,20.9,13.1,21,12,21c-0.6,0-1.3-0.1-1.9-0.2 c-0.6-0.1-1.1-0.4-1.6-0.7c-0.5-0.3-0.9-0.7-1.2-1.2c-0.3-0.5-0.5-1.1-0.5-1.7h1.5c0.1,0.5,0.2,0.9,0.5,1.2 c0.2,0.3,0.5,0.6,0.9,0.8c0.3,0.2,0.7,0.3,1.1,0.4c0.4,0.1,0.8,0.1,1.2,0.1c1.4,0,2.5-0.4,3.1-1.2c0.6-0.8,1-2,1-3.5v-1.7h0 c-0.4,0.8-0.9,1.4-1.6,1.9c-0.7,0.5-1.5,0.7-2.4,0.7c-1,0-1.9-0.2-2.6-0.5C8.7,15,8.1,14.5,7.7,14c-0.5-0.6-0.8-1.3-1-2.1 c-0.2-0.8-0.3-1.6-0.3-2.5c0-0.9,0.1-1.7,0.4-2.5c0.3-0.8,0.6-1.5,1.1-2c0.5-0.6,1.1-1,1.8-1.4C10.3,3.2,11.1,3,12,3 c0.5,0,0.9,0.1,1.3,0.2c0.4,0.1,0.8,0.3,1.1,0.5c0.3,0.2,0.6,0.5,0.9,0.8c0.3,0.3,0.5,0.6,0.6,1h0V3.4h1.5V15 C17.6,15.9,17.5,16.7,17.3,17.5z M13.8,14.1c0.5-0.3,0.9-0.7,1.3-1.1c0.3-0.5,0.6-1,0.8-1.6c0.2-0.6,0.3-1.2,0.3-1.9 c0-0.6-0.1-1.2-0.2-1.9c-0.1-0.6-0.4-1.2-0.7-1.7c-0.3-0.5-0.7-0.9-1.3-1.2c-0.5-0.3-1.1-0.5-1.9-0.5s-1.4,0.2-1.9,0.5 c-0.5,0.3-1,0.7-1.3,1.2C8.5,6.4,8.3,7,8.1,7.6C8,8.2,7.9,8.9,7.9,9.5c0,0.6,0.1,1.3,0.2,1.9C8.3,12,8.6,12.5,8.9,13 c0.3,0.5,0.8,0.8,1.3,1.1c0.5,0.3,1.1,0.4,1.9,0.4C12.7,14.5,13.3,14.4,13.8,14.1z"}))}},{name:"google",attributes:{service:"google"},title:"Google",icon:function(){return Object(Q.createElement)(ee.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(Q.createElement)(ee.Path,{d:"M12.02,10.18v3.72v0.01h5.51c-0.26,1.57-1.67,4.22-5.5,4.22c-3.31,0-6.01-2.75-6.01-6.12s2.7-6.12,6.01-6.12 c1.87,0,3.13,0.8,3.85,1.48l2.84-2.76C16.99,2.99,14.73,2,12.03,2c-5.52,0-10,4.48-10,10s4.48,10,10,10c5.77,0,9.6-4.06,9.6-9.77 c0-0.83-0.11-1.42-0.25-2.05H12.02z"}))}},{name:"github",attributes:{service:"github"},title:"GitHub",icon:function(){return Object(Q.createElement)(ee.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(Q.createElement)(ee.Path,{d:"M12,2C6.477,2,2,6.477,2,12c0,4.419,2.865,8.166,6.839,9.489c0.5,0.09,0.682-0.218,0.682-0.484 c0-0.236-0.009-0.866-0.014-1.699c-2.782,0.602-3.369-1.34-3.369-1.34c-0.455-1.157-1.11-1.465-1.11-1.465 c-0.909-0.62,0.069-0.608,0.069-0.608c1.004,0.071,1.532,1.03,1.532,1.03c0.891,1.529,2.341,1.089,2.91,0.833 c0.091-0.647,0.349-1.086,0.635-1.337c-2.22-0.251-4.555-1.111-4.555-4.943c0-1.091,0.39-1.984,1.03-2.682 C6.546,8.54,6.202,7.524,6.746,6.148c0,0,0.84-0.269,2.75,1.025C10.295,6.95,11.15,6.84,12,6.836 c0.85,0.004,1.705,0.114,2.504,0.336c1.909-1.294,2.748-1.025,2.748-1.025c0.546,1.376,0.202,2.394,0.1,2.646 c0.64,0.699,1.026,1.591,1.026,2.682c0,3.841-2.337,4.687-4.565,4.935c0.359,0.307,0.679,0.917,0.679,1.852 c0,1.335-0.012,2.415-0.012,2.741c0,0.269,0.18,0.579,0.688,0.481C19.138,20.161,22,16.416,22,12C22,6.477,17.523,2,12,2z"}))}},{name:"instagram",attributes:{service:"instagram"},title:"Instagram",icon:function(){return Object(Q.createElement)(ee.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(Q.createElement)(ee.Path,{d:"M12,4.622c2.403,0,2.688,0.009,3.637,0.052c0.877,0.04,1.354,0.187,1.671,0.31c0.42,0.163,0.72,0.358,1.035,0.673 c0.315,0.315,0.51,0.615,0.673,1.035c0.123,0.317,0.27,0.794,0.31,1.671c0.043,0.949,0.052,1.234,0.052,3.637 s-0.009,2.688-0.052,3.637c-0.04,0.877-0.187,1.354-0.31,1.671c-0.163,0.42-0.358,0.72-0.673,1.035 c-0.315,0.315-0.615,0.51-1.035,0.673c-0.317,0.123-0.794,0.27-1.671,0.31c-0.949,0.043-1.233,0.052-3.637,0.052 s-2.688-0.009-3.637-0.052c-0.877-0.04-1.354-0.187-1.671-0.31c-0.42-0.163-0.72-0.358-1.035-0.673 c-0.315-0.315-0.51-0.615-0.673-1.035c-0.123-0.317-0.27-0.794-0.31-1.671C4.631,14.688,4.622,14.403,4.622,12 s0.009-2.688,0.052-3.637c0.04-0.877,0.187-1.354,0.31-1.671c0.163-0.42,0.358-0.72,0.673-1.035 c0.315-0.315,0.615-0.51,1.035-0.673c0.317-0.123,0.794-0.27,1.671-0.31C9.312,4.631,9.597,4.622,12,4.622 M12,3 C9.556,3,9.249,3.01,8.289,3.054C7.331,3.098,6.677,3.25,6.105,3.472C5.513,3.702,5.011,4.01,4.511,4.511 c-0.5,0.5-0.808,1.002-1.038,1.594C3.25,6.677,3.098,7.331,3.054,8.289C3.01,9.249,3,9.556,3,12c0,2.444,0.01,2.751,0.054,3.711 c0.044,0.958,0.196,1.612,0.418,2.185c0.23,0.592,0.538,1.094,1.038,1.594c0.5,0.5,1.002,0.808,1.594,1.038 c0.572,0.222,1.227,0.375,2.185,0.418C9.249,20.99,9.556,21,12,21s2.751-0.01,3.711-0.054c0.958-0.044,1.612-0.196,2.185-0.418 c0.592-0.23,1.094-0.538,1.594-1.038c0.5-0.5,0.808-1.002,1.038-1.594c0.222-0.572,0.375-1.227,0.418-2.185 C20.99,14.751,21,14.444,21,12s-0.01-2.751-0.054-3.711c-0.044-0.958-0.196-1.612-0.418-2.185c-0.23-0.592-0.538-1.094-1.038-1.594 c-0.5-0.5-1.002-0.808-1.594-1.038c-0.572-0.222-1.227-0.375-2.185-0.418C14.751,3.01,14.444,3,12,3L12,3z M12,7.378 c-2.552,0-4.622,2.069-4.622,4.622S9.448,16.622,12,16.622s4.622-2.069,4.622-4.622S14.552,7.378,12,7.378z M12,15 c-1.657,0-3-1.343-3-3s1.343-3,3-3s3,1.343,3,3S13.657,15,12,15z M16.804,6.116c-0.596,0-1.08,0.484-1.08,1.08 s0.484,1.08,1.08,1.08c0.596,0,1.08-0.484,1.08-1.08S17.401,6.116,16.804,6.116z"}))}},{name:"lastfm",attributes:{service:"lastfm"},title:"Last.fm",icon:function(){return Object(Q.createElement)(ee.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(Q.createElement)(ee.Path,{d:"M 12.0002 1.5 C 6.2006 1.5 1.5 6.2011 1.5 11.9998 C 1.5 17.799 6.2006 22.5 12.0002 22.5 C 17.799 22.5 22.5 17.799 22.5 11.9998 C 22.5 6.2011 17.799 1.5 12.0002 1.5 Z M 16.1974 16.2204 C 14.8164 16.2152 13.9346 15.587 13.3345 14.1859 L 13.1816 13.8451 L 11.8541 10.8101 C 11.4271 9.7688 10.3526 9.0712 9.1801 9.0712 C 7.5695 9.0712 6.2593 10.3851 6.2593 12.001 C 6.2593 13.6165 7.5695 14.9303 9.1801 14.9303 C 10.272 14.9303 11.2651 14.3275 11.772 13.3567 C 11.7893 13.3235 11.8239 13.302 11.863 13.3038 C 11.9007 13.3054 11.9353 13.3288 11.9504 13.3632 L 12.4865 14.6046 C 12.5016 14.639 12.4956 14.6778 12.4723 14.7069 C 11.6605 15.6995 10.4602 16.2683 9.1801 16.2683 C 6.8331 16.2683 4.9234 14.3536 4.9234 12.001 C 4.9234 9.6468 6.833 7.732 9.1801 7.732 C 10.9572 7.732 12.3909 8.6907 13.1138 10.3636 C 13.1206 10.3802 13.8412 12.0708 14.4744 13.5191 C 14.8486 14.374 15.1462 14.896 16.1288 14.9292 C 17.0663 14.9613 17.7538 14.4122 17.7538 13.6485 C 17.7538 12.9691 17.3321 12.8004 16.3803 12.4822 C 14.7365 11.9398 13.845 11.3861 13.845 10.0182 C 13.845 8.6809 14.7667 7.8162 16.192 7.8162 C 17.1288 7.8162 17.8155 8.2287 18.2921 9.0768 C 18.305 9.1006 18.3079 9.1281 18.3004 9.1542 C 18.2929 9.1803 18.2748 9.2021 18.2507 9.2138 L 17.3614 9.669 C 17.3178 9.692 17.2643 9.6781 17.2356 9.6385 C 16.9329 9.2135 16.5956 9.0251 16.1423 9.0251 C 15.5512 9.0251 15.122 9.429 15.122 9.9865 C 15.122 10.6738 15.6529 10.8414 16.5339 11.1192 C 16.6491 11.1558 16.7696 11.194 16.8939 11.2343 C 18.2763 11.6865 19.0768 12.2311 19.0768 13.6836 C 19.0769 15.1297 17.8389 16.2204 16.1974 16.2204 Z"}))}},{name:"linkedin",attributes:{service:"linkedin"},title:"LinkedIn",icon:function(){return Object(Q.createElement)(ee.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(Q.createElement)(ee.Path,{d:"M19.7,3H4.3C3.582,3,3,3.582,3,4.3v15.4C3,20.418,3.582,21,4.3,21h15.4c0.718,0,1.3-0.582,1.3-1.3V4.3 C21,3.582,20.418,3,19.7,3z M8.339,18.338H5.667v-8.59h2.672V18.338z M7.004,8.574c-0.857,0-1.549-0.694-1.549-1.548 c0-0.855,0.691-1.548,1.549-1.548c0.854,0,1.547,0.694,1.547,1.548C8.551,7.881,7.858,8.574,7.004,8.574z M18.339,18.338h-2.669 v-4.177c0-0.996-0.017-2.278-1.387-2.278c-1.389,0-1.601,1.086-1.601,2.206v4.249h-2.667v-8.59h2.559v1.174h0.037 c0.356-0.675,1.227-1.387,2.526-1.387c2.703,0,3.203,1.779,3.203,4.092V18.338z"}))}},{name:"mail",attributes:{service:"mail"},title:"Mail",keywords:["email","e-mail"],icon:function(){return Object(Q.createElement)(ee.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(Q.createElement)(ee.Path,{d:"M20,4H4C2.895,4,2,4.895,2,6v12c0,1.105,0.895,2,2,2h16c1.105,0,2-0.895,2-2V6C22,4.895,21.105,4,20,4z M20,8.236l-8,4.882 L4,8.236V6h16V8.236z"}))}},{name:"mastodon",attributes:{service:"mastodon"},title:"Mastodon",icon:function(){return Object(Q.createElement)(ee.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(Q.createElement)(ee.Path,{d:"M23.193 7.879c0-5.206-3.411-6.732-3.411-6.732C18.062.357 15.108.025 12.041 0h-.076c-3.068.025-6.02.357-7.74 1.147 0 0-3.411 1.526-3.411 6.732 0 1.192-.023 2.618.015 4.129.124 5.092.934 10.109 5.641 11.355 2.17.574 4.034.695 5.535.612 2.722-.15 4.25-.972 4.25-.972l-.09-1.975s-1.945.613-4.129.539c-2.165-.074-4.449-.233-4.799-2.891a5.499 5.499 0 0 1-.048-.745s2.125.52 4.817.643c1.646.075 3.19-.097 4.758-.283 3.007-.359 5.625-2.212 5.954-3.905.517-2.665.475-6.507.475-6.507zm-4.024 6.709h-2.497V8.469c0-1.29-.543-1.944-1.628-1.944-1.2 0-1.802.776-1.802 2.312v3.349h-2.483v-3.35c0-1.536-.602-2.312-1.802-2.312-1.085 0-1.628.655-1.628 1.944v6.119H4.832V8.284c0-1.289.328-2.313.987-3.07.68-.758 1.569-1.146 2.674-1.146 1.278 0 2.246.491 2.886 1.474L12 6.585l.622-1.043c.64-.983 1.608-1.474 2.886-1.474 1.104 0 1.994.388 2.674 1.146.658.757.986 1.781.986 3.07v6.304z"}))}},{name:"meetup",attributes:{service:"meetup"},title:"Meetup",icon:function(){return Object(Q.createElement)(ee.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(Q.createElement)(ee.Path,{d:"M19.24775,14.722a3.57032,3.57032,0,0,1-2.94457,3.52073,3.61886,3.61886,0,0,1-.64652.05634c-.07314-.0008-.10187.02846-.12507.09547A2.38881,2.38881,0,0,1,13.49453,20.094a2.33092,2.33092,0,0,1-1.827-.50716.13635.13635,0,0,0-.19878-.00408,3.191,3.191,0,0,1-2.104.60248,3.26309,3.26309,0,0,1-3.00324-2.71993,2.19076,2.19076,0,0,1-.03512-.30865c-.00156-.08579-.03413-.1189-.11608-.13493a2.86421,2.86421,0,0,1-1.23189-.56111,2.945,2.945,0,0,1-1.166-2.05749,2.97484,2.97484,0,0,1,.87524-2.50774.112.112,0,0,0,.02091-.16107,2.7213,2.7213,0,0,1-.36648-1.48A2.81256,2.81256,0,0,1,6.57673,7.58838a.35764.35764,0,0,0,.28869-.22819,4.2208,4.2208,0,0,1,6.02892-1.90111.25161.25161,0,0,0,.22023.0243,3.65608,3.65608,0,0,1,3.76031.90678A3.57244,3.57244,0,0,1,17.95918,8.626a2.97339,2.97339,0,0,1,.01829.57356.10637.10637,0,0,0,.0853.12792,1.97669,1.97669,0,0,1,1.27939,1.33733,2.00266,2.00266,0,0,1-.57112,2.12652c-.05284.05166-.04168.08328-.01173.13489A3.51189,3.51189,0,0,1,19.24775,14.722Zm-6.35959-.27836a1.6984,1.6984,0,0,0,1.14556,1.61113,3.82039,3.82039,0,0,0,1.036.17935,1.46888,1.46888,0,0,0,.73509-.12255.44082.44082,0,0,0,.26057-.44274.45312.45312,0,0,0-.29211-.43375.97191.97191,0,0,0-.20678-.063c-.21326-.03806-.42754-.0701-.63973-.11215a.54787.54787,0,0,1-.50172-.60926,2.75864,2.75864,0,0,1,.1773-.901c.1763-.535.414-1.045.64183-1.55913A12.686,12.686,0,0,0,15.85,10.47863a1.58461,1.58461,0,0,0,.04861-.87208,1.04531,1.04531,0,0,0-.85432-.83981,1.60658,1.60658,0,0,0-1.23654.16594.27593.27593,0,0,1-.36286-.03413c-.085-.0747-.16594-.15379-.24918-.23055a.98682.98682,0,0,0-1.33577-.04933,6.1468,6.1468,0,0,1-.4989.41615.47762.47762,0,0,1-.51535.03566c-.17448-.09307-.35512-.175-.53531-.25665a1.74949,1.74949,0,0,0-.56476-.2016,1.69943,1.69943,0,0,0-1.61654.91787,8.05815,8.05815,0,0,0-.32952.80126c-.45471,1.2557-.82507,2.53825-1.20838,3.81639a1.24151,1.24151,0,0,0,.51532,1.44389,1.42659,1.42659,0,0,0,1.22008.17166,1.09728,1.09728,0,0,0,.66994-.69764c.44145-1.04111.839-2.09989,1.25981-3.14926.11581-.28876.22792-.57874.35078-.86438a.44548.44548,0,0,1,.69189-.19539.50521.50521,0,0,1,.15044.43836,1.75625,1.75625,0,0,1-.14731.50453c-.27379.69219-.55265,1.38236-.82766,2.074a2.0836,2.0836,0,0,0-.14038.42876.50719.50719,0,0,0,.27082.57722.87236.87236,0,0,0,.66145.02739.99137.99137,0,0,0,.53406-.532q.61571-1.20914,1.228-2.42031.28423-.55863.57585-1.1133a.87189.87189,0,0,1,.29055-.35253.34987.34987,0,0,1,.37634-.01265.30291.30291,0,0,1,.12434.31459.56716.56716,0,0,1-.04655.1915c-.05318.12739-.10286.25669-.16183.38156-.34118.71775-.68754,1.43273-1.02568,2.152A2.00213,2.00213,0,0,0,12.88816,14.44366Zm4.78568,5.28972a.88573.88573,0,0,0-1.77139.00465.8857.8857,0,0,0,1.77139-.00465Zm-14.83838-7.296a.84329.84329,0,1,0,.00827-1.68655.8433.8433,0,0,0-.00827,1.68655Zm10.366-9.43673a.83506.83506,0,1,0-.0091,1.67.83505.83505,0,0,0,.0091-1.67Zm6.85014,5.22a.71651.71651,0,0,0-1.433.0093.71656.71656,0,0,0,1.433-.0093ZM5.37528,6.17908A.63823.63823,0,1,0,6.015,5.54483.62292.62292,0,0,0,5.37528,6.17908Zm6.68214,14.80843a.54949.54949,0,1,0-.55052.541A.54556.54556,0,0,0,12.05742,20.98752Zm8.53235-8.49689a.54777.54777,0,0,0-.54027.54023.53327.53327,0,0,0,.532.52293.51548.51548,0,0,0,.53272-.5237A.53187.53187,0,0,0,20.58977,12.49063ZM7.82846,2.4715a.44927.44927,0,1,0,.44484.44766A.43821.43821,0,0,0,7.82846,2.4715Zm13.775,7.60492a.41186.41186,0,0,0-.40065.39623.40178.40178,0,0,0,.40168.40168A.38994.38994,0,0,0,22,10.48172.39946.39946,0,0,0,21.60349,10.07642ZM5.79193,17.96207a.40469.40469,0,0,0-.397-.39646.399.399,0,0,0-.396.405.39234.39234,0,0,0,.39939.389A.39857.39857,0,0,0,5.79193,17.96207Z"}))}},{name:"medium",attributes:{service:"medium"},title:"Medium",icon:function(){return Object(Q.createElement)(ee.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(Q.createElement)(ee.Path,{d:"M20.962,7.257l-5.457,8.867l-3.923-6.375l3.126-5.08c0.112-0.182,0.319-0.286,0.527-0.286c0.05,0,0.1,0.008,0.149,0.02 c0.039,0.01,0.078,0.023,0.114,0.041l5.43,2.715l0.006,0.003c0.004,0.002,0.007,0.006,0.011,0.008 C20.971,7.191,20.98,7.227,20.962,7.257z M9.86,8.592v5.783l5.14,2.57L9.86,8.592z M15.772,17.331l4.231,2.115 C20.554,19.721,21,19.529,21,19.016V8.835L15.772,17.331z M8.968,7.178L3.665,4.527C3.569,4.479,3.478,4.456,3.395,4.456 C3.163,4.456,3,4.636,3,4.938v11.45c0,0.306,0.224,0.669,0.498,0.806l4.671,2.335c0.12,0.06,0.234,0.088,0.337,0.088 c0.29,0,0.494-0.225,0.494-0.602V7.231C9,7.208,8.988,7.188,8.968,7.178z"}))}},{name:"pinterest",attributes:{service:"pinterest"},title:"Pinterest",icon:function(){return Object(Q.createElement)(ee.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(Q.createElement)(ee.Path,{d:"M12.289,2C6.617,2,3.606,5.648,3.606,9.622c0,1.846,1.025,4.146,2.666,4.878c0.25,0.111,0.381,0.063,0.439-0.169 c0.044-0.175,0.267-1.029,0.365-1.428c0.032-0.128,0.017-0.237-0.091-0.362C6.445,11.911,6.01,10.75,6.01,9.668 c0-2.777,2.194-5.464,5.933-5.464c3.23,0,5.49,2.108,5.49,5.122c0,3.407-1.794,5.768-4.13,5.768c-1.291,0-2.257-1.021-1.948-2.277 c0.372-1.495,1.089-3.112,1.089-4.191c0-0.967-0.542-1.775-1.663-1.775c-1.319,0-2.379,1.309-2.379,3.059 c0,1.115,0.394,1.869,0.394,1.869s-1.302,5.279-1.54,6.261c-0.405,1.666,0.053,4.368,0.094,4.604 c0.021,0.126,0.167,0.169,0.25,0.063c0.129-0.165,1.699-2.419,2.142-4.051c0.158-0.59,0.817-2.995,0.817-2.995 c0.43,0.784,1.681,1.446,3.013,1.446c3.963,0,6.822-3.494,6.822-7.833C20.394,5.112,16.849,2,12.289,2"}))}},{name:"pocket",attributes:{service:"pocket"},title:"Pocket",icon:function(){return Object(Q.createElement)(ee.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(Q.createElement)(ee.Path,{d:"M21.927,4.194C21.667,3.48,20.982,3,20.222,3h-0.01h-1.721H3.839C3.092,3,2.411,3.47,2.145,4.17 C2.066,4.378,2.026,4.594,2.026,4.814v6.035l0.069,1.2c0.29,2.73,1.707,5.115,3.899,6.778c0.039,0.03,0.079,0.059,0.119,0.089 l0.025,0.018c1.175,0.859,2.491,1.441,3.91,1.727c0.655,0.132,1.325,0.2,1.991,0.2c0.615,0,1.232-0.057,1.839-0.17 c0.073-0.014,0.145-0.028,0.219-0.044c0.02-0.004,0.042-0.012,0.064-0.023c1.359-0.297,2.621-0.864,3.753-1.691l0.025-0.018 c0.04-0.029,0.08-0.058,0.119-0.089c2.192-1.664,3.609-4.049,3.898-6.778l0.069-1.2V4.814C22.026,4.605,22,4.398,21.927,4.194z M17.692,10.481l-4.704,4.512c-0.266,0.254-0.608,0.382-0.949,0.382c-0.342,0-0.684-0.128-0.949-0.382l-4.705-4.512 C5.838,9.957,5.82,9.089,6.344,8.542c0.524-0.547,1.392-0.565,1.939-0.04l3.756,3.601l3.755-3.601 c0.547-0.524,1.415-0.506,1.939,0.04C18.256,9.089,18.238,9.956,17.692,10.481z"}))}},{name:"reddit",attributes:{service:"reddit"},title:"Reddit",icon:function(){return Object(Q.createElement)(ee.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(Q.createElement)(ee.Path,{d:"M22,11.816c0-1.256-1.021-2.277-2.277-2.277c-0.593,0-1.122,0.24-1.526,0.614c-1.481-0.965-3.455-1.594-5.647-1.69 l1.171-3.702l3.18,0.748c0.008,1.028,0.846,1.862,1.876,1.862c1.035,0,1.877-0.842,1.877-1.878c0-1.035-0.842-1.877-1.877-1.877 c-0.769,0-1.431,0.466-1.72,1.13l-3.508-0.826c-0.203-0.047-0.399,0.067-0.46,0.261l-1.35,4.268 c-2.316,0.038-4.411,0.67-5.97,1.671C5.368,9.765,4.853,9.539,4.277,9.539C3.021,9.539,2,10.56,2,11.816 c0,0.814,0.433,1.523,1.078,1.925c-0.037,0.221-0.061,0.444-0.061,0.672c0,3.292,4.011,5.97,8.941,5.97s8.941-2.678,8.941-5.97 c0-0.214-0.02-0.424-0.053-0.632C21.533,13.39,22,12.661,22,11.816z M18.776,4.394c0.606,0,1.1,0.493,1.1,1.1s-0.493,1.1-1.1,1.1 s-1.1-0.494-1.1-1.1S18.169,4.394,18.776,4.394z M2.777,11.816c0-0.827,0.672-1.5,1.499-1.5c0.313,0,0.598,0.103,0.838,0.269 c-0.851,0.676-1.477,1.479-1.812,2.36C2.983,12.672,2.777,12.27,2.777,11.816z M11.959,19.606c-4.501,0-8.164-2.329-8.164-5.193 S7.457,9.22,11.959,9.22s8.164,2.329,8.164,5.193S16.46,19.606,11.959,19.606z M20.636,13.001c-0.326-0.89-0.948-1.701-1.797-2.384 c0.248-0.186,0.55-0.301,0.883-0.301c0.827,0,1.5,0.673,1.5,1.5C21.223,12.299,20.992,12.727,20.636,13.001z M8.996,14.704 c-0.76,0-1.397-0.616-1.397-1.376c0-0.76,0.637-1.397,1.397-1.397c0.76,0,1.376,0.637,1.376,1.397 C10.372,14.088,9.756,14.704,8.996,14.704z M16.401,13.328c0,0.76-0.616,1.376-1.376,1.376c-0.76,0-1.399-0.616-1.399-1.376 c0-0.76,0.639-1.397,1.399-1.397C15.785,11.931,16.401,12.568,16.401,13.328z M15.229,16.708c0.152,0.152,0.152,0.398,0,0.55 c-0.674,0.674-1.727,1.002-3.219,1.002c-0.004,0-0.007-0.002-0.011-0.002c-0.004,0-0.007,0.002-0.011,0.002 c-1.492,0-2.544-0.328-3.218-1.002c-0.152-0.152-0.152-0.398,0-0.55c0.152-0.152,0.399-0.151,0.55,0 c0.521,0.521,1.394,0.775,2.669,0.775c0.004,0,0.007,0.002,0.011,0.002c0.004,0,0.007-0.002,0.011-0.002 c1.275,0,2.148-0.253,2.669-0.775C14.831,16.556,15.078,16.556,15.229,16.708z"}))}},{name:"skype",attributes:{service:"skype"},title:"Skype",icon:function(){return Object(Q.createElement)(ee.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(Q.createElement)(ee.Path,{d:"M10.113,2.699c0.033-0.006,0.067-0.013,0.1-0.02c0.033,0.017,0.066,0.033,0.098,0.051L10.113,2.699z M2.72,10.223 c-0.006,0.034-0.011,0.069-0.017,0.103c0.018,0.032,0.033,0.064,0.051,0.095L2.72,10.223z M21.275,13.771 c0.007-0.035,0.011-0.071,0.018-0.106c-0.018-0.031-0.033-0.064-0.052-0.095L21.275,13.771z M13.563,21.199 c0.032,0.019,0.065,0.035,0.096,0.053c0.036-0.006,0.071-0.011,0.105-0.017L13.563,21.199z M22,16.386 c0,1.494-0.581,2.898-1.637,3.953c-1.056,1.057-2.459,1.637-3.953,1.637c-0.967,0-1.914-0.251-2.75-0.725 c0.036-0.006,0.071-0.011,0.105-0.017l-0.202-0.035c0.032,0.019,0.065,0.035,0.096,0.053c-0.543,0.096-1.099,0.147-1.654,0.147 c-1.275,0-2.512-0.25-3.676-0.743c-1.125-0.474-2.135-1.156-3.002-2.023c-0.867-0.867-1.548-1.877-2.023-3.002 c-0.493-1.164-0.743-2.401-0.743-3.676c0-0.546,0.049-1.093,0.142-1.628c0.018,0.032,0.033,0.064,0.051,0.095L2.72,10.223 c-0.006,0.034-0.011,0.069-0.017,0.103C2.244,9.5,2,8.566,2,7.615c0-1.493,0.582-2.898,1.637-3.953 c1.056-1.056,2.46-1.638,3.953-1.638c0.915,0,1.818,0.228,2.622,0.655c-0.033,0.007-0.067,0.013-0.1,0.02l0.199,0.031 c-0.032-0.018-0.066-0.034-0.098-0.051c0.002,0,0.003-0.001,0.004-0.001c0.586-0.112,1.187-0.169,1.788-0.169 c1.275,0,2.512,0.249,3.676,0.742c1.124,0.476,2.135,1.156,3.002,2.024c0.868,0.867,1.548,1.877,2.024,3.002 c0.493,1.164,0.743,2.401,0.743,3.676c0,0.575-0.054,1.15-0.157,1.712c-0.018-0.031-0.033-0.064-0.052-0.095l0.034,0.201 c0.007-0.035,0.011-0.071,0.018-0.106C21.754,14.494,22,15.432,22,16.386z M16.817,14.138c0-1.331-0.613-2.743-3.033-3.282 l-2.209-0.49c-0.84-0.192-1.807-0.444-1.807-1.237c0-0.794,0.679-1.348,1.903-1.348c2.468,0,2.243,1.696,3.468,1.696 c0.645,0,1.209-0.379,1.209-1.031c0-1.521-2.435-2.663-4.5-2.663c-2.242,0-4.63,0.952-4.63,3.488c0,1.221,0.436,2.521,2.839,3.123 l2.984,0.745c0.903,0.223,1.129,0.731,1.129,1.189c0,0.762-0.758,1.507-2.129,1.507c-2.679,0-2.307-2.062-3.743-2.062 c-0.645,0-1.113,0.444-1.113,1.078c0,1.236,1.501,2.886,4.856,2.886C15.236,17.737,16.817,16.199,16.817,14.138z"}))}},{name:"snapchat",attributes:{service:"snapchat"},title:"Snapchat",icon:function(){return Object(Q.createElement)(ee.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(Q.createElement)(ee.Path,{d:"M12.065,2a5.526,5.526,0,0,1,3.132.892A5.854,5.854,0,0,1,17.326,5.4a5.821,5.821,0,0,1,.351,2.33q0,.612-.117,2.487a.809.809,0,0,0,.365.091,1.93,1.93,0,0,0,.664-.176,1.93,1.93,0,0,1,.664-.176,1.3,1.3,0,0,1,.729.234.7.7,0,0,1,.351.6.839.839,0,0,1-.41.7,2.732,2.732,0,0,1-.9.41,3.192,3.192,0,0,0-.9.378.728.728,0,0,0-.41.618,1.575,1.575,0,0,0,.156.56,6.9,6.9,0,0,0,1.334,1.953,5.6,5.6,0,0,0,1.881,1.315,5.875,5.875,0,0,0,1.042.3.42.42,0,0,1,.365.456q0,.911-2.852,1.341a1.379,1.379,0,0,0-.143.507,1.8,1.8,0,0,1-.182.605.451.451,0,0,1-.429.241,5.878,5.878,0,0,1-.807-.085,5.917,5.917,0,0,0-.833-.085,4.217,4.217,0,0,0-.807.065,2.42,2.42,0,0,0-.82.293,6.682,6.682,0,0,0-.755.5q-.351.267-.755.527a3.886,3.886,0,0,1-.989.436A4.471,4.471,0,0,1,11.831,22a4.307,4.307,0,0,1-1.256-.176,3.784,3.784,0,0,1-.976-.436q-.4-.26-.749-.527a6.682,6.682,0,0,0-.755-.5,2.422,2.422,0,0,0-.807-.293,4.432,4.432,0,0,0-.82-.065,5.089,5.089,0,0,0-.853.1,5,5,0,0,1-.762.1.474.474,0,0,1-.456-.241,1.819,1.819,0,0,1-.182-.618,1.411,1.411,0,0,0-.143-.521q-2.852-.429-2.852-1.341a.42.42,0,0,1,.365-.456,5.793,5.793,0,0,0,1.042-.3,5.524,5.524,0,0,0,1.881-1.315,6.789,6.789,0,0,0,1.334-1.953A1.575,1.575,0,0,0,6,12.9a.728.728,0,0,0-.41-.618,3.323,3.323,0,0,0-.9-.384,2.912,2.912,0,0,1-.9-.41.814.814,0,0,1-.41-.684.71.71,0,0,1,.338-.593,1.208,1.208,0,0,1,.716-.241,1.976,1.976,0,0,1,.625.169,2.008,2.008,0,0,0,.69.169.919.919,0,0,0,.416-.091q-.117-1.849-.117-2.474A5.861,5.861,0,0,1,6.385,5.4,5.516,5.516,0,0,1,8.625,2.819,7.075,7.075,0,0,1,12.062,2Z"}))}},{name:"soundcloud",attributes:{service:"soundcloud"},title:"SoundCloud",icon:function(){return Object(Q.createElement)(ee.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(Q.createElement)(ee.Path,{d:"M8.9,16.1L9,14L8.9,9.5c0-0.1,0-0.1-0.1-0.1c0,0-0.1-0.1-0.1-0.1c-0.1,0-0.1,0-0.1,0.1c0,0-0.1,0.1-0.1,0.1L8.3,14l0.1,2.1 c0,0.1,0,0.1,0.1,0.1c0,0,0.1,0.1,0.1,0.1C8.8,16.3,8.9,16.3,8.9,16.1z M11.4,15.9l0.1-1.8L11.4,9c0-0.1,0-0.2-0.1-0.2 c0,0-0.1,0-0.1,0s-0.1,0-0.1,0c-0.1,0-0.1,0.1-0.1,0.2l0,0.1l-0.1,5c0,0,0,0.7,0.1,2v0c0,0.1,0,0.1,0.1,0.1c0.1,0.1,0.1,0.1,0.2,0.1 c0.1,0,0.1,0,0.2-0.1c0.1,0,0.1-0.1,0.1-0.2L11.4,15.9z M2.4,12.9L2.5,14l-0.2,1.1c0,0.1,0,0.1-0.1,0.1c0,0-0.1,0-0.1-0.1L2.1,14 l0.1-1.1C2.2,12.9,2.3,12.9,2.4,12.9C2.3,12.9,2.4,12.9,2.4,12.9z M3.1,12.2L3.3,14l-0.2,1.8c0,0.1,0,0.1-0.1,0.1 c-0.1,0-0.1,0-0.1-0.1L2.8,14L3,12.2C3,12.2,3,12.2,3.1,12.2C3.1,12.2,3.1,12.2,3.1,12.2z M3.9,11.9L4.1,14l-0.2,2.1 c0,0.1,0,0.1-0.1,0.1c-0.1,0-0.1,0-0.1-0.1L3.5,14l0.2-2.1c0-0.1,0-0.1,0.1-0.1C3.9,11.8,3.9,11.8,3.9,11.9z M4.7,11.9L4.9,14 l-0.2,2.1c0,0.1-0.1,0.1-0.1,0.1c-0.1,0-0.1,0-0.1-0.1L4.3,14l0.2-2.2c0-0.1,0-0.1,0.1-0.1C4.7,11.7,4.7,11.8,4.7,11.9z M5.6,12 l0.2,2l-0.2,2.1c0,0.1-0.1,0.1-0.1,0.1c0,0-0.1,0-0.1,0c0,0,0-0.1,0-0.1L5.1,14l0.2-2c0,0,0-0.1,0-0.1s0.1,0,0.1,0 C5.5,11.9,5.5,11.9,5.6,12L5.6,12z M6.4,10.7L6.6,14l-0.2,2.1c0,0,0,0.1,0,0.1c0,0-0.1,0-0.1,0c-0.1,0-0.1-0.1-0.2-0.2L5.9,14 l0.2-3.3c0-0.1,0.1-0.2,0.2-0.2c0,0,0.1,0,0.1,0C6.4,10.7,6.4,10.7,6.4,10.7z M7.2,10l0.2,4.1l-0.2,2.1c0,0,0,0.1,0,0.1 c0,0-0.1,0-0.1,0c-0.1,0-0.2-0.1-0.2-0.2l-0.1-2.1L6.8,10c0-0.1,0.1-0.2,0.2-0.2c0,0,0.1,0,0.1,0S7.2,9.9,7.2,10z M8,9.6L8.2,14 L8,16.1c0,0.1-0.1,0.2-0.2,0.2c-0.1,0-0.2-0.1-0.2-0.2L7.5,14l0.1-4.4c0-0.1,0-0.1,0.1-0.1c0,0,0.1-0.1,0.1-0.1c0.1,0,0.1,0,0.1,0.1 C8,9.6,8,9.6,8,9.6z M11.4,16.1L11.4,16.1L11.4,16.1z M9.7,9.6L9.8,14l-0.1,2.1c0,0.1,0,0.1-0.1,0.2s-0.1,0.1-0.2,0.1 c-0.1,0-0.1,0-0.1-0.1s-0.1-0.1-0.1-0.2L9.2,14l0.1-4.4c0-0.1,0-0.1,0.1-0.2s0.1-0.1,0.2-0.1c0.1,0,0.1,0,0.2,0.1S9.7,9.5,9.7,9.6 L9.7,9.6z M10.6,9.8l0.1,4.3l-0.1,2c0,0.1,0,0.1-0.1,0.2c0,0-0.1,0.1-0.2,0.1c-0.1,0-0.1,0-0.2-0.1c0,0-0.1-0.1-0.1-0.2L10,14 l0.1-4.3c0-0.1,0-0.1,0.1-0.2c0,0,0.1-0.1,0.2-0.1c0.1,0,0.1,0,0.2,0.1S10.6,9.7,10.6,9.8z M12.4,14l-0.1,2c0,0.1,0,0.1-0.1,0.2 c-0.1,0.1-0.1,0.1-0.2,0.1c-0.1,0-0.1,0-0.2-0.1c-0.1-0.1-0.1-0.1-0.1-0.2l-0.1-1l-0.1-1l0.1-5.5v0c0-0.1,0-0.2,0.1-0.2 c0.1,0,0.1-0.1,0.2-0.1c0,0,0.1,0,0.1,0c0.1,0,0.1,0.1,0.1,0.2L12.4,14z M22.1,13.9c0,0.7-0.2,1.3-0.7,1.7c-0.5,0.5-1.1,0.7-1.7,0.7 h-6.8c-0.1,0-0.1,0-0.2-0.1c-0.1-0.1-0.1-0.1-0.1-0.2V8.2c0-0.1,0.1-0.2,0.2-0.3c0.5-0.2,1-0.3,1.6-0.3c1.1,0,2.1,0.4,2.9,1.1 c0.8,0.8,1.3,1.7,1.4,2.8c0.3-0.1,0.6-0.2,1-0.2c0.7,0,1.3,0.2,1.7,0.7C21.8,12.6,22.1,13.2,22.1,13.9L22.1,13.9z"}))}},{name:"spotify",attributes:{service:"spotify"},title:"Spotify",icon:function(){return Object(Q.createElement)(ee.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(Q.createElement)(ee.Path,{d:"M12,2C6.477,2,2,6.477,2,12c0,5.523,4.477,10,10,10c5.523,0,10-4.477,10-10C22,6.477,17.523,2,12,2 M16.586,16.424 c-0.18,0.295-0.563,0.387-0.857,0.207c-2.348-1.435-5.304-1.76-8.785-0.964c-0.335,0.077-0.67-0.133-0.746-0.469 c-0.077-0.335,0.132-0.67,0.469-0.746c3.809-0.871,7.077-0.496,9.713,1.115C16.673,15.746,16.766,16.13,16.586,16.424 M17.81,13.7 c-0.226,0.367-0.706,0.482-1.072,0.257c-2.687-1.652-6.785-2.131-9.965-1.166C6.36,12.917,5.925,12.684,5.8,12.273 C5.675,11.86,5.908,11.425,6.32,11.3c3.632-1.102,8.147-0.568,11.234,1.328C17.92,12.854,18.035,13.335,17.81,13.7 M17.915,10.865 c-3.223-1.914-8.54-2.09-11.618-1.156C5.804,9.859,5.281,9.58,5.131,9.086C4.982,8.591,5.26,8.069,5.755,7.919 c3.532-1.072,9.404-0.865,13.115,1.338c0.445,0.264,0.59,0.838,0.327,1.282C18.933,10.983,18.359,11.129,17.915,10.865"}))}},{name:"tumblr",attributes:{service:"tumblr"},title:"Tumblr",icon:function(){return Object(Q.createElement)(ee.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(Q.createElement)(ee.Path,{d:"M17.04 21.28h-3.28c-2.84 0-4.94-1.37-4.94-5.02v-5.67H6.08V7.5c2.93-.73 4.11-3.3 4.3-5.48h3.01v4.93h3.47v3.65H13.4v4.93c0 1.47.73 2.01 1.92 2.01h1.73v3.75z"}))}},{name:"twitch",attributes:{service:"twitch"},title:"Twitch",icon:function(){return Object(Q.createElement)(ee.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(Q.createElement)(ee.Path,{d:"M16.499,8.089h-1.636v4.91h1.636V8.089z M12,8.089h-1.637v4.91H12V8.089z M4.228,3.178L3,6.451v13.092h4.499V22h2.456 l2.454-2.456h3.681L21,14.636V3.178H4.228z M19.364,13.816l-2.864,2.865H12l-2.453,2.453V16.68H5.863V4.814h13.501V13.816z"}))}},{name:"twitter",attributes:{service:"twitter"},title:"Twitter",icon:function(){return Object(Q.createElement)(ee.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(Q.createElement)(ee.Path,{d:"M22.23,5.924c-0.736,0.326-1.527,0.547-2.357,0.646c0.847-0.508,1.498-1.312,1.804-2.27 c-0.793,0.47-1.671,0.812-2.606,0.996C18.324,4.498,17.257,4,16.077,4c-2.266,0-4.103,1.837-4.103,4.103 c0,0.322,0.036,0.635,0.106,0.935C8.67,8.867,5.647,7.234,3.623,4.751C3.27,5.357,3.067,6.062,3.067,6.814 c0,1.424,0.724,2.679,1.825,3.415c-0.673-0.021-1.305-0.206-1.859-0.513c0,0.017,0,0.034,0,0.052c0,1.988,1.414,3.647,3.292,4.023 c-0.344,0.094-0.707,0.144-1.081,0.144c-0.264,0-0.521-0.026-0.772-0.074c0.522,1.63,2.038,2.816,3.833,2.85 c-1.404,1.1-3.174,1.756-5.096,1.756c-0.331,0-0.658-0.019-0.979-0.057c1.816,1.164,3.973,1.843,6.29,1.843 c7.547,0,11.675-6.252,11.675-11.675c0-0.178-0.004-0.355-0.012-0.531C20.985,7.47,21.68,6.747,22.23,5.924z"}))}},{name:"vimeo",attributes:{service:"vimeo"},title:"Vimeo",icon:function(){return Object(Q.createElement)(ee.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(Q.createElement)(ee.Path,{d:"M22.396,7.164c-0.093,2.026-1.507,4.799-4.245,8.32C15.322,19.161,12.928,21,10.97,21c-1.214,0-2.24-1.119-3.079-3.359 c-0.56-2.053-1.119-4.106-1.68-6.159C5.588,9.243,4.921,8.122,4.206,8.122c-0.156,0-0.701,0.328-1.634,0.98L1.594,7.841 c1.027-0.902,2.04-1.805,3.037-2.708C6.001,3.95,7.03,3.327,7.715,3.264c1.619-0.156,2.616,0.951,2.99,3.321 c0.404,2.557,0.685,4.147,0.841,4.769c0.467,2.121,0.981,3.181,1.542,3.181c0.435,0,1.09-0.688,1.963-2.065 c0.871-1.376,1.338-2.422,1.401-3.142c0.125-1.187-0.343-1.782-1.401-1.782c-0.498,0-1.012,0.115-1.541,0.341 c1.023-3.35,2.977-4.977,5.862-4.884C21.511,3.066,22.52,4.453,22.396,7.164z"}))}},{name:"vk",attributes:{service:"vk"},title:"VK",icon:function(){return Object(Q.createElement)(ee.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(Q.createElement)(ee.Path,{d:"M22,7.1c0.2,0.4-0.4,1.5-1.6,3.1c-0.2,0.2-0.4,0.5-0.7,0.9c-0.5,0.7-0.9,1.1-0.9,1.4c-0.1,0.3-0.1,0.6,0.1,0.8 c0.1,0.1,0.4,0.4,0.8,0.9h0l0,0c1,0.9,1.6,1.7,2,2.3c0,0,0,0.1,0.1,0.1c0,0.1,0,0.1,0.1,0.3c0,0.1,0,0.2,0,0.4 c0,0.1-0.1,0.2-0.3,0.3c-0.1,0.1-0.4,0.1-0.6,0.1l-2.7,0c-0.2,0-0.4,0-0.6-0.1c-0.2-0.1-0.4-0.1-0.5-0.2l-0.2-0.1 c-0.2-0.1-0.5-0.4-0.7-0.7s-0.5-0.6-0.7-0.8c-0.2-0.2-0.4-0.4-0.6-0.6C14.8,15,14.6,15,14.4,15c0,0,0,0-0.1,0c0,0-0.1,0.1-0.2,0.2 c-0.1,0.1-0.2,0.2-0.2,0.3c-0.1,0.1-0.1,0.3-0.2,0.5c-0.1,0.2-0.1,0.5-0.1,0.8c0,0.1,0,0.2,0,0.3c0,0.1-0.1,0.2-0.1,0.2l0,0.1 c-0.1,0.1-0.3,0.2-0.6,0.2h-1.2c-0.5,0-1,0-1.5-0.2c-0.5-0.1-1-0.3-1.4-0.6s-0.7-0.5-1.1-0.7s-0.6-0.4-0.7-0.6l-0.3-0.3 c-0.1-0.1-0.2-0.2-0.3-0.3s-0.4-0.5-0.7-0.9s-0.7-1-1.1-1.6c-0.4-0.6-0.8-1.3-1.3-2.2C2.9,9.4,2.5,8.5,2.1,7.5C2,7.4,2,7.3,2,7.2 c0-0.1,0-0.1,0-0.2l0-0.1c0.1-0.1,0.3-0.2,0.6-0.2l2.9,0c0.1,0,0.2,0,0.2,0.1S5.9,6.9,5.9,7L6,7c0.1,0.1,0.2,0.2,0.3,0.3 C6.4,7.7,6.5,8,6.7,8.4C6.9,8.8,7,9,7.1,9.2l0.2,0.3c0.2,0.4,0.4,0.8,0.6,1.1c0.2,0.3,0.4,0.5,0.5,0.7s0.3,0.3,0.4,0.4 c0.1,0.1,0.3,0.1,0.4,0.1c0.1,0,0.2,0,0.3-0.1c0,0,0,0,0.1-0.1c0,0,0.1-0.1,0.1-0.2c0.1-0.1,0.1-0.3,0.1-0.5c0-0.2,0.1-0.5,0.1-0.8 c0-0.4,0-0.8,0-1.3c0-0.3,0-0.5-0.1-0.8c0-0.2-0.1-0.4-0.1-0.5L9.6,7.6C9.4,7.3,9.1,7.2,8.7,7.1C8.6,7.1,8.6,7,8.7,6.9 C8.9,6.7,9,6.6,9.1,6.5c0.4-0.2,1.2-0.3,2.5-0.3c0.6,0,1,0.1,1.4,0.1c0.1,0,0.3,0.1,0.3,0.1c0.1,0.1,0.2,0.1,0.2,0.3 c0,0.1,0.1,0.2,0.1,0.3s0,0.3,0,0.5c0,0.2,0,0.4,0,0.6c0,0.2,0,0.4,0,0.7c0,0.3,0,0.6,0,0.9c0,0.1,0,0.2,0,0.4c0,0.2,0,0.4,0,0.5 c0,0.1,0,0.3,0,0.4s0.1,0.3,0.1,0.4c0.1,0.1,0.1,0.2,0.2,0.3c0.1,0,0.1,0,0.2,0c0.1,0,0.2,0,0.3-0.1c0.1-0.1,0.2-0.2,0.4-0.4 s0.3-0.4,0.5-0.7c0.2-0.3,0.5-0.7,0.7-1.1c0.4-0.7,0.8-1.5,1.1-2.3c0-0.1,0.1-0.1,0.1-0.2c0-0.1,0.1-0.1,0.1-0.1l0,0l0.1,0 c0,0,0,0,0.1,0s0.2,0,0.2,0l3,0c0.3,0,0.5,0,0.7,0S21.9,7,21.9,7L22,7.1z"}))}},{name:"yelp",attributes:{service:"yelp"},title:"Yelp",icon:function(){return Object(Q.createElement)(ee.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(Q.createElement)(ee.Path,{d:"M12.271,16.718v1.417q-.011,3.257-.067,3.4a.707.707,0,0,1-.569.446,4.637,4.637,0,0,1-2.024-.424A4.609,4.609,0,0,1,7.8,20.565a.844.844,0,0,1-.19-.4.692.692,0,0,1,.044-.29,3.181,3.181,0,0,1,.379-.524q.335-.412,2.019-2.409.011,0,.669-.781a.757.757,0,0,1,.44-.274.965.965,0,0,1,.552.039.945.945,0,0,1,.418.324.732.732,0,0,1,.139.468Zm-1.662-2.8a.783.783,0,0,1-.58.781l-1.339.435q-3.067.981-3.257.981a.711.711,0,0,1-.6-.4,2.636,2.636,0,0,1-.19-.836,9.134,9.134,0,0,1,.011-1.857,3.559,3.559,0,0,1,.335-1.389.659.659,0,0,1,.625-.357,22.629,22.629,0,0,1,2.253.859q.781.324,1.283.524l.937.379a.771.771,0,0,1,.4.34A.982.982,0,0,1,10.609,13.917Zm9.213,3.313a4.467,4.467,0,0,1-1.021,1.8,4.559,4.559,0,0,1-1.512,1.417.671.671,0,0,1-.7-.078q-.156-.112-2.052-3.2l-.524-.859a.761.761,0,0,1-.128-.513.957.957,0,0,1,.217-.513.774.774,0,0,1,.926-.29q.011.011,1.327.446,2.264.736,2.7.887a2.082,2.082,0,0,1,.524.229.673.673,0,0,1,.245.68Zm-7.5-7.049q.056,1.137-.6,1.361-.647.19-1.272-.792L6.237,4.08a.7.7,0,0,1,.212-.691,5.788,5.788,0,0,1,2.314-1,5.928,5.928,0,0,1,2.5-.352.681.681,0,0,1,.547.5q.034.2.245,3.407T12.327,10.181Zm7.384,1.2a.679.679,0,0,1-.29.658q-.167.112-3.67.959-.747.167-1.015.257l.011-.022a.769.769,0,0,1-.513-.044.914.914,0,0,1-.413-.357.786.786,0,0,1,0-.971q.011-.011.836-1.137,1.394-1.908,1.673-2.275a2.423,2.423,0,0,1,.379-.435A.7.7,0,0,1,17.435,8a4.482,4.482,0,0,1,1.372,1.489,4.81,4.81,0,0,1,.9,1.868v.034Z"}))}},{name:"youtube",attributes:{service:"youtube"},title:"YouTube",icon:function(){return Object(Q.createElement)(ee.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},Object(Q.createElement)(ee.Path,{d:"M21.8,8.001c0,0-0.195-1.378-0.795-1.985c-0.76-0.797-1.613-0.801-2.004-0.847c-2.799-0.202-6.997-0.202-6.997-0.202 h-0.009c0,0-4.198,0-6.997,0.202C4.608,5.216,3.756,5.22,2.995,6.016C2.395,6.623,2.2,8.001,2.2,8.001S2,9.62,2,11.238v1.517 c0,1.618,0.2,3.237,0.2,3.237s0.195,1.378,0.795,1.985c0.761,0.797,1.76,0.771,2.205,0.855c1.6,0.153,6.8,0.201,6.8,0.201 s4.203-0.006,7.001-0.209c0.391-0.047,1.243-0.051,2.004-0.847c0.6-0.607,0.795-1.985,0.795-1.985s0.2-1.618,0.2-3.237v-1.517 C22,9.62,21.8,8.001,21.8,8.001z M9.935,14.594l-0.001-5.62l5.404,2.82L9.935,14.594z"}))}}],Yu=function(e){var t,r,n=e.attributes,c=e.setAttributes,o=e.isSelected,a=n.url,i=n.service,l=n.label,s=Object(Q.useState)(!1),u=Object(be.a)(s,2),b=u[0],m=u[1],d=ne()("wp-social-link","wp-social-link-"+i,{"wp-social-link__is-incomplete":!a}),p=(t=i,(r=Object(X.find)($u,{name:t}))?r.icon:Zu),g=function(e){var t=Object(X.find)($u,{name:e});return t?t.title:Object(J.__)("Social Icon")}(i),h=Object(Y.useBlockProps)({className:d});return Object(Q.createElement)(Q.Fragment,null,Object(Q.createElement)(Y.InspectorControls,null,Object(Q.createElement)(me.PanelBody,{title:Object(J.sprintf)(Object(J.__)("%s label"),g),initialOpen:!1},Object(Q.createElement)(me.PanelRow,null,Object(Q.createElement)(me.TextControl,{label:Object(J.__)("Link label"),help:Object(J.__)("Briefly describe the link to help screen reader users."),value:l,onChange:function(e){return c({label:e})}})))),Object(Q.createElement)("li",h,Object(Q.createElement)(me.Button,{onClick:function(){return m(!0)}},Object(Q.createElement)(p,null),o&&b&&Object(Q.createElement)(Y.URLPopover,{onClose:function(){return m(!1)}},Object(Q.createElement)("form",{className:"block-editor-url-popover__link-editor",onSubmit:function(e){e.preventDefault(),m(!1)}},Object(Q.createElement)("div",{className:"block-editor-url-input"},Object(Q.createElement)(Y.URLInput,{value:a,onChange:function(e){return c({url:e})},placeholder:Object(J.__)("Enter address"),disableSuggestions:!0})),Object(Q.createElement)(me.Button,{icon:qu.a,label:Object(J.__)("Apply"),type:"submit"}))))))},Ku={apiVersion:2,name:"core/social-link",category:"widgets",parent:["core/social-links"],attributes:{url:{type:"string"},service:{type:"string"},label:{type:"string"}},usesContext:["openInNewTab"],supports:{reusable:!1,html:!1}},Xu=Ku.name,Ju={title:Object(J.__)("Social Icon"),icon:Iu,edit:Yu,description:Object(J.__)("Display an icon linking to a social media profile or website."),variations:$u},Qu=function(e){if(e){var t=e.metadata,r=e.settings,n=e.name;t&&Object(K.unstable__bootstrapServerSideBlockDefinitions)(Object(Z.a)({},n,t)),Object(K.registerBlockType)(n,r)}},eb=function(){return[n,c,o,i,k,a,R,l,s,u,b,m,d,p,g,h,f,O,v,N,window.wp&&window.wp.oldEditor?G:null,j,y,w,_,E,C,x,S,P,T,z,M,B,U,W,V,A,H,F,L,I,D]},tb=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:eb();e.forEach(Qu),Object(K.setDefaultBlockName)(ye),window.wp&&window.wp.oldEditor&&Object(K.setFreeformContentHandlerName)(Hu),Object(K.setUnregisteredTypeHandlerName)(Ri),Object(K.setGroupingBlockName)(Wl)},rb=void 0},47:function(e,t){!function(){e.exports=this.wp.apiFetch}()},5:function(e,t,r){"use strict";function n(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}r.d(t,"a",(function(){return n}))},6:function(e,t){!function(){e.exports=this.wp.blockEditor}()},60:function(e,t,r){e.exports=function(e,t){var r,n,c=0;function o(){var o,a,i=r,l=arguments.length;e:for(;i;){if(i.args.length===arguments.length){for(a=0;a1&&(r-=1),r<1/6?e+6*(t-e)*r:r<.5?t:r<2/3?e+(t-e)*(2/3-r)*6:e}if(e=N(e,360),t=N(t,100),r=N(r,100),0===t)n=c=o=r;else{var i=r<.5?r*(1+t):r+t-r*t,l=2*r-i;n=a(l,i,e+1/3),c=a(l,i,e),o=a(l,i,e-1/3)}return{r:255*n,g:255*c,b:255*o}}(e.h,n,l),b=!0,m="hsl"),e.hasOwnProperty("a")&&(r=e.a));var d,p,g;return r=z(r),{ok:b,format:e.format||m,r:s(255,u(t.r,0)),g:s(255,u(t.g,0)),b:s(255,u(t.b,0)),a:r}}(e);this._originalInput=e,this._r=r.r,this._g=r.g,this._b=r.b,this._a=r.a,this._roundA=l(100*this._a)/100,this._format=t.format||r.format,this._gradientType=t.gradientType,this._r<1&&(this._r=l(this._r)),this._g<1&&(this._g=l(this._g)),this._b<1&&(this._b=l(this._b)),this._ok=r.ok,this._tc_id=i++}function d(e,t,r){e=N(e,255),t=N(t,255),r=N(r,255);var n,c,o=u(e,t,r),a=s(e,t,r),i=(o+a)/2;if(o==a)n=c=0;else{var l=o-a;switch(c=i>.5?l/(2-o-a):l/(o+a),o){case e:n=(t-r)/l+(t>1)+720)%360;--t;)n.h=(n.h+c)%360,o.push(m(n));return o}function P(e,t){t=t||6;for(var r=m(e).toHsv(),n=r.h,c=r.s,o=r.v,a=[],i=1/t;t--;)a.push(m({h:n,s:c,v:o})),o=(o+i)%1;return a}m.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},getLuminance:function(){var e,t,r,n=this.toRgb();return e=n.r/255,t=n.g/255,r=n.b/255,.2126*(e<=.03928?e/12.92:c.pow((e+.055)/1.055,2.4))+.7152*(t<=.03928?t/12.92:c.pow((t+.055)/1.055,2.4))+.0722*(r<=.03928?r/12.92:c.pow((r+.055)/1.055,2.4))},setAlpha:function(e){return this._a=z(e),this._roundA=l(100*this._a)/100,this},toHsv:function(){var e=p(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=p(this._r,this._g,this._b),t=l(360*e.h),r=l(100*e.s),n=l(100*e.v);return 1==this._a?"hsv("+t+", "+r+"%, "+n+"%)":"hsva("+t+", "+r+"%, "+n+"%, "+this._roundA+")"},toHsl:function(){var e=d(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=d(this._r,this._g,this._b),t=l(360*e.h),r=l(100*e.s),n=l(100*e.l);return 1==this._a?"hsl("+t+", "+r+"%, "+n+"%)":"hsla("+t+", "+r+"%, "+n+"%, "+this._roundA+")"},toHex:function(e){return g(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return function(e,t,r,n,c){var o=[V(l(e).toString(16)),V(l(t).toString(16)),V(l(r).toString(16)),V(H(n))];if(c&&o[0].charAt(0)==o[0].charAt(1)&&o[1].charAt(0)==o[1].charAt(1)&&o[2].charAt(0)==o[2].charAt(1)&&o[3].charAt(0)==o[3].charAt(1))return o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0)+o[3].charAt(0);return o.join("")}(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:l(this._r),g:l(this._g),b:l(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+l(this._r)+", "+l(this._g)+", "+l(this._b)+")":"rgba("+l(this._r)+", "+l(this._g)+", "+l(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:l(100*N(this._r,255))+"%",g:l(100*N(this._g,255))+"%",b:l(100*N(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+l(100*N(this._r,255))+"%, "+l(100*N(this._g,255))+"%, "+l(100*N(this._b,255))+"%)":"rgba("+l(100*N(this._r,255))+"%, "+l(100*N(this._g,255))+"%, "+l(100*N(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(T[g(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var t="#"+h(this._r,this._g,this._b,this._a),r=t,n=this._gradientType?"GradientType = 1, ":"";if(e){var c=m(e);r="#"+h(c._r,c._g,c._b,c._a)}return"progid:DXImageTransform.Microsoft.gradient("+n+"startColorstr="+t+",endColorstr="+r+")"},toString:function(e){var t=!!e;e=e||this._format;var r=!1,n=this._a<1&&this._a>=0;return t||!n||"hex"!==e&&"hex6"!==e&&"hex3"!==e&&"hex4"!==e&&"hex8"!==e&&"name"!==e?("rgb"===e&&(r=this.toRgbString()),"prgb"===e&&(r=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(r=this.toHexString()),"hex3"===e&&(r=this.toHexString(!0)),"hex4"===e&&(r=this.toHex8String(!0)),"hex8"===e&&(r=this.toHex8String()),"name"===e&&(r=this.toName()),"hsl"===e&&(r=this.toHslString()),"hsv"===e&&(r=this.toHsvString()),r||this.toHexString()):"name"===e&&0===this._a?this.toName():this.toRgbString()},clone:function(){return m(this.toString())},_applyModification:function(e,t){var r=e.apply(null,[this].concat([].slice.call(t)));return this._r=r._r,this._g=r._g,this._b=r._b,this.setAlpha(r._a),this},lighten:function(){return this._applyModification(j,arguments)},brighten:function(){return this._applyModification(y,arguments)},darken:function(){return this._applyModification(w,arguments)},desaturate:function(){return this._applyModification(f,arguments)},saturate:function(){return this._applyModification(O,arguments)},greyscale:function(){return this._applyModification(v,arguments)},spin:function(){return this._applyModification(_,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(S,arguments)},complement:function(){return this._applyCombination(k,arguments)},monochromatic:function(){return this._applyCombination(P,arguments)},splitcomplement:function(){return this._applyCombination(x,arguments)},triad:function(){return this._applyCombination(E,arguments)},tetrad:function(){return this._applyCombination(C,arguments)}},m.fromRatio=function(e,t){if("object"==typeof e){var r={};for(var n in e)e.hasOwnProperty(n)&&(r[n]="a"===n?e[n]:A(e[n]));e=r}return m(e,t)},m.equals=function(e,t){return!(!e||!t)&&m(e).toRgbString()==m(t).toRgbString()},m.random=function(){return m.fromRatio({r:b(),g:b(),b:b()})},m.mix=function(e,t,r){r=0===r?0:r||50;var n=m(e).toRgb(),c=m(t).toRgb(),o=r/100;return m({r:(c.r-n.r)*o+n.r,g:(c.g-n.g)*o+n.g,b:(c.b-n.b)*o+n.b,a:(c.a-n.a)*o+n.a})},m.readability=function(e,t){var r=m(e),n=m(t);return(c.max(r.getLuminance(),n.getLuminance())+.05)/(c.min(r.getLuminance(),n.getLuminance())+.05)},m.isReadable=function(e,t,r){var n,c,o=m.readability(e,t);switch(c=!1,(n=function(e){var t,r;t=((e=e||{level:"AA",size:"small"}).level||"AA").toUpperCase(),r=(e.size||"small").toLowerCase(),"AA"!==t&&"AAA"!==t&&(t="AA");"small"!==r&&"large"!==r&&(r="small");return{level:t,size:r}}(r)).level+n.size){case"AAsmall":case"AAAlarge":c=o>=4.5;break;case"AAlarge":c=o>=3;break;case"AAAsmall":c=o>=7}return c},m.mostReadable=function(e,t,r){var n,c,o,a,i=null,l=0;c=(r=r||{}).includeFallbackColors,o=r.level,a=r.size;for(var s=0;sl&&(l=n,i=m(t[s]));return m.isReadable(e,i,{level:o,size:a})||!c?i:(r.includeFallbackColors=!1,m.mostReadable(e,["#fff","#000"],r))};var B=m.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},T=m.hexNames=function(e){var t={};for(var r in e)e.hasOwnProperty(r)&&(t[e[r]]=r);return t}(B);function z(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function N(e,t){(function(e){return"string"==typeof e&&-1!=e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var r=function(e){return"string"==typeof e&&-1!=e.indexOf("%")}(e);return e=s(t,u(0,parseFloat(e))),r&&(e=parseInt(e*t,10)/100),c.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function M(e){return s(1,u(0,e))}function R(e){return parseInt(e,16)}function V(e){return 1==e.length?"0"+e:""+e}function A(e){return e<=1&&(e=100*e+"%"),e}function H(e){return c.round(255*parseFloat(e)).toString(16)}function L(e){return R(e)/255}var I,D,F,G=(D="[\\s|\\(]+("+(I="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+I+")[,|\\s]+("+I+")\\s*\\)?",F="[\\s|\\(]+("+I+")[,|\\s]+("+I+")[,|\\s]+("+I+")[,|\\s]+("+I+")\\s*\\)?",{CSS_UNIT:new RegExp(I),rgb:new RegExp("rgb"+D),rgba:new RegExp("rgba"+F),hsl:new RegExp("hsl"+D),hsla:new RegExp("hsla"+F),hsv:new RegExp("hsv"+D),hsva:new RegExp("hsva"+F),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function U(e){return!!G.CSS_UNIT.exec(e)}e.exports?e.exports=m:void 0===(n=function(){return m}.call(t,r,t,e))||(e.exports=n)}(Math)},7:function(e,t){!function(){e.exports=this.wp.primitives}()},75:function(e,t){!function(){e.exports=this.wp.date}()},8:function(e,t,r){"use strict";function n(){return(n=Object.assign||function(e){for(var t=1;tt.length)&&(n=t.length);for(var r=0,e=new Array(n);r)[^])*)\5|[^]*?)}\s+)?(\/)?-->/g;function l(t,n,r,e,o){return{blockName:t,attrs:n,innerBlocks:r,innerHTML:e,innerContent:o}}function f(t){return l(null,{},[],t,[t])}var s=function(t){e=t,o=0,u=[],i=[],a.lastIndex=0;do{}while(p());return u};function p(){var t=function(){var t=a.exec(e);if(null===t)return["no-more-tokens"];var n=t.index,r=Object(c.a)(t,7),o=r[0],u=r[1],i=r[2],l=r[3],f=r[4],s=r[6],p=o.length,b=!!u,d=!!s,v=(i||"core/")+l,h=!!f,y=h?function(t){try{return JSON.parse(t)}catch(t){return null}}(f):{};if(d)return["void-block",v,y,n,p];if(b)return["block-closer",v,null,n,p];return["block-opener",v,y,n,p]}(),n=Object(c.a)(t,5),r=n[0],s=n[1],p=n[2],h=n[3],y=n[4],k=i.length,O=h>o?o:null;switch(r){case"no-more-tokens":if(0===k)return b(),!1;if(1===k)return v(),!1;for(;0t.length)&&(n=t.length);for(var r=0,e=new Array(n);r)[^])*)\5|[^]*?)}\s+)?(\/)?-->/g;function l(t,n,r,e,o){return{blockName:t,attrs:n,innerBlocks:r,innerHTML:e,innerContent:o}}function f(t){return l(null,{},[],t,[t])}var s=function(t){e=t,o=0,u=[],i=[],a.lastIndex=0;do{}while(p());return u};function p(){var t=function(){var t=a.exec(e);if(null===t)return["no-more-tokens"];var n=t.index,r=Object(c.a)(t,7),o=r[0],u=r[1],i=r[2],l=r[3],f=r[4],s=r[6],p=o.length,b=!!u,d=!!s,v=(i||"core/")+l,h=!!f,y=h?function(t){try{return JSON.parse(t)}catch(t){return null}}(f):{};if(d)return["void-block",v,y,n,p];if(b)return["block-closer",v,null,n,p];return["block-opener",v,y,n,p]}(),n=Object(c.a)(t,5),r=n[0],s=n[1],p=n[2],h=n[3],y=n[4],k=i.length,O=h>o?o:null;switch(r){case"no-more-tokens":if(0===k)return b(),!1;if(1===k)return v(),!1;for(;0 1 || registration_hasBlockSupport(blockType, 'lightBlockWrapper', false); - if (Object(external_this_lodash_["isObject"])(element) && Object(external_this_wp_hooks_["hasFilter"])('blocks.getSaveContent.extraProps') && !blockType.apiVersion) { + if (Object(external_this_lodash_["isObject"])(element) && Object(external_this_wp_hooks_["hasFilter"])('blocks.getSaveContent.extraProps') && !hasLightBlockWrapper) { /** * Filters the props applied to the block save result element. * @@ -11560,7 +11561,7 @@ function figureContentReducer(node, doc, schema) { } // EXTERNAL MODULE: external {"this":["wp","shortcode"]} -var external_this_wp_shortcode_ = __webpack_require__(130); +var external_this_wp_shortcode_ = __webpack_require__(131); // CONCATENATED MODULE: ./node_modules/@wordpress/blocks/build-module/api/raw-handling/shortcode-converter.js @@ -11654,7 +11655,7 @@ function segmentHTMLToShortcodeBlock(HTML) { /* harmony default export */ var shortcode_converter = (segmentHTMLToShortcodeBlock); // EXTERNAL MODULE: ./node_modules/showdown/dist/showdown.js -var showdown = __webpack_require__(284); +var showdown = __webpack_require__(285); var showdown_default = /*#__PURE__*/__webpack_require__.n(showdown); // CONCATENATED MODULE: ./node_modules/@wordpress/blocks/build-module/api/raw-handling/markdown-converter.js diff --git a/wp-includes/js/dist/blocks.min.js b/wp-includes/js/dist/blocks.min.js index dd741adbd0..76fea9a91e 100644 --- a/wp-includes/js/dist/blocks.min.js +++ b/wp-includes/js/dist/blocks.min.js @@ -1,3 +1,3 @@ /*! This file is auto-generated */ -this.wp=this.wp||{},this.wp.blocks=function(e){var t={};function r(n){if(t[n])return t[n].exports;var a=t[n]={i:n,l:!1,exports:{}};return e[n].call(a.exports,a,a.exports,r),a.l=!0,a.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)r.d(n,a,function(t){return e[t]}.bind(null,a));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=459)}({0:function(e,t){!function(){e.exports=this.wp.element}()},1:function(e,t){!function(){e.exports=this.wp.i18n}()},10:function(e,t){!function(){e.exports=this.wp.compose}()},105:function(e,t){!function(){e.exports=this.wp.autop}()},12:function(e,t,r){"use strict";r.d(t,"a",(function(){return i}));var n=r(38);var a=r(30),o=r(39);function i(e,t){return Object(n.a)(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var r=[],n=!0,a=!1,o=void 0;try{for(var i,s=e[Symbol.iterator]();!(n=(i=s.next()).done)&&(r.push(i.value),!t||r.length!==t);n=!0);}catch(e){a=!0,o=e}finally{try{n||null==s.return||s.return()}finally{if(a)throw o}}return r}}(e,t)||Object(a.a)(e,t)||Object(o.a)()}},130:function(e,t){!function(){e.exports=this.wp.shortcode}()},148:function(e,t,r){"use strict";r.d(t,"a",(function(){return s}));var n=r(38),a=r(37),o=r(30),i=r(39);function s(e){return Object(n.a)(e)||Object(a.a)(e)||Object(o.a)(e)||Object(i.a)()}},17:function(e,t,r){"use strict";r.d(t,"a",(function(){return i}));var n=r(27);var a=r(37),o=r(30);function i(e){return function(e){if(Array.isArray(e))return Object(n.a)(e)}(e)||Object(a.a)(e)||Object(o.a)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},2:function(e,t){!function(){e.exports=this.lodash}()},208:function(e,t,r){"use strict";var n=r(0),a=r(7),o=Object(n.createElement)(a.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(n.createElement)(a.Path,{d:"M19 8h-1V6h-5v2h-2V6H6v2H5c-1.1 0-2 .9-2 2v8c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-8c0-1.1-.9-2-2-2zm.5 10c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5v-8c0-.3.2-.5.5-.5h14c.3 0 .5.2.5.5v8z"}));t.a=o},21:function(e,t,r){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}r.d(t,"a",(function(){return n}))},22:function(e,t,r){"use strict";function n(e,t){for(var r=0;re.length)&&(t=e.length);for(var r=0,n=new Array(t);r (GFM Style)",type:"boolean"},requireSpaceBeforeHeadingText:{defaultValue:!1,description:"Makes adding a space between `#` and the header text mandatory (GFM Style)",type:"boolean"},ghMentions:{defaultValue:!1,description:"Enables github @mentions",type:"boolean"},ghMentionsLink:{defaultValue:"https://github.com/{u}",description:"Changes the link generated by @mentions. Only applies if ghMentions option is enabled.",type:"string"},encodeEmails:{defaultValue:!0,description:"Encode e-mail addresses through the use of Character Entities, transforming ASCII e-mail addresses into its equivalent decimal entities",type:"boolean"},openLinksInNewWindow:{defaultValue:!1,description:"Open all links in new windows",type:"boolean"},backslashEscapesHTMLTags:{defaultValue:!1,description:"Support for HTML Tag escaping. ex:
    foo
    ",type:"boolean"},emoji:{defaultValue:!1,description:"Enable emoji support. Ex: `this is a :smile: emoji`",type:"boolean"},underline:{defaultValue:!1,description:"Enable support for underline. Syntax is double or triple underscores: `__underline word__`. With this option enabled, underscores no longer parses into `` and ``",type:"boolean"},completeHTMLDocument:{defaultValue:!1,description:"Outputs a complete html document, including ``, `` and `` tags",type:"boolean"},metadata:{defaultValue:!1,description:"Enable support for document metadata (defined at the top of the document between `«««` and `»»»` or between `---` and `---`).",type:"boolean"},splitAdjacentBlockquotes:{defaultValue:!1,description:"Split adjacent blockquote blocks",type:"boolean"}};if(!1===e)return JSON.parse(JSON.stringify(t));var r={};for(var n in t)t.hasOwnProperty(n)&&(r[n]=t[n].defaultValue);return r}var o={},i={},s={},c=a(!0),u="vanilla",l={github:{omitExtraWLInCodeBlocks:!0,simplifiedAutoLink:!0,excludeTrailingPunctuationFromURLs:!0,literalMidWordUnderscores:!0,strikethrough:!0,tables:!0,tablesHeaderId:!0,ghCodeBlocks:!0,tasklists:!0,disableForced4SpacesIndentedSublists:!0,simpleLineBreaks:!0,requireSpaceBeforeHeadingText:!0,ghCompatibleHeaderId:!0,ghMentions:!0,backslashEscapesHTMLTags:!0,emoji:!0,splitAdjacentBlockquotes:!0},original:{noHeaderId:!0,ghCodeBlocks:!1},ghost:{omitExtraWLInCodeBlocks:!0,parseImgDimensions:!0,simplifiedAutoLink:!0,excludeTrailingPunctuationFromURLs:!0,literalMidWordUnderscores:!0,strikethrough:!0,tables:!0,tablesHeaderId:!0,ghCodeBlocks:!0,tasklists:!0,smoothLivePreview:!0,simpleLineBreaks:!0,requireSpaceBeforeHeadingText:!0,ghMentions:!1,encodeEmails:!0},vanilla:a(!0),allOn:function(){"use strict";var e=a(!0),t={};for(var r in e)e.hasOwnProperty(r)&&(t[r]=!0);return t}()};function f(e,t){"use strict";var r=t?"Error in "+t+" extension->":"Error in unnamed extension",n={valid:!0,error:""};o.helper.isArray(e)||(e=[e]);for(var a=0;a").replace(/&/g,"&")};var p=function(e,t,r,n){"use strict";var a,o,i,s,c,u=n||"",l=u.indexOf("g")>-1,f=new RegExp(t+"|"+r,"g"+u.replace(/g/g,"")),d=new RegExp(t,u.replace(/g/g,"")),p=[];do{for(a=0;i=f.exec(e);)if(d.test(i[0]))a++||(s=(o=f.lastIndex)-i[0].length);else if(a&&!--a){c=i.index+i[0].length;var h={left:{start:s,end:o},match:{start:o,end:i.index},right:{start:i.index,end:c},wholeMatch:{start:s,end:c}};if(p.push(h),!l)return p}}while(a&&(f.lastIndex=o));return p};o.helper.matchRecursiveRegExp=function(e,t,r,n){"use strict";for(var a=p(e,t,r,n),o=[],i=0;i0){var l=[];0!==s[0].wholeMatch.start&&l.push(e.slice(0,s[0].wholeMatch.start));for(var f=0;f=0?n+(r||0):n},o.helper.splitAtIndex=function(e,t){"use strict";if(!o.helper.isString(e))throw"InvalidArgumentError: first parameter of showdown.helper.regexIndexOf function must be a string";return[e.substring(0,t),e.substring(t)]},o.helper.encodeEmailAddress=function(e){"use strict";var t=[function(e){return"&#"+e.charCodeAt(0)+";"},function(e){return"&#x"+e.charCodeAt(0).toString(16)+";"},function(e){return e}];return e=e.replace(/./g,(function(e){if("@"===e)e=t[Math.floor(2*Math.random())](e);else{var r=Math.random();e=r>.9?t[2](e):r>.45?t[1](e):t[0](e)}return e}))},o.helper.padEnd=function(e,t,r){"use strict";return t>>=0,r=String(r||" "),e.length>t?String(e):((t-=e.length)>r.length&&(r+=r.repeat(t/r.length)),String(e)+r.slice(0,t))},"undefined"==typeof console&&(console={warn:function(e){"use strict";alert(e)},log:function(e){"use strict";alert(e)},error:function(e){"use strict";throw e}}),o.helper.regexes={asteriskDashAndColon:/([*_:~])/g},o.helper.emojis={"+1":"👍","-1":"👎",100:"💯",1234:"🔢","1st_place_medal":"🥇","2nd_place_medal":"🥈","3rd_place_medal":"🥉","8ball":"🎱",a:"🅰️",ab:"🆎",abc:"🔤",abcd:"🔡",accept:"🉑",aerial_tramway:"🚡",airplane:"✈️",alarm_clock:"⏰",alembic:"⚗️",alien:"👽",ambulance:"🚑",amphora:"🏺",anchor:"⚓️",angel:"👼",anger:"💢",angry:"😠",anguished:"😧",ant:"🐜",apple:"🍎",aquarius:"♒️",aries:"♈️",arrow_backward:"◀️",arrow_double_down:"⏬",arrow_double_up:"⏫",arrow_down:"⬇️",arrow_down_small:"🔽",arrow_forward:"▶️",arrow_heading_down:"⤵️",arrow_heading_up:"⤴️",arrow_left:"⬅️",arrow_lower_left:"↙️",arrow_lower_right:"↘️",arrow_right:"➡️",arrow_right_hook:"↪️",arrow_up:"⬆️",arrow_up_down:"↕️",arrow_up_small:"🔼",arrow_upper_left:"↖️",arrow_upper_right:"↗️",arrows_clockwise:"🔃",arrows_counterclockwise:"🔄",art:"🎨",articulated_lorry:"🚛",artificial_satellite:"🛰",astonished:"😲",athletic_shoe:"👟",atm:"🏧",atom_symbol:"⚛️",avocado:"🥑",b:"🅱️",baby:"👶",baby_bottle:"🍼",baby_chick:"🐤",baby_symbol:"🚼",back:"🔙",bacon:"🥓",badminton:"🏸",baggage_claim:"🛄",baguette_bread:"🥖",balance_scale:"⚖️",balloon:"🎈",ballot_box:"🗳",ballot_box_with_check:"☑️",bamboo:"🎍",banana:"🍌",bangbang:"‼️",bank:"🏦",bar_chart:"📊",barber:"💈",baseball:"⚾️",basketball:"🏀",basketball_man:"⛹️",basketball_woman:"⛹️‍♀️",bat:"🦇",bath:"🛀",bathtub:"🛁",battery:"🔋",beach_umbrella:"🏖",bear:"🐻",bed:"🛏",bee:"🐝",beer:"🍺",beers:"🍻",beetle:"🐞",beginner:"🔰",bell:"🔔",bellhop_bell:"🛎",bento:"🍱",biking_man:"🚴",bike:"🚲",biking_woman:"🚴‍♀️",bikini:"👙",biohazard:"☣️",bird:"🐦",birthday:"🎂",black_circle:"⚫️",black_flag:"🏴",black_heart:"🖤",black_joker:"🃏",black_large_square:"⬛️",black_medium_small_square:"◾️",black_medium_square:"◼️",black_nib:"✒️",black_small_square:"▪️",black_square_button:"🔲",blonde_man:"👱",blonde_woman:"👱‍♀️",blossom:"🌼",blowfish:"🐡",blue_book:"📘",blue_car:"🚙",blue_heart:"💙",blush:"😊",boar:"🐗",boat:"⛵️",bomb:"💣",book:"📖",bookmark:"🔖",bookmark_tabs:"📑",books:"📚",boom:"💥",boot:"👢",bouquet:"💐",bowing_man:"🙇",bow_and_arrow:"🏹",bowing_woman:"🙇‍♀️",bowling:"🎳",boxing_glove:"🥊",boy:"👦",bread:"🍞",bride_with_veil:"👰",bridge_at_night:"🌉",briefcase:"💼",broken_heart:"💔",bug:"🐛",building_construction:"🏗",bulb:"💡",bullettrain_front:"🚅",bullettrain_side:"🚄",burrito:"🌯",bus:"🚌",business_suit_levitating:"🕴",busstop:"🚏",bust_in_silhouette:"👤",busts_in_silhouette:"👥",butterfly:"🦋",cactus:"🌵",cake:"🍰",calendar:"📆",call_me_hand:"🤙",calling:"📲",camel:"🐫",camera:"📷",camera_flash:"📸",camping:"🏕",cancer:"♋️",candle:"🕯",candy:"🍬",canoe:"🛶",capital_abcd:"🔠",capricorn:"♑️",car:"🚗",card_file_box:"🗃",card_index:"📇",card_index_dividers:"🗂",carousel_horse:"🎠",carrot:"🥕",cat:"🐱",cat2:"🐈",cd:"💿",chains:"⛓",champagne:"🍾",chart:"💹",chart_with_downwards_trend:"📉",chart_with_upwards_trend:"📈",checkered_flag:"🏁",cheese:"🧀",cherries:"🍒",cherry_blossom:"🌸",chestnut:"🌰",chicken:"🐔",children_crossing:"🚸",chipmunk:"🐿",chocolate_bar:"🍫",christmas_tree:"🎄",church:"⛪️",cinema:"🎦",circus_tent:"🎪",city_sunrise:"🌇",city_sunset:"🌆",cityscape:"🏙",cl:"🆑",clamp:"🗜",clap:"👏",clapper:"🎬",classical_building:"🏛",clinking_glasses:"🥂",clipboard:"📋",clock1:"🕐",clock10:"🕙",clock1030:"🕥",clock11:"🕚",clock1130:"🕦",clock12:"🕛",clock1230:"🕧",clock130:"🕜",clock2:"🕑",clock230:"🕝",clock3:"🕒",clock330:"🕞",clock4:"🕓",clock430:"🕟",clock5:"🕔",clock530:"🕠",clock6:"🕕",clock630:"🕡",clock7:"🕖",clock730:"🕢",clock8:"🕗",clock830:"🕣",clock9:"🕘",clock930:"🕤",closed_book:"📕",closed_lock_with_key:"🔐",closed_umbrella:"🌂",cloud:"☁️",cloud_with_lightning:"🌩",cloud_with_lightning_and_rain:"⛈",cloud_with_rain:"🌧",cloud_with_snow:"🌨",clown_face:"🤡",clubs:"♣️",cocktail:"🍸",coffee:"☕️",coffin:"⚰️",cold_sweat:"😰",comet:"☄️",computer:"💻",computer_mouse:"🖱",confetti_ball:"🎊",confounded:"😖",confused:"😕",congratulations:"㊗️",construction:"🚧",construction_worker_man:"👷",construction_worker_woman:"👷‍♀️",control_knobs:"🎛",convenience_store:"🏪",cookie:"🍪",cool:"🆒",policeman:"👮",copyright:"©️",corn:"🌽",couch_and_lamp:"🛋",couple:"👫",couple_with_heart_woman_man:"💑",couple_with_heart_man_man:"👨‍❤️‍👨",couple_with_heart_woman_woman:"👩‍❤️‍👩",couplekiss_man_man:"👨‍❤️‍💋‍👨",couplekiss_man_woman:"💏",couplekiss_woman_woman:"👩‍❤️‍💋‍👩",cow:"🐮",cow2:"🐄",cowboy_hat_face:"🤠",crab:"🦀",crayon:"🖍",credit_card:"💳",crescent_moon:"🌙",cricket:"🏏",crocodile:"🐊",croissant:"🥐",crossed_fingers:"🤞",crossed_flags:"🎌",crossed_swords:"⚔️",crown:"👑",cry:"😢",crying_cat_face:"😿",crystal_ball:"🔮",cucumber:"🥒",cupid:"💘",curly_loop:"➰",currency_exchange:"💱",curry:"🍛",custard:"🍮",customs:"🛃",cyclone:"🌀",dagger:"🗡",dancer:"💃",dancing_women:"👯",dancing_men:"👯‍♂️",dango:"🍡",dark_sunglasses:"🕶",dart:"🎯",dash:"💨",date:"📅",deciduous_tree:"🌳",deer:"🦌",department_store:"🏬",derelict_house:"🏚",desert:"🏜",desert_island:"🏝",desktop_computer:"🖥",male_detective:"🕵️",diamond_shape_with_a_dot_inside:"💠",diamonds:"♦️",disappointed:"😞",disappointed_relieved:"😥",dizzy:"💫",dizzy_face:"😵",do_not_litter:"🚯",dog:"🐶",dog2:"🐕",dollar:"💵",dolls:"🎎",dolphin:"🐬",door:"🚪",doughnut:"🍩",dove:"🕊",dragon:"🐉",dragon_face:"🐲",dress:"👗",dromedary_camel:"🐪",drooling_face:"🤤",droplet:"💧",drum:"🥁",duck:"🦆",dvd:"📀","e-mail":"📧",eagle:"🦅",ear:"👂",ear_of_rice:"🌾",earth_africa:"🌍",earth_americas:"🌎",earth_asia:"🌏",egg:"🥚",eggplant:"🍆",eight_pointed_black_star:"✴️",eight_spoked_asterisk:"✳️",electric_plug:"🔌",elephant:"🐘",email:"✉️",end:"🔚",envelope_with_arrow:"📩",euro:"💶",european_castle:"🏰",european_post_office:"🏤",evergreen_tree:"🌲",exclamation:"❗️",expressionless:"😑",eye:"👁",eye_speech_bubble:"👁‍🗨",eyeglasses:"👓",eyes:"👀",face_with_head_bandage:"🤕",face_with_thermometer:"🤒",fist_oncoming:"👊",factory:"🏭",fallen_leaf:"🍂",family_man_woman_boy:"👪",family_man_boy:"👨‍👦",family_man_boy_boy:"👨‍👦‍👦",family_man_girl:"👨‍👧",family_man_girl_boy:"👨‍👧‍👦",family_man_girl_girl:"👨‍👧‍👧",family_man_man_boy:"👨‍👨‍👦",family_man_man_boy_boy:"👨‍👨‍👦‍👦",family_man_man_girl:"👨‍👨‍👧",family_man_man_girl_boy:"👨‍👨‍👧‍👦",family_man_man_girl_girl:"👨‍👨‍👧‍👧",family_man_woman_boy_boy:"👨‍👩‍👦‍👦",family_man_woman_girl:"👨‍👩‍👧",family_man_woman_girl_boy:"👨‍👩‍👧‍👦",family_man_woman_girl_girl:"👨‍👩‍👧‍👧",family_woman_boy:"👩‍👦",family_woman_boy_boy:"👩‍👦‍👦",family_woman_girl:"👩‍👧",family_woman_girl_boy:"👩‍👧‍👦",family_woman_girl_girl:"👩‍👧‍👧",family_woman_woman_boy:"👩‍👩‍👦",family_woman_woman_boy_boy:"👩‍👩‍👦‍👦",family_woman_woman_girl:"👩‍👩‍👧",family_woman_woman_girl_boy:"👩‍👩‍👧‍👦",family_woman_woman_girl_girl:"👩‍👩‍👧‍👧",fast_forward:"⏩",fax:"📠",fearful:"😨",feet:"🐾",female_detective:"🕵️‍♀️",ferris_wheel:"🎡",ferry:"⛴",field_hockey:"🏑",file_cabinet:"🗄",file_folder:"📁",film_projector:"📽",film_strip:"🎞",fire:"🔥",fire_engine:"🚒",fireworks:"🎆",first_quarter_moon:"🌓",first_quarter_moon_with_face:"🌛",fish:"🐟",fish_cake:"🍥",fishing_pole_and_fish:"🎣",fist_raised:"✊",fist_left:"🤛",fist_right:"🤜",flags:"🎏",flashlight:"🔦",fleur_de_lis:"⚜️",flight_arrival:"🛬",flight_departure:"🛫",floppy_disk:"💾",flower_playing_cards:"🎴",flushed:"😳",fog:"🌫",foggy:"🌁",football:"🏈",footprints:"👣",fork_and_knife:"🍴",fountain:"⛲️",fountain_pen:"🖋",four_leaf_clover:"🍀",fox_face:"🦊",framed_picture:"🖼",free:"🆓",fried_egg:"🍳",fried_shrimp:"🍤",fries:"🍟",frog:"🐸",frowning:"😦",frowning_face:"☹️",frowning_man:"🙍‍♂️",frowning_woman:"🙍",middle_finger:"🖕",fuelpump:"⛽️",full_moon:"🌕",full_moon_with_face:"🌝",funeral_urn:"⚱️",game_die:"🎲",gear:"⚙️",gem:"💎",gemini:"♊️",ghost:"👻",gift:"🎁",gift_heart:"💝",girl:"👧",globe_with_meridians:"🌐",goal_net:"🥅",goat:"🐐",golf:"⛳️",golfing_man:"🏌️",golfing_woman:"🏌️‍♀️",gorilla:"🦍",grapes:"🍇",green_apple:"🍏",green_book:"📗",green_heart:"💚",green_salad:"🥗",grey_exclamation:"❕",grey_question:"❔",grimacing:"😬",grin:"😁",grinning:"😀",guardsman:"💂",guardswoman:"💂‍♀️",guitar:"🎸",gun:"🔫",haircut_woman:"💇",haircut_man:"💇‍♂️",hamburger:"🍔",hammer:"🔨",hammer_and_pick:"⚒",hammer_and_wrench:"🛠",hamster:"🐹",hand:"✋",handbag:"👜",handshake:"🤝",hankey:"💩",hatched_chick:"🐥",hatching_chick:"🐣",headphones:"🎧",hear_no_evil:"🙉",heart:"❤️",heart_decoration:"💟",heart_eyes:"😍",heart_eyes_cat:"😻",heartbeat:"💓",heartpulse:"💗",hearts:"♥️",heavy_check_mark:"✔️",heavy_division_sign:"➗",heavy_dollar_sign:"💲",heavy_heart_exclamation:"❣️",heavy_minus_sign:"➖",heavy_multiplication_x:"✖️",heavy_plus_sign:"➕",helicopter:"🚁",herb:"🌿",hibiscus:"🌺",high_brightness:"🔆",high_heel:"👠",hocho:"🔪",hole:"🕳",honey_pot:"🍯",horse:"🐴",horse_racing:"🏇",hospital:"🏥",hot_pepper:"🌶",hotdog:"🌭",hotel:"🏨",hotsprings:"♨️",hourglass:"⌛️",hourglass_flowing_sand:"⏳",house:"🏠",house_with_garden:"🏡",houses:"🏘",hugs:"🤗",hushed:"😯",ice_cream:"🍨",ice_hockey:"🏒",ice_skate:"⛸",icecream:"🍦",id:"🆔",ideograph_advantage:"🉐",imp:"👿",inbox_tray:"📥",incoming_envelope:"📨",tipping_hand_woman:"💁",information_source:"ℹ️",innocent:"😇",interrobang:"⁉️",iphone:"📱",izakaya_lantern:"🏮",jack_o_lantern:"🎃",japan:"🗾",japanese_castle:"🏯",japanese_goblin:"👺",japanese_ogre:"👹",jeans:"👖",joy:"😂",joy_cat:"😹",joystick:"🕹",kaaba:"🕋",key:"🔑",keyboard:"⌨️",keycap_ten:"🔟",kick_scooter:"🛴",kimono:"👘",kiss:"💋",kissing:"😗",kissing_cat:"😽",kissing_closed_eyes:"😚",kissing_heart:"😘",kissing_smiling_eyes:"😙",kiwi_fruit:"🥝",koala:"🐨",koko:"🈁",label:"🏷",large_blue_circle:"🔵",large_blue_diamond:"🔷",large_orange_diamond:"🔶",last_quarter_moon:"🌗",last_quarter_moon_with_face:"🌜",latin_cross:"✝️",laughing:"😆",leaves:"🍃",ledger:"📒",left_luggage:"🛅",left_right_arrow:"↔️",leftwards_arrow_with_hook:"↩️",lemon:"🍋",leo:"♌️",leopard:"🐆",level_slider:"🎚",libra:"♎️",light_rail:"🚈",link:"🔗",lion:"🦁",lips:"👄",lipstick:"💄",lizard:"🦎",lock:"🔒",lock_with_ink_pen:"🔏",lollipop:"🍭",loop:"➿",loud_sound:"🔊",loudspeaker:"📢",love_hotel:"🏩",love_letter:"💌",low_brightness:"🔅",lying_face:"🤥",m:"Ⓜ️",mag:"🔍",mag_right:"🔎",mahjong:"🀄️",mailbox:"📫",mailbox_closed:"📪",mailbox_with_mail:"📬",mailbox_with_no_mail:"📭",man:"👨",man_artist:"👨‍🎨",man_astronaut:"👨‍🚀",man_cartwheeling:"🤸‍♂️",man_cook:"👨‍🍳",man_dancing:"🕺",man_facepalming:"🤦‍♂️",man_factory_worker:"👨‍🏭",man_farmer:"👨‍🌾",man_firefighter:"👨‍🚒",man_health_worker:"👨‍⚕️",man_in_tuxedo:"🤵",man_judge:"👨‍⚖️",man_juggling:"🤹‍♂️",man_mechanic:"👨‍🔧",man_office_worker:"👨‍💼",man_pilot:"👨‍✈️",man_playing_handball:"🤾‍♂️",man_playing_water_polo:"🤽‍♂️",man_scientist:"👨‍🔬",man_shrugging:"🤷‍♂️",man_singer:"👨‍🎤",man_student:"👨‍🎓",man_teacher:"👨‍🏫",man_technologist:"👨‍💻",man_with_gua_pi_mao:"👲",man_with_turban:"👳",tangerine:"🍊",mans_shoe:"👞",mantelpiece_clock:"🕰",maple_leaf:"🍁",martial_arts_uniform:"🥋",mask:"😷",massage_woman:"💆",massage_man:"💆‍♂️",meat_on_bone:"🍖",medal_military:"🎖",medal_sports:"🏅",mega:"📣",melon:"🍈",memo:"📝",men_wrestling:"🤼‍♂️",menorah:"🕎",mens:"🚹",metal:"🤘",metro:"🚇",microphone:"🎤",microscope:"🔬",milk_glass:"🥛",milky_way:"🌌",minibus:"🚐",minidisc:"💽",mobile_phone_off:"📴",money_mouth_face:"🤑",money_with_wings:"💸",moneybag:"💰",monkey:"🐒",monkey_face:"🐵",monorail:"🚝",moon:"🌔",mortar_board:"🎓",mosque:"🕌",motor_boat:"🛥",motor_scooter:"🛵",motorcycle:"🏍",motorway:"🛣",mount_fuji:"🗻",mountain:"⛰",mountain_biking_man:"🚵",mountain_biking_woman:"🚵‍♀️",mountain_cableway:"🚠",mountain_railway:"🚞",mountain_snow:"🏔",mouse:"🐭",mouse2:"🐁",movie_camera:"🎥",moyai:"🗿",mrs_claus:"🤶",muscle:"💪",mushroom:"🍄",musical_keyboard:"🎹",musical_note:"🎵",musical_score:"🎼",mute:"🔇",nail_care:"💅",name_badge:"📛",national_park:"🏞",nauseated_face:"🤢",necktie:"👔",negative_squared_cross_mark:"❎",nerd_face:"🤓",neutral_face:"😐",new:"🆕",new_moon:"🌑",new_moon_with_face:"🌚",newspaper:"📰",newspaper_roll:"🗞",next_track_button:"⏭",ng:"🆖",no_good_man:"🙅‍♂️",no_good_woman:"🙅",night_with_stars:"🌃",no_bell:"🔕",no_bicycles:"🚳",no_entry:"⛔️",no_entry_sign:"🚫",no_mobile_phones:"📵",no_mouth:"😶",no_pedestrians:"🚷",no_smoking:"🚭","non-potable_water":"🚱",nose:"👃",notebook:"📓",notebook_with_decorative_cover:"📔",notes:"🎶",nut_and_bolt:"🔩",o:"⭕️",o2:"🅾️",ocean:"🌊",octopus:"🐙",oden:"🍢",office:"🏢",oil_drum:"🛢",ok:"🆗",ok_hand:"👌",ok_man:"🙆‍♂️",ok_woman:"🙆",old_key:"🗝",older_man:"👴",older_woman:"👵",om:"🕉",on:"🔛",oncoming_automobile:"🚘",oncoming_bus:"🚍",oncoming_police_car:"🚔",oncoming_taxi:"🚖",open_file_folder:"📂",open_hands:"👐",open_mouth:"😮",open_umbrella:"☂️",ophiuchus:"⛎",orange_book:"📙",orthodox_cross:"☦️",outbox_tray:"📤",owl:"🦉",ox:"🐂",package:"📦",page_facing_up:"📄",page_with_curl:"📃",pager:"📟",paintbrush:"🖌",palm_tree:"🌴",pancakes:"🥞",panda_face:"🐼",paperclip:"📎",paperclips:"🖇",parasol_on_ground:"⛱",parking:"🅿️",part_alternation_mark:"〽️",partly_sunny:"⛅️",passenger_ship:"🛳",passport_control:"🛂",pause_button:"⏸",peace_symbol:"☮️",peach:"🍑",peanuts:"🥜",pear:"🍐",pen:"🖊",pencil2:"✏️",penguin:"🐧",pensive:"😔",performing_arts:"🎭",persevere:"😣",person_fencing:"🤺",pouting_woman:"🙎",phone:"☎️",pick:"⛏",pig:"🐷",pig2:"🐖",pig_nose:"🐽",pill:"💊",pineapple:"🍍",ping_pong:"🏓",pisces:"♓️",pizza:"🍕",place_of_worship:"🛐",plate_with_cutlery:"🍽",play_or_pause_button:"⏯",point_down:"👇",point_left:"👈",point_right:"👉",point_up:"☝️",point_up_2:"👆",police_car:"🚓",policewoman:"👮‍♀️",poodle:"🐩",popcorn:"🍿",post_office:"🏣",postal_horn:"📯",postbox:"📮",potable_water:"🚰",potato:"🥔",pouch:"👝",poultry_leg:"🍗",pound:"💷",rage:"😡",pouting_cat:"😾",pouting_man:"🙎‍♂️",pray:"🙏",prayer_beads:"📿",pregnant_woman:"🤰",previous_track_button:"⏮",prince:"🤴",princess:"👸",printer:"🖨",purple_heart:"💜",purse:"👛",pushpin:"📌",put_litter_in_its_place:"🚮",question:"❓",rabbit:"🐰",rabbit2:"🐇",racehorse:"🐎",racing_car:"🏎",radio:"📻",radio_button:"🔘",radioactive:"☢️",railway_car:"🚃",railway_track:"🛤",rainbow:"🌈",rainbow_flag:"🏳️‍🌈",raised_back_of_hand:"🤚",raised_hand_with_fingers_splayed:"🖐",raised_hands:"🙌",raising_hand_woman:"🙋",raising_hand_man:"🙋‍♂️",ram:"🐏",ramen:"🍜",rat:"🐀",record_button:"⏺",recycle:"♻️",red_circle:"🔴",registered:"®️",relaxed:"☺️",relieved:"😌",reminder_ribbon:"🎗",repeat:"🔁",repeat_one:"🔂",rescue_worker_helmet:"⛑",restroom:"🚻",revolving_hearts:"💞",rewind:"⏪",rhinoceros:"🦏",ribbon:"🎀",rice:"🍚",rice_ball:"🍙",rice_cracker:"🍘",rice_scene:"🎑",right_anger_bubble:"🗯",ring:"💍",robot:"🤖",rocket:"🚀",rofl:"🤣",roll_eyes:"🙄",roller_coaster:"🎢",rooster:"🐓",rose:"🌹",rosette:"🏵",rotating_light:"🚨",round_pushpin:"📍",rowing_man:"🚣",rowing_woman:"🚣‍♀️",rugby_football:"🏉",running_man:"🏃",running_shirt_with_sash:"🎽",running_woman:"🏃‍♀️",sa:"🈂️",sagittarius:"♐️",sake:"🍶",sandal:"👡",santa:"🎅",satellite:"📡",saxophone:"🎷",school:"🏫",school_satchel:"🎒",scissors:"✂️",scorpion:"🦂",scorpius:"♏️",scream:"😱",scream_cat:"🙀",scroll:"📜",seat:"💺",secret:"㊙️",see_no_evil:"🙈",seedling:"🌱",selfie:"🤳",shallow_pan_of_food:"🥘",shamrock:"☘️",shark:"🦈",shaved_ice:"🍧",sheep:"🐑",shell:"🐚",shield:"🛡",shinto_shrine:"⛩",ship:"🚢",shirt:"👕",shopping:"🛍",shopping_cart:"🛒",shower:"🚿",shrimp:"🦐",signal_strength:"📶",six_pointed_star:"🔯",ski:"🎿",skier:"⛷",skull:"💀",skull_and_crossbones:"☠️",sleeping:"😴",sleeping_bed:"🛌",sleepy:"😪",slightly_frowning_face:"🙁",slightly_smiling_face:"🙂",slot_machine:"🎰",small_airplane:"🛩",small_blue_diamond:"🔹",small_orange_diamond:"🔸",small_red_triangle:"🔺",small_red_triangle_down:"🔻",smile:"😄",smile_cat:"😸",smiley:"😃",smiley_cat:"😺",smiling_imp:"😈",smirk:"😏",smirk_cat:"😼",smoking:"🚬",snail:"🐌",snake:"🐍",sneezing_face:"🤧",snowboarder:"🏂",snowflake:"❄️",snowman:"⛄️",snowman_with_snow:"☃️",sob:"😭",soccer:"⚽️",soon:"🔜",sos:"🆘",sound:"🔉",space_invader:"👾",spades:"♠️",spaghetti:"🍝",sparkle:"❇️",sparkler:"🎇",sparkles:"✨",sparkling_heart:"💖",speak_no_evil:"🙊",speaker:"🔈",speaking_head:"🗣",speech_balloon:"💬",speedboat:"🚤",spider:"🕷",spider_web:"🕸",spiral_calendar:"🗓",spiral_notepad:"🗒",spoon:"🥄",squid:"🦑",stadium:"🏟",star:"⭐️",star2:"🌟",star_and_crescent:"☪️",star_of_david:"✡️",stars:"🌠",station:"🚉",statue_of_liberty:"🗽",steam_locomotive:"🚂",stew:"🍲",stop_button:"⏹",stop_sign:"🛑",stopwatch:"⏱",straight_ruler:"📏",strawberry:"🍓",stuck_out_tongue:"😛",stuck_out_tongue_closed_eyes:"😝",stuck_out_tongue_winking_eye:"😜",studio_microphone:"🎙",stuffed_flatbread:"🥙",sun_behind_large_cloud:"🌥",sun_behind_rain_cloud:"🌦",sun_behind_small_cloud:"🌤",sun_with_face:"🌞",sunflower:"🌻",sunglasses:"😎",sunny:"☀️",sunrise:"🌅",sunrise_over_mountains:"🌄",surfing_man:"🏄",surfing_woman:"🏄‍♀️",sushi:"🍣",suspension_railway:"🚟",sweat:"😓",sweat_drops:"💦",sweat_smile:"😅",sweet_potato:"🍠",swimming_man:"🏊",swimming_woman:"🏊‍♀️",symbols:"🔣",synagogue:"🕍",syringe:"💉",taco:"🌮",tada:"🎉",tanabata_tree:"🎋",taurus:"♉️",taxi:"🚕",tea:"🍵",telephone_receiver:"📞",telescope:"🔭",tennis:"🎾",tent:"⛺️",thermometer:"🌡",thinking:"🤔",thought_balloon:"💭",ticket:"🎫",tickets:"🎟",tiger:"🐯",tiger2:"🐅",timer_clock:"⏲",tipping_hand_man:"💁‍♂️",tired_face:"😫",tm:"™️",toilet:"🚽",tokyo_tower:"🗼",tomato:"🍅",tongue:"👅",top:"🔝",tophat:"🎩",tornado:"🌪",trackball:"🖲",tractor:"🚜",traffic_light:"🚥",train:"🚋",train2:"🚆",tram:"🚊",triangular_flag_on_post:"🚩",triangular_ruler:"📐",trident:"🔱",triumph:"😤",trolleybus:"🚎",trophy:"🏆",tropical_drink:"🍹",tropical_fish:"🐠",truck:"🚚",trumpet:"🎺",tulip:"🌷",tumbler_glass:"🥃",turkey:"🦃",turtle:"🐢",tv:"📺",twisted_rightwards_arrows:"🔀",two_hearts:"💕",two_men_holding_hands:"👬",two_women_holding_hands:"👭",u5272:"🈹",u5408:"🈴",u55b6:"🈺",u6307:"🈯️",u6708:"🈷️",u6709:"🈶",u6e80:"🈵",u7121:"🈚️",u7533:"🈸",u7981:"🈲",u7a7a:"🈳",umbrella:"☔️",unamused:"😒",underage:"🔞",unicorn:"🦄",unlock:"🔓",up:"🆙",upside_down_face:"🙃",v:"✌️",vertical_traffic_light:"🚦",vhs:"📼",vibration_mode:"📳",video_camera:"📹",video_game:"🎮",violin:"🎻",virgo:"♍️",volcano:"🌋",volleyball:"🏐",vs:"🆚",vulcan_salute:"🖖",walking_man:"🚶",walking_woman:"🚶‍♀️",waning_crescent_moon:"🌘",waning_gibbous_moon:"🌖",warning:"⚠️",wastebasket:"🗑",watch:"⌚️",water_buffalo:"🐃",watermelon:"🍉",wave:"👋",wavy_dash:"〰️",waxing_crescent_moon:"🌒",wc:"🚾",weary:"😩",wedding:"💒",weight_lifting_man:"🏋️",weight_lifting_woman:"🏋️‍♀️",whale:"🐳",whale2:"🐋",wheel_of_dharma:"☸️",wheelchair:"♿️",white_check_mark:"✅",white_circle:"⚪️",white_flag:"🏳️",white_flower:"💮",white_large_square:"⬜️",white_medium_small_square:"◽️",white_medium_square:"◻️",white_small_square:"▫️",white_square_button:"🔳",wilted_flower:"🥀",wind_chime:"🎐",wind_face:"🌬",wine_glass:"🍷",wink:"😉",wolf:"🐺",woman:"👩",woman_artist:"👩‍🎨",woman_astronaut:"👩‍🚀",woman_cartwheeling:"🤸‍♀️",woman_cook:"👩‍🍳",woman_facepalming:"🤦‍♀️",woman_factory_worker:"👩‍🏭",woman_farmer:"👩‍🌾",woman_firefighter:"👩‍🚒",woman_health_worker:"👩‍⚕️",woman_judge:"👩‍⚖️",woman_juggling:"🤹‍♀️",woman_mechanic:"👩‍🔧",woman_office_worker:"👩‍💼",woman_pilot:"👩‍✈️",woman_playing_handball:"🤾‍♀️",woman_playing_water_polo:"🤽‍♀️",woman_scientist:"👩‍🔬",woman_shrugging:"🤷‍♀️",woman_singer:"👩‍🎤",woman_student:"👩‍🎓",woman_teacher:"👩‍🏫",woman_technologist:"👩‍💻",woman_with_turban:"👳‍♀️",womans_clothes:"👚",womans_hat:"👒",women_wrestling:"🤼‍♀️",womens:"🚺",world_map:"🗺",worried:"😟",wrench:"🔧",writing_hand:"✍️",x:"❌",yellow_heart:"💛",yen:"💴",yin_yang:"☯️",yum:"😋",zap:"⚡️",zipper_mouth_face:"🤐",zzz:"💤",octocat:':octocat:',showdown:"S"},o.Converter=function(e){"use strict";var t={},r=[],n=[],a={},i=u,d={parsed:{},raw:"",format:""};function p(e,t){if(t=t||null,o.helper.isString(e)){if(t=e=o.helper.stdExtName(e),o.extensions[e])return console.warn("DEPRECATION WARNING: "+e+" is an old extension that uses a deprecated loading method.Please inform the developer that the extension should be updated!"),void function(e,t){"function"==typeof e&&(e=e(new o.Converter));o.helper.isArray(e)||(e=[e]);var a=f(e,t);if(!a.valid)throw Error(a.error);for(var i=0;i[ \t]+¨NBSP;<"),!t){if(!window||!window.document)throw new Error("HTMLParser is undefined. If in a webworker or nodejs environment, you need to provide a WHATWG DOM and HTML such as JSDOM");t=window.document}var r=t.createElement("div");r.innerHTML=e;var n={preList:function(e){for(var t=e.querySelectorAll("pre"),r=[],n=0;n'}else r.push(t[n].innerHTML),t[n].innerHTML="",t[n].setAttribute("prenum",n.toString());return r}(r)};!function e(t){for(var r=0;r? ?(['"].*['"])?\)$/m)>-1)i="";else if(!i){if(a||(a=n.toLowerCase().replace(/ ?\n/g," ")),i="#"+a,o.helper.isUndefined(r.gUrls[a]))return e;i=r.gUrls[a],o.helper.isUndefined(r.gTitles[a])||(u=r.gTitles[a])}var l='"};return e=(e=(e=(e=(e=r.converter._dispatch("anchors.before",e,t,r)).replace(/\[((?:\[[^\]]*]|[^\[\]])*)] ?(?:\n *)?\[(.*?)]()()()()/g,n)).replace(/\[((?:\[[^\]]*]|[^\[\]])*)]()[ \t]*\([ \t]?<([^>]*)>(?:[ \t]*((["'])([^"]*?)\5))?[ \t]?\)/g,n)).replace(/\[((?:\[[^\]]*]|[^\[\]])*)]()[ \t]*\([ \t]??(?:[ \t]*((["'])([^"]*?)\5))?[ \t]?\)/g,n)).replace(/\[([^\[\]]+)]()()()()()/g,n),t.ghMentions&&(e=e.replace(/(^|\s)(\\)?(@([a-z\d]+(?:[a-z\d.-]+?[a-z\d]+)*))/gim,(function(e,r,n,a,i){if("\\"===n)return r+a;if(!o.helper.isString(t.ghMentionsLink))throw new Error("ghMentionsLink option must be a string");var s=t.ghMentionsLink.replace(/\{u}/g,i),c="";return t.openLinksInNewWindow&&(c=' rel="noopener noreferrer" target="¨E95Eblank"'),r+'"+a+""}))),e=r.converter._dispatch("anchors.after",e,t,r)}));var h=/([*~_]+|\b)(((https?|ftp|dict):\/\/|www\.)[^'">\s]+?\.[^'">\s]+?)()(\1)?(?=\s|$)(?!["<>])/gi,b=/([*~_]+|\b)(((https?|ftp|dict):\/\/|www\.)[^'">\s]+\.[^'">\s]+?)([.!?,()\[\]])?(\1)?(?=\s|$)(?!["<>])/gi,g=/()<(((https?|ftp|dict):\/\/|www\.)[^'">\s]+)()>()/gi,m=/(^|\s)(?:mailto:)?([A-Za-z0-9!#$%&'*+-/=?^_`{|}~.]+@[-a-z0-9]+(\.[-a-z0-9]+)*\.[a-z]+)(?=$|\s)/gim,_=/<()(?:mailto:)?([-.\w]+@[-a-z0-9]+(\.[-a-z0-9]+)*\.[a-z]+)>/gi,v=function(e){"use strict";return function(t,r,n,a,i,s,c){var u=n=n.replace(o.helper.regexes.asteriskDashAndColon,o.helper.escapeCharactersCallback),l="",f="",d=r||"",p=c||"";return/^www\./i.test(n)&&(n=n.replace(/^www\./i,"http://www.")),e.excludeTrailingPunctuationFromURLs&&s&&(l=s),e.openLinksInNewWindow&&(f=' rel="noopener noreferrer" target="¨E95Eblank"'),d+'"+u+""+l+p}},w=function(e,t){"use strict";return function(r,n,a){var i="mailto:";return n=n||"",a=o.subParser("unescapeSpecialChars")(a,e,t),e.encodeEmails?(i=o.helper.encodeEmailAddress(i+a),a=o.helper.encodeEmailAddress(a)):i+=a,n+''+a+""}};o.subParser("autoLinks",(function(e,t,r){"use strict";return e=(e=(e=r.converter._dispatch("autoLinks.before",e,t,r)).replace(g,v(t))).replace(_,w(t,r)),e=r.converter._dispatch("autoLinks.after",e,t,r)})),o.subParser("simplifiedAutoLinks",(function(e,t,r){"use strict";return t.simplifiedAutoLink?(e=r.converter._dispatch("simplifiedAutoLinks.before",e,t,r),e=(e=t.excludeTrailingPunctuationFromURLs?e.replace(b,v(t)):e.replace(h,v(t))).replace(m,w(t,r)),e=r.converter._dispatch("simplifiedAutoLinks.after",e,t,r)):e})),o.subParser("blockGamut",(function(e,t,r){"use strict";return e=r.converter._dispatch("blockGamut.before",e,t,r),e=o.subParser("blockQuotes")(e,t,r),e=o.subParser("headers")(e,t,r),e=o.subParser("horizontalRule")(e,t,r),e=o.subParser("lists")(e,t,r),e=o.subParser("codeBlocks")(e,t,r),e=o.subParser("tables")(e,t,r),e=o.subParser("hashHTMLBlocks")(e,t,r),e=o.subParser("paragraphs")(e,t,r),e=r.converter._dispatch("blockGamut.after",e,t,r)})),o.subParser("blockQuotes",(function(e,t,r){"use strict";e=r.converter._dispatch("blockQuotes.before",e,t,r),e+="\n\n";var n=/(^ {0,3}>[ \t]?.+\n(.+\n)*\n*)+/gm;return t.splitAdjacentBlockquotes&&(n=/^ {0,3}>[\s\S]*?(?:\n\n)/gm),e=e.replace(n,(function(e){return e=(e=(e=e.replace(/^[ \t]*>[ \t]?/gm,"")).replace(/¨0/g,"")).replace(/^[ \t]+$/gm,""),e=o.subParser("githubCodeBlocks")(e,t,r),e=(e=(e=o.subParser("blockGamut")(e,t,r)).replace(/(^|\n)/g,"$1 ")).replace(/(\s*
    [^\r]+?<\/pre>)/gm,(function(e,t){var r=t;return r=(r=r.replace(/^  /gm,"¨0")).replace(/¨0/g,"")})),o.subParser("hashBlock")("
    \n"+e+"\n
    ",t,r)})),e=r.converter._dispatch("blockQuotes.after",e,t,r)})),o.subParser("codeBlocks",(function(e,t,r){"use strict";e=r.converter._dispatch("codeBlocks.before",e,t,r);return e=(e=(e+="¨0").replace(/(?:\n\n|^)((?:(?:[ ]{4}|\t).*\n+)+)(\n*[ ]{0,3}[^ \t\n]|(?=¨0))/g,(function(e,n,a){var i=n,s=a,c="\n";return i=o.subParser("outdent")(i,t,r),i=o.subParser("encodeCode")(i,t,r),i=(i=(i=o.subParser("detab")(i,t,r)).replace(/^\n+/g,"")).replace(/\n+$/g,""),t.omitExtraWLInCodeBlocks&&(c=""),i="
    "+i+c+"
    ",o.subParser("hashBlock")(i,t,r)+s}))).replace(/¨0/,""),e=r.converter._dispatch("codeBlocks.after",e,t,r)})),o.subParser("codeSpans",(function(e,t,r){"use strict";return void 0===(e=r.converter._dispatch("codeSpans.before",e,t,r))&&(e=""),e=e.replace(/(^|[^\\])(`+)([^\r]*?[^`])\2(?!`)/gm,(function(e,n,a,i){var s=i;return s=(s=s.replace(/^([ \t]*)/g,"")).replace(/[ \t]*$/g,""),s=n+""+(s=o.subParser("encodeCode")(s,t,r))+"",s=o.subParser("hashHTMLSpans")(s,t,r)})),e=r.converter._dispatch("codeSpans.after",e,t,r)})),o.subParser("completeHTMLDocument",(function(e,t,r){"use strict";if(!t.completeHTMLDocument)return e;e=r.converter._dispatch("completeHTMLDocument.before",e,t,r);var n="html",a="\n",o="",i='\n',s="",c="";for(var u in void 0!==r.metadata.parsed.doctype&&(a="\n","html"!==(n=r.metadata.parsed.doctype.toString().toLowerCase())&&"html5"!==n||(i='')),r.metadata.parsed)if(r.metadata.parsed.hasOwnProperty(u))switch(u.toLowerCase()){case"doctype":break;case"title":o=""+r.metadata.parsed.title+"\n";break;case"charset":i="html"===n||"html5"===n?'\n':'\n';break;case"language":case"lang":s=' lang="'+r.metadata.parsed[u]+'"',c+='\n';break;default:c+='\n'}return e=a+"\n\n"+o+i+c+"\n\n"+e.trim()+"\n\n",e=r.converter._dispatch("completeHTMLDocument.after",e,t,r)})),o.subParser("detab",(function(e,t,r){"use strict";return e=(e=(e=(e=(e=(e=r.converter._dispatch("detab.before",e,t,r)).replace(/\t(?=\t)/g," ")).replace(/\t/g,"¨A¨B")).replace(/¨B(.+?)¨A/g,(function(e,t){for(var r=t,n=4-r.length%4,a=0;a/g,">"),e=r.converter._dispatch("encodeAmpsAndAngles.after",e,t,r)})),o.subParser("encodeBackslashEscapes",(function(e,t,r){"use strict";return e=(e=(e=r.converter._dispatch("encodeBackslashEscapes.before",e,t,r)).replace(/\\(\\)/g,o.helper.escapeCharactersCallback)).replace(/\\([`*_{}\[\]()>#+.!~=|-])/g,o.helper.escapeCharactersCallback),e=r.converter._dispatch("encodeBackslashEscapes.after",e,t,r)})),o.subParser("encodeCode",(function(e,t,r){"use strict";return e=(e=r.converter._dispatch("encodeCode.before",e,t,r)).replace(/&/g,"&").replace(//g,">").replace(/([*_{}\[\]\\=~-])/g,o.helper.escapeCharactersCallback),e=r.converter._dispatch("encodeCode.after",e,t,r)})),o.subParser("escapeSpecialCharsWithinTagAttributes",(function(e,t,r){"use strict";return e=(e=(e=r.converter._dispatch("escapeSpecialCharsWithinTagAttributes.before",e,t,r)).replace(/<\/?[a-z\d_:-]+(?:[\s]+[\s\S]+?)?>/gi,(function(e){return e.replace(/(.)<\/?code>(?=.)/g,"$1`").replace(/([\\`*_~=|])/g,o.helper.escapeCharactersCallback)}))).replace(/-]|-[^>])(?:[^-]|-[^-])*)--)>/gi,(function(e){return e.replace(/([\\`*_~=|])/g,o.helper.escapeCharactersCallback)})),e=r.converter._dispatch("escapeSpecialCharsWithinTagAttributes.after",e,t,r)})),o.subParser("githubCodeBlocks",(function(e,t,r){"use strict";return t.ghCodeBlocks?(e=r.converter._dispatch("githubCodeBlocks.before",e,t,r),e=(e=(e+="¨0").replace(/(?:^|\n)(?: {0,3})(```+|~~~+)(?: *)([^\s`~]*)\n([\s\S]*?)\n(?: {0,3})\1/g,(function(e,n,a,i){var s=t.omitExtraWLInCodeBlocks?"":"\n";return i=o.subParser("encodeCode")(i,t,r),i="
    "+(i=(i=(i=o.subParser("detab")(i,t,r)).replace(/^\n+/g,"")).replace(/\n+$/g,""))+s+"
    ",i=o.subParser("hashBlock")(i,t,r),"\n\n¨G"+(r.ghCodeBlocks.push({text:e,codeblock:i})-1)+"G\n\n"}))).replace(/¨0/,""),r.converter._dispatch("githubCodeBlocks.after",e,t,r)):e})),o.subParser("hashBlock",(function(e,t,r){"use strict";return e=(e=r.converter._dispatch("hashBlock.before",e,t,r)).replace(/(^\n+|\n+$)/g,""),e="\n\n¨K"+(r.gHtmlBlocks.push(e)-1)+"K\n\n",e=r.converter._dispatch("hashBlock.after",e,t,r)})),o.subParser("hashCodeTags",(function(e,t,r){"use strict";e=r.converter._dispatch("hashCodeTags.before",e,t,r);return e=o.helper.replaceRecursiveRegExp(e,(function(e,n,a,i){var s=a+o.subParser("encodeCode")(n,t,r)+i;return"¨C"+(r.gHtmlSpans.push(s)-1)+"C"}),"]*>","","gim"),e=r.converter._dispatch("hashCodeTags.after",e,t,r)})),o.subParser("hashElement",(function(e,t,r){"use strict";return function(e,t){var n=t;return n=(n=(n=n.replace(/\n\n/g,"\n")).replace(/^\n/,"")).replace(/\n+$/g,""),n="\n\n¨K"+(r.gHtmlBlocks.push(n)-1)+"K\n\n"}})),o.subParser("hashHTMLBlocks",(function(e,t,r){"use strict";e=r.converter._dispatch("hashHTMLBlocks.before",e,t,r);var n=["pre","div","h1","h2","h3","h4","h5","h6","blockquote","table","dl","ol","ul","script","noscript","form","fieldset","iframe","math","style","section","header","footer","nav","article","aside","address","audio","canvas","figure","hgroup","output","video","p"],a=function(e,t,n,a){var o=e;return-1!==n.search(/\bmarkdown\b/)&&(o=n+r.converter.makeHtml(t)+a),"\n\n¨K"+(r.gHtmlBlocks.push(o)-1)+"K\n\n"};t.backslashEscapesHTMLTags&&(e=e.replace(/\\<(\/?[^>]+?)>/g,(function(e,t){return"<"+t+">"})));for(var i=0;i]*>)","im"),u="<"+n[i]+"\\b[^>]*>",l="";-1!==(s=o.helper.regexIndexOf(e,c));){var f=o.helper.splitAtIndex(e,s),d=o.helper.replaceRecursiveRegExp(f[1],a,u,l,"im");if(d===f[1])break;e=f[0].concat(d)}return e=e.replace(/(\n {0,3}(<(hr)\b([^<>])*?\/?>)[ \t]*(?=\n{2,}))/g,o.subParser("hashElement")(e,t,r)),e=(e=o.helper.replaceRecursiveRegExp(e,(function(e){return"\n\n¨K"+(r.gHtmlBlocks.push(e)-1)+"K\n\n"}),"^ {0,3}\x3c!--","--\x3e","gm")).replace(/(?:\n\n)( {0,3}(?:<([?%])[^\r]*?\2>)[ \t]*(?=\n{2,}))/g,o.subParser("hashElement")(e,t,r)),e=r.converter._dispatch("hashHTMLBlocks.after",e,t,r)})),o.subParser("hashHTMLSpans",(function(e,t,r){"use strict";function n(e){return"¨C"+(r.gHtmlSpans.push(e)-1)+"C"}return e=(e=(e=(e=(e=r.converter._dispatch("hashHTMLSpans.before",e,t,r)).replace(/<[^>]+?\/>/gi,(function(e){return n(e)}))).replace(/<([^>]+?)>[\s\S]*?<\/\1>/g,(function(e){return n(e)}))).replace(/<([^>]+?)\s[^>]+?>[\s\S]*?<\/\1>/g,(function(e){return n(e)}))).replace(/<[^>]+?>/gi,(function(e){return n(e)})),e=r.converter._dispatch("hashHTMLSpans.after",e,t,r)})),o.subParser("unhashHTMLSpans",(function(e,t,r){"use strict";e=r.converter._dispatch("unhashHTMLSpans.before",e,t,r);for(var n=0;n]*>\\s*]*>","^ {0,3}\\s*
    ","gim"),e=r.converter._dispatch("hashPreCodeTags.after",e,t,r)})),o.subParser("headers",(function(e,t,r){"use strict";e=r.converter._dispatch("headers.before",e,t,r);var n=isNaN(parseInt(t.headerLevelStart))?1:parseInt(t.headerLevelStart),a=t.smoothLivePreview?/^(.+)[ \t]*\n={2,}[ \t]*\n+/gm:/^(.+)[ \t]*\n=+[ \t]*\n+/gm,i=t.smoothLivePreview?/^(.+)[ \t]*\n-{2,}[ \t]*\n+/gm:/^(.+)[ \t]*\n-+[ \t]*\n+/gm;e=(e=e.replace(a,(function(e,a){var i=o.subParser("spanGamut")(a,t,r),s=t.noHeaderId?"":' id="'+c(a)+'"',u=""+i+"";return o.subParser("hashBlock")(u,t,r)}))).replace(i,(function(e,a){var i=o.subParser("spanGamut")(a,t,r),s=t.noHeaderId?"":' id="'+c(a)+'"',u=n+1,l=""+i+"";return o.subParser("hashBlock")(l,t,r)}));var s=t.requireSpaceBeforeHeadingText?/^(#{1,6})[ \t]+(.+?)[ \t]*#*\n+/gm:/^(#{1,6})[ \t]*(.+?)[ \t]*#*\n+/gm;function c(e){var n,a;if(t.customizedHeaderId){var i=e.match(/\{([^{]+?)}\s*$/);i&&i[1]&&(e=i[1])}return n=e,a=o.helper.isString(t.prefixHeaderId)?t.prefixHeaderId:!0===t.prefixHeaderId?"section-":"",t.rawPrefixHeaderId||(n=a+n),n=t.ghCompatibleHeaderId?n.replace(/ /g,"-").replace(/&/g,"").replace(/¨T/g,"").replace(/¨D/g,"").replace(/[&+$,\/:;=?@"#{}|^¨~\[\]`\\*)(%.!'<>]/g,"").toLowerCase():t.rawHeaderId?n.replace(/ /g,"-").replace(/&/g,"&").replace(/¨T/g,"¨").replace(/¨D/g,"$").replace(/["']/g,"-").toLowerCase():n.replace(/[^\w]/g,"").toLowerCase(),t.rawPrefixHeaderId&&(n=a+n),r.hashLinkCounts[n]?n=n+"-"+r.hashLinkCounts[n]++:r.hashLinkCounts[n]=1,n}return e=e.replace(s,(function(e,a,i){var s=i;t.customizedHeaderId&&(s=i.replace(/\s?\{([^{]+?)}\s*$/,""));var u=o.subParser("spanGamut")(s,t,r),l=t.noHeaderId?"":' id="'+c(i)+'"',f=n-1+a.length,d=""+u+"";return o.subParser("hashBlock")(d,t,r)})),e=r.converter._dispatch("headers.after",e,t,r)})),o.subParser("horizontalRule",(function(e,t,r){"use strict";e=r.converter._dispatch("horizontalRule.before",e,t,r);var n=o.subParser("hashBlock")("
    ",t,r);return e=(e=(e=e.replace(/^ {0,2}( ?-){3,}[ \t]*$/gm,n)).replace(/^ {0,2}( ?\*){3,}[ \t]*$/gm,n)).replace(/^ {0,2}( ?_){3,}[ \t]*$/gm,n),e=r.converter._dispatch("horizontalRule.after",e,t,r)})),o.subParser("images",(function(e,t,r){"use strict";function n(e,t,n,a,i,s,c,u){var l=r.gUrls,f=r.gTitles,d=r.gDimensions;if(n=n.toLowerCase(),u||(u=""),e.search(/\(? ?(['"].*['"])?\)$/m)>-1)a="";else if(""===a||null===a){if(""!==n&&null!==n||(n=t.toLowerCase().replace(/ ?\n/g," ")),a="#"+n,o.helper.isUndefined(l[n]))return e;a=l[n],o.helper.isUndefined(f[n])||(u=f[n]),o.helper.isUndefined(d[n])||(i=d[n].width,s=d[n].height)}t=t.replace(/"/g,""").replace(o.helper.regexes.asteriskDashAndColon,o.helper.escapeCharactersCallback);var p=''+t+'"}return e=(e=(e=(e=(e=(e=r.converter._dispatch("images.before",e,t,r)).replace(/!\[([^\]]*?)] ?(?:\n *)?\[([\s\S]*?)]()()()()()/g,n)).replace(/!\[([^\]]*?)][ \t]*()\([ \t]??(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*(?:(["'])([^"]*?)\6)?[ \t]?\)/g,(function(e,t,r,a,o,i,s,c){return n(e,t,r,a=a.replace(/\s/g,""),o,i,s,c)}))).replace(/!\[([^\]]*?)][ \t]*()\([ \t]?<([^>]*)>(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*(?:(?:(["'])([^"]*?)\6))?[ \t]?\)/g,n)).replace(/!\[([^\]]*?)][ \t]*()\([ \t]??(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*(?:(["'])([^"]*?)\6)?[ \t]?\)/g,n)).replace(/!\[([^\[\]]+)]()()()()()/g,n),e=r.converter._dispatch("images.after",e,t,r)})),o.subParser("italicsAndBold",(function(e,t,r){"use strict";function n(e,t,r){return t+e+r}return e=r.converter._dispatch("italicsAndBold.before",e,t,r),e=t.literalMidWordUnderscores?(e=(e=e.replace(/\b___(\S[\s\S]*?)___\b/g,(function(e,t){return n(t,"","")}))).replace(/\b__(\S[\s\S]*?)__\b/g,(function(e,t){return n(t,"","")}))).replace(/\b_(\S[\s\S]*?)_\b/g,(function(e,t){return n(t,"","")})):(e=(e=e.replace(/___(\S[\s\S]*?)___/g,(function(e,t){return/\S$/.test(t)?n(t,"",""):e}))).replace(/__(\S[\s\S]*?)__/g,(function(e,t){return/\S$/.test(t)?n(t,"",""):e}))).replace(/_([^\s_][\s\S]*?)_/g,(function(e,t){return/\S$/.test(t)?n(t,"",""):e})),e=t.literalMidWordAsterisks?(e=(e=e.replace(/([^*]|^)\B\*\*\*(\S[\s\S]*?)\*\*\*\B(?!\*)/g,(function(e,t,r){return n(r,t+"","")}))).replace(/([^*]|^)\B\*\*(\S[\s\S]*?)\*\*\B(?!\*)/g,(function(e,t,r){return n(r,t+"","")}))).replace(/([^*]|^)\B\*(\S[\s\S]*?)\*\B(?!\*)/g,(function(e,t,r){return n(r,t+"","")})):(e=(e=e.replace(/\*\*\*(\S[\s\S]*?)\*\*\*/g,(function(e,t){return/\S$/.test(t)?n(t,"",""):e}))).replace(/\*\*(\S[\s\S]*?)\*\*/g,(function(e,t){return/\S$/.test(t)?n(t,"",""):e}))).replace(/\*([^\s*][\s\S]*?)\*/g,(function(e,t){return/\S$/.test(t)?n(t,"",""):e})),e=r.converter._dispatch("italicsAndBold.after",e,t,r)})),o.subParser("lists",(function(e,t,r){"use strict";function n(e,n){r.gListLevel++,e=e.replace(/\n{2,}$/,"\n");var a=/(\n)?(^ {0,3})([*+-]|\d+[.])[ \t]+((\[(x|X| )?])?[ \t]*[^\r]+?(\n{1,2}))(?=\n*(¨0| {0,3}([*+-]|\d+[.])[ \t]+))/gm,i=/\n[ \t]*\n(?!¨0)/.test(e+="¨0");return t.disableForced4SpacesIndentedSublists&&(a=/(\n)?(^ {0,3})([*+-]|\d+[.])[ \t]+((\[(x|X| )?])?[ \t]*[^\r]+?(\n{1,2}))(?=\n*(¨0|\2([*+-]|\d+[.])[ \t]+))/gm),e=(e=e.replace(a,(function(e,n,a,s,c,u,l){l=l&&""!==l.trim();var f=o.subParser("outdent")(c,t,r),d="";return u&&t.tasklists&&(d=' class="task-list-item" style="list-style-type: none;"',f=f.replace(/^[ \t]*\[(x|X| )?]/m,(function(){var e='-1?(f=o.subParser("githubCodeBlocks")(f,t,r),f=o.subParser("blockGamut")(f,t,r)):(f=(f=o.subParser("lists")(f,t,r)).replace(/\n$/,""),f=(f=o.subParser("hashHTMLBlocks")(f,t,r)).replace(/\n\n+/g,"\n\n"),f=i?o.subParser("paragraphs")(f,t,r):o.subParser("spanGamut")(f,t,r)),f=""+(f=f.replace("¨A",""))+"\n"}))).replace(/¨0/g,""),r.gListLevel--,n&&(e=e.replace(/\s+$/,"")),e}function a(e,t){if("ol"===t){var r=e.match(/^ *(\d+)\./);if(r&&"1"!==r[1])return' start="'+r[1]+'"'}return""}function i(e,r,o){var i=t.disableForced4SpacesIndentedSublists?/^ ?\d+\.[ \t]/gm:/^ {0,3}\d+\.[ \t]/gm,s=t.disableForced4SpacesIndentedSublists?/^ ?[*+-][ \t]/gm:/^ {0,3}[*+-][ \t]/gm,c="ul"===r?i:s,u="";if(-1!==e.search(c))!function t(l){var f=l.search(c),d=a(e,r);-1!==f?(u+="\n\n<"+r+d+">\n"+n(l.slice(0,f),!!o)+"\n",c="ul"===(r="ul"===r?"ol":"ul")?i:s,t(l.slice(f))):u+="\n\n<"+r+d+">\n"+n(l,!!o)+"\n"}(e);else{var l=a(e,r);u="\n\n<"+r+l+">\n"+n(e,!!o)+"\n"}return u}return e=r.converter._dispatch("lists.before",e,t,r),e+="¨0",e=(e=r.gListLevel?e.replace(/^(( {0,3}([*+-]|\d+[.])[ \t]+)[^\r]+?(¨0|\n{2,}(?=\S)(?![ \t]*(?:[*+-]|\d+[.])[ \t]+)))/gm,(function(e,t,r){return i(t,r.search(/[*+-]/g)>-1?"ul":"ol",!0)})):e.replace(/(\n\n|^\n?)(( {0,3}([*+-]|\d+[.])[ \t]+)[^\r]+?(¨0|\n{2,}(?=\S)(?![ \t]*(?:[*+-]|\d+[.])[ \t]+)))/gm,(function(e,t,r,n){return i(r,n.search(/[*+-]/g)>-1?"ul":"ol",!1)}))).replace(/¨0/,""),e=r.converter._dispatch("lists.after",e,t,r)})),o.subParser("metadata",(function(e,t,r){"use strict";if(!t.metadata)return e;function n(e){r.metadata.raw=e,(e=(e=e.replace(/&/g,"&").replace(/"/g,""")).replace(/\n {4}/g," ")).replace(/^([\S ]+): +([\s\S]+?)$/gm,(function(e,t,n){return r.metadata.parsed[t]=n,""}))}return e=(e=(e=(e=r.converter._dispatch("metadata.before",e,t,r)).replace(/^\s*«««+(\S*?)\n([\s\S]+?)\n»»»+\n/,(function(e,t,r){return n(r),"¨M"}))).replace(/^\s*---+(\S*?)\n([\s\S]+?)\n---+\n/,(function(e,t,a){return t&&(r.metadata.format=t),n(a),"¨M"}))).replace(/¨M/g,""),e=r.converter._dispatch("metadata.after",e,t,r)})),o.subParser("outdent",(function(e,t,r){"use strict";return e=(e=(e=r.converter._dispatch("outdent.before",e,t,r)).replace(/^(\t|[ ]{1,4})/gm,"¨0")).replace(/¨0/g,""),e=r.converter._dispatch("outdent.after",e,t,r)})),o.subParser("paragraphs",(function(e,t,r){"use strict";for(var n=(e=(e=(e=r.converter._dispatch("paragraphs.before",e,t,r)).replace(/^\n+/g,"")).replace(/\n+$/g,"")).split(/\n{2,}/g),a=[],i=n.length,s=0;s=0?a.push(c):c.search(/\S/)>=0&&(c=(c=o.subParser("spanGamut")(c,t,r)).replace(/^([ \t]*)/g,"

    "),c+="

    ",a.push(c))}for(i=a.length,s=0;s]*>\s*]*>/.test(l)&&(f=!0)}a[s]=l}return e=(e=(e=a.join("\n")).replace(/^\n+/g,"")).replace(/\n+$/g,""),r.converter._dispatch("paragraphs.after",e,t,r)})),o.subParser("runExtension",(function(e,t,r,n){"use strict";if(e.filter)t=e.filter(t,n.converter,r);else if(e.regex){var a=e.regex;a instanceof RegExp||(a=new RegExp(a,"g")),t=t.replace(a,e.replace)}return t})),o.subParser("spanGamut",(function(e,t,r){"use strict";return e=r.converter._dispatch("spanGamut.before",e,t,r),e=o.subParser("codeSpans")(e,t,r),e=o.subParser("escapeSpecialCharsWithinTagAttributes")(e,t,r),e=o.subParser("encodeBackslashEscapes")(e,t,r),e=o.subParser("images")(e,t,r),e=o.subParser("anchors")(e,t,r),e=o.subParser("autoLinks")(e,t,r),e=o.subParser("simplifiedAutoLinks")(e,t,r),e=o.subParser("emoji")(e,t,r),e=o.subParser("underline")(e,t,r),e=o.subParser("italicsAndBold")(e,t,r),e=o.subParser("strikethrough")(e,t,r),e=o.subParser("ellipsis")(e,t,r),e=o.subParser("hashHTMLSpans")(e,t,r),e=o.subParser("encodeAmpsAndAngles")(e,t,r),t.simpleLineBreaks?/\n\n¨K/.test(e)||(e=e.replace(/\n+/g,"
    \n")):e=e.replace(/ +\n/g,"
    \n"),e=r.converter._dispatch("spanGamut.after",e,t,r)})),o.subParser("strikethrough",(function(e,t,r){"use strict";return t.strikethrough&&(e=(e=r.converter._dispatch("strikethrough.before",e,t,r)).replace(/(?:~){2}([\s\S]+?)(?:~){2}/g,(function(e,n){return function(e){return t.simplifiedAutoLink&&(e=o.subParser("simplifiedAutoLinks")(e,t,r)),""+e+""}(n)})),e=r.converter._dispatch("strikethrough.after",e,t,r)),e})),o.subParser("stripLinkDefinitions",(function(e,t,r){"use strict";var n=function(e,n,a,i,s,c,u){return n=n.toLowerCase(),a.match(/^data:.+?\/.+?;base64,/)?r.gUrls[n]=a.replace(/\s/g,""):r.gUrls[n]=o.subParser("encodeAmpsAndAngles")(a,t,r),c?c+u:(u&&(r.gTitles[n]=u.replace(/"|'/g,""")),t.parseImgDimensions&&i&&s&&(r.gDimensions[n]={width:i,height:s}),"")};return e=(e=(e=(e+="¨0").replace(/^ {0,3}\[(.+)]:[ \t]*\n?[ \t]*?(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*\n?[ \t]*(?:(\n*)["|'(](.+?)["|')][ \t]*)?(?:\n\n|(?=¨0)|(?=\n\[))/gm,n)).replace(/^ {0,3}\[(.+)]:[ \t]*\n?[ \t]*\s]+)>?(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*\n?[ \t]*(?:(\n*)["|'(](.+?)["|')][ \t]*)?(?:\n+|(?=¨0))/gm,n)).replace(/¨0/,"")})),o.subParser("tables",(function(e,t,r){"use strict";if(!t.tables)return e;function n(e,n){return""+o.subParser("spanGamut")(e,t,r)+"\n"}function a(e){var a,i=e.split("\n");for(a=0;a"+(c=o.subParser("spanGamut")(c,t,r))+"\n"));for(a=0;a\n\n\n",a=0;a\n";for(var o=0;o\n"}return r+="\n\n"}(h,g)}return e=(e=(e=(e=r.converter._dispatch("tables.before",e,t,r)).replace(/\\(\|)/g,o.helper.escapeCharactersCallback)).replace(/^ {0,3}\|?.+\|.+\n {0,3}\|?[ \t]*:?[ \t]*(?:[-=]){2,}[ \t]*:?[ \t]*\|[ \t]*:?[ \t]*(?:[-=]){2,}[\s\S]+?(?:\n\n|¨0)/gm,a)).replace(/^ {0,3}\|.+\|[ \t]*\n {0,3}\|[ \t]*:?[ \t]*(?:[-=]){2,}[ \t]*:?[ \t]*\|[ \t]*\n( {0,3}\|.+\|[ \t]*\n)*(?:\n|¨0)/gm,a),e=r.converter._dispatch("tables.after",e,t,r)})),o.subParser("underline",(function(e,t,r){"use strict";return t.underline?(e=r.converter._dispatch("underline.before",e,t,r),e=(e=t.literalMidWordUnderscores?(e=e.replace(/\b___(\S[\s\S]*?)___\b/g,(function(e,t){return""+t+""}))).replace(/\b__(\S[\s\S]*?)__\b/g,(function(e,t){return""+t+""})):(e=e.replace(/___(\S[\s\S]*?)___/g,(function(e,t){return/\S$/.test(t)?""+t+"":e}))).replace(/__(\S[\s\S]*?)__/g,(function(e,t){return/\S$/.test(t)?""+t+"":e}))).replace(/(_)/g,o.helper.escapeCharactersCallback),e=r.converter._dispatch("underline.after",e,t,r)):e})),o.subParser("unescapeSpecialChars",(function(e,t,r){"use strict";return e=(e=r.converter._dispatch("unescapeSpecialChars.before",e,t,r)).replace(/¨E(\d+)E/g,(function(e,t){var r=parseInt(t);return String.fromCharCode(r)})),e=r.converter._dispatch("unescapeSpecialChars.after",e,t,r)})),o.subParser("makeMarkdown.blockquote",(function(e,t){"use strict";var r="";if(e.hasChildNodes())for(var n=e.childNodes,a=n.length,i=0;i ")})),o.subParser("makeMarkdown.codeBlock",(function(e,t){"use strict";var r=e.getAttribute("language"),n=e.getAttribute("precodenum");return"```"+r+"\n"+t.preList[n]+"\n```"})),o.subParser("makeMarkdown.codeSpan",(function(e){"use strict";return"`"+e.innerHTML+"`"})),o.subParser("makeMarkdown.emphasis",(function(e,t){"use strict";var r="";if(e.hasChildNodes()){r+="*";for(var n=e.childNodes,a=n.length,i=0;i",e.hasAttribute("width")&&e.hasAttribute("height")&&(t+=" ="+e.getAttribute("width")+"x"+e.getAttribute("height")),e.hasAttribute("title")&&(t+=' "'+e.getAttribute("title")+'"'),t+=")"),t})),o.subParser("makeMarkdown.links",(function(e,t){"use strict";var r="";if(e.hasChildNodes()&&e.hasAttribute("href")){var n=e.childNodes,a=n.length;r="[";for(var i=0;i",e.hasAttribute("title")&&(r+=' "'+e.getAttribute("title")+'"'),r+=")"}return r})),o.subParser("makeMarkdown.list",(function(e,t,r){"use strict";var n="";if(!e.hasChildNodes())return"";for(var a=e.childNodes,i=a.length,s=e.getAttribute("start")||1,c=0;c"+t.preList[r]+""})),o.subParser("makeMarkdown.strikethrough",(function(e,t){"use strict";var r="";if(e.hasChildNodes()){r+="~~";for(var n=e.childNodes,a=n.length,i=0;itr>th"),c=e.querySelectorAll("tbody>tr");for(r=0;rh&&(h=b)}for(r=0;r/g,"\\$1>")).replace(/^#/gm,"\\#")).replace(/^(\s*)([-=]{3,})(\s*)$/,"$1\\$2$3")).replace(/^( {0,3}\d+)\./gm,"$1\\.")).replace(/^( {0,3})([+-])/gm,"$1\\$2")).replace(/]([\s]*)\(/g,"\\]$1\\(")).replace(/^ {0,3}\[([\S \t]*?)]:/gm,"\\[$1]:")}));void 0===(n=function(){"use strict";return o}.call(t,r,t,e))||(e.exports=n)}).call(this)},29:function(e,t){!function(){e.exports=this.wp.dom}()},30:function(e,t,r){"use strict";r.d(t,"a",(function(){return a}));var n=r(27);function a(e,t){if(e){if("string"==typeof e)return Object(n.a)(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Object(n.a)(e,t):void 0}}},33:function(e,t){!function(){e.exports=this.wp.hooks}()},36:function(e,t){!function(){e.exports=this.wp.deprecated}()},37:function(e,t,r){"use strict";function n(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}r.d(t,"a",(function(){return n}))},38:function(e,t,r){"use strict";function n(e){if(Array.isArray(e))return e}r.d(t,"a",(function(){return n}))},39:function(e,t,r){"use strict";function n(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}r.d(t,"a",(function(){return n}))},4:function(e,t){!function(){e.exports=this.wp.data}()},41:function(e,t){!function(){e.exports=this.wp.blob}()},42:function(e,t,r){"use strict";var n,a;function o(e){return[e]}function i(){var e={clear:function(){e.head=null}};return e}function s(e,t,r){var n;if(e.length!==t.length)return!1;for(n=r;n0&&void 0!==arguments[0]?arguments[0]:null,r=arguments.length>1?arguments[1]:void 0;switch(r.type){case"REMOVE_BLOCK_TYPES":return-1!==r.names.indexOf(t)?null:t;case e:return r.name||null}return t}}var h=p("SET_DEFAULT_BLOCK_NAME"),b=p("SET_FREEFORM_FALLBACK_BLOCK_NAME"),g=p("SET_UNREGISTERED_FALLBACK_BLOCK_NAME"),m=p("SET_GROUPING_BLOCK_NAME");var _=Object(o.combineReducers)({blockTypes:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"ADD_BLOCK_TYPES":return f(f({},e),Object(c.keyBy)(Object(c.map)(t.blockTypes,(function(e){return Object(c.omit)(e,"styles ")})),"name"));case"REMOVE_BLOCK_TYPES":return Object(c.omit)(e,t.names)}return e},blockStyles:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"ADD_BLOCK_TYPES":return f(f({},e),Object(c.mapValues)(Object(c.keyBy)(t.blockTypes,"name"),(function(t){return Object(c.uniqBy)([].concat(Object(i.a)(Object(c.get)(t,["styles"],[])),Object(i.a)(Object(c.get)(e,[t.name],[]))),(function(e){return e.name}))})));case"ADD_BLOCK_STYLES":return f(f({},e),{},Object(s.a)({},t.blockName,Object(c.uniqBy)([].concat(Object(i.a)(Object(c.get)(e,[t.blockName],[])),Object(i.a)(t.styles)),(function(e){return e.name}))));case"REMOVE_BLOCK_STYLES":return f(f({},e),{},Object(s.a)({},t.blockName,Object(c.filter)(Object(c.get)(e,[t.blockName],[]),(function(e){return-1===t.styleNames.indexOf(e.name)}))))}return e},blockVariations:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"ADD_BLOCK_TYPES":return f(f({},e),Object(c.mapValues)(Object(c.keyBy)(t.blockTypes,"name"),(function(t){return Object(c.uniqBy)([].concat(Object(i.a)(Object(c.get)(t,["variations"],[])),Object(i.a)(Object(c.get)(e,[t.name],[]))),(function(e){return e.name}))})));case"ADD_BLOCK_VARIATIONS":return f(f({},e),{},Object(s.a)({},t.blockName,Object(c.uniqBy)([].concat(Object(i.a)(Object(c.get)(e,[t.blockName],[])),Object(i.a)(t.variations)),(function(e){return e.name}))));case"REMOVE_BLOCK_VARIATIONS":return f(f({},e),{},Object(s.a)({},t.blockName,Object(c.filter)(Object(c.get)(e,[t.blockName],[]),(function(e){return-1===t.variationNames.indexOf(e.name)}))))}return e},defaultBlockName:h,freeformFallbackBlockName:b,unregisteredFallbackBlockName:g,groupingBlockName:m,categories:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:d,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SET_CATEGORIES":return t.categories||[];case"UPDATE_CATEGORY":if(!t.category||Object(c.isEmpty)(t.category))return e;var r=Object(c.find)(e,["slug",t.slug]);if(r)return Object(c.map)(e,(function(e){return e.slug===t.slug?f(f({},e),t.category):e}))}return e},collections:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"ADD_BLOCK_COLLECTION":return f(f({},e),{},Object(s.a)({},t.namespace,{title:t.title,icon:t.icon}));case"REMOVE_BLOCK_COLLECTION":return Object(c.omit)(e,t.namespace)}return e}}),v=r(42);function w(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function y(e){for(var t=1;t0},I=function(e,t){return Object(c.some)(L(e,t),(function(t){return z(e,t,"inserter",!0)}))};function V(e){return{type:"ADD_BLOCK_TYPES",blockTypes:Object(c.castArray)(e)}}function R(e){return{type:"REMOVE_BLOCK_TYPES",names:Object(c.castArray)(e)}}function F(e,t){return{type:"ADD_BLOCK_STYLES",styles:Object(c.castArray)(t),blockName:e}}function $(e,t){return{type:"REMOVE_BLOCK_STYLES",styleNames:Object(c.castArray)(t),blockName:e}}function q(e,t){return{type:"ADD_BLOCK_VARIATIONS",variations:Object(c.castArray)(t),blockName:e}}function U(e,t){return{type:"REMOVE_BLOCK_VARIATIONS",variationNames:Object(c.castArray)(t),blockName:e}}function G(e){return{type:"SET_DEFAULT_BLOCK_NAME",name:e}}function K(e){return{type:"SET_FREEFORM_FALLBACK_BLOCK_NAME",name:e}}function W(e){return{type:"SET_UNREGISTERED_FALLBACK_BLOCK_NAME",name:e}}function Y(e){return{type:"SET_GROUPING_BLOCK_NAME",name:e}}function Z(e){return{type:"SET_CATEGORIES",categories:e}}function Q(e,t){return{type:"UPDATE_CATEGORY",slug:e,category:t}}function X(e,t,r){return{type:"ADD_BLOCK_COLLECTION",namespace:e,title:t,icon:r}}function J(e){return{type:"REMOVE_BLOCK_COLLECTION",namespace:e}}Object(o.registerStore)("core/blocks",{reducer:_,selectors:n,actions:a});var ee=r(12),te="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto),re=new Uint8Array(16);function ne(){if(!te)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return te(re)}for(var ae=[],oe=0;oe<256;++oe)ae[oe]=(oe+256).toString(16).substr(1);var ie=function(e,t){var r=t||0,n=ae;return[n[e[r++]],n[e[r++]],n[e[r++]],n[e[r++]],"-",n[e[r++]],n[e[r++]],"-",n[e[r++]],n[e[r++]],"-",n[e[r++]],n[e[r++]],"-",n[e[r++]],n[e[r++]],n[e[r++]],n[e[r++]],n[e[r++]],n[e[r++]]].join("")};var se=function(e,t,r){var n=t&&r||0;"string"==typeof e&&(t="binary"===e?new Array(16):null,e=null);var a=(e=e||{}).random||(e.rng||ne)();if(a[6]=15&a[6]|64,a[8]=63&a[8]|128,t)for(var o=0;o<16;++o)t[n+o]=a[o];return t||ie(a)},ce=r(33),ue=r(208),le=r(66),fe=r.n(le),de=r(0),pe=r(29);function he(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function be(e){for(var t=1;t2&&void 0!==arguments[2]?arguments[2]:"visual",n=e.__experimentalLabel,a=e.title,o=n&&n(t,{context:r});return o?Object(pe.__unstableStripHTML)(o):a}function ke(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"vertical",a=e.title,o=ye(e,t,"accessibility"),i=void 0!==r,s=o&&o!==a;return i&&"vertical"===n?s?Object(u.sprintf)(Object(u.__)("%1$s Block. Row %2$d. %3$s"),a,r,o):Object(u.sprintf)(Object(u.__)("%1$s Block. Row %2$d"),a,r):i&&"horizontal"===n?s?Object(u.sprintf)(Object(u.__)("%1$s Block. Column %2$d. %3$s"),a,r,o):Object(u.sprintf)(Object(u.__)("%1$s Block. Column %2$d"),a,r):s?Object(u.sprintf)(Object(u.__)("%1$s Block. %2$s"),a,o):Object(u.sprintf)(Object(u.__)("%s Block"),a)}var Oe=["attributes","supports","save","migrate","isEligible","apiVersion"],je={"--wp--style--color--link":["color","link"],background:["color","gradient"],backgroundColor:["color","background"],color:["color","text"],fontSize:["typography","fontSize"],lineHeight:["typography","lineHeight"],paddingBottom:["spacing","padding","bottom"],paddingLeft:["spacing","padding","left"],paddingRight:["spacing","padding","right"],paddingTop:["spacing","padding","top"]};function Ce(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Te(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],n=Re(e);if(void 0===n)throw new Error("Block type '".concat(e,"' is not registered."));var a=Object(c.reduce)(n.attributes,(function(e,r,n){var a=t[n];return void 0!==a?e[n]=a:r.hasOwnProperty("default")&&(e[n]=r.default),-1!==["node","children"].indexOf(r.source)&&("string"==typeof e[n]?e[n]=[e[n]]:Array.isArray(e[n])||(e[n]=[])),e}),{}),o=se();return{clientId:o,name:e,isValid:!0,attributes:a,innerBlocks:r}}function nt(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.map((function(e){var t=Array.isArray(e)?e:[e.name,e.attributes,e.innerBlocks],r=Object(ee.a)(t,3),n=r[0],a=r[1],o=r[2];return rt(n,a,nt(void 0===o?[]:o))}))}function at(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0,n=se();return tt(tt({},e),{},{clientId:n,attributes:tt(tt({},e.attributes),t),innerBlocks:r||e.innerBlocks.map((function(e){return at(e)}))})}var ot=function(e,t,r){if(Object(c.isEmpty)(r))return!1;var n=r.length>1,a=Object(c.first)(r).name;if(!(it(e)||!n||e.isMultiBlock))return!1;if(!it(e)&&!Object(c.every)(r,{name:a}))return!1;if(!("block"===e.type))return!1;var o=Object(c.first)(r);if(!("from"!==t||-1!==e.blocks.indexOf(o.name)||it(e)))return!1;if(!n&&st(o.name)&&st(e.blockName))return!1;if(Object(c.isFunction)(e.isMatch)){var i=e.isMultiBlock?r.map((function(e){return e.attributes})):o.attributes;if(!e.isMatch(i))return!1}return!0},it=function(e){return e&&"block"===e.type&&Array.isArray(e.blocks)&&e.blocks.includes("*")},st=function(e){return e===Me()};function ct(e){if(Object(c.isEmpty)(e))return[];var t=function(e){if(Object(c.isEmpty)(e))return[];var t=Fe();return Object(c.filter)(t,(function(t){return!!ut(lt("from",t.name),(function(t){return ot(t,"from",e)}))}))}(e),r=function(e){if(Object(c.isEmpty)(e))return[];var t=lt("to",Re(Object(c.first)(e).name).name),r=Object(c.filter)(t,(function(t){return t&&ot(t,"to",e)}));return Object(c.flatMap)(r,(function(e){return e.blocks})).map((function(e){return Re(e)}))}(e);return Object(c.uniq)([].concat(Object(i.a)(t),Object(i.a)(r)))}function ut(e,t){for(var r=Object(ce.createHooks)(),n=function(n){var a=e[n];t(a)&&r.addFilter("transform","transform/"+n.toString(),(function(e){return e||a}),a.priority)},a=0;a1,o=n[0],i=o.name,s=lt("from",t),u=ut(lt("to",i),(function(e){return"block"===e.type&&(it(e)||-1!==e.blocks.indexOf(t))&&(!a||e.isMultiBlock)}))||ut(s,(function(e){return"block"===e.type&&(it(e)||-1!==e.blocks.indexOf(i))&&(!a||e.isMultiBlock)}));if(!u)return null;if(r=u.isMultiBlock?Object(c.has)(u,"__experimentalConvert")?u.__experimentalConvert(n):u.transform(n.map((function(e){return e.attributes})),n.map((function(e){return e.innerBlocks}))):Object(c.has)(u,"__experimentalConvert")?u.__experimentalConvert(o):u.transform(o.attributes,o.innerBlocks),!Object(c.isObjectLike)(r))return null;if((r=Object(c.castArray)(r)).some((function(e){return!Re(e.name)})))return null;var l=Object(c.findIndex)(r,(function(e){return e.name===t}));return l<0?null:r.map((function(t,r){var n=tt(tt({},t),{},{clientId:r===l?o.clientId:t.clientId});return Object(ce.applyFilters)("blocks.switchToBlockType.transformedBlock",n,e)}))}var dt=function e(t,r){return rt(t,r.attributes,Object(c.map)(r.innerBlocks,(function(t){return e(t.name,t)})))};function pt(e,t){for(var r,n=t.split(".");r=n.shift();){if(!(r in e))return;e=e[r]}return e}var ht,bt=function(){return ht||(ht=document.implementation.createHTMLDocument("")),ht};function gt(e,t){if(t){if("string"==typeof e){var r=bt();r.body.innerHTML=e,e=r.body}if("function"==typeof t)return t(e);if(Object===t.constructor)return Object.keys(t).reduce((function(r,n){return r[n]=gt(e,t[n]),r}),{})}}function mt(e,t){return 1===arguments.length&&(t=e,e=void 0),function(r){var n=r;if(e&&(n=r.querySelector(e)),n)return pt(n,t)}}var _t=r(105),vt=r(283),wt=r(148),yt=r(21),kt=r(22),Ot=/^#[xX]([A-Fa-f0-9]+)$/,jt=/^#([0-9]+)$/,Ct=/^([A-Za-z0-9]+)$/,Tt=(function(){function e(e){this.named=e}e.prototype.parse=function(e){if(e){var t=e.match(Ot);return t?String.fromCharCode(parseInt(t[1],16)):(t=e.match(jt))?String.fromCharCode(parseInt(t[1],10)):(t=e.match(Ct))?this.named[t[1]]:void 0}}}(),/[\t\n\f ]/),xt=/[A-Za-z]/,Pt=/\r\n?/g;function St(e){return Tt.test(e)}function At(e){return xt.test(e)}var Et=function(){function e(e,t,r){void 0===r&&(r="precompile"),this.delegate=e,this.entityParser=t,this.mode=r,this.state="beforeData",this.line=-1,this.column=-1,this.input="",this.index=-1,this.tagNameBuffer="",this.states={beforeData:function(){var e=this.peek();if("<"!==e||this.isIgnoredEndTag()){if("precompile"===this.mode&&"\n"===e){var t=this.tagNameBuffer.toLowerCase();"pre"!==t&&"textarea"!==t||this.consume()}this.transitionTo("data"),this.delegate.beginData()}else this.transitionTo("tagOpen"),this.markTagStart(),this.consume()},data:function(){var e=this.peek(),t=this.tagNameBuffer;"<"!==e||this.isIgnoredEndTag()?"&"===e&&"script"!==t&&"style"!==t?(this.consume(),this.delegate.appendToData(this.consumeCharRef()||"&")):(this.consume(),this.delegate.appendToData(e)):(this.delegate.finishData(),this.transitionTo("tagOpen"),this.markTagStart(),this.consume())},tagOpen:function(){var e=this.consume();"!"===e?this.transitionTo("markupDeclarationOpen"):"/"===e?this.transitionTo("endTagOpen"):("@"===e||":"===e||At(e))&&(this.transitionTo("tagName"),this.tagNameBuffer="",this.delegate.beginStartTag(),this.appendToTagName(e))},markupDeclarationOpen:function(){"-"===this.consume()&&"-"===this.peek()&&(this.consume(),this.transitionTo("commentStart"),this.delegate.beginComment())},commentStart:function(){var e=this.consume();"-"===e?this.transitionTo("commentStartDash"):">"===e?(this.delegate.finishComment(),this.transitionTo("beforeData")):(this.delegate.appendToCommentData(e),this.transitionTo("comment"))},commentStartDash:function(){var e=this.consume();"-"===e?this.transitionTo("commentEnd"):">"===e?(this.delegate.finishComment(),this.transitionTo("beforeData")):(this.delegate.appendToCommentData("-"),this.transitionTo("comment"))},comment:function(){var e=this.consume();"-"===e?this.transitionTo("commentEndDash"):this.delegate.appendToCommentData(e)},commentEndDash:function(){var e=this.consume();"-"===e?this.transitionTo("commentEnd"):(this.delegate.appendToCommentData("-"+e),this.transitionTo("comment"))},commentEnd:function(){var e=this.consume();">"===e?(this.delegate.finishComment(),this.transitionTo("beforeData")):(this.delegate.appendToCommentData("--"+e),this.transitionTo("comment"))},tagName:function(){var e=this.consume();St(e)?this.transitionTo("beforeAttributeName"):"/"===e?this.transitionTo("selfClosingStartTag"):">"===e?(this.delegate.finishTag(),this.transitionTo("beforeData")):this.appendToTagName(e)},endTagName:function(){var e=this.consume();St(e)?(this.transitionTo("beforeAttributeName"),this.tagNameBuffer=""):"/"===e?(this.transitionTo("selfClosingStartTag"),this.tagNameBuffer=""):">"===e?(this.delegate.finishTag(),this.transitionTo("beforeData"),this.tagNameBuffer=""):this.appendToTagName(e)},beforeAttributeName:function(){var e=this.peek();St(e)?this.consume():"/"===e?(this.transitionTo("selfClosingStartTag"),this.consume()):">"===e?(this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):"="===e?(this.delegate.reportSyntaxError("attribute name cannot start with equals sign"),this.transitionTo("attributeName"),this.delegate.beginAttribute(),this.consume(),this.delegate.appendToAttributeName(e)):(this.transitionTo("attributeName"),this.delegate.beginAttribute())},attributeName:function(){var e=this.peek();St(e)?(this.transitionTo("afterAttributeName"),this.consume()):"/"===e?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.transitionTo("selfClosingStartTag")):"="===e?(this.transitionTo("beforeAttributeValue"),this.consume()):">"===e?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):'"'===e||"'"===e||"<"===e?(this.delegate.reportSyntaxError(e+" is not a valid character within attribute names"),this.consume(),this.delegate.appendToAttributeName(e)):(this.consume(),this.delegate.appendToAttributeName(e))},afterAttributeName:function(){var e=this.peek();St(e)?this.consume():"/"===e?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.transitionTo("selfClosingStartTag")):"="===e?(this.consume(),this.transitionTo("beforeAttributeValue")):">"===e?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.transitionTo("attributeName"),this.delegate.beginAttribute(),this.consume(),this.delegate.appendToAttributeName(e))},beforeAttributeValue:function(){var e=this.peek();St(e)?this.consume():'"'===e?(this.transitionTo("attributeValueDoubleQuoted"),this.delegate.beginAttributeValue(!0),this.consume()):"'"===e?(this.transitionTo("attributeValueSingleQuoted"),this.delegate.beginAttributeValue(!0),this.consume()):">"===e?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):(this.transitionTo("attributeValueUnquoted"),this.delegate.beginAttributeValue(!1),this.consume(),this.delegate.appendToAttributeValue(e))},attributeValueDoubleQuoted:function(){var e=this.consume();'"'===e?(this.delegate.finishAttributeValue(),this.transitionTo("afterAttributeValueQuoted")):"&"===e?this.delegate.appendToAttributeValue(this.consumeCharRef()||"&"):this.delegate.appendToAttributeValue(e)},attributeValueSingleQuoted:function(){var e=this.consume();"'"===e?(this.delegate.finishAttributeValue(),this.transitionTo("afterAttributeValueQuoted")):"&"===e?this.delegate.appendToAttributeValue(this.consumeCharRef()||"&"):this.delegate.appendToAttributeValue(e)},attributeValueUnquoted:function(){var e=this.peek();St(e)?(this.delegate.finishAttributeValue(),this.consume(),this.transitionTo("beforeAttributeName")):"/"===e?(this.delegate.finishAttributeValue(),this.consume(),this.transitionTo("selfClosingStartTag")):"&"===e?(this.consume(),this.delegate.appendToAttributeValue(this.consumeCharRef()||"&")):">"===e?(this.delegate.finishAttributeValue(),this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):(this.consume(),this.delegate.appendToAttributeValue(e))},afterAttributeValueQuoted:function(){var e=this.peek();St(e)?(this.consume(),this.transitionTo("beforeAttributeName")):"/"===e?(this.consume(),this.transitionTo("selfClosingStartTag")):">"===e?(this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):this.transitionTo("beforeAttributeName")},selfClosingStartTag:function(){">"===this.peek()?(this.consume(),this.delegate.markTagAsSelfClosing(),this.delegate.finishTag(),this.transitionTo("beforeData")):this.transitionTo("beforeAttributeName")},endTagOpen:function(){var e=this.consume();("@"===e||":"===e||At(e))&&(this.transitionTo("endTagName"),this.tagNameBuffer="",this.delegate.beginEndTag(),this.appendToTagName(e))}},this.reset()}return e.prototype.reset=function(){this.transitionTo("beforeData"),this.input="",this.tagNameBuffer="",this.index=0,this.line=1,this.column=0,this.delegate.reset()},e.prototype.transitionTo=function(e){this.state=e},e.prototype.tokenize=function(e){this.reset(),this.tokenizePart(e),this.tokenizeEOF()},e.prototype.tokenizePart=function(e){for(this.input+=function(e){return e.replace(Pt,"\n")}(e);this.index"!==this.input.substring(this.index,this.index+8)||"style"===e&&""!==this.input.substring(this.index,this.index+8)||"script"===e&&"<\/script>"!==this.input.substring(this.index,this.index+9)},e}(),Bt=function(){function e(e,t){void 0===t&&(t={}),this.options=t,this.token=null,this.startLine=1,this.startColumn=0,this.tokens=[],this.tokenizer=new Et(this,e,t.mode),this._currentAttribute=void 0}return e.prototype.tokenize=function(e){return this.tokens=[],this.tokenizer.tokenize(e),this.tokens},e.prototype.tokenizePart=function(e){return this.tokens=[],this.tokenizer.tokenizePart(e),this.tokens},e.prototype.tokenizeEOF=function(){return this.tokens=[],this.tokenizer.tokenizeEOF(),this.tokens[0]},e.prototype.reset=function(){this.token=null,this.startLine=1,this.startColumn=0},e.prototype.current=function(){var e=this.token;if(null===e)throw new Error("token was unexpectedly null");if(0===arguments.length)return e;for(var t=0;t1?r-1:0),a=1;a0&&void 0!==arguments[0]?arguments[0]:{},t=Yt.blockType,r=Yt.attributes;return Object(ce.applyFilters)("blocks.getSaveContent.extraProps",Gt({},e),t,r)}function Qt(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],n=we(e),a=n.save;if(a.prototype instanceof de.Component){var o=new a({attributes:t});a=o.render.bind(o)}Yt.blockType=n,Yt.attributes=t;var i=a({attributes:t,innerBlocks:r});if(Object(c.isObject)(i)&&Object(ce.hasFilter)("blocks.getSaveContent.extraProps")&&!n.apiVersion){var s=Object(ce.applyFilters)("blocks.getSaveContent.extraProps",Gt({},i.props),n,t);Dt()(s,i.props)||(i=Object(de.cloneElement)(i,s))}return i=Object(ce.applyFilters)("blocks.getSaveElement",i,n,t),Object(de.createElement)(qt,{innerBlocks:r},i)}function Xt(e,t,r){var n=we(e);return Object(de.renderToString)(Qt(n,t,r))}function Jt(e,t){return Object(c.reduce)(e.attributes,(function(e,r,n){var a=t[n];return void 0===a||void 0!==r.source||"default"in r&&r.default===a||(e[n]=a),e}),{})}function er(e){var t=e.originalContent;if(e.isValid||e.innerBlocks.length)try{t=Xt(e.name,e.attributes,e.innerBlocks)}catch(e){}return t}function tr(e,t,r){var n=Object(c.isEmpty)(t)?"":function(e){return JSON.stringify(e).replace(/--/g,"\\u002d\\u002d").replace(//g,"\\u003e").replace(/&/g,"\\u0026").replace(/\\"/g,"\\u0022")}(t)+" ",a=Object(c.startsWith)(e,"core/")?e.slice(5):e;return r?"\x3c!-- wp:".concat(a," ").concat(n,"--\x3e\n")+r+"\n\x3c!-- /wp:".concat(a," --\x3e"):"\x3c!-- wp:".concat(a," ").concat(n,"/--\x3e")}function rr(e,t){return Object(c.castArray)(e).map((function(e){return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.isInnerBlocks,n=void 0!==r&&r,a=e.name,o=er(e);if(a===De()||!n&&a===Le())return o;var i=Re(a),s=Jt(i,e.attributes);return tr(a,s,o)}(e,t)})).join("\n\n")}function nr(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}var ar=/[\t\n\r\v\f ]+/g,or=/^[\t\n\r\v\f ]*$/,ir=/^url\s*\(['"\s]*(.*?)['"\s]*\)$/,sr=["allowfullscreen","allowpaymentrequest","allowusermedia","async","autofocus","autoplay","checked","controls","default","defer","disabled","download","formnovalidate","hidden","ismap","itemscope","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","selected","typemustmatch"],cr=[].concat(sr,["autocapitalize","autocomplete","charset","contenteditable","crossorigin","decoding","dir","draggable","enctype","formenctype","formmethod","http-equiv","inputmode","kind","method","preload","scope","shape","spellcheck","translate","type","wrap"]),ur=[c.identity,function(e){return hr(e).join(" ")}],lr=/^[\da-z]+$/i,fr=/^#\d+$/,dr=/^#x[\da-f]+$/i;var pr=function(){function e(){Object(yt.a)(this,e)}return Object(kt.a)(e,[{key:"parse",value:function(e){if(t=e,lr.test(t)||fr.test(t)||dr.test(t))return Object(Nt.decodeEntities)("&"+e+";");var t}}]),e}();function hr(e){return e.trim().split(ar)}function br(e){return e.attributes.filter((function(e){var t=Object(ee.a)(e,2),r=t[0];return t[1]||0===r.indexOf("data-")||Object(c.includes)(cr,r)}))}function gr(e,t){for(var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Lt(),n=e.chars,a=t.chars,o=0;o2&&void 0!==arguments[2]?arguments[2]:Lt();if(e.length!==t.length)return r.warning("Expected attributes %o, instead saw %o.",t,e),!1;for(var n={},a=0;a2&&void 0!==arguments[2]?arguments[2]:Lt();return e.tagName!==t.tagName&&e.tagName.toLowerCase()!==t.tagName.toLowerCase()?(r.warning("Expected tag name `%s`, instead saw `%s`.",t.tagName,e.tagName),!1):wr.apply(void 0,Object(i.a)([e,t].map(br)).concat([r]))},Chars:gr,Comment:gr};function kr(e){for(var t;t=e.shift();){if("Chars"!==t.type)return t;if(!or.test(t.chars))return t}}function Or(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Lt();try{return new Bt(new pr).tokenize(e)}catch(r){t.warning("Malformed HTML detected: %s",e)}return null}function jr(e,t){return!!e.selfClosing&&!(!t||t.tagName!==e.tagName||"EndTag"!==t.type)}function Cr(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Lt();if(e===t)return!0;var n,a,o=[e,t].map((function(e){return Or(e,r)})),i=Object(ee.a)(o,2),s=i[0],c=i[1];if(!s||!c)return!1;for(;n=kr(s);){if(!(a=kr(c)))return r.warning("Expected end of content, instead saw %o.",n),!1;if(n.type!==a.type)return r.warning("Expected token of type `%s` (%o), instead saw `%s` (%o).",a.type,a,n.type,n),!1;var u=yr[n.type];if(u&&!u(n,a,r))return!1;jr(n,c[0])?kr(c):jr(a,s[0])&&kr(s)}return!(a=kr(c))||(r.warning("Expected %o, instead saw end of content.",a),!1)}function Tr(e,t,r){var n,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Mt(),o=we(e);try{n=Xt(o,t)}catch(e){return a.error("Block validation failed because an error occurred while generating block content:\n\n%s",e.toString()),{isValid:!1,validationIssues:a.getItems()}}var i=Cr(r,n,a);return i||a.error("Block validation failed for `%s` (%o).\n\nContent generated by `save` function:\n\n%s\n\nContent retrieved from post body:\n\n%s",o.name,o,n,r),{isValid:i,validationIssues:a.getItems()}}function xr(e,t,r){return Tr(e,t,r,Lt()).isValid}function Pr(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Sr(e){for(var t=1;t2&&void 0!==arguments[2]?arguments[2]:{},n=we(e),a=Object(c.mapValues)(n.attributes,(function(e,n){return $r(n,e,t,r)}));return Object(ce.applyFilters)("blocks.getBlockAttributes",a,n,t,r)}function Ur(e,t){var r=Ir({},t);if("core/cover-image"===e&&(e="core/cover"),"core/text"!==e&&"core/cover-text"!==e||(e="core/paragraph"),e&&0===e.indexOf("core/social-link-")&&(r.service=e.substring(17),e="core/social-link"),e&&0===e.indexOf("core-embed/")){var n=e.substring(11),a={speaker:"speaker-deck",polldaddy:"crowdsignal"};r.providerNameSlug=n in a?a[n]:n,["amazon-kindle","wordpress"].includes(n)||(r.responsive=!0),e="core/embed"}return{name:e,attributes:r}}function Gr(e){var t=e.blockName,r=e.attrs,n=e.innerBlocks,a=void 0===n?[]:n,o=e.innerHTML,s=e.innerContent,u=Le(),l=De()||u;r=r||{},o=o.trim();var f=t||u,d=Ur(f,r);f=d.name,r=d.attributes,f===u&&(o=Object(_t.autop)(o).trim());var p=Re(f);if(!p){var h={attrs:r,blockName:t,innerBlocks:a,innerContent:s},b=Kr(h,{isCommentDelimited:!1}),g=Kr(h,{isCommentDelimited:!0});f&&(o=g),r={originalName:t,originalContent:g,originalUndelimitedContent:b},p=Re(f=l)}a=(a=a.map(Gr)).filter((function(e){return e}));var m=f===u||f===l;if(p&&(o||!m)){var _=rt(f,qr(p,o,r),a);if(!m){var v=Tr(p,_.attributes,o),w=v.isValid,y=v.validationIssues;_.isValid=w,_.validationIssues=y}return _.originalContent=_.originalContent||o,(_=function(e,t){var r=Re(e.name),n=r.deprecated;if(!n||!n.length)return e;for(var a=e,o=a.originalContent,s=a.innerBlocks,u=0;u0&&(_.isValid?console.info("Block successfully updated for `%s` (%o).\n\nNew content generated by `save` function:\n\n%s\n\nContent retrieved from post body:\n\n%s",p.name,p,Xt(p,_.attributes),_.originalContent):_.validationIssues.forEach((function(e){var t=e.log,r=e.args;return t.apply(void 0,Object(i.a)(r))}))),_}}function Kr(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.isCommentDelimited,n=void 0===r||r,a=e.blockName,o=e.attrs,i=void 0===o?{}:o,s=e.innerBlocks,c=void 0===s?[]:s,u=e.innerContent,l=void 0===u?[]:u,f=0,d=l.map((function(e){return null!==e?e:Kr(c[f++],t)})).join("\n").replace(/\n+/g,"\n").trim();return n?tr(a,i,d):d}var Wr,Yr=(Wr=vt.parse,function(e){return Wr(e).reduce((function(e,t){var r=Gr(t);return r&&e.push(r),e}),[])}),Zr=Yr;function Qr(e){var t=document.implementation.createHTMLDocument(""),r=document.implementation.createHTMLDocument(""),n=t.body,a=r.body;for(n.innerHTML=e;n.firstChild;){var o=n.firstChild;o.nodeType===o.TEXT_NODE?o.nodeValue.trim()?(a.lastChild&&"P"===a.lastChild.nodeName||a.appendChild(r.createElement("P")),a.lastChild.appendChild(o)):n.removeChild(o):o.nodeType===o.ELEMENT_NODE?"BR"===o.nodeName?(o.nextSibling&&"BR"===o.nextSibling.nodeName&&(a.appendChild(r.createElement("P")),n.removeChild(o.nextSibling)),a.lastChild&&"P"===a.lastChild.nodeName&&a.lastChild.hasChildNodes()?a.lastChild.appendChild(o):n.removeChild(o)):"P"===o.nodeName?Object(pe.isEmpty)(o)?n.removeChild(o):a.appendChild(o):Object(pe.isPhrasingContent)(o)?(a.lastChild&&"P"===a.lastChild.nodeName||a.appendChild(r.createElement("P")),a.lastChild.appendChild(o)):a.appendChild(o):n.removeChild(o)}return a.innerHTML}function Xr(e,t){if(e.nodeType===e.COMMENT_NODE)if("nextpage"!==e.nodeValue){if(0===e.nodeValue.indexOf("more")){for(var r=e.nodeValue.slice(4).trim(),n=e,a=!1;n=n.nextSibling;)if(n.nodeType===n.COMMENT_NODE&&"noteaser"===n.nodeValue){a=!0,Object(pe.remove)(n);break}Object(pe.replace)(e,function(e,t,r){var n=r.createElement("wp-block");n.dataset.block="core/more",e&&(n.dataset.customText=e);t&&(n.dataset.noTeaser="");return n}(r,a,t))}}else Object(pe.replace)(e,function(e){var t=e.createElement("wp-block");return t.dataset.block="core/nextpage",t}(t))}function Jr(e){e.nodeType===e.COMMENT_NODE&&Object(pe.remove)(e)}function en(e,t){return e.every((function(e){return function(e,t){if(Object(pe.isTextContent)(e))return!0;if(!t)return!1;var r=e.nodeName.toLowerCase();return[["ul","li","ol"],["h1","h2","h3","h4","h5","h6"]].some((function(e){return 0===Object(c.difference)([r,t],e).length}))}(e,t)&&en(Array.from(e.children),t)}))}function tn(e){return"BR"===e.nodeName&&e.previousSibling&&"BR"===e.previousSibling.nodeName}function rn(e,t){if("SPAN"===e.nodeName&&e.style){var r=e.style,n=r.fontWeight,a=r.fontStyle,o=r.textDecorationLine,i=r.textDecoration,s=r.verticalAlign;"bold"!==n&&"700"!==n||Object(pe.wrap)(t.createElement("strong"),e),"italic"===a&&Object(pe.wrap)(t.createElement("em"),e),("line-through"===o||Object(c.includes)(i,"line-through"))&&Object(pe.wrap)(t.createElement("s"),e),"super"===s?Object(pe.wrap)(t.createElement("sup"),e):"sub"===s&&Object(pe.wrap)(t.createElement("sub"),e)}else"B"===e.nodeName?e=Object(pe.replaceTag)(e,"strong"):"I"===e.nodeName?e=Object(pe.replaceTag)(e,"em"):"A"===e.nodeName&&(e.target&&"_blank"===e.target.toLowerCase()?e.rel="noreferrer noopener":(e.removeAttribute("target"),e.removeAttribute("rel")))}function nn(e){"SCRIPT"!==e.nodeName&&"NOSCRIPT"!==e.nodeName&&"TEMPLATE"!==e.nodeName&&"STYLE"!==e.nodeName||e.parentNode.removeChild(e)}var an=window.parseInt;function on(e){return"OL"===e.nodeName||"UL"===e.nodeName}function sn(e,t){if("P"===e.nodeName){var r=e.getAttribute("style");if(r&&-1!==r.indexOf("mso-list")){var n=/mso-list\s*:[^;]+level([0-9]+)/i.exec(r);if(n){var a=an(n[1],10)-1||0,o=e.previousElementSibling;if(!o||!on(o)){var i=e.textContent.trim().slice(0,1),s=/[1iIaA]/.test(i),c=t.createElement(s?"ol":"ul");s&&c.setAttribute("type",i),e.parentNode.insertBefore(c,e)}var u=e.previousElementSibling,l=u.nodeName,f=t.createElement("li"),d=u;for(e.removeChild(e.firstElementChild);e.firstChild;)f.appendChild(e.firstChild);for(;a--;)on(d=d.lastElementChild||d)&&(d=d.lastElementChild||d);on(d)||(d=d.appendChild(t.createElement(l))),d.appendChild(f),e.parentNode.removeChild(e)}}}}function cn(e){return"OL"===e.nodeName||"UL"===e.nodeName}function un(e){if(cn(e)){var t=e,r=e.previousElementSibling;if(r&&r.nodeName===e.nodeName&&1===t.children.length){for(;t.firstChild;)r.appendChild(t.firstChild);t.parentNode.removeChild(t)}var n,a=e.parentNode;if(a&&"LI"===a.nodeName&&1===a.children.length&&!/\S/.test((n=a,Array.from(n.childNodes).map((function(e){var t=e.nodeValue;return void 0===t?"":t})).join("")))){var o=a,i=o.previousElementSibling,s=o.parentNode;i?(i.appendChild(t),s.removeChild(o)):(s.parentNode.insertBefore(t,s),s.parentNode.removeChild(s))}if(a&&cn(a)){var c=e.previousElementSibling;c?c.appendChild(e):Object(pe.unwrap)(e)}}}var ln=r(41),fn=window,dn=fn.atob,pn=fn.File;function hn(e){if("IMG"===e.nodeName){if(0===e.src.indexOf("file:")&&(e.src=""),0===e.src.indexOf("data:")){var t,r=e.src.split(","),n=Object(ee.a)(r,2),a=n[0],o=n[1],i=a.slice(5).split(";"),s=Object(ee.a)(i,1)[0];if(!o||!s)return void(e.src="");try{t=dn(o)}catch(t){return void(e.src="")}for(var c=new Uint8Array(t.length),u=0;u1&&void 0!==arguments[1]?arguments[1]:e,r=e.ownerDocument.createElement("figure");t.parentNode.insertBefore(r,t),r.appendChild(e)}function mn(e,t,r){if(function(e,t){var r=e.nodeName.toLowerCase();return"figcaption"!==r&&!Object(pe.isTextContent)(e)&&Object(c.has)(t,["figure","children",r])}(e,r)){var n=e,a=e.parentNode;(function(e,t){var r=e.nodeName.toLowerCase();return Object(c.has)(t,["figure","children","a","children",r])})(e,r)&&"A"===a.nodeName&&1===a.childNodes.length&&(n=e.parentNode);var o=n.closest("p,div");o?e.classList?(e.classList.contains("alignright")||e.classList.contains("alignleft")||e.classList.contains("aligncenter")||!o.textContent.trim())&&gn(n,o):gn(n,o):"BODY"===n.parentNode.nodeName&&gn(n)}}var _n=r(130);function vn(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function wn(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],a=lt("from"),o=ut(a,(function(e){return-1===n.indexOf(e.blockName)&&"shortcode"===e.type&&Object(c.some)(Object(c.castArray)(e.tag),(function(e){return Object(_n.regexp)(e).test(t)}))}));if(!o)return[t];var s,u=Object(c.castArray)(o.tag),l=Object(c.find)(u,(function(e){return Object(_n.regexp)(e).test(t)})),f=r;if(s=Object(_n.next)(l,t,r)){r=s.index+s.content.length;var d=t.substr(0,s.index),p=t.substr(r);if(!(Object(c.includes)(s.shortcode.content||"","<")||/(\n|

    )\s*$/.test(d)&&/^\s*(\n|<\/p>)/.test(p)))return e(t,r);if(o.isMatch&&!o.isMatch(s.shortcode.attrs))return e(t,f,[].concat(Object(i.a)(n),[o.blockName]));var h=Object(c.mapValues)(Object(c.pickBy)(o.attributes,(function(e){return e.shortcode})),(function(e){return e.shortcode(s.shortcode.attrs,s)})),b=rt(o.blockName,qr(wn(wn({},Re(o.blockName)),{},{attributes:o.attributes}),s.shortcode.content,h));return[].concat(Object(i.a)(e(d)),[b],Object(i.a)(e(p)))}return[t]},kn=r(284),On=new(r.n(kn).a.Converter)({noHeaderId:!0,tables:!0,literalMidWordUnderscores:!0,omitExtraWLInCodeBlocks:!0,simpleLineBreaks:!0,strikethrough:!0});function jn(e){if("IFRAME"===e.nodeName){var t=e.ownerDocument.createTextNode(e.src);e.parentNode.replaceChild(t,e)}}function Cn(e){e.id&&0===e.id.indexOf("docs-internal-guid-")&&Object(pe.unwrap)(e)}function Tn(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function xn(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2?arguments[2]:void 0,n=document.implementation.createHTMLDocument("");return n.body.innerHTML=e,Sn(n.body.childNodes,t,n,r),n.body.innerHTML}function En(e,t){var r=e["".concat(t,"Sibling")];if(r&&Object(pe.isPhrasingContent)(r))return r;var n=e.parentNode;return n&&Object(pe.isPhrasingContent)(n)?En(n,t):void 0}function Bn(e){if(e.nodeType===e.TEXT_NODE){for(var t=e;t=t.parentNode;)if(t.nodeType===t.ELEMENT_NODE&&"PRE"===t.nodeName)return;var r,n=e.data.replace(/[ \r\n\t]+/g," ");if(" "===n[0]){var a=En(e,"previous");a&&"BR"!==a.nodeName&&" "!==a.textContent.slice(-1)||(n=n.slice(1))}if(" "===n[n.length-1]){var o=En(e,"next");(!o||"BR"===o.nodeName||o.nodeType===o.TEXT_NODE&&(" "===(r=o.textContent[0])||"\r"===r||"\n"===r||"\t"===r))&&(n=n.slice(0,-1))}n?e.data=n:e.parentNode.removeChild(e)}}function Nn(e){"BR"===e.nodeName&&(En(e,"next")||e.parentNode.removeChild(e))}function Ln(e){"P"===e.nodeName&&(e.hasChildNodes()||e.parentNode.removeChild(e))}function Mn(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function zn(e){for(var t=1;t]+>/g,"")).replace(/^\s*]*>\s*]*>(?:\s*)?/i,"")).replace(/(?:\s*)?<\/body>\s*<\/html>\s*$/i,""),"INLINE"!==s){var f=n||o;if(-1!==f.indexOf("\x3c!-- wp:"))return Yr(f)}if(String.prototype.normalize&&(n=n.normalize()),!o||n&&!function(e){return!/<(?!br[ />])/i.test(e)}(n)||(t=o,n=On.makeHtml(function(e){return e.replace(/((?:^|\n)```)([^\n`]+)(```(?:$|\n))/,(function(e,t,r,n){return"".concat(t,"\n").concat(r,"\n").concat(n)}))}(t)),"AUTO"===s&&-1===o.indexOf("\n")&&0!==o.indexOf("

    ")&&0===n.indexOf("

    ")&&(s="INLINE")),"INLINE"===s)return Hn(n,l);var d=yn(n),p=d.length>1;if("AUTO"===s&&!p&&function(e,t){var r=document.implementation.createHTMLDocument("");r.body.innerHTML=e;var n=Array.from(r.body.children);return!n.some(tn)&&en(n,t)}(n,u))return Hn(n,l);var h=Object(c.filter)(lt("from"),{type:"raw"}).map((function(e){return e.isMatch?e:zn(zn({},e),{},{isMatch:function(t){return e.selector&&t.matches(e.selector)}})})),b=Object(pe.getPhrasingContentSchema)("paste"),g=Pn(h,b,!0),m=Object(c.compact)(Object(c.flatMap)(d,(function(e){if("string"!=typeof e)return e;var t=[Cn,sn,nn,un,hn,rn,Xr,Jr,jn,mn,bn],r=zn(zn({},g),b);return e=An(e,t,g),e=An(e=Qr(e=Object(pe.removeInvalidHTML)(e,r)),[Bn,Nn,Ln],g),Dn.log("Processed HTML piece:\n\n",e),function(e){var t=e.html,r=e.rawTransforms,n=document.implementation.createHTMLDocument("");return n.body.innerHTML=t,Array.from(n.body.children).map((function(e){var t=ut(r,(function(t){return(0,t.isMatch)(e)}));if(!t)return rt("core/html",qr("core/html",e.outerHTML));var n=t.transform,a=t.blockName;return n?n(e):rt(a,qr(a,e.outerHTML))}))}({html:e,rawTransforms:h})})));if("AUTO"===s&&1===m.length&&qe(m[0].name,"__unstablePasteTextInline",!1)){var _=o.trim();if(""!==_&&-1===_.indexOf("\n"))return Object(pe.removeInvalidHTML)(er(m[0]),b)}return m}var Vn=r(36),Rn=r.n(Vn);function Fn(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function $n(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return e.length===t.length&&Object(c.every)(t,(function(t,r){var n=Object(ee.a)(t,3),a=n[0],o=n[2],i=e[r];return a===i.name&&Qn(i.innerBlocks,o)}))}function Xn(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;return t?Object(c.map)(t,(function(t,r){var n=Object(ee.a)(t,3),a=n[0],o=n[1],i=n[2],s=e[r];if(s&&s.name===a){var u=Xn(s.innerBlocks,i);return Zn(Zn({},s),{},{innerBlocks:u})}var l=Re(a),f=function(e,t){return Object(c.mapValues)(t,(function(t,r){return d(e[r],t)}))},d=function(e,t){return r=e,"html"===Object(c.get)(r,["source"])&&Object(c.isArray)(t)?Object(de.renderToString)(t):function(e){return"query"===Object(c.get)(e,["source"])}(e)&&t?t.map((function(t){return f(e.query,t)})):t;var r},p=Ur(a,f(Object(c.get)(l,["attributes"],{}),o));return rt(p.name,p.attributes,Xn([],i))})):e}},5:function(e,t,r){"use strict";function n(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}r.d(t,"a",(function(){return n}))},64:function(e,t){!function(){e.exports=this.wp.isShallowEqual}()},66:function(e,t,r){var n;!function(a){var o=/^\s+/,i=/\s+$/,s=0,c=a.round,u=a.min,l=a.max,f=a.random;function d(e,t){if(t=t||{},(e=e||"")instanceof d)return e;if(!(this instanceof d))return new d(e,t);var r=function(e){var t={r:0,g:0,b:0},r=1,n=null,s=null,c=null,f=!1,d=!1;"string"==typeof e&&(e=function(e){e=e.replace(o,"").replace(i,"").toLowerCase();var t,r=!1;if(A[e])e=A[e],r=!0;else if("transparent"==e)return{r:0,g:0,b:0,a:0,format:"name"};if(t=$.rgb.exec(e))return{r:t[1],g:t[2],b:t[3]};if(t=$.rgba.exec(e))return{r:t[1],g:t[2],b:t[3],a:t[4]};if(t=$.hsl.exec(e))return{h:t[1],s:t[2],l:t[3]};if(t=$.hsla.exec(e))return{h:t[1],s:t[2],l:t[3],a:t[4]};if(t=$.hsv.exec(e))return{h:t[1],s:t[2],v:t[3]};if(t=$.hsva.exec(e))return{h:t[1],s:t[2],v:t[3],a:t[4]};if(t=$.hex8.exec(e))return{r:M(t[1]),g:M(t[2]),b:M(t[3]),a:I(t[4]),format:r?"name":"hex8"};if(t=$.hex6.exec(e))return{r:M(t[1]),g:M(t[2]),b:M(t[3]),format:r?"name":"hex"};if(t=$.hex4.exec(e))return{r:M(t[1]+""+t[1]),g:M(t[2]+""+t[2]),b:M(t[3]+""+t[3]),a:I(t[4]+""+t[4]),format:r?"name":"hex8"};if(t=$.hex3.exec(e))return{r:M(t[1]+""+t[1]),g:M(t[2]+""+t[2]),b:M(t[3]+""+t[3]),format:r?"name":"hex"};return!1}(e));"object"==typeof e&&(q(e.r)&&q(e.g)&&q(e.b)?(p=e.r,h=e.g,b=e.b,t={r:255*N(p,255),g:255*N(h,255),b:255*N(b,255)},f=!0,d="%"===String(e.r).substr(-1)?"prgb":"rgb"):q(e.h)&&q(e.s)&&q(e.v)?(n=D(e.s),s=D(e.v),t=function(e,t,r){e=6*N(e,360),t=N(t,100),r=N(r,100);var n=a.floor(e),o=e-n,i=r*(1-t),s=r*(1-o*t),c=r*(1-(1-o)*t),u=n%6;return{r:255*[r,s,i,i,c,r][u],g:255*[c,r,r,s,i,i][u],b:255*[i,i,c,r,r,s][u]}}(e.h,n,s),f=!0,d="hsv"):q(e.h)&&q(e.s)&&q(e.l)&&(n=D(e.s),c=D(e.l),t=function(e,t,r){var n,a,o;function i(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+6*(t-e)*r:r<.5?t:r<2/3?e+(t-e)*(2/3-r)*6:e}if(e=N(e,360),t=N(t,100),r=N(r,100),0===t)n=a=o=r;else{var s=r<.5?r*(1+t):r+t-r*t,c=2*r-s;n=i(c,s,e+1/3),a=i(c,s,e),o=i(c,s,e-1/3)}return{r:255*n,g:255*a,b:255*o}}(e.h,n,c),f=!0,d="hsl"),e.hasOwnProperty("a")&&(r=e.a));var p,h,b;return r=B(r),{ok:f,format:e.format||d,r:u(255,l(t.r,0)),g:u(255,l(t.g,0)),b:u(255,l(t.b,0)),a:r}}(e);this._originalInput=e,this._r=r.r,this._g=r.g,this._b=r.b,this._a=r.a,this._roundA=c(100*this._a)/100,this._format=t.format||r.format,this._gradientType=t.gradientType,this._r<1&&(this._r=c(this._r)),this._g<1&&(this._g=c(this._g)),this._b<1&&(this._b=c(this._b)),this._ok=r.ok,this._tc_id=s++}function p(e,t,r){e=N(e,255),t=N(t,255),r=N(r,255);var n,a,o=l(e,t,r),i=u(e,t,r),s=(o+i)/2;if(o==i)n=a=0;else{var c=o-i;switch(a=s>.5?c/(2-o-i):c/(o+i),o){case e:n=(t-r)/c+(t>1)+720)%360;--t;)n.h=(n.h+a)%360,o.push(d(n));return o}function S(e,t){t=t||6;for(var r=d(e).toHsv(),n=r.h,a=r.s,o=r.v,i=[],s=1/t;t--;)i.push(d({h:n,s:a,v:o})),o=(o+s)%1;return i}d.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},getLuminance:function(){var e,t,r,n=this.toRgb();return e=n.r/255,t=n.g/255,r=n.b/255,.2126*(e<=.03928?e/12.92:a.pow((e+.055)/1.055,2.4))+.7152*(t<=.03928?t/12.92:a.pow((t+.055)/1.055,2.4))+.0722*(r<=.03928?r/12.92:a.pow((r+.055)/1.055,2.4))},setAlpha:function(e){return this._a=B(e),this._roundA=c(100*this._a)/100,this},toHsv:function(){var e=h(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=h(this._r,this._g,this._b),t=c(360*e.h),r=c(100*e.s),n=c(100*e.v);return 1==this._a?"hsv("+t+", "+r+"%, "+n+"%)":"hsva("+t+", "+r+"%, "+n+"%, "+this._roundA+")"},toHsl:function(){var e=p(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=p(this._r,this._g,this._b),t=c(360*e.h),r=c(100*e.s),n=c(100*e.l);return 1==this._a?"hsl("+t+", "+r+"%, "+n+"%)":"hsla("+t+", "+r+"%, "+n+"%, "+this._roundA+")"},toHex:function(e){return b(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return function(e,t,r,n,a){var o=[z(c(e).toString(16)),z(c(t).toString(16)),z(c(r).toString(16)),z(H(n))];if(a&&o[0].charAt(0)==o[0].charAt(1)&&o[1].charAt(0)==o[1].charAt(1)&&o[2].charAt(0)==o[2].charAt(1)&&o[3].charAt(0)==o[3].charAt(1))return o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0)+o[3].charAt(0);return o.join("")}(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:c(this._r),g:c(this._g),b:c(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+c(this._r)+", "+c(this._g)+", "+c(this._b)+")":"rgba("+c(this._r)+", "+c(this._g)+", "+c(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:c(100*N(this._r,255))+"%",g:c(100*N(this._g,255))+"%",b:c(100*N(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+c(100*N(this._r,255))+"%, "+c(100*N(this._g,255))+"%, "+c(100*N(this._b,255))+"%)":"rgba("+c(100*N(this._r,255))+"%, "+c(100*N(this._g,255))+"%, "+c(100*N(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(E[b(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var t="#"+g(this._r,this._g,this._b,this._a),r=t,n=this._gradientType?"GradientType = 1, ":"";if(e){var a=d(e);r="#"+g(a._r,a._g,a._b,a._a)}return"progid:DXImageTransform.Microsoft.gradient("+n+"startColorstr="+t+",endColorstr="+r+")"},toString:function(e){var t=!!e;e=e||this._format;var r=!1,n=this._a<1&&this._a>=0;return t||!n||"hex"!==e&&"hex6"!==e&&"hex3"!==e&&"hex4"!==e&&"hex8"!==e&&"name"!==e?("rgb"===e&&(r=this.toRgbString()),"prgb"===e&&(r=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(r=this.toHexString()),"hex3"===e&&(r=this.toHexString(!0)),"hex4"===e&&(r=this.toHex8String(!0)),"hex8"===e&&(r=this.toHex8String()),"name"===e&&(r=this.toName()),"hsl"===e&&(r=this.toHslString()),"hsv"===e&&(r=this.toHsvString()),r||this.toHexString()):"name"===e&&0===this._a?this.toName():this.toRgbString()},clone:function(){return d(this.toString())},_applyModification:function(e,t){var r=e.apply(null,[this].concat([].slice.call(t)));return this._r=r._r,this._g=r._g,this._b=r._b,this.setAlpha(r._a),this},lighten:function(){return this._applyModification(w,arguments)},brighten:function(){return this._applyModification(y,arguments)},darken:function(){return this._applyModification(k,arguments)},desaturate:function(){return this._applyModification(m,arguments)},saturate:function(){return this._applyModification(_,arguments)},greyscale:function(){return this._applyModification(v,arguments)},spin:function(){return this._applyModification(O,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(P,arguments)},complement:function(){return this._applyCombination(j,arguments)},monochromatic:function(){return this._applyCombination(S,arguments)},splitcomplement:function(){return this._applyCombination(x,arguments)},triad:function(){return this._applyCombination(C,arguments)},tetrad:function(){return this._applyCombination(T,arguments)}},d.fromRatio=function(e,t){if("object"==typeof e){var r={};for(var n in e)e.hasOwnProperty(n)&&(r[n]="a"===n?e[n]:D(e[n]));e=r}return d(e,t)},d.equals=function(e,t){return!(!e||!t)&&d(e).toRgbString()==d(t).toRgbString()},d.random=function(){return d.fromRatio({r:f(),g:f(),b:f()})},d.mix=function(e,t,r){r=0===r?0:r||50;var n=d(e).toRgb(),a=d(t).toRgb(),o=r/100;return d({r:(a.r-n.r)*o+n.r,g:(a.g-n.g)*o+n.g,b:(a.b-n.b)*o+n.b,a:(a.a-n.a)*o+n.a})},d.readability=function(e,t){var r=d(e),n=d(t);return(a.max(r.getLuminance(),n.getLuminance())+.05)/(a.min(r.getLuminance(),n.getLuminance())+.05)},d.isReadable=function(e,t,r){var n,a,o=d.readability(e,t);switch(a=!1,(n=function(e){var t,r;t=((e=e||{level:"AA",size:"small"}).level||"AA").toUpperCase(),r=(e.size||"small").toLowerCase(),"AA"!==t&&"AAA"!==t&&(t="AA");"small"!==r&&"large"!==r&&(r="small");return{level:t,size:r}}(r)).level+n.size){case"AAsmall":case"AAAlarge":a=o>=4.5;break;case"AAlarge":a=o>=3;break;case"AAAsmall":a=o>=7}return a},d.mostReadable=function(e,t,r){var n,a,o,i,s=null,c=0;a=(r=r||{}).includeFallbackColors,o=r.level,i=r.size;for(var u=0;uc&&(c=n,s=d(t[u]));return d.isReadable(e,s,{level:o,size:i})||!a?s:(r.includeFallbackColors=!1,d.mostReadable(e,["#fff","#000"],r))};var A=d.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},E=d.hexNames=function(e){var t={};for(var r in e)e.hasOwnProperty(r)&&(t[e[r]]=r);return t}(A);function B(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function N(e,t){(function(e){return"string"==typeof e&&-1!=e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var r=function(e){return"string"==typeof e&&-1!=e.indexOf("%")}(e);return e=u(t,l(0,parseFloat(e))),r&&(e=parseInt(e*t,10)/100),a.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function L(e){return u(1,l(0,e))}function M(e){return parseInt(e,16)}function z(e){return 1==e.length?"0"+e:""+e}function D(e){return e<=1&&(e=100*e+"%"),e}function H(e){return a.round(255*parseFloat(e)).toString(16)}function I(e){return M(e)/255}var V,R,F,$=(R="[\\s|\\(]+("+(V="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+V+")[,|\\s]+("+V+")\\s*\\)?",F="[\\s|\\(]+("+V+")[,|\\s]+("+V+")[,|\\s]+("+V+")[,|\\s]+("+V+")\\s*\\)?",{CSS_UNIT:new RegExp(V),rgb:new RegExp("rgb"+R),rgba:new RegExp("rgba"+F),hsl:new RegExp("hsl"+R),hsla:new RegExp("hsla"+F),hsv:new RegExp("hsv"+R),hsva:new RegExp("hsva"+F),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function q(e){return!!$.CSS_UNIT.exec(e)}e.exports?e.exports=d:void 0===(n=function(){return d}.call(t,r,t,e))||(e.exports=n)}(Math)},69:function(e,t){!function(){e.exports=this.wp.htmlEntities}()},7:function(e,t){!function(){e.exports=this.wp.primitives}()},8:function(e,t,r){"use strict";function n(){return(n=Object.assign||function(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r (GFM Style)",type:"boolean"},requireSpaceBeforeHeadingText:{defaultValue:!1,description:"Makes adding a space between `#` and the header text mandatory (GFM Style)",type:"boolean"},ghMentions:{defaultValue:!1,description:"Enables github @mentions",type:"boolean"},ghMentionsLink:{defaultValue:"https://github.com/{u}",description:"Changes the link generated by @mentions. Only applies if ghMentions option is enabled.",type:"string"},encodeEmails:{defaultValue:!0,description:"Encode e-mail addresses through the use of Character Entities, transforming ASCII e-mail addresses into its equivalent decimal entities",type:"boolean"},openLinksInNewWindow:{defaultValue:!1,description:"Open all links in new windows",type:"boolean"},backslashEscapesHTMLTags:{defaultValue:!1,description:"Support for HTML Tag escaping. ex:

    foo
    ",type:"boolean"},emoji:{defaultValue:!1,description:"Enable emoji support. Ex: `this is a :smile: emoji`",type:"boolean"},underline:{defaultValue:!1,description:"Enable support for underline. Syntax is double or triple underscores: `__underline word__`. With this option enabled, underscores no longer parses into `` and ``",type:"boolean"},completeHTMLDocument:{defaultValue:!1,description:"Outputs a complete html document, including ``, `` and `` tags",type:"boolean"},metadata:{defaultValue:!1,description:"Enable support for document metadata (defined at the top of the document between `«««` and `»»»` or between `---` and `---`).",type:"boolean"},splitAdjacentBlockquotes:{defaultValue:!1,description:"Split adjacent blockquote blocks",type:"boolean"}};if(!1===e)return JSON.parse(JSON.stringify(t));var r={};for(var n in t)t.hasOwnProperty(n)&&(r[n]=t[n].defaultValue);return r}var o={},i={},s={},c=a(!0),u="vanilla",l={github:{omitExtraWLInCodeBlocks:!0,simplifiedAutoLink:!0,excludeTrailingPunctuationFromURLs:!0,literalMidWordUnderscores:!0,strikethrough:!0,tables:!0,tablesHeaderId:!0,ghCodeBlocks:!0,tasklists:!0,disableForced4SpacesIndentedSublists:!0,simpleLineBreaks:!0,requireSpaceBeforeHeadingText:!0,ghCompatibleHeaderId:!0,ghMentions:!0,backslashEscapesHTMLTags:!0,emoji:!0,splitAdjacentBlockquotes:!0},original:{noHeaderId:!0,ghCodeBlocks:!1},ghost:{omitExtraWLInCodeBlocks:!0,parseImgDimensions:!0,simplifiedAutoLink:!0,excludeTrailingPunctuationFromURLs:!0,literalMidWordUnderscores:!0,strikethrough:!0,tables:!0,tablesHeaderId:!0,ghCodeBlocks:!0,tasklists:!0,smoothLivePreview:!0,simpleLineBreaks:!0,requireSpaceBeforeHeadingText:!0,ghMentions:!1,encodeEmails:!0},vanilla:a(!0),allOn:function(){"use strict";var e=a(!0),t={};for(var r in e)e.hasOwnProperty(r)&&(t[r]=!0);return t}()};function f(e,t){"use strict";var r=t?"Error in "+t+" extension->":"Error in unnamed extension",n={valid:!0,error:""};o.helper.isArray(e)||(e=[e]);for(var a=0;a").replace(/&/g,"&")};var p=function(e,t,r,n){"use strict";var a,o,i,s,c,u=n||"",l=u.indexOf("g")>-1,f=new RegExp(t+"|"+r,"g"+u.replace(/g/g,"")),d=new RegExp(t,u.replace(/g/g,"")),p=[];do{for(a=0;i=f.exec(e);)if(d.test(i[0]))a++||(s=(o=f.lastIndex)-i[0].length);else if(a&&!--a){c=i.index+i[0].length;var h={left:{start:s,end:o},match:{start:o,end:i.index},right:{start:i.index,end:c},wholeMatch:{start:s,end:c}};if(p.push(h),!l)return p}}while(a&&(f.lastIndex=o));return p};o.helper.matchRecursiveRegExp=function(e,t,r,n){"use strict";for(var a=p(e,t,r,n),o=[],i=0;i0){var l=[];0!==s[0].wholeMatch.start&&l.push(e.slice(0,s[0].wholeMatch.start));for(var f=0;f=0?n+(r||0):n},o.helper.splitAtIndex=function(e,t){"use strict";if(!o.helper.isString(e))throw"InvalidArgumentError: first parameter of showdown.helper.regexIndexOf function must be a string";return[e.substring(0,t),e.substring(t)]},o.helper.encodeEmailAddress=function(e){"use strict";var t=[function(e){return"&#"+e.charCodeAt(0)+";"},function(e){return"&#x"+e.charCodeAt(0).toString(16)+";"},function(e){return e}];return e=e.replace(/./g,(function(e){if("@"===e)e=t[Math.floor(2*Math.random())](e);else{var r=Math.random();e=r>.9?t[2](e):r>.45?t[1](e):t[0](e)}return e}))},o.helper.padEnd=function(e,t,r){"use strict";return t>>=0,r=String(r||" "),e.length>t?String(e):((t-=e.length)>r.length&&(r+=r.repeat(t/r.length)),String(e)+r.slice(0,t))},"undefined"==typeof console&&(console={warn:function(e){"use strict";alert(e)},log:function(e){"use strict";alert(e)},error:function(e){"use strict";throw e}}),o.helper.regexes={asteriskDashAndColon:/([*_:~])/g},o.helper.emojis={"+1":"👍","-1":"👎",100:"💯",1234:"🔢","1st_place_medal":"🥇","2nd_place_medal":"🥈","3rd_place_medal":"🥉","8ball":"🎱",a:"🅰️",ab:"🆎",abc:"🔤",abcd:"🔡",accept:"🉑",aerial_tramway:"🚡",airplane:"✈️",alarm_clock:"⏰",alembic:"⚗️",alien:"👽",ambulance:"🚑",amphora:"🏺",anchor:"⚓️",angel:"👼",anger:"💢",angry:"😠",anguished:"😧",ant:"🐜",apple:"🍎",aquarius:"♒️",aries:"♈️",arrow_backward:"◀️",arrow_double_down:"⏬",arrow_double_up:"⏫",arrow_down:"⬇️",arrow_down_small:"🔽",arrow_forward:"▶️",arrow_heading_down:"⤵️",arrow_heading_up:"⤴️",arrow_left:"⬅️",arrow_lower_left:"↙️",arrow_lower_right:"↘️",arrow_right:"➡️",arrow_right_hook:"↪️",arrow_up:"⬆️",arrow_up_down:"↕️",arrow_up_small:"🔼",arrow_upper_left:"↖️",arrow_upper_right:"↗️",arrows_clockwise:"🔃",arrows_counterclockwise:"🔄",art:"🎨",articulated_lorry:"🚛",artificial_satellite:"🛰",astonished:"😲",athletic_shoe:"👟",atm:"🏧",atom_symbol:"⚛️",avocado:"🥑",b:"🅱️",baby:"👶",baby_bottle:"🍼",baby_chick:"🐤",baby_symbol:"🚼",back:"🔙",bacon:"🥓",badminton:"🏸",baggage_claim:"🛄",baguette_bread:"🥖",balance_scale:"⚖️",balloon:"🎈",ballot_box:"🗳",ballot_box_with_check:"☑️",bamboo:"🎍",banana:"🍌",bangbang:"‼️",bank:"🏦",bar_chart:"📊",barber:"💈",baseball:"⚾️",basketball:"🏀",basketball_man:"⛹️",basketball_woman:"⛹️‍♀️",bat:"🦇",bath:"🛀",bathtub:"🛁",battery:"🔋",beach_umbrella:"🏖",bear:"🐻",bed:"🛏",bee:"🐝",beer:"🍺",beers:"🍻",beetle:"🐞",beginner:"🔰",bell:"🔔",bellhop_bell:"🛎",bento:"🍱",biking_man:"🚴",bike:"🚲",biking_woman:"🚴‍♀️",bikini:"👙",biohazard:"☣️",bird:"🐦",birthday:"🎂",black_circle:"⚫️",black_flag:"🏴",black_heart:"🖤",black_joker:"🃏",black_large_square:"⬛️",black_medium_small_square:"◾️",black_medium_square:"◼️",black_nib:"✒️",black_small_square:"▪️",black_square_button:"🔲",blonde_man:"👱",blonde_woman:"👱‍♀️",blossom:"🌼",blowfish:"🐡",blue_book:"📘",blue_car:"🚙",blue_heart:"💙",blush:"😊",boar:"🐗",boat:"⛵️",bomb:"💣",book:"📖",bookmark:"🔖",bookmark_tabs:"📑",books:"📚",boom:"💥",boot:"👢",bouquet:"💐",bowing_man:"🙇",bow_and_arrow:"🏹",bowing_woman:"🙇‍♀️",bowling:"🎳",boxing_glove:"🥊",boy:"👦",bread:"🍞",bride_with_veil:"👰",bridge_at_night:"🌉",briefcase:"💼",broken_heart:"💔",bug:"🐛",building_construction:"🏗",bulb:"💡",bullettrain_front:"🚅",bullettrain_side:"🚄",burrito:"🌯",bus:"🚌",business_suit_levitating:"🕴",busstop:"🚏",bust_in_silhouette:"👤",busts_in_silhouette:"👥",butterfly:"🦋",cactus:"🌵",cake:"🍰",calendar:"📆",call_me_hand:"🤙",calling:"📲",camel:"🐫",camera:"📷",camera_flash:"📸",camping:"🏕",cancer:"♋️",candle:"🕯",candy:"🍬",canoe:"🛶",capital_abcd:"🔠",capricorn:"♑️",car:"🚗",card_file_box:"🗃",card_index:"📇",card_index_dividers:"🗂",carousel_horse:"🎠",carrot:"🥕",cat:"🐱",cat2:"🐈",cd:"💿",chains:"⛓",champagne:"🍾",chart:"💹",chart_with_downwards_trend:"📉",chart_with_upwards_trend:"📈",checkered_flag:"🏁",cheese:"🧀",cherries:"🍒",cherry_blossom:"🌸",chestnut:"🌰",chicken:"🐔",children_crossing:"🚸",chipmunk:"🐿",chocolate_bar:"🍫",christmas_tree:"🎄",church:"⛪️",cinema:"🎦",circus_tent:"🎪",city_sunrise:"🌇",city_sunset:"🌆",cityscape:"🏙",cl:"🆑",clamp:"🗜",clap:"👏",clapper:"🎬",classical_building:"🏛",clinking_glasses:"🥂",clipboard:"📋",clock1:"🕐",clock10:"🕙",clock1030:"🕥",clock11:"🕚",clock1130:"🕦",clock12:"🕛",clock1230:"🕧",clock130:"🕜",clock2:"🕑",clock230:"🕝",clock3:"🕒",clock330:"🕞",clock4:"🕓",clock430:"🕟",clock5:"🕔",clock530:"🕠",clock6:"🕕",clock630:"🕡",clock7:"🕖",clock730:"🕢",clock8:"🕗",clock830:"🕣",clock9:"🕘",clock930:"🕤",closed_book:"📕",closed_lock_with_key:"🔐",closed_umbrella:"🌂",cloud:"☁️",cloud_with_lightning:"🌩",cloud_with_lightning_and_rain:"⛈",cloud_with_rain:"🌧",cloud_with_snow:"🌨",clown_face:"🤡",clubs:"♣️",cocktail:"🍸",coffee:"☕️",coffin:"⚰️",cold_sweat:"😰",comet:"☄️",computer:"💻",computer_mouse:"🖱",confetti_ball:"🎊",confounded:"😖",confused:"😕",congratulations:"㊗️",construction:"🚧",construction_worker_man:"👷",construction_worker_woman:"👷‍♀️",control_knobs:"🎛",convenience_store:"🏪",cookie:"🍪",cool:"🆒",policeman:"👮",copyright:"©️",corn:"🌽",couch_and_lamp:"🛋",couple:"👫",couple_with_heart_woman_man:"💑",couple_with_heart_man_man:"👨‍❤️‍👨",couple_with_heart_woman_woman:"👩‍❤️‍👩",couplekiss_man_man:"👨‍❤️‍💋‍👨",couplekiss_man_woman:"💏",couplekiss_woman_woman:"👩‍❤️‍💋‍👩",cow:"🐮",cow2:"🐄",cowboy_hat_face:"🤠",crab:"🦀",crayon:"🖍",credit_card:"💳",crescent_moon:"🌙",cricket:"🏏",crocodile:"🐊",croissant:"🥐",crossed_fingers:"🤞",crossed_flags:"🎌",crossed_swords:"⚔️",crown:"👑",cry:"😢",crying_cat_face:"😿",crystal_ball:"🔮",cucumber:"🥒",cupid:"💘",curly_loop:"➰",currency_exchange:"💱",curry:"🍛",custard:"🍮",customs:"🛃",cyclone:"🌀",dagger:"🗡",dancer:"💃",dancing_women:"👯",dancing_men:"👯‍♂️",dango:"🍡",dark_sunglasses:"🕶",dart:"🎯",dash:"💨",date:"📅",deciduous_tree:"🌳",deer:"🦌",department_store:"🏬",derelict_house:"🏚",desert:"🏜",desert_island:"🏝",desktop_computer:"🖥",male_detective:"🕵️",diamond_shape_with_a_dot_inside:"💠",diamonds:"♦️",disappointed:"😞",disappointed_relieved:"😥",dizzy:"💫",dizzy_face:"😵",do_not_litter:"🚯",dog:"🐶",dog2:"🐕",dollar:"💵",dolls:"🎎",dolphin:"🐬",door:"🚪",doughnut:"🍩",dove:"🕊",dragon:"🐉",dragon_face:"🐲",dress:"👗",dromedary_camel:"🐪",drooling_face:"🤤",droplet:"💧",drum:"🥁",duck:"🦆",dvd:"📀","e-mail":"📧",eagle:"🦅",ear:"👂",ear_of_rice:"🌾",earth_africa:"🌍",earth_americas:"🌎",earth_asia:"🌏",egg:"🥚",eggplant:"🍆",eight_pointed_black_star:"✴️",eight_spoked_asterisk:"✳️",electric_plug:"🔌",elephant:"🐘",email:"✉️",end:"🔚",envelope_with_arrow:"📩",euro:"💶",european_castle:"🏰",european_post_office:"🏤",evergreen_tree:"🌲",exclamation:"❗️",expressionless:"😑",eye:"👁",eye_speech_bubble:"👁‍🗨",eyeglasses:"👓",eyes:"👀",face_with_head_bandage:"🤕",face_with_thermometer:"🤒",fist_oncoming:"👊",factory:"🏭",fallen_leaf:"🍂",family_man_woman_boy:"👪",family_man_boy:"👨‍👦",family_man_boy_boy:"👨‍👦‍👦",family_man_girl:"👨‍👧",family_man_girl_boy:"👨‍👧‍👦",family_man_girl_girl:"👨‍👧‍👧",family_man_man_boy:"👨‍👨‍👦",family_man_man_boy_boy:"👨‍👨‍👦‍👦",family_man_man_girl:"👨‍👨‍👧",family_man_man_girl_boy:"👨‍👨‍👧‍👦",family_man_man_girl_girl:"👨‍👨‍👧‍👧",family_man_woman_boy_boy:"👨‍👩‍👦‍👦",family_man_woman_girl:"👨‍👩‍👧",family_man_woman_girl_boy:"👨‍👩‍👧‍👦",family_man_woman_girl_girl:"👨‍👩‍👧‍👧",family_woman_boy:"👩‍👦",family_woman_boy_boy:"👩‍👦‍👦",family_woman_girl:"👩‍👧",family_woman_girl_boy:"👩‍👧‍👦",family_woman_girl_girl:"👩‍👧‍👧",family_woman_woman_boy:"👩‍👩‍👦",family_woman_woman_boy_boy:"👩‍👩‍👦‍👦",family_woman_woman_girl:"👩‍👩‍👧",family_woman_woman_girl_boy:"👩‍👩‍👧‍👦",family_woman_woman_girl_girl:"👩‍👩‍👧‍👧",fast_forward:"⏩",fax:"📠",fearful:"😨",feet:"🐾",female_detective:"🕵️‍♀️",ferris_wheel:"🎡",ferry:"⛴",field_hockey:"🏑",file_cabinet:"🗄",file_folder:"📁",film_projector:"📽",film_strip:"🎞",fire:"🔥",fire_engine:"🚒",fireworks:"🎆",first_quarter_moon:"🌓",first_quarter_moon_with_face:"🌛",fish:"🐟",fish_cake:"🍥",fishing_pole_and_fish:"🎣",fist_raised:"✊",fist_left:"🤛",fist_right:"🤜",flags:"🎏",flashlight:"🔦",fleur_de_lis:"⚜️",flight_arrival:"🛬",flight_departure:"🛫",floppy_disk:"💾",flower_playing_cards:"🎴",flushed:"😳",fog:"🌫",foggy:"🌁",football:"🏈",footprints:"👣",fork_and_knife:"🍴",fountain:"⛲️",fountain_pen:"🖋",four_leaf_clover:"🍀",fox_face:"🦊",framed_picture:"🖼",free:"🆓",fried_egg:"🍳",fried_shrimp:"🍤",fries:"🍟",frog:"🐸",frowning:"😦",frowning_face:"☹️",frowning_man:"🙍‍♂️",frowning_woman:"🙍",middle_finger:"🖕",fuelpump:"⛽️",full_moon:"🌕",full_moon_with_face:"🌝",funeral_urn:"⚱️",game_die:"🎲",gear:"⚙️",gem:"💎",gemini:"♊️",ghost:"👻",gift:"🎁",gift_heart:"💝",girl:"👧",globe_with_meridians:"🌐",goal_net:"🥅",goat:"🐐",golf:"⛳️",golfing_man:"🏌️",golfing_woman:"🏌️‍♀️",gorilla:"🦍",grapes:"🍇",green_apple:"🍏",green_book:"📗",green_heart:"💚",green_salad:"🥗",grey_exclamation:"❕",grey_question:"❔",grimacing:"😬",grin:"😁",grinning:"😀",guardsman:"💂",guardswoman:"💂‍♀️",guitar:"🎸",gun:"🔫",haircut_woman:"💇",haircut_man:"💇‍♂️",hamburger:"🍔",hammer:"🔨",hammer_and_pick:"⚒",hammer_and_wrench:"🛠",hamster:"🐹",hand:"✋",handbag:"👜",handshake:"🤝",hankey:"💩",hatched_chick:"🐥",hatching_chick:"🐣",headphones:"🎧",hear_no_evil:"🙉",heart:"❤️",heart_decoration:"💟",heart_eyes:"😍",heart_eyes_cat:"😻",heartbeat:"💓",heartpulse:"💗",hearts:"♥️",heavy_check_mark:"✔️",heavy_division_sign:"➗",heavy_dollar_sign:"💲",heavy_heart_exclamation:"❣️",heavy_minus_sign:"➖",heavy_multiplication_x:"✖️",heavy_plus_sign:"➕",helicopter:"🚁",herb:"🌿",hibiscus:"🌺",high_brightness:"🔆",high_heel:"👠",hocho:"🔪",hole:"🕳",honey_pot:"🍯",horse:"🐴",horse_racing:"🏇",hospital:"🏥",hot_pepper:"🌶",hotdog:"🌭",hotel:"🏨",hotsprings:"♨️",hourglass:"⌛️",hourglass_flowing_sand:"⏳",house:"🏠",house_with_garden:"🏡",houses:"🏘",hugs:"🤗",hushed:"😯",ice_cream:"🍨",ice_hockey:"🏒",ice_skate:"⛸",icecream:"🍦",id:"🆔",ideograph_advantage:"🉐",imp:"👿",inbox_tray:"📥",incoming_envelope:"📨",tipping_hand_woman:"💁",information_source:"ℹ️",innocent:"😇",interrobang:"⁉️",iphone:"📱",izakaya_lantern:"🏮",jack_o_lantern:"🎃",japan:"🗾",japanese_castle:"🏯",japanese_goblin:"👺",japanese_ogre:"👹",jeans:"👖",joy:"😂",joy_cat:"😹",joystick:"🕹",kaaba:"🕋",key:"🔑",keyboard:"⌨️",keycap_ten:"🔟",kick_scooter:"🛴",kimono:"👘",kiss:"💋",kissing:"😗",kissing_cat:"😽",kissing_closed_eyes:"😚",kissing_heart:"😘",kissing_smiling_eyes:"😙",kiwi_fruit:"🥝",koala:"🐨",koko:"🈁",label:"🏷",large_blue_circle:"🔵",large_blue_diamond:"🔷",large_orange_diamond:"🔶",last_quarter_moon:"🌗",last_quarter_moon_with_face:"🌜",latin_cross:"✝️",laughing:"😆",leaves:"🍃",ledger:"📒",left_luggage:"🛅",left_right_arrow:"↔️",leftwards_arrow_with_hook:"↩️",lemon:"🍋",leo:"♌️",leopard:"🐆",level_slider:"🎚",libra:"♎️",light_rail:"🚈",link:"🔗",lion:"🦁",lips:"👄",lipstick:"💄",lizard:"🦎",lock:"🔒",lock_with_ink_pen:"🔏",lollipop:"🍭",loop:"➿",loud_sound:"🔊",loudspeaker:"📢",love_hotel:"🏩",love_letter:"💌",low_brightness:"🔅",lying_face:"🤥",m:"Ⓜ️",mag:"🔍",mag_right:"🔎",mahjong:"🀄️",mailbox:"📫",mailbox_closed:"📪",mailbox_with_mail:"📬",mailbox_with_no_mail:"📭",man:"👨",man_artist:"👨‍🎨",man_astronaut:"👨‍🚀",man_cartwheeling:"🤸‍♂️",man_cook:"👨‍🍳",man_dancing:"🕺",man_facepalming:"🤦‍♂️",man_factory_worker:"👨‍🏭",man_farmer:"👨‍🌾",man_firefighter:"👨‍🚒",man_health_worker:"👨‍⚕️",man_in_tuxedo:"🤵",man_judge:"👨‍⚖️",man_juggling:"🤹‍♂️",man_mechanic:"👨‍🔧",man_office_worker:"👨‍💼",man_pilot:"👨‍✈️",man_playing_handball:"🤾‍♂️",man_playing_water_polo:"🤽‍♂️",man_scientist:"👨‍🔬",man_shrugging:"🤷‍♂️",man_singer:"👨‍🎤",man_student:"👨‍🎓",man_teacher:"👨‍🏫",man_technologist:"👨‍💻",man_with_gua_pi_mao:"👲",man_with_turban:"👳",tangerine:"🍊",mans_shoe:"👞",mantelpiece_clock:"🕰",maple_leaf:"🍁",martial_arts_uniform:"🥋",mask:"😷",massage_woman:"💆",massage_man:"💆‍♂️",meat_on_bone:"🍖",medal_military:"🎖",medal_sports:"🏅",mega:"📣",melon:"🍈",memo:"📝",men_wrestling:"🤼‍♂️",menorah:"🕎",mens:"🚹",metal:"🤘",metro:"🚇",microphone:"🎤",microscope:"🔬",milk_glass:"🥛",milky_way:"🌌",minibus:"🚐",minidisc:"💽",mobile_phone_off:"📴",money_mouth_face:"🤑",money_with_wings:"💸",moneybag:"💰",monkey:"🐒",monkey_face:"🐵",monorail:"🚝",moon:"🌔",mortar_board:"🎓",mosque:"🕌",motor_boat:"🛥",motor_scooter:"🛵",motorcycle:"🏍",motorway:"🛣",mount_fuji:"🗻",mountain:"⛰",mountain_biking_man:"🚵",mountain_biking_woman:"🚵‍♀️",mountain_cableway:"🚠",mountain_railway:"🚞",mountain_snow:"🏔",mouse:"🐭",mouse2:"🐁",movie_camera:"🎥",moyai:"🗿",mrs_claus:"🤶",muscle:"💪",mushroom:"🍄",musical_keyboard:"🎹",musical_note:"🎵",musical_score:"🎼",mute:"🔇",nail_care:"💅",name_badge:"📛",national_park:"🏞",nauseated_face:"🤢",necktie:"👔",negative_squared_cross_mark:"❎",nerd_face:"🤓",neutral_face:"😐",new:"🆕",new_moon:"🌑",new_moon_with_face:"🌚",newspaper:"📰",newspaper_roll:"🗞",next_track_button:"⏭",ng:"🆖",no_good_man:"🙅‍♂️",no_good_woman:"🙅",night_with_stars:"🌃",no_bell:"🔕",no_bicycles:"🚳",no_entry:"⛔️",no_entry_sign:"🚫",no_mobile_phones:"📵",no_mouth:"😶",no_pedestrians:"🚷",no_smoking:"🚭","non-potable_water":"🚱",nose:"👃",notebook:"📓",notebook_with_decorative_cover:"📔",notes:"🎶",nut_and_bolt:"🔩",o:"⭕️",o2:"🅾️",ocean:"🌊",octopus:"🐙",oden:"🍢",office:"🏢",oil_drum:"🛢",ok:"🆗",ok_hand:"👌",ok_man:"🙆‍♂️",ok_woman:"🙆",old_key:"🗝",older_man:"👴",older_woman:"👵",om:"🕉",on:"🔛",oncoming_automobile:"🚘",oncoming_bus:"🚍",oncoming_police_car:"🚔",oncoming_taxi:"🚖",open_file_folder:"📂",open_hands:"👐",open_mouth:"😮",open_umbrella:"☂️",ophiuchus:"⛎",orange_book:"📙",orthodox_cross:"☦️",outbox_tray:"📤",owl:"🦉",ox:"🐂",package:"📦",page_facing_up:"📄",page_with_curl:"📃",pager:"📟",paintbrush:"🖌",palm_tree:"🌴",pancakes:"🥞",panda_face:"🐼",paperclip:"📎",paperclips:"🖇",parasol_on_ground:"⛱",parking:"🅿️",part_alternation_mark:"〽️",partly_sunny:"⛅️",passenger_ship:"🛳",passport_control:"🛂",pause_button:"⏸",peace_symbol:"☮️",peach:"🍑",peanuts:"🥜",pear:"🍐",pen:"🖊",pencil2:"✏️",penguin:"🐧",pensive:"😔",performing_arts:"🎭",persevere:"😣",person_fencing:"🤺",pouting_woman:"🙎",phone:"☎️",pick:"⛏",pig:"🐷",pig2:"🐖",pig_nose:"🐽",pill:"💊",pineapple:"🍍",ping_pong:"🏓",pisces:"♓️",pizza:"🍕",place_of_worship:"🛐",plate_with_cutlery:"🍽",play_or_pause_button:"⏯",point_down:"👇",point_left:"👈",point_right:"👉",point_up:"☝️",point_up_2:"👆",police_car:"🚓",policewoman:"👮‍♀️",poodle:"🐩",popcorn:"🍿",post_office:"🏣",postal_horn:"📯",postbox:"📮",potable_water:"🚰",potato:"🥔",pouch:"👝",poultry_leg:"🍗",pound:"💷",rage:"😡",pouting_cat:"😾",pouting_man:"🙎‍♂️",pray:"🙏",prayer_beads:"📿",pregnant_woman:"🤰",previous_track_button:"⏮",prince:"🤴",princess:"👸",printer:"🖨",purple_heart:"💜",purse:"👛",pushpin:"📌",put_litter_in_its_place:"🚮",question:"❓",rabbit:"🐰",rabbit2:"🐇",racehorse:"🐎",racing_car:"🏎",radio:"📻",radio_button:"🔘",radioactive:"☢️",railway_car:"🚃",railway_track:"🛤",rainbow:"🌈",rainbow_flag:"🏳️‍🌈",raised_back_of_hand:"🤚",raised_hand_with_fingers_splayed:"🖐",raised_hands:"🙌",raising_hand_woman:"🙋",raising_hand_man:"🙋‍♂️",ram:"🐏",ramen:"🍜",rat:"🐀",record_button:"⏺",recycle:"♻️",red_circle:"🔴",registered:"®️",relaxed:"☺️",relieved:"😌",reminder_ribbon:"🎗",repeat:"🔁",repeat_one:"🔂",rescue_worker_helmet:"⛑",restroom:"🚻",revolving_hearts:"💞",rewind:"⏪",rhinoceros:"🦏",ribbon:"🎀",rice:"🍚",rice_ball:"🍙",rice_cracker:"🍘",rice_scene:"🎑",right_anger_bubble:"🗯",ring:"💍",robot:"🤖",rocket:"🚀",rofl:"🤣",roll_eyes:"🙄",roller_coaster:"🎢",rooster:"🐓",rose:"🌹",rosette:"🏵",rotating_light:"🚨",round_pushpin:"📍",rowing_man:"🚣",rowing_woman:"🚣‍♀️",rugby_football:"🏉",running_man:"🏃",running_shirt_with_sash:"🎽",running_woman:"🏃‍♀️",sa:"🈂️",sagittarius:"♐️",sake:"🍶",sandal:"👡",santa:"🎅",satellite:"📡",saxophone:"🎷",school:"🏫",school_satchel:"🎒",scissors:"✂️",scorpion:"🦂",scorpius:"♏️",scream:"😱",scream_cat:"🙀",scroll:"📜",seat:"💺",secret:"㊙️",see_no_evil:"🙈",seedling:"🌱",selfie:"🤳",shallow_pan_of_food:"🥘",shamrock:"☘️",shark:"🦈",shaved_ice:"🍧",sheep:"🐑",shell:"🐚",shield:"🛡",shinto_shrine:"⛩",ship:"🚢",shirt:"👕",shopping:"🛍",shopping_cart:"🛒",shower:"🚿",shrimp:"🦐",signal_strength:"📶",six_pointed_star:"🔯",ski:"🎿",skier:"⛷",skull:"💀",skull_and_crossbones:"☠️",sleeping:"😴",sleeping_bed:"🛌",sleepy:"😪",slightly_frowning_face:"🙁",slightly_smiling_face:"🙂",slot_machine:"🎰",small_airplane:"🛩",small_blue_diamond:"🔹",small_orange_diamond:"🔸",small_red_triangle:"🔺",small_red_triangle_down:"🔻",smile:"😄",smile_cat:"😸",smiley:"😃",smiley_cat:"😺",smiling_imp:"😈",smirk:"😏",smirk_cat:"😼",smoking:"🚬",snail:"🐌",snake:"🐍",sneezing_face:"🤧",snowboarder:"🏂",snowflake:"❄️",snowman:"⛄️",snowman_with_snow:"☃️",sob:"😭",soccer:"⚽️",soon:"🔜",sos:"🆘",sound:"🔉",space_invader:"👾",spades:"♠️",spaghetti:"🍝",sparkle:"❇️",sparkler:"🎇",sparkles:"✨",sparkling_heart:"💖",speak_no_evil:"🙊",speaker:"🔈",speaking_head:"🗣",speech_balloon:"💬",speedboat:"🚤",spider:"🕷",spider_web:"🕸",spiral_calendar:"🗓",spiral_notepad:"🗒",spoon:"🥄",squid:"🦑",stadium:"🏟",star:"⭐️",star2:"🌟",star_and_crescent:"☪️",star_of_david:"✡️",stars:"🌠",station:"🚉",statue_of_liberty:"🗽",steam_locomotive:"🚂",stew:"🍲",stop_button:"⏹",stop_sign:"🛑",stopwatch:"⏱",straight_ruler:"📏",strawberry:"🍓",stuck_out_tongue:"😛",stuck_out_tongue_closed_eyes:"😝",stuck_out_tongue_winking_eye:"😜",studio_microphone:"🎙",stuffed_flatbread:"🥙",sun_behind_large_cloud:"🌥",sun_behind_rain_cloud:"🌦",sun_behind_small_cloud:"🌤",sun_with_face:"🌞",sunflower:"🌻",sunglasses:"😎",sunny:"☀️",sunrise:"🌅",sunrise_over_mountains:"🌄",surfing_man:"🏄",surfing_woman:"🏄‍♀️",sushi:"🍣",suspension_railway:"🚟",sweat:"😓",sweat_drops:"💦",sweat_smile:"😅",sweet_potato:"🍠",swimming_man:"🏊",swimming_woman:"🏊‍♀️",symbols:"🔣",synagogue:"🕍",syringe:"💉",taco:"🌮",tada:"🎉",tanabata_tree:"🎋",taurus:"♉️",taxi:"🚕",tea:"🍵",telephone_receiver:"📞",telescope:"🔭",tennis:"🎾",tent:"⛺️",thermometer:"🌡",thinking:"🤔",thought_balloon:"💭",ticket:"🎫",tickets:"🎟",tiger:"🐯",tiger2:"🐅",timer_clock:"⏲",tipping_hand_man:"💁‍♂️",tired_face:"😫",tm:"™️",toilet:"🚽",tokyo_tower:"🗼",tomato:"🍅",tongue:"👅",top:"🔝",tophat:"🎩",tornado:"🌪",trackball:"🖲",tractor:"🚜",traffic_light:"🚥",train:"🚋",train2:"🚆",tram:"🚊",triangular_flag_on_post:"🚩",triangular_ruler:"📐",trident:"🔱",triumph:"😤",trolleybus:"🚎",trophy:"🏆",tropical_drink:"🍹",tropical_fish:"🐠",truck:"🚚",trumpet:"🎺",tulip:"🌷",tumbler_glass:"🥃",turkey:"🦃",turtle:"🐢",tv:"📺",twisted_rightwards_arrows:"🔀",two_hearts:"💕",two_men_holding_hands:"👬",two_women_holding_hands:"👭",u5272:"🈹",u5408:"🈴",u55b6:"🈺",u6307:"🈯️",u6708:"🈷️",u6709:"🈶",u6e80:"🈵",u7121:"🈚️",u7533:"🈸",u7981:"🈲",u7a7a:"🈳",umbrella:"☔️",unamused:"😒",underage:"🔞",unicorn:"🦄",unlock:"🔓",up:"🆙",upside_down_face:"🙃",v:"✌️",vertical_traffic_light:"🚦",vhs:"📼",vibration_mode:"📳",video_camera:"📹",video_game:"🎮",violin:"🎻",virgo:"♍️",volcano:"🌋",volleyball:"🏐",vs:"🆚",vulcan_salute:"🖖",walking_man:"🚶",walking_woman:"🚶‍♀️",waning_crescent_moon:"🌘",waning_gibbous_moon:"🌖",warning:"⚠️",wastebasket:"🗑",watch:"⌚️",water_buffalo:"🐃",watermelon:"🍉",wave:"👋",wavy_dash:"〰️",waxing_crescent_moon:"🌒",wc:"🚾",weary:"😩",wedding:"💒",weight_lifting_man:"🏋️",weight_lifting_woman:"🏋️‍♀️",whale:"🐳",whale2:"🐋",wheel_of_dharma:"☸️",wheelchair:"♿️",white_check_mark:"✅",white_circle:"⚪️",white_flag:"🏳️",white_flower:"💮",white_large_square:"⬜️",white_medium_small_square:"◽️",white_medium_square:"◻️",white_small_square:"▫️",white_square_button:"🔳",wilted_flower:"🥀",wind_chime:"🎐",wind_face:"🌬",wine_glass:"🍷",wink:"😉",wolf:"🐺",woman:"👩",woman_artist:"👩‍🎨",woman_astronaut:"👩‍🚀",woman_cartwheeling:"🤸‍♀️",woman_cook:"👩‍🍳",woman_facepalming:"🤦‍♀️",woman_factory_worker:"👩‍🏭",woman_farmer:"👩‍🌾",woman_firefighter:"👩‍🚒",woman_health_worker:"👩‍⚕️",woman_judge:"👩‍⚖️",woman_juggling:"🤹‍♀️",woman_mechanic:"👩‍🔧",woman_office_worker:"👩‍💼",woman_pilot:"👩‍✈️",woman_playing_handball:"🤾‍♀️",woman_playing_water_polo:"🤽‍♀️",woman_scientist:"👩‍🔬",woman_shrugging:"🤷‍♀️",woman_singer:"👩‍🎤",woman_student:"👩‍🎓",woman_teacher:"👩‍🏫",woman_technologist:"👩‍💻",woman_with_turban:"👳‍♀️",womans_clothes:"👚",womans_hat:"👒",women_wrestling:"🤼‍♀️",womens:"🚺",world_map:"🗺",worried:"😟",wrench:"🔧",writing_hand:"✍️",x:"❌",yellow_heart:"💛",yen:"💴",yin_yang:"☯️",yum:"😋",zap:"⚡️",zipper_mouth_face:"🤐",zzz:"💤",octocat:':octocat:',showdown:"S"},o.Converter=function(e){"use strict";var t={},r=[],n=[],a={},i=u,d={parsed:{},raw:"",format:""};function p(e,t){if(t=t||null,o.helper.isString(e)){if(t=e=o.helper.stdExtName(e),o.extensions[e])return console.warn("DEPRECATION WARNING: "+e+" is an old extension that uses a deprecated loading method.Please inform the developer that the extension should be updated!"),void function(e,t){"function"==typeof e&&(e=e(new o.Converter));o.helper.isArray(e)||(e=[e]);var a=f(e,t);if(!a.valid)throw Error(a.error);for(var i=0;i[ \t]+¨NBSP;<"),!t){if(!window||!window.document)throw new Error("HTMLParser is undefined. If in a webworker or nodejs environment, you need to provide a WHATWG DOM and HTML such as JSDOM");t=window.document}var r=t.createElement("div");r.innerHTML=e;var n={preList:function(e){for(var t=e.querySelectorAll("pre"),r=[],n=0;n'}else r.push(t[n].innerHTML),t[n].innerHTML="",t[n].setAttribute("prenum",n.toString());return r}(r)};!function e(t){for(var r=0;r? ?(['"].*['"])?\)$/m)>-1)i="";else if(!i){if(a||(a=n.toLowerCase().replace(/ ?\n/g," ")),i="#"+a,o.helper.isUndefined(r.gUrls[a]))return e;i=r.gUrls[a],o.helper.isUndefined(r.gTitles[a])||(u=r.gTitles[a])}var l='"};return e=(e=(e=(e=(e=r.converter._dispatch("anchors.before",e,t,r)).replace(/\[((?:\[[^\]]*]|[^\[\]])*)] ?(?:\n *)?\[(.*?)]()()()()/g,n)).replace(/\[((?:\[[^\]]*]|[^\[\]])*)]()[ \t]*\([ \t]?<([^>]*)>(?:[ \t]*((["'])([^"]*?)\5))?[ \t]?\)/g,n)).replace(/\[((?:\[[^\]]*]|[^\[\]])*)]()[ \t]*\([ \t]??(?:[ \t]*((["'])([^"]*?)\5))?[ \t]?\)/g,n)).replace(/\[([^\[\]]+)]()()()()()/g,n),t.ghMentions&&(e=e.replace(/(^|\s)(\\)?(@([a-z\d]+(?:[a-z\d.-]+?[a-z\d]+)*))/gim,(function(e,r,n,a,i){if("\\"===n)return r+a;if(!o.helper.isString(t.ghMentionsLink))throw new Error("ghMentionsLink option must be a string");var s=t.ghMentionsLink.replace(/\{u}/g,i),c="";return t.openLinksInNewWindow&&(c=' rel="noopener noreferrer" target="¨E95Eblank"'),r+'"+a+""}))),e=r.converter._dispatch("anchors.after",e,t,r)}));var h=/([*~_]+|\b)(((https?|ftp|dict):\/\/|www\.)[^'">\s]+?\.[^'">\s]+?)()(\1)?(?=\s|$)(?!["<>])/gi,g=/([*~_]+|\b)(((https?|ftp|dict):\/\/|www\.)[^'">\s]+\.[^'">\s]+?)([.!?,()\[\]])?(\1)?(?=\s|$)(?!["<>])/gi,b=/()<(((https?|ftp|dict):\/\/|www\.)[^'">\s]+)()>()/gi,m=/(^|\s)(?:mailto:)?([A-Za-z0-9!#$%&'*+-/=?^_`{|}~.]+@[-a-z0-9]+(\.[-a-z0-9]+)*\.[a-z]+)(?=$|\s)/gim,_=/<()(?:mailto:)?([-.\w]+@[-a-z0-9]+(\.[-a-z0-9]+)*\.[a-z]+)>/gi,v=function(e){"use strict";return function(t,r,n,a,i,s,c){var u=n=n.replace(o.helper.regexes.asteriskDashAndColon,o.helper.escapeCharactersCallback),l="",f="",d=r||"",p=c||"";return/^www\./i.test(n)&&(n=n.replace(/^www\./i,"http://www.")),e.excludeTrailingPunctuationFromURLs&&s&&(l=s),e.openLinksInNewWindow&&(f=' rel="noopener noreferrer" target="¨E95Eblank"'),d+'"+u+""+l+p}},w=function(e,t){"use strict";return function(r,n,a){var i="mailto:";return n=n||"",a=o.subParser("unescapeSpecialChars")(a,e,t),e.encodeEmails?(i=o.helper.encodeEmailAddress(i+a),a=o.helper.encodeEmailAddress(a)):i+=a,n+''+a+""}};o.subParser("autoLinks",(function(e,t,r){"use strict";return e=(e=(e=r.converter._dispatch("autoLinks.before",e,t,r)).replace(b,v(t))).replace(_,w(t,r)),e=r.converter._dispatch("autoLinks.after",e,t,r)})),o.subParser("simplifiedAutoLinks",(function(e,t,r){"use strict";return t.simplifiedAutoLink?(e=r.converter._dispatch("simplifiedAutoLinks.before",e,t,r),e=(e=t.excludeTrailingPunctuationFromURLs?e.replace(g,v(t)):e.replace(h,v(t))).replace(m,w(t,r)),e=r.converter._dispatch("simplifiedAutoLinks.after",e,t,r)):e})),o.subParser("blockGamut",(function(e,t,r){"use strict";return e=r.converter._dispatch("blockGamut.before",e,t,r),e=o.subParser("blockQuotes")(e,t,r),e=o.subParser("headers")(e,t,r),e=o.subParser("horizontalRule")(e,t,r),e=o.subParser("lists")(e,t,r),e=o.subParser("codeBlocks")(e,t,r),e=o.subParser("tables")(e,t,r),e=o.subParser("hashHTMLBlocks")(e,t,r),e=o.subParser("paragraphs")(e,t,r),e=r.converter._dispatch("blockGamut.after",e,t,r)})),o.subParser("blockQuotes",(function(e,t,r){"use strict";e=r.converter._dispatch("blockQuotes.before",e,t,r),e+="\n\n";var n=/(^ {0,3}>[ \t]?.+\n(.+\n)*\n*)+/gm;return t.splitAdjacentBlockquotes&&(n=/^ {0,3}>[\s\S]*?(?:\n\n)/gm),e=e.replace(n,(function(e){return e=(e=(e=e.replace(/^[ \t]*>[ \t]?/gm,"")).replace(/¨0/g,"")).replace(/^[ \t]+$/gm,""),e=o.subParser("githubCodeBlocks")(e,t,r),e=(e=(e=o.subParser("blockGamut")(e,t,r)).replace(/(^|\n)/g,"$1 ")).replace(/(\s*
    [^\r]+?<\/pre>)/gm,(function(e,t){var r=t;return r=(r=r.replace(/^  /gm,"¨0")).replace(/¨0/g,"")})),o.subParser("hashBlock")("
    \n"+e+"\n
    ",t,r)})),e=r.converter._dispatch("blockQuotes.after",e,t,r)})),o.subParser("codeBlocks",(function(e,t,r){"use strict";e=r.converter._dispatch("codeBlocks.before",e,t,r);return e=(e=(e+="¨0").replace(/(?:\n\n|^)((?:(?:[ ]{4}|\t).*\n+)+)(\n*[ ]{0,3}[^ \t\n]|(?=¨0))/g,(function(e,n,a){var i=n,s=a,c="\n";return i=o.subParser("outdent")(i,t,r),i=o.subParser("encodeCode")(i,t,r),i=(i=(i=o.subParser("detab")(i,t,r)).replace(/^\n+/g,"")).replace(/\n+$/g,""),t.omitExtraWLInCodeBlocks&&(c=""),i="
    "+i+c+"
    ",o.subParser("hashBlock")(i,t,r)+s}))).replace(/¨0/,""),e=r.converter._dispatch("codeBlocks.after",e,t,r)})),o.subParser("codeSpans",(function(e,t,r){"use strict";return void 0===(e=r.converter._dispatch("codeSpans.before",e,t,r))&&(e=""),e=e.replace(/(^|[^\\])(`+)([^\r]*?[^`])\2(?!`)/gm,(function(e,n,a,i){var s=i;return s=(s=s.replace(/^([ \t]*)/g,"")).replace(/[ \t]*$/g,""),s=n+""+(s=o.subParser("encodeCode")(s,t,r))+"",s=o.subParser("hashHTMLSpans")(s,t,r)})),e=r.converter._dispatch("codeSpans.after",e,t,r)})),o.subParser("completeHTMLDocument",(function(e,t,r){"use strict";if(!t.completeHTMLDocument)return e;e=r.converter._dispatch("completeHTMLDocument.before",e,t,r);var n="html",a="\n",o="",i='\n',s="",c="";for(var u in void 0!==r.metadata.parsed.doctype&&(a="\n","html"!==(n=r.metadata.parsed.doctype.toString().toLowerCase())&&"html5"!==n||(i='')),r.metadata.parsed)if(r.metadata.parsed.hasOwnProperty(u))switch(u.toLowerCase()){case"doctype":break;case"title":o=""+r.metadata.parsed.title+"\n";break;case"charset":i="html"===n||"html5"===n?'\n':'\n';break;case"language":case"lang":s=' lang="'+r.metadata.parsed[u]+'"',c+='\n';break;default:c+='\n'}return e=a+"\n\n"+o+i+c+"\n\n"+e.trim()+"\n\n",e=r.converter._dispatch("completeHTMLDocument.after",e,t,r)})),o.subParser("detab",(function(e,t,r){"use strict";return e=(e=(e=(e=(e=(e=r.converter._dispatch("detab.before",e,t,r)).replace(/\t(?=\t)/g," ")).replace(/\t/g,"¨A¨B")).replace(/¨B(.+?)¨A/g,(function(e,t){for(var r=t,n=4-r.length%4,a=0;a/g,">"),e=r.converter._dispatch("encodeAmpsAndAngles.after",e,t,r)})),o.subParser("encodeBackslashEscapes",(function(e,t,r){"use strict";return e=(e=(e=r.converter._dispatch("encodeBackslashEscapes.before",e,t,r)).replace(/\\(\\)/g,o.helper.escapeCharactersCallback)).replace(/\\([`*_{}\[\]()>#+.!~=|-])/g,o.helper.escapeCharactersCallback),e=r.converter._dispatch("encodeBackslashEscapes.after",e,t,r)})),o.subParser("encodeCode",(function(e,t,r){"use strict";return e=(e=r.converter._dispatch("encodeCode.before",e,t,r)).replace(/&/g,"&").replace(//g,">").replace(/([*_{}\[\]\\=~-])/g,o.helper.escapeCharactersCallback),e=r.converter._dispatch("encodeCode.after",e,t,r)})),o.subParser("escapeSpecialCharsWithinTagAttributes",(function(e,t,r){"use strict";return e=(e=(e=r.converter._dispatch("escapeSpecialCharsWithinTagAttributes.before",e,t,r)).replace(/<\/?[a-z\d_:-]+(?:[\s]+[\s\S]+?)?>/gi,(function(e){return e.replace(/(.)<\/?code>(?=.)/g,"$1`").replace(/([\\`*_~=|])/g,o.helper.escapeCharactersCallback)}))).replace(/-]|-[^>])(?:[^-]|-[^-])*)--)>/gi,(function(e){return e.replace(/([\\`*_~=|])/g,o.helper.escapeCharactersCallback)})),e=r.converter._dispatch("escapeSpecialCharsWithinTagAttributes.after",e,t,r)})),o.subParser("githubCodeBlocks",(function(e,t,r){"use strict";return t.ghCodeBlocks?(e=r.converter._dispatch("githubCodeBlocks.before",e,t,r),e=(e=(e+="¨0").replace(/(?:^|\n)(?: {0,3})(```+|~~~+)(?: *)([^\s`~]*)\n([\s\S]*?)\n(?: {0,3})\1/g,(function(e,n,a,i){var s=t.omitExtraWLInCodeBlocks?"":"\n";return i=o.subParser("encodeCode")(i,t,r),i="
    "+(i=(i=(i=o.subParser("detab")(i,t,r)).replace(/^\n+/g,"")).replace(/\n+$/g,""))+s+"
    ",i=o.subParser("hashBlock")(i,t,r),"\n\n¨G"+(r.ghCodeBlocks.push({text:e,codeblock:i})-1)+"G\n\n"}))).replace(/¨0/,""),r.converter._dispatch("githubCodeBlocks.after",e,t,r)):e})),o.subParser("hashBlock",(function(e,t,r){"use strict";return e=(e=r.converter._dispatch("hashBlock.before",e,t,r)).replace(/(^\n+|\n+$)/g,""),e="\n\n¨K"+(r.gHtmlBlocks.push(e)-1)+"K\n\n",e=r.converter._dispatch("hashBlock.after",e,t,r)})),o.subParser("hashCodeTags",(function(e,t,r){"use strict";e=r.converter._dispatch("hashCodeTags.before",e,t,r);return e=o.helper.replaceRecursiveRegExp(e,(function(e,n,a,i){var s=a+o.subParser("encodeCode")(n,t,r)+i;return"¨C"+(r.gHtmlSpans.push(s)-1)+"C"}),"]*>","","gim"),e=r.converter._dispatch("hashCodeTags.after",e,t,r)})),o.subParser("hashElement",(function(e,t,r){"use strict";return function(e,t){var n=t;return n=(n=(n=n.replace(/\n\n/g,"\n")).replace(/^\n/,"")).replace(/\n+$/g,""),n="\n\n¨K"+(r.gHtmlBlocks.push(n)-1)+"K\n\n"}})),o.subParser("hashHTMLBlocks",(function(e,t,r){"use strict";e=r.converter._dispatch("hashHTMLBlocks.before",e,t,r);var n=["pre","div","h1","h2","h3","h4","h5","h6","blockquote","table","dl","ol","ul","script","noscript","form","fieldset","iframe","math","style","section","header","footer","nav","article","aside","address","audio","canvas","figure","hgroup","output","video","p"],a=function(e,t,n,a){var o=e;return-1!==n.search(/\bmarkdown\b/)&&(o=n+r.converter.makeHtml(t)+a),"\n\n¨K"+(r.gHtmlBlocks.push(o)-1)+"K\n\n"};t.backslashEscapesHTMLTags&&(e=e.replace(/\\<(\/?[^>]+?)>/g,(function(e,t){return"<"+t+">"})));for(var i=0;i]*>)","im"),u="<"+n[i]+"\\b[^>]*>",l="";-1!==(s=o.helper.regexIndexOf(e,c));){var f=o.helper.splitAtIndex(e,s),d=o.helper.replaceRecursiveRegExp(f[1],a,u,l,"im");if(d===f[1])break;e=f[0].concat(d)}return e=e.replace(/(\n {0,3}(<(hr)\b([^<>])*?\/?>)[ \t]*(?=\n{2,}))/g,o.subParser("hashElement")(e,t,r)),e=(e=o.helper.replaceRecursiveRegExp(e,(function(e){return"\n\n¨K"+(r.gHtmlBlocks.push(e)-1)+"K\n\n"}),"^ {0,3}\x3c!--","--\x3e","gm")).replace(/(?:\n\n)( {0,3}(?:<([?%])[^\r]*?\2>)[ \t]*(?=\n{2,}))/g,o.subParser("hashElement")(e,t,r)),e=r.converter._dispatch("hashHTMLBlocks.after",e,t,r)})),o.subParser("hashHTMLSpans",(function(e,t,r){"use strict";function n(e){return"¨C"+(r.gHtmlSpans.push(e)-1)+"C"}return e=(e=(e=(e=(e=r.converter._dispatch("hashHTMLSpans.before",e,t,r)).replace(/<[^>]+?\/>/gi,(function(e){return n(e)}))).replace(/<([^>]+?)>[\s\S]*?<\/\1>/g,(function(e){return n(e)}))).replace(/<([^>]+?)\s[^>]+?>[\s\S]*?<\/\1>/g,(function(e){return n(e)}))).replace(/<[^>]+?>/gi,(function(e){return n(e)})),e=r.converter._dispatch("hashHTMLSpans.after",e,t,r)})),o.subParser("unhashHTMLSpans",(function(e,t,r){"use strict";e=r.converter._dispatch("unhashHTMLSpans.before",e,t,r);for(var n=0;n]*>\\s*]*>","^ {0,3}\\s*
    ","gim"),e=r.converter._dispatch("hashPreCodeTags.after",e,t,r)})),o.subParser("headers",(function(e,t,r){"use strict";e=r.converter._dispatch("headers.before",e,t,r);var n=isNaN(parseInt(t.headerLevelStart))?1:parseInt(t.headerLevelStart),a=t.smoothLivePreview?/^(.+)[ \t]*\n={2,}[ \t]*\n+/gm:/^(.+)[ \t]*\n=+[ \t]*\n+/gm,i=t.smoothLivePreview?/^(.+)[ \t]*\n-{2,}[ \t]*\n+/gm:/^(.+)[ \t]*\n-+[ \t]*\n+/gm;e=(e=e.replace(a,(function(e,a){var i=o.subParser("spanGamut")(a,t,r),s=t.noHeaderId?"":' id="'+c(a)+'"',u=""+i+"";return o.subParser("hashBlock")(u,t,r)}))).replace(i,(function(e,a){var i=o.subParser("spanGamut")(a,t,r),s=t.noHeaderId?"":' id="'+c(a)+'"',u=n+1,l=""+i+"";return o.subParser("hashBlock")(l,t,r)}));var s=t.requireSpaceBeforeHeadingText?/^(#{1,6})[ \t]+(.+?)[ \t]*#*\n+/gm:/^(#{1,6})[ \t]*(.+?)[ \t]*#*\n+/gm;function c(e){var n,a;if(t.customizedHeaderId){var i=e.match(/\{([^{]+?)}\s*$/);i&&i[1]&&(e=i[1])}return n=e,a=o.helper.isString(t.prefixHeaderId)?t.prefixHeaderId:!0===t.prefixHeaderId?"section-":"",t.rawPrefixHeaderId||(n=a+n),n=t.ghCompatibleHeaderId?n.replace(/ /g,"-").replace(/&/g,"").replace(/¨T/g,"").replace(/¨D/g,"").replace(/[&+$,\/:;=?@"#{}|^¨~\[\]`\\*)(%.!'<>]/g,"").toLowerCase():t.rawHeaderId?n.replace(/ /g,"-").replace(/&/g,"&").replace(/¨T/g,"¨").replace(/¨D/g,"$").replace(/["']/g,"-").toLowerCase():n.replace(/[^\w]/g,"").toLowerCase(),t.rawPrefixHeaderId&&(n=a+n),r.hashLinkCounts[n]?n=n+"-"+r.hashLinkCounts[n]++:r.hashLinkCounts[n]=1,n}return e=e.replace(s,(function(e,a,i){var s=i;t.customizedHeaderId&&(s=i.replace(/\s?\{([^{]+?)}\s*$/,""));var u=o.subParser("spanGamut")(s,t,r),l=t.noHeaderId?"":' id="'+c(i)+'"',f=n-1+a.length,d=""+u+"";return o.subParser("hashBlock")(d,t,r)})),e=r.converter._dispatch("headers.after",e,t,r)})),o.subParser("horizontalRule",(function(e,t,r){"use strict";e=r.converter._dispatch("horizontalRule.before",e,t,r);var n=o.subParser("hashBlock")("
    ",t,r);return e=(e=(e=e.replace(/^ {0,2}( ?-){3,}[ \t]*$/gm,n)).replace(/^ {0,2}( ?\*){3,}[ \t]*$/gm,n)).replace(/^ {0,2}( ?_){3,}[ \t]*$/gm,n),e=r.converter._dispatch("horizontalRule.after",e,t,r)})),o.subParser("images",(function(e,t,r){"use strict";function n(e,t,n,a,i,s,c,u){var l=r.gUrls,f=r.gTitles,d=r.gDimensions;if(n=n.toLowerCase(),u||(u=""),e.search(/\(? ?(['"].*['"])?\)$/m)>-1)a="";else if(""===a||null===a){if(""!==n&&null!==n||(n=t.toLowerCase().replace(/ ?\n/g," ")),a="#"+n,o.helper.isUndefined(l[n]))return e;a=l[n],o.helper.isUndefined(f[n])||(u=f[n]),o.helper.isUndefined(d[n])||(i=d[n].width,s=d[n].height)}t=t.replace(/"/g,""").replace(o.helper.regexes.asteriskDashAndColon,o.helper.escapeCharactersCallback);var p=''+t+'"}return e=(e=(e=(e=(e=(e=r.converter._dispatch("images.before",e,t,r)).replace(/!\[([^\]]*?)] ?(?:\n *)?\[([\s\S]*?)]()()()()()/g,n)).replace(/!\[([^\]]*?)][ \t]*()\([ \t]??(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*(?:(["'])([^"]*?)\6)?[ \t]?\)/g,(function(e,t,r,a,o,i,s,c){return n(e,t,r,a=a.replace(/\s/g,""),o,i,s,c)}))).replace(/!\[([^\]]*?)][ \t]*()\([ \t]?<([^>]*)>(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*(?:(?:(["'])([^"]*?)\6))?[ \t]?\)/g,n)).replace(/!\[([^\]]*?)][ \t]*()\([ \t]??(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*(?:(["'])([^"]*?)\6)?[ \t]?\)/g,n)).replace(/!\[([^\[\]]+)]()()()()()/g,n),e=r.converter._dispatch("images.after",e,t,r)})),o.subParser("italicsAndBold",(function(e,t,r){"use strict";function n(e,t,r){return t+e+r}return e=r.converter._dispatch("italicsAndBold.before",e,t,r),e=t.literalMidWordUnderscores?(e=(e=e.replace(/\b___(\S[\s\S]*?)___\b/g,(function(e,t){return n(t,"","")}))).replace(/\b__(\S[\s\S]*?)__\b/g,(function(e,t){return n(t,"","")}))).replace(/\b_(\S[\s\S]*?)_\b/g,(function(e,t){return n(t,"","")})):(e=(e=e.replace(/___(\S[\s\S]*?)___/g,(function(e,t){return/\S$/.test(t)?n(t,"",""):e}))).replace(/__(\S[\s\S]*?)__/g,(function(e,t){return/\S$/.test(t)?n(t,"",""):e}))).replace(/_([^\s_][\s\S]*?)_/g,(function(e,t){return/\S$/.test(t)?n(t,"",""):e})),e=t.literalMidWordAsterisks?(e=(e=e.replace(/([^*]|^)\B\*\*\*(\S[\s\S]*?)\*\*\*\B(?!\*)/g,(function(e,t,r){return n(r,t+"","")}))).replace(/([^*]|^)\B\*\*(\S[\s\S]*?)\*\*\B(?!\*)/g,(function(e,t,r){return n(r,t+"","")}))).replace(/([^*]|^)\B\*(\S[\s\S]*?)\*\B(?!\*)/g,(function(e,t,r){return n(r,t+"","")})):(e=(e=e.replace(/\*\*\*(\S[\s\S]*?)\*\*\*/g,(function(e,t){return/\S$/.test(t)?n(t,"",""):e}))).replace(/\*\*(\S[\s\S]*?)\*\*/g,(function(e,t){return/\S$/.test(t)?n(t,"",""):e}))).replace(/\*([^\s*][\s\S]*?)\*/g,(function(e,t){return/\S$/.test(t)?n(t,"",""):e})),e=r.converter._dispatch("italicsAndBold.after",e,t,r)})),o.subParser("lists",(function(e,t,r){"use strict";function n(e,n){r.gListLevel++,e=e.replace(/\n{2,}$/,"\n");var a=/(\n)?(^ {0,3})([*+-]|\d+[.])[ \t]+((\[(x|X| )?])?[ \t]*[^\r]+?(\n{1,2}))(?=\n*(¨0| {0,3}([*+-]|\d+[.])[ \t]+))/gm,i=/\n[ \t]*\n(?!¨0)/.test(e+="¨0");return t.disableForced4SpacesIndentedSublists&&(a=/(\n)?(^ {0,3})([*+-]|\d+[.])[ \t]+((\[(x|X| )?])?[ \t]*[^\r]+?(\n{1,2}))(?=\n*(¨0|\2([*+-]|\d+[.])[ \t]+))/gm),e=(e=e.replace(a,(function(e,n,a,s,c,u,l){l=l&&""!==l.trim();var f=o.subParser("outdent")(c,t,r),d="";return u&&t.tasklists&&(d=' class="task-list-item" style="list-style-type: none;"',f=f.replace(/^[ \t]*\[(x|X| )?]/m,(function(){var e='-1?(f=o.subParser("githubCodeBlocks")(f,t,r),f=o.subParser("blockGamut")(f,t,r)):(f=(f=o.subParser("lists")(f,t,r)).replace(/\n$/,""),f=(f=o.subParser("hashHTMLBlocks")(f,t,r)).replace(/\n\n+/g,"\n\n"),f=i?o.subParser("paragraphs")(f,t,r):o.subParser("spanGamut")(f,t,r)),f=""+(f=f.replace("¨A",""))+"\n"}))).replace(/¨0/g,""),r.gListLevel--,n&&(e=e.replace(/\s+$/,"")),e}function a(e,t){if("ol"===t){var r=e.match(/^ *(\d+)\./);if(r&&"1"!==r[1])return' start="'+r[1]+'"'}return""}function i(e,r,o){var i=t.disableForced4SpacesIndentedSublists?/^ ?\d+\.[ \t]/gm:/^ {0,3}\d+\.[ \t]/gm,s=t.disableForced4SpacesIndentedSublists?/^ ?[*+-][ \t]/gm:/^ {0,3}[*+-][ \t]/gm,c="ul"===r?i:s,u="";if(-1!==e.search(c))!function t(l){var f=l.search(c),d=a(e,r);-1!==f?(u+="\n\n<"+r+d+">\n"+n(l.slice(0,f),!!o)+"\n",c="ul"===(r="ul"===r?"ol":"ul")?i:s,t(l.slice(f))):u+="\n\n<"+r+d+">\n"+n(l,!!o)+"\n"}(e);else{var l=a(e,r);u="\n\n<"+r+l+">\n"+n(e,!!o)+"\n"}return u}return e=r.converter._dispatch("lists.before",e,t,r),e+="¨0",e=(e=r.gListLevel?e.replace(/^(( {0,3}([*+-]|\d+[.])[ \t]+)[^\r]+?(¨0|\n{2,}(?=\S)(?![ \t]*(?:[*+-]|\d+[.])[ \t]+)))/gm,(function(e,t,r){return i(t,r.search(/[*+-]/g)>-1?"ul":"ol",!0)})):e.replace(/(\n\n|^\n?)(( {0,3}([*+-]|\d+[.])[ \t]+)[^\r]+?(¨0|\n{2,}(?=\S)(?![ \t]*(?:[*+-]|\d+[.])[ \t]+)))/gm,(function(e,t,r,n){return i(r,n.search(/[*+-]/g)>-1?"ul":"ol",!1)}))).replace(/¨0/,""),e=r.converter._dispatch("lists.after",e,t,r)})),o.subParser("metadata",(function(e,t,r){"use strict";if(!t.metadata)return e;function n(e){r.metadata.raw=e,(e=(e=e.replace(/&/g,"&").replace(/"/g,""")).replace(/\n {4}/g," ")).replace(/^([\S ]+): +([\s\S]+?)$/gm,(function(e,t,n){return r.metadata.parsed[t]=n,""}))}return e=(e=(e=(e=r.converter._dispatch("metadata.before",e,t,r)).replace(/^\s*«««+(\S*?)\n([\s\S]+?)\n»»»+\n/,(function(e,t,r){return n(r),"¨M"}))).replace(/^\s*---+(\S*?)\n([\s\S]+?)\n---+\n/,(function(e,t,a){return t&&(r.metadata.format=t),n(a),"¨M"}))).replace(/¨M/g,""),e=r.converter._dispatch("metadata.after",e,t,r)})),o.subParser("outdent",(function(e,t,r){"use strict";return e=(e=(e=r.converter._dispatch("outdent.before",e,t,r)).replace(/^(\t|[ ]{1,4})/gm,"¨0")).replace(/¨0/g,""),e=r.converter._dispatch("outdent.after",e,t,r)})),o.subParser("paragraphs",(function(e,t,r){"use strict";for(var n=(e=(e=(e=r.converter._dispatch("paragraphs.before",e,t,r)).replace(/^\n+/g,"")).replace(/\n+$/g,"")).split(/\n{2,}/g),a=[],i=n.length,s=0;s=0?a.push(c):c.search(/\S/)>=0&&(c=(c=o.subParser("spanGamut")(c,t,r)).replace(/^([ \t]*)/g,"

    "),c+="

    ",a.push(c))}for(i=a.length,s=0;s]*>\s*]*>/.test(l)&&(f=!0)}a[s]=l}return e=(e=(e=a.join("\n")).replace(/^\n+/g,"")).replace(/\n+$/g,""),r.converter._dispatch("paragraphs.after",e,t,r)})),o.subParser("runExtension",(function(e,t,r,n){"use strict";if(e.filter)t=e.filter(t,n.converter,r);else if(e.regex){var a=e.regex;a instanceof RegExp||(a=new RegExp(a,"g")),t=t.replace(a,e.replace)}return t})),o.subParser("spanGamut",(function(e,t,r){"use strict";return e=r.converter._dispatch("spanGamut.before",e,t,r),e=o.subParser("codeSpans")(e,t,r),e=o.subParser("escapeSpecialCharsWithinTagAttributes")(e,t,r),e=o.subParser("encodeBackslashEscapes")(e,t,r),e=o.subParser("images")(e,t,r),e=o.subParser("anchors")(e,t,r),e=o.subParser("autoLinks")(e,t,r),e=o.subParser("simplifiedAutoLinks")(e,t,r),e=o.subParser("emoji")(e,t,r),e=o.subParser("underline")(e,t,r),e=o.subParser("italicsAndBold")(e,t,r),e=o.subParser("strikethrough")(e,t,r),e=o.subParser("ellipsis")(e,t,r),e=o.subParser("hashHTMLSpans")(e,t,r),e=o.subParser("encodeAmpsAndAngles")(e,t,r),t.simpleLineBreaks?/\n\n¨K/.test(e)||(e=e.replace(/\n+/g,"
    \n")):e=e.replace(/ +\n/g,"
    \n"),e=r.converter._dispatch("spanGamut.after",e,t,r)})),o.subParser("strikethrough",(function(e,t,r){"use strict";return t.strikethrough&&(e=(e=r.converter._dispatch("strikethrough.before",e,t,r)).replace(/(?:~){2}([\s\S]+?)(?:~){2}/g,(function(e,n){return function(e){return t.simplifiedAutoLink&&(e=o.subParser("simplifiedAutoLinks")(e,t,r)),""+e+""}(n)})),e=r.converter._dispatch("strikethrough.after",e,t,r)),e})),o.subParser("stripLinkDefinitions",(function(e,t,r){"use strict";var n=function(e,n,a,i,s,c,u){return n=n.toLowerCase(),a.match(/^data:.+?\/.+?;base64,/)?r.gUrls[n]=a.replace(/\s/g,""):r.gUrls[n]=o.subParser("encodeAmpsAndAngles")(a,t,r),c?c+u:(u&&(r.gTitles[n]=u.replace(/"|'/g,""")),t.parseImgDimensions&&i&&s&&(r.gDimensions[n]={width:i,height:s}),"")};return e=(e=(e=(e+="¨0").replace(/^ {0,3}\[(.+)]:[ \t]*\n?[ \t]*?(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*\n?[ \t]*(?:(\n*)["|'(](.+?)["|')][ \t]*)?(?:\n\n|(?=¨0)|(?=\n\[))/gm,n)).replace(/^ {0,3}\[(.+)]:[ \t]*\n?[ \t]*\s]+)>?(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*\n?[ \t]*(?:(\n*)["|'(](.+?)["|')][ \t]*)?(?:\n+|(?=¨0))/gm,n)).replace(/¨0/,"")})),o.subParser("tables",(function(e,t,r){"use strict";if(!t.tables)return e;function n(e,n){return""+o.subParser("spanGamut")(e,t,r)+"\n"}function a(e){var a,i=e.split("\n");for(a=0;a"+(c=o.subParser("spanGamut")(c,t,r))+"\n"));for(a=0;a\n\n\n",a=0;a\n";for(var o=0;o\n"}return r+="\n\n"}(h,b)}return e=(e=(e=(e=r.converter._dispatch("tables.before",e,t,r)).replace(/\\(\|)/g,o.helper.escapeCharactersCallback)).replace(/^ {0,3}\|?.+\|.+\n {0,3}\|?[ \t]*:?[ \t]*(?:[-=]){2,}[ \t]*:?[ \t]*\|[ \t]*:?[ \t]*(?:[-=]){2,}[\s\S]+?(?:\n\n|¨0)/gm,a)).replace(/^ {0,3}\|.+\|[ \t]*\n {0,3}\|[ \t]*:?[ \t]*(?:[-=]){2,}[ \t]*:?[ \t]*\|[ \t]*\n( {0,3}\|.+\|[ \t]*\n)*(?:\n|¨0)/gm,a),e=r.converter._dispatch("tables.after",e,t,r)})),o.subParser("underline",(function(e,t,r){"use strict";return t.underline?(e=r.converter._dispatch("underline.before",e,t,r),e=(e=t.literalMidWordUnderscores?(e=e.replace(/\b___(\S[\s\S]*?)___\b/g,(function(e,t){return""+t+""}))).replace(/\b__(\S[\s\S]*?)__\b/g,(function(e,t){return""+t+""})):(e=e.replace(/___(\S[\s\S]*?)___/g,(function(e,t){return/\S$/.test(t)?""+t+"":e}))).replace(/__(\S[\s\S]*?)__/g,(function(e,t){return/\S$/.test(t)?""+t+"":e}))).replace(/(_)/g,o.helper.escapeCharactersCallback),e=r.converter._dispatch("underline.after",e,t,r)):e})),o.subParser("unescapeSpecialChars",(function(e,t,r){"use strict";return e=(e=r.converter._dispatch("unescapeSpecialChars.before",e,t,r)).replace(/¨E(\d+)E/g,(function(e,t){var r=parseInt(t);return String.fromCharCode(r)})),e=r.converter._dispatch("unescapeSpecialChars.after",e,t,r)})),o.subParser("makeMarkdown.blockquote",(function(e,t){"use strict";var r="";if(e.hasChildNodes())for(var n=e.childNodes,a=n.length,i=0;i ")})),o.subParser("makeMarkdown.codeBlock",(function(e,t){"use strict";var r=e.getAttribute("language"),n=e.getAttribute("precodenum");return"```"+r+"\n"+t.preList[n]+"\n```"})),o.subParser("makeMarkdown.codeSpan",(function(e){"use strict";return"`"+e.innerHTML+"`"})),o.subParser("makeMarkdown.emphasis",(function(e,t){"use strict";var r="";if(e.hasChildNodes()){r+="*";for(var n=e.childNodes,a=n.length,i=0;i",e.hasAttribute("width")&&e.hasAttribute("height")&&(t+=" ="+e.getAttribute("width")+"x"+e.getAttribute("height")),e.hasAttribute("title")&&(t+=' "'+e.getAttribute("title")+'"'),t+=")"),t})),o.subParser("makeMarkdown.links",(function(e,t){"use strict";var r="";if(e.hasChildNodes()&&e.hasAttribute("href")){var n=e.childNodes,a=n.length;r="[";for(var i=0;i",e.hasAttribute("title")&&(r+=' "'+e.getAttribute("title")+'"'),r+=")"}return r})),o.subParser("makeMarkdown.list",(function(e,t,r){"use strict";var n="";if(!e.hasChildNodes())return"";for(var a=e.childNodes,i=a.length,s=e.getAttribute("start")||1,c=0;c"+t.preList[r]+""})),o.subParser("makeMarkdown.strikethrough",(function(e,t){"use strict";var r="";if(e.hasChildNodes()){r+="~~";for(var n=e.childNodes,a=n.length,i=0;itr>th"),c=e.querySelectorAll("tbody>tr");for(r=0;rh&&(h=g)}for(r=0;r/g,"\\$1>")).replace(/^#/gm,"\\#")).replace(/^(\s*)([-=]{3,})(\s*)$/,"$1\\$2$3")).replace(/^( {0,3}\d+)\./gm,"$1\\.")).replace(/^( {0,3})([+-])/gm,"$1\\$2")).replace(/]([\s]*)\(/g,"\\]$1\\(")).replace(/^ {0,3}\[([\S \t]*?)]:/gm,"\\[$1]:")}));void 0===(n=function(){"use strict";return o}.call(t,r,t,e))||(e.exports=n)}).call(this)},29:function(e,t){!function(){e.exports=this.wp.dom}()},31:function(e,t,r){"use strict";r.d(t,"a",(function(){return a}));var n=r(27);function a(e,t){if(e){if("string"==typeof e)return Object(n.a)(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Object(n.a)(e,t):void 0}}},33:function(e,t){!function(){e.exports=this.wp.hooks}()},36:function(e,t){!function(){e.exports=this.wp.deprecated}()},37:function(e,t,r){"use strict";function n(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}r.d(t,"a",(function(){return n}))},38:function(e,t,r){"use strict";function n(e){if(Array.isArray(e))return e}r.d(t,"a",(function(){return n}))},39:function(e,t,r){"use strict";function n(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}r.d(t,"a",(function(){return n}))},4:function(e,t){!function(){e.exports=this.wp.data}()},41:function(e,t){!function(){e.exports=this.wp.blob}()},42:function(e,t,r){"use strict";var n,a;function o(e){return[e]}function i(){var e={clear:function(){e.head=null}};return e}function s(e,t,r){var n;if(e.length!==t.length)return!1;for(n=r;n0&&void 0!==arguments[0]?arguments[0]:null,r=arguments.length>1?arguments[1]:void 0;switch(r.type){case"REMOVE_BLOCK_TYPES":return-1!==r.names.indexOf(t)?null:t;case e:return r.name||null}return t}}var h=p("SET_DEFAULT_BLOCK_NAME"),g=p("SET_FREEFORM_FALLBACK_BLOCK_NAME"),b=p("SET_UNREGISTERED_FALLBACK_BLOCK_NAME"),m=p("SET_GROUPING_BLOCK_NAME");var _=Object(o.combineReducers)({blockTypes:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"ADD_BLOCK_TYPES":return f(f({},e),Object(c.keyBy)(Object(c.map)(t.blockTypes,(function(e){return Object(c.omit)(e,"styles ")})),"name"));case"REMOVE_BLOCK_TYPES":return Object(c.omit)(e,t.names)}return e},blockStyles:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"ADD_BLOCK_TYPES":return f(f({},e),Object(c.mapValues)(Object(c.keyBy)(t.blockTypes,"name"),(function(t){return Object(c.uniqBy)([].concat(Object(i.a)(Object(c.get)(t,["styles"],[])),Object(i.a)(Object(c.get)(e,[t.name],[]))),(function(e){return e.name}))})));case"ADD_BLOCK_STYLES":return f(f({},e),{},Object(s.a)({},t.blockName,Object(c.uniqBy)([].concat(Object(i.a)(Object(c.get)(e,[t.blockName],[])),Object(i.a)(t.styles)),(function(e){return e.name}))));case"REMOVE_BLOCK_STYLES":return f(f({},e),{},Object(s.a)({},t.blockName,Object(c.filter)(Object(c.get)(e,[t.blockName],[]),(function(e){return-1===t.styleNames.indexOf(e.name)}))))}return e},blockVariations:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"ADD_BLOCK_TYPES":return f(f({},e),Object(c.mapValues)(Object(c.keyBy)(t.blockTypes,"name"),(function(t){return Object(c.uniqBy)([].concat(Object(i.a)(Object(c.get)(t,["variations"],[])),Object(i.a)(Object(c.get)(e,[t.name],[]))),(function(e){return e.name}))})));case"ADD_BLOCK_VARIATIONS":return f(f({},e),{},Object(s.a)({},t.blockName,Object(c.uniqBy)([].concat(Object(i.a)(Object(c.get)(e,[t.blockName],[])),Object(i.a)(t.variations)),(function(e){return e.name}))));case"REMOVE_BLOCK_VARIATIONS":return f(f({},e),{},Object(s.a)({},t.blockName,Object(c.filter)(Object(c.get)(e,[t.blockName],[]),(function(e){return-1===t.variationNames.indexOf(e.name)}))))}return e},defaultBlockName:h,freeformFallbackBlockName:g,unregisteredFallbackBlockName:b,groupingBlockName:m,categories:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:d,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SET_CATEGORIES":return t.categories||[];case"UPDATE_CATEGORY":if(!t.category||Object(c.isEmpty)(t.category))return e;var r=Object(c.find)(e,["slug",t.slug]);if(r)return Object(c.map)(e,(function(e){return e.slug===t.slug?f(f({},e),t.category):e}))}return e},collections:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"ADD_BLOCK_COLLECTION":return f(f({},e),{},Object(s.a)({},t.namespace,{title:t.title,icon:t.icon}));case"REMOVE_BLOCK_COLLECTION":return Object(c.omit)(e,t.namespace)}return e}}),v=r(42);function w(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function y(e){for(var t=1;t0},I=function(e,t){return Object(c.some)(L(e,t),(function(t){return z(e,t,"inserter",!0)}))};function V(e){return{type:"ADD_BLOCK_TYPES",blockTypes:Object(c.castArray)(e)}}function R(e){return{type:"REMOVE_BLOCK_TYPES",names:Object(c.castArray)(e)}}function F(e,t){return{type:"ADD_BLOCK_STYLES",styles:Object(c.castArray)(t),blockName:e}}function $(e,t){return{type:"REMOVE_BLOCK_STYLES",styleNames:Object(c.castArray)(t),blockName:e}}function q(e,t){return{type:"ADD_BLOCK_VARIATIONS",variations:Object(c.castArray)(t),blockName:e}}function U(e,t){return{type:"REMOVE_BLOCK_VARIATIONS",variationNames:Object(c.castArray)(t),blockName:e}}function G(e){return{type:"SET_DEFAULT_BLOCK_NAME",name:e}}function K(e){return{type:"SET_FREEFORM_FALLBACK_BLOCK_NAME",name:e}}function W(e){return{type:"SET_UNREGISTERED_FALLBACK_BLOCK_NAME",name:e}}function Y(e){return{type:"SET_GROUPING_BLOCK_NAME",name:e}}function Z(e){return{type:"SET_CATEGORIES",categories:e}}function Q(e,t){return{type:"UPDATE_CATEGORY",slug:e,category:t}}function X(e,t,r){return{type:"ADD_BLOCK_COLLECTION",namespace:e,title:t,icon:r}}function J(e){return{type:"REMOVE_BLOCK_COLLECTION",namespace:e}}Object(o.registerStore)("core/blocks",{reducer:_,selectors:n,actions:a});var ee=r(12),te="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto),re=new Uint8Array(16);function ne(){if(!te)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return te(re)}for(var ae=[],oe=0;oe<256;++oe)ae[oe]=(oe+256).toString(16).substr(1);var ie=function(e,t){var r=t||0,n=ae;return[n[e[r++]],n[e[r++]],n[e[r++]],n[e[r++]],"-",n[e[r++]],n[e[r++]],"-",n[e[r++]],n[e[r++]],"-",n[e[r++]],n[e[r++]],"-",n[e[r++]],n[e[r++]],n[e[r++]],n[e[r++]],n[e[r++]],n[e[r++]]].join("")};var se=function(e,t,r){var n=t&&r||0;"string"==typeof e&&(t="binary"===e?new Array(16):null,e=null);var a=(e=e||{}).random||(e.rng||ne)();if(a[6]=15&a[6]|64,a[8]=63&a[8]|128,t)for(var o=0;o<16;++o)t[n+o]=a[o];return t||ie(a)},ce=r(33),ue=r(207),le=r(66),fe=r.n(le),de=r(0),pe=r(29);function he(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ge(e){for(var t=1;t2&&void 0!==arguments[2]?arguments[2]:"visual",n=e.__experimentalLabel,a=e.title,o=n&&n(t,{context:r});return o?Object(pe.__unstableStripHTML)(o):a}function ke(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"vertical",a=e.title,o=ye(e,t,"accessibility"),i=void 0!==r,s=o&&o!==a;return i&&"vertical"===n?s?Object(u.sprintf)(Object(u.__)("%1$s Block. Row %2$d. %3$s"),a,r,o):Object(u.sprintf)(Object(u.__)("%1$s Block. Row %2$d"),a,r):i&&"horizontal"===n?s?Object(u.sprintf)(Object(u.__)("%1$s Block. Column %2$d. %3$s"),a,r,o):Object(u.sprintf)(Object(u.__)("%1$s Block. Column %2$d"),a,r):s?Object(u.sprintf)(Object(u.__)("%1$s Block. %2$s"),a,o):Object(u.sprintf)(Object(u.__)("%s Block"),a)}var Oe=["attributes","supports","save","migrate","isEligible","apiVersion"],je={"--wp--style--color--link":["color","link"],background:["color","gradient"],backgroundColor:["color","background"],color:["color","text"],fontSize:["typography","fontSize"],lineHeight:["typography","lineHeight"],paddingBottom:["spacing","padding","bottom"],paddingLeft:["spacing","padding","left"],paddingRight:["spacing","padding","right"],paddingTop:["spacing","padding","top"]};function Ce(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Te(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],n=Re(e);if(void 0===n)throw new Error("Block type '".concat(e,"' is not registered."));var a=Object(c.reduce)(n.attributes,(function(e,r,n){var a=t[n];return void 0!==a?e[n]=a:r.hasOwnProperty("default")&&(e[n]=r.default),-1!==["node","children"].indexOf(r.source)&&("string"==typeof e[n]?e[n]=[e[n]]:Array.isArray(e[n])||(e[n]=[])),e}),{}),o=se();return{clientId:o,name:e,isValid:!0,attributes:a,innerBlocks:r}}function nt(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.map((function(e){var t=Array.isArray(e)?e:[e.name,e.attributes,e.innerBlocks],r=Object(ee.a)(t,3),n=r[0],a=r[1],o=r[2];return rt(n,a,nt(void 0===o?[]:o))}))}function at(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0,n=se();return tt(tt({},e),{},{clientId:n,attributes:tt(tt({},e.attributes),t),innerBlocks:r||e.innerBlocks.map((function(e){return at(e)}))})}var ot=function(e,t,r){if(Object(c.isEmpty)(r))return!1;var n=r.length>1,a=Object(c.first)(r).name;if(!(it(e)||!n||e.isMultiBlock))return!1;if(!it(e)&&!Object(c.every)(r,{name:a}))return!1;if(!("block"===e.type))return!1;var o=Object(c.first)(r);if(!("from"!==t||-1!==e.blocks.indexOf(o.name)||it(e)))return!1;if(!n&&st(o.name)&&st(e.blockName))return!1;if(Object(c.isFunction)(e.isMatch)){var i=e.isMultiBlock?r.map((function(e){return e.attributes})):o.attributes;if(!e.isMatch(i))return!1}return!0},it=function(e){return e&&"block"===e.type&&Array.isArray(e.blocks)&&e.blocks.includes("*")},st=function(e){return e===Me()};function ct(e){if(Object(c.isEmpty)(e))return[];var t=function(e){if(Object(c.isEmpty)(e))return[];var t=Fe();return Object(c.filter)(t,(function(t){return!!ut(lt("from",t.name),(function(t){return ot(t,"from",e)}))}))}(e),r=function(e){if(Object(c.isEmpty)(e))return[];var t=lt("to",Re(Object(c.first)(e).name).name),r=Object(c.filter)(t,(function(t){return t&&ot(t,"to",e)}));return Object(c.flatMap)(r,(function(e){return e.blocks})).map((function(e){return Re(e)}))}(e);return Object(c.uniq)([].concat(Object(i.a)(t),Object(i.a)(r)))}function ut(e,t){for(var r=Object(ce.createHooks)(),n=function(n){var a=e[n];t(a)&&r.addFilter("transform","transform/"+n.toString(),(function(e){return e||a}),a.priority)},a=0;a1,o=n[0],i=o.name,s=lt("from",t),u=ut(lt("to",i),(function(e){return"block"===e.type&&(it(e)||-1!==e.blocks.indexOf(t))&&(!a||e.isMultiBlock)}))||ut(s,(function(e){return"block"===e.type&&(it(e)||-1!==e.blocks.indexOf(i))&&(!a||e.isMultiBlock)}));if(!u)return null;if(r=u.isMultiBlock?Object(c.has)(u,"__experimentalConvert")?u.__experimentalConvert(n):u.transform(n.map((function(e){return e.attributes})),n.map((function(e){return e.innerBlocks}))):Object(c.has)(u,"__experimentalConvert")?u.__experimentalConvert(o):u.transform(o.attributes,o.innerBlocks),!Object(c.isObjectLike)(r))return null;if((r=Object(c.castArray)(r)).some((function(e){return!Re(e.name)})))return null;var l=Object(c.findIndex)(r,(function(e){return e.name===t}));return l<0?null:r.map((function(t,r){var n=tt(tt({},t),{},{clientId:r===l?o.clientId:t.clientId});return Object(ce.applyFilters)("blocks.switchToBlockType.transformedBlock",n,e)}))}var dt=function e(t,r){return rt(t,r.attributes,Object(c.map)(r.innerBlocks,(function(t){return e(t.name,t)})))};function pt(e,t){for(var r,n=t.split(".");r=n.shift();){if(!(r in e))return;e=e[r]}return e}var ht,gt=function(){return ht||(ht=document.implementation.createHTMLDocument("")),ht};function bt(e,t){if(t){if("string"==typeof e){var r=gt();r.body.innerHTML=e,e=r.body}if("function"==typeof t)return t(e);if(Object===t.constructor)return Object.keys(t).reduce((function(r,n){return r[n]=bt(e,t[n]),r}),{})}}function mt(e,t){return 1===arguments.length&&(t=e,e=void 0),function(r){var n=r;if(e&&(n=r.querySelector(e)),n)return pt(n,t)}}var _t=r(107),vt=r(284),wt=r(148),yt=r(21),kt=r(22),Ot=/^#[xX]([A-Fa-f0-9]+)$/,jt=/^#([0-9]+)$/,Ct=/^([A-Za-z0-9]+)$/,Tt=(function(){function e(e){this.named=e}e.prototype.parse=function(e){if(e){var t=e.match(Ot);return t?String.fromCharCode(parseInt(t[1],16)):(t=e.match(jt))?String.fromCharCode(parseInt(t[1],10)):(t=e.match(Ct))?this.named[t[1]]:void 0}}}(),/[\t\n\f ]/),xt=/[A-Za-z]/,Pt=/\r\n?/g;function St(e){return Tt.test(e)}function At(e){return xt.test(e)}var Et=function(){function e(e,t,r){void 0===r&&(r="precompile"),this.delegate=e,this.entityParser=t,this.mode=r,this.state="beforeData",this.line=-1,this.column=-1,this.input="",this.index=-1,this.tagNameBuffer="",this.states={beforeData:function(){var e=this.peek();if("<"!==e||this.isIgnoredEndTag()){if("precompile"===this.mode&&"\n"===e){var t=this.tagNameBuffer.toLowerCase();"pre"!==t&&"textarea"!==t||this.consume()}this.transitionTo("data"),this.delegate.beginData()}else this.transitionTo("tagOpen"),this.markTagStart(),this.consume()},data:function(){var e=this.peek(),t=this.tagNameBuffer;"<"!==e||this.isIgnoredEndTag()?"&"===e&&"script"!==t&&"style"!==t?(this.consume(),this.delegate.appendToData(this.consumeCharRef()||"&")):(this.consume(),this.delegate.appendToData(e)):(this.delegate.finishData(),this.transitionTo("tagOpen"),this.markTagStart(),this.consume())},tagOpen:function(){var e=this.consume();"!"===e?this.transitionTo("markupDeclarationOpen"):"/"===e?this.transitionTo("endTagOpen"):("@"===e||":"===e||At(e))&&(this.transitionTo("tagName"),this.tagNameBuffer="",this.delegate.beginStartTag(),this.appendToTagName(e))},markupDeclarationOpen:function(){"-"===this.consume()&&"-"===this.peek()&&(this.consume(),this.transitionTo("commentStart"),this.delegate.beginComment())},commentStart:function(){var e=this.consume();"-"===e?this.transitionTo("commentStartDash"):">"===e?(this.delegate.finishComment(),this.transitionTo("beforeData")):(this.delegate.appendToCommentData(e),this.transitionTo("comment"))},commentStartDash:function(){var e=this.consume();"-"===e?this.transitionTo("commentEnd"):">"===e?(this.delegate.finishComment(),this.transitionTo("beforeData")):(this.delegate.appendToCommentData("-"),this.transitionTo("comment"))},comment:function(){var e=this.consume();"-"===e?this.transitionTo("commentEndDash"):this.delegate.appendToCommentData(e)},commentEndDash:function(){var e=this.consume();"-"===e?this.transitionTo("commentEnd"):(this.delegate.appendToCommentData("-"+e),this.transitionTo("comment"))},commentEnd:function(){var e=this.consume();">"===e?(this.delegate.finishComment(),this.transitionTo("beforeData")):(this.delegate.appendToCommentData("--"+e),this.transitionTo("comment"))},tagName:function(){var e=this.consume();St(e)?this.transitionTo("beforeAttributeName"):"/"===e?this.transitionTo("selfClosingStartTag"):">"===e?(this.delegate.finishTag(),this.transitionTo("beforeData")):this.appendToTagName(e)},endTagName:function(){var e=this.consume();St(e)?(this.transitionTo("beforeAttributeName"),this.tagNameBuffer=""):"/"===e?(this.transitionTo("selfClosingStartTag"),this.tagNameBuffer=""):">"===e?(this.delegate.finishTag(),this.transitionTo("beforeData"),this.tagNameBuffer=""):this.appendToTagName(e)},beforeAttributeName:function(){var e=this.peek();St(e)?this.consume():"/"===e?(this.transitionTo("selfClosingStartTag"),this.consume()):">"===e?(this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):"="===e?(this.delegate.reportSyntaxError("attribute name cannot start with equals sign"),this.transitionTo("attributeName"),this.delegate.beginAttribute(),this.consume(),this.delegate.appendToAttributeName(e)):(this.transitionTo("attributeName"),this.delegate.beginAttribute())},attributeName:function(){var e=this.peek();St(e)?(this.transitionTo("afterAttributeName"),this.consume()):"/"===e?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.transitionTo("selfClosingStartTag")):"="===e?(this.transitionTo("beforeAttributeValue"),this.consume()):">"===e?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):'"'===e||"'"===e||"<"===e?(this.delegate.reportSyntaxError(e+" is not a valid character within attribute names"),this.consume(),this.delegate.appendToAttributeName(e)):(this.consume(),this.delegate.appendToAttributeName(e))},afterAttributeName:function(){var e=this.peek();St(e)?this.consume():"/"===e?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.transitionTo("selfClosingStartTag")):"="===e?(this.consume(),this.transitionTo("beforeAttributeValue")):">"===e?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.transitionTo("attributeName"),this.delegate.beginAttribute(),this.consume(),this.delegate.appendToAttributeName(e))},beforeAttributeValue:function(){var e=this.peek();St(e)?this.consume():'"'===e?(this.transitionTo("attributeValueDoubleQuoted"),this.delegate.beginAttributeValue(!0),this.consume()):"'"===e?(this.transitionTo("attributeValueSingleQuoted"),this.delegate.beginAttributeValue(!0),this.consume()):">"===e?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):(this.transitionTo("attributeValueUnquoted"),this.delegate.beginAttributeValue(!1),this.consume(),this.delegate.appendToAttributeValue(e))},attributeValueDoubleQuoted:function(){var e=this.consume();'"'===e?(this.delegate.finishAttributeValue(),this.transitionTo("afterAttributeValueQuoted")):"&"===e?this.delegate.appendToAttributeValue(this.consumeCharRef()||"&"):this.delegate.appendToAttributeValue(e)},attributeValueSingleQuoted:function(){var e=this.consume();"'"===e?(this.delegate.finishAttributeValue(),this.transitionTo("afterAttributeValueQuoted")):"&"===e?this.delegate.appendToAttributeValue(this.consumeCharRef()||"&"):this.delegate.appendToAttributeValue(e)},attributeValueUnquoted:function(){var e=this.peek();St(e)?(this.delegate.finishAttributeValue(),this.consume(),this.transitionTo("beforeAttributeName")):"/"===e?(this.delegate.finishAttributeValue(),this.consume(),this.transitionTo("selfClosingStartTag")):"&"===e?(this.consume(),this.delegate.appendToAttributeValue(this.consumeCharRef()||"&")):">"===e?(this.delegate.finishAttributeValue(),this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):(this.consume(),this.delegate.appendToAttributeValue(e))},afterAttributeValueQuoted:function(){var e=this.peek();St(e)?(this.consume(),this.transitionTo("beforeAttributeName")):"/"===e?(this.consume(),this.transitionTo("selfClosingStartTag")):">"===e?(this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):this.transitionTo("beforeAttributeName")},selfClosingStartTag:function(){">"===this.peek()?(this.consume(),this.delegate.markTagAsSelfClosing(),this.delegate.finishTag(),this.transitionTo("beforeData")):this.transitionTo("beforeAttributeName")},endTagOpen:function(){var e=this.consume();("@"===e||":"===e||At(e))&&(this.transitionTo("endTagName"),this.tagNameBuffer="",this.delegate.beginEndTag(),this.appendToTagName(e))}},this.reset()}return e.prototype.reset=function(){this.transitionTo("beforeData"),this.input="",this.tagNameBuffer="",this.index=0,this.line=1,this.column=0,this.delegate.reset()},e.prototype.transitionTo=function(e){this.state=e},e.prototype.tokenize=function(e){this.reset(),this.tokenizePart(e),this.tokenizeEOF()},e.prototype.tokenizePart=function(e){for(this.input+=function(e){return e.replace(Pt,"\n")}(e);this.index"!==this.input.substring(this.index,this.index+8)||"style"===e&&""!==this.input.substring(this.index,this.index+8)||"script"===e&&"<\/script>"!==this.input.substring(this.index,this.index+9)},e}(),Bt=function(){function e(e,t){void 0===t&&(t={}),this.options=t,this.token=null,this.startLine=1,this.startColumn=0,this.tokens=[],this.tokenizer=new Et(this,e,t.mode),this._currentAttribute=void 0}return e.prototype.tokenize=function(e){return this.tokens=[],this.tokenizer.tokenize(e),this.tokens},e.prototype.tokenizePart=function(e){return this.tokens=[],this.tokenizer.tokenizePart(e),this.tokens},e.prototype.tokenizeEOF=function(){return this.tokens=[],this.tokenizer.tokenizeEOF(),this.tokens[0]},e.prototype.reset=function(){this.token=null,this.startLine=1,this.startColumn=0},e.prototype.current=function(){var e=this.token;if(null===e)throw new Error("token was unexpectedly null");if(0===arguments.length)return e;for(var t=0;t1?r-1:0),a=1;a0&&void 0!==arguments[0]?arguments[0]:{},t=Yt.blockType,r=Yt.attributes;return Object(ce.applyFilters)("blocks.getSaveContent.extraProps",Gt({},e),t,r)}function Qt(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],n=we(e),a=n.save;if(a.prototype instanceof de.Component){var o=new a({attributes:t});a=o.render.bind(o)}Yt.blockType=n,Yt.attributes=t;var i=a({attributes:t,innerBlocks:r}),s=n.apiVersion>1||qe(n,"lightBlockWrapper",!1);if(Object(c.isObject)(i)&&Object(ce.hasFilter)("blocks.getSaveContent.extraProps")&&!s){var u=Object(ce.applyFilters)("blocks.getSaveContent.extraProps",Gt({},i.props),n,t);Dt()(u,i.props)||(i=Object(de.cloneElement)(i,u))}return i=Object(ce.applyFilters)("blocks.getSaveElement",i,n,t),Object(de.createElement)(qt,{innerBlocks:r},i)}function Xt(e,t,r){var n=we(e);return Object(de.renderToString)(Qt(n,t,r))}function Jt(e,t){return Object(c.reduce)(e.attributes,(function(e,r,n){var a=t[n];return void 0===a||void 0!==r.source||"default"in r&&r.default===a||(e[n]=a),e}),{})}function er(e){var t=e.originalContent;if(e.isValid||e.innerBlocks.length)try{t=Xt(e.name,e.attributes,e.innerBlocks)}catch(e){}return t}function tr(e,t,r){var n=Object(c.isEmpty)(t)?"":function(e){return JSON.stringify(e).replace(/--/g,"\\u002d\\u002d").replace(//g,"\\u003e").replace(/&/g,"\\u0026").replace(/\\"/g,"\\u0022")}(t)+" ",a=Object(c.startsWith)(e,"core/")?e.slice(5):e;return r?"\x3c!-- wp:".concat(a," ").concat(n,"--\x3e\n")+r+"\n\x3c!-- /wp:".concat(a," --\x3e"):"\x3c!-- wp:".concat(a," ").concat(n,"/--\x3e")}function rr(e,t){return Object(c.castArray)(e).map((function(e){return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.isInnerBlocks,n=void 0!==r&&r,a=e.name,o=er(e);if(a===De()||!n&&a===Le())return o;var i=Re(a),s=Jt(i,e.attributes);return tr(a,s,o)}(e,t)})).join("\n\n")}function nr(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}var ar=/[\t\n\r\v\f ]+/g,or=/^[\t\n\r\v\f ]*$/,ir=/^url\s*\(['"\s]*(.*?)['"\s]*\)$/,sr=["allowfullscreen","allowpaymentrequest","allowusermedia","async","autofocus","autoplay","checked","controls","default","defer","disabled","download","formnovalidate","hidden","ismap","itemscope","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","selected","typemustmatch"],cr=[].concat(sr,["autocapitalize","autocomplete","charset","contenteditable","crossorigin","decoding","dir","draggable","enctype","formenctype","formmethod","http-equiv","inputmode","kind","method","preload","scope","shape","spellcheck","translate","type","wrap"]),ur=[c.identity,function(e){return hr(e).join(" ")}],lr=/^[\da-z]+$/i,fr=/^#\d+$/,dr=/^#x[\da-f]+$/i;var pr=function(){function e(){Object(yt.a)(this,e)}return Object(kt.a)(e,[{key:"parse",value:function(e){if(t=e,lr.test(t)||fr.test(t)||dr.test(t))return Object(Nt.decodeEntities)("&"+e+";");var t}}]),e}();function hr(e){return e.trim().split(ar)}function gr(e){return e.attributes.filter((function(e){var t=Object(ee.a)(e,2),r=t[0];return t[1]||0===r.indexOf("data-")||Object(c.includes)(cr,r)}))}function br(e,t){for(var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Lt(),n=e.chars,a=t.chars,o=0;o2&&void 0!==arguments[2]?arguments[2]:Lt();if(e.length!==t.length)return r.warning("Expected attributes %o, instead saw %o.",t,e),!1;for(var n={},a=0;a2&&void 0!==arguments[2]?arguments[2]:Lt();return e.tagName!==t.tagName&&e.tagName.toLowerCase()!==t.tagName.toLowerCase()?(r.warning("Expected tag name `%s`, instead saw `%s`.",t.tagName,e.tagName),!1):wr.apply(void 0,Object(i.a)([e,t].map(gr)).concat([r]))},Chars:br,Comment:br};function kr(e){for(var t;t=e.shift();){if("Chars"!==t.type)return t;if(!or.test(t.chars))return t}}function Or(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Lt();try{return new Bt(new pr).tokenize(e)}catch(r){t.warning("Malformed HTML detected: %s",e)}return null}function jr(e,t){return!!e.selfClosing&&!(!t||t.tagName!==e.tagName||"EndTag"!==t.type)}function Cr(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Lt();if(e===t)return!0;var n,a,o=[e,t].map((function(e){return Or(e,r)})),i=Object(ee.a)(o,2),s=i[0],c=i[1];if(!s||!c)return!1;for(;n=kr(s);){if(!(a=kr(c)))return r.warning("Expected end of content, instead saw %o.",n),!1;if(n.type!==a.type)return r.warning("Expected token of type `%s` (%o), instead saw `%s` (%o).",a.type,a,n.type,n),!1;var u=yr[n.type];if(u&&!u(n,a,r))return!1;jr(n,c[0])?kr(c):jr(a,s[0])&&kr(s)}return!(a=kr(c))||(r.warning("Expected %o, instead saw end of content.",a),!1)}function Tr(e,t,r){var n,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Mt(),o=we(e);try{n=Xt(o,t)}catch(e){return a.error("Block validation failed because an error occurred while generating block content:\n\n%s",e.toString()),{isValid:!1,validationIssues:a.getItems()}}var i=Cr(r,n,a);return i||a.error("Block validation failed for `%s` (%o).\n\nContent generated by `save` function:\n\n%s\n\nContent retrieved from post body:\n\n%s",o.name,o,n,r),{isValid:i,validationIssues:a.getItems()}}function xr(e,t,r){return Tr(e,t,r,Lt()).isValid}function Pr(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Sr(e){for(var t=1;t2&&void 0!==arguments[2]?arguments[2]:{},n=we(e),a=Object(c.mapValues)(n.attributes,(function(e,n){return $r(n,e,t,r)}));return Object(ce.applyFilters)("blocks.getBlockAttributes",a,n,t,r)}function Ur(e,t){var r=Ir({},t);if("core/cover-image"===e&&(e="core/cover"),"core/text"!==e&&"core/cover-text"!==e||(e="core/paragraph"),e&&0===e.indexOf("core/social-link-")&&(r.service=e.substring(17),e="core/social-link"),e&&0===e.indexOf("core-embed/")){var n=e.substring(11),a={speaker:"speaker-deck",polldaddy:"crowdsignal"};r.providerNameSlug=n in a?a[n]:n,["amazon-kindle","wordpress"].includes(n)||(r.responsive=!0),e="core/embed"}return{name:e,attributes:r}}function Gr(e){var t=e.blockName,r=e.attrs,n=e.innerBlocks,a=void 0===n?[]:n,o=e.innerHTML,s=e.innerContent,u=Le(),l=De()||u;r=r||{},o=o.trim();var f=t||u,d=Ur(f,r);f=d.name,r=d.attributes,f===u&&(o=Object(_t.autop)(o).trim());var p=Re(f);if(!p){var h={attrs:r,blockName:t,innerBlocks:a,innerContent:s},g=Kr(h,{isCommentDelimited:!1}),b=Kr(h,{isCommentDelimited:!0});f&&(o=b),r={originalName:t,originalContent:b,originalUndelimitedContent:g},p=Re(f=l)}a=(a=a.map(Gr)).filter((function(e){return e}));var m=f===u||f===l;if(p&&(o||!m)){var _=rt(f,qr(p,o,r),a);if(!m){var v=Tr(p,_.attributes,o),w=v.isValid,y=v.validationIssues;_.isValid=w,_.validationIssues=y}return _.originalContent=_.originalContent||o,(_=function(e,t){var r=Re(e.name),n=r.deprecated;if(!n||!n.length)return e;for(var a=e,o=a.originalContent,s=a.innerBlocks,u=0;u0&&(_.isValid?console.info("Block successfully updated for `%s` (%o).\n\nNew content generated by `save` function:\n\n%s\n\nContent retrieved from post body:\n\n%s",p.name,p,Xt(p,_.attributes),_.originalContent):_.validationIssues.forEach((function(e){var t=e.log,r=e.args;return t.apply(void 0,Object(i.a)(r))}))),_}}function Kr(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.isCommentDelimited,n=void 0===r||r,a=e.blockName,o=e.attrs,i=void 0===o?{}:o,s=e.innerBlocks,c=void 0===s?[]:s,u=e.innerContent,l=void 0===u?[]:u,f=0,d=l.map((function(e){return null!==e?e:Kr(c[f++],t)})).join("\n").replace(/\n+/g,"\n").trim();return n?tr(a,i,d):d}var Wr,Yr=(Wr=vt.parse,function(e){return Wr(e).reduce((function(e,t){var r=Gr(t);return r&&e.push(r),e}),[])}),Zr=Yr;function Qr(e){var t=document.implementation.createHTMLDocument(""),r=document.implementation.createHTMLDocument(""),n=t.body,a=r.body;for(n.innerHTML=e;n.firstChild;){var o=n.firstChild;o.nodeType===o.TEXT_NODE?o.nodeValue.trim()?(a.lastChild&&"P"===a.lastChild.nodeName||a.appendChild(r.createElement("P")),a.lastChild.appendChild(o)):n.removeChild(o):o.nodeType===o.ELEMENT_NODE?"BR"===o.nodeName?(o.nextSibling&&"BR"===o.nextSibling.nodeName&&(a.appendChild(r.createElement("P")),n.removeChild(o.nextSibling)),a.lastChild&&"P"===a.lastChild.nodeName&&a.lastChild.hasChildNodes()?a.lastChild.appendChild(o):n.removeChild(o)):"P"===o.nodeName?Object(pe.isEmpty)(o)?n.removeChild(o):a.appendChild(o):Object(pe.isPhrasingContent)(o)?(a.lastChild&&"P"===a.lastChild.nodeName||a.appendChild(r.createElement("P")),a.lastChild.appendChild(o)):a.appendChild(o):n.removeChild(o)}return a.innerHTML}function Xr(e,t){if(e.nodeType===e.COMMENT_NODE)if("nextpage"!==e.nodeValue){if(0===e.nodeValue.indexOf("more")){for(var r=e.nodeValue.slice(4).trim(),n=e,a=!1;n=n.nextSibling;)if(n.nodeType===n.COMMENT_NODE&&"noteaser"===n.nodeValue){a=!0,Object(pe.remove)(n);break}Object(pe.replace)(e,function(e,t,r){var n=r.createElement("wp-block");n.dataset.block="core/more",e&&(n.dataset.customText=e);t&&(n.dataset.noTeaser="");return n}(r,a,t))}}else Object(pe.replace)(e,function(e){var t=e.createElement("wp-block");return t.dataset.block="core/nextpage",t}(t))}function Jr(e){e.nodeType===e.COMMENT_NODE&&Object(pe.remove)(e)}function en(e,t){return e.every((function(e){return function(e,t){if(Object(pe.isTextContent)(e))return!0;if(!t)return!1;var r=e.nodeName.toLowerCase();return[["ul","li","ol"],["h1","h2","h3","h4","h5","h6"]].some((function(e){return 0===Object(c.difference)([r,t],e).length}))}(e,t)&&en(Array.from(e.children),t)}))}function tn(e){return"BR"===e.nodeName&&e.previousSibling&&"BR"===e.previousSibling.nodeName}function rn(e,t){if("SPAN"===e.nodeName&&e.style){var r=e.style,n=r.fontWeight,a=r.fontStyle,o=r.textDecorationLine,i=r.textDecoration,s=r.verticalAlign;"bold"!==n&&"700"!==n||Object(pe.wrap)(t.createElement("strong"),e),"italic"===a&&Object(pe.wrap)(t.createElement("em"),e),("line-through"===o||Object(c.includes)(i,"line-through"))&&Object(pe.wrap)(t.createElement("s"),e),"super"===s?Object(pe.wrap)(t.createElement("sup"),e):"sub"===s&&Object(pe.wrap)(t.createElement("sub"),e)}else"B"===e.nodeName?e=Object(pe.replaceTag)(e,"strong"):"I"===e.nodeName?e=Object(pe.replaceTag)(e,"em"):"A"===e.nodeName&&(e.target&&"_blank"===e.target.toLowerCase()?e.rel="noreferrer noopener":(e.removeAttribute("target"),e.removeAttribute("rel")))}function nn(e){"SCRIPT"!==e.nodeName&&"NOSCRIPT"!==e.nodeName&&"TEMPLATE"!==e.nodeName&&"STYLE"!==e.nodeName||e.parentNode.removeChild(e)}var an=window.parseInt;function on(e){return"OL"===e.nodeName||"UL"===e.nodeName}function sn(e,t){if("P"===e.nodeName){var r=e.getAttribute("style");if(r&&-1!==r.indexOf("mso-list")){var n=/mso-list\s*:[^;]+level([0-9]+)/i.exec(r);if(n){var a=an(n[1],10)-1||0,o=e.previousElementSibling;if(!o||!on(o)){var i=e.textContent.trim().slice(0,1),s=/[1iIaA]/.test(i),c=t.createElement(s?"ol":"ul");s&&c.setAttribute("type",i),e.parentNode.insertBefore(c,e)}var u=e.previousElementSibling,l=u.nodeName,f=t.createElement("li"),d=u;for(e.removeChild(e.firstElementChild);e.firstChild;)f.appendChild(e.firstChild);for(;a--;)on(d=d.lastElementChild||d)&&(d=d.lastElementChild||d);on(d)||(d=d.appendChild(t.createElement(l))),d.appendChild(f),e.parentNode.removeChild(e)}}}}function cn(e){return"OL"===e.nodeName||"UL"===e.nodeName}function un(e){if(cn(e)){var t=e,r=e.previousElementSibling;if(r&&r.nodeName===e.nodeName&&1===t.children.length){for(;t.firstChild;)r.appendChild(t.firstChild);t.parentNode.removeChild(t)}var n,a=e.parentNode;if(a&&"LI"===a.nodeName&&1===a.children.length&&!/\S/.test((n=a,Array.from(n.childNodes).map((function(e){var t=e.nodeValue;return void 0===t?"":t})).join("")))){var o=a,i=o.previousElementSibling,s=o.parentNode;i?(i.appendChild(t),s.removeChild(o)):(s.parentNode.insertBefore(t,s),s.parentNode.removeChild(s))}if(a&&cn(a)){var c=e.previousElementSibling;c?c.appendChild(e):Object(pe.unwrap)(e)}}}var ln=r(41),fn=window,dn=fn.atob,pn=fn.File;function hn(e){if("IMG"===e.nodeName){if(0===e.src.indexOf("file:")&&(e.src=""),0===e.src.indexOf("data:")){var t,r=e.src.split(","),n=Object(ee.a)(r,2),a=n[0],o=n[1],i=a.slice(5).split(";"),s=Object(ee.a)(i,1)[0];if(!o||!s)return void(e.src="");try{t=dn(o)}catch(t){return void(e.src="")}for(var c=new Uint8Array(t.length),u=0;u1&&void 0!==arguments[1]?arguments[1]:e,r=e.ownerDocument.createElement("figure");t.parentNode.insertBefore(r,t),r.appendChild(e)}function mn(e,t,r){if(function(e,t){var r=e.nodeName.toLowerCase();return"figcaption"!==r&&!Object(pe.isTextContent)(e)&&Object(c.has)(t,["figure","children",r])}(e,r)){var n=e,a=e.parentNode;(function(e,t){var r=e.nodeName.toLowerCase();return Object(c.has)(t,["figure","children","a","children",r])})(e,r)&&"A"===a.nodeName&&1===a.childNodes.length&&(n=e.parentNode);var o=n.closest("p,div");o?e.classList?(e.classList.contains("alignright")||e.classList.contains("alignleft")||e.classList.contains("aligncenter")||!o.textContent.trim())&&bn(n,o):bn(n,o):"BODY"===n.parentNode.nodeName&&bn(n)}}var _n=r(131);function vn(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function wn(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],a=lt("from"),o=ut(a,(function(e){return-1===n.indexOf(e.blockName)&&"shortcode"===e.type&&Object(c.some)(Object(c.castArray)(e.tag),(function(e){return Object(_n.regexp)(e).test(t)}))}));if(!o)return[t];var s,u=Object(c.castArray)(o.tag),l=Object(c.find)(u,(function(e){return Object(_n.regexp)(e).test(t)})),f=r;if(s=Object(_n.next)(l,t,r)){r=s.index+s.content.length;var d=t.substr(0,s.index),p=t.substr(r);if(!(Object(c.includes)(s.shortcode.content||"","<")||/(\n|

    )\s*$/.test(d)&&/^\s*(\n|<\/p>)/.test(p)))return e(t,r);if(o.isMatch&&!o.isMatch(s.shortcode.attrs))return e(t,f,[].concat(Object(i.a)(n),[o.blockName]));var h=Object(c.mapValues)(Object(c.pickBy)(o.attributes,(function(e){return e.shortcode})),(function(e){return e.shortcode(s.shortcode.attrs,s)})),g=rt(o.blockName,qr(wn(wn({},Re(o.blockName)),{},{attributes:o.attributes}),s.shortcode.content,h));return[].concat(Object(i.a)(e(d)),[g],Object(i.a)(e(p)))}return[t]},kn=r(285),On=new(r.n(kn).a.Converter)({noHeaderId:!0,tables:!0,literalMidWordUnderscores:!0,omitExtraWLInCodeBlocks:!0,simpleLineBreaks:!0,strikethrough:!0});function jn(e){if("IFRAME"===e.nodeName){var t=e.ownerDocument.createTextNode(e.src);e.parentNode.replaceChild(t,e)}}function Cn(e){e.id&&0===e.id.indexOf("docs-internal-guid-")&&Object(pe.unwrap)(e)}function Tn(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function xn(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2?arguments[2]:void 0,n=document.implementation.createHTMLDocument("");return n.body.innerHTML=e,Sn(n.body.childNodes,t,n,r),n.body.innerHTML}function En(e,t){var r=e["".concat(t,"Sibling")];if(r&&Object(pe.isPhrasingContent)(r))return r;var n=e.parentNode;return n&&Object(pe.isPhrasingContent)(n)?En(n,t):void 0}function Bn(e){if(e.nodeType===e.TEXT_NODE){for(var t=e;t=t.parentNode;)if(t.nodeType===t.ELEMENT_NODE&&"PRE"===t.nodeName)return;var r,n=e.data.replace(/[ \r\n\t]+/g," ");if(" "===n[0]){var a=En(e,"previous");a&&"BR"!==a.nodeName&&" "!==a.textContent.slice(-1)||(n=n.slice(1))}if(" "===n[n.length-1]){var o=En(e,"next");(!o||"BR"===o.nodeName||o.nodeType===o.TEXT_NODE&&(" "===(r=o.textContent[0])||"\r"===r||"\n"===r||"\t"===r))&&(n=n.slice(0,-1))}n?e.data=n:e.parentNode.removeChild(e)}}function Nn(e){"BR"===e.nodeName&&(En(e,"next")||e.parentNode.removeChild(e))}function Ln(e){"P"===e.nodeName&&(e.hasChildNodes()||e.parentNode.removeChild(e))}function Mn(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function zn(e){for(var t=1;t]+>/g,"")).replace(/^\s*]*>\s*]*>(?:\s*)?/i,"")).replace(/(?:\s*)?<\/body>\s*<\/html>\s*$/i,""),"INLINE"!==s){var f=n||o;if(-1!==f.indexOf("\x3c!-- wp:"))return Yr(f)}if(String.prototype.normalize&&(n=n.normalize()),!o||n&&!function(e){return!/<(?!br[ />])/i.test(e)}(n)||(t=o,n=On.makeHtml(function(e){return e.replace(/((?:^|\n)```)([^\n`]+)(```(?:$|\n))/,(function(e,t,r,n){return"".concat(t,"\n").concat(r,"\n").concat(n)}))}(t)),"AUTO"===s&&-1===o.indexOf("\n")&&0!==o.indexOf("

    ")&&0===n.indexOf("

    ")&&(s="INLINE")),"INLINE"===s)return Hn(n,l);var d=yn(n),p=d.length>1;if("AUTO"===s&&!p&&function(e,t){var r=document.implementation.createHTMLDocument("");r.body.innerHTML=e;var n=Array.from(r.body.children);return!n.some(tn)&&en(n,t)}(n,u))return Hn(n,l);var h=Object(c.filter)(lt("from"),{type:"raw"}).map((function(e){return e.isMatch?e:zn(zn({},e),{},{isMatch:function(t){return e.selector&&t.matches(e.selector)}})})),g=Object(pe.getPhrasingContentSchema)("paste"),b=Pn(h,g,!0),m=Object(c.compact)(Object(c.flatMap)(d,(function(e){if("string"!=typeof e)return e;var t=[Cn,sn,nn,un,hn,rn,Xr,Jr,jn,mn,gn],r=zn(zn({},b),g);return e=An(e,t,b),e=An(e=Qr(e=Object(pe.removeInvalidHTML)(e,r)),[Bn,Nn,Ln],b),Dn.log("Processed HTML piece:\n\n",e),function(e){var t=e.html,r=e.rawTransforms,n=document.implementation.createHTMLDocument("");return n.body.innerHTML=t,Array.from(n.body.children).map((function(e){var t=ut(r,(function(t){return(0,t.isMatch)(e)}));if(!t)return rt("core/html",qr("core/html",e.outerHTML));var n=t.transform,a=t.blockName;return n?n(e):rt(a,qr(a,e.outerHTML))}))}({html:e,rawTransforms:h})})));if("AUTO"===s&&1===m.length&&qe(m[0].name,"__unstablePasteTextInline",!1)){var _=o.trim();if(""!==_&&-1===_.indexOf("\n"))return Object(pe.removeInvalidHTML)(er(m[0]),g)}return m}var Vn=r(36),Rn=r.n(Vn);function Fn(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function $n(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return e.length===t.length&&Object(c.every)(t,(function(t,r){var n=Object(ee.a)(t,3),a=n[0],o=n[2],i=e[r];return a===i.name&&Qn(i.innerBlocks,o)}))}function Xn(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;return t?Object(c.map)(t,(function(t,r){var n=Object(ee.a)(t,3),a=n[0],o=n[1],i=n[2],s=e[r];if(s&&s.name===a){var u=Xn(s.innerBlocks,i);return Zn(Zn({},s),{},{innerBlocks:u})}var l=Re(a),f=function(e,t){return Object(c.mapValues)(t,(function(t,r){return d(e[r],t)}))},d=function(e,t){return r=e,"html"===Object(c.get)(r,["source"])&&Object(c.isArray)(t)?Object(de.renderToString)(t):function(e){return"query"===Object(c.get)(e,["source"])}(e)&&t?t.map((function(t){return f(e.query,t)})):t;var r},p=Ur(a,f(Object(c.get)(l,["attributes"],{}),o));return rt(p.name,p.attributes,Xn([],i))})):e}},5:function(e,t,r){"use strict";function n(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}r.d(t,"a",(function(){return n}))},64:function(e,t){!function(){e.exports=this.wp.isShallowEqual}()},66:function(e,t,r){var n;!function(a){var o=/^\s+/,i=/\s+$/,s=0,c=a.round,u=a.min,l=a.max,f=a.random;function d(e,t){if(t=t||{},(e=e||"")instanceof d)return e;if(!(this instanceof d))return new d(e,t);var r=function(e){var t={r:0,g:0,b:0},r=1,n=null,s=null,c=null,f=!1,d=!1;"string"==typeof e&&(e=function(e){e=e.replace(o,"").replace(i,"").toLowerCase();var t,r=!1;if(A[e])e=A[e],r=!0;else if("transparent"==e)return{r:0,g:0,b:0,a:0,format:"name"};if(t=$.rgb.exec(e))return{r:t[1],g:t[2],b:t[3]};if(t=$.rgba.exec(e))return{r:t[1],g:t[2],b:t[3],a:t[4]};if(t=$.hsl.exec(e))return{h:t[1],s:t[2],l:t[3]};if(t=$.hsla.exec(e))return{h:t[1],s:t[2],l:t[3],a:t[4]};if(t=$.hsv.exec(e))return{h:t[1],s:t[2],v:t[3]};if(t=$.hsva.exec(e))return{h:t[1],s:t[2],v:t[3],a:t[4]};if(t=$.hex8.exec(e))return{r:M(t[1]),g:M(t[2]),b:M(t[3]),a:I(t[4]),format:r?"name":"hex8"};if(t=$.hex6.exec(e))return{r:M(t[1]),g:M(t[2]),b:M(t[3]),format:r?"name":"hex"};if(t=$.hex4.exec(e))return{r:M(t[1]+""+t[1]),g:M(t[2]+""+t[2]),b:M(t[3]+""+t[3]),a:I(t[4]+""+t[4]),format:r?"name":"hex8"};if(t=$.hex3.exec(e))return{r:M(t[1]+""+t[1]),g:M(t[2]+""+t[2]),b:M(t[3]+""+t[3]),format:r?"name":"hex"};return!1}(e));"object"==typeof e&&(q(e.r)&&q(e.g)&&q(e.b)?(p=e.r,h=e.g,g=e.b,t={r:255*N(p,255),g:255*N(h,255),b:255*N(g,255)},f=!0,d="%"===String(e.r).substr(-1)?"prgb":"rgb"):q(e.h)&&q(e.s)&&q(e.v)?(n=D(e.s),s=D(e.v),t=function(e,t,r){e=6*N(e,360),t=N(t,100),r=N(r,100);var n=a.floor(e),o=e-n,i=r*(1-t),s=r*(1-o*t),c=r*(1-(1-o)*t),u=n%6;return{r:255*[r,s,i,i,c,r][u],g:255*[c,r,r,s,i,i][u],b:255*[i,i,c,r,r,s][u]}}(e.h,n,s),f=!0,d="hsv"):q(e.h)&&q(e.s)&&q(e.l)&&(n=D(e.s),c=D(e.l),t=function(e,t,r){var n,a,o;function i(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+6*(t-e)*r:r<.5?t:r<2/3?e+(t-e)*(2/3-r)*6:e}if(e=N(e,360),t=N(t,100),r=N(r,100),0===t)n=a=o=r;else{var s=r<.5?r*(1+t):r+t-r*t,c=2*r-s;n=i(c,s,e+1/3),a=i(c,s,e),o=i(c,s,e-1/3)}return{r:255*n,g:255*a,b:255*o}}(e.h,n,c),f=!0,d="hsl"),e.hasOwnProperty("a")&&(r=e.a));var p,h,g;return r=B(r),{ok:f,format:e.format||d,r:u(255,l(t.r,0)),g:u(255,l(t.g,0)),b:u(255,l(t.b,0)),a:r}}(e);this._originalInput=e,this._r=r.r,this._g=r.g,this._b=r.b,this._a=r.a,this._roundA=c(100*this._a)/100,this._format=t.format||r.format,this._gradientType=t.gradientType,this._r<1&&(this._r=c(this._r)),this._g<1&&(this._g=c(this._g)),this._b<1&&(this._b=c(this._b)),this._ok=r.ok,this._tc_id=s++}function p(e,t,r){e=N(e,255),t=N(t,255),r=N(r,255);var n,a,o=l(e,t,r),i=u(e,t,r),s=(o+i)/2;if(o==i)n=a=0;else{var c=o-i;switch(a=s>.5?c/(2-o-i):c/(o+i),o){case e:n=(t-r)/c+(t>1)+720)%360;--t;)n.h=(n.h+a)%360,o.push(d(n));return o}function S(e,t){t=t||6;for(var r=d(e).toHsv(),n=r.h,a=r.s,o=r.v,i=[],s=1/t;t--;)i.push(d({h:n,s:a,v:o})),o=(o+s)%1;return i}d.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},getLuminance:function(){var e,t,r,n=this.toRgb();return e=n.r/255,t=n.g/255,r=n.b/255,.2126*(e<=.03928?e/12.92:a.pow((e+.055)/1.055,2.4))+.7152*(t<=.03928?t/12.92:a.pow((t+.055)/1.055,2.4))+.0722*(r<=.03928?r/12.92:a.pow((r+.055)/1.055,2.4))},setAlpha:function(e){return this._a=B(e),this._roundA=c(100*this._a)/100,this},toHsv:function(){var e=h(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=h(this._r,this._g,this._b),t=c(360*e.h),r=c(100*e.s),n=c(100*e.v);return 1==this._a?"hsv("+t+", "+r+"%, "+n+"%)":"hsva("+t+", "+r+"%, "+n+"%, "+this._roundA+")"},toHsl:function(){var e=p(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=p(this._r,this._g,this._b),t=c(360*e.h),r=c(100*e.s),n=c(100*e.l);return 1==this._a?"hsl("+t+", "+r+"%, "+n+"%)":"hsla("+t+", "+r+"%, "+n+"%, "+this._roundA+")"},toHex:function(e){return g(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return function(e,t,r,n,a){var o=[z(c(e).toString(16)),z(c(t).toString(16)),z(c(r).toString(16)),z(H(n))];if(a&&o[0].charAt(0)==o[0].charAt(1)&&o[1].charAt(0)==o[1].charAt(1)&&o[2].charAt(0)==o[2].charAt(1)&&o[3].charAt(0)==o[3].charAt(1))return o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0)+o[3].charAt(0);return o.join("")}(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:c(this._r),g:c(this._g),b:c(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+c(this._r)+", "+c(this._g)+", "+c(this._b)+")":"rgba("+c(this._r)+", "+c(this._g)+", "+c(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:c(100*N(this._r,255))+"%",g:c(100*N(this._g,255))+"%",b:c(100*N(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+c(100*N(this._r,255))+"%, "+c(100*N(this._g,255))+"%, "+c(100*N(this._b,255))+"%)":"rgba("+c(100*N(this._r,255))+"%, "+c(100*N(this._g,255))+"%, "+c(100*N(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(E[g(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var t="#"+b(this._r,this._g,this._b,this._a),r=t,n=this._gradientType?"GradientType = 1, ":"";if(e){var a=d(e);r="#"+b(a._r,a._g,a._b,a._a)}return"progid:DXImageTransform.Microsoft.gradient("+n+"startColorstr="+t+",endColorstr="+r+")"},toString:function(e){var t=!!e;e=e||this._format;var r=!1,n=this._a<1&&this._a>=0;return t||!n||"hex"!==e&&"hex6"!==e&&"hex3"!==e&&"hex4"!==e&&"hex8"!==e&&"name"!==e?("rgb"===e&&(r=this.toRgbString()),"prgb"===e&&(r=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(r=this.toHexString()),"hex3"===e&&(r=this.toHexString(!0)),"hex4"===e&&(r=this.toHex8String(!0)),"hex8"===e&&(r=this.toHex8String()),"name"===e&&(r=this.toName()),"hsl"===e&&(r=this.toHslString()),"hsv"===e&&(r=this.toHsvString()),r||this.toHexString()):"name"===e&&0===this._a?this.toName():this.toRgbString()},clone:function(){return d(this.toString())},_applyModification:function(e,t){var r=e.apply(null,[this].concat([].slice.call(t)));return this._r=r._r,this._g=r._g,this._b=r._b,this.setAlpha(r._a),this},lighten:function(){return this._applyModification(w,arguments)},brighten:function(){return this._applyModification(y,arguments)},darken:function(){return this._applyModification(k,arguments)},desaturate:function(){return this._applyModification(m,arguments)},saturate:function(){return this._applyModification(_,arguments)},greyscale:function(){return this._applyModification(v,arguments)},spin:function(){return this._applyModification(O,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(P,arguments)},complement:function(){return this._applyCombination(j,arguments)},monochromatic:function(){return this._applyCombination(S,arguments)},splitcomplement:function(){return this._applyCombination(x,arguments)},triad:function(){return this._applyCombination(C,arguments)},tetrad:function(){return this._applyCombination(T,arguments)}},d.fromRatio=function(e,t){if("object"==typeof e){var r={};for(var n in e)e.hasOwnProperty(n)&&(r[n]="a"===n?e[n]:D(e[n]));e=r}return d(e,t)},d.equals=function(e,t){return!(!e||!t)&&d(e).toRgbString()==d(t).toRgbString()},d.random=function(){return d.fromRatio({r:f(),g:f(),b:f()})},d.mix=function(e,t,r){r=0===r?0:r||50;var n=d(e).toRgb(),a=d(t).toRgb(),o=r/100;return d({r:(a.r-n.r)*o+n.r,g:(a.g-n.g)*o+n.g,b:(a.b-n.b)*o+n.b,a:(a.a-n.a)*o+n.a})},d.readability=function(e,t){var r=d(e),n=d(t);return(a.max(r.getLuminance(),n.getLuminance())+.05)/(a.min(r.getLuminance(),n.getLuminance())+.05)},d.isReadable=function(e,t,r){var n,a,o=d.readability(e,t);switch(a=!1,(n=function(e){var t,r;t=((e=e||{level:"AA",size:"small"}).level||"AA").toUpperCase(),r=(e.size||"small").toLowerCase(),"AA"!==t&&"AAA"!==t&&(t="AA");"small"!==r&&"large"!==r&&(r="small");return{level:t,size:r}}(r)).level+n.size){case"AAsmall":case"AAAlarge":a=o>=4.5;break;case"AAlarge":a=o>=3;break;case"AAAsmall":a=o>=7}return a},d.mostReadable=function(e,t,r){var n,a,o,i,s=null,c=0;a=(r=r||{}).includeFallbackColors,o=r.level,i=r.size;for(var u=0;uc&&(c=n,s=d(t[u]));return d.isReadable(e,s,{level:o,size:i})||!a?s:(r.includeFallbackColors=!1,d.mostReadable(e,["#fff","#000"],r))};var A=d.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},E=d.hexNames=function(e){var t={};for(var r in e)e.hasOwnProperty(r)&&(t[e[r]]=r);return t}(A);function B(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function N(e,t){(function(e){return"string"==typeof e&&-1!=e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var r=function(e){return"string"==typeof e&&-1!=e.indexOf("%")}(e);return e=u(t,l(0,parseFloat(e))),r&&(e=parseInt(e*t,10)/100),a.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function L(e){return u(1,l(0,e))}function M(e){return parseInt(e,16)}function z(e){return 1==e.length?"0"+e:""+e}function D(e){return e<=1&&(e=100*e+"%"),e}function H(e){return a.round(255*parseFloat(e)).toString(16)}function I(e){return M(e)/255}var V,R,F,$=(R="[\\s|\\(]+("+(V="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+V+")[,|\\s]+("+V+")\\s*\\)?",F="[\\s|\\(]+("+V+")[,|\\s]+("+V+")[,|\\s]+("+V+")[,|\\s]+("+V+")\\s*\\)?",{CSS_UNIT:new RegExp(V),rgb:new RegExp("rgb"+R),rgba:new RegExp("rgba"+F),hsl:new RegExp("hsl"+R),hsla:new RegExp("hsla"+F),hsv:new RegExp("hsv"+R),hsva:new RegExp("hsva"+F),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function q(e){return!!$.CSS_UNIT.exec(e)}e.exports?e.exports=d:void 0===(n=function(){return d}.call(t,r,t,e))||(e.exports=n)}(Math)},69:function(e,t){!function(){e.exports=this.wp.htmlEntities}()},7:function(e,t){!function(){e.exports=this.wp.primitives}()},8:function(e,t,r){"use strict";function n(){return(n=Object.assign||function(e){for(var t=1;t 1 && typeof allowMissing !== 'boolean') { - throw new TypeError('"allowMissing" argument must be a boolean'); + throw new $TypeError('"allowMissing" argument must be a boolean'); } var parts = stringToPath(name); + var intrinsicBaseName = parts.length > 0 ? parts[0] : ''; + + var intrinsic = getBaseIntrinsic('%' + intrinsicBaseName + '%', allowMissing); + var intrinsicRealName = intrinsic.name; + var value = intrinsic.value; + var skipFurtherCaching = false; - var value = getBaseIntrinsic('%' + (parts.length > 0 ? parts[0] : '') + '%', allowMissing); - for (var i = 1; i < parts.length; i += 1) { - if (value != null) { + var alias = intrinsic.alias; + if (alias) { + intrinsicBaseName = alias[0]; + $spliceApply(parts, $concat([0, 1], alias)); + } + + for (var i = 1, isOwn = true; i < parts.length; i += 1) { + var part = parts[i]; + if (part === 'constructor' || !isOwn) { + skipFurtherCaching = true; + } + + intrinsicBaseName += '.' + part; + intrinsicRealName = '%' + intrinsicBaseName + '%'; + + if (hasOwn(INTRINSICS, intrinsicRealName)) { + value = INTRINSICS[intrinsicRealName]; + } else if (value != null) { if ($gOPD && (i + 1) >= parts.length) { - var desc = $gOPD(value, parts[i]); - if (!allowMissing && !(parts[i] in value)) { + var desc = $gOPD(value, part); + isOwn = !!desc; + + if (!allowMissing && !(part in value)) { throw new $TypeError('base intrinsic for ' + name + ' exists, but the property is not available.'); } // By convention, when a data property is converted to an accessor @@ -2735,9 +2790,18 @@ module.exports = function GetIntrinsic(name, allowMissing) { // uphold the illusion by pretending to see that original data // property, i.e., returning the value rather than the getter // itself. - value = desc && 'get' in desc && !('originalValue' in desc.get) ? desc.get : value[parts[i]]; + if (isOwn && 'get' in desc && !('originalValue' in desc.get)) { + value = desc.get; + } else { + value = value[part]; + } } else { - value = value[parts[i]]; + isOwn = hasOwn(value, part); + value = value[part]; + } + + if (isOwn && !skipFurtherCaching) { + INTRINSICS[intrinsicRealName] = value; } } } @@ -4967,7 +5031,7 @@ var useCreateElement = function useCreateElement(type, props, children) { // UNUSED EXPORTS: warning, useWarning // EXTERNAL MODULE: ./node_modules/reakit-warning/es/warning.js -var warning = __webpack_require__(108); +var warning = __webpack_require__(110); // EXTERNAL MODULE: external {"this":"React"} var external_this_React_ = __webpack_require__(13); @@ -5088,8 +5152,8 @@ function createOnKeyDown(_temp) { /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_5__); /* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(2); /* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_6__); -/* harmony import */ var _popover__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(114); -/* harmony import */ var _shortcut__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(172); +/* harmony import */ var _popover__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(115); +/* harmony import */ var _shortcut__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(173); @@ -5386,8 +5450,20 @@ function Icon(_ref) { /***/ }), /* 86 */, -/* 87 */, -/* 88 */ +/* 87 */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +var bind = __webpack_require__(105); + +module.exports = bind.call(Function.call, Object.prototype.hasOwnProperty); + + +/***/ }), +/* 88 */, +/* 89 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -5507,79 +5583,70 @@ var Clickable = Object(reakit_system_createComponent__WEBPACK_IMPORTED_MODULE_1_ -/***/ }), -/* 89 */ -/***/ (function(module, exports, __webpack_require__) { - -module.exports = true ? __webpack_require__(374) : undefined; - - - /***/ }), /* 90 */ -/***/ (function(module, exports) { - -(function() { module.exports = this["wp"]["warning"]; }()); - -/***/ }), -/* 91 */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0); -/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__); -/** - * WordPress dependencies - */ - -var ToolbarContext = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createContext"])(); -/* harmony default export */ __webpack_exports__["a"] = (ToolbarContext); - - -/***/ }), -/* 92 */, -/* 93 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var ES5Type = __webpack_require__(335); +var ES5Type = __webpack_require__(344); -// https://ecma-international.org/ecma-262/6.0/#sec-ecmascript-data-types-and-values +// https://tc39.es/ecma262/2020/#sec-ecmascript-data-types-and-values module.exports = function Type(x) { if (typeof x === 'symbol') { return 'Symbol'; } + if (typeof x === 'bigint') { + return 'BigInt'; + } return ES5Type(x); }; /***/ }), -/* 94 */ +/* 91 */ /***/ (function(module, exports, __webpack_require__) { -"use strict"; +module.exports = true ? __webpack_require__(388) : undefined; -var bind = __webpack_require__(120); -module.exports = bind.call(Function.call, Object.prototype.hasOwnProperty); +/***/ }), +/* 92 */ +/***/ (function(module, exports) { +(function() { module.exports = this["wp"]["warning"]; }()); /***/ }), +/* 93 */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0); +/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__); +/** + * WordPress dependencies + */ + +var ToolbarContext = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createContext"])(); +/* harmony default export */ __webpack_exports__["a"] = (ToolbarContext); + + +/***/ }), +/* 94 */, /* 95 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var defineProperties = __webpack_require__(103); +var defineProperties = __webpack_require__(104); var implementation = __webpack_require__(239); var getPolyfill = __webpack_require__(240); -var shim = __webpack_require__(371); +var shim = __webpack_require__(385); var polyfill = getPolyfill(); @@ -5669,7 +5736,7 @@ var unstable_Id = Object(reakit_system_createComponent__WEBPACK_IMPORTED_MODULE_ "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return fireEvent; }); -/* harmony import */ var _createEvent_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(126); +/* harmony import */ var _createEvent_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(127); @@ -5741,6 +5808,197 @@ function setTextFieldValue(element, value) { /* 100 */, /* 101 */, /* 102 */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(8); +/* harmony import */ var _babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(21); +/* harmony import */ var _babel_runtime_helpers_esm_createClass__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(22); +/* harmony import */ var _babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(16); +/* harmony import */ var _babel_runtime_helpers_esm_inherits__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(23); +/* harmony import */ var _babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(24); +/* harmony import */ var _babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(19); +/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(0); +/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_7__); +/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(2); +/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_8__); +/* harmony import */ var _wordpress_compose__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(10); +/* harmony import */ var _wordpress_compose__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(_wordpress_compose__WEBPACK_IMPORTED_MODULE_9__); + + + + + + + + + +function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = Object(_babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_6__[/* default */ "a"])(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = Object(_babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_6__[/* default */ "a"])(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return Object(_babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_5__[/* default */ "a"])(this, result); }; } + +function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } } + +/** + * External dependencies + */ + +/** + * WordPress dependencies + */ + + + +/** + * Input types which are classified as button types, for use in considering + * whether element is a (focus-normalized) button. + * + * @type {string[]} + */ + +var INPUT_BUTTON_TYPES = ['button', 'submit']; +/** + * Returns true if the given element is a button element subject to focus + * normalization, or false otherwise. + * + * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#Clicking_and_focus + * + * @param {Element} element Element to test. + * + * @return {boolean} Whether element is a button. + */ + +function isFocusNormalizedButton(element) { + switch (element.nodeName) { + case 'A': + case 'BUTTON': + return true; + + case 'INPUT': + return Object(lodash__WEBPACK_IMPORTED_MODULE_8__["includes"])(INPUT_BUTTON_TYPES, element.type); + } + + return false; +} + +/* harmony default export */ __webpack_exports__["a"] = (Object(_wordpress_compose__WEBPACK_IMPORTED_MODULE_9__["createHigherOrderComponent"])(function (WrappedComponent) { + return /*#__PURE__*/function (_Component) { + Object(_babel_runtime_helpers_esm_inherits__WEBPACK_IMPORTED_MODULE_4__[/* default */ "a"])(_class, _Component); + + var _super = _createSuper(_class); + + function _class() { + var _this; + + Object(_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_1__[/* default */ "a"])(this, _class); + + _this = _super.apply(this, arguments); + _this.bindNode = _this.bindNode.bind(Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_3__[/* default */ "a"])(_this)); + _this.cancelBlurCheck = _this.cancelBlurCheck.bind(Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_3__[/* default */ "a"])(_this)); + _this.queueBlurCheck = _this.queueBlurCheck.bind(Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_3__[/* default */ "a"])(_this)); + _this.normalizeButtonFocus = _this.normalizeButtonFocus.bind(Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_3__[/* default */ "a"])(_this)); + return _this; + } + + Object(_babel_runtime_helpers_esm_createClass__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(_class, [{ + key: "componentWillUnmount", + value: function componentWillUnmount() { + this.cancelBlurCheck(); + } + }, { + key: "bindNode", + value: function bindNode(node) { + if (node) { + this.node = node; + } else { + delete this.node; + this.cancelBlurCheck(); + } + } + }, { + key: "queueBlurCheck", + value: function queueBlurCheck(event) { + var _this2 = this; + + // React does not allow using an event reference asynchronously + // due to recycling behavior, except when explicitly persisted. + event.persist(); // Skip blur check if clicking button. See `normalizeButtonFocus`. + + if (this.preventBlurCheck) { + return; + } + + this.blurCheckTimeout = setTimeout(function () { + // If document is not focused then focus should remain + // inside the wrapped component and therefore we cancel + // this blur event thereby leaving focus in place. + // https://developer.mozilla.org/en-US/docs/Web/API/Document/hasFocus. + if (!document.hasFocus()) { + event.preventDefault(); + return; + } + + if ('function' === typeof _this2.node.handleFocusOutside) { + _this2.node.handleFocusOutside(event); + } + }, 0); + } + }, { + key: "cancelBlurCheck", + value: function cancelBlurCheck() { + clearTimeout(this.blurCheckTimeout); + } + /** + * Handles a mousedown or mouseup event to respectively assign and + * unassign a flag for preventing blur check on button elements. Some + * browsers, namely Firefox and Safari, do not emit a focus event on + * button elements when clicked, while others do. The logic here + * intends to normalize this as treating click on buttons as focus. + * + * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#Clicking_and_focus + * + * @param {MouseEvent} event Event for mousedown or mouseup. + */ + + }, { + key: "normalizeButtonFocus", + value: function normalizeButtonFocus(event) { + var type = event.type, + target = event.target; + var isInteractionEnd = Object(lodash__WEBPACK_IMPORTED_MODULE_8__["includes"])(['mouseup', 'touchend'], type); + + if (isInteractionEnd) { + this.preventBlurCheck = false; + } else if (isFocusNormalizedButton(target)) { + this.preventBlurCheck = true; + } + } + }, { + key: "render", + value: function render() { + // Disable reason: See `normalizeButtonFocus` for browser-specific + // focus event normalization. + + /* eslint-disable jsx-a11y/no-static-element-interactions */ + return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_7__["createElement"])("div", { + onFocus: this.cancelBlurCheck, + onMouseDown: this.normalizeButtonFocus, + onMouseUp: this.normalizeButtonFocus, + onTouchStart: this.normalizeButtonFocus, + onTouchEnd: this.normalizeButtonFocus, + onBlur: this.queueBlurCheck + }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_7__["createElement"])(WrappedComponent, Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])({ + ref: this.bindNode + }, this.props))); + /* eslint-enable jsx-a11y/no-static-element-interactions */ + } + }]); + + return _class; + }(_wordpress_element__WEBPACK_IMPORTED_MODULE_7__["Component"]); +}, 'withFocusOutside')); + + +/***/ }), +/* 103 */ /***/ (function(module, exports) { // shim for using process in browser @@ -5930,13 +6188,13 @@ process.umask = function() { return 0; }; /***/ }), -/* 103 */ +/* 104 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var keys = __webpack_require__(187); +var keys = __webpack_require__(188); var hasSymbols = typeof Symbol === 'function' && typeof Symbol('foo') === 'symbol'; var toStr = Object.prototype.toString; @@ -5995,7 +6253,19 @@ module.exports = defineProperties; /***/ }), -/* 104 */ +/* 105 */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +var implementation = __webpack_require__(336); + +module.exports = Function.prototype.bind || implementation; + + +/***/ }), +/* 106 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -6075,10 +6345,10 @@ function fireKeyboardEvent(element, type, eventInit) { /***/ }), -/* 105 */, -/* 106 */, /* 107 */, -/* 108 */ +/* 108 */, +/* 109 */, +/* 110 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -6103,8 +6373,8 @@ function warning(condition) { /***/ }), -/* 109 */, -/* 110 */ +/* 111 */, +/* 112 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -6323,7 +6593,7 @@ var CalendarDayPhrases = exports.CalendarDayPhrases = { }; /***/ }), -/* 111 */ +/* 113 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -6353,7 +6623,7 @@ function getPhrasePropTypes(defaultPhrases) { } /***/ }), -/* 112 */ +/* 114 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -6382,13 +6652,13 @@ var _propTypes = __webpack_require__(28); var _propTypes2 = _interopRequireDefault(_propTypes); -var _hoistNonReactStatics = __webpack_require__(388); +var _hoistNonReactStatics = __webpack_require__(402); var _hoistNonReactStatics2 = _interopRequireDefault(_hoistNonReactStatics); -var _constants = __webpack_require__(391); +var _constants = __webpack_require__(405); -var _brcast = __webpack_require__(392); +var _brcast = __webpack_require__(406); var _brcast2 = _interopRequireDefault(_brcast); @@ -6607,198 +6877,7 @@ function withStyles(styleFn) { } /***/ }), -/* 113 */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(8); -/* harmony import */ var _babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(21); -/* harmony import */ var _babel_runtime_helpers_esm_createClass__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(22); -/* harmony import */ var _babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(16); -/* harmony import */ var _babel_runtime_helpers_esm_inherits__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(23); -/* harmony import */ var _babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(24); -/* harmony import */ var _babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(19); -/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(0); -/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_7__); -/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(2); -/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_8__); -/* harmony import */ var _wordpress_compose__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(10); -/* harmony import */ var _wordpress_compose__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(_wordpress_compose__WEBPACK_IMPORTED_MODULE_9__); - - - - - - - - - -function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = Object(_babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_6__[/* default */ "a"])(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = Object(_babel_runtime_helpers_esm_getPrototypeOf__WEBPACK_IMPORTED_MODULE_6__[/* default */ "a"])(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return Object(_babel_runtime_helpers_esm_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_5__[/* default */ "a"])(this, result); }; } - -function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } } - -/** - * External dependencies - */ - -/** - * WordPress dependencies - */ - - - -/** - * Input types which are classified as button types, for use in considering - * whether element is a (focus-normalized) button. - * - * @type {string[]} - */ - -var INPUT_BUTTON_TYPES = ['button', 'submit']; -/** - * Returns true if the given element is a button element subject to focus - * normalization, or false otherwise. - * - * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#Clicking_and_focus - * - * @param {Element} element Element to test. - * - * @return {boolean} Whether element is a button. - */ - -function isFocusNormalizedButton(element) { - switch (element.nodeName) { - case 'A': - case 'BUTTON': - return true; - - case 'INPUT': - return Object(lodash__WEBPACK_IMPORTED_MODULE_8__["includes"])(INPUT_BUTTON_TYPES, element.type); - } - - return false; -} - -/* harmony default export */ __webpack_exports__["a"] = (Object(_wordpress_compose__WEBPACK_IMPORTED_MODULE_9__["createHigherOrderComponent"])(function (WrappedComponent) { - return /*#__PURE__*/function (_Component) { - Object(_babel_runtime_helpers_esm_inherits__WEBPACK_IMPORTED_MODULE_4__[/* default */ "a"])(_class, _Component); - - var _super = _createSuper(_class); - - function _class() { - var _this; - - Object(_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_1__[/* default */ "a"])(this, _class); - - _this = _super.apply(this, arguments); - _this.bindNode = _this.bindNode.bind(Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_3__[/* default */ "a"])(_this)); - _this.cancelBlurCheck = _this.cancelBlurCheck.bind(Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_3__[/* default */ "a"])(_this)); - _this.queueBlurCheck = _this.queueBlurCheck.bind(Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_3__[/* default */ "a"])(_this)); - _this.normalizeButtonFocus = _this.normalizeButtonFocus.bind(Object(_babel_runtime_helpers_esm_assertThisInitialized__WEBPACK_IMPORTED_MODULE_3__[/* default */ "a"])(_this)); - return _this; - } - - Object(_babel_runtime_helpers_esm_createClass__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(_class, [{ - key: "componentWillUnmount", - value: function componentWillUnmount() { - this.cancelBlurCheck(); - } - }, { - key: "bindNode", - value: function bindNode(node) { - if (node) { - this.node = node; - } else { - delete this.node; - this.cancelBlurCheck(); - } - } - }, { - key: "queueBlurCheck", - value: function queueBlurCheck(event) { - var _this2 = this; - - // React does not allow using an event reference asynchronously - // due to recycling behavior, except when explicitly persisted. - event.persist(); // Skip blur check if clicking button. See `normalizeButtonFocus`. - - if (this.preventBlurCheck) { - return; - } - - this.blurCheckTimeout = setTimeout(function () { - // If document is not focused then focus should remain - // inside the wrapped component and therefore we cancel - // this blur event thereby leaving focus in place. - // https://developer.mozilla.org/en-US/docs/Web/API/Document/hasFocus. - if (!document.hasFocus()) { - event.preventDefault(); - return; - } - - if ('function' === typeof _this2.node.handleFocusOutside) { - _this2.node.handleFocusOutside(event); - } - }, 0); - } - }, { - key: "cancelBlurCheck", - value: function cancelBlurCheck() { - clearTimeout(this.blurCheckTimeout); - } - /** - * Handles a mousedown or mouseup event to respectively assign and - * unassign a flag for preventing blur check on button elements. Some - * browsers, namely Firefox and Safari, do not emit a focus event on - * button elements when clicked, while others do. The logic here - * intends to normalize this as treating click on buttons as focus. - * - * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#Clicking_and_focus - * - * @param {MouseEvent} event Event for mousedown or mouseup. - */ - - }, { - key: "normalizeButtonFocus", - value: function normalizeButtonFocus(event) { - var type = event.type, - target = event.target; - var isInteractionEnd = Object(lodash__WEBPACK_IMPORTED_MODULE_8__["includes"])(['mouseup', 'touchend'], type); - - if (isInteractionEnd) { - this.preventBlurCheck = false; - } else if (isFocusNormalizedButton(target)) { - this.preventBlurCheck = true; - } - } - }, { - key: "render", - value: function render() { - // Disable reason: See `normalizeButtonFocus` for browser-specific - // focus event normalization. - - /* eslint-disable jsx-a11y/no-static-element-interactions */ - return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_7__["createElement"])("div", { - onFocus: this.cancelBlurCheck, - onMouseDown: this.normalizeButtonFocus, - onMouseUp: this.normalizeButtonFocus, - onTouchStart: this.normalizeButtonFocus, - onTouchEnd: this.normalizeButtonFocus, - onBlur: this.queueBlurCheck - }, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_7__["createElement"])(WrappedComponent, Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])({ - ref: this.bindNode - }, this.props))); - /* eslint-enable jsx-a11y/no-static-element-interactions */ - } - }]); - - return _class; - }(_wordpress_element__WEBPACK_IMPORTED_MODULE_7__["Component"]); -}, 'withFocusOutside')); - - -/***/ }), -/* 114 */ +/* 115 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -7104,7 +7183,7 @@ var possibleConstructorReturn = __webpack_require__(24); var getPrototypeOf = __webpack_require__(19); // EXTERNAL MODULE: ./node_modules/@wordpress/components/build-module/higher-order/with-focus-outside/index.js -var with_focus_outside = __webpack_require__(113); +var with_focus_outside = __webpack_require__(102); // CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/popover/detect-outside.js @@ -7159,19 +7238,19 @@ var detect_outside_PopoverDetectOutside = /*#__PURE__*/function (_Component) { var build_module_button = __webpack_require__(35); // EXTERNAL MODULE: ./node_modules/@wordpress/components/build-module/scroll-lock/index.js -var scroll_lock = __webpack_require__(166); +var scroll_lock = __webpack_require__(167); // EXTERNAL MODULE: ./node_modules/@wordpress/components/build-module/isolated-event-container/index.js var isolated_event_container = __webpack_require__(136); // EXTERNAL MODULE: ./node_modules/@wordpress/components/build-module/slot-fill/bubbles-virtually/use-slot.js -var use_slot = __webpack_require__(165); +var use_slot = __webpack_require__(166); // EXTERNAL MODULE: ./node_modules/@wordpress/components/build-module/slot-fill/index.js + 6 modules -var slot_fill = __webpack_require__(125); +var slot_fill = __webpack_require__(126); // EXTERNAL MODULE: ./node_modules/@wordpress/components/build-module/animate/index.js -var build_module_animate = __webpack_require__(124); +var build_module_animate = __webpack_require__(125); // CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/popover/index.js @@ -7718,7 +7797,7 @@ PopoverContainer.Slot = function (_ref4) { /***/ }), -/* 115 */ +/* 116 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -7728,12 +7807,12 @@ Object.defineProperty(exports, '__esModule', { value: true }); function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; } -var _extends = _interopDefault(__webpack_require__(177)); -var _objectWithoutPropertiesLoose = _interopDefault(__webpack_require__(178)); +var _extends = _interopDefault(__webpack_require__(178)); +var _objectWithoutPropertiesLoose = _interopDefault(__webpack_require__(179)); var React = __webpack_require__(13); var React__default = _interopDefault(React); var _inheritsLoose = _interopDefault(__webpack_require__(158)); -var _assertThisInitialized = _interopDefault(__webpack_require__(179)); +var _assertThisInitialized = _interopDefault(__webpack_require__(180)); var is = { arr: Array.isArray, @@ -10048,10 +10127,10 @@ exports.useSprings = useSprings; /***/ }), -/* 116 */, /* 117 */, /* 118 */, -/* 119 */ +/* 119 */, +/* 120 */ /***/ (function(module, exports) { // @@ -10201,20 +10280,34 @@ module.exports.strategies = { /***/ }), -/* 120 */ -/***/ (function(module, exports, __webpack_require__) { +/* 121 */ +/***/ (function(module, exports) { -"use strict"; +var g; + +// This works in non-strict mode +g = (function() { + return this; +})(); +try { + // This works if eval is allowed (see CSP) + g = g || new Function("return this")(); +} catch (e) { + // This works if the window reference is available + if (typeof window === "object") g = window; +} -var implementation = __webpack_require__(330); +// g can still be undefined, but nothing to do about it... +// We return undefined, instead of nothing here, so it's +// easier to handle this case. if(!global) { ...} -module.exports = Function.prototype.bind || implementation; +module.exports = g; /***/ }), -/* 121 */, -/* 122 */ +/* 122 */, +/* 123 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -10236,7 +10329,7 @@ module.exports = Function.prototype.bind || implementation; /* harmony import */ var reakit_utils_createOnKeyDown__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(82); /* harmony import */ var reakit_utils_getDocument__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(49); /* harmony import */ var reakit_utils_fireEvent__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(97); -/* harmony import */ var reakit_utils_fireKeyboardEvent__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(104); +/* harmony import */ var reakit_utils_fireKeyboardEvent__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(106); /* harmony import */ var _CompositeState_3a25dcee_js__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(52); @@ -10574,7 +10667,7 @@ var Composite = Object(reakit_system_createComponent__WEBPACK_IMPORTED_MODULE_1_ /***/ }), -/* 123 */ +/* 124 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -10592,7 +10685,7 @@ var Composite = Object(reakit_system_createComponent__WEBPACK_IMPORTED_MODULE_1_ /* harmony import */ var reakit_utils_hasFocusWithin__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(70); /* harmony import */ var reakit_utils_isPortalEvent__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(73); /* harmony import */ var reakit_utils_tabbable__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(72); -/* harmony import */ var _Clickable_Clickable_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(88); +/* harmony import */ var _Clickable_Clickable_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(89); /* harmony import */ var reakit_utils_createOnKeyDown__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(82); /* harmony import */ var reakit_utils_getDocument__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(49); /* harmony import */ var _CompositeState_3a25dcee_js__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(52); @@ -10937,7 +11030,7 @@ var CompositeItem = Object(reakit_system_createComponent__WEBPACK_IMPORTED_MODUL /***/ }), -/* 124 */ +/* 125 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -11002,7 +11095,7 @@ function Animate(_ref2) { /***/ }), -/* 125 */ +/* 126 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -11076,7 +11169,7 @@ var possibleConstructorReturn = __webpack_require__(24); var external_this_lodash_ = __webpack_require__(2); // EXTERNAL MODULE: ./node_modules/@wordpress/components/build-module/slot-fill/context.js + 1 modules -var context = __webpack_require__(129); +var context = __webpack_require__(130); // CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/slot-fill/slot.js @@ -11346,7 +11439,7 @@ function bubbles_virtually_slot_Slot(_ref) { var slicedToArray = __webpack_require__(12); // EXTERNAL MODULE: ./node_modules/@wordpress/components/build-module/slot-fill/bubbles-virtually/use-slot.js -var use_slot = __webpack_require__(165); +var use_slot = __webpack_require__(166); // CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/slot-fill/bubbles-virtually/fill.js @@ -11454,7 +11547,7 @@ function createSlotFill(name) { /***/ }), -/* 126 */ +/* 127 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -11493,17 +11586,17 @@ function createEvent(element, type, eventInit) { /***/ }), -/* 127 */ +/* 128 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -module.exports = __webpack_require__(184); +module.exports = __webpack_require__(185); /***/ }), -/* 128 */, -/* 129 */ +/* 129 */, +/* 130 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -11893,33 +11986,7 @@ var context_useSlot = function useSlot(name) { /***/ }), -/* 130 */, -/* 131 */ -/***/ (function(module, exports) { - -var g; - -// This works in non-strict mode -g = (function() { - return this; -})(); - -try { - // This works if eval is allowed (see CSP) - g = g || new Function("return this")(); -} catch (e) { - // This works if the window reference is available - if (typeof window === "object") g = window; -} - -// g can still be undefined, but nothing to do about it... -// We return undefined, instead of nothing here, so it's -// easier to handle this case. if(!global) { ...} - -module.exports = g; - - -/***/ }), +/* 131 */, /* 132 */ /***/ (function(module, exports, __webpack_require__) { @@ -12059,7 +12126,7 @@ var withConstrainedTabbing = Object(_wordpress_compose__WEBPACK_IMPORTED_MODULE_ /* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_7__); /* harmony import */ var _wordpress_compose__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(10); /* harmony import */ var _wordpress_compose__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_wordpress_compose__WEBPACK_IMPORTED_MODULE_8__); -/* harmony import */ var _context__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(199); +/* harmony import */ var _context__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(198); @@ -12258,10 +12325,10 @@ function stopPropagation(event) { /* harmony import */ var _babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(14); /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(0); /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var reakit_Toolbar__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(488); -/* harmony import */ var _wordpress_warning__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(90); +/* harmony import */ var reakit_Toolbar__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(502); +/* harmony import */ var _wordpress_warning__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(92); /* harmony import */ var _wordpress_warning__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_wordpress_warning__WEBPACK_IMPORTED_MODULE_5__); -/* harmony import */ var _toolbar_context__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(91); +/* harmony import */ var _toolbar_context__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(93); @@ -12319,7 +12386,7 @@ function ToolbarItem(_ref, ref) { /* harmony default export */ __webpack_exports__["a"] = (Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_3__["forwardRef"])(ToolbarItem)); -/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(102))) +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(103))) /***/ }), /* 138 */ @@ -12328,7 +12395,7 @@ function ToolbarItem(_ref, ref) { "use strict"; /* WEBPACK VAR INJECTION */(function(process) {/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0); /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _wordpress_warning__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(90); +/* harmony import */ var _wordpress_warning__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(92); /* harmony import */ var _wordpress_warning__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_warning__WEBPACK_IMPORTED_MODULE_1__); /** * WordPress dependencies @@ -12348,7 +12415,7 @@ var SlotFillContext = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["cr }); /* harmony default export */ __webpack_exports__["a"] = (SlotFillContext); -/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(102))) +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(103))) /***/ }), /* 139 */, @@ -12498,7 +12565,7 @@ module.exports = ReactPropTypesSecret; var GetIntrinsic = __webpack_require__(58); -var callBind = __webpack_require__(188); +var callBind = __webpack_require__(221); var $indexOf = callBind(GetIntrinsic('String.prototype.indexOf')); @@ -12516,8 +12583,8 @@ module.exports = function callBoundIntrinsic(name, allowMissing) { /***/ (function(module, exports, __webpack_require__) { var moment = __webpack_require__(44); -var momentValidationWrapper = __webpack_require__(372); -var core = __webpack_require__(373); +var momentValidationWrapper = __webpack_require__(386); +var core = __webpack_require__(387); module.exports = { @@ -12594,7 +12661,7 @@ exports['default'] = _propTypes2['default'].oneOf([_constants.HORIZONTAL_ORIENTA -var shallowEqual = __webpack_require__(387); +var shallowEqual = __webpack_require__(401); /** * Does a shallow comparison for props and state. @@ -12757,6 +12824,43 @@ var check = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElemen "use strict"; +var GetIntrinsic = __webpack_require__(58); + +var $TypeError = GetIntrinsic('%TypeError%'); + +var inspect = __webpack_require__(342); + +var IsPropertyKey = __webpack_require__(132); +var Type = __webpack_require__(90); + +/** + * 7.3.1 Get (O, P) - https://ecma-international.org/ecma-262/6.0/#sec-get-o-p + * 1. Assert: Type(O) is Object. + * 2. Assert: IsPropertyKey(P) is true. + * 3. Return O.[[Get]](P, O). + */ + +module.exports = function Get(O, P) { + // 7.3.1.1 + if (Type(O) !== 'Object') { + throw new $TypeError('Assertion failed: Type(O) is not Object'); + } + // 7.3.1.2 + if (!IsPropertyKey(P)) { + throw new $TypeError('Assertion failed: IsPropertyKey(P) is not true, got ' + inspect(P)); + } + // 7.3.1.3 + return O[P]; +}; + + +/***/ }), +/* 163 */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + Object.defineProperty(exports, "__esModule", { value: true }); @@ -12772,7 +12876,7 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'd exports['default'] = _propTypes2['default'].oneOf(_constants.WEEKDAYS); /***/ }), -/* 163 */ +/* 164 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -12786,7 +12890,7 @@ var _propTypes = __webpack_require__(28); var _propTypes2 = _interopRequireDefault(_propTypes); -var _airbnbPropTypes = __webpack_require__(89); +var _airbnbPropTypes = __webpack_require__(91); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } @@ -12817,8 +12921,8 @@ exports['default'] = (0, _airbnbPropTypes.and)([_propTypes2['default'].instanceO }()], 'Modifiers (Set of Strings)'); /***/ }), -/* 164 */, -/* 165 */ +/* 165 */, +/* 166 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -12872,7 +12976,7 @@ function useSlot(name) { /***/ }), -/* 166 */ +/* 167 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -13030,7 +13134,7 @@ function createScrollLockComponent() { /***/ }), -/* 167 */ +/* 168 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -13044,7 +13148,7 @@ function createScrollLockComponent() { /* harmony import */ var _wordpress_a11y__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_wordpress_a11y__WEBPACK_IMPORTED_MODULE_3__); /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(1); /* harmony import */ var _wordpress_i18n__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_wordpress_i18n__WEBPACK_IMPORTED_MODULE_4__); -/* harmony import */ var _wordpress_warning__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(90); +/* harmony import */ var _wordpress_warning__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(92); /* harmony import */ var _wordpress_warning__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_wordpress_warning__WEBPACK_IMPORTED_MODULE_5__); /* harmony import */ var ___WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(35); @@ -13148,14 +13252,14 @@ function Snackbar(_ref, ref) { /* harmony default export */ __webpack_exports__["a"] = (Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["forwardRef"])(Snackbar)); -/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(102))) +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(103))) /***/ }), -/* 168 */, /* 169 */, /* 170 */, /* 171 */, -/* 172 */ +/* 172 */, +/* 173 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -13200,7 +13304,7 @@ function Shortcut(_ref) { /***/ }), -/* 173 */ +/* 174 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -13240,10 +13344,10 @@ useToolbarState.__keys = keys; /***/ }), -/* 174 */, /* 175 */, /* 176 */, -/* 177 */ +/* 177 */, +/* 178 */ /***/ (function(module, exports) { function _extends() { @@ -13267,7 +13371,7 @@ function _extends() { module.exports = _extends; /***/ }), -/* 178 */ +/* 179 */ /***/ (function(module, exports) { function _objectWithoutPropertiesLoose(source, excluded) { @@ -13288,7 +13392,7 @@ function _objectWithoutPropertiesLoose(source, excluded) { module.exports = _objectWithoutPropertiesLoose; /***/ }), -/* 179 */ +/* 180 */ /***/ (function(module, exports) { function _assertThisInitialized(self) { @@ -13302,17 +13406,17 @@ function _assertThisInitialized(self) { module.exports = _assertThisInitialized; /***/ }), -/* 180 */, /* 181 */, /* 182 */, /* 183 */, -/* 184 */ +/* 184 */, +/* 185 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var util = __webpack_require__(185); +var util = __webpack_require__(186); function scrollIntoView(elem, container, config) { config = config || {}; @@ -13441,7 +13545,7 @@ function scrollIntoView(elem, container, config) { module.exports = scrollIntoView; /***/ }), -/* 185 */ +/* 186 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -13886,7 +13990,7 @@ module.exports = _extends({ }, domUtils); /***/ }), -/* 186 */ +/* 187 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -13910,17 +14014,17 @@ var link = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement /***/ }), -/* 187 */ +/* 188 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var slice = Array.prototype.slice; -var isArgs = __webpack_require__(219); +var isArgs = __webpack_require__(218); var origKeys = Object.keys; -var keysShim = origKeys ? function keys(o) { return origKeys(o); } : __webpack_require__(329); +var keysShim = origKeys ? function keys(o) { return origKeys(o); } : __webpack_require__(334); var originalKeys = Object.keys; @@ -13948,47 +14052,6 @@ keysShim.shim = function shimObjectKeys() { module.exports = keysShim; -/***/ }), -/* 188 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -var bind = __webpack_require__(120); - -var GetIntrinsic = __webpack_require__(58); - -var $apply = GetIntrinsic('%Function.prototype.apply%'); -var $call = GetIntrinsic('%Function.prototype.call%'); -var $reflectApply = GetIntrinsic('%Reflect.apply%', true) || bind.call($call, $apply); - -var $defineProperty = GetIntrinsic('%Object.defineProperty%', true); - -if ($defineProperty) { - try { - $defineProperty({}, 'a', { value: 1 }); - } catch (e) { - // IE 8 has a broken defineProperty - $defineProperty = null; - } -} - -module.exports = function callBind() { - return $reflectApply(bind, $call, arguments); -}; - -var applyBind = function applyBind() { - return $reflectApply(bind, $apply, arguments); -}; - -if ($defineProperty) { - $defineProperty(module.exports, 'apply', { value: applyBind }); -} else { - module.exports.apply = applyBind; -} - - /***/ }), /* 189 */ /***/ (function(module, exports, __webpack_require__) { @@ -13996,43 +14059,6 @@ if ($defineProperty) { "use strict"; -var GetIntrinsic = __webpack_require__(58); - -var $TypeError = GetIntrinsic('%TypeError%'); - -var inspect = __webpack_require__(333); - -var IsPropertyKey = __webpack_require__(132); -var Type = __webpack_require__(93); - -/** - * 7.3.1 Get (O, P) - https://ecma-international.org/ecma-262/6.0/#sec-get-o-p - * 1. Assert: Type(O) is Object. - * 2. Assert: IsPropertyKey(P) is true. - * 3. Return O.[[Get]](P, O). - */ - -module.exports = function Get(O, P) { - // 7.3.1.1 - if (Type(O) !== 'Object') { - throw new $TypeError('Assertion failed: Type(O) is not Object'); - } - // 7.3.1.2 - if (!IsPropertyKey(P)) { - throw new $TypeError('Assertion failed: IsPropertyKey(P) is not true, got ' + inspect(P)); - } - // 7.3.1.3 - return O[P]; -}; - - -/***/ }), -/* 190 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - var GetIntrinsic = __webpack_require__(58); var $Array = GetIntrinsic('%Array%'); @@ -14048,7 +14074,7 @@ module.exports = $Array.isArray || function IsArray(argument) { /***/ }), -/* 191 */ +/* 190 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -14059,7 +14085,7 @@ var GetIntrinsic = __webpack_require__(58); var $TypeError = GetIntrinsic('%TypeError%'); var $SyntaxError = GetIntrinsic('%SyntaxError%'); -var has = __webpack_require__(94); +var has = __webpack_require__(87); var predicates = { // https://ecma-international.org/ecma-262/6.0/#sec-property-descriptor-specification-type @@ -14103,7 +14129,7 @@ module.exports = function assertRecord(Type, recordType, argumentName, value) { /***/ }), -/* 192 */ +/* 191 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -14115,14 +14141,14 @@ module.exports = Number.isNaN || function isNaN(a) { /***/ }), -/* 193 */ +/* 192 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var toStr = Object.prototype.toString; -var hasSymbols = __webpack_require__(360)(); +var hasSymbols = __webpack_require__(374)(); if (hasSymbols) { var symToStr = Symbol.prototype.toString; @@ -14157,7 +14183,7 @@ if (hasSymbols) { /***/ }), -/* 194 */ +/* 193 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -14201,7 +14227,7 @@ module.exports = function isCallable(value) { /***/ }), -/* 195 */ +/* 194 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -14385,7 +14411,7 @@ module.exports = function GetIntrinsic(name, allowMissing) { /***/ }), -/* 196 */ +/* 195 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -14410,7 +14436,7 @@ function isSameDay(a, b) { } /***/ }), -/* 197 */ +/* 196 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -14441,7 +14467,7 @@ function toISOMonthString(date, currentFormat) { } /***/ }), -/* 198 */ +/* 197 */ /***/ (function(module, exports) { /** @@ -14478,7 +14504,7 @@ module.exports = isObject; /***/ }), -/* 199 */ +/* 198 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -14592,19 +14618,19 @@ var FocusReturnProvider = /*#__PURE__*/function (_Component) { /***/ }), -/* 200 */ +/* 199 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; if (true) { - module.exports = __webpack_require__(322); + module.exports = __webpack_require__(327); } else {} /***/ }), -/* 201 */ +/* 200 */ /***/ (function(module, exports) { // Copyright (c) 2014 Rafael Caricio. All rights reserved. @@ -14949,14 +14975,14 @@ exports.parse = (GradientParser || {}).parse; /***/ }), +/* 201 */, /* 202 */, /* 203 */, /* 204 */, /* 205 */, /* 206 */, /* 207 */, -/* 208 */, -/* 209 */ +/* 208 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -14980,11 +15006,11 @@ var plus = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElement /***/ }), +/* 209 */, /* 210 */, /* 211 */, /* 212 */, -/* 213 */, -/* 214 */ +/* 213 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -15008,7 +15034,7 @@ var chevronRight = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["creat /***/ }), -/* 215 */ +/* 214 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -15032,8 +15058,8 @@ var chevronLeft = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["create /***/ }), -/* 216 */, -/* 217 */ +/* 215 */, +/* 216 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -15057,7 +15083,7 @@ var upload = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createEleme /***/ }), -/* 218 */ +/* 217 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -15081,7 +15107,7 @@ var linkOff = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElem /***/ }), -/* 219 */ +/* 218 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -15104,6 +15130,35 @@ module.exports = function isArguments(value) { }; +/***/ }), +/* 219 */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +var ArraySpeciesCreate = __webpack_require__(340); +var FlattenIntoArray = __webpack_require__(353); +var Get = __webpack_require__(162); +var ToInteger = __webpack_require__(233); +var ToLength = __webpack_require__(232); +var ToObject = __webpack_require__(376); + +module.exports = function flat() { + var O = ToObject(this); + var sourceLen = ToLength(Get(O, 'length')); + + var depthNum = 1; + if (arguments.length > 0 && typeof arguments[0] !== 'undefined') { + depthNum = ToInteger(arguments[0]); + } + + var A = ArraySpeciesCreate(O, 0); + FlattenIntoArray(A, O, sourceLen, 0, depthNum); + return A; +}; + + /***/ }), /* 220 */ /***/ (function(module, exports, __webpack_require__) { @@ -15112,7 +15167,7 @@ module.exports = function isArguments(value) { /* WEBPACK VAR INJECTION */(function(global) { var origSymbol = global.Symbol; -var hasSymbolSham = __webpack_require__(331); +var hasSymbolSham = __webpack_require__(341); module.exports = function hasNativeSymbols() { if (typeof origSymbol !== 'function') { return false; } @@ -15123,7 +15178,7 @@ module.exports = function hasNativeSymbols() { return hasSymbolSham(); }; -/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(131))) +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(121))) /***/ }), /* 221 */ @@ -15132,27 +15187,39 @@ module.exports = function hasNativeSymbols() { "use strict"; -var ArraySpeciesCreate = __webpack_require__(332); -var FlattenIntoArray = __webpack_require__(342); -var Get = __webpack_require__(189); -var ToInteger = __webpack_require__(233); -var ToLength = __webpack_require__(232); -var ToObject = __webpack_require__(362); +var bind = __webpack_require__(105); -module.exports = function flat() { - var O = ToObject(this); - var sourceLen = ToLength(Get(O, 'length')); +var GetIntrinsic = __webpack_require__(58); - var depthNum = 1; - if (arguments.length > 0 && typeof arguments[0] !== 'undefined') { - depthNum = ToInteger(arguments[0]); +var $apply = GetIntrinsic('%Function.prototype.apply%'); +var $call = GetIntrinsic('%Function.prototype.call%'); +var $reflectApply = GetIntrinsic('%Reflect.apply%', true) || bind.call($call, $apply); + +var $defineProperty = GetIntrinsic('%Object.defineProperty%', true); + +if ($defineProperty) { + try { + $defineProperty({}, 'a', { value: 1 }); + } catch (e) { + // IE 8 has a broken defineProperty + $defineProperty = null; } +} - var A = ArraySpeciesCreate(O, 0); - FlattenIntoArray(A, O, sourceLen, 0, depthNum); - return A; +module.exports = function callBind() { + return $reflectApply(bind, $call, arguments); +}; + +var applyBind = function applyBind() { + return $reflectApply(bind, $apply, arguments); }; +if ($defineProperty) { + $defineProperty(module.exports, 'apply', { value: applyBind }); +} else { + module.exports.apply = applyBind; +} + /***/ }), /* 222 */ @@ -15213,9 +15280,9 @@ module.exports = function DefineOwnProperty(IsDataDescriptor, SameValue, FromPro "use strict"; -var assertRecord = __webpack_require__(191); +var assertRecord = __webpack_require__(190); -var Type = __webpack_require__(93); +var Type = __webpack_require__(90); // https://www.ecma-international.org/ecma-262/6.0/#sec-frompropertydescriptor @@ -15256,11 +15323,11 @@ module.exports = function FromPropertyDescriptor(Desc) { "use strict"; -var has = __webpack_require__(94); +var has = __webpack_require__(87); -var assertRecord = __webpack_require__(191); +var assertRecord = __webpack_require__(190); -var Type = __webpack_require__(93); +var Type = __webpack_require__(90); // https://www.ecma-international.org/ecma-262/6.0/#sec-isdatadescriptor @@ -15286,7 +15353,7 @@ module.exports = function IsDataDescriptor(Desc) { "use strict"; -var $isNaN = __webpack_require__(192); +var $isNaN = __webpack_require__(191); // http://www.ecma-international.org/ecma-262/5.1/#sec-9.12 @@ -15306,15 +15373,15 @@ module.exports = function SameValue(x, y) { "use strict"; -var has = __webpack_require__(94); +var has = __webpack_require__(87); var GetIntrinsic = __webpack_require__(58); var $TypeError = GetIntrinsic('%TypeError%'); -var Type = __webpack_require__(93); +var Type = __webpack_require__(90); var ToBoolean = __webpack_require__(227); -var IsCallable = __webpack_require__(340); +var IsCallable = __webpack_require__(349); // https://ecma-international.org/ecma-262/5.1/#sec-8.10.5 @@ -15512,15 +15579,18 @@ module.exports = function ToLength(argument) { "use strict"; -var ES5ToInteger = __webpack_require__(352); +var ES5ToInteger = __webpack_require__(364); -var ToNumber = __webpack_require__(355); +var ToNumber = __webpack_require__(369); -// https://www.ecma-international.org/ecma-262/6.0/#sec-tointeger +// https://www.ecma-international.org/ecma-262/11.0/#sec-tointeger module.exports = function ToInteger(value) { var number = ToNumber(value); - return ES5ToInteger(number); + if (number !== 0) { + number = ES5ToInteger(number); + } + return number === 0 ? 0 : number; }; @@ -15607,7 +15677,7 @@ module.exports = function hasSymbols() { "use strict"; -var implementation = __webpack_require__(221); +var implementation = __webpack_require__(219); module.exports = function getPolyfill() { return Array.prototype.flat || implementation; @@ -15929,8 +15999,8 @@ exports['default'] = { // modified from https://github.com/es-shims/es6-shim -var keys = __webpack_require__(187); -var bind = __webpack_require__(120); +var keys = __webpack_require__(188); +var bind = __webpack_require__(105); var canBeObject = function (obj) { return typeof obj !== 'undefined' && obj !== null; }; @@ -16034,11 +16104,11 @@ module.exports = function getPolyfill() { "use strict"; -var define = __webpack_require__(103); +var define = __webpack_require__(104); var implementation = __webpack_require__(242); var getPolyfill = __webpack_require__(250); -var shim = __webpack_require__(384); +var shim = __webpack_require__(398); var polyfill = getPolyfill(); @@ -16058,9 +16128,9 @@ module.exports = polyfill; "use strict"; -var ES = __webpack_require__(375); -var has = __webpack_require__(94); -var bind = __webpack_require__(120); +var ES = __webpack_require__(389); +var has = __webpack_require__(87); +var bind = __webpack_require__(105); var isEnumerable = bind.call(Function.call, Object.prototype.propertyIsEnumerable); module.exports = function values(O) { @@ -16091,12 +16161,12 @@ module.exports = function isPrimitive(value) { "use strict"; -var GetIntrinsic = __webpack_require__(195); +var GetIntrinsic = __webpack_require__(194); var $TypeError = GetIntrinsic('%TypeError%'); var $SyntaxError = GetIntrinsic('%SyntaxError%'); -var has = __webpack_require__(94); +var has = __webpack_require__(87); var predicates = { // https://ecma-international.org/ecma-262/6.0/#sec-property-descriptor-specification-type @@ -16162,7 +16232,7 @@ module.exports = Number.isFinite || function (x) { return typeof x === 'number' /* 247 */ /***/ (function(module, exports, __webpack_require__) { -var bind = __webpack_require__(120); +var bind = __webpack_require__(105); var has = bind.call(Function.call, Object.prototype.hasOwnProperty); var $assign = Object.assign; @@ -16247,7 +16317,7 @@ var _isBeforeDay = __webpack_require__(253); var _isBeforeDay2 = _interopRequireDefault(_isBeforeDay); -var _isSameDay = __webpack_require__(196); +var _isSameDay = __webpack_require__(195); var _isSameDay2 = _interopRequireDefault(_isSameDay); @@ -16408,7 +16478,7 @@ exports['default'] = _propTypes2['default'].oneOf([_constants.INFO_POSITION_TOP, /* 258 */ /***/ (function(module, exports, __webpack_require__) { -var freeGlobal = __webpack_require__(396); +var freeGlobal = __webpack_require__(410); /** Detect free variable `self`. */ var freeSelf = typeof self == 'object' && self && self.Object === Object && self; @@ -16737,17 +16807,17 @@ var _reactMomentProptypes = __webpack_require__(145); var _reactMomentProptypes2 = _interopRequireDefault(_reactMomentProptypes); -var _airbnbPropTypes = __webpack_require__(89); +var _airbnbPropTypes = __webpack_require__(91); -var _reactWithStyles = __webpack_require__(112); +var _reactWithStyles = __webpack_require__(114); var _moment = __webpack_require__(44); var _moment2 = _interopRequireDefault(_moment); -var _defaultPhrases = __webpack_require__(110); +var _defaultPhrases = __webpack_require__(112); -var _getPhrasePropTypes = __webpack_require__(111); +var _getPhrasePropTypes = __webpack_require__(113); var _getPhrasePropTypes2 = _interopRequireDefault(_getPhrasePropTypes); @@ -16755,7 +16825,7 @@ var _getCalendarDaySettings = __webpack_require__(264); var _getCalendarDaySettings2 = _interopRequireDefault(_getCalendarDaySettings); -var _ModifiersShape = __webpack_require__(163); +var _ModifiersShape = __webpack_require__(164); var _ModifiersShape2 = _interopRequireDefault(_ModifiersShape); @@ -17195,7 +17265,7 @@ Object.defineProperty(exports, "__esModule", { }); exports['default'] = getCalendarDaySettings; -var _getPhrase = __webpack_require__(410); +var _getPhrase = __webpack_require__(424); var _getPhrase2 = _interopRequireDefault(_getPhrase); @@ -17495,7 +17565,7 @@ var classnames_default = /*#__PURE__*/__webpack_require__.n(classnames); var CompositeState_3a25dcee = __webpack_require__(52); // EXTERNAL MODULE: ./node_modules/reakit/es/Composite/Composite.js -var Composite = __webpack_require__(122); +var Composite = __webpack_require__(123); // EXTERNAL MODULE: ./node_modules/reakit/es/_rollupPluginBabelHelpers-1f0bf8c2.js var _rollupPluginBabelHelpers_1f0bf8c2 = __webpack_require__(15); @@ -17632,7 +17702,7 @@ var external_this_wp_i18n_ = __webpack_require__(1); var external_this_wp_compose_ = __webpack_require__(10); // EXTERNAL MODULE: ./node_modules/reakit/es/Composite/CompositeItem.js -var CompositeItem = __webpack_require__(123); +var CompositeItem = __webpack_require__(124); // EXTERNAL MODULE: ./node_modules/@wordpress/components/build-module/tooltip/index.js var build_module_tooltip = __webpack_require__(84); @@ -17778,7 +17848,7 @@ function getAlignmentIndex() { } // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/defineProperty.js -var helpers_defineProperty = __webpack_require__(285); +var helpers_defineProperty = __webpack_require__(286); var defineProperty_default = /*#__PURE__*/__webpack_require__.n(helpers_defineProperty); // CONCATENATED MODULE: ./node_modules/@emotion/memoize/dist/memoize.browser.esm.js @@ -20345,7 +20415,7 @@ function AlignmentMatrixControl(_ref) { AlignmentMatrixControl.Icon = AlignmentMatrixControlIcon; // EXTERNAL MODULE: ./node_modules/@wordpress/components/build-module/animate/index.js -var animate = __webpack_require__(124); +var animate = __webpack_require__(125); // CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/utils/font-values.js /* harmony default export */ var font_values = ({ @@ -25143,7 +25213,7 @@ var external_this_wp_richText_ = __webpack_require__(25); var build_module_button = __webpack_require__(35); // EXTERNAL MODULE: ./node_modules/@wordpress/components/build-module/popover/index.js + 2 modules -var popover = __webpack_require__(114); +var popover = __webpack_require__(115); // EXTERNAL MODULE: external {"this":["wp","a11y"]} var external_this_wp_a11y_ = __webpack_require__(46); @@ -26856,10 +26926,10 @@ function getSide(side, value) { } // EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/link.js -var library_link = __webpack_require__(186); +var library_link = __webpack_require__(187); // EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/link-off.js -var link_off = __webpack_require__(218); +var link_off = __webpack_require__(217); // CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/box-control/linked-button.js @@ -27712,13 +27782,13 @@ var edit = __webpack_require__(274); var library_close = __webpack_require__(160); // EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/chevron-up.js -var chevron_up = __webpack_require__(314); +var chevron_up = __webpack_require__(315); // EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/chevron-down.js -var chevron_down = __webpack_require__(315); +var chevron_down = __webpack_require__(316); // EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/plus.js -var plus = __webpack_require__(209); +var plus = __webpack_require__(208); // CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/dropdown/index.js @@ -30168,7 +30238,7 @@ var token_input_TokenInput = /*#__PURE__*/function (_Component) { /* harmony default export */ var token_input = (token_input_TokenInput); // EXTERNAL MODULE: ./node_modules/dom-scroll-into-view/lib/index.js -var lib = __webpack_require__(127); +var lib = __webpack_require__(128); var lib_default = /*#__PURE__*/__webpack_require__.n(lib); // CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/form-token-field/suggestions-list.js @@ -30330,10 +30400,22 @@ suggestions_list_SuggestionsList.defaultProps = { }; /* harmony default export */ var suggestions_list = (Object(external_this_wp_compose_["withSafeTimeout"])(suggestions_list_SuggestionsList)); +// EXTERNAL MODULE: ./node_modules/@wordpress/components/build-module/higher-order/with-focus-outside/index.js +var with_focus_outside = __webpack_require__(102); + // CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/combobox-control/index.js + + + + + +function combobox_control_createSuper(Derived) { var hasNativeReflectConstruct = combobox_control_isNativeReflectConstruct(); return function _createSuperInternal() { var Super = Object(getPrototypeOf["a" /* default */])(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = Object(getPrototypeOf["a" /* default */])(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return Object(possibleConstructorReturn["a" /* default */])(this, result); }; } + +function combobox_control_isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } } + /** * External dependencies */ @@ -30358,6 +30440,32 @@ suggestions_list_SuggestionsList.defaultProps = { +var DetectOutside = Object(with_focus_outside["a" /* default */])( /*#__PURE__*/function (_Component) { + Object(inherits["a" /* default */])(_class, _Component); + + var _super = combobox_control_createSuper(_class); + + function _class() { + Object(classCallCheck["a" /* default */])(this, _class); + + return _super.apply(this, arguments); + } + + Object(createClass["a" /* default */])(_class, [{ + key: "handleFocusOutside", + value: function handleFocusOutside(event) { + this.props.onFocusOutside(event); + } + }, { + key: "render", + value: function render() { + return this.props.children; + } + }]); + + return _class; +}(external_this_wp_element_["Component"])); + function ComboboxControl(_ref) { var _currentOption$label; @@ -30480,7 +30588,7 @@ function ComboboxControl(_ref) { setInputValue(''); }; - var onBlur = function onBlur() { + var onFocusOutside = function onFocusOutside() { setIsExpanded(false); }; @@ -30512,7 +30620,9 @@ function ComboboxControl(_ref) { /* eslint-disable jsx-a11y/no-static-element-interactions */ - return Object(external_this_wp_element_["createElement"])(base_control, { + return Object(external_this_wp_element_["createElement"])(DetectOutside, { + onFocusOutside: onFocusOutside + }, Object(external_this_wp_element_["createElement"])(base_control, { className: classnames_default()(className, 'components-combobox-control'), tabIndex: "-1", label: label, @@ -30528,7 +30638,6 @@ function ComboboxControl(_ref) { instanceId: instanceId, ref: inputContainer, value: isExpanded ? inputValue : currentLabel, - onBlur: onBlur, onFocus: onFocus, isExpanded: isExpanded, selectedSuggestionIndex: matchingSuggestions.indexOf(selectedSuggestion), @@ -30552,7 +30661,7 @@ function ComboboxControl(_ref) { onHover: setSelectedSuggestion, onSelect: onSuggestionSelected, scrollIntoView: true - }))); + })))); /* eslint-enable jsx-a11y/no-static-element-interactions */ } @@ -30566,7 +30675,7 @@ var prop_types = __webpack_require__(28); var prop_types_default = /*#__PURE__*/__webpack_require__.n(prop_types); // EXTERNAL MODULE: ./node_modules/downshift/node_modules/react-is/index.js -var react_is = __webpack_require__(200); +var react_is = __webpack_require__(199); // CONCATENATED MODULE: ./node_modules/compute-scroll-into-view/dist/index.module.js function t(t){return null!=t&&"object"==typeof t&&1===t.nodeType}function index_module_e(t,e){return(!e||"hidden"!==t)&&"visible"!==t&&"clip"!==t}function n(t,n){if(t.clientHeighte||o>t&&l=e&&d>=n?o-t-r:l>e&&dn?l-e+i:0}/* harmony default export */ var index_module = (function(e,i){var o=window,l=i.scrollMode,d=i.block,u=i.inline,h=i.boundary,a=i.skipOverflowHiddenElements,c="function"==typeof h?h:function(t){return t!==h};if(!t(e))throw new TypeError("Invalid target");for(var f=document.scrollingElement||document.documentElement,s=[],p=e;t(p)&&c(p);){if((p=p.parentNode)===f){s.push(p);break}p===document.body&&n(p)&&!n(document.documentElement)||n(p,a)&&s.push(p)}for(var g=o.visualViewport?o.visualViewport.width:innerWidth,m=o.visualViewport?o.visualViewport.height:innerHeight,w=window.scrollX||pageXOffset,v=window.scrollY||pageYOffset,W=e.getBoundingClientRect(),b=W.height,H=W.width,y=W.top,M=W.right,E=W.bottom,V=W.left,x="start"===d||"nearest"===d?y:"end"===d?E:y+b/2,I="center"===u?V+H/2:"end"===u?M:V,C=[],T=0;T=0&&V>=0&&E<=m&&M<=g&&y>=R&&E<=Y&&V>=L&&M<=X)return C;var S=getComputedStyle(k),j=parseInt(S.borderLeftWidth,10),N=parseInt(S.borderTopWidth,10),q=parseInt(S.borderRightWidth,10),z=parseInt(S.borderBottomWidth,10),A=0,F=0,G="offsetWidth"in k?k.offsetWidth-k.clientWidth-j-q:0,J="offsetHeight"in k?k.offsetHeight-k.clientHeight-N-z:0;if(f===k)A="start"===d?x:"end"===d?x-m:"nearest"===d?index_module_r(v,v+m,m,N,z,v+x,v+x+b,b):x-m/2,F="start"===u?I:"center"===u?I-g/2:"end"===u?I-g:index_module_r(w,w+g,g,j,q,w+I,w+I+H,H),A=Math.max(0,A+v),F=Math.max(0,F+w);else{A="start"===d?x-R-N:"end"===d?x-Y+z+J:"nearest"===d?index_module_r(R,Y,D,N,z+J,x,x+b,b):x-(R+D/2)+J/2,F="start"===u?I-L-j:"center"===u?I-(L+O/2)+G/2:"end"===u?I-X+q+G:index_module_r(L,X,O,j,q+G,I,I+H,H);var K=k.scrollLeft,P=k.scrollTop;x+=P-(A=Math.max(0,Math.min(P+A,k.scrollHeight-D+J))),I+=K-(F=Math.max(0,Math.min(K+F,k.scrollWidth-O+G)))}C.push({el:k,top:A,left:F})}return C}); @@ -34829,14 +34938,14 @@ function CustomSelectControl(_ref3) { var dashicon = __webpack_require__(150); // EXTERNAL MODULE: ./node_modules/react-dates/initialize.js -var initialize = __webpack_require__(323); +var initialize = __webpack_require__(328); // EXTERNAL MODULE: external {"this":"moment"} var external_this_moment_ = __webpack_require__(44); var external_this_moment_default = /*#__PURE__*/__webpack_require__.n(external_this_moment_); // EXTERNAL MODULE: ./node_modules/react-dates/lib/components/DayPickerSingleDateController.js -var DayPickerSingleDateController = __webpack_require__(286); +var DayPickerSingleDateController = __webpack_require__(287); var DayPickerSingleDateController_default = /*#__PURE__*/__webpack_require__.n(DayPickerSingleDateController); // CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/date-time/date.js @@ -35158,7 +35267,7 @@ function TimePicker(_ref2) { Object(external_this_wp_element_["useEffect"])(function () { - setDate(external_this_moment_default()(currentTime).startOf('minutes')); + setDate(currentTime ? external_this_moment_default()(currentTime).startOf('minutes') : external_this_moment_default()()); }, [currentTime]); var _useMemo = Object(external_this_wp_element_["useMemo"])(function () { @@ -36105,7 +36214,7 @@ var draggable_Draggable = /*#__PURE__*/function (_Component) { /* harmony default export */ var draggable = (Object(external_this_wp_compose_["withSafeTimeout"])(draggable_Draggable)); // EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/upload.js -var upload = __webpack_require__(217); +var upload = __webpack_require__(216); // EXTERNAL MODULE: external {"this":["wp","isShallowEqual"]} var external_this_wp_isShallowEqual_ = __webpack_require__(64); @@ -36953,7 +37062,7 @@ function DropdownMenu(_ref) { /* harmony default export */ var dropdown_menu = (DropdownMenu); // EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/external.js -var external = __webpack_require__(427); +var external = __webpack_require__(441); // CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/external-link/styles/external-link-styles.js @@ -37024,9 +37133,6 @@ function ExternalLink(_ref, ref) { } /* harmony default export */ var external_link = (Object(external_this_wp_element_["forwardRef"])(ExternalLink)); -// EXTERNAL MODULE: ./node_modules/@wordpress/components/build-module/higher-order/with-focus-outside/index.js -var with_focus_outside = __webpack_require__(113); - // CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/focal-point-picker/styles/focal-point-picker-style.js @@ -37939,7 +38045,7 @@ var focusable_iframe_FocusableIframe = /*#__PURE__*/function (_Component) { })(focusable_iframe_FocusableIframe)); // EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/text-color.js -var text_color = __webpack_require__(428); +var text_color = __webpack_require__(442); // CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/range-control/utils.js @@ -39950,7 +40056,7 @@ form_token_field_FormTokenField.defaultProps = { /* harmony default export */ var form_token_field = (with_spoken_messages(Object(external_this_wp_compose_["withInstanceId"])(form_token_field_FormTokenField))); // EXTERNAL MODULE: ./node_modules/gradient-parser/build/node.js -var build_node = __webpack_require__(201); +var build_node = __webpack_require__(200); var node_default = /*#__PURE__*/__webpack_require__.n(build_node); // CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/custom-gradient-picker/constants.js @@ -41716,7 +41822,7 @@ function MenuGroup(_ref) { /* harmony default export */ var menu_group = (MenuGroup); // EXTERNAL MODULE: ./node_modules/@wordpress/components/build-module/shortcut/index.js -var build_module_shortcut = __webpack_require__(172); +var build_module_shortcut = __webpack_require__(173); // CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/menu-item/index.js @@ -41847,7 +41953,7 @@ function MenuItemsChoice(_ref) { } // EXTERNAL MODULE: ./node_modules/@wordpress/components/build-module/scroll-lock/index.js -var scroll_lock = __webpack_require__(166); +var scroll_lock = __webpack_require__(167); // CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/navigable-container/tabbable.js @@ -42161,7 +42267,7 @@ function Navigation(_ref) { } // EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/chevron-left.js -var chevron_left = __webpack_require__(215); +var chevron_left = __webpack_require__(214); // CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/navigation/back-button/index.js @@ -42273,7 +42379,7 @@ function NavigationGroup(_ref) { } // EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/chevron-right.js -var chevron_right = __webpack_require__(214); +var chevron_right = __webpack_require__(213); // CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/navigation/item/use-navigation-tree-item.js @@ -43202,10 +43308,10 @@ var es = __webpack_require__(81); var useLiveRef = __webpack_require__(48); // EXTERNAL MODULE: ./node_modules/reakit-utils/es/createEvent.js -var createEvent = __webpack_require__(126); +var createEvent = __webpack_require__(127); // EXTERNAL MODULE: ./node_modules/reakit-warning/es/warning.js -var warning = __webpack_require__(108); +var warning = __webpack_require__(110); // EXTERNAL MODULE: ./node_modules/reakit-utils/es/useSealedState.js var useSealedState = __webpack_require__(62); @@ -43791,7 +43897,7 @@ var resizer_Resizer = /** @class */ (function (_super) { // EXTERNAL MODULE: ./node_modules/fast-memoize/src/index.js -var fast_memoize_src = __webpack_require__(119); +var fast_memoize_src = __webpack_require__(120); var src_default = /*#__PURE__*/__webpack_require__.n(fast_memoize_src); // CONCATENATED MODULE: ./node_modules/re-resizable/lib/index.js @@ -45321,7 +45427,7 @@ sandbox_Sandbox = Object(external_this_wp_compose_["withGlobalEvents"])({ /* harmony default export */ var sandbox = (sandbox_Sandbox); // EXTERNAL MODULE: ./node_modules/@wordpress/components/build-module/snackbar/index.js -var snackbar = __webpack_require__(167); +var snackbar = __webpack_require__(168); // EXTERNAL MODULE: external {"this":"regeneratorRuntime"} var external_this_regeneratorRuntime_ = __webpack_require__(20); @@ -45331,7 +45437,7 @@ var external_this_regeneratorRuntime_default = /*#__PURE__*/__webpack_require__. var asyncToGenerator = __webpack_require__(45); // EXTERNAL MODULE: ./node_modules/react-spring/web.cjs.js -var web_cjs = __webpack_require__(115); +var web_cjs = __webpack_require__(116); // CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/snackbar/list.js @@ -45849,7 +45955,7 @@ function ToggleControl(_ref) { var toolbar_item = __webpack_require__(137); // EXTERNAL MODULE: ./node_modules/@wordpress/components/build-module/toolbar-context/index.js -var toolbar_context = __webpack_require__(91); +var toolbar_context = __webpack_require__(93); // CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/toolbar-button/toolbar-button-container.js @@ -46109,7 +46215,7 @@ function ToolbarGroup(_ref) { /* harmony default export */ var toolbar_group = (ToolbarGroup); // EXTERNAL MODULE: ./node_modules/reakit/es/Toolbar/ToolbarState.js -var ToolbarState = __webpack_require__(173); +var ToolbarState = __webpack_require__(174); // CONCATENATED MODULE: ./node_modules/reakit/es/Toolbar/Toolbar.js @@ -46628,13 +46734,13 @@ function roving_tab_index_item_objectSpread(target) { for (var i = 1; i < argume })); // EXTERNAL MODULE: ./node_modules/@wordpress/components/build-module/slot-fill/index.js + 6 modules -var slot_fill = __webpack_require__(125); +var slot_fill = __webpack_require__(126); // EXTERNAL MODULE: ./node_modules/@wordpress/components/build-module/slot-fill/context.js + 1 modules -var slot_fill_context = __webpack_require__(129); +var slot_fill_context = __webpack_require__(130); // EXTERNAL MODULE: ./node_modules/@wordpress/components/build-module/slot-fill/bubbles-virtually/use-slot.js -var use_slot = __webpack_require__(165); +var use_slot = __webpack_require__(166); // CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/higher-order/navigate-regions/index.js @@ -46960,7 +47066,7 @@ function withFilters(hookName) { } // EXTERNAL MODULE: ./node_modules/@wordpress/components/build-module/higher-order/with-focus-return/context.js -var with_focus_return_context = __webpack_require__(199); +var with_focus_return_context = __webpack_require__(198); // CONCATENATED MODULE: ./node_modules/@wordpress/components/node_modules/uuid/dist/esm-browser/rng.js // Unique ID creation requires a high quality random # generator. In the browser we therefore @@ -47336,7 +47442,8 @@ var pencil = Object(external_this_wp_element_["createElement"])(external_this_wp /* 282 */, /* 283 */, /* 284 */, -/* 285 */ +/* 285 */, +/* 286 */ /***/ (function(module, exports) { function _defineProperty(obj, key, value) { @@ -47357,7 +47464,7 @@ function _defineProperty(obj, key, value) { module.exports = _defineProperty; /***/ }), -/* 286 */ +/* 287 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -47387,7 +47494,7 @@ var _reactMomentProptypes = __webpack_require__(145); var _reactMomentProptypes2 = _interopRequireDefault(_reactMomentProptypes); -var _airbnbPropTypes = __webpack_require__(89); +var _airbnbPropTypes = __webpack_require__(91); var _moment = __webpack_require__(44); @@ -47401,13 +47508,13 @@ var _isTouchDevice = __webpack_require__(251); var _isTouchDevice2 = _interopRequireDefault(_isTouchDevice); -var _defaultPhrases = __webpack_require__(110); +var _defaultPhrases = __webpack_require__(112); -var _getPhrasePropTypes = __webpack_require__(111); +var _getPhrasePropTypes = __webpack_require__(113); var _getPhrasePropTypes2 = _interopRequireDefault(_getPhrasePropTypes); -var _isSameDay = __webpack_require__(196); +var _isSameDay = __webpack_require__(195); var _isSameDay2 = _interopRequireDefault(_isSameDay); @@ -47415,7 +47522,7 @@ var _isAfterDay = __webpack_require__(252); var _isAfterDay2 = _interopRequireDefault(_isAfterDay); -var _getVisibleDays = __webpack_require__(385); +var _getVisibleDays = __webpack_require__(399); var _getVisibleDays2 = _interopRequireDefault(_getVisibleDays); @@ -47427,7 +47534,7 @@ var _toISODateString = __webpack_require__(256); var _toISODateString2 = _interopRequireDefault(_toISODateString); -var _toISOMonthString = __webpack_require__(197); +var _toISOMonthString = __webpack_require__(196); var _toISOMonthString2 = _interopRequireDefault(_toISOMonthString); @@ -47435,7 +47542,7 @@ var _ScrollableOrientationShape = __webpack_require__(146); var _ScrollableOrientationShape2 = _interopRequireDefault(_ScrollableOrientationShape); -var _DayOfWeekShape = __webpack_require__(162); +var _DayOfWeekShape = __webpack_require__(163); var _DayOfWeekShape2 = _interopRequireDefault(_DayOfWeekShape); @@ -47445,7 +47552,7 @@ var _CalendarInfoPositionShape2 = _interopRequireDefault(_CalendarInfoPositionSh var _constants = __webpack_require__(78); -var _DayPicker = __webpack_require__(386); +var _DayPicker = __webpack_require__(400); var _DayPicker2 = _interopRequireDefault(_DayPicker); @@ -48405,7 +48512,6 @@ DayPickerSingleDateController.propTypes = propTypes; DayPickerSingleDateController.defaultProps = defaultProps; /***/ }), -/* 287 */, /* 288 */, /* 289 */, /* 290 */, @@ -48432,7 +48538,8 @@ DayPickerSingleDateController.defaultProps = defaultProps; /* 311 */, /* 312 */, /* 313 */, -/* 314 */ +/* 314 */, +/* 315 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -48456,7 +48563,7 @@ var chevronUp = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createEl /***/ }), -/* 315 */ +/* 316 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -48480,13 +48587,17 @@ var chevronDown = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["create /***/ }), -/* 316 */, /* 317 */, /* 318 */, /* 319 */, /* 320 */, /* 321 */, -/* 322 */ +/* 322 */, +/* 323 */, +/* 324 */, +/* 325 */, +/* 326 */, +/* 327 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -48508,21 +48619,21 @@ exports.isValidElementType=function(a){return"string"===typeof a||"function"===t /***/ }), -/* 323 */ +/* 328 */ /***/ (function(module, exports, __webpack_require__) { // eslint-disable-next-line import/no-unresolved -__webpack_require__(324); +__webpack_require__(329); /***/ }), -/* 324 */ +/* 329 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var _registerCSSInterfaceWithDefaultTheme = __webpack_require__(325); +var _registerCSSInterfaceWithDefaultTheme = __webpack_require__(330); var _registerCSSInterfaceWithDefaultTheme2 = _interopRequireDefault(_registerCSSInterfaceWithDefaultTheme); @@ -48531,7 +48642,7 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'd (0, _registerCSSInterfaceWithDefaultTheme2['default'])(); /***/ }), -/* 325 */ +/* 330 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -48542,11 +48653,11 @@ Object.defineProperty(exports, "__esModule", { }); exports['default'] = registerCSSInterfaceWithDefaultTheme; -var _reactWithStylesInterfaceCss = __webpack_require__(326); +var _reactWithStylesInterfaceCss = __webpack_require__(331); var _reactWithStylesInterfaceCss2 = _interopRequireDefault(_reactWithStylesInterfaceCss); -var _registerInterfaceWithDefaultTheme = __webpack_require__(370); +var _registerInterfaceWithDefaultTheme = __webpack_require__(384); var _registerInterfaceWithDefaultTheme2 = _interopRequireDefault(_registerInterfaceWithDefaultTheme); @@ -48557,36 +48668,36 @@ function registerCSSInterfaceWithDefaultTheme() { } /***/ }), -/* 326 */ +/* 331 */ /***/ (function(module, exports, __webpack_require__) { // eslint-disable-next-line import/no-unresolved -module.exports = __webpack_require__(327).default; +module.exports = __webpack_require__(332).default; /***/ }), -/* 327 */ +/* 332 */ /***/ (function(module, exports, __webpack_require__) { Object.defineProperty(exports, "__esModule", { value: true }); -var _arrayPrototype = __webpack_require__(328); +var _arrayPrototype = __webpack_require__(333); var _arrayPrototype2 = _interopRequireDefault(_arrayPrototype); -var _globalCache = __webpack_require__(366); +var _globalCache = __webpack_require__(380); var _globalCache2 = _interopRequireDefault(_globalCache); -var _constants = __webpack_require__(367); +var _constants = __webpack_require__(381); -var _getClassName = __webpack_require__(368); +var _getClassName = __webpack_require__(382); var _getClassName2 = _interopRequireDefault(_getClassName); -var _separateStyles2 = __webpack_require__(369); +var _separateStyles2 = __webpack_require__(383); var _separateStyles3 = _interopRequireDefault(_separateStyles2); @@ -48644,19 +48755,19 @@ function resolve(stylesArray) { exports['default'] = { create: create, resolve: resolve }; /***/ }), -/* 328 */ +/* 333 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var define = __webpack_require__(103); -var callBind = __webpack_require__(188); +var define = __webpack_require__(104); +var callBind = __webpack_require__(335); -var implementation = __webpack_require__(221); +var implementation = __webpack_require__(219); var getPolyfill = __webpack_require__(236); var polyfill = getPolyfill(); -var shim = __webpack_require__(365); +var shim = __webpack_require__(379); var boundFlat = callBind(polyfill); @@ -48670,7 +48781,7 @@ module.exports = boundFlat; /***/ }), -/* 329 */ +/* 334 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -48681,7 +48792,7 @@ if (!Object.keys) { // modified from https://github.com/es-shims/es5-shim var has = Object.prototype.hasOwnProperty; var toStr = Object.prototype.toString; - var isArgs = __webpack_require__(219); // eslint-disable-line global-require + var isArgs = __webpack_require__(218); // eslint-disable-line global-require var isEnumerable = Object.prototype.propertyIsEnumerable; var hasDontEnumBug = !isEnumerable.call({ toString: null }, 'toString'); var hasProtoEnumBug = isEnumerable.call(function () {}, 'prototype'); @@ -48799,7 +48910,47 @@ module.exports = keysShim; /***/ }), -/* 330 */ +/* 335 */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +var bind = __webpack_require__(105); +var GetIntrinsic = __webpack_require__(337); + +var $apply = GetIntrinsic('%Function.prototype.apply%'); +var $call = GetIntrinsic('%Function.prototype.call%'); +var $reflectApply = GetIntrinsic('%Reflect.apply%', true) || bind.call($call, $apply); + +var $defineProperty = GetIntrinsic('%Object.defineProperty%', true); + +if ($defineProperty) { + try { + $defineProperty({}, 'a', { value: 1 }); + } catch (e) { + // IE 8 has a broken defineProperty + $defineProperty = null; + } +} + +module.exports = function callBind() { + return $reflectApply(bind, $call, arguments); +}; + +var applyBind = function applyBind() { + return $reflectApply(bind, $apply, arguments); +}; + +if ($defineProperty) { + $defineProperty(module.exports, 'apply', { value: applyBind }); +} else { + module.exports.apply = applyBind; +} + + +/***/ }), +/* 336 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -48858,7 +49009,326 @@ module.exports = function bind(that) { /***/ }), -/* 331 */ +/* 337 */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +/* globals + AggregateError, + Atomics, + FinalizationRegistry, + SharedArrayBuffer, + WeakRef, +*/ + +var undefined; + +var $SyntaxError = SyntaxError; +var $Function = Function; +var $TypeError = TypeError; + +// eslint-disable-next-line consistent-return +var getEvalledConstructor = function (expressionSyntax) { + try { + // eslint-disable-next-line no-new-func + return Function('"use strict"; return (' + expressionSyntax + ').constructor;')(); + } catch (e) {} +}; + +var $gOPD = Object.getOwnPropertyDescriptor; +if ($gOPD) { + try { + $gOPD({}, ''); + } catch (e) { + $gOPD = null; // this is IE 8, which has a broken gOPD + } +} + +var throwTypeError = function () { + throw new $TypeError(); +}; +var ThrowTypeError = $gOPD + ? (function () { + try { + // eslint-disable-next-line no-unused-expressions, no-caller, no-restricted-properties + arguments.callee; // IE 8 does not throw here + return throwTypeError; + } catch (calleeThrows) { + try { + // IE 8 throws on Object.getOwnPropertyDescriptor(arguments, '') + return $gOPD(arguments, 'callee').get; + } catch (gOPDthrows) { + return throwTypeError; + } + } + }()) + : throwTypeError; + +var hasSymbols = __webpack_require__(338)(); + +var getProto = Object.getPrototypeOf || function (x) { return x.__proto__; }; // eslint-disable-line no-proto + +var asyncGenFunction = getEvalledConstructor('async function* () {}'); +var asyncGenFunctionPrototype = asyncGenFunction ? asyncGenFunction.prototype : undefined; +var asyncGenPrototype = asyncGenFunctionPrototype ? asyncGenFunctionPrototype.prototype : undefined; + +var TypedArray = typeof Uint8Array === 'undefined' ? undefined : getProto(Uint8Array); + +var INTRINSICS = { + '%AggregateError%': typeof AggregateError === 'undefined' ? undefined : AggregateError, + '%Array%': Array, + '%ArrayBuffer%': typeof ArrayBuffer === 'undefined' ? undefined : ArrayBuffer, + '%ArrayIteratorPrototype%': hasSymbols ? getProto([][Symbol.iterator]()) : undefined, + '%AsyncFromSyncIteratorPrototype%': undefined, + '%AsyncFunction%': getEvalledConstructor('async function () {}'), + '%AsyncGenerator%': asyncGenFunctionPrototype, + '%AsyncGeneratorFunction%': asyncGenFunction, + '%AsyncIteratorPrototype%': asyncGenPrototype ? getProto(asyncGenPrototype) : undefined, + '%Atomics%': typeof Atomics === 'undefined' ? undefined : Atomics, + '%BigInt%': typeof BigInt === 'undefined' ? undefined : BigInt, + '%Boolean%': Boolean, + '%DataView%': typeof DataView === 'undefined' ? undefined : DataView, + '%Date%': Date, + '%decodeURI%': decodeURI, + '%decodeURIComponent%': decodeURIComponent, + '%encodeURI%': encodeURI, + '%encodeURIComponent%': encodeURIComponent, + '%Error%': Error, + '%eval%': eval, // eslint-disable-line no-eval + '%EvalError%': EvalError, + '%Float32Array%': typeof Float32Array === 'undefined' ? undefined : Float32Array, + '%Float64Array%': typeof Float64Array === 'undefined' ? undefined : Float64Array, + '%FinalizationRegistry%': typeof FinalizationRegistry === 'undefined' ? undefined : FinalizationRegistry, + '%Function%': $Function, + '%GeneratorFunction%': getEvalledConstructor('function* () {}'), + '%Int8Array%': typeof Int8Array === 'undefined' ? undefined : Int8Array, + '%Int16Array%': typeof Int16Array === 'undefined' ? undefined : Int16Array, + '%Int32Array%': typeof Int32Array === 'undefined' ? undefined : Int32Array, + '%isFinite%': isFinite, + '%isNaN%': isNaN, + '%IteratorPrototype%': hasSymbols ? getProto(getProto([][Symbol.iterator]())) : undefined, + '%JSON%': typeof JSON === 'object' ? JSON : undefined, + '%Map%': typeof Map === 'undefined' ? undefined : Map, + '%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols ? undefined : getProto(new Map()[Symbol.iterator]()), + '%Math%': Math, + '%Number%': Number, + '%Object%': Object, + '%parseFloat%': parseFloat, + '%parseInt%': parseInt, + '%Promise%': typeof Promise === 'undefined' ? undefined : Promise, + '%Proxy%': typeof Proxy === 'undefined' ? undefined : Proxy, + '%RangeError%': RangeError, + '%ReferenceError%': ReferenceError, + '%Reflect%': typeof Reflect === 'undefined' ? undefined : Reflect, + '%RegExp%': RegExp, + '%Set%': typeof Set === 'undefined' ? undefined : Set, + '%SetIteratorPrototype%': typeof Set === 'undefined' || !hasSymbols ? undefined : getProto(new Set()[Symbol.iterator]()), + '%SharedArrayBuffer%': typeof SharedArrayBuffer === 'undefined' ? undefined : SharedArrayBuffer, + '%String%': String, + '%StringIteratorPrototype%': hasSymbols ? getProto(''[Symbol.iterator]()) : undefined, + '%Symbol%': hasSymbols ? Symbol : undefined, + '%SyntaxError%': $SyntaxError, + '%ThrowTypeError%': ThrowTypeError, + '%TypedArray%': TypedArray, + '%TypeError%': $TypeError, + '%Uint8Array%': typeof Uint8Array === 'undefined' ? undefined : Uint8Array, + '%Uint8ClampedArray%': typeof Uint8ClampedArray === 'undefined' ? undefined : Uint8ClampedArray, + '%Uint16Array%': typeof Uint16Array === 'undefined' ? undefined : Uint16Array, + '%Uint32Array%': typeof Uint32Array === 'undefined' ? undefined : Uint32Array, + '%URIError%': URIError, + '%WeakMap%': typeof WeakMap === 'undefined' ? undefined : WeakMap, + '%WeakRef%': typeof WeakRef === 'undefined' ? undefined : WeakRef, + '%WeakSet%': typeof WeakSet === 'undefined' ? undefined : WeakSet +}; + +var LEGACY_ALIASES = { + '%ArrayBufferPrototype%': ['ArrayBuffer', 'prototype'], + '%ArrayPrototype%': ['Array', 'prototype'], + '%ArrayProto_entries%': ['Array', 'prototype', 'entries'], + '%ArrayProto_forEach%': ['Array', 'prototype', 'forEach'], + '%ArrayProto_keys%': ['Array', 'prototype', 'keys'], + '%ArrayProto_values%': ['Array', 'prototype', 'values'], + '%AsyncFunctionPrototype%': ['AsyncFunction', 'prototype'], + '%AsyncGenerator%': ['AsyncGeneratorFunction', 'prototype'], + '%AsyncGeneratorPrototype%': ['AsyncGeneratorFunction', 'prototype', 'prototype'], + '%BooleanPrototype%': ['Boolean', 'prototype'], + '%DataViewPrototype%': ['DataView', 'prototype'], + '%DatePrototype%': ['Date', 'prototype'], + '%ErrorPrototype%': ['Error', 'prototype'], + '%EvalErrorPrototype%': ['EvalError', 'prototype'], + '%Float32ArrayPrototype%': ['Float32Array', 'prototype'], + '%Float64ArrayPrototype%': ['Float64Array', 'prototype'], + '%FunctionPrototype%': ['Function', 'prototype'], + '%Generator%': ['GeneratorFunction', 'prototype'], + '%GeneratorPrototype%': ['GeneratorFunction', 'prototype', 'prototype'], + '%Int8ArrayPrototype%': ['Int8Array', 'prototype'], + '%Int16ArrayPrototype%': ['Int16Array', 'prototype'], + '%Int32ArrayPrototype%': ['Int32Array', 'prototype'], + '%JSONParse%': ['JSON', 'parse'], + '%JSONStringify%': ['JSON', 'stringify'], + '%MapPrototype%': ['Map', 'prototype'], + '%NumberPrototype%': ['Number', 'prototype'], + '%ObjectPrototype%': ['Object', 'prototype'], + '%ObjProto_toString%': ['Object', 'prototype', 'toString'], + '%ObjProto_valueOf%': ['Object', 'prototype', 'valueOf'], + '%PromisePrototype%': ['Promise', 'prototype'], + '%PromiseProto_then%': ['Promise', 'prototype', 'then'], + '%Promise_all%': ['Promise', 'all'], + '%Promise_reject%': ['Promise', 'reject'], + '%Promise_resolve%': ['Promise', 'resolve'], + '%RangeErrorPrototype%': ['RangeError', 'prototype'], + '%ReferenceErrorPrototype%': ['ReferenceError', 'prototype'], + '%RegExpPrototype%': ['RegExp', 'prototype'], + '%SetPrototype%': ['Set', 'prototype'], + '%SharedArrayBufferPrototype%': ['SharedArrayBuffer', 'prototype'], + '%StringPrototype%': ['String', 'prototype'], + '%SymbolPrototype%': ['Symbol', 'prototype'], + '%SyntaxErrorPrototype%': ['SyntaxError', 'prototype'], + '%TypedArrayPrototype%': ['TypedArray', 'prototype'], + '%TypeErrorPrototype%': ['TypeError', 'prototype'], + '%Uint8ArrayPrototype%': ['Uint8Array', 'prototype'], + '%Uint8ClampedArrayPrototype%': ['Uint8ClampedArray', 'prototype'], + '%Uint16ArrayPrototype%': ['Uint16Array', 'prototype'], + '%Uint32ArrayPrototype%': ['Uint32Array', 'prototype'], + '%URIErrorPrototype%': ['URIError', 'prototype'], + '%WeakMapPrototype%': ['WeakMap', 'prototype'], + '%WeakSetPrototype%': ['WeakSet', 'prototype'] +}; + +var bind = __webpack_require__(105); +var hasOwn = __webpack_require__(87); +var $concat = bind.call(Function.call, Array.prototype.concat); +var $spliceApply = bind.call(Function.apply, Array.prototype.splice); +var $replace = bind.call(Function.call, String.prototype.replace); + +/* adapted from https://github.com/lodash/lodash/blob/4.17.15/dist/lodash.js#L6735-L6744 */ +var rePropName = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g; +var reEscapeChar = /\\(\\)?/g; /** Used to match backslashes in property paths. */ +var stringToPath = function stringToPath(string) { + var result = []; + $replace(string, rePropName, function (match, number, quote, subString) { + result[result.length] = quote ? $replace(subString, reEscapeChar, '$1') : number || match; + }); + return result; +}; +/* end adaptation */ + +var getBaseIntrinsic = function getBaseIntrinsic(name, allowMissing) { + var intrinsicName = name; + var alias; + if (hasOwn(LEGACY_ALIASES, intrinsicName)) { + alias = LEGACY_ALIASES[intrinsicName]; + intrinsicName = '%' + alias[0] + '%'; + } + + if (hasOwn(INTRINSICS, intrinsicName)) { + var value = INTRINSICS[intrinsicName]; + if (typeof value === 'undefined' && !allowMissing) { + throw new $TypeError('intrinsic ' + name + ' exists, but is not available. Please file an issue!'); + } + + return { + alias: alias, + name: intrinsicName, + value: value + }; + } + + throw new $SyntaxError('intrinsic ' + name + ' does not exist!'); +}; + +module.exports = function GetIntrinsic(name, allowMissing) { + if (typeof name !== 'string' || name.length === 0) { + throw new $TypeError('intrinsic name must be a non-empty string'); + } + if (arguments.length > 1 && typeof allowMissing !== 'boolean') { + throw new $TypeError('"allowMissing" argument must be a boolean'); + } + + var parts = stringToPath(name); + var intrinsicBaseName = parts.length > 0 ? parts[0] : ''; + + var intrinsic = getBaseIntrinsic('%' + intrinsicBaseName + '%', allowMissing); + var intrinsicRealName = intrinsic.name; + var value = intrinsic.value; + var skipFurtherCaching = false; + + var alias = intrinsic.alias; + if (alias) { + intrinsicBaseName = alias[0]; + $spliceApply(parts, $concat([0, 1], alias)); + } + + for (var i = 1, isOwn = true; i < parts.length; i += 1) { + var part = parts[i]; + if (part === 'constructor' || !isOwn) { + skipFurtherCaching = true; + } + + intrinsicBaseName += '.' + part; + intrinsicRealName = '%' + intrinsicBaseName + '%'; + + if (hasOwn(INTRINSICS, intrinsicRealName)) { + value = INTRINSICS[intrinsicRealName]; + } else if (value != null) { + if ($gOPD && (i + 1) >= parts.length) { + var desc = $gOPD(value, part); + isOwn = !!desc; + + if (!allowMissing && !(part in value)) { + throw new $TypeError('base intrinsic for ' + name + ' exists, but the property is not available.'); + } + // By convention, when a data property is converted to an accessor + // property to emulate a data property that does not suffer from + // the override mistake, that accessor's getter is marked with + // an `originalValue` property. Here, when we detect this, we + // uphold the illusion by pretending to see that original data + // property, i.e., returning the value rather than the getter + // itself. + if (isOwn && 'get' in desc && !('originalValue' in desc.get)) { + value = desc.get; + } else { + value = value[part]; + } + } else { + isOwn = hasOwn(value, part); + value = value[part]; + } + + if (isOwn && !skipFurtherCaching) { + INTRINSICS[intrinsicRealName] = value; + } + } + } + return value; +}; + + +/***/ }), +/* 338 */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +/* WEBPACK VAR INJECTION */(function(global) { + +var origSymbol = global.Symbol; +var hasSymbolSham = __webpack_require__(339); + +module.exports = function hasNativeSymbols() { + if (typeof origSymbol !== 'function') { return false; } + if (typeof Symbol !== 'function') { return false; } + if (typeof origSymbol('foo') !== 'symbol') { return false; } + if (typeof Symbol('bar') !== 'symbol') { return false; } + + return hasSymbolSham(); +}; + +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(121))) + +/***/ }), +/* 339 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -48907,7 +49377,7 @@ module.exports = function hasSymbols() { /***/ }), -/* 332 */ +/* 340 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -48919,11 +49389,11 @@ var $Array = GetIntrinsic('%Array%'); var $species = GetIntrinsic('%Symbol.species%', true); var $TypeError = GetIntrinsic('%TypeError%'); -var Get = __webpack_require__(189); -var IsArray = __webpack_require__(190); -var IsConstructor = __webpack_require__(336); -var IsInteger = __webpack_require__(341); -var Type = __webpack_require__(93); +var Get = __webpack_require__(162); +var IsArray = __webpack_require__(189); +var IsConstructor = __webpack_require__(345); +var IsInteger = __webpack_require__(350); +var Type = __webpack_require__(90); // https://ecma-international.org/ecma-262/6.0/#sec-arrayspeciescreate @@ -48960,7 +49430,56 @@ module.exports = function ArraySpeciesCreate(originalArray, length) { /***/ }), -/* 333 */ +/* 341 */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +/* eslint complexity: [2, 18], max-statements: [2, 33] */ +module.exports = function hasSymbols() { + if (typeof Symbol !== 'function' || typeof Object.getOwnPropertySymbols !== 'function') { return false; } + if (typeof Symbol.iterator === 'symbol') { return true; } + + var obj = {}; + var sym = Symbol('test'); + var symObj = Object(sym); + if (typeof sym === 'string') { return false; } + + if (Object.prototype.toString.call(sym) !== '[object Symbol]') { return false; } + if (Object.prototype.toString.call(symObj) !== '[object Symbol]') { return false; } + + // temp disabled per https://github.com/ljharb/object.assign/issues/17 + // if (sym instanceof Symbol) { return false; } + // temp disabled per https://github.com/WebReflection/get-own-property-symbols/issues/4 + // if (!(symObj instanceof Symbol)) { return false; } + + // if (typeof Symbol.prototype.toString !== 'function') { return false; } + // if (String(sym) !== Symbol.prototype.toString.call(sym)) { return false; } + + var symVal = 42; + obj[sym] = symVal; + for (sym in obj) { return false; } // eslint-disable-line no-restricted-syntax + if (typeof Object.keys === 'function' && Object.keys(obj).length !== 0) { return false; } + + if (typeof Object.getOwnPropertyNames === 'function' && Object.getOwnPropertyNames(obj).length !== 0) { return false; } + + var syms = Object.getOwnPropertySymbols(obj); + if (syms.length !== 1 || syms[0] !== sym) { return false; } + + if (!Object.prototype.propertyIsEnumerable.call(obj, sym)) { return false; } + + if (typeof Object.getOwnPropertyDescriptor === 'function') { + var descriptor = Object.getOwnPropertyDescriptor(obj, sym); + if (descriptor.value !== symVal || descriptor.enumerable !== true) { return false; } + } + + return true; +}; + + +/***/ }), +/* 342 */ /***/ (function(module, exports, __webpack_require__) { var hasMap = typeof Map === 'function' && Map.prototype; @@ -48981,7 +49500,7 @@ var functionToString = Function.prototype.toString; var match = String.prototype.match; var bigIntValueOf = typeof BigInt === 'function' ? BigInt.prototype.valueOf : null; -var inspectCustom = __webpack_require__(334).custom; +var inspectCustom = __webpack_require__(343).custom; var inspectSymbol = inspectCustom && isSymbol(inspectCustom) ? inspectCustom : null; module.exports = function inspect_(obj, options, depth, seen) { @@ -49349,13 +49868,13 @@ function arrObjKeys(obj, inspect) { /***/ }), -/* 334 */ +/* 343 */ /***/ (function(module, exports) { /* (ignored) */ /***/ }), -/* 335 */ +/* 344 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -49386,7 +49905,7 @@ module.exports = function Type(x) { /***/ }), -/* 336 */ +/* 345 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -49396,7 +49915,7 @@ var GetIntrinsic = __webpack_require__(58); var $construct = GetIntrinsic('%Reflect.construct%', true); -var DefinePropertyOrThrow = __webpack_require__(337); +var DefinePropertyOrThrow = __webpack_require__(346); try { DefinePropertyOrThrow({}, '', { '[[Get]]': function () {} }); } catch (e) { @@ -49433,7 +49952,7 @@ if (DefinePropertyOrThrow && $construct) { /***/ }), -/* 337 */ +/* 346 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -49443,16 +49962,16 @@ var GetIntrinsic = __webpack_require__(58); var $TypeError = GetIntrinsic('%TypeError%'); -var isPropertyDescriptor = __webpack_require__(338); +var isPropertyDescriptor = __webpack_require__(347); var DefineOwnProperty = __webpack_require__(222); var FromPropertyDescriptor = __webpack_require__(223); -var IsAccessorDescriptor = __webpack_require__(339); +var IsAccessorDescriptor = __webpack_require__(348); var IsDataDescriptor = __webpack_require__(224); var IsPropertyKey = __webpack_require__(132); var SameValue = __webpack_require__(225); var ToPropertyDescriptor = __webpack_require__(226); -var Type = __webpack_require__(93); +var Type = __webpack_require__(90); // https://www.ecma-international.org/ecma-262/6.0/#sec-definepropertyorthrow @@ -49490,7 +50009,7 @@ module.exports = function DefinePropertyOrThrow(O, P, desc) { /***/ }), -/* 338 */ +/* 347 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -49498,7 +50017,7 @@ module.exports = function DefinePropertyOrThrow(O, P, desc) { var GetIntrinsic = __webpack_require__(58); -var has = __webpack_require__(94); +var has = __webpack_require__(87); var $TypeError = GetIntrinsic('%TypeError%'); module.exports = function IsPropertyDescriptor(ES, Desc) { @@ -49528,17 +50047,17 @@ module.exports = function IsPropertyDescriptor(ES, Desc) { /***/ }), -/* 339 */ +/* 348 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var has = __webpack_require__(94); +var has = __webpack_require__(87); -var assertRecord = __webpack_require__(191); +var assertRecord = __webpack_require__(190); -var Type = __webpack_require__(93); +var Type = __webpack_require__(90); // https://www.ecma-international.org/ecma-262/6.0/#sec-isaccessordescriptor @@ -49558,7 +50077,7 @@ module.exports = function IsAccessorDescriptor(Desc) { /***/ }), -/* 340 */ +/* 349 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -49570,20 +50089,16 @@ module.exports = __webpack_require__(228); /***/ }), -/* 341 */ +/* 350 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var GetIntrinsic = __webpack_require__(58); - -var $Math = GetIntrinsic('%Math%'); - -var $floor = $Math.floor; -var $abs = $Math.abs; +var abs = __webpack_require__(351); +var floor = __webpack_require__(352); -var $isNaN = __webpack_require__(192); +var $isNaN = __webpack_require__(191); var $isFinite = __webpack_require__(229); // https://www.ecma-international.org/ecma-262/6.0/#sec-isinteger @@ -49592,13 +50107,49 @@ module.exports = function IsInteger(argument) { if (typeof argument !== 'number' || $isNaN(argument) || !$isFinite(argument)) { return false; } - var abs = $abs(argument); - return $floor(abs) === abs; + var absValue = abs(argument); + return floor(absValue) === absValue; }; /***/ }), -/* 342 */ +/* 351 */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +var GetIntrinsic = __webpack_require__(58); + +var $abs = GetIntrinsic('%Math.abs%'); + +// http://www.ecma-international.org/ecma-262/5.1/#sec-5.2 + +module.exports = function abs(x) { + return $abs(x); +}; + + +/***/ }), +/* 352 */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +// var modulo = require('./modulo'); +var $floor = Math.floor; + +// http://www.ecma-international.org/ecma-262/5.1/#sec-5.2 + +module.exports = function floor(x) { + // return x - modulo(x, 1); + return $floor(x); +}; + + +/***/ }), +/* 353 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -49610,17 +50161,17 @@ var $TypeError = GetIntrinsic('%TypeError%'); var MAX_SAFE_INTEGER = __webpack_require__(230); -var Call = __webpack_require__(343); -var CreateDataPropertyOrThrow = __webpack_require__(344); -var Get = __webpack_require__(189); -var HasProperty = __webpack_require__(351); -var IsArray = __webpack_require__(190); -var ToLength = __webpack_require__(232); -var ToString = __webpack_require__(361); +var Call = __webpack_require__(354); +var CreateDataPropertyOrThrow = __webpack_require__(355); +var Get = __webpack_require__(162); +var HasProperty = __webpack_require__(362); +var IsArray = __webpack_require__(189); +var LengthOfArrayLike = __webpack_require__(363); +var ToString = __webpack_require__(375); -// https://ecma-international.org/ecma-262/10.0/#sec-flattenintoarray +// https://tc39.es/ecma262/2020/#sec-flattenintoarray -// eslint-disable-next-line max-params, max-statements +// eslint-disable-next-line max-params module.exports = function FlattenIntoArray(target, source, sourceLen, start, depth) { var mapperFunction; if (arguments.length > 5) { @@ -49645,7 +50196,7 @@ module.exports = function FlattenIntoArray(target, source, sourceLen, start, dep shouldFlatten = IsArray(element); } if (shouldFlatten) { - var elementLen = ToLength(Get(element, 'length')); + var elementLen = LengthOfArrayLike(element); targetIndex = FlattenIntoArray(target, element, elementLen, targetIndex, depth - 1); } else { if (targetIndex >= MAX_SAFE_INTEGER) { @@ -49663,7 +50214,7 @@ module.exports = function FlattenIntoArray(target, source, sourceLen, start, dep /***/ }), -/* 343 */ +/* 354 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -49683,7 +50234,7 @@ module.exports = function Call(F, V) { /***/ }), -/* 344 */ +/* 355 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -49693,9 +50244,9 @@ var GetIntrinsic = __webpack_require__(58); var $TypeError = GetIntrinsic('%TypeError%'); -var CreateDataProperty = __webpack_require__(345); +var CreateDataProperty = __webpack_require__(356); var IsPropertyKey = __webpack_require__(132); -var Type = __webpack_require__(93); +var Type = __webpack_require__(90); // // https://ecma-international.org/ecma-262/6.0/#sec-createdatapropertyorthrow @@ -49715,7 +50266,7 @@ module.exports = function CreateDataPropertyOrThrow(O, P, V) { /***/ }), -/* 345 */ +/* 356 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -49728,12 +50279,12 @@ var $TypeError = GetIntrinsic('%TypeError%'); var DefineOwnProperty = __webpack_require__(222); var FromPropertyDescriptor = __webpack_require__(223); -var OrdinaryGetOwnProperty = __webpack_require__(346); +var OrdinaryGetOwnProperty = __webpack_require__(357); var IsDataDescriptor = __webpack_require__(224); -var IsExtensible = __webpack_require__(350); +var IsExtensible = __webpack_require__(361); var IsPropertyKey = __webpack_require__(132); var SameValue = __webpack_require__(225); -var Type = __webpack_require__(93); +var Type = __webpack_require__(90); // https://www.ecma-international.org/ecma-262/6.0/#sec-createdataproperty @@ -49767,7 +50318,7 @@ module.exports = function CreateDataProperty(O, P, V) { /***/ }), -/* 346 */ +/* 357 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -49775,20 +50326,20 @@ module.exports = function CreateDataProperty(O, P, V) { var GetIntrinsic = __webpack_require__(58); -var $gOPD = __webpack_require__(347); +var $gOPD = __webpack_require__(358); var $TypeError = GetIntrinsic('%TypeError%'); var callBound = __webpack_require__(144); var $isEnumerable = callBound('Object.prototype.propertyIsEnumerable'); -var has = __webpack_require__(94); +var has = __webpack_require__(87); -var IsArray = __webpack_require__(190); +var IsArray = __webpack_require__(189); var IsPropertyKey = __webpack_require__(132); -var IsRegExp = __webpack_require__(348); +var IsRegExp = __webpack_require__(359); var ToPropertyDescriptor = __webpack_require__(226); -var Type = __webpack_require__(93); +var Type = __webpack_require__(90); // https://www.ecma-international.org/ecma-262/6.0/#sec-ordinarygetownproperty @@ -49818,7 +50369,7 @@ module.exports = function OrdinaryGetOwnProperty(O, P) { /***/ }), -/* 347 */ +/* 358 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -49840,7 +50391,7 @@ module.exports = $gOPD; /***/ }), -/* 348 */ +/* 359 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -49850,7 +50401,7 @@ var GetIntrinsic = __webpack_require__(58); var $match = GetIntrinsic('%Symbol.match%', true); -var hasRegExpMatcher = __webpack_require__(349); +var hasRegExpMatcher = __webpack_require__(360); var ToBoolean = __webpack_require__(227); @@ -49871,7 +50422,7 @@ module.exports = function IsRegExp(argument) { /***/ }), -/* 349 */ +/* 360 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -49936,7 +50487,7 @@ module.exports = hasToStringTag /***/ }), -/* 350 */ +/* 361 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -49963,7 +50514,7 @@ module.exports = $preventExtensions /***/ }), -/* 351 */ +/* 362 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -49974,7 +50525,7 @@ var GetIntrinsic = __webpack_require__(58); var $TypeError = GetIntrinsic('%TypeError%'); var IsPropertyKey = __webpack_require__(132); -var Type = __webpack_require__(93); +var Type = __webpack_require__(90); // https://ecma-international.org/ecma-262/6.0/#sec-hasproperty @@ -49990,7 +50541,7 @@ module.exports = function HasProperty(O, P) { /***/ }), -/* 352 */ +/* 363 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -49998,15 +50549,38 @@ module.exports = function HasProperty(O, P) { var GetIntrinsic = __webpack_require__(58); -var $Math = GetIntrinsic('%Math%'); +var $TypeError = GetIntrinsic('%TypeError%'); -var ToNumber = __webpack_require__(353); -var $isNaN = __webpack_require__(192); -var $isFinite = __webpack_require__(229); -var $sign = __webpack_require__(354); +var Get = __webpack_require__(162); +var ToLength = __webpack_require__(232); +var Type = __webpack_require__(90); + +// https://tc39.es/ecma262/2020/#sec-lengthofarraylike + +module.exports = function LengthOfArrayLike(obj) { + if (Type(obj) !== 'Object') { + throw new $TypeError('Assertion failed: `obj` must be an Object'); + } + return ToLength(Get(obj, 'length')); +}; + +// TODO: use this all over + + +/***/ }), +/* 364 */ +/***/ (function(module, exports, __webpack_require__) { -var $floor = $Math.floor; -var $abs = $Math.abs; +"use strict"; + + +var abs = __webpack_require__(365); +var floor = __webpack_require__(366); +var ToNumber = __webpack_require__(367); + +var $isNaN = __webpack_require__(191); +var $isFinite = __webpack_require__(229); +var $sign = __webpack_require__(368); // http://www.ecma-international.org/ecma-262/5.1/#sec-9.4 @@ -50014,12 +50588,48 @@ module.exports = function ToInteger(value) { var number = ToNumber(value); if ($isNaN(number)) { return 0; } if (number === 0 || !$isFinite(number)) { return number; } - return $sign(number) * $floor($abs(number)); + return $sign(number) * floor(abs(number)); }; /***/ }), -/* 353 */ +/* 365 */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +var GetIntrinsic = __webpack_require__(58); + +var $abs = GetIntrinsic('%Math.abs%'); + +// http://www.ecma-international.org/ecma-262/5.1/#sec-5.2 + +module.exports = function abs(x) { + return $abs(x); +}; + + +/***/ }), +/* 366 */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +// var modulo = require('./modulo'); +var $floor = Math.floor; + +// http://www.ecma-international.org/ecma-262/5.1/#sec-5.2 + +module.exports = function floor(x) { + // return x - modulo(x, 1); + return $floor(x); +}; + + +/***/ }), +/* 367 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -50033,7 +50643,7 @@ module.exports = function ToNumber(value) { /***/ }), -/* 354 */ +/* 368 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -50045,7 +50655,7 @@ module.exports = function sign(number) { /***/ }), -/* 355 */ +/* 369 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -50059,7 +50669,7 @@ var $RegExp = GetIntrinsic('%RegExp%'); var $parseInteger = GetIntrinsic('%parseInt%'); var callBound = __webpack_require__(144); -var regexTester = __webpack_require__(356); +var regexTester = __webpack_require__(370); var isPrimitive = __webpack_require__(231); var $strSlice = callBound('String.prototype.slice'); @@ -50083,7 +50693,7 @@ var $trim = function (value) { return $replace(value, trimRegex, ''); }; -var ToPrimitive = __webpack_require__(357); +var ToPrimitive = __webpack_require__(371); // https://www.ecma-international.org/ecma-262/6.0/#sec-tonumber @@ -50111,7 +50721,7 @@ module.exports = function ToNumber(argument) { /***/ }), -/* 356 */ +/* 370 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -50121,7 +50731,7 @@ var GetIntrinsic = __webpack_require__(58); var $test = GetIntrinsic('RegExp.prototype.test'); -var callBind = __webpack_require__(188); +var callBind = __webpack_require__(221); module.exports = function regexTester(regex) { return callBind($test, regex); @@ -50129,13 +50739,13 @@ module.exports = function regexTester(regex) { /***/ }), -/* 357 */ +/* 371 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var toPrimitive = __webpack_require__(358); +var toPrimitive = __webpack_require__(372); // https://www.ecma-international.org/ecma-262/6.0/#sec-toprimitive @@ -50148,7 +50758,7 @@ module.exports = function ToPrimitive(input) { /***/ }), -/* 358 */ +/* 372 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -50156,10 +50766,10 @@ module.exports = function ToPrimitive(input) { var hasSymbols = typeof Symbol === 'function' && typeof Symbol.iterator === 'symbol'; -var isPrimitive = __webpack_require__(359); +var isPrimitive = __webpack_require__(373); var isCallable = __webpack_require__(228); var isDate = __webpack_require__(234); -var isSymbol = __webpack_require__(193); +var isSymbol = __webpack_require__(192); var ordinaryToPrimitive = function OrdinaryToPrimitive(O, hint) { if (typeof O === 'undefined' || O === null) { @@ -50230,7 +50840,7 @@ module.exports = function ToPrimitive(input) { /***/ }), -/* 359 */ +/* 373 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -50242,7 +50852,7 @@ module.exports = function isPrimitive(value) { /***/ }), -/* 360 */ +/* 374 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -50260,10 +50870,10 @@ module.exports = function hasNativeSymbols() { return hasSymbolSham(); }; -/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(131))) +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(121))) /***/ }), -/* 361 */ +/* 375 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -50285,7 +50895,7 @@ module.exports = function ToString(argument) { /***/ }), -/* 362 */ +/* 376 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -50295,7 +50905,7 @@ var GetIntrinsic = __webpack_require__(58); var $Object = GetIntrinsic('%Object%'); -var RequireObjectCoercible = __webpack_require__(363); +var RequireObjectCoercible = __webpack_require__(377); // https://www.ecma-international.org/ecma-262/6.0/#sec-toobject @@ -50306,17 +50916,17 @@ module.exports = function ToObject(value) { /***/ }), -/* 363 */ +/* 377 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -module.exports = __webpack_require__(364); +module.exports = __webpack_require__(378); /***/ }), -/* 364 */ +/* 378 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -50337,13 +50947,13 @@ module.exports = function CheckObjectCoercible(value, optMessage) { /***/ }), -/* 365 */ +/* 379 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var define = __webpack_require__(103); +var define = __webpack_require__(104); var getPolyfill = __webpack_require__(236); module.exports = function shimFlat() { @@ -50358,14 +50968,14 @@ module.exports = function shimFlat() { /***/ }), -/* 366 */ +/* 380 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(global) { -var define = __webpack_require__(103); -var isSymbol = __webpack_require__(193); +var define = __webpack_require__(104); +var isSymbol = __webpack_require__(192); var globalKey = '__ global cache key __'; /* istanbul ignore else */ @@ -50454,10 +51064,10 @@ var globalCache = { module.exports = globalCache; -/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(131))) +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(121))) /***/ }), -/* 367 */ +/* 381 */ /***/ (function(module, exports) { Object.defineProperty(exports, "__esModule", { @@ -50470,7 +51080,7 @@ exports.GLOBAL_CACHE_KEY = GLOBAL_CACHE_KEY; exports.MAX_SPECIFICITY = MAX_SPECIFICITY; /***/ }), -/* 368 */ +/* 382 */ /***/ (function(module, exports) { Object.defineProperty(exports, "__esModule", { @@ -50491,7 +51101,7 @@ function getClassName(namespace, styleName) { } /***/ }), -/* 369 */ +/* 383 */ /***/ (function(module, exports) { Object.defineProperty(exports, "__esModule", { @@ -50539,7 +51149,7 @@ function separateStyles(stylesArray) { exports['default'] = separateStyles; /***/ }), -/* 370 */ +/* 384 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -50566,13 +51176,13 @@ function registerInterfaceWithDefaultTheme(reactWithStylesInterface) { } /***/ }), -/* 371 */ +/* 385 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var define = __webpack_require__(103); +var define = __webpack_require__(104); var getPolyfill = __webpack_require__(240); module.exports = function shimAssign() { @@ -50587,7 +51197,7 @@ module.exports = function shimAssign() { /***/ }), -/* 372 */ +/* 386 */ /***/ (function(module, exports, __webpack_require__) { var moment = __webpack_require__(44); @@ -50613,7 +51223,7 @@ module.exports = { /***/ }), -/* 373 */ +/* 387 */ /***/ (function(module, exports) { var messages = { @@ -50738,7 +51348,7 @@ module.exports = { /***/ }), -/* 374 */ +/* 388 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -50795,23 +51405,23 @@ module.exports = { /***/ }), -/* 375 */ +/* 389 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -module.exports = __webpack_require__(376); +module.exports = __webpack_require__(390); /***/ }), -/* 376 */ +/* 390 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var ES2015 = __webpack_require__(377); +var ES2015 = __webpack_require__(391); var assign = __webpack_require__(247); var ES2016 = assign(assign({}, ES2015), { @@ -50828,17 +51438,17 @@ module.exports = ES2016; /***/ }), -/* 377 */ +/* 391 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var has = __webpack_require__(94); -var toPrimitive = __webpack_require__(378); -var keys = __webpack_require__(187); +var has = __webpack_require__(87); +var toPrimitive = __webpack_require__(392); +var keys = __webpack_require__(188); -var GetIntrinsic = __webpack_require__(195); +var GetIntrinsic = __webpack_require__(194); var $TypeError = GetIntrinsic('%TypeError%'); var $SyntaxError = GetIntrinsic('%SyntaxError%'); @@ -50859,9 +51469,9 @@ var MAX_SAFE_INTEGER = $Number.MAX_SAFE_INTEGER || Math.pow(2, 53) - 1; var assign = __webpack_require__(247); var sign = __webpack_require__(248); var mod = __webpack_require__(249); -var isPrimitive = __webpack_require__(380); +var isPrimitive = __webpack_require__(394); var parseInteger = parseInt; -var bind = __webpack_require__(120); +var bind = __webpack_require__(105); var arraySlice = bind.call(Function.call, $Array.prototype.slice); var strSlice = bind.call(Function.call, $String.prototype.slice); var isBinary = bind.call(Function.call, $RegExp.prototype.test, /^0b[01]+$/i); @@ -50904,9 +51514,9 @@ var trim = function (value) { return replace(value, trimRegex, ''); }; -var ES5 = __webpack_require__(381); +var ES5 = __webpack_require__(395); -var hasRegExpMatcher = __webpack_require__(383); +var hasRegExpMatcher = __webpack_require__(397); // https://people.mozilla.org/~jorendorff/es6-draft.html#sec-abstract-operations var ES6 = assign(assign({}, ES5), { @@ -51625,17 +52235,17 @@ module.exports = ES6; /***/ }), -/* 378 */ +/* 392 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -module.exports = __webpack_require__(379); +module.exports = __webpack_require__(393); /***/ }), -/* 379 */ +/* 393 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -51644,9 +52254,9 @@ module.exports = __webpack_require__(379); var hasSymbols = typeof Symbol === 'function' && typeof Symbol.iterator === 'symbol'; var isPrimitive = __webpack_require__(243); -var isCallable = __webpack_require__(194); +var isCallable = __webpack_require__(193); var isDate = __webpack_require__(234); -var isSymbol = __webpack_require__(193); +var isSymbol = __webpack_require__(192); var ordinaryToPrimitive = function OrdinaryToPrimitive(O, hint) { if (typeof O === 'undefined' || O === null) { @@ -51717,7 +52327,7 @@ module.exports = function ToPrimitive(input) { /***/ }), -/* 380 */ +/* 394 */ /***/ (function(module, exports) { module.exports = function isPrimitive(value) { @@ -51726,13 +52336,13 @@ module.exports = function isPrimitive(value) { /***/ }), -/* 381 */ +/* 395 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var GetIntrinsic = __webpack_require__(195); +var GetIntrinsic = __webpack_require__(194); var $Object = GetIntrinsic('%Object%'); var $TypeError = GetIntrinsic('%TypeError%'); @@ -51745,10 +52355,10 @@ var $isFinite = __webpack_require__(246); var sign = __webpack_require__(248); var mod = __webpack_require__(249); -var IsCallable = __webpack_require__(194); -var toPrimitive = __webpack_require__(382); +var IsCallable = __webpack_require__(193); +var toPrimitive = __webpack_require__(396); -var has = __webpack_require__(94); +var has = __webpack_require__(87); // https://es5.github.io/#x9 var ES5 = { @@ -51968,7 +52578,7 @@ module.exports = ES5; /***/ }), -/* 382 */ +/* 396 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -51978,7 +52588,7 @@ var toStr = Object.prototype.toString; var isPrimitive = __webpack_require__(243); -var isCallable = __webpack_require__(194); +var isCallable = __webpack_require__(193); // http://ecma-international.org/ecma-262/5.1/#sec-8.12.8 var ES5internalSlots = { @@ -52020,13 +52630,13 @@ module.exports = function ToPrimitive(input) { /***/ }), -/* 383 */ +/* 397 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var has = __webpack_require__(94); +var has = __webpack_require__(87); var regexExec = RegExp.prototype.exec; var gOPD = Object.getOwnPropertyDescriptor; @@ -52066,14 +52676,14 @@ module.exports = function isRegex(value) { /***/ }), -/* 384 */ +/* 398 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var getPolyfill = __webpack_require__(250); -var define = __webpack_require__(103); +var define = __webpack_require__(104); module.exports = function shimValues() { var polyfill = getPolyfill(); @@ -52087,7 +52697,7 @@ module.exports = function shimValues() { /***/ }), -/* 385 */ +/* 399 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -52102,7 +52712,7 @@ var _moment = __webpack_require__(44); var _moment2 = _interopRequireDefault(_moment); -var _toISOMonthString = __webpack_require__(197); +var _toISOMonthString = __webpack_require__(196); var _toISOMonthString2 = _interopRequireDefault(_toISOMonthString); @@ -52156,7 +52766,7 @@ function getVisibleDays(month, numberOfMonths, enableOutsideDays, withoutTransit } /***/ }), -/* 386 */ +/* 400 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -52187,15 +52797,15 @@ var _reactAddonsShallowCompare = __webpack_require__(147); var _reactAddonsShallowCompare2 = _interopRequireDefault(_reactAddonsShallowCompare); -var _airbnbPropTypes = __webpack_require__(89); +var _airbnbPropTypes = __webpack_require__(91); -var _reactWithStyles = __webpack_require__(112); +var _reactWithStyles = __webpack_require__(114); var _moment = __webpack_require__(44); var _moment2 = _interopRequireDefault(_moment); -var _throttle = __webpack_require__(393); +var _throttle = __webpack_require__(407); var _throttle2 = _interopRequireDefault(_throttle); @@ -52203,29 +52813,29 @@ var _isTouchDevice = __webpack_require__(251); var _isTouchDevice2 = _interopRequireDefault(_isTouchDevice); -var _reactOutsideClickHandler = __webpack_require__(403); +var _reactOutsideClickHandler = __webpack_require__(417); var _reactOutsideClickHandler2 = _interopRequireDefault(_reactOutsideClickHandler); -var _defaultPhrases = __webpack_require__(110); +var _defaultPhrases = __webpack_require__(112); -var _getPhrasePropTypes = __webpack_require__(111); +var _getPhrasePropTypes = __webpack_require__(113); var _getPhrasePropTypes2 = _interopRequireDefault(_getPhrasePropTypes); -var _CalendarMonthGrid = __webpack_require__(407); +var _CalendarMonthGrid = __webpack_require__(421); var _CalendarMonthGrid2 = _interopRequireDefault(_CalendarMonthGrid); -var _DayPickerNavigation = __webpack_require__(417); +var _DayPickerNavigation = __webpack_require__(431); var _DayPickerNavigation2 = _interopRequireDefault(_DayPickerNavigation); -var _DayPickerKeyboardShortcuts = __webpack_require__(422); +var _DayPickerKeyboardShortcuts = __webpack_require__(436); var _DayPickerKeyboardShortcuts2 = _interopRequireDefault(_DayPickerKeyboardShortcuts); -var _getNumberOfCalendarMonthWeeks = __webpack_require__(425); +var _getNumberOfCalendarMonthWeeks = __webpack_require__(439); var _getNumberOfCalendarMonthWeeks2 = _interopRequireDefault(_getNumberOfCalendarMonthWeeks); @@ -52237,7 +52847,7 @@ var _calculateDimension = __webpack_require__(265); var _calculateDimension2 = _interopRequireDefault(_calculateDimension); -var _getActiveElement = __webpack_require__(426); +var _getActiveElement = __webpack_require__(440); var _getActiveElement2 = _interopRequireDefault(_getActiveElement); @@ -52245,7 +52855,7 @@ var _isDayVisible = __webpack_require__(255); var _isDayVisible2 = _interopRequireDefault(_isDayVisible); -var _ModifiersShape = __webpack_require__(163); +var _ModifiersShape = __webpack_require__(164); var _ModifiersShape2 = _interopRequireDefault(_ModifiersShape); @@ -52253,7 +52863,7 @@ var _ScrollableOrientationShape = __webpack_require__(146); var _ScrollableOrientationShape2 = _interopRequireDefault(_ScrollableOrientationShape); -var _DayOfWeekShape = __webpack_require__(162); +var _DayOfWeekShape = __webpack_require__(163); var _DayOfWeekShape2 = _interopRequireDefault(_DayOfWeekShape); @@ -53738,7 +54348,7 @@ exports['default'] = (0, _reactWithStyles.withStyles)(function (_ref2) { })(DayPicker); /***/ }), -/* 387 */ +/* 401 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -53809,13 +54419,13 @@ function shallowEqual(objA, objB) { module.exports = shallowEqual; /***/ }), -/* 388 */ +/* 402 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var reactIs = __webpack_require__(389); +var reactIs = __webpack_require__(403); /** * Copyright 2015, Yahoo! Inc. @@ -53919,19 +54529,19 @@ module.exports = hoistNonReactStatics; /***/ }), -/* 389 */ +/* 403 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; if (true) { - module.exports = __webpack_require__(390); + module.exports = __webpack_require__(404); } else {} /***/ }), -/* 390 */ +/* 404 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -53953,7 +54563,7 @@ exports.isSuspense=function(a){return t(a)===p}; /***/ }), -/* 391 */ +/* 405 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -53970,7 +54580,7 @@ var DIRECTIONS = exports.DIRECTIONS = { }; /***/ }), -/* 392 */ +/* 406 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -53993,11 +54603,11 @@ exports['default'] = _propTypes2['default'].shape({ }); /***/ }), -/* 393 */ +/* 407 */ /***/ (function(module, exports, __webpack_require__) { -var debounce = __webpack_require__(394), - isObject = __webpack_require__(198); +var debounce = __webpack_require__(408), + isObject = __webpack_require__(197); /** Error message constants. */ var FUNC_ERROR_TEXT = 'Expected a function'; @@ -54068,12 +54678,12 @@ module.exports = throttle; /***/ }), -/* 394 */ +/* 408 */ /***/ (function(module, exports, __webpack_require__) { -var isObject = __webpack_require__(198), - now = __webpack_require__(395), - toNumber = __webpack_require__(397); +var isObject = __webpack_require__(197), + now = __webpack_require__(409), + toNumber = __webpack_require__(411); /** Error message constants. */ var FUNC_ERROR_TEXT = 'Expected a function'; @@ -54265,7 +54875,7 @@ module.exports = debounce; /***/ }), -/* 395 */ +/* 409 */ /***/ (function(module, exports, __webpack_require__) { var root = __webpack_require__(258); @@ -54294,7 +54904,7 @@ module.exports = now; /***/ }), -/* 396 */ +/* 410 */ /***/ (function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(global) {/** Detect free variable `global` from Node.js. */ @@ -54302,14 +54912,14 @@ var freeGlobal = typeof global == 'object' && global && global.Object === Object module.exports = freeGlobal; -/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(131))) +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(121))) /***/ }), -/* 397 */ +/* 411 */ /***/ (function(module, exports, __webpack_require__) { -var isObject = __webpack_require__(198), - isSymbol = __webpack_require__(398); +var isObject = __webpack_require__(197), + isSymbol = __webpack_require__(412); /** Used as references for various `Number` constants. */ var NAN = 0 / 0; @@ -54377,11 +54987,11 @@ module.exports = toNumber; /***/ }), -/* 398 */ +/* 412 */ /***/ (function(module, exports, __webpack_require__) { -var baseGetTag = __webpack_require__(399), - isObjectLike = __webpack_require__(402); +var baseGetTag = __webpack_require__(413), + isObjectLike = __webpack_require__(416); /** `Object#toString` result references. */ var symbolTag = '[object Symbol]'; @@ -54412,12 +55022,12 @@ module.exports = isSymbol; /***/ }), -/* 399 */ +/* 413 */ /***/ (function(module, exports, __webpack_require__) { var Symbol = __webpack_require__(259), - getRawTag = __webpack_require__(400), - objectToString = __webpack_require__(401); + getRawTag = __webpack_require__(414), + objectToString = __webpack_require__(415); /** `Object#toString` result references. */ var nullTag = '[object Null]', @@ -54446,7 +55056,7 @@ module.exports = baseGetTag; /***/ }), -/* 400 */ +/* 414 */ /***/ (function(module, exports, __webpack_require__) { var Symbol = __webpack_require__(259); @@ -54498,7 +55108,7 @@ module.exports = getRawTag; /***/ }), -/* 401 */ +/* 415 */ /***/ (function(module, exports) { /** Used for built-in method references. */ @@ -54526,7 +55136,7 @@ module.exports = objectToString; /***/ }), -/* 402 */ +/* 416 */ /***/ (function(module, exports) { /** @@ -54561,15 +55171,15 @@ module.exports = isObjectLike; /***/ }), -/* 403 */ +/* 417 */ /***/ (function(module, exports, __webpack_require__) { // eslint-disable-next-line import/no-unresolved -module.exports = __webpack_require__(404); +module.exports = __webpack_require__(418); /***/ }), -/* 404 */ +/* 418 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -54589,7 +55199,7 @@ var _propTypes = __webpack_require__(28); var _propTypes2 = _interopRequireDefault(_propTypes); -var _airbnbPropTypes = __webpack_require__(89); +var _airbnbPropTypes = __webpack_require__(91); var _consolidatedEvents = __webpack_require__(260); @@ -54597,7 +55207,7 @@ var _object = __webpack_require__(241); var _object2 = _interopRequireDefault(_object); -var _document = __webpack_require__(405); +var _document = __webpack_require__(419); var _document2 = _interopRequireDefault(_document); @@ -54807,18 +55417,18 @@ OutsideClickHandler.propTypes = propTypes; OutsideClickHandler.defaultProps = defaultProps; /***/ }), -/* 405 */ +/* 419 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var define = __webpack_require__(103); +var define = __webpack_require__(104); var implementation = __webpack_require__(261); var getPolyfill = __webpack_require__(262); var polyfill = getPolyfill(); -var shim = __webpack_require__(406); +var shim = __webpack_require__(420); var boundContains = function contains(node, other) { return polyfill.apply(node, [other]); @@ -54834,13 +55444,13 @@ module.exports = boundContains; /***/ }), -/* 406 */ +/* 420 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var define = __webpack_require__(103); +var define = __webpack_require__(104); var getPolyfill = __webpack_require__(262); module.exports = function shimContains() { @@ -54864,7 +55474,7 @@ module.exports = function shimContains() { /***/ }), -/* 407 */ +/* 421 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -54898,9 +55508,9 @@ var _reactMomentProptypes = __webpack_require__(145); var _reactMomentProptypes2 = _interopRequireDefault(_reactMomentProptypes); -var _airbnbPropTypes = __webpack_require__(89); +var _airbnbPropTypes = __webpack_require__(91); -var _reactWithStyles = __webpack_require__(112); +var _reactWithStyles = __webpack_require__(114); var _moment = __webpack_require__(44); @@ -54908,21 +55518,21 @@ var _moment2 = _interopRequireDefault(_moment); var _consolidatedEvents = __webpack_require__(260); -var _defaultPhrases = __webpack_require__(110); +var _defaultPhrases = __webpack_require__(112); -var _getPhrasePropTypes = __webpack_require__(111); +var _getPhrasePropTypes = __webpack_require__(113); var _getPhrasePropTypes2 = _interopRequireDefault(_getPhrasePropTypes); -var _CalendarMonth = __webpack_require__(408); +var _CalendarMonth = __webpack_require__(422); var _CalendarMonth2 = _interopRequireDefault(_CalendarMonth); -var _isTransitionEndSupported = __webpack_require__(413); +var _isTransitionEndSupported = __webpack_require__(427); var _isTransitionEndSupported2 = _interopRequireDefault(_isTransitionEndSupported); -var _getTransformStyles = __webpack_require__(414); +var _getTransformStyles = __webpack_require__(428); var _getTransformStyles2 = _interopRequireDefault(_getTransformStyles); @@ -54930,19 +55540,19 @@ var _getCalendarMonthWidth = __webpack_require__(266); var _getCalendarMonthWidth2 = _interopRequireDefault(_getCalendarMonthWidth); -var _toISOMonthString = __webpack_require__(197); +var _toISOMonthString = __webpack_require__(196); var _toISOMonthString2 = _interopRequireDefault(_toISOMonthString); -var _isPrevMonth = __webpack_require__(415); +var _isPrevMonth = __webpack_require__(429); var _isPrevMonth2 = _interopRequireDefault(_isPrevMonth); -var _isNextMonth = __webpack_require__(416); +var _isNextMonth = __webpack_require__(430); var _isNextMonth2 = _interopRequireDefault(_isNextMonth); -var _ModifiersShape = __webpack_require__(163); +var _ModifiersShape = __webpack_require__(164); var _ModifiersShape2 = _interopRequireDefault(_ModifiersShape); @@ -54950,7 +55560,7 @@ var _ScrollableOrientationShape = __webpack_require__(146); var _ScrollableOrientationShape2 = _interopRequireDefault(_ScrollableOrientationShape); -var _DayOfWeekShape = __webpack_require__(162); +var _DayOfWeekShape = __webpack_require__(163); var _DayOfWeekShape2 = _interopRequireDefault(_DayOfWeekShape); @@ -55430,7 +56040,7 @@ exports['default'] = (0, _reactWithStyles.withStyles)(function (_ref) { })(CalendarMonthGrid); /***/ }), -/* 408 */ +/* 422 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -55464,21 +56074,21 @@ var _reactMomentProptypes = __webpack_require__(145); var _reactMomentProptypes2 = _interopRequireDefault(_reactMomentProptypes); -var _airbnbPropTypes = __webpack_require__(89); +var _airbnbPropTypes = __webpack_require__(91); -var _reactWithStyles = __webpack_require__(112); +var _reactWithStyles = __webpack_require__(114); var _moment = __webpack_require__(44); var _moment2 = _interopRequireDefault(_moment); -var _defaultPhrases = __webpack_require__(110); +var _defaultPhrases = __webpack_require__(112); -var _getPhrasePropTypes = __webpack_require__(111); +var _getPhrasePropTypes = __webpack_require__(113); var _getPhrasePropTypes2 = _interopRequireDefault(_getPhrasePropTypes); -var _CalendarWeek = __webpack_require__(409); +var _CalendarWeek = __webpack_require__(423); var _CalendarWeek2 = _interopRequireDefault(_CalendarWeek); @@ -55490,11 +56100,11 @@ var _calculateDimension = __webpack_require__(265); var _calculateDimension2 = _interopRequireDefault(_calculateDimension); -var _getCalendarMonthWeeks = __webpack_require__(412); +var _getCalendarMonthWeeks = __webpack_require__(426); var _getCalendarMonthWeeks2 = _interopRequireDefault(_getCalendarMonthWeeks); -var _isSameDay = __webpack_require__(196); +var _isSameDay = __webpack_require__(195); var _isSameDay2 = _interopRequireDefault(_isSameDay); @@ -55502,7 +56112,7 @@ var _toISODateString = __webpack_require__(256); var _toISODateString2 = _interopRequireDefault(_toISODateString); -var _ModifiersShape = __webpack_require__(163); +var _ModifiersShape = __webpack_require__(164); var _ModifiersShape2 = _interopRequireDefault(_ModifiersShape); @@ -55510,7 +56120,7 @@ var _ScrollableOrientationShape = __webpack_require__(146); var _ScrollableOrientationShape2 = _interopRequireDefault(_ScrollableOrientationShape); -var _DayOfWeekShape = __webpack_require__(162); +var _DayOfWeekShape = __webpack_require__(163); var _DayOfWeekShape2 = _interopRequireDefault(_DayOfWeekShape); @@ -55835,7 +56445,7 @@ exports['default'] = (0, _reactWithStyles.withStyles)(function (_ref) { })(CalendarMonth); /***/ }), -/* 409 */ +/* 423 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -55850,13 +56460,13 @@ var _react = __webpack_require__(13); var _react2 = _interopRequireDefault(_react); -var _airbnbPropTypes = __webpack_require__(89); +var _airbnbPropTypes = __webpack_require__(91); var _CalendarDay = __webpack_require__(263); var _CalendarDay2 = _interopRequireDefault(_CalendarDay); -var _CustomizableCalendarDay = __webpack_require__(411); +var _CustomizableCalendarDay = __webpack_require__(425); var _CustomizableCalendarDay2 = _interopRequireDefault(_CustomizableCalendarDay); @@ -55879,7 +56489,7 @@ function CalendarWeek(_ref) { CalendarWeek.propTypes = propTypes; /***/ }), -/* 410 */ +/* 424 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -55900,7 +56510,7 @@ function getPhrase(phrase, args) { } /***/ }), -/* 411 */ +/* 425 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -55935,17 +56545,17 @@ var _reactMomentProptypes = __webpack_require__(145); var _reactMomentProptypes2 = _interopRequireDefault(_reactMomentProptypes); -var _airbnbPropTypes = __webpack_require__(89); +var _airbnbPropTypes = __webpack_require__(91); -var _reactWithStyles = __webpack_require__(112); +var _reactWithStyles = __webpack_require__(114); var _moment = __webpack_require__(44); var _moment2 = _interopRequireDefault(_moment); -var _defaultPhrases = __webpack_require__(110); +var _defaultPhrases = __webpack_require__(112); -var _getPhrasePropTypes = __webpack_require__(111); +var _getPhrasePropTypes = __webpack_require__(113); var _getPhrasePropTypes2 = _interopRequireDefault(_getPhrasePropTypes); @@ -56410,7 +57020,7 @@ exports['default'] = (0, _reactWithStyles.withStyles)(function (_ref2) { })(CustomizableCalendarDay); /***/ }), -/* 412 */ +/* 426 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -56474,7 +57084,7 @@ function getCalendarMonthWeeks(month, enableOutsideDays) { } /***/ }), -/* 413 */ +/* 427 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -56489,7 +57099,7 @@ function isTransitionEndSupported() { } /***/ }), -/* 414 */ +/* 428 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -56509,7 +57119,7 @@ function getTransformStyles(transformValue) { } /***/ }), -/* 415 */ +/* 429 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -56536,7 +57146,7 @@ function isPrevMonth(a, b) { } /***/ }), -/* 416 */ +/* 430 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -56563,7 +57173,7 @@ function isNextMonth(a, b) { } /***/ }), -/* 417 */ +/* 431 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -56587,29 +57197,29 @@ var _propTypes = __webpack_require__(28); var _propTypes2 = _interopRequireDefault(_propTypes); -var _airbnbPropTypes = __webpack_require__(89); +var _airbnbPropTypes = __webpack_require__(91); -var _reactWithStyles = __webpack_require__(112); +var _reactWithStyles = __webpack_require__(114); -var _defaultPhrases = __webpack_require__(110); +var _defaultPhrases = __webpack_require__(112); -var _getPhrasePropTypes = __webpack_require__(111); +var _getPhrasePropTypes = __webpack_require__(113); var _getPhrasePropTypes2 = _interopRequireDefault(_getPhrasePropTypes); -var _LeftArrow = __webpack_require__(418); +var _LeftArrow = __webpack_require__(432); var _LeftArrow2 = _interopRequireDefault(_LeftArrow); -var _RightArrow = __webpack_require__(419); +var _RightArrow = __webpack_require__(433); var _RightArrow2 = _interopRequireDefault(_RightArrow); -var _ChevronUp = __webpack_require__(420); +var _ChevronUp = __webpack_require__(434); var _ChevronUp2 = _interopRequireDefault(_ChevronUp); -var _ChevronDown = __webpack_require__(421); +var _ChevronDown = __webpack_require__(435); var _ChevronDown2 = _interopRequireDefault(_ChevronDown); @@ -56872,7 +57482,7 @@ exports['default'] = (0, _reactWithStyles.withStyles)(function (_ref2) { })(DayPickerNavigation); /***/ }), -/* 418 */ +/* 432 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -56908,7 +57518,7 @@ LeftArrow.defaultProps = { exports['default'] = LeftArrow; /***/ }), -/* 419 */ +/* 433 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -56944,7 +57554,7 @@ RightArrow.defaultProps = { exports['default'] = RightArrow; /***/ }), -/* 420 */ +/* 434 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -56980,7 +57590,7 @@ ChevronUp.defaultProps = { exports['default'] = ChevronUp; /***/ }), -/* 421 */ +/* 435 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -57016,7 +57626,7 @@ ChevronDown.defaultProps = { exports['default'] = ChevronDown; /***/ }), -/* 422 */ +/* 436 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -57043,21 +57653,21 @@ var _propTypes = __webpack_require__(28); var _propTypes2 = _interopRequireDefault(_propTypes); -var _airbnbPropTypes = __webpack_require__(89); +var _airbnbPropTypes = __webpack_require__(91); -var _reactWithStyles = __webpack_require__(112); +var _reactWithStyles = __webpack_require__(114); -var _defaultPhrases = __webpack_require__(110); +var _defaultPhrases = __webpack_require__(112); -var _getPhrasePropTypes = __webpack_require__(111); +var _getPhrasePropTypes = __webpack_require__(113); var _getPhrasePropTypes2 = _interopRequireDefault(_getPhrasePropTypes); -var _KeyboardShortcutRow = __webpack_require__(423); +var _KeyboardShortcutRow = __webpack_require__(437); var _KeyboardShortcutRow2 = _interopRequireDefault(_KeyboardShortcutRow); -var _CloseButton = __webpack_require__(424); +var _CloseButton = __webpack_require__(438); var _CloseButton2 = _interopRequireDefault(_CloseButton); @@ -57525,7 +58135,7 @@ exports['default'] = (0, _reactWithStyles.withStyles)(function (_ref3) { })(DayPickerKeyboardShortcuts); /***/ }), -/* 423 */ +/* 437 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -57549,9 +58159,9 @@ var _propTypes = __webpack_require__(28); var _propTypes2 = _interopRequireDefault(_propTypes); -var _airbnbPropTypes = __webpack_require__(89); +var _airbnbPropTypes = __webpack_require__(91); -var _reactWithStyles = __webpack_require__(112); +var _reactWithStyles = __webpack_require__(114); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } @@ -57640,7 +58250,7 @@ exports['default'] = (0, _reactWithStyles.withStyles)(function (_ref2) { })(KeyboardShortcutRow); /***/ }), -/* 424 */ +/* 438 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -57677,7 +58287,7 @@ CloseButton.defaultProps = { exports['default'] = CloseButton; /***/ }), -/* 425 */ +/* 439 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -57708,7 +58318,7 @@ function getNumberOfCalendarMonthWeeks(month) { } /***/ }), -/* 426 */ +/* 440 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -57723,7 +58333,7 @@ function getActiveElement() { } /***/ }), -/* 427 */ +/* 441 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -57747,7 +58357,7 @@ var external = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createEle /***/ }), -/* 428 */ +/* 442 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -57771,20 +58381,6 @@ var textColor = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createEl /***/ }), -/* 429 */, -/* 430 */, -/* 431 */, -/* 432 */, -/* 433 */, -/* 434 */, -/* 435 */, -/* 436 */, -/* 437 */, -/* 438 */, -/* 439 */, -/* 440 */, -/* 441 */, -/* 442 */, /* 443 */, /* 444 */, /* 445 */, @@ -57830,7 +58426,21 @@ var textColor = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createEl /* 485 */, /* 486 */, /* 487 */, -/* 488 */ +/* 488 */, +/* 489 */, +/* 490 */, +/* 491 */, +/* 492 */, +/* 493 */, +/* 494 */, +/* 495 */, +/* 496 */, +/* 497 */, +/* 498 */, +/* 499 */, +/* 500 */, +/* 501 */, +/* 502 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -57841,8 +58451,8 @@ var textColor = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createEl /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(13); /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__); /* harmony import */ var reakit_warning__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(81); -/* harmony import */ var _Composite_CompositeItem_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(123); -/* harmony import */ var _ToolbarState_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(173); +/* harmony import */ var _Composite_CompositeItem_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(124); +/* harmony import */ var _ToolbarState_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(174); diff --git a/wp-includes/js/dist/components.min.js b/wp-includes/js/dist/components.min.js index 599b716397..be4e109d9d 100644 --- a/wp-includes/js/dist/components.min.js +++ b/wp-includes/js/dist/components.min.js @@ -4,7 +4,7 @@ this.wp=this.wp||{},this.wp.components=function(e){var t={};function n(r){if(t[r Copyright (c) 2017 Jed Watson. Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames -*/!function(){"use strict";var n={}.hasOwnProperty;function o(){for(var e=[],t=0;t=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}},function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e){for(var t=1;t=0||(o[n]=e[n]);return o}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(n=e[Symbol.iterator]()).next.bind(n)}n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return s}))},function(e,t,n){"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(27);var o=n(37),i=n(30);function a(e){return function(e){if(Array.isArray(e))return Object(r.a)(e)}(e)||Object(o.a)(e)||Object(i.a)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},function(e,t){!function(){e.exports=this.wp.keycodes}()},function(e,t,n){"use strict";function r(e){return(r=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n.d(t,"a",(function(){return r}))},function(e,t){!function(){e.exports=this.regeneratorRuntime}()},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function r(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,c=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return a=e.done,e},e:function(e){c=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(c)throw i}}}}function b(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||(o[n]=e[n]);return o}n.d(t,"a",(function(){return r}))},function(e,t){!function(){e.exports=this.moment}()},function(e,t,n){"use strict";function r(e,t,n,r,o,i,a){try{var c=e[i](a),s=c.value}catch(e){return void n(e)}c.done?t(s):Promise.resolve(s).then(r,o)}function o(e){return function(){var t=this,n=arguments;return new Promise((function(o,i){var a=e.apply(t,n);function c(e){r(a,o,i,c,s,"next",e)}function s(e){r(a,o,i,c,s,"throw",e)}c(void 0)}))}}n.d(t,"a",(function(){return o}))},function(e,t){!function(){e.exports=this.wp.a11y}()},,function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(13),o=n(59);function i(e){var t=Object(r.useRef)(e);return Object(o.a)((function(){t.current=e})),t}},function(e,t,n){"use strict";function r(e){return e?e.ownerDocument||e:window.document}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n(13),o=n(76);function i(e,t){Object(r.useDebugValue)(e);var n=Object(r.useContext)(o.a);return null!=n[e]?n[e]:t}var a=n(55);var c=n(56);function s(e){var t,n,o,s=(o=e.compose,Array.isArray(o)?o:void 0!==o?[o]:[]),u=function(t,n){if(e.useOptions&&(t=e.useOptions(t,n)),e.name&&(t=function(e,t,n){void 0===t&&(t={}),void 0===n&&(n={});var o="use"+e+"Options";Object(r.useDebugValue)(o);var c=i(o);return c?Object(a.a)(Object(a.a)({},t),c(t,n)):t}(e.name,t,n)),e.compose)for(var o,c=Object(a.c)(s);!(o=c()).done;){t=o.value.__useOptions(t,n)}return t},l=function(t,n,o){if(void 0===t&&(t={}),void 0===n&&(n={}),void 0===o&&(o=!1),o||(t=u(t,n)),e.useProps&&(n=e.useProps(t,n)),e.name&&(n=function(e,t,n){void 0===t&&(t={}),void 0===n&&(n={});var o="use"+e+"Props";Object(r.useDebugValue)(o);var a=i(o);return a?a(t,n):n}(e.name,t,n)),e.compose)if(e.useComposeOptions&&(t=e.useComposeOptions(t,n)),e.useComposeProps)n=e.useComposeProps(t,n);else for(var c,l=Object(a.c)(s);!(c=l()).done;){n=(0,c.value)(t,n,!0)}var d={},f=n||{};for(var p in f)void 0!==f[p]&&(d[p]=f[p]);return d};l.__useOptions=u;var d=s.reduce((function(e,t){return e.push.apply(e,t.__keys||[]),e}),[]);return l.__keys=[].concat(d,(null===(t=e.useState)||void 0===t?void 0:t.__keys)||[],e.keys||[]),l.unstable_propsAreEqual=e.propsAreEqual||(null===(n=s[0])||void 0===n?void 0:n.unstable_propsAreEqual)||c.a,l}},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n(13),o=n(55),i=n(79);function a(e,t){for(var n={},r={},o=0,i=Object.keys(e);o=0?n[a]=e[a]:r[a]=e[a]}return[n,r]}var c=n(56);function s(e){var t,n=e.as,s=e.useHook,u=e.memo,l=e.propsAreEqual,d=void 0===l?null==s?void 0:s.unstable_propsAreEqual:l,f=e.keys,p=void 0===f?(null==s?void 0:s.__keys)||[]:f,b=e.useCreateElement,h=void 0===b?i.a:b,v=function(e,t){var r=e.as,i=void 0===r?n:r,c=Object(o.b)(e,["as"]);if(s){var u,l=a(c,p),d=l[0],f=l[1],b=s(d,Object(o.a)({ref:t},f)),v=b.wrapElement,m=Object(o.b)(b,["wrapElement"]),y=(null===(u=i.render)||void 0===u?void 0:u.__keys)||i.__keys,g=y&&a(c,y)[0],O=g?Object(o.a)(Object(o.a)({},m),g):m,j=h(i,O);return v?v(j):j}return h(i,Object(o.a)({ref:t},c))};return t=v,v=Object(r.forwardRef)(t),u&&(v=function(e,t){return Object(r.memo)(e,t)}(v,d)),v.__keys=p,v.unstable_propsAreEqual=d||c.a,v}},function(e,t,n){"use strict";n.d(t,"a",(function(){return f})),n.d(t,"b",(function(){return m})),n.d(t,"c",(function(){return b})),n.d(t,"d",(function(){return p})),n.d(t,"e",(function(){return g})),n.d(t,"f",(function(){return u})),n.d(t,"g",(function(){return x}));var r=n(15),o=n(13),i=n(59),a=n(62),c=n(61),s=n(65);function u(e){return e.slice().reverse()}function l(e,t){return Boolean(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_PRECEDING)}function d(e,t){return e.findIndex((function(e){return!(!e.ref.current||!t.ref.current)&&l(t.ref.current,e.ref.current)}))}function f(e,t){return t?e.find((function(e){return!e.disabled&&e.id!==t})):e.find((function(e){return!e.disabled}))}function p(e,t){if(t)return null==e?void 0:e.find((function(e){return e.id===t&&!e.disabled}))}function b(e){for(var t,n=[[]],o=function(){var e=t.value,r=n.find((function(t){return!t[0]||t[0].groupId===e.groupId}));r?r.push(e):n.push([e])},i=Object(r.c)(e);!(t=i()).done;)o();return n}function h(e){for(var t,n=0,o=Object(r.c)(e);!(t=o()).done;){var i=t.value.length;i>n&&(n=i)}return n}function v(e){for(var t=b(e),n=h(t),o=[],i=0;i=0||(o[n]=e[n]);return o}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(n=e[Symbol.iterator]()).next.bind(n)}n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return a})),n.d(t,"c",(function(){return s}))},function(e,t,n){"use strict";function r(e,t){if(e===t)return!0;if(!e)return!1;if(!t)return!1;if("object"!=typeof e)return!1;if("object"!=typeof t)return!1;var n=Object.keys(e),r=Object.keys(t),o=n.length;if(r.length!==o)return!1;for(var i=0,a=n;i1&&"boolean"!=typeof t)throw new TypeError('"allowMissing" argument must be a boolean');for(var n=h(e),i=v("%"+(n.length>0?n[0]:"")+"%",t),a=1;a=n.length){var c=o(i,n[a]);if(!t&&!(n[a]in i))throw new r("base intrinsic for "+e+" exists, but the property is not available.");i=c&&"get"in c&&!("originalValue"in c.get)?c.get:i[n[a]]}else i=i[n[a]];return i}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(13),o="undefined"==typeof window?r.useEffect:r.useLayoutEffect},,function(e,t,n){"use strict";function r(e,t){return function(e){return"function"==typeof e}(e)?e(t):e}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(13);function o(e){return Object(r.useState)(e)[0]}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(13);function o(e,t){void 0===t&&(t=null),e&&("function"==typeof e?e(t):e.current=t)}function i(e,t){return Object(r.useMemo)((function(){return null==e&&null==t?null:function(n){o(e,n),o(t,n)}}),[e,t])}},function(e,t){!function(){e.exports=this.wp.isShallowEqual}()},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(13),o=n(62),i=n(68);function a(e){void 0===e&&(e={});var t=Object(o.a)(e).baseId,n=Object(r.useContext)(i.a),a=Object(r.useRef)(0),c=Object(r.useState)((function(){return t||n()}));return{baseId:c[0],unstable_setBaseId:c[1],unstable_idCountRef:a}}a.__keys=["baseId","unstable_setBaseId","unstable_idCountRef"]},function(e,t,n){var r;!function(o){var i=/^\s+/,a=/\s+$/,c=0,s=o.round,u=o.min,l=o.max,d=o.random;function f(e,t){if(t=t||{},(e=e||"")instanceof f)return e;if(!(this instanceof f))return new f(e,t);var n=function(e){var t={r:0,g:0,b:0},n=1,r=null,c=null,s=null,d=!1,f=!1;"string"==typeof e&&(e=function(e){e=e.replace(i,"").replace(a,"").toLowerCase();var t,n=!1;if(D[e])e=D[e],n=!0;else if("transparent"==e)return{r:0,g:0,b:0,a:0,format:"name"};if(t=K.rgb.exec(e))return{r:t[1],g:t[2],b:t[3]};if(t=K.rgba.exec(e))return{r:t[1],g:t[2],b:t[3],a:t[4]};if(t=K.hsl.exec(e))return{h:t[1],s:t[2],l:t[3]};if(t=K.hsla.exec(e))return{h:t[1],s:t[2],l:t[3],a:t[4]};if(t=K.hsv.exec(e))return{h:t[1],s:t[2],v:t[3]};if(t=K.hsva.exec(e))return{h:t[1],s:t[2],v:t[3],a:t[4]};if(t=K.hex8.exec(e))return{r:N(t[1]),g:N(t[2]),b:N(t[3]),a:z(t[4]),format:n?"name":"hex8"};if(t=K.hex6.exec(e))return{r:N(t[1]),g:N(t[2]),b:N(t[3]),format:n?"name":"hex"};if(t=K.hex4.exec(e))return{r:N(t[1]+""+t[1]),g:N(t[2]+""+t[2]),b:N(t[3]+""+t[3]),a:z(t[4]+""+t[4]),format:n?"name":"hex8"};if(t=K.hex3.exec(e))return{r:N(t[1]+""+t[1]),g:N(t[2]+""+t[2]),b:N(t[3]+""+t[3]),format:n?"name":"hex"};return!1}(e));"object"==typeof e&&(W(e.r)&&W(e.g)&&W(e.b)?(p=e.r,b=e.g,h=e.b,t={r:255*I(p,255),g:255*I(b,255),b:255*I(h,255)},d=!0,f="%"===String(e.r).substr(-1)?"prgb":"rgb"):W(e.h)&&W(e.s)&&W(e.v)?(r=L(e.s),c=L(e.v),t=function(e,t,n){e=6*I(e,360),t=I(t,100),n=I(n,100);var r=o.floor(e),i=e-r,a=n*(1-t),c=n*(1-i*t),s=n*(1-(1-i)*t),u=r%6;return{r:255*[n,c,a,a,s,n][u],g:255*[s,n,n,c,a,a][u],b:255*[a,a,s,n,n,c][u]}}(e.h,r,c),d=!0,f="hsv"):W(e.h)&&W(e.s)&&W(e.l)&&(r=L(e.s),s=L(e.l),t=function(e,t,n){var r,o,i;function a(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}if(e=I(e,360),t=I(t,100),n=I(n,100),0===t)r=o=i=n;else{var c=n<.5?n*(1+t):n+t-n*t,s=2*n-c;r=a(s,c,e+1/3),o=a(s,c,e),i=a(s,c,e-1/3)}return{r:255*r,g:255*o,b:255*i}}(e.h,r,s),d=!0,f="hsl"),e.hasOwnProperty("a")&&(n=e.a));var p,b,h;return n=T(n),{ok:d,format:e.format||f,r:u(255,l(t.r,0)),g:u(255,l(t.g,0)),b:u(255,l(t.b,0)),a:n}}(e);this._originalInput=e,this._r=n.r,this._g=n.g,this._b=n.b,this._a=n.a,this._roundA=s(100*this._a)/100,this._format=t.format||n.format,this._gradientType=t.gradientType,this._r<1&&(this._r=s(this._r)),this._g<1&&(this._g=s(this._g)),this._b<1&&(this._b=s(this._b)),this._ok=n.ok,this._tc_id=c++}function p(e,t,n){e=I(e,255),t=I(t,255),n=I(n,255);var r,o,i=l(e,t,n),a=u(e,t,n),c=(i+a)/2;if(i==a)r=o=0;else{var s=i-a;switch(o=c>.5?s/(2-i-a):s/(i+a),i){case e:r=(t-n)/s+(t>1)+720)%360;--t;)r.h=(r.h+o)%360,i.push(f(r));return i}function P(e,t){t=t||6;for(var n=f(e).toHsv(),r=n.h,o=n.s,i=n.v,a=[],c=1/t;t--;)a.push(f({h:r,s:o,v:i})),i=(i+c)%1;return a}f.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},getLuminance:function(){var e,t,n,r=this.toRgb();return e=r.r/255,t=r.g/255,n=r.b/255,.2126*(e<=.03928?e/12.92:o.pow((e+.055)/1.055,2.4))+.7152*(t<=.03928?t/12.92:o.pow((t+.055)/1.055,2.4))+.0722*(n<=.03928?n/12.92:o.pow((n+.055)/1.055,2.4))},setAlpha:function(e){return this._a=T(e),this._roundA=s(100*this._a)/100,this},toHsv:function(){var e=b(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=b(this._r,this._g,this._b),t=s(360*e.h),n=s(100*e.s),r=s(100*e.v);return 1==this._a?"hsv("+t+", "+n+"%, "+r+"%)":"hsva("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHsl:function(){var e=p(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=p(this._r,this._g,this._b),t=s(360*e.h),n=s(100*e.s),r=s(100*e.l);return 1==this._a?"hsl("+t+", "+n+"%, "+r+"%)":"hsla("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHex:function(e){return h(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return function(e,t,n,r,o){var i=[A(s(e).toString(16)),A(s(t).toString(16)),A(s(n).toString(16)),A(F(r))];if(o&&i[0].charAt(0)==i[0].charAt(1)&&i[1].charAt(0)==i[1].charAt(1)&&i[2].charAt(0)==i[2].charAt(1)&&i[3].charAt(0)==i[3].charAt(1))return i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0)+i[3].charAt(0);return i.join("")}(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:s(this._r),g:s(this._g),b:s(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+s(this._r)+", "+s(this._g)+", "+s(this._b)+")":"rgba("+s(this._r)+", "+s(this._g)+", "+s(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:s(100*I(this._r,255))+"%",g:s(100*I(this._g,255))+"%",b:s(100*I(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+s(100*I(this._r,255))+"%, "+s(100*I(this._g,255))+"%, "+s(100*I(this._b,255))+"%)":"rgba("+s(100*I(this._r,255))+"%, "+s(100*I(this._g,255))+"%, "+s(100*I(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(M[h(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var t="#"+v(this._r,this._g,this._b,this._a),n=t,r=this._gradientType?"GradientType = 1, ":"";if(e){var o=f(e);n="#"+v(o._r,o._g,o._b,o._a)}return"progid:DXImageTransform.Microsoft.gradient("+r+"startColorstr="+t+",endColorstr="+n+")"},toString:function(e){var t=!!e;e=e||this._format;var n=!1,r=this._a<1&&this._a>=0;return t||!r||"hex"!==e&&"hex6"!==e&&"hex3"!==e&&"hex4"!==e&&"hex8"!==e&&"name"!==e?("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),n||this.toHexString()):"name"===e&&0===this._a?this.toName():this.toRgbString()},clone:function(){return f(this.toString())},_applyModification:function(e,t){var n=e.apply(null,[this].concat([].slice.call(t)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(O,arguments)},brighten:function(){return this._applyModification(j,arguments)},darken:function(){return this._applyModification(w,arguments)},desaturate:function(){return this._applyModification(m,arguments)},saturate:function(){return this._applyModification(y,arguments)},greyscale:function(){return this._applyModification(g,arguments)},spin:function(){return this._applyModification(_,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(C,arguments)},complement:function(){return this._applyCombination(k,arguments)},monochromatic:function(){return this._applyCombination(P,arguments)},splitcomplement:function(){return this._applyCombination(x,arguments)},triad:function(){return this._applyCombination(S,arguments)},tetrad:function(){return this._applyCombination(E,arguments)}},f.fromRatio=function(e,t){if("object"==typeof e){var n={};for(var r in e)e.hasOwnProperty(r)&&(n[r]="a"===r?e[r]:L(e[r]));e=n}return f(e,t)},f.equals=function(e,t){return!(!e||!t)&&f(e).toRgbString()==f(t).toRgbString()},f.random=function(){return f.fromRatio({r:d(),g:d(),b:d()})},f.mix=function(e,t,n){n=0===n?0:n||50;var r=f(e).toRgb(),o=f(t).toRgb(),i=n/100;return f({r:(o.r-r.r)*i+r.r,g:(o.g-r.g)*i+r.g,b:(o.b-r.b)*i+r.b,a:(o.a-r.a)*i+r.a})},f.readability=function(e,t){var n=f(e),r=f(t);return(o.max(n.getLuminance(),r.getLuminance())+.05)/(o.min(n.getLuminance(),r.getLuminance())+.05)},f.isReadable=function(e,t,n){var r,o,i=f.readability(e,t);switch(o=!1,(r=function(e){var t,n;t=((e=e||{level:"AA",size:"small"}).level||"AA").toUpperCase(),n=(e.size||"small").toLowerCase(),"AA"!==t&&"AAA"!==t&&(t="AA");"small"!==n&&"large"!==n&&(n="small");return{level:t,size:n}}(n)).level+r.size){case"AAsmall":case"AAAlarge":o=i>=4.5;break;case"AAlarge":o=i>=3;break;case"AAAsmall":o=i>=7}return o},f.mostReadable=function(e,t,n){var r,o,i,a,c=null,s=0;o=(n=n||{}).includeFallbackColors,i=n.level,a=n.size;for(var u=0;us&&(s=r,c=f(t[u]));return f.isReadable(e,c,{level:i,size:a})||!o?c:(n.includeFallbackColors=!1,f.mostReadable(e,["#fff","#000"],n))};var D=f.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},M=f.hexNames=function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}(D);function T(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function I(e,t){(function(e){return"string"==typeof e&&-1!=e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var n=function(e){return"string"==typeof e&&-1!=e.indexOf("%")}(e);return e=u(t,l(0,parseFloat(e))),n&&(e=parseInt(e*t,10)/100),o.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function R(e){return u(1,l(0,e))}function N(e){return parseInt(e,16)}function A(e){return 1==e.length?"0"+e:""+e}function L(e){return e<=1&&(e=100*e+"%"),e}function F(e){return o.round(255*parseFloat(e)).toString(16)}function z(e){return N(e)/255}var B,H,V,K=(H="[\\s|\\(]+("+(B="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+B+")[,|\\s]+("+B+")\\s*\\)?",V="[\\s|\\(]+("+B+")[,|\\s]+("+B+")[,|\\s]+("+B+")[,|\\s]+("+B+")\\s*\\)?",{CSS_UNIT:new RegExp(B),rgb:new RegExp("rgb"+H),rgba:new RegExp("rgba"+V),hsl:new RegExp("hsl"+H),hsla:new RegExp("hsla"+V),hsv:new RegExp("hsv"+H),hsva:new RegExp("hsva"+V),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function W(e){return!!K.CSS_UNIT.exec(e)}e.exports?e.exports=f:void 0===(r=function(){return f}.call(t,n,t,e))||(e.exports=r)}(Math)},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(15),o=n(51),i=n(50),a=n(56),c=Object(i.a)({name:"Box",keys:["unstable_system"],propsAreEqual:function(e,t){var n=e.unstable_system,o=Object(r.a)(e,["unstable_system"]),i=t.unstable_system,c=Object(r.a)(t,["unstable_system"]);return!(n!==i&&!Object(a.a)(n,i))&&Object(a.a)(o,c)}});Object(o.a)({as:"div",useHook:c})},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(13);var o=Object(r.createContext)((function(e){return void 0===e&&(e="id"),(e?e+"-":"")+Math.random().toString(32).substr(2,6)}))},,function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(57);function o(e){var t=Object(r.a)(e);if(!t)return!1;if(e.contains(t))return!0;var n=t.getAttribute("aria-activedescendant");return!!n&&(n===e.id||!!e.querySelector("#"+n))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=["button","color","file","image","reset","submit"];function o(e){if("BUTTON"===e.tagName)return!0;if("INPUT"===e.tagName){var t=e;return-1!==r.indexOf(t.type)}return!1}},function(e,t,n){"use strict";function r(e,t){return"matches"in e?e.matches(t):"msMatchesSelector"in e?e.msMatchesSelector(t):e.webkitMatchesSelector(t)}function o(e,t){if("closest"in e)return e.closest(t);do{if(r(e,t))return e;e=e.parentElement||e.parentNode}while(null!==e&&1===e.nodeType);return null}n.d(t,"a",(function(){return l})),n.d(t,"b",(function(){return s}));var i=n(57),a="input:not([type='hidden']):not([disabled]), select:not([disabled]), textarea:not([disabled]), a[href], button:not([disabled]), [tabindex], iframe, object, embed, area[href], audio[controls], video[controls], [contenteditable]:not([contenteditable='false'])";function c(e){return r(e,a)&&function(e){return e.offsetWidth>0||e.offsetHeight>0||e.getClientRects().length>0}(e)}function s(e){for(;e&&!c(e);)e=o(e,a);return e}function u(e){return Object(i.a)(e)===e}function l(e,t){var n=void 0===t?{}:t,r=n.isActive,o=void 0===r?u:r,i=n.preventScroll;return o(e)?-1:(e.focus({preventScroll:i}),o(e)?-1:requestAnimationFrame((function(){e.focus({preventScroll:i})})))}},function(e,t,n){"use strict";function r(e){return t=e.currentTarget,n=e.target,!(t===n||t.contains(n));var t,n}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return g}));var r=n(15),o=n(51),i=n(50),a=n(67),c=n(13),s=n(63),u=n(71),l=(n(81),n(48)),d=n(59),f=n(70),p=n(73),b=n(57),h=n(72);function v(e){return"undefined"!=typeof window&&-1!==window.navigator.userAgent.indexOf(e)}var m=v("Mac")&&!v("Chrome")&&(v("Safari")||v("Firefox"));function y(e){Object(f.a)(e)||e.focus()}var g=Object(i.a)({name:"Tabbable",compose:a.a,keys:["disabled","focusable"],useOptions:function(e,t){var n=t.disabled;return Object(r.b)({disabled:n},e)},useProps:function(e,t){var n=t.ref,o=t.tabIndex,i=t.onClick,a=t.onMouseDown,f=t.style,v=Object(r.a)(t,["ref","tabIndex","onClick","onMouseDown","style"]),g=Object(c.useRef)(null),O=Object(l.a)(i),j=Object(l.a)(a),w=e.disabled&&!e.focusable,_=Object(c.useState)(!0),k=_[0],S=_[1],E=k?o:o||0,x=e.disabled?Object(r.b)({pointerEvents:"none"},f):f,C=function(){if(m){var e=Object(c.useState)(null),t=e[0],n=e[1];return Object(c.useEffect)((function(){t&&(y(t),n(null))}),[t]),Object(c.useCallback)((function(e){var t=e.currentTarget;if(!Object(p.a)(e)&&Object(u.a)(t)){var r=Object(b.a)(t);if(r){var o="BODY"===r.tagName,i=Object(h.b)(t.parentElement);if(r===i||o&&!i)n(t);else if(i){i.addEventListener("focusin",(function(){return n(t)}),{once:!0})}else{r.addEventListener("blur",(function(){return y(t)}),{once:!0})}}}}),[])}}();Object(d.a)((function(){var e,t=g.current;t&&("BUTTON"!==(e=t).tagName&&"INPUT"!==e.tagName&&"SELECT"!==e.tagName&&"TEXTAREA"!==e.tagName&&"A"!==e.tagName&&"AUDIO"!==e.tagName&&"VIDEO"!==e.tagName&&S(!1))}),[]);var P=Object(c.useCallback)((function(t){var n;if(e.disabled)return t.stopPropagation(),void t.preventDefault();null===(n=O.current)||void 0===n||n.call(O,t)}),[e.disabled]),D=Object(c.useCallback)((function(t){var n;if(e.disabled)return t.stopPropagation(),void t.preventDefault();null===(n=j.current)||void 0===n||n.call(j,t),t.defaultPrevented||null==C||C(t)}),[e.disabled,C]);return Object(r.b)({ref:Object(s.a)(g,n),style:x,tabIndex:w?void 0:E,disabled:!(!w||!k)||void 0,"aria-disabled":!!e.disabled||void 0,onClick:P,onMouseDown:D},v)}});Object(o.a)({as:"div",useHook:g})},function(e,t){!function(){e.exports=this.wp.date}()},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(13),o=Object(r.createContext)({})},,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.DISPLAY_FORMAT="L",t.ISO_FORMAT="YYYY-MM-DD",t.ISO_MONTH_FORMAT="YYYY-MM",t.START_DATE="startDate",t.END_DATE="endDate",t.HORIZONTAL_ORIENTATION="horizontal",t.VERTICAL_ORIENTATION="vertical",t.VERTICAL_SCROLLABLE="verticalScrollable",t.ICON_BEFORE_POSITION="before",t.ICON_AFTER_POSITION="after",t.INFO_POSITION_TOP="top",t.INFO_POSITION_BOTTOM="bottom",t.INFO_POSITION_BEFORE="before",t.INFO_POSITION_AFTER="after",t.ANCHOR_LEFT="left",t.ANCHOR_RIGHT="right",t.OPEN_DOWN="down",t.OPEN_UP="up",t.DAY_SIZE=39,t.BLOCKED_MODIFIER="blocked",t.WEEKDAYS=[0,1,2,3,4,5,6],t.FANG_WIDTH_PX=20,t.FANG_HEIGHT_PX=10,t.DEFAULT_VERTICAL_SPACING=22,t.MODIFIER_KEY_NAMES=new Set(["Shift","Control","Alt","Meta"])},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(13),o=n(76),i=n(55);var a=function(e,t,n){void 0===n&&(n=t.children);var a=Object(r.useContext)(o.a);if(a.useCreateElement)return a.useCreateElement(e,t,n);if("string"==typeof e&&function(e){return"function"==typeof e}(n)){t.children;return n(Object(i.b)(t,["children"]))}return Object(r.createElement)(e,t,n)}},,function(e,t,n){"use strict";n(108),n(13)},function(e,t,n){"use strict";function r(e){var t=void 0===e?{}:e,n=t.keyMap,r=t.onKey,o=t.stopPropagation,i=t.onKeyDown,a=t.shouldKeyDown,c=void 0===a?function(){return!0}:a,s=t.preventDefault,u=void 0===s||s;return function(e){if(n){var t,a="function"==typeof n?n(e):n,s="function"==typeof u?u(e):u,l="function"==typeof o?o(e):o;if(e.key in a){var d=a[e.key];if("function"==typeof d&&c(e))return s&&e.preventDefault(),l&&e.stopPropagation(),r&&r(e),void d(e)}if(i&&"current"in i)null===(t=i.current)||void 0===t||t.call(i,e);else null==i||i(e)}}}n.d(t,"a",(function(){return r}))},,function(e,t,n){"use strict";var r=n(21),o=n(22),i=n(23),a=n(24),c=n(19),s=n(0),u=n(2),l=n(114),d=n(172);function f(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(c.a)(e);if(t){var o=Object(c.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(a.a)(this,n)}}var p=function(e){Object(i.a)(n,e);var t=f(n);function n(){var e;return Object(r.a)(this,n),(e=t.apply(this,arguments)).delayedSetIsOver=Object(u.debounce)((function(t){return e.setState({isOver:t})}),700),e.cancelIsMouseDown=e.createSetIsMouseDown(!1),e.isInMouseDown=!1,e.state={isOver:!1},e}return Object(o.a)(n,[{key:"componentWillUnmount",value:function(){this.delayedSetIsOver.cancel(),document.removeEventListener("mouseup",this.cancelIsMouseDown)}},{key:"emitToChild",value:function(e,t){var n=this.props.children;if(1===s.Children.count(n)){var r=s.Children.only(n);"function"==typeof r.props[e]&&r.props[e](t)}}},{key:"createToggleIsOver",value:function(e,t){var n=this;return function(r){if(n.emitToChild(e,r),!(r.currentTarget.disabled||"focus"===r.type&&n.isInMouseDown)){n.delayedSetIsOver.cancel();var o=Object(u.includes)(["focus","mouseenter"],r.type);o!==n.state.isOver&&(t?n.delayedSetIsOver(o):n.setState({isOver:o}))}}}},{key:"createSetIsMouseDown",value:function(e){var t=this;return function(n){t.emitToChild(e?"onMouseDown":"onMouseUp",n),document[e?"addEventListener":"removeEventListener"]("mouseup",t.cancelIsMouseDown),t.isInMouseDown=e}}},{key:"render",value:function(){var e=this.props,t=e.children,n=e.position,r=e.text,o=e.shortcut;if(1!==s.Children.count(t))return t;var i=s.Children.only(t),a=this.state.isOver;return Object(s.cloneElement)(i,{onMouseEnter:this.createToggleIsOver("onMouseEnter",!0),onMouseLeave:this.createToggleIsOver("onMouseLeave"),onClick:this.createToggleIsOver("onClick"),onFocus:this.createToggleIsOver("onFocus"),onBlur:this.createToggleIsOver("onBlur"),onMouseDown:this.createSetIsMouseDown(!0),children:Object(s.concatChildren)(i.props.children,a&&Object(s.createElement)(l.a,{focusOnMount:!1,position:n,className:"components-tooltip","aria-hidden":"true",animate:!1,noArrow:!0},r,Object(s.createElement)(d.a,{className:"components-tooltip__shortcut",shortcut:o})))})}}]),n}(s.Component);t.a=p},function(e,t,n){"use strict";var r=n(5),o=n(8),i=n(14),a=n(0),c=n(7),s=n(150);function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t1)for(var n=1;n2?arguments[2]:{},i=r(t);o&&(i=a.call(i,Object.getOwnPropertySymbols(t)));for(var c=0;c1&&void 0!==arguments[1]?arguments[1]:{},n=t.stylesPropName,c=void 0===n?"styles":n,l=t.themePropName,f=void 0===l?"theme":l,m=t.cssPropName,w=void 0===m?"css":m,_=t.flushBefore,k=void 0!==_&&_,S=t.pureComponent,E=void 0!==S&&S,x=void 0,C=void 0,P=void 0,D=void 0,M=g(E);function T(e){return e===u.DIRECTIONS.LTR?d.default.resolveLTR:d.default.resolveRTL}function I(e){return e===u.DIRECTIONS.LTR?P:D}function R(t,n){var r=I(t),o=t===u.DIRECTIONS.LTR?x:C,i=d.default.get();return o&&r===i||(t===u.DIRECTIONS.RTL?(C=e?d.default.createRTL(e):y,D=i,o=C):(x=e?d.default.createLTR(e):y,P=i,o=x)),o}function N(e,t){return{resolveMethod:T(e),styleDef:R(e)}}return function(e){var t=e.displayName||e.name||"Component",n=function(t){function n(e,t){p(this,n);var r=b(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,e,t)),o=r.context[u.CHANNEL]?r.context[u.CHANNEL].getState():j;return r.state=N(o),r}return h(n,t),o(n,[{key:"componentDidMount",value:function(){var e=this;this.context[u.CHANNEL]&&(this.channelUnsubscribe=this.context[u.CHANNEL].subscribe((function(t){e.setState(N(t))})))}},{key:"componentWillUnmount",value:function(){this.channelUnsubscribe&&this.channelUnsubscribe()}},{key:"render",value:function(){var t;k&&d.default.flush();var n=this.state,o=n.resolveMethod,i=n.styleDef;return a.default.createElement(e,r({},this.props,(v(t={},f,d.default.get()),v(t,c,i()),v(t,w,o),t)))}}]),n}(M);return n.WrappedComponent=e,n.displayName="withStyles("+String(t)+")",n.contextTypes=O,e.propTypes&&(n.propTypes=(0,i.default)({},e.propTypes),delete n.propTypes[c],delete n.propTypes[f],delete n.propTypes[w]),e.defaultProps&&(n.defaultProps=(0,i.default)({},e.defaultProps)),(0,s.default)(n,e)}};var i=f(n(95)),a=f(n(13)),c=f(n(28)),s=f(n(388)),u=n(391),l=f(n(392)),d=f(n(237));function f(e){return e&&e.__esModule?e:{default:e}}function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function b(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function h(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function v(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.css=d.default.resolveLTR,t.withStylesPropTypes={styles:c.default.object.isRequired,theme:c.default.object.isRequired,css:c.default.func.isRequired};var m={},y=function(){return m};function g(e){if(e){if(!a.default.PureComponent)throw new ReferenceError("withStyles() pureComponent option requires React 15.3.0 or later");return a.default.PureComponent}return a.default.Component}var O=v({},u.CHANNEL,l.default),j=u.DIRECTIONS.LTR},function(e,t,n){"use strict";var r=n(8),o=n(21),i=n(22),a=n(16),c=n(23),s=n(24),u=n(19),l=n(0),d=n(2),f=n(10);function p(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(u.a)(e);if(t){var o=Object(u.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(s.a)(this,n)}}var b=["button","submit"];t.a=Object(f.createHigherOrderComponent)((function(e){return function(t){Object(c.a)(s,t);var n=p(s);function s(){var e;return Object(o.a)(this,s),(e=n.apply(this,arguments)).bindNode=e.bindNode.bind(Object(a.a)(e)),e.cancelBlurCheck=e.cancelBlurCheck.bind(Object(a.a)(e)),e.queueBlurCheck=e.queueBlurCheck.bind(Object(a.a)(e)),e.normalizeButtonFocus=e.normalizeButtonFocus.bind(Object(a.a)(e)),e}return Object(i.a)(s,[{key:"componentWillUnmount",value:function(){this.cancelBlurCheck()}},{key:"bindNode",value:function(e){e?this.node=e:(delete this.node,this.cancelBlurCheck())}},{key:"queueBlurCheck",value:function(e){var t=this;e.persist(),this.preventBlurCheck||(this.blurCheckTimeout=setTimeout((function(){document.hasFocus()?"function"==typeof t.node.handleFocusOutside&&t.node.handleFocusOutside(e):e.preventDefault()}),0))}},{key:"cancelBlurCheck",value:function(){clearTimeout(this.blurCheckTimeout)}},{key:"normalizeButtonFocus",value:function(e){var t=e.type,n=e.target;Object(d.includes)(["mouseup","touchend"],t)?this.preventBlurCheck=!1:function(e){switch(e.nodeName){case"A":case"BUTTON":return!0;case"INPUT":return Object(d.includes)(b,e.type)}return!1}(n)&&(this.preventBlurCheck=!0)}},{key:"render",value:function(){return Object(l.createElement)("div",{onFocus:this.cancelBlurCheck,onMouseDown:this.normalizeButtonFocus,onMouseUp:this.normalizeButtonFocus,onTouchStart:this.normalizeButtonFocus,onTouchEnd:this.normalizeButtonFocus,onBlur:this.queueBlurCheck},Object(l.createElement)(e,Object(r.a)({ref:this.bindNode},this.props)))}}]),s}(l.Component)}),"withFocusOutside")},function(e,t,n){"use strict";var r=n(8),o=n(12),i=n(14),a=n(0),c=n(9),s=n.n(c),u=n(29),l=n(18),d=n(36),f=n.n(d),p=n(10),b=n(160),h=n(5);function v(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function m(e){for(var t=1;t0?c/2:u)+(u+c/2>window.innerWidth?window.innerWidth-u:c/2)},d=e.left;"right"===r?d=e.right:"middle"!==i&&(d=u);var f=e.right;"left"===r?f=e.left:"middle"!==i&&(f=u);var p,b={popoverLeft:d,contentWidth:d-c>0?c:d},h={popoverLeft:f,contentWidth:f+c>window.innerWidth?window.innerWidth-f:c},v=n,m=null;if(!o)if("center"===n&&l.contentWidth===c)v="center";else if("left"===n&&b.contentWidth===c)v="left";else if("right"===n&&h.contentWidth===c)v="right";else{var y="left"===(v=b.contentWidth>h.contentWidth?"left":"right")?b.contentWidth:h.contentWidth;m=y!==c?y:null}if(p="center"===v?l.popoverLeft:"left"===v?b.popoverLeft:h.popoverLeft,a){var g=a.getBoundingClientRect();p=Math.min(p,g.right-c)}return{xAxis:v,popoverLeft:p,contentWidth:m}}function g(e,t,n,r,o,i,a){var c=t.height;if(o){var s=(Object(u.getScrollContainer)(i)||document.body).getBoundingClientRect().top+c-a;if(e.top<=s)return{yAxis:n,popoverTop:Math.min(e.bottom,s)}}var l=e.top+e.height/2;"bottom"===r?l=e.bottom:"top"===r&&(l=e.top);var d={popoverTop:l,contentHeight:(l-c/2>0?c/2:l)+(l+c/2>window.innerHeight?window.innerHeight-l:c/2)},f={popoverTop:e.top,contentHeight:e.top-10-c>0?c:e.top-10},p={popoverTop:e.bottom,contentHeight:e.bottom+10+c>window.innerHeight?window.innerHeight-10-e.bottom:c},b=n,h=null;if(!o)if("middle"===n&&d.contentHeight===c)b="middle";else if("top"===n&&f.contentHeight===c)b="top";else if("bottom"===n&&p.contentHeight===c)b="bottom";else{var v="top"===(b=f.contentHeight>p.contentHeight?"top":"bottom")?f.contentHeight:p.contentHeight;h=v!==c?v:null}return{yAxis:b,popoverTop:"middle"===b?d.popoverTop:"top"===b?f.popoverTop:p.popoverTop,contentHeight:h}}var O=n(135),j=n(134),w=n(21),_=n(22),k=n(23),S=n(24),E=n(19),x=n(113);function C(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(E.a)(e);if(t){var o=Object(E.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(S.a)(this,n)}}var P=function(e){Object(k.a)(n,e);var t=C(n);function n(){return Object(w.a)(this,n),t.apply(this,arguments)}return Object(_.a)(n,[{key:"handleFocusOutside",value:function(e){this.props.onFocusOutside(e)}},{key:"render",value:function(){return this.props.children}}]),n}(a.Component),D=Object(x.a)(P),M=n(35),T=n(166),I=n(136),R=n(165),N=n(125),A=n(124),L=Object(j.a)(Object(O.a)((function(e){return e.children})));function F(e,t){var n,r=(n=t).ownerDocument.defaultView.getComputedStyle(n),o=r.paddingTop,i=r.paddingBottom,a=r.paddingLeft,c=r.paddingRight,s=o?parseInt(o,10):0,u=i?parseInt(i,10):0,l=a?parseInt(a,10):0,d=c?parseInt(c,10):0;return{x:e.left+l,y:e.top+s,width:e.width-l-d,height:e.height-s-u,left:e.left+l,right:e.right-d,top:e.top+s,bottom:e.bottom-u}}function z(e,t,n){n?e.getAttribute(t)!==n&&e.setAttribute(t,n):e.hasAttribute(t)&&e.removeAttribute(t)}function B(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";e.style[t]!==n&&(e.style[t]=n)}function H(e,t,n){n?e.classList.contains(t)||e.classList.add(t):e.classList.contains(t)&&e.classList.remove(t)}var V=function(e){var t=e.headerTitle,n=e.onClose,c=e.onKeyDown,d=e.children,h=e.className,v=e.noArrow,O=void 0===v||v,j=e.isAlternate,w=e.position,_=void 0===w?"bottom right":w,k=(e.range,e.focusOnMount),S=void 0===k?"firstElement":k,E=e.anchorRef,x=e.shouldAnchorIncludePadding,C=e.anchorRect,P=e.getAnchorRect,V=e.expandOnMobile,K=e.animate,W=void 0===K||K,U=e.onClickOutside,G=e.onFocusOutside,$=e.__unstableSticky,q=e.__unstableSlotName,Y=void 0===q?"Popover":q,Z=e.__unstableObserveElement,X=e.__unstableBoundaryParent,J=Object(i.a)(e,["headerTitle","onClose","onKeyDown","children","className","noArrow","isAlternate","position","range","focusOnMount","anchorRef","shouldAnchorIncludePadding","anchorRect","getAnchorRect","expandOnMobile","animate","onClickOutside","onFocusOutside","__unstableSticky","__unstableSlotName","__unstableObserveElement","__unstableBoundaryParent"]),Q=Object(a.useRef)(null),ee=Object(a.useRef)(null),te=Object(a.useRef)(),ne=Object(p.useViewportMatch)("medium","<"),re=Object(a.useState)(),oe=Object(o.a)(re,2),ie=oe[0],ae=oe[1],ce=Object(R.a)(Y),se=V&&ne,ue=Object(p.useResizeObserver)(),le=Object(o.a)(ue,2),de=le[0],fe=le[1];O=se||O,Object(a.useLayoutEffect)((function(){if(se)return H(te.current,"is-without-arrow",O),H(te.current,"is-alternate",j),z(te.current,"data-x-axis"),z(te.current,"data-y-axis"),B(te.current,"top"),B(te.current,"left"),B(ee.current,"maxHeight"),void B(ee.current,"maxWidth");var e=function(){if(te.current&&ee.current){var e=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=arguments.length>4?arguments[4]:void 0;if(t)return t;if(n){if(!e.current)return;return n(e.current)}if(!1!==r){if(!(r&&window.Range&&window.Element&&window.DOMRect))return;if(r instanceof window.Range)return Object(u.getRectangleFromRange)(r);if(r instanceof window.Element){var i=r.getBoundingClientRect();return o?i:F(i,r)}var a=r.top,c=r.bottom,s=a.getBoundingClientRect(),l=c.getBoundingClientRect(),d=new window.DOMRect(s.left,s.top,s.width,l.bottom-s.top);return o?d:F(d,r)}if(e.current){var f=e.current.parentNode,p=f.getBoundingClientRect();return o?p:F(p,f)}}(Q,C,P,E,x);if(e){var t,n,r=te.current,i=r.offsetParent,a=r.ownerDocument,c=0;if(i&&i!==a.body){var s=i.getBoundingClientRect();c=s.top,e=new window.DOMRect(e.left-s.left,e.top-s.top,e.width,e.height)}if(X)t=null===(n=te.current.closest(".popover-slot"))||void 0===n?void 0:n.parentNode;var l=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"top",r=arguments.length>3?arguments[3]:void 0,i=arguments.length>4?arguments[4]:void 0,a=arguments.length>5?arguments[5]:void 0,c=arguments.length>6?arguments[6]:void 0,s=n.split(" "),u=Object(o.a)(s,3),l=u[0],d=u[1],f=void 0===d?"center":d,p=u[2],b=g(e,t,l,p,r,i,a),h=y(e,t,f,p,r,b.yAxis,c);return m(m({},h),b)}(e,fe.height?fe:ee.current.getBoundingClientRect(),_,$,te.current,c,t),d=l.popoverTop,f=l.popoverLeft,p=l.xAxis,b=l.yAxis,h=l.contentHeight,v=l.contentWidth;"number"==typeof d&&"number"==typeof f&&(B(te.current,"top",d+"px"),B(te.current,"left",f+"px")),H(te.current,"is-without-arrow",O||"center"===p&&"middle"===b),H(te.current,"is-alternate",j),z(te.current,"data-x-axis",p),z(te.current,"data-y-axis",b),B(ee.current,"maxHeight","number"==typeof h?h+"px":""),B(ee.current,"maxWidth","number"==typeof v?v+"px":"");ae(({left:"right",right:"left"}[p]||"center")+" "+({top:"bottom",bottom:"top"}[b]||"middle"))}}};e();var t,n,r=window.setInterval(e,500),i=function(){window.cancelAnimationFrame(t),t=window.requestAnimationFrame(e)};return window.addEventListener("click",i),window.addEventListener("resize",e),window.addEventListener("scroll",e,!0),Z&&(n=new window.MutationObserver(e)).observe(Z,{attributes:!0}),function(){window.clearInterval(r),window.removeEventListener("resize",e),window.removeEventListener("scroll",e,!0),window.removeEventListener("click",i),window.cancelAnimationFrame(t),n&&n.disconnect()}}),[se,C,P,E,x,_,fe,$,Z,X]),function(e,t){Object(a.useEffect)((function(){var n=setTimeout((function(){if(e&&t.current)if("firstElement"!==e)"container"===e&&t.current.focus();else{var n=u.focus.tabbable.find(t.current)[0];n?n.focus():t.current.focus()}}),0);return function(){return clearTimeout(n)}}),[])}(S,ee);var pe=function(e){e.keyCode===l.ESCAPE&&n&&(e.stopPropagation(),n()),c&&c(e)};var be=Object(a.createElement)(D,{onFocusOutside:function(e){if(G)G(e);else if(U){var t;try{t=new window.MouseEvent("click")}catch(e){(t=document.createEvent("MouseEvent")).initMouseEvent("click",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null)}Object.defineProperty(t,"target",{get:function(){return e.relatedTarget}}),f()("Popover onClickOutside prop",{alternative:"onFocusOutside"}),U(t)}else n&&n()}},Object(a.createElement)(A.a,{type:W&&ie?"appear":null,options:{origin:ie}},(function(e){var o=e.className;return Object(a.createElement)(I.a,Object(r.a)({className:s()("components-popover",h,o,{"is-expanded":se,"is-without-arrow":O,"is-alternate":j})},J,{onKeyDown:pe,ref:te}),se&&Object(a.createElement)(T.a,null),se&&Object(a.createElement)("div",{className:"components-popover__header"},Object(a.createElement)("span",{className:"components-popover__header-title"},t),Object(a.createElement)(M.a,{className:"components-popover__close",icon:b.a,onClick:n})),Object(a.createElement)("div",{ref:ee,className:"components-popover__content",tabIndex:"-1"},Object(a.createElement)("div",{style:{position:"relative"}},de,d)))})));return S&&(be=Object(a.createElement)(L,null,be)),ce.ref&&(be=Object(a.createElement)(N.a,{name:Y},be)),E||C?be:Object(a.createElement)("span",{ref:Q},be)};V.Slot=function(e){var t=e.name,n=void 0===t?"Popover":t;return Object(a.createElement)(N.b,{bubblesVirtually:!0,name:n,className:"popover-slot"})};t.a=V},function(e,t,n){"use strict";function r(e){return e&&"object"==typeof e&&"default"in e?e.default:e}Object.defineProperty(t,"__esModule",{value:!0});var o=r(n(177)),i=r(n(178)),a=n(13),c=r(a),s=r(n(158)),u=r(n(179)),l={arr:Array.isArray,obj:function(e){return"[object Object]"===Object.prototype.toString.call(e)},fun:function(e){return"function"==typeof e},str:function(e){return"string"==typeof e},num:function(e){return"number"==typeof e},und:function(e){return void 0===e},nul:function(e){return null===e},set:function(e){return e instanceof Set},map:function(e){return e instanceof Map},equ:function(e,t){if(typeof e!=typeof t)return!1;if(l.str(e)||l.num(e))return e===t;if(l.obj(e)&&l.obj(t)&&Object.keys(e).length+Object.keys(t).length===0)return!0;var n;for(n in e)if(!(n in t))return!1;for(n in t)if(e[n]!==t[n])return!1;return!l.und(n)||e===t}};function d(){var e=a.useState(!1)[1];return a.useCallback((function(){return e((function(e){return!e}))}),[])}function f(e,t){return l.und(e)||l.nul(e)?t:e}function p(e){return l.und(e)?[]:l.arr(e)?e:[e]}function b(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r=n.length)break;i=n[o++]}else{if((o=n.next()).done)break;i=o.value}for(var a=i,c=!1,s=0;s=p.startTime+u.duration;else if(u.decay)v=b+g/(1-.998)*(1-Math.exp(-(1-.998)*(t-p.startTime))),(l=Math.abs(p.lastPosition-v)<.1)&&(h=v);else{d=void 0!==p.lastTime?p.lastTime:t,g=void 0!==p.lastVelocity?p.lastVelocity:u.initialVelocity,t>d+64&&(d=t);for(var O=Math.floor(t-d),j=0;jh:v=e);++n);return n-1}(e,i);return function(e,t,n,r,o,i,a,c,s){var u=s?s(e):e;if(un){if("identity"===c)return u;"clamp"===c&&(u=n)}if(r===o)return r;if(t===n)return e<=t?r:o;t===-1/0?u=-u:n===1/0?u-=t:u=(u-t)/(n-t);u=i(u),r===-1/0?u=-u:o===1/0?u+=r:u=u*(o-r)+r;return u}(e,i[t],i[t+1],o[t],o[t+1],s,a,c,r.map)}}var B=function(e){function t(n,r,o,i){var a;return(a=e.call(this)||this).calc=void 0,a.payload=n instanceof g&&!(n instanceof t)?n.getPayload():Array.isArray(n)?n:[n],a.calc=z(r,o,i),a}s(t,e);var n=t.prototype;return n.getValue=function(){return this.calc.apply(this,this.payload.map((function(e){return e.getValue()})))},n.updateConfig=function(e,t,n){this.calc=z(e,t,n)},n.interpolate=function(e,n,r){return new t(this,e,n,r)},t}(g);var H=function(e){function t(t){var n;return(n=e.call(this)||this).animatedStyles=new Set,n.value=void 0,n.startPosition=void 0,n.lastPosition=void 0,n.lastVelocity=void 0,n.startTime=void 0,n.lastTime=void 0,n.done=!1,n.setValue=function(e,t){void 0===t&&(t=!0),n.value=e,t&&n.flush()},n.value=t,n.startPosition=t,n.lastPosition=t,n}s(t,e);var n=t.prototype;return n.flush=function(){0===this.animatedStyles.size&&function e(t,n){"update"in t?n.add(t):t.getChildren().forEach((function(t){return e(t,n)}))}(this,this.animatedStyles),this.animatedStyles.forEach((function(e){return e.update()}))},n.clearStyles=function(){this.animatedStyles.clear()},n.getValue=function(){return this.value},n.interpolate=function(e,t,n){return new B(this,e,t,n)},t}(y),V=function(e){function t(t){var n;return(n=e.call(this)||this).payload=t.map((function(e){return new H(e)})),n}s(t,e);var n=t.prototype;return n.setValue=function(e,t){var n=this;void 0===t&&(t=!0),Array.isArray(e)?e.length===this.payload.length&&e.forEach((function(e,r){return n.payload[r].setValue(e,t)})):this.payload.forEach((function(n){return n.setValue(e,t)}))},n.getValue=function(){return this.payload.map((function(e){return e.getValue()}))},n.interpolate=function(e,t){return new B(this,e,t)},t}(g),K=0,W=function(){function e(){var e=this;this.id=void 0,this.idle=!0,this.hasChanged=!1,this.guid=0,this.local=0,this.props={},this.merged={},this.animations={},this.interpolations={},this.values={},this.configs=[],this.listeners=[],this.queue=[],this.localQueue=void 0,this.getValues=function(){return e.interpolations},this.id=K++}var t=e.prototype;return t.update=function(e){if(!e)return this;var t=h(e),n=t.delay,r=void 0===n?0:n,a=t.to,c=i(t,["delay","to"]);if(l.arr(a)||l.fun(a))this.queue.push(o({},c,{delay:r,to:a}));else if(a){var s={};Object.entries(a).forEach((function(e){var t,n=e[0],i=e[1],a=o({to:(t={},t[n]=i,t),delay:b(r,n)},c),u=s[a.delay]&&s[a.delay].to;s[a.delay]=o({},s[a.delay],a,{to:o({},u,a.to)})})),this.queue=Object.values(s)}return this.queue=this.queue.sort((function(e,t){return e.delay-t.delay})),this.diff(c),this},t.start=function(e){var t,n=this;if(this.queue.length){this.idle=!1,this.localQueue&&this.localQueue.forEach((function(e){var t=e.from,r=void 0===t?{}:t,i=e.to,a=void 0===i?{}:i;l.obj(r)&&(n.merged=o({},r,n.merged)),l.obj(a)&&(n.merged=o({},n.merged,a))}));var r=this.local=++this.guid,a=this.localQueue=this.queue;this.queue=[],a.forEach((function(t,o){var c=t.delay,s=i(t,["delay"]),u=function(t){o===a.length-1&&r===n.guid&&t&&(n.idle=!0,n.props.onRest&&n.props.onRest(n.merged)),e&&e()},d=l.arr(s.to)||l.fun(s.to);c?setTimeout((function(){r===n.guid&&(d?n.runAsync(s,u):n.diff(s).start(u))}),c):d?n.runAsync(s,u):n.diff(s).start(u)}))}else l.fun(e)&&this.listeners.push(e),this.props.onStart&&this.props.onStart(),t=this,L.has(t)||L.add(t),A||(A=!0,k(M||F));return this},t.stop=function(e){return this.listeners.forEach((function(t){return t(e)})),this.listeners=[],this},t.pause=function(e){var t;return this.stop(!0),e&&(t=this,L.has(t)&&L.delete(t)),this},t.runAsync=function(e,t){var n=this,r=(e.delay,i(e,["delay"])),a=this.local,c=Promise.resolve(void 0);if(l.arr(r.to))for(var s=function(e){var t=e,i=o({},r,h(r.to[t]));l.arr(i.config)&&(i.config=i.config[t]),c=c.then((function(){if(a===n.guid)return new Promise((function(e){return n.diff(i).start(e)}))}))},u=0;u=r.length)return"break";a=r[i++]}else{if((i=r.next()).done)return"break";a=i.value}var n=a.key,c=function(e){return e.key!==n};(l.und(t)||t===n)&&(e.current.instances.delete(n),e.current.transitions=e.current.transitions.filter(c),e.current.deleted=e.current.deleted.filter(c))},r=e.current.deleted,o=Array.isArray(r),i=0;for(r=o?r:r[Symbol.iterator]();;){var a;if("break"===n())break}e.current.forceUpdate()}var Z=function(e){function t(t){var n;return void 0===t&&(t={}),n=e.call(this)||this,!t.transform||t.transform instanceof y||(t=v.transform(t)),n.payload=t,n}return s(t,e),t}(O),X={transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199},J="[-+]?\\d*\\.?\\d+";function Q(){for(var e=arguments.length,t=new Array(e),n=0;n1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function ue(e,t,n){var r=n<.5?n*(1+t):n+t-n*t,o=2*n-r,i=se(o,r,e+1/3),a=se(o,r,e),c=se(o,r,e-1/3);return Math.round(255*i)<<24|Math.round(255*a)<<16|Math.round(255*c)<<8}function le(e){var t=parseInt(e,10);return t<0?0:t>255?255:t}function de(e){return(parseFloat(e)%360+360)%360/360}function fe(e){var t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function pe(e){var t=parseFloat(e);return t<0?0:t>100?1:t/100}function be(e){var t,n,r="number"==typeof(t=e)?t>>>0===t&&t>=0&&t<=4294967295?t:null:(n=ae.exec(t))?parseInt(n[1]+"ff",16)>>>0:X.hasOwnProperty(t)?X[t]:(n=ee.exec(t))?(le(n[1])<<24|le(n[2])<<16|le(n[3])<<8|255)>>>0:(n=te.exec(t))?(le(n[1])<<24|le(n[2])<<16|le(n[3])<<8|fe(n[4]))>>>0:(n=oe.exec(t))?parseInt(n[1]+n[1]+n[2]+n[2]+n[3]+n[3]+"ff",16)>>>0:(n=ce.exec(t))?parseInt(n[1],16)>>>0:(n=ie.exec(t))?parseInt(n[1]+n[1]+n[2]+n[2]+n[3]+n[3]+n[4]+n[4],16)>>>0:(n=ne.exec(t))?(255|ue(de(n[1]),pe(n[2]),pe(n[3])))>>>0:(n=re.exec(t))?(ue(de(n[1]),pe(n[2]),pe(n[3]))|fe(n[4]))>>>0:null;return null===r?e:"rgba("+((4278190080&(r=r||0))>>>24)+", "+((16711680&r)>>>16)+", "+((65280&r)>>>8)+", "+(255&r)/255+")"}var he=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,ve=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,me=new RegExp("("+Object.keys(X).join("|")+")","g"),ye={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},ge=["Webkit","Ms","Moz","O"];function Oe(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||ye.hasOwnProperty(e)&&ye[e]?(""+t).trim():t+"px"}ye=Object.keys(ye).reduce((function(e,t){return ge.forEach((function(n){return e[function(e,t){return e+t.charAt(0).toUpperCase()+t.substring(1)}(n,t)]=e[t]})),e}),ye);var je={};I((function(e){return new Z(e)})),P("div"),E((function(e){var t=e.output.map((function(e){return e.replace(ve,be)})).map((function(e){return e.replace(me,be)})),n=t[0].match(he).map((function(){return[]}));t.forEach((function(e){e.match(he).forEach((function(e,t){return n[t].push(+e)}))}));var r=t[0].match(he).map((function(t,r){return z(o({},e,{output:n[r]}))}));return function(e){var n=0;return t[0].replace(he,(function(){return r[n++](e)})).replace(/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,(function(e,t,n,r,o){return"rgba("+Math.round(t)+", "+Math.round(n)+", "+Math.round(r)+", "+o+")"}))}})),w(X),j((function(e,t){if(!e.nodeType||void 0===e.setAttribute)return!1;var n=t.style,r=t.children,o=t.scrollTop,a=t.scrollLeft,c=i(t,["style","children","scrollTop","scrollLeft"]),s="filter"===e.nodeName||e.parentNode&&"filter"===e.parentNode.nodeName;for(var u in void 0!==o&&(e.scrollTop=o),void 0!==a&&(e.scrollLeft=a),void 0!==r&&(e.textContent=r),n)if(n.hasOwnProperty(u)){var l=0===u.indexOf("--"),d=Oe(u,n[u],l);"float"===u&&(u="cssFloat"),l?e.style.setProperty(u,d):e.style[u]=d}for(var f in c){var p=s?f:je[f]||(je[f]=f.replace(/([A-Z])/g,(function(e){return"-"+e.toLowerCase()})));void 0!==e.getAttribute(p)&&e.setAttribute(p,c[f])}}),(function(e){return e}));var we,_e,ke=(we=function(e){return a.forwardRef((function(t,n){var r=d(),s=a.useRef(!0),u=a.useRef(null),f=a.useRef(null),p=a.useCallback((function(e){var t=u.current;u.current=new N(e,(function(){var e=!1;f.current&&(e=v.fn(f.current,u.current.getAnimatedValue())),f.current&&!1!==e||r()})),t&&t.detach()}),[]);a.useEffect((function(){return function(){s.current=!1,u.current&&u.current.detach()}}),[]),a.useImperativeHandle(n,(function(){return T(f,s,r)})),p(t);var b,h=u.current.getValue(),m=(h.scrollTop,h.scrollLeft,i(h,["scrollTop","scrollLeft"])),y=(b=e,!l.fun(b)||b.prototype instanceof c.Component?function(e){return f.current=function(e,t){return t&&(l.fun(t)?t(e):l.obj(t)&&(t.current=e)),e}(e,n)}:void 0);return c.createElement(e,o({},m,{ref:y}))}))},void 0===(_e=!1)&&(_e=!0),function(e){return(l.arr(e)?e:Object.keys(e)).reduce((function(e,t){var n=_e?t[0].toLowerCase()+t.substring(1):t;return e[n]=we(n),e}),we)}),Se=ke(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]);t.apply=ke,t.config={default:{tension:170,friction:26},gentle:{tension:120,friction:14},wobbly:{tension:180,friction:12},stiff:{tension:210,friction:20},slow:{tension:280,friction:60},molasses:{tension:280,friction:120}},t.update=F,t.animated=Se,t.a=Se,t.interpolate=function(e,t,n){return e&&new B(e,t,n)},t.Globals=R,t.useSpring=function(e){var t=l.fun(e),n=U(1,t?e:[e]),r=n[0],o=n[1],i=n[2];return t?[r[0],o,i]:r},t.useTrail=function(e,t){var n=a.useRef(!1),r=l.fun(t),i=b(t),c=a.useRef(),s=U(e,(function(e,t){return 0===e&&(c.current=[]),c.current.push(t),o({},i,{config:b(i.config,e),attach:e>0&&function(){return c.current[e-1]}})})),u=s[0],d=s[1],f=s[2],p=a.useMemo((function(){return function(e){return d((function(t,n){e.reverse;var r=e.reverse?t+1:t-1,a=c.current[r];return o({},e,{config:b(e.config||i.config,t),attach:a&&function(){return a}})}))}}),[e,i.reverse]);return a.useEffect((function(){n.current&&!r&&p(t)})),a.useEffect((function(){n.current=!0}),[]),r?[u,p,f]:u},t.useTransition=function(e,t,n){var r=o({items:e,keys:t||function(e){return e}},n),c=q(r),s=c.lazy,u=void 0!==s&&s,l=(c.unique,c.reset),f=void 0!==l&&l,p=(c.enter,c.leave,c.update,c.onDestroyed),h=(c.keys,c.items,c.onFrame),v=c.onRest,m=c.onStart,y=c.ref,g=i(c,["lazy","unique","reset","enter","leave","update","onDestroyed","keys","items","onFrame","onRest","onStart","ref"]),O=d(),j=a.useRef(!1),w=a.useRef({mounted:!1,first:!0,deleted:[],current:{},transitions:[],prevProps:{},paused:!!r.ref,instances:!j.current&&new Map,forceUpdate:O});return a.useImperativeHandle(r.ref,(function(){return{start:function(){return Promise.all(Array.from(w.current.instances).map((function(e){var t=e[1];return new Promise((function(e){return t.start(e)}))})))},stop:function(e){return Array.from(w.current.instances).forEach((function(t){return t[1].stop(e)}))},get controllers(){return Array.from(w.current.instances).map((function(e){return e[1]}))}}})),w.current=function(e,t){var n=e.first,r=e.prevProps,a=i(e,["first","prevProps"]),c=q(t),s=c.items,u=c.keys,l=c.initial,d=c.from,f=c.enter,p=c.leave,h=c.update,v=c.trail,m=void 0===v?0:v,y=c.unique,g=c.config,O=c.order,j=void 0===O?["enter","leave","update"]:O,w=q(r),_=w.keys,k=w.items,S=o({},a.current),E=[].concat(a.deleted),x=Object.keys(S),C=new Set(x),P=new Set(u),D=u.filter((function(e){return!C.has(e)})),M=a.transitions.filter((function(e){return!e.destroyed&&!P.has(e.originalKey)})).map((function(e){return e.originalKey})),T=u.filter((function(e){return C.has(e)})),I=-m;for(;j.length;){switch(j.shift()){case"enter":D.forEach((function(e,t){y&&E.find((function(t){return t.originalKey===e}))&&(E=E.filter((function(t){return t.originalKey!==e})));var r=u.indexOf(e),o=s[r],i=n&&void 0!==l?"initial":"enter";S[e]={slot:i,originalKey:e,key:y?String(e):G++,item:o,trail:I+=m,config:b(g,o,i),from:b(n&&void 0!==l?l||{}:d,o),to:b(f,o)}}));break;case"leave":M.forEach((function(e){var t=_.indexOf(e),n=k[t];E.unshift(o({},S[e],{slot:"leave",destroyed:!0,left:_[Math.max(0,t-1)],right:_[Math.min(_.length,t+1)],trail:I+=m,config:b(g,n,"leave"),to:b(p,n)})),delete S[e]}));break;case"update":T.forEach((function(e){var t=u.indexOf(e),n=s[t];S[e]=o({},S[e],{item:n,slot:"update",trail:I+=m,config:b(g,n,"update"),to:b(h,n)})}))}}var R=u.map((function(e){return S[e]}));return E.forEach((function(e){var t,n=e.left,r=(e.right,i(e,["left","right"]));-1!==(t=R.findIndex((function(e){return e.originalKey===n})))&&(t+=1),t=Math.max(0,t),R=[].concat(R.slice(0,t),[r],R.slice(t))})),o({},a,{changed:D.length||M.length||T.length,first:n&&0===D.length,transitions:R,current:S,deleted:E,prevProps:t})}(w.current,r),w.current.changed&&w.current.transitions.forEach((function(e){var t=e.slot,n=e.from,r=e.to,i=e.config,a=e.trail,c=e.key,s=e.item;w.current.instances.has(c)||w.current.instances.set(c,new W);var l=w.current.instances.get(c),d=o({},g,{to:r,from:n,config:i,ref:y,onRest:function(n){w.current.mounted&&(e.destroyed&&(y||u||Y(w,c),p&&p(s)),!Array.from(w.current.instances).some((function(e){return!e[1].idle}))&&(y||u)&&w.current.deleted.length>0&&Y(w),v&&v(s,t,n))},onStart:m&&function(){return m(s,t)},onFrame:h&&function(e){return h(s,t,e)},delay:a,reset:f&&"enter"===t});l.update(d),w.current.paused||l.start()})),a.useEffect((function(){return w.current.mounted=j.current=!0,function(){w.current.mounted=j.current=!1,Array.from(w.current.instances).map((function(e){return e[1].destroy()})),w.current.instances.clear()}}),[]),w.current.transitions.map((function(e){var t=e.item,n=e.slot,r=e.key;return{item:t,key:r,state:n,props:w.current.instances.get(r).getValues()}}))},t.useChain=function(e,t,n){void 0===n&&(n=1e3);var r=a.useRef();a.useEffect((function(){l.equ(e,r.current)?e.forEach((function(e){var t=e.current;return t&&t.start()})):t?e.forEach((function(e,r){var i=e.current;if(i){var a=i.controllers;if(a.length){var c=n*t[r];a.forEach((function(e){e.queue=e.queue.map((function(e){return o({},e,{delay:e.delay+c})})),e.start()}))}}})):e.reduce((function(e,t,n){var r=t.current;return e.then((function(){return r.start()}))}),Promise.resolve()),r.current=e}))},t.useSprings=U},,,,function(e,t){function n(e,t,n,r){var o,i=null==(o=r)||"number"==typeof o||"boolean"==typeof o?r:n(r),a=t.get(i);return void 0===a&&(a=e.call(this,r),t.set(i,a)),a}function r(e,t,n){var r=Array.prototype.slice.call(arguments,3),o=n(r),i=t.get(o);return void 0===i&&(i=e.apply(this,r),t.set(o,i)),i}function o(e,t,n,r,o){return n.bind(t,e,r,o)}function i(e,t){return o(e,this,1===e.length?n:r,t.cache.create(),t.serializer)}function a(){return JSON.stringify(arguments)}function c(){this.cache=Object.create(null)}c.prototype.has=function(e){return e in this.cache},c.prototype.get=function(e){return this.cache[e]},c.prototype.set=function(e,t){this.cache[e]=t};var s={create:function(){return new c}};e.exports=function(e,t){var n=t&&t.cache?t.cache:s,r=t&&t.serializer?t.serializer:a;return(t&&t.strategy?t.strategy:i)(e,{cache:n,serializer:r})},e.exports.strategies={variadic:function(e,t){return o(e,this,r,t.cache.create(),t.serializer)},monadic:function(e,t){return o(e,this,n,t.cache.create(),t.serializer)}}},function(e,t,n){"use strict";var r=n(330);e.exports=Function.prototype.bind||r},,function(e,t,n){"use strict";n.d(t,"a",(function(){return k})),n.d(t,"b",(function(){return _}));var r=n(15),o=n(51),i=n(50),a=n(67),c=n(13),s=n(63),u=(n(81),n(48)),l=n(54),d=n(57),f=n(74),p=n(79),b=n(82),h=n(49),v=n(97),m=n(104),y=n(52),g="undefined"!=typeof window&&"msCrypto"in window;var O="undefined"!=typeof window&&"msCrypto"in window;function j(e,t,n){var r=Object(u.a)(n);return Object(c.useCallback)((function(n){var o;if(e&&function(e){return!!Object(l.a)(e)&&(!e.metaKey&&"Tab"!==e.key)}(n)){var i=null==t?void 0:t.ref.current;if(i&&(Object(m.a)(i,n.type,n),n.currentTarget.contains(i)))return n.stopPropagation(),void n.preventDefault()}null===(o=r.current)||void 0===o||o.call(r,n)}),[e,t])}function w(e,t){return null==e?void 0:e.some((function(e){return!!t&&e.ref.current===t}))}var _=Object(i.a)({name:"Composite",compose:[f.a],useState:y.g,useOptions:function(e){return Object(r.b)(Object(r.b)({},e),{},{currentId:Object(y.e)(e)})},useProps:function(e,t){var n=t.ref,o=t.onFocus,i=t.onBlur,a=t.onKeyDown,f=t.onKeyUp,p=Object(r.a)(t,["ref","onFocus","onBlur","onKeyDown","onKeyUp"]),m=Object(c.useRef)(null),_=Object(y.d)(e.items,e.currentId),k=Object(c.useRef)(void 0),S=Object(u.a)(o),E=Object(u.a)(i),x=O?function(e){var t=Object(c.useRef)(null);return Object(c.useEffect)((function(){var n=Object(h.a)(e.current),r=function(e){var n=e.target;t.current=n};return n.addEventListener("focus",r,!0),function(){n.removeEventListener("focus",r,!0)}}),[]),t}(m):void 0;Object(c.useEffect)((function(){var t=m.current;t&&e.unstable_moves&&!_&&t.focus()}),[e.unstable_moves,_]);var C=j(e.unstable_virtual,_,a),P=j(e.unstable_virtual,_,f),D=Object(c.useCallback)((function(t){var n;if(e.unstable_virtual){var r,o,i=(null==x?void 0:x.current)||t.relatedTarget,a=w(e.items,i);if(Object(l.a)(t)&&!a)return null===(r=S.current)||void 0===r||r.call(S,t),void(null==_||null===(o=_.ref.current)||void 0===o||o.focus());if(a)return void t.stopPropagation()}else if(Object(l.a)(t)){var c;null===(c=e.setCurrentId)||void 0===c||c.call(e,null)}null===(n=S.current)||void 0===n||n.call(S,t)}),[e.unstable_virtual,e.items,_,e.setCurrentId]),M=Object(c.useCallback)((function(t){var n;if(e.unstable_virtual){var r,o=w(e.items,t.target),i=function(e){return g?Object(d.a)(e.target):e.relatedTarget}(t),a=w(e.items,i);if(Object(l.a)(t)&&a)return(null===(r=k.current)||void 0===r?void 0:r.ref.current)&&Object(v.a)(k.current.ref.current,"blur",t),k.current=_,void t.stopPropagation();o?k.current=_:((null==_?void 0:_.ref.current)&&Object(v.a)(_.ref.current,"blur",t),k.current=void 0)}null===(n=E.current)||void 0===n||n.call(E,t)}),[e.unstable_virtual,e.items,_]),T=Object(c.useMemo)((function(){return Object(b.a)({onKeyDown:C,stopPropagation:!0,shouldKeyDown:function(t){return Object(l.a)(t)&&null===e.currentId},keyMap:function(){var t,n="horizontal"!==e.orientation,r="vertical"!==e.orientation,o=!!(null===(t=e.groups)||void 0===t?void 0:t.length),i=e.first&&function(){return e.first()},a=e.last&&function(){return e.last()};return{ArrowUp:(o||n)&&function(){if(o){var t,n=(i=e.items,Object(y.a)(Object(y.b)(Object(y.f)(Object(y.c)(i)))));if(null==n?void 0:n.id)null===(t=e.move)||void 0===t||t.call(e,n.id)}else{var r;null===(r=e.last)||void 0===r||r.call(e)}var i},ArrowRight:(o||r)&&i,ArrowDown:(o||n)&&i,ArrowLeft:(o||r)&&a,Home:i,End:a,PageUp:i,PageDown:a}}})}),[C,e.currentId,e.orientation,e.groups,e.items,e.move,e.last,e.first]);return Object(r.b)({ref:Object(s.a)(m,n),id:e.baseId,onFocus:D,onBlur:M,onKeyDown:T,onKeyUp:P,"aria-activedescendant":e.unstable_virtual&&(null==_?void 0:_.id)||void 0},p)},useComposeProps:function(e,t){t=Object(a.a)(e,t,!0);var n=Object(f.a)(e,t,!0);return e.unstable_virtual||null===e.currentId?n:Object(r.b)(Object(r.b)({},t),{},{ref:n.ref})}}),k=Object(o.a)({as:"div",useHook:_,useCreateElement:function(e,t,n){return Object(p.a)(e,t,n)}})},function(e,t,n){"use strict";n.d(t,"a",(function(){return w})),n.d(t,"b",(function(){return j}));var r=n(15),o=n(51),i=n(50),a=n(13),c=n(63),s=(n(81),n(48)),u=n(54),l=n(70),d=n(73),f=n(72),p=n(88),b=n(82),h=n(49),v=n(52),m=n(96),y=n(98),g=n(99);function O(e){return e.querySelector("[data-composite-item-widget]")}var j=Object(i.a)({name:"CompositeItem",compose:[p.a,m.a],useState:v.g,propsAreEqual:function(e,t){if(!t.id||e.id!==t.id)return p.a.unstable_propsAreEqual(e,t);var n=e.currentId,o=e.unstable_moves,i=Object(r.a)(e,["currentId","unstable_moves"]),a=t.currentId,c=t.unstable_moves,s=Object(r.a)(t,["currentId","unstable_moves"]);if(a!==n){if(t.id===a||t.id===n)return!1}else if(o!==c)return!1;return p.a.unstable_propsAreEqual(i,s)},useOptions:function(e){return Object(r.b)(Object(r.b)({},e),{},{id:e.id,currentId:Object(v.e)(e),unstable_clickOnSpace:!e.unstable_hasActiveWidget&&e.unstable_clickOnSpace})},useProps:function(e,t){var n,o=t.ref,i=t.tabIndex,p=void 0===i?0:i,v=t.onFocus,m=t.onBlur,j=t.onKeyDown,w=t.onClick,_=Object(r.a)(t,["ref","tabIndex","onFocus","onBlur","onKeyDown","onClick"]),k=Object(a.useRef)(null),S=e.id,E=e.disabled&&!e.focusable,x=e.currentId===S,C=Object(s.a)(x),P=Object(a.useRef)(!1),D=function(e){return Object(a.useMemo)((function(){var t;return null===(t=e.items)||void 0===t?void 0:t.find((function(t){return e.id&&t.id===e.id}))}),[e.items,e.id])}(e),M=Object(s.a)(v),T=Object(s.a)(m),I=Object(s.a)(j),R=Object(s.a)(w),N=!e.unstable_virtual&&!e.unstable_hasActiveWidget&&x||!(null===(n=e.items)||void 0===n?void 0:n.length);Object(a.useEffect)((function(){var t;if(S)return null===(t=e.registerItem)||void 0===t||t.call(e,{id:S,ref:k,disabled:!!E}),function(){var t;null===(t=e.unregisterItem)||void 0===t||t.call(e,S)}}),[S,E,e.registerItem,e.unregisterItem]),Object(a.useEffect)((function(){var t=k.current;t&&e.unstable_moves&&C.current&&t.focus()}),[e.unstable_moves]);var A=Object(a.useCallback)((function(t){var n,o;if(null===(n=M.current)||void 0===n||n.call(M,t),!t.defaultPrevented&&!Object(d.a)(t)&&S&&!function(e,t){if(Object(u.a)(e))return!1;for(var n,o=Object(r.c)(t);!(n=o()).done;){if(n.value.ref.current===e.target)return!0}return!1}(t,e.items)&&(null===(o=e.setCurrentId)||void 0===o||o.call(e,S),e.unstable_virtual&&e.baseId&&Object(u.a)(t))){var i=t.target,a=Object(h.a)(i).getElementById(e.baseId);a&&(P.current=!0,Object(f.a)(a))}}),[S,e.items,e.setCurrentId,e.unstable_virtual,e.baseId]),L=Object(a.useCallback)((function(t){var n;if(e.unstable_virtual&&P.current)return P.current=!1,t.preventDefault(),void t.stopPropagation();null===(n=T.current)||void 0===n||n.call(T,t)}),[e.unstable_virtual]),F=Object(a.useCallback)((function(e){var t;if(null===(t=I.current)||void 0===t||t.call(I,e),Object(u.a)(e)&&1===e.key.length&&" "!==e.key){var n=O(e.currentTarget);if(n&&Object(y.a)(n)){n.focus();var r=e.key;window.requestAnimationFrame((function(){Object(g.a)(n,r)}))}}}),[]),z=Object(a.useMemo)((function(){return Object(b.a)({onKeyDown:F,stopPropagation:!0,shouldKeyDown:u.a,keyMap:function(){var t="horizontal"!==e.orientation,n="vertical"!==e.orientation,r=!!(null==D?void 0:D.groupId),o=function(e){var t=O(e.currentTarget);t&&Object(y.a)(t)&&Object(g.a)(t,"")},i=e.up&&function(){return e.up()},a=e.next&&function(){return e.next()},c=e.down&&function(){return e.down()},s=e.previous&&function(){return e.previous()};return{Delete:o,Backspace:o,ArrowUp:(r||t)&&i,ArrowRight:(r||n)&&a,ArrowDown:(r||t)&&c,ArrowLeft:(r||n)&&s,Home:function(t){var n,o;!r||t.ctrlKey?null===(n=e.first)||void 0===n||n.call(e):null===(o=e.previous)||void 0===o||o.call(e,!0)},End:function(t){var n,o;!r||t.ctrlKey?null===(n=e.last)||void 0===n||n.call(e):null===(o=e.next)||void 0===o||o.call(e,!0)},PageUp:function(){var t,n;r?null===(t=e.up)||void 0===t||t.call(e,!0):null===(n=e.first)||void 0===n||n.call(e)},PageDown:function(){var t,n;r?null===(t=e.down)||void 0===t||t.call(e,!0):null===(n=e.last)||void 0===n||n.call(e)}}}})}),[F,e.orientation,D,e.up,e.next,e.down,e.previous,e.first,e.last]),B=Object(a.useCallback)((function(e){var t;if(null===(t=R.current)||void 0===t||t.call(R,e),!e.defaultPrevented){var n=O(e.currentTarget);n&&!Object(l.a)(n)&&n.focus()}}),[]);return Object(r.b)({ref:Object(c.a)(k,o),id:S,tabIndex:N?p:-1,"aria-selected":!(!e.unstable_virtual||!x)||void 0,onFocus:A,onBlur:L,onKeyDown:z,onClick:B},_)}}),w=Object(o.a)({as:"button",memo:!0,useHook:j})},function(e,t,n){"use strict";n.d(t,"b",(function(){return u})),n.d(t,"a",(function(){return l}));var r=n(5),o=n(12),i=n(9),a=n.n(i);function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function s(e){for(var t=1;t2?n-2:0),o=2;o0&&void 0!==arguments[0]?arguments[0]:{},t=e.htmlDocument,n=void 0===t?document:t,a=e.className,c=void 0===a?"lockscroll":a,l=0,d=0;function f(e){var t=n.scrollingElement||n.body;e&&(d=t.scrollTop);var r=e?"add":"remove";t.classList[r](c),n.documentElement.classList[r](c),e||(t.scrollTop=d)}function p(){0===l&&f(!0),++l}function b(){1===l&&f(!1),--l}return function(e){Object(i.a)(n,e);var t=u(n);function n(){return Object(r.a)(this,n),t.apply(this,arguments)}return Object(o.a)(n,[{key:"componentDidMount",value:function(){p()}},{key:"componentWillUnmount",value:function(){b()}},{key:"render",value:function(){return null}}]),n}(s.Component)}()},function(e,t,n){"use strict";(function(e){var r=n(0),o=n(2),i=n(9),a=n.n(i),c=n(46),s=n(1),u=(n(90),n(35));t.a=Object(r.forwardRef)((function(t,n){var i=t.className,l=t.children,d=t.spokenMessage,f=void 0===d?l:d,p=t.politeness,b=void 0===p?"polite":p,h=t.actions,v=void 0===h?[]:h,m=t.onRemove,y=void 0===m?o.noop:m;!function(e,t){var n="string"==typeof e?e:Object(r.renderToString)(e);Object(r.useEffect)((function(){n&&Object(c.speak)(n,t)}),[n,t])}(f,b),Object(r.useEffect)((function(){var e=setTimeout((function(){y()}),1e4);return function(){return clearTimeout(e)}}),[]);var g=a()(i,"components-snackbar");return v&&v.length>1&&(void 0!==e&&e.env,v=[v[0]]),Object(r.createElement)("div",{ref:n,className:g,onClick:y,tabIndex:"0",role:"button",onKeyPress:y,"aria-label":Object(s.__)("Dismiss this notice")},Object(r.createElement)("div",{className:"components-snackbar__content"},l,v.map((function(e,t){var n=e.label,o=e.onClick,i=e.url;return Object(r.createElement)(u.a,{key:t,href:i,isTertiary:!0,onClick:function(e){e.stopPropagation(),o&&o(e)},className:"components-snackbar__action"},n)}))))}))}).call(this,n(102))},,,,,function(e,t,n){"use strict";var r=n(0),o=n(2);t.a=function(e){var t,n,i=e.shortcut,a=e.className;return i?(Object(o.isString)(i)&&(t=i),Object(o.isObject)(i)&&(t=i.display,n=i.ariaLabel),Object(r.createElement)("span",{className:a,"aria-label":n},t)):null}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(15),o=(n(13),n(62)),i=n(52);function a(e){void 0===e&&(e={});var t=Object(o.a)(e),n=t.orientation,a=void 0===n?"horizontal":n,c=Object(r.a)(t,["orientation"]);return Object(i.g)(Object(r.b)({orientation:a},c))}var c=[].concat(i.g.__keys);a.__keys=c},,,,function(e,t){function n(){return e.exports=n=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}},function(e,t){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}},,,,,function(e,t,n){"use strict";var r=n(185);e.exports=function(e,t,n){n=n||{},9===t.nodeType&&(t=r.getWindow(t));var o=n.allowHorizontalScroll,i=n.onlyScrollIfNeeded,a=n.alignWithTop,c=n.alignWithLeft,s=n.offsetTop||0,u=n.offsetLeft||0,l=n.offsetBottom||0,d=n.offsetRight||0;o=void 0===o||o;var f=r.isWindow(t),p=r.offset(e),b=r.outerHeight(e),h=r.outerWidth(e),v=void 0,m=void 0,y=void 0,g=void 0,O=void 0,j=void 0,w=void 0,_=void 0,k=void 0,S=void 0;f?(w=t,S=r.height(w),k=r.width(w),_={left:r.scrollLeft(w),top:r.scrollTop(w)},O={left:p.left-_.left-u,top:p.top-_.top-s},j={left:p.left+h-(_.left+k)+d,top:p.top+b-(_.top+S)+l},g=_):(v=r.offset(t),m=t.clientHeight,y=t.clientWidth,g={left:t.scrollLeft,top:t.scrollTop},O={left:p.left-(v.left+(parseFloat(r.css(t,"borderLeftWidth"))||0))-u,top:p.top-(v.top+(parseFloat(r.css(t,"borderTopWidth"))||0))-s},j={left:p.left+h-(v.left+y+(parseFloat(r.css(t,"borderRightWidth"))||0))+d,top:p.top+b-(v.top+m+(parseFloat(r.css(t,"borderBottomWidth"))||0))+l}),O.top<0||j.top>0?!0===a?r.scrollTop(t,g.top+O.top):!1===a?r.scrollTop(t,g.top+j.top):O.top<0?r.scrollTop(t,g.top+O.top):r.scrollTop(t,g.top+j.top):i||((a=void 0===a||!!a)?r.scrollTop(t,g.top+O.top):r.scrollTop(t,g.top+j.top)),o&&(O.left<0||j.left>0?!0===c?r.scrollLeft(t,g.left+O.left):!1===c?r.scrollLeft(t,g.left+j.left):O.left<0?r.scrollLeft(t,g.left+O.left):r.scrollLeft(t,g.left+j.left):i||((c=void 0===c||!!c)?r.scrollLeft(t,g.left+O.left):r.scrollLeft(t,g.left+j.left)))}},function(e,t,n){"use strict";var r=Object.assign||function(e){for(var t=1;t1&&"boolean"!=typeof t)throw new TypeError('"allowMissing" argument must be a boolean');var n="$ "+e;if(!(n in s))throw new SyntaxError("intrinsic "+e+" does not exist!");if(void 0===s[n]&&!t)throw new TypeError("intrinsic "+e+" exists, but is not available. Please file an issue!");return s[n]}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return!(!i.default.isMoment(e)||!i.default.isMoment(t))&&(e.date()===t.date()&&e.month()===t.month()&&e.year()===t.year())};var r,o=n(44),i=(r=o)&&r.__esModule?r:{default:r}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=r.default.isMoment(e)?e:(0,o.default)(e,t);return n?n.format(i.ISO_MONTH_FORMAT):null};var r=a(n(44)),o=a(n(254)),i=n(78);function a(e){return e&&e.__esModule?e:{default:e}}},function(e,t){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return h}));var r=n(17),o=n(21),i=n(22),a=n(16),c=n(23),s=n(24),u=n(19),l=n(0),d=n(2);function f(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(u.a)(e);if(t){var o=Object(u.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(s.a)(this,n)}}var p=Object(l.createContext)({focusHistory:[]}),b=p.Provider,h=p.Consumer;b.displayName="FocusReturnProvider",h.displayName="FocusReturnConsumer";var v=function(e){Object(c.a)(n,e);var t=f(n);function n(){var e;return Object(o.a)(this,n),(e=t.apply(this,arguments)).onFocus=e.onFocus.bind(Object(a.a)(e)),e.state={focusHistory:[]},e}return Object(i.a)(n,[{key:"onFocus",value:function(e){var t=this.state.focusHistory,n=Object(d.uniq)([].concat(Object(r.a)(t),[e.target]).slice(-100).reverse()).reverse();this.setState({focusHistory:n})}},{key:"render",value:function(){var e=this.props,t=e.children,n=e.className;return Object(l.createElement)(b,{value:this.state},Object(l.createElement)("div",{onFocus:this.onFocus,className:n},t))}}]),n}(l.Component);t.b=v},function(e,t,n){"use strict";e.exports=n(322)},function(e,t){var n={};n.parse=function(){var e=/^(\-(webkit|o|ms|moz)\-)?(linear\-gradient)/i,t=/^(\-(webkit|o|ms|moz)\-)?(repeating\-linear\-gradient)/i,n=/^(\-(webkit|o|ms|moz)\-)?(radial\-gradient)/i,r=/^(\-(webkit|o|ms|moz)\-)?(repeating\-radial\-gradient)/i,o=/^to (left (top|bottom)|right (top|bottom)|left|right|top|bottom)/i,i=/^(closest\-side|closest\-corner|farthest\-side|farthest\-corner|contain|cover)/,a=/^(left|center|right|top|bottom)/i,c=/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))px/,s=/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))\%/,u=/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))em/,l=/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))deg/,d=/^\(/,f=/^\)/,p=/^,/,b=/^\#([0-9a-fA-F]+)/,h=/^([a-zA-Z]+)/,v=/^rgb/i,m=/^rgba/i,y=/^(([0-9]*\.[0-9]+)|([0-9]+\.?))/,g="";function O(e){var t=new Error(g+": "+e);throw t.source=g,t}function j(){var e=D(w);return g.length>0&&O("Invalid input not EOF"),e}function w(){return _("linear-gradient",e,S)||_("repeating-linear-gradient",t,S)||_("radial-gradient",n,E)||_("repeating-radial-gradient",r,E)}function _(e,t,n){return k(t,(function(t){var r=n();return r&&(A(p)||O("Missing comma before color stops")),{type:e,orientation:r,colorStops:D(M)}}))}function k(e,t){var n=A(e);if(n)return A(d)||O("Missing ("),result=t(n),A(f)||O("Missing )"),result}function S(){return N("directional",o,1)||N("angular",l,1)}function E(){var e,t,n=x();return n&&((e=[]).push(n),t=g,A(p)&&((n=x())?e.push(n):g=t)),e}function x(){var e=function(){var e=N("shape",/^(circle)/i,0);e&&(e.style=R()||C());return e}()||function(){var e=N("shape",/^(ellipse)/i,0);e&&(e.style=I()||C());return e}();if(e)e.at=function(){if(N("position",/^at/,0)){var e=P();return e||O("Missing positioning value"),e}}();else{var t=P();t&&(e={type:"default-radial",at:t})}return e}function C(){return N("extent-keyword",i,1)}function P(){var e={x:I(),y:I()};if(e.x||e.y)return{type:"position",value:e}}function D(e){var t=e(),n=[];if(t)for(n.push(t);A(p);)(t=e())?n.push(t):O("One extra comma");return n}function M(){var e=N("hex",b,1)||k(m,(function(){return{type:"rgba",value:D(T)}}))||k(v,(function(){return{type:"rgb",value:D(T)}}))||N("literal",h,0);return e||O("Expected color definition"),e.length=I(),e}function T(){return A(y)[1]}function I(){return N("%",s,1)||N("position-keyword",a,1)||R()}function R(){return N("px",c,1)||N("em",u,1)}function N(e,t,n){var r=A(t);if(r)return{type:e,value:r[n]}}function A(e){var t,n;return(n=/^[\n\r\t\s]+/.exec(g))&&L(n[0].length),(t=e.exec(g))&&L(t[0].length),t}function L(e){g=g.substr(e)}return function(e){return g=e.toString(),j()}}(),t.parse=(n||{}).parse},,,,,,,,function(e,t,n){"use strict";var r=n(0),o=n(7),i=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M18 11.2h-5.2V6h-1.6v5.2H6v1.6h5.2V18h1.6v-5.2H18z"}));t.a=i},,,,,function(e,t,n){"use strict";var r=n(0),o=n(7),i=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M10.6 6L9.4 7l4.6 5-4.6 5 1.2 1 5.4-6z"}));t.a=i},function(e,t,n){"use strict";var r=n(0),o=n(7),i=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M14.6 7l-1.2-1L8 12l5.4 6 1.2-1-4.6-5z"}));t.a=i},,function(e,t,n){"use strict";var r=n(0),o=n(7),i=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M18.5 15v3.5H13V6.7l4.5 4.1 1-1.1-6.2-5.8-5.8 5.8 1 1.1 4-4v11.7h-6V15H4v5h16v-5z"}));t.a=i},function(e,t,n){"use strict";var r=n(0),o=n(7),i=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M15.6 7.3h-.7l1.6-3.5-.9-.4-3.9 8.5H9v1.5h2l-1.3 2.8H8.4c-2 0-3.7-1.7-3.7-3.7s1.7-3.7 3.7-3.7H10V7.3H8.4c-2.9 0-5.2 2.3-5.2 5.2 0 2.9 2.3 5.2 5.2 5.2H9l-1.4 3.2.9.4 5.7-12.5h1.4c2 0 3.7 1.7 3.7 3.7s-1.7 3.7-3.7 3.7H14v1.5h1.6c2.9 0 5.2-2.3 5.2-5.2 0-2.9-2.4-5.2-5.2-5.2z"}));t.a=i},function(e,t,n){"use strict";var r=Object.prototype.toString;e.exports=function(e){var t=r.call(e),n="[object Arguments]"===t;return n||(n="[object Array]"!==t&&null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Function]"===r.call(e.callee)),n}},function(e,t,n){"use strict";(function(t){var r=t.Symbol,o=n(331);e.exports=function(){return"function"==typeof r&&("function"==typeof Symbol&&("symbol"==typeof r("foo")&&("symbol"==typeof Symbol("bar")&&o())))}}).call(this,n(131))},function(e,t,n){"use strict";var r=n(332),o=n(342),i=n(189),a=n(233),c=n(232),s=n(362);e.exports=function(){var e=s(this),t=c(i(e,"length")),n=1;arguments.length>0&&void 0!==arguments[0]&&(n=a(arguments[0]));var u=r(e,0);return o(u,e,t,0,n),u}},function(e,t,n){"use strict";var r=n(58)("%Object.defineProperty%",!0);if(r)try{r({},"a",{value:1})}catch(e){r=null}var o=n(144)("Object.prototype.propertyIsEnumerable");e.exports=function(e,t,n,i,a,c){if(!r){if(!e(c))return!1;if(!c["[[Configurable]]"]||!c["[[Writable]]"])return!1;if(a in i&&o(i,a)!==!!c["[[Enumerable]]"])return!1;var s=c["[[Value]]"];return i[a]=s,t(i[a],s)}return r(i,a,n(c)),!0}},function(e,t,n){"use strict";var r=n(191),o=n(93);e.exports=function(e){if(void 0===e)return e;r(o,"Property Descriptor","Desc",e);var t={};return"[[Value]]"in e&&(t.value=e["[[Value]]"]),"[[Writable]]"in e&&(t.writable=e["[[Writable]]"]),"[[Get]]"in e&&(t.get=e["[[Get]]"]),"[[Set]]"in e&&(t.set=e["[[Set]]"]),"[[Enumerable]]"in e&&(t.enumerable=e["[[Enumerable]]"]),"[[Configurable]]"in e&&(t.configurable=e["[[Configurable]]"]),t}},function(e,t,n){"use strict";var r=n(94),o=n(191),i=n(93);e.exports=function(e){return void 0!==e&&(o(i,"Property Descriptor","Desc",e),!(!r(e,"[[Value]]")&&!r(e,"[[Writable]]")))}},function(e,t,n){"use strict";var r=n(192);e.exports=function(e,t){return e===t?0!==e||1/e==1/t:r(e)&&r(t)}},function(e,t,n){"use strict";var r=n(94),o=n(58)("%TypeError%"),i=n(93),a=n(227),c=n(340);e.exports=function(e){if("Object"!==i(e))throw new o("ToPropertyDescriptor requires an object");var t={};if(r(e,"enumerable")&&(t["[[Enumerable]]"]=a(e.enumerable)),r(e,"configurable")&&(t["[[Configurable]]"]=a(e.configurable)),r(e,"value")&&(t["[[Value]]"]=e.value),r(e,"writable")&&(t["[[Writable]]"]=a(e.writable)),r(e,"get")){var n=e.get;if(void 0!==n&&!c(n))throw new o("getter must be a function");t["[[Get]]"]=n}if(r(e,"set")){var s=e.set;if(void 0!==s&&!c(s))throw new o("setter must be a function");t["[[Set]]"]=s}if((r(t,"[[Get]]")||r(t,"[[Set]]"))&&(r(t,"[[Value]]")||r(t,"[[Writable]]")))throw new o("Invalid property descriptor. Cannot both specify accessors and a value or writable attribute");return t}},function(e,t,n){"use strict";e.exports=function(e){return!!e}},function(e,t,n){"use strict";var r,o,i=Function.prototype.toString,a="object"==typeof Reflect&&null!==Reflect&&Reflect.apply;if("function"==typeof a&&"function"==typeof Object.defineProperty)try{r=Object.defineProperty({},"length",{get:function(){throw o}}),o={},a((function(){throw 42}),null,r)}catch(e){e!==o&&(a=null)}else a=null;var c=/^\s*class\b/,s=function(e){try{var t=i.call(e);return c.test(t)}catch(e){return!1}},u=Object.prototype.toString,l="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;e.exports=a?function(e){if(!e)return!1;if("function"!=typeof e&&"object"!=typeof e)return!1;if("function"==typeof e&&!e.prototype)return!0;try{a(e,null,r)}catch(e){if(e!==o)return!1}return!s(e)}:function(e){if(!e)return!1;if("function"!=typeof e&&"object"!=typeof e)return!1;if("function"==typeof e&&!e.prototype)return!0;if(l)return function(e){try{return!s(e)&&(i.call(e),!0)}catch(e){return!1}}(e);if(s(e))return!1;var t=u.call(e);return"[object Function]"===t||"[object GeneratorFunction]"===t}},function(e,t,n){"use strict";var r=Number.isNaN||function(e){return e!=e};e.exports=Number.isFinite||function(e){return"number"==typeof e&&!r(e)&&e!==1/0&&e!==-1/0}},function(e,t,n){"use strict";var r=n(58),o=r("%Math%"),i=r("%Number%");e.exports=i.MAX_SAFE_INTEGER||o.pow(2,53)-1},function(e,t,n){"use strict";e.exports=function(e){return null===e||"function"!=typeof e&&"object"!=typeof e}},function(e,t,n){"use strict";var r=n(230),o=n(233);e.exports=function(e){var t=o(e);return t<=0?0:t>r?r:t}},function(e,t,n){"use strict";var r=n(352),o=n(355);e.exports=function(e){var t=o(e);return r(t)}},function(e,t,n){"use strict";var r=Date.prototype.getDay,o=Object.prototype.toString,i="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;e.exports=function(e){return"object"==typeof e&&null!==e&&(i?function(e){try{return r.call(e),!0}catch(e){return!1}}(e):"[object Date]"===o.call(e))}},function(e,t,n){"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),n=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(t in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var r=Object.getOwnPropertySymbols(e);if(1!==r.length||r[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(e,t);if(42!==o.value||!0!==o.enumerable)return!1}return!0}},function(e,t,n){"use strict";var r=n(221);e.exports=function(){return Array.prototype.flat||r}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=void 0,o=void 0;function i(e,t){var n=t(e(o));return function(){return n}}function a(e){return i(e,r.createLTR||r.create)}function c(){for(var e=arguments.length,t=Array(e),n=0;n=0?1:-1}},function(e,t){e.exports=function(e,t){var n=e%t;return Math.floor(n>=0?n:n+t)}},function(e,t,n){"use strict";var r=n(242);e.exports=function(){return"function"==typeof Object.values?Object.values:r}},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){return!("undefined"==typeof window||!("ontouchstart"in window||window.DocumentTouch&&"undefined"!=typeof document&&document instanceof window.DocumentTouch))||!("undefined"==typeof navigator||!navigator.maxTouchPoints&&!navigator.msMaxTouchPoints)},e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return!(!r.default.isMoment(e)||!r.default.isMoment(t))&&(!(0,o.default)(e,t)&&!(0,i.default)(e,t))};var r=a(n(44)),o=a(n(253)),i=a(n(196));function a(e){return e&&e.__esModule?e:{default:e}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(!i.default.isMoment(e)||!i.default.isMoment(t))return!1;var n=e.year(),r=e.month(),o=t.year(),a=t.month(),c=n===o,s=r===a;return c&&s?e.date()2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!e)return 0;var o="width"===t?"Left":"Top",i="width"===t?"Right":"Bottom",a=!n||r?window.getComputedStyle(e):null,c=e.offsetWidth,s=e.offsetHeight,u="width"===t?c:s;n||(u-=parseFloat(a["padding"+o])+parseFloat(a["padding"+i])+parseFloat(a["border"+o+"Width"])+parseFloat(a["border"+i+"Width"]));r&&(u+=parseFloat(a["margin"+o])+parseFloat(a["margin"+i]));return u}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return 7*e+2*t+1}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return!(!i.default.isMoment(e)||!i.default.isMoment(t))&&(e.month()===t.month()&&e.year()===t.year())};var r,o=n(44),i=(r=o)&&r.__esModule?r:{default:r}},,,,,,function(e,t,n){"use strict";n.r(t),n.d(t,"SVG",(function(){return r.SVG})),n.d(t,"Path",(function(){return r.Path})),n.d(t,"Circle",(function(){return r.Circle})),n.d(t,"Polygon",(function(){return r.Polygon})),n.d(t,"Rect",(function(){return r.Rect})),n.d(t,"G",(function(){return r.G})),n.d(t,"HorizontalRule",(function(){return r.HorizontalRule})),n.d(t,"BlockQuotation",(function(){return r.BlockQuotation})),n.d(t,"__experimentalAlignmentMatrixControl",(function(){return ct})),n.d(t,"Animate",(function(){return st.a})),n.d(t,"__unstableUseAnimate",(function(){return st.b})),n.d(t,"AnglePickerControl",(function(){return Wr})),n.d(t,"Autocomplete",(function(){return Jr})),n.d(t,"BaseControl",(function(){return mt})),n.d(t,"__experimentalBoxControl",(function(){return gi})),n.d(t,"Button",(function(){return $r.a})),n.d(t,"ButtonGroup",(function(){return Oi})),n.d(t,"Card",(function(){return Li})),n.d(t,"CardBody",(function(){return Hi})),n.d(t,"CardDivider",(function(){return Vi})),n.d(t,"CardFooter",(function(){return Gi})),n.d(t,"CardHeader",(function(){return Zi})),n.d(t,"CardMedia",(function(){return Xi})),n.d(t,"CheckboxControl",(function(){return ea})),n.d(t,"ClipboardButton",(function(){return ta})),n.d(t,"__experimentalColorEdit",(function(){return Wa})),n.d(t,"ColorIndicator",(function(){return Ua})),n.d(t,"ColorPalette",(function(){return Ga})),n.d(t,"ColorPicker",(function(){return Ba})),n.d(t,"ComboboxControl",(function(){return tc})),n.d(t,"CustomSelectControl",(function(){return Zc})),n.d(t,"Dashicon",(function(){return Xc.a})),n.d(t,"DateTimePicker",(function(){return ls})),n.d(t,"DatePicker",(function(){return rs})),n.d(t,"TimePicker",(function(){return ss})),n.d(t,"__experimentalDimensionControl",(function(){return ms})),n.d(t,"Disabled",(function(){return ks})),n.d(t,"Draggable",(function(){return xs})),n.d(t,"DropZone",(function(){return Bs})),n.d(t,"__unstableUseDropZone",(function(){return Fs})),n.d(t,"DropZoneProvider",(function(){return Ls})),n.d(t,"Dropdown",(function(){return ca})),n.d(t,"DropdownMenu",(function(){return Js})),n.d(t,"ExternalLink",(function(){return tu})),n.d(t,"Flex",(function(){return kt})),n.d(t,"FlexBlock",(function(){return wt})),n.d(t,"FlexItem",(function(){return St})),n.d(t,"FocalPointPicker",(function(){return Iu})),n.d(t,"FocusableIframe",(function(){return Lu})),n.d(t,"FontSizePicker",(function(){return vl})),n.d(t,"FormFileUpload",(function(){return ml})),n.d(t,"FormToggle",(function(){return yl})),n.d(t,"FormTokenField",(function(){return xl})),n.d(t,"__experimentalGradientPicker",(function(){return ud})),n.d(t,"__experimentalCustomGradientPicker",(function(){return sd})),n.d(t,"Guide",(function(){return Pd})),n.d(t,"GuidePage",(function(){return Dd})),n.d(t,"Icon",(function(){return ds.a})),n.d(t,"IconButton",(function(){return Md})),n.d(t,"__experimentalInputControl",(function(){return Cr})),n.d(t,"KeyboardShortcuts",(function(){return ga})),n.d(t,"MenuGroup",(function(){return Td})),n.d(t,"MenuItem",(function(){return Rd})),n.d(t,"MenuItemsChoice",(function(){return Nd})),n.d(t,"Modal",(function(){return Sd})),n.d(t,"ScrollLock",(function(){return Ad.a})),n.d(t,"NavigableMenu",(function(){return qs})),n.d(t,"TabbableContainer",(function(){return Ld})),n.d(t,"__experimentalNavigation",(function(){return Xd})),n.d(t,"__experimentalNavigationBackButton",(function(){return Qd})),n.d(t,"__experimentalNavigationGroup",(function(){return nf})),n.d(t,"__experimentalNavigationItem",(function(){return cf})),n.d(t,"__experimentalNavigationMenu",(function(){return lf})),n.d(t,"Notice",(function(){return df})),n.d(t,"__experimentalNumberControl",(function(){return Lr})),n.d(t,"NoticeList",(function(){return ff})),n.d(t,"Panel",(function(){return bf})),n.d(t,"PanelBody",(function(){return yf})),n.d(t,"PanelHeader",(function(){return pf})),n.d(t,"PanelRow",(function(){return gf})),n.d(t,"Placeholder",(function(){return Of})),n.d(t,"Popover",(function(){return qr.a})),n.d(t,"QueryControls",(function(){return xf})),n.d(t,"__experimentalRadio",(function(){return Ff})),n.d(t,"__experimentalRadioGroup",(function(){return Wf})),n.d(t,"RadioControl",(function(){return Uf})),n.d(t,"RangeControl",(function(){return bl})),n.d(t,"ResizableBox",(function(){return Pp})),n.d(t,"ResponsiveWrapper",(function(){return Dp})),n.d(t,"SandBox",(function(){return Ip})),n.d(t,"SelectControl",(function(){return hs})),n.d(t,"Snackbar",(function(){return Rp.a})),n.d(t,"SnackbarList",(function(){return zp})),n.d(t,"Spinner",(function(){return Bp})),n.d(t,"TabPanel",(function(){return Vp})),n.d(t,"__experimentalText",(function(){return Zt})),n.d(t,"TextControl",(function(){return Ea})),n.d(t,"TextareaControl",(function(){return Zp})),n.d(t,"TextHighlight",(function(){return Xp})),n.d(t,"Tip",(function(){return Jp})),n.d(t,"ToggleControl",(function(){return Qp})),n.d(t,"Toolbar",(function(){return pb})),n.d(t,"ToolbarButton",(function(){return rb})),n.d(t,"__experimentalToolbarContext",(function(){return tb.a})),n.d(t,"ToolbarGroup",(function(){return sb})),n.d(t,"ToolbarItem",(function(){return eb.a})),n.d(t,"Tooltip",(function(){return C.a})),n.d(t,"__experimentalTreeGrid",(function(){return yb})),n.d(t,"__experimentalTreeGridRow",(function(){return gb})),n.d(t,"__experimentalTreeGridCell",(function(){return _b})),n.d(t,"__experimentalTreeGridItem",(function(){return wb})),n.d(t,"TreeSelect",(function(){return kf})),n.d(t,"__experimentalUnitControl",(function(){return yo})),n.d(t,"VisuallyHidden",(function(){return M})),n.d(t,"IsolatedEventContainer",(function(){return ld.a})),n.d(t,"createSlotFill",(function(){return kb.c})),n.d(t,"Slot",(function(){return kb.b})),n.d(t,"Fill",(function(){return kb.a})),n.d(t,"SlotFillProvider",(function(){return Sb.b})),n.d(t,"__experimentalUseSlot",(function(){return Eb.a})),n.d(t,"navigateRegions",(function(){return Cb})),n.d(t,"withConstrainedTabbing",(function(){return fd.a})),n.d(t,"withFallbackStyles",(function(){return Db})),n.d(t,"withFilters",(function(){return Ib})),n.d(t,"withFocusOutside",(function(){return nu.a})),n.d(t,"withFocusReturn",(function(){return dd.a})),n.d(t,"FocusReturnProvider",(function(){return Rb.b})),n.d(t,"withNotices",(function(){return Ub})),n.d(t,"withSpokenMessages",(function(){return Zr}));var r=n(7),o=n(8),i=n(12),a=n(14),c=n(0),s=n(2),u=n(9),l=n.n(u),d=n(52),f=n(122),p=n(15),b=n(51),h=n(50),v=n(13),m=n.n(v),y=n(63),g=n(59),O=n(67),j=Object(h.a)({name:"Group",compose:O.a,useProps:function(e,t){return Object(p.b)({role:"group"},t)}}),w=(Object(b.a)({as:"div",useHook:j}),n(96)),_=Object(h.a)({name:"CompositeGroup",compose:[j,w.a],useState:d.g,propsAreEqual:function(e,t){if(!t.id||e.id!==t.id)return j.unstable_propsAreEqual(e,t);var n=e.currentId,r=(e.unstable_moves,Object(p.a)(e,["currentId","unstable_moves"])),o=t.currentId,i=(t.unstable_moves,Object(p.a)(t,["currentId","unstable_moves"]));if(e.items&&t.items){var a=Object(d.d)(e.items,n),c=Object(d.d)(t.items,o),s=null==a?void 0:a.groupId,u=null==c?void 0:c.groupId;if(t.id===u||t.id===s)return!1}return j.unstable_propsAreEqual(r,i)},useProps:function(e,t){var n=t.ref,r=Object(p.a)(t,["ref"]),o=Object(v.useRef)(null),i=e.id;return Object(g.a)((function(){var t;if(i)return null===(t=e.registerGroup)||void 0===t||t.call(e,{id:i,ref:o}),function(){var t;null===(t=e.unregisterGroup)||void 0===t||t.call(e,i)}}),[i,e.registerGroup,e.unregisterGroup]),Object(p.b)({ref:Object(y.a)(o,n)},r)}}),k=Object(b.a)({as:"div",useHook:_}),S=n(1),E=n(10),x=n(123),C=n(84),P=n(5);function D(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var M=function(e){var t=e.as,n=void 0===t?"div":t,r=e.className,o=Object(a.a)(e,["as","className"]);return function(e){var t=e.as,n=void 0===t?"div":t,r=Object(a.a)(e,["as"]);return"function"==typeof r.children?r.children(r):Object(c.createElement)(n,r)}(function(e){for(var t=1;tr&&(r=(t=t.trim()).charCodeAt(0)),r){case 38:return t.replace(h,"$1"+e.trim());case 58:return e.trim()+t.replace(h,"$1"+e.trim());default:if(0<1*n&&0s.charCodeAt(8))break;case 115:a=a.replace(s,"-webkit-"+s)+";"+a;break;case 207:case 102:a=a.replace(s,"-webkit-"+(102c.charCodeAt(0)&&(c=c.trim()),c=[c],0p)&&(z=(V=V.replace(" ",":")).length),0=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)},J={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Q=/[A-Z]|^ms/g,ee=/_EMO_([^_]+?)_([^]*?)_EMO_/g,te=function(e){return 45===e.charCodeAt(1)},ne=function(e){return null!=e&&"boolean"!=typeof e},re=z((function(e){return te(e)?e:e.replace(Q,"-$&").toLowerCase()})),oe=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(ee,(function(e,t,n){return ae={name:t,styles:n,next:ae},t}))}return 1===J[e]||te(e)||"number"!=typeof t||0===t?t:t+"px"};function ie(e,t,n,r){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return ae={name:n.name,styles:n.styles,next:ae},n.name;if(void 0!==n.styles){var o=n.next;if(void 0!==o)for(;void 0!==o;)ae={name:o.name,styles:o.styles,next:ae},o=o.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o96?he:ve};function ye(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ge(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=we()(e).toRgb(),r=n.r,o=n.g,i=n.b;return"rgba(".concat(r,", ").concat(o,", ").concat(i,", ").concat(t,")")}function Le(e){return Object(s.get)(Ne,e,"#000")}function Fe(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"transition";switch(t){case"transition":e="transition-duration: 0ms;";break;case"animation":e="animation-duration: 1ms;";break;default:e="\n\t\t\t\tanimation-duration: 1ms;\n\t\t\t\ttransition-duration: 0ms;\n\t\t\t"}return"\n\t\t@media ( prefers-reduced-motion: reduce ) {\n\t\t\t".concat(e,";\n\t\t}\n\t")}var ze={name:"1xiracb",styles:"border-radius:2px;box-sizing:border-box;display:grid;grid-template-columns:repeat( 3,1fr );outline:none;"},Be=function(){return ze},He=Oe("div",{target:"e1od1u4s0",label:"Root"})(Be,";border:1px solid transparent;cursor:pointer;grid-template-columns:auto;",(function(e){var t=e.size,n=void 0===t?92:t;return fe("grid-template-rows:repeat( 3,calc( ",n,"px / 3 ) );width:",n,"px;")}),";"),Ve=Oe("div",{target:"e1od1u4s1",label:"Row"})({name:"1177s8r",styles:"box-sizing:border-box;display:grid;grid-template-columns:repeat( 3,1fr );"}),Ke=function(e){return fe("background:currentColor;box-sizing:border-box;display:grid;margin:auto;transition:all 120ms linear;",Fe("transition")," ",(t=e.isActive,n=t?"0 0 0 2px ".concat(Le("black")):null,r=Le(t?"black":"lightGray.800"),o=Le(t?"black":"blue.medium.focus"),fe("box-shadow:",n,";color:",r,";*:hover > &{color:",o,";}")),"");var t,n,r,o},We=Oe("span",{target:"e1od1u4s2",label:"Point"})("height:6px;width:6px;",Ke,""),Ue=Oe("span",{target:"e1od1u4s3",label:"Cell"})({name:"10ro24i",styles:"appearance:none;border:none;box-sizing:border-box;margin:0;display:flex;position:relative;outline:none;align-items:center;justify-content:center;padding:0;"});function Ge(e){var t=e.isActive,n=void 0!==t&&t,r=e.value,i=Object(a.a)(e,["isActive","value"]),s=I[r];return Object(c.createElement)(C.a,{text:s},Object(c.createElement)(x.a,Object(o.a)({as:Ue,role:"gridcell"},i),Object(c.createElement)(M,null,r),Object(c.createElement)(We,{isActive:n,role:"presentation"})))}var $e=new RegExp(/-left/g),qe=new RegExp(/-right/g),Ye=new RegExp(/Left/g),Ze=new RegExp(/Right/g);function Xe(){return!(!document||"rtl"!==document.documentElement.dir)}function Je(){return Xe()}function Qe(e){return"left"===e?"right":"right"===e?"left":$e.test(e)?e.replace($e,"-right"):qe.test(e)?e.replace(qe,"-left"):Ye.test(e)?e.replace(Ye,"Right"):Ze.test(e)?e.replace(Ze,"Left"):e}var et=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object(s.mapKeys)(e,(function(e,t){return Qe(t)}))};function tt(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return function(){var n=Xe();return fe(t?n?t:e:n?et(e):e,"")}}Oe("div",{target:"elqsdmc0",label:"Wrapper"})({name:"co61ta",styles:"box-sizing:border-box;padding:2px;"});var nt=Oe("div",{target:"elqsdmc1",label:"Root"})("transform-origin:top left;height:100%;width:100%;",Be,";",(function(){return fe({gridTemplateRows:"repeat( 3, calc( ".concat(21,"px / 3))"),padding:1.5,maxHeight:24,maxWidth:24},"")}),";",(function(e){var t=e.disablePointerEvents;return fe({pointerEvents:t?"none":null},"")}),";"),rt=Oe("span",{target:"elqsdmc2",label:"Point"})("height:2px;width:2px;",Ke,";",(function(e){var t=e.isActive;return fe("box-shadow:",t?"0 0 0 1px currentColor":null,";color:currentColor;*:hover > &{color:currentColor;}")}),";"),ot=Ue;function it(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function at(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:"center",t=N(e).replace("-"," "),n=R.indexOf(t);return n>-1?n:void 0}(p),v=(s/24).toFixed(2),m=l()("component-alignment-matrix-control-icon",t),y=at(at({},d),{},{transform:"scale(".concat(v,")")});return Object(c.createElement)(nt,Object(o.a)({},b,{className:m,disablePointerEvents:r,role:"presentation",size:s,style:y}),R.map((function(e,t){var n=h===t;return Object(c.createElement)(ot,{key:e},Object(c.createElement)(rt,{isActive:n}))})))};var st=n(124),ut={"default.fontFamily":"-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif","default.fontSize":"13px","helpText.fontSize":"12px",mobileTextMinFontSize:"16px"};function lt(e){return Object(s.get)(ut,e,"")}function dt(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return isNaN(e)?"".concat(8,"px"):"".concat(8*e,"px")}var ft=Oe("div",{target:"e1puf3u0",label:"Wrapper"})("font-family:",lt("default.fontFamily"),";font-size:",lt("default.fontSize"),";"),pt=Oe("div",{target:"e1puf3u1",label:"StyledField"})("margin-bottom:",dt(1),";.components-panel__row &{margin-bottom:inherit;}"),bt=Oe("label",{target:"e1puf3u2",label:"StyledLabel"})("display:inline-block;margin-bottom:",dt(1),";"),ht=Oe("p",{target:"e1puf3u3",label:"StyledHelp"})("margin-top:-",dt(1),";font-size:",lt("helpText.fontSize"),";font-style:normal;color:",Le("mediumGray.text"),";");function vt(e){var t=e.id,n=e.label,r=e.hideLabelFromVision,o=e.help,i=e.className,a=e.children;return Object(c.createElement)(ft,{className:l()("components-base-control",i)},Object(c.createElement)(pt,{className:"components-base-control__field"},n&&t&&(r?Object(c.createElement)(M,{as:"label",htmlFor:t},n):Object(c.createElement)(bt,{className:"components-base-control__label",htmlFor:t},n)),n&&!t&&(r?Object(c.createElement)(M,{as:"label"},n):Object(c.createElement)(vt.VisualLabel,null,n)),a),!!o&&Object(c.createElement)(ht,{id:t+"__help",className:"components-base-control__help"},o))}vt.VisualLabel=function(e){var t=e.className,n=e.children;return t=l()("components-base-control__label",t),Object(c.createElement)("span",{className:t},n)};var mt=vt;var yt={name:"8kj89b",styles:"flex-direction:row-reverse;"},gt=Oe("div",{target:"eboqfv50",label:"Flex"})("box-sizing:border-box;display:flex;width:100%;",(function(e){var t=e.align;return fe({alignItems:{top:"flex-start",bottom:"flex-end"}[t]||t},"")})," ",(function(e){var t=e.justify,n=e.isReversed,r={left:"flex-start",right:"flex-end"},o=r[t]||t;return n&&r[t]&&(o="left"===t?r.right:r.left),fe({justifyContent:o},"")})," ",(function(e){var t=e.gap,n=e.isReversed,r="number"==typeof t?4*t:4,o="margin-".concat(n?"left":"right");return fe("> *{",o,":",r,"px;&:last-child{",o,":0;}}")})," ",(function(e){return e.isReversed?yt:""}),""),Ot=Oe("div",{target:"eboqfv51",label:"Item"})({name:"13luw5d",styles:"box-sizing:border-box;min-width:0;max-width:100%;"}),jt=Oe(Ot,{target:"eboqfv52",label:"Block"})({name:"1rr4qq7",styles:"flex:1;"});var wt=Object(c.forwardRef)((function(e,t){var n=e.className,r=Object(a.a)(e,["className"]),i=l()("components-flex__block",n);return Object(c.createElement)(jt,Object(o.a)({},r,{className:i,ref:t}))}));var _t=Object(c.forwardRef)((function(e,t){var n=e.align,r=void 0===n?"center":n,i=e.className,s=e.gap,u=void 0===s?2:s,d=e.justify,f=void 0===d?"space-between":d,p=e.isReversed,b=void 0!==p&&p,h=Object(a.a)(e,["align","className","gap","justify","isReversed"]),v=l()("components-flex",i);return Object(c.createElement)(gt,Object(o.a)({},h,{align:r,className:v,ref:t,gap:u,justify:f,isReversed:b}))})),kt=_t;var St=Object(c.forwardRef)((function(e,t){var n=e.className,r=Object(a.a)(e,["className"]),i=l()("components-flex__item",n);return Object(c.createElement)(Ot,Object(o.a)({},r,{className:i,ref:t}))}));function Et(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var xt=fe;function Ct(){var e=Et(["\n\t","\n\t","\n"]);return Ct=function(){return e},e}function Pt(){var e=Et(["\n\t\t\t\t","\n\t\t\t\t","\n\t\t\t"]);return Pt=function(){return e},e}function Dt(){var e=Et(["\n\t\t\t\t","\n\t\t\t\t","\n\t\t\t"]);return Dt=function(){return e},e}function Mt(){var e=Et(["\n\t\t\t\t","\n\t\t\t"]);return Mt=function(){return e},e}function Tt(){var e=Et(["\n\t\t\t\t","\n\t\t\t\t","\n\t\t\t"]);return Tt=function(){return e},e}function It(){var e=Et(["\n\t\t\t\t","\n\t\t\t\t","\n\t\t\t"]);return It=function(){return e},e}function Rt(){var e=Et(["\n\t\t\t\t","\n\t\t\t\t","\n\t\t\t"]);return Rt=function(){return e},e}function Nt(){var e=Et(["\n\t\t\t\t","\n\t\t\t\t","\n\t\t\t"]);return Nt=function(){return e},e}function At(){var e=Et(["\n\t\t\t\t","\n\t\t\t\t","\n\t\t\t"]);return At=function(){return e},e}var Lt="\n ".concat("font-weight: 400;","\n"),Ft="\n\tfont-size: 32px;\n\tline-height: 40px;\n",zt="\n\tfont-size: 24px;\n\tline-height: 32px;\n",Bt="\n\tfont-size: 20px;\n\tline-height: 28px;\n",Ht="\n\t".concat("font-weight: 600;","\n\tfont-size: 14px;\n\tline-height: 20px;\n"),Vt="\n\t".concat("font-weight: 400;","\n"),Kt="\n\tfont-size: 16px;\n\tline-height: 24px;\n",Wt="\n\tfont-size: 14px;\n\tline-height: 20px;\n",Ut="\n ".concat("font-weight: 600;","\n font-size: 14px;\n line-height: 20px;\n"),Gt="\n\t".concat("font-weight: 400;","\n\tfont-size: 12px;\n\tline-height: 16px;\n"),$t="\n\t".concat("font-weight: 600;","\n\tfont-size: 12px;\n\tline-height: 16px;\n"),qt="\n\t".concat("font-weight: 500;","\n\tfont-size: 11px;\n\tline-height: 1.4;\n\ttext-transform: uppercase;\n\tcolor: ").concat(Ee.gray[700],"\n"),Yt=function(e){return xt(Ct(),'font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,\nOxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;',function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body";switch(e){case"title.large":return xt(At(),Lt,Ft);case"title.medium":return xt(Nt(),Lt,zt);case"title.small":return xt(Rt(),Lt,Bt);case"subtitle":return xt(It(),Ht,"\n\tfont-size: 16px;\n\tline-height: 24px;\n");case"subtitle.small":return xt(Tt(),Ht,"\n\tfont-size: 14px;\n\tline-height: 20px;\n");case"body":return xt(Mt(),Vt);case"body.large":return xt(Dt(),Vt,Kt);case"body.small":return xt(Pt(),Vt,Wt);case"button":return Ut;case"caption":return Gt;case"label":return $t;case"sectionheading":return qt}}(e.variant))},Zt=Oe("p",{target:"e15wbhsk0",label:"Text"})("\n\tbox-sizing: border-box;\n\tmargin: 0;\n",Yt,"");var Xt={name:"1dacand",styles:"padding-top:0;"},Jt=function(){return Xt},Qt={name:"r6z5ec",styles:"z-index:1;"},en=function(e){return e.isFocused?Qt:""},tn={name:"uz6002",styles:"align-items:flex-start;flex-direction:column;"},nn={name:"53hdd7",styles:"align-items:flex-start;flex-direction:column-reverse;"},rn={name:"x4dmss",styles:"justify-content:space-between;"},on=function(e){switch(e.labelPosition){case"top":return tn;case"bottom":return nn;case"edge":return rn;default:return""}},an=Oe(kt,{target:"e1cr7zh10",label:"Root"})("position:relative;border-radius:2px;",Jt," ",en," ",on,""),cn={name:"8atqhb",styles:"width:100%;"},sn=Oe("div",{target:"e1cr7zh11",label:"Container"})("align-items:center;box-sizing:border-box;border-radius:inherit;display:flex;flex:1;position:relative;",(function(e){var t=Le(e.disabled?"ui.backgroundDisabled":"ui.background");return fe({backgroundColor:t},"")})," ",(function(e){var t=e.__unstableInputWidth,n=e.labelPosition;return t?"side"===n?"":fe("edge"===n?{flex:"0 0 ".concat(t)}:{width:t},""):cn}),""),un={name:"103r1kr",styles:"&::-webkit-input-placeholder{line-height:normal;}"},ln=Oe("input",{target:"e1cr7zh12",label:"Input"})("&&&{background-color:transparent;box-sizing:border-box;border:none;box-shadow:none !important;color:",Le("black"),";display:block;margin:0;outline:none;padding-left:8px;padding-right:8px;width:100%;",(function(e){var t=e.isDragging,n=e.dragCursor,r="",o="";return t&&(r=fe("cursor:",n,";user-select:none;&::-webkit-outer-spin-button,&::-webkit-inner-spin-button{-webkit-appearance:none !important;margin:0 !important;}")),t&&n&&(o=fe("&:active{cursor:",n,";}")),fe(r," ",o,"")})," ",(function(e){return e.disabled?fe({color:Le("ui.textDisabled")},""):""})," ",(function(e){var t={default:"13px",small:"11px"}[e.size];return t?fe("font-size:","16px",";@media ( min-width:600px ){font-size:",t,";}"):""})," ",(function(e){var t=e.size,n={default:{height:30,lineHeight:1,minHeight:30},small:{height:24,lineHeight:1,minHeight:24}};return fe(n[t]||n.default,"")})," ",(function(){return un}),"}"),dn={name:"8uhtka",styles:"overflow:hidden;text-overflow:ellipsis;white-space:nowrap;"},fn=function(){return dn},pn=function(e){var t=e.labelPosition,n=4;return"edge"!==t&&"side"!==t||(n=0),fe({paddingTop:0,paddingBottom:n},"")},bn=Oe(Zt,{target:"e1cr7zh13",label:"BaseLabel"})("&&&{box-sizing:border-box;color:currentColor;display:block;margin:0;max-width:100%;z-index:1;",pn," ",fn,"}"),hn=function(e){return Object(c.createElement)(bn,Object(o.a)({},e,{as:"label"}))},vn=Oe(St,{target:"e1cr7zh14",label:"LabelWrapper"})({name:"120o8im",styles:"max-width:calc( 100% - 10px );"}),mn=Oe("div",{target:"e1cr7zh15",label:"BackdropUI"})("&&&{box-sizing:border-box;border-radius:inherit;bottom:0;left:0;margin:0;padding:0;pointer-events:none;position:absolute;right:0;top:0;",(function(e){var t=e.disabled,n=e.isFocused,r=Le(n?"ui.borderFocus":"ui.border"),o=null;return n&&(o="0 0 0 1px ".concat(Le("ui.borderFocus")," inset")),t&&(r=Le("ui.borderDisabled")),fe({boxShadow:o,borderColor:r,borderStyle:"solid",borderWidth:1},"")})," ",tt({paddingLeft:2}),"}"),yn=Oe("span",{target:"e1cr7zh16",label:"Prefix"})({name:"1pxuk39",styles:"box-sizing:border-box;display:block;"}),gn=Oe("span",{target:"e1cr7zh17",label:"Suffix"})({name:"1pxuk39",styles:"box-sizing:border-box;display:block;"});var On=Object(c.memo)((function(e){var t=e.disabled,n=void 0!==t&&t,r=e.isFocused,o=void 0!==r&&r;return Object(c.createElement)(mn,{"aria-hidden":"true",className:"components-input-control__backdrop",disabled:n,isFocused:o})}));function jn(e){var t=e.children,n=e.hideLabelFromVision,r=e.htmlFor,i=Object(a.a)(e,["children","hideLabelFromVision","htmlFor"]);return t?n?Object(c.createElement)(M,{as:"label",htmlFor:r},t):Object(c.createElement)(hn,Object(o.a)({htmlFor:r},i),t):null}function wn(e,t){var n=e.__unstableInputWidth,r=e.children,i=e.className,s=e.disabled,u=void 0!==s&&s,l=e.hideLabelFromVision,d=void 0!==l&&l,f=e.labelPosition,p=e.id,b=e.isFocused,h=void 0!==b&&b,v=e.label,m=e.prefix,y=e.size,g=void 0===y?"default":y,O=e.suffix,j=Object(a.a)(e,["__unstableInputWidth","children","className","disabled","hideLabelFromVision","labelPosition","id","isFocused","label","prefix","size","suffix"]),w=function(e){var t=Object(E.useInstanceId)(wn),n="input-base-control-".concat(t);return e||n}(p);return Object(c.createElement)(an,Object(o.a)({},j,{className:i,isFocused:h,labelPosition:f,ref:t}),Object(c.createElement)(vn,null,Object(c.createElement)(jn,{className:"components-input-control__label",hideLabelFromVision:d,labelPosition:f,htmlFor:w,size:g},v)),Object(c.createElement)(sn,{__unstableInputWidth:n,className:"components-input-control__container",disabled:u,isFocused:h,labelPosition:f},m&&Object(c.createElement)(yn,{className:"components-input-control__prefix"},m),r,O&&Object(c.createElement)(gn,{className:"components-input-control__suffix"},O),Object(c.createElement)(On,{"aria-hidden":"true",disabled:u,isFocused:h,label:v,size:g})))}var _n=Object(c.forwardRef)(wn);function kn(e,t){return e.map((function(e,n){return e+t[n]}))}function Sn(e,t){return e.map((function(e,n){return e-t[n]}))}function En(e,t,n){return n=n||Math.hypot.apply(Math,e),t?n/t:0}function xn(e,t){return t?e.map((function(e){return e/t})):Array(e.length).fill(0)}function Cn(e){return Math.hypot.apply(Math,e)}function Pn(e,t){return t=t||Math.hypot.apply(Math,e)||1,e.map((function(e){return e/t}))}function Dn(e,t,n){var r=Math.hypot.apply(Math,t);return{velocities:xn(t,n),velocity:En(t,n,r),distance:Cn(e),direction:Pn(t,r)}}function Mn(e){return Math.sign?Math.sign(e):Number(e>0)-Number(e<0)||+e}function Tn(e,t){return Math.abs(e)>=t&&Mn(e)*t}function In(e,t,n){return 0===t||Math.abs(t)===1/0?function(e,t){return Math.pow(e,5*t)}(e,n):e*t*n/(t+n*e)}function Rn(e,t,n,r){return void 0===r&&(r=.15),0===r?function(e,t,n){return Math.max(t,Math.min(e,n))}(e,t,n):en?In(e-n,n-t,r)+n:e}function Nn(e,t){for(var n=0;n=0||(o[n]=e[n]);return o}function zn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[t++]}};throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(t=e[Symbol.iterator]()).next.bind(t)}function Hn(){}var Vn=function(){for(var e=arguments.length,t=new Array(e),n=0;n0?t:n}return null}function Jn(e){var t="buttons"in e?e.buttons:0,n=Xn(e),r=n&&n.length||0;return An({touches:r,down:r>0||t>0,buttons:t},function(e){return{shiftKey:e.shiftKey,altKey:e.altKey,metaKey:e.metaKey,ctrlKey:e.ctrlKey}}(e))}function Qn(e){var t=Xn(e),n=t?t[0]:e;return{values:[n.clientX,n.clientY]}}var er=function(){var e=this;this.state=$n(),this.timeouts={},this.domListeners=[],this.windowListeners={},this.bindings={},this.clean=function(){e.resetBindings(),Object.values(e.timeouts).forEach(clearTimeout),Object.keys(e.windowListeners).forEach((function(t){return e.removeWindowListeners(t)}))},this.resetBindings=function(){e.bindings={};var t=e.getDomTarget();t&&(Zn(t,e.domListeners,e.config.eventOptions),e.domListeners=[])},this.getDomTarget=function(){var t=e.config.domTarget;return t&&"current"in t?t.current:t},this.addWindowListeners=function(t,n){e.config.window&&(e.windowListeners[t]=n,Yn(e.config.window,n,e.config.eventOptions))},this.removeWindowListeners=function(t){if(e.config.window){var n=e.windowListeners[t];n&&(Zn(e.config.window,n,e.config.eventOptions),delete e.windowListeners[t])}},this.addDomTargetListeners=function(t){Object.entries(e.bindings).forEach((function(t){var n=t[0],r=t[1];e.domListeners.push([n.substr(2).toLowerCase(),Vn.apply(void 0,r)])})),Yn(t,e.domListeners,e.config.eventOptions)},this.addBindings=function(t,n){(Array.isArray(t)?t:[t]).forEach((function(t){e.bindings[t]?e.bindings[t].push(n):e.bindings[t]=[n]}))},this.getBindings=function(){var t={},n=e.config.captureString;return Object.entries(e.bindings).forEach((function(e){var r=e[0],o=e[1],i=Array.isArray(o)?o:[o];t[r+n]=Vn.apply(void 0,i)})),t},this.getBind=function(){if(e.config.domTarget){var t=e.getDomTarget();return t&&e.addDomTargetListeners(t),e.clean}return e.getBindings()}};function tr(e,t,n,r){var o=m.a.useMemo((function(){var e=new er;return{nativeRefs:r,current:e,bind:function(){e.resetBindings();for(var n=arguments.length,r=new Array(n),i=0;i2?o-2:0),a=2;ad?"x":l0?(r.state._delayedEvent=!0,"function"==typeof e.persist&&e.persist(),r.setTimeout((function(){return r.startDrag(e)}),r.config.delay)):r.startDrag(e))},r.onDragChange=function(e){if(!r.state.canceled)if(r.state._active){var t=Jn(e);if(t.down){r.updateSharedState(t);var n=Qn(e).values,o=r.getKinematics(n,e),i=r.state._isTap;i&&Cn(o._movement)>=3&&(i=!1),r.updateGestureState(An(An(An({},r.getGenericPayload(e)),o),{},{_isTap:i,cancel:function(){return r.onCancel()}})),r.fireGestureHandler()}else r.onDragEnd(e)}else r.state._delayedEvent&&(r.clearTimeout(),r.startDrag(e))},r.onDragEnd=function(e){r.state._active=!1,r.updateSharedState({down:!1,buttons:0,touches:0});var t=r.state,n=t._isTap,o=t.values,i=t.velocities,a=i[0],c=i[1],s=t.movement,u=s[0],l=s[1],d=t._intentional,f=d[0],p=d[1],b=An(An({},r.getGenericPayload(e)),r.getMovement(o)),h=b.elapsedTime,v=r.config,m=v.swipeVelocity,y=m[0],g=m[1],O=v.swipeDistance,j=O[0],w=O[1],_=[0,0];h<220&&(!1!==f&&Math.abs(a)>y&&Math.abs(u)>j&&(_[0]=Mn(a)),!1!==p&&Math.abs(c)>g&&Math.abs(l)>w&&(_[1]=Mn(c))),r.updateGestureState(An(An({event:e},b),{},{tap:n,swipe:_})),r.fireGestureHandler(r.config.filterTaps&&r.state._isTap)},r.clean=function(){e.prototype.clean.call(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(r)),r.state._delayedEvent=!1,r.controller.config.pointer&&r.removePointers()},r.onCancel=function(){r.updateGestureState({canceled:!0,cancel:Hn}),r.state._active=!1,r.updateSharedState({down:!1,buttons:0,touches:0}),requestAnimationFrame((function(){return r.fireGestureHandler()}))},r}Ln(t,e);var n=t.prototype;return n.startDrag=function(e){var t=this,n=Qn(e).values;this.updateSharedState(Jn(e));var r=An(An({},this.getStartGestureState(n,e)),this.getGenericPayload(e,!0));this.updateGestureState(An(An(An({},r),this.getMovement(n,r)),{},{cancel:function(){return t.onCancel()}})),this.fireGestureHandler()},n.addBindings=function(){this.controller.config.pointer?(this.controller.addBindings("onPointerDown",this.onDragStart),this.controller.addBindings("onPointerMove",this.onDragChange),this.controller.addBindings(["onPointerUp","onPointerCancel"],this.onDragEnd)):this.controller.addBindings(["onTouchStart","onMouseDown"],this.onDragStart)},t}(rr),ir="undefined"!=typeof window?window:void 0,ar={lockDirection:!1,axis:void 0,bounds:void 0};function cr(e){void 0===e&&(e={});var t=e,n=t.eventOptions,r=(n=void 0===n?{}:n).passive,o=void 0===r||r,i=n.capture,a=void 0!==i&&i,c=n.pointer,s=void 0!==c&&c,u=t.window,l=void 0===u?ir:u,d=t.domTarget,f=void 0===d?void 0:d,p=t.enabled,b=void 0===p||p;return An(An({},Fn(t,["eventOptions","window","domTarget","enabled"])),{},{enabled:b,domTarget:f,window:l,eventOptions:{passive:!f||!!o,capture:!!a},captureString:a?"Capture":"",pointer:!!s})}function sr(e){var t=e.threshold,n=void 0===t?void 0:t,r=e.rubberband,o=void 0===r?0:r,i=e.enabled,a=void 0===i||i,c=e.initial;return"boolean"==typeof o&&(o=o?.15:0),void 0===n&&(n=0),{enabled:a,initial:void 0===c?[0,0]:c,threshold:Kn(n),rubberband:Kn(o)}}function ur(e){void 0===e&&(e={});var t=e,n=t.axis,r=t.lockDirection,o=t.bounds,i=void 0===o?{}:o,a=Fn(t,["axis","lockDirection","bounds"]),c=[[Wn(i.left,-1/0),Wn(i.right,1/0)],[Wn(i.top,-1/0),Wn(i.bottom,1/0)]];return An(An(An(An({},sr(a)),ar),Un({axis:n,lockDirection:r},e)),{},{bounds:c})}function lr(e){void 0===e&&(e={});var t=e,n=t.enabled,r=t.threshold,o=t.bounds,i=t.rubberband,a=t.initial,c=Fn(t,["enabled","threshold","bounds","rubberband","initial"]),s=c.swipeVelocity,u=void 0===s?.5:s,l=c.swipeDistance,d=void 0===l?60:l,f=c.delay,p=void 0!==f&&f,b=c.filterTaps,h=void 0!==b&&b,v=c.axis,m=c.lockDirection;void 0===r?r=Math.max(0,h?3:0,m||v?1:0):h=!0;var y=ur(Un({enabled:n,threshold:r,bounds:o,rubberband:i,axis:v,lockDirection:m,initial:a},e));return An(An({},y),{},{filterTaps:h||y.threshold[0]+y.threshold[1]>0,swipeVelocity:Kn(u),swipeDistance:Kn(d),delay:"number"==typeof p?p:p?180:0})}var dr=function(e){function t(t,n){var r;return(r=e.call(this,"move",t,n)||this).ingKey="moving",r.debounced=!0,r.moveShouldRun=function(){return r.enabled},r.onMove=function(e){r.moveShouldRun()&&(r.clearTimeout(),r.setTimeout(r.onMoveEnd),r.state._active?r.onMoveChange(e):r.onMoveStart(e))},r.onMoveStart=function(e){var t=Qn(e).values;r.updateSharedState(Jn(e));var n=An(An({},r.getStartGestureState(t,e)),r.getGenericPayload(e,!0));r.updateGestureState(An(An({},n),r.getMovement(t,n))),r.fireGestureHandler()},r.onMoveChange=function(e){var t=Jn(e);r.updateSharedState(t);var n=Qn(e).values,o=r.getKinematics(n,e);r.updateGestureState(An(An({},r.getGenericPayload(e)),o)),r.fireGestureHandler()},r.onMoveEnd=function(){r.state._active=!1,r.updateGestureState(An(An({},r.getMovement(r.state.values)),{},{velocities:[0,0],velocity:0})),r.fireGestureHandler()},r.onPointerEnter=function(e){if(r.controller.state.shared.hovering=!0,r.controller.config.enabled){if(r.controller.config.hover.enabled){var t=Qn(e).values,n=An(An(An(An({},r.controller.state.shared),r.state),r.getGenericPayload(e,!0)),{},{values:t,active:!0,hovering:!0});r.controller.handlers.hover(An(An({},n),r.mapStateValues(n)))}"move"in r.controller.handlers&&r.onMoveStart(e)}},r.onPointerLeave=function(e){if(r.controller.state.shared.hovering=!1,"move"in r.controller.handlers&&r.onMoveEnd(),r.controller.config.hover.enabled){var t=Qn(e).values,n=An(An(An(An({},r.controller.state.shared),r.state),r.getGenericPayload(e)),{},{values:t,active:!1});r.controller.handlers.hover(An(An({},n),r.mapStateValues(n)))}},r}return Ln(t,e),t.prototype.addBindings=function(){this.controller.config.pointer?("move"in this.controller.handlers&&this.controller.addBindings("onPointerMove",this.onMove),"hover"in this.controller.handlers&&(this.controller.addBindings("onPointerEnter",this.onPointerEnter),this.controller.addBindings("onPointerLeave",this.onPointerLeave))):("move"in this.controller.handlers&&this.controller.addBindings("onMouseMove",this.onMove),"hover"in this.controller.handlers&&(this.controller.addBindings("onMouseEnter",this.onPointerEnter),this.controller.addBindings("onMouseLeave",this.onPointerLeave)))},t}(rr);var fr=n(18);function pr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function br(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:vr,t=e.value;return br(br(br({},vr),e),{},{initialValue:t})}var Or=function(){for(var e=arguments.length,t=new Array(e),n=0;n0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1?arguments[1]:void 0;return null!==(e=t.find(wr))&&void 0!==e?e:n}var Sr=function(e,t){var n=Object(c.useRef)(!1);Object(c.useEffect)((function(){if(n.current)return e();n.current=!0}),t)};var Er=Object(c.forwardRef)((function(e,t){var n=e.disabled,r=void 0!==n&&n,u=e.dragDirection,l=void 0===u?"n":u,d=e.dragThreshold,f=void 0===d?10:d,p=e.id,b=e.isDragEnabled,h=void 0!==b&&b,v=e.isFocused,m=e.isPressEnterToChange,y=void 0!==m&&m,g=e.onBlur,O=void 0===g?s.noop:g,j=e.onChange,w=void 0===j?s.noop:j,_=e.onDrag,k=void 0===_?s.noop:_,S=e.onDragEnd,E=void 0===S?s.noop:S,x=e.onDragStart,C=void 0===x?s.noop:x,P=e.onFocus,D=void 0===P?s.noop:P,M=e.onKeyDown,T=void 0===M?s.noop:M,I=e.onValidate,R=void 0===I?s.noop:I,N=e.size,A=void 0===N?"default":N,L=e.setIsFocused,F=e.stateReducer,z=void 0===F?function(e){return e}:F,B=e.value,H=e.type,V=Object(a.a)(e,["disabled","dragDirection","dragThreshold","id","isDragEnabled","isFocused","isPressEnterToChange","onBlur","onChange","onDrag","onDragEnd","onDragStart","onFocus","onKeyDown","onValidate","size","setIsFocused","stateReducer","value","type"]),K=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:hr,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:vr,n=Object(c.useReducer)(jr(e),gr(t)),r=Object(i.a)(n,2),o=r[0],a=r[1],s=function(e){return function(t,n){n&&n.persist&&n.persist(),a({type:e,payload:{value:t,event:n}})}},u=function(e){return function(t){t&&t.persist&&t.persist(),a({type:e,payload:{event:t}})}},l=function(e){return function(t){a({type:e,payload:t})}},d=s(mr.CHANGE),f=s(mr.INVALIDATE),p=s(mr.RESET),b=s(mr.COMMIT),h=s(mr.UPDATE),v=l(mr.DRAG_START),m=l(mr.DRAG),y=l(mr.DRAG_END),g=u(mr.PRESS_UP),O=u(mr.PRESS_DOWN),j=u(mr.PRESS_ENTER);return{change:d,commit:b,dispatch:a,drag:m,dragEnd:y,dragStart:v,invalidate:f,pressDown:O,pressEnter:j,pressUp:g,reset:p,state:o,update:h}}(z,{isDragEnabled:h,value:B,isPressEnterToChange:y}),W=K.state,U=K.change,G=K.commit,$=K.drag,q=K.dragEnd,Y=K.dragStart,Z=K.invalidate,X=K.pressDown,J=K.pressEnter,Q=K.pressUp,ee=K.reset,te=K.update,ne=W._event,re=W.value,oe=W.isDragging,ie=W.isDirty,ae=Object(c.useRef)(!1),ce=function(e,t){var n=function(e){var t="ns-resize";switch(e){case"n":case"s":t="ns-resize";break;case"e":case"w":t="ew-resize"}return t}(t);return Object(c.useEffect)((function(){e?(document.documentElement.style.cursor=n,document.documentElement.style.pointerEvents="none"):(document.documentElement.style.cursor=null,document.documentElement.style.pointerEvents=null)}),[e]),n}(oe,l);Sr((function(){B!==re&&(v||ae.current?ie||(w(re,{event:ne}),ae.current=!1):te(B))}),[re,ie,v,B]);var se=function(e){var t=e.target.value;try{R(t,e),G(t,e)}catch(t){Z(t,e)}},ue=function(e,t){void 0===t&&(t={});var n=t,r=n.domTarget,o=n.eventOptions,i=n.window,a=Fn(n,["domTarget","eventOptions","window"]),c=An(An({},cr({domTarget:r,eventOptions:o,window:i})),{},{drag:lr(a)});return tr({drag:e},[or],c)}((function(e){var t=e.distance,n=e.dragging,r=e.event;if(t){if(r.stopPropagation(),!n)return E(e),void q(e);k(e),$(e),oe||(C(e),Y(e))}}),{threshold:f,enabled:h}),le=h?ue():{},de=le.onMouseDown,fe=le.onTouchStart,pe=de;return"number"===H&&(pe=function(e){e.target!==e.target.ownerDocument.activeElement&&e.target.focus(),h&&de(e)}),Object(c.createElement)(ln,Object(o.a)({},V,{className:"components-input-control__input",disabled:r,dragCursor:ce,isDragging:oe,id:p,onBlur:function(e){O(e),L(!1),y&&ie&&(ae.current=!0,_r(re)?ee(B):se(e))},onChange:function(e){var t=e.target.value;U(t,e)},onFocus:function(e){D(e),L(!0)},onKeyDown:function(e){var t=e.keyCode;switch(T(e),t){case fr.UP:Q(e);break;case fr.DOWN:X(e);break;case fr.ENTER:J(e),y&&(e.preventDefault(),se(e))}},onMouseDown:pe,onTouchStart:fe,ref:t,size:A,value:re,type:H}))}));function xr(e,t){var n=e.__unstableStateReducer,r=void 0===n?function(e){return e}:n,u=e.__unstableInputWidth,d=e.className,f=e.disabled,p=void 0!==f&&f,b=e.hideLabelFromVision,h=void 0!==b&&b,v=e.id,m=e.isPressEnterToChange,y=void 0!==m&&m,g=e.label,O=e.labelPosition,j=void 0===O?"top":O,w=e.onChange,_=void 0===w?s.noop:w,k=e.onValidate,S=void 0===k?s.noop:k,x=e.onKeyDown,C=void 0===x?s.noop:x,P=e.prefix,D=e.size,M=void 0===D?"default":D,T=e.suffix,I=e.value,R=Object(a.a)(e,["__unstableStateReducer","__unstableInputWidth","className","disabled","hideLabelFromVision","id","isPressEnterToChange","label","labelPosition","onChange","onValidate","onKeyDown","prefix","size","suffix","value"]),N=Object(c.useState)(!1),A=Object(i.a)(N,2),L=A[0],F=A[1],z=function(e){var t=Object(E.useInstanceId)(xr),n="inspector-input-control-".concat(t);return e||n}(v),B=l()("components-input-control",d);return Object(c.createElement)(_n,{__unstableInputWidth:u,className:B,disabled:p,gap:3,hideLabelFromVision:h,id:z,isFocused:L,justify:"left",label:g,labelPosition:j,prefix:P,size:M,suffix:T},Object(c.createElement)(Er,Object(o.a)({},R,{className:"components-input-control__input",disabled:p,id:z,isFocused:L,isPressEnterToChange:y,onChange:_,onKeyDown:C,onValidate:S,ref:t,setIsFocused:F,size:M,stateReducer:r,value:I})))}var Cr=Object(c.forwardRef)(xr);var Pr={name:"1b9wwt5",styles:"&::-webkit-outer-spin-button,&::-webkit-inner-spin-button{-webkit-appearance:none !important;margin:0 !important;}"},Dr=function(e){return e.hideHTMLArrows?Pr:""},Mr=Oe(Cr,{target:"ep48uk90",label:"Input"})(Dr,";");function Tr(e){var t=Number(e);return isNaN(t)?0:t}function Ir(){for(var e=arguments.length,t=new Array(e),n=0;n0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1/0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1/0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,o=Tr(e),i=Tr(r),a=Rr(r),c=Math.round(o/i)*i,u=Object(s.clamp)(c,t,n);return a?Tr(u.toFixed(a)):u}var Ar=function(e){var t=e.isShiftStepEnabled,n=void 0===t||t,r=e.shiftStep,o=void 0===r?10:r,a=e.step,s=void 0===a?1:a,u=Object(c.useState)(!1),l=Object(i.a)(u,2),d=l[0],f=l[1];return Object(c.useEffect)((function(){var e=function(e){f(e.shiftKey)};return window.addEventListener("keydown",e),window.addEventListener("keyup",e),function(){window.removeEventListener("keydown",e),window.removeEventListener("keyup",e)}}),[]),n&&d?o*s:s};var Lr=Object(c.forwardRef)((function(e,t){var n=e.__unstableStateReducer,r=void 0===n?function(e){return e}:n,s=e.className,u=e.dragDirection,d=void 0===u?"n":u,f=e.hideHTMLArrows,p=void 0!==f&&f,b=e.isDragEnabled,h=void 0===b||b,v=e.isShiftStepEnabled,m=void 0===v||v,y=e.label,g=e.max,O=void 0===g?1/0:g,j=e.min,w=void 0===j?-1/0:j,_=e.shiftStep,k=void 0===_?10:_,S=e.step,E=void 0===S?1:S,x=e.type,C=void 0===x?"number":x,P=e.value,D=Object(a.a)(e,["__unstableStateReducer","className","dragDirection","hideHTMLArrows","isDragEnabled","isShiftStepEnabled","label","max","min","shiftStep","step","type","value"]),M=Je(),T=Nr(0,w,O,E),I=Ar({step:E,shiftStep:k,isShiftStepEnabled:m}),R="number"===C?"off":null,N=l()("components-number-control",s);return Object(c.createElement)(Mr,Object(o.a)({autoComplete:R,inputMode:"numeric"},D,{className:N,dragDirection:d,hideHTMLArrows:p,isDragEnabled:h,label:y,max:O,min:w,ref:t,step:I,type:C,value:P,__unstableStateReducer:Or((function(e,t){var n=t.type,r=t.payload,o=null==r?void 0:r.event,a=e.value;if(n===yr.PRESS_UP||n===yr.PRESS_DOWN){var c=o.shiftKey&&m?parseFloat(k)*parseFloat(E):parseFloat(E),s=_r(a)?T:a;(null==o?void 0:o.preventDefault)&&o.preventDefault(),n===yr.PRESS_UP&&(s=Ir(s,c)),n===yr.PRESS_DOWN&&(s=function(){for(var e=arguments.length,t=new Array(e),n=0;n1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:10,r=[],o=0;o0?null:Object(c.createElement)(qr.a,{focusOnMount:!1,onClose:b,position:"top right",className:"components-autocomplete__popover",anchorRef:(n=window.getSelection(),n.rangeCount?n.getRangeAt(0):null)},Object(c.createElement)("div",{id:a,role:"listbox",className:"components-autocomplete__results"},Object(s.map)(v,(function(e,t){return Object(c.createElement)($r.a,{key:e.key,id:"components-autocomplete-item-".concat(o,"-").concat(e.key),role:"option","aria-selected":t===d,disabled:e.isDisabled,className:l()("components-autocomplete__result",u,{"is-selected":t===d}),onClick:function(){return p(e)}},e.label)}))))}};var Jr=Zr((function e(t){var n,r=t.children,o=t.isSelected,a=t.record,u=t.onChange,l=t.onReplace,d=t.completers,f=t.debouncedSpeak,p=Object(E.useInstanceId)(e),b=Object(c.useState)(0),h=Object(i.a)(b,2),v=h[0],m=h[1],y=Object(c.useState)([]),g=Object(i.a)(y,2),O=g[0],j=g[1],w=Object(c.useState)(""),_=Object(i.a)(w,2),k=_[0],x=_[1],C=Object(c.useState)(null),P=Object(i.a)(C,2),D=P[0],M=P[1],T=Object(c.useState)(null),I=Object(i.a)(T,2),R=I[0],N=I[1];function A(e){var t=(D||{}).getOptionCompletion;if(!e.isDisabled){if(t){var n=t(e.value,k),r=void 0===n.action||void 0===n.value?{action:"insert-at-caret",value:n}:n,o=r.action,i=r.value;"replace"===o?l([i]):"insert-at-caret"===o&&(s=i,d=a.start,f=d-D.triggerPrefix.length-k.length,p=Object(Gr.create)({html:Object(c.renderToString)(s)}),u(Object(Gr.insert)(a,p,f,d)))}var s,d,f,p;L()}}function L(){m(0),j([]),x(""),M(null),N(null)}Object(Gr.isCollapsed)(a)&&(n=Object(Gr.getTextContent)(Object(Gr.slice)(a,0))),Object(c.useEffect)((function(){if(n){var e=Object(s.deburr)(n),t=Object(Gr.getTextContent)(Object(Gr.slice)(a,void 0,Object(Gr.getTextContent)(a).length)),r=Object(s.find)(d,(function(n){var r=n.triggerPrefix,o=n.allowContext,i=e.lastIndexOf(r);return-1!==i&&(!(o&&!o(e.slice(0,i),t))&&/^\S*$/.test(e.slice(i+r.length)))}));if(r){var o=Object(s.escapeRegExp)(r.triggerPrefix),i=e.match(new RegExp("".concat(o,"(\\S*)$"))),c=i&&i[1];M(r),N((function(){return r!==D?Xr(r):R})),x(c)}else L()}}),[n]);var F=(O[v]||{}).key,z=void 0===F?"":F,B=(D||{}).className,H=!!D&&O.length>0,V=H?"components-autocomplete-listbox-".concat(p):null,K=H?"components-autocomplete-item-".concat(p,"-").concat(z):null;return Object(c.createElement)(c.Fragment,null,r({isExpanded:H,listBoxId:V,activeId:K,onKeyDown:function(e){if(D&&0!==O.length){switch(e.keyCode){case fr.UP:m((0===v?O.length:v)-1);break;case fr.DOWN:m((v+1)%O.length);break;case fr.ESCAPE:M(null),N(null);break;case fr.ENTER:A(O[v]);break;case fr.LEFT:case fr.RIGHT:return void L();default:return}e.preventDefault(),e.stopPropagation()}}}),o&&R&&Object(c.createElement)(R,{className:B,filterValue:k,instanceId:p,listBoxId:V,selectedIndex:v,onChangeOptions:function(e){m(e.length===O.length?v:0),j(e),function(e){f&&(e.length?f(Object(S.sprintf)(Object(S._n)("%d result found, use up and down arrow keys to navigate.","%d results found, use up and down arrow keys to navigate.",e.length),e.length),"assertive"):f(Object(S.__)("No results."),"assertive"))}(e)},onSelect:A}))}));var Qr=Oe("div",{target:"e1agakv00",label:"Root"})({name:"1bt0omd",styles:"box-sizing:border-box;position:relative;"}),eo=function(e){var t=e.disableUnits;return fe(tt({paddingRight:t?3:24})(),";")},to={name:"1y65o8",styles:"&::-webkit-outer-spin-button,&::-webkit-inner-spin-button{-webkit-appearance:none;margin:0;}"},no=function(e){return e.disableUnits?"":to},ro=Oe(Lr,{target:"e1agakv01",label:"ValueInput"})("&&&{input{appearance:none;-moz-appearance:textfield;display:block;width:100%;",no,";",eo,";}}"),oo=function(e){return fe("appearance:none;background:transparent;border-radius:2px;border:none;box-sizing:border-box;color:",Le("darkGray.500"),";display:block;font-size:8px;line-height:1;letter-spacing:-0.5px;outline:none;padding:2px 1px;position:absolute;text-align-last:center;text-transform:uppercase;width:20px;",tt({borderTopLeftRadius:0,borderBottomLeftRadius:0})()," ",tt({right:0})()," ",(t=e.size,fe({default:{height:28,lineHeight:"24px",minHeight:28,top:1},small:{height:22,lineHeight:"18px",minHeight:22,top:1}}[t],"")),"");var t},io=Oe("div",{target:"e1agakv02",label:"UnitLabel"})("&&&{pointer-events:none;",oo,";}"),ao=Oe("select",{target:"e1agakv03",label:"UnitSelect"})("&&&{",oo,";cursor:pointer;border:1px solid transparent;&:hover{background-color:",Le("lightGray.300"),";}&:focus{border-color:",Le("ui.borderFocus"),";outline:2px solid transparent;outline-offset:0;}&:disabled{cursor:initial;&:hover{background-color:transparent;}}}"),co=[{value:"px",label:"px",default:0},{value:"%",label:"%",default:10},{value:"em",label:"em",default:0},{value:"rem",label:"rem",default:0},{value:"vw",label:"vw",default:10},{value:"vh",label:"vh",default:10}],so=co[0];function uo(e){return!Object(s.isEmpty)(e)&&e.length>1&&!1!==e}function lo(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:co,n=String(e).trim(),r=parseFloat(n,10);r=isNaN(r)?"":r;var o=n.match(/[\d.\-\+]*\s*(.*)/)[1],i=void 0!==o?o:"";if(i=i.toLowerCase(),uo(t)){var a=t.find((function(e){return e.value===i}));i=null==a?void 0:a.value}else i=so.value;return[r,i]}function fo(e,t,n,r){var o,a,c=lo(e,t),s=Object(i.a)(c,2),u=s[0],l=s[1],d=u;((isNaN(u)||""===u)&&(d=n),o=l||r,uo(t)&&!o)&&(o=null===(a=t[0])||void 0===a?void 0:a.value);return[d,o]}function po(e){var t=e.className,n=e.isTabbable,r=void 0===n||n,i=e.options,u=void 0===i?co:i,d=e.onChange,f=void 0===d?s.noop:d,p=e.size,b=void 0===p?"default":p,h=e.value,v=void 0===h?"px":h,m=Object(a.a)(e,["className","isTabbable","options","onChange","size","value"]);if(!uo(u))return Object(c.createElement)(io,{className:"components-unit-control__unit-label",size:b},v);var y=l()("components-unit-control__select",t);return Object(c.createElement)(ao,Object(o.a)({className:y,onChange:function(e){var t=e.target.value,n=u.find((function(e){return e.value===t}));f(t,{event:e,data:n})},size:b,tabIndex:r?null:"-1",value:v},m),u.map((function(e){return Object(c.createElement)("option",{value:e.value,key:e.value},e.label)})))}function bo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ho(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:vo,n=ho(ho({},vo),t),r=n.initial,o=n.fallback,a=Object(c.useState)(e),s=Object(i.a)(a,2),u=s[0],l=s[1],d=wr(e);Object(c.useEffect)((function(){d&&u&&l(void 0)}),[d,u]);var f=kr([e,u,r],o),p=function(e){d||l(e)};return[f,p]};var yo=Object(c.forwardRef)((function(e,t){var n=e.__unstableStateReducer,r=void 0===n?function(e){return e}:n,u=e.autoComplete,d=void 0===u?"off":u,f=e.className,p=e.disabled,b=void 0!==p&&p,h=e.disableUnits,v=void 0!==h&&h,m=e.isPressEnterToChange,y=void 0!==m&&m,g=e.isResetValueOnUnitChange,O=void 0!==g&&g,j=e.isUnitSelectTabbable,w=void 0===j||j,_=e.label,k=e.onChange,S=void 0===k?s.noop:k,E=e.onUnitChange,x=void 0===E?s.noop:E,C=e.size,P=void 0===C?"default":C,D=e.style,M=e.unit,T=e.units,I=void 0===T?co:T,R=e.value,N=Object(a.a)(e,["__unstableStateReducer","autoComplete","className","disabled","disableUnits","isPressEnterToChange","isResetValueOnUnitChange","isUnitSelectTabbable","label","onChange","onUnitChange","size","style","unit","units","value"]),A=function(e,t,n){return lo(t?"".concat(e).concat(t):e,n)}(R,M,I),L=Object(i.a)(A,2),F=L[0],z=L[1],B=mo(M,{initial:z}),H=Object(i.a)(B,2),V=H[0],K=H[1],W=Object(c.useRef)(null),U=l()("components-unit-control",f),G=function(e){if(isNaN(e.target.value)){var t=fo(e.target.value,I,F,V),n=Object(i.a)(t,2),r=n[0],o=n[1];if(W.current=r,y&&o!==V){var a={event:e,data:I.find((function(e){return e.value===o}))};S("".concat(r).concat(o),a),x(o,a),K(o)}}else W.current=null},$=G,q=v?null:Object(c.createElement)(po,{disabled:b,isTabbable:w,options:I,onChange:function(e,t){var n=t.data,r="".concat(F).concat(e);O&&void 0!==(null==n?void 0:n.default)&&(r="".concat(n.default).concat(e)),S(r,t),x(e,t),K(e)},size:P,value:V});return Object(c.createElement)(Qr,{className:"components-unit-control-wrapper",style:D},Object(c.createElement)(ro,Object(o.a)({"aria-label":_,type:y?"text":"number"},Object(s.omit)(N,["children"]),{autoComplete:d,className:U,disabled:b,disableUnits:v,isPressEnterToChange:y,label:_,onBlur:$,onKeyDown:function(e){e.keyCode===fr.ENTER&&G(e)},onChange:function(e,t){""!==e?(e=fo(e,I,F,V).join(""),S(e,t)):S("",t)},ref:t,size:P,suffix:q,value:F,__unstableStateReducer:Or((function(e,t){return t.type===yr.COMMIT&&null!==W.current&&(e.value=W.current,W.current=null),e}),r)})))}));var go=Oe("div",{target:"e7pk0lh0",label:"Root"})({name:"vho1ao",styles:"box-sizing:border-box;max-width:235px;padding-bottom:12px;width:100%;"}),Oo=Oe(_t,{target:"e7pk0lh1",label:"Header"})("color:",Le("ui.label"),";padding-bottom:8px;"),jo=Oe(_t,{target:"e7pk0lh2",label:"HeaderControlWrapper"})({name:"19de7qh",styles:"min-height:30px;"}),wo=Oe("div",{target:"e7pk0lh3",label:"UnitControlWrapper"})({name:"zypm0w",styles:"box-sizing:border-box;max-width:80px;"}),_o=Oe(_t,{target:"e7pk0lh4",label:"LayoutContainer"})({name:"39f89t",styles:"justify-content:center;padding-top:8px;"}),ko=Oe(_t,{target:"e7pk0lh5",label:"Layout"})({name:"ojqyia",styles:"position:relative;height:100%;width:100%;"}),So={name:"icip60",styles:"border-radius:2px;"},Eo={name:"1k07npk",styles:"border-radius:0;"},xo=function(e){var t=e.isFirst,n=e.isLast,r=e.isOnly;return t?tt({borderTopRightRadius:0,borderBottomRightRadius:0})():n?tt({borderTopLeftRadius:0,borderBottomLeftRadius:0})():r?So:Eo},Co=function(e){return tt({marginLeft:e.isFirst?0:-1})()},Po=Oe(yo,{target:"e7pk0lh6",label:"UnitControl"})("max-width:60px;",xo,";",Co,";");function Do(e){var t=e.isFirst,n=e.isLast,r=e.isOnly,i=e.onHoverOn,u=void 0===i?s.noop:i,l=e.onHoverOff,d=void 0===l?s.noop:l,f=e.label,p=e.value,b=Object(a.a)(e,["isFirst","isLast","isOnly","onHoverOn","onHoverOff","label","value"]),h=function(e,t){void 0===t&&(t={});var n=t,r=n.domTarget,o=n.eventOptions,i=n.window,a=Fn(n,["domTarget","eventOptions","window"]),c=An(An({},cr({domTarget:r,eventOptions:o,window:i})),{},{hover:An({enabled:!0},a)});return tr({hover:e},[dr],c)}((function(e){var t=e.event,n=Object(a.a)(e,["event"]);n.hovering?u(t,n):d(t,n)}));return Object(c.createElement)(wo,Object(o.a)({"aria-label":f},h()),Object(c.createElement)(Mo,{text:f},Object(c.createElement)(Po,Object(o.a)({className:"component-box-control__unit-control",hideHTMLArrows:!0,isFirst:t,isLast:n,isOnly:r,isPressEnterToChange:!0,isResetValueOnUnitChange:!1,value:p},b))))}function Mo(e){var t=e.children,n=e.text;return n?Object(c.createElement)(C.a,{text:n,position:"top"},Object(c.createElement)("div",null,t)):t}var To={all:Object(S.__)("All"),top:Object(S.__)("Top"),bottom:Object(S.__)("Bottom"),left:Object(S.__)("Left"),right:Object(S.__)("Right"),mixed:Object(S.__)("Mixed")},Io={top:null,right:null,bottom:null,left:null},Ro={top:!1,right:!1,bottom:!1,left:!1};function No(e){return e.sort((function(t,n){return e.filter((function(e){return e===t})).length-e.filter((function(e){return e===n})).length})).pop()}function Ao(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=Object.values(e).map(lo),n=t.map((function(e){return e[0]})),r=t.map((function(e){return e[1]})),o=n.every((function(e){return e===n[0]}))?n[0]:"",i=No(r),a=Object(s.isNumber)(o)?"".concat(o).concat(i):null;return a}function Lo(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=Ao(e),n=isNaN(parseFloat(t));return n}function Fo(e){return void 0!==e&&!Object(s.isEmpty)(Object.values(e).filter(Boolean))}function zo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Bo(e){var t=e.onChange,n=void 0===t?s.noop:t,r=e.onFocus,i=void 0===r?s.noop:r,u=e.onHoverOn,l=void 0===u?s.noop:u,d=e.onHoverOff,f=void 0===d?s.noop:d,p=e.values,b=Object(a.a)(e,["onChange","onFocus","onHoverOn","onHoverOff","values"]),h=Ao(p),v=Fo(p)&&Lo(p),m=v?To.mixed:null;return Object(c.createElement)(Do,Object(o.a)({},b,{disableUnits:v,isOnly:!0,value:h,onChange:function(e){var t=function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};l(mi(mi({},Ro),e))},onHoverOff:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};l(mi(mi({},Ro),e))},isLinked:P,units:b,values:g});return Object(c.createElement)(go,{id:N,role:"region","aria-labelledby":A},Object(c.createElement)(Oo,{className:"component-box-control__header"},Object(c.createElement)(St,null,Object(c.createElement)(Zt,{id:A,className:"component-box-control__label"},f)),Object(c.createElement)(St,null,Object(c.createElement)($r.a,{className:"component-box-control__reset-button",isSecondary:!0,isSmall:!0,onClick:function(){var e=Io;a(e),y(e),k(!1)},disabled:!_},Object(S.__)("Reset")))),Object(c.createElement)(jo,{className:"component-box-control__header-control-wrapper"},Object(c.createElement)(St,null,Object(c.createElement)(Jo,{side:I})),P&&Object(c.createElement)(wt,null,Object(c.createElement)(Bo,L)),Object(c.createElement)(St,null,Object(c.createElement)(ni,{onClick:function(){D(!P),R(P?"top":"all")},isLinked:P}))),!P&&Object(c.createElement)(Vo,L))}gi.__Visualizer=function(e){var t=e.children,n=e.showValues,r=void 0===n?Ro:n,i=e.values,s=void 0===i?Io:i,u=Object(a.a)(e,["children","showValues","values"]),l=!t;return Object(c.createElement)(oi,Object(o.a)({},u,{isPositionAbsolute:l,"aria-hidden":"true"}),Object(c.createElement)(li,{showValues:r,values:s}),t)};var Oi=Object(c.forwardRef)((function(e,t){var n=e.className,r=Object(a.a)(e,["className"]),i=l()("components-button-group",n);return Object(c.createElement)("div",Object(o.a)({ref:t,role:"group",className:i},r))})),ji=Object(c.createContext)({}),wi=function(){return Object(c.useContext)(ji)},_i={borderColor:Le("lightGray.500"),borderRadius:"3px",backgroundShady:Le("lightGray.200")},ki=_i.borderColor,Si=_i.borderRadius,Ei=_i.backgroundShady,xi=Oe("div",{target:"e1q7k77g0",label:"CardUI"})("background:",Le("white"),";box-sizing:border-box;border-radius:",Si,";border:1px solid ",ki,";",Ri,";&.is-elevated{box-shadow:0px 1px 3px 0px rgba( 0,0,0,0.2 ),0px 1px 1px 0px rgba( 0,0,0,0.14 ),0px 2px 1px -1px rgba( 0,0,0,0.12 );}"),Ci=Oe(kt,{target:"e1q7k77g1",label:"HeaderUI"})("border-bottom:1px solid ",ki,";border-top-left-radius:",Si,";border-top-right-radius:",Si,";box-sizing:border-box;&:last-child{border-bottom:none;}",Ii,";",Ri,";",Ni,";"),Pi=Oe("div",{target:"e1q7k77g2",label:"MediaUI"})("box-sizing:border-box;overflow:hidden;& > img,& > iframe{display:block;height:auto;max-width:100%;width:100%;}&:first-of-type{border-top-left-radius:",Si,";border-top-right-radius:",Si,";}&:last-of-type{border-bottom-left-radius:",Si,";border-bottom-right-radius:",Si,";}"),Di=Oe("div",{target:"e1q7k77g3",label:"BodyUI"})("box-sizing:border-box;",(function(){return"\n\t\t&.is-size {\n\t\t\t&-large {\n\t\t\t\tpadding: ".concat(dt(3)," ").concat(dt(4),";\n\t\t\t}\n\t\t\t&-medium {\n\t\t\t\tpadding: ").concat(dt(2)," ").concat(dt(3),";\n\t\t\t}\n\t\t\t&-small {\n\t\t\t\tpadding: ").concat(dt(2),";\n\t\t\t}\n\t\t\t&-extraSmall {\n\t\t\t\tpadding: ").concat(dt(1),";\n\t\t\t}\n\t\t}\n\t")}),";",Ni,";"),Mi=Oe(kt,{target:"e1q7k77g4",label:"FooterUI"})("border-top:1px solid ",ki,";border-bottom-left-radius:",Si,";border-bottom-right-radius:",Si,";box-sizing:border-box;&:first-of-type{border-top:none;}",Ii,";",Ri,";",Ni,";"),Ti=Oe(r.HorizontalRule,{target:"e1q7k77g5",label:"DividerUI"})("all:unset;border-top:1px solid ",ki,";box-sizing:border-box;display:block;height:0;width:100%;");function Ii(){return"\n\t\t&.is-size {\n\t\t\t&-large {\n\t\t\t\tpadding: ".concat(dt(3)," ").concat(dt(4),";\n\t\t\t}\n\t\t\t&-medium {\n\t\t\t\tpadding: ").concat(dt(2)," ").concat(dt(3),";\n\t\t\t}\n\t\t\t&-small {\n\t\t\t\tpadding: ").concat(dt(2),";\n\t\t\t}\n\t\t\t&-extraSmall {\n\t\t\t\tpadding: ").concat(dt(1),";\n\t\t\t}\n\t\t}\n\t")}function Ri(){return"\n\t\t&.is-borderless {\n\t\t\tborder: none;\n\t\t}\n\t"}function Ni(){return"\n\t\t&.is-shady {\n\t\t\tbackground: ".concat(Ei,";\n\t\t}\n\t")}function Ai(e){var t=e.className,n=e.isBorderless,r=e.isElevated,i=e.size,s=Object(a.a)(e,["className","isBorderless","isElevated","size"]),u=ji.Provider,d={isBorderless:n,isElevated:r,size:i},f=l()("components-card",n&&"is-borderless",r&&"is-elevated",i&&"is-size-".concat(i),t);return Object(c.createElement)(u,{value:d},Object(c.createElement)(xi,Object(o.a)({},s,{className:f})))}Ai.defaultProps={isBorderless:!1,isElevated:!1,size:"medium"};var Li=Ai;function Fi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function zi(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.hex?we()(e.hex):we()(e),r=n.toHsl();r.h=Math.round(r.h),r.s=Math.round(100*r.s),r.l=Math.round(100*r.l);var o=n.toHsv();o.h=Math.round(o.h),o.s=Math.round(100*o.s),o.v=Math.round(100*o.v);var i=n.toRgb(),a=n.toHex();0===r.s&&(r.h=t||0,o.h=t||0);var c="000000"===a&&0===i.a;return{color:n,hex:c?"transparent":"#".concat(a),hsl:r,hsv:o,oldHue:e.h||t||r.h,rgb:i,source:e.source}}function va(e,t){e.preventDefault();var n=t.getBoundingClientRect(),r=n.left,o=n.top,i=n.width,a=n.height,c="number"==typeof e.pageX?e.pageX:e.touches[0].pageX,s="number"==typeof e.pageY?e.pageY:e.touches[0].pageY,u=c-(r+window.pageXOffset),l=s-(o+window.pageYOffset);return u<0?u=0:u>i?u=i:l<0?l=0:l>a&&(l=a),{top:l,left:u,width:i,height:a}}function ma(e){var t="#"===String(e).charAt(0)?1:0;return e.length!==4+t&&e.length<7+t&&we()(e).isValid()}function ya(e){var t=e.target,n=e.callback,r=e.shortcut,o=e.bindGlobal,i=e.eventName;return Object(E.useKeyboardShortcut)(r,n,{bindGlobal:o,target:t,eventName:i}),null}var ga=function(e){var t=e.children,n=e.shortcuts,r=e.bindGlobal,o=e.eventName,i=Object(c.useRef)(),a=Object(s.map)(n,(function(e,t){return Object(c.createElement)(ya,{key:t,shortcut:t,callback:e,bindGlobal:r,eventName:o,target:i})}));return c.Children.count(t)?Object(c.createElement)("div",{ref:i},a,t):a};function Oa(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(ba.a)(e);if(t){var o=Object(ba.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(pa.a)(this,n)}}var ja=function(e){Object(fa.a)(n,e);var t=Oa(n);function n(){var e;return Object(ua.a)(this,n),(e=t.apply(this,arguments)).container=Object(c.createRef)(),e.increase=e.increase.bind(Object(da.a)(e)),e.decrease=e.decrease.bind(Object(da.a)(e)),e.handleChange=e.handleChange.bind(Object(da.a)(e)),e.handleMouseDown=e.handleMouseDown.bind(Object(da.a)(e)),e.handleMouseUp=e.handleMouseUp.bind(Object(da.a)(e)),e}return Object(la.a)(n,[{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"increase",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:.01,t=this.props,n=t.hsl,r=t.onChange,o=void 0===r?s.noop:r;e=parseInt(100*e,10);var i={h:n.h,s:n.s,l:n.l,a:(parseInt(100*n.a,10)+e)/100,source:"rgb"};o(i)}},{key:"decrease",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:.01,t=this.props,n=t.hsl,r=t.onChange,o=void 0===r?s.noop:r,i=parseInt(100*n.a,10)-parseInt(100*e,10),a={h:n.h,s:n.s,l:n.l,a:n.a<=e?0:i/100,source:"rgb"};o(a)}},{key:"handleChange",value:function(e){var t=this.props.onChange,n=void 0===t?s.noop:t,r=function(e,t,n){var r=va(e,n),o=r.left,i=r.width,a=o<0?0:Math.round(100*o/i)/100;return t.hsl.a!==a?{h:t.hsl.h,s:t.hsl.s,l:t.hsl.l,a:a,source:"rgb"}:null}(e,this.props,this.container.current);r&&n(r,e)}},{key:"handleMouseDown",value:function(e){this.handleChange(e),window.addEventListener("mousemove",this.handleChange),window.addEventListener("mouseup",this.handleMouseUp)}},{key:"handleMouseUp",value:function(){this.unbindEventListeners()}},{key:"preventKeyEvents",value:function(e){e.keyCode!==fr.TAB&&e.preventDefault()}},{key:"unbindEventListeners",value:function(){window.removeEventListener("mousemove",this.handleChange),window.removeEventListener("mouseup",this.handleMouseUp)}},{key:"render",value:function(){var e=this,t=this.props.rgb,n="".concat(t.r,",").concat(t.g,",").concat(t.b),r={background:"linear-gradient(to right, rgba(".concat(n,", 0) 0%, rgba(").concat(n,", 1) 100%)")},o={left:"".concat(100*t.a,"%")},i={up:function(){return e.increase()},right:function(){return e.increase()},"shift+up":function(){return e.increase(.1)},"shift+right":function(){return e.increase(.1)},pageup:function(){return e.increase(.1)},end:function(){return e.increase(1)},down:function(){return e.decrease()},left:function(){return e.decrease()},"shift+down":function(){return e.decrease(.1)},"shift+left":function(){return e.decrease(.1)},pagedown:function(){return e.decrease(.1)},home:function(){return e.decrease(1)}};return Object(c.createElement)(ga,{shortcuts:i},Object(c.createElement)("div",{className:"components-color-picker__alpha"},Object(c.createElement)("div",{className:"components-color-picker__alpha-gradient",style:r}),Object(c.createElement)("div",{className:"components-color-picker__alpha-bar",ref:this.container,onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},Object(c.createElement)("div",{tabIndex:"0",role:"slider","aria-valuemax":"1","aria-valuemin":"0","aria-valuenow":t.a,"aria-orientation":"horizontal","aria-label":Object(S.__)("Alpha value, from 0 (transparent) to 1 (fully opaque)."),className:"components-color-picker__alpha-pointer",style:o,onKeyDown:this.preventKeyEvents}))))}}]),n}(c.Component),wa=Object(E.pure)(ja);function _a(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(ba.a)(e);if(t){var o=Object(ba.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(pa.a)(this,n)}}var ka=function(e){Object(fa.a)(n,e);var t=_a(n);function n(){var e;return Object(ua.a)(this,n),(e=t.apply(this,arguments)).container=Object(c.createRef)(),e.increase=e.increase.bind(Object(da.a)(e)),e.decrease=e.decrease.bind(Object(da.a)(e)),e.handleChange=e.handleChange.bind(Object(da.a)(e)),e.handleMouseDown=e.handleMouseDown.bind(Object(da.a)(e)),e.handleMouseUp=e.handleMouseUp.bind(Object(da.a)(e)),e}return Object(la.a)(n,[{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"increase",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=this.props,n=t.hsl,r=t.onChange,o=void 0===r?s.noop:r,i={h:n.h+e>=359?359:n.h+e,s:n.s,l:n.l,a:n.a,source:"rgb"};o(i)}},{key:"decrease",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=this.props,n=t.hsl,r=t.onChange,o=void 0===r?s.noop:r,i={h:n.h<=e?0:n.h-e,s:n.s,l:n.l,a:n.a,source:"rgb"};o(i)}},{key:"handleChange",value:function(e){var t=this.props.onChange,n=void 0===t?s.noop:t,r=function(e,t,n){var r=va(e,n),o=r.left,i=r.width,a=o>=i?359:360*(100*o/i)/100;return t.hsl.h!==a?{h:a,s:t.hsl.s,l:t.hsl.l,a:t.hsl.a,source:"rgb"}:null}(e,this.props,this.container.current);r&&n(r,e)}},{key:"handleMouseDown",value:function(e){this.handleChange(e),window.addEventListener("mousemove",this.handleChange),window.addEventListener("mouseup",this.handleMouseUp)}},{key:"handleMouseUp",value:function(){this.unbindEventListeners()}},{key:"preventKeyEvents",value:function(e){e.keyCode!==fr.TAB&&e.preventDefault()}},{key:"unbindEventListeners",value:function(){window.removeEventListener("mousemove",this.handleChange),window.removeEventListener("mouseup",this.handleMouseUp)}},{key:"render",value:function(){var e=this,t=this.props,n=t.hsl,r=void 0===n?{}:n,o=t.instanceId,i={left:"".concat(100*r.h/360,"%")},a={up:function(){return e.increase()},right:function(){return e.increase()},"shift+up":function(){return e.increase(10)},"shift+right":function(){return e.increase(10)},pageup:function(){return e.increase(10)},end:function(){return e.increase(359)},down:function(){return e.decrease()},left:function(){return e.decrease()},"shift+down":function(){return e.decrease(10)},"shift+left":function(){return e.decrease(10)},pagedown:function(){return e.decrease(10)},home:function(){return e.decrease(359)}};return Object(c.createElement)(ga,{shortcuts:a},Object(c.createElement)("div",{className:"components-color-picker__hue"},Object(c.createElement)("div",{className:"components-color-picker__hue-gradient"}),Object(c.createElement)("div",{className:"components-color-picker__hue-bar",ref:this.container,onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},Object(c.createElement)("div",{tabIndex:"0",role:"slider","aria-valuemax":"1","aria-valuemin":"359","aria-valuenow":r.h,"aria-orientation":"horizontal","aria-label":Object(S.__)("Hue value in degrees, from 0 to 359."),"aria-describedby":"components-color-picker__hue-description-".concat(o),className:"components-color-picker__hue-pointer",style:i,onKeyDown:this.preventKeyEvents}),Object(c.createElement)(M,{as:"p",id:"components-color-picker__hue-description-".concat(o)},Object(S.__)("Move the arrow left or right to change hue.")))))}}]),n}(c.Component),Sa=Object(E.compose)(E.pure,E.withInstanceId)(ka);function Ea(e){var t=e.label,n=e.hideLabelFromVision,r=e.value,i=e.help,s=e.className,u=e.onChange,l=e.type,d=void 0===l?"text":l,f=Object(a.a)(e,["label","hideLabelFromVision","value","help","className","onChange","type"]),p=Object(E.useInstanceId)(Ea),b="inspector-text-control-".concat(p);return Object(c.createElement)(mt,{label:t,hideLabelFromVision:n,id:b,help:i,className:s},Object(c.createElement)("input",Object(o.a)({className:"components-text-control__input",type:d,id:b,value:r,onChange:function(e){return u(e.target.value)},"aria-describedby":i?b+"__help":void 0},f)))}function xa(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(ba.a)(e);if(t){var o=Object(ba.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(pa.a)(this,n)}}var Ca=function(e){Object(fa.a)(n,e);var t=xa(n);function n(){var e;return Object(ua.a)(this,n),(e=t.apply(this,arguments)).handleBlur=e.handleBlur.bind(Object(da.a)(e)),e.handleChange=e.handleChange.bind(Object(da.a)(e)),e.handleKeyDown=e.handleKeyDown.bind(Object(da.a)(e)),e}return Object(la.a)(n,[{key:"handleBlur",value:function(){var e=this.props,t=e.value,n=e.valueKey;(0,e.onChange)({source:e.source,state:"commit",value:t,valueKey:n})}},{key:"handleChange",value:function(e){var t=this.props,n=t.valueKey,r=t.onChange,o=t.source;e.length>4&&ma(e)?r({source:o,state:"commit",value:e,valueKey:n}):r({source:o,state:"draft",value:e,valueKey:n})}},{key:"handleKeyDown",value:function(e){var t=e.keyCode;if(t===fr.ENTER||t===fr.UP||t===fr.DOWN){var n=this.props,r=n.value,o=n.valueKey;(0,n.onChange)({source:n.source,state:"commit",value:r,valueKey:o})}}},{key:"render",value:function(){var e=this,t=this.props,n=t.label,r=t.value,i=Object(a.a)(t,["label","value"]);return Object(c.createElement)(Ea,Object(o.a)({className:"components-color-picker__inputs-field",label:n,value:r,onChange:function(t){return e.handleChange(t)},onBlur:this.handleBlur,onKeyDown:this.handleKeyDown},Object(s.omit)(i,["onChange","valueKey","source"])))}}]),n}(c.Component),Pa=Object(E.pure)($r.a),Da=function(e){Object(fa.a)(n,e);var t=xa(n);function n(e){var r,o=e.hsl;Object(ua.a)(this,n),r=t.apply(this,arguments);var i=1===o.a?"hex":"rgb";return r.state={view:i},r.toggleViews=r.toggleViews.bind(Object(da.a)(r)),r.resetDraftValues=r.resetDraftValues.bind(Object(da.a)(r)),r.handleChange=r.handleChange.bind(Object(da.a)(r)),r.normalizeValue=r.normalizeValue.bind(Object(da.a)(r)),r}return Object(la.a)(n,[{key:"toggleViews",value:function(){"hex"===this.state.view?(this.setState({view:"rgb"},this.resetDraftValues),Object(Yr.speak)(Object(S.__)("RGB mode active"))):"rgb"===this.state.view?(this.setState({view:"hsl"},this.resetDraftValues),Object(Yr.speak)(Object(S.__)("Hue/saturation/lightness mode active"))):"hsl"===this.state.view&&(1===this.props.hsl.a?(this.setState({view:"hex"},this.resetDraftValues),Object(Yr.speak)(Object(S.__)("Hex color mode active"))):(this.setState({view:"rgb"},this.resetDraftValues),Object(Yr.speak)(Object(S.__)("RGB mode active"))))}},{key:"resetDraftValues",value:function(){return this.props.onChange({state:"reset"})}},{key:"normalizeValue",value:function(e,t){return"a"!==e?t:t<0?0:t>1?1:Math.round(100*t)/100}},{key:"handleChange",value:function(e){var t=e.source,n=e.state,r=e.value,o=e.valueKey;this.props.onChange({source:t,state:n,valueKey:o,value:this.normalizeValue(o,r)})}},{key:"renderFields",value:function(){var e=this.props.disableAlpha,t=void 0!==e&&e;if("hex"===this.state.view)return Object(c.createElement)("div",{className:"components-color-picker__inputs-fields"},Object(c.createElement)(Ca,{source:this.state.view,label:Object(S.__)("Color value in hexadecimal"),valueKey:"hex",value:this.props.hex,onChange:this.handleChange}));if("rgb"===this.state.view){var n=t?Object(S.__)("Color value in RGB"):Object(S.__)("Color value in RGBA");return Object(c.createElement)("fieldset",null,Object(c.createElement)(M,{as:"legend"},n),Object(c.createElement)("div",{className:"components-color-picker__inputs-fields"},Object(c.createElement)(Ca,{source:this.state.view,label:"r",valueKey:"r",value:this.props.rgb.r,onChange:this.handleChange,type:"number",min:"0",max:"255"}),Object(c.createElement)(Ca,{source:this.state.view,label:"g",valueKey:"g",value:this.props.rgb.g,onChange:this.handleChange,type:"number",min:"0",max:"255"}),Object(c.createElement)(Ca,{source:this.state.view,label:"b",valueKey:"b",value:this.props.rgb.b,onChange:this.handleChange,type:"number",min:"0",max:"255"}),t?null:Object(c.createElement)(Ca,{source:this.state.view,label:"a",valueKey:"a",value:this.props.rgb.a,onChange:this.handleChange,type:"number",min:"0",max:"1",step:"0.01"})))}if("hsl"===this.state.view){var r=t?Object(S.__)("Color value in HSL"):Object(S.__)("Color value in HSLA");return Object(c.createElement)("fieldset",null,Object(c.createElement)(M,{as:"legend"},r),Object(c.createElement)("div",{className:"components-color-picker__inputs-fields"},Object(c.createElement)(Ca,{source:this.state.view,label:"h",valueKey:"h",value:this.props.hsl.h,onChange:this.handleChange,type:"number",min:"0",max:"359"}),Object(c.createElement)(Ca,{source:this.state.view,label:"s",valueKey:"s",value:this.props.hsl.s,onChange:this.handleChange,type:"number",min:"0",max:"100"}),Object(c.createElement)(Ca,{source:this.state.view,label:"l",valueKey:"l",value:this.props.hsl.l,onChange:this.handleChange,type:"number",min:"0",max:"100"}),t?null:Object(c.createElement)(Ca,{source:this.state.view,label:"a",valueKey:"a",value:this.props.hsl.a,onChange:this.handleChange,type:"number",min:"0",max:"1",step:"0.05"})))}}},{key:"render",value:function(){return Object(c.createElement)("div",{className:"components-color-picker__inputs-wrapper"},this.renderFields(),Object(c.createElement)("div",{className:"components-color-picker__inputs-toggle-wrapper"},Object(c.createElement)(Pa,{className:"components-color-picker__inputs-toggle",icon:ia.a,label:Object(S.__)("Change color format"),onClick:this.toggleViews})))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return 1!==e.hsl.a&&"hex"===t.view?{view:"rgb"}:null}}]),n}(c.Component);function Ma(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(ba.a)(e);if(t){var o=Object(ba.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(pa.a)(this,n)}}var Ta=function(e){Object(fa.a)(n,e);var t=Ma(n);function n(e){var r;return Object(ua.a)(this,n),(r=t.call(this,e)).throttle=Object(s.throttle)((function(e,t,n){e(t,n)}),50),r.container=Object(c.createRef)(),r.saturate=r.saturate.bind(Object(da.a)(r)),r.brighten=r.brighten.bind(Object(da.a)(r)),r.handleChange=r.handleChange.bind(Object(da.a)(r)),r.handleMouseDown=r.handleMouseDown.bind(Object(da.a)(r)),r.handleMouseUp=r.handleMouseUp.bind(Object(da.a)(r)),r}return Object(la.a)(n,[{key:"componentWillUnmount",value:function(){this.throttle.cancel(),this.unbindEventListeners()}},{key:"saturate",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:.01,t=this.props,n=t.hsv,r=t.onChange,o=void 0===r?s.noop:r,i=Object(s.clamp)(n.s+Math.round(100*e),0,100),a={h:n.h,s:i,v:n.v,a:n.a,source:"rgb"};o(a)}},{key:"brighten",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:.01,t=this.props,n=t.hsv,r=t.onChange,o=void 0===r?s.noop:r,i=Object(s.clamp)(n.v+Math.round(100*e),0,100),a={h:n.h,s:n.s,v:i,a:n.a,source:"rgb"};o(a)}},{key:"handleChange",value:function(e){var t=this.props.onChange,n=void 0===t?s.noop:t,r=function(e,t,n){var r=va(e,n),o=r.top,i=r.left,a=r.width,c=r.height,s=i<0?0:100*i/a,u=o>=c?0:-100*o/c+100;return u<1&&(u=0),{h:t.hsl.h,s:s,v:u,a:t.hsl.a,source:"rgb"}}(e,this.props,this.container.current);this.throttle(n,r,e)}},{key:"handleMouseDown",value:function(e){this.handleChange(e),window.addEventListener("mousemove",this.handleChange),window.addEventListener("mouseup",this.handleMouseUp)}},{key:"handleMouseUp",value:function(){this.unbindEventListeners()}},{key:"preventKeyEvents",value:function(e){e.keyCode!==fr.TAB&&e.preventDefault()}},{key:"unbindEventListeners",value:function(){window.removeEventListener("mousemove",this.handleChange),window.removeEventListener("mouseup",this.handleMouseUp)}},{key:"render",value:function(){var e=this,t=this.props,n=t.hsv,r=t.hsl,o=t.instanceId,i={top:"".concat(100-n.v,"%"),left:"".concat(n.s,"%")},a={up:function(){return e.brighten()},"shift+up":function(){return e.brighten(.1)},pageup:function(){return e.brighten(1)},down:function(){return e.brighten(-.01)},"shift+down":function(){return e.brighten(-.1)},pagedown:function(){return e.brighten(-1)},right:function(){return e.saturate()},"shift+right":function(){return e.saturate(.1)},end:function(){return e.saturate(1)},left:function(){return e.saturate(-.01)},"shift+left":function(){return e.saturate(-.1)},home:function(){return e.saturate(-1)}};return Object(c.createElement)(ga,{shortcuts:a},Object(c.createElement)("div",{style:{background:"hsl(".concat(r.h,",100%, 50%)")},className:"components-color-picker__saturation-color",ref:this.container,onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange,role:"application"},Object(c.createElement)("div",{className:"components-color-picker__saturation-white"}),Object(c.createElement)("div",{className:"components-color-picker__saturation-black"}),Object(c.createElement)($r.a,{"aria-label":Object(S.__)("Choose a shade"),"aria-describedby":"color-picker-saturation-".concat(o),className:"components-color-picker__saturation-pointer",style:i,onKeyDown:this.preventKeyEvents}),Object(c.createElement)(M,{id:"color-picker-saturation-".concat(o)},Object(S.__)("Use your arrow keys to change the base color. Move up to lighten the color, down to darken, left to decrease saturation, and right to increase saturation."))))}}]),n}(c.Component),Ia=Object(E.compose)(E.pure,E.withInstanceId)(Ta);function Ra(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(ba.a)(e);if(t){var o=Object(ba.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(pa.a)(this,n)}}function Na(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Aa(e){for(var t=1;t-1&&this.props.scrollIntoView&&(this.scrollingIntoView=!0,Xa()(this.list.children[this.props.selectedIndex],this.list,{onlyScrollIfNeeded:!0}),this.props.setTimeout((function(){e.scrollingIntoView=!1}),100))}},{key:"bindList",value:function(e){this.list=e}},{key:"handleHover",value:function(e){var t=this;return function(){t.scrollingIntoView||t.props.onHover(e)}}},{key:"handleClick",value:function(e){var t=this;return function(){t.props.onSelect(e)}}},{key:"handleMouseDown",value:function(e){e.preventDefault()}},{key:"computeSuggestionMatch",value:function(e){var t=this.props.displayTransform(this.props.match||"").toLocaleLowerCase();if(0===t.length)return null;var n=(e=this.props.displayTransform(e)).toLocaleLowerCase().indexOf(t);return{suggestionBeforeMatch:e.substring(0,n),suggestionMatch:e.substring(n,n+t.length),suggestionAfterMatch:e.substring(n+t.length)}}},{key:"render",value:function(){var e=this;return Object(c.createElement)("ul",{ref:this.bindList,className:"components-form-token-field__suggestions-list",id:"components-form-token-suggestions-".concat(this.props.instanceId),role:"listbox"},Object(s.map)(this.props.suggestions,(function(t,n){var r=e.computeSuggestionMatch(t),o=l()("components-form-token-field__suggestion",{"is-selected":n===e.props.selectedIndex});return Object(c.createElement)("li",{id:"components-form-token-suggestions-".concat(e.props.instanceId,"-").concat(n),role:"option",className:o,key:e.props.displayTransform(t),onMouseDown:e.handleMouseDown,onClick:e.handleClick(t),onMouseEnter:e.handleHover(t),"aria-selected":n===e.props.selectedIndex},r?Object(c.createElement)("span",{"aria-label":e.props.displayTransform(t)},r.suggestionBeforeMatch,Object(c.createElement)("strong",{className:"components-form-token-field__suggestion-match"},r.suggestionMatch),r.suggestionAfterMatch):e.props.displayTransform(t))})))}}]),n}(c.Component);Qa.defaultProps={match:"",onHover:function(){},onSelect:function(){},suggestions:Object.freeze([])};var ec=Object(E.withSafeTimeout)(Qa);var tc=function e(t){var n,r=t.value,o=t.label,a=t.options,s=t.onChange,u=t.onFilterValueChange,d=t.hideLabelFromVision,f=t.help,p=t.allowReset,b=void 0===p||p,h=t.className,v=t.messages,m=void 0===v?{selected:Object(S.__)("Item selected.")}:v,y=Object(E.useInstanceId)(e),g=Object(c.useState)(null),O=Object(i.a)(g,2),j=O[0],w=O[1],_=Object(c.useState)(!1),k=Object(i.a)(_,2),x=k[0],C=k[1],P=Object(c.useState)(""),D=Object(i.a)(P,2),M=D[0],T=D[1],I=Object(c.useRef)(),R=a.find((function(e){return e.value===r})),N=null!==(n=null==R?void 0:R.label)&&void 0!==n?n:"",A=Object(c.useMemo)((function(){var e=[],t=[],n=M.toLocaleLowerCase();return a.forEach((function(r){var o=r.label.toLocaleLowerCase().indexOf(n);0===o?e.push(r):o>0&&t.push(r)})),e.concat(t)}),[M,a,r]),L=function(e){s(e.value),Object(Yr.speak)(m.selected,"assertive"),w(e),T(""),C(!1)},F=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=A.indexOf(j),n=t+e;n<0?n=A.length-1:n>=A.length&&(n=0),w(A[n]),C(!0)};return Object(c.useEffect)((function(){var e=A.length>0;if(x){var t=e?Object(S.sprintf)(Object(S._n)("%d result found, use up and down arrow keys to navigate.","%d results found, use up and down arrow keys to navigate.",A.length),A.length):Object(S.__)("No results.");Object(Yr.speak)(t,"assertive")}}),[A,x]),Object(c.createElement)(mt,{className:l()(h,"components-combobox-control"),tabIndex:"-1",label:o,id:"components-form-token-input-".concat(y),hideLabelFromVision:d,help:f},Object(c.createElement)("div",{className:"components-combobox-control__suggestions-container",tabIndex:"-1",onKeyDown:function(e){var t=!1;switch(e.keyCode){case fr.ENTER:j&&(L(j),t=!0);break;case fr.UP:F(-1),t=!0;break;case fr.DOWN:F(1),t=!0;break;case fr.ESCAPE:C(!1),w(null),t=!0,e.stopPropagation()}t&&e.preventDefault()}},Object(c.createElement)(_t,null,Object(c.createElement)(wt,null,Object(c.createElement)(Ya,{className:"components-combobox-control__input",instanceId:y,ref:I,value:x?M:N,onBlur:function(){C(!1)},onFocus:function(){C(!0),u(""),T("")},isExpanded:x,selectedSuggestionIndex:A.indexOf(j),onChange:function(e){var t=e.value;T(t),u(t),C(!0)}})),b&&Object(c.createElement)(St,null,Object(c.createElement)($r.a,{className:"components-combobox-control__reset",icon:$a.a,disabled:!r,onClick:function(){s(null),I.current.input.focus()},label:Object(S.__)("Reset")}))),x&&Object(c.createElement)(ec,{instanceId:y,match:{label:M},displayTransform:function(e){return e.label},suggestions:A,selectedIndex:A.indexOf(j),onHover:w,onSelect:L,scrollIntoView:!0})))},nc=n(43),rc=n(28),oc=n.n(rc);n(200);function ic(e){return null!=e&&"object"==typeof e&&1===e.nodeType}function ac(e,t){return(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e}function cc(e,t){if(e.clientHeightt||i>e&&a=t&&c>=n?i-e-r:a>t&&cn?a-t+o:0}var uc=0;function lc(e,t){e&&function(e,t){var n=window,r=t.scrollMode,o=t.block,i=t.inline,a=t.boundary,c=t.skipOverflowHiddenElements,s="function"==typeof a?a:function(e){return e!==a};if(!ic(e))throw new TypeError("Invalid target");for(var u=document.scrollingElement||document.documentElement,l=[],d=e;ic(d)&&s(d);){if((d=d.parentNode)===u){l.push(d);break}d===document.body&&cc(d)&&!cc(document.documentElement)||cc(d,c)&&l.push(d)}for(var f=n.visualViewport?n.visualViewport.width:innerWidth,p=n.visualViewport?n.visualViewport.height:innerHeight,b=window.scrollX||pageXOffset,h=window.scrollY||pageYOffset,v=e.getBoundingClientRect(),m=v.height,y=v.width,g=v.top,O=v.right,j=v.bottom,w=v.left,_="start"===o||"nearest"===o?g:"end"===o?j:g+m/2,k="center"===i?w+y/2:"end"===i?O:w,S=[],E=0;E=0&&w>=0&&j<=p&&O<=f&&g>=M&&j<=I&&w>=R&&O<=T)return S;var N=getComputedStyle(x),A=parseInt(N.borderLeftWidth,10),L=parseInt(N.borderTopWidth,10),F=parseInt(N.borderRightWidth,10),z=parseInt(N.borderBottomWidth,10),B=0,H=0,V="offsetWidth"in x?x.offsetWidth-x.clientWidth-A-F:0,K="offsetHeight"in x?x.offsetHeight-x.clientHeight-L-z:0;if(u===x)B="start"===o?_:"end"===o?_-p:"nearest"===o?sc(h,h+p,p,L,z,h+_,h+_+m,m):_-p/2,H="start"===i?k:"center"===i?k-f/2:"end"===i?k-f:sc(b,b+f,f,A,F,b+k,b+k+y,y),B=Math.max(0,B+h),H=Math.max(0,H+b);else{B="start"===o?_-M-L:"end"===o?_-I+z+K:"nearest"===o?sc(M,I,P,L,z+K,_,_+m,m):_-(M+P/2)+K/2,H="start"===i?k-R-A:"center"===i?k-(R+D/2)+V/2:"end"===i?k-T+F+V:sc(R,T,D,A,F+V,k,k+y,y);var W=x.scrollLeft,U=x.scrollTop;_+=U-(B=Math.max(0,Math.min(U+B,x.scrollHeight-P+K))),k+=W-(H=Math.max(0,Math.min(W+H,x.scrollWidth-D+V)))}S.push({el:x,top:B,left:H})}return S}(e,{boundary:t,block:"nearest",scrollMode:"if-needed"}).forEach((function(e){var t=e.el,n=e.top,r=e.left;t.scrollTop=n,t.scrollLeft=r}))}function dc(e,t){return e===t||e.contains&&e.contains(t)}function fc(e,t){var n;function r(){n&&clearTimeout(n)}function o(){for(var o=arguments.length,i=new Array(o),a=0;a1?n-1:0),o=1;o=37&&n<=40&&0!==t.indexOf("Arrow")?"Arrow"+t:t}function Oc(e,t,n,r,o){if(void 0===o&&(o=!0),0===n)return-1;var i=n-1;("number"!=typeof t||t<0||t>=n)&&(t=e>0?-1:i+1);var a=t+e;a<0?a=o?i:0:a>i&&(a=o?0:i);var c=jc(e,a,n,r,o);return-1===c?t>=n?-1:t:c}function jc(e,t,n,r,o){var i=r(t);if(!i||!i.hasAttribute("disabled"))return t;if(e>0){for(var a=t+1;a=0;c--)if(!r(c).hasAttribute("disabled"))return c;return o?e>0?jc(1,0,n,r,!1):jc(-1,n-1,n,r,!1):-1}function wc(e,t,n,r){return void 0===r&&(r=!0),t.some((function(t){return t&&(dc(t,e)||r&&dc(t,n.activeElement))}))}var _c=fc((function(){Sc().textContent=""}),500);function kc(e,t){var n=Sc(t);e&&(n.textContent=e,_c())}function Sc(e){void 0===e&&(e=document);var t=e.getElementById("a11y-status-message");return t||((t=e.createElement("div")).setAttribute("id","a11y-status-message"),t.setAttribute("role","status"),t.setAttribute("aria-live","polite"),t.setAttribute("aria-relevant","additions text"),Object.assign(t.style,{border:"0",clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:"0",position:"absolute",width:"1px"}),e.body.appendChild(t),t)}var Ec={highlightedIndex:-1,isOpen:!1,selectedItem:null,inputValue:""};function xc(e,t,n){var r=e.props,i=e.type,a={};Object.keys(t).forEach((function(e){!function(e,t,n,r){var o="on"+Tc(e)+"Change";t[o]&&void 0!==r[e]&&r[e]!==n[e]&&t[o](r)}(e,r,t,n),n[e]!==t[e]&&(a[e]=n[e])})),r.onStateChange&&Object.keys(a).length&&r.onStateChange(Object(o.a)({type:i},a))}var Cc=fc((function(e,t){kc(e(),t)}),200);function Pc(e){var t=e.id,n=e.labelId,r=e.menuId,o=e.getItemId,i=e.toggleButtonId,a=void 0===t?"downshift-"+hc():t;return{labelId:n||a+"-label",menuId:r||a+"-menu",getItemId:o||function(e){return a+"-item-"+e},toggleButtonId:i||a+"-toggle-button"}}function Dc(e,t,n){return void 0!==e?e:0===n.length?-1:n.indexOf(t)}function Mc(e){return/^\S{1}$/.test(e)}function Tc(e){return""+e.slice(0,1).toUpperCase()+e.slice(1)}function Ic(e){var t=Object(v.useRef)(e);return t.current=e,t}function Rc(e,t,n){var r=Object(v.useRef)(),i=Object(v.useRef)(),a=Object(v.useCallback)((function(t,n){i.current=n,t=mc(t,n.props);var r=e(t,n);return n.props.stateReducer(t,Object(o.a)({},n,{changes:r}))}),[e]),c=Object(v.useReducer)(a,t),s=c[0],u=c[1],l=Ic(n),d=Object(v.useCallback)((function(e){return u(Object(o.a)({props:l.current},e))}),[l]),f=i.current;return Object(v.useEffect)((function(){f&&r.current&&r.current!==s&&xc(f,mc(r.current,f.props),s),r.current=s}),[s,n,f]),[s,d]}function Nc(e,t,n){var r=Rc(e,t,n),o=r[0],i=r[1];return[mc(o,n),i]}var Ac={itemToString:function(e){return e?String(e):""},stateReducer:function(e,t){return t.changes},getA11ySelectionMessage:function(e){var t=e.selectedItem,n=e.itemToString;return t?n(t)+" has been selected.":""},scrollIntoView:lc,circularNavigation:!1,environment:"undefined"==typeof window?{}:window};function Lc(e,t,n){void 0===n&&(n=Ec);var r="default"+Tc(t);return r in e?e[r]:n[t]}function Fc(e,t,n){if(void 0===n&&(n=Ec),t in e)return e[t];var r="initial"+Tc(t);return r in e?e[r]:Lc(e,t,n)}function zc(e){var t=Fc(e,"selectedItem"),n=Fc(e,"isOpen"),r=Fc(e,"highlightedIndex"),o=Fc(e,"inputValue");return{highlightedIndex:r<0&&t&&n?e.items.indexOf(t):r,isOpen:n,selectedItem:t,inputValue:o}}function Bc(e,t,n,r){var o=e.items,i=e.initialHighlightedIndex,a=e.defaultHighlightedIndex,c=t.selectedItem,s=t.highlightedIndex;return 0===o.length?-1:void 0!==i&&s===i?i:void 0!==a?a:c?0===n?o.indexOf(c):Oc(n,o.indexOf(c),o.length,r,!1):0===n?-1:n<0?o.length-1:0}function Hc(e,t,n,r){var o=Object(v.useRef)({isMouseDown:!1,isTouchMove:!1});return Object(v.useEffect)((function(){var i=function(){o.current.isMouseDown=!0},a=function(i){o.current.isMouseDown=!1,e&&!wc(i.target,t.map((function(e){return e.current})),n.document)&&r()},c=function(){o.current.isTouchMove=!1},s=function(){o.current.isTouchMove=!0},u=function(i){!e||o.current.isTouchMove||wc(i.target,t.map((function(e){return e.current})),n.document,!1)||r()};return n.addEventListener("mousedown",i),n.addEventListener("mouseup",a),n.addEventListener("touchstart",c),n.addEventListener("touchmove",s),n.addEventListener("touchend",u),function(){n.removeEventListener("mousedown",i),n.removeEventListener("mouseup",a),n.removeEventListener("touchstart",c),n.removeEventListener("touchmove",s),n.removeEventListener("touchend",u)}}),[e,n]),o}function Vc(){for(var e=!1,t=Object(v.useRef)(!0),n=arguments.length,r=new Array(n),o=0;o=0&&{selectedItem:i.items[u]});break;case 13:n={highlightedIndex:Bc(i,e,1,t.getItemNodeFromIndex),isOpen:!0};break;case 14:n={highlightedIndex:Bc(i,e,-1,t.getItemNodeFromIndex),isOpen:!0};break;case 5:case 6:n=Object(o.a)({isOpen:Lc(i,"isOpen"),highlightedIndex:Lc(i,"highlightedIndex")},e.highlightedIndex>=0&&{selectedItem:i.items[e.highlightedIndex]});break;case 3:n={highlightedIndex:jc(1,0,i.items.length,t.getItemNodeFromIndex,!1)};break;case 4:n={highlightedIndex:jc(-1,i.items.length-1,i.items.length,t.getItemNodeFromIndex,!1)};break;case 2:case 8:n={isOpen:!1,highlightedIndex:-1};break;case 7:var l=t.key,d=""+e.inputValue+l,f=Kc(d,e.highlightedIndex,i.items,i.itemToString,t.getItemNodeFromIndex);n=Object(o.a)({inputValue:d},f>=0&&{highlightedIndex:f});break;case 0:n={highlightedIndex:Oc(a?5:1,e.highlightedIndex,i.items.length,t.getItemNodeFromIndex,i.circularNavigation)};break;case 1:n={highlightedIndex:Oc(a?-5:-1,e.highlightedIndex,i.items.length,t.getItemNodeFromIndex,i.circularNavigation)};break;case 9:n={highlightedIndex:-1};break;case 12:case 16:n={isOpen:!e.isOpen,highlightedIndex:e.isOpen?-1:Bc(i,e,0)};break;case 17:n={isOpen:!0,highlightedIndex:Bc(i,e,0)};break;case 18:n={isOpen:!1};break;case 19:n={highlightedIndex:t.highlightedIndex};break;case 20:n={selectedItem:t.selectedItem};break;case 21:n={inputValue:t.inputValue};break;case 22:n={highlightedIndex:Lc(i,"highlightedIndex"),isOpen:Lc(i,"isOpen"),selectedItem:Lc(i,"selectedItem"),inputValue:Lc(i,"inputValue")};break;default:throw new Error("Reducer called without proper action type.")}return Object(o.a)({},e,n)}function $c(e){void 0===e&&(e={});var t=Object(o.a)({},Wc,e),n=t.items,r=t.scrollIntoView,i=t.environment,a=t.initialIsOpen,c=t.defaultIsOpen,s=t.itemToString,u=t.getA11ySelectionMessage,l=t.getA11yStatusMessage,d=Nc(Gc,zc(t),t),f=d[0],p=d[1],b=f.isOpen,h=f.highlightedIndex,m=f.selectedItem,y=f.inputValue,g=Object(v.useRef)(null),O=Object(v.useRef)(null),j=Object(v.useRef)();j.current={};var w=Object(v.useRef)(!0),_=Object(v.useRef)(!0),k=Object(v.useRef)(null),S=Object(v.useRef)(Pc(t)),E=Object(v.useRef)(),x=Object(v.useRef)(!0),C=Object(v.useRef)(t),P=Ic({state:f,props:t}),D=function(e){return j.current[S.current.getItemId(e)]};Object(v.useEffect)((function(){if(!x.current){var e=E.current;Cc((function(){return l({isOpen:b,highlightedIndex:h,selectedItem:m,inputValue:y,highlightedItem:n[h],resultCount:n.length,itemToString:s,previousResultCount:e})}),i.document)}}),[b,h,y,n]),Object(v.useEffect)((function(){if(!x.current){var e=E.current;Cc((function(){return u({isOpen:b,highlightedIndex:h,selectedItem:m,inputValue:y,highlightedItem:n[h],resultCount:n.length,itemToString:s,previousResultCount:e})}),i.document)}}),[m]),Object(v.useEffect)((function(){x.current&&(k.current=fc((function(e){e({type:21,inputValue:""})}),500)),y&&k.current(p)}),[y]),Object(v.useEffect)((function(){x.current?(a||c||b)&&O.current&&O.current.focus():b?O.current&&O.current.focus():i.document.activeElement===O.current&&g.current&&(_.current=!1,g.current.focus())}),[b]),Object(v.useEffect)((function(){h<0||!b||!Object.keys(j.current).length||(!1===w.current?w.current=!0:r(D(h),O.current))}),[h]),Object(v.useEffect)((function(){x.current||(E.current=n.length)})),Object(v.useEffect)((function(){x.current||(C.current,C.current=t)}),[f,t]);var M=Hc(b,[O,g],i,(function(){p({type:8})})),T=Vc("getMenuProps","getToggleButtonProps");Object(v.useEffect)((function(){x.current=!1}),[]);var I=Object(v.useMemo)((function(){return{ArrowDown:function(e){e.preventDefault(),p({type:13,getItemNodeFromIndex:D,shiftKey:e.shiftKey})},ArrowUp:function(e){e.preventDefault(),p({type:14,getItemNodeFromIndex:D,shiftKey:e.shiftKey})}}}),[p]),R=Object(v.useMemo)((function(){return{ArrowDown:function(e){e.preventDefault(),p({type:0,getItemNodeFromIndex:D,shiftKey:e.shiftKey})},ArrowUp:function(e){e.preventDefault(),p({type:1,getItemNodeFromIndex:D,shiftKey:e.shiftKey})},Home:function(e){e.preventDefault(),p({type:3,getItemNodeFromIndex:D})},End:function(e){e.preventDefault(),p({type:4,getItemNodeFromIndex:D})},Escape:function(){p({type:2})},Enter:function(e){e.preventDefault(),p({type:5})}," ":function(e){e.preventDefault(),p({type:6})}}}),[p]),N=Object(v.useCallback)((function(){p({type:16})}),[p]),A=Object(v.useCallback)((function(){p({type:18})}),[p]),L=Object(v.useCallback)((function(){p({type:17})}),[p]),F=Object(v.useCallback)((function(e){p({type:19,highlightedIndex:e})}),[p]),z=Object(v.useCallback)((function(e){p({type:20,selectedItem:e})}),[p]),B=Object(v.useCallback)((function(){p({type:22})}),[p]),H=Object(v.useCallback)((function(e){p({type:21,inputValue:e})}),[p]),V=Object(v.useCallback)((function(e){return Object(o.a)({id:S.current.labelId,htmlFor:S.current.toggleButtonId},e)}),[]),K=Object(v.useCallback)((function(e,t){var n,r=void 0===e?{}:e,i=r.onMouseLeave,a=r.refKey,c=void 0===a?"ref":a,s=r.onKeyDown,u=r.onBlur,l=r.ref,d=Object(nc.a)(r,["onMouseLeave","refKey","onKeyDown","onBlur","ref"]),f=(void 0===t?{}:t).suppressRefError,b=void 0!==f&&f,h=P.current.state;return T("getMenuProps",b,c,O),Object(o.a)(((n={})[c]=bc(l,(function(e){O.current=e})),n.id=S.current.menuId,n.role="listbox",n["aria-labelledby"]=S.current.labelId,n.tabIndex=-1,n),h.isOpen&&h.highlightedIndex>-1&&{"aria-activedescendant":S.current.getItemId(h.highlightedIndex)},{onMouseLeave:pc(i,(function(){p({type:9})})),onKeyDown:pc(s,(function(e){var t=gc(e);t&&R[t]?R[t](e):Mc(t)&&p({type:7,key:t,getItemNodeFromIndex:D})})),onBlur:pc(u,(function(){!1!==_.current?!M.current.isMouseDown&&p({type:8}):_.current=!0}))},d)}),[p,P,R,M,T]);return{getToggleButtonProps:Object(v.useCallback)((function(e,t){var n,r=void 0===e?{}:e,i=r.onClick,a=r.onKeyDown,c=r.refKey,s=void 0===c?"ref":c,u=r.ref,l=Object(nc.a)(r,["onClick","onKeyDown","refKey","ref"]),d=(void 0===t?{}:t).suppressRefError,f=void 0!==d&&d,b=Object(o.a)(((n={})[s]=bc(u,(function(e){g.current=e})),n.id=S.current.toggleButtonId,n["aria-haspopup"]="listbox",n["aria-expanded"]=P.current.state.isOpen,n["aria-labelledby"]=S.current.labelId+" "+S.current.toggleButtonId,n),l);return l.disabled||(b.onClick=pc(i,(function(){p({type:12})})),b.onKeyDown=pc(a,(function(e){var t=gc(e);t&&I[t]?I[t](e):Mc(t)&&p({type:15,key:t,getItemNodeFromIndex:D})}))),T("getToggleButtonProps",f,s,g),b}),[p,P,I,T]),getLabelProps:V,getMenuProps:K,getItemProps:Object(v.useCallback)((function(e){var t,n=void 0===e?{}:e,r=n.item,i=n.index,a=n.onMouseMove,c=n.onClick,s=n.refKey,u=void 0===s?"ref":s,l=n.ref,d=Object(nc.a)(n,["item","index","onMouseMove","onClick","refKey","ref"]),f=P.current,b=f.state,h=f.props,v=Dc(i,r,h.items);if(v<0)throw new Error("Pass either item or item index in getItemProps!");var m=Object(o.a)(((t={role:"option","aria-selected":""+(v===b.highlightedIndex),id:S.current.getItemId(v)})[u]=bc(l,(function(e){e&&(j.current[S.current.getItemId(v)]=e)})),t),d);return d.disabled||(m.onMouseMove=pc(a,(function(){i!==b.highlightedIndex&&(w.current=!1,p({type:10,index:i}))})),m.onClick=pc(c,(function(){p({type:11,index:i})}))),m}),[p,P]),toggleMenu:N,openMenu:L,closeMenu:A,setHighlightedIndex:F,selectItem:z,reset:B,setInputValue:H,highlightedIndex:h,isOpen:b,selectedItem:m,inputValue:y}}$c.stateChangeTypes=Uc;oc.a.array.isRequired,oc.a.func,oc.a.func,oc.a.func,oc.a.bool,oc.a.number,oc.a.number,oc.a.number,oc.a.bool,oc.a.bool,oc.a.bool,oc.a.any,oc.a.any,oc.a.any,oc.a.string,oc.a.string,oc.a.string,oc.a.string,oc.a.string,oc.a.string,oc.a.func,oc.a.string,oc.a.string,oc.a.func,oc.a.func,oc.a.func,oc.a.func,oc.a.func,oc.a.func,oc.a.shape({addEventListener:oc.a.func,removeEventListener:oc.a.func,document:oc.a.shape({getElementById:oc.a.func,activeElement:oc.a.any,body:oc.a.any})});Object(o.a)({},Ac,{getA11yStatusMessage:vc,circularNavigation:!0});oc.a.array,oc.a.array,oc.a.array,oc.a.func,oc.a.func,oc.a.func,oc.a.number,oc.a.number,oc.a.number,oc.a.func,oc.a.func,oc.a.string,oc.a.string,oc.a.shape({addEventListener:oc.a.func,removeEventListener:oc.a.func,document:oc.a.shape({getElementById:oc.a.func,activeElement:oc.a.any,body:oc.a.any})});var qc=function(e){return e&&e.name},Yc=function(e,t){var n=e.selectedItem,r=t.type,o=t.changes,i=t.props.items;switch(r){case $c.stateChangeTypes.ToggleButtonKeyDownArrowDown:return{selectedItem:i[n?Math.min(i.indexOf(n)+1,i.length-1):0]};case $c.stateChangeTypes.ToggleButtonKeyDownArrowUp:return{selectedItem:i[n?Math.max(i.indexOf(n)-1,0):i.length-1]};default:return o}};function Zc(e){var t=e.className,n=e.hideLabelFromVision,r=e.label,i=e.options,a=e.onChange,s=e.value,u=$c({initialSelectedItem:i[0],items:i,itemToString:qc,onSelectedItemChange:a,selectedItem:s,stateReducer:Yc}),d=u.getLabelProps,f=u.getToggleButtonProps,p=u.getMenuProps,b=u.getItemProps,h=u.isOpen,v=u.highlightedIndex,m=u.selectedItem,y=p({className:"components-custom-select-control__menu","aria-hidden":!h});return y["aria-activedescendant"]&&"downshift-null"===y["aria-activedescendant"].slice(0,"downshift-null".length)&&delete y["aria-activedescendant"],Object(c.createElement)("div",{className:l()("components-custom-select-control",t)},n?Object(c.createElement)(M,Object(o.a)({as:"label"},d()),r):Object(c.createElement)("label",d({className:"components-custom-select-control__label"}),r),Object(c.createElement)($r.a,f({"aria-label":r,"aria-labelledby":void 0,className:"components-custom-select-control__button",isSmall:!0}),qc(m),Object(c.createElement)(Ji.a,{icon:ia.a,className:"components-custom-select-control__button-icon"})),Object(c.createElement)("ul",y,h&&i.map((function(e,t){return Object(c.createElement)("li",b({item:e,index:t,key:e.key,className:l()(e.className,"components-custom-select-control__item",{"is-highlighted":t===v}),style:e.style}),e===m&&Object(c.createElement)(Ji.a,{icon:Qi.a,className:"components-custom-select-control__item-icon"}),e.name)}))))}var Xc=n(150),Jc=(n(323),n(44)),Qc=n.n(Jc),es=n(286),ts=n.n(es);function ns(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(ba.a)(e);if(t){var o=Object(ba.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(pa.a)(this,n)}}var rs=function(e){Object(fa.a)(n,e);var t=ns(n);function n(){var e;return Object(ua.a)(this,n),(e=t.apply(this,arguments)).onChangeMoment=e.onChangeMoment.bind(Object(da.a)(e)),e.nodeRef=Object(c.createRef)(),e.keepFocusInside=e.keepFocusInside.bind(Object(da.a)(e)),e.isDayHighlighted=e.isDayHighlighted.bind(Object(da.a)(e)),e}return Object(la.a)(n,[{key:"keepFocusInside",value:function(){if(this.nodeRef.current&&(!document.activeElement||!this.nodeRef.current.contains(document.activeElement))){var e=this.nodeRef.current.querySelector(".DayPicker_focusRegion");if(!e)return;e.focus()}}},{key:"onChangeMoment",value:function(e){var t=this.props,n=t.currentDate,r=t.onChange,o=n?Qc()(n):Qc()(),i={hours:o.hours(),minutes:o.minutes(),seconds:0};r(e.set(i).format("YYYY-MM-DDTHH:mm:ss"))}},{key:"getMomentDate",value:function(e){return null===e?null:e?Qc()(e):Qc()()}},{key:"isDayHighlighted",value:function(e){var t;return!!(null===(t=this.props.events)||void 0===t?void 0:t.length)&&(this.props.onMonthPreviewed&&this.props.onMonthPreviewed(e.toDate()),this.props.events.some((function(t){return e.isSame(t.date,"day")})))}},{key:"render",value:function(){var e=this.props,t=e.currentDate,n=e.isInvalidDate,r=this.getMomentDate(t);return Object(c.createElement)("div",{className:"components-datetime__date",ref:this.nodeRef},Object(c.createElement)(ts.a,{date:r,daySize:30,focused:!0,hideKeyboardShortcutsPanel:!0,key:"datepicker-controller-".concat(r?r.format("MM-YYYY"):"null"),noBorder:!0,numberOfMonths:1,onDateChange:this.onChangeMoment,transitionDuration:0,weekDayFormat:"ddd",isRTL:"rtl"===document.documentElement.dir,isOutsideRange:function(e){return n&&n(e.toDate())},isDayHighlighted:this.isDayHighlighted,onPrevMonthClick:this.keepFocusInside,onNextMonthClick:this.keepFocusInside}))}}]),n}(c.Component),os=n(75),is=function(){var e=Object(os.__experimentalGetSettings)().timezone,t=(new Date).getTimezoneOffset()/60*-1;if(Number(e.offset)===t)return null;var n=e.offset>=0?"+":"",r=""!==e.abbr&&isNaN(e.abbr)?e.abbr:"UTC".concat(n).concat(e.offset),o="UTC"===e.string?Object(S.__)("Coordinated Universal Time"):"(".concat(r,") ").concat(e.string.replace("_"," "));return Object(c.createElement)(C.a,{position:"top center",text:o},Object(c.createElement)("div",{className:"components-datetime__timezone"},r))};function as(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function cs(e){var t=e.as,n=e.value,r=e.onUpdate,o=Object(a.a)(e,["as","value","onUpdate"]);return Object(c.createElement)(t||"input",function(e){for(var t=1;to.max||void 0!==o.min&&i700?(this.cloneWrapper.style.transform="scale(0.5)",this.cloneWrapper.style.transformOrigin="top left",this.cloneWrapper.style.top="".concat(e.clientY-100,"px"),this.cloneWrapper.style.left="".concat(e.clientX,"px")):(this.cloneWrapper.style.top="".concat(f-0,"px"),this.cloneWrapper.style.left="".concat(p-0,"px")),Array.from(h.querySelectorAll("iframe")).forEach((function(e){return e.parentNode.removeChild(e)})),this.cloneWrapper.appendChild(h)}d.appendChild(this.cloneWrapper),this.cursorLeft=e.clientX,this.cursorTop=e.clientY,document.body.classList.add("is-dragging-components-draggable"),document.addEventListener("dragover",this.onDragOver),e.persist(),this.props.setTimeout(a.bind(this,e))}else e.preventDefault()}},{key:"resetDragState",value:function(){document.removeEventListener("dragover",this.onDragOver),this.cloneWrapper&&this.cloneWrapper.parentNode&&(this.cloneWrapper.parentNode.removeChild(this.cloneWrapper),this.cloneWrapper=null),this.cursorLeft=null,this.cursorTop=null,document.body.classList.remove("is-dragging-components-draggable")}},{key:"render",value:function(){var e=this.props,t=e.children,n=e.__experimentalDragComponent;return Object(c.createElement)(c.Fragment,null,t({onDraggableStart:this.onDragStart,onDraggableEnd:this.onDragEnd}),n&&Object(c.createElement)("div",{className:"components-draggable-drag-component-root",style:{display:"none"},ref:this.dragComponentRef},n))}}]),n}(c.Component),xs=Object(E.withSafeTimeout)(Es),Cs=n(217),Ps=n(64),Ds=n.n(Ps);function Ms(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(ba.a)(e);if(t){var o=Object(ba.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(pa.a)(this,n)}}var Ts=Object(c.createContext)({addDropZone:function(){},removeDropZone:function(){}}),Is=Ts.Provider,Rs=Ts.Consumer,Ns=function(e){var t=e.dataTransfer;if(t){if(Object(s.includes)(t.types,"Files"))return"file";if(Object(s.includes)(t.types,"text/html"))return"html"}return"default"},As=function(e,t){return"file"===e&&t.onFilesDrop||"html"===e&&t.onHTMLDrop||"default"===e&&t.onDrop},Ls=function(e){Object(fa.a)(n,e);var t=Ms(n);function n(){var e;return Object(ua.a)(this,n),(e=t.apply(this,arguments)).onDragOver=e.onDragOver.bind(Object(da.a)(e)),e.onDrop=e.onDrop.bind(Object(da.a)(e)),e.addDropZone=e.addDropZone.bind(Object(da.a)(e)),e.removeDropZone=e.removeDropZone.bind(Object(da.a)(e)),e.resetDragState=e.resetDragState.bind(Object(da.a)(e)),e.toggleDraggingOverDocument=Object(s.throttle)(e.toggleDraggingOverDocument.bind(Object(da.a)(e)),200),e.dropZones=[],e.dropZoneCallbacks={addDropZone:e.addDropZone,removeDropZone:e.removeDropZone},e.state={hoveredDropZone:-1,isDraggingOverDocument:!1,position:null},e.ref=Object(c.createRef)(),e}return Object(la.a)(n,[{key:"componentDidMount",value:function(){var e=this.ref.current.ownerDocument.defaultView;e.addEventListener("dragover",this.onDragOver),e.addEventListener("mouseup",this.resetDragState),e.addEventListener("dragend",this.resetDragState)}},{key:"componentWillUnmount",value:function(){var e=this.ref.current.ownerDocument.defaultView;e.removeEventListener("dragover",this.onDragOver),e.removeEventListener("mouseup",this.resetDragState),e.removeEventListener("dragend",this.resetDragState)}},{key:"addDropZone",value:function(e){this.dropZones.push(e)}},{key:"removeDropZone",value:function(e){this.dropZones=Object(s.filter)(this.dropZones,(function(t){return t!==e}))}},{key:"resetDragState",value:function(){this.toggleDraggingOverDocument.cancel();var e=this.state,t=e.isDraggingOverDocument,n=e.hoveredDropZone;(t||-1!==n)&&(this.setState({hoveredDropZone:-1,isDraggingOverDocument:!1,position:null}),this.dropZones.forEach((function(e){return e.setState({isDraggingOverDocument:!1,isDraggingOverElement:!1,position:null,type:null})})))}},{key:"toggleDraggingOverDocument",value:function(e,t){var n=this,r=window.CustomEvent&&e instanceof window.CustomEvent?e.detail:e,o=Object(s.filter)(this.dropZones,(function(e){return As(t,e)&&(n=e.element.current,o=r.clientX,i=r.clientY,(a=n.getBoundingClientRect()).bottom!==a.top&&a.left!==a.right&&o>=a.left&&o<=a.right&&i>=a.top&&i<=a.bottom);var n,o,i,a})),i=Object(s.find)(o,(function(e){var t=e.isRelative?e.element.current.parentElement:e.element.current;return!Object(s.some)(o,(function(n){return n!==e&&t.contains(n.element.current)}))})),a=this.dropZones.indexOf(i),c=null;i&&i.withPosition&&(c={x:r.clientX,y:r.clientY});var u=[];this.state.isDraggingOverDocument?a!==this.state.hoveredDropZone?(-1!==this.state.hoveredDropZone&&u.push(this.dropZones[this.state.hoveredDropZone]),i&&u.push(i)):i&&a===this.state.hoveredDropZone&&!Object(s.isEqual)(c,this.state.position)&&u.push(i):u=this.dropZones,u.forEach((function(e){var r=n.dropZones.indexOf(e)===a;e.setState({isDraggingOverDocument:As(t,e),isDraggingOverElement:r,position:r?c:null,type:r?t:null})}));var l={isDraggingOverDocument:!0,hoveredDropZone:a,position:c};Ds()(l,this.state)||this.setState(l)}},{key:"onDragOver",value:function(e){this.toggleDraggingOverDocument(e,Ns(e)),e.preventDefault()}},{key:"onDrop",value:function(e){e.dataTransfer&&e.dataTransfer.files.length;var t=this.state,n=t.position,r=t.hoveredDropZone,o=Ns(e),i=this.dropZones[r];if(this.resetDragState(),i)switch(o){case"file":i.onFilesDrop(Object(Ur.a)(e.dataTransfer.files),n);break;case"html":i.onHTMLDrop(e.dataTransfer.getData("text/html"),n);break;case"default":i.onDrop(e,n)}e.stopPropagation(),e.preventDefault()}},{key:"render",value:function(){return Object(c.createElement)("div",{ref:this.ref,onDrop:this.onDrop,className:"components-drop-zone__provider"},Object(c.createElement)(Is,{value:this.dropZoneCallbacks},this.props.children))}}]),n}(c.Component);function Fs(e){var t=e.element,n=e.onFilesDrop,r=e.onHTMLDrop,o=e.onDrop,a=e.isDisabled,s=e.withPosition,u=e.__unstableIsRelative,l=void 0!==u&&u,d=Object(c.useContext)(Ts),f=d.addDropZone,p=d.removeDropZone,b=Object(c.useState)({isDraggingOverDocument:!1,isDraggingOverElement:!1,type:null}),h=Object(i.a)(b,2),v=h[0],m=h[1];return Object(c.useEffect)((function(){if(!a){var e={element:t,onDrop:o,onFilesDrop:n,onHTMLDrop:r,setState:m,withPosition:s,isRelative:l};return f(e),function(){p(e)}}}),[a,o,n,r,s]),v}function zs(e){var t,n=e.className,r=e.label,o=e.onFilesDrop,i=e.onHTMLDrop,a=e.onDrop,s=Object(c.useRef)(),u=Fs({element:s,onFilesDrop:o,onHTMLDrop:i,onDrop:a,__unstableIsRelative:!0}),d=u.isDraggingOverDocument,f=u.isDraggingOverElement,p=u.type;f&&(t=Object(c.createElement)("div",{className:"components-drop-zone__content"},Object(c.createElement)(Ji.a,{icon:Cs.a,className:"components-drop-zone__content-icon"}),Object(c.createElement)("span",{className:"components-drop-zone__content-text"},r||Object(S.__)("Drop files to upload"))));var b=l()("components-drop-zone",n,Object(P.a)({"is-active":(d||f)&&("file"===p&&o||"html"===p&&i||"default"===p&&a),"is-dragging-over-document":d,"is-dragging-over-element":f},"is-dragging-".concat(p),!!p));return Object(c.createElement)("div",{ref:s,className:b},t)}var Bs=function(e){return Object(c.createElement)(Rs,null,(function(t){var n=t.addDropZone,r=t.removeDropZone;return Object(c.createElement)(zs,Object(o.a)({addDropZone:n,removeDropZone:r},e))}))},Hs=n(36),Vs=n.n(Hs);function Ks(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(ba.a)(e);if(t){var o=Object(ba.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(pa.a)(this,n)}}var Ws=["menuitem","menuitemradio","menuitemcheckbox"];var Us=function(e){Object(fa.a)(n,e);var t=Ks(n);function n(){var e;return Object(ua.a)(this,n),(e=t.apply(this,arguments)).onKeyDown=e.onKeyDown.bind(Object(da.a)(e)),e.bindContainer=e.bindContainer.bind(Object(da.a)(e)),e.getFocusableContext=e.getFocusableContext.bind(Object(da.a)(e)),e.getFocusableIndex=e.getFocusableIndex.bind(Object(da.a)(e)),e}return Object(la.a)(n,[{key:"componentDidMount",value:function(){this.container.addEventListener("keydown",this.onKeyDown),this.container.addEventListener("focus",this.onFocus)}},{key:"componentWillUnmount",value:function(){this.container.removeEventListener("keydown",this.onKeyDown),this.container.removeEventListener("focus",this.onFocus)}},{key:"bindContainer",value:function(e){var t=this.props.forwardedRef;this.container=e,Object(s.isFunction)(t)?t(e):t&&"current"in t&&(t.current=e)}},{key:"getFocusableContext",value:function(e){var t=(this.props.onlyBrowserTabstops?ys.focus.tabbable:ys.focus.focusable).find(this.container),n=this.getFocusableIndex(t,e);return n>-1&&e?{index:n,target:e,focusables:t}:null}},{key:"getFocusableIndex",value:function(e,t){var n=e.indexOf(t);if(-1!==n)return n}},{key:"onKeyDown",value:function(e){this.props.onKeyDown&&this.props.onKeyDown(e);var t=this.getFocusableContext,n=this.props,r=n.cycle,o=void 0===r||r,i=n.eventToOffset,a=n.onNavigate,c=void 0===a?s.noop:a,u=n.stopNavigationEvents,l=i(e);if(void 0!==l&&u){e.stopImmediatePropagation();var d=e.target.getAttribute("role");Ws.includes(d)&&e.preventDefault()}if(l){var f=t(e.target.ownerDocument.activeElement);if(f){var p=f.index,b=f.focusables,h=o?function(e,t,n){var r=e+n;return r<0?t+r:r>=t?r-t:r}(p,b.length,l):p+l;h>=0&&h0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Zs(Zs({},e),t);return t.className&&e.className&&(n.className=l()(t.className,e.className)),n}var Js=function(e){var t,n=e.children,r=e.className,i=e.controls,a=e.icon,u=void 0===a?"menu":a,d=e.label,f=e.popoverProps,p=e.toggleProps,b=e.menuProps,h=e.disableOpenOnArrowDown,v=void 0!==h&&h,m=e.menuLabel,y=e.position,g=e.noIcons;if(m&&Vs()("`menuLabel` prop in `DropdownComponent`",{alternative:"`menuProps` object and its `aria-label` property",plugin:"Gutenberg"}),y&&Vs()("`position` prop in `DropdownComponent`",{alternative:"`popoverProps` object and its `position` property",plugin:"Gutenberg"}),Object(s.isEmpty)(i)&&!Object(s.isFunction)(n))return null;Object(s.isEmpty)(i)||(t=i,Array.isArray(t[0])||(t=[t]));var O=Xs({className:"components-dropdown-menu__popover",position:y},f);return Object(c.createElement)(ca,{className:l()("components-dropdown-menu",r),popoverProps:O,renderToggle:function(e){var t,n=e.isOpen,r=e.onToggle,i=Xs({className:l()("components-dropdown-menu__toggle",{"is-opened":n})},p);return Object(c.createElement)($r.a,Object(o.a)({},i,{icon:u,onClick:function(e){r(e),i.onClick&&i.onClick(e)},onKeyDown:function(e){!function(e){v||n||e.keyCode!==fr.DOWN||(e.preventDefault(),e.stopPropagation(),r())}(e),i.onKeyDown&&i.onKeyDown(e)},"aria-haspopup":"true","aria-expanded":n,label:d,showTooltip:null===(t=null==p?void 0:p.showTooltip)||void 0===t||t}),i.children)},renderContent:function(e){var r=Xs({"aria-label":m||d,className:l()("components-dropdown-menu__menu",{"no-icons":g})},b);return Object(c.createElement)(qs,Object(o.a)({},r,{role:"menu"}),Object(s.isFunction)(n)?n(e):null,Object(s.flatMap)(t,(function(t,n){return t.map((function(t,r){return Object(c.createElement)($r.a,{key:[n,r].join(),onClick:function(n){n.stopPropagation(),e.onClose(),t.onClick&&t.onClick()},className:l()("components-dropdown-menu__menu-item",{"has-separator":n>0&&0===r,"is-active":t.isActive}),icon:t.icon,"aria-checked":"menuitemcheckbox"===t.role||"menuitemradio"===t.role?t.isActive:void 0,role:"menuitemcheckbox"===t.role||"menuitemradio"===t.role?t.role:"menuitem",disabled:t.isDisabled},t.title)}))})))}})},Qs=n(427);var eu=Oe(Ji.a,{target:"etxm6pv0",label:"StyledIcon"})({name:"i8uvf3",styles:"width:1.4em;height:1.4em;margin:-0.2em 0.1em 0;vertical-align:middle;fill:currentColor;"});var tu=Object(c.forwardRef)((function(e,t){var n=e.href,r=e.children,i=e.className,u=e.rel,d=void 0===u?"":u,f=Object(a.a)(e,["href","children","className","rel"]);d=Object(s.uniq)(Object(s.compact)([].concat(Object(Ur.a)(d.split(" ")),["external","noreferrer","noopener"]))).join(" ");var p=l()("components-external-link",i);return Object(c.createElement)("a",Object(o.a)({},f,{className:p,href:n,target:"_blank",rel:d,ref:t}),r,Object(c.createElement)(M,{as:"span"},Object(S.__)("(opens in a new tab)")),Object(c.createElement)(eu,{icon:Qs.a,className:"components-external-link__icon"}))})),nu=n(113);var ru=Oe("div",{target:"e11wezi70",label:"MediaWrapper"})({name:"4wwkjz",styles:"background-color:transparent;box-sizing:border-box;text-align:center;width:100%;"}),ou=Oe("div",{target:"e11wezi71",label:"MediaContainer"})({name:"1q0l1fq",styles:"align-items:center;box-sizing:border-box;box-shadow:0 0 0 1px rgba( 0,0,0,0.2 );cursor:pointer;display:inline-flex;justify-content:center;margin:auto;position:relative;height:100%;img,video{box-sizing:border-box;display:block;height:auto;margin:0;max-height:100%;max-width:100%;pointer-events:none;user-select:none;width:auto;}"}),iu=Oe("div",{target:"e11wezi72",label:"MediaPlaceholder"})("background:",Le("lightGray.300"),";box-sizing:border-box;height:170px;max-width:280px;min-width:200px;width:100%;"),au=Oe(yo,{target:"e11wezi73",label:"UnitControl"})({name:"v7v99c",styles:"width:100px;"}),cu=Oe(kt,{target:"e11wezi74",label:"ControlWrapper"})({name:"lqoi1w",styles:"max-width:320px;padding:1em 0;"}),su=Oe("div",{target:"e11wezi75",label:"GridView"})("box-sizing:border-box;left:50%;opacity:0;overflow:hidden;pointer-events:none;position:absolute;top:50%;transform:translate3d( -50%,-50%,0 );transition:opacity 120ms linear;z-index:1;",(function(e){return e.isActive&&"\n\t\topacity: 1;\n\t"}),""),uu=Oe("div",{target:"e11wezi76",label:"GridLine"})({name:"18dz4sk",styles:"box-sizing:border-box;background:white;box-shadow:0 0 2px rgba( 0,0,0,0.6 );position:absolute;opacity:0.4;transform:translateZ( 0 );"}),lu=Oe(uu,{target:"e11wezi77",label:"GridLineX"})({name:"1u4twh6",styles:"height:1px;left:0;right:0;"}),du=Oe(uu,{target:"e11wezi78",label:"GridLineY"})({name:"13gvipf",styles:"width:1px;top:0;bottom:0;"}),fu={top:0,left:0,bottom:0,right:0,width:0,height:0},pu=["avi","mpg","mpeg","mov","mp4","m4v","ogg","ogv","webm","wmv"];function bu(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=e.split(".");return t[t.length-1]}function hu(e){return Math.round(100*e)}function vu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function mu(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:"";return!!e&&pu.includes(bu(e))}(r)?Object(c.createElement)("video",Object(o.a)({},p,{autoPlay:n,className:"components-focal-point-picker__media components-focal-point-picker__media--video",loop:!0,muted:f,onLoadedData:u,ref:l,src:r})):Object(c.createElement)("img",Object(o.a)({},p,{alt:t,className:"components-focal-point-picker__media components-focal-point-picker__media--image",onLoad:u,ref:l,src:r})):Object(c.createElement)(Du,{className:"components-focal-point-picker__media components-focal-point-picker__media--placeholder",onLoad:u,mediaRef:l})}function Du(e){var t=e.mediaRef,n=e.onLoad,r=void 0===n?s.noop:n,i=Object(a.a)(e,["mediaRef","onLoad"]),u=Object(c.useRef)(r);return Object(c.useLayoutEffect)((function(){window.requestAnimationFrame((function(){u.current()}))}),[]),Object(c.createElement)(iu,Object(o.a)({ref:t},i))}function Mu(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(ba.a)(e);if(t){var o=Object(ba.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(pa.a)(this,n)}}var Tu=function(e){Object(fa.a)(n,e);var t=Mu(n);function n(e){var r;return Object(ua.a)(this,n),(r=t.apply(this,arguments)).state={isDragging:!1,bounds:fu,percentages:e.value},r.containerRef=Object(c.createRef)(),r.mediaRef=Object(c.createRef)(),r.handleOnClick=r.handleOnClick.bind(Object(da.a)(r)),r.handleOnMouseUp=r.handleOnMouseUp.bind(Object(da.a)(r)),r.handleOnKeyDown=r.handleOnKeyDown.bind(Object(da.a)(r)),r.onMouseMove=r.onMouseMove.bind(Object(da.a)(r)),r.updateBounds=r.updateBounds.bind(Object(da.a)(r)),r.updateValue=r.updateValue.bind(Object(da.a)(r)),r}return Object(la.a)(n,[{key:"componentDidMount",value:function(){document.addEventListener("mouseup",this.handleOnMouseUp),window.addEventListener("resize",this.updateBounds)}},{key:"componentDidUpdate",value:function(e){e.url!==this.props.url&&this.setState({isDragging:!1}),this.props.value.x===this.state.percentages.x&&this.props.value.y===this.state.percentages.y||this.setState({percentages:this.props.value})}},{key:"componentWillUnmount",value:function(){document.removeEventListener("mouseup",this.handleOnMouseUp),window.removeEventListener("resize",this.updateBounds)}},{key:"calculateBounds",value:function(){var e=fu;if(!this.mediaRef.current)return e;var t=this.mediaRef.current.clientWidth,n=this.mediaRef.current.clientHeight,r=this.pickerDimensions(),o=r.width/t,i=r.height/n;return i>=o?(e.width=e.right=r.width,e.height=n*o,e.top=(r.height-e.height)/2,e.bottom=e.top+e.height):(e.height=e.bottom=r.height,e.width=t*i,e.left=(r.width-e.width)/2,e.right=e.left+e.width),e}},{key:"updateValue",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this.props.onChange,n=e.x,r=e.y,o={x:parseFloat(n).toFixed(2),y:parseFloat(r).toFixed(2)};this.setState({percentages:o},(function(){t(o)}))}},{key:"updateBounds",value:function(){this.setState({bounds:this.calculateBounds()})}},{key:"handleOnClick",value:function(e){var t=this;e.persist(),this.setState({isDragging:!0},(function(){t.onMouseMove(e)}))}},{key:"handleOnMouseUp",value:function(){this.setState({isDragging:!1})}},{key:"handleOnKeyDown",value:function(e){var t=e.keyCode,n=e.shiftKey;if([fr.UP,fr.DOWN,fr.LEFT,fr.RIGHT].includes(t)){var r=this.state.percentages,o=r.x,i=r.y;e.preventDefault();var a=parseFloat(o),c=parseFloat(i),s=n?.1:.01;switch(e.keyCode){case fr.UP:c-=s;break;case fr.DOWN:c+=s;break;case fr.LEFT:a-=s;break;case fr.RIGHT:a+=s}var u={x:a=Nr(a,0,1,s),y:c=Nr(c,0,1,s)};this.updateValue(u)}}},{key:"onMouseMove",value:function(e){var t=this.state,n=t.isDragging,r=t.bounds;if(n){var o=e.shiftKey,i=this.pickerDimensions(),a={left:e.pageX-i.left,top:e.pageY-i.top},c=Math.max(r.left,Math.min(a.left,r.right)),s=Math.max(r.top,Math.min(a.top,r.bottom)),u=(c-r.left)/(i.width-2*r.left),l=(s-r.top)/(i.height-2*r.top),d=o?.1:.01,f={x:u=Nr(u,0,1,d),y:l=Nr(l,0,1,d)};this.updateValue(f)}}},{key:"pickerDimensions",value:function(){var e=this.containerRef.current;if(!e)return{width:0,height:0,left:0,top:0};var t=e.clientHeight,n=e.clientWidth,r=e.getBoundingClientRect(),o=r.top,i=r.left;return{width:n,height:t,top:o+document.body.scrollTop,left:i}}},{key:"iconCoordinates",value:function(){var e=this.props.value,t=this.state.bounds;if(void 0===t.left||void 0===t.top)return{left:"50%",top:"50%"};var n=this.pickerDimensions(),r={left:e.x*(n.width-2*t.left)+t.left,top:e.y*(n.height-2*t.top)+t.top};return r}},{key:"handleFocusOutside",value:function(){this.setState({isDragging:!1})}},{key:"render",value:function(){var e=this,t=this.props,n=t.autoPlay,r=t.className,o=t.help,i=t.instanceId,a=t.label,s=t.onDragStart,u=t.onDragEnd,d=t.url,f=this.state,p=f.bounds,b=f.isDragging,h=f.percentages,v=this.iconCoordinates(),m=l()("components-focal-point-picker-control",r),y="inspector-focal-point-picker-control-".concat(i);return Object(c.createElement)(mt,{label:a,id:y,help:o,className:m},Object(c.createElement)(ru,{className:"components-focal-point-picker-wrapper"},Object(c.createElement)(ou,{className:"components-focal-point-picker",onDragStart:function(t){e.setState({isDragging:!0}),s(t)},onDrop:function(t){e.setState({isDragging:!1}),u(t)},onKeyDown:this.handleOnKeyDown,onMouseDown:this.handleOnClick,onMouseMove:this.onMouseMove,onMouseUp:this.handleOnMouseUp,ref:this.containerRef,role:"button",tabIndex:"-1"},Object(c.createElement)(Cu,{bounds:p,value:h.x+h.y}),Object(c.createElement)(Pu,{alt:Object(S.__)("Media preview"),autoPlay:n,mediaRef:this.mediaRef,onLoad:this.updateBounds,src:d}),Object(c.createElement)(ku,{coordinates:v,isDragging:b}))),Object(c.createElement)(yu,{percentages:h,onChange:this.updateValue}))}}]),n}(c.Component);Tu.defaultProps={autoPlay:!0,onDragStart:s.noop,onDragEnd:s.noop,onChange:s.noop,value:{x:.5,y:.5},url:null};var Iu=Object(E.compose)([E.withInstanceId,nu.a])(Tu);function Ru(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(ba.a)(e);if(t){var o=Object(ba.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(pa.a)(this,n)}}var Nu=window.FocusEvent,Au=function(e){Object(fa.a)(n,e);var t=Ru(n);function n(e){var r;return Object(ua.a)(this,n),(r=t.apply(this,arguments)).checkFocus=r.checkFocus.bind(Object(da.a)(r)),r.node=e.iframeRef||Object(c.createRef)(),r}return Object(la.a)(n,[{key:"checkFocus",value:function(){var e=this.node.current;if(e.ownerDocument.activeElement===e){var t=new Nu("focus",{bubbles:!0});e.dispatchEvent(t);var n=this.props.onFocus;n&&n(t)}}},{key:"render",value:function(){return Object(c.createElement)("iframe",Object(o.a)({ref:this.node},Object(s.omit)(this.props,["iframeRef","onFocus"])))}}]),n}(c.Component),Lu=Object(E.withGlobalEvents)({blur:"checkFocus"})(Au),Fu=n(428);function zu(e,t,n){return"number"!=typeof e?null:parseFloat(Object(s.clamp)(e,t,n))}var Bu={name:"tdik1c",styles:"height:30px;min-height:30px;"},Hu=function(){return Bu},Vu=Oe("span",{target:"exqw8y20",label:"Root"})({name:"1916452",styles:"-webkit-tap-highlight-color:transparent;box-sizing:border-box;cursor:pointer;align-items:flex-start;display:inline-flex;justify-content:flex-start;padding:0;position:relative;touch-action:none;width:100%;"}),Ku=Oe("span",{target:"exqw8y21",label:"Wrapper"})("box-sizing:border-box;color:",Le("blue.medium.focus"),";display:block;flex:1;padding-top:15px;position:relative;width:100%;",(function(e){var t=e.color,n=void 0===t?Le("ui.borderFocus"):t;return fe({color:n},"")}),";",Hu,";",(function(e){var t=e.marks;return fe({marginBottom:t?16:null},"")}),";",tt({marginLeft:10}),""),Wu=Oe("span",{target:"exqw8y22",label:"BeforeIconWrapper"})("margin-top:3px;",tt({marginRight:6}),""),Uu=Oe("span",{target:"exqw8y23",label:"AfterIconWrapper"})("margin-top:3px;",tt({marginLeft:16}),""),Gu=Oe("span",{target:"exqw8y24",label:"Rail"})("background-color:",Le("lightGray.600"),";box-sizing:border-box;left:0;pointer-events:none;right:0;display:block;height:3px;position:absolute;margin-top:14px;top:0;",(function(e){var t=e.disabled,n=e.railColor||null;return t&&(n=Le("lightGray.400")),fe({background:n},"")}),";"),$u=Oe("span",{target:"exqw8y25",label:"Track"})("background-color:currentColor;border-radius:1px;box-sizing:border-box;height:3px;pointer-events:none;display:block;position:absolute;margin-top:14px;top:0;",(function(e){var t=e.disabled,n=e.trackColor||"currentColor";return t&&(n=Le("lightGray.800")),fe({background:n},"")}),";"),qu=Oe("span",{target:"exqw8y26",label:"MarksWrapper"})({name:"sx8y8z",styles:"box-sizing:border-box;display:block;position:relative;width:100%;user-select:none;"}),Yu=Oe("span",{target:"exqw8y27",label:"Mark"})("box-sizing:border-box;height:9px;left:0;position:absolute;top:-4px;width:1px;",(function(e){var t=e.disabled,n=e.isFilled?"currentColor":Le("lightGray.600");return t&&(n=Le("lightGray.800")),fe({backgroundColor:n},"")}),";"),Zu=Oe("span",{target:"exqw8y28",label:"MarkLabel"})("box-sizing:border-box;color:",Le("lightGray.600"),";left:0;font-size:11px;position:absolute;top:12px;transform:translateX( -50% );white-space:nowrap;",(function(e){var t=e.isFilled;return fe({color:Le(t?"darkGray.300":"lightGray.600")},"")}),";"),Xu=Oe("span",{target:"exqw8y29",label:"ThumbWrapper"})("align-items:center;box-sizing:border-box;display:flex;height:20px;justify-content:center;margin-top:5px;outline:0;pointer-events:none;position:absolute;top:0;user-select:none;width:20px;",tt({marginLeft:-10}),""),Ju=Oe("span",{target:"exqw8y210",label:"Thumb"})("align-items:center;background-color:white;border-radius:50%;border:1px solid ",Le("darkGray.200"),";box-sizing:border-box;height:100%;outline:0;pointer-events:none;position:absolute;user-select:none;width:100%;",(function(e){var t=e.isFocused;return fe({borderColor:Le(t?"ui.borderFocus":"darkGray.200"),boxShadow:t?"\n\t\t\t\t0 0 0 1px ".concat(Le("ui.borderFocus"),"\n\t\t\t"):"\n\t\t\t\t0 0 0 rgba(0, 0, 0, 0)\n\t\t\t"},"")}),";"),Qu=Oe("input",{target:"exqw8y211",label:"InputRange"})({name:"cvc9dl",styles:"box-sizing:border-box;cursor:pointer;display:block;height:100%;left:0;margin:0;opacity:0;outline:none;position:absolute;right:0;top:0;width:100%;"}),el={name:"5qqmyx",styles:"top:-80%;"},tl={name:"eda4eg",styles:"bottom:-80%;"},nl=Oe("span",{target:"exqw8y212",label:"Tooltip"})("background:",Le("ui.border"),";border-radius:2px;box-sizing:border-box;color:white;display:inline-block;font-size:12px;min-width:32px;opacity:0;padding:4px 8px;pointer-events:none;position:absolute;text-align:center;transition:opacity 120ms ease;user-select:none;line-height:1.4;",(function(e){var t=e.show;return fe({opacity:t?1:0},"")}),";",(function(e){return"top"===e.position?el:tl}),";",Fe("transition"),";",tt({transform:"translateX(-50%)"},{transform:"translateX(50%)"}),""),rl=Oe(Lr,{target:"exqw8y213",label:"InputNumber"})("box-sizing:border-box;display:inline-block;font-size:13px;margin-top:0;width:",dt(8),";input[type='number']&{",Hu,";}",tt({marginLeft:dt(2)}),""),ol=Oe("span",{target:"exqw8y214",label:"ActionRightWrapper"})("box-sizing:border-box;display:block;margin-top:0;button,button.is-small{margin-left:0;",Hu,";}",tt({marginLeft:8}),"");var il=Object(c.forwardRef)((function(e,t){var n=e.describedBy,r=e.isShiftStepEnabled,u=void 0===r||r,l=e.label,d=e.onHideTooltip,f=void 0===d?s.noop:d,p=e.onMouseLeave,b=void 0===p?s.noop:p,h=e.step,v=void 0===h?1:h,m=e.onBlur,y=void 0===m?s.noop:m,g=e.onChange,O=void 0===g?s.noop:g,j=e.onFocus,w=void 0===j?s.noop:j,_=e.onMouseMove,k=void 0===_?s.noop:_,S=e.onShowTooltip,E=void 0===S?s.noop:S,x=e.shiftStep,C=void 0===x?10:x,P=e.value,D=Object(a.a)(e,["describedBy","isShiftStepEnabled","label","onHideTooltip","onMouseLeave","step","onBlur","onChange","onFocus","onMouseMove","onShowTooltip","shiftStep","value"]),M=Ar({step:v,shiftStep:C,isShiftStepEnabled:u}),T=function(e){var t=e.onHide,n=void 0===t?s.noop:t,r=e.onMouseLeave,o=void 0===r?s.noop:r,a=e.onMouseMove,u=void 0===a?s.noop:a,l=e.onShow,d=void 0===l?s.noop:l,f=e.timeout,p=void 0===f?300:f,b=Object(c.useState)(!1),h=Object(i.a)(b,2),v=h[0],m=h[1],y=Object(c.useRef)(),g=Object(c.useCallback)((function(e){window.clearTimeout(y.current),y.current=setTimeout(e,p)}),[p]),O=Object(c.useCallback)((function(e){u(e),g((function(){v||(m(!0),d())}))}),[]),j=Object(c.useCallback)((function(e){o(e),g((function(){m(!1),n()}))}),[]);return Object(c.useEffect)((function(){return function(){window.clearTimeout(y.current)}})),{onMouseMove:O,onMouseLeave:j}}({onHide:f,onMouseLeave:b,onMouseMove:k,onShow:E});return Object(c.createElement)(Qu,Object(o.a)({},D,T,{"aria-describedby":n,"aria-label":l,"aria-hidden":!1,onBlur:y,onChange:O,onFocus:w,ref:t,step:M,tabIndex:0,type:"range",value:P}))}));function al(e){var t=e.className,n=e.isFilled,r=void 0!==n&&n,i=e.label,s=e.style,u=void 0===s?{}:s,d=Object(a.a)(e,["className","isFilled","label","style"]),f=l()("components-range-control__mark",r&&"is-filled",t),p=l()("components-range-control__mark-label",r&&"is-filled");return Object(c.createElement)(c.Fragment,null,Object(c.createElement)(Yu,Object(o.a)({},d,{"aria-hidden":"true",className:f,isFilled:r,style:u})),i&&Object(c.createElement)(Zu,{"aria-hidden":"true",className:p,isFilled:r,style:u},i))}function cl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function sl(e){for(var t=1;tM)&&(e=zu(e,I,M)),L(e),ue.current=!1)},shiftStep:Z,step:J,value:we}),f&&Object(c.createElement)(ol,null,Object(c.createElement)($r.a,{className:"components-range-control__reset",disabled:g||void 0===ce,isSecondary:!0,isSmall:!0,onClick:Me},Object(S.__)("Reset")))))})),hl="default";function vl(e){var t=e.fallbackFontSize,n=e.fontSizes,r=void 0===n?[]:n,o=e.disableCustomFontSizes,i=void 0!==o&&o,a=e.onChange,s=e.value,u=e.withSlider,l=void 0!==u&&u,d=Object(E.useInstanceId)(vl),f=Object(c.useMemo)((function(){return function(e,t){return t&&!e.length?null:(e=[{slug:hl,name:Object(S.__)("Default")}].concat(Object(Ur.a)(e),Object(Ur.a)(t?[]:[{slug:"custom",name:Object(S.__)("Custom")}]))).map((function(e){return{key:e.slug,name:e.name,style:{fontSize:e.size}}}))}(r,i)}),[r,i]);if(!f)return null;var p=function(e,t){if(t){var n=e.find((function(e){return e.size===Number(t)}));return n?n.slug:"custom"}return hl}(r,s),b="components-font-size-picker__number#".concat(d);return Object(c.createElement)("fieldset",{className:"components-font-size-picker"},Object(c.createElement)(M,{as:"legend"},Object(S.__)("Font size")),Object(c.createElement)("div",{className:"components-font-size-picker__controls"},r.length>0&&Object(c.createElement)(Zc,{className:"components-font-size-picker__select",label:Object(S.__)("Font size"),options:f,value:f.find((function(e){return e.key===p})),onChange:function(e){var t=e.selectedItem,n=t.style&&t.style.fontSize;a(Number(n))}}),!l&&!i&&Object(c.createElement)("div",{className:"components-font-size-picker__number-container"},Object(c.createElement)("label",{htmlFor:b},Object(S.__)("Custom")),Object(c.createElement)("input",{id:b,className:"components-font-size-picker__number",type:"number",min:1,onChange:function(e){a(Number(e.target.value))},"aria-label":Object(S.__)("Custom"),value:s||""})),Object(c.createElement)($r.a,{className:"components-color-palette__clear",disabled:void 0===s,onClick:function(){a(void 0)},isSmall:!0,isSecondary:!0},Object(S.__)("Reset"))),l&&Object(c.createElement)(bl,{className:"components-font-size-picker__custom-input",label:Object(S.__)("Custom Size"),value:s||"",initialPosition:t,onChange:function(e){a(e)},min:12,max:100,beforeIcon:Fu.a,afterIcon:Fu.a}))}var ml=function(e){var t=e.accept,n=e.children,r=e.multiple,i=void 0!==r&&r,s=e.onChange,u=e.render,l=Object(a.a)(e,["accept","children","multiple","onChange","render"]),d=Object(c.useRef)(),f=function(){d.current.click()},p=u?u({openFileDialog:f}):Object(c.createElement)($r.a,Object(o.a)({onClick:f},l),n);return Object(c.createElement)("div",{className:"components-form-file-upload"},p,Object(c.createElement)("input",{type:"file",ref:d,multiple:i,style:{display:"none"},accept:t,onChange:s}))};var yl=function(e){var t=e.className,n=e.checked,r=e.id,i=e.onChange,u=void 0===i?s.noop:i,d=Object(a.a)(e,["className","checked","id","onChange"]),f=l()("components-form-toggle",t,{"is-checked":n});return Object(c.createElement)("span",{className:f},Object(c.createElement)("input",Object(o.a)({className:"components-form-toggle__input",id:r,type:"checkbox",checked:n,onChange:u},d)),Object(c.createElement)("span",{className:"components-form-toggle__track"}),Object(c.createElement)("span",{className:"components-form-toggle__thumb"}))},gl=n(40),Ol=Object(c.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(c.createElement)(r.Path,{d:"M10 2c4.42 0 8 3.58 8 8s-3.58 8-8 8-8-3.58-8-8 3.58-8 8-8zm5 11l-3-3 3-3-2-2-3 3-3-3-2 2 3 3-3 3 2 2 3-3 3 3z"}));function jl(e){var t=e.value,n=e.status,r=e.title,o=e.displayTransform,i=e.isBorderless,a=void 0!==i&&i,u=e.disabled,d=void 0!==u&&u,f=e.onClickRemove,p=void 0===f?s.noop:f,b=e.onMouseEnter,h=e.onMouseLeave,v=e.messages,m=e.termPosition,y=e.termsCount,g=Object(E.useInstanceId)(jl),O=l()("components-form-token-field__token",{"is-error":"error"===n,"is-success":"success"===n,"is-validating":"validating"===n,"is-borderless":a,"is-disabled":d}),j=o(t),w=Object(S.sprintf)(Object(S.__)("%1$s (%2$s of %3$s)"),j,m,y);return Object(c.createElement)("span",{className:O,onMouseEnter:b,onMouseLeave:h,title:r},Object(c.createElement)("span",{className:"components-form-token-field__token-text",id:"components-form-token-field__token-text-".concat(g)},Object(c.createElement)(M,{as:"span"},w),Object(c.createElement)("span",{"aria-hidden":"true"},j)),Object(c.createElement)($r.a,{className:"components-form-token-field__remove-token",icon:Ol,onClick:!d&&function(){return p({value:t})},label:v.remove,"aria-describedby":"components-form-token-field__token-text-".concat(g)}))}function wl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function _l(e){for(var t=1;t=0&&this.setState({selectedSuggestionIndex:t,selectedSuggestionScroll:!1})}},{key:"onSuggestionSelected",value:function(e){this.addNewToken(e)}},{key:"onInputChange",value:function(e){var t=e.value,n=this.props.tokenizeOnSpace?/[ ,\t]+/:/[,\t]+/,r=t.split(n),o=Object(s.last)(r)||"";r.length>1&&this.addNewTokens(r.slice(0,-1)),this.setState({incompleteTokenValue:o},this.updateSuggestions),this.props.onInputChange(o)}},{key:"handleDeleteKey",value:function(e){var t=!1;return this.input.hasFocus()&&this.isInputEmpty()&&(e(),t=!0),t}},{key:"handleLeftArrowKey",value:function(){var e=!1;return this.isInputEmpty()&&(this.moveInputBeforePreviousToken(),e=!0),e}},{key:"handleRightArrowKey",value:function(){var e=!1;return this.isInputEmpty()&&(this.moveInputAfterNextToken(),e=!0),e}},{key:"handleUpArrowKey",value:function(){var e=this;return this.setState((function(t,n){return{selectedSuggestionIndex:(0===t.selectedSuggestionIndex?e.getMatchingSuggestions(t.incompleteTokenValue,n.suggestions,n.value,n.maxSuggestions,n.saveTransform).length:t.selectedSuggestionIndex)-1,selectedSuggestionScroll:!0}})),!0}},{key:"handleDownArrowKey",value:function(){var e=this;return this.setState((function(t,n){return{selectedSuggestionIndex:(t.selectedSuggestionIndex+1)%e.getMatchingSuggestions(t.incompleteTokenValue,n.suggestions,n.value,n.maxSuggestions,n.saveTransform).length,selectedSuggestionScroll:!0}})),!0}},{key:"handleEscapeKey",value:function(e){return this.setState({incompleteTokenValue:e.target.value,isExpanded:!1,selectedSuggestionIndex:-1,selectedSuggestionScroll:!1}),!0}},{key:"handleCommaKey",value:function(){return this.inputHasValidValue()&&this.addNewToken(this.state.incompleteTokenValue),!0}},{key:"moveInputToIndex",value:function(e){this.setState((function(t,n){return{inputOffsetFromEnd:n.value.length-Math.max(e,-1)-1}}))}},{key:"moveInputBeforePreviousToken",value:function(){this.setState((function(e,t){return{inputOffsetFromEnd:Math.min(e.inputOffsetFromEnd+1,t.value.length)}}))}},{key:"moveInputAfterNextToken",value:function(){this.setState((function(e){return{inputOffsetFromEnd:Math.max(e.inputOffsetFromEnd-1,0)}}))}},{key:"deleteTokenBeforeInput",value:function(){var e=this.getIndexOfInput()-1;e>-1&&this.deleteToken(this.props.value[e])}},{key:"deleteTokenAfterInput",value:function(){var e=this.getIndexOfInput();e0){var r=Object(s.clone)(this.props.value);r.splice.apply(r,[this.getIndexOfInput(),0].concat(n)),this.props.onChange(r)}}},{key:"addNewToken",value:function(e){this.addNewTokens([e]),this.props.speak(this.props.messages.added,"assertive"),this.setState({incompleteTokenValue:"",selectedSuggestionIndex:-1,selectedSuggestionScroll:!1,isExpanded:!1}),this.state.isActive&&this.input.focus()}},{key:"deleteToken",value:function(e){var t=this,n=this.props.value.filter((function(n){return t.getTokenValue(n)!==t.getTokenValue(e)}));this.props.onChange(n),this.props.speak(this.props.messages.removed,"assertive")}},{key:"getTokenValue",value:function(e){return"object"===Object(gl.a)(e)?e.value:e}},{key:"getMatchingSuggestions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.state.incompleteTokenValue,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.props.suggestions,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.props.value,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:this.props.maxSuggestions,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.props.saveTransform,i=o(e),a=[],c=[];return 0===i.length?t=Object(s.difference)(t,n):(i=i.toLocaleLowerCase(),Object(s.each)(t,(function(e){var t=e.toLocaleLowerCase().indexOf(i);-1===n.indexOf(e)&&(0===t?a.push(e):t>0&&c.push(e))})),t=a.concat(c)),Object(s.take)(t,r)}},{key:"getSelectedSuggestion",value:function(){if(-1!==this.state.selectedSuggestionIndex)return this.getMatchingSuggestions()[this.state.selectedSuggestionIndex]}},{key:"valueContainsToken",value:function(e){var t=this;return Object(s.some)(this.props.value,(function(n){return t.getTokenValue(e)===t.getTokenValue(n)}))}},{key:"getIndexOfInput",value:function(){return this.props.value.length-this.state.inputOffsetFromEnd}},{key:"isInputEmpty",value:function(){return 0===this.state.incompleteTokenValue.length}},{key:"inputHasValidValue",value:function(){return this.props.saveTransform(this.state.incompleteTokenValue).length>0}},{key:"updateSuggestions",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=this.state.incompleteTokenValue,n=t.trim().length>1,r=this.getMatchingSuggestions(t),o=r.length>0,i={isExpanded:n&&o};if(e&&(i.selectedSuggestionIndex=-1,i.selectedSuggestionScroll=!1),this.setState(i),n){var a=this.props.debouncedSpeak,c=o?Object(S.sprintf)(Object(S._n)("%d result found, use up and down arrow keys to navigate.","%d results found, use up and down arrow keys to navigate.",r.length),r.length):Object(S.__)("No results.");a(c,"assertive")}}},{key:"renderTokensAndInput",value:function(){var e=Object(s.map)(this.props.value,this.renderToken);return e.splice(this.getIndexOfInput(),0,this.renderInput()),e}},{key:"renderToken",value:function(e,t,n){var r=this.getTokenValue(e),o=e.status?e.status:void 0,i=t+1,a=n.length;return Object(c.createElement)(jl,{key:"token-"+r,value:r,status:o,title:e.title,displayTransform:this.props.displayTransform,onClickRemove:this.onTokenClickRemove,isBorderless:e.isBorderless||this.props.isBorderless,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,disabled:"error"!==o&&this.props.disabled,messages:this.props.messages,termsCount:a,termPosition:i})}},{key:"renderInput",value:function(){var e=this.props,t=e.autoCapitalize,n=e.autoComplete,r=e.maxLength,o=e.value,i={instanceId:e.instanceId,autoCapitalize:t,autoComplete:n,ref:this.bindInput,key:"input",disabled:this.props.disabled,value:this.state.incompleteTokenValue,onBlur:this.onBlur,isExpanded:this.state.isExpanded,selectedSuggestionIndex:this.state.selectedSuggestionIndex};return r&&o.length>=r||(i=_l(_l({},i),{},{onChange:this.onInputChange})),Object(c.createElement)(Ya,i)}},{key:"render",value:function(){var e=this.props,t=e.disabled,n=e.label,r=void 0===n?Object(S.__)("Add item"):n,o=e.instanceId,i=e.className,a=this.state.isExpanded,s=l()(i,"components-form-token-field__input-container",{"is-active":this.state.isActive,"is-disabled":t}),u={className:"components-form-token-field",tabIndex:"-1"},d=this.getMatchingSuggestions();return t||(u=Object.assign({},u,{onKeyDown:this.onKeyDown,onKeyPress:this.onKeyPress,onFocus:this.onFocus})),Object(c.createElement)("div",u,Object(c.createElement)("label",{htmlFor:"components-form-token-input-".concat(o),className:"components-form-token-field__label"},r),Object(c.createElement)("div",{ref:this.bindTokensAndInput,className:s,tabIndex:"-1",onMouseDown:this.onContainerTouched,onTouchStart:this.onContainerTouched},this.renderTokensAndInput(),a&&Object(c.createElement)(ec,{instanceId:o,match:this.props.saveTransform(this.state.incompleteTokenValue),displayTransform:this.props.displayTransform,suggestions:d,selectedIndex:this.state.selectedSuggestionIndex,scrollIntoView:this.state.selectedSuggestionScroll,onHover:this.onSuggestionHovered,onSelect:this.onSuggestionSelected})),Object(c.createElement)("p",{id:"components-form-token-suggestions-howto-".concat(o),className:"components-form-token-field__help"},this.props.tokenizeOnSpace?Object(S.__)("Separate with commas, spaces, or the Enter key."):Object(S.__)("Separate with commas or the Enter key.")))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return e.disabled&&t.isActive?{isActive:!1,incompleteTokenValue:""}:null}}]),n}(c.Component);El.defaultProps={suggestions:Object.freeze([]),maxSuggestions:100,value:Object.freeze([]),displayTransform:s.identity,saveTransform:function(e){return e.trim()},onChange:function(){},onInputChange:function(){},isBorderless:!1,disabled:!1,tokenizeOnSpace:!1,messages:{added:Object(S.__)("Item added."),removed:Object(S.__)("Item removed."),remove:Object(S.__)("Remove item")}};var xl=Zr(Object(E.withInstanceId)(El)),Cl=n(201),Pl=n.n(Cl),Dl="linear-gradient(135deg, rgba(6, 147, 227, 1) 0%, rgb(155, 81, 224) 100%)",Ml={className:"components-custom-gradient-picker__color-picker-popover",position:"top"},Tl={type:"angular",value:90},Il=[{value:"linear-gradient",label:Object(S.__)("Linear")},{value:"radial-gradient",label:Object(S.__)("Radial")}];function Rl(e){var t=e.type,n=e.value;return"literal"===t?n:"hex"===t?"#".concat(n):"".concat(t,"(").concat(n.join(","),")")}function Nl(e){var t=e.type,n=e.value;return"".concat(n).concat(t)}function Al(e){var t=e.type,n=e.value,r=e.length;return"".concat(Rl({type:t,value:n})," ").concat(Nl(r))}function Ll(e){var t=e.type,n=e.orientation,r=e.colorStops,o=function(e){if(e&&"angular"===e.type)return"".concat(e.value,"deg")}(n),i=r.sort((function(e,t){return Object(s.get)(e,["length","value"],0)-Object(s.get)(t,["length","value"],0)})).map(Al);return"".concat(t,"(").concat(Object(s.compact)([o].concat(Object(Ur.a)(i))).join(","),")")}function Fl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function zl(e){for(var t=1;t=5&&(u.current.significantMoveHappened=!0)}Vl(i,n,a)||o(Hl(i,a,n))},d=function e(){window&&window.removeEventListener&&u.current&&u.current.listenersActivated&&(window.removeEventListener("mousemove",l),window.removeEventListener("mouseup",e),s(),u.current.listenersActivated=!1)};return Object(c.useEffect)((function(){return function(){d()}}),[]),r.map((function(e,t){return e&&n!==e.positionValue&&Object(c.createElement)(ca,{key:t,onClose:s,renderToggle:function(n){var r=n.isOpen,f=n.onToggle;return Object(c.createElement)(Xl,{key:t,onClick:function(){u.current&&u.current.significantMoveHappened||(r?s():a(),f())},onMouseDown:function(){window&&window.addEventListener&&(u.current={gradientAST:i,position:t,significantMoveHappened:!1,listenersActivated:!0},a(),window.addEventListener("mousemove",l),window.addEventListener("mouseup",d))},isOpen:r,position:e.position,color:e.color,onChange:o,gradientAST:i,gradientIndex:t})},renderContent:function(n){var r=n.onClose;return Object(c.createElement)(c.Fragment,null,Object(c.createElement)(Ba,{color:e.color,onChangeComplete:function(e){var n=e.rgb;o(Wl(i,t,n))}}),Object(c.createElement)($r.a,{className:"components-custom-gradient-picker__remove-control-point",onClick:function(){o(function(e,t){return zl(zl({},e),{},{colorStops:e.colorStops.filter((function(e,n){return n!==t}))})}(i,t)),r()},isLink:!0},Object(S.__)("Remove Control Point")))},popoverProps:Ml})}))}function Ql(e){var t=e.onChange,n=e.gradientAST,r=e.onOpenInserter,o=e.onCloseInserter,a=e.insertPosition,u=Object(c.useState)(!1),l=Object(i.a)(u,2),d=l[0],f=l[1];return Object(c.createElement)(ca,{className:"components-custom-gradient-picker__inserter",onClose:function(){o()},renderToggle:function(e){var t=e.isOpen,n=e.onToggle;return Object(c.createElement)($r.a,{"aria-expanded":t,"aria-haspopup":"true",onClick:function(){t?o():(f(!1),r()),n()},className:"components-custom-gradient-picker__insert-point",icon:aa.a,style:{left:null!==a?"".concat(a,"%"):void 0}})},renderContent:function(){return Object(c.createElement)(Ba,{onChangeComplete:function(e){var r,o=e.rgb;d?r=function(e,t,n){return Wl(e,Object(s.findIndex)(e.colorStops,(function(e){return e&&e.length&&"%"===e.length.type&&e.length.value===t.toString()})),n)}(n,a,o):(r=function(e,t,n){var r=Bl(n);return r.length={type:"%",value:t},zl(zl({},e),{},{colorStops:[].concat(Object(Ur.a)(e.colorStops),[r])})}(n,a,o),f(!0)),t(r)}})},popoverProps:Ml})}function ed(e,t){switch(t.type){case"MOVE_INSERTER":if("IDLE"===e.id||"MOVING_INSERTER"===e.id)return{id:"MOVING_INSERTER",insertPosition:t.insertPosition};break;case"STOP_INSERTER_MOVE":if("MOVING_INSERTER"===e.id)return{id:"IDLE"};break;case"OPEN_INSERTER":if("MOVING_INSERTER"===e.id)return{id:"INSERTING_CONTROL_POINT",insertPosition:e.insertPosition};break;case"CLOSE_INSERTER":if("INSERTING_CONTROL_POINT"===e.id)return{id:"IDLE"};break;case"START_CONTROL_CHANGE":if("IDLE"===e.id)return{id:"MOVING_CONTROL_POINT"};break;case"STOP_CONTROL_CHANGE":if("MOVING_CONTROL_POINT"===e.id)return{id:"IDLE"}}return e}var td={id:"IDLE"};function nd(e){var t=e.value,n=e.onChange,r=ql(t),o=r.gradientAST,a=r.gradientValue,u=r.hasGradient,d=function(e){n(Ll(e))},f=Object(c.useRef)(),p=function(e){return e?Object(s.map)(e.colorStops,(function(e){return e&&e.length&&"%"===e.length.type?{color:Rl(e),position:Nl(e.length),positionValue:parseInt(e.length.value)}:null})):[]}(o),b=Object(c.useReducer)(ed,td),h=Object(i.a)(b,2),v=h[0],m=h[1],y=function(e){var t=Ul(e.clientX,f.current,23);Object(s.some)(p,(function(e){var n=e.positionValue;return Math.abs(t-n)<10}))?"MOVING_INSERTER"===v.id&&m({type:"STOP_INSERTER_MOVE"}):m({type:"MOVE_INSERTER",insertPosition:t})},g="MOVING_INSERTER"===v.id,O="INSERTING_CONTROL_POINT"===v.id;return Object(c.createElement)("div",{ref:f,className:l()("components-custom-gradient-picker__gradient-bar",{"has-gradient":u}),onMouseEnter:y,onMouseMove:y,style:{background:"radial-gradient"===o.type?Gl(o):a},onMouseLeave:function(){m({type:"STOP_INSERTER_MOVE"})}},Object(c.createElement)("div",{className:"components-custom-gradient-picker__markers-container"},(g||O)&&Object(c.createElement)(Ql,{insertPosition:v.insertPosition,onChange:d,gradientAST:o,onOpenInserter:function(){m({type:"OPEN_INSERTER"})},onCloseInserter:function(){m({type:"CLOSE_INSERTER"})}}),Object(c.createElement)(Jl,{gradientPickerDomRef:f,ignoreMarkerPosition:O?v.insertPosition:void 0,markerPoints:p,onChange:d,gradientAST:o,onStartControlPointChange:function(){m({type:"START_CONTROL_CHANGE"})},onStopControlPointChange:function(){m({type:"STOP_CONTROL_CHANGE"})}})))}var rd=Oe(St,{target:"e99xvul0",label:"SelectWrapper"})({name:"14kcwr6",styles:"width:110px;"});function od(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function id(e){for(var t=1;t",{alternative:"the `pages` prop"})}),[t]),c.Children.count(t)&&(u=c.Children.map(t,(function(e){return{content:e}})));var h=p>0,v=p",{alternative:"the `pages` prop in "})}),[]),Object(c.createElement)("div",e)}var Md=Object(c.forwardRef)((function(e,t){var n=e.labelPosition,r=e.size,i=e.tooltip,s=e.label,u=Object(a.a)(e,["labelPosition","size","tooltip","label"]);return Vs()("wp.components.IconButton",{alternative:"wp.components.Button"}),Object(c.createElement)($r.a,Object(o.a)({},u,{ref:t,tooltipPosition:n,iconSize:r,showTooltip:void 0!==i?!!i:void 0,label:i||s}))}));var Td=function e(t){var n=t.children,r=t.className,o=void 0===r?"":r,i=t.label,a=Object(E.useInstanceId)(e);if(!c.Children.count(n))return null;var s="components-menu-group-label-".concat(a),u=l()(o,"components-menu-group");return Object(c.createElement)("div",{className:u},i&&Object(c.createElement)("div",{className:"components-menu-group__label",id:s,"aria-hidden":"true"},i),Object(c.createElement)("div",{role:"group","aria-labelledby":i?s:null},n))},Id=n(172);var Rd=Object(c.forwardRef)((function(e,t){var n=e.children,r=e.info,i=e.className,u=e.icon,d=e.shortcut,f=e.isSelected,p=e.role,b=void 0===p?"menuitem":p,h=Object(a.a)(e,["children","info","className","icon","shortcut","isSelected","role"]);return i=l()("components-menu-item__button",i),r&&(n=Object(c.createElement)("span",{className:"components-menu-item__info-wrapper"},n,Object(c.createElement)("span",{className:"components-menu-item__info"},r))),u&&!Object(s.isString)(u)&&(u=Object(c.cloneElement)(u,{className:"components-menu-items__item-icon"})),Object(c.createElement)($r.a,Object(o.a)({ref:t,"aria-checked":"menuitemcheckbox"===b||"menuitemradio"===b?f:void 0,role:b,className:i},h),n,Object(c.createElement)(Id.a,{className:"components-menu-item__shortcut",shortcut:d}),u&&Object(c.createElement)(ds.a,{icon:u}))}));function Nd(e){var t=e.choices,n=void 0===t?[]:t,r=e.onHover,o=void 0===r?s.noop:r,i=e.onSelect,a=e.value;return n.map((function(e){var t=a===e.value;return Object(c.createElement)(Rd,{key:e.value,role:"menuitemradio",icon:t&&Qi.a,isSelected:t,shortcut:e.shortcut,className:"components-menu-items-choice",onClick:function(){t||i(e.value)},onMouseEnter:function(){return o(e.value)},onMouseLeave:function(){return o(null)}},e.label)}))}var Ad=n(166);var Ld=Object(c.forwardRef)((function(e,t){var n=e.eventToOffset,r=Object(a.a)(e,["eventToOffset"]);return Object(c.createElement)($s,Object(o.a)({ref:t,stopNavigationEvents:!0,onlyBrowserTabstops:!0,eventToOffset:function(e){var t=e.keyCode,r=e.shiftKey;return fr.TAB===t?r?-1:1:n?n(e):void 0}},r))})),Fd=Object(c.createContext)({activeItem:void 0,activeMenu:"root",setActiveMenu:s.noop,navigationTree:{items:{},getItem:s.noop,addItem:s.noop,removeItem:s.noop,menus:{},getMenu:s.noop,addMenu:s.noop,removeMenu:s.noop}}),zd=function(){return Object(c.useContext)(Fd)};var Bd=Oe("div",{target:"ejwewyf0",label:"NavigationUI"})("width:100%;background-color:",Ee.darkGray.primary,";color:#f0f0f0;padding:0 8px;overflow:hidden;"),Hd=Oe("div",{target:"ejwewyf1",label:"MenuUI"})({name:"1wlvkgj",styles:"margin-top:24px;margin-bottom:24px;display:flex;flex-direction:column;ul{padding:0;margin:0;list-style:none;}.components-navigation__back-button{margin-bottom:24px;}"}),Vd=Oe($r.a,{target:"ejwewyf2",label:"MenuBackButtonUI"})("&.is-tertiary{color:",Ee.lightGray.ui,";&:hover:not(:disabled ){color:#ddd;box-shadow:none;}&:active:not(:disabled ){background:transparent;color:#ddd;}}"),Kd=Oe(Zt,{target:"ejwewyf3",label:"MenuTitleUI"})("padding:4px 0 4px 16px;margin-bottom:8px;color:",Ee.gray[100],";"),Wd=Oe(Zt,{target:"ejwewyf4",label:"GroupTitleUI"})("margin-top:8px;padding:4px 0 4px 16px;text-transform:uppercase;color:",Ee.gray[100],";"),Ud=Oe("li",{target:"ejwewyf5",label:"ItemUI"})("border-radius:2px;color:",Ee.lightGray.ui,";button,a{margin:0;font-weight:400;font-size:14px;line-height:20px;padding-left:16px;padding-right:16px;width:100%;color:",Ee.lightGray.ui,";&:hover,&:focus:not( [aria-disabled='true'] ):active,&:active:not( [aria-disabled='true'] ):active{color:#ddd;}}&.is-active{background-color:",Re.theme,";color:",Re.textDark,";button,a{color:",Re.textDark,";}}svg path{color:",Ee.lightGray.ui,";}"),Gd=Oe("span",{target:"ejwewyf6",label:"ItemBadgeUI"})("margin-left:8px;display:inline-flex;padding:4px 12px;border-radius:2px;animation:fade-in 250ms ease-out;@keyframes fade-in{from{opacity:0;}to{opacity:1;}}",Fe("animation"),";"),$d=Oe(Zt,{target:"ejwewyf7",label:"ItemTitleUI"})({name:"zs804i",styles:"margin-right:auto;text-align:left;"});function qd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Yd(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:"left";E.getMenu(e)&&(S(t),j(e),m(e))},C=Object(c.useRef)(!1);Object(c.useEffect)((function(){C.current||(C.current=!0)}),[]),Object(c.useEffect)((function(){p!==O&&x(p)}),[p]);var D={activeItem:d,activeMenu:O,setActiveMenu:x,navigationTree:E},M=l()("components-navigation",h);return Object(c.createElement)(Bd,{className:M},Object(c.createElement)(st.a,{key:O,type:"slide-in",options:{origin:k}},(function(e){var t=e.className;return Object(c.createElement)("div",{className:l()(Object(P.a)({},t,C.current&&k))},Object(c.createElement)(Fd.Provider,{value:D},b))})))}var Jd=n(215);var Qd=Object(c.forwardRef)((function(e,t){var n,r=e.backButtonLabel,o=e.className,i=e.href,a=e.onClick,s=e.parentMenu,u=zd(),d=u.setActiveMenu,f=u.navigationTree,p=l()("components-navigation__back-button",o),b=null===(n=f.getMenu(s))||void 0===n?void 0:n.title;return Object(c.createElement)(Vd,{className:p,href:i,isTertiary:!0,ref:t,onClick:function(e){"function"==typeof a&&a(e),s&&!e.defaultPrevented&&d(s,"right")}},Object(c.createElement)(Ji.a,{icon:Jd.a}),r||b||Object(S.__)("Back"))})),ef=Object(c.createContext)({menu:void 0,isActive:!1}),tf=function(){return Object(c.useContext)(ef)};function nf(e){var t=e.children,n=e.className,r=e.title;if(!tf().isActive)return t;var o=l()("components-navigation__group",n);return Object(c.createElement)("li",{className:o},r&&Object(c.createElement)(Wd,{as:"h3",className:"components-navigation__group-title",variant:"caption"},r),Object(c.createElement)("ul",null,t))}var rf=n(214);function of(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function af(e){for(var t=1;t=320,"is-medium":g>=160&&g<320,"is-small":g<160});var O=l()("components-placeholder",d,t),j=l()("components-placeholder__fieldset",{"is-column-layout":b});return Object(c.createElement)("div",Object(o.a)({},h,{className:O}),y,f,p&&Object(c.createElement)("div",{className:"components-placeholder__preview"},p),Object(c.createElement)("div",{className:"components-placeholder__label"},Object(c.createElement)(ds.a,{icon:n}),s),!!u&&Object(c.createElement)("div",{className:"components-placeholder__instructions"},u),Object(c.createElement)("div",{className:j},r))};function jf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function wf(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:0;return Object(s.flatMap)(t,(function(t){return[{value:t.id,label:Object(s.repeat)(" ",3*n)+Object(s.unescape)(t.name)}].concat(Object(Ur.a)(e(t.children||[],n+1)))}))}(u))));return Object(c.createElement)(hs,Object(o.a)({label:t,options:d,onChange:r},{value:i},l))}function Sf(e){var t=e.label,n=e.noOptionLabel,r=e.categoriesList,i=e.selectedCategoryId,s=e.onChange,u=Object(a.a)(e,["label","noOptionLabel","categoriesList","selectedCategoryId","onChange"]),l=_f(r);return Object(c.createElement)(kf,Object(o.a)({label:t,noOptionLabel:n,onChange:s},{tree:l,selectedId:i},u))}function Ef(e){var t=e.label,n=e.noOptionLabel,r=e.authorList,i=e.selectedAuthorId,a=e.onChange;if(!r)return null;var s=_f(r);return Object(c.createElement)(kf,Object(o.a)({label:t,noOptionLabel:n,onChange:a},{tree:s,selectedId:i}))}function xf(e){var t=e.authorList,n=e.selectedAuthorId,r=e.categoriesList,o=e.selectedCategoryId,a=e.categorySuggestions,s=e.selectedCategories,u=e.numberOfItems,l=e.order,d=e.orderBy,f=e.maxItems,p=void 0===f?100:f,b=e.minItems,h=void 0===b?1:b,v=e.onCategoryChange,m=e.onAuthorChange,y=e.onNumberOfItemsChange,g=e.onOrderChange,O=e.onOrderByChange;return[g&&O&&Object(c.createElement)(hs,{key:"query-controls-order-select",label:Object(S.__)("Order by"),value:"".concat(d,"/").concat(l),options:[{label:Object(S.__)("Newest to oldest"),value:"date/desc"},{label:Object(S.__)("Oldest to newest"),value:"date/asc"},{label:Object(S.__)("A → Z"),value:"title/asc"},{label:Object(S.__)("Z → A"),value:"title/desc"}],onChange:function(e){var t=e.split("/"),n=Object(i.a)(t,2),r=n[0],o=n[1];o!==l&&g(o),r!==d&&O(r)}}),r&&v&&Object(c.createElement)(Sf,{key:"query-controls-category-select",categoriesList:r,label:Object(S.__)("Category"),noOptionLabel:Object(S.__)("All"),selectedCategoryId:o,onChange:v}),a&&v&&Object(c.createElement)(xl,{key:"query-controls-categories-select",label:Object(S.__)("Categories"),value:s&&s.map((function(e){return{id:e.id,value:e.name||e.value}})),suggestions:Object.keys(a),onChange:v,maxSuggestions:20}),m&&Object(c.createElement)(Ef,{key:"query-controls-author-select",authorList:t,label:Object(S.__)("Author"),noOptionLabel:Object(S.__)("All"),selectedAuthorId:n,onChange:m}),y&&Object(c.createElement)(bl,{key:"query-controls-range-control",label:Object(S.__)("Number of items"),value:u,onChange:y,min:h,max:p,required:!0})]}n(81);var Cf=n(48),Pf=n(126),Df=(n(108),n(62));function Mf(e){void 0===e&&(e={});var t=Object(Df.a)(e),n=t.state,r=t.loop,o=void 0===r||r,i=Object(p.a)(t,["state","loop"]),a=Object(v.useState)(n),c=a[0],s=a[1],u=Object(d.g)(Object(p.b)(Object(p.b)({},i),{},{loop:o}));return Object(p.b)(Object(p.b)({},u),{},{state:c,setState:s})}var Tf=[].concat(d.g.__keys,["state","setState"]);function If(e){return void 0!==e.checked?e.checked:void 0!==e.value&&e.state===e.value}function Rf(e,t){var n=Object(Pf.a)(e,"change");Object.defineProperties(n,{type:{value:"change"},target:{value:e},currentTarget:{value:e}}),null==t||t(n)}Mf.__keys=Tf;var Nf=Object(h.a)({name:"Radio",compose:x.b,useState:Mf,keys:["value","checked","unstable_checkOnFocus"],useOptions:function(e,t){var n,r=t.value,o=t.checked,i=e.unstable_clickOnEnter,a=void 0!==i&&i,c=e.unstable_checkOnFocus,s=void 0===c||c,u=Object(p.a)(e,["unstable_clickOnEnter","unstable_checkOnFocus"]);return Object(p.b)(Object(p.b)({checked:o,unstable_clickOnEnter:a,unstable_checkOnFocus:s},u),{},{value:null!=(n=u.value)?n:r})},useProps:function(e,t){var n=t.ref,r=t.onChange,o=t.onClick,i=Object(p.a)(t,["ref","onChange","onClick"]),a=Object(v.useRef)(null),c=Object(v.useState)(!0),s=c[0],u=c[1],l=If(e),d=Object(Cf.a)(e.currentId===e.id),f=Object(Cf.a)(r),b=Object(Cf.a)(o);!function(e){var t=Object(v.useState)((function(){return If(e)}))[0],n=Object(v.useState)(e.currentId)[0],r=e.id,o=e.setCurrentId;Object(v.useEffect)((function(){t&&r&&n!==r&&(null==o||o(r))}),[t,r,o,n])}(e),Object(v.useEffect)((function(){var e=a.current;e&&("INPUT"===e.tagName&&"radio"===e.type||u(!1))}),[]);var h=Object(v.useCallback)((function(t){var n,r;null===(n=f.current)||void 0===n||n.call(f,t),t.defaultPrevented||e.disabled||null===(r=e.setState)||void 0===r||r.call(e,e.value)}),[e.disabled,e.setState,e.value]),m=Object(v.useCallback)((function(e){var t;null===(t=b.current)||void 0===t||t.call(b,e),e.defaultPrevented||Rf(e.currentTarget,h)}),[h]);return Object(v.useEffect)((function(){var t=a.current;t&&e.unstable_moves&&d.current&&e.unstable_checkOnFocus&&Rf(t,h)}),[e.unstable_moves,e.unstable_checkOnFocus,h]),Object(p.b)({ref:Object(y.a)(a,n),role:s?void 0:"radio",type:s?"radio":void 0,value:s?e.value:void 0,"aria-checked":l,checked:l,onChange:h,onClick:m},i)}}),Af=Object(b.a)({as:"input",memo:!0,useHook:Nf}),Lf=Object(c.createContext)({state:null,setState:function(){}});var Ff=Object(c.forwardRef)((function(e,t){var n=e.children,r=e.value,i=Object(a.a)(e,["children","value"]),s=Object(c.useContext)(Lf),u=s.state===r;return Object(c.createElement)(Af,Object(o.a)({ref:t,as:$r.a,isPrimary:u,isSecondary:!u,value:r},s,i),n||r)})),zf=n(79),Bf=Object(h.a)({name:"RadioGroup",compose:f.b,useState:Mf,useProps:function(e,t){return Object(p.b)({role:"radiogroup"},t)}}),Hf=Object(b.a)({as:"div",useHook:Bf,useCreateElement:function(e,t,n){return Object(zf.a)(e,t,n)}});function Vf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Kf(e){for(var t=1;t0&&void 0!==arguments[0]&&arguments[0];if(this.isFrameAccessible()){var t=this.iframe.current.contentDocument.body;if(e||null===t.getAttribute("data-resizable-iframe-connected")){var n="\n\t\t\t( function() {\n\t\t\t\tvar observer;\n\n\t\t\t\tif ( ! window.MutationObserver || ! document.body || ! window.parent ) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\tfunction sendResize() {\n\t\t\t\t\tvar clientBoundingRect = document.body.getBoundingClientRect();\n\n\t\t\t\t\twindow.parent.postMessage( {\n\t\t\t\t\t\taction: 'resize',\n\t\t\t\t\t\twidth: clientBoundingRect.width,\n\t\t\t\t\t\theight: clientBoundingRect.height,\n\t\t\t\t\t}, '*' );\n\t\t\t\t}\n\n\t\t\t\tobserver = new MutationObserver( sendResize );\n\t\t\t\tobserver.observe( document.body, {\n\t\t\t\t\tattributes: true,\n\t\t\t\t\tattributeOldValue: false,\n\t\t\t\t\tcharacterData: true,\n\t\t\t\t\tcharacterDataOldValue: false,\n\t\t\t\t\tchildList: true,\n\t\t\t\t\tsubtree: true\n\t\t\t\t} );\n\n\t\t\t\twindow.addEventListener( 'load', sendResize, true );\n\n\t\t\t\t// Hack: Remove viewport unit styles, as these are relative\n\t\t\t\t// the iframe root and interfere with our mechanism for\n\t\t\t\t// determining the unconstrained page bounds.\n\t\t\t\tfunction removeViewportStyles( ruleOrNode ) {\n\t\t\t\t\tif( ruleOrNode.style ) {\n\t\t\t\t\t\t[ 'width', 'height', 'minHeight', 'maxHeight' ].forEach( function( style ) {\n\t\t\t\t\t\t\tif ( /^\\d+(vmin|vmax|vh|vw)$/.test( ruleOrNode.style[ style ] ) ) {\n\t\t\t\t\t\t\t\truleOrNode.style[ style ] = '';\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}\n\n\t\t\t\tArray.prototype.forEach.call( document.querySelectorAll( '[style]' ), removeViewportStyles );\n\t\t\t\tArray.prototype.forEach.call( document.styleSheets, function( stylesheet ) {\n\t\t\t\t\tArray.prototype.forEach.call( stylesheet.cssRules || stylesheet.rules, removeViewportStyles );\n\t\t\t\t} );\n\n\t\t\t\tdocument.body.style.position = 'absolute';\n\t\t\t\tdocument.body.style.width = '100%';\n\t\t\t\tdocument.body.setAttribute( 'data-resizable-iframe-connected', '' );\n\n\t\t\t\tsendResize();\n\n\t\t\t\t// Resize events can change the width of elements with 100% width, but we don't\n\t\t\t\t// get an DOM mutations for that, so do the resize when the window is resized, too.\n\t\t\t\twindow.addEventListener( 'resize', sendResize, true );\n\t\t} )();",r="\n\t\t\tbody {\n\t\t\t\tmargin: 0;\n\t\t\t}\n\t\t\thtml,\n\t\t\tbody,\n\t\t\tbody > div,\n\t\t\tbody > div > iframe {\n\t\t\t\twidth: 100%;\n\t\t\t}\n\t\t\thtml.wp-has-aspect-ratio,\n\t\t\tbody.wp-has-aspect-ratio,\n\t\t\tbody.wp-has-aspect-ratio > div,\n\t\t\tbody.wp-has-aspect-ratio > div > iframe {\n\t\t\t\theight: 100%;\n\t\t\t\toverflow: hidden; /* If it has an aspect ratio, it shouldn't scroll. */\n\t\t\t}\n\t\t\tbody > div > * {\n\t\t\t\tmargin-top: 0 !important; /* Has to have !important to override inline styles. */\n\t\t\t\tmargin-bottom: 0 !important;\n\t\t\t}\n\t\t",o=Object(c.createElement)("html",{lang:document.documentElement.lang,className:this.props.type},Object(c.createElement)("head",null,Object(c.createElement)("title",null,this.props.title),Object(c.createElement)("style",{dangerouslySetInnerHTML:{__html:r}}),this.props.styles&&this.props.styles.map((function(e,t){return Object(c.createElement)("style",{key:t,dangerouslySetInnerHTML:{__html:e}})}))),Object(c.createElement)("body",{"data-resizable-iframe-connected":"data-resizable-iframe-connected",className:this.props.type},Object(c.createElement)("div",{dangerouslySetInnerHTML:{__html:this.props.html}}),Object(c.createElement)("script",{type:"text/javascript",dangerouslySetInnerHTML:{__html:n}}),this.props.scripts&&this.props.scripts.map((function(e){return Object(c.createElement)("script",{key:e,src:e})})))),i=this.iframe.current.contentWindow.document;i.open(),i.write(""+Object(c.renderToString)(o)),i.close()}}}},{key:"render",value:function(){var e=this.props,t=e.title,n=e.onFocus;return Object(c.createElement)(Lu,{iframeRef:this.iframe,title:t,className:"components-sandbox",sandbox:"allow-scripts allow-same-origin allow-presentation",onFocus:n,width:Math.ceil(this.state.width),height:Math.ceil(this.state.height)})}}],[{key:"defaultProps",get:function(){return{html:"",title:""}}}]),n}(c.Component),Ip=Tp=Object(E.withGlobalEvents)({message:"checkMessageForResize"})(Tp),Rp=n(167),Np=n(20),Ap=n.n(Np),Lp=n(45),Fp=n(115);var zp=function(e){var t=e.notices,n=e.className,r=e.children,a=e.onRemove,u=void 0===a?s.noop:a,d=Object(E.useReducedMotion)(),f=Object(c.useState)((function(){return new WeakMap})),p=Object(i.a)(f,1)[0],b=Object(Fp.useTransition)(t,(function(e){return e.id}),{from:{opacity:0,height:0},enter:function(e){return function(){var t=Object(Lp.a)(Ap.a.mark((function t(n){return Ap.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,n({opacity:1,height:p.get(e).offsetHeight});case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()},leave:function(){return function(){var e=Object(Lp.a)(Ap.a.mark((function e(t){return Ap.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t({opacity:0});case 2:return e.next=4,t({height:0});case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()},immediate:d});n=l()("components-snackbar-list",n);var h=function(e){return function(){return u(e.id)}};return Object(c.createElement)("div",{className:n},r,b.map((function(e){var t=e.item,n=e.key,r=e.props;return Object(c.createElement)(Fp.animated.div,{key:n,style:r},Object(c.createElement)("div",{className:"components-snackbar-list__notice-container",ref:function(e){return e&&p.set(t,e)}},Object(c.createElement)(Rp.a,Object(o.a)({},Object(s.omit)(t,["content"]),{onRemove:h(t)}),t.content)))})))};function Bp(){return Object(c.createElement)("span",{className:"components-spinner"})}var Hp=function(e){var t=e.tabId,n=e.onClick,r=e.children,i=e.selected,s=Object(a.a)(e,["tabId","onClick","children","selected"]);return Object(c.createElement)($r.a,Object(o.a)({role:"tab",tabIndex:i?null:-1,"aria-selected":i,id:t,onClick:n},s),r)};function Vp(e){var t,n=e.className,r=e.children,o=e.tabs,a=e.initialTabName,u=e.orientation,d=void 0===u?"horizontal":u,f=e.activeClass,p=void 0===f?"is-active":f,b=e.onSelect,h=void 0===b?s.noop:b,v=Object(E.useInstanceId)(Vp,"tab-panel"),m=Object(c.useState)(null),y=Object(i.a)(m,2),g=y[0],O=y[1],j=function(e){O(e),h(e)},w=Object(s.find)(o,{name:g}),_="".concat(v,"-").concat(null!==(t=null==w?void 0:w.name)&&void 0!==t?t:"none");return Object(c.useEffect)((function(){Object(s.find)(o,{name:g})||O(a||(o.length>0?o[0].name:null))}),[o]),Object(c.createElement)("div",{className:n},Object(c.createElement)(qs,{role:"tablist",orientation:d,onNavigate:function(e,t){t.click()},className:"components-tab-panel__tabs"},o.map((function(e){return Object(c.createElement)(Hp,{className:l()("components-tab-panel__tabs-item",e.className,Object(P.a)({},p,e.name===g)),tabId:"".concat(v,"-").concat(e.name),"aria-controls":"".concat(v,"-").concat(e.name,"-view"),selected:e.name===g,key:e.name,onClick:Object(s.partial)(j,e.name)},e.title)}))),w&&Object(c.createElement)("div",{"aria-labelledby":_,role:"tabpanel",id:"".concat(_,"-view"),className:"components-tab-panel__tab-content"},r(w)))}var Kp={radiusBlockUi:"2px",borderWidth:"1px",borderWidthFocus:"1.5px",borderWidthTab:"4px"},Wp=function(e){return Kp[e]},Up=fe("box-shadow:0 0 0 transparent;transition:box-shadow 0.1s linear;border-radius:",Wp("radiusBlockUi"),";border:",Wp("borderWidth")," solid ",Le("ui.border"),";",Fe("transition"),";label:inputStyleNeutral;"),Gp=fe("border-color:var( --wp-admin-theme-color );box-shadow:0 0 0 calc( ",Wp("borderWidthFocus")," - ",Wp("borderWidth")," ) var( --wp-admin-theme-color );outline:2px solid transparent;;label:inputStyleFocus;"),$p={huge:"1440px",wide:"1280px","x-large":"1080px",large:"960px",medium:"782px",small:"600px",mobile:"480px","zoomed-in":"280px"},qp=fe("font-family:",lt("default.fontFamily"),";padding:6px 8px;",Up,";font-size:",lt("mobileTextMinFontSize"),";line-height:normal;","@media (min-width: ".concat($p["small"],")"),"{font-size:",lt("default.fontSize"),";line-height:normal;}&:focus{",Gp,"}&::-webkit-input-placeholder{color:",Le("darkGray.placeholder"),";}&::-moz-placeholder{opacity:1;color:",Le("darkGray.placeholder"),";}&:-ms-input-placeholder{color:",Le("darkGray.placeholder"),";}.is-dark-theme &{&::-webkit-input-placeholder{color:",Le("lightGray.placeholder"),";}&::-moz-placeholder{opacity:1;color:",Le("lightGray.placeholder"),";}&:-ms-input-placeholder{color:",Le("lightGray.placeholder"),";}};label:inputControl;"),Yp=Oe("textarea",{target:"ebk7yr50",label:"StyledTextarea"})("width:100%;",qp,"");function Zp(e){var t=e.label,n=e.hideLabelFromVision,r=e.value,i=e.help,s=e.onChange,u=e.rows,l=void 0===u?4:u,d=e.className,f=Object(a.a)(e,["label","hideLabelFromVision","value","help","onChange","rows","className"]),p=Object(E.useInstanceId)(Zp),b="inspector-textarea-control-".concat(p);return Object(c.createElement)(mt,{label:t,hideLabelFromVision:n,id:b,help:i,className:d},Object(c.createElement)(Yp,Object(o.a)({className:"components-textarea-control__input",id:b,rows:l,onChange:function(e){return s(e.target.value)},"aria-describedby":i?b+"__help":void 0,value:r},f)))}var Xp=function(e){var t=e.text,n=void 0===t?"":t,r=e.highlight,o=(void 0===r?"":r).trim();if(!o)return n;var i=new RegExp("(".concat(Object(s.escapeRegExp)(o),")"),"gi");return Object(c.createInterpolateElement)(n.replace(i,"$&"),{mark:Object(c.createElement)("mark",null)})};var Jp=function(e){return Object(c.createElement)("div",{className:"components-tip"},Object(c.createElement)(r.SVG,{width:"24",height:"24",viewBox:"0 0 24 24"},Object(c.createElement)(r.Path,{d:"M12 15.8c-3.7 0-6.8-3-6.8-6.8s3-6.8 6.8-6.8c3.7 0 6.8 3 6.8 6.8s-3.1 6.8-6.8 6.8zm0-12C9.1 3.8 6.8 6.1 6.8 9s2.4 5.2 5.2 5.2c2.9 0 5.2-2.4 5.2-5.2S14.9 3.8 12 3.8zM8 17.5h8V19H8zM10 20.5h4V22h-4z"})),Object(c.createElement)("p",null,e.children))};function Qp(e){var t=e.label,n=e.checked,r=e.help,o=e.className,i=e.onChange;var a,u,d=Object(E.useInstanceId)(Qp),f="inspector-toggle-control-".concat(d);return r&&(a=f+"__help",u=Object(s.isFunction)(r)?r(n):r),Object(c.createElement)(mt,{id:f,help:u,className:l()("components-toggle-control",o)},Object(c.createElement)(yl,{id:f,checked:n,onChange:function(e){i(e.target.checked)},"aria-describedby":a}),Object(c.createElement)("label",{htmlFor:f,className:"components-toggle-control__label"},t))}var eb=n(137),tb=n(91),nb=function(e){return Object(c.createElement)("div",{className:e.className},e.children)};var rb=Object(c.forwardRef)((function(e,t){var n=e.containerClassName,r=e.className,i=e.extraProps,s=e.children,u=e.title,d=e.isActive,f=e.isDisabled,p=Object(a.a)(e,["containerClassName","className","extraProps","children","title","isActive","isDisabled"]);return Object(c.useContext)(tb.a)?Object(c.createElement)(eb.a,Object(o.a)({className:l()("components-toolbar-button",r)},i,p,{ref:t}),(function(e){return Object(c.createElement)($r.a,Object(o.a)({label:u,isPressed:d,disabled:f},e),s)})):Object(c.createElement)(nb,{className:n},Object(c.createElement)($r.a,Object(o.a)({ref:t,icon:p.icon,label:u,shortcut:p.shortcut,"data-subscript":p.subscript,onClick:function(e){e.stopPropagation(),p.onClick&&p.onClick(e)},className:l()("components-toolbar__control",r),isPressed:d,disabled:f,"data-toolbar-item":!0},i,p),s))})),ob=function(e){var t=e.className,n=e.children,r=Object(a.a)(e,["className","children"]);return Object(c.createElement)("div",Object(o.a)({className:t},r),n)};function ib(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ab(e){for(var t=1;t0&&0===n?"has-left-divider":null},e))}))})),r)},ub=n(173),lb=Object(h.a)({name:"Toolbar",compose:f.b,useState:ub.a,useProps:function(e,t){return Object(p.b)({role:"toolbar","aria-orientation":e.orientation},t)}}),db=Object(b.a)({as:"div",useHook:lb,useCreateElement:function(e,t,n){return Object(zf.a)(e,t,n)}});var fb=Object(c.forwardRef)((function(e,t){var n=e.label,r=Object(a.a)(e,["label"]),i=Object(ub.a)({loop:!0,baseId:r.id,rtl:Xe()});return Object(c.createElement)(tb.a.Provider,{value:i},Object(c.createElement)(db,Object(o.a)({ref:t,"aria-label":n},i,r)))}));var pb=Object(c.forwardRef)((function(e,t){var n=e.className,r=e.label,i=Object(a.a)(e,["className","label"]);if(!r)return Vs()("Using Toolbar without label prop",{alternative:"ToolbarGroup component",link:"https://developer.wordpress.org/block-editor/components/toolbar/"}),Object(c.createElement)(sb,Object(o.a)({},i,{className:n}));var s=l()("components-accessible-toolbar",n);return Object(c.createElement)(fb,Object(o.a)({className:s,label:r,ref:t},i))})),bb=Object(c.createContext)(),hb=bb.Provider;function vb(e){var t=e.children,n=Object(c.useState)(),r=Object(i.a)(n,2),o=r[0],a=r[1],s=Object(c.useMemo)((function(){return{lastFocusedElement:o,setLastFocusedElement:a}}),[o]);return Object(c.createElement)(hb,{value:s},t)}function mb(e){var t=ys.focus.focusable.find(e);if(t&&t.length)return t.filter((function(t){return t.closest('[role="row"]')===e}))}var yb=Object(c.forwardRef)((function(e,t){var n=e.children,r=Object(a.a)(e,["children"]),i=Object(c.useCallback)((function(e){var t=e.keyCode,n=e.metaKey,r=e.ctrlKey,o=e.altKey,i=e.shiftKey;if(!(n||r||o||i)&&Object(s.includes)([fr.UP,fr.DOWN,fr.LEFT,fr.RIGHT],t)){e.stopPropagation();var a=document.activeElement,c=e.currentTarget;if(c.contains(a)){var u=a.closest('[role="row"]'),l=mb(u),d=l.indexOf(a);if(Object(s.includes)([fr.LEFT,fr.RIGHT],t)){var f;if((f=t===fr.LEFT?Math.max(0,d-1):Math.min(d+1,l.length-1))===d)return void e.preventDefault();l[f].focus(),e.preventDefault()}else if(Object(s.includes)([fr.UP,fr.DOWN],t)){var p,b=Array.from(c.querySelectorAll('[role="row"]')),h=b.indexOf(u);if((p=t===fr.UP?Math.max(0,h-1):Math.min(h+1,b.length-1))===h)return void e.preventDefault();var v=mb(b[p]);if(!v||!v.length)return void e.preventDefault();v[Math.min(d,v.length-1)].focus(),e.preventDefault()}}}}),[]);return Object(c.createElement)(vb,null,Object(c.createElement)("table",Object(o.a)({},r,{role:"treegrid",onKeyDown:i,ref:t}),Object(c.createElement)("tbody",null,n)))}));var gb=Object(c.forwardRef)((function(e,t){var n=e.children,r=e.level,i=e.positionInSet,s=e.setSize,u=e.isExpanded,l=Object(a.a)(e,["children","level","positionInSet","setSize","isExpanded"]);return Object(c.createElement)("tr",Object(o.a)({},l,{ref:t,role:"row","aria-level":r,"aria-posinset":i,"aria-setsize":s,"aria-expanded":u}),n)}));function Ob(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var jb=Object(c.forwardRef)((function(e,t){var n,r=e.children,o=e.as,i=Object(a.a)(e,["children","as"]),s=Object(c.useRef)(),u=t||s,l=Object(c.useContext)(bb),d=l.lastFocusedElement,f=l.setLastFocusedElement;d&&(n=d===u.current?0:-1);var p=function(e){for(var t=1;t0&&Object(c.createElement)(ff,{className:"components-with-notices-ui",notices:this.state.noticeList,onRemove:this.removeNotice})},this.props))}}]),r}(c.Component)}))},function(e,t,n){"use strict";var r=n(0),o=n(7),i=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M20.1 5.1L16.9 2 6.2 12.7l-1.3 4.4 4.5-1.3L20.1 5.1zM4 20.8h8v-1.5H4v1.5z"}));t.a=i},,,,,,,,,,,function(e,t){e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&c.return&&c.return()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=function(){function e(e,t){for(var n=0;n0&&this.setState({visibleDays:(0,i.default)({},_,M)})}},{key:"componentWillUpdate",value:function(){this.today=(0,l.default)()}},{key:"onDayClick",value:function(e,t){if(t&&t.preventDefault(),!this.isBlocked(e)){var n=this.props,r=n.onDateChange,o=n.keepOpenOnDateSelect,i=n.onFocusChange,a=n.onClose;r(e),o||(i({focused:!1}),a({date:e}))}}},{key:"onDayMouseEnter",value:function(e){if(!this.isTouchDevice){var t=this.state,n=t.hoverDate,r=t.visibleDays,o=this.deleteModifier({},n,"hovered");o=this.addModifier(o,e,"hovered"),this.setState({hoverDate:e,visibleDays:(0,i.default)({},r,o)})}}},{key:"onDayMouseLeave",value:function(){var e=this.state,t=e.hoverDate,n=e.visibleDays;if(!this.isTouchDevice&&t){var r=this.deleteModifier({},t,"hovered");this.setState({hoverDate:null,visibleDays:(0,i.default)({},n,r)})}}},{key:"onPrevMonthClick",value:function(){var e=this.props,t=e.onPrevMonthClick,n=e.numberOfMonths,r=e.enableOutsideDays,o=this.state,a=o.currentMonth,c=o.visibleDays,s={};Object.keys(c).sort().slice(0,n+1).forEach((function(e){s[e]=c[e]}));var u=a.clone().subtract(1,"month"),l=(0,m.default)(u,1,r);this.setState({currentMonth:u,visibleDays:(0,i.default)({},s,this.getModifiers(l))},(function(){t(u.clone())}))}},{key:"onNextMonthClick",value:function(){var e=this.props,t=e.onNextMonthClick,n=e.numberOfMonths,r=e.enableOutsideDays,o=this.state,a=o.currentMonth,c=o.visibleDays,s={};Object.keys(c).sort().slice(1).forEach((function(e){s[e]=c[e]}));var u=a.clone().add(n,"month"),l=(0,m.default)(u,1,r),d=a.clone().add(1,"month");this.setState({currentMonth:d,visibleDays:(0,i.default)({},s,this.getModifiers(l))},(function(){t(d.clone())}))}},{key:"onMonthChange",value:function(e){var t=this.props,n=t.numberOfMonths,r=t.enableOutsideDays,o=t.orientation===k.VERTICAL_SCROLLABLE,i=(0,m.default)(e,n,r,o);this.setState({currentMonth:e.clone(),visibleDays:this.getModifiers(i)})}},{key:"onYearChange",value:function(e){var t=this.props,n=t.numberOfMonths,r=t.enableOutsideDays,o=t.orientation===k.VERTICAL_SCROLLABLE,i=(0,m.default)(e,n,r,o);this.setState({currentMonth:e.clone(),visibleDays:this.getModifiers(i)})}},{key:"getFirstFocusableDay",value:function(e){var t=this,n=this.props,o=n.date,i=n.numberOfMonths,a=e.clone().startOf("month");if(o&&(a=o.clone()),this.isBlocked(a)){for(var c=[],s=e.clone().add(i-1,"months").endOf("month"),u=a.clone();!(0,v.default)(u,s);)u=u.clone().add(1,"day"),c.push(u);var l=c.filter((function(e){return!t.isBlocked(e)&&(0,v.default)(e,a)}));if(l.length>0){var d=r(l,1);a=d[0]}}return a}},{key:"getModifiers",value:function(e){var t=this,n={};return Object.keys(e).forEach((function(r){n[r]={},e[r].forEach((function(e){n[r][(0,g.default)(e)]=t.getModifiersForDay(e)}))})),n}},{key:"getModifiersForDay",value:function(e){var t=this;return new Set(Object.keys(this.modifiers).filter((function(n){return t.modifiers[n](e)})))}},{key:"getStateForNewMonth",value:function(e){var t=this,n=e.initialVisibleMonth,r=e.date,o=e.numberOfMonths,i=e.enableOutsideDays,a=(n||(r?function(){return r}:function(){return t.today}))();return{currentMonth:a,visibleDays:this.getModifiers((0,m.default)(a,o,i))}}},{key:"addModifier",value:function(e,t,n){var r=this.props,o=r.numberOfMonths,a=r.enableOutsideDays,c=r.orientation,s=this.state,u=s.currentMonth,l=s.visibleDays,d=u,f=o;if(c===k.VERTICAL_SCROLLABLE?f=Object.keys(l).length:(d=d.clone().subtract(1,"month"),f+=2),!t||!(0,y.default)(t,d,f,a))return e;var p=(0,g.default)(t),b=(0,i.default)({},e);if(a)b=Object.keys(l).filter((function(e){return Object.keys(l[e]).indexOf(p)>-1})).reduce((function(t,r){var o=e[r]||l[r],a=new Set(o[p]);return a.add(n),(0,i.default)({},t,x({},r,(0,i.default)({},o,x({},p,a))))}),b);else{var h=(0,O.default)(t),v=e[h]||l[h],m=new Set(v[p]);m.add(n),b=(0,i.default)({},b,x({},h,(0,i.default)({},v,x({},p,m))))}return b}},{key:"deleteModifier",value:function(e,t,n){var r=this.props,o=r.numberOfMonths,a=r.enableOutsideDays,c=r.orientation,s=this.state,u=s.currentMonth,l=s.visibleDays,d=u,f=o;if(c===k.VERTICAL_SCROLLABLE?f=Object.keys(l).length:(d=d.clone().subtract(1,"month"),f+=2),!t||!(0,y.default)(t,d,f,a))return e;var p=(0,g.default)(t),b=(0,i.default)({},e);if(a)b=Object.keys(l).filter((function(e){return Object.keys(l[e]).indexOf(p)>-1})).reduce((function(t,r){var o=e[r]||l[r],a=new Set(o[p]);return a.delete(n),(0,i.default)({},t,x({},r,(0,i.default)({},o,x({},p,a))))}),b);else{var h=(0,O.default)(t),v=e[h]||l[h],m=new Set(v[p]);m.delete(n),b=(0,i.default)({},b,x({},h,(0,i.default)({},v,x({},p,m))))}return b}},{key:"isBlocked",value:function(e){var t=this.props,n=t.isDayBlocked,r=t.isOutsideRange;return n(e)||r(e)}},{key:"isHovered",value:function(e){var t=(this.state||{}).hoverDate;return(0,h.default)(e,t)}},{key:"isSelected",value:function(e){var t=this.props.date;return(0,h.default)(e,t)}},{key:"isToday",value:function(e){return(0,h.default)(e,this.today)}},{key:"isFirstDayOfWeek",value:function(e){var t=this.props.firstDayOfWeek;return e.day()===(t||l.default.localeData().firstDayOfWeek())}},{key:"isLastDayOfWeek",value:function(e){var t=this.props.firstDayOfWeek;return e.day()===((t||l.default.localeData().firstDayOfWeek())+6)%7}},{key:"render",value:function(){var e=this.props,t=e.numberOfMonths,n=e.orientation,r=e.monthFormat,o=e.renderMonthText,i=e.navPrev,c=e.navNext,s=e.onOutsideClick,u=e.withPortal,l=e.focused,d=e.enableOutsideDays,f=e.hideKeyboardShortcutsPanel,p=e.daySize,b=e.firstDayOfWeek,h=e.renderCalendarDay,v=e.renderDayContents,m=e.renderCalendarInfo,y=e.renderMonthElement,g=e.calendarInfoPosition,O=e.isFocused,j=e.isRTL,w=e.phrases,_=e.dayAriaLabelFormat,k=e.onBlur,E=e.showKeyboardShortcuts,x=e.weekDayFormat,C=e.verticalHeight,P=e.noBorder,D=e.transitionDuration,M=e.verticalBorderSpacing,T=e.horizontalMonthPadding,I=this.state,R=I.currentMonth,N=I.visibleDays;return a.default.createElement(S.default,{orientation:n,enableOutsideDays:d,modifiers:N,numberOfMonths:t,onDayClick:this.onDayClick,onDayMouseEnter:this.onDayMouseEnter,onDayMouseLeave:this.onDayMouseLeave,onPrevMonthClick:this.onPrevMonthClick,onNextMonthClick:this.onNextMonthClick,onMonthChange:this.onMonthChange,onYearChange:this.onYearChange,monthFormat:r,withPortal:u,hidden:!l,hideKeyboardShortcutsPanel:f,initialVisibleMonth:function(){return R},firstDayOfWeek:b,onOutsideClick:s,navPrev:i,navNext:c,renderMonthText:o,renderCalendarDay:h,renderDayContents:v,renderCalendarInfo:m,renderMonthElement:y,calendarInfoPosition:g,isFocused:O,getFirstFocusableDay:this.getFirstFocusableDay,onBlur:k,phrases:w,daySize:p,isRTL:j,showKeyboardShortcuts:E,weekDayFormat:x,dayAriaLabelFormat:_,verticalHeight:C,noBorder:P,transitionDuration:D,verticalBorderSpacing:M,horizontalMonthPadding:T})}}]),t}(a.default.Component);t.default=D,D.propTypes=C,D.defaultProps=P},,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";var r=n(0),o=n(7),i=Object(r.createElement)(o.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(r.createElement)(o.Path,{d:"M6.5 12.4L12 8l5.5 4.4-.9 1.2L12 10l-4.5 3.6-1-1.2z"}));t.a=i},function(e,t,n){"use strict";var r=n(0),o=n(7),i=Object(r.createElement)(o.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(r.createElement)(o.Path,{d:"M17.5 11.6L12 16l-5.5-4.4.9-1.2L12 14l4.5-3.6 1 1.2z"}));t.a=i},,,,,,,function(e,t,n){"use strict"; +*/!function(){"use strict";var n={}.hasOwnProperty;function o(){for(var e=[],t=0;t=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}},function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function a(e){for(var t=1;t=0||(o[n]=e[n]);return o}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(n=e[Symbol.iterator]()).next.bind(n)}n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return a})),n.d(t,"c",(function(){return s}))},function(e,t,n){"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(27);var o=n(37),a=n(31);function i(e){return function(e){if(Array.isArray(e))return Object(r.a)(e)}(e)||Object(o.a)(e)||Object(a.a)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},function(e,t){!function(){e.exports=this.wp.keycodes}()},function(e,t,n){"use strict";function r(e){return(r=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n.d(t,"a",(function(){return r}))},function(e,t){!function(){e.exports=this.regeneratorRuntime}()},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function r(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,c=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return i=e.done,e},e:function(e){c=!0,a=e},f:function(){try{i||null==n.return||n.return()}finally{if(c)throw a}}}}function b(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||(o[n]=e[n]);return o}n.d(t,"a",(function(){return r}))},function(e,t){!function(){e.exports=this.moment}()},function(e,t,n){"use strict";function r(e,t,n,r,o,a,i){try{var c=e[a](i),s=c.value}catch(e){return void n(e)}c.done?t(s):Promise.resolve(s).then(r,o)}function o(e){return function(){var t=this,n=arguments;return new Promise((function(o,a){var i=e.apply(t,n);function c(e){r(i,o,a,c,s,"next",e)}function s(e){r(i,o,a,c,s,"throw",e)}c(void 0)}))}}n.d(t,"a",(function(){return o}))},function(e,t){!function(){e.exports=this.wp.a11y}()},,function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(13),o=n(59);function a(e){var t=Object(r.useRef)(e);return Object(o.a)((function(){t.current=e})),t}},function(e,t,n){"use strict";function r(e){return e?e.ownerDocument||e:window.document}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n(13),o=n(76);function a(e,t){Object(r.useDebugValue)(e);var n=Object(r.useContext)(o.a);return null!=n[e]?n[e]:t}var i=n(55);var c=n(56);function s(e){var t,n,o,s=(o=e.compose,Array.isArray(o)?o:void 0!==o?[o]:[]),u=function(t,n){if(e.useOptions&&(t=e.useOptions(t,n)),e.name&&(t=function(e,t,n){void 0===t&&(t={}),void 0===n&&(n={});var o="use"+e+"Options";Object(r.useDebugValue)(o);var c=a(o);return c?Object(i.a)(Object(i.a)({},t),c(t,n)):t}(e.name,t,n)),e.compose)for(var o,c=Object(i.c)(s);!(o=c()).done;){t=o.value.__useOptions(t,n)}return t},l=function(t,n,o){if(void 0===t&&(t={}),void 0===n&&(n={}),void 0===o&&(o=!1),o||(t=u(t,n)),e.useProps&&(n=e.useProps(t,n)),e.name&&(n=function(e,t,n){void 0===t&&(t={}),void 0===n&&(n={});var o="use"+e+"Props";Object(r.useDebugValue)(o);var i=a(o);return i?i(t,n):n}(e.name,t,n)),e.compose)if(e.useComposeOptions&&(t=e.useComposeOptions(t,n)),e.useComposeProps)n=e.useComposeProps(t,n);else for(var c,l=Object(i.c)(s);!(c=l()).done;){n=(0,c.value)(t,n,!0)}var d={},f=n||{};for(var p in f)void 0!==f[p]&&(d[p]=f[p]);return d};l.__useOptions=u;var d=s.reduce((function(e,t){return e.push.apply(e,t.__keys||[]),e}),[]);return l.__keys=[].concat(d,(null===(t=e.useState)||void 0===t?void 0:t.__keys)||[],e.keys||[]),l.unstable_propsAreEqual=e.propsAreEqual||(null===(n=s[0])||void 0===n?void 0:n.unstable_propsAreEqual)||c.a,l}},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n(13),o=n(55),a=n(79);function i(e,t){for(var n={},r={},o=0,a=Object.keys(e);o=0?n[i]=e[i]:r[i]=e[i]}return[n,r]}var c=n(56);function s(e){var t,n=e.as,s=e.useHook,u=e.memo,l=e.propsAreEqual,d=void 0===l?null==s?void 0:s.unstable_propsAreEqual:l,f=e.keys,p=void 0===f?(null==s?void 0:s.__keys)||[]:f,b=e.useCreateElement,h=void 0===b?a.a:b,v=function(e,t){var r=e.as,a=void 0===r?n:r,c=Object(o.b)(e,["as"]);if(s){var u,l=i(c,p),d=l[0],f=l[1],b=s(d,Object(o.a)({ref:t},f)),v=b.wrapElement,m=Object(o.b)(b,["wrapElement"]),y=(null===(u=a.render)||void 0===u?void 0:u.__keys)||a.__keys,g=y&&i(c,y)[0],O=g?Object(o.a)(Object(o.a)({},m),g):m,j=h(a,O);return v?v(j):j}return h(a,Object(o.a)({ref:t},c))};return t=v,v=Object(r.forwardRef)(t),u&&(v=function(e,t){return Object(r.memo)(e,t)}(v,d)),v.__keys=p,v.unstable_propsAreEqual=d||c.a,v}},function(e,t,n){"use strict";n.d(t,"a",(function(){return f})),n.d(t,"b",(function(){return m})),n.d(t,"c",(function(){return b})),n.d(t,"d",(function(){return p})),n.d(t,"e",(function(){return g})),n.d(t,"f",(function(){return u})),n.d(t,"g",(function(){return x}));var r=n(15),o=n(13),a=n(59),i=n(62),c=n(61),s=n(65);function u(e){return e.slice().reverse()}function l(e,t){return Boolean(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_PRECEDING)}function d(e,t){return e.findIndex((function(e){return!(!e.ref.current||!t.ref.current)&&l(t.ref.current,e.ref.current)}))}function f(e,t){return t?e.find((function(e){return!e.disabled&&e.id!==t})):e.find((function(e){return!e.disabled}))}function p(e,t){if(t)return null==e?void 0:e.find((function(e){return e.id===t&&!e.disabled}))}function b(e){for(var t,n=[[]],o=function(){var e=t.value,r=n.find((function(t){return!t[0]||t[0].groupId===e.groupId}));r?r.push(e):n.push([e])},a=Object(r.c)(e);!(t=a()).done;)o();return n}function h(e){for(var t,n=0,o=Object(r.c)(e);!(t=o()).done;){var a=t.value.length;a>n&&(n=a)}return n}function v(e){for(var t=b(e),n=h(t),o=[],a=0;a=0||(o[n]=e[n]);return o}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(n=e[Symbol.iterator]()).next.bind(n)}n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return s}))},function(e,t,n){"use strict";function r(e,t){if(e===t)return!0;if(!e)return!1;if(!t)return!1;if("object"!=typeof e)return!1;if("object"!=typeof t)return!1;var n=Object.keys(e),r=Object.keys(t),o=n.length;if(r.length!==o)return!1;for(var a=0,i=n;a1&&"boolean"!=typeof t)throw new a('"allowMissing" argument must be a boolean');var n=S(e),r=n.length>0?n[0]:"",o=E("%"+r+"%",t),i=o.name,s=o.value,u=!1,l=o.alias;l&&(r=l[0],j(n,O([0,1],l)));for(var d=1,f=!0;d=n.length){var b=c(s,p);if(f=!!b,!t&&!(p in s))throw new a("base intrinsic for "+e+" exists, but the property is not available.");s=f&&"get"in b&&!("originalValue"in b.get)?b.get:s[p]}else f=g(s,p),s=s[p];f&&!u&&(v[i]=s)}}return s}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(13),o="undefined"==typeof window?r.useEffect:r.useLayoutEffect},,function(e,t,n){"use strict";function r(e,t){return function(e){return"function"==typeof e}(e)?e(t):e}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(13);function o(e){return Object(r.useState)(e)[0]}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(13);function o(e,t){void 0===t&&(t=null),e&&("function"==typeof e?e(t):e.current=t)}function a(e,t){return Object(r.useMemo)((function(){return null==e&&null==t?null:function(n){o(e,n),o(t,n)}}),[e,t])}},function(e,t){!function(){e.exports=this.wp.isShallowEqual}()},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(13),o=n(62),a=n(68);function i(e){void 0===e&&(e={});var t=Object(o.a)(e).baseId,n=Object(r.useContext)(a.a),i=Object(r.useRef)(0),c=Object(r.useState)((function(){return t||n()}));return{baseId:c[0],unstable_setBaseId:c[1],unstable_idCountRef:i}}i.__keys=["baseId","unstable_setBaseId","unstable_idCountRef"]},function(e,t,n){var r;!function(o){var a=/^\s+/,i=/\s+$/,c=0,s=o.round,u=o.min,l=o.max,d=o.random;function f(e,t){if(t=t||{},(e=e||"")instanceof f)return e;if(!(this instanceof f))return new f(e,t);var n=function(e){var t={r:0,g:0,b:0},n=1,r=null,c=null,s=null,d=!1,f=!1;"string"==typeof e&&(e=function(e){e=e.replace(a,"").replace(i,"").toLowerCase();var t,n=!1;if(D[e])e=D[e],n=!0;else if("transparent"==e)return{r:0,g:0,b:0,a:0,format:"name"};if(t=W.rgb.exec(e))return{r:t[1],g:t[2],b:t[3]};if(t=W.rgba.exec(e))return{r:t[1],g:t[2],b:t[3],a:t[4]};if(t=W.hsl.exec(e))return{h:t[1],s:t[2],l:t[3]};if(t=W.hsla.exec(e))return{h:t[1],s:t[2],l:t[3],a:t[4]};if(t=W.hsv.exec(e))return{h:t[1],s:t[2],v:t[3]};if(t=W.hsva.exec(e))return{h:t[1],s:t[2],v:t[3],a:t[4]};if(t=W.hex8.exec(e))return{r:N(t[1]),g:N(t[2]),b:N(t[3]),a:z(t[4]),format:n?"name":"hex8"};if(t=W.hex6.exec(e))return{r:N(t[1]),g:N(t[2]),b:N(t[3]),format:n?"name":"hex"};if(t=W.hex4.exec(e))return{r:N(t[1]+""+t[1]),g:N(t[2]+""+t[2]),b:N(t[3]+""+t[3]),a:z(t[4]+""+t[4]),format:n?"name":"hex8"};if(t=W.hex3.exec(e))return{r:N(t[1]+""+t[1]),g:N(t[2]+""+t[2]),b:N(t[3]+""+t[3]),format:n?"name":"hex"};return!1}(e));"object"==typeof e&&(K(e.r)&&K(e.g)&&K(e.b)?(p=e.r,b=e.g,h=e.b,t={r:255*I(p,255),g:255*I(b,255),b:255*I(h,255)},d=!0,f="%"===String(e.r).substr(-1)?"prgb":"rgb"):K(e.h)&&K(e.s)&&K(e.v)?(r=F(e.s),c=F(e.v),t=function(e,t,n){e=6*I(e,360),t=I(t,100),n=I(n,100);var r=o.floor(e),a=e-r,i=n*(1-t),c=n*(1-a*t),s=n*(1-(1-a)*t),u=r%6;return{r:255*[n,c,i,i,s,n][u],g:255*[s,n,n,c,i,i][u],b:255*[i,i,s,n,n,c][u]}}(e.h,r,c),d=!0,f="hsv"):K(e.h)&&K(e.s)&&K(e.l)&&(r=F(e.s),s=F(e.l),t=function(e,t,n){var r,o,a;function i(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}if(e=I(e,360),t=I(t,100),n=I(n,100),0===t)r=o=a=n;else{var c=n<.5?n*(1+t):n+t-n*t,s=2*n-c;r=i(s,c,e+1/3),o=i(s,c,e),a=i(s,c,e-1/3)}return{r:255*r,g:255*o,b:255*a}}(e.h,r,s),d=!0,f="hsl"),e.hasOwnProperty("a")&&(n=e.a));var p,b,h;return n=T(n),{ok:d,format:e.format||f,r:u(255,l(t.r,0)),g:u(255,l(t.g,0)),b:u(255,l(t.b,0)),a:n}}(e);this._originalInput=e,this._r=n.r,this._g=n.g,this._b=n.b,this._a=n.a,this._roundA=s(100*this._a)/100,this._format=t.format||n.format,this._gradientType=t.gradientType,this._r<1&&(this._r=s(this._r)),this._g<1&&(this._g=s(this._g)),this._b<1&&(this._b=s(this._b)),this._ok=n.ok,this._tc_id=c++}function p(e,t,n){e=I(e,255),t=I(t,255),n=I(n,255);var r,o,a=l(e,t,n),i=u(e,t,n),c=(a+i)/2;if(a==i)r=o=0;else{var s=a-i;switch(o=c>.5?s/(2-a-i):s/(a+i),a){case e:r=(t-n)/s+(t>1)+720)%360;--t;)r.h=(r.h+o)%360,a.push(f(r));return a}function P(e,t){t=t||6;for(var n=f(e).toHsv(),r=n.h,o=n.s,a=n.v,i=[],c=1/t;t--;)i.push(f({h:r,s:o,v:a})),a=(a+c)%1;return i}f.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},getLuminance:function(){var e,t,n,r=this.toRgb();return e=r.r/255,t=r.g/255,n=r.b/255,.2126*(e<=.03928?e/12.92:o.pow((e+.055)/1.055,2.4))+.7152*(t<=.03928?t/12.92:o.pow((t+.055)/1.055,2.4))+.0722*(n<=.03928?n/12.92:o.pow((n+.055)/1.055,2.4))},setAlpha:function(e){return this._a=T(e),this._roundA=s(100*this._a)/100,this},toHsv:function(){var e=b(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=b(this._r,this._g,this._b),t=s(360*e.h),n=s(100*e.s),r=s(100*e.v);return 1==this._a?"hsv("+t+", "+n+"%, "+r+"%)":"hsva("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHsl:function(){var e=p(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=p(this._r,this._g,this._b),t=s(360*e.h),n=s(100*e.s),r=s(100*e.l);return 1==this._a?"hsl("+t+", "+n+"%, "+r+"%)":"hsla("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHex:function(e){return h(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return function(e,t,n,r,o){var a=[A(s(e).toString(16)),A(s(t).toString(16)),A(s(n).toString(16)),A(L(r))];if(o&&a[0].charAt(0)==a[0].charAt(1)&&a[1].charAt(0)==a[1].charAt(1)&&a[2].charAt(0)==a[2].charAt(1)&&a[3].charAt(0)==a[3].charAt(1))return a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0)+a[3].charAt(0);return a.join("")}(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:s(this._r),g:s(this._g),b:s(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+s(this._r)+", "+s(this._g)+", "+s(this._b)+")":"rgba("+s(this._r)+", "+s(this._g)+", "+s(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:s(100*I(this._r,255))+"%",g:s(100*I(this._g,255))+"%",b:s(100*I(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+s(100*I(this._r,255))+"%, "+s(100*I(this._g,255))+"%, "+s(100*I(this._b,255))+"%)":"rgba("+s(100*I(this._r,255))+"%, "+s(100*I(this._g,255))+"%, "+s(100*I(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(M[h(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var t="#"+v(this._r,this._g,this._b,this._a),n=t,r=this._gradientType?"GradientType = 1, ":"";if(e){var o=f(e);n="#"+v(o._r,o._g,o._b,o._a)}return"progid:DXImageTransform.Microsoft.gradient("+r+"startColorstr="+t+",endColorstr="+n+")"},toString:function(e){var t=!!e;e=e||this._format;var n=!1,r=this._a<1&&this._a>=0;return t||!r||"hex"!==e&&"hex6"!==e&&"hex3"!==e&&"hex4"!==e&&"hex8"!==e&&"name"!==e?("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),n||this.toHexString()):"name"===e&&0===this._a?this.toName():this.toRgbString()},clone:function(){return f(this.toString())},_applyModification:function(e,t){var n=e.apply(null,[this].concat([].slice.call(t)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(O,arguments)},brighten:function(){return this._applyModification(j,arguments)},darken:function(){return this._applyModification(w,arguments)},desaturate:function(){return this._applyModification(m,arguments)},saturate:function(){return this._applyModification(y,arguments)},greyscale:function(){return this._applyModification(g,arguments)},spin:function(){return this._applyModification(k,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(C,arguments)},complement:function(){return this._applyCombination(_,arguments)},monochromatic:function(){return this._applyCombination(P,arguments)},splitcomplement:function(){return this._applyCombination(x,arguments)},triad:function(){return this._applyCombination(S,arguments)},tetrad:function(){return this._applyCombination(E,arguments)}},f.fromRatio=function(e,t){if("object"==typeof e){var n={};for(var r in e)e.hasOwnProperty(r)&&(n[r]="a"===r?e[r]:F(e[r]));e=n}return f(e,t)},f.equals=function(e,t){return!(!e||!t)&&f(e).toRgbString()==f(t).toRgbString()},f.random=function(){return f.fromRatio({r:d(),g:d(),b:d()})},f.mix=function(e,t,n){n=0===n?0:n||50;var r=f(e).toRgb(),o=f(t).toRgb(),a=n/100;return f({r:(o.r-r.r)*a+r.r,g:(o.g-r.g)*a+r.g,b:(o.b-r.b)*a+r.b,a:(o.a-r.a)*a+r.a})},f.readability=function(e,t){var n=f(e),r=f(t);return(o.max(n.getLuminance(),r.getLuminance())+.05)/(o.min(n.getLuminance(),r.getLuminance())+.05)},f.isReadable=function(e,t,n){var r,o,a=f.readability(e,t);switch(o=!1,(r=function(e){var t,n;t=((e=e||{level:"AA",size:"small"}).level||"AA").toUpperCase(),n=(e.size||"small").toLowerCase(),"AA"!==t&&"AAA"!==t&&(t="AA");"small"!==n&&"large"!==n&&(n="small");return{level:t,size:n}}(n)).level+r.size){case"AAsmall":case"AAAlarge":o=a>=4.5;break;case"AAlarge":o=a>=3;break;case"AAAsmall":o=a>=7}return o},f.mostReadable=function(e,t,n){var r,o,a,i,c=null,s=0;o=(n=n||{}).includeFallbackColors,a=n.level,i=n.size;for(var u=0;us&&(s=r,c=f(t[u]));return f.isReadable(e,c,{level:a,size:i})||!o?c:(n.includeFallbackColors=!1,f.mostReadable(e,["#fff","#000"],n))};var D=f.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},M=f.hexNames=function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}(D);function T(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function I(e,t){(function(e){return"string"==typeof e&&-1!=e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var n=function(e){return"string"==typeof e&&-1!=e.indexOf("%")}(e);return e=u(t,l(0,parseFloat(e))),n&&(e=parseInt(e*t,10)/100),o.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function R(e){return u(1,l(0,e))}function N(e){return parseInt(e,16)}function A(e){return 1==e.length?"0"+e:""+e}function F(e){return e<=1&&(e=100*e+"%"),e}function L(e){return o.round(255*parseFloat(e)).toString(16)}function z(e){return N(e)/255}var B,H,V,W=(H="[\\s|\\(]+("+(B="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+B+")[,|\\s]+("+B+")\\s*\\)?",V="[\\s|\\(]+("+B+")[,|\\s]+("+B+")[,|\\s]+("+B+")[,|\\s]+("+B+")\\s*\\)?",{CSS_UNIT:new RegExp(B),rgb:new RegExp("rgb"+H),rgba:new RegExp("rgba"+V),hsl:new RegExp("hsl"+H),hsla:new RegExp("hsla"+V),hsv:new RegExp("hsv"+H),hsva:new RegExp("hsva"+V),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function K(e){return!!W.CSS_UNIT.exec(e)}e.exports?e.exports=f:void 0===(r=function(){return f}.call(t,n,t,e))||(e.exports=r)}(Math)},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(15),o=n(51),a=n(50),i=n(56),c=Object(a.a)({name:"Box",keys:["unstable_system"],propsAreEqual:function(e,t){var n=e.unstable_system,o=Object(r.a)(e,["unstable_system"]),a=t.unstable_system,c=Object(r.a)(t,["unstable_system"]);return!(n!==a&&!Object(i.a)(n,a))&&Object(i.a)(o,c)}});Object(o.a)({as:"div",useHook:c})},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(13);var o=Object(r.createContext)((function(e){return void 0===e&&(e="id"),(e?e+"-":"")+Math.random().toString(32).substr(2,6)}))},,function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(57);function o(e){var t=Object(r.a)(e);if(!t)return!1;if(e.contains(t))return!0;var n=t.getAttribute("aria-activedescendant");return!!n&&(n===e.id||!!e.querySelector("#"+n))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=["button","color","file","image","reset","submit"];function o(e){if("BUTTON"===e.tagName)return!0;if("INPUT"===e.tagName){var t=e;return-1!==r.indexOf(t.type)}return!1}},function(e,t,n){"use strict";function r(e,t){return"matches"in e?e.matches(t):"msMatchesSelector"in e?e.msMatchesSelector(t):e.webkitMatchesSelector(t)}function o(e,t){if("closest"in e)return e.closest(t);do{if(r(e,t))return e;e=e.parentElement||e.parentNode}while(null!==e&&1===e.nodeType);return null}n.d(t,"a",(function(){return l})),n.d(t,"b",(function(){return s}));var a=n(57),i="input:not([type='hidden']):not([disabled]), select:not([disabled]), textarea:not([disabled]), a[href], button:not([disabled]), [tabindex], iframe, object, embed, area[href], audio[controls], video[controls], [contenteditable]:not([contenteditable='false'])";function c(e){return r(e,i)&&function(e){return e.offsetWidth>0||e.offsetHeight>0||e.getClientRects().length>0}(e)}function s(e){for(;e&&!c(e);)e=o(e,i);return e}function u(e){return Object(a.a)(e)===e}function l(e,t){var n=void 0===t?{}:t,r=n.isActive,o=void 0===r?u:r,a=n.preventScroll;return o(e)?-1:(e.focus({preventScroll:a}),o(e)?-1:requestAnimationFrame((function(){e.focus({preventScroll:a})})))}},function(e,t,n){"use strict";function r(e){return t=e.currentTarget,n=e.target,!(t===n||t.contains(n));var t,n}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return g}));var r=n(15),o=n(51),a=n(50),i=n(67),c=n(13),s=n(63),u=n(71),l=(n(81),n(48)),d=n(59),f=n(70),p=n(73),b=n(57),h=n(72);function v(e){return"undefined"!=typeof window&&-1!==window.navigator.userAgent.indexOf(e)}var m=v("Mac")&&!v("Chrome")&&(v("Safari")||v("Firefox"));function y(e){Object(f.a)(e)||e.focus()}var g=Object(a.a)({name:"Tabbable",compose:i.a,keys:["disabled","focusable"],useOptions:function(e,t){var n=t.disabled;return Object(r.b)({disabled:n},e)},useProps:function(e,t){var n=t.ref,o=t.tabIndex,a=t.onClick,i=t.onMouseDown,f=t.style,v=Object(r.a)(t,["ref","tabIndex","onClick","onMouseDown","style"]),g=Object(c.useRef)(null),O=Object(l.a)(a),j=Object(l.a)(i),w=e.disabled&&!e.focusable,k=Object(c.useState)(!0),_=k[0],S=k[1],E=_?o:o||0,x=e.disabled?Object(r.b)({pointerEvents:"none"},f):f,C=function(){if(m){var e=Object(c.useState)(null),t=e[0],n=e[1];return Object(c.useEffect)((function(){t&&(y(t),n(null))}),[t]),Object(c.useCallback)((function(e){var t=e.currentTarget;if(!Object(p.a)(e)&&Object(u.a)(t)){var r=Object(b.a)(t);if(r){var o="BODY"===r.tagName,a=Object(h.b)(t.parentElement);if(r===a||o&&!a)n(t);else if(a){a.addEventListener("focusin",(function(){return n(t)}),{once:!0})}else{r.addEventListener("blur",(function(){return y(t)}),{once:!0})}}}}),[])}}();Object(d.a)((function(){var e,t=g.current;t&&("BUTTON"!==(e=t).tagName&&"INPUT"!==e.tagName&&"SELECT"!==e.tagName&&"TEXTAREA"!==e.tagName&&"A"!==e.tagName&&"AUDIO"!==e.tagName&&"VIDEO"!==e.tagName&&S(!1))}),[]);var P=Object(c.useCallback)((function(t){var n;if(e.disabled)return t.stopPropagation(),void t.preventDefault();null===(n=O.current)||void 0===n||n.call(O,t)}),[e.disabled]),D=Object(c.useCallback)((function(t){var n;if(e.disabled)return t.stopPropagation(),void t.preventDefault();null===(n=j.current)||void 0===n||n.call(j,t),t.defaultPrevented||null==C||C(t)}),[e.disabled,C]);return Object(r.b)({ref:Object(s.a)(g,n),style:x,tabIndex:w?void 0:E,disabled:!(!w||!_)||void 0,"aria-disabled":!!e.disabled||void 0,onClick:P,onMouseDown:D},v)}});Object(o.a)({as:"div",useHook:g})},function(e,t){!function(){e.exports=this.wp.date}()},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(13),o=Object(r.createContext)({})},,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.DISPLAY_FORMAT="L",t.ISO_FORMAT="YYYY-MM-DD",t.ISO_MONTH_FORMAT="YYYY-MM",t.START_DATE="startDate",t.END_DATE="endDate",t.HORIZONTAL_ORIENTATION="horizontal",t.VERTICAL_ORIENTATION="vertical",t.VERTICAL_SCROLLABLE="verticalScrollable",t.ICON_BEFORE_POSITION="before",t.ICON_AFTER_POSITION="after",t.INFO_POSITION_TOP="top",t.INFO_POSITION_BOTTOM="bottom",t.INFO_POSITION_BEFORE="before",t.INFO_POSITION_AFTER="after",t.ANCHOR_LEFT="left",t.ANCHOR_RIGHT="right",t.OPEN_DOWN="down",t.OPEN_UP="up",t.DAY_SIZE=39,t.BLOCKED_MODIFIER="blocked",t.WEEKDAYS=[0,1,2,3,4,5,6],t.FANG_WIDTH_PX=20,t.FANG_HEIGHT_PX=10,t.DEFAULT_VERTICAL_SPACING=22,t.MODIFIER_KEY_NAMES=new Set(["Shift","Control","Alt","Meta"])},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(13),o=n(76),a=n(55);var i=function(e,t,n){void 0===n&&(n=t.children);var i=Object(r.useContext)(o.a);if(i.useCreateElement)return i.useCreateElement(e,t,n);if("string"==typeof e&&function(e){return"function"==typeof e}(n)){t.children;return n(Object(a.b)(t,["children"]))}return Object(r.createElement)(e,t,n)}},,function(e,t,n){"use strict";n(110),n(13)},function(e,t,n){"use strict";function r(e){var t=void 0===e?{}:e,n=t.keyMap,r=t.onKey,o=t.stopPropagation,a=t.onKeyDown,i=t.shouldKeyDown,c=void 0===i?function(){return!0}:i,s=t.preventDefault,u=void 0===s||s;return function(e){if(n){var t,i="function"==typeof n?n(e):n,s="function"==typeof u?u(e):u,l="function"==typeof o?o(e):o;if(e.key in i){var d=i[e.key];if("function"==typeof d&&c(e))return s&&e.preventDefault(),l&&e.stopPropagation(),r&&r(e),void d(e)}if(a&&"current"in a)null===(t=a.current)||void 0===t||t.call(a,e);else null==a||a(e)}}}n.d(t,"a",(function(){return r}))},,function(e,t,n){"use strict";var r=n(21),o=n(22),a=n(23),i=n(24),c=n(19),s=n(0),u=n(2),l=n(115),d=n(173);function f(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(c.a)(e);if(t){var o=Object(c.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(i.a)(this,n)}}var p=function(e){Object(a.a)(n,e);var t=f(n);function n(){var e;return Object(r.a)(this,n),(e=t.apply(this,arguments)).delayedSetIsOver=Object(u.debounce)((function(t){return e.setState({isOver:t})}),700),e.cancelIsMouseDown=e.createSetIsMouseDown(!1),e.isInMouseDown=!1,e.state={isOver:!1},e}return Object(o.a)(n,[{key:"componentWillUnmount",value:function(){this.delayedSetIsOver.cancel(),document.removeEventListener("mouseup",this.cancelIsMouseDown)}},{key:"emitToChild",value:function(e,t){var n=this.props.children;if(1===s.Children.count(n)){var r=s.Children.only(n);"function"==typeof r.props[e]&&r.props[e](t)}}},{key:"createToggleIsOver",value:function(e,t){var n=this;return function(r){if(n.emitToChild(e,r),!(r.currentTarget.disabled||"focus"===r.type&&n.isInMouseDown)){n.delayedSetIsOver.cancel();var o=Object(u.includes)(["focus","mouseenter"],r.type);o!==n.state.isOver&&(t?n.delayedSetIsOver(o):n.setState({isOver:o}))}}}},{key:"createSetIsMouseDown",value:function(e){var t=this;return function(n){t.emitToChild(e?"onMouseDown":"onMouseUp",n),document[e?"addEventListener":"removeEventListener"]("mouseup",t.cancelIsMouseDown),t.isInMouseDown=e}}},{key:"render",value:function(){var e=this.props,t=e.children,n=e.position,r=e.text,o=e.shortcut;if(1!==s.Children.count(t))return t;var a=s.Children.only(t),i=this.state.isOver;return Object(s.cloneElement)(a,{onMouseEnter:this.createToggleIsOver("onMouseEnter",!0),onMouseLeave:this.createToggleIsOver("onMouseLeave"),onClick:this.createToggleIsOver("onClick"),onFocus:this.createToggleIsOver("onFocus"),onBlur:this.createToggleIsOver("onBlur"),onMouseDown:this.createSetIsMouseDown(!0),children:Object(s.concatChildren)(a.props.children,i&&Object(s.createElement)(l.a,{focusOnMount:!1,position:n,className:"components-tooltip","aria-hidden":"true",animate:!1,noArrow:!0},r,Object(s.createElement)(d.a,{className:"components-tooltip__shortcut",shortcut:o})))})}}]),n}(s.Component);t.a=p},function(e,t,n){"use strict";var r=n(5),o=n(8),a=n(14),i=n(0),c=n(7),s=n(150);function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t1)for(var n=1;n2?arguments[2]:{},a=r(t);o&&(a=i.call(a,Object.getOwnPropertySymbols(t)));for(var c=0;c1&&void 0!==arguments[1]?arguments[1]:{},n=t.stylesPropName,c=void 0===n?"styles":n,l=t.themePropName,f=void 0===l?"theme":l,m=t.cssPropName,w=void 0===m?"css":m,k=t.flushBefore,_=void 0!==k&&k,S=t.pureComponent,E=void 0!==S&&S,x=void 0,C=void 0,P=void 0,D=void 0,M=g(E);function T(e){return e===u.DIRECTIONS.LTR?d.default.resolveLTR:d.default.resolveRTL}function I(e){return e===u.DIRECTIONS.LTR?P:D}function R(t,n){var r=I(t),o=t===u.DIRECTIONS.LTR?x:C,a=d.default.get();return o&&r===a||(t===u.DIRECTIONS.RTL?(C=e?d.default.createRTL(e):y,D=a,o=C):(x=e?d.default.createLTR(e):y,P=a,o=x)),o}function N(e,t){return{resolveMethod:T(e),styleDef:R(e)}}return function(e){var t=e.displayName||e.name||"Component",n=function(t){function n(e,t){p(this,n);var r=b(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,e,t)),o=r.context[u.CHANNEL]?r.context[u.CHANNEL].getState():j;return r.state=N(o),r}return h(n,t),o(n,[{key:"componentDidMount",value:function(){var e=this;this.context[u.CHANNEL]&&(this.channelUnsubscribe=this.context[u.CHANNEL].subscribe((function(t){e.setState(N(t))})))}},{key:"componentWillUnmount",value:function(){this.channelUnsubscribe&&this.channelUnsubscribe()}},{key:"render",value:function(){var t;_&&d.default.flush();var n=this.state,o=n.resolveMethod,a=n.styleDef;return i.default.createElement(e,r({},this.props,(v(t={},f,d.default.get()),v(t,c,a()),v(t,w,o),t)))}}]),n}(M);return n.WrappedComponent=e,n.displayName="withStyles("+String(t)+")",n.contextTypes=O,e.propTypes&&(n.propTypes=(0,a.default)({},e.propTypes),delete n.propTypes[c],delete n.propTypes[f],delete n.propTypes[w]),e.defaultProps&&(n.defaultProps=(0,a.default)({},e.defaultProps)),(0,s.default)(n,e)}};var a=f(n(95)),i=f(n(13)),c=f(n(28)),s=f(n(402)),u=n(405),l=f(n(406)),d=f(n(237));function f(e){return e&&e.__esModule?e:{default:e}}function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function b(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function h(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function v(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.css=d.default.resolveLTR,t.withStylesPropTypes={styles:c.default.object.isRequired,theme:c.default.object.isRequired,css:c.default.func.isRequired};var m={},y=function(){return m};function g(e){if(e){if(!i.default.PureComponent)throw new ReferenceError("withStyles() pureComponent option requires React 15.3.0 or later");return i.default.PureComponent}return i.default.Component}var O=v({},u.CHANNEL,l.default),j=u.DIRECTIONS.LTR},function(e,t,n){"use strict";var r=n(8),o=n(12),a=n(14),i=n(0),c=n(9),s=n.n(c),u=n(29),l=n(18),d=n(36),f=n.n(d),p=n(10),b=n(160),h=n(5);function v(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function m(e){for(var t=1;t0?c/2:u)+(u+c/2>window.innerWidth?window.innerWidth-u:c/2)},d=e.left;"right"===r?d=e.right:"middle"!==a&&(d=u);var f=e.right;"left"===r?f=e.left:"middle"!==a&&(f=u);var p,b={popoverLeft:d,contentWidth:d-c>0?c:d},h={popoverLeft:f,contentWidth:f+c>window.innerWidth?window.innerWidth-f:c},v=n,m=null;if(!o)if("center"===n&&l.contentWidth===c)v="center";else if("left"===n&&b.contentWidth===c)v="left";else if("right"===n&&h.contentWidth===c)v="right";else{var y="left"===(v=b.contentWidth>h.contentWidth?"left":"right")?b.contentWidth:h.contentWidth;m=y!==c?y:null}if(p="center"===v?l.popoverLeft:"left"===v?b.popoverLeft:h.popoverLeft,i){var g=i.getBoundingClientRect();p=Math.min(p,g.right-c)}return{xAxis:v,popoverLeft:p,contentWidth:m}}function g(e,t,n,r,o,a,i){var c=t.height;if(o){var s=(Object(u.getScrollContainer)(a)||document.body).getBoundingClientRect().top+c-i;if(e.top<=s)return{yAxis:n,popoverTop:Math.min(e.bottom,s)}}var l=e.top+e.height/2;"bottom"===r?l=e.bottom:"top"===r&&(l=e.top);var d={popoverTop:l,contentHeight:(l-c/2>0?c/2:l)+(l+c/2>window.innerHeight?window.innerHeight-l:c/2)},f={popoverTop:e.top,contentHeight:e.top-10-c>0?c:e.top-10},p={popoverTop:e.bottom,contentHeight:e.bottom+10+c>window.innerHeight?window.innerHeight-10-e.bottom:c},b=n,h=null;if(!o)if("middle"===n&&d.contentHeight===c)b="middle";else if("top"===n&&f.contentHeight===c)b="top";else if("bottom"===n&&p.contentHeight===c)b="bottom";else{var v="top"===(b=f.contentHeight>p.contentHeight?"top":"bottom")?f.contentHeight:p.contentHeight;h=v!==c?v:null}return{yAxis:b,popoverTop:"middle"===b?d.popoverTop:"top"===b?f.popoverTop:p.popoverTop,contentHeight:h}}var O=n(135),j=n(134),w=n(21),k=n(22),_=n(23),S=n(24),E=n(19),x=n(102);function C(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(E.a)(e);if(t){var o=Object(E.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(S.a)(this,n)}}var P=function(e){Object(_.a)(n,e);var t=C(n);function n(){return Object(w.a)(this,n),t.apply(this,arguments)}return Object(k.a)(n,[{key:"handleFocusOutside",value:function(e){this.props.onFocusOutside(e)}},{key:"render",value:function(){return this.props.children}}]),n}(i.Component),D=Object(x.a)(P),M=n(35),T=n(167),I=n(136),R=n(166),N=n(126),A=n(125),F=Object(j.a)(Object(O.a)((function(e){return e.children})));function L(e,t){var n,r=(n=t).ownerDocument.defaultView.getComputedStyle(n),o=r.paddingTop,a=r.paddingBottom,i=r.paddingLeft,c=r.paddingRight,s=o?parseInt(o,10):0,u=a?parseInt(a,10):0,l=i?parseInt(i,10):0,d=c?parseInt(c,10):0;return{x:e.left+l,y:e.top+s,width:e.width-l-d,height:e.height-s-u,left:e.left+l,right:e.right-d,top:e.top+s,bottom:e.bottom-u}}function z(e,t,n){n?e.getAttribute(t)!==n&&e.setAttribute(t,n):e.hasAttribute(t)&&e.removeAttribute(t)}function B(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";e.style[t]!==n&&(e.style[t]=n)}function H(e,t,n){n?e.classList.contains(t)||e.classList.add(t):e.classList.contains(t)&&e.classList.remove(t)}var V=function(e){var t=e.headerTitle,n=e.onClose,c=e.onKeyDown,d=e.children,h=e.className,v=e.noArrow,O=void 0===v||v,j=e.isAlternate,w=e.position,k=void 0===w?"bottom right":w,_=(e.range,e.focusOnMount),S=void 0===_?"firstElement":_,E=e.anchorRef,x=e.shouldAnchorIncludePadding,C=e.anchorRect,P=e.getAnchorRect,V=e.expandOnMobile,W=e.animate,K=void 0===W||W,U=e.onClickOutside,G=e.onFocusOutside,$=e.__unstableSticky,q=e.__unstableSlotName,Y=void 0===q?"Popover":q,Z=e.__unstableObserveElement,X=e.__unstableBoundaryParent,J=Object(a.a)(e,["headerTitle","onClose","onKeyDown","children","className","noArrow","isAlternate","position","range","focusOnMount","anchorRef","shouldAnchorIncludePadding","anchorRect","getAnchorRect","expandOnMobile","animate","onClickOutside","onFocusOutside","__unstableSticky","__unstableSlotName","__unstableObserveElement","__unstableBoundaryParent"]),Q=Object(i.useRef)(null),ee=Object(i.useRef)(null),te=Object(i.useRef)(),ne=Object(p.useViewportMatch)("medium","<"),re=Object(i.useState)(),oe=Object(o.a)(re,2),ae=oe[0],ie=oe[1],ce=Object(R.a)(Y),se=V&&ne,ue=Object(p.useResizeObserver)(),le=Object(o.a)(ue,2),de=le[0],fe=le[1];O=se||O,Object(i.useLayoutEffect)((function(){if(se)return H(te.current,"is-without-arrow",O),H(te.current,"is-alternate",j),z(te.current,"data-x-axis"),z(te.current,"data-y-axis"),B(te.current,"top"),B(te.current,"left"),B(ee.current,"maxHeight"),void B(ee.current,"maxWidth");var e=function(){if(te.current&&ee.current){var e=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=arguments.length>4?arguments[4]:void 0;if(t)return t;if(n){if(!e.current)return;return n(e.current)}if(!1!==r){if(!(r&&window.Range&&window.Element&&window.DOMRect))return;if(r instanceof window.Range)return Object(u.getRectangleFromRange)(r);if(r instanceof window.Element){var a=r.getBoundingClientRect();return o?a:L(a,r)}var i=r.top,c=r.bottom,s=i.getBoundingClientRect(),l=c.getBoundingClientRect(),d=new window.DOMRect(s.left,s.top,s.width,l.bottom-s.top);return o?d:L(d,r)}if(e.current){var f=e.current.parentNode,p=f.getBoundingClientRect();return o?p:L(p,f)}}(Q,C,P,E,x);if(e){var t,n,r=te.current,a=r.offsetParent,i=r.ownerDocument,c=0;if(a&&a!==i.body){var s=a.getBoundingClientRect();c=s.top,e=new window.DOMRect(e.left-s.left,e.top-s.top,e.width,e.height)}if(X)t=null===(n=te.current.closest(".popover-slot"))||void 0===n?void 0:n.parentNode;var l=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"top",r=arguments.length>3?arguments[3]:void 0,a=arguments.length>4?arguments[4]:void 0,i=arguments.length>5?arguments[5]:void 0,c=arguments.length>6?arguments[6]:void 0,s=n.split(" "),u=Object(o.a)(s,3),l=u[0],d=u[1],f=void 0===d?"center":d,p=u[2],b=g(e,t,l,p,r,a,i),h=y(e,t,f,p,r,b.yAxis,c);return m(m({},h),b)}(e,fe.height?fe:ee.current.getBoundingClientRect(),k,$,te.current,c,t),d=l.popoverTop,f=l.popoverLeft,p=l.xAxis,b=l.yAxis,h=l.contentHeight,v=l.contentWidth;"number"==typeof d&&"number"==typeof f&&(B(te.current,"top",d+"px"),B(te.current,"left",f+"px")),H(te.current,"is-without-arrow",O||"center"===p&&"middle"===b),H(te.current,"is-alternate",j),z(te.current,"data-x-axis",p),z(te.current,"data-y-axis",b),B(ee.current,"maxHeight","number"==typeof h?h+"px":""),B(ee.current,"maxWidth","number"==typeof v?v+"px":"");ie(({left:"right",right:"left"}[p]||"center")+" "+({top:"bottom",bottom:"top"}[b]||"middle"))}}};e();var t,n,r=window.setInterval(e,500),a=function(){window.cancelAnimationFrame(t),t=window.requestAnimationFrame(e)};return window.addEventListener("click",a),window.addEventListener("resize",e),window.addEventListener("scroll",e,!0),Z&&(n=new window.MutationObserver(e)).observe(Z,{attributes:!0}),function(){window.clearInterval(r),window.removeEventListener("resize",e),window.removeEventListener("scroll",e,!0),window.removeEventListener("click",a),window.cancelAnimationFrame(t),n&&n.disconnect()}}),[se,C,P,E,x,k,fe,$,Z,X]),function(e,t){Object(i.useEffect)((function(){var n=setTimeout((function(){if(e&&t.current)if("firstElement"!==e)"container"===e&&t.current.focus();else{var n=u.focus.tabbable.find(t.current)[0];n?n.focus():t.current.focus()}}),0);return function(){return clearTimeout(n)}}),[])}(S,ee);var pe=function(e){e.keyCode===l.ESCAPE&&n&&(e.stopPropagation(),n()),c&&c(e)};var be=Object(i.createElement)(D,{onFocusOutside:function(e){if(G)G(e);else if(U){var t;try{t=new window.MouseEvent("click")}catch(e){(t=document.createEvent("MouseEvent")).initMouseEvent("click",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null)}Object.defineProperty(t,"target",{get:function(){return e.relatedTarget}}),f()("Popover onClickOutside prop",{alternative:"onFocusOutside"}),U(t)}else n&&n()}},Object(i.createElement)(A.a,{type:K&&ae?"appear":null,options:{origin:ae}},(function(e){var o=e.className;return Object(i.createElement)(I.a,Object(r.a)({className:s()("components-popover",h,o,{"is-expanded":se,"is-without-arrow":O,"is-alternate":j})},J,{onKeyDown:pe,ref:te}),se&&Object(i.createElement)(T.a,null),se&&Object(i.createElement)("div",{className:"components-popover__header"},Object(i.createElement)("span",{className:"components-popover__header-title"},t),Object(i.createElement)(M.a,{className:"components-popover__close",icon:b.a,onClick:n})),Object(i.createElement)("div",{ref:ee,className:"components-popover__content",tabIndex:"-1"},Object(i.createElement)("div",{style:{position:"relative"}},de,d)))})));return S&&(be=Object(i.createElement)(F,null,be)),ce.ref&&(be=Object(i.createElement)(N.a,{name:Y},be)),E||C?be:Object(i.createElement)("span",{ref:Q},be)};V.Slot=function(e){var t=e.name,n=void 0===t?"Popover":t;return Object(i.createElement)(N.b,{bubblesVirtually:!0,name:n,className:"popover-slot"})};t.a=V},function(e,t,n){"use strict";function r(e){return e&&"object"==typeof e&&"default"in e?e.default:e}Object.defineProperty(t,"__esModule",{value:!0});var o=r(n(178)),a=r(n(179)),i=n(13),c=r(i),s=r(n(158)),u=r(n(180)),l={arr:Array.isArray,obj:function(e){return"[object Object]"===Object.prototype.toString.call(e)},fun:function(e){return"function"==typeof e},str:function(e){return"string"==typeof e},num:function(e){return"number"==typeof e},und:function(e){return void 0===e},nul:function(e){return null===e},set:function(e){return e instanceof Set},map:function(e){return e instanceof Map},equ:function(e,t){if(typeof e!=typeof t)return!1;if(l.str(e)||l.num(e))return e===t;if(l.obj(e)&&l.obj(t)&&Object.keys(e).length+Object.keys(t).length===0)return!0;var n;for(n in e)if(!(n in t))return!1;for(n in t)if(e[n]!==t[n])return!1;return!l.und(n)||e===t}};function d(){var e=i.useState(!1)[1];return i.useCallback((function(){return e((function(e){return!e}))}),[])}function f(e,t){return l.und(e)||l.nul(e)?t:e}function p(e){return l.und(e)?[]:l.arr(e)?e:[e]}function b(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r=n.length)break;a=n[o++]}else{if((o=n.next()).done)break;a=o.value}for(var i=a,c=!1,s=0;s=p.startTime+u.duration;else if(u.decay)v=b+g/(1-.998)*(1-Math.exp(-(1-.998)*(t-p.startTime))),(l=Math.abs(p.lastPosition-v)<.1)&&(h=v);else{d=void 0!==p.lastTime?p.lastTime:t,g=void 0!==p.lastVelocity?p.lastVelocity:u.initialVelocity,t>d+64&&(d=t);for(var O=Math.floor(t-d),j=0;jh:v=e);++n);return n-1}(e,a);return function(e,t,n,r,o,a,i,c,s){var u=s?s(e):e;if(un){if("identity"===c)return u;"clamp"===c&&(u=n)}if(r===o)return r;if(t===n)return e<=t?r:o;t===-1/0?u=-u:n===1/0?u-=t:u=(u-t)/(n-t);u=a(u),r===-1/0?u=-u:o===1/0?u+=r:u=u*(o-r)+r;return u}(e,a[t],a[t+1],o[t],o[t+1],s,i,c,r.map)}}var B=function(e){function t(n,r,o,a){var i;return(i=e.call(this)||this).calc=void 0,i.payload=n instanceof g&&!(n instanceof t)?n.getPayload():Array.isArray(n)?n:[n],i.calc=z(r,o,a),i}s(t,e);var n=t.prototype;return n.getValue=function(){return this.calc.apply(this,this.payload.map((function(e){return e.getValue()})))},n.updateConfig=function(e,t,n){this.calc=z(e,t,n)},n.interpolate=function(e,n,r){return new t(this,e,n,r)},t}(g);var H=function(e){function t(t){var n;return(n=e.call(this)||this).animatedStyles=new Set,n.value=void 0,n.startPosition=void 0,n.lastPosition=void 0,n.lastVelocity=void 0,n.startTime=void 0,n.lastTime=void 0,n.done=!1,n.setValue=function(e,t){void 0===t&&(t=!0),n.value=e,t&&n.flush()},n.value=t,n.startPosition=t,n.lastPosition=t,n}s(t,e);var n=t.prototype;return n.flush=function(){0===this.animatedStyles.size&&function e(t,n){"update"in t?n.add(t):t.getChildren().forEach((function(t){return e(t,n)}))}(this,this.animatedStyles),this.animatedStyles.forEach((function(e){return e.update()}))},n.clearStyles=function(){this.animatedStyles.clear()},n.getValue=function(){return this.value},n.interpolate=function(e,t,n){return new B(this,e,t,n)},t}(y),V=function(e){function t(t){var n;return(n=e.call(this)||this).payload=t.map((function(e){return new H(e)})),n}s(t,e);var n=t.prototype;return n.setValue=function(e,t){var n=this;void 0===t&&(t=!0),Array.isArray(e)?e.length===this.payload.length&&e.forEach((function(e,r){return n.payload[r].setValue(e,t)})):this.payload.forEach((function(n){return n.setValue(e,t)}))},n.getValue=function(){return this.payload.map((function(e){return e.getValue()}))},n.interpolate=function(e,t){return new B(this,e,t)},t}(g),W=0,K=function(){function e(){var e=this;this.id=void 0,this.idle=!0,this.hasChanged=!1,this.guid=0,this.local=0,this.props={},this.merged={},this.animations={},this.interpolations={},this.values={},this.configs=[],this.listeners=[],this.queue=[],this.localQueue=void 0,this.getValues=function(){return e.interpolations},this.id=W++}var t=e.prototype;return t.update=function(e){if(!e)return this;var t=h(e),n=t.delay,r=void 0===n?0:n,i=t.to,c=a(t,["delay","to"]);if(l.arr(i)||l.fun(i))this.queue.push(o({},c,{delay:r,to:i}));else if(i){var s={};Object.entries(i).forEach((function(e){var t,n=e[0],a=e[1],i=o({to:(t={},t[n]=a,t),delay:b(r,n)},c),u=s[i.delay]&&s[i.delay].to;s[i.delay]=o({},s[i.delay],i,{to:o({},u,i.to)})})),this.queue=Object.values(s)}return this.queue=this.queue.sort((function(e,t){return e.delay-t.delay})),this.diff(c),this},t.start=function(e){var t,n=this;if(this.queue.length){this.idle=!1,this.localQueue&&this.localQueue.forEach((function(e){var t=e.from,r=void 0===t?{}:t,a=e.to,i=void 0===a?{}:a;l.obj(r)&&(n.merged=o({},r,n.merged)),l.obj(i)&&(n.merged=o({},n.merged,i))}));var r=this.local=++this.guid,i=this.localQueue=this.queue;this.queue=[],i.forEach((function(t,o){var c=t.delay,s=a(t,["delay"]),u=function(t){o===i.length-1&&r===n.guid&&t&&(n.idle=!0,n.props.onRest&&n.props.onRest(n.merged)),e&&e()},d=l.arr(s.to)||l.fun(s.to);c?setTimeout((function(){r===n.guid&&(d?n.runAsync(s,u):n.diff(s).start(u))}),c):d?n.runAsync(s,u):n.diff(s).start(u)}))}else l.fun(e)&&this.listeners.push(e),this.props.onStart&&this.props.onStart(),t=this,F.has(t)||F.add(t),A||(A=!0,_(M||L));return this},t.stop=function(e){return this.listeners.forEach((function(t){return t(e)})),this.listeners=[],this},t.pause=function(e){var t;return this.stop(!0),e&&(t=this,F.has(t)&&F.delete(t)),this},t.runAsync=function(e,t){var n=this,r=(e.delay,a(e,["delay"])),i=this.local,c=Promise.resolve(void 0);if(l.arr(r.to))for(var s=function(e){var t=e,a=o({},r,h(r.to[t]));l.arr(a.config)&&(a.config=a.config[t]),c=c.then((function(){if(i===n.guid)return new Promise((function(e){return n.diff(a).start(e)}))}))},u=0;u=r.length)return"break";i=r[a++]}else{if((a=r.next()).done)return"break";i=a.value}var n=i.key,c=function(e){return e.key!==n};(l.und(t)||t===n)&&(e.current.instances.delete(n),e.current.transitions=e.current.transitions.filter(c),e.current.deleted=e.current.deleted.filter(c))},r=e.current.deleted,o=Array.isArray(r),a=0;for(r=o?r:r[Symbol.iterator]();;){var i;if("break"===n())break}e.current.forceUpdate()}var Z=function(e){function t(t){var n;return void 0===t&&(t={}),n=e.call(this)||this,!t.transform||t.transform instanceof y||(t=v.transform(t)),n.payload=t,n}return s(t,e),t}(O),X={transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199},J="[-+]?\\d*\\.?\\d+";function Q(){for(var e=arguments.length,t=new Array(e),n=0;n1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function ue(e,t,n){var r=n<.5?n*(1+t):n+t-n*t,o=2*n-r,a=se(o,r,e+1/3),i=se(o,r,e),c=se(o,r,e-1/3);return Math.round(255*a)<<24|Math.round(255*i)<<16|Math.round(255*c)<<8}function le(e){var t=parseInt(e,10);return t<0?0:t>255?255:t}function de(e){return(parseFloat(e)%360+360)%360/360}function fe(e){var t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function pe(e){var t=parseFloat(e);return t<0?0:t>100?1:t/100}function be(e){var t,n,r="number"==typeof(t=e)?t>>>0===t&&t>=0&&t<=4294967295?t:null:(n=ie.exec(t))?parseInt(n[1]+"ff",16)>>>0:X.hasOwnProperty(t)?X[t]:(n=ee.exec(t))?(le(n[1])<<24|le(n[2])<<16|le(n[3])<<8|255)>>>0:(n=te.exec(t))?(le(n[1])<<24|le(n[2])<<16|le(n[3])<<8|fe(n[4]))>>>0:(n=oe.exec(t))?parseInt(n[1]+n[1]+n[2]+n[2]+n[3]+n[3]+"ff",16)>>>0:(n=ce.exec(t))?parseInt(n[1],16)>>>0:(n=ae.exec(t))?parseInt(n[1]+n[1]+n[2]+n[2]+n[3]+n[3]+n[4]+n[4],16)>>>0:(n=ne.exec(t))?(255|ue(de(n[1]),pe(n[2]),pe(n[3])))>>>0:(n=re.exec(t))?(ue(de(n[1]),pe(n[2]),pe(n[3]))|fe(n[4]))>>>0:null;return null===r?e:"rgba("+((4278190080&(r=r||0))>>>24)+", "+((16711680&r)>>>16)+", "+((65280&r)>>>8)+", "+(255&r)/255+")"}var he=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,ve=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,me=new RegExp("("+Object.keys(X).join("|")+")","g"),ye={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},ge=["Webkit","Ms","Moz","O"];function Oe(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||ye.hasOwnProperty(e)&&ye[e]?(""+t).trim():t+"px"}ye=Object.keys(ye).reduce((function(e,t){return ge.forEach((function(n){return e[function(e,t){return e+t.charAt(0).toUpperCase()+t.substring(1)}(n,t)]=e[t]})),e}),ye);var je={};I((function(e){return new Z(e)})),P("div"),E((function(e){var t=e.output.map((function(e){return e.replace(ve,be)})).map((function(e){return e.replace(me,be)})),n=t[0].match(he).map((function(){return[]}));t.forEach((function(e){e.match(he).forEach((function(e,t){return n[t].push(+e)}))}));var r=t[0].match(he).map((function(t,r){return z(o({},e,{output:n[r]}))}));return function(e){var n=0;return t[0].replace(he,(function(){return r[n++](e)})).replace(/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,(function(e,t,n,r,o){return"rgba("+Math.round(t)+", "+Math.round(n)+", "+Math.round(r)+", "+o+")"}))}})),w(X),j((function(e,t){if(!e.nodeType||void 0===e.setAttribute)return!1;var n=t.style,r=t.children,o=t.scrollTop,i=t.scrollLeft,c=a(t,["style","children","scrollTop","scrollLeft"]),s="filter"===e.nodeName||e.parentNode&&"filter"===e.parentNode.nodeName;for(var u in void 0!==o&&(e.scrollTop=o),void 0!==i&&(e.scrollLeft=i),void 0!==r&&(e.textContent=r),n)if(n.hasOwnProperty(u)){var l=0===u.indexOf("--"),d=Oe(u,n[u],l);"float"===u&&(u="cssFloat"),l?e.style.setProperty(u,d):e.style[u]=d}for(var f in c){var p=s?f:je[f]||(je[f]=f.replace(/([A-Z])/g,(function(e){return"-"+e.toLowerCase()})));void 0!==e.getAttribute(p)&&e.setAttribute(p,c[f])}}),(function(e){return e}));var we,ke,_e=(we=function(e){return i.forwardRef((function(t,n){var r=d(),s=i.useRef(!0),u=i.useRef(null),f=i.useRef(null),p=i.useCallback((function(e){var t=u.current;u.current=new N(e,(function(){var e=!1;f.current&&(e=v.fn(f.current,u.current.getAnimatedValue())),f.current&&!1!==e||r()})),t&&t.detach()}),[]);i.useEffect((function(){return function(){s.current=!1,u.current&&u.current.detach()}}),[]),i.useImperativeHandle(n,(function(){return T(f,s,r)})),p(t);var b,h=u.current.getValue(),m=(h.scrollTop,h.scrollLeft,a(h,["scrollTop","scrollLeft"])),y=(b=e,!l.fun(b)||b.prototype instanceof c.Component?function(e){return f.current=function(e,t){return t&&(l.fun(t)?t(e):l.obj(t)&&(t.current=e)),e}(e,n)}:void 0);return c.createElement(e,o({},m,{ref:y}))}))},void 0===(ke=!1)&&(ke=!0),function(e){return(l.arr(e)?e:Object.keys(e)).reduce((function(e,t){var n=ke?t[0].toLowerCase()+t.substring(1):t;return e[n]=we(n),e}),we)}),Se=_e(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]);t.apply=_e,t.config={default:{tension:170,friction:26},gentle:{tension:120,friction:14},wobbly:{tension:180,friction:12},stiff:{tension:210,friction:20},slow:{tension:280,friction:60},molasses:{tension:280,friction:120}},t.update=L,t.animated=Se,t.a=Se,t.interpolate=function(e,t,n){return e&&new B(e,t,n)},t.Globals=R,t.useSpring=function(e){var t=l.fun(e),n=U(1,t?e:[e]),r=n[0],o=n[1],a=n[2];return t?[r[0],o,a]:r},t.useTrail=function(e,t){var n=i.useRef(!1),r=l.fun(t),a=b(t),c=i.useRef(),s=U(e,(function(e,t){return 0===e&&(c.current=[]),c.current.push(t),o({},a,{config:b(a.config,e),attach:e>0&&function(){return c.current[e-1]}})})),u=s[0],d=s[1],f=s[2],p=i.useMemo((function(){return function(e){return d((function(t,n){e.reverse;var r=e.reverse?t+1:t-1,i=c.current[r];return o({},e,{config:b(e.config||a.config,t),attach:i&&function(){return i}})}))}}),[e,a.reverse]);return i.useEffect((function(){n.current&&!r&&p(t)})),i.useEffect((function(){n.current=!0}),[]),r?[u,p,f]:u},t.useTransition=function(e,t,n){var r=o({items:e,keys:t||function(e){return e}},n),c=q(r),s=c.lazy,u=void 0!==s&&s,l=(c.unique,c.reset),f=void 0!==l&&l,p=(c.enter,c.leave,c.update,c.onDestroyed),h=(c.keys,c.items,c.onFrame),v=c.onRest,m=c.onStart,y=c.ref,g=a(c,["lazy","unique","reset","enter","leave","update","onDestroyed","keys","items","onFrame","onRest","onStart","ref"]),O=d(),j=i.useRef(!1),w=i.useRef({mounted:!1,first:!0,deleted:[],current:{},transitions:[],prevProps:{},paused:!!r.ref,instances:!j.current&&new Map,forceUpdate:O});return i.useImperativeHandle(r.ref,(function(){return{start:function(){return Promise.all(Array.from(w.current.instances).map((function(e){var t=e[1];return new Promise((function(e){return t.start(e)}))})))},stop:function(e){return Array.from(w.current.instances).forEach((function(t){return t[1].stop(e)}))},get controllers(){return Array.from(w.current.instances).map((function(e){return e[1]}))}}})),w.current=function(e,t){var n=e.first,r=e.prevProps,i=a(e,["first","prevProps"]),c=q(t),s=c.items,u=c.keys,l=c.initial,d=c.from,f=c.enter,p=c.leave,h=c.update,v=c.trail,m=void 0===v?0:v,y=c.unique,g=c.config,O=c.order,j=void 0===O?["enter","leave","update"]:O,w=q(r),k=w.keys,_=w.items,S=o({},i.current),E=[].concat(i.deleted),x=Object.keys(S),C=new Set(x),P=new Set(u),D=u.filter((function(e){return!C.has(e)})),M=i.transitions.filter((function(e){return!e.destroyed&&!P.has(e.originalKey)})).map((function(e){return e.originalKey})),T=u.filter((function(e){return C.has(e)})),I=-m;for(;j.length;){switch(j.shift()){case"enter":D.forEach((function(e,t){y&&E.find((function(t){return t.originalKey===e}))&&(E=E.filter((function(t){return t.originalKey!==e})));var r=u.indexOf(e),o=s[r],a=n&&void 0!==l?"initial":"enter";S[e]={slot:a,originalKey:e,key:y?String(e):G++,item:o,trail:I+=m,config:b(g,o,a),from:b(n&&void 0!==l?l||{}:d,o),to:b(f,o)}}));break;case"leave":M.forEach((function(e){var t=k.indexOf(e),n=_[t];E.unshift(o({},S[e],{slot:"leave",destroyed:!0,left:k[Math.max(0,t-1)],right:k[Math.min(k.length,t+1)],trail:I+=m,config:b(g,n,"leave"),to:b(p,n)})),delete S[e]}));break;case"update":T.forEach((function(e){var t=u.indexOf(e),n=s[t];S[e]=o({},S[e],{item:n,slot:"update",trail:I+=m,config:b(g,n,"update"),to:b(h,n)})}))}}var R=u.map((function(e){return S[e]}));return E.forEach((function(e){var t,n=e.left,r=(e.right,a(e,["left","right"]));-1!==(t=R.findIndex((function(e){return e.originalKey===n})))&&(t+=1),t=Math.max(0,t),R=[].concat(R.slice(0,t),[r],R.slice(t))})),o({},i,{changed:D.length||M.length||T.length,first:n&&0===D.length,transitions:R,current:S,deleted:E,prevProps:t})}(w.current,r),w.current.changed&&w.current.transitions.forEach((function(e){var t=e.slot,n=e.from,r=e.to,a=e.config,i=e.trail,c=e.key,s=e.item;w.current.instances.has(c)||w.current.instances.set(c,new K);var l=w.current.instances.get(c),d=o({},g,{to:r,from:n,config:a,ref:y,onRest:function(n){w.current.mounted&&(e.destroyed&&(y||u||Y(w,c),p&&p(s)),!Array.from(w.current.instances).some((function(e){return!e[1].idle}))&&(y||u)&&w.current.deleted.length>0&&Y(w),v&&v(s,t,n))},onStart:m&&function(){return m(s,t)},onFrame:h&&function(e){return h(s,t,e)},delay:i,reset:f&&"enter"===t});l.update(d),w.current.paused||l.start()})),i.useEffect((function(){return w.current.mounted=j.current=!0,function(){w.current.mounted=j.current=!1,Array.from(w.current.instances).map((function(e){return e[1].destroy()})),w.current.instances.clear()}}),[]),w.current.transitions.map((function(e){var t=e.item,n=e.slot,r=e.key;return{item:t,key:r,state:n,props:w.current.instances.get(r).getValues()}}))},t.useChain=function(e,t,n){void 0===n&&(n=1e3);var r=i.useRef();i.useEffect((function(){l.equ(e,r.current)?e.forEach((function(e){var t=e.current;return t&&t.start()})):t?e.forEach((function(e,r){var a=e.current;if(a){var i=a.controllers;if(i.length){var c=n*t[r];i.forEach((function(e){e.queue=e.queue.map((function(e){return o({},e,{delay:e.delay+c})})),e.start()}))}}})):e.reduce((function(e,t,n){var r=t.current;return e.then((function(){return r.start()}))}),Promise.resolve()),r.current=e}))},t.useSprings=U},,,,function(e,t){function n(e,t,n,r){var o,a=null==(o=r)||"number"==typeof o||"boolean"==typeof o?r:n(r),i=t.get(a);return void 0===i&&(i=e.call(this,r),t.set(a,i)),i}function r(e,t,n){var r=Array.prototype.slice.call(arguments,3),o=n(r),a=t.get(o);return void 0===a&&(a=e.apply(this,r),t.set(o,a)),a}function o(e,t,n,r,o){return n.bind(t,e,r,o)}function a(e,t){return o(e,this,1===e.length?n:r,t.cache.create(),t.serializer)}function i(){return JSON.stringify(arguments)}function c(){this.cache=Object.create(null)}c.prototype.has=function(e){return e in this.cache},c.prototype.get=function(e){return this.cache[e]},c.prototype.set=function(e,t){this.cache[e]=t};var s={create:function(){return new c}};e.exports=function(e,t){var n=t&&t.cache?t.cache:s,r=t&&t.serializer?t.serializer:i;return(t&&t.strategy?t.strategy:a)(e,{cache:n,serializer:r})},e.exports.strategies={variadic:function(e,t){return o(e,this,r,t.cache.create(),t.serializer)},monadic:function(e,t){return o(e,this,n,t.cache.create(),t.serializer)}}},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},,function(e,t,n){"use strict";n.d(t,"a",(function(){return _})),n.d(t,"b",(function(){return k}));var r=n(15),o=n(51),a=n(50),i=n(67),c=n(13),s=n(63),u=(n(81),n(48)),l=n(54),d=n(57),f=n(74),p=n(79),b=n(82),h=n(49),v=n(97),m=n(106),y=n(52),g="undefined"!=typeof window&&"msCrypto"in window;var O="undefined"!=typeof window&&"msCrypto"in window;function j(e,t,n){var r=Object(u.a)(n);return Object(c.useCallback)((function(n){var o;if(e&&function(e){return!!Object(l.a)(e)&&(!e.metaKey&&"Tab"!==e.key)}(n)){var a=null==t?void 0:t.ref.current;if(a&&(Object(m.a)(a,n.type,n),n.currentTarget.contains(a)))return n.stopPropagation(),void n.preventDefault()}null===(o=r.current)||void 0===o||o.call(r,n)}),[e,t])}function w(e,t){return null==e?void 0:e.some((function(e){return!!t&&e.ref.current===t}))}var k=Object(a.a)({name:"Composite",compose:[f.a],useState:y.g,useOptions:function(e){return Object(r.b)(Object(r.b)({},e),{},{currentId:Object(y.e)(e)})},useProps:function(e,t){var n=t.ref,o=t.onFocus,a=t.onBlur,i=t.onKeyDown,f=t.onKeyUp,p=Object(r.a)(t,["ref","onFocus","onBlur","onKeyDown","onKeyUp"]),m=Object(c.useRef)(null),k=Object(y.d)(e.items,e.currentId),_=Object(c.useRef)(void 0),S=Object(u.a)(o),E=Object(u.a)(a),x=O?function(e){var t=Object(c.useRef)(null);return Object(c.useEffect)((function(){var n=Object(h.a)(e.current),r=function(e){var n=e.target;t.current=n};return n.addEventListener("focus",r,!0),function(){n.removeEventListener("focus",r,!0)}}),[]),t}(m):void 0;Object(c.useEffect)((function(){var t=m.current;t&&e.unstable_moves&&!k&&t.focus()}),[e.unstable_moves,k]);var C=j(e.unstable_virtual,k,i),P=j(e.unstable_virtual,k,f),D=Object(c.useCallback)((function(t){var n;if(e.unstable_virtual){var r,o,a=(null==x?void 0:x.current)||t.relatedTarget,i=w(e.items,a);if(Object(l.a)(t)&&!i)return null===(r=S.current)||void 0===r||r.call(S,t),void(null==k||null===(o=k.ref.current)||void 0===o||o.focus());if(i)return void t.stopPropagation()}else if(Object(l.a)(t)){var c;null===(c=e.setCurrentId)||void 0===c||c.call(e,null)}null===(n=S.current)||void 0===n||n.call(S,t)}),[e.unstable_virtual,e.items,k,e.setCurrentId]),M=Object(c.useCallback)((function(t){var n;if(e.unstable_virtual){var r,o=w(e.items,t.target),a=function(e){return g?Object(d.a)(e.target):e.relatedTarget}(t),i=w(e.items,a);if(Object(l.a)(t)&&i)return(null===(r=_.current)||void 0===r?void 0:r.ref.current)&&Object(v.a)(_.current.ref.current,"blur",t),_.current=k,void t.stopPropagation();o?_.current=k:((null==k?void 0:k.ref.current)&&Object(v.a)(k.ref.current,"blur",t),_.current=void 0)}null===(n=E.current)||void 0===n||n.call(E,t)}),[e.unstable_virtual,e.items,k]),T=Object(c.useMemo)((function(){return Object(b.a)({onKeyDown:C,stopPropagation:!0,shouldKeyDown:function(t){return Object(l.a)(t)&&null===e.currentId},keyMap:function(){var t,n="horizontal"!==e.orientation,r="vertical"!==e.orientation,o=!!(null===(t=e.groups)||void 0===t?void 0:t.length),a=e.first&&function(){return e.first()},i=e.last&&function(){return e.last()};return{ArrowUp:(o||n)&&function(){if(o){var t,n=(a=e.items,Object(y.a)(Object(y.b)(Object(y.f)(Object(y.c)(a)))));if(null==n?void 0:n.id)null===(t=e.move)||void 0===t||t.call(e,n.id)}else{var r;null===(r=e.last)||void 0===r||r.call(e)}var a},ArrowRight:(o||r)&&a,ArrowDown:(o||n)&&a,ArrowLeft:(o||r)&&i,Home:a,End:i,PageUp:a,PageDown:i}}})}),[C,e.currentId,e.orientation,e.groups,e.items,e.move,e.last,e.first]);return Object(r.b)({ref:Object(s.a)(m,n),id:e.baseId,onFocus:D,onBlur:M,onKeyDown:T,onKeyUp:P,"aria-activedescendant":e.unstable_virtual&&(null==k?void 0:k.id)||void 0},p)},useComposeProps:function(e,t){t=Object(i.a)(e,t,!0);var n=Object(f.a)(e,t,!0);return e.unstable_virtual||null===e.currentId?n:Object(r.b)(Object(r.b)({},t),{},{ref:n.ref})}}),_=Object(o.a)({as:"div",useHook:k,useCreateElement:function(e,t,n){return Object(p.a)(e,t,n)}})},function(e,t,n){"use strict";n.d(t,"a",(function(){return w})),n.d(t,"b",(function(){return j}));var r=n(15),o=n(51),a=n(50),i=n(13),c=n(63),s=(n(81),n(48)),u=n(54),l=n(70),d=n(73),f=n(72),p=n(89),b=n(82),h=n(49),v=n(52),m=n(96),y=n(98),g=n(99);function O(e){return e.querySelector("[data-composite-item-widget]")}var j=Object(a.a)({name:"CompositeItem",compose:[p.a,m.a],useState:v.g,propsAreEqual:function(e,t){if(!t.id||e.id!==t.id)return p.a.unstable_propsAreEqual(e,t);var n=e.currentId,o=e.unstable_moves,a=Object(r.a)(e,["currentId","unstable_moves"]),i=t.currentId,c=t.unstable_moves,s=Object(r.a)(t,["currentId","unstable_moves"]);if(i!==n){if(t.id===i||t.id===n)return!1}else if(o!==c)return!1;return p.a.unstable_propsAreEqual(a,s)},useOptions:function(e){return Object(r.b)(Object(r.b)({},e),{},{id:e.id,currentId:Object(v.e)(e),unstable_clickOnSpace:!e.unstable_hasActiveWidget&&e.unstable_clickOnSpace})},useProps:function(e,t){var n,o=t.ref,a=t.tabIndex,p=void 0===a?0:a,v=t.onFocus,m=t.onBlur,j=t.onKeyDown,w=t.onClick,k=Object(r.a)(t,["ref","tabIndex","onFocus","onBlur","onKeyDown","onClick"]),_=Object(i.useRef)(null),S=e.id,E=e.disabled&&!e.focusable,x=e.currentId===S,C=Object(s.a)(x),P=Object(i.useRef)(!1),D=function(e){return Object(i.useMemo)((function(){var t;return null===(t=e.items)||void 0===t?void 0:t.find((function(t){return e.id&&t.id===e.id}))}),[e.items,e.id])}(e),M=Object(s.a)(v),T=Object(s.a)(m),I=Object(s.a)(j),R=Object(s.a)(w),N=!e.unstable_virtual&&!e.unstable_hasActiveWidget&&x||!(null===(n=e.items)||void 0===n?void 0:n.length);Object(i.useEffect)((function(){var t;if(S)return null===(t=e.registerItem)||void 0===t||t.call(e,{id:S,ref:_,disabled:!!E}),function(){var t;null===(t=e.unregisterItem)||void 0===t||t.call(e,S)}}),[S,E,e.registerItem,e.unregisterItem]),Object(i.useEffect)((function(){var t=_.current;t&&e.unstable_moves&&C.current&&t.focus()}),[e.unstable_moves]);var A=Object(i.useCallback)((function(t){var n,o;if(null===(n=M.current)||void 0===n||n.call(M,t),!t.defaultPrevented&&!Object(d.a)(t)&&S&&!function(e,t){if(Object(u.a)(e))return!1;for(var n,o=Object(r.c)(t);!(n=o()).done;){if(n.value.ref.current===e.target)return!0}return!1}(t,e.items)&&(null===(o=e.setCurrentId)||void 0===o||o.call(e,S),e.unstable_virtual&&e.baseId&&Object(u.a)(t))){var a=t.target,i=Object(h.a)(a).getElementById(e.baseId);i&&(P.current=!0,Object(f.a)(i))}}),[S,e.items,e.setCurrentId,e.unstable_virtual,e.baseId]),F=Object(i.useCallback)((function(t){var n;if(e.unstable_virtual&&P.current)return P.current=!1,t.preventDefault(),void t.stopPropagation();null===(n=T.current)||void 0===n||n.call(T,t)}),[e.unstable_virtual]),L=Object(i.useCallback)((function(e){var t;if(null===(t=I.current)||void 0===t||t.call(I,e),Object(u.a)(e)&&1===e.key.length&&" "!==e.key){var n=O(e.currentTarget);if(n&&Object(y.a)(n)){n.focus();var r=e.key;window.requestAnimationFrame((function(){Object(g.a)(n,r)}))}}}),[]),z=Object(i.useMemo)((function(){return Object(b.a)({onKeyDown:L,stopPropagation:!0,shouldKeyDown:u.a,keyMap:function(){var t="horizontal"!==e.orientation,n="vertical"!==e.orientation,r=!!(null==D?void 0:D.groupId),o=function(e){var t=O(e.currentTarget);t&&Object(y.a)(t)&&Object(g.a)(t,"")},a=e.up&&function(){return e.up()},i=e.next&&function(){return e.next()},c=e.down&&function(){return e.down()},s=e.previous&&function(){return e.previous()};return{Delete:o,Backspace:o,ArrowUp:(r||t)&&a,ArrowRight:(r||n)&&i,ArrowDown:(r||t)&&c,ArrowLeft:(r||n)&&s,Home:function(t){var n,o;!r||t.ctrlKey?null===(n=e.first)||void 0===n||n.call(e):null===(o=e.previous)||void 0===o||o.call(e,!0)},End:function(t){var n,o;!r||t.ctrlKey?null===(n=e.last)||void 0===n||n.call(e):null===(o=e.next)||void 0===o||o.call(e,!0)},PageUp:function(){var t,n;r?null===(t=e.up)||void 0===t||t.call(e,!0):null===(n=e.first)||void 0===n||n.call(e)},PageDown:function(){var t,n;r?null===(t=e.down)||void 0===t||t.call(e,!0):null===(n=e.last)||void 0===n||n.call(e)}}}})}),[L,e.orientation,D,e.up,e.next,e.down,e.previous,e.first,e.last]),B=Object(i.useCallback)((function(e){var t;if(null===(t=R.current)||void 0===t||t.call(R,e),!e.defaultPrevented){var n=O(e.currentTarget);n&&!Object(l.a)(n)&&n.focus()}}),[]);return Object(r.b)({ref:Object(c.a)(_,o),id:S,tabIndex:N?p:-1,"aria-selected":!(!e.unstable_virtual||!x)||void 0,onFocus:A,onBlur:F,onKeyDown:z,onClick:B},k)}}),w=Object(o.a)({as:"button",memo:!0,useHook:j})},function(e,t,n){"use strict";n.d(t,"b",(function(){return u})),n.d(t,"a",(function(){return l}));var r=n(5),o=n(12),a=n(9),i=n.n(a);function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function s(e){for(var t=1;t2?n-2:0),o=2;o0&&void 0!==arguments[0]?arguments[0]:{},t=e.htmlDocument,n=void 0===t?document:t,i=e.className,c=void 0===i?"lockscroll":i,l=0,d=0;function f(e){var t=n.scrollingElement||n.body;e&&(d=t.scrollTop);var r=e?"add":"remove";t.classList[r](c),n.documentElement.classList[r](c),e||(t.scrollTop=d)}function p(){0===l&&f(!0),++l}function b(){1===l&&f(!1),--l}return function(e){Object(a.a)(n,e);var t=u(n);function n(){return Object(r.a)(this,n),t.apply(this,arguments)}return Object(o.a)(n,[{key:"componentDidMount",value:function(){p()}},{key:"componentWillUnmount",value:function(){b()}},{key:"render",value:function(){return null}}]),n}(s.Component)}()},function(e,t,n){"use strict";(function(e){var r=n(0),o=n(2),a=n(9),i=n.n(a),c=n(46),s=n(1),u=(n(92),n(35));t.a=Object(r.forwardRef)((function(t,n){var a=t.className,l=t.children,d=t.spokenMessage,f=void 0===d?l:d,p=t.politeness,b=void 0===p?"polite":p,h=t.actions,v=void 0===h?[]:h,m=t.onRemove,y=void 0===m?o.noop:m;!function(e,t){var n="string"==typeof e?e:Object(r.renderToString)(e);Object(r.useEffect)((function(){n&&Object(c.speak)(n,t)}),[n,t])}(f,b),Object(r.useEffect)((function(){var e=setTimeout((function(){y()}),1e4);return function(){return clearTimeout(e)}}),[]);var g=i()(a,"components-snackbar");return v&&v.length>1&&(void 0!==e&&e.env,v=[v[0]]),Object(r.createElement)("div",{ref:n,className:g,onClick:y,tabIndex:"0",role:"button",onKeyPress:y,"aria-label":Object(s.__)("Dismiss this notice")},Object(r.createElement)("div",{className:"components-snackbar__content"},l,v.map((function(e,t){var n=e.label,o=e.onClick,a=e.url;return Object(r.createElement)(u.a,{key:t,href:a,isTertiary:!0,onClick:function(e){e.stopPropagation(),o&&o(e)},className:"components-snackbar__action"},n)}))))}))}).call(this,n(103))},,,,,function(e,t,n){"use strict";var r=n(0),o=n(2);t.a=function(e){var t,n,a=e.shortcut,i=e.className;return a?(Object(o.isString)(a)&&(t=a),Object(o.isObject)(a)&&(t=a.display,n=a.ariaLabel),Object(r.createElement)("span",{className:i,"aria-label":n},t)):null}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(15),o=(n(13),n(62)),a=n(52);function i(e){void 0===e&&(e={});var t=Object(o.a)(e),n=t.orientation,i=void 0===n?"horizontal":n,c=Object(r.a)(t,["orientation"]);return Object(a.g)(Object(r.b)({orientation:i},c))}var c=[].concat(a.g.__keys);i.__keys=c},,,,function(e,t){function n(){return e.exports=n=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}},function(e,t){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}},,,,,function(e,t,n){"use strict";var r=n(186);e.exports=function(e,t,n){n=n||{},9===t.nodeType&&(t=r.getWindow(t));var o=n.allowHorizontalScroll,a=n.onlyScrollIfNeeded,i=n.alignWithTop,c=n.alignWithLeft,s=n.offsetTop||0,u=n.offsetLeft||0,l=n.offsetBottom||0,d=n.offsetRight||0;o=void 0===o||o;var f=r.isWindow(t),p=r.offset(e),b=r.outerHeight(e),h=r.outerWidth(e),v=void 0,m=void 0,y=void 0,g=void 0,O=void 0,j=void 0,w=void 0,k=void 0,_=void 0,S=void 0;f?(w=t,S=r.height(w),_=r.width(w),k={left:r.scrollLeft(w),top:r.scrollTop(w)},O={left:p.left-k.left-u,top:p.top-k.top-s},j={left:p.left+h-(k.left+_)+d,top:p.top+b-(k.top+S)+l},g=k):(v=r.offset(t),m=t.clientHeight,y=t.clientWidth,g={left:t.scrollLeft,top:t.scrollTop},O={left:p.left-(v.left+(parseFloat(r.css(t,"borderLeftWidth"))||0))-u,top:p.top-(v.top+(parseFloat(r.css(t,"borderTopWidth"))||0))-s},j={left:p.left+h-(v.left+y+(parseFloat(r.css(t,"borderRightWidth"))||0))+d,top:p.top+b-(v.top+m+(parseFloat(r.css(t,"borderBottomWidth"))||0))+l}),O.top<0||j.top>0?!0===i?r.scrollTop(t,g.top+O.top):!1===i?r.scrollTop(t,g.top+j.top):O.top<0?r.scrollTop(t,g.top+O.top):r.scrollTop(t,g.top+j.top):a||((i=void 0===i||!!i)?r.scrollTop(t,g.top+O.top):r.scrollTop(t,g.top+j.top)),o&&(O.left<0||j.left>0?!0===c?r.scrollLeft(t,g.left+O.left):!1===c?r.scrollLeft(t,g.left+j.left):O.left<0?r.scrollLeft(t,g.left+O.left):r.scrollLeft(t,g.left+j.left):a||((c=void 0===c||!!c)?r.scrollLeft(t,g.left+O.left):r.scrollLeft(t,g.left+j.left)))}},function(e,t,n){"use strict";var r=Object.assign||function(e){for(var t=1;t1&&"boolean"!=typeof t)throw new TypeError('"allowMissing" argument must be a boolean');var n="$ "+e;if(!(n in s))throw new SyntaxError("intrinsic "+e+" does not exist!");if(void 0===s[n]&&!t)throw new TypeError("intrinsic "+e+" exists, but is not available. Please file an issue!");return s[n]}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return!(!a.default.isMoment(e)||!a.default.isMoment(t))&&(e.date()===t.date()&&e.month()===t.month()&&e.year()===t.year())};var r,o=n(44),a=(r=o)&&r.__esModule?r:{default:r}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=r.default.isMoment(e)?e:(0,o.default)(e,t);return n?n.format(a.ISO_MONTH_FORMAT):null};var r=i(n(44)),o=i(n(254)),a=n(78);function i(e){return e&&e.__esModule?e:{default:e}}},function(e,t){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return h}));var r=n(17),o=n(21),a=n(22),i=n(16),c=n(23),s=n(24),u=n(19),l=n(0),d=n(2);function f(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(u.a)(e);if(t){var o=Object(u.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(s.a)(this,n)}}var p=Object(l.createContext)({focusHistory:[]}),b=p.Provider,h=p.Consumer;b.displayName="FocusReturnProvider",h.displayName="FocusReturnConsumer";var v=function(e){Object(c.a)(n,e);var t=f(n);function n(){var e;return Object(o.a)(this,n),(e=t.apply(this,arguments)).onFocus=e.onFocus.bind(Object(i.a)(e)),e.state={focusHistory:[]},e}return Object(a.a)(n,[{key:"onFocus",value:function(e){var t=this.state.focusHistory,n=Object(d.uniq)([].concat(Object(r.a)(t),[e.target]).slice(-100).reverse()).reverse();this.setState({focusHistory:n})}},{key:"render",value:function(){var e=this.props,t=e.children,n=e.className;return Object(l.createElement)(b,{value:this.state},Object(l.createElement)("div",{onFocus:this.onFocus,className:n},t))}}]),n}(l.Component);t.b=v},function(e,t,n){"use strict";e.exports=n(327)},function(e,t){var n={};n.parse=function(){var e=/^(\-(webkit|o|ms|moz)\-)?(linear\-gradient)/i,t=/^(\-(webkit|o|ms|moz)\-)?(repeating\-linear\-gradient)/i,n=/^(\-(webkit|o|ms|moz)\-)?(radial\-gradient)/i,r=/^(\-(webkit|o|ms|moz)\-)?(repeating\-radial\-gradient)/i,o=/^to (left (top|bottom)|right (top|bottom)|left|right|top|bottom)/i,a=/^(closest\-side|closest\-corner|farthest\-side|farthest\-corner|contain|cover)/,i=/^(left|center|right|top|bottom)/i,c=/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))px/,s=/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))\%/,u=/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))em/,l=/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))deg/,d=/^\(/,f=/^\)/,p=/^,/,b=/^\#([0-9a-fA-F]+)/,h=/^([a-zA-Z]+)/,v=/^rgb/i,m=/^rgba/i,y=/^(([0-9]*\.[0-9]+)|([0-9]+\.?))/,g="";function O(e){var t=new Error(g+": "+e);throw t.source=g,t}function j(){var e=D(w);return g.length>0&&O("Invalid input not EOF"),e}function w(){return k("linear-gradient",e,S)||k("repeating-linear-gradient",t,S)||k("radial-gradient",n,E)||k("repeating-radial-gradient",r,E)}function k(e,t,n){return _(t,(function(t){var r=n();return r&&(A(p)||O("Missing comma before color stops")),{type:e,orientation:r,colorStops:D(M)}}))}function _(e,t){var n=A(e);if(n)return A(d)||O("Missing ("),result=t(n),A(f)||O("Missing )"),result}function S(){return N("directional",o,1)||N("angular",l,1)}function E(){var e,t,n=x();return n&&((e=[]).push(n),t=g,A(p)&&((n=x())?e.push(n):g=t)),e}function x(){var e=function(){var e=N("shape",/^(circle)/i,0);e&&(e.style=R()||C());return e}()||function(){var e=N("shape",/^(ellipse)/i,0);e&&(e.style=I()||C());return e}();if(e)e.at=function(){if(N("position",/^at/,0)){var e=P();return e||O("Missing positioning value"),e}}();else{var t=P();t&&(e={type:"default-radial",at:t})}return e}function C(){return N("extent-keyword",a,1)}function P(){var e={x:I(),y:I()};if(e.x||e.y)return{type:"position",value:e}}function D(e){var t=e(),n=[];if(t)for(n.push(t);A(p);)(t=e())?n.push(t):O("One extra comma");return n}function M(){var e=N("hex",b,1)||_(m,(function(){return{type:"rgba",value:D(T)}}))||_(v,(function(){return{type:"rgb",value:D(T)}}))||N("literal",h,0);return e||O("Expected color definition"),e.length=I(),e}function T(){return A(y)[1]}function I(){return N("%",s,1)||N("position-keyword",i,1)||R()}function R(){return N("px",c,1)||N("em",u,1)}function N(e,t,n){var r=A(t);if(r)return{type:e,value:r[n]}}function A(e){var t,n;return(n=/^[\n\r\t\s]+/.exec(g))&&F(n[0].length),(t=e.exec(g))&&F(t[0].length),t}function F(e){g=g.substr(e)}return function(e){return g=e.toString(),j()}}(),t.parse=(n||{}).parse},,,,,,,,function(e,t,n){"use strict";var r=n(0),o=n(7),a=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M18 11.2h-5.2V6h-1.6v5.2H6v1.6h5.2V18h1.6v-5.2H18z"}));t.a=a},,,,,function(e,t,n){"use strict";var r=n(0),o=n(7),a=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M10.6 6L9.4 7l4.6 5-4.6 5 1.2 1 5.4-6z"}));t.a=a},function(e,t,n){"use strict";var r=n(0),o=n(7),a=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M14.6 7l-1.2-1L8 12l5.4 6 1.2-1-4.6-5z"}));t.a=a},,function(e,t,n){"use strict";var r=n(0),o=n(7),a=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M18.5 15v3.5H13V6.7l4.5 4.1 1-1.1-6.2-5.8-5.8 5.8 1 1.1 4-4v11.7h-6V15H4v5h16v-5z"}));t.a=a},function(e,t,n){"use strict";var r=n(0),o=n(7),a=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M15.6 7.3h-.7l1.6-3.5-.9-.4-3.9 8.5H9v1.5h2l-1.3 2.8H8.4c-2 0-3.7-1.7-3.7-3.7s1.7-3.7 3.7-3.7H10V7.3H8.4c-2.9 0-5.2 2.3-5.2 5.2 0 2.9 2.3 5.2 5.2 5.2H9l-1.4 3.2.9.4 5.7-12.5h1.4c2 0 3.7 1.7 3.7 3.7s-1.7 3.7-3.7 3.7H14v1.5h1.6c2.9 0 5.2-2.3 5.2-5.2 0-2.9-2.4-5.2-5.2-5.2z"}));t.a=a},function(e,t,n){"use strict";var r=Object.prototype.toString;e.exports=function(e){var t=r.call(e),n="[object Arguments]"===t;return n||(n="[object Array]"!==t&&null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Function]"===r.call(e.callee)),n}},function(e,t,n){"use strict";var r=n(340),o=n(353),a=n(162),i=n(233),c=n(232),s=n(376);e.exports=function(){var e=s(this),t=c(a(e,"length")),n=1;arguments.length>0&&void 0!==arguments[0]&&(n=i(arguments[0]));var u=r(e,0);return o(u,e,t,0,n),u}},function(e,t,n){"use strict";(function(t){var r=t.Symbol,o=n(341);e.exports=function(){return"function"==typeof r&&("function"==typeof Symbol&&("symbol"==typeof r("foo")&&("symbol"==typeof Symbol("bar")&&o())))}}).call(this,n(121))},function(e,t,n){"use strict";var r=n(105),o=n(58),a=o("%Function.prototype.apply%"),i=o("%Function.prototype.call%"),c=o("%Reflect.apply%",!0)||r.call(i,a),s=o("%Object.defineProperty%",!0);if(s)try{s({},"a",{value:1})}catch(e){s=null}e.exports=function(){return c(r,i,arguments)};var u=function(){return c(r,a,arguments)};s?s(e.exports,"apply",{value:u}):e.exports.apply=u},function(e,t,n){"use strict";var r=n(58)("%Object.defineProperty%",!0);if(r)try{r({},"a",{value:1})}catch(e){r=null}var o=n(144)("Object.prototype.propertyIsEnumerable");e.exports=function(e,t,n,a,i,c){if(!r){if(!e(c))return!1;if(!c["[[Configurable]]"]||!c["[[Writable]]"])return!1;if(i in a&&o(a,i)!==!!c["[[Enumerable]]"])return!1;var s=c["[[Value]]"];return a[i]=s,t(a[i],s)}return r(a,i,n(c)),!0}},function(e,t,n){"use strict";var r=n(190),o=n(90);e.exports=function(e){if(void 0===e)return e;r(o,"Property Descriptor","Desc",e);var t={};return"[[Value]]"in e&&(t.value=e["[[Value]]"]),"[[Writable]]"in e&&(t.writable=e["[[Writable]]"]),"[[Get]]"in e&&(t.get=e["[[Get]]"]),"[[Set]]"in e&&(t.set=e["[[Set]]"]),"[[Enumerable]]"in e&&(t.enumerable=e["[[Enumerable]]"]),"[[Configurable]]"in e&&(t.configurable=e["[[Configurable]]"]),t}},function(e,t,n){"use strict";var r=n(87),o=n(190),a=n(90);e.exports=function(e){return void 0!==e&&(o(a,"Property Descriptor","Desc",e),!(!r(e,"[[Value]]")&&!r(e,"[[Writable]]")))}},function(e,t,n){"use strict";var r=n(191);e.exports=function(e,t){return e===t?0!==e||1/e==1/t:r(e)&&r(t)}},function(e,t,n){"use strict";var r=n(87),o=n(58)("%TypeError%"),a=n(90),i=n(227),c=n(349);e.exports=function(e){if("Object"!==a(e))throw new o("ToPropertyDescriptor requires an object");var t={};if(r(e,"enumerable")&&(t["[[Enumerable]]"]=i(e.enumerable)),r(e,"configurable")&&(t["[[Configurable]]"]=i(e.configurable)),r(e,"value")&&(t["[[Value]]"]=e.value),r(e,"writable")&&(t["[[Writable]]"]=i(e.writable)),r(e,"get")){var n=e.get;if(void 0!==n&&!c(n))throw new o("getter must be a function");t["[[Get]]"]=n}if(r(e,"set")){var s=e.set;if(void 0!==s&&!c(s))throw new o("setter must be a function");t["[[Set]]"]=s}if((r(t,"[[Get]]")||r(t,"[[Set]]"))&&(r(t,"[[Value]]")||r(t,"[[Writable]]")))throw new o("Invalid property descriptor. Cannot both specify accessors and a value or writable attribute");return t}},function(e,t,n){"use strict";e.exports=function(e){return!!e}},function(e,t,n){"use strict";var r,o,a=Function.prototype.toString,i="object"==typeof Reflect&&null!==Reflect&&Reflect.apply;if("function"==typeof i&&"function"==typeof Object.defineProperty)try{r=Object.defineProperty({},"length",{get:function(){throw o}}),o={},i((function(){throw 42}),null,r)}catch(e){e!==o&&(i=null)}else i=null;var c=/^\s*class\b/,s=function(e){try{var t=a.call(e);return c.test(t)}catch(e){return!1}},u=Object.prototype.toString,l="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;e.exports=i?function(e){if(!e)return!1;if("function"!=typeof e&&"object"!=typeof e)return!1;if("function"==typeof e&&!e.prototype)return!0;try{i(e,null,r)}catch(e){if(e!==o)return!1}return!s(e)}:function(e){if(!e)return!1;if("function"!=typeof e&&"object"!=typeof e)return!1;if("function"==typeof e&&!e.prototype)return!0;if(l)return function(e){try{return!s(e)&&(a.call(e),!0)}catch(e){return!1}}(e);if(s(e))return!1;var t=u.call(e);return"[object Function]"===t||"[object GeneratorFunction]"===t}},function(e,t,n){"use strict";var r=Number.isNaN||function(e){return e!=e};e.exports=Number.isFinite||function(e){return"number"==typeof e&&!r(e)&&e!==1/0&&e!==-1/0}},function(e,t,n){"use strict";var r=n(58),o=r("%Math%"),a=r("%Number%");e.exports=a.MAX_SAFE_INTEGER||o.pow(2,53)-1},function(e,t,n){"use strict";e.exports=function(e){return null===e||"function"!=typeof e&&"object"!=typeof e}},function(e,t,n){"use strict";var r=n(230),o=n(233);e.exports=function(e){var t=o(e);return t<=0?0:t>r?r:t}},function(e,t,n){"use strict";var r=n(364),o=n(369);e.exports=function(e){var t=o(e);return 0!==t&&(t=r(t)),0===t?0:t}},function(e,t,n){"use strict";var r=Date.prototype.getDay,o=Object.prototype.toString,a="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;e.exports=function(e){return"object"==typeof e&&null!==e&&(a?function(e){try{return r.call(e),!0}catch(e){return!1}}(e):"[object Date]"===o.call(e))}},function(e,t,n){"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),n=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(t in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var r=Object.getOwnPropertySymbols(e);if(1!==r.length||r[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(e,t);if(42!==o.value||!0!==o.enumerable)return!1}return!0}},function(e,t,n){"use strict";var r=n(219);e.exports=function(){return Array.prototype.flat||r}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=void 0,o=void 0;function a(e,t){var n=t(e(o));return function(){return n}}function i(e){return a(e,r.createLTR||r.create)}function c(){for(var e=arguments.length,t=Array(e),n=0;n=0?1:-1}},function(e,t){e.exports=function(e,t){var n=e%t;return Math.floor(n>=0?n:n+t)}},function(e,t,n){"use strict";var r=n(242);e.exports=function(){return"function"==typeof Object.values?Object.values:r}},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){return!("undefined"==typeof window||!("ontouchstart"in window||window.DocumentTouch&&"undefined"!=typeof document&&document instanceof window.DocumentTouch))||!("undefined"==typeof navigator||!navigator.maxTouchPoints&&!navigator.msMaxTouchPoints)},e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return!(!r.default.isMoment(e)||!r.default.isMoment(t))&&(!(0,o.default)(e,t)&&!(0,a.default)(e,t))};var r=i(n(44)),o=i(n(253)),a=i(n(195));function i(e){return e&&e.__esModule?e:{default:e}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(!a.default.isMoment(e)||!a.default.isMoment(t))return!1;var n=e.year(),r=e.month(),o=t.year(),i=t.month(),c=n===o,s=r===i;return c&&s?e.date()2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!e)return 0;var o="width"===t?"Left":"Top",a="width"===t?"Right":"Bottom",i=!n||r?window.getComputedStyle(e):null,c=e.offsetWidth,s=e.offsetHeight,u="width"===t?c:s;n||(u-=parseFloat(i["padding"+o])+parseFloat(i["padding"+a])+parseFloat(i["border"+o+"Width"])+parseFloat(i["border"+a+"Width"]));r&&(u+=parseFloat(i["margin"+o])+parseFloat(i["margin"+a]));return u}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return 7*e+2*t+1}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return!(!a.default.isMoment(e)||!a.default.isMoment(t))&&(e.month()===t.month()&&e.year()===t.year())};var r,o=n(44),a=(r=o)&&r.__esModule?r:{default:r}},,,,,,function(e,t,n){"use strict";n.r(t),n.d(t,"SVG",(function(){return r.SVG})),n.d(t,"Path",(function(){return r.Path})),n.d(t,"Circle",(function(){return r.Circle})),n.d(t,"Polygon",(function(){return r.Polygon})),n.d(t,"Rect",(function(){return r.Rect})),n.d(t,"G",(function(){return r.G})),n.d(t,"HorizontalRule",(function(){return r.HorizontalRule})),n.d(t,"BlockQuotation",(function(){return r.BlockQuotation})),n.d(t,"__experimentalAlignmentMatrixControl",(function(){return ct})),n.d(t,"Animate",(function(){return st.a})),n.d(t,"__unstableUseAnimate",(function(){return st.b})),n.d(t,"AnglePickerControl",(function(){return Kr})),n.d(t,"Autocomplete",(function(){return Jr})),n.d(t,"BaseControl",(function(){return mt})),n.d(t,"__experimentalBoxControl",(function(){return ga})),n.d(t,"Button",(function(){return $r.a})),n.d(t,"ButtonGroup",(function(){return Oa})),n.d(t,"Card",(function(){return Fa})),n.d(t,"CardBody",(function(){return Ha})),n.d(t,"CardDivider",(function(){return Va})),n.d(t,"CardFooter",(function(){return Ga})),n.d(t,"CardHeader",(function(){return Za})),n.d(t,"CardMedia",(function(){return Xa})),n.d(t,"CheckboxControl",(function(){return ei})),n.d(t,"ClipboardButton",(function(){return ti})),n.d(t,"__experimentalColorEdit",(function(){return Ki})),n.d(t,"ColorIndicator",(function(){return Ui})),n.d(t,"ColorPalette",(function(){return Gi})),n.d(t,"ColorPicker",(function(){return Bi})),n.d(t,"ComboboxControl",(function(){return oc})),n.d(t,"CustomSelectControl",(function(){return Qc})),n.d(t,"Dashicon",(function(){return es.a})),n.d(t,"DateTimePicker",(function(){return ps})),n.d(t,"DatePicker",(function(){return is})),n.d(t,"TimePicker",(function(){return ds})),n.d(t,"__experimentalDimensionControl",(function(){return Os})),n.d(t,"Disabled",(function(){return xs})),n.d(t,"Draggable",(function(){return Ds})),n.d(t,"DropZone",(function(){return Ws})),n.d(t,"__unstableUseDropZone",(function(){return Hs})),n.d(t,"DropZoneProvider",(function(){return Bs})),n.d(t,"Dropdown",(function(){return ci})),n.d(t,"DropdownMenu",(function(){return tu})),n.d(t,"ExternalLink",(function(){return ou})),n.d(t,"Flex",(function(){return _t})),n.d(t,"FlexBlock",(function(){return wt})),n.d(t,"FlexItem",(function(){return St})),n.d(t,"FocalPointPicker",(function(){return Nu})),n.d(t,"FocusableIframe",(function(){return zu})),n.d(t,"FontSizePicker",(function(){return yl})),n.d(t,"FormFileUpload",(function(){return gl})),n.d(t,"FormToggle",(function(){return Ol})),n.d(t,"FormTokenField",(function(){return Pl})),n.d(t,"__experimentalGradientPicker",(function(){return dd})),n.d(t,"__experimentalCustomGradientPicker",(function(){return ld})),n.d(t,"Guide",(function(){return Md})),n.d(t,"GuidePage",(function(){return Td})),n.d(t,"Icon",(function(){return bs.a})),n.d(t,"IconButton",(function(){return Id})),n.d(t,"__experimentalInputControl",(function(){return Cr})),n.d(t,"KeyboardShortcuts",(function(){return gi})),n.d(t,"MenuGroup",(function(){return Rd})),n.d(t,"MenuItem",(function(){return Ad})),n.d(t,"MenuItemsChoice",(function(){return Fd})),n.d(t,"Modal",(function(){return xd})),n.d(t,"ScrollLock",(function(){return Ld.a})),n.d(t,"NavigableMenu",(function(){return Xs})),n.d(t,"TabbableContainer",(function(){return zd})),n.d(t,"__experimentalNavigation",(function(){return Qd})),n.d(t,"__experimentalNavigationBackButton",(function(){return tf})),n.d(t,"__experimentalNavigationGroup",(function(){return of})),n.d(t,"__experimentalNavigationItem",(function(){return uf})),n.d(t,"__experimentalNavigationMenu",(function(){return ff})),n.d(t,"Notice",(function(){return pf})),n.d(t,"__experimentalNumberControl",(function(){return Fr})),n.d(t,"NoticeList",(function(){return bf})),n.d(t,"Panel",(function(){return vf})),n.d(t,"PanelBody",(function(){return Of})),n.d(t,"PanelHeader",(function(){return hf})),n.d(t,"PanelRow",(function(){return jf})),n.d(t,"Placeholder",(function(){return wf})),n.d(t,"Popover",(function(){return qr.a})),n.d(t,"QueryControls",(function(){return Pf})),n.d(t,"__experimentalRadio",(function(){return Bf})),n.d(t,"__experimentalRadioGroup",(function(){return Gf})),n.d(t,"RadioControl",(function(){return $f})),n.d(t,"RangeControl",(function(){return vl})),n.d(t,"ResizableBox",(function(){return Mp})),n.d(t,"ResponsiveWrapper",(function(){return Tp})),n.d(t,"SandBox",(function(){return Np})),n.d(t,"SelectControl",(function(){return ys})),n.d(t,"Snackbar",(function(){return Ap.a})),n.d(t,"SnackbarList",(function(){return Hp})),n.d(t,"Spinner",(function(){return Vp})),n.d(t,"TabPanel",(function(){return Kp})),n.d(t,"__experimentalText",(function(){return Zt})),n.d(t,"TextControl",(function(){return Ei})),n.d(t,"TextareaControl",(function(){return Jp})),n.d(t,"TextHighlight",(function(){return Qp})),n.d(t,"Tip",(function(){return eb})),n.d(t,"ToggleControl",(function(){return tb})),n.d(t,"Toolbar",(function(){return hb})),n.d(t,"ToolbarButton",(function(){return ab})),n.d(t,"__experimentalToolbarContext",(function(){return rb.a})),n.d(t,"ToolbarGroup",(function(){return lb})),n.d(t,"ToolbarItem",(function(){return nb.a})),n.d(t,"Tooltip",(function(){return C.a})),n.d(t,"__experimentalTreeGrid",(function(){return Ob})),n.d(t,"__experimentalTreeGridRow",(function(){return jb})),n.d(t,"__experimentalTreeGridCell",(function(){return Sb})),n.d(t,"__experimentalTreeGridItem",(function(){return _b})),n.d(t,"TreeSelect",(function(){return Ef})),n.d(t,"__experimentalUnitControl",(function(){return yo})),n.d(t,"VisuallyHidden",(function(){return M})),n.d(t,"IsolatedEventContainer",(function(){return fd.a})),n.d(t,"createSlotFill",(function(){return Eb.c})),n.d(t,"Slot",(function(){return Eb.b})),n.d(t,"Fill",(function(){return Eb.a})),n.d(t,"SlotFillProvider",(function(){return xb.b})),n.d(t,"__experimentalUseSlot",(function(){return Cb.a})),n.d(t,"navigateRegions",(function(){return Db})),n.d(t,"withConstrainedTabbing",(function(){return bd.a})),n.d(t,"withFallbackStyles",(function(){return Tb})),n.d(t,"withFilters",(function(){return Nb})),n.d(t,"withFocusOutside",(function(){return tc.a})),n.d(t,"withFocusReturn",(function(){return pd.a})),n.d(t,"FocusReturnProvider",(function(){return Ab.b})),n.d(t,"withNotices",(function(){return $b})),n.d(t,"withSpokenMessages",(function(){return Zr}));var r=n(7),o=n(8),a=n(12),i=n(14),c=n(0),s=n(2),u=n(9),l=n.n(u),d=n(52),f=n(123),p=n(15),b=n(51),h=n(50),v=n(13),m=n.n(v),y=n(63),g=n(59),O=n(67),j=Object(h.a)({name:"Group",compose:O.a,useProps:function(e,t){return Object(p.b)({role:"group"},t)}}),w=(Object(b.a)({as:"div",useHook:j}),n(96)),k=Object(h.a)({name:"CompositeGroup",compose:[j,w.a],useState:d.g,propsAreEqual:function(e,t){if(!t.id||e.id!==t.id)return j.unstable_propsAreEqual(e,t);var n=e.currentId,r=(e.unstable_moves,Object(p.a)(e,["currentId","unstable_moves"])),o=t.currentId,a=(t.unstable_moves,Object(p.a)(t,["currentId","unstable_moves"]));if(e.items&&t.items){var i=Object(d.d)(e.items,n),c=Object(d.d)(t.items,o),s=null==i?void 0:i.groupId,u=null==c?void 0:c.groupId;if(t.id===u||t.id===s)return!1}return j.unstable_propsAreEqual(r,a)},useProps:function(e,t){var n=t.ref,r=Object(p.a)(t,["ref"]),o=Object(v.useRef)(null),a=e.id;return Object(g.a)((function(){var t;if(a)return null===(t=e.registerGroup)||void 0===t||t.call(e,{id:a,ref:o}),function(){var t;null===(t=e.unregisterGroup)||void 0===t||t.call(e,a)}}),[a,e.registerGroup,e.unregisterGroup]),Object(p.b)({ref:Object(y.a)(o,n)},r)}}),_=Object(b.a)({as:"div",useHook:k}),S=n(1),E=n(10),x=n(124),C=n(84),P=n(5);function D(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var M=function(e){var t=e.as,n=void 0===t?"div":t,r=e.className,o=Object(i.a)(e,["as","className"]);return function(e){var t=e.as,n=void 0===t?"div":t,r=Object(i.a)(e,["as"]);return"function"==typeof r.children?r.children(r):Object(c.createElement)(n,r)}(function(e){for(var t=1;tr&&(r=(t=t.trim()).charCodeAt(0)),r){case 38:return t.replace(h,"$1"+e.trim());case 58:return e.trim()+t.replace(h,"$1"+e.trim());default:if(0<1*n&&0s.charCodeAt(8))break;case 115:i=i.replace(s,"-webkit-"+s)+";"+i;break;case 207:case 102:i=i.replace(s,"-webkit-"+(102c.charCodeAt(0)&&(c=c.trim()),c=[c],0p)&&(z=(V=V.replace(" ",":")).length),0=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)},J={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Q=/[A-Z]|^ms/g,ee=/_EMO_([^_]+?)_([^]*?)_EMO_/g,te=function(e){return 45===e.charCodeAt(1)},ne=function(e){return null!=e&&"boolean"!=typeof e},re=z((function(e){return te(e)?e:e.replace(Q,"-$&").toLowerCase()})),oe=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(ee,(function(e,t,n){return ie={name:t,styles:n,next:ie},t}))}return 1===J[e]||te(e)||"number"!=typeof t||0===t?t:t+"px"};function ae(e,t,n,r){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return ie={name:n.name,styles:n.styles,next:ie},n.name;if(void 0!==n.styles){var o=n.next;if(void 0!==o)for(;void 0!==o;)ie={name:o.name,styles:o.styles,next:ie},o=o.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o96?he:ve};function ye(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ge(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=we()(e).toRgb(),r=n.r,o=n.g,a=n.b;return"rgba(".concat(r,", ").concat(o,", ").concat(a,", ").concat(t,")")}function Fe(e){return Object(s.get)(Ne,e,"#000")}function Le(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"transition";switch(t){case"transition":e="transition-duration: 0ms;";break;case"animation":e="animation-duration: 1ms;";break;default:e="\n\t\t\t\tanimation-duration: 1ms;\n\t\t\t\ttransition-duration: 0ms;\n\t\t\t"}return"\n\t\t@media ( prefers-reduced-motion: reduce ) {\n\t\t\t".concat(e,";\n\t\t}\n\t")}var ze={name:"1xiracb",styles:"border-radius:2px;box-sizing:border-box;display:grid;grid-template-columns:repeat( 3,1fr );outline:none;"},Be=function(){return ze},He=Oe("div",{target:"e1od1u4s0",label:"Root"})(Be,";border:1px solid transparent;cursor:pointer;grid-template-columns:auto;",(function(e){var t=e.size,n=void 0===t?92:t;return fe("grid-template-rows:repeat( 3,calc( ",n,"px / 3 ) );width:",n,"px;")}),";"),Ve=Oe("div",{target:"e1od1u4s1",label:"Row"})({name:"1177s8r",styles:"box-sizing:border-box;display:grid;grid-template-columns:repeat( 3,1fr );"}),We=function(e){return fe("background:currentColor;box-sizing:border-box;display:grid;margin:auto;transition:all 120ms linear;",Le("transition")," ",(t=e.isActive,n=t?"0 0 0 2px ".concat(Fe("black")):null,r=Fe(t?"black":"lightGray.800"),o=Fe(t?"black":"blue.medium.focus"),fe("box-shadow:",n,";color:",r,";*:hover > &{color:",o,";}")),"");var t,n,r,o},Ke=Oe("span",{target:"e1od1u4s2",label:"Point"})("height:6px;width:6px;",We,""),Ue=Oe("span",{target:"e1od1u4s3",label:"Cell"})({name:"10ro24i",styles:"appearance:none;border:none;box-sizing:border-box;margin:0;display:flex;position:relative;outline:none;align-items:center;justify-content:center;padding:0;"});function Ge(e){var t=e.isActive,n=void 0!==t&&t,r=e.value,a=Object(i.a)(e,["isActive","value"]),s=I[r];return Object(c.createElement)(C.a,{text:s},Object(c.createElement)(x.a,Object(o.a)({as:Ue,role:"gridcell"},a),Object(c.createElement)(M,null,r),Object(c.createElement)(Ke,{isActive:n,role:"presentation"})))}var $e=new RegExp(/-left/g),qe=new RegExp(/-right/g),Ye=new RegExp(/Left/g),Ze=new RegExp(/Right/g);function Xe(){return!(!document||"rtl"!==document.documentElement.dir)}function Je(){return Xe()}function Qe(e){return"left"===e?"right":"right"===e?"left":$e.test(e)?e.replace($e,"-right"):qe.test(e)?e.replace(qe,"-left"):Ye.test(e)?e.replace(Ye,"Right"):Ze.test(e)?e.replace(Ze,"Left"):e}var et=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object(s.mapKeys)(e,(function(e,t){return Qe(t)}))};function tt(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return function(){var n=Xe();return fe(t?n?t:e:n?et(e):e,"")}}Oe("div",{target:"elqsdmc0",label:"Wrapper"})({name:"co61ta",styles:"box-sizing:border-box;padding:2px;"});var nt=Oe("div",{target:"elqsdmc1",label:"Root"})("transform-origin:top left;height:100%;width:100%;",Be,";",(function(){return fe({gridTemplateRows:"repeat( 3, calc( ".concat(21,"px / 3))"),padding:1.5,maxHeight:24,maxWidth:24},"")}),";",(function(e){var t=e.disablePointerEvents;return fe({pointerEvents:t?"none":null},"")}),";"),rt=Oe("span",{target:"elqsdmc2",label:"Point"})("height:2px;width:2px;",We,";",(function(e){var t=e.isActive;return fe("box-shadow:",t?"0 0 0 1px currentColor":null,";color:currentColor;*:hover > &{color:currentColor;}")}),";"),ot=Ue;function at(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function it(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:"center",t=N(e).replace("-"," "),n=R.indexOf(t);return n>-1?n:void 0}(p),v=(s/24).toFixed(2),m=l()("component-alignment-matrix-control-icon",t),y=it(it({},d),{},{transform:"scale(".concat(v,")")});return Object(c.createElement)(nt,Object(o.a)({},b,{className:m,disablePointerEvents:r,role:"presentation",size:s,style:y}),R.map((function(e,t){var n=h===t;return Object(c.createElement)(ot,{key:e},Object(c.createElement)(rt,{isActive:n}))})))};var st=n(125),ut={"default.fontFamily":"-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif","default.fontSize":"13px","helpText.fontSize":"12px",mobileTextMinFontSize:"16px"};function lt(e){return Object(s.get)(ut,e,"")}function dt(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return isNaN(e)?"".concat(8,"px"):"".concat(8*e,"px")}var ft=Oe("div",{target:"e1puf3u0",label:"Wrapper"})("font-family:",lt("default.fontFamily"),";font-size:",lt("default.fontSize"),";"),pt=Oe("div",{target:"e1puf3u1",label:"StyledField"})("margin-bottom:",dt(1),";.components-panel__row &{margin-bottom:inherit;}"),bt=Oe("label",{target:"e1puf3u2",label:"StyledLabel"})("display:inline-block;margin-bottom:",dt(1),";"),ht=Oe("p",{target:"e1puf3u3",label:"StyledHelp"})("margin-top:-",dt(1),";font-size:",lt("helpText.fontSize"),";font-style:normal;color:",Fe("mediumGray.text"),";");function vt(e){var t=e.id,n=e.label,r=e.hideLabelFromVision,o=e.help,a=e.className,i=e.children;return Object(c.createElement)(ft,{className:l()("components-base-control",a)},Object(c.createElement)(pt,{className:"components-base-control__field"},n&&t&&(r?Object(c.createElement)(M,{as:"label",htmlFor:t},n):Object(c.createElement)(bt,{className:"components-base-control__label",htmlFor:t},n)),n&&!t&&(r?Object(c.createElement)(M,{as:"label"},n):Object(c.createElement)(vt.VisualLabel,null,n)),i),!!o&&Object(c.createElement)(ht,{id:t+"__help",className:"components-base-control__help"},o))}vt.VisualLabel=function(e){var t=e.className,n=e.children;return t=l()("components-base-control__label",t),Object(c.createElement)("span",{className:t},n)};var mt=vt;var yt={name:"8kj89b",styles:"flex-direction:row-reverse;"},gt=Oe("div",{target:"eboqfv50",label:"Flex"})("box-sizing:border-box;display:flex;width:100%;",(function(e){var t=e.align;return fe({alignItems:{top:"flex-start",bottom:"flex-end"}[t]||t},"")})," ",(function(e){var t=e.justify,n=e.isReversed,r={left:"flex-start",right:"flex-end"},o=r[t]||t;return n&&r[t]&&(o="left"===t?r.right:r.left),fe({justifyContent:o},"")})," ",(function(e){var t=e.gap,n=e.isReversed,r="number"==typeof t?4*t:4,o="margin-".concat(n?"left":"right");return fe("> *{",o,":",r,"px;&:last-child{",o,":0;}}")})," ",(function(e){return e.isReversed?yt:""}),""),Ot=Oe("div",{target:"eboqfv51",label:"Item"})({name:"13luw5d",styles:"box-sizing:border-box;min-width:0;max-width:100%;"}),jt=Oe(Ot,{target:"eboqfv52",label:"Block"})({name:"1rr4qq7",styles:"flex:1;"});var wt=Object(c.forwardRef)((function(e,t){var n=e.className,r=Object(i.a)(e,["className"]),a=l()("components-flex__block",n);return Object(c.createElement)(jt,Object(o.a)({},r,{className:a,ref:t}))}));var kt=Object(c.forwardRef)((function(e,t){var n=e.align,r=void 0===n?"center":n,a=e.className,s=e.gap,u=void 0===s?2:s,d=e.justify,f=void 0===d?"space-between":d,p=e.isReversed,b=void 0!==p&&p,h=Object(i.a)(e,["align","className","gap","justify","isReversed"]),v=l()("components-flex",a);return Object(c.createElement)(gt,Object(o.a)({},h,{align:r,className:v,ref:t,gap:u,justify:f,isReversed:b}))})),_t=kt;var St=Object(c.forwardRef)((function(e,t){var n=e.className,r=Object(i.a)(e,["className"]),a=l()("components-flex__item",n);return Object(c.createElement)(Ot,Object(o.a)({},r,{className:a,ref:t}))}));function Et(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var xt=fe;function Ct(){var e=Et(["\n\t","\n\t","\n"]);return Ct=function(){return e},e}function Pt(){var e=Et(["\n\t\t\t\t","\n\t\t\t\t","\n\t\t\t"]);return Pt=function(){return e},e}function Dt(){var e=Et(["\n\t\t\t\t","\n\t\t\t\t","\n\t\t\t"]);return Dt=function(){return e},e}function Mt(){var e=Et(["\n\t\t\t\t","\n\t\t\t"]);return Mt=function(){return e},e}function Tt(){var e=Et(["\n\t\t\t\t","\n\t\t\t\t","\n\t\t\t"]);return Tt=function(){return e},e}function It(){var e=Et(["\n\t\t\t\t","\n\t\t\t\t","\n\t\t\t"]);return It=function(){return e},e}function Rt(){var e=Et(["\n\t\t\t\t","\n\t\t\t\t","\n\t\t\t"]);return Rt=function(){return e},e}function Nt(){var e=Et(["\n\t\t\t\t","\n\t\t\t\t","\n\t\t\t"]);return Nt=function(){return e},e}function At(){var e=Et(["\n\t\t\t\t","\n\t\t\t\t","\n\t\t\t"]);return At=function(){return e},e}var Ft="\n ".concat("font-weight: 400;","\n"),Lt="\n\tfont-size: 32px;\n\tline-height: 40px;\n",zt="\n\tfont-size: 24px;\n\tline-height: 32px;\n",Bt="\n\tfont-size: 20px;\n\tline-height: 28px;\n",Ht="\n\t".concat("font-weight: 600;","\n\tfont-size: 14px;\n\tline-height: 20px;\n"),Vt="\n\t".concat("font-weight: 400;","\n"),Wt="\n\tfont-size: 16px;\n\tline-height: 24px;\n",Kt="\n\tfont-size: 14px;\n\tline-height: 20px;\n",Ut="\n ".concat("font-weight: 600;","\n font-size: 14px;\n line-height: 20px;\n"),Gt="\n\t".concat("font-weight: 400;","\n\tfont-size: 12px;\n\tline-height: 16px;\n"),$t="\n\t".concat("font-weight: 600;","\n\tfont-size: 12px;\n\tline-height: 16px;\n"),qt="\n\t".concat("font-weight: 500;","\n\tfont-size: 11px;\n\tline-height: 1.4;\n\ttext-transform: uppercase;\n\tcolor: ").concat(Ee.gray[700],"\n"),Yt=function(e){return xt(Ct(),'font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,\nOxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;',function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body";switch(e){case"title.large":return xt(At(),Ft,Lt);case"title.medium":return xt(Nt(),Ft,zt);case"title.small":return xt(Rt(),Ft,Bt);case"subtitle":return xt(It(),Ht,"\n\tfont-size: 16px;\n\tline-height: 24px;\n");case"subtitle.small":return xt(Tt(),Ht,"\n\tfont-size: 14px;\n\tline-height: 20px;\n");case"body":return xt(Mt(),Vt);case"body.large":return xt(Dt(),Vt,Wt);case"body.small":return xt(Pt(),Vt,Kt);case"button":return Ut;case"caption":return Gt;case"label":return $t;case"sectionheading":return qt}}(e.variant))},Zt=Oe("p",{target:"e15wbhsk0",label:"Text"})("\n\tbox-sizing: border-box;\n\tmargin: 0;\n",Yt,"");var Xt={name:"1dacand",styles:"padding-top:0;"},Jt=function(){return Xt},Qt={name:"r6z5ec",styles:"z-index:1;"},en=function(e){return e.isFocused?Qt:""},tn={name:"uz6002",styles:"align-items:flex-start;flex-direction:column;"},nn={name:"53hdd7",styles:"align-items:flex-start;flex-direction:column-reverse;"},rn={name:"x4dmss",styles:"justify-content:space-between;"},on=function(e){switch(e.labelPosition){case"top":return tn;case"bottom":return nn;case"edge":return rn;default:return""}},an=Oe(_t,{target:"e1cr7zh10",label:"Root"})("position:relative;border-radius:2px;",Jt," ",en," ",on,""),cn={name:"8atqhb",styles:"width:100%;"},sn=Oe("div",{target:"e1cr7zh11",label:"Container"})("align-items:center;box-sizing:border-box;border-radius:inherit;display:flex;flex:1;position:relative;",(function(e){var t=Fe(e.disabled?"ui.backgroundDisabled":"ui.background");return fe({backgroundColor:t},"")})," ",(function(e){var t=e.__unstableInputWidth,n=e.labelPosition;return t?"side"===n?"":fe("edge"===n?{flex:"0 0 ".concat(t)}:{width:t},""):cn}),""),un={name:"103r1kr",styles:"&::-webkit-input-placeholder{line-height:normal;}"},ln=Oe("input",{target:"e1cr7zh12",label:"Input"})("&&&{background-color:transparent;box-sizing:border-box;border:none;box-shadow:none !important;color:",Fe("black"),";display:block;margin:0;outline:none;padding-left:8px;padding-right:8px;width:100%;",(function(e){var t=e.isDragging,n=e.dragCursor,r="",o="";return t&&(r=fe("cursor:",n,";user-select:none;&::-webkit-outer-spin-button,&::-webkit-inner-spin-button{-webkit-appearance:none !important;margin:0 !important;}")),t&&n&&(o=fe("&:active{cursor:",n,";}")),fe(r," ",o,"")})," ",(function(e){return e.disabled?fe({color:Fe("ui.textDisabled")},""):""})," ",(function(e){var t={default:"13px",small:"11px"}[e.size];return t?fe("font-size:","16px",";@media ( min-width:600px ){font-size:",t,";}"):""})," ",(function(e){var t=e.size,n={default:{height:30,lineHeight:1,minHeight:30},small:{height:24,lineHeight:1,minHeight:24}};return fe(n[t]||n.default,"")})," ",(function(){return un}),"}"),dn={name:"8uhtka",styles:"overflow:hidden;text-overflow:ellipsis;white-space:nowrap;"},fn=function(){return dn},pn=function(e){var t=e.labelPosition,n=4;return"edge"!==t&&"side"!==t||(n=0),fe({paddingTop:0,paddingBottom:n},"")},bn=Oe(Zt,{target:"e1cr7zh13",label:"BaseLabel"})("&&&{box-sizing:border-box;color:currentColor;display:block;margin:0;max-width:100%;z-index:1;",pn," ",fn,"}"),hn=function(e){return Object(c.createElement)(bn,Object(o.a)({},e,{as:"label"}))},vn=Oe(St,{target:"e1cr7zh14",label:"LabelWrapper"})({name:"120o8im",styles:"max-width:calc( 100% - 10px );"}),mn=Oe("div",{target:"e1cr7zh15",label:"BackdropUI"})("&&&{box-sizing:border-box;border-radius:inherit;bottom:0;left:0;margin:0;padding:0;pointer-events:none;position:absolute;right:0;top:0;",(function(e){var t=e.disabled,n=e.isFocused,r=Fe(n?"ui.borderFocus":"ui.border"),o=null;return n&&(o="0 0 0 1px ".concat(Fe("ui.borderFocus")," inset")),t&&(r=Fe("ui.borderDisabled")),fe({boxShadow:o,borderColor:r,borderStyle:"solid",borderWidth:1},"")})," ",tt({paddingLeft:2}),"}"),yn=Oe("span",{target:"e1cr7zh16",label:"Prefix"})({name:"1pxuk39",styles:"box-sizing:border-box;display:block;"}),gn=Oe("span",{target:"e1cr7zh17",label:"Suffix"})({name:"1pxuk39",styles:"box-sizing:border-box;display:block;"});var On=Object(c.memo)((function(e){var t=e.disabled,n=void 0!==t&&t,r=e.isFocused,o=void 0!==r&&r;return Object(c.createElement)(mn,{"aria-hidden":"true",className:"components-input-control__backdrop",disabled:n,isFocused:o})}));function jn(e){var t=e.children,n=e.hideLabelFromVision,r=e.htmlFor,a=Object(i.a)(e,["children","hideLabelFromVision","htmlFor"]);return t?n?Object(c.createElement)(M,{as:"label",htmlFor:r},t):Object(c.createElement)(hn,Object(o.a)({htmlFor:r},a),t):null}function wn(e,t){var n=e.__unstableInputWidth,r=e.children,a=e.className,s=e.disabled,u=void 0!==s&&s,l=e.hideLabelFromVision,d=void 0!==l&&l,f=e.labelPosition,p=e.id,b=e.isFocused,h=void 0!==b&&b,v=e.label,m=e.prefix,y=e.size,g=void 0===y?"default":y,O=e.suffix,j=Object(i.a)(e,["__unstableInputWidth","children","className","disabled","hideLabelFromVision","labelPosition","id","isFocused","label","prefix","size","suffix"]),w=function(e){var t=Object(E.useInstanceId)(wn),n="input-base-control-".concat(t);return e||n}(p);return Object(c.createElement)(an,Object(o.a)({},j,{className:a,isFocused:h,labelPosition:f,ref:t}),Object(c.createElement)(vn,null,Object(c.createElement)(jn,{className:"components-input-control__label",hideLabelFromVision:d,labelPosition:f,htmlFor:w,size:g},v)),Object(c.createElement)(sn,{__unstableInputWidth:n,className:"components-input-control__container",disabled:u,isFocused:h,labelPosition:f},m&&Object(c.createElement)(yn,{className:"components-input-control__prefix"},m),r,O&&Object(c.createElement)(gn,{className:"components-input-control__suffix"},O),Object(c.createElement)(On,{"aria-hidden":"true",disabled:u,isFocused:h,label:v,size:g})))}var kn=Object(c.forwardRef)(wn);function _n(e,t){return e.map((function(e,n){return e+t[n]}))}function Sn(e,t){return e.map((function(e,n){return e-t[n]}))}function En(e,t,n){return n=n||Math.hypot.apply(Math,e),t?n/t:0}function xn(e,t){return t?e.map((function(e){return e/t})):Array(e.length).fill(0)}function Cn(e){return Math.hypot.apply(Math,e)}function Pn(e,t){return t=t||Math.hypot.apply(Math,e)||1,e.map((function(e){return e/t}))}function Dn(e,t,n){var r=Math.hypot.apply(Math,t);return{velocities:xn(t,n),velocity:En(t,n,r),distance:Cn(e),direction:Pn(t,r)}}function Mn(e){return Math.sign?Math.sign(e):Number(e>0)-Number(e<0)||+e}function Tn(e,t){return Math.abs(e)>=t&&Mn(e)*t}function In(e,t,n){return 0===t||Math.abs(t)===1/0?function(e,t){return Math.pow(e,5*t)}(e,n):e*t*n/(t+n*e)}function Rn(e,t,n,r){return void 0===r&&(r=.15),0===r?function(e,t,n){return Math.max(t,Math.min(e,n))}(e,t,n):en?In(e-n,n-t,r)+n:e}function Nn(e,t){for(var n=0;n=0||(o[n]=e[n]);return o}function zn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[t++]}};throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(t=e[Symbol.iterator]()).next.bind(t)}function Hn(){}var Vn=function(){for(var e=arguments.length,t=new Array(e),n=0;n0?t:n}return null}function Jn(e){var t="buttons"in e?e.buttons:0,n=Xn(e),r=n&&n.length||0;return An({touches:r,down:r>0||t>0,buttons:t},function(e){return{shiftKey:e.shiftKey,altKey:e.altKey,metaKey:e.metaKey,ctrlKey:e.ctrlKey}}(e))}function Qn(e){var t=Xn(e),n=t?t[0]:e;return{values:[n.clientX,n.clientY]}}var er=function(){var e=this;this.state=$n(),this.timeouts={},this.domListeners=[],this.windowListeners={},this.bindings={},this.clean=function(){e.resetBindings(),Object.values(e.timeouts).forEach(clearTimeout),Object.keys(e.windowListeners).forEach((function(t){return e.removeWindowListeners(t)}))},this.resetBindings=function(){e.bindings={};var t=e.getDomTarget();t&&(Zn(t,e.domListeners,e.config.eventOptions),e.domListeners=[])},this.getDomTarget=function(){var t=e.config.domTarget;return t&&"current"in t?t.current:t},this.addWindowListeners=function(t,n){e.config.window&&(e.windowListeners[t]=n,Yn(e.config.window,n,e.config.eventOptions))},this.removeWindowListeners=function(t){if(e.config.window){var n=e.windowListeners[t];n&&(Zn(e.config.window,n,e.config.eventOptions),delete e.windowListeners[t])}},this.addDomTargetListeners=function(t){Object.entries(e.bindings).forEach((function(t){var n=t[0],r=t[1];e.domListeners.push([n.substr(2).toLowerCase(),Vn.apply(void 0,r)])})),Yn(t,e.domListeners,e.config.eventOptions)},this.addBindings=function(t,n){(Array.isArray(t)?t:[t]).forEach((function(t){e.bindings[t]?e.bindings[t].push(n):e.bindings[t]=[n]}))},this.getBindings=function(){var t={},n=e.config.captureString;return Object.entries(e.bindings).forEach((function(e){var r=e[0],o=e[1],a=Array.isArray(o)?o:[o];t[r+n]=Vn.apply(void 0,a)})),t},this.getBind=function(){if(e.config.domTarget){var t=e.getDomTarget();return t&&e.addDomTargetListeners(t),e.clean}return e.getBindings()}};function tr(e,t,n,r){var o=m.a.useMemo((function(){var e=new er;return{nativeRefs:r,current:e,bind:function(){e.resetBindings();for(var n=arguments.length,r=new Array(n),a=0;a2?o-2:0),i=2;id?"x":l0?(r.state._delayedEvent=!0,"function"==typeof e.persist&&e.persist(),r.setTimeout((function(){return r.startDrag(e)}),r.config.delay)):r.startDrag(e))},r.onDragChange=function(e){if(!r.state.canceled)if(r.state._active){var t=Jn(e);if(t.down){r.updateSharedState(t);var n=Qn(e).values,o=r.getKinematics(n,e),a=r.state._isTap;a&&Cn(o._movement)>=3&&(a=!1),r.updateGestureState(An(An(An({},r.getGenericPayload(e)),o),{},{_isTap:a,cancel:function(){return r.onCancel()}})),r.fireGestureHandler()}else r.onDragEnd(e)}else r.state._delayedEvent&&(r.clearTimeout(),r.startDrag(e))},r.onDragEnd=function(e){r.state._active=!1,r.updateSharedState({down:!1,buttons:0,touches:0});var t=r.state,n=t._isTap,o=t.values,a=t.velocities,i=a[0],c=a[1],s=t.movement,u=s[0],l=s[1],d=t._intentional,f=d[0],p=d[1],b=An(An({},r.getGenericPayload(e)),r.getMovement(o)),h=b.elapsedTime,v=r.config,m=v.swipeVelocity,y=m[0],g=m[1],O=v.swipeDistance,j=O[0],w=O[1],k=[0,0];h<220&&(!1!==f&&Math.abs(i)>y&&Math.abs(u)>j&&(k[0]=Mn(i)),!1!==p&&Math.abs(c)>g&&Math.abs(l)>w&&(k[1]=Mn(c))),r.updateGestureState(An(An({event:e},b),{},{tap:n,swipe:k})),r.fireGestureHandler(r.config.filterTaps&&r.state._isTap)},r.clean=function(){e.prototype.clean.call(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(r)),r.state._delayedEvent=!1,r.controller.config.pointer&&r.removePointers()},r.onCancel=function(){r.updateGestureState({canceled:!0,cancel:Hn}),r.state._active=!1,r.updateSharedState({down:!1,buttons:0,touches:0}),requestAnimationFrame((function(){return r.fireGestureHandler()}))},r}Fn(t,e);var n=t.prototype;return n.startDrag=function(e){var t=this,n=Qn(e).values;this.updateSharedState(Jn(e));var r=An(An({},this.getStartGestureState(n,e)),this.getGenericPayload(e,!0));this.updateGestureState(An(An(An({},r),this.getMovement(n,r)),{},{cancel:function(){return t.onCancel()}})),this.fireGestureHandler()},n.addBindings=function(){this.controller.config.pointer?(this.controller.addBindings("onPointerDown",this.onDragStart),this.controller.addBindings("onPointerMove",this.onDragChange),this.controller.addBindings(["onPointerUp","onPointerCancel"],this.onDragEnd)):this.controller.addBindings(["onTouchStart","onMouseDown"],this.onDragStart)},t}(rr),ar="undefined"!=typeof window?window:void 0,ir={lockDirection:!1,axis:void 0,bounds:void 0};function cr(e){void 0===e&&(e={});var t=e,n=t.eventOptions,r=(n=void 0===n?{}:n).passive,o=void 0===r||r,a=n.capture,i=void 0!==a&&a,c=n.pointer,s=void 0!==c&&c,u=t.window,l=void 0===u?ar:u,d=t.domTarget,f=void 0===d?void 0:d,p=t.enabled,b=void 0===p||p;return An(An({},Ln(t,["eventOptions","window","domTarget","enabled"])),{},{enabled:b,domTarget:f,window:l,eventOptions:{passive:!f||!!o,capture:!!i},captureString:i?"Capture":"",pointer:!!s})}function sr(e){var t=e.threshold,n=void 0===t?void 0:t,r=e.rubberband,o=void 0===r?0:r,a=e.enabled,i=void 0===a||a,c=e.initial;return"boolean"==typeof o&&(o=o?.15:0),void 0===n&&(n=0),{enabled:i,initial:void 0===c?[0,0]:c,threshold:Wn(n),rubberband:Wn(o)}}function ur(e){void 0===e&&(e={});var t=e,n=t.axis,r=t.lockDirection,o=t.bounds,a=void 0===o?{}:o,i=Ln(t,["axis","lockDirection","bounds"]),c=[[Kn(a.left,-1/0),Kn(a.right,1/0)],[Kn(a.top,-1/0),Kn(a.bottom,1/0)]];return An(An(An(An({},sr(i)),ir),Un({axis:n,lockDirection:r},e)),{},{bounds:c})}function lr(e){void 0===e&&(e={});var t=e,n=t.enabled,r=t.threshold,o=t.bounds,a=t.rubberband,i=t.initial,c=Ln(t,["enabled","threshold","bounds","rubberband","initial"]),s=c.swipeVelocity,u=void 0===s?.5:s,l=c.swipeDistance,d=void 0===l?60:l,f=c.delay,p=void 0!==f&&f,b=c.filterTaps,h=void 0!==b&&b,v=c.axis,m=c.lockDirection;void 0===r?r=Math.max(0,h?3:0,m||v?1:0):h=!0;var y=ur(Un({enabled:n,threshold:r,bounds:o,rubberband:a,axis:v,lockDirection:m,initial:i},e));return An(An({},y),{},{filterTaps:h||y.threshold[0]+y.threshold[1]>0,swipeVelocity:Wn(u),swipeDistance:Wn(d),delay:"number"==typeof p?p:p?180:0})}var dr=function(e){function t(t,n){var r;return(r=e.call(this,"move",t,n)||this).ingKey="moving",r.debounced=!0,r.moveShouldRun=function(){return r.enabled},r.onMove=function(e){r.moveShouldRun()&&(r.clearTimeout(),r.setTimeout(r.onMoveEnd),r.state._active?r.onMoveChange(e):r.onMoveStart(e))},r.onMoveStart=function(e){var t=Qn(e).values;r.updateSharedState(Jn(e));var n=An(An({},r.getStartGestureState(t,e)),r.getGenericPayload(e,!0));r.updateGestureState(An(An({},n),r.getMovement(t,n))),r.fireGestureHandler()},r.onMoveChange=function(e){var t=Jn(e);r.updateSharedState(t);var n=Qn(e).values,o=r.getKinematics(n,e);r.updateGestureState(An(An({},r.getGenericPayload(e)),o)),r.fireGestureHandler()},r.onMoveEnd=function(){r.state._active=!1,r.updateGestureState(An(An({},r.getMovement(r.state.values)),{},{velocities:[0,0],velocity:0})),r.fireGestureHandler()},r.onPointerEnter=function(e){if(r.controller.state.shared.hovering=!0,r.controller.config.enabled){if(r.controller.config.hover.enabled){var t=Qn(e).values,n=An(An(An(An({},r.controller.state.shared),r.state),r.getGenericPayload(e,!0)),{},{values:t,active:!0,hovering:!0});r.controller.handlers.hover(An(An({},n),r.mapStateValues(n)))}"move"in r.controller.handlers&&r.onMoveStart(e)}},r.onPointerLeave=function(e){if(r.controller.state.shared.hovering=!1,"move"in r.controller.handlers&&r.onMoveEnd(),r.controller.config.hover.enabled){var t=Qn(e).values,n=An(An(An(An({},r.controller.state.shared),r.state),r.getGenericPayload(e)),{},{values:t,active:!1});r.controller.handlers.hover(An(An({},n),r.mapStateValues(n)))}},r}return Fn(t,e),t.prototype.addBindings=function(){this.controller.config.pointer?("move"in this.controller.handlers&&this.controller.addBindings("onPointerMove",this.onMove),"hover"in this.controller.handlers&&(this.controller.addBindings("onPointerEnter",this.onPointerEnter),this.controller.addBindings("onPointerLeave",this.onPointerLeave))):("move"in this.controller.handlers&&this.controller.addBindings("onMouseMove",this.onMove),"hover"in this.controller.handlers&&(this.controller.addBindings("onMouseEnter",this.onPointerEnter),this.controller.addBindings("onMouseLeave",this.onPointerLeave)))},t}(rr);var fr=n(18);function pr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function br(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:vr,t=e.value;return br(br(br({},vr),e),{},{initialValue:t})}var Or=function(){for(var e=arguments.length,t=new Array(e),n=0;n0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1?arguments[1]:void 0;return null!==(e=t.find(wr))&&void 0!==e?e:n}var Sr=function(e,t){var n=Object(c.useRef)(!1);Object(c.useEffect)((function(){if(n.current)return e();n.current=!0}),t)};var Er=Object(c.forwardRef)((function(e,t){var n=e.disabled,r=void 0!==n&&n,u=e.dragDirection,l=void 0===u?"n":u,d=e.dragThreshold,f=void 0===d?10:d,p=e.id,b=e.isDragEnabled,h=void 0!==b&&b,v=e.isFocused,m=e.isPressEnterToChange,y=void 0!==m&&m,g=e.onBlur,O=void 0===g?s.noop:g,j=e.onChange,w=void 0===j?s.noop:j,k=e.onDrag,_=void 0===k?s.noop:k,S=e.onDragEnd,E=void 0===S?s.noop:S,x=e.onDragStart,C=void 0===x?s.noop:x,P=e.onFocus,D=void 0===P?s.noop:P,M=e.onKeyDown,T=void 0===M?s.noop:M,I=e.onValidate,R=void 0===I?s.noop:I,N=e.size,A=void 0===N?"default":N,F=e.setIsFocused,L=e.stateReducer,z=void 0===L?function(e){return e}:L,B=e.value,H=e.type,V=Object(i.a)(e,["disabled","dragDirection","dragThreshold","id","isDragEnabled","isFocused","isPressEnterToChange","onBlur","onChange","onDrag","onDragEnd","onDragStart","onFocus","onKeyDown","onValidate","size","setIsFocused","stateReducer","value","type"]),W=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:hr,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:vr,n=Object(c.useReducer)(jr(e),gr(t)),r=Object(a.a)(n,2),o=r[0],i=r[1],s=function(e){return function(t,n){n&&n.persist&&n.persist(),i({type:e,payload:{value:t,event:n}})}},u=function(e){return function(t){t&&t.persist&&t.persist(),i({type:e,payload:{event:t}})}},l=function(e){return function(t){i({type:e,payload:t})}},d=s(mr.CHANGE),f=s(mr.INVALIDATE),p=s(mr.RESET),b=s(mr.COMMIT),h=s(mr.UPDATE),v=l(mr.DRAG_START),m=l(mr.DRAG),y=l(mr.DRAG_END),g=u(mr.PRESS_UP),O=u(mr.PRESS_DOWN),j=u(mr.PRESS_ENTER);return{change:d,commit:b,dispatch:i,drag:m,dragEnd:y,dragStart:v,invalidate:f,pressDown:O,pressEnter:j,pressUp:g,reset:p,state:o,update:h}}(z,{isDragEnabled:h,value:B,isPressEnterToChange:y}),K=W.state,U=W.change,G=W.commit,$=W.drag,q=W.dragEnd,Y=W.dragStart,Z=W.invalidate,X=W.pressDown,J=W.pressEnter,Q=W.pressUp,ee=W.reset,te=W.update,ne=K._event,re=K.value,oe=K.isDragging,ae=K.isDirty,ie=Object(c.useRef)(!1),ce=function(e,t){var n=function(e){var t="ns-resize";switch(e){case"n":case"s":t="ns-resize";break;case"e":case"w":t="ew-resize"}return t}(t);return Object(c.useEffect)((function(){e?(document.documentElement.style.cursor=n,document.documentElement.style.pointerEvents="none"):(document.documentElement.style.cursor=null,document.documentElement.style.pointerEvents=null)}),[e]),n}(oe,l);Sr((function(){B!==re&&(v||ie.current?ae||(w(re,{event:ne}),ie.current=!1):te(B))}),[re,ae,v,B]);var se=function(e){var t=e.target.value;try{R(t,e),G(t,e)}catch(t){Z(t,e)}},ue=function(e,t){void 0===t&&(t={});var n=t,r=n.domTarget,o=n.eventOptions,a=n.window,i=Ln(n,["domTarget","eventOptions","window"]),c=An(An({},cr({domTarget:r,eventOptions:o,window:a})),{},{drag:lr(i)});return tr({drag:e},[or],c)}((function(e){var t=e.distance,n=e.dragging,r=e.event;if(t){if(r.stopPropagation(),!n)return E(e),void q(e);_(e),$(e),oe||(C(e),Y(e))}}),{threshold:f,enabled:h}),le=h?ue():{},de=le.onMouseDown,fe=le.onTouchStart,pe=de;return"number"===H&&(pe=function(e){e.target!==e.target.ownerDocument.activeElement&&e.target.focus(),h&&de(e)}),Object(c.createElement)(ln,Object(o.a)({},V,{className:"components-input-control__input",disabled:r,dragCursor:ce,isDragging:oe,id:p,onBlur:function(e){O(e),F(!1),y&&ae&&(ie.current=!0,kr(re)?ee(B):se(e))},onChange:function(e){var t=e.target.value;U(t,e)},onFocus:function(e){D(e),F(!0)},onKeyDown:function(e){var t=e.keyCode;switch(T(e),t){case fr.UP:Q(e);break;case fr.DOWN:X(e);break;case fr.ENTER:J(e),y&&(e.preventDefault(),se(e))}},onMouseDown:pe,onTouchStart:fe,ref:t,size:A,value:re,type:H}))}));function xr(e,t){var n=e.__unstableStateReducer,r=void 0===n?function(e){return e}:n,u=e.__unstableInputWidth,d=e.className,f=e.disabled,p=void 0!==f&&f,b=e.hideLabelFromVision,h=void 0!==b&&b,v=e.id,m=e.isPressEnterToChange,y=void 0!==m&&m,g=e.label,O=e.labelPosition,j=void 0===O?"top":O,w=e.onChange,k=void 0===w?s.noop:w,_=e.onValidate,S=void 0===_?s.noop:_,x=e.onKeyDown,C=void 0===x?s.noop:x,P=e.prefix,D=e.size,M=void 0===D?"default":D,T=e.suffix,I=e.value,R=Object(i.a)(e,["__unstableStateReducer","__unstableInputWidth","className","disabled","hideLabelFromVision","id","isPressEnterToChange","label","labelPosition","onChange","onValidate","onKeyDown","prefix","size","suffix","value"]),N=Object(c.useState)(!1),A=Object(a.a)(N,2),F=A[0],L=A[1],z=function(e){var t=Object(E.useInstanceId)(xr),n="inspector-input-control-".concat(t);return e||n}(v),B=l()("components-input-control",d);return Object(c.createElement)(kn,{__unstableInputWidth:u,className:B,disabled:p,gap:3,hideLabelFromVision:h,id:z,isFocused:F,justify:"left",label:g,labelPosition:j,prefix:P,size:M,suffix:T},Object(c.createElement)(Er,Object(o.a)({},R,{className:"components-input-control__input",disabled:p,id:z,isFocused:F,isPressEnterToChange:y,onChange:k,onKeyDown:C,onValidate:S,ref:t,setIsFocused:L,size:M,stateReducer:r,value:I})))}var Cr=Object(c.forwardRef)(xr);var Pr={name:"1b9wwt5",styles:"&::-webkit-outer-spin-button,&::-webkit-inner-spin-button{-webkit-appearance:none !important;margin:0 !important;}"},Dr=function(e){return e.hideHTMLArrows?Pr:""},Mr=Oe(Cr,{target:"ep48uk90",label:"Input"})(Dr,";");function Tr(e){var t=Number(e);return isNaN(t)?0:t}function Ir(){for(var e=arguments.length,t=new Array(e),n=0;n0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1/0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1/0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,o=Tr(e),a=Tr(r),i=Rr(r),c=Math.round(o/a)*a,u=Object(s.clamp)(c,t,n);return i?Tr(u.toFixed(i)):u}var Ar=function(e){var t=e.isShiftStepEnabled,n=void 0===t||t,r=e.shiftStep,o=void 0===r?10:r,i=e.step,s=void 0===i?1:i,u=Object(c.useState)(!1),l=Object(a.a)(u,2),d=l[0],f=l[1];return Object(c.useEffect)((function(){var e=function(e){f(e.shiftKey)};return window.addEventListener("keydown",e),window.addEventListener("keyup",e),function(){window.removeEventListener("keydown",e),window.removeEventListener("keyup",e)}}),[]),n&&d?o*s:s};var Fr=Object(c.forwardRef)((function(e,t){var n=e.__unstableStateReducer,r=void 0===n?function(e){return e}:n,s=e.className,u=e.dragDirection,d=void 0===u?"n":u,f=e.hideHTMLArrows,p=void 0!==f&&f,b=e.isDragEnabled,h=void 0===b||b,v=e.isShiftStepEnabled,m=void 0===v||v,y=e.label,g=e.max,O=void 0===g?1/0:g,j=e.min,w=void 0===j?-1/0:j,k=e.shiftStep,_=void 0===k?10:k,S=e.step,E=void 0===S?1:S,x=e.type,C=void 0===x?"number":x,P=e.value,D=Object(i.a)(e,["__unstableStateReducer","className","dragDirection","hideHTMLArrows","isDragEnabled","isShiftStepEnabled","label","max","min","shiftStep","step","type","value"]),M=Je(),T=Nr(0,w,O,E),I=Ar({step:E,shiftStep:_,isShiftStepEnabled:m}),R="number"===C?"off":null,N=l()("components-number-control",s);return Object(c.createElement)(Mr,Object(o.a)({autoComplete:R,inputMode:"numeric"},D,{className:N,dragDirection:d,hideHTMLArrows:p,isDragEnabled:h,label:y,max:O,min:w,ref:t,step:I,type:C,value:P,__unstableStateReducer:Or((function(e,t){var n=t.type,r=t.payload,o=null==r?void 0:r.event,i=e.value;if(n===yr.PRESS_UP||n===yr.PRESS_DOWN){var c=o.shiftKey&&m?parseFloat(_)*parseFloat(E):parseFloat(E),s=kr(i)?T:i;(null==o?void 0:o.preventDefault)&&o.preventDefault(),n===yr.PRESS_UP&&(s=Ir(s,c)),n===yr.PRESS_DOWN&&(s=function(){for(var e=arguments.length,t=new Array(e),n=0;n1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:10,r=[],o=0;o0?null:Object(c.createElement)(qr.a,{focusOnMount:!1,onClose:b,position:"top right",className:"components-autocomplete__popover",anchorRef:(n=window.getSelection(),n.rangeCount?n.getRangeAt(0):null)},Object(c.createElement)("div",{id:i,role:"listbox",className:"components-autocomplete__results"},Object(s.map)(v,(function(e,t){return Object(c.createElement)($r.a,{key:e.key,id:"components-autocomplete-item-".concat(o,"-").concat(e.key),role:"option","aria-selected":t===d,disabled:e.isDisabled,className:l()("components-autocomplete__result",u,{"is-selected":t===d}),onClick:function(){return p(e)}},e.label)}))))}};var Jr=Zr((function e(t){var n,r=t.children,o=t.isSelected,i=t.record,u=t.onChange,l=t.onReplace,d=t.completers,f=t.debouncedSpeak,p=Object(E.useInstanceId)(e),b=Object(c.useState)(0),h=Object(a.a)(b,2),v=h[0],m=h[1],y=Object(c.useState)([]),g=Object(a.a)(y,2),O=g[0],j=g[1],w=Object(c.useState)(""),k=Object(a.a)(w,2),_=k[0],x=k[1],C=Object(c.useState)(null),P=Object(a.a)(C,2),D=P[0],M=P[1],T=Object(c.useState)(null),I=Object(a.a)(T,2),R=I[0],N=I[1];function A(e){var t=(D||{}).getOptionCompletion;if(!e.isDisabled){if(t){var n=t(e.value,_),r=void 0===n.action||void 0===n.value?{action:"insert-at-caret",value:n}:n,o=r.action,a=r.value;"replace"===o?l([a]):"insert-at-caret"===o&&(s=a,d=i.start,f=d-D.triggerPrefix.length-_.length,p=Object(Gr.create)({html:Object(c.renderToString)(s)}),u(Object(Gr.insert)(i,p,f,d)))}var s,d,f,p;F()}}function F(){m(0),j([]),x(""),M(null),N(null)}Object(Gr.isCollapsed)(i)&&(n=Object(Gr.getTextContent)(Object(Gr.slice)(i,0))),Object(c.useEffect)((function(){if(n){var e=Object(s.deburr)(n),t=Object(Gr.getTextContent)(Object(Gr.slice)(i,void 0,Object(Gr.getTextContent)(i).length)),r=Object(s.find)(d,(function(n){var r=n.triggerPrefix,o=n.allowContext,a=e.lastIndexOf(r);return-1!==a&&(!(o&&!o(e.slice(0,a),t))&&/^\S*$/.test(e.slice(a+r.length)))}));if(r){var o=Object(s.escapeRegExp)(r.triggerPrefix),a=e.match(new RegExp("".concat(o,"(\\S*)$"))),c=a&&a[1];M(r),N((function(){return r!==D?Xr(r):R})),x(c)}else F()}}),[n]);var L=(O[v]||{}).key,z=void 0===L?"":L,B=(D||{}).className,H=!!D&&O.length>0,V=H?"components-autocomplete-listbox-".concat(p):null,W=H?"components-autocomplete-item-".concat(p,"-").concat(z):null;return Object(c.createElement)(c.Fragment,null,r({isExpanded:H,listBoxId:V,activeId:W,onKeyDown:function(e){if(D&&0!==O.length){switch(e.keyCode){case fr.UP:m((0===v?O.length:v)-1);break;case fr.DOWN:m((v+1)%O.length);break;case fr.ESCAPE:M(null),N(null);break;case fr.ENTER:A(O[v]);break;case fr.LEFT:case fr.RIGHT:return void F();default:return}e.preventDefault(),e.stopPropagation()}}}),o&&R&&Object(c.createElement)(R,{className:B,filterValue:_,instanceId:p,listBoxId:V,selectedIndex:v,onChangeOptions:function(e){m(e.length===O.length?v:0),j(e),function(e){f&&(e.length?f(Object(S.sprintf)(Object(S._n)("%d result found, use up and down arrow keys to navigate.","%d results found, use up and down arrow keys to navigate.",e.length),e.length),"assertive"):f(Object(S.__)("No results."),"assertive"))}(e)},onSelect:A}))}));var Qr=Oe("div",{target:"e1agakv00",label:"Root"})({name:"1bt0omd",styles:"box-sizing:border-box;position:relative;"}),eo=function(e){var t=e.disableUnits;return fe(tt({paddingRight:t?3:24})(),";")},to={name:"1y65o8",styles:"&::-webkit-outer-spin-button,&::-webkit-inner-spin-button{-webkit-appearance:none;margin:0;}"},no=function(e){return e.disableUnits?"":to},ro=Oe(Fr,{target:"e1agakv01",label:"ValueInput"})("&&&{input{appearance:none;-moz-appearance:textfield;display:block;width:100%;",no,";",eo,";}}"),oo=function(e){return fe("appearance:none;background:transparent;border-radius:2px;border:none;box-sizing:border-box;color:",Fe("darkGray.500"),";display:block;font-size:8px;line-height:1;letter-spacing:-0.5px;outline:none;padding:2px 1px;position:absolute;text-align-last:center;text-transform:uppercase;width:20px;",tt({borderTopLeftRadius:0,borderBottomLeftRadius:0})()," ",tt({right:0})()," ",(t=e.size,fe({default:{height:28,lineHeight:"24px",minHeight:28,top:1},small:{height:22,lineHeight:"18px",minHeight:22,top:1}}[t],"")),"");var t},ao=Oe("div",{target:"e1agakv02",label:"UnitLabel"})("&&&{pointer-events:none;",oo,";}"),io=Oe("select",{target:"e1agakv03",label:"UnitSelect"})("&&&{",oo,";cursor:pointer;border:1px solid transparent;&:hover{background-color:",Fe("lightGray.300"),";}&:focus{border-color:",Fe("ui.borderFocus"),";outline:2px solid transparent;outline-offset:0;}&:disabled{cursor:initial;&:hover{background-color:transparent;}}}"),co=[{value:"px",label:"px",default:0},{value:"%",label:"%",default:10},{value:"em",label:"em",default:0},{value:"rem",label:"rem",default:0},{value:"vw",label:"vw",default:10},{value:"vh",label:"vh",default:10}],so=co[0];function uo(e){return!Object(s.isEmpty)(e)&&e.length>1&&!1!==e}function lo(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:co,n=String(e).trim(),r=parseFloat(n,10);r=isNaN(r)?"":r;var o=n.match(/[\d.\-\+]*\s*(.*)/)[1],a=void 0!==o?o:"";if(a=a.toLowerCase(),uo(t)){var i=t.find((function(e){return e.value===a}));a=null==i?void 0:i.value}else a=so.value;return[r,a]}function fo(e,t,n,r){var o,i,c=lo(e,t),s=Object(a.a)(c,2),u=s[0],l=s[1],d=u;((isNaN(u)||""===u)&&(d=n),o=l||r,uo(t)&&!o)&&(o=null===(i=t[0])||void 0===i?void 0:i.value);return[d,o]}function po(e){var t=e.className,n=e.isTabbable,r=void 0===n||n,a=e.options,u=void 0===a?co:a,d=e.onChange,f=void 0===d?s.noop:d,p=e.size,b=void 0===p?"default":p,h=e.value,v=void 0===h?"px":h,m=Object(i.a)(e,["className","isTabbable","options","onChange","size","value"]);if(!uo(u))return Object(c.createElement)(ao,{className:"components-unit-control__unit-label",size:b},v);var y=l()("components-unit-control__select",t);return Object(c.createElement)(io,Object(o.a)({className:y,onChange:function(e){var t=e.target.value,n=u.find((function(e){return e.value===t}));f(t,{event:e,data:n})},size:b,tabIndex:r?null:"-1",value:v},m),u.map((function(e){return Object(c.createElement)("option",{value:e.value,key:e.value},e.label)})))}function bo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ho(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:vo,n=ho(ho({},vo),t),r=n.initial,o=n.fallback,i=Object(c.useState)(e),s=Object(a.a)(i,2),u=s[0],l=s[1],d=wr(e);Object(c.useEffect)((function(){d&&u&&l(void 0)}),[d,u]);var f=_r([e,u,r],o),p=function(e){d||l(e)};return[f,p]};var yo=Object(c.forwardRef)((function(e,t){var n=e.__unstableStateReducer,r=void 0===n?function(e){return e}:n,u=e.autoComplete,d=void 0===u?"off":u,f=e.className,p=e.disabled,b=void 0!==p&&p,h=e.disableUnits,v=void 0!==h&&h,m=e.isPressEnterToChange,y=void 0!==m&&m,g=e.isResetValueOnUnitChange,O=void 0!==g&&g,j=e.isUnitSelectTabbable,w=void 0===j||j,k=e.label,_=e.onChange,S=void 0===_?s.noop:_,E=e.onUnitChange,x=void 0===E?s.noop:E,C=e.size,P=void 0===C?"default":C,D=e.style,M=e.unit,T=e.units,I=void 0===T?co:T,R=e.value,N=Object(i.a)(e,["__unstableStateReducer","autoComplete","className","disabled","disableUnits","isPressEnterToChange","isResetValueOnUnitChange","isUnitSelectTabbable","label","onChange","onUnitChange","size","style","unit","units","value"]),A=function(e,t,n){return lo(t?"".concat(e).concat(t):e,n)}(R,M,I),F=Object(a.a)(A,2),L=F[0],z=F[1],B=mo(M,{initial:z}),H=Object(a.a)(B,2),V=H[0],W=H[1],K=Object(c.useRef)(null),U=l()("components-unit-control",f),G=function(e){if(isNaN(e.target.value)){var t=fo(e.target.value,I,L,V),n=Object(a.a)(t,2),r=n[0],o=n[1];if(K.current=r,y&&o!==V){var i={event:e,data:I.find((function(e){return e.value===o}))};S("".concat(r).concat(o),i),x(o,i),W(o)}}else K.current=null},$=G,q=v?null:Object(c.createElement)(po,{disabled:b,isTabbable:w,options:I,onChange:function(e,t){var n=t.data,r="".concat(L).concat(e);O&&void 0!==(null==n?void 0:n.default)&&(r="".concat(n.default).concat(e)),S(r,t),x(e,t),W(e)},size:P,value:V});return Object(c.createElement)(Qr,{className:"components-unit-control-wrapper",style:D},Object(c.createElement)(ro,Object(o.a)({"aria-label":k,type:y?"text":"number"},Object(s.omit)(N,["children"]),{autoComplete:d,className:U,disabled:b,disableUnits:v,isPressEnterToChange:y,label:k,onBlur:$,onKeyDown:function(e){e.keyCode===fr.ENTER&&G(e)},onChange:function(e,t){""!==e?(e=fo(e,I,L,V).join(""),S(e,t)):S("",t)},ref:t,size:P,suffix:q,value:L,__unstableStateReducer:Or((function(e,t){return t.type===yr.COMMIT&&null!==K.current&&(e.value=K.current,K.current=null),e}),r)})))}));var go=Oe("div",{target:"e7pk0lh0",label:"Root"})({name:"vho1ao",styles:"box-sizing:border-box;max-width:235px;padding-bottom:12px;width:100%;"}),Oo=Oe(kt,{target:"e7pk0lh1",label:"Header"})("color:",Fe("ui.label"),";padding-bottom:8px;"),jo=Oe(kt,{target:"e7pk0lh2",label:"HeaderControlWrapper"})({name:"19de7qh",styles:"min-height:30px;"}),wo=Oe("div",{target:"e7pk0lh3",label:"UnitControlWrapper"})({name:"zypm0w",styles:"box-sizing:border-box;max-width:80px;"}),ko=Oe(kt,{target:"e7pk0lh4",label:"LayoutContainer"})({name:"39f89t",styles:"justify-content:center;padding-top:8px;"}),_o=Oe(kt,{target:"e7pk0lh5",label:"Layout"})({name:"ojqyia",styles:"position:relative;height:100%;width:100%;"}),So={name:"icip60",styles:"border-radius:2px;"},Eo={name:"1k07npk",styles:"border-radius:0;"},xo=function(e){var t=e.isFirst,n=e.isLast,r=e.isOnly;return t?tt({borderTopRightRadius:0,borderBottomRightRadius:0})():n?tt({borderTopLeftRadius:0,borderBottomLeftRadius:0})():r?So:Eo},Co=function(e){return tt({marginLeft:e.isFirst?0:-1})()},Po=Oe(yo,{target:"e7pk0lh6",label:"UnitControl"})("max-width:60px;",xo,";",Co,";");function Do(e){var t=e.isFirst,n=e.isLast,r=e.isOnly,a=e.onHoverOn,u=void 0===a?s.noop:a,l=e.onHoverOff,d=void 0===l?s.noop:l,f=e.label,p=e.value,b=Object(i.a)(e,["isFirst","isLast","isOnly","onHoverOn","onHoverOff","label","value"]),h=function(e,t){void 0===t&&(t={});var n=t,r=n.domTarget,o=n.eventOptions,a=n.window,i=Ln(n,["domTarget","eventOptions","window"]),c=An(An({},cr({domTarget:r,eventOptions:o,window:a})),{},{hover:An({enabled:!0},i)});return tr({hover:e},[dr],c)}((function(e){var t=e.event,n=Object(i.a)(e,["event"]);n.hovering?u(t,n):d(t,n)}));return Object(c.createElement)(wo,Object(o.a)({"aria-label":f},h()),Object(c.createElement)(Mo,{text:f},Object(c.createElement)(Po,Object(o.a)({className:"component-box-control__unit-control",hideHTMLArrows:!0,isFirst:t,isLast:n,isOnly:r,isPressEnterToChange:!0,isResetValueOnUnitChange:!1,value:p},b))))}function Mo(e){var t=e.children,n=e.text;return n?Object(c.createElement)(C.a,{text:n,position:"top"},Object(c.createElement)("div",null,t)):t}var To={all:Object(S.__)("All"),top:Object(S.__)("Top"),bottom:Object(S.__)("Bottom"),left:Object(S.__)("Left"),right:Object(S.__)("Right"),mixed:Object(S.__)("Mixed")},Io={top:null,right:null,bottom:null,left:null},Ro={top:!1,right:!1,bottom:!1,left:!1};function No(e){return e.sort((function(t,n){return e.filter((function(e){return e===t})).length-e.filter((function(e){return e===n})).length})).pop()}function Ao(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=Object.values(e).map(lo),n=t.map((function(e){return e[0]})),r=t.map((function(e){return e[1]})),o=n.every((function(e){return e===n[0]}))?n[0]:"",a=No(r),i=Object(s.isNumber)(o)?"".concat(o).concat(a):null;return i}function Fo(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=Ao(e),n=isNaN(parseFloat(t));return n}function Lo(e){return void 0!==e&&!Object(s.isEmpty)(Object.values(e).filter(Boolean))}function zo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Bo(e){var t=e.onChange,n=void 0===t?s.noop:t,r=e.onFocus,a=void 0===r?s.noop:r,u=e.onHoverOn,l=void 0===u?s.noop:u,d=e.onHoverOff,f=void 0===d?s.noop:d,p=e.values,b=Object(i.a)(e,["onChange","onFocus","onHoverOn","onHoverOff","values"]),h=Ao(p),v=Lo(p)&&Fo(p),m=v?To.mixed:null;return Object(c.createElement)(Do,Object(o.a)({},b,{disableUnits:v,isOnly:!0,value:h,onChange:function(e){var t=function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};l(ma(ma({},Ro),e))},onHoverOff:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};l(ma(ma({},Ro),e))},isLinked:P,units:b,values:g});return Object(c.createElement)(go,{id:N,role:"region","aria-labelledby":A},Object(c.createElement)(Oo,{className:"component-box-control__header"},Object(c.createElement)(St,null,Object(c.createElement)(Zt,{id:A,className:"component-box-control__label"},f)),Object(c.createElement)(St,null,Object(c.createElement)($r.a,{className:"component-box-control__reset-button",isSecondary:!0,isSmall:!0,onClick:function(){var e=Io;i(e),y(e),_(!1)},disabled:!k},Object(S.__)("Reset")))),Object(c.createElement)(jo,{className:"component-box-control__header-control-wrapper"},Object(c.createElement)(St,null,Object(c.createElement)(Jo,{side:I})),P&&Object(c.createElement)(wt,null,Object(c.createElement)(Bo,F)),Object(c.createElement)(St,null,Object(c.createElement)(na,{onClick:function(){D(!P),R(P?"top":"all")},isLinked:P}))),!P&&Object(c.createElement)(Vo,F))}ga.__Visualizer=function(e){var t=e.children,n=e.showValues,r=void 0===n?Ro:n,a=e.values,s=void 0===a?Io:a,u=Object(i.a)(e,["children","showValues","values"]),l=!t;return Object(c.createElement)(oa,Object(o.a)({},u,{isPositionAbsolute:l,"aria-hidden":"true"}),Object(c.createElement)(la,{showValues:r,values:s}),t)};var Oa=Object(c.forwardRef)((function(e,t){var n=e.className,r=Object(i.a)(e,["className"]),a=l()("components-button-group",n);return Object(c.createElement)("div",Object(o.a)({ref:t,role:"group",className:a},r))})),ja=Object(c.createContext)({}),wa=function(){return Object(c.useContext)(ja)},ka={borderColor:Fe("lightGray.500"),borderRadius:"3px",backgroundShady:Fe("lightGray.200")},_a=ka.borderColor,Sa=ka.borderRadius,Ea=ka.backgroundShady,xa=Oe("div",{target:"e1q7k77g0",label:"CardUI"})("background:",Fe("white"),";box-sizing:border-box;border-radius:",Sa,";border:1px solid ",_a,";",Ra,";&.is-elevated{box-shadow:0px 1px 3px 0px rgba( 0,0,0,0.2 ),0px 1px 1px 0px rgba( 0,0,0,0.14 ),0px 2px 1px -1px rgba( 0,0,0,0.12 );}"),Ca=Oe(_t,{target:"e1q7k77g1",label:"HeaderUI"})("border-bottom:1px solid ",_a,";border-top-left-radius:",Sa,";border-top-right-radius:",Sa,";box-sizing:border-box;&:last-child{border-bottom:none;}",Ia,";",Ra,";",Na,";"),Pa=Oe("div",{target:"e1q7k77g2",label:"MediaUI"})("box-sizing:border-box;overflow:hidden;& > img,& > iframe{display:block;height:auto;max-width:100%;width:100%;}&:first-of-type{border-top-left-radius:",Sa,";border-top-right-radius:",Sa,";}&:last-of-type{border-bottom-left-radius:",Sa,";border-bottom-right-radius:",Sa,";}"),Da=Oe("div",{target:"e1q7k77g3",label:"BodyUI"})("box-sizing:border-box;",(function(){return"\n\t\t&.is-size {\n\t\t\t&-large {\n\t\t\t\tpadding: ".concat(dt(3)," ").concat(dt(4),";\n\t\t\t}\n\t\t\t&-medium {\n\t\t\t\tpadding: ").concat(dt(2)," ").concat(dt(3),";\n\t\t\t}\n\t\t\t&-small {\n\t\t\t\tpadding: ").concat(dt(2),";\n\t\t\t}\n\t\t\t&-extraSmall {\n\t\t\t\tpadding: ").concat(dt(1),";\n\t\t\t}\n\t\t}\n\t")}),";",Na,";"),Ma=Oe(_t,{target:"e1q7k77g4",label:"FooterUI"})("border-top:1px solid ",_a,";border-bottom-left-radius:",Sa,";border-bottom-right-radius:",Sa,";box-sizing:border-box;&:first-of-type{border-top:none;}",Ia,";",Ra,";",Na,";"),Ta=Oe(r.HorizontalRule,{target:"e1q7k77g5",label:"DividerUI"})("all:unset;border-top:1px solid ",_a,";box-sizing:border-box;display:block;height:0;width:100%;");function Ia(){return"\n\t\t&.is-size {\n\t\t\t&-large {\n\t\t\t\tpadding: ".concat(dt(3)," ").concat(dt(4),";\n\t\t\t}\n\t\t\t&-medium {\n\t\t\t\tpadding: ").concat(dt(2)," ").concat(dt(3),";\n\t\t\t}\n\t\t\t&-small {\n\t\t\t\tpadding: ").concat(dt(2),";\n\t\t\t}\n\t\t\t&-extraSmall {\n\t\t\t\tpadding: ").concat(dt(1),";\n\t\t\t}\n\t\t}\n\t")}function Ra(){return"\n\t\t&.is-borderless {\n\t\t\tborder: none;\n\t\t}\n\t"}function Na(){return"\n\t\t&.is-shady {\n\t\t\tbackground: ".concat(Ea,";\n\t\t}\n\t")}function Aa(e){var t=e.className,n=e.isBorderless,r=e.isElevated,a=e.size,s=Object(i.a)(e,["className","isBorderless","isElevated","size"]),u=ja.Provider,d={isBorderless:n,isElevated:r,size:a},f=l()("components-card",n&&"is-borderless",r&&"is-elevated",a&&"is-size-".concat(a),t);return Object(c.createElement)(u,{value:d},Object(c.createElement)(xa,Object(o.a)({},s,{className:f})))}Aa.defaultProps={isBorderless:!1,isElevated:!1,size:"medium"};var Fa=Aa;function La(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function za(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.hex?we()(e.hex):we()(e),r=n.toHsl();r.h=Math.round(r.h),r.s=Math.round(100*r.s),r.l=Math.round(100*r.l);var o=n.toHsv();o.h=Math.round(o.h),o.s=Math.round(100*o.s),o.v=Math.round(100*o.v);var a=n.toRgb(),i=n.toHex();0===r.s&&(r.h=t||0,o.h=t||0);var c="000000"===i&&0===a.a;return{color:n,hex:c?"transparent":"#".concat(i),hsl:r,hsv:o,oldHue:e.h||t||r.h,rgb:a,source:e.source}}function vi(e,t){e.preventDefault();var n=t.getBoundingClientRect(),r=n.left,o=n.top,a=n.width,i=n.height,c="number"==typeof e.pageX?e.pageX:e.touches[0].pageX,s="number"==typeof e.pageY?e.pageY:e.touches[0].pageY,u=c-(r+window.pageXOffset),l=s-(o+window.pageYOffset);return u<0?u=0:u>a?u=a:l<0?l=0:l>i&&(l=i),{top:l,left:u,width:a,height:i}}function mi(e){var t="#"===String(e).charAt(0)?1:0;return e.length!==4+t&&e.length<7+t&&we()(e).isValid()}function yi(e){var t=e.target,n=e.callback,r=e.shortcut,o=e.bindGlobal,a=e.eventName;return Object(E.useKeyboardShortcut)(r,n,{bindGlobal:o,target:t,eventName:a}),null}var gi=function(e){var t=e.children,n=e.shortcuts,r=e.bindGlobal,o=e.eventName,a=Object(c.useRef)(),i=Object(s.map)(n,(function(e,t){return Object(c.createElement)(yi,{key:t,shortcut:t,callback:e,bindGlobal:r,eventName:o,target:a})}));return c.Children.count(t)?Object(c.createElement)("div",{ref:a},i,t):i};function Oi(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(bi.a)(e);if(t){var o=Object(bi.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(pi.a)(this,n)}}var ji=function(e){Object(fi.a)(n,e);var t=Oi(n);function n(){var e;return Object(ui.a)(this,n),(e=t.apply(this,arguments)).container=Object(c.createRef)(),e.increase=e.increase.bind(Object(di.a)(e)),e.decrease=e.decrease.bind(Object(di.a)(e)),e.handleChange=e.handleChange.bind(Object(di.a)(e)),e.handleMouseDown=e.handleMouseDown.bind(Object(di.a)(e)),e.handleMouseUp=e.handleMouseUp.bind(Object(di.a)(e)),e}return Object(li.a)(n,[{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"increase",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:.01,t=this.props,n=t.hsl,r=t.onChange,o=void 0===r?s.noop:r;e=parseInt(100*e,10);var a={h:n.h,s:n.s,l:n.l,a:(parseInt(100*n.a,10)+e)/100,source:"rgb"};o(a)}},{key:"decrease",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:.01,t=this.props,n=t.hsl,r=t.onChange,o=void 0===r?s.noop:r,a=parseInt(100*n.a,10)-parseInt(100*e,10),i={h:n.h,s:n.s,l:n.l,a:n.a<=e?0:a/100,source:"rgb"};o(i)}},{key:"handleChange",value:function(e){var t=this.props.onChange,n=void 0===t?s.noop:t,r=function(e,t,n){var r=vi(e,n),o=r.left,a=r.width,i=o<0?0:Math.round(100*o/a)/100;return t.hsl.a!==i?{h:t.hsl.h,s:t.hsl.s,l:t.hsl.l,a:i,source:"rgb"}:null}(e,this.props,this.container.current);r&&n(r,e)}},{key:"handleMouseDown",value:function(e){this.handleChange(e),window.addEventListener("mousemove",this.handleChange),window.addEventListener("mouseup",this.handleMouseUp)}},{key:"handleMouseUp",value:function(){this.unbindEventListeners()}},{key:"preventKeyEvents",value:function(e){e.keyCode!==fr.TAB&&e.preventDefault()}},{key:"unbindEventListeners",value:function(){window.removeEventListener("mousemove",this.handleChange),window.removeEventListener("mouseup",this.handleMouseUp)}},{key:"render",value:function(){var e=this,t=this.props.rgb,n="".concat(t.r,",").concat(t.g,",").concat(t.b),r={background:"linear-gradient(to right, rgba(".concat(n,", 0) 0%, rgba(").concat(n,", 1) 100%)")},o={left:"".concat(100*t.a,"%")},a={up:function(){return e.increase()},right:function(){return e.increase()},"shift+up":function(){return e.increase(.1)},"shift+right":function(){return e.increase(.1)},pageup:function(){return e.increase(.1)},end:function(){return e.increase(1)},down:function(){return e.decrease()},left:function(){return e.decrease()},"shift+down":function(){return e.decrease(.1)},"shift+left":function(){return e.decrease(.1)},pagedown:function(){return e.decrease(.1)},home:function(){return e.decrease(1)}};return Object(c.createElement)(gi,{shortcuts:a},Object(c.createElement)("div",{className:"components-color-picker__alpha"},Object(c.createElement)("div",{className:"components-color-picker__alpha-gradient",style:r}),Object(c.createElement)("div",{className:"components-color-picker__alpha-bar",ref:this.container,onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},Object(c.createElement)("div",{tabIndex:"0",role:"slider","aria-valuemax":"1","aria-valuemin":"0","aria-valuenow":t.a,"aria-orientation":"horizontal","aria-label":Object(S.__)("Alpha value, from 0 (transparent) to 1 (fully opaque)."),className:"components-color-picker__alpha-pointer",style:o,onKeyDown:this.preventKeyEvents}))))}}]),n}(c.Component),wi=Object(E.pure)(ji);function ki(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(bi.a)(e);if(t){var o=Object(bi.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(pi.a)(this,n)}}var _i=function(e){Object(fi.a)(n,e);var t=ki(n);function n(){var e;return Object(ui.a)(this,n),(e=t.apply(this,arguments)).container=Object(c.createRef)(),e.increase=e.increase.bind(Object(di.a)(e)),e.decrease=e.decrease.bind(Object(di.a)(e)),e.handleChange=e.handleChange.bind(Object(di.a)(e)),e.handleMouseDown=e.handleMouseDown.bind(Object(di.a)(e)),e.handleMouseUp=e.handleMouseUp.bind(Object(di.a)(e)),e}return Object(li.a)(n,[{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"increase",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=this.props,n=t.hsl,r=t.onChange,o=void 0===r?s.noop:r,a={h:n.h+e>=359?359:n.h+e,s:n.s,l:n.l,a:n.a,source:"rgb"};o(a)}},{key:"decrease",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=this.props,n=t.hsl,r=t.onChange,o=void 0===r?s.noop:r,a={h:n.h<=e?0:n.h-e,s:n.s,l:n.l,a:n.a,source:"rgb"};o(a)}},{key:"handleChange",value:function(e){var t=this.props.onChange,n=void 0===t?s.noop:t,r=function(e,t,n){var r=vi(e,n),o=r.left,a=r.width,i=o>=a?359:360*(100*o/a)/100;return t.hsl.h!==i?{h:i,s:t.hsl.s,l:t.hsl.l,a:t.hsl.a,source:"rgb"}:null}(e,this.props,this.container.current);r&&n(r,e)}},{key:"handleMouseDown",value:function(e){this.handleChange(e),window.addEventListener("mousemove",this.handleChange),window.addEventListener("mouseup",this.handleMouseUp)}},{key:"handleMouseUp",value:function(){this.unbindEventListeners()}},{key:"preventKeyEvents",value:function(e){e.keyCode!==fr.TAB&&e.preventDefault()}},{key:"unbindEventListeners",value:function(){window.removeEventListener("mousemove",this.handleChange),window.removeEventListener("mouseup",this.handleMouseUp)}},{key:"render",value:function(){var e=this,t=this.props,n=t.hsl,r=void 0===n?{}:n,o=t.instanceId,a={left:"".concat(100*r.h/360,"%")},i={up:function(){return e.increase()},right:function(){return e.increase()},"shift+up":function(){return e.increase(10)},"shift+right":function(){return e.increase(10)},pageup:function(){return e.increase(10)},end:function(){return e.increase(359)},down:function(){return e.decrease()},left:function(){return e.decrease()},"shift+down":function(){return e.decrease(10)},"shift+left":function(){return e.decrease(10)},pagedown:function(){return e.decrease(10)},home:function(){return e.decrease(359)}};return Object(c.createElement)(gi,{shortcuts:i},Object(c.createElement)("div",{className:"components-color-picker__hue"},Object(c.createElement)("div",{className:"components-color-picker__hue-gradient"}),Object(c.createElement)("div",{className:"components-color-picker__hue-bar",ref:this.container,onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},Object(c.createElement)("div",{tabIndex:"0",role:"slider","aria-valuemax":"1","aria-valuemin":"359","aria-valuenow":r.h,"aria-orientation":"horizontal","aria-label":Object(S.__)("Hue value in degrees, from 0 to 359."),"aria-describedby":"components-color-picker__hue-description-".concat(o),className:"components-color-picker__hue-pointer",style:a,onKeyDown:this.preventKeyEvents}),Object(c.createElement)(M,{as:"p",id:"components-color-picker__hue-description-".concat(o)},Object(S.__)("Move the arrow left or right to change hue.")))))}}]),n}(c.Component),Si=Object(E.compose)(E.pure,E.withInstanceId)(_i);function Ei(e){var t=e.label,n=e.hideLabelFromVision,r=e.value,a=e.help,s=e.className,u=e.onChange,l=e.type,d=void 0===l?"text":l,f=Object(i.a)(e,["label","hideLabelFromVision","value","help","className","onChange","type"]),p=Object(E.useInstanceId)(Ei),b="inspector-text-control-".concat(p);return Object(c.createElement)(mt,{label:t,hideLabelFromVision:n,id:b,help:a,className:s},Object(c.createElement)("input",Object(o.a)({className:"components-text-control__input",type:d,id:b,value:r,onChange:function(e){return u(e.target.value)},"aria-describedby":a?b+"__help":void 0},f)))}function xi(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(bi.a)(e);if(t){var o=Object(bi.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(pi.a)(this,n)}}var Ci=function(e){Object(fi.a)(n,e);var t=xi(n);function n(){var e;return Object(ui.a)(this,n),(e=t.apply(this,arguments)).handleBlur=e.handleBlur.bind(Object(di.a)(e)),e.handleChange=e.handleChange.bind(Object(di.a)(e)),e.handleKeyDown=e.handleKeyDown.bind(Object(di.a)(e)),e}return Object(li.a)(n,[{key:"handleBlur",value:function(){var e=this.props,t=e.value,n=e.valueKey;(0,e.onChange)({source:e.source,state:"commit",value:t,valueKey:n})}},{key:"handleChange",value:function(e){var t=this.props,n=t.valueKey,r=t.onChange,o=t.source;e.length>4&&mi(e)?r({source:o,state:"commit",value:e,valueKey:n}):r({source:o,state:"draft",value:e,valueKey:n})}},{key:"handleKeyDown",value:function(e){var t=e.keyCode;if(t===fr.ENTER||t===fr.UP||t===fr.DOWN){var n=this.props,r=n.value,o=n.valueKey;(0,n.onChange)({source:n.source,state:"commit",value:r,valueKey:o})}}},{key:"render",value:function(){var e=this,t=this.props,n=t.label,r=t.value,a=Object(i.a)(t,["label","value"]);return Object(c.createElement)(Ei,Object(o.a)({className:"components-color-picker__inputs-field",label:n,value:r,onChange:function(t){return e.handleChange(t)},onBlur:this.handleBlur,onKeyDown:this.handleKeyDown},Object(s.omit)(a,["onChange","valueKey","source"])))}}]),n}(c.Component),Pi=Object(E.pure)($r.a),Di=function(e){Object(fi.a)(n,e);var t=xi(n);function n(e){var r,o=e.hsl;Object(ui.a)(this,n),r=t.apply(this,arguments);var a=1===o.a?"hex":"rgb";return r.state={view:a},r.toggleViews=r.toggleViews.bind(Object(di.a)(r)),r.resetDraftValues=r.resetDraftValues.bind(Object(di.a)(r)),r.handleChange=r.handleChange.bind(Object(di.a)(r)),r.normalizeValue=r.normalizeValue.bind(Object(di.a)(r)),r}return Object(li.a)(n,[{key:"toggleViews",value:function(){"hex"===this.state.view?(this.setState({view:"rgb"},this.resetDraftValues),Object(Yr.speak)(Object(S.__)("RGB mode active"))):"rgb"===this.state.view?(this.setState({view:"hsl"},this.resetDraftValues),Object(Yr.speak)(Object(S.__)("Hue/saturation/lightness mode active"))):"hsl"===this.state.view&&(1===this.props.hsl.a?(this.setState({view:"hex"},this.resetDraftValues),Object(Yr.speak)(Object(S.__)("Hex color mode active"))):(this.setState({view:"rgb"},this.resetDraftValues),Object(Yr.speak)(Object(S.__)("RGB mode active"))))}},{key:"resetDraftValues",value:function(){return this.props.onChange({state:"reset"})}},{key:"normalizeValue",value:function(e,t){return"a"!==e?t:t<0?0:t>1?1:Math.round(100*t)/100}},{key:"handleChange",value:function(e){var t=e.source,n=e.state,r=e.value,o=e.valueKey;this.props.onChange({source:t,state:n,valueKey:o,value:this.normalizeValue(o,r)})}},{key:"renderFields",value:function(){var e=this.props.disableAlpha,t=void 0!==e&&e;if("hex"===this.state.view)return Object(c.createElement)("div",{className:"components-color-picker__inputs-fields"},Object(c.createElement)(Ci,{source:this.state.view,label:Object(S.__)("Color value in hexadecimal"),valueKey:"hex",value:this.props.hex,onChange:this.handleChange}));if("rgb"===this.state.view){var n=t?Object(S.__)("Color value in RGB"):Object(S.__)("Color value in RGBA");return Object(c.createElement)("fieldset",null,Object(c.createElement)(M,{as:"legend"},n),Object(c.createElement)("div",{className:"components-color-picker__inputs-fields"},Object(c.createElement)(Ci,{source:this.state.view,label:"r",valueKey:"r",value:this.props.rgb.r,onChange:this.handleChange,type:"number",min:"0",max:"255"}),Object(c.createElement)(Ci,{source:this.state.view,label:"g",valueKey:"g",value:this.props.rgb.g,onChange:this.handleChange,type:"number",min:"0",max:"255"}),Object(c.createElement)(Ci,{source:this.state.view,label:"b",valueKey:"b",value:this.props.rgb.b,onChange:this.handleChange,type:"number",min:"0",max:"255"}),t?null:Object(c.createElement)(Ci,{source:this.state.view,label:"a",valueKey:"a",value:this.props.rgb.a,onChange:this.handleChange,type:"number",min:"0",max:"1",step:"0.01"})))}if("hsl"===this.state.view){var r=t?Object(S.__)("Color value in HSL"):Object(S.__)("Color value in HSLA");return Object(c.createElement)("fieldset",null,Object(c.createElement)(M,{as:"legend"},r),Object(c.createElement)("div",{className:"components-color-picker__inputs-fields"},Object(c.createElement)(Ci,{source:this.state.view,label:"h",valueKey:"h",value:this.props.hsl.h,onChange:this.handleChange,type:"number",min:"0",max:"359"}),Object(c.createElement)(Ci,{source:this.state.view,label:"s",valueKey:"s",value:this.props.hsl.s,onChange:this.handleChange,type:"number",min:"0",max:"100"}),Object(c.createElement)(Ci,{source:this.state.view,label:"l",valueKey:"l",value:this.props.hsl.l,onChange:this.handleChange,type:"number",min:"0",max:"100"}),t?null:Object(c.createElement)(Ci,{source:this.state.view,label:"a",valueKey:"a",value:this.props.hsl.a,onChange:this.handleChange,type:"number",min:"0",max:"1",step:"0.05"})))}}},{key:"render",value:function(){return Object(c.createElement)("div",{className:"components-color-picker__inputs-wrapper"},this.renderFields(),Object(c.createElement)("div",{className:"components-color-picker__inputs-toggle-wrapper"},Object(c.createElement)(Pi,{className:"components-color-picker__inputs-toggle",icon:ai.a,label:Object(S.__)("Change color format"),onClick:this.toggleViews})))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return 1!==e.hsl.a&&"hex"===t.view?{view:"rgb"}:null}}]),n}(c.Component);function Mi(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(bi.a)(e);if(t){var o=Object(bi.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(pi.a)(this,n)}}var Ti=function(e){Object(fi.a)(n,e);var t=Mi(n);function n(e){var r;return Object(ui.a)(this,n),(r=t.call(this,e)).throttle=Object(s.throttle)((function(e,t,n){e(t,n)}),50),r.container=Object(c.createRef)(),r.saturate=r.saturate.bind(Object(di.a)(r)),r.brighten=r.brighten.bind(Object(di.a)(r)),r.handleChange=r.handleChange.bind(Object(di.a)(r)),r.handleMouseDown=r.handleMouseDown.bind(Object(di.a)(r)),r.handleMouseUp=r.handleMouseUp.bind(Object(di.a)(r)),r}return Object(li.a)(n,[{key:"componentWillUnmount",value:function(){this.throttle.cancel(),this.unbindEventListeners()}},{key:"saturate",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:.01,t=this.props,n=t.hsv,r=t.onChange,o=void 0===r?s.noop:r,a=Object(s.clamp)(n.s+Math.round(100*e),0,100),i={h:n.h,s:a,v:n.v,a:n.a,source:"rgb"};o(i)}},{key:"brighten",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:.01,t=this.props,n=t.hsv,r=t.onChange,o=void 0===r?s.noop:r,a=Object(s.clamp)(n.v+Math.round(100*e),0,100),i={h:n.h,s:n.s,v:a,a:n.a,source:"rgb"};o(i)}},{key:"handleChange",value:function(e){var t=this.props.onChange,n=void 0===t?s.noop:t,r=function(e,t,n){var r=vi(e,n),o=r.top,a=r.left,i=r.width,c=r.height,s=a<0?0:100*a/i,u=o>=c?0:-100*o/c+100;return u<1&&(u=0),{h:t.hsl.h,s:s,v:u,a:t.hsl.a,source:"rgb"}}(e,this.props,this.container.current);this.throttle(n,r,e)}},{key:"handleMouseDown",value:function(e){this.handleChange(e),window.addEventListener("mousemove",this.handleChange),window.addEventListener("mouseup",this.handleMouseUp)}},{key:"handleMouseUp",value:function(){this.unbindEventListeners()}},{key:"preventKeyEvents",value:function(e){e.keyCode!==fr.TAB&&e.preventDefault()}},{key:"unbindEventListeners",value:function(){window.removeEventListener("mousemove",this.handleChange),window.removeEventListener("mouseup",this.handleMouseUp)}},{key:"render",value:function(){var e=this,t=this.props,n=t.hsv,r=t.hsl,o=t.instanceId,a={top:"".concat(100-n.v,"%"),left:"".concat(n.s,"%")},i={up:function(){return e.brighten()},"shift+up":function(){return e.brighten(.1)},pageup:function(){return e.brighten(1)},down:function(){return e.brighten(-.01)},"shift+down":function(){return e.brighten(-.1)},pagedown:function(){return e.brighten(-1)},right:function(){return e.saturate()},"shift+right":function(){return e.saturate(.1)},end:function(){return e.saturate(1)},left:function(){return e.saturate(-.01)},"shift+left":function(){return e.saturate(-.1)},home:function(){return e.saturate(-1)}};return Object(c.createElement)(gi,{shortcuts:i},Object(c.createElement)("div",{style:{background:"hsl(".concat(r.h,",100%, 50%)")},className:"components-color-picker__saturation-color",ref:this.container,onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange,role:"application"},Object(c.createElement)("div",{className:"components-color-picker__saturation-white"}),Object(c.createElement)("div",{className:"components-color-picker__saturation-black"}),Object(c.createElement)($r.a,{"aria-label":Object(S.__)("Choose a shade"),"aria-describedby":"color-picker-saturation-".concat(o),className:"components-color-picker__saturation-pointer",style:a,onKeyDown:this.preventKeyEvents}),Object(c.createElement)(M,{id:"color-picker-saturation-".concat(o)},Object(S.__)("Use your arrow keys to change the base color. Move up to lighten the color, down to darken, left to decrease saturation, and right to increase saturation."))))}}]),n}(c.Component),Ii=Object(E.compose)(E.pure,E.withInstanceId)(Ti);function Ri(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(bi.a)(e);if(t){var o=Object(bi.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(pi.a)(this,n)}}function Ni(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ai(e){for(var t=1;t-1&&this.props.scrollIntoView&&(this.scrollingIntoView=!0,Xi()(this.list.children[this.props.selectedIndex],this.list,{onlyScrollIfNeeded:!0}),this.props.setTimeout((function(){e.scrollingIntoView=!1}),100))}},{key:"bindList",value:function(e){this.list=e}},{key:"handleHover",value:function(e){var t=this;return function(){t.scrollingIntoView||t.props.onHover(e)}}},{key:"handleClick",value:function(e){var t=this;return function(){t.props.onSelect(e)}}},{key:"handleMouseDown",value:function(e){e.preventDefault()}},{key:"computeSuggestionMatch",value:function(e){var t=this.props.displayTransform(this.props.match||"").toLocaleLowerCase();if(0===t.length)return null;var n=(e=this.props.displayTransform(e)).toLocaleLowerCase().indexOf(t);return{suggestionBeforeMatch:e.substring(0,n),suggestionMatch:e.substring(n,n+t.length),suggestionAfterMatch:e.substring(n+t.length)}}},{key:"render",value:function(){var e=this;return Object(c.createElement)("ul",{ref:this.bindList,className:"components-form-token-field__suggestions-list",id:"components-form-token-suggestions-".concat(this.props.instanceId),role:"listbox"},Object(s.map)(this.props.suggestions,(function(t,n){var r=e.computeSuggestionMatch(t),o=l()("components-form-token-field__suggestion",{"is-selected":n===e.props.selectedIndex});return Object(c.createElement)("li",{id:"components-form-token-suggestions-".concat(e.props.instanceId,"-").concat(n),role:"option",className:o,key:e.props.displayTransform(t),onMouseDown:e.handleMouseDown,onClick:e.handleClick(t),onMouseEnter:e.handleHover(t),"aria-selected":n===e.props.selectedIndex},r?Object(c.createElement)("span",{"aria-label":e.props.displayTransform(t)},r.suggestionBeforeMatch,Object(c.createElement)("strong",{className:"components-form-token-field__suggestion-match"},r.suggestionMatch),r.suggestionAfterMatch):e.props.displayTransform(t))})))}}]),n}(c.Component);Qi.defaultProps={match:"",onHover:function(){},onSelect:function(){},suggestions:Object.freeze([])};var ec=Object(E.withSafeTimeout)(Qi),tc=n(102);function nc(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(bi.a)(e);if(t){var o=Object(bi.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(pi.a)(this,n)}}var rc=Object(tc.a)(function(e){Object(fi.a)(n,e);var t=nc(n);function n(){return Object(ui.a)(this,n),t.apply(this,arguments)}return Object(li.a)(n,[{key:"handleFocusOutside",value:function(e){this.props.onFocusOutside(e)}},{key:"render",value:function(){return this.props.children}}]),n}(c.Component));var oc=function e(t){var n,r=t.value,o=t.label,i=t.options,s=t.onChange,u=t.onFilterValueChange,d=t.hideLabelFromVision,f=t.help,p=t.allowReset,b=void 0===p||p,h=t.className,v=t.messages,m=void 0===v?{selected:Object(S.__)("Item selected.")}:v,y=Object(E.useInstanceId)(e),g=Object(c.useState)(null),O=Object(a.a)(g,2),j=O[0],w=O[1],k=Object(c.useState)(!1),_=Object(a.a)(k,2),x=_[0],C=_[1],P=Object(c.useState)(""),D=Object(a.a)(P,2),M=D[0],T=D[1],I=Object(c.useRef)(),R=i.find((function(e){return e.value===r})),N=null!==(n=null==R?void 0:R.label)&&void 0!==n?n:"",A=Object(c.useMemo)((function(){var e=[],t=[],n=M.toLocaleLowerCase();return i.forEach((function(r){var o=r.label.toLocaleLowerCase().indexOf(n);0===o?e.push(r):o>0&&t.push(r)})),e.concat(t)}),[M,i,r]),F=function(e){s(e.value),Object(Yr.speak)(m.selected,"assertive"),w(e),T(""),C(!1)},L=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=A.indexOf(j),n=t+e;n<0?n=A.length-1:n>=A.length&&(n=0),w(A[n]),C(!0)};return Object(c.useEffect)((function(){var e=A.length>0;if(x){var t=e?Object(S.sprintf)(Object(S._n)("%d result found, use up and down arrow keys to navigate.","%d results found, use up and down arrow keys to navigate.",A.length),A.length):Object(S.__)("No results.");Object(Yr.speak)(t,"assertive")}}),[A,x]),Object(c.createElement)(rc,{onFocusOutside:function(){C(!1)}},Object(c.createElement)(mt,{className:l()(h,"components-combobox-control"),tabIndex:"-1",label:o,id:"components-form-token-input-".concat(y),hideLabelFromVision:d,help:f},Object(c.createElement)("div",{className:"components-combobox-control__suggestions-container",tabIndex:"-1",onKeyDown:function(e){var t=!1;switch(e.keyCode){case fr.ENTER:j&&(F(j),t=!0);break;case fr.UP:L(-1),t=!0;break;case fr.DOWN:L(1),t=!0;break;case fr.ESCAPE:C(!1),w(null),t=!0,e.stopPropagation()}t&&e.preventDefault()}},Object(c.createElement)(kt,null,Object(c.createElement)(wt,null,Object(c.createElement)(Yi,{className:"components-combobox-control__input",instanceId:y,ref:I,value:x?M:N,onFocus:function(){C(!0),u(""),T("")},isExpanded:x,selectedSuggestionIndex:A.indexOf(j),onChange:function(e){var t=e.value;T(t),u(t),C(!0)}})),b&&Object(c.createElement)(St,null,Object(c.createElement)($r.a,{className:"components-combobox-control__reset",icon:$i.a,disabled:!r,onClick:function(){s(null),I.current.input.focus()},label:Object(S.__)("Reset")}))),x&&Object(c.createElement)(ec,{instanceId:y,match:{label:M},displayTransform:function(e){return e.label},suggestions:A,selectedIndex:A.indexOf(j),onHover:w,onSelect:F,scrollIntoView:!0}))))},ac=n(43),ic=n(28),cc=n.n(ic);n(199);function sc(e){return null!=e&&"object"==typeof e&&1===e.nodeType}function uc(e,t){return(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e}function lc(e,t){if(e.clientHeightt||a>e&&i=t&&c>=n?a-e-r:i>t&&cn?i-t+o:0}var fc=0;function pc(e,t){e&&function(e,t){var n=window,r=t.scrollMode,o=t.block,a=t.inline,i=t.boundary,c=t.skipOverflowHiddenElements,s="function"==typeof i?i:function(e){return e!==i};if(!sc(e))throw new TypeError("Invalid target");for(var u=document.scrollingElement||document.documentElement,l=[],d=e;sc(d)&&s(d);){if((d=d.parentNode)===u){l.push(d);break}d===document.body&&lc(d)&&!lc(document.documentElement)||lc(d,c)&&l.push(d)}for(var f=n.visualViewport?n.visualViewport.width:innerWidth,p=n.visualViewport?n.visualViewport.height:innerHeight,b=window.scrollX||pageXOffset,h=window.scrollY||pageYOffset,v=e.getBoundingClientRect(),m=v.height,y=v.width,g=v.top,O=v.right,j=v.bottom,w=v.left,k="start"===o||"nearest"===o?g:"end"===o?j:g+m/2,_="center"===a?w+y/2:"end"===a?O:w,S=[],E=0;E=0&&w>=0&&j<=p&&O<=f&&g>=M&&j<=I&&w>=R&&O<=T)return S;var N=getComputedStyle(x),A=parseInt(N.borderLeftWidth,10),F=parseInt(N.borderTopWidth,10),L=parseInt(N.borderRightWidth,10),z=parseInt(N.borderBottomWidth,10),B=0,H=0,V="offsetWidth"in x?x.offsetWidth-x.clientWidth-A-L:0,W="offsetHeight"in x?x.offsetHeight-x.clientHeight-F-z:0;if(u===x)B="start"===o?k:"end"===o?k-p:"nearest"===o?dc(h,h+p,p,F,z,h+k,h+k+m,m):k-p/2,H="start"===a?_:"center"===a?_-f/2:"end"===a?_-f:dc(b,b+f,f,A,L,b+_,b+_+y,y),B=Math.max(0,B+h),H=Math.max(0,H+b);else{B="start"===o?k-M-F:"end"===o?k-I+z+W:"nearest"===o?dc(M,I,P,F,z+W,k,k+m,m):k-(M+P/2)+W/2,H="start"===a?_-R-A:"center"===a?_-(R+D/2)+V/2:"end"===a?_-T+L+V:dc(R,T,D,A,L+V,_,_+y,y);var K=x.scrollLeft,U=x.scrollTop;k+=U-(B=Math.max(0,Math.min(U+B,x.scrollHeight-P+W))),_+=K-(H=Math.max(0,Math.min(K+H,x.scrollWidth-D+V)))}S.push({el:x,top:B,left:H})}return S}(e,{boundary:t,block:"nearest",scrollMode:"if-needed"}).forEach((function(e){var t=e.el,n=e.top,r=e.left;t.scrollTop=n,t.scrollLeft=r}))}function bc(e,t){return e===t||e.contains&&e.contains(t)}function hc(e,t){var n;function r(){n&&clearTimeout(n)}function o(){for(var o=arguments.length,a=new Array(o),i=0;i1?n-1:0),o=1;o=37&&n<=40&&0!==t.indexOf("Arrow")?"Arrow"+t:t}function kc(e,t,n,r,o){if(void 0===o&&(o=!0),0===n)return-1;var a=n-1;("number"!=typeof t||t<0||t>=n)&&(t=e>0?-1:a+1);var i=t+e;i<0?i=o?a:0:i>a&&(i=o?0:a);var c=_c(e,i,n,r,o);return-1===c?t>=n?-1:t:c}function _c(e,t,n,r,o){var a=r(t);if(!a||!a.hasAttribute("disabled"))return t;if(e>0){for(var i=t+1;i=0;c--)if(!r(c).hasAttribute("disabled"))return c;return o?e>0?_c(1,0,n,r,!1):_c(-1,n-1,n,r,!1):-1}function Sc(e,t,n,r){return void 0===r&&(r=!0),t.some((function(t){return t&&(bc(t,e)||r&&bc(t,n.activeElement))}))}var Ec=hc((function(){Cc().textContent=""}),500);function xc(e,t){var n=Cc(t);e&&(n.textContent=e,Ec())}function Cc(e){void 0===e&&(e=document);var t=e.getElementById("a11y-status-message");return t||((t=e.createElement("div")).setAttribute("id","a11y-status-message"),t.setAttribute("role","status"),t.setAttribute("aria-live","polite"),t.setAttribute("aria-relevant","additions text"),Object.assign(t.style,{border:"0",clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:"0",position:"absolute",width:"1px"}),e.body.appendChild(t),t)}var Pc={highlightedIndex:-1,isOpen:!1,selectedItem:null,inputValue:""};function Dc(e,t,n){var r=e.props,a=e.type,i={};Object.keys(t).forEach((function(e){!function(e,t,n,r){var o="on"+Nc(e)+"Change";t[o]&&void 0!==r[e]&&r[e]!==n[e]&&t[o](r)}(e,r,t,n),n[e]!==t[e]&&(i[e]=n[e])})),r.onStateChange&&Object.keys(i).length&&r.onStateChange(Object(o.a)({type:a},i))}var Mc=hc((function(e,t){xc(e(),t)}),200);function Tc(e){var t=e.id,n=e.labelId,r=e.menuId,o=e.getItemId,a=e.toggleButtonId,i=void 0===t?"downshift-"+yc():t;return{labelId:n||i+"-label",menuId:r||i+"-menu",getItemId:o||function(e){return i+"-item-"+e},toggleButtonId:a||i+"-toggle-button"}}function Ic(e,t,n){return void 0!==e?e:0===n.length?-1:n.indexOf(t)}function Rc(e){return/^\S{1}$/.test(e)}function Nc(e){return""+e.slice(0,1).toUpperCase()+e.slice(1)}function Ac(e){var t=Object(v.useRef)(e);return t.current=e,t}function Fc(e,t,n){var r=Object(v.useRef)(),a=Object(v.useRef)(),i=Object(v.useCallback)((function(t,n){a.current=n,t=Oc(t,n.props);var r=e(t,n);return n.props.stateReducer(t,Object(o.a)({},n,{changes:r}))}),[e]),c=Object(v.useReducer)(i,t),s=c[0],u=c[1],l=Ac(n),d=Object(v.useCallback)((function(e){return u(Object(o.a)({props:l.current},e))}),[l]),f=a.current;return Object(v.useEffect)((function(){f&&r.current&&r.current!==s&&Dc(f,Oc(r.current,f.props),s),r.current=s}),[s,n,f]),[s,d]}function Lc(e,t,n){var r=Fc(e,t,n),o=r[0],a=r[1];return[Oc(o,n),a]}var zc={itemToString:function(e){return e?String(e):""},stateReducer:function(e,t){return t.changes},getA11ySelectionMessage:function(e){var t=e.selectedItem,n=e.itemToString;return t?n(t)+" has been selected.":""},scrollIntoView:pc,circularNavigation:!1,environment:"undefined"==typeof window?{}:window};function Bc(e,t,n){void 0===n&&(n=Pc);var r="default"+Nc(t);return r in e?e[r]:n[t]}function Hc(e,t,n){if(void 0===n&&(n=Pc),t in e)return e[t];var r="initial"+Nc(t);return r in e?e[r]:Bc(e,t,n)}function Vc(e){var t=Hc(e,"selectedItem"),n=Hc(e,"isOpen"),r=Hc(e,"highlightedIndex"),o=Hc(e,"inputValue");return{highlightedIndex:r<0&&t&&n?e.items.indexOf(t):r,isOpen:n,selectedItem:t,inputValue:o}}function Wc(e,t,n,r){var o=e.items,a=e.initialHighlightedIndex,i=e.defaultHighlightedIndex,c=t.selectedItem,s=t.highlightedIndex;return 0===o.length?-1:void 0!==a&&s===a?a:void 0!==i?i:c?0===n?o.indexOf(c):kc(n,o.indexOf(c),o.length,r,!1):0===n?-1:n<0?o.length-1:0}function Kc(e,t,n,r){var o=Object(v.useRef)({isMouseDown:!1,isTouchMove:!1});return Object(v.useEffect)((function(){var a=function(){o.current.isMouseDown=!0},i=function(a){o.current.isMouseDown=!1,e&&!Sc(a.target,t.map((function(e){return e.current})),n.document)&&r()},c=function(){o.current.isTouchMove=!1},s=function(){o.current.isTouchMove=!0},u=function(a){!e||o.current.isTouchMove||Sc(a.target,t.map((function(e){return e.current})),n.document,!1)||r()};return n.addEventListener("mousedown",a),n.addEventListener("mouseup",i),n.addEventListener("touchstart",c),n.addEventListener("touchmove",s),n.addEventListener("touchend",u),function(){n.removeEventListener("mousedown",a),n.removeEventListener("mouseup",i),n.removeEventListener("touchstart",c),n.removeEventListener("touchmove",s),n.removeEventListener("touchend",u)}}),[e,n]),o}function Uc(){for(var e=!1,t=Object(v.useRef)(!0),n=arguments.length,r=new Array(n),o=0;o=0&&{selectedItem:a.items[u]});break;case 13:n={highlightedIndex:Wc(a,e,1,t.getItemNodeFromIndex),isOpen:!0};break;case 14:n={highlightedIndex:Wc(a,e,-1,t.getItemNodeFromIndex),isOpen:!0};break;case 5:case 6:n=Object(o.a)({isOpen:Bc(a,"isOpen"),highlightedIndex:Bc(a,"highlightedIndex")},e.highlightedIndex>=0&&{selectedItem:a.items[e.highlightedIndex]});break;case 3:n={highlightedIndex:_c(1,0,a.items.length,t.getItemNodeFromIndex,!1)};break;case 4:n={highlightedIndex:_c(-1,a.items.length-1,a.items.length,t.getItemNodeFromIndex,!1)};break;case 2:case 8:n={isOpen:!1,highlightedIndex:-1};break;case 7:var l=t.key,d=""+e.inputValue+l,f=Gc(d,e.highlightedIndex,a.items,a.itemToString,t.getItemNodeFromIndex);n=Object(o.a)({inputValue:d},f>=0&&{highlightedIndex:f});break;case 0:n={highlightedIndex:kc(i?5:1,e.highlightedIndex,a.items.length,t.getItemNodeFromIndex,a.circularNavigation)};break;case 1:n={highlightedIndex:kc(i?-5:-1,e.highlightedIndex,a.items.length,t.getItemNodeFromIndex,a.circularNavigation)};break;case 9:n={highlightedIndex:-1};break;case 12:case 16:n={isOpen:!e.isOpen,highlightedIndex:e.isOpen?-1:Wc(a,e,0)};break;case 17:n={isOpen:!0,highlightedIndex:Wc(a,e,0)};break;case 18:n={isOpen:!1};break;case 19:n={highlightedIndex:t.highlightedIndex};break;case 20:n={selectedItem:t.selectedItem};break;case 21:n={inputValue:t.inputValue};break;case 22:n={highlightedIndex:Bc(a,"highlightedIndex"),isOpen:Bc(a,"isOpen"),selectedItem:Bc(a,"selectedItem"),inputValue:Bc(a,"inputValue")};break;default:throw new Error("Reducer called without proper action type.")}return Object(o.a)({},e,n)}function Zc(e){void 0===e&&(e={});var t=Object(o.a)({},$c,e),n=t.items,r=t.scrollIntoView,a=t.environment,i=t.initialIsOpen,c=t.defaultIsOpen,s=t.itemToString,u=t.getA11ySelectionMessage,l=t.getA11yStatusMessage,d=Lc(Yc,Vc(t),t),f=d[0],p=d[1],b=f.isOpen,h=f.highlightedIndex,m=f.selectedItem,y=f.inputValue,g=Object(v.useRef)(null),O=Object(v.useRef)(null),j=Object(v.useRef)();j.current={};var w=Object(v.useRef)(!0),k=Object(v.useRef)(!0),_=Object(v.useRef)(null),S=Object(v.useRef)(Tc(t)),E=Object(v.useRef)(),x=Object(v.useRef)(!0),C=Object(v.useRef)(t),P=Ac({state:f,props:t}),D=function(e){return j.current[S.current.getItemId(e)]};Object(v.useEffect)((function(){if(!x.current){var e=E.current;Mc((function(){return l({isOpen:b,highlightedIndex:h,selectedItem:m,inputValue:y,highlightedItem:n[h],resultCount:n.length,itemToString:s,previousResultCount:e})}),a.document)}}),[b,h,y,n]),Object(v.useEffect)((function(){if(!x.current){var e=E.current;Mc((function(){return u({isOpen:b,highlightedIndex:h,selectedItem:m,inputValue:y,highlightedItem:n[h],resultCount:n.length,itemToString:s,previousResultCount:e})}),a.document)}}),[m]),Object(v.useEffect)((function(){x.current&&(_.current=hc((function(e){e({type:21,inputValue:""})}),500)),y&&_.current(p)}),[y]),Object(v.useEffect)((function(){x.current?(i||c||b)&&O.current&&O.current.focus():b?O.current&&O.current.focus():a.document.activeElement===O.current&&g.current&&(k.current=!1,g.current.focus())}),[b]),Object(v.useEffect)((function(){h<0||!b||!Object.keys(j.current).length||(!1===w.current?w.current=!0:r(D(h),O.current))}),[h]),Object(v.useEffect)((function(){x.current||(E.current=n.length)})),Object(v.useEffect)((function(){x.current||(C.current,C.current=t)}),[f,t]);var M=Kc(b,[O,g],a,(function(){p({type:8})})),T=Uc("getMenuProps","getToggleButtonProps");Object(v.useEffect)((function(){x.current=!1}),[]);var I=Object(v.useMemo)((function(){return{ArrowDown:function(e){e.preventDefault(),p({type:13,getItemNodeFromIndex:D,shiftKey:e.shiftKey})},ArrowUp:function(e){e.preventDefault(),p({type:14,getItemNodeFromIndex:D,shiftKey:e.shiftKey})}}}),[p]),R=Object(v.useMemo)((function(){return{ArrowDown:function(e){e.preventDefault(),p({type:0,getItemNodeFromIndex:D,shiftKey:e.shiftKey})},ArrowUp:function(e){e.preventDefault(),p({type:1,getItemNodeFromIndex:D,shiftKey:e.shiftKey})},Home:function(e){e.preventDefault(),p({type:3,getItemNodeFromIndex:D})},End:function(e){e.preventDefault(),p({type:4,getItemNodeFromIndex:D})},Escape:function(){p({type:2})},Enter:function(e){e.preventDefault(),p({type:5})}," ":function(e){e.preventDefault(),p({type:6})}}}),[p]),N=Object(v.useCallback)((function(){p({type:16})}),[p]),A=Object(v.useCallback)((function(){p({type:18})}),[p]),F=Object(v.useCallback)((function(){p({type:17})}),[p]),L=Object(v.useCallback)((function(e){p({type:19,highlightedIndex:e})}),[p]),z=Object(v.useCallback)((function(e){p({type:20,selectedItem:e})}),[p]),B=Object(v.useCallback)((function(){p({type:22})}),[p]),H=Object(v.useCallback)((function(e){p({type:21,inputValue:e})}),[p]),V=Object(v.useCallback)((function(e){return Object(o.a)({id:S.current.labelId,htmlFor:S.current.toggleButtonId},e)}),[]),W=Object(v.useCallback)((function(e,t){var n,r=void 0===e?{}:e,a=r.onMouseLeave,i=r.refKey,c=void 0===i?"ref":i,s=r.onKeyDown,u=r.onBlur,l=r.ref,d=Object(ac.a)(r,["onMouseLeave","refKey","onKeyDown","onBlur","ref"]),f=(void 0===t?{}:t).suppressRefError,b=void 0!==f&&f,h=P.current.state;return T("getMenuProps",b,c,O),Object(o.a)(((n={})[c]=mc(l,(function(e){O.current=e})),n.id=S.current.menuId,n.role="listbox",n["aria-labelledby"]=S.current.labelId,n.tabIndex=-1,n),h.isOpen&&h.highlightedIndex>-1&&{"aria-activedescendant":S.current.getItemId(h.highlightedIndex)},{onMouseLeave:vc(a,(function(){p({type:9})})),onKeyDown:vc(s,(function(e){var t=wc(e);t&&R[t]?R[t](e):Rc(t)&&p({type:7,key:t,getItemNodeFromIndex:D})})),onBlur:vc(u,(function(){!1!==k.current?!M.current.isMouseDown&&p({type:8}):k.current=!0}))},d)}),[p,P,R,M,T]);return{getToggleButtonProps:Object(v.useCallback)((function(e,t){var n,r=void 0===e?{}:e,a=r.onClick,i=r.onKeyDown,c=r.refKey,s=void 0===c?"ref":c,u=r.ref,l=Object(ac.a)(r,["onClick","onKeyDown","refKey","ref"]),d=(void 0===t?{}:t).suppressRefError,f=void 0!==d&&d,b=Object(o.a)(((n={})[s]=mc(u,(function(e){g.current=e})),n.id=S.current.toggleButtonId,n["aria-haspopup"]="listbox",n["aria-expanded"]=P.current.state.isOpen,n["aria-labelledby"]=S.current.labelId+" "+S.current.toggleButtonId,n),l);return l.disabled||(b.onClick=vc(a,(function(){p({type:12})})),b.onKeyDown=vc(i,(function(e){var t=wc(e);t&&I[t]?I[t](e):Rc(t)&&p({type:15,key:t,getItemNodeFromIndex:D})}))),T("getToggleButtonProps",f,s,g),b}),[p,P,I,T]),getLabelProps:V,getMenuProps:W,getItemProps:Object(v.useCallback)((function(e){var t,n=void 0===e?{}:e,r=n.item,a=n.index,i=n.onMouseMove,c=n.onClick,s=n.refKey,u=void 0===s?"ref":s,l=n.ref,d=Object(ac.a)(n,["item","index","onMouseMove","onClick","refKey","ref"]),f=P.current,b=f.state,h=f.props,v=Ic(a,r,h.items);if(v<0)throw new Error("Pass either item or item index in getItemProps!");var m=Object(o.a)(((t={role:"option","aria-selected":""+(v===b.highlightedIndex),id:S.current.getItemId(v)})[u]=mc(l,(function(e){e&&(j.current[S.current.getItemId(v)]=e)})),t),d);return d.disabled||(m.onMouseMove=vc(i,(function(){a!==b.highlightedIndex&&(w.current=!1,p({type:10,index:a}))})),m.onClick=vc(c,(function(){p({type:11,index:a})}))),m}),[p,P]),toggleMenu:N,openMenu:F,closeMenu:A,setHighlightedIndex:L,selectItem:z,reset:B,setInputValue:H,highlightedIndex:h,isOpen:b,selectedItem:m,inputValue:y}}Zc.stateChangeTypes=qc;cc.a.array.isRequired,cc.a.func,cc.a.func,cc.a.func,cc.a.bool,cc.a.number,cc.a.number,cc.a.number,cc.a.bool,cc.a.bool,cc.a.bool,cc.a.any,cc.a.any,cc.a.any,cc.a.string,cc.a.string,cc.a.string,cc.a.string,cc.a.string,cc.a.string,cc.a.func,cc.a.string,cc.a.string,cc.a.func,cc.a.func,cc.a.func,cc.a.func,cc.a.func,cc.a.func,cc.a.shape({addEventListener:cc.a.func,removeEventListener:cc.a.func,document:cc.a.shape({getElementById:cc.a.func,activeElement:cc.a.any,body:cc.a.any})});Object(o.a)({},zc,{getA11yStatusMessage:gc,circularNavigation:!0});cc.a.array,cc.a.array,cc.a.array,cc.a.func,cc.a.func,cc.a.func,cc.a.number,cc.a.number,cc.a.number,cc.a.func,cc.a.func,cc.a.string,cc.a.string,cc.a.shape({addEventListener:cc.a.func,removeEventListener:cc.a.func,document:cc.a.shape({getElementById:cc.a.func,activeElement:cc.a.any,body:cc.a.any})});var Xc=function(e){return e&&e.name},Jc=function(e,t){var n=e.selectedItem,r=t.type,o=t.changes,a=t.props.items;switch(r){case Zc.stateChangeTypes.ToggleButtonKeyDownArrowDown:return{selectedItem:a[n?Math.min(a.indexOf(n)+1,a.length-1):0]};case Zc.stateChangeTypes.ToggleButtonKeyDownArrowUp:return{selectedItem:a[n?Math.max(a.indexOf(n)-1,0):a.length-1]};default:return o}};function Qc(e){var t=e.className,n=e.hideLabelFromVision,r=e.label,a=e.options,i=e.onChange,s=e.value,u=Zc({initialSelectedItem:a[0],items:a,itemToString:Xc,onSelectedItemChange:i,selectedItem:s,stateReducer:Jc}),d=u.getLabelProps,f=u.getToggleButtonProps,p=u.getMenuProps,b=u.getItemProps,h=u.isOpen,v=u.highlightedIndex,m=u.selectedItem,y=p({className:"components-custom-select-control__menu","aria-hidden":!h});return y["aria-activedescendant"]&&"downshift-null"===y["aria-activedescendant"].slice(0,"downshift-null".length)&&delete y["aria-activedescendant"],Object(c.createElement)("div",{className:l()("components-custom-select-control",t)},n?Object(c.createElement)(M,Object(o.a)({as:"label"},d()),r):Object(c.createElement)("label",d({className:"components-custom-select-control__label"}),r),Object(c.createElement)($r.a,f({"aria-label":r,"aria-labelledby":void 0,className:"components-custom-select-control__button",isSmall:!0}),Xc(m),Object(c.createElement)(Ja.a,{icon:ai.a,className:"components-custom-select-control__button-icon"})),Object(c.createElement)("ul",y,h&&a.map((function(e,t){return Object(c.createElement)("li",b({item:e,index:t,key:e.key,className:l()(e.className,"components-custom-select-control__item",{"is-highlighted":t===v}),style:e.style}),e===m&&Object(c.createElement)(Ja.a,{icon:Qa.a,className:"components-custom-select-control__item-icon"}),e.name)}))))}var es=n(150),ts=(n(328),n(44)),ns=n.n(ts),rs=n(287),os=n.n(rs);function as(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(bi.a)(e);if(t){var o=Object(bi.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(pi.a)(this,n)}}var is=function(e){Object(fi.a)(n,e);var t=as(n);function n(){var e;return Object(ui.a)(this,n),(e=t.apply(this,arguments)).onChangeMoment=e.onChangeMoment.bind(Object(di.a)(e)),e.nodeRef=Object(c.createRef)(),e.keepFocusInside=e.keepFocusInside.bind(Object(di.a)(e)),e.isDayHighlighted=e.isDayHighlighted.bind(Object(di.a)(e)),e}return Object(li.a)(n,[{key:"keepFocusInside",value:function(){if(this.nodeRef.current&&(!document.activeElement||!this.nodeRef.current.contains(document.activeElement))){var e=this.nodeRef.current.querySelector(".DayPicker_focusRegion");if(!e)return;e.focus()}}},{key:"onChangeMoment",value:function(e){var t=this.props,n=t.currentDate,r=t.onChange,o=n?ns()(n):ns()(),a={hours:o.hours(),minutes:o.minutes(),seconds:0};r(e.set(a).format("YYYY-MM-DDTHH:mm:ss"))}},{key:"getMomentDate",value:function(e){return null===e?null:e?ns()(e):ns()()}},{key:"isDayHighlighted",value:function(e){var t;return!!(null===(t=this.props.events)||void 0===t?void 0:t.length)&&(this.props.onMonthPreviewed&&this.props.onMonthPreviewed(e.toDate()),this.props.events.some((function(t){return e.isSame(t.date,"day")})))}},{key:"render",value:function(){var e=this.props,t=e.currentDate,n=e.isInvalidDate,r=this.getMomentDate(t);return Object(c.createElement)("div",{className:"components-datetime__date",ref:this.nodeRef},Object(c.createElement)(os.a,{date:r,daySize:30,focused:!0,hideKeyboardShortcutsPanel:!0,key:"datepicker-controller-".concat(r?r.format("MM-YYYY"):"null"),noBorder:!0,numberOfMonths:1,onDateChange:this.onChangeMoment,transitionDuration:0,weekDayFormat:"ddd",isRTL:"rtl"===document.documentElement.dir,isOutsideRange:function(e){return n&&n(e.toDate())},isDayHighlighted:this.isDayHighlighted,onPrevMonthClick:this.keepFocusInside,onNextMonthClick:this.keepFocusInside}))}}]),n}(c.Component),cs=n(75),ss=function(){var e=Object(cs.__experimentalGetSettings)().timezone,t=(new Date).getTimezoneOffset()/60*-1;if(Number(e.offset)===t)return null;var n=e.offset>=0?"+":"",r=""!==e.abbr&&isNaN(e.abbr)?e.abbr:"UTC".concat(n).concat(e.offset),o="UTC"===e.string?Object(S.__)("Coordinated Universal Time"):"(".concat(r,") ").concat(e.string.replace("_"," "));return Object(c.createElement)(C.a,{position:"top center",text:o},Object(c.createElement)("div",{className:"components-datetime__timezone"},r))};function us(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ls(e){var t=e.as,n=e.value,r=e.onUpdate,o=Object(i.a)(e,["as","value","onUpdate"]);return Object(c.createElement)(t||"input",function(e){for(var t=1;to.max||void 0!==o.min&&a700?(this.cloneWrapper.style.transform="scale(0.5)",this.cloneWrapper.style.transformOrigin="top left",this.cloneWrapper.style.top="".concat(e.clientY-100,"px"),this.cloneWrapper.style.left="".concat(e.clientX,"px")):(this.cloneWrapper.style.top="".concat(f-0,"px"),this.cloneWrapper.style.left="".concat(p-0,"px")),Array.from(h.querySelectorAll("iframe")).forEach((function(e){return e.parentNode.removeChild(e)})),this.cloneWrapper.appendChild(h)}d.appendChild(this.cloneWrapper),this.cursorLeft=e.clientX,this.cursorTop=e.clientY,document.body.classList.add("is-dragging-components-draggable"),document.addEventListener("dragover",this.onDragOver),e.persist(),this.props.setTimeout(i.bind(this,e))}else e.preventDefault()}},{key:"resetDragState",value:function(){document.removeEventListener("dragover",this.onDragOver),this.cloneWrapper&&this.cloneWrapper.parentNode&&(this.cloneWrapper.parentNode.removeChild(this.cloneWrapper),this.cloneWrapper=null),this.cursorLeft=null,this.cursorTop=null,document.body.classList.remove("is-dragging-components-draggable")}},{key:"render",value:function(){var e=this.props,t=e.children,n=e.__experimentalDragComponent;return Object(c.createElement)(c.Fragment,null,t({onDraggableStart:this.onDragStart,onDraggableEnd:this.onDragEnd}),n&&Object(c.createElement)("div",{className:"components-draggable-drag-component-root",style:{display:"none"},ref:this.dragComponentRef},n))}}]),n}(c.Component),Ds=Object(E.withSafeTimeout)(Ps),Ms=n(216),Ts=n(64),Is=n.n(Ts);function Rs(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(bi.a)(e);if(t){var o=Object(bi.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(pi.a)(this,n)}}var Ns=Object(c.createContext)({addDropZone:function(){},removeDropZone:function(){}}),As=Ns.Provider,Fs=Ns.Consumer,Ls=function(e){var t=e.dataTransfer;if(t){if(Object(s.includes)(t.types,"Files"))return"file";if(Object(s.includes)(t.types,"text/html"))return"html"}return"default"},zs=function(e,t){return"file"===e&&t.onFilesDrop||"html"===e&&t.onHTMLDrop||"default"===e&&t.onDrop},Bs=function(e){Object(fi.a)(n,e);var t=Rs(n);function n(){var e;return Object(ui.a)(this,n),(e=t.apply(this,arguments)).onDragOver=e.onDragOver.bind(Object(di.a)(e)),e.onDrop=e.onDrop.bind(Object(di.a)(e)),e.addDropZone=e.addDropZone.bind(Object(di.a)(e)),e.removeDropZone=e.removeDropZone.bind(Object(di.a)(e)),e.resetDragState=e.resetDragState.bind(Object(di.a)(e)),e.toggleDraggingOverDocument=Object(s.throttle)(e.toggleDraggingOverDocument.bind(Object(di.a)(e)),200),e.dropZones=[],e.dropZoneCallbacks={addDropZone:e.addDropZone,removeDropZone:e.removeDropZone},e.state={hoveredDropZone:-1,isDraggingOverDocument:!1,position:null},e.ref=Object(c.createRef)(),e}return Object(li.a)(n,[{key:"componentDidMount",value:function(){var e=this.ref.current.ownerDocument.defaultView;e.addEventListener("dragover",this.onDragOver),e.addEventListener("mouseup",this.resetDragState),e.addEventListener("dragend",this.resetDragState)}},{key:"componentWillUnmount",value:function(){var e=this.ref.current.ownerDocument.defaultView;e.removeEventListener("dragover",this.onDragOver),e.removeEventListener("mouseup",this.resetDragState),e.removeEventListener("dragend",this.resetDragState)}},{key:"addDropZone",value:function(e){this.dropZones.push(e)}},{key:"removeDropZone",value:function(e){this.dropZones=Object(s.filter)(this.dropZones,(function(t){return t!==e}))}},{key:"resetDragState",value:function(){this.toggleDraggingOverDocument.cancel();var e=this.state,t=e.isDraggingOverDocument,n=e.hoveredDropZone;(t||-1!==n)&&(this.setState({hoveredDropZone:-1,isDraggingOverDocument:!1,position:null}),this.dropZones.forEach((function(e){return e.setState({isDraggingOverDocument:!1,isDraggingOverElement:!1,position:null,type:null})})))}},{key:"toggleDraggingOverDocument",value:function(e,t){var n=this,r=window.CustomEvent&&e instanceof window.CustomEvent?e.detail:e,o=Object(s.filter)(this.dropZones,(function(e){return zs(t,e)&&(n=e.element.current,o=r.clientX,a=r.clientY,(i=n.getBoundingClientRect()).bottom!==i.top&&i.left!==i.right&&o>=i.left&&o<=i.right&&a>=i.top&&a<=i.bottom);var n,o,a,i})),a=Object(s.find)(o,(function(e){var t=e.isRelative?e.element.current.parentElement:e.element.current;return!Object(s.some)(o,(function(n){return n!==e&&t.contains(n.element.current)}))})),i=this.dropZones.indexOf(a),c=null;a&&a.withPosition&&(c={x:r.clientX,y:r.clientY});var u=[];this.state.isDraggingOverDocument?i!==this.state.hoveredDropZone?(-1!==this.state.hoveredDropZone&&u.push(this.dropZones[this.state.hoveredDropZone]),a&&u.push(a)):a&&i===this.state.hoveredDropZone&&!Object(s.isEqual)(c,this.state.position)&&u.push(a):u=this.dropZones,u.forEach((function(e){var r=n.dropZones.indexOf(e)===i;e.setState({isDraggingOverDocument:zs(t,e),isDraggingOverElement:r,position:r?c:null,type:r?t:null})}));var l={isDraggingOverDocument:!0,hoveredDropZone:i,position:c};Is()(l,this.state)||this.setState(l)}},{key:"onDragOver",value:function(e){this.toggleDraggingOverDocument(e,Ls(e)),e.preventDefault()}},{key:"onDrop",value:function(e){e.dataTransfer&&e.dataTransfer.files.length;var t=this.state,n=t.position,r=t.hoveredDropZone,o=Ls(e),a=this.dropZones[r];if(this.resetDragState(),a)switch(o){case"file":a.onFilesDrop(Object(Ur.a)(e.dataTransfer.files),n);break;case"html":a.onHTMLDrop(e.dataTransfer.getData("text/html"),n);break;case"default":a.onDrop(e,n)}e.stopPropagation(),e.preventDefault()}},{key:"render",value:function(){return Object(c.createElement)("div",{ref:this.ref,onDrop:this.onDrop,className:"components-drop-zone__provider"},Object(c.createElement)(As,{value:this.dropZoneCallbacks},this.props.children))}}]),n}(c.Component);function Hs(e){var t=e.element,n=e.onFilesDrop,r=e.onHTMLDrop,o=e.onDrop,i=e.isDisabled,s=e.withPosition,u=e.__unstableIsRelative,l=void 0!==u&&u,d=Object(c.useContext)(Ns),f=d.addDropZone,p=d.removeDropZone,b=Object(c.useState)({isDraggingOverDocument:!1,isDraggingOverElement:!1,type:null}),h=Object(a.a)(b,2),v=h[0],m=h[1];return Object(c.useEffect)((function(){if(!i){var e={element:t,onDrop:o,onFilesDrop:n,onHTMLDrop:r,setState:m,withPosition:s,isRelative:l};return f(e),function(){p(e)}}}),[i,o,n,r,s]),v}function Vs(e){var t,n=e.className,r=e.label,o=e.onFilesDrop,a=e.onHTMLDrop,i=e.onDrop,s=Object(c.useRef)(),u=Hs({element:s,onFilesDrop:o,onHTMLDrop:a,onDrop:i,__unstableIsRelative:!0}),d=u.isDraggingOverDocument,f=u.isDraggingOverElement,p=u.type;f&&(t=Object(c.createElement)("div",{className:"components-drop-zone__content"},Object(c.createElement)(Ja.a,{icon:Ms.a,className:"components-drop-zone__content-icon"}),Object(c.createElement)("span",{className:"components-drop-zone__content-text"},r||Object(S.__)("Drop files to upload"))));var b=l()("components-drop-zone",n,Object(P.a)({"is-active":(d||f)&&("file"===p&&o||"html"===p&&a||"default"===p&&i),"is-dragging-over-document":d,"is-dragging-over-element":f},"is-dragging-".concat(p),!!p));return Object(c.createElement)("div",{ref:s,className:b},t)}var Ws=function(e){return Object(c.createElement)(Fs,null,(function(t){var n=t.addDropZone,r=t.removeDropZone;return Object(c.createElement)(Vs,Object(o.a)({addDropZone:n,removeDropZone:r},e))}))},Ks=n(36),Us=n.n(Ks);function Gs(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(bi.a)(e);if(t){var o=Object(bi.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(pi.a)(this,n)}}var $s=["menuitem","menuitemradio","menuitemcheckbox"];var qs=function(e){Object(fi.a)(n,e);var t=Gs(n);function n(){var e;return Object(ui.a)(this,n),(e=t.apply(this,arguments)).onKeyDown=e.onKeyDown.bind(Object(di.a)(e)),e.bindContainer=e.bindContainer.bind(Object(di.a)(e)),e.getFocusableContext=e.getFocusableContext.bind(Object(di.a)(e)),e.getFocusableIndex=e.getFocusableIndex.bind(Object(di.a)(e)),e}return Object(li.a)(n,[{key:"componentDidMount",value:function(){this.container.addEventListener("keydown",this.onKeyDown),this.container.addEventListener("focus",this.onFocus)}},{key:"componentWillUnmount",value:function(){this.container.removeEventListener("keydown",this.onKeyDown),this.container.removeEventListener("focus",this.onFocus)}},{key:"bindContainer",value:function(e){var t=this.props.forwardedRef;this.container=e,Object(s.isFunction)(t)?t(e):t&&"current"in t&&(t.current=e)}},{key:"getFocusableContext",value:function(e){var t=(this.props.onlyBrowserTabstops?js.focus.tabbable:js.focus.focusable).find(this.container),n=this.getFocusableIndex(t,e);return n>-1&&e?{index:n,target:e,focusables:t}:null}},{key:"getFocusableIndex",value:function(e,t){var n=e.indexOf(t);if(-1!==n)return n}},{key:"onKeyDown",value:function(e){this.props.onKeyDown&&this.props.onKeyDown(e);var t=this.getFocusableContext,n=this.props,r=n.cycle,o=void 0===r||r,a=n.eventToOffset,i=n.onNavigate,c=void 0===i?s.noop:i,u=n.stopNavigationEvents,l=a(e);if(void 0!==l&&u){e.stopImmediatePropagation();var d=e.target.getAttribute("role");$s.includes(d)&&e.preventDefault()}if(l){var f=t(e.target.ownerDocument.activeElement);if(f){var p=f.index,b=f.focusables,h=o?function(e,t,n){var r=e+n;return r<0?t+r:r>=t?r-t:r}(p,b.length,l):p+l;h>=0&&h0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Qs(Qs({},e),t);return t.className&&e.className&&(n.className=l()(t.className,e.className)),n}var tu=function(e){var t,n=e.children,r=e.className,a=e.controls,i=e.icon,u=void 0===i?"menu":i,d=e.label,f=e.popoverProps,p=e.toggleProps,b=e.menuProps,h=e.disableOpenOnArrowDown,v=void 0!==h&&h,m=e.menuLabel,y=e.position,g=e.noIcons;if(m&&Us()("`menuLabel` prop in `DropdownComponent`",{alternative:"`menuProps` object and its `aria-label` property",plugin:"Gutenberg"}),y&&Us()("`position` prop in `DropdownComponent`",{alternative:"`popoverProps` object and its `position` property",plugin:"Gutenberg"}),Object(s.isEmpty)(a)&&!Object(s.isFunction)(n))return null;Object(s.isEmpty)(a)||(t=a,Array.isArray(t[0])||(t=[t]));var O=eu({className:"components-dropdown-menu__popover",position:y},f);return Object(c.createElement)(ci,{className:l()("components-dropdown-menu",r),popoverProps:O,renderToggle:function(e){var t,n=e.isOpen,r=e.onToggle,a=eu({className:l()("components-dropdown-menu__toggle",{"is-opened":n})},p);return Object(c.createElement)($r.a,Object(o.a)({},a,{icon:u,onClick:function(e){r(e),a.onClick&&a.onClick(e)},onKeyDown:function(e){!function(e){v||n||e.keyCode!==fr.DOWN||(e.preventDefault(),e.stopPropagation(),r())}(e),a.onKeyDown&&a.onKeyDown(e)},"aria-haspopup":"true","aria-expanded":n,label:d,showTooltip:null===(t=null==p?void 0:p.showTooltip)||void 0===t||t}),a.children)},renderContent:function(e){var r=eu({"aria-label":m||d,className:l()("components-dropdown-menu__menu",{"no-icons":g})},b);return Object(c.createElement)(Xs,Object(o.a)({},r,{role:"menu"}),Object(s.isFunction)(n)?n(e):null,Object(s.flatMap)(t,(function(t,n){return t.map((function(t,r){return Object(c.createElement)($r.a,{key:[n,r].join(),onClick:function(n){n.stopPropagation(),e.onClose(),t.onClick&&t.onClick()},className:l()("components-dropdown-menu__menu-item",{"has-separator":n>0&&0===r,"is-active":t.isActive}),icon:t.icon,"aria-checked":"menuitemcheckbox"===t.role||"menuitemradio"===t.role?t.isActive:void 0,role:"menuitemcheckbox"===t.role||"menuitemradio"===t.role?t.role:"menuitem",disabled:t.isDisabled},t.title)}))})))}})},nu=n(441);var ru=Oe(Ja.a,{target:"etxm6pv0",label:"StyledIcon"})({name:"i8uvf3",styles:"width:1.4em;height:1.4em;margin:-0.2em 0.1em 0;vertical-align:middle;fill:currentColor;"});var ou=Object(c.forwardRef)((function(e,t){var n=e.href,r=e.children,a=e.className,u=e.rel,d=void 0===u?"":u,f=Object(i.a)(e,["href","children","className","rel"]);d=Object(s.uniq)(Object(s.compact)([].concat(Object(Ur.a)(d.split(" ")),["external","noreferrer","noopener"]))).join(" ");var p=l()("components-external-link",a);return Object(c.createElement)("a",Object(o.a)({},f,{className:p,href:n,target:"_blank",rel:d,ref:t}),r,Object(c.createElement)(M,{as:"span"},Object(S.__)("(opens in a new tab)")),Object(c.createElement)(ru,{icon:nu.a,className:"components-external-link__icon"}))}));var au=Oe("div",{target:"e11wezi70",label:"MediaWrapper"})({name:"4wwkjz",styles:"background-color:transparent;box-sizing:border-box;text-align:center;width:100%;"}),iu=Oe("div",{target:"e11wezi71",label:"MediaContainer"})({name:"1q0l1fq",styles:"align-items:center;box-sizing:border-box;box-shadow:0 0 0 1px rgba( 0,0,0,0.2 );cursor:pointer;display:inline-flex;justify-content:center;margin:auto;position:relative;height:100%;img,video{box-sizing:border-box;display:block;height:auto;margin:0;max-height:100%;max-width:100%;pointer-events:none;user-select:none;width:auto;}"}),cu=Oe("div",{target:"e11wezi72",label:"MediaPlaceholder"})("background:",Fe("lightGray.300"),";box-sizing:border-box;height:170px;max-width:280px;min-width:200px;width:100%;"),su=Oe(yo,{target:"e11wezi73",label:"UnitControl"})({name:"v7v99c",styles:"width:100px;"}),uu=Oe(_t,{target:"e11wezi74",label:"ControlWrapper"})({name:"lqoi1w",styles:"max-width:320px;padding:1em 0;"}),lu=Oe("div",{target:"e11wezi75",label:"GridView"})("box-sizing:border-box;left:50%;opacity:0;overflow:hidden;pointer-events:none;position:absolute;top:50%;transform:translate3d( -50%,-50%,0 );transition:opacity 120ms linear;z-index:1;",(function(e){return e.isActive&&"\n\t\topacity: 1;\n\t"}),""),du=Oe("div",{target:"e11wezi76",label:"GridLine"})({name:"18dz4sk",styles:"box-sizing:border-box;background:white;box-shadow:0 0 2px rgba( 0,0,0,0.6 );position:absolute;opacity:0.4;transform:translateZ( 0 );"}),fu=Oe(du,{target:"e11wezi77",label:"GridLineX"})({name:"1u4twh6",styles:"height:1px;left:0;right:0;"}),pu=Oe(du,{target:"e11wezi78",label:"GridLineY"})({name:"13gvipf",styles:"width:1px;top:0;bottom:0;"}),bu={top:0,left:0,bottom:0,right:0,width:0,height:0},hu=["avi","mpg","mpeg","mov","mp4","m4v","ogg","ogv","webm","wmv"];function vu(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=e.split(".");return t[t.length-1]}function mu(e){return Math.round(100*e)}function yu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function gu(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:"";return!!e&&hu.includes(vu(e))}(r)?Object(c.createElement)("video",Object(o.a)({},p,{autoPlay:n,className:"components-focal-point-picker__media components-focal-point-picker__media--video",loop:!0,muted:f,onLoadedData:u,ref:l,src:r})):Object(c.createElement)("img",Object(o.a)({},p,{alt:t,className:"components-focal-point-picker__media components-focal-point-picker__media--image",onLoad:u,ref:l,src:r})):Object(c.createElement)(Tu,{className:"components-focal-point-picker__media components-focal-point-picker__media--placeholder",onLoad:u,mediaRef:l})}function Tu(e){var t=e.mediaRef,n=e.onLoad,r=void 0===n?s.noop:n,a=Object(i.a)(e,["mediaRef","onLoad"]),u=Object(c.useRef)(r);return Object(c.useLayoutEffect)((function(){window.requestAnimationFrame((function(){u.current()}))}),[]),Object(c.createElement)(cu,Object(o.a)({ref:t},a))}function Iu(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(bi.a)(e);if(t){var o=Object(bi.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(pi.a)(this,n)}}var Ru=function(e){Object(fi.a)(n,e);var t=Iu(n);function n(e){var r;return Object(ui.a)(this,n),(r=t.apply(this,arguments)).state={isDragging:!1,bounds:bu,percentages:e.value},r.containerRef=Object(c.createRef)(),r.mediaRef=Object(c.createRef)(),r.handleOnClick=r.handleOnClick.bind(Object(di.a)(r)),r.handleOnMouseUp=r.handleOnMouseUp.bind(Object(di.a)(r)),r.handleOnKeyDown=r.handleOnKeyDown.bind(Object(di.a)(r)),r.onMouseMove=r.onMouseMove.bind(Object(di.a)(r)),r.updateBounds=r.updateBounds.bind(Object(di.a)(r)),r.updateValue=r.updateValue.bind(Object(di.a)(r)),r}return Object(li.a)(n,[{key:"componentDidMount",value:function(){document.addEventListener("mouseup",this.handleOnMouseUp),window.addEventListener("resize",this.updateBounds)}},{key:"componentDidUpdate",value:function(e){e.url!==this.props.url&&this.setState({isDragging:!1}),this.props.value.x===this.state.percentages.x&&this.props.value.y===this.state.percentages.y||this.setState({percentages:this.props.value})}},{key:"componentWillUnmount",value:function(){document.removeEventListener("mouseup",this.handleOnMouseUp),window.removeEventListener("resize",this.updateBounds)}},{key:"calculateBounds",value:function(){var e=bu;if(!this.mediaRef.current)return e;var t=this.mediaRef.current.clientWidth,n=this.mediaRef.current.clientHeight,r=this.pickerDimensions(),o=r.width/t,a=r.height/n;return a>=o?(e.width=e.right=r.width,e.height=n*o,e.top=(r.height-e.height)/2,e.bottom=e.top+e.height):(e.height=e.bottom=r.height,e.width=t*a,e.left=(r.width-e.width)/2,e.right=e.left+e.width),e}},{key:"updateValue",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this.props.onChange,n=e.x,r=e.y,o={x:parseFloat(n).toFixed(2),y:parseFloat(r).toFixed(2)};this.setState({percentages:o},(function(){t(o)}))}},{key:"updateBounds",value:function(){this.setState({bounds:this.calculateBounds()})}},{key:"handleOnClick",value:function(e){var t=this;e.persist(),this.setState({isDragging:!0},(function(){t.onMouseMove(e)}))}},{key:"handleOnMouseUp",value:function(){this.setState({isDragging:!1})}},{key:"handleOnKeyDown",value:function(e){var t=e.keyCode,n=e.shiftKey;if([fr.UP,fr.DOWN,fr.LEFT,fr.RIGHT].includes(t)){var r=this.state.percentages,o=r.x,a=r.y;e.preventDefault();var i=parseFloat(o),c=parseFloat(a),s=n?.1:.01;switch(e.keyCode){case fr.UP:c-=s;break;case fr.DOWN:c+=s;break;case fr.LEFT:i-=s;break;case fr.RIGHT:i+=s}var u={x:i=Nr(i,0,1,s),y:c=Nr(c,0,1,s)};this.updateValue(u)}}},{key:"onMouseMove",value:function(e){var t=this.state,n=t.isDragging,r=t.bounds;if(n){var o=e.shiftKey,a=this.pickerDimensions(),i={left:e.pageX-a.left,top:e.pageY-a.top},c=Math.max(r.left,Math.min(i.left,r.right)),s=Math.max(r.top,Math.min(i.top,r.bottom)),u=(c-r.left)/(a.width-2*r.left),l=(s-r.top)/(a.height-2*r.top),d=o?.1:.01,f={x:u=Nr(u,0,1,d),y:l=Nr(l,0,1,d)};this.updateValue(f)}}},{key:"pickerDimensions",value:function(){var e=this.containerRef.current;if(!e)return{width:0,height:0,left:0,top:0};var t=e.clientHeight,n=e.clientWidth,r=e.getBoundingClientRect(),o=r.top,a=r.left;return{width:n,height:t,top:o+document.body.scrollTop,left:a}}},{key:"iconCoordinates",value:function(){var e=this.props.value,t=this.state.bounds;if(void 0===t.left||void 0===t.top)return{left:"50%",top:"50%"};var n=this.pickerDimensions(),r={left:e.x*(n.width-2*t.left)+t.left,top:e.y*(n.height-2*t.top)+t.top};return r}},{key:"handleFocusOutside",value:function(){this.setState({isDragging:!1})}},{key:"render",value:function(){var e=this,t=this.props,n=t.autoPlay,r=t.className,o=t.help,a=t.instanceId,i=t.label,s=t.onDragStart,u=t.onDragEnd,d=t.url,f=this.state,p=f.bounds,b=f.isDragging,h=f.percentages,v=this.iconCoordinates(),m=l()("components-focal-point-picker-control",r),y="inspector-focal-point-picker-control-".concat(a);return Object(c.createElement)(mt,{label:i,id:y,help:o,className:m},Object(c.createElement)(au,{className:"components-focal-point-picker-wrapper"},Object(c.createElement)(iu,{className:"components-focal-point-picker",onDragStart:function(t){e.setState({isDragging:!0}),s(t)},onDrop:function(t){e.setState({isDragging:!1}),u(t)},onKeyDown:this.handleOnKeyDown,onMouseDown:this.handleOnClick,onMouseMove:this.onMouseMove,onMouseUp:this.handleOnMouseUp,ref:this.containerRef,role:"button",tabIndex:"-1"},Object(c.createElement)(Du,{bounds:p,value:h.x+h.y}),Object(c.createElement)(Mu,{alt:Object(S.__)("Media preview"),autoPlay:n,mediaRef:this.mediaRef,onLoad:this.updateBounds,src:d}),Object(c.createElement)(Eu,{coordinates:v,isDragging:b}))),Object(c.createElement)(Ou,{percentages:h,onChange:this.updateValue}))}}]),n}(c.Component);Ru.defaultProps={autoPlay:!0,onDragStart:s.noop,onDragEnd:s.noop,onChange:s.noop,value:{x:.5,y:.5},url:null};var Nu=Object(E.compose)([E.withInstanceId,tc.a])(Ru);function Au(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(bi.a)(e);if(t){var o=Object(bi.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(pi.a)(this,n)}}var Fu=window.FocusEvent,Lu=function(e){Object(fi.a)(n,e);var t=Au(n);function n(e){var r;return Object(ui.a)(this,n),(r=t.apply(this,arguments)).checkFocus=r.checkFocus.bind(Object(di.a)(r)),r.node=e.iframeRef||Object(c.createRef)(),r}return Object(li.a)(n,[{key:"checkFocus",value:function(){var e=this.node.current;if(e.ownerDocument.activeElement===e){var t=new Fu("focus",{bubbles:!0});e.dispatchEvent(t);var n=this.props.onFocus;n&&n(t)}}},{key:"render",value:function(){return Object(c.createElement)("iframe",Object(o.a)({ref:this.node},Object(s.omit)(this.props,["iframeRef","onFocus"])))}}]),n}(c.Component),zu=Object(E.withGlobalEvents)({blur:"checkFocus"})(Lu),Bu=n(442);function Hu(e,t,n){return"number"!=typeof e?null:parseFloat(Object(s.clamp)(e,t,n))}var Vu={name:"tdik1c",styles:"height:30px;min-height:30px;"},Wu=function(){return Vu},Ku=Oe("span",{target:"exqw8y20",label:"Root"})({name:"1916452",styles:"-webkit-tap-highlight-color:transparent;box-sizing:border-box;cursor:pointer;align-items:flex-start;display:inline-flex;justify-content:flex-start;padding:0;position:relative;touch-action:none;width:100%;"}),Uu=Oe("span",{target:"exqw8y21",label:"Wrapper"})("box-sizing:border-box;color:",Fe("blue.medium.focus"),";display:block;flex:1;padding-top:15px;position:relative;width:100%;",(function(e){var t=e.color,n=void 0===t?Fe("ui.borderFocus"):t;return fe({color:n},"")}),";",Wu,";",(function(e){var t=e.marks;return fe({marginBottom:t?16:null},"")}),";",tt({marginLeft:10}),""),Gu=Oe("span",{target:"exqw8y22",label:"BeforeIconWrapper"})("margin-top:3px;",tt({marginRight:6}),""),$u=Oe("span",{target:"exqw8y23",label:"AfterIconWrapper"})("margin-top:3px;",tt({marginLeft:16}),""),qu=Oe("span",{target:"exqw8y24",label:"Rail"})("background-color:",Fe("lightGray.600"),";box-sizing:border-box;left:0;pointer-events:none;right:0;display:block;height:3px;position:absolute;margin-top:14px;top:0;",(function(e){var t=e.disabled,n=e.railColor||null;return t&&(n=Fe("lightGray.400")),fe({background:n},"")}),";"),Yu=Oe("span",{target:"exqw8y25",label:"Track"})("background-color:currentColor;border-radius:1px;box-sizing:border-box;height:3px;pointer-events:none;display:block;position:absolute;margin-top:14px;top:0;",(function(e){var t=e.disabled,n=e.trackColor||"currentColor";return t&&(n=Fe("lightGray.800")),fe({background:n},"")}),";"),Zu=Oe("span",{target:"exqw8y26",label:"MarksWrapper"})({name:"sx8y8z",styles:"box-sizing:border-box;display:block;position:relative;width:100%;user-select:none;"}),Xu=Oe("span",{target:"exqw8y27",label:"Mark"})("box-sizing:border-box;height:9px;left:0;position:absolute;top:-4px;width:1px;",(function(e){var t=e.disabled,n=e.isFilled?"currentColor":Fe("lightGray.600");return t&&(n=Fe("lightGray.800")),fe({backgroundColor:n},"")}),";"),Ju=Oe("span",{target:"exqw8y28",label:"MarkLabel"})("box-sizing:border-box;color:",Fe("lightGray.600"),";left:0;font-size:11px;position:absolute;top:12px;transform:translateX( -50% );white-space:nowrap;",(function(e){var t=e.isFilled;return fe({color:Fe(t?"darkGray.300":"lightGray.600")},"")}),";"),Qu=Oe("span",{target:"exqw8y29",label:"ThumbWrapper"})("align-items:center;box-sizing:border-box;display:flex;height:20px;justify-content:center;margin-top:5px;outline:0;pointer-events:none;position:absolute;top:0;user-select:none;width:20px;",tt({marginLeft:-10}),""),el=Oe("span",{target:"exqw8y210",label:"Thumb"})("align-items:center;background-color:white;border-radius:50%;border:1px solid ",Fe("darkGray.200"),";box-sizing:border-box;height:100%;outline:0;pointer-events:none;position:absolute;user-select:none;width:100%;",(function(e){var t=e.isFocused;return fe({borderColor:Fe(t?"ui.borderFocus":"darkGray.200"),boxShadow:t?"\n\t\t\t\t0 0 0 1px ".concat(Fe("ui.borderFocus"),"\n\t\t\t"):"\n\t\t\t\t0 0 0 rgba(0, 0, 0, 0)\n\t\t\t"},"")}),";"),tl=Oe("input",{target:"exqw8y211",label:"InputRange"})({name:"cvc9dl",styles:"box-sizing:border-box;cursor:pointer;display:block;height:100%;left:0;margin:0;opacity:0;outline:none;position:absolute;right:0;top:0;width:100%;"}),nl={name:"5qqmyx",styles:"top:-80%;"},rl={name:"eda4eg",styles:"bottom:-80%;"},ol=Oe("span",{target:"exqw8y212",label:"Tooltip"})("background:",Fe("ui.border"),";border-radius:2px;box-sizing:border-box;color:white;display:inline-block;font-size:12px;min-width:32px;opacity:0;padding:4px 8px;pointer-events:none;position:absolute;text-align:center;transition:opacity 120ms ease;user-select:none;line-height:1.4;",(function(e){var t=e.show;return fe({opacity:t?1:0},"")}),";",(function(e){return"top"===e.position?nl:rl}),";",Le("transition"),";",tt({transform:"translateX(-50%)"},{transform:"translateX(50%)"}),""),al=Oe(Fr,{target:"exqw8y213",label:"InputNumber"})("box-sizing:border-box;display:inline-block;font-size:13px;margin-top:0;width:",dt(8),";input[type='number']&{",Wu,";}",tt({marginLeft:dt(2)}),""),il=Oe("span",{target:"exqw8y214",label:"ActionRightWrapper"})("box-sizing:border-box;display:block;margin-top:0;button,button.is-small{margin-left:0;",Wu,";}",tt({marginLeft:8}),"");var cl=Object(c.forwardRef)((function(e,t){var n=e.describedBy,r=e.isShiftStepEnabled,u=void 0===r||r,l=e.label,d=e.onHideTooltip,f=void 0===d?s.noop:d,p=e.onMouseLeave,b=void 0===p?s.noop:p,h=e.step,v=void 0===h?1:h,m=e.onBlur,y=void 0===m?s.noop:m,g=e.onChange,O=void 0===g?s.noop:g,j=e.onFocus,w=void 0===j?s.noop:j,k=e.onMouseMove,_=void 0===k?s.noop:k,S=e.onShowTooltip,E=void 0===S?s.noop:S,x=e.shiftStep,C=void 0===x?10:x,P=e.value,D=Object(i.a)(e,["describedBy","isShiftStepEnabled","label","onHideTooltip","onMouseLeave","step","onBlur","onChange","onFocus","onMouseMove","onShowTooltip","shiftStep","value"]),M=Ar({step:v,shiftStep:C,isShiftStepEnabled:u}),T=function(e){var t=e.onHide,n=void 0===t?s.noop:t,r=e.onMouseLeave,o=void 0===r?s.noop:r,i=e.onMouseMove,u=void 0===i?s.noop:i,l=e.onShow,d=void 0===l?s.noop:l,f=e.timeout,p=void 0===f?300:f,b=Object(c.useState)(!1),h=Object(a.a)(b,2),v=h[0],m=h[1],y=Object(c.useRef)(),g=Object(c.useCallback)((function(e){window.clearTimeout(y.current),y.current=setTimeout(e,p)}),[p]),O=Object(c.useCallback)((function(e){u(e),g((function(){v||(m(!0),d())}))}),[]),j=Object(c.useCallback)((function(e){o(e),g((function(){m(!1),n()}))}),[]);return Object(c.useEffect)((function(){return function(){window.clearTimeout(y.current)}})),{onMouseMove:O,onMouseLeave:j}}({onHide:f,onMouseLeave:b,onMouseMove:_,onShow:E});return Object(c.createElement)(tl,Object(o.a)({},D,T,{"aria-describedby":n,"aria-label":l,"aria-hidden":!1,onBlur:y,onChange:O,onFocus:w,ref:t,step:M,tabIndex:0,type:"range",value:P}))}));function sl(e){var t=e.className,n=e.isFilled,r=void 0!==n&&n,a=e.label,s=e.style,u=void 0===s?{}:s,d=Object(i.a)(e,["className","isFilled","label","style"]),f=l()("components-range-control__mark",r&&"is-filled",t),p=l()("components-range-control__mark-label",r&&"is-filled");return Object(c.createElement)(c.Fragment,null,Object(c.createElement)(Xu,Object(o.a)({},d,{"aria-hidden":"true",className:f,isFilled:r,style:u})),a&&Object(c.createElement)(Ju,{"aria-hidden":"true",className:p,isFilled:r,style:u},a))}function ul(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ll(e){for(var t=1;tM)&&(e=Hu(e,I,M)),F(e),ue.current=!1)},shiftStep:Z,step:J,value:we}),f&&Object(c.createElement)(il,null,Object(c.createElement)($r.a,{className:"components-range-control__reset",disabled:g||void 0===ce,isSecondary:!0,isSmall:!0,onClick:Me},Object(S.__)("Reset")))))})),ml="default";function yl(e){var t=e.fallbackFontSize,n=e.fontSizes,r=void 0===n?[]:n,o=e.disableCustomFontSizes,a=void 0!==o&&o,i=e.onChange,s=e.value,u=e.withSlider,l=void 0!==u&&u,d=Object(E.useInstanceId)(yl),f=Object(c.useMemo)((function(){return function(e,t){return t&&!e.length?null:(e=[{slug:ml,name:Object(S.__)("Default")}].concat(Object(Ur.a)(e),Object(Ur.a)(t?[]:[{slug:"custom",name:Object(S.__)("Custom")}]))).map((function(e){return{key:e.slug,name:e.name,style:{fontSize:e.size}}}))}(r,a)}),[r,a]);if(!f)return null;var p=function(e,t){if(t){var n=e.find((function(e){return e.size===Number(t)}));return n?n.slug:"custom"}return ml}(r,s),b="components-font-size-picker__number#".concat(d);return Object(c.createElement)("fieldset",{className:"components-font-size-picker"},Object(c.createElement)(M,{as:"legend"},Object(S.__)("Font size")),Object(c.createElement)("div",{className:"components-font-size-picker__controls"},r.length>0&&Object(c.createElement)(Qc,{className:"components-font-size-picker__select",label:Object(S.__)("Font size"),options:f,value:f.find((function(e){return e.key===p})),onChange:function(e){var t=e.selectedItem,n=t.style&&t.style.fontSize;i(Number(n))}}),!l&&!a&&Object(c.createElement)("div",{className:"components-font-size-picker__number-container"},Object(c.createElement)("label",{htmlFor:b},Object(S.__)("Custom")),Object(c.createElement)("input",{id:b,className:"components-font-size-picker__number",type:"number",min:1,onChange:function(e){i(Number(e.target.value))},"aria-label":Object(S.__)("Custom"),value:s||""})),Object(c.createElement)($r.a,{className:"components-color-palette__clear",disabled:void 0===s,onClick:function(){i(void 0)},isSmall:!0,isSecondary:!0},Object(S.__)("Reset"))),l&&Object(c.createElement)(vl,{className:"components-font-size-picker__custom-input",label:Object(S.__)("Custom Size"),value:s||"",initialPosition:t,onChange:function(e){i(e)},min:12,max:100,beforeIcon:Bu.a,afterIcon:Bu.a}))}var gl=function(e){var t=e.accept,n=e.children,r=e.multiple,a=void 0!==r&&r,s=e.onChange,u=e.render,l=Object(i.a)(e,["accept","children","multiple","onChange","render"]),d=Object(c.useRef)(),f=function(){d.current.click()},p=u?u({openFileDialog:f}):Object(c.createElement)($r.a,Object(o.a)({onClick:f},l),n);return Object(c.createElement)("div",{className:"components-form-file-upload"},p,Object(c.createElement)("input",{type:"file",ref:d,multiple:a,style:{display:"none"},accept:t,onChange:s}))};var Ol=function(e){var t=e.className,n=e.checked,r=e.id,a=e.onChange,u=void 0===a?s.noop:a,d=Object(i.a)(e,["className","checked","id","onChange"]),f=l()("components-form-toggle",t,{"is-checked":n});return Object(c.createElement)("span",{className:f},Object(c.createElement)("input",Object(o.a)({className:"components-form-toggle__input",id:r,type:"checkbox",checked:n,onChange:u},d)),Object(c.createElement)("span",{className:"components-form-toggle__track"}),Object(c.createElement)("span",{className:"components-form-toggle__thumb"}))},jl=n(40),wl=Object(c.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(c.createElement)(r.Path,{d:"M10 2c4.42 0 8 3.58 8 8s-3.58 8-8 8-8-3.58-8-8 3.58-8 8-8zm5 11l-3-3 3-3-2-2-3 3-3-3-2 2 3 3-3 3 2 2 3-3 3 3z"}));function kl(e){var t=e.value,n=e.status,r=e.title,o=e.displayTransform,a=e.isBorderless,i=void 0!==a&&a,u=e.disabled,d=void 0!==u&&u,f=e.onClickRemove,p=void 0===f?s.noop:f,b=e.onMouseEnter,h=e.onMouseLeave,v=e.messages,m=e.termPosition,y=e.termsCount,g=Object(E.useInstanceId)(kl),O=l()("components-form-token-field__token",{"is-error":"error"===n,"is-success":"success"===n,"is-validating":"validating"===n,"is-borderless":i,"is-disabled":d}),j=o(t),w=Object(S.sprintf)(Object(S.__)("%1$s (%2$s of %3$s)"),j,m,y);return Object(c.createElement)("span",{className:O,onMouseEnter:b,onMouseLeave:h,title:r},Object(c.createElement)("span",{className:"components-form-token-field__token-text",id:"components-form-token-field__token-text-".concat(g)},Object(c.createElement)(M,{as:"span"},w),Object(c.createElement)("span",{"aria-hidden":"true"},j)),Object(c.createElement)($r.a,{className:"components-form-token-field__remove-token",icon:wl,onClick:!d&&function(){return p({value:t})},label:v.remove,"aria-describedby":"components-form-token-field__token-text-".concat(g)}))}function _l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Sl(e){for(var t=1;t=0&&this.setState({selectedSuggestionIndex:t,selectedSuggestionScroll:!1})}},{key:"onSuggestionSelected",value:function(e){this.addNewToken(e)}},{key:"onInputChange",value:function(e){var t=e.value,n=this.props.tokenizeOnSpace?/[ ,\t]+/:/[,\t]+/,r=t.split(n),o=Object(s.last)(r)||"";r.length>1&&this.addNewTokens(r.slice(0,-1)),this.setState({incompleteTokenValue:o},this.updateSuggestions),this.props.onInputChange(o)}},{key:"handleDeleteKey",value:function(e){var t=!1;return this.input.hasFocus()&&this.isInputEmpty()&&(e(),t=!0),t}},{key:"handleLeftArrowKey",value:function(){var e=!1;return this.isInputEmpty()&&(this.moveInputBeforePreviousToken(),e=!0),e}},{key:"handleRightArrowKey",value:function(){var e=!1;return this.isInputEmpty()&&(this.moveInputAfterNextToken(),e=!0),e}},{key:"handleUpArrowKey",value:function(){var e=this;return this.setState((function(t,n){return{selectedSuggestionIndex:(0===t.selectedSuggestionIndex?e.getMatchingSuggestions(t.incompleteTokenValue,n.suggestions,n.value,n.maxSuggestions,n.saveTransform).length:t.selectedSuggestionIndex)-1,selectedSuggestionScroll:!0}})),!0}},{key:"handleDownArrowKey",value:function(){var e=this;return this.setState((function(t,n){return{selectedSuggestionIndex:(t.selectedSuggestionIndex+1)%e.getMatchingSuggestions(t.incompleteTokenValue,n.suggestions,n.value,n.maxSuggestions,n.saveTransform).length,selectedSuggestionScroll:!0}})),!0}},{key:"handleEscapeKey",value:function(e){return this.setState({incompleteTokenValue:e.target.value,isExpanded:!1,selectedSuggestionIndex:-1,selectedSuggestionScroll:!1}),!0}},{key:"handleCommaKey",value:function(){return this.inputHasValidValue()&&this.addNewToken(this.state.incompleteTokenValue),!0}},{key:"moveInputToIndex",value:function(e){this.setState((function(t,n){return{inputOffsetFromEnd:n.value.length-Math.max(e,-1)-1}}))}},{key:"moveInputBeforePreviousToken",value:function(){this.setState((function(e,t){return{inputOffsetFromEnd:Math.min(e.inputOffsetFromEnd+1,t.value.length)}}))}},{key:"moveInputAfterNextToken",value:function(){this.setState((function(e){return{inputOffsetFromEnd:Math.max(e.inputOffsetFromEnd-1,0)}}))}},{key:"deleteTokenBeforeInput",value:function(){var e=this.getIndexOfInput()-1;e>-1&&this.deleteToken(this.props.value[e])}},{key:"deleteTokenAfterInput",value:function(){var e=this.getIndexOfInput();e0){var r=Object(s.clone)(this.props.value);r.splice.apply(r,[this.getIndexOfInput(),0].concat(n)),this.props.onChange(r)}}},{key:"addNewToken",value:function(e){this.addNewTokens([e]),this.props.speak(this.props.messages.added,"assertive"),this.setState({incompleteTokenValue:"",selectedSuggestionIndex:-1,selectedSuggestionScroll:!1,isExpanded:!1}),this.state.isActive&&this.input.focus()}},{key:"deleteToken",value:function(e){var t=this,n=this.props.value.filter((function(n){return t.getTokenValue(n)!==t.getTokenValue(e)}));this.props.onChange(n),this.props.speak(this.props.messages.removed,"assertive")}},{key:"getTokenValue",value:function(e){return"object"===Object(jl.a)(e)?e.value:e}},{key:"getMatchingSuggestions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.state.incompleteTokenValue,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.props.suggestions,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.props.value,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:this.props.maxSuggestions,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.props.saveTransform,a=o(e),i=[],c=[];return 0===a.length?t=Object(s.difference)(t,n):(a=a.toLocaleLowerCase(),Object(s.each)(t,(function(e){var t=e.toLocaleLowerCase().indexOf(a);-1===n.indexOf(e)&&(0===t?i.push(e):t>0&&c.push(e))})),t=i.concat(c)),Object(s.take)(t,r)}},{key:"getSelectedSuggestion",value:function(){if(-1!==this.state.selectedSuggestionIndex)return this.getMatchingSuggestions()[this.state.selectedSuggestionIndex]}},{key:"valueContainsToken",value:function(e){var t=this;return Object(s.some)(this.props.value,(function(n){return t.getTokenValue(e)===t.getTokenValue(n)}))}},{key:"getIndexOfInput",value:function(){return this.props.value.length-this.state.inputOffsetFromEnd}},{key:"isInputEmpty",value:function(){return 0===this.state.incompleteTokenValue.length}},{key:"inputHasValidValue",value:function(){return this.props.saveTransform(this.state.incompleteTokenValue).length>0}},{key:"updateSuggestions",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=this.state.incompleteTokenValue,n=t.trim().length>1,r=this.getMatchingSuggestions(t),o=r.length>0,a={isExpanded:n&&o};if(e&&(a.selectedSuggestionIndex=-1,a.selectedSuggestionScroll=!1),this.setState(a),n){var i=this.props.debouncedSpeak,c=o?Object(S.sprintf)(Object(S._n)("%d result found, use up and down arrow keys to navigate.","%d results found, use up and down arrow keys to navigate.",r.length),r.length):Object(S.__)("No results.");i(c,"assertive")}}},{key:"renderTokensAndInput",value:function(){var e=Object(s.map)(this.props.value,this.renderToken);return e.splice(this.getIndexOfInput(),0,this.renderInput()),e}},{key:"renderToken",value:function(e,t,n){var r=this.getTokenValue(e),o=e.status?e.status:void 0,a=t+1,i=n.length;return Object(c.createElement)(kl,{key:"token-"+r,value:r,status:o,title:e.title,displayTransform:this.props.displayTransform,onClickRemove:this.onTokenClickRemove,isBorderless:e.isBorderless||this.props.isBorderless,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,disabled:"error"!==o&&this.props.disabled,messages:this.props.messages,termsCount:i,termPosition:a})}},{key:"renderInput",value:function(){var e=this.props,t=e.autoCapitalize,n=e.autoComplete,r=e.maxLength,o=e.value,a={instanceId:e.instanceId,autoCapitalize:t,autoComplete:n,ref:this.bindInput,key:"input",disabled:this.props.disabled,value:this.state.incompleteTokenValue,onBlur:this.onBlur,isExpanded:this.state.isExpanded,selectedSuggestionIndex:this.state.selectedSuggestionIndex};return r&&o.length>=r||(a=Sl(Sl({},a),{},{onChange:this.onInputChange})),Object(c.createElement)(Yi,a)}},{key:"render",value:function(){var e=this.props,t=e.disabled,n=e.label,r=void 0===n?Object(S.__)("Add item"):n,o=e.instanceId,a=e.className,i=this.state.isExpanded,s=l()(a,"components-form-token-field__input-container",{"is-active":this.state.isActive,"is-disabled":t}),u={className:"components-form-token-field",tabIndex:"-1"},d=this.getMatchingSuggestions();return t||(u=Object.assign({},u,{onKeyDown:this.onKeyDown,onKeyPress:this.onKeyPress,onFocus:this.onFocus})),Object(c.createElement)("div",u,Object(c.createElement)("label",{htmlFor:"components-form-token-input-".concat(o),className:"components-form-token-field__label"},r),Object(c.createElement)("div",{ref:this.bindTokensAndInput,className:s,tabIndex:"-1",onMouseDown:this.onContainerTouched,onTouchStart:this.onContainerTouched},this.renderTokensAndInput(),i&&Object(c.createElement)(ec,{instanceId:o,match:this.props.saveTransform(this.state.incompleteTokenValue),displayTransform:this.props.displayTransform,suggestions:d,selectedIndex:this.state.selectedSuggestionIndex,scrollIntoView:this.state.selectedSuggestionScroll,onHover:this.onSuggestionHovered,onSelect:this.onSuggestionSelected})),Object(c.createElement)("p",{id:"components-form-token-suggestions-howto-".concat(o),className:"components-form-token-field__help"},this.props.tokenizeOnSpace?Object(S.__)("Separate with commas, spaces, or the Enter key."):Object(S.__)("Separate with commas or the Enter key.")))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return e.disabled&&t.isActive?{isActive:!1,incompleteTokenValue:""}:null}}]),n}(c.Component);Cl.defaultProps={suggestions:Object.freeze([]),maxSuggestions:100,value:Object.freeze([]),displayTransform:s.identity,saveTransform:function(e){return e.trim()},onChange:function(){},onInputChange:function(){},isBorderless:!1,disabled:!1,tokenizeOnSpace:!1,messages:{added:Object(S.__)("Item added."),removed:Object(S.__)("Item removed."),remove:Object(S.__)("Remove item")}};var Pl=Zr(Object(E.withInstanceId)(Cl)),Dl=n(200),Ml=n.n(Dl),Tl="linear-gradient(135deg, rgba(6, 147, 227, 1) 0%, rgb(155, 81, 224) 100%)",Il={className:"components-custom-gradient-picker__color-picker-popover",position:"top"},Rl={type:"angular",value:90},Nl=[{value:"linear-gradient",label:Object(S.__)("Linear")},{value:"radial-gradient",label:Object(S.__)("Radial")}];function Al(e){var t=e.type,n=e.value;return"literal"===t?n:"hex"===t?"#".concat(n):"".concat(t,"(").concat(n.join(","),")")}function Fl(e){var t=e.type,n=e.value;return"".concat(n).concat(t)}function Ll(e){var t=e.type,n=e.value,r=e.length;return"".concat(Al({type:t,value:n})," ").concat(Fl(r))}function zl(e){var t=e.type,n=e.orientation,r=e.colorStops,o=function(e){if(e&&"angular"===e.type)return"".concat(e.value,"deg")}(n),a=r.sort((function(e,t){return Object(s.get)(e,["length","value"],0)-Object(s.get)(t,["length","value"],0)})).map(Ll);return"".concat(t,"(").concat(Object(s.compact)([o].concat(Object(Ur.a)(a))).join(","),")")}function Bl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Hl(e){for(var t=1;t=5&&(u.current.significantMoveHappened=!0)}Kl(a,n,i)||o(Wl(a,i,n))},d=function e(){window&&window.removeEventListener&&u.current&&u.current.listenersActivated&&(window.removeEventListener("mousemove",l),window.removeEventListener("mouseup",e),s(),u.current.listenersActivated=!1)};return Object(c.useEffect)((function(){return function(){d()}}),[]),r.map((function(e,t){return e&&n!==e.positionValue&&Object(c.createElement)(ci,{key:t,onClose:s,renderToggle:function(n){var r=n.isOpen,f=n.onToggle;return Object(c.createElement)(Ql,{key:t,onClick:function(){u.current&&u.current.significantMoveHappened||(r?s():i(),f())},onMouseDown:function(){window&&window.addEventListener&&(u.current={gradientAST:a,position:t,significantMoveHappened:!1,listenersActivated:!0},i(),window.addEventListener("mousemove",l),window.addEventListener("mouseup",d))},isOpen:r,position:e.position,color:e.color,onChange:o,gradientAST:a,gradientIndex:t})},renderContent:function(n){var r=n.onClose;return Object(c.createElement)(c.Fragment,null,Object(c.createElement)(Bi,{color:e.color,onChangeComplete:function(e){var n=e.rgb;o(Gl(a,t,n))}}),Object(c.createElement)($r.a,{className:"components-custom-gradient-picker__remove-control-point",onClick:function(){o(function(e,t){return Hl(Hl({},e),{},{colorStops:e.colorStops.filter((function(e,n){return n!==t}))})}(a,t)),r()},isLink:!0},Object(S.__)("Remove Control Point")))},popoverProps:Il})}))}function td(e){var t=e.onChange,n=e.gradientAST,r=e.onOpenInserter,o=e.onCloseInserter,i=e.insertPosition,u=Object(c.useState)(!1),l=Object(a.a)(u,2),d=l[0],f=l[1];return Object(c.createElement)(ci,{className:"components-custom-gradient-picker__inserter",onClose:function(){o()},renderToggle:function(e){var t=e.isOpen,n=e.onToggle;return Object(c.createElement)($r.a,{"aria-expanded":t,"aria-haspopup":"true",onClick:function(){t?o():(f(!1),r()),n()},className:"components-custom-gradient-picker__insert-point",icon:ii.a,style:{left:null!==i?"".concat(i,"%"):void 0}})},renderContent:function(){return Object(c.createElement)(Bi,{onChangeComplete:function(e){var r,o=e.rgb;d?r=function(e,t,n){return Gl(e,Object(s.findIndex)(e.colorStops,(function(e){return e&&e.length&&"%"===e.length.type&&e.length.value===t.toString()})),n)}(n,i,o):(r=function(e,t,n){var r=Vl(n);return r.length={type:"%",value:t},Hl(Hl({},e),{},{colorStops:[].concat(Object(Ur.a)(e.colorStops),[r])})}(n,i,o),f(!0)),t(r)}})},popoverProps:Il})}function nd(e,t){switch(t.type){case"MOVE_INSERTER":if("IDLE"===e.id||"MOVING_INSERTER"===e.id)return{id:"MOVING_INSERTER",insertPosition:t.insertPosition};break;case"STOP_INSERTER_MOVE":if("MOVING_INSERTER"===e.id)return{id:"IDLE"};break;case"OPEN_INSERTER":if("MOVING_INSERTER"===e.id)return{id:"INSERTING_CONTROL_POINT",insertPosition:e.insertPosition};break;case"CLOSE_INSERTER":if("INSERTING_CONTROL_POINT"===e.id)return{id:"IDLE"};break;case"START_CONTROL_CHANGE":if("IDLE"===e.id)return{id:"MOVING_CONTROL_POINT"};break;case"STOP_CONTROL_CHANGE":if("MOVING_CONTROL_POINT"===e.id)return{id:"IDLE"}}return e}var rd={id:"IDLE"};function od(e){var t=e.value,n=e.onChange,r=Zl(t),o=r.gradientAST,i=r.gradientValue,u=r.hasGradient,d=function(e){n(zl(e))},f=Object(c.useRef)(),p=function(e){return e?Object(s.map)(e.colorStops,(function(e){return e&&e.length&&"%"===e.length.type?{color:Al(e),position:Fl(e.length),positionValue:parseInt(e.length.value)}:null})):[]}(o),b=Object(c.useReducer)(nd,rd),h=Object(a.a)(b,2),v=h[0],m=h[1],y=function(e){var t=$l(e.clientX,f.current,23);Object(s.some)(p,(function(e){var n=e.positionValue;return Math.abs(t-n)<10}))?"MOVING_INSERTER"===v.id&&m({type:"STOP_INSERTER_MOVE"}):m({type:"MOVE_INSERTER",insertPosition:t})},g="MOVING_INSERTER"===v.id,O="INSERTING_CONTROL_POINT"===v.id;return Object(c.createElement)("div",{ref:f,className:l()("components-custom-gradient-picker__gradient-bar",{"has-gradient":u}),onMouseEnter:y,onMouseMove:y,style:{background:"radial-gradient"===o.type?ql(o):i},onMouseLeave:function(){m({type:"STOP_INSERTER_MOVE"})}},Object(c.createElement)("div",{className:"components-custom-gradient-picker__markers-container"},(g||O)&&Object(c.createElement)(td,{insertPosition:v.insertPosition,onChange:d,gradientAST:o,onOpenInserter:function(){m({type:"OPEN_INSERTER"})},onCloseInserter:function(){m({type:"CLOSE_INSERTER"})}}),Object(c.createElement)(ed,{gradientPickerDomRef:f,ignoreMarkerPosition:O?v.insertPosition:void 0,markerPoints:p,onChange:d,gradientAST:o,onStartControlPointChange:function(){m({type:"START_CONTROL_CHANGE"})},onStopControlPointChange:function(){m({type:"STOP_CONTROL_CHANGE"})}})))}var ad=Oe(St,{target:"e99xvul0",label:"SelectWrapper"})({name:"14kcwr6",styles:"width:110px;"});function id(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function cd(e){for(var t=1;t",{alternative:"the `pages` prop"})}),[t]),c.Children.count(t)&&(u=c.Children.map(t,(function(e){return{content:e}})));var h=p>0,v=p",{alternative:"the `pages` prop in "})}),[]),Object(c.createElement)("div",e)}var Id=Object(c.forwardRef)((function(e,t){var n=e.labelPosition,r=e.size,a=e.tooltip,s=e.label,u=Object(i.a)(e,["labelPosition","size","tooltip","label"]);return Us()("wp.components.IconButton",{alternative:"wp.components.Button"}),Object(c.createElement)($r.a,Object(o.a)({},u,{ref:t,tooltipPosition:n,iconSize:r,showTooltip:void 0!==a?!!a:void 0,label:a||s}))}));var Rd=function e(t){var n=t.children,r=t.className,o=void 0===r?"":r,a=t.label,i=Object(E.useInstanceId)(e);if(!c.Children.count(n))return null;var s="components-menu-group-label-".concat(i),u=l()(o,"components-menu-group");return Object(c.createElement)("div",{className:u},a&&Object(c.createElement)("div",{className:"components-menu-group__label",id:s,"aria-hidden":"true"},a),Object(c.createElement)("div",{role:"group","aria-labelledby":a?s:null},n))},Nd=n(173);var Ad=Object(c.forwardRef)((function(e,t){var n=e.children,r=e.info,a=e.className,u=e.icon,d=e.shortcut,f=e.isSelected,p=e.role,b=void 0===p?"menuitem":p,h=Object(i.a)(e,["children","info","className","icon","shortcut","isSelected","role"]);return a=l()("components-menu-item__button",a),r&&(n=Object(c.createElement)("span",{className:"components-menu-item__info-wrapper"},n,Object(c.createElement)("span",{className:"components-menu-item__info"},r))),u&&!Object(s.isString)(u)&&(u=Object(c.cloneElement)(u,{className:"components-menu-items__item-icon"})),Object(c.createElement)($r.a,Object(o.a)({ref:t,"aria-checked":"menuitemcheckbox"===b||"menuitemradio"===b?f:void 0,role:b,className:a},h),n,Object(c.createElement)(Nd.a,{className:"components-menu-item__shortcut",shortcut:d}),u&&Object(c.createElement)(bs.a,{icon:u}))}));function Fd(e){var t=e.choices,n=void 0===t?[]:t,r=e.onHover,o=void 0===r?s.noop:r,a=e.onSelect,i=e.value;return n.map((function(e){var t=i===e.value;return Object(c.createElement)(Ad,{key:e.value,role:"menuitemradio",icon:t&&Qa.a,isSelected:t,shortcut:e.shortcut,className:"components-menu-items-choice",onClick:function(){t||a(e.value)},onMouseEnter:function(){return o(e.value)},onMouseLeave:function(){return o(null)}},e.label)}))}var Ld=n(167);var zd=Object(c.forwardRef)((function(e,t){var n=e.eventToOffset,r=Object(i.a)(e,["eventToOffset"]);return Object(c.createElement)(Zs,Object(o.a)({ref:t,stopNavigationEvents:!0,onlyBrowserTabstops:!0,eventToOffset:function(e){var t=e.keyCode,r=e.shiftKey;return fr.TAB===t?r?-1:1:n?n(e):void 0}},r))})),Bd=Object(c.createContext)({activeItem:void 0,activeMenu:"root",setActiveMenu:s.noop,navigationTree:{items:{},getItem:s.noop,addItem:s.noop,removeItem:s.noop,menus:{},getMenu:s.noop,addMenu:s.noop,removeMenu:s.noop}}),Hd=function(){return Object(c.useContext)(Bd)};var Vd=Oe("div",{target:"ejwewyf0",label:"NavigationUI"})("width:100%;background-color:",Ee.darkGray.primary,";color:#f0f0f0;padding:0 8px;overflow:hidden;"),Wd=Oe("div",{target:"ejwewyf1",label:"MenuUI"})({name:"1wlvkgj",styles:"margin-top:24px;margin-bottom:24px;display:flex;flex-direction:column;ul{padding:0;margin:0;list-style:none;}.components-navigation__back-button{margin-bottom:24px;}"}),Kd=Oe($r.a,{target:"ejwewyf2",label:"MenuBackButtonUI"})("&.is-tertiary{color:",Ee.lightGray.ui,";&:hover:not(:disabled ){color:#ddd;box-shadow:none;}&:active:not(:disabled ){background:transparent;color:#ddd;}}"),Ud=Oe(Zt,{target:"ejwewyf3",label:"MenuTitleUI"})("padding:4px 0 4px 16px;margin-bottom:8px;color:",Ee.gray[100],";"),Gd=Oe(Zt,{target:"ejwewyf4",label:"GroupTitleUI"})("margin-top:8px;padding:4px 0 4px 16px;text-transform:uppercase;color:",Ee.gray[100],";"),$d=Oe("li",{target:"ejwewyf5",label:"ItemUI"})("border-radius:2px;color:",Ee.lightGray.ui,";button,a{margin:0;font-weight:400;font-size:14px;line-height:20px;padding-left:16px;padding-right:16px;width:100%;color:",Ee.lightGray.ui,";&:hover,&:focus:not( [aria-disabled='true'] ):active,&:active:not( [aria-disabled='true'] ):active{color:#ddd;}}&.is-active{background-color:",Re.theme,";color:",Re.textDark,";button,a{color:",Re.textDark,";}}svg path{color:",Ee.lightGray.ui,";}"),qd=Oe("span",{target:"ejwewyf6",label:"ItemBadgeUI"})("margin-left:8px;display:inline-flex;padding:4px 12px;border-radius:2px;animation:fade-in 250ms ease-out;@keyframes fade-in{from{opacity:0;}to{opacity:1;}}",Le("animation"),";"),Yd=Oe(Zt,{target:"ejwewyf7",label:"ItemTitleUI"})({name:"zs804i",styles:"margin-right:auto;text-align:left;"});function Zd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Xd(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:"left";E.getMenu(e)&&(S(t),j(e),m(e))},C=Object(c.useRef)(!1);Object(c.useEffect)((function(){C.current||(C.current=!0)}),[]),Object(c.useEffect)((function(){p!==O&&x(p)}),[p]);var D={activeItem:d,activeMenu:O,setActiveMenu:x,navigationTree:E},M=l()("components-navigation",h);return Object(c.createElement)(Vd,{className:M},Object(c.createElement)(st.a,{key:O,type:"slide-in",options:{origin:_}},(function(e){var t=e.className;return Object(c.createElement)("div",{className:l()(Object(P.a)({},t,C.current&&_))},Object(c.createElement)(Bd.Provider,{value:D},b))})))}var ef=n(214);var tf=Object(c.forwardRef)((function(e,t){var n,r=e.backButtonLabel,o=e.className,a=e.href,i=e.onClick,s=e.parentMenu,u=Hd(),d=u.setActiveMenu,f=u.navigationTree,p=l()("components-navigation__back-button",o),b=null===(n=f.getMenu(s))||void 0===n?void 0:n.title;return Object(c.createElement)(Kd,{className:p,href:a,isTertiary:!0,ref:t,onClick:function(e){"function"==typeof i&&i(e),s&&!e.defaultPrevented&&d(s,"right")}},Object(c.createElement)(Ja.a,{icon:ef.a}),r||b||Object(S.__)("Back"))})),nf=Object(c.createContext)({menu:void 0,isActive:!1}),rf=function(){return Object(c.useContext)(nf)};function of(e){var t=e.children,n=e.className,r=e.title;if(!rf().isActive)return t;var o=l()("components-navigation__group",n);return Object(c.createElement)("li",{className:o},r&&Object(c.createElement)(Gd,{as:"h3",className:"components-navigation__group-title",variant:"caption"},r),Object(c.createElement)("ul",null,t))}var af=n(213);function cf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function sf(e){for(var t=1;t=320,"is-medium":g>=160&&g<320,"is-small":g<160});var O=l()("components-placeholder",d,t),j=l()("components-placeholder__fieldset",{"is-column-layout":b});return Object(c.createElement)("div",Object(o.a)({},h,{className:O}),y,f,p&&Object(c.createElement)("div",{className:"components-placeholder__preview"},p),Object(c.createElement)("div",{className:"components-placeholder__label"},Object(c.createElement)(bs.a,{icon:n}),s),!!u&&Object(c.createElement)("div",{className:"components-placeholder__instructions"},u),Object(c.createElement)("div",{className:j},r))};function kf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function _f(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:0;return Object(s.flatMap)(t,(function(t){return[{value:t.id,label:Object(s.repeat)(" ",3*n)+Object(s.unescape)(t.name)}].concat(Object(Ur.a)(e(t.children||[],n+1)))}))}(u))));return Object(c.createElement)(ys,Object(o.a)({label:t,options:d,onChange:r},{value:a},l))}function xf(e){var t=e.label,n=e.noOptionLabel,r=e.categoriesList,a=e.selectedCategoryId,s=e.onChange,u=Object(i.a)(e,["label","noOptionLabel","categoriesList","selectedCategoryId","onChange"]),l=Sf(r);return Object(c.createElement)(Ef,Object(o.a)({label:t,noOptionLabel:n,onChange:s},{tree:l,selectedId:a},u))}function Cf(e){var t=e.label,n=e.noOptionLabel,r=e.authorList,a=e.selectedAuthorId,i=e.onChange;if(!r)return null;var s=Sf(r);return Object(c.createElement)(Ef,Object(o.a)({label:t,noOptionLabel:n,onChange:i},{tree:s,selectedId:a}))}function Pf(e){var t=e.authorList,n=e.selectedAuthorId,r=e.categoriesList,o=e.selectedCategoryId,i=e.categorySuggestions,s=e.selectedCategories,u=e.numberOfItems,l=e.order,d=e.orderBy,f=e.maxItems,p=void 0===f?100:f,b=e.minItems,h=void 0===b?1:b,v=e.onCategoryChange,m=e.onAuthorChange,y=e.onNumberOfItemsChange,g=e.onOrderChange,O=e.onOrderByChange;return[g&&O&&Object(c.createElement)(ys,{key:"query-controls-order-select",label:Object(S.__)("Order by"),value:"".concat(d,"/").concat(l),options:[{label:Object(S.__)("Newest to oldest"),value:"date/desc"},{label:Object(S.__)("Oldest to newest"),value:"date/asc"},{label:Object(S.__)("A → Z"),value:"title/asc"},{label:Object(S.__)("Z → A"),value:"title/desc"}],onChange:function(e){var t=e.split("/"),n=Object(a.a)(t,2),r=n[0],o=n[1];o!==l&&g(o),r!==d&&O(r)}}),r&&v&&Object(c.createElement)(xf,{key:"query-controls-category-select",categoriesList:r,label:Object(S.__)("Category"),noOptionLabel:Object(S.__)("All"),selectedCategoryId:o,onChange:v}),i&&v&&Object(c.createElement)(Pl,{key:"query-controls-categories-select",label:Object(S.__)("Categories"),value:s&&s.map((function(e){return{id:e.id,value:e.name||e.value}})),suggestions:Object.keys(i),onChange:v,maxSuggestions:20}),m&&Object(c.createElement)(Cf,{key:"query-controls-author-select",authorList:t,label:Object(S.__)("Author"),noOptionLabel:Object(S.__)("All"),selectedAuthorId:n,onChange:m}),y&&Object(c.createElement)(vl,{key:"query-controls-range-control",label:Object(S.__)("Number of items"),value:u,onChange:y,min:h,max:p,required:!0})]}n(81);var Df=n(48),Mf=n(127),Tf=(n(110),n(62));function If(e){void 0===e&&(e={});var t=Object(Tf.a)(e),n=t.state,r=t.loop,o=void 0===r||r,a=Object(p.a)(t,["state","loop"]),i=Object(v.useState)(n),c=i[0],s=i[1],u=Object(d.g)(Object(p.b)(Object(p.b)({},a),{},{loop:o}));return Object(p.b)(Object(p.b)({},u),{},{state:c,setState:s})}var Rf=[].concat(d.g.__keys,["state","setState"]);function Nf(e){return void 0!==e.checked?e.checked:void 0!==e.value&&e.state===e.value}function Af(e,t){var n=Object(Mf.a)(e,"change");Object.defineProperties(n,{type:{value:"change"},target:{value:e},currentTarget:{value:e}}),null==t||t(n)}If.__keys=Rf;var Ff=Object(h.a)({name:"Radio",compose:x.b,useState:If,keys:["value","checked","unstable_checkOnFocus"],useOptions:function(e,t){var n,r=t.value,o=t.checked,a=e.unstable_clickOnEnter,i=void 0!==a&&a,c=e.unstable_checkOnFocus,s=void 0===c||c,u=Object(p.a)(e,["unstable_clickOnEnter","unstable_checkOnFocus"]);return Object(p.b)(Object(p.b)({checked:o,unstable_clickOnEnter:i,unstable_checkOnFocus:s},u),{},{value:null!=(n=u.value)?n:r})},useProps:function(e,t){var n=t.ref,r=t.onChange,o=t.onClick,a=Object(p.a)(t,["ref","onChange","onClick"]),i=Object(v.useRef)(null),c=Object(v.useState)(!0),s=c[0],u=c[1],l=Nf(e),d=Object(Df.a)(e.currentId===e.id),f=Object(Df.a)(r),b=Object(Df.a)(o);!function(e){var t=Object(v.useState)((function(){return Nf(e)}))[0],n=Object(v.useState)(e.currentId)[0],r=e.id,o=e.setCurrentId;Object(v.useEffect)((function(){t&&r&&n!==r&&(null==o||o(r))}),[t,r,o,n])}(e),Object(v.useEffect)((function(){var e=i.current;e&&("INPUT"===e.tagName&&"radio"===e.type||u(!1))}),[]);var h=Object(v.useCallback)((function(t){var n,r;null===(n=f.current)||void 0===n||n.call(f,t),t.defaultPrevented||e.disabled||null===(r=e.setState)||void 0===r||r.call(e,e.value)}),[e.disabled,e.setState,e.value]),m=Object(v.useCallback)((function(e){var t;null===(t=b.current)||void 0===t||t.call(b,e),e.defaultPrevented||Af(e.currentTarget,h)}),[h]);return Object(v.useEffect)((function(){var t=i.current;t&&e.unstable_moves&&d.current&&e.unstable_checkOnFocus&&Af(t,h)}),[e.unstable_moves,e.unstable_checkOnFocus,h]),Object(p.b)({ref:Object(y.a)(i,n),role:s?void 0:"radio",type:s?"radio":void 0,value:s?e.value:void 0,"aria-checked":l,checked:l,onChange:h,onClick:m},a)}}),Lf=Object(b.a)({as:"input",memo:!0,useHook:Ff}),zf=Object(c.createContext)({state:null,setState:function(){}});var Bf=Object(c.forwardRef)((function(e,t){var n=e.children,r=e.value,a=Object(i.a)(e,["children","value"]),s=Object(c.useContext)(zf),u=s.state===r;return Object(c.createElement)(Lf,Object(o.a)({ref:t,as:$r.a,isPrimary:u,isSecondary:!u,value:r},s,a),n||r)})),Hf=n(79),Vf=Object(h.a)({name:"RadioGroup",compose:f.b,useState:If,useProps:function(e,t){return Object(p.b)({role:"radiogroup"},t)}}),Wf=Object(b.a)({as:"div",useHook:Vf,useCreateElement:function(e,t,n){return Object(Hf.a)(e,t,n)}});function Kf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Uf(e){for(var t=1;t0&&void 0!==arguments[0]&&arguments[0];if(this.isFrameAccessible()){var t=this.iframe.current.contentDocument.body;if(e||null===t.getAttribute("data-resizable-iframe-connected")){var n="\n\t\t\t( function() {\n\t\t\t\tvar observer;\n\n\t\t\t\tif ( ! window.MutationObserver || ! document.body || ! window.parent ) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\tfunction sendResize() {\n\t\t\t\t\tvar clientBoundingRect = document.body.getBoundingClientRect();\n\n\t\t\t\t\twindow.parent.postMessage( {\n\t\t\t\t\t\taction: 'resize',\n\t\t\t\t\t\twidth: clientBoundingRect.width,\n\t\t\t\t\t\theight: clientBoundingRect.height,\n\t\t\t\t\t}, '*' );\n\t\t\t\t}\n\n\t\t\t\tobserver = new MutationObserver( sendResize );\n\t\t\t\tobserver.observe( document.body, {\n\t\t\t\t\tattributes: true,\n\t\t\t\t\tattributeOldValue: false,\n\t\t\t\t\tcharacterData: true,\n\t\t\t\t\tcharacterDataOldValue: false,\n\t\t\t\t\tchildList: true,\n\t\t\t\t\tsubtree: true\n\t\t\t\t} );\n\n\t\t\t\twindow.addEventListener( 'load', sendResize, true );\n\n\t\t\t\t// Hack: Remove viewport unit styles, as these are relative\n\t\t\t\t// the iframe root and interfere with our mechanism for\n\t\t\t\t// determining the unconstrained page bounds.\n\t\t\t\tfunction removeViewportStyles( ruleOrNode ) {\n\t\t\t\t\tif( ruleOrNode.style ) {\n\t\t\t\t\t\t[ 'width', 'height', 'minHeight', 'maxHeight' ].forEach( function( style ) {\n\t\t\t\t\t\t\tif ( /^\\d+(vmin|vmax|vh|vw)$/.test( ruleOrNode.style[ style ] ) ) {\n\t\t\t\t\t\t\t\truleOrNode.style[ style ] = '';\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}\n\n\t\t\t\tArray.prototype.forEach.call( document.querySelectorAll( '[style]' ), removeViewportStyles );\n\t\t\t\tArray.prototype.forEach.call( document.styleSheets, function( stylesheet ) {\n\t\t\t\t\tArray.prototype.forEach.call( stylesheet.cssRules || stylesheet.rules, removeViewportStyles );\n\t\t\t\t} );\n\n\t\t\t\tdocument.body.style.position = 'absolute';\n\t\t\t\tdocument.body.style.width = '100%';\n\t\t\t\tdocument.body.setAttribute( 'data-resizable-iframe-connected', '' );\n\n\t\t\t\tsendResize();\n\n\t\t\t\t// Resize events can change the width of elements with 100% width, but we don't\n\t\t\t\t// get an DOM mutations for that, so do the resize when the window is resized, too.\n\t\t\t\twindow.addEventListener( 'resize', sendResize, true );\n\t\t} )();",r="\n\t\t\tbody {\n\t\t\t\tmargin: 0;\n\t\t\t}\n\t\t\thtml,\n\t\t\tbody,\n\t\t\tbody > div,\n\t\t\tbody > div > iframe {\n\t\t\t\twidth: 100%;\n\t\t\t}\n\t\t\thtml.wp-has-aspect-ratio,\n\t\t\tbody.wp-has-aspect-ratio,\n\t\t\tbody.wp-has-aspect-ratio > div,\n\t\t\tbody.wp-has-aspect-ratio > div > iframe {\n\t\t\t\theight: 100%;\n\t\t\t\toverflow: hidden; /* If it has an aspect ratio, it shouldn't scroll. */\n\t\t\t}\n\t\t\tbody > div > * {\n\t\t\t\tmargin-top: 0 !important; /* Has to have !important to override inline styles. */\n\t\t\t\tmargin-bottom: 0 !important;\n\t\t\t}\n\t\t",o=Object(c.createElement)("html",{lang:document.documentElement.lang,className:this.props.type},Object(c.createElement)("head",null,Object(c.createElement)("title",null,this.props.title),Object(c.createElement)("style",{dangerouslySetInnerHTML:{__html:r}}),this.props.styles&&this.props.styles.map((function(e,t){return Object(c.createElement)("style",{key:t,dangerouslySetInnerHTML:{__html:e}})}))),Object(c.createElement)("body",{"data-resizable-iframe-connected":"data-resizable-iframe-connected",className:this.props.type},Object(c.createElement)("div",{dangerouslySetInnerHTML:{__html:this.props.html}}),Object(c.createElement)("script",{type:"text/javascript",dangerouslySetInnerHTML:{__html:n}}),this.props.scripts&&this.props.scripts.map((function(e){return Object(c.createElement)("script",{key:e,src:e})})))),a=this.iframe.current.contentWindow.document;a.open(),a.write(""+Object(c.renderToString)(o)),a.close()}}}},{key:"render",value:function(){var e=this.props,t=e.title,n=e.onFocus;return Object(c.createElement)(zu,{iframeRef:this.iframe,title:t,className:"components-sandbox",sandbox:"allow-scripts allow-same-origin allow-presentation",onFocus:n,width:Math.ceil(this.state.width),height:Math.ceil(this.state.height)})}}],[{key:"defaultProps",get:function(){return{html:"",title:""}}}]),n}(c.Component),Np=Rp=Object(E.withGlobalEvents)({message:"checkMessageForResize"})(Rp),Ap=n(168),Fp=n(20),Lp=n.n(Fp),zp=n(45),Bp=n(116);var Hp=function(e){var t=e.notices,n=e.className,r=e.children,i=e.onRemove,u=void 0===i?s.noop:i,d=Object(E.useReducedMotion)(),f=Object(c.useState)((function(){return new WeakMap})),p=Object(a.a)(f,1)[0],b=Object(Bp.useTransition)(t,(function(e){return e.id}),{from:{opacity:0,height:0},enter:function(e){return function(){var t=Object(zp.a)(Lp.a.mark((function t(n){return Lp.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,n({opacity:1,height:p.get(e).offsetHeight});case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()},leave:function(){return function(){var e=Object(zp.a)(Lp.a.mark((function e(t){return Lp.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t({opacity:0});case 2:return e.next=4,t({height:0});case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()},immediate:d});n=l()("components-snackbar-list",n);var h=function(e){return function(){return u(e.id)}};return Object(c.createElement)("div",{className:n},r,b.map((function(e){var t=e.item,n=e.key,r=e.props;return Object(c.createElement)(Bp.animated.div,{key:n,style:r},Object(c.createElement)("div",{className:"components-snackbar-list__notice-container",ref:function(e){return e&&p.set(t,e)}},Object(c.createElement)(Ap.a,Object(o.a)({},Object(s.omit)(t,["content"]),{onRemove:h(t)}),t.content)))})))};function Vp(){return Object(c.createElement)("span",{className:"components-spinner"})}var Wp=function(e){var t=e.tabId,n=e.onClick,r=e.children,a=e.selected,s=Object(i.a)(e,["tabId","onClick","children","selected"]);return Object(c.createElement)($r.a,Object(o.a)({role:"tab",tabIndex:a?null:-1,"aria-selected":a,id:t,onClick:n},s),r)};function Kp(e){var t,n=e.className,r=e.children,o=e.tabs,i=e.initialTabName,u=e.orientation,d=void 0===u?"horizontal":u,f=e.activeClass,p=void 0===f?"is-active":f,b=e.onSelect,h=void 0===b?s.noop:b,v=Object(E.useInstanceId)(Kp,"tab-panel"),m=Object(c.useState)(null),y=Object(a.a)(m,2),g=y[0],O=y[1],j=function(e){O(e),h(e)},w=Object(s.find)(o,{name:g}),k="".concat(v,"-").concat(null!==(t=null==w?void 0:w.name)&&void 0!==t?t:"none");return Object(c.useEffect)((function(){Object(s.find)(o,{name:g})||O(i||(o.length>0?o[0].name:null))}),[o]),Object(c.createElement)("div",{className:n},Object(c.createElement)(Xs,{role:"tablist",orientation:d,onNavigate:function(e,t){t.click()},className:"components-tab-panel__tabs"},o.map((function(e){return Object(c.createElement)(Wp,{className:l()("components-tab-panel__tabs-item",e.className,Object(P.a)({},p,e.name===g)),tabId:"".concat(v,"-").concat(e.name),"aria-controls":"".concat(v,"-").concat(e.name,"-view"),selected:e.name===g,key:e.name,onClick:Object(s.partial)(j,e.name)},e.title)}))),w&&Object(c.createElement)("div",{"aria-labelledby":k,role:"tabpanel",id:"".concat(k,"-view"),className:"components-tab-panel__tab-content"},r(w)))}var Up={radiusBlockUi:"2px",borderWidth:"1px",borderWidthFocus:"1.5px",borderWidthTab:"4px"},Gp=function(e){return Up[e]},$p=fe("box-shadow:0 0 0 transparent;transition:box-shadow 0.1s linear;border-radius:",Gp("radiusBlockUi"),";border:",Gp("borderWidth")," solid ",Fe("ui.border"),";",Le("transition"),";label:inputStyleNeutral;"),qp=fe("border-color:var( --wp-admin-theme-color );box-shadow:0 0 0 calc( ",Gp("borderWidthFocus")," - ",Gp("borderWidth")," ) var( --wp-admin-theme-color );outline:2px solid transparent;;label:inputStyleFocus;"),Yp={huge:"1440px",wide:"1280px","x-large":"1080px",large:"960px",medium:"782px",small:"600px",mobile:"480px","zoomed-in":"280px"},Zp=fe("font-family:",lt("default.fontFamily"),";padding:6px 8px;",$p,";font-size:",lt("mobileTextMinFontSize"),";line-height:normal;","@media (min-width: ".concat(Yp["small"],")"),"{font-size:",lt("default.fontSize"),";line-height:normal;}&:focus{",qp,"}&::-webkit-input-placeholder{color:",Fe("darkGray.placeholder"),";}&::-moz-placeholder{opacity:1;color:",Fe("darkGray.placeholder"),";}&:-ms-input-placeholder{color:",Fe("darkGray.placeholder"),";}.is-dark-theme &{&::-webkit-input-placeholder{color:",Fe("lightGray.placeholder"),";}&::-moz-placeholder{opacity:1;color:",Fe("lightGray.placeholder"),";}&:-ms-input-placeholder{color:",Fe("lightGray.placeholder"),";}};label:inputControl;"),Xp=Oe("textarea",{target:"ebk7yr50",label:"StyledTextarea"})("width:100%;",Zp,"");function Jp(e){var t=e.label,n=e.hideLabelFromVision,r=e.value,a=e.help,s=e.onChange,u=e.rows,l=void 0===u?4:u,d=e.className,f=Object(i.a)(e,["label","hideLabelFromVision","value","help","onChange","rows","className"]),p=Object(E.useInstanceId)(Jp),b="inspector-textarea-control-".concat(p);return Object(c.createElement)(mt,{label:t,hideLabelFromVision:n,id:b,help:a,className:d},Object(c.createElement)(Xp,Object(o.a)({className:"components-textarea-control__input",id:b,rows:l,onChange:function(e){return s(e.target.value)},"aria-describedby":a?b+"__help":void 0,value:r},f)))}var Qp=function(e){var t=e.text,n=void 0===t?"":t,r=e.highlight,o=(void 0===r?"":r).trim();if(!o)return n;var a=new RegExp("(".concat(Object(s.escapeRegExp)(o),")"),"gi");return Object(c.createInterpolateElement)(n.replace(a,"$&"),{mark:Object(c.createElement)("mark",null)})};var eb=function(e){return Object(c.createElement)("div",{className:"components-tip"},Object(c.createElement)(r.SVG,{width:"24",height:"24",viewBox:"0 0 24 24"},Object(c.createElement)(r.Path,{d:"M12 15.8c-3.7 0-6.8-3-6.8-6.8s3-6.8 6.8-6.8c3.7 0 6.8 3 6.8 6.8s-3.1 6.8-6.8 6.8zm0-12C9.1 3.8 6.8 6.1 6.8 9s2.4 5.2 5.2 5.2c2.9 0 5.2-2.4 5.2-5.2S14.9 3.8 12 3.8zM8 17.5h8V19H8zM10 20.5h4V22h-4z"})),Object(c.createElement)("p",null,e.children))};function tb(e){var t=e.label,n=e.checked,r=e.help,o=e.className,a=e.onChange;var i,u,d=Object(E.useInstanceId)(tb),f="inspector-toggle-control-".concat(d);return r&&(i=f+"__help",u=Object(s.isFunction)(r)?r(n):r),Object(c.createElement)(mt,{id:f,help:u,className:l()("components-toggle-control",o)},Object(c.createElement)(Ol,{id:f,checked:n,onChange:function(e){a(e.target.checked)},"aria-describedby":i}),Object(c.createElement)("label",{htmlFor:f,className:"components-toggle-control__label"},t))}var nb=n(137),rb=n(93),ob=function(e){return Object(c.createElement)("div",{className:e.className},e.children)};var ab=Object(c.forwardRef)((function(e,t){var n=e.containerClassName,r=e.className,a=e.extraProps,s=e.children,u=e.title,d=e.isActive,f=e.isDisabled,p=Object(i.a)(e,["containerClassName","className","extraProps","children","title","isActive","isDisabled"]);return Object(c.useContext)(rb.a)?Object(c.createElement)(nb.a,Object(o.a)({className:l()("components-toolbar-button",r)},a,p,{ref:t}),(function(e){return Object(c.createElement)($r.a,Object(o.a)({label:u,isPressed:d,disabled:f},e),s)})):Object(c.createElement)(ob,{className:n},Object(c.createElement)($r.a,Object(o.a)({ref:t,icon:p.icon,label:u,shortcut:p.shortcut,"data-subscript":p.subscript,onClick:function(e){e.stopPropagation(),p.onClick&&p.onClick(e)},className:l()("components-toolbar__control",r),isPressed:d,disabled:f,"data-toolbar-item":!0},a,p),s))})),ib=function(e){var t=e.className,n=e.children,r=Object(i.a)(e,["className","children"]);return Object(c.createElement)("div",Object(o.a)({className:t},r),n)};function cb(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function sb(e){for(var t=1;t0&&0===n?"has-left-divider":null},e))}))})),r)},db=n(174),fb=Object(h.a)({name:"Toolbar",compose:f.b,useState:db.a,useProps:function(e,t){return Object(p.b)({role:"toolbar","aria-orientation":e.orientation},t)}}),pb=Object(b.a)({as:"div",useHook:fb,useCreateElement:function(e,t,n){return Object(Hf.a)(e,t,n)}});var bb=Object(c.forwardRef)((function(e,t){var n=e.label,r=Object(i.a)(e,["label"]),a=Object(db.a)({loop:!0,baseId:r.id,rtl:Xe()});return Object(c.createElement)(rb.a.Provider,{value:a},Object(c.createElement)(pb,Object(o.a)({ref:t,"aria-label":n},a,r)))}));var hb=Object(c.forwardRef)((function(e,t){var n=e.className,r=e.label,a=Object(i.a)(e,["className","label"]);if(!r)return Us()("Using Toolbar without label prop",{alternative:"ToolbarGroup component",link:"https://developer.wordpress.org/block-editor/components/toolbar/"}),Object(c.createElement)(lb,Object(o.a)({},a,{className:n}));var s=l()("components-accessible-toolbar",n);return Object(c.createElement)(bb,Object(o.a)({className:s,label:r,ref:t},a))})),vb=Object(c.createContext)(),mb=vb.Provider;function yb(e){var t=e.children,n=Object(c.useState)(),r=Object(a.a)(n,2),o=r[0],i=r[1],s=Object(c.useMemo)((function(){return{lastFocusedElement:o,setLastFocusedElement:i}}),[o]);return Object(c.createElement)(mb,{value:s},t)}function gb(e){var t=js.focus.focusable.find(e);if(t&&t.length)return t.filter((function(t){return t.closest('[role="row"]')===e}))}var Ob=Object(c.forwardRef)((function(e,t){var n=e.children,r=Object(i.a)(e,["children"]),a=Object(c.useCallback)((function(e){var t=e.keyCode,n=e.metaKey,r=e.ctrlKey,o=e.altKey,a=e.shiftKey;if(!(n||r||o||a)&&Object(s.includes)([fr.UP,fr.DOWN,fr.LEFT,fr.RIGHT],t)){e.stopPropagation();var i=document.activeElement,c=e.currentTarget;if(c.contains(i)){var u=i.closest('[role="row"]'),l=gb(u),d=l.indexOf(i);if(Object(s.includes)([fr.LEFT,fr.RIGHT],t)){var f;if((f=t===fr.LEFT?Math.max(0,d-1):Math.min(d+1,l.length-1))===d)return void e.preventDefault();l[f].focus(),e.preventDefault()}else if(Object(s.includes)([fr.UP,fr.DOWN],t)){var p,b=Array.from(c.querySelectorAll('[role="row"]')),h=b.indexOf(u);if((p=t===fr.UP?Math.max(0,h-1):Math.min(h+1,b.length-1))===h)return void e.preventDefault();var v=gb(b[p]);if(!v||!v.length)return void e.preventDefault();v[Math.min(d,v.length-1)].focus(),e.preventDefault()}}}}),[]);return Object(c.createElement)(yb,null,Object(c.createElement)("table",Object(o.a)({},r,{role:"treegrid",onKeyDown:a,ref:t}),Object(c.createElement)("tbody",null,n)))}));var jb=Object(c.forwardRef)((function(e,t){var n=e.children,r=e.level,a=e.positionInSet,s=e.setSize,u=e.isExpanded,l=Object(i.a)(e,["children","level","positionInSet","setSize","isExpanded"]);return Object(c.createElement)("tr",Object(o.a)({},l,{ref:t,role:"row","aria-level":r,"aria-posinset":a,"aria-setsize":s,"aria-expanded":u}),n)}));function wb(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var kb=Object(c.forwardRef)((function(e,t){var n,r=e.children,o=e.as,a=Object(i.a)(e,["children","as"]),s=Object(c.useRef)(),u=t||s,l=Object(c.useContext)(vb),d=l.lastFocusedElement,f=l.setLastFocusedElement;d&&(n=d===u.current?0:-1);var p=function(e){for(var t=1;t0&&Object(c.createElement)(bf,{className:"components-with-notices-ui",notices:this.state.noticeList,onRemove:this.removeNotice})},this.props))}}]),r}(c.Component)}))},function(e,t,n){"use strict";var r=n(0),o=n(7),a=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M20.1 5.1L16.9 2 6.2 12.7l-1.3 4.4 4.5-1.3L20.1 5.1zM4 20.8h8v-1.5H4v1.5z"}));t.a=a},,,,,,,,,,,,function(e,t){e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,a=void 0;try{for(var i,c=e[Symbol.iterator]();!(r=(i=c.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{!r&&c.return&&c.return()}finally{if(o)throw a}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=function(){function e(e,t){for(var n=0;n0&&this.setState({visibleDays:(0,a.default)({},k,M)})}},{key:"componentWillUpdate",value:function(){this.today=(0,l.default)()}},{key:"onDayClick",value:function(e,t){if(t&&t.preventDefault(),!this.isBlocked(e)){var n=this.props,r=n.onDateChange,o=n.keepOpenOnDateSelect,a=n.onFocusChange,i=n.onClose;r(e),o||(a({focused:!1}),i({date:e}))}}},{key:"onDayMouseEnter",value:function(e){if(!this.isTouchDevice){var t=this.state,n=t.hoverDate,r=t.visibleDays,o=this.deleteModifier({},n,"hovered");o=this.addModifier(o,e,"hovered"),this.setState({hoverDate:e,visibleDays:(0,a.default)({},r,o)})}}},{key:"onDayMouseLeave",value:function(){var e=this.state,t=e.hoverDate,n=e.visibleDays;if(!this.isTouchDevice&&t){var r=this.deleteModifier({},t,"hovered");this.setState({hoverDate:null,visibleDays:(0,a.default)({},n,r)})}}},{key:"onPrevMonthClick",value:function(){var e=this.props,t=e.onPrevMonthClick,n=e.numberOfMonths,r=e.enableOutsideDays,o=this.state,i=o.currentMonth,c=o.visibleDays,s={};Object.keys(c).sort().slice(0,n+1).forEach((function(e){s[e]=c[e]}));var u=i.clone().subtract(1,"month"),l=(0,m.default)(u,1,r);this.setState({currentMonth:u,visibleDays:(0,a.default)({},s,this.getModifiers(l))},(function(){t(u.clone())}))}},{key:"onNextMonthClick",value:function(){var e=this.props,t=e.onNextMonthClick,n=e.numberOfMonths,r=e.enableOutsideDays,o=this.state,i=o.currentMonth,c=o.visibleDays,s={};Object.keys(c).sort().slice(1).forEach((function(e){s[e]=c[e]}));var u=i.clone().add(n,"month"),l=(0,m.default)(u,1,r),d=i.clone().add(1,"month");this.setState({currentMonth:d,visibleDays:(0,a.default)({},s,this.getModifiers(l))},(function(){t(d.clone())}))}},{key:"onMonthChange",value:function(e){var t=this.props,n=t.numberOfMonths,r=t.enableOutsideDays,o=t.orientation===_.VERTICAL_SCROLLABLE,a=(0,m.default)(e,n,r,o);this.setState({currentMonth:e.clone(),visibleDays:this.getModifiers(a)})}},{key:"onYearChange",value:function(e){var t=this.props,n=t.numberOfMonths,r=t.enableOutsideDays,o=t.orientation===_.VERTICAL_SCROLLABLE,a=(0,m.default)(e,n,r,o);this.setState({currentMonth:e.clone(),visibleDays:this.getModifiers(a)})}},{key:"getFirstFocusableDay",value:function(e){var t=this,n=this.props,o=n.date,a=n.numberOfMonths,i=e.clone().startOf("month");if(o&&(i=o.clone()),this.isBlocked(i)){for(var c=[],s=e.clone().add(a-1,"months").endOf("month"),u=i.clone();!(0,v.default)(u,s);)u=u.clone().add(1,"day"),c.push(u);var l=c.filter((function(e){return!t.isBlocked(e)&&(0,v.default)(e,i)}));if(l.length>0){var d=r(l,1);i=d[0]}}return i}},{key:"getModifiers",value:function(e){var t=this,n={};return Object.keys(e).forEach((function(r){n[r]={},e[r].forEach((function(e){n[r][(0,g.default)(e)]=t.getModifiersForDay(e)}))})),n}},{key:"getModifiersForDay",value:function(e){var t=this;return new Set(Object.keys(this.modifiers).filter((function(n){return t.modifiers[n](e)})))}},{key:"getStateForNewMonth",value:function(e){var t=this,n=e.initialVisibleMonth,r=e.date,o=e.numberOfMonths,a=e.enableOutsideDays,i=(n||(r?function(){return r}:function(){return t.today}))();return{currentMonth:i,visibleDays:this.getModifiers((0,m.default)(i,o,a))}}},{key:"addModifier",value:function(e,t,n){var r=this.props,o=r.numberOfMonths,i=r.enableOutsideDays,c=r.orientation,s=this.state,u=s.currentMonth,l=s.visibleDays,d=u,f=o;if(c===_.VERTICAL_SCROLLABLE?f=Object.keys(l).length:(d=d.clone().subtract(1,"month"),f+=2),!t||!(0,y.default)(t,d,f,i))return e;var p=(0,g.default)(t),b=(0,a.default)({},e);if(i)b=Object.keys(l).filter((function(e){return Object.keys(l[e]).indexOf(p)>-1})).reduce((function(t,r){var o=e[r]||l[r],i=new Set(o[p]);return i.add(n),(0,a.default)({},t,x({},r,(0,a.default)({},o,x({},p,i))))}),b);else{var h=(0,O.default)(t),v=e[h]||l[h],m=new Set(v[p]);m.add(n),b=(0,a.default)({},b,x({},h,(0,a.default)({},v,x({},p,m))))}return b}},{key:"deleteModifier",value:function(e,t,n){var r=this.props,o=r.numberOfMonths,i=r.enableOutsideDays,c=r.orientation,s=this.state,u=s.currentMonth,l=s.visibleDays,d=u,f=o;if(c===_.VERTICAL_SCROLLABLE?f=Object.keys(l).length:(d=d.clone().subtract(1,"month"),f+=2),!t||!(0,y.default)(t,d,f,i))return e;var p=(0,g.default)(t),b=(0,a.default)({},e);if(i)b=Object.keys(l).filter((function(e){return Object.keys(l[e]).indexOf(p)>-1})).reduce((function(t,r){var o=e[r]||l[r],i=new Set(o[p]);return i.delete(n),(0,a.default)({},t,x({},r,(0,a.default)({},o,x({},p,i))))}),b);else{var h=(0,O.default)(t),v=e[h]||l[h],m=new Set(v[p]);m.delete(n),b=(0,a.default)({},b,x({},h,(0,a.default)({},v,x({},p,m))))}return b}},{key:"isBlocked",value:function(e){var t=this.props,n=t.isDayBlocked,r=t.isOutsideRange;return n(e)||r(e)}},{key:"isHovered",value:function(e){var t=(this.state||{}).hoverDate;return(0,h.default)(e,t)}},{key:"isSelected",value:function(e){var t=this.props.date;return(0,h.default)(e,t)}},{key:"isToday",value:function(e){return(0,h.default)(e,this.today)}},{key:"isFirstDayOfWeek",value:function(e){var t=this.props.firstDayOfWeek;return e.day()===(t||l.default.localeData().firstDayOfWeek())}},{key:"isLastDayOfWeek",value:function(e){var t=this.props.firstDayOfWeek;return e.day()===((t||l.default.localeData().firstDayOfWeek())+6)%7}},{key:"render",value:function(){var e=this.props,t=e.numberOfMonths,n=e.orientation,r=e.monthFormat,o=e.renderMonthText,a=e.navPrev,c=e.navNext,s=e.onOutsideClick,u=e.withPortal,l=e.focused,d=e.enableOutsideDays,f=e.hideKeyboardShortcutsPanel,p=e.daySize,b=e.firstDayOfWeek,h=e.renderCalendarDay,v=e.renderDayContents,m=e.renderCalendarInfo,y=e.renderMonthElement,g=e.calendarInfoPosition,O=e.isFocused,j=e.isRTL,w=e.phrases,k=e.dayAriaLabelFormat,_=e.onBlur,E=e.showKeyboardShortcuts,x=e.weekDayFormat,C=e.verticalHeight,P=e.noBorder,D=e.transitionDuration,M=e.verticalBorderSpacing,T=e.horizontalMonthPadding,I=this.state,R=I.currentMonth,N=I.visibleDays;return i.default.createElement(S.default,{orientation:n,enableOutsideDays:d,modifiers:N,numberOfMonths:t,onDayClick:this.onDayClick,onDayMouseEnter:this.onDayMouseEnter,onDayMouseLeave:this.onDayMouseLeave,onPrevMonthClick:this.onPrevMonthClick,onNextMonthClick:this.onNextMonthClick,onMonthChange:this.onMonthChange,onYearChange:this.onYearChange,monthFormat:r,withPortal:u,hidden:!l,hideKeyboardShortcutsPanel:f,initialVisibleMonth:function(){return R},firstDayOfWeek:b,onOutsideClick:s,navPrev:a,navNext:c,renderMonthText:o,renderCalendarDay:h,renderDayContents:v,renderCalendarInfo:m,renderMonthElement:y,calendarInfoPosition:g,isFocused:O,getFirstFocusableDay:this.getFirstFocusableDay,onBlur:_,phrases:w,daySize:p,isRTL:j,showKeyboardShortcuts:E,weekDayFormat:x,dayAriaLabelFormat:k,verticalHeight:C,noBorder:P,transitionDuration:D,verticalBorderSpacing:M,horizontalMonthPadding:T})}}]),t}(i.default.Component);t.default=D,D.propTypes=C,D.defaultProps=P},,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";var r=n(0),o=n(7),a=Object(r.createElement)(o.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(r.createElement)(o.Path,{d:"M6.5 12.4L12 8l5.5 4.4-.9 1.2L12 10l-4.5 3.6-1-1.2z"}));t.a=a},function(e,t,n){"use strict";var r=n(0),o=n(7),a=Object(r.createElement)(o.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(r.createElement)(o.Path,{d:"M17.5 11.6L12 16l-5.5-4.4.9-1.2L12 14l4.5-3.6 1 1.2z"}));t.a=a},,,,,,,,,,,function(e,t,n){"use strict"; /** @license React v16.13.1 * react-is.production.min.js * @@ -12,7 +12,7 @@ this.wp=this.wp||{},this.wp.components=function(e){var t={};function n(r){if(t[r * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var r="function"==typeof Symbol&&Symbol.for,o=r?Symbol.for("react.element"):60103,i=r?Symbol.for("react.portal"):60106,a=r?Symbol.for("react.fragment"):60107,c=r?Symbol.for("react.strict_mode"):60108,s=r?Symbol.for("react.profiler"):60114,u=r?Symbol.for("react.provider"):60109,l=r?Symbol.for("react.context"):60110,d=r?Symbol.for("react.async_mode"):60111,f=r?Symbol.for("react.concurrent_mode"):60111,p=r?Symbol.for("react.forward_ref"):60112,b=r?Symbol.for("react.suspense"):60113,h=r?Symbol.for("react.suspense_list"):60120,v=r?Symbol.for("react.memo"):60115,m=r?Symbol.for("react.lazy"):60116,y=r?Symbol.for("react.block"):60121,g=r?Symbol.for("react.fundamental"):60117,O=r?Symbol.for("react.responder"):60118,j=r?Symbol.for("react.scope"):60119;function w(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case o:switch(e=e.type){case d:case f:case a:case s:case c:case b:return e;default:switch(e=e&&e.$$typeof){case l:case p:case m:case v:case u:return e;default:return t}}case i:return t}}}function _(e){return w(e)===f}t.AsyncMode=d,t.ConcurrentMode=f,t.ContextConsumer=l,t.ContextProvider=u,t.Element=o,t.ForwardRef=p,t.Fragment=a,t.Lazy=m,t.Memo=v,t.Portal=i,t.Profiler=s,t.StrictMode=c,t.Suspense=b,t.isAsyncMode=function(e){return _(e)||w(e)===d},t.isConcurrentMode=_,t.isContextConsumer=function(e){return w(e)===l},t.isContextProvider=function(e){return w(e)===u},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===o},t.isForwardRef=function(e){return w(e)===p},t.isFragment=function(e){return w(e)===a},t.isLazy=function(e){return w(e)===m},t.isMemo=function(e){return w(e)===v},t.isPortal=function(e){return w(e)===i},t.isProfiler=function(e){return w(e)===s},t.isStrictMode=function(e){return w(e)===c},t.isSuspense=function(e){return w(e)===b},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===a||e===f||e===s||e===c||e===b||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===v||e.$$typeof===u||e.$$typeof===l||e.$$typeof===p||e.$$typeof===g||e.$$typeof===O||e.$$typeof===j||e.$$typeof===y)},t.typeOf=w},function(e,t,n){n(324)},function(e,t,n){"use strict";var r,o=n(325);(0,((r=o)&&r.__esModule?r:{default:r}).default)()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){(0,o.default)(r.default)};var r=i(n(326)),o=i(n(370));function i(e){return e&&e.__esModule?e:{default:e}}},function(e,t,n){e.exports=n(327).default},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=s(n(328)),o=s(n(366)),i=n(367),a=s(n(368)),c=s(n(369));function s(e){return e&&e.__esModule?e:{default:e}}t.default={create:function(e){var t={},n=Object.keys(e),r=(o.default.get(i.GLOBAL_CACHE_KEY)||{}).namespace,c=void 0===r?"":r;return n.forEach((function(e){var n=(0,a.default)(c,e);t[e]=n})),t},resolve:function(e){var t=(0,r.default)(e,1/0),n=(0,c.default)(t),o=n.classNames,i=n.hasInlineStyles,a=n.inlineStyles,s={className:o.map((function(e,t){return String(e)+" "+String(e)+"_"+String(t+1)})).join(" ")};return i&&(s.style=a),s}}},function(e,t,n){"use strict";var r=n(103),o=n(188),i=n(221),a=n(236),c=a(),s=n(365),u=o(c);r(u,{getPolyfill:a,implementation:i,shim:s}),e.exports=u},function(e,t,n){"use strict";var r;if(!Object.keys){var o=Object.prototype.hasOwnProperty,i=Object.prototype.toString,a=n(219),c=Object.prototype.propertyIsEnumerable,s=!c.call({toString:null},"toString"),u=c.call((function(){}),"prototype"),l=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],d=function(e){var t=e.constructor;return t&&t.prototype===e},f={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},p=function(){if("undefined"==typeof window)return!1;for(var e in window)try{if(!f["$"+e]&&o.call(window,e)&&null!==window[e]&&"object"==typeof window[e])try{d(window[e])}catch(e){return!0}}catch(e){return!0}return!1}();r=function(e){var t=null!==e&&"object"==typeof e,n="[object Function]"===i.call(e),r=a(e),c=t&&"[object String]"===i.call(e),f=[];if(!t&&!n&&!r)throw new TypeError("Object.keys called on a non-object");var b=u&&n;if(c&&e.length>0&&!o.call(e,0))for(var h=0;h0)for(var v=0;v= 0");var n,r=0===t?0:t;if(s(e)&&(n=c(e,"constructor"),i&&"Object"===d(n)&&null===(n=c(n,i))&&(n=void 0)),void 0===n)return o(r);if(!u(n))throw new a("C must be a constructor");return new n(r)}},function(e,t,n){var r="function"==typeof Map&&Map.prototype,o=Object.getOwnPropertyDescriptor&&r?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,i=r&&o&&"function"==typeof o.get?o.get:null,a=r&&Map.prototype.forEach,c="function"==typeof Set&&Set.prototype,s=Object.getOwnPropertyDescriptor&&c?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,u=c&&s&&"function"==typeof s.get?s.get:null,l=c&&Set.prototype.forEach,d="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,f="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,p=Boolean.prototype.valueOf,b=Object.prototype.toString,h=Function.prototype.toString,v=String.prototype.match,m="function"==typeof BigInt?BigInt.prototype.valueOf:null,y=n(334).custom,g=y&&_(y)?y:null;function O(e,t,n){var r="double"===(n.quoteStyle||t)?'"':"'";return r+e+r}function j(e){return String(e).replace(/"/g,""")}function w(e){return"[object Array]"===E(e)}function _(e){return"[object Symbol]"===E(e)}e.exports=function e(t,n,r,o){var c=n||{};if(S(c,"quoteStyle")&&"single"!==c.quoteStyle&&"double"!==c.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(S(c,"maxStringLength")&&("number"==typeof c.maxStringLength?c.maxStringLength<0&&c.maxStringLength!==1/0:null!==c.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var s=!S(c,"customInspect")||c.customInspect;if("boolean"!=typeof s)throw new TypeError('option "customInspect", if provided, must be `true` or `false`');if(S(c,"indent")&&null!==c.indent&&"\t"!==c.indent&&!(parseInt(c.indent,10)===c.indent&&c.indent>0))throw new TypeError('options "indent" must be "\\t", an integer > 0, or `null`');if(void 0===t)return"undefined";if(null===t)return"null";if("boolean"==typeof t)return t?"true":"false";if("string"==typeof t)return function e(t,n){if(t.length>n.maxStringLength){var r=t.length-n.maxStringLength,o="... "+r+" more character"+(r>1?"s":"");return e(t.slice(0,n.maxStringLength),n)+o}return O(t.replace(/(['\\])/g,"\\$1").replace(/[\x00-\x1f]/g,C),"single",n)}(t,c);if("number"==typeof t)return 0===t?1/0/t>0?"0":"-0":String(t);if("bigint"==typeof t)return String(t)+"n";var b=void 0===c.depth?5:c.depth;if(void 0===r&&(r=0),r>=b&&b>0&&"object"==typeof t)return w(t)?"[Array]":"[Object]";var y=function(e,t){var n;if("\t"===e.indent)n="\t";else{if(!("number"==typeof e.indent&&e.indent>0))return null;n=Array(e.indent+1).join(" ")}return{base:n,prev:Array(t+1).join(n)}}(c,r);if(void 0===o)o=[];else if(x(o,t)>=0)return"[Circular]";function k(t,n,i){if(n&&(o=o.slice()).push(n),i){var a={depth:c.depth};return S(c,"quoteStyle")&&(a.quoteStyle=c.quoteStyle),e(t,a,r+1,o)}return e(t,c,r+1,o)}if("function"==typeof t){var R=function(e){if(e.name)return e.name;var t=v.call(h.call(e),/^function\s*([\w$]+)/);if(t)return t[1];return null}(t);return"[Function"+(R?": "+R:" (anonymous)")+"]"}if(_(t)){var N=Symbol.prototype.toString.call(t);return"object"==typeof t?P(N):N}if(function(e){if(!e||"object"!=typeof e)return!1;if("undefined"!=typeof HTMLElement&&e instanceof HTMLElement)return!0;return"string"==typeof e.nodeName&&"function"==typeof e.getAttribute}(t)){for(var A="<"+String(t.nodeName).toLowerCase(),L=t.attributes||[],F=0;F"}if(w(t)){if(0===t.length)return"[]";var z=I(t,k);return y&&!function(e){for(var t=0;t=0)return!1;return!0}(z)?"["+T(z,y)+"]":"[ "+z.join(", ")+" ]"}if(function(e){return"[object Error]"===E(e)}(t)){var B=I(t,k);return 0===B.length?"["+String(t)+"]":"{ ["+String(t)+"] "+B.join(", ")+" }"}if("object"==typeof t&&s){if(g&&"function"==typeof t[g])return t[g]();if("function"==typeof t.inspect)return t.inspect()}if(function(e){if(!i||!e||"object"!=typeof e)return!1;try{i.call(e);try{u.call(e)}catch(e){return!0}return e instanceof Map}catch(e){}return!1}(t)){var H=[];return a.call(t,(function(e,n){H.push(k(n,t,!0)+" => "+k(e,t))})),M("Map",i.call(t),H,y)}if(function(e){if(!u||!e||"object"!=typeof e)return!1;try{u.call(e);try{i.call(e)}catch(e){return!0}return e instanceof Set}catch(e){}return!1}(t)){var V=[];return l.call(t,(function(e){V.push(k(e,t))})),M("Set",u.call(t),V,y)}if(function(e){if(!d||!e||"object"!=typeof e)return!1;try{d.call(e,d);try{f.call(e,f)}catch(e){return!0}return e instanceof WeakMap}catch(e){}return!1}(t))return D("WeakMap");if(function(e){if(!f||!e||"object"!=typeof e)return!1;try{f.call(e,f);try{d.call(e,d)}catch(e){return!0}return e instanceof WeakSet}catch(e){}return!1}(t))return D("WeakSet");if(function(e){return"[object Number]"===E(e)}(t))return P(k(Number(t)));if(function(e){return"[object BigInt]"===E(e)}(t))return P(k(m.call(t)));if(function(e){return"[object Boolean]"===E(e)}(t))return P(p.call(t));if(function(e){return"[object String]"===E(e)}(t))return P(k(String(t)));if(!function(e){return"[object Date]"===E(e)}(t)&&!function(e){return"[object RegExp]"===E(e)}(t)){var K=I(t,k);return 0===K.length?"{}":y?"{"+T(K,y)+"}":"{ "+K.join(", ")+" }"}return String(t)};var k=Object.prototype.hasOwnProperty||function(e){return e in this};function S(e,t){return k.call(e,t)}function E(e){return b.call(e)}function x(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;n5&&(h=arguments[5]);for(var v=p,m=0;m0&&(j=u(O)),j){var w=l(c(O,"length"));v=e(t,O,w,v,b-1)}else{if(v>=o)throw new r("index too large");a(t,d(v),O),v+=1}}m+=1}return v}},function(e,t,n){"use strict";var r=n(58),o=n(144),i=r("%Reflect.apply%",!0)||o("%Function.prototype.apply%");e.exports=function(e,t){var n=arguments.length>2?arguments[2]:[];return i(e,t,n)}},function(e,t,n){"use strict";var r=n(58)("%TypeError%"),o=n(345),i=n(132),a=n(93);e.exports=function(e,t,n){if("Object"!==a(e))throw new r("Assertion failed: Type(O) is not Object");if(!i(t))throw new r("Assertion failed: IsPropertyKey(P) is not true");var c=o(e,t,n);if(!c)throw new r("unable to create data property");return c}},function(e,t,n){"use strict";var r=n(58)("%TypeError%"),o=n(222),i=n(223),a=n(346),c=n(224),s=n(350),u=n(132),l=n(225),d=n(93);e.exports=function(e,t,n){if("Object"!==d(e))throw new r("Assertion failed: Type(O) is not Object");if(!u(t))throw new r("Assertion failed: IsPropertyKey(P) is not true");var f=a(e,t),p=!f||s(e);return!(f&&(!f["[[Writable]]"]||!f["[[Configurable]]"])||!p)&&o(c,l,i,e,t,{"[[Configurable]]":!0,"[[Enumerable]]":!0,"[[Value]]":n,"[[Writable]]":!0})}},function(e,t,n){"use strict";var r=n(58),o=n(347),i=r("%TypeError%"),a=n(144)("Object.prototype.propertyIsEnumerable"),c=n(94),s=n(190),u=n(132),l=n(348),d=n(226),f=n(93);e.exports=function(e,t){if("Object"!==f(e))throw new i("Assertion failed: O must be an Object");if(!u(t))throw new i("Assertion failed: P must be a Property Key");if(c(e,t)){if(!o){var n=s(e)&&"length"===t,r=l(e)&&"lastIndex"===t;return{"[[Configurable]]":!(n||r),"[[Enumerable]]":a(e,t),"[[Value]]":e[t],"[[Writable]]":!0}}return d(o(e,t))}}},function(e,t,n){"use strict";var r=n(58)("%Object.getOwnPropertyDescriptor%");if(r)try{r([],"length")}catch(e){r=null}e.exports=r},function(e,t,n){"use strict";var r=n(58)("%Symbol.match%",!0),o=n(349),i=n(227);e.exports=function(e){if(!e||"object"!=typeof e)return!1;if(r){var t=e[r];if(void 0!==t)return i(t)}return o(e)}},function(e,t,n){"use strict";var r,o,i,a,c=n(220)()&&"symbol"==typeof Symbol.toStringTag;if(c){r=Function.call.bind(Object.prototype.hasOwnProperty),o=Function.call.bind(RegExp.prototype.exec),i={};var s=function(){throw i};a={toString:s,valueOf:s},"symbol"==typeof Symbol.toPrimitive&&(a[Symbol.toPrimitive]=s)}var u=Object.prototype.toString,l=Object.getOwnPropertyDescriptor;e.exports=c?function(e){if(!e||"object"!=typeof e)return!1;var t=l(e,"lastIndex");if(!(t&&r(t,"value")))return!1;try{o(e,a)}catch(e){return e===i}}:function(e){return!(!e||"object"!=typeof e&&"function"!=typeof e)&&"[object RegExp]"===u.call(e)}},function(e,t,n){"use strict";var r=n(58)("%Object%"),o=n(231),i=r.preventExtensions,a=r.isExtensible;e.exports=i?function(e){return!o(e)&&a(e)}:function(e){return!o(e)}},function(e,t,n){"use strict";var r=n(58)("%TypeError%"),o=n(132),i=n(93);e.exports=function(e,t){if("Object"!==i(e))throw new r("Assertion failed: `O` must be an Object");if(!o(t))throw new r("Assertion failed: `P` must be a Property Key");return t in e}},function(e,t,n){"use strict";var r=n(58)("%Math%"),o=n(353),i=n(192),a=n(229),c=n(354),s=r.floor,u=r.abs;e.exports=function(e){var t=o(e);return i(t)?0:0!==t&&a(t)?c(t)*s(u(t)):t}},function(e,t,n){"use strict";e.exports=function(e){return+e}},function(e,t,n){"use strict";e.exports=function(e){return e>=0?1:-1}},function(e,t,n){"use strict";var r=n(58),o=r("%TypeError%"),i=r("%Number%"),a=r("%RegExp%"),c=r("%parseInt%"),s=n(144),u=n(356),l=n(231),d=s("String.prototype.slice"),f=u(/^0b[01]+$/i),p=u(/^0o[0-7]+$/i),b=u(/^[-+]0x[0-9a-f]+$/i),h=u(new a("["+["…","​","￾"].join("")+"]","g")),v=["\t\n\v\f\r   ᠎    ","          \u2028","\u2029\ufeff"].join(""),m=new RegExp("(^["+v+"]+)|(["+v+"]+$)","g"),y=s("String.prototype.replace"),g=n(357);e.exports=function e(t){var n=l(t)?t:g(t,i);if("symbol"==typeof n)throw new o("Cannot convert a Symbol value to a number");if("string"==typeof n){if(f(n))return e(c(d(n,2),2));if(p(n))return e(c(d(n,2),8));if(h(n)||b(n))return NaN;var r=function(e){return y(e,m,"")}(n);if(r!==n)return e(r)}return i(n)}},function(e,t,n){"use strict";var r=n(58)("RegExp.prototype.test"),o=n(188);e.exports=function(e){return o(r,e)}},function(e,t,n){"use strict";var r=n(358);e.exports=function(e){return arguments.length>1?r(e,arguments[1]):r(e)}},function(e,t,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator,o=n(359),i=n(228),a=n(234),c=n(193),s=function(e,t){if(null==e)throw new TypeError("Cannot call method on "+e);if("string"!=typeof t||"number"!==t&&"string"!==t)throw new TypeError('hint must be "string" or "number"');var n,r,a,c="string"===t?["toString","valueOf"]:["valueOf","toString"];for(a=0;a1&&(arguments[1]===String?n="string":arguments[1]===Number&&(n="number")),r&&(Symbol.toPrimitive?t=u(e,Symbol.toPrimitive):c(e)&&(t=Symbol.prototype.valueOf)),void 0!==t){var i=t.call(e,n);if(o(i))return i;throw new TypeError("unable to convert exotic object to primitive")}return"default"===n&&(a(e)||c(e))&&(n="string"),s(e,"default"===n?"number":n)}},function(e,t,n){"use strict";e.exports=function(e){return null===e||"function"!=typeof e&&"object"!=typeof e}},function(e,t,n){"use strict";(function(t){var r=t.Symbol,o=n(235);e.exports=function(){return"function"==typeof r&&("function"==typeof Symbol&&("symbol"==typeof r("foo")&&("symbol"==typeof Symbol("bar")&&o())))}}).call(this,n(131))},function(e,t,n){"use strict";var r=n(58),o=r("%String%"),i=r("%TypeError%");e.exports=function(e){if("symbol"==typeof e)throw new i("Cannot convert a Symbol value to a string");return o(e)}},function(e,t,n){"use strict";var r=n(58)("%Object%"),o=n(363);e.exports=function(e){return o(e),r(e)}},function(e,t,n){"use strict";e.exports=n(364)},function(e,t,n){"use strict";var r=n(58)("%TypeError%");e.exports=function(e,t){if(null==e)throw new r(t||"Cannot call method on "+e);return e}},function(e,t,n){"use strict";var r=n(103),o=n(236);e.exports=function(){var e=o();return r(Array.prototype,{flat:e},{flat:function(){return Array.prototype.flat!==e}}),e}},function(e,t,n){"use strict";(function(t){var r=n(103),o=n(193),i="__ global cache key __";"function"==typeof Symbol&&o(Symbol("foo"))&&"function"==typeof Symbol.for&&(i=Symbol.for(i));var a=function(){return!0},c=function(){if(!t[i]){var e={};e[i]={};var n={};n[i]=a,r(t,e,n)}return t[i]},s=c(),u=function(e){return o(e)?Symbol.prototype.valueOf.call(e):typeof e+" | "+String(e)},l=function(e){if(!function(e){return null===e||"object"!=typeof e&&"function"!=typeof e}(e))throw new TypeError("key must not be an object")},d={clear:function(){delete t[i],s=c()},delete:function(e){return l(e),delete s[u(e)],!d.has(e)},get:function(e){return l(e),s[u(e)]},has:function(e){return l(e),u(e)in s},set:function(e,t){l(e);var n=u(e),o={};o[n]=t;var i={};return i[n]=a,r(s,o,i),d.has(e)},setIfMissingThenGet:function(e,t){if(d.has(e))return d.get(e);var n=t();return d.set(e,n),n}};e.exports=d}).call(this,n(131))},function(e,t){Object.defineProperty(t,"__esModule",{value:!0});t.GLOBAL_CACHE_KEY="reactWithStylesInterfaceCSS",t.MAX_SPECIFICITY=20},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return(e.length>0?String(e)+"__":"")+String(t)}},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){for(var t=[],n=!1,r={},o=0;o>",baseInvalidMessage:"Invalid "};function r(e){if("function"!=typeof e)throw new Error(n.invalidPropValidator);var t=e.bind(null,!1,null);return t.isRequired=e.bind(null,!0,null),t.withPredicate=function(t){if("function"!=typeof t)throw new Error(n.invalidPredicate);var r=e.bind(null,!1,t);return r.isRequired=e.bind(null,!0,t),r},t}function o(e,t,r){return new Error("The prop `"+e+"` "+n.requiredCore+" in `"+t+"`, but its value is `"+r+"`.")}e.exports={constructPropValidatorVariations:r,createMomentChecker:function(e,t,i,a){return r((function(r,c,s,u,l,d,f){var p=s[u],b=typeof p,h=function(e,t,n,r){var i=void 0===r,a=null===r;if(e){if(i)return o(n,t,"undefined");if(a)return o(n,t,"null")}return i||a?null:-1}(r,l=l||n.anonymousMessage,f=f||u,p);if(-1!==h)return h;if(t&&!t(p))return new Error(n.invalidTypeCore+": `"+u+"` of type `"+b+"` supplied to `"+l+"`, expected `"+e+"`.");if(!i(p))return new Error(n.baseInvalidMessage+d+" `"+u+"` of type `"+b+"` supplied to `"+l+"`, expected `"+a+"`.");if(c&&!c(p)){var v=c.name||n.anonymousMessage;return new Error(n.baseInvalidMessage+d+" `"+u+"` of type `"+b+"` supplied to `"+l+"`. "+n.predicateFailureCore+" `"+v+"`.")}return null}))},messages:n}},function(e,t,n){"use strict";function r(){return null}function o(){return r}r.isRequired=r,e.exports={and:o,between:o,booleanSome:o,childrenHavePropXorChildren:o,childrenOf:o,childrenOfType:o,childrenSequenceOf:o,componentWithName:o,disallowedIf:o,elementType:o,empty:o,explicitNull:o,forbidExtraProps:Object,integer:o,keysOf:o,mutuallyExclusiveProps:o,mutuallyExclusiveTrueProps:o,nChildren:o,nonNegativeInteger:r,nonNegativeNumber:o,numericString:o,object:o,or:o,predicate:o,range:o,ref:o,requiredBy:o,restrictedProp:o,sequenceOf:o,shape:o,stringEndsWith:o,stringStartsWith:o,uniqueArray:o,uniqueArrayOf:o,valuesOf:o,withShape:o}},function(e,t,n){"use strict";e.exports=n(376)},function(e,t,n){"use strict";var r=n(377),o=n(247),i=o(o({},r),{SameValueNonNumber:function(e,t){if("number"==typeof e||typeof e!=typeof t)throw new TypeError("SameValueNonNumber requires two non-number values of the same type.");return this.SameValue(e,t)}});e.exports=i},function(e,t,n){"use strict";var r=n(94),o=n(378),i=n(187),a=n(195),c=a("%TypeError%"),s=a("%SyntaxError%"),u=a("%Array%"),l=a("%String%"),d=a("%Object%"),f=a("%Number%"),p=a("%Symbol%",!0),b=a("%RegExp%"),h=!!p,v=n(244),m=n(245),y=n(246),g=f.MAX_SAFE_INTEGER||Math.pow(2,53)-1,O=n(247),j=n(248),w=n(249),_=n(380),k=parseInt,S=n(120),E=S.call(Function.call,u.prototype.slice),x=S.call(Function.call,l.prototype.slice),C=S.call(Function.call,b.prototype.test,/^0b[01]+$/i),P=S.call(Function.call,b.prototype.test,/^0o[0-7]+$/i),D=S.call(Function.call,b.prototype.exec),M=new b("["+["…","​","￾"].join("")+"]","g"),T=S.call(Function.call,b.prototype.test,M),I=S.call(Function.call,b.prototype.test,/^[-+]0x[0-9a-f]+$/i),R=S.call(Function.call,l.prototype.charCodeAt),N=S.call(Function.call,Object.prototype.toString),A=S.call(Function.call,a("%NumberPrototype%").valueOf),L=S.call(Function.call,a("%BooleanPrototype%").valueOf),F=S.call(Function.call,a("%StringPrototype%").valueOf),z=S.call(Function.call,a("%DatePrototype%").valueOf),B=Math.floor,H=Math.abs,V=Object.create,K=d.getOwnPropertyDescriptor,W=d.isExtensible,U=d.defineProperty,G=["\t\n\v\f\r   ᠎    ","          \u2028","\u2029\ufeff"].join(""),$=new RegExp("(^["+G+"]+)|(["+G+"]+$)","g"),q=S.call(Function.call,l.prototype.replace),Y=n(381),Z=n(383),X=O(O({},Y),{Call:function(e,t){var n=arguments.length>2?arguments[2]:[];if(!this.IsCallable(e))throw new c(e+" is not a function");return e.apply(t,n)},ToPrimitive:o,ToNumber:function(e){var t=_(e)?e:o(e,f);if("symbol"==typeof t)throw new c("Cannot convert a Symbol value to a number");if("string"==typeof t){if(C(t))return this.ToNumber(k(x(t,2),2));if(P(t))return this.ToNumber(k(x(t,2),8));if(T(t)||I(t))return NaN;var n=function(e){return q(e,$,"")}(t);if(n!==t)return this.ToNumber(n)}return f(t)},ToInt16:function(e){var t=this.ToUint16(e);return t>=32768?t-65536:t},ToInt8:function(e){var t=this.ToUint8(e);return t>=128?t-256:t},ToUint8:function(e){var t=this.ToNumber(e);if(m(t)||0===t||!y(t))return 0;var n=j(t)*B(H(t));return w(n,256)},ToUint8Clamp:function(e){var t=this.ToNumber(e);if(m(t)||t<=0)return 0;if(t>=255)return 255;var n=B(e);return n+.5g?g:t},CanonicalNumericIndexString:function(e){if("[object String]"!==N(e))throw new c("must be a string");if("-0"===e)return-0;var t=this.ToNumber(e);return this.SameValue(this.ToString(t),e)?t:void 0},RequireObjectCoercible:Y.CheckObjectCoercible,IsArray:u.isArray||function(e){return"[object Array]"===N(e)},IsConstructor:function(e){return"function"==typeof e&&!!e.prototype},IsExtensible:Object.preventExtensions?function(e){return!_(e)&&W(e)}:function(e){return!0},IsInteger:function(e){if("number"!=typeof e||m(e)||!y(e))return!1;var t=H(e);return B(t)===t},IsPropertyKey:function(e){return"string"==typeof e||"symbol"==typeof e},IsRegExp:function(e){if(!e||"object"!=typeof e)return!1;if(h){var t=e[p.match];if(void 0!==t)return Y.ToBoolean(t)}return Z(e)},SameValueZero:function(e,t){return e===t||m(e)&&m(t)},GetV:function(e,t){if(!this.IsPropertyKey(t))throw new c("Assertion failed: IsPropertyKey(P) is not true");return this.ToObject(e)[t]},GetMethod:function(e,t){if(!this.IsPropertyKey(t))throw new c("Assertion failed: IsPropertyKey(P) is not true");var n=this.GetV(e,t);if(null!=n){if(!this.IsCallable(n))throw new c(t+"is not a function");return n}},Get:function(e,t){if("Object"!==this.Type(e))throw new c("Assertion failed: Type(O) is not Object");if(!this.IsPropertyKey(t))throw new c("Assertion failed: IsPropertyKey(P) is not true");return e[t]},Type:function(e){return"symbol"==typeof e?"Symbol":Y.Type(e)},SpeciesConstructor:function(e,t){if("Object"!==this.Type(e))throw new c("Assertion failed: Type(O) is not Object");var n=e.constructor;if(void 0===n)return t;if("Object"!==this.Type(n))throw new c("O.constructor is not an Object");var r=h&&p.species?n[p.species]:void 0;if(null==r)return t;if(this.IsConstructor(r))return r;throw new c("no constructor found")},CompletePropertyDescriptor:function(e){return v(this,"Property Descriptor","Desc",e),this.IsGenericDescriptor(e)||this.IsDataDescriptor(e)?(r(e,"[[Value]]")||(e["[[Value]]"]=void 0),r(e,"[[Writable]]")||(e["[[Writable]]"]=!1)):(r(e,"[[Get]]")||(e["[[Get]]"]=void 0),r(e,"[[Set]]")||(e["[[Set]]"]=void 0)),r(e,"[[Enumerable]]")||(e["[[Enumerable]]"]=!1),r(e,"[[Configurable]]")||(e["[[Configurable]]"]=!1),e},Set:function(e,t,n,r){if("Object"!==this.Type(e))throw new c("O must be an Object");if(!this.IsPropertyKey(t))throw new c("P must be a Property Key");if("Boolean"!==this.Type(r))throw new c("Throw must be a Boolean");if(r)return e[t]=n,!0;try{e[t]=n}catch(e){return!1}},HasOwnProperty:function(e,t){if("Object"!==this.Type(e))throw new c("O must be an Object");if(!this.IsPropertyKey(t))throw new c("P must be a Property Key");return r(e,t)},HasProperty:function(e,t){if("Object"!==this.Type(e))throw new c("O must be an Object");if(!this.IsPropertyKey(t))throw new c("P must be a Property Key");return t in e},IsConcatSpreadable:function(e){if("Object"!==this.Type(e))return!1;if(h&&"symbol"==typeof p.isConcatSpreadable){var t=this.Get(e,Symbol.isConcatSpreadable);if(void 0!==t)return this.ToBoolean(t)}return this.IsArray(e)},Invoke:function(e,t){if(!this.IsPropertyKey(t))throw new c("P must be a Property Key");var n=E(arguments,2),r=this.GetV(e,t);return this.Call(r,e,n)},GetIterator:function(e,t){if(!h)throw new SyntaxError("ES.GetIterator depends on native iterator support.");var n=t;arguments.length<2&&(n=this.GetMethod(e,p.iterator));var r=this.Call(n,e);if("Object"!==this.Type(r))throw new c("iterator must return an object");return r},IteratorNext:function(e,t){var n=this.Invoke(e,"next",arguments.length<2?[]:[t]);if("Object"!==this.Type(n))throw new c("iterator next must return an object");return n},IteratorComplete:function(e){if("Object"!==this.Type(e))throw new c("Assertion failed: Type(iterResult) is not Object");return this.ToBoolean(this.Get(e,"done"))},IteratorValue:function(e){if("Object"!==this.Type(e))throw new c("Assertion failed: Type(iterResult) is not Object");return this.Get(e,"value")},IteratorStep:function(e){var t=this.IteratorNext(e);return!0!==this.IteratorComplete(t)&&t},IteratorClose:function(e,t){if("Object"!==this.Type(e))throw new c("Assertion failed: Type(iterator) is not Object");if(!this.IsCallable(t))throw new c("Assertion failed: completion is not a thunk for a Completion Record");var n,r=t,o=this.GetMethod(e,"return");if(void 0===o)return r();try{var i=this.Call(o,e,[])}catch(e){throw n=r(),r=null,e}if(n=r(),r=null,"Object"!==this.Type(i))throw new c("iterator .return must return an object");return n},CreateIterResultObject:function(e,t){if("Boolean"!==this.Type(t))throw new c("Assertion failed: Type(done) is not Boolean");return{value:e,done:t}},RegExpExec:function(e,t){if("Object"!==this.Type(e))throw new c("R must be an Object");if("String"!==this.Type(t))throw new c("S must be a String");var n=this.Get(e,"exec");if(this.IsCallable(n)){var r=this.Call(n,e,[t]);if(null===r||"Object"===this.Type(r))return r;throw new c('"exec" method must return `null` or an Object')}return D(e,t)},ArraySpeciesCreate:function(e,t){if(!this.IsInteger(t)||t<0)throw new c("Assertion failed: length must be an integer >= 0");var n,r=0===t?0:t;if(this.IsArray(e)&&(n=this.Get(e,"constructor"),"Object"===this.Type(n)&&h&&p.species&&null===(n=this.Get(n,p.species))&&(n=void 0)),void 0===n)return u(r);if(!this.IsConstructor(n))throw new c("C must be a constructor");return new n(r)},CreateDataProperty:function(e,t,n){if("Object"!==this.Type(e))throw new c("Assertion failed: Type(O) is not Object");if(!this.IsPropertyKey(t))throw new c("Assertion failed: IsPropertyKey(P) is not true");var r=K(e,t),o=r||"function"!=typeof W||W(e);return!(!(!r||r.writable&&r.configurable)||!o)&&(U(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}),!0)},CreateDataPropertyOrThrow:function(e,t,n){if("Object"!==this.Type(e))throw new c("Assertion failed: Type(O) is not Object");if(!this.IsPropertyKey(t))throw new c("Assertion failed: IsPropertyKey(P) is not true");var r=this.CreateDataProperty(e,t,n);if(!r)throw new c("unable to create data property");return r},ObjectCreate:function(e,t){if(null!==e&&"Object"!==this.Type(e))throw new c("Assertion failed: proto must be null or an object");var n=arguments.length<2?[]:t;if(n.length>0)throw new s("es-abstract does not yet support internal slots");if(null===e&&!V)throw new s("native Object.create support is required to create null objects");return V(e)},AdvanceStringIndex:function(e,t,n){if("String"!==this.Type(e))throw new c("S must be a String");if(!this.IsInteger(t)||t<0||t>g)throw new c("Assertion failed: length must be an integer >= 0 and <= 2**53");if("Boolean"!==this.Type(n))throw new c("Assertion failed: unicode must be a Boolean");if(!n)return t+1;if(t+1>=e.length)return t+1;var r=R(e,t);if(r<55296||r>56319)return t+1;var o=R(e,t+1);return o<56320||o>57343?t+1:t+2},CreateMethodProperty:function(e,t,n){if("Object"!==this.Type(e))throw new c("Assertion failed: Type(O) is not Object");if(!this.IsPropertyKey(t))throw new c("Assertion failed: IsPropertyKey(P) is not true");return!!U(e,t,{configurable:!0,enumerable:!1,value:n,writable:!0})},DefinePropertyOrThrow:function(e,t,n){if("Object"!==this.Type(e))throw new c("Assertion failed: Type(O) is not Object");if(!this.IsPropertyKey(t))throw new c("Assertion failed: IsPropertyKey(P) is not true");return!!U(e,t,n)},DeletePropertyOrThrow:function(e,t){if("Object"!==this.Type(e))throw new c("Assertion failed: Type(O) is not Object");if(!this.IsPropertyKey(t))throw new c("Assertion failed: IsPropertyKey(P) is not true");var n=delete e[t];if(!n)throw new TypeError("Attempt to delete property failed.");return n},EnumerableOwnNames:function(e){if("Object"!==this.Type(e))throw new c("Assertion failed: Type(O) is not Object");return i(e)},thisNumberValue:function(e){return"Number"===this.Type(e)?e:A(e)},thisBooleanValue:function(e){return"Boolean"===this.Type(e)?e:L(e)},thisStringValue:function(e){return"String"===this.Type(e)?e:F(e)},thisTimeValue:function(e){return z(e)}});delete X.CheckObjectCoercible,e.exports=X},function(e,t,n){"use strict";e.exports=n(379)},function(e,t,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator,o=n(243),i=n(194),a=n(234),c=n(193),s=function(e,t){if(null==e)throw new TypeError("Cannot call method on "+e);if("string"!=typeof t||"number"!==t&&"string"!==t)throw new TypeError('hint must be "string" or "number"');var n,r,a,c="string"===t?["toString","valueOf"]:["valueOf","toString"];for(a=0;a1&&(arguments[1]===String?n="string":arguments[1]===Number&&(n="number")),r&&(Symbol.toPrimitive?t=u(e,Symbol.toPrimitive):c(e)&&(t=Symbol.prototype.valueOf)),void 0!==t){var i=t.call(e,n);if(o(i))return i;throw new TypeError("unable to convert exotic object to primitive")}return"default"===n&&(a(e)||c(e))&&(n="string"),s(e,"default"===n?"number":n)}},function(e,t){e.exports=function(e){return null===e||"function"!=typeof e&&"object"!=typeof e}},function(e,t,n){"use strict";var r=n(195),o=r("%Object%"),i=r("%TypeError%"),a=r("%String%"),c=n(244),s=n(245),u=n(246),l=n(248),d=n(249),f=n(194),p=n(382),b=n(94),h={ToPrimitive:p,ToBoolean:function(e){return!!e},ToNumber:function(e){return+e},ToInteger:function(e){var t=this.ToNumber(e);return s(t)?0:0!==t&&u(t)?l(t)*Math.floor(Math.abs(t)):t},ToInt32:function(e){return this.ToNumber(e)>>0},ToUint32:function(e){return this.ToNumber(e)>>>0},ToUint16:function(e){var t=this.ToNumber(e);if(s(t)||0===t||!u(t))return 0;var n=l(t)*Math.floor(Math.abs(t));return d(n,65536)},ToString:function(e){return a(e)},ToObject:function(e){return this.CheckObjectCoercible(e),o(e)},CheckObjectCoercible:function(e,t){if(null==e)throw new i(t||"Cannot call method on "+e);return e},IsCallable:f,SameValue:function(e,t){return e===t?0!==e||1/e==1/t:s(e)&&s(t)},Type:function(e){return null===e?"Null":void 0===e?"Undefined":"function"==typeof e||"object"==typeof e?"Object":"number"==typeof e?"Number":"boolean"==typeof e?"Boolean":"string"==typeof e?"String":void 0},IsPropertyDescriptor:function(e){if("Object"!==this.Type(e))return!1;var t={"[[Configurable]]":!0,"[[Enumerable]]":!0,"[[Get]]":!0,"[[Set]]":!0,"[[Value]]":!0,"[[Writable]]":!0};for(var n in e)if(b(e,n)&&!t[n])return!1;var r=b(e,"[[Value]]"),o=b(e,"[[Get]]")||b(e,"[[Set]]");if(r&&o)throw new i("Property Descriptors may not be both accessor and data descriptors");return!0},IsAccessorDescriptor:function(e){return void 0!==e&&(c(this,"Property Descriptor","Desc",e),!(!b(e,"[[Get]]")&&!b(e,"[[Set]]")))},IsDataDescriptor:function(e){return void 0!==e&&(c(this,"Property Descriptor","Desc",e),!(!b(e,"[[Value]]")&&!b(e,"[[Writable]]")))},IsGenericDescriptor:function(e){return void 0!==e&&(c(this,"Property Descriptor","Desc",e),!this.IsAccessorDescriptor(e)&&!this.IsDataDescriptor(e))},FromPropertyDescriptor:function(e){if(void 0===e)return e;if(c(this,"Property Descriptor","Desc",e),this.IsDataDescriptor(e))return{value:e["[[Value]]"],writable:!!e["[[Writable]]"],enumerable:!!e["[[Enumerable]]"],configurable:!!e["[[Configurable]]"]};if(this.IsAccessorDescriptor(e))return{get:e["[[Get]]"],set:e["[[Set]]"],enumerable:!!e["[[Enumerable]]"],configurable:!!e["[[Configurable]]"]};throw new i("FromPropertyDescriptor must be called with a fully populated Property Descriptor")},ToPropertyDescriptor:function(e){if("Object"!==this.Type(e))throw new i("ToPropertyDescriptor requires an object");var t={};if(b(e,"enumerable")&&(t["[[Enumerable]]"]=this.ToBoolean(e.enumerable)),b(e,"configurable")&&(t["[[Configurable]]"]=this.ToBoolean(e.configurable)),b(e,"value")&&(t["[[Value]]"]=e.value),b(e,"writable")&&(t["[[Writable]]"]=this.ToBoolean(e.writable)),b(e,"get")){var n=e.get;if(void 0!==n&&!this.IsCallable(n))throw new TypeError("getter must be a function");t["[[Get]]"]=n}if(b(e,"set")){var r=e.set;if(void 0!==r&&!this.IsCallable(r))throw new i("setter must be a function");t["[[Set]]"]=r}if((b(t,"[[Get]]")||b(t,"[[Set]]"))&&(b(t,"[[Value]]")||b(t,"[[Writable]]")))throw new i("Invalid property descriptor. Cannot both specify accessors and a value or writable attribute");return t}};e.exports=h},function(e,t,n){"use strict";var r=Object.prototype.toString,o=n(243),i=n(194),a=function(e){var t;if((t=arguments.length>1?arguments[1]:"[object Date]"===r.call(e)?String:Number)===String||t===Number){var n,a,c=t===String?["toString","valueOf"]:["valueOf","toString"];for(a=0;a1?a(e,arguments[1]):a(e)}},function(e,t,n){"use strict";var r=n(94),o=RegExp.prototype.exec,i=Object.getOwnPropertyDescriptor,a=Object.prototype.toString,c="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;e.exports=function(e){if(!e||"object"!=typeof e)return!1;if(!c)return"[object RegExp]"===a.call(e);var t=i(e,"lastIndex");return!(!t||!r(t,"value"))&&function(e){try{var t=e.lastIndex;return e.lastIndex=0,o.call(e),!0}catch(e){return!1}finally{e.lastIndex=t}}(e)}},function(e,t,n){"use strict";var r=n(250),o=n(103);e.exports=function(){var e=r();return o(Object,{values:e},{values:function(){return Object.values!==e}}),e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n,i){if(!r.default.isMoment(e))return{};for(var a={},c=i?e.clone():e.clone().subtract(1,"month"),s=0;s<(i?t:t+2);s+=1){var u=[],l=c.clone(),d=l.clone().startOf("month").hour(12),f=l.clone().endOf("month").hour(12),p=d.clone();if(n)for(var b=0;b0&&!o.call(e,0))for(var h=0;h0)for(var v=0;v1&&"boolean"!=typeof t)throw new a('"allowMissing" argument must be a boolean');var n=S(e),r=n.length>0?n[0]:"",o=E("%"+r+"%",t),i=o.name,s=o.value,u=!1,l=o.alias;l&&(r=l[0],j(n,O([0,1],l)));for(var d=1,f=!0;d=n.length){var b=c(s,p);if(f=!!b,!t&&!(p in s))throw new a("base intrinsic for "+e+" exists, but the property is not available.");s=f&&"get"in b&&!("originalValue"in b.get)?b.get:s[p]}else f=g(s,p),s=s[p];f&&!u&&(v[i]=s)}}return s}},function(e,t,n){"use strict";(function(t){var r=t.Symbol,o=n(339);e.exports=function(){return"function"==typeof r&&("function"==typeof Symbol&&("symbol"==typeof r("foo")&&("symbol"==typeof Symbol("bar")&&o())))}}).call(this,n(121))},function(e,t,n){"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),n=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(t in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var r=Object.getOwnPropertySymbols(e);if(1!==r.length||r[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(e,t);if(42!==o.value||!0!==o.enumerable)return!1}return!0}},function(e,t,n){"use strict";var r=n(58),o=r("%Array%"),a=r("%Symbol.species%",!0),i=r("%TypeError%"),c=n(162),s=n(189),u=n(345),l=n(350),d=n(90);e.exports=function(e,t){if(!l(t)||t<0)throw new i("Assertion failed: length must be an integer >= 0");var n,r=0===t?0:t;if(s(e)&&(n=c(e,"constructor"),a&&"Object"===d(n)&&null===(n=c(n,a))&&(n=void 0)),void 0===n)return o(r);if(!u(n))throw new i("C must be a constructor");return new n(r)}},function(e,t,n){"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),n=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(t in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var r=Object.getOwnPropertySymbols(e);if(1!==r.length||r[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(e,t);if(42!==o.value||!0!==o.enumerable)return!1}return!0}},function(e,t,n){var r="function"==typeof Map&&Map.prototype,o=Object.getOwnPropertyDescriptor&&r?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,a=r&&o&&"function"==typeof o.get?o.get:null,i=r&&Map.prototype.forEach,c="function"==typeof Set&&Set.prototype,s=Object.getOwnPropertyDescriptor&&c?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,u=c&&s&&"function"==typeof s.get?s.get:null,l=c&&Set.prototype.forEach,d="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,f="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,p=Boolean.prototype.valueOf,b=Object.prototype.toString,h=Function.prototype.toString,v=String.prototype.match,m="function"==typeof BigInt?BigInt.prototype.valueOf:null,y=n(343).custom,g=y&&k(y)?y:null;function O(e,t,n){var r="double"===(n.quoteStyle||t)?'"':"'";return r+e+r}function j(e){return String(e).replace(/"/g,""")}function w(e){return"[object Array]"===E(e)}function k(e){return"[object Symbol]"===E(e)}e.exports=function e(t,n,r,o){var c=n||{};if(S(c,"quoteStyle")&&"single"!==c.quoteStyle&&"double"!==c.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(S(c,"maxStringLength")&&("number"==typeof c.maxStringLength?c.maxStringLength<0&&c.maxStringLength!==1/0:null!==c.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var s=!S(c,"customInspect")||c.customInspect;if("boolean"!=typeof s)throw new TypeError('option "customInspect", if provided, must be `true` or `false`');if(S(c,"indent")&&null!==c.indent&&"\t"!==c.indent&&!(parseInt(c.indent,10)===c.indent&&c.indent>0))throw new TypeError('options "indent" must be "\\t", an integer > 0, or `null`');if(void 0===t)return"undefined";if(null===t)return"null";if("boolean"==typeof t)return t?"true":"false";if("string"==typeof t)return function e(t,n){if(t.length>n.maxStringLength){var r=t.length-n.maxStringLength,o="... "+r+" more character"+(r>1?"s":"");return e(t.slice(0,n.maxStringLength),n)+o}return O(t.replace(/(['\\])/g,"\\$1").replace(/[\x00-\x1f]/g,C),"single",n)}(t,c);if("number"==typeof t)return 0===t?1/0/t>0?"0":"-0":String(t);if("bigint"==typeof t)return String(t)+"n";var b=void 0===c.depth?5:c.depth;if(void 0===r&&(r=0),r>=b&&b>0&&"object"==typeof t)return w(t)?"[Array]":"[Object]";var y=function(e,t){var n;if("\t"===e.indent)n="\t";else{if(!("number"==typeof e.indent&&e.indent>0))return null;n=Array(e.indent+1).join(" ")}return{base:n,prev:Array(t+1).join(n)}}(c,r);if(void 0===o)o=[];else if(x(o,t)>=0)return"[Circular]";function _(t,n,a){if(n&&(o=o.slice()).push(n),a){var i={depth:c.depth};return S(c,"quoteStyle")&&(i.quoteStyle=c.quoteStyle),e(t,i,r+1,o)}return e(t,c,r+1,o)}if("function"==typeof t){var R=function(e){if(e.name)return e.name;var t=v.call(h.call(e),/^function\s*([\w$]+)/);if(t)return t[1];return null}(t);return"[Function"+(R?": "+R:" (anonymous)")+"]"}if(k(t)){var N=Symbol.prototype.toString.call(t);return"object"==typeof t?P(N):N}if(function(e){if(!e||"object"!=typeof e)return!1;if("undefined"!=typeof HTMLElement&&e instanceof HTMLElement)return!0;return"string"==typeof e.nodeName&&"function"==typeof e.getAttribute}(t)){for(var A="<"+String(t.nodeName).toLowerCase(),F=t.attributes||[],L=0;L"}if(w(t)){if(0===t.length)return"[]";var z=I(t,_);return y&&!function(e){for(var t=0;t=0)return!1;return!0}(z)?"["+T(z,y)+"]":"[ "+z.join(", ")+" ]"}if(function(e){return"[object Error]"===E(e)}(t)){var B=I(t,_);return 0===B.length?"["+String(t)+"]":"{ ["+String(t)+"] "+B.join(", ")+" }"}if("object"==typeof t&&s){if(g&&"function"==typeof t[g])return t[g]();if("function"==typeof t.inspect)return t.inspect()}if(function(e){if(!a||!e||"object"!=typeof e)return!1;try{a.call(e);try{u.call(e)}catch(e){return!0}return e instanceof Map}catch(e){}return!1}(t)){var H=[];return i.call(t,(function(e,n){H.push(_(n,t,!0)+" => "+_(e,t))})),M("Map",a.call(t),H,y)}if(function(e){if(!u||!e||"object"!=typeof e)return!1;try{u.call(e);try{a.call(e)}catch(e){return!0}return e instanceof Set}catch(e){}return!1}(t)){var V=[];return l.call(t,(function(e){V.push(_(e,t))})),M("Set",u.call(t),V,y)}if(function(e){if(!d||!e||"object"!=typeof e)return!1;try{d.call(e,d);try{f.call(e,f)}catch(e){return!0}return e instanceof WeakMap}catch(e){}return!1}(t))return D("WeakMap");if(function(e){if(!f||!e||"object"!=typeof e)return!1;try{f.call(e,f);try{d.call(e,d)}catch(e){return!0}return e instanceof WeakSet}catch(e){}return!1}(t))return D("WeakSet");if(function(e){return"[object Number]"===E(e)}(t))return P(_(Number(t)));if(function(e){return"[object BigInt]"===E(e)}(t))return P(_(m.call(t)));if(function(e){return"[object Boolean]"===E(e)}(t))return P(p.call(t));if(function(e){return"[object String]"===E(e)}(t))return P(_(String(t)));if(!function(e){return"[object Date]"===E(e)}(t)&&!function(e){return"[object RegExp]"===E(e)}(t)){var W=I(t,_);return 0===W.length?"{}":y?"{"+T(W,y)+"}":"{ "+W.join(", ")+" }"}return String(t)};var _=Object.prototype.hasOwnProperty||function(e){return e in this};function S(e,t){return _.call(e,t)}function E(e){return b.call(e)}function x(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;n5&&(h=arguments[5]);for(var v=p,m=0;m0&&(j=u(O)),j){var w=l(O);v=e(t,O,w,v,b-1)}else{if(v>=o)throw new r("index too large");i(t,d(v),O),v+=1}}m+=1}return v}},function(e,t,n){"use strict";var r=n(58),o=n(144),a=r("%Reflect.apply%",!0)||o("%Function.prototype.apply%");e.exports=function(e,t){var n=arguments.length>2?arguments[2]:[];return a(e,t,n)}},function(e,t,n){"use strict";var r=n(58)("%TypeError%"),o=n(356),a=n(132),i=n(90);e.exports=function(e,t,n){if("Object"!==i(e))throw new r("Assertion failed: Type(O) is not Object");if(!a(t))throw new r("Assertion failed: IsPropertyKey(P) is not true");var c=o(e,t,n);if(!c)throw new r("unable to create data property");return c}},function(e,t,n){"use strict";var r=n(58)("%TypeError%"),o=n(222),a=n(223),i=n(357),c=n(224),s=n(361),u=n(132),l=n(225),d=n(90);e.exports=function(e,t,n){if("Object"!==d(e))throw new r("Assertion failed: Type(O) is not Object");if(!u(t))throw new r("Assertion failed: IsPropertyKey(P) is not true");var f=i(e,t),p=!f||s(e);return!(f&&(!f["[[Writable]]"]||!f["[[Configurable]]"])||!p)&&o(c,l,a,e,t,{"[[Configurable]]":!0,"[[Enumerable]]":!0,"[[Value]]":n,"[[Writable]]":!0})}},function(e,t,n){"use strict";var r=n(58),o=n(358),a=r("%TypeError%"),i=n(144)("Object.prototype.propertyIsEnumerable"),c=n(87),s=n(189),u=n(132),l=n(359),d=n(226),f=n(90);e.exports=function(e,t){if("Object"!==f(e))throw new a("Assertion failed: O must be an Object");if(!u(t))throw new a("Assertion failed: P must be a Property Key");if(c(e,t)){if(!o){var n=s(e)&&"length"===t,r=l(e)&&"lastIndex"===t;return{"[[Configurable]]":!(n||r),"[[Enumerable]]":i(e,t),"[[Value]]":e[t],"[[Writable]]":!0}}return d(o(e,t))}}},function(e,t,n){"use strict";var r=n(58)("%Object.getOwnPropertyDescriptor%");if(r)try{r([],"length")}catch(e){r=null}e.exports=r},function(e,t,n){"use strict";var r=n(58)("%Symbol.match%",!0),o=n(360),a=n(227);e.exports=function(e){if(!e||"object"!=typeof e)return!1;if(r){var t=e[r];if(void 0!==t)return a(t)}return o(e)}},function(e,t,n){"use strict";var r,o,a,i,c=n(220)()&&"symbol"==typeof Symbol.toStringTag;if(c){r=Function.call.bind(Object.prototype.hasOwnProperty),o=Function.call.bind(RegExp.prototype.exec),a={};var s=function(){throw a};i={toString:s,valueOf:s},"symbol"==typeof Symbol.toPrimitive&&(i[Symbol.toPrimitive]=s)}var u=Object.prototype.toString,l=Object.getOwnPropertyDescriptor;e.exports=c?function(e){if(!e||"object"!=typeof e)return!1;var t=l(e,"lastIndex");if(!(t&&r(t,"value")))return!1;try{o(e,i)}catch(e){return e===a}}:function(e){return!(!e||"object"!=typeof e&&"function"!=typeof e)&&"[object RegExp]"===u.call(e)}},function(e,t,n){"use strict";var r=n(58)("%Object%"),o=n(231),a=r.preventExtensions,i=r.isExtensible;e.exports=a?function(e){return!o(e)&&i(e)}:function(e){return!o(e)}},function(e,t,n){"use strict";var r=n(58)("%TypeError%"),o=n(132),a=n(90);e.exports=function(e,t){if("Object"!==a(e))throw new r("Assertion failed: `O` must be an Object");if(!o(t))throw new r("Assertion failed: `P` must be a Property Key");return t in e}},function(e,t,n){"use strict";var r=n(58)("%TypeError%"),o=n(162),a=n(232),i=n(90);e.exports=function(e){if("Object"!==i(e))throw new r("Assertion failed: `obj` must be an Object");return a(o(e,"length"))}},function(e,t,n){"use strict";var r=n(365),o=n(366),a=n(367),i=n(191),c=n(229),s=n(368);e.exports=function(e){var t=a(e);return i(t)?0:0!==t&&c(t)?s(t)*o(r(t)):t}},function(e,t,n){"use strict";var r=n(58)("%Math.abs%");e.exports=function(e){return r(e)}},function(e,t,n){"use strict";var r=Math.floor;e.exports=function(e){return r(e)}},function(e,t,n){"use strict";e.exports=function(e){return+e}},function(e,t,n){"use strict";e.exports=function(e){return e>=0?1:-1}},function(e,t,n){"use strict";var r=n(58),o=r("%TypeError%"),a=r("%Number%"),i=r("%RegExp%"),c=r("%parseInt%"),s=n(144),u=n(370),l=n(231),d=s("String.prototype.slice"),f=u(/^0b[01]+$/i),p=u(/^0o[0-7]+$/i),b=u(/^[-+]0x[0-9a-f]+$/i),h=u(new i("["+["…","​","￾"].join("")+"]","g")),v=["\t\n\v\f\r   ᠎    ","          \u2028","\u2029\ufeff"].join(""),m=new RegExp("(^["+v+"]+)|(["+v+"]+$)","g"),y=s("String.prototype.replace"),g=n(371);e.exports=function e(t){var n=l(t)?t:g(t,a);if("symbol"==typeof n)throw new o("Cannot convert a Symbol value to a number");if("string"==typeof n){if(f(n))return e(c(d(n,2),2));if(p(n))return e(c(d(n,2),8));if(h(n)||b(n))return NaN;var r=function(e){return y(e,m,"")}(n);if(r!==n)return e(r)}return a(n)}},function(e,t,n){"use strict";var r=n(58)("RegExp.prototype.test"),o=n(221);e.exports=function(e){return o(r,e)}},function(e,t,n){"use strict";var r=n(372);e.exports=function(e){return arguments.length>1?r(e,arguments[1]):r(e)}},function(e,t,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator,o=n(373),a=n(228),i=n(234),c=n(192),s=function(e,t){if(null==e)throw new TypeError("Cannot call method on "+e);if("string"!=typeof t||"number"!==t&&"string"!==t)throw new TypeError('hint must be "string" or "number"');var n,r,i,c="string"===t?["toString","valueOf"]:["valueOf","toString"];for(i=0;i1&&(arguments[1]===String?n="string":arguments[1]===Number&&(n="number")),r&&(Symbol.toPrimitive?t=u(e,Symbol.toPrimitive):c(e)&&(t=Symbol.prototype.valueOf)),void 0!==t){var a=t.call(e,n);if(o(a))return a;throw new TypeError("unable to convert exotic object to primitive")}return"default"===n&&(i(e)||c(e))&&(n="string"),s(e,"default"===n?"number":n)}},function(e,t,n){"use strict";e.exports=function(e){return null===e||"function"!=typeof e&&"object"!=typeof e}},function(e,t,n){"use strict";(function(t){var r=t.Symbol,o=n(235);e.exports=function(){return"function"==typeof r&&("function"==typeof Symbol&&("symbol"==typeof r("foo")&&("symbol"==typeof Symbol("bar")&&o())))}}).call(this,n(121))},function(e,t,n){"use strict";var r=n(58),o=r("%String%"),a=r("%TypeError%");e.exports=function(e){if("symbol"==typeof e)throw new a("Cannot convert a Symbol value to a string");return o(e)}},function(e,t,n){"use strict";var r=n(58)("%Object%"),o=n(377);e.exports=function(e){return o(e),r(e)}},function(e,t,n){"use strict";e.exports=n(378)},function(e,t,n){"use strict";var r=n(58)("%TypeError%");e.exports=function(e,t){if(null==e)throw new r(t||"Cannot call method on "+e);return e}},function(e,t,n){"use strict";var r=n(104),o=n(236);e.exports=function(){var e=o();return r(Array.prototype,{flat:e},{flat:function(){return Array.prototype.flat!==e}}),e}},function(e,t,n){"use strict";(function(t){var r=n(104),o=n(192),a="__ global cache key __";"function"==typeof Symbol&&o(Symbol("foo"))&&"function"==typeof Symbol.for&&(a=Symbol.for(a));var i=function(){return!0},c=function(){if(!t[a]){var e={};e[a]={};var n={};n[a]=i,r(t,e,n)}return t[a]},s=c(),u=function(e){return o(e)?Symbol.prototype.valueOf.call(e):typeof e+" | "+String(e)},l=function(e){if(!function(e){return null===e||"object"!=typeof e&&"function"!=typeof e}(e))throw new TypeError("key must not be an object")},d={clear:function(){delete t[a],s=c()},delete:function(e){return l(e),delete s[u(e)],!d.has(e)},get:function(e){return l(e),s[u(e)]},has:function(e){return l(e),u(e)in s},set:function(e,t){l(e);var n=u(e),o={};o[n]=t;var a={};return a[n]=i,r(s,o,a),d.has(e)},setIfMissingThenGet:function(e,t){if(d.has(e))return d.get(e);var n=t();return d.set(e,n),n}};e.exports=d}).call(this,n(121))},function(e,t){Object.defineProperty(t,"__esModule",{value:!0});t.GLOBAL_CACHE_KEY="reactWithStylesInterfaceCSS",t.MAX_SPECIFICITY=20},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return(e.length>0?String(e)+"__":"")+String(t)}},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){for(var t=[],n=!1,r={},o=0;o>",baseInvalidMessage:"Invalid "};function r(e){if("function"!=typeof e)throw new Error(n.invalidPropValidator);var t=e.bind(null,!1,null);return t.isRequired=e.bind(null,!0,null),t.withPredicate=function(t){if("function"!=typeof t)throw new Error(n.invalidPredicate);var r=e.bind(null,!1,t);return r.isRequired=e.bind(null,!0,t),r},t}function o(e,t,r){return new Error("The prop `"+e+"` "+n.requiredCore+" in `"+t+"`, but its value is `"+r+"`.")}e.exports={constructPropValidatorVariations:r,createMomentChecker:function(e,t,a,i){return r((function(r,c,s,u,l,d,f){var p=s[u],b=typeof p,h=function(e,t,n,r){var a=void 0===r,i=null===r;if(e){if(a)return o(n,t,"undefined");if(i)return o(n,t,"null")}return a||i?null:-1}(r,l=l||n.anonymousMessage,f=f||u,p);if(-1!==h)return h;if(t&&!t(p))return new Error(n.invalidTypeCore+": `"+u+"` of type `"+b+"` supplied to `"+l+"`, expected `"+e+"`.");if(!a(p))return new Error(n.baseInvalidMessage+d+" `"+u+"` of type `"+b+"` supplied to `"+l+"`, expected `"+i+"`.");if(c&&!c(p)){var v=c.name||n.anonymousMessage;return new Error(n.baseInvalidMessage+d+" `"+u+"` of type `"+b+"` supplied to `"+l+"`. "+n.predicateFailureCore+" `"+v+"`.")}return null}))},messages:n}},function(e,t,n){"use strict";function r(){return null}function o(){return r}r.isRequired=r,e.exports={and:o,between:o,booleanSome:o,childrenHavePropXorChildren:o,childrenOf:o,childrenOfType:o,childrenSequenceOf:o,componentWithName:o,disallowedIf:o,elementType:o,empty:o,explicitNull:o,forbidExtraProps:Object,integer:o,keysOf:o,mutuallyExclusiveProps:o,mutuallyExclusiveTrueProps:o,nChildren:o,nonNegativeInteger:r,nonNegativeNumber:o,numericString:o,object:o,or:o,predicate:o,range:o,ref:o,requiredBy:o,restrictedProp:o,sequenceOf:o,shape:o,stringEndsWith:o,stringStartsWith:o,uniqueArray:o,uniqueArrayOf:o,valuesOf:o,withShape:o}},function(e,t,n){"use strict";e.exports=n(390)},function(e,t,n){"use strict";var r=n(391),o=n(247),a=o(o({},r),{SameValueNonNumber:function(e,t){if("number"==typeof e||typeof e!=typeof t)throw new TypeError("SameValueNonNumber requires two non-number values of the same type.");return this.SameValue(e,t)}});e.exports=a},function(e,t,n){"use strict";var r=n(87),o=n(392),a=n(188),i=n(194),c=i("%TypeError%"),s=i("%SyntaxError%"),u=i("%Array%"),l=i("%String%"),d=i("%Object%"),f=i("%Number%"),p=i("%Symbol%",!0),b=i("%RegExp%"),h=!!p,v=n(244),m=n(245),y=n(246),g=f.MAX_SAFE_INTEGER||Math.pow(2,53)-1,O=n(247),j=n(248),w=n(249),k=n(394),_=parseInt,S=n(105),E=S.call(Function.call,u.prototype.slice),x=S.call(Function.call,l.prototype.slice),C=S.call(Function.call,b.prototype.test,/^0b[01]+$/i),P=S.call(Function.call,b.prototype.test,/^0o[0-7]+$/i),D=S.call(Function.call,b.prototype.exec),M=new b("["+["…","​","￾"].join("")+"]","g"),T=S.call(Function.call,b.prototype.test,M),I=S.call(Function.call,b.prototype.test,/^[-+]0x[0-9a-f]+$/i),R=S.call(Function.call,l.prototype.charCodeAt),N=S.call(Function.call,Object.prototype.toString),A=S.call(Function.call,i("%NumberPrototype%").valueOf),F=S.call(Function.call,i("%BooleanPrototype%").valueOf),L=S.call(Function.call,i("%StringPrototype%").valueOf),z=S.call(Function.call,i("%DatePrototype%").valueOf),B=Math.floor,H=Math.abs,V=Object.create,W=d.getOwnPropertyDescriptor,K=d.isExtensible,U=d.defineProperty,G=["\t\n\v\f\r   ᠎    ","          \u2028","\u2029\ufeff"].join(""),$=new RegExp("(^["+G+"]+)|(["+G+"]+$)","g"),q=S.call(Function.call,l.prototype.replace),Y=n(395),Z=n(397),X=O(O({},Y),{Call:function(e,t){var n=arguments.length>2?arguments[2]:[];if(!this.IsCallable(e))throw new c(e+" is not a function");return e.apply(t,n)},ToPrimitive:o,ToNumber:function(e){var t=k(e)?e:o(e,f);if("symbol"==typeof t)throw new c("Cannot convert a Symbol value to a number");if("string"==typeof t){if(C(t))return this.ToNumber(_(x(t,2),2));if(P(t))return this.ToNumber(_(x(t,2),8));if(T(t)||I(t))return NaN;var n=function(e){return q(e,$,"")}(t);if(n!==t)return this.ToNumber(n)}return f(t)},ToInt16:function(e){var t=this.ToUint16(e);return t>=32768?t-65536:t},ToInt8:function(e){var t=this.ToUint8(e);return t>=128?t-256:t},ToUint8:function(e){var t=this.ToNumber(e);if(m(t)||0===t||!y(t))return 0;var n=j(t)*B(H(t));return w(n,256)},ToUint8Clamp:function(e){var t=this.ToNumber(e);if(m(t)||t<=0)return 0;if(t>=255)return 255;var n=B(e);return n+.5g?g:t},CanonicalNumericIndexString:function(e){if("[object String]"!==N(e))throw new c("must be a string");if("-0"===e)return-0;var t=this.ToNumber(e);return this.SameValue(this.ToString(t),e)?t:void 0},RequireObjectCoercible:Y.CheckObjectCoercible,IsArray:u.isArray||function(e){return"[object Array]"===N(e)},IsConstructor:function(e){return"function"==typeof e&&!!e.prototype},IsExtensible:Object.preventExtensions?function(e){return!k(e)&&K(e)}:function(e){return!0},IsInteger:function(e){if("number"!=typeof e||m(e)||!y(e))return!1;var t=H(e);return B(t)===t},IsPropertyKey:function(e){return"string"==typeof e||"symbol"==typeof e},IsRegExp:function(e){if(!e||"object"!=typeof e)return!1;if(h){var t=e[p.match];if(void 0!==t)return Y.ToBoolean(t)}return Z(e)},SameValueZero:function(e,t){return e===t||m(e)&&m(t)},GetV:function(e,t){if(!this.IsPropertyKey(t))throw new c("Assertion failed: IsPropertyKey(P) is not true");return this.ToObject(e)[t]},GetMethod:function(e,t){if(!this.IsPropertyKey(t))throw new c("Assertion failed: IsPropertyKey(P) is not true");var n=this.GetV(e,t);if(null!=n){if(!this.IsCallable(n))throw new c(t+"is not a function");return n}},Get:function(e,t){if("Object"!==this.Type(e))throw new c("Assertion failed: Type(O) is not Object");if(!this.IsPropertyKey(t))throw new c("Assertion failed: IsPropertyKey(P) is not true");return e[t]},Type:function(e){return"symbol"==typeof e?"Symbol":Y.Type(e)},SpeciesConstructor:function(e,t){if("Object"!==this.Type(e))throw new c("Assertion failed: Type(O) is not Object");var n=e.constructor;if(void 0===n)return t;if("Object"!==this.Type(n))throw new c("O.constructor is not an Object");var r=h&&p.species?n[p.species]:void 0;if(null==r)return t;if(this.IsConstructor(r))return r;throw new c("no constructor found")},CompletePropertyDescriptor:function(e){return v(this,"Property Descriptor","Desc",e),this.IsGenericDescriptor(e)||this.IsDataDescriptor(e)?(r(e,"[[Value]]")||(e["[[Value]]"]=void 0),r(e,"[[Writable]]")||(e["[[Writable]]"]=!1)):(r(e,"[[Get]]")||(e["[[Get]]"]=void 0),r(e,"[[Set]]")||(e["[[Set]]"]=void 0)),r(e,"[[Enumerable]]")||(e["[[Enumerable]]"]=!1),r(e,"[[Configurable]]")||(e["[[Configurable]]"]=!1),e},Set:function(e,t,n,r){if("Object"!==this.Type(e))throw new c("O must be an Object");if(!this.IsPropertyKey(t))throw new c("P must be a Property Key");if("Boolean"!==this.Type(r))throw new c("Throw must be a Boolean");if(r)return e[t]=n,!0;try{e[t]=n}catch(e){return!1}},HasOwnProperty:function(e,t){if("Object"!==this.Type(e))throw new c("O must be an Object");if(!this.IsPropertyKey(t))throw new c("P must be a Property Key");return r(e,t)},HasProperty:function(e,t){if("Object"!==this.Type(e))throw new c("O must be an Object");if(!this.IsPropertyKey(t))throw new c("P must be a Property Key");return t in e},IsConcatSpreadable:function(e){if("Object"!==this.Type(e))return!1;if(h&&"symbol"==typeof p.isConcatSpreadable){var t=this.Get(e,Symbol.isConcatSpreadable);if(void 0!==t)return this.ToBoolean(t)}return this.IsArray(e)},Invoke:function(e,t){if(!this.IsPropertyKey(t))throw new c("P must be a Property Key");var n=E(arguments,2),r=this.GetV(e,t);return this.Call(r,e,n)},GetIterator:function(e,t){if(!h)throw new SyntaxError("ES.GetIterator depends on native iterator support.");var n=t;arguments.length<2&&(n=this.GetMethod(e,p.iterator));var r=this.Call(n,e);if("Object"!==this.Type(r))throw new c("iterator must return an object");return r},IteratorNext:function(e,t){var n=this.Invoke(e,"next",arguments.length<2?[]:[t]);if("Object"!==this.Type(n))throw new c("iterator next must return an object");return n},IteratorComplete:function(e){if("Object"!==this.Type(e))throw new c("Assertion failed: Type(iterResult) is not Object");return this.ToBoolean(this.Get(e,"done"))},IteratorValue:function(e){if("Object"!==this.Type(e))throw new c("Assertion failed: Type(iterResult) is not Object");return this.Get(e,"value")},IteratorStep:function(e){var t=this.IteratorNext(e);return!0!==this.IteratorComplete(t)&&t},IteratorClose:function(e,t){if("Object"!==this.Type(e))throw new c("Assertion failed: Type(iterator) is not Object");if(!this.IsCallable(t))throw new c("Assertion failed: completion is not a thunk for a Completion Record");var n,r=t,o=this.GetMethod(e,"return");if(void 0===o)return r();try{var a=this.Call(o,e,[])}catch(e){throw n=r(),r=null,e}if(n=r(),r=null,"Object"!==this.Type(a))throw new c("iterator .return must return an object");return n},CreateIterResultObject:function(e,t){if("Boolean"!==this.Type(t))throw new c("Assertion failed: Type(done) is not Boolean");return{value:e,done:t}},RegExpExec:function(e,t){if("Object"!==this.Type(e))throw new c("R must be an Object");if("String"!==this.Type(t))throw new c("S must be a String");var n=this.Get(e,"exec");if(this.IsCallable(n)){var r=this.Call(n,e,[t]);if(null===r||"Object"===this.Type(r))return r;throw new c('"exec" method must return `null` or an Object')}return D(e,t)},ArraySpeciesCreate:function(e,t){if(!this.IsInteger(t)||t<0)throw new c("Assertion failed: length must be an integer >= 0");var n,r=0===t?0:t;if(this.IsArray(e)&&(n=this.Get(e,"constructor"),"Object"===this.Type(n)&&h&&p.species&&null===(n=this.Get(n,p.species))&&(n=void 0)),void 0===n)return u(r);if(!this.IsConstructor(n))throw new c("C must be a constructor");return new n(r)},CreateDataProperty:function(e,t,n){if("Object"!==this.Type(e))throw new c("Assertion failed: Type(O) is not Object");if(!this.IsPropertyKey(t))throw new c("Assertion failed: IsPropertyKey(P) is not true");var r=W(e,t),o=r||"function"!=typeof K||K(e);return!(!(!r||r.writable&&r.configurable)||!o)&&(U(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}),!0)},CreateDataPropertyOrThrow:function(e,t,n){if("Object"!==this.Type(e))throw new c("Assertion failed: Type(O) is not Object");if(!this.IsPropertyKey(t))throw new c("Assertion failed: IsPropertyKey(P) is not true");var r=this.CreateDataProperty(e,t,n);if(!r)throw new c("unable to create data property");return r},ObjectCreate:function(e,t){if(null!==e&&"Object"!==this.Type(e))throw new c("Assertion failed: proto must be null or an object");var n=arguments.length<2?[]:t;if(n.length>0)throw new s("es-abstract does not yet support internal slots");if(null===e&&!V)throw new s("native Object.create support is required to create null objects");return V(e)},AdvanceStringIndex:function(e,t,n){if("String"!==this.Type(e))throw new c("S must be a String");if(!this.IsInteger(t)||t<0||t>g)throw new c("Assertion failed: length must be an integer >= 0 and <= 2**53");if("Boolean"!==this.Type(n))throw new c("Assertion failed: unicode must be a Boolean");if(!n)return t+1;if(t+1>=e.length)return t+1;var r=R(e,t);if(r<55296||r>56319)return t+1;var o=R(e,t+1);return o<56320||o>57343?t+1:t+2},CreateMethodProperty:function(e,t,n){if("Object"!==this.Type(e))throw new c("Assertion failed: Type(O) is not Object");if(!this.IsPropertyKey(t))throw new c("Assertion failed: IsPropertyKey(P) is not true");return!!U(e,t,{configurable:!0,enumerable:!1,value:n,writable:!0})},DefinePropertyOrThrow:function(e,t,n){if("Object"!==this.Type(e))throw new c("Assertion failed: Type(O) is not Object");if(!this.IsPropertyKey(t))throw new c("Assertion failed: IsPropertyKey(P) is not true");return!!U(e,t,n)},DeletePropertyOrThrow:function(e,t){if("Object"!==this.Type(e))throw new c("Assertion failed: Type(O) is not Object");if(!this.IsPropertyKey(t))throw new c("Assertion failed: IsPropertyKey(P) is not true");var n=delete e[t];if(!n)throw new TypeError("Attempt to delete property failed.");return n},EnumerableOwnNames:function(e){if("Object"!==this.Type(e))throw new c("Assertion failed: Type(O) is not Object");return a(e)},thisNumberValue:function(e){return"Number"===this.Type(e)?e:A(e)},thisBooleanValue:function(e){return"Boolean"===this.Type(e)?e:F(e)},thisStringValue:function(e){return"String"===this.Type(e)?e:L(e)},thisTimeValue:function(e){return z(e)}});delete X.CheckObjectCoercible,e.exports=X},function(e,t,n){"use strict";e.exports=n(393)},function(e,t,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator,o=n(243),a=n(193),i=n(234),c=n(192),s=function(e,t){if(null==e)throw new TypeError("Cannot call method on "+e);if("string"!=typeof t||"number"!==t&&"string"!==t)throw new TypeError('hint must be "string" or "number"');var n,r,i,c="string"===t?["toString","valueOf"]:["valueOf","toString"];for(i=0;i1&&(arguments[1]===String?n="string":arguments[1]===Number&&(n="number")),r&&(Symbol.toPrimitive?t=u(e,Symbol.toPrimitive):c(e)&&(t=Symbol.prototype.valueOf)),void 0!==t){var a=t.call(e,n);if(o(a))return a;throw new TypeError("unable to convert exotic object to primitive")}return"default"===n&&(i(e)||c(e))&&(n="string"),s(e,"default"===n?"number":n)}},function(e,t){e.exports=function(e){return null===e||"function"!=typeof e&&"object"!=typeof e}},function(e,t,n){"use strict";var r=n(194),o=r("%Object%"),a=r("%TypeError%"),i=r("%String%"),c=n(244),s=n(245),u=n(246),l=n(248),d=n(249),f=n(193),p=n(396),b=n(87),h={ToPrimitive:p,ToBoolean:function(e){return!!e},ToNumber:function(e){return+e},ToInteger:function(e){var t=this.ToNumber(e);return s(t)?0:0!==t&&u(t)?l(t)*Math.floor(Math.abs(t)):t},ToInt32:function(e){return this.ToNumber(e)>>0},ToUint32:function(e){return this.ToNumber(e)>>>0},ToUint16:function(e){var t=this.ToNumber(e);if(s(t)||0===t||!u(t))return 0;var n=l(t)*Math.floor(Math.abs(t));return d(n,65536)},ToString:function(e){return i(e)},ToObject:function(e){return this.CheckObjectCoercible(e),o(e)},CheckObjectCoercible:function(e,t){if(null==e)throw new a(t||"Cannot call method on "+e);return e},IsCallable:f,SameValue:function(e,t){return e===t?0!==e||1/e==1/t:s(e)&&s(t)},Type:function(e){return null===e?"Null":void 0===e?"Undefined":"function"==typeof e||"object"==typeof e?"Object":"number"==typeof e?"Number":"boolean"==typeof e?"Boolean":"string"==typeof e?"String":void 0},IsPropertyDescriptor:function(e){if("Object"!==this.Type(e))return!1;var t={"[[Configurable]]":!0,"[[Enumerable]]":!0,"[[Get]]":!0,"[[Set]]":!0,"[[Value]]":!0,"[[Writable]]":!0};for(var n in e)if(b(e,n)&&!t[n])return!1;var r=b(e,"[[Value]]"),o=b(e,"[[Get]]")||b(e,"[[Set]]");if(r&&o)throw new a("Property Descriptors may not be both accessor and data descriptors");return!0},IsAccessorDescriptor:function(e){return void 0!==e&&(c(this,"Property Descriptor","Desc",e),!(!b(e,"[[Get]]")&&!b(e,"[[Set]]")))},IsDataDescriptor:function(e){return void 0!==e&&(c(this,"Property Descriptor","Desc",e),!(!b(e,"[[Value]]")&&!b(e,"[[Writable]]")))},IsGenericDescriptor:function(e){return void 0!==e&&(c(this,"Property Descriptor","Desc",e),!this.IsAccessorDescriptor(e)&&!this.IsDataDescriptor(e))},FromPropertyDescriptor:function(e){if(void 0===e)return e;if(c(this,"Property Descriptor","Desc",e),this.IsDataDescriptor(e))return{value:e["[[Value]]"],writable:!!e["[[Writable]]"],enumerable:!!e["[[Enumerable]]"],configurable:!!e["[[Configurable]]"]};if(this.IsAccessorDescriptor(e))return{get:e["[[Get]]"],set:e["[[Set]]"],enumerable:!!e["[[Enumerable]]"],configurable:!!e["[[Configurable]]"]};throw new a("FromPropertyDescriptor must be called with a fully populated Property Descriptor")},ToPropertyDescriptor:function(e){if("Object"!==this.Type(e))throw new a("ToPropertyDescriptor requires an object");var t={};if(b(e,"enumerable")&&(t["[[Enumerable]]"]=this.ToBoolean(e.enumerable)),b(e,"configurable")&&(t["[[Configurable]]"]=this.ToBoolean(e.configurable)),b(e,"value")&&(t["[[Value]]"]=e.value),b(e,"writable")&&(t["[[Writable]]"]=this.ToBoolean(e.writable)),b(e,"get")){var n=e.get;if(void 0!==n&&!this.IsCallable(n))throw new TypeError("getter must be a function");t["[[Get]]"]=n}if(b(e,"set")){var r=e.set;if(void 0!==r&&!this.IsCallable(r))throw new a("setter must be a function");t["[[Set]]"]=r}if((b(t,"[[Get]]")||b(t,"[[Set]]"))&&(b(t,"[[Value]]")||b(t,"[[Writable]]")))throw new a("Invalid property descriptor. Cannot both specify accessors and a value or writable attribute");return t}};e.exports=h},function(e,t,n){"use strict";var r=Object.prototype.toString,o=n(243),a=n(193),i=function(e){var t;if((t=arguments.length>1?arguments[1]:"[object Date]"===r.call(e)?String:Number)===String||t===Number){var n,i,c=t===String?["toString","valueOf"]:["valueOf","toString"];for(i=0;i1?i(e,arguments[1]):i(e)}},function(e,t,n){"use strict";var r=n(87),o=RegExp.prototype.exec,a=Object.getOwnPropertyDescriptor,i=Object.prototype.toString,c="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;e.exports=function(e){if(!e||"object"!=typeof e)return!1;if(!c)return"[object RegExp]"===i.call(e);var t=a(e,"lastIndex");return!(!t||!r(t,"value"))&&function(e){try{var t=e.lastIndex;return e.lastIndex=0,o.call(e),!0}catch(e){return!1}finally{e.lastIndex=t}}(e)}},function(e,t,n){"use strict";var r=n(250),o=n(104);e.exports=function(){var e=r();return o(Object,{values:e},{values:function(){return Object.values!==e}}),e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n,a){if(!r.default.isMoment(e))return{};for(var i={},c=a?e.clone():e.clone().subtract(1,"month"),s=0;s<(a?t:t+2);s+=1){var u=[],l=c.clone(),d=l.clone().startOf("month").hour(12),f=l.clone().endOf("month").hour(12),p=d.clone();if(n)for(var b=0;b=t||n<0||v&&e-b>=l}function j(){var e=o();if(O(e))return w(e);f=setTimeout(j,function(e){var n=t-(e-p);return v?c(n,l-(e-b)):n}(e))}function w(e){return f=void 0,m&&s?y(e):(s=u=void 0,d)}function _(){var e=o(),n=O(e);if(s=arguments,u=this,p=e,n){if(void 0===f)return g(p);if(v)return clearTimeout(f),f=setTimeout(j,t),y(p)}return void 0===f&&(f=setTimeout(j,t)),d}return t=i(t)||0,r(n)&&(h=!!n.leading,l=(v="maxWait"in n)?a(i(n.maxWait)||0,t):l,m="trailing"in n?!!n.trailing:m),_.cancel=function(){void 0!==f&&clearTimeout(f),b=0,s=p=u=f=void 0},_.flush=function(){return void 0===f?d:w(o())},_}},function(e,t,n){var r=n(258);e.exports=function(){return r.Date.now()}},function(e,t,n){(function(t){var n="object"==typeof t&&t&&t.Object===Object&&t;e.exports=n}).call(this,n(131))},function(e,t,n){var r=n(198),o=n(398),i=/^\s+|\s+$/g,a=/^[-+]0x[0-9a-f]+$/i,c=/^0b[01]+$/i,s=/^0o[0-7]+$/i,u=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(o(e))return NaN;if(r(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=r(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(i,"");var n=c.test(e);return n||s.test(e)?u(e.slice(2),n?2:8):a.test(e)?NaN:+e}},function(e,t,n){var r=n(399),o=n(402);e.exports=function(e){return"symbol"==typeof e||o(e)&&"[object Symbol]"==r(e)}},function(e,t,n){var r=n(259),o=n(400),i=n(401),a=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?o(e):i(e)}},function(e,t,n){var r=n(259),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,c=r?r.toStringTag:void 0;e.exports=function(e){var t=i.call(e,c),n=e[c];try{e[c]=void 0;var r=!0}catch(e){}var o=a.call(e);return r&&(t?e[c]=n:delete e[c]),o}},function(e,t){var n=Object.prototype.toString;e.exports=function(e){return n.call(e)}},function(e,t){e.exports=function(e){return null!=e&&"object"==typeof e}},function(e,t,n){e.exports=n(404)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n=o&&i2&&void 0!==arguments[2]?arguments[2]:i.default.localeData().firstDayOfWeek();if(!i.default.isMoment(e)||!e.isValid())throw new TypeError("`month` must be a valid moment object");if(-1===a.WEEKDAYS.indexOf(n))throw new TypeError("`firstDayOfWeek` must be an integer between 0 and 6");for(var r=e.clone().startOf("month").hour(12),o=e.clone().endOf("month").hour(12),c=(r.day()+7-n)%7,s=(n+6-o.day())%7,u=r.clone().subtract(c,"day"),l=o.clone().add(s,"day"),d=l.diff(u,"days")+1,f=u.clone(),p=[],b=0;b=c&&b1&&void 0!==arguments[1]?arguments[1]:i.default.localeData().firstDayOfWeek(),n=e.clone().startOf("month"),r=a(n,t);return Math.ceil((r+e.daysInMonth())/7)};var r,o=n(44),i=(r=o)&&r.__esModule?r:{default:r};function a(e,t){return(e.day()-t+7)%7}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){return"undefined"!=typeof document&&document.activeElement}},function(e,t,n){"use strict";var r=n(0),o=n(7),i=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M18.2 17c0 .7-.6 1.2-1.2 1.2H7c-.7 0-1.2-.6-1.2-1.2V7c0-.7.6-1.2 1.2-1.2h3.2V4.2H7C5.5 4.2 4.2 5.5 4.2 7v10c0 1.5 1.2 2.8 2.8 2.8h10c1.5 0 2.8-1.2 2.8-2.8v-3.6h-1.5V17zM14.9 3v1.5h3.7l-6.4 6.4 1.1 1.1 6.4-6.4v3.7h1.5V3h-6.3z"}));t.a=i},function(e,t,n){"use strict";var r=n(0),o=n(7),i=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(r.createElement)(o.Path,{d:"M13.23 15h1.9L11 4H9L5 15h1.88l1.07-3h4.18zm-1.53-4.54H8.51L10 5.6z"}));t.a=i},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n(51),o=n(50),i=(n(13),n(81),n(123)),a=n(173),c=Object(o.a)({name:"ToolbarItem",compose:i.b,useState:a.a}),s=Object(r.a)({as:"button",memo:!0,useHook:c})}]); \ No newline at end of file + */Object.defineProperty(t,"__esModule",{value:!0});var r="function"==typeof Symbol&&Symbol.for,o=r?Symbol.for("react.element"):60103,a=r?Symbol.for("react.portal"):60106,i=r?Symbol.for("react.fragment"):60107,c=r?Symbol.for("react.strict_mode"):60108,s=r?Symbol.for("react.profiler"):60114,u=r?Symbol.for("react.provider"):60109,l=r?Symbol.for("react.context"):60110,d=r?Symbol.for("react.async_mode"):60111,f=r?Symbol.for("react.concurrent_mode"):60111,p=r?Symbol.for("react.forward_ref"):60112,b=r?Symbol.for("react.suspense"):60113,h=r?Symbol.for("react.memo"):60115,v=r?Symbol.for("react.lazy"):60116;function m(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case o:switch(e=e.type){case d:case f:case i:case s:case c:case b:return e;default:switch(e=e&&e.$$typeof){case l:case p:case u:return e;default:return t}}case v:case h:case a:return t}}}function y(e){return m(e)===f}t.typeOf=m,t.AsyncMode=d,t.ConcurrentMode=f,t.ContextConsumer=l,t.ContextProvider=u,t.Element=o,t.ForwardRef=p,t.Fragment=i,t.Lazy=v,t.Memo=h,t.Portal=a,t.Profiler=s,t.StrictMode=c,t.Suspense=b,t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===f||e===s||e===c||e===b||"object"==typeof e&&null!==e&&(e.$$typeof===v||e.$$typeof===h||e.$$typeof===u||e.$$typeof===l||e.$$typeof===p)},t.isAsyncMode=function(e){return y(e)||m(e)===d},t.isConcurrentMode=y,t.isContextConsumer=function(e){return m(e)===l},t.isContextProvider=function(e){return m(e)===u},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===o},t.isForwardRef=function(e){return m(e)===p},t.isFragment=function(e){return m(e)===i},t.isLazy=function(e){return m(e)===v},t.isMemo=function(e){return m(e)===h},t.isPortal=function(e){return m(e)===a},t.isProfiler=function(e){return m(e)===s},t.isStrictMode=function(e){return m(e)===c},t.isSuspense=function(e){return m(e)===b}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.CHANNEL="__direction__",t.DIRECTIONS={LTR:"ltr",RTL:"rtl"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(28),a=(r=o)&&r.__esModule?r:{default:r};t.default=a.default.shape({getState:a.default.func,setState:a.default.func,subscribe:a.default.func})},function(e,t,n){var r=n(408),o=n(197);e.exports=function(e,t,n){var a=!0,i=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return o(n)&&(a="leading"in n?!!n.leading:a,i="trailing"in n?!!n.trailing:i),r(e,t,{leading:a,maxWait:t,trailing:i})}},function(e,t,n){var r=n(197),o=n(409),a=n(411),i=Math.max,c=Math.min;e.exports=function(e,t,n){var s,u,l,d,f,p,b=0,h=!1,v=!1,m=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function y(t){var n=s,r=u;return s=u=void 0,b=t,d=e.apply(r,n)}function g(e){return b=e,f=setTimeout(j,t),h?y(e):d}function O(e){var n=e-p;return void 0===p||n>=t||n<0||v&&e-b>=l}function j(){var e=o();if(O(e))return w(e);f=setTimeout(j,function(e){var n=t-(e-p);return v?c(n,l-(e-b)):n}(e))}function w(e){return f=void 0,m&&s?y(e):(s=u=void 0,d)}function k(){var e=o(),n=O(e);if(s=arguments,u=this,p=e,n){if(void 0===f)return g(p);if(v)return clearTimeout(f),f=setTimeout(j,t),y(p)}return void 0===f&&(f=setTimeout(j,t)),d}return t=a(t)||0,r(n)&&(h=!!n.leading,l=(v="maxWait"in n)?i(a(n.maxWait)||0,t):l,m="trailing"in n?!!n.trailing:m),k.cancel=function(){void 0!==f&&clearTimeout(f),b=0,s=p=u=f=void 0},k.flush=function(){return void 0===f?d:w(o())},k}},function(e,t,n){var r=n(258);e.exports=function(){return r.Date.now()}},function(e,t,n){(function(t){var n="object"==typeof t&&t&&t.Object===Object&&t;e.exports=n}).call(this,n(121))},function(e,t,n){var r=n(197),o=n(412),a=/^\s+|\s+$/g,i=/^[-+]0x[0-9a-f]+$/i,c=/^0b[01]+$/i,s=/^0o[0-7]+$/i,u=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(o(e))return NaN;if(r(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=r(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(a,"");var n=c.test(e);return n||s.test(e)?u(e.slice(2),n?2:8):i.test(e)?NaN:+e}},function(e,t,n){var r=n(413),o=n(416);e.exports=function(e){return"symbol"==typeof e||o(e)&&"[object Symbol]"==r(e)}},function(e,t,n){var r=n(259),o=n(414),a=n(415),i=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":i&&i in Object(e)?o(e):a(e)}},function(e,t,n){var r=n(259),o=Object.prototype,a=o.hasOwnProperty,i=o.toString,c=r?r.toStringTag:void 0;e.exports=function(e){var t=a.call(e,c),n=e[c];try{e[c]=void 0;var r=!0}catch(e){}var o=i.call(e);return r&&(t?e[c]=n:delete e[c]),o}},function(e,t){var n=Object.prototype.toString;e.exports=function(e){return n.call(e)}},function(e,t){e.exports=function(e){return null!=e&&"object"==typeof e}},function(e,t,n){e.exports=n(418)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n=o&&a2&&void 0!==arguments[2]?arguments[2]:a.default.localeData().firstDayOfWeek();if(!a.default.isMoment(e)||!e.isValid())throw new TypeError("`month` must be a valid moment object");if(-1===i.WEEKDAYS.indexOf(n))throw new TypeError("`firstDayOfWeek` must be an integer between 0 and 6");for(var r=e.clone().startOf("month").hour(12),o=e.clone().endOf("month").hour(12),c=(r.day()+7-n)%7,s=(n+6-o.day())%7,u=r.clone().subtract(c,"day"),l=o.clone().add(s,"day"),d=l.diff(u,"days")+1,f=u.clone(),p=[],b=0;b=c&&b1&&void 0!==arguments[1]?arguments[1]:a.default.localeData().firstDayOfWeek(),n=e.clone().startOf("month"),r=i(n,t);return Math.ceil((r+e.daysInMonth())/7)};var r,o=n(44),a=(r=o)&&r.__esModule?r:{default:r};function i(e,t){return(e.day()-t+7)%7}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){return"undefined"!=typeof document&&document.activeElement}},function(e,t,n){"use strict";var r=n(0),o=n(7),a=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(o.Path,{d:"M18.2 17c0 .7-.6 1.2-1.2 1.2H7c-.7 0-1.2-.6-1.2-1.2V7c0-.7.6-1.2 1.2-1.2h3.2V4.2H7C5.5 4.2 4.2 5.5 4.2 7v10c0 1.5 1.2 2.8 2.8 2.8h10c1.5 0 2.8-1.2 2.8-2.8v-3.6h-1.5V17zM14.9 3v1.5h3.7l-6.4 6.4 1.1 1.1 6.4-6.4v3.7h1.5V3h-6.3z"}));t.a=a},function(e,t,n){"use strict";var r=n(0),o=n(7),a=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(r.createElement)(o.Path,{d:"M13.23 15h1.9L11 4H9L5 15h1.88l1.07-3h4.18zm-1.53-4.54H8.51L10 5.6z"}));t.a=a},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n(51),o=n(50),a=(n(13),n(81),n(124)),i=n(174),c=Object(o.a)({name:"ToolbarItem",compose:a.b,useState:i.a}),s=Object(r.a)({as:"button",memo:!0,useHook:c})}]); \ No newline at end of file diff --git a/wp-includes/js/dist/compose.js b/wp-includes/js/dist/compose.js index c66ca59e41..fbf5cf720c 100644 --- a/wp-includes/js/dist/compose.js +++ b/wp-includes/js/dist/compose.js @@ -82,7 +82,7 @@ this["wp"] = this["wp"] || {}; this["wp"]["compose"] = /******/ /******/ /******/ // Load entry module and return exports -/******/ return __webpack_require__(__webpack_require__.s = 463); +/******/ return __webpack_require__(__webpack_require__.s = 477); /******/ }) /************************************************************************/ /******/ ({ @@ -133,7 +133,7 @@ function _iterableToArrayLimit(arr, i) { return _arr; } // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js -var unsupportedIterableToArray = __webpack_require__(30); +var unsupportedIterableToArray = __webpack_require__(31); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/nonIterableRest.js var nonIterableRest = __webpack_require__(39); @@ -263,7 +263,7 @@ function _arrayWithoutHoles(arr) { var iterableToArray = __webpack_require__(37); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js -var unsupportedIterableToArray = __webpack_require__(30); +var unsupportedIterableToArray = __webpack_require__(31); // CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js function _nonIterableSpread() { @@ -409,7 +409,7 @@ function _arrayLikeToArray(arr, len) { /***/ }), -/***/ 287: +/***/ 288: /***/ (function(module, exports, __webpack_require__) { /*! @@ -1383,7 +1383,7 @@ function getAttributeValue(suffix, element) { /***/ }), -/***/ 288: +/***/ 289: /***/ (function(module, exports, __webpack_require__) { var __WEBPACK_AMD_DEFINE_RESULT__;/*global define:false */ @@ -2449,7 +2449,7 @@ var __WEBPACK_AMD_DEFINE_RESULT__;/*global define:false */ /***/ }), -/***/ 30: +/***/ 31: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -2523,7 +2523,7 @@ function _typeof(obj) { /***/ }), -/***/ 429: +/***/ 443: /***/ (function(module, exports) { /** @@ -2576,7 +2576,7 @@ function _typeof(obj) { /***/ }), -/***/ 463: +/***/ 477: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -3230,7 +3230,7 @@ function withState() { var slicedToArray = __webpack_require__(12); // EXTERNAL MODULE: ./node_modules/clipboard/dist/clipboard.js -var dist_clipboard = __webpack_require__(287); +var dist_clipboard = __webpack_require__(288); var clipboard_default = /*#__PURE__*/__webpack_require__.n(dist_clipboard); // CONCATENATED MODULE: ./node_modules/@wordpress/compose/build-module/hooks/use-copy-on-click/index.js @@ -3374,11 +3374,11 @@ function useDragging(_ref) { } // EXTERNAL MODULE: ./node_modules/mousetrap/mousetrap.js -var mousetrap_mousetrap = __webpack_require__(288); +var mousetrap_mousetrap = __webpack_require__(289); var mousetrap_default = /*#__PURE__*/__webpack_require__.n(mousetrap_mousetrap); // EXTERNAL MODULE: ./node_modules/mousetrap/plugins/global-bind/mousetrap-global-bind.js -var mousetrap_global_bind = __webpack_require__(429); +var mousetrap_global_bind = __webpack_require__(443); // CONCATENATED MODULE: ./node_modules/@wordpress/compose/build-module/hooks/use-keyboard-shortcut/index.js /** diff --git a/wp-includes/js/dist/compose.min.js b/wp-includes/js/dist/compose.min.js index ed4c0d79e9..a30340b7c6 100644 --- a/wp-includes/js/dist/compose.min.js +++ b/wp-includes/js/dist/compose.min.js @@ -1,9 +1,9 @@ /*! This file is auto-generated */ -this.wp=this.wp||{},this.wp.compose=function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=463)}({0:function(t,e){!function(){t.exports=this.wp.element}()},12:function(t,e,n){"use strict";n.d(e,"a",(function(){return u}));var r=n(38);var o=n(30),i=n(39);function u(t,e){return Object(r.a)(t)||function(t,e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t)){var n=[],r=!0,o=!1,i=void 0;try{for(var u,c=t[Symbol.iterator]();!(r=(u=c.next()).done)&&(n.push(u.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}}(t,e)||Object(o.a)(t,e)||Object(i.a)()}},13:function(t,e){!function(){t.exports=this.React}()},151:function(t,e,n){var r=n(13),o={display:"block",opacity:0,position:"absolute",top:0,left:0,height:"100%",width:"100%",overflow:"hidden",pointerEvents:"none",zIndex:-1},i=function(t){var e=t.onResize,n=r.useRef();return function(t,e){var n=function(){return t.current&&t.current.contentDocument&&t.current.contentDocument.defaultView};function o(){e();var t=n();t&&t.addEventListener("resize",e)}r.useEffect((function(){return n()?o():t.current&&t.current.addEventListener&&t.current.addEventListener("load",o),function(){var t=n();t&&"function"==typeof t.removeEventListener&&t.removeEventListener("resize",e)}}),[])}(n,(function(){return e(n)})),r.createElement("iframe",{style:o,src:"about:blank",ref:n,"aria-hidden":!0,tabIndex:-1,frameBorder:0})},u=function(t){return{width:null!=t?t.offsetWidth:null,height:null!=t?t.offsetHeight:null}};t.exports=function(t){void 0===t&&(t=u);var e=r.useState(t(null)),n=e[0],o=e[1],c=r.useCallback((function(e){return o(t(e.current))}),[t]);return[r.useMemo((function(){return r.createElement(i,{onResize:c})}),[c]),n]}},152:function(t,e){!function(){t.exports=this.wp.priorityQueue}()},153:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(13);function o(t,e){var n=Object(r.useState)((function(){return{inputs:e,result:t()}}))[0],o=Object(r.useRef)(n),i=Boolean(e&&o.current.inputs&&function(t,e){if(t.length!==e.length)return!1;for(var n=0;nt.length)&&(e=t.length);for(var n=0,r=new Array(e);nt.length)&&(e=t.length);for(var n=0,r=new Array(e);n0&&void 0!==arguments[0]?arguments[0]:{};this.action=t.action,this.container=t.container,this.emitter=t.emitter,this.target=t.target,this.text=t.text,this.trigger=t.trigger,this.selectedText=""}},{key:"initSelection",value:function(){this.text?this.selectFake():this.target&&this.selectTarget()}},{key:"selectFake",value:function(){var t=this,e="rtl"==document.documentElement.getAttribute("dir");this.removeFake(),this.fakeHandlerCallback=function(){return t.removeFake()},this.fakeHandler=this.container.addEventListener("click",this.fakeHandlerCallback)||!0,this.fakeElem=document.createElement("textarea"),this.fakeElem.style.fontSize="12pt",this.fakeElem.style.border="0",this.fakeElem.style.padding="0",this.fakeElem.style.margin="0",this.fakeElem.style.position="absolute",this.fakeElem.style[e?"right":"left"]="-9999px";var n=window.pageYOffset||document.documentElement.scrollTop;this.fakeElem.style.top=n+"px",this.fakeElem.setAttribute("readonly",""),this.fakeElem.value=this.text,this.container.appendChild(this.fakeElem),this.selectedText=o()(this.fakeElem),this.copyText()}},{key:"removeFake",value:function(){this.fakeHandler&&(this.container.removeEventListener("click",this.fakeHandlerCallback),this.fakeHandler=null,this.fakeHandlerCallback=null),this.fakeElem&&(this.container.removeChild(this.fakeElem),this.fakeElem=null)}},{key:"selectTarget",value:function(){this.selectedText=o()(this.target),this.copyText()}},{key:"copyText",value:function(){var t=void 0;try{t=document.execCommand(this.action)}catch(e){t=!1}this.handleResult(t)}},{key:"handleResult",value:function(t){this.emitter.emit(t?"success":"error",{action:this.action,text:this.selectedText,trigger:this.trigger,clearSelection:this.clearSelection.bind(this)})}},{key:"clearSelection",value:function(){this.trigger&&this.trigger.focus(),document.activeElement.blur(),window.getSelection().removeAllRanges()}},{key:"destroy",value:function(){this.removeFake()}},{key:"action",set:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"copy";if(this._action=t,"copy"!==this._action&&"cut"!==this._action)throw new Error('Invalid "action" value, use either "copy" or "cut"')},get:function(){return this._action}},{key:"target",set:function(t){if(void 0!==t){if(!t||"object"!==(void 0===t?"undefined":i(t))||1!==t.nodeType)throw new Error('Invalid "target" value, use a valid Element');if("copy"===this.action&&t.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if("cut"===this.action&&(t.hasAttribute("readonly")||t.hasAttribute("disabled")))throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes');this._target=t}},get:function(){return this._target}}]),t}(),a=n(1),f=n.n(a),s=n(2),l=n.n(s),d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},p=function(){function t(t,e){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{};this.action="function"==typeof t.action?t.action:this.defaultAction,this.target="function"==typeof t.target?t.target:this.defaultTarget,this.text="function"==typeof t.text?t.text:this.defaultText,this.container="object"===d(t.container)?t.container:document.body}},{key:"listenClick",value:function(t){var e=this;this.listener=l()(t,"click",(function(t){return e.onClick(t)}))}},{key:"onClick",value:function(t){var e=t.delegateTarget||t.currentTarget;this.clipboardAction&&(this.clipboardAction=null),this.clipboardAction=new c({action:this.action(e),target:this.target(e),text:this.text(e),container:this.container,trigger:e,emitter:this})}},{key:"defaultAction",value:function(t){return y("action",t)}},{key:"defaultTarget",value:function(t){var e=y("target",t);if(e)return document.querySelector(e)}},{key:"defaultText",value:function(t){return y("text",t)}},{key:"destroy",value:function(){this.listener.destroy(),this.clipboardAction&&(this.clipboardAction.destroy(),this.clipboardAction=null)}}],[{key:"isSupported",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["copy","cut"],e="string"==typeof t?[t]:t,n=!!document.queryCommandSupported;return e.forEach((function(t){n=n&&!!document.queryCommandSupported(t)})),n}}]),e}(f.a);function y(t,e){var n="data-clipboard-"+t;if(e.hasAttribute(n))return e.getAttribute(n)}e.default=h}]).default},t.exports=r()},288:function(t,e,n){var r;!function(o,i,u){if(o){for(var c,a={8:"backspace",9:"tab",13:"enter",16:"shift",17:"ctrl",18:"alt",20:"capslock",27:"esc",32:"space",33:"pageup",34:"pagedown",35:"end",36:"home",37:"left",38:"up",39:"right",40:"down",45:"ins",46:"del",91:"meta",93:"meta",224:"meta"},f={106:"*",107:"+",109:"-",110:".",111:"/",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},s={"~":"`","!":"1","@":"2","#":"3",$:"4","%":"5","^":"6","&":"7","*":"8","(":"9",")":"0",_:"-","+":"=",":":";",'"':"'","<":",",">":".","?":"/","|":"\\"},l={option:"alt",command:"meta",return:"enter",escape:"esc",plus:"+",mod:/Mac|iPod|iPhone|iPad/.test(navigator.platform)?"meta":"ctrl"},d=1;d<20;++d)a[111+d]="f"+d;for(d=0;d<=9;++d)a[d+96]=d.toString();m.prototype.bind=function(t,e,n){return t=t instanceof Array?t:[t],this._bindMultiple.call(this,t,e,n),this},m.prototype.unbind=function(t,e){return this.bind.call(this,t,(function(){}),e)},m.prototype.trigger=function(t,e){return this._directMap[t+":"+e]&&this._directMap[t+":"+e]({},t),this},m.prototype.reset=function(){return this._callbacks={},this._directMap={},this},m.prototype.stopCallback=function(t,e){if((" "+e.className+" ").indexOf(" mousetrap ")>-1)return!1;if(function t(e,n){return null!==e&&e!==i&&(e===n||t(e.parentNode,n))}(e,this.target))return!1;if("composedPath"in t&&"function"==typeof t.composedPath){var n=t.composedPath()[0];n!==t.target&&(e=n)}return"INPUT"==e.tagName||"SELECT"==e.tagName||"TEXTAREA"==e.tagName||e.isContentEditable},m.prototype.handleKey=function(){var t=this;return t._handleKey.apply(t,arguments)},m.addKeycodes=function(t){for(var e in t)t.hasOwnProperty(e)&&(a[e]=t[e]);c=null},m.init=function(){var t=m(i);for(var e in t)"_"!==e.charAt(0)&&(m[e]=function(e){return function(){return t[e].apply(t,arguments)}}(e))},m.init(),o.Mousetrap=m,t.exports&&(t.exports=m),void 0===(r=function(){return m}.call(e,n,e,t))||(t.exports=r)}function p(t,e,n){t.addEventListener?t.addEventListener(e,n,!1):t.attachEvent("on"+e,n)}function h(t){if("keypress"==t.type){var e=String.fromCharCode(t.which);return t.shiftKey||(e=e.toLowerCase()),e}return a[t.which]?a[t.which]:f[t.which]?f[t.which]:String.fromCharCode(t.which).toLowerCase()}function y(t){return"shift"==t||"ctrl"==t||"alt"==t||"meta"==t}function v(t,e,n){return n||(n=function(){if(!c)for(var t in c={},a)t>95&&t<112||a.hasOwnProperty(t)&&(c[a[t]]=t);return c}()[t]?"keydown":"keypress"),"keypress"==n&&e.length&&(n="keydown"),n}function b(t,e){var n,r,o,i=[];for(n=function(t){return"+"===t?["+"]:(t=t.replace(/\+{2}/g,"+plus")).split("+")}(t),o=0;o1?d(t,c,n,r):(u=b(t,r),e._callbacks[u.key]=e._callbacks[u.key]||[],f(u.key,u.modifiers,{type:u.action},o,t,i),e._callbacks[u.key][o?"unshift":"push"]({callback:n,modifiers:u.modifiers,action:u.action,seq:o,level:i,combo:t}))}e._handleKey=function(t,e,n){var r,o=f(t,e,n),i={},l=0,d=!1;for(r=0;r0&&void 0!==arguments[0]?arguments[0]:{};return o((function(e){return function(n){Object(s.a)(o,n);var r=T(o);function o(){var e;return Object(a.a)(this,o),(e=r.apply(this,arguments)).setState=e.setState.bind(Object(m.a)(e)),e.state=t,e}return Object(f.a)(o,[{key:"render",value:function(){return Object(u.createElement)(e,Object(b.a)({},this.props,this.state,{setState:this.setState}))}}]),o}(u.Component)}),"withState")}var C=n(12),R=n(287),A=n.n(R);function M(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:4e3,r=Object(u.useRef)(),o=Object(u.useState)(!1),i=Object(C.a)(o,2),c=i[0],a=i[1];return Object(u.useEffect)((function(){var o;return r.current=new A.a(t.current,{text:function(){return"function"==typeof e?e():e}}),r.current.on("success",(function(t){var e=t.clearSelection,r=t.trigger;e(),r&&r.focus(),n&&(a(!0),clearTimeout(o),o=setTimeout((function(){return a(!1)}),n))})),function(){r.current.destroy(),clearTimeout(o)}}),[e,n,a]),c}var P="undefined"!=typeof window?u.useLayoutEffect:u.useEffect;function L(t){var e=t.onDragStart,n=t.onDragMove,r=t.onDragEnd,o=Object(u.useState)(!1),i=Object(C.a)(o,2),c=i[0],a=i[1],f=Object(u.useRef)({onDragStart:e,onDragMove:n,onDragEnd:r});P((function(){f.current.onDragStart=e,f.current.onDragMove=n,f.current.onDragEnd=r}),[e,n,r]);var s=Object(u.useCallback)((function(){var t;return f.current.onDragMove&&(t=f.current).onDragMove.apply(t,arguments)}),[]),l=Object(u.useCallback)((function(){var t;f.current.onDragEnd&&(t=f.current).onDragEnd.apply(t,arguments);document.removeEventListener("mousemove",s),document.removeEventListener("mouseup",l),a(!1)}),[]),d=Object(u.useCallback)((function(){var t;f.current.onDragStart&&(t=f.current).onDragStart.apply(t,arguments);document.addEventListener("mousemove",s),document.addEventListener("mouseup",l),a(!0)}),[]);return Object(u.useEffect)((function(){return function(){c&&(document.removeEventListener("mousemove",s),document.removeEventListener("mouseup",l))}}),[c]),{startDrag:d,endDrag:l,isDragging:c}}var D=n(288),I=n.n(D);n(429);function N(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window,e=t.navigator.platform;return-1!==e.indexOf("Mac")||Object(r.includes)(["iPad","iPhone"],e)}var q=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=n.bindGlobal,i=void 0!==o&&o,c=n.eventName,a=void 0===c?"keydown":c,f=n.isDisabled,s=void 0!==f&&f,l=n.target,d=Object(u.useRef)(e);Object(u.useEffect)((function(){d.current=e}),[e]),Object(u.useEffect)((function(){if(!s){var e=new I.a(l?l.current:document);return Object(r.castArray)(t).forEach((function(t){var n=t.split("+"),r=new Set(n.filter((function(t){return t.length>1}))),o=r.has("alt"),u=r.has("shift");if(N()&&(1===r.size&&o||2===r.size&&o&&u))throw new Error("Cannot bind ".concat(t,". Alt and Shift+Alt modifiers are reserved for character input."));e[i?"bindGlobal":"bind"](t,(function(){return d.current.apply(d,arguments)}),a)})),function(){e.reset()}}}),[t,i,a,l,s])};function H(t){var e=Object(u.useState)(t&&window.matchMedia(t).matches),n=Object(C.a)(e,2),r=n[0],o=n[1];return Object(u.useEffect)((function(){if(t){var e=function(){return o(window.matchMedia(t).matches)};e();var n=window.matchMedia(t);return n.addListener(e),function(){n.removeListener(e)}}}),[t]),t&&r}function K(t){var e=Object(u.useRef)(void 0);return Object(u.useEffect)((function(){e.current=t}),[t]),e.current}var z="undefined"!=typeof window&&window.navigator.userAgent.indexOf("Trident")>=0?function(){return!0}:function(){return H("(prefers-reduced-motion: reduce)")},F={huge:1440,wide:1280,large:960,medium:782,small:600,mobile:480},U={">=":"min-width","<":"max-width"},W={">=":function(t,e){return e>=t},"<":function(t,e){return e1&&void 0!==arguments[1]?arguments[1]:">=",n=Object(u.useContext)(G),r=!n&&"(".concat(U[e],": ").concat(F[t],"px)"),o=H(r);return n?W[e](F[t],n):o};B.__experimentalWidthProvider=G.Provider;var Q=B,V=n(151),X=n.n(V).a,Y=n(17),$=n(152);function J(t,e){return"reset"===e.type?e.list:"append"===e.type?[].concat(Object(Y.a)(t),[e.item]):t}var Z=function(t){var e=Object(u.useReducer)(J,[]),n=Object(C.a)(e,2),r=n[0],o=n[1];return Object(u.useEffect)((function(){var e=function(t,e){for(var n=[],r=0;r1&&void 0!==arguments[1]?arguments[1]:"Change detection",n=K(t);Object.entries(null!=n?n:[]).forEach((function(n){var r=Object(C.a)(n,2),o=r[0],i=r[1];i!==t[o]&&console.warn("".concat(e,": ").concat(o," key changed:"),i,t[o])}))},et=n(153);function nt(){for(var t=arguments.length,e=new Array(t),n=0;n0&&void 0!==arguments[0]?arguments[0]:{};this.action=t.action,this.container=t.container,this.emitter=t.emitter,this.target=t.target,this.text=t.text,this.trigger=t.trigger,this.selectedText=""}},{key:"initSelection",value:function(){this.text?this.selectFake():this.target&&this.selectTarget()}},{key:"selectFake",value:function(){var t=this,e="rtl"==document.documentElement.getAttribute("dir");this.removeFake(),this.fakeHandlerCallback=function(){return t.removeFake()},this.fakeHandler=this.container.addEventListener("click",this.fakeHandlerCallback)||!0,this.fakeElem=document.createElement("textarea"),this.fakeElem.style.fontSize="12pt",this.fakeElem.style.border="0",this.fakeElem.style.padding="0",this.fakeElem.style.margin="0",this.fakeElem.style.position="absolute",this.fakeElem.style[e?"right":"left"]="-9999px";var n=window.pageYOffset||document.documentElement.scrollTop;this.fakeElem.style.top=n+"px",this.fakeElem.setAttribute("readonly",""),this.fakeElem.value=this.text,this.container.appendChild(this.fakeElem),this.selectedText=o()(this.fakeElem),this.copyText()}},{key:"removeFake",value:function(){this.fakeHandler&&(this.container.removeEventListener("click",this.fakeHandlerCallback),this.fakeHandler=null,this.fakeHandlerCallback=null),this.fakeElem&&(this.container.removeChild(this.fakeElem),this.fakeElem=null)}},{key:"selectTarget",value:function(){this.selectedText=o()(this.target),this.copyText()}},{key:"copyText",value:function(){var t=void 0;try{t=document.execCommand(this.action)}catch(e){t=!1}this.handleResult(t)}},{key:"handleResult",value:function(t){this.emitter.emit(t?"success":"error",{action:this.action,text:this.selectedText,trigger:this.trigger,clearSelection:this.clearSelection.bind(this)})}},{key:"clearSelection",value:function(){this.trigger&&this.trigger.focus(),document.activeElement.blur(),window.getSelection().removeAllRanges()}},{key:"destroy",value:function(){this.removeFake()}},{key:"action",set:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"copy";if(this._action=t,"copy"!==this._action&&"cut"!==this._action)throw new Error('Invalid "action" value, use either "copy" or "cut"')},get:function(){return this._action}},{key:"target",set:function(t){if(void 0!==t){if(!t||"object"!==(void 0===t?"undefined":i(t))||1!==t.nodeType)throw new Error('Invalid "target" value, use a valid Element');if("copy"===this.action&&t.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if("cut"===this.action&&(t.hasAttribute("readonly")||t.hasAttribute("disabled")))throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes');this._target=t}},get:function(){return this._target}}]),t}(),a=n(1),f=n.n(a),s=n(2),l=n.n(s),d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},p=function(){function t(t,e){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{};this.action="function"==typeof t.action?t.action:this.defaultAction,this.target="function"==typeof t.target?t.target:this.defaultTarget,this.text="function"==typeof t.text?t.text:this.defaultText,this.container="object"===d(t.container)?t.container:document.body}},{key:"listenClick",value:function(t){var e=this;this.listener=l()(t,"click",(function(t){return e.onClick(t)}))}},{key:"onClick",value:function(t){var e=t.delegateTarget||t.currentTarget;this.clipboardAction&&(this.clipboardAction=null),this.clipboardAction=new c({action:this.action(e),target:this.target(e),text:this.text(e),container:this.container,trigger:e,emitter:this})}},{key:"defaultAction",value:function(t){return y("action",t)}},{key:"defaultTarget",value:function(t){var e=y("target",t);if(e)return document.querySelector(e)}},{key:"defaultText",value:function(t){return y("text",t)}},{key:"destroy",value:function(){this.listener.destroy(),this.clipboardAction&&(this.clipboardAction.destroy(),this.clipboardAction=null)}}],[{key:"isSupported",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["copy","cut"],e="string"==typeof t?[t]:t,n=!!document.queryCommandSupported;return e.forEach((function(t){n=n&&!!document.queryCommandSupported(t)})),n}}]),e}(f.a);function y(t,e){var n="data-clipboard-"+t;if(e.hasAttribute(n))return e.getAttribute(n)}e.default=h}]).default},t.exports=r()},289:function(t,e,n){var r;!function(o,i,u){if(o){for(var c,a={8:"backspace",9:"tab",13:"enter",16:"shift",17:"ctrl",18:"alt",20:"capslock",27:"esc",32:"space",33:"pageup",34:"pagedown",35:"end",36:"home",37:"left",38:"up",39:"right",40:"down",45:"ins",46:"del",91:"meta",93:"meta",224:"meta"},f={106:"*",107:"+",109:"-",110:".",111:"/",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},s={"~":"`","!":"1","@":"2","#":"3",$:"4","%":"5","^":"6","&":"7","*":"8","(":"9",")":"0",_:"-","+":"=",":":";",'"':"'","<":",",">":".","?":"/","|":"\\"},l={option:"alt",command:"meta",return:"enter",escape:"esc",plus:"+",mod:/Mac|iPod|iPhone|iPad/.test(navigator.platform)?"meta":"ctrl"},d=1;d<20;++d)a[111+d]="f"+d;for(d=0;d<=9;++d)a[d+96]=d.toString();m.prototype.bind=function(t,e,n){return t=t instanceof Array?t:[t],this._bindMultiple.call(this,t,e,n),this},m.prototype.unbind=function(t,e){return this.bind.call(this,t,(function(){}),e)},m.prototype.trigger=function(t,e){return this._directMap[t+":"+e]&&this._directMap[t+":"+e]({},t),this},m.prototype.reset=function(){return this._callbacks={},this._directMap={},this},m.prototype.stopCallback=function(t,e){if((" "+e.className+" ").indexOf(" mousetrap ")>-1)return!1;if(function t(e,n){return null!==e&&e!==i&&(e===n||t(e.parentNode,n))}(e,this.target))return!1;if("composedPath"in t&&"function"==typeof t.composedPath){var n=t.composedPath()[0];n!==t.target&&(e=n)}return"INPUT"==e.tagName||"SELECT"==e.tagName||"TEXTAREA"==e.tagName||e.isContentEditable},m.prototype.handleKey=function(){var t=this;return t._handleKey.apply(t,arguments)},m.addKeycodes=function(t){for(var e in t)t.hasOwnProperty(e)&&(a[e]=t[e]);c=null},m.init=function(){var t=m(i);for(var e in t)"_"!==e.charAt(0)&&(m[e]=function(e){return function(){return t[e].apply(t,arguments)}}(e))},m.init(),o.Mousetrap=m,t.exports&&(t.exports=m),void 0===(r=function(){return m}.call(e,n,e,t))||(t.exports=r)}function p(t,e,n){t.addEventListener?t.addEventListener(e,n,!1):t.attachEvent("on"+e,n)}function h(t){if("keypress"==t.type){var e=String.fromCharCode(t.which);return t.shiftKey||(e=e.toLowerCase()),e}return a[t.which]?a[t.which]:f[t.which]?f[t.which]:String.fromCharCode(t.which).toLowerCase()}function y(t){return"shift"==t||"ctrl"==t||"alt"==t||"meta"==t}function v(t,e,n){return n||(n=function(){if(!c)for(var t in c={},a)t>95&&t<112||a.hasOwnProperty(t)&&(c[a[t]]=t);return c}()[t]?"keydown":"keypress"),"keypress"==n&&e.length&&(n="keydown"),n}function b(t,e){var n,r,o,i=[];for(n=function(t){return"+"===t?["+"]:(t=t.replace(/\+{2}/g,"+plus")).split("+")}(t),o=0;o1?d(t,c,n,r):(u=b(t,r),e._callbacks[u.key]=e._callbacks[u.key]||[],f(u.key,u.modifiers,{type:u.action},o,t,i),e._callbacks[u.key][o?"unshift":"push"]({callback:n,modifiers:u.modifiers,action:u.action,seq:o,level:i,combo:t}))}e._handleKey=function(t,e,n){var r,o=f(t,e,n),i={},l=0,d=!1;for(r=0;r0&&void 0!==arguments[0]?arguments[0]:{};return o((function(e){return function(n){Object(s.a)(o,n);var r=T(o);function o(){var e;return Object(a.a)(this,o),(e=r.apply(this,arguments)).setState=e.setState.bind(Object(m.a)(e)),e.state=t,e}return Object(f.a)(o,[{key:"render",value:function(){return Object(u.createElement)(e,Object(b.a)({},this.props,this.state,{setState:this.setState}))}}]),o}(u.Component)}),"withState")}var C=n(12),R=n(288),A=n.n(R);function M(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:4e3,r=Object(u.useRef)(),o=Object(u.useState)(!1),i=Object(C.a)(o,2),c=i[0],a=i[1];return Object(u.useEffect)((function(){var o;return r.current=new A.a(t.current,{text:function(){return"function"==typeof e?e():e}}),r.current.on("success",(function(t){var e=t.clearSelection,r=t.trigger;e(),r&&r.focus(),n&&(a(!0),clearTimeout(o),o=setTimeout((function(){return a(!1)}),n))})),function(){r.current.destroy(),clearTimeout(o)}}),[e,n,a]),c}var P="undefined"!=typeof window?u.useLayoutEffect:u.useEffect;function L(t){var e=t.onDragStart,n=t.onDragMove,r=t.onDragEnd,o=Object(u.useState)(!1),i=Object(C.a)(o,2),c=i[0],a=i[1],f=Object(u.useRef)({onDragStart:e,onDragMove:n,onDragEnd:r});P((function(){f.current.onDragStart=e,f.current.onDragMove=n,f.current.onDragEnd=r}),[e,n,r]);var s=Object(u.useCallback)((function(){var t;return f.current.onDragMove&&(t=f.current).onDragMove.apply(t,arguments)}),[]),l=Object(u.useCallback)((function(){var t;f.current.onDragEnd&&(t=f.current).onDragEnd.apply(t,arguments);document.removeEventListener("mousemove",s),document.removeEventListener("mouseup",l),a(!1)}),[]),d=Object(u.useCallback)((function(){var t;f.current.onDragStart&&(t=f.current).onDragStart.apply(t,arguments);document.addEventListener("mousemove",s),document.addEventListener("mouseup",l),a(!0)}),[]);return Object(u.useEffect)((function(){return function(){c&&(document.removeEventListener("mousemove",s),document.removeEventListener("mouseup",l))}}),[c]),{startDrag:d,endDrag:l,isDragging:c}}var D=n(289),I=n.n(D);n(443);function N(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window,e=t.navigator.platform;return-1!==e.indexOf("Mac")||Object(r.includes)(["iPad","iPhone"],e)}var q=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=n.bindGlobal,i=void 0!==o&&o,c=n.eventName,a=void 0===c?"keydown":c,f=n.isDisabled,s=void 0!==f&&f,l=n.target,d=Object(u.useRef)(e);Object(u.useEffect)((function(){d.current=e}),[e]),Object(u.useEffect)((function(){if(!s){var e=new I.a(l?l.current:document);return Object(r.castArray)(t).forEach((function(t){var n=t.split("+"),r=new Set(n.filter((function(t){return t.length>1}))),o=r.has("alt"),u=r.has("shift");if(N()&&(1===r.size&&o||2===r.size&&o&&u))throw new Error("Cannot bind ".concat(t,". Alt and Shift+Alt modifiers are reserved for character input."));e[i?"bindGlobal":"bind"](t,(function(){return d.current.apply(d,arguments)}),a)})),function(){e.reset()}}}),[t,i,a,l,s])};function H(t){var e=Object(u.useState)(t&&window.matchMedia(t).matches),n=Object(C.a)(e,2),r=n[0],o=n[1];return Object(u.useEffect)((function(){if(t){var e=function(){return o(window.matchMedia(t).matches)};e();var n=window.matchMedia(t);return n.addListener(e),function(){n.removeListener(e)}}}),[t]),t&&r}function K(t){var e=Object(u.useRef)(void 0);return Object(u.useEffect)((function(){e.current=t}),[t]),e.current}var z="undefined"!=typeof window&&window.navigator.userAgent.indexOf("Trident")>=0?function(){return!0}:function(){return H("(prefers-reduced-motion: reduce)")},F={huge:1440,wide:1280,large:960,medium:782,small:600,mobile:480},U={">=":"min-width","<":"max-width"},W={">=":function(t,e){return e>=t},"<":function(t,e){return e1&&void 0!==arguments[1]?arguments[1]:">=",n=Object(u.useContext)(G),r=!n&&"(".concat(U[e],": ").concat(F[t],"px)"),o=H(r);return n?W[e](F[t],n):o};B.__experimentalWidthProvider=G.Provider;var Q=B,V=n(151),X=n.n(V).a,Y=n(17),$=n(152);function J(t,e){return"reset"===e.type?e.list:"append"===e.type?[].concat(Object(Y.a)(t),[e.item]):t}var Z=function(t){var e=Object(u.useReducer)(J,[]),n=Object(C.a)(e,2),r=n[0],o=n[1];return Object(u.useEffect)((function(){var e=function(t,e){for(var n=[],r=0;r1&&void 0!==arguments[1]?arguments[1]:"Change detection",n=K(t);Object.entries(null!=n?n:[]).forEach((function(n){var r=Object(C.a)(n,2),o=r[0],i=r[1];i!==t[o]&&console.warn("".concat(e,": ").concat(o," key changed:"),i,t[o])}))},et=n(153);function nt(){for(var t=arguments.length,e=new Array(t),n=0;n 2 && _args3[2] !== undefined ? _args3[2] : ''; - query = _args3.length > 3 ? _args3[3] : undefined; - _context3.next = 4; + key = _args4.length > 2 && _args4[2] !== undefined ? _args4[2] : ''; + query = _args4.length > 3 ? _args4[3] : undefined; + _context4.next = 4; return getKindEntities(kind); case 4: - entities = _context3.sent; + entities = _context4.sent; entity = Object(external_this_lodash_["find"])(entities, { kind: kind, name: name }); if (entity) { - _context3.next = 8; + _context4.next = 8; break; } - return _context3.abrupt("return"); + return _context4.abrupt("return"); case 8: if (query !== undefined && query._fields) { @@ -4313,7 +4362,7 @@ function resolvers_getEntityRecord(kind, name) { })); if (!(query !== undefined)) { - _context3.next = 17; + _context4.next = 17; break; } @@ -4323,36 +4372,36 @@ function resolvers_getEntityRecord(kind, name) { // fields, so it's tested here, prior to initiating the REST request, // and without causing `getEntityRecords` resolution to occur. - _context3.next = 14; + _context4.next = 14; return Object(external_this_wp_dataControls_["syncSelect"])('core', 'hasEntityRecords', kind, name, query); case 14: - hasRecords = _context3.sent; + hasRecords = _context4.sent; if (!hasRecords) { - _context3.next = 17; + _context4.next = 17; break; } - return _context3.abrupt("return"); + return _context4.abrupt("return"); case 17: - _context3.next = 19; + _context4.next = 19; return Object(external_this_wp_dataControls_["apiFetch"])({ path: path }); case 19: - record = _context3.sent; - _context3.next = 22; + record = _context4.sent; + _context4.next = 22; return receiveEntityRecords(kind, name, record, query); case 22: case "end": - return _context3.stop(); + return _context4.stop(); } } - }, resolvers_marked3); + }, resolvers_marked4); } /** * Requests an entity's record from the REST API. @@ -4378,28 +4427,28 @@ function resolvers_getEntityRecords(kind, name) { entity, path, records, - _args4 = arguments; - return external_this_regeneratorRuntime_default.a.wrap(function getEntityRecords$(_context4) { + _args5 = arguments; + return external_this_regeneratorRuntime_default.a.wrap(function getEntityRecords$(_context5) { while (1) { - switch (_context4.prev = _context4.next) { + switch (_context5.prev = _context5.next) { case 0: - query = _args4.length > 2 && _args4[2] !== undefined ? _args4[2] : {}; - _context4.next = 3; + query = _args5.length > 2 && _args5[2] !== undefined ? _args5[2] : {}; + _context5.next = 3; return getKindEntities(kind); case 3: - entities = _context4.sent; + entities = _context5.sent; entity = Object(external_this_lodash_["find"])(entities, { kind: kind, name: name }); if (entity) { - _context4.next = 7; + _context5.next = 7; break; } - return _context4.abrupt("return"); + return _context5.abrupt("return"); case 7: if (query._fields) { @@ -4414,15 +4463,15 @@ function resolvers_getEntityRecords(kind, name) { path = Object(external_this_wp_url_["addQueryArgs"])(entity.baseURL, resolvers_objectSpread(resolvers_objectSpread({}, query), {}, { context: 'edit' })); - _context4.t0 = Object; - _context4.next = 12; + _context5.t0 = Object; + _context5.next = 12; return Object(external_this_wp_dataControls_["apiFetch"])({ path: path }); case 12: - _context4.t1 = _context4.sent; - records = _context4.t0.values.call(_context4.t0, _context4.t1); + _context5.t1 = _context5.sent; + records = _context5.t0.values.call(_context5.t0, _context5.t1); // If we request fields but the result doesn't contain the fields, // explicitely set these fields as "undefined" @@ -4439,15 +4488,15 @@ function resolvers_getEntityRecords(kind, name) { }); } - _context4.next = 17; + _context5.next = 17; return receiveEntityRecords(kind, name, records, query); case 17: case "end": - return _context4.stop(); + return _context5.stop(); } } - }, resolvers_marked4); + }, resolvers_marked5); } resolvers_getEntityRecords.shouldInvalidate = function (action, kind, name) { @@ -4460,26 +4509,26 @@ resolvers_getEntityRecords.shouldInvalidate = function (action, kind, name) { function resolvers_getCurrentTheme() { var activeThemes; - return external_this_regeneratorRuntime_default.a.wrap(function getCurrentTheme$(_context5) { + return external_this_regeneratorRuntime_default.a.wrap(function getCurrentTheme$(_context6) { while (1) { - switch (_context5.prev = _context5.next) { + switch (_context6.prev = _context6.next) { case 0: - _context5.next = 2; + _context6.next = 2; return Object(external_this_wp_dataControls_["apiFetch"])({ path: '/wp/v2/themes?status=active' }); case 2: - activeThemes = _context5.sent; - _context5.next = 5; + activeThemes = _context6.sent; + _context6.next = 5; return receiveCurrentTheme(activeThemes[0]); case 5: case "end": - return _context5.stop(); + return _context6.stop(); } } - }, resolvers_marked5); + }, resolvers_marked6); } /** * Requests theme supports data from the index. @@ -4487,26 +4536,26 @@ function resolvers_getCurrentTheme() { function resolvers_getThemeSupports() { var activeThemes; - return external_this_regeneratorRuntime_default.a.wrap(function getThemeSupports$(_context6) { + return external_this_regeneratorRuntime_default.a.wrap(function getThemeSupports$(_context7) { while (1) { - switch (_context6.prev = _context6.next) { + switch (_context7.prev = _context7.next) { case 0: - _context6.next = 2; + _context7.next = 2; return Object(external_this_wp_dataControls_["apiFetch"])({ path: '/wp/v2/themes?status=active' }); case 2: - activeThemes = _context6.sent; - _context6.next = 5; + activeThemes = _context7.sent; + _context7.next = 5; return receiveThemeSupports(activeThemes[0].theme_supports); case 5: case "end": - return _context6.stop(); + return _context7.stop(); } } - }, resolvers_marked6); + }, _marked7); } /** * Requests a preview from the from the Embed API. @@ -4516,12 +4565,12 @@ function resolvers_getThemeSupports() { function resolvers_getEmbedPreview(url) { var embedProxyResponse; - return external_this_regeneratorRuntime_default.a.wrap(function getEmbedPreview$(_context7) { + return external_this_regeneratorRuntime_default.a.wrap(function getEmbedPreview$(_context8) { while (1) { - switch (_context7.prev = _context7.next) { + switch (_context8.prev = _context8.next) { case 0: - _context7.prev = 0; - _context7.next = 3; + _context8.prev = 0; + _context8.next = 3; return Object(external_this_wp_dataControls_["apiFetch"])({ path: Object(external_this_wp_url_["addQueryArgs"])('/oembed/1.0/proxy', { url: url @@ -4529,26 +4578,26 @@ function resolvers_getEmbedPreview(url) { }); case 3: - embedProxyResponse = _context7.sent; - _context7.next = 6; + embedProxyResponse = _context8.sent; + _context8.next = 6; return receiveEmbedPreview(url, embedProxyResponse); case 6: - _context7.next = 12; + _context8.next = 12; break; case 8: - _context7.prev = 8; - _context7.t0 = _context7["catch"](0); - _context7.next = 12; + _context8.prev = 8; + _context8.t0 = _context8["catch"](0); + _context8.next = 12; return receiveEmbedPreview(url, false); case 12: case "end": - return _context7.stop(); + return _context8.stop(); } } - }, _marked7, null, [[0, 8]]); + }, _marked8, null, [[0, 8]]); } /** * Requests Upload Permissions from the REST API. @@ -4558,21 +4607,21 @@ function resolvers_getEmbedPreview(url) { */ function resolvers_hasUploadPermissions() { - return external_this_regeneratorRuntime_default.a.wrap(function hasUploadPermissions$(_context8) { + return external_this_regeneratorRuntime_default.a.wrap(function hasUploadPermissions$(_context9) { while (1) { - switch (_context8.prev = _context8.next) { + switch (_context9.prev = _context9.next) { case 0: external_this_wp_deprecated_default()("select( 'core' ).hasUploadPermissions()", { alternative: "select( 'core' ).canUser( 'create', 'media' )" }); - return _context8.delegateYield(resolvers_canUser('create', 'media'), "t0", 2); + return _context9.delegateYield(resolvers_canUser('create', 'media'), "t0", 2); case 2: case "end": - return _context8.stop(); + return _context9.stop(); } } - }, _marked8); + }, _marked9); } /** * Checks whether the current user can perform the given action on the given @@ -4586,9 +4635,9 @@ function resolvers_hasUploadPermissions() { function resolvers_canUser(action, resource, id) { var methods, method, path, response, allowHeader, key, isAllowed; - return external_this_regeneratorRuntime_default.a.wrap(function canUser$(_context9) { + return external_this_regeneratorRuntime_default.a.wrap(function canUser$(_context10) { while (1) { - switch (_context9.prev = _context9.next) { + switch (_context10.prev = _context10.next) { case 0: methods = { create: 'POST', @@ -4599,7 +4648,7 @@ function resolvers_canUser(action, resource, id) { method = methods[action]; if (method) { - _context9.next = 4; + _context10.next = 4; break; } @@ -4607,8 +4656,8 @@ function resolvers_canUser(action, resource, id) { case 4: path = id ? "/wp/v2/".concat(resource, "/").concat(id) : "/wp/v2/".concat(resource); - _context9.prev = 5; - _context9.next = 8; + _context10.prev = 5; + _context10.next = 8; return Object(external_this_wp_dataControls_["apiFetch"])({ path: path, // Ideally this would always be an OPTIONS request, but unfortunately there's @@ -4620,14 +4669,14 @@ function resolvers_canUser(action, resource, id) { }); case 8: - response = _context9.sent; - _context9.next = 14; + response = _context10.sent; + _context10.next = 14; break; case 11: - _context9.prev = 11; - _context9.t0 = _context9["catch"](5); - return _context9.abrupt("return"); + _context10.prev = 11; + _context10.t0 = _context10["catch"](5); + return _context10.abrupt("return"); case 14: if (Object(external_this_lodash_["hasIn"])(response, ['headers', 'get'])) { @@ -4642,15 +4691,15 @@ function resolvers_canUser(action, resource, id) { key = Object(external_this_lodash_["compact"])([action, resource, id]).join('/'); isAllowed = Object(external_this_lodash_["includes"])(allowHeader, method); - _context9.next = 19; + _context10.next = 19; return receiveUserPermission(key, isAllowed); case 19: case "end": - return _context9.stop(); + return _context10.stop(); } } - }, _marked9, null, [[5, 11]]); + }, _marked10, null, [[5, 11]]); } /** * Request autosave data from the REST API. @@ -4662,38 +4711,38 @@ function resolvers_canUser(action, resource, id) { function resolvers_getAutosaves(postType, postId) { var _yield$select, restBase, autosaves; - return external_this_regeneratorRuntime_default.a.wrap(function getAutosaves$(_context10) { + return external_this_regeneratorRuntime_default.a.wrap(function getAutosaves$(_context11) { while (1) { - switch (_context10.prev = _context10.next) { + switch (_context11.prev = _context11.next) { case 0: - _context10.next = 2; + _context11.next = 2; return Object(external_this_wp_dataControls_["select"])('core', 'getPostType', postType); case 2: - _yield$select = _context10.sent; + _yield$select = _context11.sent; restBase = _yield$select.rest_base; - _context10.next = 6; + _context11.next = 6; return Object(external_this_wp_dataControls_["apiFetch"])({ path: "/wp/v2/".concat(restBase, "/").concat(postId, "/autosaves?context=edit") }); case 6: - autosaves = _context10.sent; + autosaves = _context11.sent; if (!(autosaves && autosaves.length)) { - _context10.next = 10; + _context11.next = 10; break; } - _context10.next = 10; + _context11.next = 10; return receiveAutosaves(postId, autosaves); case 10: case "end": - return _context10.stop(); + return _context11.stop(); } } - }, _marked10); + }, _marked11); } /** * Request autosave data from the REST API. @@ -4706,19 +4755,19 @@ function resolvers_getAutosaves(postType, postId) { */ function resolvers_getAutosave(postType, postId) { - return external_this_regeneratorRuntime_default.a.wrap(function getAutosave$(_context11) { + return external_this_regeneratorRuntime_default.a.wrap(function getAutosave$(_context12) { while (1) { - switch (_context11.prev = _context11.next) { + switch (_context12.prev = _context12.next) { case 0: - _context11.next = 2; + _context12.next = 2; return Object(external_this_wp_dataControls_["select"])('core', 'getAutosaves', postType, postId); case 2: case "end": - return _context11.stop(); + return _context12.stop(); } } - }, _marked11); + }, _marked12); } // EXTERNAL MODULE: external {"this":["wp","element"]} diff --git a/wp-includes/js/dist/core-data.min.js b/wp-includes/js/dist/core-data.min.js index f162424855..1a9cad29d5 100644 --- a/wp-includes/js/dist/core-data.min.js +++ b/wp-includes/js/dist/core-data.min.js @@ -1,2 +1,2 @@ /*! This file is auto-generated */ -this.wp=this.wp||{},this.wp.coreData=function(e){var t={};function r(n){if(t[n])return t[n].exports;var c=t[n]={i:n,l:!1,exports:{}};return e[n].call(c.exports,c,c.exports,r),c.l=!0,c.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var c in e)r.d(n,c,function(t){return e[t]}.bind(null,c));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=465)}({0:function(e,t){!function(){e.exports=this.wp.element}()},1:function(e,t){!function(){e.exports=this.wp.i18n}()},106:function(e,t,r){"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function c(e,t){for(var r=0;r1&&void 0!==arguments[1]?arguments[1]:this;this._map.forEach((function(c,i){null!==i&&"object"===n(i)&&(c=c[1]),e.call(r,c,i,t)}))}},{key:"clear",value:function(){this._map=new Map,this._arrayTreeMap=new Map,this._objectTreeMap=new Map}},{key:"size",get:function(){return this._map.size}}])&&c(t.prototype,r),a&&c(t,a),e}();e.exports=a},11:function(e,t){!function(){e.exports=this.wp.blocks}()},12:function(e,t,r){"use strict";r.d(t,"a",(function(){return a}));var n=r(38);var c=r(30),i=r(39);function a(e,t){return Object(n.a)(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var r=[],n=!0,c=!1,i=void 0;try{for(var a,o=e[Symbol.iterator]();!(n=(a=o.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(e){c=!0,i=e}finally{try{n||null==o.return||o.return()}finally{if(c)throw i}}return r}}(e,t)||Object(c.a)(e,t)||Object(i.a)()}},17:function(e,t,r){"use strict";r.d(t,"a",(function(){return a}));var n=r(27);var c=r(37),i=r(30);function a(e){return function(e){if(Array.isArray(e))return Object(n.a)(e)}(e)||Object(c.a)(e)||Object(i.a)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},2:function(e,t){!function(){e.exports=this.lodash}()},20:function(e,t){!function(){e.exports=this.regeneratorRuntime}()},27:function(e,t,r){"use strict";function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0,c=n[e];if(void 0===c)return r;var i=t(r[c],n);return i===r[c]?r:h(h({},r),{},Object(a.a)({},c,i))}}},g=r(20),j=r.n(g),m=r(1),w=r(31);function _(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function R(e){for(var t=1;t3&&void 0!==arguments[3]&&arguments[3];return{type:"REMOVE_ITEMS",itemIds:Object(d.castArray)(r),kind:e,name:t,invalidateCache:n}}function T(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return R(R({},k(e)),{},{query:t})}var S=j.a.mark(H),I=j.a.mark(Q),P=j.a.mark(W),A=j.a.mark(K),D=j.a.mark(z),U=j.a.mark($);function C(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function M(e){for(var t=1;t4&&void 0!==arguments[4]&&arguments[4];return"postType"===e&&(r=Object(d.castArray)(r).map((function(e){return"auto-draft"===e.status?M(M({},e),{},{title:""}):e}))),M(M({},n?T(r,n):k(r)),{},{kind:e,name:t,invalidateCache:c})}function F(e){return{type:"RECEIVE_CURRENT_THEME",currentTheme:e}}function Y(e){return{type:"RECEIVE_THEME_SUPPORTS",themeSupports:e}}function B(e,t){return{type:"RECEIVE_EMBED_PREVIEW",url:e,preview:t}}function H(e,t,r,n){var c,i,a,o,s;return j.a.wrap((function(f){for(;;)switch(f.prev=f.next){case 0:return f.next=2,se(e);case 2:if(c=f.sent,i=Object(d.find)(c,{kind:e,name:t}),o=!1,i){f.next=7;break}return f.abrupt("return");case 7:return f.next=9,{type:"DELETE_ENTITY_RECORD_START",kind:e,name:t,recordId:r};case 9:return f.prev=9,s="".concat(i.baseURL,"/").concat(r),n&&(s=Object(w.addQueryArgs)(s,n)),f.next=14,Object(u.apiFetch)({path:s,method:"DELETE"});case 14:return o=f.sent,f.next=17,x(e,t,r,!0);case 17:f.next=22;break;case 19:f.prev=19,f.t0=f.catch(9),a=f.t0;case 22:return f.next=24,{type:"DELETE_ENTITY_RECORD_FINISH",kind:e,name:t,recordId:r,error:a};case 24:return f.abrupt("return",o);case 25:case"end":return f.stop()}}),S,null,[[9,19]])}function Q(e,t,r,n){var c,i,a,o,s,f,l,p,b,v=arguments;return j.a.wrap((function(y){for(;;)switch(y.prev=y.next){case 0:return c=v.length>4&&void 0!==v[4]?v[4]:{},y.next=3,Object(u.syncSelect)("core","getEntity",e,t);case 3:if(i=y.sent){y.next=6;break}throw new Error("The entity being edited (".concat(e,", ").concat(t,") does not have a loaded config."));case 6:return a=i.transientEdits,o=void 0===a?{}:a,s=i.mergedEdits,f=void 0===s?{}:s,y.next=9,Object(u.syncSelect)("core","getRawEntityRecord",e,t,r);case 9:return l=y.sent,y.next=12,Object(u.syncSelect)("core","getEditedEntityRecord",e,t,r);case 12:return p=y.sent,b={kind:e,name:t,recordId:r,edits:Object.keys(n).reduce((function(e,t){var r=l[t],c=p[t],i=f[t]?M(M({},c),n[t]):n[t];return e[t]=Object(d.isEqual)(r,i)?void 0:i,e}),{}),transientEdits:o},y.abrupt("return",M(M({type:"EDIT_ENTITY_RECORD"},b),{},{meta:{undo:!c.undoIgnore&&M(M({},b),{},{edits:Object.keys(n).reduce((function(e,t){return e[t]=p[t],e}),{})})}}));case 15:case"end":return y.stop()}}),I)}function W(){var e;return j.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Object(u.syncSelect)("core","getUndoEdit");case 2:if(e=t.sent){t.next=5;break}return t.abrupt("return");case 5:return t.next=7,M(M({type:"EDIT_ENTITY_RECORD"},e),{},{meta:{isUndo:!0}});case 7:case"end":return t.stop()}}),P)}function K(){var e;return j.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Object(u.syncSelect)("core","getRedoEdit");case 2:if(e=t.sent){t.next=5;break}return t.abrupt("return");case 5:return t.next=7,M(M({type:"EDIT_ENTITY_RECORD"},e),{},{meta:{isRedo:!0}});case 7:case"end":return t.stop()}}),A)}function G(){return{type:"CREATE_UNDO_LEVEL"}}function z(e,t,r){var n,c,i,o,f,l,p,b,v,y,O,h,E,g,m,w,_,R,k,x,T,S,I,P,A,U=arguments;return j.a.wrap((function(j){for(;;)switch(j.prev=j.next){case 0:return n=U.length>3&&void 0!==U[3]?U[3]:{isAutosave:!1},c=n.isAutosave,i=void 0!==c&&c,j.next=3,se(e);case 3:if(o=j.sent,f=Object(d.find)(o,{kind:e,name:t})){j.next=7;break}return j.abrupt("return");case 7:l=f.key||ne,p=r[l],b=0,v=Object.entries(r);case 10:if(!(b2&&void 0!==arguments[2]?arguments[2]:"get",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],c=Object(d.find)(ce,{kind:e,name:t}),i="root"===e?"":Object(d.upperFirst)(Object(d.camelCase)(e)),a=Object(d.upperFirst)(Object(d.camelCase)(t))+(n?"s":""),o=n&&c.plural?Object(d.upperFirst)(Object(d.camelCase)(c.plural)):a;return"".concat(r).concat(i).concat(o)};function se(e){var t,r;return j.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,Object(u.syncSelect)("core","getEntitiesByKind",e);case 2:if(!(t=n.sent)||0===t.length){n.next=5;break}return n.abrupt("return",t);case 5:if(r=Object(d.find)(ie,{name:e})){n.next=8;break}return n.abrupt("return",[]);case 8:return n.next=10,r.loadEntities();case 10:return t=n.sent,n.next=13,L(t);case 13:return n.abrupt("return",t);case 14:case"end":return n.stop()}}),re)}var fe=function(e){return"string"==typeof e?e.split(","):Array.isArray(e)?e:null};var de=function(e){var t=new WeakMap;return function(r){var n;return t.has(r)?n=t.get(r):(n=e(r),Object(d.isObjectLike)(r)&&t.set(r,n)),n}}((function(e){for(var t={stableKey:"",page:1,perPage:10,fields:null,include:null},r=Object.keys(e).sort(),n=0;n=c&&o0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0,r=t.type,n=t.page,c=t.perPage,i=t.key,a=void 0===i?ne:i;return"RECEIVE_ITEMS"!==r?e:be(e||[],Object(d.map)(t.items,a),n,c)})),ye=Object(o.combineReducers)({items:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RECEIVE_ITEMS":var r=t.key||ne;return pe(pe({},e),t.items.reduce((function(t,n){var c=n[r];return t[c]=y(e[c],n),t}),{}));case"REMOVE_ITEMS":var n=Object(d.omit)(e,t.itemIds);return n}return e},itemIsComplete:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,r=t.type,n=t.query,c=t.key,i=void 0===c?ne:c;if("RECEIVE_ITEMS"!==r)return e;var a=!n||!Array.isArray(de(n).fields);return pe(pe({},e),t.items.reduce((function(t,r){var n=r[i];return t[n]=e[n]||a,t}),{}))},queries:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RECEIVE_ITEMS":return ve(e,t);case"REMOVE_ITEMS":var r=pe({},e),n=t.itemIds.reduce((function(e,t){return e[t]=!0,e}),{});return Object(d.forEach)(r,(function(e,t){r[t]=Object(d.filter)(e,(function(e){return!n[e]}))})),r;default:return e}}});function Oe(e,t){var r;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return he(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return he(e,t)}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,c=function(){};return{s:c,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:c}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,o=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return a=e.done,e},e:function(e){o=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(o)throw i}}}}function he(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RECEIVE_ITEMS":var r,n=ge({},e),c=Oe(t.items);try{var i=function(){var e=r.value,c=e[t.key],i=n[c];if(!i)return"continue";var a=Object.keys(i).reduce((function(t,r){return Object(d.isEqual)(i[r],Object(d.get)(e[r],"raw",e[r]))||(t[r]=i[r]),t}),{});Object.keys(a).length?n[c]=a:delete n[c]};for(c.s();!(r=c.n()).done;)i()}catch(e){c.e(e)}finally{c.f()}return n;case"EDIT_ENTITY_RECORD":var o=ge(ge({},e[t.recordId]),t.edits);return Object.keys(o).forEach((function(e){void 0===o[e]&&delete o[e]})),ge(ge({},e),{},Object(a.a)({},t.recordId,o))}return e},saving:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SAVE_ENTITY_RECORD_START":case"SAVE_ENTITY_RECORD_FINISH":return ge(ge({},e),{},Object(a.a)({},t.recordId,{pending:"SAVE_ENTITY_RECORD_START"===t.type,error:t.error,isAutosave:t.isAutosave}))}return e},deleting:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"DELETE_ENTITY_RECORD_START":case"DELETE_ENTITY_RECORD_FINISH":return ge(ge({},e),{},Object(a.a)({},t.recordId,{pending:"DELETE_ENTITY_RECORD_START"===t.type,error:t.error}))}return e}}))}function me(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ce,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"ADD_ENTITIES":return[].concat(Object(f.a)(e),Object(f.a)(t.entities))}return e}var we,_e=[];_e.offset=0;var Re=Object(o.combineReducers)({terms:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RECEIVE_TERMS":return ge(ge({},e),{},Object(a.a)({},t.taxonomy,t.terms))}return e},users:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{byId:{},queries:{}},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RECEIVE_USER_QUERY":return{byId:ge(ge({},e.byId),Object(d.keyBy)(t.users,"id")),queries:ge(ge({},e.queries),{},Object(a.a)({},t.queryID,Object(d.map)(t.users,(function(e){return e.id}))))}}return e},currentTheme:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RECEIVE_CURRENT_THEME":return t.currentTheme.stylesheet}return e},currentUser:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RECEIVE_CURRENT_USER":return t.currentUser}return e},taxonomies:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RECEIVE_TAXONOMIES":return t.taxonomies}return e},themes:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RECEIVE_CURRENT_THEME":return ge(ge({},e),{},Object(a.a)({},t.currentTheme.stylesheet,t.currentTheme))}return e},themeSupports:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RECEIVE_THEME_SUPPORTS":return ge(ge({},e),t.themeSupports)}return e},entities:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,r=me(e.config,t),n=e.reducer;if(!n||r!==e.config){var c=Object(d.groupBy)(r,"kind");n=Object(o.combineReducers)(Object.entries(c).reduce((function(e,t){var r=Object(s.a)(t,2),n=r[0],c=r[1],i=Object(o.combineReducers)(c.reduce((function(e,t){return ge(ge({},e),{},Object(a.a)({},t.name,je(t)))}),{}));return e[n]=i,e}),{}))}var i=n(e.data,t);return i===e.data&&r===e.config&&n===e.reducer?e:{reducer:n,data:i,config:r}},undo:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:_e,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"EDIT_ENTITY_RECORD":case"CREATE_UNDO_LEVEL":var r,n="CREATE_UNDO_LEVEL"===t.type,c=!n&&(t.meta.isUndo||t.meta.isRedo);if(n?t=we:c||(we=Object.keys(t.edits).some((function(e){return!t.transientEdits[e]}))?t:ge(ge({},t),{},{edits:ge(ge({},we&&we.edits),t.edits)})),c){if((r=Object(f.a)(e)).offset=e.offset+(t.meta.isUndo?-1:1),!e.flattenedUndo)return r;n=!0,t=we}if(!t.meta.undo)return e;if(!n&&!Object.keys(t.edits).some((function(e){return!t.transientEdits[e]})))return(r=Object(f.a)(e)).flattenedUndo=ge(ge({},e.flattenedUndo),t.edits),r.offset=e.offset,r;(r=r||e.slice(0,e.offset||void 0)).offset=r.offset||0,r.pop(),n||r.push({kind:t.meta.undo.kind,name:t.meta.undo.name,recordId:t.meta.undo.recordId,edits:ge(ge({},e.flattenedUndo),t.meta.undo.edits)});var i=Object.values(t.meta.undo.edits).filter((function(e){return"function"!=typeof e})),a=Object.values(t.edits).filter((function(e){return"function"!=typeof e}));return p()(i,a)||r.push({kind:t.kind,name:t.name,recordId:t.recordId,edits:n?ge(ge({},e.flattenedUndo),t.edits):t.edits}),r}return e},embedPreviews:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RECEIVE_EMBED_PREVIEW":var r=t.url,n=t.preview;return ge(ge({},e),{},Object(a.a)({},r,n))}return e},userPermissions:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RECEIVE_USER_PERMISSION":return ge(ge({},e),{},Object(a.a)({},t.key,t.isAllowed))}return e},autosaves:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RECEIVE_AUTOSAVES":var r=t.postId,n=t.autosaves;return ge(ge({},e),{},Object(a.a)({},r,n))}return e}}),ke=r(42),xe=r(36),Te=r.n(xe),Se=r(106),Ie=r.n(Se),Pe=new WeakMap;function Ae(e,t){var r,n=de(t),c=n.stableKey,i=n.page,a=n.perPage,o=n.include,u=n.fields;if(Array.isArray(o)&&!c?r=o:e.queries[c]&&(r=e.queries[c]),!r)return null;for(var s=-1===a?0:(i-1)*a,f=-1===a?r.length:Math.min(s+a,r.length),l=[],p=s;p1&&void 0!==arguments[1]?arguments[1]:{},r=Pe.get(e);if(r){var n=r.get(t);if(void 0!==n)return n}else r=new Ie.a,Pe.set(e,r);var c=Ae(e,t);return r.set(t,c),c}));function Ue(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Ce(e){for(var t=1;t0}var Xe=Object(ke.a)((function(e,t,r,n){return Ce(Ce({},He(e,t,r,n)),Ge(e,t,r,n))}),(function(e){return[e.entities.data]}));function Je(e,t,r,n){var c=Object(d.get)(e.entities.data,[t,r,"saving",n],{}),i=c.pending,a=c.isAutosave;return Boolean(i&&a)}function Ze(e,t,r,n){return Object(d.get)(e.entities.data,[t,r,"saving",n,"pending"],!1)}function et(e,t,r,n){return Object(d.get)(e.entities.data,[t,r,"deleting",n,"pending"],!1)}function tt(e,t,r,n){return Object(d.get)(e.entities.data,[t,r,"saving",n,"error"])}function rt(e,t,r,n){return Object(d.get)(e.entities.data,[t,r,"deleting",n,"error"])}function nt(e){return e.undo.offset}function ct(e){return e.undo[e.undo.length-2+nt(e)]}function it(e){return e.undo[e.undo.length+nt(e)]}function at(e){return Boolean(ct(e))}function ot(e){return Boolean(it(e))}function ut(e){return e.themes[e.currentTheme]}function st(e){return e.themeSupports}function ft(e,t){return e.embedPreviews[t]}function dt(e,t){var r=e.embedPreviews[t],n=''+t+"";return!!r&&r.html===n}function lt(e){return Te()("select( 'core' ).hasUploadPermissions()",{alternative:"select( 'core' ).canUser( 'create', 'media' )"}),Object(d.defaultTo)(pt(e,"create","media"),!0)}function pt(e,t,r,n){var c=Object(d.compact)([t,r,n]).join("/");return Object(d.get)(e,["userPermissions",c])}function bt(e,t,r){return e.autosaves[r]}function vt(e,t,r,n){if(void 0!==n){var c=e.autosaves[r];return Object(d.find)(c,{author:n})}}var yt=Object(o.createRegistrySelector)((function(e){return function(t,r,n){return e("core").hasFinishedResolution("getAutosaves",[r,n])}})),Ot=Object(ke.a)((function(){return[]}),(function(e){return[e.undo.length,e.undo.offset,e.undo.flattenedUndo]})),ht=function(e,t){return j.a.mark((function r(){var n,c,i,a=arguments;return j.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:for(n=a.length,c=new Array(n),i=0;i2&&void 0!==s[2]?s[2]:"",n=s.length>3?s[3]:void 0,l.next=4,se(e);case 4:if(c=l.sent,i=Object(d.find)(c,{kind:e,name:t})){l.next=8;break}return l.abrupt("return");case 8:if(void 0!==n&&n._fields&&(n=gt(gt({},n),{},{_fields:Object(d.uniq)([].concat(Object(f.a)(fe(n._fields)||[]),[i.key||ne])).join()})),a=Object(w.addQueryArgs)(i.baseURL+"/"+r,gt(gt({},n),{},{context:"edit"})),void 0===n){l.next=17;break}return n=gt(gt({},n),{},{include:[r]}),l.next=14,Object(u.syncSelect)("core","hasEntityRecords",e,t,n);case 14:if(!l.sent){l.next=17;break}return l.abrupt("return");case 17:return l.next=19,Object(u.apiFetch)({path:a});case 19:return o=l.sent,l.next=22,q(e,t,o,n);case 22:case"end":return l.stop()}}),wt)}var Ct=ht(Ut,"getEntityRecord"),Mt=ht(Ct,"getRawEntityRecord");function Vt(e,t){var r,n,c,i,a,o=arguments;return j.a.wrap((function(s){for(;;)switch(s.prev=s.next){case 0:return r=o.length>2&&void 0!==o[2]?o[2]:{},s.next=3,se(e);case 3:if(n=s.sent,c=Object(d.find)(n,{kind:e,name:t})){s.next=7;break}return s.abrupt("return");case 7:return r._fields&&(r=gt(gt({},r),{},{_fields:Object(d.uniq)([].concat(Object(f.a)(fe(r._fields)||[]),[c.key||ne])).join()})),i=Object(w.addQueryArgs)(c.baseURL,gt(gt({},r),{},{context:"edit"})),s.t0=Object,s.next=12,Object(u.apiFetch)({path:i});case 12:return s.t1=s.sent,a=s.t0.values.call(s.t0,s.t1),r._fields&&(a=a.map((function(e){return r._fields.split(",").forEach((function(t){e.hasOwnProperty(t)||(e[t]=void 0)})),e}))),s.next=17,q(e,t,a,r);case 17:case"end":return s.stop()}}),_t)}function Nt(){var e;return j.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Object(u.apiFetch)({path:"/wp/v2/themes?status=active"});case 2:return e=t.sent,t.next=5,F(e[0]);case 5:case"end":return t.stop()}}),Rt)}function Lt(){var e;return j.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Object(u.apiFetch)({path:"/wp/v2/themes?status=active"});case 2:return e=t.sent,t.next=5,Y(e[0].theme_supports);case 5:case"end":return t.stop()}}),kt)}function qt(e){var t;return j.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.prev=0,r.next=3,Object(u.apiFetch)({path:Object(w.addQueryArgs)("/oembed/1.0/proxy",{url:e})});case 3:return t=r.sent,r.next=6,B(e,t);case 6:r.next=12;break;case 8:return r.prev=8,r.t0=r.catch(0),r.next=12,B(e,!1);case 12:case"end":return r.stop()}}),xt,null,[[0,8]])}function Ft(){return j.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return Te()("select( 'core' ).hasUploadPermissions()",{alternative:"select( 'core' ).canUser( 'create', 'media' )"}),e.delegateYield(Yt("create","media"),"t0",2);case 2:case"end":return e.stop()}}),Tt)}function Yt(e,t,r){var n,c,i,a,o,s;return j.a.wrap((function(f){for(;;)switch(f.prev=f.next){case 0:if(n={create:"POST",read:"GET",update:"PUT",delete:"DELETE"}[e]){f.next=4;break}throw new Error("'".concat(e,"' is not a valid action."));case 4:return c=r?"/wp/v2/".concat(t,"/").concat(r):"/wp/v2/".concat(t),f.prev=5,f.next=8,Object(u.apiFetch)({path:c,method:r?"GET":"OPTIONS",parse:!1});case 8:i=f.sent,f.next=14;break;case 11:return f.prev=11,f.t0=f.catch(5),f.abrupt("return");case 14:return a=Object(d.hasIn)(i,["headers","get"])?i.headers.get("allow"):Object(d.get)(i,["headers","Allow"],""),o=Object(d.compact)([e,t,r]).join("/"),s=Object(d.includes)(a,n),f.next=19,J(o,s);case 19:case"end":return f.stop()}}),St,null,[[5,11]])}function Bt(e,t){var r,n,c;return j.a.wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,Object(u.select)("core","getPostType",e);case 2:return r=i.sent,n=r.rest_base,i.next=6,Object(u.apiFetch)({path:"/wp/v2/".concat(n,"/").concat(t,"/autosaves?context=edit")});case 6:if(!(c=i.sent)||!c.length){i.next=10;break}return i.next=10,Z(t,c);case 10:case"end":return i.stop()}}),It)}function Ht(e,t){return j.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,Object(u.select)("core","getAutosaves",e,t);case 2:case"end":return r.stop()}}),Pt)}Vt.shouldInvalidate=function(e,t,r){return("RECEIVE_ITEMS"===e.type||"REMOVE_ITEMS"===e.type)&&e.invalidateCache&&t===e.kind&&r===e.name};var Qt=r(0),Wt=r(11);function Kt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Gt(e){for(var t=1;t2&&void 0!==arguments[2]?arguments[2]:{},n=r.initialEdits,c=r.blocksProp,i=void 0===c?"blocks":c,a=r.contentProp,u=void 0===a?"content":a,f=r.id,d=Jt(e,t),l=null!=f?f:d,p=Zt(e,t,u,l),b=Object(s.a)(p,2),v=b[0],y=b[1],O=Object(o.useDispatch)("core"),h=O.editEntityRecord;Object(Qt.useEffect)((function(){n&&h(e,t,l,n,{undoIgnore:!0})}),[l]);var E=Object(Qt.useMemo)((function(){if(v&&"function"!=typeof v){var e=Object(Wt.parse)(v);return e.length?e:[]}return[]}),[v]),g=Zt(e,t,i,l),j=Object(s.a)(g,2),m=j[0],w=void 0===m?E:m,_=j[1],R=Object(Qt.useCallback)((function(e){_(e),y((function(e){var t=e.blocks;return Object(Wt.serialize)(t)}))}),[_,y]);return[w,_,R]}function tr(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function rr(e){for(var t=1;t1?t-1:0),a=1;a1?c-1:0),a=1;a1&&void 0!==arguments[1]?arguments[1]:this;this._map.forEach((function(c,a){null!==a&&"object"===n(a)&&(c=c[1]),e.call(r,c,a,t)}))}},{key:"clear",value:function(){this._map=new Map,this._arrayTreeMap=new Map,this._objectTreeMap=new Map}},{key:"size",get:function(){return this._map.size}}])&&c(t.prototype,r),i&&c(t,i),e}();e.exports=i},11:function(e,t){!function(){e.exports=this.wp.blocks}()},12:function(e,t,r){"use strict";r.d(t,"a",(function(){return i}));var n=r(38);var c=r(31),a=r(39);function i(e,t){return Object(n.a)(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var r=[],n=!0,c=!1,a=void 0;try{for(var i,o=e[Symbol.iterator]();!(n=(i=o.next()).done)&&(r.push(i.value),!t||r.length!==t);n=!0);}catch(e){c=!0,a=e}finally{try{n||null==o.return||o.return()}finally{if(c)throw a}}return r}}(e,t)||Object(c.a)(e,t)||Object(a.a)()}},17:function(e,t,r){"use strict";r.d(t,"a",(function(){return i}));var n=r(27);var c=r(37),a=r(31);function i(e){return function(e){if(Array.isArray(e))return Object(n.a)(e)}(e)||Object(c.a)(e)||Object(a.a)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},2:function(e,t){!function(){e.exports=this.lodash}()},20:function(e,t){!function(){e.exports=this.regeneratorRuntime}()},27:function(e,t,r){"use strict";function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0,c=n[e];if(void 0===c)return r;var a=t(r[c],n);return a===r[c]?r:h(h({},r),{},Object(i.a)({},c,a))}}},E=r(20),j=r.n(E),m=r(1),w=r(30);function _(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function R(e){for(var t=1;t3&&void 0!==arguments[3]&&arguments[3];return{type:"REMOVE_ITEMS",itemIds:Object(d.castArray)(r),kind:e,name:t,invalidateCache:n}}function T(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return R(R({},k(e)),{},{query:t})}var S=j.a.mark(Q),I=j.a.mark(H),P=j.a.mark(W),A=j.a.mark(G),D=j.a.mark(z),U=j.a.mark($);function C(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function M(e){for(var t=1;t4&&void 0!==arguments[4]&&arguments[4];return"postType"===e&&(r=Object(d.castArray)(r).map((function(e){return"auto-draft"===e.status?M(M({},e),{},{title:""}):e}))),M(M({},n?T(r,n):k(r)),{},{kind:e,name:t,invalidateCache:c})}function F(e){return{type:"RECEIVE_CURRENT_THEME",currentTheme:e}}function Y(e){return{type:"RECEIVE_THEME_SUPPORTS",themeSupports:e}}function B(e,t){return{type:"RECEIVE_EMBED_PREVIEW",url:e,preview:t}}function Q(e,t,r,n){var c,a,i,o,s;return j.a.wrap((function(f){for(;;)switch(f.prev=f.next){case 0:return f.next=2,se(e);case 2:if(c=f.sent,a=Object(d.find)(c,{kind:e,name:t}),o=!1,a){f.next=7;break}return f.abrupt("return");case 7:return f.next=9,{type:"DELETE_ENTITY_RECORD_START",kind:e,name:t,recordId:r};case 9:return f.prev=9,s="".concat(a.baseURL,"/").concat(r),n&&(s=Object(w.addQueryArgs)(s,n)),f.next=14,Object(u.apiFetch)({path:s,method:"DELETE"});case 14:return o=f.sent,f.next=17,x(e,t,r,!0);case 17:f.next=22;break;case 19:f.prev=19,f.t0=f.catch(9),i=f.t0;case 22:return f.next=24,{type:"DELETE_ENTITY_RECORD_FINISH",kind:e,name:t,recordId:r,error:i};case 24:return f.abrupt("return",o);case 25:case"end":return f.stop()}}),S,null,[[9,19]])}function H(e,t,r,n){var c,a,i,o,s,f,l,p,b,v=arguments;return j.a.wrap((function(y){for(;;)switch(y.prev=y.next){case 0:return c=v.length>4&&void 0!==v[4]?v[4]:{},y.next=3,Object(u.syncSelect)("core","getEntity",e,t);case 3:if(a=y.sent){y.next=6;break}throw new Error("The entity being edited (".concat(e,", ").concat(t,") does not have a loaded config."));case 6:return i=a.transientEdits,o=void 0===i?{}:i,s=a.mergedEdits,f=void 0===s?{}:s,y.next=9,Object(u.syncSelect)("core","getRawEntityRecord",e,t,r);case 9:return l=y.sent,y.next=12,Object(u.syncSelect)("core","getEditedEntityRecord",e,t,r);case 12:return p=y.sent,b={kind:e,name:t,recordId:r,edits:Object.keys(n).reduce((function(e,t){var r=l[t],c=p[t],a=f[t]?M(M({},c),n[t]):n[t];return e[t]=Object(d.isEqual)(r,a)?void 0:a,e}),{}),transientEdits:o},y.abrupt("return",M(M({type:"EDIT_ENTITY_RECORD"},b),{},{meta:{undo:!c.undoIgnore&&M(M({},b),{},{edits:Object.keys(n).reduce((function(e,t){return e[t]=p[t],e}),{})})}}));case 15:case"end":return y.stop()}}),I)}function W(){var e;return j.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Object(u.syncSelect)("core","getUndoEdit");case 2:if(e=t.sent){t.next=5;break}return t.abrupt("return");case 5:return t.next=7,M(M({type:"EDIT_ENTITY_RECORD"},e),{},{meta:{isUndo:!0}});case 7:case"end":return t.stop()}}),P)}function G(){var e;return j.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Object(u.syncSelect)("core","getRedoEdit");case 2:if(e=t.sent){t.next=5;break}return t.abrupt("return");case 5:return t.next=7,M(M({type:"EDIT_ENTITY_RECORD"},e),{},{meta:{isRedo:!0}});case 7:case"end":return t.stop()}}),A)}function K(){return{type:"CREATE_UNDO_LEVEL"}}function z(e,t,r){var n,c,a,o,f,l,p,b,v,y,O,h,g,E,m,w,_,R,k,x,T,S,I,P,A,U=arguments;return j.a.wrap((function(j){for(;;)switch(j.prev=j.next){case 0:return n=U.length>3&&void 0!==U[3]?U[3]:{isAutosave:!1},c=n.isAutosave,a=void 0!==c&&c,j.next=3,se(e);case 3:if(o=j.sent,f=Object(d.find)(o,{kind:e,name:t})){j.next=7;break}return j.abrupt("return");case 7:l=f.key||ne,p=r[l],b=0,v=Object.entries(r);case 10:if(!(b2&&void 0!==arguments[2]?arguments[2]:"get",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],c=Object(d.find)(ce,{kind:e,name:t}),a="root"===e?"":Object(d.upperFirst)(Object(d.camelCase)(e)),i=Object(d.upperFirst)(Object(d.camelCase)(t))+(n?"s":""),o=n&&c.plural?Object(d.upperFirst)(Object(d.camelCase)(c.plural)):i;return"".concat(r).concat(a).concat(o)};function se(e){var t,r;return j.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,Object(u.syncSelect)("core","getEntitiesByKind",e);case 2:if(!(t=n.sent)||0===t.length){n.next=5;break}return n.abrupt("return",t);case 5:if(r=Object(d.find)(ae,{name:e})){n.next=8;break}return n.abrupt("return",[]);case 8:return n.next=10,r.loadEntities();case 10:return t=n.sent,n.next=13,L(t);case 13:return n.abrupt("return",t);case 14:case"end":return n.stop()}}),re)}var fe=function(e){return"string"==typeof e?e.split(","):Array.isArray(e)?e:null};var de=function(e){var t=new WeakMap;return function(r){var n;return t.has(r)?n=t.get(r):(n=e(r),Object(d.isObjectLike)(r)&&t.set(r,n)),n}}((function(e){for(var t={stableKey:"",page:1,perPage:10,fields:null,include:null},r=Object.keys(e).sort(),n=0;n=c&&o0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0,r=t.type,n=t.page,c=t.perPage,a=t.key,i=void 0===a?ne:a;return"RECEIVE_ITEMS"!==r?e:be(e||[],Object(d.map)(t.items,i),n,c)})),ye=Object(o.combineReducers)({items:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RECEIVE_ITEMS":var r=t.key||ne;return pe(pe({},e),t.items.reduce((function(t,n){var c=n[r];return t[c]=y(e[c],n),t}),{}));case"REMOVE_ITEMS":var n=Object(d.omit)(e,t.itemIds);return n}return e},itemIsComplete:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,r=t.type,n=t.query,c=t.key,a=void 0===c?ne:c;if("RECEIVE_ITEMS"!==r)return e;var i=!n||!Array.isArray(de(n).fields);return pe(pe({},e),t.items.reduce((function(t,r){var n=r[a];return t[n]=e[n]||i,t}),{}))},queries:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RECEIVE_ITEMS":return ve(e,t);case"REMOVE_ITEMS":var r=pe({},e),n=t.itemIds.reduce((function(e,t){return e[t]=!0,e}),{});return Object(d.forEach)(r,(function(e,t){r[t]=Object(d.filter)(e,(function(e){return!n[e]}))})),r;default:return e}}});function Oe(e,t){var r;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return he(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return he(e,t)}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,c=function(){};return{s:c,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:c}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,o=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return i=e.done,e},e:function(e){o=!0,a=e},f:function(){try{i||null==r.return||r.return()}finally{if(o)throw a}}}}function he(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RECEIVE_ITEMS":var r,n=Ee({},e),c=Oe(t.items);try{var a=function(){var e=r.value,c=e[t.key],a=n[c];if(!a)return"continue";var i=Object.keys(a).reduce((function(t,r){return Object(d.isEqual)(a[r],Object(d.get)(e[r],"raw",e[r]))||(t[r]=a[r]),t}),{});Object.keys(i).length?n[c]=i:delete n[c]};for(c.s();!(r=c.n()).done;)a()}catch(e){c.e(e)}finally{c.f()}return n;case"EDIT_ENTITY_RECORD":var o=Ee(Ee({},e[t.recordId]),t.edits);return Object.keys(o).forEach((function(e){void 0===o[e]&&delete o[e]})),Ee(Ee({},e),{},Object(i.a)({},t.recordId,o))}return e},saving:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SAVE_ENTITY_RECORD_START":case"SAVE_ENTITY_RECORD_FINISH":return Ee(Ee({},e),{},Object(i.a)({},t.recordId,{pending:"SAVE_ENTITY_RECORD_START"===t.type,error:t.error,isAutosave:t.isAutosave}))}return e},deleting:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"DELETE_ENTITY_RECORD_START":case"DELETE_ENTITY_RECORD_FINISH":return Ee(Ee({},e),{},Object(i.a)({},t.recordId,{pending:"DELETE_ENTITY_RECORD_START"===t.type,error:t.error}))}return e}}))}function me(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ce,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"ADD_ENTITIES":return[].concat(Object(f.a)(e),Object(f.a)(t.entities))}return e}var we,_e=[];_e.offset=0;var Re=Object(o.combineReducers)({terms:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RECEIVE_TERMS":return Ee(Ee({},e),{},Object(i.a)({},t.taxonomy,t.terms))}return e},users:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{byId:{},queries:{}},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RECEIVE_USER_QUERY":return{byId:Ee(Ee({},e.byId),Object(d.keyBy)(t.users,"id")),queries:Ee(Ee({},e.queries),{},Object(i.a)({},t.queryID,Object(d.map)(t.users,(function(e){return e.id}))))}}return e},currentTheme:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RECEIVE_CURRENT_THEME":return t.currentTheme.stylesheet}return e},currentUser:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RECEIVE_CURRENT_USER":return t.currentUser}return e},taxonomies:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RECEIVE_TAXONOMIES":return t.taxonomies}return e},themes:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RECEIVE_CURRENT_THEME":return Ee(Ee({},e),{},Object(i.a)({},t.currentTheme.stylesheet,t.currentTheme))}return e},themeSupports:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RECEIVE_THEME_SUPPORTS":return Ee(Ee({},e),t.themeSupports)}return e},entities:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,r=me(e.config,t),n=e.reducer;if(!n||r!==e.config){var c=Object(d.groupBy)(r,"kind");n=Object(o.combineReducers)(Object.entries(c).reduce((function(e,t){var r=Object(s.a)(t,2),n=r[0],c=r[1],a=Object(o.combineReducers)(c.reduce((function(e,t){return Ee(Ee({},e),{},Object(i.a)({},t.name,je(t)))}),{}));return e[n]=a,e}),{}))}var a=n(e.data,t);return a===e.data&&r===e.config&&n===e.reducer?e:{reducer:n,data:a,config:r}},undo:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:_e,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"EDIT_ENTITY_RECORD":case"CREATE_UNDO_LEVEL":var r,n="CREATE_UNDO_LEVEL"===t.type,c=!n&&(t.meta.isUndo||t.meta.isRedo);if(n?t=we:c||(we=Object.keys(t.edits).some((function(e){return!t.transientEdits[e]}))?t:Ee(Ee({},t),{},{edits:Ee(Ee({},we&&we.edits),t.edits)})),c){if((r=Object(f.a)(e)).offset=e.offset+(t.meta.isUndo?-1:1),!e.flattenedUndo)return r;n=!0,t=we}if(!t.meta.undo)return e;if(!n&&!Object.keys(t.edits).some((function(e){return!t.transientEdits[e]})))return(r=Object(f.a)(e)).flattenedUndo=Ee(Ee({},e.flattenedUndo),t.edits),r.offset=e.offset,r;(r=r||e.slice(0,e.offset||void 0)).offset=r.offset||0,r.pop(),n||r.push({kind:t.meta.undo.kind,name:t.meta.undo.name,recordId:t.meta.undo.recordId,edits:Ee(Ee({},e.flattenedUndo),t.meta.undo.edits)});var a=Object.values(t.meta.undo.edits).filter((function(e){return"function"!=typeof e})),i=Object.values(t.edits).filter((function(e){return"function"!=typeof e}));return p()(a,i)||r.push({kind:t.kind,name:t.name,recordId:t.recordId,edits:n?Ee(Ee({},e.flattenedUndo),t.edits):t.edits}),r}return e},embedPreviews:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RECEIVE_EMBED_PREVIEW":var r=t.url,n=t.preview;return Ee(Ee({},e),{},Object(i.a)({},r,n))}return e},userPermissions:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RECEIVE_USER_PERMISSION":return Ee(Ee({},e),{},Object(i.a)({},t.key,t.isAllowed))}return e},autosaves:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RECEIVE_AUTOSAVES":var r=t.postId,n=t.autosaves;return Ee(Ee({},e),{},Object(i.a)({},r,n))}return e}}),ke=r(42),xe=r(36),Te=r.n(xe),Se=r(108),Ie=r.n(Se),Pe=new WeakMap;function Ae(e,t){var r,n=de(t),c=n.stableKey,a=n.page,i=n.perPage,o=n.include,u=n.fields;if(Array.isArray(o)&&!c?r=o:e.queries[c]&&(r=e.queries[c]),!r)return null;for(var s=-1===i?0:(a-1)*i,f=-1===i?r.length:Math.min(s+i,r.length),l=[],p=s;p1&&void 0!==arguments[1]?arguments[1]:{},r=Pe.get(e);if(r){var n=r.get(t);if(void 0!==n)return n}else r=new Ie.a,Pe.set(e,r);var c=Ae(e,t);return r.set(t,c),c}));function Ue(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Ce(e){for(var t=1;t0}var Je=Object(ke.a)((function(e,t,r,n){return Ce(Ce({},He(e,t,r,n)),ze(e,t,r,n))}),(function(e){return[e.entities.data]}));function Ze(e,t,r,n){var c=Object(d.get)(e.entities.data,[t,r,"saving",n],{}),a=c.pending,i=c.isAutosave;return Boolean(a&&i)}function et(e,t,r,n){return Object(d.get)(e.entities.data,[t,r,"saving",n,"pending"],!1)}function tt(e,t,r,n){return Object(d.get)(e.entities.data,[t,r,"deleting",n,"pending"],!1)}function rt(e,t,r,n){return Object(d.get)(e.entities.data,[t,r,"saving",n,"error"])}function nt(e,t,r,n){return Object(d.get)(e.entities.data,[t,r,"deleting",n,"error"])}function ct(e){return e.undo.offset}function at(e){return e.undo[e.undo.length-2+ct(e)]}function it(e){return e.undo[e.undo.length+ct(e)]}function ot(e){return Boolean(at(e))}function ut(e){return Boolean(it(e))}function st(e){return e.themes[e.currentTheme]}function ft(e){return e.themeSupports}function dt(e,t){return e.embedPreviews[t]}function lt(e,t){var r=e.embedPreviews[t],n=''+t+"";return!!r&&r.html===n}function pt(e){return Te()("select( 'core' ).hasUploadPermissions()",{alternative:"select( 'core' ).canUser( 'create', 'media' )"}),Object(d.defaultTo)(bt(e,"create","media"),!0)}function bt(e,t,r,n){var c=Object(d.compact)([t,r,n]).join("/");return Object(d.get)(e,["userPermissions",c])}function vt(e,t,r){return e.autosaves[r]}function yt(e,t,r,n){if(void 0!==n){var c=e.autosaves[r];return Object(d.find)(c,{author:n})}}var Ot=Object(o.createRegistrySelector)((function(e){return function(t,r,n){return e("core").hasFinishedResolution("getAutosaves",[r,n])}})),ht=Object(ke.a)((function(){return[]}),(function(e){return[e.undo.length,e.undo.offset,e.undo.flattenedUndo]})),gt=function(e,t){return j.a.mark((function r(){var n,c,a,i=arguments;return j.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:for(n=i.length,c=new Array(n),a=0;a2&&void 0!==s[2]?s[2]:"",n=s.length>3?s[3]:void 0,l.next=4,se(e);case 4:if(c=l.sent,a=Object(d.find)(c,{kind:e,name:t})){l.next=8;break}return l.abrupt("return");case 8:if(void 0!==n&&n._fields&&(n=jt(jt({},n),{},{_fields:Object(d.uniq)([].concat(Object(f.a)(fe(n._fields)||[]),[a.key||ne])).join()})),i=Object(w.addQueryArgs)(a.baseURL+"/"+r,jt(jt({},n),{},{context:"edit"})),void 0===n){l.next=17;break}return n=jt(jt({},n),{},{include:[r]}),l.next=14,Object(u.syncSelect)("core","hasEntityRecords",e,t,n);case 14:if(!l.sent){l.next=17;break}return l.abrupt("return");case 17:return l.next=19,Object(u.apiFetch)({path:i});case 19:return o=l.sent,l.next=22,q(e,t,o,n);case 22:case"end":return l.stop()}}),Rt)}var Nt=gt(Vt,"getEntityRecord"),Lt=gt(Nt,"getRawEntityRecord");function qt(e,t){var r,n,c,a,i,o=arguments;return j.a.wrap((function(s){for(;;)switch(s.prev=s.next){case 0:return r=o.length>2&&void 0!==o[2]?o[2]:{},s.next=3,se(e);case 3:if(n=s.sent,c=Object(d.find)(n,{kind:e,name:t})){s.next=7;break}return s.abrupt("return");case 7:return r._fields&&(r=jt(jt({},r),{},{_fields:Object(d.uniq)([].concat(Object(f.a)(fe(r._fields)||[]),[c.key||ne])).join()})),a=Object(w.addQueryArgs)(c.baseURL,jt(jt({},r),{},{context:"edit"})),s.t0=Object,s.next=12,Object(u.apiFetch)({path:a});case 12:return s.t1=s.sent,i=s.t0.values.call(s.t0,s.t1),r._fields&&(i=i.map((function(e){return r._fields.split(",").forEach((function(t){e.hasOwnProperty(t)||(e[t]=void 0)})),e}))),s.next=17,q(e,t,i,r);case 17:case"end":return s.stop()}}),kt)}function Ft(){var e;return j.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Object(u.apiFetch)({path:"/wp/v2/themes?status=active"});case 2:return e=t.sent,t.next=5,F(e[0]);case 5:case"end":return t.stop()}}),xt)}function Yt(){var e;return j.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Object(u.apiFetch)({path:"/wp/v2/themes?status=active"});case 2:return e=t.sent,t.next=5,Y(e[0].theme_supports);case 5:case"end":return t.stop()}}),Tt)}function Bt(e){var t;return j.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.prev=0,r.next=3,Object(u.apiFetch)({path:Object(w.addQueryArgs)("/oembed/1.0/proxy",{url:e})});case 3:return t=r.sent,r.next=6,B(e,t);case 6:r.next=12;break;case 8:return r.prev=8,r.t0=r.catch(0),r.next=12,B(e,!1);case 12:case"end":return r.stop()}}),St,null,[[0,8]])}function Qt(){return j.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return Te()("select( 'core' ).hasUploadPermissions()",{alternative:"select( 'core' ).canUser( 'create', 'media' )"}),e.delegateYield(Ht("create","media"),"t0",2);case 2:case"end":return e.stop()}}),It)}function Ht(e,t,r){var n,c,a,i,o,s;return j.a.wrap((function(f){for(;;)switch(f.prev=f.next){case 0:if(n={create:"POST",read:"GET",update:"PUT",delete:"DELETE"}[e]){f.next=4;break}throw new Error("'".concat(e,"' is not a valid action."));case 4:return c=r?"/wp/v2/".concat(t,"/").concat(r):"/wp/v2/".concat(t),f.prev=5,f.next=8,Object(u.apiFetch)({path:c,method:r?"GET":"OPTIONS",parse:!1});case 8:a=f.sent,f.next=14;break;case 11:return f.prev=11,f.t0=f.catch(5),f.abrupt("return");case 14:return i=Object(d.hasIn)(a,["headers","get"])?a.headers.get("allow"):Object(d.get)(a,["headers","Allow"],""),o=Object(d.compact)([e,t,r]).join("/"),s=Object(d.includes)(i,n),f.next=19,J(o,s);case 19:case"end":return f.stop()}}),Pt,null,[[5,11]])}function Wt(e,t){var r,n,c;return j.a.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,Object(u.select)("core","getPostType",e);case 2:return r=a.sent,n=r.rest_base,a.next=6,Object(u.apiFetch)({path:"/wp/v2/".concat(n,"/").concat(t,"/autosaves?context=edit")});case 6:if(!(c=a.sent)||!c.length){a.next=10;break}return a.next=10,Z(t,c);case 10:case"end":return a.stop()}}),At)}function Gt(e,t){return j.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,Object(u.select)("core","getAutosaves",e,t);case 2:case"end":return r.stop()}}),Dt)}qt.shouldInvalidate=function(e,t,r){return("RECEIVE_ITEMS"===e.type||"REMOVE_ITEMS"===e.type)&&e.invalidateCache&&t===e.kind&&r===e.name};var Kt=r(0),zt=r(11);function $t(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Xt(e){for(var t=1;t2&&void 0!==arguments[2]?arguments[2]:{},n=r.initialEdits,c=r.blocksProp,a=void 0===c?"blocks":c,i=r.contentProp,u=void 0===i?"content":i,f=r.id,d=tr(e,t),l=null!=f?f:d,p=rr(e,t,u,l),b=Object(s.a)(p,2),v=b[0],y=b[1],O=Object(o.useDispatch)("core"),h=O.editEntityRecord;Object(Kt.useEffect)((function(){n&&h(e,t,l,n,{undoIgnore:!0})}),[l]);var g=Object(Kt.useMemo)((function(){if(v&&"function"!=typeof v){var e=Object(zt.parse)(v);return e.length?e:[]}return[]}),[v]),E=rr(e,t,a,l),j=Object(s.a)(E,2),m=j[0],w=void 0===m?g:m,_=j[1],R=Object(Kt.useCallback)((function(e){_(e),y((function(e){var t=e.blocks;return Object(zt.serialize)(t)}))}),[_,y]);return[w,_,R]}function cr(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ar(e){for(var t=1;t1?t-1:0),i=1;i1?c-1:0),i=1;i1&&void 0!==arguments[1]?arguments[1]:this;this._map.forEach((function(o,i){null!==i&&"object"===n(i)&&(o=o[1]),e.call(r,o,i,t)}))}},{key:"clear",value:function(){this._map=new Map,this._arrayTreeMap=new Map,this._objectTreeMap=new Map}},{key:"size",get:function(){return this._map.size}}])&&o(t.prototype,r),u&&o(t,u),e}();e.exports=u},12:function(e,t,r){"use strict";r.d(t,"a",(function(){return u}));var n=r(38);var o=r(30),i=r(39);function u(e,t){return Object(n.a)(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var r=[],n=!0,o=!1,i=void 0;try{for(var u,c=e[Symbol.iterator]();!(n=(u=c.next()).done)&&(r.push(u.value),!t||r.length!==t);n=!0);}catch(e){o=!0,i=e}finally{try{n||null==c.return||c.return()}finally{if(o)throw i}}return r}}(e,t)||Object(o.a)(e,t)||Object(i.a)()}},13:function(e,t){!function(){e.exports=this.React}()},131:function(e,t){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(e){"object"==typeof window&&(r=window)}e.exports=r},152:function(e,t){!function(){e.exports=this.wp.priorityQueue}()},153:function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var n=r(13);function o(e,t){var r=Object(n.useState)((function(){return{inputs:t,result:e()}}))[0],o=Object(n.useRef)(r),i=Boolean(t&&o.current.inputs&&function(e,t){if(e.length!==t.length)return!1;for(var r=0;re.length)&&(t=e.length);for(var r=0,n=new Array(t);r2?r-2:0),o=2;o2?r-2:0),o=2;o2?r-2:0),o=2;o0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0,n=r[K];if(void 0===n)return t;var o=e(t[n],r);return o===t[n]?t:H(H({},t),{},Object(s.a)({},n,o))}})((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new x.a,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"START_RESOLUTION":case"FINISH_RESOLUTION":var r="START_RESOLUTION"===t.type,n=new x.a(e);return n.set(t.args,r),n;case"INVALIDATE_RESOLUTION":var o=new x.a(e);return o.delete(t.args),o}return e})),z=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"INVALIDATE_RESOLUTION_FOR_STORE":return{};case"INVALIDATE_RESOLUTION_FOR_STORE_SELECTOR":return Object(f.has)(e,[t.selectorName])?Object(f.omit)(e,[t.selectorName]):e;case"START_RESOLUTION":case"FINISH_RESOLUTION":case"INVALIDATE_RESOLUTION":return W(e,t)}return e};function X(e,t,r){var n=Object(f.get)(e,[t]);if(n)return n.get(r)}function B(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return void 0!==X(e,t,r)}function J(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return!1===X(e,t,r)}function Y(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return!0===X(e,t,r)}function q(e){return e}function Q(e,t){return{type:"START_RESOLUTION",selectorName:e,args:t}}function $(e,t){return{type:"FINISH_RESOLUTION",selectorName:e,args:t}}function Z(e,t){return{type:"INVALIDATE_RESOLUTION",selectorName:e,args:t}}function ee(){return{type:"INVALIDATE_RESOLUTION_FOR_STORE"}}function te(e){return{type:"INVALIDATE_RESOLUTION_FOR_STORE_SELECTOR",selectorName:e}}function re(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ne(e){for(var t=1;t1?r-1:0),o=1;o1?r-1:0),o=1;o3?i-3:0),c=3;c1?o-1:0),u=1;u1?o-1:0),u=1;u0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r={},n=[];function o(){n.forEach((function(e){return e()}))}var i=function(e){return n.push(e),function(){n=Object(f.without)(n,e)}};function u(e){var n=r[e];return n?n.getSelectors():t&&t.select(e)}var c=p()((function(e){return Object(f.mapValues)(Object(f.omit)(e,["getIsResolving","hasStartedResolution","hasFinishedResolution","isResolving","getCachedResolvers"]),(function(t,r){return function(){for(var n=arguments.length,o=new Array(n),u=0;u0,u=Object(f.has)(r,["core/edit-post","preferences","features","fullscreenMode"]);i&&!u&&(o=Object(f.merge)({},o,{preferences:{features:{fullscreenMode:!1}}}));var c=Object(f.get)(r,["core/nux","preferences","areTipsEnabled"]),a=Object(f.has)(r,["core/edit-post","preferences","features","welcomeGuide"]);void 0===c||a||(o=Object(f.merge)({},o,{preferences:{features:{welcomeGuide:c}}})),o!==r["core/edit-post"]&&t.set("core/edit-post",o)};var _e=Re,Pe=r(8),xe=r(0),Te=r(10),Ae=r(153),Ie=r(152),Ne=r(64),De=r.n(Ne),ke=Object(xe.createContext)(ve),Le=ke.Consumer,Ce=ke.Provider,Me=Le,Ue=Ce;function Ve(){return Object(xe.useContext)(ke)}var Fe=Object(xe.createContext)(!1),Ge=(Fe.Consumer,Fe.Provider);var He="undefined"!=typeof window?xe.useLayoutEffect:xe.useEffect,Ke=Object(Ie.createQueue)();function We(e,t){var r,n=Object(xe.useCallback)(e,t),o=Ve(),i=Object(xe.useContext)(Fe),u=Object(Ae.a)((function(){return{queue:!0}}),[o]),c=Object(xe.useReducer)((function(e){return e+1}),0),s=Object(a.a)(c,2)[1],f=Object(xe.useRef)(),l=Object(xe.useRef)(i),p=Object(xe.useRef)(),b=Object(xe.useRef)(),d=Object(xe.useRef)();try{r=f.current!==n||b.current?n(o.select,o):p.current}catch(e){var v="An error occurred while running 'mapSelect': ".concat(e.message);if(b.current)throw v+="\nThe error may be correlated with this previous error:\n",v+="".concat(b.current.stack,"\n\n"),v+="Original stack trace:",new Error(v);console.error(v)}return He((function(){f.current=n,p.current=r,b.current=void 0,d.current=!0,l.current!==i&&(l.current=i,Ke.flush(u))})),He((function(){var e=function(){if(d.current){try{var e=f.current(o.select,o);if(De()(p.current,e))return;p.current=e}catch(e){b.current=e}s()}};l.current?Ke.add(u,e):e();var t=o.subscribe((function(){l.current?Ke.add(u,e):e()}));return function(){d.current=!1,t(),Ke.flush(u)}}),[o]),r}var ze=function(e){return Object(Te.createHigherOrderComponent)((function(t){return Object(Te.pure)((function(r){var n=We((function(t,n){return e(t,r,n)}));return Object(xe.createElement)(t,Object(Pe.a)({},r,n))}))}),"withSelect")},Xe="undefined"!=typeof window?xe.useLayoutEffect:xe.useEffect,Be=function(e,t){var r=Ve(),n=Object(xe.useRef)(e);return Xe((function(){n.current=e})),Object(xe.useMemo)((function(){var e=n.current(r.dispatch,r);return Object(f.mapValues)(e,(function(e,t){return"function"!=typeof e&&console.warn("Property ".concat(t," returned from dispatchMap in useDispatchWithMap must be a function.")),function(){var e;return(e=n.current(r.dispatch,r))[t].apply(e,arguments)}}))}),[r].concat(Object(I.a)(t)))},Je=function(e){return Object(Te.createHigherOrderComponent)((function(t){return function(r){var n=Be((function(t,n){return e(t,r,n)}),[]);return Object(xe.createElement)(t,Object(Pe.a)({},r,n))}}),"withDispatch")},Ye=Object(Te.createHigherOrderComponent)((function(e){return function(t){return Object(xe.createElement)(Me,null,(function(r){return Object(xe.createElement)(e,Object(Pe.a)({},t,{registry:r}))}))}}),"withRegistry"),qe=function(e){var t=Ve().dispatch;return void 0===e?t:t(e)},Qe=ve.select,$e=ve.__experimentalResolveSelect,Ze=ve.dispatch,et=ve.subscribe,tt=ve.registerGenericStore,rt=ve.registerStore,nt=ve.use},5:function(e,t,r){"use strict";function n(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}r.d(t,"a",(function(){return n}))},60:function(e,t,r){e.exports=function(e,t){var r,n,o=0;function i(){var i,u,c=r,a=arguments.length;e:for(;c;){if(c.args.length===arguments.length){for(u=0;u1&&void 0!==arguments[1]?arguments[1]:this;this._map.forEach((function(o,i){null!==i&&"object"===n(i)&&(o=o[1]),e.call(r,o,i,t)}))}},{key:"clear",value:function(){this._map=new Map,this._arrayTreeMap=new Map,this._objectTreeMap=new Map}},{key:"size",get:function(){return this._map.size}}])&&o(t.prototype,r),u&&o(t,u),e}();e.exports=u},12:function(e,t,r){"use strict";r.d(t,"a",(function(){return u}));var n=r(38);var o=r(31),i=r(39);function u(e,t){return Object(n.a)(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var r=[],n=!0,o=!1,i=void 0;try{for(var u,c=e[Symbol.iterator]();!(n=(u=c.next()).done)&&(r.push(u.value),!t||r.length!==t);n=!0);}catch(e){o=!0,i=e}finally{try{n||null==c.return||c.return()}finally{if(o)throw i}}return r}}(e,t)||Object(o.a)(e,t)||Object(i.a)()}},121:function(e,t){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(e){"object"==typeof window&&(r=window)}e.exports=r},13:function(e,t){!function(){e.exports=this.React}()},152:function(e,t){!function(){e.exports=this.wp.priorityQueue}()},153:function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var n=r(13);function o(e,t){var r=Object(n.useState)((function(){return{inputs:t,result:e()}}))[0],o=Object(n.useRef)(r),i=Boolean(t&&o.current.inputs&&function(e,t){if(e.length!==t.length)return!1;for(var r=0;re.length)&&(t=e.length);for(var r=0,n=new Array(t);r2?r-2:0),o=2;o2?r-2:0),o=2;o2?r-2:0),o=2;o0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0,n=r[K];if(void 0===n)return t;var o=e(t[n],r);return o===t[n]?t:H(H({},t),{},Object(s.a)({},n,o))}})((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new x.a,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"START_RESOLUTION":case"FINISH_RESOLUTION":var r="START_RESOLUTION"===t.type,n=new x.a(e);return n.set(t.args,r),n;case"INVALIDATE_RESOLUTION":var o=new x.a(e);return o.delete(t.args),o}return e})),z=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"INVALIDATE_RESOLUTION_FOR_STORE":return{};case"INVALIDATE_RESOLUTION_FOR_STORE_SELECTOR":return Object(f.has)(e,[t.selectorName])?Object(f.omit)(e,[t.selectorName]):e;case"START_RESOLUTION":case"FINISH_RESOLUTION":case"INVALIDATE_RESOLUTION":return W(e,t)}return e};function X(e,t,r){var n=Object(f.get)(e,[t]);if(n)return n.get(r)}function B(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return void 0!==X(e,t,r)}function J(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return!1===X(e,t,r)}function Y(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return!0===X(e,t,r)}function q(e){return e}function Q(e,t){return{type:"START_RESOLUTION",selectorName:e,args:t}}function $(e,t){return{type:"FINISH_RESOLUTION",selectorName:e,args:t}}function Z(e,t){return{type:"INVALIDATE_RESOLUTION",selectorName:e,args:t}}function ee(){return{type:"INVALIDATE_RESOLUTION_FOR_STORE"}}function te(e){return{type:"INVALIDATE_RESOLUTION_FOR_STORE_SELECTOR",selectorName:e}}function re(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ne(e){for(var t=1;t1?r-1:0),o=1;o1?r-1:0),o=1;o3?i-3:0),c=3;c1?o-1:0),u=1;u1?o-1:0),u=1;u0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r={},n=[];function o(){n.forEach((function(e){return e()}))}var i=function(e){return n.push(e),function(){n=Object(f.without)(n,e)}};function u(e){var n=r[e];return n?n.getSelectors():t&&t.select(e)}var c=p()((function(e){return Object(f.mapValues)(Object(f.omit)(e,["getIsResolving","hasStartedResolution","hasFinishedResolution","isResolving","getCachedResolvers"]),(function(t,r){return function(){for(var n=arguments.length,o=new Array(n),u=0;u0,u=Object(f.has)(r,["core/edit-post","preferences","features","fullscreenMode"]);i&&!u&&(o=Object(f.merge)({},o,{preferences:{features:{fullscreenMode:!1}}}));var c=Object(f.get)(r,["core/nux","preferences","areTipsEnabled"]),a=Object(f.has)(r,["core/edit-post","preferences","features","welcomeGuide"]);void 0===c||a||(o=Object(f.merge)({},o,{preferences:{features:{welcomeGuide:c}}})),o!==r["core/edit-post"]&&t.set("core/edit-post",o)};var _e=Re,Pe=r(8),xe=r(0),Te=r(10),Ae=r(153),Ie=r(152),Ne=r(64),De=r.n(Ne),ke=Object(xe.createContext)(ve),Le=ke.Consumer,Ce=ke.Provider,Me=Le,Ue=Ce;function Ve(){return Object(xe.useContext)(ke)}var Fe=Object(xe.createContext)(!1),Ge=(Fe.Consumer,Fe.Provider);var He="undefined"!=typeof window?xe.useLayoutEffect:xe.useEffect,Ke=Object(Ie.createQueue)();function We(e,t){var r,n=Object(xe.useCallback)(e,t),o=Ve(),i=Object(xe.useContext)(Fe),u=Object(Ae.a)((function(){return{queue:!0}}),[o]),c=Object(xe.useReducer)((function(e){return e+1}),0),s=Object(a.a)(c,2)[1],f=Object(xe.useRef)(),l=Object(xe.useRef)(i),p=Object(xe.useRef)(),b=Object(xe.useRef)(),d=Object(xe.useRef)();try{r=f.current!==n||b.current?n(o.select,o):p.current}catch(e){var v="An error occurred while running 'mapSelect': ".concat(e.message);if(b.current)throw v+="\nThe error may be correlated with this previous error:\n",v+="".concat(b.current.stack,"\n\n"),v+="Original stack trace:",new Error(v);console.error(v)}return He((function(){f.current=n,p.current=r,b.current=void 0,d.current=!0,l.current!==i&&(l.current=i,Ke.flush(u))})),He((function(){var e=function(){if(d.current){try{var e=f.current(o.select,o);if(De()(p.current,e))return;p.current=e}catch(e){b.current=e}s()}};l.current?Ke.add(u,e):e();var t=o.subscribe((function(){l.current?Ke.add(u,e):e()}));return function(){d.current=!1,t(),Ke.flush(u)}}),[o]),r}var ze=function(e){return Object(Te.createHigherOrderComponent)((function(t){return Object(Te.pure)((function(r){var n=We((function(t,n){return e(t,r,n)}));return Object(xe.createElement)(t,Object(Pe.a)({},r,n))}))}),"withSelect")},Xe="undefined"!=typeof window?xe.useLayoutEffect:xe.useEffect,Be=function(e,t){var r=Ve(),n=Object(xe.useRef)(e);return Xe((function(){n.current=e})),Object(xe.useMemo)((function(){var e=n.current(r.dispatch,r);return Object(f.mapValues)(e,(function(e,t){return"function"!=typeof e&&console.warn("Property ".concat(t," returned from dispatchMap in useDispatchWithMap must be a function.")),function(){var e;return(e=n.current(r.dispatch,r))[t].apply(e,arguments)}}))}),[r].concat(Object(I.a)(t)))},Je=function(e){return Object(Te.createHigherOrderComponent)((function(t){return function(r){var n=Be((function(t,n){return e(t,r,n)}),[]);return Object(xe.createElement)(t,Object(Pe.a)({},r,n))}}),"withDispatch")},Ye=Object(Te.createHigherOrderComponent)((function(e){return function(t){return Object(xe.createElement)(Me,null,(function(r){return Object(xe.createElement)(e,Object(Pe.a)({},t,{registry:r}))}))}}),"withRegistry"),qe=function(e){var t=Ve().dispatch;return void 0===e?t:t(e)},Qe=ve.select,$e=ve.__experimentalResolveSelect,Ze=ve.dispatch,et=ve.subscribe,tt=ve.registerGenericStore,rt=ve.registerStore,nt=ve.use},5:function(e,t,r){"use strict";function n(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}r.d(t,"a",(function(){return n}))},60:function(e,t,r){e.exports=function(e,t){var r,n,o=0;function i(){var i,u,c=r,a=arguments.length;e:for(;c;){if(c.args.length===arguments.length){for(u=0;u96?c-87:c>64?c-29:c-48}function r(c){var M=0,o=c.split("."),A=o[0],a=o[1]||"",z=1,b=0,p=1;for(45===c.charCodeAt(0)&&(M=1,p=-1);M3){var M=z[T(c)];if(M)return M;S("Moment Timezone found "+c+" from the Intl api, but did not have that data loaded.")}}catch(c){}var o,A,a,b=function(){var c,M,o,A=(new Date).getFullYear()-2,a=new d(new Date(A,0,1)),z=[a];for(o=1;o<48;o++)(M=new d(new Date(A,o,1))).offset!==a.offset&&(c=W(a,M),z.push(c),z.push(new d(new Date(c.at+6e4)))),a=M;for(o=0;o<4;o++)z.push(new d(new Date(A+o,0,1))),z.push(new d(new Date(A+o,6,1)));return z}(),p=b.length,n=l(b),i=[];for(A=0;A0?i[0].zone.name:void 0}function T(c){return(c||"").toLowerCase().replace(/\//g,"_")}function s(c){var M,A,a,b;for("string"==typeof c&&(c=[c]),M=0;M= 2.6.0. You are using Moment.js "+c.version+". See momentjs.com"),N.prototype={_set:function(c){this.name=c.name,this.abbrs=c.abbrs,this.untils=c.untils,this.offsets=c.offsets,this.population=c.population},_index:function(c){var M,o=+c,A=this.untils;for(M=0;MA&&R.moveInvalidForward&&(M=A),z0&&(this._z=null),g.apply(this,arguments)}),c.tz.setDefault=function(M){return(n<2||2===n&&i<9)&&S("Moment Timezone setDefault() requires Moment.js >= 2.9.0. You are using Moment.js "+c.version+"."),c.defaultZone=M?m(M):null,c};var k=c.momentProperties;return"[object Array]"===Object.prototype.toString.call(k)?(k.push("_z"),k.push("_a")):k&&(k._z=null),c}))},432:function(c,M,o){"use strict";o.r(M),o.d(M,"setSettings",(function(){return p})),o.d(M,"__experimentalGetSettings",(function(){return n})),o.d(M,"format",(function(){return r})),o.d(M,"date",(function(){return L})),o.d(M,"gmdate",(function(){return O})),o.d(M,"dateI18n",(function(){return q})),o.d(M,"gmdateI18n",(function(){return N})),o.d(M,"isInTheFuture",(function(){return f})),o.d(M,"getDate",(function(){return d}));var A=o(44),a=o.n(A),z=(o(268),o(433),/^[+-][0-1][0-9](:?[0-9][0-9])?$/),b={l10n:{locale:"en",months:["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],weekdays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],weekdaysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],meridiem:{am:"am",pm:"pm",AM:"AM",PM:"PM"},relative:{future:"%s from now",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"}},formats:{time:"g: i a",date:"F j, Y",datetime:"F j, Y g: i a",datetimeAbbreviated:"M j, Y g: i a"},timezone:{offset:"0",string:"",abbr:""}};function p(c){b=c;var M=a.a.locale();a.a.updateLocale(c.l10n.locale,{parentLocale:M,months:c.l10n.months,monthsShort:c.l10n.monthsShort,weekdays:c.l10n.weekdays,weekdaysShort:c.l10n.weekdaysShort,meridiem:function(M,o,A){return M<12?A?c.l10n.meridiem.am:c.l10n.meridiem.AM:A?c.l10n.meridiem.pm:c.l10n.meridiem.PM},longDateFormat:{LT:c.formats.time,LTS:null,L:null,LL:c.formats.date,LLL:c.formats.datetime,LLLL:null},relativeTime:c.l10n.relative}),a.a.locale(M),i()}function n(){return b}function i(){a.a.tz.add(a.a.tz.pack({name:"WP",abbrs:["WP"],untils:[null],offsets:[60*-b.timezone.offset||0]}))}var e={d:"DD",D:"ddd",j:"D",l:"dddd",N:"E",S:function(c){var M=c.format("D");return c.format("Do").replace(M,"")},w:"d",z:function(c){return""+parseInt(c.format("DDD"),10)-1},W:"W",F:"MMMM",m:"MM",M:"MMM",n:"M",t:function(c){return c.daysInMonth()},L:function(c){return c.isLeapYear()?"1":"0"},o:"GGGG",Y:"YYYY",y:"YY",a:"a",A:"A",B:function(c){var M=a()(c).utcOffset(60),o=parseInt(M.format("s"),10),A=parseInt(M.format("m"),10),z=parseInt(M.format("H"),10);return parseInt((o+60*A+3600*z)/86.4,10)},g:"h",G:"H",h:"hh",H:"HH",i:"mm",s:"ss",u:"SSSSSS",v:"SSS",e:"zz",I:function(c){return c.isDST()?"1":"0"},O:"ZZ",P:"Z",T:"z",Z:function(c){var M=c.format("Z"),o="-"===M[0]?-1:1,A=M.substring(1).split(":");return o*(60*A[0]+A[1])*60},c:"YYYY-MM-DDTHH:mm:ssZ",r:"ddd, D MMM YYYY HH:mm:ss ZZ",U:"X"};function r(c){var M,o,A=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Date,z=[],b=a()(A);for(M=0;M1&&void 0!==arguments[1]?arguments[1]:new Date,o=arguments.length>2?arguments[2]:void 0,A=t(M,o);return r(c,A)}function O(c){var M=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Date,o=a()(M).utc();return r(c,o)}function q(c){var M=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Date,o=arguments.length>2?arguments[2]:void 0;if(!0===o)return N(c,M);!1===o&&(o=void 0);var A=t(M,o);return A.locale(b.l10n.locale),r(c,A)}function N(c){var M=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Date,o=a()(M).utc();return o.locale(b.l10n.locale),r(c,o)}function f(c){var M=a.a.tz("WP");return a.a.tz(c,"WP").isAfter(M)}function d(c){return c?a.a.tz(c,"WP").toDate():a.a.tz("WP").toDate()}function t(c){var M=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",o=a()(c);return M&&!W(M)?o.tz(M):M&&W(M)?o.utcOffset(M):b.timezone.string?o.tz(b.timezone.string):o.utcOffset(b.timezone.offset)}function W(c){return"number"==typeof c||z.test(c)}i()},433:function(c,M,o){var A,a,z;//! moment-timezone-utils.js +!function(b,p){"use strict";c.exports?c.exports=p(o(44)):(a=[o(44)],void 0===(z="function"==typeof(A=p)?A.apply(M,a):A)||(c.exports=z))}(0,(function(c){"use strict";void 0===c.version&&c.default&&(c=c.default);var M,o={},A={},a={},z={},b={};c&&"string"==typeof c.version||S("Moment Timezone requires Moment.js. See https://momentjs.com/timezone/docs/#/use-it/browser/");var p=c.version.split("."),n=+p[0],i=+p[1];function e(c){return c>96?c-87:c>64?c-29:c-48}function r(c){var M=0,o=c.split("."),A=o[0],a=o[1]||"",z=1,b=0,p=1;for(45===c.charCodeAt(0)&&(M=1,p=-1);M3){var M=z[T(c)];if(M)return M;S("Moment Timezone found "+c+" from the Intl api, but did not have that data loaded.")}}catch(c){}var o,A,a,b=function(){var c,M,o,A=(new Date).getFullYear()-2,a=new d(new Date(A,0,1)),z=[a];for(o=1;o<48;o++)(M=new d(new Date(A,o,1))).offset!==a.offset&&(c=W(a,M),z.push(c),z.push(new d(new Date(c.at+6e4)))),a=M;for(o=0;o<4;o++)z.push(new d(new Date(A+o,0,1))),z.push(new d(new Date(A+o,6,1)));return z}(),p=b.length,n=l(b),i=[];for(A=0;A0?i[0].zone.name:void 0}function T(c){return(c||"").toLowerCase().replace(/\//g,"_")}function s(c){var M,A,a,b;for("string"==typeof c&&(c=[c]),M=0;M= 2.6.0. You are using Moment.js "+c.version+". See momentjs.com"),N.prototype={_set:function(c){this.name=c.name,this.abbrs=c.abbrs,this.untils=c.untils,this.offsets=c.offsets,this.population=c.population},_index:function(c){var M,o=+c,A=this.untils;for(M=0;MA&&R.moveInvalidForward&&(M=A),z0&&(this._z=null),g.apply(this,arguments)}),c.tz.setDefault=function(M){return(n<2||2===n&&i<9)&&S("Moment Timezone setDefault() requires Moment.js >= 2.9.0. You are using Moment.js "+c.version+"."),c.defaultZone=M?m(M):null,c};var k=c.momentProperties;return"[object Array]"===Object.prototype.toString.call(k)?(k.push("_z"),k.push("_a")):k&&(k._z=null),c}))},44:function(c,M){!function(){c.exports=this.moment}()},446:function(c,M,o){"use strict";o.r(M),o.d(M,"setSettings",(function(){return p})),o.d(M,"__experimentalGetSettings",(function(){return n})),o.d(M,"format",(function(){return r})),o.d(M,"date",(function(){return L})),o.d(M,"gmdate",(function(){return O})),o.d(M,"dateI18n",(function(){return q})),o.d(M,"gmdateI18n",(function(){return N})),o.d(M,"isInTheFuture",(function(){return f})),o.d(M,"getDate",(function(){return d}));var A=o(44),a=o.n(A),z=(o(268),o(447),/^[+-][0-1][0-9](:?[0-9][0-9])?$/),b={l10n:{locale:"en",months:["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],weekdays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],weekdaysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],meridiem:{am:"am",pm:"pm",AM:"AM",PM:"PM"},relative:{future:"%s from now",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"}},formats:{time:"g: i a",date:"F j, Y",datetime:"F j, Y g: i a",datetimeAbbreviated:"M j, Y g: i a"},timezone:{offset:"0",string:"",abbr:""}};function p(c){b=c;var M=a.a.locale();a.a.updateLocale(c.l10n.locale,{parentLocale:M,months:c.l10n.months,monthsShort:c.l10n.monthsShort,weekdays:c.l10n.weekdays,weekdaysShort:c.l10n.weekdaysShort,meridiem:function(M,o,A){return M<12?A?c.l10n.meridiem.am:c.l10n.meridiem.AM:A?c.l10n.meridiem.pm:c.l10n.meridiem.PM},longDateFormat:{LT:c.formats.time,LTS:null,L:null,LL:c.formats.date,LLL:c.formats.datetime,LLLL:null},relativeTime:c.l10n.relative}),a.a.locale(M),i()}function n(){return b}function i(){a.a.tz.add(a.a.tz.pack({name:"WP",abbrs:["WP"],untils:[null],offsets:[60*-b.timezone.offset||0]}))}var e={d:"DD",D:"ddd",j:"D",l:"dddd",N:"E",S:function(c){var M=c.format("D");return c.format("Do").replace(M,"")},w:"d",z:function(c){return""+parseInt(c.format("DDD"),10)-1},W:"W",F:"MMMM",m:"MM",M:"MMM",n:"M",t:function(c){return c.daysInMonth()},L:function(c){return c.isLeapYear()?"1":"0"},o:"GGGG",Y:"YYYY",y:"YY",a:"a",A:"A",B:function(c){var M=a()(c).utcOffset(60),o=parseInt(M.format("s"),10),A=parseInt(M.format("m"),10),z=parseInt(M.format("H"),10);return parseInt((o+60*A+3600*z)/86.4,10)},g:"h",G:"H",h:"hh",H:"HH",i:"mm",s:"ss",u:"SSSSSS",v:"SSS",e:"zz",I:function(c){return c.isDST()?"1":"0"},O:"ZZ",P:"Z",T:"z",Z:function(c){var M=c.format("Z"),o="-"===M[0]?-1:1,A=M.substring(1).split(":");return o*(60*A[0]+A[1])*60},c:"YYYY-MM-DDTHH:mm:ssZ",r:"ddd, D MMM YYYY HH:mm:ss ZZ",U:"X"};function r(c){var M,o,A=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Date,z=[],b=a()(A);for(M=0;M1&&void 0!==arguments[1]?arguments[1]:new Date,o=arguments.length>2?arguments[2]:void 0,A=t(M,o);return r(c,A)}function O(c){var M=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Date,o=a()(M).utc();return r(c,o)}function q(c){var M=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Date,o=arguments.length>2?arguments[2]:void 0;if(!0===o)return N(c,M);!1===o&&(o=void 0);var A=t(M,o);return A.locale(b.l10n.locale),r(c,A)}function N(c){var M=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Date,o=a()(M).utc();return o.locale(b.l10n.locale),r(c,o)}function f(c){var M=a.a.tz("WP");return a.a.tz(c,"WP").isAfter(M)}function d(c){return c?a.a.tz(c,"WP").toDate():a.a.tz("WP").toDate()}function t(c){var M=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",o=a()(c);return M&&!W(M)?o.tz(M):M&&W(M)?o.utcOffset(M):b.timezone.string?o.tz(b.timezone.string):o.utcOffset(b.timezone.offset)}function W(c){return"number"==typeof c||z.test(c)}i()},447:function(c,M,o){var A,a,z;//! moment-timezone-utils.js //! version : 0.5.32 //! Copyright (c) JS Foundation and other contributors //! license : MIT //! github.com/moment/moment-timezone -!function(b,p){"use strict";c.exports?c.exports=p(o(434)):(a=[o(44)],void 0===(z="function"==typeof(A=p)?A.apply(M,a):A)||(c.exports=z))}(0,(function(c){"use strict";if(!c.tz)throw new Error("moment-timezone-utils.js must be loaded after moment-timezone.js");var M="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWX";function o(c,o){for(var A="",a=Math.abs(c),z=Math.floor(a),b=function(c,o){for(var A,a=".",z="";o>0;)o-=1,c*=60,A=Math.floor(c+1e-6),a+=M[A],c-=A,A&&(z+=a,a="");return z}(a-z,Math.min(~~o,10));z>0;)A=M[z%60]+A,z=Math.floor(z/60);return c<0&&(A="-"+A),A&&b?A+b:(b||"-"!==A)&&(A||b)||"0"}function A(c){var M,A=[],a=0;for(M=0;Mp.population||b.population===p.population&&A&&A[b.name]?n.unshift(b):n.push(b),e=!0);e||r.push([b])}for(a=0;ao&&(a=M,M=o,o=a),a=0;ao&&(b=Math.min(b,a+1)));return[z,b]}(c.untils,M,o),z=A.apply(c.untils,a);return z[z.length-1]=null,{name:c.name,abbrs:A.apply(c.abbrs,a),untils:z,offsets:A.apply(c.offsets,a),population:c.population,countries:c.countries}}return c.tz.pack=b,c.tz.packBase60=o,c.tz.createLinks=e,c.tz.filterYears=r,c.tz.filterLinkPack=function(c,M,o,A){var a,z,n=c.zones,i=[];for(a=0;a0;)o-=1,c*=60,A=Math.floor(c+1e-6),a+=M[A],c-=A,A&&(z+=a,a="");return z}(a-z,Math.min(~~o,10));z>0;)A=M[z%60]+A,z=Math.floor(z/60);return c<0&&(A="-"+A),A&&b?A+b:(b||"-"!==A)&&(A||b)||"0"}function A(c){var M,A=[],a=0;for(M=0;Mp.population||b.population===p.population&&A&&A[b.name]?n.unshift(b):n.push(b),e=!0);e||r.push([b])}for(a=0;ao&&(a=M,M=o,o=a),a=0;ao&&(b=Math.min(b,a+1)));return[z,b]}(c.untils,M,o),z=A.apply(c.untils,a);return z[z.length-1]=null,{name:c.name,abbrs:A.apply(c.abbrs,a),untils:z,offsets:A.apply(c.offsets,a),population:c.population,countries:c.countries}}return c.tz.pack=b,c.tz.packBase60=o,c.tz.createLinks=e,c.tz.filterYears=r,c.tz.filterLinkPack=function(c,M,o,A){var a,z,n=c.zones,i=[];for(a=0;a1&&void 0!==arguments[1]?arguments[1]:{},n=t.version,c=t.alternative,i=t.plugin,u=t.link,a=t.hint,l=i?" from ".concat(i):"",f=n?" and will be removed".concat(l," in version ").concat(n):"",d=c?" Please use ".concat(c," instead."):"",s=u?" See: ".concat(u):"",p=a?" Note: ".concat(a):"",b="".concat(e," is deprecated").concat(f,".").concat(d).concat(s).concat(p);b in o||(Object(r.doAction)("deprecated",e,t,b),console.warn(b),o[b]=!0)}}}).default; \ No newline at end of file +this.wp=this.wp||{},this.wp.deprecated=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=450)}({33:function(e,t){!function(){e.exports=this.wp.hooks}()},450:function(e,t,n){"use strict";n.r(t),n.d(t,"logged",(function(){return o})),n.d(t,"default",(function(){return c}));var r=n(33),o=Object.create(null);function c(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.version,c=t.alternative,i=t.plugin,u=t.link,a=t.hint,l=i?" from ".concat(i):"",f=n?" and will be removed".concat(l," in version ").concat(n):"",d=c?" Please use ".concat(c," instead."):"",s=u?" See: ".concat(u):"",p=a?" Note: ".concat(a):"",b="".concat(e," is deprecated").concat(f,".").concat(d).concat(s).concat(p);b in o||(Object(r.doAction)("deprecated",e,t,b),console.warn(b),o[b]=!0)}}}).default; \ No newline at end of file diff --git a/wp-includes/js/dist/dom-ready.js b/wp-includes/js/dist/dom-ready.js index 0b1166ddf9..772fa025bd 100644 --- a/wp-includes/js/dist/dom-ready.js +++ b/wp-includes/js/dist/dom-ready.js @@ -82,12 +82,12 @@ this["wp"] = this["wp"] || {}; this["wp"]["domReady"] = /******/ /******/ /******/ // Load entry module and return exports -/******/ return __webpack_require__(__webpack_require__.s = 437); +/******/ return __webpack_require__(__webpack_require__.s = 451); /******/ }) /************************************************************************/ /******/ ({ -/***/ 437: +/***/ 451: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; diff --git a/wp-includes/js/dist/dom-ready.min.js b/wp-includes/js/dist/dom-ready.min.js index ee636ad6c5..f9b94c581c 100644 --- a/wp-includes/js/dist/dom-ready.min.js +++ b/wp-includes/js/dist/dom-ready.min.js @@ -1,2 +1,2 @@ /*! This file is auto-generated */ -this.wp=this.wp||{},this.wp.domReady=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=437)}({437:function(e,t,n){"use strict";function r(e){"complete"!==document.readyState&&"interactive"!==document.readyState?document.addEventListener("DOMContentLoaded",e):e()}n.r(t),n.d(t,"default",(function(){return r}))}}).default; \ No newline at end of file +this.wp=this.wp||{},this.wp.domReady=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=451)}({451:function(e,t,n){"use strict";function r(e){"complete"!==document.readyState&&"interactive"!==document.readyState?document.addEventListener("DOMContentLoaded",e):e()}n.r(t),n.d(t,"default",(function(){return r}))}}).default; \ No newline at end of file diff --git a/wp-includes/js/dist/dom.js b/wp-includes/js/dist/dom.js index 48e517a410..79a40bebf2 100644 --- a/wp-includes/js/dist/dom.js +++ b/wp-includes/js/dist/dom.js @@ -82,7 +82,7 @@ this["wp"] = this["wp"] || {}; this["wp"]["dom"] = /******/ /******/ /******/ // Load entry module and return exports -/******/ return __webpack_require__(__webpack_require__.s = 479); +/******/ return __webpack_require__(__webpack_require__.s = 493); /******/ }) /************************************************************************/ /******/ ({ @@ -94,7 +94,7 @@ this["wp"] = this["wp"] || {}; this["wp"]["dom"] = /***/ }), -/***/ 479: +/***/ 493: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; diff --git a/wp-includes/js/dist/dom.min.js b/wp-includes/js/dist/dom.min.js index 9f90098ee3..9a939597ae 100644 --- a/wp-includes/js/dist/dom.min.js +++ b/wp-includes/js/dist/dom.min.js @@ -1,2 +1,2 @@ /*! This file is auto-generated */ -this.wp=this.wp||{},this.wp.dom=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=479)}({2:function(e,t){!function(){e.exports=this.lodash}()},479:function(e,t,n){"use strict";n.r(t),n.d(t,"focus",(function(){return Z})),n.d(t,"isHorizontalEdge",(function(){return j})),n.d(t,"isVerticalEdge",(function(){return A})),n.d(t,"getRectangleFromRange",(function(){return R})),n.d(t,"computeCaretRect",(function(){return x})),n.d(t,"placeCaretAtHorizontalEdge",(function(){return D})),n.d(t,"placeCaretAtVerticalEdge",(function(){return L})),n.d(t,"isTextField",(function(){return M})),n.d(t,"isNumberInput",(function(){return _})),n.d(t,"documentHasTextSelection",(function(){return H})),n.d(t,"documentHasUncollapsedSelection",(function(){return B})),n.d(t,"documentHasSelection",(function(){return V})),n.d(t,"isEntirelySelected",(function(){return U})),n.d(t,"getScrollContainer",(function(){return F})),n.d(t,"getOffsetParent",(function(){return k})),n.d(t,"replace",(function(){return X})),n.d(t,"remove",(function(){return q})),n.d(t,"insertAfter",(function(){return z})),n.d(t,"unwrap",(function(){return G})),n.d(t,"replaceTag",(function(){return W})),n.d(t,"wrap",(function(){return Y})),n.d(t,"__unstableStripHTML",(function(){return J})),n.d(t,"isEmpty",(function(){return K})),n.d(t,"removeInvalidHTML",(function(){return Q})),n.d(t,"getPhrasingContentSchema",(function(){return C})),n.d(t,"isPhrasingContent",(function(){return w})),n.d(t,"isTextContent",(function(){return T}));var r={};n.r(r),n.d(r,"find",(function(){return u}));var i={};n.r(i),n.d(i,"isTabbableIndex",(function(){return d})),n.d(i,"find",(function(){return b})),n.d(i,"findPrevious",(function(){return h})),n.d(i,"findNext",(function(){return g}));var o=["[tabindex]","a[href]","button:not([disabled])",'input:not([type="hidden"]):not([disabled])',"select:not([disabled])","textarea:not([disabled])","iframe","object","embed","area[href]","[contenteditable]:not([contenteditable=false])"].join(",");function a(e){return e.offsetWidth>0||e.offsetHeight>0||e.getClientRects().length>0}function u(e){var t=e.querySelectorAll(o);return Array.from(t).filter((function(e){return!(!a(e)||function(e){return"iframe"===e.nodeName.toLowerCase()&&"-1"===e.getAttribute("tabindex")}(e))&&("AREA"!==e.nodeName||function(e){var t=e.closest("map[name]");if(!t)return!1;var n=e.ownerDocument.querySelector('img[usemap="#'+t.name+'"]');return!!n&&a(n)}(e))}))}var c=n(2);function l(e){var t=e.getAttribute("tabindex");return null===t?0:parseInt(t,10)}function d(e){return-1!==l(e)}function s(e,t){return{element:e,index:t}}function f(e){return e.element}function m(e,t){var n=l(e.element),r=l(t.element);return n===r?e.index-t.index:n-r}function p(e){return e.filter(d).map(s).sort(m).map(f).reduce((t={},function(e,n){var r=n.nodeName,i=n.type,o=n.checked,a=n.name;if("INPUT"!==r||"radio"!==i||!a)return e.concat(n);var u=t.hasOwnProperty(a);if(!o&&u)return e;if(u){var l=t[a];e=Object(c.without)(e,l)}return t[a]=n,e.concat(n)}),[]);var t}function b(e){return p(u(e))}function h(e){var t=u(e.ownerDocument.body),n=t.indexOf(e);return t.length=n,Object(c.last)(p(t))}function g(e){var t=u(e.ownerDocument.body),n=t.indexOf(e),r=t.slice(n+1).filter((function(t){return!e.contains(t)}));return Object(c.first)(p(r))}var v=n(5);function y(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function N(e){for(var t=1;tf&&u===t)return!1;var m=parseInt(s["padding".concat(t?"Top":"Bottom")],10)||0,p=3*parseInt(f,10)/4,b=e.getBoundingClientRect(),h=R(o);if(!(t?b.top+m>h.top-p:b.bottom-m3&&void 0!==arguments[3])||arguments[3];if(e)if(n&&e.isContentEditable){var i=n.height/2,o=e.getBoundingClientRect(),a=n.left,u=t?o.bottom-i:o.top+i,c=e.ownerDocument,l=c.defaultView,d=I(c,a,u,e);if(!d||!e.contains(d.startContainer))return!r||d&&d.startContainer&&d.startContainer.contains(e)?void D(e,t):(e.scrollIntoView(t),void L(e,t,n,!1));var s=l.getSelection();s.removeAllRanges(),s.addRange(d),e.focus(),s.removeAllRanges(),s.addRange(d)}else D(e,t)}function M(e){var t=e.nodeName,n=e.contentEditable;return"INPUT"===t&&!["button","checkbox","hidden","file","radio","image","range","reset","submit","number"].includes(e.type)||"TEXTAREA"===t||"true"===n}function _(e){var t=e.nodeName,n=e.type,r=e.valueAsNumber;return"INPUT"===t&&"number"===n&&!!r}function H(e){var t=e.defaultView.getSelection(),n=t.rangeCount?t.getRangeAt(0):null;return n&&!n.collapsed}function B(e){return H(e)||function(e){if(!M(e)&&!_(e))return!1;try{var t=e.selectionStart,n=e.selectionEnd;return null!==t&&t!==n}catch(e){return!1}}(e.activeElement)}function V(e){return M(e.activeElement)||_(e.activeElement)||H(e)}function U(e){if(Object(c.includes)(["INPUT","TEXTAREA"],e.nodeName))return 0===e.selectionStart&&e.value.length===e.selectionEnd;if(!e.isContentEditable)return!0;var t=e.ownerDocument.defaultView.getSelection(),n=t.rangeCount?t.getRangeAt(0):null;if(!n)return!0;var r=n.startContainer,i=n.endContainer,o=n.startOffset,a=n.endOffset;if(r===e&&i===e&&0===o&&a===e.childNodes.length)return!0;var u=e.lastChild,l=u.nodeType===u.TEXT_NODE?u.data.length:u.childNodes.length;return r===e.firstChild&&i===e.lastChild&&0===o&&a===l}function F(e){if(e){if(e.scrollHeight>e.clientHeight){var t=P(e).overflowY;if(/(auto|scroll)/.test(t))return e}return F(e.parentNode)}}function k(e){for(var t;(t=e.parentNode)&&t.nodeType!==t.ELEMENT_NODE;);return t?"static"!==P(t).position?t:t.offsetParent:null}function X(e,t){z(t,e.parentNode),q(e)}function q(e){e.parentNode.removeChild(e)}function z(e,t){t.parentNode.insertBefore(e,t.nextSibling)}function G(e){for(var t=e.parentNode;e.firstChild;)t.insertBefore(e.firstChild,e);t.removeChild(e)}function W(e,t){for(var n=e.ownerDocument.createElement(t);e.firstChild;)n.appendChild(e.firstChild);return e.parentNode.replaceChild(n,e),n}function Y(e,t){t.parentNode.insertBefore(e,t),e.appendChild(t)}function J(e){return(new window.DOMParser).parseFromString(e,"text/html").body.textContent||""}function K(e){return!e.hasChildNodes()||Array.from(e.childNodes).every((function(e){return e.nodeType===e.TEXT_NODE?!e.nodeValue.trim():e.nodeType!==e.ELEMENT_NODE||("BR"===e.nodeName||!e.hasAttributes()&&K(e))}))}function Q(e,t,n){var r=document.implementation.createHTMLDocument("");return r.body.innerHTML=e,function e(t,n,r,i){Array.from(t).forEach((function(t){var o=t.nodeName.toLowerCase();if(!r.hasOwnProperty(o)||r[o].isMatch&&!r[o].isMatch(t))e(t.childNodes,n,r,i),i&&!w(t)&&t.nextElementSibling&&z(n.createElement("br"),t),G(t);else if(t.nodeType===t.ELEMENT_NODE){var a=r[o],u=a.attributes,l=void 0===u?[]:u,d=a.classes,s=void 0===d?[]:d,f=a.children,m=a.require,p=void 0===m?[]:m,b=a.allowEmpty;if(f&&!b&&K(t))return void q(t);if(t.hasAttributes()&&(Array.from(t.attributes).forEach((function(e){var n=e.name;"class"===n||Object(c.includes)(l,n)||t.removeAttribute(n)})),t.classList&&t.classList.length)){var h=s.map((function(e){return"string"==typeof e?function(t){return t===e}:e instanceof RegExp?function(t){return e.test(t)}:c.noop}));Array.from(t.classList).forEach((function(e){h.some((function(t){return t(e)}))||t.classList.remove(e)})),t.classList.length||t.removeAttribute("class")}if(t.hasChildNodes()){if("*"===f)return;if(f)p.length&&!t.querySelector(p.join(","))?(e(t.childNodes,n,r,i),G(t)):"BODY"===t.parentNode.nodeName&&w(t)?(e(t.childNodes,n,r,i),Array.from(t.childNodes).some((function(e){return!w(e)}))&&G(t)):e(t.childNodes,n,f,i);else for(;t.firstChild;)q(t.firstChild)}}}))}(r.body.childNodes,r,t,n),r.body.innerHTML}var Z={focusable:r,tabbable:i}},5:function(e,t,n){"use strict";function r(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,"a",(function(){return r}))}}); \ No newline at end of file +this.wp=this.wp||{},this.wp.dom=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=493)}({2:function(e,t){!function(){e.exports=this.lodash}()},493:function(e,t,n){"use strict";n.r(t),n.d(t,"focus",(function(){return Z})),n.d(t,"isHorizontalEdge",(function(){return j})),n.d(t,"isVerticalEdge",(function(){return A})),n.d(t,"getRectangleFromRange",(function(){return R})),n.d(t,"computeCaretRect",(function(){return x})),n.d(t,"placeCaretAtHorizontalEdge",(function(){return D})),n.d(t,"placeCaretAtVerticalEdge",(function(){return L})),n.d(t,"isTextField",(function(){return M})),n.d(t,"isNumberInput",(function(){return _})),n.d(t,"documentHasTextSelection",(function(){return H})),n.d(t,"documentHasUncollapsedSelection",(function(){return B})),n.d(t,"documentHasSelection",(function(){return V})),n.d(t,"isEntirelySelected",(function(){return U})),n.d(t,"getScrollContainer",(function(){return F})),n.d(t,"getOffsetParent",(function(){return k})),n.d(t,"replace",(function(){return X})),n.d(t,"remove",(function(){return q})),n.d(t,"insertAfter",(function(){return z})),n.d(t,"unwrap",(function(){return G})),n.d(t,"replaceTag",(function(){return W})),n.d(t,"wrap",(function(){return Y})),n.d(t,"__unstableStripHTML",(function(){return J})),n.d(t,"isEmpty",(function(){return K})),n.d(t,"removeInvalidHTML",(function(){return Q})),n.d(t,"getPhrasingContentSchema",(function(){return C})),n.d(t,"isPhrasingContent",(function(){return w})),n.d(t,"isTextContent",(function(){return T}));var r={};n.r(r),n.d(r,"find",(function(){return u}));var i={};n.r(i),n.d(i,"isTabbableIndex",(function(){return d})),n.d(i,"find",(function(){return b})),n.d(i,"findPrevious",(function(){return h})),n.d(i,"findNext",(function(){return g}));var o=["[tabindex]","a[href]","button:not([disabled])",'input:not([type="hidden"]):not([disabled])',"select:not([disabled])","textarea:not([disabled])","iframe","object","embed","area[href]","[contenteditable]:not([contenteditable=false])"].join(",");function a(e){return e.offsetWidth>0||e.offsetHeight>0||e.getClientRects().length>0}function u(e){var t=e.querySelectorAll(o);return Array.from(t).filter((function(e){return!(!a(e)||function(e){return"iframe"===e.nodeName.toLowerCase()&&"-1"===e.getAttribute("tabindex")}(e))&&("AREA"!==e.nodeName||function(e){var t=e.closest("map[name]");if(!t)return!1;var n=e.ownerDocument.querySelector('img[usemap="#'+t.name+'"]');return!!n&&a(n)}(e))}))}var c=n(2);function l(e){var t=e.getAttribute("tabindex");return null===t?0:parseInt(t,10)}function d(e){return-1!==l(e)}function s(e,t){return{element:e,index:t}}function f(e){return e.element}function m(e,t){var n=l(e.element),r=l(t.element);return n===r?e.index-t.index:n-r}function p(e){return e.filter(d).map(s).sort(m).map(f).reduce((t={},function(e,n){var r=n.nodeName,i=n.type,o=n.checked,a=n.name;if("INPUT"!==r||"radio"!==i||!a)return e.concat(n);var u=t.hasOwnProperty(a);if(!o&&u)return e;if(u){var l=t[a];e=Object(c.without)(e,l)}return t[a]=n,e.concat(n)}),[]);var t}function b(e){return p(u(e))}function h(e){var t=u(e.ownerDocument.body),n=t.indexOf(e);return t.length=n,Object(c.last)(p(t))}function g(e){var t=u(e.ownerDocument.body),n=t.indexOf(e),r=t.slice(n+1).filter((function(t){return!e.contains(t)}));return Object(c.first)(p(r))}var v=n(5);function y(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function N(e){for(var t=1;tf&&u===t)return!1;var m=parseInt(s["padding".concat(t?"Top":"Bottom")],10)||0,p=3*parseInt(f,10)/4,b=e.getBoundingClientRect(),h=R(o);if(!(t?b.top+m>h.top-p:b.bottom-m3&&void 0!==arguments[3])||arguments[3];if(e)if(n&&e.isContentEditable){var i=n.height/2,o=e.getBoundingClientRect(),a=n.left,u=t?o.bottom-i:o.top+i,c=e.ownerDocument,l=c.defaultView,d=I(c,a,u,e);if(!d||!e.contains(d.startContainer))return!r||d&&d.startContainer&&d.startContainer.contains(e)?void D(e,t):(e.scrollIntoView(t),void L(e,t,n,!1));var s=l.getSelection();s.removeAllRanges(),s.addRange(d),e.focus(),s.removeAllRanges(),s.addRange(d)}else D(e,t)}function M(e){var t=e.nodeName,n=e.contentEditable;return"INPUT"===t&&!["button","checkbox","hidden","file","radio","image","range","reset","submit","number"].includes(e.type)||"TEXTAREA"===t||"true"===n}function _(e){var t=e.nodeName,n=e.type,r=e.valueAsNumber;return"INPUT"===t&&"number"===n&&!!r}function H(e){var t=e.defaultView.getSelection(),n=t.rangeCount?t.getRangeAt(0):null;return n&&!n.collapsed}function B(e){return H(e)||function(e){if(!M(e)&&!_(e))return!1;try{var t=e.selectionStart,n=e.selectionEnd;return null!==t&&t!==n}catch(e){return!1}}(e.activeElement)}function V(e){return M(e.activeElement)||_(e.activeElement)||H(e)}function U(e){if(Object(c.includes)(["INPUT","TEXTAREA"],e.nodeName))return 0===e.selectionStart&&e.value.length===e.selectionEnd;if(!e.isContentEditable)return!0;var t=e.ownerDocument.defaultView.getSelection(),n=t.rangeCount?t.getRangeAt(0):null;if(!n)return!0;var r=n.startContainer,i=n.endContainer,o=n.startOffset,a=n.endOffset;if(r===e&&i===e&&0===o&&a===e.childNodes.length)return!0;var u=e.lastChild,l=u.nodeType===u.TEXT_NODE?u.data.length:u.childNodes.length;return r===e.firstChild&&i===e.lastChild&&0===o&&a===l}function F(e){if(e){if(e.scrollHeight>e.clientHeight){var t=P(e).overflowY;if(/(auto|scroll)/.test(t))return e}return F(e.parentNode)}}function k(e){for(var t;(t=e.parentNode)&&t.nodeType!==t.ELEMENT_NODE;);return t?"static"!==P(t).position?t:t.offsetParent:null}function X(e,t){z(t,e.parentNode),q(e)}function q(e){e.parentNode.removeChild(e)}function z(e,t){t.parentNode.insertBefore(e,t.nextSibling)}function G(e){for(var t=e.parentNode;e.firstChild;)t.insertBefore(e.firstChild,e);t.removeChild(e)}function W(e,t){for(var n=e.ownerDocument.createElement(t);e.firstChild;)n.appendChild(e.firstChild);return e.parentNode.replaceChild(n,e),n}function Y(e,t){t.parentNode.insertBefore(e,t),e.appendChild(t)}function J(e){return(new window.DOMParser).parseFromString(e,"text/html").body.textContent||""}function K(e){return!e.hasChildNodes()||Array.from(e.childNodes).every((function(e){return e.nodeType===e.TEXT_NODE?!e.nodeValue.trim():e.nodeType!==e.ELEMENT_NODE||("BR"===e.nodeName||!e.hasAttributes()&&K(e))}))}function Q(e,t,n){var r=document.implementation.createHTMLDocument("");return r.body.innerHTML=e,function e(t,n,r,i){Array.from(t).forEach((function(t){var o=t.nodeName.toLowerCase();if(!r.hasOwnProperty(o)||r[o].isMatch&&!r[o].isMatch(t))e(t.childNodes,n,r,i),i&&!w(t)&&t.nextElementSibling&&z(n.createElement("br"),t),G(t);else if(t.nodeType===t.ELEMENT_NODE){var a=r[o],u=a.attributes,l=void 0===u?[]:u,d=a.classes,s=void 0===d?[]:d,f=a.children,m=a.require,p=void 0===m?[]:m,b=a.allowEmpty;if(f&&!b&&K(t))return void q(t);if(t.hasAttributes()&&(Array.from(t.attributes).forEach((function(e){var n=e.name;"class"===n||Object(c.includes)(l,n)||t.removeAttribute(n)})),t.classList&&t.classList.length)){var h=s.map((function(e){return"string"==typeof e?function(t){return t===e}:e instanceof RegExp?function(t){return e.test(t)}:c.noop}));Array.from(t.classList).forEach((function(e){h.some((function(t){return t(e)}))||t.classList.remove(e)})),t.classList.length||t.removeAttribute("class")}if(t.hasChildNodes()){if("*"===f)return;if(f)p.length&&!t.querySelector(p.join(","))?(e(t.childNodes,n,r,i),G(t)):"BODY"===t.parentNode.nodeName&&w(t)?(e(t.childNodes,n,r,i),Array.from(t.childNodes).some((function(e){return!w(e)}))&&G(t)):e(t.childNodes,n,f,i);else for(;t.firstChild;)q(t.firstChild)}}}))}(r.body.childNodes,r,t,n),r.body.innerHTML}var Z={focusable:r,tabbable:i}},5:function(e,t,n){"use strict";function r(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,"a",(function(){return r}))}}); \ No newline at end of file diff --git a/wp-includes/js/dist/edit-post.js b/wp-includes/js/dist/edit-post.js index 0dd808bb95..837795d901 100644 --- a/wp-includes/js/dist/edit-post.js +++ b/wp-includes/js/dist/edit-post.js @@ -82,7 +82,7 @@ this["wp"] = this["wp"] || {}; this["wp"]["editPost"] = /******/ /******/ /******/ // Load entry module and return exports -/******/ return __webpack_require__(__webpack_require__.s = 456); +/******/ return __webpack_require__(__webpack_require__.s = 470); /******/ }) /************************************************************************/ /******/ ({ @@ -115,7 +115,7 @@ this["wp"] = this["wp"] || {}; this["wp"]["editPost"] = /***/ }), -/***/ 102: +/***/ 103: /***/ (function(module, exports) { // shim for using process in browser @@ -313,7 +313,7 @@ process.umask = function() { return 0; }; /***/ }), -/***/ 116: +/***/ 117: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -388,7 +388,7 @@ function _iterableToArrayLimit(arr, i) { return _arr; } // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js -var unsupportedIterableToArray = __webpack_require__(30); +var unsupportedIterableToArray = __webpack_require__(31); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/nonIterableRest.js var nonIterableRest = __webpack_require__(39); @@ -404,7 +404,7 @@ function _slicedToArray(arr, i) { /***/ }), -/***/ 121: +/***/ 122: /***/ (function(module, exports) { (function() { module.exports = this["wp"]["reusableBlocks"]; }()); @@ -592,7 +592,44 @@ var check = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElemen /***/ }), -/***/ 169: +/***/ 17: +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; + +// EXPORTS +__webpack_require__.d(__webpack_exports__, "a", function() { return /* binding */ _toConsumableArray; }); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js +var arrayLikeToArray = __webpack_require__(27); + +// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js + +function _arrayWithoutHoles(arr) { + if (Array.isArray(arr)) return Object(arrayLikeToArray["a" /* default */])(arr); +} +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/iterableToArray.js +var iterableToArray = __webpack_require__(37); + +// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js +var unsupportedIterableToArray = __webpack_require__(31); + +// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js +function _nonIterableSpread() { + throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); +} +// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js + + + + +function _toConsumableArray(arr) { + return _arrayWithoutHoles(arr) || Object(iterableToArray["a" /* default */])(arr) || Object(unsupportedIterableToArray["a" /* default */])(arr) || _nonIterableSpread(); +} + +/***/ }), + +/***/ 170: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -608,9 +645,9 @@ var check = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElemen /* harmony import */ var _wordpress_plugins__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_wordpress_plugins__WEBPACK_IMPORTED_MODULE_3__); /* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(4); /* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_wordpress_data__WEBPACK_IMPORTED_MODULE_4__); -/* harmony import */ var _wordpress_warning__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(90); +/* harmony import */ var _wordpress_warning__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(92); /* harmony import */ var _wordpress_warning__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_wordpress_warning__WEBPACK_IMPORTED_MODULE_5__); -/* harmony import */ var _preferences_modal_options__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(489); +/* harmony import */ var _preferences_modal_options__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(503); /** @@ -737,44 +774,7 @@ var PluginDocumentSettingPanel = Object(_wordpress_compose__WEBPACK_IMPORTED_MOD PluginDocumentSettingPanel.Slot = Slot; /* harmony default export */ __webpack_exports__["a"] = (PluginDocumentSettingPanel); -/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(102))) - -/***/ }), - -/***/ 17: -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; - -// EXPORTS -__webpack_require__.d(__webpack_exports__, "a", function() { return /* binding */ _toConsumableArray; }); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js -var arrayLikeToArray = __webpack_require__(27); - -// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js - -function _arrayWithoutHoles(arr) { - if (Array.isArray(arr)) return Object(arrayLikeToArray["a" /* default */])(arr); -} -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/iterableToArray.js -var iterableToArray = __webpack_require__(37); - -// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js -var unsupportedIterableToArray = __webpack_require__(30); - -// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js -function _nonIterableSpread() { - throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); -} -// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js - - - - -function _toConsumableArray(arr) { - return _arrayWithoutHoles(arr) || Object(iterableToArray["a" /* default */])(arr) || Object(unsupportedIterableToArray["a" /* default */])(arr) || _nonIterableSpread(); -} +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(103))) /***/ }), @@ -813,7 +813,7 @@ function _getPrototypeOf(o) { /***/ }), -/***/ 209: +/***/ 208: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -946,7 +946,7 @@ function _arrayLikeToArray(arr, len) { /***/ }), -/***/ 291: +/***/ 292: /***/ (function(module, exports) { (function() { module.exports = this["wp"]["blockLibrary"]; }()); @@ -961,24 +961,13 @@ function _arrayLikeToArray(arr, len) { /***/ }), /***/ 30: -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _unsupportedIterableToArray; }); -/* harmony import */ var _babel_runtime_helpers_esm_arrayLikeToArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(27); +/***/ (function(module, exports) { -function _unsupportedIterableToArray(o, minLen) { - if (!o) return; - if (typeof o === "string") return Object(_babel_runtime_helpers_esm_arrayLikeToArray__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(o, minLen); - var n = Object.prototype.toString.call(o).slice(8, -1); - if (n === "Object" && o.constructor) n = o.constructor.name; - if (n === "Map" || n === "Set") return Array.from(o); - if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return Object(_babel_runtime_helpers_esm_arrayLikeToArray__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(o, minLen); -} +(function() { module.exports = this["wp"]["url"]; }()); /***/ }), -/***/ 301: +/***/ 302: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -1003,7 +992,7 @@ var starFilled = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createE /***/ }), -/***/ 302: +/***/ 303: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -1031,13 +1020,24 @@ var starEmpty = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createEl /***/ }), /***/ 31: -/***/ (function(module, exports) { +/***/ (function(module, __webpack_exports__, __webpack_require__) { -(function() { module.exports = this["wp"]["url"]; }()); +"use strict"; +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _unsupportedIterableToArray; }); +/* harmony import */ var _babel_runtime_helpers_esm_arrayLikeToArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(27); + +function _unsupportedIterableToArray(o, minLen) { + if (!o) return; + if (typeof o === "string") return Object(_babel_runtime_helpers_esm_arrayLikeToArray__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(o, minLen); + var n = Object.prototype.toString.call(o).slice(8, -1); + if (n === "Object" && o.constructor) n = o.constructor.name; + if (n === "Map" || n === "Set") return Array.from(o); + if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return Object(_babel_runtime_helpers_esm_arrayLikeToArray__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])(o, minLen); +} /***/ }), -/***/ 316: +/***/ 317: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -1428,7 +1428,29 @@ function isShallowEqual( a, b, fromIndex ) { /***/ }), -/***/ 427: +/***/ 43: +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _objectWithoutPropertiesLoose; }); +function _objectWithoutPropertiesLoose(source, excluded) { + if (source == null) return {}; + var target = {}; + var sourceKeys = Object.keys(source); + var key, i; + + for (i = 0; i < sourceKeys.length; i++) { + key = sourceKeys[i]; + if (excluded.indexOf(key) >= 0) continue; + target[key] = source[key]; + } + + return target; +} + +/***/ }), + +/***/ 441: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -1453,29 +1475,7 @@ var external = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createEle /***/ }), -/***/ 43: -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _objectWithoutPropertiesLoose; }); -function _objectWithoutPropertiesLoose(source, excluded) { - if (source == null) return {}; - var target = {}; - var sourceKeys = Object.keys(source); - var key, i; - - for (i = 0; i < sourceKeys.length; i++) { - key = sourceKeys[i]; - if (excluded.indexOf(key) >= 0) continue; - target[key] = source[key]; - } - - return target; -} - -/***/ }), - -/***/ 438: +/***/ 452: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -1500,7 +1500,21 @@ var plugins = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createElem /***/ }), -/***/ 456: +/***/ 46: +/***/ (function(module, exports) { + +(function() { module.exports = this["wp"]["a11y"]; }()); + +/***/ }), + +/***/ 47: +/***/ (function(module, exports) { + +(function() { module.exports = this["wp"]["apiFetch"]; }()); + +/***/ }), + +/***/ 470: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -1602,16 +1616,16 @@ var external_this_wp_editor_ = __webpack_require__(34); var external_this_wp_keyboardShortcuts_ = __webpack_require__(53); // EXTERNAL MODULE: external {"this":["wp","reusableBlocks"]} -var external_this_wp_reusableBlocks_ = __webpack_require__(121); +var external_this_wp_reusableBlocks_ = __webpack_require__(122); // EXTERNAL MODULE: external {"this":["wp","viewport"]} var external_this_wp_viewport_ = __webpack_require__(101); // EXTERNAL MODULE: external {"this":["wp","notices"]} -var external_this_wp_notices_ = __webpack_require__(92); +var external_this_wp_notices_ = __webpack_require__(94); // EXTERNAL MODULE: external {"this":["wp","blockLibrary"]} -var external_this_wp_blockLibrary_ = __webpack_require__(291); +var external_this_wp_blockLibrary_ = __webpack_require__(292); // EXTERNAL MODULE: external {"this":["wp","hooks"]} var external_this_wp_hooks_ = __webpack_require__(33); @@ -1791,13 +1805,13 @@ Object(external_this_wp_hooks_["addFilter"])('editor.BlockEdit', 'core/edit-post // EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/external.js -var external = __webpack_require__(427); +var external = __webpack_require__(441); // EXTERNAL MODULE: external {"this":["wp","plugins"]} var external_this_wp_plugins_ = __webpack_require__(77); // EXTERNAL MODULE: external {"this":["wp","url"]} -var external_this_wp_url_ = __webpack_require__(31); +var external_this_wp_url_ = __webpack_require__(30); // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/plugins/copy-content-menu-item/index.js @@ -3572,10 +3586,10 @@ var build_module_store_store = Object(external_this_wp_data_["registerStore"])(c var check = __webpack_require__(161); // EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/star-filled.js -var star_filled = __webpack_require__(301); +var star_filled = __webpack_require__(302); // EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/star-empty.js -var star_empty = __webpack_require__(302); +var star_empty = __webpack_require__(303); // EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/close-small.js var close_small = __webpack_require__(159); @@ -5143,7 +5157,7 @@ var section_Section = function Section(_ref) { /* harmony default export */ var section = (section_Section); // EXTERNAL MODULE: ./node_modules/@wordpress/edit-post/build-module/components/preferences-modal/options/base.js -var base = __webpack_require__(116); +var base = __webpack_require__(117); // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/preferences-modal/options/enable-publish-sidebar.js /** @@ -5205,10 +5219,10 @@ Object(external_this_wp_viewport_["ifViewportMatches"])('medium'))(base["a" /* d }))(base["a" /* default */])); // EXTERNAL MODULE: ./node_modules/@wordpress/edit-post/build-module/components/preferences-modal/options/enable-plugin-document-setting-panel.js -var enable_plugin_document_setting_panel = __webpack_require__(489); +var enable_plugin_document_setting_panel = __webpack_require__(503); // EXTERNAL MODULE: ./node_modules/@wordpress/edit-post/build-module/components/preferences-modal/options/enable-panel.js -var enable_panel = __webpack_require__(490); +var enable_panel = __webpack_require__(504); // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/preferences-modal/options/enable-custom-fields.js @@ -5696,7 +5710,7 @@ function FullscreenModeClose(_ref) { /* harmony default export */ var fullscreen_mode_close = (FullscreenModeClose); // EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/plus.js -var plus = __webpack_require__(209); +var plus = __webpack_require__(208); // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/header/header-toolbar/index.js @@ -5858,7 +5872,7 @@ function HeaderToolbar() { /* harmony default export */ var header_toolbar = (HeaderToolbar); // EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/more-vertical.js -var more_vertical = __webpack_require__(316); +var more_vertical = __webpack_require__(317); // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/header/mode-switcher/index.js @@ -7437,7 +7451,7 @@ function MetaBoxes(_ref) { })(MetaBoxes)); // EXTERNAL MODULE: ./node_modules/@wordpress/edit-post/build-module/components/sidebar/plugin-document-setting-panel/index.js -var plugin_document_setting_panel = __webpack_require__(169); +var plugin_document_setting_panel = __webpack_require__(170); // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/sidebar/plugin-sidebar/index.js @@ -8559,7 +8573,7 @@ var editor_Editor = /*#__PURE__*/function (_Component) { })])(editor_Editor)); // EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/plugins.js -var plugins = __webpack_require__(438); +var plugins = __webpack_require__(452); // CONCATENATED MODULE: ./node_modules/@wordpress/edit-post/build-module/components/block-settings-menu/plugin-block-settings-menu-item.js @@ -8945,21 +8959,29 @@ function initializeEditor(id, postType, postId, settings, initialEdits) { /***/ }), -/***/ 46: -/***/ (function(module, exports) { - -(function() { module.exports = this["wp"]["a11y"]; }()); - -/***/ }), +/***/ 5: +/***/ (function(module, __webpack_exports__, __webpack_require__) { -/***/ 47: -/***/ (function(module, exports) { +"use strict"; +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _defineProperty; }); +function _defineProperty(obj, key, value) { + if (key in obj) { + Object.defineProperty(obj, key, { + value: value, + enumerable: true, + configurable: true, + writable: true + }); + } else { + obj[key] = value; + } -(function() { module.exports = this["wp"]["apiFetch"]; }()); + return obj; +} /***/ }), -/***/ 489: +/***/ 503: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -8967,7 +8989,7 @@ function initializeEditor(id, postType, postId, settings, initialEdits) { /* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(3); /* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_components__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _index__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(490); +/* harmony import */ var _index__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(504); /** @@ -8999,7 +9021,7 @@ EnablePluginDocumentSettingPanelOption.Slot = Slot; /***/ }), -/***/ 490: +/***/ 504: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -9007,7 +9029,7 @@ EnablePluginDocumentSettingPanelOption.Slot = Slot; /* harmony import */ var _wordpress_compose__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_compose__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(4); /* harmony import */ var _wordpress_data__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_wordpress_data__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _base__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(116); +/* harmony import */ var _base__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(117); /** * WordPress dependencies */ @@ -9042,28 +9064,6 @@ EnablePluginDocumentSettingPanelOption.Slot = Slot; }))(_base__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])); -/***/ }), - -/***/ 5: -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _defineProperty; }); -function _defineProperty(obj, key, value) { - if (key in obj) { - Object.defineProperty(obj, key, { - value: value, - enumerable: true, - configurable: true, - writable: true - }); - } else { - obj[key] = value; - } - - return obj; -} - /***/ }), /***/ 53: @@ -9352,14 +9352,14 @@ var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*! /***/ }), -/***/ 90: +/***/ 92: /***/ (function(module, exports) { (function() { module.exports = this["wp"]["warning"]; }()); /***/ }), -/***/ 92: +/***/ 94: /***/ (function(module, exports) { (function() { module.exports = this["wp"]["notices"]; }()); diff --git a/wp-includes/js/dist/edit-post.min.js b/wp-includes/js/dist/edit-post.min.js index 7b2986d99b..ea18596b0d 100644 --- a/wp-includes/js/dist/edit-post.min.js +++ b/wp-includes/js/dist/edit-post.min.js @@ -1,7 +1,7 @@ /*! This file is auto-generated */ -this.wp=this.wp||{},this.wp.editPost=function(e){var t={};function r(n){if(t[n])return t[n].exports;var i=t[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)r.d(n,i,function(t){return e[t]}.bind(null,i));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=456)}({0:function(e,t){!function(){e.exports=this.wp.element}()},1:function(e,t){!function(){e.exports=this.wp.i18n}()},10:function(e,t){!function(){e.exports=this.wp.compose}()},101:function(e,t){!function(){e.exports=this.wp.viewport}()},102:function(e,t){var r,n,i=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function c(e){if(r===setTimeout)return setTimeout(e,0);if((r===o||!r)&&setTimeout)return r=setTimeout,setTimeout(e,0);try{return r(e,0)}catch(t){try{return r.call(null,e,0)}catch(t){return r.call(this,e,0)}}}!function(){try{r="function"==typeof setTimeout?setTimeout:o}catch(e){r=o}try{n="function"==typeof clearTimeout?clearTimeout:a}catch(e){n=a}}();var A,u=[],l=!1,s=-1;function m(){l&&A&&(l=!1,A.length?u=A.concat(u):s=-1,u.length&&q())}function q(){if(!l){var e=c(m);l=!0;for(var t=u.length;t;){for(A=u,u=[];++s1)for(var r=1;r=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}},149:function(e,t,r){"use strict";e.exports=function(e){var t,r={};return function e(t,r){var n;if(Array.isArray(r))for(n=0;ne.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0||(i[r]=e[r]);return i}r.d(t,"a",(function(){return n}))},438:function(e,t,r){"use strict";var n=r(0),i=r(7),o=Object(n.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(n.createElement)(i.Path,{d:"M10.5 4v4h3V4H15v4h1.5a1 1 0 011 1v4l-3 4v2a1 1 0 01-1 1h-3a1 1 0 01-1-1v-2l-3-4V9a1 1 0 011-1H9V4h1.5zm.5 12.5v2h2v-2l3-4v-3H8v3l3 4z"}));t.a=o},456:function(e,t,r){"use strict";r.r(t),r.d(t,"reinitializeEditor",(function(){return gi})),r.d(t,"initializeEditor",(function(){return hi})),r.d(t,"PluginBlockSettingsMenuItem",(function(){return Oi})),r.d(t,"PluginDocumentSettingPanel",(function(){return Gn.a})),r.d(t,"PluginMoreMenuItem",(function(){return Ii})),r.d(t,"PluginPostPublishPanel",(function(){return Fn})),r.d(t,"PluginPostStatusInfo",(function(){return mn})),r.d(t,"PluginPrePublishPanel",(function(){return $n})),r.d(t,"PluginSidebar",(function(){return Yn})),r.d(t,"PluginSidebarMoreMenuItem",(function(){return bi})),r.d(t,"__experimentalFullscreenModeClose",(function(){return wr}));var n={};r.r(n),r.d(n,"openGeneralSidebar",(function(){return re})),r.d(n,"closeGeneralSidebar",(function(){return ne})),r.d(n,"openModal",(function(){return ie})),r.d(n,"closeModal",(function(){return oe})),r.d(n,"openPublishSidebar",(function(){return ae})),r.d(n,"closePublishSidebar",(function(){return ce})),r.d(n,"togglePublishSidebar",(function(){return Ae})),r.d(n,"toggleEditorPanelEnabled",(function(){return ue})),r.d(n,"toggleEditorPanelOpened",(function(){return le})),r.d(n,"removeEditorPanel",(function(){return se})),r.d(n,"toggleFeature",(function(){return me})),r.d(n,"switchEditorMode",(function(){return qe})),r.d(n,"togglePinnedPluginItem",(function(){return pe})),r.d(n,"hideBlockTypes",(function(){return de})),r.d(n,"updatePreferredStyleVariations",(function(){return Oe})),r.d(n,"__experimentalUpdateLocalAutosaveInterval",(function(){return Ie})),r.d(n,"showBlockTypes",(function(){return be})),r.d(n,"setAvailableMetaBoxesPerLocation",(function(){return ge})),r.d(n,"requestMetaBoxUpdates",(function(){return he})),r.d(n,"metaBoxUpdatesSuccess",(function(){return ve})),r.d(n,"__experimentalSetPreviewDeviceType",(function(){return je})),r.d(n,"setIsInserterOpened",(function(){return Ce}));var i={};r.r(i),r.d(i,"getEditorMode",(function(){return Ee})),r.d(i,"isEditorSidebarOpened",(function(){return Ke})),r.d(i,"isPluginSidebarOpened",(function(){return fe})),r.d(i,"getActiveGeneralSidebarName",(function(){return Se})),r.d(i,"getPreferences",(function(){return Me})),r.d(i,"getPreference",(function(){return Ze})),r.d(i,"isPublishSidebarOpened",(function(){return ze})),r.d(i,"isEditorPanelRemoved",(function(){return we})),r.d(i,"isEditorPanelEnabled",(function(){return Be})),r.d(i,"isEditorPanelOpened",(function(){return Ge})),r.d(i,"isModalActive",(function(){return Ye})),r.d(i,"isFeatureActive",(function(){return ke})),r.d(i,"isPluginItemPinned",(function(){return Qe})),r.d(i,"getActiveMetaBoxLocations",(function(){return We})),r.d(i,"isMetaBoxLocationVisible",(function(){return Le})),r.d(i,"isMetaBoxLocationActive",(function(){return De})),r.d(i,"getMetaBoxesPerLocation",(function(){return Ne})),r.d(i,"getAllMetaBoxes",(function(){return Pe})),r.d(i,"hasMetaBoxes",(function(){return Je})),r.d(i,"isSavingMetaBoxes",(function(){return xe})),r.d(i,"__experimentalGetPreviewDeviceType",(function(){return He})),r.d(i,"isInserterOpened",(function(){return Re}));var o={};r.r(o),r.d(o,"enableComplementaryArea",(function(){return It})),r.d(o,"disableComplementaryArea",(function(){return bt})),r.d(o,"pinItem",(function(){return ht})),r.d(o,"unpinItem",(function(){return vt}));var a={};r.r(a),r.d(a,"getActiveComplementaryArea",(function(){return jt})),r.d(a,"isItemPinned",(function(){return Ct}));var c=r(0),A=(r(83),r(6)),u=r(34),l=r(53),s=(r(121),r(101)),m=(r(92),r(291)),q=r(33),p=r(155);Object(q.addFilter)("editor.MediaUpload","core/edit-post/replace-media-upload",(function(){return p.MediaUpload}));var d=r(8),O=r(14),I=r(2),b=r(11),g=r(3),h=r(4),v=r(1),j=r(10),C=Object(j.compose)(Object(h.withSelect)((function(e,t){if(Object(b.hasBlockSupport)(t.name,"multiple",!0))return{};var r=e("core/block-editor").getBlocks(),n=Object(I.find)(r,(function(e){var r=e.name;return t.name===r}));return{originalBlockClientId:n&&n.clientId!==t.clientId&&n.clientId}})),Object(h.withDispatch)((function(e,t){var r=t.originalBlockClientId;return{selectFirst:function(){return e("core/block-editor").selectBlock(r)}}}))),y=Object(j.createHigherOrderComponent)((function(e){return C((function(t){var r=t.originalBlockClientId,n=t.selectFirst,i=Object(O.a)(t,["originalBlockClientId","selectFirst"]);if(!r)return Object(c.createElement)(e,i);var o=Object(b.getBlockType)(i.name),a=function(e){var t=Object(b.findTransform)(Object(b.getBlockTransforms)("to",e),(function(e){var t=e.type,r=e.blocks;return"block"===t&&1===r.length}));if(!t)return null;return Object(b.getBlockType)(t.blocks[0])}(i.name);return[Object(c.createElement)("div",{key:"invalid-preview",style:{minHeight:"60px"}},Object(c.createElement)(e,Object(d.a)({key:"block-edit"},i))),Object(c.createElement)(A.Warning,{key:"multiple-use-warning",actions:[Object(c.createElement)(g.Button,{key:"find-original",isSecondary:!0,onClick:n},Object(v.__)("Find original")),Object(c.createElement)(g.Button,{key:"remove",isSecondary:!0,onClick:function(){return i.onReplace([])}},Object(v.__)("Remove")),a&&Object(c.createElement)(g.Button,{key:"transform",isSecondary:!0,onClick:function(){return i.onReplace(Object(b.createBlock)(a.name,i.attributes))}},Object(v.__)("Transform into:")," ",a.title)]},Object(c.createElement)("strong",null,o.title,": "),Object(v.__)("This block can only be used once."))]}))}),"withMultipleValidation");Object(q.addFilter)("editor.BlockEdit","core/edit-post/validate-multiple-use/with-multiple-validation",y);var E=r(427),K=r(77),f=r(31);var S=Object(j.compose)(Object(h.withSelect)((function(e){return{editedPostContent:e("core/editor").getEditedPostAttribute("content")}})),Object(h.withDispatch)((function(e){return{createNotice:e("core/notices").createNotice}})),Object(j.ifCondition)((function(e){return e.editedPostContent.length>0})))((function(e){var t=e.createNotice,r=e.editedPostContent,n=Object(c.useRef)(),i=Object(j.useCopyOnClick)(n,r);return Object(c.useEffect)((function(){i&&t("info",Object(v.__)("All content copied."),{isDismissible:!0,type:"snackbar"})}),[i]),Object(c.createElement)(g.MenuItem,{ref:n},i?Object(v.__)("Copied!"):Object(v.__)("Copy all content"))}));var M=Object(h.withDispatch)((function(e){return{openModal:e("core/edit-post").openModal}}))((function(e){var t=e.openModal;return Object(c.createElement)(g.MenuItem,{onClick:function(){t("edit-post/manage-blocks")}},Object(v.__)("Block Manager"))})),Z=r(18);var z=Object(h.withDispatch)((function(e){return{openModal:e("core/edit-post").openModal}}))((function(e){var t=e.openModal;return Object(c.createElement)(g.MenuItem,{onClick:function(){t("edit-post/keyboard-shortcut-help")},shortcut:Z.displayShortcut.access("h")},Object(v.__)("Keyboard shortcuts"))})),w=Object(g.createSlotFill)("ToolsMoreMenuGroup"),B=w.Fill,G=w.Slot;B.Slot=function(e){var t=e.fillProps;return Object(c.createElement)(G,{fillProps:t},(function(e){return!Object(I.isEmpty)(e)&&Object(c.createElement)(g.MenuGroup,{label:Object(v.__)("Tools")},e)}))};var Y=B;function k(){var e=Object(h.useDispatch)("core/edit-post").toggleFeature;return Object(c.createElement)(g.MenuItem,{onClick:function(){return e("welcomeGuide")}},Object(v.__)("Welcome Guide"))}Object(K.registerPlugin)("edit-post",{render:function(){return Object(c.createElement)(c.Fragment,null,Object(c.createElement)(Y,null,(function(e){var t=e.onClose;return Object(c.createElement)(c.Fragment,null,Object(c.createElement)(M,{onSelect:t}),Object(c.createElement)(g.MenuItem,{role:"menuitem",href:Object(f.addQueryArgs)("edit.php",{post_type:"wp_block"})},Object(v.__)("Manage all reusable blocks")),Object(c.createElement)(z,{onSelect:t}),Object(c.createElement)(k,null),Object(c.createElement)(S,null),Object(c.createElement)(g.MenuItem,{role:"menuitem",icon:E.a,href:Object(v.__)("https://wordpress.org/support/article/wordpress-editor/"),target:"_blank",rel:"noopener noreferrer"},Object(v.__)("Help"),Object(c.createElement)(g.VisuallyHidden,{as:"span"},Object(v.__)("(opens in a new tab)"))))})))}});var Q=r(5),W=r(32),L=r(17);function D(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function N(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:P,r=arguments.length>1?arguments[1]:void 0;return e(t,r)}})])({panels:function(e,t){switch(t.type){case"TOGGLE_PANEL_ENABLED":var r=t.panelName;return N(N({},e),{},Object(Q.a)({},r,N(N({},e[r]),{},{enabled:!Object(I.get)(e,[r,"enabled"],!0)})));case"TOGGLE_PANEL_OPENED":var n=t.panelName,i=!0===e[n]||Object(I.get)(e,[n,"opened"],!1);return N(N({},e),{},Object(Q.a)({},n,N(N({},e[n]),{},{opened:!i})))}return e},features:function(e,t){return"TOGGLE_FEATURE"===t.type?N(N({},e),{},Object(Q.a)({},t.feature,!e[t.feature])):e},editorMode:function(e,t){return"SWITCH_MODE"===t.type?t.mode:e},hiddenBlockTypes:function(e,t){switch(t.type){case"SHOW_BLOCK_TYPES":return I.without.apply(void 0,[e].concat(Object(L.a)(t.blockNames)));case"HIDE_BLOCK_TYPES":return Object(I.union)(e,t.blockNames)}return e},preferredStyleVariations:function(e,t){switch(t.type){case"UPDATE_PREFERRED_STYLE_VARIATIONS":return t.blockName?t.blockStyle?N(N({},e),{},Object(Q.a)({},t.blockName,t.blockStyle)):Object(I.omit)(e,[t.blockName]):e}return e},localAutosaveInterval:function(e,t){switch(t.type){case"UPDATE_LOCAL_AUTOSAVE_INTERVAL":return t.interval}return e}});var x=Object(h.combineReducers)({isSaving:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"REQUEST_META_BOX_UPDATES":return!0;case"META_BOX_UPDATES_SUCCESS":return!1;default:return e}},locations:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SET_META_BOXES_PER_LOCATIONS":return t.metaBoxesPerLocation}return e}}),H=Object(h.combineReducers)({activeModal:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"OPEN_MODAL":return t.name;case"CLOSE_MODAL":return null}return e},metaBoxes:x,preferences:J,publishSidebarActive:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"OPEN_PUBLISH_SIDEBAR":return!0;case"CLOSE_PUBLISH_SIDEBAR":return!1;case"TOGGLE_PUBLISH_SIDEBAR":return!e}return e},removedPanels:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"REMOVE_PANEL":if(!Object(I.includes)(e,t.panelName))return[].concat(Object(L.a)(e),[t.panelName])}return e},deviceType:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"Desktop",t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SET_PREVIEW_DEVICE_TYPE":return t.deviceType}return e},isInserterOpened:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SET_IS_INSERTER_OPENED":return t.value}return e}}),R=r(149),T=r.n(R),F=r(12),U=r(46),X=r(47),V=r.n(X),_=r(20),$=r.n(_),ee=$.a.mark(re),te=$.a.mark(ne);function re(e){return $.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Object(W.dispatch)("core/interface","enableComplementaryArea","core/edit-post",e);case 2:case"end":return t.stop()}}),ee)}function ne(){return $.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(W.dispatch)("core/interface","disableComplementaryArea","core/edit-post");case 2:case"end":return e.stop()}}),te)}function ie(e){return{type:"OPEN_MODAL",name:e}}function oe(){return{type:"CLOSE_MODAL"}}function ae(){return{type:"OPEN_PUBLISH_SIDEBAR"}}function ce(){return{type:"CLOSE_PUBLISH_SIDEBAR"}}function Ae(){return{type:"TOGGLE_PUBLISH_SIDEBAR"}}function ue(e){return{type:"TOGGLE_PANEL_ENABLED",panelName:e}}function le(e){return{type:"TOGGLE_PANEL_OPENED",panelName:e}}function se(e){return{type:"REMOVE_PANEL",panelName:e}}function me(e){return{type:"TOGGLE_FEATURE",feature:e}}function qe(e){return{type:"SWITCH_MODE",mode:e}}function pe(e){return{type:"TOGGLE_PINNED_PLUGIN_ITEM",pluginName:e}}function de(e){return{type:"HIDE_BLOCK_TYPES",blockNames:Object(I.castArray)(e)}}function Oe(e,t){return{type:"UPDATE_PREFERRED_STYLE_VARIATIONS",blockName:e,blockStyle:t}}function Ie(e){return{type:"UPDATE_LOCAL_AUTOSAVE_INTERVAL",interval:e}}function be(e){return{type:"SHOW_BLOCK_TYPES",blockNames:Object(I.castArray)(e)}}function ge(e){return{type:"SET_META_BOXES_PER_LOCATIONS",metaBoxesPerLocation:e}}function he(){return{type:"REQUEST_META_BOX_UPDATES"}}function ve(){return{type:"META_BOX_UPDATES_SUCCESS"}}function je(e){return{type:"SET_PREVIEW_DEVICE_TYPE",deviceType:e}}function Ce(e){return{type:"SET_IS_INSERTER_OPENED",value:e}}var ye=r(42);function Ee(e){return Ze(e,"editorMode","visual")}var Ke=Object(h.createRegistrySelector)((function(e){return function(){var t=e("core/interface").getActiveComplementaryArea("core/edit-post");return Object(I.includes)(["edit-post/document","edit-post/block"],t)}})),fe=Object(h.createRegistrySelector)((function(e){return function(){var t=e("core/interface").getActiveComplementaryArea("core/edit-post");return!!t&&!Object(I.includes)(["edit-post/document","edit-post/block"],t)}})),Se=Object(h.createRegistrySelector)((function(e){return function(){return e("core/interface").getActiveComplementaryArea("core/edit-post")}}));function Me(e){return e.preferences}function Ze(e,t,r){var n=Me(e)[t];return void 0===n?r:n}function ze(e){return e.publishSidebarActive}function we(e,t){return Object(I.includes)(e.removedPanels,t)}function Be(e,t){var r=Ze(e,"panels");return!we(e,t)&&Object(I.get)(r,[t,"enabled"],!0)}function Ge(e,t){var r=Ze(e,"panels");return!0===Object(I.get)(r,[t])||!0===Object(I.get)(r,[t,"opened"])}function Ye(e,t){return e.activeModal===t}function ke(e,t){return Object(I.get)(e.preferences.features,[t],!1)}var Qe=Object(h.createRegistrySelector)((function(e){return function(t){return e("core/interface").isItemPinned("core/edit-post",t)}})),We=Object(ye.a)((function(e){return Object.keys(e.metaBoxes.locations).filter((function(t){return De(e,t)}))}),(function(e){return[e.metaBoxes.locations]}));function Le(e,t){return De(e,t)&&Object(I.some)(Ne(e,t),(function(t){var r=t.id;return Be(e,"meta-box-".concat(r))}))}function De(e,t){var r=Ne(e,t);return!!r&&0!==r.length}function Ne(e,t){return e.metaBoxes.locations[t]}var Pe=Object(ye.a)((function(e){return Object(I.flatten)(Object(I.values)(e.metaBoxes.locations))}),(function(e){return[e.metaBoxes.locations]}));function Je(e){return We(e).length>0}function xe(e){return e.metaBoxes.isSaving}function He(e){return e.deviceType}function Re(e){return e.isInserterOpened}var Te;function Fe(e,t){var r;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return Ue(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Ue(e,t)}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,c=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return a=e.done,e},e:function(e){c=!0,o=e},f:function(){try{a||null==r.return||r.return()}finally{if(c)throw o}}}}function Ue(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,r=t.type,n=t.itemType,i=t.scope,o=t.item;return"SET_SINGLE_ENABLE_ITEM"===r&&n&&i?qt(qt({},e),{},Object(Q.a)({},n,qt(qt({},e[n]),{},Object(Q.a)({},i,o||null)))):e},multipleEnableItems:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,r=t.type,n=t.itemType,i=t.scope,o=t.item,a=t.isEnable;if("SET_MULTIPLE_ENABLE_ITEM"!==r||!n||!i||!o||Object(I.get)(e,[n,i,o])===a)return e;var c=e[n]||{},A=c[i]||{};return qt(qt({},e),{},Object(Q.a)({},n,qt(qt({},c),{},Object(Q.a)({},i,qt(qt({},A),{},Object(Q.a)({},o,a||!1))))))}}),dt=Object(h.combineReducers)({enableItems:pt});function Ot(e,t,r){return{type:"SET_SINGLE_ENABLE_ITEM",itemType:e,scope:t,item:r}}function It(e,t){return Ot("complementaryArea",e,t)}function bt(e){return Ot("complementaryArea",e,void 0)}function gt(e,t,r,n){return{type:"SET_MULTIPLE_ENABLE_ITEM",itemType:e,scope:t,item:r,isEnable:n}}function ht(e,t){return gt("pinnedItems",e,t,!0)}function vt(e,t){return gt("pinnedItems",e,t,!1)}function jt(e,t){return function(e,t,r){return Object(I.get)(e.enableItems.singleEnableItems,[t,r])}(e,"complementaryArea",t)}function Ct(e,t,r){return!1!==function(e,t,r,n){return Object(I.get)(e.enableItems.multipleEnableItems,[t,r,n])}(e,"pinnedItems",t,r)}Object(h.registerStore)("core/interface",{reducer:dt,actions:o,selectors:a,persist:["enableItems"]});var yt=r(161),Et=r(301),Kt=r(302),ft=r(159),St=Object(K.withPluginContext)((function(e,t){return{icon:t.icon||e.icon,identifier:t.identifier||"".concat(e.name,"/").concat(t.name)}}));var Mt=St((function(e){var t=e.as,r=void 0===t?g.Button:t,n=e.scope,i=e.identifier,o=e.icon,a=e.selectedIcon,A=Object(O.a)(e,["as","scope","identifier","icon","selectedIcon"]),u=r,l=Object(h.useSelect)((function(e){return e("core/interface").getActiveComplementaryArea(n)===i}),[i]),s=Object(h.useDispatch)("core/interface"),m=s.enableComplementaryArea,q=s.disableComplementaryArea;return Object(c.createElement)(u,Object(d.a)({icon:a&&l?a:o,onClick:function(){l?q(n):m(n,i)}},Object(I.omit)(A,["name"])))})),Zt=function(e){var t=e.smallScreenTitle,r=e.children,n=e.className,i=e.toggleButtonProps,o=Object(c.createElement)(Mt,Object(d.a)({icon:ft.a},i));return Object(c.createElement)(c.Fragment,null,Object(c.createElement)("div",{className:"components-panel__header interface-complementary-area-header__small"},t&&Object(c.createElement)("span",{className:"interface-complementary-area-header__small-title"},t),o),Object(c.createElement)("div",{className:st()("components-panel__header","interface-complementary-area-header",n),tabIndex:-1},r,o))};function zt(e){var t=e.scope,r=Object(O.a)(e,["scope"]);return Object(c.createElement)(g.Fill,Object(d.a)({name:"PinnedItems/".concat(t)},r))}zt.Slot=function(e){var t=e.scope,r=e.className,n=Object(O.a)(e,["scope","className"]);return Object(c.createElement)(g.Slot,Object(d.a)({name:"PinnedItems/".concat(t)},n),(function(e){return!Object(I.isEmpty)(e)&&Object(c.createElement)("div",{className:st()(r,"interface-pinned-items")},e)}))};var wt=zt;function Bt(e){var t=e.scope,r=e.children,n=e.className;return Object(c.createElement)(g.Fill,{name:"ComplementaryArea/".concat(t)},Object(c.createElement)(g.Animate,{type:"slide-in",options:{origin:"left"}},(function(){return Object(c.createElement)("div",{className:n},r)})))}var Gt=St((function(e){var t=e.children,r=e.className,n=e.closeLabel,i=void 0===n?Object(v.__)("Close plugin"):n,o=e.identifier,a=e.header,A=e.headerClassName,u=e.icon,l=e.isPinnable,s=void 0===l||l,m=e.panelClassName,q=e.scope,p=e.smallScreenTitle,d=e.title,O=e.toggleShortcut,I=e.isActiveByDefault,b=e.showIconLabels,j=void 0!==b&&b,C=Object(h.useSelect)((function(e){var t=e("core/interface"),r=t.getActiveComplementaryArea,n=t.isItemPinned,i=r(q);return{isActive:i===o,isPinned:n(q,o),activeArea:i,isSmall:e("core/viewport").isViewportMatch("< medium"),isLarge:e("core/viewport").isViewportMatch("large")}}),[o,q]),y=C.isActive,E=C.isPinned,K=C.activeArea,f=C.isSmall,S=C.isLarge;!function(e,t,r,n,i){var o=Object(c.useRef)(!1),a=Object(c.useRef)(!1),A=Object(h.useDispatch)("core/interface"),u=A.enableComplementaryArea,l=A.disableComplementaryArea;Object(c.useEffect)((function(){n&&i&&!o.current?(l(e),a.current=!0):a.current&&!i&&o.current?(a.current=!1,u(e,t)):a.current&&r&&r!==t&&(a.current=!1),i!==o.current&&(o.current=i)}),[n,i,e,t,r])}(q,o,K,y,f);var M=Object(h.useDispatch)("core/interface"),Z=M.enableComplementaryArea,z=M.disableComplementaryArea,w=M.pinItem,B=M.unpinItem;return Object(c.useEffect)((function(){I&&void 0===K&&!f&&Z(q,o)}),[K,I,q,o,f]),Object(c.createElement)(c.Fragment,null,E&&s&&Object(c.createElement)(wt,{scope:q},Object(c.createElement)(Mt,{scope:q,identifier:o,isPressed:y&&(!j||S),"aria-expanded":y,label:d,icon:j?yt.a:u,showTooltip:!j,isTertiary:j})),y&&Object(c.createElement)(Bt,{className:st()("interface-complementary-area",r),scope:q},Object(c.createElement)(Zt,{className:A,closeLabel:i,onClose:function(){return z(q)},smallScreenTitle:p,toggleButtonProps:{label:i,shortcut:O,scope:q,identifier:o}},a||Object(c.createElement)(c.Fragment,null,Object(c.createElement)("strong",null,d),s&&Object(c.createElement)(g.Button,{className:"interface-complementary-area__pin-unpin-item",icon:E?Et.a:Kt.a,label:E?Object(v.__)("Unpin from toolbar"):Object(v.__)("Pin to toolbar"),onClick:function(){return(E?B:w)(q,o)},isPressed:E,"aria-expanded":E}))),Object(c.createElement)(g.Panel,{className:m},t)))}));Gt.Slot=function(e){var t=e.scope,r=Object(O.a)(e,["scope"]);return Object(c.createElement)(g.Slot,Object(d.a)({name:"ComplementaryArea/".concat(t)},r))};var Yt=Gt;function kt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Qt(e){for(var t=1;t0?"mixed":"false",Object(c.createElement)("div",{role:"group","aria-labelledby":m,className:"edit-post-manage-blocks-modal__category"},Object(c.createElement)(g.CheckboxControl,{checked:q,onChange:a,className:"edit-post-manage-blocks-modal__category-title","aria-checked":l,label:Object(c.createElement)("span",{id:m},r)}),Object(c.createElement)(mr,{blockTypes:u,value:s,onItemChange:o}))}));var dr=Object(j.compose)([Object(j.withState)({search:""}),Object(h.withSelect)((function(e){var t=e("core/blocks"),r=t.getBlockTypes,n=t.getCategories,i=t.hasBlockSupport,o=t.isMatchingSearchTerm,a=(0,e("core/edit-post").getPreference)("hiddenBlockTypes"),c=Object(I.isArray)(a)&&a.length;return{blockTypes:r(),categories:n(),hasBlockSupport:i,isMatchingSearchTerm:o,numberOfHiddenBlocks:c}}))])((function(e){var t=e.search,r=e.setState,n=e.blockTypes,i=e.categories,o=e.hasBlockSupport,a=e.isMatchingSearchTerm,A=e.numberOfHiddenBlocks;return n=n.filter((function(e){return o(e,"inserter",!0)&&(!t||a(e,t))&&(!e.parent||Object(I.includes)(e.parent,"core/post-content"))})),Object(c.createElement)("div",{className:"edit-post-manage-blocks-modal__content"},Object(c.createElement)(g.TextControl,{type:"search",label:Object(v.__)("Search for a block"),value:t,onChange:function(e){return r({search:e})},className:"edit-post-manage-blocks-modal__search"}),!!A&&Object(c.createElement)("div",{className:"edit-post-manage-blocks-modal__disabled-blocks-count"},Object(v.sprintf)(Object(v._n)("%d block is disabled.","%d blocks are disabled.",A),A)),Object(c.createElement)("div",{tabIndex:"0",role:"region","aria-label":Object(v.__)("Available block types"),className:"edit-post-manage-blocks-modal__results"},0===n.length&&Object(c.createElement)("p",{className:"edit-post-manage-blocks-modal__no-results"},Object(v.__)("No blocks found.")),i.map((function(e){return Object(c.createElement)(pr,{key:e.slug,title:e.title,blockTypes:Object(I.filter)(n,{category:e.slug})})})),Object(c.createElement)(pr,{title:Object(v.__)("Uncategorized"),blockTypes:Object(I.filter)(n,(function(e){return!e.category}))})))}));var Or=Object(j.compose)([Object(h.withSelect)((function(e){return{isActive:(0,e("core/edit-post").isModalActive)("edit-post/manage-blocks")}})),Object(h.withDispatch)((function(e){return{closeModal:e("core/edit-post").closeModal}}))])((function(e){var t=e.isActive,r=e.closeModal;return t?Object(c.createElement)(g.Modal,{className:"edit-post-manage-blocks-modal",title:Object(v.__)("Block Manager"),closeLabel:Object(v.__)("Close"),onRequestClose:r},Object(c.createElement)(dr,null)):null})),Ir=function(e){var t=e.description,r=e.title,n=e.children;return Object(c.createElement)("section",{className:"edit-post-preferences-modal__section"},Object(c.createElement)("h2",{className:"edit-post-preferences-modal__section-title"},r),t&&Object(c.createElement)("p",{className:"edit-post-preferences-modal__section-description"},t),n)},br=r(116),gr=Object(j.compose)(Object(h.withSelect)((function(e){return{isChecked:e("core/editor").isPublishSidebarEnabled()}})),Object(h.withDispatch)((function(e){var t=e("core/editor"),r=t.enablePublishSidebar,n=t.disablePublishSidebar;return{onChange:function(e){return e?r():n()}}})),Object(s.ifViewportMatches)("medium"))(br.a),hr=Object(j.compose)(Object(h.withSelect)((function(e,t){var r=t.featureName;return{isChecked:(0,e("core/edit-post").isFeatureActive)(r)}})),Object(h.withDispatch)((function(e,t){var r=t.featureName;return{onChange:function(){return e("core/edit-post").toggleFeature(r)}}})))(br.a),vr=r(489),jr=r(490);function Cr(e){var t=e.willEnable,r=Object(c.useState)(!1),n=Object(F.a)(r,2),i=n[0],o=n[1];return Object(c.createElement)(c.Fragment,null,Object(c.createElement)("p",{className:"edit-post-preferences-modal__custom-fields-confirmation-message"},Object(v.__)("A page reload is required for this change. Make sure your content is saved before reloading.")),Object(c.createElement)(g.Button,{className:"edit-post-preferences-modal__custom-fields-confirmation-button",isSecondary:!0,isBusy:i,disabled:i,onClick:function(){o(!0),document.getElementById("toggle-custom-fields-form").submit()}},t?Object(v.__)("Enable & Reload"):Object(v.__)("Disable & Reload")))}var yr=Object(h.withSelect)((function(e){return{areCustomFieldsEnabled:!!e("core/editor").getEditorSettings().enableCustomFields}}))((function(e){var t=e.label,r=e.areCustomFieldsEnabled,n=Object(c.useState)(r),i=Object(F.a)(n,2),o=i[0],a=i[1];return Object(c.createElement)(br.a,{label:t,isChecked:o,onChange:a},o!==r&&Object(c.createElement)(Cr,{willEnable:o}))}));var Er=Object(h.withSelect)((function(e){var t=e("core/editor").getEditorSettings,r=e("core/edit-post").getAllMetaBoxes;return{areCustomFieldsRegistered:void 0!==t().enableCustomFields,metaBoxes:r()}}))((function(e){var t=e.areCustomFieldsRegistered,r=e.metaBoxes,n=Object(O.a)(e,["areCustomFieldsRegistered","metaBoxes"]),i=Object(I.filter)(r,(function(e){return"postcustom"!==e.id}));return t||0!==i.length?Object(c.createElement)(Ir,n,t&&Object(c.createElement)(yr,{label:Object(v.__)("Custom fields")}),Object(I.map)(i,(function(e){var t=e.id,r=e.title;return Object(c.createElement)(jr.a,{key:t,label:r,panelName:"meta-box-".concat(t)})}))):null}));var Kr=Object(j.compose)(Object(h.withSelect)((function(e){var t=e("core/editor").getEditedPostAttribute,r=(0,e("core").getPostType)(t("type"));return{isModalActive:e("core/edit-post").isModalActive("edit-post/preferences"),isViewable:Object(I.get)(r,["viewable"],!1)}})),Object(h.withDispatch)((function(e){return{closeModal:function(){return e("core/edit-post").closeModal()}}})))((function(e){var t=e.isModalActive,r=e.isViewable,n=e.closeModal;return t?Object(c.createElement)(g.Modal,{className:"edit-post-preferences-modal",title:Object(v.__)("Preferences"),closeLabel:Object(v.__)("Close"),onRequestClose:n},Object(c.createElement)(Ir,{title:Object(v.__)("General")},Object(c.createElement)(gr,{help:Object(v.__)("Review settings such as categories and tags."),label:Object(v.__)("Include pre-publish checklist")}),Object(c.createElement)(hr,{featureName:"mostUsedBlocks",help:Object(v.__)("Places the most frequent blocks in the block library."),label:Object(v.__)("Show most used blocks")})),Object(c.createElement)(Ir,{title:Object(v.__)("Keyboard")},Object(c.createElement)(hr,{featureName:"keepCaretInsideBlock",help:Object(v.__)("Aids screen readers by stopping text caret from leaving blocks."),label:Object(v.__)("Contain text cursor inside block")})),Object(c.createElement)(Ir,{title:Object(v.__)("Appearance")},Object(c.createElement)(hr,{featureName:"reducedUI",help:Object(v.__)("Compacts options and outlines in the toolbar."),label:Object(v.__)("Reduce the interface")}),Object(c.createElement)(hr,{featureName:"focusMode",help:Object(v.__)("Highlights the current block and fades other content."),label:Object(v.__)("Spotlight mode")}),Object(c.createElement)(hr,{featureName:"showIconLabels",help:Object(v.__)("Shows text instead of icons in toolbar."),label:Object(v.__)("Display button labels")}),Object(c.createElement)(hr,{featureName:"themeStyles",help:Object(v.__)("Make the editor look like your theme."),label:Object(v.__)("Use theme styles")})),Object(c.createElement)(Ir,{title:Object(v.__)("Document settings"),description:Object(v.__)("Choose what displays in the panel.")},Object(c.createElement)(vr.a.Slot,null),r&&Object(c.createElement)(jr.a,{label:Object(v.__)("Permalink"),panelName:"post-link"}),Object(c.createElement)(u.PostTaxonomies,{taxonomyWrapper:function(e,t){return Object(c.createElement)(jr.a,{label:Object(I.get)(t,["labels","menu_name"]),panelName:"taxonomy-panel-".concat(t.slug)})}}),Object(c.createElement)(u.PostFeaturedImageCheck,null,Object(c.createElement)(jr.a,{label:Object(v.__)("Featured image"),panelName:"featured-image"})),Object(c.createElement)(u.PostExcerptCheck,null,Object(c.createElement)(jr.a,{label:Object(v.__)("Excerpt"),panelName:"post-excerpt"})),Object(c.createElement)(u.PostTypeSupportCheck,{supportKeys:["comments","trackbacks"]},Object(c.createElement)(jr.a,{label:Object(v.__)("Discussion"),panelName:"discussion-panel"})),Object(c.createElement)(u.PageAttributesCheck,null,Object(c.createElement)(jr.a,{label:Object(v.__)("Page attributes"),panelName:"page-attributes"}))),Object(c.createElement)(Er,{title:Object(v.__)("Additional panels"),description:Object(v.__)("Add extra areas to the editor.")})):null}));function fr(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=Object(at.a)(e);if(t){var i=Object(at.a)(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return Object(ot.a)(this,r)}}var Sr=function(e){Object(it.a)(r,e);var t=fr(r);function r(){var e;return Object(rt.a)(this,r),(e=t.apply(this,arguments)).state={historyId:null},e}return Object(nt.a)(r,[{key:"componentDidUpdate",value:function(e){var t=this.props,r=t.postId,n=t.postStatus,i=t.postType,o=t.isSavingPost,a=this.state.historyId;"trash"!==n||o?r===e.postId&&r===a||"auto-draft"===n||this.setBrowserURL(r):this.setTrashURL(r,i)}},{key:"setTrashURL",value:function(e,t){window.location.href=function(e,t){return Object(f.addQueryArgs)("edit.php",{trashed:1,post_type:t,ids:e})}(e,t)}},{key:"setBrowserURL",value:function(e){window.history.replaceState({id:e},"Post "+e,function(e){return Object(f.addQueryArgs)("post.php",{post:e,action:"edit"})}(e)),this.setState((function(){return{historyId:e}}))}},{key:"render",value:function(){return null}}]),r}(c.Component),Mr=Object(h.withSelect)((function(e){var t=e("core/editor"),r=t.getCurrentPost,n=t.isSavingPost,i=r();return{postId:i.id,postStatus:i.status,postType:i.type,isSavingPost:n()}}))(Sr),Zr=r(7),zr=Object(c.createElement)(Zr.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(c.createElement)(Zr.Path,{d:"M20 10c0-5.51-4.49-10-10-10C4.48 0 0 4.49 0 10c0 5.52 4.48 10 10 10 5.51 0 10-4.48 10-10zM7.78 15.37L4.37 6.22c.55-.02 1.17-.08 1.17-.08.5-.06.44-1.13-.06-1.11 0 0-1.45.11-2.37.11-.18 0-.37 0-.58-.01C4.12 2.69 6.87 1.11 10 1.11c2.33 0 4.45.87 6.05 2.34-.68-.11-1.65.39-1.65 1.58 0 .74.45 1.36.9 2.1.35.61.55 1.36.55 2.46 0 1.49-1.4 5-1.4 5l-3.03-8.37c.54-.02.82-.17.82-.17.5-.05.44-1.25-.06-1.22 0 0-1.44.12-2.38.12-.87 0-2.33-.12-2.33-.12-.5-.03-.56 1.2-.06 1.22l.92.08 1.26 3.41zM17.41 10c.24-.64.74-1.87.43-4.25.7 1.29 1.05 2.71 1.05 4.25 0 3.29-1.73 6.24-4.4 7.78.97-2.59 1.94-5.2 2.92-7.78zM6.1 18.09C3.12 16.65 1.11 13.53 1.11 10c0-1.3.23-2.48.72-3.59C3.25 10.3 4.67 14.2 6.1 18.09zm4.03-6.63l2.58 6.98c-.86.29-1.76.45-2.71.45-.79 0-1.57-.11-2.29-.33.81-2.38 1.62-4.74 2.42-7.1z"}));var wr=function(e){var t=e.showTooltip,r=Object(h.useSelect)((function(e){var t=e("core/editor").getCurrentPostType,r=e("core/edit-post").isFeatureActive,n=e("core/data").isResolving,i=e("core"),o=i.getEntityRecord,a=i.getPostType,c=o("root","__unstableBase",void 0)||{};return{isActive:r("fullscreenMode"),isRequestingSiteIcon:n("core","getEntityRecord",["root","__unstableBase",void 0]),postType:a(t()),siteIconUrl:c.site_icon_url}}),[]),n=r.isActive,i=r.isRequestingSiteIcon,o=r.postType,a=r.siteIconUrl;if(!n||!o)return null;var A=Object(c.createElement)(g.Icon,{size:"36px",icon:zr});return a?A=Object(c.createElement)("img",{alt:Object(v.__)("Site Icon"),className:"edit-post-fullscreen-mode-close_site-icon",src:a}):i&&(A=null),Object(c.createElement)(g.Button,{className:"edit-post-fullscreen-mode-close has-icon",href:Object(f.addQueryArgs)("edit.php",{post_type:o.slug}),label:Object(I.get)(o,["labels","view_items"],Object(v.__)("Back")),showTooltip:t},A)},Br=r(209);var Gr=function(){var e=Object(c.useRef)(),t=Object(h.useDispatch)("core/edit-post").setIsInserterOpened,r=Object(h.useSelect)((function(e){var t=e("core/block-editor"),r=t.hasInserterItems,n=t.getBlockRootClientId,i=t.getBlockSelectionEnd;return{hasFixedToolbar:e("core/edit-post").isFeatureActive("fixedToolbar"),isInserterEnabled:"visual"===e("core/edit-post").getEditorMode()&&e("core/editor").getEditorSettings().richEditingEnabled&&r(n(i())),isInserterOpened:e("core/edit-post").isInserterOpened(),isTextModeEnabled:"text"===e("core/edit-post").getEditorMode(),previewDeviceType:e("core/edit-post").__experimentalGetPreviewDeviceType(),showIconLabels:e("core/edit-post").isFeatureActive("showIconLabels"),isNavigationTool:e("core/block-editor").isNavigationMode(),hasReducedUI:e("core/edit-post").isFeatureActive("reducedUI")}}),[]),n=r.hasReducedUI,i=r.hasFixedToolbar,o=r.isInserterEnabled,a=r.isInserterOpened,l=r.isTextModeEnabled,s=r.previewDeviceType,m=r.showIconLabels,q=r.isNavigationTool,p=Object(j.useViewportMatch)("medium"),d=Object(j.useViewportMatch)("wide"),O=Object(j.useViewportMatch)("small","<"),I=Object(h.useDispatch)("core/block-editor").setNavigationMode,b=!p||"Desktop"!==s||i,C=b?Object(v.__)("Document and block tools"):Object(v.__)("Document tools"),y=function(e){I("edit"!==e)},E=Object(c.createElement)(c.Fragment,null,Object(c.createElement)(g.ToolbarItem,{as:u.TableOfContents,hasOutlineItemsDisabled:l,repositionDropdown:m&&!d,showTooltip:!m,isTertiary:m}),Object(c.createElement)(g.ToolbarItem,{as:A.BlockNavigationDropdown,isDisabled:l,showTooltip:!m,isTertiary:m}));return Object(c.createElement)(A.NavigableToolbar,{className:"edit-post-header-toolbar","aria-label":C},Object(c.createElement)("div",{className:"edit-post-header-toolbar__left"},Object(c.createElement)(g.ToolbarItem,{ref:e,as:g.Button,className:"edit-post-header-toolbar__inserter-toggle",isPrimary:!0,isPressed:a,onMouseDown:function(e){e.preventDefault()},onClick:function(){a?e.current.focus():t(!0)},disabled:!o,icon:Br.a,label:Object(v._x)("Add block","Generic label for block inserter button"),showTooltip:!m},m&&Object(v.__)("Add")),!n&&(d||!m)&&Object(c.createElement)(c.Fragment,null,p&&Object(c.createElement)(g.ToolbarItem,{as:A.ToolSelector,showTooltip:!m,isTertiary:m,disabled:l}),Object(c.createElement)(g.ToolbarItem,{as:u.EditorHistoryUndo,showTooltip:!m,isTertiary:m}),Object(c.createElement)(g.ToolbarItem,{as:u.EditorHistoryRedo,showTooltip:!m,isTertiary:m}),E),!n&&!d&&!O&&m&&Object(c.createElement)(g.DropdownMenu,{position:"bottom right",label:Object(v.__)("Tools")},(function(){return Object(c.createElement)("div",{className:"edit-post-header__dropdown"},Object(c.createElement)(g.MenuGroup,{label:Object(v.__)("Modes")},Object(c.createElement)(g.MenuItemsChoice,{value:q?"select":"edit",onSelect:y,choices:[{value:"edit",label:Object(v.__)("Edit")},{value:"select",label:Object(v.__)("Select")}]})),Object(c.createElement)(g.MenuGroup,{label:Object(v.__)("Edit")},Object(c.createElement)(u.EditorHistoryUndo,{showTooltip:!m,isTertiary:m}),Object(c.createElement)(u.EditorHistoryRedo,{showTooltip:!m,isTertiary:m})),Object(c.createElement)(g.MenuGroup,null,E))}))),b&&Object(c.createElement)("div",{className:"edit-post-header-toolbar__block-toolbar"},Object(c.createElement)(A.BlockToolbar,{hideDragHandle:!0})))},Yr=r(316);function kr(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Qr(e){for(var t=1;t icon."),{InserterIconImage:Object(c.createElement)(Pn,{className:"edit-post-welcome-guide__inserter-icon"})})))},{image:Object(c.createElement)(Nn,null),content:Object(c.createElement)(c.Fragment,null,Object(c.createElement)("h1",{className:"edit-post-welcome-guide__heading"},Object(v.__)("Learn how to use the block editor")),Object(c.createElement)("p",{className:"edit-post-welcome-guide__text"},Object(v.__)("New to the block editor? Want to learn more about using it? "),Object(c.createElement)(g.ExternalLink,{href:Object(v.__)("https://wordpress.org/support/article/wordpress-editor/")},Object(v.__)("Here's a detailed guide."))))}]}):null}var xn=Object(g.createSlotFill)("PluginPostPublishPanel"),Hn=xn.Fill,Rn=xn.Slot,Tn=Object(j.compose)(Object(K.withPluginContext)((function(e,t){return{icon:t.icon||e.icon}})))((function(e){var t=e.children,r=e.className,n=e.title,i=e.initialOpen,o=void 0!==i&&i,a=e.icon;return Object(c.createElement)(Hn,null,Object(c.createElement)(g.PanelBody,{className:r,initialOpen:o||!n,title:n,icon:a},t))}));Tn.Slot=Rn;var Fn=Tn,Un=Object(g.createSlotFill)("PluginPrePublishPanel"),Xn=Un.Fill,Vn=Un.Slot,_n=Object(j.compose)(Object(K.withPluginContext)((function(e,t){return{icon:t.icon||e.icon}})))((function(e){var t=e.children,r=e.className,n=e.title,i=e.initialOpen,o=void 0!==i&&i,a=e.icon;return Object(c.createElement)(Xn,null,Object(c.createElement)(g.PanelBody,{className:r,initialOpen:o||!n,title:n,icon:a},t))}));_n.Slot=Vn;var $n=_n;function ei(e){var t,r=e.setEntitiesSavedStatesCallback,n=e.closeEntitiesSavedStates,i=e.isEntitiesSavedStatesOpen,o=Object(h.useDispatch)("core/edit-post"),a=o.closePublishSidebar,A=o.togglePublishSidebar,l=Object(h.useSelect)((function(e){return{publishSidebarOpened:e("core/edit-post").isPublishSidebarOpened(),hasActiveMetaboxes:e("core/edit-post").hasMetaBoxes(),isSavingMetaBoxes:e("core/edit-post").isSavingMetaBoxes(),hasNonPostEntityChanges:e("core/editor").hasNonPostEntityChanges()}}),[]),s=l.publishSidebarOpened,m=l.hasActiveMetaboxes,q=l.isSavingMetaBoxes,p=l.hasNonPostEntityChanges,d=Object(c.useCallback)((function(){return r(!0)}),[]);return t=s?Object(c.createElement)(u.PostPublishPanel,{onClose:a,forceIsDirty:m,forceIsSaving:q,PrePublishExtension:$n.Slot,PostPublishExtension:Fn.Slot}):p?Object(c.createElement)("div",{className:"edit-post-layout__toggle-entities-saved-states-panel"},Object(c.createElement)(g.Button,{isSecondary:!0,className:"edit-post-layout__toggle-entities-saved-states-panel-button",onClick:d,"aria-expanded":!1},Object(v.__)("Open save panel"))):Object(c.createElement)("div",{className:"edit-post-layout__toggle-publish-panel"},Object(c.createElement)(g.Button,{isSecondary:!0,className:"edit-post-layout__toggle-publish-panel-button",onClick:A,"aria-expanded":!1},Object(v.__)("Open publish panel"))),Object(c.createElement)(c.Fragment,null,Object(c.createElement)(u.EntitiesSavedStates,{isOpen:i,close:n}),!i&&t)}function ti(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=Object(at.a)(e);if(t){var i=Object(at.a)(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return Object(ot.a)(this,r)}}function ri(e){e.stopPropagation()}var ni=Object(g.withFocusOutside)(function(e){Object(it.a)(r,e);var t=ti(r);function r(){return Object(rt.a)(this,r),t.apply(this,arguments)}return Object(nt.a)(r,[{key:"handleFocusOutside",value:function(e){this.props.onFocusOutside(e)}},{key:"render",value:function(){return this.props.children}}]),r}(c.Component)),ii=Object(g.withConstrainedTabbing)(Object(g.withFocusReturn)((function(e){return e.children})));function oi(e){var t=e.onClose,r=e.children,n=e.className;return Object(c.createElement)("div",{className:n,onKeyDown:function(e){e.keyCode===Z.ESCAPE&&t&&(e.stopPropagation(),t())},onMouseDown:ri},Object(c.createElement)(ni,{onFocusOutside:t},Object(c.createElement)(ii,null,r)))}var ai={leftSidebar:Object(v.__)("Block library"),header:Object(v.__)("Editor top bar"),body:Object(v.__)("Editor content"),sidebar:Object(v.__)("Editor settings"),actions:Object(v.__)("Editor publish"),footer:Object(v.__)("Editor footer")};var ci=function(){var e=Object(j.useViewportMatch)("medium","<"),t=Object(j.useViewportMatch)("huge",">="),r=Object(h.useDispatch)("core/edit-post"),n=r.openGeneralSidebar,i=r.closeGeneralSidebar,o=r.setIsInserterOpened,a=Object(h.useSelect)((function(e){return{hasFixedToolbar:e("core/edit-post").isFeatureActive("fixedToolbar"),sidebarIsOpened:!(!e("core/interface").getActiveComplementaryArea("core/edit-post")&&!e("core/edit-post").isPublishSidebarOpened()),isFullscreenActive:e("core/edit-post").isFeatureActive("fullscreenMode"),showMostUsedBlocks:e("core/edit-post").isFeatureActive("mostUsedBlocks"),isInserterOpened:e("core/edit-post").isInserterOpened(),mode:e("core/edit-post").getEditorMode(),isRichEditingEnabled:e("core/editor").getEditorSettings().richEditingEnabled,hasActiveMetaboxes:e("core/edit-post").hasMetaBoxes(),previousShortcut:e("core/keyboard-shortcuts").getAllShortcutRawKeyCombinations("core/edit-post/previous-region"),nextShortcut:e("core/keyboard-shortcuts").getAllShortcutRawKeyCombinations("core/edit-post/next-region"),showIconLabels:e("core/edit-post").isFeatureActive("showIconLabels"),hasReducedUI:e("core/edit-post").isFeatureActive("reducedUI")}}),[]),l=a.mode,s=a.isFullscreenActive,m=a.isRichEditingEnabled,q=a.sidebarIsOpened,p=a.hasActiveMetaboxes,d=a.hasFixedToolbar,O=a.previousShortcut,I=a.nextShortcut,b=a.hasBlockSelected,C=a.showMostUsedBlocks,y=a.isInserterOpened,E=a.showIconLabels,f=a.hasReducedUI,S=st()("edit-post-layout","is-mode-"+l,{"is-sidebar-opened":q,"has-fixed-toolbar":d,"has-metaboxes":p,"show-icon-labels":E});Object(c.useEffect)((function(){q&&!t&&o(!1)}),[q,t]),Object(c.useEffect)((function(){y&&!t&&i()}),[y,t]);var M=Object(c.useState)(!1),Z=Object(F.a)(M,2),z=Z[0],w=Z[1],B=Object(c.useCallback)((function(e){"function"==typeof z&&z(e),w(!1)}),[z]);return Object(c.createElement)(c.Fragment,null,Object(c.createElement)(Pt,{isActive:s}),Object(c.createElement)(Mr,null),Object(c.createElement)(u.UnsavedChangesWarning,null),Object(c.createElement)(u.AutosaveMonitor,null),Object(c.createElement)(u.LocalAutosaveMonitor,null),Object(c.createElement)(rr,null),Object(c.createElement)(u.EditorKeyboardShortcutsRegister,null),Object(c.createElement)(Qn,null),Object(c.createElement)(g.FocusReturnProvider,null,Object(c.createElement)(Ht,{className:S,labels:ai,header:Object(c.createElement)(Xr,{setEntitiesSavedStatesCallback:w}),leftSidebar:"visual"===l&&y&&Object(c.createElement)(oi,{className:"edit-post-layout__inserter-panel-popover-wrapper",onClose:function(){return o(!1)}},Object(c.createElement)("div",{className:"edit-post-layout__inserter-panel"},Object(c.createElement)("div",{className:"edit-post-layout__inserter-panel-header"},Object(c.createElement)(g.Button,{icon:_t.a,onClick:function(){return o(!1)}})),Object(c.createElement)("div",{className:"edit-post-layout__inserter-panel-content"},Object(c.createElement)(A.__experimentalLibrary,{showMostUsedBlocks:C,showInserterHelpPanel:!0,onSelect:function(){e&&o(!1)}})))),sidebar:(!e||q)&&Object(c.createElement)(c.Fragment,null,!e&&!q&&Object(c.createElement)("div",{className:"edit-post-layout__toogle-sidebar-panel"},Object(c.createElement)(g.Button,{isSecondary:!0,className:"edit-post-layout__toogle-sidebar-panel-button",onClick:function(){return n(b?"edit-post/block":"edit-post/document")},"aria-expanded":!1},b?Object(v.__)("Open block settings"):Object(v.__)("Open document settings"))),Object(c.createElement)(Yt.Slot,{scope:"core/edit-post"})),content:Object(c.createElement)(c.Fragment,null,Object(c.createElement)(u.EditorNotices,null),("text"===l||!m)&&Object(c.createElement)($t,null),m&&"visual"===l&&Object(c.createElement)(tr,null),Object(c.createElement)("div",{className:"edit-post-layout__metaboxes"},Object(c.createElement)(Bn,{location:"normal"}),Object(c.createElement)(Bn,{location:"advanced"})),e&&q&&Object(c.createElement)(g.ScrollLock,null)),footer:!f&&!e&&m&&"visual"===l&&Object(c.createElement)("div",{className:"edit-post-layout__footer"},Object(c.createElement)(A.BlockBreadcrumb,null)),actions:Object(c.createElement)(ei,{closeEntitiesSavedStates:B,isEntitiesSavedStatesOpen:z,setEntitiesSavedStatesCallback:w}),shortcuts:{previous:O,next:I}}),Object(c.createElement)(Or,null),Object(c.createElement)(Kr,null),Object(c.createElement)(sr,null),Object(c.createElement)(Jn,null),Object(c.createElement)(g.Popover.Slot,null),Object(c.createElement)(K.PluginArea,null)))};function Ai(e){var t=e.postId;return function(e){var t=Object(h.useSelect)((function(e){return{hasBlockSelection:!!e("core/block-editor").getBlockSelectionStart(),isEditorSidebarOpened:e("core/edit-post").isEditorSidebarOpened()}}),[e]),r=t.hasBlockSelection,n=t.isEditorSidebarOpened,i=Object(h.useDispatch)("core/edit-post").openGeneralSidebar;Object(c.useEffect)((function(){n&&i(r?"edit-post/block":"edit-post/document")}),[r,n])}(t),function(e){var t=Object(h.useSelect)((function(e){return{newPermalink:e("core/editor").getCurrentPost().link}}),[e]).newPermalink,r=Object(c.useRef)();Object(c.useEffect)((function(){r.current=document.querySelector("#wp-admin-bar-preview a")||document.querySelector("#wp-admin-bar-view a")}),[e]),Object(c.useEffect)((function(){t&&r.current&&r.current.setAttribute("href",t)}),[t])}(t),null}function ui(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function li(e){for(var t=1;t0){var m=!0===e.allowedBlockTypes?Object(I.map)(a,"name"):e.allowedBlockTypes||[];e.allowedBlockTypes=I.without.apply(void 0,[m].concat(Object(L.a)(o)))}return e}},{key:"render",value:function(){var e=this.props,t=e.settings,r=e.hasFixedToolbar,n=e.focusMode,i=e.hasReducedUI,o=e.hasThemeStyles,a=e.post,A=e.postId,l=e.initialEdits,s=e.onError,m=e.hiddenBlockTypes,q=e.blockTypes,p=e.preferredStyleVariations,I=e.__experimentalLocalAutosaveInterval,b=e.setIsInserterOpened,h=e.updatePreferredStyleVariations,v=e.keepCaretInsideBlock,j=Object(O.a)(e,["settings","hasFixedToolbar","focusMode","hasReducedUI","hasThemeStyles","post","postId","initialEdits","onError","hiddenBlockTypes","blockTypes","preferredStyleVariations","__experimentalLocalAutosaveInterval","setIsInserterOpened","updatePreferredStyleVariations","keepCaretInsideBlock"]);if(!a)return null;var C=this.getEditorSettings(t,r,n,i,o,m,q,p,I,b,h,v);return Object(c.createElement)(c.StrictMode,null,Object(c.createElement)(qr.Provider,{value:t},Object(c.createElement)(g.SlotFillProvider,null,Object(c.createElement)(g.DropZoneProvider,null,Object(c.createElement)(u.EditorProvider,Object(d.a)({settings:C,post:a,initialEdits:l,useSubRegistry:!1},j),Object(c.createElement)(u.ErrorBoundary,{onError:s},Object(c.createElement)(Ai,{postId:A}),Object(c.createElement)(ci,null),Object(c.createElement)(g.KeyboardShortcuts,{shortcuts:ut})),Object(c.createElement)(u.PostLockedModal,null))))))}}]),r}(c.Component),qi=Object(j.compose)([Object(h.withSelect)((function(e,t){var r=t.postId,n=t.postType,i=e("core/edit-post"),o=i.isFeatureActive,a=i.getPreference,c=i.__experimentalGetPreviewDeviceType,A=e("core").getEntityRecord,u=e("core/blocks").getBlockTypes;return{hasFixedToolbar:o("fixedToolbar")||"Desktop"!==c(),focusMode:o("focusMode"),hasReducedUI:o("reducedUI"),hasThemeStyles:o("themeStyles"),post:A("postType",n,r),preferredStyleVariations:a("preferredStyleVariations"),hiddenBlockTypes:a("hiddenBlockTypes"),blockTypes:u(),__experimentalLocalAutosaveInterval:a("localAutosaveInterval"),keepCaretInsideBlock:o("keepCaretInsideBlock")}})),Object(h.withDispatch)((function(e){var t=e("core/edit-post");return{updatePreferredStyleVariations:t.updatePreferredStyleVariations,setIsInserterOpened:t.setIsInserterOpened}}))])(mi),pi=r(438),di=function(e,t){return!Array.isArray(t)||(r=e,n=t,0===Object(I.difference)(r,n).length);var r,n},Oi=function(e){var t=e.allowedBlocks,r=e.icon,n=e.label,i=e.onClick,o=e.small,a=e.role;return Object(c.createElement)(A.BlockSettingsMenuControls,null,(function(e){var A=e.selectedBlocks,u=e.onClose;return di(A,t)?Object(c.createElement)(g.MenuItem,{onClick:Object(j.compose)(i,u),icon:r||pi.a,label:o?n:void 0,role:a},!o&&n):null}))},Ii=Object(j.compose)(Object(K.withPluginContext)((function(e,t){return{icon:t.icon||e.icon,name:"core/edit-post/plugin-more-menu"}})))(Lt);function bi(e){return Object(c.createElement)(Dt,Object(d.a)({scope:"core/edit-post"},e))}function gi(e,t,r,n,i){Object(c.unmountComponentAtNode)(r);var o=gi.bind(null,e,t,r,n,i);Object(c.render)(Object(c.createElement)(qi,{settings:n,onError:o,postId:t,postType:e,initialEdits:i,recovery:!0}),r)}function hi(e,t,r,n,i){var o=document.getElementById(e),a=gi.bind(null,t,r,o,n,i);Object(m.registerCoreBlocks)(),"Standards"!==("CSS1Compat"===document.compatMode?"Standards":"Quirks")&&console.warn("Your browser is using Quirks Mode. \nThis can cause rendering issues such as blocks overlaying meta boxes in the editor. Quirks Mode can be triggered by PHP errors or HTML code appearing before the opening . Try checking the raw page source or your site's PHP error log and resolving errors there, removing any HTML before the doctype, or disabling plugins."),-1!==window.navigator.userAgent.indexOf("iPhone")&&window.addEventListener("scroll",(function(e){var t=document.getElementsByClassName("interface-interface-skeleton__body")[0];e.target===document&&(window.scrollY>100&&(t.scrollTop=t.scrollTop+window.scrollY),document.getElementsByClassName("is-mode-visual")[0]&&window.scrollTo(0,0))})),Object(c.render)(Object(c.createElement)(qi,{settings:n,onError:a,postId:r,postType:t,initialEdits:i}),o)}},46:function(e,t){!function(){e.exports=this.wp.a11y}()},47:function(e,t){!function(){e.exports=this.wp.apiFetch}()},489:function(e,t,r){"use strict";var n=r(0),i=r(3),o=r(490),a=Object(i.createSlotFill)("EnablePluginDocumentSettingPanelOption"),c=a.Fill,A=a.Slot,u=function(e){var t=e.label,r=e.panelName;return Object(n.createElement)(c,null,Object(n.createElement)(o.a,{label:t,panelName:r}))};u.Slot=A,t.a=u},490:function(e,t,r){"use strict";var n=r(10),i=r(4),o=r(116);t.a=Object(n.compose)(Object(i.withSelect)((function(e,t){var r=t.panelName,n=e("core/edit-post"),i=n.isEditorPanelEnabled;return{isRemoved:(0,n.isEditorPanelRemoved)(r),isChecked:i(r)}})),Object(n.ifCondition)((function(e){return!e.isRemoved})),Object(i.withDispatch)((function(e,t){var r=t.panelName;return{onChange:function(){return e("core/edit-post").toggleEditorPanelEnabled(r)}}})))(o.a)},5:function(e,t,r){"use strict";function n(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}r.d(t,"a",(function(){return n}))},53:function(e,t){!function(){e.exports=this.wp.keyboardShortcuts}()},6:function(e,t){!function(){e.exports=this.wp.blockEditor}()},60:function(e,t,r){e.exports=function(e,t){var r,n,i=0;function o(){var o,a,c=r,A=arguments.length;e:for(;c;){if(c.args.length===arguments.length){for(a=0;a1)for(var r=1;r=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}},149:function(e,t,r){"use strict";e.exports=function(e){var t,r={};return function e(t,r){var n;if(Array.isArray(r))for(n=0;ne.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0||(i[r]=e[r]);return i}r.d(t,"a",(function(){return n}))},441:function(e,t,r){"use strict";var n=r(0),i=r(7),o=Object(n.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(n.createElement)(i.Path,{d:"M18.2 17c0 .7-.6 1.2-1.2 1.2H7c-.7 0-1.2-.6-1.2-1.2V7c0-.7.6-1.2 1.2-1.2h3.2V4.2H7C5.5 4.2 4.2 5.5 4.2 7v10c0 1.5 1.2 2.8 2.8 2.8h10c1.5 0 2.8-1.2 2.8-2.8v-3.6h-1.5V17zM14.9 3v1.5h3.7l-6.4 6.4 1.1 1.1 6.4-6.4v3.7h1.5V3h-6.3z"}));t.a=o},452:function(e,t,r){"use strict";var n=r(0),i=r(7),o=Object(n.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(n.createElement)(i.Path,{d:"M10.5 4v4h3V4H15v4h1.5a1 1 0 011 1v4l-3 4v2a1 1 0 01-1 1h-3a1 1 0 01-1-1v-2l-3-4V9a1 1 0 011-1H9V4h1.5zm.5 12.5v2h2v-2l3-4v-3H8v3l3 4z"}));t.a=o},46:function(e,t){!function(){e.exports=this.wp.a11y}()},47:function(e,t){!function(){e.exports=this.wp.apiFetch}()},470:function(e,t,r){"use strict";r.r(t),r.d(t,"reinitializeEditor",(function(){return gi})),r.d(t,"initializeEditor",(function(){return hi})),r.d(t,"PluginBlockSettingsMenuItem",(function(){return Oi})),r.d(t,"PluginDocumentSettingPanel",(function(){return Gn.a})),r.d(t,"PluginMoreMenuItem",(function(){return Ii})),r.d(t,"PluginPostPublishPanel",(function(){return Fn})),r.d(t,"PluginPostStatusInfo",(function(){return mn})),r.d(t,"PluginPrePublishPanel",(function(){return $n})),r.d(t,"PluginSidebar",(function(){return Yn})),r.d(t,"PluginSidebarMoreMenuItem",(function(){return bi})),r.d(t,"__experimentalFullscreenModeClose",(function(){return wr}));var n={};r.r(n),r.d(n,"openGeneralSidebar",(function(){return re})),r.d(n,"closeGeneralSidebar",(function(){return ne})),r.d(n,"openModal",(function(){return ie})),r.d(n,"closeModal",(function(){return oe})),r.d(n,"openPublishSidebar",(function(){return ae})),r.d(n,"closePublishSidebar",(function(){return ce})),r.d(n,"togglePublishSidebar",(function(){return Ae})),r.d(n,"toggleEditorPanelEnabled",(function(){return ue})),r.d(n,"toggleEditorPanelOpened",(function(){return le})),r.d(n,"removeEditorPanel",(function(){return se})),r.d(n,"toggleFeature",(function(){return me})),r.d(n,"switchEditorMode",(function(){return qe})),r.d(n,"togglePinnedPluginItem",(function(){return pe})),r.d(n,"hideBlockTypes",(function(){return de})),r.d(n,"updatePreferredStyleVariations",(function(){return Oe})),r.d(n,"__experimentalUpdateLocalAutosaveInterval",(function(){return Ie})),r.d(n,"showBlockTypes",(function(){return be})),r.d(n,"setAvailableMetaBoxesPerLocation",(function(){return ge})),r.d(n,"requestMetaBoxUpdates",(function(){return he})),r.d(n,"metaBoxUpdatesSuccess",(function(){return ve})),r.d(n,"__experimentalSetPreviewDeviceType",(function(){return je})),r.d(n,"setIsInserterOpened",(function(){return Ce}));var i={};r.r(i),r.d(i,"getEditorMode",(function(){return Ee})),r.d(i,"isEditorSidebarOpened",(function(){return Ke})),r.d(i,"isPluginSidebarOpened",(function(){return fe})),r.d(i,"getActiveGeneralSidebarName",(function(){return Se})),r.d(i,"getPreferences",(function(){return Me})),r.d(i,"getPreference",(function(){return Ze})),r.d(i,"isPublishSidebarOpened",(function(){return ze})),r.d(i,"isEditorPanelRemoved",(function(){return we})),r.d(i,"isEditorPanelEnabled",(function(){return Be})),r.d(i,"isEditorPanelOpened",(function(){return Ge})),r.d(i,"isModalActive",(function(){return Ye})),r.d(i,"isFeatureActive",(function(){return ke})),r.d(i,"isPluginItemPinned",(function(){return Qe})),r.d(i,"getActiveMetaBoxLocations",(function(){return We})),r.d(i,"isMetaBoxLocationVisible",(function(){return Le})),r.d(i,"isMetaBoxLocationActive",(function(){return De})),r.d(i,"getMetaBoxesPerLocation",(function(){return Ne})),r.d(i,"getAllMetaBoxes",(function(){return Pe})),r.d(i,"hasMetaBoxes",(function(){return Je})),r.d(i,"isSavingMetaBoxes",(function(){return xe})),r.d(i,"__experimentalGetPreviewDeviceType",(function(){return He})),r.d(i,"isInserterOpened",(function(){return Re}));var o={};r.r(o),r.d(o,"enableComplementaryArea",(function(){return It})),r.d(o,"disableComplementaryArea",(function(){return bt})),r.d(o,"pinItem",(function(){return ht})),r.d(o,"unpinItem",(function(){return vt}));var a={};r.r(a),r.d(a,"getActiveComplementaryArea",(function(){return jt})),r.d(a,"isItemPinned",(function(){return Ct}));var c=r(0),A=(r(83),r(6)),u=r(34),l=r(53),s=(r(122),r(101)),m=(r(94),r(292)),q=r(33),p=r(155);Object(q.addFilter)("editor.MediaUpload","core/edit-post/replace-media-upload",(function(){return p.MediaUpload}));var d=r(8),O=r(14),I=r(2),b=r(11),g=r(3),h=r(4),v=r(1),j=r(10),C=Object(j.compose)(Object(h.withSelect)((function(e,t){if(Object(b.hasBlockSupport)(t.name,"multiple",!0))return{};var r=e("core/block-editor").getBlocks(),n=Object(I.find)(r,(function(e){var r=e.name;return t.name===r}));return{originalBlockClientId:n&&n.clientId!==t.clientId&&n.clientId}})),Object(h.withDispatch)((function(e,t){var r=t.originalBlockClientId;return{selectFirst:function(){return e("core/block-editor").selectBlock(r)}}}))),y=Object(j.createHigherOrderComponent)((function(e){return C((function(t){var r=t.originalBlockClientId,n=t.selectFirst,i=Object(O.a)(t,["originalBlockClientId","selectFirst"]);if(!r)return Object(c.createElement)(e,i);var o=Object(b.getBlockType)(i.name),a=function(e){var t=Object(b.findTransform)(Object(b.getBlockTransforms)("to",e),(function(e){var t=e.type,r=e.blocks;return"block"===t&&1===r.length}));if(!t)return null;return Object(b.getBlockType)(t.blocks[0])}(i.name);return[Object(c.createElement)("div",{key:"invalid-preview",style:{minHeight:"60px"}},Object(c.createElement)(e,Object(d.a)({key:"block-edit"},i))),Object(c.createElement)(A.Warning,{key:"multiple-use-warning",actions:[Object(c.createElement)(g.Button,{key:"find-original",isSecondary:!0,onClick:n},Object(v.__)("Find original")),Object(c.createElement)(g.Button,{key:"remove",isSecondary:!0,onClick:function(){return i.onReplace([])}},Object(v.__)("Remove")),a&&Object(c.createElement)(g.Button,{key:"transform",isSecondary:!0,onClick:function(){return i.onReplace(Object(b.createBlock)(a.name,i.attributes))}},Object(v.__)("Transform into:")," ",a.title)]},Object(c.createElement)("strong",null,o.title,": "),Object(v.__)("This block can only be used once."))]}))}),"withMultipleValidation");Object(q.addFilter)("editor.BlockEdit","core/edit-post/validate-multiple-use/with-multiple-validation",y);var E=r(441),K=r(77),f=r(30);var S=Object(j.compose)(Object(h.withSelect)((function(e){return{editedPostContent:e("core/editor").getEditedPostAttribute("content")}})),Object(h.withDispatch)((function(e){return{createNotice:e("core/notices").createNotice}})),Object(j.ifCondition)((function(e){return e.editedPostContent.length>0})))((function(e){var t=e.createNotice,r=e.editedPostContent,n=Object(c.useRef)(),i=Object(j.useCopyOnClick)(n,r);return Object(c.useEffect)((function(){i&&t("info",Object(v.__)("All content copied."),{isDismissible:!0,type:"snackbar"})}),[i]),Object(c.createElement)(g.MenuItem,{ref:n},i?Object(v.__)("Copied!"):Object(v.__)("Copy all content"))}));var M=Object(h.withDispatch)((function(e){return{openModal:e("core/edit-post").openModal}}))((function(e){var t=e.openModal;return Object(c.createElement)(g.MenuItem,{onClick:function(){t("edit-post/manage-blocks")}},Object(v.__)("Block Manager"))})),Z=r(18);var z=Object(h.withDispatch)((function(e){return{openModal:e("core/edit-post").openModal}}))((function(e){var t=e.openModal;return Object(c.createElement)(g.MenuItem,{onClick:function(){t("edit-post/keyboard-shortcut-help")},shortcut:Z.displayShortcut.access("h")},Object(v.__)("Keyboard shortcuts"))})),w=Object(g.createSlotFill)("ToolsMoreMenuGroup"),B=w.Fill,G=w.Slot;B.Slot=function(e){var t=e.fillProps;return Object(c.createElement)(G,{fillProps:t},(function(e){return!Object(I.isEmpty)(e)&&Object(c.createElement)(g.MenuGroup,{label:Object(v.__)("Tools")},e)}))};var Y=B;function k(){var e=Object(h.useDispatch)("core/edit-post").toggleFeature;return Object(c.createElement)(g.MenuItem,{onClick:function(){return e("welcomeGuide")}},Object(v.__)("Welcome Guide"))}Object(K.registerPlugin)("edit-post",{render:function(){return Object(c.createElement)(c.Fragment,null,Object(c.createElement)(Y,null,(function(e){var t=e.onClose;return Object(c.createElement)(c.Fragment,null,Object(c.createElement)(M,{onSelect:t}),Object(c.createElement)(g.MenuItem,{role:"menuitem",href:Object(f.addQueryArgs)("edit.php",{post_type:"wp_block"})},Object(v.__)("Manage all reusable blocks")),Object(c.createElement)(z,{onSelect:t}),Object(c.createElement)(k,null),Object(c.createElement)(S,null),Object(c.createElement)(g.MenuItem,{role:"menuitem",icon:E.a,href:Object(v.__)("https://wordpress.org/support/article/wordpress-editor/"),target:"_blank",rel:"noopener noreferrer"},Object(v.__)("Help"),Object(c.createElement)(g.VisuallyHidden,{as:"span"},Object(v.__)("(opens in a new tab)"))))})))}});var Q=r(5),W=r(32),L=r(17);function D(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function N(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:P,r=arguments.length>1?arguments[1]:void 0;return e(t,r)}})])({panels:function(e,t){switch(t.type){case"TOGGLE_PANEL_ENABLED":var r=t.panelName;return N(N({},e),{},Object(Q.a)({},r,N(N({},e[r]),{},{enabled:!Object(I.get)(e,[r,"enabled"],!0)})));case"TOGGLE_PANEL_OPENED":var n=t.panelName,i=!0===e[n]||Object(I.get)(e,[n,"opened"],!1);return N(N({},e),{},Object(Q.a)({},n,N(N({},e[n]),{},{opened:!i})))}return e},features:function(e,t){return"TOGGLE_FEATURE"===t.type?N(N({},e),{},Object(Q.a)({},t.feature,!e[t.feature])):e},editorMode:function(e,t){return"SWITCH_MODE"===t.type?t.mode:e},hiddenBlockTypes:function(e,t){switch(t.type){case"SHOW_BLOCK_TYPES":return I.without.apply(void 0,[e].concat(Object(L.a)(t.blockNames)));case"HIDE_BLOCK_TYPES":return Object(I.union)(e,t.blockNames)}return e},preferredStyleVariations:function(e,t){switch(t.type){case"UPDATE_PREFERRED_STYLE_VARIATIONS":return t.blockName?t.blockStyle?N(N({},e),{},Object(Q.a)({},t.blockName,t.blockStyle)):Object(I.omit)(e,[t.blockName]):e}return e},localAutosaveInterval:function(e,t){switch(t.type){case"UPDATE_LOCAL_AUTOSAVE_INTERVAL":return t.interval}return e}});var x=Object(h.combineReducers)({isSaving:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"REQUEST_META_BOX_UPDATES":return!0;case"META_BOX_UPDATES_SUCCESS":return!1;default:return e}},locations:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SET_META_BOXES_PER_LOCATIONS":return t.metaBoxesPerLocation}return e}}),H=Object(h.combineReducers)({activeModal:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"OPEN_MODAL":return t.name;case"CLOSE_MODAL":return null}return e},metaBoxes:x,preferences:J,publishSidebarActive:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"OPEN_PUBLISH_SIDEBAR":return!0;case"CLOSE_PUBLISH_SIDEBAR":return!1;case"TOGGLE_PUBLISH_SIDEBAR":return!e}return e},removedPanels:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"REMOVE_PANEL":if(!Object(I.includes)(e,t.panelName))return[].concat(Object(L.a)(e),[t.panelName])}return e},deviceType:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"Desktop",t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SET_PREVIEW_DEVICE_TYPE":return t.deviceType}return e},isInserterOpened:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SET_IS_INSERTER_OPENED":return t.value}return e}}),R=r(149),T=r.n(R),F=r(12),U=r(46),X=r(47),V=r.n(X),_=r(20),$=r.n(_),ee=$.a.mark(re),te=$.a.mark(ne);function re(e){return $.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Object(W.dispatch)("core/interface","enableComplementaryArea","core/edit-post",e);case 2:case"end":return t.stop()}}),ee)}function ne(){return $.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(W.dispatch)("core/interface","disableComplementaryArea","core/edit-post");case 2:case"end":return e.stop()}}),te)}function ie(e){return{type:"OPEN_MODAL",name:e}}function oe(){return{type:"CLOSE_MODAL"}}function ae(){return{type:"OPEN_PUBLISH_SIDEBAR"}}function ce(){return{type:"CLOSE_PUBLISH_SIDEBAR"}}function Ae(){return{type:"TOGGLE_PUBLISH_SIDEBAR"}}function ue(e){return{type:"TOGGLE_PANEL_ENABLED",panelName:e}}function le(e){return{type:"TOGGLE_PANEL_OPENED",panelName:e}}function se(e){return{type:"REMOVE_PANEL",panelName:e}}function me(e){return{type:"TOGGLE_FEATURE",feature:e}}function qe(e){return{type:"SWITCH_MODE",mode:e}}function pe(e){return{type:"TOGGLE_PINNED_PLUGIN_ITEM",pluginName:e}}function de(e){return{type:"HIDE_BLOCK_TYPES",blockNames:Object(I.castArray)(e)}}function Oe(e,t){return{type:"UPDATE_PREFERRED_STYLE_VARIATIONS",blockName:e,blockStyle:t}}function Ie(e){return{type:"UPDATE_LOCAL_AUTOSAVE_INTERVAL",interval:e}}function be(e){return{type:"SHOW_BLOCK_TYPES",blockNames:Object(I.castArray)(e)}}function ge(e){return{type:"SET_META_BOXES_PER_LOCATIONS",metaBoxesPerLocation:e}}function he(){return{type:"REQUEST_META_BOX_UPDATES"}}function ve(){return{type:"META_BOX_UPDATES_SUCCESS"}}function je(e){return{type:"SET_PREVIEW_DEVICE_TYPE",deviceType:e}}function Ce(e){return{type:"SET_IS_INSERTER_OPENED",value:e}}var ye=r(42);function Ee(e){return Ze(e,"editorMode","visual")}var Ke=Object(h.createRegistrySelector)((function(e){return function(){var t=e("core/interface").getActiveComplementaryArea("core/edit-post");return Object(I.includes)(["edit-post/document","edit-post/block"],t)}})),fe=Object(h.createRegistrySelector)((function(e){return function(){var t=e("core/interface").getActiveComplementaryArea("core/edit-post");return!!t&&!Object(I.includes)(["edit-post/document","edit-post/block"],t)}})),Se=Object(h.createRegistrySelector)((function(e){return function(){return e("core/interface").getActiveComplementaryArea("core/edit-post")}}));function Me(e){return e.preferences}function Ze(e,t,r){var n=Me(e)[t];return void 0===n?r:n}function ze(e){return e.publishSidebarActive}function we(e,t){return Object(I.includes)(e.removedPanels,t)}function Be(e,t){var r=Ze(e,"panels");return!we(e,t)&&Object(I.get)(r,[t,"enabled"],!0)}function Ge(e,t){var r=Ze(e,"panels");return!0===Object(I.get)(r,[t])||!0===Object(I.get)(r,[t,"opened"])}function Ye(e,t){return e.activeModal===t}function ke(e,t){return Object(I.get)(e.preferences.features,[t],!1)}var Qe=Object(h.createRegistrySelector)((function(e){return function(t){return e("core/interface").isItemPinned("core/edit-post",t)}})),We=Object(ye.a)((function(e){return Object.keys(e.metaBoxes.locations).filter((function(t){return De(e,t)}))}),(function(e){return[e.metaBoxes.locations]}));function Le(e,t){return De(e,t)&&Object(I.some)(Ne(e,t),(function(t){var r=t.id;return Be(e,"meta-box-".concat(r))}))}function De(e,t){var r=Ne(e,t);return!!r&&0!==r.length}function Ne(e,t){return e.metaBoxes.locations[t]}var Pe=Object(ye.a)((function(e){return Object(I.flatten)(Object(I.values)(e.metaBoxes.locations))}),(function(e){return[e.metaBoxes.locations]}));function Je(e){return We(e).length>0}function xe(e){return e.metaBoxes.isSaving}function He(e){return e.deviceType}function Re(e){return e.isInserterOpened}var Te;function Fe(e,t){var r;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return Ue(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Ue(e,t)}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,c=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return a=e.done,e},e:function(e){c=!0,o=e},f:function(){try{a||null==r.return||r.return()}finally{if(c)throw o}}}}function Ue(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,r=t.type,n=t.itemType,i=t.scope,o=t.item;return"SET_SINGLE_ENABLE_ITEM"===r&&n&&i?qt(qt({},e),{},Object(Q.a)({},n,qt(qt({},e[n]),{},Object(Q.a)({},i,o||null)))):e},multipleEnableItems:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,r=t.type,n=t.itemType,i=t.scope,o=t.item,a=t.isEnable;if("SET_MULTIPLE_ENABLE_ITEM"!==r||!n||!i||!o||Object(I.get)(e,[n,i,o])===a)return e;var c=e[n]||{},A=c[i]||{};return qt(qt({},e),{},Object(Q.a)({},n,qt(qt({},c),{},Object(Q.a)({},i,qt(qt({},A),{},Object(Q.a)({},o,a||!1))))))}}),dt=Object(h.combineReducers)({enableItems:pt});function Ot(e,t,r){return{type:"SET_SINGLE_ENABLE_ITEM",itemType:e,scope:t,item:r}}function It(e,t){return Ot("complementaryArea",e,t)}function bt(e){return Ot("complementaryArea",e,void 0)}function gt(e,t,r,n){return{type:"SET_MULTIPLE_ENABLE_ITEM",itemType:e,scope:t,item:r,isEnable:n}}function ht(e,t){return gt("pinnedItems",e,t,!0)}function vt(e,t){return gt("pinnedItems",e,t,!1)}function jt(e,t){return function(e,t,r){return Object(I.get)(e.enableItems.singleEnableItems,[t,r])}(e,"complementaryArea",t)}function Ct(e,t,r){return!1!==function(e,t,r,n){return Object(I.get)(e.enableItems.multipleEnableItems,[t,r,n])}(e,"pinnedItems",t,r)}Object(h.registerStore)("core/interface",{reducer:dt,actions:o,selectors:a,persist:["enableItems"]});var yt=r(161),Et=r(302),Kt=r(303),ft=r(159),St=Object(K.withPluginContext)((function(e,t){return{icon:t.icon||e.icon,identifier:t.identifier||"".concat(e.name,"/").concat(t.name)}}));var Mt=St((function(e){var t=e.as,r=void 0===t?g.Button:t,n=e.scope,i=e.identifier,o=e.icon,a=e.selectedIcon,A=Object(O.a)(e,["as","scope","identifier","icon","selectedIcon"]),u=r,l=Object(h.useSelect)((function(e){return e("core/interface").getActiveComplementaryArea(n)===i}),[i]),s=Object(h.useDispatch)("core/interface"),m=s.enableComplementaryArea,q=s.disableComplementaryArea;return Object(c.createElement)(u,Object(d.a)({icon:a&&l?a:o,onClick:function(){l?q(n):m(n,i)}},Object(I.omit)(A,["name"])))})),Zt=function(e){var t=e.smallScreenTitle,r=e.children,n=e.className,i=e.toggleButtonProps,o=Object(c.createElement)(Mt,Object(d.a)({icon:ft.a},i));return Object(c.createElement)(c.Fragment,null,Object(c.createElement)("div",{className:"components-panel__header interface-complementary-area-header__small"},t&&Object(c.createElement)("span",{className:"interface-complementary-area-header__small-title"},t),o),Object(c.createElement)("div",{className:st()("components-panel__header","interface-complementary-area-header",n),tabIndex:-1},r,o))};function zt(e){var t=e.scope,r=Object(O.a)(e,["scope"]);return Object(c.createElement)(g.Fill,Object(d.a)({name:"PinnedItems/".concat(t)},r))}zt.Slot=function(e){var t=e.scope,r=e.className,n=Object(O.a)(e,["scope","className"]);return Object(c.createElement)(g.Slot,Object(d.a)({name:"PinnedItems/".concat(t)},n),(function(e){return!Object(I.isEmpty)(e)&&Object(c.createElement)("div",{className:st()(r,"interface-pinned-items")},e)}))};var wt=zt;function Bt(e){var t=e.scope,r=e.children,n=e.className;return Object(c.createElement)(g.Fill,{name:"ComplementaryArea/".concat(t)},Object(c.createElement)(g.Animate,{type:"slide-in",options:{origin:"left"}},(function(){return Object(c.createElement)("div",{className:n},r)})))}var Gt=St((function(e){var t=e.children,r=e.className,n=e.closeLabel,i=void 0===n?Object(v.__)("Close plugin"):n,o=e.identifier,a=e.header,A=e.headerClassName,u=e.icon,l=e.isPinnable,s=void 0===l||l,m=e.panelClassName,q=e.scope,p=e.smallScreenTitle,d=e.title,O=e.toggleShortcut,I=e.isActiveByDefault,b=e.showIconLabels,j=void 0!==b&&b,C=Object(h.useSelect)((function(e){var t=e("core/interface"),r=t.getActiveComplementaryArea,n=t.isItemPinned,i=r(q);return{isActive:i===o,isPinned:n(q,o),activeArea:i,isSmall:e("core/viewport").isViewportMatch("< medium"),isLarge:e("core/viewport").isViewportMatch("large")}}),[o,q]),y=C.isActive,E=C.isPinned,K=C.activeArea,f=C.isSmall,S=C.isLarge;!function(e,t,r,n,i){var o=Object(c.useRef)(!1),a=Object(c.useRef)(!1),A=Object(h.useDispatch)("core/interface"),u=A.enableComplementaryArea,l=A.disableComplementaryArea;Object(c.useEffect)((function(){n&&i&&!o.current?(l(e),a.current=!0):a.current&&!i&&o.current?(a.current=!1,u(e,t)):a.current&&r&&r!==t&&(a.current=!1),i!==o.current&&(o.current=i)}),[n,i,e,t,r])}(q,o,K,y,f);var M=Object(h.useDispatch)("core/interface"),Z=M.enableComplementaryArea,z=M.disableComplementaryArea,w=M.pinItem,B=M.unpinItem;return Object(c.useEffect)((function(){I&&void 0===K&&!f&&Z(q,o)}),[K,I,q,o,f]),Object(c.createElement)(c.Fragment,null,E&&s&&Object(c.createElement)(wt,{scope:q},Object(c.createElement)(Mt,{scope:q,identifier:o,isPressed:y&&(!j||S),"aria-expanded":y,label:d,icon:j?yt.a:u,showTooltip:!j,isTertiary:j})),y&&Object(c.createElement)(Bt,{className:st()("interface-complementary-area",r),scope:q},Object(c.createElement)(Zt,{className:A,closeLabel:i,onClose:function(){return z(q)},smallScreenTitle:p,toggleButtonProps:{label:i,shortcut:O,scope:q,identifier:o}},a||Object(c.createElement)(c.Fragment,null,Object(c.createElement)("strong",null,d),s&&Object(c.createElement)(g.Button,{className:"interface-complementary-area__pin-unpin-item",icon:E?Et.a:Kt.a,label:E?Object(v.__)("Unpin from toolbar"):Object(v.__)("Pin to toolbar"),onClick:function(){return(E?B:w)(q,o)},isPressed:E,"aria-expanded":E}))),Object(c.createElement)(g.Panel,{className:m},t)))}));Gt.Slot=function(e){var t=e.scope,r=Object(O.a)(e,["scope"]);return Object(c.createElement)(g.Slot,Object(d.a)({name:"ComplementaryArea/".concat(t)},r))};var Yt=Gt;function kt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Qt(e){for(var t=1;t0?"mixed":"false",Object(c.createElement)("div",{role:"group","aria-labelledby":m,className:"edit-post-manage-blocks-modal__category"},Object(c.createElement)(g.CheckboxControl,{checked:q,onChange:a,className:"edit-post-manage-blocks-modal__category-title","aria-checked":l,label:Object(c.createElement)("span",{id:m},r)}),Object(c.createElement)(mr,{blockTypes:u,value:s,onItemChange:o}))}));var dr=Object(j.compose)([Object(j.withState)({search:""}),Object(h.withSelect)((function(e){var t=e("core/blocks"),r=t.getBlockTypes,n=t.getCategories,i=t.hasBlockSupport,o=t.isMatchingSearchTerm,a=(0,e("core/edit-post").getPreference)("hiddenBlockTypes"),c=Object(I.isArray)(a)&&a.length;return{blockTypes:r(),categories:n(),hasBlockSupport:i,isMatchingSearchTerm:o,numberOfHiddenBlocks:c}}))])((function(e){var t=e.search,r=e.setState,n=e.blockTypes,i=e.categories,o=e.hasBlockSupport,a=e.isMatchingSearchTerm,A=e.numberOfHiddenBlocks;return n=n.filter((function(e){return o(e,"inserter",!0)&&(!t||a(e,t))&&(!e.parent||Object(I.includes)(e.parent,"core/post-content"))})),Object(c.createElement)("div",{className:"edit-post-manage-blocks-modal__content"},Object(c.createElement)(g.TextControl,{type:"search",label:Object(v.__)("Search for a block"),value:t,onChange:function(e){return r({search:e})},className:"edit-post-manage-blocks-modal__search"}),!!A&&Object(c.createElement)("div",{className:"edit-post-manage-blocks-modal__disabled-blocks-count"},Object(v.sprintf)(Object(v._n)("%d block is disabled.","%d blocks are disabled.",A),A)),Object(c.createElement)("div",{tabIndex:"0",role:"region","aria-label":Object(v.__)("Available block types"),className:"edit-post-manage-blocks-modal__results"},0===n.length&&Object(c.createElement)("p",{className:"edit-post-manage-blocks-modal__no-results"},Object(v.__)("No blocks found.")),i.map((function(e){return Object(c.createElement)(pr,{key:e.slug,title:e.title,blockTypes:Object(I.filter)(n,{category:e.slug})})})),Object(c.createElement)(pr,{title:Object(v.__)("Uncategorized"),blockTypes:Object(I.filter)(n,(function(e){return!e.category}))})))}));var Or=Object(j.compose)([Object(h.withSelect)((function(e){return{isActive:(0,e("core/edit-post").isModalActive)("edit-post/manage-blocks")}})),Object(h.withDispatch)((function(e){return{closeModal:e("core/edit-post").closeModal}}))])((function(e){var t=e.isActive,r=e.closeModal;return t?Object(c.createElement)(g.Modal,{className:"edit-post-manage-blocks-modal",title:Object(v.__)("Block Manager"),closeLabel:Object(v.__)("Close"),onRequestClose:r},Object(c.createElement)(dr,null)):null})),Ir=function(e){var t=e.description,r=e.title,n=e.children;return Object(c.createElement)("section",{className:"edit-post-preferences-modal__section"},Object(c.createElement)("h2",{className:"edit-post-preferences-modal__section-title"},r),t&&Object(c.createElement)("p",{className:"edit-post-preferences-modal__section-description"},t),n)},br=r(117),gr=Object(j.compose)(Object(h.withSelect)((function(e){return{isChecked:e("core/editor").isPublishSidebarEnabled()}})),Object(h.withDispatch)((function(e){var t=e("core/editor"),r=t.enablePublishSidebar,n=t.disablePublishSidebar;return{onChange:function(e){return e?r():n()}}})),Object(s.ifViewportMatches)("medium"))(br.a),hr=Object(j.compose)(Object(h.withSelect)((function(e,t){var r=t.featureName;return{isChecked:(0,e("core/edit-post").isFeatureActive)(r)}})),Object(h.withDispatch)((function(e,t){var r=t.featureName;return{onChange:function(){return e("core/edit-post").toggleFeature(r)}}})))(br.a),vr=r(503),jr=r(504);function Cr(e){var t=e.willEnable,r=Object(c.useState)(!1),n=Object(F.a)(r,2),i=n[0],o=n[1];return Object(c.createElement)(c.Fragment,null,Object(c.createElement)("p",{className:"edit-post-preferences-modal__custom-fields-confirmation-message"},Object(v.__)("A page reload is required for this change. Make sure your content is saved before reloading.")),Object(c.createElement)(g.Button,{className:"edit-post-preferences-modal__custom-fields-confirmation-button",isSecondary:!0,isBusy:i,disabled:i,onClick:function(){o(!0),document.getElementById("toggle-custom-fields-form").submit()}},t?Object(v.__)("Enable & Reload"):Object(v.__)("Disable & Reload")))}var yr=Object(h.withSelect)((function(e){return{areCustomFieldsEnabled:!!e("core/editor").getEditorSettings().enableCustomFields}}))((function(e){var t=e.label,r=e.areCustomFieldsEnabled,n=Object(c.useState)(r),i=Object(F.a)(n,2),o=i[0],a=i[1];return Object(c.createElement)(br.a,{label:t,isChecked:o,onChange:a},o!==r&&Object(c.createElement)(Cr,{willEnable:o}))}));var Er=Object(h.withSelect)((function(e){var t=e("core/editor").getEditorSettings,r=e("core/edit-post").getAllMetaBoxes;return{areCustomFieldsRegistered:void 0!==t().enableCustomFields,metaBoxes:r()}}))((function(e){var t=e.areCustomFieldsRegistered,r=e.metaBoxes,n=Object(O.a)(e,["areCustomFieldsRegistered","metaBoxes"]),i=Object(I.filter)(r,(function(e){return"postcustom"!==e.id}));return t||0!==i.length?Object(c.createElement)(Ir,n,t&&Object(c.createElement)(yr,{label:Object(v.__)("Custom fields")}),Object(I.map)(i,(function(e){var t=e.id,r=e.title;return Object(c.createElement)(jr.a,{key:t,label:r,panelName:"meta-box-".concat(t)})}))):null}));var Kr=Object(j.compose)(Object(h.withSelect)((function(e){var t=e("core/editor").getEditedPostAttribute,r=(0,e("core").getPostType)(t("type"));return{isModalActive:e("core/edit-post").isModalActive("edit-post/preferences"),isViewable:Object(I.get)(r,["viewable"],!1)}})),Object(h.withDispatch)((function(e){return{closeModal:function(){return e("core/edit-post").closeModal()}}})))((function(e){var t=e.isModalActive,r=e.isViewable,n=e.closeModal;return t?Object(c.createElement)(g.Modal,{className:"edit-post-preferences-modal",title:Object(v.__)("Preferences"),closeLabel:Object(v.__)("Close"),onRequestClose:n},Object(c.createElement)(Ir,{title:Object(v.__)("General")},Object(c.createElement)(gr,{help:Object(v.__)("Review settings such as categories and tags."),label:Object(v.__)("Include pre-publish checklist")}),Object(c.createElement)(hr,{featureName:"mostUsedBlocks",help:Object(v.__)("Places the most frequent blocks in the block library."),label:Object(v.__)("Show most used blocks")})),Object(c.createElement)(Ir,{title:Object(v.__)("Keyboard")},Object(c.createElement)(hr,{featureName:"keepCaretInsideBlock",help:Object(v.__)("Aids screen readers by stopping text caret from leaving blocks."),label:Object(v.__)("Contain text cursor inside block")})),Object(c.createElement)(Ir,{title:Object(v.__)("Appearance")},Object(c.createElement)(hr,{featureName:"reducedUI",help:Object(v.__)("Compacts options and outlines in the toolbar."),label:Object(v.__)("Reduce the interface")}),Object(c.createElement)(hr,{featureName:"focusMode",help:Object(v.__)("Highlights the current block and fades other content."),label:Object(v.__)("Spotlight mode")}),Object(c.createElement)(hr,{featureName:"showIconLabels",help:Object(v.__)("Shows text instead of icons in toolbar."),label:Object(v.__)("Display button labels")}),Object(c.createElement)(hr,{featureName:"themeStyles",help:Object(v.__)("Make the editor look like your theme."),label:Object(v.__)("Use theme styles")})),Object(c.createElement)(Ir,{title:Object(v.__)("Document settings"),description:Object(v.__)("Choose what displays in the panel.")},Object(c.createElement)(vr.a.Slot,null),r&&Object(c.createElement)(jr.a,{label:Object(v.__)("Permalink"),panelName:"post-link"}),Object(c.createElement)(u.PostTaxonomies,{taxonomyWrapper:function(e,t){return Object(c.createElement)(jr.a,{label:Object(I.get)(t,["labels","menu_name"]),panelName:"taxonomy-panel-".concat(t.slug)})}}),Object(c.createElement)(u.PostFeaturedImageCheck,null,Object(c.createElement)(jr.a,{label:Object(v.__)("Featured image"),panelName:"featured-image"})),Object(c.createElement)(u.PostExcerptCheck,null,Object(c.createElement)(jr.a,{label:Object(v.__)("Excerpt"),panelName:"post-excerpt"})),Object(c.createElement)(u.PostTypeSupportCheck,{supportKeys:["comments","trackbacks"]},Object(c.createElement)(jr.a,{label:Object(v.__)("Discussion"),panelName:"discussion-panel"})),Object(c.createElement)(u.PageAttributesCheck,null,Object(c.createElement)(jr.a,{label:Object(v.__)("Page attributes"),panelName:"page-attributes"}))),Object(c.createElement)(Er,{title:Object(v.__)("Additional panels"),description:Object(v.__)("Add extra areas to the editor.")})):null}));function fr(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=Object(at.a)(e);if(t){var i=Object(at.a)(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return Object(ot.a)(this,r)}}var Sr=function(e){Object(it.a)(r,e);var t=fr(r);function r(){var e;return Object(rt.a)(this,r),(e=t.apply(this,arguments)).state={historyId:null},e}return Object(nt.a)(r,[{key:"componentDidUpdate",value:function(e){var t=this.props,r=t.postId,n=t.postStatus,i=t.postType,o=t.isSavingPost,a=this.state.historyId;"trash"!==n||o?r===e.postId&&r===a||"auto-draft"===n||this.setBrowserURL(r):this.setTrashURL(r,i)}},{key:"setTrashURL",value:function(e,t){window.location.href=function(e,t){return Object(f.addQueryArgs)("edit.php",{trashed:1,post_type:t,ids:e})}(e,t)}},{key:"setBrowserURL",value:function(e){window.history.replaceState({id:e},"Post "+e,function(e){return Object(f.addQueryArgs)("post.php",{post:e,action:"edit"})}(e)),this.setState((function(){return{historyId:e}}))}},{key:"render",value:function(){return null}}]),r}(c.Component),Mr=Object(h.withSelect)((function(e){var t=e("core/editor"),r=t.getCurrentPost,n=t.isSavingPost,i=r();return{postId:i.id,postStatus:i.status,postType:i.type,isSavingPost:n()}}))(Sr),Zr=r(7),zr=Object(c.createElement)(Zr.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(c.createElement)(Zr.Path,{d:"M20 10c0-5.51-4.49-10-10-10C4.48 0 0 4.49 0 10c0 5.52 4.48 10 10 10 5.51 0 10-4.48 10-10zM7.78 15.37L4.37 6.22c.55-.02 1.17-.08 1.17-.08.5-.06.44-1.13-.06-1.11 0 0-1.45.11-2.37.11-.18 0-.37 0-.58-.01C4.12 2.69 6.87 1.11 10 1.11c2.33 0 4.45.87 6.05 2.34-.68-.11-1.65.39-1.65 1.58 0 .74.45 1.36.9 2.1.35.61.55 1.36.55 2.46 0 1.49-1.4 5-1.4 5l-3.03-8.37c.54-.02.82-.17.82-.17.5-.05.44-1.25-.06-1.22 0 0-1.44.12-2.38.12-.87 0-2.33-.12-2.33-.12-.5-.03-.56 1.2-.06 1.22l.92.08 1.26 3.41zM17.41 10c.24-.64.74-1.87.43-4.25.7 1.29 1.05 2.71 1.05 4.25 0 3.29-1.73 6.24-4.4 7.78.97-2.59 1.94-5.2 2.92-7.78zM6.1 18.09C3.12 16.65 1.11 13.53 1.11 10c0-1.3.23-2.48.72-3.59C3.25 10.3 4.67 14.2 6.1 18.09zm4.03-6.63l2.58 6.98c-.86.29-1.76.45-2.71.45-.79 0-1.57-.11-2.29-.33.81-2.38 1.62-4.74 2.42-7.1z"}));var wr=function(e){var t=e.showTooltip,r=Object(h.useSelect)((function(e){var t=e("core/editor").getCurrentPostType,r=e("core/edit-post").isFeatureActive,n=e("core/data").isResolving,i=e("core"),o=i.getEntityRecord,a=i.getPostType,c=o("root","__unstableBase",void 0)||{};return{isActive:r("fullscreenMode"),isRequestingSiteIcon:n("core","getEntityRecord",["root","__unstableBase",void 0]),postType:a(t()),siteIconUrl:c.site_icon_url}}),[]),n=r.isActive,i=r.isRequestingSiteIcon,o=r.postType,a=r.siteIconUrl;if(!n||!o)return null;var A=Object(c.createElement)(g.Icon,{size:"36px",icon:zr});return a?A=Object(c.createElement)("img",{alt:Object(v.__)("Site Icon"),className:"edit-post-fullscreen-mode-close_site-icon",src:a}):i&&(A=null),Object(c.createElement)(g.Button,{className:"edit-post-fullscreen-mode-close has-icon",href:Object(f.addQueryArgs)("edit.php",{post_type:o.slug}),label:Object(I.get)(o,["labels","view_items"],Object(v.__)("Back")),showTooltip:t},A)},Br=r(208);var Gr=function(){var e=Object(c.useRef)(),t=Object(h.useDispatch)("core/edit-post").setIsInserterOpened,r=Object(h.useSelect)((function(e){var t=e("core/block-editor"),r=t.hasInserterItems,n=t.getBlockRootClientId,i=t.getBlockSelectionEnd;return{hasFixedToolbar:e("core/edit-post").isFeatureActive("fixedToolbar"),isInserterEnabled:"visual"===e("core/edit-post").getEditorMode()&&e("core/editor").getEditorSettings().richEditingEnabled&&r(n(i())),isInserterOpened:e("core/edit-post").isInserterOpened(),isTextModeEnabled:"text"===e("core/edit-post").getEditorMode(),previewDeviceType:e("core/edit-post").__experimentalGetPreviewDeviceType(),showIconLabels:e("core/edit-post").isFeatureActive("showIconLabels"),isNavigationTool:e("core/block-editor").isNavigationMode(),hasReducedUI:e("core/edit-post").isFeatureActive("reducedUI")}}),[]),n=r.hasReducedUI,i=r.hasFixedToolbar,o=r.isInserterEnabled,a=r.isInserterOpened,l=r.isTextModeEnabled,s=r.previewDeviceType,m=r.showIconLabels,q=r.isNavigationTool,p=Object(j.useViewportMatch)("medium"),d=Object(j.useViewportMatch)("wide"),O=Object(j.useViewportMatch)("small","<"),I=Object(h.useDispatch)("core/block-editor").setNavigationMode,b=!p||"Desktop"!==s||i,C=b?Object(v.__)("Document and block tools"):Object(v.__)("Document tools"),y=function(e){I("edit"!==e)},E=Object(c.createElement)(c.Fragment,null,Object(c.createElement)(g.ToolbarItem,{as:u.TableOfContents,hasOutlineItemsDisabled:l,repositionDropdown:m&&!d,showTooltip:!m,isTertiary:m}),Object(c.createElement)(g.ToolbarItem,{as:A.BlockNavigationDropdown,isDisabled:l,showTooltip:!m,isTertiary:m}));return Object(c.createElement)(A.NavigableToolbar,{className:"edit-post-header-toolbar","aria-label":C},Object(c.createElement)("div",{className:"edit-post-header-toolbar__left"},Object(c.createElement)(g.ToolbarItem,{ref:e,as:g.Button,className:"edit-post-header-toolbar__inserter-toggle",isPrimary:!0,isPressed:a,onMouseDown:function(e){e.preventDefault()},onClick:function(){a?e.current.focus():t(!0)},disabled:!o,icon:Br.a,label:Object(v._x)("Add block","Generic label for block inserter button"),showTooltip:!m},m&&Object(v.__)("Add")),!n&&(d||!m)&&Object(c.createElement)(c.Fragment,null,p&&Object(c.createElement)(g.ToolbarItem,{as:A.ToolSelector,showTooltip:!m,isTertiary:m,disabled:l}),Object(c.createElement)(g.ToolbarItem,{as:u.EditorHistoryUndo,showTooltip:!m,isTertiary:m}),Object(c.createElement)(g.ToolbarItem,{as:u.EditorHistoryRedo,showTooltip:!m,isTertiary:m}),E),!n&&!d&&!O&&m&&Object(c.createElement)(g.DropdownMenu,{position:"bottom right",label:Object(v.__)("Tools")},(function(){return Object(c.createElement)("div",{className:"edit-post-header__dropdown"},Object(c.createElement)(g.MenuGroup,{label:Object(v.__)("Modes")},Object(c.createElement)(g.MenuItemsChoice,{value:q?"select":"edit",onSelect:y,choices:[{value:"edit",label:Object(v.__)("Edit")},{value:"select",label:Object(v.__)("Select")}]})),Object(c.createElement)(g.MenuGroup,{label:Object(v.__)("Edit")},Object(c.createElement)(u.EditorHistoryUndo,{showTooltip:!m,isTertiary:m}),Object(c.createElement)(u.EditorHistoryRedo,{showTooltip:!m,isTertiary:m})),Object(c.createElement)(g.MenuGroup,null,E))}))),b&&Object(c.createElement)("div",{className:"edit-post-header-toolbar__block-toolbar"},Object(c.createElement)(A.BlockToolbar,{hideDragHandle:!0})))},Yr=r(317);function kr(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Qr(e){for(var t=1;t icon."),{InserterIconImage:Object(c.createElement)(Pn,{className:"edit-post-welcome-guide__inserter-icon"})})))},{image:Object(c.createElement)(Nn,null),content:Object(c.createElement)(c.Fragment,null,Object(c.createElement)("h1",{className:"edit-post-welcome-guide__heading"},Object(v.__)("Learn how to use the block editor")),Object(c.createElement)("p",{className:"edit-post-welcome-guide__text"},Object(v.__)("New to the block editor? Want to learn more about using it? "),Object(c.createElement)(g.ExternalLink,{href:Object(v.__)("https://wordpress.org/support/article/wordpress-editor/")},Object(v.__)("Here's a detailed guide."))))}]}):null}var xn=Object(g.createSlotFill)("PluginPostPublishPanel"),Hn=xn.Fill,Rn=xn.Slot,Tn=Object(j.compose)(Object(K.withPluginContext)((function(e,t){return{icon:t.icon||e.icon}})))((function(e){var t=e.children,r=e.className,n=e.title,i=e.initialOpen,o=void 0!==i&&i,a=e.icon;return Object(c.createElement)(Hn,null,Object(c.createElement)(g.PanelBody,{className:r,initialOpen:o||!n,title:n,icon:a},t))}));Tn.Slot=Rn;var Fn=Tn,Un=Object(g.createSlotFill)("PluginPrePublishPanel"),Xn=Un.Fill,Vn=Un.Slot,_n=Object(j.compose)(Object(K.withPluginContext)((function(e,t){return{icon:t.icon||e.icon}})))((function(e){var t=e.children,r=e.className,n=e.title,i=e.initialOpen,o=void 0!==i&&i,a=e.icon;return Object(c.createElement)(Xn,null,Object(c.createElement)(g.PanelBody,{className:r,initialOpen:o||!n,title:n,icon:a},t))}));_n.Slot=Vn;var $n=_n;function ei(e){var t,r=e.setEntitiesSavedStatesCallback,n=e.closeEntitiesSavedStates,i=e.isEntitiesSavedStatesOpen,o=Object(h.useDispatch)("core/edit-post"),a=o.closePublishSidebar,A=o.togglePublishSidebar,l=Object(h.useSelect)((function(e){return{publishSidebarOpened:e("core/edit-post").isPublishSidebarOpened(),hasActiveMetaboxes:e("core/edit-post").hasMetaBoxes(),isSavingMetaBoxes:e("core/edit-post").isSavingMetaBoxes(),hasNonPostEntityChanges:e("core/editor").hasNonPostEntityChanges()}}),[]),s=l.publishSidebarOpened,m=l.hasActiveMetaboxes,q=l.isSavingMetaBoxes,p=l.hasNonPostEntityChanges,d=Object(c.useCallback)((function(){return r(!0)}),[]);return t=s?Object(c.createElement)(u.PostPublishPanel,{onClose:a,forceIsDirty:m,forceIsSaving:q,PrePublishExtension:$n.Slot,PostPublishExtension:Fn.Slot}):p?Object(c.createElement)("div",{className:"edit-post-layout__toggle-entities-saved-states-panel"},Object(c.createElement)(g.Button,{isSecondary:!0,className:"edit-post-layout__toggle-entities-saved-states-panel-button",onClick:d,"aria-expanded":!1},Object(v.__)("Open save panel"))):Object(c.createElement)("div",{className:"edit-post-layout__toggle-publish-panel"},Object(c.createElement)(g.Button,{isSecondary:!0,className:"edit-post-layout__toggle-publish-panel-button",onClick:A,"aria-expanded":!1},Object(v.__)("Open publish panel"))),Object(c.createElement)(c.Fragment,null,Object(c.createElement)(u.EntitiesSavedStates,{isOpen:i,close:n}),!i&&t)}function ti(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=Object(at.a)(e);if(t){var i=Object(at.a)(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return Object(ot.a)(this,r)}}function ri(e){e.stopPropagation()}var ni=Object(g.withFocusOutside)(function(e){Object(it.a)(r,e);var t=ti(r);function r(){return Object(rt.a)(this,r),t.apply(this,arguments)}return Object(nt.a)(r,[{key:"handleFocusOutside",value:function(e){this.props.onFocusOutside(e)}},{key:"render",value:function(){return this.props.children}}]),r}(c.Component)),ii=Object(g.withConstrainedTabbing)(Object(g.withFocusReturn)((function(e){return e.children})));function oi(e){var t=e.onClose,r=e.children,n=e.className;return Object(c.createElement)("div",{className:n,onKeyDown:function(e){e.keyCode===Z.ESCAPE&&t&&(e.stopPropagation(),t())},onMouseDown:ri},Object(c.createElement)(ni,{onFocusOutside:t},Object(c.createElement)(ii,null,r)))}var ai={leftSidebar:Object(v.__)("Block library"),header:Object(v.__)("Editor top bar"),body:Object(v.__)("Editor content"),sidebar:Object(v.__)("Editor settings"),actions:Object(v.__)("Editor publish"),footer:Object(v.__)("Editor footer")};var ci=function(){var e=Object(j.useViewportMatch)("medium","<"),t=Object(j.useViewportMatch)("huge",">="),r=Object(h.useDispatch)("core/edit-post"),n=r.openGeneralSidebar,i=r.closeGeneralSidebar,o=r.setIsInserterOpened,a=Object(h.useSelect)((function(e){return{hasFixedToolbar:e("core/edit-post").isFeatureActive("fixedToolbar"),sidebarIsOpened:!(!e("core/interface").getActiveComplementaryArea("core/edit-post")&&!e("core/edit-post").isPublishSidebarOpened()),isFullscreenActive:e("core/edit-post").isFeatureActive("fullscreenMode"),showMostUsedBlocks:e("core/edit-post").isFeatureActive("mostUsedBlocks"),isInserterOpened:e("core/edit-post").isInserterOpened(),mode:e("core/edit-post").getEditorMode(),isRichEditingEnabled:e("core/editor").getEditorSettings().richEditingEnabled,hasActiveMetaboxes:e("core/edit-post").hasMetaBoxes(),previousShortcut:e("core/keyboard-shortcuts").getAllShortcutRawKeyCombinations("core/edit-post/previous-region"),nextShortcut:e("core/keyboard-shortcuts").getAllShortcutRawKeyCombinations("core/edit-post/next-region"),showIconLabels:e("core/edit-post").isFeatureActive("showIconLabels"),hasReducedUI:e("core/edit-post").isFeatureActive("reducedUI")}}),[]),l=a.mode,s=a.isFullscreenActive,m=a.isRichEditingEnabled,q=a.sidebarIsOpened,p=a.hasActiveMetaboxes,d=a.hasFixedToolbar,O=a.previousShortcut,I=a.nextShortcut,b=a.hasBlockSelected,C=a.showMostUsedBlocks,y=a.isInserterOpened,E=a.showIconLabels,f=a.hasReducedUI,S=st()("edit-post-layout","is-mode-"+l,{"is-sidebar-opened":q,"has-fixed-toolbar":d,"has-metaboxes":p,"show-icon-labels":E});Object(c.useEffect)((function(){q&&!t&&o(!1)}),[q,t]),Object(c.useEffect)((function(){y&&!t&&i()}),[y,t]);var M=Object(c.useState)(!1),Z=Object(F.a)(M,2),z=Z[0],w=Z[1],B=Object(c.useCallback)((function(e){"function"==typeof z&&z(e),w(!1)}),[z]);return Object(c.createElement)(c.Fragment,null,Object(c.createElement)(Pt,{isActive:s}),Object(c.createElement)(Mr,null),Object(c.createElement)(u.UnsavedChangesWarning,null),Object(c.createElement)(u.AutosaveMonitor,null),Object(c.createElement)(u.LocalAutosaveMonitor,null),Object(c.createElement)(rr,null),Object(c.createElement)(u.EditorKeyboardShortcutsRegister,null),Object(c.createElement)(Qn,null),Object(c.createElement)(g.FocusReturnProvider,null,Object(c.createElement)(Ht,{className:S,labels:ai,header:Object(c.createElement)(Xr,{setEntitiesSavedStatesCallback:w}),leftSidebar:"visual"===l&&y&&Object(c.createElement)(oi,{className:"edit-post-layout__inserter-panel-popover-wrapper",onClose:function(){return o(!1)}},Object(c.createElement)("div",{className:"edit-post-layout__inserter-panel"},Object(c.createElement)("div",{className:"edit-post-layout__inserter-panel-header"},Object(c.createElement)(g.Button,{icon:_t.a,onClick:function(){return o(!1)}})),Object(c.createElement)("div",{className:"edit-post-layout__inserter-panel-content"},Object(c.createElement)(A.__experimentalLibrary,{showMostUsedBlocks:C,showInserterHelpPanel:!0,onSelect:function(){e&&o(!1)}})))),sidebar:(!e||q)&&Object(c.createElement)(c.Fragment,null,!e&&!q&&Object(c.createElement)("div",{className:"edit-post-layout__toogle-sidebar-panel"},Object(c.createElement)(g.Button,{isSecondary:!0,className:"edit-post-layout__toogle-sidebar-panel-button",onClick:function(){return n(b?"edit-post/block":"edit-post/document")},"aria-expanded":!1},b?Object(v.__)("Open block settings"):Object(v.__)("Open document settings"))),Object(c.createElement)(Yt.Slot,{scope:"core/edit-post"})),content:Object(c.createElement)(c.Fragment,null,Object(c.createElement)(u.EditorNotices,null),("text"===l||!m)&&Object(c.createElement)($t,null),m&&"visual"===l&&Object(c.createElement)(tr,null),Object(c.createElement)("div",{className:"edit-post-layout__metaboxes"},Object(c.createElement)(Bn,{location:"normal"}),Object(c.createElement)(Bn,{location:"advanced"})),e&&q&&Object(c.createElement)(g.ScrollLock,null)),footer:!f&&!e&&m&&"visual"===l&&Object(c.createElement)("div",{className:"edit-post-layout__footer"},Object(c.createElement)(A.BlockBreadcrumb,null)),actions:Object(c.createElement)(ei,{closeEntitiesSavedStates:B,isEntitiesSavedStatesOpen:z,setEntitiesSavedStatesCallback:w}),shortcuts:{previous:O,next:I}}),Object(c.createElement)(Or,null),Object(c.createElement)(Kr,null),Object(c.createElement)(sr,null),Object(c.createElement)(Jn,null),Object(c.createElement)(g.Popover.Slot,null),Object(c.createElement)(K.PluginArea,null)))};function Ai(e){var t=e.postId;return function(e){var t=Object(h.useSelect)((function(e){return{hasBlockSelection:!!e("core/block-editor").getBlockSelectionStart(),isEditorSidebarOpened:e("core/edit-post").isEditorSidebarOpened()}}),[e]),r=t.hasBlockSelection,n=t.isEditorSidebarOpened,i=Object(h.useDispatch)("core/edit-post").openGeneralSidebar;Object(c.useEffect)((function(){n&&i(r?"edit-post/block":"edit-post/document")}),[r,n])}(t),function(e){var t=Object(h.useSelect)((function(e){return{newPermalink:e("core/editor").getCurrentPost().link}}),[e]).newPermalink,r=Object(c.useRef)();Object(c.useEffect)((function(){r.current=document.querySelector("#wp-admin-bar-preview a")||document.querySelector("#wp-admin-bar-view a")}),[e]),Object(c.useEffect)((function(){t&&r.current&&r.current.setAttribute("href",t)}),[t])}(t),null}function ui(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function li(e){for(var t=1;t0){var m=!0===e.allowedBlockTypes?Object(I.map)(a,"name"):e.allowedBlockTypes||[];e.allowedBlockTypes=I.without.apply(void 0,[m].concat(Object(L.a)(o)))}return e}},{key:"render",value:function(){var e=this.props,t=e.settings,r=e.hasFixedToolbar,n=e.focusMode,i=e.hasReducedUI,o=e.hasThemeStyles,a=e.post,A=e.postId,l=e.initialEdits,s=e.onError,m=e.hiddenBlockTypes,q=e.blockTypes,p=e.preferredStyleVariations,I=e.__experimentalLocalAutosaveInterval,b=e.setIsInserterOpened,h=e.updatePreferredStyleVariations,v=e.keepCaretInsideBlock,j=Object(O.a)(e,["settings","hasFixedToolbar","focusMode","hasReducedUI","hasThemeStyles","post","postId","initialEdits","onError","hiddenBlockTypes","blockTypes","preferredStyleVariations","__experimentalLocalAutosaveInterval","setIsInserterOpened","updatePreferredStyleVariations","keepCaretInsideBlock"]);if(!a)return null;var C=this.getEditorSettings(t,r,n,i,o,m,q,p,I,b,h,v);return Object(c.createElement)(c.StrictMode,null,Object(c.createElement)(qr.Provider,{value:t},Object(c.createElement)(g.SlotFillProvider,null,Object(c.createElement)(g.DropZoneProvider,null,Object(c.createElement)(u.EditorProvider,Object(d.a)({settings:C,post:a,initialEdits:l,useSubRegistry:!1},j),Object(c.createElement)(u.ErrorBoundary,{onError:s},Object(c.createElement)(Ai,{postId:A}),Object(c.createElement)(ci,null),Object(c.createElement)(g.KeyboardShortcuts,{shortcuts:ut})),Object(c.createElement)(u.PostLockedModal,null))))))}}]),r}(c.Component),qi=Object(j.compose)([Object(h.withSelect)((function(e,t){var r=t.postId,n=t.postType,i=e("core/edit-post"),o=i.isFeatureActive,a=i.getPreference,c=i.__experimentalGetPreviewDeviceType,A=e("core").getEntityRecord,u=e("core/blocks").getBlockTypes;return{hasFixedToolbar:o("fixedToolbar")||"Desktop"!==c(),focusMode:o("focusMode"),hasReducedUI:o("reducedUI"),hasThemeStyles:o("themeStyles"),post:A("postType",n,r),preferredStyleVariations:a("preferredStyleVariations"),hiddenBlockTypes:a("hiddenBlockTypes"),blockTypes:u(),__experimentalLocalAutosaveInterval:a("localAutosaveInterval"),keepCaretInsideBlock:o("keepCaretInsideBlock")}})),Object(h.withDispatch)((function(e){var t=e("core/edit-post");return{updatePreferredStyleVariations:t.updatePreferredStyleVariations,setIsInserterOpened:t.setIsInserterOpened}}))])(mi),pi=r(452),di=function(e,t){return!Array.isArray(t)||(r=e,n=t,0===Object(I.difference)(r,n).length);var r,n},Oi=function(e){var t=e.allowedBlocks,r=e.icon,n=e.label,i=e.onClick,o=e.small,a=e.role;return Object(c.createElement)(A.BlockSettingsMenuControls,null,(function(e){var A=e.selectedBlocks,u=e.onClose;return di(A,t)?Object(c.createElement)(g.MenuItem,{onClick:Object(j.compose)(i,u),icon:r||pi.a,label:o?n:void 0,role:a},!o&&n):null}))},Ii=Object(j.compose)(Object(K.withPluginContext)((function(e,t){return{icon:t.icon||e.icon,name:"core/edit-post/plugin-more-menu"}})))(Lt);function bi(e){return Object(c.createElement)(Dt,Object(d.a)({scope:"core/edit-post"},e))}function gi(e,t,r,n,i){Object(c.unmountComponentAtNode)(r);var o=gi.bind(null,e,t,r,n,i);Object(c.render)(Object(c.createElement)(qi,{settings:n,onError:o,postId:t,postType:e,initialEdits:i,recovery:!0}),r)}function hi(e,t,r,n,i){var o=document.getElementById(e),a=gi.bind(null,t,r,o,n,i);Object(m.registerCoreBlocks)(),"Standards"!==("CSS1Compat"===document.compatMode?"Standards":"Quirks")&&console.warn("Your browser is using Quirks Mode. \nThis can cause rendering issues such as blocks overlaying meta boxes in the editor. Quirks Mode can be triggered by PHP errors or HTML code appearing before the opening . Try checking the raw page source or your site's PHP error log and resolving errors there, removing any HTML before the doctype, or disabling plugins."),-1!==window.navigator.userAgent.indexOf("iPhone")&&window.addEventListener("scroll",(function(e){var t=document.getElementsByClassName("interface-interface-skeleton__body")[0];e.target===document&&(window.scrollY>100&&(t.scrollTop=t.scrollTop+window.scrollY),document.getElementsByClassName("is-mode-visual")[0]&&window.scrollTo(0,0))})),Object(c.render)(Object(c.createElement)(qi,{settings:n,onError:a,postId:r,postType:t,initialEdits:i}),o)}},5:function(e,t,r){"use strict";function n(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}r.d(t,"a",(function(){return n}))},503:function(e,t,r){"use strict";var n=r(0),i=r(3),o=r(504),a=Object(i.createSlotFill)("EnablePluginDocumentSettingPanelOption"),c=a.Fill,A=a.Slot,u=function(e){var t=e.label,r=e.panelName;return Object(n.createElement)(c,null,Object(n.createElement)(o.a,{label:t,panelName:r}))};u.Slot=A,t.a=u},504:function(e,t,r){"use strict";var n=r(10),i=r(4),o=r(117);t.a=Object(n.compose)(Object(i.withSelect)((function(e,t){var r=t.panelName,n=e("core/edit-post"),i=n.isEditorPanelEnabled;return{isRemoved:(0,n.isEditorPanelRemoved)(r),isChecked:i(r)}})),Object(n.ifCondition)((function(e){return!e.isRemoved})),Object(i.withDispatch)((function(e,t){var r=t.panelName;return{onChange:function(){return e("core/edit-post").toggleEditorPanelEnabled(r)}}})))(o.a)},53:function(e,t){!function(){e.exports=this.wp.keyboardShortcuts}()},6:function(e,t){!function(){e.exports=this.wp.blockEditor}()},60:function(e,t,r){e.exports=function(e,t){var r,n,i=0;function o(){var o,a,c=r,A=arguments.length;e:for(;c;){if(c.args.length===arguments.length){for(a=0;a= authors.length) { return null; } @@ -7403,9 +7410,7 @@ function PostAuthorCheck(_ref) { return { hasAssignAuthorAction: Object(external_this_lodash_["get"])(post, ['_links', 'wp:action-assign-author'], false), postType: select('core/editor').getCurrentPostType(), - authors: select('core').getUsers({ - who: 'authors' - }) + authors: select('core').getAuthors() }; }), external_this_wp_compose_["withInstanceId"]])(PostAuthorCheck)); @@ -7414,11 +7419,6 @@ function PostAuthorCheck(_ref) { - -function post_author_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } - -function post_author_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { post_author_ownKeys(Object(source), true).forEach(function (key) { Object(defineProperty["a" /* default */])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { post_author_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } - /** * External dependencies */ @@ -7445,27 +7445,23 @@ function PostAuthor() { var _useSelect = Object(external_this_wp_data_["useSelect"])(function (select) { var _select = select('core'), - getUser = _select.getUser, - getUsers = _select.getUsers, + __unstableGetAuthor = _select.__unstableGetAuthor, + getAuthors = _select.getAuthors, isResolving = _select.isResolving; var _select2 = select('core/editor'), getEditedPostAttribute = _select2.getEditedPostAttribute; - var author = getUser(getEditedPostAttribute('author')); + var author = __unstableGetAuthor(getEditedPostAttribute('author')); + var query = !fieldValue || '' === fieldValue ? {} : { search: fieldValue }; return { authorId: getEditedPostAttribute('author'), postAuthor: author, - authors: getUsers(post_author_objectSpread({ - who: 'authors' - }, query)), - isLoading: isResolving('core', 'getUsers', [{ - search: fieldValue, - who: 'authors' - }]) + authors: getAuthors(query), + isLoading: isResolving('core', 'getAuthors', [query]) }; }, [fieldValue]), authorId = _useSelect.authorId, @@ -11948,7 +11944,7 @@ var info_info = Object(external_this_wp_element_["createElement"])(external_this /* harmony default export */ var library_info = (info_info); // EXTERNAL MODULE: external {"this":["wp","wordcount"]} -var external_this_wp_wordcount_ = __webpack_require__(128); +var external_this_wp_wordcount_ = __webpack_require__(129); // CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/word-count/index.js @@ -12738,7 +12734,7 @@ var provider_EditorProvider = /*#__PURE__*/function (_Component) { })])(provider_EditorProvider)); // EXTERNAL MODULE: external {"this":["wp","serverSideRender"]} -var external_this_wp_serverSideRender_ = __webpack_require__(87); +var external_this_wp_serverSideRender_ = __webpack_require__(88); var external_this_wp_serverSideRender_default = /*#__PURE__*/__webpack_require__.n(external_this_wp_serverSideRender_); // CONCATENATED MODULE: ./node_modules/@wordpress/editor/build-module/components/deprecated.js @@ -12936,13 +12932,6 @@ var withFontSizes = deprecateFunction('withFontSizes', external_this_wp_blockEdi -/***/ }), - -/***/ 47: -/***/ (function(module, exports) { - -(function() { module.exports = this["wp"]["apiFetch"]; }()); - /***/ }), /***/ 5: @@ -13202,7 +13191,7 @@ function _extends() { /***/ }), -/***/ 87: +/***/ 88: /***/ (function(module, exports) { (function() { module.exports = this["wp"]["serverSideRender"]; }()); @@ -13267,7 +13256,7 @@ var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*! /***/ }), -/***/ 92: +/***/ 94: /***/ (function(module, exports) { (function() { module.exports = this["wp"]["notices"]; }()); diff --git a/wp-includes/js/dist/editor.min.js b/wp-includes/js/dist/editor.min.js index c7baea471f..d98b05c2cd 100644 --- a/wp-includes/js/dist/editor.min.js +++ b/wp-includes/js/dist/editor.min.js @@ -1,12 +1,12 @@ /*! This file is auto-generated */ -this.wp=this.wp||{},this.wp.editor=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=457)}({0:function(e,t){!function(){e.exports=this.wp.element}()},1:function(e,t){!function(){e.exports=this.wp.i18n}()},10:function(e,t){!function(){e.exports=this.wp.compose}()},100:function(e,t,n){"use strict";t.__esModule=!0;var r=n(180);t.default=r.default},101:function(e,t){!function(){e.exports=this.wp.viewport}()},105:function(e,t){!function(){e.exports=this.wp.autop}()},11:function(e,t){!function(){e.exports=this.wp.blocks}()},12:function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(38);var o=n(30),i=n(39);function c(e,t){return Object(r.a)(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,o=!1,i=void 0;try{for(var c,s=e[Symbol.iterator]();!(r=(c=s.next()).done)&&(n.push(c.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}}(e,t)||Object(o.a)(e,t)||Object(i.a)()}},121:function(e,t){!function(){e.exports=this.wp.reusableBlocks}()},128:function(e,t){!function(){e.exports=this.wp.wordcount}()},13:function(e,t){!function(){e.exports=this.React}()},14:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(43);function o(e,t){if(null==e)return{};var n,o,i=Object(r.a)(e,t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(o=0;o=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}},141:function(e,t,n){"use strict";var r=n(5),o=n(14),i=n(0);function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}t.a=function(e){var t=e.icon,n=e.size,s=void 0===n?24:n,a=Object(o.a)(e,["icon","size"]);return Object(i.cloneElement)(t,function(e){for(var t=1;t=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}},141:function(e,t,n){"use strict";var r=n(5),o=n(14),i=n(0);function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}t.a=function(e){var t=e.icon,n=e.size,a=void 0===n?24:n,s=Object(o.a)(e,["icon","size"]);return Object(i.cloneElement)(t,function(e){for(var t=1;t-1},get:function(e){return r[n.indexOf(e)]},set:function(e,t){-1===n.indexOf(e)&&(n.push(e),r.push(t))},delete:function(e){var t=n.indexOf(e);t>-1&&(n.splice(t,1),r.splice(t,1))}}),i=function(e){return new Event(e,{bubbles:!0})};try{new Event("test")}catch(e){i=function(e){var t=document.createEvent("Event");return t.initEvent(e,!0,!1),t}}function c(e){if(e&&e.nodeName&&"TEXTAREA"===e.nodeName&&!o.has(e)){var t,n=null,r=null,c=null,s=function(){e.clientWidth!==r&&d()},a=function(t){window.removeEventListener("resize",s,!1),e.removeEventListener("input",d,!1),e.removeEventListener("keyup",d,!1),e.removeEventListener("autosize:destroy",a,!1),e.removeEventListener("autosize:update",d,!1),Object.keys(t).forEach((function(n){e.style[n]=t[n]})),o.delete(e)}.bind(e,{height:e.style.height,resize:e.style.resize,overflowY:e.style.overflowY,overflowX:e.style.overflowX,wordWrap:e.style.wordWrap});e.addEventListener("autosize:destroy",a,!1),"onpropertychange"in e&&"oninput"in e&&e.addEventListener("keyup",d,!1),window.addEventListener("resize",s,!1),e.addEventListener("input",d,!1),e.addEventListener("autosize:update",d,!1),e.style.overflowX="hidden",e.style.wordWrap="break-word",o.set(e,{destroy:a,update:d}),"vertical"===(t=window.getComputedStyle(e,null)).resize?e.style.resize="none":"both"===t.resize&&(e.style.resize="horizontal"),n="content-box"===t.boxSizing?-(parseFloat(t.paddingTop)+parseFloat(t.paddingBottom)):parseFloat(t.borderTopWidth)+parseFloat(t.borderBottomWidth),isNaN(n)&&(n=0),d()}function u(t){var n=e.style.width;e.style.width="0px",e.offsetWidth,e.style.width=n,e.style.overflowY=t}function l(){if(0!==e.scrollHeight){var t=function(e){for(var t=[];e&&e.parentNode&&e.parentNode instanceof Element;)e.parentNode.scrollTop&&t.push({node:e.parentNode,scrollTop:e.parentNode.scrollTop}),e=e.parentNode;return t}(e),o=document.documentElement&&document.documentElement.scrollTop;e.style.height="",e.style.height=e.scrollHeight+n+"px",r=e.clientWidth,t.forEach((function(e){e.node.scrollTop=e.scrollTop})),o&&(document.documentElement.scrollTop=o)}}function d(){l();var t=Math.round(parseFloat(e.style.height)),n=window.getComputedStyle(e,null),r="content-box"===n.boxSizing?Math.round(parseFloat(n.height)):e.offsetHeight;if(re.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||(o[n]=e[n]);return o}n.d(t,"a",(function(){return r}))},439:function(e,t,n){"use strict";var r=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["optimist"])}}return{optimist:o,innerState:e}}e.exports=function(e){function t(t,n,o){return t.length&&(t=t.concat([{action:o}])),c(n=e(n,o),o),r({optimist:t},n)}return function(n,o){if(o.optimist)switch(o.optimist.type){case"BEGIN":return function(t,n){var o=s(t),i=o.optimist,a=o.innerState;return i=i.concat([{beforeState:a,action:n}]),c(a=e(a,n),n),r({optimist:i},a)}(n,o);case"COMMIT":return function(e,n){var r=s(e),o=r.optimist,c=r.innerState,a=[],u=!1,l=!1;return o.forEach((function(e){u?e.beforeState&&i(e.action,n.optimist.id)?(l=!0,a.push({action:e.action})):a.push(e):e.beforeState&&!i(e.action,n.optimist.id)?(u=!0,a.push(e)):e.beforeState&&i(e.action,n.optimist.id)&&(l=!0)})),l||console.error('Cannot commit transaction with id "'+n.optimist.id+'" because it does not exist'),t(o=a,c,n)}(n,o);case"REVERT":return function(n,r){var o=s(n),a=o.optimist,u=o.innerState,l=[],d=!1,p=!1,b=u;return a.forEach((function(t){t.beforeState&&i(t.action,r.optimist.id)&&(b=t.beforeState,p=!0),i(t.action,r.optimist.id)||(t.beforeState&&(d=!0),d&&(p&&t.beforeState?l.push({beforeState:b,action:t.action}):l.push(t)),p&&(b=e(b,t.action),c(u,r)))})),p||console.error('Cannot revert transaction with id "'+r.optimist.id+'" because it does not exist'),t(a=l,b,r)}(n,o)}var a=s(n),u=a.optimist,l=a.innerState;if(n&&!u.length){var d=e(l,o);return d===l?n:(c(d,o),r({optimist:u},d))}return t(u,l,o)}},e.exports.BEGIN="BEGIN",e.exports.COMMIT="COMMIT",e.exports.REVERT="REVERT"},45:function(e,t,n){"use strict";function r(e,t,n,r,o,i,c){try{var s=e[i](c),a=s.value}catch(e){return void n(e)}s.done?t(a):Promise.resolve(a).then(r,o)}function o(e){return function(){var t=this,n=arguments;return new Promise((function(o,i){var c=e.apply(t,n);function s(e){r(c,o,i,s,a,"next",e)}function a(e){r(c,o,i,s,a,"throw",e)}s(void 0)}))}}n.d(t,"a",(function(){return o}))},457:function(e,t,n){"use strict";n.r(t),n.d(t,"userAutocompleter",(function(){return Ar})),n.d(t,"AutosaveMonitor",(function(){return Vr})),n.d(t,"DocumentOutline",(function(){return Jr})),n.d(t,"DocumentOutlineCheck",(function(){return Zr})),n.d(t,"VisualEditorGlobalKeyboardShortcuts",(function(){return no})),n.d(t,"EditorGlobalKeyboardShortcuts",(function(){return ro})),n.d(t,"TextEditorGlobalKeyboardShortcuts",(function(){return oo})),n.d(t,"EditorKeyboardShortcutsRegister",(function(){return io})),n.d(t,"EditorHistoryRedo",(function(){return lo})),n.d(t,"EditorHistoryUndo",(function(){return bo})),n.d(t,"EditorNotices",(function(){return ho})),n.d(t,"EntitiesSavedStates",(function(){return ko})),n.d(t,"ErrorBoundary",(function(){return wo})),n.d(t,"LocalAutosaveMonitor",(function(){return Bo})),n.d(t,"PageAttributesCheck",(function(){return Io})),n.d(t,"PageAttributesOrder",(function(){return Do})),n.d(t,"PageAttributesParent",(function(){return Mo})),n.d(t,"PageTemplate",(function(){return Vo})),n.d(t,"PostAuthor",(function(){return Go})),n.d(t,"PostAuthorCheck",(function(){return zo})),n.d(t,"PostComments",(function(){return Ko})),n.d(t,"PostExcerpt",(function(){return qo})),n.d(t,"PostExcerptCheck",(function(){return Qo})),n.d(t,"PostFeaturedImage",(function(){return ri})),n.d(t,"PostFeaturedImageCheck",(function(){return Yo})),n.d(t,"PostFormat",(function(){return ci})),n.d(t,"PostFormatCheck",(function(){return oi})),n.d(t,"PostLastRevision",(function(){return ui})),n.d(t,"PostLastRevisionCheck",(function(){return ai})),n.d(t,"PostLockedModal",(function(){return hi})),n.d(t,"PostPendingStatus",(function(){return vi})),n.d(t,"PostPendingStatusCheck",(function(){return mi})),n.d(t,"PostPingbacks",(function(){return Oi})),n.d(t,"PostPreviewButton",(function(){return pi})),n.d(t,"PostPublishButton",(function(){return _i})),n.d(t,"PostPublishButtonLabel",(function(){return gi})),n.d(t,"PostPublishPanel",(function(){return tc})),n.d(t,"PostSavedState",(function(){return sc})),n.d(t,"PostSchedule",(function(){return Ti})),n.d(t,"PostScheduleCheck",(function(){return ac})),n.d(t,"PostScheduleLabel",(function(){return xi})),n.d(t,"PostSlug",(function(){return pc})),n.d(t,"PostSlugCheck",(function(){return uc})),n.d(t,"PostSticky",(function(){return fc})),n.d(t,"PostStickyCheck",(function(){return bc})),n.d(t,"PostSwitchToDraftButton",(function(){return cc})),n.d(t,"PostTaxonomies",(function(){return yc})),n.d(t,"PostTaxonomiesCheck",(function(){return _c})),n.d(t,"PostTextEditor",(function(){return Sc})),n.d(t,"PostTitle",(function(){return Bc})),n.d(t,"PostTrash",(function(){return Ic})),n.d(t,"PostTrashCheck",(function(){return Ac})),n.d(t,"PostTypeSupportCheck",(function(){return Ao})),n.d(t,"PostVisibility",(function(){return wi})),n.d(t,"PostVisibilityLabel",(function(){return Ci})),n.d(t,"PostVisibilityCheck",(function(){return Rc})),n.d(t,"TableOfContents",(function(){return Mc})),n.d(t,"UnsavedChangesWarning",(function(){return Vc})),n.d(t,"WordCount",(function(){return Lc})),n.d(t,"EditorProvider",(function(){return es})),n.d(t,"ServerSideRender",(function(){return ns.a})),n.d(t,"RichText",(function(){return is})),n.d(t,"Autocomplete",(function(){return cs})),n.d(t,"AlignmentToolbar",(function(){return ss})),n.d(t,"BlockAlignmentToolbar",(function(){return as})),n.d(t,"BlockControls",(function(){return us})),n.d(t,"BlockEdit",(function(){return ls})),n.d(t,"BlockEditorKeyboardShortcuts",(function(){return ds})),n.d(t,"BlockFormatControls",(function(){return ps})),n.d(t,"BlockIcon",(function(){return bs})),n.d(t,"BlockInspector",(function(){return fs})),n.d(t,"BlockList",(function(){return hs})),n.d(t,"BlockMover",(function(){return ms})),n.d(t,"BlockNavigationDropdown",(function(){return vs})),n.d(t,"BlockSelectionClearer",(function(){return Os})),n.d(t,"BlockSettingsMenu",(function(){return gs})),n.d(t,"BlockTitle",(function(){return js})),n.d(t,"BlockToolbar",(function(){return ys})),n.d(t,"ColorPalette",(function(){return _s})),n.d(t,"ContrastChecker",(function(){return Ps})),n.d(t,"CopyHandler",(function(){return ks})),n.d(t,"DefaultBlockAppender",(function(){return Ss})),n.d(t,"FontSizePicker",(function(){return Es})),n.d(t,"Inserter",(function(){return ws})),n.d(t,"InnerBlocks",(function(){return Cs})),n.d(t,"InspectorAdvancedControls",(function(){return Ts})),n.d(t,"InspectorControls",(function(){return xs})),n.d(t,"PanelColorSettings",(function(){return Bs})),n.d(t,"PlainText",(function(){return Is})),n.d(t,"RichTextShortcut",(function(){return As})),n.d(t,"RichTextToolbarButton",(function(){return Rs})),n.d(t,"__unstableRichTextInputEvent",(function(){return Ds})),n.d(t,"MediaPlaceholder",(function(){return Ns})),n.d(t,"MediaUpload",(function(){return Ls})),n.d(t,"MediaUploadCheck",(function(){return Us})),n.d(t,"MultiSelectScrollIntoView",(function(){return Fs})),n.d(t,"NavigableToolbar",(function(){return Ms})),n.d(t,"ObserveTyping",(function(){return Vs})),n.d(t,"PreserveScrollInReorder",(function(){return zs})),n.d(t,"SkipToSelectedBlock",(function(){return Hs})),n.d(t,"URLInput",(function(){return Ws})),n.d(t,"URLInputButton",(function(){return Gs})),n.d(t,"URLPopover",(function(){return Ks})),n.d(t,"Warning",(function(){return qs})),n.d(t,"WritingFlow",(function(){return Qs})),n.d(t,"createCustomColorsHOC",(function(){return $s})),n.d(t,"getColorClassName",(function(){return Ys})),n.d(t,"getColorObjectByAttributeValues",(function(){return Xs})),n.d(t,"getColorObjectByColorValue",(function(){return Js})),n.d(t,"getFontSize",(function(){return Zs})),n.d(t,"getFontSizeClass",(function(){return ea})),n.d(t,"withColorContext",(function(){return ta})),n.d(t,"withColors",(function(){return na})),n.d(t,"withFontSizes",(function(){return ra})),n.d(t,"mediaUpload",(function(){return qc})),n.d(t,"cleanForSlug",(function(){return V})),n.d(t,"storeConfig",(function(){return kr})),n.d(t,"transformStyles",(function(){return i.transformStyles}));var r={};n.r(r),n.d(r,"hasEditorUndo",(function(){return K})),n.d(r,"hasEditorRedo",(function(){return q})),n.d(r,"isEditedPostNew",(function(){return Q})),n.d(r,"hasChangedContent",(function(){return $})),n.d(r,"isEditedPostDirty",(function(){return Y})),n.d(r,"hasNonPostEntityChanges",(function(){return X})),n.d(r,"isCleanNewPost",(function(){return J})),n.d(r,"getCurrentPost",(function(){return Z})),n.d(r,"getCurrentPostType",(function(){return ee})),n.d(r,"getCurrentPostId",(function(){return te})),n.d(r,"getCurrentPostRevisionsCount",(function(){return ne})),n.d(r,"getCurrentPostLastRevisionId",(function(){return re})),n.d(r,"getPostEdits",(function(){return oe})),n.d(r,"getReferenceByDistinctEdits",(function(){return ie})),n.d(r,"getCurrentPostAttribute",(function(){return ce})),n.d(r,"getEditedPostAttribute",(function(){return se})),n.d(r,"getAutosaveAttribute",(function(){return ae})),n.d(r,"getEditedPostVisibility",(function(){return ue})),n.d(r,"isCurrentPostPending",(function(){return le})),n.d(r,"isCurrentPostPublished",(function(){return de})),n.d(r,"isCurrentPostScheduled",(function(){return pe})),n.d(r,"isEditedPostPublishable",(function(){return be})),n.d(r,"isEditedPostSaveable",(function(){return fe})),n.d(r,"isEditedPostEmpty",(function(){return he})),n.d(r,"isEditedPostAutosaveable",(function(){return me})),n.d(r,"getAutosave",(function(){return ve})),n.d(r,"hasAutosave",(function(){return Oe})),n.d(r,"isEditedPostBeingScheduled",(function(){return ge})),n.d(r,"isEditedPostDateFloating",(function(){return je})),n.d(r,"isSavingPost",(function(){return ye})),n.d(r,"didPostSaveRequestSucceed",(function(){return _e})),n.d(r,"didPostSaveRequestFail",(function(){return Pe})),n.d(r,"isAutosavingPost",(function(){return ke})),n.d(r,"isPreviewingPost",(function(){return Se})),n.d(r,"getEditedPostPreviewLink",(function(){return Ee})),n.d(r,"getSuggestedPostFormat",(function(){return we})),n.d(r,"getBlocksForSerialization",(function(){return Ce})),n.d(r,"getEditedPostContent",(function(){return Te})),n.d(r,"getStateBeforeOptimisticTransaction",(function(){return xe})),n.d(r,"isPublishingPost",(function(){return Be})),n.d(r,"isPermalinkEditable",(function(){return Ie})),n.d(r,"getPermalink",(function(){return Ae})),n.d(r,"getEditedPostSlug",(function(){return Re})),n.d(r,"getPermalinkParts",(function(){return De})),n.d(r,"inSomeHistory",(function(){return Ne})),n.d(r,"isPostLocked",(function(){return Le})),n.d(r,"isPostSavingLocked",(function(){return Ue})),n.d(r,"isPostAutosavingLocked",(function(){return Fe})),n.d(r,"isPostLockTakeover",(function(){return Me})),n.d(r,"getPostLockUser",(function(){return Ve})),n.d(r,"getActivePostLock",(function(){return ze})),n.d(r,"canUserUseUnfilteredHTML",(function(){return He})),n.d(r,"isPublishSidebarEnabled",(function(){return We})),n.d(r,"getEditorBlocks",(function(){return Ge})),n.d(r,"getEditorSelectionStart",(function(){return Ke})),n.d(r,"getEditorSelectionEnd",(function(){return qe})),n.d(r,"__unstableIsEditorReady",(function(){return Qe})),n.d(r,"getEditorSettings",(function(){return $e})),n.d(r,"getBlockName",(function(){return Xe})),n.d(r,"isBlockValid",(function(){return Je})),n.d(r,"getBlockAttributes",(function(){return Ze})),n.d(r,"getBlock",(function(){return et})),n.d(r,"getBlocks",(function(){return tt})),n.d(r,"__unstableGetBlockWithoutInnerBlocks",(function(){return nt})),n.d(r,"getClientIdsOfDescendants",(function(){return rt})),n.d(r,"getClientIdsWithDescendants",(function(){return ot})),n.d(r,"getGlobalBlockCount",(function(){return it})),n.d(r,"getBlocksByClientId",(function(){return ct})),n.d(r,"getBlockCount",(function(){return st})),n.d(r,"getBlockSelectionStart",(function(){return at})),n.d(r,"getBlockSelectionEnd",(function(){return ut})),n.d(r,"getSelectedBlockCount",(function(){return lt})),n.d(r,"hasSelectedBlock",(function(){return dt})),n.d(r,"getSelectedBlockClientId",(function(){return pt})),n.d(r,"getSelectedBlock",(function(){return bt})),n.d(r,"getBlockRootClientId",(function(){return ft})),n.d(r,"getBlockHierarchyRootClientId",(function(){return ht})),n.d(r,"getAdjacentBlockClientId",(function(){return mt})),n.d(r,"getPreviousBlockClientId",(function(){return vt})),n.d(r,"getNextBlockClientId",(function(){return Ot})),n.d(r,"getSelectedBlocksInitialCaretPosition",(function(){return gt})),n.d(r,"getMultiSelectedBlockClientIds",(function(){return jt})),n.d(r,"getMultiSelectedBlocks",(function(){return yt})),n.d(r,"getFirstMultiSelectedBlockClientId",(function(){return _t})),n.d(r,"getLastMultiSelectedBlockClientId",(function(){return Pt})),n.d(r,"isFirstMultiSelectedBlock",(function(){return kt})),n.d(r,"isBlockMultiSelected",(function(){return St})),n.d(r,"isAncestorMultiSelected",(function(){return Et})),n.d(r,"getMultiSelectedBlocksStartClientId",(function(){return wt})),n.d(r,"getMultiSelectedBlocksEndClientId",(function(){return Ct})),n.d(r,"getBlockOrder",(function(){return Tt})),n.d(r,"getBlockIndex",(function(){return xt})),n.d(r,"isBlockSelected",(function(){return Bt})),n.d(r,"hasSelectedInnerBlock",(function(){return It})),n.d(r,"isBlockWithinSelection",(function(){return At})),n.d(r,"hasMultiSelection",(function(){return Rt})),n.d(r,"isMultiSelecting",(function(){return Dt})),n.d(r,"isSelectionEnabled",(function(){return Nt})),n.d(r,"getBlockMode",(function(){return Lt})),n.d(r,"isTyping",(function(){return Ut})),n.d(r,"isCaretWithinFormattedText",(function(){return Ft})),n.d(r,"getBlockInsertionPoint",(function(){return Mt})),n.d(r,"isBlockInsertionPointVisible",(function(){return Vt})),n.d(r,"isValidTemplate",(function(){return zt})),n.d(r,"getTemplate",(function(){return Ht})),n.d(r,"getTemplateLock",(function(){return Wt})),n.d(r,"canInsertBlockType",(function(){return Gt})),n.d(r,"getInserterItems",(function(){return Kt})),n.d(r,"hasInserterItems",(function(){return qt})),n.d(r,"getBlockListSettings",(function(){return Qt}));var o={};n.r(o),n.d(o,"setupEditor",(function(){return hn})),n.d(o,"__experimentalTearDownEditor",(function(){return mn})),n.d(o,"resetPost",(function(){return vn})),n.d(o,"resetAutosave",(function(){return On})),n.d(o,"__experimentalRequestPostUpdateStart",(function(){return gn})),n.d(o,"__experimentalRequestPostUpdateFinish",(function(){return jn})),n.d(o,"updatePost",(function(){return yn})),n.d(o,"setupEditorState",(function(){return _n})),n.d(o,"editPost",(function(){return Pn})),n.d(o,"__experimentalOptimisticUpdatePost",(function(){return kn})),n.d(o,"savePost",(function(){return Sn})),n.d(o,"refreshPost",(function(){return En})),n.d(o,"trashPost",(function(){return wn})),n.d(o,"autosave",(function(){return Cn})),n.d(o,"redo",(function(){return Tn})),n.d(o,"undo",(function(){return xn})),n.d(o,"createUndoLevel",(function(){return Bn})),n.d(o,"updatePostLock",(function(){return In})),n.d(o,"enablePublishSidebar",(function(){return An})),n.d(o,"disablePublishSidebar",(function(){return Rn})),n.d(o,"lockPostSaving",(function(){return Dn})),n.d(o,"unlockPostSaving",(function(){return Nn})),n.d(o,"lockPostAutosaving",(function(){return Ln})),n.d(o,"unlockPostAutosaving",(function(){return Un})),n.d(o,"resetEditorBlocks",(function(){return Fn})),n.d(o,"updateEditorSettings",(function(){return Mn})),n.d(o,"resetBlocks",(function(){return zn})),n.d(o,"receiveBlocks",(function(){return Hn})),n.d(o,"updateBlock",(function(){return Wn})),n.d(o,"updateBlockAttributes",(function(){return Gn})),n.d(o,"selectBlock",(function(){return Kn})),n.d(o,"startMultiSelect",(function(){return qn})),n.d(o,"stopMultiSelect",(function(){return Qn})),n.d(o,"multiSelect",(function(){return $n})),n.d(o,"clearSelectedBlock",(function(){return Yn})),n.d(o,"toggleSelection",(function(){return Xn})),n.d(o,"replaceBlocks",(function(){return Jn})),n.d(o,"replaceBlock",(function(){return Zn})),n.d(o,"moveBlocksDown",(function(){return er})),n.d(o,"moveBlocksUp",(function(){return tr})),n.d(o,"moveBlockToPosition",(function(){return nr})),n.d(o,"insertBlock",(function(){return rr})),n.d(o,"insertBlocks",(function(){return or})),n.d(o,"showInsertionPoint",(function(){return ir})),n.d(o,"hideInsertionPoint",(function(){return cr})),n.d(o,"setTemplateValidity",(function(){return sr})),n.d(o,"synchronizeTemplate",(function(){return ar})),n.d(o,"mergeBlocks",(function(){return ur})),n.d(o,"removeBlocks",(function(){return lr})),n.d(o,"removeBlock",(function(){return dr})),n.d(o,"toggleBlockMode",(function(){return pr})),n.d(o,"startTyping",(function(){return br})),n.d(o,"stopTyping",(function(){return fr})),n.d(o,"enterFormattedText",(function(){return hr})),n.d(o,"exitFormattedText",(function(){return mr})),n.d(o,"insertDefaultBlock",(function(){return vr})),n.d(o,"updateBlockListSettings",(function(){return Or}));var i=n(6),c=n(11),s=n(83),a=n(53),u=(n(92),n(121)),l=n(25),d=(n(101),n(5)),p=n(4),b=n(32),f=n(40),h=n(292),m=n.n(h),v=n(2);function O(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function g(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SETUP_EDITOR_STATE":case"RESET_POST":case"UPDATE_POST":return t.post.id}return e},postType:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SETUP_EDITOR_STATE":case"RESET_POST":case"UPDATE_POST":return t.post.type}return e},preferences:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:j,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"ENABLE_PUBLISH_SIDEBAR":return P(P({},e),{},{isPublishSidebarEnabled:!0});case"DISABLE_PUBLISH_SIDEBAR":return P(P({},e),{},{isPublishSidebarEnabled:!1})}return e},saving:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"REQUEST_POST_UPDATE_START":case"REQUEST_POST_UPDATE_FINISH":return{pending:"REQUEST_POST_UPDATE_START"===t.type,options:t.options||{}}}return e},postLock:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{isLocked:!1},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"UPDATE_POST_LOCK":return t.lock}return e},template:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{isValid:!0},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SET_TEMPLATE_VALIDITY":return P(P({},e),{},{isValid:t.isValid})}return e},postSavingLock:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"LOCK_POST_SAVING":return P(P({},e),{},Object(d.a)({},t.lockName,!0));case"UNLOCK_POST_SAVING":return Object(v.omit)(e,t.lockName)}return e},isReady:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SETUP_EDITOR_STATE":return!0;case"TEAR_DOWN_EDITOR":return!1}return e},editorSettings:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:y,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"UPDATE_EDITOR_SETTINGS":return P(P({},e),t.settings)}return e},postAutosavingLock:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"LOCK_POST_AUTOSAVING":return P(P({},e),{},Object(d.a)({},t.lockName,!0));case"UNLOCK_POST_AUTOSAVING":return Object(v.omit)(e,t.lockName)}return e}})),E=n(12),w=n(75),C=n(31),T=n(36),x=n.n(T),B=n(0),I=new Set(["meta"]),A="core/editor",R=/%(?:postname|pagename)%/,D=["title","excerpt","content"],N=n(60),L=n.n(N),U=n(105),F=L()((function(e){1===e.length&&Object(c.isUnmodifiedDefaultBlock)(e[0])&&(e=[]);var t=Object(c.serialize)(e);return 1===e.length&&e[0].name===Object(c.getFreeformContentHandlerName)()&&(t=Object(U.removep)(t)),t}),{maxSize:1});function M(e,t){return Object(C.addQueryArgs)(e,t)}function V(e){return e?Object(v.trim)(Object(v.deburr)(e).replace(/[\s\./]+/g,"-").replace(/[^\w-]+/g,"").toLowerCase(),"-"):""}function z(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function H(e){for(var t=1;t1)return!1;var n=t[0].name;if(n!==Object(c.getDefaultBlockName)()&&n!==Object(c.getFreeformContentHandlerName)())return!1}return!Te(e)}var me=Object(p.createRegistrySelector)((function(e){return function(t){if(!fe(t))return!1;if(Fe(t))return!1;var n=ee(t),r=te(t),o=e("core").hasFetchedAutosaves(n,r),i=Object(v.get)(e("core").getCurrentUser(),["id"]),c=e("core").getAutosave(n,r,i);return!!o&&(!c||(!!$(t)||["title","excerpt"].some((function(e){return k(c[e])!==se(t,e)}))))}})),ve=Object(p.createRegistrySelector)((function(e){return function(t){x()("`wp.data.select( 'core/editor' ).getAutosave()`",{alternative:"`wp.data.select( 'core' ).getAutosave( postType, postId, userId )`",plugin:"Gutenberg"});var n=ee(t),r=te(t),o=Object(v.get)(e("core").getCurrentUser(),["id"]),i=e("core").getAutosave(n,r,o);return Object(v.mapValues)(Object(v.pick)(i,D),k)}})),Oe=Object(p.createRegistrySelector)((function(e){return function(t){x()("`wp.data.select( 'core/editor' ).hasAutosave()`",{alternative:"`!! wp.data.select( 'core' ).getAutosave( postType, postId, userId )`",plugin:"Gutenberg"});var n=ee(t),r=te(t),o=Object(v.get)(e("core").getCurrentUser(),["id"]);return!!e("core").getAutosave(n,r,o)}}));function ge(e){var t=se(e,"date"),n=new Date(Number(Object(w.getDate)(t))-6e4);return Object(w.isInTheFuture)(n)}function je(e){var t=se(e,"date"),n=se(e,"modified"),r=se(e,"status");return("draft"===r||"auto-draft"===r||"pending"===r)&&(t===n||null===t)}var ye=Object(p.createRegistrySelector)((function(e){return function(t){var n=ee(t),r=te(t);return e("core").isSavingEntityRecord("postType",n,r)}})),_e=Object(p.createRegistrySelector)((function(e){return function(t){var n=ee(t),r=te(t);return!e("core").getLastEntitySaveError("postType",n,r)}})),Pe=Object(p.createRegistrySelector)((function(e){return function(t){var n=ee(t),r=te(t);return!!e("core").getLastEntitySaveError("postType",n,r)}}));function ke(e){return!!ye(e)&&!!Object(v.get)(e.saving,["options","isAutosave"])}function Se(e){return!!ye(e)&&!!e.saving.options.isPreview}function Ee(e){if(!e.saving.pending&&!ye(e)){var t=ae(e,"preview_link");t||(t=se(e,"link"))&&(t=Object(C.addQueryArgs)(t,{preview:!0}));var n=se(e,"featured_media");return t&&n?Object(C.addQueryArgs)(t,{_thumbnail_id:n}):t}}function we(e){var t,n=Ge(e);if(n.length>2)return null;if(1===n.length&&"core/embed"===(t=n[0].name)){var r,o=null===(r=n[0].attributes)||void 0===r?void 0:r.providerNameSlug;["youtube","vimeo"].includes(o)?t="core/video":["spotify","soundcloud"].includes(o)&&(t="core/audio")}switch(2===n.length&&"core/paragraph"===n[1].name&&(t=n[0].name),t){case"core/image":return"image";case"core/quote":case"core/pullquote":return"quote";case"core/gallery":return"gallery";case"core/video":return"video";case"core/audio":return"audio";default:return null}}function Ce(e){x()("`core/editor` getBlocksForSerialization selector",{plugin:"Gutenberg",alternative:"getEditorBlocks",hint:"Blocks serialization pre-processing occurs at save time"});var t=e.editor.present.blocks.value;return 1===t.length&&Object(c.isUnmodifiedDefaultBlock)(t[0])?[]:t}var Te=Object(p.createRegistrySelector)((function(e){return function(t){var n=te(t),r=ee(t),o=e("core").getEditedEntityRecord("postType",r,n);if(o){if("function"==typeof o.content)return o.content(o);if(o.blocks)return F(o.blocks);if(o.content)return o.content}return""}}));function xe(e,t){var n=Object(v.find)(e.optimist,(function(e){return e.beforeState&&Object(v.get)(e.action,["optimist","id"])===t}));return n?n.beforeState:null}function Be(e){if(!ye(e))return!1;if(!de(e))return!1;var t=xe(e,"post-update");return!!t&&!de(null,t.currentPost)}function Ie(e){var t=se(e,"permalink_template");return R.test(t)}function Ae(e){var t=De(e);if(!t)return null;var n=t.prefix,r=t.postName,o=t.suffix;return Ie(e)?n+r+o:n}function Re(e){return se(e,"slug")||V(se(e,"title"))||te(e)}function De(e){var t=se(e,"permalink_template");if(!t)return null;var n=se(e,"slug")||se(e,"generated_slug"),r=t.split(R),o=Object(E.a)(r,2);return{prefix:o[0],postName:n,suffix:o[1]}}function Ne(e,t){var n=e.optimist;return!!n&&n.some((function(e){var n=e.beforeState;return n&&t(n)}))}function Le(e){return e.postLock.isLocked}function Ue(e){return Object.keys(e.postSavingLock).length>0}function Fe(e){return Object.keys(e.postAutosavingLock).length>0}function Me(e){return e.postLock.isTakeover}function Ve(e){return e.postLock.user}function ze(e){return e.postLock.activePostLock}function He(e){return Object(v.has)(Z(e),["_links","wp:action-unfiltered-html"])}function We(e){return e.preferences.hasOwnProperty("isPublishSidebarEnabled")?e.preferences.isPublishSidebarEnabled:j.isPublishSidebarEnabled}function Ge(e){return se(e,"blocks")||G}function Ke(e){return se(e,"selectionStart")}function qe(e){return se(e,"selectionEnd")}function Qe(e){return e.isReady}function $e(e){return e.editorSettings}function Ye(e){return Object(p.createRegistrySelector)((function(t){return function(n){var r;x()("`wp.data.select( 'core/editor' )."+e+"`",{alternative:"`wp.data.select( 'core/block-editor' )."+e+"`"});for(var o=arguments.length,i=new Array(o>1?o-1:0),c=1;c]*>/.test(r.message)&&(s=[s,r.message].join(" ")),[s,{id:"SAVE_POST_NOTICE_ID"}]}function nn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function rn(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};return{type:"REQUEST_POST_UPDATE_START",options:e}}function jn(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{type:"REQUEST_POST_UPDATE_FINISH",options:e}}function yn(e){return{type:"UPDATE_POST",edits:e}}function _n(e){return{type:"SETUP_EDITOR_STATE",post:e}}function Pn(e,t){var n,r,o;return Jt.a.wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,Object(b.select)(A,"getCurrentPost");case 2:return n=i.sent,r=n.id,o=n.type,i.next=7,Object(b.dispatch)("core","editEntityRecord","postType",o,r,e,t);case 7:case"end":return i.stop()}}),sn)}function kn(e){return rn(rn({},yn(e)),{},{optimist:{id:"post-update"}})}function Sn(){var e,t,n,r,o,i,c,s=arguments;return Jt.a.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return e=s.length>0&&void 0!==s[0]?s[0]:{},a.next=3,Object(b.select)(A,"isEditedPostSaveable");case 3:if(a.sent){a.next=5;break}return a.abrupt("return");case 5:return a.next=7,Object(b.select)(A,"getEditedPostContent");case 7:if(a.t0=a.sent,t={content:a.t0},e.isAutosave){a.next=12;break}return a.next=12,Object(b.dispatch)(A,"editPost",t,{undoIgnore:!0});case 12:return a.next=14,gn(e);case 14:return a.next=16,Object(b.select)(A,"getCurrentPost");case 16:return n=a.sent,a.t1=rn,a.t2=rn,a.t3={id:n.id},a.next=22,Object(b.select)("core","getEntityRecordNonTransientEdits","postType",n.type,n.id);case 22:return a.t4=a.sent,a.t5=(0,a.t2)(a.t3,a.t4),a.t6=t,t=(0,a.t1)(a.t5,a.t6),a.next=28,Object(b.dispatch)("core","saveEntityRecord","postType",n.type,t,e);case 28:return a.next=30,jn(e);case 30:return a.next=32,Object(b.select)("core","getLastEntitySaveError","postType",n.type,n.id);case 32:if(!(r=a.sent)){a.next=40;break}if(!(o=tn({post:n,edits:t,error:r})).length){a.next=38;break}return a.next=38,b.dispatch.apply(void 0,["core/notices","createErrorNotice"].concat(Object(Yt.a)(o)));case 38:a.next=58;break;case 40:return a.next=42,Object(b.select)(A,"getCurrentPost");case 42:return i=a.sent,a.t7=en,a.t8=n,a.t9=i,a.next=48,Object(b.select)("core","getPostType",i.type);case 48:if(a.t10=a.sent,a.t11=e,a.t12={previousPost:a.t8,post:a.t9,postType:a.t10,options:a.t11},!(c=(0,a.t7)(a.t12)).length){a.next=55;break}return a.next=55,b.dispatch.apply(void 0,["core/notices","createSuccessNotice"].concat(Object(Yt.a)(c)));case 55:if(e.isAutosave){a.next=58;break}return a.next=58,Object(b.dispatch)("core/block-editor","__unstableMarkLastChangeAsPersistent");case 58:case"end":return a.stop()}}),an)}function En(){var e,t,n,r;return Jt.a.wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,Object(b.select)(A,"getCurrentPost");case 2:return e=o.sent,o.next=5,Object(b.select)(A,"getCurrentPostType");case 5:return t=o.sent,o.next=8,Object(b.select)("core","getPostType",t);case 8:return n=o.sent,o.next=11,Object(b.apiFetch)({path:"/wp/v2/".concat(n.rest_base,"/").concat(e.id)+"?context=edit&_timestamp=".concat(Date.now())});case 11:return r=o.sent,o.next=14,Object(b.dispatch)(A,"resetPost",r);case 14:case"end":return o.stop()}}),un)}function wn(){var e,t,n;return Jt.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,Object(b.select)(A,"getCurrentPostType");case 2:return e=r.sent,r.next=5,Object(b.select)("core","getPostType",e);case 5:return t=r.sent,r.next=8,Object(b.dispatch)("core/notices","removeNotice","TRASH_POST_NOTICE_ID");case 8:return r.prev=8,r.next=11,Object(b.select)(A,"getCurrentPost");case 11:return n=r.sent,r.next=14,Object(b.apiFetch)({path:"/wp/v2/".concat(t.rest_base,"/").concat(n.id),method:"DELETE"});case 14:return r.next=16,Object(b.dispatch)(A,"savePost");case 16:r.next=22;break;case 18:return r.prev=18,r.t0=r.catch(8),r.next=22,b.dispatch.apply(void 0,["core/notices","createErrorNotice"].concat(Object(Yt.a)([(o={error:r.t0}).error.message&&"unknown_error"!==o.error.code?o.error.message:Object(Zt.__)("Trashing failed"),{id:"TRASH_POST_NOTICE_ID"}])));case 22:case"end":return r.stop()}var o}),ln,null,[[8,18]])}function Cn(){var e,t,n,r,o,i,c,s,a,u=arguments;return Jt.a.wrap((function(l){for(;;)switch(l.prev=l.next){case 0:if(e=u.length>0&&void 0!==u[0]?u[0]:{},t=e.local,n=void 0!==t&&t,r=Object($t.a)(e,["local"]),!n){l.next=21;break}return l.next=4,Object(b.select)(A,"getCurrentPost");case 4:return o=l.sent,l.next=7,Object(b.select)(A,"isEditedPostNew");case 7:return i=l.sent,l.next=10,Object(b.select)(A,"getEditedPostAttribute","title");case 10:return c=l.sent,l.next=13,Object(b.select)(A,"getEditedPostAttribute","content");case 13:return s=l.sent,l.next=16,Object(b.select)(A,"getEditedPostAttribute","excerpt");case 16:return a=l.sent,l.next=19,{type:"LOCAL_AUTOSAVE_SET",postId:o.id,isPostNew:i,title:c,content:s,excerpt:a};case 19:l.next=23;break;case 21:return l.next=23,Object(b.dispatch)(A,"savePost",rn({isAutosave:!0},r));case 23:case"end":return l.stop()}}),dn)}function Tn(){return Jt.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(b.dispatch)("core","redo");case 2:case"end":return e.stop()}}),pn)}function xn(){return Jt.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(b.dispatch)("core","undo");case 2:case"end":return e.stop()}}),bn)}function Bn(){return{type:"CREATE_UNDO_LEVEL"}}function In(e){return{type:"UPDATE_POST_LOCK",lock:e}}function An(){return{type:"ENABLE_PUBLISH_SIDEBAR"}}function Rn(){return{type:"DISABLE_PUBLISH_SIDEBAR"}}function Dn(e){return{type:"LOCK_POST_SAVING",lockName:e}}function Nn(e){return{type:"UNLOCK_POST_SAVING",lockName:e}}function Ln(e){return{type:"LOCK_POST_AUTOSAVING",lockName:e}}function Un(e){return{type:"UNLOCK_POST_AUTOSAVING",lockName:e}}function Fn(e){var t,n,r,o,i,c,s,a,u=arguments;return Jt.a.wrap((function(l){for(;;)switch(l.prev=l.next){case 0:if(t=u.length>1&&void 0!==u[1]?u[1]:{},n=t.__unstableShouldCreateUndoLevel,r=t.selectionStart,o=t.selectionEnd,i={blocks:e,selectionStart:r,selectionEnd:o},!1===n){l.next=19;break}return l.next=6,Object(b.select)(A,"getCurrentPost");case 6:return c=l.sent,s=c.id,a=c.type,l.next=11,Object(b.syncSelect)("core","getEditedEntityRecord","postType",a,s);case 11:if(l.t0=l.sent.blocks,l.t1=i.blocks,!(l.t0===l.t1)){l.next=18;break}return l.next=17,Object(b.dispatch)("core","__unstableCreateUndoLevel","postType",a,s);case 17:return l.abrupt("return",l.sent);case 18:i.content=function(e){var t=e.blocks;return F(void 0===t?[]:t)};case 19:return l.delegateYield(Pn(i),"t2",20);case 20:case"end":return l.stop()}}),fn)}function Mn(e){return{type:"UPDATE_EDITOR_SETTINGS",settings:e}}var Vn=function(e){return Jt.a.mark((function t(){var n,r,o,i=arguments;return Jt.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:for(x()("`wp.data.dispatch( 'core/editor' )."+e+"`",{alternative:"`wp.data.dispatch( 'core/block-editor' )."+e+"`"}),n=i.length,r=new Array(n),o=0;o0&&void 0!==arguments[0]?arguments[0]:[];return e.push(Object(v.clone)(Ar)),e}));var Rr=n(21),Dr=n(22),Nr=n(23),Lr=n(24),Ur=n(19);function Fr(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Ur.a)(e);if(t){var o=Object(Ur.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(Lr.a)(this,n)}}var Mr=function(e){Object(Nr.a)(n,e);var t=Fr(n);function n(e){var r;return Object(Rr.a)(this,n),(r=t.call(this,e)).needsAutosave=!(!e.isDirty||!e.isAutosaveable),r}return Object(Dr.a)(n,[{key:"componentDidMount",value:function(){this.props.disableIntervalChecks||this.setAutosaveTimer()}},{key:"componentDidUpdate",value:function(e){this.props.disableIntervalChecks&&this.props.editsReference!==e.editsReference?this.props.autosave():(this.props.isDirty||!e.isDirty)&&(!this.props.isAutosaving||e.isAutosaving)?this.props.editsReference!==e.editsReference&&(this.needsAutosave=!0):this.needsAutosave=!1}},{key:"componentWillUnmount",value:function(){clearTimeout(this.timerId)}},{key:"setAutosaveTimer",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1e3*this.props.interval;this.timerId=setTimeout((function(){e.autosaveTimerHandler()}),t)}},{key:"autosaveTimerHandler",value:function(){this.props.isAutosaveable?(this.needsAutosave&&(this.needsAutosave=!1,this.props.autosave()),this.setAutosaveTimer()):this.setAutosaveTimer(1e3)}},{key:"render",value:function(){return null}}]),n}(B.Component),Vr=Object(Er.compose)([Object(p.withSelect)((function(e,t){var n=e("core").getReferenceByDistinctEdits,r=e("core/editor"),o=r.isEditedPostDirty,i=r.isEditedPostAutosaveable,c=r.isAutosavingPost,s=r.getEditorSettings,a=t.interval,u=void 0===a?s().autosaveInterval:a;return{editsReference:n(),isDirty:o(),isAutosaveable:i(),isAutosaving:c(),interval:u}})),Object(p.withDispatch)((function(e,t){return{autosave:function(){var n=t.autosave,r=void 0===n?e("core/editor").autosave:n;r()}}}))])(Mr),zr=n(9),Hr=n.n(zr),Wr=function(e){var t=e.children,n=e.isValid,r=e.level,o=e.href,i=e.onSelect;return Object(B.createElement)("li",{className:Hr()("document-outline__item","is-".concat(r.toLowerCase()),{"is-invalid":!n})},Object(B.createElement)("a",{href:o,className:"document-outline__button",onClick:i},Object(B.createElement)("span",{className:"document-outline__emdash","aria-hidden":"true"}),Object(B.createElement)("strong",{className:"document-outline__level"},r),Object(B.createElement)("span",{className:"document-outline__item-content"},t)))};function Gr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Kr(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:[];return Object(v.flatMap)(t,(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return"core/heading"===t.name?Kr(Kr({},t),{},{level:t.attributes.level,isEmpty:Xr(t)}):e(t.innerBlocks)}))}(n);if(s.length<1)return null;var a=1,u=document.querySelector(".editor-post-title__input"),d=i&&r&&u,p=Object(v.countBy)(s,"level")[1]>1;return Object(B.createElement)("div",{className:"document-outline"},Object(B.createElement)("ul",null,d&&Object(B.createElement)(Wr,{level:Object(Zt.__)("Title"),isValid:!0,onSelect:o,href:"#".concat(u.id),isDisabled:c},r),s.map((function(e,t){var n=e.level>a+1,r=!(e.isEmpty||n||!e.level||1===e.level&&(p||d));return a=e.level,Object(B.createElement)(Wr,{key:t,level:"H".concat(e.level),isValid:r,isDisabled:c,href:"#block-".concat(e.clientId),onSelect:o},e.isEmpty?qr:Object(l.getTextContent)(Object(l.create)({html:e.attributes.content})),n&&Qr,1===e.level&&p&&Yr,d&&1===e.level&&!p&&$r)}))))}));var Zr=Object(p.withSelect)((function(e){return{blocks:e("core/block-editor").getBlocks()}}))((function(e){var t=e.blocks,n=e.children;return Object(v.filter)(t,(function(e){return"core/heading"===e.name})).length<1?null:n}));var eo=function(e){var t=e.resetBlocksOnSave,n=Object(p.useDispatch)("core/editor"),r=n.resetEditorBlocks,o=n.savePost,i=Object(p.useSelect)((function(e){var t=e("core/editor");return{isEditedPostDirty:t.isEditedPostDirty,getPostEdits:t.getPostEdits}}),[]),s=i.isEditedPostDirty,u=i.getPostEdits;return Object(a.useShortcut)("core/editor/save",(function(e){if(e.preventDefault(),s()){if(t){var n=u();if(n.content&&"string"==typeof n.content){var i=Object(c.parse)(n.content);r(i)}}o()}}),{bindGlobal:!0}),null};function to(){var e=Object(p.useDispatch)("core/editor"),t=e.redo,n=e.undo;return Object(a.useShortcut)("core/editor/undo",(function(e){n(),e.preventDefault()}),{bindGlobal:!0}),Object(a.useShortcut)("core/editor/redo",(function(e){t(),e.preventDefault()}),{bindGlobal:!0}),Object(B.createElement)(B.Fragment,null,Object(B.createElement)(i.BlockEditorKeyboardShortcuts,null),Object(B.createElement)(eo,null))}var no=to;function ro(){return x()("EditorGlobalKeyboardShortcuts",{alternative:"VisualEditorGlobalKeyboardShortcuts",plugin:"Gutenberg"}),Object(B.createElement)(to,null)}function oo(){return Object(B.createElement)(eo,{resetBlocksOnSave:!0})}var io=function(){var e=Object(p.useDispatch)("core/keyboard-shortcuts").registerShortcut;return Object(B.useEffect)((function(){e({name:"core/editor/save",category:"global",description:Object(Zt.__)("Save your changes."),keyCombination:{modifier:"primary",character:"s"}}),e({name:"core/editor/undo",category:"global",description:Object(Zt.__)("Undo your last changes."),keyCombination:{modifier:"primary",character:"z"}}),e({name:"core/editor/redo",category:"global",description:Object(Zt.__)("Redo your last undo."),keyCombination:{modifier:"primaryShift",character:"z"}})}),[e]),Object(B.createElement)(i.BlockEditorKeyboardShortcuts.Register,null)},co=n(3),so=n(18),ao=n(7),uo=Object(B.createElement)(ao.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(B.createElement)(ao.Path,{d:"M15.6 6.5l-1.1 1 2.9 3.3H8c-.9 0-1.7.3-2.3.9-1.4 1.5-1.4 4.2-1.4 5.6v.2h1.5v-.3c0-1.1 0-3.5 1-4.5.3-.3.7-.5 1.3-.5h9.2L14.5 15l1.1 1.1 4.6-4.6-4.6-5z"}));var lo=Object(B.forwardRef)((function(e,t){var n=Object(p.useSelect)((function(e){return e("core/editor").hasEditorRedo()}),[]),r=Object(p.useDispatch)("core/editor").redo;return Object(B.createElement)(co.Button,Object(Sr.a)({},e,{ref:t,icon:uo,label:Object(Zt.__)("Redo"),shortcut:so.displayShortcut.primaryShift("z"),"aria-disabled":!n,onClick:n?r:void 0,className:"editor-history__redo"}))})),po=Object(B.createElement)(ao.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(B.createElement)(ao.Path,{d:"M18.3 11.7c-.6-.6-1.4-.9-2.3-.9H6.7l2.9-3.3-1.1-1-4.5 5L8.5 16l1-1-2.7-2.7H16c.5 0 .9.2 1.3.5 1 1 1 3.4 1 4.5v.3h1.5v-.2c0-1.5 0-4.3-1.5-5.7z"}));var bo=Object(B.forwardRef)((function(e,t){var n=Object(p.useSelect)((function(e){return e("core/editor").hasEditorUndo()}),[]),r=Object(p.useDispatch)("core/editor").undo;return Object(B.createElement)(co.Button,Object(Sr.a)({},e,{ref:t,icon:po,label:Object(Zt.__)("Undo"),shortcut:so.displayShortcut.primary("z"),"aria-disabled":!n,onClick:n?r:void 0,className:"editor-history__undo"}))}));var fo=Object(Er.compose)([Object(p.withSelect)((function(e){return{isValid:e("core/block-editor").isValidTemplate()}})),Object(p.withDispatch)((function(e){var t=e("core/block-editor"),n=t.setTemplateValidity;return{resetTemplateValidity:function(){return n(!0)},synchronizeTemplate:t.synchronizeTemplate}}))])((function(e){var t=e.isValid,n=Object($t.a)(e,["isValid"]);return t?null:Object(B.createElement)(co.Notice,{className:"editor-template-validation-notice",isDismissible:!1,status:"warning",actions:[{label:Object(Zt.__)("Keep it as is"),onClick:n.resetTemplateValidity},{label:Object(Zt.__)("Reset the template"),onClick:function(){window.confirm(Object(Zt.__)("Resetting the template may result in loss of content, do you want to continue?"))&&n.synchronizeTemplate()},isPrimary:!0}]},Object(Zt.__)("The content of your post doesn’t match the template assigned to your post type."))}));var ho=Object(Er.compose)([Object(p.withSelect)((function(e){return{notices:e("core/notices").getNotices()}})),Object(p.withDispatch)((function(e){return{onRemove:e("core/notices").removeNotice}}))])((function(e){var t=e.notices,n=e.onRemove,r=Object(v.filter)(t,{isDismissible:!0,type:"default"}),o=Object(v.filter)(t,{isDismissible:!1,type:"default"}),i=Object(v.filter)(t,{type:"snackbar"});return Object(B.createElement)(B.Fragment,null,Object(B.createElement)(co.NoticeList,{notices:o,className:"components-editor-notices__pinned"}),Object(B.createElement)(co.NoticeList,{notices:r,className:"components-editor-notices__dismissible",onRemove:n},Object(B.createElement)(fo,null)),Object(B.createElement)(co.SnackbarList,{notices:i,className:"components-editor-notices__snackbar",onRemove:n}))})),mo=n(160),vo=n(318),Oo=Object(B.createElement)(ao.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(B.createElement)(ao.Path,{d:"M7 5.5h10a.5.5 0 01.5.5v12a.5.5 0 01-.5.5H7a.5.5 0 01-.5-.5V6a.5.5 0 01.5-.5zM17 4H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V6a2 2 0 00-2-2zm-1 3.75H8v1.5h8v-1.5zM8 11h8v1.5H8V11zm6 3.25H8v1.5h6v-1.5z"}));function go(e){var t=e.record,n=e.checked,r=e.onChange,o=e.closePanel,i=t.name,c=t.kind,s=t.title,a=t.key,u=Object(p.useSelect)((function(e){var t,n=e("core").getEditedEntityRecord(c,i,a).blocks,r=void 0===n?[]:n,o=e("core/block-editor").getBlockParents(null===(t=r[0])||void 0===t?void 0:t.clientId);return o[o.length-1]}),[]),l=Object(p.useSelect)((function(e){return e("core/block-editor").getSelectedBlockClientId()===u}),[u]),d=l?Object(Zt.__)("Selected"):Object(Zt.__)("Select"),b=Object(p.useDispatch)("core/block-editor").selectBlock,f=Object(B.useCallback)((function(){return b(u)}),[u]),h=Object(B.useCallback)((function(){b(u),o()}),[u]);return Object(B.createElement)(co.PanelRow,null,Object(B.createElement)(co.CheckboxControl,{label:Object(B.createElement)("strong",null,s||Object(Zt.__)("Untitled")),checked:n,onChange:r}),u?Object(B.createElement)(B.Fragment,null,Object(B.createElement)(co.Button,{onClick:f,className:"entities-saved-states__find-entity",disabled:l},d),Object(B.createElement)(co.Button,{onClick:h,className:"entities-saved-states__find-entity-small",disabled:l},d)):null)}var jo={site:vo.a,page:Oo};function yo(e){var t=e.list,n=e.unselectedEntities,r=e.setUnselectedEntities,o=e.closePanel,i=t[0],c=Object(p.useSelect)((function(e){return e("core").getEntity(i.kind,i.name)}),[i.kind,i.name]),s=i.name,a=jo[s];return Object(B.createElement)(co.PanelBody,{title:c.label,initialOpen:!0,icon:a},t.map((function(e){return Object(B.createElement)(go,{key:e.key||"site",record:e,checked:!Object(v.some)(n,(function(t){return t.kind===e.kind&&t.name===e.name&&t.key===e.key})),onChange:function(t){return r(e,t)},closePanel:o})})))}var _o={wp_template_part:function(e){return Object(Zt._n)("template part","template parts",e)},wp_template:function(e){return Object(Zt._n)("template","templates",e)},post:function(e){return Object(Zt._n)("post","posts",e)},page:function(e){return Object(Zt._n)("page","pages",e)},site:function(e){return Object(Zt._n)("site","sites",e)}},Po={0:Object(Zt.__)("There are no changes."),1:Object(Zt.__)("Changes have been made to your %s."),2:Object(Zt.__)("Changes have been made to your %1$s and %2$s."),3:Object(Zt.__)("Changes have been made to your %1$s, %2$s, and %3$s."),4:Object(Zt.__)("Changes have been made to your %1$s, %2$s, %3$s, and %4$s."),5:Object(Zt.__)("Changes have been made to your %1$s, %2$s, %3$s, %4$s, and %5$s.")};function ko(e){var t=e.isOpen,n=e.close,r=Object(p.useSelect)((function(e){return{dirtyEntityRecords:e("core").__experimentalGetDirtyEntityRecords()}}),[]).dirtyEntityRecords,o=Object(p.useDispatch)("core").saveEditedEntityRecord,i=Object.values(Object(v.groupBy)(r,"name")),c=[];i.forEach((function(e){_o[e[0].name]&&c.push(_o[e[0].name](e.length))}));var s=Po[c.length]||Object(Zt.__)("Changes have been made to multiple entity types."),a=Zt.sprintf.apply(void 0,[s].concat(c)),u=Object(B.useState)([]),l=Object(E.a)(u,2),d=l[0],b=l[1],f=function(e,t){var n=e.kind,r=e.name,o=e.key;b(t?d.filter((function(e){return e.kind!==n||e.name!==r||e.key!==o})):[].concat(Object(Yt.a)(d),[{kind:n,name:r,key:o}]))},h=Object(B.useState)(!1),m=Object(E.a)(h,2),O=m[0],g=m[1],j=Object(B.useCallback)((function(){return n()}),[n]);return t?Object(B.createElement)("div",{className:"entities-saved-states__panel"},Object(B.createElement)("div",{className:"entities-saved-states__panel-header"},Object(B.createElement)(co.Button,{isPrimary:!0,disabled:r.length-d.length==0,onClick:function(){var e=r.filter((function(e){var t=e.kind,n=e.name,r=e.key;return!Object(v.some)(d,(function(e){return e.kind===t&&e.name===n&&e.key===r}))}));n(e),e.forEach((function(e){var t=e.kind,n=e.name,r=e.key;o(t,n,r)}))},className:"editor-entities-saved-states__save-button"},Object(Zt.__)("Save")),Object(B.createElement)(co.Button,{onClick:j,icon:mo.a,label:Object(Zt.__)("Close panel")})),Object(B.createElement)("div",{className:"entities-saved-states__text-prompt"},Object(B.createElement)("strong",null,Object(Zt.__)("Are you ready to save?")),Object(B.createElement)("p",null,a),Object(B.createElement)("p",null,Object(B.createElement)(co.Button,{onClick:function(){return g((function(e){return!e}))},isLink:!0,className:"entities-saved-states__review-changes-button"},O?Object(Zt.__)("Hide changes."):Object(Zt.__)("Review changes.")))),O&&i.map((function(e){return Object(B.createElement)(yo,{key:e[0].name,list:e,closePanel:j,unselectedEntities:d,setUnselectedEntities:f})}))):null}var So=n(16);function Eo(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Ur.a)(e);if(t){var o=Object(Ur.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(Lr.a)(this,n)}}var wo=function(e){Object(Nr.a)(n,e);var t=Eo(n);function n(){var e;return Object(Rr.a)(this,n),(e=t.apply(this,arguments)).reboot=e.reboot.bind(Object(So.a)(e)),e.getContent=e.getContent.bind(Object(So.a)(e)),e.state={error:null},e}return Object(Dr.a)(n,[{key:"componentDidCatch",value:function(e){this.setState({error:e})}},{key:"reboot",value:function(){this.props.onError()}},{key:"getContent",value:function(){try{return Object(p.select)("core/editor").getEditedPostContent()}catch(e){}}},{key:"render",value:function(){var e=this.state.error;return e?Object(B.createElement)(i.Warning,{className:"editor-error-boundary",actions:[Object(B.createElement)(co.Button,{key:"recovery",onClick:this.reboot,isSecondary:!0},Object(Zt.__)("Attempt Recovery")),Object(B.createElement)(co.ClipboardButton,{key:"copy-post",text:this.getContent,isSecondary:!0},Object(Zt.__)("Copy Post Text")),Object(B.createElement)(co.ClipboardButton,{key:"copy-error",text:e.stack,isSecondary:!0},Object(Zt.__)("Copy Error"))]},Object(Zt.__)("The editor has encountered an unexpected error.")):this.props.children}}]),n}(B.Component),Co=window.requestIdleCallback?window.requestIdleCallback:window.requestAnimationFrame,To=Object(v.once)((function(){try{return window.sessionStorage.setItem("__wpEditorTestSessionStorage",""),window.sessionStorage.removeItem("__wpEditorTestSessionStorage"),!0}catch(e){return!1}}));function xo(){var e=Object(p.useSelect)((function(e){return{postId:e("core/editor").getCurrentPostId(),isEditedPostNew:e("core/editor").isEditedPostNew(),getEditedPostAttribute:e("core/editor").getEditedPostAttribute,hasRemoteAutosave:!!e("core/editor").getEditorSettings().autosave}}),[]),t=e.postId,n=e.isEditedPostNew,r=e.getEditedPostAttribute,o=e.hasRemoteAutosave,i=Object(p.useDispatch)("core/notices"),s=i.createWarningNotice,a=i.removeNotice,u=Object(p.useDispatch)("core/editor"),l=u.editPost,d=u.resetEditorBlocks;Object(B.useEffect)((function(){var e=function(e,t){return window.sessionStorage.getItem(gr(e,t))}(t,n);if(e){try{e=JSON.parse(e)}catch(e){return}var i=e,u={title:i.post_title,content:i.content,excerpt:i.excerpt};if(Object.keys(u).some((function(e){return u[e]!==r(e)}))){if(!o){var p=Object(v.uniqueId)("wpEditorAutosaveRestore");s(Object(Zt.__)("The backup of this post in your browser is different from the version below."),{id:p,actions:[{label:Object(Zt.__)("Restore the backup"),onClick:function(){l(Object(v.omit)(u,["content"])),d(Object(c.parse)(u.content)),a(p)}}]})}}else jr(t,n)}}),[n,t])}var Bo=Object(Er.ifCondition)(To)((function(){var e=Object(p.useDispatch)("core/editor").autosave,t=Object(B.useCallback)((function(){Co((function(){return e({local:!0})}))}),[]);xo(),function(){var e=Object(p.useSelect)((function(e){return{postId:e("core/editor").getCurrentPostId(),isEditedPostNew:e("core/editor").isEditedPostNew(),isDirty:e("core/editor").isEditedPostDirty(),isAutosaving:e("core/editor").isAutosavingPost(),didError:e("core/editor").didPostSaveRequestFail()}}),[]),t=e.postId,n=e.isEditedPostNew,r=e.isDirty,o=e.isAutosaving,i=e.didError,c=Object(B.useRef)(r),s=Object(B.useRef)(o);Object(B.useEffect)((function(){!i&&(s.current&&!o||c.current&&!r)&&jr(t,n),c.current=r,s.current=o}),[r,o,i]);var a=Object(Er.usePrevious)(n),u=Object(Er.usePrevious)(t);Object(B.useEffect)((function(){u===t&&a&&!n&&jr(t,!0)}),[n,t])}();var n=Object(p.useSelect)((function(e){return{localAutosaveInterval:e("core/editor").getEditorSettings().__experimentalLocalAutosaveInterval}}),[]).localAutosaveInterval;return Object(B.createElement)(Vr,{interval:n,autosave:t})}));var Io=Object(p.withSelect)((function(e){var t=e("core/editor"),n=t.getEditedPostAttribute,r=t.getEditorSettings,o=e("core").getPostType,i=r().availableTemplates;return{postType:o(n("type")),availableTemplates:i}}))((function(e){var t=e.availableTemplates,n=e.postType,r=e.children;return!Object(v.get)(n,["supports","page-attributes"],!1)&&Object(v.isEmpty)(t)?null:r}));var Ao=Object(p.withSelect)((function(e){var t=e("core/editor").getEditedPostAttribute;return{postType:(0,e("core").getPostType)(t("type"))}}))((function(e){var t=e.postType,n=e.children,r=e.supportKeys,o=!0;return t&&(o=Object(v.some)(Object(v.castArray)(r),(function(e){return!!t.supports[e]}))),o?n:null})),Ro=Object(Er.withState)({orderInput:null})((function(e){var t=e.onUpdateOrder,n=e.order,r=void 0===n?0:n,o=e.orderInput,i=e.setState,c=null===o?r:o;return Object(B.createElement)(co.TextControl,{className:"editor-page-attributes__order",type:"number",label:Object(Zt.__)("Order"),value:c,onChange:function(e){i({orderInput:e});var n=Number(e);Number.isInteger(n)&&""!==Object(v.invoke)(e,["trim"])&&t(Number(e))},size:6,onBlur:function(){i({orderInput:null})}})}));var Do=Object(Er.compose)([Object(p.withSelect)((function(e){return{order:e("core/editor").getEditedPostAttribute("menu_order")}})),Object(p.withDispatch)((function(e){return{onUpdateOrder:function(t){e("core/editor").editPost({menu_order:t})}}}))])((function(e){return Object(B.createElement)(Ao,{supportKeys:"page-attributes"},Object(B.createElement)(Ro,e))}));function No(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Lo(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:0;return Object(v.flatMap)(t,(function(t){return[{value:t.id,label:Object(v.repeat)("— ",n)+Object(v.unescape)(t.name)}].concat(Object(Yt.a)(e(t.children||[],n+1)))}))}(e),n=Object(v.find)(t,(function(e){return e.value===a}));return s&&!n&&t.unshift({value:a,label:Fo(s)}),t}),[f]);return d&&b?Object(B.createElement)(co.ComboboxControl,{className:"editor-page-attributes__parent",label:b,value:a,options:h,onFilterValueChange:Object(v.debounce)((function(e){o(e)}),300),onChange:function(t){e({parent:t})}}):null};var Vo=Object(Er.compose)(Object(p.withSelect)((function(e){var t=e("core/editor"),n=t.getEditedPostAttribute,r=(0,t.getEditorSettings)().availableTemplates;return{selectedTemplate:n("template"),availableTemplates:r}})),Object(p.withDispatch)((function(e){return{onUpdate:function(t){e("core/editor").editPost({template:t||""})}}})))((function(e){var t=e.availableTemplates,n=e.selectedTemplate,r=e.onUpdate;return Object(v.isEmpty)(t)?null:Object(B.createElement)(co.SelectControl,{label:Object(Zt.__)("Template:"),value:n,onChange:r,className:"editor-page-attributes__template",options:Object(v.map)(t,(function(e,t){return{value:t,label:e}}))})}));var zo=Object(Er.compose)([Object(p.withSelect)((function(e){var t=e("core/editor").getCurrentPost();return{hasAssignAuthorAction:Object(v.get)(t,["_links","wp:action-assign-author"],!1),postType:e("core/editor").getCurrentPostType(),authors:e("core").getUsers({who:"authors"})}})),Er.withInstanceId])((function(e){var t=e.hasAssignAuthorAction,n=e.authors,r=e.children;return!t||!n||n.length<2?null:Object(B.createElement)(Ao,{supportKeys:"author"},r)}));function Ho(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Wo(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:"";r({status:e,password:t})}}})),Er.withInstanceId])(Ei);var Ci=Object(p.withSelect)((function(e){return{visibility:e("core/editor").getEditedPostVisibility()}}))((function(e){var t=e.visibility;return Object(v.find)(ki,{value:t}).label}));var Ti=Object(Er.compose)([Object(p.withSelect)((function(e){return{date:e("core/editor").getEditedPostAttribute("date")}})),Object(p.withDispatch)((function(e){return{onUpdateDate:function(t){e("core/editor").editPost({date:t})}}}))])((function(e){var t=e.date,n=e.onUpdateDate,r=Object(w.__experimentalGetSettings)(),o=/a(?!\\)/i.test(r.formats.time.toLowerCase().replace(/\\\\/g,"").split("").reverse().join(""));return Object(B.createElement)(co.DateTimePicker,{key:"date-time-picker",currentDate:t,onChange:function(e){n(e),document.activeElement.blur()},is12Hour:o})}));var xi=Object(p.withSelect)((function(e){return{date:e("core/editor").getEditedPostAttribute("date"),isFloating:e("core/editor").isEditedPostDateFloating()}}))((function(e){var t=e.date,n=e.isFloating,r=Object(w.__experimentalGetSettings)();return t&&!n?Object(w.format)("".concat(r.formats.date," ").concat(r.formats.time),t):Object(Zt.__)("Immediately")}));function Bi(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Ur.a)(e);if(t){var o=Object(Ur.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(Lr.a)(this,n)}}function Ii(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ai(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},n=this.props.taxonomy,r=Ai(Ai({},Ri),t),o=Ir()({path:Object(C.addQueryArgs)("/wp/v2/".concat(n.rest_base),r)});return o.then(Ui).then((function(t){e.setState((function(e){return{availableTerms:e.availableTerms.concat(t.filter((function(t){return!Object(v.find)(e.availableTerms,(function(e){return e.id===t.id}))})))}})),e.updateSelectedTerms(e.props.terms)})),o}},{key:"updateSelectedTerms",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=t.reduce((function(t,n){var r=Object(v.find)(e.state.availableTerms,(function(e){return e.id===n}));return r&&t.push(r.name),t}),[]);this.setState({selectedTerms:n})}},{key:"findOrCreateTerm",value:function(e){var t=this,n=this.props.taxonomy,r=Object(v.escape)(e);return Ir()({path:"/wp/v2/".concat(n.rest_base),method:"POST",data:{name:r}}).catch((function(o){return"term_exists"===o.code?(t.addRequest=Ir()({path:Object(C.addQueryArgs)("/wp/v2/".concat(n.rest_base),Ai(Ai({},Ri),{},{search:r}))}).then(Ui),t.addRequest.then((function(t){return Object(v.find)(t,(function(t){return Ni(t.name,e)}))}))):Promise.reject(o)})).then(Li)}},{key:"onChange",value:function(e){var t=this,n=Object(v.uniqBy)(e,(function(e){return e.toLowerCase()}));this.setState({selectedTerms:n});var r=n.filter((function(e){return!Object(v.find)(t.state.availableTerms,(function(t){return Ni(t.name,e)}))})),o=function(e,t){return e.map((function(e){return Object(v.find)(t,(function(t){return Ni(t.name,e)})).id}))};if(0===r.length)return this.props.onUpdateTerms(o(n,this.state.availableTerms),this.props.taxonomy.rest_base);Promise.all(r.map(this.findOrCreateTerm)).then((function(e){var r=t.state.availableTerms.concat(e);return t.setState({availableTerms:r}),t.props.onUpdateTerms(o(n,r),t.props.taxonomy.rest_base)}))}},{key:"searchTerms",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";Object(v.invoke)(this.searchRequest,["abort"]),e.length>=3&&(this.searchRequest=this.fetchTerms({search:e}))}},{key:"render",value:function(){var e=this.props,t=e.slug,n=e.taxonomy;if(!e.hasAssignAction)return null;var r=this.state,o=r.loading,i=r.availableTerms,c=r.selectedTerms,s=i.map((function(e){return e.name})),a=Object(v.get)(n,["labels","add_new_item"],"post_tag"===t?Object(Zt.__)("Add new tag"):Object(Zt.__)("Add new Term")),u=Object(v.get)(n,["labels","singular_name"],"post_tag"===t?Object(Zt.__)("Tag"):Object(Zt.__)("Term")),l=Object(Zt.sprintf)(Object(Zt._x)("%s added","term"),u),d=Object(Zt.sprintf)(Object(Zt._x)("%s removed","term"),u),p=Object(Zt.sprintf)(Object(Zt._x)("Remove %s","term"),u);return Object(B.createElement)(co.FormTokenField,{value:c,suggestions:s,onChange:this.onChange,onInputChange:this.searchTerms,maxSuggestions:20,disabled:o,label:a,messages:{added:l,removed:d,remove:p}})}}]),n}(B.Component),Mi=Object(Er.compose)(Object(p.withSelect)((function(e,t){var n=t.slug,r=e("core/editor").getCurrentPost,o=(0,e("core").getTaxonomy)(n);return{hasCreateAction:!!o&&Object(v.get)(r(),["_links","wp:action-create-"+o.rest_base],!1),hasAssignAction:!!o&&Object(v.get)(r(),["_links","wp:action-assign-"+o.rest_base],!1),terms:o?e("core/editor").getEditedPostAttribute(o.rest_base):[],taxonomy:o}})),Object(p.withDispatch)((function(e){return{onUpdateTerms:function(t,n){e("core/editor").editPost(Object(d.a)({},n,t))}}})),Object(co.withFilters)("editor.PostTaxonomyType"))(Fi);function Vi(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Ur.a)(e);if(t){var o=Object(Ur.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(Lr.a)(this,n)}}var zi=function(){var e=[Object(Zt.__)("Suggestion:"),Object(B.createElement)("span",{className:"editor-post-publish-panel__link",key:"label"},Object(Zt.__)("Add tags"))];return Object(B.createElement)(co.PanelBody,{initialOpen:!1,title:e},Object(B.createElement)("p",null,Object(Zt.__)("Tags help users and search engines navigate your site and find your content. Add a few keywords to describe your post.")),Object(B.createElement)(Mi,{slug:"post_tag"}))},Hi=function(e){Object(Nr.a)(n,e);var t=Vi(n);function n(e){var r;return Object(Rr.a)(this,n),(r=t.call(this,e)).state={hadTagsWhenOpeningThePanel:e.hasTags},r}return Object(Dr.a)(n,[{key:"render",value:function(){return this.state.hadTagsWhenOpeningThePanel?null:Object(B.createElement)(zi,null)}}]),n}(B.Component),Wi=Object(Er.compose)(Object(p.withSelect)((function(e){var t=e("core/editor").getCurrentPostType(),n=e("core").getTaxonomy("post_tag"),r=n&&e("core/editor").getEditedPostAttribute(n.rest_base);return{areTagsFetched:void 0!==n,isPostTypeSupported:n&&Object(v.some)(n.types,(function(e){return e===t})),hasTags:r&&r.length}})),Object(Er.ifCondition)((function(e){var t=e.areTagsFetched;return e.isPostTypeSupported&&t})))(Hi),Gi=function(e,t){var n=ii.filter((function(t){return Object(v.includes)(e,t.id)}));return Object(v.find)(n,(function(e){return e.id===t}))},Ki=function(e){var t=e.suggestedPostFormat,n=e.suggestionText,r=e.onUpdatePostFormat;return Object(B.createElement)(co.Button,{isLink:!0,onClick:function(){return r(t)}},n)};function qi(){var e=Object(p.useSelect)((function(e){var t=e("core/editor"),n=t.getEditedPostAttribute,r=t.getSuggestedPostFormat,o=Object(v.get)(e("core").getThemeSupports(),["formats"],[]);return{currentPostFormat:n("format"),suggestion:Gi(o,r())}}),[]),t=e.currentPostFormat,n=e.suggestion,r=Object(p.useDispatch)("core/editor").editPost,o=[Object(Zt.__)("Suggestion:"),Object(B.createElement)("span",{className:"editor-post-publish-panel__link",key:"label"},Object(Zt.__)("Use a post format"))];return n&&n.id!==t?Object(B.createElement)(co.PanelBody,{initialOpen:!1,title:o},Object(B.createElement)("p",null,Object(Zt.__)("Your theme uses post formats to highlight different kinds of content, like images or videos. Apply a post format to see this special styling.")),Object(B.createElement)("p",null,Object(B.createElement)(Ki,{onUpdatePostFormat:function(e){return r({format:e})},suggestedPostFormat:n.id,suggestionText:Object(Zt.sprintf)(Object(Zt.__)('Apply the "%1$s" format.'),n.caption)}))):null}var Qi=Object(p.withSelect)((function(e){var t=e("core/editor"),n=t.getCurrentPost,r=t.isEditedPostBeingScheduled;return{hasPublishAction:Object(v.get)(n(),["_links","wp:action-publish"],!1),isBeingScheduled:r()}}))((function(e){var t,n,r=e.hasPublishAction,o=e.isBeingScheduled,i=e.children;return r?o?(t=Object(Zt.__)("Are you ready to schedule?"),n=Object(Zt.__)("Your work will be published at the specified date and time.")):(t=Object(Zt.__)("Are you ready to publish?"),n=Object(Zt.__)("Double-check your settings before publishing.")):(t=Object(Zt.__)("Are you ready to submit for review?"),n=Object(Zt.__)("When you’re ready, submit your work for review, and an Editor will be able to approve it for you.")),Object(B.createElement)("div",{className:"editor-post-publish-panel__prepublish"},Object(B.createElement)("div",null,Object(B.createElement)("strong",null,t)),Object(B.createElement)("p",null,n),r&&Object(B.createElement)(B.Fragment,null,Object(B.createElement)(co.PanelBody,{initialOpen:!1,title:[Object(Zt.__)("Visibility:"),Object(B.createElement)("span",{className:"editor-post-publish-panel__link",key:"label"},Object(B.createElement)(Ci,null))]},Object(B.createElement)(wi,null)),Object(B.createElement)(co.PanelBody,{initialOpen:!1,title:[Object(Zt.__)("Publish:"),Object(B.createElement)("span",{className:"editor-post-publish-panel__link",key:"label"},Object(B.createElement)(xi,null))]},Object(B.createElement)(Ti,null))),Object(B.createElement)(qi,null),Object(B.createElement)(Wi,null),i)})),$i=n(69);function Yi(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Ur.a)(e);if(t){var o=Object(Ur.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(Lr.a)(this,n)}}var Xi=function(e){Object(Nr.a)(n,e);var t=Yi(n);function n(){var e;return Object(Rr.a)(this,n),(e=t.apply(this,arguments)).state={showCopyConfirmation:!1},e.onCopy=e.onCopy.bind(Object(So.a)(e)),e.onSelectInput=e.onSelectInput.bind(Object(So.a)(e)),e.postLink=Object(B.createRef)(),e}return Object(Dr.a)(n,[{key:"componentDidMount",value:function(){this.props.focusOnMount&&this.postLink.current.focus()}},{key:"componentWillUnmount",value:function(){clearTimeout(this.dismissCopyConfirmation)}},{key:"onCopy",value:function(){var e=this;this.setState({showCopyConfirmation:!0}),clearTimeout(this.dismissCopyConfirmation),this.dismissCopyConfirmation=setTimeout((function(){e.setState({showCopyConfirmation:!1})}),4e3)}},{key:"onSelectInput",value:function(e){e.target.select()}},{key:"render",value:function(){var e=this.props,t=e.children,n=e.isScheduled,r=e.post,o=e.postType,i=Object(v.get)(o,["labels","singular_name"]),c=Object(v.get)(o,["labels","view_item"]),s="future"===r.status?function(e){var t=e.slug;return e.permalink_template.includes("%postname%")?e.permalink_template.replace("%postname%",t):e.permalink_template}(r):r.link,a=n?Object(B.createElement)(B.Fragment,null,Object(Zt.__)("is now scheduled. It will go live on")," ",Object(B.createElement)(xi,null),"."):Object(Zt.__)("is now live.");return Object(B.createElement)("div",{className:"post-publish-panel__postpublish"},Object(B.createElement)(co.PanelBody,{className:"post-publish-panel__postpublish-header"},Object(B.createElement)("a",{ref:this.postLink,href:s},Object($i.decodeEntities)(r.title)||Object(Zt.__)("(no title)"))," ",a),Object(B.createElement)(co.PanelBody,null,Object(B.createElement)("p",{className:"post-publish-panel__postpublish-subheader"},Object(B.createElement)("strong",null,Object(Zt.__)("What’s next?"))),Object(B.createElement)(co.TextControl,{className:"post-publish-panel__postpublish-post-address",readOnly:!0,label:Object(Zt.sprintf)(Object(Zt.__)("%s address"),i),value:Object(C.safeDecodeURIComponent)(s),onFocus:this.onSelectInput}),Object(B.createElement)("div",{className:"post-publish-panel__postpublish-buttons"},!n&&Object(B.createElement)(co.Button,{isSecondary:!0,href:s},c),Object(B.createElement)(co.ClipboardButton,{isSecondary:!0,text:s,onCopy:this.onCopy},this.state.showCopyConfirmation?Object(Zt.__)("Copied!"):Object(Zt.__)("Copy Link")))),t)}}]),n}(B.Component),Ji=Object(p.withSelect)((function(e){var t=e("core/editor"),n=t.getEditedPostAttribute,r=t.getCurrentPost,o=t.isCurrentPostScheduled,i=e("core").getPostType;return{post:r(),postType:i(n("type")),isScheduled:o()}}))(Xi);function Zi(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Ur.a)(e);if(t){var o=Object(Ur.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(Lr.a)(this,n)}}var ec=function(e){Object(Nr.a)(n,e);var t=Zi(n);function n(){var e;return Object(Rr.a)(this,n),(e=t.apply(this,arguments)).onSubmit=e.onSubmit.bind(Object(So.a)(e)),e}return Object(Dr.a)(n,[{key:"componentDidUpdate",value:function(e){e.isPublished&&!this.props.isSaving&&this.props.isDirty&&this.props.onClose()}},{key:"onSubmit",value:function(){var e=this.props,t=e.onClose,n=e.hasPublishAction,r=e.isPostTypeViewable;n&&r||t()}},{key:"render",value:function(){var e=this.props,t=e.forceIsDirty,n=e.forceIsSaving,r=e.isBeingScheduled,o=e.isPublished,i=e.isPublishSidebarEnabled,c=e.isScheduled,s=e.isSaving,a=e.onClose,u=e.onTogglePublishSidebar,l=e.PostPublishExtension,d=e.PrePublishExtension,p=Object($t.a)(e,["forceIsDirty","forceIsSaving","isBeingScheduled","isPublished","isPublishSidebarEnabled","isScheduled","isSaving","onClose","onTogglePublishSidebar","PostPublishExtension","PrePublishExtension"]),b=Object(v.omit)(p,["hasPublishAction","isDirty","isPostTypeViewable"]),f=o||c&&r,h=!f&&!s,m=f&&!s;return Object(B.createElement)("div",Object(Sr.a)({className:"editor-post-publish-panel"},b),Object(B.createElement)("div",{className:"editor-post-publish-panel__header"},m?Object(B.createElement)(co.Button,{onClick:a,icon:Pi.a,label:Object(Zt.__)("Close panel")}):Object(B.createElement)(B.Fragment,null,Object(B.createElement)("div",{className:"editor-post-publish-panel__header-publish-button"},Object(B.createElement)(_i,{focusOnMount:!0,onSubmit:this.onSubmit,forceIsDirty:t,forceIsSaving:n})),Object(B.createElement)("div",{className:"editor-post-publish-panel__header-cancel-button"},Object(B.createElement)(co.Button,{onClick:a,isSecondary:!0},Object(Zt.__)("Cancel"))))),Object(B.createElement)("div",{className:"editor-post-publish-panel__content"},h&&Object(B.createElement)(Qi,null,d&&Object(B.createElement)(d,null)),m&&Object(B.createElement)(Ji,{focusOnMount:!0},l&&Object(B.createElement)(l,null)),s&&Object(B.createElement)(co.Spinner,null)),Object(B.createElement)("div",{className:"editor-post-publish-panel__footer"},Object(B.createElement)(co.CheckboxControl,{label:Object(Zt.__)("Always show pre-publish checks."),checked:i,onChange:u})))}}]),n}(B.Component),tc=Object(Er.compose)([Object(p.withSelect)((function(e){var t=e("core").getPostType,n=e("core/editor"),r=n.getCurrentPost,o=n.getEditedPostAttribute,i=n.isCurrentPostPublished,c=n.isCurrentPostScheduled,s=n.isEditedPostBeingScheduled,a=n.isEditedPostDirty,u=n.isSavingPost,l=e("core/editor").isPublishSidebarEnabled,d=t(o("type"));return{hasPublishAction:Object(v.get)(r(),["_links","wp:action-publish"],!1),isPostTypeViewable:Object(v.get)(d,["viewable"],!1),isBeingScheduled:s(),isDirty:a(),isPublished:i(),isPublishSidebarEnabled:l(),isSaving:u(),isScheduled:c()}})),Object(p.withDispatch)((function(e,t){var n=t.isPublishSidebarEnabled,r=e("core/editor"),o=r.disablePublishSidebar,i=r.enablePublishSidebar;return{onTogglePublishSidebar:function(){n?o():i()}}})),co.withFocusReturn,co.withConstrainedTabbing])(ec),nc=n(141),rc=Object(B.createElement)(ao.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(B.createElement)(ao.Path,{d:"M14.9 9c1.8.2 3.1 1.7 3.1 3.5 0 1.9-1.6 3.5-3.5 3.5h-10C2.6 16 1 14.4 1 12.5 1 10.7 2.3 9.3 4.1 9 4 8.9 4 8.7 4 8.5 4 7.1 5.1 6 6.5 6c.3 0 .7.1.9.2C8.1 4.9 9.4 4 11 4c2.2 0 4 1.8 4 4 0 .4-.1.7-.1 1z"})),oc=n(161),ic=Object(B.createElement)(ao.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(B.createElement)(ao.Path,{d:"M14.8 9c.1-.3.2-.6.2-1 0-2.2-1.8-4-4-4-1.5 0-2.9.9-3.5 2.2-.3-.1-.7-.2-1-.2C5.1 6 4 7.1 4 8.5c0 .2 0 .4.1.5-1.8.3-3.1 1.7-3.1 3.5C1 14.4 2.6 16 4.5 16H8v-3H5l4.5-4.5L14 13h-3v3h3.5c1.9 0 3.5-1.6 3.5-3.5 0-1.8-1.4-3.3-3.2-3.5z"}));var cc=Object(Er.compose)([Object(p.withSelect)((function(e){var t=e("core/editor"),n=t.isSavingPost,r=t.isCurrentPostPublished,o=t.isCurrentPostScheduled;return{isSaving:n(),isPublished:r(),isScheduled:o()}})),Object(p.withDispatch)((function(e){var t=e("core/editor"),n=t.editPost,r=t.savePost;return{onClick:function(){n({status:"draft"}),r()}}}))])((function(e){var t=e.isSaving,n=e.isPublished,r=e.isScheduled,o=e.onClick,i=Object(Er.useViewportMatch)("small","<");return n||r?Object(B.createElement)(co.Button,{className:"editor-post-switch-to-draft",onClick:function(){var e;n?e=Object(Zt.__)("Are you sure you want to unpublish this post?"):r&&(e=Object(Zt.__)("Are you sure you want to unschedule this post?")),window.confirm(e)&&o()},disabled:t,isTertiary:!0},i?Object(Zt.__)("Draft"):Object(Zt.__)("Switch to draft")):null}));function sc(e){var t=e.forceIsDirty,n=e.forceIsSaving,r=e.showIconLabels,o=void 0!==r&&r,i=Object(B.useState)(!1),c=Object(E.a)(i,2),s=c[0],a=c[1],u=Object(Er.useViewportMatch)("small"),l=Object(p.useSelect)((function(e){var r,o,i,c=e("core/editor"),s=c.isEditedPostNew,a=c.isCurrentPostPublished,u=c.isCurrentPostScheduled,l=c.isEditedPostDirty,d=c.isSavingPost,p=c.isEditedPostSaveable,b=c.getCurrentPost,f=c.isAutosavingPost,h=c.getEditedPostAttribute;return{isAutosaving:f(),isDirty:t||l(),isNew:s(),isPending:"pending"===h("status"),isPublished:a(),isSaving:n||d(),isSaveable:p(),isScheduled:u(),hasPublishAction:null!==(r=null===(o=b())||void 0===o||null===(i=o._links)||void 0===i?void 0:i["wp:action-publish"])&&void 0!==r&&r}}),[t,n]),d=l.isAutosaving,b=l.isDirty,f=l.isNew,h=l.isPending,m=l.isPublished,v=l.isSaveable,O=l.isSaving,g=l.isScheduled,j=l.hasPublishAction,y=Object(p.useDispatch)("core/editor").savePost,_=Object(Er.usePrevious)(O);if(Object(B.useEffect)((function(){var e;return _&&!O&&(a(!0),e=setTimeout((function(){a(!1)}),1e3)),function(){return clearTimeout(e)}}),[O]),O){var P=Hr()("editor-post-saved-state","is-saving",{"is-autosaving":d});return Object(B.createElement)(co.Animate,{type:"loading"},(function(e){var t=e.className;return Object(B.createElement)("span",{className:Hr()(P,t)},Object(B.createElement)(nc.a,{icon:rc}),d?Object(Zt.__)("Autosaving"):Object(Zt.__)("Saving"))}))}if(m||g)return Object(B.createElement)(cc,null);if(!v)return null;if(s||!f&&!b)return Object(B.createElement)("span",{className:"editor-post-saved-state is-saved"},Object(B.createElement)(nc.a,{icon:oc.a}),Object(Zt.__)("Saved"));if(!j&&h)return null;var k=h?Object(Zt.__)("Save as pending"):Object(Zt.__)("Save draft"),S=Object(Zt.__)("Save");return u?Object(B.createElement)(co.Button,{className:"editor-post-save-draft",onClick:function(){return y()},shortcut:so.displayShortcut.primary("s"),isTertiary:!0},k):Object(B.createElement)(co.Button,{className:"editor-post-save-draft",label:k,onClick:function(){return y()},shortcut:so.displayShortcut.primary("s"),icon:ic},o&&S)}var ac=Object(Er.compose)([Object(p.withSelect)((function(e){var t=e("core/editor"),n=t.getCurrentPost,r=t.getCurrentPostType;return{hasPublishAction:Object(v.get)(n(),["_links","wp:action-publish"],!1),postType:r()}}))])((function(e){var t=e.hasPublishAction,n=e.children;return t?n:null}));function uc(e){var t=e.children;return Object(B.createElement)(Ao,{supportKeys:"slug"},t)}function lc(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Ur.a)(e);if(t){var o=Object(Ur.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(Lr.a)(this,n)}}var dc=function(e){Object(Nr.a)(n,e);var t=lc(n);function n(e){var r,o=e.postSlug,i=e.postTitle,c=e.postID;return Object(Rr.a)(this,n),(r=t.apply(this,arguments)).state={editedSlug:Object(C.safeDecodeURIComponent)(o)||V(i)||c},r.setSlug=r.setSlug.bind(Object(So.a)(r)),r}return Object(Dr.a)(n,[{key:"setSlug",value:function(e){var t=this.props,n=t.postSlug,r=t.onUpdateSlug,o=V(e.target.value);o!==n&&r(o)}},{key:"render",value:function(){var e=this,t=this.props.instanceId,n=this.state.editedSlug,r="editor-post-slug-"+t;return Object(B.createElement)(uc,null,Object(B.createElement)("label",{htmlFor:r},Object(Zt.__)("Slug")),Object(B.createElement)("input",{type:"text",id:r,value:n,onChange:function(t){return e.setState({editedSlug:t.target.value})},onBlur:this.setSlug,className:"editor-post-slug__input"}))}}]),n}(B.Component),pc=Object(Er.compose)([Object(p.withSelect)((function(e){var t=e("core/editor"),n=t.getCurrentPost,r=t.getEditedPostAttribute,o=n().id;return{postSlug:r("slug"),postTitle:r("title"),postID:o}})),Object(p.withDispatch)((function(e){var t=e("core/editor").editPost;return{onUpdateSlug:function(e){t({slug:e})}}})),Er.withInstanceId])(dc);var bc=Object(Er.compose)([Object(p.withSelect)((function(e){var t=e("core/editor").getCurrentPost();return{hasStickyAction:Object(v.get)(t,["_links","wp:action-sticky"],!1),postType:e("core/editor").getCurrentPostType()}}))])((function(e){var t=e.hasStickyAction,n=e.postType,r=e.children;return"post"===n&&t?r:null}));var fc=Object(Er.compose)([Object(p.withSelect)((function(e){return{postSticky:e("core/editor").getEditedPostAttribute("sticky")}})),Object(p.withDispatch)((function(e){return{onUpdateSticky:function(t){e("core/editor").editPost({sticky:t})}}}))])((function(e){var t=e.onUpdateSticky,n=e.postSticky,r=void 0!==n&&n;return Object(B.createElement)(bc,null,Object(B.createElement)(co.CheckboxControl,{label:Object(Zt.__)("Stick to the top of the blog"),checked:r,onChange:function(){return t(!r)}}))}));function hc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function mc(e){for(var t=1;t0)};return e.sort((function(e,t){var r=n(e),o=n(t);return r===o?0:r&&!o?-1:!r&&o?1:0})),e}},{key:"setFilterValue",value:function(e){var t=this.state.availableTermsTree,n=e.target.value,r=t.map(this.getFilterMatcher(n)).filter((function(e){return e}));this.setState({filterValue:n,filteredTermsTree:r});var o=function e(t){for(var n=0,r=0;r0&&(r.children=r.children.map(t).filter((function(e){return e}))),(-1!==r.name.toLowerCase().indexOf(e.toLowerCase())||r.children.length>0)&&r}}},{key:"renderTerms",value:function(e){var t=this,n=this.props.terms,r=void 0===n?[]:n;return e.map((function(e){return Object(B.createElement)("div",{key:e.id,className:"editor-post-taxonomies__hierarchical-terms-choice"},Object(B.createElement)(co.CheckboxControl,{checked:-1!==r.indexOf(e.id),onChange:function(){var n=parseInt(e.id,10);t.onChange(n)},label:Object(v.unescape)(e.name)}),!!e.children.length&&Object(B.createElement)("div",{className:"editor-post-taxonomies__hierarchical-terms-subchoices"},t.renderTerms(e.children)))}))}},{key:"render",value:function(){var e=this.props,t=e.slug,n=e.taxonomy,r=e.instanceId,o=e.hasCreateAction;if(!e.hasAssignAction)return null;var i=this.state,c=i.availableTermsTree,s=i.availableTerms,a=i.filteredTermsTree,u=i.formName,l=i.formParent,d=i.loading,p=i.showForm,b=i.filterValue,f=function(e,r,o){return Object(v.get)(n,["labels",e],"category"===t?r:o)},h=f("add_new_item",Object(Zt.__)("Add new category"),Object(Zt.__)("Add new term")),m=f("new_item_name",Object(Zt.__)("Add new category"),Object(Zt.__)("Add new term")),O=f("parent_item",Object(Zt.__)("Parent Category"),Object(Zt.__)("Parent Term")),g="— ".concat(O," —"),j=h,y="editor-post-taxonomies__hierarchical-terms-input-".concat(r),_="editor-post-taxonomies__hierarchical-terms-filter-".concat(r),P=Object(v.get)(this.props.taxonomy,["labels","search_items"],Object(Zt.__)("Search Terms")),k=Object(v.get)(this.props.taxonomy,["name"],Object(Zt.__)("Terms")),S=s.length>=8;return[S&&Object(B.createElement)("label",{key:"filter-label",htmlFor:_},P),S&&Object(B.createElement)("input",{type:"search",id:_,value:b,onChange:this.setFilterValue,className:"editor-post-taxonomies__hierarchical-terms-filter",key:"term-filter-input"}),Object(B.createElement)("div",{className:"editor-post-taxonomies__hierarchical-terms-list",key:"term-list",tabIndex:"0",role:"group","aria-label":k},this.renderTerms(""!==b?a:c)),!d&&o&&Object(B.createElement)(co.Button,{key:"term-add-button",onClick:this.onToggleForm,className:"editor-post-taxonomies__hierarchical-terms-add","aria-expanded":p,isLink:!0},h),p&&Object(B.createElement)("form",{onSubmit:this.onAddTerm,key:"hierarchical-terms-form"},Object(B.createElement)("label",{htmlFor:y,className:"editor-post-taxonomies__hierarchical-terms-label"},m),Object(B.createElement)("input",{type:"text",id:y,className:"editor-post-taxonomies__hierarchical-terms-input",value:u,onChange:this.onChangeFormName,required:!0}),!!s.length&&Object(B.createElement)(co.TreeSelect,{label:O,noOptionLabel:g,onChange:this.onChangeFormParent,selectedId:l,tree:c}),Object(B.createElement)(co.Button,{isSecondary:!0,type:"submit",className:"editor-post-taxonomies__hierarchical-terms-submit"},j))]}}]),n}(B.Component),jc=Object(Er.compose)([Object(p.withSelect)((function(e,t){var n=t.slug,r=e("core/editor").getCurrentPost,o=(0,e("core").getTaxonomy)(n);return{hasCreateAction:!!o&&Object(v.get)(r(),["_links","wp:action-create-"+o.rest_base],!1),hasAssignAction:!!o&&Object(v.get)(r(),["_links","wp:action-assign-"+o.rest_base],!1),terms:o?e("core/editor").getEditedPostAttribute(o.rest_base):[],taxonomy:o}})),Object(p.withDispatch)((function(e){return{onUpdateTerms:function(t,n){e("core/editor").editPost(Object(d.a)({},n,t))}}})),co.withSpokenMessages,Er.withInstanceId,Object(co.withFilters)("editor.PostTaxonomyType")])(gc);var yc=Object(Er.compose)([Object(p.withSelect)((function(e){return{postType:e("core/editor").getCurrentPostType(),taxonomies:e("core").getTaxonomies({per_page:-1})}}))])((function(e){var t=e.postType,n=e.taxonomies,r=e.taxonomyWrapper,o=void 0===r?v.identity:r,i=Object(v.filter)(n,(function(e){return Object(v.includes)(e.types,t)}));return Object(v.filter)(i,(function(e){return e.visibility.show_ui})).map((function(e){var t=e.hierarchical?jc:Mi;return Object(B.createElement)(B.Fragment,{key:"taxonomy-".concat(e.slug)},o(Object(B.createElement)(t,{slug:e.slug}),e))}))}));var _c=Object(Er.compose)([Object(p.withSelect)((function(e){return{postType:e("core/editor").getCurrentPostType(),taxonomies:e("core").getTaxonomies({per_page:-1})}}))])((function(e){var t=e.postType,n=e.taxonomies,r=e.children;return Object(v.some)(n,(function(e){return Object(v.includes)(e.types,t)}))?r:null})),Pc=n(100),kc=n.n(Pc);function Sc(){var e=Object(p.useSelect)((function(e){return e("core/editor").getEditedPostContent()}),[]),t=Object(p.useDispatch)("core/editor"),n=t.editPost,r=t.resetEditorBlocks,o=Object(B.useState)(e),i=Object(E.a)(o,2),s=i[0],a=i[1],u=Object(B.useState)(!1),l=Object(E.a)(u,2),d=l[0],b=l[1],f=Object(Er.useInstanceId)(Sc);d||s===e||a(e);return Object(B.createElement)(B.Fragment,null,Object(B.createElement)(co.VisuallyHidden,{as:"label",htmlFor:"post-content-".concat(f)},Object(Zt.__)("Type text or HTML")),Object(B.createElement)(kc.a,{autoComplete:"off",dir:"auto",value:s,onChange:function(e){var t=e.target.value;n({content:t}),a(t),b(!0)},onBlur:function(){if(d){var e=Object(c.parse)(s);r(e),b(!1)}},className:"editor-post-text-editor",id:"post-content-".concat(f),placeholder:Object(Zt.__)("Start writing with text or HTML")}))}function Ec(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Ur.a)(e);if(t){var o=Object(Ur.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(Lr.a)(this,n)}}var wc=/[\r\n]+/g,Cc=function(e){Object(Nr.a)(n,e);var t=Ec(n);function n(){var e;return Object(Rr.a)(this,n),(e=t.apply(this,arguments)).onChange=e.onChange.bind(Object(So.a)(e)),e.onSelect=e.onSelect.bind(Object(So.a)(e)),e.onUnselect=e.onUnselect.bind(Object(So.a)(e)),e.onKeyDown=e.onKeyDown.bind(Object(So.a)(e)),e.onPaste=e.onPaste.bind(Object(So.a)(e)),e.state={isSelected:!1},e}return Object(Dr.a)(n,[{key:"onSelect",value:function(){this.setState({isSelected:!0}),this.props.clearSelectedBlock()}},{key:"onUnselect",value:function(){this.setState({isSelected:!1})}},{key:"onChange",value:function(e){var t=e.target.value.replace(wc," ");this.props.onUpdate(t)}},{key:"onKeyDown",value:function(e){e.keyCode===so.ENTER&&(e.preventDefault(),this.props.onEnterPress())}},{key:"onPaste",value:function(e){var t=this.props,n=t.title,r=t.onInsertBlockAfter,o=t.onUpdate,i=e.clipboardData,s="",a="";try{s=i.getData("text/plain"),a=i.getData("text/html")}catch(e){try{a=i.getData("Text")}catch(e){return}}window.console.log("Received HTML:\n\n",a),window.console.log("Received plain text:\n\n",s);var u=Object(c.pasteHandler)({HTML:a,plainText:s});if("string"!=typeof u&&u.length){e.preventDefault();var l=Object(E.a)(u,1)[0];n||"core/heading"!==l.name&&"core/paragraph"!==l.name?r(u):(o(l.attributes.content),r(u.slice(1)))}}},{key:"render",value:function(){var e=this.props,t=e.hasFixedToolbar,n=e.isCleanNewPost,r=e.isFocusMode,o=e.instanceId,i=e.placeholder,c=e.title,s=this.state.isSelected,a=Hr()("wp-block editor-post-title editor-post-title__block",{"is-selected":s,"is-focus-mode":r,"has-fixed-toolbar":t}),u=Object($i.decodeEntities)(i);return Object(B.createElement)(Ao,{supportKeys:"title"},Object(B.createElement)("div",{className:a},Object(B.createElement)(co.VisuallyHidden,{as:"label",htmlFor:"post-title-".concat(o)},u||Object(Zt.__)("Add title")),Object(B.createElement)(kc.a,{id:"post-title-".concat(o),className:"editor-post-title__input",value:c,onChange:this.onChange,placeholder:u||Object(Zt.__)("Add title"),onFocus:this.onSelect,onBlur:this.onUnselect,onKeyDown:this.onKeyDown,onKeyPress:this.onUnselect,onPaste:this.onPaste,autoFocus:(document.body===document.activeElement||!document.activeElement)&&n})))}}]),n}(B.Component),Tc=Object(p.withSelect)((function(e){var t=e("core/editor"),n=t.getEditedPostAttribute,r=t.isCleanNewPost,o=(0,e("core/block-editor").getSettings)(),i=o.titlePlaceholder,c=o.focusMode,s=o.hasFixedToolbar;return{isCleanNewPost:r(),title:n("title"),placeholder:i,isFocusMode:c,hasFixedToolbar:s}})),xc=Object(p.withDispatch)((function(e){var t=e("core/block-editor"),n=t.insertDefaultBlock,r=t.clearSelectedBlock,o=t.insertBlocks,i=e("core/editor").editPost;return{onEnterPress:function(){n(void 0,void 0,0)},onInsertBlockAfter:function(e){o(e,0)},onUpdate:function(e){i({title:e})},clearSelectedBlock:r}})),Bc=Object(Er.compose)(Tc,xc,Er.withInstanceId)(Cc);var Ic=Object(Er.compose)([Object(p.withSelect)((function(e){var t=e("core/editor"),n=t.isEditedPostNew,r=t.getCurrentPostId,o=t.getCurrentPostType;return{isNew:n(),postId:r(),postType:o()}})),Object(p.withDispatch)((function(e){return{trashPost:e("core/editor").trashPost}}))])((function(e){var t=e.isNew,n=e.postId,r=e.postType,o=Object($t.a)(e,["isNew","postId","postType"]);return t||!n?null:Object(B.createElement)(co.Button,{className:"editor-post-trash",isDestructive:!0,isTertiary:!0,onClick:function(){return o.trashPost(n,r)}},Object(Zt.__)("Move to trash"))}));var Ac=Object(p.withSelect)((function(e){var t=e("core/editor"),n=t.isEditedPostNew,r=t.getCurrentPostId,o=t.getCurrentPostType,i=e("core"),c=i.getPostType,s=i.canUser,a=r(),u=c(o()),l=(null==u?void 0:u.rest_base)||"";return{isNew:n(),postId:a,canUserDelete:!(!a||!l)&&s("delete",l,a)}}))((function(e){var t=e.isNew,n=e.postId,r=e.canUserDelete,o=e.children;return!t&&n&&r?o:null}));var Rc=Object(Er.compose)([Object(p.withSelect)((function(e){var t=e("core/editor"),n=t.getCurrentPost,r=t.getCurrentPostType;return{hasPublishAction:Object(v.get)(n(),["_links","wp:action-publish"],!1),postType:r()}}))])((function(e){var t=e.hasPublishAction;return(0,e.render)({canEdit:t})})),Dc=Object(B.createElement)(ao.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(B.createElement)(ao.Path,{d:"M12 3.2c-4.8 0-8.8 3.9-8.8 8.8 0 4.8 3.9 8.8 8.8 8.8 4.8 0 8.8-3.9 8.8-8.8 0-4.8-4-8.8-8.8-8.8zm0 16c-4 0-7.2-3.3-7.2-7.2C4.8 8 8 4.8 12 4.8s7.2 3.3 7.2 7.2c0 4-3.2 7.2-7.2 7.2zM11 17h2v-6h-2v6zm0-8h2V7h-2v2z"})),Nc=n(128);function Lc(){var e=Object(p.useSelect)((function(e){return e("core/editor").getEditedPostAttribute("content")})),t=Object(Zt._x)("words","Word count type. Do not translate!");return Object(B.createElement)("span",{className:"word-count"},Object(Nc.count)(e,t))}function Uc(){var e=Object(p.useSelect)((function(e){return e("core/editor").getEditedPostAttribute("content")}));return Object(Nc.count)(e,"characters_including_spaces")}var Fc=function(e){var t=e.hasOutlineItemsDisabled,n=e.onRequestClose,r=Object(p.useSelect)((function(e){var t=e("core/block-editor").getGlobalBlockCount;return{headingCount:t("core/heading"),paragraphCount:t("core/paragraph"),numberOfBlocks:t()}}),[]),o=r.headingCount,i=r.paragraphCount,c=r.numberOfBlocks;return Object(B.createElement)(B.Fragment,null,Object(B.createElement)("div",{className:"table-of-contents__wrapper",role:"note","aria-label":Object(Zt.__)("Document Statistics"),tabIndex:"0"},Object(B.createElement)("ul",{role:"list",className:"table-of-contents__counts"},Object(B.createElement)("li",{className:"table-of-contents__count"},Object(Zt.__)("Characters"),Object(B.createElement)("span",{className:"table-of-contents__number"},Object(B.createElement)(Uc,null))),Object(B.createElement)("li",{className:"table-of-contents__count"},Object(Zt.__)("Words"),Object(B.createElement)(Lc,null)),Object(B.createElement)("li",{className:"table-of-contents__count"},Object(Zt.__)("Headings"),Object(B.createElement)("span",{className:"table-of-contents__number"},o)),Object(B.createElement)("li",{className:"table-of-contents__count"},Object(Zt.__)("Paragraphs"),Object(B.createElement)("span",{className:"table-of-contents__number"},i)),Object(B.createElement)("li",{className:"table-of-contents__count"},Object(Zt.__)("Blocks"),Object(B.createElement)("span",{className:"table-of-contents__number"},c)))),o>0&&Object(B.createElement)(B.Fragment,null,Object(B.createElement)("hr",null),Object(B.createElement)("h2",{className:"table-of-contents__title"},Object(Zt.__)("Document Outline")),Object(B.createElement)(Jr,{onSelect:n,hasOutlineItemsDisabled:t})))};var Mc=Object(B.forwardRef)((function(e,t){var n=e.hasOutlineItemsDisabled,r=e.repositionDropdown,o=Object($t.a)(e,["hasOutlineItemsDisabled","repositionDropdown"]),i=Object(p.useSelect)((function(e){return!!e("core/block-editor").getBlockCount()}),[]);return Object(B.createElement)(co.Dropdown,{position:r?"middle right right":"bottom",className:"table-of-contents",contentClassName:"table-of-contents__popover",renderToggle:function(e){var n=e.isOpen,r=e.onToggle;return Object(B.createElement)(co.Button,Object(Sr.a)({},o,{ref:t,onClick:i?r:void 0,icon:Dc,"aria-expanded":n,"aria-haspopup":"true",label:Object(Zt.__)("Details"),tooltipPosition:"bottom","aria-disabled":!i}))},renderContent:function(e){var t=e.onClose;return Object(B.createElement)(Fc,{onRequestClose:t,hasOutlineItemsDisabled:n})}})}));function Vc(){var e=Object(p.useSelect)((function(e){return function(){return(0,e("core").__experimentalGetDirtyEntityRecords)().length>0}}),[]),t=function(t){if(e())return t.returnValue=Object(Zt.__)("You have unsaved changes. If you proceed, they will be lost."),t.returnValue};return Object(B.useEffect)((function(){return window.addEventListener("beforeunload",t),function(){window.removeEventListener("beforeunload",t)}}),[]),null}var zc=n(45),Hc=Object(Er.createHigherOrderComponent)((function(e){return Object(p.withRegistry)((function(t){var n=t.useSubRegistry,r=void 0===n||n,o=t.registry,c=Object($t.a)(t,["useSubRegistry","registry"]);if(!r)return Object(B.createElement)(e,c);var s=Object(B.useState)(null),a=Object(E.a)(s,2),u=a[0],l=a[1];return Object(B.useEffect)((function(){var e=Object(p.createRegistry)({"core/block-editor":i.storeConfig},o);e.registerStore("core/editor",kr),l(e)}),[o]),u?Object(B.createElement)(p.RegistryProvider,{value:u},Object(B.createElement)(e,c)):null}))}),"withRegistryProvider"),Wc=n(155);function Gc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Kc(e){for(var t=1;t0?n(s[0]):void 0),l=r(s),d=1===l.length&&l[0]&&l[0].name===a;return{clientIds:s,isGroupable:u&&l.length&&!d,isUngroupable:d&&!!l[0].innerBlocks.length,blocksSelection:l,groupingBlockName:a}})),Object(p.withDispatch)((function(e,t){var n=t.clientIds,r=t.blocksSelection,o=void 0===r?[]:r,i=t.groupingBlockName,s=e("core/block-editor").replaceBlocks;return{onConvertToGroup:function(){var e=Object(c.switchToBlockType)(o,i);e&&s(n,e)},onConvertFromGroup:function(){var e=o[0].innerBlocks;e.length&&s(n,e)}}}))])((function(e){var t=e.onConvertToGroup,n=e.onConvertFromGroup,r=e.isGroupable,o=void 0!==r&&r,c=e.isUngroupable,s=void 0!==c&&c;return o||s?Object(B.createElement)(i.BlockSettingsMenuControls,null,(function(e){var r=e.onClose;return Object(B.createElement)(B.Fragment,null,o&&Object(B.createElement)(co.MenuItem,{onClick:function(){t(),r()}},Object(Zt._x)("Group","verb")),s&&Object(B.createElement)(co.MenuItem,{onClick:function(){n(),r()}},Object(Zt._x)("Ungroup","Ungrouping blocks from within a Group block back into individual blocks within the Editor ")))})):null}));function $c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Yc(e){for(var t=1;t1&&void 0!==b[1]?b[1]:{},r=n.isInitialSuggestions,o=n.type,i=n.subtype,c=n.page,s=n.perPage,a=b.length>2&&void 0!==b[2]?b[2]:{},u=a.disablePostFormats,l=void 0!==u&&u,d=s||r?3:20,p=[],o&&"post"!==o||p.push(Ir()({path:Object(C.addQueryArgs)("/wp/v2/search",{search:t,page:c,per_page:d,type:"post",subtype:i})}).catch((function(){return[]}))),o&&"term"!==o||p.push(Ir()({path:Object(C.addQueryArgs)("/wp/v2/search",{search:t,page:c,per_page:d,type:"term",subtype:i})}).catch((function(){return[]}))),l||o&&"post-format"!==o||p.push(Ir()({path:Object(C.addQueryArgs)("/wp/v2/search",{search:t,page:c,per_page:d,type:"post-format",subtype:i})}).catch((function(){return[]}))),e.abrupt("return",Promise.all(p).then((function(e){return Object(v.map)(Object(v.flatten)(e).filter((function(e){return!!e.id})).slice(0,d),(function(e){return{id:e.id,url:e.url,title:Object($i.decodeEntities)(e.title)||Object(Zt.__)("(no title)"),type:e.subtype||e.type}}))})));case 8:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),Zc=function(e){Object(Nr.a)(n,e);var t=Xc(n);function n(e){var r;return Object(Rr.a)(this,n),(r=t.apply(this,arguments)).getBlockEditorSettings=L()(r.getBlockEditorSettings,{maxSize:1}),r.getDefaultBlockContext=L()(r.getDefaultBlockContext,{maxSize:1}),e.recovery?Object(Lr.a)(r):(e.updatePostLock(e.settings.postLock),e.setupEditor(e.post,e.initialEdits,e.settings.template),e.settings.autosave&&e.createWarningNotice(Object(Zt.__)("There is an autosave of this post that is more recent than the version below."),{id:"autosave-exists",actions:[{label:Object(Zt.__)("View the autosave"),url:e.settings.autosave.editLink}]}),r)}return Object(Dr.a)(n,[{key:"getBlockEditorSettings",value:function(e,t,n,r,o,i){return Yc(Yc({},Object(v.pick)(e,["__experimentalBlockDirectory","__experimentalBlockPatterns","__experimentalBlockPatternCategories","__experimentalEnableFullSiteEditing","__experimentalEnableFullSiteEditingDemo","__experimentalFeatures","__experimentalGlobalStylesUserEntityId","__experimentalGlobalStylesBaseStyles","__experimentalGlobalStylesContexts","__experimentalPreferredStyleVariations","__experimentalSetIsInserterOpened","alignWide","allowedBlockTypes","availableLegacyWidgets","bodyPlaceholder","codeEditingEnabled","colors","disableCustomColors","disableCustomFontSizes","disableCustomGradients","enableCustomUnits","enableCustomLineHeight","focusMode","fontSizes","gradients","hasFixedToolbar","hasReducedUI","imageEditing","imageSizes","imageDimensions","isRTL","keepCaretInsideBlock","maxWidth","onUpdateDefaultBlockStyles","styles","template","templateLock","titlePlaceholder"])),{},{mediaUpload:n?qc:void 0,__experimentalReusableBlocks:t,__experimentalFetchLinkSuggestions:Object(v.partialRight)(Jc,e),__experimentalCanUserUseUnfilteredHTML:r,__experimentalUndo:o,__experimentalShouldInsertAtTheTop:i})}},{key:"getDefaultBlockContext",value:function(e,t){return{postId:e,postType:t}}},{key:"componentDidMount",value:function(){this.props.updateEditorSettings(this.props.settings)}},{key:"componentDidUpdate",value:function(e){this.props.settings!==e.settings&&this.props.updateEditorSettings(this.props.settings)}},{key:"componentWillUnmount",value:function(){this.props.tearDownEditor()}},{key:"render",value:function(){var e=this.props,t=e.canUserUseUnfilteredHTML,n=e.children,r=e.post,o=e.blocks,c=e.resetEditorBlocks,a=e.selectionStart,l=e.selectionEnd,d=e.isReady,p=e.settings,b=e.reusableBlocks,f=e.resetEditorBlocksWithoutUndoLevel,h=e.hasUploadPermissions,m=e.isPostTitleSelected,v=e.undo;if(!d)return null;var O=this.getBlockEditorSettings(p,b,h,t,v,m),g=this.getDefaultBlockContext(r.id,r.type);return Object(B.createElement)(B.Fragment,null,Object(B.createElement)(i.__unstableEditorStyles,{styles:p.styles}),Object(B.createElement)(s.EntityProvider,{kind:"root",type:"site"},Object(B.createElement)(s.EntityProvider,{kind:"postType",type:r.type,id:r.id},Object(B.createElement)(i.BlockContextProvider,{value:g},Object(B.createElement)(i.BlockEditorProvider,{value:o,onInput:f,onChange:c,selectionStart:a,selectionEnd:l,settings:O,useSubRegistry:!1},n,Object(B.createElement)(u.ReusableBlocksMenuItems,null),Object(B.createElement)(Qc,null))))))}}]),n}(B.Component),es=Object(Er.compose)([Hc,Object(p.withSelect)((function(e){var t=e("core/editor"),n=t.canUserUseUnfilteredHTML,r=t.__unstableIsEditorReady,o=t.getEditorBlocks,i=t.getEditorSelectionStart,c=t.getEditorSelectionEnd,s=t.isPostTitleSelected,a=e("core").canUser;return{canUserUseUnfilteredHTML:n(),isReady:r(),blocks:o(),selectionStart:i(),selectionEnd:c(),reusableBlocks:e("core").getEntityRecords("postType","wp_block",{per_page:-1}),hasUploadPermissions:Object(v.defaultTo)(a("create","media"),!0),isPostTitleSelected:s&&s()}})),Object(p.withDispatch)((function(e){var t=e("core/editor"),n=t.setupEditor,r=t.updatePostLock,o=t.resetEditorBlocks,i=t.updateEditorSettings,c=t.__experimentalTearDownEditor,s=t.undo;return{setupEditor:n,updatePostLock:r,createWarningNotice:e("core/notices").createWarningNotice,resetEditorBlocks:o,updateEditorSettings:i,resetEditorBlocksWithoutUndoLevel:function(e,t){o(e,Yc(Yc({},t),{},{__unstableShouldCreateUndoLevel:!1}))},tearDownEditor:c,undo:s}}))])(Zc),ts=n(87),ns=n.n(ts);function rs(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=Object(B.forwardRef)((function(n,r){return x()("wp.editor."+e,{alternative:"wp.blockEditor."+e}),Object(B.createElement)(t,Object(Sr.a)({ref:r},n))}));return n.forEach((function(n){r[n]=rs(e+"."+n,t[n])})),r}function os(e,t){return function(){return x()("wp.editor."+e,{alternative:"wp.blockEditor."+e}),t.apply(void 0,arguments)}}var is=rs("RichText",i.RichText,["Content"]);is.isEmpty=os("RichText.isEmpty",i.RichText.isEmpty);var cs=rs("Autocomplete",i.Autocomplete),ss=rs("AlignmentToolbar",i.AlignmentToolbar),as=rs("BlockAlignmentToolbar",i.BlockAlignmentToolbar),us=rs("BlockControls",i.BlockControls,["Slot"]),ls=rs("BlockEdit",i.BlockEdit),ds=rs("BlockEditorKeyboardShortcuts",i.BlockEditorKeyboardShortcuts),ps=rs("BlockFormatControls",i.BlockFormatControls,["Slot"]),bs=rs("BlockIcon",i.BlockIcon),fs=rs("BlockInspector",i.BlockInspector),hs=rs("BlockList",i.BlockList),ms=rs("BlockMover",i.BlockMover),vs=rs("BlockNavigationDropdown",i.BlockNavigationDropdown),Os=rs("BlockSelectionClearer",i.BlockSelectionClearer),gs=rs("BlockSettingsMenu",i.BlockSettingsMenu),js=rs("BlockTitle",i.BlockTitle),ys=rs("BlockToolbar",i.BlockToolbar),_s=rs("ColorPalette",i.ColorPalette),Ps=rs("ContrastChecker",i.ContrastChecker),ks=rs("CopyHandler",i.CopyHandler),Ss=rs("DefaultBlockAppender",i.DefaultBlockAppender),Es=rs("FontSizePicker",i.FontSizePicker),ws=rs("Inserter",i.Inserter),Cs=rs("InnerBlocks",i.InnerBlocks,["ButtonBlockAppender","DefaultBlockAppender","Content"]),Ts=rs("InspectorAdvancedControls",i.InspectorAdvancedControls,["Slot"]),xs=rs("InspectorControls",i.InspectorControls,["Slot"]),Bs=rs("PanelColorSettings",i.PanelColorSettings),Is=rs("PlainText",i.PlainText),As=rs("RichTextShortcut",i.RichTextShortcut),Rs=rs("RichTextToolbarButton",i.RichTextToolbarButton),Ds=rs("__unstableRichTextInputEvent",i.__unstableRichTextInputEvent),Ns=rs("MediaPlaceholder",i.MediaPlaceholder),Ls=rs("MediaUpload",i.MediaUpload),Us=rs("MediaUploadCheck",i.MediaUploadCheck),Fs=rs("MultiSelectScrollIntoView",i.MultiSelectScrollIntoView),Ms=rs("NavigableToolbar",i.NavigableToolbar),Vs=rs("ObserveTyping",i.ObserveTyping),zs=rs("PreserveScrollInReorder",i.PreserveScrollInReorder),Hs=rs("SkipToSelectedBlock",i.SkipToSelectedBlock),Ws=rs("URLInput",i.URLInput),Gs=rs("URLInputButton",i.URLInputButton),Ks=rs("URLPopover",i.URLPopover),qs=rs("Warning",i.Warning),Qs=rs("WritingFlow",i.WritingFlow),$s=os("createCustomColorsHOC",i.createCustomColorsHOC),Ys=os("getColorClassName",i.getColorClassName),Xs=os("getColorObjectByAttributeValues",i.getColorObjectByAttributeValues),Js=os("getColorObjectByColorValue",i.getColorObjectByColorValue),Zs=os("getFontSize",i.getFontSize),ea=os("getFontSizeClass",i.getFontSizeClass),ta=os("withColorContext",i.withColorContext),na=os("withColors",i.withColors),ra=os("withFontSizes",i.withFontSizes)},47:function(e,t){!function(){e.exports=this.wp.apiFetch}()},5:function(e,t,n){"use strict";function r(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,"a",(function(){return r}))},53:function(e,t){!function(){e.exports=this.wp.keyboardShortcuts}()},6:function(e,t){!function(){e.exports=this.wp.blockEditor}()},60:function(e,t,n){e.exports=function(e,t){var n,r,o=0;function i(){var i,c,s=n,a=arguments.length;e:for(;s;){if(s.args.length===arguments.length){for(c=0;c-1},get:function(e){return r[n.indexOf(e)]},set:function(e,t){-1===n.indexOf(e)&&(n.push(e),r.push(t))},delete:function(e){var t=n.indexOf(e);t>-1&&(n.splice(t,1),r.splice(t,1))}}),i=function(e){return new Event(e,{bubbles:!0})};try{new Event("test")}catch(e){i=function(e){var t=document.createEvent("Event");return t.initEvent(e,!0,!1),t}}function c(e){if(e&&e.nodeName&&"TEXTAREA"===e.nodeName&&!o.has(e)){var t,n=null,r=null,c=null,a=function(){e.clientWidth!==r&&d()},s=function(t){window.removeEventListener("resize",a,!1),e.removeEventListener("input",d,!1),e.removeEventListener("keyup",d,!1),e.removeEventListener("autosize:destroy",s,!1),e.removeEventListener("autosize:update",d,!1),Object.keys(t).forEach((function(n){e.style[n]=t[n]})),o.delete(e)}.bind(e,{height:e.style.height,resize:e.style.resize,overflowY:e.style.overflowY,overflowX:e.style.overflowX,wordWrap:e.style.wordWrap});e.addEventListener("autosize:destroy",s,!1),"onpropertychange"in e&&"oninput"in e&&e.addEventListener("keyup",d,!1),window.addEventListener("resize",a,!1),e.addEventListener("input",d,!1),e.addEventListener("autosize:update",d,!1),e.style.overflowX="hidden",e.style.wordWrap="break-word",o.set(e,{destroy:s,update:d}),"vertical"===(t=window.getComputedStyle(e,null)).resize?e.style.resize="none":"both"===t.resize&&(e.style.resize="horizontal"),n="content-box"===t.boxSizing?-(parseFloat(t.paddingTop)+parseFloat(t.paddingBottom)):parseFloat(t.borderTopWidth)+parseFloat(t.borderBottomWidth),isNaN(n)&&(n=0),d()}function u(t){var n=e.style.width;e.style.width="0px",e.offsetWidth,e.style.width=n,e.style.overflowY=t}function l(){if(0!==e.scrollHeight){var t=function(e){for(var t=[];e&&e.parentNode&&e.parentNode instanceof Element;)e.parentNode.scrollTop&&t.push({node:e.parentNode,scrollTop:e.parentNode.scrollTop}),e=e.parentNode;return t}(e),o=document.documentElement&&document.documentElement.scrollTop;e.style.height="",e.style.height=e.scrollHeight+n+"px",r=e.clientWidth,t.forEach((function(e){e.node.scrollTop=e.scrollTop})),o&&(document.documentElement.scrollTop=o)}}function d(){l();var t=Math.round(parseFloat(e.style.height)),n=window.getComputedStyle(e,null),r="content-box"===n.boxSizing?Math.round(parseFloat(n.height)):e.offsetHeight;if(re.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||(o[n]=e[n]);return o}n.d(t,"a",(function(){return r}))},45:function(e,t,n){"use strict";function r(e,t,n,r,o,i,c){try{var a=e[i](c),s=a.value}catch(e){return void n(e)}a.done?t(s):Promise.resolve(s).then(r,o)}function o(e){return function(){var t=this,n=arguments;return new Promise((function(o,i){var c=e.apply(t,n);function a(e){r(c,o,i,a,s,"next",e)}function s(e){r(c,o,i,a,s,"throw",e)}a(void 0)}))}}n.d(t,"a",(function(){return o}))},453:function(e,t,n){"use strict";var r=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["optimist"])}}return{optimist:o,innerState:e}}e.exports=function(e){function t(t,n,o){return t.length&&(t=t.concat([{action:o}])),c(n=e(n,o),o),r({optimist:t},n)}return function(n,o){if(o.optimist)switch(o.optimist.type){case"BEGIN":return function(t,n){var o=a(t),i=o.optimist,s=o.innerState;return i=i.concat([{beforeState:s,action:n}]),c(s=e(s,n),n),r({optimist:i},s)}(n,o);case"COMMIT":return function(e,n){var r=a(e),o=r.optimist,c=r.innerState,s=[],u=!1,l=!1;return o.forEach((function(e){u?e.beforeState&&i(e.action,n.optimist.id)?(l=!0,s.push({action:e.action})):s.push(e):e.beforeState&&!i(e.action,n.optimist.id)?(u=!0,s.push(e)):e.beforeState&&i(e.action,n.optimist.id)&&(l=!0)})),l||console.error('Cannot commit transaction with id "'+n.optimist.id+'" because it does not exist'),t(o=s,c,n)}(n,o);case"REVERT":return function(n,r){var o=a(n),s=o.optimist,u=o.innerState,l=[],d=!1,p=!1,b=u;return s.forEach((function(t){t.beforeState&&i(t.action,r.optimist.id)&&(b=t.beforeState,p=!0),i(t.action,r.optimist.id)||(t.beforeState&&(d=!0),d&&(p&&t.beforeState?l.push({beforeState:b,action:t.action}):l.push(t)),p&&(b=e(b,t.action),c(u,r)))})),p||console.error('Cannot revert transaction with id "'+r.optimist.id+'" because it does not exist'),t(s=l,b,r)}(n,o)}var s=a(n),u=s.optimist,l=s.innerState;if(n&&!u.length){var d=e(l,o);return d===l?n:(c(d,o),r({optimist:u},d))}return t(u,l,o)}},e.exports.BEGIN="BEGIN",e.exports.COMMIT="COMMIT",e.exports.REVERT="REVERT"},47:function(e,t){!function(){e.exports=this.wp.apiFetch}()},471:function(e,t,n){"use strict";n.r(t),n.d(t,"userAutocompleter",(function(){return Ar})),n.d(t,"AutosaveMonitor",(function(){return Vr})),n.d(t,"DocumentOutline",(function(){return Jr})),n.d(t,"DocumentOutlineCheck",(function(){return Zr})),n.d(t,"VisualEditorGlobalKeyboardShortcuts",(function(){return no})),n.d(t,"EditorGlobalKeyboardShortcuts",(function(){return ro})),n.d(t,"TextEditorGlobalKeyboardShortcuts",(function(){return oo})),n.d(t,"EditorKeyboardShortcutsRegister",(function(){return io})),n.d(t,"EditorHistoryRedo",(function(){return lo})),n.d(t,"EditorHistoryUndo",(function(){return bo})),n.d(t,"EditorNotices",(function(){return ho})),n.d(t,"EntitiesSavedStates",(function(){return Po})),n.d(t,"ErrorBoundary",(function(){return wo})),n.d(t,"LocalAutosaveMonitor",(function(){return Bo})),n.d(t,"PageAttributesCheck",(function(){return Io})),n.d(t,"PageAttributesOrder",(function(){return Do})),n.d(t,"PageAttributesParent",(function(){return Mo})),n.d(t,"PageTemplate",(function(){return Vo})),n.d(t,"PostAuthor",(function(){return Ho})),n.d(t,"PostAuthorCheck",(function(){return zo})),n.d(t,"PostComments",(function(){return Wo})),n.d(t,"PostExcerpt",(function(){return Go})),n.d(t,"PostExcerptCheck",(function(){return Ko})),n.d(t,"PostFeaturedImage",(function(){return ti})),n.d(t,"PostFeaturedImageCheck",(function(){return Qo})),n.d(t,"PostFormat",(function(){return oi})),n.d(t,"PostFormatCheck",(function(){return ni})),n.d(t,"PostLastRevision",(function(){return ai})),n.d(t,"PostLastRevisionCheck",(function(){return ci})),n.d(t,"PostLockedModal",(function(){return bi})),n.d(t,"PostPendingStatus",(function(){return hi})),n.d(t,"PostPendingStatusCheck",(function(){return fi})),n.d(t,"PostPingbacks",(function(){return mi})),n.d(t,"PostPreviewButton",(function(){return li})),n.d(t,"PostPublishButton",(function(){return ji})),n.d(t,"PostPublishButtonLabel",(function(){return vi})),n.d(t,"PostPublishPanel",(function(){return Zi})),n.d(t,"PostSavedState",(function(){return ic})),n.d(t,"PostSchedule",(function(){return wi})),n.d(t,"PostScheduleCheck",(function(){return cc})),n.d(t,"PostScheduleLabel",(function(){return Ci})),n.d(t,"PostSlug",(function(){return lc})),n.d(t,"PostSlugCheck",(function(){return ac})),n.d(t,"PostSticky",(function(){return pc})),n.d(t,"PostStickyCheck",(function(){return dc})),n.d(t,"PostSwitchToDraftButton",(function(){return oc})),n.d(t,"PostTaxonomies",(function(){return gc})),n.d(t,"PostTaxonomiesCheck",(function(){return jc})),n.d(t,"PostTextEditor",(function(){return kc})),n.d(t,"PostTitle",(function(){return Tc})),n.d(t,"PostTrash",(function(){return xc})),n.d(t,"PostTrashCheck",(function(){return Bc})),n.d(t,"PostTypeSupportCheck",(function(){return Ao})),n.d(t,"PostVisibility",(function(){return Si})),n.d(t,"PostVisibilityLabel",(function(){return Ei})),n.d(t,"PostVisibilityCheck",(function(){return Ic})),n.d(t,"TableOfContents",(function(){return Uc})),n.d(t,"UnsavedChangesWarning",(function(){return Fc})),n.d(t,"WordCount",(function(){return Dc})),n.d(t,"EditorProvider",(function(){return Jc})),n.d(t,"ServerSideRender",(function(){return ea.a})),n.d(t,"RichText",(function(){return ra})),n.d(t,"Autocomplete",(function(){return oa})),n.d(t,"AlignmentToolbar",(function(){return ia})),n.d(t,"BlockAlignmentToolbar",(function(){return ca})),n.d(t,"BlockControls",(function(){return aa})),n.d(t,"BlockEdit",(function(){return sa})),n.d(t,"BlockEditorKeyboardShortcuts",(function(){return ua})),n.d(t,"BlockFormatControls",(function(){return la})),n.d(t,"BlockIcon",(function(){return da})),n.d(t,"BlockInspector",(function(){return pa})),n.d(t,"BlockList",(function(){return ba})),n.d(t,"BlockMover",(function(){return fa})),n.d(t,"BlockNavigationDropdown",(function(){return ha})),n.d(t,"BlockSelectionClearer",(function(){return ma})),n.d(t,"BlockSettingsMenu",(function(){return va})),n.d(t,"BlockTitle",(function(){return Oa})),n.d(t,"BlockToolbar",(function(){return ga})),n.d(t,"ColorPalette",(function(){return ja})),n.d(t,"ContrastChecker",(function(){return ya})),n.d(t,"CopyHandler",(function(){return _a})),n.d(t,"DefaultBlockAppender",(function(){return ka})),n.d(t,"FontSizePicker",(function(){return Pa})),n.d(t,"Inserter",(function(){return Sa})),n.d(t,"InnerBlocks",(function(){return Ea})),n.d(t,"InspectorAdvancedControls",(function(){return wa})),n.d(t,"InspectorControls",(function(){return Ca})),n.d(t,"PanelColorSettings",(function(){return Ta})),n.d(t,"PlainText",(function(){return xa})),n.d(t,"RichTextShortcut",(function(){return Ba})),n.d(t,"RichTextToolbarButton",(function(){return Ia})),n.d(t,"__unstableRichTextInputEvent",(function(){return Aa})),n.d(t,"MediaPlaceholder",(function(){return Ra})),n.d(t,"MediaUpload",(function(){return Da})),n.d(t,"MediaUploadCheck",(function(){return Na})),n.d(t,"MultiSelectScrollIntoView",(function(){return La})),n.d(t,"NavigableToolbar",(function(){return Ua})),n.d(t,"ObserveTyping",(function(){return Fa})),n.d(t,"PreserveScrollInReorder",(function(){return Ma})),n.d(t,"SkipToSelectedBlock",(function(){return Va})),n.d(t,"URLInput",(function(){return za})),n.d(t,"URLInputButton",(function(){return Ha})),n.d(t,"URLPopover",(function(){return Wa})),n.d(t,"Warning",(function(){return Ga})),n.d(t,"WritingFlow",(function(){return Ka})),n.d(t,"createCustomColorsHOC",(function(){return qa})),n.d(t,"getColorClassName",(function(){return Qa})),n.d(t,"getColorObjectByAttributeValues",(function(){return $a})),n.d(t,"getColorObjectByColorValue",(function(){return Ya})),n.d(t,"getFontSize",(function(){return Xa})),n.d(t,"getFontSizeClass",(function(){return Ja})),n.d(t,"withColorContext",(function(){return Za})),n.d(t,"withColors",(function(){return es})),n.d(t,"withFontSizes",(function(){return ts})),n.d(t,"mediaUpload",(function(){return Gc})),n.d(t,"cleanForSlug",(function(){return V})),n.d(t,"storeConfig",(function(){return Pr})),n.d(t,"transformStyles",(function(){return i.transformStyles}));var r={};n.r(r),n.d(r,"hasEditorUndo",(function(){return K})),n.d(r,"hasEditorRedo",(function(){return q})),n.d(r,"isEditedPostNew",(function(){return Q})),n.d(r,"hasChangedContent",(function(){return $})),n.d(r,"isEditedPostDirty",(function(){return Y})),n.d(r,"hasNonPostEntityChanges",(function(){return X})),n.d(r,"isCleanNewPost",(function(){return J})),n.d(r,"getCurrentPost",(function(){return Z})),n.d(r,"getCurrentPostType",(function(){return ee})),n.d(r,"getCurrentPostId",(function(){return te})),n.d(r,"getCurrentPostRevisionsCount",(function(){return ne})),n.d(r,"getCurrentPostLastRevisionId",(function(){return re})),n.d(r,"getPostEdits",(function(){return oe})),n.d(r,"getReferenceByDistinctEdits",(function(){return ie})),n.d(r,"getCurrentPostAttribute",(function(){return ce})),n.d(r,"getEditedPostAttribute",(function(){return ae})),n.d(r,"getAutosaveAttribute",(function(){return se})),n.d(r,"getEditedPostVisibility",(function(){return ue})),n.d(r,"isCurrentPostPending",(function(){return le})),n.d(r,"isCurrentPostPublished",(function(){return de})),n.d(r,"isCurrentPostScheduled",(function(){return pe})),n.d(r,"isEditedPostPublishable",(function(){return be})),n.d(r,"isEditedPostSaveable",(function(){return fe})),n.d(r,"isEditedPostEmpty",(function(){return he})),n.d(r,"isEditedPostAutosaveable",(function(){return me})),n.d(r,"getAutosave",(function(){return ve})),n.d(r,"hasAutosave",(function(){return Oe})),n.d(r,"isEditedPostBeingScheduled",(function(){return ge})),n.d(r,"isEditedPostDateFloating",(function(){return je})),n.d(r,"isSavingPost",(function(){return ye})),n.d(r,"didPostSaveRequestSucceed",(function(){return _e})),n.d(r,"didPostSaveRequestFail",(function(){return ke})),n.d(r,"isAutosavingPost",(function(){return Pe})),n.d(r,"isPreviewingPost",(function(){return Se})),n.d(r,"getEditedPostPreviewLink",(function(){return Ee})),n.d(r,"getSuggestedPostFormat",(function(){return we})),n.d(r,"getBlocksForSerialization",(function(){return Ce})),n.d(r,"getEditedPostContent",(function(){return Te})),n.d(r,"getStateBeforeOptimisticTransaction",(function(){return xe})),n.d(r,"isPublishingPost",(function(){return Be})),n.d(r,"isPermalinkEditable",(function(){return Ie})),n.d(r,"getPermalink",(function(){return Ae})),n.d(r,"getEditedPostSlug",(function(){return Re})),n.d(r,"getPermalinkParts",(function(){return De})),n.d(r,"inSomeHistory",(function(){return Ne})),n.d(r,"isPostLocked",(function(){return Le})),n.d(r,"isPostSavingLocked",(function(){return Ue})),n.d(r,"isPostAutosavingLocked",(function(){return Fe})),n.d(r,"isPostLockTakeover",(function(){return Me})),n.d(r,"getPostLockUser",(function(){return Ve})),n.d(r,"getActivePostLock",(function(){return ze})),n.d(r,"canUserUseUnfilteredHTML",(function(){return He})),n.d(r,"isPublishSidebarEnabled",(function(){return We})),n.d(r,"getEditorBlocks",(function(){return Ge})),n.d(r,"getEditorSelectionStart",(function(){return Ke})),n.d(r,"getEditorSelectionEnd",(function(){return qe})),n.d(r,"__unstableIsEditorReady",(function(){return Qe})),n.d(r,"getEditorSettings",(function(){return $e})),n.d(r,"getBlockName",(function(){return Xe})),n.d(r,"isBlockValid",(function(){return Je})),n.d(r,"getBlockAttributes",(function(){return Ze})),n.d(r,"getBlock",(function(){return et})),n.d(r,"getBlocks",(function(){return tt})),n.d(r,"__unstableGetBlockWithoutInnerBlocks",(function(){return nt})),n.d(r,"getClientIdsOfDescendants",(function(){return rt})),n.d(r,"getClientIdsWithDescendants",(function(){return ot})),n.d(r,"getGlobalBlockCount",(function(){return it})),n.d(r,"getBlocksByClientId",(function(){return ct})),n.d(r,"getBlockCount",(function(){return at})),n.d(r,"getBlockSelectionStart",(function(){return st})),n.d(r,"getBlockSelectionEnd",(function(){return ut})),n.d(r,"getSelectedBlockCount",(function(){return lt})),n.d(r,"hasSelectedBlock",(function(){return dt})),n.d(r,"getSelectedBlockClientId",(function(){return pt})),n.d(r,"getSelectedBlock",(function(){return bt})),n.d(r,"getBlockRootClientId",(function(){return ft})),n.d(r,"getBlockHierarchyRootClientId",(function(){return ht})),n.d(r,"getAdjacentBlockClientId",(function(){return mt})),n.d(r,"getPreviousBlockClientId",(function(){return vt})),n.d(r,"getNextBlockClientId",(function(){return Ot})),n.d(r,"getSelectedBlocksInitialCaretPosition",(function(){return gt})),n.d(r,"getMultiSelectedBlockClientIds",(function(){return jt})),n.d(r,"getMultiSelectedBlocks",(function(){return yt})),n.d(r,"getFirstMultiSelectedBlockClientId",(function(){return _t})),n.d(r,"getLastMultiSelectedBlockClientId",(function(){return kt})),n.d(r,"isFirstMultiSelectedBlock",(function(){return Pt})),n.d(r,"isBlockMultiSelected",(function(){return St})),n.d(r,"isAncestorMultiSelected",(function(){return Et})),n.d(r,"getMultiSelectedBlocksStartClientId",(function(){return wt})),n.d(r,"getMultiSelectedBlocksEndClientId",(function(){return Ct})),n.d(r,"getBlockOrder",(function(){return Tt})),n.d(r,"getBlockIndex",(function(){return xt})),n.d(r,"isBlockSelected",(function(){return Bt})),n.d(r,"hasSelectedInnerBlock",(function(){return It})),n.d(r,"isBlockWithinSelection",(function(){return At})),n.d(r,"hasMultiSelection",(function(){return Rt})),n.d(r,"isMultiSelecting",(function(){return Dt})),n.d(r,"isSelectionEnabled",(function(){return Nt})),n.d(r,"getBlockMode",(function(){return Lt})),n.d(r,"isTyping",(function(){return Ut})),n.d(r,"isCaretWithinFormattedText",(function(){return Ft})),n.d(r,"getBlockInsertionPoint",(function(){return Mt})),n.d(r,"isBlockInsertionPointVisible",(function(){return Vt})),n.d(r,"isValidTemplate",(function(){return zt})),n.d(r,"getTemplate",(function(){return Ht})),n.d(r,"getTemplateLock",(function(){return Wt})),n.d(r,"canInsertBlockType",(function(){return Gt})),n.d(r,"getInserterItems",(function(){return Kt})),n.d(r,"hasInserterItems",(function(){return qt})),n.d(r,"getBlockListSettings",(function(){return Qt}));var o={};n.r(o),n.d(o,"setupEditor",(function(){return hn})),n.d(o,"__experimentalTearDownEditor",(function(){return mn})),n.d(o,"resetPost",(function(){return vn})),n.d(o,"resetAutosave",(function(){return On})),n.d(o,"__experimentalRequestPostUpdateStart",(function(){return gn})),n.d(o,"__experimentalRequestPostUpdateFinish",(function(){return jn})),n.d(o,"updatePost",(function(){return yn})),n.d(o,"setupEditorState",(function(){return _n})),n.d(o,"editPost",(function(){return kn})),n.d(o,"__experimentalOptimisticUpdatePost",(function(){return Pn})),n.d(o,"savePost",(function(){return Sn})),n.d(o,"refreshPost",(function(){return En})),n.d(o,"trashPost",(function(){return wn})),n.d(o,"autosave",(function(){return Cn})),n.d(o,"redo",(function(){return Tn})),n.d(o,"undo",(function(){return xn})),n.d(o,"createUndoLevel",(function(){return Bn})),n.d(o,"updatePostLock",(function(){return In})),n.d(o,"enablePublishSidebar",(function(){return An})),n.d(o,"disablePublishSidebar",(function(){return Rn})),n.d(o,"lockPostSaving",(function(){return Dn})),n.d(o,"unlockPostSaving",(function(){return Nn})),n.d(o,"lockPostAutosaving",(function(){return Ln})),n.d(o,"unlockPostAutosaving",(function(){return Un})),n.d(o,"resetEditorBlocks",(function(){return Fn})),n.d(o,"updateEditorSettings",(function(){return Mn})),n.d(o,"resetBlocks",(function(){return zn})),n.d(o,"receiveBlocks",(function(){return Hn})),n.d(o,"updateBlock",(function(){return Wn})),n.d(o,"updateBlockAttributes",(function(){return Gn})),n.d(o,"selectBlock",(function(){return Kn})),n.d(o,"startMultiSelect",(function(){return qn})),n.d(o,"stopMultiSelect",(function(){return Qn})),n.d(o,"multiSelect",(function(){return $n})),n.d(o,"clearSelectedBlock",(function(){return Yn})),n.d(o,"toggleSelection",(function(){return Xn})),n.d(o,"replaceBlocks",(function(){return Jn})),n.d(o,"replaceBlock",(function(){return Zn})),n.d(o,"moveBlocksDown",(function(){return er})),n.d(o,"moveBlocksUp",(function(){return tr})),n.d(o,"moveBlockToPosition",(function(){return nr})),n.d(o,"insertBlock",(function(){return rr})),n.d(o,"insertBlocks",(function(){return or})),n.d(o,"showInsertionPoint",(function(){return ir})),n.d(o,"hideInsertionPoint",(function(){return cr})),n.d(o,"setTemplateValidity",(function(){return ar})),n.d(o,"synchronizeTemplate",(function(){return sr})),n.d(o,"mergeBlocks",(function(){return ur})),n.d(o,"removeBlocks",(function(){return lr})),n.d(o,"removeBlock",(function(){return dr})),n.d(o,"toggleBlockMode",(function(){return pr})),n.d(o,"startTyping",(function(){return br})),n.d(o,"stopTyping",(function(){return fr})),n.d(o,"enterFormattedText",(function(){return hr})),n.d(o,"exitFormattedText",(function(){return mr})),n.d(o,"insertDefaultBlock",(function(){return vr})),n.d(o,"updateBlockListSettings",(function(){return Or}));var i=n(6),c=n(11),a=n(83),s=n(53),u=(n(94),n(122)),l=n(25),d=(n(101),n(5)),p=n(4),b=n(32),f=n(40),h=n(293),m=n.n(h),v=n(2);function O(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function g(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SETUP_EDITOR_STATE":case"RESET_POST":case"UPDATE_POST":return t.post.id}return e},postType:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SETUP_EDITOR_STATE":case"RESET_POST":case"UPDATE_POST":return t.post.type}return e},preferences:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:j,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"ENABLE_PUBLISH_SIDEBAR":return k(k({},e),{},{isPublishSidebarEnabled:!0});case"DISABLE_PUBLISH_SIDEBAR":return k(k({},e),{},{isPublishSidebarEnabled:!1})}return e},saving:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"REQUEST_POST_UPDATE_START":case"REQUEST_POST_UPDATE_FINISH":return{pending:"REQUEST_POST_UPDATE_START"===t.type,options:t.options||{}}}return e},postLock:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{isLocked:!1},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"UPDATE_POST_LOCK":return t.lock}return e},template:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{isValid:!0},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SET_TEMPLATE_VALIDITY":return k(k({},e),{},{isValid:t.isValid})}return e},postSavingLock:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"LOCK_POST_SAVING":return k(k({},e),{},Object(d.a)({},t.lockName,!0));case"UNLOCK_POST_SAVING":return Object(v.omit)(e,t.lockName)}return e},isReady:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SETUP_EDITOR_STATE":return!0;case"TEAR_DOWN_EDITOR":return!1}return e},editorSettings:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:y,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"UPDATE_EDITOR_SETTINGS":return k(k({},e),t.settings)}return e},postAutosavingLock:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"LOCK_POST_AUTOSAVING":return k(k({},e),{},Object(d.a)({},t.lockName,!0));case"UNLOCK_POST_AUTOSAVING":return Object(v.omit)(e,t.lockName)}return e}})),E=n(12),w=n(75),C=n(30),T=n(36),x=n.n(T),B=n(0),I=new Set(["meta"]),A="core/editor",R=/%(?:postname|pagename)%/,D=["title","excerpt","content"],N=n(60),L=n.n(N),U=n(107),F=L()((function(e){1===e.length&&Object(c.isUnmodifiedDefaultBlock)(e[0])&&(e=[]);var t=Object(c.serialize)(e);return 1===e.length&&e[0].name===Object(c.getFreeformContentHandlerName)()&&(t=Object(U.removep)(t)),t}),{maxSize:1});function M(e,t){return Object(C.addQueryArgs)(e,t)}function V(e){return e?Object(v.trim)(Object(v.deburr)(e).replace(/[\s\./]+/g,"-").replace(/[^\w-]+/g,"").toLowerCase(),"-"):""}function z(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function H(e){for(var t=1;t1)return!1;var n=t[0].name;if(n!==Object(c.getDefaultBlockName)()&&n!==Object(c.getFreeformContentHandlerName)())return!1}return!Te(e)}var me=Object(p.createRegistrySelector)((function(e){return function(t){if(!fe(t))return!1;if(Fe(t))return!1;var n=ee(t),r=te(t),o=e("core").hasFetchedAutosaves(n,r),i=Object(v.get)(e("core").getCurrentUser(),["id"]),c=e("core").getAutosave(n,r,i);return!!o&&(!c||(!!$(t)||["title","excerpt"].some((function(e){return P(c[e])!==ae(t,e)}))))}})),ve=Object(p.createRegistrySelector)((function(e){return function(t){x()("`wp.data.select( 'core/editor' ).getAutosave()`",{alternative:"`wp.data.select( 'core' ).getAutosave( postType, postId, userId )`",plugin:"Gutenberg"});var n=ee(t),r=te(t),o=Object(v.get)(e("core").getCurrentUser(),["id"]),i=e("core").getAutosave(n,r,o);return Object(v.mapValues)(Object(v.pick)(i,D),P)}})),Oe=Object(p.createRegistrySelector)((function(e){return function(t){x()("`wp.data.select( 'core/editor' ).hasAutosave()`",{alternative:"`!! wp.data.select( 'core' ).getAutosave( postType, postId, userId )`",plugin:"Gutenberg"});var n=ee(t),r=te(t),o=Object(v.get)(e("core").getCurrentUser(),["id"]);return!!e("core").getAutosave(n,r,o)}}));function ge(e){var t=ae(e,"date"),n=new Date(Number(Object(w.getDate)(t))-6e4);return Object(w.isInTheFuture)(n)}function je(e){var t=ae(e,"date"),n=ae(e,"modified"),r=ae(e,"status");return("draft"===r||"auto-draft"===r||"pending"===r)&&(t===n||null===t)}var ye=Object(p.createRegistrySelector)((function(e){return function(t){var n=ee(t),r=te(t);return e("core").isSavingEntityRecord("postType",n,r)}})),_e=Object(p.createRegistrySelector)((function(e){return function(t){var n=ee(t),r=te(t);return!e("core").getLastEntitySaveError("postType",n,r)}})),ke=Object(p.createRegistrySelector)((function(e){return function(t){var n=ee(t),r=te(t);return!!e("core").getLastEntitySaveError("postType",n,r)}}));function Pe(e){return!!ye(e)&&!!Object(v.get)(e.saving,["options","isAutosave"])}function Se(e){return!!ye(e)&&!!e.saving.options.isPreview}function Ee(e){if(!e.saving.pending&&!ye(e)){var t=se(e,"preview_link");t||(t=ae(e,"link"))&&(t=Object(C.addQueryArgs)(t,{preview:!0}));var n=ae(e,"featured_media");return t&&n?Object(C.addQueryArgs)(t,{_thumbnail_id:n}):t}}function we(e){var t,n=Ge(e);if(n.length>2)return null;if(1===n.length&&"core/embed"===(t=n[0].name)){var r,o=null===(r=n[0].attributes)||void 0===r?void 0:r.providerNameSlug;["youtube","vimeo"].includes(o)?t="core/video":["spotify","soundcloud"].includes(o)&&(t="core/audio")}switch(2===n.length&&"core/paragraph"===n[1].name&&(t=n[0].name),t){case"core/image":return"image";case"core/quote":case"core/pullquote":return"quote";case"core/gallery":return"gallery";case"core/video":return"video";case"core/audio":return"audio";default:return null}}function Ce(e){x()("`core/editor` getBlocksForSerialization selector",{plugin:"Gutenberg",alternative:"getEditorBlocks",hint:"Blocks serialization pre-processing occurs at save time"});var t=e.editor.present.blocks.value;return 1===t.length&&Object(c.isUnmodifiedDefaultBlock)(t[0])?[]:t}var Te=Object(p.createRegistrySelector)((function(e){return function(t){var n=te(t),r=ee(t),o=e("core").getEditedEntityRecord("postType",r,n);if(o){if("function"==typeof o.content)return o.content(o);if(o.blocks)return F(o.blocks);if(o.content)return o.content}return""}}));function xe(e,t){var n=Object(v.find)(e.optimist,(function(e){return e.beforeState&&Object(v.get)(e.action,["optimist","id"])===t}));return n?n.beforeState:null}function Be(e){if(!ye(e))return!1;if(!de(e))return!1;var t=xe(e,"post-update");return!!t&&!de(null,t.currentPost)}function Ie(e){var t=ae(e,"permalink_template");return R.test(t)}function Ae(e){var t=De(e);if(!t)return null;var n=t.prefix,r=t.postName,o=t.suffix;return Ie(e)?n+r+o:n}function Re(e){return ae(e,"slug")||V(ae(e,"title"))||te(e)}function De(e){var t=ae(e,"permalink_template");if(!t)return null;var n=ae(e,"slug")||ae(e,"generated_slug"),r=t.split(R),o=Object(E.a)(r,2);return{prefix:o[0],postName:n,suffix:o[1]}}function Ne(e,t){var n=e.optimist;return!!n&&n.some((function(e){var n=e.beforeState;return n&&t(n)}))}function Le(e){return e.postLock.isLocked}function Ue(e){return Object.keys(e.postSavingLock).length>0}function Fe(e){return Object.keys(e.postAutosavingLock).length>0}function Me(e){return e.postLock.isTakeover}function Ve(e){return e.postLock.user}function ze(e){return e.postLock.activePostLock}function He(e){return Object(v.has)(Z(e),["_links","wp:action-unfiltered-html"])}function We(e){return e.preferences.hasOwnProperty("isPublishSidebarEnabled")?e.preferences.isPublishSidebarEnabled:j.isPublishSidebarEnabled}function Ge(e){return ae(e,"blocks")||G}function Ke(e){return ae(e,"selectionStart")}function qe(e){return ae(e,"selectionEnd")}function Qe(e){return e.isReady}function $e(e){return e.editorSettings}function Ye(e){return Object(p.createRegistrySelector)((function(t){return function(n){var r;x()("`wp.data.select( 'core/editor' )."+e+"`",{alternative:"`wp.data.select( 'core/block-editor' )."+e+"`"});for(var o=arguments.length,i=new Array(o>1?o-1:0),c=1;c]*>/.test(r.message)&&(a=[a,r.message].join(" ")),[a,{id:"SAVE_POST_NOTICE_ID"}]}function nn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function rn(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};return{type:"REQUEST_POST_UPDATE_START",options:e}}function jn(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{type:"REQUEST_POST_UPDATE_FINISH",options:e}}function yn(e){return{type:"UPDATE_POST",edits:e}}function _n(e){return{type:"SETUP_EDITOR_STATE",post:e}}function kn(e,t){var n,r,o;return Jt.a.wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,Object(b.select)(A,"getCurrentPost");case 2:return n=i.sent,r=n.id,o=n.type,i.next=7,Object(b.dispatch)("core","editEntityRecord","postType",o,r,e,t);case 7:case"end":return i.stop()}}),an)}function Pn(e){return rn(rn({},yn(e)),{},{optimist:{id:"post-update"}})}function Sn(){var e,t,n,r,o,i,c,a=arguments;return Jt.a.wrap((function(s){for(;;)switch(s.prev=s.next){case 0:return e=a.length>0&&void 0!==a[0]?a[0]:{},s.next=3,Object(b.select)(A,"isEditedPostSaveable");case 3:if(s.sent){s.next=5;break}return s.abrupt("return");case 5:return s.next=7,Object(b.select)(A,"getEditedPostContent");case 7:if(s.t0=s.sent,t={content:s.t0},e.isAutosave){s.next=12;break}return s.next=12,Object(b.dispatch)(A,"editPost",t,{undoIgnore:!0});case 12:return s.next=14,gn(e);case 14:return s.next=16,Object(b.select)(A,"getCurrentPost");case 16:return n=s.sent,s.t1=rn,s.t2=rn,s.t3={id:n.id},s.next=22,Object(b.select)("core","getEntityRecordNonTransientEdits","postType",n.type,n.id);case 22:return s.t4=s.sent,s.t5=(0,s.t2)(s.t3,s.t4),s.t6=t,t=(0,s.t1)(s.t5,s.t6),s.next=28,Object(b.dispatch)("core","saveEntityRecord","postType",n.type,t,e);case 28:return s.next=30,jn(e);case 30:return s.next=32,Object(b.select)("core","getLastEntitySaveError","postType",n.type,n.id);case 32:if(!(r=s.sent)){s.next=40;break}if(!(o=tn({post:n,edits:t,error:r})).length){s.next=38;break}return s.next=38,b.dispatch.apply(void 0,["core/notices","createErrorNotice"].concat(Object(Yt.a)(o)));case 38:s.next=58;break;case 40:return s.next=42,Object(b.select)(A,"getCurrentPost");case 42:return i=s.sent,s.t7=en,s.t8=n,s.t9=i,s.next=48,Object(b.select)("core","getPostType",i.type);case 48:if(s.t10=s.sent,s.t11=e,s.t12={previousPost:s.t8,post:s.t9,postType:s.t10,options:s.t11},!(c=(0,s.t7)(s.t12)).length){s.next=55;break}return s.next=55,b.dispatch.apply(void 0,["core/notices","createSuccessNotice"].concat(Object(Yt.a)(c)));case 55:if(e.isAutosave){s.next=58;break}return s.next=58,Object(b.dispatch)("core/block-editor","__unstableMarkLastChangeAsPersistent");case 58:case"end":return s.stop()}}),sn)}function En(){var e,t,n,r;return Jt.a.wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,Object(b.select)(A,"getCurrentPost");case 2:return e=o.sent,o.next=5,Object(b.select)(A,"getCurrentPostType");case 5:return t=o.sent,o.next=8,Object(b.select)("core","getPostType",t);case 8:return n=o.sent,o.next=11,Object(b.apiFetch)({path:"/wp/v2/".concat(n.rest_base,"/").concat(e.id)+"?context=edit&_timestamp=".concat(Date.now())});case 11:return r=o.sent,o.next=14,Object(b.dispatch)(A,"resetPost",r);case 14:case"end":return o.stop()}}),un)}function wn(){var e,t,n;return Jt.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,Object(b.select)(A,"getCurrentPostType");case 2:return e=r.sent,r.next=5,Object(b.select)("core","getPostType",e);case 5:return t=r.sent,r.next=8,Object(b.dispatch)("core/notices","removeNotice","TRASH_POST_NOTICE_ID");case 8:return r.prev=8,r.next=11,Object(b.select)(A,"getCurrentPost");case 11:return n=r.sent,r.next=14,Object(b.apiFetch)({path:"/wp/v2/".concat(t.rest_base,"/").concat(n.id),method:"DELETE"});case 14:return r.next=16,Object(b.dispatch)(A,"savePost");case 16:r.next=22;break;case 18:return r.prev=18,r.t0=r.catch(8),r.next=22,b.dispatch.apply(void 0,["core/notices","createErrorNotice"].concat(Object(Yt.a)([(o={error:r.t0}).error.message&&"unknown_error"!==o.error.code?o.error.message:Object(Zt.__)("Trashing failed"),{id:"TRASH_POST_NOTICE_ID"}])));case 22:case"end":return r.stop()}var o}),ln,null,[[8,18]])}function Cn(){var e,t,n,r,o,i,c,a,s,u=arguments;return Jt.a.wrap((function(l){for(;;)switch(l.prev=l.next){case 0:if(e=u.length>0&&void 0!==u[0]?u[0]:{},t=e.local,n=void 0!==t&&t,r=Object($t.a)(e,["local"]),!n){l.next=21;break}return l.next=4,Object(b.select)(A,"getCurrentPost");case 4:return o=l.sent,l.next=7,Object(b.select)(A,"isEditedPostNew");case 7:return i=l.sent,l.next=10,Object(b.select)(A,"getEditedPostAttribute","title");case 10:return c=l.sent,l.next=13,Object(b.select)(A,"getEditedPostAttribute","content");case 13:return a=l.sent,l.next=16,Object(b.select)(A,"getEditedPostAttribute","excerpt");case 16:return s=l.sent,l.next=19,{type:"LOCAL_AUTOSAVE_SET",postId:o.id,isPostNew:i,title:c,content:a,excerpt:s};case 19:l.next=23;break;case 21:return l.next=23,Object(b.dispatch)(A,"savePost",rn({isAutosave:!0},r));case 23:case"end":return l.stop()}}),dn)}function Tn(){return Jt.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(b.dispatch)("core","redo");case 2:case"end":return e.stop()}}),pn)}function xn(){return Jt.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(b.dispatch)("core","undo");case 2:case"end":return e.stop()}}),bn)}function Bn(){return{type:"CREATE_UNDO_LEVEL"}}function In(e){return{type:"UPDATE_POST_LOCK",lock:e}}function An(){return{type:"ENABLE_PUBLISH_SIDEBAR"}}function Rn(){return{type:"DISABLE_PUBLISH_SIDEBAR"}}function Dn(e){return{type:"LOCK_POST_SAVING",lockName:e}}function Nn(e){return{type:"UNLOCK_POST_SAVING",lockName:e}}function Ln(e){return{type:"LOCK_POST_AUTOSAVING",lockName:e}}function Un(e){return{type:"UNLOCK_POST_AUTOSAVING",lockName:e}}function Fn(e){var t,n,r,o,i,c,a,s,u=arguments;return Jt.a.wrap((function(l){for(;;)switch(l.prev=l.next){case 0:if(t=u.length>1&&void 0!==u[1]?u[1]:{},n=t.__unstableShouldCreateUndoLevel,r=t.selectionStart,o=t.selectionEnd,i={blocks:e,selectionStart:r,selectionEnd:o},!1===n){l.next=19;break}return l.next=6,Object(b.select)(A,"getCurrentPost");case 6:return c=l.sent,a=c.id,s=c.type,l.next=11,Object(b.syncSelect)("core","getEditedEntityRecord","postType",s,a);case 11:if(l.t0=l.sent.blocks,l.t1=i.blocks,!(l.t0===l.t1)){l.next=18;break}return l.next=17,Object(b.dispatch)("core","__unstableCreateUndoLevel","postType",s,a);case 17:return l.abrupt("return",l.sent);case 18:i.content=function(e){var t=e.blocks;return F(void 0===t?[]:t)};case 19:return l.delegateYield(kn(i),"t2",20);case 20:case"end":return l.stop()}}),fn)}function Mn(e){return{type:"UPDATE_EDITOR_SETTINGS",settings:e}}var Vn=function(e){return Jt.a.mark((function t(){var n,r,o,i=arguments;return Jt.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:for(x()("`wp.data.dispatch( 'core/editor' )."+e+"`",{alternative:"`wp.data.dispatch( 'core/block-editor' )."+e+"`"}),n=i.length,r=new Array(n),o=0;o0&&void 0!==arguments[0]?arguments[0]:[];return e.push(Object(v.clone)(Ar)),e}));var Rr=n(21),Dr=n(22),Nr=n(23),Lr=n(24),Ur=n(19);function Fr(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Ur.a)(e);if(t){var o=Object(Ur.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(Lr.a)(this,n)}}var Mr=function(e){Object(Nr.a)(n,e);var t=Fr(n);function n(e){var r;return Object(Rr.a)(this,n),(r=t.call(this,e)).needsAutosave=!(!e.isDirty||!e.isAutosaveable),r}return Object(Dr.a)(n,[{key:"componentDidMount",value:function(){this.props.disableIntervalChecks||this.setAutosaveTimer()}},{key:"componentDidUpdate",value:function(e){this.props.disableIntervalChecks&&this.props.editsReference!==e.editsReference?this.props.autosave():(this.props.isDirty||!e.isDirty)&&(!this.props.isAutosaving||e.isAutosaving)?this.props.editsReference!==e.editsReference&&(this.needsAutosave=!0):this.needsAutosave=!1}},{key:"componentWillUnmount",value:function(){clearTimeout(this.timerId)}},{key:"setAutosaveTimer",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1e3*this.props.interval;this.timerId=setTimeout((function(){e.autosaveTimerHandler()}),t)}},{key:"autosaveTimerHandler",value:function(){this.props.isAutosaveable?(this.needsAutosave&&(this.needsAutosave=!1,this.props.autosave()),this.setAutosaveTimer()):this.setAutosaveTimer(1e3)}},{key:"render",value:function(){return null}}]),n}(B.Component),Vr=Object(Er.compose)([Object(p.withSelect)((function(e,t){var n=e("core").getReferenceByDistinctEdits,r=e("core/editor"),o=r.isEditedPostDirty,i=r.isEditedPostAutosaveable,c=r.isAutosavingPost,a=r.getEditorSettings,s=t.interval,u=void 0===s?a().autosaveInterval:s;return{editsReference:n(),isDirty:o(),isAutosaveable:i(),isAutosaving:c(),interval:u}})),Object(p.withDispatch)((function(e,t){return{autosave:function(){var n=t.autosave,r=void 0===n?e("core/editor").autosave:n;r()}}}))])(Mr),zr=n(9),Hr=n.n(zr),Wr=function(e){var t=e.children,n=e.isValid,r=e.level,o=e.href,i=e.onSelect;return Object(B.createElement)("li",{className:Hr()("document-outline__item","is-".concat(r.toLowerCase()),{"is-invalid":!n})},Object(B.createElement)("a",{href:o,className:"document-outline__button",onClick:i},Object(B.createElement)("span",{className:"document-outline__emdash","aria-hidden":"true"}),Object(B.createElement)("strong",{className:"document-outline__level"},r),Object(B.createElement)("span",{className:"document-outline__item-content"},t)))};function Gr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Kr(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:[];return Object(v.flatMap)(t,(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return"core/heading"===t.name?Kr(Kr({},t),{},{level:t.attributes.level,isEmpty:Xr(t)}):e(t.innerBlocks)}))}(n);if(a.length<1)return null;var s=1,u=document.querySelector(".editor-post-title__input"),d=i&&r&&u,p=Object(v.countBy)(a,"level")[1]>1;return Object(B.createElement)("div",{className:"document-outline"},Object(B.createElement)("ul",null,d&&Object(B.createElement)(Wr,{level:Object(Zt.__)("Title"),isValid:!0,onSelect:o,href:"#".concat(u.id),isDisabled:c},r),a.map((function(e,t){var n=e.level>s+1,r=!(e.isEmpty||n||!e.level||1===e.level&&(p||d));return s=e.level,Object(B.createElement)(Wr,{key:t,level:"H".concat(e.level),isValid:r,isDisabled:c,href:"#block-".concat(e.clientId),onSelect:o},e.isEmpty?qr:Object(l.getTextContent)(Object(l.create)({html:e.attributes.content})),n&&Qr,1===e.level&&p&&Yr,d&&1===e.level&&!p&&$r)}))))}));var Zr=Object(p.withSelect)((function(e){return{blocks:e("core/block-editor").getBlocks()}}))((function(e){var t=e.blocks,n=e.children;return Object(v.filter)(t,(function(e){return"core/heading"===e.name})).length<1?null:n}));var eo=function(e){var t=e.resetBlocksOnSave,n=Object(p.useDispatch)("core/editor"),r=n.resetEditorBlocks,o=n.savePost,i=Object(p.useSelect)((function(e){var t=e("core/editor");return{isEditedPostDirty:t.isEditedPostDirty,getPostEdits:t.getPostEdits}}),[]),a=i.isEditedPostDirty,u=i.getPostEdits;return Object(s.useShortcut)("core/editor/save",(function(e){if(e.preventDefault(),a()){if(t){var n=u();if(n.content&&"string"==typeof n.content){var i=Object(c.parse)(n.content);r(i)}}o()}}),{bindGlobal:!0}),null};function to(){var e=Object(p.useDispatch)("core/editor"),t=e.redo,n=e.undo;return Object(s.useShortcut)("core/editor/undo",(function(e){n(),e.preventDefault()}),{bindGlobal:!0}),Object(s.useShortcut)("core/editor/redo",(function(e){t(),e.preventDefault()}),{bindGlobal:!0}),Object(B.createElement)(B.Fragment,null,Object(B.createElement)(i.BlockEditorKeyboardShortcuts,null),Object(B.createElement)(eo,null))}var no=to;function ro(){return x()("EditorGlobalKeyboardShortcuts",{alternative:"VisualEditorGlobalKeyboardShortcuts",plugin:"Gutenberg"}),Object(B.createElement)(to,null)}function oo(){return Object(B.createElement)(eo,{resetBlocksOnSave:!0})}var io=function(){var e=Object(p.useDispatch)("core/keyboard-shortcuts").registerShortcut;return Object(B.useEffect)((function(){e({name:"core/editor/save",category:"global",description:Object(Zt.__)("Save your changes."),keyCombination:{modifier:"primary",character:"s"}}),e({name:"core/editor/undo",category:"global",description:Object(Zt.__)("Undo your last changes."),keyCombination:{modifier:"primary",character:"z"}}),e({name:"core/editor/redo",category:"global",description:Object(Zt.__)("Redo your last undo."),keyCombination:{modifier:"primaryShift",character:"z"}})}),[e]),Object(B.createElement)(i.BlockEditorKeyboardShortcuts.Register,null)},co=n(3),ao=n(18),so=n(7),uo=Object(B.createElement)(so.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(B.createElement)(so.Path,{d:"M15.6 6.5l-1.1 1 2.9 3.3H8c-.9 0-1.7.3-2.3.9-1.4 1.5-1.4 4.2-1.4 5.6v.2h1.5v-.3c0-1.1 0-3.5 1-4.5.3-.3.7-.5 1.3-.5h9.2L14.5 15l1.1 1.1 4.6-4.6-4.6-5z"}));var lo=Object(B.forwardRef)((function(e,t){var n=Object(p.useSelect)((function(e){return e("core/editor").hasEditorRedo()}),[]),r=Object(p.useDispatch)("core/editor").redo;return Object(B.createElement)(co.Button,Object(Sr.a)({},e,{ref:t,icon:uo,label:Object(Zt.__)("Redo"),shortcut:ao.displayShortcut.primaryShift("z"),"aria-disabled":!n,onClick:n?r:void 0,className:"editor-history__redo"}))})),po=Object(B.createElement)(so.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(B.createElement)(so.Path,{d:"M18.3 11.7c-.6-.6-1.4-.9-2.3-.9H6.7l2.9-3.3-1.1-1-4.5 5L8.5 16l1-1-2.7-2.7H16c.5 0 .9.2 1.3.5 1 1 1 3.4 1 4.5v.3h1.5v-.2c0-1.5 0-4.3-1.5-5.7z"}));var bo=Object(B.forwardRef)((function(e,t){var n=Object(p.useSelect)((function(e){return e("core/editor").hasEditorUndo()}),[]),r=Object(p.useDispatch)("core/editor").undo;return Object(B.createElement)(co.Button,Object(Sr.a)({},e,{ref:t,icon:po,label:Object(Zt.__)("Undo"),shortcut:ao.displayShortcut.primary("z"),"aria-disabled":!n,onClick:n?r:void 0,className:"editor-history__undo"}))}));var fo=Object(Er.compose)([Object(p.withSelect)((function(e){return{isValid:e("core/block-editor").isValidTemplate()}})),Object(p.withDispatch)((function(e){var t=e("core/block-editor"),n=t.setTemplateValidity;return{resetTemplateValidity:function(){return n(!0)},synchronizeTemplate:t.synchronizeTemplate}}))])((function(e){var t=e.isValid,n=Object($t.a)(e,["isValid"]);return t?null:Object(B.createElement)(co.Notice,{className:"editor-template-validation-notice",isDismissible:!1,status:"warning",actions:[{label:Object(Zt.__)("Keep it as is"),onClick:n.resetTemplateValidity},{label:Object(Zt.__)("Reset the template"),onClick:function(){window.confirm(Object(Zt.__)("Resetting the template may result in loss of content, do you want to continue?"))&&n.synchronizeTemplate()},isPrimary:!0}]},Object(Zt.__)("The content of your post doesn’t match the template assigned to your post type."))}));var ho=Object(Er.compose)([Object(p.withSelect)((function(e){return{notices:e("core/notices").getNotices()}})),Object(p.withDispatch)((function(e){return{onRemove:e("core/notices").removeNotice}}))])((function(e){var t=e.notices,n=e.onRemove,r=Object(v.filter)(t,{isDismissible:!0,type:"default"}),o=Object(v.filter)(t,{isDismissible:!1,type:"default"}),i=Object(v.filter)(t,{type:"snackbar"});return Object(B.createElement)(B.Fragment,null,Object(B.createElement)(co.NoticeList,{notices:o,className:"components-editor-notices__pinned"}),Object(B.createElement)(co.NoticeList,{notices:r,className:"components-editor-notices__dismissible",onRemove:n},Object(B.createElement)(fo,null)),Object(B.createElement)(co.SnackbarList,{notices:i,className:"components-editor-notices__snackbar",onRemove:n}))})),mo=n(160),vo=n(319),Oo=Object(B.createElement)(so.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(B.createElement)(so.Path,{d:"M7 5.5h10a.5.5 0 01.5.5v12a.5.5 0 01-.5.5H7a.5.5 0 01-.5-.5V6a.5.5 0 01.5-.5zM17 4H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V6a2 2 0 00-2-2zm-1 3.75H8v1.5h8v-1.5zM8 11h8v1.5H8V11zm6 3.25H8v1.5h6v-1.5z"}));function go(e){var t=e.record,n=e.checked,r=e.onChange,o=e.closePanel,i=t.name,c=t.kind,a=t.title,s=t.key,u=Object(p.useSelect)((function(e){var t,n=e("core").getEditedEntityRecord(c,i,s).blocks,r=void 0===n?[]:n,o=e("core/block-editor").getBlockParents(null===(t=r[0])||void 0===t?void 0:t.clientId);return o[o.length-1]}),[]),l=Object(p.useSelect)((function(e){return e("core/block-editor").getSelectedBlockClientId()===u}),[u]),d=l?Object(Zt.__)("Selected"):Object(Zt.__)("Select"),b=Object(p.useDispatch)("core/block-editor").selectBlock,f=Object(B.useCallback)((function(){return b(u)}),[u]),h=Object(B.useCallback)((function(){b(u),o()}),[u]);return Object(B.createElement)(co.PanelRow,null,Object(B.createElement)(co.CheckboxControl,{label:Object(B.createElement)("strong",null,a||Object(Zt.__)("Untitled")),checked:n,onChange:r}),u?Object(B.createElement)(B.Fragment,null,Object(B.createElement)(co.Button,{onClick:f,className:"entities-saved-states__find-entity",disabled:l},d),Object(B.createElement)(co.Button,{onClick:h,className:"entities-saved-states__find-entity-small",disabled:l},d)):null)}var jo={site:vo.a,page:Oo};function yo(e){var t=e.list,n=e.unselectedEntities,r=e.setUnselectedEntities,o=e.closePanel,i=t[0],c=Object(p.useSelect)((function(e){return e("core").getEntity(i.kind,i.name)}),[i.kind,i.name]),a=i.name,s=jo[a];return Object(B.createElement)(co.PanelBody,{title:c.label,initialOpen:!0,icon:s},t.map((function(e){return Object(B.createElement)(go,{key:e.key||"site",record:e,checked:!Object(v.some)(n,(function(t){return t.kind===e.kind&&t.name===e.name&&t.key===e.key})),onChange:function(t){return r(e,t)},closePanel:o})})))}var _o={wp_template_part:function(e){return Object(Zt._n)("template part","template parts",e)},wp_template:function(e){return Object(Zt._n)("template","templates",e)},post:function(e){return Object(Zt._n)("post","posts",e)},page:function(e){return Object(Zt._n)("page","pages",e)},site:function(e){return Object(Zt._n)("site","sites",e)}},ko={0:Object(Zt.__)("There are no changes."),1:Object(Zt.__)("Changes have been made to your %s."),2:Object(Zt.__)("Changes have been made to your %1$s and %2$s."),3:Object(Zt.__)("Changes have been made to your %1$s, %2$s, and %3$s."),4:Object(Zt.__)("Changes have been made to your %1$s, %2$s, %3$s, and %4$s."),5:Object(Zt.__)("Changes have been made to your %1$s, %2$s, %3$s, %4$s, and %5$s.")};function Po(e){var t=e.isOpen,n=e.close,r=Object(p.useSelect)((function(e){return{dirtyEntityRecords:e("core").__experimentalGetDirtyEntityRecords()}}),[]).dirtyEntityRecords,o=Object(p.useDispatch)("core").saveEditedEntityRecord,i=Object.values(Object(v.groupBy)(r,"name")),c=[];i.forEach((function(e){_o[e[0].name]&&c.push(_o[e[0].name](e.length))}));var a=ko[c.length]||Object(Zt.__)("Changes have been made to multiple entity types."),s=Zt.sprintf.apply(void 0,[a].concat(c)),u=Object(B.useState)([]),l=Object(E.a)(u,2),d=l[0],b=l[1],f=function(e,t){var n=e.kind,r=e.name,o=e.key;b(t?d.filter((function(e){return e.kind!==n||e.name!==r||e.key!==o})):[].concat(Object(Yt.a)(d),[{kind:n,name:r,key:o}]))},h=Object(B.useState)(!1),m=Object(E.a)(h,2),O=m[0],g=m[1],j=Object(B.useCallback)((function(){return n()}),[n]);return t?Object(B.createElement)("div",{className:"entities-saved-states__panel"},Object(B.createElement)("div",{className:"entities-saved-states__panel-header"},Object(B.createElement)(co.Button,{isPrimary:!0,disabled:r.length-d.length==0,onClick:function(){var e=r.filter((function(e){var t=e.kind,n=e.name,r=e.key;return!Object(v.some)(d,(function(e){return e.kind===t&&e.name===n&&e.key===r}))}));n(e),e.forEach((function(e){var t=e.kind,n=e.name,r=e.key;o(t,n,r)}))},className:"editor-entities-saved-states__save-button"},Object(Zt.__)("Save")),Object(B.createElement)(co.Button,{onClick:j,icon:mo.a,label:Object(Zt.__)("Close panel")})),Object(B.createElement)("div",{className:"entities-saved-states__text-prompt"},Object(B.createElement)("strong",null,Object(Zt.__)("Are you ready to save?")),Object(B.createElement)("p",null,s),Object(B.createElement)("p",null,Object(B.createElement)(co.Button,{onClick:function(){return g((function(e){return!e}))},isLink:!0,className:"entities-saved-states__review-changes-button"},O?Object(Zt.__)("Hide changes."):Object(Zt.__)("Review changes.")))),O&&i.map((function(e){return Object(B.createElement)(yo,{key:e[0].name,list:e,closePanel:j,unselectedEntities:d,setUnselectedEntities:f})}))):null}var So=n(16);function Eo(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Ur.a)(e);if(t){var o=Object(Ur.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(Lr.a)(this,n)}}var wo=function(e){Object(Nr.a)(n,e);var t=Eo(n);function n(){var e;return Object(Rr.a)(this,n),(e=t.apply(this,arguments)).reboot=e.reboot.bind(Object(So.a)(e)),e.getContent=e.getContent.bind(Object(So.a)(e)),e.state={error:null},e}return Object(Dr.a)(n,[{key:"componentDidCatch",value:function(e){this.setState({error:e})}},{key:"reboot",value:function(){this.props.onError()}},{key:"getContent",value:function(){try{return Object(p.select)("core/editor").getEditedPostContent()}catch(e){}}},{key:"render",value:function(){var e=this.state.error;return e?Object(B.createElement)(i.Warning,{className:"editor-error-boundary",actions:[Object(B.createElement)(co.Button,{key:"recovery",onClick:this.reboot,isSecondary:!0},Object(Zt.__)("Attempt Recovery")),Object(B.createElement)(co.ClipboardButton,{key:"copy-post",text:this.getContent,isSecondary:!0},Object(Zt.__)("Copy Post Text")),Object(B.createElement)(co.ClipboardButton,{key:"copy-error",text:e.stack,isSecondary:!0},Object(Zt.__)("Copy Error"))]},Object(Zt.__)("The editor has encountered an unexpected error.")):this.props.children}}]),n}(B.Component),Co=window.requestIdleCallback?window.requestIdleCallback:window.requestAnimationFrame,To=Object(v.once)((function(){try{return window.sessionStorage.setItem("__wpEditorTestSessionStorage",""),window.sessionStorage.removeItem("__wpEditorTestSessionStorage"),!0}catch(e){return!1}}));function xo(){var e=Object(p.useSelect)((function(e){return{postId:e("core/editor").getCurrentPostId(),isEditedPostNew:e("core/editor").isEditedPostNew(),getEditedPostAttribute:e("core/editor").getEditedPostAttribute,hasRemoteAutosave:!!e("core/editor").getEditorSettings().autosave}}),[]),t=e.postId,n=e.isEditedPostNew,r=e.getEditedPostAttribute,o=e.hasRemoteAutosave,i=Object(p.useDispatch)("core/notices"),a=i.createWarningNotice,s=i.removeNotice,u=Object(p.useDispatch)("core/editor"),l=u.editPost,d=u.resetEditorBlocks;Object(B.useEffect)((function(){var e=function(e,t){return window.sessionStorage.getItem(gr(e,t))}(t,n);if(e){try{e=JSON.parse(e)}catch(e){return}var i=e,u={title:i.post_title,content:i.content,excerpt:i.excerpt};if(Object.keys(u).some((function(e){return u[e]!==r(e)}))){if(!o){var p=Object(v.uniqueId)("wpEditorAutosaveRestore");a(Object(Zt.__)("The backup of this post in your browser is different from the version below."),{id:p,actions:[{label:Object(Zt.__)("Restore the backup"),onClick:function(){l(Object(v.omit)(u,["content"])),d(Object(c.parse)(u.content)),s(p)}}]})}}else jr(t,n)}}),[n,t])}var Bo=Object(Er.ifCondition)(To)((function(){var e=Object(p.useDispatch)("core/editor").autosave,t=Object(B.useCallback)((function(){Co((function(){return e({local:!0})}))}),[]);xo(),function(){var e=Object(p.useSelect)((function(e){return{postId:e("core/editor").getCurrentPostId(),isEditedPostNew:e("core/editor").isEditedPostNew(),isDirty:e("core/editor").isEditedPostDirty(),isAutosaving:e("core/editor").isAutosavingPost(),didError:e("core/editor").didPostSaveRequestFail()}}),[]),t=e.postId,n=e.isEditedPostNew,r=e.isDirty,o=e.isAutosaving,i=e.didError,c=Object(B.useRef)(r),a=Object(B.useRef)(o);Object(B.useEffect)((function(){!i&&(a.current&&!o||c.current&&!r)&&jr(t,n),c.current=r,a.current=o}),[r,o,i]);var s=Object(Er.usePrevious)(n),u=Object(Er.usePrevious)(t);Object(B.useEffect)((function(){u===t&&s&&!n&&jr(t,!0)}),[n,t])}();var n=Object(p.useSelect)((function(e){return{localAutosaveInterval:e("core/editor").getEditorSettings().__experimentalLocalAutosaveInterval}}),[]).localAutosaveInterval;return Object(B.createElement)(Vr,{interval:n,autosave:t})}));var Io=Object(p.withSelect)((function(e){var t=e("core/editor"),n=t.getEditedPostAttribute,r=t.getEditorSettings,o=e("core").getPostType,i=r().availableTemplates;return{postType:o(n("type")),availableTemplates:i}}))((function(e){var t=e.availableTemplates,n=e.postType,r=e.children;return!Object(v.get)(n,["supports","page-attributes"],!1)&&Object(v.isEmpty)(t)?null:r}));var Ao=Object(p.withSelect)((function(e){var t=e("core/editor").getEditedPostAttribute;return{postType:(0,e("core").getPostType)(t("type"))}}))((function(e){var t=e.postType,n=e.children,r=e.supportKeys,o=!0;return t&&(o=Object(v.some)(Object(v.castArray)(r),(function(e){return!!t.supports[e]}))),o?n:null})),Ro=Object(Er.withState)({orderInput:null})((function(e){var t=e.onUpdateOrder,n=e.order,r=void 0===n?0:n,o=e.orderInput,i=e.setState,c=null===o?r:o;return Object(B.createElement)(co.TextControl,{className:"editor-page-attributes__order",type:"number",label:Object(Zt.__)("Order"),value:c,onChange:function(e){i({orderInput:e});var n=Number(e);Number.isInteger(n)&&""!==Object(v.invoke)(e,["trim"])&&t(Number(e))},size:6,onBlur:function(){i({orderInput:null})}})}));var Do=Object(Er.compose)([Object(p.withSelect)((function(e){return{order:e("core/editor").getEditedPostAttribute("menu_order")}})),Object(p.withDispatch)((function(e){return{onUpdateOrder:function(t){e("core/editor").editPost({menu_order:t})}}}))])((function(e){return Object(B.createElement)(Ao,{supportKeys:"page-attributes"},Object(B.createElement)(Ro,e))}));function No(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Lo(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:0;return Object(v.flatMap)(t,(function(t){return[{value:t.id,label:Object(v.repeat)("— ",n)+Object(v.unescape)(t.name)}].concat(Object(Yt.a)(e(t.children||[],n+1)))}))}(e),n=Object(v.find)(t,(function(e){return e.value===s}));return a&&!n&&t.unshift({value:s,label:Fo(a)}),t}),[f]);return d&&b?Object(B.createElement)(co.ComboboxControl,{className:"editor-page-attributes__parent",label:b,value:s,options:h,onFilterValueChange:Object(v.debounce)((function(e){o(e)}),300),onChange:function(t){e({parent:t})}}):null};var Vo=Object(Er.compose)(Object(p.withSelect)((function(e){var t=e("core/editor"),n=t.getEditedPostAttribute,r=(0,t.getEditorSettings)().availableTemplates;return{selectedTemplate:n("template"),availableTemplates:r}})),Object(p.withDispatch)((function(e){return{onUpdate:function(t){e("core/editor").editPost({template:t||""})}}})))((function(e){var t=e.availableTemplates,n=e.selectedTemplate,r=e.onUpdate;return Object(v.isEmpty)(t)?null:Object(B.createElement)(co.SelectControl,{label:Object(Zt.__)("Template:"),value:n,onChange:r,className:"editor-page-attributes__template",options:Object(v.map)(t,(function(e,t){return{value:t,label:e}}))})}));var zo=Object(Er.compose)([Object(p.withSelect)((function(e){var t=e("core/editor").getCurrentPost();return{hasAssignAuthorAction:Object(v.get)(t,["_links","wp:action-assign-author"],!1),postType:e("core/editor").getCurrentPostType(),authors:e("core").getAuthors()}})),Er.withInstanceId])((function(e){var t=e.hasAssignAuthorAction,n=e.authors,r=e.children;return!t||!n||1>=n.length?null:Object(B.createElement)(Ao,{supportKeys:"author"},r)}));var Ho=function(){var e=Object(B.useState)(),t=Object(E.a)(e,2),n=t[0],r=t[1],o=Object(p.useSelect)((function(e){var t=e("core"),r=t.__unstableGetAuthor,o=t.getAuthors,i=t.isResolving,c=e("core/editor").getEditedPostAttribute,a=r(c("author")),s=n&&""!==n?{search:n}:{};return{authorId:c("author"),postAuthor:a,authors:o(s),isLoading:i("core","getAuthors",[s])}}),[n]),i=o.authorId,c=o.isLoading,a=o.authors,s=o.postAuthor,u=Object(p.useDispatch)("core/editor").editPost,l=Object(B.useMemo)((function(){var e=(null!=a?a:[]).map((function(e){return{value:e.id,label:e.name}}));return e.findIndex((function(e){var t=e.value;return(null==s?void 0:s.id)===t}))<0&&s?[{value:s.id,label:s.name}].concat(Object(Yt.a)(e)):e}),[a,s]);return Object(B.useEffect)((function(){s&&r(s.name)}),[s]),s?Object(B.createElement)(zo,null,Object(B.createElement)(co.ComboboxControl,{label:Object(Zt.__)("Author"),options:l,value:i,onFilterValueChange:Object(v.debounce)((function(e){r(e)}),300),onChange:function(e){e&&u({author:e})},isLoading:c,allowReset:!1})):null};var Wo=Object(Er.compose)([Object(p.withSelect)((function(e){return{commentStatus:e("core/editor").getEditedPostAttribute("comment_status")}})),Object(p.withDispatch)((function(e){return{editPost:e("core/editor").editPost}}))])((function(e){var t=e.commentStatus,n=void 0===t?"open":t,r=Object($t.a)(e,["commentStatus"]);return Object(B.createElement)(co.CheckboxControl,{label:Object(Zt.__)("Allow comments"),checked:"open"===n,onChange:function(){return r.editPost({comment_status:"open"===n?"closed":"open"})}})}));var Go=Object(Er.compose)([Object(p.withSelect)((function(e){return{excerpt:e("core/editor").getEditedPostAttribute("excerpt")}})),Object(p.withDispatch)((function(e){return{onUpdateExcerpt:function(t){e("core/editor").editPost({excerpt:t})}}}))])((function(e){var t=e.excerpt,n=e.onUpdateExcerpt;return Object(B.createElement)("div",{className:"editor-post-excerpt"},Object(B.createElement)(co.TextareaControl,{label:Object(Zt.__)("Write an excerpt (optional)"),className:"editor-post-excerpt__textarea",onChange:function(e){return n(e)},value:t}),Object(B.createElement)(co.ExternalLink,{href:Object(Zt.__)("https://wordpress.org/support/article/excerpt/")},Object(Zt.__)("Learn more about manual excerpts")))}));var Ko=function(e){return Object(B.createElement)(Ao,Object(Sr.a)({},e,{supportKeys:"excerpt"}))};var qo=Object(p.withSelect)((function(e){var t=e("core").getThemeSupports;return{postType:(0,e("core/editor").getEditedPostAttribute)("type"),themeSupports:t()}}))((function(e){var t=e.themeSupports,n=e.children,r=e.postType,o=e.supportKeys;return Object(v.some)(Object(v.castArray)(o),(function(e){var n=Object(v.get)(t,[e],!1);return"post-thumbnails"===e&&Object(v.isArray)(n)?Object(v.includes)(n,r):n}))?n:null}));var Qo=function(e){return Object(B.createElement)(qo,{supportKeys:"post-thumbnails"},Object(B.createElement)(Ao,Object(Sr.a)({},e,{supportKeys:"thumbnail"})))},$o=["image"],Yo=Object(Zt.__)("Featured image"),Xo=Object(Zt.__)("Set featured image"),Jo=Object(Zt.__)("Remove image");var Zo=Object(p.withSelect)((function(e){var t=e("core"),n=t.getMedia,r=t.getPostType,o=e("core/editor"),i=o.getCurrentPostId,c=o.getEditedPostAttribute,a=c("featured_media");return{media:a?n(a):null,currentPostId:i(),postType:r(c("type")),featuredImageId:a}})),ei=Object(p.withDispatch)((function(e,t,n){var r=t.noticeOperations,o=n.select,i=e("core/editor").editPost;return{onUpdateImage:function(e){i({featured_media:e.id})},onDropImage:function(e){o("core/block-editor").getSettings().mediaUpload({allowedTypes:["image"],filesList:e,onFileChange:function(e){var t=Object(E.a)(e,1)[0];i({featured_media:t.id})},onError:function(e){r.removeAllNotices(),r.createErrorNotice(e)}})},onRemoveImage:function(){i({featured_media:0})}}})),ti=Object(Er.compose)(co.withNotices,Zo,ei,Object(co.withFilters)("editor.PostFeaturedImage"))((function(e){var t,n,r,o,c,a=e.currentPostId,s=e.featuredImageId,u=e.onUpdateImage,l=e.onDropImage,d=e.onRemoveImage,p=e.media,b=e.postType,f=e.noticeUI,h=Object(v.get)(b,["labels"],{}),m=Object(B.createElement)("p",null,Object(Zt.__)("To edit the featured image, you need permission to upload media."));if(p){var O=Object(wr.applyFilters)("editor.PostFeaturedImage.imageSize","post-thumbnail",p.id,a);if(Object(v.has)(p,["media_details","sizes",O]))r=p.media_details.sizes[O].width,o=p.media_details.sizes[O].height,c=p.media_details.sizes[O].source_url;else{var g=Object(wr.applyFilters)("editor.PostFeaturedImage.imageSize","thumbnail",p.id,a);Object(v.has)(p,["media_details","sizes",g])?(r=p.media_details.sizes[g].width,o=p.media_details.sizes[g].height,c=p.media_details.sizes[g].source_url):(r=p.media_details.width,o=p.media_details.height,c=p.source_url)}}return Object(B.createElement)(Qo,null,f,Object(B.createElement)("div",{className:"editor-post-featured-image"},p&&Object(B.createElement)("div",{id:"editor-post-featured-image-".concat(s,"-describedby"),className:"hidden"},p.alt_text&&Object(Zt.sprintf)(Object(Zt.__)("Current image: %s"),p.alt_text),!p.alt_text&&Object(Zt.sprintf)(Object(Zt.__)("The current image has no alternative text. The file name is: %s"),(null===(t=p.media_details.sizes)||void 0===t||null===(n=t.full)||void 0===n?void 0:n.file)||p.slug)),Object(B.createElement)(i.MediaUploadCheck,{fallback:m},Object(B.createElement)(i.MediaUpload,{title:h.featured_image||Yo,onSelect:u,unstableFeaturedImageFlow:!0,allowedTypes:$o,modalClass:"editor-post-featured-image__media-modal",render:function(e){var t=e.open;return Object(B.createElement)("div",{className:"editor-post-featured-image__container"},Object(B.createElement)(co.Button,{className:s?"editor-post-featured-image__preview":"editor-post-featured-image__toggle",onClick:t,"aria-label":s?Object(Zt.__)("Edit or update the image"):null,"aria-describedby":s?"editor-post-featured-image-".concat(s,"-describedby"):null},!!s&&p&&Object(B.createElement)(co.ResponsiveWrapper,{naturalWidth:r,naturalHeight:o,isInline:!0},Object(B.createElement)("img",{src:c,alt:""})),!!s&&!p&&Object(B.createElement)(co.Spinner,null),!s&&(h.set_featured_image||Xo)),Object(B.createElement)(co.DropZone,{onFilesDrop:l}))},value:s})),!!s&&p&&!p.isLoading&&Object(B.createElement)(i.MediaUploadCheck,null,Object(B.createElement)(i.MediaUpload,{title:h.featured_image||Yo,onSelect:u,unstableFeaturedImageFlow:!0,allowedTypes:$o,modalClass:"editor-post-featured-image__media-modal",render:function(e){var t=e.open;return Object(B.createElement)(co.Button,{onClick:t,isSecondary:!0},Object(Zt.__)("Replace Image"))}})),!!s&&Object(B.createElement)(i.MediaUploadCheck,null,Object(B.createElement)(co.Button,{onClick:d,isLink:!0,isDestructive:!0},h.remove_featured_image||Jo))))}));var ni=Object(p.withSelect)((function(e){return{disablePostFormats:e("core/editor").getEditorSettings().disablePostFormats}}))((function(e){var t=e.disablePostFormats,n=Object($t.a)(e,["disablePostFormats"]);return!t&&Object(B.createElement)(Ao,Object(Sr.a)({},n,{supportKeys:"post-formats"}))})),ri=[{id:"aside",caption:Object(Zt.__)("Aside")},{id:"gallery",caption:Object(Zt.__)("Gallery")},{id:"link",caption:Object(Zt.__)("Link")},{id:"image",caption:Object(Zt.__)("Image")},{id:"quote",caption:Object(Zt.__)("Quote")},{id:"standard",caption:Object(Zt.__)("Standard")},{id:"status",caption:Object(Zt.__)("Status")},{id:"video",caption:Object(Zt.__)("Video")},{id:"audio",caption:Object(Zt.__)("Audio")},{id:"chat",caption:Object(Zt.__)("Chat")}];function oi(){var e=Object(Er.useInstanceId)(oi),t="post-format-selector-".concat(e),n=Object(p.useSelect)((function(e){var t=e("core/editor"),n=t.getEditedPostAttribute,r=t.getSuggestedPostFormat,o=n("format"),i=e("core").getThemeSupports();return{postFormat:null!=o?o:"standard",suggestedFormat:r(),supportedFormats:Object(v.union)([o],Object(v.get)(i,["formats"],[]))}}),[]),r=n.postFormat,o=n.suggestedFormat,i=n.supportedFormats,c=ri.filter((function(e){return Object(v.includes)(i,e.id)})),a=Object(v.find)(c,(function(e){return e.id===o})),s=Object(p.useDispatch)("core/editor").editPost,u=function(e){return s({format:e})};return Object(B.createElement)(ni,null,Object(B.createElement)("div",{className:"editor-post-format"},Object(B.createElement)("div",{className:"editor-post-format__content"},Object(B.createElement)("label",{htmlFor:t},Object(Zt.__)("Post Format")),Object(B.createElement)(co.SelectControl,{value:r,onChange:function(e){return u(e)},id:t,options:c.map((function(e){return{label:e.caption,value:e.id}}))})),a&&a.id!==r&&Object(B.createElement)("div",{className:"editor-post-format__suggestion"},Object(Zt.__)("Suggestion:")," ",Object(B.createElement)(co.Button,{isLink:!0,onClick:function(){return u(a.id)}},a.caption))))}var ii=Object(B.createElement)(so.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(B.createElement)(so.Path,{d:"M13.65 2.88c3.93 2.01 5.48 6.84 3.47 10.77s-6.83 5.48-10.77 3.47c-1.87-.96-3.2-2.56-3.86-4.4l1.64-1.03c.45 1.57 1.52 2.95 3.08 3.76 3.01 1.54 6.69.35 8.23-2.66 1.55-3.01.36-6.69-2.65-8.24C9.78 3.01 6.1 4.2 4.56 7.21l1.88.97-4.95 3.08-.39-5.82 1.78.91C4.9 2.4 9.75.89 13.65 2.88zm-4.36 7.83C9.11 10.53 9 10.28 9 10c0-.07.03-.12.04-.19h-.01L10 5l.97 4.81L14 13l-4.5-2.12.02-.02c-.08-.04-.16-.09-.23-.15z"}));var ci=Object(p.withSelect)((function(e){var t=e("core/editor"),n=t.getCurrentPostLastRevisionId,r=t.getCurrentPostRevisionsCount;return{lastRevisionId:n(),revisionsCount:r()}}))((function(e){var t=e.lastRevisionId,n=e.revisionsCount,r=e.children;return!t||n<2?null:Object(B.createElement)(Ao,{supportKeys:"revisions"},r)}));var ai=Object(p.withSelect)((function(e){var t=e("core/editor"),n=t.getCurrentPostLastRevisionId,r=t.getCurrentPostRevisionsCount;return{lastRevisionId:n(),revisionsCount:r()}}))((function(e){var t=e.lastRevisionId,n=e.revisionsCount;return Object(B.createElement)(ci,null,Object(B.createElement)(co.Button,{href:M("revision.php",{revision:t,gutenberg:!0}),className:"editor-post-last-revision__title",icon:ii},Object(Zt.sprintf)(Object(Zt._n)("%d Revision","%d Revisions",n),n)))}));function si(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Ur.a)(e);if(t){var o=Object(Ur.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(Lr.a)(this,n)}}var ui=function(e){Object(Nr.a)(n,e);var t=si(n);function n(){var e;return Object(Rr.a)(this,n),(e=t.apply(this,arguments)).buttonRef=Object(B.createRef)(),e.openPreviewWindow=e.openPreviewWindow.bind(Object(So.a)(e)),e}return Object(Dr.a)(n,[{key:"componentDidUpdate",value:function(e){var t=this.props.previewLink;t&&!e.previewLink&&this.setPreviewWindowLink(t)}},{key:"setPreviewWindowLink",value:function(e){var t=this.previewWindow;t&&!t.closed&&(t.location=e,this.buttonRef.current&&this.buttonRef.current.focus())}},{key:"getWindowTarget",value:function(){var e=this.props.postId;return"wp-preview-".concat(e)}},{key:"openPreviewWindow",value:function(e){var t,n;(e.preventDefault(),this.previewWindow&&!this.previewWindow.closed||(this.previewWindow=window.open("",this.getWindowTarget())),this.previewWindow.focus(),this.props.isAutosaveable)?(this.props.isDraft?this.props.savePost({isPreview:!0}):this.props.autosave({isPreview:!0}),t=this.previewWindow.document,n=Object(B.renderToString)(Object(B.createElement)("div",{className:"editor-post-preview-button__interstitial-message"},Object(B.createElement)(co.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 96 96"},Object(B.createElement)(co.Path,{className:"outer",d:"M48 12c19.9 0 36 16.1 36 36S67.9 84 48 84 12 67.9 12 48s16.1-36 36-36",fill:"none"}),Object(B.createElement)(co.Path,{className:"inner",d:"M69.5 46.4c0-3.9-1.4-6.7-2.6-8.8-1.6-2.6-3.1-4.9-3.1-7.5 0-2.9 2.2-5.7 5.4-5.7h.4C63.9 19.2 56.4 16 48 16c-11.2 0-21 5.7-26.7 14.4h2.1c3.3 0 8.5-.4 8.5-.4 1.7-.1 1.9 2.4.2 2.6 0 0-1.7.2-3.7.3L40 67.5l7-20.9L42 33c-1.7-.1-3.3-.3-3.3-.3-1.7-.1-1.5-2.7.2-2.6 0 0 5.3.4 8.4.4 3.3 0 8.5-.4 8.5-.4 1.7-.1 1.9 2.4.2 2.6 0 0-1.7.2-3.7.3l11.5 34.3 3.3-10.4c1.6-4.5 2.4-7.8 2.4-10.5zM16.1 48c0 12.6 7.3 23.5 18 28.7L18.8 35c-1.7 4-2.7 8.4-2.7 13zm32.5 2.8L39 78.6c2.9.8 5.9 1.3 9 1.3 3.7 0 7.3-.6 10.6-1.8-.1-.1-.2-.3-.2-.4l-9.8-26.9zM76.2 36c0 3.2-.6 6.9-2.4 11.4L64 75.6c9.5-5.5 15.9-15.8 15.9-27.6 0-5.5-1.4-10.8-3.9-15.3.1 1 .2 2.1.2 3.3z",fill:"none"})),Object(B.createElement)("p",null,Object(Zt.__)("Generating preview…")))),n+='\n\t\t\n\t',n=Object(wr.applyFilters)("editor.PostPreview.interstitialMarkup",n),t.write(n),t.title=Object(Zt.__)("Generating preview…"),t.close()):this.setPreviewWindowLink(e.target.href)}},{key:"render",value:function(){var e=this.props,t=e.previewLink,n=e.currentPostLink,r=e.isSaveable,o=e.role,i=t||n,c=Hr()({"editor-post-preview":!this.props.className},this.props.className);return Object(B.createElement)(co.Button,{isTertiary:!this.props.className,className:c,href:i,target:this.getWindowTarget(),disabled:!r,onClick:this.openPreviewWindow,ref:this.buttonRef,role:o},this.props.textContent?this.props.textContent:Object(B.createElement)(B.Fragment,null,Object(Zt._x)("Preview","imperative verb"),Object(B.createElement)(co.VisuallyHidden,{as:"span"},Object(Zt.__)("(opens in a new tab)"))))}}]),n}(B.Component),li=Object(Er.compose)([Object(p.withSelect)((function(e,t){var n=t.forcePreviewLink,r=t.forceIsAutosaveable,o=e("core/editor"),i=o.getCurrentPostId,c=o.getCurrentPostAttribute,a=o.getEditedPostAttribute,s=o.isEditedPostSaveable,u=o.isEditedPostAutosaveable,l=o.getEditedPostPreviewLink,d=e("core").getPostType,p=l(),b=d(a("type"));return{postId:i(),currentPostLink:c("link"),previewLink:void 0!==n?n:p,isSaveable:s(),isAutosaveable:r||u(),isViewable:Object(v.get)(b,["viewable"],!1),isDraft:-1!==["draft","auto-draft"].indexOf(a("status"))}})),Object(p.withDispatch)((function(e){return{autosave:e("core/editor").autosave,savePost:e("core/editor").savePost}})),Object(Er.ifCondition)((function(e){return e.isViewable}))])(ui);function di(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Ur.a)(e);if(t){var o=Object(Ur.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(Lr.a)(this,n)}}var pi=function(e){Object(Nr.a)(n,e);var t=di(n);function n(){var e;return Object(Rr.a)(this,n),(e=t.apply(this,arguments)).sendPostLock=e.sendPostLock.bind(Object(So.a)(e)),e.receivePostLock=e.receivePostLock.bind(Object(So.a)(e)),e.releasePostLock=e.releasePostLock.bind(Object(So.a)(e)),e}return Object(Dr.a)(n,[{key:"componentDidMount",value:function(){var e=this.getHookName();Object(wr.addAction)("heartbeat.send",e,this.sendPostLock),Object(wr.addAction)("heartbeat.tick",e,this.receivePostLock)}},{key:"componentWillUnmount",value:function(){var e=this.getHookName();Object(wr.removeAction)("heartbeat.send",e),Object(wr.removeAction)("heartbeat.tick",e)}},{key:"getHookName",value:function(){return"core/editor/post-locked-modal-"+this.props.instanceId}},{key:"sendPostLock",value:function(e){var t=this.props,n=t.isLocked,r=t.activePostLock,o=t.postId;n||(e["wp-refresh-post-lock"]={lock:r,post_id:o})}},{key:"receivePostLock",value:function(e){if(e["wp-refresh-post-lock"]){var t=this.props,n=t.autosave,r=t.updatePostLock,o=e["wp-refresh-post-lock"];o.lock_error?(n(),r({isLocked:!0,isTakeover:!0,user:{avatar:o.lock_error.avatar_src}})):o.new_lock&&r({isLocked:!1,activePostLock:o.new_lock})}}},{key:"releasePostLock",value:function(){var e=this.props,t=e.isLocked,n=e.activePostLock,r=e.postLockUtils,o=e.postId;if(!t&&n){var i=new window.FormData;if(i.append("action","wp-remove-post-lock"),i.append("_wpnonce",r.unlockNonce),i.append("post_ID",o),i.append("active_post_lock",n),window.navigator.sendBeacon)window.navigator.sendBeacon(r.ajaxUrl,i);else{var c=new window.XMLHttpRequest;c.open("POST",r.ajaxUrl,!1),c.send(i)}}}},{key:"render",value:function(){var e=this.props,t=e.user,n=e.postId,r=e.isLocked,o=e.isTakeover,i=e.postLockUtils,c=e.postType;if(!r)return null;var a=t.name,s=t.avatar,u=Object(C.addQueryArgs)("post.php",{"get-post-lock":"1",lockKey:!0,post:n,action:"edit",_wpnonce:i.nonce}),l=M("edit.php",{post_type:Object(v.get)(c,["slug"])}),d=Object(Zt.__)("Exit the Editor");return Object(B.createElement)(co.Modal,{title:o?Object(Zt.__)("Someone else has taken over this post."):Object(Zt.__)("This post is already being edited."),focusOnMount:!0,shouldCloseOnClickOutside:!1,shouldCloseOnEsc:!1,isDismissible:!1,className:"editor-post-locked-modal"},!!s&&Object(B.createElement)("img",{src:s,alt:Object(Zt.__)("Avatar"),className:"editor-post-locked-modal__avatar"}),!!o&&Object(B.createElement)("div",null,Object(B.createElement)("div",null,a?Object(Zt.sprintf)(Object(Zt.__)("%s now has editing control of this post. Don’t worry, your changes up to this moment have been saved."),a):Object(Zt.__)("Another user now has editing control of this post. Don’t worry, your changes up to this moment have been saved.")),Object(B.createElement)("div",{className:"editor-post-locked-modal__buttons"},Object(B.createElement)(co.Button,{isPrimary:!0,href:l},d))),!o&&Object(B.createElement)("div",null,Object(B.createElement)("div",null,a?Object(Zt.sprintf)(Object(Zt.__)("%s is currently working on this post, which means you cannot make changes, unless you take over."),a):Object(Zt.__)("Another user is currently working on this post, which means you cannot make changes, unless you take over.")),Object(B.createElement)("div",{className:"editor-post-locked-modal__buttons"},Object(B.createElement)(co.Button,{isSecondary:!0,href:l},d),Object(B.createElement)(li,null),Object(B.createElement)(co.Button,{isPrimary:!0,href:u},Object(Zt.__)("Take Over")))))}}]),n}(B.Component),bi=Object(Er.compose)(Object(p.withSelect)((function(e){var t=e("core/editor"),n=t.isPostLocked,r=t.isPostLockTakeover,o=t.getPostLockUser,i=t.getCurrentPostId,c=t.getActivePostLock,a=t.getEditedPostAttribute,s=t.getEditorSettings,u=e("core").getPostType;return{isLocked:n(),isTakeover:r(),user:o(),postId:i(),postLockUtils:s().postLockUtils,activePostLock:c(),postType:u(a("type"))}})),Object(p.withDispatch)((function(e){var t=e("core/editor");return{autosave:t.autosave,updatePostLock:t.updatePostLock}})),Er.withInstanceId,Object(Er.withGlobalEvents)({beforeunload:"releasePostLock"}))(pi);var fi=Object(Er.compose)(Object(p.withSelect)((function(e){var t=e("core/editor"),n=t.isCurrentPostPublished,r=t.getCurrentPostType,o=t.getCurrentPost;return{hasPublishAction:Object(v.get)(o(),["_links","wp:action-publish"],!1),isPublished:n(),postType:r()}})))((function(e){var t=e.hasPublishAction,n=e.isPublished,r=e.children;return n||!t?null:r}));var hi=Object(Er.compose)(Object(p.withSelect)((function(e){return{status:e("core/editor").getEditedPostAttribute("status")}})),Object(p.withDispatch)((function(e){return{onUpdateStatus:function(t){e("core/editor").editPost({status:t})}}})))((function(e){var t=e.status,n=e.onUpdateStatus;return Object(B.createElement)(fi,null,Object(B.createElement)(co.CheckboxControl,{label:Object(Zt.__)("Pending review"),checked:"pending"===t,onChange:function(){n("pending"===t?"draft":"pending")}}))}));var mi=Object(Er.compose)([Object(p.withSelect)((function(e){return{pingStatus:e("core/editor").getEditedPostAttribute("ping_status")}})),Object(p.withDispatch)((function(e){return{editPost:e("core/editor").editPost}}))])((function(e){var t=e.pingStatus,n=void 0===t?"open":t,r=Object($t.a)(e,["pingStatus"]);return Object(B.createElement)(co.CheckboxControl,{label:Object(Zt.__)("Allow pingbacks & trackbacks"),checked:"open"===n,onChange:function(){return r.editPost({ping_status:"open"===n?"closed":"open"})}})}));var vi=Object(Er.compose)([Object(p.withSelect)((function(e,t){var n=t.forceIsSaving,r=e("core/editor"),o=r.isCurrentPostPublished,i=r.isEditedPostBeingScheduled,c=r.isSavingPost,a=r.isPublishingPost,s=r.getCurrentPost,u=r.getCurrentPostType,l=r.isAutosavingPost;return{isPublished:o(),isBeingScheduled:i(),isSaving:n||c(),isPublishing:a(),hasPublishAction:Object(v.get)(s(),["_links","wp:action-publish"],!1),postType:u(),isAutosaving:l()}}))])((function(e){var t=e.isPublished,n=e.isBeingScheduled,r=e.isSaving,o=e.isPublishing,i=e.hasPublishAction,c=e.isAutosaving,a=e.hasNonPostEntityChanges;return o?Object(Zt.__)("Publishing…"):t&&r&&!c?Object(Zt.__)("Updating…"):n&&r&&!c?Object(Zt.__)("Scheduling…"):i?t?a?Object(Zt.__)("Update…"):Object(Zt.__)("Update"):n?a?Object(Zt.__)("Schedule…"):Object(Zt.__)("Schedule"):Object(Zt.__)("Publish"):a?Object(Zt.__)("Submit for Review…"):Object(Zt.__)("Submit for Review")}));function Oi(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Ur.a)(e);if(t){var o=Object(Ur.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(Lr.a)(this,n)}}var gi=function(e){Object(Nr.a)(n,e);var t=Oi(n);function n(e){var r;return Object(Rr.a)(this,n),(r=t.call(this,e)).buttonNode=Object(B.createRef)(),r.createOnClick=r.createOnClick.bind(Object(So.a)(r)),r.closeEntitiesSavedStates=r.closeEntitiesSavedStates.bind(Object(So.a)(r)),r.state={entitiesSavedStatesCallback:!1},r}return Object(Dr.a)(n,[{key:"componentDidMount",value:function(){this.props.focusOnMount&&this.buttonNode.current.focus()}},{key:"createOnClick",value:function(e){var t=this;return function(){for(var n=arguments.length,r=new Array(n),o=0;o1&&void 0!==arguments[1]?arguments[1]:"";r({status:e,password:t})}}})),Er.withInstanceId])(Pi);var Ei=Object(p.withSelect)((function(e){return{visibility:e("core/editor").getEditedPostVisibility()}}))((function(e){var t=e.visibility;return Object(v.find)(_i,{value:t}).label}));var wi=Object(Er.compose)([Object(p.withSelect)((function(e){return{date:e("core/editor").getEditedPostAttribute("date")}})),Object(p.withDispatch)((function(e){return{onUpdateDate:function(t){e("core/editor").editPost({date:t})}}}))])((function(e){var t=e.date,n=e.onUpdateDate,r=Object(w.__experimentalGetSettings)(),o=/a(?!\\)/i.test(r.formats.time.toLowerCase().replace(/\\\\/g,"").split("").reverse().join(""));return Object(B.createElement)(co.DateTimePicker,{key:"date-time-picker",currentDate:t,onChange:function(e){n(e),document.activeElement.blur()},is12Hour:o})}));var Ci=Object(p.withSelect)((function(e){return{date:e("core/editor").getEditedPostAttribute("date"),isFloating:e("core/editor").isEditedPostDateFloating()}}))((function(e){var t=e.date,n=e.isFloating,r=Object(w.__experimentalGetSettings)();return t&&!n?Object(w.format)("".concat(r.formats.date," ").concat(r.formats.time),t):Object(Zt.__)("Immediately")}));function Ti(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Ur.a)(e);if(t){var o=Object(Ur.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(Lr.a)(this,n)}}function xi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Bi(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},n=this.props.taxonomy,r=Bi(Bi({},Ii),t),o=Ir()({path:Object(C.addQueryArgs)("/wp/v2/".concat(n.rest_base),r)});return o.then(Ni).then((function(t){e.setState((function(e){return{availableTerms:e.availableTerms.concat(t.filter((function(t){return!Object(v.find)(e.availableTerms,(function(e){return e.id===t.id}))})))}})),e.updateSelectedTerms(e.props.terms)})),o}},{key:"updateSelectedTerms",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=t.reduce((function(t,n){var r=Object(v.find)(e.state.availableTerms,(function(e){return e.id===n}));return r&&t.push(r.name),t}),[]);this.setState({selectedTerms:n})}},{key:"findOrCreateTerm",value:function(e){var t=this,n=this.props.taxonomy,r=Object(v.escape)(e);return Ir()({path:"/wp/v2/".concat(n.rest_base),method:"POST",data:{name:r}}).catch((function(o){return"term_exists"===o.code?(t.addRequest=Ir()({path:Object(C.addQueryArgs)("/wp/v2/".concat(n.rest_base),Bi(Bi({},Ii),{},{search:r}))}).then(Ni),t.addRequest.then((function(t){return Object(v.find)(t,(function(t){return Ri(t.name,e)}))}))):Promise.reject(o)})).then(Di)}},{key:"onChange",value:function(e){var t=this,n=Object(v.uniqBy)(e,(function(e){return e.toLowerCase()}));this.setState({selectedTerms:n});var r=n.filter((function(e){return!Object(v.find)(t.state.availableTerms,(function(t){return Ri(t.name,e)}))})),o=function(e,t){return e.map((function(e){return Object(v.find)(t,(function(t){return Ri(t.name,e)})).id}))};if(0===r.length)return this.props.onUpdateTerms(o(n,this.state.availableTerms),this.props.taxonomy.rest_base);Promise.all(r.map(this.findOrCreateTerm)).then((function(e){var r=t.state.availableTerms.concat(e);return t.setState({availableTerms:r}),t.props.onUpdateTerms(o(n,r),t.props.taxonomy.rest_base)}))}},{key:"searchTerms",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";Object(v.invoke)(this.searchRequest,["abort"]),e.length>=3&&(this.searchRequest=this.fetchTerms({search:e}))}},{key:"render",value:function(){var e=this.props,t=e.slug,n=e.taxonomy;if(!e.hasAssignAction)return null;var r=this.state,o=r.loading,i=r.availableTerms,c=r.selectedTerms,a=i.map((function(e){return e.name})),s=Object(v.get)(n,["labels","add_new_item"],"post_tag"===t?Object(Zt.__)("Add new tag"):Object(Zt.__)("Add new Term")),u=Object(v.get)(n,["labels","singular_name"],"post_tag"===t?Object(Zt.__)("Tag"):Object(Zt.__)("Term")),l=Object(Zt.sprintf)(Object(Zt._x)("%s added","term"),u),d=Object(Zt.sprintf)(Object(Zt._x)("%s removed","term"),u),p=Object(Zt.sprintf)(Object(Zt._x)("Remove %s","term"),u);return Object(B.createElement)(co.FormTokenField,{value:c,suggestions:a,onChange:this.onChange,onInputChange:this.searchTerms,maxSuggestions:20,disabled:o,label:s,messages:{added:l,removed:d,remove:p}})}}]),n}(B.Component),Ui=Object(Er.compose)(Object(p.withSelect)((function(e,t){var n=t.slug,r=e("core/editor").getCurrentPost,o=(0,e("core").getTaxonomy)(n);return{hasCreateAction:!!o&&Object(v.get)(r(),["_links","wp:action-create-"+o.rest_base],!1),hasAssignAction:!!o&&Object(v.get)(r(),["_links","wp:action-assign-"+o.rest_base],!1),terms:o?e("core/editor").getEditedPostAttribute(o.rest_base):[],taxonomy:o}})),Object(p.withDispatch)((function(e){return{onUpdateTerms:function(t,n){e("core/editor").editPost(Object(d.a)({},n,t))}}})),Object(co.withFilters)("editor.PostTaxonomyType"))(Li);function Fi(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Ur.a)(e);if(t){var o=Object(Ur.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(Lr.a)(this,n)}}var Mi=function(){var e=[Object(Zt.__)("Suggestion:"),Object(B.createElement)("span",{className:"editor-post-publish-panel__link",key:"label"},Object(Zt.__)("Add tags"))];return Object(B.createElement)(co.PanelBody,{initialOpen:!1,title:e},Object(B.createElement)("p",null,Object(Zt.__)("Tags help users and search engines navigate your site and find your content. Add a few keywords to describe your post.")),Object(B.createElement)(Ui,{slug:"post_tag"}))},Vi=function(e){Object(Nr.a)(n,e);var t=Fi(n);function n(e){var r;return Object(Rr.a)(this,n),(r=t.call(this,e)).state={hadTagsWhenOpeningThePanel:e.hasTags},r}return Object(Dr.a)(n,[{key:"render",value:function(){return this.state.hadTagsWhenOpeningThePanel?null:Object(B.createElement)(Mi,null)}}]),n}(B.Component),zi=Object(Er.compose)(Object(p.withSelect)((function(e){var t=e("core/editor").getCurrentPostType(),n=e("core").getTaxonomy("post_tag"),r=n&&e("core/editor").getEditedPostAttribute(n.rest_base);return{areTagsFetched:void 0!==n,isPostTypeSupported:n&&Object(v.some)(n.types,(function(e){return e===t})),hasTags:r&&r.length}})),Object(Er.ifCondition)((function(e){var t=e.areTagsFetched;return e.isPostTypeSupported&&t})))(Vi),Hi=function(e,t){var n=ri.filter((function(t){return Object(v.includes)(e,t.id)}));return Object(v.find)(n,(function(e){return e.id===t}))},Wi=function(e){var t=e.suggestedPostFormat,n=e.suggestionText,r=e.onUpdatePostFormat;return Object(B.createElement)(co.Button,{isLink:!0,onClick:function(){return r(t)}},n)};function Gi(){var e=Object(p.useSelect)((function(e){var t=e("core/editor"),n=t.getEditedPostAttribute,r=t.getSuggestedPostFormat,o=Object(v.get)(e("core").getThemeSupports(),["formats"],[]);return{currentPostFormat:n("format"),suggestion:Hi(o,r())}}),[]),t=e.currentPostFormat,n=e.suggestion,r=Object(p.useDispatch)("core/editor").editPost,o=[Object(Zt.__)("Suggestion:"),Object(B.createElement)("span",{className:"editor-post-publish-panel__link",key:"label"},Object(Zt.__)("Use a post format"))];return n&&n.id!==t?Object(B.createElement)(co.PanelBody,{initialOpen:!1,title:o},Object(B.createElement)("p",null,Object(Zt.__)("Your theme uses post formats to highlight different kinds of content, like images or videos. Apply a post format to see this special styling.")),Object(B.createElement)("p",null,Object(B.createElement)(Wi,{onUpdatePostFormat:function(e){return r({format:e})},suggestedPostFormat:n.id,suggestionText:Object(Zt.sprintf)(Object(Zt.__)('Apply the "%1$s" format.'),n.caption)}))):null}var Ki=Object(p.withSelect)((function(e){var t=e("core/editor"),n=t.getCurrentPost,r=t.isEditedPostBeingScheduled;return{hasPublishAction:Object(v.get)(n(),["_links","wp:action-publish"],!1),isBeingScheduled:r()}}))((function(e){var t,n,r=e.hasPublishAction,o=e.isBeingScheduled,i=e.children;return r?o?(t=Object(Zt.__)("Are you ready to schedule?"),n=Object(Zt.__)("Your work will be published at the specified date and time.")):(t=Object(Zt.__)("Are you ready to publish?"),n=Object(Zt.__)("Double-check your settings before publishing.")):(t=Object(Zt.__)("Are you ready to submit for review?"),n=Object(Zt.__)("When you’re ready, submit your work for review, and an Editor will be able to approve it for you.")),Object(B.createElement)("div",{className:"editor-post-publish-panel__prepublish"},Object(B.createElement)("div",null,Object(B.createElement)("strong",null,t)),Object(B.createElement)("p",null,n),r&&Object(B.createElement)(B.Fragment,null,Object(B.createElement)(co.PanelBody,{initialOpen:!1,title:[Object(Zt.__)("Visibility:"),Object(B.createElement)("span",{className:"editor-post-publish-panel__link",key:"label"},Object(B.createElement)(Ei,null))]},Object(B.createElement)(Si,null)),Object(B.createElement)(co.PanelBody,{initialOpen:!1,title:[Object(Zt.__)("Publish:"),Object(B.createElement)("span",{className:"editor-post-publish-panel__link",key:"label"},Object(B.createElement)(Ci,null))]},Object(B.createElement)(wi,null))),Object(B.createElement)(Gi,null),Object(B.createElement)(zi,null),i)})),qi=n(69);function Qi(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Ur.a)(e);if(t){var o=Object(Ur.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(Lr.a)(this,n)}}var $i=function(e){Object(Nr.a)(n,e);var t=Qi(n);function n(){var e;return Object(Rr.a)(this,n),(e=t.apply(this,arguments)).state={showCopyConfirmation:!1},e.onCopy=e.onCopy.bind(Object(So.a)(e)),e.onSelectInput=e.onSelectInput.bind(Object(So.a)(e)),e.postLink=Object(B.createRef)(),e}return Object(Dr.a)(n,[{key:"componentDidMount",value:function(){this.props.focusOnMount&&this.postLink.current.focus()}},{key:"componentWillUnmount",value:function(){clearTimeout(this.dismissCopyConfirmation)}},{key:"onCopy",value:function(){var e=this;this.setState({showCopyConfirmation:!0}),clearTimeout(this.dismissCopyConfirmation),this.dismissCopyConfirmation=setTimeout((function(){e.setState({showCopyConfirmation:!1})}),4e3)}},{key:"onSelectInput",value:function(e){e.target.select()}},{key:"render",value:function(){var e=this.props,t=e.children,n=e.isScheduled,r=e.post,o=e.postType,i=Object(v.get)(o,["labels","singular_name"]),c=Object(v.get)(o,["labels","view_item"]),a="future"===r.status?function(e){var t=e.slug;return e.permalink_template.includes("%postname%")?e.permalink_template.replace("%postname%",t):e.permalink_template}(r):r.link,s=n?Object(B.createElement)(B.Fragment,null,Object(Zt.__)("is now scheduled. It will go live on")," ",Object(B.createElement)(Ci,null),"."):Object(Zt.__)("is now live.");return Object(B.createElement)("div",{className:"post-publish-panel__postpublish"},Object(B.createElement)(co.PanelBody,{className:"post-publish-panel__postpublish-header"},Object(B.createElement)("a",{ref:this.postLink,href:a},Object(qi.decodeEntities)(r.title)||Object(Zt.__)("(no title)"))," ",s),Object(B.createElement)(co.PanelBody,null,Object(B.createElement)("p",{className:"post-publish-panel__postpublish-subheader"},Object(B.createElement)("strong",null,Object(Zt.__)("What’s next?"))),Object(B.createElement)(co.TextControl,{className:"post-publish-panel__postpublish-post-address",readOnly:!0,label:Object(Zt.sprintf)(Object(Zt.__)("%s address"),i),value:Object(C.safeDecodeURIComponent)(a),onFocus:this.onSelectInput}),Object(B.createElement)("div",{className:"post-publish-panel__postpublish-buttons"},!n&&Object(B.createElement)(co.Button,{isSecondary:!0,href:a},c),Object(B.createElement)(co.ClipboardButton,{isSecondary:!0,text:a,onCopy:this.onCopy},this.state.showCopyConfirmation?Object(Zt.__)("Copied!"):Object(Zt.__)("Copy Link")))),t)}}]),n}(B.Component),Yi=Object(p.withSelect)((function(e){var t=e("core/editor"),n=t.getEditedPostAttribute,r=t.getCurrentPost,o=t.isCurrentPostScheduled,i=e("core").getPostType;return{post:r(),postType:i(n("type")),isScheduled:o()}}))($i);function Xi(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Ur.a)(e);if(t){var o=Object(Ur.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(Lr.a)(this,n)}}var Ji=function(e){Object(Nr.a)(n,e);var t=Xi(n);function n(){var e;return Object(Rr.a)(this,n),(e=t.apply(this,arguments)).onSubmit=e.onSubmit.bind(Object(So.a)(e)),e}return Object(Dr.a)(n,[{key:"componentDidUpdate",value:function(e){e.isPublished&&!this.props.isSaving&&this.props.isDirty&&this.props.onClose()}},{key:"onSubmit",value:function(){var e=this.props,t=e.onClose,n=e.hasPublishAction,r=e.isPostTypeViewable;n&&r||t()}},{key:"render",value:function(){var e=this.props,t=e.forceIsDirty,n=e.forceIsSaving,r=e.isBeingScheduled,o=e.isPublished,i=e.isPublishSidebarEnabled,c=e.isScheduled,a=e.isSaving,s=e.onClose,u=e.onTogglePublishSidebar,l=e.PostPublishExtension,d=e.PrePublishExtension,p=Object($t.a)(e,["forceIsDirty","forceIsSaving","isBeingScheduled","isPublished","isPublishSidebarEnabled","isScheduled","isSaving","onClose","onTogglePublishSidebar","PostPublishExtension","PrePublishExtension"]),b=Object(v.omit)(p,["hasPublishAction","isDirty","isPostTypeViewable"]),f=o||c&&r,h=!f&&!a,m=f&&!a;return Object(B.createElement)("div",Object(Sr.a)({className:"editor-post-publish-panel"},b),Object(B.createElement)("div",{className:"editor-post-publish-panel__header"},m?Object(B.createElement)(co.Button,{onClick:s,icon:yi.a,label:Object(Zt.__)("Close panel")}):Object(B.createElement)(B.Fragment,null,Object(B.createElement)("div",{className:"editor-post-publish-panel__header-publish-button"},Object(B.createElement)(ji,{focusOnMount:!0,onSubmit:this.onSubmit,forceIsDirty:t,forceIsSaving:n})),Object(B.createElement)("div",{className:"editor-post-publish-panel__header-cancel-button"},Object(B.createElement)(co.Button,{onClick:s,isSecondary:!0},Object(Zt.__)("Cancel"))))),Object(B.createElement)("div",{className:"editor-post-publish-panel__content"},h&&Object(B.createElement)(Ki,null,d&&Object(B.createElement)(d,null)),m&&Object(B.createElement)(Yi,{focusOnMount:!0},l&&Object(B.createElement)(l,null)),a&&Object(B.createElement)(co.Spinner,null)),Object(B.createElement)("div",{className:"editor-post-publish-panel__footer"},Object(B.createElement)(co.CheckboxControl,{label:Object(Zt.__)("Always show pre-publish checks."),checked:i,onChange:u})))}}]),n}(B.Component),Zi=Object(Er.compose)([Object(p.withSelect)((function(e){var t=e("core").getPostType,n=e("core/editor"),r=n.getCurrentPost,o=n.getEditedPostAttribute,i=n.isCurrentPostPublished,c=n.isCurrentPostScheduled,a=n.isEditedPostBeingScheduled,s=n.isEditedPostDirty,u=n.isSavingPost,l=e("core/editor").isPublishSidebarEnabled,d=t(o("type"));return{hasPublishAction:Object(v.get)(r(),["_links","wp:action-publish"],!1),isPostTypeViewable:Object(v.get)(d,["viewable"],!1),isBeingScheduled:a(),isDirty:s(),isPublished:i(),isPublishSidebarEnabled:l(),isSaving:u(),isScheduled:c()}})),Object(p.withDispatch)((function(e,t){var n=t.isPublishSidebarEnabled,r=e("core/editor"),o=r.disablePublishSidebar,i=r.enablePublishSidebar;return{onTogglePublishSidebar:function(){n?o():i()}}})),co.withFocusReturn,co.withConstrainedTabbing])(Ji),ec=n(141),tc=Object(B.createElement)(so.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(B.createElement)(so.Path,{d:"M14.9 9c1.8.2 3.1 1.7 3.1 3.5 0 1.9-1.6 3.5-3.5 3.5h-10C2.6 16 1 14.4 1 12.5 1 10.7 2.3 9.3 4.1 9 4 8.9 4 8.7 4 8.5 4 7.1 5.1 6 6.5 6c.3 0 .7.1.9.2C8.1 4.9 9.4 4 11 4c2.2 0 4 1.8 4 4 0 .4-.1.7-.1 1z"})),nc=n(161),rc=Object(B.createElement)(so.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(B.createElement)(so.Path,{d:"M14.8 9c.1-.3.2-.6.2-1 0-2.2-1.8-4-4-4-1.5 0-2.9.9-3.5 2.2-.3-.1-.7-.2-1-.2C5.1 6 4 7.1 4 8.5c0 .2 0 .4.1.5-1.8.3-3.1 1.7-3.1 3.5C1 14.4 2.6 16 4.5 16H8v-3H5l4.5-4.5L14 13h-3v3h3.5c1.9 0 3.5-1.6 3.5-3.5 0-1.8-1.4-3.3-3.2-3.5z"}));var oc=Object(Er.compose)([Object(p.withSelect)((function(e){var t=e("core/editor"),n=t.isSavingPost,r=t.isCurrentPostPublished,o=t.isCurrentPostScheduled;return{isSaving:n(),isPublished:r(),isScheduled:o()}})),Object(p.withDispatch)((function(e){var t=e("core/editor"),n=t.editPost,r=t.savePost;return{onClick:function(){n({status:"draft"}),r()}}}))])((function(e){var t=e.isSaving,n=e.isPublished,r=e.isScheduled,o=e.onClick,i=Object(Er.useViewportMatch)("small","<");return n||r?Object(B.createElement)(co.Button,{className:"editor-post-switch-to-draft",onClick:function(){var e;n?e=Object(Zt.__)("Are you sure you want to unpublish this post?"):r&&(e=Object(Zt.__)("Are you sure you want to unschedule this post?")),window.confirm(e)&&o()},disabled:t,isTertiary:!0},i?Object(Zt.__)("Draft"):Object(Zt.__)("Switch to draft")):null}));function ic(e){var t=e.forceIsDirty,n=e.forceIsSaving,r=e.showIconLabels,o=void 0!==r&&r,i=Object(B.useState)(!1),c=Object(E.a)(i,2),a=c[0],s=c[1],u=Object(Er.useViewportMatch)("small"),l=Object(p.useSelect)((function(e){var r,o,i,c=e("core/editor"),a=c.isEditedPostNew,s=c.isCurrentPostPublished,u=c.isCurrentPostScheduled,l=c.isEditedPostDirty,d=c.isSavingPost,p=c.isEditedPostSaveable,b=c.getCurrentPost,f=c.isAutosavingPost,h=c.getEditedPostAttribute;return{isAutosaving:f(),isDirty:t||l(),isNew:a(),isPending:"pending"===h("status"),isPublished:s(),isSaving:n||d(),isSaveable:p(),isScheduled:u(),hasPublishAction:null!==(r=null===(o=b())||void 0===o||null===(i=o._links)||void 0===i?void 0:i["wp:action-publish"])&&void 0!==r&&r}}),[t,n]),d=l.isAutosaving,b=l.isDirty,f=l.isNew,h=l.isPending,m=l.isPublished,v=l.isSaveable,O=l.isSaving,g=l.isScheduled,j=l.hasPublishAction,y=Object(p.useDispatch)("core/editor").savePost,_=Object(Er.usePrevious)(O);if(Object(B.useEffect)((function(){var e;return _&&!O&&(s(!0),e=setTimeout((function(){s(!1)}),1e3)),function(){return clearTimeout(e)}}),[O]),O){var k=Hr()("editor-post-saved-state","is-saving",{"is-autosaving":d});return Object(B.createElement)(co.Animate,{type:"loading"},(function(e){var t=e.className;return Object(B.createElement)("span",{className:Hr()(k,t)},Object(B.createElement)(ec.a,{icon:tc}),d?Object(Zt.__)("Autosaving"):Object(Zt.__)("Saving"))}))}if(m||g)return Object(B.createElement)(oc,null);if(!v)return null;if(a||!f&&!b)return Object(B.createElement)("span",{className:"editor-post-saved-state is-saved"},Object(B.createElement)(ec.a,{icon:nc.a}),Object(Zt.__)("Saved"));if(!j&&h)return null;var P=h?Object(Zt.__)("Save as pending"):Object(Zt.__)("Save draft"),S=Object(Zt.__)("Save");return u?Object(B.createElement)(co.Button,{className:"editor-post-save-draft",onClick:function(){return y()},shortcut:ao.displayShortcut.primary("s"),isTertiary:!0},P):Object(B.createElement)(co.Button,{className:"editor-post-save-draft",label:P,onClick:function(){return y()},shortcut:ao.displayShortcut.primary("s"),icon:rc},o&&S)}var cc=Object(Er.compose)([Object(p.withSelect)((function(e){var t=e("core/editor"),n=t.getCurrentPost,r=t.getCurrentPostType;return{hasPublishAction:Object(v.get)(n(),["_links","wp:action-publish"],!1),postType:r()}}))])((function(e){var t=e.hasPublishAction,n=e.children;return t?n:null}));function ac(e){var t=e.children;return Object(B.createElement)(Ao,{supportKeys:"slug"},t)}function sc(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Ur.a)(e);if(t){var o=Object(Ur.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(Lr.a)(this,n)}}var uc=function(e){Object(Nr.a)(n,e);var t=sc(n);function n(e){var r,o=e.postSlug,i=e.postTitle,c=e.postID;return Object(Rr.a)(this,n),(r=t.apply(this,arguments)).state={editedSlug:Object(C.safeDecodeURIComponent)(o)||V(i)||c},r.setSlug=r.setSlug.bind(Object(So.a)(r)),r}return Object(Dr.a)(n,[{key:"setSlug",value:function(e){var t=this.props,n=t.postSlug,r=t.onUpdateSlug,o=V(e.target.value);o!==n&&r(o)}},{key:"render",value:function(){var e=this,t=this.props.instanceId,n=this.state.editedSlug,r="editor-post-slug-"+t;return Object(B.createElement)(ac,null,Object(B.createElement)("label",{htmlFor:r},Object(Zt.__)("Slug")),Object(B.createElement)("input",{type:"text",id:r,value:n,onChange:function(t){return e.setState({editedSlug:t.target.value})},onBlur:this.setSlug,className:"editor-post-slug__input"}))}}]),n}(B.Component),lc=Object(Er.compose)([Object(p.withSelect)((function(e){var t=e("core/editor"),n=t.getCurrentPost,r=t.getEditedPostAttribute,o=n().id;return{postSlug:r("slug"),postTitle:r("title"),postID:o}})),Object(p.withDispatch)((function(e){var t=e("core/editor").editPost;return{onUpdateSlug:function(e){t({slug:e})}}})),Er.withInstanceId])(uc);var dc=Object(Er.compose)([Object(p.withSelect)((function(e){var t=e("core/editor").getCurrentPost();return{hasStickyAction:Object(v.get)(t,["_links","wp:action-sticky"],!1),postType:e("core/editor").getCurrentPostType()}}))])((function(e){var t=e.hasStickyAction,n=e.postType,r=e.children;return"post"===n&&t?r:null}));var pc=Object(Er.compose)([Object(p.withSelect)((function(e){return{postSticky:e("core/editor").getEditedPostAttribute("sticky")}})),Object(p.withDispatch)((function(e){return{onUpdateSticky:function(t){e("core/editor").editPost({sticky:t})}}}))])((function(e){var t=e.onUpdateSticky,n=e.postSticky,r=void 0!==n&&n;return Object(B.createElement)(dc,null,Object(B.createElement)(co.CheckboxControl,{label:Object(Zt.__)("Stick to the top of the blog"),checked:r,onChange:function(){return t(!r)}}))}));function bc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function fc(e){for(var t=1;t0)};return e.sort((function(e,t){var r=n(e),o=n(t);return r===o?0:r&&!o?-1:!r&&o?1:0})),e}},{key:"setFilterValue",value:function(e){var t=this.state.availableTermsTree,n=e.target.value,r=t.map(this.getFilterMatcher(n)).filter((function(e){return e}));this.setState({filterValue:n,filteredTermsTree:r});var o=function e(t){for(var n=0,r=0;r0&&(r.children=r.children.map(t).filter((function(e){return e}))),(-1!==r.name.toLowerCase().indexOf(e.toLowerCase())||r.children.length>0)&&r}}},{key:"renderTerms",value:function(e){var t=this,n=this.props.terms,r=void 0===n?[]:n;return e.map((function(e){return Object(B.createElement)("div",{key:e.id,className:"editor-post-taxonomies__hierarchical-terms-choice"},Object(B.createElement)(co.CheckboxControl,{checked:-1!==r.indexOf(e.id),onChange:function(){var n=parseInt(e.id,10);t.onChange(n)},label:Object(v.unescape)(e.name)}),!!e.children.length&&Object(B.createElement)("div",{className:"editor-post-taxonomies__hierarchical-terms-subchoices"},t.renderTerms(e.children)))}))}},{key:"render",value:function(){var e=this.props,t=e.slug,n=e.taxonomy,r=e.instanceId,o=e.hasCreateAction;if(!e.hasAssignAction)return null;var i=this.state,c=i.availableTermsTree,a=i.availableTerms,s=i.filteredTermsTree,u=i.formName,l=i.formParent,d=i.loading,p=i.showForm,b=i.filterValue,f=function(e,r,o){return Object(v.get)(n,["labels",e],"category"===t?r:o)},h=f("add_new_item",Object(Zt.__)("Add new category"),Object(Zt.__)("Add new term")),m=f("new_item_name",Object(Zt.__)("Add new category"),Object(Zt.__)("Add new term")),O=f("parent_item",Object(Zt.__)("Parent Category"),Object(Zt.__)("Parent Term")),g="— ".concat(O," —"),j=h,y="editor-post-taxonomies__hierarchical-terms-input-".concat(r),_="editor-post-taxonomies__hierarchical-terms-filter-".concat(r),k=Object(v.get)(this.props.taxonomy,["labels","search_items"],Object(Zt.__)("Search Terms")),P=Object(v.get)(this.props.taxonomy,["name"],Object(Zt.__)("Terms")),S=a.length>=8;return[S&&Object(B.createElement)("label",{key:"filter-label",htmlFor:_},k),S&&Object(B.createElement)("input",{type:"search",id:_,value:b,onChange:this.setFilterValue,className:"editor-post-taxonomies__hierarchical-terms-filter",key:"term-filter-input"}),Object(B.createElement)("div",{className:"editor-post-taxonomies__hierarchical-terms-list",key:"term-list",tabIndex:"0",role:"group","aria-label":P},this.renderTerms(""!==b?s:c)),!d&&o&&Object(B.createElement)(co.Button,{key:"term-add-button",onClick:this.onToggleForm,className:"editor-post-taxonomies__hierarchical-terms-add","aria-expanded":p,isLink:!0},h),p&&Object(B.createElement)("form",{onSubmit:this.onAddTerm,key:"hierarchical-terms-form"},Object(B.createElement)("label",{htmlFor:y,className:"editor-post-taxonomies__hierarchical-terms-label"},m),Object(B.createElement)("input",{type:"text",id:y,className:"editor-post-taxonomies__hierarchical-terms-input",value:u,onChange:this.onChangeFormName,required:!0}),!!a.length&&Object(B.createElement)(co.TreeSelect,{label:O,noOptionLabel:g,onChange:this.onChangeFormParent,selectedId:l,tree:c}),Object(B.createElement)(co.Button,{isSecondary:!0,type:"submit",className:"editor-post-taxonomies__hierarchical-terms-submit"},j))]}}]),n}(B.Component),Oc=Object(Er.compose)([Object(p.withSelect)((function(e,t){var n=t.slug,r=e("core/editor").getCurrentPost,o=(0,e("core").getTaxonomy)(n);return{hasCreateAction:!!o&&Object(v.get)(r(),["_links","wp:action-create-"+o.rest_base],!1),hasAssignAction:!!o&&Object(v.get)(r(),["_links","wp:action-assign-"+o.rest_base],!1),terms:o?e("core/editor").getEditedPostAttribute(o.rest_base):[],taxonomy:o}})),Object(p.withDispatch)((function(e){return{onUpdateTerms:function(t,n){e("core/editor").editPost(Object(d.a)({},n,t))}}})),co.withSpokenMessages,Er.withInstanceId,Object(co.withFilters)("editor.PostTaxonomyType")])(vc);var gc=Object(Er.compose)([Object(p.withSelect)((function(e){return{postType:e("core/editor").getCurrentPostType(),taxonomies:e("core").getTaxonomies({per_page:-1})}}))])((function(e){var t=e.postType,n=e.taxonomies,r=e.taxonomyWrapper,o=void 0===r?v.identity:r,i=Object(v.filter)(n,(function(e){return Object(v.includes)(e.types,t)}));return Object(v.filter)(i,(function(e){return e.visibility.show_ui})).map((function(e){var t=e.hierarchical?Oc:Ui;return Object(B.createElement)(B.Fragment,{key:"taxonomy-".concat(e.slug)},o(Object(B.createElement)(t,{slug:e.slug}),e))}))}));var jc=Object(Er.compose)([Object(p.withSelect)((function(e){return{postType:e("core/editor").getCurrentPostType(),taxonomies:e("core").getTaxonomies({per_page:-1})}}))])((function(e){var t=e.postType,n=e.taxonomies,r=e.children;return Object(v.some)(n,(function(e){return Object(v.includes)(e.types,t)}))?r:null})),yc=n(100),_c=n.n(yc);function kc(){var e=Object(p.useSelect)((function(e){return e("core/editor").getEditedPostContent()}),[]),t=Object(p.useDispatch)("core/editor"),n=t.editPost,r=t.resetEditorBlocks,o=Object(B.useState)(e),i=Object(E.a)(o,2),a=i[0],s=i[1],u=Object(B.useState)(!1),l=Object(E.a)(u,2),d=l[0],b=l[1],f=Object(Er.useInstanceId)(kc);d||a===e||s(e);return Object(B.createElement)(B.Fragment,null,Object(B.createElement)(co.VisuallyHidden,{as:"label",htmlFor:"post-content-".concat(f)},Object(Zt.__)("Type text or HTML")),Object(B.createElement)(_c.a,{autoComplete:"off",dir:"auto",value:a,onChange:function(e){var t=e.target.value;n({content:t}),s(t),b(!0)},onBlur:function(){if(d){var e=Object(c.parse)(a);r(e),b(!1)}},className:"editor-post-text-editor",id:"post-content-".concat(f),placeholder:Object(Zt.__)("Start writing with text or HTML")}))}function Pc(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(Ur.a)(e);if(t){var o=Object(Ur.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(Lr.a)(this,n)}}var Sc=/[\r\n]+/g,Ec=function(e){Object(Nr.a)(n,e);var t=Pc(n);function n(){var e;return Object(Rr.a)(this,n),(e=t.apply(this,arguments)).onChange=e.onChange.bind(Object(So.a)(e)),e.onSelect=e.onSelect.bind(Object(So.a)(e)),e.onUnselect=e.onUnselect.bind(Object(So.a)(e)),e.onKeyDown=e.onKeyDown.bind(Object(So.a)(e)),e.onPaste=e.onPaste.bind(Object(So.a)(e)),e.state={isSelected:!1},e}return Object(Dr.a)(n,[{key:"onSelect",value:function(){this.setState({isSelected:!0}),this.props.clearSelectedBlock()}},{key:"onUnselect",value:function(){this.setState({isSelected:!1})}},{key:"onChange",value:function(e){var t=e.target.value.replace(Sc," ");this.props.onUpdate(t)}},{key:"onKeyDown",value:function(e){e.keyCode===ao.ENTER&&(e.preventDefault(),this.props.onEnterPress())}},{key:"onPaste",value:function(e){var t=this.props,n=t.title,r=t.onInsertBlockAfter,o=t.onUpdate,i=e.clipboardData,a="",s="";try{a=i.getData("text/plain"),s=i.getData("text/html")}catch(e){try{s=i.getData("Text")}catch(e){return}}window.console.log("Received HTML:\n\n",s),window.console.log("Received plain text:\n\n",a);var u=Object(c.pasteHandler)({HTML:s,plainText:a});if("string"!=typeof u&&u.length){e.preventDefault();var l=Object(E.a)(u,1)[0];n||"core/heading"!==l.name&&"core/paragraph"!==l.name?r(u):(o(l.attributes.content),r(u.slice(1)))}}},{key:"render",value:function(){var e=this.props,t=e.hasFixedToolbar,n=e.isCleanNewPost,r=e.isFocusMode,o=e.instanceId,i=e.placeholder,c=e.title,a=this.state.isSelected,s=Hr()("wp-block editor-post-title editor-post-title__block",{"is-selected":a,"is-focus-mode":r,"has-fixed-toolbar":t}),u=Object(qi.decodeEntities)(i);return Object(B.createElement)(Ao,{supportKeys:"title"},Object(B.createElement)("div",{className:s},Object(B.createElement)(co.VisuallyHidden,{as:"label",htmlFor:"post-title-".concat(o)},u||Object(Zt.__)("Add title")),Object(B.createElement)(_c.a,{id:"post-title-".concat(o),className:"editor-post-title__input",value:c,onChange:this.onChange,placeholder:u||Object(Zt.__)("Add title"),onFocus:this.onSelect,onBlur:this.onUnselect,onKeyDown:this.onKeyDown,onKeyPress:this.onUnselect,onPaste:this.onPaste,autoFocus:(document.body===document.activeElement||!document.activeElement)&&n})))}}]),n}(B.Component),wc=Object(p.withSelect)((function(e){var t=e("core/editor"),n=t.getEditedPostAttribute,r=t.isCleanNewPost,o=(0,e("core/block-editor").getSettings)(),i=o.titlePlaceholder,c=o.focusMode,a=o.hasFixedToolbar;return{isCleanNewPost:r(),title:n("title"),placeholder:i,isFocusMode:c,hasFixedToolbar:a}})),Cc=Object(p.withDispatch)((function(e){var t=e("core/block-editor"),n=t.insertDefaultBlock,r=t.clearSelectedBlock,o=t.insertBlocks,i=e("core/editor").editPost;return{onEnterPress:function(){n(void 0,void 0,0)},onInsertBlockAfter:function(e){o(e,0)},onUpdate:function(e){i({title:e})},clearSelectedBlock:r}})),Tc=Object(Er.compose)(wc,Cc,Er.withInstanceId)(Ec);var xc=Object(Er.compose)([Object(p.withSelect)((function(e){var t=e("core/editor"),n=t.isEditedPostNew,r=t.getCurrentPostId,o=t.getCurrentPostType;return{isNew:n(),postId:r(),postType:o()}})),Object(p.withDispatch)((function(e){return{trashPost:e("core/editor").trashPost}}))])((function(e){var t=e.isNew,n=e.postId,r=e.postType,o=Object($t.a)(e,["isNew","postId","postType"]);return t||!n?null:Object(B.createElement)(co.Button,{className:"editor-post-trash",isDestructive:!0,isTertiary:!0,onClick:function(){return o.trashPost(n,r)}},Object(Zt.__)("Move to trash"))}));var Bc=Object(p.withSelect)((function(e){var t=e("core/editor"),n=t.isEditedPostNew,r=t.getCurrentPostId,o=t.getCurrentPostType,i=e("core"),c=i.getPostType,a=i.canUser,s=r(),u=c(o()),l=(null==u?void 0:u.rest_base)||"";return{isNew:n(),postId:s,canUserDelete:!(!s||!l)&&a("delete",l,s)}}))((function(e){var t=e.isNew,n=e.postId,r=e.canUserDelete,o=e.children;return!t&&n&&r?o:null}));var Ic=Object(Er.compose)([Object(p.withSelect)((function(e){var t=e("core/editor"),n=t.getCurrentPost,r=t.getCurrentPostType;return{hasPublishAction:Object(v.get)(n(),["_links","wp:action-publish"],!1),postType:r()}}))])((function(e){var t=e.hasPublishAction;return(0,e.render)({canEdit:t})})),Ac=Object(B.createElement)(so.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(B.createElement)(so.Path,{d:"M12 3.2c-4.8 0-8.8 3.9-8.8 8.8 0 4.8 3.9 8.8 8.8 8.8 4.8 0 8.8-3.9 8.8-8.8 0-4.8-4-8.8-8.8-8.8zm0 16c-4 0-7.2-3.3-7.2-7.2C4.8 8 8 4.8 12 4.8s7.2 3.3 7.2 7.2c0 4-3.2 7.2-7.2 7.2zM11 17h2v-6h-2v6zm0-8h2V7h-2v2z"})),Rc=n(129);function Dc(){var e=Object(p.useSelect)((function(e){return e("core/editor").getEditedPostAttribute("content")})),t=Object(Zt._x)("words","Word count type. Do not translate!");return Object(B.createElement)("span",{className:"word-count"},Object(Rc.count)(e,t))}function Nc(){var e=Object(p.useSelect)((function(e){return e("core/editor").getEditedPostAttribute("content")}));return Object(Rc.count)(e,"characters_including_spaces")}var Lc=function(e){var t=e.hasOutlineItemsDisabled,n=e.onRequestClose,r=Object(p.useSelect)((function(e){var t=e("core/block-editor").getGlobalBlockCount;return{headingCount:t("core/heading"),paragraphCount:t("core/paragraph"),numberOfBlocks:t()}}),[]),o=r.headingCount,i=r.paragraphCount,c=r.numberOfBlocks;return Object(B.createElement)(B.Fragment,null,Object(B.createElement)("div",{className:"table-of-contents__wrapper",role:"note","aria-label":Object(Zt.__)("Document Statistics"),tabIndex:"0"},Object(B.createElement)("ul",{role:"list",className:"table-of-contents__counts"},Object(B.createElement)("li",{className:"table-of-contents__count"},Object(Zt.__)("Characters"),Object(B.createElement)("span",{className:"table-of-contents__number"},Object(B.createElement)(Nc,null))),Object(B.createElement)("li",{className:"table-of-contents__count"},Object(Zt.__)("Words"),Object(B.createElement)(Dc,null)),Object(B.createElement)("li",{className:"table-of-contents__count"},Object(Zt.__)("Headings"),Object(B.createElement)("span",{className:"table-of-contents__number"},o)),Object(B.createElement)("li",{className:"table-of-contents__count"},Object(Zt.__)("Paragraphs"),Object(B.createElement)("span",{className:"table-of-contents__number"},i)),Object(B.createElement)("li",{className:"table-of-contents__count"},Object(Zt.__)("Blocks"),Object(B.createElement)("span",{className:"table-of-contents__number"},c)))),o>0&&Object(B.createElement)(B.Fragment,null,Object(B.createElement)("hr",null),Object(B.createElement)("h2",{className:"table-of-contents__title"},Object(Zt.__)("Document Outline")),Object(B.createElement)(Jr,{onSelect:n,hasOutlineItemsDisabled:t})))};var Uc=Object(B.forwardRef)((function(e,t){var n=e.hasOutlineItemsDisabled,r=e.repositionDropdown,o=Object($t.a)(e,["hasOutlineItemsDisabled","repositionDropdown"]),i=Object(p.useSelect)((function(e){return!!e("core/block-editor").getBlockCount()}),[]);return Object(B.createElement)(co.Dropdown,{position:r?"middle right right":"bottom",className:"table-of-contents",contentClassName:"table-of-contents__popover",renderToggle:function(e){var n=e.isOpen,r=e.onToggle;return Object(B.createElement)(co.Button,Object(Sr.a)({},o,{ref:t,onClick:i?r:void 0,icon:Ac,"aria-expanded":n,"aria-haspopup":"true",label:Object(Zt.__)("Details"),tooltipPosition:"bottom","aria-disabled":!i}))},renderContent:function(e){var t=e.onClose;return Object(B.createElement)(Lc,{onRequestClose:t,hasOutlineItemsDisabled:n})}})}));function Fc(){var e=Object(p.useSelect)((function(e){return function(){return(0,e("core").__experimentalGetDirtyEntityRecords)().length>0}}),[]),t=function(t){if(e())return t.returnValue=Object(Zt.__)("You have unsaved changes. If you proceed, they will be lost."),t.returnValue};return Object(B.useEffect)((function(){return window.addEventListener("beforeunload",t),function(){window.removeEventListener("beforeunload",t)}}),[]),null}var Mc=n(45),Vc=Object(Er.createHigherOrderComponent)((function(e){return Object(p.withRegistry)((function(t){var n=t.useSubRegistry,r=void 0===n||n,o=t.registry,c=Object($t.a)(t,["useSubRegistry","registry"]);if(!r)return Object(B.createElement)(e,c);var a=Object(B.useState)(null),s=Object(E.a)(a,2),u=s[0],l=s[1];return Object(B.useEffect)((function(){var e=Object(p.createRegistry)({"core/block-editor":i.storeConfig},o);e.registerStore("core/editor",Pr),l(e)}),[o]),u?Object(B.createElement)(p.RegistryProvider,{value:u},Object(B.createElement)(e,c)):null}))}),"withRegistryProvider"),zc=n(155);function Hc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Wc(e){for(var t=1;t0?n(a[0]):void 0),l=r(a),d=1===l.length&&l[0]&&l[0].name===s;return{clientIds:a,isGroupable:u&&l.length&&!d,isUngroupable:d&&!!l[0].innerBlocks.length,blocksSelection:l,groupingBlockName:s}})),Object(p.withDispatch)((function(e,t){var n=t.clientIds,r=t.blocksSelection,o=void 0===r?[]:r,i=t.groupingBlockName,a=e("core/block-editor").replaceBlocks;return{onConvertToGroup:function(){var e=Object(c.switchToBlockType)(o,i);e&&a(n,e)},onConvertFromGroup:function(){var e=o[0].innerBlocks;e.length&&a(n,e)}}}))])((function(e){var t=e.onConvertToGroup,n=e.onConvertFromGroup,r=e.isGroupable,o=void 0!==r&&r,c=e.isUngroupable,a=void 0!==c&&c;return o||a?Object(B.createElement)(i.BlockSettingsMenuControls,null,(function(e){var r=e.onClose;return Object(B.createElement)(B.Fragment,null,o&&Object(B.createElement)(co.MenuItem,{onClick:function(){t(),r()}},Object(Zt._x)("Group","verb")),a&&Object(B.createElement)(co.MenuItem,{onClick:function(){n(),r()}},Object(Zt._x)("Ungroup","Ungrouping blocks from within a Group block back into individual blocks within the Editor ")))})):null}));function qc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Qc(e){for(var t=1;t1&&void 0!==b[1]?b[1]:{},r=n.isInitialSuggestions,o=n.type,i=n.subtype,c=n.page,a=n.perPage,s=b.length>2&&void 0!==b[2]?b[2]:{},u=s.disablePostFormats,l=void 0!==u&&u,d=a||r?3:20,p=[],o&&"post"!==o||p.push(Ir()({path:Object(C.addQueryArgs)("/wp/v2/search",{search:t,page:c,per_page:d,type:"post",subtype:i})}).catch((function(){return[]}))),o&&"term"!==o||p.push(Ir()({path:Object(C.addQueryArgs)("/wp/v2/search",{search:t,page:c,per_page:d,type:"term",subtype:i})}).catch((function(){return[]}))),l||o&&"post-format"!==o||p.push(Ir()({path:Object(C.addQueryArgs)("/wp/v2/search",{search:t,page:c,per_page:d,type:"post-format",subtype:i})}).catch((function(){return[]}))),e.abrupt("return",Promise.all(p).then((function(e){return Object(v.map)(Object(v.flatten)(e).filter((function(e){return!!e.id})).slice(0,d),(function(e){return{id:e.id,url:e.url,title:Object(qi.decodeEntities)(e.title)||Object(Zt.__)("(no title)"),type:e.subtype||e.type}}))})));case 8:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),Xc=function(e){Object(Nr.a)(n,e);var t=$c(n);function n(e){var r;return Object(Rr.a)(this,n),(r=t.apply(this,arguments)).getBlockEditorSettings=L()(r.getBlockEditorSettings,{maxSize:1}),r.getDefaultBlockContext=L()(r.getDefaultBlockContext,{maxSize:1}),e.recovery?Object(Lr.a)(r):(e.updatePostLock(e.settings.postLock),e.setupEditor(e.post,e.initialEdits,e.settings.template),e.settings.autosave&&e.createWarningNotice(Object(Zt.__)("There is an autosave of this post that is more recent than the version below."),{id:"autosave-exists",actions:[{label:Object(Zt.__)("View the autosave"),url:e.settings.autosave.editLink}]}),r)}return Object(Dr.a)(n,[{key:"getBlockEditorSettings",value:function(e,t,n,r,o,i){return Qc(Qc({},Object(v.pick)(e,["__experimentalBlockDirectory","__experimentalBlockPatterns","__experimentalBlockPatternCategories","__experimentalEnableFullSiteEditing","__experimentalEnableFullSiteEditingDemo","__experimentalFeatures","__experimentalGlobalStylesUserEntityId","__experimentalGlobalStylesBaseStyles","__experimentalGlobalStylesContexts","__experimentalPreferredStyleVariations","__experimentalSetIsInserterOpened","alignWide","allowedBlockTypes","availableLegacyWidgets","bodyPlaceholder","codeEditingEnabled","colors","disableCustomColors","disableCustomFontSizes","disableCustomGradients","enableCustomUnits","enableCustomLineHeight","focusMode","fontSizes","gradients","hasFixedToolbar","hasReducedUI","imageEditing","imageSizes","imageDimensions","isRTL","keepCaretInsideBlock","maxWidth","onUpdateDefaultBlockStyles","styles","template","templateLock","titlePlaceholder"])),{},{mediaUpload:n?Gc:void 0,__experimentalReusableBlocks:t,__experimentalFetchLinkSuggestions:Object(v.partialRight)(Yc,e),__experimentalCanUserUseUnfilteredHTML:r,__experimentalUndo:o,__experimentalShouldInsertAtTheTop:i})}},{key:"getDefaultBlockContext",value:function(e,t){return{postId:e,postType:t}}},{key:"componentDidMount",value:function(){this.props.updateEditorSettings(this.props.settings)}},{key:"componentDidUpdate",value:function(e){this.props.settings!==e.settings&&this.props.updateEditorSettings(this.props.settings)}},{key:"componentWillUnmount",value:function(){this.props.tearDownEditor()}},{key:"render",value:function(){var e=this.props,t=e.canUserUseUnfilteredHTML,n=e.children,r=e.post,o=e.blocks,c=e.resetEditorBlocks,s=e.selectionStart,l=e.selectionEnd,d=e.isReady,p=e.settings,b=e.reusableBlocks,f=e.resetEditorBlocksWithoutUndoLevel,h=e.hasUploadPermissions,m=e.isPostTitleSelected,v=e.undo;if(!d)return null;var O=this.getBlockEditorSettings(p,b,h,t,v,m),g=this.getDefaultBlockContext(r.id,r.type);return Object(B.createElement)(B.Fragment,null,Object(B.createElement)(i.__unstableEditorStyles,{styles:p.styles}),Object(B.createElement)(a.EntityProvider,{kind:"root",type:"site"},Object(B.createElement)(a.EntityProvider,{kind:"postType",type:r.type,id:r.id},Object(B.createElement)(i.BlockContextProvider,{value:g},Object(B.createElement)(i.BlockEditorProvider,{value:o,onInput:f,onChange:c,selectionStart:s,selectionEnd:l,settings:O,useSubRegistry:!1},n,Object(B.createElement)(u.ReusableBlocksMenuItems,null),Object(B.createElement)(Kc,null))))))}}]),n}(B.Component),Jc=Object(Er.compose)([Vc,Object(p.withSelect)((function(e){var t=e("core/editor"),n=t.canUserUseUnfilteredHTML,r=t.__unstableIsEditorReady,o=t.getEditorBlocks,i=t.getEditorSelectionStart,c=t.getEditorSelectionEnd,a=t.isPostTitleSelected,s=e("core").canUser;return{canUserUseUnfilteredHTML:n(),isReady:r(),blocks:o(),selectionStart:i(),selectionEnd:c(),reusableBlocks:e("core").getEntityRecords("postType","wp_block",{per_page:-1}),hasUploadPermissions:Object(v.defaultTo)(s("create","media"),!0),isPostTitleSelected:a&&a()}})),Object(p.withDispatch)((function(e){var t=e("core/editor"),n=t.setupEditor,r=t.updatePostLock,o=t.resetEditorBlocks,i=t.updateEditorSettings,c=t.__experimentalTearDownEditor,a=t.undo;return{setupEditor:n,updatePostLock:r,createWarningNotice:e("core/notices").createWarningNotice,resetEditorBlocks:o,updateEditorSettings:i,resetEditorBlocksWithoutUndoLevel:function(e,t){o(e,Qc(Qc({},t),{},{__unstableShouldCreateUndoLevel:!1}))},tearDownEditor:c,undo:a}}))])(Xc),Zc=n(88),ea=n.n(Zc);function ta(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=Object(B.forwardRef)((function(n,r){return x()("wp.editor."+e,{alternative:"wp.blockEditor."+e}),Object(B.createElement)(t,Object(Sr.a)({ref:r},n))}));return n.forEach((function(n){r[n]=ta(e+"."+n,t[n])})),r}function na(e,t){return function(){return x()("wp.editor."+e,{alternative:"wp.blockEditor."+e}),t.apply(void 0,arguments)}}var ra=ta("RichText",i.RichText,["Content"]);ra.isEmpty=na("RichText.isEmpty",i.RichText.isEmpty);var oa=ta("Autocomplete",i.Autocomplete),ia=ta("AlignmentToolbar",i.AlignmentToolbar),ca=ta("BlockAlignmentToolbar",i.BlockAlignmentToolbar),aa=ta("BlockControls",i.BlockControls,["Slot"]),sa=ta("BlockEdit",i.BlockEdit),ua=ta("BlockEditorKeyboardShortcuts",i.BlockEditorKeyboardShortcuts),la=ta("BlockFormatControls",i.BlockFormatControls,["Slot"]),da=ta("BlockIcon",i.BlockIcon),pa=ta("BlockInspector",i.BlockInspector),ba=ta("BlockList",i.BlockList),fa=ta("BlockMover",i.BlockMover),ha=ta("BlockNavigationDropdown",i.BlockNavigationDropdown),ma=ta("BlockSelectionClearer",i.BlockSelectionClearer),va=ta("BlockSettingsMenu",i.BlockSettingsMenu),Oa=ta("BlockTitle",i.BlockTitle),ga=ta("BlockToolbar",i.BlockToolbar),ja=ta("ColorPalette",i.ColorPalette),ya=ta("ContrastChecker",i.ContrastChecker),_a=ta("CopyHandler",i.CopyHandler),ka=ta("DefaultBlockAppender",i.DefaultBlockAppender),Pa=ta("FontSizePicker",i.FontSizePicker),Sa=ta("Inserter",i.Inserter),Ea=ta("InnerBlocks",i.InnerBlocks,["ButtonBlockAppender","DefaultBlockAppender","Content"]),wa=ta("InspectorAdvancedControls",i.InspectorAdvancedControls,["Slot"]),Ca=ta("InspectorControls",i.InspectorControls,["Slot"]),Ta=ta("PanelColorSettings",i.PanelColorSettings),xa=ta("PlainText",i.PlainText),Ba=ta("RichTextShortcut",i.RichTextShortcut),Ia=ta("RichTextToolbarButton",i.RichTextToolbarButton),Aa=ta("__unstableRichTextInputEvent",i.__unstableRichTextInputEvent),Ra=ta("MediaPlaceholder",i.MediaPlaceholder),Da=ta("MediaUpload",i.MediaUpload),Na=ta("MediaUploadCheck",i.MediaUploadCheck),La=ta("MultiSelectScrollIntoView",i.MultiSelectScrollIntoView),Ua=ta("NavigableToolbar",i.NavigableToolbar),Fa=ta("ObserveTyping",i.ObserveTyping),Ma=ta("PreserveScrollInReorder",i.PreserveScrollInReorder),Va=ta("SkipToSelectedBlock",i.SkipToSelectedBlock),za=ta("URLInput",i.URLInput),Ha=ta("URLInputButton",i.URLInputButton),Wa=ta("URLPopover",i.URLPopover),Ga=ta("Warning",i.Warning),Ka=ta("WritingFlow",i.WritingFlow),qa=na("createCustomColorsHOC",i.createCustomColorsHOC),Qa=na("getColorClassName",i.getColorClassName),$a=na("getColorObjectByAttributeValues",i.getColorObjectByAttributeValues),Ya=na("getColorObjectByColorValue",i.getColorObjectByColorValue),Xa=na("getFontSize",i.getFontSize),Ja=na("getFontSizeClass",i.getFontSizeClass),Za=na("withColorContext",i.withColorContext),es=na("withColors",i.withColors),ts=na("withFontSizes",i.withFontSizes)},5:function(e,t,n){"use strict";function r(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,"a",(function(){return r}))},53:function(e,t){!function(){e.exports=this.wp.keyboardShortcuts}()},6:function(e,t){!function(){e.exports=this.wp.blockEditor}()},60:function(e,t,n){e.exports=function(e,t){var n,r,o=0;function i(){var i,c,a=n,s=arguments.length;e:for(;a;){if(a.args.length===arguments.length){for(c=0;c=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(u[r]=e[r])}return u}},17:function(e,t,r){"use strict";r.d(t,"a",(function(){return c}));var n=r(27);var o=r(37),u=r(30);function c(e){return function(e){if(Array.isArray(e))return Object(n.a)(e)}(e)||Object(o.a)(e)||Object(u.a)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},2:function(e,t){!function(){e.exports=this.lodash}()},27:function(e,t,r){"use strict";function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0||(o[r]=e[r]);return o}r.d(t,"a",(function(){return n}))},472:function(e,t,r){"use strict";r.r(t),r.d(t,"createInterpolateElement",(function(){return O})),r.d(t,"Children",(function(){return l.Children})),r.d(t,"cloneElement",(function(){return l.cloneElement})),r.d(t,"Component",(function(){return l.Component})),r.d(t,"createContext",(function(){return l.createContext})),r.d(t,"createElement",(function(){return l.createElement})),r.d(t,"createRef",(function(){return l.createRef})),r.d(t,"forwardRef",(function(){return l.forwardRef})),r.d(t,"Fragment",(function(){return l.Fragment})),r.d(t,"isValidElement",(function(){return l.isValidElement})),r.d(t,"memo",(function(){return l.memo})),r.d(t,"StrictMode",(function(){return l.StrictMode})),r.d(t,"useCallback",(function(){return l.useCallback})),r.d(t,"useContext",(function(){return l.useContext})),r.d(t,"useDebugValue",(function(){return l.useDebugValue})),r.d(t,"useEffect",(function(){return l.useEffect})),r.d(t,"useImperativeHandle",(function(){return l.useImperativeHandle})),r.d(t,"useLayoutEffect",(function(){return l.useLayoutEffect})),r.d(t,"useMemo",(function(){return l.useMemo})),r.d(t,"useReducer",(function(){return l.useReducer})),r.d(t,"useRef",(function(){return l.useRef})),r.d(t,"useState",(function(){return l.useState})),r.d(t,"lazy",(function(){return l.lazy})),r.d(t,"Suspense",(function(){return l.Suspense})),r.d(t,"concatChildren",(function(){return w})),r.d(t,"switchChildrenNodeName",(function(){return S})),r.d(t,"createPortal",(function(){return P.createPortal})),r.d(t,"findDOMNode",(function(){return P.findDOMNode})),r.d(t,"render",(function(){return P.render})),r.d(t,"unmountComponentAtNode",(function(){return P.unmountComponentAtNode})),r.d(t,"isEmptyElement",(function(){return E})),r.d(t,"Platform",(function(){return k})),r.d(t,"renderToString",(function(){return Y})),r.d(t,"RawHTML",(function(){return M}));var n,o,u,c,i=r(12),a=r(40),f=r(17),l=r(13),s=/<(\/)?(\w+)\s*(\/)?>/g;function d(e,t,r,n,o){return{element:e,tokenStart:t,tokenLength:r,prevOffset:n,leadingTextStart:o,children:[]}}var p=function(e){var t="object"===Object(a.a)(e),r=t&&Object.values(e);return t&&r.length&&r.every((function(e){return Object(l.isValidElement)(e)}))};function b(e){var t=function(){var e=s.exec(n);if(null===e)return["no-more-tokens"];var t=e.index,r=Object(i.a)(e,4),o=r[0],u=r[1],c=r[2],a=r[3],f=o.length;if(a)return["self-closed",c,t,f];if(u)return["closer",c,t,f];return["opener",c,t,f]}(),r=Object(i.a)(t,4),a=r[0],p=r[1],b=r[2],O=r[3],h=c.length,v=b>o?o:null;if(!e[p])return y(),!1;switch(a){case"no-more-tokens":if(0!==h){var j=c.pop(),g=j.leadingTextStart,w=j.tokenStart;u.push(n.substr(g,w))}return y(),!1;case"self-closed":return 0===h?(null!==v&&u.push(n.substr(v,b-v)),u.push(e[p]),o=b+O,!0):(m(d(e[p],b,O)),o=b+O,!0);case"opener":return c.push(d(e[p],b,O,b+O,v)),o=b+O,!0;case"closer":if(1===h)return function(e){var t=c.pop(),r=t.element,o=t.leadingTextStart,i=t.prevOffset,a=t.tokenStart,s=t.children,d=e?n.substr(i,e-i):n.substr(i);d&&s.push(d);null!==o&&u.push(n.substr(o,a-o));u.push(l.cloneElement.apply(void 0,[r,null].concat(Object(f.a)(s))))}(b),o=b+O,!0;var S=c.pop(),P=n.substr(S.prevOffset,b-S.prevOffset);S.children.push(P),S.prevOffset=b+O;var E=d(S.element,S.tokenStart,S.tokenLength,b+O);return E.children=S.children,m(E),o=b+O,!0;default:return y(),!1}}function y(){var e=n.length-o;0!==e&&u.push(n.substr(o,e))}function m(e){var t=e.element,r=e.tokenStart,o=e.tokenLength,u=e.prevOffset,i=e.children,a=c[c.length-1],s=n.substr(a.prevOffset,r-a.prevOffset);s&&a.children.push(s),a.children.push(l.cloneElement.apply(void 0,[t,null].concat(Object(f.a)(i)))),a.prevOffset=u||r+o}var O=function(e,t){if(n=e,o=0,u=[],c=[],s.lastIndex=0,!p(t))throw new TypeError("The conversionMap provided is not valid. It must be an object with values that are WPElements");do{}while(b(t));return l.createElement.apply(void 0,[l.Fragment,null].concat(Object(f.a)(u)))},h=r(5),v=r(14),j=r(2);function g(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function w(){for(var e=arguments.length,t=new Array(e),r=0;r2&&void 0!==arguments[2]?arguments[2]:{};if(null==e||!1===e)return"";if(Array.isArray(e))return Q(e,t,r);switch(Object(a.a)(e)){case"string":return Object(x.escapeHTML)(e);case"number":return e.toString()}var n=e.type,o=e.props;switch(n){case l.StrictMode:case l.Fragment:return Q(o.children,t,r);case M:var u=o.children,c=Object(v.a)(o,["children"]);return J(Object(j.isEmpty)(c)?null:"div",D(D({},c),{},{dangerouslySetInnerHTML:{__html:u}}),t,r)}switch(Object(a.a)(n)){case"string":return J(n,o,t,r);case"function":return n.prototype&&"function"==typeof n.prototype.render?K(n,o,t,r):B(n(o,r),t,r)}switch(n&&n.$$typeof){case T.$$typeof:return Q(o.children,o.value,r);case _.$$typeof:return B(o.children(t||n._currentValue),t,r);case R.$$typeof:return B(n.render(o),t,r)}return""}function J(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o="";if("textarea"===e&&t.hasOwnProperty("value")?(o=Q(t.value,r,n),t=Object(j.omit)(t,"value")):t.dangerouslySetInnerHTML&&"string"==typeof t.dangerouslySetInnerHTML.__html?o=t.dangerouslySetInnerHTML.__html:void 0!==t.children&&(o=Q(t.children,r,n)),!e)return o;var u=X(t);return H.has(e)?"<"+e+u+"/>":"<"+e+u+">"+o+""}function K(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=new e(t,n);"function"==typeof o.getChildContext&&Object.assign(n,o.getChildContext());var u=B(o.render(),r,n);return u}function Q(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n="";e=Object(j.castArray)(e);for(var o=0;o=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(u[r]=e[r])}return u}},17:function(e,t,r){"use strict";r.d(t,"a",(function(){return c}));var n=r(27);var o=r(37),u=r(31);function c(e){return function(e){if(Array.isArray(e))return Object(n.a)(e)}(e)||Object(o.a)(e)||Object(u.a)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},2:function(e,t){!function(){e.exports=this.lodash}()},27:function(e,t,r){"use strict";function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0||(o[r]=e[r]);return o}r.d(t,"a",(function(){return n}))},486:function(e,t,r){"use strict";r.r(t),r.d(t,"createInterpolateElement",(function(){return O})),r.d(t,"Children",(function(){return l.Children})),r.d(t,"cloneElement",(function(){return l.cloneElement})),r.d(t,"Component",(function(){return l.Component})),r.d(t,"createContext",(function(){return l.createContext})),r.d(t,"createElement",(function(){return l.createElement})),r.d(t,"createRef",(function(){return l.createRef})),r.d(t,"forwardRef",(function(){return l.forwardRef})),r.d(t,"Fragment",(function(){return l.Fragment})),r.d(t,"isValidElement",(function(){return l.isValidElement})),r.d(t,"memo",(function(){return l.memo})),r.d(t,"StrictMode",(function(){return l.StrictMode})),r.d(t,"useCallback",(function(){return l.useCallback})),r.d(t,"useContext",(function(){return l.useContext})),r.d(t,"useDebugValue",(function(){return l.useDebugValue})),r.d(t,"useEffect",(function(){return l.useEffect})),r.d(t,"useImperativeHandle",(function(){return l.useImperativeHandle})),r.d(t,"useLayoutEffect",(function(){return l.useLayoutEffect})),r.d(t,"useMemo",(function(){return l.useMemo})),r.d(t,"useReducer",(function(){return l.useReducer})),r.d(t,"useRef",(function(){return l.useRef})),r.d(t,"useState",(function(){return l.useState})),r.d(t,"lazy",(function(){return l.lazy})),r.d(t,"Suspense",(function(){return l.Suspense})),r.d(t,"concatChildren",(function(){return w})),r.d(t,"switchChildrenNodeName",(function(){return S})),r.d(t,"createPortal",(function(){return P.createPortal})),r.d(t,"findDOMNode",(function(){return P.findDOMNode})),r.d(t,"render",(function(){return P.render})),r.d(t,"unmountComponentAtNode",(function(){return P.unmountComponentAtNode})),r.d(t,"isEmptyElement",(function(){return E})),r.d(t,"Platform",(function(){return k})),r.d(t,"renderToString",(function(){return Y})),r.d(t,"RawHTML",(function(){return M}));var n,o,u,c,i=r(12),a=r(40),f=r(17),l=r(13),s=/<(\/)?(\w+)\s*(\/)?>/g;function d(e,t,r,n,o){return{element:e,tokenStart:t,tokenLength:r,prevOffset:n,leadingTextStart:o,children:[]}}var p=function(e){var t="object"===Object(a.a)(e),r=t&&Object.values(e);return t&&r.length&&r.every((function(e){return Object(l.isValidElement)(e)}))};function b(e){var t=function(){var e=s.exec(n);if(null===e)return["no-more-tokens"];var t=e.index,r=Object(i.a)(e,4),o=r[0],u=r[1],c=r[2],a=r[3],f=o.length;if(a)return["self-closed",c,t,f];if(u)return["closer",c,t,f];return["opener",c,t,f]}(),r=Object(i.a)(t,4),a=r[0],p=r[1],b=r[2],O=r[3],h=c.length,v=b>o?o:null;if(!e[p])return y(),!1;switch(a){case"no-more-tokens":if(0!==h){var j=c.pop(),g=j.leadingTextStart,w=j.tokenStart;u.push(n.substr(g,w))}return y(),!1;case"self-closed":return 0===h?(null!==v&&u.push(n.substr(v,b-v)),u.push(e[p]),o=b+O,!0):(m(d(e[p],b,O)),o=b+O,!0);case"opener":return c.push(d(e[p],b,O,b+O,v)),o=b+O,!0;case"closer":if(1===h)return function(e){var t=c.pop(),r=t.element,o=t.leadingTextStart,i=t.prevOffset,a=t.tokenStart,s=t.children,d=e?n.substr(i,e-i):n.substr(i);d&&s.push(d);null!==o&&u.push(n.substr(o,a-o));u.push(l.cloneElement.apply(void 0,[r,null].concat(Object(f.a)(s))))}(b),o=b+O,!0;var S=c.pop(),P=n.substr(S.prevOffset,b-S.prevOffset);S.children.push(P),S.prevOffset=b+O;var E=d(S.element,S.tokenStart,S.tokenLength,b+O);return E.children=S.children,m(E),o=b+O,!0;default:return y(),!1}}function y(){var e=n.length-o;0!==e&&u.push(n.substr(o,e))}function m(e){var t=e.element,r=e.tokenStart,o=e.tokenLength,u=e.prevOffset,i=e.children,a=c[c.length-1],s=n.substr(a.prevOffset,r-a.prevOffset);s&&a.children.push(s),a.children.push(l.cloneElement.apply(void 0,[t,null].concat(Object(f.a)(i)))),a.prevOffset=u||r+o}var O=function(e,t){if(n=e,o=0,u=[],c=[],s.lastIndex=0,!p(t))throw new TypeError("The conversionMap provided is not valid. It must be an object with values that are WPElements");do{}while(b(t));return l.createElement.apply(void 0,[l.Fragment,null].concat(Object(f.a)(u)))},h=r(5),v=r(14),j=r(2);function g(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function w(){for(var e=arguments.length,t=new Array(e),r=0;r2&&void 0!==arguments[2]?arguments[2]:{};if(null==e||!1===e)return"";if(Array.isArray(e))return Q(e,t,r);switch(Object(a.a)(e)){case"string":return Object(x.escapeHTML)(e);case"number":return e.toString()}var n=e.type,o=e.props;switch(n){case l.StrictMode:case l.Fragment:return Q(o.children,t,r);case M:var u=o.children,c=Object(v.a)(o,["children"]);return J(Object(j.isEmpty)(c)?null:"div",D(D({},c),{},{dangerouslySetInnerHTML:{__html:u}}),t,r)}switch(Object(a.a)(n)){case"string":return J(n,o,t,r);case"function":return n.prototype&&"function"==typeof n.prototype.render?K(n,o,t,r):B(n(o,r),t,r)}switch(n&&n.$$typeof){case T.$$typeof:return Q(o.children,o.value,r);case _.$$typeof:return B(o.children(t||n._currentValue),t,r);case R.$$typeof:return B(n.render(o),t,r)}return""}function J(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o="";if("textarea"===e&&t.hasOwnProperty("value")?(o=Q(t.value,r,n),t=Object(j.omit)(t,"value")):t.dangerouslySetInnerHTML&&"string"==typeof t.dangerouslySetInnerHTML.__html?o=t.dangerouslySetInnerHTML.__html:void 0!==t.children&&(o=Q(t.children,r,n)),!e)return o;var u=X(t);return H.has(e)?"<"+e+u+"/>":"<"+e+u+">"+o+""}function K(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=new e(t,n);"function"==typeof o.getChildContext&&Object.assign(n,o.getChildContext());var u=B(o.render(),r,n);return u}function Q(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n="";e=Object(j.castArray)(e);for(var o=0;o/="\uFDD0-\uFDEF]/;function u(e){return e.replace(/&(?!([a-z0-9]+|#[0-9]+|#x[a-f0-9]+);)/gi,"&")}function o(e){return e.replace(/"/g,""")}function i(e){return e.replace(//g,">")}(o(u(e)))}function a(e){return i(u(e))}function f(e){return i(e.replace(/&/g,"&"))}function p(e){return!r.test(e)}}}); \ No newline at end of file +this.wp=this.wp||{},this.wp.escapeHtml=function(e){var t={};function n(r){if(t[r])return t[r].exports;var u=t[r]={i:r,l:!1,exports:{}};return e[r].call(u.exports,u,u.exports,n),u.l=!0,u.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var u in e)n.d(r,u,function(t){return e[t]}.bind(null,u));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=498)}({498:function(e,t,n){"use strict";n.r(t),n.d(t,"escapeAmpersand",(function(){return u})),n.d(t,"escapeQuotationMark",(function(){return o})),n.d(t,"escapeLessThan",(function(){return i})),n.d(t,"escapeAttribute",(function(){return c})),n.d(t,"escapeHTML",(function(){return a})),n.d(t,"escapeEditableHTML",(function(){return f})),n.d(t,"isValidAttributeName",(function(){return p}));var r=/[\u007F-\u009F "'>/="\uFDD0-\uFDEF]/;function u(e){return e.replace(/&(?!([a-z0-9]+|#[0-9]+|#x[a-f0-9]+);)/gi,"&")}function o(e){return e.replace(/"/g,""")}function i(e){return e.replace(//g,">")}(o(u(e)))}function a(e){return i(u(e))}function f(e){return i(e.replace(/&/g,"&"))}function p(e){return!r.test(e)}}}); \ No newline at end of file diff --git a/wp-includes/js/dist/format-library.js b/wp-includes/js/dist/format-library.js index 3a958e0b4b..d865f067ab 100644 --- a/wp-includes/js/dist/format-library.js +++ b/wp-includes/js/dist/format-library.js @@ -82,7 +82,7 @@ this["wp"] = this["wp"] || {}; this["wp"]["formatLibrary"] = /******/ /******/ /******/ // Load entry module and return exports -/******/ return __webpack_require__(__webpack_require__.s = 464); +/******/ return __webpack_require__(__webpack_require__.s = 478); /******/ }) /************************************************************************/ /******/ ({ @@ -140,7 +140,7 @@ function _iterableToArrayLimit(arr, i) { return _arr; } // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js -var unsupportedIterableToArray = __webpack_require__(30); +var unsupportedIterableToArray = __webpack_require__(31); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/nonIterableRest.js var nonIterableRest = __webpack_require__(39); @@ -254,7 +254,7 @@ function _assertThisInitialized(self) { /***/ }), -/***/ 186: +/***/ 187: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -313,7 +313,7 @@ function _classCallCheck(instance, Constructor) { /***/ }), -/***/ 216: +/***/ 215: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -338,7 +338,7 @@ var keyboardReturn = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["cre /***/ }), -/***/ 218: +/***/ 217: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -480,6 +480,13 @@ function _arrayLikeToArray(arr, len) { /***/ }), /***/ 30: +/***/ (function(module, exports) { + +(function() { module.exports = this["wp"]["url"]; }()); + +/***/ }), + +/***/ 31: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -497,14 +504,7 @@ function _unsupportedIterableToArray(o, minLen) { /***/ }), -/***/ 31: -/***/ (function(module, exports) { - -(function() { module.exports = this["wp"]["url"]; }()); - -/***/ }), - -/***/ 320: +/***/ 325: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -581,7 +581,29 @@ function _typeof(obj) { /***/ }), -/***/ 428: +/***/ 43: +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _objectWithoutPropertiesLoose; }); +function _objectWithoutPropertiesLoose(source, excluded) { + if (source == null) return {}; + var target = {}; + var sourceKeys = Object.keys(source); + var key, i; + + for (i = 0; i < sourceKeys.length; i++) { + key = sourceKeys[i]; + if (excluded.indexOf(key) >= 0) continue; + target[key] = source[key]; + } + + return target; +} + +/***/ }), + +/***/ 442: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -606,29 +628,7 @@ var textColor = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__["createEl /***/ }), -/***/ 43: -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _objectWithoutPropertiesLoose; }); -function _objectWithoutPropertiesLoose(source, excluded) { - if (source == null) return {}; - var target = {}; - var sourceKeys = Object.keys(source); - var key, i; - - for (i = 0; i < sourceKeys.length; i++) { - key = sourceKeys[i]; - if (excluded.indexOf(key) >= 0) continue; - target[key] = source[key]; - } - - return target; -} - -/***/ }), - -/***/ 464: +/***/ 478: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -724,7 +724,7 @@ var bold = { }; // EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/code.js -var code = __webpack_require__(320); +var code = __webpack_require__(325); // CONCATENATED MODULE: ./node_modules/@wordpress/format-library/build-module/code/index.js @@ -827,7 +827,7 @@ var external_this_wp_components_ = __webpack_require__(3); var external_this_wp_keycodes_ = __webpack_require__(18); // EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/keyboard-return.js -var keyboard_return = __webpack_require__(216); +var keyboard_return = __webpack_require__(215); // CONCATENATED MODULE: ./node_modules/@wordpress/format-library/build-module/image/index.js @@ -1129,16 +1129,16 @@ var italic = { }; // EXTERNAL MODULE: external {"this":["wp","url"]} -var external_this_wp_url_ = __webpack_require__(31); +var external_this_wp_url_ = __webpack_require__(30); // EXTERNAL MODULE: external {"this":["wp","htmlEntities"]} var external_this_wp_htmlEntities_ = __webpack_require__(69); // EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/link-off.js -var link_off = __webpack_require__(218); +var link_off = __webpack_require__(217); // EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/link.js -var library_link = __webpack_require__(186); +var library_link = __webpack_require__(187); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js + 1 modules var slicedToArray = __webpack_require__(12); @@ -1705,7 +1705,7 @@ var underline = { var icon = __webpack_require__(141); // EXTERNAL MODULE: ./node_modules/@wordpress/icons/build-module/library/text-color.js -var text_color = __webpack_require__(428); +var text_color = __webpack_require__(442); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js var esm_extends = __webpack_require__(8); diff --git a/wp-includes/js/dist/format-library.min.js b/wp-includes/js/dist/format-library.min.js index 2c001ddbdd..cd4a35e0df 100644 --- a/wp-includes/js/dist/format-library.min.js +++ b/wp-includes/js/dist/format-library.min.js @@ -1,2 +1,2 @@ /*! This file is auto-generated */ -this.wp=this.wp||{},this.wp.formatLibrary=function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=464)}({0:function(t,e){!function(){t.exports=this.wp.element}()},1:function(t,e){!function(){t.exports=this.wp.i18n}()},12:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(38);var o=n(30),c=n(39);function i(t,e){return Object(r.a)(t)||function(t,e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t)){var n=[],r=!0,o=!1,c=void 0;try{for(var i,a=t[Symbol.iterator]();!(r=(i=a.next()).done)&&(n.push(i.value),!e||n.length!==e);r=!0);}catch(t){o=!0,c=t}finally{try{r||null==a.return||a.return()}finally{if(o)throw c}}return n}}(t,e)||Object(o.a)(t,e)||Object(c.a)()}},14:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(43);function o(t,e){if(null==t)return{};var n,o,c=Object(r.a)(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(o=0;o=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(c[n]=t[n])}return c}},141:function(t,e,n){"use strict";var r=n(5),o=n(14),c=n(0);function i(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}e.a=function(t){var e=t.icon,n=t.size,a=void 0===n?24:n,l=Object(o.a)(t,["icon","size"]);return Object(c.cloneElement)(e,function(t){for(var e=1;et.length)&&(e=t.length);for(var n=0,r=new Array(e);n=0||(o[n]=t[n]);return o}n.d(e,"a",(function(){return r}))},464:function(t,e,n){"use strict";n.r(e);var r=n(14),o=n(25),c=n(0),i=n(1),a=n(6),l=n(7),u=Object(c.createElement)(l.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(c.createElement)(l.Path,{d:"M14.7 11.3c1-.6 1.5-1.6 1.5-3 0-2.3-1.3-3.4-4-3.4H7v14h5.8c1.4 0 2.5-.3 3.3-1 .8-.7 1.2-1.7 1.2-2.9.1-1.9-.8-3.1-2.6-3.7zm-5.1-4h2.3c.6 0 1.1.1 1.4.4.3.3.5.7.5 1.2s-.2 1-.5 1.2c-.3.3-.8.4-1.4.4H9.6V7.3zm4.6 9c-.4.3-1 .4-1.7.4H9.6v-3.9h2.9c.7 0 1.3.2 1.7.5.4.3.6.8.6 1.5s-.2 1.2-.6 1.5z"})),s=Object(i.__)("Bold"),b={name:"core/bold",title:s,tagName:"strong",className:null,edit:function(t){var e=t.isActive,n=t.value,r=t.onChange,i=t.onFocus;function l(){r(Object(o.toggleFormat)(n,{type:"core/bold"}))}return Object(c.createElement)(c.Fragment,null,Object(c.createElement)(a.RichTextShortcut,{type:"primary",character:"b",onUse:l}),Object(c.createElement)(a.RichTextToolbarButton,{name:"bold",icon:u,title:s,onClick:function(){l(),i()},isActive:e,shortcutType:"primary",shortcutCharacter:"b"}),Object(c.createElement)(a.__unstableRichTextInputEvent,{inputType:"formatBold",onInput:l}))}},f=n(320),p=Object(i.__)("Inline Code"),m={name:"core/code",title:p,tagName:"code",className:null,__unstableInputRule:function(t){var e=t,n=e.start,r=e.text;if("`"!==r.slice(n-1,n))return t;var c=r.slice(0,n-1).lastIndexOf("`");if(-1===c)return t;var i=c,a=n-2;return i===a?t:(t=Object(o.remove)(t,i,i+1),t=Object(o.remove)(t,a,a+1),t=Object(o.applyFormat)(t,{type:"core/code"},i,a))},edit:function(t){var e=t.value,n=t.onChange,r=t.onFocus,i=t.isActive;return Object(c.createElement)(a.RichTextToolbarButton,{icon:f.a,title:p,onClick:function(){n(Object(o.toggleFormat)(e,{type:"core/code"})),r()},isActive:i})}},O=n(5),v=n(21),h=n(22),d=n(16),j=n(23),y=n(24),g=n(19),w=n(3),E=n(18),x=n(216);function k(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function C(t){for(var e=1;e-1&&t.stopPropagation()}},{key:"openModal",value:function(){this.setState({modal:!0})}},{key:"closeModal",value:function(){this.setState({modal:!1})}},{key:"componentDidMount",value:function(){this.anchorRef=R()}},{key:"componentDidUpdate",value:function(t){(!t.isObjectActive&&this.props.isObjectActive||t.activeObjectAttributes.url!==this.props.activeObjectAttributes.url)&&(this.anchorRef=R())}},{key:"render",value:function(){var t=this,e=this.props,n=e.value,r=e.onChange,l=e.onFocus,u=e.isObjectActive,s=e.activeObjectAttributes;return Object(c.createElement)(a.MediaUploadCheck,null,Object(c.createElement)(a.RichTextToolbarButton,{icon:Object(c.createElement)(w.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(c.createElement)(w.Path,{d:"M4 18.5h16V17H4v1.5zM16 13v1.5h4V13h-4zM5.1 15h7.8c.6 0 1.1-.5 1.1-1.1V6.1c0-.6-.5-1.1-1.1-1.1H5.1C4.5 5 4 5.5 4 6.1v7.8c0 .6.5 1.1 1.1 1.1zm.4-8.5h7V10l-1-1c-.3-.3-.8-.3-1 0l-1.6 1.5-1.2-.7c-.3-.2-.6-.2-.9 0l-1.3 1V6.5zm0 6.1l1.8-1.3 1.3.8c.3.2.7.2.9-.1l1.5-1.4 1.5 1.4v1.5h-7v-.9z"})),title:P,onClick:this.openModal,isActive:u}),this.state.modal&&Object(c.createElement)(a.MediaUpload,{allowedTypes:S,onSelect:function(e){var c=e.id,i=e.url,a=e.alt,u=e.width;t.closeModal(),r(Object(o.insertObject)(n,{type:"core/image",attributes:{className:"wp-image-".concat(c),style:"width: ".concat(Math.min(u,150),"px;"),url:i,alt:a}})),l()},onClose:this.closeModal,render:function(t){return(0,t.open)(),null}}),u&&Object(c.createElement)(w.Popover,{position:"bottom center",focusOnMount:!1,anchorRef:this.anchorRef},Object(c.createElement)("form",{className:"block-editor-format-toolbar__image-container-content",onKeyPress:T,onKeyDown:this.onKeyDown,onSubmit:function(e){var o=n.replacements.slice();o[n.start]={type:"core/image",attributes:C(C({},s),{},{style:"width: ".concat(t.state.width,"px;")})},r(C(C({},n),{},{replacements:o})),e.preventDefault()}},Object(c.createElement)(w.TextControl,{className:"block-editor-format-toolbar__image-container-value",type:"number",label:Object(i.__)("Width"),value:this.state.width,min:1,onChange:this.onChange}),Object(c.createElement)(w.Button,{icon:x.a,label:Object(i.__)("Apply"),type:"submit"}))))}}],[{key:"getDerivedStateFromProps",value:function(t,e){var n=t.activeObjectAttributes.style;return n===e.previousStyle?null:n?{width:n.replace(/\D/g,""),previousStyle:n}:{width:void 0,previousStyle:n}}}]),n}(c.Component)},F=Object(c.createElement)(l.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(c.createElement)(l.Path,{d:"M12.5 5L10 19h1.9l2.5-14z"})),M=Object(i.__)("Italic"),N={name:"core/italic",title:M,tagName:"em",className:null,edit:function(t){var e=t.isActive,n=t.value,r=t.onChange,i=t.onFocus;function l(){r(Object(o.toggleFormat)(n,{type:"core/italic"}))}return Object(c.createElement)(c.Fragment,null,Object(c.createElement)(a.RichTextShortcut,{type:"primary",character:"i",onUse:l}),Object(c.createElement)(a.RichTextToolbarButton,{name:"italic",icon:F,title:M,onClick:function(){l(),i()},isActive:e,shortcutType:"primary",shortcutCharacter:"i"}),Object(c.createElement)(a.__unstableRichTextInputEvent,{inputType:"formatItalic",onInput:l}))}},L=n(31),D=n(69),V=n(218),B=n(186),z=n(12),H=n(2);function I(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function U(t){for(var e=1;e]+>/g,"").trim();return Object(L.isURL)(c)?(window.console.log("Created link:\n\n",c),Object(o.applyFormat)(t,{type:"core/link",attributes:{url:Object(D.decodeEntities)(c)}})):t},edit:Object(w.withSpokenMessages)(function(t){Object(j.a)(n,t);var e=K(n);function n(){var t;return Object(v.a)(this,n),(t=e.apply(this,arguments)).addLink=t.addLink.bind(Object(d.a)(t)),t.stopAddingLink=t.stopAddingLink.bind(Object(d.a)(t)),t.onRemoveFormat=t.onRemoveFormat.bind(Object(d.a)(t)),t.state={addingLink:!1},t}return Object(h.a)(n,[{key:"addLink",value:function(){var t=this.props,e=t.value,n=t.onChange,r=Object(o.getTextContent)(Object(o.slice)(e));r&&Object(L.isURL)(r)?n(Object(o.applyFormat)(e,{type:"core/link",attributes:{url:r}})):r&&Object(L.isEmail)(r)?n(Object(o.applyFormat)(e,{type:"core/link",attributes:{url:"mailto:".concat(r)}})):this.setState({addingLink:!0})}},{key:"stopAddingLink",value:function(){this.setState({addingLink:!1}),this.props.onFocus()}},{key:"onRemoveFormat",value:function(){var t=this.props,e=t.value,n=t.onChange,r=t.speak;n(Object(o.removeFormat)(e,"core/link")),r(Object(i.__)("Link removed."),"assertive")}},{key:"render",value:function(){var t=this.props,e=t.isActive,n=t.activeAttributes,r=t.value,o=t.onChange;return Object(c.createElement)(c.Fragment,null,Object(c.createElement)(a.RichTextShortcut,{type:"primary",character:"k",onUse:this.addLink}),Object(c.createElement)(a.RichTextShortcut,{type:"primaryShift",character:"k",onUse:this.onRemoveFormat}),e&&Object(c.createElement)(a.RichTextToolbarButton,{name:"link",icon:V.a,title:Object(i.__)("Unlink"),onClick:this.onRemoveFormat,isActive:e,shortcutType:"primaryShift",shortcutCharacter:"k"}),!e&&Object(c.createElement)(a.RichTextToolbarButton,{name:"link",icon:B.a,title:W,onClick:this.addLink,isActive:e,shortcutType:"primary",shortcutCharacter:"k"}),(this.state.addingLink||e)&&Object(c.createElement)(G,{addingLink:this.state.addingLink,stopAddingLink:this.stopAddingLink,isActive:e,activeAttributes:n,value:r,onChange:o}))}}]),n}(c.Component))},$=Object(c.createElement)(l.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(c.createElement)(l.Path,{d:"M9.1 9v-.5c0-.6.2-1.1.7-1.4.5-.3 1.2-.5 2-.5.7 0 1.4.1 2.1.3.7.2 1.4.5 2.1.9l.2-1.9c-.6-.3-1.2-.5-1.9-.7-.8-.1-1.6-.2-2.4-.2-1.5 0-2.7.3-3.6 1-.8.7-1.2 1.5-1.2 2.6V9h2zM20 12H4v1h8.3c.3.1.6.2.8.3.5.2.9.5 1.1.8.3.3.4.7.4 1.2 0 .7-.2 1.1-.8 1.5-.5.3-1.2.5-2.1.5-.8 0-1.6-.1-2.4-.3-.8-.2-1.5-.5-2.2-.8L7 18.1c.5.2 1.2.4 2 .6.8.2 1.6.3 2.4.3 1.7 0 3-.3 3.9-1 .9-.7 1.3-1.6 1.3-2.8 0-.9-.2-1.7-.7-2.2H20v-1z"})),q=Object(i.__)("Strikethrough"),J={name:"core/strikethrough",title:q,tagName:"s",className:null,edit:function(t){var e=t.isActive,n=t.value,r=t.onChange,i=t.onFocus;return Object(c.createElement)(a.RichTextToolbarButton,{icon:$,title:q,onClick:function(){r(Object(o.toggleFormat)(n,{type:"core/strikethrough"})),i()},isActive:e})}},X={name:"core/underline",title:Object(i.__)("Underline"),tagName:"span",className:null,attributes:{style:"style"},edit:function(t){var e=t.value,n=t.onChange,r=function(){n(Object(o.toggleFormat)(e,{type:"core/underline",attributes:{style:"text-decoration: underline;"}}))};return Object(c.createElement)(c.Fragment,null,Object(c.createElement)(a.RichTextShortcut,{type:"primary",character:"u",onUse:r}),Object(c.createElement)(a.__unstableRichTextInputEvent,{inputType:"formatUnderline",onInput:r}))}},Y=n(141),Z=n(428),tt=n(8),et=n(4),nt=n(29);function rt(t,e,n){var r=Object(o.getActiveFormat)(e,t);if(r){var c=r.attributes.style;if(c)return c.replace(new RegExp("^color:\\s*"),"");var i=r.attributes.class;if(i){var l=i.replace(/.*has-([^\s]*)-color.*/,"$1");return Object(a.getColorObjectByAttributeValues)(n,l).color}}}var ot=function(t){var e=t.addingColor,n=Object(r.a)(t,["addingColor"]),o=Object(c.useMemo)((function(){var t=window.getSelection(),n=t.rangeCount>0?t.getRangeAt(0):null;if(n){if(e)return Object(nt.getRectangleFromRange)(n);var r=n.startContainer;for(r=r.nextElementSibling||r;r.nodeType!==r.ELEMENT_NODE;)r=r.parentNode;var o=r.closest("span");return o?o.getBoundingClientRect():void 0}}),[]);return o?Object(c.createElement)(a.URLPopover,Object(tt.a)({anchorRect:o},n)):null},ct=function(t){var e=t.name,n=t.value,r=t.onChange,i=Object(et.useSelect)((function(t){var e=t("core/block-editor").getSettings;return Object(H.get)(e(),["colors"],[])})),l=Object(c.useCallback)((function(t){if(t){var c=Object(a.getColorObjectByColorValue)(i,t);r(Object(o.applyFormat)(n,{type:e,attributes:c?{class:Object(a.getColorClassName)("color",c.slug)}:{style:"color:".concat(t)}}))}else r(Object(o.removeFormat)(n,e))}),[i,r]),u=Object(c.useMemo)((function(){return rt(e,n,i)}),[e,n,i]);return Object(c.createElement)(a.ColorPalette,{value:u,onChange:l})};function it(t){var e=t.name,n=t.value,r=t.onChange,o=t.onClose,i=t.addingColor;return Object(c.createElement)(ot,{value:n,addingColor:i,onClose:o,className:"components-inline-color-popover"},Object(c.createElement)(ct,{name:e,value:n,onChange:r}))}var at=Object(i.__)("Text Color"),lt=[];var ut={name:"core/text-color",title:at,tagName:"span",className:"has-inline-color",attributes:{style:"style",class:"class"},edit:function(t){var e=t.value,n=t.onChange,r=t.isActive,i=t.activeAttributes,l=Object(a.__experimentalUseEditorFeature)("color.custom"),u=Object(a.__experimentalUseEditorFeature)("color.palette")||lt,s=Object(c.useState)(!1),b=Object(z.a)(s,2),f=b[0],p=b[1],m=Object(c.useCallback)((function(){return p(!0)}),[p]),O=Object(c.useCallback)((function(){return p(!1)}),[p]),v=Object(c.useMemo)((function(){var t=rt("core/text-color",e,u);if(t)return{backgroundColor:t}}),[e,u]),h=!Object(H.isEmpty)(u)||!l;return h||r?Object(c.createElement)(c.Fragment,null,Object(c.createElement)(a.RichTextToolbarButton,{key:r?"text-color":"text-color-not-active",className:"format-library-text-color-button",name:r?"text-color":void 0,icon:Object(c.createElement)(c.Fragment,null,Object(c.createElement)(Y.a,{icon:Z.a}),r&&Object(c.createElement)("span",{className:"format-library-text-color-button__indicator",style:v})),title:at,onClick:h?m:function(){return n(Object(o.removeFormat)(e,"core/text-color"))}}),f&&Object(c.createElement)(it,{name:"core/text-color",addingColor:f,onClose:O,activeAttributes:i,value:e,onChange:n})):null}},st=Object(c.createElement)(l.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(c.createElement)(l.Path,{d:"M16.9 18.3l.8-1.2c.4-.6.7-1.2.9-1.6.2-.4.3-.8.3-1.2 0-.3-.1-.7-.2-1-.1-.3-.4-.5-.6-.7-.3-.2-.6-.3-1-.3s-.8.1-1.1.2c-.3.1-.7.3-1 .6l.2 1.3c.3-.3.5-.5.8-.6s.6-.2.9-.2c.3 0 .5.1.7.2.2.2.2.4.2.7 0 .3-.1.5-.2.8-.1.3-.4.7-.8 1.3L15 19.4h4.3v-1.2h-2.4zM14.1 7.2h-2L9.5 11 6.9 7.2h-2l3.6 5.3L4.7 18h2l2.7-4 2.7 4h2l-3.8-5.5 3.8-5.3z"})),bt=Object(i.__)("Subscript"),ft={name:"core/subscript",title:bt,tagName:"sub",className:null,edit:function(t){var e=t.isActive,n=t.value,r=t.onChange,i=t.onFocus;return Object(c.createElement)(a.RichTextToolbarButton,{icon:st,title:bt,onClick:function(){r(Object(o.toggleFormat)(n,{type:"core/subscript"})),i()},isActive:e})}},pt=Object(c.createElement)(l.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(c.createElement)(l.Path,{d:"M16.9 10.3l.8-1.3c.4-.6.7-1.2.9-1.6.2-.4.3-.8.3-1.2 0-.3-.1-.7-.2-1-.2-.2-.4-.4-.7-.6-.3-.2-.6-.3-1-.3s-.8.1-1.1.2c-.3.1-.7.3-1 .6l.1 1.3c.3-.3.5-.5.8-.6s.6-.2.9-.2c.3 0 .5.1.7.2.2.2.2.4.2.7 0 .3-.1.5-.2.8-.1.3-.4.7-.8 1.3l-1.8 2.8h4.3v-1.2h-2.2zm-2.8-3.1h-2L9.5 11 6.9 7.2h-2l3.6 5.3L4.7 18h2l2.7-4 2.7 4h2l-3.8-5.5 3.8-5.3z"})),mt=Object(i.__)("Superscript");[b,m,A,N,Q,J,X,ut,ft,{name:"core/superscript",title:mt,tagName:"sup",className:null,edit:function(t){var e=t.isActive,n=t.value,r=t.onChange,i=t.onFocus;return Object(c.createElement)(a.RichTextToolbarButton,{icon:pt,title:mt,onClick:function(){r(Object(o.toggleFormat)(n,{type:"core/superscript"})),i()},isActive:e})}}].forEach((function(t){var e=t.name,n=Object(r.a)(t,["name"]);return Object(o.registerFormatType)(e,n)}))},5:function(t,e,n){"use strict";function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}n.d(e,"a",(function(){return r}))},6:function(t,e){!function(){t.exports=this.wp.blockEditor}()},69:function(t,e){!function(){t.exports=this.wp.htmlEntities}()},7:function(t,e){!function(){t.exports=this.wp.primitives}()},8:function(t,e,n){"use strict";function r(){return(r=Object.assign||function(t){for(var e=1;e=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(c[n]=t[n])}return c}},141:function(t,e,n){"use strict";var r=n(5),o=n(14),c=n(0);function i(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}e.a=function(t){var e=t.icon,n=t.size,a=void 0===n?24:n,l=Object(o.a)(t,["icon","size"]);return Object(c.cloneElement)(e,function(t){for(var e=1;et.length)&&(e=t.length);for(var n=0,r=new Array(e);n=0||(o[n]=t[n]);return o}n.d(e,"a",(function(){return r}))},442:function(t,e,n){"use strict";var r=n(0),o=n(7),c=Object(r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},Object(r.createElement)(o.Path,{d:"M13.23 15h1.9L11 4H9L5 15h1.88l1.07-3h4.18zm-1.53-4.54H8.51L10 5.6z"}));e.a=c},478:function(t,e,n){"use strict";n.r(e);var r=n(14),o=n(25),c=n(0),i=n(1),a=n(6),l=n(7),u=Object(c.createElement)(l.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(c.createElement)(l.Path,{d:"M14.7 11.3c1-.6 1.5-1.6 1.5-3 0-2.3-1.3-3.4-4-3.4H7v14h5.8c1.4 0 2.5-.3 3.3-1 .8-.7 1.2-1.7 1.2-2.9.1-1.9-.8-3.1-2.6-3.7zm-5.1-4h2.3c.6 0 1.1.1 1.4.4.3.3.5.7.5 1.2s-.2 1-.5 1.2c-.3.3-.8.4-1.4.4H9.6V7.3zm4.6 9c-.4.3-1 .4-1.7.4H9.6v-3.9h2.9c.7 0 1.3.2 1.7.5.4.3.6.8.6 1.5s-.2 1.2-.6 1.5z"})),s=Object(i.__)("Bold"),b={name:"core/bold",title:s,tagName:"strong",className:null,edit:function(t){var e=t.isActive,n=t.value,r=t.onChange,i=t.onFocus;function l(){r(Object(o.toggleFormat)(n,{type:"core/bold"}))}return Object(c.createElement)(c.Fragment,null,Object(c.createElement)(a.RichTextShortcut,{type:"primary",character:"b",onUse:l}),Object(c.createElement)(a.RichTextToolbarButton,{name:"bold",icon:u,title:s,onClick:function(){l(),i()},isActive:e,shortcutType:"primary",shortcutCharacter:"b"}),Object(c.createElement)(a.__unstableRichTextInputEvent,{inputType:"formatBold",onInput:l}))}},f=n(325),p=Object(i.__)("Inline Code"),m={name:"core/code",title:p,tagName:"code",className:null,__unstableInputRule:function(t){var e=t,n=e.start,r=e.text;if("`"!==r.slice(n-1,n))return t;var c=r.slice(0,n-1).lastIndexOf("`");if(-1===c)return t;var i=c,a=n-2;return i===a?t:(t=Object(o.remove)(t,i,i+1),t=Object(o.remove)(t,a,a+1),t=Object(o.applyFormat)(t,{type:"core/code"},i,a))},edit:function(t){var e=t.value,n=t.onChange,r=t.onFocus,i=t.isActive;return Object(c.createElement)(a.RichTextToolbarButton,{icon:f.a,title:p,onClick:function(){n(Object(o.toggleFormat)(e,{type:"core/code"})),r()},isActive:i})}},O=n(5),v=n(21),h=n(22),d=n(16),j=n(23),y=n(24),g=n(19),w=n(3),E=n(18),x=n(215);function k(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function C(t){for(var e=1;e-1&&t.stopPropagation()}},{key:"openModal",value:function(){this.setState({modal:!0})}},{key:"closeModal",value:function(){this.setState({modal:!1})}},{key:"componentDidMount",value:function(){this.anchorRef=R()}},{key:"componentDidUpdate",value:function(t){(!t.isObjectActive&&this.props.isObjectActive||t.activeObjectAttributes.url!==this.props.activeObjectAttributes.url)&&(this.anchorRef=R())}},{key:"render",value:function(){var t=this,e=this.props,n=e.value,r=e.onChange,l=e.onFocus,u=e.isObjectActive,s=e.activeObjectAttributes;return Object(c.createElement)(a.MediaUploadCheck,null,Object(c.createElement)(a.RichTextToolbarButton,{icon:Object(c.createElement)(w.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(c.createElement)(w.Path,{d:"M4 18.5h16V17H4v1.5zM16 13v1.5h4V13h-4zM5.1 15h7.8c.6 0 1.1-.5 1.1-1.1V6.1c0-.6-.5-1.1-1.1-1.1H5.1C4.5 5 4 5.5 4 6.1v7.8c0 .6.5 1.1 1.1 1.1zm.4-8.5h7V10l-1-1c-.3-.3-.8-.3-1 0l-1.6 1.5-1.2-.7c-.3-.2-.6-.2-.9 0l-1.3 1V6.5zm0 6.1l1.8-1.3 1.3.8c.3.2.7.2.9-.1l1.5-1.4 1.5 1.4v1.5h-7v-.9z"})),title:P,onClick:this.openModal,isActive:u}),this.state.modal&&Object(c.createElement)(a.MediaUpload,{allowedTypes:S,onSelect:function(e){var c=e.id,i=e.url,a=e.alt,u=e.width;t.closeModal(),r(Object(o.insertObject)(n,{type:"core/image",attributes:{className:"wp-image-".concat(c),style:"width: ".concat(Math.min(u,150),"px;"),url:i,alt:a}})),l()},onClose:this.closeModal,render:function(t){return(0,t.open)(),null}}),u&&Object(c.createElement)(w.Popover,{position:"bottom center",focusOnMount:!1,anchorRef:this.anchorRef},Object(c.createElement)("form",{className:"block-editor-format-toolbar__image-container-content",onKeyPress:T,onKeyDown:this.onKeyDown,onSubmit:function(e){var o=n.replacements.slice();o[n.start]={type:"core/image",attributes:C(C({},s),{},{style:"width: ".concat(t.state.width,"px;")})},r(C(C({},n),{},{replacements:o})),e.preventDefault()}},Object(c.createElement)(w.TextControl,{className:"block-editor-format-toolbar__image-container-value",type:"number",label:Object(i.__)("Width"),value:this.state.width,min:1,onChange:this.onChange}),Object(c.createElement)(w.Button,{icon:x.a,label:Object(i.__)("Apply"),type:"submit"}))))}}],[{key:"getDerivedStateFromProps",value:function(t,e){var n=t.activeObjectAttributes.style;return n===e.previousStyle?null:n?{width:n.replace(/\D/g,""),previousStyle:n}:{width:void 0,previousStyle:n}}}]),n}(c.Component)},F=Object(c.createElement)(l.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(c.createElement)(l.Path,{d:"M12.5 5L10 19h1.9l2.5-14z"})),M=Object(i.__)("Italic"),N={name:"core/italic",title:M,tagName:"em",className:null,edit:function(t){var e=t.isActive,n=t.value,r=t.onChange,i=t.onFocus;function l(){r(Object(o.toggleFormat)(n,{type:"core/italic"}))}return Object(c.createElement)(c.Fragment,null,Object(c.createElement)(a.RichTextShortcut,{type:"primary",character:"i",onUse:l}),Object(c.createElement)(a.RichTextToolbarButton,{name:"italic",icon:F,title:M,onClick:function(){l(),i()},isActive:e,shortcutType:"primary",shortcutCharacter:"i"}),Object(c.createElement)(a.__unstableRichTextInputEvent,{inputType:"formatItalic",onInput:l}))}},L=n(30),D=n(69),V=n(217),B=n(187),z=n(12),H=n(2);function I(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function U(t){for(var e=1;e]+>/g,"").trim();return Object(L.isURL)(c)?(window.console.log("Created link:\n\n",c),Object(o.applyFormat)(t,{type:"core/link",attributes:{url:Object(D.decodeEntities)(c)}})):t},edit:Object(w.withSpokenMessages)(function(t){Object(j.a)(n,t);var e=K(n);function n(){var t;return Object(v.a)(this,n),(t=e.apply(this,arguments)).addLink=t.addLink.bind(Object(d.a)(t)),t.stopAddingLink=t.stopAddingLink.bind(Object(d.a)(t)),t.onRemoveFormat=t.onRemoveFormat.bind(Object(d.a)(t)),t.state={addingLink:!1},t}return Object(h.a)(n,[{key:"addLink",value:function(){var t=this.props,e=t.value,n=t.onChange,r=Object(o.getTextContent)(Object(o.slice)(e));r&&Object(L.isURL)(r)?n(Object(o.applyFormat)(e,{type:"core/link",attributes:{url:r}})):r&&Object(L.isEmail)(r)?n(Object(o.applyFormat)(e,{type:"core/link",attributes:{url:"mailto:".concat(r)}})):this.setState({addingLink:!0})}},{key:"stopAddingLink",value:function(){this.setState({addingLink:!1}),this.props.onFocus()}},{key:"onRemoveFormat",value:function(){var t=this.props,e=t.value,n=t.onChange,r=t.speak;n(Object(o.removeFormat)(e,"core/link")),r(Object(i.__)("Link removed."),"assertive")}},{key:"render",value:function(){var t=this.props,e=t.isActive,n=t.activeAttributes,r=t.value,o=t.onChange;return Object(c.createElement)(c.Fragment,null,Object(c.createElement)(a.RichTextShortcut,{type:"primary",character:"k",onUse:this.addLink}),Object(c.createElement)(a.RichTextShortcut,{type:"primaryShift",character:"k",onUse:this.onRemoveFormat}),e&&Object(c.createElement)(a.RichTextToolbarButton,{name:"link",icon:V.a,title:Object(i.__)("Unlink"),onClick:this.onRemoveFormat,isActive:e,shortcutType:"primaryShift",shortcutCharacter:"k"}),!e&&Object(c.createElement)(a.RichTextToolbarButton,{name:"link",icon:B.a,title:W,onClick:this.addLink,isActive:e,shortcutType:"primary",shortcutCharacter:"k"}),(this.state.addingLink||e)&&Object(c.createElement)(G,{addingLink:this.state.addingLink,stopAddingLink:this.stopAddingLink,isActive:e,activeAttributes:n,value:r,onChange:o}))}}]),n}(c.Component))},$=Object(c.createElement)(l.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(c.createElement)(l.Path,{d:"M9.1 9v-.5c0-.6.2-1.1.7-1.4.5-.3 1.2-.5 2-.5.7 0 1.4.1 2.1.3.7.2 1.4.5 2.1.9l.2-1.9c-.6-.3-1.2-.5-1.9-.7-.8-.1-1.6-.2-2.4-.2-1.5 0-2.7.3-3.6 1-.8.7-1.2 1.5-1.2 2.6V9h2zM20 12H4v1h8.3c.3.1.6.2.8.3.5.2.9.5 1.1.8.3.3.4.7.4 1.2 0 .7-.2 1.1-.8 1.5-.5.3-1.2.5-2.1.5-.8 0-1.6-.1-2.4-.3-.8-.2-1.5-.5-2.2-.8L7 18.1c.5.2 1.2.4 2 .6.8.2 1.6.3 2.4.3 1.7 0 3-.3 3.9-1 .9-.7 1.3-1.6 1.3-2.8 0-.9-.2-1.7-.7-2.2H20v-1z"})),q=Object(i.__)("Strikethrough"),J={name:"core/strikethrough",title:q,tagName:"s",className:null,edit:function(t){var e=t.isActive,n=t.value,r=t.onChange,i=t.onFocus;return Object(c.createElement)(a.RichTextToolbarButton,{icon:$,title:q,onClick:function(){r(Object(o.toggleFormat)(n,{type:"core/strikethrough"})),i()},isActive:e})}},X={name:"core/underline",title:Object(i.__)("Underline"),tagName:"span",className:null,attributes:{style:"style"},edit:function(t){var e=t.value,n=t.onChange,r=function(){n(Object(o.toggleFormat)(e,{type:"core/underline",attributes:{style:"text-decoration: underline;"}}))};return Object(c.createElement)(c.Fragment,null,Object(c.createElement)(a.RichTextShortcut,{type:"primary",character:"u",onUse:r}),Object(c.createElement)(a.__unstableRichTextInputEvent,{inputType:"formatUnderline",onInput:r}))}},Y=n(141),Z=n(442),tt=n(8),et=n(4),nt=n(29);function rt(t,e,n){var r=Object(o.getActiveFormat)(e,t);if(r){var c=r.attributes.style;if(c)return c.replace(new RegExp("^color:\\s*"),"");var i=r.attributes.class;if(i){var l=i.replace(/.*has-([^\s]*)-color.*/,"$1");return Object(a.getColorObjectByAttributeValues)(n,l).color}}}var ot=function(t){var e=t.addingColor,n=Object(r.a)(t,["addingColor"]),o=Object(c.useMemo)((function(){var t=window.getSelection(),n=t.rangeCount>0?t.getRangeAt(0):null;if(n){if(e)return Object(nt.getRectangleFromRange)(n);var r=n.startContainer;for(r=r.nextElementSibling||r;r.nodeType!==r.ELEMENT_NODE;)r=r.parentNode;var o=r.closest("span");return o?o.getBoundingClientRect():void 0}}),[]);return o?Object(c.createElement)(a.URLPopover,Object(tt.a)({anchorRect:o},n)):null},ct=function(t){var e=t.name,n=t.value,r=t.onChange,i=Object(et.useSelect)((function(t){var e=t("core/block-editor").getSettings;return Object(H.get)(e(),["colors"],[])})),l=Object(c.useCallback)((function(t){if(t){var c=Object(a.getColorObjectByColorValue)(i,t);r(Object(o.applyFormat)(n,{type:e,attributes:c?{class:Object(a.getColorClassName)("color",c.slug)}:{style:"color:".concat(t)}}))}else r(Object(o.removeFormat)(n,e))}),[i,r]),u=Object(c.useMemo)((function(){return rt(e,n,i)}),[e,n,i]);return Object(c.createElement)(a.ColorPalette,{value:u,onChange:l})};function it(t){var e=t.name,n=t.value,r=t.onChange,o=t.onClose,i=t.addingColor;return Object(c.createElement)(ot,{value:n,addingColor:i,onClose:o,className:"components-inline-color-popover"},Object(c.createElement)(ct,{name:e,value:n,onChange:r}))}var at=Object(i.__)("Text Color"),lt=[];var ut={name:"core/text-color",title:at,tagName:"span",className:"has-inline-color",attributes:{style:"style",class:"class"},edit:function(t){var e=t.value,n=t.onChange,r=t.isActive,i=t.activeAttributes,l=Object(a.__experimentalUseEditorFeature)("color.custom"),u=Object(a.__experimentalUseEditorFeature)("color.palette")||lt,s=Object(c.useState)(!1),b=Object(z.a)(s,2),f=b[0],p=b[1],m=Object(c.useCallback)((function(){return p(!0)}),[p]),O=Object(c.useCallback)((function(){return p(!1)}),[p]),v=Object(c.useMemo)((function(){var t=rt("core/text-color",e,u);if(t)return{backgroundColor:t}}),[e,u]),h=!Object(H.isEmpty)(u)||!l;return h||r?Object(c.createElement)(c.Fragment,null,Object(c.createElement)(a.RichTextToolbarButton,{key:r?"text-color":"text-color-not-active",className:"format-library-text-color-button",name:r?"text-color":void 0,icon:Object(c.createElement)(c.Fragment,null,Object(c.createElement)(Y.a,{icon:Z.a}),r&&Object(c.createElement)("span",{className:"format-library-text-color-button__indicator",style:v})),title:at,onClick:h?m:function(){return n(Object(o.removeFormat)(e,"core/text-color"))}}),f&&Object(c.createElement)(it,{name:"core/text-color",addingColor:f,onClose:O,activeAttributes:i,value:e,onChange:n})):null}},st=Object(c.createElement)(l.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(c.createElement)(l.Path,{d:"M16.9 18.3l.8-1.2c.4-.6.7-1.2.9-1.6.2-.4.3-.8.3-1.2 0-.3-.1-.7-.2-1-.1-.3-.4-.5-.6-.7-.3-.2-.6-.3-1-.3s-.8.1-1.1.2c-.3.1-.7.3-1 .6l.2 1.3c.3-.3.5-.5.8-.6s.6-.2.9-.2c.3 0 .5.1.7.2.2.2.2.4.2.7 0 .3-.1.5-.2.8-.1.3-.4.7-.8 1.3L15 19.4h4.3v-1.2h-2.4zM14.1 7.2h-2L9.5 11 6.9 7.2h-2l3.6 5.3L4.7 18h2l2.7-4 2.7 4h2l-3.8-5.5 3.8-5.3z"})),bt=Object(i.__)("Subscript"),ft={name:"core/subscript",title:bt,tagName:"sub",className:null,edit:function(t){var e=t.isActive,n=t.value,r=t.onChange,i=t.onFocus;return Object(c.createElement)(a.RichTextToolbarButton,{icon:st,title:bt,onClick:function(){r(Object(o.toggleFormat)(n,{type:"core/subscript"})),i()},isActive:e})}},pt=Object(c.createElement)(l.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(c.createElement)(l.Path,{d:"M16.9 10.3l.8-1.3c.4-.6.7-1.2.9-1.6.2-.4.3-.8.3-1.2 0-.3-.1-.7-.2-1-.2-.2-.4-.4-.7-.6-.3-.2-.6-.3-1-.3s-.8.1-1.1.2c-.3.1-.7.3-1 .6l.1 1.3c.3-.3.5-.5.8-.6s.6-.2.9-.2c.3 0 .5.1.7.2.2.2.2.4.2.7 0 .3-.1.5-.2.8-.1.3-.4.7-.8 1.3l-1.8 2.8h4.3v-1.2h-2.2zm-2.8-3.1h-2L9.5 11 6.9 7.2h-2l3.6 5.3L4.7 18h2l2.7-4 2.7 4h2l-3.8-5.5 3.8-5.3z"})),mt=Object(i.__)("Superscript");[b,m,A,N,Q,J,X,ut,ft,{name:"core/superscript",title:mt,tagName:"sup",className:null,edit:function(t){var e=t.isActive,n=t.value,r=t.onChange,i=t.onFocus;return Object(c.createElement)(a.RichTextToolbarButton,{icon:pt,title:mt,onClick:function(){r(Object(o.toggleFormat)(n,{type:"core/superscript"})),i()},isActive:e})}}].forEach((function(t){var e=t.name,n=Object(r.a)(t,["name"]);return Object(o.registerFormatType)(e,n)}))},5:function(t,e,n){"use strict";function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}n.d(e,"a",(function(){return r}))},6:function(t,e){!function(){t.exports=this.wp.blockEditor}()},69:function(t,e){!function(){t.exports=this.wp.htmlEntities}()},7:function(t,e){!function(){t.exports=this.wp.primitives}()},8:function(t,e,n){"use strict";function r(){return(r=Object.assign||function(t){for(var e=1;en.length)&&(r=n.length);for(var e=0,t=new Array(r);e3&&void 0!==arguments[3]?arguments[3]:10;if(o(r)&&t(e))if("function"==typeof i)if("number"==typeof u){var c={callback:i,priority:u,namespace:e};if(n[r]){var a,l=n[r].handlers;for(a=l.length;a>0&&!(u>=l[a-1].priority);a--);a===l.length?l[a]=c:l.splice(a,0,c),(n.__current||[]).forEach((function(n){n.name===r&&n.currentIndex>=a&&n.currentIndex++}))}else n[r]={handlers:[c],runs:0};"hookAdded"!==r&&F("hookAdded",r,e,i,u)}else console.error("If specified, the hook priority must be a number.");else console.error("The hook callback must be a function.")}};var u=function(n,r){return function(e,i){if(o(e)&&(r||t(i))){if(!n[e])return 0;var u=0;if(r)u=n[e].handlers.length,n[e]={runs:n[e].runs,handlers:[]};else for(var c=n[e].handlers,a=function(r){c[r].namespace===i&&(c.splice(r,1),u++,(n.__current||[]).forEach((function(n){n.name===e&&n.currentIndex>=r&&n.currentIndex--})))},l=c.length-1;l>=0;l--)a(l);return"hookRemoved"!==e&&F("hookRemoved",e,i),u}}};var c=function(n){return function(r,e){return void 0!==e?r in n&&n[r].handlers.some((function(n){return n.namespace===e})):r in n}};e(17);var a=function(n,r){return function(e){n[e]||(n[e]={handlers:[],runs:0}),n[e].runs++;var t=n[e].handlers;for(var o=arguments.length,i=new Array(o>1?o-1:0),u=1;un.length)&&(r=n.length);for(var e=0,t=new Array(r);e3&&void 0!==arguments[3]?arguments[3]:10;if(o(r)&&t(e))if("function"==typeof i)if("number"==typeof u){var c={callback:i,priority:u,namespace:e};if(n[r]){var a,l=n[r].handlers;for(a=l.length;a>0&&!(u>=l[a-1].priority);a--);a===l.length?l[a]=c:l.splice(a,0,c),(n.__current||[]).forEach((function(n){n.name===r&&n.currentIndex>=a&&n.currentIndex++}))}else n[r]={handlers:[c],runs:0};"hookAdded"!==r&&F("hookAdded",r,e,i,u)}else console.error("If specified, the hook priority must be a number.");else console.error("The hook callback must be a function.")}};var u=function(n,r){return function(e,i){if(o(e)&&(r||t(i))){if(!n[e])return 0;var u=0;if(r)u=n[e].handlers.length,n[e]={runs:n[e].runs,handlers:[]};else for(var c=n[e].handlers,a=function(r){c[r].namespace===i&&(c.splice(r,1),u++,(n.__current||[]).forEach((function(n){n.name===e&&n.currentIndex>=r&&n.currentIndex--})))},l=c.length-1;l>=0;l--)a(l);return"hookRemoved"!==e&&F("hookRemoved",e,i),u}}};var c=function(n){return function(r,e){return void 0!==e?r in n&&n[r].handlers.some((function(n){return n.namespace===e})):r in n}};e(17);var a=function(n,r){return function(e){n[e]||(n[e]={handlers:[],runs:0}),n[e].runs++;var t=n[e].handlers;for(var o=arguments.length,i=new Array(o>1?o-1:0),u=1;u=0),a.type){case"b":e=parseInt(e,10).toString(2);break;case"c":e=String.fromCharCode(parseInt(e,10));break;case"d":case"i":e=parseInt(e,10);break;case"j":e=JSON.stringify(e,null,a.width?parseInt(a.width):0);break;case"e":e=a.precision?parseFloat(e).toExponential(a.precision):parseFloat(e).toExponential();break;case"f":e=a.precision?parseFloat(e).toFixed(a.precision):parseFloat(e);break;case"g":e=a.precision?String(Number(e.toPrecision(a.precision))):parseFloat(e);break;case"o":e=(parseInt(e,10)>>>0).toString(8);break;case"s":e=String(e),e=a.precision?e.substring(0,a.precision):e;break;case"t":e=String(!!e),e=a.precision?e.substring(0,a.precision):e;break;case"T":e=Object.prototype.toString.call(e).slice(8,-1).toLowerCase(),e=a.precision?e.substring(0,a.precision):e;break;case"u":e=parseInt(e,10)>>>0;break;case"v":e=e.valueOf(),e=a.precision?e.substring(0,a.precision):e;break;case"x":e=(parseInt(e,10)>>>0).toString(16);break;case"X":e=(parseInt(e,10)>>>0).toString(16).toUpperCase()}i.json.test(a.type)?h+=e:(!i.number.test(a.type)||f&&!a.sign?l="":(l=f?"+":"-",e=e.toString().replace(i.sign,"")),c=a.pad_char?"0"===a.pad_char?"0":a.pad_char.charAt(1):" ",p=a.width-(l+e).length,s=a.width&&p>0?c.repeat(p):"",h+=a.align?l+e+s:"0"===c?l+s+e:s+l+e)}return h}var s=Object.create(null);function c(n){if(s[n])return s[n];for(var t,e=n,r=[],o=0;e;){if(null!==(t=i.text.exec(e)))r.push(t[0]);else if(null!==(t=i.modulo.exec(e)))r.push("%");else{if(null===(t=i.placeholder.exec(e)))throw new SyntaxError("[sprintf] unexpected placeholder");if(t[2]){o|=1;var u=[],a=t[2],c=[];if(null===(c=i.key.exec(a)))throw new SyntaxError("[sprintf] failed to parse named argument key");for(u.push(c[1]);""!==(a=a.substring(c[0].length));)if(null!==(c=i.key_access.exec(a)))u.push(c[1]);else{if(null===(c=i.index_access.exec(a)))throw new SyntaxError("[sprintf] failed to parse named argument key");u.push(c[1])}t[2]=u}else o|=2;if(3===o)throw new Error("[sprintf] mixing positional and named placeholders is not (yet) supported");r.push({placeholder:t[0],param_no:t[1],keys:t[2],sign:t[3],pad_char:t[4],align:t[5],width:t[6],precision:t[7],type:t[8]})}e=e.substring(t[0].length)}return s[n]=r}t.sprintf=o,t.vsprintf=u,"undefined"!=typeof window&&(window.sprintf=o,window.vsprintf=u,void 0===(r=function(){return{sprintf:o,vsprintf:u}}.call(t,e,t,n))||(n.exports=r))}()},471:function(n,t,e){"use strict";e.r(t),e.d(t,"sprintf",(function(){return s})),e.d(t,"createI18n",(function(){return _})),e.d(t,"setLocaleData",(function(){return O})),e.d(t,"__",(function(){return j})),e.d(t,"_x",(function(){return k})),e.d(t,"_n",(function(){return S})),e.d(t,"_nx",(function(){return P})),e.d(t,"isRTL",(function(){return F}));var r=e(60),i=e.n(r),o=e(203),u=e.n(o),a=i()(console.error);function s(n){try{for(var t=arguments.length,e=new Array(t>1?t-1:0),r=1;r":5,">=":5,"==":4,"!=":4,"&&":3,"||":2,"?":1,"?:":1},p=["(","?"],f={")":["("],":":["?","?:"]},l=/<=|>=|==|!=|&&|\|\||\?:|\(|!|\*|\/|%|\+|-|<|>|\?|\)|:/;var g={"!":function(n){return!n},"*":function(n,t){return n*t},"/":function(n,t){return n/t},"%":function(n,t){return n%t},"+":function(n,t){return n+t},"-":function(n,t){return n-t},"<":function(n,t){return n":function(n,t){return n>t},">=":function(n,t){return n>=t},"==":function(n,t){return n===t},"!=":function(n,t){return n!==t},"&&":function(n,t){return n&&t},"||":function(n,t){return n||t},"?:":function(n,t,e){if(n)throw t;return e}};function h(n){var t=function(n){for(var t,e,r,i,o=[],u=[];t=n.match(l);){for(e=t[0],(r=n.substr(0,t.index).trim())&&o.push(r);i=u.pop();){if(f[e]){if(f[e][0]===i){e=f[e][1]||e;break}}else if(p.indexOf(i)>=0||c[i]1&&void 0!==arguments[1]?arguments[1]:"default";e.data[t]=x(x(x({},m),e.data[t]),n),e.data[t][""]=x(x({},m[""]),e.data[t][""])},i=function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"default",t=arguments.length>1?arguments[1]:void 0,i=arguments.length>2?arguments[2]:void 0,o=arguments.length>3?arguments[3]:void 0,u=arguments.length>4?arguments[4]:void 0;return e.data[n]||r(void 0,n),e.dcnpgettext(n,t,i,o,u)},o=function(n,t,e){return i(e,t,n)};return n&&r(n,t),{setLocaleData:r,__:function(n,t){return i(t,void 0,n)},_x:o,_n:function(n,t,e,r){return i(r,void 0,n,t,e)},_nx:function(n,t,e,r,o){return i(o,r,n,t,e)},isRTL:function(){return"rtl"===o("ltr","text direction")}}},w=_(),O=w.setLocaleData.bind(w),j=w.__.bind(w),k=w._x.bind(w),S=w._n.bind(w),P=w._nx.bind(w),F=w.isRTL.bind(w)},5:function(n,t,e){"use strict";function r(n,t,e){return t in n?Object.defineProperty(n,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[t]=e,n}e.d(t,"a",(function(){return r}))},60:function(n,t,e){n.exports=function(n,t){var e,r,i=0;function o(){var o,u,a=e,s=arguments.length;n:for(;a;){if(a.args.length===arguments.length){for(u=0;u=0),a.type){case"b":e=parseInt(e,10).toString(2);break;case"c":e=String.fromCharCode(parseInt(e,10));break;case"d":case"i":e=parseInt(e,10);break;case"j":e=JSON.stringify(e,null,a.width?parseInt(a.width):0);break;case"e":e=a.precision?parseFloat(e).toExponential(a.precision):parseFloat(e).toExponential();break;case"f":e=a.precision?parseFloat(e).toFixed(a.precision):parseFloat(e);break;case"g":e=a.precision?String(Number(e.toPrecision(a.precision))):parseFloat(e);break;case"o":e=(parseInt(e,10)>>>0).toString(8);break;case"s":e=String(e),e=a.precision?e.substring(0,a.precision):e;break;case"t":e=String(!!e),e=a.precision?e.substring(0,a.precision):e;break;case"T":e=Object.prototype.toString.call(e).slice(8,-1).toLowerCase(),e=a.precision?e.substring(0,a.precision):e;break;case"u":e=parseInt(e,10)>>>0;break;case"v":e=e.valueOf(),e=a.precision?e.substring(0,a.precision):e;break;case"x":e=(parseInt(e,10)>>>0).toString(16);break;case"X":e=(parseInt(e,10)>>>0).toString(16).toUpperCase()}i.json.test(a.type)?h+=e:(!i.number.test(a.type)||f&&!a.sign?l="":(l=f?"+":"-",e=e.toString().replace(i.sign,"")),c=a.pad_char?"0"===a.pad_char?"0":a.pad_char.charAt(1):" ",p=a.width-(l+e).length,s=a.width&&p>0?c.repeat(p):"",h+=a.align?l+e+s:"0"===c?l+s+e:s+l+e)}return h}var s=Object.create(null);function c(n){if(s[n])return s[n];for(var t,e=n,r=[],o=0;e;){if(null!==(t=i.text.exec(e)))r.push(t[0]);else if(null!==(t=i.modulo.exec(e)))r.push("%");else{if(null===(t=i.placeholder.exec(e)))throw new SyntaxError("[sprintf] unexpected placeholder");if(t[2]){o|=1;var u=[],a=t[2],c=[];if(null===(c=i.key.exec(a)))throw new SyntaxError("[sprintf] failed to parse named argument key");for(u.push(c[1]);""!==(a=a.substring(c[0].length));)if(null!==(c=i.key_access.exec(a)))u.push(c[1]);else{if(null===(c=i.index_access.exec(a)))throw new SyntaxError("[sprintf] failed to parse named argument key");u.push(c[1])}t[2]=u}else o|=2;if(3===o)throw new Error("[sprintf] mixing positional and named placeholders is not (yet) supported");r.push({placeholder:t[0],param_no:t[1],keys:t[2],sign:t[3],pad_char:t[4],align:t[5],width:t[6],precision:t[7],type:t[8]})}e=e.substring(t[0].length)}return s[n]=r}t.sprintf=o,t.vsprintf=u,"undefined"!=typeof window&&(window.sprintf=o,window.vsprintf=u,void 0===(r=function(){return{sprintf:o,vsprintf:u}}.call(t,e,t,n))||(n.exports=r))}()},485:function(n,t,e){"use strict";e.r(t),e.d(t,"sprintf",(function(){return s})),e.d(t,"createI18n",(function(){return _})),e.d(t,"setLocaleData",(function(){return O})),e.d(t,"__",(function(){return j})),e.d(t,"_x",(function(){return k})),e.d(t,"_n",(function(){return S})),e.d(t,"_nx",(function(){return P})),e.d(t,"isRTL",(function(){return F}));var r=e(60),i=e.n(r),o=e(202),u=e.n(o),a=i()(console.error);function s(n){try{for(var t=arguments.length,e=new Array(t>1?t-1:0),r=1;r":5,">=":5,"==":4,"!=":4,"&&":3,"||":2,"?":1,"?:":1},p=["(","?"],f={")":["("],":":["?","?:"]},l=/<=|>=|==|!=|&&|\|\||\?:|\(|!|\*|\/|%|\+|-|<|>|\?|\)|:/;var g={"!":function(n){return!n},"*":function(n,t){return n*t},"/":function(n,t){return n/t},"%":function(n,t){return n%t},"+":function(n,t){return n+t},"-":function(n,t){return n-t},"<":function(n,t){return n":function(n,t){return n>t},">=":function(n,t){return n>=t},"==":function(n,t){return n===t},"!=":function(n,t){return n!==t},"&&":function(n,t){return n&&t},"||":function(n,t){return n||t},"?:":function(n,t,e){if(n)throw t;return e}};function h(n){var t=function(n){for(var t,e,r,i,o=[],u=[];t=n.match(l);){for(e=t[0],(r=n.substr(0,t.index).trim())&&o.push(r);i=u.pop();){if(f[e]){if(f[e][0]===i){e=f[e][1]||e;break}}else if(p.indexOf(i)>=0||c[i]1&&void 0!==arguments[1]?arguments[1]:"default";e.data[t]=x(x(x({},m),e.data[t]),n),e.data[t][""]=x(x({},m[""]),e.data[t][""])},i=function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"default",t=arguments.length>1?arguments[1]:void 0,i=arguments.length>2?arguments[2]:void 0,o=arguments.length>3?arguments[3]:void 0,u=arguments.length>4?arguments[4]:void 0;return e.data[n]||r(void 0,n),e.dcnpgettext(n,t,i,o,u)},o=function(n,t,e){return i(e,t,n)};return n&&r(n,t),{setLocaleData:r,__:function(n,t){return i(t,void 0,n)},_x:o,_n:function(n,t,e,r){return i(r,void 0,n,t,e)},_nx:function(n,t,e,r,o){return i(o,r,n,t,e)},isRTL:function(){return"rtl"===o("ltr","text direction")}}},w=_(),O=w.setLocaleData.bind(w),j=w.__.bind(w),k=w._x.bind(w),S=w._n.bind(w),P=w._nx.bind(w),F=w.isRTL.bind(w)},5:function(n,t,e){"use strict";function r(n,t,e){return t in n?Object.defineProperty(n,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[t]=e,n}e.d(t,"a",(function(){return r}))},60:function(n,t,e){n.exports=function(n,t){var e,r,i=0;function o(){var o,u,a=e,s=arguments.length;n:for(;a;){if(a.args.length===arguments.length){for(u=0;ut.length)&&(e=t.length);for(var n=0,r=new Array(e);n0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;switch(e.type){case"REGISTER_SHORTCUT":return f(f({},t),{},Object(i.a)({},e.name,{category:e.category,keyCombination:e.keyCombination,aliases:e.aliases,description:e.description}));case"UNREGISTER_SHORTCUT":return Object(a.omit)(t,e.name)}return t};function l(t){var e=t.name,n=t.category,r=t.description;return{type:"REGISTER_SHORTCUT",name:e,category:n,keyCombination:t.keyCombination,aliases:t.aliases,description:r}}function p(t){return{type:"UNREGISTER_SHORTCUT",name:t}}var d=n(12),b=n(17),y=n(42),h=n(18),v=[],O={display:h.displayShortcut,raw:h.rawShortcut,ariaLabel:h.shortcutAriaLabel};function g(t,e){return t?t.modifier?O[e][t.modifier](t.character):t.character:null}function m(t,e){return t[e]?t[e].keyCombination:null}function j(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"display",r=m(t,e);return g(r,n)}function S(t,e){return t[e]?t[e].description:null}function w(t,e){return t[e]&&t[e].aliases?t[e].aliases:v}var x=Object(y.a)((function(t,e){return Object(a.compact)([g(m(t,e),"raw")].concat(Object(b.a)(w(t,e).map((function(t){return g(t,"raw")})))))}),(function(t,e){return[t[e]]})),T=Object(y.a)((function(t,e){return Object.entries(t).filter((function(t){return Object(d.a)(t,2)[1].category===e})).map((function(t){return Object(d.a)(t,1)[0]}))}),(function(t){return[t]})),R=(Object(u.registerStore)("core/keyboard-shortcuts",{reducer:s,actions:r,selectors:o}),n(10));var k=function(t,e,n){var r=Object(u.useSelect)((function(e){return e("core/keyboard-shortcuts").getAllShortcutRawKeyCombinations(t)}),[t]);Object(R.useKeyboardShortcut)(r,e,n)}},5:function(t,e,n){"use strict";function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}n.d(e,"a",(function(){return r}))}}); \ No newline at end of file +this.wp=this.wp||{},this.wp.keyboardShortcuts=function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=489)}({10:function(t,e){!function(){t.exports=this.wp.compose}()},12:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(38);var o=n(31),u=n(39);function i(t,e){return Object(r.a)(t)||function(t,e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t)){var n=[],r=!0,o=!1,u=void 0;try{for(var i,a=t[Symbol.iterator]();!(r=(i=a.next()).done)&&(n.push(i.value),!e||n.length!==e);r=!0);}catch(t){o=!0,u=t}finally{try{r||null==a.return||a.return()}finally{if(o)throw u}}return n}}(t,e)||Object(o.a)(t,e)||Object(u.a)()}},17:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(27);var o=n(37),u=n(31);function i(t){return function(t){if(Array.isArray(t))return Object(r.a)(t)}(t)||Object(o.a)(t)||Object(u.a)(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},18:function(t,e){!function(){t.exports=this.wp.keycodes}()},2:function(t,e){!function(){t.exports=this.lodash}()},27:function(t,e,n){"use strict";function r(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;switch(e.type){case"REGISTER_SHORTCUT":return f(f({},t),{},Object(i.a)({},e.name,{category:e.category,keyCombination:e.keyCombination,aliases:e.aliases,description:e.description}));case"UNREGISTER_SHORTCUT":return Object(a.omit)(t,e.name)}return t};function l(t){var e=t.name,n=t.category,r=t.description;return{type:"REGISTER_SHORTCUT",name:e,category:n,keyCombination:t.keyCombination,aliases:t.aliases,description:r}}function p(t){return{type:"UNREGISTER_SHORTCUT",name:t}}var d=n(12),b=n(17),y=n(42),h=n(18),v=[],O={display:h.displayShortcut,raw:h.rawShortcut,ariaLabel:h.shortcutAriaLabel};function g(t,e){return t?t.modifier?O[e][t.modifier](t.character):t.character:null}function m(t,e){return t[e]?t[e].keyCombination:null}function j(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"display",r=m(t,e);return g(r,n)}function S(t,e){return t[e]?t[e].description:null}function w(t,e){return t[e]&&t[e].aliases?t[e].aliases:v}var x=Object(y.a)((function(t,e){return Object(a.compact)([g(m(t,e),"raw")].concat(Object(b.a)(w(t,e).map((function(t){return g(t,"raw")})))))}),(function(t,e){return[t[e]]})),T=Object(y.a)((function(t,e){return Object.entries(t).filter((function(t){return Object(d.a)(t,2)[1].category===e})).map((function(t){return Object(d.a)(t,1)[0]}))}),(function(t){return[t]})),R=(Object(u.registerStore)("core/keyboard-shortcuts",{reducer:s,actions:r,selectors:o}),n(10));var k=function(t,e,n){var r=Object(u.useSelect)((function(e){return e("core/keyboard-shortcuts").getAllShortcutRawKeyCombinations(t)}),[t]);Object(R.useKeyboardShortcut)(r,e,n)}},5:function(t,e,n){"use strict";function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}n.d(e,"a",(function(){return r}))}}); \ No newline at end of file diff --git a/wp-includes/js/dist/keycodes.js b/wp-includes/js/dist/keycodes.js index fb605281c1..f5a3110baa 100644 --- a/wp-includes/js/dist/keycodes.js +++ b/wp-includes/js/dist/keycodes.js @@ -82,7 +82,7 @@ this["wp"] = this["wp"] || {}; this["wp"]["keycodes"] = /******/ /******/ /******/ // Load entry module and return exports -/******/ return __webpack_require__(__webpack_require__.s = 485); +/******/ return __webpack_require__(__webpack_require__.s = 499); /******/ }) /************************************************************************/ /******/ ({ @@ -114,7 +114,7 @@ function _arrayWithoutHoles(arr) { var iterableToArray = __webpack_require__(37); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js -var unsupportedIterableToArray = __webpack_require__(30); +var unsupportedIterableToArray = __webpack_require__(31); // CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js function _nonIterableSpread() { @@ -155,7 +155,7 @@ function _arrayLikeToArray(arr, len) { /***/ }), -/***/ 30: +/***/ 31: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -184,7 +184,7 @@ function _iterableToArray(iter) { /***/ }), -/***/ 485: +/***/ 499: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; diff --git a/wp-includes/js/dist/keycodes.min.js b/wp-includes/js/dist/keycodes.min.js index d180f4f228..c91e3b666b 100644 --- a/wp-includes/js/dist/keycodes.min.js +++ b/wp-includes/js/dist/keycodes.min.js @@ -1,2 +1,2 @@ /*! This file is auto-generated */ -this.wp=this.wp||{},this.wp.keycodes=function(t){var n={};function r(e){if(n[e])return n[e].exports;var u=n[e]={i:e,l:!1,exports:{}};return t[e].call(u.exports,u,u.exports,r),u.l=!0,u.exports}return r.m=t,r.c=n,r.d=function(t,n,e){r.o(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:e})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,n){if(1&n&&(t=r(t)),8&n)return t;if(4&n&&"object"==typeof t&&t&&t.__esModule)return t;var e=Object.create(null);if(r.r(e),Object.defineProperty(e,"default",{enumerable:!0,value:t}),2&n&&"string"!=typeof t)for(var u in t)r.d(e,u,function(n){return t[n]}.bind(null,u));return e},r.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(n,"a",n),n},r.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},r.p="",r(r.s=485)}({1:function(t,n){!function(){t.exports=this.wp.i18n}()},17:function(t,n,r){"use strict";r.d(n,"a",(function(){return c}));var e=r(27);var u=r(37),o=r(30);function c(t){return function(t){if(Array.isArray(t))return Object(e.a)(t)}(t)||Object(u.a)(t)||Object(o.a)(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},2:function(t,n){!function(){t.exports=this.lodash}()},27:function(t,n,r){"use strict";function e(t,n){(null==n||n>t.length)&&(n=t.length);for(var r=0,e=new Array(n);r0&&void 0!==arguments[0]?arguments[0]:window,n=t.navigator.platform;return-1!==n.indexOf("Mac")||Object(o.includes)(["iPad","iPhone"],n)}var a=8,f=9,l=13,d=27,b=32,s=37,O=38,j=39,p=40,y=46,v=121,m="alt",h="ctrl",g="meta",S="shift",A=48,w={primary:function(t){return t()?[g]:[h]},primaryShift:function(t){return t()?[S,g]:[h,S]},primaryAlt:function(t){return t()?[m,g]:[h,m]},secondary:function(t){return t()?[S,m,g]:[h,S,m]},access:function(t){return t()?[h,m]:[S,m]},ctrl:function(){return[h]},alt:function(){return[m]},ctrlShift:function(){return[h,S]},shift:function(){return[S]},shiftAlt:function(){return[S,m]}},C=Object(o.mapValues)(w,(function(t){return function(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i;return[].concat(Object(u.a)(t(r)),[n.toLowerCase()]).join("+")}})),E=Object(o.mapValues)(w,(function(t){return function(n){var r,c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i,a=c(),f=(r={},Object(e.a)(r,m,a?"⌥":"Alt"),Object(e.a)(r,h,a?"⌃":"Ctrl"),Object(e.a)(r,g,"⌘"),Object(e.a)(r,S,a?"⇧":"Shift"),r),l=t(c).reduce((function(t,n){var r=Object(o.get)(f,n,n);return[].concat(Object(u.a)(t),a?[r]:[r,"+"])}),[]),d=Object(o.capitalize)(n);return[].concat(Object(u.a)(l),[d])}})),P=Object(o.mapValues)(E,(function(t){return function(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i;return t(n,r).join("")}})),_=Object(o.mapValues)(w,(function(t){return function(n){var r,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i,f=a(),l=(r={},Object(e.a)(r,S,"Shift"),Object(e.a)(r,g,f?"Command":"Control"),Object(e.a)(r,h,"Control"),Object(e.a)(r,m,f?"Option":"Alt"),Object(e.a)(r,",",Object(c.__)("Comma")),Object(e.a)(r,".",Object(c.__)("Period")),Object(e.a)(r,"`",Object(c.__)("Backtick")),r);return[].concat(Object(u.a)(t(a)),[n]).map((function(t){return Object(o.capitalize)(Object(o.get)(l,t,t))})).join(f?" ":" + ")}}));function T(t){return[m,h,g,S].filter((function(n){return t["".concat(n,"Key")]}))}var x=Object(o.mapValues)(w,(function(t){return function(n,r){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:i,u=t(e),c=T(n);return!Object(o.xor)(u,c).length&&(r?n.key===r:Object(o.includes)(u,n.key.toLowerCase()))}}))},5:function(t,n,r){"use strict";function e(t,n,r){return n in t?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r,t}r.d(n,"a",(function(){return e}))}}); \ No newline at end of file +this.wp=this.wp||{},this.wp.keycodes=function(t){var n={};function r(e){if(n[e])return n[e].exports;var u=n[e]={i:e,l:!1,exports:{}};return t[e].call(u.exports,u,u.exports,r),u.l=!0,u.exports}return r.m=t,r.c=n,r.d=function(t,n,e){r.o(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:e})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,n){if(1&n&&(t=r(t)),8&n)return t;if(4&n&&"object"==typeof t&&t&&t.__esModule)return t;var e=Object.create(null);if(r.r(e),Object.defineProperty(e,"default",{enumerable:!0,value:t}),2&n&&"string"!=typeof t)for(var u in t)r.d(e,u,function(n){return t[n]}.bind(null,u));return e},r.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(n,"a",n),n},r.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},r.p="",r(r.s=499)}({1:function(t,n){!function(){t.exports=this.wp.i18n}()},17:function(t,n,r){"use strict";r.d(n,"a",(function(){return c}));var e=r(27);var u=r(37),o=r(31);function c(t){return function(t){if(Array.isArray(t))return Object(e.a)(t)}(t)||Object(u.a)(t)||Object(o.a)(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},2:function(t,n){!function(){t.exports=this.lodash}()},27:function(t,n,r){"use strict";function e(t,n){(null==n||n>t.length)&&(n=t.length);for(var r=0,e=new Array(n);r0&&void 0!==arguments[0]?arguments[0]:window,n=t.navigator.platform;return-1!==n.indexOf("Mac")||Object(o.includes)(["iPad","iPhone"],n)}var a=8,f=9,l=13,d=27,b=32,s=37,O=38,j=39,p=40,y=46,v=121,m="alt",h="ctrl",g="meta",S="shift",A=48,w={primary:function(t){return t()?[g]:[h]},primaryShift:function(t){return t()?[S,g]:[h,S]},primaryAlt:function(t){return t()?[m,g]:[h,m]},secondary:function(t){return t()?[S,m,g]:[h,S,m]},access:function(t){return t()?[h,m]:[S,m]},ctrl:function(){return[h]},alt:function(){return[m]},ctrlShift:function(){return[h,S]},shift:function(){return[S]},shiftAlt:function(){return[S,m]}},C=Object(o.mapValues)(w,(function(t){return function(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i;return[].concat(Object(u.a)(t(r)),[n.toLowerCase()]).join("+")}})),E=Object(o.mapValues)(w,(function(t){return function(n){var r,c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i,a=c(),f=(r={},Object(e.a)(r,m,a?"⌥":"Alt"),Object(e.a)(r,h,a?"⌃":"Ctrl"),Object(e.a)(r,g,"⌘"),Object(e.a)(r,S,a?"⇧":"Shift"),r),l=t(c).reduce((function(t,n){var r=Object(o.get)(f,n,n);return[].concat(Object(u.a)(t),a?[r]:[r,"+"])}),[]),d=Object(o.capitalize)(n);return[].concat(Object(u.a)(l),[d])}})),P=Object(o.mapValues)(E,(function(t){return function(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i;return t(n,r).join("")}})),_=Object(o.mapValues)(w,(function(t){return function(n){var r,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i,f=a(),l=(r={},Object(e.a)(r,S,"Shift"),Object(e.a)(r,g,f?"Command":"Control"),Object(e.a)(r,h,"Control"),Object(e.a)(r,m,f?"Option":"Alt"),Object(e.a)(r,",",Object(c.__)("Comma")),Object(e.a)(r,".",Object(c.__)("Period")),Object(e.a)(r,"`",Object(c.__)("Backtick")),r);return[].concat(Object(u.a)(t(a)),[n]).map((function(t){return Object(o.capitalize)(Object(o.get)(l,t,t))})).join(f?" ":" + ")}}));function T(t){return[m,h,g,S].filter((function(n){return t["".concat(n,"Key")]}))}var x=Object(o.mapValues)(w,(function(t){return function(n,r){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:i,u=t(e),c=T(n);return!Object(o.xor)(u,c).length&&(r?n.key===r:Object(o.includes)(u,n.key.toLowerCase()))}}))},5:function(t,n,r){"use strict";function e(t,n,r){return n in t?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r,t}r.d(n,"a",(function(){return e}))}}); \ No newline at end of file diff --git a/wp-includes/js/dist/list-reusable-blocks.js b/wp-includes/js/dist/list-reusable-blocks.js index 3012df73f1..f4394da643 100644 --- a/wp-includes/js/dist/list-reusable-blocks.js +++ b/wp-includes/js/dist/list-reusable-blocks.js @@ -82,7 +82,7 @@ this["wp"] = this["wp"] || {}; this["wp"]["listReusableBlocks"] = /******/ /******/ /******/ // Load entry module and return exports -/******/ return __webpack_require__(__webpack_require__.s = 476); +/******/ return __webpack_require__(__webpack_require__.s = 490); /******/ }) /************************************************************************/ /******/ ({ @@ -322,7 +322,7 @@ function _asyncToGenerator(fn) { /***/ }), -/***/ 476: +/***/ 490: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; diff --git a/wp-includes/js/dist/list-reusable-blocks.min.js b/wp-includes/js/dist/list-reusable-blocks.min.js index 6066578e78..81a9d6a05e 100644 --- a/wp-includes/js/dist/list-reusable-blocks.min.js +++ b/wp-includes/js/dist/list-reusable-blocks.min.js @@ -1,2 +1,2 @@ /*! This file is auto-generated */ -this.wp=this.wp||{},this.wp.listReusableBlocks=function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=476)}({0:function(t,e){!function(){t.exports=this.wp.element}()},1:function(t,e){!function(){t.exports=this.wp.i18n}()},10:function(t,e){!function(){t.exports=this.wp.compose}()},16:function(t,e,n){"use strict";function r(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}n.d(e,"a",(function(){return r}))},19:function(t,e,n){"use strict";function r(t){return(r=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}n.d(e,"a",(function(){return r}))},2:function(t,e){!function(){t.exports=this.lodash}()},20:function(t,e){!function(){t.exports=this.regeneratorRuntime}()},21:function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}n.d(e,"a",(function(){return r}))},22:function(t,e,n){"use strict";function r(t,e){for(var n=0;n");var e=document.querySelector(".wp-header-end");e&&e.parentNode.insertBefore(t,e)}}),e)}}))}}); \ No newline at end of file +this.wp=this.wp||{},this.wp.listReusableBlocks=function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=490)}({0:function(t,e){!function(){t.exports=this.wp.element}()},1:function(t,e){!function(){t.exports=this.wp.i18n}()},10:function(t,e){!function(){t.exports=this.wp.compose}()},16:function(t,e,n){"use strict";function r(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}n.d(e,"a",(function(){return r}))},19:function(t,e,n){"use strict";function r(t){return(r=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}n.d(e,"a",(function(){return r}))},2:function(t,e){!function(){t.exports=this.lodash}()},20:function(t,e){!function(){t.exports=this.regeneratorRuntime}()},21:function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}n.d(e,"a",(function(){return r}))},22:function(t,e,n){"use strict";function r(t,e){for(var n=0;n");var e=document.querySelector(".wp-header-end");e&&e.parentNode.insertBefore(t,e)}}),e)}}))}}); \ No newline at end of file diff --git a/wp-includes/js/dist/media-utils.js b/wp-includes/js/dist/media-utils.js index 5c485abb63..e5a1c7d8fd 100644 --- a/wp-includes/js/dist/media-utils.js +++ b/wp-includes/js/dist/media-utils.js @@ -82,7 +82,7 @@ this["wp"] = this["wp"] || {}; this["wp"]["mediaUtils"] = /******/ /******/ /******/ // Load entry module and return exports -/******/ return __webpack_require__(__webpack_require__.s = 480); +/******/ return __webpack_require__(__webpack_require__.s = 494); /******/ }) /************************************************************************/ /******/ ({ @@ -140,7 +140,7 @@ function _iterableToArrayLimit(arr, i) { return _arr; } // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js -var unsupportedIterableToArray = __webpack_require__(30); +var unsupportedIterableToArray = __webpack_require__(31); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/nonIterableRest.js var nonIterableRest = __webpack_require__(39); @@ -191,7 +191,7 @@ function _arrayWithoutHoles(arr) { var iterableToArray = __webpack_require__(37); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js -var unsupportedIterableToArray = __webpack_require__(30); +var unsupportedIterableToArray = __webpack_require__(31); // CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js function _nonIterableSpread() { @@ -344,7 +344,7 @@ function _arrayLikeToArray(arr, len) { /***/ }), -/***/ 30: +/***/ 31: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -475,7 +475,7 @@ function _asyncToGenerator(fn) { /***/ }), -/***/ 480: +/***/ 494: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; diff --git a/wp-includes/js/dist/media-utils.min.js b/wp-includes/js/dist/media-utils.min.js index 6cbeb85c4e..74aa940a4a 100644 --- a/wp-includes/js/dist/media-utils.min.js +++ b/wp-includes/js/dist/media-utils.min.js @@ -1,2 +1,2 @@ /*! This file is auto-generated */ -this.wp=this.wp||{},this.wp.mediaUtils=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=480)}({0:function(e,t){!function(){e.exports=this.wp.element}()},1:function(e,t){!function(){e.exports=this.wp.i18n}()},12:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(38);var i=n(30),o=n(39);function a(e,t){return Object(r.a)(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,i=!1,o=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==c.return||c.return()}finally{if(i)throw o}}return n}}(e,t)||Object(i.a)(e,t)||Object(o.a)()}},16:function(e,t,n){"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,"a",(function(){return r}))},17:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(27);var i=n(37),o=n(30);function a(e){return function(e){if(Array.isArray(e))return Object(r.a)(e)}(e)||Object(i.a)(e)||Object(o.a)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},19:function(e,t,n){"use strict";function r(e){return(r=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n.d(t,"a",(function(){return r}))},2:function(e,t){!function(){e.exports=this.lodash}()},20:function(e,t){!function(){e.exports=this.regeneratorRuntime}()},21:function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,"a",(function(){return r}))},22:function(e,t,n){"use strict";function r(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,c=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return a=e.done,e},e:function(e){c=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(c)throw o}}}}function P(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);na)){e.next=23;break}return S({code:"SIZE_ABOVE_LIMIT",message:Object(f.__)("This file exceeds the maximum upload size for this site."),file:P}),e.abrupt("continue",29);case 23:if(!(P.size<=0)){e.next=26;break}return S({code:"EMPTY_FILE",message:Object(f.__)("This file is empty."),file:P}),e.abrupt("continue",29);case 26:_.push(P),y.push({url:Object(E.createBlobURL)(P)}),p(y);case 29:e.next=12;break;case 31:e.next=36;break;case 33:e.prev=33,e.t0=e.catch(10),x.e(e.t0);case 36:return e.prev=36,x.f(),e.finish(36);case 39:M=0;case 40:if(!(M<_.length)){e.next=59;break}return F=_[M],e.prev=42,e.next=45,C(F,i);case 45:G=e.sent,U=k(k({},Object(u.omit)(G,["alt_text","source_url"])),{},{alt:G.alt_text,caption:Object(u.get)(G,["caption","raw"],""),title:G.title.raw,url:G.source_url}),h(M,U),e.next=56;break;case 50:e.prev=50,e.t1=e.catch(42),h(M,null),D=void 0,D=Object(u.has)(e.t1,["message"])?Object(u.get)(e.t1,["message"]):Object(f.sprintf)(Object(f.__)("Error while uploading file %s to the media library."),F.name),l({code:"GENERAL",message:D,file:F});case 56:++M,e.next=40;break;case 59:case"end":return e.stop()}}),e,null,[[10,33,36,39],[42,50]])})))).apply(this,arguments)}function C(e,t){var n=new window.FormData;return n.append("file",e,e.name||e.type.replace("/",".")),Object(u.forEach)(t,(function(e,t){return n.append(t,e)})),x()({path:"/wp/v2/media",body:n,method:"POST"})}},5:function(e,t,n){"use strict";function r(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,"a",(function(){return r}))}}); \ No newline at end of file +this.wp=this.wp||{},this.wp.mediaUtils=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=494)}({0:function(e,t){!function(){e.exports=this.wp.element}()},1:function(e,t){!function(){e.exports=this.wp.i18n}()},12:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(38);var i=n(31),o=n(39);function a(e,t){return Object(r.a)(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,i=!1,o=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==c.return||c.return()}finally{if(i)throw o}}return n}}(e,t)||Object(i.a)(e,t)||Object(o.a)()}},16:function(e,t,n){"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,"a",(function(){return r}))},17:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(27);var i=n(37),o=n(31);function a(e){return function(e){if(Array.isArray(e))return Object(r.a)(e)}(e)||Object(i.a)(e)||Object(o.a)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},19:function(e,t,n){"use strict";function r(e){return(r=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n.d(t,"a",(function(){return r}))},2:function(e,t){!function(){e.exports=this.lodash}()},20:function(e,t){!function(){e.exports=this.regeneratorRuntime}()},21:function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,"a",(function(){return r}))},22:function(e,t,n){"use strict";function r(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,c=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return a=e.done,e},e:function(e){c=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(c)throw o}}}}function P(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);na)){e.next=23;break}return S({code:"SIZE_ABOVE_LIMIT",message:Object(f.__)("This file exceeds the maximum upload size for this site."),file:P}),e.abrupt("continue",29);case 23:if(!(P.size<=0)){e.next=26;break}return S({code:"EMPTY_FILE",message:Object(f.__)("This file is empty."),file:P}),e.abrupt("continue",29);case 26:_.push(P),y.push({url:Object(E.createBlobURL)(P)}),p(y);case 29:e.next=12;break;case 31:e.next=36;break;case 33:e.prev=33,e.t0=e.catch(10),x.e(e.t0);case 36:return e.prev=36,x.f(),e.finish(36);case 39:M=0;case 40:if(!(M<_.length)){e.next=59;break}return F=_[M],e.prev=42,e.next=45,C(F,i);case 45:G=e.sent,U=k(k({},Object(u.omit)(G,["alt_text","source_url"])),{},{alt:G.alt_text,caption:Object(u.get)(G,["caption","raw"],""),title:G.title.raw,url:G.source_url}),h(M,U),e.next=56;break;case 50:e.prev=50,e.t1=e.catch(42),h(M,null),D=void 0,D=Object(u.has)(e.t1,["message"])?Object(u.get)(e.t1,["message"]):Object(f.sprintf)(Object(f.__)("Error while uploading file %s to the media library."),F.name),l({code:"GENERAL",message:D,file:F});case 56:++M,e.next=40;break;case 59:case"end":return e.stop()}}),e,null,[[10,33,36,39],[42,50]])})))).apply(this,arguments)}function C(e,t){var n=new window.FormData;return n.append("file",e,e.name||e.type.replace("/",".")),Object(u.forEach)(t,(function(e,t){return n.append(t,e)})),x()({path:"/wp/v2/media",body:n,method:"POST"})}},5:function(e,t,n){"use strict";function r(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,"a",(function(){return r}))}}); \ No newline at end of file diff --git a/wp-includes/js/dist/notices.js b/wp-includes/js/dist/notices.js index 9733bb3bb7..cdb32d3500 100644 --- a/wp-includes/js/dist/notices.js +++ b/wp-includes/js/dist/notices.js @@ -82,7 +82,7 @@ this["wp"] = this["wp"] || {}; this["wp"]["notices"] = /******/ /******/ /******/ // Load entry module and return exports -/******/ return __webpack_require__(__webpack_require__.s = 474); +/******/ return __webpack_require__(__webpack_require__.s = 488); /******/ }) /************************************************************************/ /******/ ({ @@ -107,7 +107,7 @@ function _arrayWithoutHoles(arr) { var iterableToArray = __webpack_require__(37); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js -var unsupportedIterableToArray = __webpack_require__(30); +var unsupportedIterableToArray = __webpack_require__(31); // CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js function _nonIterableSpread() { @@ -148,7 +148,7 @@ function _arrayLikeToArray(arr, len) { /***/ }), -/***/ 30: +/***/ 31: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -184,7 +184,7 @@ function _iterableToArray(iter) { /***/ }), -/***/ 474: +/***/ 488: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; diff --git a/wp-includes/js/dist/notices.min.js b/wp-includes/js/dist/notices.min.js index d6bc1bd815..85f1b736b0 100644 --- a/wp-includes/js/dist/notices.min.js +++ b/wp-includes/js/dist/notices.min.js @@ -1,2 +1,2 @@ /*! This file is auto-generated */ -this.wp=this.wp||{},this.wp.notices=function(t){var e={};function r(n){if(e[n])return e[n].exports;var o=e[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)r.d(n,o,function(e){return t[e]}.bind(null,o));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=474)}({17:function(t,e,r){"use strict";r.d(e,"a",(function(){return c}));var n=r(27);var o=r(37),i=r(30);function c(t){return function(t){if(Array.isArray(t))return Object(n.a)(t)}(t)||Object(o.a)(t)||Object(i.a)(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},2:function(t,e){!function(){t.exports=this.lodash}()},27:function(t,e,r){"use strict";function n(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0,o=n[t];if(void 0===o)return r;var i=e(r[o],n);return i===r[o]?r:s(s({},r),{},Object(a.a)({},o,i))}}}("context")((function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1?arguments[1]:void 0;switch(e.type){case"CREATE_NOTICE":return[].concat(Object(c.a)(Object(u.reject)(t,{id:e.notice.id})),[e.notice]);case"REMOVE_NOTICE":return Object(u.reject)(t,{id:e.id})}return t}));function d(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"info",e=arguments.length>1?arguments[1]:void 0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=r.speak,o=void 0===n||n,i=r.isDismissible,c=void 0===i||i,a=r.context,f=void 0===a?"global":a,s=r.id,l=void 0===s?Object(u.uniqueId)(f):s,d=r.actions,b=void 0===d?[]:d,p=r.type,v=void 0===p?"default":p,O=r.__unstableHTML;return{type:"CREATE_NOTICE",context:f,notice:{id:l,status:t,content:e=String(e),spokenMessage:o?e:null,__unstableHTML:O,isDismissible:c,actions:b,type:v}}}function b(t,e){return d("success",t,e)}function p(t,e){return d("info",t,e)}function v(t,e){return d("error",t,e)}function O(t,e){return d("warning",t,e)}function y(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"global";return{type:"REMOVE_NOTICE",id:t,context:e}}var g=[];function j(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"global";return t[e]||g}Object(i.registerStore)("core/notices",{reducer:l,actions:n,selectors:o})},5:function(t,e,r){"use strict";function n(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}r.d(e,"a",(function(){return n}))}}); \ No newline at end of file +this.wp=this.wp||{},this.wp.notices=function(t){var e={};function r(n){if(e[n])return e[n].exports;var o=e[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)r.d(n,o,function(e){return t[e]}.bind(null,o));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=488)}({17:function(t,e,r){"use strict";r.d(e,"a",(function(){return c}));var n=r(27);var o=r(37),i=r(31);function c(t){return function(t){if(Array.isArray(t))return Object(n.a)(t)}(t)||Object(o.a)(t)||Object(i.a)(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},2:function(t,e){!function(){t.exports=this.lodash}()},27:function(t,e,r){"use strict";function n(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0,o=n[t];if(void 0===o)return r;var i=e(r[o],n);return i===r[o]?r:s(s({},r),{},Object(a.a)({},o,i))}}}("context")((function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1?arguments[1]:void 0;switch(e.type){case"CREATE_NOTICE":return[].concat(Object(c.a)(Object(u.reject)(t,{id:e.notice.id})),[e.notice]);case"REMOVE_NOTICE":return Object(u.reject)(t,{id:e.id})}return t}));function d(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"info",e=arguments.length>1?arguments[1]:void 0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=r.speak,o=void 0===n||n,i=r.isDismissible,c=void 0===i||i,a=r.context,f=void 0===a?"global":a,s=r.id,l=void 0===s?Object(u.uniqueId)(f):s,d=r.actions,b=void 0===d?[]:d,p=r.type,v=void 0===p?"default":p,O=r.__unstableHTML;return{type:"CREATE_NOTICE",context:f,notice:{id:l,status:t,content:e=String(e),spokenMessage:o?e:null,__unstableHTML:O,isDismissible:c,actions:b,type:v}}}function b(t,e){return d("success",t,e)}function p(t,e){return d("info",t,e)}function v(t,e){return d("error",t,e)}function O(t,e){return d("warning",t,e)}function y(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"global";return{type:"REMOVE_NOTICE",id:t,context:e}}var g=[];function j(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"global";return t[e]||g}Object(i.registerStore)("core/notices",{reducer:l,actions:n,selectors:o})},5:function(t,e,r){"use strict";function n(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}r.d(e,"a",(function(){return n}))}}); \ No newline at end of file diff --git a/wp-includes/js/dist/nux.js b/wp-includes/js/dist/nux.js index 154d261f1b..c1d5a406ed 100644 --- a/wp-includes/js/dist/nux.js +++ b/wp-includes/js/dist/nux.js @@ -82,7 +82,7 @@ this["wp"] = this["wp"] || {}; this["wp"]["nux"] = /******/ /******/ /******/ // Load entry module and return exports -/******/ return __webpack_require__(__webpack_require__.s = 477); +/******/ return __webpack_require__(__webpack_require__.s = 491); /******/ }) /************************************************************************/ /******/ ({ @@ -147,7 +147,7 @@ function _iterableToArrayLimit(arr, i) { return _arr; } // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js -var unsupportedIterableToArray = __webpack_require__(30); +var unsupportedIterableToArray = __webpack_require__(31); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/nonIterableRest.js var nonIterableRest = __webpack_require__(39); @@ -208,7 +208,7 @@ function _arrayWithoutHoles(arr) { var iterableToArray = __webpack_require__(37); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js -var unsupportedIterableToArray = __webpack_require__(30); +var unsupportedIterableToArray = __webpack_require__(31); // CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js function _nonIterableSpread() { @@ -256,7 +256,7 @@ function _arrayLikeToArray(arr, len) { /***/ }), -/***/ 30: +/***/ 31: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -603,7 +603,7 @@ function isShallowEqual( a, b, fromIndex ) { /***/ }), -/***/ 477: +/***/ 491: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; diff --git a/wp-includes/js/dist/nux.min.js b/wp-includes/js/dist/nux.min.js index dfdfe35917..f09b43fa5f 100644 --- a/wp-includes/js/dist/nux.min.js +++ b/wp-includes/js/dist/nux.min.js @@ -1,2 +1,2 @@ /*! This file is auto-generated */ -this.wp=this.wp||{},this.wp.nux=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=477)}({0:function(e,t){!function(){e.exports=this.wp.element}()},1:function(e,t){!function(){e.exports=this.wp.i18n}()},10:function(e,t){!function(){e.exports=this.wp.compose}()},12:function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var r=n(38);var i=n(30),o=n(39);function u(e,t){return Object(r.a)(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,i=!1,o=void 0;try{for(var u,c=e[Symbol.iterator]();!(r=(u=c.next()).done)&&(n.push(u.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==c.return||c.return()}finally{if(i)throw o}}return n}}(e,t)||Object(i.a)(e,t)||Object(o.a)()}},160:function(e,t,n){"use strict";var r=n(0),i=n(7),o=Object(r.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.createElement)(i.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.a=o},17:function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var r=n(27);var i=n(37),o=n(30);function u(e){return function(e){if(Array.isArray(e))return Object(r.a)(e)}(e)||Object(i.a)(e)||Object(o.a)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},2:function(e,t){!function(){e.exports=this.lodash}()},27:function(e,t,n){"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0])||arguments[0],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"DISABLE_TIPS":return!1;case"ENABLE_TIPS":return!0}return e},dismissedTips:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"DISMISS_TIP":return l(l({},e),{},Object(a.a)({},t.id,!0));case"ENABLE_TIPS":return{}}return e}}),d=Object(c.combineReducers)({guides:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"TRIGGER_GUIDE":return[].concat(Object(s.a)(e),[t.tipIds])}return e},preferences:p});function b(e){return{type:"TRIGGER_GUIDE",tipIds:e}}function v(e){return{type:"DISMISS_TIP",id:e}}function y(){return{type:"DISABLE_TIPS"}}function h(){return{type:"ENABLE_TIPS"}}var O=n(12),m=n(42),j=n(2);function g(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return w(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return w(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,u=!0,c=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return u=e.done,e},e:function(e){c=!0,o=e},f:function(){try{u||null==n.return||n.return()}finally{if(c)throw o}}}}function w(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0])||arguments[0],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"DISABLE_TIPS":return!1;case"ENABLE_TIPS":return!0}return e},dismissedTips:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"DISMISS_TIP":return l(l({},e),{},Object(a.a)({},t.id,!0));case"ENABLE_TIPS":return{}}return e}}),d=Object(c.combineReducers)({guides:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"TRIGGER_GUIDE":return[].concat(Object(s.a)(e),[t.tipIds])}return e},preferences:p});function b(e){return{type:"TRIGGER_GUIDE",tipIds:e}}function v(e){return{type:"DISMISS_TIP",id:e}}function y(){return{type:"DISABLE_TIPS"}}function h(){return{type:"ENABLE_TIPS"}}var O=n(12),m=n(42),j=n(2);function g(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return w(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return w(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,u=!0,c=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return u=e.done,e},e:function(e){c=!0,o=e},f:function(){try{u||null==n.return||n.return()}finally{if(c)throw o}}}}function w(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}},43:function(e,t,r){"use strict";function n(e,t){if(null==e)return{};var r,n,u={},o=Object.keys(e);for(n=0;n=0||(u[r]=e[r]);return u}r.d(t,"a",(function(){return n}))},482:function(e,t,r){"use strict";r.r(t),r.d(t,"Circle",(function(){return l})),r.d(t,"G",(function(){return s})),r.d(t,"Path",(function(){return p})),r.d(t,"Polygon",(function(){return b})),r.d(t,"Rect",(function(){return d})),r.d(t,"Defs",(function(){return O})),r.d(t,"RadialGradient",(function(){return y})),r.d(t,"LinearGradient",(function(){return j})),r.d(t,"Stop",(function(){return v})),r.d(t,"SVG",(function(){return m})),r.d(t,"HorizontalRule",(function(){return g})),r.d(t,"BlockQuotation",(function(){return h})),r.d(t,"View",(function(){return P}));var n=r(5),u=r(14),o=r(9),c=r.n(o),i=r(0);function f(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function a(e){for(var t=1;t=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}},43:function(e,t,r){"use strict";function n(e,t){if(null==e)return{};var r,n,u={},o=Object.keys(e);for(n=0;n=0||(u[r]=e[r]);return u}r.d(t,"a",(function(){return n}))},496:function(e,t,r){"use strict";r.r(t),r.d(t,"Circle",(function(){return l})),r.d(t,"G",(function(){return s})),r.d(t,"Path",(function(){return p})),r.d(t,"Polygon",(function(){return b})),r.d(t,"Rect",(function(){return d})),r.d(t,"Defs",(function(){return O})),r.d(t,"RadialGradient",(function(){return y})),r.d(t,"LinearGradient",(function(){return j})),r.d(t,"Stop",(function(){return v})),r.d(t,"SVG",(function(){return m})),r.d(t,"HorizontalRule",(function(){return g})),r.d(t,"BlockQuotation",(function(){return h})),r.d(t,"View",(function(){return P}));var n=r(5),u=r(14),o=r(9),c=r.n(o),i=r(0);function f(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function a(e){for(var t=1;t0};do{if(0===e.length)return void(n=!1);var f=e.shift();t.get(f)(),t.delete(f)}while(i());r(u)};return{add:function(o,i){t.has(o)||e.push(o),t.set(o,i),n||(n=!0,r(u))},flush:function(n){if(!t.has(n))return!1;var r=e.indexOf(n);e.splice(r,1);var u=t.get(n);return t.delete(n),u(),!0},reset:function(){e=[],t=new WeakMap,n=!1}}}}}); \ No newline at end of file +this.wp=this.wp||{},this.wp.priorityQueue=function(e){var t={};function n(r){if(t[r])return t[r].exports;var u=t[r]={i:r,l:!1,exports:{}};return e[r].call(u.exports,u,u.exports,n),u.l=!0,u.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var u in e)n.d(r,u,function(t){return e[t]}.bind(null,u));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=500)}({500:function(e,t,n){"use strict";n.r(t),n.d(t,"createQueue",(function(){return u}));var r="undefined"==typeof window?function(e){setTimeout((function(){return e(Date.now())}),0)}:window.requestIdleCallback||window.requestAnimationFrame,u=function(){var e=[],t=new WeakMap,n=!1,u=function u(o){var i="number"==typeof o?function(){return!1}:function(){return o.timeRemaining()>0};do{if(0===e.length)return void(n=!1);var f=e.shift();t.get(f)(),t.delete(f)}while(i());r(u)};return{add:function(o,i){t.has(o)||e.push(o),t.set(o,i),n||(n=!0,r(u))},flush:function(n){if(!t.has(n))return!1;var r=e.indexOf(n);e.splice(r,1);var u=t.get(n);return t.delete(n),u(),!0},reset:function(){e=[],t=new WeakMap,n=!1}}}}}); \ No newline at end of file diff --git a/wp-includes/js/dist/redux-routine.js b/wp-includes/js/dist/redux-routine.js index 0cefc5f4d7..2a69fe710a 100644 --- a/wp-includes/js/dist/redux-routine.js +++ b/wp-includes/js/dist/redux-routine.js @@ -82,7 +82,7 @@ this["wp"] = this["wp"] || {}; this["wp"]["reduxRoutine"] = /******/ /******/ /******/ // Load entry module and return exports -/******/ return __webpack_require__(__webpack_require__.s = 483); +/******/ return __webpack_require__(__webpack_require__.s = 497); /******/ }) /************************************************************************/ /******/ ({ @@ -100,7 +100,7 @@ function isPromise(obj) { /***/ }), -/***/ 164: +/***/ 165: /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -337,7 +337,7 @@ exports.default = keys; /***/ }), -/***/ 293: +/***/ 294: /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -360,15 +360,15 @@ Object.keys(_helpers).forEach(function (key) { }); }); -var _create = __webpack_require__(444); +var _create = __webpack_require__(458); var _create2 = _interopRequireDefault(_create); -var _async = __webpack_require__(446); +var _async = __webpack_require__(460); var _async2 = _interopRequireDefault(_async); -var _wrap = __webpack_require__(448); +var _wrap = __webpack_require__(462); var _wrap2 = _interopRequireDefault(_wrap); @@ -380,7 +380,7 @@ exports.wrapControls = _wrap2.default; /***/ }), -/***/ 444: +/***/ 458: /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -390,11 +390,11 @@ Object.defineProperty(exports, "__esModule", { value: true }); -var _builtin = __webpack_require__(445); +var _builtin = __webpack_require__(459); var _builtin2 = _interopRequireDefault(_builtin); -var _is = __webpack_require__(164); +var _is = __webpack_require__(165); var _is2 = _interopRequireDefault(_is); @@ -466,7 +466,7 @@ exports.default = create; /***/ }), -/***/ 445: +/***/ 459: /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -477,7 +477,7 @@ Object.defineProperty(exports, "__esModule", { }); exports.iterator = exports.array = exports.object = exports.error = exports.any = undefined; -var _is = __webpack_require__(164); +var _is = __webpack_require__(165); var _is2 = _interopRequireDefault(_is); @@ -567,7 +567,7 @@ exports.default = [error, iterator, array, object, any]; /***/ }), -/***/ 446: +/***/ 460: /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -578,13 +578,13 @@ Object.defineProperty(exports, "__esModule", { }); exports.race = exports.join = exports.fork = exports.promise = undefined; -var _is = __webpack_require__(164); +var _is = __webpack_require__(165); var _is2 = _interopRequireDefault(_is); var _helpers = __webpack_require__(269); -var _dispatcher = __webpack_require__(447); +var _dispatcher = __webpack_require__(461); var _dispatcher2 = _interopRequireDefault(_dispatcher); @@ -689,7 +689,7 @@ exports.default = [promise, fork, join, race, subscribe]; /***/ }), -/***/ 447: +/***/ 461: /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -722,7 +722,7 @@ exports.default = createDispatcher; /***/ }), -/***/ 448: +/***/ 462: /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -733,7 +733,7 @@ Object.defineProperty(exports, "__esModule", { }); exports.cps = exports.call = undefined; -var _is = __webpack_require__(164); +var _is = __webpack_require__(165); var _is2 = _interopRequireDefault(_is); @@ -765,7 +765,7 @@ exports.default = [call, cps]; /***/ }), -/***/ 483: +/***/ 497: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -792,7 +792,7 @@ function isGenerator(object) { } // EXTERNAL MODULE: ./node_modules/rungen/dist/index.js -var dist = __webpack_require__(293); +var dist = __webpack_require__(294); // EXTERNAL MODULE: external {"this":"lodash"} var external_this_lodash_ = __webpack_require__(2); diff --git a/wp-includes/js/dist/redux-routine.min.js b/wp-includes/js/dist/redux-routine.min.js index 5e46931294..d2ecb59caf 100644 --- a/wp-includes/js/dist/redux-routine.min.js +++ b/wp-includes/js/dist/redux-routine.min.js @@ -1,2 +1,2 @@ /*! This file is auto-generated */ -this.wp=this.wp||{},this.wp.reduxRoutine=function(t){var r={};function e(n){if(r[n])return r[n].exports;var u=r[n]={i:n,l:!1,exports:{}};return t[n].call(u.exports,u,u.exports,e),u.l=!0,u.exports}return e.m=t,e.c=r,e.d=function(t,r,n){e.o(t,r)||Object.defineProperty(t,r,{enumerable:!0,get:n})},e.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},e.t=function(t,r){if(1&r&&(t=e(t)),8&r)return t;if(4&r&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(e.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&r&&"string"!=typeof t)for(var u in t)e.d(n,u,function(r){return t[r]}.bind(null,u));return n},e.n=function(t){var r=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(r,"a",r),r},e.o=function(t,r){return Object.prototype.hasOwnProperty.call(t,r)},e.p="",e(e.s=483)}({154:function(t,r){function e(t){return!!t&&("object"==typeof t||"function"==typeof t)&&"function"==typeof t.then}t.exports=e,t.exports.default=e},164:function(t,r,e){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n,u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol?"symbol":typeof t},o=e(270),c=(n=o)&&n.__esModule?n:{default:n};var f={obj:function(t){return"object"===(void 0===t?"undefined":u(t))&&!!t},all:function(t){return f.obj(t)&&t.type===c.default.all},error:function(t){return f.obj(t)&&t.type===c.default.error},array:Array.isArray,func:function(t){return"function"==typeof t},promise:function(t){return t&&f.func(t.then)},iterator:function(t){return t&&f.func(t.next)&&f.func(t.throw)},fork:function(t){return f.obj(t)&&t.type===c.default.fork},join:function(t){return f.obj(t)&&t.type===c.default.join},race:function(t){return f.obj(t)&&t.type===c.default.race},call:function(t){return f.obj(t)&&t.type===c.default.call},cps:function(t){return f.obj(t)&&t.type===c.default.cps},subscribe:function(t){return f.obj(t)&&t.type===c.default.subscribe},channel:function(t){return f.obj(t)&&f.func(t.subscribe)}};r.default=f},2:function(t,r){!function(){t.exports=this.lodash}()},269:function(t,r,e){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.createChannel=r.subscribe=r.cps=r.apply=r.call=r.invoke=r.delay=r.race=r.join=r.fork=r.error=r.all=void 0;var n,u=e(270),o=(n=u)&&n.__esModule?n:{default:n};r.all=function(t){return{type:o.default.all,value:t}},r.error=function(t){return{type:o.default.error,error:t}},r.fork=function(t){for(var r=arguments.length,e=Array(r>1?r-1:0),n=1;n1?r-1:0),n=1;n2?e-2:0),u=2;u1?r-1:0),n=1;n0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0,e=Object(o.map)(t,(function(t,r){return function(e,n,u,o,c){if(!a(e,r))return!1;var i=t(e);return f()(i)?i.then(o,c):o(i),!0}})),n=function(t,e){return!!i(t)&&(r(t),e(),!0)};e.push(n);var c=Object(u.create)(e);return function(t){return new Promise((function(e,n){return c(t,(function(t){i(t)&&r(t),e(t)}),n)}))}}function s(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(r){var e=l(t,r.dispatch);return function(t){return function(r){return n(r)?e(r):t(r)}}}}}}).default; \ No newline at end of file +this.wp=this.wp||{},this.wp.reduxRoutine=function(t){var r={};function e(n){if(r[n])return r[n].exports;var u=r[n]={i:n,l:!1,exports:{}};return t[n].call(u.exports,u,u.exports,e),u.l=!0,u.exports}return e.m=t,e.c=r,e.d=function(t,r,n){e.o(t,r)||Object.defineProperty(t,r,{enumerable:!0,get:n})},e.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},e.t=function(t,r){if(1&r&&(t=e(t)),8&r)return t;if(4&r&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(e.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&r&&"string"!=typeof t)for(var u in t)e.d(n,u,function(r){return t[r]}.bind(null,u));return n},e.n=function(t){var r=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(r,"a",r),r},e.o=function(t,r){return Object.prototype.hasOwnProperty.call(t,r)},e.p="",e(e.s=497)}({154:function(t,r){function e(t){return!!t&&("object"==typeof t||"function"==typeof t)&&"function"==typeof t.then}t.exports=e,t.exports.default=e},165:function(t,r,e){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n,u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol?"symbol":typeof t},o=e(270),c=(n=o)&&n.__esModule?n:{default:n};var f={obj:function(t){return"object"===(void 0===t?"undefined":u(t))&&!!t},all:function(t){return f.obj(t)&&t.type===c.default.all},error:function(t){return f.obj(t)&&t.type===c.default.error},array:Array.isArray,func:function(t){return"function"==typeof t},promise:function(t){return t&&f.func(t.then)},iterator:function(t){return t&&f.func(t.next)&&f.func(t.throw)},fork:function(t){return f.obj(t)&&t.type===c.default.fork},join:function(t){return f.obj(t)&&t.type===c.default.join},race:function(t){return f.obj(t)&&t.type===c.default.race},call:function(t){return f.obj(t)&&t.type===c.default.call},cps:function(t){return f.obj(t)&&t.type===c.default.cps},subscribe:function(t){return f.obj(t)&&t.type===c.default.subscribe},channel:function(t){return f.obj(t)&&f.func(t.subscribe)}};r.default=f},2:function(t,r){!function(){t.exports=this.lodash}()},269:function(t,r,e){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.createChannel=r.subscribe=r.cps=r.apply=r.call=r.invoke=r.delay=r.race=r.join=r.fork=r.error=r.all=void 0;var n,u=e(270),o=(n=u)&&n.__esModule?n:{default:n};r.all=function(t){return{type:o.default.all,value:t}},r.error=function(t){return{type:o.default.error,error:t}},r.fork=function(t){for(var r=arguments.length,e=Array(r>1?r-1:0),n=1;n1?r-1:0),n=1;n2?e-2:0),u=2;u1?r-1:0),n=1;n0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0,e=Object(o.map)(t,(function(t,r){return function(e,n,u,o,c){if(!a(e,r))return!1;var i=t(e);return f()(i)?i.then(o,c):o(i),!0}})),n=function(t,e){return!!i(t)&&(r(t),e(),!0)};e.push(n);var c=Object(u.create)(e);return function(t){return new Promise((function(e,n){return c(t,(function(t){i(t)&&r(t),e(t)}),n)}))}}function s(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(r){var e=l(t,r.dispatch);return function(t){return function(r){return n(r)?e(r):t(r)}}}}}}).default; \ No newline at end of file diff --git a/wp-includes/js/dist/reusable-blocks.js b/wp-includes/js/dist/reusable-blocks.js index 109f7b71cf..ac4f8387e1 100644 --- a/wp-includes/js/dist/reusable-blocks.js +++ b/wp-includes/js/dist/reusable-blocks.js @@ -82,7 +82,7 @@ this["wp"] = this["wp"] || {}; this["wp"]["reusableBlocks"] = /******/ /******/ /******/ // Load entry module and return exports -/******/ return __webpack_require__(__webpack_require__.s = 466); +/******/ return __webpack_require__(__webpack_require__.s = 480); /******/ }) /************************************************************************/ /******/ ({ @@ -172,7 +172,7 @@ function _asyncToGenerator(fn) { /***/ }), -/***/ 466: +/***/ 480: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -202,7 +202,7 @@ var external_this_wp_blockEditor_ = __webpack_require__(6); var external_this_wp_coreData_ = __webpack_require__(83); // EXTERNAL MODULE: external {"this":["wp","notices"]} -var external_this_wp_notices_ = __webpack_require__(92); +var external_this_wp_notices_ = __webpack_require__(94); // EXTERNAL MODULE: external {"this":["wp","data"]} var external_this_wp_data_ = __webpack_require__(4); @@ -874,7 +874,7 @@ function _defineProperty(obj, key, value) { /***/ }), -/***/ 92: +/***/ 94: /***/ (function(module, exports) { (function() { module.exports = this["wp"]["notices"]; }()); diff --git a/wp-includes/js/dist/reusable-blocks.min.js b/wp-includes/js/dist/reusable-blocks.min.js index 8d626e6d8c..8640b16132 100644 --- a/wp-includes/js/dist/reusable-blocks.min.js +++ b/wp-includes/js/dist/reusable-blocks.min.js @@ -1,2 +1,2 @@ /*! This file is auto-generated */ -this.wp=this.wp||{},this.wp.reusableBlocks=function(e){var t={};function n(r){if(t[r])return t[r].exports;var c=t[r]={i:r,l:!1,exports:{}};return e[r].call(c.exports,c,c.exports,n),c.l=!0,c.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var c in e)n.d(r,c,function(t){return e[t]}.bind(null,c));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=466)}({0:function(e,t){!function(){e.exports=this.wp.element}()},1:function(e,t){!function(){e.exports=this.wp.i18n}()},11:function(e,t){!function(){e.exports=this.wp.blocks}()},20:function(e,t){!function(){e.exports=this.regeneratorRuntime}()},3:function(e,t){!function(){e.exports=this.wp.components}()},4:function(e,t){!function(){e.exports=this.wp.data}()},45:function(e,t,n){"use strict";function r(e,t,n,r,c,o,i){try{var u=e[o](i),s=u.value}catch(e){return void n(e)}u.done?t(s):Promise.resolve(s).then(r,c)}function c(e){return function(){var t=this,n=arguments;return new Promise((function(c,o){var i=e.apply(t,n);function u(e){r(i,c,o,u,s,"next",e)}function s(e){r(i,c,o,u,s,"throw",e)}u(void 0)}))}}n.d(t,"a",(function(){return c}))},466:function(e,t,n){"use strict";n.r(t),n.d(t,"ReusableBlocksMenuItems",(function(){return P}));var r={};n.r(r),n.d(r,"__experimentalConvertBlockToStatic",(function(){return j})),n.d(r,"__experimentalConvertBlocksToReusable",(function(){return y})),n.d(r,"__experimentalDeleteReusableBlock",(function(){return m})),n.d(r,"__experimentalSetEditingReusableBlock",(function(){return h}));var c={};n.r(c),n.d(c,"__experimentalIsEditingReusableBlock",(function(){return x}));var o=n(6),i=(n(83),n(92),n(4)),u=n(20),s=n.n(u),a=n(45),l=n(11),p=n(1);function b(e){return{type:"CONVERT_BLOCK_TO_STATIC",clientId:e}}function f(e){return{type:"CONVERT_BLOCKS_TO_REUSABLE",clientIds:e}}function d(e){return{type:"DELETE_REUSABLE_BLOCK",id:e}}var O={CONVERT_BLOCK_TO_STATIC:Object(i.createRegistryControl)((function(e){return function(t){var n=t.clientId,r=e.select("core/block-editor").getBlock(n),c=e.select("core").getEditedEntityRecord("postType","wp_block",r.attributes.ref),o=Object(l.parse)(c.content);e.dispatch("core/block-editor").replaceBlocks(r.clientId,o)}})),CONVERT_BLOCKS_TO_REUSABLE:Object(i.createRegistryControl)((function(e){return function(){var t=Object(a.a)(s.a.mark((function t(n){var r,c,o,i;return s.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=n.clientIds,c={title:Object(p.__)("Untitled Reusable Block"),content:Object(l.serialize)(e.select("core/block-editor").getBlocksByClientId(r)),status:"publish"},t.next=4,e.dispatch("core").saveEntityRecord("postType","wp_block",c);case 4:o=t.sent,i=Object(l.createBlock)("core/block",{ref:o.id}),e.dispatch("core/block-editor").replaceBlocks(r,i),e.dispatch("core/reusable-blocks").__experimentalSetEditingReusableBlock(i.clientId,!0);case 8:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()})),DELETE_REUSABLE_BLOCK:Object(i.createRegistryControl)((function(e){return function(){var t=Object(a.a)(s.a.mark((function t(n){var r,c,o,i;return s.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=n.id,e.select("core").getEditedEntityRecord("postType","wp_block",r)){t.next=4;break}return t.abrupt("return");case 4:return c=e.select("core/block-editor").getBlocks(),o=c.filter((function(e){return Object(l.isReusableBlock)(e)&&e.attributes.ref===r})),(i=o.map((function(e){return e.clientId}))).length&&e.dispatch("core/block-editor").removeBlocks(i),t.next=10,e.dispatch("core").deleteEntityRecord("postType","wp_block",r);case 10:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()}))},k=s.a.mark(j),v=s.a.mark(y),_=s.a.mark(m);function j(e){return s.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,b(e);case 2:case"end":return t.stop()}}),k)}function y(e){return s.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,f(e);case 2:case"end":return t.stop()}}),v)}function m(e){return s.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,d(e);case 2:case"end":return t.stop()}}),_)}function h(e,t){return{type:"SET_EDITING_REUSABLE_BLOCK",clientId:e,isEditing:t}}var E=n(5);function w(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function B(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return"SET_EDITING_REUSABLE_BLOCK"===(null==t?void 0:t.type)?B(B({},e),{},Object(E.a)({},t.clientId,t.isEditing)):e}});function x(e,t){return e.isEditingReusableBlock[t]}var R="core/reusable-blocks",C=(Object(i.registerStore)(R,{actions:r,controls:O,reducer:g,selectors:c}),n(0)),I=n(3),S=n(7),T=Object(C.createElement)(S.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(C.createElement)(S.Path,{d:"M7 7.2h8.2L13.5 9l1.1 1.1 3.6-3.6-3.5-4-1.1 1 1.9 2.3H7c-.9 0-1.7.3-2.3.9-1.4 1.5-1.4 4.2-1.4 5.6v.2h1.5v-.3c0-1.1 0-3.5 1-4.5.3-.3.7-.5 1.2-.5zm13.8 4V11h-1.5v.3c0 1.1 0 3.5-1 4.5-.3.3-.7.5-1.3.5H8.8l1.7-1.7-1.1-1.1L5.9 17l3.5 4 1.1-1-1.9-2.3H17c.9 0 1.7-.3 2.3-.9 1.5-1.4 1.5-4.2 1.5-5.6z"}));function L(e){var t=e.clientIds,n=e.rootClientId,r=Object(i.useSelect)((function(e){var r,c=e("core").canUser,o=e("core/block-editor"),i=o.getBlocksByClientId,u=o.canInsertBlockType,s=null!==(r=i(t))&&void 0!==r?r:[];return!(1===s.length&&s[0]&&Object(l.isReusableBlock)(s[0])&&!!e("core").getEntityRecord("postType","wp_block",s[0].attributes.ref))&&u("core/block",n)&&s.every((function(e){return!!e&&e.isValid&&Object(l.hasBlockSupport)(e.name,"reusable",!0)}))&&!!c("create","blocks")}),[t]),c=Object(i.useDispatch)(R).__experimentalConvertBlocksToReusable,u=Object(i.useDispatch)("core/notices"),b=u.createSuccessNotice,f=u.createErrorNotice,d=Object(C.useCallback)(Object(a.a)(s.a.mark((function e(){return s.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,c(t);case 3:b(Object(p.__)("Block created."),{type:"snackbar"}),e.next=9;break;case 6:e.prev=6,e.t0=e.catch(0),f(e.t0.message,{type:"snackbar"});case 9:case"end":return e.stop()}}),e,null,[[0,6]])}))),[t]);return r?Object(C.createElement)(o.BlockSettingsMenuControls,null,(function(e){var t=e.onClose;return Object(C.createElement)(I.MenuItem,{icon:T,onClick:function(){d(),t()}},Object(p.__)("Add to Reusable blocks"))})):null}var D=function(e){var t=e.clientId,n=Object(i.useSelect)((function(e){var n=e("core/block-editor").getBlock,r=e("core").canUser,c=n(t),o=c&&Object(l.isReusableBlock)(c)?e("core").getEntityRecord("postType","wp_block",c.attributes.ref):null;return{block:c,isVisible:!!o&&(o.isTemporary||!!r("delete","blocks",o.id)),isDisabled:o&&o.isTemporary}}),[t]),r=n.isVisible,c=n.isDisabled,u=n.block,b=Object(i.useDispatch)(R).__experimentalDeleteReusableBlock,f=Object(i.useDispatch)("core/notices"),d=f.createSuccessNotice,O=f.createErrorNotice,k=Object(C.useCallback)(Object(a.a)(s.a.mark((function e(){return s.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,b(u.attributes.ref);case 3:d(Object(p.__)("Block deleted."),{type:"snackbar"}),e.next=9;break;case 6:e.prev=6,e.t0=e.catch(0),O(e.t0.message,{type:"snackbar"});case 9:case"end":return e.stop()}}),e,null,[[0,6]])}))),[u]);return r?Object(C.createElement)(o.BlockSettingsMenuControls,null,(function(e){var t=e.onClose;return Object(C.createElement)(I.MenuItem,{disabled:c,onClick:function(){window.confirm(Object(p.__)("Are you sure you want to delete this Reusable Block?\n\nIt will be permanently removed from all posts and pages that use it."))&&(k(),t())}},Object(p.__)("Remove from Reusable blocks"))})):null};var P=Object(i.withSelect)((function(e){return{clientIds:(0,e("core/block-editor").getSelectedBlockClientIds)()}}))((function(e){var t=e.clientIds,n=e.rootClientId;return Object(C.createElement)(C.Fragment,null,Object(C.createElement)(L,{clientIds:t,rootClientId:n}),1===t.length&&Object(C.createElement)(D,{clientId:t[0]}))}))},5:function(e,t,n){"use strict";function r(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,"a",(function(){return r}))},6:function(e,t){!function(){e.exports=this.wp.blockEditor}()},7:function(e,t){!function(){e.exports=this.wp.primitives}()},83:function(e,t){!function(){e.exports=this.wp.coreData}()},92:function(e,t){!function(){e.exports=this.wp.notices}()}}); \ No newline at end of file +this.wp=this.wp||{},this.wp.reusableBlocks=function(e){var t={};function n(r){if(t[r])return t[r].exports;var c=t[r]={i:r,l:!1,exports:{}};return e[r].call(c.exports,c,c.exports,n),c.l=!0,c.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var c in e)n.d(r,c,function(t){return e[t]}.bind(null,c));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=480)}({0:function(e,t){!function(){e.exports=this.wp.element}()},1:function(e,t){!function(){e.exports=this.wp.i18n}()},11:function(e,t){!function(){e.exports=this.wp.blocks}()},20:function(e,t){!function(){e.exports=this.regeneratorRuntime}()},3:function(e,t){!function(){e.exports=this.wp.components}()},4:function(e,t){!function(){e.exports=this.wp.data}()},45:function(e,t,n){"use strict";function r(e,t,n,r,c,o,i){try{var u=e[o](i),s=u.value}catch(e){return void n(e)}u.done?t(s):Promise.resolve(s).then(r,c)}function c(e){return function(){var t=this,n=arguments;return new Promise((function(c,o){var i=e.apply(t,n);function u(e){r(i,c,o,u,s,"next",e)}function s(e){r(i,c,o,u,s,"throw",e)}u(void 0)}))}}n.d(t,"a",(function(){return c}))},480:function(e,t,n){"use strict";n.r(t),n.d(t,"ReusableBlocksMenuItems",(function(){return P}));var r={};n.r(r),n.d(r,"__experimentalConvertBlockToStatic",(function(){return j})),n.d(r,"__experimentalConvertBlocksToReusable",(function(){return y})),n.d(r,"__experimentalDeleteReusableBlock",(function(){return m})),n.d(r,"__experimentalSetEditingReusableBlock",(function(){return h}));var c={};n.r(c),n.d(c,"__experimentalIsEditingReusableBlock",(function(){return x}));var o=n(6),i=(n(83),n(94),n(4)),u=n(20),s=n.n(u),a=n(45),l=n(11),p=n(1);function b(e){return{type:"CONVERT_BLOCK_TO_STATIC",clientId:e}}function f(e){return{type:"CONVERT_BLOCKS_TO_REUSABLE",clientIds:e}}function d(e){return{type:"DELETE_REUSABLE_BLOCK",id:e}}var O={CONVERT_BLOCK_TO_STATIC:Object(i.createRegistryControl)((function(e){return function(t){var n=t.clientId,r=e.select("core/block-editor").getBlock(n),c=e.select("core").getEditedEntityRecord("postType","wp_block",r.attributes.ref),o=Object(l.parse)(c.content);e.dispatch("core/block-editor").replaceBlocks(r.clientId,o)}})),CONVERT_BLOCKS_TO_REUSABLE:Object(i.createRegistryControl)((function(e){return function(){var t=Object(a.a)(s.a.mark((function t(n){var r,c,o,i;return s.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=n.clientIds,c={title:Object(p.__)("Untitled Reusable Block"),content:Object(l.serialize)(e.select("core/block-editor").getBlocksByClientId(r)),status:"publish"},t.next=4,e.dispatch("core").saveEntityRecord("postType","wp_block",c);case 4:o=t.sent,i=Object(l.createBlock)("core/block",{ref:o.id}),e.dispatch("core/block-editor").replaceBlocks(r,i),e.dispatch("core/reusable-blocks").__experimentalSetEditingReusableBlock(i.clientId,!0);case 8:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()})),DELETE_REUSABLE_BLOCK:Object(i.createRegistryControl)((function(e){return function(){var t=Object(a.a)(s.a.mark((function t(n){var r,c,o,i;return s.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=n.id,e.select("core").getEditedEntityRecord("postType","wp_block",r)){t.next=4;break}return t.abrupt("return");case 4:return c=e.select("core/block-editor").getBlocks(),o=c.filter((function(e){return Object(l.isReusableBlock)(e)&&e.attributes.ref===r})),(i=o.map((function(e){return e.clientId}))).length&&e.dispatch("core/block-editor").removeBlocks(i),t.next=10,e.dispatch("core").deleteEntityRecord("postType","wp_block",r);case 10:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()}))},k=s.a.mark(j),v=s.a.mark(y),_=s.a.mark(m);function j(e){return s.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,b(e);case 2:case"end":return t.stop()}}),k)}function y(e){return s.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,f(e);case 2:case"end":return t.stop()}}),v)}function m(e){return s.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,d(e);case 2:case"end":return t.stop()}}),_)}function h(e,t){return{type:"SET_EDITING_REUSABLE_BLOCK",clientId:e,isEditing:t}}var E=n(5);function w(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function B(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return"SET_EDITING_REUSABLE_BLOCK"===(null==t?void 0:t.type)?B(B({},e),{},Object(E.a)({},t.clientId,t.isEditing)):e}});function x(e,t){return e.isEditingReusableBlock[t]}var R="core/reusable-blocks",C=(Object(i.registerStore)(R,{actions:r,controls:O,reducer:g,selectors:c}),n(0)),I=n(3),S=n(7),T=Object(C.createElement)(S.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(C.createElement)(S.Path,{d:"M7 7.2h8.2L13.5 9l1.1 1.1 3.6-3.6-3.5-4-1.1 1 1.9 2.3H7c-.9 0-1.7.3-2.3.9-1.4 1.5-1.4 4.2-1.4 5.6v.2h1.5v-.3c0-1.1 0-3.5 1-4.5.3-.3.7-.5 1.2-.5zm13.8 4V11h-1.5v.3c0 1.1 0 3.5-1 4.5-.3.3-.7.5-1.3.5H8.8l1.7-1.7-1.1-1.1L5.9 17l3.5 4 1.1-1-1.9-2.3H17c.9 0 1.7-.3 2.3-.9 1.5-1.4 1.5-4.2 1.5-5.6z"}));function L(e){var t=e.clientIds,n=e.rootClientId,r=Object(i.useSelect)((function(e){var r,c=e("core").canUser,o=e("core/block-editor"),i=o.getBlocksByClientId,u=o.canInsertBlockType,s=null!==(r=i(t))&&void 0!==r?r:[];return!(1===s.length&&s[0]&&Object(l.isReusableBlock)(s[0])&&!!e("core").getEntityRecord("postType","wp_block",s[0].attributes.ref))&&u("core/block",n)&&s.every((function(e){return!!e&&e.isValid&&Object(l.hasBlockSupport)(e.name,"reusable",!0)}))&&!!c("create","blocks")}),[t]),c=Object(i.useDispatch)(R).__experimentalConvertBlocksToReusable,u=Object(i.useDispatch)("core/notices"),b=u.createSuccessNotice,f=u.createErrorNotice,d=Object(C.useCallback)(Object(a.a)(s.a.mark((function e(){return s.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,c(t);case 3:b(Object(p.__)("Block created."),{type:"snackbar"}),e.next=9;break;case 6:e.prev=6,e.t0=e.catch(0),f(e.t0.message,{type:"snackbar"});case 9:case"end":return e.stop()}}),e,null,[[0,6]])}))),[t]);return r?Object(C.createElement)(o.BlockSettingsMenuControls,null,(function(e){var t=e.onClose;return Object(C.createElement)(I.MenuItem,{icon:T,onClick:function(){d(),t()}},Object(p.__)("Add to Reusable blocks"))})):null}var D=function(e){var t=e.clientId,n=Object(i.useSelect)((function(e){var n=e("core/block-editor").getBlock,r=e("core").canUser,c=n(t),o=c&&Object(l.isReusableBlock)(c)?e("core").getEntityRecord("postType","wp_block",c.attributes.ref):null;return{block:c,isVisible:!!o&&(o.isTemporary||!!r("delete","blocks",o.id)),isDisabled:o&&o.isTemporary}}),[t]),r=n.isVisible,c=n.isDisabled,u=n.block,b=Object(i.useDispatch)(R).__experimentalDeleteReusableBlock,f=Object(i.useDispatch)("core/notices"),d=f.createSuccessNotice,O=f.createErrorNotice,k=Object(C.useCallback)(Object(a.a)(s.a.mark((function e(){return s.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,b(u.attributes.ref);case 3:d(Object(p.__)("Block deleted."),{type:"snackbar"}),e.next=9;break;case 6:e.prev=6,e.t0=e.catch(0),O(e.t0.message,{type:"snackbar"});case 9:case"end":return e.stop()}}),e,null,[[0,6]])}))),[u]);return r?Object(C.createElement)(o.BlockSettingsMenuControls,null,(function(e){var t=e.onClose;return Object(C.createElement)(I.MenuItem,{disabled:c,onClick:function(){window.confirm(Object(p.__)("Are you sure you want to delete this Reusable Block?\n\nIt will be permanently removed from all posts and pages that use it."))&&(k(),t())}},Object(p.__)("Remove from Reusable blocks"))})):null};var P=Object(i.withSelect)((function(e){return{clientIds:(0,e("core/block-editor").getSelectedBlockClientIds)()}}))((function(e){var t=e.clientIds,n=e.rootClientId;return Object(C.createElement)(C.Fragment,null,Object(C.createElement)(L,{clientIds:t,rootClientId:n}),1===t.length&&Object(C.createElement)(D,{clientId:t[0]}))}))},5:function(e,t,n){"use strict";function r(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,"a",(function(){return r}))},6:function(e,t){!function(){e.exports=this.wp.blockEditor}()},7:function(e,t){!function(){e.exports=this.wp.primitives}()},83:function(e,t){!function(){e.exports=this.wp.coreData}()},94:function(e,t){!function(){e.exports=this.wp.notices}()}}); \ No newline at end of file diff --git a/wp-includes/js/dist/rich-text.js b/wp-includes/js/dist/rich-text.js index 0f6dd5e51e..d539f5ec69 100644 --- a/wp-includes/js/dist/rich-text.js +++ b/wp-includes/js/dist/rich-text.js @@ -82,7 +82,7 @@ this["wp"] = this["wp"] || {}; this["wp"]["richText"] = /******/ /******/ /******/ // Load entry module and return exports -/******/ return __webpack_require__(__webpack_require__.s = 458); +/******/ return __webpack_require__(__webpack_require__.s = 472); /******/ }) /************************************************************************/ /******/ ({ @@ -94,7 +94,7 @@ this["wp"] = this["wp"] || {}; this["wp"]["richText"] = /***/ }), -/***/ 107: +/***/ 109: /***/ (function(module, exports) { (function() { module.exports = this["wp"]["escapeHtml"]; }()); @@ -140,7 +140,7 @@ function _iterableToArrayLimit(arr, i) { return _arr; } // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js -var unsupportedIterableToArray = __webpack_require__(30); +var unsupportedIterableToArray = __webpack_require__(31); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/nonIterableRest.js var nonIterableRest = __webpack_require__(39); @@ -176,7 +176,7 @@ function _arrayWithoutHoles(arr) { var iterableToArray = __webpack_require__(37); // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js -var unsupportedIterableToArray = __webpack_require__(30); +var unsupportedIterableToArray = __webpack_require__(31); // CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js function _nonIterableSpread() { @@ -224,7 +224,7 @@ function _arrayLikeToArray(arr, len) { /***/ }), -/***/ 30: +/***/ 31: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -594,7 +594,7 @@ function isShallowEqual( a, b, fromIndex ) { /***/ }), -/***/ 458: +/***/ 472: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -3282,7 +3282,7 @@ function applySelection(_ref6, current) { } // EXTERNAL MODULE: external {"this":["wp","escapeHtml"]} -var external_this_wp_escapeHtml_ = __webpack_require__(107); +var external_this_wp_escapeHtml_ = __webpack_require__(109); // CONCATENATED MODULE: ./node_modules/@wordpress/rich-text/build-module/to-html-string.js /** diff --git a/wp-includes/js/dist/rich-text.min.js b/wp-includes/js/dist/rich-text.min.js index 9e8110115f..383282916b 100644 --- a/wp-includes/js/dist/rich-text.min.js +++ b/wp-includes/js/dist/rich-text.min.js @@ -1,2 +1,2 @@ /*! This file is auto-generated */ -this.wp=this.wp||{},this.wp.richText=function(e){var t={};function r(n){if(t[n])return t[n].exports;var a=t[n]={i:n,l:!1,exports:{}};return e[n].call(a.exports,a,a.exports,r),a.l=!0,a.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)r.d(n,a,function(t){return e[t]}.bind(null,a));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=458)}({0:function(e,t){!function(){e.exports=this.wp.element}()},107:function(e,t){!function(){e.exports=this.wp.escapeHtml}()},12:function(e,t,r){"use strict";r.d(t,"a",(function(){return i}));var n=r(38);var a=r(30),o=r(39);function i(e,t){return Object(n.a)(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var r=[],n=!0,a=!1,o=void 0;try{for(var i,c=e[Symbol.iterator]();!(n=(i=c.next()).done)&&(r.push(i.value),!t||r.length!==t);n=!0);}catch(e){a=!0,o=e}finally{try{n||null==c.return||c.return()}finally{if(a)throw o}}return r}}(e,t)||Object(a.a)(e,t)||Object(o.a)()}},17:function(e,t,r){"use strict";r.d(t,"a",(function(){return i}));var n=r(27);var a=r(37),o=r(30);function i(e){return function(e){if(Array.isArray(e))return Object(n.a)(e)}(e)||Object(a.a)(e)||Object(o.a)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},18:function(e,t){!function(){e.exports=this.wp.keycodes}()},2:function(e,t){!function(){e.exports=this.lodash}()},27:function(e,t,r){"use strict";function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"ADD_FORMAT_TYPES":return s(s({},e),Object(c.keyBy)(t.formatTypes,"name"));case"REMOVE_FORMAT_TYPES":return Object(c.omit)(e,t.names)}return e}}),f=r(42),p=Object(f.a)((function(e){return Object.values(e.formatTypes)}),(function(e){return[e.formatTypes]}));function d(e,t){return e.formatTypes[t]}function b(e,t){return Object(c.find)(p(e),(function(e){var r=e.className,n=e.tagName;return null===r&&t===n}))}function m(e,t){return Object(c.find)(p(e),(function(e){var r=e.className;return null!==r&&" ".concat(t," ").indexOf(" ".concat(r," "))>=0}))}function v(e){return{type:"ADD_FORMAT_TYPES",formatTypes:Object(c.castArray)(e)}}function g(e){return{type:"REMOVE_FORMAT_TYPES",names:Object(c.castArray)(e)}}Object(o.registerStore)("core/rich-text",{reducer:l,selectors:n,actions:a});var h=r(17);function O(e,t){if(e===t)return!0;if(!e||!t)return!1;if(e.type!==t.type)return!1;var r=e.attributes,n=t.attributes;if(r===n)return!0;if(!r||!n)return!1;var a=Object.keys(r),o=Object.keys(n);if(a.length!==o.length)return!1;for(var i=a.length,c=0;c2&&void 0!==arguments[2]?arguments[2]:e.start,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e.end,a=e.formats,o=e.activeFormats,i=a.slice();if(r===n){var u=Object(c.find)(i[r],{type:t.type});if(u){for(var s=i[r].indexOf(u);i[r]&&i[r][s]===u;)i[r]=E(i[r],s,t),r--;for(n++;i[n]&&i[n][s]===u;)i[n]=E(i[n],s,t),n++}}else{for(var l=1/0,f=r;f0&&void 0!==arguments[0]?arguments[0]:{},t=e.element,r=e.text,n=e.html,a=e.range,o=e.multilineTag,i=e.multilineWrapperTags,c=e.__unstableIsEditableTree,u=e.preserveWhiteSpace;return"string"==typeof r&&r.length>0?{formats:Array(r.length),replacements:Array(r.length),text:r}:("string"==typeof n&&n.length>0&&(t=D(document,n)),"object"!==Object(_.a)(t)?{formats:[],replacements:[],text:""}:o?W({element:t,range:a,multilineTag:o,multilineWrapperTags:i,isEditableTree:c,preserveWhiteSpace:u}):R({element:t,range:a,isEditableTree:c,preserveWhiteSpace:u}))}function I(e,t,r,n){if(r){var a=t.parentNode,o=r.startContainer,i=r.startOffset,c=r.endContainer,u=r.endOffset,s=e.text.length;void 0!==n.start?e.start=s+n.start:t===o&&t.nodeType===t.TEXT_NODE?e.start=s+i:a===o&&t===o.childNodes[i]?e.start=s:a===o&&t===o.childNodes[i-1]?e.start=s+n.text.length:t===o&&(e.start=s),void 0!==n.end?e.end=s+n.end:t===c&&t.nodeType===t.TEXT_NODE?e.end=s+u:a===c&&t===c.childNodes[u-1]?e.end=s+n.text.length:a===c&&t===c.childNodes[u]?e.end=s:t===c&&(e.end=s+u)}}var k=new RegExp("\ufeff","g");function L(e){return e.replace(k,"")}function R(e){var t=e.element,r=e.range,n=e.multilineTag,a=e.multilineWrapperTags,i=e.currentWrapperTags,c=void 0===i?[]:i,u=e.isEditableTree,s=e.preserveWhiteSpace,l={formats:[],replacements:[],text:""};if(!t)return l;if(!t.hasChildNodes())return I(l,t,r,{formats:[],replacements:[],text:""}),l;for(var f=t.childNodes.length,p=function(e){var i=t.childNodes[e],f=i.nodeName.toLowerCase();if(i.nodeType===i.TEXT_NODE){var p=L;s||(p=function(e){return L(function(e){return e.replace(/[\n\r\t]+/g," ")}(e))});var d=p(i.nodeValue);return r=function(e,t,r){if(t){var n=t.startContainer,a=t.endContainer,o=t.startOffset,i=t.endOffset;return e===n&&(o=r(e.nodeValue.slice(0,o)).length),e===a&&(i=r(e.nodeValue.slice(0,i)).length),{startContainer:n,startOffset:o,endContainer:a,endOffset:i}}}(i,r,p),I(l,i,r,{text:d}),l.formats.length+=d.length,l.replacements.length+=d.length,l.text+=d,"continue"}if(i.nodeType!==i.ELEMENT_NODE)return"continue";if(u&&(i.getAttribute("data-rich-text-placeholder")||"br"===f&&!i.getAttribute("data-rich-text-line-break")))return I(l,i,r,{formats:[],replacements:[],text:""}),"continue";if("br"===f)return I(l,i,r,{formats:[],replacements:[],text:""}),H(l,N({text:"\n"})),"continue";var b=l.formats[l.formats.length-1],m=b&&b[b.length-1],v=function(e){var t,r=e.type,n=e.attributes;if(n&&n.class&&(t=Object(o.select)("core/rich-text").getFormatTypeForClassName(n.class))&&(n.class=" ".concat(n.class," ").replace(" ".concat(t.className," ")," ").trim(),n.class||delete n.class),t||(t=Object(o.select)("core/rich-text").getFormatTypeForBareElement(r)),!t)return n?{type:r,attributes:n}:{type:r};if(t.__experimentalCreatePrepareEditableTree&&!t.__experimentalCreateOnChangeEditableValue)return null;if(!n)return{type:t.name};var a={},i={};for(var c in n){var u=A(t.attributes,c);u?a[u]=n[c]:i[c]=n[c]}return{type:t.name,attributes:a,unregisteredAttributes:i}}({type:f,attributes:M({element:i})}),g=O(v,m)?m:v;if(a&&-1!==a.indexOf(f)){var y=W({element:i,range:r,multilineTag:n,multilineWrapperTags:a,currentWrapperTags:[].concat(Object(h.a)(c),[g]),isEditableTree:u,preserveWhiteSpace:s});return I(l,i,r,y),H(l,y),"continue"}var j=R({element:i,range:r,multilineTag:n,multilineWrapperTags:a,isEditableTree:u,preserveWhiteSpace:s});if(I(l,i,r,j),g)if(0===j.text.length)g.attributes&&H(l,{formats:[,],replacements:[g],text:""});else{function w(e){if(w.formats===e)return w.newFormats;var t=e?[g].concat(Object(h.a)(e)):[g];return w.formats=e,w.newFormats=t,t}w.newFormats=[g],H(l,C(C({},j),{},{formats:Array.from(j.formats,w)}))}else H(l,j)},d=0;d0)&&H(s,{formats:[,],replacements:i.length>0?[i]:[,],text:S}),I(s,p,r,d),H(s,d)}}return s}function M(e){var t=e.element;if(t.hasAttributes()){for(var r,n=t.attributes.length,a=0;a1&&void 0!==arguments[1]?arguments[1]:[];if(void 0===r)return o;if(r===n){if(a)return a;var i=t[r-1]||o,c=t[r]||o;return i.length1&&void 0!==arguments[1]?arguments[1]:t,a=n;a--;)if(r[a]===S)return a}function q(e){var t=e.replacements[G(e,e.start)];return!t||t.length<1}function X(e,t,r){var n=e.replacements[G(e,e.start)];return n&&0!==n.length?n[n.length-1].type===t:t===r}function Y(e){var t=e.start,r=e.end;if(void 0!==t&&void 0!==r)return t===r}function $(e){return 0===e.text.length}function Z(e){var t=e.text,r=e.start,n=e.end;return r===n&&(0===t.length||(0===r&&t.slice(0,1)===S||(r===t.length&&t.slice(-1)===S||t.slice(r-1,n+1)==="".concat(S).concat(S))))}function J(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return"string"==typeof t&&(t=N({text:t})),w(e.reduce((function(e,r){var n=r.formats,a=r.replacements,o=r.text;return{formats:e.formats.concat(t.formats,n),replacements:e.replacements.concat(t.replacements,a),text:e.text+t.text+o}})))}function Q(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ee(e,t){if("string"==typeof(t=function(e){for(var t=1;t3)window.console.error('The format "'+t.name+'" can have a maximum of 3 keywords.');else{if("string"==typeof t.title)return Object(o.dispatch)("core/rich-text").addFormatTypes(t),t;window.console.error("Format titles must be strings.")}else window.console.error('The format "'+t.name+'" must have a title.')}else window.console.error("A class name must begin with a letter, followed by any number of hyphens, letters, or numbers.");else window.console.error("Format class names must be a string, or null to handle bare elements.");else window.console.error("Format tag names must be a string.");else window.console.error("Format names must contain a namespace prefix, include only lowercase alphanumeric characters or dashes, and start with a letter. Example: my-plugin/my-custom-format");else window.console.error("Format names must be strings.")}function te(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function re(e){for(var t=1;t2&&void 0!==arguments[2]?arguments[2]:e.start,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e.end,a=e.formats,o=e.activeFormats,i=a.slice();if(r===n){var u=Object(c.find)(i[r],{type:t});if(u){for(;Object(c.find)(i[r],u);)ae(i,r,t),r--;for(n++;Object(c.find)(i[n],u);)ae(i,n,t),n++}}else for(var s=r;s2&&void 0!==arguments[2]?arguments[2]:e.start,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e.end,a=e.formats,o=e.replacements,i=e.text;"string"==typeof t&&(t=N({text:t}));var c=r+t.text.length;return w({formats:a.slice(0,r).concat(t.formats,a.slice(n)),replacements:o.slice(0,r).concat(t.replacements,o.slice(n)),text:i.slice(0,r)+t.text+i.slice(n),start:c,end:c})}function ie(e,t,r){return oe(e,N(),t,r)}function ce(e,t,r){var n=e.formats,a=e.replacements,o=e.text,i=e.start,c=e.end;return o=o.replace(t,(function(e){for(var t=arguments.length,o=new Array(t>1?t-1:0),u=1;u1&&void 0!==arguments[1]?arguments[1]:e.start,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.end,n=U(e).slice(0,t),a=n.lastIndexOf(S),o=e.replacements[a],i=[,];o&&(i=[o]);var c={formats:[,],replacements:i,text:S};return oe(e,c,t,r)}function se(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function le(e){for(var t=1;t1&&void 0!==arguments[1])||arguments[1],r=e.replacements,n=e.text,a=e.start,o=e.end,i=Y(e),c=a-1,u=i?a-1:a,s=o;if(t||(c=o,u=a,s=i?o+1:o),n[c]===S){var l;if(i&&r[c]&&r[c].length){var f=r.slice();f[c]=r[c].slice(0,-1),l=le(le({},e),{},{replacements:f})}else l=ie(e,u,s);return l}}function pe(e,t,r,n){return oe(e,{formats:[,],replacements:[t],text:""},r,n)}function de(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function be(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:e.start,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.end,n=e.formats,a=e.replacements,o=e.text;return void 0===t||void 0===r?be({},e):{formats:n.slice(t,r),replacements:a.slice(t,r),text:o.slice(t,r)}}function ve(e,t){var r=e.formats,n=e.replacements,a=e.text,o=e.start,i=e.end;if("string"!=typeof t)return ge.apply(void 0,arguments);var c=0;return a.split(t).map((function(e){var a=c,u={formats:r.slice(a,a+e.length),replacements:n.slice(a,a+e.length),text:e};return c+=t.length+e.length,void 0!==o&&void 0!==i&&(o>=a&&oa&&(u.start=0),i>=a&&ic&&(u.end=e.length)),u}))}function ge(e){var t=e.formats,r=e.replacements,n=e.text,a=e.start,o=e.end,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a,c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:o,u={formats:t.slice(0,i),replacements:r.slice(0,i),text:n.slice(0,i)},s={formats:t.slice(c),replacements:r.slice(c),text:n.slice(c),start:0,end:0};return[ce(u,/\u2028+$/,""),ce(s,/^\u2028+/,"")]}function he(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Oe(e){for(var t=1;t1;)e=e.childNodes[t.shift()];return{node:e,offset:t[0]}}function Pe(e,t){"string"==typeof t&&(t=e.ownerDocument.createTextNode(t));var r=t,n=r.type,a=r.attributes;if(n)for(var o in t=e.ownerDocument.createElement(n),a)t.setAttribute(o,a[o]);return e.appendChild(t)}function _e(e,t){e.appendData(t)}function De(e){return e.lastChild}function Se(e){return e.parentNode}function Fe(e){return e.nodeType===e.TEXT_NODE}function Ce(e){return e.nodeValue}function Ae(e){return e.parentNode.removeChild(e)}function Ne(e){var t=e.value,r=e.multilineTag,n=e.prepareEditableTree,a=e.isEditableTree,o=void 0===a||a,i=e.placeholder,c=e.doc,u=void 0===c?document:c,s=[],l=[];n&&(t=xe(xe({},t),{},{formats:n(t)}));return{body:je({value:t,multilineTag:r,createEmpty:function(){return D(u,"")},append:Pe,getLastChild:De,getParent:Se,isText:Fe,getText:Ce,remove:Ae,appendText:_e,onStartIndex:function(e,t){s=Te(t,e,[t.nodeValue.length])},onEndIndex:function(e,t){l=Te(t,e,[t.nodeValue.length])},isEditableTree:o,placeholder:i}),selection:{startPath:s,endPath:l}}}function Ie(e){var t=e.value,r=e.current,n=e.multilineTag,a=e.prepareEditableTree,o=e.__unstableDomOnly,i=Ne({value:t,multilineTag:n,prepareEditableTree:a,placeholder:e.placeholder,doc:r.ownerDocument}),c=i.body,u=i.selection;!function e(t,r){var n,a=0;for(;n=t.firstChild;){var o=r.childNodes[a];if(o)if(o.isEqualNode(n))t.removeChild(n);else if(o.nodeName!==n.nodeName||o.nodeType===o.TEXT_NODE&&o.data!==n.data)r.replaceChild(n,o);else{var i=o.attributes,c=n.attributes;if(i)for(var u=i.length;u--;){var s=i[u].name;n.getAttribute(s)||o.removeAttribute(s)}if(c)for(var l=0;l0){if(m=d,v=p.getRangeAt(0),m.startContainer===v.startContainer&&m.startOffset===v.startOffset&&m.endContainer===v.endContainer&&m.endOffset===v.endOffset)return;p.removeAllRanges()}var m,v;p.addRange(d),b!==l.activeElement&&b instanceof f.HTMLElement&&b.focus()}(u,r)}var ke=r(107);function Le(e){return Ge(je({value:e.value,multilineTag:e.multilineTag,preserveWhiteSpace:e.preserveWhiteSpace,createEmpty:Re,append:Me,getLastChild:We,getParent:Ve,isText:Ke,getText:Be,remove:ze,appendText:He}).children)}function Re(){return{}}function We(e){var t=e.children;return t&&t[t.length-1]}function Me(e,t){return"string"==typeof t&&(t={text:t}),t.parent=e,e.children=e.children||[],e.children.push(t),t}function He(e,t){e.text+=t}function Ve(e){return e.parent}function Ke(e){return"string"==typeof e.text}function Be(e){return e.text}function ze(e){var t=e.parent.children.indexOf(e);return-1!==t&&e.parent.children.splice(t,1),e}function Ue(e){var t=e.type,r=e.attributes,n=e.object,a=e.children,o="";for(var i in r)Object(ke.isValidAttributeName)(i)&&(o+=" ".concat(i,'="').concat(Object(ke.escapeAttribute)(r[i]),'"'));return n?"<".concat(t).concat(o,">"):"<".concat(t).concat(o,">").concat(Ge(a),"")}function Ge(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.map((function(e){return void 0===e.text?Ue(e):Object(ke.escapeEditableHTML)(e.text)})).join("")}function qe(e,t){return B(e,t.type)?ne(e,t.type):P(e,t)}function Xe(e){var t=Object(o.select)("core/rich-text").getFormatType(e);if(t)return Object(o.dispatch)("core/rich-text").removeFormatTypes(e),t;window.console.error("Format ".concat(e," is not registered."))}function Ye(e){var t=G(e);if(void 0===t)return!1;var r=e.replacements,n=G(e,t),a=r[t]||[],o=r[n]||[];return a.length<=o.length}function $e(e){return void 0!==e.replacements[G(e,e.start)]}function Ze(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Je(e){for(var t=1;t=0;)if(r[o]===S){var i=n[o]||[];if(i.length===a.length+1)return o;if(i.length<=a.length)return}}(e,r),s=r;s=0;){if(r[o]===S)if((n[o]||[]).length===a.length-1)return o}}function tt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function rt(e){for(var t=1;t=a.length))return o;o=i}return o}(e,G(e,a)),s=o;s<=u;s++)if(t[s]===S){var l=i[s]||[];i[s]=c.concat(l.slice(c.length+1)),0===i[s].length&&delete i[s]}return rt(rt({},e),{},{replacements:i})}function at(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ot(e){for(var t=1;td?e:t})))}return r?ot(ot({},e),{},{replacements:f}):e}var ct=r(12),ut=r(0),st=r(18),lt=r(36),ft=r.n(lt),pt=new Set(["a","audio","button","details","embed","iframe","input","label","select","textarea","video"]);function dt(e){var t=e.formatTypes,r=e.onChange,n=e.onFocus,a=e.value,o=e.allowedFormats,i=e.withoutInteractiveFormatting;return t.map((function(e){var t=e.name,c=e.edit,u=e.tagName;if(!c)return null;if(o&&-1===o.indexOf(t))return null;if(i&&pt.has(u))return null;var s=B(a,t),l=void 0!==s,f=z(a),p=void 0!==f&&f.type===t;return Object(ut.createElement)(c,{key:t,isActive:l,activeAttributes:l&&s.attributes||{},isObjectActive:p,activeObjectAttributes:p&&f.attributes||{},value:a,onChange:r,onFocus:n})}))}function bt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function mt(e){for(var t=1;t0?e.getRangeAt(0):null;return N({element:t.current,range:r,multilineTag:F,multilineWrapperTags:"li"===F?["ul","ol"]:void 0,__unstableIsEditableTree:!0,preserveWhiteSpace:m})}function ve(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=r.domOnly;Ie({value:e,current:t.current,multilineTag:F,multilineWrapperTags:"li"===F?["ul","ol"]:void 0,prepareEditableTree:wt(ee),__unstableDomOnly:n,placeholder:d})}var ge=Object(ut.useRef)(i);function he(){ge.current!==de.current&&(B(),ge.current=de.current)}var Oe=Object(ut.useRef)(!1),ye=Object(ut.useRef)();function je(e){var t;if(!Oe.current)if(e&&(t=e.inputType),!t&&e&&e.nativeEvent&&(t=e.nativeEvent.inputType),!t||0!==t.indexOf("format")&&!Ot.has(t)){var r=me(),n=be.current,a=n.start,o=n.activeFormats,i=void 0===o?[]:o,c=function(e){var t=e.value,r=e.start,n=e.end,a=e.formats,o=t.formats[r-1]||[],i=t.formats[n]||[];for(t.activeFormats=a.map((function(e,t){if(o[t]){if(O(e,o[t]))return o[t]}else if(i[t]&&O(e,i[t]))return i[t];return e}));--n>=r;)t.activeFormats.length>0?t.formats[n]=t.activeFormats:delete t.formats[n];return t}({value:r,start:a,end:r.start,formats:i});if(Te(c,{withoutHistory:!0}),ue().clearTimeout(ye.current),ye.current=ue().setTimeout(he,1e3),"insertText"===t){R&&k&&k(c,pe);var u=Q.reduce((function(e,t){var r=t.__unstableInputRule;return r&&(e=r(e)),e}),c);u!==c&&(he(),Te(ht(ht({},u),{},{activeFormats:i})),L())}}else ve(be.current)}var we=Object(ut.useRef)(!1);function xe(e){if(t.current&&t.current.ownerDocument.activeElement===t.current&&("selectionchange"===e.type||z)&&!b&&!Oe.current){var r=me(),n=r.start,a=r.end,o=r.text,i=be.current;if(o===i.text)if(n!==i.start||a!==i.end){var c=ht(ht({},i),{},{start:n,end:a,activeFormats:void 0}),u=K(c,jt);c.activeFormats=u,!M&&u.length?H():M&&!u.length&&V(),be.current=c,ve(c,{domOnly:!0}),w(n,a),$(u)}else 0===i.text.length&&0===n&&function(e){var t=e.getSelection(),r=t.anchorNode,n=t.anchorOffset;if(r.nodeType===r.ELEMENT_NODE){var a=r.childNodes[n];a&&a.nodeType===a.ELEMENT_NODE&&a.getAttribute("data-rich-text-placeholder")&&t.collapseToStart()}}(ue());else je()}}function Te(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.withoutHistory;A&&(e.formats=Array(e.text.length),e.replacements=Array(e.text.length)),ve(e);var n=e.start,a=e.end,o=e.activeFormats,i=void 0===o?[]:o;Object.values(re).forEach((function(t){t(e.formats,e.text)})),de.current=pe(e),be.current=e,w(n,a),x(de.current),$(i),r||he()}function Ee(e){var r=e.target;if(r!==t.current&&!r.textContent){var n=r.parentNode,a=Array.from(n.childNodes).indexOf(r),o=ce().createRange(),i=ue().getSelection();o.setStart(r.parentNode,a),o.setEnd(r.parentNode,a+1),i.removeAllRanges(),i.addRange(o)}}var Pe=Object(ut.useRef)();function _e(){de.current=i,be.current=se(i),be.current.start=u,be.current.end=s,ve(be.current)}function De(){t.current.focus(),ve(be.current)}Object(ut.useEffect)((function(){we.current&&_e()}),[n,d]),Object(ut.useEffect)((function(){we.current&&i!==de.current&&_e()}),[i]),Object(ut.useEffect)((function(){we.current&&(!z||u===be.current.start&&s===be.current.end?be.current=ht(ht({},be.current),{},{start:u,end:s}):_e())}),[u,s,z]),Object(ut.useEffect)((function(){we.current&&_e()}),ae),Object(ut.useLayoutEffect)((function(){return ve(be.current,{domOnly:!0}),we.current=!0,function(){ce().removeEventListener("selectionchange",xe),ue().cancelAnimationFrame(Pe.current),ue().clearTimeout(ye.current)}}),[]);var Se={role:"textbox","aria-multiline":!0,"aria-label":d,ref:t,style:yt,className:"rich-text",onPaste:function(e){if(z){var t=e.clipboardData,r=t.items,n=t.files;r=Object(c.isNil)(r)?[]:r,n=Object(c.isNil)(n)?[]:n;var a="",o="";try{a=t.getData("text/plain"),o=t.getData("text/html")}catch(e){try{o=t.getData("Text")}catch(e){return}}if(e.preventDefault(),window.console.log("Received HTML:\n\n",o),window.console.log("Received plain text:\n\n",a),A)Te(oe(be.current,a));else{var i=Q.reduce((function(e,t){var r=t.__unstablePasteRule;return r&&e===be.current&&(e=r(be.current,{html:o,plainText:a})),e}),be.current);i===be.current?v&&(n=Array.from(n),Array.from(r).forEach((function(e){if(e.getAsFile){var t=e.getAsFile();if(t){var r=t.name,a=t.type,o=t.size;Object(c.find)(n,{name:r,type:a,size:o})||n.push(t)}}})),v({value:le(be.current),onChange:Te,html:o,plainText:a,files:n,activeFormats:X})):Te(i)}}else e.preventDefault()},onInput:je,onCompositionStart:function(){Oe.current=!0,ce().removeEventListener("selectionchange",xe)},onCompositionEnd:function(){Oe.current=!1,je({inputType:"insertText"}),ce().addEventListener("selectionchange",xe)},onKeyDown:function(e){e.defaultPrevented||(function(e){var t=e.keyCode;if(t===st.DELETE||t===st.BACKSPACE||t===st.ESCAPE){if(I)return e.preventDefault(),void W();if(t!==st.ESCAPE){var r,n=me(),a=n.start,o=n.end,i=n.text,c=t===st.BACKSPACE;if(0===a&&0!==o&&o===i.length)return Te(ie(n)),void e.preventDefault();if(F)if(r=c&&0===n.start&&0===n.end&&Z(n)?fe(n,!c):fe(n,c))return Te(r),void e.preventDefault();!y||!Y(n)||X.length||c&&0!==a||!c&&o!==i.length||(y({isReverse:c,value:n}),e.preventDefault())}}}(e),function(e){e.keyCode===st.ENTER&&(e.preventDefault(),j&&j({value:le(me()),onChange:Te,shiftKey:e.shiftKey}))}(e),function(e){var t=e.keyCode,r=e.shiftKey,n=e.altKey,a=e.metaKey,o=e.ctrlKey;if(!(r||n||a||o||t!==st.SPACE||"li"!==F)){var i=me();if(Y(i)){var c=i.text[i.start-1];c&&c!==S||(Te(Qe(i,{type:C})),e.preventDefault())}}}(e),function(e){var r=e.keyCode,n=e.shiftKey,a=e.altKey,o=e.metaKey,i=e.ctrlKey;if(!(n||a||o||i||r!==st.LEFT&&r!==st.RIGHT)){var c=be.current,u=c.text,s=c.formats,l=c.start,f=c.end,p=c.activeFormats,d=void 0===p?[]:p,b=Y(be.current),m="rtl"===ue().getComputedStyle(t.current).direction?st.RIGHT:st.LEFT,v=e.keyCode===m;if(b&&0===d.length){if(0===l&&v)return;if(f===u.length&&!v)return}if(b){e.preventDefault();var g=s[l-1]||jt,h=s[l]||jt,O=d.length,y=h;if(g.length>h.length&&(y=g),g.lengthg.length&&O--):g.length>h.length&&(!v&&d.length>h.length&&O--,v&&d.lengthe.length)&&(t=e.length);for(var r=0,n=new Array(t);r0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"ADD_FORMAT_TYPES":return s(s({},e),Object(c.keyBy)(t.formatTypes,"name"));case"REMOVE_FORMAT_TYPES":return Object(c.omit)(e,t.names)}return e}}),f=r(42),p=Object(f.a)((function(e){return Object.values(e.formatTypes)}),(function(e){return[e.formatTypes]}));function d(e,t){return e.formatTypes[t]}function b(e,t){return Object(c.find)(p(e),(function(e){var r=e.className,n=e.tagName;return null===r&&t===n}))}function m(e,t){return Object(c.find)(p(e),(function(e){var r=e.className;return null!==r&&" ".concat(t," ").indexOf(" ".concat(r," "))>=0}))}function v(e){return{type:"ADD_FORMAT_TYPES",formatTypes:Object(c.castArray)(e)}}function g(e){return{type:"REMOVE_FORMAT_TYPES",names:Object(c.castArray)(e)}}Object(o.registerStore)("core/rich-text",{reducer:l,selectors:n,actions:a});var h=r(17);function O(e,t){if(e===t)return!0;if(!e||!t)return!1;if(e.type!==t.type)return!1;var r=e.attributes,n=t.attributes;if(r===n)return!0;if(!r||!n)return!1;var a=Object.keys(r),o=Object.keys(n);if(a.length!==o.length)return!1;for(var i=a.length,c=0;c2&&void 0!==arguments[2]?arguments[2]:e.start,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e.end,a=e.formats,o=e.activeFormats,i=a.slice();if(r===n){var u=Object(c.find)(i[r],{type:t.type});if(u){for(var s=i[r].indexOf(u);i[r]&&i[r][s]===u;)i[r]=E(i[r],s,t),r--;for(n++;i[n]&&i[n][s]===u;)i[n]=E(i[n],s,t),n++}}else{for(var l=1/0,f=r;f0&&void 0!==arguments[0]?arguments[0]:{},t=e.element,r=e.text,n=e.html,a=e.range,o=e.multilineTag,i=e.multilineWrapperTags,c=e.__unstableIsEditableTree,u=e.preserveWhiteSpace;return"string"==typeof r&&r.length>0?{formats:Array(r.length),replacements:Array(r.length),text:r}:("string"==typeof n&&n.length>0&&(t=D(document,n)),"object"!==Object(_.a)(t)?{formats:[],replacements:[],text:""}:o?W({element:t,range:a,multilineTag:o,multilineWrapperTags:i,isEditableTree:c,preserveWhiteSpace:u}):R({element:t,range:a,isEditableTree:c,preserveWhiteSpace:u}))}function I(e,t,r,n){if(r){var a=t.parentNode,o=r.startContainer,i=r.startOffset,c=r.endContainer,u=r.endOffset,s=e.text.length;void 0!==n.start?e.start=s+n.start:t===o&&t.nodeType===t.TEXT_NODE?e.start=s+i:a===o&&t===o.childNodes[i]?e.start=s:a===o&&t===o.childNodes[i-1]?e.start=s+n.text.length:t===o&&(e.start=s),void 0!==n.end?e.end=s+n.end:t===c&&t.nodeType===t.TEXT_NODE?e.end=s+u:a===c&&t===c.childNodes[u-1]?e.end=s+n.text.length:a===c&&t===c.childNodes[u]?e.end=s:t===c&&(e.end=s+u)}}var k=new RegExp("\ufeff","g");function L(e){return e.replace(k,"")}function R(e){var t=e.element,r=e.range,n=e.multilineTag,a=e.multilineWrapperTags,i=e.currentWrapperTags,c=void 0===i?[]:i,u=e.isEditableTree,s=e.preserveWhiteSpace,l={formats:[],replacements:[],text:""};if(!t)return l;if(!t.hasChildNodes())return I(l,t,r,{formats:[],replacements:[],text:""}),l;for(var f=t.childNodes.length,p=function(e){var i=t.childNodes[e],f=i.nodeName.toLowerCase();if(i.nodeType===i.TEXT_NODE){var p=L;s||(p=function(e){return L(function(e){return e.replace(/[\n\r\t]+/g," ")}(e))});var d=p(i.nodeValue);return r=function(e,t,r){if(t){var n=t.startContainer,a=t.endContainer,o=t.startOffset,i=t.endOffset;return e===n&&(o=r(e.nodeValue.slice(0,o)).length),e===a&&(i=r(e.nodeValue.slice(0,i)).length),{startContainer:n,startOffset:o,endContainer:a,endOffset:i}}}(i,r,p),I(l,i,r,{text:d}),l.formats.length+=d.length,l.replacements.length+=d.length,l.text+=d,"continue"}if(i.nodeType!==i.ELEMENT_NODE)return"continue";if(u&&(i.getAttribute("data-rich-text-placeholder")||"br"===f&&!i.getAttribute("data-rich-text-line-break")))return I(l,i,r,{formats:[],replacements:[],text:""}),"continue";if("br"===f)return I(l,i,r,{formats:[],replacements:[],text:""}),H(l,N({text:"\n"})),"continue";var b=l.formats[l.formats.length-1],m=b&&b[b.length-1],v=function(e){var t,r=e.type,n=e.attributes;if(n&&n.class&&(t=Object(o.select)("core/rich-text").getFormatTypeForClassName(n.class))&&(n.class=" ".concat(n.class," ").replace(" ".concat(t.className," ")," ").trim(),n.class||delete n.class),t||(t=Object(o.select)("core/rich-text").getFormatTypeForBareElement(r)),!t)return n?{type:r,attributes:n}:{type:r};if(t.__experimentalCreatePrepareEditableTree&&!t.__experimentalCreateOnChangeEditableValue)return null;if(!n)return{type:t.name};var a={},i={};for(var c in n){var u=A(t.attributes,c);u?a[u]=n[c]:i[c]=n[c]}return{type:t.name,attributes:a,unregisteredAttributes:i}}({type:f,attributes:M({element:i})}),g=O(v,m)?m:v;if(a&&-1!==a.indexOf(f)){var y=W({element:i,range:r,multilineTag:n,multilineWrapperTags:a,currentWrapperTags:[].concat(Object(h.a)(c),[g]),isEditableTree:u,preserveWhiteSpace:s});return I(l,i,r,y),H(l,y),"continue"}var j=R({element:i,range:r,multilineTag:n,multilineWrapperTags:a,isEditableTree:u,preserveWhiteSpace:s});if(I(l,i,r,j),g)if(0===j.text.length)g.attributes&&H(l,{formats:[,],replacements:[g],text:""});else{function w(e){if(w.formats===e)return w.newFormats;var t=e?[g].concat(Object(h.a)(e)):[g];return w.formats=e,w.newFormats=t,t}w.newFormats=[g],H(l,C(C({},j),{},{formats:Array.from(j.formats,w)}))}else H(l,j)},d=0;d0)&&H(s,{formats:[,],replacements:i.length>0?[i]:[,],text:S}),I(s,p,r,d),H(s,d)}}return s}function M(e){var t=e.element;if(t.hasAttributes()){for(var r,n=t.attributes.length,a=0;a1&&void 0!==arguments[1]?arguments[1]:[];if(void 0===r)return o;if(r===n){if(a)return a;var i=t[r-1]||o,c=t[r]||o;return i.length1&&void 0!==arguments[1]?arguments[1]:t,a=n;a--;)if(r[a]===S)return a}function q(e){var t=e.replacements[G(e,e.start)];return!t||t.length<1}function X(e,t,r){var n=e.replacements[G(e,e.start)];return n&&0!==n.length?n[n.length-1].type===t:t===r}function Y(e){var t=e.start,r=e.end;if(void 0!==t&&void 0!==r)return t===r}function $(e){return 0===e.text.length}function Z(e){var t=e.text,r=e.start,n=e.end;return r===n&&(0===t.length||(0===r&&t.slice(0,1)===S||(r===t.length&&t.slice(-1)===S||t.slice(r-1,n+1)==="".concat(S).concat(S))))}function J(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return"string"==typeof t&&(t=N({text:t})),w(e.reduce((function(e,r){var n=r.formats,a=r.replacements,o=r.text;return{formats:e.formats.concat(t.formats,n),replacements:e.replacements.concat(t.replacements,a),text:e.text+t.text+o}})))}function Q(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ee(e,t){if("string"==typeof(t=function(e){for(var t=1;t3)window.console.error('The format "'+t.name+'" can have a maximum of 3 keywords.');else{if("string"==typeof t.title)return Object(o.dispatch)("core/rich-text").addFormatTypes(t),t;window.console.error("Format titles must be strings.")}else window.console.error('The format "'+t.name+'" must have a title.')}else window.console.error("A class name must begin with a letter, followed by any number of hyphens, letters, or numbers.");else window.console.error("Format class names must be a string, or null to handle bare elements.");else window.console.error("Format tag names must be a string.");else window.console.error("Format names must contain a namespace prefix, include only lowercase alphanumeric characters or dashes, and start with a letter. Example: my-plugin/my-custom-format");else window.console.error("Format names must be strings.")}function te(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function re(e){for(var t=1;t2&&void 0!==arguments[2]?arguments[2]:e.start,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e.end,a=e.formats,o=e.activeFormats,i=a.slice();if(r===n){var u=Object(c.find)(i[r],{type:t});if(u){for(;Object(c.find)(i[r],u);)ae(i,r,t),r--;for(n++;Object(c.find)(i[n],u);)ae(i,n,t),n++}}else for(var s=r;s2&&void 0!==arguments[2]?arguments[2]:e.start,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e.end,a=e.formats,o=e.replacements,i=e.text;"string"==typeof t&&(t=N({text:t}));var c=r+t.text.length;return w({formats:a.slice(0,r).concat(t.formats,a.slice(n)),replacements:o.slice(0,r).concat(t.replacements,o.slice(n)),text:i.slice(0,r)+t.text+i.slice(n),start:c,end:c})}function ie(e,t,r){return oe(e,N(),t,r)}function ce(e,t,r){var n=e.formats,a=e.replacements,o=e.text,i=e.start,c=e.end;return o=o.replace(t,(function(e){for(var t=arguments.length,o=new Array(t>1?t-1:0),u=1;u1&&void 0!==arguments[1]?arguments[1]:e.start,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.end,n=U(e).slice(0,t),a=n.lastIndexOf(S),o=e.replacements[a],i=[,];o&&(i=[o]);var c={formats:[,],replacements:i,text:S};return oe(e,c,t,r)}function se(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function le(e){for(var t=1;t1&&void 0!==arguments[1])||arguments[1],r=e.replacements,n=e.text,a=e.start,o=e.end,i=Y(e),c=a-1,u=i?a-1:a,s=o;if(t||(c=o,u=a,s=i?o+1:o),n[c]===S){var l;if(i&&r[c]&&r[c].length){var f=r.slice();f[c]=r[c].slice(0,-1),l=le(le({},e),{},{replacements:f})}else l=ie(e,u,s);return l}}function pe(e,t,r,n){return oe(e,{formats:[,],replacements:[t],text:""},r,n)}function de(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function be(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:e.start,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.end,n=e.formats,a=e.replacements,o=e.text;return void 0===t||void 0===r?be({},e):{formats:n.slice(t,r),replacements:a.slice(t,r),text:o.slice(t,r)}}function ve(e,t){var r=e.formats,n=e.replacements,a=e.text,o=e.start,i=e.end;if("string"!=typeof t)return ge.apply(void 0,arguments);var c=0;return a.split(t).map((function(e){var a=c,u={formats:r.slice(a,a+e.length),replacements:n.slice(a,a+e.length),text:e};return c+=t.length+e.length,void 0!==o&&void 0!==i&&(o>=a&&oa&&(u.start=0),i>=a&&ic&&(u.end=e.length)),u}))}function ge(e){var t=e.formats,r=e.replacements,n=e.text,a=e.start,o=e.end,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a,c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:o,u={formats:t.slice(0,i),replacements:r.slice(0,i),text:n.slice(0,i)},s={formats:t.slice(c),replacements:r.slice(c),text:n.slice(c),start:0,end:0};return[ce(u,/\u2028+$/,""),ce(s,/^\u2028+/,"")]}function he(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Oe(e){for(var t=1;t1;)e=e.childNodes[t.shift()];return{node:e,offset:t[0]}}function Pe(e,t){"string"==typeof t&&(t=e.ownerDocument.createTextNode(t));var r=t,n=r.type,a=r.attributes;if(n)for(var o in t=e.ownerDocument.createElement(n),a)t.setAttribute(o,a[o]);return e.appendChild(t)}function _e(e,t){e.appendData(t)}function De(e){return e.lastChild}function Se(e){return e.parentNode}function Fe(e){return e.nodeType===e.TEXT_NODE}function Ce(e){return e.nodeValue}function Ae(e){return e.parentNode.removeChild(e)}function Ne(e){var t=e.value,r=e.multilineTag,n=e.prepareEditableTree,a=e.isEditableTree,o=void 0===a||a,i=e.placeholder,c=e.doc,u=void 0===c?document:c,s=[],l=[];n&&(t=xe(xe({},t),{},{formats:n(t)}));return{body:je({value:t,multilineTag:r,createEmpty:function(){return D(u,"")},append:Pe,getLastChild:De,getParent:Se,isText:Fe,getText:Ce,remove:Ae,appendText:_e,onStartIndex:function(e,t){s=Te(t,e,[t.nodeValue.length])},onEndIndex:function(e,t){l=Te(t,e,[t.nodeValue.length])},isEditableTree:o,placeholder:i}),selection:{startPath:s,endPath:l}}}function Ie(e){var t=e.value,r=e.current,n=e.multilineTag,a=e.prepareEditableTree,o=e.__unstableDomOnly,i=Ne({value:t,multilineTag:n,prepareEditableTree:a,placeholder:e.placeholder,doc:r.ownerDocument}),c=i.body,u=i.selection;!function e(t,r){var n,a=0;for(;n=t.firstChild;){var o=r.childNodes[a];if(o)if(o.isEqualNode(n))t.removeChild(n);else if(o.nodeName!==n.nodeName||o.nodeType===o.TEXT_NODE&&o.data!==n.data)r.replaceChild(n,o);else{var i=o.attributes,c=n.attributes;if(i)for(var u=i.length;u--;){var s=i[u].name;n.getAttribute(s)||o.removeAttribute(s)}if(c)for(var l=0;l0){if(m=d,v=p.getRangeAt(0),m.startContainer===v.startContainer&&m.startOffset===v.startOffset&&m.endContainer===v.endContainer&&m.endOffset===v.endOffset)return;p.removeAllRanges()}var m,v;p.addRange(d),b!==l.activeElement&&b instanceof f.HTMLElement&&b.focus()}(u,r)}var ke=r(109);function Le(e){return Ge(je({value:e.value,multilineTag:e.multilineTag,preserveWhiteSpace:e.preserveWhiteSpace,createEmpty:Re,append:Me,getLastChild:We,getParent:Ve,isText:Ke,getText:Be,remove:ze,appendText:He}).children)}function Re(){return{}}function We(e){var t=e.children;return t&&t[t.length-1]}function Me(e,t){return"string"==typeof t&&(t={text:t}),t.parent=e,e.children=e.children||[],e.children.push(t),t}function He(e,t){e.text+=t}function Ve(e){return e.parent}function Ke(e){return"string"==typeof e.text}function Be(e){return e.text}function ze(e){var t=e.parent.children.indexOf(e);return-1!==t&&e.parent.children.splice(t,1),e}function Ue(e){var t=e.type,r=e.attributes,n=e.object,a=e.children,o="";for(var i in r)Object(ke.isValidAttributeName)(i)&&(o+=" ".concat(i,'="').concat(Object(ke.escapeAttribute)(r[i]),'"'));return n?"<".concat(t).concat(o,">"):"<".concat(t).concat(o,">").concat(Ge(a),"")}function Ge(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.map((function(e){return void 0===e.text?Ue(e):Object(ke.escapeEditableHTML)(e.text)})).join("")}function qe(e,t){return B(e,t.type)?ne(e,t.type):P(e,t)}function Xe(e){var t=Object(o.select)("core/rich-text").getFormatType(e);if(t)return Object(o.dispatch)("core/rich-text").removeFormatTypes(e),t;window.console.error("Format ".concat(e," is not registered."))}function Ye(e){var t=G(e);if(void 0===t)return!1;var r=e.replacements,n=G(e,t),a=r[t]||[],o=r[n]||[];return a.length<=o.length}function $e(e){return void 0!==e.replacements[G(e,e.start)]}function Ze(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Je(e){for(var t=1;t=0;)if(r[o]===S){var i=n[o]||[];if(i.length===a.length+1)return o;if(i.length<=a.length)return}}(e,r),s=r;s=0;){if(r[o]===S)if((n[o]||[]).length===a.length-1)return o}}function tt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function rt(e){for(var t=1;t=a.length))return o;o=i}return o}(e,G(e,a)),s=o;s<=u;s++)if(t[s]===S){var l=i[s]||[];i[s]=c.concat(l.slice(c.length+1)),0===i[s].length&&delete i[s]}return rt(rt({},e),{},{replacements:i})}function at(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ot(e){for(var t=1;td?e:t})))}return r?ot(ot({},e),{},{replacements:f}):e}var ct=r(12),ut=r(0),st=r(18),lt=r(36),ft=r.n(lt),pt=new Set(["a","audio","button","details","embed","iframe","input","label","select","textarea","video"]);function dt(e){var t=e.formatTypes,r=e.onChange,n=e.onFocus,a=e.value,o=e.allowedFormats,i=e.withoutInteractiveFormatting;return t.map((function(e){var t=e.name,c=e.edit,u=e.tagName;if(!c)return null;if(o&&-1===o.indexOf(t))return null;if(i&&pt.has(u))return null;var s=B(a,t),l=void 0!==s,f=z(a),p=void 0!==f&&f.type===t;return Object(ut.createElement)(c,{key:t,isActive:l,activeAttributes:l&&s.attributes||{},isObjectActive:p,activeObjectAttributes:p&&f.attributes||{},value:a,onChange:r,onFocus:n})}))}function bt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function mt(e){for(var t=1;t0?e.getRangeAt(0):null;return N({element:t.current,range:r,multilineTag:F,multilineWrapperTags:"li"===F?["ul","ol"]:void 0,__unstableIsEditableTree:!0,preserveWhiteSpace:m})}function ve(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=r.domOnly;Ie({value:e,current:t.current,multilineTag:F,multilineWrapperTags:"li"===F?["ul","ol"]:void 0,prepareEditableTree:wt(ee),__unstableDomOnly:n,placeholder:d})}var ge=Object(ut.useRef)(i);function he(){ge.current!==de.current&&(B(),ge.current=de.current)}var Oe=Object(ut.useRef)(!1),ye=Object(ut.useRef)();function je(e){var t;if(!Oe.current)if(e&&(t=e.inputType),!t&&e&&e.nativeEvent&&(t=e.nativeEvent.inputType),!t||0!==t.indexOf("format")&&!Ot.has(t)){var r=me(),n=be.current,a=n.start,o=n.activeFormats,i=void 0===o?[]:o,c=function(e){var t=e.value,r=e.start,n=e.end,a=e.formats,o=t.formats[r-1]||[],i=t.formats[n]||[];for(t.activeFormats=a.map((function(e,t){if(o[t]){if(O(e,o[t]))return o[t]}else if(i[t]&&O(e,i[t]))return i[t];return e}));--n>=r;)t.activeFormats.length>0?t.formats[n]=t.activeFormats:delete t.formats[n];return t}({value:r,start:a,end:r.start,formats:i});if(Te(c,{withoutHistory:!0}),ue().clearTimeout(ye.current),ye.current=ue().setTimeout(he,1e3),"insertText"===t){R&&k&&k(c,pe);var u=Q.reduce((function(e,t){var r=t.__unstableInputRule;return r&&(e=r(e)),e}),c);u!==c&&(he(),Te(ht(ht({},u),{},{activeFormats:i})),L())}}else ve(be.current)}var we=Object(ut.useRef)(!1);function xe(e){if(t.current&&t.current.ownerDocument.activeElement===t.current&&("selectionchange"===e.type||z)&&!b&&!Oe.current){var r=me(),n=r.start,a=r.end,o=r.text,i=be.current;if(o===i.text)if(n!==i.start||a!==i.end){var c=ht(ht({},i),{},{start:n,end:a,activeFormats:void 0}),u=K(c,jt);c.activeFormats=u,!M&&u.length?H():M&&!u.length&&V(),be.current=c,ve(c,{domOnly:!0}),w(n,a),$(u)}else 0===i.text.length&&0===n&&function(e){var t=e.getSelection(),r=t.anchorNode,n=t.anchorOffset;if(r.nodeType===r.ELEMENT_NODE){var a=r.childNodes[n];a&&a.nodeType===a.ELEMENT_NODE&&a.getAttribute("data-rich-text-placeholder")&&t.collapseToStart()}}(ue());else je()}}function Te(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.withoutHistory;A&&(e.formats=Array(e.text.length),e.replacements=Array(e.text.length)),ve(e);var n=e.start,a=e.end,o=e.activeFormats,i=void 0===o?[]:o;Object.values(re).forEach((function(t){t(e.formats,e.text)})),de.current=pe(e),be.current=e,w(n,a),x(de.current),$(i),r||he()}function Ee(e){var r=e.target;if(r!==t.current&&!r.textContent){var n=r.parentNode,a=Array.from(n.childNodes).indexOf(r),o=ce().createRange(),i=ue().getSelection();o.setStart(r.parentNode,a),o.setEnd(r.parentNode,a+1),i.removeAllRanges(),i.addRange(o)}}var Pe=Object(ut.useRef)();function _e(){de.current=i,be.current=se(i),be.current.start=u,be.current.end=s,ve(be.current)}function De(){t.current.focus(),ve(be.current)}Object(ut.useEffect)((function(){we.current&&_e()}),[n,d]),Object(ut.useEffect)((function(){we.current&&i!==de.current&&_e()}),[i]),Object(ut.useEffect)((function(){we.current&&(!z||u===be.current.start&&s===be.current.end?be.current=ht(ht({},be.current),{},{start:u,end:s}):_e())}),[u,s,z]),Object(ut.useEffect)((function(){we.current&&_e()}),ae),Object(ut.useLayoutEffect)((function(){return ve(be.current,{domOnly:!0}),we.current=!0,function(){ce().removeEventListener("selectionchange",xe),ue().cancelAnimationFrame(Pe.current),ue().clearTimeout(ye.current)}}),[]);var Se={role:"textbox","aria-multiline":!0,"aria-label":d,ref:t,style:yt,className:"rich-text",onPaste:function(e){if(z){var t=e.clipboardData,r=t.items,n=t.files;r=Object(c.isNil)(r)?[]:r,n=Object(c.isNil)(n)?[]:n;var a="",o="";try{a=t.getData("text/plain"),o=t.getData("text/html")}catch(e){try{o=t.getData("Text")}catch(e){return}}if(e.preventDefault(),window.console.log("Received HTML:\n\n",o),window.console.log("Received plain text:\n\n",a),A)Te(oe(be.current,a));else{var i=Q.reduce((function(e,t){var r=t.__unstablePasteRule;return r&&e===be.current&&(e=r(be.current,{html:o,plainText:a})),e}),be.current);i===be.current?v&&(n=Array.from(n),Array.from(r).forEach((function(e){if(e.getAsFile){var t=e.getAsFile();if(t){var r=t.name,a=t.type,o=t.size;Object(c.find)(n,{name:r,type:a,size:o})||n.push(t)}}})),v({value:le(be.current),onChange:Te,html:o,plainText:a,files:n,activeFormats:X})):Te(i)}}else e.preventDefault()},onInput:je,onCompositionStart:function(){Oe.current=!0,ce().removeEventListener("selectionchange",xe)},onCompositionEnd:function(){Oe.current=!1,je({inputType:"insertText"}),ce().addEventListener("selectionchange",xe)},onKeyDown:function(e){e.defaultPrevented||(function(e){var t=e.keyCode;if(t===st.DELETE||t===st.BACKSPACE||t===st.ESCAPE){if(I)return e.preventDefault(),void W();if(t!==st.ESCAPE){var r,n=me(),a=n.start,o=n.end,i=n.text,c=t===st.BACKSPACE;if(0===a&&0!==o&&o===i.length)return Te(ie(n)),void e.preventDefault();if(F)if(r=c&&0===n.start&&0===n.end&&Z(n)?fe(n,!c):fe(n,c))return Te(r),void e.preventDefault();!y||!Y(n)||X.length||c&&0!==a||!c&&o!==i.length||(y({isReverse:c,value:n}),e.preventDefault())}}}(e),function(e){e.keyCode===st.ENTER&&(e.preventDefault(),j&&j({value:le(me()),onChange:Te,shiftKey:e.shiftKey}))}(e),function(e){var t=e.keyCode,r=e.shiftKey,n=e.altKey,a=e.metaKey,o=e.ctrlKey;if(!(r||n||a||o||t!==st.SPACE||"li"!==F)){var i=me();if(Y(i)){var c=i.text[i.start-1];c&&c!==S||(Te(Qe(i,{type:C})),e.preventDefault())}}}(e),function(e){var r=e.keyCode,n=e.shiftKey,a=e.altKey,o=e.metaKey,i=e.ctrlKey;if(!(n||a||o||i||r!==st.LEFT&&r!==st.RIGHT)){var c=be.current,u=c.text,s=c.formats,l=c.start,f=c.end,p=c.activeFormats,d=void 0===p?[]:p,b=Y(be.current),m="rtl"===ue().getComputedStyle(t.current).direction?st.RIGHT:st.LEFT,v=e.keyCode===m;if(b&&0===d.length){if(0===l&&v)return;if(f===u.length&&!v)return}if(b){e.preventDefault();var g=s[l-1]||jt,h=s[l]||jt,O=d.length,y=h;if(g.length>h.length&&(y=g),g.lengthg.length&&O--):g.length>h.length&&(!v&&d.length>h.length&&O--,v&&d.length=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(c[r]=e[r])}return c}},16:function(e,t,r){"use strict";function n(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}r.d(t,"a",(function(){return n}))},19:function(e,t,r){"use strict";function n(e){return(n=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}r.d(t,"a",(function(){return n}))},2:function(e,t){!function(){e.exports=this.lodash}()},21:function(e,t,r){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}r.d(t,"a",(function(){return n}))},22:function(e,t,r){"use strict";function n(e,t){for(var r=0;r=0||(o[r]=e[r]);return o}r.d(t,"a",(function(){return n}))},47:function(e,t){!function(){e.exports=this.wp.apiFetch}()},487:function(e,t,r){"use strict";r.r(t);var n=r(8),o=r(5),c=r(14),u=r(0),i=r(4),s=r(36),a=r.n(s),f=r(21),l=r(22),p=r(23),b=r(24),d=r(19),O=r(2),y=r(1),h=r(47),j=r.n(h),v=r(31),m=r(3);function w(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=Object(d.a)(e);if(t){var o=Object(d.a)(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return Object(b.a)(this,r)}}function g(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function P(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Object(v.addQueryArgs)("/wp/v2/block-renderer/".concat(e),P(P({context:"edit"},null!==t?{attributes:t}:{}),r))}(r,s?null:o,void 0===i?{}:i),f=s?{attributes:o}:null,l=this.currentFetchRequest=j()({path:a,data:f,method:s?"POST":"GET"}).then((function(e){t.isStillMounted&&l===t.currentFetchRequest&&e&&t.setState({response:e.rendered})})).catch((function(e){t.isStillMounted&&l===t.currentFetchRequest&&t.setState({response:{error:!0,errorMsg:e.message}})}));return l}}},{key:"render",value:function(){var e=this.state.response,t=this.props,r=t.className,o=t.EmptyResponsePlaceholder,c=t.ErrorResponsePlaceholder,i=t.LoadingResponsePlaceholder;return""===e?Object(u.createElement)(o,Object(n.a)({response:e},this.props)):e?e.error?Object(u.createElement)(c,Object(n.a)({response:e},this.props)):Object(u.createElement)(u.RawHTML,{key:"html",className:r},e):Object(u.createElement)(i,Object(n.a)({response:e},this.props))}}]),r}(u.Component);S.defaultProps={EmptyResponsePlaceholder:function(e){var t=e.className;return Object(u.createElement)(m.Placeholder,{className:t},Object(y.__)("Block rendered as empty."))},ErrorResponsePlaceholder:function(e){var t=e.response,r=e.className,n=Object(y.sprintf)(Object(y.__)("Error loading block: %s"),t.errorMsg);return Object(u.createElement)(m.Placeholder,{className:r},n)},LoadingResponsePlaceholder:function(e){var t=e.className;return Object(u.createElement)(m.Placeholder,{className:t},Object(u.createElement)(m.Spinner,null))}};var E=S;function R(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}var _={},x=Object(i.withSelect)((function(e){var t=e("core/editor");if(t){var r=t.getCurrentPostId();if(r)return{currentPostId:r}}return _}))((function(e){var t=e.urlQueryArgs,r=void 0===t?_:t,i=e.currentPostId,s=Object(c.a)(e,["urlQueryArgs","currentPostId"]),a=Object(u.useMemo)((function(){return i?function(e){for(var t=1;t=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(c[r]=e[r])}return c}},16:function(e,t,r){"use strict";function n(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}r.d(t,"a",(function(){return n}))},19:function(e,t,r){"use strict";function n(e){return(n=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}r.d(t,"a",(function(){return n}))},2:function(e,t){!function(){e.exports=this.lodash}()},21:function(e,t,r){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}r.d(t,"a",(function(){return n}))},22:function(e,t,r){"use strict";function n(e,t){for(var r=0;r=0||(o[r]=e[r]);return o}r.d(t,"a",(function(){return n}))},47:function(e,t){!function(){e.exports=this.wp.apiFetch}()},5:function(e,t,r){"use strict";function n(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}r.d(t,"a",(function(){return n}))},501:function(e,t,r){"use strict";r.r(t);var n=r(8),o=r(5),c=r(14),u=r(0),i=r(4),s=r(36),a=r.n(s),f=r(21),l=r(22),p=r(23),b=r(24),d=r(19),O=r(2),y=r(1),h=r(47),j=r.n(h),v=r(30),m=r(3);function w(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=Object(d.a)(e);if(t){var o=Object(d.a)(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return Object(b.a)(this,r)}}function g(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function P(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Object(v.addQueryArgs)("/wp/v2/block-renderer/".concat(e),P(P({context:"edit"},null!==t?{attributes:t}:{}),r))}(r,s?null:o,void 0===i?{}:i),f=s?{attributes:o}:null,l=this.currentFetchRequest=j()({path:a,data:f,method:s?"POST":"GET"}).then((function(e){t.isStillMounted&&l===t.currentFetchRequest&&e&&t.setState({response:e.rendered})})).catch((function(e){t.isStillMounted&&l===t.currentFetchRequest&&t.setState({response:{error:!0,errorMsg:e.message}})}));return l}}},{key:"render",value:function(){var e=this.state.response,t=this.props,r=t.className,o=t.EmptyResponsePlaceholder,c=t.ErrorResponsePlaceholder,i=t.LoadingResponsePlaceholder;return""===e?Object(u.createElement)(o,Object(n.a)({response:e},this.props)):e?e.error?Object(u.createElement)(c,Object(n.a)({response:e},this.props)):Object(u.createElement)(u.RawHTML,{key:"html",className:r},e):Object(u.createElement)(i,Object(n.a)({response:e},this.props))}}]),r}(u.Component);S.defaultProps={EmptyResponsePlaceholder:function(e){var t=e.className;return Object(u.createElement)(m.Placeholder,{className:t},Object(y.__)("Block rendered as empty."))},ErrorResponsePlaceholder:function(e){var t=e.response,r=e.className,n=Object(y.sprintf)(Object(y.__)("Error loading block: %s"),t.errorMsg);return Object(u.createElement)(m.Placeholder,{className:r},n)},LoadingResponsePlaceholder:function(e){var t=e.className;return Object(u.createElement)(m.Placeholder,{className:t},Object(u.createElement)(m.Spinner,null))}};var E=S;function R(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}var _={},x=Object(i.withSelect)((function(e){var t=e("core/editor");if(t){var r=t.getCurrentPostId();if(r)return{currentPostId:r}}return _}))((function(e){var t=e.urlQueryArgs,r=void 0===t?_:t,i=e.currentPostId,s=Object(c.a)(e,["urlQueryArgs","currentPostId"]),a=Object(u.useMemo)((function(){return i?function(e){for(var t=1;t2&&void 0!==arguments[2]?arguments[2]:0,r=s(t);r.lastIndex=n;var i=r.exec(e);if(i){if("["===i[1]&&"]"===i[7])return u(t,e,r.lastIndex);var o={index:i.index,content:i[0],shortcode:f(i)};return i[1]&&(o.content=o.content.slice(1),o.index++),i[7]&&(o.content=o.content.slice(0,-1)),o}}function o(t,e,n){return e.replace(s(t),(function(t,e,r,i,u,o,c,s){if("["===e&&"]"===s)return t;var a=n(f(arguments));return a?e+a+s:t}))}function c(t){return new l(t).string()}function s(t){return new RegExp("\\[(\\[?)("+t+")(?![\\w-])([^\\]\\/]*(?:\\/(?!\\])[^\\]\\/]*)*?)(?:(\\/)\\]|\\](?:([^\\[]*(?:\\[(?!\\/\\2\\])[^\\[]*)*)(\\[\\/\\2\\]))?)(\\]?)","g")}var a=n.n(i)()((function(t){var e,n={},r=[],i=/([\w-]+)\s*=\s*"([^"]*)"(?:\s|$)|([\w-]+)\s*=\s*'([^']*)'(?:\s|$)|([\w-]+)\s*=\s*([^\s'"]+)(?:\s|$)|"([^"]*)"(?:\s|$)|'([^']*)'(?:\s|$)|(\S+)(?:\s|$)/g;for(t=t.replace(/[\u00a0\u200b]/g," ");e=i.exec(t);)e[1]?n[e[1].toLowerCase()]=e[2]:e[3]?n[e[3].toLowerCase()]=e[4]:e[5]?n[e[5].toLowerCase()]=e[6]:e[7]?r.push(e[7]):e[8]?r.push(e[8]):e[9]&&r.push(e[9]);return{named:n,numeric:r}}));function f(t){var e;return e=t[4]?"self-closing":t[6]?"closed":"single",new l({tag:t[2],attrs:t[3],type:e,content:t[5]})}var l=Object(r.extend)((function(t){var e=this;Object(r.extend)(this,Object(r.pick)(t||{},"tag","attrs","type","content"));var n=this.attrs;this.attrs={named:{},numeric:[]},n&&(Object(r.isString)(n)?this.attrs=a(n):Object(r.isEqual)(Object.keys(n),["named","numeric"])?this.attrs=n:Object(r.forEach)(n,(function(t,n){e.set(n,t)})))}),{next:u,replace:o,string:c,regexp:s,attrs:a,fromMatch:f});Object(r.extend)(l.prototype,{get:function(t){return this.attrs[Object(r.isNumber)(t)?"numeric":"named"][t]},set:function(t,e){return this.attrs[Object(r.isNumber)(t)?"numeric":"named"][t]=e,this},string:function(){var t="["+this.tag;return Object(r.forEach)(this.attrs.numeric,(function(e){/\s/.test(e)?t+=' "'+e+'"':t+=" "+e})),Object(r.forEach)(this.attrs.named,(function(e,n){t+=" "+n+'="'+e+'"'})),"single"===this.type?t+"]":"self-closing"===this.type?t+" /]":(t+="]",this.content&&(t+=this.content),t+"[/"+this.tag+"]")}}),e.default=l},60:function(t,e,n){t.exports=function(t,e){var n,r,i=0;function u(){var u,o,c=n,s=arguments.length;t:for(;c;){if(c.args.length===arguments.length){for(o=0;o2&&void 0!==arguments[2]?arguments[2]:0,r=s(t);r.lastIndex=n;var i=r.exec(e);if(i){if("["===i[1]&&"]"===i[7])return u(t,e,r.lastIndex);var o={index:i.index,content:i[0],shortcode:f(i)};return i[1]&&(o.content=o.content.slice(1),o.index++),i[7]&&(o.content=o.content.slice(0,-1)),o}}function o(t,e,n){return e.replace(s(t),(function(t,e,r,i,u,o,c,s){if("["===e&&"]"===s)return t;var a=n(f(arguments));return a?e+a+s:t}))}function c(t){return new l(t).string()}function s(t){return new RegExp("\\[(\\[?)("+t+")(?![\\w-])([^\\]\\/]*(?:\\/(?!\\])[^\\]\\/]*)*?)(?:(\\/)\\]|\\](?:([^\\[]*(?:\\[(?!\\/\\2\\])[^\\[]*)*)(\\[\\/\\2\\]))?)(\\]?)","g")}var a=n.n(i)()((function(t){var e,n={},r=[],i=/([\w-]+)\s*=\s*"([^"]*)"(?:\s|$)|([\w-]+)\s*=\s*'([^']*)'(?:\s|$)|([\w-]+)\s*=\s*([^\s'"]+)(?:\s|$)|"([^"]*)"(?:\s|$)|'([^']*)'(?:\s|$)|(\S+)(?:\s|$)/g;for(t=t.replace(/[\u00a0\u200b]/g," ");e=i.exec(t);)e[1]?n[e[1].toLowerCase()]=e[2]:e[3]?n[e[3].toLowerCase()]=e[4]:e[5]?n[e[5].toLowerCase()]=e[6]:e[7]?r.push(e[7]):e[8]?r.push(e[8]):e[9]&&r.push(e[9]);return{named:n,numeric:r}}));function f(t){var e;return e=t[4]?"self-closing":t[6]?"closed":"single",new l({tag:t[2],attrs:t[3],type:e,content:t[5]})}var l=Object(r.extend)((function(t){var e=this;Object(r.extend)(this,Object(r.pick)(t||{},"tag","attrs","type","content"));var n=this.attrs;this.attrs={named:{},numeric:[]},n&&(Object(r.isString)(n)?this.attrs=a(n):Object(r.isEqual)(Object.keys(n),["named","numeric"])?this.attrs=n:Object(r.forEach)(n,(function(t,n){e.set(n,t)})))}),{next:u,replace:o,string:c,regexp:s,attrs:a,fromMatch:f});Object(r.extend)(l.prototype,{get:function(t){return this.attrs[Object(r.isNumber)(t)?"numeric":"named"][t]},set:function(t,e){return this.attrs[Object(r.isNumber)(t)?"numeric":"named"][t]=e,this},string:function(){var t="["+this.tag;return Object(r.forEach)(this.attrs.numeric,(function(e){/\s/.test(e)?t+=' "'+e+'"':t+=" "+e})),Object(r.forEach)(this.attrs.named,(function(e,n){t+=" "+n+'="'+e+'"'})),"single"===this.type?t+"]":"self-closing"===this.type?t+" /]":(t+="]",this.content&&(t+=this.content),t+"[/"+this.tag+"]")}}),e.default=l},60:function(t,e,n){t.exports=function(t,e){var n,r,i=0;function u(){var u,o,c=n,s=arguments.length;t:for(;c;){if(c.args.length===arguments.length){for(o=0;o0&&void 0!==arguments[0]?arguments[0]:"";Object(a.a)(this,e),this.value=t,this._currentValue,this._valueAsArray}return Object(i.a)(e,[{key:"entries",value:function(){var e;return(e=this._valueAsArray).entries.apply(e,arguments)}},{key:"forEach",value:function(){var e;return(e=this._valueAsArray).forEach.apply(e,arguments)}},{key:"keys",value:function(){var e;return(e=this._valueAsArray).keys.apply(e,arguments)}},{key:"values",value:function(){var e;return(e=this._valueAsArray).values.apply(e,arguments)}},{key:"toString",value:function(){return this.value}},{key:Symbol.iterator,value:u.a.mark((function e(){return u.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.delegateYield(this._valueAsArray,"t0",1);case 1:return e.abrupt("return",e.t0);case 2:case"end":return e.stop()}}),e,this)}))},{key:"item",value:function(e){return this._valueAsArray[e]}},{key:"contains",value:function(e){return-1!==this._valueAsArray.indexOf(e)}},{key:"add",value:function(){for(var e=arguments.length,t=new Array(e),r=0;r0&&void 0!==arguments[0]?arguments[0]:"";Object(a.a)(this,e),this.value=t,this._currentValue,this._valueAsArray}return Object(i.a)(e,[{key:"entries",value:function(){var e;return(e=this._valueAsArray).entries.apply(e,arguments)}},{key:"forEach",value:function(){var e;return(e=this._valueAsArray).forEach.apply(e,arguments)}},{key:"keys",value:function(){var e;return(e=this._valueAsArray).keys.apply(e,arguments)}},{key:"values",value:function(){var e;return(e=this._valueAsArray).values.apply(e,arguments)}},{key:"toString",value:function(){return this.value}},{key:Symbol.iterator,value:u.a.mark((function e(){return u.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.delegateYield(this._valueAsArray,"t0",1);case 1:return e.abrupt("return",e.t0);case 2:case"end":return e.stop()}}),e,this)}))},{key:"item",value:function(e){return this._valueAsArray[e]}},{key:"contains",value:function(e){return-1!==this._valueAsArray.indexOf(e)}},{key:"add",value:function(){for(var e=arguments.length,t=new Array(e),r=0;r1;){var t=e.pop(),r=t.obj[t.prop];if(o(r)){for(var n=[],i=0;i=48&&a<=57||a>=65&&a<=90||a>=97&&a<=122?o+=n.charAt(c):a<128?o+=i[a]:a<2048?o+=i[192|a>>6]+i[128|63&a]:a<55296||a>=57344?o+=i[224|a>>12]+i[128|a>>6&63]+i[128|63&a]:(c+=1,a=65536+((1023&a)<<10|1023&n.charCodeAt(c)),o+=i[240|a>>18]+i[128|a>>12&63]+i[128|a>>6&63]+i[128|63&a])}return o},isBuffer:function(e){return!(!e||"object"!=typeof e)&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},merge:function e(t,r,i){if(!r)return t;if("object"!=typeof r){if(o(t))t.push(r);else{if(!t||"object"!=typeof t)return[t,r];(i&&(i.plainObjects||i.allowPrototypes)||!n.call(Object.prototype,r))&&(t[r]=!0)}return t}if(!t||"object"!=typeof t)return[t].concat(r);var a=t;return o(t)&&!o(r)&&(a=c(t,i)),o(t)&&o(r)?(r.forEach((function(r,o){if(n.call(t,o)){var c=t[o];c&&"object"==typeof c&&r&&"object"==typeof r?t[o]=e(c,r,i):t.push(r)}else t[o]=r})),t):Object.keys(r).reduce((function(t,o){var c=r[o];return n.call(t,o)?t[o]=e(t[o],c,i):t[o]=c,t}),a)}}},272:function(e,t,r){"use strict";var n=String.prototype.replace,o=/%20/g;e.exports={default:"RFC3986",formatters:{RFC1738:function(e){return n.call(e,o,"+")},RFC3986:function(e){return e}},RFC1738:"RFC1738",RFC3986:"RFC3986"}},451:function(e,t,r){"use strict";var n=r(271),o=r(272),i=Object.prototype.hasOwnProperty,c={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},a=Array.isArray,u=Array.prototype.push,l=function(e,t){u.apply(e,a(t)?t:[t])},s=Date.prototype.toISOString,f={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:n.encode,encodeValuesOnly:!1,formatter:o.formatters[o.default],indices:!1,serializeDate:function(e){return s.call(e)},skipNulls:!1,strictNullHandling:!1},p=function e(t,r,o,i,c,u,s,p,d,y,h,m,b){var g=t;if("function"==typeof s?g=s(r,g):g instanceof Date?g=y(g):"comma"===o&&a(g)&&(g=g.join(",")),null===g){if(i)return u&&!m?u(r,f.encoder,b):r;g=""}if("string"==typeof g||"number"==typeof g||"boolean"==typeof g||n.isBuffer(g))return u?[h(m?r:u(r,f.encoder,b))+"="+h(u(g,f.encoder,b))]:[h(r)+"="+h(String(g))];var v,O=[];if(void 0===g)return O;if(a(s))v=s;else{var j=Object.keys(g);v=p?j.sort(p):j}for(var w=0;w0?g+b:""}},452:function(e,t,r){"use strict";var n=r(271),o=Object.prototype.hasOwnProperty,i={allowDots:!1,allowPrototypes:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:n.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},c=function(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))},a=function(e,t,r){if(e){var n=r.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,i=/(\[[^[\]]*])/g,c=/(\[[^[\]]*])/.exec(n),a=c?n.slice(0,c.index):n,u=[];if(a){if(!r.plainObjects&&o.call(Object.prototype,a)&&!r.allowPrototypes)return;u.push(a)}for(var l=0;null!==(c=i.exec(n))&&l=0;--o){var i,c=e[o];if("[]"===c&&r.parseArrays)i=[].concat(n);else{i=r.plainObjects?Object.create(null):{};var a="["===c.charAt(0)&&"]"===c.charAt(c.length-1)?c.slice(1,-1):c,u=parseInt(a,10);r.parseArrays||""!==a?!isNaN(u)&&c!==a&&String(u)===a&&u>=0&&r.parseArrays&&u<=r.arrayLimit?(i=[])[u]=n:i[a]=n:i={0:n}}n=i}return n}(u,t,r)}};e.exports=function(e,t){var r=function(e){if(!e)return i;if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new Error("The charset option must be either utf-8, iso-8859-1, or undefined");var t=void 0===e.charset?i.charset:e.charset;return{allowDots:void 0===e.allowDots?i.allowDots:!!e.allowDots,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:i.allowPrototypes,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:i.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:i.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:i.comma,decoder:"function"==typeof e.decoder?e.decoder:i.decoder,delimiter:"string"==typeof e.delimiter||n.isRegExp(e.delimiter)?e.delimiter:i.delimiter,depth:"number"==typeof e.depth?e.depth:i.depth,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:i.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:i.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:i.plainObjects,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:i.strictNullHandling}}(t);if(""===e||null==e)return r.plainObjects?Object.create(null):{};for(var u="string"==typeof e?function(e,t){var r,a={},u=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,l=t.parameterLimit===1/0?void 0:t.parameterLimit,s=u.split(t.delimiter,l),f=-1,p=t.charset;if(t.charsetSentinel)for(r=0;r-1&&(y=y.split(",")),o.call(a,d)?a[d]=n.combine(a[d],y):a[d]=y}return a}(e,r):e,l=r.plainObjects?Object.create(null):{},s=Object.keys(u),f=0;f0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;if(!t||!Object.keys(t).length)return e;var r=e,n=e.indexOf("?");return-1!==n&&(t=Object.assign(Object(b.parse)(e.substr(n+1)),t),r=r.substr(0,n)),r+"?"+Object(b.stringify)(t)}function v(e,t){var r=e.indexOf("?");return(-1!==r?Object(b.parse)(e.substr(r+1)):{})[t]}function O(e,t){return void 0!==v(e,t)}function j(e){for(var t=e.indexOf("?"),r=-1!==t?Object(b.parse)(e.substr(t+1)):{},n=-1!==t?e.substr(0,t):e,o=arguments.length,i=new Array(o>1?o-1:0),c=1;c1;){var t=e.pop(),r=t.obj[t.prop];if(o(r)){for(var n=[],i=0;i=48&&a<=57||a>=65&&a<=90||a>=97&&a<=122?o+=n.charAt(c):a<128?o+=i[a]:a<2048?o+=i[192|a>>6]+i[128|63&a]:a<55296||a>=57344?o+=i[224|a>>12]+i[128|a>>6&63]+i[128|63&a]:(c+=1,a=65536+((1023&a)<<10|1023&n.charCodeAt(c)),o+=i[240|a>>18]+i[128|a>>12&63]+i[128|a>>6&63]+i[128|63&a])}return o},isBuffer:function(e){return!(!e||"object"!=typeof e)&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},merge:function e(t,r,i){if(!r)return t;if("object"!=typeof r){if(o(t))t.push(r);else{if(!t||"object"!=typeof t)return[t,r];(i&&(i.plainObjects||i.allowPrototypes)||!n.call(Object.prototype,r))&&(t[r]=!0)}return t}if(!t||"object"!=typeof t)return[t].concat(r);var a=t;return o(t)&&!o(r)&&(a=c(t,i)),o(t)&&o(r)?(r.forEach((function(r,o){if(n.call(t,o)){var c=t[o];c&&"object"==typeof c&&r&&"object"==typeof r?t[o]=e(c,r,i):t.push(r)}else t[o]=r})),t):Object.keys(r).reduce((function(t,o){var c=r[o];return n.call(t,o)?t[o]=e(t[o],c,i):t[o]=c,t}),a)}}},272:function(e,t,r){"use strict";var n=String.prototype.replace,o=/%20/g;e.exports={default:"RFC3986",formatters:{RFC1738:function(e){return n.call(e,o,"+")},RFC3986:function(e){return e}},RFC1738:"RFC1738",RFC3986:"RFC3986"}},465:function(e,t,r){"use strict";var n=r(271),o=r(272),i=Object.prototype.hasOwnProperty,c={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},a=Array.isArray,u=Array.prototype.push,l=function(e,t){u.apply(e,a(t)?t:[t])},s=Date.prototype.toISOString,f={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:n.encode,encodeValuesOnly:!1,formatter:o.formatters[o.default],indices:!1,serializeDate:function(e){return s.call(e)},skipNulls:!1,strictNullHandling:!1},p=function e(t,r,o,i,c,u,s,p,d,y,h,m,b){var g=t;if("function"==typeof s?g=s(r,g):g instanceof Date?g=y(g):"comma"===o&&a(g)&&(g=g.join(",")),null===g){if(i)return u&&!m?u(r,f.encoder,b):r;g=""}if("string"==typeof g||"number"==typeof g||"boolean"==typeof g||n.isBuffer(g))return u?[h(m?r:u(r,f.encoder,b))+"="+h(u(g,f.encoder,b))]:[h(r)+"="+h(String(g))];var v,O=[];if(void 0===g)return O;if(a(s))v=s;else{var j=Object.keys(g);v=p?j.sort(p):j}for(var w=0;w0?g+b:""}},466:function(e,t,r){"use strict";var n=r(271),o=Object.prototype.hasOwnProperty,i={allowDots:!1,allowPrototypes:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:n.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},c=function(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))},a=function(e,t,r){if(e){var n=r.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,i=/(\[[^[\]]*])/g,c=/(\[[^[\]]*])/.exec(n),a=c?n.slice(0,c.index):n,u=[];if(a){if(!r.plainObjects&&o.call(Object.prototype,a)&&!r.allowPrototypes)return;u.push(a)}for(var l=0;null!==(c=i.exec(n))&&l=0;--o){var i,c=e[o];if("[]"===c&&r.parseArrays)i=[].concat(n);else{i=r.plainObjects?Object.create(null):{};var a="["===c.charAt(0)&&"]"===c.charAt(c.length-1)?c.slice(1,-1):c,u=parseInt(a,10);r.parseArrays||""!==a?!isNaN(u)&&c!==a&&String(u)===a&&u>=0&&r.parseArrays&&u<=r.arrayLimit?(i=[])[u]=n:i[a]=n:i={0:n}}n=i}return n}(u,t,r)}};e.exports=function(e,t){var r=function(e){if(!e)return i;if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new Error("The charset option must be either utf-8, iso-8859-1, or undefined");var t=void 0===e.charset?i.charset:e.charset;return{allowDots:void 0===e.allowDots?i.allowDots:!!e.allowDots,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:i.allowPrototypes,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:i.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:i.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:i.comma,decoder:"function"==typeof e.decoder?e.decoder:i.decoder,delimiter:"string"==typeof e.delimiter||n.isRegExp(e.delimiter)?e.delimiter:i.delimiter,depth:"number"==typeof e.depth?e.depth:i.depth,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:i.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:i.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:i.plainObjects,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:i.strictNullHandling}}(t);if(""===e||null==e)return r.plainObjects?Object.create(null):{};for(var u="string"==typeof e?function(e,t){var r,a={},u=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,l=t.parameterLimit===1/0?void 0:t.parameterLimit,s=u.split(t.delimiter,l),f=-1,p=t.charset;if(t.charsetSentinel)for(r=0;r-1&&(y=y.split(",")),o.call(a,d)?a[d]=n.combine(a[d],y):a[d]=y}return a}(e,r):e,l=r.plainObjects?Object.create(null):{},s=Object.keys(u),f=0;f0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;if(!t||!Object.keys(t).length)return e;var r=e,n=e.indexOf("?");return-1!==n&&(t=Object.assign(Object(b.parse)(e.substr(n+1)),t),r=r.substr(0,n)),r+"?"+Object(b.stringify)(t)}function v(e,t){var r=e.indexOf("?");return(-1!==r?Object(b.parse)(e.substr(r+1)):{})[t]}function O(e,t){return void 0!==v(e,t)}function j(e){for(var t=e.indexOf("?"),r=-1!==t?Object(b.parse)(e.substr(t+1)):{},n=-1!==t?e.substr(0,t):e,o=arguments.length,i=new Array(o>1?o-1:0),c=1;ct.length)&&(e=t.length);for(var n=0,r=new Array(e);n0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;switch(e.type){case"SET_IS_MATCHING":return e.values}return t};function u(t){return{type:"SET_IS_MATCHING",values:t}}function a(t,e){return-1===e.indexOf(" ")&&(e=">= "+e),!!t[e]}Object(i.registerStore)("core/viewport",{reducer:c,actions:r,selectors:o});var f=n(2),s=function(t,e){var n=Object(f.debounce)((function(){var t=Object(f.mapValues)(r,(function(t){return t.matches}));Object(i.dispatch)("core/viewport").setIsMatching(t)}),{leading:!0}),r=Object(f.reduce)(t,(function(t,r,o){return Object(f.forEach)(e,(function(e,i){var c=window.matchMedia("(".concat(e,": ").concat(r,"px)"));c.addListener(n);var u=[i,o].join(" ");t[u]=c})),t}),{});window.addEventListener("orientationchange",n),n(),n.flush()},l=n(10),p=n(8),d=n(12),b=n(0),h=function(t){return Object(l.createHigherOrderComponent)((function(e){return Object(l.pure)((function(n){var r=Object(f.mapValues)(t,(function(t){var e=t.split(" "),n=Object(d.a)(e,2),r=n[0],o=n[1];return void 0===o&&(o=r,r=">="),Object(l.useViewportMatch)(o,r)}));return Object(b.createElement)(e,Object(p.a)({},n,r))}))}),"withViewportMatch")},v=function(t){return Object(l.createHigherOrderComponent)(Object(l.compose)([h({isViewportMatch:t}),Object(l.ifCondition)((function(t){return t.isViewportMatch}))]),"ifViewportMatches")};s({huge:1440,wide:1280,large:960,medium:782,small:600,mobile:480},{"<":"max-width",">=":"min-width"})},8:function(t,e,n){"use strict";function r(){return(r=Object.assign||function(t){for(var e=1;et.length)&&(e=t.length);for(var n=0,r=new Array(e);n0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;switch(e.type){case"SET_IS_MATCHING":return e.values}return t};function u(t){return{type:"SET_IS_MATCHING",values:t}}function a(t,e){return-1===e.indexOf(" ")&&(e=">= "+e),!!t[e]}Object(i.registerStore)("core/viewport",{reducer:c,actions:r,selectors:o});var f=n(2),s=function(t,e){var n=Object(f.debounce)((function(){var t=Object(f.mapValues)(r,(function(t){return t.matches}));Object(i.dispatch)("core/viewport").setIsMatching(t)}),{leading:!0}),r=Object(f.reduce)(t,(function(t,r,o){return Object(f.forEach)(e,(function(e,i){var c=window.matchMedia("(".concat(e,": ").concat(r,"px)"));c.addListener(n);var u=[i,o].join(" ");t[u]=c})),t}),{});window.addEventListener("orientationchange",n),n(),n.flush()},l=n(10),p=n(8),d=n(12),b=n(0),h=function(t){return Object(l.createHigherOrderComponent)((function(e){return Object(l.pure)((function(n){var r=Object(f.mapValues)(t,(function(t){var e=t.split(" "),n=Object(d.a)(e,2),r=n[0],o=n[1];return void 0===o&&(o=r,r=">="),Object(l.useViewportMatch)(o,r)}));return Object(b.createElement)(e,Object(p.a)({},n,r))}))}),"withViewportMatch")},v=function(t){return Object(l.createHigherOrderComponent)(Object(l.compose)([h({isViewportMatch:t}),Object(l.ifCondition)((function(t){return t.isViewportMatch}))]),"ifViewportMatches")};s({huge:1440,wide:1280,large:960,medium:782,small:600,mobile:480},{"<":"max-width",">=":"min-width"})},8:function(t,e,n){"use strict";function r(){return(r=Object.assign||function(t){for(var e=1;e1)for(var n=1;n1)for(var n=1;n]*?>/gi,HTMLcommentRegExp://g,spaceRegExp:/ | /gi,HTMLEntityRegExp:/&\S+?;/g,connectorRegExp:/--|\u2014/g,removeRegExp:new RegExp(["[","!-@[-`{-~","€-¿×÷"," -⯿","⸀-⹿","]"].join(""),"g"),astralRegExp:/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,wordsRegExp:/\S\s+/g,characters_excluding_spacesRegExp:/\S/g,characters_including_spacesRegExp:/[^\f\n\r\t\v\u00AD\u2028\u2029]/g,l10n:{type:"words"}};function c(e,n){return n.replace(e.HTMLRegExp,"\n")}function o(e,n){return n.replace(e.astralRegExp,"a")}function l(e,n){return n.replace(e.HTMLEntityRegExp,"")}function i(e,n){return n.replace(e.connectorRegExp," ")}function s(e,n){return n.replace(e.removeRegExp,"")}function a(e,n){return n.replace(e.HTMLcommentRegExp,"")}function p(e,n){return e.shortcodesRegExp?n.replace(e.shortcodesRegExp,"\n"):n}function d(e,n){return n.replace(e.spaceRegExp," ")}function g(e,n){return n.replace(e.HTMLEntityRegExp,"a")}function f(e,n,t){var u,l;return e=Object(r.flow)(c.bind(null,t),a.bind(null,t),p.bind(null,t),o.bind(null,t),d.bind(null,t),g.bind(null,t))(e),null!==(u=null===(l=(e+="\n").match(n))||void 0===l?void 0:l.length)&&void 0!==u?u:0}function x(e,n,t){var o=function(e,n){var t,c,o=Object(r.extend)({},u,n);return o.shortcodes=null!==(t=null===(c=o.l10n)||void 0===c?void 0:c.shortcodes)&&void 0!==t?t:[],o.shortcodes&&o.shortcodes.length&&(o.shortcodesRegExp=new RegExp("\\[\\/?(?:"+o.shortcodes.join("|")+")[^\\]]*?\\]","g")),o.type=e,"characters_excluding_spaces"!==o.type&&"characters_including_spaces"!==o.type&&(o.type="words"),o}(n,t);switch(o.type){case"words":return function(e,n,t){var u,o;return e=Object(r.flow)(c.bind(null,t),a.bind(null,t),p.bind(null,t),d.bind(null,t),l.bind(null,t),i.bind(null,t),s.bind(null,t))(e),null!==(u=null===(o=(e+="\n").match(n))||void 0===o?void 0:o.length)&&void 0!==u?u:0}(e,o.wordsRegExp,o);case"characters_including_spaces":return f(e,o.characters_including_spacesRegExp,o);case"characters_excluding_spaces":return f(e,o.characters_excluding_spacesRegExp,o);default:return 0}}}}); \ No newline at end of file +this.wp=this.wp||{},this.wp.wordcount=function(e){var n={};function t(r){if(n[r])return n[r].exports;var u=n[r]={i:r,l:!1,exports:{}};return e[r].call(u.exports,u,u.exports,t),u.l=!0,u.exports}return t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:r})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,n){if(1&n&&(e=t(e)),8&n)return e;if(4&n&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(t.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var u in e)t.d(r,u,function(n){return e[n]}.bind(null,u));return r},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},t.p="",t(t.s=483)}({2:function(e,n){!function(){e.exports=this.lodash}()},483:function(e,n,t){"use strict";t.r(n),t.d(n,"count",(function(){return x}));var r=t(2),u={HTMLRegExp:/<\/?[a-z][^>]*?>/gi,HTMLcommentRegExp://g,spaceRegExp:/ | /gi,HTMLEntityRegExp:/&\S+?;/g,connectorRegExp:/--|\u2014/g,removeRegExp:new RegExp(["[","!-@[-`{-~","€-¿×÷"," -⯿","⸀-⹿","]"].join(""),"g"),astralRegExp:/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,wordsRegExp:/\S\s+/g,characters_excluding_spacesRegExp:/\S/g,characters_including_spacesRegExp:/[^\f\n\r\t\v\u00AD\u2028\u2029]/g,l10n:{type:"words"}};function c(e,n){return n.replace(e.HTMLRegExp,"\n")}function o(e,n){return n.replace(e.astralRegExp,"a")}function l(e,n){return n.replace(e.HTMLEntityRegExp,"")}function i(e,n){return n.replace(e.connectorRegExp," ")}function s(e,n){return n.replace(e.removeRegExp,"")}function a(e,n){return n.replace(e.HTMLcommentRegExp,"")}function p(e,n){return e.shortcodesRegExp?n.replace(e.shortcodesRegExp,"\n"):n}function d(e,n){return n.replace(e.spaceRegExp," ")}function g(e,n){return n.replace(e.HTMLEntityRegExp,"a")}function f(e,n,t){var u,l;return e=Object(r.flow)(c.bind(null,t),a.bind(null,t),p.bind(null,t),o.bind(null,t),d.bind(null,t),g.bind(null,t))(e),null!==(u=null===(l=(e+="\n").match(n))||void 0===l?void 0:l.length)&&void 0!==u?u:0}function x(e,n,t){var o=function(e,n){var t,c,o=Object(r.extend)({},u,n);return o.shortcodes=null!==(t=null===(c=o.l10n)||void 0===c?void 0:c.shortcodes)&&void 0!==t?t:[],o.shortcodes&&o.shortcodes.length&&(o.shortcodesRegExp=new RegExp("\\[\\/?(?:"+o.shortcodes.join("|")+")[^\\]]*?\\]","g")),o.type=e,"characters_excluding_spaces"!==o.type&&"characters_including_spaces"!==o.type&&(o.type="words"),o}(n,t);switch(o.type){case"words":return function(e,n,t){var u,o;return e=Object(r.flow)(c.bind(null,t),a.bind(null,t),p.bind(null,t),d.bind(null,t),l.bind(null,t),i.bind(null,t),s.bind(null,t))(e),null!==(u=null===(o=(e+="\n").match(n))||void 0===o?void 0:o.length)&&void 0!==u?u:0}(e,o.wordsRegExp,o);case"characters_including_spaces":return f(e,o.characters_including_spacesRegExp,o);case"characters_excluding_spaces":return f(e,o.characters_excluding_spacesRegExp,o);default:return 0}}}}); \ No newline at end of file diff --git a/wp-includes/version.php b/wp-includes/version.php index 673a0b7471..b8002ebe03 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.6-RC1-49717'; +$wp_version = '5.6-RC1-49719'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.